@nuvin/agent-core 0.0.0-rc.1 → 0.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +53 -5
- package/dist/agent/index.js +1 -1
- package/dist/chunk-3OMYFJLN.js +1 -0
- package/dist/chunk-4DNIDCX7.js +1 -0
- package/dist/chunk-G2FR4UGO.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +6 -3
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +15 -12
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-F0kn75gb.d.ts → provider-adapters-CURkQPbY.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +333 -23
- package/dist/tools/index.js +1 -1
- package/dist/{types-D11KxtW1.d.ts → types-Df0vlfj-.d.ts} +75 -27
- package/package.json +14 -4
- package/dist/chunk-C6OLKGP6.js +0 -1
- package/dist/chunk-U2BLX7Y5.js +0 -1
- package/dist/chunk-WVVWOCQ5.js +0 -1
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x33ee05,_0x3ee9bd){const _0x236eb7={_0x2911f2:0x471,_0x4bbe59:0x50c,_0x35243b:0x4a6,_0x2d6d29:0xac,_0xcab7aa:0x157,_0x1af998:0x11d,_0x2fc972:0x87,_0x69185f:0x1a9,_0x14f294:0x1a2,_0x236bf6:0x189,_0x238457:0xf5,_0x1c6403:0x114,_0x343e49:0x158,_0xbd34a7:0x49d,_0xd486ad:0x521,_0x796b3b:0x53b,_0x38a66e:0x4f9,_0x3adb7e:0x4f8,_0x2d9b3e:0x53e,_0xe06391:0x5b6,_0x2062d8:0x5ac,_0x37caa5:0x4b5,_0x496e8c:0x4c0,_0x3e57d1:0x57e,_0x19e1a6:0x50d,_0x3edf5b:0x5fa,_0xd375d1:0x52d},_0x533508={_0x32beec:0x369},_0x1351e6=_0x33ee05();function _0x544809(_0x8c7c23,_0x196ad4,_0x561305,_0x82a549){return _0x5314(_0x82a549-0x320,_0x8c7c23);}function _0x6f4054(_0x16bc67,_0x211046,_0x502743,_0xae70d){return _0x5314(_0x502743- -_0x533508._0x32beec,_0x16bc67);}while(!![]){try{const _0x2ee0cc=parseInt(_0x544809(_0x236eb7._0x2911f2,0x4da,_0x236eb7._0x4bbe59,_0x236eb7._0x35243b))/0x1+parseInt(_0x6f4054(-_0x236eb7._0x2d6d29,-_0x236eb7._0xcab7aa,-_0x236eb7._0x1af998,-_0x236eb7._0x2fc972))/0x2+-parseInt(_0x6f4054(-0x1fd,-_0x236eb7._0x69185f,-_0x236eb7._0x14f294,-_0x236eb7._0x236bf6))/0x3*(-parseInt(_0x6f4054(-0x7e,-_0x236eb7._0x238457,-_0x236eb7._0x1c6403,-_0x236eb7._0x343e49))/0x4)+parseInt(_0x544809(0x587,0x4d0,_0x236eb7._0xbd34a7,_0x236eb7._0xd486ad))/0x5+-parseInt(_0x544809(_0x236eb7._0x796b3b,_0x236eb7._0x38a66e,_0x236eb7._0x3adb7e,_0x236eb7._0x2d9b3e))/0x6+-parseInt(_0x544809(0x647,_0x236eb7._0xe06391,0x51f,_0x236eb7._0x2062d8))/0x7*(parseInt(_0x544809(_0x236eb7._0x37caa5,_0x236eb7._0x496e8c,_0x236eb7._0x3e57d1,_0x236eb7._0x19e1a6))/0x8)+parseInt(_0x544809(0x63f,0x52f,0x63a,_0x236eb7._0xe06391))/0x9*(-parseInt(_0x544809(0x60b,_0x236eb7._0x3edf5b,_0x236eb7._0xd375d1,0x596))/0xa);if(_0x2ee0cc===_0x3ee9bd)break;else _0x1351e6['push'](_0x1351e6['shift']());}catch(_0x55806){_0x1351e6['push'](_0x1351e6['shift']());}}}(_0x4186,0xd4673));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-WVVWOCQ5.js';import{getTextFromMessage}from'../chunk-C6OLKGP6.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{spawn}from'child_process';import{statSync}from'fs';import*as _0x957778 from'os';import*as _0x369387 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';var DEFAULT_DESCRIPTION=_0x452c58(0x183,0x1e8,0x145,0x1c0),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0xfbe6a){return _0xfbe6a instanceof Error;}function shellExists(_0x30e4a9){const _0xf784e7={_0x254ed4:0x2a7,_0x49e132:0x35a,_0x212706:0x39f},_0x1b5a53={_0x4f21c0:0x190},_0x1ad0c6={_0x4b78f8:0x1d8};function _0x2a25a8(_0x4eee00,_0x279b81,_0x4503e5,_0x515d92){return _0x452c58(_0x515d92-0x2ea,_0x279b81,_0x4503e5-0x188,_0x515d92-_0x1ad0c6._0x4b78f8);}function _0x23ef26(_0x323baa,_0x5bacbd,_0x1bfff3,_0x967a33){return _0x452c58(_0x323baa-_0x1b5a53._0x4f21c0,_0x1bfff3,_0x1bfff3-0x14a,_0x967a33-0x5d);}try{const _0x5d1d4b=statSync(_0x30e4a9);return _0x5d1d4b[_0x23ef26(0x337,_0xf784e7._0x254ed4,0x354,0x3af)]()&&(_0x5d1d4b[_0x23ef26(_0xf784e7._0x49e132,0x377,0x35a,_0xf784e7._0x212706)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x1acab0){const _0x2acb05={_0x3b29dc:0x1d6,_0x13f678:0x2d3,_0x58fdfe:0x258,_0xa09af9:0x259,_0x5e79d3:0x9b,_0x121a45:0x231,_0x1aa899:0x2c3,_0x1d27de:0x27d,_0x1d6a1b:0x20c,_0x6e0a1:0x2d7,_0x1771b6:0x227,_0x8b7b2:0x38,_0xf03629:0x47},_0x1a0aa1={_0x37b224:0xf,_0xac871:0x5a,_0xa213c5:0x3},_0x5977ae={_0x5e876:0x290,_0x327c94:0x12d};function _0x3c5bd0(_0x1dcf44,_0x1075d6,_0x68afef,_0x58ec11){return _0x452c58(_0x68afef- -_0x5977ae._0x5e876,_0x1dcf44,_0x68afef-0x11d,_0x58ec11-_0x5977ae._0x327c94);}if(_0x1acab0)return _0x1acab0;if(_0x957778['platform']()===_0x51aad2(_0x2acb05._0x3b29dc,0x185,0x195,0x15c))return process[_0x51aad2(_0x2acb05._0x13f678,_0x2acb05._0x58fdfe,0x237,_0x2acb05._0xa09af9)][_0x3c5bd0(-0xf5,-0x1,-0x60,-0x4)]||_0x3c5bd0(-0x2,-0x6c,-_0x2acb05._0x5e79d3,-0x115);const _0x25246e=['/bin/bash',_0x51aad2(0x2cb,_0x2acb05._0x121a45,_0x2acb05._0x1aa899,0x1a3),_0x51aad2(_0x2acb05._0x1d27de,_0x2acb05._0x1d6a1b,0x21e,0x22d),'/usr/bin/sh'];for(const _0x4460e4 of _0x25246e){if(shellExists(_0x4460e4))return _0x4460e4;}const _0x3f132a=process[_0x51aad2(_0x2acb05._0x6e0a1,0x258,_0x2acb05._0x1771b6,0x2d1)]['SHELL'];if(_0x3f132a&&shellExists(_0x3f132a))return _0x3f132a;function _0x51aad2(_0x1713d2,_0x55e3f5,_0x410195,_0x1f2ce3){return _0x452c58(_0x55e3f5- -_0x1a0aa1._0x37b224,_0x1f2ce3,_0x410195-_0x1a0aa1._0xac871,_0x1f2ce3-_0x1a0aa1._0xa213c5);}return _0x3c5bd0(-_0x2acb05._0x8b7b2,-_0x2acb05._0xf03629,-0xcd,-0x60);}function buildShellArgs(_0x137730,_0x25a3b8){const _0x3137d9={_0x5dd8b6:0x538,_0x3b1811:0x5e2,_0x2c6063:0x587,_0x730958:0x43d,_0x136a3b:0x4d2},_0xb737a3={_0x29dd19:0x2e2},_0x39b511={_0x53c641:0x53};function _0x696fa8(_0xfe9cf,_0x2a9b9b,_0x4d3dcb,_0x599c54){return _0x452c58(_0x599c54-0x31e,_0xfe9cf,_0x4d3dcb-_0x39b511._0x53c641,_0x599c54-0x152);}if(_0x957778[_0x696fa8(_0x3137d9._0x5dd8b6,_0x3137d9._0x3b1811,0x514,_0x3137d9._0x2c6063)]()==='win32'){const _0x27ff36=/cmd(\.exe)?$/i['test'](_0x25a3b8);return _0x27ff36?['/d','/s','/c',_0x137730]:['-NoLogo',_0x2514a6(_0x3137d9._0x730958,_0x3137d9._0x136a3b,0x465,0x533),'-Command',_0x137730];}function _0x2514a6(_0x351b23,_0x29c346,_0x30b1b2,_0x583ed3){return _0x452c58(_0x29c346-_0xb737a3._0x29dd19,_0x583ed3,_0x30b1b2-0x1c2,_0x583ed3-0x4c);}return['-c',_0x137730];}function stripAnsiAndControls(_0x2485c9){const _0x1048be={_0x471cb5:0x166,_0x5ee668:0x329,_0x1dde75:0x339,_0x5232ec:0x2e9,_0xddc9c3:0x2ed,_0x4d97b5:0x187,_0x51cae8:0x3cd,_0x126b26:0x47d,_0x2090d1:0x112,_0x353b3f:0x1b6,_0x372992:0x38f,_0x1ed619:0x333,_0x686eea:0x147,_0x1356a1:0xa9},_0x59c73a={_0x220327:0x303},_0x31a5dd={_0x56a42e:0x164};_0x2485c9=stripVTControlCharacters(_0x2485c9);const _0x17a9bd='\x1b',_0x30f6fd='\x07';_0x2485c9=_0x2485c9[_0x23d94e(-_0x1048be._0x471cb5,-0x12e,-0x194,-0x1ca)](new RegExp(';[^'+_0x30f6fd+_0x3b5591(_0x1048be._0x5ee668,0x355,0x40d,0x39e)+_0x30f6fd,'g'),''),_0x2485c9=_0x2485c9[_0x3b5591(0x355,0x327,0x320,_0x1048be._0x1dde75)](new RegExp(_0x3b5591(0x2e3,0x28c,_0x1048be._0x5232ec,_0x1048be._0xddc9c3)+_0x17a9bd+'\x5c\x5c','g'),''),_0x2485c9=_0x2485c9[_0x23d94e(-0x11f,-0x12e,-0x18c,-_0x1048be._0x4d97b5)](new RegExp(_0x30f6fd,'g'),''),_0x2485c9=_0x2485c9[_0x3b5591(0x2ff,0x370,0x348,0x339)](new RegExp(_0x17a9bd+_0x3b5591(0x371,0x30e,_0x1048be._0x51cae8,0x351)+_0x17a9bd+'\x5c\x5c','g'),'');function _0x3b5591(_0x185064,_0x594016,_0x395017,_0x433098){return _0x452c58(_0x433098-_0x31a5dd._0x56a42e,_0x185064,_0x395017-0x23,_0x433098-0x117);}function _0x23d94e(_0x1dc570,_0x26c95c,_0x1898da,_0x3a866e){return _0x452c58(_0x26c95c- -_0x59c73a._0x220327,_0x1dc570,_0x1898da-0x17c,_0x3a866e-0xa4);}return _0x2485c9=_0x2485c9[_0x3b5591(0x383,0x29e,0x2e1,0x339)](new RegExp(_0x17a9bd+_0x3b5591(0x3d5,_0x1048be._0x126b26,0x46c,0x3f8),'g'),''),_0x2485c9=_0x2485c9[_0x23d94e(-_0x1048be._0x2090d1,-0x12e,-0x15a,-_0x1048be._0x353b3f)](/[\u0080-\u009F]/g,''),_0x2485c9=_0x2485c9[_0x3b5591(_0x1048be._0x372992,_0x1048be._0x1ed619,0x33c,_0x1048be._0x1dde75)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x2485c9=_0x2485c9[_0x23d94e(-0x190,-0x12e,-_0x1048be._0x686eea,-_0x1048be._0x1356a1)](/[\u23CE\u2424]/g,''),_0x2485c9;}function resolveWorkingDirectory(_0x28acd1,_0x3e889f){const _0x377e13={_0x512ac6:0x58,_0x25f588:0x1f,_0x163097:0x5d},_0x2ccb33={_0x12db71:0x14c},_0x39c335={_0x17a302:0x19e};function _0x1c4ead(_0xd80215,_0x499c84,_0x9fdf32,_0x207011){return _0x452c58(_0xd80215-0x27f,_0x207011,_0x9fdf32-0x3f,_0x207011-_0x39c335._0x17a302);}function _0x214195(_0x2b6fc1,_0x3aa4db,_0xceac3d,_0x45c656){return _0x452c58(_0x3aa4db- -0x284,_0x2b6fc1,_0xceac3d-_0x2ccb33._0x12db71,_0x45c656-0xe7);}const _0x154a28=_0x28acd1?_0x369387[_0x214195(-_0x377e13._0x512ac6,0x17,0x57,-0x5a)](_0x28acd1)?_0x28acd1:_0x369387[_0x214195(0xa3,0xe,-_0x377e13._0x25f588,-_0x377e13._0x163097)](_0x3e889f,_0x28acd1):_0x3e889f;try{const _0x4d18ee=statSync(_0x154a28);if(!_0x4d18ee[_0x214195(-0x7f,-0x2d,-0x4b,-0x55)]())throw new ToolExecutionError('Working\x20directory\x20is\x20not\x20a\x20directory:\x20'+_0x154a28,{'cwd':_0x154a28});return _0x154a28;}catch(_0xc7de7b){if(_0xc7de7b instanceof ToolExecutionError)throw _0xc7de7b;throw new ToolExecutionError('Working\x20directory\x20not\x20found:\x20'+_0x154a28,{'cwd':_0x154a28});}}function killProcessGroup(_0x545560,_0x456da1,_0x1d7a83=_0x452c58(0x17b,0x10b,0xe8,0x130)){const _0x1dd02e={_0x44692a:0x1ae,_0x3dfc82:0x1f4,_0x524bfd:0x4ec,_0x2e7db5:0x4fe,_0x477e84:0x4f3,_0x12bf06:0x52a,_0x3ed372:0x528,_0x2aca8a:0x5ed,_0x579814:0x453,_0x1dffdd:0x423,_0x2b74a8:0x4b6,_0x103e61:0x1e4,_0x49df28:0x19c,_0x3973a0:0x220,_0x193271:0x52b,_0x238c1b:0x52d,_0x434b52:0x427},_0x1095c2={_0x2614f5:0x1ad,_0x53adab:0x2b0},_0x3acf69={_0x294dc5:0x1ef,_0x51f830:0xb4};if(!_0x545560[_0x462827(_0x1dd02e._0x44692a,_0x1dd02e._0x3dfc82,0x16c,0x1c5)])return;function _0x451baa(_0x536058,_0x3cfe91,_0x584c1c,_0x46d377){return _0x44530c(_0x46d377,_0x3cfe91-_0x3acf69._0x294dc5,_0x584c1c-0x173,_0x584c1c-_0x3acf69._0x51f830);}if(_0x456da1)try{spawn('taskkill',['/pid',_0x545560[_0x451baa(_0x1dd02e._0x524bfd,0x57d,0x512,_0x1dd02e._0x2e7db5)][_0x451baa(_0x1dd02e._0x477e84,0x554,_0x1dd02e._0x12bf06,0x522)](),'/T','/F'],{'stdio':_0x451baa(_0x1dd02e._0x3ed372,_0x1dd02e._0x2aca8a,0x5be,0x61f)});return;}catch{_0x545560[_0x451baa(_0x1dd02e._0x579814,_0x1dd02e._0x1dffdd,_0x1dd02e._0x2b74a8,0x4fb)](_0x1d7a83);return;}function _0x462827(_0x55bedb,_0x5dc30a,_0x24b0aa,_0x59231f){return _0x44530c(_0x59231f,_0x5dc30a-0x1d0,_0x24b0aa-_0x1095c2._0x2614f5,_0x55bedb- -_0x1095c2._0x53adab);}try{process['kill'](-_0x545560[_0x462827(0x1ae,_0x1dd02e._0x103e61,_0x1dd02e._0x49df28,_0x1dd02e._0x3973a0)],_0x1d7a83);}catch{_0x545560[_0x451baa(_0x1dd02e._0x193271,_0x1dd02e._0x238c1b,0x4b6,_0x1dd02e._0x434b52)](_0x1d7a83);}}function appendChunk(_0xab9039,_0x515767,_0x14ef69,_0x4b75a7,_0x535321){const _0x12aedf={_0x197fe0:0x389,_0x13731b:0x2f2,_0x3b40d7:0x396,_0x29eb77:0x511,_0x1dc32a:0x3ea,_0x27d9c0:0x3b8,_0x1e6fd3:0x388,_0x28de35:0x31d},_0x19195c={_0x308582:0x1bb,_0x243817:0x1d5};function _0x10de8a(_0x5cac5c,_0x5ea0a8,_0x545824,_0x4f3a29){return _0x452c58(_0x545824-0x314,_0x5ea0a8,_0x545824-0x11f,_0x4f3a29-0x4e);}function _0x4bbb32(_0x50a689,_0x1abff8,_0x337df9,_0x446517){return _0x452c58(_0x1abff8-_0x19195c._0x308582,_0x50a689,_0x337df9-_0x19195c._0x243817,_0x446517-0x13d);}const _0x53d1f7=_0x4b75a7?stripAnsiAndControls(_0x14ef69):_0x14ef69;if(_0x53d1f7[_0x4bbb32(0x31b,_0x12aedf._0x197fe0,_0x12aedf._0x13731b,_0x12aedf._0x3b40d7)]===0x0)return;_0xab9039[_0x10de8a(0x49d,0x50e,_0x12aedf._0x29eb77,0x483)](_0x53d1f7),_0x515767[_0x4bbb32(_0x12aedf._0x1dc32a,_0x12aedf._0x27d9c0,_0x12aedf._0x1e6fd3,_0x12aedf._0x28de35)](_0x53d1f7),_0x535321();}function createBashTool(_0x364c65={}){const _0x4754ad={_0x95d0bb:0x309,_0x5b5bfc:0x258,_0x525cf0:0x247,_0xa36d6b:0x4b3,_0x5c1702:0x4c4,_0x7d4b0b:0x4d4,_0x4c81a0:0x29b,_0x268547:0x231,_0x31fd6e:0x28d,_0x5da4a4:0x55a,_0x4bcc3a:0x4e6,_0x2b5474:0x538,_0x132c05:0x57f,_0x1ed9c4:0x514,_0x216900:0x275,_0x3561a0:0x39f},_0x977578={_0x2c1a0d:0x244,_0xffcb6d:0x21b,_0x1b76e5:0x1c7,_0x3b545a:0x17d,_0x4f20f2:0x2b5,_0xd493ac:0x283,_0x5bb8b8:0xe4,_0x5e4f26:0x15c,_0x16b304:0x306,_0x265273:0x28a,_0x1e0fa1:0x2ce,_0x3cc407:0x6c,_0x48b2f6:0xbb,_0x488156:0x30,_0x3c02a1:0x19,_0xee0619:0x58,_0x4ee9f2:0xe3,_0x21fb1f:0x2e0,_0x151eb6:0x336,_0x9bd3b:0x29f,_0x257763:0x23e,_0x578c8b:0xaa,_0x11088f:0x41,_0x8e948b:0x240,_0x595531:0x1f9,_0x410f9e:0x143,_0x92942d:0x210,_0x6f422f:0x215,_0x367815:0x175,_0x296445:0x25f,_0x38dd37:0x2c0,_0x4ecb3e:0x2f5,_0x1df16b:0x26c,_0x208b38:0x2ee,_0x280aeb:0x7e,_0x137718:0xaa,_0x2f89bc:0x98,_0x12e0d1:0x1cd,_0x105532:0x1e1,_0x2b7150:0x21b,_0x1112fd:0x1d0,_0x14546b:0x4a,_0x403c01:0x5d,_0x44e35f:0x31,_0x53f2be:0x62,_0x2a6080:0x48,_0x50fc47:0x192,_0x1f0b05:0x1d3,_0x3c3283:0x5,_0x2946fc:0x1ce,_0x5db1ff:0x1aa,_0x5142bd:0x23a,_0x342567:0x2b5,_0x41efb5:0x2f1,_0x40c0f9:0x269,_0x4bf562:0x1dd,_0x4bc008:0x188,_0x56551b:0x1c3,_0xf217d7:0x6,_0x487629:0x251,_0xbda03:0x34,_0xc9e796:0x27,_0x18e4e7:0x71,_0x9950e:0x234,_0x2068d5:0x1e5,_0x445c53:0x13a,_0x34afdd:0x1dd,_0xdcd8a:0x7e,_0x38247c:0xd1,_0x39a5da:0x99,_0x35bb42:0xc1,_0x55d7e4:0x25b,_0x540ff4:0x1c4,_0x41a0db:0x1ef,_0x347b15:0x249,_0x43df5c:0xe,_0x2dd64f:0x50,_0x4531b6:0x96,_0x38d3e5:0xb,_0x995d15:0x49,_0x385016:0x115,_0x172802:0xd6,_0x351a1b:0x12e,_0x339f9c:0x259,_0x487a5e:0x300,_0x574046:0x2c0,_0x1e3be9:0x185,_0xfd8bf3:0x177,_0x504707:0x1c6,_0x4bbd8c:0x53,_0x31d8cc:0x6f,_0x31c085:0x58,_0x1591bc:0x146,_0x487858:0x1a2,_0x4ac4bf:0x1b8,_0xbef472:0x36,_0x3bd105:0x24,_0x3f4e11:0x4,_0x44cb3c:0x12b,_0x229b3d:0x192,_0x3a34f9:0x16b},_0x1610a3={_0x14f995:0x2f8,_0x5b4d13:0x2fa,_0x4a509e:0x319,_0x415af1:0x168,_0x4de917:0x167,_0x586f2e:0x138,_0x2bef94:0x29e,_0x1f65ff:0x383,_0x31ca1c:0x3a4,_0x32ca9c:0x389,_0x3ea7f0:0x2c2},_0x23b60f={_0x34b003:0x69,_0x10f39f:0x2a3},_0x46d3a4={_0x6e185:0x132,_0x2df1b6:0xd0},_0x12d999={_0x36949f:0x2c4,_0x32cf97:0x63},_0x5d9ddf={_0x29066c:0x8e,_0x235e4b:0x1f,_0x42a905:0x16c},_0x4fe77a=_0x369387[_0x48e6f7(0x320,_0x4754ad._0x95d0bb,0x30a,0x2d3)](_0x364c65['defaultCwd']??process[_0x48e6f7(0x257,_0x4754ad._0x5b5bfc,0x280,_0x4754ad._0x525cf0)]()),_0x1ea378=_0x364c65['defaultTimeoutMs']??DEFAULT_TIMEOUT_MS;function _0x48e6f7(_0x1d8d4e,_0x3ab2da,_0x387f8a,_0x266b49){return _0x452c58(_0x1d8d4e-_0x5d9ddf._0x29066c,_0x387f8a,_0x387f8a-_0x5d9ddf._0x235e4b,_0x266b49-_0x5d9ddf._0x42a905);}const _0x620eca=_0x364c65[_0x4c7fb1(0x429,0x472,_0x4754ad._0xa36d6b,_0x4754ad._0x5c1702)]??!![];function _0x4c7fb1(_0x5131d2,_0x514d28,_0x3e5619,_0xc14d49){return _0x452c58(_0xc14d49-_0x12d999._0x36949f,_0x514d28,_0x3e5619-_0x12d999._0x32cf97,_0xc14d49-0x40);}const _0x16f452=_0x364c65['name']??_0x4c7fb1(0x50b,_0x4754ad._0x7d4b0b,0x47a,0x516);return defineTool({'name':_0x16f452,'description':_0x364c65[_0x48e6f7(_0x4754ad._0x4c81a0,_0x4754ad._0x268547,0x2f9,0x227)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x48e6f7(0x307,0x37b,_0x4754ad._0x31fd6e,0x370),'properties':{'command':{'type':'string'},'cwd':{'type':_0x4c7fb1(_0x4754ad._0x5da4a4,0x4b2,_0x4754ad._0x4bcc3a,_0x4754ad._0x2b5474)},'timeoutMs':{'type':_0x4c7fb1(0x59e,0x597,_0x4754ad._0x132c05,_0x4754ad._0x1ed9c4)},'ignoreOutput':{'type':_0x48e6f7(0x30f,_0x4754ad._0x216900,0x2d3,_0x4754ad._0x3561a0)}},'required':['command']},async *'execute'(_0x354d1d,_0x12b9f2){const _0x424bda={_0x29a0bf:0x44a,_0x4f8a98:0x4b6,_0x5c5947:0x46d,_0x5ef6cc:0x502,_0x263f69:0x45b,_0x4775d2:0x548,_0xda88b6:0x582,_0x220ab7:0x544},_0x2671bb={_0x2251ae:0xb3,_0x4bab05:0x9b,_0x4e0744:0xc2},_0x1a8ea5={_0x16e514:0x138},_0x274d96={_0x2b16e3:0x1c4,_0x47f38d:0x246,_0x3148ad:0x1e0},_0xbbf169={_0x9600cd:0xf3,_0x508be7:0x380},_0xf77c0f={_0x193664:0x257,_0x39bf0c:0x144},_0x30346b=_0x354d1d['timeoutMs']??_0x1ea378;if(!Number[_0x5c94c8(_0x977578._0x2c1a0d,_0x977578._0xffcb6d,_0x977578._0x1b76e5,_0x977578._0x3b545a)](_0x30346b)||_0x30346b<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x354d1d[_0x2c87f2(0x102,0xac,0xd6,0x44)]});throwIfAborted(_0x12b9f2['signal']);const _0x288877=resolveWorkingDirectory(_0x354d1d[_0x5c94c8(0x259,0x1b1,0x1ea,0x1f2)],_0x4fe77a),_0x42716c=_0x354d1d[_0x5c94c8(0x1d4,_0x977578._0x4f20f2,0x225,_0x977578._0xd493ac)]??![],_0x36b76e=resolveDefaultShell(_0x364c65['shellPath']),_0x768651=buildShellArgs(_0x354d1d[_0x2c87f2(0x14e,_0x977578._0x5bb8b8,0xd6,_0x977578._0x5e4f26)],_0x36b76e),_0x48ace7=_0x957778[_0x5c94c8(0x30b,_0x977578._0x16b304,_0x977578._0x265273,_0x977578._0x1e0fa1)]()===_0x2c87f2(-0x4a,-_0x977578._0x3cc407,-0x35,-0x91);let _0x2d68d9;try{_0x2d68d9=spawn(_0x36b76e,_0x768651,{'cwd':_0x288877,'env':{...process['env'],..._0x364c65[_0x2c87f2(_0x977578._0x48b2f6,_0x977578._0x488156,0x9e,_0x977578._0x3c02a1)]??{}},'stdio':_0x42716c?['ignore',_0x2c87f2(_0x977578._0xee0619,_0x977578._0x4ee9f2,0xb5,0xd0),_0x5c94c8(_0x977578._0x21fb1f,_0x977578._0x151eb6,_0x977578._0x9bd3b,_0x977578._0x257763)]:['ignore',_0x2c87f2(_0x977578._0x578c8b,-0x1e,0xf,-_0x977578._0x11088f),_0x5c94c8(0x27c,_0x977578._0x8e948b,_0x977578._0x595531,0x1a5)],'shell':![],'windowsHide':!![],'detached':!_0x48ace7});}catch(_0x51fc24){if(isErrnoException(_0x51fc24)&&_0x51fc24[_0x5c94c8(_0x977578._0x410f9e,_0x977578._0x92942d,0x1c3,0x1ea)]==='ENOENT')throw new ToolExecutionError(_0x5c94c8(0x279,_0x977578._0x6f422f,0x210,_0x977578._0x367815)+_0x36b76e,{'command':_0x354d1d[_0x5c94c8(_0x977578._0x296445,0x285,_0x977578._0x38dd37,0x350)],'cwd':_0x288877,'shellPath':_0x36b76e});throw new ToolExecutionError(_0x51fc24 instanceof Error?_0x51fc24[_0x5c94c8(_0x977578._0x4ecb3e,0x2e6,_0x977578._0x1df16b,_0x977578._0x208b38)]:String(_0x51fc24),{'command':_0x354d1d[_0x2c87f2(_0x977578._0x280aeb,_0x977578._0x137718,0xd6,_0x977578._0x2f89bc)],'cwd':_0x288877,'shellPath':_0x36b76e});}const _0xf9743c=[],_0x4e6439=[],_0x120ac3=new StringDecoder(_0x5c94c8(_0x977578._0x12e0d1,_0x977578._0x105532,_0x977578._0x2b7150,_0x977578._0x1112fd)),_0x58dff1=new StringDecoder(_0x2c87f2(_0x977578._0x14546b,-_0x977578._0x403c01,_0x977578._0x44e35f,-0x4e));let _0x3400ae,_0x4c0379=![];function _0x2c87f2(_0x23b405,_0x53b4c3,_0x13d9e1,_0x3da51a){return _0x48e6f7(_0x13d9e1- -_0xf77c0f._0x193664,_0x53b4c3-_0xf77c0f._0x39bf0c,_0x23b405,_0x3da51a-0x16b);}let _0xa9a2e6;const _0x2dbd3d=()=>{if(!_0x3400ae)return;const _0x493ff7=_0x3400ae;_0x3400ae=void 0x0,_0x493ff7();},_0x1b686e=async()=>{if(_0x4e6439['length']>0x0||_0x4c0379)return;await new Promise(_0x47ef89=>{_0x3400ae=_0x47ef89;});},_0x18390c=_0x207bd4=>{function _0x50cf7a(_0x573318,_0x442390,_0x5e733a,_0x27ffd8){return _0x5c94c8(_0x573318-_0xbbf169._0x9600cd,_0x442390-0x7b,_0x442390- -_0xbbf169._0x508be7,_0x573318);}appendChunk(_0xf9743c,_0x4e6439,_0x120ac3[_0x50cf7a(-0x15b,-_0x274d96._0x2b16e3,-_0x274d96._0x47f38d,-_0x274d96._0x3148ad)](_0x207bd4),_0x620eca,_0x2dbd3d);},_0x59c6b0=_0x2194e6=>{function _0x105dbc(_0xd6b95f,_0x18b4fb,_0x502b74,_0x4ded65){return _0x5c94c8(_0xd6b95f-_0x1a8ea5._0x16e514,_0x18b4fb-0x35,_0xd6b95f- -0xb8,_0x4ded65);}appendChunk(_0xf9743c,_0x4e6439,_0x58dff1[_0x105dbc(0x104,_0x46d3a4._0x6e185,_0x46d3a4._0x2df1b6,0xd5)](_0x2194e6),_0x620eca,_0x2dbd3d);};_0x2d68d9['stdout']?.['on']('data',_0x18390c),_0x2d68d9[_0x2c87f2(-_0x977578._0x53f2be,0x16,-_0x977578._0x2a6080,-0xaf)]?.['on'](_0x5c94c8(0x22b,0x148,_0x977578._0x50fc47,_0x977578._0x1f0b05),_0x59c6b0);let _0x5ac508=![],_0x36613a;const _0x5eca6a=addAbortListener(_0x12b9f2['signal'],()=>{const _0x59c224={_0x27c4d7:0x1e8,_0x5ed084:0x197},_0x12c23f={_0x585f01:0x120};_0xa9a2e6=toAbortError(_0x12b9f2[_0x279068(0xbe,_0x2671bb._0x2251ae,0x84,_0x2671bb._0x4bab05)][_0x279068(0x137,_0x2671bb._0x4e0744,0xee,0x74)]);function _0x279068(_0x2b9209,_0x4ce5b1,_0x2f6b1a,_0xbf7567){return _0x2c87f2(_0x2b9209,_0x4ce5b1-_0x12c23f._0x585f01,_0x2f6b1a-0x89,_0xbf7567-0x82);}_0x4c0379=!![],_0x2dbd3d();function _0x1008da(_0x701d0c,_0x34e727,_0x41996a,_0x2c6dfd){return _0x5c94c8(_0x701d0c-0xb,_0x34e727-_0x59c224._0x27c4d7,_0x701d0c- -_0x59c224._0x5ed084,_0x34e727);}try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}});function _0x5c94c8(_0x362136,_0x333e70,_0x555d51,_0x21cb34){return _0x4c7fb1(_0x362136-_0x23b60f._0x34b003,_0x21cb34,_0x555d51-0xd7,_0x555d51- -_0x23b60f._0x10f39f);}try{const _0x406501=new Promise((_0x1fa49f,_0x443887)=>{const _0x303573={_0x5400ca:0x162,_0x29e8d9:0x14c,_0x45795b:0x18f,_0x5f4078:0x161,_0xe8e9a1:0x1ec,_0x5d6bd3:0x593,_0x3c29d0:0x574,_0x5b3457:0x584},_0xbedadb={_0x41c4b2:0x2cd},_0x5ecd77={_0x55f5b8:0xe8},_0x3ec6fc={_0x396754:0x249,_0x46c297:0x2d1,_0xe4b7c7:0x22,_0x3d8bc7:0x6c},_0x3647ce={_0x2a6af0:0x1e8},_0xc145f4=()=>{const _0xc7e8cb={_0x3205c5:0x309},_0x5bbf63={_0xbe9ae9:0x317};function _0x980433(_0xc0818b,_0x1517cf,_0x65ec71,_0x2c6e1c){return _0x5314(_0x2c6e1c-_0x5bbf63._0xbe9ae9,_0x1517cf);}function _0x5ae2aa(_0x454ab7,_0xcc3be9,_0x4fd529,_0x18a4c0){return _0x5314(_0xcc3be9-_0xc7e8cb._0x3205c5,_0x4fd529);}_0x36613a&&(clearTimeout(_0x36613a),_0x36613a=void 0x0),_0x2d68d9[_0x5ae2aa(_0x424bda._0x29a0bf,_0x424bda._0x4f8a98,0x436,0x474)](_0x980433(0x4ad,0x539,_0x424bda._0x5c5947,0x4d9),_0x139130),_0x2d68d9[_0x5ae2aa(_0x424bda._0x5ef6cc,0x4b6,_0x424bda._0x263f69,_0x424bda._0x4775d2)](_0x980433(_0x424bda._0xda88b6,0x568,0x4e3,_0x424bda._0x220ab7),_0x2991fb);};function _0x28ca20(_0x249922,_0x5cdac7,_0x5286be,_0x29f42a){return _0x2c87f2(_0x5cdac7,_0x5cdac7-0xcd,_0x5286be- -0x12e,_0x29f42a-_0x3647ce._0x2a6af0);}const _0x139130=_0x20ef65=>{_0x4c0379=!![],_0x2dbd3d(),_0xc145f4(),_0x443887(_0xa9a2e6??_0x20ef65);},_0x2991fb=(_0x5ee041,_0x551874)=>{const _0x4dc0df={_0x30db17:0x72};_0x5ac508=!![];function _0x313230(_0x1136dc,_0x5439cd,_0x20430e,_0x15307e){return _0x5314(_0x20430e- -0x16b,_0x5439cd);}appendChunk(_0xf9743c,_0x4e6439,_0x120ac3[_0x232ff4(_0x3ec6fc._0x396754,_0x3ec6fc._0x46c297,0x28e,0x1c7)](),_0x620eca,_0x2dbd3d),appendChunk(_0xf9743c,_0x4e6439,_0x58dff1[_0x313230(_0x3ec6fc._0xe4b7c7,0xcd,_0x3ec6fc._0x3d8bc7,-0x10)](),_0x620eca,_0x2dbd3d),_0x4c0379=!![],_0x2dbd3d();function _0x232ff4(_0x4c0f65,_0x3ab0d2,_0x21eddd,_0x3c279a){return _0x5314(_0x4c0f65-_0x4dc0df._0x30db17,_0x3ab0d2);}_0xc145f4();if(_0xa9a2e6){_0x443887(_0xa9a2e6);return;}_0x1fa49f({'code':_0x5ee041,'signal':_0x551874});};function _0x5f3dad(_0x820ddd,_0x19bd8e,_0xa19a5f,_0x36f29a){return _0x2c87f2(_0x19bd8e,_0x19bd8e-_0x5ecd77._0x55f5b8,_0xa19a5f-0x2d6,_0x36f29a-0x1c3);}_0x36613a=setTimeout(()=>{const _0x428a86={_0x238129:0x70};_0x4c0379=!![];function _0x45b44e(_0x536392,_0xd569ef,_0xc89b54,_0x404343){return _0x5314(_0xd569ef- -_0x428a86._0x238129,_0x536392);}_0x2dbd3d();function _0x1bcf43(_0x20be5f,_0x12e124,_0x29a3cc,_0x4cbbbd){return _0x5314(_0x29a3cc-_0xbedadb._0x41c4b2,_0x4cbbbd);}_0xc145f4();try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}_0x443887(new ToolExecutionError(_0x45b44e(_0x303573._0x5400ca,0x18e,_0x303573._0x29e8d9,0x207)+_0x30346b+_0x45b44e(0x131,_0x303573._0x45795b,_0x303573._0x5f4078,_0x303573._0xe8e9a1),{'command':_0x354d1d[_0x1bcf43(0x579,_0x303573._0x5d6bd3,_0x303573._0x3c29d0,_0x303573._0x5b3457)],'cwd':_0x288877,'shellPath':_0x36b76e,'timeoutMs':_0x30346b,'timedOut':!![]}));},_0x30346b),_0x2d68d9[_0x5f3dad(_0x1610a3._0x14f995,_0x1610a3._0x5b4d13,_0x1610a3._0x4a509e,0x316)](_0x28ca20(-_0x1610a3._0x415af1,-_0x1610a3._0x4de917,-0x13d,-_0x1610a3._0x586f2e),_0x139130),_0x2d68d9[_0x5f3dad(_0x1610a3._0x2bef94,0x2ee,_0x1610a3._0x4a509e,_0x1610a3._0x1f65ff)](_0x5f3dad(_0x1610a3._0x31ca1c,_0x1610a3._0x32ca9c,0x332,_0x1610a3._0x3ea7f0),_0x2991fb);});while(_0x4e6439[_0x2c87f2(0x57,-0x8c,_0x977578._0x3c3283,0x11)]>0x0||!_0x4c0379){if(_0x4e6439[_0x5c94c8(0x222,_0x977578._0x2946fc,0x1ef,0x258)]===0x0){await _0x1b686e();continue;}const _0x14c7a6=_0x4e6439[_0x5c94c8(0x2cf,_0x977578._0x5db1ff,_0x977578._0x5142bd,0x2a9)]();_0x14c7a6!==void 0x0&&(yield _0x14c7a6);}const _0x10dc33=await _0x406501,_0x45ae46=_0x42716c?_0x5c94c8(_0x977578._0x342567,_0x977578._0x41efb5,_0x977578._0x40c0f9,_0x977578._0x4bf562)+(_0x10dc33[_0x5c94c8(0x219,_0x977578._0x4bc008,_0x977578._0x56551b,0x1b8)]??0x0):_0xf9743c[_0x2c87f2(-0xba,-_0x977578._0xf217d7,-0x36,-0xbb)](''),_0x38a736={'command':_0x354d1d[_0x5c94c8(0x2c8,_0x977578._0x487629,0x2c0,0x2b2)],'cwd':_0x288877,'exitCode':_0x10dc33[_0x2c87f2(-0x94,-_0x977578._0xbda03,-_0x977578._0xc9e796,-_0x977578._0x18e4e7)]??0x0,'signal':_0x10dc33[_0x5c94c8(0x1df,_0x977578._0x9950e,_0x977578._0x2068d5,0x25a)],'ignoreOutput':_0x42716c,'shellPath':_0x36b76e,'timeoutMs':_0x30346b};if(_0x10dc33[_0x5c94c8(0x21f,_0x977578._0x445c53,0x1c3,_0x977578._0x34afdd)]!==0x0)throw new ToolExecutionError(_0x45ae46||_0x2c87f2(_0x977578._0xdcd8a,_0x977578._0x38247c,_0x977578._0x39a5da,_0x977578._0x35bb42)+(_0x10dc33[_0x5c94c8(_0x977578._0x55d7e4,0x135,_0x977578._0x56551b,_0x977578._0x540ff4)]??0x0),_0x38a736);return createToolOutput(_0x45ae46,_0x38a736);}catch(_0x505d82){while(_0x4e6439[_0x5c94c8(0x19a,0x199,_0x977578._0x41a0db,_0x977578._0x347b15)]>0x0){const _0x5f291d=_0x4e6439[_0x2c87f2(0x9,_0x977578._0x43df5c,_0x977578._0x2dd64f,0x1b)]();_0x5f291d!==void 0x0&&(yield _0x5f291d);}if(_0x505d82 instanceof ToolExecutionError)throw _0x505d82;if(_0xa9a2e6)throw _0xa9a2e6;if(isErrnoException(_0x505d82)&&_0x505d82[_0x5c94c8(0x1cd,0x15c,0x1c3,0x169)]==='ENOENT')throw new ToolExecutionError(_0x2c87f2(_0x977578._0x4531b6,-_0x977578._0x38d3e5,0x26,-_0x977578._0x995d15)+_0x36b76e,{'command':_0x354d1d[_0x2c87f2(_0x977578._0x385016,0xa2,_0x977578._0x172802,_0x977578._0x351a1b)],'cwd':_0x288877,'shellPath':_0x36b76e});throw new ToolExecutionError(_0x505d82 instanceof Error?_0x505d82[_0x5c94c8(_0x977578._0x339f9c,_0x977578._0x487a5e,0x26c,0x25c)]:String(_0x505d82),{'command':_0x354d1d[_0x5c94c8(0x298,0x2c8,_0x977578._0x574046,0x231)],'cwd':_0x288877,'shellPath':_0x36b76e});}finally{_0x36613a&&clearTimeout(_0x36613a);_0x5eca6a(),_0x2d68d9[_0x5c94c8(_0x977578._0x1e3be9,0x199,0x1c2,_0x977578._0xfd8bf3)]?.[_0x5c94c8(0x1ea,0x23d,_0x977578._0x504707,0x1a3)](_0x2c87f2(-_0x977578._0x4bbd8c,-_0x977578._0x31d8cc,-_0x977578._0x31c085,0xd),_0x18390c),_0x2d68d9[_0x5c94c8(0x1df,_0x977578._0x1591bc,_0x977578._0x487858,_0x977578._0x4ac4bf)]?.[_0x2c87f2(_0x977578._0xbef472,-0x7c,-_0x977578._0x3bd105,-_0x977578._0x3f4e11)](_0x5c94c8(0x127,_0x977578._0x44cb3c,_0x977578._0x229b3d,_0x977578._0x3a34f9),_0x59c6b0);if(!_0x5ac508&&_0x2d68d9[_0x2c87f2(-0x44,-0x2,0x9,-0x21)]&&!_0x2d68d9['killed'])try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}}}});}function createShellExecTool(_0x3de247={}){return createBashTool(_0x3de247);}function tokenizeArgs(_0x451fed){const _0x2c16ce={_0x4c6446:0x348,_0x3702b6:0x2fa,_0x274fca:0x2c2,_0x493fa5:0x28a,_0x5dbec8:0x317,_0x51f158:0x2fc,_0x43126b:0x35d,_0x518a28:0x332,_0x54cafe:0x385},_0x41d0ff={_0x1761b7:0xa0,_0x94a9b2:0x143},_0x4cc044={_0x36779f:0x157,_0x360f3a:0x0};function _0x568e4b(_0x267f1b,_0xe9999c,_0x3dc6e4,_0x5cf33a){return _0x452c58(_0x267f1b-_0x4cc044._0x36779f,_0x3dc6e4,_0x3dc6e4-_0x4cc044._0x360f3a,_0x5cf33a-0x66);}const _0x240764=[];let _0x3d8ff9='',_0x3fbeec=0x0;while(_0x3fbeec<_0x451fed[_0x568e4b(0x325,0x38f,0x361,0x2ce)]){const _0x1df05c=_0x451fed[_0x3fbeec];if(_0x1df05c==='\x5c'&&_0x3fbeec+0x1<_0x451fed[_0x568e4b(0x325,0x343,_0x2c16ce._0x4c6446,_0x2c16ce._0x3702b6)])_0x3d8ff9+=_0x451fed[_0x3fbeec+0x1],_0x3fbeec+=0x2;else{if(_0x1df05c==='\x22'||_0x1df05c==='\x27'){const _0x2e5d98=_0x1df05c;_0x3fbeec++;while(_0x3fbeec<_0x451fed['length']&&_0x451fed[_0x3fbeec]!==_0x2e5d98){_0x451fed[_0x3fbeec]==='\x5c'&&_0x3fbeec+0x1<_0x451fed[_0x3239a8(_0x2c16ce._0x274fca,_0x2c16ce._0x493fa5,_0x2c16ce._0x5dbec8,0x36f)]?(_0x3d8ff9+=_0x451fed[_0x3fbeec+0x1],_0x3fbeec+=0x2):(_0x3d8ff9+=_0x451fed[_0x3fbeec],_0x3fbeec++);}_0x3fbeec++;}else _0x1df05c!==void 0x0&&/\s/[_0x568e4b(0x304,_0x2c16ce._0x51f158,_0x2c16ce._0x43126b,0x32e)](_0x1df05c)?(_0x3d8ff9&&(_0x240764[_0x3239a8(0x387,_0x2c16ce._0x518a28,0x346,0x341)](_0x3d8ff9),_0x3d8ff9=''),_0x3fbeec++):(_0x3d8ff9+=_0x1df05c,_0x3fbeec++);}}function _0x3239a8(_0x36a4c1,_0x6ae009,_0x56b1dc,_0x150ef6){return _0x44530c(_0x36a4c1,_0x6ae009-0x3c,_0x56b1dc-_0x41d0ff._0x1761b7,_0x56b1dc- -_0x41d0ff._0x94a9b2);}if(_0x3d8ff9)_0x240764[_0x568e4b(0x354,0x323,_0x2c16ce._0x54cafe,0x356)](_0x3d8ff9);return _0x240764;}function renderCommandPrompt(_0x888a9a,_0x7cfa58,_0x39a67b){const _0x57280d={_0x29812f:0x144,_0x1b3d02:0xcf,_0x38f89d:0xa2,_0xa26972:0x190,_0x52afe8:0x119,_0x7da94f:0x101,_0x1d129e:0xd2,_0x484ce1:0x14b,_0x630b61:0x165,_0x5146db:0xf9,_0x390878:0x2a,_0x7f750:0x62,_0x3218d6:0x84,_0x134e1a:0xf3},_0x3d5ea4={_0x26e68a:0xb1,_0x57e298:0xf5,_0x373be7:0x527},_0x2b5ffb={_0x230fa8:0xa};let _0xec9b2f=_0x888a9a,_0x56e611=![];const _0x5b8eaa=tokenizeArgs(_0x39a67b);function _0x591d7e(_0x5c1a1c,_0x1ea933,_0x2730f8,_0x5e0510){return _0x452c58(_0x5e0510- -0x2ce,_0x1ea933,_0x2730f8-_0x2b5ffb._0x230fa8,_0x5e0510-0x13a);}_0xec9b2f=_0xec9b2f[_0x591d7e(-_0x57280d._0x29812f,-_0x57280d._0x1b3d02,-0xdd,-0xf9)](/\$ARGUMENTS\[(\d+)\]/g,(_0x551460,_0x28f598)=>{return _0x56e611=!![],_0x5b8eaa[Number(_0x28f598)]??'';}),_0xec9b2f=_0xec9b2f[_0x37487a(-0x110,-_0x57280d._0x38f89d,-0xc6,-0x2f)](/\$ARGUMENTS\b/g,()=>{return _0x56e611=!![],_0x39a67b;});if(_0x7cfa58)for(let _0x353122=0x0;_0x353122<_0x7cfa58[_0x591d7e(-_0x57280d._0xa26972,-_0x57280d._0x52afe8,-0x12e,-0x100)];_0x353122++){const _0x29842e=_0x7cfa58[_0x353122];_0x29842e&&(_0xec9b2f=_0xec9b2f[_0x591d7e(-_0x57280d._0x7da94f,-_0x57280d._0x1d129e,-_0x57280d._0x484ce1,-0xf9)](new RegExp('\x5c$'+_0x29842e+'\x5cb','g'),()=>{return _0x56e611=!![],_0x5b8eaa[_0x353122]??'';}));}_0xec9b2f=_0xec9b2f[_0x591d7e(-0x84,-0x114,-_0x57280d._0x630b61,-_0x57280d._0x5146db)](/\$(\d+)\b/g,(_0x4d47e4,_0x211e67)=>{return _0x56e611=!![],_0x5b8eaa[Number(_0x211e67)]??'';});function _0x37487a(_0x4fc903,_0x4ae40f,_0x48b6eb,_0x4c331d){return _0x44530c(_0x4c331d,_0x4ae40f-_0x3d5ea4._0x26e68a,_0x48b6eb-_0x3d5ea4._0x57e298,_0x48b6eb- -_0x3d5ea4._0x373be7);}return!_0x56e611&&_0x39a67b[_0x37487a(0x56,-0x62,-0x41,_0x57280d._0x390878)]()&&(_0xec9b2f=_0xec9b2f+_0x591d7e(-_0x57280d._0x7f750,-0x72,-_0x57280d._0x3218d6,-_0x57280d._0x134e1a)+_0x39a67b),_0xec9b2f;}function buildDescription(_0x2138c3){const _0x379fb6={_0x2aa504:0x520,_0x24e68e:0x470,_0x3ef7fd:0xbd,_0x4c6c49:0xd0,_0x2562b8:0x126,_0x175926:0x118,_0x58cecd:0xca,_0x4d3889:0x40,_0x1e6a1b:0x1f,_0x587284:0x4f,_0x83373e:0x44e,_0x9fe0b6:0x4e0,_0x2626e4:0x4b0,_0x2527da:0x417,_0x326819:0x508,_0x4cc8ee:0x48c,_0x4a4636:0x4b6,_0x303518:0x4c6,_0x574ff2:0x4b6,_0x41e60b:0x49b,_0x4e07f8:0x418,_0x5e7de0:0x522,_0x22c563:0x48e},_0x565d67={_0x365c4e:0xe0},_0x3db593={_0x51495f:0x172};function _0x658768(_0x180d93,_0x3e1123,_0x13fce9,_0x3e02b7){return _0x44530c(_0x13fce9,_0x3e1123-0x12e,_0x13fce9-_0x3db593._0x51495f,_0x3e02b7- -0x511);}function _0x4a9751(_0x47b571,_0x1b0603,_0x20d4cb,_0x28c928){return _0x452c58(_0x47b571-0x2fb,_0x28c928,_0x20d4cb-_0x565d67._0x365c4e,_0x28c928-0x1e9);}if(_0x2138c3[_0x4a9751(0x4c9,_0x379fb6._0x2aa504,_0x379fb6._0x24e68e,0x447)]===0x0)return[_0x658768(-0xd0,-0xd2,-_0x379fb6._0x3ef7fd,-_0x379fb6._0x4c6c49),_0x658768(-_0x379fb6._0x2562b8,-_0x379fb6._0x175926,-0x12e,-_0x379fb6._0x58cecd),_0x658768(-_0x379fb6._0x4d3889,_0x379fb6._0x1e6a1b,-0x2a,-_0x379fb6._0x587284)][_0x4a9751(0x48e,0x457,_0x379fb6._0x83373e,_0x379fb6._0x9fe0b6)]('\x0a');const _0x186032=[_0x4a9751(_0x379fb6._0x2626e4,_0x379fb6._0x2527da,_0x379fb6._0x326819,_0x379fb6._0x4cc8ee),_0x4a9751(_0x379fb6._0x4a4636,_0x379fb6._0x303518,_0x379fb6._0x574ff2,0x46a),_0x4a9751(_0x379fb6._0x41e60b,_0x379fb6._0x4e07f8,0x503,_0x379fb6._0x5e7de0),..._0x2138c3['map'](_0x570deb=>_0x570deb[_0x4a9751(0x550,0x4f3,0x55c,0x4c7)]?'-\x20'+_0x570deb[_0x4a9751(0x4b9,0x546,0x52b,0x4d0)]+'\x20'+_0x570deb[_0x4a9751(0x550,0x587,0x55f,0x54b)]+':\x20'+_0x570deb[_0x4a9751(0x508,0x49d,0x4a6,0x572)]:'-\x20'+_0x570deb[_0x658768(-0x157,-0x72,-0xc0,-0xc7)]+':\x20'+_0x570deb[_0x658768(-0xf3,-0x62,-0xef,-0x78)])];return _0x186032[_0x4a9751(_0x379fb6._0x22c563,0x4af,0x497,0x469)]('\x0a');}function createInvokeCommandTool(_0x6cdde5){const _0x25083b={_0x144cc4:0x2e9,_0x1e385f:0x30a,_0x6768b:0x2cf,_0x439f3d:0x236,_0x1ba49e:0x2ce,_0xeb2cb1:0x2c8,_0x10e5b1:0x295,_0x3b9ffc:0x25c,_0x3fcbb3:0x28f,_0x367a29:0x226,_0x2594a8:0x277,_0x5eb880:0x2e5,_0x1975b2:0x3ac,_0x3ac303:0x24b,_0x429ed6:0x2c3,_0x155894:0x23b},_0x3ea06a={_0x3b5f9d:0x24b,_0x5896ab:0x307,_0x3f201b:0x31d,_0x4f4afc:0x309,_0x3be6ae:0x2e9,_0x3a2fef:0x263,_0x303587:0x370,_0xb39370:0x3ac,_0x3b21c7:0x2a6,_0x5e87ae:0x321,_0x5b8778:0x2de,_0x469899:0x34c,_0x5be7e8:0x1b3,_0x12c3af:0x15f,_0x240a46:0x113,_0x512cca:0x1b7,_0x4b461e:0x2c2,_0x195aca:0x2da,_0x38fe3a:0x333,_0x292e55:0x2de,_0x98ae4c:0x31b,_0x560155:0x334,_0x288578:0x315,_0x5eec72:0x2ce,_0x1d92b8:0x2e4},_0x435380={_0x553ee8:0xfa,_0x12b2d6:0x157,_0x44ced7:0xb4},_0x6ce211={_0x16d634:0x125,_0x4dc0f0:0x220},_0x478cc8={_0x556c2d:0x103,_0x11d52f:0x1db};function _0x595237(_0x824086,_0x318bf0,_0x478a20,_0x13d5e4){return _0x44530c(_0x13d5e4,_0x318bf0-0x1d8,_0x478a20-_0x478cc8._0x556c2d,_0x478a20- -_0x478cc8._0x11d52f);}function _0x42a155(_0x5750ea,_0x55d194,_0x5d59ff,_0x578127){return _0x44530c(_0x578127,_0x55d194-_0x6ce211._0x16d634,_0x5d59ff-0x3a,_0x5d59ff- -_0x6ce211._0x4dc0f0);}const _0x4f6b05=new Map(_0x6cdde5[_0x595237(0x2ad,_0x25083b._0x144cc4,_0x25083b._0x1e385f,0x36e)][_0x42a155(_0x25083b._0x6768b,_0x25083b._0x439f3d,0x28d,_0x25083b._0x1ba49e)](_0xe5a983=>[_0xe5a983[_0x42a155(0x27f,0x2b3,0x22a,0x1c7)],_0xe5a983])),_0x3e1c90=buildDescription(_0x6cdde5[_0x595237(_0x25083b._0xeb2cb1,_0x25083b._0x10e5b1,0x30a,0x395)]);return defineTool({'name':_0x595237(_0x25083b._0x3b9ffc,_0x25083b._0x3fcbb3,0x29f,_0x25083b._0x367a29),'description':_0x3e1c90,'inputSchema':{'type':_0x42a155(_0x25083b._0x2594a8,0x364,_0x25083b._0x5eb880,0x2d9),'properties':{'name':{'type':'string'},'args':{'type':_0x595237(0x30f,_0x25083b._0x1975b2,0x325,0x2a7)}},'required':[_0x42a155(_0x25083b._0x3ac303,_0x25083b._0x429ed6,0x22a,_0x25083b._0x155894)]},async *'execute'(_0x21faaa){const _0x1f3c52={_0x2410f4:0x152},_0x420f6c=_0x4f6b05['get'](_0x21faaa[_0xcfe552(0x2de,_0x3ea06a._0x3b5f9d,0x2f5,_0x3ea06a._0x5896ab)]);if(!_0x420f6c){const _0x434306=Array['from'](_0x4f6b05[_0xcfe552(0x36f,0x324,_0x3ea06a._0x3f201b,_0x3ea06a._0x4f4afc)]())[_0xcfe552(0x2b3,0x220,_0x3ea06a._0x3be6ae,_0x3ea06a._0x3a2fef)](',\x20');throw new ToolExecutionError(_0xcfe552(0x337,_0x3ea06a._0x303587,_0x3ea06a._0xb39370,_0x3ea06a._0x3b21c7)+_0x21faaa['name']+_0xcfe552(0x38b,_0x3ea06a._0x5e87ae,0x2f1,0x32e)+_0x434306,{'name':_0x21faaa[_0xcfe552(_0x3ea06a._0x5b8778,0x2ba,0x24e,_0x3ea06a._0x469899)]});}const _0x286b6a=await _0x6cdde5[_0x39572d(_0x3ea06a._0x5be7e8,_0x3ea06a._0x12c3af,0x11d,0xbb)](_0x420f6c),_0x1b993e=_0x21faaa['args']??'',_0x457f1f=renderCommandPrompt(_0x286b6a[_0x39572d(_0x3ea06a._0x240a46,_0x3ea06a._0x512cca,0x13d,0x16d)],_0x286b6a[_0xcfe552(0x2fc,_0x3ea06a._0x4b461e,_0x3ea06a._0x195aca,_0x3ea06a._0x38fe3a)],_0x1b993e);yield createToolOutput(_0x457f1f,{'id':_0x286b6a['id'],'name':_0x286b6a[_0xcfe552(_0x3ea06a._0x292e55,_0x3ea06a._0x98ae4c,0x33b,_0x3ea06a._0x560155)],'path':_0x420f6c[_0xcfe552(0x29d,_0x3ea06a._0x288578,_0x3ea06a._0x5eec72,0x247)][_0xcfe552(0x2d7,0x251,0x2e8,_0x3ea06a._0x1d92b8)]});function _0xcfe552(_0x265301,_0xf63813,_0x954b08,_0x5c506c){return _0x42a155(_0x265301-_0x435380._0x553ee8,_0xf63813-_0x435380._0x12b2d6,_0x265301-_0x435380._0x44ced7,_0xf63813);}function _0x39572d(_0xc4dd3e,_0x123a21,_0x4496f3,_0x262ad2){return _0x42a155(_0xc4dd3e-0xd7,_0x123a21-0xa1,_0x4496f3- -_0x1f3c52._0x2410f4,_0x123a21);}return void 0x0;}});}import{createHash}from'crypto';import{readFile,rename,stat as _0xa29099,writeFile}from'fs/promises';import*as _0x5afd85 from'path';import{stat}from'fs/promises';import*as _0x31f93b from'path';function _0x4186(){const _0x48f90c=['rMLSzu5LDW','B25Jzq','zgvZy3jPChrPB24','twLJCM9ZB2z0','ls1YzwDLEha','CMLWz3jLCcbMywLSzwq6ia','zMfPBgvK','C2vYDMvYCW','l3vZCI9IAw4VCMC','lNrTCc4','zgvMyxvSDen3za','oduZmZG4nfLkAujzBG','q29TBwfUzcaN','r3jLCa','C2HPzNq','ywXSB3DLzfrVB2XZ','l3vZCI9IAw4VyMfZAa','zgvSzwDHDgvKlxj1BI0','Dg9VBa','C3rVCMfNzurPCG','D2HPy2GGCMC','Dg9VBfjLC3vSDhm','BwfW','ignVBxbSzxrLzc4','Aw5ZDhj1y3rPB25Z','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','y2XVC2u','mc4WlJa','C2vZC2LVBKLK','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','AxndB250zxH0','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','CMvZDwX0','CMvHC29U','C2vYDMvYtMfTzq','q29Tu3bLyW','ChjVCgvYDgLLCW','rMLSzuvKAxq','yxv0Aa','qxnZAwDUvgfZAW','Dg9VBhmVy2fSBa','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','ywDLBNrjza','qxv0Ag9YAxPHDgLVBG','xg5DkJ8','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','lw5i','ugf0AcbPCYbUB3qGysbMAwXLoIa','C2vUza','qMvHCMvYia','l2jPBI9ZAa','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','DxjS','C3rYAw5NAwz5','mZa3mJm0CgDWA293','C3jJl3nOyxjLzc90ExbLCY50CW','Bg9HzfnRAwXS','Dhj1BMm','zxHPDcbJB2rLia','CgfJA2fNzs5QC29U','u2TPBgWGjW','BwvZC2fNzq','Dg9VBenHBgXjza','ndi2nZC0ogjfs3rcqq','rMLSzsb3CML0DgvUigf0ia','A2v5CW','BNvTyMvY','B25szwrPCMvJDa','qMfZAa','yMfZzw5HBwu','yxjNCW','yxjNDw1LBNriAw50','lMPZB24','AxneAxjLy3rVCNK','C3bSAxq','y29TBwfUzhm','DhjPBq','Dg9VBhm','zMLSzvbHDgG','DhLWzq','y2fSBgjHy2TvCMW','l3vZCI9SB2nHBc9IAw4VCMC','AxrLBxm','y29UzMLN','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLigzPBguGy29UDgvUDhmU','B2XKvgv4Da','Ahr0Ca','ywDLBNrZ','zw52','ls1MB2XSB3C','CgXHDgzVCM0','tM8GC3vJAcbMAwXLoIaN','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','BgLZDfrVB2XZ','Dg9Rzw5Z','mtyWtxzwr1DA','Aw5JBhvKzq','CMvXDwLYzwq','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','zNjVBq','CMvSyxrPDMu','C3rYAw5N','BwLU','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','B2f1DgG','ru5pru5u','B2jQzwn0','ls1NBg9IpseUz2L0lYO','zMLUywXnzxnZywDL','y29UC3rYDwn0B3i','zw50CMLLCW','AwDUB3jL','zgLZywjSzwq','y2XPzw50twv0ywrHDgfvCMW','yM9VBgvHBG','C2vYDMvY','C29YDa','n2LtB3DNvq','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','yMLYDgH0Aw1L','Aw5KzxHpzG','AxnbCNjHEq','tunqihnLCNzLCIa','y2f0y2G','BxrPBwvnCW','AgvHzgvYCW','CMvXDwvZDa','ndG0nJvrrurvChC','BNv2Aw4','DhjHBNnWB3j0','zgLYBMfTzq','CMvZB2X2zq','y29UBMvJDa','wZ0+nY04kcLD','y29UDgvUDa','Bg9JywXLq29TCgfYzq','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','BwnWxW','CNvUswq','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','AxnbyNnVBhv0zq','AxnfCNjVCG','C2nVCgvZ','y2XPzw50','y29TBwfUza','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','qMfZzsbKAxjLy3rVCNK6ia','Bwf4','Dg9Rzw5tDg9YywDLs2v5','ls1MAwXLCW','ls1OAwrKzw4','BgLUzvn0yxj0','yxnZAwDU','BMv3vgv4Da','zgf0yq','CMfUzg9T','Dg9Rzw4','zgLZy292zxj5','Cgf0DgvYBIbPCYbYzxf1AxjLza','A2LSBa','y29UBMvJDgLVBG','D2HLCMuGCMC','ig1HDgnO','ihDHCYbHyM9YDgvKlG','u0Lhs0Lmta','Aw50zwDLCG','C291CMnL','mZaZmJu0t25lvxvd','l2jPBI9YzW','Aw5WDxrty2HLBwe','C3rKzxjY','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','zgLNzxn0','v2LUr2v0','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','y29UBMvJDgvK','rMLUzcb3B3jRC3bHy2uGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','o1TExg5DkJ8','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','DgfZAW','yMvHCMvY','y2HHCKnVzgvbDa','vw5HDxrOB3jPEMvKrxjYB3i','y2fSBfrVB2W','C2HHmJu2','ls1NBg9I','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','AM9PBG','D2LUmZi','Aw5WDxq','tNv2Aw4','tgLUzsa','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','zgLYzwn0B3j5','D3jPDgu','ywXS','ugf0AcbPCYbVDxrZAwrLihDVCMTZCgfJztOG','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','uhjVz3jHBuzPBgvZkhG4nIK','qxzHAwXHyMXLignVBw1HBMrZoG','C3rKB3v0','y29Kzq','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','B2zM','AxngAw5PDgu','AxngAwXL','B3v0Chv0','rwrPDcbHifvurI04ihrLEhqGzMLSzsbIEsbYzxbSywnPBMCGDgHLigzPCNn0igv4ywn0ihrLEhqGC2vNBwvUDc4','BgLUzvrLEhq','C3jJl2fNzw50l2fNzw50lNrZ','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','DgvZDa','DMvYAwzPzxi','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','yxv0Ag9YAxPHDgLVBL9JB2rL','igzYB20G','yxjYyxK','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','BxrPBwu','Cgf0Aa','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLlG','r2XVyG','zxjYB3i','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','y3jSzG','zMLSDgvY','BMfTzq','m21SAxvRwq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','B3jPz2LUvg9VBenHBgXjza','lI4U','l2jPBI9IyxnO','C2LNBMfS','BgLTAxq','ChjLzML4','C3rHDgu','CNvUBMLUzW','y3DK','Bw9Kzq','Bwf0y2HLCW','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','ugf0AcbUB3qGzM91BMq6ia','BgvUz3rO','zw5K','C2XPy2u','Dg9ju09tDhjPBMC','CgLK','C2TPBgXZ','CgfYC2vjBNq','CMvWBgfJzq','zgLZy292zxj5u3rHDgu','Dgv4Da','CgLWzq','ywjVCNrLza','BM93','cGPbuKDvtuvovfm6ia','yxjNDw1LBNrZ','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','u3rHCNrLzcbHz2vUDcbYDw4G','C2v0','C3rHDhvZ','zw5HyMXLza','DhjPBuvUza','ls0T','zxjYB3jnzxnZywDL','mte3mZy2ngXsBLzZDW','tunqihrVB2WG','CMvMCMvZAf90B2TLBG','BgLUzuvUza','rMLSzvjLywq','Dg9tDhjPBMC','tg9HzgvKigzYB206ia','igzHAwXLzc4','w1bFxL1BxhnCu10QpW','sw52B2TLq29TBwfUza','u2HLBgWGBM90igzVDw5KoIa','lu5VuhjVzMLSzq','y29KzvzLCMLMAwvY','y29UDgv4Da','zMLSzq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','y21KlMv4zq','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','ig1Z','z2v0','ntaWnJG4nuzurwXOBa','DxrMoa','zhj5uNvU','DxbKyxrL','ChvZAa','CMCUzxHL','y2XPzw50sw5MB3jTyxrPB24','C3rYAxbbBNnP','C3LTBgLUAW','CMLWz3jLCa','Bg9HzenVBw1HBMq','AwDUB3jLt3v0Chv0','Cgf0DgvYBG','Agv4','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','C2L6zq','z2XVyG'];_0x4186=function(){return _0x48f90c;};return _0x4186();}function resolveWorkspacePath(_0x4fb237,_0x373ad8){const _0x250845={_0x75a60a:0x3b5,_0x5f0c7b:0x351,_0x5a2858:0x2fe,_0x37ec79:0x338,_0x3f9e3f:0x2ef,_0x294dfc:0x343,_0x242e00:0x2f2},_0x569ff6={_0x45de4f:0x123,_0x5885ab:0xbd,_0x10b765:0x120},_0x23bd77={_0x24c58b:0x5b},_0x44bceb=_0x31f93b[_0x157155(_0x250845._0x75a60a,0x429,_0x250845._0x5f0c7b,0x333)](_0x4fb237),_0x5ca260=_0x31f93b[_0x1858d3(0x37c,0x3d2,0x2a1,0x33a)](_0x44bceb,_0x373ad8);function _0x1858d3(_0x5d44d2,_0x38103e,_0x397366,_0x326a1d){return _0x44530c(_0x38103e,_0x38103e-_0x23bd77._0x24c58b,_0x397366-0x6b,_0x326a1d- -0x1e4);}const _0x2f5136=_0x31f93b[_0x157155(0x396,0x376,_0x250845._0x5a2858,0x40b)](_0x44bceb,_0x5ca260);function _0x157155(_0x119dc0,_0x1f5c9f,_0x4e0653,_0x52bd1a){return _0x452c58(_0x119dc0-_0x569ff6._0x45de4f,_0x1f5c9f,_0x4e0653-_0x569ff6._0x5885ab,_0x52bd1a-_0x569ff6._0x10b765);}if(_0x2f5136===''||!_0x2f5136['startsWith']('..')&&!_0x31f93b[_0x1858d3(_0x250845._0x37ec79,0x2fc,_0x250845._0x3f9e3f,_0x250845._0x294dfc)](_0x2f5136))return _0x5ca260;throw new ToolExecutionError(_0x157155(0x2c0,0x34a,0x257,_0x250845._0x242e00)+_0x373ad8,{'path':_0x373ad8,'rootDir':_0x44bceb});}async function assertWorkspaceFile(_0x430b4b){const _0xda8109={_0xe42ab1:0x282,_0x34e98c:0x2a7},_0x4f4b6e={_0x3fdc01:0x128};function _0x4b2c38(_0x1d8ca0,_0x5af609,_0x4e0963,_0x14b6bb){return _0x44530c(_0x1d8ca0,_0x5af609-0x6e,_0x4e0963-_0x4f4b6e._0x3fdc01,_0x4e0963- -0x247);}const _0x349182=await stat(_0x430b4b);if(!_0x349182['isFile']())throw new ToolExecutionError(_0x4b2c38(0x1e6,0x1e6,_0xda8109._0xe42ab1,_0xda8109._0x34e98c)+_0x430b4b,{'path':_0x430b4b});}function isProbablyBinary(_0x332eb8){return _0x332eb8['includes'](0x0);}function detectEol(_0x2687fd){const _0x2f83e8={_0xc508d9:0x158,_0x11765e:0x205,_0x5caceb:0x497,_0x5b8954:0x40c,_0x38e121:0x4a4,_0x3a19f8:0x1f1,_0x35d9fc:0x3de,_0x272063:0x412},_0x150a08={_0x46b0bd:0x10a};function _0x40a47b(_0x23d735,_0x26d96b,_0x119041,_0x574b43){return _0x452c58(_0x26d96b- -0x9,_0x574b43,_0x119041-0xdc,_0x574b43-_0x150a08._0x46b0bd);}function _0x49aa81(_0x5dcf16,_0x3dcd62,_0x244c69,_0x2d71db){return _0x452c58(_0x244c69-0x2ba,_0x5dcf16,_0x244c69-0xad,_0x2d71db-0x48);}return/\r\n/[_0x40a47b(_0x2f83e8._0xc508d9,0x1a4,_0x2f83e8._0x11765e,0x187)](_0x2687fd[_0x49aa81(_0x2f83e8._0x5caceb,_0x2f83e8._0x5b8954,_0x2f83e8._0x38e121,0x4aa)](_0x40a47b(0x183,_0x2f83e8._0x3a19f8,0x21e,0x217)))?_0x49aa81(_0x2f83e8._0x35d9fc,_0x2f83e8._0x272063,0x476,0x501):'lf';}function normalizeToLf(_0x2c7b9c){const _0x3ca612={_0x418a84:0x2f2,_0x1e586a:0x365,_0x90094d:0x332},_0x451595={_0x3e1c34:0x93,_0x135558:0x12f};function _0x3ff5f7(_0x4d9a52,_0x1bd8d3,_0x144baf,_0x3b768a){return _0x44530c(_0x4d9a52,_0x1bd8d3-0xf9,_0x144baf-_0x451595._0x3e1c34,_0x3b768a- -_0x451595._0x135558);}return _0x2c7b9c[_0x3ff5f7(0x3b7,_0x3ca612._0x418a84,_0x3ca612._0x1e586a,_0x3ca612._0x90094d)](/\r\n/g,'\x0a');}function convertEol(_0xa2c506,_0x63f7f7){const _0x39d88f={_0x4e41a7:0x47f,_0x3a207c:0x45d,_0x371d08:0x449,_0x34637c:0x49b},_0x4b9663={_0x1c6a38:0x6f},_0x474337={_0x2307f7:0x167,_0xef2b3a:0x157,_0xde14ee:0x3a};function _0x54b509(_0x2bd70d,_0x415926,_0x306ca4,_0x136182){return _0x44530c(_0x2bd70d,_0x415926-_0x474337._0x2307f7,_0x306ca4-_0x474337._0xef2b3a,_0x415926-_0x474337._0xde14ee);}function _0xfc0df9(_0x3b7376,_0x61ee22,_0x4795b2,_0x2c2c1e){return _0x44530c(_0x61ee22,_0x61ee22-0xe,_0x4795b2-_0x4b9663._0x1c6a38,_0x2c2c1e- -0x1b6);}return _0x63f7f7===_0x54b509(_0x39d88f._0x4e41a7,0x482,_0x39d88f._0x3a207c,0x4b0)?_0xa2c506[_0x54b509(_0x39d88f._0x371d08,_0x39d88f._0x34637c,0x518,0x52d)](/\n/g,'\x0d\x0a'):_0xa2c506;}async function atomicWrite(_0x2d5ae3,_0x4bbb9f){const _0xca5519={_0x17fa08:0x105,_0x3a28ec:0xdb,_0x3ae6d2:0x1e8,_0x823d22:0x204,_0x237d52:0x1bd,_0x419573:0x2cc,_0x46b2e6:0x2c4,_0x13d5f0:0x161,_0x253c3d:0x1f7,_0x4f603e:0x2ac,_0x39ff05:0x25b,_0x3c6ca2:0x1fa,_0x5f50e8:0x179,_0xa64e26:0x19c},_0x530c10={_0x17d5f0:0x71,_0x155f87:0x1c2,_0xaf8358:0xe8},_0x77ecce={_0x2821d8:0x184,_0x31c8af:0x5f8},_0xff6baa=_0x5afd85[_0x3b1065(-0x7b,-_0xca5519._0x17fa08,-0x14a,-_0xca5519._0x3a28ec)](_0x2d5ae3);function _0x3b1065(_0x2bb880,_0x28626b,_0x91d912,_0xd2623e){return _0x44530c(_0x2bb880,_0x28626b-_0x77ecce._0x2821d8,_0x91d912-0x179,_0xd2623e- -_0x77ecce._0x31c8af);}const _0x48d884=_0x5afd85[_0x426fde(_0xca5519._0x3ae6d2,_0xca5519._0x823d22,0x241,_0xca5519._0x237d52)](_0xff6baa,'.tmp.'+_0x5afd85[_0x426fde(_0xca5519._0x419573,_0xca5519._0x46b2e6,0x314,0x2dd)](_0x2d5ae3)+'.'+Date[_0x426fde(0x2df,0x24b,0x21d,0x1ff)]()+'.'+Math[_0x3b1065(-_0xca5519._0x13d5f0,-_0xca5519._0x253c3d,-0x26b,-0x1fa)]()[_0x426fde(_0xca5519._0x4f603e,_0xca5519._0x39ff05,0x2d3,_0xca5519._0x3c6ca2)](0x24)[_0x3b1065(-_0xca5519._0x5f50e8,-0x179,-0x135,-_0xca5519._0xa64e26)](0x2));function _0x426fde(_0xbcfb53,_0x385f6b,_0x4b8033,_0x3f08c2){return _0x452c58(_0x385f6b-_0x530c10._0x17d5f0,_0x4b8033,_0x4b8033-_0x530c10._0x155f87,_0x3f08c2-_0x530c10._0xaf8358);}await writeFile(_0x48d884,_0x4bbb9f),await rename(_0x48d884,_0x2d5ae3);}function sha256(_0x2016b9){const _0x510782={_0x37fa40:0x1e6,_0x2838bd:0x183,_0x4f46ca:0x1c8,_0x57aa2b:0x1bf,_0x87bd7f:0x236},_0x262323={_0x30ed04:0xf1,_0xa972b7:0x59f},_0x219ad4={_0x439be2:0x71,_0x51191f:0x1c1};function _0x2ba2c6(_0x41caa3,_0x57d5c5,_0x174302,_0x18bb43){return _0x452c58(_0x174302-_0x219ad4._0x439be2,_0x57d5c5,_0x174302-_0x219ad4._0x51191f,_0x18bb43-0xd1);}function _0x21e173(_0x10005d,_0x276962,_0xd4c0d5,_0x3820ff){return _0x44530c(_0x276962,_0x276962-_0x262323._0x30ed04,_0xd4c0d5-0xb,_0x3820ff- -_0x262323._0xa972b7);}return createHash(_0x21e173(-0xf9,-_0x510782._0x37fa40,-0x215,-_0x510782._0x2838bd))[_0x2ba2c6(0x284,0x27b,0x26d,0x2f8)](_0x2016b9)[_0x21e173(-0x14e,-_0x510782._0x4f46ca,-_0x510782._0x57aa2b,-0x18f)](_0x2ba2c6(0x27f,_0x510782._0x87bd7f,0x277,0x2bf));}function countLines(_0x152e61){const _0x3f30cf={_0x2c1945:0x472,_0x454354:0x4a8,_0x167842:0x432,_0x214283:0x446,_0x244530:0x46b,_0x4b8a53:0x4f7,_0x1fe49d:0x4f5,_0x3fdc7b:0x48b,_0x9a3662:0x556,_0x416470:0x58b,_0x5b33e0:0x5d6},_0x450c03={_0x364a85:0x19e,_0x100a40:0x135,_0x1efcb6:0x11};function _0xd0010b(_0x2bd92a,_0x12ab61,_0x10d7bf,_0x44a5c7){return _0x44530c(_0x10d7bf,_0x12ab61-0xdf,_0x10d7bf-0x118,_0x12ab61-0xfc);}const _0x47c2cb=_0x152e61[_0x22fb2d(0x45c,_0x3f30cf._0x2c1945,_0x3f30cf._0x454354,_0x3f30cf._0x167842)](/\n$/,'');function _0x22fb2d(_0x13deb8,_0x374831,_0x2e5e78,_0x14a1ab){return _0x44530c(_0x14a1ab,_0x374831-_0x450c03._0x364a85,_0x2e5e78-_0x450c03._0x100a40,_0x374831-_0x450c03._0x1efcb6);}return _0x47c2cb[_0x22fb2d(_0x3f30cf._0x214283,_0x3f30cf._0x244530,0x40c,0x41b)]===0x0?0x0:_0x47c2cb[_0x22fb2d(_0x3f30cf._0x4b8a53,_0x3f30cf._0x1fe49d,_0x3f30cf._0x3fdc7b,0x571)]('\x0a')[_0xd0010b(0x5c1,_0x3f30cf._0x9a3662,_0x3f30cf._0x416470,_0x3f30cf._0x5b33e0)];}function calculateLineNumbers(_0xfe905f,_0x5a415d,_0x4324d6,_0x4b2164){const _0x1a9a0a={_0x5f257a:0x4fb,_0x564c63:0x554,_0x4076c5:0x4f9,_0x5e1d74:0x4c9,_0x85c2d:0x468},_0x439be6={_0x1abf7e:0x10c,_0x1599dc:0xd9},_0x2321da={_0x101a89:0xb0,_0x27606c:0x1},_0x46500c=_0xfe905f[_0x5b8f29(_0x1a9a0a._0x5f257a,_0x1a9a0a._0x564c63,0x52d,0x49c)](0x0,_0x4b2164)[_0x5b8f29(0x583,0x612,0x585,0x558)]('\x0a')[_0x5b8f29(_0x1a9a0a._0x4076c5,0x527,_0x1a9a0a._0x5e1d74,_0x1a9a0a._0x85c2d)];function _0x1e801f(_0x5b2492,_0x466af9,_0x20390c,_0x39b9d2){return _0x452c58(_0x466af9-_0x2321da._0x101a89,_0x39b9d2,_0x20390c-0x128,_0x39b9d2-_0x2321da._0x27606c);}function _0x5b8f29(_0x1a6940,_0x1183d8,_0x2eca07,_0x405333){return _0x452c58(_0x1a6940-0x32b,_0x2eca07,_0x2eca07-_0x439be6._0x1abf7e,_0x405333-_0x439be6._0x1599dc);}const _0x5e1c5b=countLines(_0x5a415d),_0x5131f1=countLines(_0x4324d6);return{'oldStartLine':_0x46500c,'oldEndLine':_0x46500c+_0x5e1c5b-0x1,'newStartLine':_0x46500c,'newEndLine':_0x46500c+_0x5131f1-0x1,'oldLineCount':_0x5e1c5b,'newLineCount':_0x5131f1};}function createFileEditTool(_0x1d7c37={}){const _0x2634fd={_0x38bbc2:0x4c5,_0x358f66:0x4c4,_0x27b8dd:0x403,_0x3f4973:0x3d8,_0x2a445e:0x3df,_0x127d21:0x4e2,_0x5f7ce8:0x347,_0x2eea58:0x4b3,_0x4527b6:0x45c,_0x11f881:0x459,_0x333126:0x4b0,_0x8690c8:0x440,_0x432a3a:0x4d4,_0x19cc33:0x531,_0xa79ad9:0x534,_0x50396e:0x4f2,_0x2594bb:0x50c,_0x5b58ff:0x514,_0x273dfe:0x47f,_0x19ad10:0x488},_0x2fa5ab={_0x3630c5:0x97,_0x532396:0x18,_0x4275c2:0x42,_0x3b782a:0x59,_0x47833c:0x5e,_0x389718:0x19,_0x22b784:0x1d,_0xa1ce92:0xa5,_0x39cb0b:0x7f,_0x23ec4f:0xb4,_0x2ab311:0x9d,_0x3eebb7:0xc,_0x3e6b59:0x76,_0x3c93e7:0x25,_0x46a718:0xd3,_0x567618:0xc5,_0x4105a0:0xdb,_0xe40746:0x7b,_0x531f94:0x50,_0x4846f1:0xc2,_0x16611a:0x7d,_0x1eecaf:0x5,_0x167ab2:0xad,_0x4af99b:0x19,_0x1c6663:0x5f,_0x2ee7eb:0xc,_0x6b6365:0x57,_0x2f1093:0x33,_0x53f219:0x38,_0x5db998:0x72,_0xe99836:0x44,_0x4d5d2e:0x11,_0x22582d:0x38,_0x12c3b6:0x11,_0x50c31f:0x14,_0x133e25:0x14,_0x135a66:0x9,_0x3e8aef:0x47,_0x27420e:0x2,_0x464ba1:0x95,_0x12172d:0x28,_0x470022:0x7a,_0x22d36e:0x56,_0x467e5b:0xc8,_0x47d643:0x10e,_0x343e63:0xf7,_0x3caa39:0x5,_0x2c1fbc:0x3},_0x2e5c32={_0x485a01:0xb,_0x3d1ac5:0xbe},_0x50060b={_0x5bb165:0xe2},_0x3d01af=_0x5afd85['resolve'](_0x1d7c37[_0x2f2937(_0x2634fd._0x38bbc2,0x473,0x525,_0x2634fd._0x358f66)]??process[_0x1ef4f2(_0x2634fd._0x27b8dd,_0x2634fd._0x3f4973,_0x2634fd._0x2a445e,0x412)]());function _0x1ef4f2(_0x463cf9,_0x42008c,_0x222274,_0x462d27){return _0x452c58(_0x463cf9-0x23a,_0x462d27,_0x222274-0x1ac,_0x462d27-0x1ae);}const _0x1824cf=_0x1d7c37['name']??_0x2f2937(_0x2634fd._0x127d21,0x4e6,0x4fb,0x529);function _0x2f2937(_0x113e8d,_0x1bf603,_0x13014a,_0x558c67){return _0x44530c(_0x1bf603,_0x1bf603-_0x50060b._0x5bb165,_0x13014a-0x3b,_0x113e8d-0x24);}return defineTool({'name':_0x1824cf,'description':_0x1ef4f2(0x3e3,_0x2634fd._0x5f7ce8,0x34e,0x34c),'inputSchema':{'type':_0x1ef4f2(_0x2634fd._0x2eea58,_0x2634fd._0x4527b6,_0x2634fd._0x11f881,0x4d0),'properties':{'filePath':{'type':'string'},'oldText':{'type':_0x1ef4f2(0x4ae,0x4bd,_0x2634fd._0x333126,_0x2634fd._0x8690c8)},'newText':{'type':_0x1ef4f2(0x4ae,0x45c,0x41a,_0x2634fd._0x432a3a)},'dryRun':{'type':_0x2f2937(_0x2634fd._0x19cc33,_0x2634fd._0xa79ad9,0x59b,_0x2634fd._0x50396e)}},'required':[_0x2f2937(_0x2634fd._0x2594bb,0x489,0x509,0x593),_0x2f2937(_0x2634fd._0x5b58ff,0x4da,_0x2634fd._0x273dfe,0x56d),_0x1ef4f2(0x4e2,_0x2634fd._0x19ad10,0x453,0x45e)]},async *'execute'(_0x1dbcb6){const _0x57d053={_0x2a9c5f:0x1ec},_0xdc8a6b=resolveWorkspacePath(_0x3d01af,_0x1dbcb6[_0x203120(_0x2fa5ab._0x3630c5,0x59,-0x6c,0x11)]);await assertWorkspaceFile(_0xdc8a6b);const _0x5ee89b=await _0xa29099(_0xdc8a6b);function _0x2e128f(_0x389c5c,_0xc339ee,_0x185280,_0x3a1753){return _0x1ef4f2(_0x389c5c- -0x41c,_0xc339ee-_0x57d053._0x2a9c5f,_0x185280-0x121,_0xc339ee);}const _0x852dce=await readFile(_0xdc8a6b),_0x31b189=detectEol(_0x852dce),_0x4928f0=normalizeToLf(_0x852dce['toString'](_0x2e128f(_0x2fa5ab._0x532396,_0x2fa5ab._0x4275c2,-_0x2fa5ab._0x3b782a,_0x2fa5ab._0x47833c))),_0x4b19e0=normalizeToLf(_0x1dbcb6[_0x203120(-0x5,0x7f,-0x68,_0x2fa5ab._0x389718)]),_0x4eb54d=normalizeToLf(_0x1dbcb6[_0x203120(0xa3,-_0x2fa5ab._0x22b784,0xaa,0x5d)]),_0x31d9cb=_0x4928f0[_0x2e128f(_0x2fa5ab._0xa1ce92,_0x2fa5ab._0x39cb0b,0x11f,_0x2fa5ab._0x23ec4f)](_0x4b19e0);if(_0x31d9cb===-0x1){const _0x577a93=_0x4b19e0['slice'](0x0,0x64)[_0x203120(-0xd0,-_0x2fa5ab._0x2ab311,-_0x2fa5ab._0x3eebb7,-_0x2fa5ab._0x3e6b59)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x203120(_0x2fa5ab._0x3c93e7,-0xa2,-0x6f,-0x44)+_0x577a93+(_0x4b19e0[_0x2e128f(-0x14,-0x2e,0x5b,-0x69)]>0x64?_0x203120(-_0x2fa5ab._0x46a718,-0x3f,-_0x2fa5ab._0x567618,-0x89):'')+'\x22',{'filePath':_0x1dbcb6['filePath']});}const _0x33908b=_0x4928f0['slice'](0x0,_0x31d9cb)+_0x4eb54d+_0x4928f0[_0x203120(-0x69,-0xa9,-_0x2fa5ab._0x4105a0,-_0x2fa5ab._0xe40746)](_0x31d9cb+_0x4b19e0[_0x203120(-_0x2fa5ab._0x531f94,-_0x2fa5ab._0x4846f1,-0x58,-_0x2fa5ab._0x16611a)]),_0x1d2757=convertEol(_0x33908b,_0x31b189),_0x5a907f=Buffer[_0x203120(-0x50,0x65,_0x2fa5ab._0x1eecaf,0x27)](_0x1d2757,_0x203120(-_0x2fa5ab._0x167ab2,-0xaa,-0xb4,-0x51)),_0x18107e=sha256(_0x852dce),_0x17b81b=sha256(_0x5a907f),_0x12bbb4=_0x18107e===_0x17b81b,_0x4ad754=_0x1dbcb6[_0x2e128f(_0x2fa5ab._0x4af99b,0x59,0x75,0x3b)]??![];function _0x203120(_0x111168,_0x2e46b9,_0x2758b9,_0x31f198){return _0x1ef4f2(_0x31f198- -0x485,_0x2e46b9-_0x2e5c32._0x485a01,_0x2758b9-_0x2e5c32._0x3d1ac5,_0x2e46b9);}return!_0x4ad754&&!_0x12bbb4&&await atomicWrite(_0xdc8a6b,_0x5a907f),yield createToolOutput(_0x12bbb4?_0x203120(-_0x2fa5ab._0x1c6663,-_0x2fa5ab._0x2ee7eb,-0x37,-_0x2fa5ab._0x6b6365):_0x4ad754?_0x2e128f(_0x2fa5ab._0x3b782a,0xc5,-0x1b,-0x36):_0x2e128f(-_0x2fa5ab._0x2f1093,_0x2fa5ab._0x53f219,-_0x2fa5ab._0x5db998,0x3a),{'filePath':_0x1dbcb6[_0x203120(_0x2fa5ab._0xe99836,-0x74,-0x69,_0x2fa5ab._0x4d5d2e)],'resolvedPath':_0xdc8a6b,'created':_0x5ee89b[_0x2e128f(0xa4,0x5e,0xad,_0x2fa5ab._0x22582d)][_0x2e128f(-_0x2fa5ab._0x12c3b6,_0x2fa5ab._0x50c31f,_0x2fa5ab._0x133e25,_0x2fa5ab._0x135a66)](),'modified':_0x5ee89b[_0x203120(-_0x2fa5ab._0x3e8aef,-_0x2fa5ab._0x27420e,-0x12e,-_0x2fa5ab._0x464ba1)][_0x2e128f(-0x11,_0x2fa5ab._0x12172d,_0x2fa5ab._0x470022,0x89)](),'size':_0x5ee89b['size'],'eol':_0x31b189,'oldTextLength':_0x4b19e0[_0x203120(-_0x2fa5ab._0x22d36e,-_0x2fa5ab._0x467e5b,-_0x2fa5ab._0x47d643,-_0x2fa5ab._0x16611a)],'newTextLength':_0x4eb54d[_0x203120(-_0x2fa5ab._0x343e63,-0xc8,-0xce,-0x7d)],'bytesWritten':_0x12bbb4||_0x4ad754?0x0:_0x5a907f[_0x2e128f(-0x14,_0x2fa5ab._0x3caa39,_0x2fa5ab._0x2c1fbc,-0xaf)],'beforeSha':_0x18107e,'afterSha':_0x17b81b,'dryRun':_0x4ad754,'noChange':_0x12bbb4,'lineNumbers':calculateLineNumbers(_0x4928f0,_0x4b19e0,_0x4eb54d,_0x31d9cb)}),void 0x0;}});}import{mkdir,rename as _0x53289c,stat as _0x516c80,writeFile as _0x4483b2}from'fs/promises';function _0x452c58(_0x2ab9ef,_0x363324,_0x15a04a,_0x399021){const _0x5f06b3={_0x28bf0e:0x8};return _0x5314(_0x2ab9ef- -_0x5f06b3._0x28bf0e,_0x363324);}import*as _0x1fc5ca from'path';async function atomicWrite2(_0x1c9720,_0x45b882){const _0x29a3da={_0x5e763f:0x65d,_0x32ead8:0x387,_0x1f001c:0x3be,_0x305974:0x32c,_0x1a193f:0x2d4,_0x395fa4:0x3fb,_0x480008:0x36b,_0x38aad8:0x2f7,_0x3bb99f:0x2b6},_0x44b94e={_0x5beeba:0x96},_0x3f839b={_0x242c4c:0x3cc};function _0x39d14b(_0x5dddc8,_0x358a13,_0x5665ab,_0x5c5c35){return _0x452c58(_0x358a13-_0x3f839b._0x242c4c,_0x5dddc8,_0x5665ab-0x194,_0x5c5c35-0x185);}const _0xdde73c=_0x1fc5ca[_0x39d14b(0x674,_0x29a3da._0x5e763f,0x658,0x613)](_0x1c9720);await mkdir(_0xdde73c,{'recursive':!![]});const _0x539918=_0x1fc5ca['join'](_0xdde73c,_0x102478(_0x29a3da._0x32ead8,_0x29a3da._0x1f001c,0x368,_0x29a3da._0x305974)+_0x1fc5ca[_0x102478(_0x29a3da._0x1a193f,_0x29a3da._0x395fa4,0x2fd,_0x29a3da._0x480008)](_0x1c9720)+'.'+Date['now']()+'.'+Math['random']()['toString'](0x24)[_0x102478(0x24e,_0x29a3da._0x38aad8,_0x29a3da._0x3bb99f,0x2e8)](0x2));await _0x4483b2(_0x539918,_0x45b882);function _0x102478(_0x26b0ec,_0x5b4a6b,_0x488a49,_0x51b375){return _0x44530c(_0x488a49,_0x5b4a6b-_0x44b94e._0x5beeba,_0x488a49-0xe9,_0x51b375- -0x174);}await _0x53289c(_0x539918,_0x1c9720);}function createFileNewTool(_0x5e9c5d={}){const _0x434b0b={_0xb9be47:0x77,_0x1e52b4:0x77,_0x4262cc:0xf0,_0x59cb32:0x54,_0x219b49:0x1a,_0x535fb2:0x112,_0x34c34b:0xc1,_0x58c181:0xd3,_0x79ef7e:0x45,_0x45f57d:0x369,_0x43665c:0x2d1,_0x5f1acf:0x3a0,_0x3061b7:0x3ea},_0x32ec5d={_0x496474:0x182,_0x29fcd3:0xee,_0x4c0afc:0xdf,_0x19a68d:0x6a,_0x3b2a86:0x12c,_0x2f3959:0xfb,_0x4c251a:0xe2,_0x4bb93b:0x5c5,_0x3f8800:0x529,_0x4d4083:0x598,_0x3582ab:0x55e,_0x3872ee:0xb3,_0x2f9206:0x83,_0x27f81f:0xa9,_0x319f8a:0xd7,_0x38a1b6:0x160,_0x5cc8a2:0x4f7,_0xf11f0c:0x53a,_0x49a246:0x501,_0x3d0af7:0x45e,_0x31c146:0x54f,_0x570413:0x596,_0xc265f1:0x73,_0xd295a:0xe1,_0x59bc30:0xb9};function _0xda87e6(_0x173cec,_0x27a479,_0x13e61e,_0x47f7ce){return _0x44530c(_0x47f7ce,_0x27a479-0x24,_0x13e61e-0x1ca,_0x13e61e- -0x545);}const _0x3d3be6=_0x1fc5ca[_0x48e5a7(0x388,0x39f,0x32e,0x349)](_0x5e9c5d['defaultCwd']??process[_0xda87e6(-_0x434b0b._0xb9be47,-_0x434b0b._0x1e52b4,-_0x434b0b._0x4262cc,-_0x434b0b._0x59cb32)]());function _0x48e5a7(_0x23f22f,_0x28eff8,_0x57fa0a,_0x479b90){return _0x452c58(_0x28eff8-0x10d,_0x479b90,_0x57fa0a-0x77,_0x479b90-0x5);}const _0x400f3a=_0x5e9c5d['name']??_0xda87e6(-0x76,-_0x434b0b._0x219b49,-0xae,-_0x434b0b._0x535fb2);return defineTool({'name':_0x400f3a,'description':_0xda87e6(-0x135,-_0x434b0b._0x34c34b,-0x101,-0x7b),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0xda87e6(0x49,-_0x434b0b._0x58c181,-_0x434b0b._0x79ef7e,-0x4b)},'content':{'type':'string'}},'required':[_0x48e5a7(0x3ad,_0x434b0b._0x45f57d,0x37c,_0x434b0b._0x43665c),_0x48e5a7(_0x434b0b._0x5f1acf,0x3a2,_0x434b0b._0x3061b7,0x343)]},async *'execute'(_0x1379ed){const _0x1b2be4={_0x34ee55:0x8f,_0x51f989:0x78},_0x116790={_0x2091d0:0x1b},_0x176f24=resolveWorkspacePath(_0x3d3be6,_0x1379ed['filePath']);function _0x5eb1ec(_0x30e43d,_0x47b63c,_0x4f0039,_0x4aca43){return _0x48e5a7(_0x30e43d-_0x116790._0x2091d0,_0x4aca43-0x1bc,_0x4f0039-0xe3,_0x4f0039);}const _0x15bea4=await _0x516c80(_0x176f24)['then'](()=>!![])[_0x48c5ae(_0x32ec5d._0x496474,_0x32ec5d._0x29fcd3,0x113,_0x32ec5d._0x4c0afc)](()=>![]);function _0x48c5ae(_0x4b2f40,_0x2c374d,_0x19fa66,_0x6d6d0c){return _0xda87e6(_0x4b2f40-_0x1b2be4._0x34ee55,_0x2c374d-_0x1b2be4._0x51f989,_0x19fa66-0x142,_0x2c374d);}const _0x27c428=Buffer[_0x48c5ae(_0x32ec5d._0x19a68d,_0x32ec5d._0x3b2a86,_0x32ec5d._0x2f3959,_0x32ec5d._0x4c251a)](_0x1379ed[_0x5eb1ec(_0x32ec5d._0x4bb93b,_0x32ec5d._0x3f8800,_0x32ec5d._0x4d4083,_0x32ec5d._0x3582ab)],_0x48c5ae(_0x32ec5d._0x3872ee,-0x5,_0x32ec5d._0x2f9206,0x97));return await atomicWrite2(_0x176f24,_0x27c428),yield createToolOutput(_0x48c5ae(0x15d,_0x32ec5d._0x27f81f,_0x32ec5d._0x319f8a,_0x32ec5d._0x38a1b6)+_0x1379ed[_0x5eb1ec(_0x32ec5d._0x5cc8a2,_0x32ec5d._0xf11f0c,0x51e,0x525)]+'.',{'filePath':_0x1379ed['filePath'],'resolvedPath':_0x176f24,'bytes':_0x27c428[_0x5eb1ec(0x47d,_0x32ec5d._0x49a246,_0x32ec5d._0x3d0af7,0x497)],'lines':_0x1379ed[_0x5eb1ec(0x5f2,_0x32ec5d._0x31c146,_0x32ec5d._0x570413,0x55e)][_0x48c5ae(_0x32ec5d._0xc265f1,0xed,_0x32ec5d._0xd295a,0x50)](/\r?\n/)[_0x48c5ae(_0x32ec5d._0x59bc30,0x93,0x57,0x68)],'created':new Date()['toISOString'](),'overwritten':_0x15bea4}),void 0x0;}});}import{readFile as _0x79fc89,stat as _0x592384}from'fs/promises';import*as _0x3b7c46 from'path';function stripUtfBom(_0x512ced){const _0x28a0e3={_0x549fe5:0x9a,_0x231789:0x111},_0x232824={_0x9f345b:0xa1,_0x3d4bec:0xdd};function _0xd11383(_0x53aff7,_0x44fa44,_0x27d676,_0x459d75){return _0x44530c(_0x53aff7,_0x44fa44-_0x232824._0x9f345b,_0x27d676-_0x232824._0x3d4bec,_0x27d676- -0x4f4);}return _0x512ced['charCodeAt'](0x0)===0xfeff?_0x512ced[_0xd11383(-_0x28a0e3._0x549fe5,-_0x28a0e3._0x231789,-0x98,-0x31)](0x1):_0x512ced;}function clampLine(_0x1a6ffe,_0x1436b5){const _0x589367={_0x245d6f:0x16a,_0x2e7e73:0x131},_0xe2c94b={_0x3a8bf9:0x1a5};function _0x1d71d1(_0x5ddeff,_0x3f47ee,_0x56f456,_0x9f9635){return _0x44530c(_0x9f9635,_0x3f47ee-_0xe2c94b._0x3a8bf9,_0x56f456-0xfd,_0x56f456- -0x29e);}if(!Number[_0x1d71d1(0x147,_0x589367._0x245d6f,0x194,_0x589367._0x2e7e73)](_0x1a6ffe))return 0x1;return Math['max'](0x1,Math['min'](Math['trunc'](_0x1a6ffe),_0x1436b5));}function createFileReadTool(_0x29cf24={}){const _0x3ed89={_0x2a9f2f:0x211,_0x58ff2b:0x1ee,_0x2ba02f:0xe6,_0x3efe91:0x103,_0x24dca6:0x4fe,_0x18a687:0x512,_0x341bf1:0x1b8,_0x5a2699:0x525,_0x251eb2:0x552,_0x3adb60:0x54a,_0x2d66b4:0x4d5,_0x34f888:0x52e,_0x5bca47:0x4e5,_0x4afe26:0x224,_0x59efce:0x16e,_0x2478c5:0x161},_0x2723dc={_0x128b4d:0x308,_0x1a3bc6:0x2b8,_0x14e3ee:0x2c5,_0x5036dc:0x30d,_0x284e9a:0x9b,_0x58c81b:0x53,_0x183c7f:0x43,_0x3adbde:0x26,_0x43e629:0x1a,_0x170a88:0x1d,_0xc0904a:0x27d,_0x347d8f:0x25e,_0x2d9056:0x28e,_0x49dc06:0x3f1,_0x137512:0x359,_0x3887f8:0x3e4,_0x2942bd:0x342,_0x3ff6bc:0x54,_0xba509f:0x2d3,_0x54b2e6:0x2d2,_0x5bb932:0x337,_0x57d9e4:0x256,_0x4133f7:0x2db,_0x3d1c39:0x43c,_0x2c6bc4:0x328,_0x3c94cd:0x3a7,_0x3c5712:0x340,_0x866341:0x2e9,_0x1f1f56:0xd7,_0x622c6b:0x115,_0x54a32a:0xae,_0x1fe997:0xbe,_0xe53d5a:0x57,_0x3f09c8:0xb2,_0x2757ed:0xb,_0x52862e:0x2f0,_0x2221ce:0x174,_0x5f3b20:0xe4,_0x27225c:0x36c,_0x469cdf:0x31c,_0x98c115:0x3a3,_0x27dcc9:0xc3,_0x49d548:0x3f,_0x41f615:0xd3,_0x5d168d:0x2d5,_0x412ed5:0x2b0},_0xe3cfe0={_0x292b86:0x1d3},_0x87b15b={_0x22de32:0x2e,_0x498887:0x34d},_0x5d3f78={_0x5741f4:0x52},_0x376364=_0x3b7c46[_0x9cef31(_0x3ed89._0x2a9f2f,_0x3ed89._0x58ff2b,0x1d1,0x144)](_0x29cf24[_0x9cef31(0x10b,_0x3ed89._0x2ba02f,0x154,0x1af)]??process[_0x9cef31(0x190,0x157,0x108,_0x3ed89._0x3efe91)]()),_0x10bece=_0x29cf24[_0x442e77(0x51c,_0x3ed89._0x24dca6,0x49c,0x4c3)]??_0x442e77(0x44b,0x49c,0x4c7,_0x3ed89._0x18a687);function _0x442e77(_0x3a1c2e,_0x27cc05,_0x39e67c,_0x91f917){return _0x44530c(_0x3a1c2e,_0x27cc05-0x145,_0x39e67c-0x197,_0x39e67c-_0x5d3f78._0x5741f4);}function _0x9cef31(_0xf16c02,_0xafb4bf,_0x2acffa,_0x55ad70){return _0x44530c(_0xf16c02,_0xafb4bf-0x52,_0x2acffa-_0x87b15b._0x22de32,_0x2acffa- -_0x87b15b._0x498887);}return defineTool({'name':_0x10bece,'description':'Read\x20a\x20UTF-8\x20text\x20file\x20from\x20the\x20workspace.\x20Optionally\x20specify\x20line\x20ranges.','inputSchema':{'type':_0x9cef31(0x1c2,0x1d8,_0x3ed89._0x341bf1,0x225),'properties':{'path':{'type':_0x442e77(0x4d9,_0x3ed89._0x5a2699,_0x3ed89._0x251eb2,0x53f)},'lineStart':{'type':_0x442e77(_0x3ed89._0x3adb60,_0x3ed89._0x2d66b4,_0x3ed89._0x34f888,_0x3ed89._0x5bca47)},'lineEnd':{'type':_0x9cef31(0x1d1,_0x3ed89._0x4afe26,0x18f,0x191)}},'required':[_0x9cef31(0x12b,_0x3ed89._0x59efce,0xf6,_0x3ed89._0x2478c5)]},async *'execute'(_0x27729d){const _0x2712f2=resolveWorkspacePath(_0x376364,_0x27729d[_0x593798(_0x2723dc._0x128b4d,0x2c0,0x30b,_0x2723dc._0x1a3bc6)]);await assertWorkspaceFile(_0x2712f2);const _0x456df2=await _0x592384(_0x2712f2);function _0x593798(_0x28886b,_0x5a10ec,_0x355d33,_0x1fa9fc){return _0x9cef31(_0x355d33,_0x5a10ec-0x194,_0x1fa9fc-0x1c2,_0x1fa9fc-0x14d);}const _0x14c78c=await _0x79fc89(_0x2712f2);if(isProbablyBinary(_0x14c78c))throw new ToolExecutionError(_0x593798(_0x2723dc._0x14e3ee,_0x2723dc._0x5036dc,0x336,0x2cd)+_0x27729d[_0x4746d4(_0x2723dc._0x284e9a,0x26,-_0x2723dc._0x58c81b,-0x2e)],{'path':_0x27729d[_0x4746d4(-_0x2723dc._0x183c7f,_0x2723dc._0x3adbde,-0x5,-0x53)]});let _0x18a4b9=_0x14c78c[_0x4746d4(-_0x2723dc._0x43e629,0x59,0x5d,-_0x2723dc._0x170a88)]('utf8');const _0x3060f5=_0x18a4b9[_0x593798(_0x2723dc._0xc0904a,0x244,_0x2723dc._0x347d8f,_0x2723dc._0x2d9056)](0x0)===0xfeff;function _0x4746d4(_0x418caf,_0x4cfc80,_0x2689e8,_0x25c885){return _0x442e77(_0x25c885,_0x4cfc80-_0xe3cfe0._0x292b86,_0x4cfc80- -0x46f,_0x25c885-0x4);}_0x18a4b9=stripUtfBom(_0x18a4b9);const _0x128cdc=_0x18a4b9[_0x593798(_0x2723dc._0x49dc06,0x3c5,0x321,_0x2723dc._0x137512)](/\r?\n/),_0x33a29c={'path':_0x27729d['path'],'resolvedPath':_0x2712f2,'created':_0x456df2[_0x593798(_0x2723dc._0x3887f8,_0x2723dc._0x2942bd,0x309,0x387)][_0x4746d4(-_0x2723dc._0x3ff6bc,0x40,0x4f,-0x15)](),'modified':_0x456df2['mtime'][_0x593798(_0x2723dc._0xba509f,0x34f,0x26d,_0x2723dc._0x54b2e6)](),'size':_0x456df2[_0x593798(0x367,_0x2723dc._0x5bb932,0x29a,0x30a)],'encoding':'utf8','bomStripped':_0x3060f5,'truncated':![],'totalLines':_0x128cdc[_0x593798(_0x2723dc._0x57d9e4,0x2db,_0x2723dc._0x4133f7,0x2cf)]};if(_0x27729d[_0x593798(_0x2723dc._0x3d1c39,0x37f,_0x2723dc._0x2c6bc4,_0x2723dc._0x3c94cd)]!==void 0x0||_0x27729d[_0x593798(0x276,0x24d,_0x2723dc._0x3c5712,_0x2723dc._0x866341)]!==void 0x0){const _0x2a2ee8=clampLine(_0x27729d[_0x4746d4(_0x2723dc._0x1f1f56,_0x2723dc._0x622c6b,0x140,_0x2723dc._0x54a32a)]??0x1,_0x128cdc['length']),_0x29edb7=clampLine(_0x27729d[_0x4746d4(_0x2723dc._0x1fe997,_0x2723dc._0xe53d5a,_0x2723dc._0x3f09c8,_0x2723dc._0x2757ed)]??_0x128cdc[_0x593798(0x356,0x2d2,_0x2723dc._0x52862e,0x2cf)],_0x128cdc['length']),_0x2b6212=Math[_0x4746d4(_0x2723dc._0x2221ce,_0x2723dc._0x5f3b20,0x95,0x78)](_0x2a2ee8,_0x29edb7),_0x4822e8=Math[_0x593798(_0x2723dc._0x27225c,0x3a1,_0x2723dc._0x469cdf,_0x2723dc._0x98c115)](_0x2a2ee8,_0x29edb7),_0x16796a=_0x128cdc[_0x4746d4(_0x2723dc._0x27dcc9,_0x2723dc._0x49d548,_0x2723dc._0x41f615,0x83)](_0x2b6212-0x1,_0x4822e8)['map']((_0x52f557,_0x31c7ed)=>_0x2b6212+_0x31c7ed+'|'+_0x52f557)[_0x593798(0x2c2,_0x2723dc._0x5d168d,_0x2723dc._0x412ed5,0x294)]('\x0a');return yield createToolOutput(_0x16796a,{..._0x33a29c,'lineRange':{'lineStart':_0x2b6212,'lineEnd':_0x4822e8,'linesTotal':_0x128cdc['length']}}),void 0x0;}return yield createToolOutput(_0x18a4b9,_0x33a29c),void 0x0;}});}import{stat as _0x5c1969}from'fs/promises';import*as _0x27ea33 from'path';import{execSync,spawn as _0x44b542}from'child_process';import{existsSync}from'fs';import{stat as _0x470eda}from'fs/promises';import*as _0x4de71a from'os';import*as _0x48f11e from'path';var cachedRgPath=null;function findSystemRipgrep(){const _0x3d58df={_0xdc11f7:0x40,_0x59822f:0x48,_0x3c4778:0x71,_0xef1201:0x23a,_0x1329d6:0x257,_0x184899:0x16,_0x340e9b:0x65,_0x11b934:0x64,_0x165d66:0x9,_0x5164c2:0x4c,_0x5b1fef:0x53,_0x34e523:0x22b,_0x4904c4:0x1b6,_0x1cba2f:0x1d9,_0x531701:0xdc,_0x1adad5:0x329,_0x172ea9:0x37f,_0x2499f7:0x24f,_0x5ab66a:0x234,_0x16cfd1:0x219,_0x189cbd:0x25,_0x4fa6d1:0x6,_0xa1697c:0x281,_0x48af76:0x21c,_0x39262b:0x104,_0x134011:0x6f,_0x453a13:0x29c,_0x49e8c3:0x1e2,_0x1061b7:0x44,_0x25296f:0x288,_0x283087:0x305,_0x5c5958:0x2a3,_0x574c11:0x2b9,_0x299ce1:0x2da,_0x34b0ca:0x281,_0x180776:0x2cd,_0x50397c:0x1fa,_0x1bd94c:0x29e,_0xab63f9:0x198,_0x490881:0x1d1,_0x3f9616:0x27e,_0x1c0b84:0x22d,_0x17af4b:0x2a0,_0x45213c:0x212,_0xd21a0e:0x2df,_0x426cc9:0x109,_0x27fbd9:0x3a,_0x91f709:0x62,_0x570611:0xc,_0xf88e34:0x68,_0x1819b3:0x60},_0x22034e={_0x4541f2:0x1e6},_0x5201d1=_0x4de71a[_0x435393(_0x3d58df._0xdc11f7,_0x3d58df._0x59822f,0x86,_0x3d58df._0x3c4778)]()===_0x59834a(_0x3d58df._0xef1201,0x233,_0x3d58df._0x1329d6,0x2c9),_0x1f94d9=_0x5201d1?[_0x48f11e[_0x435393(0x2a,-_0x3d58df._0x184899,-0xcd,-_0x3d58df._0x340e9b)](process[_0x435393(_0x3d58df._0x11b934,0xe4,_0x3d58df._0x165d66,0x6f)]['LOCALAPPDATA']||'',_0x435393(_0x3d58df._0x5164c2,_0x3d58df._0x5b1fef,0x8c,_0x3d58df._0x184899),_0x59834a(_0x3d58df._0x34e523,_0x3d58df._0x4904c4,_0x3d58df._0x1cba2f,0x1d0),'Packages'),_0x48f11e[_0x435393(-_0x3d58df._0x531701,0x2,-0x8c,-_0x3d58df._0x340e9b)](process[_0x59834a(0x30d,_0x3d58df._0x1adad5,0x2d9,_0x3d58df._0x172ea9)]['ProgramFiles']||'',_0x59834a(0x2a8,_0x3d58df._0x2499f7,_0x3d58df._0x5ab66a,_0x3d58df._0x16cfd1),_0x435393(_0x3d58df._0x189cbd,-0x22,-0x24,_0x3d58df._0x4fa6d1)),_0x48f11e[_0x59834a(0x239,_0x3d58df._0xa1697c,0x1df,_0x3d58df._0x48af76)](process[_0x435393(_0x3d58df._0x39262b,0x5d,0x3e,_0x3d58df._0x134011)][_0x59834a(0x245,0x1cd,_0x3d58df._0x453a13,_0x3d58df._0x49e8c3)]||'',_0x435393(_0x3d58df._0x1061b7,0xa6,-0xa,0xa),_0x59834a(0x2a4,0x2b6,_0x3d58df._0x25296f,0x226))]:['/opt/homebrew/bin/rg',_0x59834a(_0x3d58df._0x283087,0x329,0x388,_0x3d58df._0x5c5958),_0x59834a(_0x3d58df._0x574c11,_0x3d58df._0x299ce1,_0x3d58df._0x34b0ca,_0x3d58df._0x180776),_0x59834a(0x225,_0x3d58df._0x50397c,_0x3d58df._0x1bd94c,0x1a7)];for(const _0x4d4ef1 of _0x1f94d9){if(existsSync(_0x4d4ef1))return _0x4d4ef1;}function _0x59834a(_0x57d100,_0x106097,_0x2237d0,_0x6d7cda){return _0x44530c(_0x6d7cda,_0x106097-0xec,_0x2237d0-0x75,_0x57d100- -_0x22034e._0x4541f2);}function _0x435393(_0x13abab,_0x17efa3,_0xedccd5,_0x597201){return _0x452c58(_0x597201- -0x1f8,_0x17efa3,_0xedccd5-0xc0,_0x597201-0x80);}try{const _0x3afc83=_0x5201d1?_0x59834a(0x21e,0x1bc,_0x3d58df._0xab63f9,_0x3d58df._0x490881):_0x59834a(0x2c5,0x272,0x25b,0x2aa),_0x4324e5=execSync(_0x3afc83,{'encoding':_0x59834a(0x2a0,0x268,0x269,0x333),'stdio':[_0x59834a(_0x3d58df._0x3f9616,_0x3d58df._0x1c0b84,_0x3d58df._0x17af4b,0x2dd),_0x59834a(0x27e,0x269,_0x3d58df._0x45213c,_0x3d58df._0xd21a0e),_0x435393(0xcc,0x2b,_0x3d58df._0x426cc9,0x86)]})[_0x435393(0xc0,0xfe,_0x3d58df._0x27fbd9,_0x3d58df._0x91f709)]()[_0x435393(_0x3d58df._0x570611,_0x3d58df._0xf88e34,_0x3d58df._0x531701,_0x3d58df._0x1819b3)](/\r?\n/)[0x0];if(_0x4324e5&&existsSync(_0x4324e5))return _0x4324e5;}catch{return null;}return null;}async function filepath(){const _0x24167b={_0x3cded9:0x218,_0x1d7186:0x257},_0x92b3bc={_0x2576dc:0xcd};if(cachedRgPath)return cachedRgPath;const _0x4cc391=findSystemRipgrep();if(!_0x4cc391)throw new Error(_0x489d74(0x294,0x326,_0x24167b._0x3cded9,_0x24167b._0x1d7186));cachedRgPath=_0x4cc391;function _0x489d74(_0x4dae91,_0x1ea75b,_0x4b0e7f,_0x1d8dcc){return _0x452c58(_0x4dae91-0x68,_0x4b0e7f,_0x4b0e7f-_0x92b3bc._0x2576dc,_0x1d8dcc-0x11);}return _0x4cc391;}async function*files(_0x5354bc){const _0x946f3b={_0x38dbdc:0x14d,_0x5bac14:0x115,_0x2272e8:0x8f,_0x5adfc0:0x41,_0x5f0a69:0x1f3,_0xb27603:0x174,_0x5dd58a:0x11f,_0x41111a:0x61,_0x7c2a67:0x88,_0x191999:0x1c4,_0x43f4f1:0x1dd,_0x2d52b6:0xa9,_0x15597a:0x17,_0x4d7b3a:0x96,_0x356e2f:0x54,_0x5aeb0c:0x63,_0x4a48e1:0x1c6,_0x5cb67e:0x24d,_0x29cecc:0x143,_0x332e1f:0x105,_0x3364f8:0x115,_0x318d88:0x13d,_0x59513b:0x106,_0x2ff8f3:0x8,_0x1ce5e8:0x79,_0x37746f:0x2,_0x7e8fd0:0x3a,_0x37bd63:0x136,_0x212249:0x153,_0x36f192:0x160,_0x3921d0:0x70,_0x41cb96:0x7,_0x17d589:0x4,_0x23fadd:0x6e,_0xaac8d:0x83,_0x2964a0:0xe9,_0x2eba7f:0x11a,_0xa3d3bc:0xc8,_0x1b76de:0x16d,_0x4e4034:0x16b},_0x439699={_0x37ac66:0xb4,_0x2de31:0x23},_0x309f50=await filepath();function _0x4a0b83(_0x3254cc,_0x108255,_0x4c15f5,_0x3ce2e2){return _0x452c58(_0x108255- -0x251,_0x3254cc,_0x4c15f5-0x111,_0x3ce2e2-0xa7);}const _0x3b3802=await _0x470eda(_0x5354bc[_0x61b6bc(0x115,0x17b,_0x946f3b._0x38dbdc,_0x946f3b._0x5bac14)])['catch'](()=>null);function _0x61b6bc(_0x32dce5,_0x12e0d6,_0xa7e6cf,_0x52fd14){return _0x452c58(_0x32dce5- -_0x439699._0x37ac66,_0x12e0d6,_0xa7e6cf-0xd9,_0x52fd14-_0x439699._0x2de31);}if(!_0x3b3802?.[_0x4a0b83(-_0x946f3b._0x2272e8,0x6,0x25,_0x946f3b._0x5adfc0)]())throw Object[_0x61b6bc(_0x946f3b._0x5f0a69,0x1b6,_0x946f3b._0xb27603,0x215)](new Error(_0x61b6bc(0xde,_0x946f3b._0x5dd58a,0xf6,0x165)+_0x5354bc[_0x4a0b83(-_0x946f3b._0x41111a,-_0x946f3b._0x7c2a67,-0x4a,-0x1a)]+'\x27'),{'code':_0x61b6bc(_0x946f3b._0x191999,0x196,0x12c,0x234)});const _0x4653bc=[_0x61b6bc(0x1f0,_0x946f3b._0x43f4f1,0x1fc,0x167),_0x4a0b83(_0x946f3b._0x2d52b6,_0x946f3b._0x15597a,0xa5,_0x946f3b._0x4d7b3a),_0x4a0b83(0x1d,_0x946f3b._0x356e2f,_0x946f3b._0x5aeb0c,0x89),_0x61b6bc(_0x946f3b._0x4a48e1,0x1c4,0x1b8,_0x946f3b._0x5cb67e)];for(const _0x12f133 of _0x5354bc[_0x61b6bc(0x156,0x1b8,_0x946f3b._0x29cecc,_0x946f3b._0x332e1f)]??[]){_0x4653bc[_0x4a0b83(-0x4e,-0x54,-0x5e,0x1f)]('--glob='+_0x12f133);}const _0xf6952b=_0x44b542(_0x309f50,_0x4653bc,{'cwd':_0x5354bc[_0x61b6bc(_0x946f3b._0x3364f8,0xe7,_0x946f3b._0x318d88,_0x946f3b._0x59513b)],'stdio':['ignore',_0x61b6bc(0x124,0x134,0x165,0xa2),_0x4a0b83(_0x946f3b._0x2ff8f3,-_0x946f3b._0x1ce5e8,-_0x946f3b._0x37746f,-_0x946f3b._0x7e8fd0)]});let _0xd02778='';for await(const _0x9988e of _0xf6952b['stdout']??[]){_0xd02778+=_0x9988e[_0x61b6bc(_0x946f3b._0x37bd63,0x1a8,_0x946f3b._0x212249,_0x946f3b._0x36f192)]();const _0x4e28ce=_0xd02778[_0x4a0b83(-_0x946f3b._0x3921d0,_0x946f3b._0x41cb96,-_0x946f3b._0x17d589,-_0x946f3b._0x23fadd)](/\r?\n/);_0xd02778=_0x4e28ce['pop']()??'';for(const _0x571fce of _0x4e28ce){if(_0x571fce[_0x4a0b83(-_0x946f3b._0x2ff8f3,-_0x946f3b._0xaac8d,-_0x946f3b._0x2964a0,-0x4a)]>0x0)yield _0x571fce;}}_0xd02778['trim']()[_0x61b6bc(_0x946f3b._0x2eba7f,0x192,0xa3,_0x946f3b._0xa3d3bc)]>0x0&&(yield _0xd02778[_0x61b6bc(0x1a6,_0x946f3b._0x1b76de,0x10c,_0x946f3b._0x4e4034)]());}function parseMatchLine(_0x134b6a,_0x28aae2){const _0x6eb31f={_0x1fcb57:0x4a2,_0x5457d6:0x42,_0x3f1599:0x2b,_0x376782:0x96,_0x1a189e:0x492,_0x2a1736:0x46a,_0x83b50e:0x4b6,_0x2e17f7:0x4f9,_0x59dfa9:0x4e0,_0x481c50:0x459,_0x33133a:0x51e,_0x1996f0:0x4a3,_0x523fc0:0x9b,_0x4ed5e0:0x2,_0x67d435:0xc},_0x27b5bd={_0xadf236:0x18a},_0x2788c9={_0x1dd314:0xb1,_0xebfd5b:0x140};function _0x2dc1ea(_0x4bdf55,_0x484527,_0x2bde78,_0x4c5cbb){return _0x452c58(_0x4c5cbb-0x310,_0x2bde78,_0x2bde78-_0x2788c9._0x1dd314,_0x4c5cbb-_0x2788c9._0xebfd5b);}if(!_0x134b6a||_0x134b6a==='--')return null;function _0x1abe9d(_0x47488d,_0x286761,_0x1c04f5,_0x550f4a){return _0x44530c(_0x47488d,_0x286761-_0x27b5bd._0xadf236,_0x1c04f5-0x170,_0x286761- -0x45a);}const _0x490f18=_0x134b6a['split']('|');if(_0x28aae2&&_0x490f18[_0x2dc1ea(0x571,0x49f,_0x6eb31f._0x1fcb57,0x4de)]>=0x4&&Number['isFinite'](Number[_0x1abe9d(_0x6eb31f._0x5457d6,0x6,_0x6eb31f._0x3f1599,-_0x6eb31f._0x376782)](_0x490f18[0x2]??'',0xa))){const _0x48a58b=Number['parseInt'](_0x490f18[0x1]??'',0xa);if(!Number[_0x2dc1ea(0x48e,_0x6eb31f._0x1a189e,_0x6eb31f._0x2a1736,_0x6eb31f._0x83b50e)](_0x48a58b)||!_0x490f18[0x0])return null;return{'filePath':_0x490f18[0x0],'lineNum':_0x48a58b,'lineText':_0x490f18[_0x2dc1ea(_0x6eb31f._0x2e17f7,0x4b5,0x4e5,_0x6eb31f._0x59dfa9)](0x3)[_0x2dc1ea(_0x6eb31f._0x481c50,0x4f3,_0x6eb31f._0x33133a,_0x6eb31f._0x1996f0)]('|')};}if(_0x490f18['length']>=0x3){const _0x2a9997=Number['parseInt'](_0x490f18[0x1]??'',0xa);if(!Number['isFinite'](_0x2a9997)||!_0x490f18[0x0])return null;return{'filePath':_0x490f18[0x0],'lineNum':_0x2a9997,'lineText':_0x490f18[_0x1abe9d(_0x6eb31f._0x523fc0,_0x6eb31f._0x4ed5e0,-0x48,_0x6eb31f._0x67d435)](0x2)['join']('|'),..._0x28aae2?{'isContext':!![]}:{}};}return null;}async function search(_0x1b203a){const _0x56b595={_0x915b39:0x153,_0x51a919:0x196,_0x218153:0x165,_0x3f6830:0x1da,_0x5164d7:0x287,_0x3ed285:0x239,_0x264ac8:0x19b,_0x4c98d2:0x139,_0x5cd8f4:0x164,_0x247b05:0x103,_0x2a767e:0x5b9,_0x2a3674:0x5a7,_0x43cb0e:0x657,_0xc7f995:0x5c5,_0x113a9d:0x63a,_0x11f592:0x6a0,_0x5bad9f:0x60a,_0x2e948e:0x22a,_0x66fafc:0x1ab,_0x52921c:0x1a4,_0x28cc96:0x671,_0x52fcc8:0x645,_0x58a167:0x504,_0x4e2970:0x4e6,_0x212670:0x5cc,_0x46655b:0x572,_0x3765b2:0x57b,_0x20c404:0x4d9,_0x19d279:0x568,_0x502c6c:0x1b8,_0x4a9ab6:0x258,_0x833895:0x1dd,_0x285411:0x24a,_0x12e555:0x1ee,_0x22e8dd:0x4e1,_0x39a804:0x560,_0xa19cc7:0x225,_0x2b15d9:0x203,_0x277ed7:0x1ee,_0x1e37a3:0x1ce,_0x3ffaf2:0x56d,_0x2d7c63:0x5af,_0x44c2c4:0x556,_0x1c64ae:0x1e3,_0x5eae4a:0x1d7,_0x376621:0x234,_0x5ea5f8:0x1ed,_0x51364f:0x565,_0x40167c:0x52c},_0x339ffd={_0x6e89ec:0xe5,_0x16d0d7:0xde,_0x2fc49d:0xd0,_0x31d49a:0x39a,_0x1acd19:0x3b7,_0x4ef4a4:0x4e,_0x35d337:0x62,_0x17e4f8:0x15f,_0x10af7e:0x176,_0x13f34d:0x57,_0x327126:0xd6},_0x1e3d3c={_0x354333:0x557,_0x586eb5:0x43c,_0x5d6572:0x3f9,_0xca23a7:0x586,_0x2916bb:0x50e,_0x18430c:0x4a0,_0x5aa9b4:0x39e,_0x438ed3:0x420,_0x3f1e33:0x371},_0x4d8d73={_0x2644b3:0x1c2,_0x1e68c6:0x125,_0x3bdb04:0x447},_0xc68329={_0x32a1e9:0x2aa,_0xe8299b:0x276},_0x3896cf={_0xdaf083:0xca,_0x419ce0:0x626,_0x3ed45a:0x19b},_0x2db789={_0x5dddf4:0xde,_0x5ca350:0x1a8},_0x1e6b9e={_0x3e37fe:0xe4,_0x1ad69e:0xd7};function _0x226d2f(_0x2bc045,_0x46fa1c,_0x27250e,_0x699c82){return _0x44530c(_0x46fa1c,_0x46fa1c-0x165,_0x27250e-_0x1e6b9e._0x3e37fe,_0x699c82-_0x1e6b9e._0x1ad69e);}function _0x41171a(_0xd02e1d,_0x26d9f6,_0x5e117b,_0xf88f2b){return _0x44530c(_0xd02e1d,_0x26d9f6-_0x2db789._0x5dddf4,_0x5e117b-_0x2db789._0x5ca350,_0x5e117b- -0x66c);}const _0x5b2d44=await filepath();if(_0x1b203a['file']){const _0x3c01f2=await _0x470eda(_0x1b203a[_0x41171a(-_0x56b595._0x915b39,-_0x56b595._0x51a919,-0x1ed,-_0x56b595._0x218153)])[_0x41171a(-0x19f,-0x193,-0x156,-0x1dd)](()=>null);if(!_0x3c01f2?.[_0x41171a(-_0x56b595._0x3f6830,-_0x56b595._0x5164d7,-_0x56b595._0x3ed285,-0x1f5)]())throw Object[_0x41171a(-0x1a7,-_0x56b595._0x264ac8,-_0x56b595._0x4c98d2,-0x13d)](new Error(_0x41171a(-_0x56b595._0x5cd8f4,-0x15e,-0x176,-_0x56b595._0x247b05)+_0x1b203a['file']+'\x27'),{'code':_0x41171a(-0x197,-0x1ad,-0x168,-0x19a)});}else{const _0x3de46d=await _0x470eda(_0x1b203a[_0x226d2f(_0x56b595._0x2a767e,0x58f,_0x56b595._0x2a3674,0x52c)])[_0x226d2f(_0x56b595._0x43cb0e,_0x56b595._0xc7f995,_0x56b595._0x113a9d,0x5ed)](()=>null);if(!_0x3de46d?.['isDirectory']())throw Object[_0x226d2f(_0x56b595._0x11f592,0x658,0x5e7,_0x56b595._0x5bad9f)](new Error(_0x41171a(-0x241,-_0x56b595._0x2e948e,-0x24e,-0x2c3)+_0x1b203a['cwd']+'\x27'),{'code':_0x41171a(-0x115,-0x17c,-0x168,-0x1f9)});}const _0x31d103=[_0x41171a(-0x179,-_0x56b595._0x66fafc,-_0x56b595._0x52921c,-0x1ca),_0x226d2f(0x57c,_0x56b595._0x28cc96,_0x56b595._0x52fcc8,0x5fa),_0x226d2f(_0x56b595._0x58a167,_0x56b595._0x4e2970,0x49b,0x506),_0x226d2f(0x540,_0x56b595._0x212670,0x57f,_0x56b595._0x46655b),_0x1b203a[_0x226d2f(0x5cf,_0x56b595._0x3765b2,_0x56b595._0x20c404,_0x56b595._0x19d279)]],_0x4e0e5f=typeof _0x1b203a[_0x41171a(-0x22c,-_0x56b595._0x502c6c,-0x1ee,-_0x56b595._0x4a9ab6)]===_0x41171a(-_0x56b595._0x502c6c,-_0x56b595._0x833895,-0x190,-0x136)&&_0x1b203a[_0x41171a(-_0x56b595._0x285411,-0x20b,-_0x56b595._0x12e555,-0x1e9)]>0x0;return _0x4e0e5f&&_0x31d103[_0x226d2f(0x586,0x5dd,_0x56b595._0x22e8dd,_0x56b595._0x39a804)]('-C',String(_0x1b203a[_0x41171a(-_0x56b595._0xa19cc7,-_0x56b595._0x2b15d9,-_0x56b595._0x277ed7,-_0x56b595._0x1e37a3)]),'--column'),_0x1b203a[_0x226d2f(0x570,0x56d,0x5d0,_0x56b595._0x3ffaf2)]&&!_0x1b203a[_0x226d2f(_0x56b595._0x2d7c63,0x58f,0x4e7,_0x56b595._0x44c2c4)]&&_0x31d103[_0x41171a(-0x1ea,-0x154,-_0x56b595._0x1c64ae,-_0x56b595._0x5eae4a)](_0x41171a(-0x21a,-0x2e1,-0x24f,-_0x56b595._0x376621),_0x1b203a['glob']),_0x31d103[_0x41171a(-0x249,-0x1d7,-0x1e3,-0x1dc)](_0x1b203a[_0x41171a(-_0x56b595._0x218153,-0x276,-_0x56b595._0x5ea5f8,-0x282)]??_0x1b203a[_0x226d2f(_0x56b595._0x51364f,0x542,0x496,_0x56b595._0x40167c)]),await new Promise((_0x55bcf0,_0x50a200)=>{const _0x3faf79={_0x469160:0x39a},_0x147aa0={_0x3ac7f8:0x31,_0x353000:0x8d},_0x67a15d=_0x44b542(_0x5b2d44,_0x31d103,{'cwd':_0x1b203a[_0x2e3e0e(0x6e,0x14c,_0x339ffd._0x6e89ec,_0x339ffd._0x16d0d7)],'stdio':['ignore',_0x41196b(0x3e6,0x41e,0x3bd,0x48b),_0x2e3e0e(_0x339ffd._0x2fc49d,0x16e,0xf4,0x12f)]});function _0x41196b(_0x39c902,_0x160c1b,_0x111e0e,_0x1898b6){return _0x41171a(_0x1898b6,_0x160c1b-_0x3896cf._0xdaf083,_0x160c1b-_0x3896cf._0x419ce0,_0x1898b6-_0x3896cf._0x3ed45a);}let _0x168a79='',_0x369ce8='';_0x67a15d['stdout']?.['on'](_0x41196b(_0x339ffd._0x31d49a,_0x339ffd._0x1acd19,0x370,0x33a),_0x2cd44e=>{function _0x34aef0(_0xd2d16e,_0x57f04d,_0x541fd5,_0x53f2bc){return _0x41196b(_0xd2d16e-_0x147aa0._0x3ac7f8,_0x541fd5- -0x202,_0x541fd5-_0x147aa0._0x353000,_0xd2d16e);}_0x168a79+=_0x2cd44e[_0x34aef0(_0xc68329._0x32a1e9,0x249,0x22e,_0xc68329._0xe8299b)]();});function _0x2e3e0e(_0xf55828,_0x12494e,_0x37897b,_0x35db2a){return _0x226d2f(_0xf55828-_0x4d8d73._0x2644b3,_0xf55828,_0x37897b-_0x4d8d73._0x1e68c6,_0x37897b- -_0x4d8d73._0x3bdb04);}_0x67a15d[_0x2e3e0e(0xd1,_0x339ffd._0x4ef4a4,0x9d,_0x339ffd._0x35d337)]?.['on']('data',_0x7ca342=>{_0x369ce8+=_0x7ca342['toString']();}),_0x67a15d['on'](_0x2e3e0e(0x1a7,_0x339ffd._0x17e4f8,0x141,_0x339ffd._0x10af7e),_0x2907eb=>{const _0x51956b={_0x311e76:0x76,_0x40a5ba:0x13b};if(_0x2907eb===0x1&&_0x168a79===''){_0x55bcf0([]);return;}if(_0x2907eb!==0x0&&_0x2907eb!==0x1){_0x50a200(new Error(_0x57c013(0x4fd,_0x1e3d3c._0x354333,0x4c6,0x47a)+_0x369ce8));return;}const _0x316ac6=_0x1b203a[_0x57c013(_0x1e3d3c._0x586eb5,_0x1e3d3c._0x5d6572,0x47b,0x426)]??0x64,_0x381884=[];function _0x25ded1(_0x1cc496,_0x46ca1d,_0x425f58,_0x46f3f0){return _0x41196b(_0x1cc496-0x1ed,_0x425f58- -_0x51956b._0x311e76,_0x425f58-_0x51956b._0x40a5ba,_0x46ca1d);}function _0x57c013(_0x1fb79b,_0x3ceca4,_0x59c0f6,_0x38fecd){return _0x2e3e0e(_0x1fb79b,_0x3ceca4-0xd9,_0x59c0f6-_0x3faf79._0x469160,_0x38fecd-0x12);}for(const _0x29f339 of _0x168a79[_0x57c013(_0x1e3d3c._0xca23a7,0x4f6,_0x1e3d3c._0x2916bb,_0x1e3d3c._0x18430c)](/\r?\n/)){if(_0x381884[_0x25ded1(0x303,0x3b5,_0x1e3d3c._0x5aa9b4,0x307)]>=_0x316ac6)break;const _0x4b9edc=parseMatchLine(_0x29f339,_0x4e0e5f);if(_0x4b9edc)_0x381884[_0x25ded1(_0x1e3d3c._0x438ed3,0x465,0x3cd,_0x1e3d3c._0x3f1e33)](_0x4b9edc);}_0x55bcf0(_0x381884);}),_0x67a15d['on'](_0x2e3e0e(_0x339ffd._0x13f34d,0x114,_0x339ffd._0x327126,0x66),_0x50a200);});}function createGlobTool(_0x1b37c8={}){const _0x3f52fd={_0x2d4fb7:0x5a3,_0x364b76:0x56b,_0x195b57:0x5c8,_0x386394:0x5c3,_0x5510a1:0x56a,_0x4a7a37:0x523,_0xd74dfc:0x534,_0x304311:0x571,_0x1466e1:0x33d,_0x2a004d:0x5aa,_0x2327cb:0x53b,_0x34c3bf:0x68d,_0xb169c8:0x609,_0x1f60ee:0x650,_0x3b0753:0x5f1,_0x74353d:0x5d6,_0x1d90e1:0x627,_0x1c8a98:0x5d9,_0x36eb15:0x5b8},_0x27429a={_0x175755:0xff,_0x3eadcd:0x113,_0x3d0d2a:0xef,_0x5cac28:0x149,_0x5ae63c:0xac,_0x3c6842:0x79,_0x47d391:0x40,_0x10184b:0x9d,_0x4ff274:0x69,_0x131df5:0x2a,_0x1e102b:0xbf,_0x5a1ebe:0x96,_0x2e469a:0x37,_0x422f93:0x41,_0x266c56:0x44,_0x1023b5:0x64,_0x495d5d:0x17,_0x2f3b30:0x26,_0x15993f:0x29,_0x16d6a5:0x57,_0x5735c6:0xb4,_0x391bd0:0x8d,_0x5775ce:0xb5,_0x1a568c:0x59,_0x297751:0x1af,_0x11eb8e:0x16e,_0x3485e3:0x191,_0x5eea32:0x6b,_0x2d9023:0xd,_0x173194:0x101,_0x400e6c:0x155,_0x1d9234:0x180,_0xd3b7a5:0x1e1,_0x244935:0x32,_0x59073d:0x5b,_0x23f72d:0xcb,_0x35621b:0x17,_0x467848:0x6c},_0x1711c2={_0x587607:0x1cf},_0x193ab3={_0x2a3e2f:0x17a},_0x338f36={_0x50f0a4:0x1c8,_0x2ad58b:0x127};function _0x3afdba(_0x27d6c9,_0x162bb3,_0x54442c,_0x290d93){return _0x44530c(_0x54442c,_0x162bb3-_0x338f36._0x50f0a4,_0x54442c-0x164,_0x290d93-_0x338f36._0x2ad58b);}const _0x5db37e=_0x27ea33['resolve'](_0x1b37c8[_0x3afdba(0x57d,_0x3f52fd._0x2d4fb7,_0x3f52fd._0x364b76,_0x3f52fd._0x195b57)]??process['cwd']()),_0x58a87e=_0x1b37c8[_0x3afdba(_0x3f52fd._0x386394,_0x3f52fd._0x5510a1,_0x3f52fd._0x4a7a37,0x578)]??0x64;function _0x47f8f4(_0x1024ef,_0x57b1a4,_0x16aa85,_0x3bb677){return _0x44530c(_0x1024ef,_0x57b1a4-_0x193ab3._0x2a3e2f,_0x16aa85-0xc,_0x16aa85- -0x146);}const _0x3e6a29=_0x1b37c8[_0x3afdba(_0x3f52fd._0xd74dfc,0x53a,0x562,_0x3f52fd._0x304311)]??_0x47f8f4(0x2b2,0x319,0x2ff,_0x3f52fd._0x1466e1);return defineTool({'name':_0x3e6a29,'description':_0x3afdba(0x530,0x5c8,_0x3f52fd._0x2a004d,_0x3f52fd._0x2327cb),'inputSchema':{'type':_0x3afdba(0x688,0x661,_0x3f52fd._0x34c3bf,0x62c),'properties':{'pattern':{'type':_0x3afdba(0x620,_0x3f52fd._0xb169c8,_0x3f52fd._0x1f60ee,0x627)},'path':{'type':_0x3afdba(_0x3f52fd._0x3b0753,_0x3f52fd._0x74353d,0x5f6,_0x3f52fd._0x1d90e1)},'limit':{'type':'number'}},'required':[_0x3afdba(_0x3f52fd._0x1c8a98,0x547,0x5bd,_0x3f52fd._0x36eb15)]},async *'execute'(_0xa649cc){const _0x9275e3={_0x32059b:0x10f,_0x424159:0x22,_0x1cee98:0x5a1};if(_0xa649cc['pattern']['trim']()[_0x1f8d98(-_0x27429a._0x175755,-_0x27429a._0x3eadcd,-_0x27429a._0x3d0d2a,-_0x27429a._0x5cac28)]===0x0)throw new ToolExecutionError(_0x34a5df(-_0x27429a._0x5ae63c,0x7,-_0x27429a._0x3c6842,-0xba),{});const _0x26328c=resolveWorkspacePath(_0x5db37e,_0xa649cc[_0x34a5df(_0x27429a._0x47d391,-0x6e,-0x37,-_0x27429a._0x10184b)]??'.'),_0x122d41=await _0x5c1969(_0x26328c)['catch'](()=>null);if(!_0x122d41?.[_0x34a5df(0x30,-0x22,_0x27429a._0x4ff274,_0x27429a._0x131df5)]())throw new ToolExecutionError(_0x1f8d98(-0x8,-_0x27429a._0x1e102b,-_0x27429a._0x5a1ebe,-0xa1)+(_0xa649cc[_0x34a5df(-0x41,-0x64,-_0x27429a._0x2e469a,-_0x27429a._0x422f93)]??'.'),{'path':_0xa649cc[_0x34a5df(-_0x27429a._0x266c56,_0x27429a._0x1023b5,-0x37,-_0x27429a._0x495d5d)]??'.'});const _0x2166a5=_0xa649cc[_0x34a5df(-_0x27429a._0x3c6842,_0x27429a._0x2f3b30,-_0x27429a._0x15993f,_0x27429a._0x16d6a5)]??_0x58a87e,_0x220ca1=Math[_0x34a5df(0x2f,0x49,_0x27429a._0x5735c6,0xad)](0x1,Math[_0x34a5df(_0x27429a._0x391bd0,_0x27429a._0x5775ce,_0x27429a._0x1a568c,0x48)](_0x2166a5)),_0x2bedfd=[];let _0x560ad3=![];for await(const _0x282b68 of files({'cwd':_0x26328c,'glob':[_0xa649cc[_0x1f8d98(-0x158,-0x91,-0x19b,-0x112)]]})){if(_0x2bedfd['length']>=_0x220ca1){_0x560ad3=!![];break;}const _0x309b18=await _0x5c1969(_0x27ea33[_0x1f8d98(-_0x27429a._0x297751,-_0x27429a._0x11eb8e,-_0x27429a._0x3485e3,-0x184)](_0x26328c,_0x282b68))['catch'](()=>null);_0x2bedfd[_0x34a5df(_0x27429a._0x5eea32,0xc,0xf,0xa9)]({'path':_0x282b68,'mtime':_0x309b18?.[_0x34a5df(_0x27429a._0x2d9023,_0x27429a._0x173194,_0x27429a._0x10184b,0x1c)]??0x0});}_0x2bedfd['sort']((_0x573256,_0x40ef85)=>_0x40ef85[_0x34a5df(-0x9f,0x35,-0x38,0x5b)]-_0x573256[_0x34a5df(-0x1f,-0x19,-0x38,-0x8c)]);const _0xbc739f=_0x2bedfd[_0x1f8d98(-0x14e,-_0x27429a._0x400e6c,-0x60,-0xf6)](_0x4de1c1=>_0x4de1c1['path']),_0x55e528=_0xbc739f[_0x1f8d98(-_0x27429a._0x1d9234,-0xf4,-_0x27429a._0xd3b7a5,-0x149)]===0x0?'No\x20files\x20found\x20matching\x20pattern:\x20'+_0xa649cc[_0x34a5df(_0x27429a._0x244935,-_0x27429a._0x47d391,0x17,-0x74)]:''+_0xbc739f[_0x34a5df(0x25,-0xa5,-_0x27429a._0x59073d,-_0x27429a._0x23f72d)]('\x0a')+(_0x560ad3?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');function _0x34a5df(_0x4f328c,_0x216110,_0x99093d,_0x16810e){return _0x3afdba(_0x4f328c-_0x9275e3._0x32059b,_0x216110-_0x9275e3._0x424159,_0x216110,_0x99093d- -_0x9275e3._0x1cee98);}function _0x1f8d98(_0x1ecfa4,_0xfb50fa,_0x1cfa64,_0x57fff8){return _0x47f8f4(_0x1ecfa4,_0xfb50fa-_0x1711c2._0x587607,_0x57fff8- -0x45d,_0x57fff8-0x72);}return yield createToolOutput(_0x55e528,{'pattern':_0xa649cc[_0x34a5df(-0x5d,0x56,_0x27429a._0x35621b,_0x27429a._0x467848)],'searchPath':_0x27ea33['relative'](_0x5db37e,_0x26328c)||'.','matches':_0xbc739f,'count':_0xbc739f['length'],'truncated':_0x560ad3}),void 0x0;}});}import{stat as _0xe46774}from'fs/promises';import*as _0x15a878 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x1788a9={}){const _0x228660={_0x50363f:0x5e3,_0x467928:0x511,_0x2c2bdd:0x565,_0x10f6e7:0x1c3,_0x585e45:0x201,_0x3d3cd8:0x23b,_0x4d6888:0x240,_0xae2803:0x1b2,_0x10d5a0:0x243,_0xeb0047:0x549,_0x2ad266:0x5ad,_0x24daae:0x5b3,_0x12832e:0x5a0,_0x3d193c:0x557,_0x40f8c5:0x595,_0x1c5162:0x5c4,_0x1ad93f:0x119,_0x4d60ae:0x156,_0x12834d:0x5b1,_0x143d39:0x5a5,_0x2b7ba0:0x202,_0x3c1baf:0x12c,_0x56f039:0x12e},_0x4bab7f={_0x29b76d:0x4d0,_0x257b0f:0x439,_0x409857:0x4da,_0x524cb8:0x1d6,_0x3f50f5:0xed,_0x7ba9ef:0x10f,_0xfb4604:0xd1,_0x59ef0d:0x53c,_0x3f47bd:0xf5,_0x187719:0x1ce,_0x3fef69:0x4d0,_0x1ca8a9:0x55e,_0x4501d6:0x48e,_0x50ae01:0x503,_0x17a01f:0x4aa,_0x2f8d9b:0x454,_0x2d3c59:0x4e0,_0x5d9fea:0x527,_0x9014f8:0x587,_0x263833:0x566,_0x171c14:0x57e,_0x43e282:0x496,_0x513747:0x42d,_0x531842:0x175,_0x20d6e0:0x152,_0x1c24fb:0x548,_0x2f8cf2:0x5db,_0x288099:0x54e,_0x52048c:0x4c2,_0x2409e1:0x588,_0x59a539:0x51c,_0x3ef6ec:0x148,_0x3f334b:0x11d,_0x491a70:0x10c,_0x38ca2b:0x124,_0x45e773:0x121,_0x4d7a4a:0x1ba,_0xd45173:0x127,_0x3b224d:0x60,_0x9b0fb6:0x239,_0x5616a8:0x15d,_0x2a1d0f:0x53e,_0x1e12be:0x4b9,_0x11840b:0x575,_0x492852:0x143,_0x478c75:0x18c,_0x59c0ae:0x131,_0x3fd6df:0x461,_0xee1a59:0x475,_0x21d193:0x48a,_0x186a9c:0x166,_0x471de2:0x1b0,_0x541584:0x1a1,_0x320015:0x147,_0x16b4fa:0x117,_0x595def:0xa9,_0x23ddd0:0x170,_0xd4b161:0x1eb,_0x3c0f1d:0x1a3,_0xff51f:0x549,_0x6f1f76:0x57c,_0x5228a8:0x4f2,_0x26dd5f:0x1d2,_0x116948:0x1a5,_0xdfef:0x19a},_0x467d1a={_0x1e9ba0:0x46},_0x25f936={_0x32702b:0x14a,_0x3442d1:0x85},_0x4700ac={_0x23fbf7:0xf1,_0x2698bb:0x656},_0x25ff23={_0x5a055a:0x84};function _0xfa9b5e(_0xe235a2,_0x54f8ae,_0x2549a5,_0x36c148){return _0x452c58(_0x36c148-0x350,_0x54f8ae,_0x2549a5-_0x25ff23._0x5a055a,_0x36c148-0x144);}const _0x203c36=_0x15a878['resolve'](_0x1788a9[_0xfa9b5e(_0x228660._0x50363f,_0x228660._0x467928,0x5aa,_0x228660._0x2c2bdd)]??process[_0x5dc7dc(-_0x228660._0x10f6e7,-_0x228660._0x585e45,-_0x228660._0x3d3cd8,-0x1be)]()),_0x4af676=_0x1788a9['limit']??0x64;function _0x5dc7dc(_0x568e3a,_0x34dcfd,_0x371d15,_0x59097d){return _0x44530c(_0x59097d,_0x34dcfd-_0x4700ac._0x23fbf7,_0x371d15-0x14c,_0x34dcfd- -_0x4700ac._0x2698bb);}const _0x223ef2=_0x1788a9['name']??_0x5dc7dc(-_0x228660._0x4d6888,-_0x228660._0xae2803,-_0x228660._0x10d5a0,-0x23c);return defineTool({'name':_0x223ef2,'description':_0xfa9b5e(_0x228660._0xeb0047,_0x228660._0x2ad266,0x5d0,_0x228660._0x24daae),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0xfa9b5e(0x5a7,_0x228660._0x12832e,_0x228660._0x3d193c,0x5c4)},'path':{'type':_0xfa9b5e(0x58d,0x549,_0x228660._0x40f8c5,_0x228660._0x1c5162)},'include':{'type':_0x5dc7dc(-_0x228660._0x1ad93f,-_0x228660._0x4d60ae,-0x1e3,-0x185)},'limit':{'type':_0xfa9b5e(_0x228660._0x12834d,_0x228660._0x143d39,0x605,_0x228660._0x12832e)},'context':{'type':'number'}},'required':[_0x5dc7dc(-_0x228660._0x2b7ba0,-0x1c5,-_0x228660._0x3c1baf,-_0x228660._0x56f039)]},async *'execute'(_0x12dcaf){if(_0x12dcaf[_0x459a19(_0x4bab7f._0x29b76d,_0x4bab7f._0x257b0f,0x4cf,_0x4bab7f._0x409857)]['trim']()[_0x11537f(0x146,0x1a9,0xc0,_0x4bab7f._0x524cb8)]===0x0)throw new ToolExecutionError(_0x11537f(_0x4bab7f._0x3f50f5,_0x4bab7f._0x7ba9ef,0xff,_0x4bab7f._0xfb4604),{});const _0x5109fb=resolveWorkspacePath(_0x203c36,_0x12dcaf['path']??'.'),_0x1937f2=await _0xe46774(_0x5109fb)['catch'](()=>null),_0x8367b9=_0x1937f2?.['isFile']()??![],_0x5e45b0=_0x1937f2?.[_0x459a19(0x522,_0x4bab7f._0x59ef0d,0x554,0x4c9)]()??![];if(!_0x8367b9&&!_0x5e45b0)throw new ToolExecutionError(_0x459a19(0x498,0x45f,0x445,0x4e9)+(_0x12dcaf['path']??'.'),{'path':_0x12dcaf['path']??'.'});function _0x459a19(_0x8d475b,_0x38399f,_0x49768a,_0x3e297c){return _0xfa9b5e(_0x8d475b-0x13c,_0x38399f,_0x49768a-_0x25f936._0x32702b,_0x8d475b- -_0x25f936._0x3442d1);}const _0x5ca0f9=_0x12dcaf[_0x11537f(0x13d,0x15f,_0x4bab7f._0x3f47bd,_0x4bab7f._0x187719)]??_0x4af676,_0x3b33c6=Math[_0x459a19(0x56d,0x5af,0x598,0x56a)](0x1,Math[_0x459a19(0x512,0x53d,0x54e,0x584)](_0x5ca0f9)),_0xee30ba=await search({'cwd':_0x5e45b0?_0x5109fb:_0x15a878['dirname'](_0x5109fb),'pattern':_0x12dcaf[_0x459a19(_0x4bab7f._0x3fef69,0x4dc,_0x4bab7f._0x1ca8a9,_0x4bab7f._0x4501d6)],'glob':_0x5e45b0?_0x12dcaf['include']:void 0x0,'limit':_0x3b33c6,'file':_0x8367b9?_0x5109fb:void 0x0,'context':_0x12dcaf['context']}),_0x5dd5ad=new Map();for(const _0x3aeccb of _0xee30ba){if(!_0x5dd5ad['has'](_0x3aeccb['filePath'])){const _0x5a2b4c=await _0xe46774(_0x3aeccb[_0x459a19(0x527,0x4be,0x578,_0x4bab7f._0x50ae01)])['catch'](()=>null);_0x5dd5ad[_0x459a19(_0x4bab7f._0x17a01f,0x53a,_0x4bab7f._0x2f8d9b,_0x4bab7f._0x2d3c59)](_0x3aeccb[_0x459a19(_0x4bab7f._0x5d9fea,_0x4bab7f._0x9014f8,0x4e9,0x501)],{'matches':[],'mtime':_0x5a2b4c?.['mtimeMs']??0x0});}_0x5dd5ad['get'](_0x3aeccb[_0x459a19(_0x4bab7f._0x5d9fea,_0x4bab7f._0x263833,0x5c1,_0x4bab7f._0x171c14)])?.[_0x459a19(_0x4bab7f._0x43e282,_0x4bab7f._0x513747,0x404,0x473)][_0x11537f(_0x4bab7f._0x531842,_0x4bab7f._0x20d6e0,0xe8,0x126)](_0x3aeccb);}const _0x4c6bb7=[..._0x5dd5ad[_0x459a19(_0x4bab7f._0x1c24fb,0x54e,0x5a7,_0x4bab7f._0x2f8cf2)]()][_0x459a19(_0x4bab7f._0x288099,_0x4bab7f._0x52048c,_0x4bab7f._0x2409e1,_0x4bab7f._0x59a539)]((_0x2d2002,_0x306132)=>_0x306132[0x1]['mtime']-_0x2d2002[0x1][_0x459a19(0x481,0x4b5,0x46a,0x4c3)]),_0x75dffe=_0xee30ba['filter'](_0x366a1f=>!_0x366a1f['isContext'])['length'];function _0x11537f(_0xb35c77,_0x27f61c,_0x13fe1f,_0x15b8bb){return _0xfa9b5e(_0xb35c77-0x11e,_0x27f61c,_0x13fe1f-_0x467d1a._0x1e9ba0,_0xb35c77- -0x3d8);}const _0xdd4246=_0xee30ba['length']>=_0x3b33c6,_0xbf7630=_0x8367b9?_0x15a878['dirname'](_0x5109fb):_0x5109fb;let _0x50a197='';if(_0xee30ba[_0x11537f(0x146,_0x4bab7f._0x3ef6ec,_0x4bab7f._0x3f334b,_0x4bab7f._0x491a70)]===0x0)_0x50a197=_0x11537f(_0x4bab7f._0x38ca2b,_0x4bab7f._0x45e773,_0x4bab7f._0x4d7a4a,0x8e)+_0x12dcaf[_0x11537f(0x17d,0x1f6,0x15c,_0x4bab7f._0xd45173)];else{_0x50a197='Found\x20'+_0x75dffe+_0x11537f(0xf1,0xb1,_0x4bab7f._0x3b224d,0xb3)+(_0x75dffe===0x1?'':'es')+'\x0a';for(const [_0x50408c,_0x2cde14]of _0x4c6bb7){const _0x18ded4=_0x8367b9?_0x15a878[_0x11537f(0x1cb,0x211,_0x4bab7f._0x9b0fb6,_0x4bab7f._0x5616a8)](_0x50408c):_0x15a878[_0x459a19(_0x4bab7f._0x2a1d0f,_0x4bab7f._0x1e12be,0x585,_0x4bab7f._0x11840b)](_0xbf7630,_0x50408c);_0x50a197+='\x0a'+_0x18ded4+':\x0a';for(const _0x5637c8 of _0x2cde14[_0x11537f(_0x4bab7f._0x492852,_0x4bab7f._0x478c75,0x14a,_0x4bab7f._0x59c0ae)]){const _0x285f40=_0x5637c8[_0x459a19(0x475,0x405,0x4fe,_0x4bab7f._0x3fd6df)]['length']>MAX_LINE_LENGTH?_0x5637c8[_0x459a19(_0x4bab7f._0xee1a59,_0x4bab7f._0x21d193,0x4b8,0x465)][_0x11537f(_0x4bab7f._0x3ef6ec,_0x4bab7f._0x186a9c,0xfc,_0x4bab7f._0x471de2)](0x0,MAX_LINE_LENGTH)+'...':_0x5637c8['lineText'],_0x51d503=_0x5637c8[_0x11537f(_0x4bab7f._0x541584,_0x4bab7f._0x320015,_0x4bab7f._0x16b4fa,0x164)]?'\x20\x20':'>\x20';_0x50a197+=_0x51d503+_0x11537f(0x10f,0x8d,_0x4bab7f._0x595def,0x19c)+_0x5637c8['lineNum']+':\x20'+_0x285f40+'\x0a';}}_0xdd4246&&(_0x50a197+=_0x11537f(0x180,0x185,_0x4bab7f._0x23ddd0,0x1e7));}const _0x51c536={'searchPath':_0x15a878[_0x11537f(_0x4bab7f._0xd4b161,0x1bf,_0x4bab7f._0x3c0f1d,0x1bb)](_0x203c36,_0x5109fb)||'.','pattern':_0x12dcaf['pattern'],'matchCount':_0x75dffe,'fileCount':_0x5dd5ad['size'],'truncated':_0xdd4246};return _0x5e45b0&&_0x12dcaf['include']!==void 0x0&&(_0x51c536[_0x459a19(0x53a,_0x4bab7f._0xff51f,_0x4bab7f._0x6f1f76,_0x4bab7f._0x5228a8)]=_0x12dcaf['include']),yield createToolOutput(_0x50a197[_0x11537f(_0x4bab7f._0x26dd5f,_0x4bab7f._0x116948,_0x4bab7f._0xdfef,0x1bd)](),_0x51c536),void 0x0;}});}import{readdir,readFile as _0x2aaf1e,stat as _0x35254f}from'fs/promises';import*as _0x4e95f2 from'path';import*as _0x4cda1b from'yaml';async function countTextLines(_0x32dac5){const _0x13d903={_0x5d76cd:0x56d,_0x44a5b5:0x62b,_0x4b8aa6:0x598,_0x1079fb:0x473,_0x1b7bb7:0x4b1,_0x3b1e1e:0x4ae,_0x4ede02:0x4ab,_0x20c550:0x4ce,_0x231469:0x4fc,_0x15fe76:0x448,_0x1bfd90:0x4dc},_0x5535ae={_0x51ba82:0x101},_0x1e48e7=await _0x2aaf1e(_0x32dac5)[_0x19b242(_0x13d903._0x5d76cd,_0x13d903._0x44a5b5,0x5a4,_0x13d903._0x4b8aa6)](()=>null);function _0x48f51b(_0xf33da,_0x4dc5b0,_0x21741e,_0x1262b5){return _0x452c58(_0xf33da-_0x5535ae._0x51ba82,_0x1262b5,_0x21741e-0xf9,_0x1262b5-0x77);}function _0x19b242(_0x4301fc,_0x9e5664,_0x5a531e,_0xda2f5b){return _0x452c58(_0xda2f5b-0x30e,_0x5a531e,_0x5a531e-0x17a,_0xda2f5b-0x2c);}if(!_0x1e48e7||isProbablyBinary(_0x1e48e7))return void 0x0;return _0x1e48e7[_0x19b242(_0x13d903._0x1079fb,_0x13d903._0x1b7bb7,0x4ae,0x4f8)](_0x19b242(_0x13d903._0x3b1e1e,_0x13d903._0x4ede02,_0x13d903._0x20c550,0x508))['split'](/\r?\n/)[_0x19b242(_0x13d903._0x231469,0x4c2,_0x13d903._0x15fe76,_0x13d903._0x1bfd90)];}function createLsTool(_0x5dcd79={}){const _0x57e791={_0x2e7737:0x73,_0x5a4b61:0xf1,_0x68b2b6:0x194,_0x312f1d:0x151,_0x5c5a5a:0x145,_0x58a806:0x129,_0x17edfc:0x150,_0x50fa11:0x26,_0x4d9924:0x53,_0x5a49af:0xba,_0x52cf29:0x9a,_0x4c4a0b:0x137,_0x2c7084:0xc5,_0x5ed649:0xbe},_0x291679={_0x4657e8:0x297,_0x1ecf99:0x220,_0x226456:0x2aa,_0x15eea5:0x525,_0x195ffd:0x490,_0x277ec0:0x409,_0x303752:0x2ef,_0x3a84f7:0x34a,_0x5401bb:0x543,_0x1088eb:0x452,_0x31afb1:0x4a8,_0x1e5616:0x460,_0x37d764:0x31a,_0x5a01ad:0x35f,_0x4fe680:0x2c3,_0x2fcfcf:0x388,_0x3a0ff2:0x32a,_0x1394ec:0x2e6,_0x36451d:0x388,_0x4818a2:0x34a,_0x557f57:0x3a7,_0x4002f9:0x3a0,_0x28b503:0x356,_0x3197a0:0x40d,_0x1cbc2e:0x38f,_0x2f1910:0x2f7,_0x3bc878:0x2bd,_0x117f6f:0x3de,_0x188750:0x46b,_0x2f0d54:0x3f9,_0x4169d2:0x46a,_0x29d7af:0x35e,_0x249025:0x306,_0x138c60:0x2f3,_0x4592f9:0x370,_0x3b33a7:0x3d4,_0x5057cf:0x44b,_0x1aaae4:0x3e8,_0x46db32:0x2ed,_0x59e568:0x2c1,_0x9ed977:0x3d8,_0x56c91f:0x38a},_0x51d1f2={_0x28f7ad:0x46},_0x289064={_0xdf222b:0x108},_0x52d53a={_0x3a3150:0xeb};function _0x121791(_0x322ef6,_0x554cf8,_0x4b6e8b,_0x50c2b3){return _0x452c58(_0x50c2b3- -0x30e,_0x554cf8,_0x4b6e8b-0x1dd,_0x50c2b3-0xc4);}const _0x3d3a6e=_0x4e95f2[_0x121791(-_0x57e791._0x2e7737,-0x54,-_0x57e791._0x5a4b61,-0x7c)](_0x5dcd79['defaultCwd']??process[_0x121791(-_0x57e791._0x68b2b6,-0x11a,-_0x57e791._0x312f1d,-_0x57e791._0x5c5a5a)]()),_0x5ad72d=_0x5dcd79[_0x121791(-0x1d9,-_0x57e791._0x58a806,-0x118,-_0x57e791._0x17edfc)]??'Ls';function _0x10111e(_0x4d1d49,_0x11a25f,_0x252332,_0x2865b6){return _0x44530c(_0x2865b6,_0x11a25f-0x13b,_0x252332-_0x52d53a._0x3a3150,_0x4d1d49- -0x348);}return defineTool({'name':_0x5ad72d,'description':'List\x20files\x20and\x20directories\x20in\x20a\x20workspace\x20directory.','inputSchema':{'type':'object','properties':{'path':{'type':_0x121791(-_0x57e791._0x50fa11,-_0x57e791._0x4d9924,-_0x57e791._0x5a49af,-_0x57e791._0x52cf29)},'limit':{'type':_0x121791(-_0x57e791._0x4c4a0b,-_0x57e791._0x2c7084,-0xc5,-_0x57e791._0x5ed649)}}},async *'execute'(_0x547abc){const _0x23ddad=_0x547abc[_0x5099c0(_0x291679._0x4657e8,0x322,_0x291679._0x1ecf99,_0x291679._0x226456)]??'.',_0x1b9aa6=resolveWorkspacePath(_0x3d3a6e,_0x23ddad),_0x2e75eb=await _0x35254f(_0x1b9aa6)[_0x4610e1(0x521,_0x291679._0x15eea5,_0x291679._0x195ffd,_0x291679._0x277ec0)](()=>null);if(!_0x2e75eb?.[_0x5099c0(0x39f,0x3aa,_0x291679._0x303752,_0x291679._0x3a84f7)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x23ddad,{'path':_0x23ddad});const _0x36b27f=_0x547abc['limit']??0x3e8,_0x15fa62=Math['min'](Math[_0x4610e1(_0x291679._0x5401bb,_0x291679._0x1088eb,_0x291679._0x31afb1,_0x291679._0x1e5616)](Math['trunc'](_0x36b27f),0x1),0x2710),_0xb21956=await readdir(_0x1b9aa6),_0xdaa908=[];for(const _0x20f2d1 of _0xb21956[_0x5099c0(0x2ee,_0x291679._0x37d764,_0x291679._0x5a01ad,_0x291679._0x4fe680)](0x0,_0x15fa62)){const _0x3cf2c3=_0x4e95f2[_0x4610e1(_0x291679._0x2fcfcf,_0x291679._0x3a0ff2,0x399,0x35c)](_0x1b9aa6,_0x20f2d1),_0x4cf7a6=await _0x35254f(_0x3cf2c3)['catch'](()=>null);if(!_0x4cf7a6)continue;let _0x520c0c='other';if(_0x4cf7a6['isFile']())_0x520c0c=_0x5099c0(0x288,0x32e,0x328,_0x291679._0x1394ec);else{if(_0x4cf7a6[_0x5099c0(0x3bb,_0x291679._0x36451d,0x37c,_0x291679._0x4818a2)]())_0x520c0c=_0x4610e1(_0x291679._0x557f57,0x39f,_0x291679._0x4002f9,_0x291679._0x28b503);else{if(_0x4cf7a6['isSymbolicLink']())_0x520c0c=_0x4610e1(_0x291679._0x3197a0,_0x291679._0x1cbc2e,0x407,0x3b3);}}const _0x1039a1={'name':_0x20f2d1,'type':_0x520c0c,'size':_0x4cf7a6['size'],'mtime':_0x4cf7a6[_0x4610e1(_0x291679._0x195ffd,0x498,0x491,0x529)],'mode':_0x4cf7a6[_0x5099c0(0x28f,_0x291679._0x2f1910,0x2dc,_0x291679._0x3bc878)]},_0x41bd4a=_0x520c0c===_0x4610e1(_0x291679._0x117f6f,_0x291679._0x188750,_0x291679._0x2f0d54,_0x291679._0x4169d2)?await countTextLines(_0x3cf2c3):void 0x0;if(_0x41bd4a!==void 0x0)_0x1039a1['lines']=_0x41bd4a;_0xdaa908[_0x5099c0(_0x291679._0x29d7af,0x365,_0x291679._0x249025,0x2f0)](_0x1039a1);}_0xdaa908[_0x5099c0(0x379,0x36f,_0x291679._0x138c60,0x376)]((_0x45309c,_0x2bee62)=>_0x45309c[_0x5099c0(0x2f0,0x2d6,0x314,0x2b1)][_0x4610e1(0x486,0x41e,0x49c,0x408)](_0x2bee62[_0x5099c0(0x251,0x21a,0x30e,0x2b1)]));function _0x4610e1(_0x323de6,_0x5c8634,_0x157a4a,_0x1b7994){return _0x121791(_0x323de6-_0x289064._0xdf222b,_0x323de6,_0x157a4a-0xd1,_0x157a4a-0x514);}const _0x1311a4={'path':_0x23ddad,'total':_0xdaa908[_0x4610e1(_0x291679._0x4592f9,0x399,_0x291679._0x3b33a7,0x3e7)],'truncated':_0xb21956['length']>_0x15fa62,'entries':_0xdaa908};function _0x5099c0(_0x39008b,_0x3f0ee3,_0xda2d25,_0x4362aa){return _0x121791(_0x39008b-0x1b4,_0x3f0ee3,_0xda2d25-_0x51d1f2._0x28f7ad,_0x4362aa-0x401);}return yield createToolOutput(_0x4cda1b['stringify'](_0x1311a4,{'indent':0x2,'lineWidth':0x0})[_0x4610e1(0x3e1,_0x291679._0x5057cf,_0x291679._0x1aaae4,0x461)](),{'path':_0x23ddad,'total':_0xdaa908[_0x5099c0(_0x291679._0x46db32,0x22c,0x2eb,_0x291679._0x59e568)],'truncated':_0xb21956[_0x4610e1(_0x291679._0x9ed977,_0x291679._0x56c91f,0x3d4,0x3a2)]>_0x15fa62,'limit':_0x15fa62,'entries':_0xdaa908}),void 0x0;}});}import{randomUUID}from'crypto';import{mkdir as _0x267ad9,readFile as _0x1ffa19,writeFile as _0x192900}from'fs/promises';import{join as _0x50c478}from'path';function sanitizeStorageKey(_0x5bccd6){const _0x3000bd={_0x5d9734:0xcd,_0xa537db:0x100,_0x555325:0xf5,_0x44d902:0x1b8,_0x443440:0x75,_0xdc73f4:0x10b},_0x3ccaf3={_0x134807:0x171,_0x13ad88:0x1d4,_0x15091c:0x2e9};function _0x5abfd6(_0x5b2724,_0x1cde30,_0x474794,_0x15e2c5){return _0x44530c(_0x474794,_0x1cde30-0x55,_0x474794-0xa4,_0x5b2724- -0x5b9);}function _0x4de0b2(_0x222ffa,_0x40d530,_0x52166c,_0x56a09a){return _0x44530c(_0x52166c,_0x40d530-_0x3ccaf3._0x134807,_0x52166c-_0x3ccaf3._0x13ad88,_0x56a09a- -_0x3ccaf3._0x15091c);}return _0x5bccd6[_0x5abfd6(-0x158,-_0x3000bd._0x5d9734,-0x164,-_0x3000bd._0xa537db)](/[^a-zA-Z0-9_]+/g,'_')[_0x4de0b2(0x1dc,_0x3000bd._0x555325,_0x3000bd._0x44d902,0x178)](/^_+|_+$/g,'')||_0x5abfd6(-0xab,-_0x3000bd._0x443440,-0xb5,-_0x3000bd._0xdc73f4);}function storagePath(_0x43867a){const _0x475e4f={_0x36560a:0x332,_0x420503:0x2e8,_0x427998:0x1d6,_0x572258:0x185,_0x400ea7:0x1b9,_0x5efa25:0x202,_0x10358a:0x1ed,_0x59c0aa:0x236,_0x3ba750:0x18e,_0x2e59ab:0x1ed,_0x24a26e:0x367},_0x797ac4={_0x2173e1:0x16a,_0x11f843:0x32d},_0x549d81={_0x459c8d:0xe5};function _0x45588e(_0x35f610,_0x5f441f,_0x1621b4,_0x38aa43){return _0x452c58(_0x38aa43-0x87,_0x1621b4,_0x1621b4-0x148,_0x38aa43-_0x549d81._0x459c8d);}function _0x1089b(_0x4563b3,_0x2650a6,_0x3b31ee,_0x443d41){return _0x44530c(_0x443d41,_0x2650a6-_0x797ac4._0x2173e1,_0x3b31ee-0xad,_0x4563b3- -_0x797ac4._0x11f843);}const _0x5cf90a=sanitizeStorageKey(_0x43867a[_0x45588e(0x319,_0x475e4f._0x36560a,0x336,_0x475e4f._0x420503)][_0x1089b(_0x475e4f._0x427998,_0x475e4f._0x572258,0x25f,_0x475e4f._0x400ea7)]?.[_0x1089b(_0x475e4f._0x5efa25,0x26a,_0x475e4f._0x10358a,_0x475e4f._0x59c0aa)]??_0x43867a[_0x1089b(_0x475e4f._0x3ba750,_0x475e4f._0x2e59ab,0x107,0x166)]);return _0x50c478(_0x43867a['storageDir'],_0x5cf90a+_0x45588e(0x303,0x297,_0x475e4f._0x24a26e,0x2dd));}async function readStore(_0x6891f4){const _0x5581bb={_0x105ba4:0x1b4,_0x1aee6f:0x40c,_0x5efc19:0x3d5,_0x52a83c:0x457},_0x250ecc={_0x4ce8d0:0x9a},_0x56791c={_0x2b12b8:0x2dc};function _0x2ffdc9(_0x30e580,_0x4a4a22,_0x2ee13a,_0x3db9e9){return _0x44530c(_0x4a4a22,_0x4a4a22-0x1be,_0x2ee13a-0x49,_0x30e580- -_0x56791c._0x2b12b8);}function _0x46fbca(_0x50ed74,_0x222973,_0x4be5a0,_0x4ae105){return _0x44530c(_0x50ed74,_0x222973-_0x250ecc._0x4ce8d0,_0x4be5a0-0x14b,_0x4be5a0- -0x22);}try{return JSON['parse'](await _0x1ffa19(_0x6891f4,_0x2ffdc9(0x1aa,_0x5581bb._0x105ba4,0x14f,0x245)));}catch(_0x29ce01){if(_0x29ce01 instanceof Error&&_0x46fbca(0x387,0x384,_0x5581bb._0x1aee6f,_0x5581bb._0x5efc19)in _0x29ce01&&_0x29ce01[_0x46fbca(_0x5581bb._0x52a83c,0x456,0x40c,0x3e0)]==='ENOENT')return{};throw _0x29ce01;}}async function writeStore(_0x126d6e,_0x216463){const _0x1c41ae={_0x36b5c3:0x289,_0x9a10d9:0x2a3};await _0x267ad9(_0x50c478(_0x126d6e,'..'),{'recursive':!![]});function _0x1a708f(_0x5567f8,_0x1e0e38,_0x34b3ea,_0x131b66){return _0x44530c(_0x131b66,_0x1e0e38-0x14,_0x34b3ea-0x101,_0x1e0e38- -0x243);}await _0x192900(_0x126d6e,JSON[_0x1a708f(0x29d,0x28c,_0x1c41ae._0x36b5c3,_0x1c41ae._0x9a10d9)](_0x216463,null,0x2),'utf8');}async function updateStore(_0x44c32d,_0x1fc40c){const _0x2af43f=await readStore(_0x44c32d);_0x1fc40c(_0x2af43f),await writeStore(_0x44c32d,_0x2af43f);}function createMcpOAuthProvider(_0x5a61f0){const _0x17f9f7={_0x10d8b3:0x319,_0x231b02:0x2cd,_0x22d2ba:0x311,_0x41f4f9:0x21a,_0x51a27d:0x109,_0x506b6a:0xfd,_0x2ec824:0xfb,_0x172a37:0x180,_0x1a8347:0x172,_0xf783bd:0x171,_0xb64f00:0x2d2,_0x4a50a:0x203,_0xc19539:0x118,_0x423fd7:0x7d,_0x2d0564:0x14b,_0x180bd2:0x1ed,_0xbee367:0x20e,_0x1fd093:0x257,_0xd30b7b:0x19c,_0x26ae58:0x1f6,_0x52ddb7:0x167},_0x2f8bc5={_0x3d584b:0x2fa,_0x307a1c:0x33a,_0x345e85:0x369,_0x54807e:0x2f6},_0x2620b2={_0x2a6d8f:0x58,_0x35da57:0xc1},_0x557db4={_0x217e24:0x280,_0x5e42f2:0x224,_0x46e93d:0x204},_0x3e65e3={_0x5644de:0xab,_0x5824bb:0x70,_0x4a77bc:0x49a,_0x2e23e0:0x3dc,_0x4e4488:0xae,_0x480e2f:0x322,_0x4220c9:0xff,_0x37eab2:0x99,_0x4b4085:0x79,_0x52d8e5:0x3c,_0x494d45:0x85,_0x138dad:0x34d,_0x1644e7:0x387,_0x184d22:0x3ad,_0x4ff388:0x378,_0x3c1f1a:0x2ac,_0x29ed6b:0xae,_0x3bcb95:0xd3,_0x241ca3:0xba,_0xde70b5:0x35c,_0x50f77f:0x38f},_0x5e41f1={_0x349a8e:0x194,_0x56dc0a:0x226,_0x3178c7:0x142,_0x50f0ff:0x1cb},_0x47d995={_0x5036ec:0x27,_0x262695:0x1f1},_0x4c2b34={_0x240df9:0xbc,_0x5ef5a7:0x88},_0x255765={_0xab91e9:0xde,_0x5698a2:0xf1},_0x1d941e={_0x3488b9:0x42e},_0x2ab88f={_0x1ca618:0x1d2,_0x4ef811:0x15f},_0x5edbd8={_0x34e820:0x568},_0x2fb136={_0x367d66:0x152},_0x41d547={_0x2e53b3:0xdb},_0x190595={_0x21b897:0x182,_0x4122a1:0x1e9,_0x4d0854:0x316};function _0x18cc83(_0x119467,_0x2895a6,_0x1b888c,_0x5cfeb8){return _0x44530c(_0x1b888c,_0x2895a6-_0x190595._0x21b897,_0x1b888c-_0x190595._0x4122a1,_0x119467- -_0x190595._0x4d0854);}const _0x28e601=storagePath(_0x5a61f0),_0x14e684=_0x5a61f0['config'][_0x142c03(0x318,_0x17f9f7._0x10d8b3,_0x17f9f7._0x231b02,_0x17f9f7._0x22d2ba)]?.[_0x18cc83(0x213,0x228,_0x17f9f7._0x41f4f9,0x1ce)]?.[_0x18cc83(_0x17f9f7._0x51a27d,0x198,0x198,0xd7)]('\x20');function _0x142c03(_0x31965e,_0x42ba54,_0x23ab87,_0x5864bc){return _0x452c58(_0x31965e-0xa1,_0x23ab87,_0x23ab87-_0x41d547._0x2e53b3,_0x5864bc-0x125);}const _0x60a0fd={'client_name':_0x18cc83(0x10c,_0x17f9f7._0x506b6a,_0x17f9f7._0x2ec824,_0x17f9f7._0x172a37),'redirect_uris':[_0x5a61f0[_0x18cc83(0x1d4,_0x17f9f7._0x1a8347,_0x17f9f7._0xf783bd,0x236)]],'grant_types':[_0x18cc83(0x127,0xa0,0x11e,_0x17f9f7._0x51a27d),_0x142c03(0x288,_0x17f9f7._0xb64f00,0x295,_0x17f9f7._0x4a50a)],'response_types':[_0x18cc83(_0x17f9f7._0xc19539,_0x17f9f7._0x423fd7,_0x17f9f7._0x2d0564,0x19e)],'token_endpoint_auth_method':'client_secret_post',..._0x14e684?{'scope':_0x14e684}:{}};return{'clientMetadataUrl':_0x5a61f0['config'][_0x18cc83(_0x17f9f7._0x180bd2,_0x17f9f7._0xbee367,_0x17f9f7._0x1fd093,_0x17f9f7._0xd30b7b)]?.[_0x18cc83(_0x17f9f7._0x26ae58,_0x17f9f7._0x52ddb7,0x1cf,0x1d0)],get 'redirectUrl'(){return _0x5a61f0['callbackUrl'];},get 'clientMetadata'(){return _0x60a0fd;},async 'state'(){const _0x36c945={_0x255536:0x3ee,_0x3b4bdd:0x40a,_0x34945b:0x421};function _0x429650(_0x21871e,_0x242298,_0x5eb0f3,_0x8473dc){return _0x18cc83(_0x5eb0f3- -_0x2fb136._0x367d66,_0x242298-0xea,_0x242298,_0x8473dc-0x127);}const _0x4dfa76=await readStore(_0x28e601);if(_0x4dfa76[_0x429650(0x10,-0x93,-0x15,0x14)])return _0x4dfa76['state'];const _0x322d93=randomUUID();return await updateStore(_0x28e601,_0x471f39=>{function _0x33fe60(_0x48fed3,_0x463f03,_0x5ce59d,_0x4f1f45){return _0x429650(_0x48fed3-0x10d,_0x48fed3,_0x5ce59d-0x41f,_0x4f1f45-0xd1);}_0x471f39[_0x33fe60(_0x36c945._0x255536,0x3cf,_0x36c945._0x3b4bdd,_0x36c945._0x34945b)]=_0x322d93;}),_0x322d93;},async 'clientInformation'(){return(await readStore(_0x28e601))['clientInformation'];},async 'saveClientInformation'(_0x334b85){await updateStore(_0x28e601,_0x135e0a=>{const _0x52ea94={_0xcf5202:0x35b};function _0x4de7f7(_0x26f40d,_0x501ab4,_0x461742,_0x2a3191){return _0x5314(_0x461742-_0x52ea94._0xcf5202,_0x2a3191);}_0x135e0a[_0x4de7f7(0x580,0x5ac,0x562,_0x5edbd8._0x34e820)]=_0x334b85;});},async 'tokens'(){function _0x40c8e2(_0x43f0e0,_0x2c1551,_0x39d6c6,_0x32b335){return _0x18cc83(_0x43f0e0-0x1f7,_0x2c1551-_0x2ab88f._0x1ca618,_0x39d6c6,_0x32b335-_0x2ab88f._0x4ef811);}return(await readStore(_0x28e601))[_0x40c8e2(0x3da,0x376,_0x1d941e._0x3488b9,0x401)];},async 'saveTokens'(_0x4469df){await updateStore(_0x28e601,_0x458fa0=>{_0x458fa0['tokens']=_0x4469df;});},async 'redirectToAuthorization'(_0x4e79f4){function _0x2af5b0(_0x29f55e,_0x44a7ad,_0x1d85ba,_0x36e5b7){return _0x18cc83(_0x36e5b7- -0x13f,_0x44a7ad-_0x255765._0xab91e9,_0x44a7ad,_0x36e5b7-_0x255765._0x5698a2);}await _0x5a61f0[_0x2af5b0(0x81,0xcb,_0x4c2b34._0x240df9,_0x4c2b34._0x5ef5a7)](_0x4e79f4);},async 'saveCodeVerifier'(_0x441f3f){const _0x3d429d={_0x4f92a2:0x274,_0x4a4ea7:0x2d8,_0x38efb0:0x1f3,_0x35002b:0x2a4};await updateStore(_0x28e601,_0x38a5df=>{const _0x565e5c={_0x34c3ca:0x7b};function _0x33ce1a(_0x60b9fe,_0x289f30,_0x599c32,_0x2b014f){return _0x5314(_0x60b9fe-_0x565e5c._0x34c3ca,_0x599c32);}_0x38a5df[_0x33ce1a(_0x3d429d._0x4f92a2,_0x3d429d._0x4a4ea7,_0x3d429d._0x38efb0,_0x3d429d._0x35002b)]=_0x441f3f;});},async 'codeVerifier'(){const _0x204c3a={_0x9faba9:0xd8};function _0x8b2aae(_0x99b859,_0x5ae9a8,_0x2c7272,_0x34f1ba){return _0x142c03(_0x5ae9a8- -0x2,_0x5ae9a8-_0x47d995._0x5036ec,_0x2c7272,_0x34f1ba-_0x47d995._0x262695);}function _0x3ff362(_0x291cbb,_0x31f629,_0x3594f0,_0x5ad128){return _0x18cc83(_0x291cbb-0x2d,_0x31f629-0x1e8,_0x5ad128,_0x5ad128-_0x204c3a._0x9faba9);}const _0x11fbf0=(await readStore(_0x28e601))[_0x3ff362(_0x5e41f1._0x349a8e,0x1da,_0x5e41f1._0x56dc0a,_0x5e41f1._0x3178c7)];if(!_0x11fbf0)throw new Error(_0x3ff362(_0x5e41f1._0x50f0ff,0x146,0x1f8,0x249));return _0x11fbf0;},async 'invalidateCredentials'(_0x8aa823){await updateStore(_0x28e601,_0x29b6f6=>{(_0x8aa823===_0x3b12f2(-0x13f,-_0x3e65e3._0x5644de,-0x49,-_0x3e65e3._0x5824bb)||_0x8aa823===_0x34aa92(0x424,_0x3e65e3._0x4a77bc,_0x3e65e3._0x2e23e0,0x430))&&(_0x29b6f6[_0x3b12f2(0x51,-0x48,-_0x3e65e3._0x4e4488,-0x87)]=void 0x0);(_0x8aa823==='all'||_0x8aa823==='tokens')&&(_0x29b6f6['tokens']=void 0x0);(_0x8aa823===_0x34aa92(_0x3e65e3._0x480e2f,0x399,0x32d,0x389)||_0x8aa823===_0x3b12f2(-_0x3e65e3._0x4220c9,-_0x3e65e3._0x37eab2,-_0x3e65e3._0x4b4085,-_0x3e65e3._0x52d8e5))&&(_0x29b6f6[_0x3b12f2(-0xb4,-0x56,-0x41,-_0x3e65e3._0x494d45)]=void 0x0,_0x29b6f6[_0x34aa92(_0x3e65e3._0x138dad,_0x3e65e3._0x1644e7,0x378,_0x3e65e3._0x184d22)]=void 0x0);function _0x3b12f2(_0x36c38e,_0x43b58b,_0x2936a5,_0x4ef8f9){return _0x5314(_0x43b58b- -0x24f,_0x36c38e);}function _0x34aa92(_0x4842a2,_0xd24712,_0x44d434,_0xc8453b){return _0x5314(_0x4842a2-0x17e,_0xc8453b);}(_0x8aa823===_0x34aa92(0x322,_0x3e65e3._0x4ff388,0x323,_0x3e65e3._0x3c1f1a)||_0x8aa823===_0x3b12f2(-_0x3e65e3._0x29ed6b,-_0x3e65e3._0x3bcb95,-_0x3e65e3._0x241ca3,-0x4c))&&(_0x29b6f6[_0x34aa92(_0x3e65e3._0xde70b5,0x302,0x336,_0x3e65e3._0x50f77f)]=void 0x0);});},async 'saveDiscoveryState'(_0x1ab71e){await updateStore(_0x28e601,_0x21aef8=>{function _0x4584d9(_0xf35857,_0x25fb52,_0x5d0be,_0x4bd985){return _0x5314(_0xf35857-0x61,_0x25fb52);}_0x21aef8[_0x4584d9(0x23f,_0x557db4._0x217e24,_0x557db4._0x5e42f2,_0x557db4._0x46e93d)]=_0x1ab71e;});},async 'discoveryState'(){function _0x242418(_0x2c9f26,_0x3d89ab,_0x49cae5,_0x11cdf4){return _0x142c03(_0x2c9f26-0x83,_0x3d89ab-_0x2620b2._0x2a6d8f,_0x11cdf4,_0x11cdf4-_0x2620b2._0x35da57);}return(await readStore(_0x28e601))[_0x242418(_0x2f8bc5._0x3d584b,_0x2f8bc5._0x307a1c,_0x2f8bc5._0x345e85,_0x2f8bc5._0x54807e)];}};}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(_0x47c48c,_0x1744b6){const _0x23e4fd={_0x574056:0x216,_0x7b2f73:0x177},_0x333f94={_0x427beb:0x10e,_0x2d7cdd:0x85,_0x3a142e:0x28f},_0x30d1a1={_0x8ab097:0x8b},_0x37bba5=_0x597549=>_0x597549[_0x3137db(0x11a,0x1a4,0x14a,0x19e)](/[^a-zA-Z0-9_]+/g,'_')[_0x3137db(0xc3,0x126,0x14a,0x147)](/^_+|_+$/g,'');function _0x3137db(_0x5b5773,_0x279205,_0xbaaaf5,_0x14cf43){return _0x452c58(_0xbaaaf5- -_0x30d1a1._0x8ab097,_0x279205,_0xbaaaf5-0x165,_0x14cf43-0xe7);}function _0x1bcd29(_0x46deb2,_0x26ed53,_0x51485d,_0x1dd653){return _0x44530c(_0x1dd653,_0x26ed53-_0x333f94._0x427beb,_0x51485d-_0x333f94._0x2d7cdd,_0x46deb2- -_0x333f94._0x3a142e);}return _0x3137db(_0x23e4fd._0x574056,0x1a3,0x20d,_0x23e4fd._0x7b2f73)+_0x37bba5(_0x47c48c)+'_'+_0x37bba5(_0x1744b6);}function isObject(_0x4ef533){const _0x2b9428={_0x42ff5c:0x1b,_0x165e77:0x14,_0x1c0560:0x31},_0x46cc06={_0x4ccab9:0x3d};function _0x1261c0(_0xa5bf37,_0x15c41e,_0xc85f71,_0x47bc2a){return _0x44530c(_0xa5bf37,_0x15c41e-_0x46cc06._0x4ccab9,_0xc85f71-0x17b,_0xc85f71- -0x4d9);}return typeof _0x4ef533==='object'&&_0x4ef533!==null&&!Array[_0x1261c0(_0x2b9428._0x42ff5c,-_0x2b9428._0x165e77,0x3b,_0x2b9428._0x1c0560)](_0x4ef533);}function toSupportedSchema(_0xeefc02){const _0x129cae={_0x40b38c:0xd7,_0x3fdc19:0xe4,_0x335a31:0x1a2,_0x25abb9:0xbc,_0x26405e:0x55,_0x212f24:0x12a,_0x54690c:0x19f,_0x5699f1:0x9d,_0x198a38:0x71,_0x3c9b98:0x49,_0x338a89:0x3e,_0x72f10e:0xa6,_0x4b60b5:0x96,_0xf43ac0:0x164,_0x355adc:0x1ae,_0x2e7a87:0x14e,_0x4b6f13:0x1ae,_0x403199:0x17a,_0x45ff23:0xb1,_0xaa6d8d:0x194,_0x1556fa:0x72,_0xcea98c:0x50,_0x5354e5:0xd6,_0x55ce21:0x120,_0x1cd84b:0xe5,_0x22e1ff:0xad,_0x3508b6:0x95,_0x44c325:0xa3,_0x668349:0x154,_0x14b574:0xe7},_0x49d47b={_0x530bb8:0x18a},_0x355f13={_0x101deb:0x192};if(!isObject(_0xeefc02))return void 0x0;if(_0xeefc02[_0x585cce(0xb9,0xc3,0x12c,0xcb)]===_0x11657b(_0x129cae._0x40b38c,0x141,_0x129cae._0x3fdc19,_0x129cae._0x335a31))return{'type':_0x585cce(_0x129cae._0x25abb9,_0x129cae._0x26405e,0x62,0xe2)};function _0x585cce(_0x4af6ed,_0x3324fa,_0xbc61c0,_0x8691f6){return _0x452c58(_0x8691f6- -_0x355f13._0x101deb,_0xbc61c0,_0xbc61c0-0x10c,_0x8691f6-0xda);}if(_0xeefc02[_0x11657b(0x1bd,_0x129cae._0x212f24,_0x129cae._0x54690c,0x13e)]==='number'||_0xeefc02[_0x11657b(0x11b,0x12a,_0x129cae._0x5699f1,0xde)]===_0x11657b(_0x129cae._0x198a38,_0x129cae._0x3c9b98,_0x129cae._0x338a89,-0x41))return{'type':_0x11657b(_0x129cae._0x72f10e,0x11d,0xf6,0x124)};function _0x11657b(_0x1d7278,_0x12bee3,_0xadd27e,_0x1a99e3){return _0x44530c(_0xadd27e,_0x12bee3-0x120,_0xadd27e-_0x49d47b._0x530bb8,_0x12bee3- -0x3bf);}if(_0xeefc02[_0x11657b(_0x129cae._0x4b60b5,0x12a,_0x129cae._0xf43ac0,0xc4)]===_0x11657b(_0x129cae._0x355adc,_0x129cae._0x2e7a87,_0x129cae._0x4b6f13,_0x129cae._0x403199))return{'type':_0x11657b(0x1de,0x14e,0x181,_0x129cae._0x335a31)};if(_0xeefc02[_0x11657b(_0x129cae._0x45ff23,0x12a,_0x129cae._0xaa6d8d,0xe0)]==='array')return{'type':_0x585cce(0x5,_0x129cae._0x1556fa,_0x129cae._0xcea98c,0x21),'items':toSupportedSchema(_0xeefc02[_0x11657b(_0x129cae._0x5354e5,0x12d,_0x129cae._0x55ce21,_0x129cae._0x1cd84b)])??{'type':_0x585cce(0x141,0xa9,_0x129cae._0x22e1ff,0xe2)}};if(_0xeefc02[_0x585cce(_0x129cae._0x3508b6,0x130,0x143,0xcb)]===_0x585cce(_0x129cae._0x44c325,0x5d,_0x129cae._0x668349,_0x129cae._0x14b574))return toNuvinToolSchema(_0xeefc02);return void 0x0;}function toNuvinToolSchema(_0x2a8a2e){const _0x1830d6={_0x33ec8f:0x54f,_0x45a1cb:0x54a,_0x453360:0x637,_0x26fe66:0x65f,_0x2f8684:0x5d5,_0x2944d3:0x5c7,_0x1b9629:0x605,_0x57de24:0x575,_0x32c4a:0x525,_0x396a47:0x5be,_0x1d28d2:0x57f,_0x26b53d:0x4a1,_0x513142:0x576,_0x413ce0:0x50b,_0xefce68:0x422,_0x85506d:0x50a,_0x1f8304:0x4b2,_0x5baec4:0x5e3,_0x20b1cc:0x566,_0x3b27a0:0x559},_0x2df9f6={_0x4bb5cd:0x19e,_0x5dda33:0xc2},_0x189729={_0x1ebc5e:0x2ed};if(!isObject(_0x2a8a2e)||_0x2a8a2e[_0x1c2932(0x569,_0x1830d6._0x33ec8f,_0x1830d6._0x45a1cb,0x596)]!=='object')return{'type':_0x37c4ff(_0x1830d6._0x453360,_0x1830d6._0x26fe66,_0x1830d6._0x2f8684,_0x1830d6._0x2944d3),'properties':{}};const _0x5d594f={};function _0x1c2932(_0x2d1f96,_0x3a6a83,_0x35f0d5,_0x457869){return _0x452c58(_0x35f0d5-_0x189729._0x1ebc5e,_0x2d1f96,_0x35f0d5-0x14b,_0x457869-0x1d0);}const _0x504a7a=isObject(_0x2a8a2e[_0x37c4ff(0x553,0x592,0x5e0,0x57f)])?_0x2a8a2e['properties']:{};function _0x37c4ff(_0x250755,_0x449190,_0x53c32d,_0x2ff28d){return _0x44530c(_0x53c32d,_0x449190-_0x2df9f6._0x4bb5cd,_0x53c32d-0xae,_0x2ff28d-_0x2df9f6._0x5dda33);}for(const [_0x1f5dd0,_0x555fd3]of Object['entries'](_0x504a7a)){const _0x5141f4=toSupportedSchema(_0x555fd3);if(_0x5141f4)_0x5d594f[_0x1f5dd0]=_0x5141f4;}const _0x5efd4e=Array[_0x1c2932(0x4fe,_0x1830d6._0x1b9629,_0x1830d6._0x57de24,0x4da)](_0x2a8a2e[_0x1c2932(0x4f6,0x55f,0x55d,0x57f)])?_0x2a8a2e[_0x37c4ff(0x5d4,_0x1830d6._0x32c4a,0x530,_0x1830d6._0x396a47)][_0x37c4ff(_0x1830d6._0x1d28d2,_0x1830d6._0x26b53d,_0x1830d6._0x513142,_0x1830d6._0x413ce0)](_0x11f3cf=>typeof _0x11f3cf===_0x37c4ff(0x60e,0x541,0x5e2,0x5c2)):void 0x0;return _0x5efd4e?.[_0x1c2932(_0x1830d6._0xefce68,_0x1830d6._0x85506d,0x4bb,_0x1830d6._0x1f8304)]?{'type':'object','properties':_0x5d594f,'required':_0x5efd4e}:{'type':_0x1c2932(0x5ea,_0x1830d6._0x5baec4,_0x1830d6._0x20b1cc,_0x1830d6._0x3b27a0),'properties':_0x5d594f};}function isJsonObject(_0x3d14ed){const _0x1c34b2={_0x20ccf9:0x10f,_0x5634fd:0x9f},_0x47d844={_0x169713:0x1c1};function _0x197831(_0x50c2ad,_0x2a28ac,_0x8b56d6,_0x412ef7){return _0x44530c(_0x412ef7,_0x2a28ac-_0x47d844._0x169713,_0x8b56d6-0x140,_0x50c2ad- -0x405);}return typeof _0x3d14ed==='object'&&_0x3d14ed!==null&&!Array[_0x197831(_0x1c34b2._0x20ccf9,0xe3,0xeb,_0x1c34b2._0x5634fd)](_0x3d14ed);}function formatMcpContent(_0x3980f4){const _0x5dd28a={_0x38c0a3:0x3fb,_0x3be445:0x4c8,_0x40d08a:0x491,_0x3d6ee4:0x523,_0x315780:0x45c,_0x556849:0x427,_0x1bc92d:0x3eb,_0x24672e:0xf4,_0x385f0d:0x172},_0x1a5ae8={_0x359305:0x4ef,_0x1ad297:0x468,_0x181e03:0x209,_0x9b8939:0x2a6,_0x3576d8:0x2c8,_0x245dde:0x209,_0x2113f0:0x196,_0x3b9a93:0x55b,_0x2e2b79:0x5eb},_0x39d619={_0x4155fd:0x8e},_0x14706b={_0x5967d5:0x179,_0x4d2481:0x11c},_0x10fb1a={_0x12183a:0x5c},_0x1deeaa=Array[_0x8a2492(_0x5dd28a._0x38c0a3,0x514,0x458,0x484)](_0x3980f4[_0x8a2492(_0x5dd28a._0x3be445,0x4d5,0x48f,_0x5dd28a._0x40d08a)])?_0x3980f4[_0x8a2492(0x446,_0x5dd28a._0x3d6ee4,_0x5dd28a._0x315780,0x491)]:[];function _0x28f567(_0xd5659a,_0x566975,_0x4161c8,_0x3978f9){return _0x452c58(_0x4161c8- -_0x10fb1a._0x12183a,_0x3978f9,_0x4161c8-0x1de,_0x3978f9-0x19f);}function _0x8a2492(_0x12f89e,_0x4db0ea,_0x19bf8c,_0x4ff3e6){return _0x452c58(_0x4ff3e6-0x1fc,_0x12f89e,_0x19bf8c-0x187,_0x4ff3e6-0xe5);}const _0x3b6208=_0x1deeaa['map'](_0x49911c=>{if(!isObject(_0x49911c))return'';function _0x50ed35(_0x160115,_0x37ba0d,_0x488a2c,_0x2e849e){return _0x8a2492(_0x37ba0d,_0x37ba0d-0x16d,_0x488a2c-_0x14706b._0x5967d5,_0x160115-_0x14706b._0x4d2481);}function _0x4f52ec(_0x513b3c,_0x21f8dd,_0xc65c76,_0x16813c){return _0x28f567(_0x513b3c-0x177,_0x21f8dd-0x199,_0x513b3c-_0x39d619._0x4155fd,_0x21f8dd);}if(_0x49911c['type']===_0x50ed35(_0x1a5ae8._0x359305,0x53f,0x4f3,_0x1a5ae8._0x1ad297)&&typeof _0x49911c[_0x4f52ec(_0x1a5ae8._0x181e03,0x291,0x268,0x235)]===_0x4f52ec(_0x1a5ae8._0x9b8939,0x25d,0x2f4,_0x1a5ae8._0x3576d8))return _0x49911c[_0x4f52ec(_0x1a5ae8._0x245dde,0x297,_0x1a5ae8._0x2113f0,0x190)];return JSON[_0x50ed35(_0x1a5ae8._0x3b9a93,_0x1a5ae8._0x2e2b79,0x523,0x539)](_0x49911c);})['filter'](_0xf79dbc=>_0xf79dbc[_0x28f567(0x16e,0x157,0x172,0x201)]>0x0)[_0x8a2492(_0x5dd28a._0x556849,0x3ac,_0x5dd28a._0x1bc92d,0x38f)]('\x0a');if(_0x3b6208[_0x28f567(0x17a,_0x5dd28a._0x24672e,_0x5dd28a._0x385f0d,0x170)]>0x0)return _0x3b6208;return JSON['stringify'](_0x3980f4,null,0x2);}function createMcpTool(_0x218fb4){const _0x26f86a={_0x14211c:0x30a,_0x40dab3:0x28c,_0x215ef6:0x2a6,_0x297191:0x496,_0x449181:0x355,_0x2e446b:0x369,_0x3b5512:0x3a2,_0xc7bb8d:0x358,_0x28a76c:0x347,_0x1daf0f:0x37b,_0x26320a:0x39b,_0x350f6e:0x414,_0x16e419:0x3e8},_0x59132d={_0x8a0f2f:0x6ee,_0x42c7d5:0x6f7,_0x233622:0x658,_0x581646:0x580,_0x1564c7:0x5fa,_0x3deb5f:0x5c9,_0x50def0:0x67b,_0x377916:0x60c,_0x5b4128:0x644,_0x4426c3:0x4c3,_0x67e24d:0x4b5,_0x54cfa9:0x628,_0x5d6d5f:0x5f6,_0x273def:0x573,_0x15336a:0x59d},_0x23a829={_0x170d2d:0x10b},_0x1f836a={_0x4e32b2:0x33,_0x488b66:0x87,_0x281ade:0x140};function _0x3ecb87(_0x397657,_0x32c193,_0x2f413a,_0x192880){return _0x44530c(_0x397657,_0x32c193-_0x1f836a._0x4e32b2,_0x2f413a-_0x1f836a._0x488b66,_0x32c193- -_0x1f836a._0x281ade);}function _0x1d0800(_0x43993c,_0x13bcef,_0xdbde42,_0x1e72d3){return _0x452c58(_0xdbde42-0x279,_0x1e72d3,_0xdbde42-0x110,_0x1e72d3-_0x23a829._0x170d2d);}const _0xa932ac=createMcpToolName(_0x218fb4['serverName'],_0x218fb4['tool'][_0x3ecb87(0x2d4,_0x26f86a._0x14211c,_0x26f86a._0x40dab3,_0x26f86a._0x215ef6)]);return defineTool({'name':_0xa932ac,'description':_0x218fb4[_0x1d0800(0x516,0x4ad,_0x26f86a._0x297191,0x4da)][_0x1d0800(0x50e,0x4ad,0x486,0x3f5)]??_0x3ecb87(_0x26f86a._0x449181,0x332,0x2c0,0x305)+_0x218fb4[_0x3ecb87(0x351,_0x26f86a._0x2e446b,0x38f,_0x26f86a._0x3b5512)]['name']+_0x3ecb87(0x272,0x2fe,_0x26f86a._0xc7bb8d,_0x26f86a._0x28a76c)+_0x218fb4[_0x3ecb87(0x357,_0x26f86a._0x1daf0f,_0x26f86a._0x26320a,0x3ee)],'inputSchema':toNuvinToolSchema(_0x218fb4['tool'][_0x1d0800(_0x26f86a._0x350f6e,_0x26f86a._0x16e419,0x3f9,0x3f5)]),async *'execute'(_0x5818c4){const _0x1e023d={_0x23d969:0x164},_0x5d0aea={_0x1ffa30:0x1a7,_0x1e2d8:0xda},_0x2ed4e4=await _0x218fb4[_0x484018(_0x59132d._0x8a0f2f,_0x59132d._0x42c7d5,0x63e,0x67b)][_0x45cede(0x443,0x4b6,0x492,0x471)]({'name':_0x218fb4[_0x484018(_0x59132d._0x233622,_0x59132d._0x581646,0x5c2,_0x59132d._0x1564c7)][_0x45cede(0x4df,0x473,0x4c1,0x46c)],'arguments':isJsonObject(_0x5818c4)?_0x5818c4:{}});function _0x45cede(_0x23be8b,_0x53b760,_0x2faae3,_0x4d12dd){return _0x3ecb87(_0x4d12dd,_0x2faae3-0x1b7,_0x2faae3-_0x5d0aea._0x1ffa30,_0x4d12dd-_0x5d0aea._0x1e2d8);}if(_0x2ed4e4[_0x45cede(0x5ff,0x57f,0x59f,_0x59132d._0x3deb5f)])throw new ToolExecutionError(formatMcpContent(_0x2ed4e4),{'serverName':_0x218fb4[_0x484018(0x5c0,0x610,_0x59132d._0x50def0,_0x59132d._0x377916)],'toolName':_0x218fb4[_0x484018(_0x59132d._0x5b4128,0x5f2,0x636,0x5fa)][_0x45cede(_0x59132d._0x4426c3,0x50a,0x4c1,0x511)]});function _0x484018(_0x55056a,_0x519853,_0xb4db31,_0x5f47d7){return _0x1d0800(_0x55056a-0x1b6,_0x519853-0x34,_0x5f47d7-_0x1e023d._0x23d969,_0x55056a);}return yield createToolOutput(formatMcpContent(_0x2ed4e4),{'serverName':_0x218fb4[_0x45cede(_0x59132d._0x67e24d,0x534,0x532,0x51f)],'toolName':_0x218fb4[_0x484018(_0x59132d._0x54cfa9,_0x59132d._0x5d6d5f,_0x59132d._0x273def,0x5fa)][_0x484018(0x5e5,_0x59132d._0x15336a,0x569,0x59b)],'result':_0x2ed4e4}),void 0x0;}});}function resolvePrefix(_0xc7b08e,_0x2072db){const _0x443e02={_0x447997:0x4d6,_0x516505:0x41d,_0x2d7b9c:0x480,_0x2b282a:0x3f6};function _0xf8274a(_0x1859f5,_0x44797f,_0x2678c3,_0x2c6d11){return _0x452c58(_0x2678c3-0x2ba,_0x2c6d11,_0x2678c3-0x161,_0x2c6d11-0x130);}return _0x2072db[_0xf8274a(_0x443e02._0x447997,_0x443e02._0x516505,_0x443e02._0x2d7b9c,_0x443e02._0x2b282a)]??_0xc7b08e;}function buildMcpHttpHeaders(_0x5a61e9){const _0x5ac222={_0x9875ac:0x365,_0x4cc1ca:0x321,_0xa10d4d:0x29d,_0x4929b5:0x2f9,_0x358251:0x30c,_0xf3778f:0x270,_0x643d9b:0x24c,_0x165c41:0x2e8,_0x340d08:0x241,_0x43681a:0x215,_0x199cde:0x28d,_0x21e609:0x30a,_0x8c47cb:0x23e,_0x3f638d:0x287,_0x265166:0x293,_0xf0453d:0x137,_0x2724b3:0x25c,_0x370459:0x1c7,_0x25a5de:0x1bd,_0x490a68:0x325,_0x4bb7ae:0x233},_0x4dd121={_0x5a4d06:0x12c,_0x4e6150:0x1b3},_0x3a6df6={_0x21a54e:0x1c5,_0x574325:0x1c4},_0x819e6d={..._0x5a61e9[_0x2e4c41(_0x5ac222._0x9875ac,0x31c,0x320,_0x5ac222._0x4cc1ca)]??{}};_0x5a61e9['auth']?.[_0x2e4c41(0x336,0x2eb,_0x5ac222._0xa10d4d,0x3b0)]===_0x2e4c41(0x265,0x1fb,0x271,_0x5ac222._0x4929b5)&&_0x5a61e9[_0x2e4c41(_0x5ac222._0x358251,0x27f,0x374,_0x5ac222._0xf3778f)][_0x2e4c41(_0x5ac222._0x643d9b,_0x5ac222._0x165c41,0x2c1,0x1d2)]&&_0x819e6d[_0x281348(_0x5ac222._0x340d08,_0x5ac222._0x43681a,_0x5ac222._0x199cde,0x207)]===void 0x0&&(_0x819e6d['Authorization']=_0x281348(0x303,_0x5ac222._0x21e609,0x293,0x27e)+_0x5a61e9[_0x281348(0x2bf,_0x5ac222._0x8c47cb,_0x5ac222._0x3f638d,_0x5ac222._0x265166)][_0x281348(_0x5ac222._0xf0453d,_0x5ac222._0x2724b3,_0x5ac222._0x370459,_0x5ac222._0x25a5de)]);function _0x281348(_0x30d85a,_0x211f86,_0x45fc40,_0x1f24a6){return _0x44530c(_0x30d85a,_0x211f86-_0x3a6df6._0x21a54e,_0x45fc40-_0x3a6df6._0x574325,_0x45fc40- -0x238);}function _0x2e4c41(_0x502617,_0x329f1f,_0x4ae3e4,_0x4bc614){return _0x44530c(_0x329f1f,_0x329f1f-0xee,_0x4ae3e4-_0x4dd121._0x5a4d06,_0x502617- -_0x4dd121._0x4e6150);}return Object[_0x2e4c41(0x328,0x2db,0x333,0x2cc)](_0x819e6d)[_0x2e4c41(0x2a7,0x2f8,_0x5ac222._0x490a68,_0x5ac222._0x4bb7ae)]>0x0?_0x819e6d:void 0x0;}function getErrorMessage(_0x14aa0b){const _0x55d2d4={_0x5ad986:0x144,_0x50f2a8:0x11d},_0x1a596a={_0x2c6a94:0x83,_0x559850:0x3ba};function _0x188531(_0x3f94ad,_0x2460f6,_0xa285a6,_0x2b9408){return _0x44530c(_0x2460f6,_0x2460f6-_0x1a596a._0x2c6a94,_0xa285a6-0x6a,_0x2b9408- -_0x1a596a._0x559850);}return _0x14aa0b instanceof Error?_0x14aa0b[_0x188531(0xbc,_0x55d2d4._0x5ad986,0x174,_0x55d2d4._0x50f2a8)]:String(_0x14aa0b);}function isUnauthorizedError(_0x21af59){const _0x417fdd={_0x519da3:0x365,_0x3a8a12:0x288,_0x56a732:0x278,_0xabae74:0x1fd,_0x14994e:0x28c,_0x26e120:0x1da},_0x1f87c3={_0x4ec576:0x176},_0x1566b8={_0x40048c:0x41,_0x1d5e08:0x66c};function _0x38744d(_0x3eead5,_0xdd6126,_0x2b7613,_0x24cef9){return _0x44530c(_0x24cef9,_0xdd6126-0x142,_0x2b7613-_0x1566b8._0x40048c,_0xdd6126- -_0x1566b8._0x1d5e08);}function _0x2b9899(_0x50fb96,_0x34e2dd,_0x1e8ba9,_0x5d5f29){return _0x44530c(_0x5d5f29,_0x34e2dd-_0x1f87c3._0x4ec576,_0x1e8ba9-0xe6,_0x50fb96- -0x210);}return _0x21af59 instanceof Error&&_0x21af59[_0x2b9899(0x2f8,_0x417fdd._0x519da3,_0x417fdd._0x3a8a12,0x36a)][_0x2b9899(0x23a,0x1ec,_0x417fdd._0x56a732,_0x417fdd._0xabae74)]===_0x2b9899(0x20a,_0x417fdd._0x14994e,_0x417fdd._0x26e120,0x199);}function _0x5314(_0x25c8d5,_0x1e0e47){_0x25c8d5=_0x25c8d5-0x179;const _0x418684=_0x4186();let _0x531419=_0x418684[_0x25c8d5];if(_0x5314['RJhcfe']===undefined){var _0x38c5ee=function(_0x529957){const _0x198131='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x957778='',_0x369387='';for(let _0xa29099=0x0,_0x5afd85,_0x31f93b,_0x53289c=0x0;_0x31f93b=_0x529957['charAt'](_0x53289c++);~_0x31f93b&&(_0x5afd85=_0xa29099%0x4?_0x5afd85*0x40+_0x31f93b:_0x31f93b,_0xa29099++%0x4)?_0x957778+=String['fromCharCode'](0xff&_0x5afd85>>(-0x2*_0xa29099&0x6)):0x0){_0x31f93b=_0x198131['indexOf'](_0x31f93b);}for(let _0x516c80=0x0,_0x4483b2=_0x957778['length'];_0x516c80<_0x4483b2;_0x516c80++){_0x369387+='%'+('00'+_0x957778['charCodeAt'](_0x516c80)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x369387);};_0x5314['lHuujx']=_0x38c5ee,_0x5314['KfGxmy']={},_0x5314['RJhcfe']=!![];}const _0x36bb63=_0x418684[0x0],_0x487109=_0x25c8d5+_0x36bb63,_0x11472e=_0x5314['KfGxmy'][_0x487109];return!_0x11472e?(_0x531419=_0x5314['lHuujx'](_0x531419),_0x5314['KfGxmy'][_0x487109]=_0x531419):_0x531419=_0x11472e,_0x531419;}async function connectMcpServer(_0x5f01d9,_0x37d345,_0x2a1575){const _0x3b6730={_0x3bc9ce:0x138,_0x492947:0x13b,_0x20daa3:0x12c,_0x53c76d:0xd2,_0x2466a7:0x65d,_0x1a83f5:0x5eb,_0x4886a8:0x8d,_0x5260ad:0x503,_0x4484fe:0x573,_0x24ac8a:0xe3,_0x59ea52:0xee,_0x17e09e:0x1b9,_0x471c94:0x18e,_0x3ee692:0x135,_0x2f7945:0x5c2,_0x300a2a:0x609,_0xc045e5:0x531,_0x474089:0x58e,_0x30fa65:0x93,_0x13ca15:0x123,_0x167aa2:0xb2,_0x2dfced:0x8f,_0x25d090:0xbe,_0x177731:0x163,_0x4f2430:0xdf,_0x1cc704:0x62e,_0x30297c:0x5a8,_0x2c9150:0x539,_0xa65443:0x5a8,_0x55a838:0x550,_0x5088d0:0x616,_0x80437d:0x514,_0x241d56:0x540,_0x572e26:0x6f,_0x21ddae:0xca,_0x155c6b:0xd3,_0x1253c3:0xd8,_0x4eee9a:0x573,_0x467ebc:0x644,_0x2b7679:0x525,_0x309336:0x4b7,_0x3ce159:0x44d,_0x7239f4:0x4c2,_0x9b9404:0x148,_0x21f2b9:0xde,_0x459d9c:0x107,_0x2af65b:0x176,_0x31e6f9:0x13f},_0x278f77={_0x130129:0x536,_0x5973ba:0x4ad,_0x2569bc:0x54b},_0x727fe3={_0x3b271e:0x16b,_0x4be8f0:0x97},_0x11bd08={_0xc44182:0x2c8,_0x46712d:0x327},_0x1d2411={_0x5847ba:0x100},_0x141e07={_0x5b23d3:0xf6,_0x799e52:0x8f},_0x378f67={_0x45ef4e:0x59};function _0x9e46bb(_0x1397d8,_0x8b49ed,_0x5c20bc,_0x1520d1){return _0x44530c(_0x1397d8,_0x8b49ed-0xac,_0x5c20bc-_0x378f67._0x45ef4e,_0x5c20bc- -0x3e0);}const _0x55fd79=new Client({'name':_0x9e46bb(0x120,_0x3b6730._0x3bc9ce,_0x3b6730._0x492947,_0x3b6730._0x20daa3),'version':_0x9e46bb(0x66,0x36,_0x3b6730._0x53c76d,0x41)});function _0x2afb6b(_0x20f909,_0x3641c2,_0x39444b,_0x91afad){return _0x44530c(_0x3641c2,_0x3641c2-_0x141e07._0x5b23d3,_0x39444b-_0x141e07._0x799e52,_0x91afad-0xa5);}if(_0x37d345[_0x2afb6b(0x5c5,_0x3b6730._0x2466a7,_0x3b6730._0x1a83f5,0x5c1)]===_0x9e46bb(_0x3b6730._0x4886a8,0x13c,0x111,0x103)||_0x37d345[_0x2afb6b(0x5c2,0x4d8,_0x3b6730._0x5260ad,_0x3b6730._0x4484fe)]){if(!_0x37d345[_0x9e46bb(0x102,_0x3b6730._0x24ac8a,_0x3b6730._0x59ea52,0xa5)])throw new Error(_0x9e46bb(_0x3b6730._0x17e09e,_0x3b6730._0x471c94,_0x3b6730._0x3ee692,0x162)+_0x5f01d9+_0x2afb6b(0x589,0x55b,_0x3b6730._0x2f7945,0x55c));if(_0x37d345['auth']?.[_0x2afb6b(0x616,_0x3b6730._0x300a2a,_0x3b6730._0xc045e5,_0x3b6730._0x474089)]===_0x9e46bb(_0x3b6730._0x30fa65,0x1ac,_0x3b6730._0x13ca15,0x192)&&!_0x2a1575?.[_0x2afb6b(0x5a9,0x546,0x598,0x5a8)])throw new Error(_0x2afb6b(0x564,0x5f5,0x5e6,0x5ba)+_0x5f01d9+_0x9e46bb(0x4c,_0x3b6730._0x167aa2,0x50,_0x3b6730._0x2dfced));const _0x4d2e7f=buildMcpHttpHeaders(_0x37d345),_0x37a1b2=_0x37d345[_0x9e46bb(_0x3b6730._0x25d090,_0x3b6730._0x177731,_0x3b6730._0x4f2430,0xe3)]?.['type']===_0x2afb6b(0x594,0x604,0x535,0x5a8)&&_0x2a1575?.[_0x2afb6b(0x599,0x559,_0x3b6730._0x1cc704,_0x3b6730._0x30297c)]?createMcpOAuthProvider({'serverName':_0x5f01d9,'callbackUrl':_0x2a1575[_0x2afb6b(_0x3b6730._0x2c9150,0x5ab,0x5ba,_0x3b6730._0xa65443)][_0x2afb6b(_0x3b6730._0x55a838,_0x3b6730._0x5088d0,0x506,0x58f)],'storageDir':_0x2a1575[_0x2afb6b(_0x3b6730._0x80437d,_0x3b6730._0x241d56,0x606,0x5a8)][_0x9e46bb(_0x3b6730._0x572e26,0xd0,_0x3b6730._0x21ddae,_0x3b6730._0x155c6b)],'config':_0x37d345[_0x9e46bb(0xfc,0xdc,0xdf,_0x3b6730._0x1253c3)],'onRedirect':_0x55f007=>_0x2a1575[_0x2afb6b(0x50c,0x56e,0x5cc,0x5a8)]?.[_0x2afb6b(0x553,0x608,0x530,0x582)](_0x5f01d9,_0x55f007)}):void 0x0,_0x2fbd54=new StreamableHTTPClientTransport(new URL(_0x37d345[_0x2afb6b(0x530,0x593,0x4de,_0x3b6730._0x4eee9a)]),{'authProvider':_0x37a1b2,'requestInit':_0x4d2e7f?{'headers':_0x4d2e7f}:void 0x0});await _0x55fd79[_0x9e46bb(0x184,0x19b,0x13f,0x169)](_0x2fbd54);}else{if(!_0x37d345['command'])throw new Error(_0x2afb6b(_0x3b6730._0x467ebc,0x5f0,_0x3b6730._0x2b7679,0x5ba)+_0x5f01d9+_0x2afb6b(_0x3b6730._0x309336,_0x3b6730._0x3ce159,_0x3b6730._0x7239f4,0x4c9));const _0x291e6f=new StdioClientTransport({'command':_0x37d345[_0x9e46bb(0x132,_0x3b6730._0x9b9404,0x14b,0x11f)],'args':_0x37d345[_0x9e46bb(_0x3b6730._0x21f2b9,0x96,0x100,0xed)]??[],'env':_0x37d345['env']});await _0x55fd79[_0x9e46bb(_0x3b6730._0x459d9c,_0x3b6730._0x2af65b,_0x3b6730._0x31e6f9,0x134)](_0x291e6f);}return{async 'listTools'(){return await _0x55fd79['listTools']();},async 'callTool'(_0xeb5795){const _0x225b29={_0x24691a:0x1ee,_0x29bd5d:0x3d};function _0x2110e5(_0x2a7a6a,_0x21d3cd,_0x4f24e8,_0x1d071b){return _0x9e46bb(_0x4f24e8,_0x21d3cd-0x13c,_0x1d071b-_0x225b29._0x24691a,_0x1d071b-_0x225b29._0x29bd5d);}function _0x56cfe6(_0x5d1fe5,_0x1163c6,_0x5b5e5f,_0x325434){return _0x9e46bb(_0x5d1fe5,_0x1163c6-_0x1d2411._0x5847ba,_0x5b5e5f-0x21f,_0x325434-0x13a);}return await _0x55fd79[_0x2110e5(0x31a,_0x11bd08._0xc44182,0x329,_0x11bd08._0x46712d)]({'method':_0x2110e5(0x35a,0x2cd,0x356,0x2cf),'params':_0xeb5795},CallToolResultSchema);},async 'close'(){function _0x28c80a(_0x26339e,_0x486d9d,_0x5375e0,_0x1b4ddf){return _0x2afb6b(_0x26339e-_0x727fe3._0x3b271e,_0x5375e0,_0x5375e0-0x1dc,_0x1b4ddf- -_0x727fe3._0x4be8f0);}await _0x55fd79[_0x28c80a(_0x278f77._0x130129,_0x278f77._0x5973ba,_0x278f77._0x2569bc,0x4bf)]();}};}async function createMcpToolsFromServers(_0x4bbc23){const _0x102425={_0x35dfae:0x1d5,_0x417389:0x26d,_0x4fa1cf:0xdf,_0x6951d0:0x86,_0x155fa7:0xf3,_0x36dcde:0x181,_0x3422be:0x150,_0x304c8a:0x1bb,_0x29f0a1:0x2bf,_0xca35bf:0x21c,_0x769818:0x46,_0x489035:0x64,_0x111594:0x40,_0x186a94:0x1a5,_0x4d27cb:0x1b1,_0x1b7763:0x98,_0x3fdcbb:0xdc,_0x350b49:0xf1,_0x19f0bc:0xf4,_0x281737:0x78,_0x5e9ef8:0x1e5,_0x33d82e:0x13f,_0x4a6bda:0x161,_0x26ccea:0xf8,_0x19d4b1:0x137,_0x47cb99:0xde},_0x442f94={_0x2f72a8:0x4c7,_0x4a79b1:0x4a5,_0x35d87d:0x1d9,_0xbe6c16:0x121,_0x15ffe1:0x1b2},_0x387846={_0x188785:0x1cd,_0xa5c026:0x49},_0x9e5749={_0x4e34ca:0x189},_0x970586={_0x5b974e:0x26,_0x42bcc7:0xda,_0x3b0e5d:0x1e7},_0x357534={_0x4840c5:0x168,_0x835304:0x91,_0x56c872:0x53e},_0x2e7c6d=_0x4bbc23[_0x2ac518(_0x102425._0x35dfae,0x1f5,0x2c9,_0x102425._0x417389)]??connectMcpServer,_0x503f3b=[],_0x467b1b={};function _0x240d41(_0x18770d,_0x53a92f,_0x36b19a,_0x4d9808){return _0x44530c(_0x4d9808,_0x53a92f-_0x357534._0x4840c5,_0x36b19a-_0x357534._0x835304,_0x18770d- -_0x357534._0x56c872);}const _0x41493d=[];for(const [_0x4d46c5,_0x3ea35e]of Object['entries'](_0x4bbc23[_0x240d41(-0xa0,-_0x102425._0x4fa1cf,-_0x102425._0x6951d0,-_0x102425._0x155fa7)]??{})){if(_0x3ea35e[_0x2ac518(0x12c,_0x102425._0x36dcde,_0x102425._0x3422be,_0x102425._0x304c8a)]===![]){_0x467b1b[_0x4d46c5]={'status':_0x2ac518(_0x102425._0x29f0a1,0x2d2,_0x102425._0xca35bf,0x259)};continue;}try{const _0x5d7db4=await _0x2e7c6d(_0x4d46c5,_0x3ea35e,_0x4bbc23[_0x2ac518(0xbe,0x1e1,0x1ed,0x151)]);_0x503f3b[_0x2ac518(0x21a,0x1ff,0x1d6,0x1d7)](_0x5d7db4);const _0x49327f=await _0x5d7db4[_0x240d41(-_0x102425._0x769818,-_0x102425._0x489035,_0x102425._0x111594,0x47)]();let _0x169f10=0x0;for(const _0x56cda8 of _0x49327f[_0x2ac518(_0x102425._0x186a94,_0x102425._0x4d27cb,0x24d,0x235)]){const _0x208ca6=_0x4bbc23[_0x240d41(-_0x102425._0x1b7763,-_0x102425._0x3fdcbb,-0xb3,-_0x102425._0x350b49)]?.[_0x4d46c5]?.[_0x56cda8[_0x240d41(-_0x102425._0x19f0bc,-0xa3,-0xc0,-0x152)]];if(_0x208ca6===![])continue;_0x169f10+=0x1,_0x41493d[_0x240d41(-0xb5,-0x2c,-0x131,-_0x102425._0x281737)](createMcpTool({'serverName':resolvePrefix(_0x4d46c5,_0x3ea35e),'tool':_0x56cda8,'client':_0x5d7db4}));}_0x467b1b[_0x4d46c5]={'status':_0x2ac518(_0x102425._0x5e9ef8,_0x102425._0x33d82e,0x109,_0x102425._0x4a6bda),'toolCount':_0x169f10};}catch(_0x115a22){_0x467b1b[_0x4d46c5]=isUnauthorizedError(_0x115a22)?{'status':'authRequired','message':getErrorMessage(_0x115a22)}:{'status':_0x240d41(-_0x102425._0x26ccea,-_0x102425._0x19d4b1,-_0x102425._0x47cb99,-0xc4),'message':getErrorMessage(_0x115a22)};}}function _0x2ac518(_0x1587e6,_0x4dece5,_0x539c65,_0x213dfc){return _0x452c58(_0x213dfc- -_0x970586._0x5b974e,_0x1587e6,_0x539c65-_0x970586._0x42bcc7,_0x213dfc-_0x970586._0x3b0e5d);}return{'tools':_0x41493d,'servers':_0x467b1b,async 'close'(){function _0x462dad(_0x6d5f4c,_0x47d2d6,_0x3737dc,_0x40df96){return _0x2ac518(_0x3737dc,_0x47d2d6-_0x9e5749._0x4e34ca,_0x3737dc-0x1de,_0x40df96-0x32f);}function _0x5c43c0(_0x5a5c8a,_0x22b3c1,_0x2df309,_0x4f9ace){return _0x2ac518(_0x2df309,_0x22b3c1-_0x387846._0x188785,_0x2df309-0x5d,_0x4f9ace- -_0x387846._0xa5c026);}await Promise[_0x462dad(0x436,0x450,_0x442f94._0x2f72a8,_0x442f94._0x4a79b1)](_0x503f3b[_0x5c43c0(0x150,_0x442f94._0x35d87d,_0x442f94._0xbe6c16,_0x442f94._0x15ffe1)](_0x5ca86c=>_0x5ca86c[_0x5c43c0(0x13b,0x162,0x20f,0x1b6)]()));}};}function getCommand(_0x582107){const _0x55c900={_0x4e0e8e:0x167,_0x25eefe:0x148,_0x354ef8:0x111,_0x298c5a:0xf8,_0x1f85a1:0x1bc,_0x3f826b:0x14f},_0x69d5e3={_0x4b26dd:0x11e,_0x638222:0x1c6};function _0x27db43(_0x6c2b53,_0x43caa2,_0x14541d,_0x2b53e8){return _0x44530c(_0x2b53e8,_0x43caa2-0xbd,_0x14541d-0x9a,_0x6c2b53- -0x80);}function _0x1f5e79(_0x4a19e5,_0x584535,_0x3f26a9,_0x3efce6){return _0x452c58(_0x4a19e5- -0x3e0,_0x3efce6,_0x3f26a9-_0x69d5e3._0x4b26dd,_0x3efce6-_0x69d5e3._0x638222);}if(_0x582107&&typeof _0x582107===_0x1f5e79(-_0x55c900._0x4e0e8e,-_0x55c900._0x25eefe,-_0x55c900._0x354ef8,-0x146)&&!Array[_0x1f5e79(-0x158,-_0x55c900._0x298c5a,-0x1e1,-0x111)](_0x582107)&&typeof _0x582107['command']===_0x1f5e79(-0x16c,-0x163,-0x1b1,-0x1b8))return _0x582107[_0x1f5e79(-0x141,-0x134,-_0x55c900._0x1f85a1,-_0x55c900._0x3f826b)];return'ls\x20-la';}function _0x44530c(_0x2d6241,_0x3dea1a,_0x43f76a,_0x2a2869){return _0x5314(_0x2a2869-0x284,_0x2d6241);}var MOCK_WORKSPACE_LISTING=[_0x44530c(0x4c2,0x4d5,0x536,0x526),'docs/plans/2026-04-16-mock-agent-loop-implementation.md','docs/plans/2026-04-16-public-tools-api-implementation.md',_0x452c58(0x249,0x1cc,0x2a4,0x251),_0x452c58(0x1ab,0x152,0x17b,0x228),'src/formats/message-format.ts','src/examples/demo.ts',_0x452c58(0x182,0x206,0x1e8,0x162),_0x452c58(0x2a0,0x225,0x29b,0x312),'src/tools/mock-tool-runtime.ts',_0x44530c(0x409,0x38d,0x496,0x412),_0x452c58(0x1dd,0x223,0x187,0x271),_0x452c58(0x245,0x24c,0x28b,0x23f),_0x44530c(0x5a5,0x569,0x529,0x511),_0x452c58(0x199,0x170,0x1e9,0x112),_0x44530c(0x465,0x4f5,0x4cf,0x4fd),_0x452c58(0x1b0,0x171,0x1d6,0x228)][_0x44530c(0x4b6,0x4a4,0x404,0x41f)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x452c58(0x252,0x2d6,0x210,0x287),'description':_0x452c58(0x1b4,0x221,0x21e,0x1e0),'input_schema':{'type':_0x452c58(0x279,0x279,0x208,0x299),'properties':{'command':{'type':_0x452c58(0x274,0x29e,0x2a9,0x273)}},'required':[_0x452c58(0x29f,0x2fd,0x330,0x293)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x3efd96){return{'output':_0x3efd96,'structured':{'value':_0x3efd96}};}function createUnknownToolResult(_0x3524e1){const _0x510fee={_0x4a81b9:0x39d,_0x32b832:0x371,_0xa62ea:0x1ff,_0x3c9c9b:0x235,_0xdc5161:0x1ed},_0x59a573={_0x173522:0x11f,_0xba9fe3:0xea,_0xf0a4a1:0x211},_0xe48a1={_0x1fb9f2:0x11c,_0x3dfb5d:0xbd,_0x43b713:0xd7};function _0x35bfbe(_0x3bca98,_0x5c4f30,_0x5e7ec7,_0x43e5b5){return _0x44530c(_0x43e5b5,_0x5c4f30-_0xe48a1._0x1fb9f2,_0x5e7ec7-_0xe48a1._0x3dfb5d,_0x5e7ec7- -_0xe48a1._0x43b713);}function _0x1cbe66(_0x4d5604,_0x22b2ad,_0x288a2e,_0x1b0b65){return _0x44530c(_0x22b2ad,_0x22b2ad-_0x59a573._0x173522,_0x288a2e-_0x59a573._0xba9fe3,_0x288a2e- -_0x59a573._0xf0a4a1);}return{'callId':_0x3524e1['id'],'toolName':_0x3524e1[_0x35bfbe(0x3c8,_0x510fee._0x4a81b9,0x373,_0x510fee._0x32b832)],'status':_0x1cbe66(_0x510fee._0xa62ea,0x20c,_0x510fee._0x3c9c9b,0x1fc),'output':'Unknown\x20tool:\x20'+_0x3524e1[_0x1cbe66(0x2be,_0x510fee._0xdc5161,0x239,0x24d)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x224f15,_0x15100f){const _0x4ef0ae={_0x30c3c9:0x3b8},_0x19a9e2={_0x16c050:0x15b,_0x2cf488:0x5a};function _0x18942a(_0x21fe9a,_0x452100,_0x594bc5,_0x1eaaf9){return _0x44530c(_0x452100,_0x452100-_0x19a9e2._0x16c050,_0x594bc5-_0x19a9e2._0x2cf488,_0x594bc5- -0x5);}return{'callId':_0x224f15['id'],'toolName':_0x224f15['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x224f15[_0x18942a(0x3f5,0x467,0x41c,_0x4ef0ae._0x30c3c9)]),'exitCode':0x0},'chunks':[_0x15100f],'meta':createMeta()};}function createMockToolRuntime(){const _0xd0a36c={_0x34445d:0x19f,_0x33540d:0x107},_0x142ec4={_0x4a5a90:0x343},_0x4a522f={_0x76c2bb:0x1be,_0x3ca9cd:0x1f1},_0x116311={_0x2da708:0x38a},_0x19439a=async(_0xd8f28b,_0x49bea9)=>{if(_0xd8f28b[_0x5bf724(-_0x4a522f._0x76c2bb,-_0x4a522f._0x3ca9cd,-0x1c4,-0x19f)]!=='Bash')return createUnknownToolResult(_0xd8f28b);const _0x3bd681=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x5bf724(_0x2f97c4,_0x2de78c,_0x2a2696,_0x53ef36){return _0x5314(_0x2a2696- -_0x116311._0x2da708,_0x53ef36);}return createSuccessToolResult(_0xd8f28b,_0x3bd681);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x5c4962,_0xaa5e2e){function _0x254bdb(_0x3f1565,_0x1743cf,_0x4d394f,_0x138b9a){return _0x5314(_0x3f1565- -_0x142ec4._0x4a5a90,_0x1743cf);}return await Promise[_0x254bdb(-_0xd0a36c._0x34445d,-0x167,-_0xd0a36c._0x33540d,-0x146)](_0x5c4962['map'](async _0x43565e=>{return await _0x19439a(_0x43565e,_0xaa5e2e);}));},async 'execute'(_0x184d58,_0x214182){return await _0x19439a(_0x184d58,_0x214182);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x37566b={_0x4276d9:0x4ab,_0x53fc99:0x537},_0x2c6d12={_0x488b5c:0xd8};delegatedRunCounter+=0x1;function _0x4bd980(_0x5b9649,_0x3a5f91,_0x334291,_0x278ea1){return _0x452c58(_0x278ea1-0x31b,_0x334291,_0x334291-0x1f4,_0x278ea1-_0x2c6d12._0x488b5c);}return _0x4bd980(0x569,_0x37566b._0x4276d9,0x5b4,_0x37566b._0x53fc99)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x2159ab,_0x40be3b){return typeof _0x2159ab==='function'?await _0x2159ab(_0x40be3b):_0x2159ab;}function getDelegatedAgentDefinition(_0x5b998f,_0x3f469f){const _0x59180f={_0x1cc53d:0x3ea,_0x3589bc:0x411,_0x3c935e:0x471},_0x49e9a6={_0x30b896:0x2f};function _0x4035b7(_0x456928,_0x5ec80c,_0x3f4a69,_0x5da697){return _0x44530c(_0x5da697,_0x5ec80c-0xc1,_0x3f4a69-_0x49e9a6._0x30b896,_0x3f4a69- -0x7d);}return _0x5b998f[_0x4035b7(_0x59180f._0x1cc53d,_0x59180f._0x3589bc,0x475,_0x59180f._0x3c935e)]?.[_0x3f469f];}function createRunSummary(_0x2df3f6){const _0x1b8ea6={_0x480d27:0x5c,_0x5bc19b:0x2e,_0x317129:0xba,_0x396a5b:0x4b,_0x39998f:0x97,_0x553d5c:0x2f,_0x15214a:0x1b,_0xa06698:0x475,_0x413cdd:0x45c,_0x589ba5:0x420,_0x1f2029:0x50c,_0x55d3aa:0x4b9,_0x165fd1:0x4e7,_0x59e7c7:0xa0,_0x210fde:0xa};function _0xefa2de(_0x7612b9,_0x2e98a7,_0x40adf1,_0x2ba0d2){return _0x452c58(_0x7612b9-0x291,_0x40adf1,_0x40adf1-0x1bf,_0x2ba0d2-0xc3);}function _0x3ef530(_0x196564,_0x297ab4,_0x3b9b0b,_0x42bcb5){return _0x44530c(_0x42bcb5,_0x297ab4-0x190,_0x3b9b0b-0x1b0,_0x297ab4- -0x468);}return{'runId':_0x2df3f6['runId'],'agentId':_0x2df3f6[_0x3ef530(-0x2c,_0x1b8ea6._0x480d27,-_0x1b8ea6._0x5bc19b,_0x1b8ea6._0x317129)],'sessionId':_0x2df3f6[_0x3ef530(0xa7,_0x1b8ea6._0x396a5b,0xd6,0x3c)],'status':_0x2df3f6[_0x3ef530(-0x45,0x4,-_0x1b8ea6._0x39998f,0x1e)],'parentSessionId':_0x2df3f6['parentSessionId'],..._0x2df3f6['originToolCallId']!==void 0x0?{'originToolCallId':_0x2df3f6[_0x3ef530(_0x1b8ea6._0x553d5c,-_0x1b8ea6._0x15214a,-0x66,-0x27)]}:{},..._0x2df3f6['errorMessage']!==void 0x0?{'errorMessage':_0x2df3f6[_0xefa2de(_0x1b8ea6._0xa06698,_0x1b8ea6._0x413cdd,0x4d8,_0x1b8ea6._0x589ba5)]}:{},..._0x2df3f6['result']?.[_0xefa2de(_0x1b8ea6._0x1f2029,_0x1b8ea6._0x55d3aa,0x535,_0x1b8ea6._0x165fd1)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x2df3f6[_0x3ef530(_0x1b8ea6._0x59e7c7,0x51,-_0x1b8ea6._0x210fde,0x35)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0xb18764,_0x7d9a13){const _0xb22314={_0x9e3049:0x22,_0xb575d5:0xd5,_0x25274a:0x26,_0x55ff22:0x78},_0x40c33b={_0x4b272c:0x17b},_0x1585b1={_0x388428:0x194};function _0x1ec64e(_0x3f582d,_0x17454f,_0x8eaa6e,_0xabc6ec){return _0x44530c(_0x17454f,_0x17454f-0x145,_0x8eaa6e-_0x1585b1._0x388428,_0x8eaa6e- -0x4d2);}const _0x51a772=createRunSummary(_0xb18764);function _0x438a48(_0x3b0acf,_0x2e036b,_0x1682da,_0x499ea3){return _0x452c58(_0x499ea3- -0x22a,_0x2e036b,_0x1682da-_0x40c33b._0x4b272c,_0x499ea3-0x1af);}const _0xca4edb=_0x51a772['finalMessageText'];return createToolOutput(typeof _0xca4edb===_0x438a48(_0xb22314._0x9e3049,_0xb22314._0xb575d5,-_0xb22314._0x25274a,0x4a)&&_0xca4edb[_0x1ec64e(-0x114,-0xe9,-_0xb22314._0x55ff22,-0x3f)]>0x0?_0xca4edb:_0x7d9a13,_0x51a772);}function getRunTerminalErrorMessage(_0x26189c){const _0x169419={_0x1a17f0:0x165,_0x32be5a:0x1ee,_0x2badc6:0x17c,_0x293710:0x9f,_0x104b55:0x1be,_0x53ce4b:0x152,_0x3229b3:0x11a,_0x15a990:0xa9,_0x4fc31c:0x15b,_0x5165bc:0x148,_0x357c22:0x1ee},_0x1bc5f6={_0x13ea6d:0x329,_0x1bd786:0x69},_0x2133a4={_0x327420:0xf8,_0x56a281:0x18},_0x3fb257=_0x26189c?.[_0x3dfea7(-0x162,-0x1b3,-_0x169419._0x1a17f0,-_0x169419._0x32be5a)][_0x3dfea7(-0x109,-_0x169419._0x2badc6,-0x11d,-_0x169419._0x293710)]['at'](-0x1);if(_0x3fb257?.['status']===_0x3dfea7(-0x16f,-0x1c2,-_0x169419._0x104b55,-0x1f6)&&_0x3fb257[_0x439315(-0x19d,-_0x169419._0x53ce4b,-_0x169419._0x3229b3,-0x20c)][_0x439315(-0xeb,-_0x169419._0x2badc6,-_0x169419._0x15a990,-0x119)]()[_0x3dfea7(-_0x169419._0x4fc31c,-0x1a0,-_0x169419._0x5165bc,-_0x169419._0x357c22)]>0x0)return _0x3fb257['output'];function _0x439315(_0x3d262c,_0x372999,_0x577379,_0x3c784d){return _0x44530c(_0x3c784d,_0x372999-_0x2133a4._0x327420,_0x577379-_0x2133a4._0x56a281,_0x3d262c- -0x5d1);}function _0x3dfea7(_0xaf567a,_0x5f1410,_0x3348fc,_0x334c83){return _0x452c58(_0xaf567a- -_0x1bc5f6._0x13ea6d,_0x3348fc,_0x3348fc-0x58,_0x334c83-_0x1bc5f6._0x1bd786);}return void 0x0;}function formatAbortedRunMessage(_0x1598ac,_0x26cf75){const _0x511b85={_0x31a072:0xa7,_0x394e2d:0x1e,_0x4e148f:0x90,_0x22d321:0xfe,_0xa09717:0x50},_0x492c54={_0x27d935:0x68},_0x243734={_0x218213:0x4a,_0xfb0469:0x118},_0x31481b='Agent\x20run\x20'+_0x1598ac+_0x1b69ef(0x86,_0x511b85._0x31a072,0x30,_0x511b85._0x394e2d);function _0x404857(_0x1f751f,_0x450144,_0x32e1d5,_0x5efbc6){return _0x44530c(_0x5efbc6,_0x450144-0x38,_0x32e1d5-_0x243734._0x218213,_0x1f751f-_0x243734._0xfb0469);}if(!_0x26cf75||_0x26cf75[_0x1b69ef(0x98,_0x511b85._0x4e148f,0x9e,_0x511b85._0x22d321)]()[_0x1b69ef(0xe5,0x88,_0x511b85._0xa09717,0x72)]===0x0||_0x26cf75===_0x31481b)return _0x31481b;function _0x1b69ef(_0xa84efe,_0x2e9008,_0x39bc15,_0x4ef0c5){return _0x44530c(_0x39bc15,_0x2e9008-_0x492c54._0x27d935,_0x39bc15-0x115,_0x4ef0c5- -0x3e8);}return _0x31481b+'\x20Cause:\x20'+_0x26cf75;}function createAssignTaskTool(_0x4ba3d4){const _0x36395c={_0x19bd01:0x21,_0x32aff2:0x3a,_0x193b2c:0x122,_0x173d32:0x8f,_0x354d3a:0x1e,_0x59c9f3:0x4c,_0x1c88a8:0x1f,_0x32627d:0x4,_0x4b2d23:0x6,_0x28a824:0x27,_0x331712:0x3},_0x160bea={_0x1fc1a4:0x440,_0x254478:0x4a8,_0x193c98:0x3e5,_0x418991:0x42f,_0x4a0a47:0x4bb,_0x3ca3de:0x49c,_0x3a28f0:0x355,_0x2554b7:0x370,_0x2d2b05:0x3d3,_0x42c223:0x433,_0x372ae8:0x42c,_0x481a0e:0x486,_0x367e12:0x459,_0x4a86dc:0x341,_0x1a73e3:0x2bd,_0x4dd946:0x347,_0x437f3d:0x3bc,_0x2b93bf:0x330,_0x34e085:0x3b7,_0x1a6c22:0x314,_0xc5563f:0x3d0,_0x10c024:0x44f,_0x3f8c7b:0x39f,_0x29462c:0x3f5,_0x5b81fd:0x466,_0x21e7f4:0x3ff,_0x324b64:0x454,_0x1b86fe:0x3dc,_0x29a335:0x3e6,_0x536649:0x37c,_0x3bb6d0:0x450,_0x57a2fa:0x31c,_0x868882:0x391,_0x565203:0x30a,_0x4a300a:0x327,_0x2931c3:0x377,_0x437c97:0x256,_0x49f7c9:0x2f8,_0x1fc6a2:0x3c7,_0x4fd16d:0x4a9,_0x4c49c6:0x4a1,_0x2cfde8:0x409,_0x19d435:0x2fe,_0x1d71f9:0x2d3,_0x4e0d7c:0x382,_0x4810f6:0x3e1,_0x2028fb:0x407,_0xe4f26:0x2cd,_0x220230:0x350,_0x25c2b6:0x3e1,_0x3fe4fc:0x4b6,_0x13c00e:0x418,_0x2a6b35:0x3a2,_0x560b6a:0x448,_0x1fa69d:0x34f,_0x2fe24f:0x3e7,_0x41a7c7:0x37a,_0x364c57:0x32f,_0x2ac73b:0x45e,_0xc6141e:0x453,_0x33431b:0x373,_0x5432df:0x39c,_0x4dc803:0x3f4,_0x445087:0x455,_0x2949d1:0x3a3,_0x34c090:0x48f},_0x516744={_0x288bac:0x2f1,_0x18872b:0x264,_0x2b1a39:0x1c9},_0x4260cd={_0x547840:0x12b,_0x235b9f:0x142,_0x49ff24:0x4b4},_0x28a8cc={_0x3e6631:0x1b2,_0x4b961f:0x1,_0x20b113:0x1cb};function _0x3eec45(_0x1ba834,_0x56d34c,_0x34d27e,_0x3530f2){return _0x452c58(_0x34d27e- -_0x28a8cc._0x3e6631,_0x3530f2,_0x34d27e-_0x28a8cc._0x4b961f,_0x3530f2-_0x28a8cc._0x20b113);}function _0x58ac69(_0x1c4fc9,_0x35df9e,_0x1a1059,_0x23bb4b){return _0x44530c(_0x35df9e,_0x35df9e-_0x4260cd._0x547840,_0x1a1059-_0x4260cd._0x235b9f,_0x1c4fc9- -_0x4260cd._0x49ff24);}return defineTool({'name':_0x58ac69(0xc,_0x36395c._0x19bd01,-0x5b,-0x5d),'description':_0x3eec45(_0x36395c._0x32aff2,_0x36395c._0x193b2c,_0x36395c._0x173d32,0x8c),'inputSchema':{'type':'object','properties':{'agentId':{'type':_0x58ac69(0x4c,0x14,_0x36395c._0x354d3a,0x62)},'task':{'type':_0x58ac69(_0x36395c._0x59c9f3,0x4,0x64,_0x36395c._0x1c88a8)}},'required':[_0x3eec45(_0x36395c._0x32627d,0x43,0x86,0xb5),_0x3eec45(-_0x36395c._0x4b2d23,0x6,-_0x36395c._0x28a824,-_0x36395c._0x331712)]},async *'execute'(_0x3de61e,_0x1f0710){const _0x520a56={_0x3eb2e0:0xda,_0x25ce7a:0x168},_0x517343={_0x3f8b90:0x2bb},_0x26cbf5=createDelegatedRunId(),_0x2dea9c={'agentId':_0x3de61e[_0x9f9713(0x3d4,_0x160bea._0x1fc1a4,_0x160bea._0x254478,_0x160bea._0x193c98)],'parentSessionId':_0x1f0710[_0x9f9713(0x4c4,_0x160bea._0x418991,_0x160bea._0x4a0a47,_0x160bea._0x3ca3de)],'runId':_0x26cbf5,..._0x1f0710[_0x24919c(_0x160bea._0x3a28f0,0x365,_0x160bea._0x2554b7,_0x160bea._0x2d2b05)]!==void 0x0?{'toolCallId':_0x1f0710['toolCallId']}:{}},_0x1e431c=getDelegatedAgentDefinition(_0x4ba3d4,_0x3de61e['agentId']);if(!_0x1e431c)throw new ToolExecutionError(_0x9f9713(_0x160bea._0x42c223,_0x160bea._0x372ae8,0x3e7,0x41c)+_0x3de61e[_0x9f9713(0x484,0x440,_0x160bea._0x481a0e,_0x160bea._0x367e12)],{'agentId':_0x3de61e[_0x24919c(_0x160bea._0x4a86dc,_0x160bea._0x1a73e3,0x30d,_0x160bea._0x4dd946)]});function _0x9f9713(_0x53043a,_0x1f6df6,_0x26cb3a,_0x21b53e){return _0x58ac69(_0x1f6df6-0x430,_0x21b53e,_0x26cb3a-0x3e,_0x21b53e-0x17a);}function _0x24919c(_0x4cf3ca,_0x1b167a,_0x5dbbbd,_0x3f24fa){return _0x3eec45(_0x4cf3ca-0xed,_0x1b167a-0x57,_0x4cf3ca-_0x517343._0x3f8b90,_0x1b167a);}const _0x379a77=new Agent(await resolveDelegatedAgentOptions(_0x1e431c,_0x2dea9c));let _0x85e8e4={'runId':_0x26cbf5,'agentId':_0x3de61e[_0x24919c(0x341,_0x160bea._0x437f3d,0x2c9,0x3c6)],'sessionId':_0x379a77[_0x24919c(_0x160bea._0x2b93bf,0x354,_0x160bea._0x34e085,_0x160bea._0x1a6c22)],'status':_0x9f9713(0x375,_0x160bea._0xc5563f,0x440,_0x160bea._0x10c024),'parentSessionId':_0x1f0710[_0x9f9713(_0x160bea._0x3f8c7b,_0x160bea._0x418991,_0x160bea._0x29462c,_0x160bea._0x5b81fd)],..._0x1f0710['toolCallId']!==void 0x0?{'originToolCallId':_0x1f0710[_0x9f9713(_0x160bea._0x21e7f4,_0x160bea._0x324b64,0x49d,0x489)]}:{}};const _0x48f972=new AbortController(),_0x2c60bd=addAbortListener(_0x1f0710['signal'],()=>{function _0x721d0e(_0x738f21,_0x44b01b,_0x516f73,_0x1aed84){return _0x9f9713(_0x738f21-_0x520a56._0x3eb2e0,_0x44b01b- -_0x520a56._0x25ce7a,_0x516f73-0x33,_0x738f21);}_0x48f972['abort'](_0x1f0710[_0x721d0e(_0x516744._0x288bac,_0x516744._0x18872b,_0x516744._0x2b1a39,0x296)]?.['reason']);});yield createToolOutput(_0x9f9713(_0x160bea._0x1b86fe,_0x160bea._0x29a335,_0x160bea._0x536649,_0x160bea._0x3bb6d0)+_0x85e8e4[_0x24919c(0x3a2,_0x160bea._0x57a2fa,_0x160bea._0x868882,0x3f3)]+'.',{'runId':_0x85e8e4['runId'],'agentId':_0x85e8e4['agentId'],'sessionId':_0x85e8e4['sessionId'],'status':_0x85e8e4[_0x24919c(0x2e9,_0x160bea._0x565203,_0x160bea._0x4a300a,_0x160bea._0x2931c3)]});try{const _0x470a8f=await _0x379a77[_0x24919c(0x347,0x30a,0x388,0x2ea)](_0x3de61e[_0x24919c(0x294,_0x160bea._0x437c97,0x302,_0x160bea._0x49f7c9)],{'signal':_0x48f972[_0x9f9713(0x3ed,0x3cc,_0x160bea._0x1fc6a2,0x3f3)]});_0x85e8e4={..._0x85e8e4,'status':_0x470a8f['status'],'result':_0x470a8f};if(_0x470a8f['status']!=='completed'){const _0xded9ff=getRunTerminalErrorMessage(_0x470a8f),_0x2ac7ea=formatAbortedRunMessage(_0x85e8e4[_0x9f9713(_0x160bea._0x4fd16d,_0x160bea._0x4c49c6,0x532,0x469)],_0xded9ff);throw new ToolExecutionError(_0x2ac7ea,{...createRunSummary(_0x85e8e4),'aborted':!![],'errorMessage':_0x2ac7ea});}return createRunSummaryOutput(_0x85e8e4,'Agent\x20run\x20'+_0x85e8e4[_0x9f9713(_0x160bea._0x2cfde8,_0x160bea._0x4c49c6,0x439,0x535)]+_0x24919c(0x32b,_0x160bea._0x19d435,0x3c6,_0x160bea._0x1d71f9));}catch(_0x4d4f04){if(_0x4d4f04 instanceof ToolExecutionError)throw _0x4d4f04;if(isAbortError(_0x4d4f04)||_0x48f972[_0x24919c(0x2cd,0x2ef,0x2ec,0x362)][_0x9f9713(_0x160bea._0x4e0d7c,_0x160bea._0x4810f6,_0x160bea._0x2028fb,0x3c1)]||_0x1f0710[_0x24919c(_0x160bea._0xe4f26,0x315,0x2ef,_0x160bea._0x220230)][_0x9f9713(0x35d,_0x160bea._0x25c2b6,0x3fc,0x439)]){const _0x4c4ddd=getRunTerminalErrorMessage(_0x85e8e4[_0x9f9713(0x493,0x435,_0x160bea._0x3fe4fc,_0x160bea._0x13c00e)])??(_0x4d4f04 instanceof Error?_0x4d4f04['message']:String(_0x4d4f04)),_0x49d2e1=formatAbortedRunMessage(_0x85e8e4[_0x24919c(_0x160bea._0x2a6b35,0x36d,0x398,0x3a4)],_0x4c4ddd);_0x85e8e4={..._0x85e8e4,'status':_0x9f9713(_0x160bea._0x560b6a,0x3e1,_0x160bea._0x1fa69d,_0x160bea._0x2fe24f),'errorMessage':_0x49d2e1};throw new ToolExecutionError(_0x49d2e1,{...createRunSummary(_0x85e8e4),'aborted':!![],'errorMessage':_0x49d2e1});}const _0x2e5c7a=getRunTerminalErrorMessage(_0x85e8e4[_0x24919c(0x336,0x37b,_0x160bea._0x41a7c7,_0x160bea._0x364c57)])??(_0x4d4f04 instanceof Error?_0x4d4f04[_0x9f9713(_0x160bea._0x2ac73b,_0x160bea._0xc6141e,0x3f5,0x3eb)]:String(_0x4d4f04))??'Agent\x20run\x20'+_0x85e8e4[_0x24919c(0x3a2,_0x160bea._0x33431b,_0x160bea._0x5432df,0x30e)]+_0x9f9713(0x48d,_0x160bea._0x4dc803,_0x160bea._0x445087,_0x160bea._0x2949d1);_0x85e8e4={..._0x85e8e4,'status':_0x9f9713(0x3ff,0x419,0x3be,_0x160bea._0x34c090),'errorMessage':_0x2e5c7a};throw new ToolExecutionError(_0x2e5c7a,{...createRunSummary(_0x85e8e4),'errorMessage':_0x2e5c7a});}finally{_0x2c60bd();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x6dc31a){return[createAssignTaskTool(_0x6dc31a)];}import*as _0x592476 from'path';function buildDescription2(_0x4c486a){const _0x564f41={_0x259773:0x5c9,_0x2da653:0x59c,_0x58de03:0x5a5,_0x4aa02a:0xb4,_0xdf21f2:0xcd,_0x2ba041:0xf4,_0x153e40:0x104,_0x14ef96:0x554,_0x2dbd4f:0x614,_0x446c8b:0x68b,_0x591592:0x601,_0x37beac:0x61b,_0x59c8f9:0x5f9,_0x3d2318:0x60e,_0x720498:0x60a,_0x196974:0x150,_0x3eaba7:0x146},_0x4e291f={_0x1c1452:0xd1,_0x59a3e6:0xba},_0x14ded6={_0x3444d5:0x8c,_0x50920d:0x14b};function _0xd61641(_0x2beade,_0x324e33,_0x17cba2,_0x140b9b){return _0x44530c(_0x324e33,_0x324e33-_0x14ded6._0x3444d5,_0x17cba2-0xb5,_0x17cba2-_0x14ded6._0x50920d);}function _0x546c8d(_0x35d3c9,_0x49ad74,_0x451224,_0x412357){return _0x452c58(_0x49ad74- -_0x4e291f._0x1c1452,_0x451224,_0x451224-_0x4e291f._0x59a3e6,_0x412357-0x3f);}if(_0x4c486a[_0xd61641(_0x564f41._0x259773,_0x564f41._0x2da653,_0x564f41._0x58de03,0x5cd)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';const _0x37e191=[_0x546c8d(_0x564f41._0x4aa02a,_0x564f41._0xdf21f2,_0x564f41._0x2ba041,_0x564f41._0x153e40),_0xd61641(0x567,_0x564f41._0x14ef96,0x597,0x525),_0xd61641(_0x564f41._0x2dbd4f,_0x564f41._0x446c8b,_0x564f41._0x591592,0x608),_0xd61641(_0x564f41._0x37beac,_0x564f41._0x59c8f9,_0x564f41._0x3d2318,_0x564f41._0x720498),..._0x4c486a[_0x546c8d(0x185,_0x564f41._0x196974,0xeb,0x1b8)](_0xb24e4f=>'-\x20'+_0xb24e4f['name']+':\x20'+_0xb24e4f[_0x546c8d(0x166,0x13c,0x124,0xdd)])];return _0x37e191[_0x546c8d(_0x564f41._0x3eaba7,0xc2,0x95,0xae)]('\x0a');}function createLoadSkillTool(_0x5d35e6){const _0x3cc3be={_0x7d472b:0x321,_0x1ee67a:0x3b7,_0x4722ce:0x342,_0x1d4317:0x3ba,_0x523c5c:0x361,_0x2ec988:0x390,_0x1b2c7a:0x2bb,_0xe021c1:0x234,_0xaafe4e:0x241,_0x26f78c:0x290,_0x260089:0x2da,_0x4f0838:0x390,_0x1cebec:0x36b,_0x37c8d7:0x29a},_0x467275={_0x1c85fd:0x2e0,_0x32d8ff:0x31c,_0x165463:0x297,_0x25c517:0x24a,_0x19ae2c:0x273,_0x1ab695:0x2ab,_0x1499cd:0x309,_0x26d1ae:0x387,_0x257c1c:0x2b3,_0x41da10:0x2bb,_0x5da718:0x2f8,_0x8fc0d2:0x339,_0x33daeb:0x289,_0x542951:0x35c,_0xa3eb1c:0x2fa,_0x2a9127:0x332,_0x34e696:0x2c0,_0x4bc4f9:0x364,_0x3e5df3:0x37c,_0x29a4c1:0x1d0,_0x30319d:0x1e9,_0x4374e9:0x394,_0x3ae253:0x2ed,_0x3e600f:0x2db,_0x459a3a:0x2a5,_0x21a245:0x32a,_0x28b933:0x359,_0x31d343:0x2ea,_0x25cb92:0x282,_0x33bd98:0x2ac,_0x1c18ca:0x1fd,_0x144fb8:0x1a1,_0x5ea839:0x366,_0x4caf8a:0x3a3,_0x2021b6:0x40d,_0x2310a4:0x3d7,_0x22fe1f:0x26e,_0x30465c:0x22a,_0x4de94e:0x1aa,_0x9d7195:0x2df,_0x500bac:0x253,_0x3bfb59:0x2aa,_0x3403a5:0x1ed,_0x182d01:0x283,_0x3e92b3:0x197,_0x23cf86:0x24e},_0x287a99={_0x5be467:0x1cf,_0x5069a8:0x36},_0x59613f={_0xaddd60:0x39},_0x5a4cc2={_0x3ec062:0x61,_0x217844:0x15e},_0x1d319f={_0x16d9e3:0x125,_0xbd4d7b:0x13b},_0x1aeb27=new Map(_0x5d35e6[_0x1e3311(0x3c5,_0x3cc3be._0x7d472b,_0x3cc3be._0x1ee67a,_0x3cc3be._0x4722ce)][_0x1e3311(_0x3cc3be._0x1d4317,_0x3cc3be._0x7d472b,_0x3cc3be._0x523c5c,_0x3cc3be._0x2ec988)](_0x46551d=>[_0x46551d[_0x1e3311(0x33e,0x329,0x3a3,0x32d)],_0x46551d]));function _0x1e3311(_0x439794,_0x36858e,_0x1cf051,_0x3191d0){return _0x44530c(_0x1cf051,_0x36858e-_0x1d319f._0x16d9e3,_0x1cf051-_0x1d319f._0xbd4d7b,_0x3191d0- -0x11d);}function _0x2d03c6(_0x45e3c9,_0x172e8d,_0x102c6d,_0x79ff92){return _0x452c58(_0x79ff92-_0x5a4cc2._0x3ec062,_0x45e3c9,_0x102c6d-0x10,_0x79ff92-_0x5a4cc2._0x217844);}const _0x4d9042=buildDescription2(_0x5d35e6[_0x2d03c6(_0x3cc3be._0x1b2c7a,0x294,0x284,_0x3cc3be._0xe021c1)]);return defineTool({'name':'LoadSkill','description':_0x4d9042,'inputSchema':{'type':_0x2d03c6(0x33d,_0x3cc3be._0xaafe4e,_0x3cc3be._0x26f78c,_0x3cc3be._0x260089),'properties':{'name':{'type':_0x1e3311(_0x3cc3be._0x4f0838,0x429,_0x3cc3be._0x1cebec,0x3e3)}},'required':[_0x1e3311(_0x3cc3be._0x37c8d7,0x37b,0x35d,0x32d)]},async *'execute'(_0x35c154){const _0x18baa3=_0x1aeb27[_0x4b9a23(0x315,0x28f,_0x467275._0x1c85fd,_0x467275._0x32d8ff)](_0x35c154[_0x4b9a23(_0x467275._0x165463,0x255,_0x467275._0x25c517,_0x467275._0x19ae2c)]);function _0x1ccd3c(_0x23ae24,_0x1d9017,_0x10a5ee,_0x35d1dd){return _0x1e3311(_0x23ae24-0x16f,_0x1d9017-0x42,_0x1d9017,_0x35d1dd- -_0x59613f._0xaddd60);}if(!_0x18baa3){const _0x219dbb=Array[_0x4b9a23(_0x467275._0x1ab695,_0x467275._0x1499cd,0x27f,_0x467275._0x26d1ae)](_0x1aeb27[_0x1ccd3c(0x344,0x341,0x306,0x385)]())[_0x4b9a23(_0x467275._0x257c1c,0x22a,_0x467275._0x41da10,0x2b8)](',\x20');throw new ToolExecutionError(_0x1ccd3c(_0x467275._0x5da718,0x393,0x314,0x380)+_0x35c154[_0x1ccd3c(_0x467275._0x8fc0d2,_0x467275._0x33daeb,_0x467275._0x542951,0x2f4)]+_0x1ccd3c(_0x467275._0xa3eb1c,0x2c0,_0x467275._0x2a9127,_0x467275._0x34e696)+_0x219dbb,{'name':_0x35c154['name']});}const _0x33acc6=await _0x5d35e6[_0x1ccd3c(0x34c,0x38a,_0x467275._0x4bc4f9,_0x467275._0x3e5df3)](_0x18baa3);function _0x4b9a23(_0x559bb8,_0x238c19,_0x17122b,_0x48a636){return _0x2d03c6(_0x559bb8,_0x238c19-_0x287a99._0x5be467,_0x17122b-0x78,_0x238c19-_0x287a99._0x5069a8);}const _0x5207f5=_0x18baa3[_0x4b9a23(0x1d0,0x214,_0x467275._0x29a4c1,0x17c)][_0x4b9a23(0x1dd,0x231,0x2ad,_0x467275._0x30319d)]??_0x592476[_0x4b9a23(_0x467275._0x4374e9,0x328,0x39c,0x2b6)](_0x18baa3['source'][_0x1ccd3c(0x272,0x338,0x2c0,_0x467275._0x3ae253)]),_0x3f2fa1=['##\x20Skill:\x20'+_0x33acc6[_0x4b9a23(_0x467275._0x3e600f,0x255,_0x467275._0x459a3a,0x290)],'',_0x33acc6[_0x1ccd3c(0x361,0x341,_0x467275._0x21a245,_0x467275._0x28b933)],'',_0x4b9a23(0x314,0x27a,_0x467275._0x31d343,0x2b0),_0x4b9a23(0x25b,_0x467275._0x25cb92,0x2f4,0x258)+_0x18baa3[_0x4b9a23(_0x467275._0x33bd98,0x214,_0x467275._0x1c18ca,_0x467275._0x144fb8)]['path'],_0x1ccd3c(_0x467275._0x5ea839,_0x467275._0x4caf8a,_0x467275._0x2021b6,_0x467275._0x2310a4)+_0x5207f5][_0x4b9a23(_0x467275._0x22fe1f,_0x467275._0x30465c,0x20e,_0x467275._0x4de94e)]('\x0a');return yield createToolOutput(_0x3f2fa1,{'id':_0x33acc6['id'],'name':_0x33acc6[_0x4b9a23(_0x467275._0x9d7195,0x255,_0x467275._0x500bac,_0x467275._0x3bfb59)],'path':_0x18baa3[_0x4b9a23(_0x467275._0x3403a5,0x214,_0x467275._0x182d01,_0x467275._0x3e92b3)][_0x4b9a23(0x2cc,_0x467275._0x23cf86,0x234,0x22c)],'baseDirectory':_0x5207f5}),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,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
|
|
1
|
+
(function(_0x2abb92,_0x1b2089){const _0x32fbe4={_0x29e05a:0x2f,_0x2c8b59:0x175,_0x56e230:0x146,_0x25e2c0:0x74,_0x5e27ae:0x5e8,_0x5977ac:0x6cd,_0x19510e:0x65c,_0x586978:0x6d5,_0x4b08bc:0x537,_0xa039cb:0x6df,_0x2f354d:0x698,_0x1886d6:0x7ac,_0x3d0a1d:0x4fa,_0x536586:0x44a,_0x448c21:0x4a7,_0x10354e:0x459,_0x30df19:0x4ae,_0x259acf:0x1e4,_0x86c8a4:0xa1,_0x317f9b:0x4d,_0x1df30e:0x445},_0x24b080={_0x4ab1f2:0x38f},_0x556324=_0x2abb92();function _0xfd213e(_0x4447f9,_0x13b7e1,_0x594c3c,_0x473043){return _0x561a(_0x4447f9- -0x30b,_0x13b7e1);}function _0xcae470(_0x46424b,_0x55aa3c,_0x5dc9fa,_0x1e8117){return _0x561a(_0x55aa3c-_0x24b080._0x4ab1f2,_0x5dc9fa);}while(!![]){try{const _0x209618=parseInt(_0xfd213e(-_0x32fbe4._0x29e05a,-_0x32fbe4._0x2c8b59,-_0x32fbe4._0x56e230,_0x32fbe4._0x25e2c0))/0x1+parseInt(_0xcae470(_0x32fbe4._0x5e27ae,0x4af,0x467,0x36b))/0x2+parseInt(_0xcae470(_0x32fbe4._0x5977ac,_0x32fbe4._0x19510e,_0x32fbe4._0x586978,_0x32fbe4._0x4b08bc))/0x3+-parseInt(_0xcae470(_0x32fbe4._0xa039cb,_0x32fbe4._0x2f354d,0x756,_0x32fbe4._0x1886d6))/0x4*(-parseInt(_0xcae470(0x457,_0x32fbe4._0x3d0a1d,0x4f0,_0x32fbe4._0x536586))/0x5)+parseInt(_0xcae470(_0x32fbe4._0x448c21,0x4fd,0x53a,0x47b))/0x6+-parseInt(_0xcae470(_0x32fbe4._0x10354e,0x520,_0x32fbe4._0x30df19,0x583))/0x7+parseInt(_0xfd213e(-0xa3,-_0x32fbe4._0x259acf,_0x32fbe4._0x86c8a4,_0x32fbe4._0x317f9b))/0x8*(-parseInt(_0xcae470(0x400,0x50b,_0x32fbe4._0x1df30e,0x45e))/0x9);if(_0x209618===_0x1b2089)break;else _0x556324['push'](_0x556324['shift']());}catch(_0x2dd626){_0x556324['push'](_0x556324['shift']());}}}(_0x4008,0xd24b1));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-3OMYFJLN.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';function _0x4aa629(_0x1b5480,_0x3f7f9e,_0x115752,_0x54b16a){return _0x561a(_0x54b16a- -0x252,_0x3f7f9e);}import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x53c5d0 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x2f0acf(0x38f,0x453,0x28a,0x273),'.tsx':_0x2f0acf(0x211,0x2e2,0x10c,0x159),'.js':_0x2f0acf(0x218,0x14e,0x2ce,0x1ff),'.jsx':_0x4aa629(-0x1c6,0x75,-0x13d,-0xbf),'.mjs':_0x2f0acf(0x218,0x179,0x2d3,0x1fc),'.cjs':_0x2f0acf(0x218,0x115,0x243,0x10b),'.mts':_0x2f0acf(0x38f,0x45d,0x452,0x308),'.cts':_0x4aa629(-0x8c,-0x70,0x5d,0x52),'.json':'json','.jsonc':'jsonc'};function getLanguageId(_0x315478){const _0x8c9944={_0x113f16:0xdf,_0x56d2e5:0x11c,_0x140baa:0x241,_0x1e207c:0x1dd},_0x10121d={_0xdeef02:0x70};function _0x5b99ba(_0x4da6d4,_0x26fefd,_0x4edc01,_0x47a1f3){return _0x4aa629(_0x4da6d4-0xd8,_0x4edc01,_0x4edc01-_0x10121d._0xdeef02,_0x47a1f3-0x325);}return EXTENSION_TO_LANGUAGE[_0x53c5d0['extname'](_0x315478)[_0x5b99ba(_0x8c9944._0x113f16,_0x8c9944._0x56d2e5,_0x8c9944._0x140baa,_0x8c9944._0x1e207c)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x3981e9){const _0x1e2f7d={_0x74a2f7:0x1a1,_0x342f22:0x1e7},_0x192932={_0x5143b7:0x152};function _0x55f0a7(_0x3f8b8f,_0x163abd,_0x54470c,_0x51f07e){return _0x2f0acf(_0x54470c- -0x2b4,_0x163abd-0x14e,_0x163abd,_0x51f07e-_0x192932._0x5143b7);}return pathToFileURL(_0x3981e9)[_0x55f0a7(0x18b,0x263,_0x1e2f7d._0x74a2f7,_0x1e2f7d._0x342f22)]();}function textDocumentPosition(_0x2e379e){const _0x3f4fe0={_0x11e6cc:0x611,_0x36338e:0x4fc,_0x42cc4d:0x5c1,_0xfa2df5:0x274,_0x48b0bd:0x26a,_0xacaca6:0x461},_0x5151eb={_0x41fe95:0x1cb,_0x2c0cda:0x182},_0x10ba48={_0x3eecab:0x100,_0x1b6524:0x3a4};function _0x1a15ba(_0x414419,_0xef4e35,_0x40045b,_0x126b33){return _0x4aa629(_0x414419-0x15,_0x414419,_0x40045b-_0x10ba48._0x3eecab,_0xef4e35-_0x10ba48._0x1b6524);}function _0x4ee875(_0x3cb135,_0x3f0686,_0x278b1c,_0x2f1210){return _0x2f0acf(_0x3f0686-0x21b,_0x3f0686-_0x5151eb._0x41fe95,_0x2f1210,_0x2f1210-_0x5151eb._0x2c0cda);}return{'textDocument':{'uri':uriForPath(_0x2e379e[_0x4ee875(_0x3f4fe0._0x11e6cc,_0x3f4fe0._0x36338e,_0x3f4fe0._0x42cc4d,0x5d3)])},'position':{'line':_0x2e379e['line'],'character':_0x2e379e[_0x1a15ba(_0x3f4fe0._0xfa2df5,0x398,_0x3f4fe0._0x48b0bd,_0x3f4fe0._0xacaca6)]}};}function normalizeLocations(_0x3b1149){const _0x320568={_0x82bdc5:0x1c7,_0x3debae:0x17},_0x5b8992={_0x333fbf:0x484,_0x3e0a93:0x193};function _0x2472ce(_0x37f65f,_0x27877e,_0x75fa90,_0x91836a){return _0x2f0acf(_0x27877e- -_0x5b8992._0x333fbf,_0x27877e-_0x5b8992._0x3e0a93,_0x91836a,_0x91836a-0x6d);}if(!_0x3b1149)return[];return Array[_0x2472ce(-_0x320568._0x82bdc5,-0xc6,-_0x320568._0x3debae,-0xa)](_0x3b1149)?_0x3b1149:[_0x3b1149];}async function createLspClient(_0x413a99){const _0xa8d8a5={_0x5271db:0x174,_0x2a7d01:0x196,_0x39e737:0x328,_0x29f6f8:0xa1,_0x4439ff:0x7c,_0x50ec33:0x115,_0x4bc7df:0xf2,_0x2e2860:0x58,_0x5002b0:0xd0,_0x1a7693:0x217,_0x886087:0xa4,_0x157f4f:0x15f,_0x598c15:0x18a,_0x5a45a2:0x10d,_0x3dc501:0x2cd,_0x52a00c:0x279,_0x5fab3e:0x36f,_0x5bd313:0x100,_0xfce9ab:0x16b,_0x2d130d:0x22b,_0x5a60a9:0x21c,_0x34188b:0x33b,_0x2a0eb7:0x1c1,_0x16533c:0x3ce,_0x6de18c:0x2c2,_0x53d139:0x27d,_0x3467d5:0x6d,_0x135a71:0x177,_0x4f00ed:0x1c6},_0xace6d8={_0x75ea06:0x11b,_0x486834:0xb5,_0x38d2da:0x15c,_0x5d2fc7:0x1f8,_0x5057f0:0x1f1,_0x206447:0x393,_0x44c3da:0x3a5,_0x20fc0b:0x47f,_0xfcb1f4:0x382,_0x3c8cb6:0x445,_0x47f285:0x36c},_0x28a100={_0x4784d8:0x16,_0x477676:0x24},_0x3ef74b={_0x1c3ff0:0xbf,_0xc97df3:0xe3},_0x53459b={_0x539fb6:0x310,_0x4e32a5:0x2f3,_0x367ce1:0x1ad,_0x4955f7:0x4c9},_0x16e0e9={_0x580a51:0x5c4,_0x327c4a:0x530,_0x2f215e:0x51f,_0x1f2575:0x4c8},_0x3a451d={_0x3763e7:0x406,_0x43c2f0:0xd},_0x390737={_0xd8e36c:0x422,_0x51cbd1:0x53b,_0x1cc4de:0x520,_0x196bed:0x390,_0x415b81:0x417},_0x21dc5f={_0x25d7ae:0x2c4,_0xf2a1f1:0x16},_0x2327eb={_0x32464b:0x4c},_0x4daed6={_0x5778c5:0x349,_0x1a9de4:0x3aa,_0x203f7f:0x259,_0x400f32:0x3e4,_0x1829e9:0x41b},_0x4436fe={_0x48eb10:0x1a6,_0x40db99:0x14d},_0x39f73a={_0x2bd7fd:0xc1,_0x40c32e:0x11f,_0x53f79c:0x0,_0x10983b:0x13d,_0x37dc4c:0xff,_0x5a2b98:0x29},_0x1f9da3={_0x46dc2c:0xeb,_0x1969f7:0x25},_0x236a58={_0x209292:0x320,_0x1c0971:0x215,_0x59649d:0x2a4,_0x45b44e:0x122},_0x112a31={_0x1c6446:0x1f},_0x2faedd={_0x35b3a4:0x14,_0x8d9fe5:0xa8},_0xaf66a1={_0x184822:0xf7,_0x65f6b5:0x7c},_0x3c693d={_0x27ec11:0x363,_0x2afc4c:0x235,_0xa2a985:0x77},_0x27384d={_0x412584:0x56},_0x2c4dfc={_0x353411:0x25c,_0x222374:0x179,_0x30c5fb:0x32a,_0x11fc1b:0x36a,_0x9a044b:0x48a,_0x2d0975:0x3bd},_0xb3f3ae={_0x8d1218:0x154,_0x4ded7c:0x5f},_0x113014={_0x156040:0x2d9,_0x28fb5a:0x35f,_0x566180:0x3aa,_0x3137e9:0x19e,_0x210991:0x299},_0x5105de={_0x3e1c67:0x17,_0x3a4815:0xf5,_0x975925:0x1a1},_0x57115c={_0x5a839a:0x1b3},_0x5cf6c9={_0x1daab9:0x417,_0x1b8312:0x2b6,_0x55a604:0x289,_0x333560:0x3db,_0x4bc9b8:0x3de,_0x5510f5:0x3f7,_0x4584bb:0x434,_0x1b47c5:0x2d0,_0x57233f:0x440,_0x4e8d6f:0x262,_0x5df122:0x32c,_0xd1d8fc:0x505,_0x5d1331:0x522,_0x593a33:0x4db,_0x32d52f:0x436,_0x5adba6:0x34f},_0x223b81={_0x2f8968:0x123},_0x5d7a76={_0x47ee6a:0xbb},_0x9966de={_0x3e63a2:0x1a2,_0x5f2e8e:0x11e,_0x2d11af:0x1a3},_0xcb32e6=_0x413a99[_0x5f59a0(0x1ea,_0xa8d8a5._0x5271db,_0xa8d8a5._0x2a7d01,_0xa8d8a5._0x39e737)]['process'][_0x334034(0x118,0x9e,0x132,0x1c9)],_0x1c98ac=_0x413a99[_0x5f59a0(0x1ea,0x2c7,0x1be,0x233)][_0x334034(-0x33,0x74,_0xa8d8a5._0x29f6f8,-_0xa8d8a5._0x4439ff)]['stdin'];if(!_0xcb32e6||!_0x1c98ac)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');function _0x5f59a0(_0x2e0f8d,_0x2ce6b5,_0x4bdcf3,_0x4509f7){return _0x4aa629(_0x2e0f8d-_0x9966de._0x3e63a2,_0x4bdcf3,_0x4bdcf3-_0x9966de._0x5f2e8e,_0x2e0f8d-_0x9966de._0x2d11af);}const _0x1a0af3=createMessageConnection(new StreamMessageReader(_0xcb32e6),new StreamMessageWriter(_0x1c98ac)),_0x165de7=new Map();function _0x334034(_0x57f803,_0x2ce78a,_0x202b01,_0x1ea3c8){return _0x4aa629(_0x57f803-0x5c,_0x1ea3c8,_0x202b01-_0x5d7a76._0x47ee6a,_0x2ce78a-0x193);}const _0x1af466=new Map();let _0x1c733c=![];_0x1a0af3[_0x5f59a0(_0xa8d8a5._0x50ec33,0x132,0x165,0x139)](_0x5f59a0(_0xa8d8a5._0x4bc7df,-0x4b,0xcb,0x184),_0x56a327=>{const _0x1fadc5={_0xbb8a3c:0x9d};_0x165de7[_0x2ddc71(0x629,0x62c,_0x5cf6c9._0x1daab9,0x522)](_0x56a327[_0x1e4e64(0x357,_0x5cf6c9._0x1b8312,0x3f8,_0x5cf6c9._0x55a604)],_0x56a327['diagnostics']);const _0x34f03e=_0x1af466[_0x2ddc71(_0x5cf6c9._0x333560,_0x5cf6c9._0x4bc9b8,_0x5cf6c9._0x5510f5,_0x5cf6c9._0x4584bb)](_0x56a327[_0x2ddc71(_0x5cf6c9._0x1b47c5,_0x5cf6c9._0x57233f,_0x5cf6c9._0x4e8d6f,_0x5cf6c9._0x5df122)]);function _0x2ddc71(_0xe3a2e3,_0x41114a,_0x19f679,_0x3cb6b5){return _0x5f59a0(_0x3cb6b5-0x2ba,_0x41114a-_0x1fadc5._0xbb8a3c,_0x41114a,_0x3cb6b5-0x37);}if(!_0x34f03e)return;_0x1af466[_0x2ddc71(_0x5cf6c9._0xd1d8fc,_0x5cf6c9._0x5d1331,_0x5cf6c9._0x593a33,0x44a)](_0x56a327[_0x1e4e64(0x357,0x2e3,_0x5cf6c9._0x32d52f,_0x5cf6c9._0x5adba6)]);function _0x1e4e64(_0x52ced6,_0x3e4772,_0x1381c1,_0x34dc14){return _0x5f59a0(_0x52ced6-0x2e5,_0x3e4772-_0x223b81._0x2f8968,_0x3e4772,_0x34dc14-0x1);}for(const _0x25250d of _0x34f03e)_0x25250d();}),_0x1a0af3[_0x334034(_0xa8d8a5._0x2e2860,_0xa8d8a5._0x5002b0,_0xa8d8a5._0x1a7693,_0xa8d8a5._0x886087)]();const _0x6a9072=await _0x1a0af3['sendRequest'](_0x5f59a0(_0xa8d8a5._0x157f4f,_0xa8d8a5._0x598c15,0x25c,_0xa8d8a5._0x5a45a2),{'processId':process['pid'],'rootUri':uriForPath(_0x413a99[_0x334034(_0xa8d8a5._0x3dc501,0x2a0,0x363,0x24d)]),'workspaceFolders':[{'uri':uriForPath(_0x413a99[_0x334034(_0xa8d8a5._0x52a00c,0x2a0,_0xa8d8a5._0x5fab3e,0x28f)]),'name':_0x413a99['server']['id']}],'initializationOptions':_0x413a99['handle'][_0x334034(_0xa8d8a5._0x5bd313,0x68,0x182,_0xa8d8a5._0xfce9ab)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x5f59a0(0x21d,_0xa8d8a5._0x2d130d,0x2da,_0xa8d8a5._0x5a60a9),_0x5f59a0(0x2ac,_0xa8d8a5._0x34188b,_0xa8d8a5._0x2a0eb7,_0xa8d8a5._0x16533c)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x1a0af3[_0x5f59a0(_0xa8d8a5._0x6de18c,_0xa8d8a5._0x53d139,0x217,0x30f)](_0x5f59a0(_0xa8d8a5._0x3467d5,-0x5d,0x77,0x1b1),{});const _0x24b116={'serverId':_0x413a99[_0x5f59a0(_0xa8d8a5._0x135a71,0x11a,0xf1,_0xa8d8a5._0x4f00ed)]['id'],'root':_0x413a99['root'],'connection':_0x1a0af3,'diagnostics':_0x165de7,'capabilities':_0x6a9072['capabilities']??{},'notify':{async 'open'({path:_0x29d29a}){function _0x87d979(_0x10cb9f,_0x288570,_0x4642ca,_0x24b5b8){return _0x5f59a0(_0x10cb9f-0x37b,_0x288570-_0x57115c._0x5a839a,_0x288570,_0x24b5b8-0x24);}function _0x17701d(_0x3836d1,_0x357c3b,_0x25dc7b,_0x497de7){return _0x5f59a0(_0x3836d1-_0x5105de._0x3e1c67,_0x357c3b-_0x5105de._0x3a4815,_0x497de7,_0x497de7-_0x5105de._0x975925);}const _0xf0651b=await readFile(_0x29d29a,'utf8');_0x1a0af3[_0x17701d(_0x113014._0x156040,0x1b6,_0x113014._0x28fb5a,_0x113014._0x566180)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x29d29a),'languageId':getLanguageId(_0x29d29a)??_0x17701d(0x2c3,_0x113014._0x3137e9,0x248,_0x113014._0x210991),'version':0x1,'text':_0xf0651b}});},async 'change'({path:_0x2ec653,version:_0x1d78f5}){const _0x3b353e={_0x47a37a:0x8f,_0xe721b8:0x168},_0x4337e2=await readFile(_0x2ec653,_0x171511(_0x2c4dfc._0x353411,_0x2c4dfc._0x222374,0x17a,0x126));function _0x1f9e4(_0x45d0db,_0x2a411d,_0x320881,_0x4ae242){return _0x334034(_0x45d0db-0x169,_0x320881-_0xb3f3ae._0x8d1218,_0x320881-_0xb3f3ae._0x4ded7c,_0x2a411d);}function _0x171511(_0x2ad0a4,_0x385955,_0x321a6c,_0x5ae618){return _0x5f59a0(_0x321a6c-_0x3b353e._0x47a37a,_0x385955-0xe7,_0x5ae618,_0x5ae618-_0x3b353e._0xe721b8);}_0x1a0af3[_0x171511(_0x2c4dfc._0x30c5fb,_0x2c4dfc._0x11fc1b,0x351,0x288)](_0x1f9e4(_0x2c4dfc._0x9a044b,0x45c,0x3b2,_0x2c4dfc._0x2d0975),{'textDocument':{'uri':uriForPath(_0x2ec653),'version':_0x1d78f5},'contentChanges':[{'text':_0x4337e2}]});},async 'close'({path:_0x126b9e}){const _0x25fb31={_0x5d2d8a:0x2c6};function _0x5ef5a8(_0x2ca0a9,_0x443b45,_0x5cf575,_0xe0fa7c){return _0x5f59a0(_0x5cf575- -_0x25fb31._0x5d2d8a,_0x443b45-0x12b,_0x2ca0a9,_0xe0fa7c-0x79);}function _0x3b760a(_0x2e980d,_0x4b000a,_0x25261e,_0x129b83){return _0x334034(_0x2e980d-0x178,_0x2e980d- -0x41,_0x25261e-_0x27384d._0x412584,_0x4b000a);}_0x1a0af3[_0x3b760a(0x271,0x133,_0x3c693d._0x27ec11,_0x3c693d._0x2afc4c)](_0x5ef5a8(0xc,0x7b,-_0x3c693d._0xa2a985,-0x16f),{'textDocument':{'uri':uriForPath(_0x126b9e)}});}},'request':{async 'definition'(_0x577db2){function _0x524b66(_0x18d155,_0x54a6c7,_0x985f3b,_0x227341){return _0x5f59a0(_0x985f3b- -0xda,_0x54a6c7-_0xaf66a1._0x184822,_0x227341,_0x227341-_0xaf66a1._0x65f6b5);}return normalizeLocations(await _0x1a0af3['sendRequest'](_0x524b66(_0x2faedd._0x35b3a4,0x63,_0x2faedd._0x8d9fe5,0x18d),textDocumentPosition(_0x577db2)));},async 'references'(_0x6a3a8d){const _0x5a1c7f={_0xd08467:0x95,_0x79b0e3:0x187};function _0x5e0c38(_0x1b94d6,_0x36d36c,_0x419e57,_0x4fdfb7){return _0x5f59a0(_0x1b94d6- -_0x5a1c7f._0xd08467,_0x36d36c-0xc1,_0x36d36c,_0x4fdfb7-_0x5a1c7f._0x79b0e3);}function _0xb71b90(_0x50d44f,_0x4d313d,_0x320c05,_0x5ba86f){return _0x334034(_0x50d44f-_0x112a31._0x1c6446,_0x50d44f- -0x246,_0x320c05-0xc9,_0x4d313d);}return normalizeLocations(await _0x1a0af3[_0x5e0c38(0x1e2,0xdb,_0x236a58._0x209292,0xe7)](_0xb71b90(-_0x236a58._0x1c0971,-_0x236a58._0x59649d,-_0x236a58._0x45b44e,-0x31a),{...textDocumentPosition(_0x6a3a8d),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x2bd4f1){const _0x58f529={_0x3b311b:0x1e,_0x578298:0x59};function _0x2a77f2(_0x24e284,_0x504313,_0x3d46e9,_0x4891df){return _0x5f59a0(_0x24e284- -0x1b6,_0x504313-_0x1f9da3._0x46dc2c,_0x504313,_0x4891df-_0x1f9da3._0x1969f7);}function _0x52a266(_0x567281,_0x4da4da,_0x28eef4,_0x1c0f40){return _0x334034(_0x567281-_0x58f529._0x3b311b,_0x4da4da- -0x2f0,_0x28eef4-_0x58f529._0x578298,_0x28eef4);}return await _0x1a0af3[_0x2a77f2(_0x39f73a._0x2bd7fd,_0x39f73a._0x40c32e,_0x39f73a._0x53f79c,_0x39f73a._0x10983b)](_0x2a77f2(0xad,0x1a5,_0x39f73a._0x37dc4c,-_0x39f73a._0x5a2b98),textDocumentPosition(_0x2bd4f1))??null;},async 'documentSymbol'(_0x2dc604){const _0x34ce0c={_0x1c89b2:0x60};function _0x230acc(_0x8bc497,_0x42a56d,_0x3de021,_0x5b7ac6){return _0x334034(_0x8bc497-0x10a,_0x5b7ac6- -_0x34ce0c._0x1c89b2,_0x3de021-0x17e,_0x8bc497);}return await _0x1a0af3['sendRequest'](_0x230acc(_0x4436fe._0x48eb10,0x1ea,0x254,_0x4436fe._0x40db99),{'textDocument':{'uri':uriForPath(_0x2dc604)}})??[];},async 'workspaceSymbol'(_0x2f4eff){const _0x6961b7={_0x2fc837:0xa0},_0x494a62={_0x32ed08:0xe2};function _0x5c1b45(_0x5599aa,_0x2420cd,_0x29287a,_0x56950b){return _0x334034(_0x5599aa-0x119,_0x5599aa-_0x494a62._0x32ed08,_0x29287a-0x91,_0x56950b);}function _0x2688cf(_0x39b7f5,_0x353db7,_0x11ccd2,_0x26460e){return _0x334034(_0x39b7f5-_0x6961b7._0x2fc837,_0x11ccd2-0x298,_0x11ccd2-0x55,_0x353db7);}return await _0x1a0af3[_0x5c1b45(_0x4daed6._0x5778c5,0x248,_0x4daed6._0x1a9de4,_0x4daed6._0x203f7f)](_0x5c1b45(0x366,_0x4daed6._0x400f32,0x312,_0x4daed6._0x1829e9),{'query':_0x2f4eff})??[];},async 'implementation'(_0x48940f){function _0x53c4db(_0x33c4d1,_0x4d24f5,_0x4dea64,_0x1d2d2b){return _0x334034(_0x33c4d1-0xb7,_0x1d2d2b- -_0x2327eb._0x32464b,_0x4dea64-0xf8,_0x4dea64);}function _0x249f65(_0xc8d39,_0x55eb7a,_0x211463,_0x54b45f){return _0x5f59a0(_0x55eb7a-_0x21dc5f._0x25d7ae,_0x55eb7a-_0x21dc5f._0xf2a1f1,_0x211463,_0x54b45f-0x73);}return normalizeLocations(await _0x1a0af3[_0x249f65(_0x390737._0xd8e36c,_0x390737._0x51cbd1,_0x390737._0x1cc4de,0x52e)](_0x249f65(_0x390737._0x196bed,0x4bb,0x47e,_0x390737._0x415b81),textDocumentPosition(_0x48940f)));},async 'prepareCallHierarchy'(_0x118398){const _0x2ce9f2={_0x527db6:0x1ed,_0x466bc3:0x35d};function _0x4ddd73(_0x15b459,_0x490e3d,_0x226b44,_0x195095){return _0x334034(_0x15b459-_0x2ce9f2._0x527db6,_0x15b459-_0x2ce9f2._0x466bc3,_0x226b44-0x1e1,_0x226b44);}function _0x4d7f18(_0x2f2cd7,_0x19c5e1,_0x181154,_0x2d1678){return _0x5f59a0(_0x19c5e1-_0x3a451d._0x3763e7,_0x19c5e1-0x1dc,_0x2d1678,_0x2d1678-_0x3a451d._0x43c2f0);}return await _0x1a0af3[_0x4ddd73(_0x16e0e9._0x580a51,_0x16e0e9._0x327c4a,0x5d0,0x5a6)](_0x4ddd73(0x58a,0x672,_0x16e0e9._0x2f215e,_0x16e0e9._0x1f2575),textDocumentPosition(_0x118398))??[];},async 'incomingCalls'(_0x4663ca){return await _0x1a0af3['sendRequest']('callHierarchy/incomingCalls',{'item':_0x4663ca})??[];},async 'outgoingCalls'(_0xbd6333){const _0x9ab582={_0x2a5b38:0x8c},_0x29b797={_0x2a917a:0x116,_0x49d36f:0x27b};function _0xbdb3e(_0x1879f0,_0xab8a92,_0x241687,_0x2deec6){return _0x334034(_0x1879f0-_0x29b797._0x2a917a,_0x2deec6-_0x29b797._0x49d36f,_0x241687-0x3a,_0x1879f0);}function _0x4fa39f(_0x50776a,_0x2b8d26,_0x332da4,_0x3c2133){return _0x334034(_0x50776a-0x91,_0x2b8d26-_0x9ab582._0x2a5b38,_0x332da4-0x170,_0x50776a);}return await _0x1a0af3[_0x4fa39f(_0x53459b._0x539fb6,_0x53459b._0x4e32a5,_0x53459b._0x367ce1,0x1d6)](_0xbdb3e(0x389,0x47f,0x483,_0x53459b._0x4955f7),{'item':_0xbd6333})??[];}},'waitForDiagnostics'({path:_0x2645ab,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x3719cf={_0x41d2bc:0x53c},_0x33768d={_0x5619a3:0x98,_0x35c245:0x15b},_0x514016={_0x44e38d:0xee,_0x1fa2af:0x1a8,_0x139c27:0xb7,_0x3b15fb:0x18c,_0x8b5499:0x221},_0x45bc6b={_0x5aa0ef:0x1f7,_0x5bca56:0x40},_0x228c51=uriForPath(_0x2645ab);function _0x71af65(_0x7f815b,_0xddc9c,_0xa0c825,_0x4dd3a8){return _0x5f59a0(_0xa0c825- -_0x3ef74b._0x1c3ff0,_0xddc9c-0xa,_0x7f815b,_0x4dd3a8-_0x3ef74b._0xc97df3);}function _0x2c2b9c(_0x55f8f3,_0x4428db,_0x4690be,_0x1f6f51){return _0x5f59a0(_0x1f6f51- -_0x45bc6b._0x5aa0ef,_0x4428db-0x1b9,_0x55f8f3,_0x1f6f51-_0x45bc6b._0x5bca56);}if(_0x165de7[_0x2c2b9c(-_0x28a100._0x4784d8,-0x12a,-0xb9,-0x11d)](_0x228c51))return Promise[_0x2c2b9c(-0x95,-_0x28a100._0x477676,-0x216,-0x121)]();return new Promise(_0x282ea5=>{const _0x21b6d0={_0xeedd52:0x4f1},_0x3e68a9=setTimeout(()=>{function _0x368243(_0x8e7dcd,_0x1a2b67,_0x3e5062,_0x5b395d){return _0x561a(_0x5b395d- -0x270,_0x1a2b67);}const _0x22cf2b=_0x1af466['get'](_0x228c51);_0x22cf2b?.[_0x177368(-_0x514016._0x44e38d,-_0x514016._0x1fa2af,-_0x514016._0x139c27,0x0)](_0x72f1e8);function _0x177368(_0xdf2d91,_0x5c7bcf,_0x51420b,_0x16d823){return _0x561a(_0xdf2d91- -0x32d,_0x16d823);}if(_0x22cf2b?.[_0x177368(-0x202,-0x317,-_0x514016._0x3b15fb,-_0x514016._0x8b5499)]===0x0)_0x1af466['delete'](_0x228c51);_0x282ea5();},timeoutMs);function _0x1ebe98(_0x571d78,_0x2d54d2,_0x5689f5,_0x1907c1){return _0x2c2b9c(_0x1907c1,_0x2d54d2-0x74,_0x5689f5-0x1bb,_0x2d54d2-_0x21b6d0._0xeedd52);}const _0x72f1e8=()=>{clearTimeout(_0x3e68a9),_0x282ea5();},_0xe6f9a6=_0x1af466[_0x1ebe98(0x453,0x474,0x4fc,0x4cf)](_0x228c51)??new Set();function _0x53fed1(_0x41e171,_0x267b30,_0x1b2661,_0x20199b){return _0x71af65(_0x1b2661,_0x267b30-_0x33768d._0x5619a3,_0x20199b-0x2d3,_0x20199b-_0x33768d._0x35c245);}_0xe6f9a6[_0x1ebe98(_0x3719cf._0x41d2bc,0x440,0x418,0x370)](_0x72f1e8),_0x1af466['set'](_0x228c51,_0xe6f9a6);});},async 'shutdown'(){const _0x56e822={_0x2d9ce2:0x1ed},_0x120bc7={_0x410463:0x25b};if(_0x1c733c)return;function _0x241917(_0x4914b9,_0x31d39e,_0x33b41a,_0x1517d5){return _0x5f59a0(_0x4914b9-_0x120bc7._0x410463,_0x31d39e-0x1e3,_0x33b41a,_0x1517d5-0x187);}function _0x3333a4(_0x44d58b,_0x1d9af2,_0x7803b,_0x43c1a7){return _0x334034(_0x44d58b-0x1b6,_0x1d9af2- -0x1b2,_0x7803b-_0x56e822._0x2d9ce2,_0x7803b);}_0x1c733c=!![];try{await _0x1a0af3[_0x3333a4(_0xace6d8._0x75ea06,_0xace6d8._0x486834,0x1b6,0xb7)](_0x3333a4(-_0xace6d8._0x38d2da,-0x160,-_0xace6d8._0x5d2fc7,-_0xace6d8._0x5057f0),null),_0x1a0af3['sendNotification'](_0x241917(_0xace6d8._0x206447,_0xace6d8._0x44c3da,_0xace6d8._0x20fc0b,0x316));}catch{}finally{_0x1a0af3[_0x241917(0x391,0x336,_0xace6d8._0xfcb1f4,0x249)](),_0x413a99[_0x241917(_0xace6d8._0x3c8cb6,0x31e,0x543,0x44a)]['process'][_0x241917(0x301,0x3d2,0x437,_0xace6d8._0x47f285)]();}}};return _0x24b116;}import{spawn as _0x359d69}from'child_process';import{access as _0x29f37d}from'fs/promises';import _0x4f421d from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x1b4671 from'os';import _0x3ea862 from'path';import _0x26364b from'which';var installPromises=new Map();function sanitizePackageName(_0x1d4da1){const _0x311ef9={_0x56b18e:0x3b4,_0x5deb77:0x49f},_0x2229c3={_0xd5736d:0x1dd},_0x2f3355={_0x3bc9b6:0x235};function _0x33e4de(_0x32bc6f,_0x5f499e,_0x47f4b2,_0x21c187){return _0x4aa629(_0x32bc6f-0xb8,_0x47f4b2,_0x47f4b2-0x165,_0x32bc6f-_0x2f3355._0x3bc9b6);}function _0x13cb0b(_0x447027,_0x39fb4e,_0x2dc2c7,_0x5de3e9){return _0x2f0acf(_0x39fb4e-_0x2229c3._0xd5736d,_0x39fb4e-0x126,_0x447027,_0x5de3e9-0xf4);}return _0x1d4da1[_0x13cb0b(0x4f2,_0x311ef9._0x56b18e,0x277,0x330)](/^@/,'')[_0x13cb0b(_0x311ef9._0x5deb77,0x3b4,0x477,0x46c)](/[/]/g,'__');}function binaryNameForPlatform(_0x3cf928){const _0x8bedc7={_0x488695:0x195,_0x2d2be6:0x1ff,_0x2d6864:0x321,_0x983f28:0x1f8},_0x1ae881={_0xdef26e:0x183,_0x37c03f:0x267},_0x30d7a1={_0x25cf89:0x79,_0x76d36:0xb2};function _0xb839ca(_0xce8699,_0x58585a,_0x4f345a,_0x232cd0){return _0x2f0acf(_0x4f345a-_0x30d7a1._0x25cf89,_0x58585a-_0x30d7a1._0x76d36,_0xce8699,_0x232cd0-0x13d);}function _0x12b885(_0xe7677,_0x1ff5c1,_0x58d4b8,_0x4daf52){return _0x4aa629(_0xe7677-0x28,_0xe7677,_0x58d4b8-_0x1ae881._0xdef26e,_0x1ff5c1-_0x1ae881._0x37c03f);}return process[_0x12b885(0x10a,_0x8bedc7._0x488695,0x26b,0x1b6)]===_0x12b885(_0x8bedc7._0x2d2be6,_0x8bedc7._0x2d6864,_0x8bedc7._0x983f28,0x3bf)?_0x3cf928+_0x12b885(0xc4,0x123,0x192,0x118):_0x3cf928;}async function exists(_0x173fd6){try{return await access(_0x173fd6),!![];}catch{return![];}}function runNpmInstall(_0x365f53,_0x424459,_0x395ef1){const _0x2847a5={_0x5dbc4f:0x4f1,_0xc4adc8:0x4f6,_0x80acd9:0x541,_0xe6e260:0x4e1,_0x1aca92:0x538,_0xd70416:0x1db,_0x56fc50:0xf4,_0x172773:0xbd};return new Promise(_0xfaa0d5=>{const _0xb01bbc={_0x4dc8e0:0x37};function _0x336ea5(_0x3d3fba,_0x1ee151,_0x37111d,_0x2d94c0){return _0x561a(_0x2d94c0-0x2eb,_0x37111d);}function _0xa2b302(_0x1fd261,_0x1acc0a,_0x3a9f56,_0x131bed){return _0x561a(_0x1fd261- -_0xb01bbc._0x4dc8e0,_0x3a9f56);}const _0x3145c5=spawn(_0xa2b302(0xaa,-0x8,0x1b6,0xc7),[_0x336ea5(0x416,0x5e7,_0x2847a5._0x5dbc4f,_0x2847a5._0xc4adc8),'--prefix',_0x365f53,_0x424459],{'env':_0x395ef1,'stdio':_0x336ea5(_0x2847a5._0x80acd9,_0x2847a5._0xe6e260,0x4c5,_0x2847a5._0x1aca92)});_0x3145c5['on']('error',()=>_0xfaa0d5(![])),_0x3145c5['on'](_0xa2b302(_0x2847a5._0xd70416,0x259,_0x2847a5._0x56fc50,_0x2847a5._0x172773),_0x13b53d=>_0xfaa0d5(_0x13b53d===0x0));});}function shouldDisableLspDownload(_0x18e55f=process['env']){const _0x1cdde9={_0x4cc1ff:0x230,_0x389fd2:0x18b,_0x42c517:0x1e5,_0x34ab3e:0x553,_0x457db0:0x68f,_0x4c9756:0x637,_0x29f7a3:0x75e},_0x32569d={_0x1dbaa1:0x71},_0x2a917c={_0x2f89b5:0x132};function _0x1aa1f0(_0x4bc252,_0xe7938f,_0xaf0bee,_0x1c6186){return _0x2f0acf(_0xaf0bee- -0xac,_0xe7938f-0x71,_0x1c6186,_0x1c6186-_0x2a917c._0x2f89b5);}function _0x186602(_0x18be13,_0x46e98c,_0x39a5b0,_0x481b8c){return _0x2f0acf(_0x46e98c-0x2b5,_0x46e98c-_0x32569d._0x1dbaa1,_0x39a5b0,_0x481b8c-0x4a);}const _0x2ea616=_0x18e55f[_0x1aa1f0(_0x1cdde9._0x4cc1ff,_0x1cdde9._0x389fd2,0x1e4,_0x1cdde9._0x42c517)]?.[_0x186602(0x429,0x4aa,_0x1cdde9._0x34ab3e,0x4c9)]();return _0x2ea616===_0x186602(0x6f9,_0x1cdde9._0x457db0,_0x1cdde9._0x4c9756,0x682)||_0x2ea616==='1'||_0x2ea616===_0x186602(0x706,0x655,_0x1cdde9._0x29f7a3,0x707)||_0x2ea616==='on';}function getLspPackageDir(_0x413f41){const _0x5c5d54={_0x4bb7a0:0x415,_0x42eb52:0x2be,_0x1e2e57:0x2cc,_0x2436c7:0x28f,_0x529788:0x35e,_0x1686bb:0x386},_0xd51628={_0x3d1865:0xec,_0x13065c:0x93};function _0x508d40(_0x59d96f,_0xe050e6,_0x1c3478,_0x47695d){return _0x4aa629(_0x59d96f-_0xd51628._0x3d1865,_0x59d96f,_0x1c3478-_0xd51628._0x13065c,_0x1c3478-0x35d);}function _0x1ee4f6(_0x2af965,_0x7bebec,_0xc0f43f,_0x3e7621){return _0x4aa629(_0x2af965-0xf,_0x2af965,_0xc0f43f-0x94,_0xc0f43f-0x1d4);}return _0x3ea862[_0x508d40(_0x5c5d54._0x4bb7a0,0x264,0x2e9,0x247)](_0x1b4671['homedir'](),'.nuvin',_0x508d40(_0x5c5d54._0x42eb52,_0x5c5d54._0x1e2e57,_0x5c5d54._0x2436c7,_0x5c5d54._0x529788),_0x508d40(0x3fb,_0x5c5d54._0x1686bb,0x3ec,0x2a4),sanitizePackageName(_0x413f41));}function getLspBinDir(_0x51b175){const _0x3c7661={_0x1bfdfc:0x5a,_0xdb6922:0x156,_0x4391a3:0x104,_0x14a8c7:0x1e3},_0x17c493={_0x5f15bb:0x115,_0x5d6082:0x1ec},_0x2af81c={_0x434773:0x17};function _0x218da9(_0x50d6c4,_0x6748c3,_0x1b6b6f,_0x5ad075){return _0x4aa629(_0x50d6c4-0x1eb,_0x5ad075,_0x1b6b6f-_0x2af81c._0x434773,_0x6748c3-0x118);}function _0x3082df(_0x283fa0,_0x3f65cf,_0x37ee65,_0x1d753d){return _0x2f0acf(_0x1d753d- -0x47c,_0x3f65cf-_0x17c493._0x5f15bb,_0x3f65cf,_0x1d753d-_0x17c493._0x5d6082);}return _0x3ea862['join'](getLspPackageDir(_0x51b175),_0x3082df(-_0x3c7661._0x1bfdfc,-0xe0,-_0x3c7661._0xdb6922,-0x114),_0x3082df(-_0x3c7661._0x4391a3,-0xc1,-0x2f6,-_0x3c7661._0x14a8c7));}async function findPackageBinary(_0x42f7fd,_0x1c19bc){const _0x113742={_0x536d29:0xc0,_0x389317:0x1ad,_0x4bc634:0x46c,_0x51aace:0x40d,_0x27c68b:0x2d9,_0x3dd0bd:0x28,_0x247644:0xf2},_0x3cd77b={_0x17b895:0x44,_0x476e48:0x3e2},_0x4b3eba={_0x5468b:0xe0};function _0x53a94b(_0x35bc23,_0x166e10,_0x17961a,_0x2da33e){return _0x2f0acf(_0x166e10- -0x25e,_0x166e10-0xdb,_0x35bc23,_0x2da33e-_0x4b3eba._0x5468b);}function _0x35c89(_0x27aab4,_0x3e20b0,_0x142ae1,_0x5b43ce){return _0x4aa629(_0x27aab4-0xca,_0x27aab4,_0x142ae1-_0x3cd77b._0x17b895,_0x3e20b0-_0x3cd77b._0x476e48);}let _0x3d1cd2=_0x3ea862['resolve'](_0x1c19bc);const _0x226ea8=binaryNameForPlatform(_0x42f7fd);while(!![]){const _0xa3facd=_0x3ea862[_0x53a94b(_0x113742._0x536d29,0x6b,-0xb9,_0x113742._0x389317)](_0x3d1cd2,_0x35c89(_0x113742._0x4bc634,_0x113742._0x51aace,0x4f2,_0x113742._0x27c68b),_0x53a94b(0xe5,0x3b,_0x113742._0x3dd0bd,-_0x113742._0x247644),_0x226ea8);if(await exists(_0xa3facd))return _0xa3facd;const _0x3d64ef=_0x3ea862['dirname'](_0x3d1cd2);if(_0x3d64ef===_0x3d1cd2)return void 0x0;_0x3d1cd2=_0x3d64ef;}}async function findPathBinary(_0x5c7f47,_0x30d71e){const _0x205014={_0x1c8170:0x3f9,_0x4549ab:0x4f4,_0x3b2c79:0x46a,_0x3c8b92:0x48a,_0x20f0b1:0x43a,_0x1544bd:0x3ca,_0xa99512:0x452,_0x5cd29c:0x32d,_0x26f067:0x444,_0x568728:0x452,_0x15e518:0x2ea,_0x111353:0x42f},_0x1ceb9f={_0x515b0c:0x1d},_0x55d30c=getLspBinDir(_0x30d71e);function _0x429a65(_0x502175,_0x366bb0,_0x174be0,_0x599306){return _0x4aa629(_0x502175-0x1bc,_0x599306,_0x174be0-_0x1ceb9f._0x515b0c,_0x174be0- -0x173);}function _0x272732(_0x507250,_0x138fe4,_0x44c5d7,_0x3657c6){return _0x2f0acf(_0x44c5d7-0x64,_0x138fe4-0x8e,_0x138fe4,_0x3657c6-0x1dc);}const _0x5ef89b=[_0x55d30c,process[_0x272732(0x430,0x2c2,_0x205014._0x1c8170,_0x205014._0x4549ab)]['PATH']][_0x272732(_0x205014._0x3b2c79,_0x205014._0x3c8b92,_0x205014._0x20f0b1,0x305)](Boolean)[_0x272732(_0x205014._0x1544bd,_0x205014._0xa99512,_0x205014._0x5cd29c,_0x205014._0x26f067)](_0x3ea862[_0x272732(_0x205014._0x568728,_0x205014._0x15e518,0x41a,_0x205014._0x111353)]);try{return await _0x26364b(_0x5c7f47,{'path':_0x5ef89b});}catch{return void 0x0;}}async function resolvePackageBinary(_0x37ee15){const _0x3e7dfc={_0x4032db:0x46,_0x3889de:0x45,_0x18cfd0:0xba,_0x444017:0x61,_0x47f0ca:0x123,_0x32cc5d:0x241,_0x23aa3c:0x8f,_0x1b7ec5:0x17d,_0xb5ab5d:0x15,_0xcf2e7c:0x113,_0x5a3435:0x10b,_0xb8782d:0x220,_0x42a01b:0x201,_0x43a169:0x48,_0x46e6c1:0x92,_0x41e9be:0x1d3,_0x39a6bf:0xc1,_0x30185f:0x180,_0x4055c9:0xd5},_0x99e721={_0x2abe45:0x2bb,_0x2b8a54:0x26d,_0x4d092c:0x2ec},_0x1c91c8={_0x34ab5a:0x1ec,_0x382707:0x1},_0x151be0={_0x20b395:0x188,_0x49f0ea:0x71},_0x51dac6=_0x37ee15[_0x57a2cb(-_0x3e7dfc._0x4032db,_0x3e7dfc._0x3889de,0x6d,-_0x3e7dfc._0x18cfd0)]??_0x37ee15['packageName'],_0xf8c65a=await findPackageBinary(_0x51dac6,_0x37ee15[_0x57a2cb(_0x3e7dfc._0x444017,0x60,_0x3e7dfc._0x47f0ca,_0x3e7dfc._0x32cc5d)]);if(_0xf8c65a)return _0xf8c65a;function _0x57a2cb(_0x224969,_0x23cf0c,_0x3ec766,_0x34927c){return _0x4aa629(_0x224969-0x163,_0x224969,_0x3ec766-0x42,_0x3ec766-0xbb);}const _0x3169cd=await findPathBinary(_0x51dac6,_0x37ee15[_0x57a2cb(_0x3e7dfc._0x23aa3c,0x6,0x107,_0x3e7dfc._0x1b7ec5)]);function _0x20c3cb(_0x35fb5f,_0x3f592b,_0x1ae37d,_0x3593ce){return _0x2f0acf(_0x1ae37d- -_0x151be0._0x20b395,_0x3f592b-0x74,_0x35fb5f,_0x3593ce-_0x151be0._0x49f0ea);}if(_0x3169cd)return _0x3169cd;const _0x6c2b4d=_0x37ee15['env']??process[_0x57a2cb(0x13e,_0x3e7dfc._0xb5ab5d,_0x3e7dfc._0xcf2e7c,0x3a)];if(shouldDisableLspDownload(_0x6c2b4d))return void 0x0;const _0x1f2956=getLspPackageDir(_0x37ee15[_0x20c3cb(_0x3e7dfc._0x5a3435,_0x3e7dfc._0xb8782d,_0x3e7dfc._0x42a01b,0x28b)]),_0x3f75db=_0x37ee15['packageName']+':'+_0x51dac6;let _0x10db84=installPromises[_0x57a2cb(0x90,_0x3e7dfc._0x43a169,_0x3e7dfc._0x46e6c1,_0x3e7dfc._0x41e9be)](_0x3f75db);!_0x10db84&&(_0x10db84=((async()=>{function _0x179bd4(_0x52ec9d,_0x49ebf2,_0x41de6b,_0xcc6f21){return _0x57a2cb(_0x49ebf2,_0x49ebf2-0x17d,_0xcc6f21-0x15d,_0xcc6f21-0x1df);}await mkdir(_0x1f2956,{'recursive':!![]});const _0x20aec0=await runNpmInstall(_0x1f2956,_0x37ee15[_0x51ddbf(_0x99e721._0x2abe45,_0x99e721._0x2b8a54,_0x99e721._0x4d092c,0x2ed)],_0x6c2b4d);function _0x51ddbf(_0x1760b1,_0x4b0bd4,_0x2583fc,_0x55788d){return _0x20c3cb(_0x55788d,_0x4b0bd4-_0x1c91c8._0x34ab5a,_0x1760b1-0xba,_0x55788d-_0x1c91c8._0x382707);}if(!_0x20aec0)return void 0x0;const _0x1ad892=_0x3ea862['join'](getLspBinDir(_0x37ee15[_0x179bd4(0x32a,0x370,0x136,0x264)]),binaryNameForPlatform(_0x51dac6));return await exists(_0x1ad892)?_0x1ad892:void 0x0;})()),installPromises[_0x57a2cb(0x26e,_0x3e7dfc._0x39a6bf,_0x3e7dfc._0x30185f,_0x3e7dfc._0x4055c9)](_0x3f75db,_0x10db84));try{return await _0x10db84;}catch{return void 0x0;}finally{installPromises['delete'](_0x3f75db);}}var TYPESCRIPT_EXTENSIONS=[_0x4aa629(0x22,-0x10e,-0x201,-0x117),_0x2f0acf(0x289,0x143,0x34b,0x297),_0x4aa629(-0x1ed,-0x36,-0xf1,-0x122),_0x4aa629(-0xf9,-0x26a,-0x10b,-0x16f),'.mjs','.cjs',_0x4aa629(-0x81,-0x96,-0xe1,-0x2f),'.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x4aa629(-0xd0,0xc5,-0x17,-0x26),'.jsonc'],TYPESCRIPT_ROOT_MARKERS=['package-lock.json',_0x2f0acf(0x3c9,0x3e0,0x4af,0x3b9),_0x4aa629(0x1e0,0xea,-0x5a,0xb1),'pnpm-lock.yaml',_0x2f0acf(0x2c5,0x3fb,0x398,0x256),_0x4aa629(0x15,-0xd9,-0x19a,-0xa2),_0x2f0acf(0x2f5,0x40c,0x32c,0x404),'package.json'],BIOME_ROOT_MARKERS=['biome.json','biome.jsonc',_0x2f0acf(0x236,0x149,0x350,0x1b7),_0x4aa629(0x168,-0xb3,0xee,0x8c),'bun.lock',_0x4aa629(0x167,0x1c3,0x1b9,0xa8),_0x2f0acf(0x2c5,0x370,0x2e3,0x239),_0x2f0acf(0x271,0x1c0,0x2d4,0x30c)];async function exists2(_0x437ab3){try{return await _0x29f37d(_0x437ab3),!![];}catch{return![];}}async function findUp(_0x4279af,_0x5a0deb){const _0x458bbf={_0x377578:0xe5,_0x8a792d:0x27c,_0x4fa631:0x656,_0x1aa659:0x6b4,_0x2cce26:0x616},_0x1775f7={_0x187280:0x11,_0x285464:0x1a6},_0x2faf2a={_0x5d13a5:0xb6,_0xa8d8e0:0xa9};let _0x12960a=_0x4f421d[_0x36341f(-_0x458bbf._0x377578,-0x74,-_0x458bbf._0x8a792d,-0x1a4)](_0x4279af);function _0x4a3615(_0x56d287,_0x2f0919,_0x442765,_0x4ea9c6){return _0x4aa629(_0x56d287-_0x2faf2a._0x5d13a5,_0x442765,_0x442765-_0x2faf2a._0xa8d8e0,_0x4ea9c6-0x5cd);}function _0x36341f(_0x38652a,_0xf0754f,_0x2e5f80,_0x3e7291){return _0x2f0acf(_0x3e7291- -0x414,_0xf0754f-_0x1775f7._0x187280,_0x38652a,_0x3e7291-_0x1775f7._0x285464);}const _0x4e41d3=_0x4f421d['extname'](_0x12960a);if(_0x4e41d3)_0x12960a=_0x4f421d['dirname'](_0x12960a);while(!![]){for(const _0xd1f959 of _0x5a0deb){if(await exists2(_0x4f421d[_0x4a3615(0x441,0x538,0x60f,0x559)](_0x12960a,_0xd1f959)))return _0x12960a;}const _0x5bdca5=_0x4f421d[_0x4a3615(_0x458bbf._0x4fa631,0x5f8,_0x458bbf._0x1aa659,_0x458bbf._0x2cce26)](_0x12960a);if(_0x5bdca5===_0x12960a)return void 0x0;_0x12960a=_0x5bdca5;}}async function hasDenoRoot(_0x1e5b48){const _0x162456={_0x1a460d:0x21,_0x54b709:0x5a,_0x4395e2:0xdd,_0x22997f:0x25e,_0x5f38e1:0x17,_0x5ece5e:0xb5,_0x43e53b:0x1d5},_0x49e5fc={_0x2dd39d:0x3c8,_0x56e28:0x1e6},_0x5a47ff={_0x2a5b52:0x182,_0x442888:0x1ca,_0x1b5ec6:0xd1};function _0x35fce2(_0x58c557,_0x3075da,_0x4275a8,_0x2f580d){return _0x2f0acf(_0x4275a8- -_0x5a47ff._0x2a5b52,_0x3075da-_0x5a47ff._0x442888,_0x58c557,_0x2f580d-_0x5a47ff._0x1b5ec6);}function _0x4354ab(_0x587b7e,_0x20f8c1,_0xe8f109,_0x19ed4d){return _0x2f0acf(_0x587b7e- -_0x49e5fc._0x2dd39d,_0x20f8c1-0x1ec,_0x20f8c1,_0x19ed4d-_0x49e5fc._0x56e28);}return await exists2(_0x4f421d[_0x35fce2(_0x162456._0x1a460d,0x36,0x147,_0x162456._0x54b709)](_0x1e5b48,_0x4354ab(-0x1b3,-0x2c2,-_0x162456._0x4395e2,-_0x162456._0x22997f)))||await exists2(_0x4f421d[_0x35fce2(_0x162456._0x5f38e1,_0x162456._0x5ece5e,0x147,_0x162456._0x43e53b)](_0x1e5b48,'deno.jsonc'));}async function resolveTsserverPath(_0x325be6){const _0x4961e0={_0x357e2a:0xad,_0x133a9d:0x443,_0x3888ec:0x320,_0x36d6e8:0x350,_0x30752b:0x1bd,_0x460625:0x1ca,_0x3c1485:0x41c,_0x3eb32b:0x506,_0x37118e:0x4f0,_0x4819dc:0x3f2,_0x35327f:0x417,_0x195049:0x20c,_0x5e649f:0x22d,_0x513e6b:0x1cc,_0x348cd1:0x48f,_0x50f279:0x60a,_0x303b89:0x449,_0x2ec9f5:0x666,_0xebcba7:0x578,_0x23af7e:0x1ca},_0x30214f={_0x47c09d:0x4b4},_0x5e6788={_0x2c57b4:0x240};function _0x235fd0(_0x4cd94b,_0x275b63,_0x14ed23,_0x58a852){return _0x4aa629(_0x4cd94b-0x6d,_0x4cd94b,_0x14ed23-0xc7,_0x58a852-_0x5e6788._0x2c57b4);}let _0x4aa647=_0x4f421d['resolve'](_0x325be6);while(!![]){const _0x5349e2=_0x4f421d[_0x235fd0(_0x4961e0._0x357e2a,0x10a,0x265,0x1cc)](_0x4aa647,'node_modules',_0x5abe2d(0x630,_0x4961e0._0x133a9d,0x506,0x3f1),_0x235fd0(_0x4961e0._0x3888ec,0x345,0x34d,_0x4961e0._0x36d6e8),_0x235fd0(_0x4961e0._0x30752b,0x302,0x276,_0x4961e0._0x460625));if(await exists2(_0x5349e2))return _0x5349e2;const _0x340c54=_0x4f421d['dirname'](_0x4aa647);if(_0x340c54===_0x4aa647)break;_0x4aa647=_0x340c54;}function _0x5abe2d(_0x28c5d2,_0x12f8bc,_0x5a0938,_0x547afe){return _0x4aa629(_0x28c5d2-0xa1,_0x547afe,_0x5a0938-0xa1,_0x5a0938-_0x30214f._0x47c09d);}const _0x40fe57=getLspPackageDir('typescript'),_0xa323fc=await resolvePackageBinary({'packageName':_0x5abe2d(0x578,_0x4961e0._0x3c1485,_0x4961e0._0x3eb32b,_0x4961e0._0x37118e),'binaryName':_0x5abe2d(_0x4961e0._0x4819dc,0x45c,0x42b,_0x4961e0._0x35327f),'startDir':_0x325be6});if(!_0xa323fc)return void 0x0;const _0x114a38=_0x4f421d[_0x235fd0(_0x4961e0._0x195049,_0x4961e0._0x5e649f,0x1e2,_0x4961e0._0x513e6b)](_0x40fe57,_0x5abe2d(_0x4961e0._0x348cd1,_0x4961e0._0x50f279,0x4df,_0x4961e0._0x303b89),'typescript',_0x5abe2d(_0x4961e0._0x2ec9f5,_0x4961e0._0xebcba7,0x5c4,0x4db),_0x235fd0(0x30c,0x15c,0x210,_0x4961e0._0x23af7e));return await exists2(_0x114a38)?_0x114a38:void 0x0;}var TypeScriptServer={'id':_0x4aa629(-0xc3,-0x60,0x198,0x52),'name':'TypeScript\x20Language\x20Server','extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x3b7d5c){const _0x49f8ed=await findUp(_0x3b7d5c,TYPESCRIPT_ROOT_MARKERS);if(!_0x49f8ed)return void 0x0;return await hasDenoRoot(_0x49f8ed)?void 0x0:_0x49f8ed;},async 'spawn'(_0xe60075){const _0x430b56={_0x213ec8:0x70,_0x9b8a22:0x16,_0x2be164:0x6c,_0x1d154d:0x2da,_0x538b91:0x1f1},_0x4818c1={_0x34b12b:0x17,_0x5be66a:0x11b},_0x9f8150={_0x4d0019:0x13d,_0x5dff69:0x91,_0x3a47e3:0x2c9},_0x232e27=await resolveTsserverPath(_0xe60075);if(!_0x232e27)return void 0x0;function _0xde4554(_0x163adb,_0x301af0,_0x12cf81,_0x4de6e9){return _0x4aa629(_0x163adb-_0x9f8150._0x4d0019,_0x12cf81,_0x12cf81-_0x9f8150._0x5dff69,_0x301af0-_0x9f8150._0x3a47e3);}function _0x352d03(_0x1598f9,_0x4fd123,_0x12c489,_0x18b559){return _0x4aa629(_0x1598f9-0xce,_0x4fd123,_0x12c489-_0x4818c1._0x34b12b,_0x18b559- -_0x4818c1._0x5be66a);}const _0x354e38=await resolvePackageBinary({'packageName':'typescript-language-server','binaryName':'typescript-language-server','startDir':_0xe60075});if(!_0x354e38)return void 0x0;return{'process':_0x359d69(_0x354e38,[_0x352d03(_0x430b56._0x213ec8,-0x100,_0x430b56._0x9b8a22,-_0x430b56._0x2be164)],{'cwd':_0xe60075,'stdio':_0xde4554(_0x430b56._0x1d154d,_0x430b56._0x538b91,0xf4,0x211)}),'initialization':{'tsserver':{'path':_0x232e27}}};}},BiomeServer={'id':_0x2f0acf(0x454,0x39a,0x535,0x3e6),'name':_0x2f0acf(0x34b,0x45a,0x34c,0x2c1),'extensions':BIOME_EXTENSIONS,async 'root'(_0x23ffba){return findUp(_0x23ffba,BIOME_ROOT_MARKERS);},async 'spawn'(_0x2a242b){const _0x5dfd54={_0x3aa046:0x749,_0x54d67d:0x57f,_0x591e57:0x658,_0x88f628:0x5f2,_0x4de363:0x63,_0x558cb1:0xcc,_0x555e26:0x16f},_0x418fcc={_0x191484:0x217,_0x191d95:0x9d},_0x4f014f={_0x293133:0xd4,_0x420c69:0x1d5},_0x172a98=await findPackageBinary(_0xa6a569(0x66b,0x783,_0x5dfd54._0x3aa046,0x6d8),_0x2a242b)??await resolvePackageBinary({'packageName':'@biomejs/biome','binaryName':_0xa6a569(0x66b,_0x5dfd54._0x54d67d,_0x5dfd54._0x591e57,_0x5dfd54._0x88f628),'startDir':_0x2a242b});if(!_0x172a98)return void 0x0;function _0x3a5fd0(_0x512bc4,_0x480f53,_0x1d9195,_0x26efaf){return _0x4aa629(_0x512bc4-_0x4f014f._0x293133,_0x26efaf,_0x1d9195-_0x4f014f._0x420c69,_0x1d9195-0x9f);}function _0xa6a569(_0x6386fe,_0x326f5f,_0x977914,_0x3aa0f8){return _0x2f0acf(_0x6386fe-_0x418fcc._0x191484,_0x326f5f-_0x418fcc._0x191d95,_0x977914,_0x3aa0f8-0x15c);}return{'process':_0x359d69(_0x172a98,[_0x3a5fd0(-0x1e2,-_0x5dfd54._0x4de363,-0xc9,-0x9b),_0x3a5fd0(0x1c5,_0x5dfd54._0x558cb1,0x14e,_0x5dfd54._0x555e26)],{'cwd':_0x2a242b,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x5a4c13){const _0x428be6={_0x262d20:0x3eb,_0x13de99:0x525,_0x3ea8ec:0x3a8,_0x3ac6b5:0x66d,_0xf38f40:0x55a,_0x3b6317:0x50f},_0x3ace3a={_0x35649f:0x7a,_0x2d428c:0x7},_0x1d956a={_0x598e1d:0x60};function _0x5d00bd(_0x4816a4,_0x12830c,_0x4c24a1,_0x49c0c3){return _0x4aa629(_0x4816a4-0x6,_0x4816a4,_0x4c24a1-_0x1d956a._0x598e1d,_0x49c0c3-0x508);}function _0x387580(_0xae461e,_0xa2d744,_0x4d77dd,_0x543d94){return _0x4aa629(_0xae461e-_0x3ace3a._0x35649f,_0xae461e,_0x4d77dd-_0x3ace3a._0x2d428c,_0xa2d744-0x606);}const _0x49e53c=_0x4f421d[_0x387580(_0x428be6._0x262d20,0x49d,_0x428be6._0x13de99,_0x428be6._0x3ea8ec)](_0x5a4c13)[_0x5d00bd(0x345,0x34e,0x448,0x3c0)]();return BUILTIN_LSP_SERVERS[_0x5d00bd(_0x428be6._0x3ac6b5,_0x428be6._0xf38f40,_0x428be6._0x3b6317,0x5a1)](_0x21f18b=>_0x21f18b[_0x5d00bd(0x4c0,0x5c6,0x601,0x5e3)][_0x5d00bd(0x365,0x4a0,0x367,0x489)](_0x49e53c));}function stateKey(_0x21685b,_0xef02c){return _0xef02c+':'+_0x21685b['id'];}function diagnosticsKeyToPath(_0x1b897a){const _0x223048={_0xd5c510:0x3e9,_0x334c23:0x475,_0xd29266:0x2d4,_0x3f38d4:0x3a1},_0x407695={_0x487bdf:0x420};function _0x828b0c(_0x1f83b6,_0xad4b50,_0x75e808,_0x48ea40){return _0x4aa629(_0x1f83b6-0x14d,_0xad4b50,_0x75e808-0x1c4,_0x1f83b6-_0x407695._0x487bdf);}if(!_0x1b897a[_0x828b0c(_0x223048._0xd5c510,_0x223048._0x334c23,_0x223048._0xd29266,_0x223048._0x3f38d4)]('file://'))return _0x1b897a;return fileURLToPath(_0x1b897a);}function nextFileVersion(_0x1340c5,_0x5729cf){const _0x20684a={_0x31f5a7:0x3bf,_0x391205:0x4fb,_0x336531:0x51f,_0x375609:0x5e2,_0x3dda44:0x50b,_0x148057:0x40a,_0x3b6052:0x64d,_0x568a9f:0x5f9,_0x16a3e7:0x574},_0x56f6b6={_0x54b951:0x3ec},_0x52fd43={_0x5935a5:0x1f7};function _0x498bb8(_0x3da0f6,_0x24f5a4,_0x5f0de2,_0x190f99){return _0x2f0acf(_0x5f0de2-_0x52fd43._0x5935a5,_0x24f5a4-0x18c,_0x3da0f6,_0x190f99-0x7e);}function _0x45db43(_0x2ae733,_0x43a567,_0x2f43db,_0xbca7a7){return _0x4aa629(_0x2ae733-0x12,_0x2ae733,_0x2f43db-0x1c7,_0x43a567-_0x56f6b6._0x54b951);}const _0x452afc=(_0x1340c5[_0x45db43(0x3ef,_0x20684a._0x31f5a7,0x352,_0x20684a._0x391205)][_0x498bb8(_0x20684a._0x336531,_0x20684a._0x375609,_0x20684a._0x3dda44,_0x20684a._0x148057)](_0x5729cf)??0x1)+0x1;return _0x1340c5[_0x45db43(0x3bb,0x3bf,0x444,0x414)][_0x498bb8(_0x20684a._0x3b6052,0x6b1,_0x20684a._0x568a9f,_0x20684a._0x16a3e7)](_0x5729cf,_0x452afc),_0x452afc;}async function collectClientResults(_0x48ef17){const _0x32fc2a={_0x58a3ee:0x54,_0x2b8834:0x1d4},_0x469ce0={_0x29fb25:0x352};function _0x252153(_0x31a612,_0x378b61,_0x77414d,_0x18582b){return _0x2f0acf(_0x378b61- -_0x469ce0._0x29fb25,_0x378b61-0xe7,_0x18582b,_0x18582b-0x16);}function _0x1fd5d2(_0x217d77,_0x246205,_0x3987d1,_0x58be34){return _0x2f0acf(_0x217d77-0x94,_0x246205-_0x32fc2a._0x58a3ee,_0x246205,_0x58be34-_0x32fc2a._0x2b8834);}const _0x48a839=await Promise['allSettled'](_0x48ef17);return _0x48a839['flatMap'](_0x50766f=>_0x50766f[_0x1fd5d2(0x3ed,0x2f6,0x410,0x526)]===_0x1fd5d2(0x31a,0x40d,0x32c,0x458)?_0x50766f['value']:[]);}function createLspService(_0x4917a1={}){const _0x1f2cfa={_0x335d76:0x245,_0x4d15a5:0x244},_0x5586c5={_0x4c10cb:0x489,_0x397e9e:0x52c,_0xb30a5e:0x422,_0x44c6d1:0x282,_0x22fd9d:0x3ee,_0x4dab44:0x4cd,_0x1555ae:0x494,_0x551912:0x3a1,_0x3ac90b:0x494,_0x5737f8:0x4d0,_0x346612:0x43c,_0x4d0757:0x11c,_0x202926:0x18d,_0x39ea0d:0x4ca,_0x42a87f:0x48d,_0x4838e4:0x44f,_0x1ccbca:0x5aa},_0x73af96={_0x942055:0x21},_0x296659={_0x48d1c2:0xd},_0x4da914={_0x3e53e4:0x44a},_0x2547ab={_0x3d7432:0x65a,_0x1e5943:0x51f,_0x2d449f:0x120,_0x37bb8d:0x150,_0x3a552e:0x20d},_0x29ac73={_0x573214:0x175},_0x580e7b={_0x46787b:0x474,_0x43f461:0x2ea,_0x10aad0:0x3bf,_0x36794b:0x45c,_0x51e49c:0x408,_0x1541da:0x31d},_0x5ca25f={_0x49e6b6:0x320},_0x3f552f={_0x710415:0x13e,_0x342945:0xe7},_0x27c9c9={_0x43ff82:0x30,_0x1658d5:0x43,_0x52dd6e:0x1ad},_0x589095={_0x4a704c:0xe4},_0x27f51a={_0x1bf338:0x2ae},_0x1a0896={_0xc37941:0x209},_0x411c1e={_0x3f1dc5:0x293},_0x272e29={_0x183cbe:0x44,_0x45534f:0x42,_0x115f3b:0xd9},_0x4b108b={_0x299505:0x13a,_0x39bdfb:0x81,_0x602cc0:0xad,_0x51acc8:0x24e,_0xefffc2:0xd7},_0x4b8e88={_0x258818:0x4e0,_0x23771e:0x401,_0x132ef0:0x50d,_0x3d5db4:0x60b,_0x476e1c:0x41c,_0x39ca5e:0x56f,_0x469148:0x4e1,_0x39d7e1:0x4b3,_0x5a769e:0x55b,_0x10a242:0x644,_0x9f9575:0x61c,_0x5b3c2c:0x577,_0x268154:0x64d,_0x1b4c3b:0x60a,_0x19480e:0x541,_0x5d81d2:0x585,_0x2e9209:0x47a},_0x5eb9b5={_0x5526d3:0x4ad,_0x7fdca0:0x4ea,_0x219b4f:0x441,_0x4fc051:0x404,_0x1d9f9f:0x3e3,_0x374d30:0x312,_0x392804:0x4ec,_0x396a6b:0x3a2,_0x416f4a:0x3f4,_0x49d4b1:0x4f9,_0x519ce6:0x44c},_0x275ae8={_0x1ef200:0x56f,_0x3c9951:0x117,_0x36acca:0x11d,_0x5c5079:0x124,_0x1f979a:0x4b1,_0x205946:0x497,_0x357423:0x4a0,_0x19efd5:0x2e3,_0x511dfd:0x3ee,_0x559d00:0x3e,_0x54b541:0xef,_0x324972:0x10e,_0x320e93:0x4b,_0x3d3f0f:0xb0,_0x2f30f6:0x14c,_0x371659:0xf4,_0x155135:0x372,_0x5723e8:0x523},_0x48c09e={_0x1e4112:0x7,_0x45c2cc:0x244,_0x51b9de:0x3c9,_0x35a40d:0x303,_0x484ae6:0x437,_0x16574c:0x97,_0x210e18:0xec,_0x1b43f1:0x9b,_0xccc3c9:0x161,_0x1ca053:0x23,_0x78208e:0x148,_0x5ea693:0x3f8,_0x2df351:0x53d,_0x528a9d:0x1e2,_0x2d0c36:0x9b,_0x532949:0x8a,_0x577345:0x309,_0x2c0dc4:0x254,_0x3fbf6b:0x132,_0x8e0ed3:0x74,_0x5cc01d:0x1e7,_0x430134:0x17e,_0x2ddf8f:0x2cf,_0x34a1aa:0x3d6,_0x31bdaa:0x2c6,_0x24e11d:0x200,_0xa63dee:0x324,_0x5b5e9e:0x407},_0x29f99e={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x538179=()=>_0x4917a1['enabled']!==![];async function _0x1d6c59(_0x147feb,_0x58b00a){const _0x554dc7={_0x3b3abf:0x139},_0x550aee={_0x57c777:0x219},_0x3e4138=stateKey(_0x147feb,_0x58b00a),_0xb9cd=_0x29f99e[_0x165354(0x4d6,0x4f0,0x508,_0x275ae8._0x1ef200)][_0x4f9676(_0x275ae8._0x3c9951,_0x275ae8._0x36acca,0x145,_0x275ae8._0x5c5079)](_0x49a8c2=>_0x49a8c2['serverId']===_0x147feb['id']&&_0x49a8c2[_0x4f9676(0x146,0x14a,0xef,0x13b)]===_0x58b00a);if(_0xb9cd)return _0xb9cd;if(_0x29f99e[_0x165354(_0x275ae8._0x1f979a,0x453,_0x275ae8._0x205946,_0x275ae8._0x357423)][_0x165354(_0x275ae8._0x19efd5,0x49a,_0x275ae8._0x511dfd,0x40b)](_0x3e4138))return void 0x0;function _0x165354(_0x12a7e5,_0x93752d,_0x54af87,_0x417a4c){return _0x561a(_0x54af87-0x265,_0x93752d);}const _0xdc6fd1=_0x29f99e[_0x4f9676(-_0x275ae8._0x559d00,_0x275ae8._0x54b541,-_0x275ae8._0x324972,_0x275ae8._0x320e93)][_0x4f9676(0x10,-_0x275ae8._0x3d3f0f,_0x275ae8._0x2f30f6,_0x275ae8._0x371659)](_0x3e4138);function _0x4f9676(_0x2f3134,_0x5048b6,_0x440543,_0x435521){return _0x561a(_0x2f3134- -_0x550aee._0x57c777,_0x440543);}if(_0xdc6fd1)return _0xdc6fd1;const _0x351179=((async()=>{const _0x862b5a={_0x56fdf7:0x32};function _0x3859e5(_0x592644,_0x4d8fda,_0x3823d6,_0xe815d7){return _0x165354(_0x592644-0x39,_0x3823d6,_0x592644- -0x5a3,_0xe815d7-_0x862b5a._0x56fdf7);}function _0x5b6867(_0x25e740,_0x54fafc,_0x1c1379,_0x423a9d){return _0x165354(_0x25e740-_0x554dc7._0x3b3abf,_0x25e740,_0x1c1379- -0x194,_0x423a9d-0x5b);}try{const _0x489e1b=await _0x147feb[_0x3859e5(-0xd5,-0x130,-0x106,_0x48c09e._0x1e4112)](_0x58b00a);if(!_0x489e1b)return _0x29f99e[_0x5b6867(_0x48c09e._0x45c2cc,_0x48c09e._0x51b9de,_0x48c09e._0x35a40d,_0x48c09e._0x484ae6)][_0x3859e5(-0x149,-_0x48c09e._0x16574c,-0x6a,-_0x48c09e._0x210e18)](_0x3e4138),void 0x0;const _0x505340=await createLspClient({'server':_0x147feb,'root':_0x58b00a,'handle':_0x489e1b}),_0x4c5733=_0x29f99e[_0x3859e5(-_0x48c09e._0x1b43f1,-_0x48c09e._0xccc3c9,-_0x48c09e._0x1ca053,-_0x48c09e._0x78208e)][_0x5b6867(_0x48c09e._0x5ea693,0x4a6,0x401,_0x48c09e._0x2df351)](_0x4cf3ed=>_0x4cf3ed[_0x3859e5(0x20,0xb4,0x119,0x44)]===_0x147feb['id']&&_0x4cf3ed[_0x5b6867(0x43c,0x563,0x430,0x522)]===_0x58b00a);if(_0x4c5733)return await _0x505340[_0x5b6867(0xb5,0x197,_0x48c09e._0x528a9d,0x1be)](),_0x4c5733;return _0x29f99e[_0x3859e5(-_0x48c09e._0x2d0c36,-0x53,-_0x48c09e._0x532949,-0x193)][_0x5b6867(0x388,_0x48c09e._0x577345,_0x48c09e._0x2c0dc4,_0x48c09e._0x3fbf6b)](_0x505340),_0x505340;}catch{return _0x29f99e[_0x3859e5(-0x10c,-_0x48c09e._0x8e0ed3,-_0x48c09e._0x5cc01d,-_0x48c09e._0x430134)][_0x5b6867(_0x48c09e._0x2ddf8f,_0x48c09e._0x34a1aa,_0x48c09e._0x31bdaa,_0x48c09e._0x24e11d)](_0x3e4138),void 0x0;}finally{_0x29f99e[_0x3859e5(-0x163,-0x106,-0x27b,-0x126)][_0x5b6867(_0x48c09e._0xa63dee,_0x48c09e._0x5b5e9e,0x310,0x2c7)](_0x3e4138);}})());return _0x29f99e[_0x165354(0x41a,_0x275ae8._0x155135,0x440,0x36e)][_0x165354(0x56e,0x505,0x57c,_0x275ae8._0x5723e8)](_0x3e4138,_0x351179),_0x351179;}async function _0x498a99(_0x1c232a,_0x27d143){function _0x3fc3ee(_0x359345,_0x49199c,_0x12e15a,_0x373bfc){return _0x561a(_0x359345-0x27b,_0x49199c);}if(!_0x538179())return[];const _0x329a9c=[];function _0x45215b(_0x33bc50,_0x1d36ee,_0x4c3346,_0x335be3){return _0x561a(_0x4c3346-0x151,_0x33bc50);}for(const _0x17babc of getServersForFile(_0x1c232a)){const _0x578e95=await _0x17babc['root'](_0x1c232a);if(!_0x578e95)continue;const _0x5e0399=stateKey(_0x17babc,_0x578e95);if(_0x29f99e[_0x3fc3ee(_0x5eb9b5._0x5526d3,_0x5eb9b5._0x7fdca0,_0x5eb9b5._0x219b4f,0x598)][_0x3fc3ee(_0x5eb9b5._0x4fc051,_0x5eb9b5._0x1d9f9f,0x441,_0x5eb9b5._0x374d30)](_0x5e0399))continue;const _0x1ba67f=_0x29f99e[_0x45215b(_0x5eb9b5._0x392804,_0x5eb9b5._0x396a6b,_0x5eb9b5._0x416f4a,_0x5eb9b5._0x49d4b1)][_0x3fc3ee(0x5ab,0x47a,0x50f,0x534)](_0x4c6a69=>_0x4c6a69[_0x45215b(0x43b,0x596,0x4af,0x5c7)]===_0x17babc['id']&&_0x4c6a69[_0x45215b(0x4e4,0x5a8,0x4b0,0x3a6)]===_0x578e95);if(_0x1ba67f){_0x329a9c['push'](_0x1ba67f);continue;}if(!_0x27d143)continue;const _0x50bc2e=await _0x1d6c59(_0x17babc,_0x578e95);if(_0x50bc2e)_0x329a9c[_0x3fc3ee(0x3fe,_0x5eb9b5._0x519ce6,0x4c1,0x38e)](_0x50bc2e);}return _0x329a9c;}async function _0x2f96a3(_0xf719c0,_0x533b93=![]){const _0x47f33f={_0x40ed3e:0x6c3},_0x6f564f={_0x282298:0x1d2};function _0x2c8d13(_0x42b8dd,_0x12def9,_0x5cedec,_0x1a59bd){return _0x561a(_0x42b8dd- -0x33c,_0x12def9);}function _0x8848a(_0x1b9ce5,_0x16ef53,_0x4f72f8,_0x112fdd){return _0x561a(_0x4f72f8- -_0x6f564f._0x282298,_0x1b9ce5);}const _0x8bf51f=await _0x498a99(_0xf719c0,!![]);await Promise[_0x8848a(-0x57,-_0x4b108b._0x299505,-_0x4b108b._0x39bdfb,_0x4b108b._0x602cc0)](_0x8bf51f[_0x2c8d13(-0x1f9,-_0x4b108b._0x51acc8,-_0x4b108b._0xefffc2,-0xf3)](async _0x1015d9=>{const _0x32f5fc={_0x26eaf8:0x147};function _0x430096(_0x32dd26,_0x425b0d,_0x4c205e,_0x2d948b){return _0x8848a(_0x2d948b,_0x425b0d-0x19f,_0x425b0d-0x393,_0x2d948b-_0x32f5fc._0x26eaf8);}function _0x5a1c5a(_0x47dea7,_0x28afae,_0x3c5e73,_0x352e40){return _0x2c8d13(_0x3c5e73-_0x47f33f._0x40ed3e,_0x352e40,_0x3c5e73-0x1d3,_0x352e40-0x1d0);}!_0x29f99e[_0x430096(0x600,0x4c5,_0x4b8e88._0x258818,_0x4b8e88._0x23771e)][_0x5a1c5a(_0x4b8e88._0x132ef0,_0x4b8e88._0x3d5db4,0x510,0x3f5)](_0x1015d9[_0x430096(0x61a,0x51f,0x45e,_0x4b8e88._0x476e1c)]+':'+_0x1015d9['root']+':'+_0xf719c0)&&(await _0x1015d9['notify'][_0x5a1c5a(_0x4b8e88._0x39ca5e,_0x4b8e88._0x469148,_0x4b8e88._0x39d7e1,0x596)]({'path':_0xf719c0}),_0x29f99e[_0x430096(0x3cd,0x4c5,0x42a,_0x4b8e88._0x5a769e)]['add'](_0x1015d9[_0x430096(_0x4b8e88._0x10a242,0x51f,0x3f5,0x592)]+':'+_0x1015d9[_0x430096(_0x4b8e88._0x9f9575,0x520,_0x4b8e88._0x5b3c2c,0x48c)]+':'+_0xf719c0));await _0x1015d9[_0x5a1c5a(0x660,_0x4b8e88._0x268154,0x577,_0x4b8e88._0x1b4c3b)][_0x5a1c5a(_0x4b8e88._0x19480e,0x46c,_0x4b8e88._0x5d81d2,_0x4b8e88._0x3d5db4)]({'path':_0xf719c0,'version':nextFileVersion(_0x29f99e,_0xf719c0)});if(_0x533b93)await _0x1015d9[_0x5a1c5a(0x52a,_0x4b8e88._0x2e9209,0x533,0x567)]({'path':_0xf719c0});}));}async function _0x376013(_0x2f28f8){const _0x195ec6={_0x4c7ba4:0x238};await _0x2f96a3(_0x2f28f8['file'],![]);function _0x2f310f(_0x5432c3,_0x1229c1,_0x3f4ba2,_0x4b0ea0){return _0x561a(_0x1229c1- -_0x195ec6._0x4c7ba4,_0x3f4ba2);}return _0x498a99(_0x2f28f8[_0x2f310f(-_0x272e29._0x183cbe,-_0x272e29._0x45534f,-0x5d,_0x272e29._0x115f3b)],![]);}async function _0x35bd37(_0x4e286e){const _0x5c7933=await _0x376013(_0x4e286e);function _0x58ad14(_0x1b42b0,_0x1d9188,_0x439cec,_0x20c886){return _0x561a(_0x439cec-_0x411c1e._0x3f1dc5,_0x1b42b0);}function _0x3faba3(_0x3d2e0f,_0x5f41f2,_0x320ab5,_0x2c84cb){return _0x561a(_0x3d2e0f-_0x1a0896._0xc37941,_0x320ab5);}return collectClientResults(_0x5c7933[_0x58ad14(0x2f0,_0x27f51a._0x1bf338,0x3d6,0x4c0)](_0x40b0b3=>_0x40b0b3[_0x3faba3(0x552,0x431,0x68b,0x5ed)][_0x3faba3(0x458,0x45e,0x3e0,0x358)](_0x4e286e)));}return{'isEnabled':_0x538179,async 'hasClients'(_0x5f4b15){function _0x4c83af(_0x51b29e,_0x35dc1d,_0x28db56,_0x197717){return _0x561a(_0x197717- -0xf9,_0x51b29e);}function _0x3bf73a(_0x350aea,_0x208cf8,_0x35a81f,_0x2c9518){return _0x561a(_0x35a81f- -_0x589095._0x4a704c,_0x350aea);}return(await _0x498a99(_0x5f4b15,![]))[_0x4c83af(-_0x27c9c9._0x43ff82,0x77,-_0x27c9c9._0x1658d5,0xdf)]>0x0||getServersForFile(_0x5f4b15)[_0x3bf73a(0x21d,-0xc,0xf4,_0x27c9c9._0x52dd6e)]>0x0;},'touchFile':_0x2f96a3,async 'diagnostics'(){function _0x146335(_0x24b260,_0x479af2,_0x1a9242,_0x19147d){return _0x561a(_0x24b260- -0xe8,_0x19147d);}const _0x268f19={};for(const _0xd06b17 of _0x29f99e[_0x146335(0x1bb,_0x3f552f._0x710415,0x17a,_0x3f552f._0x342945)]){for(const [_0x3baa02,_0xeaeb7b]of _0xd06b17['diagnostics']){_0x268f19[diagnosticsKeyToPath(_0x3baa02)]=_0xeaeb7b;}}return _0x268f19;},async 'diagnosticsForFile'(_0x3f6823){await _0x2f96a3(_0x3f6823,!![]);function _0x19b6b4(_0x301b58,_0x561e0c,_0x2f720c,_0x10e885){return _0x561a(_0x301b58-0x92,_0x561e0c);}const _0x2a3ae7=[];for(const _0x9adbc3 of await _0x498a99(_0x3f6823,![])){for(const [_0x1c78ff,_0x8acb2b]of _0x9adbc3['diagnostics']){if(diagnosticsKeyToPath(_0x1c78ff)===_0x3f6823)_0x2a3ae7[_0x19b6b4(0x215,_0x5ca25f._0x49e6b6,0x188,0x230)](..._0x8acb2b);}}return _0x2a3ae7;},async 'definition'(_0x13f1e8){function _0x10bf1c(_0x299ce8,_0x53a0b0,_0x2bcdca,_0x46c20b){return _0x561a(_0x46c20b- -0x289,_0x53a0b0);}return collectClientResults((await _0x376013(_0x13f1e8))['map'](_0x7d35b5=>_0x7d35b5[_0x10bf1c(-0x61,0x9c,0xa,0xc0)]['definition'](_0x13f1e8)));},async 'references'(_0x2b0004){const _0x46d1fd={_0x560ee8:0x2f8};function _0x47bd96(_0x2caf96,_0x232662,_0x451438,_0x50585c){return _0x561a(_0x50585c-_0x46d1fd._0x560ee8,_0x451438);}return collectClientResults((await _0x376013(_0x2b0004))['map'](_0x141c79=>_0x141c79['request'][_0x47bd96(0x517,0x4bc,0x508,0x434)](_0x2b0004)));},async 'hover'(_0x33b579){function _0x522030(_0x276e20,_0xc540b9,_0x33825d,_0x10603f){return _0x561a(_0xc540b9-0x1f9,_0x33825d);}const _0x395dcc=await Promise[_0x522030(_0x580e7b._0x46787b,0x408,_0x580e7b._0x43f461,_0x580e7b._0x10aad0)]((await _0x376013(_0x33b579))[_0x1fe9fb(0x315,_0x580e7b._0x36794b,_0x580e7b._0x51e49c,_0x580e7b._0x1541da)](_0x542be7=>_0x542be7[_0x1fe9fb(0x578,0x4c1,0x3db,0x523)][_0x522030(0x4c1,0x537,0x506,0x40f)](_0x33b579)));function _0x1fe9fb(_0x1528ae,_0x48baf9,_0x1504d9,_0x585938){return _0x561a(_0x585938-0x1da,_0x48baf9);}return _0x395dcc[_0x522030(0x50d,0x47e,0x3c4,0x4e0)](_0x2c5fd9=>_0x2c5fd9[_0x1fe9fb(0x475,0x349,0x540,0x448)]===_0x1fe9fb(0x498,0x2a0,0x2ed,0x375)&&_0x2c5fd9['value']?[_0x2c5fd9[_0x1fe9fb(0x3e3,0x35b,0x30c,0x328)]]:[]);},async 'documentSymbol'(_0x29e0a1){const _0x3e09d7={_0x18c8fc:0x2a0};function _0x52abc8(_0xbbf593,_0x579100,_0x4fb5d1,_0xf93950){return _0x561a(_0x579100-_0x3e09d7._0x18c8fc,_0xbbf593);}function _0x5afd8e(_0x4357dd,_0x2cbf04,_0x448287,_0x1ad9fb){return _0x561a(_0x4357dd- -_0x29ac73._0x573214,_0x2cbf04);}return await _0x2f96a3(_0x29e0a1,![]),collectClientResults((await _0x498a99(_0x29e0a1,![]))['map'](_0x37510f=>_0x37510f[_0x52abc8(0x692,0x5e9,0x649,0x4fa)][_0x5afd8e(0x60,0x3e,-0x9f,0x158)](_0x29e0a1)));},async 'workspaceSymbol'(_0x358a88){const _0xa77915={_0x250b22:0x2f6};function _0x25da54(_0x50a47f,_0x581686,_0x4abb31,_0x4460fd){return _0x561a(_0x581686-0xd,_0x4abb31);}function _0x244de4(_0x29b73e,_0x1f76cd,_0x540d0b,_0x2001ae){return _0x561a(_0x1f76cd-_0xa77915._0x250b22,_0x29b73e);}return collectClientResults(_0x29f99e[_0x244de4(0x62c,0x599,_0x2547ab._0x3d7432,_0x2547ab._0x1e5943)][_0x25da54(_0x2547ab._0x2d449f,_0x2547ab._0x37bb8d,0xd2,_0x2547ab._0x3a552e)](_0x1e993=>_0x1e993[_0x25da54(0x275,0x356,0x495,0x226)][_0x244de4(0x561,0x4e4,0x5c9,0x620)](_0x358a88)));},async 'implementation'(_0x2397bc){const _0x4207bb={_0x3d26da:0x30f};function _0x14e1ea(_0x1e304f,_0x2c0dee,_0x5e9c64,_0x549bee){return _0x561a(_0x5e9c64-0xca,_0x549bee);}function _0x146684(_0x4570f9,_0x562638,_0x5a1cfe,_0x68830d){return _0x561a(_0x4570f9-_0x4207bb._0x3d26da,_0x562638);}return collectClientResults((await _0x376013(_0x2397bc))['map'](_0x573044=>_0x573044[_0x14e1ea(0x535,0x552,0x413,0x4d1)][_0x14e1ea(0x342,0x32c,0x40a,0x314)](_0x2397bc)));},async 'prepareCallHierarchy'(_0x3b4c38){return _0x35bd37(_0x3b4c38);},async 'incomingCalls'(_0x4e2c0d){const _0xbdc72d=await _0x35bd37(_0x4e2c0d),_0x4ac9f6=await _0x376013(_0x4e2c0d);function _0x598bfa(_0x49de72,_0x5e73a8,_0x1e901b,_0x286cd5){return _0x561a(_0x286cd5-0x111,_0x1e901b);}return collectClientResults(_0x4ac9f6[_0x598bfa(0x443,_0x4da914._0x3e53e4,0x4bd,0x396)](_0x25ed89=>_0xbdc72d['map'](_0x3a91b6=>_0x25ed89['request']['incomingCalls'](_0x3a91b6))));},async 'outgoingCalls'(_0xe7ac97){function _0x2df09d(_0x4d33ea,_0x3b97aa,_0x1dfa8f,_0x383d63){return _0x561a(_0x1dfa8f- -0x327,_0x4d33ea);}function _0x34757d(_0x2f3b57,_0x3d2eca,_0x502096,_0x598a92){return _0x561a(_0x3d2eca- -0x22d,_0x2f3b57);}const _0x1cb97c=await _0x35bd37(_0xe7ac97),_0x101cd6=await _0x376013(_0xe7ac97);return collectClientResults(_0x101cd6[_0x2df09d(-0x1db,0x40,-0xa2,-_0x296659._0x48d1c2)](_0x2b3df6=>_0x1cb97c[_0x34757d(-0x148,-0xea,-0x8e,0x3)](_0x5b9010=>_0x2b3df6['request'][_0x2df09d(-0x265,-0x66,-0x19b,-0x145)](_0x5b9010))));},async 'shutdown'(){const _0x1a0251={_0x3f2cb3:0x2ab};if(_0x29f99e[_0x35a64d(0x41b,_0x5586c5._0x4c10cb,0x497,_0x5586c5._0x397e9e)])return;_0x29f99e[_0x35a64d(0x41b,0x340,_0x5586c5._0xb30a5e,0x50e)]=!![],await Promise['allSettled'](_0x29f99e[_0x3c3e74(0x1a8,0x21c,_0x5586c5._0x44c6d1,0x30c)][_0x35a64d(_0x5586c5._0x22fd9d,0x4aa,0x2e1,_0x5586c5._0x4dab44)](_0xee34c8=>_0xee34c8[_0x35a64d(0x3bc,0x41c,0x3cb,0x41e)]())),_0x29f99e[_0x3c3e74(0x318,0x15d,0x282,0x2d5)]=[];function _0x35a64d(_0x557768,_0x2765d1,_0x43501a,_0xb5cf82){return _0x561a(_0x557768-_0x1a0251._0x3f2cb3,_0x2765d1);}_0x29f99e[_0x3c3e74(0xf1,0x16e,0x1ba,0x2bf)]['clear']();function _0x3c3e74(_0x2b2ca7,_0x71bb8d,_0x421dae,_0x200742){return _0x561a(_0x421dae- -_0x73af96._0x942055,_0x71bb8d);}_0x29f99e[_0x35a64d(0x4dd,0x424,0x430,0x61b)][_0x35a64d(_0x5586c5._0x1555ae,_0x5586c5._0x551912,_0x5586c5._0x3ac90b,0x38f)](),_0x29f99e[_0x35a64d(_0x5586c5._0x5737f8,_0x5586c5._0x346612,0x41e,0x583)][_0x3c3e74(_0x5586c5._0x4d0757,_0x5586c5._0x202926,0x1c8,0x142)](),_0x29f99e[_0x35a64d(0x5af,_0x5586c5._0x39ea0d,0x53d,_0x5586c5._0x42a87f)][_0x35a64d(0x494,_0x5586c5._0x4838e4,_0x5586c5._0x1ccbca,0x4ec)]();},'status'(){function _0x5a9dda(_0x43d02e,_0x513ae3,_0x240cdb,_0x4ec1c1){return _0x561a(_0x4ec1c1- -0x5f,_0x43d02e);}return{'connectedClients':_0x29f99e[_0x5a9dda(0x2a9,0xfc,_0x1f2cfa._0x335d76,_0x1f2cfa._0x4d15a5)]['length']};}};}function createQuestionId(){const _0x9a7dc2={_0x14a772:0x53d,_0x573c5e:0x620,_0x16a2b5:0x741,_0x54cba7:0x16f,_0x2a45ab:0x5e2,_0x55ac79:0x67b,_0xba5a1f:0x463},_0x291f79={_0x3e3f03:0x113,_0x4ea547:0x563},_0x184d5d={_0x48d7b2:0xa1,_0x1da8af:0x3b5};function _0x39a963(_0x28ec32,_0x46e0bc,_0x3d1cb5,_0x1be18e){return _0x4aa629(_0x28ec32-0x1de,_0x46e0bc,_0x3d1cb5-_0x184d5d._0x48d7b2,_0x3d1cb5-_0x184d5d._0x1da8af);}function _0x524d98(_0x5a0c81,_0x238433,_0xf1f18,_0x2014e0){return _0x4aa629(_0x5a0c81-_0x291f79._0x3e3f03,_0x5a0c81,_0xf1f18-0x19e,_0xf1f18-_0x291f79._0x4ea547);}return'question-'+Date[_0x524d98(0x62d,_0x9a7dc2._0x14a772,_0x9a7dc2._0x573c5e,_0x9a7dc2._0x16a2b5)]()+'-'+Math[_0x39a963(_0x9a7dc2._0x54cba7,0x129,0x251,0x333)]()[_0x524d98(_0x9a7dc2._0x2a45ab,0x5cf,_0x9a7dc2._0x55ac79,0x795)](0x24)[_0x524d98(0x511,0x551,_0x9a7dc2._0xba5a1f,0x4c9)](0x2,0x9);}function validateInput(_0x330bfb){const _0x140c14={_0x4d4960:0xd2,_0x594ac8:0x209,_0x5f477a:0x6e3,_0x509a69:0x660,_0x4af163:0x531,_0x23cce1:0xe2,_0x528bbb:0x17,_0x2e93cd:0x114,_0x17d36d:0x14f,_0x12ba66:0x74b,_0x1ec573:0x54c,_0x2a610b:0x7c6,_0x567535:0x715,_0x4dbc7e:0x790,_0x517ab3:0x1a7,_0x31d367:0x140,_0x523299:0x657,_0xb2e46d:0x776,_0x2028b6:0x1aa,_0x5e648b:0x17e,_0x225147:0x21,_0x4a5c42:0x5b4,_0x39e47a:0x551,_0x5dfb0f:0x734,_0x14629d:0x71c,_0x40ace0:0x83b,_0x2e4ad9:0x707,_0x41a2db:0x566,_0x17f4ff:0x5aa,_0x2c6e49:0x4f6,_0x3cfd76:0x278,_0x17f036:0x2fe,_0x21976a:0x5bd,_0x4865d6:0x586,_0x5eaded:0x685,_0xe2ca7e:0x523,_0x15ab8c:0x548,_0x39a4a4:0x681,_0x2d4282:0x544,_0x269607:0x13d,_0x58f327:0x255,_0x31f302:0x5dd,_0x14dc45:0x2b7,_0x2275d1:0x19b,_0x12bde9:0x186,_0x6d4a83:0x586,_0x2af43f:0xc2,_0x441ad0:0x1fe,_0x13ee24:0x14c,_0x1abd72:0x5c,_0x15d8c7:0x15f,_0x1806d8:0xb5,_0x3520ce:0x1cb,_0xfe0a62:0x12d,_0x494174:0x15d,_0x2e4292:0xe2,_0x2829e1:0xb8,_0x314d37:0x179,_0x4204a5:0x183,_0x28c0a6:0x2aa,_0x4aa0cb:0xc2,_0x1cf96a:0x4c,_0x10943c:0x64a,_0x3e5802:0x75b,_0xa0ddca:0x176,_0x5ebb06:0x182,_0x3596f8:0x5b8,_0x234302:0x52f,_0x118cc4:0x27,_0x13e9f9:0x1ee,_0x1be158:0xb5,_0x44640c:0x20a},_0x1e24a6={_0x4f948c:0x197,_0x42e414:0x15c},_0x2b6ba5={_0x8bb306:0x2c3};function _0xeb84c8(_0x44f920,_0x49256b,_0x65c8b9,_0x26b56f){return _0x2f0acf(_0x49256b-_0x2b6ba5._0x8bb306,_0x49256b-0x1d7,_0x44f920,_0x26b56f-0x175);}function _0x34aa6b(_0x4a51b5,_0x19a228,_0x2a0253,_0x243d21){return _0x4aa629(_0x4a51b5-_0x1e24a6._0x4f948c,_0x19a228,_0x2a0253-0x173,_0x4a51b5-_0x1e24a6._0x42e414);}if(!Array[_0x34aa6b(0x1dd,0xb4,_0x140c14._0x4d4960,_0x140c14._0x594ac8)](_0x330bfb['questions'])||_0x330bfb[_0xeb84c8(_0x140c14._0x5f477a,0x65b,_0x140c14._0x509a69,_0x140c14._0x4af163)][_0x34aa6b(_0x140c14._0x23cce1,0x1a2,-_0x140c14._0x528bbb,0x1dc)]<0x1||_0x330bfb['questions'][_0x34aa6b(0xe2,_0x140c14._0x2e93cd,_0x140c14._0x17d36d,0x17d)]>0x4)throw new ToolExecutionError(_0xeb84c8(0x5d1,0x645,_0x140c14._0x12ba66,_0x140c14._0x1ec573),{'error':_0xeb84c8(_0x140c14._0x2a610b,_0x140c14._0x567535,0x74b,_0x140c14._0x4dbc7e)});for(let _0x2d18e4=0x0;_0x2d18e4<_0x330bfb[_0xeb84c8(0x640,0x65b,0x642,0x567)]['length'];_0x2d18e4+=0x1){const _0x1feec1=_0x330bfb['questions'][_0x2d18e4];if(!_0x1feec1[_0x34aa6b(_0x140c14._0x517ab3,_0x140c14._0x31d367,0x2aa,0x2ca)]||typeof _0x1feec1[_0xeb84c8(0x5f8,0x64b,_0x140c14._0x523299,_0x140c14._0xb2e46d)]!==_0x34aa6b(_0x140c14._0x2028b6,0x85,_0x140c14._0x5e648b,0x76))throw new ToolExecutionError(_0x34aa6b(0xc2,-0x69,-_0x140c14._0x225147,0x12b)+(_0x2d18e4+0x1)+_0xeb84c8(_0x140c14._0x4a5c42,0x4a4,0x421,_0x140c14._0x39e47a));if(!_0x1feec1['header']||typeof _0x1feec1[_0xeb84c8(_0x140c14._0x5dfb0f,_0x140c14._0x14629d,_0x140c14._0x40ace0,0x5eb)]!==_0xeb84c8(0x680,0x64e,_0x140c14._0x2e4ad9,0x514))throw new ToolExecutionError(_0xeb84c8(0x5d0,_0x140c14._0x41a2db,0x4b3,_0x140c14._0x17f4ff)+(_0x2d18e4+0x1)+_0xeb84c8(0x739,0x5fc,_0x140c14._0x2c6e49,0x508));if(_0x1feec1[_0x34aa6b(_0x140c14._0x3cfd76,0x20c,0x2af,_0x140c14._0x17f036)][_0xeb84c8(_0x140c14._0x21976a,_0x140c14._0x4865d6,_0x140c14._0x5eaded,0x562)]>0x14)throw new ToolExecutionError('Question\x20'+(_0x2d18e4+0x1)+':\x20\x22header\x22\x20must\x20be\x20max\x2020\x20characters,\x20got\x20'+_0x1feec1['header'][_0xeb84c8(_0x140c14._0xe2ca7e,0x586,0x62f,0x63a)]);if(!Array[_0xeb84c8(_0x140c14._0x15ab8c,_0x140c14._0x39a4a4,0x5a3,_0x140c14._0x2d4282)](_0x1feec1[_0x34aa6b(0x1cb,0x26c,_0x140c14._0x269607,_0x140c14._0x58f327)])||_0x1feec1['options'][_0xeb84c8(0x631,0x586,_0x140c14._0x31f302,0x488)]<0x2||_0x1feec1[_0x34aa6b(0x1cb,_0x140c14._0x14dc45,_0x140c14._0x2275d1,_0x140c14._0x12bde9)][_0xeb84c8(0x62b,_0x140c14._0x6d4a83,0x542,0x68f)]>0x4)throw new ToolExecutionError(_0x34aa6b(_0x140c14._0x2af43f,_0x140c14._0x441ad0,_0x140c14._0x13ee24,_0x140c14._0x1abd72)+(_0x2d18e4+0x1)+_0x34aa6b(_0x140c14._0x15d8c7,0x1b2,_0x140c14._0x1806d8,0x26c));for(let _0x2acdc9=0x0;_0x2acdc9<_0x1feec1[_0x34aa6b(_0x140c14._0x3520ce,_0x140c14._0xfe0a62,0x30b,_0x140c14._0x494174)][_0x34aa6b(_0x140c14._0x2e4292,_0x140c14._0x2829e1,0x148,_0x140c14._0x314d37)];_0x2acdc9+=0x1){const _0x782ca2=_0x1feec1[_0x34aa6b(0x1cb,0xe9,0xd6,_0x140c14._0x4204a5)][_0x2acdc9];if(!_0x782ca2[_0x34aa6b(0x212,0x272,_0x140c14._0x28c0a6,0x12f)]||!_0x782ca2['description'])throw new ToolExecutionError(_0x34aa6b(_0x140c14._0x4aa0cb,-0x73,0x17c,-_0x140c14._0x1cf96a)+(_0x2d18e4+0x1)+_0xeb84c8(0x6e0,_0x140c14._0x10943c,0x56b,_0x140c14._0x3e5802)+(_0x2acdc9+0x1)+_0x34aa6b(0xfd,_0x140c14._0xa0ddca,_0x140c14._0x5ebb06,0x1b8));}if(typeof _0x1feec1[_0xeb84c8(0x4ba,0x5cc,_0x140c14._0x3596f8,_0x140c14._0x234302)]!=='boolean')throw new ToolExecutionError(_0x34aa6b(0xc2,0x13f,_0x140c14._0x118cc4,0x190)+(_0x2d18e4+0x1)+_0x34aa6b(_0x140c14._0x13e9f9,0x12b,_0x140c14._0x1be158,_0x140c14._0x44640c));}}function buildQuestions(_0x4a64eb){const _0x54f9e9={_0x61bcb2:0x118};function _0x11d3fc(_0x194a8a,_0x44e4ae,_0x55cd96,_0x11b1e3){return _0x2f0acf(_0x55cd96- -0x3c3,_0x44e4ae-0x1f3,_0x194a8a,_0x11b1e3-0x91);}function _0x96e420(_0x1073ba,_0x1a7e9c,_0x4370e8,_0x3da87b){return _0x4aa629(_0x1073ba-_0x54f9e9._0x61bcb2,_0x1073ba,_0x4370e8-0xf9,_0x4370e8-0x50f);}return _0x4a64eb['questions']['map']((_0x22679b,_0x387a44)=>({'id':'q'+_0x387a44,'question':_0x22679b[_0x96e420(0x528,0x4eb,0x55a,0x47f)],'header':_0x22679b['header'],'options':_0x22679b[_0x11d3fc(0x5,0x30,-0x17,-0x81)],'multiSelect':_0x22679b['multiSelect']}));}function createResult(_0x4132c0,_0xccf3dc,_0x1b7a29){const _0x7c740e={_0x99e413:0x46d,_0x237760:0x575,_0x3123d7:0x4b5,_0x4228b0:0x529,_0x5a30ef:0x431,_0x53a9c2:0x37e},_0x418513={_0x44de79:0xa6},_0x31e8a4={_0x1cd644:0x1e0,_0x16040e:0xbc},_0x2e732b={'questionId':_0x4132c0,'questionCount':_0xccf3dc,'answers':_0x1b7a29};function _0x55cfdb(_0x226fe5,_0x577628,_0x7042e9,_0xe650c4){return _0x4aa629(_0x226fe5-_0x31e8a4._0x1cd644,_0x226fe5,_0x7042e9-_0x31e8a4._0x16040e,_0x7042e9-0x5d1);}function _0x12bdbf(_0x3b2165,_0x388a7e,_0x4d3169,_0x5dad12){return _0x4aa629(_0x3b2165-0x145,_0x4d3169,_0x4d3169-_0x418513._0x44de79,_0x388a7e-0x4a1);}return createToolOutput(_0x55cfdb(_0x7c740e._0x99e413,_0x7c740e._0x237760,_0x7c740e._0x3123d7,_0x7c740e._0x4228b0)+JSON[_0x12bdbf(_0x7c740e._0x5a30ef,0x468,0x3a5,_0x7c740e._0x53a9c2)](_0x1b7a29,null,0x2),_0x2e732b);}function createAskUserTool(){const _0x712520={_0x252a86:0x32e,_0x12c0d0:0x1b5,_0x58e873:0xec,_0x1c2af4:0x203,_0x1b6d05:0x170,_0x3588c5:0x13c,_0x112ed6:0x57,_0x1bae29:0x23,_0x54da63:0x13d,_0x7a958d:0xb2,_0x49ae61:0x181,_0x2aed7e:0x77,_0x1f93e1:0x1e9,_0x4947a9:0x12a,_0x213965:0x1c8,_0x231c58:0xd1,_0x21229e:0x9d,_0x563b62:0xba,_0x2c99aa:0x8d,_0xf225a4:0x102,_0x1af6bc:0x140,_0xd97b4f:0x7b,_0x506beb:0x1d5,_0x1db3d0:0x156,_0x225ae8:0x19d,_0x52ce9d:0x202,_0x1d5449:0xbd,_0x1bf1bc:0x3c,_0x3e4342:0xfe,_0x3cc58f:0x11c,_0x29a446:0x198,_0x231ca0:0x74},_0x46fe0e={_0x296a76:0x5f6,_0x42ab0e:0x581,_0x5229d8:0x684,_0xcf22cc:0x4cc,_0x4bc746:0x536,_0x2d6584:0x49d,_0x28c929:0x6b7,_0xc0cafc:0x4c4,_0x3ec666:0x460,_0x35e64b:0x340,_0x54c3f7:0x60b,_0x33ecd1:0x478,_0x386ede:0x482,_0x6d5be:0x425,_0x2ecda8:0x46a,_0x97d72f:0x572,_0x44e0d5:0x1be,_0x2558b5:0x133,_0xd63717:0x10a},_0x45f9cc={_0x50b2b8:0x61f,_0x581b5:0x99},_0x381607={_0x2b838c:0xe6,_0x3b8ff9:0x152},_0x170a9b={_0x3646e3:0x4c8,_0x26ff3b:0x1c4};function _0x4708d7(_0x386227,_0x253a59,_0x135fa6,_0x41938f){return _0x2f0acf(_0x386227- -_0x170a9b._0x3646e3,_0x253a59-0x34,_0x135fa6,_0x41938f-_0x170a9b._0x26ff3b);}function _0x28cb2a(_0x3450b5,_0x4a7d31,_0x285010,_0x18fad7){return _0x2f0acf(_0x3450b5- -0x445,_0x4a7d31-_0x381607._0x2b838c,_0x285010,_0x18fad7-_0x381607._0x3b8ff9);}return defineTool({'name':_0x28cb2a(-0x226,-_0x712520._0x252a86,-0x24b,-0x30c),'description':_0x28cb2a(-0x19c,-_0x712520._0x12c0d0,-_0x712520._0x58e873,-_0x712520._0x1c2af4),'inputSchema':{'type':_0x28cb2a(-0x145,-0x77,-_0x712520._0x1b6d05,-_0x712520._0x3588c5),'properties':{'questions':{'type':_0x28cb2a(-0xa7,-_0x712520._0x112ed6,-0x37,-_0x712520._0x1bae29),'items':{'type':'object','properties':{'question':{'type':_0x4708d7(-_0x712520._0x54da63,-_0x712520._0x7a958d,-_0x712520._0x49ae61,-_0x712520._0x2aed7e)},'header':{'type':_0x28cb2a(-0xba,-_0x712520._0x1f93e1,-0x49,-0x201)},'options':{'type':_0x4708d7(-_0x712520._0x4947a9,-0x7c,-0x1c,-0xac),'items':{'type':_0x4708d7(-_0x712520._0x213965,-_0x712520._0x231c58,-_0x712520._0x21229e,-0x2be),'properties':{'label':{'type':'string'},'description':{'type':_0x28cb2a(-_0x712520._0x563b62,-0x1f6,-_0x712520._0x2c99aa,-_0x712520._0xf225a4)}},'required':[_0x4708d7(-0xd5,-_0x712520._0x1af6bc,-_0x712520._0xd97b4f,-_0x712520._0x506beb),_0x28cb2a(-0x232,-0x127,-_0x712520._0x1db3d0,-_0x712520._0x225ae8)]}},'multiSelect':{'type':_0x4708d7(-0xe2,-_0x712520._0x52ce9d,-0x107,0x25)}},'required':[_0x28cb2a(-_0x712520._0x1d5449,-0x119,-0x146,_0x712520._0x1bf1bc),_0x28cb2a(0x14,_0x712520._0x3e4342,0x25,-0x91),_0x4708d7(-_0x712520._0x3cc58f,-0x20f,-0x112,-_0x712520._0x29a446),'multiSelect']}},'answers':{'type':'object','properties':{}}},'required':[_0x28cb2a(-0xad,_0x712520._0x231ca0,-0x184,0x3e)]},async *'execute'(_0x369896,_0x322b11){const _0x4238dd={_0x20a193:0x338},_0x1451dc=_0x369896;function _0x211894(_0x1b4524,_0x4658dc,_0x407744,_0x2b80c6){return _0x4708d7(_0x4658dc-_0x4238dd._0x20a193,_0x4658dc-0x159,_0x2b80c6,_0x2b80c6-0xd3);}validateInput(_0x1451dc);const _0x3db00b=_0x322b11['toolCallId']??createQuestionId();if(_0x1451dc[_0x46f999(_0x46fe0e._0x296a76,_0x46fe0e._0x42ab0e,_0x46fe0e._0x5229d8,_0x46fe0e._0x5229d8)]&&Object['keys'](_0x1451dc[_0x211894(0x1bf,0x217,0x139,0x172)])['length']>0x0)return createResult(_0x3db00b,_0x1451dc[_0x46f999(0x4cf,0x572,_0x46fe0e._0xcf22cc,_0x46fe0e._0x4bc746)][_0x46f999(0x38b,0x49d,0x45d,_0x46fe0e._0x2d6584)],_0x1451dc[_0x46f999(0x650,0x581,_0x46fe0e._0x28c929,_0x46fe0e._0xc0cafc)]);if(!_0x322b11[_0x46f999(_0x46fe0e._0x3ec666,0x453,0x434,_0x46fe0e._0x35e64b)])throw new ToolExecutionError(_0x46f999(0x64e,_0x46fe0e._0x54c3f7,0x5d0,0x55a));const _0x3113a0=buildQuestions(_0x1451dc),_0x2895a0=await _0x322b11[_0x46f999(_0x46fe0e._0x33ecd1,0x453,_0x46fe0e._0x386ede,_0x46fe0e._0x6d5be)]({'questionId':_0x3db00b,'questions':_0x3113a0});function _0x46f999(_0x2f886d,_0x420d1c,_0x574583,_0x20c6ee){return _0x28cb2a(_0x420d1c-_0x45f9cc._0x50b2b8,_0x420d1c-0xbf,_0x2f886d,_0x20c6ee-_0x45f9cc._0x581b5);}yield createResult(_0x3db00b,_0x1451dc[_0x46f999(_0x46fe0e._0x2ecda8,_0x46fe0e._0x97d72f,0x5f5,0x5f2)][_0x211894(_0x46fe0e._0x44e0d5,_0x46fe0e._0x2558b5,0xec,_0x46fe0e._0xd63717)],_0x2895a0);}});}import{spawn as _0x1744cf}from'child_process';import{statSync}from'fs';import*as _0xcb20a5 from'os';import*as _0x1d2251 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x5ea9dc from'path';function isPathInside(_0x37a11,_0x49f12d){const _0x501943={_0x5e4195:0xf5},_0x2d9546=_0x5ea9dc['resolve'](_0x37a11),_0x5e2dee=_0x5ea9dc['relative'](_0x2d9546,_0x49f12d);function _0xd98cb2(_0x23287f,_0x3237f5,_0x66e9cc,_0x5a32a6){return _0x2f0acf(_0x66e9cc-0xa0,_0x3237f5-0xf8,_0x5a32a6,_0x5a32a6-_0x501943._0x5e4195);}return _0x5e2dee===''||!_0x5e2dee[_0xd98cb2(0x325,0x475,0x3a6,0x3b5)]('..')&&!_0x5ea9dc['isAbsolute'](_0x5e2dee);}function resolveWorkspacePath(_0x29b193,_0xc46a63){return resolveAllowedPath(_0x29b193,[],_0xc46a63);}function _0x4008(){const _0x27acd4=['rMLSzsb3CML0DgvUigf0ia','CMvXDwLYzwq','Dgv4Dc9ODg1S','AxnjBNrLz2vY','zgf0zxrPBwu','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','lI4U','txvZDcbWCM92AwrLideTncbXDwvZDgLVBNm','yxnPzgu','AgfUzgXL','AhLKCMf0zu1LDge','zgLYBMfTzq','lcbpChrPB24G','CxvLC3rPB24','CgfJA2fNzu5HBwu','vw5HDxrOB3jPEMvKrxjYB3i','C3rYAw5N','B2C6DxbKyxrLzf90Aw1L','B25Jzq','y2XPzw50CW','DhLWzxnJCMLWDa','vg9KBYa','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','igj5DgvZicH0B3rHBdOG','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','zw52','C3rHDgu','Agv4','CxvLC3rPB25Z','tM8GC3vJAcbMAwXLoIaN','BgLUzq','yM9KEq','zgLZy292zxj5u3rHDgu','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','yxjYyxK','y2f0y2G','EwvZ','vMLLD2vKigLTywDLigzPBgu6ia','zgvMyxvSDa','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','qxzHAwXHyMXLignVBw1HBMrZoG','C3rHCNreAxi','CMfUz2u','yw5ZD2vYCW','CMvSyxrPDMu','yw50AhjVCgLJlw1LC3nHz2vZ','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','C3jJl3nOyxjLzc90ExbLCY50CW','B3b0Aw9UCW','DgL0Bgu','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','ChvIBgLZAgvKqxq','BgLZDfrVB2XZ','C3r5Bgu','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','BgLUzu51Bq','Dg9VBc1VDxrWDxqTB2zMBg9Hza','xg5DkJ8','zgvSAw1PDgvY','BwfYA2rVD24','mtG4nJi4m2vkBvftyq','zgvMAw5PDgLVBG','yNL0zuXLBMD0Aa','ig1HDgnO','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','Bwf0y2HLCW','AxnbCNjHEq','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','CxvLCNK','q29Tu3bLyW','ru5pru5u','DhvYBMrVD24','CMvZDwX0','y29UDgv4Da','DMvYAwzPzxi','mJm1ntfjuMHkr2e','C3rHCNq','yNvUlMXVy2TI','DxrTx2nVBNrLBNq','zhvWBgLJyxrLx3rVzg9FAwrZ','CgfJA2fNzxm','y29KzvzLCMLMAwvY','y29UzMLN','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','DxrTx3rLCM0','B2XKvgv4Da','C25PChbLDa','tuLnrtOG','tM8GCMvZDwX0CYbMB3vUzc4','zMLSDgvY','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','y29TBwfUzhm','Dhj1zq','tM8GBg9JyxrPB25ZigzVDw5K','BgLUzvn0yxj0','Ahr0CdO','igj5DgvZ','l3vZCI9IAw4VyMfZAa','y29UDgvUDa','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','l2jPBI9IyxnO','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','qwXSia','Cg5WBs1SB2nRlNLHBwW','yM9VBgvHBG','DxrTx3nVDxjJzq','zgLNzxn0','Dgv4DerVy3vTzw50l2rPzenSB3nL','C3vIyxjYyxK','B25szwrPCMvJDa','ls1ZDgrPBW','B3bLCMf0Aw9U','yNvUlMXVy2S','B3bLBKzPBgvZ','zw5HyMXLza','Aw52ywXPzf90B2rVx3bYAw9YAxr5','ls1NBg9IpseUz2L0lYO','BgfIzwW','mtjPvwnSB1i','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','yxjNCW','D2LUmZi','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','ls1YzwDLEha','BM93','lMXVzW','AgvHzgvYCW','Dgv4DerVy3vTzw50l2HVDMvY','ywjVCNq','v2fYBMLUzW','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','yMLYDgH0Aw1L','C2v0','Aw1Hz2vZ','l3vZCI9IAw4VCMC','vw50AxrSzwq','yxnZAwDU','DgLTzw91De1Z','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','tg9HzgvKigzYB206ia','ienHDxnLoIa','BMv3vgv4Da','vw5RBM93BIb0B29SoIa','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','B2zMC2v0','B3b0Aw9UywW','BNvTyMvY','C2vUzfjLCxvLC3q','zgf0yq','z29Vz2XLq3nLs2v5','DxbKyxrL','v2vIrMv0y2G','C3bSAxq','uKLgrG','zxH0zw5ZAw9UCW','qxnZAwDUvgfZAW','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','zMLUza','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','Aw5JBhvKzq','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','DhjHBNnWB3j0','zMXVB3i','Bg9HzfnRAwXS','BgLUzvrLEhq','yxv0BW','qwDLBNqGCNvUia','Dhj1BMm','CMLWz3jLCcbMywLSzwq6ia','ugfJA2fNzxm','Bwf4qNL0zxm','Ag92zxi','B3jPz2LUywW','Aw1WBgvTzw50yxrPB24','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','zw51Bq','D29YA3nWywnLl3n5BwjVBa','uhjVz3jHBuzPBgvZ','B2zM','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','AhrTBfnUAxbWzxq','CgfYC2vjBNq','CMvXDwvZDa','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','Aw5qCM9NCMvZCW','zxjYB3jnzxnZywDL','z2nSAwq','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','yM94zwq','ywXSB3DLzerPCNm','ignVBxbSzxrLzc4','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','BwvZC2fNzq','igj5DgvZks4','C2v0vg9KB3m','C29Tzq','D2HLCMuGCMC','yxv0Ag9YAxPHDgLVBL9JB2rL','A2v5CW','sgLUDa','CgXHAw50zxH0','z29uB0LTCgXLBwvUDgf0Aw9U','BgfUzW','C2vYDMvYswq','CM9VDa','oIbPBNzHBgLKihn0yxr1CW','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','BgLI','y3DK','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','y2XPzw50x3nLy3jLDf9WB3n0','DhLWzq','Aw52ywXPzf9XDwvZDgLVBNm','Aw5WDxq','yMLVBwu','Dg9tDhjPBMC','rgLHz25VC3rPyW','y29UDgv4DeXPBMS','l3vZCI9SB2nHBc9IAw4VCMC','AgvHzgvY','yMvHCMvY','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','C2vUze5VDgLMAwnHDgLVBG','BNbT','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','lMPZEa','Dg9ju09tDhjPBMC','tunqihnLCNzLCIa','zgLHz25VC3rPy3m','BgLTAxq','C2fMzq','zxH0BMfTzq','BhnWlxbYB3H5','Dg9VBfjLC3vSDhm','CMvWBgfJzq','AxngAwXL','CMfUzg9T','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','sw52ywXPzcbvuKWGCgfYyw1LDgvY','Aw52ywXPzf90B2rVx2LK','AwzYyw1L','CM91BMq','C29YDa','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','rMv0y2GGDgLTzwqGB3v0','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','y29UBMvJDgLVBG','z29uB0rLzMLUAxrPB24','y29UDgvUDhm','Aw1Hz2uVz2LM','C3rHDhvZvgv4Da','Ec1HCgKTA2v5','twLJCM9ZB2z0','Ahr0Ca','CgLK','Aw1Hz2uVCg5N','pc9ZExn0zw0TCMvTAw5Kzxi+','DhjPBq','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','phn5C3rLBs1Yzw1PBMrLCJ4','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','ChjPB3jPDhK','Dg9mB3DLCKnHC2u','ie9sia','BhnWu2vYDMLJzq','zxf1ywXZ','lMnTza','B3rOzxi','vMLLD0zPBgu','C2H1DgrVD24','Aw52ywXPzf90B2rVx3n0yxr1CW','u2HLBgWGBM90igzVDw5KoIa','v2LUr2v0','CMvNAw9U','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','ywDLBNrZ','zgvMyxvSDfrPBwvVDxrnCW','lNbUzW','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','Aw5PDgLHBgL6zwq','lMPWzwC','BNv2Aw4','zgLHz25VC3rPy3ngB3jgAwXL','otu3mdK0zfz2rhL6','DxjP','z2L0qNjHBMnO','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','ChjVCgvYDgLLCW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','DhLWzxnJCMLWDhjLywn0','Aw5PDgLHBgL6yxrPB24','zgvZy3jPChrPB24','BwvKAxvT','zgvUBY5QC29U','C2L6zq','B3bLBG','AMf2yxnJCMLWDa','qMfZAa','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','lMPZ','y29Uy2f0','C3LTBgLUAW','ChjVy2vZCW','qxnRvxnLCLrVB2W','CgfZC3DVCMq','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','zMjJBgLK','oIbPzcbYzxf1AxjLza','BxrPBwvnCW','A2v5yMLUzgLUz3m','lNrZ','CMvMzxjLBMnLCW','yw5ZAte2','CgfNzw1HCa','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','zgv0ywLS','Dg9KB3m','l3bPza','BwfW','C2v2zxjPDhK','C2vSzwn0Aw9UuMfUz2u','BgLNAhq','zgfYAW','Aw1Hz2uVANbLzW','ls1MAwXLCW','yxjNDw1LBNroyw1LCW','CgfJA2fNzs1SB2nRlMPZB24','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','zMfPBgvK','DMfSDwu','ihDHCYbHyM9YDgvKlG','Dg9Rzw5Z','ywXS','C2XPy2u','zNjVBq','r2XVyG','A2LSBa','zM9VDgvY','CgfYC2u','qMvHCMvYia','Aw5ZDhj1y3rPB25Z','C2HPzNq','C2LNBMfS','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','C3rKB3v0','ChjLzML4','Aw5FChjVz3jLC3m','zhj5uNvU','CMvHC29U','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','BxrPBwu','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','Ag9ZDa','z2XVyG','yxv0Aa','CgfZC3rOCM91z2G','yxr0CG','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','mJCYnZuWnvvIywPHva','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','w1bFxL1BxhnCu10QpW','ndK3ote3ognVqMDvCa','Aw52ywXPzf90B2rVCW','C2H1DgrVD25tDgfYDgvK','ygbGANnVBGO','zMLUzfjLzMvYzw5Jzxm','Dw5PB24','BgLUzxm','sw52B2TLq29TBwfUza','B3bLBMfPlxjLC3bVBNnLCY13CW','Dg90ywW','igzYB20G','ugf0AcbUB3qGzM91BMq6ia','CgLWzq','Bg9JyxrPB24','ovblq1jgEG','lu5Vtg9NBW','zxjYB3i','lMPWzW','CgXHDgzVCM0','BwnWxW','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','ChvZAa','BhnW','CMvZB2X2zq','CgfJA2fNzs5QC29U','rMv0y2GGywjVCNrLzcbIEsb1C2vY','CgfYzw50u2vZC2LVBKLK','AgfZ','yMfZzw5HBwu','tM8GC3LTyM9SCYbMB3vUza','B3v0z29PBMDdywXSCW','qMfZzsbKAxjLy3rVCNK6ia','yxnRvxnLCG','BgLZDgvU','y2fSBgjHy2TvCMW','nda4ndu0owXpDwndsW','zMLUywXnzxnZywDL','AMf2yxnJCMLWDhjLywn0','seLhsa','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','C2vHCMnOugfYyw1Z','B3v0Chv0','Dg9VBhm','DxrTx2nHBxbHAwDU','DxrMoa','zNvSzMLSBgvK','zgLYzwn0B3j5','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','lNrZEa','yMfZzty0','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','AxngAw5PDgu','Dg9Rzw5tDg9YywDLs2v5','cGOTls0kcG','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','v0vcua','B3jPz2LUvg9VBenHBgXjza','ywn0AxzL','z2v0u3rHDhm','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','rM91BMqG','D2fPDezVCKrPywDUB3n0AwnZ','tM8GzgLHz25VC3rPy3m','lMjPBG','y291BNq','DhnJB25MAwCUANnVBG','CMLWz3jLCa','y2XPzw50','vg9KB1DYAxrL','D2vI','Aw52ywXPzf90B2rVx2L0zw0','ywrKrxzLBNrmAxn0zw5LCG','C2nVCgvZ','uxvLC3rPB24G','y3jLyxrLzef0','l2jPBI9YzW','CMvTB3zLrxzLBNrmAxn0zw5LCG','CNvUBMLUzW','yxr4','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','zMvUy2vK','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','DhjHBNnMB3jTCW','yxbPs2v5','DgHLBG','B25oB3rPzMLJyxrPB24','DxjS','C3rKzxjY','zw50CMLLCW','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','DhnJ','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','tunqihrVB2WG','y2XLyw51Ca','z29Vz2XLlwnZzq','C2TPBgXZ','Cgf0DgvYBIbPCYbYzxf1AxjLza','Cg9W','Ahr0Chm6','Dg9VBhmVy2fSBa','Aw5JBhvKzxm','y2fUy2vS','zg9JDw1LBNrtEw1IB2W','yM0Ynq','cGPbuKDvtuvovfm6ia','BgvUz3rO','ywDLBNrjza','EwfYBI5SB2nR','C3bHD25PBMC','DhnZzxj2zxiUANm','ls1JB2X1Bw4','AM9PBG','u3rHCNrLzcbHz2vUDcbYDw4G','D3jPDgu','zMLSzvbHDgG','DgvZDa','B2f1DgG','CgXHAw4','zgLZCg9Zzq','y29UDgvUDc10ExbL','zxHPDa','Bg9JywXLq29TCgfYzq','y2XLyxi','Dgv4Da','Aw1Hz2uVD2vICa','l29WDc9OB21LyNjLDY9IAw4VCMC','Bwf4','D29YA3nWywnLu3LTyM9S','Dg9KB3ncEvnLC3nPB24','BM90Awz5','Bg9HzenVBw1HBMq','ywjVCNrLza','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','BwLU','ywrK','zMLSzq','yxjNDw1LBNrZ','ls1NBg9I','rgv0ywLSoIa','y2XPzw50twv0ywrHDgfvCMW','C2HHmJu2','BgL0zxjHBa','AxrLBxm','y2HHBMDL','Cgf0Aa','tuvesvvn','oIbPBNzHBgLKihbYAw9YAxr5','zNvUy3rPB24','BgLUzuvUza','yMLUyxj5tMfTzq','z2v0vg9KB3m','Aw1Hz2u','yxjNDw1LBNrZvgv4Da','Dg91y2HgAwXL','AxndB250zxH0','ANnJB25MAwCUANnVBG','Aw5ZDgfSBa','Aw52ywXPzf90B2rVx2nVBNrLBNq','Dg9VBa','Aw5PDgLHBgL6zq','ywXSu2v0DgXLza','y2fSBeLK','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqP','y2XVC2u','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','zg9TywLUCW','B2jQzwn0','DgHPBMTPBMC','C3rYAxbbBNnP','BgfUz3vHz2u','C3rYAw5NAwz5','r0LgodDH','C3rHCNrZv2L0Aa','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','BxvSDgLtzwXLy3q','lNDLyNa','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','yxjNDw1LBNriAw50','AxnfBMfIBgvK','lM10CW','A2LUza','zMLSzvzLCNnPB25Z','C2vYDMvY','ANnVBG','Dhj1zwnVBg9Y','z2v0','C2HLBgXqyxrO','y2HHCKnVzgvbDa','lMPZB24','zgLZywjSzwq','AxneAxjLy3rVCNK','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','CMvJB3jK','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','yNjVA2vU','mc4WlJa','DhvWBgu','ls1OAwrKzw4','lNrTCc4','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFs0vz','tgLUzsa','CNvUswq','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','zgLZy292zxj5','y29TCgXLDgvK','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','zgvSzxrL','BwnFzwLK','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','BwvTB3j5','AxntEw1IB2XPy0XPBMS','CMCUzxHL','ChjVDg9JB2W','y2HHCMfJDgvY','yxnJAwK','C3rVCMfNzurPCG','C3jJl2v4yw1WBgvZl2rLBw8UDhm','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','C2vUza','Dg9VBenHBgXjza','AwDUB3jL','oIaIAgvHzgvYiIbMAwvSzcbPCYbYzxf1AxjLzcbHBMqGBxvZDcbIzsbHihn0CMLUzW','ChjLCgfYzunHBgXiAwvYyxjJAhK','igj5DgvZicHVCMLNAw5HBdOG','C3jJl2fNzw50l2fNzw50lNrZ','Dg9Rzw4','Dg9vChbLCKnHC2u','Bwv0yq','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','l2jPBI9ZAa','DgLTzvTKyxrLDgLTzv0','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','ig1Z','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','y29UBMvJDa','y2XPzw50sw5MB3jTyxrPB24','tM8GAg92zxiGAw5MB3jTyxrPB24','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','Cgf0DgvYBG','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','BMfTzq','lMDPzG','thnW','sw5MB3jTyxrPB24','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','y2vPBa','DxrTx21LzgL1Bq','mtCYmtG4ntzfzhbNu0O','C3bHD24','C2vZC2LVBKLK','C2vYDMvYtMfTzq','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','zMLSztOVlW','C3rHDhvZ','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','yxbWBgLJyxrPB24VANnVBG','y3jSzG','y29Kzq','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','BgfUz18','C2vZC2LVBG','yxv0AfjLCxvPCMvK','r3jLCa','AgfZq2XPzw50CW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','BM9Zy3jPChq','Dw5RBM93BG','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','BM9Kzv9TB2r1BgvZ','DgfZAW','CgvUzgLUzW','C291CMnL','Bg93','te9x','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','BgLUAW','zMXHDe1HCa','CMfUAW','te9dquXbufbeqvrb','DgfZA2TPBgW','CMvJzw5JEurHExm','zgvMyxvSDen3za','y29TBwfUza','y29UBMvJDgvK','rMLSzuvKAxq','Aw5JB21PBMDdywXSCW','ls1MB2XSB3C'];_0x4008=function(){return _0x27acd4;};return _0x4008();}function resolveAllowedPath(_0x10755b,_0xc3c80d,_0x22b1f5){const _0x45f0bc={_0x5f5b9a:0x81,_0xe211d9:0x8c,_0x1e0311:0x60,_0x571dc1:0xaa,_0x32c502:0x168,_0x3e6ae9:0xf5,_0x51a601:0x60,_0x4814b1:0xcf,_0x3a5068:0x1d1,_0x530b43:0x1fe,_0x5964c6:0xda,_0x2fe64f:0x88},_0x599b9d={_0x551e66:0x39},_0x5bbb74={_0x8378af:0x1c3,_0x1ba5f5:0xb6},_0x417676=_0x5ea9dc[_0x5405ec(_0x45f0bc._0x5f5b9a,-_0x45f0bc._0xe211d9,-_0x45f0bc._0x1e0311,-_0x45f0bc._0x571dc1)](_0x10755b),_0x11ff6c=_0x5ea9dc[_0x5405ec(-_0x45f0bc._0x32c502,-_0x45f0bc._0x3e6ae9,-_0x45f0bc._0x51a601,-_0x45f0bc._0x4814b1)](_0x417676,_0x22b1f5),_0x289972=[_0x417676,..._0xc3c80d['map'](_0x1f59d1=>_0x5ea9dc[_0x5405ec(0x19,0xd,-0x60,-0x12b)](_0x1f59d1))];function _0x46c647(_0x386211,_0x1a8438,_0x5ca459,_0x1efd6c){return _0x4aa629(_0x386211-0x13a,_0x5ca459,_0x5ca459-_0x5bbb74._0x8378af,_0x386211-_0x5bbb74._0x1ba5f5);}if(_0x289972[_0x46c647(0x1ba,0x106,_0x45f0bc._0x3a5068,0x1ca)](_0x4c4292=>isPathInside(_0x4c4292,_0x11ff6c)))return _0x11ff6c;function _0x5405ec(_0x1d759b,_0x312711,_0x2e2da9,_0x13c4ec){return _0x2f0acf(_0x2e2da9- -0x2d0,_0x312711-_0x599b9d._0x551e66,_0x13c4ec,_0x13c4ec-0x12f);}throw new ToolExecutionError(_0x5405ec(0x67,_0x45f0bc._0x530b43,_0x45f0bc._0x5964c6,_0x45f0bc._0x2fe64f)+_0x22b1f5,{'path':_0x22b1f5,'rootDir':_0x417676,'allowedDirs':_0x289972});}async function assertWorkspaceFile(_0x2c0f14){const _0x400581=await stat(_0x2c0f14);if(!_0x400581['isFile']())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x2c0f14,{'path':_0x2c0f14});}function isProbablyBinary(_0x38db4f){return _0x38db4f['includes'](0x0);}var DEFAULT_DESCRIPTION=_0x4aa629(0xd1,0x12c,-0x88,0xc),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x15b125){return _0x15b125 instanceof Error;}function shellExists(_0x32f772){const _0x593b48={_0x2d2c5b:0x307,_0x4beba1:0x3f1},_0x12cb9b={_0x2e9b07:0x107,_0x2ac21c:0xad,_0x5ee842:0x5};function _0x50819a(_0x1590ed,_0xbaa23b,_0x486e68,_0x47c182){return _0x2f0acf(_0x1590ed-_0x12cb9b._0x2e9b07,_0xbaa23b-_0x12cb9b._0x2ac21c,_0x486e68,_0x47c182-_0x12cb9b._0x5ee842);}try{const _0x5d3bf8=statSync(_0x32f772);return _0x5d3bf8[_0x50819a(0x2df,_0x593b48._0x2d2c5b,0x2e8,_0x593b48._0x4beba1)]()&&(_0x5d3bf8['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x1d3ad4){const _0x2972d3={_0x345086:0x41b,_0x26e60a:0x32b,_0x5b3676:0x3ee,_0x215b1a:0x565,_0xda7136:0x548,_0x168011:0x568,_0x41246b:0x4f1,_0xa4fe25:0x4fc,_0x243670:0x35f,_0x4c7d98:0x5de,_0x2e969d:0x3ed,_0x18de48:0x5ef,_0xe2936b:0x5fd,_0x20d704:0x599,_0x7f5a34:0x456,_0x4d82c2:0x3d1,_0x3205bc:0x561,_0x50254f:0x41c,_0x2e9436:0x40d,_0x5c06ad:0x550,_0x5e6ffd:0x59a,_0x41fd37:0x4a2,_0x5b484e:0x3a1},_0x203462={_0x17f10e:0xe8},_0x3dd2cf={_0x1dd3db:0x13c,_0x1099fe:0xc7};if(_0x1d3ad4)return _0x1d3ad4;if(_0xcb20a5[_0x3317c1(_0x2972d3._0x345086,0x3fc,_0x2972d3._0x26e60a,_0x2972d3._0x5b3676)]()===_0x28e3a3(_0x2972d3._0x215b1a,_0x2972d3._0xda7136,_0x2972d3._0x168011,_0x2972d3._0x41246b))return process[_0x3317c1(_0x2972d3._0xa4fe25,0x471,0x455,_0x2972d3._0x243670)][_0x28e3a3(_0x2972d3._0x4c7d98,_0x2972d3._0x2e969d,0x532,_0x2972d3._0x18de48)]||'cmd.exe';const _0x3897bb=[_0x28e3a3(_0x2972d3._0xe2936b,0x585,0x553,_0x2972d3._0x20d704),_0x28e3a3(_0x2972d3._0x7f5a34,_0x2972d3._0x4d82c2,0x4b2,_0x2972d3._0x3205bc),_0x28e3a3(_0x2972d3._0x50254f,_0x2972d3._0x2e9436,_0x2972d3._0x5c06ad,0x56f),'/usr/bin/sh'];function _0x3317c1(_0xdf0fe6,_0x1dfcb1,_0x463c3d,_0x44ae62){return _0x2f0acf(_0x463c3d-0xc0,_0x1dfcb1-_0x3dd2cf._0x1dd3db,_0x1dfcb1,_0x44ae62-_0x3dd2cf._0x1099fe);}for(const _0x129345 of _0x3897bb){if(shellExists(_0x129345))return _0x129345;}const _0x38b1ba=process['env']['SHELL'];function _0x28e3a3(_0xa42635,_0x4d13e2,_0x9e8d50,_0x30289e){return _0x2f0acf(_0x9e8d50-0x171,_0x4d13e2-0x31,_0x30289e,_0x30289e-_0x203462._0x17f10e);}if(_0x38b1ba&&shellExists(_0x38b1ba))return _0x38b1ba;return _0x3317c1(_0x2972d3._0x5e6ffd,0x4e3,_0x2972d3._0x41fd37,_0x2972d3._0x5b484e);}function buildShellArgs(_0x42385d,_0x93d75f){const _0x5e0a8b={_0x2cd558:0x285,_0x2823f1:0x148,_0x40b5b9:0x22a,_0x40f41e:0x297,_0x358e37:0x2c7},_0x35eece={_0x17b04f:0x492,_0x15a54b:0x1d3},_0xdb27dd={_0x457d97:0x1df,_0x23b9f7:0x12,_0x3f64b6:0x3dc};function _0x55356b(_0x4b981c,_0x45f501,_0xd4c1c2,_0x83d8cc){return _0x4aa629(_0x4b981c-_0xdb27dd._0x457d97,_0x4b981c,_0xd4c1c2-_0xdb27dd._0x23b9f7,_0x83d8cc-_0xdb27dd._0x3f64b6);}if(_0xcb20a5['platform']()==='win32'){const _0x23b8eb=/cmd(\.exe)?$/i[_0xf50156(-0x1c5,-_0x5e0a8b._0x2cd558,-_0x5e0a8b._0x2823f1,-0xea)](_0x93d75f);return _0x23b8eb?['/d','/s','/c',_0x42385d]:[_0xf50156(-_0x5e0a8b._0x40b5b9,-_0x5e0a8b._0x40f41e,-0x179,-_0x5e0a8b._0x358e37),'-NoProfile','-Command',_0x42385d];}function _0xf50156(_0x1f8dfe,_0x1f0251,_0x1e7b89,_0x3cdefe){return _0x2f0acf(_0x1f8dfe- -_0x35eece._0x17b04f,_0x1f0251-_0x35eece._0x15a54b,_0x1e7b89,_0x3cdefe-0x169);}return['-c',_0x42385d];}function resolveCarriageReturns(_0x50dffd){const _0x2b7cf5={_0x4cfe0c:0x53f,_0x18ddf2:0x5d7,_0x79fb92:0x37c,_0x245405:0x445,_0xa48ed4:0x3c9},_0x373fa0={_0x1f477d:0x3cf,_0x10c624:0x39d},_0x3a8b01={_0x5e86c9:0x166,_0x5de10b:0x2b3,_0x4ab107:0x1a1},_0x40a6d9={_0x96b14a:0x1da},_0x236162={_0x24dfc7:0x24,_0x39132c:0x197,_0x568c85:0x23f};function _0x4c0446(_0x1dd2fd,_0x24b9cd,_0x4e1a6a,_0x1e71e5){return _0x4aa629(_0x1dd2fd-_0x236162._0x24dfc7,_0x4e1a6a,_0x4e1a6a-_0x236162._0x39132c,_0x1dd2fd-_0x236162._0x568c85);}function _0x20a844(_0xae7a93,_0x405d15,_0x246d20,_0x4b3f9d){return _0x4aa629(_0xae7a93-0x160,_0x4b3f9d,_0x246d20-_0x40a6d9._0x96b14a,_0x405d15-0x4fe);}return _0x50dffd[_0x20a844(_0x2b7cf5._0x4cfe0c,_0x2b7cf5._0x18ddf2,0x5b3,0x55a)]('\x0a')['map'](_0x1f1fda=>{if(!_0x1f1fda['includes']('\x0d'))return _0x1f1fda;const _0x23560e=_0x1f1fda[_0x2695c(0x324,_0x373fa0._0x1f477d,_0x373fa0._0x10c624,0x463)]('\x0d');function _0x2695c(_0x8c9e38,_0x1c3844,_0x2adfb9,_0xfc2d74){return _0x20a844(_0x8c9e38-_0x3a8b01._0x5e86c9,_0x8c9e38- -_0x3a8b01._0x5de10b,_0x2adfb9-_0x3a8b01._0x4ab107,_0xfc2d74);}return _0x23560e[_0x23560e['length']-0x1]??'';})[_0x20a844(_0x2b7cf5._0x79fb92,0x48a,_0x2b7cf5._0x245405,_0x2b7cf5._0xa48ed4)]('\x0a');}function resolveBackspaces(_0x3811a2){const _0x5a7172={_0x447340:0x51d,_0x2fb351:0x37b,_0x7b39d9:0x348,_0x3263b4:0x337,_0x47c6c7:0x480},_0x4970ec={_0x455626:0x7b},_0x111f05={_0x1fd799:0x203,_0x224c63:0x9c};function _0x47cfea(_0xb2ce5,_0x134cb9,_0x2fc27f,_0xf144cf){return _0x2f0acf(_0xf144cf- -_0x111f05._0x1fd799,_0x134cb9-0x25,_0x2fc27f,_0xf144cf-_0x111f05._0x224c63);}const _0x5bb776=[];for(const _0x55cd5f of Array['from'](_0x3811a2)){_0x55cd5f==='\x08'?_0x5bb776[_0x4c962c(_0x5a7172._0x447340,0x472,0x4ac,_0x5a7172._0x2fb351)]():_0x5bb776[_0x4c962c(_0x5a7172._0x7b39d9,0x425,_0x5a7172._0x3263b4,0x490)](_0x55cd5f);}function _0x4c962c(_0x39032f,_0x5dd4be,_0x350ac8,_0x3f3aa1){return _0x4aa629(_0x39032f-0xcb,_0x3f3aa1,_0x350ac8-_0x4970ec._0x455626,_0x5dd4be-0x4f4);}return _0x5bb776[_0x4c962c(0x3eb,_0x5a7172._0x47c6c7,0x530,0x33e)]('');}function stripAnsiAndControls(_0x21801f){const _0x4420c6={_0x558600:0x599,_0xaa5135:0x590,_0x2c9c64:0x37e,_0x376ff4:0x1c9,_0x2763a4:0x194,_0x3fdfc9:0x3f8,_0x3a32d2:0x462,_0x5e6318:0x4f2,_0x1ca097:0x92,_0x130c61:0x4b,_0x212f5b:0x16f,_0x474f05:0xc3,_0x52cab2:0xd8,_0x50f2c6:0x567,_0xd0e028:0x512,_0x1f4549:0x579,_0x4b0ef5:0x4f6,_0x8da365:0x455,_0x56338e:0x441,_0x334651:0x56a,_0x4b015d:0x33f},_0x28f9bc={_0x16335f:0x145,_0x190654:0xce},_0x27177f={_0x2bb2d5:0x75,_0x6d126e:0x5bb};function _0x6f225a(_0x1467fd,_0x2da729,_0x4fdc58,_0x59bdb0){return _0x4aa629(_0x1467fd-_0x27177f._0x2bb2d5,_0x59bdb0,_0x4fdc58-0x106,_0x2da729-_0x27177f._0x6d126e);}_0x21801f=resolveCarriageReturns(_0x21801f),_0x21801f=resolveBackspaces(_0x21801f),_0x21801f=stripVTControlCharacters(_0x21801f);const _0xa79c0d='\x1b',_0x4f5287='\x07';_0x21801f=_0x21801f[_0x6f225a(_0x4420c6._0x558600,0x455,_0x4420c6._0xaa5135,_0x4420c6._0x2c9c64)](new RegExp(';[^'+_0x4f5287+_0x16ce46(0x270,_0x4420c6._0x376ff4,0x161,_0x4420c6._0x2763a4)+_0x4f5287,'g'),''),_0x21801f=_0x21801f[_0x6f225a(_0x4420c6._0x3fdfc9,0x455,_0x4420c6._0x3a32d2,_0x4420c6._0x5e6318)](new RegExp(';[^\x5cn]*?'+_0xa79c0d+'\x5c\x5c','g'),''),_0x21801f=_0x21801f[_0x16ce46(_0x4420c6._0x1ca097,0x35,_0x4420c6._0x130c61,_0x4420c6._0x212f5b)](new RegExp(_0x4f5287,'g'),''),_0x21801f=_0x21801f[_0x16ce46(0x92,_0x4420c6._0x474f05,0x59,_0x4420c6._0x52cab2)](new RegExp(_0xa79c0d+_0x6f225a(_0x4420c6._0x50f2c6,0x4d6,_0x4420c6._0xd0e028,_0x4420c6._0x1f4549)+_0xa79c0d+'\x5c\x5c','g'),''),_0x21801f=_0x21801f[_0x6f225a(_0x4420c6._0x4b0ef5,_0x4420c6._0x8da365,0x43e,0x3f9)](new RegExp(_0xa79c0d+'[=>7-8()]','g'),''),_0x21801f=_0x21801f[_0x6f225a(_0x4420c6._0x56338e,0x455,_0x4420c6._0x334651,_0x4420c6._0x4b015d)](/[\u0080-\u009F]/g,''),_0x21801f=_0x21801f['replace'](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,'');function _0x16ce46(_0x2553e9,_0x2f11ec,_0x42223c,_0x1c6ffe){return _0x2f0acf(_0x2553e9- -_0x28f9bc._0x16335f,_0x2f11ec-_0x28f9bc._0x190654,_0x1c6ffe,_0x1c6ffe-0x106);}return _0x21801f=_0x21801f[_0x16ce46(0x92,0x152,0x174,0x25)](/[\u23CE\u2424]/g,''),_0x21801f;}function resolveWorkingDirectory(_0x4a7f1f,_0x5c534d,_0x3e68e0){const _0x4cd6b1={_0x2436ee:0x385,_0x4c5569:0x3fa},_0x5351ae={_0x1469d8:0x7f,_0x9c8d59:0x40},_0x2a4715=resolveAllowedPath(_0x5c534d,_0x3e68e0,_0x4a7f1f??'.');function _0x4c8574(_0x80f3b1,_0x54a82a,_0x3b3d3a,_0x5299a9){return _0x2f0acf(_0x5299a9-0x10a,_0x54a82a-0xac,_0x3b3d3a,_0x5299a9-0x51);}function _0x10b565(_0x57c3e6,_0x5eb708,_0x323399,_0x39b8d4){return _0x2f0acf(_0x323399-0x12f,_0x5eb708-_0x5351ae._0x1469d8,_0x39b8d4,_0x39b8d4-_0x5351ae._0x9c8d59);}try{const _0x387d5f=statSync(_0x2a4715);if(!_0x387d5f[_0x10b565(0x4d9,0x541,0x448,_0x4cd6b1._0x2436ee)]())throw new ToolExecutionError(_0x10b565(0x2a8,0x425,0x31f,_0x4cd6b1._0x4c5569)+_0x2a4715,{'cwd':_0x2a4715});return _0x2a4715;}catch(_0x7d4723){if(_0x7d4723 instanceof ToolExecutionError)throw _0x7d4723;throw new ToolExecutionError('Working\x20directory\x20not\x20found:\x20'+_0x2a4715,{'cwd':_0x2a4715});}}function killProcessGroup(_0x45ac97,_0x380d8e,_0x3a3685='SIGKILL'){const _0x202af5={_0xaa3e31:0x2dd,_0x2412e3:0x381,_0x2e0d5c:0x195,_0x5b4478:0x380,_0x5ec2cc:0x464,_0x1bbb05:0x581,_0xc177db:0x329,_0x5e76ef:0x369,_0x255d80:0x400,_0x496568:0x40b,_0x542f10:0x5d,_0x4f11fd:0x133,_0x4e3446:0x388,_0x4eedf5:0x20c,_0x21e01f:0x2f5,_0x1527d3:0xff},_0x2cf2ce={_0x57d6d6:0x8a,_0x1cf28c:0x11c};function _0x32c9c8(_0x4d5025,_0x35d9da,_0x4f6b4d,_0x4aa1bc){return _0x2f0acf(_0x35d9da- -0x3f8,_0x35d9da-0x64,_0x4d5025,_0x4aa1bc-0x12);}function _0x2b3f4d(_0x295a2f,_0x3c8350,_0x4c0b21,_0x440dec){return _0x4aa629(_0x295a2f-_0x2cf2ce._0x57d6d6,_0x440dec,_0x4c0b21-_0x2cf2ce._0x1cf28c,_0x295a2f-0x42e);}if(!_0x45ac97[_0x2b3f4d(_0x202af5._0xaa3e31,_0x202af5._0x2412e3,_0x202af5._0x2e0d5c,_0x202af5._0x5b4478)])return;if(_0x380d8e)try{_0x1744cf(_0x2b3f4d(_0x202af5._0x5ec2cc,_0x202af5._0x1bbb05,_0x202af5._0xc177db,0x320),[_0x2b3f4d(0x31e,_0x202af5._0x5e76ef,0x3df,0x41d),_0x45ac97[_0x2b3f4d(0x2dd,_0x202af5._0x255d80,_0x202af5._0x496568,0x2e4)][_0x32c9c8(-0x24,_0x202af5._0x542f10,0x27,_0x202af5._0x4f11fd)](),'/T','/F'],{'stdio':_0x2b3f4d(0x429,0x30e,_0x202af5._0x4e3446,0x503)});return;}catch{_0x45ac97['kill'](_0x3a3685);return;}try{process['kill'](-_0x45ac97[_0x32c9c8(-0x125,-_0x202af5._0x4eedf5,-_0x202af5._0x21e01f,-0x168)],_0x3a3685);}catch{_0x45ac97[_0x32c9c8(-0x174,-0x1b8,-0x101,-_0x202af5._0x1527d3)](_0x3a3685);}}function appendChunk(_0x51130e,_0x23f32f,_0x5cb907,_0x37cce5,_0x1c973b){const _0x5599a9={_0x25512f:0x1fe,_0x2e0d41:0x1b6,_0x550e76:0x37,_0x417009:0x36},_0x5256b9={_0x443287:0x44d,_0x3b8caa:0x184},_0x1bfaf0={_0x5a510c:0x2a5,_0x2e98f4:0xdd},_0x4a2c5e=_0x37cce5?stripAnsiAndControls(_0x5cb907):_0x5cb907;if(_0x4a2c5e[_0x4fc49d(-_0x5599a9._0x25512f,-0xb3,-_0x5599a9._0x2e0d41,-0x18a)]===0x0)return;function _0x5b8975(_0x1c0584,_0x439e5f,_0x18c943,_0x15888a){return _0x2f0acf(_0x1c0584- -_0x1bfaf0._0x5a510c,_0x439e5f-0xf8,_0x15888a,_0x15888a-_0x1bfaf0._0x2e98f4);}_0x51130e['push'](_0x4a2c5e);function _0x4fc49d(_0x59277a,_0x23ffb0,_0x453da4,_0x2eb30f){return _0x2f0acf(_0x2eb30f- -_0x5256b9._0x443287,_0x23ffb0-_0x5256b9._0x3b8caa,_0x59277a,_0x2eb30f-0x12e);}_0x23f32f[_0x5b8975(-_0x5599a9._0x550e76,0xc0,-_0x5599a9._0x417009,-0x145)](_0x4a2c5e),_0x1c973b();}function createBashTool(_0x1fb303={}){const _0x1e6e72={_0x402c9a:0x70b,_0x51b590:0x6d3,_0x2ba574:0x63a,_0x9ba532:0x491,_0x172c64:0x39f,_0x25105b:0x275,_0x9684d2:0x3cb,_0x4f4132:0x446,_0x592b77:0x386,_0x488cc1:0x2ab,_0x4ac024:0x581,_0xea216e:0x5d1,_0x33898a:0x21a,_0x1c1224:0x2e2,_0x2c98e3:0x2dc,_0xc0b7b1:0x3b8,_0xe7eccc:0x3e6,_0x10306e:0x454,_0xf62dc2:0x4bf,_0x47dd5e:0x380,_0xf5aa96:0x4d9,_0x5c101c:0x5e7,_0x4aa0ad:0x4ae,_0xd5a52e:0x475,_0x487316:0x594,_0x5e56e1:0x67a,_0x3a1a6e:0x66b,_0x5483c0:0x6c6,_0x3bd405:0x5fb,_0x18652c:0x626},_0xf9956={_0x3e0841:0xe,_0x9c9e75:0x2b2,_0x442b6e:0x16b,_0x80693b:0x24,_0x2e48cc:0x154,_0x24da73:0x11a,_0x5dabd9:0x1ee,_0xdb98a6:0xb4,_0x1101eb:0x8f,_0x2a7f34:0x1bd,_0x572979:0x6f,_0x4bb3d9:0x2f,_0x5eaa0d:0xa1,_0x39c9f9:0x209,_0xd892d4:0x5b,_0x4769c8:0x12f,_0x22e382:0x9d,_0x47a078:0xe6,_0x17dabc:0x15,_0xe1728b:0x18c,_0x36a29a:0xd4,_0x27d844:0x205,_0x1df643:0x2a9,_0x59c151:0x16c,_0x3b331e:0x7d,_0x376036:0xe1,_0x23f64a:0x129,_0xcf3c30:0x73,_0x5054eb:0xf1,_0x40433b:0x3d,_0x3c873f:0x267,_0x4a5396:0x278,_0x3b41a7:0x2eb,_0x2fab66:0xb4,_0x43805e:0x32,_0x5c600f:0x329,_0x5c8bb8:0x3bb,_0xa5eb3b:0x2d0,_0x2e2b30:0x1c5,_0x4b11d8:0x13b,_0x3e44ec:0xb2,_0x5ae44d:0x16a,_0x1cbe54:0xd2,_0x468722:0x3c,_0x327dc1:0x9a,_0x3adb69:0x6e,_0x3db994:0x7f,_0x13fb95:0x78,_0x17916a:0x135,_0x263757:0x1d1,_0x1277a8:0x70,_0x35de81:0xd7,_0x232346:0x155,_0x439891:0x81,_0x262825:0x136,_0x31cb6d:0x21,_0x1a9c20:0xd1,_0x564995:0xfc,_0x2bd634:0xb0,_0x152fce:0x149,_0x5c0014:0x101,_0x2a4e9c:0x1d1,_0x2624a2:0x154,_0x25f0d1:0x213,_0x4dbcc8:0x322,_0x4edf21:0x127,_0x47c9b8:0x4b,_0x400f5d:0x185,_0x4ae788:0x259,_0x28501b:0x165,_0x34b102:0x6a,_0x34cd9a:0x4d,_0x1fccda:0x5f,_0x382b73:0x78},_0x5a1232={_0x4f1faf:0xfb},_0x2e56ba={_0x3e83df:0x17f},_0x2fbefd={_0x390ddb:0x488,_0x14daa1:0x378},_0x5d5c8e={_0x171b6f:0x257,_0x22e26b:0x20e},_0x53b945={_0x268476:0x3cf},_0x501510={_0xd28560:0x1b8,_0x1ee923:0x406},_0x5e36b6={_0x4b44cc:0x158,_0x58e223:0x189},_0x60cbfc=_0x1d2251[_0x547264(0x339,0x305,0x297,0x289)](_0x1fb303['defaultCwd']??process[_0x1df9f1(_0x1e6e72._0x402c9a,0x6a0,_0x1e6e72._0x51b590,0x7d1)]()),_0x74039c=(_0x1fb303[_0x1df9f1(0x5ac,_0x1e6e72._0x2ba574,0x6c0,0x61f)]??[])[_0x1df9f1(_0x1e6e72._0x9ba532,0x3b3,0x4b3,_0x1e6e72._0x172c64)](_0x1bc6a6=>_0x1d2251[_0x1df9f1(0x3df,0x556,0x4f5,0x52e)](_0x1bc6a6)),_0x7e8d85=_0x1fb303[_0x547264(0x2cd,0x1a2,_0x1e6e72._0x25105b,0x208)]??DEFAULT_TIMEOUT_MS;function _0x1df9f1(_0x3ea4bd,_0x3a9222,_0xf2f817,_0xdc7c71){return _0x4aa629(_0x3ea4bd-_0x5e36b6._0x4b44cc,_0x3ea4bd,_0xf2f817-_0x5e36b6._0x58e223,_0xf2f817-0x5c2);}function _0x547264(_0x2460a4,_0x199282,_0x8de4c4,_0x665e8a){return _0x4aa629(_0x2460a4-0xc7,_0x199282,_0x8de4c4-_0x501510._0xd28560,_0x2460a4-_0x501510._0x1ee923);}const _0x2e6b7b=_0x1fb303[_0x547264(_0x1e6e72._0x9684d2,_0x1e6e72._0x4f4132,_0x1e6e72._0x592b77,_0x1e6e72._0x488cc1)]??!![],_0x51a97a=_0x1fb303[_0x1df9f1(_0x1e6e72._0x4ac024,0x5c8,_0x1e6e72._0xea216e,0x64b)]??_0x547264(0x2e2,_0x1e6e72._0x33898a,0x1f6,_0x1e6e72._0x1c1224);return defineTool({'name':_0x51a97a,'description':_0x1fb303[_0x547264(_0x1e6e72._0x2c98e3,0x325,_0x1e6e72._0xc0b7b1,_0x1e6e72._0xe7eccc)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':'object','properties':{'command':{'type':_0x547264(_0x1e6e72._0x10306e,_0x1e6e72._0xf62dc2,_0x1e6e72._0x47dd5e,0x3fb)},'cwd':{'type':'string'},'timeoutMs':{'type':_0x547264(_0x1e6e72._0xf5aa96,_0x1e6e72._0x5c101c,_0x1e6e72._0x4aa0ad,_0x1e6e72._0xd5a52e)},'ignoreOutput':{'type':_0x1df9f1(_0x1e6e72._0x487316,_0x1e6e72._0x5e56e1,_0x1e6e72._0x3a1a6e,0x62d)}},'required':[_0x1df9f1(_0x1e6e72._0x5483c0,0x70e,_0x1e6e72._0x3bd405,_0x1e6e72._0x18652c)]},async *'execute'(_0xf36a05,_0xb61f19){const _0xe2cc97={_0x646f6b:0x5b9,_0x11c8a7:0x454,_0x10c257:0x474,_0x57a54e:0x4c4,_0x4f7899:0x38d},_0x129a82={_0x1c7c24:0x77b,_0x16d35a:0x63f,_0x16cb1:0x524,_0x1e1f78:0x4ec,_0x32d1f9:0x678},_0x46c012={_0x41ca7b:0x11d,_0x35d3c4:0x511},_0x3bca7d={_0x5e598f:0x12e,_0x252c51:0x1e9},_0x5f25cf={_0x2406ad:0x11c,_0x1a5052:0xdd},_0x500e55=_0xf36a05[_0x5b61d3(-0x37,-_0xf9956._0x3e0841,-0xd6,0x6d)]??_0x7e8d85;if(!Number['isFinite'](_0x500e55)||_0x500e55<0x1)throw new ToolExecutionError(_0x41a855(_0xf9956._0x9c9e75,0x297,0x2ec,_0xf9956._0x442b6e),{'command':_0xf36a05[_0x5b61d3(0x15,-0x12f,-0x167,-_0xf9956._0x80693b)]});throwIfAborted(_0xb61f19[_0x5b61d3(-0x279,-0x1e7,-0x17c,-_0xf9956._0x2e48cc)]);const _0x176d92=resolveWorkingDirectory(_0xf36a05[_0x5b61d3(0x19e,_0xf9956._0x24da73,_0xf9956._0x5dabd9,_0xf9956._0xdb98a6)],_0x60cbfc,_0x74039c),_0x465507=_0xf36a05['ignoreOutput']??![],_0xdb8854=resolveDefaultShell(_0x1fb303[_0x5b61d3(0x82,_0xf9956._0x1101eb,-_0xf9956._0x2a7f34,-0x85)]);function _0x41a855(_0x4ea619,_0x5d62d1,_0x1497c9,_0x46a9de){return _0x1df9f1(_0x46a9de,_0x5d62d1-0x21,_0x5d62d1- -_0x53b945._0x268476,_0x46a9de-0xaf);}const _0x199b13=buildShellArgs(_0xf36a05[_0x5b61d3(_0xf9956._0x572979,-_0xf9956._0x4bb3d9,_0xf9956._0x5eaa0d,-0x24)],_0xdb8854);function _0x5b61d3(_0x4f6fcf,_0x358237,_0x174e17,_0x6f0f0){return _0x547264(_0x6f0f0- -0x463,_0x358237,_0x174e17-_0x5f25cf._0x2406ad,_0x6f0f0-_0x5f25cf._0x1a5052);}const _0x2f2976=_0xcb20a5[_0x5b61d3(-_0xf9956._0x39c9f9,-0xd,-_0xf9956._0xd892d4,-_0xf9956._0x4769c8)]()==='win32';let _0xb13729;try{_0xb13729=_0x1744cf(_0xdb8854,_0x199b13,{'cwd':_0x176d92,'env':{...process['env'],..._0x1fb303['env']??{}},'stdio':_0x465507?[_0x5b61d3(-_0xf9956._0x22e382,_0xf9956._0x47a078,0xcc,-0x62),_0x5b61d3(-0xe7,0x5d,_0xf9956._0x17dabc,-0x62),_0x5b61d3(-_0xf9956._0xe1728b,_0xf9956._0x36a29a,0x2d,-0x62)]:[_0x41a855(_0xf9956._0x27d844,0x1ee,_0xf9956._0x1df643,0x131),_0x5b61d3(-_0xf9956._0x59c151,-_0xf9956._0x3b331e,-_0xf9956._0x376036,-0x135),'pipe'],'shell':![],'windowsHide':!![],'detached':!_0x2f2976});}catch(_0x833a15){if(isErrnoException(_0x833a15)&&_0x833a15[_0x5b61d3(-_0xf9956._0x23f64a,-_0xf9956._0xcf3c30,-_0xf9956._0x5054eb,-_0xf9956._0x40433b)]===_0x41a855(_0xf9956._0x3c873f,_0xf9956._0x4a5396,_0xf9956._0x3b41a7,0x183))throw new ToolExecutionError(_0x41a855(0x11d,_0xf9956._0x2fab66,-_0xf9956._0x43805e,0x1d8)+_0xdb8854,{'command':_0xf36a05['command'],'cwd':_0x176d92,'shellPath':_0xdb8854});throw new ToolExecutionError(_0x833a15 instanceof Error?_0x833a15[_0x41a855(0x223,0x2f4,_0xf9956._0x5c600f,_0xf9956._0x5c8bb8)]:String(_0x833a15),{'command':_0xf36a05[_0x41a855(_0xf9956._0xa5eb3b,0x22c,_0xf9956._0x2e2b30,0x19f)],'cwd':_0x176d92,'shellPath':_0xdb8854});}const _0x1fee3d=[],_0x1aa3c5=[],_0x35abc2=new StringDecoder(_0x41a855(0x19d,_0xf9956._0x4b11d8,_0xf9956._0x3e44ec,_0xf9956._0x5ae44d)),_0x52b18b=new StringDecoder(_0x5b61d3(0x2,-_0xf9956._0x1cbe54,-_0xf9956._0x468722,-0x115));let _0x2dcf58,_0x4db235=![],_0x25bf13;const _0x3cf29a=()=>{if(!_0x2dcf58)return;const _0x212803=_0x2dcf58;_0x2dcf58=void 0x0,_0x212803();},_0x3ce3b0=async()=>{if(_0x1aa3c5[_0x4389ca(_0x5d5c8e._0x171b6f,0x2be,0x3eb,_0x5d5c8e._0x22e26b)]>0x0||_0x4db235)return;function _0x4389ca(_0x4c9ff7,_0x322995,_0x543948,_0x172ff6){return _0x5b61d3(_0x4c9ff7-_0x3bca7d._0x5e598f,_0x172ff6,_0x543948-_0x3bca7d._0x252c51,_0x322995-0x395);}await new Promise(_0x1ef375=>{_0x2dcf58=_0x1ef375;});},_0x33d881=_0x4418c0=>{function _0x50d8fc(_0x406ba5,_0x2d8cee,_0x3ccf45,_0x2fac59){return _0x5b61d3(_0x406ba5-0x1bb,_0x406ba5,_0x3ccf45-0x64,_0x2fac59-0x433);}appendChunk(_0x1fee3d,_0x1aa3c5,_0x35abc2[_0x50d8fc(_0x2fbefd._0x390ddb,_0x2fbefd._0x14daa1,0x3df,0x364)](_0x4418c0),_0x2e6b7b,_0x3cf29a);},_0x158449=_0x135f23=>{const _0x10fc74={_0x2abbf7:0x202};function _0xf375a0(_0x37c970,_0x44f9dd,_0x469a8d,_0x559bd5){return _0x41a855(_0x37c970-0x13d,_0x37c970- -_0x10fc74._0x2abbf7,_0x469a8d-0x167,_0x469a8d);}appendChunk(_0x1fee3d,_0x1aa3c5,_0x52b18b[_0xf375a0(-0x81,-_0x2e56ba._0x3e83df,-0x84,0x9)](_0x135f23),_0x2e6b7b,_0x3cf29a);};_0xb13729[_0x41a855(_0xf9956._0x327dc1,0xfe,0xd2,-0x25)]?.['on']('data',_0x33d881),_0xb13729['stderr']?.['on'](_0x5b61d3(_0xf9956._0x3adb69,0x161,-_0xf9956._0x3db994,_0xf9956._0x13fb95),_0x158449);let _0x3869eb=![],_0x17d4a0;const _0x3027a3=addAbortListener(_0xb61f19[_0x5b61d3(-_0xf9956._0x17916a,-0x3b,-_0xf9956._0x263757,-_0xf9956._0x2e48cc)],()=>{_0x25bf13=toAbortError(_0xb61f19[_0x556efc(0x154,0x28f,_0x5a1232._0x4f1faf,0x1b)]['reason']),_0x4db235=!![],_0x3cf29a();function _0x556efc(_0x2eca39,_0x26ba8c,_0x44b50c,_0x20090a){return _0x41a855(_0x2eca39-0x164,_0x2eca39-0x58,_0x44b50c-0xc1,_0x26ba8c);}try{killProcessGroup(_0xb13729,_0x2f2976);}catch{}});try{const _0x1ddaed=new Promise((_0x5224cc,_0x44bfa6)=>{const _0xf29937={_0x13f44b:0xa8,_0x49b54f:0x4ab},_0x3b180b={_0x31d9d1:0x21,_0x231d34:0x78,_0x5f3b1d:0x1ad,_0x5b0f32:0x100,_0x3a29d6:0x4},_0x383de7={_0x418f32:0x31},_0x35d1dd=()=>{function _0x36829d(_0x3b99fe,_0x5c9e45,_0x4c63a7,_0x1a2e99){return _0x561a(_0x5c9e45- -0x11f,_0x1a2e99);}function _0x53180e(_0x465e64,_0x5c0244,_0x2cb2ef,_0x21d07e){return _0x561a(_0x21d07e-_0x383de7._0x418f32,_0x5c0244);}_0x17d4a0&&(clearTimeout(_0x17d4a0),_0x17d4a0=void 0x0),_0xb13729['off'](_0x36829d(-0x72,0x5f,-_0x3b180b._0x31d9d1,-_0x3b180b._0x231d34),_0x17b6d8),_0xb13729[_0x36829d(0x2f7,0x226,_0x3b180b._0x5f3b1d,_0x3b180b._0x5b0f32)](_0x36829d(-0x54,0xf3,-_0x3b180b._0x3a29d6,0x1cc),_0x4dd5a5);},_0x17b6d8=_0x22f28c=>{_0x4db235=!![],_0x3cf29a(),_0x35d1dd(),_0x44bfa6(_0x25bf13??_0x22f28c);},_0x4dd5a5=(_0x1516f5,_0x285e82)=>{_0x3869eb=!![],appendChunk(_0x1fee3d,_0x1aa3c5,_0x35abc2['end'](),_0x2e6b7b,_0x3cf29a),appendChunk(_0x1fee3d,_0x1aa3c5,_0x52b18b['end'](),_0x2e6b7b,_0x3cf29a),_0x4db235=!![],_0x3cf29a(),_0x35d1dd();if(_0x25bf13){_0x44bfa6(_0x25bf13);return;}_0x5224cc({'code':_0x1516f5,'signal':_0x285e82});};function _0x30609b(_0x360b59,_0x2d3fe9,_0xcb1a33,_0xca780f){return _0x5b61d3(_0x360b59-0x1d4,_0xcb1a33,_0xcb1a33-_0x46c012._0x41ca7b,_0x2d3fe9-_0x46c012._0x35d3c4);}_0x17d4a0=setTimeout(()=>{const _0x729091={_0x21a770:0x37c};_0x4db235=!![];function _0x327d42(_0x432418,_0x3f6a05,_0x1c2085,_0x2a5bba){return _0x561a(_0x2a5bba-0x321,_0x432418);}_0x3cf29a(),_0x35d1dd();try{killProcessGroup(_0xb13729,_0x2f2976);}catch{}function _0x477f5e(_0x53c05a,_0x1316a9,_0x3f1636,_0x261793){return _0x561a(_0x1316a9-_0x729091._0x21a770,_0x3f1636);}_0x44bfa6(new ToolExecutionError(_0x477f5e(_0x129a82._0x1c7c24,_0x129a82._0x16d35a,0x580,_0x129a82._0x16cb1)+_0x500e55+_0x477f5e(0x4a9,0x5d5,0x627,0x4e7),{'command':_0xf36a05[_0x327d42(_0x129a82._0x1e1f78,_0x129a82._0x32d1f9,0x659,0x5ac)],'cwd':_0x176d92,'shellPath':_0xdb8854,'timeoutMs':_0x500e55,'timedOut':!![]}));},_0x500e55),_0xb13729[_0x30609b(0x4c9,0x504,_0xe2cc97._0x646f6b,_0xe2cc97._0x11c8a7)]('error',_0x17b6d8);function _0xd7fed0(_0x4e1137,_0xbdc2c1,_0x3b89f6,_0x391361){return _0x5b61d3(_0x4e1137-0x18b,_0x3b89f6,_0x3b89f6-_0xf29937._0x13f44b,_0x4e1137-_0xf29937._0x49b54f);}_0xb13729['once'](_0x30609b(0x4a0,_0xe2cc97._0x10c257,_0xe2cc97._0x57a54e,_0xe2cc97._0x4f7899),_0x4dd5a5);});while(_0x1aa3c5[_0x5b61d3(-0xe7,-0x21d,-_0xf9956._0x1277a8,-_0xf9956._0x35de81)]>0x0||!_0x4db235){if(_0x1aa3c5['length']===0x0){await _0x3ce3b0();continue;}const _0x24b02f=_0x1aa3c5[_0x5b61d3(-0x22f,-_0xf9956._0x4b11d8,-0x14c,-_0xf9956._0x232346)]();_0x24b02f!==void 0x0&&(yield _0x24b02f);}const _0x281715=await _0x1ddaed,_0x7b0656=_0x465507?'exit\x20code\x20'+(_0x281715['code']??0x0):_0x1fee3d[_0x5b61d3(-_0xf9956._0x439891,-_0xf9956._0x262825,_0xf9956._0x31cb6d,-_0xf9956._0x1a9c20)](''),_0x113adc={'command':_0xf36a05[_0x5b61d3(-_0xf9956._0x564995,-0xbf,_0xf9956._0x2bd634,-0x24)],'cwd':_0x176d92,'exitCode':_0x281715[_0x5b61d3(-_0xf9956._0x152fce,-0x130,-_0xf9956._0x5c0014,-_0xf9956._0x40433b)]??0x0,'signal':_0x281715[_0x5b61d3(-_0xf9956._0x27d844,-_0xf9956._0x2a4e9c,-0x130,-_0xf9956._0x2624a2)],'ignoreOutput':_0x465507,'shellPath':_0xdb8854,'timeoutMs':_0x500e55};if(_0x281715['code']!==0x0)throw new ToolExecutionError(_0x7b0656||'Command\x20exited\x20with\x20code\x20'+(_0x281715[_0x41a855(0x13d,_0xf9956._0x25f0d1,0x1fc,_0xf9956._0x4dbcc8)]??0x0),_0x113adc);return createToolOutput(_0x7b0656,_0x113adc);}catch(_0x45cea4){while(_0x1aa3c5[_0x5b61d3(-_0xf9956._0x4edf21,-_0xf9956._0x47c9b8,-0x6d,-0xd7)]>0x0){const _0x1a38b5=_0x1aa3c5[_0x5b61d3(-0x58,-_0xf9956._0x400f5d,-_0xf9956._0x4ae788,-0x155)]();_0x1a38b5!==void 0x0&&(yield _0x1a38b5);}if(_0x45cea4 instanceof ToolExecutionError)throw _0x45cea4;if(_0x25bf13)throw _0x25bf13;if(isErrnoException(_0x45cea4)&&_0x45cea4['code']===_0x41a855(0x36f,0x278,_0xf9956._0x28501b,0x2dc))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0xdb8854,{'command':_0xf36a05[_0x41a855(0x1fb,0x22c,0x290,0x2ff)],'cwd':_0x176d92,'shellPath':_0xdb8854});throw new ToolExecutionError(_0x45cea4 instanceof Error?_0x45cea4[_0x5b61d3(-0x1,-0x27,-_0xf9956._0x34b102,0xa4)]:String(_0x45cea4),{'command':_0xf36a05['command'],'cwd':_0x176d92,'shellPath':_0xdb8854});}finally{_0x17d4a0&&clearTimeout(_0x17d4a0);_0x3027a3(),_0xb13729['stdout']?.['off'](_0x5b61d3(0x8b,_0xf9956._0x34cd9a,0x189,_0xf9956._0x13fb95),_0x33d881),_0xb13729[_0x5b61d3(_0xf9956._0x1fccda,-0xef,-0x230,-0xe9)]?.['off'](_0x5b61d3(-0x2c,-0xb9,0xf0,_0xf9956._0x382b73),_0x158449);if(!_0x3869eb&&_0xb13729['pid']&&!_0xb13729['killed'])try{killProcessGroup(_0xb13729,_0x2f2976);}catch{}}}});}function createShellExecTool(_0x24e5c3={}){return createBashTool(_0x24e5c3);}import{readdir,readFile as _0x497f98}from'fs/promises';import{extname,join as _0x574a62}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x4552f9,join,relative as _0x5d85c0,resolve as _0x4d21fe}from'path';import{readdir as _0x58c123,readFile as _0x233bc9}from'fs/promises';import{join as _0x1cea78,relative as _0x3bb228,sep}from'path';import{delimiter}from'path';import{mkdir as _0x101fea,rm,stat as _0x378dfe,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0xea0fbd}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x4592d8,rename,writeFile as _0x7632f5}from'fs/promises';import{homedir as _0xb68284}from'os';import{dirname as _0x4b68eb,isAbsolute as _0x2c07dd,join as _0x55d185,resolve as _0x1743fd}from'path';import{parse as _0x383526,stringify as _0x103b1a}from'yaml';import{cp,mkdir as _0x46c9c8,readFile as _0xcf4efa,rm as _0x42bbd1,writeFile as _0x534423}from'fs/promises';import{homedir}from'os';import{join as _0x1d7816}from'path';import{parse as _0x162035,stringify as _0x8a9f9f}from'yaml';import{z}from'zod';import{readdir as _0x213317,readFile as _0x41861f}from'fs/promises';import{join as _0x5f5b71}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x3f91f0){const _0x1018c9={_0x36e308:0x4a0,_0x38be69:0x402,_0x5b5e33:0x43c,_0x37989e:0x4a0,_0xcc61f2:0x4a0,_0x21ded8:0x371,_0x3e7a87:0x47d},_0x314740={_0x3364ad:0x1c7,_0x2d0750:0x6e,_0x635f7e:0x87},_0x47b559={_0x43adfb:0x1dc,_0x411e25:0x51a},_0x4a810d=[];let _0x23a60f='';function _0x307979(_0x2dee6c,_0x43f132,_0x32fba5,_0xb42032){return _0x4aa629(_0x2dee6c-0x11d,_0x32fba5,_0x32fba5-_0x47b559._0x43adfb,_0x2dee6c-_0x47b559._0x411e25);}let _0x19eeb9=0x0;while(_0x19eeb9<_0x3f91f0[_0x307979(_0x1018c9._0x36e308,0x3c6,_0x1018c9._0x38be69,_0x1018c9._0x5b5e33)]){const _0x2067e2=_0x3f91f0[_0x19eeb9];if(_0x2067e2==='\x5c'&&_0x19eeb9+0x1<_0x3f91f0[_0x4dc0f6(-0x121,0x78,0xf8,0xd)])_0x23a60f+=_0x3f91f0[_0x19eeb9+0x1],_0x19eeb9+=0x2;else{if(_0x2067e2==='\x22'||_0x2067e2==='\x27'){const _0x523582=_0x2067e2;_0x19eeb9++;while(_0x19eeb9<_0x3f91f0[_0x307979(_0x1018c9._0x37989e,0x4d7,0x5a9,0x3d2)]&&_0x3f91f0[_0x19eeb9]!==_0x523582){_0x3f91f0[_0x19eeb9]==='\x5c'&&_0x19eeb9+0x1<_0x3f91f0[_0x307979(_0x1018c9._0xcc61f2,0x494,0x549,0x3e8)]?(_0x23a60f+=_0x3f91f0[_0x19eeb9+0x1],_0x19eeb9+=0x2):(_0x23a60f+=_0x3f91f0[_0x19eeb9],_0x19eeb9++);}_0x19eeb9++;}else _0x2067e2!==void 0x0&&/\s/['test'](_0x2067e2)?(_0x23a60f&&(_0x4a810d['push'](_0x23a60f),_0x23a60f=''),_0x19eeb9++):(_0x23a60f+=_0x2067e2,_0x19eeb9++);}}if(_0x23a60f)_0x4a810d[_0x307979(0x44b,_0x1018c9._0x21ded8,_0x1018c9._0x3e7a87,0x43b)](_0x23a60f);function _0x4dc0f6(_0x217a44,_0x4b1bda,_0x5e01af,_0x571871){return _0x4aa629(_0x217a44-_0x314740._0x3364ad,_0x4b1bda,_0x5e01af-_0x314740._0x2d0750,_0x571871-_0x314740._0x635f7e);}return _0x4a810d;}function renderCommandInstructions(_0x6ca64d){const _0xc925c4={_0x33f6ea:0x34c,_0x4cfeb0:0x190,_0x3db28a:0x4c,_0x3215a6:0x17a,_0x50dc5e:0x189,_0x2d02ce:0x31d,_0x44c889:0x24d,_0x23d7d6:0xf4,_0x48f1e4:0x2be,_0x1d6925:0x2d9,_0x48fb20:0x2f2,_0x4cd191:0x1ad,_0xe37a74:0x107,_0x35c5c0:0x3bf,_0x2129bf:0x2dd,_0x28f1ed:0x2b0,_0x213388:0x228,_0x2ea427:0x23f},_0x26bea5={_0x12aa92:0x482,_0x212392:0x172},_0x5ef97d={_0x35e881:0x10,_0x2f638a:0xc5},_0x178914={_0x302422:0x151,_0x374e5d:0xe5},_0x54d84f={_0x47231b:0x313};function _0x10b227(_0x364fe5,_0x57b92b,_0x690e9,_0x3404d3){return _0x4aa629(_0x364fe5-0x1b1,_0x3404d3,_0x690e9-0x132,_0x57b92b-_0x54d84f._0x47231b);}let _0x388613=_0x6ca64d[_0x10b227(_0xc925c4._0x33f6ea,0x21a,0x162,0x306)],_0x1df676=![];const _0x3477fe=tokenizeCommandArguments(_0x6ca64d[_0x18fd67(-0x256,-_0xc925c4._0x4cfeb0,-_0xc925c4._0x3db28a,-0x25c)]);_0x388613=_0x388613['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0xa13bdd,_0x46eba1)=>{return _0x1df676=!![],_0x3477fe[Number(_0x46eba1)]??'';}),_0x388613=_0x388613['replace'](/\$ARGUMENTS\b/g,()=>{function _0x365adf(_0x260da8,_0x156fe7,_0x445afb,_0x181a23){return _0x10b227(_0x260da8-_0x178914._0x302422,_0x445afb- -0x203,_0x445afb-_0x178914._0x374e5d,_0x156fe7);}return _0x1df676=!![],_0x6ca64d[_0x365adf(-_0x5ef97d._0x35e881,0x0,_0x5ef97d._0x2f638a,0x63)];});if(_0x6ca64d[_0x18fd67(-_0xc925c4._0x3215a6,-0x24d,-0x2c7,-0x36a)]&&_0x6ca64d[_0x10b227(_0xc925c4._0x50dc5e,0x20b,0x282,_0xc925c4._0x2d02ce)]['length']>0x0)for(let _0x55c4dc=0x0;_0x55c4dc<_0x6ca64d[_0x18fd67(-0x180,-_0xc925c4._0x44c889,-0x1f8,-0x183)][_0x18fd67(-_0xc925c4._0x23d7d6,-0x1bf,-0x104,-_0xc925c4._0x48f1e4)];_0x55c4dc++){const _0x3d637b=_0x6ca64d[_0x10b227(_0xc925c4._0x1d6925,0x20b,0x1bc,_0xc925c4._0x48fb20)][_0x55c4dc];if(_0x3d637b){const _0x394871=new RegExp('\x5c$'+_0x3d637b+'\x5cb','g');_0x388613=_0x388613['replace'](_0x394871,()=>{return _0x1df676=!![],_0x3477fe[_0x55c4dc]??'';});}}_0x388613=_0x388613[_0x10b227(0xe5,_0xc925c4._0x4cd191,0x2d6,_0xc925c4._0xe37a74)](/\$(\d+)\b/g,(_0x173886,_0x3c176e)=>{return _0x1df676=!![],_0x3477fe[Number(_0x3c176e)]??'';});function _0x18fd67(_0x2f2be3,_0x597491,_0x14cfc6,_0x24444e){return _0x2f0acf(_0x597491- -_0x26bea5._0x12aa92,_0x597491-_0x26bea5._0x212392,_0x2f2be3,_0x24444e-0x36);}return!_0x1df676&&_0x6ca64d['argumentsText'][_0x18fd67(-0x1b3,-0x293,-_0xc925c4._0x35c5c0,-_0xc925c4._0x2129bf)]()&&(_0x388613=_0x388613+_0x10b227(0x1ff,0x298,0x33d,0x309)+_0x6ca64d[_0x10b227(_0xc925c4._0x28f1ed,0x2c8,_0xc925c4._0x213388,_0xc925c4._0x2ea427)]),_0x388613;}var chatModelAuthSchemeSchema=z[_0x2f0acf(0x42d,0x3bc,0x569,0x3e9)]([_0x2f0acf(0x45a,0x471,0x541,0x36f),_0x4aa629(-0x89,-0x17e,-0x206,-0x154)]),apiKeyAuthSchema=z[_0x2f0acf(0x300,0x1dc,0x36a,0x266)]({'type':z[_0x4aa629(-0x78,-0xa0,-0x14b,-0x56)](_0x2f0acf(0x2ad,0x2a1,0x228,0x18a)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x2f0acf(0x40f,0x3ca,0x307,0x4a7)]()})[_0x4aa629(0x54,0x2a,-0x8d,-0xea)](),oauthAuthSchema=z[_0x2f0acf(0x300,0x244,0x1cb,0x3e7)]({'type':z[_0x2f0acf(0x2e7,0x415,0x3dd,0x409)]('oauth'),'access':z[_0x2f0acf(0x38b,0x2f4,0x263,0x363)](),'refresh':z['string'](),'expires':z['number']()[_0x2f0acf(0x40f,0x491,0x525,0x458)](),'authScheme':chatModelAuthSchemeSchema[_0x2f0acf(0x40f,0x4b5,0x2fb,0x320)]()})[_0x2f0acf(0x253,0x2f6,0x154,0x122)](),authMethodSchema=z[_0x4aa629(-0x1c7,-0xaa,-0x176,-0xdf)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x2f0acf(0x300,0x424,0x388,0x2a7)]({'id':z[_0x2f0acf(0x38b,0x25a,0x48f,0x4aa)](),'name':z[_0x2f0acf(0x38b,0x4b7,0x471,0x40d)]()[_0x4aa629(0x115,0x18d,0x11b,0xd2)]()})['passthrough'](),modelConfigSchema=z['union']([z['literal'](![]),z[_0x2f0acf(0x2e7,0x258,0x33c,0x1fa)](!![]),z['string'](),z[_0x2f0acf(0x39e,0x341,0x4e2,0x2b9)](z[_0x4aa629(0xa0,0xb7,0x8d,0x4e)]()),z[_0x2f0acf(0x39e,0x425,0x2e9,0x320)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x2f0acf(0x42d,0x301,0x4f0,0x2e6)]([_0x2f0acf(0x3a9,0x445,0x4b3,0x26a),_0x4aa629(0x5f,0x150,0x72,0x8),'openai-responses',_0x2f0acf(0x261,0x136,0x127,0x239)]),providerConfigSchema=z['object']({'apiKey':z[_0x4aa629(-0x45,0x24,-0xae,0x4e)]()['optional'](),'token':z[_0x2f0acf(0x38b,0x247,0x417,0x444)]()[_0x2f0acf(0x40f,0x2f1,0x54e,0x380)](),'defaultModel':z[_0x2f0acf(0x38b,0x355,0x295,0x46d)]()['optional'](),'smallModel':z[_0x2f0acf(0x38b,0x2f5,0x36e,0x25c)]()['optional'](),'currentAuth':z[_0x4aa629(0x185,0x4b,0xeb,0x4e)]()[_0x4aa629(0x31,0x15f,0x2d,0xd2)](),'auth':z['array'](authMethodSchema)['optional'](),'surface':chatModelSurfaceSchema[_0x2f0acf(0x40f,0x50d,0x3b5,0x44f)](),'baseUrl':z['string']()[_0x2f0acf(0x40f,0x46e,0x2ef,0x394)](),'models':modelConfigSchema[_0x2f0acf(0x40f,0x3c9,0x2ce,0x436)](),'customHeaders':z['record'](z[_0x4aa629(0x7c,0x76,0x68,0x4e)](),z['string']())[_0x2f0acf(0x40f,0x3f5,0x45d,0x2cc)]()})[_0x2f0acf(0x253,0x2e0,0x366,0x29e)](),mcpServerConfigSchema=z['object']({'command':z[_0x2f0acf(0x38b,0x36f,0x2c4,0x433)]()[_0x4aa629(0x49,0x102,0x142,0xd2)](),'args':z[_0x4aa629(0xdc,0x172,-0xde,0x61)](z['string']())['optional'](),'env':z['record'](z[_0x4aa629(-0x45,0x123,-0x70,0x4e)](),z[_0x2f0acf(0x38b,0x3dc,0x391,0x47d)]())[_0x4aa629(0x190,0xad,-0x7,0xd2)](),'transport':z[_0x4aa629(0x1c1,0x11d,0x53,0xf0)](['stdio','http'])['optional'](),'url':z[_0x2f0acf(0x38b,0x383,0x4cf,0x470)]()[_0x2f0acf(0x40f,0x3c2,0x399,0x41c)](),'headers':z[_0x4aa629(-0x87,0x7a,-0x1b,-0x22)](z[_0x4aa629(0x6,0x17c,0x91,0x4e)](),z[_0x4aa629(-0xe4,-0x8f,0xce,0x4e)]())[_0x2f0acf(0x40f,0x46c,0x2ca,0x307)](),'prefix':z[_0x4aa629(0x4e,0x17e,0x114,0x4e)]()[_0x2f0acf(0x40f,0x362,0x37f,0x39a)](),'timeoutMs':z[_0x4aa629(0x0,0x58,0x1ee,0xd3)]()[_0x4aa629(0x170,0x1a6,-0x68,0xd2)](),'enabled':z[_0x4aa629(0x13e,0x78,0x161,0xa9)]()[_0x4aa629(0x29,0x5c,0x72,0xd2)](),'auth':z[_0x2f0acf(0x300,0x1f4,0x2dd,0x1b9)]({'type':z[_0x4aa629(0x1de,0x14c,0x1a,0xf0)](['none',_0x4aa629(0x183,0x14a,0xe9,0x11d),_0x2f0acf(0x2ce,0x240,0x21d,0x22a)]),'token':z[_0x4aa629(0xa0,0x4a,0xdc,0x4e)]()[_0x2f0acf(0x40f,0x4bd,0x319,0x362)](),'oauth':z[_0x2f0acf(0x300,0x3e7,0x26d,0x273)]({'clientId':z['string']()['optional'](),'clientMetadataUrl':z[_0x4aa629(0x110,0x15,0x141,0x4e)]()[_0x4aa629(0x1a7,0x157,-0x34,0xd2)](),'authorizationServer':z['string']()['optional'](),'scopes':z['array'](z[_0x2f0acf(0x38b,0x33d,0x266,0x492)]())[_0x2f0acf(0x40f,0x47f,0x386,0x3be)](),'tokenStorageKey':z[_0x4aa629(-0xd6,-0x67,0x11,0x4e)]()['optional']()})[_0x2f0acf(0x253,0x24c,0x30f,0x136)]()[_0x4aa629(0x12a,0x18d,0x1c0,0xd2)]()})['passthrough']()[_0x2f0acf(0x40f,0x3c9,0x48b,0x50b)]()})[_0x4aa629(-0xaf,0x10,-0x23,-0xea)](),mcpSettingsSchema=z['object']({'servers':z['record'](z[_0x2f0acf(0x38b,0x404,0x24a,0x2dd)](),mcpServerConfigSchema)[_0x4aa629(0x1fb,0x12a,-0x34,0xd2)](),'allowedTools':z[_0x2f0acf(0x31b,0x362,0x2f5,0x3cb)](z[_0x4aa629(0x2b,-0x5c,0x17b,0x4e)](),z[_0x2f0acf(0x31b,0x44d,0x27c,0x43e)](z[_0x4aa629(0x158,0x14f,0xce,0x4e)](),z[_0x2f0acf(0x3e6,0x4f9,0x41e,0x311)]()))[_0x4aa629(0x194,0x179,0x50,0xd2)](),'defaultTimeoutMs':z[_0x4aa629(0x80,0x16b,-0x4e,0xd3)]()['optional']()})[_0x4aa629(-0x1c5,-0x221,-0x18b,-0xea)](),skillsSettingsSchema=z[_0x4aa629(0x89,-0x4d,-0xf6,-0x3d)]({'enabled':z[_0x2f0acf(0x3e6,0x33e,0x4ab,0x3d2)]()[_0x2f0acf(0x40f,0x2d6,0x3b4,0x3c9)](),'includeDefaults':z[_0x4aa629(0x42,0xcd,0x86,0xa9)]()['optional'](),'directories':z['array'](z[_0x2f0acf(0x38b,0x4c6,0x27c,0x402)]())['optional'](),'exclude':z[_0x4aa629(-0x53,0x3f,0xf7,0x61)](z[_0x2f0acf(0x38b,0x4c7,0x47e,0x3a7)]())['optional']()})[_0x4aa629(-0x203,-0x1f0,-0x22,-0xea)](),commandsSettingsSchema=z[_0x2f0acf(0x300,0x2a2,0x269,0x317)]({'enabled':z[_0x2f0acf(0x3e6,0x503,0x3dc,0x2e7)]()[_0x2f0acf(0x40f,0x346,0x4b9,0x301)](),'directories':z[_0x2f0acf(0x39e,0x48b,0x383,0x319)](z[_0x2f0acf(0x38b,0x3a2,0x276,0x2c1)]())[_0x4aa629(0x1b2,0x104,0xb7,0xd2)]()})[_0x4aa629(0xe,-0x7f,-0x124,-0xea)](),agentsSettingsSchema=z[_0x2f0acf(0x300,0x3bc,0x204,0x317)]({'enabled':z[_0x2f0acf(0x3e6,0x36c,0x489,0x438)]()['optional'](),'includeDefaults':z[_0x4aa629(-0x1c,0x172,0x11e,0xa9)]()[_0x2f0acf(0x40f,0x2e3,0x512,0x362)](),'directories':z[_0x2f0acf(0x39e,0x300,0x2a3,0x2e8)](z[_0x4aa629(0x114,0x58,-0x63,0x4e)]())[_0x2f0acf(0x40f,0x318,0x3f8,0x443)]()})[_0x4aa629(0x35,-0x214,0x24,-0xea)](),uiThemeSettingsSchema=z[_0x2f0acf(0x300,0x224,0x1ba,0x3b5)]({'mode':z[_0x4aa629(0x1ef,0x3f,0x17d,0xf0)](['auto',_0x2f0acf(0x232,0x351,0x302,0x21a),_0x2f0acf(0x231,0x28b,0x1e8,0x206)])['optional'](),'colorLevel':z['enum']([_0x4aa629(0x179,0x80,-0x18,0xe6),'none',_0x4aa629(-0x140,-0xa0,-0x2f,-0x115),'ansi256',_0x2f0acf(0x313,0x360,0x3b1,0x301)])[_0x4aa629(0x1,0x154,0x1f2,0xd2)](),'backgrounds':z[_0x2f0acf(0x42d,0x525,0x35f,0x448)]([_0x2f0acf(0x423,0x2de,0x385,0x42d),'on','off'])[_0x2f0acf(0x40f,0x4f4,0x3c5,0x451)](),'messageStyle':z[_0x2f0acf(0x42d,0x4e9,0x355,0x36a)]([_0x4aa629(-0xf1,-0x1b3,-0x13f,-0x6e),_0x4aa629(0x4c,0x1bb,-0x41,0xfd)])[_0x4aa629(-0x7,0x1fb,0x1bf,0xd2)]()})['passthrough'](),statuslineSegmentSchema=z[_0x4aa629(-0xc,0x175,0x1b8,0xf0)](['model',_0x2f0acf(0x360,0x2a4,0x218,0x3fe),_0x4aa629(-0x13c,0xfa,0x28,-0x3c),'sudo','tokens',_0x4aa629(0x107,0x104,0x1bc,0x88),'cached','requests',_0x2f0acf(0x283,0x319,0x26b,0x3a3),'cost',_0x2f0acf(0x26f,0x21f,0x274,0x161),_0x2f0acf(0x20d,0x1d3,0x2f9,0x1b2),_0x2f0acf(0x225,0x364,0x24c,0x124),_0x2f0acf(0x32d,0x2c6,0x3f8,0x32d),'rss']),statuslineItemSchema=z[_0x4aa629(-0x140,-0x87,-0x209,-0xdf)]([statuslineSegmentSchema,z[_0x4aa629(0xe0,-0xcf,-0x177,-0x56)]('|')]),statuslineRowSchema=z[_0x2f0acf(0x39e,0x472,0x3c4,0x480)](statuslineItemSchema),statuslineConfigSchema=z[_0x2f0acf(0x300,0x220,0x2b6,0x1dc)]({'rows':z[_0x4aa629(0xf9,-0x76,0x66,-0x1e)]([statuslineRowSchema,statuslineRowSchema])[_0x2f0acf(0x40f,0x49c,0x542,0x35a)]()})[_0x2f0acf(0x253,0x303,0x14c,0x269)](),memorySettingsSchema=z[_0x2f0acf(0x300,0x300,0x423,0x248)]({'version':z['literal'](0x2)[_0x2f0acf(0x40f,0x4c2,0x4dc,0x466)](),'retrieval':z[_0x4aa629(0xdb,0x4a,-0x144,-0x3d)]({'engine':z[_0x4aa629(-0x17e,0x52,-0x11f,-0x56)](_0x2f0acf(0x2c1,0x1db,0x314,0x1f1))['optional'](),'candidateLimit':z[_0x2f0acf(0x410,0x3c2,0x392,0x54a)]()[_0x2f0acf(0x40f,0x2f9,0x3a8,0x48d)](),'activeCandidateLimit':z['number']()[_0x4aa629(-0x6e,0x79,0xa3,0xd2)](),'activeEnabled':z[_0x4aa629(0x2b,0x1bc,-0x4c,0xa9)]()[_0x2f0acf(0x40f,0x4cf,0x3ee,0x3d3)](),'maxQueriesPerTurn':z['number']()[_0x2f0acf(0x40f,0x487,0x3d6,0x4f4)](),'coreInjectTokenBudget':z['number']()[_0x4aa629(0x1ce,0x1b6,-0x2d,0xd2)](),'injectTokenBudget':z['number']()[_0x4aa629(0xd,0x143,0xb,0xd2)](),'minScore':z[_0x2f0acf(0x410,0x450,0x527,0x3c4)]()['optional'](),'freshnessHalfLifeDays':z['number']()['optional']()})[_0x2f0acf(0x253,0x11f,0x2ee,0x307)]()[_0x4aa629(-0x3a,0x6,0x8b,0xd2)](),'extraction':z[_0x2f0acf(0x300,0x235,0x241,0x342)]({'enabled':z[_0x2f0acf(0x3e6,0x42c,0x38f,0x34f)]()[_0x4aa629(-0x4e,0xe0,0x1b4,0xd2)](),'provider':z['string']()['optional'](),'model':z[_0x2f0acf(0x38b,0x313,0x381,0x2b0)]()[_0x2f0acf(0x40f,0x326,0x385,0x39a)](),'sensitiveFilter':z[_0x4aa629(0x7b,0x194,0x15d,0xa9)]()[_0x4aa629(0x15e,0x99,-0x10,0xd2)]()})[_0x4aa629(0x3e,-0x82,-0x1e9,-0xea)]()['optional'](),'index':z[_0x2f0acf(0x300,0x363,0x3a8,0x36b)]({'persisted':z[_0x2f0acf(0x3e6,0x3ac,0x2c0,0x2dd)]()['optional'](),'flushIntervalMs':z[_0x4aa629(0x17b,-0x6f,0x177,0xd3)]()[_0x2f0acf(0x40f,0x469,0x37e,0x375)]()})[_0x2f0acf(0x253,0x368,0x37c,0x1e4)]()[_0x4aa629(0x4d,0x139,0x207,0xd2)](),'enabled':z[_0x2f0acf(0x3e6,0x3cf,0x2e9,0x34c)]()[_0x4aa629(0x4c,-0x24,-0x58,0xd2)](),'saveTool':z[_0x4aa629(-0x9a,0xa8,-0x13,0xa9)]()['optional'](),'model':z[_0x4aa629(-0xbe,0x175,-0x54,0x4e)]()['optional'](),'provider':z[_0x2f0acf(0x38b,0x404,0x2dc,0x2a0)]()[_0x2f0acf(0x40f,0x416,0x4d9,0x2ff)](),'maxInjectionTokens':z[_0x2f0acf(0x410,0x3f8,0x335,0x3cb)]()[_0x2f0acf(0x40f,0x367,0x47d,0x551)](),'backgroundExtraction':z['boolean']()['optional']()})[_0x4aa629(-0x231,-0x143,-0x15e,-0xea)](),recentModelSchema=z[_0x4aa629(-0x10c,-0x185,-0x9d,-0x3d)]({'provider':z[_0x4aa629(0x2d,0xb1,0x18a,0x4e)](),'model':z[_0x2f0acf(0x38b,0x4b2,0x2c8,0x42b)](),'usedAt':z[_0x2f0acf(0x410,0x35d,0x46e,0x2df)]()})[_0x2f0acf(0x253,0x384,0x350,0x111)](),lspServerEntrySchema=z[_0x4aa629(-0x4d,0x5a,0xe1,-0x3d)]({'disabled':z[_0x4aa629(0x143,0x1ca,0xd3,0xa9)]()[_0x4aa629(0x1ab,0x17e,0xe7,0xd2)](),'command':z[_0x4aa629(0x18,-0x9e,0x11a,0x4e)]()[_0x2f0acf(0x40f,0x51f,0x543,0x35b)](),'args':z[_0x2f0acf(0x39e,0x346,0x3ef,0x45a)](z[_0x4aa629(0x195,0x98,0x1,0x4e)]())[_0x4aa629(0x158,0x48,0x15e,0xd2)](),'rootMarkers':z[_0x4aa629(0xa3,-0x8a,-0x97,0x61)](z[_0x4aa629(0x107,0x5b,0x150,0x4e)]())['optional']()})['passthrough'](),lspConfigSchema=z[_0x4aa629(-0xc9,-0x130,-0xb8,-0x3d)]({'enabled':z[_0x2f0acf(0x3e6,0x330,0x4ee,0x481)]()[_0x4aa629(0x10f,-0x22,0x10c,0xd2)](),'servers':z[_0x4aa629(-0x112,-0x2e,0x10c,-0x22)](z[_0x2f0acf(0x38b,0x2a0,0x39f,0x27b)](),lspServerEntrySchema)[_0x4aa629(0x199,0x33,0x11a,0xd2)]()})['passthrough'](),cliConfigSchema=z[_0x4aa629(-0xf0,-0x172,-0x110,-0x3d)]({'activeProvider':z[_0x4aa629(0x4b,-0x45,0x170,0x4e)]()[_0x4aa629(0x1d6,0x60,-0x4b,0xd2)](),'activeModel':z[_0x4aa629(-0x1d,0x137,-0xcb,0x4e)]()[_0x2f0acf(0x40f,0x413,0x4b7,0x3da)](),'apiKey':z[_0x2f0acf(0x38b,0x25d,0x3e7,0x43b)]()[_0x4aa629(0xf9,0x186,-0x18,0xd2)](),'providers':z[_0x4aa629(-0xe7,0x103,0x6d,-0x22)](z[_0x4aa629(0xf8,-0xa4,0x176,0x4e)](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema[_0x4aa629(0x112,0xa1,0x41,0xd2)](),'skills':skillsSettingsSchema[_0x2f0acf(0x40f,0x2d6,0x431,0x506)](),'agents':agentsSettingsSchema[_0x2f0acf(0x40f,0x329,0x4e4,0x30e)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x2f0acf(0x31b,0x328,0x364,0x390)](z['string'](),z[_0x4aa629(0x190,0x56,0x1c,0xa9)]())[_0x4aa629(0x1e9,0x12e,0x1c1,0xd2)](),'memory':memorySettingsSchema['optional'](),'session':z[_0x2f0acf(0x300,0x28b,0x377,0x292)]({'memPersist':z[_0x4aa629(0xbb,0x57,-0x80,0xa9)]()[_0x2f0acf(0x40f,0x396,0x3ce,0x3d1)](),'persistEventLog':z['boolean']()['optional'](),'persistHttpLog':z['boolean']()[_0x2f0acf(0x40f,0x38d,0x3ac,0x3e0)]()})[_0x4aa629(-0xf,-0x4a,-0x1ee,-0xea)]()['optional'](),'requireToolApproval':z['boolean']()[_0x2f0acf(0x40f,0x464,0x54e,0x3c6)](),'thinking':z['enum'](['OFF',_0x2f0acf(0x36d,0x2c7,0x41b,0x469),_0x4aa629(-0xda,-0x31,-0x132,-0x52),_0x2f0acf(0x27f,0x379,0x379,0x1d2)])[_0x2f0acf(0x40f,0x2ea,0x4b5,0x3bb)](),'streamingChunks':z[_0x2f0acf(0x3e6,0x4a8,0x4c1,0x514)]()[_0x2f0acf(0x40f,0x515,0x467,0x3f4)](),'agentsEnabled':z[_0x4aa629(-0x6b,-0x6,0x4,-0x22)](z[_0x2f0acf(0x38b,0x445,0x270,0x364)](),z[_0x2f0acf(0x3e6,0x2e9,0x497,0x3d0)]())[_0x2f0acf(0x40f,0x35c,0x2ed,0x2d3)](),'recentModels':z[_0x2f0acf(0x39e,0x423,0x41f,0x31b)](recentModelSchema)[_0x2f0acf(0x40f,0x4f1,0x3e8,0x3b7)](),'lsp':lspConfigSchema[_0x2f0acf(0x40f,0x519,0x450,0x42b)](),'ui':z['object']({'theme':uiThemeSettingsSchema[_0x2f0acf(0x40f,0x3e8,0x370,0x2ca)](),'statusline':statuslineConfigSchema[_0x2f0acf(0x40f,0x3d5,0x457,0x367)]()})[_0x2f0acf(0x253,0x19f,0x1d8,0x233)]()[_0x4aa629(0x218,-0x31,0xc8,0xd2)](),'tools':z[_0x2f0acf(0x31b,0x1fe,0x320,0x265)](z[_0x2f0acf(0x38b,0x363,0x332,0x3db)](),z[_0x2f0acf(0x366,0x3ff,0x44d,0x42f)]())[_0x2f0acf(0x40f,0x36f,0x349,0x3df)]()})[_0x4aa629(-0xb8,0x22,-0x10f,-0xea)]();function buildDescription(_0x47cecc){const _0x47cbf9={_0x44c64c:0x1d0,_0x5b4ebe:0x308,_0x3e3e8b:0x336,_0x3fd66e:0x261,_0x4dcede:0x29,_0x441f99:0x17c,_0xa9329b:0xf9,_0x49ad53:0x61,_0x3944b5:0x6e,_0x44c36d:0x0,_0x1769a3:0x20,_0x198118:0x222,_0x10d973:0xcb,_0x357bb7:0x96,_0x51ce34:0x1e9,_0x2af82a:0x19e},_0x54a58={_0x7908d0:0x467,_0xdf33a2:0x134,_0x26d3a5:0x1bd},_0x4d6185={_0x2714f6:0x46};if(_0x47cecc[_0x5bdb68(-_0x47cbf9._0x44c64c,-0x1de,-0x1a9,-0x1a4)]===0x0)return[_0x5bdb68(-0x2d0,-_0x47cbf9._0x5b4ebe,-_0x47cbf9._0x3e3e8b,-_0x47cbf9._0x3fd66e),_0x5bdb68(-_0x47cbf9._0x4dcede,-0x67,-_0x47cbf9._0x441f99,-_0x47cbf9._0xa9329b),'No\x20commands\x20are\x20currently\x20available.'][_0x121797(_0x47cbf9._0x49ad53,-_0x47cbf9._0x3944b5,-0x7b,0x17e)]('\x0a');function _0x121797(_0x224db4,_0x15f8bd,_0xa2614a,_0x4c33c2){return _0x2f0acf(_0x224db4- -0x268,_0x15f8bd-_0x4d6185._0x2714f6,_0xa2614a,_0x4c33c2-0xf3);}const _0x449716=[_0x121797(-0x62,_0x47cbf9._0x44c36d,-_0x47cbf9._0x1769a3,-0x14),_0x5bdb68(-0x1e8,-_0x47cbf9._0x198118,-_0x47cbf9._0x10d973,-0xf9),_0x121797(0x13c,0x115,0x20e,_0x47cbf9._0x357bb7),..._0x47cecc['map'](_0x1438b2=>_0x1438b2[_0x5bdb68(-0x35,-0xce,-0xfa,-0x15b)]?'-\x20'+_0x1438b2['name']+'\x20'+_0x1438b2[_0x5bdb68(-0x55,-0x88,-0x122,-0x15b)]+':\x20'+_0x1438b2['description']:'-\x20'+_0x1438b2[_0x5bdb68(-0x1bf,-0x1bb,-0x184,-0x11b)]+':\x20'+_0x1438b2['description'])];function _0x5bdb68(_0x24204d,_0x2a872a,_0x4bccd1,_0xc8290e){return _0x2f0acf(_0xc8290e- -_0x54a58._0x7908d0,_0x2a872a-_0x54a58._0xdf33a2,_0x24204d,_0xc8290e-_0x54a58._0x26d3a5);}return _0x449716[_0x5bdb68(-_0x47cbf9._0x51ce34,-0x61,-0x149,-_0x47cbf9._0x2af82a)]('\x0a');}function createInvokeCommandTool(_0x65e5f7){const _0x26d494={_0x5ec990:0x484,_0x3a0d65:0x4f3,_0x3eaa8a:0x504,_0x49a3ee:0x6af,_0x26b645:0x660,_0x4424c4:0x5d6,_0xf1969d:0x661,_0x4010e6:0x594,_0x41f9b0:0x466,_0x584c73:0x3ab},_0x3244cd={_0x401feb:0x53c,_0x213c9b:0x459,_0x464c2b:0xab,_0x1f1455:0x60e,_0x41b78e:0xfc,_0x439e0e:0x8a,_0x528e57:0x5c9,_0x2d800c:0x53b,_0x4771ed:0x50d},_0x2c28b1={_0x493b65:0xbe,_0x414ebc:0xe8},_0x38eeeb={_0x5e5780:0x10e},_0x19e912={_0xc2f787:0x1d1,_0x708e1b:0x86};function _0x4fb08f(_0x242628,_0x4f4fa1,_0x1d473d,_0x434469){return _0x2f0acf(_0x4f4fa1-0x2d6,_0x4f4fa1-_0x19e912._0xc2f787,_0x242628,_0x434469-_0x19e912._0x708e1b);}const _0x12a187=new Map(_0x65e5f7[_0x57a58f(0x41f,_0x26d494._0x5ec990,_0x26d494._0x3a0d65,0x413)][_0x4fb08f(0x552,_0x26d494._0x3eaa8a,0x46d,0x579)](_0x3b1341=>[_0x3b1341['id'],_0x3b1341]));function _0x57a58f(_0x9b9cec,_0x2c574e,_0x43439d,_0x567e87){return _0x2f0acf(_0x43439d-0x11a,_0x2c574e-0xd7,_0x9b9cec,_0x567e87-_0x38eeeb._0x5e5780);}const _0x3f0a6a=buildDescription(_0x65e5f7[_0x4fb08f(0x5b6,_0x26d494._0x49a3ee,_0x26d494._0x26b645,0x5e3)]);return defineTool({'name':_0x4fb08f(0x643,0x536,0x601,0x4ed),'description':_0x3f0a6a,'inputSchema':{'type':_0x4fb08f(0x686,_0x26d494._0x4424c4,0x602,0x5f8),'properties':{'name':{'type':_0x4fb08f(0x687,_0x26d494._0xf1969d,0x6e7,0x575)},'args':{'type':'string'}},'required':[_0x57a58f(0x32d,_0x26d494._0x4010e6,_0x26d494._0x41f9b0,_0x26d494._0x584c73)]},async *'execute'(_0x259883){const _0x273252={_0x3c052e:0x1a2},_0x2d0dc8=_0x12a187['get'](_0x259883['name']);function _0x54cedd(_0xd9d9bf,_0x52fa9f,_0x5a0b59,_0xd0015c){return _0x4fb08f(_0xd9d9bf,_0x52fa9f- -0x53e,_0x5a0b59-0xa5,_0xd0015c-_0x273252._0x3c052e);}if(!_0x2d0dc8){const _0x4c0241=Array[_0x23d33c(0x456,_0x3244cd._0x401feb,_0x3244cd._0x213c9b,0x347)](_0x12a187['keys']())['join'](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0x259883[_0x23d33c(0x564,0x4f3,0x473,0x557)]+'\x27\x20not\x20found.\x20Available\x20commands:\x20'+_0x4c0241,{'name':_0x259883['name']});}const _0xdf9013=await _0x65e5f7[_0x54cedd(-0x1a,0x74,0xfd,_0x3244cd._0x464c2b)](_0x2d0dc8),_0x3a7d90=_0x259883[_0x23d33c(_0x3244cd._0x1f1455,0x6a0,0x525,0x689)]??'',_0x35f5ed=renderCommandInstructions({'instructions':_0xdf9013[_0x54cedd(-_0x3244cd._0x41b78e,-0x24,-_0x3244cd._0x439e0e,0xaf)],'argumentsText':_0x3a7d90,'argumentNames':_0xdf9013[_0x54cedd(0x163,0x7a,-0xb0,-0xb1)]});function _0x23d33c(_0x490737,_0x18cdec,_0x354f58,_0x399880){return _0x4fb08f(_0x18cdec,_0x490737- -_0x2c28b1._0x493b65,_0x354f58-_0x2c28b1._0x414ebc,_0x399880-0x65);}return yield createToolOutput(_0x35f5ed,{'id':_0xdf9013['id'],'name':_0xdf9013[_0x23d33c(0x564,_0x3244cd._0x528e57,_0x3244cd._0x2d800c,_0x3244cd._0x4771ed)],'path':_0x2d0dc8['source']['path']}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x14447b,rename as _0x46eec1,stat as _0x2ac566,writeFile as _0x4dd57f}from'fs/promises';import*as _0x3c64ec from'path';function detectEol(_0x24a4ee){const _0xdbd577={_0x3d92f7:0x1ea,_0x5035cb:0x231,_0x348096:0x8c,_0x355eac:0x8d},_0x11d843={_0x56e9b1:0x19,_0x17cfed:0x117},_0x3cf5d0={_0x299ded:0x9c,_0x6461e5:0x1bc,_0x4690ce:0x48};function _0x1f4088(_0x24068a,_0x7f02ee,_0x2e9402,_0x31551d){return _0x2f0acf(_0x2e9402- -_0x3cf5d0._0x299ded,_0x7f02ee-_0x3cf5d0._0x6461e5,_0x24068a,_0x31551d-_0x3cf5d0._0x4690ce);}function _0x4c0f61(_0xa1ef61,_0x2c22bc,_0x27756d,_0x2264fc){return _0x4aa629(_0xa1ef61-0x88,_0x27756d,_0x27756d-_0x11d843._0x56e9b1,_0x2264fc- -_0x11d843._0x17cfed);}return/\r\n/[_0x1f4088(_0xdbd577._0x3d92f7,0x22d,_0xdbd577._0x5035cb,0x1e4)](_0x24a4ee[_0x4c0f61(-_0xdbd577._0x348096,-0xfd,_0xdbd577._0x355eac,0x1)]('utf8'))?'crlf':'lf';}function normalizeToLf(_0x265aa9){const _0x1665ec={_0x31782c:0x230},_0x46f5f0={_0x3aa337:0x10b,_0x314056:0xad,_0x6fb4da:0x316};function _0x5a078a(_0x2fa2ef,_0x2abebf,_0xe73fb6,_0x27b486){return _0x4aa629(_0x2fa2ef-_0x46f5f0._0x3aa337,_0xe73fb6,_0xe73fb6-_0x46f5f0._0x314056,_0x27b486-_0x46f5f0._0x6fb4da);}return _0x265aa9[_0x5a078a(_0x1665ec._0x31782c,0x253,0x14a,0x1b0)](/\r\n/g,'\x0a');}function convertEol(_0x2525ae,_0x2d74f3){const _0x5cb63d={_0x3102ec:0x5a7,_0x465832:0x5f9,_0xc4b8:0x3eb,_0x1087bb:0x468},_0x353ea2={_0x5a7e75:0x588};function _0x1fa697(_0x97e66c,_0x16dc03,_0x376802,_0x186d95){return _0x4aa629(_0x97e66c-0x6b,_0x97e66c,_0x376802-0x10f,_0x376802-_0x353ea2._0x5a7e75);}function _0x46d9f7(_0x7cde16,_0x51e512,_0x4b1bc7,_0x465f31){return _0x4aa629(_0x7cde16-0x8,_0x465f31,_0x4b1bc7-0xcf,_0x51e512-0x5f9);}return _0x2d74f3===_0x1fa697(0x481,0x5cf,_0x5cb63d._0x3102ec,_0x5cb63d._0x465832)?_0x2525ae[_0x46d9f7(0x40f,0x493,_0x5cb63d._0xc4b8,_0x5cb63d._0x1087bb)](/\n/g,'\x0d\x0a'):_0x2525ae;}async function atomicWrite(_0xd1dc58,_0x220f48){const _0x5b69cd={_0x10dadf:0x226,_0x3dc2ed:0x2a6,_0x572bf8:0x345,_0x5d05a7:0x1fe,_0x3e061b:0x13,_0x221a77:0x6e,_0x50af72:0x131,_0x56e7db:0x164,_0x3c8a57:0xe5,_0x2d4993:0x81},_0xf0aff8={_0x5bfd52:0x2c9},_0x3edcf7=_0x3c64ec[_0x578f90(0x2e3,_0x5b69cd._0x10dadf,0x39d,_0x5b69cd._0x3dc2ed)](_0xd1dc58),_0xb031a4=_0x3c64ec[_0x578f90(_0x5b69cd._0x10dadf,0x1d8,_0x5b69cd._0x572bf8,_0x5b69cd._0x5d05a7)](_0x3edcf7,_0x211f71(-_0x5b69cd._0x3e061b,0x58,0x109,0x142)+_0x3c64ec['basename'](_0xd1dc58)+'.'+Date[_0x211f71(_0x5b69cd._0x221a77,_0x5b69cd._0x50af72,_0x5b69cd._0x56e7db,0x210)]()+'.'+Math['random']()[_0x211f71(0x282,0x18c,_0x5b69cd._0x3c8a57,0x1e5)](0x24)[_0x211f71(0xb,-0x8c,0xb0,-_0x5b69cd._0x2d4993)](0x2));await _0x4dd57f(_0xb031a4,_0x220f48);function _0x211f71(_0x1b280e,_0x1cf08a,_0x1c8c07,_0x17af87){return _0x2f0acf(_0x1cf08a- -_0xf0aff8._0x5bfd52,_0x1cf08a-0x10c,_0x1c8c07,_0x17af87-0x26);}function _0x578f90(_0x9bb914,_0x9711f2,_0x393d8a,_0x1a1953){return _0x2f0acf(_0x9bb914- -0xa3,_0x9711f2-0x66,_0x393d8a,_0x1a1953-0xbb);}await _0x46eec1(_0xb031a4,_0xd1dc58);}function sha256(_0xe0bf4b){const _0x2e0923={_0x4b0994:0x28b,_0x275fbf:0x1ed,_0x405f6f:0x2e7,_0xcceacc:0x25d,_0x2ad75c:0x7a,_0x45b1c4:0x115},_0x37ed85={_0x4573ec:0x1bf,_0x35208e:0x16f},_0x2b591a={_0x47279c:0x326};function _0x2ac583(_0x3e4afe,_0x560db1,_0x5d8bc0,_0x5ba858){return _0x4aa629(_0x3e4afe-0x1c1,_0x560db1,_0x5d8bc0-0x10d,_0x5d8bc0-_0x2b591a._0x47279c);}function _0x5c577d(_0x2675c4,_0x41f88a,_0x4cacb6,_0xbaa22f){return _0x4aa629(_0x2675c4-_0x37ed85._0x4573ec,_0x2675c4,_0x4cacb6-0x5,_0xbaa22f- -_0x37ed85._0x35208e);}return createHash(_0x5c577d(-_0x2e0923._0x4b0994,-_0x2e0923._0x275fbf,-0x2d1,-0x1c6))[_0x2ac583(0x358,0x4e5,0x3fd,_0x2e0923._0x405f6f)](_0xe0bf4b)[_0x5c577d(0x3,-0x3b,-0xb4,-0xc4)](_0x5c577d(0x7,-_0x2e0923._0xcceacc,-_0x2e0923._0x2ad75c,-_0x2e0923._0x45b1c4));}function countLines(_0x21d662){const _0x43217d={_0x342fd3:0x13f,_0xfed89:0x207,_0x35baf9:0x14c,_0x13ff6d:0x165},_0x10aba4=_0x21d662['replace'](/\n$/,'');function _0x3c4f36(_0x58fce2,_0x565175,_0x3b48cb,_0x6a2d4c){return _0x2f0acf(_0x6a2d4c- -0x15e,_0x565175-0x18,_0x565175,_0x6a2d4c-0x11c);}return _0x10aba4[_0x3c4f36(_0x43217d._0x342fd3,_0x43217d._0xfed89,_0x43217d._0x35baf9,_0x43217d._0x13ff6d)]===0x0?0x0:_0x10aba4['split']('\x0a')['length'];}function calculateLineNumbers(_0x4c84ec,_0x54d15f,_0x3f3345,_0x4610aa){const _0x301f68={_0x16de96:0x480,_0x49caa1:0x52,_0x36c664:0x74,_0x23e7bc:0x84},_0x4f5d5e={_0x3b2bed:0x8a,_0x33c25d:0x28},_0x547949={_0x21a79a:0x131};function _0x12e2ba(_0x254b33,_0x4b6888,_0x121e41,_0x38f87e){return _0x2f0acf(_0x4b6888-0x6a,_0x4b6888-0x8a,_0x121e41,_0x38f87e-_0x547949._0x21a79a);}const _0x368fe4=_0x4c84ec[_0x12e2ba(0x238,0x2a7,0x356,0x170)](0x0,_0x4610aa)[_0x12e2ba(0x461,_0x301f68._0x16de96,0x352,0x3ee)]('\x0a')[_0x1a0afd(-_0x301f68._0x49caa1,_0x301f68._0x36c664,_0x301f68._0x23e7bc,-0xe0)],_0xa8237a=countLines(_0x54d15f);function _0x1a0afd(_0x3720a3,_0x4a5a07,_0x1cb587,_0x4aedf8){return _0x4aa629(_0x3720a3-_0x4f5d5e._0x3b2bed,_0x4aedf8,_0x1cb587-0x11f,_0x3720a3-_0x4f5d5e._0x33c25d);}const _0x1cf6b5=countLines(_0x3f3345);return{'oldStartLine':_0x368fe4,'oldEndLine':_0x368fe4+_0xa8237a-0x1,'newStartLine':_0x368fe4,'newEndLine':_0x368fe4+_0x1cf6b5-0x1,'oldLineCount':_0xa8237a,'newLineCount':_0x1cf6b5};}function createFileEditTool(_0x1fc68e={}){const _0x3a14db={_0x53827e:0x352,_0x3a668c:0x25d,_0x48e580:0x3ed,_0x4c4000:0xbf,_0x4e594c:0x20b,_0x3538cc:0x134,_0x616b10:0x530,_0x33a11e:0x4ec,_0x89762:0x156,_0x4ab4ab:0x2d2,_0x2bc849:0x1d9,_0x438175:0x42e,_0x4ce325:0x35a,_0x4ab452:0x472,_0x5e767d:0x217,_0x4b1fbc:0x10,_0x568a70:0x4db,_0x33a6dd:0x49,_0x4159e3:0xe9,_0x192849:0xbf,_0x4962a9:0x14a,_0x2ff0ef:0x19c,_0x4a693c:0x14c,_0x10bbd9:0x165,_0x31d39a:0x12b,_0x18de17:0x1ca},_0x149913={_0x369560:0x1be,_0xde005c:0xab,_0x4d44cf:0x347,_0x10cf57:0x3d5,_0x441ae2:0x2a4,_0x1e43a5:0x31e,_0x59838a:0x330,_0x413130:0x30b,_0x199558:0x284,_0x307930:0x125,_0x65bcbb:0x9d,_0x452b1e:0xc9,_0x503860:0x1ee,_0x57c45a:0x211,_0x7dc36f:0xdc,_0x771424:0x2e0,_0x402bad:0x2cd,_0x5de2d6:0x18b,_0xa2f513:0x1c0,_0x36528a:0x17b,_0xbf38dd:0x1c,_0x1f814e:0x12f,_0x3d1876:0x13b,_0x57816c:0x1ad,_0x29589a:0x20f,_0xb5de2c:0x18a,_0x1c5c14:0x13d,_0x44ca9b:0x2f2,_0x49cdc0:0x31f,_0x282d8e:0x182,_0xe41b37:0x218,_0x1e9a7a:0x1ca,_0x3faab1:0x33d,_0x33b41d:0x34d,_0x376b95:0x3f3,_0x281ff1:0x26a,_0x57790b:0x20f},_0x2d8a5c={_0x5a8d20:0x188},_0x37ad11=_0x3c64ec[_0x990481(_0x3a14db._0x53827e,_0x3a14db._0x3a668c,_0x3a14db._0x48e580,0x262)](_0x1fc68e[_0x5adc36(_0x3a14db._0x4c4000,_0x3a14db._0x4e594c,0x269,_0x3a14db._0x3538cc)]??process[_0x990481(_0x3a14db._0x616b10,0x63a,0x50a,_0x3a14db._0x33a11e)]()),_0x587454=(_0x1fc68e[_0x5adc36(_0x3a14db._0x89762,_0x3a14db._0x4ab4ab,0x10d,0x1fa)]??[])[_0x990481(0x310,0x25a,0x1e3,_0x3a14db._0x2bc849)](_0x5ddf2e=>_0x3c64ec['resolve'](_0x5ddf2e));function _0x5adc36(_0xba999c,_0x423a92,_0x5b115e,_0x33810a){return _0x4aa629(_0xba999c-0xb6,_0x5b115e,_0x5b115e-0x81,_0x33810a-0xfc);}function _0x990481(_0x44506b,_0x33f09b,_0x325c88,_0x5b1c2f){return _0x2f0acf(_0x44506b-0xe2,_0x33f09b-0x1b,_0x325c88,_0x5b1c2f-_0x2d8a5c._0x5a8d20);}const _0x155254=_0x1fc68e[_0x990481(_0x3a14db._0x438175,_0x3a14db._0x4ce325,_0x3a14db._0x4ab452,0x420)]??_0x5adc36(_0x3a14db._0x5e767d,_0x3a14db._0x4b1fbc,0x16e,0x137);return defineTool({'name':_0x155254,'description':_0x990481(0x395,_0x3a14db._0x568a70,0x45e,0x377),'inputSchema':{'type':_0x5adc36(_0x3a14db._0x33a6dd,-0x24,_0x3a14db._0x4159e3,_0x3a14db._0x192849),'properties':{'filePath':{'type':'string'},'oldText':{'type':_0x5adc36(0x184,0x1fd,0xa3,_0x3a14db._0x4962a9)},'newText':{'type':'string'},'dryRun':{'type':'boolean'}},'required':[_0x5adc36(_0x3a14db._0x2ff0ef,0xad,_0x3a14db._0x4a693c,0x8b),'oldText',_0x5adc36(0x1b7,_0x3a14db._0x10bbd9,_0x3a14db._0x31d39a,_0x3a14db._0x18de17)]},async *'execute'(_0x363efc){const _0x4a9164={_0x18d545:0x136,_0x3685a7:0x133},_0x1886e9={_0x3cd475:0xbb},_0x197ada=resolveAllowedPath(_0x37ad11,_0x587454,_0x363efc[_0x2727c8(0x1dc,_0x149913._0x369560,_0x149913._0xde005c,0x191)]);await assertWorkspaceFile(_0x197ada);const _0x1f3c36=await _0x2ac566(_0x197ada),_0x1fc69b=await _0x14447b(_0x197ada),_0x35034d=detectEol(_0x1fc69b),_0x1ad443=normalizeToLf(_0x1fc69b[_0x2727c8(0x345,_0x149913._0x4d44cf,_0x149913._0x10cf57,0x332)]('utf8')),_0x45b580=normalizeToLf(_0x363efc[_0x79218e(_0x149913._0x441ae2,0x431,_0x149913._0x1e43a5,_0x149913._0x59838a)]),_0x8dcaaf=normalizeToLf(_0x363efc[_0x2727c8(_0x149913._0x413130,0x2fd,_0x149913._0x199558,0x221)]),_0x4b5111=_0x1ad443['indexOf'](_0x45b580);if(_0x4b5111===-0x1){const _0x40c668=_0x45b580[_0x2727c8(_0x149913._0x307930,0x12f,0x2e,0x1f)](0x0,0x64)[_0x2727c8(_0x149913._0x65bcbb,_0x149913._0x452b1e,0x99,_0x149913._0x503860)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x40c668+(_0x45b580[_0x79218e(_0x149913._0x57c45a,_0x149913._0x7dc36f,0x20f,0x2b8)]>0x64?_0x79218e(_0x149913._0x771424,0x2b9,_0x149913._0x402bad,0x202):'')+'\x22',{'filePath':_0x363efc[_0x79218e(_0x149913._0x5de2d6,_0x149913._0xa2f513,0x218,_0x149913._0x36528a)]});}const _0x1f4d0e=_0x1ad443['slice'](0x0,_0x4b5111)+_0x8dcaaf+_0x1ad443[_0x2727c8(_0x149913._0xbf38dd,_0x149913._0x1f814e,0x242,_0x149913._0x3d1876)](_0x4b5111+_0x45b580[_0x79218e(_0x149913._0x57816c,0x1eb,_0x149913._0x29589a,0x16b)]),_0x3967cc=convertEol(_0x1f4d0e,_0x35034d),_0x3dea90=Buffer[_0x79218e(0x22b,0x5e,_0x149913._0xb5de2c,0x1d3)](_0x3967cc,'utf8'),_0x16f271=sha256(_0x1fc69b),_0x35eb4f=sha256(_0x3dea90),_0x1e9b52=_0x16f271===_0x35eb4f,_0x273ade=_0x363efc[_0x2727c8(0x46,_0x149913._0x1c5c14,0xb8,0x1a3)]??![];!_0x273ade&&!_0x1e9b52&&await atomicWrite(_0x197ada,_0x3dea90);function _0x79218e(_0x499e35,_0x51592a,_0x3aabd1,_0x1e8efd){return _0x990481(_0x3aabd1- -0x196,_0x51592a-_0x1886e9._0x3cd475,_0x51592a,_0x1e8efd-0x13e);}function _0x2727c8(_0x2b46b8,_0x554b3f,_0x5b55fb,_0x575174){return _0x5adc36(_0x2b46b8-0x56,_0x554b3f-_0x4a9164._0x18d545,_0x2b46b8,_0x554b3f-_0x4a9164._0x3685a7);}return yield createToolOutput(_0x1e9b52?'No\x20changes\x20(content\x20identical).':_0x273ade?'Validated\x20(dry\x20run:\x20no\x20write).':_0x2727c8(0x24e,_0x149913._0x44ca9b,0x305,_0x149913._0x49cdc0),{'filePath':_0x363efc[_0x79218e(0x296,_0x149913._0x282d8e,_0x149913._0xe41b37,_0x149913._0x1e9a7a)],'resolvedPath':_0x197ada,'created':_0x1f3c36[_0x79218e(0x320,_0x149913._0x3faab1,_0x149913._0x33b41d,_0x149913._0x376b95)]['toISOString'](),'modified':_0x1f3c36['mtime'][_0x79218e(0x13e,0x6d,0x11b,0xa6)](),'size':_0x1f3c36['size'],'eol':_0x35034d,'oldTextLength':_0x45b580['length'],'newTextLength':_0x8dcaaf[_0x79218e(_0x149913._0x281ff1,0x2b2,_0x149913._0x57790b,0x210)],'bytesWritten':_0x1e9b52||_0x273ade?0x0:_0x3dea90['length'],'beforeSha':_0x16f271,'afterSha':_0x35eb4f,'dryRun':_0x273ade,'noChange':_0x1e9b52,'lineNumbers':calculateLineNumbers(_0x1ad443,_0x45b580,_0x8dcaaf,_0x4b5111)}),void 0x0;}});}import{mkdir as _0xcffba8,rename as _0x355b12,stat as _0x1eec04,writeFile as _0x2791cb}from'fs/promises';import*as _0x51deba from'path';async function atomicWrite2(_0x52ad08,_0x1efda0){const _0x4159d5={_0x3e3228:0x558,_0x3a9594:0x1b9,_0x13edba:0x180,_0x300747:0x31,_0x1acc66:0x1a4,_0x4b5b37:0x30c,_0x426c37:0x3f3,_0x1976d3:0x4cc,_0x479ae9:0x550},_0x5ca33f={_0x583224:0x145,_0x1dbc5c:0x156,_0x7ced1f:0x19c},_0x2f2b65={_0xd60504:0xc0,_0x3b5f7e:0x13e,_0x254af5:0x5cc},_0xc3384d=_0x51deba['dirname'](_0x52ad08);await _0xcffba8(_0xc3384d,{'recursive':!![]});const _0x500b47=_0x51deba[_0x51113f(0x60a,_0x4159d5._0x3e3228,0x656,0x5ad)](_0xc3384d,_0x23744(_0x4159d5._0x3a9594,0xde,_0x4159d5._0x13edba,0xa0)+_0x51deba[_0x23744(0x1fb,-0x48,0xd4,-_0x4159d5._0x300747)](_0x52ad08)+'.'+Date[_0x23744(0x32f,_0x4159d5._0x1acc66,0x259,0x1dc)]()+'.'+Math['random']()[_0x23744(_0x4159d5._0x4b5b37,_0x4159d5._0x426c37,0x2b4,0x294)](0x24)[_0x51113f(0x567,_0x4159d5._0x1976d3,0x54b,_0x4159d5._0x479ae9)](0x2));function _0x51113f(_0x51fade,_0x4fe12a,_0x5c41fc,_0x7ab694){return _0x4aa629(_0x51fade-_0x2f2b65._0xd60504,_0x7ab694,_0x5c41fc-_0x2f2b65._0x3b5f7e,_0x4fe12a-_0x2f2b65._0x254af5);}function _0x23744(_0x3554d8,_0x72c6f3,_0x48d7d3,_0x403b5a){return _0x4aa629(_0x3554d8-_0x5ca33f._0x583224,_0x3554d8,_0x48d7d3-_0x5ca33f._0x1dbc5c,_0x48d7d3-_0x5ca33f._0x7ced1f);}await _0x2791cb(_0x500b47,_0x1efda0),await _0x355b12(_0x500b47,_0x52ad08);}function createFileNewTool(_0x39ecb4={}){const _0x5c0f51={_0x44648e:0x607,_0x328553:0x72c,_0x2d5aa0:0xcf,_0xb0066f:0x4f,_0x41db8c:0x77,_0x549504:0x70,_0x5a7dca:0xa1,_0x4122e0:0x1b7,_0x383892:0x4,_0x51ad8d:0xf7,_0x3da0ba:0x134,_0x28cc1b:0x40,_0x2b7136:0xfc,_0x49401f:0x175,_0x26fff6:0x1c,_0x1da621:0xff,_0x25fbd1:0x55e,_0x2d4b24:0x672,_0xd72773:0x6ba},_0x485664={_0x277fe1:0x5ab,_0x2a3b9e:0x691,_0x35f599:0x78d,_0x3d4cb3:0x5f4,_0x54ff2f:0x5a3,_0x36a296:0x631,_0x120327:0x4f8,_0x15e699:0x632,_0x155141:0x582,_0x45f219:0x620,_0x466c88:0x6fb,_0x1e698e:0x4a7,_0x1b846b:0x555,_0x2ecc5f:0x43a,_0x193356:0x6a9,_0x1b6e3a:0x803,_0x1f0ebb:0x6cb,_0x1034c2:0x6e3,_0x3e3512:0x6cc,_0x4bc33f:0x75d,_0x218c38:0x5c9,_0x1c0fbf:0x5ae},_0x4f060b={_0x146e95:0x141,_0x98e27f:0x59,_0x3afb45:0xb5},_0x51e809={_0x2b7eb2:0x681},_0x1a4b95={_0x3b4491:0x33,_0x331ece:0x178},_0xae4691={_0x1a81f8:0x292,_0x1ded61:0xa};function _0x52e8f3(_0x5da735,_0x46c854,_0x1561c3,_0xdb2551){return _0x2f0acf(_0x1561c3-_0xae4691._0x1a81f8,_0x46c854-_0xae4691._0x1ded61,_0x5da735,_0xdb2551-0xf2);}function _0x18d3c6(_0x59e5f3,_0x17291f,_0x55bb5b,_0x4c80e4){return _0x2f0acf(_0x4c80e4- -0x3cb,_0x17291f-_0x1a4b95._0x3b4491,_0x17291f,_0x4c80e4-_0x1a4b95._0x331ece);}const _0x1c014b=_0x51deba['resolve'](_0x39ecb4[_0x52e8f3(0x6e7,0x613,_0x5c0f51._0x44648e,0x597)]??process[_0x52e8f3(_0x5c0f51._0x328553,0x5d2,0x6e0,0x72f)]()),_0x5eba06=(_0x39ecb4[_0x18d3c6(_0x5c0f51._0x2d5aa0,_0x5c0f51._0xb0066f,-_0x5c0f51._0x41db8c,_0x5c0f51._0x549504)]??[])[_0x52e8f3(0x411,0x3b8,0x4c0,0x572)](_0x544a3b=>_0x51deba[_0x18d3c6(-0x1ac,-0x88,-0x194,-0x15b)](_0x544a3b)),_0x4aa7d9=_0x39ecb4[_0x18d3c6(_0x5c0f51._0x5a7dca,-_0x5c0f51._0x4122e0,-0x1c7,-0x7f)]??'FileNew';return defineTool({'name':_0x4aa7d9,'description':'Create\x20or\x20overwrite\x20a\x20UTF-8\x20text\x20file\x20in\x20the\x20workspace\x20or\x20allowed\x20directories.','inputSchema':{'type':_0x18d3c6(-0x41,-0x1a7,-_0x5c0f51._0x383892,-0xcb),'properties':{'filePath':{'type':_0x18d3c6(_0x5c0f51._0x51ad8d,-_0x5c0f51._0x3da0ba,-0x22,-_0x5c0f51._0x28cc1b)},'content':{'type':'string'}},'required':[_0x18d3c6(-_0x5c0f51._0x2b7136,-_0x5c0f51._0x49401f,_0x5c0f51._0x26fff6,-_0x5c0f51._0x1da621),_0x52e8f3(_0x5c0f51._0x25fbd1,0x59b,_0x5c0f51._0x2d4b24,_0x5c0f51._0xd72773)]},async *'execute'(_0x5d9426){const _0xae03ad=resolveAllowedPath(_0x1c014b,_0x5eba06,_0x5d9426['filePath']);function _0x1ce2b6(_0x385a54,_0x405418,_0x2d7527,_0x149455){return _0x18d3c6(_0x385a54-0x18b,_0x2d7527,_0x2d7527-0x1b8,_0x405418-_0x51e809._0x2b7eb2);}const _0x2f5630=await _0x1eec04(_0xae03ad)[_0x1ce2b6(0x619,0x564,_0x485664._0x277fe1,_0x485664._0x2a3b9e)](()=>!![])[_0x5d3d69(0x7ac,_0x485664._0x35f599,0x68a,0x595)](()=>![]),_0x2b277d=Buffer['from'](_0x5d9426[_0x5d3d69(0x653,_0x485664._0x3d4cb3,0x6cb,_0x485664._0x54ff2f)],'utf8');await atomicWrite2(_0xae03ad,_0x2b277d);function _0x5d3d69(_0x54dec1,_0x3987f5,_0x326ea7,_0x3ea739){return _0x52e8f3(_0x3987f5,_0x3987f5-_0x4f060b._0x146e95,_0x326ea7-_0x4f060b._0x98e27f,_0x3ea739-_0x4f060b._0x3afb45);}return yield createToolOutput(_0x1ce2b6(0x762,_0x485664._0x36a296,_0x485664._0x120327,_0x485664._0x15e699)+_0x5d9426[_0x1ce2b6(0x457,_0x485664._0x155141,0x4d8,_0x485664._0x45f219)]+'.',{'filePath':_0x5d9426[_0x5d3d69(_0x485664._0x466c88,0x696,0x5b7,_0x485664._0x1e698e)],'resolvedPath':_0xae03ad,'bytes':_0x2b277d[_0x1ce2b6(0x545,0x579,_0x485664._0x1b846b,_0x485664._0x2ecc5f)],'lines':_0x5d9426[_0x5d3d69(_0x485664._0x193356,_0x485664._0x1b6e3a,_0x485664._0x1f0ebb,_0x485664._0x1034c2)][_0x1ce2b6(0x60b,_0x485664._0x3e3512,_0x485664._0x4bc33f,0x733)](/\r?\n/)[_0x5d3d69(_0x485664._0x218c38,0x477,_0x485664._0x1c0fbf,0x533)],'created':new Date()[_0x5d3d69(0x573,0x451,0x4ba,0x432)](),'overwritten':_0x2f5630}),void 0x0;}});}import{readFile as _0x46f4da,stat as _0xddb0a4}from'fs/promises';import*as _0x5c6f0a from'path';function stripUtfBom(_0x51f155){const _0x6a952={_0x46fd54:0xfb,_0x171c37:0x19f,_0x4fa919:0x1c6},_0x555c94={_0x47d000:0xa,_0x2d970e:0xde},_0x2db325={_0x73b8e5:0x3f5,_0x3f3275:0x145,_0xf7862c:0x135};function _0x3d2e00(_0x2897b8,_0x48bc39,_0x592bc2,_0x1ccaac){return _0x2f0acf(_0x2897b8- -_0x2db325._0x73b8e5,_0x48bc39-_0x2db325._0x3f3275,_0x1ccaac,_0x1ccaac-_0x2db325._0xf7862c);}function _0x190c97(_0x1e0982,_0x215373,_0x386fb5,_0xb50d36){return _0x4aa629(_0x1e0982-_0x555c94._0x47d000,_0x386fb5,_0x386fb5-_0x555c94._0x2d970e,_0xb50d36-0xc);}return _0x51f155[_0x190c97(0xe3,0x6b,-_0x6a952._0x46fd54,-0x1b)](0x0)===0xfeff?_0x51f155[_0x190c97(-_0x6a952._0x171c37,0x1,-_0x6a952._0x4fa919,-0xf4)](0x1):_0x51f155;}function clampLine(_0x31a5c7,_0x3e72c9){const _0x32446d={_0x1c43e4:0x18a,_0x2702bb:0x179,_0x1ad5e8:0x52,_0x1ccb79:0xc,_0x53d5dd:0x190,_0x6d397c:0x119,_0xc71547:0x153,_0x92b91b:0x14d,_0x2d3db8:0x25f},_0x3d9378={_0x5b7576:0xd1,_0x44b0e0:0xf1};function _0x489ffa(_0x42627a,_0x5a9c5e,_0x51b1e7,_0x57ff0a){return _0x2f0acf(_0x57ff0a- -0x1c6,_0x5a9c5e-_0x3d9378._0x5b7576,_0x42627a,_0x57ff0a-_0x3d9378._0x44b0e0);}function _0x310197(_0x43b553,_0x5e9f7f,_0x1032e6,_0x1c3bde){return _0x4aa629(_0x43b553-0x18d,_0x1032e6,_0x1032e6-0x18e,_0x43b553- -0xda);}if(!Number[_0x310197(-_0x32446d._0x1c43e4,-0x1b1,-0x292,-0x112)](_0x31a5c7))return 0x1;return Math[_0x310197(-0x13f,-_0x32446d._0x2702bb,-0x126,-_0x32446d._0x1ad5e8)](0x1,Math[_0x489ffa(_0x32446d._0x1ccb79,_0x32446d._0x53d5dd,-0xb,_0x32446d._0x6d397c)](Math[_0x489ffa(0x244,_0x32446d._0xc71547,_0x32446d._0x92b91b,_0x32446d._0x2d3db8)](_0x31a5c7),_0x3e72c9));}function createFileReadTool(_0x3dfca4={}){const _0x5589aa={_0x137aaf:0x118,_0x403ab6:0x228,_0x2e85bb:0x21d,_0x242970:0x2f6,_0x421fb7:0x1bf,_0x39b0db:0x42a,_0x2f6eae:0x8d,_0x48d62c:0x1b8,_0x3b8a2e:0x116,_0x3e9406:0xd6,_0x3e8867:0x1a4,_0x515934:0x1a5,_0x37e786:0x19a,_0x5e790d:0x233,_0x59d545:0x326,_0x3e1294:0x2b8,_0x22d10c:0x2bd,_0x65a9b:0x1c4,_0x13ca52:0x21b},_0x1dd280={_0x3d8585:0x1c3,_0x41b25c:0x5f1,_0x2f85d8:0x6a,_0x3afbe0:0x10f,_0x34c68f:0xdd,_0x3e1111:0x22,_0x2b5ee9:0x28,_0x4f03ee:0x67,_0x4751c8:0x137,_0x42404b:0x10a,_0x22bca3:0x7be,_0xe59c4b:0x363,_0x1e9327:0x47d,_0x5402f1:0x56b,_0xc59ee4:0x3c2,_0x243a36:0x219,_0x26f1a1:0x1da,_0x1bd529:0x1e5,_0x1bacd2:0x7e,_0x25e341:0x16a,_0xb01577:0x6ff,_0x2861c5:0x682,_0xb22a44:0x571,_0x4ac273:0xa0,_0x27577b:0x486,_0x121821:0x58d,_0x452b73:0x561,_0x2626f3:0x586,_0x543908:0x528,_0x55c210:0x426,_0x55daa7:0x4eb,_0x3d4297:0x51a,_0x5acdab:0x21d,_0x3566d9:0x16c,_0x16d05f:0xe9},_0x50fa90={_0x5546b2:0x75c,_0x419367:0xbc},_0x347cea={_0x3992ca:0x155,_0x1deb04:0x1c4,_0x502ab2:0x1e5},_0x3673f6={_0xf55d67:0x171},_0xd63177=_0x5c6f0a[_0xaf97a7(0x13f,_0x5589aa._0x137aaf,-0x23,-0x28)](_0x3dfca4[_0xaf97a7(_0x5589aa._0x403ab6,_0x5589aa._0x2e85bb,0x240,0x115)]??process[_0xaf97a7(0x2f5,_0x5589aa._0x242970,_0x5589aa._0x421fb7,_0x5589aa._0x39b0db)]()),_0x29d48b=(_0x3dfca4[_0x476900(-0x73,-_0x5589aa._0x2f6eae,0x74,-_0x5589aa._0x48d62c)]??[])[_0xaf97a7(_0x5589aa._0x3b8a2e,_0x5589aa._0x3e9406,0x1ce,-0x1f)](_0x55b516=>_0x5c6f0a[_0x476900(-0x23e,-0x139,-0x290,-0x27a)](_0x55b516));function _0x476900(_0x362265,_0x147649,_0x176806,_0x521fbd){return _0x4aa629(_0x362265-0xb6,_0x521fbd,_0x176806-0xd8,_0x362265- -_0x3673f6._0xf55d67);}function _0xaf97a7(_0x21c2c3,_0x2687ff,_0x307d17,_0x334dc9){return _0x4aa629(_0x21c2c3-_0x347cea._0x3992ca,_0x307d17,_0x307d17-_0x347cea._0x1deb04,_0x2687ff-_0x347cea._0x502ab2);}const _0xc16378=_0x3dfca4['name']??'FileRead';return defineTool({'name':_0xc16378,'description':_0xaf97a7(0x1ba,_0x5589aa._0x3e8867,0x291,_0x5589aa._0x515934),'inputSchema':{'type':_0x476900(-0x1ae,-0x113,-0x275,-0x228),'properties':{'path':{'type':_0xaf97a7(_0x5589aa._0x37e786,_0x5589aa._0x5e790d,0x2b7,_0x5589aa._0x59d545)},'lineStart':{'type':_0xaf97a7(0x31e,_0x5589aa._0x3e1294,0x3f0,0x1f6)},'lineEnd':{'type':_0xaf97a7(_0x5589aa._0x22d10c,_0x5589aa._0x3e1294,0x3a3,0x286)}},'required':[_0x476900(-_0x5589aa._0x65a9b,-_0x5589aa._0x13ca52,-0x296,-0xe0)]},async *'execute'(_0x30096f){const _0x2b4164={_0x78e40f:0x81,_0x3c8dac:0x13c},_0x1933d1=resolveAllowedPath(_0xd63177,_0x29d48b,_0x30096f[_0x1eefc4(-_0x1dd280._0x3d8585,-0xd0,-0x135,-0x143)]);await assertWorkspaceFile(_0x1933d1);const _0x55070e=await _0xddb0a4(_0x1933d1),_0x1e4311=await _0x46f4da(_0x1933d1);if(isProbablyBinary(_0x1e4311))throw new ToolExecutionError(_0x19ff02(0x628,0x5b9,_0x1dd280._0x41b25c,0x505)+_0x30096f[_0x1eefc4(-_0x1dd280._0x2f85d8,-0xce,-_0x1dd280._0x3afbe0,-0x143)],{'path':_0x30096f['path']});function _0x19ff02(_0x25f4c7,_0x47b548,_0x405972,_0x4bfd6b){return _0x476900(_0x47b548-_0x50fa90._0x5546b2,_0x47b548-_0x50fa90._0x419367,_0x405972-0x18e,_0x405972);}let _0x3528fc=_0x1e4311[_0x1eefc4(-0x64,_0x1dd280._0x34c68f,-_0x1dd280._0x3e1111,_0x1dd280._0x2b5ee9)](_0x1eefc4(-0x25f,-0x132,-_0x1dd280._0x4f03ee,-0x1a8));const _0x103fcb=_0x3528fc[_0x1eefc4(-0x150,0x29,-_0x1dd280._0x4751c8,-0x117)](0x0)===0xfeff;_0x3528fc=stripUtfBom(_0x3528fc);const _0x1604f7=_0x3528fc['split'](/\r?\n/),_0x1ed720={'path':_0x30096f[_0x1eefc4(-0xe2,-0x159,-_0x1dd280._0x42404b,-0x143)],'resolvedPath':_0x1933d1,'created':_0x55070e[_0x19ff02(0x755,0x6af,0x676,_0x1dd280._0x22bca3)]['toISOString'](),'modified':_0x55070e[_0x1eefc4(-0x215,-0x1c4,-0x2d4,-0x1df)][_0x19ff02(_0x1dd280._0xe59c4b,_0x1dd280._0x1e9327,_0x1dd280._0x5402f1,_0x1dd280._0xc59ee4)](),'size':_0x55070e['size'],'encoding':_0x1eefc4(-_0x1dd280._0x243a36,-_0x1dd280._0x26f1a1,-_0x1dd280._0x1bd529,-0x1a8),'bomStripped':_0x103fcb,'truncated':![],'totalLines':_0x1604f7[_0x1eefc4(-_0x1dd280._0x1bacd2,-0x194,-0x1b6,-_0x1dd280._0x25e341)]};if(_0x30096f[_0x19ff02(0x579,0x68a,0x7ad,_0x1dd280._0xb01577)]!==void 0x0||_0x30096f[_0x19ff02(0x591,0x59c,0x6df,_0x1dd280._0x2861c5)]!==void 0x0){const _0x358d49=clampLine(_0x30096f['lineStart']??0x1,_0x1604f7['length']),_0x2d3b9f=clampLine(_0x30096f['lineEnd']??_0x1604f7[_0x19ff02(0x53d,_0x1dd280._0xb22a44,0x60f,0x4ac)],_0x1604f7[_0x1eefc4(-_0x1dd280._0x4ac273,-0x1f0,-0x271,-_0x1dd280._0x25e341)]),_0x475755=Math[_0x19ff02(_0x1dd280._0x27577b,_0x1dd280._0x121821,0x588,_0x1dd280._0x452b73)](_0x358d49,_0x2d3b9f),_0x3049f2=Math[_0x19ff02(0x660,_0x1dd280._0x2626f3,_0x1dd280._0x543908,0x58e)](_0x358d49,_0x2d3b9f),_0x68d349=_0x1604f7[_0x19ff02(_0x1dd280._0x55c210,_0x1dd280._0x55daa7,0x4ea,_0x1dd280._0x3d4297)](_0x475755-0x1,_0x3049f2)['map']((_0x55b6b4,_0x3df5e8)=>_0x475755+_0x3df5e8+'|'+_0x55b6b4)[_0x1eefc4(-_0x1dd280._0x5acdab,-_0x1dd280._0x3566d9,-_0x1dd280._0x16d05f,-0x164)]('\x0a');return yield createToolOutput(_0x68d349,{..._0x1ed720,'lineRange':{'lineStart':_0x475755,'lineEnd':_0x3049f2,'linesTotal':_0x1604f7['length']}}),void 0x0;}function _0x1eefc4(_0x274aaf,_0x318635,_0x529e0e,_0x178bbd){return _0x476900(_0x178bbd-_0x2b4164._0x78e40f,_0x318635-_0x2b4164._0x3c8dac,_0x529e0e-0xb1,_0x318635);}return yield createToolOutput(_0x3528fc,_0x1ed720),void 0x0;}});}import{stat as _0x431b3e}from'fs/promises';import*as _0xcae91e from'path';import{execSync,spawn as _0x2cfd50}from'child_process';import{existsSync}from'fs';import{stat as _0x27acd9}from'fs/promises';import*as _0x3be73 from'os';import*as _0x4bd6bb from'path';import{rgPath as _0x10a83a}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x36b770={_0x464573:0x16a,_0x508394:0x6,_0x10ecb3:0xe6,_0x313229:0x16f,_0x222755:0x255,_0x5ccac6:0xe4,_0xa677d:0xe9,_0x31034f:0x158,_0xfa3b11:0x2bd,_0x143205:0x3c6,_0x1c81c4:0x2a1,_0x5b49ac:0x7a,_0x535201:0x39c,_0x420ce5:0xe5,_0x4051aa:0x15c,_0x22259f:0x5c,_0x47d51a:0x2ed,_0x253af1:0x225,_0xa6b9bd:0x238,_0x27f1e2:0x1ef,_0x4c7592:0x1aa,_0x123f97:0x146,_0x4965e4:0xf7,_0xc5f8a:0x1c8,_0x43ad6e:0x144,_0x155a42:0x4e,_0x5c5223:0x187,_0x4466b9:0x1da,_0xea432d:0x1b4,_0x2f102b:0x9a,_0x5c3ae3:0x2c,_0x8c47f3:0x33,_0x1db4f3:0x1ee,_0x28642e:0x27f,_0x182c0f:0xf6,_0xbd52d5:0xa9,_0x1e71a7:0x15,_0x4325ab:0x1f7,_0x3f8512:0x206,_0x1dab57:0x180,_0x89eea4:0x66,_0x1487e8:0xe0,_0x49c082:0x5a,_0x5e5813:0x29c,_0xa98307:0x1ac,_0x181285:0x75},_0x399307={_0x4887a:0x48b,_0x1ee7c8:0x195},_0x3a7b2e={_0x19a87d:0x185},_0x45a565=_0x3be73[_0x5a3d04(_0x36b770._0x464573,-_0x36b770._0x508394,_0x36b770._0x10ecb3,0x1f3)]()===_0x5a3d04(_0x36b770._0x313229,_0x36b770._0x222755,0x272,0x15a),_0x35b12f=_0x45a565?[_0x4bd6bb[_0x31eb29(-_0x36b770._0x5ccac6,-0x1b4,-0x94,-0x1c2)](process['env'][_0x31eb29(-0x112,-_0x36b770._0xa677d,-_0x36b770._0x31034f,-0x119)]||'',_0x31eb29(-_0x36b770._0xfa3b11,-0x268,-_0x36b770._0x143205,-_0x36b770._0x1c81c4),_0x5a3d04(0x199,0xc9,_0x36b770._0x5b49ac,0x15b),_0x5a3d04(0x248,_0x36b770._0x535201,0x2a2,0x340)),_0x4bd6bb[_0x5a3d04(_0x36b770._0x420ce5,0x9b,0x144,0x101)](process['env'][_0x31eb29(-_0x36b770._0x4051aa,0xc,0x33,-_0x36b770._0x22259f)]||'',_0x31eb29(-_0x36b770._0x47d51a,-_0x36b770._0x253af1,-_0x36b770._0xa6b9bd,-_0x36b770._0x27f1e2),_0x5a3d04(0xda,0x128,_0x36b770._0x4c7592,_0x36b770._0x123f97)),_0x4bd6bb[_0x5a3d04(_0x36b770._0x4965e4,_0x36b770._0xc5f8a,_0x36b770._0x43ad6e,_0x36b770._0x155a42)](process['env']['ProgramFiles(x86)']||'','ripgrep','rg.exe')]:[_0x31eb29(-_0x36b770._0x5c5223,-0x2be,-_0x36b770._0x4466b9,-_0x36b770._0xea432d),_0x31eb29(-_0x36b770._0x2f102b,_0x36b770._0x5c3ae3,0xe6,-_0x36b770._0x8c47f3),_0x5a3d04(_0x36b770._0x1db4f3,0x23d,_0x36b770._0x28642e,_0x36b770._0x253af1),_0x31eb29(-0x303,-0x21a,-_0x36b770._0x182c0f,-0x1e6)];for(const _0x359890 of _0x35b12f){if(existsSync(_0x359890))return _0x359890;}function _0x5a3d04(_0xd56ea2,_0x1e4dee,_0x160e77,_0x58669b){return _0x2f0acf(_0x160e77- -_0x3a7b2e._0x19a87d,_0x1e4dee-0x5b,_0xd56ea2,_0x58669b-0x161);}function _0x31eb29(_0xa2aed7,_0x24a42c,_0x2c1120,_0x56d8e5){return _0x2f0acf(_0x56d8e5- -_0x399307._0x4887a,_0x24a42c-0x105,_0x2c1120,_0x56d8e5-_0x399307._0x1ee7c8);}try{const _0x3b678f=_0x45a565?_0x31eb29(-_0x36b770._0xbd52d5,-0x150,_0x36b770._0x1e71a7,-0x49):'which\x20rg',_0x3bb16b=execSync(_0x3b678f,{'encoding':_0x31eb29(-_0x36b770._0x4325ab,-0x2bd,-0x30c,-_0x36b770._0x3f8512),'stdio':[_0x5a3d04(_0x36b770._0x1dab57,-_0x36b770._0x89eea4,_0x36b770._0x1487e8,-0x21),_0x5a3d04(0xe4,-_0x36b770._0x49c082,0xe0,-0x17),'ignore']})[_0x31eb29(-0x223,-0x332,-0x335,-_0x36b770._0x5e5813)]()[_0x31eb29(-_0x36b770._0xa98307,-0x122,-_0x36b770._0x22259f,-_0x36b770._0x181285)](/\r?\n/)[0x0];if(_0x3bb16b&&existsSync(_0x3bb16b))return _0x3bb16b;}catch{return null;}return null;}async function filepath(){const _0x198027={_0x903180:0x57c,_0x31bb2c:0x311},_0x246ad3={_0x26538a:0xee,_0x42fd05:0x1ef};if(cachedRgPath)return cachedRgPath;if(_0x10a83a&&existsSync(_0x10a83a))return cachedRgPath=_0x10a83a,_0x10a83a;const _0x40ee51=findSystemRipgrep();if(!_0x40ee51)throw new Error(_0x507e6f(_0x198027._0x903180,0x531,_0x198027._0x31bb2c,0x43e));cachedRgPath=_0x40ee51;function _0x507e6f(_0xe5e82e,_0x5e74b2,_0x4d7b5e,_0x534774){return _0x2f0acf(_0x534774-_0x246ad3._0x26538a,_0x5e74b2-0xe2,_0x4d7b5e,_0x534774-_0x246ad3._0x42fd05);}return _0x40ee51;}async function*files(_0x42ef3a){const _0x4f5a2d={_0x58ede1:0xd1,_0x3c8aad:0x1a2,_0x13e84f:0x42,_0x5a1577:0x1ba,_0x4723a8:0x3c0,_0x5b1f66:0x2b4,_0x149a71:0x385,_0x5f1fd5:0x2c2,_0x393f51:0x174,_0x2c5f1b:0x21d,_0x39ae5c:0x19d,_0xae4d74:0x3,_0xf35722:0x15,_0x11745e:0xfe,_0x4b8937:0x2f2,_0x10eeca:0x1d6,_0x4a3a82:0x28f,_0x2b47f8:0x20,_0x1b1631:0x76,_0x3fe118:0x1b,_0x4f9303:0x212,_0x43c137:0xe2,_0x501531:0x60,_0xfb78f9:0x62,_0x59b0a0:0x191,_0x56ad53:0x1e2,_0x309fd0:0x172,_0x275da2:0x256,_0x5d668a:0xa0,_0xee49f4:0x2b6,_0x32af43:0x7e,_0x104105:0x199,_0x273253:0xc8,_0x378bf8:0x11c,_0x3617a9:0x15a,_0x320a85:0x242,_0x4c071d:0x1d8,_0x3d56e6:0x241,_0xabcc7a:0x16e,_0x14fd5e:0x1e8},_0x97f3dd={_0x232b5c:0x13d,_0x6b258b:0x252},_0x3f42e9={_0x31472d:0x9a};function _0x7afa9e(_0x57cd32,_0x5e711b,_0x43cef5,_0x364d8d){return _0x4aa629(_0x57cd32-0xb,_0x43cef5,_0x43cef5-0x191,_0x364d8d- -_0x3f42e9._0x31472d);}const _0x198dac=await filepath(),_0x33111e=await _0x27acd9(_0x42ef3a[_0x7afa9e(_0x4f5a2d._0x58ede1,_0x4f5a2d._0x3c8aad,_0x4f5a2d._0x13e84f,0x77)])[_0x2ced50(0x216,_0x4f5a2d._0x5a1577,_0x4f5a2d._0x4723a8,_0x4f5a2d._0x5b1f66)](()=>null);if(!_0x33111e?.['isDirectory']())throw Object[_0x2ced50(0x29b,0x452,_0x4f5a2d._0x149a71,0x31b)](new Error(_0x2ced50(_0x4f5a2d._0x5f1fd5,_0x4f5a2d._0x393f51,_0x4f5a2d._0x2c5f1b,_0x4f5a2d._0x39ae5c)+_0x42ef3a['cwd']+'\x27'),{'code':_0x7afa9e(-0xf6,_0x4f5a2d._0xae4d74,0x65,-_0x4f5a2d._0xf35722)});const _0x1006c0=[_0x2ced50(0x112,0x272,_0x4f5a2d._0x11745e,0x149),_0x2ced50(0x2ba,_0x4f5a2d._0x4b8937,_0x4f5a2d._0x10eeca,_0x4f5a2d._0x4a3a82),_0x7afa9e(-0xf6,-0x1f9,_0x4f5a2d._0x2b47f8,-0xb7),_0x7afa9e(0x1e,-0x95,-_0x4f5a2d._0x1b1631,_0x4f5a2d._0x3fe118)];for(const _0x5a066f of _0x42ef3a['glob']??[]){_0x1006c0[_0x2ced50(_0x4f5a2d._0x4f9303,0x263,_0x4f5a2d._0x43c137,0x183)]('--glob='+_0x5a066f);}const _0xd14028=_0x2cfd50(_0x198dac,_0x1006c0,{'cwd':_0x42ef3a[_0x7afa9e(-_0x4f5a2d._0x501531,0x4e,0xe2,0x77)],'stdio':[_0x7afa9e(-_0x4f5a2d._0xfb78f9,-0x19,-_0x4f5a2d._0x59b0a0,-0x9f),_0x7afa9e(-0x160,-0x14d,-_0x4f5a2d._0x56ad53,-_0x4f5a2d._0x309fd0),_0x2ced50(_0x4f5a2d._0x275da2,_0x4f5a2d._0x5d668a,0x1cb,0x17a)]});function _0x2ced50(_0x5f30c5,_0x1b9ed4,_0x15c373,_0x2c976b){return _0x4aa629(_0x5f30c5-_0x97f3dd._0x232b5c,_0x15c373,_0x15c373-0x191,_0x2c976b-_0x97f3dd._0x6b258b);}let _0x70f000='';for await(const _0x2fd152 of _0xd14028[_0x7afa9e(-0xbe,-_0x4f5a2d._0xee49f4,-0x1f7,-0x18f)]??[]){_0x70f000+=_0x2fd152[_0x7afa9e(0x64,-0x40,0x163,_0x4f5a2d._0x32af43)]();const _0x24f501=_0x70f000['split'](/\r?\n/);_0x70f000=_0x24f501[_0x7afa9e(-_0x4f5a2d._0x104105,-0x14a,-_0x4f5a2d._0x273253,-_0x4f5a2d._0x378bf8)]()??'';for(const _0xad37bc of _0x24f501){if(_0xad37bc[_0x2ced50(0x21c,_0x4f5a2d._0x3617a9,_0x4f5a2d._0x320a85,_0x4f5a2d._0x4c071d)]>0x0)yield _0xad37bc;}}_0x70f000['trim']()[_0x2ced50(_0x4f5a2d._0x3d56e6,0x238,0x1b8,0x1d8)]>0x0&&(yield _0x70f000[_0x7afa9e(-0x2ca,-0x300,-_0x4f5a2d._0xabcc7a,-_0x4f5a2d._0x14fd5e)]());}function parseMatchLine(_0x316c2a,_0x2c5481){const _0x211c3f={_0x3ce211:0x43b,_0x1c37e5:0x459,_0x382bc7:0x3af,_0x578d21:0x11a,_0x52613d:0x15d,_0x2fc516:0x2aa,_0x50ef92:0x539,_0x2b646c:0x5f2,_0x3979d9:0x67f,_0x49f2aa:0x2fc,_0xd6c2d9:0x40a,_0x23c422:0x3cc,_0x2a3f11:0x279,_0xde07d7:0x93,_0x2f4f7c:0x3a0,_0x778350:0x3cf,_0x5d86c3:0x3c7,_0x1fc629:0x362,_0x2566eb:0x3c9,_0x33e681:0x49b,_0x240257:0x35c,_0x36154f:0x408,_0x455278:0x343,_0x327797:0x3a4},_0x311318={_0xa3531c:0x5e,_0x5675f4:0x443},_0x2497a2={_0x5456c7:0x67,_0x34332c:0x15d,_0x1e3fb4:0x19b};function _0x560add(_0x486405,_0x8f91f5,_0x5f339b,_0x5ca29d){return _0x2f0acf(_0x5ca29d- -_0x2497a2._0x5456c7,_0x8f91f5-_0x2497a2._0x34332c,_0x5f339b,_0x5ca29d-_0x2497a2._0x1e3fb4);}function _0x335843(_0x52ce3a,_0x58fe4a,_0x1fdc1e,_0x98a511){return _0x4aa629(_0x52ce3a-_0x311318._0xa3531c,_0x1fdc1e,_0x1fdc1e-0x36,_0x58fe4a-_0x311318._0x5675f4);}if(!_0x316c2a||_0x316c2a==='--')return null;const _0xc1095e=_0x316c2a[_0x560add(_0x211c3f._0x3ce211,0x372,_0x211c3f._0x1c37e5,_0x211c3f._0x382bc7)]('|');if(_0x2c5481&&_0xc1095e[_0x560add(_0x211c3f._0x578d21,_0x211c3f._0x52613d,_0x211c3f._0x2fc516,0x25c)]>=0x4&&Number['isFinite'](Number[_0x335843(0x4b2,_0x211c3f._0x50ef92,_0x211c3f._0x2b646c,_0x211c3f._0x3979d9)](_0xc1095e[0x2]??'',0xa))){const _0x383581=Number[_0x560add(_0x211c3f._0x49f2aa,0x4de,_0x211c3f._0xd6c2d9,_0x211c3f._0x23c422)](_0xc1095e[0x1]??'',0xa);if(!Number['isFinite'](_0x383581)||!_0xc1095e[0x0])return null;return{'filePath':_0xc1095e[0x0],'lineNum':_0x383581,'lineText':_0xc1095e[_0x560add(_0x211c3f._0x2a3f11,0x25c,_0x211c3f._0xde07d7,0x1d6)](0x3)[_0x335843(_0x211c3f._0x2f4f7c,_0x211c3f._0x778350,_0x211c3f._0x5d86c3,0x517)]('|')};}if(_0xc1095e[_0x335843(_0x211c3f._0x1fc629,_0x211c3f._0x2566eb,_0x211c3f._0x33e681,0x307)]>=0x3){const _0x521396=Number['parseInt'](_0xc1095e[0x1]??'',0xa);if(!Number[_0x335843(_0x211c3f._0x240257,0x393,0x3ea,0x441)](_0x521396)||!_0xc1095e[0x0])return null;return{'filePath':_0xc1095e[0x0],'lineNum':_0x521396,'lineText':_0xc1095e[_0x335843(_0x211c3f._0x36154f,_0x211c3f._0x455278,_0x211c3f._0x327797,0x423)](0x2)[_0x335843(0x40a,0x3cf,_0x211c3f._0x2fc516,0x4bc)]('|'),..._0x2c5481?{'isContext':!![]}:{}};}return null;}async function search(_0x1f2ca2){const _0x1e7a0e={_0x4cc290:0x391,_0x301724:0x33d,_0x722251:0x32f,_0x451770:0x2dd,_0x51fdf6:0x39b,_0x1bce69:0x47f,_0x233c5b:0x430,_0x4fb743:0x38b,_0x149fed:0x298,_0x715f6e:0x393,_0x290c53:0x44a,_0x5313a2:0x52d,_0xbf512e:0x46f,_0x2760a0:0x4f7,_0x206c7e:0x50a,_0x47aee2:0x1f7,_0x48587b:0x5f4,_0x462c83:0x5ae,_0x3c49a5:0x49f,_0x5b9f53:0x417,_0x1bcd2d:0x400,_0x54d3a7:0x2ca,_0x60fb37:0x3ed,_0x52d65d:0x4a9,_0x5903ef:0x53e,_0x3040d6:0x4de,_0x518d73:0x3fa,_0x3fe099:0x37e,_0x5f090e:0x4cf,_0x22acd0:0x4db,_0x1115b6:0x475,_0x597066:0x5a7,_0x3e2ee1:0x359,_0x15488a:0x319,_0x35827e:0x410,_0x5d87b1:0x40c,_0xc75396:0x50b,_0x921982:0x4a8,_0xbfec85:0x42d,_0x1386b3:0x378,_0x2dddba:0x3d3,_0x19ce73:0x2a5,_0x2a4701:0x2c3,_0x325b18:0x2c5,_0x8248d4:0x24d,_0x5453e1:0x3ec,_0x2c5b3f:0x465,_0xfff3de:0x393,_0x5f6525:0x317,_0x1c2c4f:0x301,_0x2b8cee:0x1e8,_0x857298:0x3e0,_0x566c57:0x2c6,_0x4aac76:0x31e,_0x78a6b9:0x3a0,_0x4f3b87:0x269,_0x485990:0x269,_0x976e4b:0x23d,_0x472de1:0x22e,_0x5c339c:0x372},_0x2bd5c1={_0x449c22:0x46c,_0x2fd53c:0x260,_0x214948:0x108,_0x35950b:0x213,_0x5a5bb8:0xf2,_0x56e739:0x28d,_0x34dde5:0x3c9,_0x2ce012:0x323},_0x4c0bd8={_0x54f3bb:0x220,_0x1a0a9f:0x35c,_0x2ddd64:0x26d,_0x1803c0:0x203,_0x2a8683:0x108,_0x44d3dd:0x57f,_0x5ca8e9:0x5ee,_0xc7aaf:0x5d1},_0x2a28a7={_0x2a1744:0x36},_0x2e5de7={_0x2aaab6:0x482,_0x2e7378:0x573},_0x59e66a={_0x82fa0:0x96},_0x18d135={_0xfc1105:0x9a,_0x4ac9ea:0xd5},_0xbe74a0=await filepath();if(_0x1f2ca2[_0x183bb5(0x2f8,_0x1e7a0e._0x4cc290,_0x1e7a0e._0x301724,_0x1e7a0e._0x722251)]){const _0x469640=await _0x27acd9(_0x1f2ca2[_0x591749(0x1a8,0x350,_0x1e7a0e._0x451770,0x3a3)])[_0x591749(0x41d,0x421,_0x1e7a0e._0x51fdf6,_0x1e7a0e._0x1bce69)](()=>null);if(!_0x469640?.['isFile']())throw Object[_0x591749(0x30b,0x3fe,0x402,0x419)](new Error(_0x183bb5(0x44f,0x449,_0x1e7a0e._0x233c5b,0x3d1)+_0x1f2ca2[_0x591749(0x3a5,_0x1e7a0e._0x4fb743,0x2dd,0x309)]+'\x27'),{'code':_0x591749(0x434,_0x1e7a0e._0x149fed,0x3be,_0x1e7a0e._0x715f6e)});}else{const _0x1509fc=await _0x27acd9(_0x1f2ca2[_0x591749(0x46f,0x4cb,_0x1e7a0e._0x290c53,_0x1e7a0e._0x5313a2)])[_0x591749(0x3f8,_0x1e7a0e._0xbf512e,0x39b,0x439)](()=>null);if(!_0x1509fc?.['isDirectory']())throw Object[_0x591749(_0x1e7a0e._0x2760a0,_0x1e7a0e._0x206c7e,0x402,0x508)](new Error(_0x591749(_0x1e7a0e._0x47aee2,0x3c3,0x284,0x179)+_0x1f2ca2[_0x183bb5(0x444,0x4fe,_0x1e7a0e._0x48587b,_0x1e7a0e._0x462c83)]+'\x27'),{'code':_0x591749(0x4f2,_0x1e7a0e._0x3c49a5,0x3be,0x3f1)});}function _0x183bb5(_0x494471,_0x383acd,_0x483ac8,_0x2a2d72){return _0x4aa629(_0x494471-_0x18d135._0xfc1105,_0x494471,_0x483ac8-_0x18d135._0x4ac9ea,_0x383acd-0x3ed);}const _0x6feb8c=['-nH','--field-match-separator=|',_0x183bb5(_0x1e7a0e._0x5b9f53,0x365,_0x1e7a0e._0x1bcd2d,_0x1e7a0e._0x54d3a7),_0x183bb5(_0x1e7a0e._0x60fb37,_0x1e7a0e._0x52d65d,0x589,_0x1e7a0e._0x5903ef),_0x1f2ca2[_0x183bb5(_0x1e7a0e._0x3040d6,_0x1e7a0e._0x518d73,_0x1e7a0e._0x3fe099,_0x1e7a0e._0x5f090e)]],_0x18da8a=typeof _0x1f2ca2[_0x183bb5(_0x1e7a0e._0x22acd0,_0x1e7a0e._0x1115b6,_0x1e7a0e._0x597066,_0x1e7a0e._0x3e2ee1)]===_0x591749(_0x1e7a0e._0x15488a,_0x1e7a0e._0x35827e,_0x1e7a0e._0x5d87b1,_0x1e7a0e._0xc75396)&&_0x1f2ca2[_0x591749(_0x1e7a0e._0x921982,_0x1e7a0e._0xbfec85,0x3c1,0x4f2)]>0x0;_0x18da8a&&_0x6feb8c['push']('-C',String(_0x1f2ca2['context']),_0x183bb5(0x3e0,_0x1e7a0e._0x1386b3,_0x1e7a0e._0x2dddba,_0x1e7a0e._0x19ce73));_0x1f2ca2[_0x591749(_0x1e7a0e._0x2a4701,_0x1e7a0e._0x325b18,_0x1e7a0e._0x8248d4,0x142)]&&!_0x1f2ca2[_0x183bb5(0x46b,0x391,0x2b2,_0x1e7a0e._0x5453e1)]&&_0x6feb8c['push'](_0x183bb5(_0x1e7a0e._0x2c5b3f,_0x1e7a0e._0xfff3de,0x35c,0x3b5),_0x1f2ca2[_0x183bb5(_0x1e7a0e._0x5f6525,_0x1e7a0e._0x1c2c4f,_0x1e7a0e._0x2b8cee,_0x1e7a0e._0x857298)]);function _0x591749(_0x5790ff,_0xb7261e,_0x1a75d4,_0x56717e){return _0x2f0acf(_0x1a75d4- -0x4,_0xb7261e-_0x59e66a._0x82fa0,_0x5790ff,_0x56717e-0x16b);}return _0x6feb8c[_0x183bb5(_0x1e7a0e._0x566c57,_0x1e7a0e._0x4aac76,_0x1e7a0e._0x78a6b9,_0x1e7a0e._0x4f3b87)](_0x1f2ca2[_0x591749(_0x1e7a0e._0x485990,_0x1e7a0e._0x976e4b,_0x1e7a0e._0x451770,_0x1e7a0e._0x472de1)]??_0x1f2ca2[_0x591749(0x391,0x587,0x44a,_0x1e7a0e._0x5c339c)]),await new Promise((_0x111aae,_0x48ed21)=>{const _0x1e4d8e=_0x2cfd50(_0xbe74a0,_0x6feb8c,{'cwd':_0x1f2ca2[_0xeb3543(0x565,0x4e0,0x508,_0x2bd5c1._0x449c22)],'stdio':['ignore','pipe',_0x5cd60f(-_0x2bd5c1._0x2fd53c,-_0x2bd5c1._0x214948,-0x188,-0x56)]});let _0x1ed143='',_0xb9e02d='';_0x1e4d8e[_0x5cd60f(-0x20f,-_0x2bd5c1._0x35950b,-0x1a5,-_0x2bd5c1._0x5a5bb8)]?.['on']('data',_0x1dd3d6=>{_0x1ed143+=_0x1dd3d6['toString']();}),_0x1e4d8e['stderr']?.['on'](_0xeb3543(0x44d,0x4fa,0x4cc,0x41f),_0x208f8e=>{function _0x9018e8(_0x236521,_0x1a7f7b,_0x400b2e,_0x51370b){return _0x5cd60f(_0x236521-0xfc,_0x1a7f7b-0x192,_0x236521-0x41a,_0x400b2e);}_0xb9e02d+=_0x208f8e[_0x9018e8(_0x2e5de7._0x2aaab6,0x4c5,0x3d8,_0x2e5de7._0x2e7378)]();});function _0x5cd60f(_0xf3dc0c,_0x49316c,_0x63391c,_0x2e00a2){return _0x591749(_0x2e00a2,_0x49316c-0xdf,_0x63391c- -0x3e9,_0x2e00a2-0x1ef);}function _0xeb3543(_0x4604e3,_0x2f0922,_0x19c115,_0x458160){return _0x183bb5(_0x2f0922,_0x19c115-0xa,_0x19c115-0x1c7,_0x458160-_0x2a28a7._0x2a1744);}_0x1e4d8e['on']('close',_0x3b31ec=>{const _0x750daf={_0x11a720:0x1cf};function _0x28ead1(_0x1501c7,_0x4e5aa0,_0x8585df,_0x53fd75){return _0xeb3543(_0x1501c7-_0x750daf._0x11a720,_0x53fd75,_0x1501c7-0x202,_0x53fd75-0x115);}if(_0x3b31ec===0x1&&_0x1ed143===''){_0x111aae([]);return;}function _0x498f5a(_0x48b7c9,_0x22a543,_0x59a29f,_0x2ae491){return _0xeb3543(_0x48b7c9-0x6f,_0x48b7c9,_0x59a29f- -0x184,_0x2ae491-0xad);}if(_0x3b31ec!==0x0&&_0x3b31ec!==0x1){_0x48ed21(new Error(_0x498f5a(0x47a,_0x4c0bd8._0x54f3bb,_0x4c0bd8._0x1a0a9f,_0x4c0bd8._0x2ddd64)+_0xb9e02d));return;}const _0x56ee8f=_0x1f2ca2[_0x498f5a(_0x4c0bd8._0x1803c0,0x90,_0x4c0bd8._0x2a8683,0x46)]??0x64,_0x45b6dc=[];for(const _0xd149f0 of _0x1ed143[_0x28ead1(0x6d2,0x79a,0x592,0x701)](/\r?\n/)){if(_0x45b6dc[_0x28ead1(_0x4c0bd8._0x44d3dd,_0x4c0bd8._0x5ca8e9,0x621,_0x4c0bd8._0xc7aaf)]>=_0x56ee8f)break;const _0x3cef6a=parseMatchLine(_0xd149f0,_0x18da8a);if(_0x3cef6a)_0x45b6dc['push'](_0x3cef6a);}_0x111aae(_0x45b6dc);}),_0x1e4d8e['on'](_0xeb3543(_0x2bd5c1._0x56e739,_0x2bd5c1._0x34dde5,_0x2bd5c1._0x2ce012,0x2b9),_0x48ed21);});}function createGlobTool(_0x59b5fd={}){const _0x118a70={_0x35e8c4:0x115,_0x154072:0x131,_0x259a1f:0x20b,_0x43492d:0x236,_0x386849:0xc5,_0x5b2035:0x551,_0x489810:0x5ff,_0x3ddcdc:0xc4,_0x58f3eb:0x43f,_0x15811f:0x3e6,_0x103570:0x5da,_0x37f499:0x5ed,_0x19a83b:0x4e5,_0x1bf553:0x21f,_0x29d6ff:0x52,_0x20a95f:0x221,_0x4a7645:0x2b6,_0x4b0258:0x5eb,_0x2df46f:0x487,_0x2b07f7:0x2a6,_0x22b1f4:0x2f9},_0x21e416={_0x58a406:0x5a2,_0x190c23:0x517,_0x1f7d6d:0x258,_0x498704:0x72b,_0x343fd1:0x479,_0x2c3882:0x48f,_0xe7d5e9:0x53e,_0x697e9a:0x49f,_0x51fac9:0x24a,_0x38752d:0x156,_0x5a07d3:0x613,_0x157c5e:0x5bb,_0x23f9d6:0x698,_0x4d7048:0x61d,_0x198ba8:0x604,_0x5be211:0x517,_0x4d71cf:0x5dd,_0x487269:0x5b5,_0x1f5cda:0x48f,_0x38d573:0x4d3,_0x4f6cd5:0x4c2,_0x39671b:0x38d,_0x493ded:0x478,_0x47a790:0x36b,_0x1a8f57:0x25a,_0x115d7c:0x309,_0x3c2717:0x1e7,_0x895d12:0x309,_0x13e7c8:0x626,_0x3b8aa3:0x59e,_0x9a47c3:0x32c,_0x55805b:0x27e,_0x5650fa:0x21d,_0x3a760f:0x376,_0x383035:0x4a5,_0x22f754:0x3fa,_0x16e24f:0x5b6},_0x3b8869={_0x6a79e4:0x94,_0x3751bb:0x83},_0x43e942={_0x44d5dd:0x116,_0x4a9fa2:0x4fd},_0x4935f3={_0xf1358c:0x19d,_0x525db0:0xdb},_0x3fff7f=_0xcae91e[_0x477373(0x106,_0x118a70._0x35e8c4,0x160,_0x118a70._0x154072)](_0x59b5fd[_0x477373(_0x118a70._0x259a1f,_0x118a70._0x43492d,_0x118a70._0x386849,0x13f)]??process['cwd']());function _0x477373(_0xb254ad,_0x52bf88,_0x2f776d,_0x192039){return _0x4aa629(_0xb254ad-_0x4935f3._0xf1358c,_0x2f776d,_0x2f776d-_0x4935f3._0x525db0,_0xb254ad-0x1d3);}const _0x26726c=(_0x59b5fd[_0x45134e(_0x118a70._0x5b2035,0x5fb,0x52a,_0x118a70._0x489810)]??[])[_0x477373(_0x118a70._0x3ddcdc,0x1f9,0x141,0x43)](_0x294501=>_0xcae91e[_0x477373(0x106,0x164,0x11d,0xdd)](_0x294501)),_0x202189=_0x59b5fd['limit']??0x64;function _0x45134e(_0x4fa4c4,_0x394f76,_0xf341da,_0x2a2874){return _0x4aa629(_0x4fa4c4-0x37,_0x2a2874,_0xf341da-_0x43e942._0x44d5dd,_0x394f76-_0x43e942._0x4a9fa2);}const _0x201a0d=_0x59b5fd[_0x45134e(0x400,0x50c,_0x118a70._0x58f3eb,0x432)]??_0x45134e(0x4d4,0x3ff,_0x118a70._0x15811f,0x409);return defineTool({'name':_0x201a0d,'description':_0x45134e(0x54d,_0x118a70._0x103570,_0x118a70._0x37f499,_0x118a70._0x19a83b),'inputSchema':{'type':_0x477373(0x196,_0x118a70._0x1bf553,0x17b,_0x118a70._0x29d6ff),'properties':{'pattern':{'type':_0x477373(_0x118a70._0x20a95f,0x1fa,_0x118a70._0x4a7645,0x13e)},'path':{'type':_0x45134e(_0x118a70._0x4b0258,0x54b,0x4ea,_0x118a70._0x2df46f)},'limit':{'type':_0x477373(_0x118a70._0x2b07f7,0x3c3,_0x118a70._0x22b1f4,0x33e)}},'required':['pattern']},async *'execute'(_0x10d35e){const _0x505334={_0x97cca8:0x138,_0x12cf52:0xf4,_0x2d904e:0x1f2};if(_0x10d35e['pattern']['trim']()[_0x3a1854(_0x21e416._0x58a406,0x543,_0x21e416._0x190c23,0x422)]===0x0)throw new ToolExecutionError(_0x50e629(0x288,_0x21e416._0x1f7d6d,0x14c,0x1fa),{});const _0x5d8b38=resolveAllowedPath(_0x3fff7f,_0x26726c,_0x10d35e['path']??'.'),_0x49789a=await _0x431b3e(_0x5d8b38)[_0x3a1854(0x5de,0x53a,0x5f3,_0x21e416._0x498704)](()=>null);if(!_0x49789a?.[_0x3a1854(_0x21e416._0x343fd1,_0x21e416._0x2c3882,0x56d,0x6ae)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+(_0x10d35e[_0x3a1854(0x668,0x521,_0x21e416._0xe7d5e9,_0x21e416._0x697e9a)]??'.'),{'path':_0x10d35e['path']??'.'});const _0x28faa8=_0x10d35e[_0x50e629(0x1a0,_0x21e416._0x51fac9,_0x21e416._0x38752d,0x1ff)]??_0x202189,_0x4bfda6=Math['max'](0x1,Math[_0x50e629(0x3f3,0x46e,0x377,0x4dc)](_0x28faa8)),_0x38ff1b=[];let _0x52eaea=![];for await(const _0xde1304 of files({'cwd':_0x5d8b38,'glob':[_0x10d35e[_0x3a1854(_0x21e416._0x5a07d3,_0x21e416._0x157c5e,0x59e,_0x21e416._0x23f9d6)]]})){if(_0x38ff1b[_0x3a1854(_0x21e416._0x4d7048,_0x21e416._0x198ba8,_0x21e416._0x5be211,_0x21e416._0x4d71cf)]>=_0x4bfda6){_0x52eaea=!![];break;}const _0x5d1e48=await _0x431b3e(_0xcae91e[_0x3a1854(_0x21e416._0x487269,_0x21e416._0x1f5cda,0x51d,0x5cf)](_0x5d8b38,_0xde1304))[_0x3a1854(_0x21e416._0x38d573,0x56c,0x5f3,0x685)](()=>null);_0x38ff1b[_0x3a1854(0x5b3,0x3fa,_0x21e416._0x4f6cd5,0x5ab)]({'path':_0xde1304,'mtime':_0x5d1e48?.[_0x3a1854(_0x21e416._0x39671b,0x46f,_0x21e416._0x493ded,_0x21e416._0x47a790)]??0x0});}_0x38ff1b[_0x50e629(0x1ae,0x2c1,_0x21e416._0x1a8f57,0x2d6)]((_0x3ca06f,_0x3981b9)=>_0x3981b9[_0x3a1854(0x3f2,0x48f,0x4a2,0x3a1)]-_0x3ca06f[_0x3a1854(0x4e8,0x427,0x4a2,0x44f)]);const _0x55fe01=_0x38ff1b[_0x50e629(0x1fc,_0x21e416._0x115d7c,_0x21e416._0x3c2717,_0x21e416._0x895d12)](_0x2ce06f=>_0x2ce06f[_0x3a1854(0x479,0x651,0x53e,0x4e9)]),_0x23859e=_0x55fe01['length']===0x0?_0x3a1854(0x737,0x7a9,0x672,_0x21e416._0x13e7c8)+_0x10d35e[_0x3a1854(0x61d,0x529,_0x21e416._0x3b8aa3,0x4af)]:''+_0x55fe01['join']('\x0a')+(_0x52eaea?_0x50e629(_0x21e416._0x9a47c3,_0x21e416._0x55805b,0x30d,0x2b8):'');function _0x3a1854(_0x46ea9f,_0x590c93,_0x3d23ed,_0xf4287d){return _0x45134e(_0x46ea9f-0xea,_0x3d23ed-_0x3b8869._0x6a79e4,_0x3d23ed-_0x3b8869._0x3751bb,_0xf4287d);}yield createToolOutput(_0x23859e,{'pattern':_0x10d35e[_0x50e629(0x318,_0x21e416._0x5650fa,0x3f0,0x398)],'searchPath':_0xcae91e[_0x50e629(_0x21e416._0x3a760f,0x243,_0x21e416._0x383035,0x3ca)](_0x3fff7f,_0x5d8b38)||'.','matches':_0x55fe01,'count':_0x55fe01[_0x3a1854(_0x21e416._0x22f754,0x489,0x517,_0x21e416._0x16e24f)],'truncated':_0x52eaea});function _0x50e629(_0x220081,_0x5abe87,_0x12cc0c,_0x48a8c7){return _0x477373(_0x220081-_0x505334._0x97cca8,_0x5abe87-_0x505334._0x12cf52,_0x48a8c7,_0x48a8c7-_0x505334._0x2d904e);}return void 0x0;}});}import{stat as _0xe79f92}from'fs/promises';import*as _0x5dfc52 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0xef9f75={}){const _0x3d8f6c={_0x4acc48:0x12e,_0x1c76c2:0x1c1,_0x10cbc8:0x218,_0x14606a:0x20c,_0x28aa57:0x396,_0x42e855:0x3cb,_0x38e99b:0x1c3,_0x5a72b8:0x22f,_0x2f8fae:0x25b,_0x1c4458:0x251,_0x5cd3b9:0x1b9,_0x2846c9:0x297,_0x3a3722:0x1e7,_0x4458f6:0x2dc,_0x4ebf58:0x23b,_0x2ddcf6:0x315,_0x257962:0x3f2,_0xa73401:0x2dc,_0x4ca2cb:0x440,_0x524d55:0x361,_0x2cfae4:0x250,_0x5c0032:0x3ba,_0x306e17:0x271,_0x443419:0x203,_0x27fbe1:0x1ab,_0x22431e:0x239},_0x11c9aa={_0x738479:0x641,_0x15e0fc:0x51d,_0x42c10c:0x64a,_0x48ab76:0x341,_0x289c61:0x4b1,_0x5b02c6:0x443,_0x42dd7e:0x56a,_0x436f8e:0x566,_0x14b2d0:0x4ae,_0x15fb6a:0x4ab,_0x287746:0x39f,_0x29afc3:0x35c,_0x45974e:0x4c2,_0x92accd:0x4e0,_0x147d73:0x3f9,_0x55724e:0x4d3,_0x1f870d:0x42b,_0x508dc6:0x3fd,_0x93674e:0x499,_0x57d6b9:0x494,_0x4b5c8a:0x544,_0x90544d:0x569,_0x99295c:0x543,_0x44d368:0x5e0,_0x31c437:0x511,_0x425c81:0x645,_0xd5e7b3:0x677,_0x1c54d2:0x762,_0x52833d:0x5d5,_0x23c27a:0x739,_0x3c0f0b:0x705,_0x52f7e4:0x65c,_0x924bc0:0x749,_0x1cae8b:0x493,_0x2a7340:0x4a5,_0x4672e4:0x525,_0x307cdc:0x504,_0x5159f2:0x47e,_0x14aeca:0x6b2,_0x27a676:0x56e,_0x40bc09:0x493,_0x315ee3:0x692,_0x4dfbbe:0x5be,_0x5c396b:0x556,_0x25c833:0x44b,_0x54e518:0x522,_0x409270:0x50c,_0x4a66a5:0x604,_0x13170d:0x3a7,_0x534b7a:0x3c3,_0xf48c03:0x4c4,_0xd0ca86:0x59d,_0x2441d1:0x476,_0x5cfc55:0x50d,_0x4933a1:0x538,_0x46013b:0x48a,_0x17851d:0x429,_0x418f40:0x533,_0x4bafbd:0x516,_0x437360:0x49f,_0x47563b:0x60c,_0x235ee7:0x4d7,_0x501924:0x3d2,_0x1787f8:0x427,_0x387782:0x6e8,_0x1f9994:0x5bf,_0x538a56:0x6a0,_0x1cc3f0:0x557,_0x369682:0x5a4,_0x1fe2ff:0x5a2,_0x4b18ff:0x45d,_0x5371d:0x451,_0x418c11:0x582,_0x41e663:0x689,_0x2039f0:0x43c,_0x3cf60:0x432,_0x4ebaf6:0x46d,_0x490cdb:0x536,_0x1dca6c:0x66d,_0x2ecf35:0x617,_0x567913:0x5ea,_0x14c859:0x67c,_0x32e329:0x412,_0x5d4031:0x465,_0x1ed63c:0x639,_0x14c055:0x562,_0x1d17c5:0x7bf,_0x8fda0c:0x5b1,_0x4a0806:0x497,_0x3f4a42:0x429,_0x472d58:0x475,_0x315532:0x596,_0x5468a4:0x6a2,_0x37951e:0x4bb,_0x30bc60:0x4b4,_0x1ce2fb:0x428,_0x3a7f99:0x480,_0x308ade:0x45a,_0x26350e:0x56f,_0x41a967:0x454,_0x28e3e5:0x6e4,_0x5e4824:0x5a4,_0x5df377:0x64d,_0x40fcd8:0x43b,_0x31e367:0x48c,_0x3824ac:0x5d1,_0x189931:0x5e4,_0x5d3490:0x78a},_0xffdcf4={_0x4558fb:0x366},_0x37e1ee={_0x107663:0x18,_0x26302b:0x2a,_0x3bbac5:0x28e};function _0x433250(_0x2f1bb7,_0x1ba756,_0x4f03b8,_0x5008f8){return _0x4aa629(_0x2f1bb7-_0x37e1ee._0x107663,_0x1ba756,_0x4f03b8-_0x37e1ee._0x26302b,_0x5008f8-_0x37e1ee._0x3bbac5);}const _0x320190=_0x5dfc52[_0x433250(_0x3d8f6c._0x4acc48,0x1ca,0x2e9,_0x3d8f6c._0x1c76c2)](_0xef9f75[_0x433250(0x2c2,_0x3d8f6c._0x10cbc8,_0x3d8f6c._0x14606a,0x2c6)]??process[_0x432085(0x235,0x3bc,0x2af,0x273)]());function _0x432085(_0x164f71,_0x2aafeb,_0x28608a,_0x48c7a6){return _0x2f0acf(_0x28608a- -0x19f,_0x2aafeb-0x1b0,_0x164f71,_0x48c7a6-0x12c);}const _0x1a91c3=(_0xef9f75[_0x432085(0x3d4,_0x3d8f6c._0x28aa57,0x29c,_0x3d8f6c._0x42e855)]??[])[_0x432085(0x143,-0xa9,0x8f,0x1c5)](_0x15ed72=>_0x5dfc52[_0x432085(0x20c,0x4d,0xd1,0xa8)](_0x15ed72)),_0x429c89=_0xef9f75['limit']??0x64,_0x15515c=_0xef9f75['name']??_0x432085(0x223,0x164,_0x3d8f6c._0x38e99b,0x1b3);return defineTool({'name':_0x15515c,'description':_0x432085(_0x3d8f6c._0x5a72b8,0x243,0x29a,0x2b3),'inputSchema':{'type':_0x433250(0x21b,_0x3d8f6c._0x2f8fae,0x12e,_0x3d8f6c._0x1c4458),'properties':{'pattern':{'type':_0x433250(_0x3d8f6c._0x5cd3b9,_0x3d8f6c._0x2846c9,_0x3d8f6c._0x3a3722,_0x3d8f6c._0x4458f6)},'path':{'type':_0x432085(0x17c,0x257,0x1ec,_0x3d8f6c._0x4ebf58)},'include':{'type':_0x433250(_0x3d8f6c._0x2ddcf6,0x2b6,_0x3d8f6c._0x257962,_0x3d8f6c._0xa73401)},'limit':{'type':_0x433250(0x240,0x3c1,_0x3d8f6c._0x4ca2cb,_0x3d8f6c._0x524d55)},'context':{'type':_0x432085(_0x3d8f6c._0x2cfae4,_0x3d8f6c._0x5c0032,_0x3d8f6c._0x306e17,0x36f)}},'required':[_0x432085(0xf6,_0x3d8f6c._0x443419,_0x3d8f6c._0x27fbe1,_0x3d8f6c._0x22431e)]},async *'execute'(_0x309afe){const _0x2889a7={_0x5bd8bb:0x14c};if(_0x309afe['pattern']['trim']()[_0x3e3d44(0x4f2,_0x11c9aa._0x738479,_0x11c9aa._0x15e0fc,_0x11c9aa._0x42c10c)]===0x0)throw new ToolExecutionError(_0x931682(0x481,0x452,0x45a,_0x11c9aa._0x48ab76),{});const _0x3d6627=resolveAllowedPath(_0x320190,_0x1a91c3,_0x309afe[_0x931682(_0x11c9aa._0x289c61,_0x11c9aa._0x5b02c6,_0x11c9aa._0x42dd7e,0x5ba)]??'.'),_0x18ee37=await _0xe79f92(_0x3d6627)[_0x931682(_0x11c9aa._0x436f8e,_0x11c9aa._0x14b2d0,_0x11c9aa._0x15fb6a,0x65f)](()=>null),_0xa981af=_0x18ee37?.[_0x931682(_0x11c9aa._0x287746,_0x11c9aa._0x29afc3,0x365,_0x11c9aa._0x45974e)]()??![];function _0x931682(_0x2c81b1,_0x121ca9,_0x46f077,_0x4685d2){return _0x432085(_0x46f077,_0x121ca9-0x30,_0x2c81b1-_0xffdcf4._0x4558fb,_0x4685d2-0x2);}const _0x21f50d=_0x18ee37?.[_0x931682(_0x11c9aa._0x92accd,_0x11c9aa._0x147d73,0x5b9,_0x11c9aa._0x55724e)]()??![];if(!_0xa981af&&!_0x21f50d)throw new ToolExecutionError(_0x931682(_0x11c9aa._0x1f870d,0x490,_0x11c9aa._0x508dc6,0x4ce)+(_0x309afe[_0x931682(0x4b1,0x3e9,_0x11c9aa._0x93674e,0x3de)]??'.'),{'path':_0x309afe[_0x3e3d44(_0x11c9aa._0x57d6b9,0x3fe,_0x11c9aa._0x4b5c8a,0x44d)]??'.'});const _0x404bbe=_0x309afe['limit']??_0x429c89;function _0x3e3d44(_0x480721,_0x5d48b9,_0x15521f,_0x4e7239){return _0x432085(_0x480721,_0x5d48b9-0x1d3,_0x15521f-0x3f9,_0x4e7239-_0x2889a7._0x5bd8bb);}const _0x302c58=Math[_0x931682(0x49f,_0x11c9aa._0x90544d,0x3dc,0x581)](0x1,Math[_0x931682(0x5ec,0x51f,0x5ec,0x60c)](_0x404bbe)),_0x10db0e=await search({'cwd':_0x21f50d?_0x3d6627:_0x5dfc52[_0x3e3d44(0x689,_0x11c9aa._0x99295c,_0x11c9aa._0x44d368,0x4cd)](_0x3d6627),'pattern':_0x309afe[_0x931682(_0x11c9aa._0x31c437,0x580,_0x11c9aa._0x425c81,0x5d6)],'glob':_0x21f50d?_0x309afe[_0x3e3d44(0x716,0x536,_0x11c9aa._0xd5e7b3,0x703)]:void 0x0,'limit':_0x302c58,'file':_0xa981af?_0x3d6627:void 0x0,'context':_0x309afe[_0x3e3d44(0x74b,_0x11c9aa._0x1c54d2,0x61f,0x502)]}),_0x272711=new Map();for(const _0xc89ec5 of _0x10db0e){if(!_0x272711['has'](_0xc89ec5['filePath'])){const _0x4e4fdc=await _0xe79f92(_0xc89ec5[_0x3e3d44(0x53c,0x563,0x526,_0x11c9aa._0x52833d)])[_0x3e3d44(0x609,0x71b,0x5f9,_0x11c9aa._0x23c27a)](()=>null);_0x272711[_0x3e3d44(_0x11c9aa._0x3c0f0b,0x51b,_0x11c9aa._0x52f7e4,_0x11c9aa._0x924bc0)](_0xc89ec5[_0x931682(_0x11c9aa._0x1cae8b,_0x11c9aa._0x2a7340,0x3aa,_0x11c9aa._0x4672e4)],{'matches':[],'mtime':_0x4e4fdc?.[_0x3e3d44(_0x11c9aa._0x307cdc,0x449,_0x11c9aa._0x5159f2,0x5c3)]??0x0});}_0x272711[_0x3e3d44(_0x11c9aa._0x14aeca,0x66e,_0x11c9aa._0x27a676,0x454)](_0xc89ec5[_0x931682(_0x11c9aa._0x40bc09,0x521,0x4a2,0x49e)])?.[_0x931682(0x584,0x53c,_0x11c9aa._0x315ee3,_0x11c9aa._0x4dfbbe)][_0x3e3d44(_0x11c9aa._0x5c396b,0x467,0x4c8,_0x11c9aa._0x25c833)](_0xc89ec5);}const _0x2ccc23=[..._0x272711[_0x3e3d44(0x3d5,_0x11c9aa._0x54e518,_0x11c9aa._0x409270,_0x11c9aa._0x4a66a5)]()][_0x931682(_0x11c9aa._0x13170d,0x41c,_0x11c9aa._0x534b7a,_0x11c9aa._0xf48c03)]((_0x2836ae,_0x19c320)=>_0x19c320[0x1][_0x3e3d44(0x4ef,0x50f,0x4a8,0x5e7)]-_0x2836ae[0x1]['mtime']),_0x3a5bfd=_0x10db0e[_0x931682(_0x11c9aa._0xd0ca86,_0x11c9aa._0x2441d1,_0x11c9aa._0x5cfc55,_0x11c9aa._0x4933a1)](_0x1d9ec6=>!_0x1d9ec6[_0x3e3d44(0x57c,0x601,0x54e,0x537)])['length'],_0x3cbe9e=_0x10db0e[_0x931682(_0x11c9aa._0x46013b,_0x11c9aa._0x17851d,_0x11c9aa._0x418f40,_0x11c9aa._0x4bafbd)]>=_0x302c58,_0x497a69=_0xa981af?_0x5dfc52[_0x931682(0x54d,_0x11c9aa._0x437360,_0x11c9aa._0x47563b,_0x11c9aa._0x235ee7)](_0x3d6627):_0x3d6627;let _0x34a214='';if(_0x10db0e[_0x931682(_0x11c9aa._0x46013b,0x414,_0x11c9aa._0x501924,_0x11c9aa._0x1787f8)]===0x0)_0x34a214=_0x3e3d44(_0x11c9aa._0x387782,0x5d4,0x5da,_0x11c9aa._0x1f9994)+_0x309afe[_0x3e3d44(_0x11c9aa._0x538a56,_0x11c9aa._0x1cc3f0,_0x11c9aa._0x369682,_0x11c9aa._0x1fe2ff)];else{_0x34a214=_0x931682(_0x11c9aa._0x4b18ff,0x42e,0x472,_0x11c9aa._0x5371d)+_0x3a5bfd+_0x931682(_0x11c9aa._0x418c11,_0x11c9aa._0x41e663,0x5cb,_0x11c9aa._0x4a66a5)+(_0x3a5bfd===0x1?'':'es')+'\x0a';for(const [_0x45a842,_0x2f760e]of _0x2ccc23){const _0x54c095=_0xa981af?_0x5dfc52[_0x931682(_0x11c9aa._0x2039f0,_0x11c9aa._0x3cf60,_0x11c9aa._0x4ebaf6,0x44f)](_0x45a842):_0x5dfc52[_0x3e3d44(0x5e1,0x557,0x602,_0x11c9aa._0x490cdb)](_0x497a69,_0x45a842);_0x34a214+='\x0a'+_0x54c095+':\x0a';for(const _0xcb8ff1 of _0x2f760e[_0x3e3d44(0x5d5,_0x11c9aa._0x1dca6c,_0x11c9aa._0x2ecf35,0x691)]){const _0x311983=_0xcb8ff1[_0x3e3d44(_0x11c9aa._0x567913,0x614,_0x11c9aa._0x14c859,0x55d)][_0x931682(0x48a,_0x11c9aa._0x32e329,0x51c,_0x11c9aa._0x5d4031)]>MAX_LINE_LENGTH?_0xcb8ff1[_0x3e3d44(_0x11c9aa._0x1ed63c,_0x11c9aa._0x14c055,_0x11c9aa._0x14c859,_0x11c9aa._0x1d17c5)][_0x3e3d44(0x488,_0x11c9aa._0x8fda0c,_0x11c9aa._0x4a0806,_0x11c9aa._0x3f4a42)](0x0,MAX_LINE_LENGTH)+_0x931682(0x548,0x61d,_0x11c9aa._0x472d58,0x66e):_0xcb8ff1[_0x3e3d44(_0x11c9aa._0x315532,_0x11c9aa._0x5468a4,_0x11c9aa._0x14c859,0x71d)],_0x426788=_0xcb8ff1[_0x931682(_0x11c9aa._0x37951e,0x3b6,0x56c,_0x11c9aa._0x30bc60)]?'\x20\x20':'>\x20';_0x34a214+=_0x426788+_0x931682(0x4ea,_0x11c9aa._0x1ce2fb,0x3f7,_0x11c9aa._0x3a7f99)+_0xcb8ff1[_0x931682(0x57a,0x637,_0x11c9aa._0x308ade,0x530)]+':\x20'+_0x311983+'\x0a';}}_0x3cbe9e&&(_0x34a214+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x435bf3={'searchPath':_0x5dfc52[_0x931682(_0x11c9aa._0x26350e,_0x11c9aa._0x41a967,0x60b,0x662)](_0x320190,_0x3d6627)||'.','pattern':_0x309afe[_0x3e3d44(0x590,_0x11c9aa._0x28e3e5,_0x11c9aa._0x5e4824,_0x11c9aa._0x5df377)],'matchCount':_0x3a5bfd,'fileCount':_0x272711[_0x3e3d44(0x5a6,_0x11c9aa._0x40fcd8,0x470,_0x11c9aa._0x31e367)],'truncated':_0x3cbe9e};return _0x21f50d&&_0x309afe[_0x3e3d44(0x740,_0x11c9aa._0x3824ac,0x677,0x613)]!==void 0x0&&(_0x435bf3[_0x931682(_0x11c9aa._0x189931,0x4ac,0x511,0x6bd)]=_0x309afe[_0x3e3d44(0x5de,0x6e9,_0x11c9aa._0xd5e7b3,_0x11c9aa._0x5d3490)]),yield createToolOutput(_0x34a214['trim'](),_0x435bf3),void 0x0;}});}import{readdir as _0x3c37be,readFile as _0x5752f5,stat as _0x52f250}from'fs/promises';import*as _0x57dfe9 from'path';import*as _0x152137 from'yaml';async function countTextLines(_0x541010){const _0x151e6e={_0x224191:0x4d4,_0x17350e:0x41c,_0x881a49:0x4b0,_0x559e9f:0x355,_0x5b9609:0x3dd,_0x1b7f24:0x437},_0x26cbfe={_0x1dc33f:0x304},_0x18501a={_0xcfdce8:0x423};function _0x567c55(_0x2f2dbd,_0x24c70e,_0x11d113,_0x37bdd5){return _0x4aa629(_0x2f2dbd-0x56,_0x37bdd5,_0x11d113-0x1ce,_0x11d113-_0x18501a._0xcfdce8);}const _0x564db9=await _0x5752f5(_0x541010)['catch'](()=>null);if(!_0x564db9||isProbablyBinary(_0x564db9))return void 0x0;function _0x454f6b(_0xcc5572,_0x9c0385,_0x56d48a,_0x4be193){return _0x4aa629(_0xcc5572-0x13d,_0x4be193,_0x56d48a-0x144,_0x56d48a-_0x26cbfe._0x1dc33f);}return _0x564db9[_0x454f6b(_0x151e6e._0x224191,0x2f8,_0x151e6e._0x17350e,_0x151e6e._0x881a49)]('utf8')[_0x454f6b(_0x151e6e._0x559e9f,0x4d8,_0x151e6e._0x5b9609,_0x151e6e._0x1b7f24)](/\r?\n/)['length'];}function createLsTool(_0x9dc662={}){const _0x4b163b={_0x328cd3:0xe6,_0x4624bc:0x23,_0x44b6c1:0x19,_0x158c8b:0x134,_0x583057:0xfd,_0xc6f8ea:0x16d,_0x4864d6:0x124,_0x102366:0xfe,_0x4552cb:0x24,_0x353ec3:0x41c,_0x3a00f2:0x213,_0x36660d:0x1c3,_0x387369:0xcf,_0x5cfb19:0x174,_0x2ae541:0x1c7,_0x987556:0x1c6,_0x6bdb0e:0x153,_0x5907e8:0x309},_0x1c6e0e={_0x33fee3:0x29c,_0x4e36bc:0xb2,_0xb8c369:0x216,_0x42c41a:0x234,_0x172d67:0x2a5,_0x3dcdf1:0x11f,_0x42531a:0x28a,_0x3d0bec:0x241,_0x2fb51e:0x237,_0x1d46ea:0x14e,_0x4250e0:0x20b,_0x2ff476:0x1d0,_0x25074d:0xbd,_0x10c201:0x1b5,_0x5ba110:0x29e,_0x5d3ac8:0x29d,_0x5e9b47:0x2fe,_0x2e6ae6:0x3d4,_0x117fbb:0x159,_0x268209:0x16,_0x5be6a9:0x68,_0x29657f:0x137,_0x444a60:0xc1,_0x24846c:0x136,_0x3e62f8:0x1da,_0x1b0814:0x15d,_0x487400:0x14d,_0x561801:0x190,_0x22e1b7:0x28d,_0x14a7e8:0x391,_0x4e6b92:0x17c,_0x44891b:0x7b,_0x3a7c69:0x1bd,_0x2dc313:0x201,_0x919720:0x11a,_0x5d4a59:0x2a3,_0x46836e:0x183,_0x73838f:0x361,_0x167876:0x2e1,_0x58264a:0x233,_0x1f4181:0x2cc,_0x1d4865:0x237,_0x362225:0x8e,_0x53cb24:0x2c0,_0x592c2d:0x25b,_0x1cba9f:0x222,_0x39f172:0x238},_0x36c5f9={_0x390039:0x158,_0x1bb078:0x3d1},_0x59feb8={_0x24cbd6:0x102,_0x305690:0xef,_0x50d6ad:0x135},_0xeb63c={_0x255bf1:0x9b,_0x3c7b64:0xa2,_0x40380a:0x204};function _0x1bd38e(_0x57004f,_0x5859d2,_0x4df451,_0x21b43d){return _0x4aa629(_0x57004f-_0xeb63c._0x255bf1,_0x5859d2,_0x4df451-_0xeb63c._0x3c7b64,_0x4df451-_0xeb63c._0x40380a);}const _0x1ff04b=_0x57dfe9[_0x1bd38e(_0x4b163b._0x328cd3,_0x4b163b._0x4624bc,0x137,0x1c3)](_0x9dc662[_0x468e3b(-_0x4b163b._0x44b6c1,-_0x4b163b._0x158c8b,0x2,-_0x4b163b._0x583057)]??process[_0x468e3b(-_0x4b163b._0xc6f8ea,-_0x4b163b._0x4864d6,-_0x4b163b._0x102366,-_0x4b163b._0x4552cb)]()),_0x5dbef=(_0x9dc662[_0x1bd38e(_0x4b163b._0x353ec3,0x210,0x302,0x3f6)]??[])['map'](_0x3b4dae=>_0x57dfe9[_0x468e3b(-0x1dd,-0x30d,-0xf6,-0x202)](_0x3b4dae));function _0x468e3b(_0xd0058b,_0x81a6b,_0x2f3643,_0x27c77e){return _0x4aa629(_0xd0058b-_0x59feb8._0x24cbd6,_0x81a6b,_0x2f3643-_0x59feb8._0x305690,_0x27c77e- -_0x59feb8._0x50d6ad);}const _0x583819=_0x9dc662[_0x1bd38e(0xcf,0xe2,_0x4b163b._0x3a00f2,0xe0)]??'Ls';return defineTool({'name':_0x583819,'description':_0x468e3b(-_0x4b163b._0x36660d,-0x14f,-0x4e,-_0x4b163b._0x387369),'inputSchema':{'type':_0x1bd38e(0x206,_0x4b163b._0x5cfb19,_0x4b163b._0x2ae541,_0x4b163b._0x987556),'properties':{'path':{'type':_0x1bd38e(0x2b7,0x240,0x252,_0x4b163b._0x6bdb0e)},'limit':{'type':_0x1bd38e(0x354,0x306,0x2d7,_0x4b163b._0x5907e8)}}},async *'execute'(_0x411fe0){const _0x307f7e={_0x42a662:0x5b};function _0x1c5d45(_0x1e5848,_0x525f93,_0xf37c7,_0x35a4b5){return _0x468e3b(_0x1e5848-0x114,_0x1e5848,_0xf37c7-0x5f,_0xf37c7-_0x307f7e._0x42a662);}const _0x1b83df=_0x411fe0[_0x4de4d0(0x359,_0x1c6e0e._0x33fee3,0x249,0x1f3)]??'.',_0x326390=resolveAllowedPath(_0x1ff04b,_0x5dbef,_0x1b83df),_0x1cbfa7=await _0x52f250(_0x326390)['catch'](()=>null);function _0x4de4d0(_0x1de6c9,_0x54da4a,_0x220184,_0x383a65){return _0x468e3b(_0x1de6c9-_0x36c5f9._0x390039,_0x54da4a,_0x220184-0xa8,_0x220184-_0x36c5f9._0x1bb078);}if(!_0x1cbfa7?.[_0x1c5d45(-0xc4,-0x41,-0xfe,-_0x1c6e0e._0x4e36bc)]())throw new ToolExecutionError(_0x1c5d45(-0x1bc,-0xcf,-_0x1c6e0e._0xb8c369,-_0x1c6e0e._0x42c41a)+_0x1b83df,{'path':_0x1b83df});const _0x5b2995=_0x411fe0[_0x1c5d45(-_0x1c6e0e._0x172d67,-0x1d0,-0x245,-0x36f)]??0x3e8,_0x1a148d=Math[_0x4de4d0(0xfa,0x206,0x23e,_0x1c6e0e._0x3dcdf1)](Math[_0x4de4d0(_0x1c6e0e._0x42531a,_0x1c6e0e._0x3d0bec,_0x1c6e0e._0x2fb51e,_0x1c6e0e._0x1d46ea)](Math['trunc'](_0x5b2995),0x1),0x2710),_0x54ba5b=await _0x3c37be(_0x326390),_0x2aeaed=[];for(const _0x1fc73b of _0x54ba5b[_0x1c5d45(-_0x1c6e0e._0x4250e0,-_0x1c6e0e._0x2ff476,-0x1da,-_0x1c6e0e._0x25074d)](0x0,_0x1a148d)){const _0x539e4d=_0x57dfe9[_0x4de4d0(0x29a,_0x1c6e0e._0x10c201,0x228,_0x1c6e0e._0x5ba110)](_0x326390,_0x1fc73b),_0x15f6f2=await _0x52f250(_0x539e4d)[_0x4de4d0(0x3e7,_0x1c6e0e._0x5d3ac8,_0x1c6e0e._0x5e9b47,_0x1c6e0e._0x2e6ae6)](()=>null);if(!_0x15f6f2)continue;let _0x438078=_0x4de4d0(0xe4,0x71,_0x1c6e0e._0x117fbb,0x4a);if(_0x15f6f2[_0x4de4d0(_0x1c6e0e._0x268209,_0x1c6e0e._0x5be6a9,_0x1c6e0e._0x29657f,0xb5)]())_0x438078=_0x1c5d45(-_0x1c6e0e._0x444a60,-0x1c1,-_0x1c6e0e._0x24846c,-0xea);else{if(_0x15f6f2[_0x1c5d45(-0x1e8,-_0x1c6e0e._0x3e62f8,-0xfe,-_0x1c6e0e._0x1b0814)]())_0x438078=_0x1c5d45(-0x94,-_0x1c6e0e._0x487400,-_0x1c6e0e._0x561801,-0x1e2);else{if(_0x15f6f2[_0x4de4d0(0x183,0x1b8,_0x1c6e0e._0x22e1b7,_0x1c6e0e._0x14a7e8)]())_0x438078=_0x4de4d0(0x84,0x9e,_0x1c6e0e._0x4e6b92,_0x1c6e0e._0x44891b);}}const _0x514b8b={'name':_0x1fc73b,'type':_0x438078,'size':_0x15f6f2[_0x1c5d45(-0x14b,-_0x1c6e0e._0x3a7c69,-_0x1c6e0e._0x2dc313,-_0x1c6e0e._0x919720)],'mtime':_0x15f6f2[_0x4de4d0(_0x1c6e0e._0x5d4a59,0x70,_0x1c6e0e._0x46836e,0x1bc)],'mode':_0x15f6f2['mode']},_0x1389a3=_0x438078===_0x4de4d0(_0x1c6e0e._0x73838f,0x367,0x240,_0x1c6e0e._0x167876)?await countTextLines(_0x539e4d):void 0x0;if(_0x1389a3!==void 0x0)_0x514b8b[_0x4de4d0(_0x1c6e0e._0x58264a,0x13b,0x1be,_0x1c6e0e._0x1f4181)]=_0x1389a3;_0x2aeaed['push'](_0x514b8b);}_0x2aeaed[_0x1c5d45(-0x1f5,-0x27e,-_0x1c6e0e._0x1d4865,-0x186)]((_0x3295d6,_0x5a6758)=>_0x3295d6[_0x4de4d0(0x315,0x1b6,0x2ab,0x21e)][_0x4de4d0(0x378,0x1c1,0x232,0x364)](_0x5a6758[_0x1c5d45(-0x103,0x7a,-0xcb,-0x5a)]));const _0x3d1718={'path':_0x1b83df,'total':_0x2aeaed[_0x1c5d45(-_0x1c6e0e._0x362225,-0x5d,-0x154,-0x16f)],'truncated':_0x54ba5b['length']>_0x1a148d,'entries':_0x2aeaed};return yield createToolOutput(_0x152137['stringify'](_0x3d1718,{'indent':0x2,'lineWidth':0x0})['trimEnd'](),{'path':_0x1b83df,'total':_0x2aeaed[_0x4de4d0(0xdb,0x1dc,0x222,_0x1c6e0e._0x53cb24)],'truncated':_0x54ba5b[_0x4de4d0(0x17f,_0x1c6e0e._0x592c2d,_0x1c6e0e._0x1cba9f,_0x1c6e0e._0x39f172)]>_0x1a148d,'limit':_0x1a148d,'entries':_0x2aeaed}),void 0x0;}});}import{stat as _0xe0a42d}from'fs/promises';import _0x11df05 from'path';import{fileURLToPath as _0x9c441c}from'url';function severityName(_0x25a0bf){const _0x515d49={_0x1397c9:0x227,_0x3e0fc9:0x243,_0x5b2a63:0x274,_0x5abbb1:0x236,_0x290381:0x215,_0x2a90c3:0x327},_0xf8cdc5={_0x556d84:0xee},_0x4e9004={_0x37ca33:0x130,_0x315be1:0x169};function _0x7b8d89(_0x2d9e4b,_0x13b3c4,_0x1a0bbb,_0x3d0303){return _0x2f0acf(_0x2d9e4b- -0xdb,_0x13b3c4-_0x4e9004._0x37ca33,_0x13b3c4,_0x3d0303-_0x4e9004._0x315be1);}function _0x305943(_0x36ab52,_0x55e512,_0x20e86d,_0x25a2cb){return _0x4aa629(_0x36ab52-_0xf8cdc5._0x556d84,_0x20e86d,_0x20e86d-0x17f,_0x25a2cb-0x21f);}switch(_0x25a0bf){case 0x1:return'Error';case 0x2:return _0x305943(0x2c9,_0x515d49._0x1397c9,_0x515d49._0x3e0fc9,0x2e1);case 0x3:return _0x7b8d89(_0x515d49._0x5b2a63,0x2e2,_0x515d49._0x5abbb1,0x18c);case 0x4:return _0x305943(_0x515d49._0x290381,0x268,0x2e3,_0x515d49._0x2a90c3);default:return _0x7b8d89(0x37b,0x277,0x386,0x43c);}}function formatSingleHover(_0xe86a95){const _0x551652={_0x148fc7:0xf2,_0x33dba2:0xc3,_0x49befe:0x1c,_0x27a5a1:0x231,_0x4ae43d:0x340,_0x1ea942:0x21a,_0x56922a:0x2c8,_0xc570a6:0x219,_0x55b737:0x14b,_0xb8903d:0x3f,_0x17998f:0x7f,_0xf7e0f:0x57,_0x2c65c3:0x4,_0x227e8d:0x1b2,_0xa38f4b:0x18a,_0x41f1cc:0x1ce,_0x408bd7:0x73,_0x57951e:0x113},_0x1ee618={_0x57375b:0x1c6,_0x52e013:0x182},_0x45dfe8=_0xe86a95[_0x405d6f(0x20,-_0x551652._0x148fc7,-_0x551652._0x33dba2,_0x551652._0x49befe)];function _0x405d6f(_0x3bd392,_0x2b3de7,_0x5b4198,_0x2ad978){return _0x2f0acf(_0x3bd392- -_0x1ee618._0x57375b,_0x2b3de7-_0x1ee618._0x52e013,_0x5b4198,_0x2ad978-0x9f);}if(typeof _0x45dfe8==='string')return _0x45dfe8;if(Array[_0x5cfc29(_0x551652._0x27a5a1,0x30f,0x290,0x24f)](_0x45dfe8))return _0x45dfe8['map'](_0x3c99ef=>typeof _0x3c99ef==='string'?_0x3c99ef:_0x3c99ef[_0x5cfc29(0xcb,0x18a,0x42,0x1b1)])['filter'](Boolean)[_0x5cfc29(_0x551652._0x4ae43d,_0x551652._0x1ea942,_0x551652._0x56922a,_0x551652._0xc570a6)]('\x0a\x0a');function _0x5cfc29(_0x4d097b,_0x1ad9f3,_0x309b27,_0x408409){return _0x2f0acf(_0x1ad9f3- -0xaf,_0x1ad9f3-0x1c7,_0x4d097b,_0x408409-0xa0);}if(_0x5cfc29(0x2e4,0x260,0x377,0x228)in _0x45dfe8)return _0x45dfe8[_0x5cfc29(0x124,0x18a,_0x551652._0x55b737,0x2bb)];return _0x45dfe8[_0x405d6f(0x13d,_0x551652._0xb8903d,0x148,_0x551652._0x17998f)]?'```'+_0x45dfe8[_0x405d6f(0x13d,_0x551652._0xf7e0f,_0x551652._0x2c65c3,_0x551652._0x227e8d)]+'\x0a'+_0x45dfe8[_0x5cfc29(0x191,_0x551652._0xa38f4b,0x273,_0x551652._0x41f1cc)]+'\x0a```':_0x45dfe8[_0x405d6f(_0x551652._0x408bd7,0xa5,_0x551652._0x57951e,-0x1c)];}function formatHover(_0x44d659){const _0x41ebf2={_0x550979:0x6e,_0x1bd290:0x105,_0x584c8e:0x5b,_0x3178ab:0x5e,_0x8d2d34:0x56,_0x341323:0x80,_0x5768cc:0x153,_0x147fdf:0xa2,_0x1bfb12:0x12b,_0x3ac6c0:0xc9,_0xe2733d:0x1fa},_0x47410c={_0x5a6eed:0x99,_0x2230f1:0x8b},_0x462b8d={_0x590e3e:0x9f};function _0x101a5d(_0xe5aae,_0x5587af,_0x52fafb,_0x18c693){return _0x2f0acf(_0x18c693- -0x489,_0x5587af-_0x462b8d._0x590e3e,_0xe5aae,_0x18c693-0xac);}if(_0x44d659[_0x11a846(-_0x41ebf2._0x550979,-0x24c,-_0x41ebf2._0x1bd290,-_0x41ebf2._0x584c8e)]===0x0)return _0x11a846(_0x41ebf2._0x3178ab,-_0x41ebf2._0x8d2d34,-_0x41ebf2._0x341323,-0x1b1);function _0x11a846(_0x593c06,_0x2d9be9,_0x1516dd,_0x15c51d){return _0x4aa629(_0x593c06-_0x47410c._0x5a6eed,_0x2d9be9,_0x1516dd-0x13,_0x1516dd- -_0x47410c._0x2230f1);}return _0x44d659[_0x11a846(-_0x41ebf2._0x5768cc,-_0x41ebf2._0x147fdf,-0x19a,-0x95)](formatSingleHover)['join'](_0x101a5d(-_0x41ebf2._0x1bfb12,-_0x41ebf2._0x3ac6c0,-0x2e5,-_0x41ebf2._0xe2733d));}function locationPath(_0x49939f){const _0x3850ed={_0x491919:0x3ef,_0x51bc3d:0x34f,_0x844fd2:0x4c1,_0x5c0013:0x8c,_0x28757f:0x160},_0xa9c2f8={_0x161364:0x109},_0x178f04={_0x1f2ab1:0x426};if(!_0x49939f[_0xbf79a9(_0x3850ed._0x491919,_0x3850ed._0x51bc3d,0x4a2,_0x3850ed._0x844fd2)](_0x55049a(-_0x3850ed._0x5c0013,-0x215,-0x1d,-_0x3850ed._0x28757f)))return _0x49939f;function _0xbf79a9(_0x3565e7,_0x1d07f5,_0xe2a89a,_0x5986e7){return _0x4aa629(_0x3565e7-0x4f,_0xe2a89a,_0xe2a89a-0x170,_0x3565e7-_0x178f04._0x1f2ab1);}function _0x55049a(_0x502107,_0x415c69,_0x464354,_0x1b1eca){return _0x2f0acf(_0x1b1eca- -0x4b8,_0x415c69-_0xa9c2f8._0x161364,_0x464354,_0x1b1eca-0xee);}return _0x9c441c(_0x49939f);}function formatLocations(_0x2977b5){const _0x6e8962={_0x5876a0:0x31e,_0x5357a5:0x236,_0x525da4:0x365,_0x14da98:0x34e,_0x3470cb:0x28d,_0x2f20bb:0x3d9,_0x126e43:0x190,_0x2f9d71:0x1ef,_0x1a3c87:0x264,_0xda3977:0x23c,_0x400b4f:0x2bd},_0x5d646a={_0x1dc6a7:0x4fc,_0x55d225:0x4},_0x280179={_0x1d8964:0x1ce,_0x426901:0x13,_0x416814:0x2b0},_0x23826a={_0x155529:0xab};function _0x44a8e4(_0x44dc4e,_0x5e59e1,_0x2def0f,_0x3bc9f8){return _0x2f0acf(_0x3bc9f8- -0x492,_0x5e59e1-0xbd,_0x44dc4e,_0x3bc9f8-_0x23826a._0x155529);}if(_0x2977b5[_0x4af635(_0x6e8962._0x5876a0,_0x6e8962._0x5357a5,0x1a0,0x31c)]===0x0)return _0x4af635(_0x6e8962._0x525da4,_0x6e8962._0x14da98,_0x6e8962._0x3470cb,_0x6e8962._0x2f20bb);function _0x4af635(_0x1f9756,_0x5ed28c,_0x1fb919,_0x2f7b4e){return _0x4aa629(_0x1f9756-_0x280179._0x1d8964,_0x2f7b4e,_0x1fb919-_0x280179._0x426901,_0x5ed28c-_0x280179._0x416814);}return _0x2977b5[_0x44a8e4(-0x30b,-_0x6e8962._0x126e43,-_0x6e8962._0x2f9d71,-_0x6e8962._0x1a3c87)](_0x135c8b=>{const _0x1661b7={_0x5615ed:0x17,_0x156934:0x49b},_0x4b1af4={_0x306f66:0xdf,_0x3afa63:0x260};function _0x1d3428(_0x244aa4,_0x5a4898,_0x952f41,_0x2c25cd){return _0x44a8e4(_0x5a4898,_0x5a4898-0xa0,_0x952f41-_0x4b1af4._0x306f66,_0x952f41-_0x4b1af4._0x3afa63);}const _0x384f82=_0x135c8b['range'][_0x3f18f6(0x3e4,_0x5d646a._0x1dc6a7,0x3d1,0x3e1)];function _0x3f18f6(_0x567df1,_0x13bd46,_0x105420,_0x318918){return _0x44a8e4(_0x318918,_0x13bd46-_0x1661b7._0x5615ed,_0x105420-0x1a3,_0x105420-_0x1661b7._0x156934);}return locationPath(_0x135c8b['uri'])+':'+(_0x384f82['line']+0x1)+':'+(_0x384f82[_0x1d3428(_0x5d646a._0x55d225,0x167,0xff,0x1eb)]+0x1);})[_0x4af635(0x2bd,_0x6e8962._0xda3977,_0x6e8962._0x400b4f,0x1f1)]('\x0a');}function isDocumentSymbol(_0x2a8736){const _0x3c1b8c={_0x4ad56f:0x1b5,_0x4ab69f:0x18,_0x577b84:0x356,_0x53d141:0x24a,_0x8d111c:0x29b},_0x54e821={_0x84c239:0x182,_0x4cf47e:0x193},_0x2ca24d={_0x4f770c:0x6d,_0x36f2d1:0x13d};function _0xb1da27(_0x34b76e,_0x132ed3,_0x574ebd,_0xe07cdc){return _0x4aa629(_0x34b76e-_0x2ca24d._0x4f770c,_0x574ebd,_0x574ebd-0x6,_0x132ed3- -_0x2ca24d._0x36f2d1);}function _0x21b816(_0x5de0db,_0x47c822,_0x5aa396,_0x2456d2){return _0x2f0acf(_0x5de0db- -0x448,_0x47c822-_0x54e821._0x84c239,_0x2456d2,_0x2456d2-_0x54e821._0x4cf47e);}return _0x21b816(-0xa2,-_0x3c1b8c._0x4ad56f,-0x1a1,_0x3c1b8c._0x4ab69f)in _0x2a8736&&_0xb1da27(-_0x3c1b8c._0x577b84,-_0x3c1b8c._0x53d141,-0x258,-_0x3c1b8c._0x8d111c)in _0x2a8736;}function formatSymbols(_0x427a43){const _0x4cb7f2={_0x5e68b6:0x42c,_0x7634b9:0x2cf,_0x47c61a:0x331,_0x129896:0x28e,_0x2b7403:0x2fc,_0x29ebf9:0x1ea,_0x4d2293:0x24c,_0x35947a:0x3dc,_0x9d760f:0x3cd},_0x506df4={_0xbf2828:0x4db,_0x5e80c9:0x8e,_0x1f1c10:0x2d4,_0x4facb0:0x1ba,_0x4baafd:0x1b1,_0xd6aa66:0x82,_0x162c70:0x101,_0x23e3be:0x1a,_0xc21439:0x142,_0x3bbc43:0x198,_0x6d1ab7:0x56f,_0xde1b8b:0x6f8,_0x4b0ee9:0x4c3,_0x2f48dd:0x5d0,_0x59086a:0x4ff,_0x5ec81b:0x42c,_0x5a7063:0x577,_0x1ac1e1:0x3df,_0x32bbf6:0x4a8,_0x52a709:0x5bb,_0x55d0e2:0x5d6,_0x5cb875:0x689,_0xce6e05:0xbb,_0x597941:0x12d,_0x105f5f:0x4a1,_0x4c28b9:0x5f9,_0x10f3a0:0x527,_0x3318fd:0x224},_0x1c79a6={_0x19d62b:0x1a9},_0x2b8200={_0x577a95:0xda},_0x4b3414={_0x5b1498:0x70},_0x40eea1={_0xf7fd8c:0x378,_0x3b0a48:0x124};function _0x3f1837(_0x4b6b7e,_0x3df464,_0x110380,_0x332c0d){return _0x2f0acf(_0x4b6b7e- -_0x40eea1._0xf7fd8c,_0x3df464-_0x40eea1._0x3b0a48,_0x3df464,_0x332c0d-0xcb);}if(_0x427a43[_0x29b4a5(0x37e,_0x4cb7f2._0x5e68b6,0x467,_0x4cb7f2._0x7634b9)]===0x0)return _0x29b4a5(_0x4cb7f2._0x47c61a,_0x4cb7f2._0x129896,_0x4cb7f2._0x2b7403,0x3fc);function _0x29b4a5(_0x4aa49c,_0x523f4f,_0x4d7806,_0x5e42cd){return _0x2f0acf(_0x4aa49c-0xbb,_0x523f4f-_0x4b3414._0x5b1498,_0x4d7806,_0x5e42cd-0xe7);}return _0x427a43[_0x29b4a5(0x2e9,0x2c9,0x246,_0x4cb7f2._0x29ebf9)](_0x4f940b=>{function _0x3641e4(_0x5040ab,_0x52c5ca,_0x5935e4,_0x3c98ee){return _0x3f1837(_0x3c98ee-0x639,_0x5935e4,_0x5935e4-_0x2b8200._0x577a95,_0x3c98ee-0x2d);}if(isDocumentSymbol(_0x4f940b))return _0x4f940b[_0x3641e4(0x5f3,0x712,_0x506df4._0xbf2828,0x60d)]+'\x20('+_0x4f940b[_0x3b06ee(-_0x506df4._0x5e80c9,-_0x506df4._0x1f1c10,-_0x506df4._0x4facb0,-_0x506df4._0x4baafd)]+')\x20['+(_0x4f940b['range'][_0x3b06ee(-_0x506df4._0xd6aa66,-0x18,-_0x506df4._0x162c70,-_0x506df4._0x23e3be)]['line']+0x1)+':'+(_0x4f940b['range'][_0x3b06ee(-_0x506df4._0xc21439,0x2f,-0x101,-0x4b)][_0x3b06ee(-0x1dc,-0x276,-_0x506df4._0x3bbc43,-0x13f)]+0x1)+']';function _0x3b06ee(_0x35a35e,_0x234a5f,_0x3f70b9,_0x398b27){return _0x3f1837(_0x3f70b9- -0x151,_0x35a35e,_0x3f70b9-0x8d,_0x398b27-_0x1c79a6._0x19d62b);}return _0x4f940b[_0x3641e4(0x722,0x691,_0x506df4._0x6d1ab7,0x60d)]+'\x20('+_0x4f940b[_0x3641e4(0x5d7,_0x506df4._0xde1b8b,_0x506df4._0x4b0ee9,_0x506df4._0x2f48dd)]+')\x20'+locationPath(_0x4f940b[_0x3641e4(_0x506df4._0x59086a,0x66c,_0x506df4._0x5ec81b,0x527)][_0x3641e4(_0x506df4._0x5a7063,_0x506df4._0x1ac1e1,_0x506df4._0x32bbf6,0x4cd)])+':'+(_0x4f940b['location']['range'][_0x3641e4(0x68f,_0x506df4._0x52a709,_0x506df4._0x55d0e2,_0x506df4._0x5cb875)][_0x3b06ee(-_0x506df4._0xce6e05,-0x18e,-0x12f,-_0x506df4._0x597941)]+0x1)+':'+(_0x4f940b[_0x3641e4(_0x506df4._0x105f5f,0x5a5,_0x506df4._0x4c28b9,_0x506df4._0x10f3a0)]['range'][_0x3b06ee(-_0x506df4._0x3318fd,-0x3,-_0x506df4._0x162c70,-0x1fc)]['character']+0x1);})[_0x29b4a5(0x384,_0x4cb7f2._0x4d2293,_0x4cb7f2._0x35947a,_0x4cb7f2._0x9d760f)]('\x0a');}function formatDiagnostics(_0x53f68d){const _0x47424e={_0x2bb404:0x254,_0xc186cb:0x11c,_0x5a5be8:0x79,_0x350ad2:0x5b,_0xb02987:0x312},_0x363cc8={_0x49520c:0x102,_0x4ee15c:0x131,_0x17829a:0x85,_0xbca5cd:0x71,_0x3b2158:0x133,_0x155a9d:0x18e,_0x10a7eb:0xbb,_0x37d3bc:0xe},_0xc2e2cb={_0x6fd804:0x1cb,_0x3920c9:0x1df,_0x45debd:0x4b3},_0x2ca56d={_0x2e242f:0xf2,_0x33cdc5:0x12f},_0x2a1ca6={_0x4f98d2:0x49,_0x4481e5:0x178},_0x3d2f98={_0x3e2868:0x39a,_0x16ae0e:0x28};function _0x2421b3(_0x545e18,_0x339295,_0xd4b009,_0x1ab53f){return _0x2f0acf(_0xd4b009- -_0x3d2f98._0x3e2868,_0x339295-0xa1,_0x339295,_0x1ab53f-_0x3d2f98._0x16ae0e);}function _0x47abc5(_0x3666d1,_0x27e82a,_0x19a22b,_0x3e61e3){return _0x2f0acf(_0x19a22b-_0x2a1ca6._0x4f98d2,_0x27e82a-0xf,_0x3e61e3,_0x3e61e3-_0x2a1ca6._0x4481e5);}if(_0x53f68d[_0x47abc5(0x25d,_0x47424e._0x2bb404,0x30c,0x407)]===0x0)return _0x2421b3(-_0x47424e._0xc186cb,-_0x47424e._0x5a5be8,-0x102,-_0x47424e._0x350ad2);return _0x53f68d['map'](_0x58a682=>{const _0xd01390=_0x58a682[_0x4d5055(-0x1fa,-_0x363cc8._0x49520c,-0xc4,0x34)][_0x4d5055(-_0x363cc8._0x4ee15c,-_0x363cc8._0x17829a,-0xa2,-_0x363cc8._0xbca5cd)];function _0x2143d4(_0x2f2441,_0x2d2d2b,_0x424974,_0x5d75fa){return _0x2421b3(_0x2f2441-0x1cc,_0x5d75fa,_0x2f2441- -_0x2ca56d._0x2e242f,_0x5d75fa-_0x2ca56d._0x33cdc5);}function _0x4d5055(_0x2ea648,_0x2c91bc,_0x16d7bb,_0x2f222d){return _0x47abc5(_0x2ea648-_0xc2e2cb._0x6fd804,_0x2c91bc-_0xc2e2cb._0x3920c9,_0x16d7bb- -_0xc2e2cb._0x45debd,_0x2ea648);}return severityName(_0x58a682[_0x4d5055(-_0x363cc8._0x3b2158,-0x10d,-0x23b,-0x26a)])+'\x20['+(_0xd01390[_0x2143d4(-0xf2,-0xe7,-_0x363cc8._0x155a9d,-_0x363cc8._0x10a7eb)]+0x1)+':'+(_0xd01390['character']+0x1)+']\x20'+_0x58a682[_0x2143d4(-0x4e,-_0x363cc8._0x37d3bc,0xb8,0xac)];})[_0x47abc5(0x411,0x259,_0x47424e._0xb02987,0x2cd)]('\x0a');}function formatIncomingCalls(_0x54f83c){const _0x106803={_0x4195a2:0x6ff,_0x5ddf6c:0x1fb,_0x293e10:0x30b,_0x366848:0x1c0},_0x466d0d={_0x21eb9f:0xcb,_0x50cf92:0xcc};if(_0x54f83c['length']===0x0)return _0x2c15db(0x612,0x59a,_0x106803._0x4195a2,0x522);function _0x41de57(_0x1d9946,_0x336158,_0x593c60,_0x2aa8d9){return _0x4aa629(_0x1d9946-_0x466d0d._0x21eb9f,_0x593c60,_0x593c60-_0x466d0d._0x50cf92,_0x2aa8d9- -0x180);}function _0x2c15db(_0x3485c9,_0x36b1a1,_0x1626e4,_0x192eb3){return _0x4aa629(_0x3485c9-0x5,_0x1626e4,_0x1626e4-0x90,_0x3485c9-0x61a);}return _0x54f83c['map'](_0x7f29cd=>_0x7f29cd[_0x41de57(-0x22f,-0x182,-0x2ec,-0x27f)][_0x2c15db(0x629,0x727,0x5f9,0x50b)])[_0x41de57(-_0x106803._0x5ddf6c,-_0x106803._0x293e10,-_0x106803._0x366848,-0x1f4)]('\x0a');}function formatOutgoingCalls(_0x10337a){const _0x1472e9={_0x51ba28:0xc0,_0x31ce7b:0x21d,_0x29425c:0x1b8,_0x308a26:0x288,_0x387f82:0x1dd};function _0x228f9f(_0x5d711e,_0xf1d152,_0x21524d,_0x5e11fe){return _0x2f0acf(_0x5e11fe- -0x315,_0xf1d152-0x152,_0xf1d152,_0x5e11fe-0x1a3);}if(_0x10337a['length']===0x0)return _0xc09888(-0x16d,-_0x1472e9._0x51ba28,-_0x1472e9._0x31ce7b,-_0x1472e9._0x29425c);function _0xc09888(_0x84c772,_0x288432,_0x174fb3,_0x521973){return _0x4aa629(_0x84c772-0x1d8,_0x174fb3,_0x174fb3-0xc2,_0x84c772- -0x165);}return _0x10337a[_0xc09888(-0x274,-_0x1472e9._0x308a26,-0x1d7,-_0x1472e9._0x387f82)](_0x110997=>_0x110997['to'][_0xc09888(-0x156,-0x12d,-0x1b4,-0x1cf)])['join']('\x0a');}function toStructured(_0x2a6849){const _0x5c15a2={_0x3048b5:0x95,_0x1261ea:0x20b,_0x5a6f4e:0x8d},_0x38527b={_0x31a757:0xa6,_0x4a3535:0x1e3},_0x29370f={_0xc00ac3:0x8e,_0x4b175d:0x1b6};function _0x288f86(_0x5c5ae5,_0x1d3024,_0x15e078,_0x3ddc0d){return _0x2f0acf(_0x15e078- -0x389,_0x1d3024-_0x29370f._0xc00ac3,_0x3ddc0d,_0x3ddc0d-_0x29370f._0x4b175d);}function _0x1d3dcf(_0x50c2fc,_0x15e1f4,_0x2d6ab8,_0x2db1e0){return _0x4aa629(_0x50c2fc-_0x38527b._0x31a757,_0x50c2fc,_0x2d6ab8-_0x38527b._0x4a3535,_0x2d6ab8-0x49f);}return JSON[_0x288f86(-_0x5c15a2._0x3048b5,-_0x5c15a2._0x1261ea,-0x147,-0x26e)](JSON[_0x288f86(-_0x5c15a2._0x5a6f4e,-0x143,-0x85,-_0x5c15a2._0x3048b5)](_0x2a6849));}async function assertFile(_0x3fe91d){const _0x1fda00={_0x2155b2:0x118},_0x1e5d5f={_0x30c78d:0x22,_0x4273f2:0x18d},_0x29e576=await _0xe0a42d(_0x3fe91d);function _0x4fec73(_0x3f5743,_0x2244d5,_0x520935,_0x3ac51a){return _0x4aa629(_0x3f5743-_0x1e5d5f._0x30c78d,_0x520935,_0x520935-0xcb,_0x3ac51a-_0x1e5d5f._0x4273f2);}if(!_0x29e576[_0x4fec73(-0xb9,0x15,-_0x1fda00._0x2155b2,0x28)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x3fe91d,{'path':_0x3fe91d});}function validatePosition(_0xaee271,_0x36a0c9){const _0x3b2329={_0x57b678:0x1fa,_0x5e915e:0x2f6,_0x4b97f6:0x26c,_0x2e2121:0x65},_0x51ad8b={_0x5a3dae:0x64},_0x52566a={_0x2d2d1b:0xbc,_0x5d2975:0x9b,_0x15207c:0x8b};function _0x8cecbc(_0xb9b84d,_0x10b50b,_0x48fe19,_0x328d0e){return _0x2f0acf(_0x48fe19- -_0x52566a._0x2d2d1b,_0x10b50b-_0x52566a._0x5d2975,_0xb9b84d,_0x328d0e-_0x52566a._0x15207c);}function _0x3c7ee4(_0x3de815,_0x12454f,_0x271f92,_0x5a0d9e){return _0x2f0acf(_0x3de815- -0x471,_0x12454f-0xaa,_0x12454f,_0x5a0d9e-_0x51ad8b._0x5a3dae);}if(!Number['isInteger'](_0xaee271)||_0xaee271<0x1)throw new ToolExecutionError(_0x3c7ee4(-0x1dc,-_0x3b2329._0x57b678,-0x217,-_0x3b2329._0x5e915e),{'line':_0xaee271});if(!Number[_0x8cecbc(0x270,_0x3b2329._0x4b97f6,0x2c2,0x31c)](_0x36a0c9)||_0x36a0c9<0x1)throw new ToolExecutionError(_0x3c7ee4(-0x14b,-0xfe,-0x1fe,-_0x3b2329._0x2e2121),{'character':_0x36a0c9});}function createLspTool(_0x42dbbf={}){const _0x52c314={_0x24c29e:0x3e7,_0x40f742:0x3b1,_0x315aaa:0x5a0,_0x3d9c61:0x46d,_0x580151:0x110,_0x242aaa:0x4ab,_0x51edcf:0x309,_0x1a952e:0x49e,_0x437d1b:0x1cd,_0x30ad61:0x1e4,_0x1d4ce5:0x390,_0x585077:0x23b,_0x5b62ca:0x31f,_0x27250e:0x4d4,_0xdea4e6:0x3aa,_0x423cef:0x368,_0xbaedf2:0x280,_0x365e6d:0x2ac,_0x1370b9:0x1ac,_0x530a9b:0x2ae,_0x149faa:0x4e6,_0x23a130:0x3c6,_0x31994e:0x448,_0x21ede2:0x2d,_0x51f4d6:0x3e,_0x2191d6:0x135,_0x1c29f5:0x8f,_0x3c4b94:0x42b,_0x1a730c:0x398,_0x3bfc67:0x1fc,_0x595cfe:0x296,_0x3e35dd:0x17d,_0x55c30a:0x7e,_0x1317f5:0x9a,_0x458329:0x2a,_0x5aeb8c:0x129,_0x5735c4:0x7a,_0xc7f187:0x39,_0xb9015c:0x5d,_0xd498e6:0x2,_0x5a6510:0x5b,_0x46bf6e:0x1c,_0x2d7c08:0x13d,_0x4bd7c0:0xf9,_0x3e8cd1:0xea,_0x8dcb82:0xa},_0x12581e={_0x1fdeeb:0x351,_0x331dce:0x26a,_0x5b44fe:0x2d7,_0x54eca5:0x22a,_0x1907fa:0x303,_0xa58bca:0x484,_0x541d80:0x3bd,_0x137763:0x483,_0x2cc286:0x4de,_0x3e1e07:0x543,_0x4b489d:0x42a,_0x223f76:0x486,_0x31b301:0x3e8,_0x1fba2e:0x42e,_0x595814:0x3fe,_0x5b7ddb:0x428,_0x24f2ef:0x406,_0x78e907:0x265,_0x59071f:0x34b,_0x2d38d5:0x599,_0x312278:0x644,_0x2ecf65:0x592,_0x6caffb:0xbc,_0x385fc5:0xff,_0x50c8fb:0x69,_0x514511:0xa1,_0xca2429:0x17a,_0x50acea:0x184,_0x2fd93d:0x535,_0x4bcf45:0x4ab,_0x29e9a7:0x14d,_0x356d66:0x22a,_0x5054d6:0x8,_0x5663ae:0xae,_0x7171d1:0x3da,_0x4a3092:0xf5,_0x14f303:0x2a9,_0x5d1c7f:0xc7,_0x33b15c:0x68,_0x5953e2:0xb,_0x57b1fd:0x130,_0x1823d3:0x1cc,_0x17824b:0x2f3,_0x3dd96a:0x222,_0x575f65:0x335,_0x2d4838:0x273,_0x1d1c05:0x3b8,_0x45ddd8:0x628,_0x15b3d4:0x4c5,_0x261213:0x59c,_0x43e6ab:0x4fc,_0xe41972:0x580,_0x2684b0:0x415,_0x1744c6:0x21f,_0x34b057:0x103,_0x47e4f8:0x427,_0x45c886:0x390,_0x3d75ff:0x48f,_0xbf3302:0x1,_0x2ea85b:0x127,_0x158c73:0xcd,_0x45a144:0x2d,_0xaaff70:0x58d,_0x1c3bff:0x485,_0x4b5faf:0x48e,_0x45abd3:0xef,_0x9d8275:0x1ea,_0x440b95:0x145},_0x5e532d={_0x120808:0x17e,_0x1e541c:0x35c},_0x56f176={_0x54e39c:0x409,_0x24846a:0x173,_0x367b1e:0x167},_0x13bba0=_0x11df05['resolve'](_0x42dbbf['defaultCwd']??process[_0x4f9730(_0x52c314._0x24c29e,_0x52c314._0x40f742,_0x52c314._0x315aaa,_0x52c314._0x3d9c61)]()),_0x3514c7=(_0x42dbbf['allowedDirs']??[])[_0x4f9730(_0x52c314._0x580151,0x300,0x1df,0x24d)](_0x5027dd=>_0x11df05['resolve'](_0x5027dd));function _0x1b6e35(_0x271330,_0x2174b6,_0x3e13df,_0x2742df){return _0x2f0acf(_0x2174b6- -_0x56f176._0x54e39c,_0x2174b6-_0x56f176._0x24846a,_0x3e13df,_0x2742df-_0x56f176._0x367b1e);}function _0x4f9730(_0x5a8e03,_0x33571a,_0x43f981,_0x4df44a){return _0x4aa629(_0x5a8e03-0x116,_0x43f981,_0x43f981-_0x5e532d._0x120808,_0x4df44a-_0x5e532d._0x1e541c);}const _0x536416=_0x42dbbf[_0x4f9730(_0x52c314._0x242aaa,_0x52c314._0x51edcf,0x2b1,0x36b)]??_0x4f9730(0x46e,0x253,_0x52c314._0x1a952e,0x36d);return defineTool({'name':_0x536416,'description':_0x1b6e35(-_0x52c314._0x437d1b,-0x101,-_0x52c314._0x30ad61,0x2d),'inputSchema':{'type':_0x4f9730(0x241,_0x52c314._0x1d4ce5,_0x52c314._0x585077,_0x52c314._0x5b62ca),'properties':{'operation':{'type':_0x4f9730(_0x52c314._0x27250e,0x43d,0x43d,_0x52c314._0xdea4e6),'enum':[_0x1b6e35(-0x119,-0x224,-_0x52c314._0x423cef,-_0x52c314._0xbaedf2),_0x1b6e35(-_0x52c314._0x365e6d,-_0x52c314._0x1370b9,-0x7c,-_0x52c314._0x530a9b),_0x4f9730(_0x52c314._0x149faa,_0x52c314._0x23a130,0x562,_0x52c314._0x31994e),_0x1b6e35(-0x1de,-0x149,-0x273,-_0x52c314._0x21ede2),'workspaceSymbol',_0x1b6e35(-0xa0,_0x52c314._0x51f4d6,_0x52c314._0x2191d6,-0xff),_0x1b6e35(-0x182,-0xcf,-0x8d,-_0x52c314._0x1c29f5),_0x4f9730(_0x52c314._0x3c4b94,0x31f,0x436,_0x52c314._0x1a730c),_0x4f9730(0x2fc,_0x52c314._0x3bfc67,0x396,_0x52c314._0x595cfe),'diagnostics']},'filePath':{'type':_0x1b6e35(-_0x52c314._0x3e35dd,-_0x52c314._0x55c30a,-_0x52c314._0x1317f5,-0x162)},'line':{'type':_0x1b6e35(-_0x52c314._0x458329,0x7,_0x52c314._0x5aeb8c,0x106)},'character':{'type':'number'},'query':{'type':_0x1b6e35(-_0x52c314._0x5735c4,-0x7e,_0x52c314._0xc7f187,-_0x52c314._0xb9015c)}},'required':[_0x1b6e35(_0x52c314._0xd498e6,-0x1c,-_0x52c314._0x5a6510,_0x52c314._0x46bf6e),_0x1b6e35(-0xd8,-_0x52c314._0x2d7c08,-_0x52c314._0x4bd7c0,-0x10e),_0x1b6e35(0xd5,-0x6f,-0x10d,0xcf),_0x1b6e35(-_0x52c314._0x3e8cd1,-0xd8,-_0x52c314._0x8dcb82,0x19)]},async *'execute'(_0x58483e){const _0x2b6890={_0xbd020c:0x11e,_0x1b26e8:0x4a},_0x2501d6=_0x42dbbf[_0xae14f8(-_0x12581e._0x1fdeeb,-_0x12581e._0x331dce,-_0x12581e._0x5b44fe,-0x230)];if(!_0x2501d6)throw new ToolExecutionError(_0xae14f8(-0x246,-_0x12581e._0x54eca5,-0x255,-_0x12581e._0x1907fa));if(!_0x2501d6[_0xa2525b(_0x12581e._0xa58bca,0x5a1,0x529,0x462)]())throw new ToolExecutionError(_0xa2525b(_0x12581e._0x541d80,_0x12581e._0x137763,0x29f,0x348));const _0x3d9f70=_0x58483e[_0xa2525b(_0x12581e._0x2cc286,_0x12581e._0x3e1e07,0x63c,0x542)];validatePosition(_0x58483e['line'],_0x58483e[_0xa2525b(0x410,_0x12581e._0x4b489d,0x5a8,_0x12581e._0x223f76)]);if(_0x3d9f70===_0xa2525b(0x3c4,_0x12581e._0x31b301,0x3ed,_0x12581e._0x1fba2e)){if(!_0x58483e[_0xa2525b(_0x12581e._0x595814,_0x12581e._0x5b7ddb,_0x12581e._0x24f2ef,0x515)]?.[_0xa2525b(0x21b,_0x12581e._0x78e907,_0x12581e._0x59071f,0x344)]())throw new ToolExecutionError(_0xa2525b(_0x12581e._0x2d38d5,0x5ff,_0x12581e._0x312278,_0x12581e._0x2ecf65));const _0x3c00e1=await _0x2501d6[_0xae14f8(-0xd6,-0x188,-_0x12581e._0x6caffb,-_0x12581e._0x385fc5)](_0x58483e['query']['trim']());return yield createToolOutput(formatSymbols(_0x3c00e1),{'operation':_0x3d9f70,'query':_0x58483e[_0xae14f8(_0x12581e._0x50c8fb,-_0x12581e._0x514511,-_0x12581e._0xca2429,-_0x12581e._0x50acea)],'symbols':_0x3c00e1}),void 0x0;}const _0x24a59d=resolveAllowedPath(_0x13bba0,_0x3514c7,_0x58483e[_0xa2525b(_0x12581e._0x2fd93d,_0x12581e._0x4bcf45,0x3db,0x421)]);await assertFile(_0x24a59d);if(!await _0x2501d6[_0xae14f8(-_0x12581e._0x29e9a7,-0xfe,-_0x12581e._0x356d66,_0x12581e._0x5054d6)](_0x24a59d))throw new ToolExecutionError(_0xae14f8(-_0x12581e._0x5663ae,-0x2c,-0x6f,-0xae)+_0x58483e['filePath'],{'filePath':_0x58483e[_0xa2525b(0x2fd,0x50f,_0x12581e._0x7171d1,0x421)]});function _0xae14f8(_0x3a7462,_0x4547ba,_0x267f66,_0x25cacd){return _0x4f9730(_0x3a7462-_0x2b6890._0xbd020c,_0x4547ba-_0x2b6890._0x1b26e8,_0x25cacd,_0x4547ba- -0x480);}await _0x2501d6[_0xae14f8(-_0x12581e._0x4a3092,-0x16e,-0x12b,-_0x12581e._0x14f303)](_0x24a59d,!![]);function _0xa2525b(_0x2b3c1b,_0x3d9c30,_0x17f4dd,_0x53184f){return _0x1b6e35(_0x2b3c1b-0x177,_0x53184f-0x55e,_0x3d9c30,_0x53184f-0x199);}const _0x10d91d={'file':_0x24a59d,'line':_0x58483e[_0xae14f8(-0xe4,-_0x12581e._0x5d1c7f,-0x6d,_0x12581e._0x33b15c)]-0x1,'character':_0x58483e[_0xae14f8(-_0x12581e._0x5953e2,-_0x12581e._0x57b1fd,-0x275,-0x56)]-0x1};switch(_0x3d9f70){case'hover':{const _0x488752=await _0x2501d6['hover'](_0x10d91d);return yield createToolOutput(formatHover(_0x488752),{'operation':_0x3d9f70,'filePath':_0x24a59d,'hover':_0x488752}),void 0x0;}case _0xae14f8(-0x2f0,-0x290,-_0x12581e._0x1823d3,-_0x12581e._0x17824b):{const _0x510d2d=await _0x2501d6[_0xa2525b(_0x12581e._0x3dd96a,_0x12581e._0x575f65,0x3d2,0x35f)](_0x24a59d);return yield createToolOutput(formatDiagnostics(_0x510d2d),{'operation':_0x3d9f70,'filePath':_0x24a59d,'diagnostics':_0x510d2d}),void 0x0;}case _0xa2525b(0x414,_0x12581e._0x2d4838,_0x12581e._0x1d1c05,0x33a):{const _0x4a2746=await _0x2501d6[_0xa2525b(_0x12581e._0x45ddd8,0x5c9,0x568,0x50e)](_0x10d91d);return yield createToolOutput(formatLocations(_0x4a2746),{'operation':_0x3d9f70,'filePath':_0x24a59d,'locations':_0x4a2746}),void 0x0;}case'findReferences':{const _0x1d614b=await _0x2501d6['references'](_0x10d91d);return yield createToolOutput(formatLocations(_0x1d614b),{'operation':_0x3d9f70,'filePath':_0x24a59d,'locations':_0x1d614b}),void 0x0;}case _0xa2525b(0x4a4,0x618,_0x12581e._0x15b3d4,_0x12581e._0x261213):{const _0x2af517=await _0x2501d6[_0xa2525b(0x50e,0x560,_0x12581e._0x43e6ab,_0x12581e._0xe41972)](_0x10d91d);return yield createToolOutput(formatLocations(_0x2af517),{'operation':_0x3d9f70,'filePath':_0x24a59d,'locations':_0x2af517}),void 0x0;}case _0xa2525b(0x474,0x487,0x4e3,_0x12581e._0x2684b0):{const _0x392100=await _0x2501d6[_0xae14f8(-_0x12581e._0x1744c6,-0x1a1,-0x250,-_0x12581e._0x34b057)](_0x24a59d);return yield createToolOutput(formatSymbols(_0x392100),{'operation':_0x3d9f70,'filePath':_0x24a59d,'symbols':_0x392100}),void 0x0;}case _0xa2525b(_0x12581e._0x47e4f8,0x5a7,_0x12581e._0x45c886,_0x12581e._0x3d75ff):{const _0x45592c=await _0x2501d6[_0xae14f8(_0x12581e._0xbf3302,-_0x12581e._0x2ea85b,-_0x12581e._0x158c73,-_0x12581e._0x45a144)](_0x10d91d);return yield createToolOutput(formatSymbols(_0x45592c),{'operation':_0x3d9f70,'filePath':_0x24a59d,'symbols':toStructured(_0x45592c)}),void 0x0;}case _0xa2525b(0x5ed,0x570,0x47f,0x4ce):{const _0x160970=await _0x2501d6[_0xa2525b(_0x12581e._0xaaff70,_0x12581e._0x1c3bff,_0x12581e._0x4b5faf,0x4ce)](_0x10d91d);return yield createToolOutput(formatIncomingCalls(_0x160970),{'operation':_0x3d9f70,'filePath':_0x24a59d,'calls':toStructured(_0x160970)}),void 0x0;}case _0xae14f8(-_0x12581e._0x45abd3,-_0x12581e._0x9d8275,-_0x12581e._0x440b95,-0x206):{const _0x47f7d1=await _0x2501d6['outgoingCalls'](_0x10d91d);return yield createToolOutput(formatOutgoingCalls(_0x47f7d1),{'operation':_0x3d9f70,'filePath':_0x24a59d,'calls':toStructured(_0x47f7d1)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x4f1a5b,readFile as _0x430286,writeFile as _0x23a316}from'fs/promises';import{join as _0x472289}from'path';function sanitizeStorageKey(_0x42ea2c){const _0x316056={_0x1d3698:0x10f,_0x174c89:0x1fd,_0xcafe9a:0x11e,_0x2a221c:0x111};function _0x5b7fd9(_0x56a389,_0x342e6f,_0x422e2d,_0x436978){return _0x2f0acf(_0x436978- -0xc6,_0x342e6f-0x16e,_0x342e6f,_0x436978-0x5a);}function _0x5d40b8(_0x5c8a95,_0x4e8477,_0xc99235,_0x19b283){return _0x4aa629(_0x5c8a95-0x137,_0x4e8477,_0xc99235-0x166,_0xc99235-0x582);}return _0x42ea2c[_0x5b7fd9(_0x316056._0x1d3698,0x11b,_0x316056._0x174c89,0x111)](/[^a-zA-Z0-9_]+/g,'_')[_0x5b7fd9(_0x316056._0xcafe9a,0x18b,-0x8,_0x316056._0x2a221c)](/^_+|_+$/g,'')||_0x5d40b8(0x603,0x667,0x556,0x48e);}function storagePath(_0x144636){const _0x290436={_0x22ca57:0x2a6,_0x43ac2e:0x166,_0x343507:0x131,_0x550ae7:0x9e,_0x233cdf:0xef,_0x57be3d:0xd2},_0x3f0094={_0x9d8476:0x49,_0x32dc30:0x69};function _0x547c8c(_0x175a49,_0x1a9000,_0x77871,_0x5f262b){return _0x4aa629(_0x175a49-0x1b8,_0x1a9000,_0x77871-0x31,_0x175a49-0x215);}const _0x81bc7b=sanitizeStorageKey(_0x144636[_0x547c8c(_0x290436._0x22ca57,0x308,0x339,0x1a3)]['oauth']?.[_0x547c8c(_0x290436._0x43ac2e,0x2ad,_0x290436._0x343507,_0x290436._0x550ae7)]??_0x144636['serverName']);function _0x469051(_0x35e114,_0x5459b5,_0x491f2f,_0x1f4a19){return _0x4aa629(_0x35e114-_0x3f0094._0x9d8476,_0x1f4a19,_0x491f2f-_0x3f0094._0x32dc30,_0x5459b5-0x3d);}return _0x472289(_0x144636['storageDir'],_0x81bc7b+_0x469051(0x5e,0x17,-_0x290436._0x233cdf,-_0x290436._0x57be3d));}async function readStore(_0x52108e){const _0x387119={_0x2b2fbc:0xe0,_0x5a273d:0x216,_0x4f468c:0x1d3,_0x3db43f:0x191,_0x1ea39a:0x34,_0x319837:0xad,_0x4592c:0x58f,_0x258c36:0x449,_0x308d2c:0x58f,_0x2a4d8f:0x5c0,_0x32fc34:0x5a5},_0x56024c={_0x5df9bc:0x232,_0x483d63:0x1ea,_0x1d0a0e:0x37},_0x1c902b={_0x2b6e48:0xe6};function _0x1d99cd(_0x34faf9,_0x4bbcb7,_0x5f8612,_0xd2a0d2){return _0x2f0acf(_0x5f8612- -0x314,_0x4bbcb7-0x137,_0x34faf9,_0xd2a0d2-_0x1c902b._0x2b6e48);}function _0x6b3d4d(_0x354718,_0x5bee22,_0x225ab9,_0x4cb18f){return _0x2f0acf(_0x354718-_0x56024c._0x5df9bc,_0x5bee22-_0x56024c._0x483d63,_0x225ab9,_0x4cb18f-_0x56024c._0x1d0a0e);}try{return JSON[_0x1d99cd(-_0x387119._0x2b2fbc,-_0x387119._0x5a273d,-0xd2,-_0x387119._0x4f468c)](await _0x430286(_0x52108e,_0x1d99cd(-_0x387119._0x3db43f,_0x387119._0x1ea39a,-0x8f,-_0x387119._0x319837)));}catch(_0xeaa1d1){if(_0xeaa1d1 instanceof Error&&_0x6b3d4d(_0x387119._0x4592c,0x67c,0x465,_0x387119._0x258c36)in _0xeaa1d1&&_0xeaa1d1[_0x6b3d4d(_0x387119._0x308d2c,0x591,_0x387119._0x2a4d8f,_0x387119._0x32fc34)]==='ENOENT')return{};throw _0xeaa1d1;}}async function writeStore(_0x234d78,_0x1d33cc){const _0x275754={_0x37fe81:0x530,_0x22aea9:0x439},_0xb6c6ed={_0xb7a1e3:0x2d};await _0x4f1a5b(_0x472289(_0x234d78,'..'),{'recursive':!![]});function _0x499539(_0x4314b7,_0x84db65,_0x379970,_0x492a70){return _0x2f0acf(_0x492a70-0x1b4,_0x84db65-0xa8,_0x4314b7,_0x492a70-_0xb6c6ed._0xb7a1e3);}await _0x23a316(_0x234d78,JSON['stringify'](_0x1d33cc,null,0x2),_0x499539(0x3fe,_0x275754._0x37fe81,0x323,_0x275754._0x22aea9));}function _0x2f0acf(_0xff2276,_0xf2ccb,_0x5d1b7b,_0x193aa2){return _0x561a(_0xff2276-0xeb,_0x5d1b7b);}async function updateStore(_0x323e58,_0x4c0eb0){const _0xfffb5=await readStore(_0x323e58);_0x4c0eb0(_0xfffb5),await writeStore(_0x323e58,_0xfffb5);}function createMcpOAuthProvider(_0x2ac031){const _0x5b8c34={_0x379cc1:0x177,_0x307922:0x1bf,_0x408050:0x132,_0x14d953:0x209,_0x263968:0x28f,_0x5edf35:0x20c,_0x152dd5:0x306,_0x45050e:0x142,_0x5a299f:0x44,_0x167981:0x325,_0x60482a:0x243,_0x57f0dd:0xd6,_0x2c0eed:0x37,_0x45c526:0x1a2,_0x23ac2e:0xe5,_0x30f2b5:0x136,_0x1fbf76:0x21f},_0x4e2e4f={_0x215e87:0x278,_0x55b1aa:0x325,_0x67cf60:0x269},_0x2a09bf={_0x1277a9:0x111,_0x50577a:0x94,_0x14f013:0xa3,_0x364d0c:0x78,_0x2bf9ff:0x2a9,_0x131fe8:0x3dd,_0x14f32:0x3d8,_0x21dcce:0x481,_0x1a3961:0x13,_0xcc2dcf:0x19,_0x4ed865:0x170,_0x5914d4:0x94,_0x2b4186:0x2e9,_0x3b8bf4:0x3dc,_0x1280ab:0x41a,_0x1d8061:0x590,_0x56b591:0x4fa,_0x56f566:0x462,_0x268477:0x38f,_0x17d4fe:0x18e,_0x14e6c2:0x87},_0x18243e={_0x5832e5:0x6f6,_0x389c66:0x7a1,_0x3cf747:0x65c,_0xf4ac9a:0x726,_0x41fa06:0x6ee},_0x229bd0={_0x3d1bcd:0x146,_0x5b65c3:0xab,_0x572e47:0x209},_0x361868={_0x16c12a:0x11b,_0x1585d0:0x176},_0x3a8283={_0x106583:0x3dd,_0x49504d:0x409,_0x328c88:0x3ad},_0x19873a={_0x5e9212:0xae},_0x1a48df={_0xdcc4bc:0x56},_0x1916b5={_0x1a23d5:0x0,_0x3caec6:0x15a,_0x5b4342:0x1cd},_0x20b2cf=storagePath(_0x2ac031);function _0x5e2a90(_0x636891,_0x451f1e,_0x78544b,_0x4c3050){return _0x4aa629(_0x636891-_0x1916b5._0x1a23d5,_0x451f1e,_0x78544b-_0x1916b5._0x3caec6,_0x78544b-_0x1916b5._0x5b4342);}const _0x5cb648=_0x2ac031[_0xdaa4e(-_0x5b8c34._0x379cc1,-0x1f3,-0xb9,-0x137)]['oauth']?.[_0x5e2a90(0xa0,_0x5b8c34._0x307922,_0x5b8c34._0x408050,_0x5b8c34._0x14d953)]?.['join']('\x20'),_0x169335={'client_name':'Nuvin','redirect_uris':[_0x2ac031[_0xdaa4e(-0x282,-_0x5b8c34._0x263968,-_0x5b8c34._0x5edf35,-_0x5b8c34._0x152dd5)]],'grant_types':[_0xdaa4e(0x53,-_0x5b8c34._0x45050e,-_0x5b8c34._0x5a299f,-0x7c),'refresh_token'],'response_types':[_0x5e2a90(0x2db,_0x5b8c34._0x167981,0x1ed,_0x5b8c34._0x60482a)],'token_endpoint_auth_method':_0xdaa4e(0xb9,_0x5b8c34._0x57f0dd,-_0x5b8c34._0x2c0eed,-0x101),..._0x5cb648?{'scope':_0x5cb648}:{}};function _0xdaa4e(_0x48f058,_0x521890,_0x2c9d28,_0x3ab056){return _0x4aa629(_0x48f058-0xf5,_0x48f058,_0x2c9d28-_0x1a48df._0xdcc4bc,_0x2c9d28- -0x14a);}return{'clientMetadataUrl':_0x2ac031['config'][_0x5e2a90(0x206,0x297,0x15e,_0x5b8c34._0x45c526)]?.[_0x5e2a90(_0x5b8c34._0x23ac2e,_0x5b8c34._0x30f2b5,0x175,_0x5b8c34._0x1fbf76)],get 'redirectUrl'(){function _0x4745b2(_0x4ebb58,_0x27d097,_0x20f147,_0x20b27a){return _0x5e2a90(_0x4ebb58-0x4a,_0x20f147,_0x27d097-0x1b,_0x20b27a-_0x19873a._0x5e9212);}return _0x2ac031[_0x4745b2(0x62,0x126,0x150,0x1fb)];},get 'clientMetadata'(){return _0x169335;},async 'state'(){const _0x559610={_0x12cee8:0x124,_0x1b350f:0x1ff,_0x11d2d9:0x1ac},_0x3025eb={_0x127c92:0xed,_0x3b4ca4:0x2d},_0x249b26=await readStore(_0x20b2cf);function _0x38b598(_0x136487,_0x3516c3,_0x39906c,_0x5cff6e){return _0xdaa4e(_0x3516c3,_0x3516c3-0x114,_0x5cff6e-_0x3025eb._0x127c92,_0x5cff6e-_0x3025eb._0x3b4ca4);}if(_0x249b26['state'])return _0x249b26[_0x38b598(-0x52,0xbc,0x8,-0x4)];const _0x56fa74=randomUUID();return await updateStore(_0x20b2cf,_0x1e67d2=>{function _0x32f9a0(_0x598fff,_0xdd7509,_0x317ba2,_0x2ded89){return _0x38b598(_0x598fff-0x18b,_0x598fff,_0x317ba2-0x84,_0x317ba2- -0x12d);}_0x1e67d2[_0x32f9a0(-_0x559610._0x12cee8,-_0x559610._0x1b350f,-0x131,-_0x559610._0x11d2d9)]=_0x56fa74;}),_0x56fa74;},async 'clientInformation'(){return(await readStore(_0x20b2cf))['clientInformation'];},async 'saveClientInformation'(_0x4d3f25){await updateStore(_0x20b2cf,_0xdcdc3e=>{const _0x1e4ccc={_0x38c514:0x181};function _0x2a24fe(_0x3d3914,_0x73c5f4,_0x177d80,_0x2ac7fa){return _0x561a(_0x3d3914-_0x1e4ccc._0x38c514,_0x2ac7fa);}_0xdcdc3e[_0x2a24fe(_0x3a8283._0x106583,_0x3a8283._0x49504d,_0x3a8283._0x328c88,0x2f3)]=_0x4d3f25;});},async 'tokens'(){return(await readStore(_0x20b2cf))['tokens'];},async 'saveTokens'(_0x4d786e){await updateStore(_0x20b2cf,_0x177369=>{function _0x348e63(_0x20a037,_0x3cd85f,_0x36fd1e,_0x10fd0d){return _0x561a(_0x10fd0d- -0x2c6,_0x36fd1e);}_0x177369[_0x348e63(-_0x361868._0x16c12a,-0x201,-0x218,-_0x361868._0x1585d0)]=_0x4d786e;});},async 'redirectToAuthorization'(_0x2e8afb){function _0x46c2f7(_0x4e8521,_0xb773f7,_0x4bab06,_0x42b8bc){return _0x5e2a90(_0x4e8521-0x1e3,_0x4bab06,_0x4e8521- -0x135,_0x42b8bc-0x1c8);}await _0x2ac031[_0x46c2f7(_0x229bd0._0x3d1bcd,_0x229bd0._0x5b65c3,0x171,_0x229bd0._0x572e47)](_0x2e8afb);},async 'saveCodeVerifier'(_0x533486){const _0x261936={_0x50a94b:0x4cb,_0x3efcf1:0x73c};await updateStore(_0x20b2cf,_0x2e330d=>{function _0x383389(_0x2b21ab,_0x42b596,_0x4637df,_0x248085){return _0x561a(_0x248085-0x330,_0x42b596);}_0x2e330d[_0x383389(0x529,_0x261936._0x50a94b,_0x261936._0x3efcf1,0x612)]=_0x533486;});},async 'codeVerifier'(){const _0x315ed9={_0xce92cb:0xd1},_0x5bf2a0={_0x2f4109:0x192,_0x45804b:0x74};function _0x176ff6(_0x1edba2,_0xf44471,_0x22d616,_0x13410d){return _0xdaa4e(_0x1edba2,_0xf44471-_0x5bf2a0._0x2f4109,_0x13410d-0x726,_0x13410d-_0x5bf2a0._0x45804b);}const _0x3846c0=(await readStore(_0x20b2cf))[_0x176ff6(0x6b1,_0x18243e._0x5832e5,_0x18243e._0x389c66,0x66c)];function _0x5c64aa(_0x57c1ba,_0x35bc79,_0x36cc29,_0x312d10){return _0xdaa4e(_0x36cc29,_0x35bc79-_0x315ed9._0xce92cb,_0x312d10-0x759,_0x312d10-0x1e6);}if(!_0x3846c0)throw new Error(_0x5c64aa(_0x18243e._0x3cf747,_0x18243e._0xf4ac9a,0x6ee,_0x18243e._0x41fa06));return _0x3846c0;},async 'invalidateCredentials'(_0x3fed75){await updateStore(_0x20b2cf,_0x37d0e4=>{const _0x224642={_0x4cabec:0x28c};function _0x26245e(_0x325c35,_0x3ef331,_0x4dd648,_0xf247a7){return _0x561a(_0xf247a7- -0x1e4,_0x4dd648);}(_0x3fed75==='all'||_0x3fed75===_0x26245e(-0xd6,_0x2a09bf._0x1277a9,0xa,-0x32))&&(_0x37d0e4[_0x26245e(_0x2a09bf._0x50577a,_0x2a09bf._0x14f013,0x17f,_0x2a09bf._0x364d0c)]=void 0x0);(_0x3fed75===_0x21bf50(_0x2a09bf._0x2bf9ff,_0x2a09bf._0x131fe8,_0x2a09bf._0x14f32,_0x2a09bf._0x21dcce)||_0x3fed75===_0x26245e(_0x2a09bf._0x1a3961,_0x2a09bf._0xcc2dcf,-_0x2a09bf._0x4ed865,-_0x2a09bf._0x5914d4))&&(_0x37d0e4[_0x21bf50(_0x2a09bf._0x2b4186,_0x2a09bf._0x3b8bf4,0x4fc,_0x2a09bf._0x1280ab)]=void 0x0);(_0x3fed75===_0x21bf50(0x2d5,0x3dd,0x474,0x521)||_0x3fed75===_0x21bf50(0x532,0x567,0x48e,0x4d7))&&(_0x37d0e4['codeVerifier']=void 0x0,_0x37d0e4[_0x21bf50(0x5bd,0x537,_0x2a09bf._0x1d8061,_0x2a09bf._0x56b591)]=void 0x0);function _0x21bf50(_0x320372,_0x329bbb,_0x14a211,_0x52a3e1){return _0x561a(_0x329bbb-_0x224642._0x4cabec,_0x320372);}(_0x3fed75===_0x21bf50(0x34c,_0x2a09bf._0x131fe8,_0x2a09bf._0x56f566,_0x2a09bf._0x268477)||_0x3fed75===_0x26245e(_0x2a09bf._0x17d4fe,-_0x2a09bf._0x14e6c2,0x160,0x58))&&(_0x37d0e4['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x383f9b){const _0x23e31e={_0x467fac:0x390},_0xf71d60={_0x47f35b:0xa2};await updateStore(_0x20b2cf,_0x3f48c5=>{function _0x38683d(_0xeb561d,_0x566fc9,_0x45baa0,_0x5549f5){return _0x561a(_0xeb561d-_0xf71d60._0x47f35b,_0x45baa0);}_0x3f48c5[_0x38683d(0x353,_0x23e31e._0x467fac,0x30d,0x30e)]=_0x383f9b;});},async 'discoveryState'(){function _0xb6e649(_0x11a6f4,_0x48570d,_0x21ddfa,_0x1b2aa8){return _0x5e2a90(_0x11a6f4-0x9f,_0x21ddfa,_0x1b2aa8-0x3d,_0x1b2aa8-0x4a);}return(await readStore(_0x20b2cf))[_0xb6e649(_0x4e2e4f._0x215e87,0x385,_0x4e2e4f._0x55b1aa,_0x4e2e4f._0x67cf60)];}};}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(_0xe7563f,_0x55910f){const _0x16e7cf={_0x4aa879:0x16c,_0x38ae29:0x126},_0x3ed0d3={_0x22455b:0x1e8},_0x551ffb={_0x2918fc:0x1d4};function _0x43180d(_0x33e3f8,_0x49c0f7,_0x177bba,_0x244a8c){return _0x4aa629(_0x33e3f8-0x106,_0x244a8c,_0x177bba-_0x551ffb._0x2918fc,_0x177bba-0x2e2);}const _0x564f02=_0x276894=>_0x276894[_0x43180d(0x175,0xbc,0x17c,0x1b4)](/[^a-zA-Z0-9_]+/g,'_')[_0x43180d(0x6f,0x102,0x17c,0x24f)](/^_+|_+$/g,'');function _0x39d3eb(_0x15d104,_0xf21074,_0x54e67a,_0x5b5a6a){return _0x2f0acf(_0x54e67a- -0x392,_0xf21074-_0x3ed0d3._0x22455b,_0x15d104,_0x5b5a6a-0x14f);}return _0x39d3eb(-_0x16e7cf._0x4aa879,-0x1e3,-_0x16e7cf._0x38ae29,0x4)+_0x564f02(_0xe7563f)+'_'+_0x564f02(_0x55910f);}function isObject(_0x24b9a5){const _0x161394={_0x15d71f:0xde,_0x50426a:0x424},_0x294bd5={_0x4c9966:0xa1},_0x658589={_0x24d415:0x129,_0x3ade5f:0x86};function _0xc1d619(_0x43a885,_0x55a20a,_0x2b1007,_0xc7ce1){return _0x2f0acf(_0xc7ce1- -0x419,_0x55a20a-_0x658589._0x24d415,_0x2b1007,_0xc7ce1-_0x658589._0x3ade5f);}function _0x13db20(_0x22ca22,_0x3d8d0f,_0x4257ee,_0x23b511){return _0x4aa629(_0x22ca22-_0x294bd5._0x4c9966,_0x4257ee,_0x4257ee-0x4e,_0x3d8d0f-0x4bc);}return typeof _0x24b9a5===_0xc1d619(-0x1d3,-0x51,-_0x161394._0x15d71f,-0x119)&&_0x24b9a5!==null&&!Array[_0x13db20(0x582,0x53d,0x4be,_0x161394._0x50426a)](_0x24b9a5);}function _0x561a(_0x45670b,_0x4e6a08){_0x45670b=_0x45670b-0xe1;const _0x400895=_0x4008();let _0x561a29=_0x400895[_0x45670b];if(_0x561a['xRBonB']===undefined){var _0x255732=function(_0x5e5b51){const _0x456b3e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x53c5d0='',_0x359d69='';for(let _0x29f37d=0x0,_0x4f421d,_0x1b4671,_0x3ea862=0x0;_0x1b4671=_0x5e5b51['charAt'](_0x3ea862++);~_0x1b4671&&(_0x4f421d=_0x29f37d%0x4?_0x4f421d*0x40+_0x1b4671:_0x1b4671,_0x29f37d++%0x4)?_0x53c5d0+=String['fromCharCode'](0xff&_0x4f421d>>(-0x2*_0x29f37d&0x6)):0x0){_0x1b4671=_0x456b3e['indexOf'](_0x1b4671);}for(let _0x26364b=0x0,_0x1744cf=_0x53c5d0['length'];_0x26364b<_0x1744cf;_0x26364b++){_0x359d69+='%'+('00'+_0x53c5d0['charCodeAt'](_0x26364b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x359d69);};_0x561a['NDcCRG']=_0x255732,_0x561a['qAruZR']={},_0x561a['xRBonB']=!![];}const _0x3a22ef=_0x400895[0x0],_0x42b542=_0x45670b+_0x3a22ef,_0x2cb633=_0x561a['qAruZR'][_0x42b542];return!_0x2cb633?(_0x561a29=_0x561a['NDcCRG'](_0x561a29),_0x561a['qAruZR'][_0x42b542]=_0x561a29):_0x561a29=_0x2cb633,_0x561a29;}function toSupportedSchema(_0x391f86){const _0x48fa44={_0x9845d:0x3d4,_0x5ca0a0:0x409,_0x48e6bb:0x318,_0x162596:0x29c,_0x203421:0x180,_0x3fcb76:0x5d5,_0x38151b:0x5cb,_0x610b53:0x49c,_0x118d2a:0x471,_0x51441a:0x57c,_0x4a8ea0:0x49c,_0x1d4366:0x320,_0x229d52:0x321,_0x1cde4b:0x3b3,_0x54f899:0x22a,_0xf37002:0x2ba,_0x2b8d6d:0x335,_0xed51ef:0x302,_0x61b718:0x2f7,_0xeb1264:0x330,_0x325583:0x4b3,_0xb9213d:0x40a,_0x481a9c:0x50f,_0x2c5c1c:0x3e5,_0x3eb301:0x3d6,_0x3f4896:0x412,_0x1e2411:0x49c,_0x5a0ebd:0x460,_0x46238e:0x34b},_0x4e72d3={_0xd2d7ef:0x4b},_0x42f968={_0x198f97:0xef};if(!isObject(_0x391f86))return void 0x0;if(_0x391f86['type']===_0x2526d6(_0x48fa44._0x9845d,_0x48fa44._0x5ca0a0,_0x48fa44._0x48e6bb,0x3d6))return{'type':_0x342b13(0x247,_0x48fa44._0x162596,0x1a1,_0x48fa44._0x203421)};if(_0x391f86[_0x2526d6(_0x48fa44._0x3fcb76,_0x48fa44._0x38151b,0x41f,_0x48fa44._0x610b53)]==='number'||_0x391f86[_0x2526d6(0x48f,_0x48fa44._0x118d2a,_0x48fa44._0x51441a,_0x48fa44._0x4a8ea0)]==='integer')return{'type':_0x342b13(_0x48fa44._0x1d4366,_0x48fa44._0x229d52,_0x48fa44._0x1cde4b,_0x48fa44._0x54f899)};if(_0x391f86[_0x342b13(_0x48fa44._0xf37002,0x362,0x399,_0x48fa44._0x2b8d6d)]===_0x2526d6(0x50e,0x37a,0x34f,0x431))return{'type':_0x342b13(_0x48fa44._0xed51ef,_0x48fa44._0x61b718,0x1e7,0x1fc)};if(_0x391f86[_0x342b13(0x33a,0x362,0x373,_0x48fa44._0xeb1264)]==='array')return{'type':_0x2526d6(_0x48fa44._0x325583,_0x48fa44._0xb9213d,_0x48fa44._0x481a9c,0x3e9),'items':toSupportedSchema(_0x391f86[_0x2526d6(0x2c5,0x212,_0x48fa44._0x2c5c1c,0x333)])??{'type':_0x2526d6(0x380,0x330,0x487,_0x48fa44._0x3eb301)}};function _0x342b13(_0x4625d0,_0x6ac175,_0x52fd9b,_0x191949){return _0x2f0acf(_0x6ac175- -_0x42f968._0x198f97,_0x6ac175-0x17f,_0x191949,_0x191949-0xaf);}function _0x2526d6(_0x3596ae,_0x12ac9d,_0x38fbb3,_0x22166e){return _0x2f0acf(_0x22166e-_0x4e72d3._0xd2d7ef,_0x12ac9d-0x8c,_0x38fbb3,_0x22166e-0x13c);}if(_0x391f86[_0x2526d6(_0x48fa44._0x3f4896,0x53c,0x458,_0x48fa44._0x1e2411)]===_0x2526d6(0x344,_0x48fa44._0x5a0ebd,0x25c,_0x48fa44._0x46238e))return toNuvinToolSchema(_0x391f86);return void 0x0;}function toNuvinToolSchema(_0x414ba5){const _0x1e6dbd={_0x4028c6:0x6e1,_0x1c0d4c:0x860,_0x42d700:0x5e7,_0x182b06:0x492,_0x17a7c1:0x69c,_0x2828e9:0x26b,_0x3a9005:0x21e,_0xda0ee8:0x43e,_0x431d5a:0x4e0,_0x50dd39:0x57b,_0xf6699:0x583,_0x24979c:0x663,_0x1ee374:0xbc,_0x249775:0x7,_0x4ff201:0x1dd,_0x522cd3:0x190,_0x3f1195:0x21b},_0x1a6432={_0x270d3f:0x2d1,_0x5a3379:0x1d},_0x5d9745={_0x459ac8:0x47a};if(!isObject(_0x414ba5)||_0x414ba5[_0x489fbd(_0x1e6dbd._0x4028c6,_0x1e6dbd._0x1c0d4c,0x722,_0x1e6dbd._0x42d700)]!==_0x489fbd(_0x1e6dbd._0x182b06,_0x1e6dbd._0x17a7c1,0x5d1,0x586))return{'type':'object','properties':{}};const _0x4b086e={},_0xcd513b=isObject(_0x414ba5[_0x1f178b(-_0x1e6dbd._0x2828e9,-0x13a,-_0x1e6dbd._0x3a9005,-0x399)])?_0x414ba5[_0x489fbd(0x3e5,_0x1e6dbd._0xda0ee8,_0x1e6dbd._0x431d5a,0x4e2)]:{};function _0x1f178b(_0x1f261e,_0x38bf1a,_0x2168d7,_0x436b18){return _0x2f0acf(_0x1f261e- -_0x5d9745._0x459ac8,_0x38bf1a-0x14f,_0x436b18,_0x436b18-0x94);}function _0x489fbd(_0x4caced,_0x56db8e,_0x276a3c,_0x4ed011){return _0x2f0acf(_0x276a3c-_0x1a6432._0x270d3f,_0x56db8e-0x1d4,_0x56db8e,_0x4ed011-_0x1a6432._0x5a3379);}for(const [_0x5cf994,_0x2cb4ab]of Object[_0x489fbd(_0x1e6dbd._0x50dd39,0x4db,_0x1e6dbd._0xf6699,_0x1e6dbd._0x24979c)](_0xcd513b)){const _0x41cde1=toSupportedSchema(_0x2cb4ab);if(_0x41cde1)_0x4b086e[_0x5cf994]=_0x41cde1;}const _0x5af235=Array[_0x1f178b(-_0x1e6dbd._0x1ee374,-0xd1,_0x1e6dbd._0x249775,-0x1e4)](_0x414ba5['required'])?_0x414ba5[_0x1f178b(-0xfe,-0x121,-0x11a,-0x22c)]['filter'](_0x4df182=>typeof _0x4df182===_0x489fbd(0x519,0x783,0x65c,0x53b)):void 0x0;return _0x5af235?.[_0x1f178b(-0x1b7,-_0x1e6dbd._0x4ff201,-0x177,-0x2b2)]?{'type':_0x1f178b(-0x17a,-_0x1e6dbd._0x522cd3,-0x104,-0xec),'properties':_0x4b086e,'required':_0x5af235}:{'type':_0x1f178b(-0x17a,-_0x1e6dbd._0x3f1195,-0xeb,-0x21e),'properties':_0x4b086e};}function isJsonObject(_0x466554){const _0x162197={_0x6936d8:0x4d8,_0x185aef:0x60c,_0x5b635b:0x5ff,_0x1a834a:0x55f},_0x205383={_0x38c83d:0x5f,_0x59e253:0xa4},_0x395d57={_0x4f6326:0xb9};function _0x5c95f1(_0x57b0f1,_0x966127,_0x533b81,_0x5b195b){return _0x4aa629(_0x57b0f1-0xc7,_0x5b195b,_0x533b81-_0x395d57._0x4f6326,_0x57b0f1-0x58b);}function _0x11fde5(_0x6b618d,_0x23177d,_0x8fd810,_0x4171d5){return _0x4aa629(_0x6b618d-_0x205383._0x38c83d,_0x8fd810,_0x8fd810-_0x205383._0x59e253,_0x4171d5-0x4d6);}return typeof _0x466554===_0x11fde5(0x454,0x594,_0x162197._0x6936d8,0x499)&&_0x466554!==null&&!Array[_0x5c95f1(_0x162197._0x185aef,0x5f3,_0x162197._0x5b635b,_0x162197._0x1a834a)](_0x466554);}function formatMcpContent(_0x50469e){const _0xf0c6b5={_0x34b6f2:0x313,_0x118038:0x15d,_0x521e3f:0x240,_0x4d9245:0x1a3,_0x21afd0:0x1b2,_0x149e53:0x188,_0x634540:0x3b0,_0x3dcf60:0x296,_0xdb09f4:0x24f,_0x75f5eb:0x445,_0x28b8fc:0x52a},_0xbdedfa={_0x49b688:0x1f1,_0x5c0f52:0x22d,_0x181f37:0x2e8,_0x100016:0x2a8,_0x597a15:0x1e2,_0x4b36e4:0x2a7,_0x1e42b0:0x1af,_0x1f1177:0x315,_0x3fbcdf:0x220,_0x58c14c:0x18c},_0x1d1d1a={_0x38167f:0xce},_0x3c1183={_0x4e42ec:0x7f},_0x5429c7={_0x57f733:0xf7,_0x266d9e:0x3};function _0x293459(_0x370cc3,_0x6d517,_0x18598b,_0x361468){return _0x4aa629(_0x370cc3-_0x5429c7._0x57f733,_0x18598b,_0x18598b-_0x5429c7._0x266d9e,_0x370cc3-0x4bf);}const _0x5dd673=Array[_0x1521e4(0x289,0x30a,0x21e,0x10b)](_0x50469e[_0x1521e4(_0xf0c6b5._0x34b6f2,_0xf0c6b5._0x118038,_0xf0c6b5._0x521e3f,_0xf0c6b5._0x4d9245)])?_0x50469e[_0x1521e4(_0xf0c6b5._0x21afd0,_0xf0c6b5._0x149e53,_0xf0c6b5._0x521e3f,0x2fc)]:[];function _0x1521e4(_0x119d94,_0x26b30f,_0x3f857a,_0x272d7c){return _0x4aa629(_0x119d94-_0x3c1183._0x4e42ec,_0x272d7c,_0x3f857a-0x8b,_0x3f857a-0x19d);}const _0x43fa9b=_0x5dd673[_0x293459(_0xf0c6b5._0x634540,0x345,_0xf0c6b5._0x3dcf60,0x42b)](_0x5348ad=>{const _0x5b0eef={_0x271530:0x18b};if(!isObject(_0x5348ad))return'';function _0x1906e9(_0xb630d2,_0x2793bb,_0x2336f2,_0x475c13){return _0x1521e4(_0xb630d2-_0x5b0eef._0x271530,_0x2793bb-0x1ee,_0x2336f2-0xbc,_0xb630d2);}function _0x8078c9(_0x468441,_0x21b2ec,_0x25ef95,_0x504771){return _0x293459(_0x25ef95-_0x1d1d1a._0x38167f,_0x21b2ec-0x7a,_0x468441,_0x504771-0xdb);}if(_0x5348ad['type']===_0x1906e9(0x255,0x228,_0xbdedfa._0x49b688,_0xbdedfa._0x5c0f52)&&typeof _0x5348ad[_0x1906e9(_0xbdedfa._0x181f37,0x32d,_0xbdedfa._0x49b688,0x240)]===_0x1906e9(_0xbdedfa._0x100016,_0xbdedfa._0x597a15,_0xbdedfa._0x4b36e4,_0xbdedfa._0x1e42b0))return _0x5348ad['text'];return JSON[_0x1906e9(_0xbdedfa._0x1f1177,0x1eb,_0xbdedfa._0x3fbcdf,_0xbdedfa._0x58c14c)](_0x5348ad);})['filter'](_0x556df3=>_0x556df3[_0x293459(0x445,0x3e5,0x55b,0x419)]>0x0)[_0x1521e4(0x220,_0xf0c6b5._0xdb09f4,0x129,0x1bb)]('\x0a');if(_0x43fa9b[_0x293459(_0xf0c6b5._0x75f5eb,_0xf0c6b5._0x28b8fc,0x4ad,0x39e)]>0x0)return _0x43fa9b;return JSON['stringify'](_0x50469e,null,0x2);}function createMcpTool(_0xc3d72a){const _0x5ae8e5={_0x437604:0x59c,_0x48649d:0x452,_0x57dce6:0x480,_0x4877fc:0x42c,_0xef8fdb:0x699,_0x304f9a:0x63d,_0x4ba1b7:0x5db,_0x449340:0x37e,_0xea9eaf:0x3ce,_0x268f9b:0x3bc,_0x256a9a:0x43a,_0x399c38:0x45e,_0x40eeca:0x47d,_0x23bfac:0x475,_0x31b8a9:0x369,_0x450544:0x475,_0x3f00e7:0x28c,_0x24c45f:0x594,_0x4ec520:0x5d0,_0x53ddf8:0x5d5,_0x41b127:0x564,_0x459979:0x572},_0x2553b3={_0x2880ef:0x1e8,_0xca751c:0x3c5,_0x53a6e0:0x287,_0x1505f7:0x2f9,_0x3f8aa5:0x38e,_0x13c554:0x3ea,_0x2b6b1a:0x340,_0x3a47f5:0x426,_0x4b77f3:0x4c7,_0x32deff:0x500,_0x54b012:0x551,_0x245a3f:0x5fa,_0xf29a22:0x476,_0x4d9f52:0x41b,_0x1c0e2d:0x3cb,_0x46df55:0x336},_0x3efda6={_0x29e497:0x106,_0x3a91a2:0x104},_0x1242b9=createMcpToolName(_0xc3d72a['serverName'],_0xc3d72a[_0x33a31d(0x5c4,0x572,0x504,_0x5ae8e5._0x437604)][_0x25434d(_0x5ae8e5._0x48649d,_0x5ae8e5._0x57dce6,_0x5ae8e5._0x4877fc,0x40f)]);function _0x33a31d(_0x11afa3,_0x505dcc,_0x41be11,_0x5ac138){return _0x4aa629(_0x11afa3-0x1e9,_0x5ac138,_0x41be11-0xb1,_0x505dcc-0x5b7);}function _0x25434d(_0x58d606,_0x70d685,_0x140f16,_0x5667af){return _0x2f0acf(_0x58d606-_0x3efda6._0x29e497,_0x70d685-_0x3efda6._0x3a91a2,_0x5667af,_0x5667af-0x11);}return defineTool({'name':_0x1242b9,'description':_0xc3d72a[_0x33a31d(_0x5ae8e5._0xef8fdb,0x572,_0x5ae8e5._0x304f9a,_0x5ae8e5._0x4ba1b7)][_0x25434d(0x319,_0x5ae8e5._0x449340,0x23b,_0x5ae8e5._0xea9eaf)]??_0x25434d(_0x5ae8e5._0x268f9b,_0x5ae8e5._0x256a9a,_0x5ae8e5._0x399c38,_0x5ae8e5._0x40eeca)+_0xc3d72a[_0x33a31d(0x666,0x572,0x5bd,_0x5ae8e5._0x23bfac)]['name']+_0x25434d(_0x5ae8e5._0x31b8a9,_0x5ae8e5._0x450544,0x412,_0x5ae8e5._0x3f00e7)+_0xc3d72a[_0x33a31d(_0x5ae8e5._0x24c45f,_0x5ae8e5._0x4ec520,0x509,_0x5ae8e5._0x53ddf8)],'inputSchema':toNuvinToolSchema(_0xc3d72a[_0x33a31d(_0x5ae8e5._0x41b127,_0x5ae8e5._0x459979,0x4d7,0x5a6)]['inputSchema']),async *'execute'(_0x522eac){const _0x4d31cc={_0x116a11:0xc9,_0x3995f6:0x84};function _0x30030e(_0x413ef4,_0x366bfc,_0x13a49c,_0x3e47e5){return _0x25434d(_0x13a49c- -0x11c,_0x366bfc-0x1a4,_0x13a49c-0xcd,_0x366bfc);}function _0x4e4754(_0xf6bbf1,_0x4ccee3,_0x5e7cd9,_0x4d42b6){return _0x25434d(_0xf6bbf1-_0x4d31cc._0x116a11,_0x4ccee3-_0x4d31cc._0x3995f6,_0x5e7cd9-0x16b,_0x4d42b6);}const _0x2d8492=await _0xc3d72a[_0x30030e(_0x2553b3._0x2880ef,_0x2553b3._0xca751c,_0x2553b3._0x53a6e0,0x240)]['callTool']({'name':_0xc3d72a['tool'][_0x30030e(_0x2553b3._0x1505f7,_0x2553b3._0x3f8aa5,0x336,_0x2553b3._0x13c554)],'arguments':isJsonObject(_0x522eac)?_0x522eac:{}});if(_0x2d8492['isError'])throw new ToolExecutionError(formatMcpContent(_0x2d8492),{'serverName':_0xc3d72a[_0x30030e(0x40e,0x218,_0x2553b3._0x2b6b1a,_0x2553b3._0x3a47f5)],'toolName':_0xc3d72a[_0x4e4754(_0x2553b3._0x4b77f3,_0x2553b3._0x32deff,_0x2553b3._0x54b012,_0x2553b3._0x245a3f)][_0x4e4754(0x51b,_0x2553b3._0xf29a22,_0x2553b3._0x4d9f52,0x624)]});return yield createToolOutput(formatMcpContent(_0x2d8492),{'serverName':_0xc3d72a['serverName'],'toolName':_0xc3d72a['tool'][_0x30030e(_0x2553b3._0x1c0e2d,0x413,_0x2553b3._0x46df55,0x447)],'result':_0x2d8492}),void 0x0;}});}function resolvePrefix(_0x2c3503,_0x42eab6){const _0x45a6c0={_0x145847:0x545,_0x440423:0x516,_0x7ae575:0x4a1},_0x192fb0={_0xdb5e72:0x2cd};function _0x83c17c(_0x3c7db9,_0x19db0e,_0x5bd89b,_0x1e24dd){return _0x2f0acf(_0x19db0e-_0x192fb0._0xdb5e72,_0x19db0e-0x166,_0x3c7db9,_0x1e24dd-0x10e);}return _0x42eab6[_0x83c17c(_0x45a6c0._0x145847,_0x45a6c0._0x440423,_0x45a6c0._0x7ae575,0x490)]??_0x2c3503;}function buildMcpHttpHeaders(_0x2dd2dd){const _0xf8d501={_0x3a8b68:0x685,_0x2fdf94:0x5f9,_0x17680a:0x4c8,_0x5a64f1:0x4db,_0x18d0ee:0x22c,_0x1ed4ed:0x17e,_0x6fcb2:0x31a,_0x5cf5ef:0x799,_0x3fbc72:0x71f,_0x32ef9d:0x6e3,_0x533b73:0x1d3,_0xd87313:0x118,_0x2b143b:0x285,_0x27303e:0x21f,_0x1f3bd5:0x171,_0x578f01:0x47f,_0x2a816a:0x535},_0x355b43={_0x355ec9:0x6c},_0x20419e={_0x280767:0x118};function _0x48a0f0(_0x40ab70,_0x40afd3,_0x1d5753,_0x2208c2){return _0x4aa629(_0x40ab70-0x147,_0x40ab70,_0x1d5753-0x111,_0x40afd3-_0x20419e._0x280767);}function _0x452554(_0x4a9646,_0x56817e,_0x33ea3d,_0x31eb71){return _0x2f0acf(_0x31eb71-0x289,_0x56817e-_0x355b43._0x355ec9,_0x33ea3d,_0x31eb71-0x1eb);}const _0x28c8a5={..._0x2dd2dd[_0x452554(0x6ac,0x56e,0x70d,_0xf8d501._0x3a8b68)]??{}};return _0x2dd2dd[_0x452554(_0xf8d501._0x2fdf94,_0xf8d501._0x17680a,0x420,_0xf8d501._0x5a64f1)]?.[_0x48a0f0(0x1b7,_0xf8d501._0x18d0ee,_0xf8d501._0x1ed4ed,_0xf8d501._0x6fcb2)]===_0x452554(0x828,_0xf8d501._0x5cf5ef,_0xf8d501._0x3fbc72,_0xf8d501._0x32ef9d)&&_0x2dd2dd['auth'][_0x48a0f0(_0xf8d501._0x533b73,_0xf8d501._0xd87313,0xab,0x154)]&&_0x28c8a5['Authorization']===void 0x0&&(_0x28c8a5['Authorization']=_0x452554(0x46f,0x5ec,0x39d,0x4cc)+_0x2dd2dd['auth']['token']),Object[_0x48a0f0(_0xf8d501._0x2b143b,_0xf8d501._0x27303e,0x22d,_0xf8d501._0x1f3bd5)](_0x28c8a5)[_0x452554(0x467,_0xf8d501._0x578f01,_0xf8d501._0x2a816a,0x54c)]>0x0?_0x28c8a5:void 0x0;}function getErrorMessage(_0x2de815){return _0x2de815 instanceof Error?_0x2de815['message']:String(_0x2de815);}function isUnauthorizedError(_0x461700){const _0x31ab1d={_0x2928da:0x335,_0x1ca4fb:0x19a,_0xe3459e:0x23a,_0x3b098d:0x373},_0x1f124c={_0x48b2e4:0x150,_0x1ec70f:0x3a},_0x1967ff={_0x46f295:0xcf,_0x44f9c9:0xb9};function _0x1655d2(_0x259b13,_0x479efb,_0x58baf5,_0x4a1819){return _0x4aa629(_0x259b13-_0x1967ff._0x46f295,_0x479efb,_0x58baf5-_0x1967ff._0x44f9c9,_0x259b13-0x4ae);}function _0x449a8c(_0xca5467,_0x2822f8,_0x5aac7c,_0x42a275){return _0x2f0acf(_0xca5467- -_0x1f124c._0x48b2e4,_0x2822f8-0x14f,_0x2822f8,_0x42a275-_0x1f124c._0x1ec70f);}return _0x461700 instanceof Error&&_0x461700['constructor'][_0x449a8c(0x1fc,_0x31ab1d._0x2928da,0x2f1,_0x31ab1d._0x1ca4fb)]===_0x449a8c(_0x31ab1d._0xe3459e,_0x31ab1d._0x3b098d,0x2df,0x141);}async function connectMcpServer(_0x5c0dc2,_0x3d0dde,_0x199d62){const _0x5ad1b9={_0x2e2c69:0x62,_0x55ed7f:0x71,_0x1a1162:0x38,_0x28b73c:0x3cd,_0x164a9b:0x541,_0x422ccf:0x22d,_0xad38de:0x1ab,_0x39b53f:0x378,_0x4cbe44:0x584,_0x372ad8:0x2b3,_0x25c59f:0x35d,_0x367369:0x400,_0x231801:0x2b3,_0x2addb4:0x3da,_0x11eb23:0x4d0,_0x138641:0x280,_0x430772:0x1b0,_0x2e5689:0x1e9,_0x5c4494:0x16a,_0x4c9fa9:0x23e,_0x402a9d:0x2a3,_0x46a999:0x4da,_0x5e4548:0x61c,_0x2cd819:0x516,_0x4605f9:0x518,_0x52393a:0x42d,_0x38ecd3:0xfd,_0x1f459e:0x9e,_0x43cead:0xfd,_0x5a99aa:0x5e,_0x15ad69:0xca,_0x1f56a6:0x526,_0x2eb743:0xe5,_0x5376b3:0x81,_0x3dbfb3:0x76,_0x5f49d1:0x216,_0xdfb61f:0x175,_0x4e769e:0x267,_0x1a2378:0x2b8,_0x59cb68:0x1a5,_0x15885c:0x254,_0x39ce03:0x196,_0x3a83f7:0xc6,_0x2d2a62:0x637,_0x112e78:0x62c,_0x590a53:0x503,_0x281245:0x1ff,_0x396e21:0x361,_0x455c64:0x56b,_0x10dba4:0x5fe},_0xe699fe={_0x51f330:0x3e3,_0xf75078:0x47f,_0xb9ccd:0x3b5,_0x18078d:0xb8,_0x50f8f8:0x6},_0x46121d={_0x5d90ce:0x502,_0x5d19f5:0xf8},_0x2f79b9={_0x534f59:0x5de,_0x3c92a3:0x722},_0x5e594a={_0x35443a:0x81,_0x59e057:0x1d9},_0x3b3493={_0x390d37:0x1c5,_0x42bb5a:0x16c},_0x2adbae={_0x10e493:0x18a};function _0xb9250e(_0x77904f,_0xb889b6,_0x1b1327,_0x587d2b){return _0x4aa629(_0x77904f-_0x2adbae._0x10e493,_0xb889b6,_0x1b1327-0x134,_0x1b1327-0x4ca);}const _0xa4f944=new Client({'name':_0xcdfc0b(_0x5ad1b9._0x2e2c69,-_0x5ad1b9._0x55ed7f,_0x5ad1b9._0x1a1162,0xe4),'version':_0xb9250e(0x449,_0x5ad1b9._0x28b73c,0x4ab,_0x5ad1b9._0x164a9b)});if(_0x3d0dde[_0xcdfc0b(_0x5ad1b9._0x422ccf,0x1a2,0x24e,_0x5ad1b9._0xad38de)]===_0xb9250e(0x267,0x401,_0x5ad1b9._0x39b53f,0x413)||_0x3d0dde[_0xb9250e(0x39a,_0x5ad1b9._0x4cbe44,0x43d,0x4a2)]){if(!_0x3d0dde['url'])throw new Error(_0xb9250e(_0x5ad1b9._0x372ad8,0x250,_0x5ad1b9._0x25c59f,_0x5ad1b9._0x367369)+_0x5c0dc2+_0xb9250e(0x490,_0x5ad1b9._0x231801,_0x5ad1b9._0x2addb4,_0x5ad1b9._0x11eb23));if(_0x3d0dde['auth']?.[_0xcdfc0b(0x1fb,0x298,_0x5ad1b9._0x138641,0x36b)]===_0xcdfc0b(0x236,0x16c,0xfd,0x5f)&&!_0x199d62?.[_0xcdfc0b(_0x5ad1b9._0x430772,_0x5ad1b9._0x2e5689,0xfd,_0x5ad1b9._0x5c4494)])throw new Error(_0xb9250e(_0x5ad1b9._0x4c9fa9,_0x5ad1b9._0x402a9d,0x35d,0x3b2)+_0x5c0dc2+_0xcdfc0b(0x163,0x11d,0x49,-0x2));const _0x4f9a95=buildMcpHttpHeaders(_0x3d0dde),_0x3c3fd2=_0x3d0dde[_0xb9250e(0x383,_0x5ad1b9._0x46a999,0x3df,0x344)]?.[_0xb9250e(_0x5ad1b9._0x5e4548,_0x5ad1b9._0x2cd819,0x5de,0x666)]===_0xb9250e(0x48d,_0x5ad1b9._0x4605f9,0x45b,_0x5ad1b9._0x52393a)&&_0x199d62?.[_0xcdfc0b(0xe4,0x228,_0x5ad1b9._0x38ecd3,_0x5ad1b9._0x1f459e)]?createMcpOAuthProvider({'serverName':_0x5c0dc2,'callbackUrl':_0x199d62[_0xcdfc0b(0xc0,0x111,_0x5ad1b9._0x43cead,0x33)]['callbackUrl'],'storageDir':_0x199d62[_0xcdfc0b(_0x5ad1b9._0x5a99aa,0x189,0xfd,_0x5ad1b9._0x15ad69)][_0xb9250e(0x530,_0x5ad1b9._0x1f56a6,0x4c0,0x5d4)],'config':_0x3d0dde[_0xcdfc0b(0xd2,_0x5ad1b9._0x2eb743,_0x5ad1b9._0x5376b3,-_0x5ad1b9._0x3dbfb3)],'onRedirect':_0x49449e=>_0x199d62[_0xb9250e(0x38a,0x326,0x45b,0x378)]?.[_0xcdfc0b(0x18a,0x18d,0x21a,0xf3)](_0x5c0dc2,_0x49449e)}):void 0x0,_0x28a0f5=new StreamableHTTPClientTransport(new URL(_0x3d0dde['url']),{'authProvider':_0x3c3fd2,'requestInit':_0x4f9a95?{'headers':_0x4f9a95}:void 0x0});await _0xa4f944[_0xcdfc0b(0x11d,_0x5ad1b9._0x5f49d1,_0x5ad1b9._0xdfb61f,_0x5ad1b9._0x4e769e)](_0x28a0f5);}else{if(!_0x3d0dde[_0xcdfc0b(_0x5ad1b9._0x1a2378,0x226,_0x5ad1b9._0x59cb68,_0x5ad1b9._0x15885c)])throw new Error('MCP\x20server\x20'+_0x5c0dc2+_0xcdfc0b(0x12f,0x1a8,_0x5ad1b9._0x39ce03,_0x5ad1b9._0x3a83f7));const _0x5ebfd3=new StdioClientTransport({'command':_0x3d0dde[_0xb9250e(_0x5ad1b9._0x2d2a62,_0x5ad1b9._0x112e78,_0x5ad1b9._0x590a53,0x5b6)],'args':_0x3d0dde[_0xcdfc0b(_0x5ad1b9._0x281245,_0x5ad1b9._0x396e21,0x225,0x15b)]??[],'env':_0x3d0dde['env']});await _0xa4f944[_0xb9250e(0x587,_0x5ad1b9._0x455c64,0x4d3,_0x5ad1b9._0x10dba4)](_0x5ebfd3);}function _0xcdfc0b(_0x1cd52e,_0x9c807d,_0x15bc42,_0x2c4037){return _0x4aa629(_0x1cd52e-0x1ec,_0x1cd52e,_0x15bc42-_0x3b3493._0x390d37,_0x15bc42-_0x3b3493._0x42bb5a);}return{async 'listTools'(){function _0x360d0f(_0x2231d4,_0x41cd7a,_0x5b39b7,_0x1acc11){return _0xb9250e(_0x2231d4-_0x5e594a._0x35443a,_0x41cd7a,_0x1acc11-0x166,_0x1acc11-_0x5e594a._0x59e057);}return await _0xa4f944[_0x360d0f(0x59c,_0x2f79b9._0x534f59,_0x2f79b9._0x3c92a3,0x6a3)]();},async 'callTool'(_0x582453){const _0x41be47={_0x1e307f:0x6a,_0x1558db:0x19e};function _0xf74116(_0x6420ff,_0x42d663,_0x27eb7e,_0x707510){return _0xb9250e(_0x6420ff-_0x41be47._0x1e307f,_0x707510,_0x27eb7e- -0x142,_0x707510-_0x41be47._0x1558db);}function _0x27f541(_0x1b4f2f,_0x13b72f,_0x25bead,_0x82c7da){return _0xb9250e(_0x1b4f2f-0x13d,_0x1b4f2f,_0x13b72f- -_0x46121d._0x5d90ce,_0x82c7da-_0x46121d._0x5d19f5);}return await _0xa4f944[_0xf74116(_0xe699fe._0x51f330,0x581,_0xe699fe._0xf75078,_0xe699fe._0xb9ccd)]({'method':_0x27f541(-0x41,-_0xe699fe._0x18078d,-0x4e,_0xe699fe._0x50f8f8),'params':_0x582453},CallToolResultSchema);},async 'close'(){const _0x232fad={_0x92c452:0x1e3,_0x149a63:0x257,_0x4d1d1d:0xaa};function _0x47fa44(_0x2c7f4b,_0x4568b0,_0x1a9042,_0x46d87a){return _0xcdfc0b(_0x46d87a,_0x4568b0-_0x232fad._0x92c452,_0x4568b0-_0x232fad._0x149a63,_0x46d87a-_0x232fad._0x4d1d1d);}await _0xa4f944[_0x47fa44(0x39a,0x383,0x2e1,0x3f8)]();}};}async function createMcpToolsFromServers(_0x47b7bb){const _0x3caf0c={_0x236e2d:0x135,_0x27fc7b:0x31,_0x4fed95:0x9,_0x4bfe01:0x11,_0x5ab0be:0x1a,_0x386398:0x54,_0x51ec51:0x91,_0x5b588c:0x2d9,_0x2d5f61:0x203,_0x320ecd:0x1a5,_0x448978:0xc1,_0x58c040:0xfe,_0x223a4d:0x186,_0x363fd2:0x1f,_0x574723:0x7f,_0x5e65de:0xe9,_0x5902dd:0x8a,_0x4c65f7:0x20,_0x137aea:0xb,_0x2b0144:0x21,_0xb676df:0x18,_0x4cb088:0x1f8,_0x43b8e:0x1b},_0x52c81b={_0xe4d72b:0x50e,_0x2e3b49:0x474,_0x391ec6:0x3cf},_0x15ca97={_0x3aef25:0x50d},_0x3b4eb6={_0x15436d:0x88,_0x3af66d:0xd2,_0x2e9847:0xaa},_0x26b185={_0x562312:0x121},_0x1b0fd2=_0x47b7bb[_0x3db7c2(-0x26,-0x35,-0xf8,0xc)]??connectMcpServer;function _0x3db7c2(_0x54e78b,_0x374b79,_0x450317,_0x1ee76e){return _0x4aa629(_0x54e78b-0x175,_0x1ee76e,_0x450317-_0x26b185._0x562312,_0x54e78b- -0x2f);}const _0x2798d9=[],_0x18812f={},_0x2223cd=[];function _0x31ae10(_0x117a3c,_0x16fbfd,_0x4cd375,_0x33d5d2){return _0x4aa629(_0x117a3c-_0x3b4eb6._0x15436d,_0x117a3c,_0x4cd375-_0x3b4eb6._0x3af66d,_0x16fbfd- -_0x3b4eb6._0x2e9847);}for(const [_0x5a68ac,_0x46795b]of Object[_0x31ae10(-0x255,-_0x3caf0c._0x236e2d,-_0x3caf0c._0x27fc7b,-0x1b9)](_0x47b7bb['servers']??{})){if(_0x46795b[_0x31ae10(-0x4,_0x3caf0c._0x4fed95,-_0x3caf0c._0x4bfe01,_0x3caf0c._0x5ab0be)]===![]){_0x18812f[_0x5a68ac]={'status':_0x3db7c2(-_0x3caf0c._0x386398,-_0x3caf0c._0x27fc7b,_0x3caf0c._0x51ec51,-0x35)};continue;}try{const _0x1e5e14=await _0x1b0fd2(_0x5a68ac,_0x46795b,_0x47b7bb[_0x31ae10(-_0x3caf0c._0x5b588c,-_0x3caf0c._0x2d5f61,-_0x3caf0c._0x320ecd,-_0x3caf0c._0x448978)]);_0x2798d9[_0x3db7c2(-_0x3caf0c._0x58c040,-0x15,-_0x3caf0c._0x223a4d,-0x13f)](_0x1e5e14);const _0xeb6376=await _0x1e5e14[_0x31ae10(_0x3caf0c._0x363fd2,-0x37,0x58,_0x3caf0c._0x574723)]();let _0x6fbc6=0x0;for(const _0x4e6eaa of _0xeb6376[_0x3db7c2(-_0x3caf0c._0x5e65de,-_0x3caf0c._0x5902dd,-0x11d,-0x10e)]){const _0x595add=_0x47b7bb['allowedTools']?.[_0x5a68ac]?.[_0x4e6eaa[_0x3db7c2(-_0x3caf0c._0x4c65f7,-0xd2,-0x1e,0x5)]];if(_0x595add===![])continue;_0x6fbc6+=0x1,_0x2223cd['push'](createMcpTool({'serverName':resolvePrefix(_0x5a68ac,_0x46795b),'tool':_0x4e6eaa,'client':_0x1e5e14}));}_0x18812f[_0x5a68ac]={'status':_0x3db7c2(_0x3caf0c._0x137aea,-0x96,_0x3caf0c._0x2b0144,0x12d),'toolCount':_0x6fbc6};}catch(_0xc0e71){_0x18812f[_0x5a68ac]=isUnauthorizedError(_0xc0e71)?{'status':_0x3db7c2(-0xb,-_0x3caf0c._0xb676df,-0xae,-_0x3caf0c._0x5902dd),'message':getErrorMessage(_0xc0e71)}:{'status':_0x3db7c2(-0x103,-0x184,-_0x3caf0c._0x4cb088,_0x3caf0c._0x43b8e),'message':getErrorMessage(_0xc0e71)};}}return{'tools':_0x2223cd,'servers':_0x18812f,async 'close'(){function _0x1a62dc(_0x28ac9d,_0x23c7bb,_0x3b5dbf,_0x3de617){return _0x3db7c2(_0x3de617-_0x15ca97._0x3aef25,_0x23c7bb-0xb2,_0x3b5dbf-0x10a,_0x3b5dbf);}await Promise['all'](_0x2798d9[_0x1a62dc(0x48d,_0x52c81b._0xe4d72b,_0x52c81b._0x2e3b49,_0x52c81b._0x391ec6)](_0x4869bc=>_0x4869bc['close']()));}};}function getCommand(_0xf58eca){const _0x76f1c7={_0x4cef7a:0x21d,_0x2906a7:0x147,_0x3d109d:0x27a,_0x193353:0x268},_0x2d7457={_0x212cb4:0xc4},_0x472fb8={_0x517b1f:0x90,_0x368e9e:0x19f};function _0x4e874d(_0x4b3eff,_0x5ab5ac,_0x332e15,_0x25367d){return _0x2f0acf(_0x4b3eff- -0x4bd,_0x5ab5ac-_0x472fb8._0x517b1f,_0x5ab5ac,_0x25367d-_0x472fb8._0x368e9e);}function _0x46c613(_0x3276b3,_0x5d286d,_0x586981,_0x19ee45){return _0x4aa629(_0x3276b3-_0x2d7457._0x212cb4,_0x586981,_0x586981-0x6c,_0x5d286d- -0xe3);}if(_0xf58eca&&typeof _0xf58eca==='object'&&!Array[_0x4e874d(-0xff,-0x11f,-0x110,-_0x76f1c7._0x4cef7a)](_0xf58eca)&&typeof _0xf58eca[_0x4e874d(-_0x76f1c7._0x2906a7,-0x34,-0x28a,-_0x76f1c7._0x3d109d)]===_0x4e874d(-0x132,-0x8c,-0x227,-_0x76f1c7._0x193353))return _0xf58eca['command'];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=['docs/plans/2026-04-16-agent-loop-core-design.md',_0x2f0acf(0x329,0x31a,0x394,0x348),_0x2f0acf(0x1f2,0x1b0,0x1fc,0x2e0),_0x4aa629(0x4e,-0x195,-0x1e3,-0xcc),_0x2f0acf(0x33c,0x2b3,0x24a,0x27c),_0x2f0acf(0x28b,0x3ce,0x3aa,0x1f8),_0x4aa629(-0x6f,0xde,-0x28,-0x9),_0x2f0acf(0x44c,0x454,0x4da,0x590),'src/models/mock-model.ts',_0x2f0acf(0x26d,0x211,0x145,0x235),_0x4aa629(-0xae,-0x86,-0x2c,-0x12d),'src/agent/turn-engine.ts',_0x2f0acf(0x3ab,0x43c,0x43c,0x2bc),_0x2f0acf(0x31a,0x22a,0x3b3,0x373),_0x2f0acf(0x255,0x11f,0x38c,0x13d),_0x4aa629(-0x2,-0x53,0x39,0x27),_0x4aa629(-0x165,0x77,-0x1c7,-0x92)][_0x2f0acf(0x2c9,0x2a7,0x367,0x2db)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x2f0acf(0x219,0x31a,0x2f6,0x2fb),'description':_0x4aa629(-0x12e,-0x122,-0xbc,-0x113),'input_schema':{'type':_0x2f0acf(0x300,0x2cb,0x23f,0x2ca),'properties':{'command':{'type':'string'}},'required':[_0x2f0acf(0x376,0x30f,0x2b6,0x3e7)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x347acc){return{'output':_0x347acc,'structured':{'value':_0x347acc}};}function createUnknownToolResult(_0x661a18){const _0x1376de={_0x264a04:0x1d4,_0x5bff70:0x185,_0x4e2d42:0x2b4,_0x7704a2:0x2d5,_0x35ca91:0x3a5,_0x295819:0x120,_0xb6416e:0x242,_0x4bd278:0x197},_0x10a823={_0x289f2d:0x158,_0x5efeae:0x10c};function _0x3f6a79(_0x3acb41,_0x4c6631,_0xa557a0,_0xb09e1){return _0x2f0acf(_0x3acb41- -0x22c,_0x4c6631-0x71,_0x4c6631,_0xb09e1-0xe9);}function _0x20678b(_0x139428,_0x2fd748,_0x5461c4,_0x158421){return _0x2f0acf(_0x2fd748- -_0x10a823._0x289f2d,_0x2fd748-_0x10a823._0x5efeae,_0x5461c4,_0x158421-0x2e);}return{'callId':_0x661a18['id'],'toolName':_0x661a18[_0x20678b(0x21e,0x1f4,_0x1376de._0x264a04,0x120)],'status':_0x3f6a79(0x3d,0x6b,-0xa,0x168),'output':_0x20678b(_0x1376de._0x5bff70,_0x1376de._0x4e2d42,_0x1376de._0x7704a2,_0x1376de._0x35ca91)+_0x661a18[_0x3f6a79(_0x1376de._0x295819,0x219,_0x1376de._0xb6416e,_0x1376de._0x4bd278)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0xdc3b1a,_0x3193bd){const _0xca7e72={_0x4d8e4e:0x3d,_0x1e1a08:0x2a0,_0x1f08fe:0x1b7},_0x5b6b26={_0x52d875:0x46},_0x42185d={_0xf5aed9:0x29c,_0x3ee09a:0x182,_0x56096:0x167};function _0x1ac088(_0x12c1b5,_0xe6f145,_0x106ad8,_0x1bc594){return _0x2f0acf(_0xe6f145- -_0x42185d._0xf5aed9,_0xe6f145-_0x42185d._0x3ee09a,_0x106ad8,_0x1bc594-_0x42185d._0x56096);}function _0x53e4fe(_0x438576,_0x503acd,_0x35742e,_0x398352){return _0x2f0acf(_0x398352-0x174,_0x503acd-0x145,_0x503acd,_0x398352-_0x5b6b26._0x52d875);}return{'callId':_0xdc3b1a['id'],'toolName':_0xdc3b1a[_0x1ac088(0x14d,0xb0,_0xca7e72._0x4d8e4e,0x81)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0xdc3b1a[_0x1ac088(_0xca7e72._0x1e1a08,_0xca7e72._0x1f08fe,0x76,0x228)]),'exitCode':0x0},'chunks':[_0x3193bd],'meta':createMeta()};}function createMockToolRuntime(){const _0x4c10cd={_0x5ac5f0:0x11b},_0x4560cf={_0x2b6d99:0x31c},_0x3ef494={_0x43f63d:0x21f,_0x11d45a:0x2a0},_0x3868c5={_0x53ff2a:0x66},_0x4e7ad0=async(_0x4338c2,_0x3d8537)=>{function _0x459acb(_0x3a1f1a,_0x4c5b4c,_0x1ef721,_0x50dc71){return _0x561a(_0x1ef721-_0x3868c5._0x53ff2a,_0x50dc71);}if(_0x4338c2['name']!==_0x459acb(_0x3ef494._0x43f63d,_0x3ef494._0x11d45a,0x194,0x15d))return createUnknownToolResult(_0x4338c2);const _0x295d87=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x4338c2,_0x295d87);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x4868e3,_0x13ff01){function _0x373eb9(_0x191931,_0x59f2ff,_0xd5809d,_0x2ea3b1){return _0x561a(_0xd5809d- -_0x4560cf._0x2b6d99,_0x191931);}return await Promise[_0x373eb9(-_0x4c10cd._0x5ac5f0,-0x250,-0x1cb,-0x17d)](_0x4868e3['map'](async _0x4fc22f=>{return await _0x4e7ad0(_0x4fc22f,_0x13ff01);}));},async 'execute'(_0x1cf507,_0x2e2366){return await _0x4e7ad0(_0x1cf507,_0x2e2366);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0xab5a0a,_0x3911a9){const _0xea5abf={_0x4544f7:0x45,_0x5a3f19:0x1b,_0xd05f99:0x49},_0x1d9b7c={_0x39d946:0x2d6};function _0x29532f(_0x3c6d98,_0x235a8e,_0x16ce74,_0x1c7f7e){return _0x2f0acf(_0x1c7f7e- -_0x1d9b7c._0x39d946,_0x235a8e-0x65,_0x3c6d98,_0x1c7f7e-0xa0);}return typeof _0xab5a0a===_0x29532f(_0xea5abf._0x4544f7,_0xea5abf._0x5a3f19,_0xea5abf._0xd05f99,0x17)?await _0xab5a0a(_0x3911a9):_0xab5a0a;}function getDelegatedAgentDefinition(_0x3fd96e,_0xe495c5){const _0x213630={_0x401ecc:0x174},_0x5899a4={_0x3fc5d9:0xe5};function _0x46fe0c(_0x192b07,_0x14c623,_0x2d0ae4,_0x192893){return _0x4aa629(_0x192b07-0x1b3,_0x2d0ae4,_0x2d0ae4-0x18a,_0x14c623- -_0x5899a4._0x3fc5d9);}return _0x3fd96e[_0x46fe0c(-_0x213630._0x401ecc,-0x21f,-0x17d,-0x251)]?.[_0xe495c5];}function createRunSummary(_0x5b32d1){const _0x3cfc78={_0x282a0d:0x1b6,_0x2b27fd:0x26f,_0x644bd3:0x2e4,_0x791b27:0x1c7,_0x413acb:0x2ae,_0x255242:0x3bf,_0x1aec63:0x1c0,_0xe5249a:0x152,_0xfa8343:0x1d3,_0x53012b:0x1eb,_0x49fd19:0xea,_0x49e8e1:0x2af,_0x35fce5:0x1bc,_0x539385:0x390,_0x34e5f3:0x363,_0x3878c4:0x410,_0xc1a386:0x225,_0x50bce7:0x17b,_0x1485df:0x1a2,_0x19eda1:0x126,_0x5bc5e1:0x1dd,_0x4c5765:0x3b4,_0x47b6bc:0x368,_0x9881f2:0x324,_0x411af1:0x2b1},_0x425c7e={_0xd8301f:0x15c,_0x26299c:0x52},_0x1cf5a8={_0x5f26b9:0xa0,_0x39897d:0xb1,_0x435cf7:0x176};function _0x36bdaf(_0x4d5c59,_0x451db2,_0x3bd0de,_0x35c047){return _0x2f0acf(_0x35c047- -_0x1cf5a8._0x5f26b9,_0x451db2-_0x1cf5a8._0x39897d,_0x3bd0de,_0x35c047-_0x1cf5a8._0x435cf7);}function _0x33c51f(_0x303b10,_0x210ca3,_0x16bcf0,_0x26573a){return _0x4aa629(_0x303b10-_0x425c7e._0xd8301f,_0x303b10,_0x16bcf0-_0x425c7e._0x26299c,_0x16bcf0-0x296);}return{'runId':_0x5b32d1['runId'],'agentId':_0x5b32d1[_0x36bdaf(_0x3cfc78._0x282a0d,_0x3cfc78._0x2b27fd,_0x3cfc78._0x644bd3,0x224)],'sessionId':_0x5b32d1[_0x33c51f(_0x3cfc78._0x791b27,0x252,_0x3cfc78._0x413acb,0x398)],'status':_0x5b32d1[_0x33c51f(0x2f2,0x1e6,0x2b2,_0x3cfc78._0x255242)],'parentSessionId':_0x5b32d1[_0x36bdaf(0xe7,_0x3cfc78._0x1aec63,_0x3cfc78._0xe5249a,_0x3cfc78._0xfa8343)],..._0x5b32d1[_0x33c51f(0x2c6,0xfa,_0x3cfc78._0x53012b,0x227)]!==void 0x0?{'originToolCallId':_0x5b32d1[_0x33c51f(_0x3cfc78._0x49fd19,_0x3cfc78._0x49e8e1,0x1eb,_0x3cfc78._0x35fce5)]}:{},..._0x5b32d1[_0x33c51f(0x3bc,0x461,_0x3cfc78._0x539385,0x3d7)]!==void 0x0?{'errorMessage':_0x5b32d1[_0x36bdaf(0x302,0x43e,_0x3cfc78._0x34e5f3,0x397)]}:{},..._0x5b32d1[_0x33c51f(0x2ee,_0x3cfc78._0x3878c4,0x31d,_0x3cfc78._0xc1a386)]?.[_0x36bdaf(_0x3cfc78._0x50bce7,_0x3cfc78._0x1485df,_0x3cfc78._0x19eda1,_0x3cfc78._0x5bc5e1)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x5b32d1[_0x36bdaf(_0x3cfc78._0x4c5765,_0x3cfc78._0x47b6bc,0x466,_0x3cfc78._0x9881f2)][_0x36bdaf(0x2ad,_0x3cfc78._0x411af1,0x2aa,_0x3cfc78._0x5bc5e1)])}:{}};}function createRunSummaryOutput(_0xeeb7d1,_0x5f40aa){const _0x56708f={_0x1046cf:0x26a,_0x3194e5:0x34a},_0x45d8d7={_0x16c958:0x147};function _0xebfd6c(_0xc97ee9,_0x163a92,_0x1fe1f7,_0x32787a){return _0x2f0acf(_0x1fe1f7- -0x1b,_0x163a92-_0x45d8d7._0x16c958,_0x32787a,_0x32787a-0xaa);}const _0x4a8cd8=createRunSummary(_0xeeb7d1),_0xddd1aa=_0x4a8cd8['finalMessageText'];return createToolOutput(typeof _0xddd1aa==='string'&&_0xddd1aa[_0xebfd6c(_0x56708f._0x1046cf,0x3d7,0x2a8,_0x56708f._0x3194e5)]>0x0?_0xddd1aa:_0x5f40aa,_0x4a8cd8);}function getRunTerminalErrorMessage(_0x427144){const _0x3d4625={_0x246a7a:0x429,_0x28e9e3:0x506,_0x4f2462:0x167,_0x267d2f:0x40,_0x40571a:0x1cf,_0x543b26:0x368,_0x5807c1:0x34e,_0x520c4b:0x226,_0x3efac0:0x3de,_0x1a9a17:0xec},_0x3d754b={_0xe84fd1:0xff,_0x494745:0x192},_0x1f3e6f=_0x427144?.[_0x56380e(0x47c,_0x3d4625._0x246a7a,_0x3d4625._0x28e9e3,0x4ef)][_0x240ff8(0x139,_0x3d4625._0x4f2462,_0x3d4625._0x267d2f,-0x9b)]['at'](-0x1);if(_0x1f3e6f?.[_0x240ff8(0x8a,0x9d,0x1c3,_0x3d4625._0x40571a)]===_0x240ff8(0x10b,_0x3d4625._0x267d2f,0xd3,0x185)&&_0x1f3e6f[_0x56380e(_0x3d4625._0x543b26,_0x3d4625._0x5807c1,0x2be,0x484)][_0x56380e(0x2d5,_0x3d4625._0x520c4b,_0x3d4625._0x3efac0,0x322)]()['length']>0x0)return _0x1f3e6f[_0x240ff8(0x11a,0x12f,_0x3d4625._0x1a9a17,0x162)];function _0x56380e(_0x197d78,_0x54a2bd,_0xe33742,_0x55d633){return _0x4aa629(_0x197d78-0x124,_0x54a2bd,_0xe33742-0x99,_0x197d78-0x423);}function _0x240ff8(_0x1cf06c,_0x506568,_0x2a4b13,_0x1180f4){return _0x2f0acf(_0x2a4b13- -0x196,_0x506568-_0x3d754b._0xe84fd1,_0x1180f4,_0x1180f4-_0x3d754b._0x494745);}return void 0x0;}function formatAbortedRunMessage(_0x26a5d6,_0x5980ed){const _0x4296ea={_0x5bcafd:0x4b1,_0x37cead:0x197,_0x1ce1ac:0x1fb,_0x5f2af4:0x2de,_0x535876:0x3df,_0x195520:0x117},_0x334d99={_0x55fc2e:0x6b,_0x68a399:0x17e,_0x2be984:0xd3},_0x13e987={_0x73a4bd:0xc,_0x5b9faa:0x9d};function _0x839577(_0x536f5f,_0x16d073,_0x394b69,_0x22a9eb){return _0x2f0acf(_0x22a9eb- -_0x13e987._0x73a4bd,_0x16d073-_0x13e987._0x5b9faa,_0x536f5f,_0x22a9eb-0x77);}const _0x49b769=_0x839577(0x3c6,_0x4296ea._0x5bcafd,0x322,0x418)+_0x26a5d6+_0xdf8759(-0x1b2,-0x1d6,-0x188,-0x1b8);function _0xdf8759(_0x50e50c,_0x5f07a1,_0x531205,_0x2ffcb0){return _0x4aa629(_0x50e50c-_0x334d99._0x55fc2e,_0x2ffcb0,_0x531205-_0x334d99._0x68a399,_0x5f07a1- -_0x334d99._0x2be984);}if(!_0x5980ed||_0x5980ed[_0xdf8759(-0xe8,-0x221,-_0x4296ea._0x37cead,-0x1d1)]()[_0x839577(_0x4296ea._0x1ce1ac,_0x4296ea._0x5f2af4,_0x4296ea._0x535876,0x2b7)]===0x0||_0x5980ed===_0x49b769)return _0x49b769;return _0x49b769+_0xdf8759(-0xa5,-0x6,-_0x4296ea._0x195520,0xf8)+_0x5980ed;}function createAssignTaskTool(_0x5b1088){const _0x3b188f={_0x44b592:0x36d,_0x16ffe1:0x2e7,_0x13a1ad:0x12c,_0x5ea1da:0x22d,_0x2deaf7:0x6a8,_0x280eaa:0x538,_0x5f38cf:0x59f,_0x171299:0x339,_0x3501f0:0x4a8,_0x549cb4:0x5f2,_0x1d9432:0x2c0,_0x1f410e:0x3d7,_0x4780a5:0x5f9,_0x2561d4:0x5f2,_0x35ac87:0x1f1},_0x59a32d={_0x3ff4d5:0x600,_0x390120:0x5b4,_0x1bb464:0xf8,_0x3684f1:0x1fa,_0x2748da:0x114,_0x399ad1:0x229,_0x3918a6:0x5e2,_0x42810b:0x593,_0x5372fa:0x16b,_0x3503be:0xed,_0x577336:0x16b,_0x22cb1b:0x4e,_0x3235c5:0x1e0,_0xdc53dd:0x5b0,_0x58099b:0x552,_0x50516c:0x4cf,_0x396998:0x5eb,_0x5e48be:0x4c1,_0x14e8f4:0x692,_0x30b9c0:0x59f,_0x451f8f:0xf8,_0x2eff36:0x1a8,_0x4ceaab:0x4f,_0x62e237:0x10b,_0x241498:0x174,_0x4eb34e:0x27,_0x564422:0x1c3,_0x3c0f96:0x52d,_0x529dfe:0x5d1,_0x1b8f02:0x554,_0x46c005:0xd6,_0x519fe8:0x1ee,_0x246799:0x13b,_0x559830:0xf9,_0x291bcc:0x197,_0x377992:0x143,_0x29563a:0x24,_0x2b3464:0x133,_0x381269:0x13e,_0x3e3b8d:0x2f8,_0x242895:0x2f,_0x5d80c2:0x1e8,_0x349c40:0xee,_0x70024:0x2b,_0x5e81bc:0x130,_0x16c807:0x152,_0x291428:0x1e9,_0x2d145b:0x19e,_0x8e1010:0x45b,_0x21ad75:0x5d7,_0x40cfed:0x57,_0x1fa160:0x92,_0x284896:0xd5,_0x51ce44:0x588,_0x415361:0x6c8,_0x13a0f8:0x66f,_0x155228:0x77e,_0x2ac33d:0x589,_0x55a020:0x6cf,_0x33800b:0x63a,_0x4ed819:0x110,_0x4e30c7:0x325},_0x288245={_0x271466:0x412,_0xf67c56:0x254,_0x3748df:0x26f},_0x540526={_0x56874b:0x44},_0x327924={_0x3fd84c:0x60,_0x471d90:0xb0},_0x29ccc9={_0x3861da:0x1cd};function _0x415a1b(_0x11d537,_0x57d102,_0x110172,_0x4f13d6){return _0x4aa629(_0x11d537-_0x29ccc9._0x3861da,_0x57d102,_0x110172-0xd1,_0x4f13d6-0x31b);}function _0xa4360f(_0x1fe72b,_0x5e5f11,_0x58ee4c,_0x403c30){return _0x4aa629(_0x1fe72b-_0x327924._0x3fd84c,_0x403c30,_0x58ee4c-_0x327924._0x471d90,_0x58ee4c-0x5a4);}return defineTool({'name':_0x415a1b(_0x3b188f._0x44b592,_0x3b188f._0x16ffe1,0x306,0x3f7),'description':_0x415a1b(0x1d5,0x16b,_0x3b188f._0x13a1ad,_0x3b188f._0x5ea1da),'inputSchema':{'type':_0xa4360f(_0x3b188f._0x2deaf7,_0x3b188f._0x280eaa,0x567,_0x3b188f._0x5f38cf),'properties':{'agentId':{'type':_0x415a1b(_0x3b188f._0x171299,_0x3b188f._0x3501f0,0x3fe,0x369)},'description':{'type':_0xa4360f(0x594,0x5a0,_0x3b188f._0x549cb4,0x4ca)},'nickname':{'type':_0x415a1b(0x437,_0x3b188f._0x1d9432,_0x3b188f._0x1f410e,0x369)},'task':{'type':_0xa4360f(_0x3b188f._0x4780a5,0x623,_0x3b188f._0x2561d4,0x4e3)}},'required':['agentId',_0x415a1b(0x2d5,0x1a2,0x275,_0x3b188f._0x35ac87),'task']},async *'execute'(_0x2a2bac,_0x380a3a){const _0x37932a={_0x1d6bdb:0x1ed,_0x4469c8:0x150},_0x4f21ba={_0x296fc2:0x1a},_0x241f3f=createDelegatedRunId(),_0x2aeb9c={'agentId':_0x2a2bac['agentId'],'parentSessionId':_0x380a3a[_0x12087e(0x735,_0x59a32d._0x3ff4d5,0x628,_0x59a32d._0x390120)],'runId':_0x241f3f,..._0x380a3a[_0x1fe51a(-_0x59a32d._0x1bb464,-_0x59a32d._0x3684f1,-_0x59a32d._0x2748da,-_0x59a32d._0x399ad1)]!==void 0x0?{'toolCallId':_0x380a3a[_0x12087e(0x5dd,_0x59a32d._0x3918a6,0x646,0x4c4)]}:{}},_0x3768ef=getDelegatedAgentDefinition(_0x5b1088,_0x2a2bac[_0x12087e(_0x59a32d._0x42810b,0x56f,0x47e,0x5ed)]);function _0x1fe51a(_0x5c3f08,_0x507dfc,_0x342293,_0x4d916b){return _0x415a1b(_0x5c3f08-_0x4f21ba._0x296fc2,_0x4d916b,_0x342293-0x96,_0x5c3f08- -0x40d);}function _0x12087e(_0x4811f5,_0x5d257a,_0x1f958,_0x10f5c3){return _0xa4360f(_0x4811f5-0x117,_0x5d257a-0x22,_0x5d257a-_0x540526._0x56874b,_0x4811f5);}if(!_0x3768ef)throw new ToolExecutionError('Unknown\x20delegated\x20agent:\x20'+_0x2a2bac[_0x1fe51a(-_0x59a32d._0x5372fa,-0x12a,-0x241,-_0x59a32d._0x3503be)],{'agentId':_0x2a2bac[_0x1fe51a(-_0x59a32d._0x577336,-_0x59a32d._0x22cb1b,-0x72,-_0x59a32d._0x3235c5)]});const _0x8eb589=new Agent(await resolveDelegatedAgentOptions(_0x3768ef,_0x2aeb9c));let _0x55af8c={'runId':_0x241f3f,'agentId':_0x2a2bac['agentId'],'sessionId':_0x8eb589[_0x12087e(_0x59a32d._0xdc53dd,0x600,0x72d,0x4c2)],'status':_0x12087e(0x4d2,_0x59a32d._0x58099b,_0x59a32d._0x50516c,_0x59a32d._0x396998),'parentSessionId':_0x380a3a[_0x12087e(0x52b,0x600,0x4fa,_0x59a32d._0x5e48be)],..._0x380a3a[_0x12087e(_0x59a32d._0x14e8f4,0x5e2,_0x59a32d._0x30b9c0,0x538)]!==void 0x0?{'originToolCallId':_0x380a3a[_0x1fe51a(-_0x59a32d._0x451f8f,-_0x59a32d._0x2eff36,-0x146,-_0x59a32d._0x4ceaab)]}:{}};const _0x1bf50e=new AbortController(),_0x267cfe=addAbortListener(_0x380a3a['signal'],()=>{function _0x24711f(_0x2dab91,_0x45b8de,_0x333424,_0x48b822){return _0x12087e(_0x2dab91,_0x48b822- -_0x37932a._0x1d6bdb,_0x333424-_0x37932a._0x4469c8,_0x48b822-0x98);}_0x1bf50e['abort'](_0x380a3a[_0x24711f(_0x288245._0x271466,_0x288245._0xf67c56,_0x288245._0x3748df,0x304)]?.['reason']);});yield createToolOutput(_0x12087e(0x4a3,0x575,0x640,0x64a)+_0x55af8c[_0x1fe51a(-_0x59a32d._0x62e237,-0x211,-0x1aa,-_0x59a32d._0x241498)]+'.',{'runId':_0x55af8c[_0x1fe51a(-_0x59a32d._0x62e237,-_0x59a32d._0x4eb34e,-_0x59a32d._0x564422,-0xc9)],'agentId':_0x55af8c[_0x12087e(_0x59a32d._0x3c0f96,0x56f,_0x59a32d._0x529dfe,0x519)],'sessionId':_0x55af8c[_0x12087e(0x6da,_0x59a32d._0x3ff4d5,0x4b8,_0x59a32d._0x1b8f02)],'status':_0x55af8c[_0x1fe51a(-_0x59a32d._0x46c005,-0x29,-_0x59a32d._0x519fe8,-_0x59a32d._0x246799)]});try{const _0x322672=await _0x8eb589[_0x1fe51a(-_0x59a32d._0x559830,-_0x59a32d._0x291bcc,-_0x59a32d._0x377992,_0x59a32d._0x29563a)](_0x2a2bac[_0x1fe51a(-0xc6,-0x1ea,-0xfc,-0xa0)],{'signal':_0x1bf50e[_0x1fe51a(-0x1e9,-_0x59a32d._0x2b3464,-_0x59a32d._0x381269,-_0x59a32d._0x3e3b8d)]});_0x55af8c={..._0x55af8c,'status':_0x322672['status'],'result':_0x322672};if(_0x322672[_0x1fe51a(-0xd6,-_0x59a32d._0x242895,-_0x59a32d._0x5d80c2,-0xa9)]!==_0x1fe51a(-0x107,-0x47,-_0x59a32d._0x349c40,-_0x59a32d._0x70024)){const _0x504f1a=getRunTerminalErrorMessage(_0x322672),_0x4b7b88=formatAbortedRunMessage(_0x55af8c['runId'],_0x504f1a);throw new ToolExecutionError(_0x4b7b88,{...createRunSummary(_0x55af8c),'aborted':!![],'errorMessage':_0x4b7b88});}return createRunSummaryOutput(_0x55af8c,'Agent\x20run\x20'+_0x55af8c['runId']+_0x1fe51a(0xd,_0x59a32d._0x5e81bc,0x1c,0xe9));}catch(_0x3060db){if(_0x3060db instanceof ToolExecutionError)throw _0x3060db;if(isAbortError(_0x3060db)||_0x1bf50e['signal'][_0x1fe51a(-_0x59a32d._0x16c807,-0x1e1,-0xe5,-0x192)]||_0x380a3a[_0x1fe51a(-_0x59a32d._0x291428,-0xd8,-0x319,-_0x59a32d._0x2d145b)][_0x12087e(0x571,0x588,_0x59a32d._0x8e1010,_0x59a32d._0x21ad75)]){const _0x34eae9=getRunTerminalErrorMessage(_0x55af8c[_0x1fe51a(-0x6b,-0x3f,_0x59a32d._0x40cfed,-_0x59a32d._0x1fa160)])??(_0x3060db instanceof Error?_0x3060db[_0x1fe51a(0xf,-0x39,_0x59a32d._0x284896,-0xfb)]:String(_0x3060db)),_0x187da3=formatAbortedRunMessage(_0x55af8c['runId'],_0x34eae9);_0x55af8c={..._0x55af8c,'status':_0x12087e(0x4f4,_0x59a32d._0x51ce44,0x515,_0x59a32d._0x415361),'errorMessage':_0x187da3};throw new ToolExecutionError(_0x187da3,{...createRunSummary(_0x55af8c),'aborted':!![],'errorMessage':_0x187da3});}const _0xda0a9b=getRunTerminalErrorMessage(_0x55af8c[_0x12087e(0x5ac,_0x59a32d._0x13a0f8,0x71d,_0x59a32d._0x155228)])??(_0x3060db instanceof Error?_0x3060db['message']:String(_0x3060db))??_0x12087e(_0x59a32d._0x2ac33d,_0x59a32d._0x55a020,0x682,_0x59a32d._0x33800b)+_0x55af8c['runId']+'\x20failed.';_0x55af8c={..._0x55af8c,'status':_0x1fe51a(-0x1f7,-_0x59a32d._0x4ed819,-0xe8,-_0x59a32d._0x4e30c7),'errorMessage':_0xda0a9b};throw new ToolExecutionError(_0xda0a9b,{...createRunSummary(_0x55af8c),'errorMessage':_0xda0a9b});}finally{_0x267cfe();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x204385){return[createAssignTaskTool(_0x204385)];}import*as _0x36ab3d from'path';function buildDescription2(_0x1060f2){const _0x40422c={_0x208aaf:0x51f,_0x375e47:0x603,_0x4d05e6:0x272,_0x37244a:0x3f4,_0x5100b8:0x345,_0x83f760:0xa3,_0x525281:0x173,_0x48a23d:0x161,_0x38bef2:0x651,_0xdac3ec:0x746,_0x759e5d:0x424,_0x41f282:0x361,_0x535023:0x280,_0x28b1cd:0x3a0,_0x4dbd80:0x134,_0x332912:0x1f0,_0x5ef7f5:0x25c},_0x9b34be={_0x5be2c6:0x2d0},_0x54c89c={_0x27670e:0x67};function _0x5b39e7(_0x2d59c0,_0x3b33d9,_0x291998,_0x52a1f8){return _0x4aa629(_0x2d59c0-_0x54c89c._0x27670e,_0x52a1f8,_0x291998-0x162,_0x2d59c0-0x599);}if(_0x1060f2[_0x5b39e7(_0x40422c._0x208aaf,0x3fc,_0x40422c._0x375e47,0x464)]===0x0)return _0x333647(_0x40422c._0x4d05e6,0x3c4,_0x40422c._0x37244a,_0x40422c._0x5100b8);const _0x322d63=[_0x333647(_0x40422c._0x83f760,_0x40422c._0x525281,_0x40422c._0x48a23d,0x160),_0x5b39e7(_0x40422c._0x38bef2,0x5a0,0x694,_0x40422c._0xdac3ec),_0x5b39e7(0x43f,0x452,0x523,_0x40422c._0x759e5d),_0x333647(_0x40422c._0x41f282,0x2a1,_0x40422c._0x535023,_0x40422c._0x28b1cd),..._0x1060f2['map'](_0x2d7f72=>'-\x20'+_0x2d7f72[_0x333647(0x333,0x405,0x3d2,0x2df)]+':\x20'+_0x2d7f72[_0x333647(0x67,0x2e3,0x135,0x1a6)])];function _0x333647(_0x2582da,_0x2b39bc,_0x343ad0,_0x489943){return _0x4aa629(_0x2582da-0x6d,_0x2582da,_0x343ad0-0x15b,_0x489943-_0x9b34be._0x5be2c6);}return _0x322d63[_0x333647(_0x40422c._0x4dbd80,0x134,_0x40422c._0x332912,_0x40422c._0x5ef7f5)]('\x0a');}function createLoadSkillTool(_0x448f1a){const _0x22fad5={_0x14d445:0x5e,_0x2dd0de:0x1ac,_0x144d63:0x93,_0x45ea2d:0x570,_0x34c6da:0x523,_0x3faeca:0x651,_0xfeb21:0x6fa},_0x26226f={_0x59fba1:0x491,_0x258439:0x45b,_0x18e46f:0x36e,_0x1956b5:0x2c1,_0x25842c:0x638,_0x168f9a:0x6b8,_0x2d2dce:0x2d0,_0x5ada54:0x3df,_0x127f8e:0x3a6,_0x2a01dc:0x360,_0x538f04:0x5b6,_0x35fea4:0x51e,_0x5697b1:0x56a,_0x768b8:0x50c,_0x1d377b:0x407,_0x45e122:0x55a,_0x45d439:0x5bb,_0x195219:0x302,_0x2520dc:0x3a6,_0x5085d7:0x4af,_0x286677:0x31b,_0x4134c3:0x55f,_0x19d4a7:0x542,_0x1c1759:0x566,_0x1b12cc:0x46c,_0xede82e:0x4fe,_0x1e28dc:0x432,_0x2c28b7:0x323,_0x307c83:0x1ec,_0x32b681:0x2c7,_0x3b897d:0x3c5,_0x20873e:0x419,_0x1b5b4b:0x3ca},_0x14c98f={_0x9419d2:0x100,_0xa7c78d:0x59d},_0x4cc460=new Map(_0x448f1a[_0x312482(-_0x22fad5._0x14d445,-_0x22fad5._0x2dd0de,-0x1b8,-_0x22fad5._0x144d63)][_0x468012(0x3e5,0x48e,0x4a9,0x587)](_0x5bfc1a=>[_0x5bfc1a[_0x468012(0x69b,0x5ac,0x6f4,0x618)],_0x5bfc1a])),_0x59249d=buildDescription2(_0x448f1a[_0x312482(-0xf1,-0x4c,-0x89,-_0x22fad5._0x144d63)]);function _0x312482(_0x5dd44b,_0x415af8,_0x2f7e6c,_0x1b6b97){return _0x4aa629(_0x5dd44b-0x12c,_0x415af8,_0x2f7e6c-0xc9,_0x1b6b97- -0xf);}function _0x468012(_0x28287f,_0x4dc289,_0x256351,_0x2666a5){return _0x4aa629(_0x28287f-_0x14c98f._0x9419d2,_0x2666a5,_0x256351-0xa5,_0x4dc289-_0x14c98f._0xa7c78d);}return defineTool({'name':'LoadSkill','description':_0x59249d,'inputSchema':{'type':_0x468012(_0x22fad5._0x45ea2d,0x560,_0x22fad5._0x34c6da,_0x22fad5._0x3faeca),'properties':{'name':{'type':_0x468012(0x5a9,0x5eb,0x4ce,_0x22fad5._0xfeb21)}},'required':[_0x468012(0x4b1,0x5ac,0x4b7,0x662)]},async *'execute'(_0x13acbb){const _0x34b12a={_0x3a385e:0xc9},_0x404a82={_0x420547:0x19b,_0x1feca6:0x6c},_0x2413d0=_0x4cc460[_0x20e46d(_0x26226f._0x59fba1,_0x26226f._0x258439,_0x26226f._0x18e46f,_0x26226f._0x1956b5)](_0x13acbb['name']);if(!_0x2413d0){const _0x109c67=Array[_0x20e46d(0x31a,0x174,0x298,0x24e)](_0x4cc460[_0xb01c36(_0x26226f._0x25842c,_0x26226f._0x168f9a,0x556,0x63d)]())['join'](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0x13acbb[_0x20e46d(_0x26226f._0x2d2dce,_0x26226f._0x5ada54,_0x26226f._0x127f8e,_0x26226f._0x2a01dc)]+_0x20e46d(_0x26226f._0x538f04,0x436,0x4b5,0x4a9)+_0x109c67,{'name':_0x13acbb[_0xb01c36(0x540,0x4c0,0x4b3,_0x26226f._0x35fea4)]});}const _0x4ef76d=await _0x448f1a[_0xb01c36(0x615,_0x26226f._0x5697b1,0x5f7,_0x26226f._0x768b8)](_0x2413d0);function _0xb01c36(_0x24a6ac,_0x392f17,_0x3e56b5,_0x41489d){return _0x468012(_0x24a6ac-_0x404a82._0x420547,_0x24a6ac- -_0x404a82._0x1feca6,_0x3e56b5-0x44,_0x3e56b5);}function _0x20e46d(_0x4b4c4d,_0x3aded1,_0x284a73,_0x57a0fd){return _0x468012(_0x4b4c4d-0x151,_0x284a73- -0x206,_0x284a73-_0x34b12a._0x3a385e,_0x3aded1);}const _0x23a643=_0x2413d0['source'][_0xb01c36(0x47b,0x52c,_0x26226f._0x1d377b,0x4e9)]??_0x36ab3d['dirname'](_0x2413d0['source'][_0xb01c36(0x4de,0x5f0,_0x26226f._0x45e122,_0x26226f._0x45d439)]),_0x340aa2=['##\x20Skill:\x20'+_0x4ef76d[_0x20e46d(0x3ae,_0x26226f._0x195219,_0x26226f._0x2520dc,0x3be)],'',_0x4ef76d[_0x20e46d(0x1f0,0x22b,0x29e,0x260)],'','---',_0x20e46d(0x409,_0x26226f._0x5085d7,0x463,_0x26226f._0x286677)+_0x2413d0[_0xb01c36(_0x26226f._0x4134c3,_0x26226f._0x19d4a7,_0x26226f._0x1c1759,0x43b)]['path'],_0xb01c36(_0x26226f._0x1b12cc,0x4a4,_0x26226f._0xede82e,_0x26226f._0x18e46f)+_0x23a643][_0x20e46d(_0x26226f._0x1e28dc,0x3a5,_0x26226f._0x2c28b7,_0x26226f._0x307c83)]('\x0a');return yield createToolOutput(_0x340aa2,{'id':_0x4ef76d['id'],'name':_0x4ef76d['name'],'path':_0x2413d0[_0x20e46d(_0x26226f._0x32b681,0x4fc,_0x26226f._0x3b897d,_0x26226f._0x20873e)][_0x20e46d(0x357,_0x26226f._0x1b5b4b,0x344,0x472)],'baseDirectory':_0x23a643}),void 0x0;}});}var TODO_STATUSES=new Set([_0x4aa629(-0x95,0xfb,-0xe5,0x2d),_0x2f0acf(0x24a,0x1ee,0x30c,0x18b),_0x2f0acf(0x328,0x218,0x3b9,0x403)]),TODO_PRIORITIES=new Set(['high',_0x2f0acf(0x214,0x290,0x191,0x125),'low']);function isTodoStatus(_0x2e92d9){const _0x5e850c={_0x162513:0x1c4,_0x154373:0x86,_0x3d8474:0x16d,_0x547abe:0x5e9,_0x2c5309:0x582,_0x27017d:0x4ad},_0x346d8f={_0x3ce1a5:0x0};function _0x21120e(_0x550384,_0x372ea8,_0x1546ed,_0x4b1307){return _0x2f0acf(_0x1546ed-0x239,_0x372ea8-0x191,_0x4b1307,_0x4b1307-0x88);}function _0x3bcacd(_0x2fe950,_0x156da6,_0x2f7a5c,_0x54cfda){return _0x2f0acf(_0x156da6- -0x411,_0x156da6-_0x346d8f._0x3ce1a5,_0x54cfda,_0x54cfda-0x95);}return typeof _0x2e92d9===_0x3bcacd(-_0x5e850c._0x162513,-_0x5e850c._0x154373,-_0x5e850c._0x3d8474,0x5e)&&TODO_STATUSES[_0x21120e(_0x5e850c._0x547abe,_0x5e850c._0x2c5309,_0x5e850c._0x27017d,0x4e8)](_0x2e92d9);}function isTodoPriority(_0x475bde){const _0x1ceac2={_0x47a469:0x231},_0x534495={_0x102e52:0x107};function _0x3f8a8b(_0x540f62,_0xf0bb09,_0x41734c,_0x196ea3){return _0x4aa629(_0x540f62-0x94,_0xf0bb09,_0x41734c-_0x534495._0x102e52,_0x540f62- -0x168);}return typeof _0x475bde==='string'&&TODO_PRIORITIES[_0x3f8a8b(-_0x1ceac2._0x47a469,-0x31d,-0x1d5,-0x24c)](_0x475bde);}var TodoStore=class{[_0x4aa629(0xd1,-0xea,0x14,-0x63)]=new Map();['getTodos'](_0x564863){const _0x885c32={_0x38871e:0x354,_0x4d71ce:0x3d9,_0x27085c:0x372,_0x33c189:0x35e,_0x368273:0x320},_0x68bca2={_0x433544:0xe0};function _0x278025(_0x52b504,_0x17b076,_0x47cba1,_0x4d05fe){return _0x4aa629(_0x52b504-_0x68bca2._0x433544,_0x4d05fe,_0x47cba1-0x93,_0x52b504-0x3b7);}function _0x38e388(_0x31f1c6,_0xdbd1e0,_0x4bb7b8,_0x92d32c){return _0x4aa629(_0x31f1c6-0x48,_0x31f1c6,_0x4bb7b8-0x159,_0x92d32c- -0x31);}return this[_0x278025(_0x885c32._0x38871e,_0x885c32._0x4d71ce,0x2bd,_0x885c32._0x27085c)][_0x278025(0x38e,_0x885c32._0x33c189,_0x885c32._0x368273,0x283)](_0x564863)??[];}[_0x4aa629(0xeb,0x1af,0xb0,0x103)](_0x425c96,_0xe980a1){const _0x243bf0={_0x5be188:0x5d},_0x4d7617={_0xbee725:0x122,_0xa6d2a6:0xb6};function _0x4cac78(_0x4d69b4,_0x1f68a7,_0x3c131d,_0x4e7994){return _0x4aa629(_0x4d69b4-0x1df,_0x1f68a7,_0x3c131d-_0x4d7617._0xbee725,_0x4d69b4- -_0x4d7617._0xa6d2a6);}this['todosBySession'][_0x4cac78(0xf,0xe9,-_0x243bf0._0x5be188,-0x1e)](_0x425c96,_0xe980a1);}[_0x2f0acf(0x294,0x265,0x2cb,0x170)](_0x14da8d){const _0x60293c={_0xd76827:0x433,_0x4d8016:0x3f4,_0x42c354:0x57e,_0x5a817b:0x568,_0x37f5ce:0x436,_0x156df8:0x497,_0x38c971:0x411,_0x5ef078:0x46f,_0x5b0702:0x45e,_0x52650b:0x71b,_0x2e48b0:0x565,_0x43d0cb:0x54d},_0x501f01={_0x543d14:0x531},_0x3d10e1=this[_0x3b4bbc(0x3a0,_0x60293c._0xd76827,0x555,0x4e4)](_0x14da8d);function _0xd6bb8f(_0xf34ac6,_0x39a82a,_0x22bc6f,_0x2c43f2){return _0x4aa629(_0xf34ac6-0x1ee,_0x2c43f2,_0x22bc6f-0xd3,_0xf34ac6-0x562);}const _0x4b46d6={'total':_0x3d10e1[_0x3b4bbc(0x44c,_0x60293c._0x4d8016,0x470,0x4b7)],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x3b4bbc(_0x5ac107,_0x3425cb,_0x5d3d29,_0x3c13e2){return _0x4aa629(_0x5ac107-0x28,_0x3425cb,_0x5d3d29-0x99,_0x3c13e2-_0x501f01._0x543d14);}for(const _0x7511d4 of _0x3d10e1){if(_0x7511d4[_0xd6bb8f(_0x60293c._0x42c354,_0x60293c._0x5a817b,_0x60293c._0x37f5ce,0x491)]==='pending')_0x4b46d6[_0xd6bb8f(0x58f,0x69e,0x4d5,_0x60293c._0x156df8)]+=0x1;else{if(_0x7511d4[_0x3b4bbc(0x5ee,_0x60293c._0x38c971,0x413,0x54d)]===_0xd6bb8f(_0x60293c._0x5ef078,0x532,0x54d,_0x60293c._0x5b0702))_0x4b46d6[_0xd6bb8f(0x65b,_0x60293c._0x52650b,_0x60293c._0x2e48b0,0x605)]+=0x1;else _0x4b46d6[_0xd6bb8f(_0x60293c._0x43d0cb,0x5c0,0x5cd,0x514)]+=0x1;}}return _0x4b46d6;}};function validateTodos(_0x4f01d7){const _0x6be5a1={_0x2dc6df:0x1c7,_0x43ada7:0xf7,_0x2e1489:0x417,_0x3afd4f:0x32f,_0x31ab06:0x38e,_0x455d71:0x15c,_0x24bc0a:0x1b5,_0x3569b2:0x23e,_0x3c5835:0x30,_0x431b45:0x118,_0x32f2d9:0x146,_0x1d075a:0x2e0,_0x15dd69:0x375,_0x4d9c7f:0x1f2,_0x18a820:0x2c1,_0x91db72:0xff,_0x522885:0x367,_0xc95267:0x433,_0x456268:0x4b5,_0x2de547:0x4ad,_0x3e062b:0x4b1,_0x191b13:0x1a3,_0x5cd7be:0x124,_0x34798d:0x209,_0x3d6e62:0x252,_0x1b3761:0x49a,_0xf567c:0x3cc,_0x1507b2:0x3dc,_0x3b634c:0x4bd,_0x55108a:0x265,_0x4877b1:0x125,_0xdf8d4c:0x3f0,_0x4b3c04:0x511,_0x339ae1:0x539,_0x396786:0x2d2,_0xdc3e0d:0x3bb,_0x5a048f:0x334,_0x424160:0x17a,_0xed7d06:0x228,_0xe54d51:0x264,_0x4bbfec:0x108,_0x566048:0x3c1,_0x279220:0x3b6,_0x1092a7:0x339,_0x30758f:0x287,_0x3f5d5a:0x245,_0x33a511:0x236,_0xd1a921:0xc7,_0xfc46c6:0x3a9,_0x233f78:0x487},_0x456c49={_0x1e699c:0x7b,_0x4c1e24:0x178},_0x1cfa92={_0x4d3e87:0xd5,_0x5b3686:0x112,_0x5655be:0x132};function _0x4db6d2(_0x3c3421,_0x268fa1,_0x54aae8,_0x2c90d0){return _0x2f0acf(_0x268fa1-_0x1cfa92._0x4d3e87,_0x268fa1-_0x1cfa92._0x5b3686,_0x3c3421,_0x2c90d0-_0x1cfa92._0x5655be);}if(!Array[_0x5f5d11(-0x1d0,-_0x6be5a1._0x2dc6df,-_0x6be5a1._0x43ada7,-0x1d2)](_0x4f01d7[_0x5f5d11(-0x237,-0x1ca,-0x289,-0x24d)])||_0x4f01d7['todos'][_0x4db6d2(0x2b1,0x398,0x4d4,0x283)]===0x0)throw new ToolExecutionError('Parameter\x20\x22todos\x22\x20must\x20be\x20a\x20non-empty\x20array',{'error':_0x4db6d2(_0x6be5a1._0x2e1489,_0x6be5a1._0x3afd4f,0x3f4,_0x6be5a1._0x31ab06)});for(let _0x1e15cf=0x0;_0x1e15cf<_0x4f01d7['todos']['length'];_0x1e15cf+=0x1){const _0xb0b91a=_0x4f01d7['todos'][_0x1e15cf];if(!_0xb0b91a||typeof _0xb0b91a!==_0x5f5d11(-_0x6be5a1._0x455d71,-0x146,-_0x6be5a1._0x24bc0a,-0x8f))throw new ToolExecutionError(_0x5f5d11(-0x19a,-0xe,-0x125,-_0x6be5a1._0x3569b2)+(_0x1e15cf+0x1)+_0x5f5d11(-0x12c,_0x6be5a1._0x3c5835,-_0x6be5a1._0x431b45,-_0x6be5a1._0x32f2d9),{'error':_0x4db6d2(_0x6be5a1._0x1d075a,_0x6be5a1._0x15dd69,0x3d2,0x3e7)});if(typeof _0xb0b91a['id']!=='string'||_0xb0b91a['id']['trim']()[_0x5f5d11(-0x25b,-0x11d,-_0x6be5a1._0x4d9c7f,-_0x6be5a1._0x18a820)]===0x0)throw new ToolExecutionError(_0x5f5d11(-0x77,-0x29,-0x125,-_0x6be5a1._0x91db72)+(_0x1e15cf+0x1)+_0x5f5d11(-0x1f6,-0x1d7,-0x292,-0x259),{'error':_0x5f5d11(-_0x6be5a1._0x522885,-0x3a0,-0x2d8,-0x2bd)});if(typeof _0xb0b91a[_0x4db6d2(_0x6be5a1._0xc95267,_0x6be5a1._0x456268,_0x6be5a1._0x2de547,_0x6be5a1._0x3e062b)]!=='string'||_0xb0b91a[_0x5f5d11(-0x215,-_0x6be5a1._0x191b13,-0xd5,-_0x6be5a1._0x5cd7be)]['trim']()[_0x5f5d11(-0x2e3,-_0x6be5a1._0x34798d,-_0x6be5a1._0x4d9c7f,-_0x6be5a1._0x3d6e62)]===0x0)throw new ToolExecutionError('Todo\x20'+(_0x1e15cf+0x1)+':\x20content\x20required',{'error':_0x4db6d2(_0x6be5a1._0x1b3761,_0x6be5a1._0xf567c,_0x6be5a1._0x1507b2,_0x6be5a1._0x3b634c)});if(!isTodoStatus(_0xb0b91a['status']))throw new ToolExecutionError(_0x5f5d11(-_0x6be5a1._0x55108a,0x13,-_0x6be5a1._0x4877b1,-0x251)+(_0x1e15cf+0x1)+_0x4db6d2(_0x6be5a1._0xdf8d4c,0x520,_0x6be5a1._0x4b3c04,_0x6be5a1._0x339ae1),{'error':_0x4db6d2(0x3f7,_0x6be5a1._0x396786,_0x6be5a1._0xdc3e0d,_0x6be5a1._0x5a048f)});if(!isTodoPriority(_0xb0b91a[_0x5f5d11(-_0x6be5a1._0x424160,-_0x6be5a1._0xed7d06,-0x2c1,-0x409)]))throw new ToolExecutionError(_0x5f5d11(-_0x6be5a1._0xe54d51,-0x207,-0x125,-_0x6be5a1._0x4bbfec)+(_0x1e15cf+0x1)+_0x4db6d2(0x423,_0x6be5a1._0x566048,_0x6be5a1._0x279220,0x37f),{'error':_0x4db6d2(0x4fd,0x4c6,0x519,0x483)});}const _0x4da01e=_0x4f01d7['todos'][_0x5f5d11(-0x1e4,-_0x6be5a1._0x1092a7,-_0x6be5a1._0x30758f,-_0x6be5a1._0x3f5d5a)](_0xe42c9b=>_0xe42c9b['id']);function _0x5f5d11(_0x4376ec,_0xb25e58,_0x1d4361,_0x5a85e9){return _0x4aa629(_0x4376ec-0x2e,_0x4376ec,_0x1d4361-_0x456c49._0x1e699c,_0x1d4361- -_0x456c49._0x4c1e24);}if(new Set(_0x4da01e)['size']!==_0x4da01e[_0x5f5d11(-0xe5,-_0x6be5a1._0x33a511,-0x1f2,-_0x6be5a1._0xd1a921)])throw new ToolExecutionError('Todo\x20items\x20must\x20have\x20unique\x20IDs',{'error':_0x4db6d2(0x599,0x4a0,_0x6be5a1._0xfc46c6,_0x6be5a1._0x233f78)});}function createStatsProgress(_0x1529d8){const _0x3ea8e4={_0xfeff50:0x84,_0x29c178:0x2c,_0x3e68cb:0x1f1,_0x4fd9e8:0x66f,_0x1a78e4:0x681,_0x3335f0:0x6d2,_0x215727:0x60a,_0x8617db:0xc0},_0x55b9ef={_0x373947:0x2e2,_0x3362f9:0x1cc},_0x3c1576={_0x2fe9b3:0x3c};function _0x3a1aea(_0x1e7281,_0x38cf8b,_0x500be6,_0xb5eb20){return _0x2f0acf(_0x38cf8b- -0x322,_0x38cf8b-0x165,_0x500be6,_0xb5eb20-_0x3c1576._0x2fe9b3);}function _0x215f81(_0x5d359e,_0x2f263a,_0x71e6e3,_0x33e36e){return _0x2f0acf(_0x33e36e-_0x55b9ef._0x373947,_0x2f263a-0x182,_0x5d359e,_0x33e36e-_0x55b9ef._0x3362f9);}return _0x1529d8[_0x3a1aea(-0x8f,-0xc0,-_0x3ea8e4._0xfeff50,-0x2)]>0x0?Math[_0x3a1aea(-0xe1,-0x143,-_0x3ea8e4._0x29c178,-_0x3ea8e4._0x3e68cb)](_0x1529d8[_0x215f81(_0x3ea8e4._0x4fd9e8,_0x3ea8e4._0x1a78e4,_0x3ea8e4._0x3335f0,_0x3ea8e4._0x215727)]/_0x1529d8[_0x3a1aea(-0x1dc,-_0x3ea8e4._0x8617db,-0x129,-0x1c2)]*0x64)+'%':'0%';}function createReminderItems(_0x2d944b){const _0x305b18={_0x3e2183:0x188,_0x43f757:0x169},_0x51b046={_0x3d4277:0x139,_0x270b9c:0x297};function _0x27618b(_0x586e11,_0x1017a6,_0x1fb328,_0x56082a){return _0x4aa629(_0x586e11-0xd1,_0x56082a,_0x1fb328-0x195,_0x1017a6-0x148);}function _0x135841(_0x16eb93,_0x4c2d45,_0x2bb2ae,_0x506035){return _0x4aa629(_0x16eb93-_0x51b046._0x3d4277,_0x506035,_0x2bb2ae-0x133,_0x4c2d45-_0x51b046._0x270b9c);}return _0x2d944b[_0x135841(0x7d,_0x305b18._0x3e2183,0x2c4,_0x305b18._0x43f757)](_0x323748=>({'content':_0x323748[_0x27618b(0x25d,0x1eb,0x17e,0x17e)],'status':_0x323748[_0x135841(0x375,0x2b3,0x3c4,0x239)],'id':_0x323748['id']}));}function createStructuredResult(_0x468636,_0x3922e3,_0x65f8f6,_0x3c5f6f){const _0x406871={_0x39a856:0x26f,_0x1b916d:0x377},_0x58d036={_0x36585f:0x1c7,_0x2a52d8:0x45e};function _0x374b0f(_0x1e700d,_0x5af01d,_0x2ec661,_0x2c0586){return _0x4aa629(_0x1e700d-0x17b,_0x1e700d,_0x2ec661-0x111,_0x2c0586-0x2ae);}function _0xd51d15(_0xc3e3c,_0x24d8f0,_0x5892a6,_0x22ec70){return _0x4aa629(_0xc3e3c-0x15,_0x22ec70,_0x5892a6-_0x58d036._0x36585f,_0xc3e3c-_0x58d036._0x2a52d8);}return{'allCompleted':_0x3c5f6f,'items':_0x3922e3['map'](_0x448248=>({'id':_0x448248['id'],'content':_0x448248[_0xd51d15(0x501,0x524,0x3ed,0x553)],'status':_0x448248[_0xd51d15(0x47a,0x537,0x48a,0x3d5)],'priority':_0x448248[_0x374b0f(0x138,0xb6,0x14d,0x165)],'createdAt':_0x448248[_0xd51d15(0x3c5,0x2d6,0x46d,0x351)]})),'progress':createStatsProgress(_0x65f8f6),'recentChanges':!![],'sessionId':_0x468636,'stats':_0x65f8f6,'todosWritten':_0x3922e3[_0x374b0f(_0x406871._0x39a856,_0x406871._0x1b916d,0x148,0x234)]};}function createOutputText(_0x2dc47e,_0x5b42e3){const _0x57f990={_0x3aaa37:0x152,_0x45b3dc:0x173,_0x3d3f37:0x38e,_0x3dc203:0x3fc,_0x5a39f4:0x335,_0x26d8b9:0x377,_0x2dcf3f:0x268},_0x1a9bba={_0x553858:0x8b,_0x403447:0x1cd},_0x788849={_0x699371:0x10c,_0x37e356:0x371},_0xff360b=JSON['stringify'](createReminderItems(_0x2dc47e));function _0x59271e(_0xf0c2f9,_0x4a5a54,_0x24f0b3,_0x458c84){return _0x4aa629(_0xf0c2f9-_0x788849._0x699371,_0x24f0b3,_0x24f0b3-0x2c,_0x4a5a54-_0x788849._0x37e356);}if(_0x5b42e3)return _0x545b61(0x2ac,0x274,_0x57f990._0x3aaa37,0x2e3)+_0x2dc47e[_0x545b61(_0x57f990._0x45b3dc,0x153,0xce,0x116)]+'\x20todo\x20items\x20have\x20been\x20completed\x20successfully!\x0a\x0a<system-reminder>\x0aAll\x20todo\x20items\x20are\x20now\x20completed!\x20Ask\x20about\x20next\x20steps.\x20Completed\x20list:\x0a'+_0xff360b+_0x59271e(0x3a4,_0x57f990._0x3d3f37,_0x57f990._0x3dc203,_0x57f990._0x5a39f4);function _0x545b61(_0x4a2cbb,_0x38e8b4,_0x5e398d,_0xd3ec3e){return _0x4aa629(_0x4a2cbb-0x1dc,_0xd3ec3e,_0x5e398d-_0x1a9bba._0x553858,_0x38e8b4-_0x1a9bba._0x403447);}return _0x59271e(0x23f,_0x57f990._0x26d8b9,0x2f5,_0x57f990._0x2dcf3f)+_0xff360b+'.\x0a</system-reminder>';}function createTodoWriteTool(_0x3727ce=new TodoStore()){const _0x15c716={_0x18909e:0xf,_0x43e2d5:0xcd,_0xf00d01:0x2e5,_0x426aac:0x284,_0x22f8d5:0x2e3,_0x18931e:0x358,_0x2354d3:0x37c,_0x4f7305:0x257,_0x7b7884:0x45d,_0x115a83:0x2de,_0x3864fc:0x3e6,_0x2b3acc:0x369,_0x54845c:0x3d3,_0x3edf47:0x38d,_0x5d103e:0x44d,_0x457cd6:0x36b,_0x224c50:0x369,_0x456a0f:0x252,_0x3d6a03:0x44f,_0x363757:0x1ba,_0x270426:0x34d,_0x396bbf:0x188,_0x4c4245:0x29b,_0x5f25b4:0x99,_0x495150:0x5d,_0x5751de:0x5b},_0x14f2bd={_0x19c563:0x1f,_0x522122:0x569,_0x5563ab:0x644,_0x27bf59:0x5c8,_0x2104e9:0x4b0,_0x5532b1:0x6f,_0x58baa2:0xdc,_0x510111:0x1e5,_0x1fd50a:0x38,_0x46320f:0x1e},_0x1d09bb={_0x209555:0x3af,_0x1da055:0x1a4},_0x19a251={_0x116c24:0x22};function _0x258a85(_0x2db533,_0x31c01d,_0x1d8016,_0x29e2f5){return _0x4aa629(_0x2db533-0x1d0,_0x2db533,_0x1d8016-0x138,_0x1d8016-0x16c);}function _0x517340(_0x4ce3da,_0xdd5ab0,_0x3f5c38,_0x1b86cb){return _0x2f0acf(_0x4ce3da- -_0x19a251._0x116c24,_0xdd5ab0-0x143,_0x1b86cb,_0x1b86cb-0x1f);}return defineTool({'name':_0x258a85(_0x15c716._0x18909e,0xfd,_0x15c716._0x43e2d5,0x4),'description':_0x517340(_0x15c716._0xf00d01,0x2ad,0x402,0x203),'inputSchema':{'type':_0x517340(0x2de,_0x15c716._0x426aac,_0x15c716._0x22f8d5,_0x15c716._0x18931e),'properties':{'todos':{'type':_0x517340(_0x15c716._0x2354d3,_0x15c716._0x4f7305,0x296,_0x15c716._0x7b7884),'items':{'type':_0x517340(_0x15c716._0x115a83,_0x15c716._0x3864fc,0x2f2,0x21f),'properties':{'content':{'type':_0x517340(_0x15c716._0x2b3acc,_0x15c716._0x54845c,_0x15c716._0x3edf47,0x47b)},'status':{'type':_0x517340(_0x15c716._0x2b3acc,0x3eb,_0x15c716._0x5d103e,_0x15c716._0x457cd6)},'priority':{'type':'string'},'id':{'type':_0x517340(_0x15c716._0x224c50,0x327,_0x15c716._0x456a0f,_0x15c716._0x3d6a03)},'createdAt':{'type':_0x258a85(0x2b9,0x2d6,_0x15c716._0x363757,0x1cf)}},'required':[_0x258a85(0x21e,0x167,0x20f,_0x15c716._0x270426),_0x258a85(0x217,0x7b,_0x15c716._0x396bbf,0x130),_0x517340(0x1d2,_0x15c716._0x4c4245,0x122,0x1b8),'id']}}},'required':[_0x258a85(-_0x15c716._0x5f25b4,-_0x15c716._0x495150,_0x15c716._0x5751de,-0xcf)]},async *'execute'(_0x35206e,_0x2427c0){const _0x1ea1de={_0x302bea:0x2a4},_0x4d7e24=_0x35206e;validateTodos(_0x4d7e24);const _0x8b0c35=_0x2427c0[_0x364767(_0x14f2bd._0x19c563,0x7a,-0x7c,0x5e)]||_0x300649(_0x14f2bd._0x522122,0x713,_0x14f2bd._0x5563ab,0x624);function _0x300649(_0x2fb3d3,_0x7312bf,_0x1601b3,_0x467e3d){return _0x517340(_0x467e3d-_0x1ea1de._0x302bea,_0x7312bf-0x140,_0x1601b3-0xc0,_0x7312bf);}const _0x14b96f=new Date()['toISOString'](),_0x201de9=_0x4d7e24[_0x364767(-0x15c,-0x2e0,-0x1a5,-0x177)][_0x300649(0x546,0x48e,_0x14f2bd._0x27bf59,_0x14f2bd._0x2104e9)](_0x433314=>({'id':_0x433314['id'],'content':_0x433314[_0x364767(0xac,-0x56,0xf,-0x103)],'status':_0x433314[_0x364767(-0xa7,0x0,-0x78,-0xb9)],'priority':_0x433314[_0x300649(0x346,0x3b7,0x431,0x476)],'sessionId':_0x8b0c35,'createdAt':_0x433314[_0x300649(0x492,0x47b,0x652,0x526)]||_0x14b96f,'updatedAt':_0x14b96f}));_0x3727ce[_0x364767(-0x6a,0x15d,_0x14f2bd._0x5532b1,-0x46)](_0x8b0c35,_0x201de9);const _0x32f2f9=_0x3727ce[_0x364767(0xb,-_0x14f2bd._0x58baa2,-0x13d,-_0x14f2bd._0x510111)](_0x8b0c35);function _0x364767(_0x24fa67,_0x4f50a3,_0x3bd07e,_0x263926){return _0x517340(_0x3bd07e- -_0x1d09bb._0x209555,_0x4f50a3-0xfe,_0x3bd07e-_0x1d09bb._0x1da055,_0x24fa67);}const _0x4b2241=_0x201de9[_0x364767(_0x14f2bd._0x1fd50a,-0x60,-0x10e,-_0x14f2bd._0x46320f)]>0x0&&_0x201de9['every'](_0xd0f682=>_0xd0f682[_0x300649(0x706,0x5b1,0x668,0x5db)]===_0x364767(0x65,-0x58,-0xa9,0xf));return createToolOutput(createOutputText(_0x201de9,_0x4b2241),createStructuredResult(_0x8b0c35,_0x201de9,_0x32f2f9,_0x4b2241));}});}import{mkdir as _0x40131b,writeFile as _0x561199}from'fs/promises';import*as _0x29c4f1 from'path';function sanitizeFileName(_0x4616dc){const _0x399387={_0x4509e3:0x48a,_0x5023c2:0x424,_0x6a7a47:0x36d,_0x3f15cf:0x468},_0x1002b9={_0x484b63:0x24d,_0x4320e4:0x14};function _0x503c0c(_0x1a103b,_0x4dbcb8,_0x5b5622,_0x3d66f2){return _0x2f0acf(_0x4dbcb8-_0x1002b9._0x484b63,_0x4dbcb8-0x1dd,_0x1a103b,_0x3d66f2-_0x1002b9._0x4320e4);}return _0x4616dc[_0x503c0c(_0x399387._0x4509e3,_0x399387._0x5023c2,_0x399387._0x6a7a47,_0x399387._0x3f15cf)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x53a837,_0x278068){const _0x40298d={_0x27b762:0x31d,_0x2888dc:0x537,_0x1baed4:0x430,_0x542467:0x5d7,_0x1ed8c6:0x513,_0x4c0e8c:0x4ee,_0xd1ec80:0x3de,_0x2bd50d:0x37b,_0x2e9f4a:0x31d,_0x449079:0x3db,_0x37ae27:0x4f9,_0x5cda43:0x4d8,_0x14e6db:0x24f,_0x5858bf:0x29,_0xc511fc:0x32,_0x4f1a47:0x8e,_0x50cc21:0xcc,_0x1361bd:0x2f,_0x5cd046:0x6e,_0x2ee57c:0xc7,_0x393be3:0x8,_0x55c334:0x62,_0x2e25f7:0xbf,_0x5718a2:0x16a,_0x9047f8:0x97,_0x53d293:0x13,_0x496dac:0x54,_0x462f22:0x19,_0x446de7:0x2c0,_0xf05baf:0xe2,_0x3ef777:0x2f9,_0x288bb2:0x487,_0x271faa:0x5dc,_0x2bd38d:0x5ab,_0x4dfa09:0x4eb,_0x309f22:0x4a7,_0x3b964f:0x60,_0x2b7b8b:0x145,_0x4ccb71:0x1bc,_0x48ebfa:0x176,_0x2879ce:0x2af,_0x362ecf:0x90,_0x3178ba:0xa7,_0x3b7f41:0x107,_0xcff547:0x96,_0x1adfc9:0x25,_0x4a52e2:0x74,_0x55b447:0x6f,_0x1d5fdc:0x382,_0x270ad9:0x4f,_0x1fbe7f:0x50},_0x396e94={_0x593eba:0x102,_0x193f79:0x496},_0x2f7e0a={_0x13505f:0x364,_0x41fe6d:0x194};function _0x4cd00b(_0xc77a5b,_0x4ffe51,_0x58a567,_0x34f269){return _0x2f0acf(_0xc77a5b- -_0x2f7e0a._0x13505f,_0x4ffe51-_0x2f7e0a._0x41fe6d,_0x4ffe51,_0x34f269-0xe5);}const {maxBytes:_0x196991,sessionDir:_0x1ee6b2}=_0x278068;if(!_0x53a837[_0x4fe2f4(0x47f,_0x40298d._0x27b762,0x459,0x3db)]||Buffer[_0x4fe2f4(_0x40298d._0x2888dc,_0x40298d._0x1baed4,_0x40298d._0x542467,_0x40298d._0x1ed8c6)](_0x53a837[_0x4fe2f4(0x454,0x37c,_0x40298d._0x4c0e8c,0x3db)],_0x4fe2f4(0x317,0x40c,0x39f,_0x40298d._0xd1ec80))<=_0x196991)return _0x53a837;const _0x414c72=Buffer['byteLength'](_0x53a837[_0x4fe2f4(0x38e,_0x40298d._0x2bd50d,_0x40298d._0x2e9f4a,_0x40298d._0x449079)],_0x4fe2f4(0x3dc,_0x40298d._0x37ae27,0x39c,0x3de));if(!_0x1ee6b2){const _0x37997f=_0x53a837[_0x4fe2f4(_0x40298d._0x5cda43,0x489,0x459,0x3db)][_0x4fe2f4(0x44f,0x4c4,_0x40298d._0x14e6db,0x396)](0x0,_0x196991);return{..._0x53a837,'output':_0x37997f+('\x0a\x0a<system-reminder>\x0aTool\x20output\x20was\x20truncated\x20at\x20'+_0x196991+_0x4cd00b(-_0x40298d._0x5858bf,_0x40298d._0xc511fc,-_0x40298d._0x4f1a47,_0x40298d._0x50cc21)+_0x414c72+_0x4cd00b(_0x40298d._0x1361bd,-0xec,-0x31,_0x40298d._0x5cd046)),'meta':{..._0x53a837[_0x4fe2f4(0x4c4,0x509,0x477,0x498)],'truncated':!![],'originalBytes':_0x414c72,'transforms':[..._0x53a837['meta'][_0x4cd00b(-0xb8,-_0x40298d._0x2ee57c,-_0x40298d._0x393be3,_0x40298d._0x55c334)],'tool-output-offload']}};}const _0x3dc0b7=_0x53a837['toolName']+'_'+sanitizeFileName(_0x53a837[_0x4cd00b(-0x69,0xc6,_0x40298d._0x2e25f7,-_0x40298d._0x5718a2)])+_0x4cd00b(_0x40298d._0x9047f8,_0x40298d._0x53d293,_0x40298d._0x496dac,-_0x40298d._0x462f22),_0x423fda=_0x29c4f1['join'](_0x1ee6b2,_0x3dc0b7);await _0x40131b(_0x1ee6b2,{'recursive':!![]}),await _0x561199(_0x423fda,_0x53a837[_0x4fe2f4(0x2c9,_0x40298d._0x446de7,0x349,_0x40298d._0x449079)],'utf8');function _0x4fe2f4(_0xc1e56a,_0x24f53d,_0x217a41,_0x557e79){return _0x4aa629(_0xc1e56a-0x178,_0xc1e56a,_0x217a41-_0x396e94._0x593eba,_0x557e79-_0x396e94._0x193f79);}let _0x1296ce=_0x53a837[_0x4cd00b(-_0x40298d._0xf05baf,-0xd1,-0xd1,-0x17e)][_0x4fe2f4(0x433,0x4d0,0x468,0x396)](0x0,_0x196991);const _0x147e62=_0x1296ce['lastIndexOf']('\x0a');_0x147e62>_0x196991*0.5&&(_0x1296ce=_0x1296ce['slice'](0x0,_0x147e62));const _0x59a533=['',_0x4fe2f4(_0x40298d._0x3ef777,0x26f,0x3ac,0x34a),_0x4fe2f4(_0x40298d._0x288bb2,0x4b9,0x4a2,0x485)+_0x196991+_0x4fe2f4(_0x40298d._0x271faa,0x410,_0x40298d._0x2bd38d,_0x40298d._0x4dfa09)+_0x414c72+_0x4fe2f4(0x6d9,_0x40298d._0x309f22,0x4ca,0x598),'Full\x20output\x20saved\x20to:\x20'+_0x423fda,_0x4cd00b(-0x18a,-_0x40298d._0x3b964f,-_0x40298d._0x2b7b8b,-_0x40298d._0x4ccb71),_0x4cd00b(-_0x40298d._0x48ebfa,-_0x40298d._0x2879ce,-0x257,-_0x40298d._0x362ecf)][_0x4cd00b(-0x9b,-_0x40298d._0x3178ba,-_0x40298d._0x3b7f41,-_0x40298d._0xcff547)]('\x0a');return{..._0x53a837,'output':_0x1296ce+_0x59a533,'meta':{..._0x53a837[_0x4cd00b(-_0x40298d._0x1adfc9,_0x40298d._0x4a52e2,_0x40298d._0x55b447,-0x10e)],'truncated':!![],'originalBytes':_0x414c72,'transforms':[..._0x53a837[_0x4fe2f4(_0x40298d._0x1d5fdc,0x423,0x564,0x498)][_0x4cd00b(-0xb8,0x59,-0xdb,_0x40298d._0x270ad9)],_0x4cd00b(_0x40298d._0x1fbe7f,-0xf5,-0x6e,0x4b)]}};}import{readFile as _0x440696,stat as _0x5335a9}from'fs/promises';import*as _0x27feaf from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x2f0acf(0x423,0x4f5,0x430,0x40a),'high',_0x4aa629(0x113,-0x51,0x8b,0x2f),_0x4aa629(0xe0,0x115,-0x2c,0xed)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x5ab75d,_0xc399e9){const _0x7967d9={_0x53d0d6:0x358,_0x2d893b:0x41c,_0x528f11:0x7c,_0x16bcce:0x15,_0x4e102c:0x22,_0x591cd2:0x3f,_0x46e4ad:0x14d,_0x3fc2bb:0x30b,_0x2c9356:0x3ea,_0x1cc3d0:0x469,_0x3f9dc1:0x398,_0x1115e6:0x34f,_0x5d3eef:0x27a,_0x43580b:0x26f,_0x5a02d4:0x2f4,_0x16bc14:0x384,_0x4d7d5b:0x288,_0x4c0c47:0x1db,_0x1ffac5:0x2fb,_0x51241c:0x3ce,_0xe01593:0x466,_0xd76337:0x58a,_0x58f771:0x287,_0x404b82:0x36b,_0x395144:0x367,_0x380b28:0x1db,_0xdf6800:0x295,_0x3b9dba:0x1d3,_0x1754cc:0x1de,_0x533cf1:0x246,_0x1fd1d0:0x16a,_0x366471:0x82,_0x1aacdc:0x174,_0x2f431d:0x1,_0x47e611:0xc5,_0x1b2887:0x355,_0x44b315:0x1a,_0x5b294f:0xf1,_0x34bbeb:0x90,_0x3ffcd7:0xb3,_0x1933d3:0x2c3,_0x1f9497:0x154,_0x2ed1b5:0x1e9,_0x9fa9d8:0x63,_0xf01795:0x251,_0x1476d3:0x3b6,_0x5adab5:0x373,_0x120e4f:0x3e5,_0x48724b:0x13e,_0x26c8fc:0x9,_0x510d27:0x24e,_0x56c5fe:0x10d,_0x1d9148:0x28,_0x1f38b1:0x150,_0x4b00c1:0x35,_0x2e72d5:0xc7,_0x2c5e81:0x0,_0x1fe6e8:0x77},_0x39f7cf={_0x27c950:0x7f,_0x467b1e:0x22};function _0x376bdd(_0x5ca75a,_0x7609c8,_0x1e4603,_0x4b1744){return _0x2f0acf(_0x1e4603-_0x39f7cf._0x27c950,_0x7609c8-0xe9,_0x7609c8,_0x4b1744-_0x39f7cf._0x467b1e);}if(_0x5ab75d[_0x376bdd(0x38b,_0x7967d9._0x53d0d6,0x469,_0x7967d9._0x2d893b)](0x0,0x8)[_0x24514a(-0x17,-_0x7967d9._0x528f11,-_0x7967d9._0x16bcce,-0x24)](PNG_SIGNATURE))return _0x24514a(-_0x7967d9._0x4e102c,-_0x7967d9._0x591cd2,-0x10f,-_0x7967d9._0x46e4ad);if(_0x5ab75d[0x0]===0xff&&_0x5ab75d[0x1]===0xd8&&_0x5ab75d[0x2]===0xff)return _0x376bdd(0x173,0x38a,0x2b2,_0x7967d9._0x3fc2bb);const _0x677a=_0x5ab75d[_0x376bdd(0x53e,_0x7967d9._0x2c9356,_0x7967d9._0x1cc3d0,0x492)](0x0,0x6)[_0x376bdd(0x410,_0x7967d9._0x3f9dc1,0x4d4,0x540)](_0x376bdd(0x303,_0x7967d9._0x1115e6,0x3b1,_0x7967d9._0x5d3eef));if(_0x677a===_0x376bdd(_0x7967d9._0x43580b,_0x7967d9._0x5a02d4,_0x7967d9._0x16bc14,_0x7967d9._0x4d7d5b)||_0x677a==='GIF89a')return'image/gif';function _0x24514a(_0x2bc9c1,_0x64d523,_0x566774,_0x1e1810){return _0x4aa629(_0x2bc9c1-0xc6,_0x1e1810,_0x566774-0x32,_0x2bc9c1-0x12e);}if(_0x5ab75d[_0x24514a(_0x7967d9._0x4c0c47,0x153,0x23e,_0x7967d9._0x1ffac5)](0x0,0x4)[_0x376bdd(_0x7967d9._0x51241c,_0x7967d9._0xe01593,0x4d4,_0x7967d9._0xd76337)](_0x376bdd(_0x7967d9._0x58f771,_0x7967d9._0x404b82,0x3b1,0x4d7))===_0x376bdd(_0x7967d9._0x395144,0x4fe,0x496,0x531)&&_0x5ab75d[_0x24514a(_0x7967d9._0x380b28,_0x7967d9._0xdf6800,_0x7967d9._0x3b9dba,_0x7967d9._0x1754cc)](0x8,0xc)[_0x24514a(_0x7967d9._0x533cf1,0x1ad,_0x7967d9._0x1fd1d0,0x235)]('ascii')===_0x24514a(_0x7967d9._0x366471,_0x7967d9._0x1aacdc,-_0x7967d9._0x2f431d,_0x7967d9._0x47e611))return _0x376bdd(0x367,0x2be,_0x7967d9._0x1b2887,0x20f);const _0x1f2625=_0x27feaf['extname'](_0xc399e9)[_0x24514a(-_0x7967d9._0x44b315,-0x110,-0x15d,_0x7967d9._0x5b294f)]();if(_0x1f2625===_0x24514a(-0xa,-0xa5,_0x7967d9._0x34bbeb,-_0x7967d9._0x3ffcd7))return _0x376bdd(_0x7967d9._0x1933d3,_0x7967d9._0x1f9497,0x26c,_0x7967d9._0x2ed1b5);if(_0x1f2625===_0x24514a(0x5b,0x1a,-0x2a,_0x7967d9._0x9fa9d8)||_0x1f2625===_0x376bdd(0x144,0x31f,0x287,_0x7967d9._0xf01795))return _0x376bdd(_0x7967d9._0x1476d3,_0x7967d9._0x5adab5,0x2b2,_0x7967d9._0x120e4f);if(_0x1f2625===_0x24514a(_0x7967d9._0x48724b,-_0x7967d9._0x26c8fc,_0x7967d9._0x510d27,_0x7967d9._0x56c5fe))return _0x24514a(-_0x7967d9._0x1d9148,-_0x7967d9._0x1f38b1,-_0x7967d9._0x4b00c1,_0x7967d9._0x528f11);if(_0x1f2625==='.webp')return _0x24514a(_0x7967d9._0x2e72d5,_0x7967d9._0x2c5e81,0x37,_0x7967d9._0x1fe6e8);return void 0x0;}function normalizeDetail(_0x354df5){const _0x5eec46={_0x5cdad5:0x176,_0x299c4b:0xd3,_0x450a87:0x9d,_0xddc2be:0x5a,_0x103084:0x6c,_0x44c82b:0x1c,_0x2935f7:0x54,_0xefb9a9:0xa6,_0x4f43bc:0xb0,_0x40336c:0x10f},_0x3dcf0e={_0x5c50f7:0x17c,_0x58e69f:0x44a},_0x3cb1f8={_0x5338f8:0x148,_0x21f6cb:0x2e};if(_0x354df5===void 0x0)return void 0x0;const _0x5bc4ce=_0x354df5[_0x57792a(-_0x5eec46._0x5cdad5,-_0x5eec46._0x299c4b,-_0x5eec46._0x450a87,-_0x5eec46._0xddc2be)]()[_0x57792a(_0x5eec46._0x103084,_0x5eec46._0x44c82b,-0xdd,-_0x5eec46._0x2935f7)]();function _0x57792a(_0x5d23a1,_0x15f14e,_0x313ba9,_0x390a7a){return _0x4aa629(_0x5d23a1-_0x3cb1f8._0x5338f8,_0x313ba9,_0x313ba9-_0x3cb1f8._0x21f6cb,_0x390a7a-0xf4);}if(!SUPPORTED_DETAILS[_0x57792a(-0x3e,_0x5eec46._0xefb9a9,-_0x5eec46._0x4f43bc,0x2b)](_0x5bc4ce))throw new ToolExecutionError(_0x57792a(0xff,_0x5eec46._0x40336c,0x18,0x14b)+_0x354df5,{'detail':_0x354df5});function _0x3992d4(_0x2755e4,_0x468f19,_0x3860e6,_0x4a8d66){return _0x4aa629(_0x2755e4-_0x3dcf0e._0x5c50f7,_0x468f19,_0x3860e6-0x192,_0x4a8d66-_0x3dcf0e._0x58e69f);}return _0x5bc4ce;}function createViewFileTool(_0x5366ff={}){const _0x45e29f={_0x2ba0a7:0x4d9,_0x29b645:0x56e,_0xeb1f45:0x2b5,_0x40a00f:0x2e2,_0x1929f7:0x4fb,_0x422990:0x64a,_0x550e36:0x504,_0x36b08e:0x586,_0xfbec44:0x61e,_0x57e3ac:0x4b8,_0x3ac432:0x542,_0x56bb09:0x5ed,_0xc05012:0x2dc,_0x573436:0x225},_0x3babf2={_0x17c6a5:0x4ba,_0x9da4c2:0x49e,_0x670cd3:0x3e6,_0x2c7ad1:0x40a,_0x329c34:0x5be,_0x1dc7fd:0x5b3,_0x31255b:0x5bb,_0x1ffb84:0x340,_0x38e80e:0x3d1,_0x5506c4:0x44,_0x5b7b62:0x1d2,_0x16e85b:0x570,_0x1a0949:0x5de,_0x533537:0x5cc,_0xcedc6a:0xdb,_0x4acf1e:0x30,_0x28be6d:0x10c,_0x16b69c:0x1c6,_0x3e9410:0x24c,_0x132831:0xb3,_0x2aa120:0xc4,_0x4d0a5b:0x20d,_0x239f68:0x152,_0x453754:0x52,_0x9d2e98:0x129,_0x254c7e:0x57d,_0x1d43c5:0x466,_0x476c61:0x47c,_0x15f225:0x3e6,_0x353761:0x330,_0x467968:0x171,_0x4cf877:0x61,_0x4370ed:0x9f,_0x54d2ac:0x9c,_0x2e7dae:0x207,_0x1585c8:0x184,_0x43aa2c:0x122,_0x373403:0x4b4,_0x23e622:0x45b,_0x2e7ad3:0x499,_0x4a345f:0x499,_0x2bf401:0x4c1,_0x24f605:0x515,_0x4463d4:0x18f,_0x4a42c5:0x3c,_0x20f795:0x20b,_0x3d3863:0x45a,_0x3c93b8:0x4f1,_0xb4c885:0x45c,_0xd370ac:0x1c7,_0x555a94:0x84,_0x2ee7cc:0x39f,_0xad7002:0x314,_0x4cfb0b:0x353,_0x19b0c2:0x41d,_0x1275bc:0x41e,_0x22ebab:0x45f,_0x4cc829:0x303},_0x4a88a7={_0x1d2dcb:0x535,_0x11b599:0x27,_0x249d63:0x5e},_0x2fe471={_0x229869:0xaf},_0x344a3d={_0x598c1d:0x4f5};function _0x4c8a65(_0x5314e6,_0x16d9c3,_0x2f27a9,_0x166a8c){return _0x4aa629(_0x5314e6-0x13d,_0x5314e6,_0x2f27a9-0xf3,_0x16d9c3-_0x344a3d._0x598c1d);}const _0x564522=_0x27feaf[_0x4c8a65(_0x45e29f._0x2ba0a7,0x428,_0x45e29f._0x29b645,0x55e)](_0x5366ff['defaultCwd']??process['cwd']()),_0x4e5e7b=(_0x5366ff[_0x30de80(0x38c,0x417,_0x45e29f._0xeb1f45,_0x45e29f._0x40a00f)]??[])[_0x4c8a65(0x3b8,0x3e6,_0x45e29f._0x1929f7,0x3c3)](_0x3afda2=>_0x27feaf[_0x30de80(0x1c1,0x28c,0x1aa,0x1cd)](_0x3afda2)),_0x2381ce=_0x5366ff[_0x4c8a65(_0x45e29f._0x422990,0x5e0,0x4c6,0x6d9)]??DEFAULT_MAX_BYTES,_0x54a6e7=_0x5366ff[_0x4c8a65(0x646,_0x45e29f._0x550e36,_0x45e29f._0x36b08e,_0x45e29f._0xfbec44)]??_0x30de80(0x14c,0x1bf,0xce,0x7e);function _0x30de80(_0x5db07a,_0x41e2a4,_0x296728,_0x20f566){return _0x2f0acf(_0x5db07a- -_0x2fe471._0x229869,_0x41e2a4-0x2e,_0x296728,_0x20f566-0xda);}return defineTool({'name':_0x54a6e7,'description':'View\x20an\x20image\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories\x20so\x20the\x20model\x20can\x20inspect\x20its\x20visual\x20content.\x20Supports\x20PNG,\x20JPEG,\x20WebP,\x20and\x20GIF\x20images.\x20Use\x20this\x20for\x20screenshots,\x20diagrams,\x20photos,\x20and\x20other\x20image\x20files;\x20use\x20FileRead\x20for\x20text\x20files.','inputSchema':{'type':_0x4c8a65(0x4b7,_0x45e29f._0x57e3ac,_0x45e29f._0x3ac432,_0x45e29f._0x56bb09),'properties':{'path':{'type':_0x30de80(_0x45e29f._0xc05012,0x3d4,_0x45e29f._0x573436,0x324)},'detail':{'type':_0x30de80(_0x45e29f._0xc05012,0x32f,0x2b6,0x27d)}},'required':[_0x4c8a65(0x46c,0x4a2,0x5ac,0x4be)]},async *'execute'(_0x1bd44a){const _0x1bd781={_0x4f6039:0x18,_0x254af7:0x1d4},_0x516090=resolveAllowedPath(_0x564522,_0x4e5e7b,_0x1bd44a[_0x56e886(0x40d,_0x3babf2._0x17c6a5,0x50c,_0x3babf2._0x9da4c2)]);await assertWorkspaceFile(_0x516090);function _0x56e886(_0x460c12,_0x5e7b85,_0x53241c,_0x47645f){return _0x4c8a65(_0x53241c,_0x5e7b85-_0x1bd781._0x4f6039,_0x53241c-_0x1bd781._0x254af7,_0x47645f-0x22);}function _0x95fa14(_0x1ad3d7,_0x344127,_0x132eeb,_0x37f482){return _0x4c8a65(_0x132eeb,_0x344127- -_0x4a88a7._0x1d2dcb,_0x132eeb-_0x4a88a7._0x11b599,_0x37f482-_0x4a88a7._0x249d63);}const _0x1e4cf1=await _0x5335a9(_0x516090);if(_0x1e4cf1[_0x56e886(0x467,_0x3babf2._0x670cd3,_0x3babf2._0x2c7ad1,0x3e8)]>_0x2381ce)throw new ToolExecutionError(_0x56e886(_0x3babf2._0x329c34,_0x3babf2._0x1dc7fd,_0x3babf2._0x31255b,0x5ad)+_0x1bd44a['path'],{'path':_0x1bd44a['path'],'maxBytes':_0x2381ce,'size':_0x1e4cf1[_0x56e886(0x36c,0x3e6,_0x3babf2._0x1ffb84,0x453)]});const _0x76269f=await _0x440696(_0x516090),_0x1e931a=detectImageMediaType(_0x76269f,_0x516090);if(!_0x1e931a)throw new ToolExecutionError(_0x56e886(_0x3babf2._0x38e80e,0x427,0x4ed,0x380)+_0x1bd44a[_0x95fa14(-0x9,-0x93,-_0x3babf2._0x5506c4,-_0x3babf2._0x5b7b62)],{'path':_0x1bd44a[_0x56e886(_0x3babf2._0x16e85b,0x4ba,_0x3babf2._0x1a0949,_0x3babf2._0x533537)],'supported':[_0x95fa14(-_0x3babf2._0xcedc6a,-_0x3babf2._0x4acf1e,_0x3babf2._0x28be6d,0x86),_0x95fa14(-0x59,-0x175,-_0x3babf2._0x16b69c,-_0x3babf2._0x3e9410),_0x56e886(0x37b,0x43a,0x55f,0x37d),'.png',_0x95fa14(-0x4b,-0x73,-_0x3babf2._0x132831,-_0x3babf2._0x2aa120)]});const _0x2fbf4f=normalizeDetail(_0x1bd44a[_0x95fa14(-_0x3babf2._0x4d0a5b,-_0x3babf2._0x239f68,-_0x3babf2._0x453754,-_0x3babf2._0x9d2e98)]),_0xfc8af0=[_0x56e886(_0x3babf2._0x254c7e,0x571,_0x3babf2._0x1d43c5,0x5a9)+_0x1bd44a[_0x56e886(0x470,0x4ba,0x548,_0x3babf2._0x476c61)],_0x95fa14(0x13c,0x57,0x193,-0xe3)+_0x1e931a,'Size:\x20'+_0x1e4cf1[_0x56e886(0x3d1,_0x3babf2._0x15f225,0x2f1,_0x3babf2._0x353761)]+_0x95fa14(_0x3babf2._0x467968,_0x3babf2._0x4cf877,-_0x3babf2._0x4370ed,-_0x3babf2._0x54d2ac)][_0x95fa14(-_0x3babf2._0x2e7dae,-0x161,-_0x3babf2._0x1585c8,-_0x3babf2._0x43aa2c)](_0x2fbf4f?[_0x56e886(0x445,_0x3babf2._0x373403,0x49f,0x501)+_0x2fbf4f]:[])[_0x56e886(_0x3babf2._0x23e622,_0x3babf2._0x2e7ad3,_0x3babf2._0x4a345f,0x39b)]('\x0a'),_0x127537=[{'type':_0x56e886(0x5e9,_0x3babf2._0x2bf401,_0x3babf2._0x24f605,0x554),'source':{'type':'base64','media_type':_0x1e931a,'data':_0x76269f[_0x95fa14(_0x3babf2._0x4463d4,0xd8,_0x3babf2._0x4a42c5,_0x3babf2._0x20f795)](_0x56e886(0x35c,_0x3babf2._0x3d3863,_0x3babf2._0x3c93b8,0x31d))}},{'type':'text','text':_0xfc8af0}];return yield createToolOutput(_0xfc8af0,{'path':_0x1bd44a[_0x56e886(0x5ad,_0x3babf2._0x17c6a5,0x59d,_0x3babf2._0xb4c885)],'resolvedPath':_0x516090,'created':_0x1e4cf1[_0x95fa14(_0x3babf2._0xd370ac,_0x3babf2._0x555a94,0xe7,0x2)][_0x56e886(0x2ef,_0x3babf2._0x2ee7cc,_0x3babf2._0xad7002,_0x3babf2._0x4cfb0b)](),'modified':_0x1e4cf1[_0x56e886(_0x3babf2._0x19b0c2,_0x3babf2._0x1275bc,0x540,0x31f)][_0x56e886(0x457,0x39f,0x4d0,_0x3babf2._0x22ebab)](),'size':_0x1e4cf1[_0x56e886(0x4b2,0x3e6,0x522,_0x3babf2._0x4cc829)],'mimeType':_0x1e931a,'encoding':_0x56e886(0x57d,_0x3babf2._0x3d3863,0x4e2,0x50a),..._0x2fbf4f?{'detail':_0x2fbf4f}:{}},_0x127537),void 0x0;}});}import _0x84dbc9 from'turndown';var USER_AGENT=_0x4aa629(-0x1ab,-0xbe,-0x43,-0xbd),DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x1a2894){const _0x5ed66c={_0x1f182a:0x44,_0x1f6dd7:0x232,_0x43af45:0x131,_0x23d005:0x11c,_0xde6255:0x13e,_0x521b80:0x38,_0x519b99:0x3f,_0x4870b4:0xeb,_0x48c1a8:0xf7,_0x41da08:0x51,_0x350609:0x108,_0x17bbb7:0x15a,_0x599d56:0x65,_0x37d991:0xed,_0x95e2e7:0x1c,_0x561514:0x10b,_0x4c080e:0x146,_0x2658d0:0x52},_0x1bb727={_0x327b1e:0x1d4},_0x3cd882={_0x19fb66:0xbb};let _0x3b9e0e;function _0x2a0975(_0x336548,_0x397516,_0x240cd5,_0x18a29e){return _0x2f0acf(_0x18a29e- -0x363,_0x397516-0x70,_0x240cd5,_0x18a29e-_0x3cd882._0x19fb66);}try{_0x3b9e0e=new URL(_0x1a2894);}catch{throw new ToolExecutionError(_0x257307(-0x167,-_0x5ed66c._0x1f182a,-_0x5ed66c._0x1f6dd7,-_0x5ed66c._0x43af45),{'url':_0x1a2894});}function _0x257307(_0x14f62c,_0x3b4731,_0x51f1ef,_0x18b2bc){return _0x4aa629(_0x14f62c-_0x1bb727._0x327b1e,_0x3b4731,_0x51f1ef-0x57,_0x18b2bc-0x30);}if(_0x3b9e0e['protocol']!==_0x2a0975(_0x5ed66c._0x23d005,0x106,_0x5ed66c._0xde6255,0x7a)&&_0x3b9e0e[_0x2a0975(-0x176,-0x107,-_0x5ed66c._0x521b80,-0x33)]!==_0x257307(-_0x5ed66c._0x519b99,-_0x5ed66c._0x4870b4,-_0x5ed66c._0x48c1a8,-_0x5ed66c._0x41da08))throw new ToolExecutionError(_0x2a0975(-_0x5ed66c._0x350609,-_0x5ed66c._0x17bbb7,0xe1,-_0x5ed66c._0x599d56),{'url':_0x1a2894});if(_0x3b9e0e['username']||_0x3b9e0e[_0x257307(0x16,-0x22f,-0x7a,-_0x5ed66c._0x37d991)])throw new ToolExecutionError(_0x257307(-_0x5ed66c._0x95e2e7,-0x234,-0xb4,-_0x5ed66c._0x561514),{'url':_0x3b9e0e[_0x2a0975(0xe6,-_0x5ed66c._0x4c080e,_0x5ed66c._0x2658d0,-0x33)]+'//'+_0x3b9e0e['host']+_0x3b9e0e['pathname']});return _0x3b9e0e;}function createTimeoutSignal(_0x346f09,_0x4b084a){const _0x1361b8={_0xec2e35:0x129,_0x589b4d:0x125,_0x3932d4:0xb8,_0x2ee058:0x234,_0x6475da:0x261,_0x3ceb53:0x74,_0x34290f:0x43,_0x460087:0x130,_0x29d57a:0x6e,_0x1f6362:0x180},_0x16be75={_0x158695:0x576,_0x581165:0x6af,_0x37fe3c:0x534},_0x5b4045={_0x3b3ef5:0x4d7,_0xb4001c:0xc2},_0x2718c9={_0x2b8db2:0x15d};function _0x3157fe(_0x486eb3,_0x2b709c,_0x3ffb39,_0x1f5131){return _0x4aa629(_0x486eb3-0x17b,_0x3ffb39,_0x3ffb39-_0x2718c9._0x2b8db2,_0x486eb3-0x189);}const _0x501ba8=new AbortController(),_0x3a7c21=setTimeout(()=>_0x501ba8[_0x34afa4(0x14,0x80,0xb7,-0x76)](new Error(_0x3157fe(0x2e,0x14c,0x14a,-0x89))),_0x4b084a),_0x3db41f=()=>_0x501ba8[_0x3157fe(0x24a,0x177,0x24d,0x28a)](_0x346f09[_0x34afa4(-0x1ee,-0xbc,-0xfb,-0x75)]);_0x346f09[_0x3157fe(_0x1361b8._0xec2e35,0x39,_0x1361b8._0x589b4d,_0x1361b8._0x3932d4)]?_0x501ba8[_0x3157fe(0x24a,0x13d,_0x1361b8._0x2ee058,_0x1361b8._0x6475da)](_0x346f09[_0x3157fe(0x98,0x1b8,_0x1361b8._0x3ceb53,-_0x1361b8._0x34290f)]):_0x346f09[_0x3157fe(0xed,_0x1361b8._0x460087,_0x1361b8._0x29d57a,_0x1361b8._0x1f6362)]('abort',_0x3db41f,{'once':!![]});function _0x34afa4(_0x683699,_0x2e7f2c,_0x34d663,_0x42ae9c){return _0x2f0acf(_0x34d663- -0x347,_0x2e7f2c-0x100,_0x2e7f2c,_0x42ae9c-0x39);}return{'signal':_0x501ba8['signal'],'cleanup':()=>{const _0x548d2e={_0x173f9f:0x392};function _0x40a8ac(_0x12e76d,_0x39ff08,_0x360072,_0x43f2f4){return _0x34afa4(_0x12e76d-0xb,_0x39ff08,_0x43f2f4-_0x5b4045._0x3b3ef5,_0x43f2f4-_0x5b4045._0xb4001c);}clearTimeout(_0x3a7c21);function _0x2e5d2a(_0x2ceec3,_0x5333c8,_0x497806,_0x3468cf){return _0x34afa4(_0x2ceec3-0x17a,_0x5333c8,_0x497806-_0x548d2e._0x173f9f,_0x3468cf-0x174);}_0x346f09[_0x40a8ac(0x4ad,_0x16be75._0x158695,0x31c,0x436)](_0x40a8ac(_0x16be75._0x581165,_0x16be75._0x37fe3c,0x4aa,0x58e),_0x3db41f);}};}function createWebFetchTool(_0x31d894={}){const _0x22382c={_0x418cf3:0xd0,_0x3bb96b:0x2a,_0x17493e:0x30,_0x35d17b:0xb2,_0x482081:0x679,_0x135b98:0x664,_0x364d47:0x75,_0x130ff5:0xa2,_0x548a2d:0x3fe,_0x43d13:0x4ce,_0x4ec772:0x40e,_0x209369:0x5c5,_0x304ac6:0x18,_0x14d2bc:0x10f,_0x53ffed:0x1ca,_0x43ef64:0x99,_0x2c0e35:0x372,_0x4138b5:0x42d,_0xac953d:0x38b,_0x177b01:0x490,_0x1a8dc2:0x69b,_0x9d11d8:0x6a8,_0x4dcad4:0x76,_0x46da82:0x7b,_0x46231b:0x45d,_0x13ef2b:0x115,_0x3ce55a:0x5d,_0x5c3ea3:0x233,_0x2aa1d4:0x73,_0x264f68:0x2b,_0x18e474:0x28,_0x3e2d01:0x14,_0x493442:0x73,_0x24679d:0x291,_0x48d559:0x14e},_0x41159a={_0x3f399d:0xdf,_0x1d68aa:0x226,_0x474666:0x263,_0x55a5f1:0x2ea,_0x26808c:0x132,_0x1e86c7:0x37,_0x21acc1:0xa4,_0x1d4d0b:0x33,_0xa8be39:0x50,_0x22ab3c:0x15c,_0x3d061f:0x38,_0x4deb77:0x3f,_0x4fe81d:0x83,_0x2e07d8:0x94,_0x1de98c:0x9f,_0x3c4df1:0x166,_0x3aef4c:0x4b,_0x190d68:0x130,_0x279caf:0x81,_0x3642cc:0xd9,_0x7ef439:0x15,_0x187d72:0x6a,_0x142906:0xd9,_0x3d6835:0x152,_0x546343:0x27,_0x4b0205:0x4e,_0x238290:0xdc,_0xc6613:0x1d8,_0x479044:0x7b,_0x429a64:0x2e,_0x9f7a5d:0xa,_0x1b51b3:0x5a,_0x5ac50f:0x14,_0x3caf8a:0x8,_0x3444f3:0x4,_0x3d503b:0x68,_0x3a398c:0x16,_0x38c693:0x14,_0x3e082d:0x202,_0x42bc28:0x54,_0x23c71f:0x180,_0x14a2a0:0x1c6,_0x1a1099:0x13b,_0x29d611:0x197,_0x48cbd8:0x1ba,_0x10bb9f:0x11e,_0x44a43c:0x115},_0x44fdaf={_0x3e5201:0x7e},_0x3820a2={_0xa40804:0xf5},_0xb15c5a={_0x46fc93:0x1c0,_0x205875:0x5a},_0x36b099={_0xfd7acb:0x14a,_0x4967bb:0xc1},_0x3739e8=_0x31d894[_0x52549c(-_0x22382c._0x418cf3,-_0x22382c._0x3bb96b,_0x22382c._0x17493e,-_0x22382c._0x35d17b)]??_0x44c77c(_0x22382c._0x482081,0x5a7,_0x22382c._0x135b98,0x720),_0x5ed3e7=_0x31d894[_0x52549c(-0x56,-_0x22382c._0x364d47,-_0x22382c._0x130ff5,0x9)]??DEFAULT_TIMEOUT_MS2,_0x3fe08a=new _0x84dbc9({'headingStyle':_0x44c77c(_0x22382c._0x548a2d,_0x22382c._0x43d13,0x4f7,0x614),'codeBlockStyle':_0x44c77c(_0x22382c._0x4ec772,0x452,0x4f9,_0x22382c._0x209369),'bulletListMarker':'-'});function _0x52549c(_0x461d22,_0x6eeb80,_0x2dd3e4,_0x16d99e){return _0x4aa629(_0x461d22-0x10f,_0x2dd3e4,_0x2dd3e4-_0x36b099._0xfd7acb,_0x16d99e- -_0x36b099._0x4967bb);}_0x3fe08a['remove'](['script',_0x52549c(-_0x22382c._0x304ac6,0xb,-_0x22382c._0x14d2bc,-0x4d),_0x52549c(-0x47,-_0x22382c._0x53ffed,0x39,-_0x22382c._0x43ef64),_0x44c77c(0x3f9,_0x22382c._0x2c0e35,_0x22382c._0x4138b5,0x50d),'nav',_0x44c77c(_0x22382c._0xac953d,0x35e,_0x22382c._0x177b01,0x420),_0x44c77c(0x5bb,_0x22382c._0x1a8dc2,_0x22382c._0x9d11d8,0x78d),_0x52549c(-_0x22382c._0x4dcad4,0xad,-0x1bc,-_0x22382c._0x46da82)]);function _0x44c77c(_0x3ec3e5,_0x3cacbf,_0x50b5d3,_0x3a3ccd){return _0x4aa629(_0x3ec3e5-_0xb15c5a._0x46fc93,_0x3cacbf,_0x50b5d3-_0xb15c5a._0x205875,_0x50b5d3-0x58c);}return defineTool({'name':_0x3739e8,'description':_0x44c77c(0x539,0x3da,_0x22382c._0x46231b,0x585),'inputSchema':{'type':_0x52549c(-_0x22382c._0x13ef2b,-_0x22382c._0x3ce55a,-_0x22382c._0x5c3ea3,-0xfe),'properties':{'description':{'type':_0x52549c(0x22,0x84,0x19,-_0x22382c._0x2aa1d4)},'url':{'type':_0x52549c(_0x22382c._0x264f68,-_0x22382c._0x18e474,_0x22382c._0x3e2d01,-_0x22382c._0x493442)}},'required':[_0x52549c(-_0x22382c._0x24679d,-0x34,-0x79,-_0x22382c._0x48d559)]},async *'execute'(_0x1c9e44,_0x34e816){const _0x5539af=assertFetchableUrl(_0x1c9e44[_0x38630b(_0x41159a._0x3f399d,0x13a,0x6,0x123)])[_0xe77905(_0x41159a._0x1d68aa,_0x41159a._0x474666,_0x41159a._0x55a5f1,0x258)]();if(_0x34e816[_0x38630b(-_0x41159a._0x26808c,-_0x41159a._0x1e86c7,-0x64,-0x131)][_0x38630b(0x156,-_0x41159a._0x21acc1,_0x41159a._0x1d4d0b,_0x41159a._0xa8be39)])throw new ToolExecutionError(_0x38630b(-0x3f,-_0x41159a._0x22ab3c,-_0x41159a._0x3d061f,-0xbe),{'url':_0x5539af});const _0x10e235=createTimeoutSignal(_0x34e816[_0xe77905(-_0x41159a._0x4deb77,0x6c,_0x41159a._0x4fe81d,0x49)],_0x5ed3e7);function _0x38630b(_0x52b457,_0x371b3d,_0x19299d,_0x3fdedf){return _0x44c77c(_0x52b457-0x1ec,_0x371b3d,_0x19299d- -0x4f9,_0x3fdedf-_0x3820a2._0xa40804);}let _0x2277a9='',_0x5a582e=0x0,_0x424271;function _0xe77905(_0x109e4d,_0x41ff17,_0x4c5c09,_0x139512){return _0x44c77c(_0x109e4d-0xeb,_0x109e4d,_0x139512- -0x44c,_0x139512-_0x44fdaf._0x3e5201);}try{const _0xb3287c=await fetch(_0x5539af,{'headers':{'User-Agent':USER_AGENT},'signal':_0x10e235[_0x38630b(-_0x41159a._0x2e07d8,_0x41159a._0x1de98c,-0x64,-_0x41159a._0x3c4df1)]});if(!_0xb3287c['ok'])throw new ToolExecutionError('HTTP\x20'+_0xb3287c[_0x38630b(-_0x41159a._0x3aef4c,_0x41159a._0x190d68,0xaf,_0x41159a._0x279caf)]+'\x20'+_0xb3287c[_0xe77905(0x4d,-0x13,_0x41159a._0x3642cc,-_0x41159a._0x7ef439)],{'url':_0x5539af,'statusCode':_0xb3287c['status']});_0x2277a9=_0xb3287c['headers'][_0x38630b(0x69,-0x82,_0x41159a._0x187d72,0x81)](_0x38630b(-_0x41159a._0x142906,_0x41159a._0x3d6835,_0x41159a._0x546343,-_0x41159a._0x4b0205))??'',_0x5a582e=_0xb3287c[_0xe77905(0x206,0x1e8,0x172,0x15c)],_0x424271=await _0xb3287c[_0x38630b(0x116,0x32,0x2b,_0x41159a._0x238290)]();}catch(_0x5a497a){if(_0x5a497a instanceof ToolExecutionError)throw _0x5a497a;const _0x568a50=_0x5a497a instanceof Error?_0x5a497a['message']:String(_0x5a497a);throw new ToolExecutionError(_0x568a50,{'url':_0x5539af});}finally{_0x10e235[_0xe77905(_0x41159a._0xc6613,0x1c9,0x186,0xba)]();}const _0x3f02ac=new Date()[_0xe77905(-0x66,-_0x41159a._0x479044,0xd8,-_0x41159a._0x429a64)]();let _0x246ffc,_0x9dc9c0;if(_0x2277a9[_0x38630b(_0x41159a._0x9f7a5d,_0x41159a._0x1b51b3,_0x41159a._0x5ac50f,-0xcc)]('application/json'))_0x246ffc=_0xe77905(0x18e,-0xea,-_0x41159a._0x3caf8a,0x5f)+_0x424271+'\x0a```',_0x9dc9c0=_0x38630b(_0x41159a._0x479044,_0x41159a._0x3444f3,_0x41159a._0x3d503b,_0x41159a._0x3a398c);else _0x2277a9[_0x38630b(0x13c,0x7f,_0x41159a._0x38c693,-0xf0)](_0xe77905(0x1af,_0x41159a._0x3e082d,_0x41159a._0x42bc28,_0x41159a._0x23c71f))?(_0x246ffc=_0x3fe08a[_0xe77905(0x8c,0x13c,0xa1,_0x41159a._0x14a2a0)](_0x424271),_0x9dc9c0=_0xe77905(0x244,_0x41159a._0x1a1099,_0x41159a._0x29d611,_0x41159a._0x48cbd8)):(_0x246ffc=_0x424271,_0x9dc9c0=_0x38630b(-0x6e,0xda,0x2b,_0x41159a._0x10bb9f));return yield createToolOutput(_0x246ffc,{'url':_0x5539af,'contentType':_0x2277a9,'statusCode':_0x5a582e,'format':_0x9dc9c0,'size':_0x424271[_0xe77905(0xe3,_0x41159a._0x44a43c,0x25,0xc6)],'fetchedAt':_0x3f02ac}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x4aa629(0x140,0x2b,-0x8e,0x9b);function normalizeUrl(_0x3c54e0){const _0x26f41c={_0x57f5eb:0xa2,_0x539ecc:0xfe,_0x2b0394:0xd,_0x3fc70f:0xe5,_0x2d3e6c:0xe2,_0x42eb7d:0x1e3,_0x2d9ade:0x4eb,_0x199541:0x430,_0x575f8e:0x3ce,_0x11fcd4:0xa0,_0x50f464:0xd2,_0x37bddc:0x9f,_0x4f590f:0x31a,_0x2a5317:0x281,_0x3e6f0a:0x261,_0x58b3e9:0x36c,_0x35c2d1:0x357,_0x33e563:0xef,_0xe44d3a:0x73},_0x47306e={_0x20905c:0x366,_0x48d2f3:0x16d},_0x509209={_0x4e3c47:0x153};function _0x3d19ca(_0x1414e3,_0x3bc96d,_0x2b6d07,_0x3c8880){return _0x2f0acf(_0x3bc96d-0x5f,_0x3bc96d-0x196,_0x1414e3,_0x3c8880-_0x509209._0x4e3c47);}function _0xb43c67(_0x325255,_0x4942cd,_0x3c9da1,_0x4c955c){return _0x2f0acf(_0x325255- -_0x47306e._0x20905c,_0x4942cd-_0x47306e._0x48d2f3,_0x4942cd,_0x4c955c-0xe0);}try{const _0x34a9ff=new URL(_0x3c54e0);for(const _0x4c980d of[_0xb43c67(0x81,_0x26f41c._0x57f5eb,0xce,0x10b),_0xb43c67(-0x14,_0x26f41c._0x539ecc,-_0x26f41c._0x2b0394,-_0x26f41c._0x3fc70f),_0xb43c67(-_0x26f41c._0x2d3e6c,-0xd6,-0x1e8,-_0x26f41c._0x42eb7d),_0x3d19ca(_0x26f41c._0x2d9ade,_0x26f41c._0x199541,0x325,_0x26f41c._0x575f8e),_0xb43c67(0x64,0xeb,0xdf,-_0x26f41c._0x11fcd4),_0xb43c67(_0x26f41c._0x50f464,_0x26f41c._0x37bddc,0xe2,0x166),_0x3d19ca(_0x26f41c._0x4f590f,_0x26f41c._0x2a5317,_0x26f41c._0x3e6f0a,0x151),'mc_cid',_0x3d19ca(_0x26f41c._0x58b3e9,0x38a,0x331,_0x26f41c._0x35c2d1)]){_0x34a9ff['searchParams']['delete'](_0x4c980d);}return _0x34a9ff[_0xb43c67(_0x26f41c._0x33e563,0x1ad,_0x26f41c._0xe44d3a,0xb8)]();}catch{return _0x3c54e0;}}function cseDateRestrict(_0x1a2eb6){const _0x2f9545={_0x585513:0x291,_0xa07045:0x194,_0xc76601:0x1ad,_0x20934c:0xa3,_0xb48e0c:0x98,_0x39af79:0x48,_0x4fbb1:0x17f,_0x5940a8:0xf4,_0x31fa05:0x134},_0x4af2ff={_0x49937b:0x485,_0x16cd51:0x5d},_0x5bf860={_0x2c483e:0x388,_0x37596f:0x15e,_0x572fd9:0x1c5};if(_0x1a2eb6<=0x0)return void 0x0;function _0x3e7d4b(_0x2d96d1,_0x2d9f48,_0x33218e,_0x3ff712){return _0x2f0acf(_0x2d9f48- -_0x5bf860._0x2c483e,_0x2d9f48-_0x5bf860._0x37596f,_0x33218e,_0x3ff712-_0x5bf860._0x572fd9);}if(_0x1a2eb6<=0x1e)return'd'+Math[_0x19123e(-0x145,-_0x2f9545._0x585513,-_0x2f9545._0xa07045,-_0x2f9545._0xc76601)](0x1,Math[_0x3e7d4b(_0x2f9545._0x20934c,_0x2f9545._0xb48e0c,_0x2f9545._0x39af79,0x2a)](_0x1a2eb6));if(_0x1a2eb6<=0x16d)return'm'+Math[_0x3e7d4b(0xac,-0x37,-_0x2f9545._0x4fbb1,_0x2f9545._0x5940a8)](_0x1a2eb6/0x1e);function _0x19123e(_0x5bc7de,_0x103528,_0x5935f4,_0x2b4000){return _0x2f0acf(_0x2b4000- -_0x4af2ff._0x49937b,_0x103528-0x19b,_0x103528,_0x2b4000-_0x4af2ff._0x16cd51);}return'y'+Math[_0x19123e(-0x22c,-0x175,-0x156,-_0x2f9545._0x31fa05)](_0x1a2eb6/0x16d);}function addSiteFilters(_0x37a446,_0xc1f2ac){const _0x3602f0={_0x55cd38:0x154,_0x222749:0x1db,_0x242a06:0x26b,_0x28603c:0x133,_0x437a4e:0x270,_0x2d539a:0x239,_0x5355c6:0xd0,_0xe7317f:0x1d5,_0x5a1249:0x1fc,_0x57324d:0x291,_0x36132b:0x1f5,_0x39e996:0x106,_0x4e9057:0x1d6},_0x9f2521={_0x37dfd2:0x128,_0x33dd7d:0x71};if(_0xc1f2ac[_0x1b8de3(-_0x3602f0._0x55cd38,-0x1e1,-0x2ef,-_0x3602f0._0x222749)]===0x0)return _0x37a446['trim']();function _0x4e3295(_0x4222b0,_0x31442d,_0x3dfbfc,_0x22f513){return _0x4aa629(_0x4222b0-0x29,_0x22f513,_0x3dfbfc-0x122,_0x4222b0-0x343);}function _0x1b8de3(_0x262c44,_0x2b31e1,_0x14ca3a,_0x5db9eb){return _0x2f0acf(_0x5db9eb- -0x49e,_0x2b31e1-_0x9f2521._0x37dfd2,_0x14ca3a,_0x5db9eb-_0x9f2521._0x33dd7d);}return(_0x37a446+'\x20('+_0xc1f2ac[_0x1b8de3(-_0x3602f0._0x242a06,-_0x3602f0._0x28603c,-0x239,-_0x3602f0._0x437a4e)](_0x20c2bc=>'site:'+_0x20c2bc)[_0x1b8de3(-0xad,-_0x3602f0._0x2d539a,-_0x3602f0._0x5355c6,-_0x3602f0._0xe7317f)](_0x4e3295(_0x3602f0._0x5a1249,_0x3602f0._0x57324d,0x1da,0x112))+')')[_0x4e3295(_0x3602f0._0x36132b,_0x3602f0._0x39e996,_0x3602f0._0x4e9057,0x1be)]();}function normalizeType(_0x41be0c){const _0x2d6cfe={_0x3a47eb:0x212,_0x556114:0x344,_0x4b09d7:0x14d,_0x5456af:0x135},_0x5b058c={_0x8684d5:0x318,_0x4d24e9:0x189,_0x3882c6:0x11},_0x8dd0fc={_0x21d1bf:0x39,_0x25a451:0x14c};function _0x31ab07(_0x2c64dc,_0x500b6b,_0x21992a,_0x5dba18){return _0x4aa629(_0x2c64dc-0x186,_0x21992a,_0x21992a-_0x8dd0fc._0x21d1bf,_0x2c64dc-_0x8dd0fc._0x25a451);}function _0x1d7c27(_0x1d545c,_0xd989b0,_0x55abea,_0x556e4b){return _0x2f0acf(_0x1d545c- -_0x5b058c._0x8684d5,_0xd989b0-_0x5b058c._0x4d24e9,_0xd989b0,_0x556e4b-_0x5b058c._0x3882c6);}return _0x41be0c==='images'?_0x31ab07(_0x2d6cfe._0x3a47eb,_0x2d6cfe._0x556114,_0x2d6cfe._0x4b09d7,0x215):_0x1d7c27(-0x79,-_0x2d6cfe._0x5456af,-0x10e,-0x122);}async function fetchJson(_0x442f05,_0x20c75b){const _0x7fff4a={_0x2eab7c:0x73b,_0x4bf6fc:0x623,_0x14cda9:0x6a5,_0x3e2411:0x659,_0x3b9b92:0x2c2,_0x1f6b3a:0x627,_0x3a644d:0x6a7,_0x3a1c4c:0x520},_0x2a3a92={_0x4450ee:0xe9},_0x4fe78e=await fetch(_0x442f05,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x4c7621(0x629,0x520,0x594,0x59b)},'signal':_0x20c75b});function _0x4c7621(_0x4b693f,_0x1a36f2,_0x412f67,_0x239381){return _0x2f0acf(_0x4b693f-0x2ce,_0x1a36f2-_0x2a3a92._0x4450ee,_0x412f67,_0x239381-0x1c8);}if(!_0x4fe78e['ok']){await _0x4fe78e[_0x4c7621(0x669,_0x7fff4a._0x2eab7c,_0x7fff4a._0x4bf6fc,0x787)]?.[_0x4c7621(0x58d,_0x7fff4a._0x14cda9,0x53d,0x4d8)]()[_0x4c7621(0x66d,0x549,0x75c,_0x7fff4a._0x3e2411)](()=>void 0x0);throw new ToolExecutionError('HTTP\x20'+_0x4fe78e['status']+'\x20'+_0x4fe78e[_0x20af44(-_0x7fff4a._0x3b9b92,-0x2d4,-0x3c9,-0x28e)],{'statusCode':_0x4fe78e[_0x4c7621(_0x7fff4a._0x1f6b3a,_0x7fff4a._0x3a644d,_0x7fff4a._0x3a1c4c,0x6b1)]});}function _0x20af44(_0x20fd00,_0x550f47,_0x381bf9,_0x2efb7c){return _0x2f0acf(_0x2efb7c- -0x476,_0x550f47-0x20,_0x20fd00,_0x2efb7c-0x67);}return await _0x4fe78e['json']();}async function hydrateResults(_0x8e4390,_0x46414d,_0x111962){const _0x4de188={_0x5e7346:0x308,_0x9c1a47:0x2bf,_0x3760b9:0x321,_0x5def9b:0x309,_0x32332f:0x148,_0x3e3caf:0x204,_0x700d1d:0x189,_0xf60c1e:0x26f,_0x944a06:0x299,_0x3214f3:0x198,_0x1b42ae:0x183,_0x2fcf51:0x293,_0x1fba33:0x3df,_0x34b719:0x2fa},_0x38df97={_0x172cdd:0x1ab,_0x494ba9:0x15e,_0x43b30c:0x128,_0x2ee095:0x24a,_0xd77a08:0x34a,_0x2466a1:0x3d6,_0x3c8772:0x35a,_0x33e861:0x311,_0x4e0d10:0x1e5,_0x1f1bc6:0x2f9,_0x158aa2:0x1c8,_0x4f7af2:0x362,_0x162f75:0x38e,_0x5134d7:0x307,_0x2b98ae:0x37e,_0x2625e2:0x2fd,_0x49b176:0x2da,_0xedafac:0x202,_0x1aaf2e:0x365,_0x2fe23d:0x23b,_0x3cd63:0x2eb,_0x453259:0x39f,_0x580812:0x2f0,_0x6e63f8:0x31f,_0xeb7746:0x42e,_0x4618d6:0x3a6,_0x28d31b:0x349,_0x1fba19:0x346,_0x7f934d:0x422,_0x5e0e17:0x390,_0x437f40:0x1bd,_0x16b9af:0x2f3,_0x3357ab:0x433,_0x52be35:0x35b,_0x3b43f4:0x241,_0x79f2ca:0x2e7,_0x5c669b:0x339,_0x599c61:0x2fc,_0x269f63:0x25e},_0x340217={_0x305aab:0x3bc,_0xee5f8c:0xcd},_0x433064={_0x78cfe1:0x17a,_0xc666eb:0x16d},_0xcde6c4={_0x4f2d9c:0x4d,_0x23cf48:0x3};function _0x570d43(_0x318508,_0xc443e5,_0x816c09,_0x1befb6){return _0x2f0acf(_0x816c09- -0x3c6,_0xc443e5-_0xcde6c4._0x4f2d9c,_0xc443e5,_0x1befb6-_0xcde6c4._0x23cf48);}const _0xb3a706=await Promise[_0x13a147(0x1e2,0x38c,0x2d8,_0x4de188._0x5e7346)](_0x8e4390[_0x13a147(_0x4de188._0x9c1a47,0x420,_0x4de188._0x3760b9,_0x4de188._0x5def9b)](0x0,0xa)['map'](async _0x444676=>{function _0x10cd38(_0xef4ea3,_0x4080de,_0x374b8c,_0x4863ef){return _0x570d43(_0xef4ea3-_0x433064._0x78cfe1,_0x374b8c,_0x4863ef-0x374,_0x4863ef-_0x433064._0xc666eb);}function _0x1d9867(_0x3f64f,_0x4ffac4,_0xb48d0b,_0x2fb5b1){return _0x570d43(_0x3f64f-0x1d1,_0x2fb5b1,_0xb48d0b-_0x340217._0x305aab,_0x2fb5b1-_0x340217._0xee5f8c);}try{const _0x1b7f63=await fetch(_0x444676['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x46414d,'Accept':'text/html'},'signal':_0x111962});if(!_0x1b7f63['ok'])return _0x444676;const _0x139c3a=await _0x1b7f63[_0x1d9867(_0x38df97._0x172cdd,0x223,0x2cb,0x214)](),_0x446291=load(_0x139c3a),_0x2d7e35=_0x446291('meta[property=\x27og:title\x27]')[_0x1d9867(_0x38df97._0x494ba9,_0x38df97._0x43b30c,_0x38df97._0x2ee095,0x2f4)](_0x1d9867(0x3a2,_0x38df97._0xd77a08,_0x38df97._0x2466a1,_0x38df97._0x3c8772))||_0x446291('title')['first']()[_0x10cd38(0x36c,_0x38df97._0x33e861,0x23d,0x283)]()[_0x1d9867(0x25d,0x192,_0x38df97._0x4e0d10,_0x38df97._0x1f1bc6)](),_0x491fbc=_0x446291('meta[name=\x27description\x27]')[_0x1d9867(_0x38df97._0x158aa2,0x300,_0x38df97._0x2ee095,_0x38df97._0x4f7af2)](_0x10cd38(0x340,0x485,0x274,_0x38df97._0x162f75))||_0x446291('meta[property=\x27og:description\x27]')['attr'](_0x1d9867(0x4f5,0x2ce,0x3d6,0x380))||_0x444676['snippet'],_0x2a298f=_0x446291(_0x10cd38(0x282,_0x38df97._0x5134d7,0x3ff,_0x38df97._0x2b98ae))[_0x10cd38(_0x38df97._0x2625e2,_0x38df97._0x49b176,0x143,_0x38df97._0xedafac)](_0x1d9867(_0x38df97._0x1aaf2e,0x4fa,0x3d6,0x32e))||_0x446291(_0x10cd38(_0x38df97._0x2fe23d,_0x38df97._0x3cd63,_0x38df97._0x453259,_0x38df97._0x580812))[_0x10cd38(0x22e,0x33c,_0x38df97._0x6e63f8,_0x38df97._0xedafac)](_0x1d9867(_0x38df97._0xeb7746,0x495,0x375,_0x38df97._0x4618d6))||_0x444676[_0x10cd38(_0x38df97._0x28d31b,0x406,0x247,0x35d)],_0x550043=_0x446291(_0x1d9867(_0x38df97._0x1fba19,0x477,_0x38df97._0x7f934d,_0x38df97._0x5e0e17))[_0x10cd38(_0x38df97._0x437f40,_0x38df97._0x16b9af,0x143,0x202)]('href');return{..._0x444676,'title':_0x2d7e35||_0x444676[_0x10cd38(0x35d,_0x38df97._0x3357ab,0x22f,_0x38df97._0x52be35)],'snippet':_0x491fbc,'url':_0x550043?normalizeUrl(new URL(_0x550043,_0x444676[_0x1d9867(0x272,_0x38df97._0x3b43f4,0x2a6,0x2e6)])[_0x10cd38(_0x38df97._0x79f2ca,_0x38df97._0x5c669b,0x432,0x403)]()):_0x444676[_0x10cd38(_0x38df97._0x599c61,0x32b,0x127,_0x38df97._0x269f63)],'publishedAt':_0x2a298f};}catch{return _0x444676;}}));function _0x13a147(_0x58fe86,_0x5c9ea9,_0x359ca6,_0x5b5728){return _0x2f0acf(_0x5b5728-0xcc,_0x5c9ea9-0x141,_0x5c9ea9,_0x5b5728-0x107);}const _0x2a2643=new Map(_0x8e4390[_0x570d43(-_0x4de188._0x32332f,-_0x4de188._0x3e3caf,-_0x4de188._0x700d1d,-_0x4de188._0xf60c1e)](0x0,0xa)[_0x570d43(-0x1a7,-_0x4de188._0x944a06,-_0x4de188._0x3214f3,-_0x4de188._0x1b42ae)]((_0x210e00,_0x2de016)=>[_0x210e00[_0x570d43(-0x5,-0x137,-0x116,-0x30)],_0xb3a706[_0x2de016]]));return _0x8e4390[_0x13a147(_0x4de188._0x2fcf51,_0x4de188._0x1fba33,0x1f6,_0x4de188._0x34b719)](_0x4c1d5f=>_0x2a2643[_0x570d43(-0x10c,-0x1db,-0xb2,-0xf9)](_0x4c1d5f[_0x570d43(-0x138,-0x37,-0x116,-0x187)])??_0x4c1d5f);}function formatResults(_0x1749ee){const _0x17e53f={_0x252a29:0x3fd,_0x42abc2:0x395,_0x18e5a6:0x2d5,_0x142603:0x439,_0x294e3e:0x3be,_0x4cbb37:0x49f},_0x3b818b={_0x54ee6d:0x42c,_0x3bb832:0x3d8,_0x3072be:0x41e,_0x17424d:0x512,_0x5cb2c1:0x401,_0x3268a3:0x2f1,_0x599872:0xb,_0x4fd25e:0x3cb,_0x342a6a:0x177,_0x41fbf4:0x3b6,_0x12aed9:0x3f0,_0x5d58fa:0x30d,_0x3b600f:0x30a,_0x37e318:0x255},_0x351ff9={_0x861e23:0x14e,_0x139f86:0x21f},_0x52598f={_0x4f2541:0x40,_0x4bcafb:0xea},_0x59f66b={_0x50af25:0x260,_0x22b903:0x11};if(_0x1749ee['length']===0x0)return _0x60ce8f(0x4a8,_0x17e53f._0x252a29,_0x17e53f._0x42abc2,_0x17e53f._0x18e5a6);function _0x567bd2(_0xed1201,_0x1874d4,_0x4a8fc1,_0x992d65){return _0x2f0acf(_0x1874d4-_0x59f66b._0x50af25,_0x1874d4-_0x59f66b._0x22b903,_0x4a8fc1,_0x992d65-0x87);}function _0x60ce8f(_0x2011c8,_0x166bac,_0x373b75,_0xaeb80f){return _0x2f0acf(_0x373b75- -_0x52598f._0x4f2541,_0x166bac-0xd0,_0xaeb80f,_0xaeb80f-_0x52598f._0x4bcafb);}return _0x1749ee[_0x567bd2(_0x17e53f._0x142603,0x48e,_0x17e53f._0x294e3e,_0x17e53f._0x4cbb37)](_0x3e3a24=>{const _0x28d57c=[_0x3e3a24[_0x218e28(_0x3b818b._0x54ee6d,0x499,0x3ac,0x317)][_0x218e28(0x4ec,0x3ad,0x3b2,0x429)]+'.\x20'+_0x3e3a24[_0x218e28(_0x3b818b._0x3bb832,_0x3b818b._0x3072be,0x3ee,_0x3b818b._0x17424d)],_0x3e3a24[_0x218e28(_0x3b818b._0x5cb2c1,0x3f5,_0x3b818b._0x3268a3,0x280)]];if(_0x3e3a24[_0x3264a4(0x11,-0x103,-0x84,_0x3b818b._0x599872)])_0x28d57c['push'](_0x3e3a24[_0x218e28(0x53f,0x32b,0x414,_0x3b818b._0x4fd25e)]);function _0x218e28(_0x6605e8,_0x5026a8,_0x26809c,_0x519320){return _0x567bd2(_0x6605e8-_0x351ff9._0x861e23,_0x26809c- -_0x351ff9._0x139f86,_0x519320,_0x519320-0x183);}function _0x3264a4(_0x3b6157,_0x18c960,_0x21c29c,_0x3ac6e4){return _0x567bd2(_0x3b6157-0x19e,_0x21c29c- -0x6b7,_0x18c960,_0x3ac6e4-0x19c);}if(_0x3e3a24['publishedAt'])_0x28d57c[_0x3264a4(-0x162,-_0x3b818b._0x342a6a,-0x1e9,-0x309)]('Published:\x20'+_0x3e3a24[_0x218e28(_0x3b818b._0x41fbf4,0x3cb,_0x3b818b._0x12aed9,0x41d)]);return _0x28d57c[_0x218e28(_0x3b818b._0x5d58fa,0x2b1,_0x3b818b._0x3b600f,_0x3b818b._0x37e318)]('\x0a');})['join']('\x0a\x0a');}async function searchGoogleCse(_0x4ee0a0,_0x27ffd8,_0xc88436){const _0x3abe6a={_0x2a2b5f:0x498,_0xdb16d4:0x397,_0x55b4cc:0x405,_0x36082d:0x4ad,_0x577410:0x35,_0x25eaa2:0x4b4,_0x5b2f1a:0x450,_0x1a2a00:0x534,_0x56ddf7:0x1b9,_0x1154f8:0x316,_0x4b8f4d:0x223,_0x36417f:0x1f2,_0x435544:0x1aa,_0x33542a:0x22b,_0x1e2db7:0x1a6,_0x56e38a:0x257,_0x4098ca:0x7d,_0x3ff728:0x11b,_0x288082:0x244,_0x49f12e:0xc2,_0x388b59:0x2d,_0x1d1493:0x2ed,_0x26c2c5:0x3a7,_0x421b0e:0x54d,_0x141e07:0x29,_0x30d5fe:0x5d5,_0x530149:0x264,_0x2200a2:0x3db,_0x43d6b1:0x332,_0x1900d8:0x330,_0xe144c8:0x2f5,_0x31c727:0x2e7,_0x11fc94:0x360,_0x29c208:0x238,_0x3c5b55:0x4ea,_0x59a4a2:0x456,_0x496d4f:0x3d7,_0x17746c:0x49f,_0x5392c1:0x4de,_0x24acde:0x66e,_0x3097ad:0x528,_0x2f7787:0x4da,_0x511701:0xfc,_0x3485b9:0x6,_0x40c9ab:0x9,_0x4600ff:0x341,_0x4b11e3:0x49d,_0x42aec5:0x586,_0x4ea9be:0x5ab,_0x2134b3:0x29d,_0x1a5031:0x296,_0x5a48cf:0x407,_0x3d3898:0x528,_0x25750b:0x57f,_0x1c80a6:0x2b6,_0x368ea1:0x34b,_0x16312f:0x4ba,_0x44393e:0x1ae,_0x138193:0x541,_0x3e90b4:0x4f7,_0x1c0c92:0x583,_0x166c8e:0x121,_0x27b552:0xc1,_0x257b56:0x124,_0x1e3c31:0x1e2,_0x2f8a9a:0x340,_0x584174:0x12f,_0x490eaf:0x36,_0x31cf56:0x102,_0x1bf195:0xde,_0x5ad6b7:0x174,_0x1b0fc0:0x158,_0x32d300:0x16d,_0x430917:0xd4,_0x59c297:0x110,_0x431c13:0x127,_0x127636:0x373,_0xf7d365:0x24c,_0x37f934:0x1e5,_0x390ef1:0x2fc,_0x1edb46:0x28b,_0x210aa2:0x215,_0x189434:0x59d,_0x5a3e98:0x73,_0x17dfb6:0xe,_0x26b48f:0x57d,_0x23767c:0x507,_0x210d61:0x317,_0x10c26b:0x4d0,_0x4e4a85:0x293,_0x43e6c1:0x322,_0x114d67:0x360,_0x3c3c5b:0x2a3,_0x5bb5a5:0x3c7,_0x511034:0x42c,_0xb37035:0x617,_0x362d29:0x624,_0xee1999:0x67f,_0x4ff1ea:0x20a,_0x136ea4:0x34f,_0x10919d:0x255,_0x81d74f:0x3f2,_0x19fac5:0x2ba,_0xc9203d:0x394,_0x37d378:0x386,_0x6ba042:0x1bd,_0x2aba45:0x25e,_0x2452e1:0x267,_0x3b96e6:0x20f,_0x431ad5:0x1f6,_0x10854e:0xf9,_0x1416c9:0x232,_0x4f8670:0x41,_0x50ccb5:0xf8},_0x3c7713={_0x5ea5aa:0x126},_0x55a809={_0x404880:0x173};function _0x3cd4ba(_0x285bb8,_0xbce911,_0x2d8ea5,_0x7d08b0){return _0x4aa629(_0x285bb8-0x1c8,_0x285bb8,_0x2d8ea5-0x7d,_0x7d08b0-_0x55a809._0x404880);}const _0x37400f=Math['max'](0x1,Math[_0x1490a9(_0x3abe6a._0x2a2b5f,_0x3abe6a._0xdb16d4,_0x3abe6a._0x55b4cc,_0x3abe6a._0x36082d)](0x32,_0x27ffd8[_0x3cd4ba(-0x52,0x6f,_0x3abe6a._0x577410,0xd0)]));if(_0x27ffd8[_0x1490a9(_0x3abe6a._0x25eaa2,_0x3abe6a._0x5b2f1a,_0x3abe6a._0x1a2a00,0x5e4)]+_0x37400f>0x64)throw new ToolExecutionError(_0x3cd4ba(_0x3abe6a._0x56ddf7,_0x3abe6a._0x1154f8,_0x3abe6a._0x4b8f4d,_0x3abe6a._0x36417f),{'offset':_0x27ffd8[_0x1490a9(0x422,0x60f,_0x3abe6a._0x1a2a00,0x3f8)],'count':_0x37400f,'maxResults':0x64});const _0x4f155e=cseDateRestrict(_0x27ffd8[_0x3cd4ba(0x27b,0x6d,0x1be,_0x3abe6a._0x435544)]),_0x6a0d4b=addSiteFilters(_0x27ffd8[_0x3cd4ba(0x143,_0x3abe6a._0x33542a,_0x3abe6a._0x1e2db7,0x1f6)],_0x27ffd8[_0x3cd4ba(_0x3abe6a._0x56e38a,_0x3abe6a._0x4098ca,0xf8,0x135)]);let _0x1a6420=0x0,_0xb9e60=_0x27ffd8[_0x3cd4ba(_0x3abe6a._0x3ff728,0x24c,0x23b,_0x3abe6a._0x288082)]+0x1;const _0x397b83=[];while(_0x1a6420<_0x37400f){const _0x5d3382=Math['min'](0xa,_0x37400f-_0x1a6420),_0x59d9ec=new URL(_0x3cd4ba(_0x3abe6a._0x49f12e,-_0x3abe6a._0x388b59,0x33,0x7d));_0x59d9ec[_0x1490a9(0x4c5,_0x3abe6a._0x1d1493,_0x3abe6a._0x26c2c5,0x265)]['set']('key',_0x4ee0a0['googleCseKey']),_0x59d9ec['searchParams'][_0x1490a9(_0x3abe6a._0x421b0e,0x64e,0x528,0x5d0)]('cx',_0x4ee0a0['googleCseCx']),_0x59d9ec[_0x3cd4ba(_0x3abe6a._0x141e07,0x1c2,0x1b3,0xb7)][_0x1490a9(_0x3abe6a._0x30d5fe,0x599,0x528,0x4eb)]('q',_0x6a0d4b),_0x59d9ec[_0x1490a9(_0x3abe6a._0x530149,_0x3abe6a._0x2200a2,0x3a7,_0x3abe6a._0x43d6b1)][_0x3cd4ba(0x344,_0x3abe6a._0x1900d8,_0x3abe6a._0xe144c8,0x238)]('num',String(_0x5d3382)),_0x59d9ec['searchParams'][_0x3cd4ba(_0x3abe6a._0x31c727,_0x3abe6a._0x11fc94,0x36b,_0x3abe6a._0x29c208)](_0x1490a9(_0x3abe6a._0x3c5b55,_0x3abe6a._0x59a4a2,0x4ee,_0x3abe6a._0x496d4f),String(_0xb9e60)),_0x59d9ec[_0x1490a9(0x46d,_0x3abe6a._0x17746c,_0x3abe6a._0x26c2c5,_0x3abe6a._0x5392c1)][_0x1490a9(0x4bf,_0x3abe6a._0x24acde,_0x3abe6a._0x3097ad,_0x3abe6a._0x2f7787)]('safe',_0x27ffd8[_0x3cd4ba(_0x3abe6a._0x511701,0x135,-_0x3abe6a._0x3485b9,_0x3abe6a._0x40c9ab)]?_0x1490a9(_0x3abe6a._0x4600ff,0x4ab,0x3b9,0x351):_0x1490a9(_0x3abe6a._0x4b11e3,_0x3abe6a._0x42aec5,0x556,_0x3abe6a._0x4ea9be));_0x27ffd8['lang']&&(_0x59d9ec[_0x1490a9(_0x3abe6a._0x2134b3,0x3e4,0x3a7,_0x3abe6a._0x1a5031)][_0x1490a9(0x406,_0x3abe6a._0x5a48cf,_0x3abe6a._0x3d3898,_0x3abe6a._0x25750b)]('hl',_0x27ffd8[_0x3cd4ba(0x1c7,_0x3abe6a._0x1c80a6,0x3b6,0x27e)]),_0x59d9ec[_0x1490a9(0x4a2,_0x3abe6a._0x368ea1,_0x3abe6a._0x26c2c5,_0x3abe6a._0x16312f)][_0x3cd4ba(_0x3abe6a._0x530149,0x341,_0x3abe6a._0x44393e,0x238)]('lr',_0x1490a9(_0x3abe6a._0x138193,0x402,0x485,0x3fe)+_0x27ffd8[_0x1490a9(0x53b,_0x3abe6a._0x3e90b4,0x56e,_0x3abe6a._0x1c0c92)]));if(_0x27ffd8[_0x3cd4ba(_0x3abe6a._0x166c8e,_0x3abe6a._0x27b552,-0x79,0x36)])_0x59d9ec[_0x3cd4ba(_0x3abe6a._0x257b56,_0x3abe6a._0x1e3c31,0x161,0xb7)][_0x3cd4ba(0x2d4,_0x3abe6a._0x2f8a9a,0x2d2,_0x3abe6a._0x29c208)]('gl',_0x27ffd8[_0x3cd4ba(_0x3abe6a._0x584174,-0x3f,0x14e,_0x3abe6a._0x490eaf)][_0x3cd4ba(_0x3abe6a._0x31cf56,0x18b,_0x3abe6a._0x1bf195,_0x3abe6a._0x5ad6b7)]());if(_0x27ffd8['type']==='images')_0x59d9ec['searchParams'][_0x3cd4ba(0x144,_0x3abe6a._0x1b0fc0,0xfd,_0x3abe6a._0x29c208)]('searchType',_0x3cd4ba(_0x3abe6a._0x32d300,_0x3abe6a._0x430917,_0x3abe6a._0x59c297,_0x3abe6a._0x431c13));if(_0x4f155e)_0x59d9ec['searchParams'][_0x3cd4ba(0x311,_0x3abe6a._0x127636,_0x3abe6a._0xf7d365,_0x3abe6a._0x29c208)]('dateRestrict',_0x4f155e);const _0x137d2f=await fetchJson(_0x59d9ec[_0x3cd4ba(_0x3abe6a._0x37f934,0x16b,_0x3abe6a._0x390ef1,_0x3abe6a._0x1edb46)](),_0xc88436),_0x1121a9=_0x137d2f['items']??[];if(_0x1121a9[_0x3cd4ba(0x20d,_0x3abe6a._0x210aa2,0xd,0xf9)]===0x0)break;const _0xc6820a=_0x1a6420;for(let _0x3e6626=0x0;_0x3e6626<_0x1121a9['length'];_0x3e6626++){const _0x6d1fe0=_0x1121a9[_0x3e6626];if(!_0x6d1fe0)continue;const _0x4ab84b=_0x6d1fe0[_0x1490a9(_0x3abe6a._0x189434,0x4e4,0x495,0x3c9)]||_0x6d1fe0[_0x3cd4ba(_0x3abe6a._0x5a3e98,_0x3abe6a._0x17dfb6,0x6e,_0x3abe6a._0x431c13)]?.[_0x1490a9(0x616,0x5a6,_0x3abe6a._0x26b48f,_0x3abe6a._0x23767c)]||'',_0x254c47=_0x6d1fe0[_0x3cd4ba(_0x3abe6a._0x210d61,0x236,0x1ef,0x1e3)]||_0x6d1fe0[_0x1490a9(_0x3abe6a._0x10c26b,0x3a8,0x417,0x465)]?.[_0x3cd4ba(_0x3abe6a._0x4e4a85,_0x3abe6a._0x43e6c1,0x9f,0x1e3)]||_0x3cd4ba(_0x3abe6a._0x114d67,_0x3abe6a._0x3c3c5b,0x321,0x23b),_0x928385=_0x6d1fe0[_0x1490a9(_0x3abe6a._0x5bb5a5,_0x3abe6a._0x511034,0x4f9,0x47d)]||_0x6d1fe0[_0x1490a9(_0x3abe6a._0xb37035,_0x3abe6a._0x362d29,0x558,_0x3abe6a._0xee1999)]?.['replace'](/<[^>]+>/g,''),_0x5be646=_0x6d1fe0[_0x1490a9(_0x3abe6a._0x56e38a,_0x3abe6a._0x4ff1ea,_0x3abe6a._0x136ea4,0x444)]?.['metatags']?.[0x0]??{};let _0xeb6b43;try{_0xeb6b43=new URL(_0x4ab84b)[_0x1490a9(_0x3abe6a._0x10919d,0x2dd,0x376,_0x3abe6a._0x81d74f)];}catch{_0xeb6b43=null;}_0x397b83[_0x1490a9(_0x3abe6a._0x19fac5,0x4ae,_0x3abe6a._0xc9203d,_0x3abe6a._0x37d378)]({'title':_0x254c47,'url':normalizeUrl(_0x4ab84b),'snippet':_0x928385??null,'displayUrl':_0xeb6b43,'favicon':null,'publishedAt':_0x5be646[_0x3cd4ba(0x2a9,_0x3abe6a._0x6ba042,_0x3abe6a._0x2aba45,0x285)]||_0x5be646[_0x3cd4ba(0x28a,_0x3abe6a._0x2452e1,_0x3abe6a._0x3b96e6,0x1c2)]||null,'source':{'engine':'google-cse','rank':_0xc6820a+_0x3e6626+0x1}});}_0x1a6420+=_0x1121a9[_0x3cd4ba(_0x3abe6a._0x431ad5,0x76,0x17f,_0x3abe6a._0x10854e)],_0xb9e60+=_0x1121a9[_0x3cd4ba(_0x3abe6a._0x1416c9,_0x3abe6a._0x4f8670,_0x3abe6a._0x50ccb5,0xf9)];if(_0x1121a9['length']<_0x5d3382)break;}function _0x1490a9(_0x2fdfca,_0x39e5e2,_0x35b8cc,_0x2c6a89){return _0x2f0acf(_0x35b8cc-_0x3c7713._0x5ea5aa,_0x39e5e2-0x110,_0x2fdfca,_0x2c6a89-0x3a);}return _0x397b83['slice'](0x0,_0x37400f);}function createWebSearchTool(_0x2ff3f8){const _0x1411e6={_0x2e1c37:0x40c,_0xd67bfd:0x315,_0xfe47ad:0x20d,_0x4da4e5:0x0,_0x163ee1:0x1b,_0x3781b7:0x196,_0x291b15:0x227,_0x32f8cd:0x15f,_0x4038e5:0x99,_0x40d745:0xe,_0x49d12b:0x28d,_0x52510a:0x366,_0x5e690f:0x253,_0x36fbd1:0x419,_0x3fb8b3:0x1fe,_0x28b203:0xb2,_0x3b18ed:0x312,_0x584b39:0x249,_0x4118fc:0x78,_0x23954a:0x112,_0x1bd31d:0x43,_0x489c27:0x7a,_0x45cc5d:0x167,_0x49d324:0x1e9,_0x38d9c0:0x2e8,_0x55b268:0x235,_0x3c56c9:0x3c3},_0x37971b={_0x48f0c3:0x287,_0x3787df:0xbe,_0x42078b:0x2a,_0x18db30:0x15f,_0x4b8bf5:0x14,_0x402096:0x225,_0x131592:0x145,_0x2dc963:0x71,_0x153ec6:0x3,_0x161e8a:0x76,_0x5ebed0:0xea,_0x589844:0xe8,_0x301391:0x1d,_0x5b9aac:0xb5,_0x1b2d7c:0xbc,_0x291166:0x14d,_0x261045:0x267,_0x415356:0x1ef,_0x3b9bc8:0x271,_0x425ba4:0xa8,_0x1864b6:0x65,_0x162a69:0x5c,_0x1fdd28:0x168,_0x30f00f:0xd6,_0x34f92e:0xd9,_0x896731:0x21e,_0xd49479:0xd3,_0x4d9d85:0x106,_0x8df52d:0x1ed,_0x508b36:0x2ef,_0x21a77c:0x14e,_0x38fbfa:0xda,_0x11dc18:0x4,_0x4dec56:0x173,_0x564906:0x44,_0x50c067:0x21,_0x39a9a3:0x115,_0x2bd021:0xff,_0x5c40c3:0x1b7,_0x2c3258:0x1a,_0x4d4044:0x54,_0x78eb0d:0xd0,_0x4e754c:0x7d,_0xe9c9b5:0xb0,_0x26bdfd:0x128,_0x420c61:0x120,_0x190478:0xcb,_0x44ede3:0x9,_0x1befac:0x11a,_0x3e338e:0x149,_0xde7a1e:0x16,_0x4539f1:0x102,_0x28031d:0x11f,_0x523377:0x4d,_0x2a6239:0x162,_0x314def:0x3e,_0x462124:0x127,_0x550667:0xab,_0x69631c:0x19b},_0x282f05={_0x1e0f8e:0x222,_0x1ec51f:0x152},_0x5ad502={_0xae87cf:0x1a0,_0x10238c:0x172,_0x34cc68:0x249},_0x35086d={_0x2ae74d:0xfe,_0x2a8168:0x100},_0x5c705a={_0x15293a:0x15a,_0x265e54:0x5c};if(!_0x2ff3f8[_0x3b549a(_0x1411e6._0x2e1c37,_0x1411e6._0xd67bfd,_0x1411e6._0xfe47ad,0x3ce)])throw new Error(_0x1a793b(-0x77,_0x1411e6._0x4da4e5,-_0x1411e6._0x163ee1,-_0x1411e6._0x3781b7));function _0x1a793b(_0x742cf9,_0x6a1659,_0x50bb17,_0x3e1917){return _0x4aa629(_0x742cf9-0x130,_0x3e1917,_0x50bb17-_0x5c705a._0x15293a,_0x742cf9- -_0x5c705a._0x265e54);}if(!_0x2ff3f8['googleCseCx'])throw new Error('WebSearch\x20requires\x20GOOGLE_CSE_CX');function _0x3b549a(_0x6f2025,_0x333195,_0x19f200,_0x385b03){return _0x2f0acf(_0x333195- -_0x35086d._0x2ae74d,_0x333195-_0x35086d._0x2a8168,_0x6f2025,_0x385b03-0x1d6);}const _0x352f9a=_0x2ff3f8['name']??'WebSearch';return defineTool({'name':_0x352f9a,'description':_0x3b549a(0x2cb,_0x1411e6._0x291b15,_0x1411e6._0x32f8cd,0x2e7),'inputSchema':{'type':_0x1a793b(-_0x1411e6._0x4038e5,-0x190,0x93,-0xd7),'properties':{'description':{'type':_0x1a793b(-_0x1411e6._0x40d745,-0x147,-0x156,0x6e)},'query':{'type':_0x3b549a(0x160,_0x1411e6._0x49d12b,0x279,_0x1411e6._0x52510a)},'count':{'type':_0x3b549a(_0x1411e6._0x5e690f,0x312,_0x1411e6._0x36fbd1,_0x1411e6._0x3fb8b3)},'offset':{'type':'number'},'domains':{'type':'array','items':{'type':_0x1a793b(-_0x1411e6._0x40d745,-_0x1411e6._0x28b203,-0x5e,-0xeb)}},'recencyDays':{'type':_0x3b549a(0x3b2,_0x1411e6._0x3b18ed,0x362,_0x1411e6._0x584b39)},'lang':{'type':_0x1a793b(-0xe,_0x1411e6._0x4118fc,-_0x1411e6._0x23954a,-_0x1411e6._0x1bd31d)},'region':{'type':_0x1a793b(-_0x1411e6._0x40d745,-0x6b,0x6d,_0x1411e6._0x489c27)},'safe':{'type':'boolean'},'type':{'type':_0x3b549a(0x1d4,_0x1411e6._0x49d12b,_0x1411e6._0x45cc5d,_0x1411e6._0x49d324)},'hydrateMeta':{'type':_0x3b549a(0x411,_0x1411e6._0x38d9c0,_0x1411e6._0x55b268,_0x1411e6._0x3c56c9)}},'required':['query']},async *'execute'(_0x315498,_0x3a90f8){const _0x429b40={_0x2e8ffe:0xf5,_0x1cdc91:0x17e},_0x2341e1={_0x1534c7:0x266,_0x683561:0xb5,_0x4eb649:0x35},_0x40dc0b=_0x315498[_0x127f2c(0x1d6,_0x37971b._0x48f0c3,_0x37971b._0x3787df,0x237)]['trim']();if(!_0x40dc0b)throw new ToolExecutionError(_0x3afb69(-_0x37971b._0x42078b,_0x37971b._0x18db30,0x9f,-0x86));const _0x462836={'query':_0x40dc0b,'count':Math['max'](0x1,Math['min'](0x32,Math[_0x3afb69(-0x7,0x6d,0x105,-_0x37971b._0x4b8bf5)](_0x315498[_0x3afb69(-0xdc,0x25,-0x86,0x4b)]??0xa))),'offset':Math['max'](0x0,Math[_0x3afb69(_0x37971b._0x402096,0x245,0x105,0x6b)](_0x315498['offset']??0x0)),'domains':_0x315498[_0x3afb69(-0xa8,-_0x37971b._0x131592,-0x21,_0x37971b._0x2dc963)]??[],'recencyDays':Math['max'](0x0,Math[_0x3afb69(-_0x37971b._0x153ec6,_0x37971b._0x161e8a,0x105,_0x37971b._0x5ebed0)](_0x315498[_0x3afb69(_0x37971b._0x589844,0xde,0x54,_0x37971b._0x301391)]??0x0)),'lang':_0x315498['lang']??'en','region':_0x315498[_0x127f2c(0x16,-_0x37971b._0x5b9aac,-0x4b,_0x37971b._0x1b2d7c)]??'','safe':_0x315498[_0x3afb69(-0x23e,-0xd2,-_0x37971b._0x291166,-0x135)]??!![],'type':normalizeType(_0x315498[_0x127f2c(_0x37971b._0x261045,0x1d1,_0x37971b._0x415356,_0x37971b._0x3b9bc8)]),'hydrateMeta':_0x315498[_0x3afb69(-0x3d,_0x37971b._0x425ba4,_0x37971b._0x1864b6,0x54)]??![]};let _0x45b9b8=await searchGoogleCse(_0x2ff3f8,_0x462836,_0x3a90f8[_0x127f2c(_0x37971b._0x162a69,_0x37971b._0x1fdd28,_0x37971b._0x30f00f,0xe7)]);_0x462836['hydrateMeta']&&_0x45b9b8[_0x127f2c(_0x37971b._0x34f92e,_0x37971b._0x896731,_0x37971b._0xd49479,_0x37971b._0x4d9d85)]>0x0&&(_0x45b9b8=await hydrateResults(_0x45b9b8,_0x462836[_0x127f2c(0x25e,0x22d,_0x37971b._0x8df52d,_0x37971b._0x508b36)],_0x3a90f8[_0x3afb69(-0x87,-_0x37971b._0x21a77c,-_0x37971b._0x38fbfa,-_0x37971b._0x11dc18)]));const _0x2830ee=new Set();_0x45b9b8=_0x45b9b8[_0x127f2c(0x1ec,0xa7,_0x37971b._0x4dec56,0x107)](_0x450f0=>{const _0x43b937=_0x450f0[_0x2573e8(-0x25f,-_0x5ad502._0xae87cf,-_0x5ad502._0x10238c,-0x285)]['toLowerCase']();if(!_0x43b937||_0x2830ee[_0x2573e8(-_0x5ad502._0x34cc68,-0x1dc,-0x1ab,-0x2c2)](_0x43b937))return![];function _0xecc925(_0x41110e,_0x5b3b35,_0x22f8af,_0x1178e9){return _0x3afb69(_0x41110e-0xe5,_0x5b3b35-0x7,_0x22f8af-0x5f,_0x41110e);}_0x2830ee[_0x2573e8(-0x38,-0x170,-0x1f2,-0x244)](_0x43b937);function _0x2573e8(_0xf7ce10,_0x39b2e1,_0x5bb280,_0x165d45){return _0x127f2c(_0x39b2e1- -_0x2341e1._0x1534c7,_0x5bb280,_0x5bb280-_0x2341e1._0x683561,_0x165d45-_0x2341e1._0x4eb649);}return!![];}),_0x45b9b8=_0x45b9b8[_0x127f2c(_0x37971b._0x564906,-0x14,_0x37971b._0x42078b,-0xdc)]((_0x47a9f0,_0x3ab09e)=>({..._0x47a9f0,'source':{..._0x47a9f0[_0x127f2c(0x181,0x1fd,0x21a,0x16a)],'rank':_0x3ab09e+0x1}}));function _0x3afb69(_0x3a168e,_0x496116,_0x1a3cdc,_0x2eeb85){return _0x3b549a(_0x2eeb85,_0x1a3cdc- -_0x282f05._0x1e0f8e,_0x1a3cdc-0x2a,_0x2eeb85-_0x282f05._0x1ec51f);}const _0x5e6226={};if(_0x462836[_0x3afb69(0x118,0xe1,-_0x37971b._0x50c067,0x1b)]['length']>0x0)_0x5e6226[_0x127f2c(_0x37971b._0x39a9a3,-0x16,_0x37971b._0x2bd021,_0x37971b._0x5c40c3)]=_0x462836['domains'];if(_0x462836[_0x3afb69(_0x37971b._0x2c3258,-0xee,_0x37971b._0x4d4044,-_0x37971b._0x78eb0d)]>0x0)_0x5e6226['recencyDays']=_0x462836[_0x3afb69(_0x37971b._0x4e754c,-_0x37971b._0xe9c9b5,_0x37971b._0x4d4044,-0xf)];function _0x127f2c(_0x4ea79a,_0x49edfc,_0x55c664,_0x194f88){return _0x3b549a(_0x49edfc,_0x4ea79a- -0xec,_0x55c664-_0x429b40._0x2e8ffe,_0x194f88-_0x429b40._0x1cdc91);}if(_0x462836['lang']!=='en')_0x5e6226[_0x3afb69(0x70,0xe8,_0x37971b._0x26bdfd,0x1b7)]=_0x462836['lang'];if(_0x462836[_0x3afb69(-0x90,-0xa1,-_0x37971b._0x420c61,-_0x37971b._0x190478)])_0x5e6226[_0x3afb69(_0x37971b._0x44ede3,-_0x37971b._0x1befac,-_0x37971b._0x420c61,-_0x37971b._0x3e338e)]=_0x462836[_0x127f2c(_0x37971b._0xde7a1e,-_0x37971b._0x4539f1,-_0x37971b._0x28031d,0x8)];return yield createToolOutput(formatResults(_0x45b9b8),{'engine':_0x3afb69(-_0x37971b._0x523377,0xcb,-0x68,-_0x37971b._0x2a6239),'count':_0x45b9b8['length'],'items':_0x45b9b8,'query':_0x462836[_0x3afb69(-0x9b,0x174,0xa0,0x5e)],...Object[_0x3afb69(0x11a,_0x37971b._0x314def,0x124,0x1e1)](_0x5e6226)[_0x127f2c(0xd9,-0x65,0x170,0x26)]>0x0?{'appliedFilters':_0x5e6226}:{},'offset':_0x462836[_0x3afb69(0xfc,_0x37971b._0x462124,0xee,0x205)],'totalRequested':_0x462836[_0x127f2c(0xb0,0x171,_0x37971b._0x301391,_0x37971b._0x550667)],'hydrated':_0x462836[_0x127f2c(_0x37971b._0x69631c,0x2d4,0x24f,0x8f)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|