@nuvin/agent-core 0.1.0-rc.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x5cd5bf,_0x1e1858){const _0x2feadc={_0x3ddda9:0x42f,_0x2d7c06:0x23a,_0x237f18:0x19d,_0x8b326a:0x279,_0x482291:0x37f,_0x5647b4:0x40f,_0x478135:0x200,_0x459ff2:0x30b,_0x5d22ef:0x304,_0x1a98f1:0x448,_0x5ef89a:0x316,_0x51231d:0x243,_0x1de341:0x350,_0x52ef8e:0x578,_0x1b31ae:0x422,_0x2a30c6:0x2c0,_0x43f57f:0x20e,_0x1b566e:0x27f,_0x44c9f0:0x38a,_0x3b7740:0x20d},_0x335709={_0x6295cc:0x6};function _0x456a6a(_0x4ea1bd,_0x4755d1,_0x524e28,_0x1c0bc9){return _0x5a72(_0x524e28- -0x26,_0x1c0bc9);}const _0x4a4ce1=_0x5cd5bf();function _0x1b3a5e(_0x1e010b,_0x416556,_0x2c863c,_0x539809){return _0x5a72(_0x1e010b- -_0x335709._0x6295cc,_0x539809);}while(!![]){try{const _0x90159b=parseInt(_0x456a6a(0x4a3,_0x2feadc._0x3ddda9,0x335,_0x2feadc._0x2d7c06))/0x1+parseInt(_0x456a6a(0x2dd,_0x2feadc._0x237f18,_0x2feadc._0x8b326a,0x1d7))/0x2*(-parseInt(_0x456a6a(0x335,_0x2feadc._0x482291,0x353,_0x2feadc._0x5647b4))/0x3)+parseInt(_0x1b3a5e(0x29e,0x3b6,0x280,0x2c9))/0x4+parseInt(_0x456a6a(_0x2feadc._0x478135,0x36a,_0x2feadc._0x459ff2,0x3c2))/0x5*(parseInt(_0x1b3a5e(0x395,_0x2feadc._0x5d22ef,_0x2feadc._0x1a98f1,_0x2feadc._0x5ef89a))/0x6)+parseInt(_0x1b3a5e(_0x2feadc._0x51231d,_0x2feadc._0x1de341,0x11e,0x312))/0x7+-parseInt(_0x1b3a5e(0x3ff,0x2c9,_0x2feadc._0x52ef8e,_0x2feadc._0x1b31ae))/0x8*(parseInt(_0x456a6a(0x16d,_0x2feadc._0x2a30c6,0x20d,_0x2feadc._0x43f57f))/0x9)+-parseInt(_0x1b3a5e(_0x2feadc._0x1b566e,0x2a9,_0x2feadc._0x44c9f0,_0x2feadc._0x3b7740))/0xa;if(_0x90159b===_0x1e1858)break;else _0x4a4ce1['push'](_0x4a4ce1['shift']());}catch(_0x4e51a){_0x4a4ce1['push'](_0x4a4ce1['shift']());}}}(_0x4a4c,0xd06b4));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-LIJXXCAA.js';import{getTextFromMessage}from'../chunk-YWQXXHHU.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';function _0x4ab00a(_0x2e408e,_0x350ba4,_0x1bf4ad,_0x142130){const _0x4b1492={_0x593e63:0x1d7};return _0x5a72(_0x142130-_0x4b1492._0x593e63,_0x1bf4ad);}import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x126110 from'path';var EXTENSION_TO_LANGUAGE={'.ts':'typescript','.tsx':_0x1932a3(0x5da,0x4cc,0x540,0x4cc),'.js':_0x1932a3(0x32b,0x13e,0x2a8,0x207),'.jsx':_0x4ab00a(0x635,0x528,0x744,0x5d5),'.mjs':_0x1932a3(0x1c8,0x17c,0x2a8,0x2f3),'.cjs':'javascript','.mts':_0x1932a3(0x296,0x17b,0x2da,0x369),'.cts':_0x4ab00a(0x305,0x391,0x51a,0x3d1),'.json':_0x1932a3(0x473,0x419,0x3c4,0x250),'.jsonc':_0x4ab00a(0x678,0x57c,0x61a,0x5c2)};function getLanguageId(_0x3f13cc){const _0x33da4e={_0x58a593:0x338,_0x231848:0x346,_0x29031f:0x277},_0x5150f6={_0x322c30:0x19f},_0x43dcb7={_0x217e57:0x154,_0x533422:0x292,_0x2d00c3:0x55};function _0x22d20b(_0x49cf9e,_0x273b82,_0x1c9406,_0x1ee37b){return _0x1932a3(_0x273b82,_0x273b82-_0x43dcb7._0x217e57,_0x1c9406-_0x43dcb7._0x533422,_0x1ee37b-_0x43dcb7._0x2d00c3);}function _0x1f2774(_0x2dafd7,_0x4f388b,_0x5f3f7b,_0x51e53b){return _0x1932a3(_0x2dafd7,_0x4f388b-_0x5150f6._0x322c30,_0x4f388b- -0x1f6,_0x51e53b-0x14a);}return EXTENSION_TO_LANGUAGE[_0x126110[_0x1f2774(0x425,_0x33da4e._0x58a593,_0x33da4e._0x231848,_0x33da4e._0x29031f)](_0x3f13cc)[_0x1f2774(0x248,0x120,0x15a,0xa0)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x42971b){const _0x3752db={_0x575721:0x57c,_0xbf60ee:0x5c4},_0x277e92={_0x4e5d7f:0x7f,_0x3c9015:0x2c1,_0x501e46:0x4c};function _0x12f005(_0x11a221,_0x5b404f,_0x488c3f,_0x46491c){return _0x1932a3(_0x11a221,_0x5b404f-_0x277e92._0x4e5d7f,_0x488c3f-_0x277e92._0x3c9015,_0x46491c-_0x277e92._0x501e46);}return pathToFileURL(_0x42971b)[_0x12f005(0x4f1,_0x3752db._0x575721,_0x3752db._0xbf60ee,0x559)]();}function textDocumentPosition(_0x420387){const _0xe3e903={_0x33bba3:0x298,_0x5decb0:0x130,_0x345c35:0x3ac,_0x5143f4:0x4ad,_0x6426d5:0x351,_0x5444e5:0x289},_0x2f4d6d={_0x105bf9:0x1e9};function _0x2d3395(_0x2622ac,_0x4fec0b,_0x1ace61,_0x26823d){return _0x1932a3(_0x26823d,_0x4fec0b-0x44,_0x1ace61- -0x140,_0x26823d-_0x2f4d6d._0x105bf9);}function _0x10411e(_0x49a165,_0x4cabab,_0x215d6b,_0xcee4dc){return _0x1932a3(_0x4cabab,_0x4cabab-0x14,_0x49a165- -0x291,_0xcee4dc-0x77);}return{'textDocument':{'uri':uriForPath(_0x420387[_0x2d3395(_0xe3e903._0x33bba3,_0xe3e903._0x5decb0,0x154,0x1df)])},'position':{'line':_0x420387[_0x2d3395(0x4bd,0x2f1,_0xe3e903._0x345c35,_0xe3e903._0x5143f4)],'character':_0x420387[_0x2d3395(0x2d0,_0xe3e903._0x6426d5,_0xe3e903._0x5444e5,0x311)]}};}function normalizeLocations(_0x2f0029){const _0x4e2a74={_0x585828:0x1c,_0x37c1dc:0x4a,_0x2f82db:0x21,_0x2b95fd:0x199},_0x5e7185={_0x5bbbf2:0x422};if(!_0x2f0029)return[];function _0x7d7988(_0x55545e,_0x181bf4,_0x10240e,_0x52e851){return _0x4ab00a(_0x55545e-0x19d,_0x181bf4-0x135,_0x52e851,_0x181bf4- -_0x5e7185._0x5bbbf2);}return Array[_0x7d7988(-_0x4e2a74._0x585828,_0x4e2a74._0x37c1dc,-_0x4e2a74._0x2f82db,_0x4e2a74._0x2b95fd)](_0x2f0029)?_0x2f0029:[_0x2f0029];}async function createLspClient(_0x1c4f18){const _0x29f27b={_0xaf7c1c:0x6a,_0x26bd62:0x57e,_0x2c03ce:0x2e0,_0x30aeab:0xd9,_0x475507:0x20c,_0x4c0821:0x687,_0x2dc02a:0x732,_0x584820:0x5f3,_0x4bdcee:0x694,_0x47158d:0x57c,_0x5c6b54:0x1a2,_0x413ed5:0x88,_0x32fb5e:0x2e3,_0x27d7d3:0x405,_0x5c7251:0x3af,_0x580102:0x266,_0x29a991:0xed,_0x5c65bb:0x145,_0x1174f7:0x21c,_0x4b5855:0x162,_0x5e998e:0x84,_0x43206f:0x653,_0xb68406:0x6c3,_0x16e63c:0x5f3,_0x5c6e45:0xea,_0x3d83c0:0x122,_0x5b585a:0x12d,_0x3106c6:0x122,_0x300fac:0x1a7,_0x5005c3:0xa9,_0x12517b:0x206,_0x1b4c3b:0xc6,_0x52d558:0x1c7,_0x4c925f:0x1cd,_0x2eca13:0x2b2,_0x13e104:0x2d1,_0x1e4572:0x3ca,_0xe9b186:0x45a,_0x1f25a5:0x505,_0x45b061:0x468,_0x5e3c33:0x476,_0x26c49a:0x3ae},_0x1c22f0={_0x3052f9:0x1b7,_0x192225:0x27b,_0x5674e3:0x27e,_0x58470c:0x44f,_0xed662d:0x396,_0x504a56:0x480,_0x123378:0x3ca,_0x4d0c0b:0x519,_0x410635:0x525,_0x3255bd:0x407},_0x4ae921={_0x3d365e:0x67,_0x59468c:0x15},_0x343c49={_0x17a53c:0x435,_0x31879d:0x526},_0x592385={_0x1d2de6:0xf4,_0x4b8703:0x560},_0x2bcba3={_0x56fa63:0x434,_0x2ad796:0x52c,_0x256d6c:0x27d,_0x5903ca:0x3f0},_0x28aff2={_0x2de59:0x1e2},_0x42713a={_0x3e4bb1:0x3b8,_0x2c7061:0x381,_0x4d599c:0x3fb},_0x58cfb9={_0xd7fd9a:0x79,_0x471bf3:0x62},_0x547dd9={_0x221e26:0x111,_0x1c9067:0x10a},_0x5d9cab={_0x4de6be:0x180,_0x4b682c:0x183},_0x2b49a2={_0x350ca:0x48b,_0x2e9269:0x49e,_0x5d49fc:0x4dc,_0x24deb7:0x3f4},_0x42246d={_0x29af25:0x584},_0x432146={_0x209e45:0xb6},_0x442cf9={_0x2d3d2a:0x3fd,_0x4a0d5c:0x370,_0x325c77:0x5d5,_0x2ea160:0x591,_0xd0a72b:0x546},_0xfe4a67={_0x1188ba:0xbf,_0x258b4f:0x177,_0x3c7a92:0x5d1},_0x526e11={_0x291055:0x268,_0xb0691:0x219,_0x962c2c:0x160,_0x575c13:0x1de},_0x39481e={_0x10fdb1:0x18e,_0x5e112a:0x15c},_0x5baef6={_0x1d7da2:0xba,_0x421f29:0x96,_0x14d42b:0x428},_0x15d4f7={_0x11a9af:0x3c9},_0x1127c2={_0x502ec9:0x5ae,_0x5c9b43:0x57b,_0x3ec992:0x503,_0x199be3:0x67d,_0x3f30c8:0x59b,_0x3a699b:0x5af},_0x173715={_0x5b26b2:0x2bf,_0x2e26ba:0x3c1,_0x3a3186:0x13d,_0xca0e3:0x1ce,_0xd557f3:0x2a7},_0x2e3f75={_0x2edb7e:0x2b4,_0x283b9e:0x416,_0x5acad2:0x2be,_0x44ad24:0x28b,_0x12e395:0x138},_0x107872={_0xf35c06:0xbe,_0x2d25aa:0x14b},_0x293eed={_0x333bea:0x16f,_0x1a4622:0x91},_0x3ba860={_0x12b945:0x82f,_0x4fde66:0x8dd,_0x2b262a:0xba,_0x52ac51:0x1cb,_0x323762:0x177,_0x3113c4:0x28d,_0x271775:0x25f,_0x3676ed:0x26e,_0x9a3cf0:0x301,_0x242014:0x21d},_0x4e6447={_0x226011:0x35,_0x3b3aa5:0x4bd,_0x19636c:0x197},_0x2bdcc1=_0x1c4f18[_0x4210b7(0x7c,0x20a,-_0x29f27b._0xaf7c1c,0xa5)][_0x1a7d3a(0x637,_0x29f27b._0x26bd62,0x530,0x517)][_0x4210b7(-0x1c7,-_0x29f27b._0x2c03ce,-_0x29f27b._0x30aeab,-_0x29f27b._0x475507)],_0x231807=_0x1c4f18[_0x1a7d3a(_0x29f27b._0x4c0821,_0x29f27b._0x2dc02a,_0x29f27b._0x584820,0x495)][_0x1a7d3a(_0x29f27b._0x4bdcee,0x5e7,0x530,_0x29f27b._0x47158d)][_0x4210b7(-0x16f,-_0x29f27b._0x5c6b54,_0x29f27b._0x413ed5,-0x4c)];if(!_0x2bdcc1||!_0x231807)throw new Error(_0x1a7d3a(0x2e2,_0x29f27b._0x32fb5e,_0x29f27b._0x27d7d3,0x2f1));const _0x5ccf37=createMessageConnection(new StreamMessageReader(_0x2bdcc1),new StreamMessageWriter(_0x231807)),_0x33abea=new Map();function _0x4210b7(_0x5524cc,_0x347e48,_0x345adf,_0x9c3477){return _0x1932a3(_0x345adf,_0x347e48-_0x4e6447._0x226011,_0x9c3477- -_0x4e6447._0x3b3aa5,_0x9c3477-_0x4e6447._0x19636c);}const _0x4a8c49=new Map();let _0x3a512a=![];_0x5ccf37[_0x1a7d3a(0x44a,0x40c,_0x29f27b._0x5c7251,_0x29f27b._0x580102)]('textDocument/publishDiagnostics',_0x5ad95c=>{const _0x2b855e={_0x125390:0xa1,_0x422d3f:0x299};_0x33abea[_0x3e7db7(_0x3ba860._0x12b945,0x7b3,0x832,_0x3ba860._0x4fde66)](_0x5ad95c[_0x524497(0x10b,_0x3ba860._0x2b262a,0x21e,0x317)],_0x5ad95c[_0x524497(_0x3ba860._0x52ac51,_0x3ba860._0x323762,_0x3ba860._0x3113c4,0x1e0)]);function _0x524497(_0xaf90bc,_0x14c6c6,_0xb353bf,_0x585a8c){return _0x1a7d3a(_0xaf90bc-_0x2b855e._0x125390,_0xaf90bc,_0xb353bf- -_0x2b855e._0x422d3f,_0x585a8c-0x61);}const _0x4ea4d5=_0x4a8c49[_0x524497(_0x3ba860._0x271775,_0x3ba860._0x3676ed,_0x3ba860._0x9a3cf0,_0x3ba860._0x242014)](_0x5ad95c['uri']);if(!_0x4ea4d5)return;function _0x3e7db7(_0x57c1f7,_0x11f120,_0x2a99cc,_0x55876c){return _0x1a7d3a(_0x57c1f7-0x1b,_0x2a99cc,_0x11f120-0x21d,_0x55876c-0x191);}_0x4a8c49[_0x3e7db7(0x630,0x54e,0x57a,0x5ac)](_0x5ad95c['uri']);for(const _0x169f2b of _0x4ea4d5)_0x169f2b();}),_0x5ccf37[_0x4210b7(-_0x29f27b._0x29a991,-0x1a5,0x1e,-0x10a)]();function _0x1a7d3a(_0x504a3a,_0xeec7ae,_0x2100c3,_0xa993d3){return _0x1932a3(_0xeec7ae,_0xeec7ae-_0x293eed._0x333bea,_0x2100c3-_0x293eed._0x1a4622,_0xa993d3-0x113);}const _0x9ba87c=await _0x5ccf37[_0x4210b7(-_0x29f27b._0x5c65bb,-0x27d,-0x257,-0x23f)](_0x1a7d3a(_0x29f27b._0x1174f7,0x3ba,0x374,0x381),{'processId':process['pid'],'rootUri':uriForPath(_0x1c4f18[_0x4210b7(0x99,-_0x29f27b._0x4b5855,_0x29f27b._0x5e998e,-0x49)]),'workspaceFolders':[{'uri':uriForPath(_0x1c4f18['root']),'name':_0x1c4f18['server']['id']}],'initializationOptions':_0x1c4f18[_0x1a7d3a(_0x29f27b._0x43206f,_0x29f27b._0xb68406,_0x29f27b._0x16e63c,0x4a8)][_0x4210b7(-_0x29f27b._0x5c6e45,-_0x29f27b._0x3d83c0,-_0x29f27b._0x5b585a,-_0x29f27b._0x3106c6)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x4210b7(_0x29f27b._0x300fac,-0x58,0xb9,_0x29f27b._0x5005c3),'plaintext']},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x5ccf37[_0x4210b7(-0x291,-_0x29f27b._0x12517b,-_0x29f27b._0x1b4c3b,-_0x29f27b._0x52d558)](_0x4210b7(-0x2f,-0xf5,-_0x29f27b._0x4c925f,-0x7e),{});const _0x4997cf={'serverId':_0x1c4f18[_0x1a7d3a(_0x29f27b._0x2eca13,0x2cc,0x348,_0x29f27b._0x13e104)]['id'],'root':_0x1c4f18[_0x1a7d3a(_0x29f27b._0x1e4572,_0x29f27b._0xe9b186,_0x29f27b._0x1f25a5,0x4e9)],'connection':_0x5ccf37,'diagnostics':_0x33abea,'capabilities':_0x9ba87c[_0x1a7d3a(_0x29f27b._0x45b061,_0x29f27b._0x5e3c33,_0x29f27b._0x26c49a,0x3ef)]??{},'notify':{async 'open'({path:_0x4bebe5}){const _0x273695=await readFile(_0x4bebe5,_0x457475(0x33d,_0x2e3f75._0x2edb7e,0x2a4,0x3b9));function _0x244f7c(_0x5aba55,_0xb01ec4,_0x2d2424,_0x513287){return _0x4210b7(_0x5aba55-_0x107872._0xf35c06,_0xb01ec4-_0x107872._0x2d25aa,_0x2d2424,_0x513287-0xce);}function _0x457475(_0x54d806,_0x2f820a,_0xcd0c05,_0x296b22){return _0x1a7d3a(_0x54d806-0x151,_0x2f820a,_0x296b22- -0xa4,_0x296b22-0x197);}_0x5ccf37[_0x457475(_0x2e3f75._0x283b9e,_0x2e3f75._0x5acad2,0x34d,0x2e3)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x4bebe5),'languageId':getLanguageId(_0x4bebe5)??_0x244f7c(-0x1,0x4f,_0x2e3f75._0x44ad24,_0x2e3f75._0x12e395),'version':0x1,'text':_0x273695}});},async 'change'({path:_0x349749,version:_0x4384fb}){const _0x45e8d4={_0x2cb38c:0x16f,_0x228fe7:0x395},_0x36d913=await readFile(_0x349749,_0x164162(_0x173715._0x5b26b2,0x2a4,_0x173715._0x2e26ba,_0x173715._0x3a3186));function _0x581600(_0x4698f0,_0x506471,_0x1a0408,_0xa51215){return _0x1a7d3a(_0x4698f0-0xe2,_0xa51215,_0x4698f0-0x17e,_0xa51215-0x1ea);}function _0x164162(_0x52402f,_0x360f07,_0x3c3314,_0x5c4f7d){return _0x4210b7(_0x52402f-0xce,_0x360f07-_0x45e8d4._0x2cb38c,_0x52402f,_0x360f07-_0x45e8d4._0x228fe7);}_0x5ccf37[_0x164162(0xd1,_0x173715._0xca0e3,0x193,_0x173715._0xd557f3)]('textDocument/didChange',{'textDocument':{'uri':uriForPath(_0x349749),'version':_0x4384fb},'contentChanges':[{'text':_0x36d913}]});},async 'close'({path:_0x8c4cbd}){const _0x379474={_0x4f78f9:0x9d,_0x5cb150:0x775};function _0x1a7a41(_0x4a8ef6,_0x23aad5,_0x53304a,_0xaba5ea){return _0x4210b7(_0x4a8ef6-0xd1,_0x23aad5-_0x379474._0x4f78f9,_0xaba5ea,_0x4a8ef6-_0x379474._0x5cb150);}function _0x32f4bb(_0x382474,_0x5c818c,_0x5f1372,_0x304015){return _0x1a7d3a(_0x382474-0x13a,_0x304015,_0x5f1372- -0x455,_0x304015-0x15b);}_0x5ccf37[_0x1a7a41(_0x1127c2._0x502ec9,0x6ea,_0x1127c2._0x5c9b43,_0x1127c2._0x3ec992)](_0x1a7a41(_0x1127c2._0x199be3,_0x1127c2._0x3f30c8,0x556,_0x1127c2._0x3a699b),{'textDocument':{'uri':uriForPath(_0x8c4cbd)}});}},'request':{async 'definition'(_0xc3bda3){const _0x51ae2f={_0x42f457:0x122};function _0x4b2a35(_0x18284b,_0x378b1d,_0x519b11,_0x2cd6a5){return _0x4210b7(_0x18284b-_0x51ae2f._0x42f457,_0x378b1d-0x2f,_0x18284b,_0x519b11-0x383);}function _0x2d3b82(_0xb09116,_0x24b338,_0xf44d50,_0x513c34){return _0x1a7d3a(_0xb09116-0x1b6,_0x24b338,_0xb09116- -_0x15d4f7._0x11a9af,_0x513c34-0x192);}return normalizeLocations(await _0x5ccf37[_0x2d3b82(-_0x5baef6._0x1d7da2,_0x5baef6._0x421f29,-0x177,-0x24)](_0x4b2a35(0x471,_0x5baef6._0x14d42b,0x2fd,0x41e),textDocumentPosition(_0xc3bda3)));},async 'references'(_0x5f2711){const _0x18c02e={_0x2996db:0x190};function _0x23859e(_0x335e72,_0x52557d,_0x2b6c55,_0x336203){return _0x1a7d3a(_0x335e72-_0x18c02e._0x2996db,_0x52557d,_0x335e72- -0x49d,_0x336203-0x26);}function _0x32cf72(_0x98642e,_0x354fdd,_0x2413f1,_0xb4258b){return _0x4210b7(_0x98642e-_0x39481e._0x10fdb1,_0x354fdd-_0x39481e._0x5e112a,_0x98642e,_0x2413f1-0x39f);}return normalizeLocations(await _0x5ccf37[_0x32cf72(_0x526e11._0x291055,_0x526e11._0xb0691,_0x526e11._0x962c2c,_0x526e11._0x575c13)](_0x32cf72(0x428,0x2d3,0x394,0x26d),{...textDocumentPosition(_0x5f2711),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x94bab8){const _0x2a744c={_0x3710f0:0xc6};function _0xc443de(_0x1655c1,_0x32bd3b,_0x38ef9a,_0x101043){return _0x4210b7(_0x1655c1-_0xfe4a67._0x1188ba,_0x32bd3b-_0xfe4a67._0x258b4f,_0x101043,_0x1655c1-_0xfe4a67._0x3c7a92);}function _0x3e94da(_0x557ef2,_0x229a2e,_0x3fc11e,_0x2f84d4){return _0x1a7d3a(_0x557ef2-0x26,_0x3fc11e,_0x557ef2-0x160,_0x2f84d4-_0x2a744c._0x3710f0);}return await _0x5ccf37[_0x3e94da(0x46f,_0x442cf9._0x2d3d2a,_0x442cf9._0x4a0d5c,_0x442cf9._0x325c77)](_0xc443de(0x5f1,_0x442cf9._0x2ea160,0x5b5,_0x442cf9._0xd0a72b),textDocumentPosition(_0x94bab8))??null;},async 'documentSymbol'(_0x3bd2a1){function _0x44f64a(_0x584283,_0x50518e,_0x1a58d9,_0x2812ef){return _0x1a7d3a(_0x584283-0x117,_0x2812ef,_0x50518e-0x18f,_0x2812ef-_0x432146._0x209e45);}function _0xda2474(_0x28e4bc,_0x2b4a40,_0x235e21,_0xa046e1){return _0x4210b7(_0x28e4bc-0x15a,_0x2b4a40-0x1a3,_0x2b4a40,_0x28e4bc-_0x42246d._0x29af25);}return await _0x5ccf37[_0x44f64a(_0x2b49a2._0x350ca,_0x2b49a2._0x2e9269,_0x2b49a2._0x5d49fc,_0x2b49a2._0x24deb7)](_0xda2474(0x625,0x53d,0x688,0x5e2),{'textDocument':{'uri':uriForPath(_0x3bd2a1)}})??[];},async 'workspaceSymbol'(_0x14d14d){function _0x235393(_0x202f17,_0x311a4a,_0x1a8035,_0xb610ff){return _0x4210b7(_0x202f17-0x1ae,_0x311a4a-_0x5d9cab._0x4de6be,_0x1a8035,_0xb610ff-_0x5d9cab._0x4b682c);}function _0xc46be6(_0x4abd66,_0x21b287,_0xf318b5,_0xbd9cce){return _0x1a7d3a(_0x4abd66-_0x547dd9._0x221e26,_0xf318b5,_0xbd9cce-_0x547dd9._0x1c9067,_0xbd9cce-0xa2);}return await _0x5ccf37[_0x235393(_0x58cfb9._0xd7fd9a,-_0x58cfb9._0x471bf3,-0x155,-0xbc)](_0x235393(0x140,0x6a,0x14a,0x62),{'query':_0x14d14d})??[];},async 'implementation'(_0x2a5623){return normalizeLocations(await _0x5ccf37['sendRequest']('textDocument/implementation',textDocumentPosition(_0x2a5623)));},async 'prepareCallHierarchy'(_0xc4559f){const _0x3b9c3c={_0x3d9ddf:0x119,_0x3b3070:0xe6,_0x5f29c4:0x630},_0x43b09a={_0x48bdd7:0x18f,_0xead725:0x3e3};function _0x2feaaa(_0x2202cb,_0x4a3bc8,_0xfe0d04,_0x51b3ac){return _0x1a7d3a(_0x2202cb-_0x43b09a._0x48bdd7,_0x2202cb,_0x51b3ac- -_0x43b09a._0xead725,_0x51b3ac-0x175);}function _0x58a70(_0x570ef8,_0x356aca,_0x36cbad,_0x5da468){return _0x4210b7(_0x570ef8-_0x3b9c3c._0x3d9ddf,_0x356aca-_0x3b9c3c._0x3b3070,_0x356aca,_0x570ef8-_0x3b9c3c._0x5f29c4);}return await _0x5ccf37[_0x58a70(0x3f1,0x515,0x35d,_0x42713a._0x3e4bb1)](_0x58a70(0x47d,_0x42713a._0x2c7061,0x3d5,_0x42713a._0x4d599c),textDocumentPosition(_0xc4559f))??[];},async 'incomingCalls'(_0x141a24){const _0x308205={_0x46f7f2:0xa5};function _0x3bcbc6(_0x11d6e0,_0x3d41d4,_0x1a6388,_0x3f05e8){return _0x4210b7(_0x11d6e0-_0x308205._0x46f7f2,_0x3d41d4-0x8d,_0x3f05e8,_0x11d6e0-0x91);}return await _0x5ccf37[_0x3bcbc6(-0x1ae,-0xab,-_0x28aff2._0x2de59,-0xfc)]('callHierarchy/incomingCalls',{'item':_0x141a24})??[];},async 'outgoingCalls'(_0x51b694){const _0x107c66={_0x185e8d:0x14};function _0x1493c7(_0x267875,_0x335fb3,_0x53d20f,_0x4d1c73){return _0x4210b7(_0x267875-_0x107c66._0x185e8d,_0x335fb3-0xbe,_0x335fb3,_0x4d1c73-0x502);}return await _0x5ccf37['sendRequest'](_0x1493c7(_0x2bcba3._0x56fa63,_0x2bcba3._0x2ad796,_0x2bcba3._0x256d6c,_0x2bcba3._0x5903ca),{'item':_0x51b694})??[];}},'waitForDiagnostics'({path:_0x4cf68d,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x517cef={_0x1243f5:0xf2,_0x3295a0:0x292,_0x4d521b:0x1f3,_0x2dc7ae:0x87,_0x66b7bd:0x246},_0x5f04ba={_0x40f3e7:0x3f5,_0x5b410d:0xc1,_0x202859:0x1c5},_0x46290a=uriForPath(_0x4cf68d);if(_0x33abea['has'](_0x46290a))return Promise[_0x3b2085(_0x343c49._0x17a53c,_0x343c49._0x31879d,0x434,0x3c9)]();function _0x3b2085(_0x1e7cf0,_0x3466f6,_0x52e48e,_0x5f1e91){return _0x4210b7(_0x1e7cf0-0xd7,_0x3466f6-_0x592385._0x1d2de6,_0x52e48e,_0x1e7cf0-_0x592385._0x4b8703);}return new Promise(_0x38590d=>{const _0x305299={_0x8e879e:0x19f},_0x353bc5={_0x43a94d:0x6ef,_0x5c8574:0x791,_0x129741:0x618,_0x16f201:0x5db,_0x2c35c2:0x486,_0x391944:0x404,_0x340416:0x1b5,_0x511f7f:0x17c,_0x2df01e:0xc1,_0x18956e:0x26},_0x589a85=setTimeout(()=>{function _0x14a98a(_0x16e2e6,_0x5de532,_0x427c6b,_0x40f00f){return _0x5a72(_0x427c6b- -0x124,_0x5de532);}const _0x8e4ec0=_0x4a8c49[_0x8a34d4(_0x353bc5._0x43a94d,_0x353bc5._0x5c8574,_0x353bc5._0x129741,_0x353bc5._0x16f201)](_0x46290a);function _0x8a34d4(_0x43644e,_0x8bbe06,_0x1f34a4,_0x567239){return _0x5a72(_0x43644e-0x2c6,_0x1f34a4);}_0x8e4ec0?.[_0x8a34d4(_0x353bc5._0x2c35c2,_0x353bc5._0x391944,0x5a6,0x35e)](_0x8d71e4);if(_0x8e4ec0?.[_0x14a98a(_0x353bc5._0x340416,_0x353bc5._0x511f7f,_0x353bc5._0x2df01e,-_0x353bc5._0x18956e)]===0x0)_0x4a8c49['delete'](_0x46290a);_0x38590d();},timeoutMs),_0x8d71e4=()=>{clearTimeout(_0x589a85),_0x38590d();},_0x20ab19=_0x4a8c49['get'](_0x46290a)??new Set();function _0x3d8300(_0x250b6f,_0x2ad17a,_0x5a28d5,_0xd1433b){return _0x3b2085(_0x5a28d5- -_0x5f04ba._0x40f3e7,_0x2ad17a-_0x5f04ba._0x5b410d,_0x250b6f,_0xd1433b-_0x5f04ba._0x202859);}_0x20ab19[_0x3d8300(_0x517cef._0x1243f5,_0x517cef._0x3295a0,0x1bd,0x2e1)](_0x8d71e4);function _0x1d9aeb(_0xdf65b7,_0x258329,_0x2bfe20,_0x2c1af0){return _0x3b2085(_0x2c1af0- -0x327,_0x258329-_0x305299._0x8e879e,_0x2bfe20,_0x2c1af0-0x2);}_0x4a8c49[_0x3d8300(_0x517cef._0x4d521b,_0x517cef._0x2dc7ae,0x1b3,_0x517cef._0x66b7bd)](_0x46290a,_0x20ab19);});},async 'shutdown'(){const _0x71b90={_0x1809c3:0x190,_0x1845a0:0x14f,_0x1e926a:0x73d};if(_0x3a512a)return;_0x3a512a=!![];function _0x5547b3(_0x24ee3f,_0x24a37f,_0xfa057f,_0x5097be){return _0x4210b7(_0x24ee3f-_0x71b90._0x1809c3,_0x24a37f-_0x71b90._0x1845a0,_0x24ee3f,_0x24a37f-_0x71b90._0x1e926a);}function _0x1e052d(_0x149bda,_0x19451c,_0xe023b,_0x15ae5d){return _0x4210b7(_0x149bda-_0x4ae921._0x3d365e,_0x19451c-_0x4ae921._0x59468c,_0x19451c,_0x15ae5d-0x4b4);}try{await _0x5ccf37['sendRequest'](_0x1e052d(0x338,_0x1c22f0._0x3052f9,_0x1c22f0._0x192225,_0x1c22f0._0x5674e3),null),_0x5ccf37[_0x1e052d(_0x1c22f0._0x58470c,0x43e,_0x1c22f0._0xed662d,0x2ed)](_0x1e052d(0x451,_0x1c22f0._0x504a56,0x433,_0x1c22f0._0x123378));}catch{}finally{_0x5ccf37['dispose'](),_0x1c4f18[_0x1e052d(_0x1c22f0._0x4d0c0b,_0x1c22f0._0x410635,0x53c,0x559)]['process'][_0x1e052d(0x311,0x329,_0x1c22f0._0x3255bd,0x332)]();}}};return _0x4997cf;}import{spawn as _0x4982e0}from'child_process';import{access as _0x461961}from'fs/promises';import _0x4577a3 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x33e815 from'os';import _0x2bba96 from'path';import _0x1cebcf from'which';var installPromises=new Map();function sanitizePackageName(_0x47a194){const _0x4f34db={_0xea1b3f:0x19e,_0x23c523:0x27e,_0x5bc4d7:0x9c,_0x2c5e1e:0x1b2},_0x106d97={_0x4d9e98:0x1d9,_0x13e786:0x273};function _0x476743(_0xbf367f,_0x470b75,_0x515e08,_0x3319dc){return _0x1932a3(_0x3319dc,_0x470b75-0xd1,_0x515e08- -0x27e,_0x3319dc-0x10f);}function _0x4fa90b(_0x86234d,_0x348fa1,_0x579c86,_0x499026){return _0x4ab00a(_0x86234d-0x19a,_0x348fa1-_0x106d97._0x4d9e98,_0x348fa1,_0x86234d- -_0x106d97._0x13e786);}return _0x47a194[_0x4fa90b(_0x4f34db._0xea1b3f,_0x4f34db._0x23c523,0x8d,0x110)](/^@/,'')[_0x476743(0xe7,0xfa,_0x4f34db._0x5bc4d7,_0x4f34db._0x2c5e1e)](/[/]/g,'__');}function binaryNameForPlatform(_0x132d59){const _0x2a57a8={_0x1ec26c:0xe5,_0x4b9bb2:0x51,_0x2e17a8:0x6b1},_0x119291={_0x5ebc6f:0x114,_0x1a5f35:0xc9},_0x585e6e={_0x3f1e33:0x125};function _0x2bec6a(_0x4c253c,_0x485d70,_0x251404,_0x522bb6){return _0x4ab00a(_0x4c253c-_0x585e6e._0x3f1e33,_0x485d70-0x105,_0x251404,_0x485d70- -0x418);}function _0x8fa8a5(_0x38669b,_0x57e4e2,_0x399c32,_0xaddd31){return _0x4ab00a(_0x38669b-0x11c,_0x57e4e2-_0x119291._0x5ebc6f,_0xaddd31,_0x399c32-_0x119291._0x1a5f35);}return process['platform']===_0x2bec6a(-_0x2a57a8._0x1ec26c,-0x63,-0x125,-_0x2a57a8._0x4b9bb2)?_0x132d59+_0x8fa8a5(_0x2a57a8._0x2e17a8,0x720,0x628,0x4d6):_0x132d59;}async function exists(_0x4dda8b){try{return await access(_0x4dda8b),!![];}catch{return![];}}function runNpmInstall(_0x2942ca,_0x4b7b41,_0x26b84a){const _0x468963={_0x2fc1fe:0x5af,_0x4af489:0x309,_0x2eda46:0x443,_0x2075ba:0x388,_0x42c1c6:0x55a,_0x28d987:0x3ce,_0x33b8de:0x3b2};return new Promise(_0x3da569=>{const _0x12306e={_0x193397:0x4f},_0x2962ef=spawn(_0x5cb375(_0x468963._0x2fc1fe,_0x468963._0x4af489,_0x468963._0x2eda46,_0x468963._0x2075ba),['install','--prefix',_0x2942ca,_0x4b7b41],{'env':_0x26b84a,'stdio':_0x5ec84c(0x47a,_0x468963._0x42c1c6,0x51f,0x4f6)});function _0x5ec84c(_0x2b92ee,_0x3a3535,_0x26c5ed,_0x306517){return _0x5a72(_0x2b92ee-0xd,_0x3a3535);}function _0x5cb375(_0x172df1,_0x4402c8,_0x25b482,_0x518bb2){return _0x5a72(_0x25b482-_0x12306e._0x193397,_0x4402c8);}_0x2962ef['on'](_0x5ec84c(0x37f,0x4a3,0x270,_0x468963._0x28d987),()=>_0x3da569(![])),_0x2962ef['on'](_0x5cb375(0x4b4,0x3db,_0x468963._0x33b8de,0x271),_0x13206a=>_0x3da569(_0x13206a===0x0));});}function shouldDisableLspDownload(_0x24e621=process[_0x1932a3(0x237,0x267,0x29b,0x251)]){const _0x449e44={_0x3561e0:0x479,_0x608b8:0x371,_0x27941d:0x24f,_0x1ab1ef:0x4c5,_0x49518b:0x607,_0x3fcef7:0x4e8,_0x4de6d7:0x5a7,_0x2ce000:0x4fd},_0xe60f24={_0x1ebe3a:0xe5,_0x3b0049:0x1be},_0x15cf47={_0x2ecbff:0x115,_0x22d300:0x6b};function _0x41270b(_0x543474,_0x41c485,_0x10a656,_0x20f85d){return _0x1932a3(_0x20f85d,_0x41c485-_0x15cf47._0x2ecbff,_0x543474-_0x15cf47._0x22d300,_0x20f85d-0x78);}const _0x1a44f7=_0x24e621[_0x870297(0x2f7,_0x449e44._0x3561e0,0x22f,_0x449e44._0x608b8)]?.[_0x870297(0x193,0x2d1,0x3c0,_0x449e44._0x27941d)]();function _0x870297(_0x735e92,_0x3dc1dd,_0x44a082,_0x53410d){return _0x4ab00a(_0x735e92-0x128,_0x3dc1dd-_0xe60f24._0x1ebe3a,_0x3dc1dd,_0x53410d- -_0xe60f24._0x3b0049);}return _0x1a44f7===_0x41270b(_0x449e44._0x1ab1ef,_0x449e44._0x49518b,_0x449e44._0x3fcef7,_0x449e44._0x4de6d7)||_0x1a44f7==='1'||_0x1a44f7===_0x41270b(_0x449e44._0x2ce000,0x42c,0x471,0x58b)||_0x1a44f7==='on';}function getLspPackageDir(_0x1581f7){const _0x5c9be6={_0x20aa7b:0x599,_0x1c1d60:0x499,_0x26e014:0x432,_0x210a4a:0x4f3,_0x30376f:0x53f,_0x23790d:0x62a,_0xd9882b:0x4fd},_0x221f66={_0x528cc1:0x2e2};function _0x29deea(_0x53c03c,_0x1ad6a7,_0x2898be,_0x1847aa){return _0x4ab00a(_0x53c03c-0x114,_0x1ad6a7-0x64,_0x53c03c,_0x1847aa- -0xd0);}function _0x1b31f7(_0x2b037b,_0x181713,_0x122a7d,_0x5ad552){return _0x1932a3(_0x5ad552,_0x181713-0xf5,_0x122a7d-_0x221f66._0x528cc1,_0x5ad552-0xa0);}return _0x2bba96[_0x29deea(_0x5c9be6._0x20aa7b,0x5d0,0x4cf,0x521)](_0x33e815[_0x29deea(0x312,0x435,_0x5c9be6._0x1c1d60,_0x5c9be6._0x26e014)](),'.nuvin',_0x29deea(0x5bd,0x3b0,0x5fd,_0x5c9be6._0x210a4a),_0x1b31f7(0x4d0,_0x5c9be6._0x30376f,_0x5c9be6._0x23790d,_0x5c9be6._0xd9882b),sanitizePackageName(_0x1581f7));}function getLspBinDir(_0x282f62){const _0x71fcce={_0x20b8df:0x75e,_0x152969:0x387,_0x13fb8d:0x49b,_0x44e74b:0x59d},_0x244656={_0x561ea7:0x1a2,_0x543796:0x10b,_0x2f3ac5:0x102},_0x3f74e3={_0x39f6fe:0x68,_0x41d0da:0x13f};function _0x6e218f(_0x3f1afb,_0x30e53b,_0x3a5a5a,_0x2df0ce){return _0x4ab00a(_0x3f1afb-_0x3f74e3._0x39f6fe,_0x30e53b-_0x3f74e3._0x41d0da,_0x3f1afb,_0x2df0ce-0x1e6);}function _0x127378(_0x5302b6,_0x3d5942,_0x1b81c5,_0x2e44cf){return _0x1932a3(_0x5302b6,_0x3d5942-_0x244656._0x561ea7,_0x1b81c5-_0x244656._0x543796,_0x2e44cf-_0x244656._0x2f3ac5);}return _0x2bba96[_0x6e218f(_0x71fcce._0x20b8df,0x74c,0x7a1,0x7d7)](getLspPackageDir(_0x282f62),_0x127378(_0x71fcce._0x152969,0x3a9,0x3e4,_0x71fcce._0x13fb8d),_0x6e218f(0x424,0x4f7,_0x71fcce._0x44e74b,0x553));}async function findPackageBinary(_0x4fa81c,_0x10521a){const _0x53b4de={_0xa5bf02:0xc4,_0x3ddb99:0x20f,_0x2c67e8:0x136,_0xb10eee:0x306,_0x36dcbe:0x1a7,_0x577dab:0x1ad,_0x30a851:0x13c,_0x271397:0x117,_0x2c2987:0x37},_0x40ddf2={_0x39eba1:0x199,_0x2acc67:0x3b3},_0x1f13b5={_0x319ee1:0x1d4};function _0x4b642d(_0x1446ab,_0x432e4f,_0x5c5180,_0xaf9112){return _0x1932a3(_0x432e4f,_0x432e4f-_0x1f13b5._0x319ee1,_0xaf9112- -0x25c,_0xaf9112-0x1ad);}let _0x1787df=_0x2bba96[_0x4b642d(0xa1,_0x53b4de._0xa5bf02,_0x53b4de._0x3ddb99,_0x53b4de._0x2c67e8)](_0x10521a);const _0x2290a7=binaryNameForPlatform(_0x4fa81c);function _0x23c1a3(_0x3f7cb3,_0x2b17cf,_0x3472fe,_0x4c1a02){return _0x4ab00a(_0x3f7cb3-0x1d1,_0x2b17cf-_0x40ddf2._0x39eba1,_0x4c1a02,_0x3472fe- -_0x40ddf2._0x2acc67);}while(!![]){const _0x382519=_0x2bba96[_0x4b642d(_0x53b4de._0xb10eee,0x236,0x37b,0x29e)](_0x1787df,'node_modules',_0x23c1a3(-_0x53b4de._0x36dcbe,-_0x53b4de._0x577dab,-0x46,-_0x53b4de._0x30a851),_0x2290a7);if(await exists(_0x382519))return _0x382519;const _0x1e85f5=_0x2bba96[_0x4b642d(0x139,-0x8a,_0x53b4de._0x271397,_0x53b4de._0x2c2987)](_0x1787df);if(_0x1e85f5===_0x1787df)return void 0x0;_0x1787df=_0x1e85f5;}}async function findPathBinary(_0x220ad8,_0x3fa4d5){const _0x35001a={_0x3c269d:0xe3,_0x53c8f6:0x22f,_0x114f0f:0x138},_0x130d9d={_0x5b4e6c:0x461,_0x15d810:0xca};function _0x1dd666(_0x22b0cf,_0xf89dde,_0x1c568f,_0x3f51bb){return _0x1932a3(_0x3f51bb,_0xf89dde-0x1ee,_0x22b0cf- -_0x130d9d._0x5b4e6c,_0x3f51bb-_0x130d9d._0x15d810);}const _0x19ce2d=getLspBinDir(_0x3fa4d5),_0x4a04a4=[_0x19ce2d,process['env']['PATH']][_0x1dd666(_0x35001a._0x3c269d,_0x35001a._0x53c8f6,_0x35001a._0x114f0f,0x217)](Boolean)['join'](_0x2bba96['delimiter']);try{return await _0x1cebcf(_0x220ad8,{'path':_0x4a04a4});}catch{return void 0x0;}}async function resolvePackageBinary(_0x32aa06){const _0x14e7c2={_0xed94c6:0x4f1,_0x3d8100:0x4be,_0x46ca35:0x190,_0x3d17bc:0x3c6,_0x4e8a5a:0x2f4,_0x181934:0x124,_0x54f06a:0x1ee,_0x22a155:0x12,_0x9ea14:0x105,_0x12d1a7:0xe8,_0x569c05:0x4ab,_0x163de7:0x518,_0x20eec6:0x1ca,_0x114f0a:0x132,_0x3cf2bc:0x7d},_0x32906b={_0x24fb92:0x415,_0x16a4d2:0x3fd,_0x343541:0x168,_0x24a3b7:0x45b,_0x355fe2:0x3c1},_0x3faf47={_0x1b14c3:0xd9,_0x10226a:0x4e,_0x20db0c:0x31a},_0x2f1dc0={_0x33d788:0x1ce,_0x202cd6:0x1b9},_0x2bc8c9=_0x32aa06[_0x167156(0x626,_0x14e7c2._0xed94c6,_0x14e7c2._0x3d8100,0x6e8)]??_0x32aa06[_0x167156(0x436,0x55e,0x5a0,0x449)],_0x4a5a30=await findPackageBinary(_0x2bc8c9,_0x32aa06[_0x7a34e9(_0x14e7c2._0x46ca35,0x86,0x1db,0x13c)]);function _0x167156(_0x172198,_0x23d432,_0x25873b,_0x4e52ab){return _0x1932a3(_0x23d432,_0x23d432-_0x2f1dc0._0x33d788,_0x172198-0x12b,_0x4e52ab-_0x2f1dc0._0x202cd6);}if(_0x4a5a30)return _0x4a5a30;const _0x3436ab=await findPathBinary(_0x2bc8c9,_0x32aa06['packageName']);if(_0x3436ab)return _0x3436ab;const _0x2a2e1f=_0x32aa06[_0x167156(_0x14e7c2._0x3d17bc,0x3d9,0x4cc,_0x14e7c2._0x4e8a5a)]??process[_0x7a34e9(_0x14e7c2._0x181934,_0x14e7c2._0x54f06a,_0x14e7c2._0x22a155,0x78)];if(shouldDisableLspDownload(_0x2a2e1f))return void 0x0;const _0x4d2062=getLspPackageDir(_0x32aa06[_0x7a34e9(_0x14e7c2._0x9ea14,0xdb,0x19c,_0x14e7c2._0x12d1a7)]),_0x55970d=_0x32aa06[_0x167156(0x436,0x3f7,_0x14e7c2._0x569c05,0x53a)]+':'+_0x2bc8c9;let _0x169c31=installPromises['get'](_0x55970d);function _0x7a34e9(_0x169c4f,_0x8c807d,_0x5df780,_0x8c1e2e){return _0x4ab00a(_0x169c4f-_0x3faf47._0x1b14c3,_0x8c807d-_0x3faf47._0x10226a,_0x169c4f,_0x8c1e2e- -_0x3faf47._0x20db0c);}!_0x169c31&&(_0x169c31=((async()=>{const _0x24f279={_0x3b2957:0x1},_0x2170ad={_0x372fa7:0x1a8};await mkdir(_0x4d2062,{'recursive':!![]});const _0x4851a2=await runNpmInstall(_0x4d2062,_0x32aa06[_0x35529c(0x2bf,0x472,_0x32906b._0x24fb92,_0x32906b._0x16a4d2)],_0x2a2e1f);if(!_0x4851a2)return void 0x0;function _0x37aea5(_0x5d3cee,_0x292bc5,_0xf2b9b5,_0x1fda11){return _0x7a34e9(_0x1fda11,_0x292bc5-0x5,_0xf2b9b5-_0x2170ad._0x372fa7,_0x292bc5- -0xc2);}const _0x10071a=_0x2bba96[_0x37aea5(0x2fd,0x215,0x168,_0x32906b._0x343541)](getLspBinDir(_0x32aa06[_0x35529c(_0x32906b._0x24a3b7,_0x32906b._0x355fe2,0x56e,0x3fd)]),binaryNameForPlatform(_0x2bc8c9));function _0x35529c(_0x647052,_0xe3377f,_0x5144d9,_0x3c9256){return _0x167156(_0x3c9256- -0x39,_0x5144d9,_0x5144d9-_0x24f279._0x3b2957,_0x3c9256-0x156);}return await exists(_0x10071a)?_0x10071a:void 0x0;})()),installPromises[_0x167156(0x630,0x559,_0x14e7c2._0x163de7,0x71c)](_0x55970d,_0x169c31));try{return await _0x169c31;}catch{return void 0x0;}finally{installPromises[_0x7a34e9(_0x14e7c2._0x20eec6,-0x29,_0x14e7c2._0x114f0a,_0x14e7c2._0x3cf2bc)](_0x55970d);}}var TYPESCRIPT_EXTENSIONS=[_0x4ab00a(0x5d6,0x595,0x47c,0x518),_0x1932a3(0x291,0x3e3,0x3a5,0x3f5),_0x1932a3(0x48c,0x273,0x3c2,0x50f),_0x1932a3(0x3d0,0x549,0x3fa,0x4ab),'.mjs',_0x1932a3(0x263,0x1cd,0x328,0x221),_0x4ab00a(0x471,0x2b4,0x3af,0x3d4),_0x1932a3(0x5bf,0x63d,0x4c7,0x490)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x4ab00a(0x4cf,0x430,0x485,0x59a)],TYPESCRIPT_ROOT_MARKERS=['package-lock.json',_0x1932a3(0x363,0x372,0x3af,0x3e3),_0x4ab00a(0x37d,0x572,0x556,0x4a7),_0x4ab00a(0x540,0x51b,0x626,0x62e),'yarn.lock',_0x1932a3(0x19e,0x157,0x2cf,0x3cb),'jsconfig.json',_0x4ab00a(0x5da,0x568,0x690,0x5b6)],BIOME_ROOT_MARKERS=['biome.json',_0x4ab00a(0x219,0x377,0x43a,0x383),_0x4ab00a(0x4ff,0x4fe,0x494,0x592),_0x1932a3(0x4dc,0x2c6,0x3af,0x340),'bun.lock',_0x4ab00a(0x6ed,0x55c,0x700,0x62e),_0x4ab00a(0x2fc,0x506,0x339,0x3c7),_0x1932a3(0x494,0x4ad,0x4bf,0x3b7)];async function exists2(_0x19c88b){try{return await _0x461961(_0x19c88b),!![];}catch{return![];}}async function findUp(_0x21744d,_0x5bd9e9){const _0x1650b7={_0x1c47d9:0x53c,_0x4f9b10:0x4dd,_0x2739fd:0x7e,_0x1aedf7:0x21e,_0x472099:0x223,_0x56e27e:0x28b},_0x1a6688={_0x538ba0:0xec},_0x20be5c={_0x3dac:0xc0,_0x189a1e:0x54};function _0x1eecb6(_0x356595,_0x154a1d,_0x56b1b3,_0x4aa6d3){return _0x4ab00a(_0x356595-0x1c4,_0x154a1d-_0x20be5c._0x3dac,_0x154a1d,_0x4aa6d3-_0x20be5c._0x189a1e);}let _0x2e43cf=_0x4577a3[_0x1eecb6(0x526,0x626,_0x1650b7._0x1c47d9,_0x1650b7._0x4f9b10)](_0x21744d);function _0x4f82d1(_0x369197,_0x31f584,_0x464daa,_0x2750f2){return _0x1932a3(_0x369197,_0x31f584-0x3a,_0x464daa- -0x38b,_0x2750f2-_0x1a6688._0x538ba0);}const _0xc0f9a9=_0x4577a3[_0x4f82d1(_0x1650b7._0x2739fd,0x29a,0x1a3,_0x1650b7._0x1aedf7)](_0x2e43cf);if(_0xc0f9a9)_0x2e43cf=_0x4577a3[_0x1eecb6(0x2a1,0x2ad,0x4e6,0x3de)](_0x2e43cf);while(!![]){for(const _0x23de4c of _0x5bd9e9){if(await exists2(_0x4577a3[_0x4f82d1(0x1f5,_0x1650b7._0x472099,0x16f,_0x1650b7._0x56e27e)](_0x2e43cf,_0x23de4c)))return _0x2e43cf;}const _0x29f325=_0x4577a3['dirname'](_0x2e43cf);if(_0x29f325===_0x2e43cf)return void 0x0;_0x2e43cf=_0x29f325;}}async function hasDenoRoot(_0x4fa556){const _0x1978b1={_0x379a74:0x436,_0x3059b2:0x491,_0x38847f:0x14d,_0x3eaff4:0x5b2,_0x460830:0x529,_0x114490:0x483},_0x509a2b={_0x3abf3f:0x137,_0x5f4b00:0x103},_0x18eb62={_0x5316ef:0x1ad,_0x466ade:0x1};function _0x3c4b05(_0x521b5a,_0x2066e0,_0x337eb1,_0x581136){return _0x4ab00a(_0x521b5a-_0x18eb62._0x5316ef,_0x2066e0-_0x18eb62._0x466ade,_0x2066e0,_0x337eb1- -0x2cb);}function _0x413163(_0x456d2e,_0x13c9c7,_0x28043c,_0x363d89){return _0x4ab00a(_0x456d2e-_0x509a2b._0x3abf3f,_0x13c9c7-_0x509a2b._0x5f4b00,_0x13c9c7,_0x28043c- -0x3f);}return await exists2(_0x4577a3[_0x3c4b05(0x43a,_0x1978b1._0x379a74,0x326,_0x1978b1._0x3059b2)](_0x4fa556,_0x3c4b05(0xc,-0x1c,_0x1978b1._0x38847f,0x189)))||await exists2(_0x4577a3[_0x413163(0x4f5,0x641,_0x1978b1._0x3eaff4,0x51a)](_0x4fa556,_0x413163(_0x1978b1._0x460830,_0x1978b1._0x114490,0x4b3,0x449)));}async function resolveTsserverPath(_0x5e672e){const _0x1cb20e={_0x140f18:0x52c,_0x491c17:0x661,_0x9402a5:0x694,_0x5bd9ed:0x690,_0x1eb9b4:0x473,_0x46bb4a:0x365,_0x51cdae:0x36e,_0x1cf89b:0x49d,_0xd57c31:0x670,_0x43a305:0x693,_0x2da8bc:0x630,_0x248db3:0x6ae,_0x20218d:0x6cc,_0x89fd15:0x6c9,_0xd0c14e:0x60c,_0x1f80d6:0x6ea,_0x414cb3:0x6b5,_0x350cbc:0x474,_0x35168a:0x490,_0x4b21ae:0x921,_0x2c8dde:0x933,_0x5a11d0:0x84e,_0x4d6705:0x5da,_0x5ec605:0x84d,_0x37fd04:0x706},_0x1e459d={_0x5ec558:0x1c6},_0x44f3d2={_0x16ed66:0x169,_0x3ec94d:0xa3};function _0x5c6588(_0x1b92df,_0x37b683,_0x2a2212,_0x4946bf){return _0x4ab00a(_0x1b92df-0xcc,_0x37b683-_0x44f3d2._0x16ed66,_0x4946bf,_0x1b92df-_0x44f3d2._0x3ec94d);}let _0x428123=_0x4577a3[_0x5c6588(_0x1cb20e._0x140f18,0x6a0,_0x1cb20e._0x491c17,0x3c5)](_0x5e672e);while(!![]){const _0x46c6dd=_0x4577a3[_0x5c6588(_0x1cb20e._0x9402a5,_0x1cb20e._0x5bd9ed,0x609,0x627)](_0x428123,_0x5c6588(_0x1cb20e._0x1eb9b4,0x5b7,_0x1cb20e._0x46bb4a,0x4f2),_0x5c6588(0x474,_0x1cb20e._0x51cdae,_0x1cb20e._0x1cf89b,0x46e),_0x5c6588(0x575,_0x1cb20e._0xd57c31,_0x1cb20e._0x43a305,_0x1cb20e._0x2da8bc),_0x283f75(_0x1cb20e._0x248db3,_0x1cb20e._0x20218d,_0x1cb20e._0x89fd15,_0x1cb20e._0xd0c14e));if(await exists2(_0x46c6dd))return _0x46c6dd;const _0x35d5ff=_0x4577a3[_0x283f75(_0x1cb20e._0x1f80d6,_0x1cb20e._0x414cb3,0x4d7,0x590)](_0x428123);if(_0x35d5ff===_0x428123)break;_0x428123=_0x35d5ff;}const _0x3352ff=getLspPackageDir(_0x5c6588(_0x1cb20e._0x350cbc,0x33c,0x52f,_0x1cb20e._0x35168a)),_0xa6b70c=await resolvePackageBinary({'packageName':'typescript','binaryName':_0x283f75(0x907,_0x1cb20e._0x4b21ae,_0x1cb20e._0x2c8dde,_0x1cb20e._0x5a11d0),'startDir':_0x5e672e});if(!_0xa6b70c)return void 0x0;const _0x8f45e4=_0x4577a3['join'](_0x3352ff,_0x283f75(_0x1cb20e._0x4d6705,0x4cc,0x645,0x5d6),'typescript',_0x283f75(0x60a,_0x1cb20e._0x5ec605,_0x1cb20e._0x37fd04,0x6d8),_0x283f75(0x52c,0x578,0x54c,_0x1cb20e._0xd0c14e));function _0x283f75(_0x408bb1,_0x51a9de,_0x4643fa,_0xe55ccb){return _0x1932a3(_0x51a9de,_0x51a9de-0x1b0,_0xe55ccb-0x2fd,_0xe55ccb-_0x1e459d._0x5ec558);}return await exists2(_0x8f45e4)?_0x8f45e4:void 0x0;}var TypeScriptServer={'id':_0x4ab00a(0x40d,0x437,0x490,0x3d1),'name':_0x4ab00a(0x5d6,0x6ee,0x5aa,0x612),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x87461b){const _0x3a7024=await findUp(_0x87461b,TYPESCRIPT_ROOT_MARKERS);if(!_0x3a7024)return void 0x0;return await hasDenoRoot(_0x3a7024)?void 0x0:_0x3a7024;},async 'spawn'(_0x2358a4){const _0x4c4518={_0x3238cd:0x1bf,_0x24673b:0x7b,_0x33d42a:0x1e4,_0x43fcbc:0x1a5,_0x36d448:0xbd},_0x3618e5={_0xabe253:0x1d},_0x48b6b8={_0x2282a1:0x133,_0x2b80b4:0x1d3,_0x379943:0x3f};function _0x1961cb(_0x210ef1,_0x44fbad,_0x224f66,_0x3a61f9){return _0x4ab00a(_0x210ef1-_0x48b6b8._0x2282a1,_0x44fbad-_0x48b6b8._0x2b80b4,_0x224f66,_0x210ef1-_0x48b6b8._0x379943);}function _0x190925(_0x20943d,_0x1a65cc,_0x50146f,_0x584843){return _0x4ab00a(_0x20943d-0x72,_0x1a65cc-_0x3618e5._0xabe253,_0x20943d,_0x584843- -0x56e);}const _0x3245ac=await resolveTsserverPath(_0x2358a4);if(!_0x3245ac)return void 0x0;const _0x2d891c=await resolvePackageBinary({'packageName':_0x190925(-_0x4c4518._0x3238cd,-0xe0,-_0x4c4518._0x24673b,-0x1d2),'binaryName':_0x190925(-_0x4c4518._0x33d42a,-0x300,-_0x4c4518._0x43fcbc,-0x1d2),'startDir':_0x2358a4});if(!_0x2d891c)return void 0x0;return{'process':_0x4982e0(_0x2d891c,['--stdio'],{'cwd':_0x2358a4,'stdio':_0x190925(_0x4c4518._0x36d448,-0xd1,-0x17f,-0xb0)}),'initialization':{'tsserver':{'path':_0x3245ac}}};}},BiomeServer={'id':'biome','name':'Biome\x20Language\x20Server','extensions':BIOME_EXTENSIONS,async 'root'(_0x4e9226){return findUp(_0x4e9226,BIOME_ROOT_MARKERS);},async 'spawn'(_0x489d8a){const _0x4dca5f={_0x54822d:0x5ce,_0x1e97cb:0x536,_0x1c67b6:0x5d7,_0x547a8c:0x6f5,_0x35149e:0x5e7,_0x44fba9:0x493,_0x14596c:0x65f,_0x3fd2d:0x4bc,_0x50a260:0x522,_0x2fc3e6:0x3e4,_0x4fe480:0x5d5,_0xe36804:0x571},_0x3ae2ee={_0x1621c7:0x1bb},_0x2599ab={_0x45f8e2:0x93,_0x2b6402:0x18};function _0xca5d08(_0x1f7456,_0x1afb48,_0x5cafd5,_0x28b672){return _0x4ab00a(_0x1f7456-_0x2599ab._0x45f8e2,_0x1afb48-_0x2599ab._0x2b6402,_0x1afb48,_0x1f7456-0x117);}const _0x3b7fd3=await findPackageBinary(_0xca5d08(_0x4dca5f._0x54822d,0x46b,_0x4dca5f._0x1e97cb,0x619),_0x489d8a)??await resolvePackageBinary({'packageName':_0xca5d08(0x513,_0x4dca5f._0x1c67b6,0x4bb,0x622),'binaryName':_0xca5d08(0x5ce,_0x4dca5f._0x547a8c,_0x4dca5f._0x35149e,_0x4dca5f._0x44fba9),'startDir':_0x489d8a});if(!_0x3b7fd3)return void 0x0;function _0x554a52(_0x2ce5e2,_0x53e757,_0x5e0a7d,_0x1c63cc){return _0x4ab00a(_0x2ce5e2-0x1dc,_0x53e757-0x80,_0x1c63cc,_0x53e757-_0x3ae2ee._0x1621c7);}return{'process':_0x4982e0(_0x3b7fd3,[_0xca5d08(0x6d4,_0x4dca5f._0x14596c,0x813,0x60e),_0xca5d08(_0x4dca5f._0x3fd2d,0x387,_0x4dca5f._0x50a260,_0x4dca5f._0x2fc3e6)],{'cwd':_0x489d8a,'stdio':_0xca5d08(_0x4dca5f._0x4fe480,_0x4dca5f._0xe36804,0x68a,0x4fc)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x317624){const _0x2cee44={_0x6434be:0x739,_0x2c37f2:0x82f,_0x1ebdd2:0x72d,_0x2b29e2:0x3ab,_0xc2f0c6:0x684,_0x5660a6:0x2b5,_0x568785:0x1b4},_0x3e7a50={_0x24376c:0x1b3},_0x3d5662={_0x375e23:0xfe,_0x53ac15:0x12d,_0x3cf773:0x108};function _0x66fab8(_0x4d654f,_0x4ec116,_0x1f3759,_0x44ff53){return _0x4ab00a(_0x4d654f-_0x3d5662._0x375e23,_0x4ec116-_0x3d5662._0x53ac15,_0x4d654f,_0x44ff53-_0x3d5662._0x3cf773);}function _0x4cb4d2(_0x1332c3,_0x5438b2,_0x3a1b31,_0x1f3e47){return _0x4ab00a(_0x1332c3-_0x3e7a50._0x24376c,_0x5438b2-0x42,_0x1f3e47,_0x3a1b31- -0x4d4);}const _0x422b20=_0x4577a3[_0x66fab8(_0x2cee44._0x6434be,_0x2cee44._0x2c37f2,0x672,_0x2cee44._0x1ebdd2)](_0x317624)[_0x66fab8(_0x2cee44._0x2b29e2,0x575,_0x2cee44._0xc2f0c6,0x515)]();return BUILTIN_LSP_SERVERS[_0x4cb4d2(_0x2cee44._0x5660a6,0x2bb,0x167,_0x2cee44._0x568785)](_0x8dbce5=>_0x8dbce5[_0x66fab8(0x5f6,0x543,0x3f9,0x49d)][_0x4cb4d2(0x50,0xb2,-0x87,-0x129)](_0x422b20));}function stateKey(_0x5cedb8,_0x349ef5){return _0x349ef5+':'+_0x5cedb8['id'];}function diagnosticsKeyToPath(_0x259939){const _0x2387a0={_0x425091:0x17a,_0x5593f7:0x4a},_0x24e084={_0xb2bfff:0xeb},_0x5ba878={_0x29414b:0x48,_0x34a675:0xb6};if(!_0x259939[_0x3e28cf(0x573,0x409,0x44b,0x3ce)](_0x5a268a(-_0x2387a0._0x425091,-_0x2387a0._0x5593f7,0xfb,0xac)))return _0x259939;function _0x3e28cf(_0x33fbc0,_0x4fe205,_0x3ac006,_0x1c6fea){return _0x4ab00a(_0x33fbc0-_0x5ba878._0x29414b,_0x4fe205-0xbc,_0x1c6fea,_0x3ac006- -_0x5ba878._0x34a675);}function _0x5a268a(_0x4a2472,_0xe26e2e,_0x42a0c0,_0x4fab0a){return _0x4ab00a(_0x4a2472-0xa4,_0xe26e2e-_0x24e084._0xb2bfff,_0x4a2472,_0xe26e2e- -0x5b6);}return fileURLToPath(_0x259939);}function nextFileVersion(_0x4f0391,_0x3b67d6){const _0x4873b5={_0x4d9f40:0x99,_0x47dee2:0xd,_0x42a9e3:0x297,_0x4f9458:0x1e7,_0x3ae987:0x1ce,_0x1aafee:0x326},_0x3d86e1={_0x108d3c:0x5bc},_0x2c3537={_0x6cee32:0x1a2,_0x57c604:0x337},_0x4e3bb9=(_0x4f0391[_0x4f1709(0xa8,-_0x4873b5._0x4d9f40,0xb,_0x4873b5._0x47dee2)][_0x2a22c2(0x337,0x1d2,0x152,_0x4873b5._0x42a9e3)](_0x3b67d6)??0x1)+0x1;function _0x2a22c2(_0x163688,_0x200655,_0x495b42,_0x374d49){return _0x1932a3(_0x163688,_0x200655-_0x2c3537._0x6cee32,_0x200655- -_0x2c3537._0x57c604,_0x374d49-0xa3);}_0x4f0391[_0x2a22c2(_0x4873b5._0x4f9458,0xf5,0x94,0xa0)][_0x2a22c2(0x9b,_0x4873b5._0x3ae987,_0x4873b5._0x1aafee,0x195)](_0x3b67d6,_0x4e3bb9);function _0x4f1709(_0x47cb5b,_0x7820b2,_0x2c2ed3,_0x5c965d){return _0x4ab00a(_0x47cb5b-0x6a,_0x7820b2-0x29,_0x5c965d,_0x7820b2- -_0x3d86e1._0x108d3c);}return _0x4e3bb9;}async function collectClientResults(_0x4a368e){const _0x1bdc4e={_0x330f54:0x32a,_0x168dee:0x28e,_0x314d84:0x476,_0x418fb8:0x508,_0x27aedc:0x4a9},_0x2aaa0e={_0xdcb003:0xa6},_0x400f2c={_0x50e9a2:0xfd},_0x24c753=await Promise[_0x23c055(0x34e,_0x1bdc4e._0x330f54,_0x1bdc4e._0x168dee,_0x1bdc4e._0x314d84)](_0x4a368e);function _0x23c055(_0x5e4730,_0x5f0f61,_0x59f2a5,_0x469ab4){return _0x1932a3(_0x5e4730,_0x5f0f61-0xd8,_0x5f0f61-0x61,_0x469ab4-_0x400f2c._0x50e9a2);}function _0x44d267(_0x59891b,_0x578caa,_0x5a68e7,_0x20182e){return _0x1932a3(_0x5a68e7,_0x578caa-0x103,_0x20182e-0x11c,_0x20182e-_0x2aaa0e._0xdcb003);}return _0x24c753[_0x44d267(_0x1bdc4e._0x418fb8,0x530,0x4b2,_0x1bdc4e._0x27aedc)](_0x170efd=>_0x170efd[_0x23c055(0x1c0,0x2e0,0x435,0x2c1)]===_0x44d267(0x5c3,0x60f,0x653,0x58f)?_0x170efd[_0x23c055(0x526,0x59e,0x605,0x6d2)]:[]);}function createLspService(_0x3fa06a={}){const _0x251777={_0x595bb3:0x66d,_0x50a788:0x448},_0x1b3d44={_0x518278:0x70b,_0x115f0a:0x2a,_0x167b69:0xc2,_0x4ffbbd:0x151,_0x5d4e59:0x452,_0xdd3ca1:0x4a4,_0x165e45:0x112,_0x5ac667:0x64,_0xc41db:0x54,_0x4ff667:0xe6,_0x3a1a85:0x3c,_0x5766c3:0x6a1,_0x38853e:0x5aa,_0xfb167f:0x5de,_0x1e0126:0x699,_0x43ace3:0x52c,_0xd398c3:0x59,_0x471132:0xed,_0x561580:0x6a3,_0x2c2d96:0x591,_0xb65770:0x6c8,_0x8eb3c0:0x669},_0x5848b0={_0x84dee:0x7f,_0x33a9c6:0x16b},_0x5911eb={_0x4a9baf:0x3e5,_0x3e215f:0x473,_0x131ffc:0x4b7},_0x36ee58={_0x4cac9e:0xe0,_0x22cd04:0x59},_0x5ce95e={_0xee82e5:0x7a,_0x2135f0:0x37d},_0x4ab813={_0x583ac0:0x92,_0x3deea4:0x315,_0x181cb7:0x54},_0x51a64f={_0x475a43:0x118,_0x28b486:0xc2},_0x481114={_0x532fcd:0x382,_0x2dbc4b:0x561},_0x460af6={_0x14efc6:0xdb},_0x32f7bd={_0x26bbdf:0x1e1,_0x9819b9:0x124,_0x267c8a:0xb0},_0x50223a={_0x2cf17b:0x2dd,_0x10a180:0x124,_0x254ba8:0x31f,_0x27a88d:0x2dc,_0x23e4a0:0x244,_0x3b0cab:0x247,_0x6632dc:0x339},_0x50ded4={_0x3f107e:0xab,_0x1b11a0:0x99},_0x1ff51f={_0x53dc11:0x9f},_0x24914a={_0x49f9da:0x1dd,_0x2eaa08:0x381,_0x4d7e4f:0x171},_0x273fde={_0x3a0b27:0x59a},_0x3e605e={_0x1f5154:0x60,_0x489e6a:0x261,_0x3adbc2:0x161},_0x50d692={_0x1c504f:0x44e,_0x1ee6d3:0x390,_0x44455a:0x473},_0x3481ed={_0x1514df:0xcc,_0x2116e8:0xa6},_0x438ff1={_0x58ba86:0x15c,_0x15591e:0x1c8},_0x39a4bd={_0x332880:0x153,_0x18d263:0xea,_0x4c84a1:0x77,_0x5c369e:0x64,_0x4181c9:0x28d,_0x2fbc4e:0x1ed},_0x3788cb={_0xacd7df:0x113,_0x1035f4:0x40},_0x1a287d={_0x292687:0x4f,_0x2d0bb5:0x4f,_0x1ce546:0xe9,_0x10af68:0xe9,_0x4fae12:0x66},_0x44a3dc={_0x2e7392:0x54,_0x28fbdd:0x1a9},_0x2c06cf={_0x1a919c:0x95},_0x5d2246={_0x29e4de:0x154,_0x3b8df7:0x1be},_0x2081ea={_0x3ed5fd:0x460,_0x1054d:0x350},_0xeffaf5={_0x14fabf:0x132},_0x85cfd7={_0x59fd38:0x74,_0x59c30b:0x3f,_0x11873b:0x52,_0x492593:0x1c9},_0x47e0cd={_0x2e4496:0x453,_0x4be27e:0x182,_0x2c6ee8:0x2d4,_0x432f19:0x342,_0x59ecf6:0x385,_0x4875d8:0x3b9,_0x318e0b:0x4b7,_0x194413:0x1de,_0x267846:0x1e7,_0x4012fe:0x5de,_0x2693d7:0x5d2},_0x41a21d={_0xdb7c4e:0x1a6,_0x56a2e5:0x7d},_0x153c31={_0xf9a24a:0x209,_0x310abc:0x163,_0x1f2f30:0x17f,_0x5cab6a:0x169,_0xd748e7:0x170,_0x4af310:0x5d,_0x492adb:0x6c,_0x411dc7:0x2af,_0x2aa995:0x13f,_0x1c0193:0x19e,_0x111571:0x2b,_0x20ceb2:0x1fc,_0x35d242:0x2dd,_0x236f32:0x478},_0x3ab0f5={_0x5748ff:0x51a,_0x47e7cf:0x42e,_0x4c7c9a:0x8b8,_0x127e6b:0x849,_0xbd376e:0x4e9,_0x2fbe89:0x425,_0x379f79:0x720,_0x17ad93:0x5cd,_0x504c35:0x5ec,_0x401d35:0x53f,_0x18c1a1:0x633,_0x3e66db:0x4e1,_0x2a5cbd:0x487,_0x40326f:0x60c,_0x23772d:0x458,_0x39f7e7:0x485,_0x52eae4:0x32c,_0x1cd684:0x28c,_0x7ff686:0x824,_0x4eff05:0x784,_0x59ee49:0x660,_0x39f9ea:0x898,_0x4d7ee4:0x7d0,_0x744f46:0x7b4,_0x36f773:0x138,_0x5e5677:0x14b},_0x135151={_0x14a52d:0x2e},_0x2d4e33={_0x5064ad:0x3},_0xb2f5f={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x1f9468=()=>_0x3fa06a[_0x106950(0x1ff,0x31c,0x264,0x1b5)]!==![];function _0x106950(_0x1b3d2a,_0x527657,_0x2c03ab,_0x49040f){return _0x4ab00a(_0x1b3d2a-0x11c,_0x527657-_0x2d4e33._0x5064ad,_0x527657,_0x2c03ab- -0x115);}async function _0x5db323(_0x54a040,_0x457921){const _0x3ed8b4={_0x5cfd47:0x1ca},_0x1d7b53={_0x400156:0x18b},_0x1e1228=stateKey(_0x54a040,_0x457921),_0x3e7929=_0xb2f5f[_0x936c44(_0x153c31._0xf9a24a,_0x153c31._0x310abc,0x2cf,_0x153c31._0x1f2f30)][_0x936c44(_0x153c31._0x5cab6a,0x1c9,_0x153c31._0xd748e7,0x215)](_0x24b446=>_0x24b446[_0x936c44(0x242,0x3b7,0x26d,0x4ec)]===_0x54a040['id']&&_0x24b446[_0x936c44(0x161,0x2cb,0x30f,0x239)]===_0x457921);if(_0x3e7929)return _0x3e7929;if(_0xb2f5f['broken'][_0x39ba85(-0x15,_0x153c31._0x4af310,-0x30,-_0x153c31._0x492adb)](_0x1e1228))return void 0x0;const _0x443679=_0xb2f5f[_0x936c44(0x2a0,_0x153c31._0x411dc7,0x377,_0x153c31._0x2aa995)][_0x39ba85(0xfe,_0x153c31._0x1c0193,0x176,_0x153c31._0x111571)](_0x1e1228);function _0x936c44(_0x376b30,_0x401c47,_0x56b01c,_0x321467){return _0x106950(_0x376b30-0xce,_0x56b01c,_0x401c47- -_0x1d7b53._0x400156,_0x321467-0x88);}if(_0x443679)return _0x443679;function _0x39ba85(_0xa35445,_0x50852e,_0x17d62e,_0x4b7b92){return _0x106950(_0xa35445-_0x135151._0x14a52d,_0xa35445,_0x17d62e- -0x375,_0x4b7b92-0xba);}const _0x4d0305=((async()=>{function _0x2942f3(_0x4b3c08,_0x5b36bd,_0x5b5f68,_0x2dcbb1){return _0x39ba85(_0x5b5f68,_0x5b36bd-0x65,_0x4b3c08-0x22b,_0x2dcbb1-_0x3ed8b4._0x5cfd47);}function _0x4b86b9(_0x3ac79a,_0x354d2c,_0x102308,_0x50074a){return _0x39ba85(_0x354d2c,_0x354d2c-0xf0,_0x102308-0x654,_0x50074a-0x150);}try{const _0x8556d1=await _0x54a040[_0x4b86b9(0x480,_0x3ab0f5._0x5748ff,0x598,_0x3ab0f5._0x47e7cf)](_0x457921);if(!_0x8556d1)return _0xb2f5f[_0x4b86b9(_0x3ab0f5._0x4c7c9a,_0x3ab0f5._0x127e6b,0x784,0x825)][_0x2942f3(0x3a7,_0x3ab0f5._0xbd376e,_0x3ab0f5._0x2fbe89,0x4ec)](_0x1e1228),void 0x0;const _0x2b1c00=await createLspClient({'server':_0x54a040,'root':_0x457921,'handle':_0x8556d1}),_0x1a126b=_0xb2f5f[_0x4b86b9(0x721,_0x3ab0f5._0x379f79,_0x3ab0f5._0x17ad93,_0x3ab0f5._0x504c35)][_0x4b86b9(_0x3ab0f5._0x401d35,0x62d,_0x3ab0f5._0x18c1a1,_0x3ab0f5._0x3e66db)](_0x5dd414=>_0x5dd414['serverId']===_0x54a040['id']&&_0x5dd414[_0x2942f3(0x30c,0x1a8,0x40a,0x21f)]===_0x457921);if(_0x1a126b)return await _0x2b1c00[_0x4b86b9(_0x3ab0f5._0x2a5cbd,_0x3ab0f5._0x40326f,0x548,_0x3ab0f5._0x23772d)](),_0x1a126b;return _0xb2f5f[_0x4b86b9(0x6f3,_0x3ab0f5._0x39f7e7,_0x3ab0f5._0x17ad93,0x612)][_0x2942f3(_0x3ab0f5._0x52eae4,0x23e,_0x3ab0f5._0x1cd684,0x34a)](_0x2b1c00),_0x2b1c00;}catch{return _0xb2f5f[_0x4b86b9(0x8ee,_0x3ab0f5._0x7ff686,_0x3ab0f5._0x4eff05,_0x3ab0f5._0x59ee49)][_0x4b86b9(0x923,_0x3ab0f5._0x39f9ea,_0x3ab0f5._0x4d7ee4,0x6b5)](_0x1e1228),void 0x0;}finally{_0xb2f5f[_0x4b86b9(0x6b9,_0x3ab0f5._0x744f46,0x719,0x698)][_0x2942f3(_0x3ab0f5._0x36f773,_0x3ab0f5._0x5e5677,0xb5,0xa6)](_0x1e1228);}})());return _0xb2f5f['spawning'][_0x936c44(_0x153c31._0x20ceb2,0x35c,_0x153c31._0x35d242,_0x153c31._0x236f32)](_0x1e1228,_0x4d0305),_0x4d0305;}async function _0x5cfcba(_0x491b5c,_0x4a9a8a){const _0x5acc04={_0x4b48a9:0x1a6,_0x10e7f3:0x323};if(!_0x1f9468())return[];function _0x35f93d(_0x12d3b4,_0x643a8e,_0x313978,_0x47144b){return _0x106950(_0x12d3b4-_0x41a21d._0xdb7c4e,_0x643a8e,_0x12d3b4- -0x3,_0x47144b-_0x41a21d._0x56a2e5);}function _0x10e0fc(_0x5d839c,_0x5a34b0,_0x2afff0,_0x5b88da){return _0x106950(_0x5d839c-_0x5acc04._0x4b48a9,_0x5a34b0,_0x2afff0- -_0x5acc04._0x10e7f3,_0x5b88da-0x56);}const _0x23d4de=[];for(const _0x16d9b2 of getServersForFile(_0x491b5c)){const _0x48f5d1=await _0x16d9b2[_0x35f93d(_0x47e0cd._0x2e4496,0x3f4,0x4d2,0x56b)](_0x491b5c);if(!_0x48f5d1)continue;const _0x1ba974=stateKey(_0x16d9b2,_0x48f5d1);if(_0xb2f5f[_0x10e0fc(0x225,0x24a,_0x47e0cd._0x4be27e,_0x47e0cd._0x2c6ee8)][_0x35f93d(_0x47e0cd._0x432f19,_0x47e0cd._0x59ecf6,_0x47e0cd._0x4875d8,_0x47e0cd._0x318e0b)](_0x1ba974))continue;const _0x5631af=_0xb2f5f['clients'][_0x35f93d(0x351,_0x47e0cd._0x194413,_0x47e0cd._0x267846,0x1f2)](_0x3b5567=>_0x3b5567[_0x10e0fc(0x243,0x2dd,0x21f,0x304)]===_0x16d9b2['id']&&_0x3b5567['root']===_0x48f5d1);if(_0x5631af){_0x23d4de['push'](_0x5631af);continue;}if(!_0x4a9a8a)continue;const _0x3a6a16=await _0x5db323(_0x16d9b2,_0x48f5d1);if(_0x3a6a16)_0x23d4de[_0x35f93d(0x473,_0x47e0cd._0x4012fe,_0x47e0cd._0x2693d7,0x31a)](_0x3a6a16);}return _0x23d4de;}async function _0xb2945b(_0xdddd75,_0x4ddc37=![]){const _0x249631={_0x31c7f2:0x79e,_0x4020a4:0x703,_0x479e91:0x529,_0x1b7820:0x5b4,_0x26f2da:0x75e,_0x3355ef:0x532,_0x1dfd74:0x610,_0xf6df84:0x84c,_0x5ba5b7:0x680,_0x1b57e2:0x5f9,_0x49f57d:0x698,_0x136440:0x543},_0x51a159={_0x3ec603:0x62},_0x5ce277={_0xd18854:0x16c,_0x37daba:0x298,_0x1b8ddc:0xb9},_0x4c8c57={_0x29a160:0x44d,_0x543bd8:0x32};function _0x3572e2(_0x34ceb4,_0x58a9b5,_0x28b3e0,_0x913465){return _0x106950(_0x34ceb4-0x50,_0x913465,_0x58a9b5- -_0x4c8c57._0x29a160,_0x913465-_0x4c8c57._0x543bd8);}const _0x21b004=await _0x5cfcba(_0xdddd75,!![]);function _0x3b5904(_0xe6c6bf,_0x7e7438,_0x19b15e,_0xb9510c){return _0x106950(_0xe6c6bf-_0x5ce277._0xd18854,_0xe6c6bf,_0xb9510c-_0x5ce277._0x37daba,_0xb9510c-_0x5ce277._0x1b8ddc);}await Promise[_0x3572e2(-0x33,-_0x85cfd7._0x59fd38,_0x85cfd7._0x59c30b,-_0x85cfd7._0x11873b)](_0x21b004[_0x3572e2(0x29,-0x11c,-0x8a,-_0x85cfd7._0x492593)](async _0x182324=>{!_0xb2f5f['openFiles']['has'](_0x182324['serverId']+':'+_0x182324[_0x3d060d(0x68c,_0x249631._0x31c7f2,_0x249631._0x4020a4,0x6aa)]+':'+_0xdddd75)&&(await _0x182324['notify']['open']({'path':_0xdddd75}),_0xb2f5f[_0x192ac4(_0x249631._0x479e91,0x71d,0x67b,_0x249631._0x1b7820)]['add'](_0x182324['serverId']+':'+_0x182324[_0x192ac4(_0x249631._0x26f2da,0x727,_0x249631._0x3355ef,0x649)]+':'+_0xdddd75));function _0x3d060d(_0x299962,_0x4409a0,_0x3e943b,_0x4de610){return _0x3b5904(_0x4de610,_0x4409a0-0x1d4,_0x3e943b-0xf,_0x299962- -_0x51a159._0x3ec603);}function _0x192ac4(_0xf9a5c4,_0x41b722,_0xdf79fb,_0x5907a4){return _0x3b5904(_0x41b722,_0x41b722-0xfa,_0xdf79fb-0x28,_0x5907a4- -0xa5);}await _0x182324[_0x3d060d(0x752,_0x249631._0x1dfd74,_0x249631._0xf6df84,_0x249631._0x5ba5b7)][_0x3d060d(0x740,0x7ae,0x65b,_0x249631._0x1b57e2)]({'path':_0xdddd75,'version':nextFileVersion(_0xb2f5f,_0xdddd75)});if(_0x4ddc37)await _0x182324[_0x192ac4(0x603,0x49a,_0x249631._0x49f57d,_0x249631._0x136440)]({'path':_0xdddd75});}));}async function _0x2715f(_0x3f5698){const _0x4daeee={_0x515c28:0xe7,_0x365000:0x144};function _0x326ec8(_0x30bbc7,_0x2533bd,_0x267940,_0x4b9f45){return _0x106950(_0x30bbc7-0x39,_0x267940,_0x30bbc7-_0xeffaf5._0x14fabf,_0x4b9f45-0x53);}await _0xb2945b(_0x3f5698[_0x326ec8(0x3a8,0x3a3,_0x2081ea._0x3ed5fd,0x406)],![]);function _0x1ba9b5(_0x3196b3,_0x137370,_0x151efa,_0x5c9b74){return _0x106950(_0x3196b3-0xdb,_0x151efa,_0x137370-_0x4daeee._0x515c28,_0x5c9b74-_0x4daeee._0x365000);}return _0x5cfcba(_0x3f5698[_0x326ec8(0x3a8,0x3ea,_0x2081ea._0x1054d,0x398)],![]);}async function _0x5733b9(_0x1fa629){const _0x3016ee={_0x1d2dd6:0x52,_0x180483:0x457,_0x1e2f60:0x1ed};function _0x2b32ea(_0x4a7c6f,_0x47d5f2,_0x48707d,_0x11ad83){return _0x106950(_0x4a7c6f-_0x3016ee._0x1d2dd6,_0x47d5f2,_0x48707d- -_0x3016ee._0x180483,_0x11ad83-_0x3016ee._0x1e2f60);}function _0x28258d(_0x559720,_0x1c0c76,_0x418a10,_0x4439ca){return _0x106950(_0x559720-_0x5d2246._0x29e4de,_0x4439ca,_0x418a10-0x51,_0x4439ca-_0x5d2246._0x3b8df7);}const _0xed9969=await _0x2715f(_0x1fa629);return collectClientResults(_0xed9969[_0x2b32ea(-0x5b,-0x1b7,-0x126,-_0x2c06cf._0x1a919c)](_0x7dcfae=>_0x7dcfae['request'][_0x28258d(0x5db,0x4b9,0x55d,0x55a)](_0x1fa629)));}return{'isEnabled':_0x1f9468,async 'hasClients'(_0xd121bc){const _0x30e101={_0x434d67:0x14a,_0x44ee5e:0x1a1};function _0x297459(_0x457280,_0x3ff295,_0x84a883,_0x5a2d49){return _0x106950(_0x457280-_0x44a3dc._0x2e7392,_0x457280,_0x84a883- -0x33a,_0x5a2d49-_0x44a3dc._0x28fbdd);}function _0x471f33(_0x593a43,_0x27f6d4,_0x5e4a12,_0x133933){return _0x106950(_0x593a43-_0x30e101._0x434d67,_0x593a43,_0x5e4a12-0x10a,_0x133933-_0x30e101._0x44ee5e);}return(await _0x5cfcba(_0xd121bc,![]))[_0x297459(-_0x1a287d._0x292687,-_0x1a287d._0x2d0bb5,_0x1a287d._0x1ce546,0x65)]>0x0||getServersForFile(_0xd121bc)[_0x297459(0x160,0x47,_0x1a287d._0x10af68,-_0x1a287d._0x4fae12)]>0x0;},'touchFile':_0xb2945b,async 'diagnostics'(){const _0x1d2ec1={_0x39bac1:0x5c,_0x686e7c:0x19a},_0x3fe0e9={};function _0x5ffbc6(_0x3eedfc,_0x14cb1,_0x5bbe47,_0x14370e){return _0x106950(_0x3eedfc-_0x3788cb._0xacd7df,_0x14cb1,_0x14370e- -0x28a,_0x14370e-_0x3788cb._0x1035f4);}function _0x18b408(_0x51ab41,_0x2cae50,_0x415a08,_0x22ebf2){return _0x106950(_0x51ab41-_0x1d2ec1._0x39bac1,_0x22ebf2,_0x2cae50-0x190,_0x22ebf2-_0x1d2ec1._0x686e7c);}for(const _0x2bcadd of _0xb2f5f[_0x5ffbc6(_0x39a4bd._0x332880,-_0x39a4bd._0x18d263,_0x39a4bd._0x4c84a1,_0x39a4bd._0x5c369e)]){for(const [_0x3e6ad5,_0x168bdd]of _0x2bcadd[_0x5ffbc6(0x2dd,_0x39a4bd._0x4181c9,0x158,_0x39a4bd._0x2fbc4e)]){_0x3fe0e9[diagnosticsKeyToPath(_0x3e6ad5)]=_0x168bdd;}}return _0x3fe0e9;},async 'diagnosticsForFile'(_0x3db271){function _0xb48f9f(_0x3b21c6,_0x42c1c1,_0x1938ef,_0x34ae89){return _0x106950(_0x3b21c6-_0x438ff1._0x58ba86,_0x1938ef,_0x3b21c6- -0x428,_0x34ae89-_0x438ff1._0x15591e);}await _0xb2945b(_0x3db271,!![]);function _0xe8a886(_0x359dfb,_0x600a7c,_0x5095f1,_0xabf77){return _0x106950(_0x359dfb-0x50,_0x600a7c,_0xabf77- -_0x3481ed._0x1514df,_0xabf77-_0x3481ed._0x2116e8);}const _0x426093=[];for(const _0x4cb3e7 of await _0x5cfcba(_0x3db271,![])){for(const [_0x574b99,_0x4fc227]of _0x4cb3e7[_0xe8a886(0x344,0x46b,0x3b8,0x3ab)]){if(diagnosticsKeyToPath(_0x574b99)===_0x3db271)_0x426093[_0xe8a886(_0x50d692._0x1c504f,_0x50d692._0x1ee6d3,_0x50d692._0x44455a,0x3aa)](..._0x4fc227);}}return _0x426093;},async 'definition'(_0x4d2ab8){const _0x271880={_0x564dab:0x76};function _0x38134b(_0x49cd55,_0x277034,_0x75e8d9,_0x5c2aeb){return _0x106950(_0x49cd55-_0x271880._0x564dab,_0x277034,_0x5c2aeb-0x269,_0x5c2aeb-0x159);}function _0xeae3eb(_0x3bd2ce,_0x46d779,_0x16b9bb,_0x1f0b95){return _0x106950(_0x3bd2ce-_0x3e605e._0x1f5154,_0x16b9bb,_0x3bd2ce-_0x3e605e._0x489e6a,_0x1f0b95-_0x3e605e._0x3adbc2);}return collectClientResults((await _0x2715f(_0x4d2ab8))[_0x38134b(0x50a,0x6fd,0x602,_0x273fde._0x3a0b27)](_0x4f9f93=>_0x4f9f93[_0x38134b(0x71e,0x67a,0x83a,0x6e3)][_0xeae3eb(0x5ed,0x619,0x647,0x529)](_0x4d2ab8)));},async 'references'(_0x29f131){const _0x2e2f5f={_0xed04f3:0x86,_0x17385e:0xca};function _0x4495cb(_0x21beb0,_0x3dd0e3,_0x5a7982,_0x502d58){return _0x106950(_0x21beb0-0x14e,_0x5a7982,_0x502d58-_0x2e2f5f._0xed04f3,_0x502d58-_0x2e2f5f._0x17385e);}function _0x24fce1(_0x1905df,_0x4739e0,_0xa68c4,_0x8eb02f){return _0x106950(_0x1905df-_0x24914a._0x49f9da,_0xa68c4,_0x8eb02f- -_0x24914a._0x2eaa08,_0x8eb02f-_0x24914a._0x4d7e4f);}return collectClientResults((await _0x2715f(_0x29f131))[_0x24fce1(-_0x1ff51f._0x53dc11,-0x1c4,0x84,-0x50)](_0x181ef8=>_0x181ef8[_0x4495cb(0x630,0x4b1,0x610,0x500)][_0x24fce1(0x1c4,0x85,0x102,0x152)](_0x29f131)));},async 'hover'(_0x3feddf){const _0x580573={_0xb73ffe:0x1df,_0x7b9aa5:0x1ae},_0x4a8218=await Promise[_0x139c25(_0x50223a._0x2cf17b,0x1cf,0x344,0x36b)]((await _0x2715f(_0x3feddf))[_0x4b6b6b(0x206,_0x50223a._0x10a180,_0x50223a._0x254ba8,_0x50223a._0x27a88d)](_0x4da8b8=>_0x4da8b8['request'][_0x139c25(0x453,0x621,0x5b4,0x4d9)](_0x3feddf)));function _0x139c25(_0x3c830c,_0x1db3e3,_0x4a4264,_0x114aeb){return _0x106950(_0x3c830c-_0x50ded4._0x3f107e,_0x3c830c,_0x4a4264-_0x50ded4._0x1b11a0,_0x114aeb-0xf1);}function _0x4b6b6b(_0x2963e9,_0x22c1c0,_0x5ce09e,_0x53eae3){return _0x106950(_0x2963e9-_0x580573._0xb73ffe,_0x53eae3,_0x2963e9- -0x12b,_0x53eae3-_0x580573._0x7b9aa5);}return _0x4a8218[_0x4b6b6b(_0x50223a._0x23e4a0,_0x50223a._0x3b0cab,_0x50223a._0x6632dc,0xed)](_0x573746=>_0x573746[_0x139c25(0x356,0x27d,0x2fa,0x20c)]===_0x4b6b6b(0x32a,0x21f,0x216,0x23b)&&_0x573746[_0x4b6b6b(0x3f4,0x37e,0x311,0x432)]?[_0x573746[_0x4b6b6b(0x3f4,0x4b9,0x35b,0x2c0)]]:[]);},async 'documentSymbol'(_0x2ffde6){await _0xb2945b(_0x2ffde6,![]);function _0x137443(_0x9ebb84,_0x1317ac,_0xd62a9c,_0x59d622){return _0x106950(_0x9ebb84-_0x32f7bd._0x26bbdf,_0x9ebb84,_0x59d622- -_0x32f7bd._0x9819b9,_0x59d622-_0x32f7bd._0x267c8a);}function _0x479d6c(_0x41d5a2,_0x3550b7,_0x498d3d,_0x4e6329){return _0x106950(_0x41d5a2-0x15d,_0x4e6329,_0x3550b7-_0x460af6._0x14efc6,_0x4e6329-0x36);}return collectClientResults((await _0x5cfcba(_0x2ffde6,![]))[_0x479d6c(_0x481114._0x532fcd,0x40c,_0x481114._0x2dbc4b,0x3cc)](_0x3da333=>_0x3da333['request'][_0x479d6c(0x4df,0x38f,0x40a,0x2e4)](_0x2ffde6)));},async 'workspaceSymbol'(_0x33627e){const _0x18d26e={_0x113cd7:0xe0};function _0x7769cb(_0x14ba27,_0x56d594,_0x4df5a0,_0x17fc6c){return _0x106950(_0x14ba27-0x175,_0x56d594,_0x4df5a0- -0x80,_0x17fc6c-_0x18d26e._0x113cd7);}function _0x4e2fea(_0x54c750,_0x549b8f,_0x2c2d62,_0x252afc){return _0x106950(_0x54c750-0x144,_0x252afc,_0x2c2d62- -0x289,_0x252afc-0x2a);}return collectClientResults(_0xb2f5f[_0x4e2fea(0x55,_0x51a64f._0x475a43,0x65,0xf5)][_0x4e2fea(_0x51a64f._0x28b486,-0x25,0xa8,-0x33)](_0x233ecc=>_0x233ecc['request'][_0x7769cb(0x274,0x376,0x333,0x1cf)](_0x33627e)));},async 'implementation'(_0xa532ff){function _0x50d114(_0x436fdd,_0x24b802,_0x3fd022,_0x3223e5){return _0x106950(_0x436fdd-0x1ca,_0x436fdd,_0x24b802-0x314,_0x3223e5-0x1ec);}function _0x315111(_0xc8677d,_0x578502,_0x20f32e,_0x38bf23){return _0x106950(_0xc8677d-_0x4ab813._0x583ac0,_0x578502,_0x38bf23- -_0x4ab813._0x3deea4,_0x38bf23-_0x4ab813._0x181cb7);}return collectClientResults((await _0x2715f(_0xa532ff))['map'](_0x249064=>_0x249064[_0x315111(0x183,0x19f,0x45,0x165)][_0x50d114(0x802,0x7a7,0x75c,0x632)](_0xa532ff)));},async 'prepareCallHierarchy'(_0x2c2e93){return _0x5733b9(_0x2c2e93);},async 'incomingCalls'(_0x360a7e){function _0x285e67(_0x5c26ba,_0x53b033,_0xbb568f,_0x365a7b){return _0x106950(_0x5c26ba-_0x5ce95e._0xee82e5,_0x365a7b,_0x53b033- -_0x5ce95e._0x2135f0,_0x365a7b-0x1b0);}const _0xa1a204=await _0x5733b9(_0x360a7e);function _0x4507d3(_0x591598,_0x7663cf,_0x1b1da8,_0x2d9aeb){return _0x106950(_0x591598-_0x36ee58._0x4cac9e,_0x7663cf,_0x1b1da8- -0x1f,_0x2d9aeb-_0x36ee58._0x22cd04);}const _0x4ff0e3=await _0x2715f(_0x360a7e);return collectClientResults(_0x4ff0e3[_0x4507d3(_0x5911eb._0x4a9baf,_0x5911eb._0x3e215f,0x350,_0x5911eb._0x131ffc)](_0x5c6ba9=>_0xa1a204[_0x285e67(0xb2,-0x4c,-0xf5,0x120)](_0x154e38=>_0x5c6ba9[_0x4507d3(0x381,0x318,0x45b,0x5d0)][_0x285e67(-0x144,-0x20,0x66,0x9f)](_0x154e38))));},async 'outgoingCalls'(_0x2e1d05){const _0x5b15f9={_0x5e7936:0x1d9,_0x4fc089:0x67},_0x2f553a={_0x24db56:0xaa,_0x46f871:0x3b},_0x23f1d8=await _0x5733b9(_0x2e1d05);function _0x2ce073(_0x5a636a,_0x1c76e6,_0x55cabe,_0xf7b01){return _0x106950(_0x5a636a-_0x2f553a._0x24db56,_0x5a636a,_0xf7b01- -0x262,_0xf7b01-_0x2f553a._0x46f871);}const _0x513436=await _0x2715f(_0x2e1d05);function _0x3bca09(_0x1d3c37,_0x377bca,_0xad2d6c,_0x429c43){return _0x106950(_0x1d3c37-0x1db,_0xad2d6c,_0x429c43-_0x5b15f9._0x5e7936,_0x429c43-_0x5b15f9._0x4fc089);}return collectClientResults(_0x513436[_0x2ce073(_0x5848b0._0x84dee,_0x5848b0._0x33a9c6,0x17e,0x10d)](_0x56bfc8=>_0x23f1d8['map'](_0x56fede=>_0x56bfc8[_0x3bca09(0x72a,0x5e7,0x59d,0x653)]['outgoingCalls'](_0x56fede))));},async 'shutdown'(){const _0x4d383d={_0x225fb1:0x1f2,_0x5673ec:0x1d0};function _0x28bc6c(_0x371a94,_0x474019,_0x4e6d5e,_0x29054f){return _0x106950(_0x371a94-_0x4d383d._0x225fb1,_0x4e6d5e,_0x474019-_0x4d383d._0x5673ec,_0x29054f-0x14b);}if(_0xb2f5f[_0x28bc6c(_0x1b3d44._0x518278,0x59d,0x6bf,0x4ff)])return;_0xb2f5f[_0x32168f(-0x66,0x33,-0xe8,-_0x1b3d44._0x115f0a)]=!![],await Promise['allSettled'](_0xb2f5f[_0x32168f(-0x145,-0x1d0,-_0x1b3d44._0x167b69,-_0x1b3d44._0x4ffbbd)]['map'](_0x35f7a7=>_0x35f7a7[_0x28bc6c(0x5b1,0x439,0x4d2,0x3a6)]())),_0xb2f5f[_0x28bc6c(_0x1b3d44._0x5d4e59,0x4be,_0x1b3d44._0xdd3ca1,0x5fb)]=[];function _0x32168f(_0x368e73,_0x375ca0,_0x4071d6,_0x328297){return _0x106950(_0x368e73-0x6,_0x4071d6,_0x368e73- -0x433,_0x328297-0xc2);}_0xb2f5f['spawning'][_0x32168f(-0x59,_0x1b3d44._0x165e45,-_0x1b3d44._0x5ac667,_0x1b3d44._0xc41db)](),_0xb2f5f[_0x32168f(0x72,_0x1b3d44._0x4ff667,_0x1b3d44._0x3a1a85,-0x46)][_0x28bc6c(_0x1b3d44._0x5766c3,_0x1b3d44._0x38853e,0x4f7,0x653)](),_0xb2f5f[_0x28bc6c(0x6b1,_0x1b3d44._0xfb167f,_0x1b3d44._0x1e0126,_0x1b3d44._0x43ace3)][_0x32168f(-_0x1b3d44._0xd398c3,0x73,_0x1b3d44._0x471132,0x3)](),_0xb2f5f[_0x28bc6c(_0x1b3d44._0x561580,_0x1b3d44._0x2c2d96,0x5ad,_0x1b3d44._0xb65770)][_0x28bc6c(0x5be,_0x1b3d44._0x38853e,0x68a,_0x1b3d44._0x8eb3c0)]();},'status'(){const _0x5af7aa={_0x289a5b:0xe5,_0x374b35:0x9f};function _0x388df1(_0x4d237e,_0xbf7160,_0x2c1625,_0x2a5f44){return _0x106950(_0x4d237e-0x58,_0x4d237e,_0x2a5f44-_0x5af7aa._0x289a5b,_0x2a5f44-_0x5af7aa._0x374b35);}return{'connectedClients':_0xb2f5f['clients'][_0x388df1(_0x251777._0x595bb3,0x4c9,_0x251777._0x50a788,0x508)]};}};}function createQuestionId(){const _0xd3db2d={_0x170f47:0x119,_0x3c37d3:0x499,_0x661fbd:0x5c3,_0xf16a7f:0x16,_0x191614:0x4b,_0x50a2bf:0x4ae},_0x54c4f2={_0x5876de:0x103,_0x3cee74:0x565};function _0x382b3c(_0x35ead2,_0x2364c1,_0x205df9,_0xd13d5c){return _0x4ab00a(_0x35ead2-_0x54c4f2._0x5876de,_0x2364c1-0x66,_0x2364c1,_0x35ead2- -_0x54c4f2._0x3cee74);}function _0x471e07(_0x2cc159,_0x5d4caf,_0x178858,_0xf19b21){return _0x4ab00a(_0x2cc159-0xd6,_0x5d4caf-0x1ac,_0xf19b21,_0x2cc159-0xb4);}return _0x382b3c(0x39,_0xd3db2d._0x170f47,0xa4,-0xef)+Date[_0x471e07(_0xd3db2d._0x3c37d3,0x597,_0xd3db2d._0x661fbd,0x51c)]()+'-'+Math[_0x382b3c(0x4b,_0xd3db2d._0xf16a7f,-_0xd3db2d._0x191614,-0x108)]()[_0x471e07(_0xd3db2d._0x50a2bf,0x3e9,0x341,0x505)](0x24)['slice'](0x2,0x9);}function validateInput(_0x5c23a5){const _0x3a0e46={_0x474c95:0x65e,_0x5b6158:0x55a,_0x2e7721:0x632,_0x411c84:0x27f,_0x4bdfdc:0x3fa,_0xc8d290:0x325,_0x471671:0x601,_0x359522:0x651,_0x4faa11:0x48b,_0x504e80:0x350,_0x7acb06:0x2b7,_0x5e37e8:0x3aa,_0x10f5da:0x402,_0x141e0d:0x38f,_0x1c6fcc:0x2fe,_0x51f598:0x2c0,_0x2e098b:0x462,_0xc245d4:0x3d3,_0x2d4d12:0x239,_0x938fb1:0x296,_0x8473e7:0x817,_0x435cd6:0x65a,_0x12d26:0x421,_0x3c61b2:0x44f,_0x2f9923:0x31a,_0xcb8572:0x367,_0x214230:0x3b0,_0x4fe632:0x377,_0x2dce9b:0x1d2,_0x23b8d7:0x319,_0xa8c5ca:0x26a,_0x4b7862:0x317,_0x43fcc9:0x1a2,_0x2a9d1c:0x760,_0x258ca3:0x6d2,_0x4a188b:0x77e,_0x27a4c0:0x56a,_0x4c52d5:0x68e,_0x5aaf6a:0x4c2,_0x1ed106:0x26b,_0x668529:0x787,_0x376cea:0x7e5,_0x7109f0:0x68e,_0x497e07:0x27e,_0x4ff690:0x3aa,_0x4b2768:0x315,_0x1ca1e6:0x2de,_0x421a85:0x676,_0x23e690:0x62c,_0x1d25d4:0x721,_0x5668a8:0x6e5,_0x5c9e97:0x5e0,_0x25f5c4:0x654,_0x38ee6b:0x56f,_0x277cc2:0x692,_0x3410fd:0x83c,_0x2db342:0x85e,_0x1d42b4:0x461,_0x3ece88:0x43a,_0xe5dfad:0x544,_0x4febda:0x549,_0x23fc47:0x140,_0x474d41:0x890,_0x4df3e5:0x612},_0x270b03={_0x513c1f:0x69,_0x2b4673:0x99,_0x11db3c:0x1e9},_0x1f7149={_0x5d684c:0x1f3,_0x2c01b3:0xc7};function _0x3adaff(_0x520cec,_0x20436f,_0x42ece1,_0x2345d7){return _0x1932a3(_0x20436f,_0x20436f-_0x1f7149._0x5d684c,_0x2345d7- -0x97,_0x2345d7-_0x1f7149._0x2c01b3);}function _0x187169(_0x74cbaa,_0x595745,_0x18dd62,_0x5c81d1){return _0x4ab00a(_0x74cbaa-_0x270b03._0x513c1f,_0x595745-_0x270b03._0x2b4673,_0x74cbaa,_0x5c81d1-_0x270b03._0x11db3c);}if(!Array[_0x187169(_0x3a0e46._0x474c95,_0x3a0e46._0x5b6158,_0x3a0e46._0x2e7721,0x655)](_0x5c23a5[_0x3adaff(0x2cf,_0x3a0e46._0x411c84,_0x3a0e46._0x4bdfdc,_0x3a0e46._0xc8d290)])||_0x5c23a5[_0x187169(0x537,_0x3a0e46._0x471671,0x7a4,0x69c)]['length']<0x1||_0x5c23a5[_0x187169(0x751,_0x3a0e46._0x359522,0x64d,0x69c)][_0x3adaff(_0x3a0e46._0x4faa11,_0x3a0e46._0x504e80,_0x3a0e46._0x7acb06,_0x3a0e46._0x5e37e8)]>0xa)throw new ToolExecutionError(_0x3adaff(_0x3a0e46._0x10f5da,_0x3a0e46._0x141e0d,_0x3a0e46._0x1c6fcc,_0x3a0e46._0x51f598),{'error':_0x3adaff(0x260,_0x3a0e46._0x2e098b,0x25a,_0x3a0e46._0xc245d4)});for(let _0x1d1edc=0x0;_0x1d1edc<_0x5c23a5[_0x187169(0x63e,0x64c,0x614,0x69c)][_0x3adaff(_0x3a0e46._0x2d4d12,0x3d8,_0x3a0e46._0x938fb1,0x3aa)];_0x1d1edc+=0x1){const _0x23a551=_0x5c23a5['questions'][_0x1d1edc];if(!_0x23a551[_0x187169(_0x3a0e46._0x8473e7,0x738,_0x3a0e46._0x435cd6,0x759)]||typeof _0x23a551[_0x3adaff(_0x3a0e46._0x12d26,_0x3a0e46._0x3c61b2,_0x3a0e46._0x2f9923,0x3e2)]!==_0x3adaff(_0x3a0e46._0xcb8572,_0x3a0e46._0x214230,_0x3a0e46._0x4fe632,0x35b))throw new ToolExecutionError('Question\x20'+(_0x1d1edc+0x1)+_0x3adaff(_0x3a0e46._0x2dce9b,0x39c,_0x3a0e46._0x23b8d7,0x343));if(!_0x23a551[_0x3adaff(0x2b0,_0x3a0e46._0xa8c5ca,0x3dd,_0x3a0e46._0x4b7862)]||typeof _0x23a551[_0x3adaff(_0x3a0e46._0x43fcc9,0x3f1,0x47c,0x317)]!==_0x187169(0x829,_0x3a0e46._0x2a9d1c,0x65b,_0x3a0e46._0x258ca3))throw new ToolExecutionError(_0x3adaff(0x182,0x325,0x366,0x269)+(_0x1d1edc+0x1)+':\x20\x22topic\x22\x20field\x20is\x20required\x20and\x20must\x20be\x20a\x20string');if(_0x23a551[_0x187169(0x6d1,_0x3a0e46._0x4a188b,_0x3a0e46._0x27a4c0,_0x3a0e46._0x4c52d5)][_0x3adaff(0x324,_0x3a0e46._0x5aaf6a,0x269,0x3aa)]>0x1e)throw new ToolExecutionError('Question\x20'+(_0x1d1edc+0x1)+_0x3adaff(0x369,_0x3a0e46._0x1ed106,0x2c0,0x32a)+_0x23a551[_0x187169(_0x3a0e46._0x668529,_0x3a0e46._0x376cea,0x7d0,_0x3a0e46._0x7109f0)][_0x3adaff(0x3e4,_0x3a0e46._0x497e07,0x43a,_0x3a0e46._0x4ff690)]);if(!Array[_0x3adaff(0x454,0x321,_0x3a0e46._0x4b2768,_0x3a0e46._0x1ca1e6)](_0x23a551['options'])||_0x23a551['options'][_0x187169(_0x3a0e46._0x421a85,0x866,_0x3a0e46._0x23e690,_0x3a0e46._0x1d25d4)]<0x2||_0x23a551['options'][_0x3adaff(0x280,0x4b7,0x2f0,_0x3a0e46._0x5e37e8)]>0x4)throw new ToolExecutionError(_0x187169(_0x3a0e46._0x5668a8,0x5b8,0x4af,_0x3a0e46._0x5c9e97)+(_0x1d1edc+0x1)+_0x187169(_0x3a0e46._0x25f5c4,_0x3a0e46._0x38ee6b,0x7d7,_0x3a0e46._0x277cc2));for(let _0x224bee=0x0;_0x224bee<_0x23a551['options'][_0x187169(_0x3a0e46._0x3410fd,0x629,_0x3a0e46._0x2db342,_0x3a0e46._0x1d25d4)];_0x224bee+=0x1){const _0x5c9d54=_0x23a551[_0x3adaff(_0x3a0e46._0x1d42b4,_0x3a0e46._0x3ece88,0x240,0x341)][_0x224bee];if(!_0x5c9d54[_0x187169(_0x3a0e46._0xe5dfad,_0x3a0e46._0x12d26,_0x3a0e46._0x4febda,0x564)]||!_0x5c9d54['description'])throw new ToolExecutionError(_0x3adaff(0x11b,_0x3a0e46._0x23fc47,0x222,0x269)+(_0x1d1edc+0x1)+_0x187169(_0x3a0e46._0x474d41,_0x3a0e46._0x4df3e5,0x5ba,0x720)+(_0x224bee+0x1)+':\x20both\x20\x22label\x22\x20and\x20\x22description\x22\x20are\x20required');}if(typeof _0x23a551[_0x187169(0x827,0x566,0x773,0x6c6)]!=='boolean')throw new ToolExecutionError('Question\x20'+(_0x1d1edc+0x1)+':\x20\x22multiSelect\x22\x20must\x20be\x20a\x20boolean');}}function buildQuestions(_0x3b5a90){const _0x559550={_0x269038:0x53b,_0x19afee:0x563,_0x1c0435:0x5a4},_0x5f0950={_0x25dee9:0x1cb},_0x245d40={_0x2fa27a:0x1c7,_0x2c8867:0x282,_0x4e2d1:0x184};function _0x987fd3(_0x1459ea,_0x564e45,_0x1afdb2,_0x2c71e6){return _0x1932a3(_0x564e45,_0x564e45-_0x245d40._0x2fa27a,_0x1459ea-_0x245d40._0x2c8867,_0x2c71e6-_0x245d40._0x4e2d1);}function _0x5d077b(_0x435ad0,_0x7ce22c,_0x29eee8,_0x4570af){return _0x4ab00a(_0x435ad0-0x148,_0x7ce22c-0x121,_0x29eee8,_0x7ce22c- -_0x5f0950._0x25dee9);}return _0x3b5a90[_0x987fd3(0x63e,0x55f,_0x559550._0x269038,0x749)][_0x987fd3(0x5d1,_0x559550._0x19afee,_0x559550._0x1c0435,0x461)]((_0x4b4f81,_0x2c052d)=>({'id':'q'+_0x2c052d,'question':_0x4b4f81[_0x5d077b(0x47a,0x3a5,0x4e8,0x45c)],'topic':_0x4b4f81['topic'],'options':_0x4b4f81['options'],'multiSelect':_0x4b4f81[_0x987fd3(0x668,0x6da,0x531,0x509)]}));}function createResult(_0x31ed0c,_0x492240,_0x146b22){const _0x1e8a95={_0xdf76cd:0x5ff,_0x3ceb91:0x620,_0x4a97cc:0x573,_0x27f880:0x550,_0x568137:0x357},_0x1409a3={_0x124cf4:0x1c8},_0x5b48b1={_0x13d3d5:0xc0};function _0x29d36a(_0xff429e,_0x3a3901,_0x256033,_0x2c4a67){return _0x1932a3(_0x3a3901,_0x3a3901-0x1c6,_0x2c4a67-0xf4,_0x2c4a67-_0x5b48b1._0x13d3d5);}function _0x2a05d0(_0x9ff903,_0x1116c7,_0x322f4e,_0x49036c){return _0x1932a3(_0x1116c7,_0x1116c7-0x13c,_0x322f4e- -0xf9,_0x49036c-_0x1409a3._0x124cf4);}const _0x59c09a={'questionId':_0x31ed0c,'questionCount':_0x492240,'answers':_0x146b22};return createToolOutput(_0x29d36a(0x42a,_0x1e8a95._0xdf76cd,_0x1e8a95._0x3ceb91,0x56c)+JSON[_0x29d36a(_0x1e8a95._0x4a97cc,_0x1e8a95._0x27f880,_0x1e8a95._0x568137,0x455)](_0x146b22,null,0x2),_0x59c09a);}function createAskUserTool(){const _0x48b167={_0x4a5a25:0x20,_0x163c16:0x2,_0x44833c:0xb9,_0x55fdc1:0x2a,_0x53b457:0xc2,_0x419644:0x52,_0x2aa977:0x14,_0x35b524:0x3a,_0x57ff7e:0x53,_0x4944d4:0x4a,_0x3a0aee:0xd8,_0x304565:0x12d,_0x53890e:0x53,_0x1c0a49:0x78,_0x5a8a21:0x78,_0x4f606b:0x8f,_0x324be2:0xbf,_0xe8fda3:0x109,_0x256ca9:0x1e7,_0x17db66:0x294,_0x2134f2:0x1bd,_0x46116f:0x17b,_0x41f0d7:0x98,_0x5d7646:0xb7,_0x146a32:0xdc,_0x594bc9:0x18e,_0x4922cb:0xe8,_0x3cdd2e:0xf5,_0x6d9c4b:0xde},_0x534949={_0x13646f:0x345,_0x3727fc:0x38d,_0x4da527:0x2eb,_0x3e6041:0x2d3,_0x126b22:0x38e,_0x5d3a6e:0x504,_0x195c34:0x32a,_0x266ed6:0x1a5,_0xd1b46:0x3b7,_0x4a57f1:0x3a1,_0x5e3cfa:0x1a5,_0x33eab9:0x3b,_0x214d9a:0xe0},_0x59634a={_0x5186a2:0x53c},_0x504720={_0x1750d5:0xeb};function _0x15cac0(_0x111f29,_0x11f5c0,_0x3c4871,_0x13b340){return _0x1932a3(_0x3c4871,_0x11f5c0-0x16b,_0x11f5c0- -0x4b1,_0x13b340-_0x504720._0x1750d5);}function _0x34b4f3(_0x4b3257,_0x44d9d4,_0x43e83e,_0x1c71f6){return _0x4ab00a(_0x4b3257-0x1ee,_0x44d9d4-0x10a,_0x44d9d4,_0x4b3257- -_0x59634a._0x5186a2);}return defineTool({'name':_0x15cac0(-0x1a4,-0x42,0xb0,_0x48b167._0x4a5a25),'description':_0x34b4f3(_0x48b167._0x163c16,_0x48b167._0x44833c,0xbd,-0x95),'inputSchema':{'type':_0x15cac0(0x10c,0x3a,-0x138,-_0x48b167._0x55fdc1),'properties':{'questions':{'type':_0x15cac0(0x57,0x78,_0x48b167._0x53b457,-_0x48b167._0x419644),'items':{'type':_0x15cac0(_0x48b167._0x2aa977,_0x48b167._0x35b524,-0x68,0x16a),'properties':{'question':{'type':_0x34b4f3(-_0x48b167._0x57ff7e,_0x48b167._0x4944d4,_0x48b167._0x3a0aee,-_0x48b167._0x304565)},'topic':{'type':_0x34b4f3(-_0x48b167._0x53890e,-0x67,0x5e,-0x153)},'options':{'type':_0x15cac0(-0x9f,_0x48b167._0x1c0a49,0xda,-0xa5),'items':{'type':_0x15cac0(0x2,_0x48b167._0x35b524,0x93,_0x48b167._0x5a8a21),'properties':{'label':{'type':'string'},'description':{'type':_0x15cac0(-_0x48b167._0x4f606b,-_0x48b167._0x324be2,-0x1ae,-0xa9)}},'required':[_0x34b4f3(-0x1c1,-_0x48b167._0xe8fda3,-_0x48b167._0x256ca9,-0x96),'description']}},'multiSelect':{'type':_0x15cac0(-_0x48b167._0x17db66,-_0x48b167._0x2134f2,-0x1e0,-_0x48b167._0x46116f)}},'required':['question',_0x34b4f3(-0x97,-_0x48b167._0x41f0d7,0x8e,-_0x48b167._0x5d7646),'options',_0x34b4f3(-0x5f,0xa7,-_0x48b167._0x146a32,-_0x48b167._0x594bc9)]}},'answers':{'type':_0x34b4f3(0xa6,0x109,0xd7,_0x48b167._0x4922cb),'properties':{}}},'required':[_0x15cac0(-0x21c,-_0x48b167._0x3cdd2e,-_0x48b167._0x6d9c4b,-0xe4)]},async *'execute'(_0x4f4602,_0x547419){const _0x37343d={_0x58db06:0x17,_0x100d82:0x461,_0x338906:0x16},_0x10e7b8={_0x29734e:0x60,_0x1995c9:0x75,_0x4581be:0x111},_0x36625a=_0x4f4602;function _0x3d3b72(_0x5d9fe4,_0xafc54b,_0x2bdb09,_0x1758e7){return _0x15cac0(_0x5d9fe4-_0x10e7b8._0x29734e,_0x5d9fe4-_0x10e7b8._0x1995c9,_0x1758e7,_0x1758e7-_0x10e7b8._0x4581be);}validateInput(_0x36625a);const _0x570e06=_0x547419['toolCallId']??createQuestionId();if(_0x36625a[_0x3e31ae(_0x534949._0x13646f,_0x534949._0x3727fc,0x35e,_0x534949._0x4da527)]&&Object['keys'](_0x36625a['answers'])[_0x3e31ae(0x502,0x3f1,_0x534949._0x3e6041,_0x534949._0x126b22)]>0x0)return createResult(_0x570e06,_0x36625a['questions'][_0x3e31ae(_0x534949._0x5d3a6e,0x3f1,0x565,_0x534949._0x195c34)],_0x36625a['answers']);function _0x3e31ae(_0x596a66,_0x55119d,_0x5d36b1,_0x3f2da1){return _0x15cac0(_0x596a66-_0x37343d._0x58db06,_0x55119d-_0x37343d._0x100d82,_0x3f2da1,_0x3f2da1-_0x37343d._0x338906);}if(!_0x547419[_0x3d3b72(-_0x534949._0x266ed6,-0x9f,-0x2b2,-0x224)])throw new ToolExecutionError(_0x3e31ae(_0x534949._0xd1b46,_0x534949._0x4a57f1,0x45a,0x4a1));const _0x278982=buildQuestions(_0x36625a),_0x1a3660=await _0x547419[_0x3d3b72(-_0x534949._0x5e3cfa,-0x2ce,-0x5f,-_0x534949._0x33eab9)]({'questionId':_0x570e06,'questions':_0x278982});yield createResult(_0x570e06,_0x36625a[_0x3d3b72(-0x80,-0x165,_0x534949._0x214d9a,0xd5)]['length'],_0x1a3660);}});}import{randomUUID}from'crypto';function _0x4a4c(){const _0x2e275e=['DhLWzq','DMvYAwzPzxi','nJmZndyYmgfbEgzZvG','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','yMLYDgH0Aw1L','DgHPBMTPBMC','phn5C3rLBs1Yzw1PBMrLCJ4','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','Ahr0Ca','zw5NAw5L','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','zMXHDe1HCa','ks4Gs2LSBcbVBMuGD2L0AcblAwXSu2HLBgWGyMvMB3jLihn0yxj0Aw5NigfUB3rOzxiU','yNL0zuXLBMD0Aa','pc9ZExn0zw0TCMvTAw5Kzxi+','A2LUza','CMvZB2X2zq','Ag9ZDa','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','BxrPBwu','Ahr0Chm6','rMv0y2GGDgLTzwqGB3v0','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','yM0Ynq','DxjS','Aw5PDgLHBgL6yxrPB24','D29YA3nWywnLl3n5BwjVBa','y2fSBgjHy2TvCMW','yxjNDw1LBNrZ','uKLgrG','y291BNrLCG','CgfYzw50u2vZC2LVBKLK','l3vZCI9IAw4VC2G','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','C3bSAxq','lNrZEa','Dg9KB3m','yxv0AfjLCxvPCMvK','Ec1HCgKTA2v5','DgfZAW','zgvMAw5PDgLVBG','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','Dg9Rzw5Z','z3jVAW','Dg9WAwm','yNvUlMXVy2TI','yNvUlMXVy2S','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','BgLZDgvU','ChjVy2vZC0v4AxrLza','r0LgodDH','AxndB250zxH0','y3jSzG','yxbWzw5K','CMvMCMvZAf90B2TLBG','Bg9HzfnRAwXS','rxjYB3i','CxvLC3rPB25Z','tg9HzfnRAwXS','ls1OAwrKzw4','ChjLzML4','yMLVBwu','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','lMPZ','Dg9VBenHBgXjza','ANnVBG','Dgv4DerVy3vTzw50l2rPzenSB3nL','z2L0AhvI','CgLWzq','iYmGu2TPBgW6ia','y2HHCMfJDgvY','zgLZywjSzwq','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','DxrMoa','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','y29Uy2f0','z29uB0rLzMLUAxrPB24','Dgf2AwX5','D29YA3nWywnLu3LTyM9S','zgLZy292zxj5','zxHPDa','Dg9VBc1VDxrWDxqTB2zMBg9Hza','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','v2LUr2v0','Aw52ywXPzf90B2rVx2LK','B3b0Aw9UCW','u3rVCcbYzwfKAw5Nigf0ihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','BgLI','lunVBw1HBMq','yw5ZD2vYCW','Bwv0yq','B3bLBKzPBgvZ','v2vIu2vHCMnO','lMPWzwC','Aw50zwDLCG','Aw5FChjVz3jLC3m','Aw1Hz2uVANbLzW','yMfZzty0','BxvSDgLtzwXLy3q','BM9Uzq','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','tM8GAg92zxiGAw5MB3jTyxrPB24','yxjNDw1LBNroyw1LCW','C2H1DgrVD25tDgfYDgvK','uhvIBgLZAgvKoIa','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','y2XPzw50x3nLy3jLDf9WB3n0','yMvHCMvY','zgfYAW','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','C3rYAw5N','C2XPy2u','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','Bwf0y2HLCW','tuLnrtOG','ywXS','y2XLyxi','rMLSzuvKAxq','lMPZEa','zgvUBY5QC29UyW','CMvJzw5JEurHExm','z2nSAwq','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','l3vZCI9SB2nHBc9IAw4VCMC','igj5DgvZicHVCMLNAw5HBdOG','zgLHz25VC3rPy3ngB3jgAwXL','rM91BMqG','Cgf0DgvYBIbPCYbYzxf1AxjLza','Dw5PB24','DgfZA2TPBgW','zhj5uNvU','y2XPzw50sw5MB3jTyxrPB24','vxbKyxrLihrOzsbZzxnZAw9UihrVCgLJihrVigeGy29Uy2LZzsaZltyGD29YzcbUB3vUihbOCMfZzsb0Agf0ignHChr1CMvZihrOzsbJDxjYzw50ihn1yMPLy3qUcGPdywXSihrOAxmGDg9VBcb3AgvUihrOzsbZzxnZAw9Uj3mGC3vIAMvJDcbIzwnVBwvZignSzwfYig9YihnOAwz0CYb0BYbZB21LDgHPBMCGy2XLyxjSEsbKAwzMzxjLBNqG4Ocuig5VDcbMB3iGBwLUB3iGDgfUz2vUDhmGB3iGy2XHCMLMEwLUzYbZDwiTCxvLC3rPB25ZlIbjzIbUB3rOAw5NigHHCYbTzwfUAw5NzNvSBhKGy2HHBMDLzcWGzg8GBM90ignHBgWGAxqUcGPhB29KihrVCgLJicHUB3vUihbOCMfZzsWGmY02ihDVCMrZktOkicaIrgvIDwCGvfmGz2vUzxjPy3mGzxjYB3iIcIaGiLjLzMfJDg9Yigf1DgGGBwLKzgXLD2fYzsikicaIqwrKifn0CMLWzsb3zwjOB29RigHHBMrSzxiIcGPcywqGDg9WAwmGkgz1BgWGC2vUDgvUy2uGB3iGDMfNDwuPoGOGicjuAguGDxnLCIb3yw50CYb0BYbKzwj1zYbHifr5Cgvty3jPChqGz2vUzxjPy3mGzxjYB3iGAw4GDgHLAxiGChjVAMvJDcikicaIy29KAw5NiG','zxHPDcbJB2rLia','C3rHCNrZv2L0Aa','Ag9TzwrPCG','CgfNzw1HCa','revfueLorLjbx0fqsv9lrvK','B3v0z29PBMDdywXSCW','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','tgLUzsa','nZC3mty4nu1SqLLcsG','qvbjx0Tfwq','y29UBMvJDa','CxvLCNK','mJi0lJaUmc4W','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','yw5ZAte2','C2vYDMvYtMfTzq','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','DgHLBG','yxr0CG','AwzYyw1L','ihDHCYbHyM9YDgvKlG','te9x','C2HLBgXqyxrO','lNrZ','C2vUza','ls1NBg9IpseUz2L0lYO','qxzHAwXHyMXLignVBw1HBMrZoG','Dg9VBhm','DxjP','A2v5','vg9WAwmGC2v0ihrVici','AxngAwXL','z29uB0LTCgXLBwvUDgf0Aw9U','C2HPzNq','zMLSzvzLCNnPB25Z','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','z2vUzxjHBa','zhvWBgLJyxrLx3rVzg9FAwrZ','sw5MB3jTyxrPB24','sfruuca','mJqWlJaUmc4W','AwDUB3jLt3v0Chv0','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','wZ0+nY04kcLD','C2LNBMfS','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','B25Jzq','Bw9VBNnOB3q','mtu2mtC0mNbvteLTDG','C3rKAw8','zw51Bq','zw5NAw5LCW','Aw5PDgLHBgL6zwq','lcbpChrPB24G','BgvUz3rO','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','y2XVC2u','BMf2','igj5DgvZks4','ls1NBg9Ipq','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','vMLLD0zPBgu','ChjVCgvYDgLLCW','Aw1Hz2uVD2vICa','C3rHCNq','CMCUzxHL','rMLSzvjLywq','yMfZzw5HBwu','Bwf4','zxHPDgvK','AxrLBxm','zxjYB3i','B2XKvgv4Da','zxHPDenVzgu','y29ZDa','ls0T','zg9TywLUCW','C3bHD25PBMC','mtyZmJaWr3bhEMXS','Dhj1zq','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','qxv0Ag9YAxPHDgLVBG','DhjHBNnMB3jTCW','Dg9VBfjLC3vSDhm','Cgf0Aa','v0vcua','z2L0qNjHBMnO','y2fWq2HHCNm','C25PChbLDa','DxrTx2nVBNrLBNq','oIbPBNzHBgLKihbYAw9YAxr5','z2v0t3DUuhjVCgvYDhLoyw1LCW','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','lMnTza','yxjNDw1LBNrZvgv4Da','Aw52ywXPzf9XDwvZDgLVBNm','C2nYAxb0','l2jPBI9YzW','ls1MB2XSB3C','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','qxnRvxnLCLrVB2W','ywjVCNq','C3rKAw4','DgvZDa','zNvSzMLSBgvK','CM9VDa','zMLSztOVlW','Dg9VBa','v2fYBMLUzW','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','CxvLC3rPB24','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','nKX1twXszW','sgLUDa','Aw5WDxq','lMPZB24','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','yxjNDw1LBNriAw50','C2vHCMnOugfYyw1Z','tM8GC3vJAcbMAwXLoIaN','BxrPBwvnCW','Aw1Hz2u','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','rgv0ywLSoIa','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','y3DK','rMv0y2GGywjVCNrLzcbIEsb1C2vY','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','ignOyxjZigrYB3bWzwrDcG','l3vZCI9IAw4VyMfZAa','mtaWlJy0lJaUma','rMLSzu5LDW','zNjVBuvUDhjPzxm','B3v0Chv0','EwvZ','yxjNCW','ChvZAa','zgLHz25VC3rPy3m','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','CMvXDwvZDa','Aw5WDxrty2HLBwe','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','CgfJA2fNzs1SB2nRlMPZB24','C3rYAxbbBNnP','zM9VDgvY','ChjPB3jPDhK','ChjVy2vZCW','sw52ywXPzcbYzwDLEdOG','rMLSzsb3CML0DgvUigf0ia','u3rHCNrLzcbHz2vUDcbYDw4G','lMPZB25J','C2nYDwjfBNzlzxLZ','CNnZ','BNvT','CxvLC3rPB24T','BwfUDwfS','ChjLChjVy2vZCW','zMLUywXnzxnZywDLvgv4Da','AhLKCMf0zu1LDge','B2f1DgG','qMfJA2DYB3vUzcbLEgvJDxrPB24GAxmGBM90igf2ywLSywjSzsbPBIb0AgLZignVBNrLEhqU','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','r2XVyG','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','Aw1WBgvTzw50yxrPB24','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','C2HLBgXjza','qMvHCMvYia','r3jLCa','CMfUz2u','tNv2Aw4','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','CMfUzg9T','C29YDa','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','CNvUsw5cywnRz3jVDw5K','ygbGANnVBGO','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','CgfJA2fNzs5QC29U','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','ygbG','A2v5CW','yNjVA2vU','zw50CMLLCW','r0Lusfvcx0fdq0vtu19ut0TftG','BhnWlxbYB3H5','lMn0CW','DgLTzw91De1Z','zxzLCNK','y2XPzw50twv0ywrHDgfvCMW','ANnVBMm','BhnW','q29TBwfUzcaN','BgLUzu51Bq','cMbGya','B3bLBNjVDxrLCG','lNbUzW','DgL0Bgu','B3rOzxi','BNbT','lu5VuhjVzMLSzq','CMvXDwvZDhm','z29Vz2XLq3nLq3G','Dg90ywXeCM9WCgvK','zMLUzfjLzMvYzw5Jzxm','Cgf0DgvYBG','yxv0BW','Ahr0CdO','Dgv4DerVy3vTzw50l2HVDMvY','AMf2yxnJCMLWDhjLywn0','zgLZy292zxj5u3rHDgu','Dg9VBhmVy2fSBa','C3rKzxjYrgvJB2rLCG','yw5ZAti1nG','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','Dhj1BMnHDgvK','mte4neTvwNDcwG','r09pr0Xfx0ntrv9lrvK','y29UzMLN','l29WDc9OB21LyNjLDY9IAw4VCMC','BMv3vgv4Da','Dg9KB3ncEvnLC3nPB24','B2jQzwn0','BgLUzq','Dw5RBM93BG','y29TCgXLDgvK','C3rHDgu','y29TBwfUza','CMvMzxjLBMnLCW','Aw1Hz2vZ','yxbWBgLJyxrPB24VANnVBG','r0Lusfvcx1rps0vo','D3jPDgu','C3rHDhvZvgv4Da','C3jJl2fNzw50l2fNzw50lNrZ','igj5DgvZicH0B3rHBdOG','Bw9KzwW','AM9PBG','yMLUyxj5tMfTzq','CMLWz3jLCcbMywLSzwq6ia','lMXVzW','zMLUywXnzxnZywDL','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','Cgf0Ag5HBwu','tg9HzgvKigzYB206ia','y29UBMvJDgLVBG','CNvUswq','oIbJB250zw50ihjLCxvPCMvK','C2v0','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','tM8GBg9JyxrPB25ZigzVDw5K','ChjVDg9JB2W','z2v0','C2vZC2LVBG','mtK4lJe4lJaUma','l2jPBI9ZAa','zgLYzwn0B3j5','Aw5JBhvKzq','ywrK','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlIbtzxqGCNvUsw5cywnRz3jVDw5KoNrYDwuGzM9YigXVBMCTCNvUBMLUzYbJB21Tyw5KCYaOC2vYDMvYCYWGD2f0y2HLCNmPoIbPDcbYzxr1CM5ZigeGC2HLBgXjzcbPBw1LzgLHDgvSEsdIGjqGCMvHzcbVDxrWDxqGD2L0AcbcyxnOt3v0Chv0igfUzcbZDg9WigL0ihDPDgGGs2LSBfnOzwXSlIbetYbot1qGvvnfiejbu0GGve9ptcbMB3iGCMvHzcbMAwXLihvZzsbgAwXLuMvHzc4Gww91ie1vu1qGChjVDMLKzsbHignVBMnPC2uGygrLC2nYAxb0Aw9UycbLEhbSywLUAw5NihDOyxqGDgHLignVBw1HBMqGzg9LCYbHBMqGD2H5ihLVDsbHCMuGCNvUBMLUzYbPDcaODgHLigDVywWGAxqGywr2yw5JzxmPiokaLcbPDcbPCYbZAg93BIb0BYb0AguGDxnLCIbMB3iGDhjHBNnWyxjLBMn5igjLzM9YzsbLEgvJDxrPB24UifrOzsbKzwzHDwX0ihrPBwvVDxqGAxmG','B2zMC2v0','yM94zwq','Bwf4rw50CMLLCW','BgfZDeLUzgv4t2y','AgvHzgvY','C291CMnL','Dhj1zwnVBg9Y','t1bftKfjx0fqsv9lrvK','sw52B2TLq29TBwfUza','y29KzvzLCMLMAwvY','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','ywXSB3DLzerPCNm','yNvMzMvYq2HHCNm','AxntEw1IB2XPy0XPBMS','uMvHzcbUzxCGB3v0Chv0igzYB20GysbIywnRz3jVDw5KihbYB2nLC3mGC3rHCNrLzcb3AxrOiejHC2GOCNvUsw5cywnRz3jVDw5KoNrYDwuPlIbszxr1CM5Zig91Dhb1DcbWCM9KDwnLzcbZAw5Jzsb0AguGBgfZDcbYzwfKoYbVChrPB25HBgX5igzPBhrLCIbSAw5LCYbIEsbHihjLz2v4lG','qxnZAwDUvgfZAW','Dg9VBe5HBwu','y29UDgv4Da','yMfJA2DYB3vUzfjLz2LZDhj5','v2vIrMv0y2G','zMfPBgvK','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','CgXHAw50zxH0','y2HHBMDL','yxjYyxK','ChjLCgfYzunHBgXiAwvYyxjJAhK','A2LSBfjLCxvLC3rLza','EMfP','C2v0vg9KB3m','zxH0BMfTzq','DhjHBNnWB3j0','B2XSyw1H','Dgv4Da','y2HHCKnVzgvbDa','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','xg5DkJ8','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','B2zM','Cg5WBs1SB2nRlNLHBwW','y2XLyw51Ca','Ag92zxi','BM90Awz5','y2f0y2G','BgLUAW','DMfSDwu','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','CMvZDwX0CW','DhLWzxnJCMLWDhjLywn0','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','y2fSBeLK','vw5HDxrOB3jPEMvKrxjYB3i','zMLSDgvY','AxnjBNrLz2vY','qwDLBNqGCNvUia','Bwf4qNL0zxm','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','q291BgqGBM90ihjLC29SDMuGAg9ZDa','Aw1Hz2uVCg5N','vMLLD2vKigLTywDLigzPBgu6ia','ywrKrxzLBNrmAxn0zw5LCG','AwDUB3jL','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','AxngAw5PDgu','lMDPzG','DhnJ','qwXSia','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','C2nVCgvZ','BgLZDfrVB2XZ','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','ywDLBNrjza','Aw52ywXPzf90B2rVx2nVBNrLBNq','lMPWzW','u2L6ztOG','Dg90ywXqCM9KDwnLza','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','mc4WlJaUma','C2vYDMvYswq','zMLSzvbHDgG','AgfUzgXL','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','yxnJAwK','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','BwfYA2rVD24','CMvNzxG','lMjPBG','DxrTx21LzgL1Bq','CMvTB3zLrxzLBNrmAxn0zw5LCG','C2vZC2LVBKLK','y3jLyxrLzef0','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','y2vPBa','CgfYC2vjBNq','C2vUzfjLCxvLC3q','C3rHDhvZ','AxnbyNnVBhv0zq','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','zw5HyMXLza','uMvMDxnPBMCGDg8GzMv0y2GGysbOB3n0ihrOyxqGCMvZB2X2zxmGDg8GysbUB24TChvIBgLJigfKzhjLC3m','BgfIzwW','B25LCNjVCG','C2TPBgXZ','C2H1DgrVD24','zNjVBq','r0LgodLH','CgfYC2u','B3bLCMf0Aw9U','yMLVBwuUANnVBMm','CMvHC29U','lNrTCc4','zxf1ywXZ','yNvMzMvY','B3jPz2LUywW','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','zgLYBMfTzq','zMLSzq','zw5K','B25szwrPCMvJDa','yxnRvxnLCG','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','u3rHCNrLzcbIywnRz3jVDw5KihbYB2nLC3mG','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','zw52','Dgf2AwX5qxbPs2v5','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','zxH0zw5ZAw9UCW','y29Kzq','zgvSzxrL','ugf0AcbPCYbUB3qGysbMAwXLoIa','Dg9Rzw4','Aw52ywXPzf90B2rVCW','l2jPBI9IyxnO','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','BgLUzxm','CgXHAw4','AMf2yxnJCMLWDa','tM8GC3LTyM9SCYbMB3vUza','B3b0Aw9UywW','l3vZCI9IAw4VCMC','qMfZzsbKAxjLy3rVCNK6ia','ywXSB3DLzfrVB2XZ','ls1ZDgrPBW','C2v0vg9WAwm','lNDLyNa','C3rKB3v0','ig1Z','CMvHzen1CNnVCG','C2HHmJu2','zgvMyxvSDen3za','zMLSBa','C2vYDMvY','BwLUAw1HEa','zgvZy3jPChrPB24','CMvHza','C29Tzq','CMvNAw9U','q29Tu3bLyW','D2LUmZi','igzHAwXLzc4','BM9Zy3jPChq','Bg9VA3vW','seLhsa','C2vSzwn0Aw9UuMfUz2u','y2XPzw50','C2L6zq','u0Lhs0Lmta','C3rKB3v0rgvJB2rLCG','tunqihrVB2WG','ywXSu2v0DgXLza','ugfJA2fNzxm','y29UC3rYDwn0B3i','qMfZAe91Dhb1Da','A2LTAq','CM91BMq','DhnJB25MAwCUANnVBG','EwfYBI5SB2nR','AgLNAa','zg9JDw1LBNrtEw1IB2W','l3bPza','rgLHz25VC3rPyW','igzYB20G','twLJCM9ZB2z0','C3bHD24','y291BNq','BM9Kzv9TB2r1BgvZ','DhLWzxnJCMLWDa','Dg9Rzw5tDg9YywDLs2v5','A2LSBgvK','lM10CW','BgLUzvrLEhq','Aw52ywXPzf90B2rVx3n0yxr1CW','tM8GyMfJA2DYB3vUzcbWCM9JzxnZihDPDgGGAwqG','y2HPBgq','Bg9JyxrPB24','Aw5PDgLHBgL6zq','BgLUzuvUza','CgXHDgzVCM0','C3r5Bgu','Aw5ZDhj1y3rPB25Z','BgLZDa','BwLU','mtKYlJe2oc4WlJa','C2vHCMnOrgvWDgG','zgv0ywLS','y2XVC2vbBgW','BM93','CNvUBMLUzW','Dhj1BMm','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','ru5pru5u','tunqihnLCNzLCIa','yM9VBgvHBG','CMvSyxrPDMu','C2vUze5VDgLMAwnHDgLVBG','yxnZAwDU','z29Vz2XLlwnZzq','mtKYlJaUmc4W','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','DxrTx3nVDxjJzq','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','BwnFy2LK','C3LTBgLUAW','oIbPBNzHBgLKihn0yxr1CW','uxvLC3rPB24G','Bwf4uMvKAxjLy3rZ','BhmGlwXH','Dg9tDhjPBMC','Agv4','qgjPB21LANmVyMLVBwu','CMvXDwLYzwq','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','Cg9W','C3rKzxjY','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','CgfJA2fNzu5HBwu','y2XPzw50CW','o1TExg5DkJ8','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','DhnZzxj2zxiUANm','wKfjx0fqsv9lrvK','CgfZC3rOCM91z2G','zxjYB3jnzxnZywDL','mte4odLNre5SAum','AhjLzG','BNv2Aw4','Dg9mB3DLCKnHC2u','BwvTB3j5','u2HLBgWGBM90igzVDw5KoIa','zMLYC3q','CMvWBgfJzq','CMvZDwX0','DhjPBuvUza','y2fWywjPBgL0AwvZ','B25oB3rPzMLJyxrPB24','zgf0yq','C3vIyxjYyxK','zgvUBY5QC29U','ue9tva','t0zg','Dgv4Dc9ODg1S','z2v0vg9KB3m','ywjVCNrLza','yxv0Aa','lMnQCW','ntqXnZe0nKrfr2vruq','BNvTyMvY','s0Lnsv9bueLFs0vz','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','AgvHzgvYCW','CgvUzgLUzW','zxjYB3jZ','ChvIBgLZAgvKqxq','u0HfteW','cGPbuKDvtuvovfm6ia','y2fJAgvK','DhjPBq','C2fMzq','Bg93','DMfSDwvZ','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','C3rVCMfNzurPCG','mc4WlJa','A2LSBa','zNvUy3rPB24','lu5Vtg9NBW','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','cGOTls0kcG','ugf0AcbUB3qGzM91BMq6ia','AxnfBMfIBgvK','AxneAxjLy3rVCNK','BgLUzvn0yxj0','Bwf4q29Uy3vYCMvUDa','Bwv0yxrHz3m','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','z2XVyG','CgfJA2fNzxm','BgLTAxq','B3jPz2LUvg9VBenHBgXjza','vw50AxrSzwq','CMvJB3jK','qMfZAa','D2HLCMuGCMC','BwfW','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','BwvZC2fNzq','qsbJB25JAxnLigv4CgXHBMf0Aw9Uig9MihDOyxqGDgHPCYbJB21Tyw5KigrVzxmGyw5KihDOEsb5B3uGyxjLihj1BM5PBMCGAxqG4OcuihrOzsbNB2fSigL0igfKDMfUy2vZlIbtAg93BIb0BYb0AguGDxnLCIbIzwzVCMuGzxHLy3v0Aw9UlIbczsbZCgvJAwzPyYWGzs5NlIaNuNvUihrOzsbHDxrOihrLC3rZihrVihzLCMLMEsb0AguGDg9Rzw4TCMvMCMvZAcbMAxGNihjHDgHLCIb0AgfUicDYDw4GDgvZDhmNlG','Axnoyu4','Dg9ju09tDhjPBMC','Bw9Kzq','Aw5JBhvKzxm','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','CMLWz3jLCa','z29Vz2XLq3nLs2v5','CMfUAW','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','ls1MAwXLCW','CMvTB3zL','C3rHCNreAxi','uhjVz3jHBuzPBgvZkhG4nIK','C3rYAw5NAwz5','BMfTzq','AgfZ','vg9KBYa','mZyWodqYmdbNwhLOr04','u2TPBgWGjW','BgL0zxjHBa','BgfUzW','y29TBwfUzhm','ChjVDg90ExbL','wefjx0fqsv9lrvK','z2v0u3rHDhm','BwvKAxvT','D2fPDezVCKrPywDUB3n0AwnZ','C2vYDMvYCW','ksbB','yw50AhjVCgLJ','zMLUza','mtaUmc4WlJa','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','AxnbCNjHEq','vxbKyxrLvg9WAwm','Aw5JBhvKzv9KB21HAw5Z','y29UDgvUDa','Aw5KzxHpzG','Aw52ywXPzf90B2rVx2L0zw0','Aw5JB21PBMDdywXSCW','CgLK','y29UBMvJDgvK','zgvMyxvSDfrPBwvVDxrnCW','mZbZu3DHEhC','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','C3jJl3nOyxjLzc90ExbLCY50CW'];_0x4a4c=function(){return _0x2e275e;};return _0x4a4c();}import{StringDecoder}from'string_decoder';import{spawn as _0x2c3e93}from'child_process';import{stripVTControlCharacters}from'util';function isErrnoException(_0xb03fec){return _0xb03fec instanceof Error;}function resolveCarriageReturns(_0x333b90){const _0x515a10={_0x21ef2c:0x17a},_0x29c7f1={_0x3c737e:0x2ff,_0x2a3773:0x2da,_0x303538:0x283},_0x51edeb={_0x4aa429:0x2da},_0x32a56c={_0x4bc616:0xa6,_0x237440:0x1c2};function _0x3bbed1(_0xfb7b0,_0x1e579e,_0x498ed8,_0x3d64ff){return _0x4ab00a(_0xfb7b0-_0x32a56c._0x4bc616,_0x1e579e-_0x32a56c._0x237440,_0x3d64ff,_0x498ed8- -0x4ee);}return _0x333b90['split']('\x0a')['map'](_0x2166d2=>{const _0x59727c={_0x30f779:0x3b};function _0x4fc174(_0x22b983,_0x1ad575,_0x5284e4,_0xcd2fa5){return _0x5a72(_0x22b983-_0x59727c._0x30f779,_0xcd2fa5);}if(!_0x2166d2['includes']('\x0d'))return _0x2166d2;const _0x3a9cb0=_0x2166d2[_0x4fc174(_0x29c7f1._0x3c737e,0x441,_0x29c7f1._0x2a3773,0x24a)]('\x0d');function _0x285723(_0x451027,_0xa43856,_0xc79068,_0x1eb088){return _0x5a72(_0x1eb088-_0x51edeb._0x4aa429,_0x451027);}return _0x3a9cb0[_0x3a9cb0[_0x4fc174(0x39c,0x28e,_0x29c7f1._0x303538,0x254)]-0x1]??'';})[_0x3bbed1(0x16e,_0x515a10._0x21ef2c,0x103,0x149)]('\x0a');}function resolveBackspaces(_0x44af5a){const _0x186bd1={_0x40c536:0x14a,_0x3b9b2a:0x2d5,_0xe12e44:0x396,_0x4e75cd:0x338,_0x39445f:0x4c4,_0x5a652a:0x52a,_0xc3f553:0x49a},_0x24286f={_0x2ff019:0x1ff},_0x21b296={_0x5a6f37:0xcc,_0x6c14dc:0x176},_0x2c6dbc=[];function _0x39be01(_0x5e8c78,_0x1cd651,_0x2cf9d1,_0x3598c6){return _0x1932a3(_0x3598c6,_0x1cd651-_0x21b296._0x5a6f37,_0x5e8c78-0x30,_0x3598c6-_0x21b296._0x6c14dc);}function _0x2c6814(_0x253b26,_0x2410e8,_0x500a34,_0x194ff8){return _0x4ab00a(_0x253b26-0xb2,_0x2410e8-0x87,_0x253b26,_0x194ff8-_0x24286f._0x2ff019);}for(const _0x1074a7 of Array[_0x39be01(0x2b8,_0x186bd1._0x40c536,_0x186bd1._0x3b9b2a,_0x186bd1._0xe12e44)](_0x44af5a)){_0x1074a7==='\x08'?_0x2c6dbc[_0x39be01(_0x186bd1._0x4e75cd,0x3b0,0x3bc,0x471)]():_0x2c6dbc[_0x39be01(_0x186bd1._0x39445f,_0x186bd1._0x5a652a,0x544,0x422)](_0x1074a7);}return _0x2c6dbc[_0x39be01(0x52a,0x57e,0x653,_0x186bd1._0xc3f553)]('');}function stripAnsiAndControls(_0x393dc4){const _0x3695cd={_0x3d928b:0xa,_0x273a39:0x63,_0x2c9aea:0x1b7,_0x253776:0x1ae,_0x3b392c:0xda,_0x2e7efa:0x307,_0x2e0d28:0x26b,_0xbb891b:0x2c,_0x3d7cb9:0xb8,_0x2c1ad3:0x3b3,_0x2f253e:0x26b,_0x65a24:0x32a,_0xa1235c:0x26b,_0x493c87:0x1ca,_0x11a0cd:0x63,_0x4b5da3:0xd5},_0x3fe4d6={_0x32009d:0x186},_0xb26037={_0x454f01:0x190,_0x29bd4a:0x474};_0x393dc4=resolveCarriageReturns(_0x393dc4),_0x393dc4=resolveBackspaces(_0x393dc4),_0x393dc4=stripVTControlCharacters(_0x393dc4);const _0x37985d='\x1b',_0x5a7da9='\x07';_0x393dc4=_0x393dc4[_0xc399e(0xbb,-_0x3695cd._0x3d928b,-_0x3695cd._0x273a39,-0xf)](new RegExp(';[^'+_0x5a7da9+_0xc399e(0x1d2,0x2ed,_0x3695cd._0x2c9aea,_0x3695cd._0x253776)+_0x5a7da9,'g'),''),_0x393dc4=_0x393dc4['replace'](new RegExp(_0xc399e(-_0x3695cd._0x3b392c,0x85,-0x70,-0x1aa)+_0x37985d+'\x5c\x5c','g'),'');function _0xc399e(_0x38cc00,_0x4f5045,_0x7b89f9,_0x4b534d){return _0x4ab00a(_0x38cc00-_0xb26037._0x454f01,_0x4f5045-0x1b7,_0x4f5045,_0x7b89f9- -_0xb26037._0x29bd4a);}_0x393dc4=_0x393dc4[_0x11b979(0x122,_0x3695cd._0x2e7efa,0x39c,_0x3695cd._0x2e0d28)](new RegExp(_0x5a7da9,'g'),''),_0x393dc4=_0x393dc4['replace'](new RegExp(_0x37985d+'[P_^][\x5cs\x5cS]*?'+_0x37985d+'\x5c\x5c','g'),'');function _0x11b979(_0x538750,_0x27e9fd,_0x2d5ae9,_0x122257){return _0x1932a3(_0x2d5ae9,_0x27e9fd-0x1a5,_0x122257- -0xaf,_0x122257-_0x3fe4d6._0x32009d);}return _0x393dc4=_0x393dc4['replace'](new RegExp(_0x37985d+_0xc399e(0xb5,_0x3695cd._0xbb891b,_0x3695cd._0x3d7cb9,0x18e),'g'),''),_0x393dc4=_0x393dc4[_0x11b979(0x3a3,_0x3695cd._0x2c1ad3,0x18f,_0x3695cd._0x2f253e)](/[\u0080-\u009F]/g,''),_0x393dc4=_0x393dc4[_0x11b979(0x2c0,0x23f,_0x3695cd._0x65a24,_0x3695cd._0xa1235c)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x393dc4=_0x393dc4[_0xc399e(-_0x3695cd._0x493c87,-0x5b,-_0x3695cd._0x11a0cd,-_0x3695cd._0x4b5da3)](/[\u23CE\u2424]/g,''),_0x393dc4;}function killProcessGroup(_0x54d00f,_0x27471a,_0x4e0763=_0x4ab00a(0x380,0x4c1,0x3f4,0x3bd)){const _0x802877={_0x368e13:0x311,_0x527e01:0x44d,_0x3c2d32:0x165,_0x32e984:0x4f,_0x4c50ce:0xdf,_0x4b7403:0x406,_0x555f3a:0x18d,_0x134d37:0x25d,_0x41de06:0x26f,_0x1981c8:0x383,_0x28a2af:0x4f7,_0x1c151b:0x53d,_0xb8e732:0x3c4,_0x14ee5a:0x517,_0x3806dc:0x13a,_0x2ec250:0x184,_0x5e07b9:0x185,_0x35868d:0xb7},_0x545a40={_0x47b4d5:0x194,_0x220680:0x37b};function _0x151d1f(_0x1844f0,_0x477a06,_0x344af3,_0x2d89ef){return _0x4ab00a(_0x1844f0-_0x545a40._0x47b4d5,_0x477a06-0x13f,_0x344af3,_0x2d89ef- -_0x545a40._0x220680);}function _0x1be7d6(_0x4efb00,_0x4d454f,_0x12d0ec,_0x5480c4){return _0x1932a3(_0x4efb00,_0x4d454f-0x1a2,_0x12d0ec-0x48,_0x5480c4-0xd2);}if(!_0x54d00f[_0x1be7d6(0x3fb,_0x802877._0x368e13,0x3c4,0x418)])return;if(_0x27471a)try{_0x2c3e93(_0x1be7d6(0x4c1,0x513,_0x802877._0x527e01,0x375),[_0x151d1f(-0x4f,_0x802877._0x3c2d32,0x135,_0x802877._0x32e984),_0x54d00f[_0x151d1f(0xe3,0x100,_0x802877._0x4c50ce,0xf8)]['toString'](),'/T','/F'],{'stdio':_0x151d1f(_0x802877._0x4b7403,_0x802877._0x555f3a,_0x802877._0x134d37,0x2c9)});return;}catch{_0x54d00f['kill'](_0x4e0763);return;}try{process[_0x1be7d6(_0x802877._0x41de06,0x2b4,_0x802877._0x1981c8,_0x802877._0x28a2af)](-_0x54d00f[_0x1be7d6(_0x802877._0x1c151b,0x4ad,_0x802877._0xb8e732,_0x802877._0x14ee5a)],_0x4e0763);}catch{_0x54d00f[_0x151d1f(_0x802877._0x3806dc,_0x802877._0x2ec250,_0x802877._0x5e07b9,_0x802877._0x35868d)](_0x4e0763);}}var BackgroundProcessRegistry=class{[_0x4ab00a(0x6c6,0x5a2,0x622,0x5bb)]=new Map();[_0x4ab00a(0x573,0x4b5,0x43b,0x43b)];[_0x4ab00a(0x750,0x70f,0x501,0x60a)];[_0x4ab00a(0x639,0x426,0x639,0x559)];[_0x1932a3(0x4c2,0x36b,0x3a0,0x272)]=0x0;constructor(_0x2a4fe9={}){const _0x5857fc={_0x53f4ea:0x2c0,_0x4f5150:0x2e8,_0x525ea6:0x248,_0x4c4d67:0x35a,_0x46d933:0x1ed,_0x1b2731:0x2ce,_0x7a280d:0x5f2,_0x1738bc:0x55f,_0x42722f:0x58c,_0x3aba85:0x3de,_0x1da8d3:0x3b0,_0x32f5df:0x286},_0x172e42={_0x27c146:0x9e,_0x3aafa8:0x79},_0x4b3a1d={_0x2cd16c:0x47};this[_0x66495c(_0x5857fc._0x53f4ea,_0x5857fc._0x4f5150,_0x5857fc._0x525ea6,_0x5857fc._0x4c4d67)]=_0x2a4fe9[_0x66495c(0x2c0,_0x5857fc._0x46d933,_0x5857fc._0x1b2731,0x1bb)]??0xa;function _0x66495c(_0x388785,_0x133c4a,_0x152577,_0x55f222){return _0x4ab00a(_0x388785-_0x4b3a1d._0x2cd16c,_0x133c4a-0xfb,_0x152577,_0x388785- -0x17b);}this['maxEntries']=_0x2a4fe9[_0x9a8214(_0x5857fc._0x7a280d,_0x5857fc._0x1738bc,0x545,_0x5857fc._0x42722f)]??0x40;function _0x9a8214(_0x342c68,_0xace467,_0x3a0245,_0x44bd71){return _0x1932a3(_0xace467,_0xace467-_0x172e42._0x27c146,_0x44bd71-_0x172e42._0x3aafa8,_0x44bd71-0x1dd);}this[_0x66495c(_0x5857fc._0x3aba85,0x54e,_0x5857fc._0x1da8d3,_0x5857fc._0x32f5df)]=_0x2a4fe9['capChars']??0x100000;}['spawn'](_0x52ed04){const _0x5f2fa6={_0x3e9c1a:0x369,_0x160b50:0x363,_0x36166e:0x271,_0x43e77d:0x36d,_0x643847:0x1dc,_0x1b55c7:0x7b7,_0x5ebd16:0x791,_0x2f7c68:0x2e6,_0x308cec:0x43e,_0x5c52e2:0x1e9,_0x47c702:0xdf,_0x2b9958:0x2e8,_0x38d6af:0x36b,_0x1f17ed:0x381,_0x2096d1:0x1e9,_0xc776a4:0x95,_0x373ac3:0x9f,_0x703357:0x263,_0x1eec5e:0x344,_0x2bfb43:0x64f,_0x3de91a:0x6c5,_0x4abf27:0x186,_0x30b7fc:0x2eb,_0x2f216d:0x2db,_0x3493bb:0x2e1,_0x5445c0:0x44d,_0x52bbbb:0x3fa,_0x3a191b:0x52b,_0x131369:0x557,_0x135d21:0x405,_0x39bee2:0x577,_0x1e9878:0x6df,_0x1df110:0x519,_0x2594cb:0x1ca,_0x37375b:0x156,_0x2a5aa3:0x78,_0x56608d:0x47e,_0x32d3ae:0x437,_0x31f304:0x45c,_0x5a5399:0x468,_0x303aa7:0x440,_0xb96aca:0x514,_0xea221b:0x517,_0x40b610:0x199,_0xc9156c:0x532,_0x53914b:0x454,_0x2193d0:0x699,_0xb2201a:0x682,_0x237999:0x3cd,_0x598d61:0x40a,_0x4ea689:0x3be,_0x358a29:0x6bc,_0x5d390d:0x48c,_0x308f85:0x2e8,_0x421897:0x266,_0x2eb18f:0x440,_0x5b5582:0x2f7,_0x47b393:0x46f,_0x27aa04:0x2ef,_0x31ccd4:0x664},_0x2d02c1={_0x570eda:0x33,_0x28b6c6:0x1f1},_0x44a706={_0x297b77:0x180,_0x5c200c:0x15b},_0x1eabce={_0x58eb99:0x1d0,_0x14c45f:0x2c7,_0x1451e6:0x2a5,_0x2806de:0x2ba,_0x3d589b:0x4cd,_0x166762:0x2f4,_0x53e060:0x3cb,_0x89f36f:0x48b},_0x52fa2d={_0x49d0e1:0x19},_0x48928e={_0x5c48e9:0x2a7,_0xa6fded:0x45f,_0x4fe66b:0x2c8,_0x51f1b5:0x28c,_0x3aba3e:0x15f,_0x11931b:0xf6,_0x4ae8d8:0x241,_0x69b99f:0x24c,_0x3fb6ba:0x364,_0x6a5ae6:0x236,_0x56d9d8:0x40c,_0x465ef7:0x314,_0x186fa1:0x48d,_0x5bc6cf:0x598,_0x53afb6:0xc8,_0x15389d:0x30c,_0x1c9b20:0x1e4,_0x59d0c2:0x286,_0x561112:0x249,_0x5d1889:0x2fb,_0x3930af:0x3c3,_0x32ccce:0x306,_0x150835:0x331,_0xaf332c:0x109,_0x15c52b:0x117,_0xc3f0da:0x1ec},_0x4a78ee={_0x17d5e6:0x107},_0x29ff56={_0x4306d0:0x4a6,_0x30efa6:0x185},_0x5be5d0={_0x393d66:0xe0,_0x56afa0:0x6d,_0x59ebdc:0x18e},_0x57a6a0=[...this[_0x49b795(_0x5f2fa6._0x3e9c1a,_0x5f2fa6._0x160b50,_0x5f2fa6._0x36166e,_0x5f2fa6._0x43e77d)][_0x49b795(_0x5f2fa6._0x643847,0x196,0x248,0x281)]()][_0x27c7ec(0x6a3,0x668,_0x5f2fa6._0x1b55c7,_0x5f2fa6._0x5ebd16)](_0x2592dc=>_0x2592dc[_0x49b795(0x124,0x16,0x214,0x255)]==='running')[_0x49b795(_0x5f2fa6._0x2f7c68,0x189,0x2b0,_0x5f2fa6._0x308cec)];if(_0x57a6a0>=this['maxConcurrent'])throw new ToolExecutionError('Too\x20many\x20background\x20processes\x20running\x20('+this[_0x49b795(_0x5f2fa6._0x5c52e2,0x23d,_0x5f2fa6._0x47c702,_0x5f2fa6._0x2b9958)]+_0x49b795(0x233,0x1b3,_0x5f2fa6._0x38d6af,_0x5f2fa6._0x1f17ed),{'running':this[_0x49b795(_0x5f2fa6._0x2096d1,_0x5f2fa6._0xc776a4,_0x5f2fa6._0x373ac3,_0x5f2fa6._0x703357)]});const _0x79d1de='bg-'+ ++this[_0x49b795(0x245,_0x5f2fa6._0x1eec5e,0x17d,0x361)]+'-'+randomUUID()['slice'](0x0,0x8),_0x4c01fd={'shellId':_0x79d1de,'command':_0x52ed04[_0x27c7ec(_0x5f2fa6._0x2bfb43,0x574,_0x5f2fa6._0x3de91a,0x795)],'cwd':_0x52ed04['cwd'],'pid':_0x52ed04[_0x49b795(_0x5f2fa6._0x4abf27,_0x5f2fa6._0x30b7fc,_0x5f2fa6._0x2f216d,0x247)][_0x49b795(0x221,0xbe,_0x5f2fa6._0x3493bb,0x339)],'status':'running','exitCode':null,'signal':null,'startedAt':Date[_0x27c7ec(_0x5f2fa6._0x5445c0,_0x5f2fa6._0x52bbbb,0x598,0x56e)](),'child':_0x52ed04['child'],'buffer':[],'bufferChars':0x0,'totalProduced':0x0,'totalDropped':0x0,'readCursor':0x0,'stdoutDecoder':new StringDecoder(_0x27c7ec(_0x5f2fa6._0x3a191b,_0x5f2fa6._0x131369,_0x5f2fa6._0x135d21,_0x5f2fa6._0x39bee2)),'stderrDecoder':new StringDecoder('utf8'),'stripAnsi':_0x52ed04[_0x27c7ec(0x5fb,_0x5f2fa6._0x1e9878,_0x5f2fa6._0x1df110,0x570)],'killRequested':![],'processExited':![]};_0x52ed04[_0x49b795(0x186,0x122,_0x5f2fa6._0x2594cb,0xe9)][_0x49b795(_0x5f2fa6._0x37375b,0x53,_0x5f2fa6._0x2a5aa3,0x231)]?.['on'](_0x27c7ec(_0x5f2fa6._0x56608d,0x3d3,_0x5f2fa6._0x32d3ae,0x587),_0x3d7db5=>this[_0x49b795(0x25d,0x394,0x1f1,0x13a)](_0x4c01fd,_0x4c01fd['stdoutDecoder'][_0x27c7ec(0x654,0x6ed,0x6b5,0x6e0)](_0x3d7db5))),_0x52ed04[_0x27c7ec(0x440,0x305,_0x5f2fa6._0x31f304,0x591)][_0x27c7ec(_0x5f2fa6._0x5a5399,0x3b9,0x310,0x444)]?.['on']('data',_0x33f961=>this[_0x27c7ec(0x517,0x40f,0x5f2,0x63c)](_0x4c01fd,_0x4c01fd[_0x49b795(0x386,0x336,0x47d,0x2fe)][_0x27c7ec(0x654,0x5d9,0x6e3,0x68f)](_0x33f961))),_0x52ed04[_0x27c7ec(_0x5f2fa6._0x303aa7,_0x5f2fa6._0xb96aca,0x2d0,_0x5f2fa6._0xea221b)][_0x49b795(0x2de,0x3c2,_0x5f2fa6._0x40b610,_0x5f2fa6._0x303aa7)](_0x27c7ec(_0x5f2fa6._0xc9156c,_0x5f2fa6._0x53914b,_0x5f2fa6._0x2193d0,_0x5f2fa6._0xb2201a),()=>{const _0x10b26c={_0x2d1e3a:0xcd,_0x3f1c8c:0x139};function _0x1c34b4(_0x3280f5,_0x376652,_0x5d28e4,_0x286912){return _0x49b795(_0x286912- -_0x10b26c._0x2d1e3a,_0x376652-_0x10b26c._0x3f1c8c,_0x5d28e4-0x12c,_0x5d28e4);}_0x4c01fd[_0x1c34b4(_0x5be5d0._0x393d66,_0x5be5d0._0x56afa0,_0x5be5d0._0x59ebdc,0x18c)]=!![];}),_0x52ed04[_0x27c7ec(_0x5f2fa6._0x303aa7,_0x5f2fa6._0x237999,_0x5f2fa6._0x598d61,_0x5f2fa6._0x4ea689)][_0x27c7ec(0x598,0x672,_0x5f2fa6._0x358a29,_0x5f2fa6._0x5d390d)](_0x49b795(_0x5f2fa6._0x308f85,0x276,0x263,_0x5f2fa6._0x421897),(_0x53595a,_0x4f893c)=>{function _0x3659ee(_0x2bf468,_0x224fc2,_0xf5c89b,_0x40d4d5){return _0x27c7ec(_0x2bf468- -_0x29ff56._0x4306d0,_0x224fc2-_0x29ff56._0x30efa6,_0xf5c89b,_0x40d4d5-0x5d);}this[_0x2caa9e(_0x48928e._0x5c48e9,_0x48928e._0xa6fded,0x364,_0x48928e._0x4fe66b)](_0x4c01fd,_0x4c01fd[_0x2caa9e(_0x48928e._0x51f1b5,0x227,0x273,_0x48928e._0x3aba3e)][_0x2caa9e(_0x48928e._0x11931b,0x3a3,_0x48928e._0x4ae8d8,0x108)]()),this[_0x2caa9e(_0x48928e._0x69b99f,0x29f,_0x48928e._0x3fb6ba,_0x48928e._0x6a5ae6)](_0x4c01fd,_0x4c01fd[_0x2caa9e(_0x48928e._0x56d9d8,_0x48928e._0x465ef7,_0x48928e._0x186fa1,_0x48928e._0x5bc6cf)][_0x2caa9e(_0x48928e._0x53afb6,0x167,_0x48928e._0x4ae8d8,0x159)]()),_0x4c01fd[_0x2caa9e(0x38a,_0x48928e._0x15389d,0x22b,_0x48928e._0x15389d)]=_0x4c01fd[_0x3659ee(_0x48928e._0x1c9b20,_0x48928e._0x59d0c2,_0x48928e._0x561112,_0x48928e._0x5d1889)]?_0x2caa9e(_0x48928e._0x3930af,_0x48928e._0x32ccce,0x288,_0x48928e._0x150835):_0x3659ee(_0x48928e._0xaf332c,-0x2b,_0x48928e._0x15c52b,0x1bb),_0x4c01fd[_0x3659ee(0x10d,0x21b,0x14e,_0x48928e._0xc3f0da)]=_0x53595a,_0x4c01fd['signal']=_0x4f893c;function _0x2caa9e(_0xcfaac9,_0x325b67,_0x13e2ce,_0x43ba75){return _0x49b795(_0x13e2ce-_0x4a78ee._0x17d5e6,_0x325b67-0x177,_0x13e2ce-0x15f,_0x325b67);}_0x4c01fd['child']=null;}),_0x52ed04[_0x27c7ec(_0x5f2fa6._0x2eb18f,0x3d5,0x429,0x4a4)]['once'](_0x49b795(_0x5f2fa6._0x5b5582,0x3c4,0x3d7,_0x5f2fa6._0x47b393),_0x357a2b=>{const _0x312b7d={_0x71ecf1:0x13f};_0x4c01fd[_0x5cbd06(_0x1eabce._0x58eb99,_0x1eabce._0x14c45f,_0x1eabce._0x1451e6,_0x1eabce._0x2806de)]=_0x269ef2(0x53c,_0x1eabce._0x3d589b,0x560,0x408);function _0x269ef2(_0x52c179,_0x5a8b98,_0x4d874e,_0x585583){return _0x27c7ec(_0x52c179- -0x75,_0x5a8b98-_0x52fa2d._0x49d0e1,_0x4d874e,_0x585583-0x7f);}_0x4c01fd[_0x5cbd06(0x3a3,_0x1eabce._0x166762,0x455,0x428)]=_0x357a2b['message'];function _0x5cbd06(_0x35b531,_0x246d9c,_0xe26a78,_0x3c5e60){return _0x49b795(_0x35b531-0xac,_0x246d9c-_0x312b7d._0x71ecf1,_0xe26a78-0xfd,_0x3c5e60);}_0x4c01fd[_0x269ef2(_0x1eabce._0x53e060,0x3b9,0x4ee,_0x1eabce._0x89f36f)]=null;});function _0x49b795(_0x87dfaf,_0x3341ff,_0x3efd73,_0xb3db7){return _0x1932a3(_0xb3db7,_0x3341ff-_0x44a706._0x297b77,_0x87dfaf- -_0x44a706._0x5c200c,_0xb3db7-0xc1);}this[_0x49b795(0x369,0x499,_0x5f2fa6._0x27aa04,0x232)][_0x27c7ec(_0x5f2fa6._0x31ccd4,0x545,0x682,0x617)](_0x79d1de,_0x4c01fd);function _0x27c7ec(_0x21a30f,_0x2d029b,_0x57998a,_0x3d33c6){return _0x4ab00a(_0x21a30f-_0x2d02c1._0x570eda,_0x2d029b-_0x2d02c1._0x28b6c6,_0x57998a,_0x21a30f-0x68);}return this['evictIfNeeded'](),_0x4c01fd;}[_0x4ab00a(0x2b0,0x270,0x462,0x3b1)](_0x495894,_0x378181){const _0x310993={_0x51445c:0x49a,_0x7325f4:0x428,_0x2c7c09:0x3ee,_0xc2ab1:0x3b8,_0x2d04aa:0x308,_0xe24813:0x23d,_0x289af5:0x244,_0x590764:0x3bd,_0x2371cb:0x44f,_0x2d940a:0x220,_0x27a61e:0x1ee,_0x116390:0x217,_0x7964e0:0x586,_0x1c56e6:0x3b3,_0x3728d5:0x477,_0xcb35d:0x492,_0xc0cce5:0x369,_0x5a28c4:0x4a9,_0x274f84:0x357,_0x5cda9a:0x645,_0x311be1:0x561,_0x3c429a:0x688,_0x527154:0x6fb,_0x463970:0x579,_0x461fcd:0x4df,_0x269050:0x4e3,_0x21ce69:0x14b,_0x38d0f1:0x359,_0x41f686:0x459,_0x1d52a4:0x5f7,_0x11e42a:0x664,_0x56aac6:0x650,_0x14b872:0x72e,_0x9aaeee:0x2b5,_0x162320:0x641,_0x5b1c17:0x568,_0x5e1a66:0x5b8,_0x98c5b2:0x6a6,_0x1a9c56:0x7e9,_0x49fee4:0x5c2,_0x43ea79:0x7ae,_0x4cc0cc:0x307,_0x3dd946:0x29b,_0x12483c:0x449,_0x5c4672:0x159,_0x2d0154:0x3ed,_0xd1dbf7:0x44d,_0x27e5af:0x4f9,_0x866f50:0x48a,_0x11c512:0x5e6,_0x13a035:0x605},_0x10c98e={_0x3bb801:0xc8,_0x4ccf48:0x1a},_0x55fa54={_0x4ecc11:0x8f},_0x3f0e1d=this[_0x38e207(0x3cb,_0x310993._0x51445c,0x540,_0x310993._0x7325f4)][_0x38e207(_0x310993._0x2c7c09,0x5b7,0x497,0x46d)](_0x495894);function _0x376dc4(_0x303651,_0x3f034d,_0x4d7152,_0x2fc9ea){return _0x4ab00a(_0x303651-0x9a,_0x3f034d-_0x55fa54._0x4ecc11,_0x2fc9ea,_0x4d7152-0xb9);}if(!_0x3f0e1d)throw new ToolExecutionError(_0x38e207(_0x310993._0xc2ab1,_0x310993._0x2d04aa,_0x310993._0xe24813,_0x310993._0x289af5)+_0x495894,{'shellId':_0x495894});const _0x1d9abe=_0x3f0e1d['buffer'][_0x38e207(_0x310993._0x590764,0x5d7,0x589,0x45e)](''),_0x3d6366=Math[_0x38e207(_0x310993._0x2371cb,0x473,0x3f2,0x3b3)](_0x3f0e1d[_0x38e207(_0x310993._0x2d940a,0x1c8,_0x310993._0x27a61e,_0x310993._0x116390)],_0x3f0e1d[_0x376dc4(_0x310993._0x7964e0,0x6f3,0x688,0x7c6)]),_0x5318d6=Math[_0x38e207(0x3f7,0x467,0x346,_0x310993._0x1c56e6)](0x0,_0x3f0e1d['totalDropped']-_0x3f0e1d[_0x376dc4(_0x310993._0x3728d5,_0x310993._0xcb35d,0x463,_0x310993._0xcb35d)]),_0x560343=_0x1d9abe[_0x38e207(0x3cf,_0x310993._0xc0cce5,_0x310993._0x5a28c4,_0x310993._0x274f84)](_0x3d6366-_0x3f0e1d[_0x376dc4(_0x310993._0x5cda9a,_0x310993._0x311be1,_0x310993._0x3c429a,_0x310993._0x527154)]),_0x941d79=_0x3f0e1d[_0x376dc4(0x3f9,_0x310993._0x463970,0x42f,_0x310993._0x461fcd)]!=='running';let _0x3a3dac;function _0x38e207(_0x4a996f,_0x231b9d,_0x3cd667,_0x179dda){return _0x1932a3(_0x231b9d,_0x231b9d-_0x10c98e._0x3bb801,_0x179dda- -0x9c,_0x179dda-_0x10c98e._0x4ccf48);}const _0x36d9f2=_0x378181?.[_0x38e207(0x5b5,_0x310993._0x269050,0x4e3,0x4cb)];if(!_0x36d9f2)_0x3a3dac=_0x560343,_0x3f0e1d[_0x38e207(_0x310993._0x21ce69,0x233,0x175,0x217)]=_0x3f0e1d[_0x38e207(_0x310993._0x38d0f1,_0x310993._0x41f686,_0x310993._0x1d52a4,0x4c1)];else{let _0xf1c1e9;try{_0xf1c1e9=new RegExp(_0x36d9f2);}catch(_0x178dd5){throw new ToolExecutionError(_0x376dc4(0x605,_0x310993._0x11e42a,_0x310993._0x56aac6,_0x310993._0x14b872)+_0x178dd5[_0x38e207(0x39f,0x426,0x146,_0x310993._0x9aaeee)],{'shellId':_0x495894,'regex':_0x36d9f2});}let _0x2ca606=_0x560343;if(!_0x941d79){const _0x8ad587=_0x560343[_0x376dc4(_0x310993._0x162320,_0x310993._0x5b1c17,0x6c4,_0x310993._0x5e1a66)]('\x0a');_0x2ca606=_0x8ad587>=0x0?_0x560343[_0x376dc4(0x71b,0x583,0x5a3,_0x310993._0x98c5b2)](0x0,_0x8ad587+0x1):'';}_0x3a3dac=_0x2ca606['split']('\x0a')[_0x376dc4(_0x310993._0x1a9c56,0x5fe,0x6f4,0x5af)](_0x487c75=>_0xf1c1e9[_0x376dc4(0x639,0x563,0x622,0x6e3)](_0x487c75))[_0x376dc4(_0x310993._0x49fee4,_0x310993._0x43ea79,0x6aa,0x579)]('\x0a'),_0x3f0e1d['readCursor']=_0x3d6366+_0x2ca606[_0x38e207(0x2e5,0x40e,_0x310993._0x4cc0cc,0x3a5)];}const _0x5ab9b7=(_0x5318d6>0x0?'[output\x20truncated:\x20'+_0x5318d6+_0x38e207(0x569,_0x310993._0x3dd946,_0x310993._0x12483c,0x3f0):'')+_0x3a3dac;return{'output':_0x5ab9b7,'status':_0x3f0e1d[_0x38e207(_0x310993._0x5c4672,0x146,0x313,0x1e3)],'exitCode':_0x3f0e1d[_0x38e207(_0x310993._0x2d0154,0x32a,_0x310993._0xd1dbf7,_0x310993._0xc2ab1)],'signal':_0x3f0e1d[_0x376dc4(_0x310993._0x27e5af,_0x310993._0x866f50,_0x310993._0x11c512,_0x310993._0x13a035)],'truncated':_0x5318d6>0x0};}[_0x1932a3(0x1ee,0x40f,0x2e8,0x447)](){const _0x39f519={_0x1f06aa:0x29a,_0x5586b8:0x15b},_0x50f781={_0x5d8d99:0x1be,_0x3e8278:0x492};function _0x5011d6(_0x434cf7,_0x17ea4a,_0x4e3742,_0x1a29e9){return _0x1932a3(_0x434cf7,_0x17ea4a-_0x50f781._0x5d8d99,_0x17ea4a- -_0x50f781._0x3e8278,_0x1a29e9-0x1c6);}return[...this['entries'][_0x5011d6(-_0x39f519._0x1f06aa,-_0x39f519._0x5586b8,-0x15b,-0x166)]()];}[_0x1932a3(0x3a2,0x1e7,0x33b,0x45e)](_0x56f994){const _0xe1f511={_0x4d318a:0x388,_0x1d9102:0x2b4,_0x5e5fbe:0x211,_0x1c0548:0x296,_0x392d2d:0x2d0,_0x4e0f6c:0x302,_0x261f49:0x1a4,_0x2537bc:0xd,_0x444c99:0xd0,_0x35e4c8:0x27c,_0x148b17:0x238,_0x1d530a:0x424,_0x1ae697:0x278,_0x429b5d:0x259,_0x36c5ab:0x3d5,_0x4ea029:0x2e1,_0x4243cc:0x5b2,_0x25ba30:0x574,_0x1844b6:0x2d3,_0x70f4e1:0x89,_0x2b8887:0x25d,_0x461a3b:0x3b9,_0x2ff340:0x2e2,_0x26b1bc:0x182,_0x509ecf:0x16e,_0x5b34fa:0x3c,_0x59d288:0x4db},_0x5132b2={_0x5f5aa8:0x70},_0x68a58e={_0x1e4614:0x9c},_0x795ba1=this[_0x42007c(_0xe1f511._0x4d318a,_0xe1f511._0x1d9102,_0xe1f511._0x5e5fbe,_0xe1f511._0x1c0548)][_0x42007c(0x3cd,_0xe1f511._0x392d2d,0x50a,_0xe1f511._0x4e0f6c)](_0x56f994);if(!_0x795ba1)throw new ToolExecutionError(_0x42007c(_0xe1f511._0x261f49,0x271,0x29b,0x266)+_0x56f994,{'shellId':_0x56f994});function _0x42007c(_0x5e1291,_0x4a60c9,_0x21401a,_0x728542){return _0x1932a3(_0x21401a,_0x4a60c9-0x153,_0x5e1291- -0x13c,_0x728542-_0x68a58e._0x1e4614);}function _0x3efd99(_0x530b84,_0x9ee726,_0x27c792,_0x8fbd64){return _0x4ab00a(_0x530b84-0xcf,_0x9ee726-0xcd,_0x8fbd64,_0x27c792- -_0x5132b2._0x5f5aa8);}if(_0x795ba1[_0x42007c(0x143,0x214,-_0xe1f511._0x2537bc,_0xe1f511._0x444c99)]===_0x3efd99(_0xe1f511._0x35e4c8,_0xe1f511._0x148b17,0x376,_0xe1f511._0x1d530a)&&_0x795ba1['child']&&!_0x795ba1[_0x42007c(_0xe1f511._0x1ae697,_0xe1f511._0x429b5d,_0xe1f511._0x36c5ab,_0xe1f511._0x4ea029)]){_0x795ba1[_0x3efd99(0x657,0x5c7,_0xe1f511._0x4243cc,_0xe1f511._0x25ba30)]=!![];try{killProcessGroup(_0x795ba1[_0x42007c(0x1a5,0x2d8,_0xe1f511._0x1844b6,_0xe1f511._0x70f4e1)],process[_0x3efd99(_0xe1f511._0x2b8887,_0xe1f511._0x461a3b,0x36c,_0xe1f511._0x2ff340)]===_0x42007c(_0xe1f511._0x26b1bc,_0xe1f511._0x509ecf,_0xe1f511._0x5b34fa,0x111));}catch{}}return{'status':_0x795ba1['status'],'exitCode':_0x795ba1[_0x3efd99(0x5e6,0x558,_0xe1f511._0x59d288,0x5e3)],'signal':_0x795ba1['signal']};}async[_0x1932a3(0x307,0x334,0x2ed,0x2d3)](){const _0x2b10fb={_0x39edf6:0x41,_0x487008:0xe5,_0x5e9c91:0x1c0,_0xe0b28a:0xdc,_0x3c9354:0xc8,_0x3217ad:0x1c4,_0x794b97:0x110,_0x17ce75:0x269,_0x9b2517:0x4b,_0x1e947f:0xb9,_0x2be51a:0x9b,_0x1d2890:0x279,_0x25a761:0x11a,_0x4d62d3:0x216,_0xd21b8f:0x3d,_0x187f07:0x141},_0x51b03c={_0x48a577:0x192,_0x22a797:0x3ff,_0x58a088:0xd4},_0x282306={_0x20d14b:0x11b};function _0x578cc9(_0x262349,_0x2086fa,_0x34d1c6,_0x460adf){return _0x1932a3(_0x460adf,_0x2086fa-_0x282306._0x20d14b,_0x2086fa- -0x3df,_0x460adf-0x5a);}function _0xc6a760(_0x38de08,_0x8b96d,_0x39cf59,_0x11687d){return _0x1932a3(_0x39cf59,_0x8b96d-_0x51b03c._0x48a577,_0x8b96d- -_0x51b03c._0x22a797,_0x11687d-_0x51b03c._0x58a088);}for(const _0xd30002 of this[_0x578cc9(_0x2b10fb._0x39edf6,_0x2b10fb._0x487008,0x12c,_0x2b10fb._0x5e9c91)][_0xc6a760(-_0x2b10fb._0xe0b28a,-_0x2b10fb._0x3c9354,0x7e,-0x16b)]()){if(_0xd30002['status']===_0xc6a760(-_0x2b10fb._0x3217ad,-_0x2b10fb._0x794b97,-0x225,-_0x2b10fb._0x17ce75)&&_0xd30002['child']&&!_0xd30002[_0xc6a760(-0x5e,-_0x2b10fb._0x9b2517,-_0x2b10fb._0x1e947f,-0x1c0)]){_0xd30002[_0xc6a760(_0x2b10fb._0x2be51a,0x12c,0x79,_0x2b10fb._0x1d2890)]=!![];try{killProcessGroup(_0xd30002['child'],process[_0xc6a760(0x15,-_0x2b10fb._0x25a761,-0x91,-_0x2b10fb._0x4d62d3)]===_0xc6a760(-_0x2b10fb._0xd21b8f,-_0x2b10fb._0x187f07,-0x25e,-0x70));}catch{}}}}[_0x1932a3(0x384,0x4dd,0x3b8,0x47c)](_0x3a38a6,_0xecd0e1){const _0x27029e={_0x45725b:0x55d,_0x462e1f:0x5ca,_0x5657ef:0x7c1,_0x3baa81:0x7e9,_0x35c737:0x43c,_0x27905f:0x46d,_0x56bbea:0x342,_0x2f06e9:0x47b,_0x1f0106:0x73e,_0x58448d:0x512,_0x4d50ec:0x662,_0x468531:0x7f7,_0x57712e:0x61c,_0x260893:0x761,_0x53bf6e:0x78e,_0x87e047:0x61e,_0x29b0a4:0x73a,_0xb868dc:0x711,_0x37c82c:0x74e,_0x38c4d3:0x7a4,_0x344224:0x80c,_0x508dd3:0x6fa,_0x2f75fa:0x333,_0x51e1d8:0x587,_0x3b1a53:0x552,_0x31a375:0x61e,_0x4154c0:0x5a3,_0x491157:0x5ba,_0x3d4013:0x7d6,_0x2ba8a5:0x74e},_0x5e11f4={_0x42dc93:0x136,_0x51dcad:0x158},_0x3e80d8={_0x15142c:0x105,_0x4e9c55:0x1dd};function _0x607a5b(_0x3fa09b,_0x56e5cd,_0x5685ef,_0x3c8deb){return _0x1932a3(_0x3fa09b,_0x56e5cd-_0x3e80d8._0x15142c,_0x56e5cd-_0x3e80d8._0x4e9c55,_0x3c8deb-0xcb);}const _0x1b3f3a=_0x3a38a6[_0x607a5b(0x749,0x679,_0x27029e._0x45725b,_0x27029e._0x462e1f)]?stripAnsiAndControls(_0xecd0e1):_0xecd0e1;if(_0x1b3f3a[_0x2722f5(0x62e,_0x27029e._0x5657ef,_0x27029e._0x3baa81,0x672)]===0x0)return;_0x3a38a6[_0x607a5b(_0x27029e._0x35c737,_0x27029e._0x27905f,_0x27029e._0x56bbea,_0x27029e._0x2f06e9)][_0x607a5b(_0x27029e._0x1f0106,0x671,_0x27029e._0x58448d,_0x27029e._0x4d50ec)](_0x1b3f3a),_0x3a38a6[_0x2722f5(0x846,_0x27029e._0x468531,_0x27029e._0x57712e,0x74e)]+=_0x1b3f3a['length'];function _0x2722f5(_0xda5cd1,_0x9c8077,_0x478634,_0x23284f){return _0x1932a3(_0x478634,_0x9c8077-_0x5e11f4._0x42dc93,_0x23284f-0x231,_0x23284f-_0x5e11f4._0x51dcad);}_0x3a38a6[_0x2722f5(0x7bf,0x83d,_0x27029e._0x260893,_0x27029e._0x53bf6e)]+=_0x1b3f3a[_0x607a5b(0x597,_0x27029e._0x87e047,0x6ab,_0x27029e._0x29b0a4)];while(_0x3a38a6[_0x2722f5(_0x27029e._0xb868dc,0x782,0x79f,_0x27029e._0x37c82c)]>this[_0x607a5b(_0x27029e._0x38c4d3,0x63f,0x62e,0x6d6)]){const _0x7474d5=_0x3a38a6[_0x607a5b(_0x27029e._0x344224,_0x27029e._0x508dd3,0x7cc,0x7fe)]-this[_0x607a5b(0x789,0x63f,0x668,0x6ad)],_0x40be30=_0x3a38a6[_0x607a5b(_0x27029e._0x2f75fa,_0x27029e._0x27905f,_0x27029e._0x51e1d8,_0x27029e._0x3b1a53)][0x0];_0x40be30[_0x2722f5(0x637,0x570,0x6d8,0x672)]<=_0x7474d5?(_0x3a38a6['buffer']['shift'](),_0x3a38a6['bufferChars']-=_0x40be30[_0x607a5b(0x4ef,_0x27029e._0x31a375,0x513,0x6f5)],_0x3a38a6['totalDropped']+=_0x40be30['length']):(_0x3a38a6[_0x607a5b(0x303,0x46d,0x349,_0x27029e._0x4154c0)][0x0]=_0x40be30[_0x607a5b(0x5f4,0x5d0,0x601,_0x27029e._0x491157)](_0x7474d5),_0x3a38a6[_0x2722f5(_0x27029e._0x3d4013,0x612,0x7e4,_0x27029e._0x2ba8a5)]-=_0x7474d5,_0x3a38a6['totalDropped']+=_0x7474d5);}}['evictIfNeeded'](){const _0x557304={_0x510f09:0x425,_0x25d741:0x2f7,_0x1411ce:0x6a8,_0x438cad:0x756,_0x2e5052:0x659,_0x510172:0x779,_0x1a3599:0x598,_0x365bbc:0x515,_0x2086d1:0x659,_0x4383e8:0x702,_0x2ab0fa:0x6d2,_0x5d7d19:0x534,_0x10a921:0x2c2},_0x140476={_0x3b80b1:0x195},_0x25ea5d={_0x54dd4e:0x196};function _0x177ee4(_0x5258b6,_0xe48253,_0x423757,_0x2e1594){return _0x4ab00a(_0x5258b6-0x15,_0xe48253-0x56,_0x2e1594,_0x5258b6- -_0x25ea5d._0x54dd4e);}if(this[_0x177ee4(_0x557304._0x510f09,0x42b,_0x557304._0x25d741,0x416)]['size']<=this[_0x333265(_0x557304._0x1411ce,0x7fd,0x613,_0x557304._0x438cad)])return;function _0x333265(_0x19acc8,_0x2ea37d,_0x5877b2,_0x584983){return _0x1932a3(_0x5877b2,_0x2ea37d-0x104,_0x19acc8-_0x140476._0x3b80b1,_0x584983-0x18a);}for(const [_0x331d4d,_0x372c66]of this[_0x333265(_0x557304._0x2e5052,0x5e7,_0x557304._0x510172,_0x557304._0x1a3599)]){if(_0x372c66['status']!==_0x333265(0x484,_0x557304._0x365bbc,0x5f3,0x3b3)){this[_0x333265(_0x557304._0x2086d1,0x5c2,_0x557304._0x4383e8,_0x557304._0x2ab0fa)][_0x333265(0x435,0x431,_0x557304._0x5d7d19,_0x557304._0x10a921)](_0x331d4d);return;}}}};function createBashOutputTool(_0x4aa884){const _0x25f906={_0xc953f3:0x3d4,_0x1a44c5:0x732,_0x2e7525:0x880,_0x1768cb:0x64b,_0x565bbc:0x7bf,_0x24e410:0x821},_0x5a94b7={_0x11d69f:0x8f,_0x53fa3c:0xe8,_0x3a5d25:0x273,_0x2fe112:0xce,_0x2cd1cd:0xc6,_0x474759:0xb4,_0x254871:0x150,_0x27bb93:0x280,_0x12fc68:0x77,_0x2dc7ad:0x5d,_0x2cb42e:0x17d,_0x2c9a38:0x28c,_0x2d8a4c:0x273,_0xaa01df:0x26a},_0x4b1fc2={_0x432498:0x160,_0x3c155e:0x8a},_0x2b18f1={_0x5a6046:0x1e};function _0x287669(_0x19b321,_0x5b8a83,_0x2fdda7,_0x35c300){return _0x4ab00a(_0x19b321-0xc0,_0x5b8a83-_0x2b18f1._0x5a6046,_0x5b8a83,_0x2fdda7-0x1dd);}const {registry:_0x6c6254}=_0x4aa884;function _0x5a1a7b(_0x4cf3c4,_0x587c8b,_0x5155d2,_0x4e8f8e){return _0x4ab00a(_0x4cf3c4-_0x4b1fc2._0x432498,_0x587c8b-_0x4b1fc2._0x3c155e,_0x4e8f8e,_0x4cf3c4-0x11c);}return defineTool({'name':_0x5a1a7b(0x4df,0x540,_0x25f906._0xc953f3,0x5fa),'description':_0x5a1a7b(_0x25f906._0x1a44c5,_0x25f906._0x2e7525,_0x25f906._0x1768cb,0x86b),'inputSchema':{'type':_0x287669(0x713,0x84f,_0x25f906._0x565bbc,0x8c3),'properties':{'shellId':{'type':'string'},'regex':{'type':_0x5a1a7b(0x605,0x626,0x49c,0x4a7)}},'required':[_0x5a1a7b(0x6c6,0x65f,0x61f,_0x25f906._0x24e410)]},async *'execute'(_0x4dfa5a){const _0x55eb77={_0x48b02e:0x5b5,_0xe40bf0:0x5b},_0x5e9d62={_0x4a9728:0x15e,_0xe2b99b:0x497,_0x48d0b3:0x198};function _0xa88879(_0x11c4e7,_0x2c7f9a,_0x3ddabb,_0x539dc9){return _0x287669(_0x11c4e7-_0x5e9d62._0x4a9728,_0x539dc9,_0x3ddabb- -_0x5e9d62._0xe2b99b,_0x539dc9-_0x5e9d62._0x48d0b3);}const _0x5371cc=_0x6c6254[_0x4730d0(-0x23a,-0x64,_0x5a94b7._0x11d69f,-_0x5a94b7._0x53fa3c)](_0x4dfa5a['shellId'],_0x4dfa5a['regex']?{'regex':_0x4dfa5a[_0x4730d0(0x1a1,_0x5a94b7._0x3a5d25,0x65,0x1c5)]}:void 0x0);function _0x4730d0(_0x363e3a,_0x2323ea,_0x563216,_0x105faf){return _0x5a1a7b(_0x105faf- -_0x55eb77._0x48b02e,_0x2323ea-_0x55eb77._0xe40bf0,_0x563216-0x1e9,_0x2323ea);}return createToolOutput(_0x5371cc[_0x4730d0(_0x5a94b7._0x2fe112,_0x5a94b7._0x2cd1cd,_0x5a94b7._0x474759,0xef)],{'shellId':_0x4dfa5a[_0x4730d0(_0x5a94b7._0x254871,_0x5a94b7._0x27bb93,0x20f,0x111)],'status':_0x5371cc[_0xa88879(_0x5a94b7._0x12fc68,_0x5a94b7._0x2dc7ad,0xbc,0x213)],'exitCode':_0x5371cc[_0x4730d0(-0x5e,0x1fd,_0x5a94b7._0x2cb42e,0xb2)],'signal':_0x5371cc[_0xa88879(_0x5a94b7._0x2c9a38,0xfa,_0x5a94b7._0x2d8a4c,_0x5a94b7._0xaa01df)],'truncated':_0x5371cc[_0x4730d0(0x1a0,0xc1,0x184,0x142)]});}});}import{spawn as _0x483eaf}from'child_process';import{statSync}from'fs';import*as _0x143743 from'os';import*as _0x16fedc from'path';import{StringDecoder as _0x454315}from'string_decoder';import{stat}from'fs/promises';import*as _0x45d45e from'path';function isPathInside(_0x550f12,_0x36f82e){const _0x4babda={_0x588a80:0x1e0,_0x2e2faa:0x17,_0x15a9b2:0x11a,_0x1782ce:0x1a9},_0x36a12d={_0x248c30:0x77},_0x896de4={_0x42020d:0x37},_0x574637=_0x45d45e['resolve'](_0x550f12);function _0x2bb49d(_0x260eac,_0x52fb73,_0x23ff54,_0x293228){return _0x1932a3(_0x52fb73,_0x52fb73-0x4f,_0x23ff54- -0x181,_0x293228-_0x896de4._0x42020d);}function _0x3093ef(_0x49db80,_0x208b7b,_0x3fe5ee,_0x6abf21){return _0x4ab00a(_0x49db80-0x7e,_0x208b7b-_0x36a12d._0x248c30,_0x3fe5ee,_0x6abf21- -0x280);}const _0x5a9824=_0x45d45e[_0x3093ef(0x11e,0x14c,0x26a,0x16c)](_0x574637,_0x36f82e);return _0x5a9824===''||!_0x5a9824[_0x3093ef(_0x4babda._0x588a80,0x24b,0x149,0x281)]('..')&&!_0x45d45e[_0x3093ef(_0x4babda._0x2e2faa,_0x4babda._0x15a9b2,_0x4babda._0x1782ce,0xf7)](_0x5a9824);}function resolveWorkspacePath(_0x35ec03,_0x45c57a){return resolveAllowedPath(_0x35ec03,[],_0x45c57a);}function resolveAllowedPath(_0x575115,_0x22156f,_0x4e19f4){const _0x210f84={_0x210524:0x178,_0x351cd4:0xdc,_0x156447:0x170,_0x23a151:0x2c7,_0x2b6ff6:0x9a,_0x1e2eeb:0x3e,_0x2f2fe7:0x34,_0x48e04b:0x82},_0x155c4c={_0x1801a6:0x1c2,_0x3a89ad:0x192,_0x35e89a:0x311},_0x3fa870=_0x45d45e[_0x29c4da(_0x210f84._0x210524,_0x210f84._0x351cd4,0x210,0x1e)](_0x575115),_0x240632=_0x45d45e['resolve'](_0x3fa870,_0x4e19f4),_0x366aa8=[_0x3fa870,..._0x22156f[_0x55fc04(-0x296,-0x2c8,-_0x210f84._0x156447,-_0x210f84._0x23a151)](_0x26e5d7=>_0x45d45e[_0x55fc04(-0x1c8,-0x263,-0x12d,-0x21f)](_0x26e5d7))];function _0x29c4da(_0x129a63,_0x7b2cb7,_0xb9311d,_0x2bb4c7){return _0x4ab00a(_0x129a63-_0x155c4c._0x1801a6,_0x7b2cb7-_0x155c4c._0x3a89ad,_0x2bb4c7,_0x129a63- -_0x155c4c._0x35e89a);}function _0x55fc04(_0x39cabd,_0x4ef1ba,_0x5ce45b,_0x3a2fa0){return _0x4ab00a(_0x39cabd-0x1eb,_0x4ef1ba-0xc7,_0x3a2fa0,_0x5ce45b- -0x5b6);}if(_0x366aa8[_0x29c4da(0xa1,-0x13,_0x210f84._0x2b6ff6,-_0x210f84._0x1e2eeb)](_0xec9510=>isPathInside(_0xec9510,_0x240632)))return _0x240632;throw new ToolExecutionError(_0x55fc04(0x2f,_0x210f84._0x2f2fe7,_0x210f84._0x48e04b,-0x75)+_0x4e19f4,{'path':_0x4e19f4,'rootDir':_0x3fa870,'allowedDirs':_0x366aa8});}async function assertWorkspaceFile(_0x2f12d5){const _0x4d854a=await stat(_0x2f12d5);if(!_0x4d854a['isFile']())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x2f12d5,{'path':_0x2f12d5});}function isProbablyBinary(_0x11da38){return _0x11da38['includes'](0x0);}var DEFAULT_TIMEOUT_MS=0x7530,DEFAULT_DESCRIPTION=_0x1932a3(0x609,0x3a9,0x510,0x42b)+DEFAULT_TIMEOUT_MS+'ms';function buildChildEnv(_0xb2a87e,_0x1aa89b){const _0x180b7b={_0xfb9d7:0x299,_0x5cba0f:0x289,_0x1cd332:0x15c,_0x17c6dd:0x2a6,_0x5b10bd:0x38,_0x395001:0xc8,_0x47fd66:0x68,_0x2be4a3:0xf8},_0x882c2b={_0x270887:0x60,_0x24171c:0x109};function _0x20c61e(_0x240231,_0x21079,_0x3400a0,_0x39b5d0){return _0x1932a3(_0x21079,_0x21079-0x126,_0x39b5d0- -0x21e,_0x39b5d0-0x5a);}const _0x3542fd={...process[_0x28847d(_0x180b7b._0xfb9d7,0x17b,_0x180b7b._0x5cba0f,0x139)],..._0xb2a87e??{}};if(_0x1aa89b[_0x20c61e(_0x180b7b._0x1cd332,0x339,0x386,0x223)]===0x0)return _0x3542fd;function _0x28847d(_0x5cba39,_0x141f50,_0x491f12,_0x59e8ff){return _0x4ab00a(_0x5cba39-_0x882c2b._0x270887,_0x141f50-0x47,_0x141f50,_0x491f12- -_0x882c2b._0x24171c);}if(_0x143743['platform']()==='win32'){const _0x4b9143=new Set(_0x1aa89b['map'](_0x65b8=>_0x65b8['toLowerCase']()));for(const _0x454393 of Object['keys'](_0x3542fd)){if(_0x4b9143[_0x28847d(0x3d0,_0x180b7b._0x17c6dd,0x351,0x291)](_0x454393[_0x20c61e(_0x180b7b._0x5b10bd,_0x180b7b._0x395001,-_0x180b7b._0x47fd66,_0x180b7b._0x2be4a3)]()))delete _0x3542fd[_0x454393];}}else{for(const _0x5d465a of _0x1aa89b)delete _0x3542fd[_0x5d465a];}return _0x3542fd;}function mapSpawnError(_0x3fb134,_0x5c6252){const _0x40a2db={_0x3b11b6:0x98,_0x203d4a:0xd,_0xcd015d:0x6c,_0x1ba3db:0xff,_0x7ce0ee:0x121,_0x347014:0x1fc,_0x2b951c:0x4b},_0x4e4dbd={_0x11d164:0x287,_0x5e5bbd:0x40},_0x35651a={_0x3c6bda:0x1d};if(isErrnoException(_0x3fb134)&&_0x3fb134[_0x1fd533(-0x60,-0x1ab,_0x40a2db._0x3b11b6,-0x55)]===_0x1fd533(-_0x40a2db._0x203d4a,0x13c,-_0x40a2db._0xcd015d,0x104))return new ToolExecutionError(_0x1fd533(0x19,0xbc,_0x40a2db._0x1ba3db,-0x9d)+_0x5c6252[_0x1fd533(_0x40a2db._0x7ce0ee,_0x40a2db._0x347014,_0x40a2db._0x2b951c,0x23)],_0x5c6252);function _0x1fd533(_0x1182b6,_0x92cf50,_0x52b59a,_0x4e88a7){return _0x1932a3(_0x52b59a,_0x92cf50-_0x35651a._0x3c6bda,_0x1182b6- -0x2ff,_0x4e88a7-0xce);}function _0x11304a(_0x4ed6e2,_0x89f1b4,_0xbe7a3,_0x41c068){return _0x1932a3(_0x89f1b4,_0x89f1b4-0x1e2,_0x4ed6e2-_0x4e4dbd._0x11d164,_0x41c068-_0x4e4dbd._0x5e5bbd);}return new ToolExecutionError(_0x3fb134 instanceof Error?_0x3fb134['message']:String(_0x3fb134),_0x5c6252);}function shellExists(_0x27f34f){const _0xe5a3da={_0x37640a:0x6cf},_0x1e1d34={_0x243a1e:0x300,_0x1c12cc:0x118};function _0x2339bd(_0x12b111,_0x355402,_0x2970c8,_0x482f46){return _0x1932a3(_0x12b111,_0x355402-0x192,_0x2970c8-_0x1e1d34._0x243a1e,_0x482f46-_0x1e1d34._0x1c12cc);}try{const _0x35f4f0=statSync(_0x27f34f);return _0x35f4f0[_0x2339bd(0x892,0x6ed,0x729,_0xe5a3da._0x37640a)]()&&(_0x35f4f0['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x4ec37c){const _0x448c16={_0x41ae00:0x420,_0x103354:0x3f3,_0x558778:0x3cc,_0x2b96f7:0x43e,_0x17d941:0x425,_0x48fdf9:0x3cb,_0x5b54ab:0x3fb,_0x36eb20:0x4a7,_0x436c29:0x3e8,_0x5ecf37:0x68e,_0x599dd3:0x701,_0x138aab:0x54b,_0x2c52a4:0x2d,_0x449948:0x143,_0x3e1b8c:0x104,_0x276175:0x44,_0x3c2a99:0x79,_0x20cfb5:0x7e},_0x4eafe9={_0x14f232:0x10e,_0x530c1a:0xb0};if(_0x4ec37c)return _0x4ec37c;function _0x1ad7ba(_0x3bf711,_0x200273,_0x3e4d99,_0x289624){return _0x1932a3(_0x200273,_0x200273-0x70,_0x3e4d99- -0x375,_0x289624-0x5);}if(_0x143743[_0x1a2a7c(_0x448c16._0x41ae00,0x2c4,_0x448c16._0x103354,0x4f2)]()===_0x1a2a7c(0x4db,0x486,_0x448c16._0x558778,0x34c))return process['env'][_0x1a2a7c(_0x448c16._0x2b96f7,_0x448c16._0x17d941,_0x448c16._0x48fdf9,_0x448c16._0x5b54ab)]||'cmd.exe';const _0x4934e0=[_0x1a2a7c(0x31e,_0x448c16._0x36eb20,0x3b2,_0x448c16._0x436c29),_0x1a2a7c(_0x448c16._0x5ecf37,0x676,0x61a,_0x448c16._0x599dd3),_0x1a2a7c(0x695,0x4ab,0x59b,_0x448c16._0x138aab),_0x1ad7ba(0xbf,-0xf7,_0x448c16._0x2c52a4,-_0x448c16._0x449948)];for(const _0x29ea17 of _0x4934e0){if(shellExists(_0x29ea17))return _0x29ea17;}function _0x1a2a7c(_0x5ebb32,_0x5e2f55,_0xde86fa,_0x3b93c0){return _0x1932a3(_0x5e2f55,_0x5e2f55-0x13c,_0xde86fa-_0x4eafe9._0x14f232,_0x3b93c0-_0x4eafe9._0x530c1a);}const _0x5ef66a=process['env'][_0x1ad7ba(0x46,_0x448c16._0x3e1b8c,-_0x448c16._0x276175,0x94)];if(_0x5ef66a&&shellExists(_0x5ef66a))return _0x5ef66a;return _0x1ad7ba(_0x448c16._0x3c2a99,-0x83,-0xd1,-_0x448c16._0x20cfb5);}function buildShellArgs(_0x1e6060,_0x519851){const _0x409bcd={_0x5de95e:0x46d,_0x22aa60:0x4cf,_0x2335bb:0x448,_0x4bc99e:0x3ec,_0x5e663f:0x175,_0x2cd33b:0xe9,_0x281030:0x271,_0x281449:0x40,_0x3d435c:0xc7,_0xfc202a:0xa3,_0x5d72ba:0x55a,_0x5e56f4:0xdf,_0x1231cd:0x1a},_0x4f16d7={_0x11385a:0xb0,_0x385f3a:0x136};if(_0x143743[_0x2d1aad(0x4fa,0x57c,_0x409bcd._0x5de95e,_0x409bcd._0x22aa60)]()===_0x2d1aad(_0x409bcd._0x2335bb,_0x409bcd._0x4bc99e,0x527,0x4a8)){const _0x510668=/cmd(\.exe)?$/i[_0x42fbf9(_0x409bcd._0x5e663f,0x77,_0x409bcd._0x2cd33b,_0x409bcd._0x281030)](_0x519851);return _0x510668?['/d','/s','/c',_0x1e6060]:[_0x42fbf9(_0x409bcd._0x281449,0xcc,-_0x409bcd._0x3d435c,-_0x409bcd._0xfc202a),_0x2d1aad(_0x409bcd._0x5d72ba,0x79f,0x7eb,0x6bf),_0x42fbf9(_0x409bcd._0x5e56f4,-0x62,0x1a9,_0x409bcd._0x1231cd),_0x1e6060];}function _0x2d1aad(_0x4f4a8a,_0x15be70,_0x4f2d46,_0xccb1cf){return _0x4ab00a(_0x4f4a8a-_0x4f16d7._0x11385a,_0x15be70-_0x4f16d7._0x385f3a,_0x4f4a8a,_0xccb1cf-0xf3);}function _0x42fbf9(_0x3a4354,_0x102ef2,_0x35e2d7,_0x416d8b){return _0x1932a3(_0x416d8b,_0x102ef2-0x19e,_0x3a4354- -0x2fd,_0x416d8b-0x8f);}return['-c',_0x1e6060];}function resolveWorkingDirectory(_0x19e9a2,_0x57832a,_0x27e868){const _0x4ae831={_0x58575c:0x6f7,_0x2d3db3:0x75b,_0x8a7118:0x3fa,_0x3e0d79:0x3c7},_0x8fd658={_0x74e80c:0x126},_0x583dcf={_0x9dc1fa:0x1e0};function _0x5fad22(_0x2aad4a,_0x2289dd,_0x329076,_0x49e332){return _0x4ab00a(_0x2aad4a-0x18b,_0x2289dd-0x17b,_0x2aad4a,_0x329076- -_0x583dcf._0x9dc1fa);}function _0x263f4a(_0x219d47,_0x57204b,_0x21a4e6,_0x5078d5){return _0x4ab00a(_0x219d47-0x106,_0x57204b-0xf8,_0x5078d5,_0x21a4e6-_0x8fd658._0x74e80c);}const _0x4348c2=resolveAllowedPath(_0x57832a,_0x27e868,_0x19e9a2??'.');try{const _0x14442e=statSync(_0x4348c2);if(!_0x14442e['isDirectory']())throw new ToolExecutionError(_0x263f4a(0x857,_0x4ae831._0x58575c,_0x4ae831._0x2d3db3,0x6bc)+_0x4348c2,{'cwd':_0x4348c2});return _0x4348c2;}catch(_0x231571){if(_0x231571 instanceof ToolExecutionError)throw _0x231571;throw new ToolExecutionError(_0x5fad22(0x3b3,0x48c,_0x4ae831._0x8a7118,_0x4ae831._0x3e0d79)+_0x4348c2,{'cwd':_0x4348c2});}}function appendChunk(_0x8f6724,_0x10a7fc,_0x50c886,_0x167b43,_0xa7aef1){const _0x29f9cb={_0x12a31e:0x15f,_0x3f2be5:0xbe,_0x5c0cce:0x2a5,_0x3b8ee8:0x2b1,_0x1cc3e8:0x4c6,_0x23b164:0x1b2,_0x2a1f5c:0x90,_0x11b3ed:0x2b5,_0x188dd4:0x5e},_0x4d0ab3={_0x5c255a:0x58},_0x4cfa1a={_0x5a38da:0x1af},_0x5b17f0=_0x167b43?stripAnsiAndControls(_0x50c886):_0x50c886;if(_0x5b17f0[_0x49a9d3(_0x29f9cb._0x12a31e,_0x29f9cb._0x3f2be5,_0x29f9cb._0x5c0cce,_0x29f9cb._0x3b8ee8)]===0x0)return;function _0xbfb526(_0x49f4dd,_0x5842f4,_0xf1deb0,_0x427b97){return _0x4ab00a(_0x49f4dd-_0x4cfa1a._0x5a38da,_0x5842f4-0x13c,_0x5842f4,_0xf1deb0- -0xf8);}function _0x49a9d3(_0x1ed5a9,_0x5713a3,_0x33980e,_0xa8be4f){return _0x4ab00a(_0x1ed5a9-_0x4d0ab3._0x5c255a,_0x5713a3-0x1b1,_0xa8be4f,_0x1ed5a9- -0x3d9);}_0x8f6724[_0xbfb526(0x43c,_0x29f9cb._0x1cc3e8,0x493,0x37d)](_0x5b17f0),_0x10a7fc[_0x49a9d3(_0x29f9cb._0x23b164,_0x29f9cb._0x2a1f5c,_0x29f9cb._0x11b3ed,_0x29f9cb._0x188dd4)](_0x5b17f0),_0xa7aef1();}function createBashTool(_0xbf7afa={}){const _0x5b757b={_0x2c55af:0xb5,_0x36d902:0x254,_0xadf54c:0x75b,_0x4d81fa:0x575,_0x1aca0d:0x10e,_0x265190:0x267,_0x2ff658:0x75,_0x4930b9:0x8d,_0x44d073:0x36,_0x1a91c9:0x1da,_0x1259b8:0x731,_0x390799:0x75d,_0x1732da:0x6ca,_0x149e94:0x2ee,_0x1a7930:0x2fe,_0x477c98:0x5a1,_0x311686:0x5f0,_0x5c1d1e:0x2b6,_0x4714e4:0x186,_0x558cf9:0x187,_0x50d1a0:0x326,_0x32cec6:0x2e0,_0x43efc1:0x6bc,_0x174b74:0x4ba,_0x40c392:0x697,_0x15b8dd:0x4f2,_0x358fea:0xbf,_0xbdd036:0x11,_0x41b471:0x598,_0x37d86c:0x7a9,_0xe08c8e:0x73c,_0x59528c:0x1c,_0x63ee52:0xf8,_0x59c097:0x14c},_0x2de8f1={_0x525be9:0x5be,_0x3f4541:0x4e7,_0x42856a:0x59d,_0x5d3b5c:0x4bf,_0xd61cc9:0x6de,_0x93ac4d:0x57f,_0x3c7a98:0x57c,_0x73b585:0x459,_0x209976:0x57d,_0x5973d8:0x81f,_0x3c3f67:0x729,_0x365941:0x849,_0x5c1d54:0x485,_0x3dac0a:0x569,_0xa96cd:0x6c6,_0x5182f9:0x639,_0x5e0a6b:0x608,_0x339bc5:0x4c0,_0x87c172:0x4dc,_0x163633:0x6e1,_0x550743:0x4ff,_0x4a8b10:0x53c,_0xa7f8ec:0x31a,_0x1cad60:0x572,_0x2bf25d:0x639,_0x30b7d6:0x582,_0x3dee7b:0x41b,_0x1c3a9a:0x571,_0x30711c:0x83e,_0xa289b8:0x4c5,_0x242fcd:0x405,_0x1c90ec:0x504,_0x5f515a:0x659,_0x5d90bd:0x56c,_0x54769c:0x548,_0x264c1f:0x741,_0x5d0d1b:0x5b0,_0x5cbf11:0x3db,_0x19e2b9:0x4c5,_0x2acb4e:0x528,_0x5df739:0x628,_0x214464:0x6d3,_0x4227b1:0x5ad,_0x5758a6:0x736,_0x4d8bc9:0x78c,_0x266fb7:0x64c,_0x279509:0x585,_0x130d3b:0x5d2,_0x44b3f9:0x627,_0x453d08:0x4c4,_0x5bc93d:0x546,_0x83d586:0x95b,_0xa3fa03:0x6f1,_0x3503d8:0x73f,_0x4b3fc6:0x642,_0x5b115a:0x4a0,_0x285060:0x62f,_0x296577:0x510,_0x1b12a7:0x67c,_0x2fdb51:0x5f0,_0x242ef0:0x515,_0x70e9ac:0x3c4,_0x25d152:0x495,_0x37070e:0x50d,_0x49a706:0x5ca,_0x32f40c:0x700,_0xc154e1:0x463,_0x4130fd:0x58a,_0x6c5e33:0x5f5,_0x108dab:0x792,_0x4ee5d8:0x77c,_0x3e2249:0x6ec,_0x5d6a54:0x6cf,_0xbf5fa5:0x5d5,_0x19f859:0x552,_0x304520:0x6b6,_0x340e25:0x54a,_0x432189:0x69a,_0x3ea8bd:0x701,_0x42ed9f:0x79b,_0x1bfb37:0x892,_0x13fb81:0x429,_0x46d06e:0x3e8,_0x2d1909:0x540,_0x1a56b:0x516,_0xee5f87:0x69e,_0x2c4121:0x57f,_0x7a7f87:0x3cd,_0x227c9c:0x3e8,_0x112ff0:0x683,_0x14a331:0x3d6,_0x557114:0x4f4,_0x5be860:0x4fe,_0x4c2424:0x453,_0x2c512e:0x917,_0x735c21:0x5ca,_0x2240be:0x583,_0x3df090:0x5f5,_0x7e2e2a:0x753,_0x31e3d5:0x55e,_0x564239:0x587,_0x33c7be:0x481},_0x5cd373={_0x4f63dc:0x446,_0x10227b:0x3f3},_0xc64850={_0x11a335:0x5fe,_0x40bbdd:0x515},_0xae8847={_0x546cab:0xf9,_0x4bfac5:0x1c},_0x95cf07={_0x1cec2b:0x33},_0x103243=_0x16fedc['resolve'](_0xbf7afa[_0x55a4d7(0xb7,0x80,_0x5b757b._0x2c55af,0x32)]??process[_0x55a4d7(0x1a5,_0x5b757b._0x36d902,0x116,0x14e)]()),_0x15a29a=_0xbf7afa['allowedDirs']??[];function _0x55a4d7(_0x3b382a,_0x5c1bcb,_0x4d4e68,_0x8205c){return _0x4ab00a(_0x3b382a-0x19f,_0x5c1bcb-_0x95cf07._0x1cec2b,_0x4d4e68,_0x5c1bcb- -0x32c);}const _0x10d460=_0xbf7afa[_0x39926d(_0x5b757b._0xadf54c,0x637,0x6e6,_0x5b757b._0x4d81fa)]??DEFAULT_TIMEOUT_MS,_0x3f06be=_0xbf7afa[_0x55a4d7(_0x5b757b._0x1aca0d,_0x5b757b._0x265190,0x17c,0x1a8)]??!![],_0x70b9e2=_0xbf7afa[_0x55a4d7(_0x5b757b._0x2ff658,0x12d,_0x5b757b._0x4930b9,_0x5b757b._0x44d073)]??_0x55a4d7(0x235,0x118,_0x5b757b._0x1a91c9,0x211);function _0x39926d(_0x514c74,_0x726426,_0x16708d,_0x5e2a76){return _0x4ab00a(_0x514c74-_0xae8847._0x546cab,_0x726426-_0xae8847._0x4bfac5,_0x514c74,_0x726426-0x1c2);}const _0x1f33fb=_0xbf7afa[_0x39926d(_0x5b757b._0x1259b8,_0x5b757b._0x390799,_0x5b757b._0x1732da,0x600)]??[],_0x213a89=_0xbf7afa[_0x55a4d7(0x291,_0x5b757b._0x149e94,0x28c,_0x5b757b._0x1a7930)];return defineTool({'name':_0x70b9e2,'description':_0xbf7afa[_0x39926d(_0x5b757b._0x477c98,0x572,_0x5b757b._0x311686,0x4c8)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x55a4d7(0x1cb,_0x5b757b._0x5c1d1e,_0x5b757b._0x4714e4,_0x5b757b._0x558cf9),'properties':{'command':{'type':_0x55a4d7(0x2c2,0x1bd,_0x5b757b._0x50d1a0,_0x5b757b._0x32cec6)},'description':{'type':'string','description':_0x39926d(0x733,0x60b,_0x5b757b._0x43efc1,0x54a)},'cwd':{'type':'string'},'timeoutMs':{'type':_0x39926d(_0x5b757b._0x174b74,0x5e3,_0x5b757b._0x40c392,_0x5b757b._0x15b8dd)},'ignoreOutput':{'type':_0x55a4d7(-0x61,_0x5b757b._0x358fea,0x9d,_0x5b757b._0xbdd036)},'runInBackground':{'type':_0x39926d(_0x5b757b._0x41b471,0x5ad,0x629,0x5db)}},'required':[_0x39926d(0x6dd,_0x5b757b._0x37d86c,_0x5b757b._0xe08c8e,0x63f),_0x55a4d7(-_0x5b757b._0x59528c,0x84,_0x5b757b._0x63ee52,_0x5b757b._0x59c097)]},async *'execute'(_0x4e4ccd,_0xcdeca3){const _0x3404f4={_0x46d110:0x304,_0x141479:0x18c,_0x55bbf7:0x392,_0x2f5fb2:0x304,_0x5790e6:0x447,_0x4eff84:0x1b9,_0x2b6dd3:0x31d,_0x1c111d:0x30e,_0x48a8b7:0x2a0,_0x1b0c5d:0x377,_0x2cc197:0x3a2},_0x2bb72e={_0x537ada:0x476,_0x173559:0x4a9,_0x5d11d1:0x517,_0x5b416b:0x5e9,_0x7344d0:0x4d3,_0x3d5f21:0x322,_0xf68e4f:0x3e0},_0x4e354e={_0x12bc72:0x562,_0x419006:0x6a6,_0x46a1da:0x654},_0x10cfdc={_0x778135:0x177,_0x460e4e:0x123},_0x75eeaf={_0x5048ac:0xe},_0x344b7b={_0x1ecfd7:0x1d6,_0x271ce8:0x1f8},_0x314859={_0x5e1cc4:0x74},_0x5483f2={_0xabb8ee:0x1ef},_0x467765=_0x4e4ccd[_0x5175af(_0x2de8f1._0x525be9,_0x2de8f1._0x3f4541,0x611,_0x2de8f1._0x42856a)]??_0x10d460;if(!Number[_0x4dad5a(0x8e9,0x82d,0x7fa,0x942)](_0x467765)||_0x467765<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x4e4ccd['command']});throwIfAborted(_0xcdeca3[_0x5175af(_0x2de8f1._0x5d3b5c,_0x2de8f1._0xd61cc9,_0x2de8f1._0x93ac4d,_0x2de8f1._0x3c7a98)]);const _0x5e89ce=resolveWorkingDirectory(_0x4e4ccd[_0x5175af(0x609,_0x2de8f1._0x73b585,0x5d2,_0x2de8f1._0x209976)],_0x103243,_0x15a29a),_0x228771=_0x4e4ccd[_0x4dad5a(_0x2de8f1._0x5973d8,_0x2de8f1._0x3c3f67,0x6de,_0x2de8f1._0x365941)]??![],_0x17a395=resolveDefaultShell(_0xbf7afa[_0x5175af(0x5ca,_0x2de8f1._0x5c1d54,_0x2de8f1._0x3dac0a,0x64c)]),_0x59b3ba=buildShellArgs(_0x4e4ccd[_0x5175af(_0x2de8f1._0xa96cd,0x578,_0x2de8f1._0x5182f9,_0x2de8f1._0x5e0a6b)],_0x17a395),_0x107289=_0x143743[_0x5175af(0x440,_0x2de8f1._0x339bc5,0x42e,_0x2de8f1._0x87c172)]()==='win32';if(_0x4e4ccd[_0x5175af(0x6f5,0x6b8,0x605,0x49e)]){if(!_0x213a89)throw new ToolExecutionError(_0x4dad5a(0x634,0x86e,0x758,0x78d),{'command':_0x4e4ccd[_0x5175af(0x5be,_0x2de8f1._0x163633,0x639,_0x2de8f1._0x550743)]});throwIfAborted(_0xcdeca3['signal']);let _0x177cb2;try{_0x177cb2=_0x483eaf(_0x17a395,_0x59b3ba,{'cwd':_0x5e89ce,'env':buildChildEnv(_0xbf7afa[_0x5175af(0x42d,_0x2de8f1._0x4a8b10,0x3e4,_0x2de8f1._0xa7f8ec)],_0x1f33fb),'stdio':['ignore','pipe',_0x5175af(0x64e,_0x2de8f1._0x1cad60,0x510,0x47d)],'shell':![],'windowsHide':!![],'detached':!_0x107289});}catch(_0x1e7331){throw mapSpawnError(_0x1e7331,{'command':_0x4e4ccd[_0x5175af(0x5ae,0x6e6,_0x2de8f1._0x2bf25d,0x770)],'cwd':_0x5e89ce,'shellPath':_0x17a395});}let _0x2313f7;try{_0x2313f7=_0x213a89[_0x4dad5a(0x459,0x69a,_0x2de8f1._0x30b7d6,_0x2de8f1._0x3dee7b)]({'child':_0x177cb2,'command':_0x4e4ccd[_0x5175af(0x791,_0x2de8f1._0x1c3a9a,0x639,0x4cc)],'cwd':_0x5e89ce,'stripAnsi':_0x3f06be});}catch(_0x1665cb){_0x177cb2[_0x4dad5a(0x57e,_0x2de8f1._0x30711c,0x6e4,0x644)](_0x5175af(_0x2de8f1._0xa289b8,0x691,0x59b,0x5d8),()=>{});try{killProcessGroup(_0x177cb2,_0x107289);}catch{}throw _0x1665cb;}return createToolOutput(_0x4dad5a(_0x2de8f1._0x242fcd,_0x2de8f1._0x1c90ec,0x544,_0x2de8f1._0x5f515a)+_0x2313f7[_0x5175af(_0x2de8f1._0x5d90bd,_0x2de8f1._0x54769c,0x5fc,_0x2de8f1._0x264c1f)]+'\x20(pid\x20'+(_0x2313f7[_0x5175af(_0x2de8f1._0x5d0d1b,_0x2de8f1._0x5cbf11,_0x2de8f1._0x19e2b9,_0x2de8f1._0x2acb4e)]??'?')+').\x20Use\x20BashOutput\x20to\x20read\x20its\x20output\x20and\x20KillShell\x20to\x20stop\x20it.',{'shellId':_0x2313f7[_0x5175af(_0x2de8f1._0x5df739,_0x2de8f1._0x214464,0x5fc,_0x2de8f1._0x4227b1)],'status':_0x2313f7['status'],'command':_0x2313f7[_0x4dad5a(_0x2de8f1._0x5758a6,_0x2de8f1._0x4d8bc9,0x79b,0x6c3)],'description':_0x4e4ccd['description'],'cwd':_0x2313f7[_0x5175af(_0x2de8f1._0x266fb7,_0x2de8f1._0x279509,_0x2de8f1._0x130d3b,0x64f)],'pid':_0x2313f7[_0x4dad5a(0x749,0x78d,_0x2de8f1._0x44b3f9,0x504)]??null});}let _0x3a78b6;try{_0x3a78b6=_0x483eaf(_0x17a395,_0x59b3ba,{'cwd':_0x5e89ce,'env':buildChildEnv(_0xbf7afa[_0x4dad5a(_0x2de8f1._0x453d08,0x40f,_0x2de8f1._0x5bc93d,0x5b5)],_0x1f33fb),'stdio':_0x228771?[_0x4dad5a(_0x2de8f1._0x83d586,_0x2de8f1._0xa3fa03,0x7f8,_0x2de8f1._0x3503d8),'ignore',_0x5175af(0x667,0x520,0x696,_0x2de8f1._0x4b3fc6)]:[_0x5175af(0x7d6,0x648,0x696,0x538),_0x5175af(_0x2de8f1._0x5b115a,0x4eb,0x510,0x3ac),_0x5175af(0x39a,_0x2de8f1._0x285060,_0x2de8f1._0x296577,0x4e9)],'shell':![],'windowsHide':!![],'detached':!_0x107289});}catch(_0x4c2eb8){throw mapSpawnError(_0x4c2eb8,{'command':_0x4e4ccd['command'],'cwd':_0x5e89ce,'shellPath':_0x17a395});}const _0x5495ef=[],_0x3fe14f=[];function _0x5175af(_0x50e579,_0x55a632,_0x3c3f9f,_0x5d0aee){return _0x39926d(_0x50e579,_0x3c3f9f- -0x170,_0x3c3f9f-0x1f0,_0x5d0aee-_0x5483f2._0xabb8ee);}const _0x419880=new _0x454315(_0x5175af(_0x2de8f1._0x1b12a7,_0x2de8f1._0x2fdb51,_0x2de8f1._0x242ef0,_0x2de8f1._0x70e9ac)),_0x51b764=new _0x454315(_0x5175af(0x3fe,0x525,_0x2de8f1._0x242ef0,_0x2de8f1._0x25d152));let _0xc7e687,_0x56d17b=![],_0x582024;const _0x21133c=()=>{if(!_0xc7e687)return;const _0x1a5774=_0xc7e687;_0xc7e687=void 0x0,_0x1a5774();},_0xe4bcec=async()=>{function _0x495b00(_0x2689de,_0x1d48da,_0xecf00,_0x55752f){return _0x5175af(_0xecf00,_0x1d48da-0x52,_0x2689de-_0x314859._0x5e1cc4,_0x55752f-0xaf);}if(_0x3fe14f[_0x495b00(_0xc64850._0x11a335,0x5fb,_0xc64850._0x40bbdd,0x6c1)]>0x0||_0x56d17b)return;await new Promise(_0x350bd2=>{_0xc7e687=_0x350bd2;});},_0x33bedd=_0xb45dbe=>{const _0x2930d0={_0x4793e9:0x39,_0x26dc30:0x626,_0x13a268:0x8e};function _0x4937d2(_0x55a0b1,_0x397c45,_0x4b9610,_0x58c1f4){return _0x4dad5a(_0x55a0b1-_0x2930d0._0x4793e9,_0x4b9610,_0x55a0b1- -_0x2930d0._0x26dc30,_0x58c1f4-_0x2930d0._0x13a268);}appendChunk(_0x5495ef,_0x3fe14f,_0x419880[_0x4937d2(0x17a,0x1dd,0x2a4,0x2b9)](_0xb45dbe),_0x3f06be,_0x21133c);},_0x505dfe=_0x2d3d88=>{function _0x1b27c7(_0x20e318,_0x81c60e,_0x4bd1f2,_0x17aeb2){return _0x5175af(_0x4bd1f2,_0x81c60e-_0x344b7b._0x1ecfd7,_0x20e318- -_0x344b7b._0x271ce8,_0x17aeb2-0xe3);}appendChunk(_0x5495ef,_0x3fe14f,_0x51b764[_0x1b27c7(_0x5cd373._0x4f63dc,_0x5cd373._0x10227b,0x3dc,0x58c)](_0x2d3d88),_0x3f06be,_0x21133c);};_0x3a78b6['stdout']?.['on'](_0x4dad5a(0x60b,_0x2de8f1._0x37070e,_0x2de8f1._0x49a706,_0x2de8f1._0x32f40c),_0x33bedd),_0x3a78b6['stderr']?.['on'](_0x5175af(0x50e,0x351,0x468,_0x2de8f1._0xc154e1),_0x505dfe);let _0x401808=![],_0x5cb192;function _0x4dad5a(_0x2f8537,_0x262632,_0x366c03,_0x946052){return _0x39926d(_0x262632,_0x366c03- -_0x75eeaf._0x5048ac,_0x366c03-0x126,_0x946052-0x85);}const _0x1016af=addAbortListener(_0xcdeca3[_0x4dad5a(_0x2de8f1._0x4130fd,_0x2de8f1._0x6c5e33,0x6e1,0x64a)],()=>{function _0x52f272(_0x367e4e,_0x24d6c1,_0x58af24,_0x18fa27){return _0x5175af(_0x24d6c1,_0x24d6c1-0xb4,_0x367e4e-_0x10cfdc._0x778135,_0x18fa27-_0x10cfdc._0x460e4e);}_0x582024=toAbortError(_0xcdeca3[_0x2206a0(0x657,_0x4e354e._0x12bc72,0x5f4,_0x4e354e._0x419006)][_0x52f272(0x54d,0x56e,_0x4e354e._0x46a1da,0x5cb)]),_0x56d17b=!![];function _0x2206a0(_0x3535a1,_0x2194e3,_0x1747fb,_0x247be2){return _0x5175af(_0x2194e3,_0x2194e3-0xc9,_0x1747fb-0x75,_0x247be2-0x10e);}_0x21133c();try{killProcessGroup(_0x3a78b6,_0x107289);}catch{}});try{const _0xa60e75=new Promise((_0x47e237,_0x34c072)=>{const _0x18752b={_0x5b4074:0x282,_0x21fcbf:0x96,_0x3874d4:0x333,_0x4c7803:0x210,_0x4a82f4:0x16f,_0xefae0e:0x285},_0x2cfbb6={_0x993aec:0x1b5},_0x3e056c={_0x47b8bc:0x3e2},_0x3f220c={_0x28a6d1:0x1bc},_0x59ce93={_0x255342:0xec},_0x13e836={_0x2a1196:0x2d},_0x4e7fc6=()=>{function _0x362420(_0x4360b5,_0x438964,_0x327d15,_0x120906){return _0x5a72(_0x120906-0x242,_0x327d15);}_0x5cb192&&(clearTimeout(_0x5cb192),_0x5cb192=void 0x0);_0x3a78b6['off'](_0x362420(0x484,_0x2bb72e._0x537ada,_0x2bb72e._0x173559,0x5b4),_0x58f9fd);function _0x4a3cba(_0x233e3b,_0x2a195d,_0x4b1bd1,_0x4ce638){return _0x5a72(_0x4ce638-0x7d,_0x2a195d);}_0x3a78b6[_0x4a3cba(_0x2bb72e._0x5d11d1,_0x2bb72e._0x5b416b,0x59f,_0x2bb72e._0x7344d0)](_0x4a3cba(0x483,_0x2bb72e._0x3d5f21,0x3a2,_0x2bb72e._0xf68e4f),_0x10f9d7);};function _0x5c443b(_0x168e77,_0x292c5a,_0x28f1dc,_0x4aeef8){return _0x4dad5a(_0x168e77-_0x13e836._0x2a1196,_0x28f1dc,_0x168e77- -0x3e0,_0x4aeef8-0x49);}const _0x58f9fd=_0x2a8512=>{_0x56d17b=!![],_0x21133c(),_0x4e7fc6(),_0x34c072(_0x582024??_0x2a8512);},_0x10f9d7=(_0x5453f7,_0x7df357)=>{_0x401808=!![],appendChunk(_0x5495ef,_0x3fe14f,_0x419880[_0x369a80(0x1df,0x3d5,0x3e5,0x2a1)](),_0x3f06be,_0x21133c);function _0x369a80(_0x22d9e9,_0x51203e,_0x4f0136,_0x10df26){return _0x5a72(_0x10df26-_0x59ce93._0x255342,_0x4f0136);}appendChunk(_0x5495ef,_0x3fe14f,_0x51b764['end'](),_0x3f06be,_0x21133c),_0x56d17b=!![],_0x21133c(),_0x4e7fc6();if(_0x582024){_0x34c072(_0x582024);return;}_0x47e237({'code':_0x5453f7,'signal':_0x7df357});};function _0x1ab054(_0x2024e5,_0x5ba6dd,_0x225c9c,_0x37e45a){return _0x5175af(_0x5ba6dd,_0x5ba6dd-0x1b3,_0x37e45a- -_0x3f220c._0x28a6d1,_0x37e45a-0x8b);}_0x5cb192=setTimeout(()=>{_0x56d17b=!![],_0x21133c();function _0x2753e1(_0x4855de,_0x1353f4,_0x49db64,_0x15190a){return _0x5a72(_0x49db64- -_0x3e056c._0x47b8bc,_0x15190a);}_0x4e7fc6();function _0x186d79(_0x47ad71,_0x2b8de8,_0x3b345a,_0xc3a098){return _0x5a72(_0x2b8de8- -_0x2cfbb6._0x993aec,_0xc3a098);}try{killProcessGroup(_0x3a78b6,_0x107289);}catch{}_0x34c072(new ToolExecutionError(_0x186d79(_0x18752b._0x5b4074,0x1d9,0x1d2,_0x18752b._0x21fcbf)+_0x467765+_0x2753e1(-0x11b,-_0x18752b._0x3874d4,-_0x18752b._0x4c7803,-_0x18752b._0x4a82f4),{'command':_0x4e4ccd[_0x186d79(_0x18752b._0xefae0e,0x25b,0xfd,0x3d0)],'cwd':_0x5e89ce,'shellPath':_0x17a395,'timeoutMs':_0x467765,'timedOut':!![]}));},_0x467765),_0x3a78b6[_0x5c443b(_0x3404f4._0x46d110,0x453,_0x3404f4._0x141479,0x1e7)](_0x5c443b(0x31d,0x276,0x284,_0x3404f4._0x55bbf7),_0x58f9fd),_0x3a78b6[_0x5c443b(_0x3404f4._0x2f5fb2,_0x3404f4._0x5790e6,_0x3404f4._0x4eff84,_0x3404f4._0x2b6dd3)](_0x5c443b(_0x3404f4._0x1c111d,_0x3404f4._0x48a8b7,_0x3404f4._0x1b0c5d,_0x3404f4._0x2cc197),_0x10f9d7);});while(_0x3fe14f['length']>0x0||!_0x56d17b){if(_0x3fe14f[_0x4dad5a(_0x2de8f1._0x108dab,_0x2de8f1._0x4ee5d8,_0x2de8f1._0x3e2249,0x846)]===0x0){await _0xe4bcec();continue;}const _0x5beaa7=_0x3fe14f[_0x5175af(_0x2de8f1._0x5d6a54,0x536,0x574,_0x2de8f1._0xbf5fa5)]();_0x5beaa7!==void 0x0&&(yield _0x5beaa7);}const _0x41e740=await _0xa60e75,_0x5b4f17=_0x228771?_0x5175af(0x6b1,0x6be,_0x2de8f1._0x19f859,0x5c7)+(_0x41e740[_0x4dad5a(_0x2de8f1._0x304520,0x696,_0x2de8f1._0x340e25,0x505)]??0x0):_0x5495ef['join'](''),_0xb39b5f={'command':_0x4e4ccd[_0x4dad5a(_0x2de8f1._0x432189,_0x2de8f1._0x3ea8bd,_0x2de8f1._0x42ed9f,_0x2de8f1._0x1bfb37)],'description':_0x4e4ccd[_0x4dad5a(0x663,_0x2de8f1._0x13fb81,0x564,_0x2de8f1._0x5bc93d)],'cwd':_0x5e89ce,'exitCode':_0x41e740[_0x5175af(0x4b5,0x3cf,_0x2de8f1._0x46d06e,_0x2de8f1._0x2d1909)]??0x0,'signal':_0x41e740[_0x5175af(_0x2de8f1._0x1a56b,_0x2de8f1._0xee5f87,_0x2de8f1._0x2c4121,0x43a)],'ignoreOutput':_0x228771,'shellPath':_0x17a395,'timeoutMs':_0x467765};if(_0x41e740[_0x5175af(_0x2de8f1._0x7a7f87,0x513,_0x2de8f1._0x227c9c,0x520)]!==0x0)throw new ToolExecutionError(_0x5b4f17||'Command\x20exited\x20with\x20code\x20'+(_0x41e740[_0x4dad5a(_0x2de8f1._0x112ff0,_0x2de8f1._0x14a331,0x54a,0x62a)]??0x0),_0xb39b5f);return createToolOutput(_0x5b4f17,_0xb39b5f);}catch(_0x102cd0){while(_0x3fe14f[_0x4dad5a(_0x2de8f1._0x3e2249,0x7d1,_0x2de8f1._0x3e2249,0x826)]>0x0){const _0x1f116=_0x3fe14f[_0x5175af(0x427,_0x2de8f1._0x557114,0x574,0x694)]();_0x1f116!==void 0x0&&(yield _0x1f116);}if(_0x102cd0 instanceof ToolExecutionError)throw _0x102cd0;if(_0x582024)throw _0x582024;throw mapSpawnError(_0x102cd0,{'command':_0x4e4ccd['command'],'cwd':_0x5e89ce,'shellPath':_0x17a395});}finally{_0x5cb192&&clearTimeout(_0x5cb192);_0x1016af(),_0x3a78b6[_0x4dad5a(_0x2de8f1._0x5be860,_0x2de8f1._0x4c2424,0x55c,0x51a)]?.[_0x4dad5a(0x806,0x79e,0x7e1,_0x2de8f1._0x2c512e)](_0x4dad5a(0x5fa,0x674,_0x2de8f1._0x735c21,0x647),_0x33bedd),_0x3a78b6['stderr']?.[_0x5175af(0x6a8,0x712,0x67f,_0x2de8f1._0x2240be)]('data',_0x505dfe);if(!_0x401808&&_0x3a78b6[_0x4dad5a(_0x2de8f1._0x3df090,_0x2de8f1._0x7e2e2a,0x627,0x4c1)]&&!_0x3a78b6[_0x4dad5a(_0x2de8f1._0x31e3d5,0x4d7,_0x2de8f1._0x564239,_0x2de8f1._0x33c7be)])try{killProcessGroup(_0x3a78b6,_0x107289);}catch{}}}});}function createShellExecTool(_0x5b80d4={}){return createBashTool(_0x5b80d4);}import{readdir,readFile as _0x3900dc}from'fs/promises';import{extname,join as _0x2fa182}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x4ea17c,join,relative as _0x2fa298,resolve as _0x20cdae}from'path';import{readdir as _0x364d88,readFile as _0x11ca68}from'fs/promises';import{join as _0x696bc7,relative as _0x88dd1c,sep}from'path';import{delimiter}from'path';import{mkdir as _0x139e88,rm,stat as _0x7410af,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x5c629e}from'path';import{unwatchFile,watchFile}from'fs';import{chmod,readFile as _0x3529a1,rename,rm as _0x4fcae5,stat as _0x4df480,writeFile as _0x26b49c}from'fs/promises';import{homedir as _0x2c9900}from'os';import{dirname as _0x16ae01,isAbsolute as _0x53e5ec,join as _0x4d8a8d,resolve as _0x346cd5}from'path';import{parse as _0x55bb7d,stringify as _0x491464}from'yaml';import{cp,mkdir as _0x2d8d4a,readFile as _0x2f4513,rm as _0x107e43,writeFile as _0x1043c9}from'fs/promises';import{homedir}from'os';import{join as _0x54353f}from'path';import{parse as _0x2deefe,stringify as _0x455e4e}from'yaml';import{z}from'zod';import{readdir as _0x3f7cf4,readFile as _0x321ded}from'fs/promises';import{join as _0x48985f}from'path';import{randomUUID as _0x2de0f7}from'crypto';import{mkdir as _0x2ace7c,readdir as _0x4f1ef7,readFile as _0x1c229c,rename as _0x436fc7,rm as _0x47df12,writeFile as _0x10ef6e}from'fs/promises';import{homedir as _0x53c917}from'os';import{basename,isAbsolute as _0x13c8eb,join as _0x127265,relative as _0x3dd370,resolve as _0x416521}from'path';import{parse as _0x259ac9,stringify as _0x1538c4}from'yaml';import{delimiter as _0x500ced,resolve as _0x5dd027}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x34bdbf){const _0x414d38={_0x537d97:0x6a1,_0x2a0264:0x4b9,_0x5d63ab:0x686,_0x23e8ec:0x59f,_0x2d1044:0x5b3,_0x38602c:0x61e,_0xa29998:0x43b,_0x78655a:0x775,_0x46d626:0x6db},_0x2f0eb9={_0x15bd10:0x12e,_0x585fb8:0x7b},_0x44e973={_0xd81c1f:0x4b,_0x43d773:0x1a5},_0x2c08d8=[];function _0x32b58d(_0x10c9c1,_0x2d6c9b,_0x219570,_0x13e31d){return _0x1932a3(_0x2d6c9b,_0x2d6c9b-_0x44e973._0xd81c1f,_0x10c9c1- -0xa1,_0x13e31d-_0x44e973._0x43d773);}let _0x17c5b6='';function _0x173760(_0x5e5d9e,_0x4d049e,_0x304a6d,_0x2358b2){return _0x4ab00a(_0x5e5d9e-0x1b6,_0x4d049e-_0x2f0eb9._0x15bd10,_0x5e5d9e,_0x304a6d-_0x2f0eb9._0x585fb8);}let _0x3fb4a6=0x0;while(_0x3fb4a6<_0x34bdbf[_0x173760(_0x414d38._0x537d97,_0x414d38._0x2a0264,0x5b3,_0x414d38._0x5d63ab)]){const _0x63c3a6=_0x34bdbf[_0x3fb4a6];if(_0x63c3a6==='\x5c'&&_0x3fb4a6+0x1<_0x34bdbf[_0x173760(_0x414d38._0x23e8ec,0x4da,_0x414d38._0x2d1044,_0x414d38._0x38602c)])_0x17c5b6+=_0x34bdbf[_0x3fb4a6+0x1],_0x3fb4a6+=0x2;else{if(_0x63c3a6==='\x22'||_0x63c3a6==='\x27'){const _0x4fea6b=_0x63c3a6;_0x3fb4a6++;while(_0x3fb4a6<_0x34bdbf['length']&&_0x34bdbf[_0x3fb4a6]!==_0x4fea6b){_0x34bdbf[_0x3fb4a6]==='\x5c'&&_0x3fb4a6+0x1<_0x34bdbf[_0x173760(0x50d,0x6a2,0x5b3,_0x414d38._0xa29998)]?(_0x17c5b6+=_0x34bdbf[_0x3fb4a6+0x1],_0x3fb4a6+=0x2):(_0x17c5b6+=_0x34bdbf[_0x3fb4a6],_0x3fb4a6++);}_0x3fb4a6++;}else _0x63c3a6!==void 0x0&&/\s/['test'](_0x63c3a6)?(_0x17c5b6&&(_0x2c08d8[_0x173760(0x4a6,_0x414d38._0x78655a,0x606,_0x414d38._0x46d626)](_0x17c5b6),_0x17c5b6=''),_0x3fb4a6++):(_0x17c5b6+=_0x63c3a6,_0x3fb4a6++);}}if(_0x17c5b6)_0x2c08d8['push'](_0x17c5b6);return _0x2c08d8;}function renderCommandInstructions(_0x4c204b){const _0x50a51a={_0x88919f:0x467,_0x4a4616:0x5df,_0x4c7f8e:0x6c9,_0x4431a4:0x5e9,_0x24db61:0x5de,_0x236e74:0x505,_0x4636a1:0x49a,_0x5a9bec:0x346,_0xe43520:0x400,_0x10823e:0x4e5,_0x22461b:0x4b8,_0x28ccd2:0x4ee,_0x232e4b:0x6c2,_0x4675ad:0x50f,_0x5975e6:0x4ad,_0x4d8f68:0x509,_0x5a8eac:0x596,_0x566310:0x4ff,_0x2224d6:0x3dd},_0x33f240={_0x39ea57:0x5b,_0x10e57a:0x1cb,_0x234804:0x1bd},_0x1fb10e={_0x3a9743:0x3};let _0x26e00e=_0x4c204b[_0x4d214f(0x4c0,0x36e,_0x50a51a._0x88919f,_0x50a51a._0x4a4616)];function _0x4d214f(_0x258997,_0x597afd,_0x4ff341,_0x1d39f5){return _0x1932a3(_0x597afd,_0x597afd-_0x1fb10e._0x3a9743,_0x4ff341-0x180,_0x1d39f5-0xcb);}let _0x3e794d=![];function _0x13ce61(_0x33108f,_0x45e614,_0x1fa58f,_0x334806){return _0x1932a3(_0x33108f,_0x45e614-_0x33f240._0x39ea57,_0x334806-_0x33f240._0x10e57a,_0x334806-_0x33f240._0x234804);}const _0x288d99=tokenizeCommandArguments(_0x4c204b[_0x4d214f(0x711,_0x50a51a._0x4c7f8e,_0x50a51a._0x4431a4,_0x50a51a._0x24db61)]);_0x26e00e=_0x26e00e[_0x4d214f(_0x50a51a._0x236e74,0x60c,_0x50a51a._0x4636a1,_0x50a51a._0x5a9bec)](/\$ARGUMENTS\[(\d+)\]/g,(_0x256ce2,_0x23c661)=>{return _0x3e794d=!![],_0x288d99[Number(_0x23c661)]??'';}),_0x26e00e=_0x26e00e[_0x13ce61(0x4e2,_0x50a51a._0xe43520,0x4ed,_0x50a51a._0x10823e)](/\$ARGUMENTS\b/g,()=>{return _0x3e794d=!![],_0x4c204b['argumentsText'];});if(_0x4c204b['argumentNames']&&_0x4c204b['argumentNames']['length']>0x0)for(let _0x449fdf=0x0;_0x449fdf<_0x4c204b[_0x4d214f(_0x50a51a._0x22461b,_0x50a51a._0x28ccd2,0x56a,_0x50a51a._0x232e4b)]['length'];_0x449fdf++){const _0x68e85c=_0x4c204b[_0x13ce61(0x6dd,_0x50a51a._0x4675ad,0x52e,0x5b5)][_0x449fdf];if(_0x68e85c){const _0xab55a0=new RegExp('\x5c$'+_0x68e85c+'\x5cb','g');_0x26e00e=_0x26e00e['replace'](_0xab55a0,()=>{return _0x3e794d=!![],_0x288d99[_0x449fdf]??'';});}}return _0x26e00e=_0x26e00e[_0x13ce61(_0x50a51a._0x5975e6,0x50f,0x3b3,_0x50a51a._0x10823e)](/\$(\d+)\b/g,(_0x25475c,_0x205a14)=>{return _0x3e794d=!![],_0x288d99[Number(_0x205a14)]??'';}),!_0x3e794d&&_0x4c204b[_0x13ce61(0x4bd,_0x50a51a._0x4d8f68,0x594,0x634)][_0x13ce61(0x526,0x4e2,_0x50a51a._0x5a8eac,_0x50a51a._0x566310)]()&&(_0x26e00e=_0x26e00e+_0x4d214f(0x4ce,0x3fe,0x4b2,_0x50a51a._0x2224d6)+_0x4c204b['argumentsText']),_0x26e00e;}var PROVIDER_API_KEY_ENVS=[{'env':'OPENROUTER_API_KEY','provider':_0x1932a3(0x484,0x4f9,0x4d0,0x557)},{'env':'ANTHROPIC_API_KEY','provider':_0x4ab00a(0x2fa,0x2ef,0x426,0x468)},{'env':_0x1932a3(0x4c1,0x46d,0x4c5,0x49b),'provider':_0x1932a3(0x423,0x528,0x3c6,0x35c)},{'env':_0x4ab00a(0x4fb,0x510,0x535,0x5eb),'provider':_0x4ab00a(0x5aa,0x5be,0x519,0x4bd)},{'env':_0x1932a3(0x3cd,0x206,0x36b,0x31a),'provider':_0x1932a3(0x3cc,0x39c,0x3ad,0x32b)},{'env':_0x1932a3(0x31d,0x2a8,0x40d,0x4d4),'provider':'deepinfra'},{'env':_0x4ab00a(0x2f1,0x2e3,0x542,0x407),'provider':_0x4ab00a(0x769,0x72e,0x743,0x623)},{'env':'MOONSHOT_API_KEY','provider':_0x4ab00a(0x5c3,0x4ba,0x42e,0x531)},{'env':'MINIMAX_API_KEY','provider':_0x4ab00a(0x32c,0x4b0,0x419,0x3af)},{'env':_0x4ab00a(0x3c4,0x3ee,0x340,0x422),'provider':_0x1932a3(0x330,0x2a1,0x2cd,0x3af)},{'env':_0x4ab00a(0x6d6,0x638,0x4e9,0x60f),'provider':'openai'},{'env':'DEEPSEEK_API_KEY','provider':'deepseek'}],PROVIDER_API_KEY_ENV_NAMES=PROVIDER_API_KEY_ENVS[_0x4ab00a(0x54f,0x2d1,0x487,0x446)](_0x34f1a1=>_0x34f1a1['env']),SCRUBBED_ENV_KEYS=[...PROVIDER_API_KEY_ENV_NAMES,_0x4ab00a(0x60f,0x49b,0x4e0,0x509),_0x4ab00a(0x528,0x591,0x46b,0x5dd),'GOOGLE_CSE_CX'],PROTOTYPE_SENSITIVE_NAMES=new Set([...Object[_0x4ab00a(0x4d1,0x6af,0x5e1,0x55d)](Object[_0x1932a3(0x29f,0x370,0x36a,0x26e)]),_0x1932a3(0x323,0x3a1,0x36a,0x26d)]);function prototypeSafeRecord(_0x45ea2e){const _0x579cd5={_0x39ace0:0x66a,_0x1c5e40:0x4fe,_0x43605c:0x458,_0x4a90e8:0x635,_0x44b0b6:0x4cc,_0x465121:0x4c6,_0x1f4058:0x632},_0x2c5ac5={_0x1dc000:0x60e,_0x5c5b62:0x506,_0x7c99b8:0x486,_0x21100b:0x4e0,_0x5abdc1:0x55f,_0xf51d5a:0x453,_0x555487:0x611,_0x45cc49:0x50a,_0x595aa3:0x4df,_0x4c515b:0x5e3},_0x30ae2e={_0x3fbd39:0x190,_0x56afe9:0x62},_0x5539f0={_0xc222f:0x1d},_0x83cf25={_0x40c3f1:0x197};function _0x2ba422(_0x23bcb9,_0x528bd9,_0x3e4841,_0x589bbe){return _0x4ab00a(_0x23bcb9-_0x83cf25._0x40c3f1,_0x528bd9-0x1d2,_0x23bcb9,_0x3e4841-0xca);}function _0x506ae3(_0x51ee5d,_0x2b1de3,_0x549a5c,_0x5f5abb){return _0x4ab00a(_0x51ee5d-0x1cc,_0x2b1de3-0x99,_0x549a5c,_0x2b1de3- -_0x5539f0._0xc222f);}return z[_0x2ba422(0x650,0x686,_0x579cd5._0x39ace0,0x51d)](_0x3c063a=>{const _0x297366={_0x2d516d:0xf0};if(_0x3c063a===null||typeof _0x3c063a!==_0x8c41b3(_0x2c5ac5._0x1dc000,_0x2c5ac5._0x5c5b62,0x525,0x54e)||Array[_0x43a629(0x598,_0x2c5ac5._0x7c99b8,_0x2c5ac5._0x21100b,_0x2c5ac5._0x5abdc1)](_0x3c063a))return null;const _0x1e1324=Object['getPrototypeOf'](_0x3c063a);if(_0x1e1324!==Object[_0x43a629(0x58d,0x6f4,_0x2c5ac5._0xf51d5a,_0x2c5ac5._0x555487)]&&_0x1e1324!==null)return null;function _0x43a629(_0x71d047,_0x51d705,_0x525fb6,_0x10197b){return _0x2ba422(_0x51d705,_0x51d705-_0x30ae2e._0x3fbd39,_0x71d047-_0x30ae2e._0x56afe9,_0x10197b-0xa7);}function _0x8c41b3(_0x31a8cd,_0x79adbc,_0x4bd45a,_0x553e49){return _0x2ba422(_0x31a8cd,_0x79adbc-0x175,_0x79adbc- -0x1a6,_0x553e49-_0x297366._0x2d516d);}return{'entries':Object[_0x8c41b3(_0x2c5ac5._0x45cc49,_0x2c5ac5._0x595aa3,0x529,_0x2c5ac5._0x4c515b)](_0x3c063a)};},z[_0x506ae3(0x534,0x5c5,_0x579cd5._0x1c5e40,_0x579cd5._0x43605c)]({'entries':z['array'](z['tuple']([z[_0x506ae3(_0x579cd5._0x4a90e8,_0x579cd5._0x44b0b6,_0x579cd5._0x465121,_0x579cd5._0x1f4058)](),_0x45ea2e]))}))['transform'](({entries:_0x2f8557})=>Object[_0x506ae3(0x5a7,0x56a,0x5b3,0x4ea)](_0x2f8557));}var chatModelAuthSchemeSchema=z[_0x1932a3(0x389,0x312,0x43d,0x383)]([_0x1932a3(0x330,0x4d1,0x3ef,0x54b),_0x1932a3(0x2dc,0x4b7,0x3a8,0x3cf)]),apiKeyAuthSchema=z[_0x4ab00a(0x58f,0x57b,0x716,0x5e2)]({'type':z[_0x4ab00a(0x33e,0x434,0x475,0x45e)]('apiKey'),'apiKey':z[_0x1932a3(0x492,0x335,0x3f2,0x370)](),'authScheme':chatModelAuthSchemeSchema[_0x1932a3(0x3f8,0x1df,0x2aa,0x365)]()})[_0x4ab00a(0x4a4,0x3ad,0x427,0x408)](),oauthAuthSchema=z[_0x1932a3(0x561,0x3d3,0x4eb,0x410)]({'type':z['literal']('oauth'),'access':z[_0x1932a3(0x2fe,0x50f,0x3f2,0x398)](),'refresh':z['string'](),'expires':z[_0x4ab00a(0x403,0x326,0x40a,0x421)]()[_0x4ab00a(0x277,0x4fb,0x488,0x3a1)](),'authScheme':chatModelAuthSchemeSchema[_0x1932a3(0x164,0x309,0x2aa,0x1d9)]()})[_0x1932a3(0x288,0x43a,0x311,0x296)](),authMethodSchema=z['union']([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z['string'](),'name':z['string']()[_0x1932a3(0x276,0x181,0x2aa,0x166)]()})['passthrough'](),modelConfigSchema=z[_0x1932a3(0x500,0x37d,0x404,0x540)]([z['literal'](![]),z[_0x4ab00a(0x2ff,0x4b8,0x4d8,0x45e)](!![]),z[_0x4ab00a(0x5db,0x39e,0x3cc,0x4e9)](),z[_0x4ab00a(0x62d,0x50e,0x54f,0x620)](z['string']()),z['array'](modelDefinitionSchema)]),chatModelSurfaceSchema=z['enum'](['anthropic-messages',_0x1932a3(0x2bd,0x4fd,0x38c,0x276),'openai-responses','openai-responses-ws']),providerConfigSchema=z['object']({'apiKey':z[_0x1932a3(0x31f,0x391,0x3f2,0x284)]()['optional'](),'token':z[_0x4ab00a(0x3b1,0x4c7,0x3e5,0x4e9)]()[_0x1932a3(0x2d3,0x421,0x2aa,0x161)](),'defaultModel':z[_0x1932a3(0x3c0,0x3c9,0x3f2,0x318)]()[_0x4ab00a(0x373,0x2e6,0x297,0x3a1)](),'smallModel':z[_0x4ab00a(0x37c,0x42f,0x500,0x4e9)]()[_0x4ab00a(0x36f,0x475,0x389,0x3a1)](),'currentAuth':z[_0x1932a3(0x372,0x3a8,0x3f2,0x371)]()[_0x4ab00a(0x41c,0x448,0x4c5,0x3a1)](),'auth':z[_0x4ab00a(0x6c1,0x564,0x682,0x620)](authMethodSchema)[_0x1932a3(0x175,0x24d,0x2aa,0x25b)](),'surface':chatModelSurfaceSchema[_0x4ab00a(0x4e9,0x4d5,0x40c,0x3a1)](),'baseUrl':z[_0x1932a3(0x40d,0x47b,0x3f2,0x540)]()[_0x1932a3(0x21b,0x3ef,0x2aa,0x373)](),'models':modelConfigSchema[_0x4ab00a(0x33d,0x460,0x453,0x3a1)](),'customHeaders':z[_0x4ab00a(0x422,0x40e,0x4de,0x443)](z['string'](),z[_0x1932a3(0x418,0x438,0x3f2,0x430)]())[_0x1932a3(0x2b5,0x16a,0x2aa,0x2c0)]()})[_0x4ab00a(0x37b,0x46d,0x535,0x408)](),mcpServerConfigSchema=z[_0x1932a3(0x49a,0x3e2,0x4eb,0x3ac)]({'command':z[_0x4ab00a(0x58d,0x4e4,0x3c1,0x4e9)]()[_0x4ab00a(0x3ac,0x298,0x4ce,0x3a1)](),'args':z[_0x4ab00a(0x723,0x75f,0x4de,0x620)](z[_0x4ab00a(0x641,0x46b,0x636,0x4e9)]())[_0x1932a3(0x2ca,0x313,0x2aa,0x41d)](),'env':z[_0x4ab00a(0x5b7,0x378,0x309,0x443)](z[_0x4ab00a(0x4bf,0x503,0x64c,0x4e9)](),z['string']())[_0x1932a3(0x3be,0x2b1,0x2aa,0x3a4)](),'transport':z['enum']([_0x4ab00a(0x3ca,0x533,0x64a,0x533),_0x1932a3(0x31b,0x41d,0x38a,0x4c6)])[_0x4ab00a(0x438,0x30c,0x38f,0x3a1)](),'url':z['string']()[_0x4ab00a(0x3a7,0x47a,0x4d8,0x3a1)](),'headers':z[_0x1932a3(0x327,0x46f,0x34c,0x35d)](z['string'](),z['string']())['optional'](),'prefix':z[_0x1932a3(0x4a1,0x4b6,0x3f2,0x335)]()[_0x4ab00a(0x278,0x3fe,0x2ac,0x3a1)](),'timeoutMs':z[_0x1932a3(0x432,0x371,0x32a,0x253)]()[_0x1932a3(0x358,0x225,0x2aa,0x3ce)](),'enabled':z[_0x1932a3(0x3c7,0x44d,0x2f4,0x39b)]()['optional'](),'auth':z[_0x4ab00a(0x515,0x74d,0x73d,0x5e2)]({'type':z[_0x1932a3(0x40d,0x47e,0x43d,0x50d)]([_0x4ab00a(0x548,0x38c,0x56e,0x4de),'bearer',_0x4ab00a(0x6d2,0x569,0x59b,0x5a3)]),'token':z[_0x1932a3(0x531,0x394,0x3f2,0x3b5)]()[_0x1932a3(0x1ed,0x3da,0x2aa,0x2b2)](),'oauth':z[_0x4ab00a(0x631,0x646,0x741,0x5e2)]({'clientId':z[_0x1932a3(0x565,0x480,0x3f2,0x4c0)]()['optional'](),'clientMetadataUrl':z[_0x4ab00a(0x5d6,0x5dd,0x5c9,0x4e9)]()[_0x4ab00a(0x41d,0x357,0x494,0x3a1)](),'authorizationServer':z[_0x1932a3(0x3b9,0x4ad,0x3f2,0x2a3)]()[_0x4ab00a(0x29f,0x287,0x2be,0x3a1)](),'scopes':z[_0x1932a3(0x42e,0x3ca,0x529,0x572)](z[_0x4ab00a(0x5fd,0x449,0x653,0x4e9)]())[_0x4ab00a(0x27a,0x375,0x36f,0x3a1)](),'tokenStorageKey':z[_0x1932a3(0x534,0x339,0x3f2,0x4e0)]()[_0x4ab00a(0x30c,0x318,0x424,0x3a1)]()})[_0x1932a3(0x333,0x1f3,0x311,0x3a9)]()['optional']()})['passthrough']()[_0x1932a3(0x3c6,0x304,0x2aa,0x25f)]()})[_0x1932a3(0x27c,0x2f6,0x311,0x1ba)](),mcpSettingsSchema=z[_0x1932a3(0x449,0x4e8,0x4eb,0x5d6)]({'servers':prototypeSafeRecord(mcpServerConfigSchema)['optional'](),'allowedTools':prototypeSafeRecord(prototypeSafeRecord(z[_0x4ab00a(0x436,0x356,0x4a2,0x3eb)]()))[_0x1932a3(0x373,0x147,0x2aa,0x3ee)](),'defaultTimeoutMs':z[_0x1932a3(0x475,0x444,0x32a,0x281)]()[_0x1932a3(0x1c7,0x171,0x2aa,0x2cf)]()})['passthrough'](),skillsSettingsSchema=z[_0x1932a3(0x64b,0x5e4,0x4eb,0x5fe)]({'enabled':z[_0x1932a3(0x31a,0x2fc,0x2f4,0x1c3)]()[_0x1932a3(0x290,0x23b,0x2aa,0x319)](),'includeDefaults':z[_0x4ab00a(0x476,0x302,0x325,0x3eb)]()['optional'](),'directories':z[_0x1932a3(0x450,0x55e,0x529,0x463)](z[_0x4ab00a(0x632,0x383,0x4f8,0x4e9)]())[_0x4ab00a(0x321,0x253,0x4d7,0x3a1)](),'exclude':z['array'](z[_0x1932a3(0x49e,0x34c,0x3f2,0x39b)]())[_0x4ab00a(0x404,0x4a3,0x29b,0x3a1)]()})['passthrough'](),commandsSettingsSchema=z[_0x4ab00a(0x6fb,0x62c,0x4af,0x5e2)]({'enabled':z[_0x1932a3(0x317,0x224,0x2f4,0x38d)]()[_0x4ab00a(0x42c,0x4ac,0x2ee,0x3a1)](),'directories':z['array'](z['string']())[_0x4ab00a(0x3b9,0x491,0x30e,0x3a1)]()})['passthrough'](),agentsSettingsSchema=z[_0x4ab00a(0x624,0x6a8,0x4c6,0x5e2)]({'enabled':z[_0x4ab00a(0x310,0x38e,0x3df,0x3eb)]()[_0x1932a3(0x227,0x331,0x2aa,0x286)](),'includeDefaults':z['boolean']()['optional'](),'directories':z[_0x1932a3(0x4c2,0x5f6,0x529,0x5ab)](z[_0x4ab00a(0x5ee,0x47f,0x640,0x4e9)]())[_0x4ab00a(0x341,0x2c7,0x341,0x3a1)]()})['passthrough'](),uiThemeSettingsSchema=z[_0x1932a3(0x58c,0x440,0x4eb,0x58f)]({'mode':z[_0x4ab00a(0x3df,0x592,0x4f9,0x534)]([_0x4ab00a(0x6e5,0x72d,0x6de,0x5d2),_0x1932a3(0x359,0x3ae,0x3f0,0x427),'light'])[_0x4ab00a(0x308,0x50b,0x4db,0x3a1)](),'colorLevel':z['enum']([_0x4ab00a(0x5c7,0x73a,0x6e5,0x5d2),'none',_0x1932a3(0x2c8,0x3da,0x418,0x553),_0x4ab00a(0x72f,0x5bf,0x6de,0x5d9),_0x1932a3(0x670,0x5c2,0x517,0x555)])[_0x4ab00a(0x2da,0x2b1,0x38c,0x3a1)](),'backgrounds':z[_0x4ab00a(0x670,0x467,0x46a,0x534)](['auto','on',_0x4ab00a(0x73d,0x684,0x6f4,0x62d)])[_0x4ab00a(0x2d3,0x22e,0x3d7,0x3a1)](),'messageStyle':z[_0x4ab00a(0x5d7,0x435,0x5b6,0x534)]([_0x1932a3(0x397,0x284,0x2a7,0x25f),_0x4ab00a(0x6a5,0x780,0x4b2,0x609)])[_0x4ab00a(0x348,0x267,0x26a,0x3a1)]()})['passthrough'](),statuslineSegmentSchema=z['enum']([_0x1932a3(0x54a,0x39c,0x4f9,0x418),_0x4ab00a(0x5fd,0x672,0x5d2,0x601),_0x4ab00a(0x3b2,0x586,0x30e,0x47e),'sudo',_0x1932a3(0x44f,0x287,0x3ac,0x248),_0x1932a3(0x53a,0x5ab,0x522,0x652),_0x4ab00a(0x47d,0x410,0x333,0x42a),_0x1932a3(0x628,0x4ea,0x4d6,0x437),'tools',_0x4ab00a(0x58b,0x573,0x624,0x54c),_0x1932a3(0x61c,0x4c3,0x4cc,0x4d9),_0x4ab00a(0x4f0,0x5ab,0x449,0x558),'keybindings',_0x4ab00a(0x4c4,0x391,0x450,0x40e),_0x1932a3(0x4d8,0x4aa,0x4a5,0x439)]),statuslineItemSchema=z[_0x4ab00a(0x5f7,0x4c7,0x429,0x4fb)]([statuslineSegmentSchema,z[_0x4ab00a(0x541,0x5c1,0x3b1,0x45e)]('|')]),statuslineRowSchema=z[_0x1932a3(0x631,0x418,0x529,0x51b)](statuslineItemSchema),statuslineConfigSchema=z[_0x4ab00a(0x6be,0x6de,0x660,0x5e2)]({'rows':z['tuple']([statuslineRowSchema,statuslineRowSchema])[_0x4ab00a(0x329,0x24f,0x3b2,0x3a1)]()})[_0x4ab00a(0x46c,0x2d9,0x370,0x408)](),memorySettingsSchema=z['object']({'version':z[_0x1932a3(0x45b,0x2df,0x367,0x43f)](0x2)[_0x4ab00a(0x42c,0x4ae,0x35c,0x3a1)](),'retrieval':z['object']({'engine':z[_0x1932a3(0x327,0x3bd,0x367,0x246)](_0x4ab00a(0x51d,0x39b,0x602,0x490))[_0x4ab00a(0x2d0,0x4e4,0x2b4,0x3a1)](),'candidateLimit':z[_0x1932a3(0x2c6,0x2a7,0x32a,0x3b4)]()['optional'](),'activeCandidateLimit':z[_0x4ab00a(0x408,0x499,0x51a,0x421)]()[_0x4ab00a(0x2b8,0x432,0x33c,0x3a1)](),'activeEnabled':z[_0x1932a3(0x17c,0x345,0x2f4,0x3d8)]()[_0x4ab00a(0x392,0x426,0x382,0x3a1)](),'maxQueriesPerTurn':z[_0x4ab00a(0x2c2,0x475,0x3ed,0x421)]()[_0x1932a3(0x2de,0x30b,0x2aa,0x399)](),'coreInjectTokenBudget':z[_0x4ab00a(0x30b,0x557,0x3cd,0x421)]()[_0x1932a3(0x24a,0x1af,0x2aa,0x39f)](),'injectTokenBudget':z[_0x1932a3(0x42c,0x2d9,0x32a,0x236)]()[_0x4ab00a(0x28f,0x357,0x278,0x3a1)](),'minScore':z[_0x4ab00a(0x3b1,0x2d4,0x39b,0x421)]()[_0x1932a3(0x401,0x21c,0x2aa,0x192)](),'freshnessHalfLifeDays':z[_0x1932a3(0x252,0x2b6,0x32a,0x1bc)]()[_0x4ab00a(0x3e3,0x365,0x2a0,0x3a1)]()})[_0x1932a3(0x33f,0x458,0x311,0x331)]()['optional'](),'extraction':z[_0x1932a3(0x46b,0x5e7,0x4eb,0x56d)]({'enabled':z[_0x1932a3(0x303,0x26a,0x2f4,0x3e5)]()[_0x1932a3(0x279,0x195,0x2aa,0x26a)](),'provider':z[_0x4ab00a(0x4ff,0x435,0x637,0x4e9)]()['optional'](),'model':z[_0x1932a3(0x4f8,0x2a9,0x3f2,0x492)]()['optional'](),'sensitiveFilter':z[_0x4ab00a(0x331,0x543,0x497,0x3eb)]()[_0x4ab00a(0x493,0x3aa,0x24a,0x3a1)]()})[_0x1932a3(0x415,0x275,0x311,0x3b5)]()['optional'](),'index':z['object']({'persisted':z[_0x4ab00a(0x3c3,0x2b3,0x517,0x3eb)]()['optional'](),'flushIntervalMs':z[_0x4ab00a(0x2e5,0x472,0x4e4,0x421)]()[_0x4ab00a(0x3ac,0x423,0x252,0x3a1)]()})[_0x4ab00a(0x40c,0x524,0x40e,0x408)]()[_0x4ab00a(0x44a,0x25e,0x4c3,0x3a1)](),'enabled':z['boolean']()[_0x1932a3(0x3f7,0x170,0x2aa,0x387)](),'saveTool':z[_0x4ab00a(0x37d,0x426,0x340,0x3eb)]()[_0x1932a3(0x2d5,0x399,0x2aa,0x35e)](),'model':z['string']()['optional'](),'provider':z[_0x4ab00a(0x3ef,0x3ef,0x406,0x4e9)]()[_0x1932a3(0x1b6,0x21b,0x2aa,0x2a4)](),'maxInjectionTokens':z[_0x4ab00a(0x42a,0x556,0x38b,0x421)]()['optional'](),'backgroundExtraction':z[_0x4ab00a(0x3e5,0x460,0x458,0x3eb)]()[_0x1932a3(0x1e1,0x3cb,0x2aa,0x23b)]()})[_0x1932a3(0x447,0x1de,0x311,0x380)](),recentModelSchema=z[_0x4ab00a(0x48c,0x584,0x661,0x5e2)]({'provider':z[_0x1932a3(0x46a,0x494,0x3f2,0x42b)](),'model':z[_0x1932a3(0x3ef,0x3a8,0x3f2,0x351)](),'usedAt':z[_0x1932a3(0x2d3,0x345,0x32a,0x2fe)]()})[_0x4ab00a(0x531,0x4ac,0x2f9,0x408)](),lspServerEntrySchema=z[_0x4ab00a(0x6f0,0x5ba,0x683,0x5e2)]({'disabled':z[_0x4ab00a(0x428,0x395,0x2d6,0x3eb)]()[_0x4ab00a(0x290,0x32f,0x39a,0x3a1)](),'command':z[_0x4ab00a(0x45e,0x506,0x42f,0x4e9)]()['optional'](),'args':z[_0x1932a3(0x4d3,0x444,0x529,0x5f1)](z['string']())[_0x4ab00a(0x4a1,0x26f,0x3a8,0x3a1)](),'rootMarkers':z[_0x1932a3(0x4bc,0x44d,0x529,0x485)](z[_0x1932a3(0x39a,0x289,0x3f2,0x450)]())[_0x1932a3(0x164,0x34c,0x2aa,0x329)]()})['passthrough'](),lspConfigSchema=z['object']({'enabled':z[_0x4ab00a(0x527,0x4fb,0x4ab,0x3eb)]()[_0x1932a3(0x212,0x3fc,0x2aa,0x220)](),'servers':z[_0x1932a3(0x285,0x1ee,0x34c,0x2ed)](z[_0x4ab00a(0x44d,0x614,0x5fc,0x4e9)](),lspServerEntrySchema)[_0x4ab00a(0x487,0x45a,0x3ae,0x3a1)]()})[_0x1932a3(0x372,0x45c,0x311,0x201)](),serverEndpointSchema=z[_0x1932a3(0x659,0x4cd,0x4eb,0x550)]({'url':z[_0x1932a3(0x425,0x3f0,0x3f2,0x4ee)](),'token':z['string']()[_0x4ab00a(0x424,0x425,0x317,0x3a1)]()})[_0x1932a3(0x1a7,0x303,0x311,0x28a)](),commandHookConfigSchema=z[_0x1932a3(0x4f4,0x4f5,0x4eb,0x3f6)]({'type':z[_0x4ab00a(0x435,0x42d,0x57b,0x45e)](_0x4ab00a(0x515,0x733,0x58e,0x5e7)),'command':z[_0x4ab00a(0x525,0x585,0x51a,0x4e9)](),'timeout':z[_0x4ab00a(0x3be,0x34b,0x462,0x421)]()[_0x4ab00a(0x289,0x2a2,0x2ff,0x3a1)]()}),hookMatcherGroupSchema=z[_0x1932a3(0x51c,0x610,0x4eb,0x4ca)]({'matcher':z['string']()[_0x4ab00a(0x242,0x48f,0x516,0x3a1)](),'hooks':z['array'](commandHookConfigSchema)});function _0x1932a3(_0x32debc,_0x368038,_0x2d2417,_0x4a0388){const _0x17287d={_0x1fb67e:0xe0};return _0x5a72(_0x2d2417-_0x17287d._0x1fb67e,_0x32debc);}var hooksConfigSchema=z[_0x4ab00a(0x526,0x575,0x72f,0x5e2)]({'PreToolUse':z[_0x4ab00a(0x4fa,0x60f,0x6ee,0x620)](hookMatcherGroupSchema)[_0x4ab00a(0x4c8,0x418,0x2c7,0x3a1)](),'PostToolUse':z[_0x1932a3(0x4ee,0x42e,0x529,0x4af)](hookMatcherGroupSchema)[_0x1932a3(0x1cb,0x2bb,0x2aa,0x395)](),'UserPromptSubmit':z[_0x1932a3(0x611,0x4bc,0x529,0x583)](hookMatcherGroupSchema)['optional'](),'Stop':z['array'](hookMatcherGroupSchema)['optional'](),'Notification':z[_0x4ab00a(0x691,0x5e2,0x514,0x620)](hookMatcherGroupSchema)[_0x4ab00a(0x3ae,0x40e,0x303,0x3a1)](),'ToolApprovalRequest':z[_0x4ab00a(0x4c4,0x62a,0x4db,0x620)](hookMatcherGroupSchema)[_0x1932a3(0x37a,0x193,0x2aa,0x2fb)](),'SessionStart':z['array'](hookMatcherGroupSchema)['optional'](),'SessionEnd':z[_0x4ab00a(0x753,0x570,0x4df,0x620)](hookMatcherGroupSchema)[_0x4ab00a(0x2b3,0x3f1,0x335,0x3a1)]()}),cliConfigSchema=z[_0x1932a3(0x453,0x63c,0x4eb,0x5d1)]({'activeProvider':z[_0x1932a3(0x53c,0x35b,0x3f2,0x388)]()[_0x1932a3(0x217,0x33a,0x2aa,0x3ea)](),'activeModel':z[_0x4ab00a(0x4cf,0x39f,0x458,0x4e9)]()[_0x4ab00a(0x34c,0x239,0x36c,0x3a1)](),'apiKey':z[_0x4ab00a(0x543,0x4b7,0x37f,0x4e9)]()[_0x1932a3(0x2d6,0x28d,0x2aa,0x26a)](),'providers':z['record'](z['string'](),providerConfigSchema)[_0x4ab00a(0x2b1,0x4d4,0x4c3,0x3a1)](),'mcp':mcpSettingsSchema[_0x1932a3(0x244,0x256,0x2aa,0x3e8)](),'skills':skillsSettingsSchema['optional'](),'agents':agentsSettingsSchema[_0x4ab00a(0x510,0x247,0x387,0x3a1)](),'commands':commandsSettingsSchema[_0x1932a3(0x3cc,0x23c,0x2aa,0x1d0)](),'skillsEnabled':z[_0x1932a3(0x44b,0x421,0x34c,0x3a8)](z[_0x4ab00a(0x592,0x5f3,0x498,0x4e9)](),z[_0x1932a3(0x3ca,0x335,0x2f4,0x429)]())['optional'](),'allowedDirs':z['array'](z[_0x1932a3(0x2b1,0x3e3,0x3f2,0x3f2)]())[_0x4ab00a(0x4db,0x294,0x489,0x3a1)](),'mcpEnabled':prototypeSafeRecord(z[_0x1932a3(0x42c,0x411,0x2f4,0x40e)]())[_0x4ab00a(0x278,0x4f0,0x4d1,0x3a1)](),'commandsEnabled':z[_0x4ab00a(0x37d,0x2d3,0x331,0x443)](z[_0x4ab00a(0x533,0x4c4,0x613,0x4e9)](),z[_0x4ab00a(0x3dd,0x48f,0x4e5,0x3eb)]())['optional'](),'memory':memorySettingsSchema[_0x4ab00a(0x2cc,0x3c3,0x390,0x3a1)](),'session':z[_0x4ab00a(0x482,0x46a,0x679,0x5e2)]({'memPersist':z['boolean']()[_0x1932a3(0x1b6,0x30f,0x2aa,0x26a)](),'persistEventLog':z['boolean']()[_0x4ab00a(0x507,0x450,0x4e2,0x3a1)](),'persistHttpLog':z[_0x4ab00a(0x3b7,0x4a5,0x30a,0x3eb)]()[_0x4ab00a(0x515,0x26c,0x2b5,0x3a1)]()})['passthrough']()[_0x1932a3(0x2af,0x1d0,0x2aa,0x1cb)](),'requireToolApproval':z['boolean']()[_0x1932a3(0x347,0x239,0x2aa,0x148)](),'thinking':z['enum']([_0x1932a3(0x301,0x29b,0x323,0x48c),_0x4ab00a(0x59d,0x53b,0x4c9,0x516),'MEDIUM',_0x4ab00a(0x380,0x24f,0x4af,0x3b9)])[_0x4ab00a(0x235,0x379,0x42d,0x3a1)](),'streamingChunks':z[_0x4ab00a(0x3c6,0x4e3,0x55a,0x3eb)]()['optional'](),'agentsEnabled':z[_0x4ab00a(0x4f7,0x3c5,0x371,0x443)](z[_0x4ab00a(0x50a,0x61f,0x51a,0x4e9)](),z['boolean']())[_0x1932a3(0x333,0x278,0x2aa,0x2de)](),'recentModels':z[_0x1932a3(0x459,0x537,0x529,0x498)](recentModelSchema)[_0x4ab00a(0x26e,0x34f,0x3a1,0x3a1)](),'lsp':lspConfigSchema[_0x4ab00a(0x22c,0x354,0x2b7,0x3a1)](),'servers':z['record'](z[_0x4ab00a(0x53b,0x4f0,0x5be,0x4e9)](),serverEndpointSchema)[_0x4ab00a(0x252,0x460,0x3c2,0x3a1)](),'ui':z[_0x4ab00a(0x4c3,0x53a,0x64a,0x5e2)]({'theme':uiThemeSettingsSchema[_0x4ab00a(0x4cd,0x4a0,0x50d,0x3a1)](),'statusline':statuslineConfigSchema[_0x1932a3(0x333,0x34a,0x2aa,0x274)]()})[_0x1932a3(0x24c,0x239,0x311,0x38b)]()[_0x4ab00a(0x368,0x416,0x4eb,0x3a1)](),'tools':z[_0x4ab00a(0x433,0x58c,0x3f2,0x443)](z[_0x4ab00a(0x3b8,0x58e,0x652,0x4e9)](),z['unknown']())['optional'](),'hooks':hooksConfigSchema[_0x4ab00a(0x3dc,0x388,0x3ae,0x3a1)]()})[_0x4ab00a(0x560,0x38a,0x534,0x408)](),workspaceOverlaySchema=z[_0x1932a3(0x617,0x46b,0x4eb,0x52c)]({'root':z['string']()['optional'](),'allowedDirs':z[_0x4ab00a(0x586,0x631,0x6de,0x620)](z['string']())['optional'](),'activeProvider':z[_0x1932a3(0x362,0x377,0x3f2,0x3b1)]()[_0x1932a3(0x15e,0x2fb,0x2aa,0x179)](),'activeModel':z[_0x4ab00a(0x550,0x4a8,0x651,0x4e9)]()[_0x1932a3(0x184,0x3c9,0x2aa,0x14c)](),'mcp':mcpSettingsSchema[_0x1932a3(0x31f,0x249,0x2aa,0x161)](),'skills':skillsSettingsSchema['optional'](),'agents':agentsSettingsSchema['optional'](),'commands':commandsSettingsSchema[_0x4ab00a(0x292,0x3d0,0x4f7,0x3a1)](),'hooks':hooksConfigSchema['optional'](),'memory':memorySettingsSchema['optional'](),'mcpEnabled':prototypeSafeRecord(z['boolean']())['optional'](),'skillsEnabled':z['record'](z['string'](),z['boolean']())[_0x4ab00a(0x37d,0x4d1,0x377,0x3a1)](),'agentsEnabled':z[_0x4ab00a(0x312,0x331,0x323,0x443)](z[_0x1932a3(0x394,0x337,0x3f2,0x4f6)](),z['boolean']())[_0x4ab00a(0x28d,0x43e,0x399,0x3a1)](),'commandsEnabled':z['record'](z['string'](),z[_0x1932a3(0x2fc,0x361,0x2f4,0x423)]())[_0x1932a3(0x1f7,0x259,0x2aa,0x26c)]()})['passthrough'](),PROTOTYPE_SENSITIVE_NAMES2=new Set([...Object[_0x1932a3(0x5c4,0x5ce,0x466,0x520)](Object['prototype']),_0x1932a3(0x340,0x37b,0x36a,0x233)]);function buildDescription(_0x5e9fb8){const _0x34ef21={_0x1cc0e9:0x15f,_0x790445:0x19e,_0x43b68e:0x1d2,_0x9debcd:0x2ca,_0x429610:0x180,_0x3273d7:0x1aa,_0xc7a286:0x241,_0x38175d:0x252,_0x4eb63b:0x2d8,_0x4ec78f:0x2bd,_0x17b686:0x2bc,_0x2aa0e7:0xca,_0x205d1f:0xff,_0x3b6731:0x107,_0x11a600:0xf7},_0x279146={_0x1a7b04:0x1db},_0x1b81b1={_0x5b9ae0:0x248};if(_0x5e9fb8['length']===0x0)return[_0x7a8b1f(_0x34ef21._0x1cc0e9,0x278,0x2fe,_0x34ef21._0x790445),_0x7a8b1f(0x232,_0x34ef21._0x43b68e,_0x34ef21._0x9debcd,_0x34ef21._0x429610),_0x7a8b1f(0x35a,0x23e,_0x34ef21._0x3273d7,0x12c)][_0x57e5bc(0x23f,0x16a,_0x34ef21._0xc7a286,0x367)]('\x0a');function _0x7a8b1f(_0x2c93eb,_0x5a20a1,_0x363fc9,_0x3e75d9){return _0x1932a3(_0x2c93eb,_0x5a20a1-0x1ca,_0x5a20a1- -_0x1b81b1._0x5b9ae0,_0x3e75d9-0x4b);}const _0x3a8959=[_0x57e5bc(0x205,_0x34ef21._0x38175d,0x254,0x20b),_0x7a8b1f(0x17b,0x1d2,_0x34ef21._0x4eb63b,_0x34ef21._0x4ec78f),_0x7a8b1f(_0x34ef21._0x17b686,0x1dc,_0x34ef21._0x2aa0e7,0x325),..._0x5e9fb8[_0x7a8b1f(_0x34ef21._0x205d1f,_0x34ef21._0x3b6731,0x160,_0x34ef21._0x11a600)](_0x267124=>_0x267124[_0x7a8b1f(0x361,0x238,0x14c,0x177)]?'-\x20'+_0x267124[_0x7a8b1f(0x293,0x11a,0x235,0x27a)]+'\x20'+_0x267124[_0x57e5bc(0x1c5,0x82,0x1ba,0x320)]+':\x20'+_0x267124['description']:'-\x20'+_0x267124['name']+':\x20'+_0x267124['description'])];function _0x57e5bc(_0x5d1183,_0x58c893,_0x3c351d,_0x5d3dcb){return _0x1932a3(_0x58c893,_0x58c893-_0x279146._0x1a7b04,_0x5d1183- -0x2bb,_0x5d3dcb-0x53);}return _0x3a8959['join']('\x0a');}function createInvokeCommandTool(_0x3039e0){const _0x8ee933={_0x3efcbf:0x27b,_0x563b8d:0x251,_0x131d56:0x180,_0x3dd191:0x144,_0x32cc9f:0x388,_0x2221c8:0x252,_0x4ee89a:0x42b,_0x62f904:0x302,_0x5dd9c1:0x3eb,_0x28426f:0x6d5,_0x153a9c:0x7c4,_0x28faaa:0x611,_0x4df687:0x756,_0x464898:0x645},_0x2f1b6c={_0x43a7cf:0x3c8,_0x69bb5f:0x4ff,_0x4eb514:0x51c,_0x1dd17d:0x236,_0x29bc00:0x153,_0xe0aacc:0x381,_0x28e2d1:0x20b,_0x22c4ed:0x42d,_0x3d443c:0x219,_0x5a6140:0x2e1,_0x4b450d:0x1fe,_0x48273d:0x2be,_0x39b0ac:0x1d9,_0x335a75:0x12a,_0x1b4ebe:0x153,_0x203775:0x438,_0x5cfcf1:0x2a5,_0x4b395f:0x299,_0xd9eb53:0x3a,_0x2c24f1:0x1c4,_0x16d736:0x2a9,_0x48528f:0x307},_0x22abe1={_0x31dc14:0xc0},_0x59435d={_0x2d796d:0xee},_0x3c0375=new Map(_0x3039e0[_0x4bb9c0(_0x8ee933._0x3efcbf,0x36d,_0x8ee933._0x563b8d,_0x8ee933._0x131d56)][_0x4bb9c0(0x261,_0x8ee933._0x3dd191,_0x8ee933._0x32cc9f,0x256)](_0x23c05b=>[_0x23c05b['id'],_0x23c05b])),_0x382257=buildDescription(_0x3039e0[_0x4bb9c0(_0x8ee933._0x3efcbf,0x28b,_0x8ee933._0x2221c8,0x203)]);function _0x4bb9c0(_0x53d840,_0xdacc3e,_0x662531,_0x3708e7){return _0x1932a3(_0x662531,_0xdacc3e-0xa,_0x53d840- -_0x59435d._0x2d796d,_0x3708e7-0xc0);}function _0x146f4b(_0x3f5bcc,_0x5133ae,_0x21b601,_0x540c6f){return _0x1932a3(_0x540c6f,_0x5133ae-_0x22abe1._0x31dc14,_0x21b601-0x2e3,_0x540c6f-0x108);}return defineTool({'name':_0x4bb9c0(_0x8ee933._0x4ee89a,_0x8ee933._0x62f904,0x4a1,_0x8ee933._0x5dd9c1),'description':_0x382257,'inputSchema':{'type':_0x146f4b(0x768,0x8e8,0x7ce,0x8a9),'properties':{'name':{'type':_0x146f4b(0x69f,0x81e,_0x8ee933._0x28426f,0x7c6)},'args':{'type':_0x146f4b(_0x8ee933._0x153a9c,0x606,_0x8ee933._0x28426f,_0x8ee933._0x28faaa)}},'required':[_0x146f4b(0x63b,_0x8ee933._0x4df687,_0x8ee933._0x464898,0x768)]},async *'execute'(_0x52e4cf){const _0x5a4a4c={_0x392eac:0x53},_0x6af43={_0x5ea19c:0x4f2},_0x40c29b=_0x3c0375[_0x4d63cb(_0x2f1b6c._0x43a7cf,0x3d4,_0x2f1b6c._0x69bb5f,_0x2f1b6c._0x4eb514)](_0x52e4cf[_0x238afa(0xb7,0x6e,_0x2f1b6c._0x1dd17d,_0x2f1b6c._0x29bc00)]);if(!_0x40c29b){const _0xb5b9cf=Array['from'](_0x3c0375[_0x4d63cb(_0x2f1b6c._0xe0aacc,_0x2f1b6c._0x28e2d1,_0x2f1b6c._0x22c4ed,_0x2f1b6c._0x3d443c)]())['join'](',\x20');throw new ToolExecutionError(_0x238afa(_0x2f1b6c._0x5a6140,0x170,_0x2f1b6c._0x4b450d,_0x2f1b6c._0x48273d)+_0x52e4cf['name']+'\x27\x20not\x20found.\x20Available\x20commands:\x20'+_0xb5b9cf,{'name':_0x52e4cf[_0x238afa(_0x2f1b6c._0x39b0ac,_0x2f1b6c._0x335a75,0x88,_0x2f1b6c._0x1b4ebe)]});}const _0x3d1299=await _0x3039e0['loadCommand'](_0x40c29b),_0x556865=_0x52e4cf[_0x4d63cb(0x352,_0x2f1b6c._0x203775,0x32b,_0x2f1b6c._0x5cfcf1)]??'';function _0x238afa(_0x1d41e7,_0x416cb7,_0xcb68d5,_0x1724a8){return _0x146f4b(_0x1d41e7-0x52,_0x416cb7-0x183,_0x1724a8- -_0x6af43._0x5ea19c,_0x416cb7);}function _0x4d63cb(_0x2bd233,_0x2e96cf,_0x281a27,_0x192c6d){return _0x4bb9c0(_0x2bd233- -_0x5a4a4c._0x392eac,_0x2e96cf-0xed,_0x2e96cf,_0x192c6d-0x5f);}const _0x455f9a=renderCommandInstructions({'instructions':_0x3d1299['instructions'],'argumentsText':_0x556865,'argumentNames':_0x3d1299[_0x238afa(0x278,_0x2f1b6c._0x4b395f,_0x2f1b6c._0xd9eb53,0x18f)]});return yield createToolOutput(_0x455f9a,{'id':_0x3d1299['id'],'name':_0x3d1299[_0x238afa(0x123,0x180,_0x2f1b6c._0x2c24f1,0x153)],'path':_0x40c29b[_0x238afa(0x318,0x3db,_0x2f1b6c._0x16d736,_0x2f1b6c._0x48528f)]['path']}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x2f3284,rename as _0x1f125d,stat as _0x1407aa,writeFile as _0x3f15a0}from'fs/promises';import*as _0x3a4dee from'path';function detectEol(_0x1582eb){const _0x5801c6={_0x471463:0x2f7,_0x53b6f1:0x49f,_0x538b13:0x3cd,_0x12b81a:0x2ce,_0x237511:0x2cb,_0x4eee22:0x2cb,_0x6b84f3:0x269,_0x5c3d3b:0x3c7},_0x1ac63e={_0x44603a:0x82,_0x11216d:0x76};function _0x365173(_0x2cb5dc,_0x448fac,_0x51b2a3,_0x3db65e){return _0x4ab00a(_0x2cb5dc-0x179,_0x448fac-_0x1ac63e._0x44603a,_0x2cb5dc,_0x448fac- -_0x1ac63e._0x11216d);}function _0x223d67(_0x2c88eb,_0x34b19e,_0x517a0f,_0x12452b){return _0x4ab00a(_0x2c88eb-0x1ed,_0x34b19e-0x130,_0x34b19e,_0x2c88eb- -0x12c);}return/\r\n/[_0x223d67(0x43d,_0x5801c6._0x471463,_0x5801c6._0x53b6f1,_0x5801c6._0x538b13)](_0x1582eb[_0x223d67(_0x5801c6._0x12b81a,_0x5801c6._0x237511,_0x5801c6._0x4eee22,_0x5801c6._0x6b84f3)]('utf8'))?_0x223d67(0x382,0x237,0x3c2,_0x5801c6._0x5c3d3b):'lf';}function normalizeToLf(_0x7a1a6b){const _0x2a81c8={_0x1fdf88:0x1a6,_0x300a93:0xfb,_0x20b94d:0x15c},_0x53818e={_0x2a1a22:0x58};function _0x28d85e(_0x478c30,_0x45f6ac,_0x128212,_0x21d3bb){return _0x4ab00a(_0x478c30-_0x53818e._0x2a1a22,_0x45f6ac-0x198,_0x21d3bb,_0x128212- -0x316);}return _0x7a1a6b[_0x28d85e(0x10b,_0x2a81c8._0x1fdf88,_0x2a81c8._0x300a93,_0x2a81c8._0x20b94d)](/\r\n/g,'\x0a');}function convertEol(_0x3d5363,_0x58801a){const _0x50e966={_0x1ac93c:0x12,_0x461fc5:0xcc,_0x7a0175:0x154,_0x53f36a:0x14e,_0xd62592:0x8b,_0x462f9:0xad},_0x3674f7={_0x23b49a:0x12a,_0x3e511e:0x50,_0x9682d0:0x49c},_0x484790={_0x8eb281:0xbb,_0x2cfbab:0x135};function _0x581c46(_0x3ac9d6,_0x23882f,_0x4640a9,_0xbc278c){return _0x4ab00a(_0x3ac9d6-_0x484790._0x8eb281,_0x23882f-_0x484790._0x2cfbab,_0xbc278c,_0x3ac9d6-0x162);}function _0x2c1258(_0x3843de,_0x2d36f7,_0x2e3f0a,_0x192270){return _0x4ab00a(_0x3843de-_0x3674f7._0x23b49a,_0x2d36f7-_0x3674f7._0x3e511e,_0x2e3f0a,_0x3843de- -_0x3674f7._0x9682d0);}return _0x58801a===_0x2c1258(_0x50e966._0x1ac93c,_0x50e966._0x461fc5,-_0x50e966._0x7a0175,_0x50e966._0x53f36a)?_0x3d5363[_0x2c1258(-_0x50e966._0xd62592,-0x146,-_0x50e966._0x462f9,0x29)](/\n/g,'\x0d\x0a'):_0x3d5363;}async function atomicWrite(_0x26dd69,_0x3ccab2){const _0x20716a={_0x354167:0x2a,_0x536c43:0x5b5,_0x2aee1f:0x446,_0x1f4c0c:0x29d,_0x30181e:0x31,_0x23fbc7:0x11e},_0x2fd8cd={_0x2f8960:0xb0},_0x3a4c63=_0x3a4dee[_0x6b3519(-0x12a,-0x5,0x2a,-_0x20716a._0x354167)](_0x26dd69);function _0x6b3519(_0x1c3542,_0xecc5fc,_0xf0bcd3,_0x59c4f0){return _0x1932a3(_0x1c3542,_0xecc5fc-0x3d,_0x59c4f0- -0x2bd,_0x59c4f0-_0x2fd8cd._0x2f8960);}const _0x4d1237=_0x3a4dee[_0x5e620b(0x4db,0x491,_0x20716a._0x536c43,_0x20716a._0x2aee1f)](_0x3a4c63,_0x5e620b(0x1ea,_0x20716a._0x1f4c0c,0x11d,0x1da)+_0x3a4dee['basename'](_0x26dd69)+'.'+Date[_0x6b3519(0xc0,-0x77,-0x3d,_0x20716a._0x30181e)]()+'.'+Math[_0x5e620b(0x36e,0x2f2,0x46a,0x405)]()[_0x6b3519(0xe5,0x4d,_0x20716a._0x23fbc7,0x46)](0x24)['slice'](0x2));await _0x3f15a0(_0x4d1237,_0x3ccab2);function _0x5e620b(_0x304e73,_0x1a91ad,_0x3b3059,_0xeeb6fe){return _0x4ab00a(_0x304e73-0xdd,_0x1a91ad-0x154,_0x304e73,_0xeeb6fe- -0x1ab);}await _0x1f125d(_0x4d1237,_0x26dd69);}function sha256(_0x172919){const _0x2c4c0f={_0x1bdc36:0x1b2,_0x489d78:0x184,_0x16ff54:0x1,_0xed8c7b:0x12f},_0xc7475c={_0x256085:0x33,_0x338a62:0x367},_0x482ad3={_0x3864c7:0x1b2,_0x423003:0xc1};function _0x26a710(_0x5cdd4b,_0x207187,_0xefb908,_0x94e277){return _0x4ab00a(_0x5cdd4b-_0x482ad3._0x3864c7,_0x207187-_0x482ad3._0x423003,_0xefb908,_0x207187- -0x89);}function _0x37a7a5(_0x1dcca3,_0x26e817,_0x2a3357,_0x4ad350){return _0x4ab00a(_0x1dcca3-0x14e,_0x26e817-_0xc7475c._0x256085,_0x4ad350,_0x1dcca3- -_0xc7475c._0x338a62);}return createHash(_0x37a7a5(0x44,-0x117,_0x2c4c0f._0x1bdc36,_0x2c4c0f._0x489d78))['update'](_0x172919)['digest'](_0x37a7a5(0x94,0xa9,-_0x2c4c0f._0x16ff54,_0x2c4c0f._0xed8c7b));}function countLines(_0x11b662){const _0x5ce366={_0x3c6364:0x2a7},_0x40416d={_0x430f03:0xe1,_0x4a1004:0x1ae,_0x3ed5b6:0x345};function _0x2b00b2(_0x3c17d0,_0x7317ae,_0x29cf36,_0x147775){return _0x4ab00a(_0x3c17d0-_0x40416d._0x430f03,_0x7317ae-_0x40416d._0x4a1004,_0x29cf36,_0x147775- -_0x40416d._0x3ed5b6);}const _0x4c8525=_0x11b662['replace'](/\n$/,'');return _0x4c8525['length']===0x0?0x0:_0x4c8525['split']('\x0a')[_0x2b00b2(0x20e,0x1d3,_0x5ce366._0x3c6364,0x1f3)];}function calculateLineNumbers(_0x1ed7e3,_0x4609ad,_0x297ec0,_0x2213d1){const _0x350841={_0x3c59ad:0x124,_0x5e69af:0x5b,_0x103635:0x63,_0x1c6500:0x10d,_0x1165d4:0x35,_0x19d994:0x25d,_0x1aa76d:0x1df,_0x3e1efe:0x65,_0x3150ba:0x15},_0x867fae={_0x5481a6:0x171,_0x4946a0:0xc,_0x37eb15:0x5b7},_0x38802f={_0x2f1d70:0x54d},_0x51f9bd=_0x1ed7e3[_0x3b1d88(-_0x350841._0x3c59ad,-_0x350841._0x5e69af,-_0x350841._0x103635,_0x350841._0x1c6500)](0x0,_0x2213d1)[_0x226cef(-_0x350841._0x1165d4,-0x11c,-_0x350841._0x19d994,-_0x350841._0x1aa76d)]('\x0a')[_0x3b1d88(_0x350841._0x3e1efe,-0x13c,-_0x350841._0x3150ba,-0x157)];function _0x3b1d88(_0x380fee,_0x170182,_0x2ce03a,_0x467893){return _0x4ab00a(_0x380fee-0x5f,_0x170182-0x17e,_0x170182,_0x2ce03a- -_0x38802f._0x2f1d70);}const _0x505211=countLines(_0x4609ad);function _0x226cef(_0x3dd114,_0x1c4bf3,_0x30890b,_0x8bb159){return _0x4ab00a(_0x3dd114-_0x867fae._0x5481a6,_0x1c4bf3-_0x867fae._0x4946a0,_0x30890b,_0x1c4bf3- -_0x867fae._0x37eb15);}const _0x4d43f5=countLines(_0x297ec0);return{'oldStartLine':_0x51f9bd,'oldEndLine':_0x51f9bd+_0x505211-0x1,'newStartLine':_0x51f9bd,'newEndLine':_0x51f9bd+_0x4d43f5-0x1,'oldLineCount':_0x505211,'newLineCount':_0x4d43f5};}function createFileEditTool(_0x4932f3={}){const _0x1d47c0={_0x5fcdc:0x19a,_0x5cef7f:0x14f,_0x52b1d9:0x643,_0x422425:0x33a,_0x4b7e73:0x348,_0x2e8198:0x442,_0x3a6272:0x515,_0x5d59a3:0x4d9,_0x212991:0x2cd,_0x201a63:0x39b,_0x4fd545:0x222,_0x48691a:0x179,_0x29b120:0x1d2,_0x4384b9:0x1da,_0x2fc843:0x443,_0x2c02f9:0x4d2,_0x3a2a48:0x47e,_0x52702d:0x3d4,_0x87121b:0x43e,_0x303d3e:0x5d6,_0x34f982:0x3fd,_0xde7d7d:0x5a9,_0x5d9238:0x676},_0x511973={_0x3f8883:0x4d,_0x46dd41:0x183,_0x522ab0:0x590,_0xea4241:0x7f7,_0x519d4c:0x1fb,_0xb1c41a:0x216,_0x241cf1:0x679,_0x5db5f2:0x5b7,_0x48ebf2:0x5d3,_0x13f4d4:0x8d,_0x534ae0:0x12b,_0x1b9194:0x5b7,_0x40d778:0x4d8,_0xc223b2:0x2b0,_0x36f195:0x283,_0x2963c4:0x6fd,_0x5dfd2:0x737,_0x1ce179:0x28c,_0x1454a7:0x1b9,_0x14be79:0x2ee,_0x555f38:0x71c,_0x4148b0:0x719,_0x41d7b3:0x5f5,_0x10697e:0x60e,_0x5bb4bd:0x1f1,_0x8a42de:0x231,_0x22b2a5:0x5cb,_0x3f89a1:0x366,_0x5dc8b2:0x32a,_0x26bc3a:0x232,_0x2420d1:0x337,_0x5e5589:0x1b7,_0x43b1f9:0x147},_0x2e00b7={_0x2c18e9:0x98,_0x376e74:0x132,_0x58f149:0xe4},_0x45cd55={_0x12caa8:0x67,_0x31f24b:0xe0,_0x2efdbe:0x12a},_0x46294a={_0x13b583:0x148,_0x1f2aeb:0xfe},_0x225f7b=_0x3a4dee['resolve'](_0x4932f3[_0xddee47(0x1b7,_0x1d47c0._0x5fcdc,_0x1d47c0._0x5cef7f,0x57)]??process[_0x463b79(_0x1d47c0._0x52b1d9,0x691,0x532,0x569)]()),_0x3c615d=_0x4932f3[_0xddee47(0x41e,_0x1d47c0._0x422425,0x4b2,0x4e3)]??[],_0x54128e=_0x4932f3[_0x463b79(0x57e,_0x1d47c0._0x4b7e73,0x478,_0x1d47c0._0x2e8198)]??_0x463b79(0x40c,0x5f3,_0x1d47c0._0x3a6272,_0x1d47c0._0x5d59a3);function _0xddee47(_0x27526e,_0x3d35e0,_0x4073af,_0x2a9e68){return _0x1932a3(_0x4073af,_0x3d35e0-_0x46294a._0x13b583,_0x27526e- -_0x46294a._0x1f2aeb,_0x2a9e68-0x13d);}function _0x463b79(_0x224ea9,_0x2acd37,_0x29c276,_0x80b53f){return _0x1932a3(_0x224ea9,_0x2acd37-_0x45cd55._0x12caa8,_0x80b53f-_0x45cd55._0x31f24b,_0x80b53f-_0x45cd55._0x2efdbe);}return defineTool({'name':_0x54128e,'description':_0xddee47(_0x1d47c0._0x212991,_0x1d47c0._0x201a63,_0x1d47c0._0x4fd545,_0x1d47c0._0x48691a),'inputSchema':{'type':_0x463b79(0x53a,0x4e8,0x5f4,0x5cb),'properties':{'filePath':{'type':'string'},'description':{'type':_0xddee47(0x2f4,_0x1d47c0._0x29b120,0x318,_0x1d47c0._0x4384b9),'description':'A\x20concise\x20explanation\x20of\x20what\x20this\x20edit\x20changes\x20and\x20why\x20—\x20the\x20goal\x20it\x20advances.\x20Shown\x20to\x20the\x20user\x20before\x20the\x20change\x20is\x20applied.\x20Be\x20specific,\x20e.g.\x20\x27Fix\x20the\x20token-refresh\x20race\x20in\x20the\x20auth\x20client\x27\x20rather\x20than\x20\x27edit\x20file\x27.'},'oldText':{'type':_0xddee47(0x2f4,0x1dc,0x280,0x392)},'newText':{'type':_0x463b79(_0x1d47c0._0x2fc843,0x539,0x514,_0x1d47c0._0x2c02f9)},'dryRun':{'type':_0x463b79(0x424,0x3c5,_0x1d47c0._0x3a2a48,_0x1d47c0._0x52702d)}},'required':['filePath',_0x463b79(_0x1d47c0._0x87121b,_0x1d47c0._0x303d3e,_0x1d47c0._0x34f982,0x533),_0x463b79(_0x1d47c0._0xde7d7d,0x586,_0x1d47c0._0x5d9238,0x5c9)]},async *'execute'(_0x177094){const _0xa5c086={_0x3f7d42:0x3b,_0x1ae918:0x146},_0x4e6e09=resolveAllowedPath(_0x225f7b,_0x3c615d,_0x177094['filePath']);await assertWorkspaceFile(_0x4e6e09);const _0x2ca4c1=await _0x1407aa(_0x4e6e09),_0x1aeb59=await _0x2f3284(_0x4e6e09),_0x20590c=detectEol(_0x1aeb59),_0x3965ad=normalizeToLf(_0x1aeb59[_0x4d78fb(0x18,_0x511973._0x3f8883,0xf4,_0x511973._0x46dd41)](_0x578311(0x6b8,_0x511973._0x522ab0,0x47a,0x4e2))),_0x2f7fc6=normalizeToLf(_0x177094['oldText']),_0x38877a=normalizeToLf(_0x177094[_0x578311(0x649,0x6ad,0x809,_0x511973._0xea4241)]),_0x5f4ae0=_0x3965ad[_0x4d78fb(_0x511973._0x519d4c,_0x511973._0xb1c41a,0x16a,0x1d8)](_0x2f7fc6);if(_0x5f4ae0===-0x1){const _0x1a6723=_0x2f7fc6[_0x578311(_0x511973._0x241cf1,_0x511973._0x5db5f2,0x68f,_0x511973._0x48ebf2)](0x0,0x64)['replace'](/\n/g,'\x5cn');throw new ToolExecutionError(_0x4d78fb(0xba,_0x511973._0x13f4d4,0x1be,_0x511973._0x534ae0)+_0x1a6723+(_0x2f7fc6[_0x4d78fb(0x21b,0x2b2,0x232,0x1f0)]>0x64?'...':'')+'\x22',{'filePath':_0x177094['filePath']});}function _0x578311(_0x417882,_0x2e34b0,_0x3c063c,_0x2cf22f){return _0x463b79(_0x3c063c,_0x2e34b0-_0x2e00b7._0x2c18e9,_0x3c063c-_0x2e00b7._0x376e74,_0x2e34b0-_0x2e00b7._0x58f149);}const _0x1c29d7=_0x3965ad['slice'](0x0,_0x5f4ae0)+_0x38877a+_0x3965ad[_0x578311(0x618,_0x511973._0x1b9194,_0x511973._0x40d778,0x6b2)](_0x5f4ae0+_0x2f7fc6[_0x4d78fb(_0x511973._0xc223b2,_0x511973._0x36f195,0x232,0x2c4)]),_0x28d131=convertEol(_0x1c29d7,_0x20590c),_0x32baf8=Buffer['from'](_0x28d131,'utf8'),_0xa52bae=sha256(_0x1aeb59),_0x1a71dd=sha256(_0x32baf8),_0x4ee1b3=_0xa52bae===_0x1a71dd,_0xe91116=_0x177094[_0x578311(0x6ed,0x5ca,_0x511973._0x2963c4,0x4f3)]??![];!_0xe91116&&!_0x4ee1b3&&await atomicWrite(_0x4e6e09,_0x32baf8);function _0x4d78fb(_0x312703,_0x27a656,_0x46cc7f,_0x3038dd){return _0xddee47(_0x46cc7f- -0x111,_0x27a656-_0xa5c086._0x3f7d42,_0x3038dd,_0x3038dd-_0xa5c086._0x1ae918);}return yield createToolOutput(_0x4ee1b3?_0x578311(_0x511973._0x5dfd2,0x729,0x6a6,0x69f):_0xe91116?_0x4d78fb(_0x511973._0x1ce179,_0x511973._0x1454a7,0x233,_0x511973._0x14be79):_0x578311(_0x511973._0x555f38,_0x511973._0x4148b0,0x878,0x883),{'filePath':_0x177094[_0x578311(_0x511973._0x41d7b3,0x725,0x799,0x84e)],'resolvedPath':_0x4e6e09,'created':_0x2ca4c1[_0x578311(0x4b7,0x54a,_0x511973._0x10697e,0x496)][_0x4d78fb(0x11e,_0x511973._0x5bb4bd,0x145,_0x511973._0x8a42de)](),'modified':_0x2ca4c1[_0x578311(0x512,0x559,0x681,0x5f4)][_0x578311(0x617,0x518,_0x511973._0x22b2a5,0x479)](),'size':_0x2ca4c1[_0x578311(_0x511973._0x3f89a1,0x489,0x44d,_0x511973._0x5dc8b2)],'eol':_0x20590c,'oldTextLength':_0x2f7fc6[_0x4d78fb(0x372,0x300,_0x511973._0x26bc3a,0x35a)],'newTextLength':_0x38877a[_0x4d78fb(_0x511973._0x2420d1,0x20e,0x232,0x348)],'bytesWritten':_0x4ee1b3||_0xe91116?0x0:_0x32baf8[_0x4d78fb(_0x511973._0x5e5589,_0x511973._0x43b1f9,_0x511973._0x26bc3a,0x1e1)],'beforeSha':_0xa52bae,'afterSha':_0x1a71dd,'dryRun':_0xe91116,'noChange':_0x4ee1b3,'lineNumbers':calculateLineNumbers(_0x3965ad,_0x2f7fc6,_0x38877a,_0x5f4ae0)}),void 0x0;}});}import{mkdir as _0x25badd,rename as _0x44c22e,stat as _0x29f176,writeFile as _0x13bf4e}from'fs/promises';import*as _0x5f017f from'path';async function atomicWrite2(_0x238361,_0x1c2f64){const _0x15adfd={_0x32fe4d:0x132,_0x1f7aba:0x6a7,_0x45abca:0x5d1,_0x4cd21c:0x57a,_0x489890:0x10d,_0x43f97c:0x9c,_0x57f469:0x9b,_0x134a71:0x96,_0x4e51c4:0x662,_0x1c3be0:0x525,_0x3b9352:0x584,_0x1e59de:0x429,_0x4f2cdc:0x50d,_0x4701ab:0x4ad,_0x5a4c18:0x4c0,_0x489573:0x590,_0x3b4b45:0x6e2,_0x443581:0x7c,_0x2bb899:0x59,_0x5573e3:0xcf},_0x427bfd={_0xc5cafa:0xd7,_0x1abdc8:0x1db},_0x580b87={_0x450961:0x47},_0x3746c4=_0x5f017f[_0x352fe8(-0x72,-0x124,-_0x15adfd._0x32fe4d,-0x91)](_0x238361);await _0x25badd(_0x3746c4,{'recursive':!![]});const _0x35a2fd=_0x5f017f[_0x2d86d5(_0x15adfd._0x1f7aba,_0x15adfd._0x45abca,0x64b,_0x15adfd._0x4cd21c)](_0x3746c4,_0x352fe8(-_0x15adfd._0x489890,_0x15adfd._0x43f97c,_0x15adfd._0x57f469,-_0x15adfd._0x134a71)+_0x5f017f[_0x2d86d5(_0x15adfd._0x4e51c4,_0x15adfd._0x1c3be0,_0x15adfd._0x3b9352,_0x15adfd._0x1e59de)](_0x238361)+'.'+Date[_0x2d86d5(_0x15adfd._0x4f2cdc,0x3c5,0x31d,_0x15adfd._0x4701ab)]()+'.'+Math[_0x2d86d5(_0x15adfd._0x5a4c18,_0x15adfd._0x489573,_0x15adfd._0x3b4b45,0x68a)]()[_0x2d86d5(0x296,0x3da,0x406,0x37f)](0x24)[_0x352fe8(-0x8d,_0x15adfd._0x443581,_0x15adfd._0x2bb899,_0x15adfd._0x5573e3)](0x2));function _0x352fe8(_0x463c7e,_0x3e16b6,_0x36e123,_0x2d384f){return _0x4ab00a(_0x463c7e-_0x580b87._0x450961,_0x3e16b6-0x17,_0x3e16b6,_0x2d384f- -0x41b);}function _0x2d86d5(_0x5e0cd9,_0x746241,_0x4dda97,_0x400957){return _0x1932a3(_0x5e0cd9,_0x746241-0x9f,_0x746241-_0x427bfd._0xc5cafa,_0x400957-_0x427bfd._0x1abdc8);}await _0x13bf4e(_0x35a2fd,_0x1c2f64),await _0x44c22e(_0x35a2fd,_0x238361);}function createFileNewTool(_0x438335={}){const _0x16af5a={_0x2b4ec5:0x558,_0x111192:0x457,_0x293196:0x6f,_0x42d78f:0xaf,_0x4d0bfd:0xce,_0x4dd5e8:0x135,_0x43c771:0x12a,_0x4e2587:0xe,_0x575e70:0xb4,_0x25c9f5:0xc7,_0x498a72:0xf8,_0x6559a7:0xd1,_0x5b4164:0x7e,_0x3abf7e:0x1a1,_0x58db18:0x49},_0x43fbd5={_0x435edf:0x314,_0x4ebe20:0x6ea,_0x18b26d:0x786,_0x35950a:0x4e3,_0x2cfe4b:0x59b,_0x301bae:0x413,_0x5d0ab7:0x289,_0x47fd7a:0x6ab,_0x2a9d2c:0x47b,_0x1773bd:0x24b,_0x6669a9:0x429,_0x33a6cb:0x7f3,_0x29d0ab:0x89d,_0x592b47:0x737,_0xd68155:0x5d3,_0xd4eb8:0x5a5,_0x38b224:0x69c},_0x44f678={_0x55d1e4:0xaa},_0x3a2373={_0x2fd465:0x119,_0xf3ab30:0x1dd};function _0x53a131(_0x216ee5,_0x43f8b6,_0x56cc31,_0x212c1b){return _0x1932a3(_0x216ee5,_0x43f8b6-0xb,_0x212c1b- -0x3c1,_0x212c1b-0x114);}const _0x635658=_0x5f017f['resolve'](_0x438335[_0xf041d9(0x3ce,0x4dd,0x443,0x30c)]??process['cwd']()),_0x1a5e9c=_0x438335[_0xf041d9(0x635,_0x16af5a._0x2b4ec5,0x5f9,0x6df)]??[];function _0xf041d9(_0x2b1c25,_0x1f645a,_0x4cdd91,_0xa4cc9a){return _0x1932a3(_0x1f645a,_0x1f645a-0x65,_0x2b1c25-_0x3a2373._0x2fd465,_0xa4cc9a-_0x3a2373._0xf3ab30);}const _0x16d7ff=_0x438335[_0xf041d9(0x47b,_0x16af5a._0x111192,0x591,0x35b)]??_0x53a131(_0x16af5a._0x293196,0x1ec,_0x16af5a._0x42d78f,_0x16af5a._0x4d0bfd);return defineTool({'name':_0x16d7ff,'description':'Create\x20or\x20overwrite\x20a\x20UTF-8\x20text\x20file\x20in\x20the\x20workspace\x20or\x20allowed\x20directories.','inputSchema':{'type':_0x53a131(_0x16af5a._0x4dd5e8,0x17d,-0x31,_0x16af5a._0x43c771),'properties':{'filePath':{'type':_0x53a131(-0x112,-_0x16af5a._0x4e2587,-_0x16af5a._0x575e70,0x31)},'content':{'type':_0x53a131(0x1aa,_0x16af5a._0x25c9f5,-_0x16af5a._0x498a72,0x31)}},'required':['filePath',_0x53a131(_0x16af5a._0x6559a7,_0x16af5a._0x5b4164,-_0x16af5a._0x3abf7e,-_0x16af5a._0x58db18)]},async *'execute'(_0x51456b){const _0x32a2b4={_0x583d99:0x173,_0x53c20a:0x8d,_0xb33a43:0x61c},_0x43f891=resolveAllowedPath(_0x635658,_0x1a5e9c,_0x51456b[_0x97838e(0x3c7,0x20a,_0x43fbd5._0x435edf,0x2c9)]),_0x971a6d=await _0x29f176(_0x43f891)[_0x47b964(_0x43fbd5._0x4ebe20,0x676,0x6a2,0x5bd)](()=>!![])[_0x47b964(0x7f6,0x796,0x648,_0x43fbd5._0x18b26d)](()=>![]),_0x3ec361=Buffer[_0x47b964(0x429,_0x43fbd5._0x35950a,_0x43fbd5._0x2cfe4b,_0x43fbd5._0x301bae)](_0x51456b['content'],_0x97838e(0x36,0x26,0x17f,_0x43fbd5._0x5d0ab7));function _0x97838e(_0x299462,_0x38566f,_0x2433cb,_0x2e6d12){return _0x53a131(_0x38566f,_0x38566f-_0x44f678._0x55d1e4,_0x2433cb-0x83,_0x2433cb-0x174);}await atomicWrite2(_0x43f891,_0x3ec361),yield createToolOutput(_0x47b964(0x857,0x6fc,_0x43fbd5._0x47fd7a,0x77f)+_0x51456b[_0x97838e(_0x43fbd5._0x2a9d2c,_0x43fbd5._0x1773bd,0x314,_0x43fbd5._0x6669a9)]+'.',{'filePath':_0x51456b[_0x47b964(_0x43fbd5._0x33a6cb,0x7bc,_0x43fbd5._0x29d0ab,_0x43fbd5._0x592b47)],'resolvedPath':_0x43f891,'bytes':_0x3ec361['length'],'lines':_0x51456b[_0x47b964(0x565,_0x43fbd5._0xd68155,_0x43fbd5._0xd4eb8,0x578)]['split'](/\r?\n/)[_0x47b964(0x580,_0x43fbd5._0x38b224,0x5ed,0x5c4)],'created':new Date()['toISOString'](),'overwritten':_0x971a6d});function _0x47b964(_0x20ae93,_0x13946e,_0x3725a1,_0x2acbb5){return _0x53a131(_0x2acbb5,_0x13946e-_0x32a2b4._0x583d99,_0x3725a1-_0x32a2b4._0x53c20a,_0x13946e-_0x32a2b4._0xb33a43);}return void 0x0;}});}import{readFile as _0xb15a68,stat as _0x4781f2}from'fs/promises';import*as _0x275131 from'path';function stripUtfBom(_0x7c54bd){const _0x15dea2={_0x16ec02:0x574,_0x347202:0x548},_0x31ff6d={_0x278038:0x2b,_0x613c12:0x35},_0x5a8e0a={_0x2acf20:0x171};function _0x2155c7(_0x228ef1,_0xd72f79,_0x1244f1,_0x13e244){return _0x1932a3(_0x228ef1,_0xd72f79-0x9b,_0xd72f79-0x4b,_0x13e244-_0x5a8e0a._0x2acf20);}function _0x4a7d1b(_0x13009f,_0x4ad35b,_0x50b367,_0x108a70){return _0x4ab00a(_0x13009f-_0x31ff6d._0x278038,_0x4ad35b-0x199,_0x50b367,_0x13009f- -_0x31ff6d._0x613c12);}return _0x7c54bd[_0x2155c7(0x4e0,0x57d,0x569,_0x15dea2._0x16ec02)](0x0)===0xfeff?_0x7c54bd[_0x4a7d1b(0x4b5,_0x15dea2._0x347202,0x3c8,0x569)](0x1):_0x7c54bd;}function clampLine(_0x4d76ba,_0x12be83){const _0x338398={_0x57c0c9:0x11e,_0x435dbb:0xd6,_0x34fb07:0x10b,_0x596e2f:0x1d},_0xc30f13={_0x36b943:0x4b6,_0x148ce3:0x1b9},_0x56c70a={_0x180b00:0x19a};function _0x3cd906(_0x70cb80,_0x163310,_0x361346,_0x199e30){return _0x4ab00a(_0x70cb80-_0x56c70a._0x180b00,_0x163310-0x177,_0x163310,_0x361346- -0x4eb);}function _0x4716fd(_0x25c059,_0x179be7,_0x43124c,_0x2e7a39){return _0x1932a3(_0x25c059,_0x179be7-0x67,_0x2e7a39- -_0xc30f13._0x36b943,_0x2e7a39-_0xc30f13._0x148ce3);}if(!Number[_0x4716fd(_0x338398._0x57c0c9,0x1ec,_0x338398._0x435dbb,0x99)](_0x4d76ba))return 0x1;return Math[_0x3cd906(0xa1,-0x117,0x5b,0x19c)](0x1,Math[_0x3cd906(-0x4,0x69,-_0x338398._0x34fb07,-0x8a)](Math[_0x3cd906(_0x338398._0x596e2f,-0x106,-0x104,-0xd2)](_0x4d76ba),_0x12be83));}function createFileReadTool(_0x43221b={}){const _0x42297d={_0x651de0:0x134,_0x231fbe:0xb1,_0x187719:0x6a,_0x5ced79:0x2c,_0x4ef0b3:0xa2,_0x5214f1:0x2,_0x579a81:0x1a5,_0x35aaf7:0x397,_0x2b094c:0x23b,_0xb7c2e3:0x36c,_0x387d5d:0x1f9,_0x462005:0x21e,_0xe566af:0x175,_0x14c047:0xfd,_0x1a9aa2:0x17b,_0x518be4:0x110,_0x4737e4:0x228,_0x3511ff:0x2bc,_0x2a9c60:0x260,_0x10899f:0x1a4,_0x2ad564:0x338,_0x3e4694:0x2f5,_0x5223c8:0x49,_0x7ea634:0x53,_0x1bafaa:0x4c,_0x1ec7cf:0x84,_0x9c374c:0x77,_0x199077:0x181,_0x183264:0x106,_0x13e399:0xc1},_0x407ecb={_0x5895d0:0x4b1,_0x1e9505:0x670,_0x3d42e0:0x66e,_0x28d80a:0x523,_0x6b7b93:0x3e7,_0x31a1b1:0x637,_0x465935:0x6a1,_0x521219:0x6df,_0x1953af:0x544,_0xa8e69f:0x3c7,_0x3df1b9:0x26f,_0x3f073f:0x5a4,_0x1728bd:0x5a0,_0x3051f4:0x563,_0x3ef18e:0x5c1,_0x3f1153:0x577,_0x3d3b1e:0x455,_0x388d66:0x3bc,_0x2d75b3:0x50a,_0x346f84:0x6d2,_0x574366:0x56d,_0x32aa39:0x565,_0x2a9a5f:0x613,_0x5ab5d0:0x5a4,_0x452477:0x6b9,_0x48ff80:0x5bf,_0x45499a:0x407,_0xce239c:0x44b,_0x1e1d65:0x4d2,_0x149c20:0x778,_0x4da77b:0x60e,_0x3b1809:0x619,_0x56410c:0x4a3,_0x2cb685:0x4b8,_0x593b5e:0x49b},_0x562abd={_0x1c4880:0x13d,_0x29de25:0x181},_0x178e1a={_0x13573:0x150};function _0xee431d(_0x14b0f0,_0x4e9370,_0x1b7c55,_0x27ba02){return _0x4ab00a(_0x14b0f0-_0x178e1a._0x13573,_0x4e9370-0xe2,_0x1b7c55,_0x14b0f0- -0x326);}const _0x4fe57a=_0x275131[_0x5142b3(_0x42297d._0x651de0,_0x42297d._0x231fbe,0x7e,_0x42297d._0x187719)](_0x43221b[_0x5142b3(0x3c,-_0x42297d._0x5ced79,-_0x42297d._0x4ef0b3,-_0x42297d._0x5214f1)]??process[_0xee431d(0x25a,0x166,0x327,_0x42297d._0x579a81)]()),_0x25b3f3=_0x43221b[_0x5142b3(_0x42297d._0x35aaf7,_0x42297d._0x2b094c,_0x42297d._0xb7c2e3,_0x42297d._0x387d5d)]??[];function _0x5142b3(_0x272e06,_0x51a589,_0x4a70e5,_0x5471cf){return _0x1932a3(_0x5471cf,_0x51a589-_0x562abd._0x1c4880,_0x51a589- -0x2e1,_0x5471cf-_0x562abd._0x29de25);}const _0x4f7349=_0x43221b['name']??_0xee431d(_0x42297d._0x462005,_0x42297d._0xe566af,_0x42297d._0x14c047,_0x42297d._0x1a9aa2);return defineTool({'name':_0x4f7349,'description':_0xee431d(0x151,_0x42297d._0x518be4,_0x42297d._0x4737e4,0x16e),'inputSchema':{'type':_0xee431d(_0x42297d._0x3511ff,_0x42297d._0x2a9c60,_0x42297d._0x10899f,0x176),'properties':{'path':{'type':_0xee431d(0x1c3,_0x42297d._0x2ad564,_0x42297d._0x3e4694,0x2e4)},'lineStart':{'type':_0x5142b3(0xd8,_0x42297d._0x5223c8,_0x42297d._0x7ea634,_0x42297d._0x1bafaa),'description':_0x5142b3(_0x42297d._0x1ec7cf,_0x42297d._0x9c374c,0x29,0x1e0)},'lineEnd':{'type':'number','description':_0xee431d(0x1aa,_0x42297d._0x199077,0x195,_0x42297d._0x183264)}},'required':[_0xee431d(0x230,0x388,_0x42297d._0x13e399,0x371)]},async *'execute'(_0x37b7eb){const _0x4ab43f=resolveAllowedPath(_0x4fe57a,_0x25b3f3,_0x37b7eb[_0x3f3d5c(0x523,0x58c,_0x407ecb._0x5895d0,_0x407ecb._0x1e9505)]);function _0x3f3d5c(_0x385d05,_0x5bced4,_0x3392c9,_0x3274a0){return _0x5142b3(_0x385d05-0x76,_0x385d05-0x3a5,_0x3392c9-0x99,_0x5bced4);}await assertWorkspaceFile(_0x4ab43f);const _0x63d751=await _0x4781f2(_0x4ab43f),_0x3e884e=await _0xb15a68(_0x4ab43f);if(isProbablyBinary(_0x3e884e))throw new ToolExecutionError(_0x142b9c(0x60c,0x671,0x5cb,_0x407ecb._0x3d42e0)+_0x37b7eb[_0x3f3d5c(_0x407ecb._0x28d80a,0x3ff,_0x407ecb._0x6b7b93,0x69a)],{'path':_0x37b7eb[_0x142b9c(_0x407ecb._0x31a1b1,_0x407ecb._0x465935,_0x407ecb._0x521219,_0x407ecb._0x1953af)]});let _0x124c75=_0x3e884e[_0x3f3d5c(_0x407ecb._0xa8e69f,_0x407ecb._0x3df1b9,0x490,0x348)](_0x142b9c(_0x407ecb._0x3f073f,0x6d4,0x699,_0x407ecb._0x1728bd));function _0x142b9c(_0x34ff76,_0x4df447,_0x5eff8d,_0x418b9b){return _0xee431d(_0x34ff76-0x407,_0x4df447-0x11b,_0x5eff8d,_0x418b9b-0x184);}const _0x2c40a0=_0x124c75[_0x3f3d5c(0x5f6,_0x407ecb._0x3051f4,_0x407ecb._0x3ef18e,_0x407ecb._0x3f1153)](0x0)===0xfeff;_0x124c75=stripUtfBom(_0x124c75);const _0x4c5f97=_0x124c75['split'](/\r?\n/),_0x22ae12={'path':_0x37b7eb[_0x3f3d5c(0x523,_0x407ecb._0x3d3b1e,_0x407ecb._0x388d66,0x489)],'resolvedPath':_0x4ab43f,'created':_0x63d751[_0x142b9c(0x55e,_0x407ecb._0x2d75b3,0x4a7,_0x407ecb._0x346f84)]['toISOString'](),'modified':_0x63d751[_0x142b9c(_0x407ecb._0x574366,0x507,0x6a4,0x43c)]['toISOString'](),'size':_0x63d751[_0x142b9c(0x49d,_0x407ecb._0x32aa39,0x424,_0x407ecb._0x2a9a5f)],'encoding':_0x142b9c(_0x407ecb._0x5ab5d0,_0x407ecb._0x452477,0x5ad,0x5ba),'bomStripped':_0x2c40a0,'truncated':![],'totalLines':_0x4c5f97[_0x142b9c(0x619,0x6d0,0x554,0x769)]};if(_0x37b7eb['lineStart']!==void 0x0||_0x37b7eb[_0x142b9c(0x4bc,0x432,0x388,_0x407ecb._0x48ff80)]!==void 0x0){const _0x4cb292=clampLine(_0x37b7eb[_0x3f3d5c(_0x407ecb._0x45499a,0x4b3,0x4de,_0x407ecb._0xce239c)]??0x1,_0x4c5f97[_0x142b9c(0x619,_0x407ecb._0x1e1d65,_0x407ecb._0x149c20,_0x407ecb._0x4da77b)]),_0x1333a4=clampLine(_0x37b7eb['lineEnd']??_0x4c5f97['length'],_0x4c5f97[_0x142b9c(_0x407ecb._0x3b1809,0x648,_0x407ecb._0x56410c,_0x407ecb._0x2cb685)]),_0x3859dd=Math[_0x3f3d5c(0x3ad,_0x407ecb._0x593b5e,0x244,0x2ef)](_0x4cb292,_0x1333a4),_0x27c59f=Math[_0x142b9c(0x627,0x78d,0x534,_0x407ecb._0x521219)](_0x4cb292,_0x1333a4),_0x52e5a9=_0x4c5f97['slice'](_0x3859dd-0x1,_0x27c59f)['map']((_0x1aa310,_0x4c68cf)=>_0x3859dd+_0x4c68cf+'|'+_0x1aa310)['join']('\x0a');return yield createToolOutput(_0x52e5a9,{..._0x22ae12,'lineRange':{'lineStart':_0x3859dd,'lineEnd':_0x27c59f,'linesTotal':_0x4c5f97[_0x142b9c(_0x407ecb._0x3b1809,0x766,0x639,0x646)]}}),void 0x0;}return yield createToolOutput(_0x124c75,_0x22ae12),void 0x0;}});}import{stat as _0x3f4317}from'fs/promises';import*as _0x50f29a from'path';import{execSync,spawn as _0x542955}from'child_process';import{existsSync}from'fs';import{stat as _0x58305b}from'fs/promises';import*as _0x23a905 from'os';import*as _0x47b600 from'path';import{rgPath as _0x1568de}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x1ea8cc={_0x4a684d:0x20c,_0x4132a8:0x17c,_0x5326f0:0x1c7,_0xe5119d:0x359,_0x22e631:0x394,_0x3ca359:0x3f9,_0x4f8dd2:0x2df,_0xc25243:0x220,_0x3499f4:0x4dd,_0x3fec8c:0x54b,_0x5dd647:0xcf,_0x5b7873:0x230,_0x42c573:0x4a5,_0x2b8e05:0x3df,_0x4b436e:0x4eb,_0x56696d:0x59b,_0x1afda8:0x1fc,_0x48dc60:0x355,_0x489927:0x547,_0x3dba17:0x535,_0x2f54da:0x418,_0x19ef9f:0x375,_0xd18776:0x376,_0x506268:0x623,_0x186701:0x4f2,_0x5a4d18:0x4d0,_0x272408:0x318,_0x120dc1:0x3f1,_0xe91d4:0x4a8,_0x54aec4:0x6c3,_0x2b42bd:0x5b0,_0x345d24:0x43d,_0x4016ce:0x33f,_0x51293d:0x4db,_0x5c9359:0x3f0,_0x47e7dd:0x4e0,_0xe9a625:0x564,_0x11d1bd:0x2d5,_0x51542c:0x447,_0x4c8377:0x2d0,_0x2daa35:0x697,_0x468de3:0x145,_0x543765:0x23d},_0x5a4574={_0x8d7e90:0xf7},_0x16476f={_0x12057f:0xb1,_0x20f607:0x192,_0xdd7779:0x84},_0x1d4cb3=_0x23a905['platform']()===_0x44572a(_0x1ea8cc._0x4a684d,_0x1ea8cc._0x4132a8,0x153,_0x1ea8cc._0x5326f0),_0x47cf35=_0x1d4cb3?[_0x47b600['join'](process[_0x34c4be(0x406,_0x1ea8cc._0xe5119d,0x42d,_0x1ea8cc._0x22e631)]['LOCALAPPDATA']||'',_0x34c4be(0x45b,_0x1ea8cc._0x3ca359,0x468,0x3a4),_0x44572a(0x341,0x1b7,0x422,_0x1ea8cc._0x4f8dd2),_0x44572a(_0x1ea8cc._0xc25243,0x254,0x80,0x1d3)),_0x47b600[_0x44572a(_0x1ea8cc._0x3499f4,_0x1ea8cc._0x3fec8c,0x36b,0x403)](process[_0x44572a(_0x1ea8cc._0x5dd647,0x2df,_0x1ea8cc._0x5b7873,0x1a4)]['ProgramFiles']||'',_0x34c4be(_0x1ea8cc._0x42c573,_0x1ea8cc._0x2b8e05,_0x1ea8cc._0x4b436e,_0x1ea8cc._0x56696d),_0x44572a(0x2ae,0x48d,_0x1ea8cc._0x1afda8,_0x1ea8cc._0x48dc60)),_0x47b600[_0x34c4be(_0x1ea8cc._0x489927,0x6b5,0x68c,_0x1ea8cc._0x3dba17)](process[_0x34c4be(_0x1ea8cc._0x2f54da,_0x1ea8cc._0x19ef9f,0x42d,_0x1ea8cc._0xd18776)][_0x34c4be(_0x1ea8cc._0x506268,0x434,_0x1ea8cc._0x186701,0x5f6)]||'',_0x34c4be(_0x1ea8cc._0x5a4d18,0x529,_0x1ea8cc._0x4b436e,0x4b8),_0x44572a(0x2b5,0x1f4,_0x1ea8cc._0x272408,0x355))]:[_0x44572a(0x289,0x49b,0x35b,_0x1ea8cc._0x120dc1),_0x34c4be(_0x1ea8cc._0xe91d4,0x6a8,0x591,_0x1ea8cc._0x54aec4),_0x34c4be(_0x1ea8cc._0x2b42bd,0x51e,_0x1ea8cc._0x345d24,0x3fd),_0x44572a(0x413,_0x1ea8cc._0x4016ce,_0x1ea8cc._0x51293d,0x375)];for(const _0x3e94f9 of _0x47cf35){if(existsSync(_0x3e94f9))return _0x3e94f9;}function _0x34c4be(_0x1e2921,_0x33d2a5,_0x50ff6d,_0x10fb0b){return _0x1932a3(_0x1e2921,_0x33d2a5-_0x16476f._0x12057f,_0x50ff6d-_0x16476f._0x20f607,_0x10fb0b-_0x16476f._0xdd7779);}try{const _0x4241af=_0x1d4cb3?_0x34c4be(0x4f0,_0x1ea8cc._0x5c9359,_0x1ea8cc._0x47e7dd,_0x1ea8cc._0xe9a625):'which\x20rg',_0x2544f3=execSync(_0x4241af,{'encoding':_0x44572a(0x336,0x2d2,0x1ba,_0x1ea8cc._0x11d1bd),'stdio':['pipe',_0x44572a(0x1fa,0x2e2,_0x1ea8cc._0x51542c,_0x1ea8cc._0x4c8377),_0x34c4be(0x74e,_0x1ea8cc._0x2daa35,0x6df,0x70c)]})[_0x44572a(0x2b4,0x17f,_0x1ea8cc._0x468de3,_0x1ea8cc._0x543765)]()['split'](/\r?\n/)[0x0];if(_0x2544f3&&existsSync(_0x2544f3))return _0x2544f3;}catch{return null;}function _0x44572a(_0x86a00c,_0x2f76fd,_0x30307b,_0x417c8b){return _0x1932a3(_0x30307b,_0x2f76fd-0x40,_0x417c8b- -_0x5a4574._0x8d7e90,_0x417c8b-0x8d);}return null;}async function filepath(){if(cachedRgPath)return cachedRgPath;if(_0x1568de&&existsSync(_0x1568de))return cachedRgPath=_0x1568de,_0x1568de;const _0xaf8ff1=findSystemRipgrep();if(!_0xaf8ff1)throw new Error('ripgrep\x20executable\x20not\x20found.\x20Install\x20rg\x20to\x20use\x20Glob\x20and\x20Grep\x20tools.');return cachedRgPath=_0xaf8ff1,_0xaf8ff1;}async function*files(_0x50aa1a){const _0x569783={_0x440031:0x66e,_0x41cfe5:0x74b,_0x51129b:0x529,_0x31662a:0x599,_0x2261be:0x345,_0x214ebb:0x422,_0x446586:0x26e,_0x455fbc:0x587,_0x3b8c04:0x544,_0x2b36c5:0x46c,_0x1d369b:0x403,_0x4c7aad:0x4ca,_0x55b1c8:0x481,_0x258d0b:0x4bc,_0x568f76:0x5b3,_0x1f06d5:0x47c,_0x5850ba:0x42a,_0x4ba881:0x3a4,_0x3c1662:0x2d7,_0x2de1bd:0x595,_0x520cb3:0x52d,_0x4a0fa6:0x62d,_0x4da6bf:0x7be,_0x432691:0x7c1,_0x3c7111:0x670,_0x3d4eb8:0x5aa,_0x1f6c1e:0x5ae,_0x10c1f9:0x424,_0x31a938:0x358,_0x9a1e99:0x360,_0x5c5e52:0x441,_0x3288c5:0x505,_0x19f9de:0x3fc,_0x42c732:0x3c3,_0x3da02f:0x3aa,_0x5e68f2:0x3c4,_0x14be2a:0x391,_0x43c659:0x471,_0x234c29:0x2f2,_0x21c285:0x2b8},_0x3f62e7={_0x26167f:0x1e2,_0x1b8e5b:0x1e7},_0x5c7126=await filepath(),_0x3109e6=await _0x58305b(_0x50aa1a[_0x338c4d(0x778,_0x569783._0x440031,0x670,_0x569783._0x41cfe5)])['catch'](()=>null);if(!_0x3109e6?.[_0x338c4d(0x4cf,0x68f,_0x569783._0x51129b,0x3f7)]())throw Object['assign'](new Error(_0xa29204(_0x569783._0x31662a,0x4b2,0x474,_0x569783._0x2261be)+_0x50aa1a['cwd']+'\x27'),{'code':_0xa29204(_0x569783._0x214ebb,_0x569783._0x446586,0x34f,0x36d)});const _0x577191=[_0x338c4d(0x459,_0x569783._0x455fbc,_0x569783._0x3b8c04,0x64e),_0xa29204(_0x569783._0x2b36c5,_0x569783._0x1d369b,_0x569783._0x4c7aad,_0x569783._0x55b1c8),_0x338c4d(_0x569783._0x258d0b,0x4cc,0x5a5,_0x569783._0x568f76),_0xa29204(0x414,_0x569783._0x1f06d5,0x480,0x331)];function _0x338c4d(_0x51e5c6,_0x4a029f,_0x40f766,_0x3d2da4){return _0x1932a3(_0x3d2da4,_0x4a029f-_0x3f62e7._0x26167f,_0x40f766-_0x3f62e7._0x1b8e5b,_0x3d2da4-0x167);}for(const _0xdb3c75 of _0x50aa1a[_0xa29204(_0x569783._0x5850ba,0x49e,_0x569783._0x4ba881,_0x569783._0x3c1662)]??[]){_0x577191['push'](_0x338c4d(_0x569783._0x2de1bd,_0x569783._0x520cb3,_0x569783._0x4a0fa6,0x65c)+_0xdb3c75);}const _0x14557c=_0x542955(_0x5c7126,_0x577191,{'cwd':_0x50aa1a[_0x338c4d(_0x569783._0x4da6bf,_0x569783._0x432691,_0x569783._0x3c7111,0x606)],'stdio':[_0xa29204(0x495,0x5c5,_0x569783._0x3d4eb8,0x4e7),_0x338c4d(0x69c,0x46e,_0x569783._0x1f6c1e,0x463),_0xa29204(0x4b6,0x38b,_0x569783._0x10c1f9,0x559)]});function _0xa29204(_0x1825e8,_0x2e4a27,_0x1fcfd4,_0x387a64){return _0x4ab00a(_0x1825e8-0x168,_0x2e4a27-0x1c4,_0x2e4a27,_0x1fcfd4- -0x9a);}let _0x3da8cb='';for await(const _0x5af354 of _0x14557c['stdout']??[]){_0x3da8cb+=_0x5af354[_0xa29204(_0x569783._0x31a938,0x380,_0x569783._0x9a1e99,0x405)]();const _0x226c5e=_0x3da8cb['split'](/\r?\n/);_0x3da8cb=_0x226c5e[_0x338c4d(_0x569783._0x5c5e52,_0x569783._0x3288c5,0x4ef,_0x569783._0x19f9de)]()??'';for(const _0x1b952a of _0x226c5e){if(_0x1b952a[_0xa29204(0x403,_0x569783._0x42c732,0x49e,_0x569783._0x3da02f)]>0x0)yield _0x1b952a;}}_0x3da8cb[_0xa29204(0x2b8,_0x569783._0x5e68f2,_0x569783._0x14be2a,_0x569783._0x43c659)]()['length']>0x0&&(yield _0x3da8cb[_0xa29204(_0x569783._0x234c29,0x446,_0x569783._0x14be2a,_0x569783._0x21c285)]());}function parseMatchLine(_0x13dc06,_0x64e55a){const _0x41d341={_0x1f63c8:0x555,_0x4e3d99:0x52c,_0x5153ff:0xf1,_0x3ea2c3:0xac,_0x122429:0x7a,_0xe93183:0x1ff,_0x50104c:0x100,_0x415882:0x456,_0x3bd1e5:0x4b0,_0x22188a:0x5d6,_0xd93c47:0x3fb,_0x52a8a9:0x571,_0x5593c3:0x4ea,_0x1a7cf7:0x5ef,_0x5258c1:0x121,_0x39e9e5:0x5f8,_0x5d6033:0xa3,_0x124016:0x68,_0x4343c5:0x5a3},_0xa9a215={_0x298bb5:0x88},_0x26ed45={_0x1d30f1:0x161};if(!_0x13dc06||_0x13dc06==='--')return null;const _0x3ddc34=_0x13dc06[_0x3865f3(0x353,_0x41d341._0x1f63c8,0x44d,_0x41d341._0x4e3d99)]('|');function _0x339e57(_0x1bdd8f,_0x27f833,_0x5192f8,_0xe5f4ab){return _0x4ab00a(_0x1bdd8f-_0x26ed45._0x1d30f1,_0x27f833-0x11b,_0x5192f8,_0x1bdd8f- -0x447);}function _0x3865f3(_0x4ac797,_0x315bac,_0xdf803d,_0x144721){return _0x4ab00a(_0x4ac797-0xe9,_0x315bac-_0xa9a215._0x298bb5,_0x4ac797,_0xdf803d- -0x4e);}if(_0x64e55a&&_0x3ddc34[_0x339e57(_0x41d341._0x5153ff,_0x41d341._0x3ea2c3,0x46,-_0x41d341._0x122429)]>=0x4&&Number['isFinite'](Number['parseInt'](_0x3ddc34[0x2]??'',0xa))){const _0x29927b=Number['parseInt'](_0x3ddc34[0x1]??'',0xa);if(!Number[_0x339e57(_0x41d341._0xe93183,_0x41d341._0x50104c,0x343,0x1e3)](_0x29927b)||!_0x3ddc34[0x0])return null;return{'filePath':_0x3ddc34[0x0],'lineNum':_0x29927b,'lineText':_0x3ddc34[_0x3865f3(0x457,_0x41d341._0x415882,0x49c,0x550)](0x3)[_0x3865f3(_0x41d341._0x3bd1e5,_0x41d341._0x22188a,0x5a3,0x6aa)]('|')};}if(_0x3ddc34[_0x3865f3(_0x41d341._0xd93c47,_0x41d341._0x52a8a9,_0x41d341._0x5593c3,_0x41d341._0x1a7cf7)]>=0x3){const _0x53f807=Number[_0x339e57(-0xd3,-0xad,-0xa0,-_0x41d341._0x5258c1)](_0x3ddc34[0x1]??'',0xa);if(!Number[_0x3865f3(0x623,0x480,_0x41d341._0x39e9e5,0x67b)](_0x53f807)||!_0x3ddc34[0x0])return null;return{'filePath':_0x3ddc34[0x0],'lineNum':_0x53f807,'lineText':_0x3ddc34[_0x339e57(_0x41d341._0x5d6033,0x4b,0xa0,_0x41d341._0x124016)](0x2)[_0x3865f3(0x64d,0x4b8,_0x41d341._0x4343c5,0x55b)]('|'),..._0x64e55a?{'isContext':!![]}:{}};}return null;}async function search(_0x12f50e){const _0x57f740={_0x554c0a:0x32,_0x205206:0x294,_0x138600:0x20,_0x5e9569:0x830,_0x5018e5:0x690,_0x327b87:0x634,_0x116814:0x5e7,_0xbc7281:0x55b,_0x234402:0x4b5,_0x52b639:0x254,_0x3e3cf2:0x212,_0x437de3:0x434,_0x2efd24:0x354,_0x25e67b:0x391,_0x23cecc:0x452,_0x2e8cb0:0x4bd,_0x30f66a:0x3ef,_0x10e549:0x31e,_0xe4789c:0x2cf,_0x429979:0x1b8,_0x80dedc:0x1c9,_0x5aae83:0x3a6,_0x1159ac:0x383,_0x11401c:0x1be,_0x3ff8bd:0x2e9,_0x6cf5e9:0x47b,_0x31e2c6:0x4b0,_0x5b5e1c:0x73c,_0xfe7e01:0x733,_0xd25808:0x698,_0x5cab9f:0x68e,_0x53e279:0x6f4,_0xca4783:0x3bf,_0x19c403:0x4e0,_0x143098:0x42a,_0x1d584a:0x4e8,_0x3b7ff7:0x7d2,_0x437147:0x84a,_0x3f1723:0x7df,_0x59d4d9:0x5bc,_0x1fbef6:0x784,_0x232d7a:0x5e4,_0x4ebff7:0x5f1,_0x2214c0:0x28f,_0x58f8a6:0x3ac,_0x1f210c:0x3f9,_0x20e527:0x5b3,_0x3f1990:0x647,_0x213e9a:0x6b5,_0x367d04:0x715},_0x4ce2a3={_0x17f66b:0x7a,_0x302790:0x2d,_0x370a57:0x8b,_0xe51ea1:0x135,_0x17bc4a:0x45,_0x39c0a5:0x1e3,_0x25535d:0x2b8,_0x4a71c8:0x133,_0x614c8d:0x228,_0x9cb32c:0x307,_0x53b066:0x347,_0x18c88c:0x91},_0x36e495={_0x3740bd:0x674,_0x132de9:0x7d9,_0x14695b:0x215,_0x5b07ae:0x36d,_0x165c09:0x6b7,_0x35178c:0x6e0,_0x504568:0x5dd,_0x37cd04:0x7af,_0x480e4c:0x6a2},_0x4394f8={_0x623a78:0x610,_0x164861:0xdc},_0x6b421c={_0x4d8310:0x1ed,_0x156ae5:0x146},_0x457d75={_0x53df64:0x1be};function _0x396f76(_0x162ba9,_0x3411e0,_0xf2352d,_0x4b7011){return _0x1932a3(_0xf2352d,_0x3411e0-0x75,_0x3411e0-_0x457d75._0x53df64,_0x4b7011-0x1ef);}const _0x2c24aa=await filepath();if(_0x12f50e[_0x5a8f43(_0x57f740._0x554c0a,_0x57f740._0x205206,_0x57f740._0x138600,0x166)]){const _0x19375f=await _0x58305b(_0x12f50e[_0x5a8f43(0x2c7,0x25c,0x19c,0x166)])[_0x396f76(_0x57f740._0x5e9569,0x6f9,_0x57f740._0x5018e5,_0x57f740._0x327b87)](()=>null);if(!_0x19375f?.[_0x396f76(0x6a6,_0x57f740._0x116814,_0x57f740._0xbc7281,0x66b)]())throw Object[_0x396f76(0x474,_0x57f740._0x234402,0x4e6,0x4cc)](new Error(_0x5a8f43(_0x57f740._0x52b639,_0x57f740._0x3e3cf2,_0x57f740._0x437de3,_0x57f740._0x2efd24)+_0x12f50e[_0x396f76(_0x57f740._0x25e67b,_0x57f740._0x23cecc,_0x57f740._0x2e8cb0,_0x57f740._0x30f66a)]+'\x27'),{'code':'ENOENT'});}else{const _0x2e03a9=await _0x58305b(_0x12f50e['cwd'])['catch'](()=>null);if(!_0x2e03a9?.['isDirectory']())throw Object[_0x5a8f43(_0x57f740._0x10e549,_0x57f740._0xe4789c,_0x57f740._0x429979,_0x57f740._0x80dedc)](new Error(_0x5a8f43(_0x57f740._0x5aae83,_0x57f740._0x1159ac,_0x57f740._0x11401c,_0x57f740._0x3ff8bd)+_0x12f50e['cwd']+'\x27'),{'code':_0x396f76(_0x57f740._0x6cf5e9,_0x57f740._0x31e2c6,0x41e,0x605)});}const _0x14dd43=['-nH','--field-match-separator=|',_0x396f76(0x648,0x5d4,_0x57f740._0x5b5e1c,_0x57f740._0xfe7e01),'--regexp',_0x12f50e[_0x396f76(0x80d,_0x57f740._0xd25808,_0x57f740._0x5cab9f,_0x57f740._0x53e279)]],_0x42105e=typeof _0x12f50e[_0x5a8f43(_0x57f740._0xca4783,0x406,_0x57f740._0x19c403,0x3f4)]===_0x396f76(_0x57f740._0x143098,_0x57f740._0x1d584a,0x5ff,0x40d)&&_0x12f50e[_0x396f76(_0x57f740._0x3b7ff7,0x6e0,_0x57f740._0x437147,_0x57f740._0x3f1723)]>0x0;_0x42105e&&_0x14dd43[_0x396f76(_0x57f740._0x59d4d9,0x652,_0x57f740._0x1fbef6,0x5a5)]('-C',String(_0x12f50e[_0x396f76(_0x57f740._0x232d7a,0x6e0,0x6fd,_0x57f740._0x4ebff7)]),'--column');_0x12f50e['glob']&&!_0x12f50e[_0x396f76(0x40d,0x452,0x378,_0x57f740._0x437de3)]&&_0x14dd43['push']('--glob',_0x12f50e['glob']);_0x14dd43[_0x5a8f43(_0x57f740._0x2214c0,0x434,_0x57f740._0x58f8a6,0x366)](_0x12f50e[_0x396f76(_0x57f740._0x1f210c,_0x57f740._0x23cecc,_0x57f740._0x20e527,0x300)]??_0x12f50e[_0x396f76(0x544,_0x57f740._0x3f1990,_0x57f740._0x213e9a,_0x57f740._0x367d04)]);function _0x5a8f43(_0x17015c,_0x57a68a,_0x17d5c2,_0x5e8875){return _0x4ab00a(_0x17015c-_0x6b421c._0x4d8310,_0x57a68a-_0x6b421c._0x156ae5,_0x17d5c2,_0x5e8875- -0x225);}return await new Promise((_0x374e6f,_0x4fca62)=>{const _0x3ce846={_0xa4bc61:0x120},_0x19533b=_0x542955(_0x2c24aa,_0x14dd43,{'cwd':_0x12f50e['cwd'],'stdio':[_0x15dc35(_0x4ce2a3._0x17f66b,0xfb,-_0x4ce2a3._0x302790,0x134),'pipe',_0x15dc35(-0x72,-_0x4ce2a3._0x370a57,-_0x4ce2a3._0xe51ea1,-_0x4ce2a3._0x17bc4a)]});function _0xa0997(_0x4b1f64,_0x53ed24,_0x2549d2,_0x4b4e42){return _0x396f76(_0x4b1f64-0x11,_0x53ed24- -0x2fa,_0x4b1f64,_0x4b4e42-_0x3ce846._0xa4bc61);}let _0x4da8d9='';function _0x15dc35(_0x5eb139,_0x3a8ff4,_0x112fe6,_0x517980){return _0x396f76(_0x5eb139-0x136,_0x3a8ff4- -_0x4394f8._0x623a78,_0x5eb139,_0x517980-_0x4394f8._0x164861);}let _0x2bec1e='';_0x19533b['stdout']?.['on'](_0xa0997(0x1ba,_0x4ce2a3._0x39c0a5,_0x4ce2a3._0x25535d,0x1cf),_0x3180bf=>{_0x4da8d9+=_0x3180bf['toString']();}),_0x19533b['stderr']?.['on'](_0x15dc35(-0x1e4,-_0x4ce2a3._0x4a71c8,-0x228,-_0x4ce2a3._0x614c8d),_0x2f7504=>{_0x2bec1e+=_0x2f7504['toString']();}),_0x19533b['on'](_0xa0997(0x1c4,_0x4ce2a3._0x9cb32c,_0x4ce2a3._0x53b066,0x223),_0x833d68=>{const _0x33d36a={_0x473d0f:0x31e,_0x5ebf2d:0x110};if(_0x833d68===0x1&&_0x4da8d9===''){_0x374e6f([]);return;}function _0xdf5119(_0x287473,_0x5b3b80,_0x341139,_0x3de979){return _0x15dc35(_0x287473,_0x341139-0x68b,_0x341139-0xda,_0x3de979-0x111);}if(_0x833d68!==0x0&&_0x833d68!==0x1){_0x4fca62(new Error(_0xdf5119(_0x36e495._0x3740bd,0x661,0x735,_0x36e495._0x132de9)+_0x2bec1e));return;}const _0x3f25e3=_0x12f50e[_0x5afce2(_0x36e495._0x14695b,0x260,0x10d,_0x36e495._0x5b07ae)]??0x64,_0x3660a8=[];function _0x5afce2(_0xd8d739,_0x4d35d1,_0x4eea1c,_0x2c59b2){return _0x15dc35(_0x4d35d1,_0xd8d739-_0x33d36a._0x473d0f,_0x4eea1c-0x1ba,_0x2c59b2-_0x33d36a._0x5ebf2d);}for(const _0x5e1cbf of _0x4da8d9[_0xdf5119(_0x36e495._0x165c09,_0x36e495._0x35178c,_0x36e495._0x504568,0x495)](/\r?\n/)){if(_0x3660a8[_0xdf5119(0x53d,_0x36e495._0x37cd04,0x67a,_0x36e495._0x480e4c)]>=_0x3f25e3)break;const _0x32e055=parseMatchLine(_0x5e1cbf,_0x42105e);if(_0x32e055)_0x3660a8['push'](_0x32e055);}_0x374e6f(_0x3660a8);}),_0x19533b['on'](_0x15dc35(-0x101,0x0,0xe1,_0x4ce2a3._0x18c88c),_0x4fca62);});}function createGlobTool(_0x505e53={}){const _0x131170={_0x177743:0x4ab,_0x7b8cde:0x48a,_0x5f3948:0x565,_0x391786:0x56b,_0x24c0c7:0x5d3,_0x1a0da8:0x7b5,_0x47e035:0x536,_0x18d964:0x5d6},_0x1b211b={_0x18c43f:0x345,_0x761c58:0x12b,_0x1cf92b:0x37d,_0x5ee441:0x29d,_0x37ee7b:0x138,_0xea5833:0x254,_0xc436a:0x166,_0x2229ae:0x214,_0x1f66b0:0xb9,_0x5069f4:0xbe,_0x349bad:0xd4,_0x4a0cae:0x170,_0x1043ed:0x47,_0x4588ee:0x48b,_0xf8920f:0x40d,_0x7af6ad:0x6,_0x5bc4c8:0x22,_0x37857a:0x3c9,_0x2b636f:0x347,_0x843ccc:0xd6,_0x37ef02:0x3bb,_0x4ee735:0x2ee,_0x5d2925:0x277,_0x55388f:0x1d3,_0x3fc994:0x4b5,_0x29b9b1:0x3c3,_0x52fbfe:0x3ef,_0x3d3b02:0x48d,_0x2bcbe5:0x193,_0x42c2e1:0x1fa,_0x3845f7:0x2c9,_0x4ee9c0:0x257,_0x31cc5d:0x48b,_0x53d568:0x4dd,_0x7d48d2:0x454,_0x371fce:0x3c3,_0x1a008c:0x302,_0x362d4c:0x1c4,_0x174281:0x179,_0x170cae:0x11a},_0x3c610d={_0x548fbd:0x179},_0x5dc317=_0x50f29a[_0x177f47(_0x131170._0x177743,0x552,0x5e6,_0x131170._0x7b8cde)](_0x505e53['defaultCwd']??process[_0x2c3bb6(0x898,0x786,0x8b1,0x803)]()),_0x4e1b9a=_0x505e53[_0x2c3bb6(0x8c7,0x819,0x85b,0x710)]??[];function _0x2c3bb6(_0x572ee2,_0x2b15b0,_0x4c0ae7,_0x752e8b){return _0x1932a3(_0x752e8b,_0x2b15b0-0x130,_0x2b15b0-0x2fd,_0x752e8b-0x55);}const _0x41cc53=_0x505e53['limit']??0x64,_0xd05406=_0x505e53[_0x177f47(_0x131170._0x5f3948,_0x131170._0x391786,_0x131170._0x24c0c7,0x45a)]??_0x2c3bb6(_0x131170._0x1a0da8,0x7ac,0x8c0,0x8bb);function _0x177f47(_0x59fdbf,_0x4e9234,_0x5cca14,_0x1ddfc0){return _0x1932a3(_0x4e9234,_0x4e9234-0x35,_0x1ddfc0-0xf8,_0x1ddfc0-_0x3c610d._0x548fbd);}return defineTool({'name':_0xd05406,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0x177f47(_0x131170._0x47e035,_0x131170._0x18d964,0x6cf,0x5e3),'properties':{'pattern':{'type':'string'},'path':{'type':_0x177f47(0x624,0x4fa,0x399,0x4ea)},'limit':{'type':_0x177f47(0x46a,0x408,0x4b0,0x422)}},'required':['pattern']},async *'execute'(_0x288130){const _0x22b30d={_0x339d40:0x624};if(_0x288130[_0x54e8f3(0x454,_0x1b211b._0x18c43f,0x2e0,0x417)][_0xb97f5d(-_0x1b211b._0x761c58,0xd,-0x160,0x180)]()['length']===0x0)throw new ToolExecutionError(_0x54e8f3(_0x1b211b._0x1cf92b,_0x1b211b._0x5ee441,0x29a,0x395),{});const _0x8dc82=resolveAllowedPath(_0x5dc317,_0x4e1b9a,_0x288130[_0xb97f5d(0x199,_0x1b211b._0x37ee7b,0x13a,_0x1b211b._0xea5833)]??'.'),_0x362fe4=await _0x3f4317(_0x8dc82)[_0xb97f5d(_0x1b211b._0xc436a,_0x1b211b._0x2229ae,0x2d9,_0x1b211b._0x1f66b0)](()=>null);if(!_0x362fe4?.[_0xb97f5d(0x52,0x1b,0x16,_0x1b211b._0x5069f4)]())throw new ToolExecutionError(_0xb97f5d(_0x1b211b._0x349bad,_0x1b211b._0x4a0cae,_0x1b211b._0x1043ed,0x126)+(_0x288130['path']??'.'),{'path':_0x288130[_0x54e8f3(0x3d9,0x43c,_0x1b211b._0x4588ee,_0x1b211b._0xf8920f)]??'.'});function _0x54e8f3(_0x32aac1,_0x14ed16,_0x4a0953,_0xea2a3e){return _0x2c3bb6(_0x32aac1-0xca,_0x32aac1- -0x383,_0x4a0953-0x145,_0x4a0953);}const _0x4ab850=_0x288130[_0xb97f5d(-_0x1b211b._0x7af6ad,_0x1b211b._0x5bc4c8,-0x137,0xfc)]??_0x41cc53,_0x2fa021=Math[_0x54e8f3(_0x1b211b._0x37857a,0x499,0x3ef,_0x1b211b._0x2b636f)](0x1,Math[_0xb97f5d(_0x1b211b._0x843ccc,-0x37,0xf3,0x75)](_0x4ab850)),_0x1ec95a=[];let _0x365854=![];for await(const _0x1421ae of files({'cwd':_0x8dc82,'glob':[_0x288130['pattern']]})){if(_0x1ec95a[_0x54e8f3(_0x1b211b._0x37ef02,0x3c2,0x50d,_0x1b211b._0x4ee735)]>=_0x2fa021){_0x365854=!![];break;}const _0x49cb9a=await _0x3f4317(_0x50f29a[_0xb97f5d(_0x1b211b._0x5d2925,_0x1b211b._0x55388f,0x26d,0x152)](_0x8dc82,_0x1421ae))[_0x54e8f3(_0x1b211b._0x3fc994,_0x1b211b._0x29b9b1,_0x1b211b._0x52fbfe,_0x1b211b._0x3d3b02)](()=>null);_0x1ec95a['push']({'path':_0x1421ae,'mtime':_0x49cb9a?.['mtimeMs']??0x0});}_0x1ec95a[_0xb97f5d(0x303,_0x1b211b._0x2bcbe5,0x1c6,_0x1b211b._0x42c2e1)]((_0x38fe95,_0x16f809)=>_0x16f809[_0xb97f5d(-0x100,0x6e,0xfa,-0x57)]-_0x38fe95[_0xb97f5d(-0xdb,0x6e,-0xfe,0x52)]);const _0x17957d=_0x1ec95a[_0x54e8f3(_0x1b211b._0x3845f7,0x1c1,0x27a,_0x1b211b._0x4ee9c0)](_0x601d38=>_0x601d38[_0x54e8f3(0x3d9,0x495,0x500,0x4d8)]);function _0xb97f5d(_0x26b8fa,_0x3a1f31,_0x3e61d1,_0x45e884){return _0x2c3bb6(_0x26b8fa-0x16,_0x3a1f31- -_0x22b30d._0x339d40,_0x3e61d1-0x19d,_0x3e61d1);}const _0x4bcb87=_0x17957d['length']===0x0?_0x54e8f3(0x4cd,0x3b5,_0x1b211b._0x31cc5d,_0x1b211b._0x53d568)+_0x288130['pattern']:''+_0x17957d[_0xb97f5d(0x19c,0x1d3,0x271,0xa9)]('\x0a')+(_0x365854?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');return yield createToolOutput(_0x4bcb87,{'pattern':_0x288130[_0x54e8f3(_0x1b211b._0x7d48d2,_0x1b211b._0x371fce,_0x1b211b._0x1a008c,0x59f)],'searchPath':_0x50f29a[_0x54e8f3(0x26f,_0x1b211b._0x362d4c,0x21d,_0x1b211b._0x174281)](_0x5dc317,_0x8dc82)||'.','matches':_0x17957d,'count':_0x17957d[_0xb97f5d(-0x9,_0x1b211b._0x170cae,0x1fa,0x282)],'truncated':_0x365854}),void 0x0;}});}import{stat as _0xee18ac}from'fs/promises';import*as _0x1fb0f8 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x789327={}){const _0x4c3fa3={_0x223411:0xa9,_0x1d8142:0x17,_0x882ebd:0xbd,_0x503756:0x60,_0x30cead:0xa,_0x4f8111:0x313,_0xe4490:0x1a1,_0x2542f9:0x78,_0x27985b:0x1f1,_0xa0beb:0x46,_0x3039ab:0x1c,_0x5ad6f5:0xc4,_0x3a162f:0xef,_0x23401c:0x16c,_0x3e368a:0xef,_0x689957:0x5f,_0x467e61:0x3f},_0x5b328c={_0x50f1f4:0x71e,_0x1c781b:0x787,_0x2768bd:0x67b,_0x1662b5:0x6cf,_0x2ce569:0x3,_0x1f8bd1:0xc,_0x15f773:0x30,_0x2bade9:0x32,_0x536e5f:0x767,_0x65ef5d:0x24b,_0x595d9f:0x10b,_0x15dcae:0x51,_0x47aae1:0xe6,_0x4c872b:0x584,_0x256f18:0x53d,_0x522e9b:0x6f4,_0x2b6a9f:0x7e0,_0x1251fa:0x6a3,_0xcbecb0:0x60d,_0x3067c5:0x6b2,_0xc88924:0x253,_0x263fe6:0x104,_0x40584c:0x69,_0x2dea37:0x2,_0x47e6c1:0x6d6,_0x898a38:0xa2,_0x410255:0x1d1,_0x34bdbe:0x766,_0x5338af:0x8ae,_0x38a282:0x898,_0x100f6c:0x897,_0x46abbc:0x7a5,_0x4de3fa:0x904,_0x3b9ea6:0xee,_0x42e1f1:0x260,_0x276743:0x4c,_0x43fdf0:0x2b,_0x5a6f33:0x114,_0x2ea777:0x6d,_0x171b1e:0x587,_0x34fa9e:0x6d8,_0x479026:0x6aa,_0x82bc86:0x5e4,_0x1a5eba:0x598,_0x669e59:0x77,_0x358b60:0x1b6,_0x4f8077:0x6fe,_0x2e4b5d:0x7c6,_0x55bc46:0x724,_0x4adcb0:0x4d7,_0x273317:0x448,_0x5767bb:0x5a2,_0x370bd2:0x5cd,_0x432023:0x599,_0x476423:0x201,_0x36ce82:0x196,_0x4488a3:0x24,_0x1bc5b2:0x4b,_0x437395:0x13c,_0x36bb83:0x5a,_0x5587bc:0x128,_0x5b082a:0xa7,_0x1d8a1d:0x52,_0x57c658:0x16f,_0x28ab7e:0x106,_0x141221:0x14,_0x4c950c:0x5a,_0x2a9ab3:0x20,_0x81a9c9:0x82,_0xb8caf4:0x20a,_0x4643ef:0x2e8,_0xe81a3e:0x654,_0x30b08f:0x6ee,_0x50dc90:0x5a9,_0x2f4e1e:0x712,_0x206093:0x1cc,_0x2f2e3e:0x158,_0x37cfb0:0x75,_0x3f239f:0x4e,_0x82c01c:0x3c,_0x46ff74:0x8d,_0x48443d:0x1bd,_0x509dbc:0xe8,_0x2c1504:0x1a5,_0xd9748d:0xc1},_0xabbe97={_0x92867d:0x37b};function _0x4ca250(_0x50f94a,_0xbae9c,_0x4af517,_0x354e84){return _0x1932a3(_0x4af517,_0xbae9c-0x196,_0xbae9c- -_0xabbe97._0x92867d,_0x354e84-0x1f2);}const _0x57f4d5=_0x1fb0f8[_0x4ca250(_0x4c3fa3._0x223411,_0x4c3fa3._0x1d8142,_0x4c3fa3._0x882ebd,_0x4c3fa3._0x503756)](_0x789327[_0x4ca250(0x13,-0xc6,-0x78,-_0x4c3fa3._0x30cead)]??process['cwd']()),_0x4c71d4=_0x789327[_0x4ca250(_0x4c3fa3._0x4f8111,_0x4c3fa3._0xe4490,_0x4c3fa3._0x2542f9,_0x4c3fa3._0x27985b)]??[];function _0x3ddb2d(_0xe5085b,_0x2db19a,_0x142e21,_0x5a4849){return _0x4ab00a(_0xe5085b-0x8a,_0x2db19a-0x135,_0x2db19a,_0xe5085b- -0x3fa);}const _0x3cad51=_0x789327[_0x3ddb2d(_0x4c3fa3._0xa0beb,0x14e,-0x102,_0x4c3fa3._0x3039ab)]??0x64,_0x58ffee=_0x789327['name']??_0x4ca250(0xe1,0x13a,_0x4c3fa3._0x5ad6f5,0x1c9);return defineTool({'name':_0x58ffee,'description':'Search\x20for\x20a\x20regex\x20pattern\x20in\x20workspace\x20or\x20allowed\x20directory\x20file\x20contents.','inputSchema':{'type':'object','properties':{'pattern':{'type':_0x3ddb2d(_0x4c3fa3._0x3a162f,_0x4c3fa3._0x23401c,-0x3f,_0x4c3fa3._0x30cead)},'path':{'type':_0x3ddb2d(_0x4c3fa3._0x3e368a,_0x4c3fa3._0x689957,0x1a5,-0x59)},'include':{'type':_0x4ca250(-_0x4c3fa3._0x467e61,0x77,0x165,-0x2c)},'limit':{'type':'number'},'context':{'type':'number'}},'required':['pattern']},async *'execute'(_0x14994c){const _0x3c5feb={_0x300917:0x1c5},_0x498ec7={_0x3808ae:0x16a,_0x3bba76:0xd2};if(_0x14994c[_0x2bd67e(_0x5b328c._0x50f1f4,_0x5b328c._0x1c781b,_0x5b328c._0x2768bd,_0x5b328c._0x1662b5)][_0x1bef2d(-0x11b,-0x119,-_0x5b328c._0x2ce569,-0x198)]()[_0x1bef2d(0xbc,-_0x5b328c._0x1f8bd1,0x44,-_0x5b328c._0x15f773)]===0x0)throw new ToolExecutionError(_0x1bef2d(_0x5b328c._0x2bade9,-0x4a,-0x12b,-0x19),{});const _0x36eb30=resolveAllowedPath(_0x57f4d5,_0x4c71d4,_0x14994c['path']??'.'),_0x2f6e59=await _0xee18ac(_0x36eb30)[_0x2bd67e(0x77f,0x82a,_0x5b328c._0x536e5f,0x65e)](()=>null),_0xbfa1ae=_0x2f6e59?.['isFile']()??![],_0x3427cb=_0x2f6e59?.[_0x1bef2d(-_0x5b328c._0x65ef5d,-_0x5b328c._0x595d9f,-_0x5b328c._0x15dcae,-_0x5b328c._0x47aae1)]()??![];function _0x1bef2d(_0x4a2010,_0x20c420,_0x115cb8,_0xcf186b){return _0x4ca250(_0x4a2010-_0x498ec7._0x3808ae,_0x20c420- -_0x498ec7._0x3bba76,_0x4a2010,_0xcf186b-0x50);}if(!_0xbfa1ae&&!_0x3427cb)throw new ToolExecutionError(_0x2bd67e(_0x5b328c._0x4c872b,_0x5b328c._0x256f18,0x5e2,0x65c)+(_0x14994c[_0x2bd67e(0x6a3,0x7c8,_0x5b328c._0x522e9b,_0x5b328c._0x2b6a9f)]??'.'),{'path':_0x14994c[_0x2bd67e(_0x5b328c._0x1251fa,_0x5b328c._0xcbecb0,0x5dd,_0x5b328c._0x3067c5)]??'.'});const _0x3fdc0f=_0x14994c[_0x1bef2d(-_0x5b328c._0xc88924,-_0x5b328c._0x263fe6,-0xbb,_0x5b328c._0x40584c)]??_0x3cad51;function _0x2bd67e(_0x314ba0,_0x1adc0c,_0x1adb17,_0x220284){return _0x3ddb2d(_0x314ba0-0x547,_0x1adb17,_0x1adb17-0x2d,_0x220284-_0x3c5feb._0x300917);}const _0x4ea2f6=Math[_0x1bef2d(0xf8,_0x5b328c._0x2dea37,0x96,0xf5)](0x1,Math['trunc'](_0x3fdc0f)),_0x1a5d96=await search({'cwd':_0x3427cb?_0x36eb30:_0x1fb0f8['dirname'](_0x36eb30),'pattern':_0x14994c[_0x2bd67e(0x71e,0x5b7,_0x5b328c._0x47e6c1,0x7b3)],'glob':_0x3427cb?_0x14994c[_0x1bef2d(-_0x5b328c._0x898a38,0xc1,0x9e,_0x5b328c._0x410255)]:void 0x0,'limit':_0x4ea2f6,'file':_0xbfa1ae?_0x36eb30:void 0x0,'context':_0x14994c[_0x2bd67e(_0x5b328c._0x34bdbe,0x8c5,0x63e,_0x5b328c._0x5338af)]}),_0x2af526=new Map();for(const _0x359a60 of _0x1a5d96){if(!_0x2af526['has'](_0x359a60[_0x2bd67e(0x7a5,_0x5b328c._0x38a282,0x770,_0x5b328c._0x100f6c)])){const _0x3c607d=await _0xee18ac(_0x359a60[_0x2bd67e(_0x5b328c._0x46abbc,_0x5b328c._0x4de3fa,0x678,0x907)])[_0x1bef2d(-0x5b,_0x5b328c._0x3b9ea6,_0x5b328c._0x42e1f1,-_0x5b328c._0x276743)](()=>null);_0x2af526['set'](_0x359a60[_0x1bef2d(0xc9,0x114,0x14e,0x141)],{'matches':[],'mtime':_0x3c607d?.['mtimeMs']??0x0});}_0x2af526['get'](_0x359a60[_0x1bef2d(_0x5b328c._0x43fdf0,_0x5b328c._0x5a6f33,0x22b,_0x5b328c._0x2ea777)])?.[_0x2bd67e(0x639,0x5c3,0x609,_0x5b328c._0x171b1e)][_0x2bd67e(_0x5b328c._0x34fa9e,_0x5b328c._0x479026,_0x5b328c._0x82bc86,_0x5b328c._0x1a5eba)](_0x359a60);}const _0xa8e64a=[..._0x2af526[_0x1bef2d(-0x3a,_0x5b328c._0x669e59,-0xe7,_0x5b328c._0x358b60)]()][_0x2bd67e(_0x5b328c._0x4f8077,0x614,_0x5b328c._0x2e4b5d,_0x5b328c._0x55bc46)]((_0x81ea4,_0x37edf9)=>_0x37edf9[0x1][_0x1bef2d(-0x21f,-0xb8,-0x63,-0xf6)]-_0x81ea4[0x1][_0x2bd67e(0x5d9,0x4f7,0x4f7,0x722)]),_0x3799ca=_0x1a5d96['filter'](_0x40132a=>!_0x40132a[_0x1bef2d(-0x19a,-0x97,0x95,0xb4)])['length'],_0x483678=_0x1a5d96[_0x1bef2d(0xc1,-0xc,-0xc8,-0x173)]>=_0x4ea2f6,_0x3fa61a=_0xbfa1ae?_0x1fb0f8[_0x2bd67e(_0x5b328c._0x4adcb0,0x548,_0x5b328c._0x273317,_0x5b328c._0x5767bb)](_0x36eb30):_0x36eb30;let _0xb38384='';if(_0x1a5d96['length']===0x0)_0xb38384=_0x2bd67e(_0x5b328c._0x370bd2,_0x5b328c._0x432023,0x595,0x645)+_0x14994c[_0x1bef2d(_0x5b328c._0x476423,0x8d,_0x5b328c._0x36ce82,-0xa7)];else{_0xb38384=_0x1bef2d(-_0x5b328c._0x4488a3,-_0x5b328c._0x1bc5b2,-0x72,-0x119)+_0x3799ca+'\x20match'+(_0x3799ca===0x1?'':'es')+'\x0a';for(const [_0x50eea7,_0x3713b1]of _0xa8e64a){const _0xfe4c27=_0xbfa1ae?_0x1fb0f8['basename'](_0x50eea7):_0x1fb0f8[_0x1bef2d(-_0x5b328c._0x437395,-0x158,-0x58,-0x14e)](_0x3fa61a,_0x50eea7);_0xb38384+='\x0a'+_0xfe4c27+':\x0a';for(const _0x15a9c7 of _0x3713b1[_0x1bef2d(_0x5b328c._0x36bb83,-0x58,-0xea,-0xd3)]){const _0x4a4159=_0x15a9c7['lineText'][_0x1bef2d(-0x67,-0xc,-_0x5b328c._0x5587bc,-_0x5b328c._0x5b082a)]>MAX_LINE_LENGTH?_0x15a9c7[_0x1bef2d(-_0x5b328c._0x1d8a1d,-_0x5b328c._0x57c658,-_0x5b328c._0x28ab7e,-_0x5b328c._0x141221)][_0x1bef2d(-0x178,-_0x5b328c._0x4c950c,-_0x5b328c._0x2a9ab3,-_0x5b328c._0x81a9c9)](0x0,MAX_LINE_LENGTH)+'...':_0x15a9c7[_0x1bef2d(-_0x5b328c._0xb8caf4,-0x16f,-0x1f0,-_0x5b328c._0x4643ef)],_0x3a9005=_0x15a9c7['isContext']?'\x20\x20':'>\x20';_0xb38384+=_0x3a9005+_0x2bd67e(_0x5b328c._0xe81a3e,_0x5b328c._0x30b08f,0x5f1,_0x5b328c._0x50dc90)+_0x15a9c7[_0x2bd67e(_0x5b328c._0x2f4e1e,_0x5b328c._0x34fa9e,0x5d9,0x6e8)]+':\x20'+_0x4a4159+'\x0a';}}_0x483678&&(_0xb38384+=_0x1bef2d(-0x1e2,-_0x5b328c._0x206093,-0x206,-0x22f));}const _0x1318fc={'searchPath':_0x1fb0f8[_0x1bef2d(-0x295,-_0x5b328c._0x2f2e3e,-_0x5b328c._0x37cfb0,-_0x5b328c._0x3f239f)](_0x57f4d5,_0x36eb30)||'.','pattern':_0x14994c[_0x1bef2d(-_0x5b328c._0x82c01c,_0x5b328c._0x46ff74,_0x5b328c._0x48443d,-0xd9)],'matchCount':_0x3799ca,'fileCount':_0x2af526[_0x1bef2d(-0x14b,-0x188,-0x219,-_0x5b328c._0x509dbc)],'truncated':_0x483678};return _0x3427cb&&_0x14994c['include']!==void 0x0&&(_0x1318fc[_0x1bef2d(_0x5b328c._0x2c1504,_0x5b328c._0xd9748d,0x159,0x1de)]=_0x14994c['include']),yield createToolOutput(_0xb38384['trim'](),_0x1318fc),void 0x0;}});}function createKillShellTool(_0x1e2ddb){const _0x1544f6={_0x2334e9:0x113,_0x4f0271:0x153,_0x29889e:0x256,_0x53ed00:0x25e,_0x26ef62:0xdb,_0x18e06c:0x180},_0x3b14e8={_0x5bd412:0x1c0,_0x2d30ab:0x1a5,_0x2d0e3b:0x66,_0x1def41:0x6b,_0x45caf7:0x18c,_0x50a52d:0x16a,_0x23211c:0x208,_0x4ab09d:0x42,_0x5b4153:0x246,_0x5ca33a:0xa8,_0x2c6cdc:0x3a,_0x959d61:0x18a,_0x2e45a1:0x14c,_0x408955:0x1b2,_0x41e787:0x7c},_0x3d2140={_0x1d7b83:0x115,_0xbf6e6f:0x457,_0x2ceea1:0x1c9},{registry:_0x5dc3c8}=_0x1e2ddb;function _0x4de59f(_0x12bbd7,_0x9a790d,_0x52c055,_0x5d816e){return _0x1932a3(_0x9a790d,_0x9a790d-0x59,_0x5d816e- -0x28d,_0x5d816e-0x185);}function _0x1f0b05(_0x269e71,_0x15f043,_0x28c68d,_0x1dd492){return _0x1932a3(_0x269e71,_0x15f043-_0x3d2140._0x1d7b83,_0x28c68d- -_0x3d2140._0xbf6e6f,_0x1dd492-_0x3d2140._0x2ceea1);}return defineTool({'name':'KillShell','description':'Terminate\x20a\x20background\x20process\x20started\x20with\x20Bash(runInBackground:true),\x20identified\x20by\x20its\x20shellId.','inputSchema':{'type':_0x4de59f(_0x1544f6._0x2334e9,_0x1544f6._0x4f0271,_0x1544f6._0x29889e,_0x1544f6._0x53ed00),'properties':{'shellId':{'type':'string'}},'required':[_0x1f0b05(_0x1544f6._0x26ef62,-0xfd,0x5c,_0x1544f6._0x18e06c)]},async *'execute'(_0x2164dd){const _0x51f8c6={_0x509960:0xd3,_0x304de9:0x23},_0x2cc111={_0x874764:0x54,_0x5bfcf7:0x124},_0x50aa53=_0x5dc3c8[_0x52f42e(-_0x3b14e8._0x5bd412,-_0x3b14e8._0x2d30ab,-_0x3b14e8._0x2d0e3b,-0x76)](_0x2164dd[_0x52f42e(0x16b,-0x4a,0xed,0x102)]);function _0x52f42e(_0x117355,_0x38f57b,_0x193338,_0x6031ed){return _0x4de59f(_0x117355-_0x2cc111._0x874764,_0x38f57b,_0x193338-0x1e5,_0x6031ed- -_0x2cc111._0x5bfcf7);}function _0x1cd1b4(_0x442839,_0x29da53,_0x444dbb,_0x5a4783){return _0x4de59f(_0x442839-_0x51f8c6._0x509960,_0x5a4783,_0x444dbb-_0x51f8c6._0x304de9,_0x29da53- -0x9a);}return createToolOutput('Killed\x20'+_0x2164dd[_0x1cd1b4(_0x3b14e8._0x1def41,_0x3b14e8._0x45caf7,_0x3b14e8._0x50a52d,_0x3b14e8._0x23211c)]+'\x20(status:\x20'+_0x50aa53['status']+').',{'shellId':_0x2164dd[_0x1cd1b4(0x154,_0x3b14e8._0x45caf7,_0x3b14e8._0x4ab09d,_0x3b14e8._0x5b4153)],'status':_0x50aa53[_0x1cd1b4(0x32,-_0x3b14e8._0x5ca33a,-_0x3b14e8._0x2c6cdc,-0x88)],'exitCode':_0x50aa53[_0x52f42e(_0x3b14e8._0x959d61,_0x3b14e8._0x2e45a1,_0x3b14e8._0x408955,0xa3)],'signal':_0x50aa53[_0x52f42e(-_0x3b14e8._0x41e787,0x170,0x1d2,0x85)]});}});}import{readdir as _0x2a1ef3,readFile as _0x2a4846,stat as _0x129e05}from'fs/promises';import*as _0x164b63 from'path';import*as _0x2ac6f9 from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x33c88b,_0x1cd7e1){const _0x51f7cc={_0x19dda1:0x51f,_0x2dbc94:0x3a0,_0x2202ae:0x31f,_0x5b934f:0x422,_0x36b9ac:0x363},_0x4d2a70={_0x485059:0x3b},_0x46fa50={_0x138dd2:0x134};if(_0x1cd7e1>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x1e7e9a(_0x155027,_0x44f74e,_0x132c00,_0x4b2974){return _0x1932a3(_0x155027,_0x44f74e-_0x46fa50._0x138dd2,_0x44f74e-0x10c,_0x4b2974-0x1c9);}const _0x27c4da=await _0x2a4846(_0x33c88b)[_0x1e7e9a(0x546,0x647,_0x51f7cc._0x19dda1,0x69f)](()=>null);function _0x428c7f(_0x5c2655,_0x342753,_0x2a7771,_0x28a61c){return _0x4ab00a(_0x5c2655-_0x4d2a70._0x485059,_0x342753-0x160,_0x2a7771,_0x342753- -0x5a);}if(!_0x27c4da||isProbablyBinary(_0x27c4da))return void 0x0;return _0x27c4da[_0x428c7f(0x35e,_0x51f7cc._0x2dbc94,_0x51f7cc._0x2202ae,_0x51f7cc._0x5b934f)](_0x1e7e9a(0x3d7,0x4d8,_0x51f7cc._0x36b9ac,0x411))['split'](/\r?\n/)['length'];}function createLsTool(_0x577ee4={}){const _0x137b2b={_0x67df49:0x3a4,_0x8e4c0d:0x444,_0x584bc9:0x3fa,_0x91ae05:0x542,_0x373e11:0x535,_0x23c11b:0x53b,_0x1ac3e9:0x5b3,_0x12ee84:0x54f,_0x16d512:0x5ce,_0x214c4d:0x11,_0x365e4f:0x30,_0x25f38c:0x6d6,_0x145225:0x9b,_0x99be3e:0x7f,_0x4704b7:0xdc,_0x336fae:0x3a7,_0x5703aa:0x3cf},_0xe4abf6={_0x483228:0x7f6,_0x4cf433:0x657,_0x566ded:0x4e9,_0xcb1b40:0x531,_0x362a55:0x4ce,_0x3da364:0x74a,_0x553f61:0x674,_0x12d607:0x70a,_0x43db83:0x581,_0x51defd:0x492,_0x4f637a:0x6af,_0x1f6868:0x581,_0x2efd3d:0x79a,_0x265777:0x8c1,_0x3c8d7c:0x65a,_0x1f2690:0x675,_0x3c02e9:0x821,_0x332836:0x760,_0x4f3e52:0x5a2,_0x14f1ce:0x5ba,_0x35283c:0x684,_0x1a8897:0x51d,_0x39f1c1:0x3e4,_0x3166f9:0x49e,_0x348083:0x507,_0x530202:0x782,_0x4a59e8:0x5a3,_0x235e82:0x786,_0x583200:0x44c,_0x1f5c18:0x653,_0x22ad4b:0x4ca,_0x47e1d5:0x3c3,_0x2354d9:0x631,_0x14d88a:0x40b,_0x1dca98:0x721,_0x1d2eae:0x74c,_0x48db6d:0x6d6,_0x41311e:0x642,_0x3cc54a:0x8c3,_0x41edb1:0x776,_0x224cd1:0x6fd,_0x4c3534:0x60f,_0x38dc10:0x61d,_0x18cbbc:0x6e6,_0x1753ef:0x5fe,_0x2195ab:0x7dd,_0x12ce8d:0x548},_0x581fd4={_0x39314b:0x1b2},_0x52dcf5={_0x31d838:0xaf,_0x3a9ea6:0x30},_0x35e198={_0x550f5e:0x17e,_0x118e63:0x7f};function _0x2ee67e(_0x142b99,_0x3ff3cb,_0x1fe2de,_0x570ff8){return _0x4ab00a(_0x142b99-_0x35e198._0x550f5e,_0x3ff3cb-_0x35e198._0x118e63,_0x570ff8,_0x3ff3cb- -0x45);}const _0x27a8a0=_0x164b63[_0x2ee67e(_0x137b2b._0x67df49,_0x137b2b._0x8e4c0d,_0x137b2b._0x584bc9,_0x137b2b._0x91ae05)](_0x577ee4['defaultCwd']??process[_0x2ee67e(_0x137b2b._0x373e11,_0x137b2b._0x23c11b,_0x137b2b._0x1ac3e9,0x601)]()),_0x4aaf0b=_0x577ee4[_0x2ee67e(_0x137b2b._0x12ee84,_0x137b2b._0x16d512,0x6b3,0x64f)]??[];function _0x1c2ab2(_0x2a59c8,_0xba23e7,_0x9e2c49,_0x2b7d45){return _0x1932a3(_0xba23e7,_0xba23e7-_0x52dcf5._0x31d838,_0x9e2c49- -0x373,_0x2b7d45-_0x52dcf5._0x3a9ea6);}const _0x3a7002=_0x577ee4[_0x1c2ab2(0x65,0x19,-_0x137b2b._0x214c4d,_0x137b2b._0x365e4f)]??'Ls';return defineTool({'name':_0x3a7002,'description':_0x2ee67e(0x40f,0x56a,_0x137b2b._0x25f38c,0x422),'inputSchema':{'type':_0x1c2ab2(0xc5,_0x137b2b._0x145225,0x178,0x111),'properties':{'path':{'type':_0x1c2ab2(0x177,0x23,_0x137b2b._0x99be3e,-_0x137b2b._0x4704b7)},'limit':{'type':_0x2ee67e(_0x137b2b._0x336fae,0x3dc,_0x137b2b._0x5703aa,0x4e7)}}},async *'execute'(_0x37150c){const _0x356044={_0x340c17:0x70},_0x2ede57=_0x37150c[_0x5e6f29(_0xe4abf6._0x483228,_0xe4abf6._0x4cf433,0x71b,0x878)]??'.',_0x43d6fe=resolveAllowedPath(_0x27a8a0,_0x4aaf0b,_0x2ede57),_0x3b341b=await _0x129e05(_0x43d6fe)['catch'](()=>null);if(!_0x3b341b?.[_0x5e6f29(_0xe4abf6._0x566ded,_0xe4abf6._0xcb1b40,0x5fe,_0xe4abf6._0x362a55)]())throw new ToolExecutionError(_0x5b7320(0x763,0x6ef,_0xe4abf6._0x3da364,0x6d9)+_0x2ede57,{'path':_0x2ede57});function _0x5e6f29(_0x177468,_0x5c54b4,_0x421723,_0x2c3722){return _0x1c2ab2(_0x177468-_0x581fd4._0x39314b,_0x177468,_0x421723-0x62f,_0x2c3722-0xa3);}const _0x1a9405=_0x37150c['limit']??0x3e8,_0x4ec64a=Math[_0x5b7320(0x69f,0x612,_0xe4abf6._0x553f61,0x52b)](Math[_0x5b7320(0x582,_0xe4abf6._0x12d607,_0xe4abf6._0x43db83,0x691)](Math[_0x5e6f29(0x6ca,0x492,0x5ac,_0xe4abf6._0x51defd)](_0x1a9405),0x1),0x2710),_0x596a40=await _0x2a1ef3(_0x43d6fe);function _0x5b7320(_0x193ca2,_0x1e89ea,_0x4d3012,_0x4c1ae0){return _0x1c2ab2(_0x193ca2-0x3b,_0x1e89ea,_0x4c1ae0-0x5b5,_0x4c1ae0-_0x356044._0x340c17);}const _0xf0c27c=[];for(const _0x3e9e8c of _0x596a40[_0x5e6f29(0x816,0x803,_0xe4abf6._0x4f637a,_0xe4abf6._0x1f6868)](0x0,_0x4ec64a)){const _0x5af7ae=_0x164b63['join'](_0x43d6fe,_0x3e9e8c),_0x427e88=await _0x129e05(_0x5af7ae)[_0x5e6f29(_0xe4abf6._0x2efd3d,_0xe4abf6._0x265777,0x7f7,0x8ed)](()=>null);if(!_0x427e88)continue;let _0x4ff718=_0x5b7320(_0xe4abf6._0x3c8d7c,0x7ac,0x6a1,0x715);if(_0x427e88['isFile']())_0x4ff718='file';else{if(_0x427e88[_0x5e6f29(0x4b2,0x6e3,0x5fe,_0xe4abf6._0x1f2690)]())_0x4ff718='directory';else{if(_0x427e88[_0x5b7320(0x668,_0xe4abf6._0x3c02e9,0x883,_0xe4abf6._0x332836)]())_0x4ff718=_0x5e6f29(_0xe4abf6._0x4f3e52,0x72b,_0xe4abf6._0x14f1ce,_0xe4abf6._0x35283c);}}const _0x4695f3={'name':_0x3e9e8c,'type':_0x4ff718,'size':_0x427e88[_0x5b7320(_0xe4abf6._0x1a8897,_0xe4abf6._0x39f1c1,_0xe4abf6._0x3166f9,_0xe4abf6._0x348083)],'mtime':_0x427e88[_0x5b7320(_0xe4abf6._0x530202,_0xe4abf6._0x4a59e8,_0xe4abf6._0x235e82,0x6c5)],'mode':_0x427e88[_0x5b7320(_0xe4abf6._0x583200,0x682,_0xe4abf6._0x1f5c18,0x597)]},_0x5cdd58=_0x4ff718===_0x5b7320(_0xe4abf6._0x22ad4b,_0xe4abf6._0x47e1d5,_0xe4abf6._0x2354d9,0x4d6)?await countTextLines(_0x5af7ae,_0x427e88['size']):void 0x0;if(_0x5cdd58!==void 0x0)_0x4695f3[_0x5b7320(0x4c9,0x5c5,_0xe4abf6._0x14d88a,0x4e8)]=_0x5cdd58;_0xf0c27c[_0x5b7320(_0xe4abf6._0x1dca98,_0xe4abf6._0x1d2eae,0x7e2,_0xe4abf6._0x48db6d)](_0x4695f3);}_0xf0c27c[_0x5e6f29(_0xe4abf6._0x41311e,_0xe4abf6._0x3cc54a,_0xe4abf6._0x41edb1,0x862)]((_0x5c5879,_0x2a2a6a)=>_0x5c5879[_0x5b7320(0x564,0x4f5,0x6f9,0x5a4)]['localeCompare'](_0x2a2a6a[_0x5e6f29(0x518,0x6c6,0x61e,0x563)]));const _0x26d410={'path':_0x2ede57,'total':_0xf0c27c['length'],'truncated':_0x596a40[_0x5e6f29(0x584,0x5d7,_0xe4abf6._0x224cd1,_0xe4abf6._0x4c3534)]>_0x4ec64a,'entries':_0xf0c27c};return yield createToolOutput(_0x2ac6f9[_0x5e6f29(0x52c,0x6ff,_0xe4abf6._0x38dc10,_0xe4abf6._0x18cbbc)](_0x26d410,{'indent':0x2,'lineWidth':0x0})[_0x5b7320(0x513,_0xe4abf6._0x1753ef,0x5f1,0x55e)](),{'path':_0x2ede57,'total':_0xf0c27c['length'],'truncated':_0x596a40[_0x5b7320(_0xe4abf6._0x2195ab,0x607,_0xe4abf6._0x12ce8d,0x683)]>_0x4ec64a,'limit':_0x4ec64a,'entries':_0xf0c27c}),void 0x0;}});}import{stat as _0x263bc4}from'fs/promises';import _0x9640f0 from'path';import{fileURLToPath as _0x15763c}from'url';function severityName(_0x5654d4){const _0x2c0b19={_0x1abd96:0x61d,_0x5ab03d:0x670,_0x389365:0x213,_0x41918c:0x1d0,_0x3277e2:0x66e,_0x315c7a:0x524},_0x560c87={_0x2ee9af:0x16d,_0x2cc256:0x102},_0x2f53d7={_0x43d996:0x1a1,_0x171f83:0x260,_0x1befbf:0x19b};function _0xb6b95(_0x1461f4,_0x597c67,_0x31b8a2,_0x394f6f){return _0x1932a3(_0x394f6f,_0x597c67-_0x2f53d7._0x43d996,_0x597c67- -_0x2f53d7._0x171f83,_0x394f6f-_0x2f53d7._0x1befbf);}function _0x2404d5(_0xe83e96,_0x110de0,_0x591acb,_0x5c47f1){return _0x4ab00a(_0xe83e96-_0x560c87._0x2ee9af,_0x110de0-0x9f,_0x110de0,_0x591acb-_0x560c87._0x2cc256);}switch(_0x5654d4){case 0x1:return _0xb6b95(0x142,0x15b,0x1e9,0xd7);case 0x2:return _0x2404d5(0x703,_0x2c0b19._0x1abd96,_0x2c0b19._0x5ab03d,0x693);case 0x3:return _0xb6b95(_0x2c0b19._0x389365,_0x2c0b19._0x41918c,0x316,0x133);case 0x4:return _0x2404d5(0x7a7,_0x2c0b19._0x3277e2,0x675,_0x2c0b19._0x315c7a);default:return _0xb6b95(0x13a,0x74,0x36,0x140);}}function formatSingleHover(_0x27dda9){const _0x31e4e1={_0x5d2894:0x4bb,_0x454326:0x2d4,_0x179a72:0x3e6,_0x14c398:0x40f,_0x4f36dd:0x426,_0x5f08d9:0x321,_0x2bac23:0x442,_0xf1fadc:0x460,_0x4dcdf3:0x417,_0x4a68b1:0x4b5,_0x2ee014:0x3d6,_0x3899cf:0x317,_0x36e3fd:0x696,_0x2e0121:0x5d7,_0x4a7dba:0x550,_0x4db4a2:0x4bf,_0x35ebdf:0x4fc,_0x42cec0:0x569,_0x15b745:0x50d,_0x50521a:0x4f1,_0x52cbf2:0x582,_0xc9dda6:0x656,_0x2751ed:0x5b8,_0x5b2ed5:0x6c3},_0x38c15b={_0x211845:0x6d},_0x439528=_0x27dda9['contents'];function _0x311181(_0xe173ec,_0x36f968,_0x20baca,_0x5c2ac5){return _0x1932a3(_0x20baca,_0x36f968-0x154,_0xe173ec-0x45,_0x5c2ac5-_0x38c15b._0x211845);}function _0x415b36(_0x1c43b6,_0x4128c2,_0x44a391,_0x481ef1){return _0x1932a3(_0x1c43b6,_0x4128c2-0x75,_0x4128c2-0x9a,_0x481ef1-0x22);}if(typeof _0x439528===_0x311181(0x437,0x468,_0x31e4e1._0x5d2894,_0x31e4e1._0x454326))return _0x439528;if(Array[_0x415b36(_0x31e4e1._0x179a72,_0x31e4e1._0x14c398,0x2bf,_0x31e4e1._0x4f36dd)](_0x439528))return _0x439528[_0x311181(0x394,_0x31e4e1._0x5f08d9,0x264,_0x31e4e1._0x2bac23)](_0x50c752=>typeof _0x50c752===_0x415b36(0x573,0x48c,0x412,0x322)?_0x50c752:_0x50c752[_0x415b36(0x4c0,0x5d7,0x522,0x598)])[_0x311181(0x589,_0x31e4e1._0xf1fadc,0x491,0x63f)](Boolean)[_0x311181(0x53f,0x4b4,_0x31e4e1._0x4dcdf3,_0x31e4e1._0x4a68b1)]('\x0a\x0a');if(_0x311181(_0x31e4e1._0x2ee014,_0x31e4e1._0x3899cf,0x489,0x2a2)in _0x439528)return _0x439528[_0x415b36(_0x31e4e1._0x36e3fd,_0x31e4e1._0x2e0121,0x59a,0x4b3)];return _0x439528['language']?_0x415b36(_0x31e4e1._0x4a7dba,0x55b,_0x31e4e1._0x4db4a2,_0x31e4e1._0x35ebdf)+_0x439528['language']+'\x0a'+_0x439528['value']+_0x415b36(0x5f2,_0x31e4e1._0x42cec0,_0x31e4e1._0x15b745,_0x31e4e1._0x50521a):_0x439528[_0x311181(_0x31e4e1._0x52cbf2,_0x31e4e1._0xc9dda6,_0x31e4e1._0x2751ed,_0x31e4e1._0x5b2ed5)];}function formatHover(_0x1588b5){const _0x1623ac={_0x349868:0x462,_0x1d9ca7:0x38e,_0x2e60ed:0x426,_0x514187:0x1e8,_0x2de45e:0x28f,_0x2368d2:0xda,_0x4ebcb9:0x199},_0x3ea911={_0x58deb4:0x1ca},_0xff5cba={_0x13dd49:0x29};function _0x24060b(_0x23e8d7,_0x198af2,_0x59c790,_0x3289fe){return _0x1932a3(_0x198af2,_0x198af2-0x68,_0x3289fe- -0x13c,_0x3289fe-_0xff5cba._0x13dd49);}if(_0x1588b5['length']===0x0)return _0x1c4f46(0x51c,_0x1623ac._0x349868,_0x1623ac._0x1d9ca7,_0x1623ac._0x2e60ed);function _0x1c4f46(_0x123f18,_0x23a2ac,_0x37c0da,_0x55e38b){return _0x1932a3(_0x55e38b,_0x23a2ac-0x1dc,_0x23a2ac-0x79,_0x55e38b-_0x3ea911._0x58deb4);}return _0x1588b5[_0x24060b(_0x1623ac._0x514187,_0x1623ac._0x2de45e,_0x1623ac._0x2368d2,0x213)](formatSingleHover)['join'](_0x24060b(0x19c,_0x1623ac._0x4ebcb9,0x34d,0x203));}function locationPath(_0x287fa1){const _0x3497cc={_0x10ff2e:0x3da,_0x1472f3:0x3ae,_0xba8e:0x51f},_0x3b374f={_0x85ebfe:0x27,_0x2c5610:0xc7};if(!_0x287fa1['startsWith'](_0x1b3f40(0x34b,_0x3497cc._0x10ff2e,_0x3497cc._0x1472f3,_0x3497cc._0xba8e)))return _0x287fa1;function _0x1b3f40(_0x360dd3,_0x332b2c,_0xd9861a,_0x875e67){return _0x1932a3(_0x360dd3,_0x332b2c-_0x3b374f._0x85ebfe,_0xd9861a- -_0x3b374f._0x2c5610,_0x875e67-0x185);}return _0x15763c(_0x287fa1);}function formatLocations(_0x388a17){const _0x1d5a84={_0x560e27:0x4c8,_0x238e83:0x1b2,_0x276419:0x35f,_0x310986:0x3da,_0xd0dcb8:0x43c},_0x1d94ba={_0x51ab55:0x18,_0x3a6d60:0x9a,_0x2594ff:0x57,_0x559134:0x616,_0x33848a:0x6a1,_0x5e6534:0x78,_0x2586b9:0x153,_0x48ebd6:0x10c,_0x1caf33:0x119,_0x116f75:0xb,_0x58099e:0xd5,_0x524e41:0x1bb},_0x360992={_0x2a6095:0x5be,_0x43bc3f:0x18d},_0x43e3fd={_0x30808c:0x16e},_0x53e0dc={_0x2d6a0c:0x73,_0x4e4aae:0x168};function _0x4e270f(_0xd414ad,_0x78cc76,_0x621e0b,_0x486afd){return _0x1932a3(_0x486afd,_0x78cc76-_0x53e0dc._0x2d6a0c,_0x78cc76- -0x120,_0x486afd-_0x53e0dc._0x4e4aae);}if(_0x388a17['length']===0x0)return _0x4e270f(_0x1d5a84._0x560e27,0x3e7,0x42a,0x422);function _0x53a622(_0x29dc21,_0x1ba162,_0x4b37bd,_0x4ea056){return _0x4ab00a(_0x29dc21-_0x43e3fd._0x30808c,_0x1ba162-0x180,_0x4ea056,_0x29dc21-0x29);}return _0x388a17[_0x4e270f(_0x1d5a84._0x238e83,0x22f,0x166,0x157)](_0x32bb08=>{const _0x1d6af8={_0x2a056c:0xab,_0x2184e9:0x156};function _0x2a0170(_0x46e425,_0x4298e1,_0x51596d,_0x36efed){return _0x53a622(_0x4298e1-_0x1d6af8._0x2a056c,_0x4298e1-_0x1d6af8._0x2184e9,_0x51596d-0x8c,_0x51596d);}const _0x630663=_0x32bb08[_0x5bb7cc(-0x136,_0x1d94ba._0x51ab55,-_0x1d94ba._0x3a6d60,-_0x1d94ba._0x2594ff)][_0x2a0170(0x4a1,_0x1d94ba._0x559134,_0x1d94ba._0x33848a,0x51c)];function _0x5bb7cc(_0x31e46c,_0x4788c7,_0x2b77b3,_0x5bab26){return _0x53a622(_0x4788c7- -_0x360992._0x2a6095,_0x4788c7-0xd9,_0x2b77b3-_0x360992._0x43bc3f,_0x2b77b3);}return locationPath(_0x32bb08[_0x5bb7cc(0xdb,-_0x1d94ba._0x5e6534,-_0x1d94ba._0x2586b9,0x60)])+':'+(_0x630663[_0x5bb7cc(_0x1d94ba._0x48ebd6,0x4e,_0x1d94ba._0x1caf33,_0x1d94ba._0x116f75)]+0x1)+':'+(_0x630663[_0x5bb7cc(-0x1ba,-_0x1d94ba._0x58099e,-_0x1d94ba._0x524e41,-0x1a9)]+0x1);})[_0x4e270f(_0x1d5a84._0x276419,_0x1d5a84._0x310986,_0x1d5a84._0xd0dcb8,0x2f8)]('\x0a');}function isDocumentSymbol(_0xad236){const _0xf1f3a8={_0x1b5d94:0x3c0,_0x136928:0x133,_0x56b7ec:0x1cd},_0x491b28={_0xfa3e5d:0x145},_0x328a98={_0x9c3c8b:0xc1,_0x3fb560:0x1ed};function _0x422ed1(_0x76d3d2,_0x3586d2,_0x4529a6,_0x286f29){return _0x4ab00a(_0x76d3d2-_0x328a98._0x9c3c8b,_0x3586d2-0x1b3,_0x286f29,_0x4529a6- -_0x328a98._0x3fb560);}function _0x507fda(_0x36aa9b,_0x1c047c,_0x55f102,_0x19470a){return _0x1932a3(_0x19470a,_0x1c047c-_0x491b28._0xfa3e5d,_0x55f102-0xf9,_0x19470a-0x11d);}return _0x422ed1(0x4ed,0x4eb,_0xf1f3a8._0x1b5d94,0x317)in _0xad236&&_0x422ed1(0x2bb,_0xf1f3a8._0x136928,_0xf1f3a8._0x56b7ec,0xfe)in _0xad236;}function formatSymbols(_0x69eea4){const _0x3b2dee={_0x549e9e:0x57a,_0x579c9a:0x4df,_0x244ccf:0x61d,_0x1e08e2:0x7cb,_0x268a99:0x6bc},_0xc39ef5={_0x92f837:0x27e,_0xaf4dbb:0x8e,_0x1270ff:0x13b,_0x5cb8f9:0x5a,_0x1924b4:0x19e,_0x546e73:0x3e,_0x128915:0x8c,_0x67aea2:0xf3,_0x32a13b:0x18d,_0x2d94c5:0x14a,_0x467f20:0x1f5,_0x2099be:0x2cc,_0x3f93c2:0x2fb,_0x3693f0:0x1ba,_0x31702f:0x2be,_0x29335e:0x1a3,_0xd91003:0x2a2,_0x58bc99:0x119,_0x1072d8:0x135,_0x68fce8:0x4f,_0x1f2678:0xaa,_0x5f218e:0x97,_0x2ab809:0x1ae,_0xb5e9d:0x45,_0x285d65:0x10c,_0x221de1:0x28,_0x2ed85b:0x19f,_0x3d79fa:0xd7,_0x30df7b:0x1d0,_0x726e61:0x172,_0x5416c9:0x27,_0x14469f:0x198,_0x509852:0x260,_0x37062e:0x14,_0x413e51:0xcb,_0x32cf1c:0x1ba,_0x2c021c:0xb6,_0x4d7c5b:0x284,_0x5809c4:0x50,_0x59b746:0x55,_0x59b596:0xfe,_0x468520:0x2cd,_0x2e910f:0x1ca},_0x397049={_0x5a4773:0x603},_0x56b683={_0x2cf5a5:0x527,_0x474298:0x19f,_0x178822:0xf},_0x2a988f={_0xe71340:0x1d9,_0x5542b3:0x1b3},_0x115907={_0x44da63:0x103,_0x59d4ab:0x2d1};function _0x5db8c5(_0x5c5ec9,_0x4d2802,_0x4ef5c3,_0x15d5c2){return _0x1932a3(_0x4ef5c3,_0x4d2802-_0x115907._0x44da63,_0x5c5ec9-_0x115907._0x59d4ab,_0x15d5c2-0xf7);}if(_0x69eea4['length']===0x0)return _0x5db8c5(_0x3b2dee._0x549e9e,_0x3b2dee._0x579c9a,0x5d2,_0x3b2dee._0x244ccf);function _0x2b86dc(_0x26cc94,_0x5bd881,_0x3818b2,_0x2354d0){return _0x1932a3(_0x26cc94,_0x5bd881-_0x2a988f._0xe71340,_0x5bd881- -_0x2a988f._0x5542b3,_0x2354d0-0x1ef);}return _0x69eea4['map'](_0x2bd629=>{function _0x54a409(_0x1f47ce,_0x22c939,_0x20c2ec,_0xac3f){return _0x5db8c5(_0x1f47ce- -_0x56b683._0x2cf5a5,_0x22c939-_0x56b683._0x474298,_0x22c939,_0xac3f-_0x56b683._0x178822);}function _0x3fc132(_0x43089d,_0x111a63,_0x5dd9a3,_0x313b85){return _0x5db8c5(_0x43089d- -_0x397049._0x5a4773,_0x111a63-0xae,_0x313b85,_0x313b85-0x21);}if(isDocumentSymbol(_0x2bd629))return _0x2bd629[_0x54a409(0x10c,_0xc39ef5._0x92f837,_0xc39ef5._0xaf4dbb,0x183)]+'\x20('+_0x2bd629[_0x54a409(_0xc39ef5._0x1270ff,0x37,_0xc39ef5._0x5cb8f9,_0xc39ef5._0x1924b4)]+_0x3fc132(_0xc39ef5._0x546e73,_0xc39ef5._0x128915,_0xc39ef5._0x1270ff,-_0xc39ef5._0x67aea2)+(_0x2bd629[_0x54a409(0x260,_0xc39ef5._0x32a13b,0x153,_0xc39ef5._0x2d94c5)][_0x54a409(_0xc39ef5._0x467f20,0x1ff,_0xc39ef5._0x2099be,_0xc39ef5._0x3f93c2)][_0x3fc132(_0xc39ef5._0x3693f0,0x96,_0xc39ef5._0x31702f,0x1d4)]+0x1)+':'+(_0x2bd629[_0x54a409(0x260,0x3bb,_0xc39ef5._0x29335e,_0xc39ef5._0xd91003)][_0x3fc132(_0xc39ef5._0x58bc99,_0xc39ef5._0x1072d8,-_0xc39ef5._0x68fce8,_0xc39ef5._0x1f2678)][_0x3fc132(_0xc39ef5._0x5f218e,_0xc39ef5._0x2ab809,0x81,_0xc39ef5._0xb5e9d)]+0x1)+']';return _0x2bd629[_0x54a409(_0xc39ef5._0x285d65,-_0xc39ef5._0x221de1,0x57,-0x11)]+'\x20('+_0x2bd629[_0x54a409(0x13b,_0xc39ef5._0x2ed85b,0x14f,0x14c)]+')\x20'+locationPath(_0x2bd629[_0x54a409(0x8c,_0xc39ef5._0x3d79fa,0x148,0x88)][_0x54a409(_0xc39ef5._0x30df7b,_0xc39ef5._0x726e61,0x251,0x280)])+':'+(_0x2bd629[_0x3fc132(-0x50,_0xc39ef5._0x5416c9,-0x13b,-_0xc39ef5._0x14469f)][_0x54a409(_0xc39ef5._0x509852,0x3a9,0x267,0x278)][_0x3fc132(0x119,_0xc39ef5._0x37062e,_0xc39ef5._0x413e51,0xa6)][_0x3fc132(_0xc39ef5._0x32cf1c,_0xc39ef5._0x3693f0,_0xc39ef5._0x2c021c,_0xc39ef5._0x4d7c5b)]+0x1)+':'+(_0x2bd629[_0x3fc132(-_0xc39ef5._0x5809c4,-0x15a,_0xc39ef5._0x59b746,-_0xc39ef5._0x59b596)][_0x54a409(0x260,_0xc39ef5._0x468520,0x1b0,_0xc39ef5._0x2e910f)]['start'][_0x54a409(0x173,0x50,0x172,0x156)]+0x1);})[_0x5db8c5(_0x3b2dee._0x1e08e2,0x6af,_0x3b2dee._0x268a99,0x6d4)]('\x0a');}function formatDiagnostics(_0x506817){const _0x496bac={_0x563988:0x617,_0x41ea42:0x6b8,_0x2111ee:0x5d6,_0x124e1a:0x62b,_0x5d7168:0x6c8,_0x17e573:0x7e1},_0x281075={_0x72ad21:0x681,_0x5b1ec0:0x655,_0x1201d3:0x65c,_0x11878c:0x6b7,_0x438730:0x54c,_0x32b2ea:0x42d,_0x718290:0x43f,_0x5a4c75:0x3b5},_0x2a0ca6={_0x3b5f37:0x18a,_0x5cb1cb:0xa0,_0x2f7a36:0x1f3},_0x2616d0={_0x951250:0x2a},_0x4723d2={_0x1d6258:0x2d},_0x373639={_0x40948a:0xc5,_0x496fa8:0x190};if(_0x506817[_0x110f29(_0x496bac._0x563988,0x545,0x3de,0x486)]===0x0)return'No\x20diagnostics';function _0x5af3b7(_0x13d602,_0x202cd9,_0x568416,_0x3e2368){return _0x4ab00a(_0x13d602-0xbe,_0x202cd9-_0x373639._0x40948a,_0x13d602,_0x568416-_0x373639._0x496fa8);}function _0x110f29(_0x6ba55d,_0x2726c1,_0x5d47cf,_0x2a9bde){return _0x4ab00a(_0x6ba55d-_0x4723d2._0x1d6258,_0x2726c1-0x1d1,_0x2a9bde,_0x2726c1-0xd);}return _0x506817[_0x5af3b7(_0x496bac._0x41ea42,0x4b4,_0x496bac._0x2111ee,_0x496bac._0x124e1a)](_0x2f0bf4=>{function _0x235b39(_0x1b6751,_0x55e30d,_0x4bbb6c,_0x4a0ea5){return _0x5af3b7(_0x4a0ea5,_0x55e30d-_0x2616d0._0x951250,_0x55e30d- -0xbc,_0x4a0ea5-0x7a);}const _0x4b91e6=_0x2f0bf4[_0x235b39(0x546,_0x281075._0x72ad21,0x6d5,0x647)][_0x235b39(0x5fe,0x616,0x698,_0x281075._0x5b1ec0)];function _0x129d46(_0x4db417,_0x1f931f,_0x25c643,_0x183a5b){return _0x110f29(_0x4db417-_0x2a0ca6._0x3b5f37,_0x183a5b- -_0x2a0ca6._0x5cb1cb,_0x25c643-_0x2a0ca6._0x2f7a36,_0x1f931f);}return severityName(_0x2f0bf4['severity'])+'\x20['+(_0x4b91e6[_0x235b39(_0x281075._0x1201d3,_0x281075._0x11878c,0x75f,0x59a)]+0x1)+':'+(_0x4b91e6[_0x129d46(_0x281075._0x438730,0x2f2,0x4c1,_0x281075._0x32b2ea)]+0x1)+']\x20'+_0x2f0bf4[_0x129d46(_0x281075._0x718290,0x2f5,0x391,_0x281075._0x5a4c75)];})[_0x5af3b7(_0x496bac._0x5d7168,0x72c,0x781,_0x496bac._0x17e573)]('\x0a');}function formatIncomingCalls(_0x386483){const _0x47a3e8={_0x245f19:0x784,_0x4654a4:0x8ad,_0x186664:0x615,_0x5453a5:0x653,_0x507850:0x706},_0x1cc572={_0x3de57e:0xbf,_0x516ed9:0x13d},_0x391b4e={_0x197d2a:0x151,_0xe5a739:0x5b};if(_0x386483[_0x41880d(0x707,0x73a,0x871,0x7e6)]===0x0)return _0x41880d(_0x47a3e8._0x245f19,0x734,0x8e8,_0x47a3e8._0x4654a4);function _0x41880d(_0x52a19c,_0x115505,_0x3eb69a,_0x36feea){return _0x1932a3(_0x36feea,_0x115505-_0x391b4e._0x197d2a,_0x52a19c-0x2c6,_0x36feea-_0x391b4e._0xe5a739);}function _0x3ab235(_0x3c5dc9,_0x4ab3c6,_0x5711ee,_0x36162c){return _0x1932a3(_0x5711ee,_0x4ab3c6-_0x1cc572._0x3de57e,_0x3c5dc9- -_0x1cc572._0x516ed9,_0x36162c-0xb9);}return _0x386483[_0x41880d(_0x47a3e8._0x186664,_0x47a3e8._0x5453a5,0x65f,_0x47a3e8._0x507850)](_0x338ab8=>_0x338ab8[_0x3ab235(0x14b,0x9f,0x1c,0x2af)]['name'])['join']('\x0a');}function formatOutgoingCalls(_0x52d95c){const _0x164585={_0x1e7336:0x5,_0x1c2641:0x189,_0x35bdf3:0x71,_0xffbba2:0x36,_0x39b684:0x252,_0x1cefa8:0x175},_0x29ffba={_0x36a3ed:0x32},_0x991d09={_0x121d63:0x1db};if(_0x52d95c[_0x4e47a5(0x77,_0x164585._0x1e7336,0x59,0xbc)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x4e47a5(_0x397b63,_0x12a325,_0x17fd0b,_0x18e5bd){return _0x4ab00a(_0x397b63-_0x991d09._0x121d63,_0x12a325-0x167,_0x397b63,_0x18e5bd- -0x47c);}function _0x5ebefb(_0x3e4555,_0x4739be,_0x54a3d7,_0x419031){return _0x1932a3(_0x4739be,_0x4739be-0xcd,_0x419031- -0x48f,_0x419031-_0x29ffba._0x36a3ed);}return _0x52d95c[_0x4e47a5(-_0x164585._0x1c2641,-0x1e,-_0x164585._0x35bdf3,-_0x164585._0xffbba2)](_0x1159d7=>_0x1159d7['to'][_0x5ebefb(-0xbf,-0xf7,-0xf8,-0x12d)])[_0x4e47a5(0x171,0xe2,_0x164585._0x39b684,_0x164585._0x1cefa8)]('\x0a');}function toStructured(_0x16cc51){const _0x34216d={_0x37afee:0xbe,_0x323fb2:0xb0},_0x373ece={_0x488f37:0x2fe};function _0x204b28(_0x17ba35,_0x15c9b1,_0x5d6689,_0x34079b){return _0x1932a3(_0x17ba35,_0x15c9b1-0x5b,_0x34079b- -_0x373ece._0x488f37,_0x34079b-0xda);}return JSON['parse'](JSON[_0x204b28(0xae,_0x34216d._0x37afee,_0x34216d._0x323fb2,0x63)](_0x16cc51));}async function assertFile(_0x1ca3d7){const _0x7d75b5={_0x7ca18:0x369,_0x59dc79:0x419},_0x1ef817={_0x1b152e:0x1de,_0x1f6820:0x76};function _0x58ac53(_0x83b252,_0x3da263,_0x5dd4a9,_0x21d281){return _0x1932a3(_0x21d281,_0x3da263-_0x1ef817._0x1b152e,_0x3da263-0x192,_0x21d281-_0x1ef817._0x1f6820);}const _0x353ce3=await _0x263bc4(_0x1ca3d7);if(!_0x353ce3['isFile']())throw new ToolExecutionError(_0x58ac53(0x5ab,0x433,_0x7d75b5._0x7ca18,_0x7d75b5._0x59dc79)+_0x1ca3d7,{'path':_0x1ca3d7});}function validatePosition(_0x4a8489,_0x46df44){const _0x196049={_0x243dbf:0x428,_0x2ce998:0x394,_0x155a65:0x3db,_0x48feb7:0x45c,_0x337df8:0x387},_0xd85259={_0xc4bfff:0x49},_0x5a540c={_0x447278:0x214};if(!Number[_0x5a427a(_0x196049._0x243dbf,_0x196049._0x2ce998,0x590,_0x196049._0x155a65)](_0x4a8489)||_0x4a8489<0x1)throw new ToolExecutionError('line\x20must\x20be\x20a\x20positive\x20integer',{'line':_0x4a8489});function _0x5a427a(_0xeeb321,_0x113357,_0x4cc6ef,_0x1c748a){return _0x4ab00a(_0xeeb321-0x53,_0x113357-0xbb,_0x1c748a,_0xeeb321- -_0x5a540c._0x447278);}function _0x5d5f74(_0x493bd9,_0x356e69,_0x2c6be4,_0x29f920){return _0x1932a3(_0x2c6be4,_0x356e69-_0xd85259._0xc4bfff,_0x356e69- -0x374,_0x29f920-0x1a9);}if(!Number[_0x5a427a(0x428,_0x196049._0x48feb7,0x4f5,_0x196049._0x337df8)](_0x46df44)||_0x46df44<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0x46df44});}function createLspTool(_0x137178={}){const _0x4a12dc={_0x5d2f81:0x599,_0x3b7798:0x4c5,_0x417d5f:0x6a3,_0x1f6b22:0x6d2,_0x3cc587:0x346,_0xe09e86:0x270,_0x1fc86f:0x3ce,_0x819d12:0x375,_0x42c34e:0x21a,_0x1828f6:0x15d,_0x1fa6cb:0x1bb,_0x3e633e:0x4f9,_0x1d26ad:0x4d5,_0x134a73:0x450,_0x48ae34:0x4f6,_0x5ba23f:0x696,_0x2d00f6:0x365,_0xd01610:0x36a,_0x2ed718:0x3a8,_0x523863:0x38d,_0x391df6:0x1b7,_0x3b63d1:0x12b,_0x28ddb3:0x39c,_0x16b417:0x143,_0x1c8663:0x22a,_0x1543a1:0x484,_0x9c4fe9:0x532,_0x4942c5:0x55d,_0x446216:0x5d8,_0x5f26e8:0x626,_0x40cd99:0x443,_0x484425:0x605,_0x59f7a5:0x5e7,_0x448554:0x3e7,_0x5b1b61:0x40d,_0x399399:0x408,_0x16fc4a:0x2ee,_0x445362:0x66f,_0x2f9282:0x526,_0x4e5180:0x525,_0x391d99:0x562,_0x143c70:0x45d,_0x40c044:0x5b3,_0x462833:0x4da,_0x51611a:0x45d,_0x408d44:0x361,_0x15d9b9:0x247,_0x3eafa3:0x24b,_0x3ffec4:0x163,_0x580c85:0x10e,_0x3643cd:0xe4,_0x1e3120:0x306},_0x2fc763={_0x3c11cf:0x71d,_0x508681:0x4b,_0x1acb9d:0x12,_0x401eb2:0xd3,_0x12bf75:0xa4,_0x1bcc33:0x1c4,_0x52edd0:0x5f,_0x34301d:0x168,_0x431ebf:0x7e,_0x20f3c2:0x5b6,_0x5a1d62:0x6f,_0x39d041:0x70,_0x238521:0xe5,_0x309720:0xe9,_0xea8df2:0x86,_0x374070:0x6b5,_0x176e1d:0x6d2,_0x19d36a:0x676,_0x604dd4:0x74f,_0x8ea040:0x715,_0x910d59:0x682,_0x141fc7:0x635,_0x4d34be:0x750,_0x101676:0x4f1,_0x4226f3:0x25b,_0x18c64f:0x232,_0x2eee93:0x382,_0x24525d:0x862,_0x3404f7:0x944,_0x3e985c:0x782,_0x23fd76:0x7fa,_0x17dd9a:0x9c6,_0x2d69da:0x768,_0xf99044:0x784,_0x5e3f19:0x829,_0x438435:0x20a,_0x1eb1af:0x806,_0x23b34a:0x875,_0x1317b8:0x746,_0x28511d:0x4e,_0x3afd91:0xba,_0x48d649:0x7da,_0x278c08:0x8be,_0x1fbe73:0x127,_0x208a4c:0x5d,_0x25f988:0xc,_0x5dfeda:0x6b7,_0x2420a3:0x133,_0x118a0b:0x1fb,_0x211e26:0x21c,_0x5357ee:0x1ac,_0x40f272:0x1c8,_0x28ddba:0x11f},_0x2f3735={_0x555896:0x195},_0x5f08b0={_0x283fa6:0xfd,_0x43b833:0x8b},_0x4de17a={_0xc8892e:0x174,_0x3e618c:0x3c};function _0x4815f3(_0x5f189e,_0x39e046,_0x33587c,_0x3cc15b){return _0x4ab00a(_0x5f189e-0x4e,_0x39e046-_0x4de17a._0xc8892e,_0x39e046,_0x3cc15b-_0x4de17a._0x3e618c);}const _0x1960c2=_0x9640f0[_0x4815f3(0x3fa,_0x4a12dc._0x5d2f81,0x546,_0x4a12dc._0x3b7798)](_0x137178['defaultCwd']??process[_0x4815f3(0x5c1,_0x4a12dc._0x417d5f,_0x4a12dc._0x1f6b22,0x5bc)]()),_0xaa9fc7=_0x137178[_0x2777f0(_0x4a12dc._0x3cc587,_0x4a12dc._0xe09e86,_0x4a12dc._0x1fc86f,_0x4a12dc._0x819d12)]??[];function _0x2777f0(_0x4ee4ec,_0x457ef4,_0x3daf4f,_0x49b911){return _0x4ab00a(_0x4ee4ec-_0x5f08b0._0x283fa6,_0x457ef4-_0x5f08b0._0x43b833,_0x3daf4f,_0x49b911- -0x29e);}const _0x4e127d=_0x137178[_0x2777f0(0x31c,_0x4a12dc._0x42c34e,_0x4a12dc._0x1828f6,_0x4a12dc._0x1fa6cb)]??'Lsp';return defineTool({'name':_0x4e127d,'description':'Query\x20Language\x20Server\x20Protocol\x20code\x20intelligence\x20for\x20workspace\x20files:\x20definitions,\x20references,\x20hover,\x20symbols,\x20call\x20hierarchy,\x20and\x20diagnostics.','inputSchema':{'type':_0x4815f3(_0x4a12dc._0x3e633e,_0x4a12dc._0x1d26ad,0x507,0x61e),'properties':{'operation':{'type':_0x4815f3(_0x4a12dc._0x134a73,_0x4a12dc._0x48ae34,_0x4a12dc._0x5ba23f,0x525),'enum':[_0x2777f0(_0x4a12dc._0x2d00f6,0x2cc,0xc2,0x228),_0x2777f0(_0x4a12dc._0xd01610,0x1d5,0x30b,0x332),_0x2777f0(0x3a4,_0x4a12dc._0x2ed718,_0x4a12dc._0x523863,0x392),_0x2777f0(_0x4a12dc._0x391df6,0x49,0x55,_0x4a12dc._0x3b63d1),_0x2777f0(0x139,_0x4a12dc._0x28ddb3,_0x4a12dc._0x16b417,_0x4a12dc._0x1c8663),_0x4815f3(_0x4a12dc._0x1543a1,_0x4a12dc._0x9c4fe9,0x61e,_0x4a12dc._0x4942c5),'prepareCallHierarchy',_0x4815f3(_0x4a12dc._0x446216,_0x4a12dc._0x5f26e8,_0x4a12dc._0x40cd99,0x4ae),_0x4815f3(_0x4a12dc._0x484425,_0x4a12dc._0x59f7a5,_0x4a12dc._0x448554,0x541),_0x2777f0(0x3eb,_0x4a12dc._0x5b1b61,_0x4a12dc._0x399399,_0x4a12dc._0x16fc4a)]},'filePath':{'type':_0x4815f3(_0x4a12dc._0x445362,_0x4a12dc._0x2f9282,0x3c2,_0x4a12dc._0x4e5180)},'line':{'type':_0x4815f3(_0x4a12dc._0x391d99,0x544,0x463,_0x4a12dc._0x143c70)},'character':{'type':_0x4815f3(0x576,_0x4a12dc._0x40c044,_0x4a12dc._0x462833,_0x4a12dc._0x51611a)},'query':{'type':_0x2777f0(_0x4a12dc._0x408d44,_0x4a12dc._0x15d9b9,0x2b7,_0x4a12dc._0x3eafa3)}},'required':[_0x2777f0(_0x4a12dc._0x3ffec4,_0x4a12dc._0x580c85,-0x4c,_0x4a12dc._0x3643cd),'filePath',_0x2777f0(_0x4a12dc._0x1e3120,0x251,0x2a4,0x345),'character']},async *'execute'(_0x5d788e){const _0x5ad994={_0x1e09d1:0xd3,_0x6cc20b:0x4a8},_0x2b2891=_0x137178['lspService'];if(!_0x2b2891)throw new ToolExecutionError(_0x11a58f(0x849,0x6da,0x727,_0x2fc763._0x3c11cf));if(!_0x2b2891[_0x1cdfeb(-_0x2fc763._0x508681,_0x2fc763._0x1acb9d,-0x26,0xb7)]())throw new ToolExecutionError(_0x1cdfeb(_0x2fc763._0x401eb2,0x206,0x1f3,0x12b));const _0x2f3ad7=_0x5d788e[_0x1cdfeb(0x8f,-_0x2fc763._0x12bf75,-_0x2fc763._0x1bcc33,-_0x2fc763._0x52edd0)];validatePosition(_0x5d788e[_0x1cdfeb(_0x2fc763._0x34301d,0x1bd,0x135,_0x2fc763._0x431ebf)],_0x5d788e[_0x11a58f(0x6ca,_0x2fc763._0x20f3c2,0x818,0x6c2)]);if(_0x2f3ad7===_0x1cdfeb(0x107,0xa2,-0x6f,-_0x2fc763._0x5a1d62)){if(!_0x5d788e[_0x1cdfeb(-_0x2fc763._0x39d041,_0x2fc763._0x238521,0x14a,-0x5d)]?.[_0x1cdfeb(_0x2fc763._0x309720,0x5,0xd1,-_0x2fc763._0xea8df2)]())throw new ToolExecutionError(_0x11a58f(0x768,0x5fc,_0x2fc763._0x374070,0x829));const _0x3b55d8=await _0x2b2891[_0x11a58f(_0x2fc763._0x176e1d,_0x2fc763._0x19d36a,0x683,_0x2fc763._0x604dd4)](_0x5d788e[_0x11a58f(_0x2fc763._0x8ea040,_0x2fc763._0x910d59,0x74b,0x750)][_0x11a58f(_0x2fc763._0x141fc7,0x5f3,_0x2fc763._0x4d34be,_0x2fc763._0x101676)]());return yield createToolOutput(formatSymbols(_0x3b55d8),{'operation':_0x2f3ad7,'query':_0x5d788e['query'],'symbols':_0x3b55d8}),void 0x0;}function _0x11a58f(_0x1d7e3e,_0x6c36b3,_0x4cd215,_0x56ce40){return _0x2777f0(_0x1d7e3e-0x1a1,_0x6c36b3-_0x5ad994._0x1e09d1,_0x4cd215,_0x1d7e3e-_0x5ad994._0x6cc20b);}const _0xf26dda=resolveAllowedPath(_0x1960c2,_0xaa9fc7,_0x5d788e[_0x1cdfeb(_0x2fc763._0x4226f3,_0x2fc763._0x18c64f,_0x2fc763._0x2eee93,0x13b)]);await assertFile(_0xf26dda);if(!await _0x2b2891['hasClients'](_0xf26dda))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x5d788e[_0x11a58f(_0x2fc763._0x24525d,_0x2fc763._0x3404f7,0x745,_0x2fc763._0x3e985c)],{'filePath':_0x5d788e[_0x11a58f(0x862,0x8a9,_0x2fc763._0x23fd76,_0x2fc763._0x17dd9a)]});await _0x2b2891['touchFile'](_0xf26dda,!![]);const _0x528bb2={'file':_0xf26dda,'line':_0x5d788e['line']-0x1,'character':_0x5d788e[_0x11a58f(0x6ca,_0x2fc763._0x2d69da,_0x2fc763._0xf99044,_0x2fc763._0x5e3f19)]-0x1};function _0x1cdfeb(_0x5b8f0c,_0x200d4c,_0x5c5526,_0x3c37a9){return _0x2777f0(_0x5b8f0c-0x174,_0x200d4c-_0x2f3735._0x555896,_0x3c37a9,_0x200d4c- -0x188);}switch(_0x2f3ad7){case _0x1cdfeb(0x319,_0x2fc763._0x438435,0x201,0x14a):{const _0x25686f=await _0x2b2891['hover'](_0x528bb2);return yield createToolOutput(formatHover(_0x25686f),{'operation':_0x2f3ad7,'filePath':_0xf26dda,'hover':_0x25686f}),void 0x0;}case _0x11a58f(0x796,_0x2fc763._0x1eb1af,0x6cc,_0x2fc763._0x23b34a):{const _0xbe1ad0=await _0x2b2891[_0x11a58f(0x702,_0x2fc763._0x1317b8,0x72f,0x870)](_0xf26dda);return yield createToolOutput(formatDiagnostics(_0xbe1ad0),{'operation':_0x2f3ad7,'filePath':_0xf26dda,'diagnostics':_0xbe1ad0}),void 0x0;}case _0x1cdfeb(0x187,0xa0,-_0x2fc763._0x28511d,0x20):{const _0x34f136=await _0x2b2891[_0x1cdfeb(-0x8f,0x7b,_0x2fc763._0x3afd91,0x1c8)](_0x528bb2);return yield createToolOutput(formatLocations(_0x34f136),{'operation':_0x2f3ad7,'filePath':_0xf26dda,'locations':_0x34f136}),void 0x0;}case _0x11a58f(_0x2fc763._0x48d649,_0x2fc763._0x278c08,0x8a8,0x858):{const _0x4e3e76=await _0x2b2891['references'](_0x528bb2);return yield createToolOutput(formatLocations(_0x4e3e76),{'operation':_0x2f3ad7,'filePath':_0xf26dda,'locations':_0x4e3e76}),void 0x0;}case'goToImplementation':{const _0x5af2c7=await _0x2b2891['implementation'](_0x528bb2);return yield createToolOutput(formatLocations(_0x5af2c7),{'operation':_0x2f3ad7,'filePath':_0xf26dda,'locations':_0x5af2c7}),void 0x0;}case _0x1cdfeb(-0xa,-0x5d,-0x108,-_0x2fc763._0x1fbe73):{const _0x75fac8=await _0x2b2891[_0x1cdfeb(0xab,-_0x2fc763._0x208a4c,-_0x2fc763._0x25f988,-0x9e)](_0xf26dda);return yield createToolOutput(formatSymbols(_0x75fac8),{'operation':_0x2f3ad7,'filePath':_0xf26dda,'symbols':_0x75fac8}),void 0x0;}case _0x11a58f(0x82b,0x8c6,0x745,_0x2fc763._0x5dfeda):{const _0x53c29d=await _0x2b2891[_0x1cdfeb(_0x2fc763._0x2420a3,_0x2fc763._0x118a0b,0x244,_0x2fc763._0x211e26)](_0x528bb2);return yield createToolOutput(formatSymbols(_0x53c29d),{'operation':_0x2f3ad7,'filePath':_0xf26dda,'symbols':toStructured(_0x53c29d)}),void 0x0;}case _0x1cdfeb(0x116,0x4c,0xb5,0xbb):{const _0x341aea=await _0x2b2891[_0x1cdfeb(_0x2fc763._0x5357ee,0x4c,0xd2,-0x92)](_0x528bb2);return yield createToolOutput(formatIncomingCalls(_0x341aea),{'operation':_0x2f3ad7,'filePath':_0xf26dda,'calls':toStructured(_0x341aea)}),void 0x0;}case _0x1cdfeb(_0x2fc763._0x40f272,0xdf,_0x2fc763._0x28ddba,-0x93):{const _0x5862d9=await _0x2b2891[_0x11a58f(0x70f,0x5b4,0x617,0x7cb)](_0x528bb2);return yield createToolOutput(formatOutgoingCalls(_0x5862d9),{'operation':_0x2f3ad7,'filePath':_0xf26dda,'calls':toStructured(_0x5862d9)}),void 0x0;}}}});}import{randomUUID as _0x1caf1a}from'crypto';import{mkdir as _0x3bd76a,readFile as _0xc049df,writeFile as _0x44a96c}from'fs/promises';import{join as _0x4ec4c8}from'path';function sanitizeStorageKey(_0x13a6f1){const _0xda04a4={_0x11020c:0x21e,_0xaddc7a:0xf5,_0x1029f1:0x21e,_0x544de9:0x391,_0x53c141:0x131},_0x26576b={_0x2b5dac:0x7f,_0x161d9b:0x1f3},_0x15abd5={_0x1bc19b:0x2cc,_0x4d9735:0x33};function _0x46cebe(_0x2113e5,_0x156af5,_0x32a45c,_0xf96d6a){return _0x1932a3(_0x32a45c,_0x156af5-0x160,_0x2113e5- -_0x15abd5._0x1bc19b,_0xf96d6a-_0x15abd5._0x4d9735);}function _0x1b2337(_0x4649be,_0x28eba4,_0x495539,_0x128a50){return _0x4ab00a(_0x4649be-_0x26576b._0x2b5dac,_0x28eba4-0xd3,_0x28eba4,_0x4649be- -_0x26576b._0x161d9b);}return _0x13a6f1[_0x1b2337(_0xda04a4._0x11020c,_0xda04a4._0xaddc7a,0x354,0x266)](/[^a-zA-Z0-9_]+/g,'_')[_0x1b2337(_0xda04a4._0x1029f1,_0xda04a4._0x544de9,0x137,0x36d)](/^_+|_+$/g,'')||_0x46cebe(-0x15,-0x157,_0xda04a4._0x53c141,-0x16b);}function storagePath(_0x4541c0){const _0x5d2711={_0x293265:0x609,_0x68af37:0x5c0,_0xa5a093:0x492,_0x1b66df:0x49f,_0x34124d:0x2e,_0x2ad666:0x80,_0xc5b1d4:0x172,_0xca7937:0x481},_0x1c136c={_0x475280:0x83,_0x611743:0x1e},_0x1cddcd={_0xdf6420:0x1da,_0x3a2ba2:0x2d9},_0x47c365=sanitizeStorageKey(_0x4541c0[_0x103cbe(0x6ba,_0x5d2711._0x293265,0x584,_0x5d2711._0x68af37)][_0x103cbe(0x597,_0x5d2711._0xa5a093,_0x5d2711._0x1b66df,0x585)]?.[_0xdb28f8(0x2,0x37,0x172,-_0x5d2711._0x34124d)]??_0x4541c0['serverName']);function _0xdb28f8(_0x5a0bca,_0x28f1f7,_0x1ca04c,_0x8e0d06){return _0x1932a3(_0x8e0d06,_0x28f1f7-_0x1cddcd._0xdf6420,_0x5a0bca- -_0x1cddcd._0x3a2ba2,_0x8e0d06-0x51);}function _0x103cbe(_0x113689,_0x2ab3b3,_0x5f48c1,_0x2319b2){return _0x4ab00a(_0x113689-0x120,_0x2ab3b3-_0x1c136c._0x475280,_0x2ab3b3,_0x2319b2- -_0x1c136c._0x611743);}return _0x4ec4c8(_0x4541c0[_0xdb28f8(0x60,0x1f,_0x5d2711._0x2ad666,_0x5d2711._0xc5b1d4)],_0x47c365+_0x103cbe(0x3f2,_0x5d2711._0xca7937,0x51c,0x557));}async function readStore(_0x17c46c){const _0x42ac1f={_0x1f1ebd:0xd0,_0x25d1e3:0x1d,_0x50aa3c:0x11e};function _0x3946f6(_0x50c2ee,_0x584cad,_0x41dfbd,_0x34d8a7){return _0x1932a3(_0x41dfbd,_0x584cad-0xa,_0x584cad- -0x2e9,_0x34d8a7-0xed);}function _0x5595f7(_0x397eb0,_0x4314ad,_0x155d2c,_0x80a536){return _0x1932a3(_0x155d2c,_0x4314ad-0x1a,_0x4314ad- -0x26b,_0x80a536-0x13e);}try{return JSON['parse'](await _0xc049df(_0x17c46c,'utf8'));}catch(_0x4665bb){if(_0x4665bb instanceof Error&&'code'in _0x4665bb&&_0x4665bb[_0x3946f6(_0x42ac1f._0x1f1ebd,-0x4a,-_0x42ac1f._0x25d1e3,-0xa4)]===_0x3946f6(-0x123,0x9,-_0x42ac1f._0x50aa3c,0x118))return{};throw _0x4665bb;}}async function writeStore(_0x440698,_0x26c315){await _0x3bd76a(_0x4ec4c8(_0x440698,'..'),{'recursive':!![]}),await _0x44a96c(_0x440698,JSON['stringify'](_0x26c315,null,0x2),'utf8');}async function updateStore(_0x30c8cf,_0x542bd3){const _0x3a2394=await readStore(_0x30c8cf);_0x542bd3(_0x3a2394),await writeStore(_0x30c8cf,_0x3a2394);}function createMcpOAuthProvider(_0x8f8906){const _0x2bb9f4={_0x37f435:0x7eb,_0x14285e:0x62b,_0x3b63dc:0x795,_0x29eddf:0x7be,_0x3eabdc:0x19,_0x306092:0xe0,_0x21c979:0x9f,_0x1e631e:0x15c,_0x112354:0x135,_0x1740e5:0x25,_0x3eba54:0x43,_0x47453e:0x80,_0x12a4a8:0x816,_0x38ae41:0x744,_0xaf212e:0x63b,_0x3e1e24:0x646,_0x5d92af:0x236,_0x103f66:0x176,_0x19cfae:0x22e,_0x553839:0x89,_0x5854ec:0x83e,_0x134838:0x774,_0x5e1c75:0x13,_0x58f74d:0xe7,_0x587fca:0xb,_0x3fdd12:0xce,_0x17a6cd:0x109},_0xd5ba9b={_0x16e913:0xc9,_0x32f0c4:0x232,_0xf4ef79:0x160,_0x1673da:0x37f},_0x266782={_0x18c631:0x1ab,_0x49819e:0xdd,_0x3be1b2:0x53a},_0x3d89ed={_0x1a599c:0x741,_0x90d28f:0x6fd,_0x4664f9:0x396,_0x2594d:0x2fd,_0x3c7986:0x2a0,_0x5b866c:0x4fa,_0x927418:0x43c,_0x449df6:0x4c9,_0x393020:0x596,_0x52d7b4:0x47e,_0x49b418:0x3ab,_0x1ee7f5:0x5ef,_0x14a627:0x51f,_0x235421:0x65f,_0x5ac8a5:0x846,_0x50a9b4:0x56c,_0x4b2747:0x716,_0x5ef81f:0x8d2,_0x59cbbe:0x6d8,_0x3497fe:0x71c},_0x286b52={_0x3dc528:0x2b6,_0x3d569d:0x44d},_0x427f4b={_0xdc2933:0x17,_0x103126:0x6f,_0x4727a5:0x3a6},_0x3076d1={_0x73b9c2:0xf9,_0x196c79:0x132,_0x2a394c:0xfe},_0x10d68e={_0x1dfe16:0x2e2},_0x5a877b={_0x1346a5:0x2ee,_0x2b03c8:0x2dd},_0x482f5f={_0x506590:0x3e7,_0x7601e9:0x338,_0x98f28b:0x41c},_0xc4c214={_0x167caa:0x1b9,_0x5662a3:0x119},_0x4edcd4={_0x49b9b2:0x1ea,_0x1a8c38:0x196};function _0xdd8ef6(_0x2d1529,_0x19a862,_0x45275d,_0x2f1802){return _0x4ab00a(_0x2d1529-0x1e0,_0x19a862-_0x4edcd4._0x49b9b2,_0x2f1802,_0x45275d-_0x4edcd4._0x1a8c38);}function _0x40a360(_0xa647ce,_0x250439,_0x3ccc0e,_0x51c411){return _0x4ab00a(_0xa647ce-0x180,_0x250439-0xc7,_0x51c411,_0x3ccc0e- -0x5ae);}const _0x2bb956=storagePath(_0x8f8906),_0x33ebe5=_0x8f8906[_0xdd8ef6(0x698,_0x2bb9f4._0x37f435,0x774,0x7f9)][_0xdd8ef6(_0x2bb9f4._0x14285e,_0x2bb9f4._0x3b63dc,0x739,_0x2bb9f4._0x29eddf)]?.[_0x40a360(-_0x2bb9f4._0x3eabdc,_0x2bb9f4._0x306092,_0x2bb9f4._0x21c979,_0x2bb9f4._0x1e631e)]?.[_0x40a360(_0x2bb9f4._0x112354,_0x2bb9f4._0x1740e5,_0x2bb9f4._0x3eba54,-_0x2bb9f4._0x47453e)]('\x20'),_0x4e308f={'client_name':_0xdd8ef6(_0x2bb9f4._0x12a4a8,0x75c,_0x2bb9f4._0x38ae41,0x89b),'redirect_uris':[_0x8f8906[_0xdd8ef6(0x695,0x703,0x62a,_0x2bb9f4._0xaf212e)]],'grant_types':['authorization_code',_0xdd8ef6(0x78b,0x7ac,_0x2bb9f4._0x3e1e24,0x748)],'response_types':[_0x40a360(-0x1d2,-_0x2bb9f4._0x5d92af,-0x218,-0x2a4)],'token_endpoint_auth_method':_0x40a360(-_0x2bb9f4._0x103f66,-_0x2bb9f4._0x19cfae,-0xc9,_0x2bb9f4._0x553839),..._0x33ebe5?{'scope':_0x33ebe5}:{}};return{'clientMetadataUrl':_0x8f8906[_0xdd8ef6(0x669,_0x2bb9f4._0x5854ec,_0x2bb9f4._0x134838,0x7b1)][_0x40a360(-_0x2bb9f4._0x5e1c75,_0x2bb9f4._0x58f74d,-_0x2bb9f4._0x587fca,-0x16a)]?.[_0x40a360(_0x2bb9f4._0x3fdd12,-_0x2bb9f4._0x17a6cd,0x13,-0x123)],get 'redirectUrl'(){return _0x8f8906['callbackUrl'];},get 'clientMetadata'(){return _0x4e308f;},async 'state'(){const _0x586491={_0x7dad20:0x532,_0x58d6e3:0x3df,_0x47b50b:0x536},_0x2bce56={_0x35d441:0x16,_0x4f0ceb:0x116};function _0x5360fe(_0x6ce456,_0x48cd02,_0x1273bf,_0x375ab3){return _0x40a360(_0x6ce456-_0xc4c214._0x167caa,_0x48cd02-_0xc4c214._0x5662a3,_0x1273bf-0x391,_0x6ce456);}const _0x5e100b=await readStore(_0x2bb956);if(_0x5e100b['state'])return _0x5e100b[_0x5360fe(_0x482f5f._0x506590,_0x482f5f._0x7601e9,0x3c9,_0x482f5f._0x98f28b)];const _0x2c88d0=_0x1caf1a();return await updateStore(_0x2bb956,_0xd880aa=>{function _0x1b02e8(_0x487ad4,_0x30fa52,_0x504597,_0x1b3991){return _0x5360fe(_0x1b3991,_0x30fa52-0x36,_0x30fa52-_0x2bce56._0x35d441,_0x1b3991-_0x2bce56._0x4f0ceb);}_0xd880aa[_0x1b02e8(_0x586491._0x7dad20,_0x586491._0x58d6e3,_0x586491._0x47b50b,0x2da)]=_0x2c88d0;}),_0x2c88d0;},async 'clientInformation'(){const _0x29ad24={_0x29507e:0xf4,_0x1210a0:0x38d};function _0x24e2d9(_0x14201f,_0xb4936e,_0x143cc5,_0x5e97f6){return _0x40a360(_0x14201f-0x18,_0xb4936e-_0x29ad24._0x29507e,_0x143cc5-_0x29ad24._0x1210a0,_0x14201f);}return(await readStore(_0x2bb956))[_0x24e2d9(0x30c,_0x5a877b._0x1346a5,_0x5a877b._0x2b03c8,0x431)];},async 'saveClientInformation'(_0x4ac6ff){await updateStore(_0x2bb956,_0xac4ecb=>{function _0x5a0d82(_0x19b158,_0x171d04,_0x5c18d0,_0x6a6ad){return _0x5a72(_0x171d04- -0x161,_0x19b158);}_0xac4ecb[_0x5a0d82(0x182,0x1c6,_0x10d68e._0x1dfe16,0x211)]=_0x4ac6ff;});},async 'tokens'(){return(await readStore(_0x2bb956))['tokens'];},async 'saveTokens'(_0x3ad486){await updateStore(_0x2bb956,_0x4578b7=>{_0x4578b7['tokens']=_0x3ad486;});},async 'redirectToAuthorization'(_0x2b152b){await _0x8f8906['onRedirect'](_0x2b152b);},async 'saveCodeVerifier'(_0x473a07){const _0x39afb9={_0xb1c4f1:0x1a0,_0x52b3fe:0x307,_0x5de2b9:0x1a7};await updateStore(_0x2bb956,_0x1e4aef=>{function _0xb06897(_0x429bcb,_0x13df29,_0x5d26c8,_0x2645f1){return _0x5a72(_0x2645f1- -0x293,_0x429bcb);}_0x1e4aef[_0xb06897(0xe9,_0x39afb9._0xb1c4f1,_0x39afb9._0x52b3fe,_0x39afb9._0x5de2b9)]=_0x473a07;});},async 'codeVerifier'(){const _0x40086a=(await readStore(_0x2bb956))[_0x76b90a(0x401,0x318,_0x286b52._0x3dc528,_0x286b52._0x3d569d)];function _0x293e3f(_0x64a042,_0xcd1015,_0x4a1ee4,_0x4709b5){return _0x40a360(_0x64a042-_0x3076d1._0x73b9c2,_0xcd1015-_0x3076d1._0x196c79,_0xcd1015-_0x3076d1._0x2a394c,_0x4709b5);}if(!_0x40086a)throw new Error(_0x76b90a(0x372,0x42a,0x2ab,0x39d));function _0x76b90a(_0x32c076,_0x4d648f,_0x22d63e,_0x203d0f){return _0xdd8ef6(_0x32c076-_0x427f4b._0xdc2933,_0x4d648f-_0x427f4b._0x103126,_0x32c076- -_0x427f4b._0x4727a5,_0x203d0f);}return _0x40086a;},async 'invalidateCredentials'(_0x359f3e){await updateStore(_0x2bb956,_0xe655ea=>{const _0x1b07e6={_0x280f49:0x1b2};function _0x18b2e7(_0x598277,_0x3b6340,_0x3c331e,_0x4e8a93){return _0x5a72(_0x598277-_0x1b07e6._0x280f49,_0x4e8a93);}(_0x359f3e===_0xb7da3b(0x84a,_0x3d89ed._0x1a599c,_0x3d89ed._0x90d28f,0x628)||_0x359f3e===_0x18b2e7(_0x3d89ed._0x4664f9,_0x3d89ed._0x2594d,0x4a6,_0x3d89ed._0x3c7986))&&(_0xe655ea[_0x18b2e7(0x4d9,_0x3d89ed._0x5b866c,_0x3d89ed._0x927418,0x499)]=void 0x0);(_0x359f3e===_0x18b2e7(_0x3d89ed._0x449df6,0x435,0x4b4,_0x3d89ed._0x393020)||_0x359f3e===_0x18b2e7(_0x3d89ed._0x52d7b4,0x5d6,_0x3d89ed._0x49b418,_0x3d89ed._0x1ee7f5))&&(_0xe655ea[_0x18b2e7(_0x3d89ed._0x52d7b4,0x5a8,0x556,_0x3d89ed._0x14a627)]=void 0x0);function _0xb7da3b(_0x585c94,_0x3dad80,_0x492824,_0x2b25f8){return _0x5a72(_0x492824-0x3e6,_0x585c94);}(_0x359f3e===_0xb7da3b(0x6ba,_0x3d89ed._0x235421,0x6fd,_0x3d89ed._0x5ac8a5)||_0x359f3e===_0xb7da3b(0x755,_0x3d89ed._0x50a9b4,0x689,0x682))&&(_0xe655ea[_0xb7da3b(_0x3d89ed._0x4b2747,0x6b8,0x820,_0x3d89ed._0x5ef81f)]=void 0x0,_0xe655ea['state']=void 0x0),(_0x359f3e==='all'||_0x359f3e===_0xb7da3b(0x7b0,0x636,_0x3d89ed._0x59cbbe,0x5e7))&&(_0xe655ea[_0x18b2e7(0x5b1,_0x3d89ed._0x3497fe,0x6a9,0x516)]=void 0x0);});},async 'saveDiscoveryState'(_0x2dc97b){await updateStore(_0x2bb956,_0x474c62=>{_0x474c62['discoveryState']=_0x2dc97b;});},async 'discoveryState'(){function _0x463530(_0x3a315f,_0x4e0a73,_0x6527d5,_0x2115bc){return _0xdd8ef6(_0x3a315f-_0x266782._0x18c631,_0x4e0a73-_0x266782._0x49819e,_0x4e0a73- -_0x266782._0x3be1b2,_0x2115bc);}return(await readStore(_0x2bb956))[_0x463530(_0xd5ba9b._0x16e913,_0xd5ba9b._0x32f0c4,_0xd5ba9b._0xf4ef79,_0xd5ba9b._0x1673da)];}};}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(_0x2f7932,_0x4b0742){const _0xad74e3={_0x177168:0x1b7,_0x2b858b:0xc0,_0xee9bb6:0x178};function _0x447288(_0x251a04,_0x34223c,_0x3e58e1,_0x23b3d9){return _0x4ab00a(_0x251a04-_0xad74e3._0x177168,_0x34223c-_0xad74e3._0x2b858b,_0x34223c,_0x23b3d9-_0xad74e3._0xee9bb6);}function _0x29db7d(_0x38d5ab,_0x410fa9,_0x319656,_0x32a0d8){return _0x4ab00a(_0x38d5ab-0x14e,_0x410fa9-0x83,_0x410fa9,_0x38d5ab- -0x506);}const _0x439cee=_0x30c11a=>_0x30c11a[_0x29db7d(-0xf5,-0x2c,-0x45,-0x228)](/[^a-zA-Z0-9_]+/g,'_')[_0x29db7d(-0xf5,0x55,0x62,0x21)](/^_+|_+$/g,'');return'mcp_'+_0x439cee(_0x2f7932)+'_'+_0x439cee(_0x4b0742);}function isObject(_0x5aca25){const _0x8ad532={_0x2bc0d4:0x72,_0x3b5bc6:0x147},_0x802a2f={_0x1263dc:0x8b,_0x54c815:0xcc},_0x3e8da0={_0x1bc7f1:0x570};function _0x4bd21e(_0x590338,_0x3566d4,_0x288247,_0x3adc77){return _0x4ab00a(_0x590338-0xc6,_0x3566d4-0x153,_0x3566d4,_0x590338- -_0x3e8da0._0x1bc7f1);}function _0x3e82db(_0xed7550,_0x498f76,_0x2420cb,_0x1ff215){return _0x1932a3(_0x498f76,_0x498f76-_0x802a2f._0x1263dc,_0x2420cb-_0x802a2f._0x54c815,_0x1ff215-0x18c);}return typeof _0x5aca25===_0x4bd21e(_0x8ad532._0x2bc0d4,_0x8ad532._0x3b5bc6,0x81,0x8c)&&_0x5aca25!==null&&!Array[_0x3e82db(0x2da,0x3f2,0x441,0x373)](_0x5aca25);}function toSupportedSchema(_0x333bb4){const _0x4a94bd={_0x4a0d3a:0xad,_0x4e4f1c:0x2c,_0x2be03:0x132,_0x295f30:0x2,_0x5ec427:0x50,_0x4f17ef:0x2c,_0x290466:0x88,_0x355bac:0x76,_0xbde687:0xa5,_0xc7598b:0x142,_0x42c908:0x2c,_0x3bfcdb:0x8e,_0x455ca3:0xb7,_0x67bb5c:0x102,_0x4bab9a:0x1ed,_0x12b28c:0x6b,_0x5f2a49:0x26},_0x225e78={_0x318361:0x11b,_0x2a836f:0x3ae,_0x3f1a31:0x11c},_0xc77915={_0x45e2dc:0x4a9,_0x59eada:0x1e3};if(!isObject(_0x333bb4))return void 0x0;if(_0x333bb4[_0x440ff2(-0xa4,-0xfe,_0x4a94bd._0x4a0d3a,-_0x4a94bd._0x4e4f1c)]==='string')return{'type':_0x440ff2(-_0x4a94bd._0x2be03,-0x88,_0x4a94bd._0x295f30,0x44)};if(_0x333bb4[_0x440ff2(_0x4a94bd._0x5ec427,-0xf9,-0x18b,-_0x4a94bd._0x4f17ef)]==='number'||_0x333bb4[_0x3f458a(-0x127,-0x4d,-0x18d,-0x21f)]===_0x440ff2(-0xf2,_0x4a94bd._0x290466,_0x4a94bd._0x355bac,0x34))return{'type':'number'};if(_0x333bb4[_0x440ff2(-_0x4a94bd._0xbde687,-_0x4a94bd._0xc7598b,-0xba,-_0x4a94bd._0x42c908)]==='boolean')return{'type':'boolean'};function _0x3f458a(_0x3f8772,_0xe3576e,_0x2ee437,_0x392123){return _0x1932a3(_0x2ee437,_0xe3576e-0x74,_0x3f8772- -_0xc77915._0x45e2dc,_0x392123-_0xc77915._0x59eada);}if(_0x333bb4[_0x440ff2(-0x19c,-0xb7,-0x174,-_0x4a94bd._0x4f17ef)]==='array')return{'type':_0x440ff2(0x17e,0x271,_0x4a94bd._0x3bfcdb,0x17b),'items':toSupportedSchema(_0x333bb4[_0x3f458a(-0x58,0x5,-0x93,0x112)])??{'type':_0x3f458a(-_0x4a94bd._0x455ca3,-0x20e,-_0x4a94bd._0x67bb5c,-_0x4a94bd._0x4bab9a)}};function _0x440ff2(_0x109bca,_0x511a2f,_0x4b3d1d,_0x4cccc2){return _0x1932a3(_0x4b3d1d,_0x511a2f-_0x225e78._0x318361,_0x4cccc2- -_0x225e78._0x2a836f,_0x4cccc2-_0x225e78._0x3f1a31);}if(_0x333bb4[_0x3f458a(-0x127,-0xca,-0x261,-0x111)]===_0x440ff2(_0x4a94bd._0x12b28c,-_0x4a94bd._0x5f2a49,0x143,0x13d))return toNuvinToolSchema(_0x333bb4);return void 0x0;}function toNuvinToolSchema(_0x1b9102){const _0x33f3d5={_0x4ef113:0x34,_0x416948:0x1f5,_0x2dfbe6:0x125,_0x599589:0x586,_0x59d87e:0x50a,_0x21ed90:0x520,_0xfcb2ef:0x5e,_0x2de1e7:0x8d,_0x2d0c4a:0x13,_0x3c8671:0x55f,_0x586af5:0x4e2,_0x5daf78:0x4e7,_0x174c91:0x2ba,_0x12afdd:0xa7,_0x46d76e:0x86,_0x2778ae:0x1a1,_0x480ac0:0x3a1,_0x16a802:0x266,_0x390e06:0x3c8,_0x10c795:0x642,_0x24061b:0x6c3,_0x14ac2c:0x4ea,_0x2e5191:0x6b,_0x49e7db:0x44},_0x3da723={_0x48de13:0x1ae},_0x50beae={_0x27ecc4:0x171};function _0x5825a9(_0x2c9bb9,_0x514b11,_0x59c220,_0x2c8c91){return _0x1932a3(_0x2c8c91,_0x514b11-_0x50beae._0x27ecc4,_0x2c9bb9-0x9b,_0x2c8c91-0xd8);}if(!isObject(_0x1b9102)||_0x1b9102[_0x5395a4(_0x33f3d5._0x4ef113,-0x3,-_0x33f3d5._0x416948,-_0x33f3d5._0x2dfbe6)]!=='object')return{'type':_0x5825a9(_0x33f3d5._0x599589,0x682,_0x33f3d5._0x59d87e,_0x33f3d5._0x21ed90),'properties':{}};const _0x20efc1={},_0x1f466e=isObject(_0x1b9102[_0x5395a4(0x5a,-0x1a,-0x155,-_0x33f3d5._0xfcb2ef)])?_0x1b9102[_0x5395a4(_0x33f3d5._0x2de1e7,-0x65,-_0x33f3d5._0x2d0c4a,-0x5e)]:{};for(const [_0x114c47,_0x3f3c5f]of Object[_0x5825a9(_0x33f3d5._0x3c8671,_0x33f3d5._0x586af5,0x568,_0x33f3d5._0x5daf78)](_0x1f466e)){const _0x3a5428=toSupportedSchema(_0x3f3c5f);if(_0x3a5428)_0x20efc1[_0x114c47]=_0x3a5428;}const _0x55333a=Array['isArray'](_0x1b9102[_0x5395a4(-_0x33f3d5._0x174c91,-_0x33f3d5._0x12afdd,-_0x33f3d5._0x46d76e,-_0x33f3d5._0x2778ae)])?_0x1b9102[_0x5825a9(_0x33f3d5._0x480ac0,_0x33f3d5._0x16a802,0x236,0x460)]['filter'](_0x9271bf=>typeof _0x9271bf===_0x5825a9(0x48d,0x3df,0x367,0x39c)):void 0x0;function _0x5395a4(_0x2676db,_0x39d8e6,_0x32ff03,_0x2449f4){return _0x4ab00a(_0x2676db-0x1a6,_0x39d8e6-_0x3da723._0x48de13,_0x39d8e6,_0x2449f4- -0x59e);}return _0x55333a?.[_0x5825a9(0x4dc,0x647,_0x33f3d5._0x390e06,0x5e3)]?{'type':_0x5825a9(_0x33f3d5._0x599589,_0x33f3d5._0x10c795,_0x33f3d5._0x24061b,_0x33f3d5._0x14ac2c),'properties':_0x20efc1,'required':_0x55333a}:{'type':_0x5395a4(-0x4c,_0x33f3d5._0x2e5191,0x4,_0x33f3d5._0x49e7db),'properties':_0x20efc1};}function isJsonObject(_0x21ba8d){const _0x13d68a={_0x3f535d:0xbc,_0x1e5ff1:0x80},_0x4d4292={_0x100353:0x17e,_0x2a1d6a:0x2f5};function _0x412bcf(_0x6ed372,_0x50465c,_0x544041,_0x2b5b8d){return _0x1932a3(_0x2b5b8d,_0x50465c-_0x4d4292._0x100353,_0x544041- -_0x4d4292._0x2a1d6a,_0x2b5b8d-0x19a);}return typeof _0x21ba8d==='object'&&_0x21ba8d!==null&&!Array[_0x412bcf(0x1ac,-_0x13d68a._0x3f535d,_0x13d68a._0x1e5ff1,0x13d)](_0x21ba8d);}function formatMcpContent(_0x3ee233){const _0x1ed4f8={_0x19d37d:0x51b,_0x1436dc:0x56b,_0x5b9869:0x625,_0x5b4110:0x4f6,_0x104680:0x60d,_0x38464b:0x5e3,_0x2d1eda:0x700,_0x35416b:0x628,_0x5a90a7:0x6d8,_0x1e7500:0x7b5,_0x36aa3e:0x42a,_0x53a3f2:0x4c8,_0x196ff1:0x46e},_0x27a44a={_0x55c9b6:0x121,_0x28df8b:0x2e},_0x2d8f11={_0xd6e32e:0x654,_0x5049ee:0x5dd,_0x47c503:0x679,_0x5b2a8b:0x47e,_0x4853c2:0xe0,_0x39e2a5:0x281,_0x523c67:0x78c,_0x268f44:0x64d,_0x5d6d80:0x95},_0x139695={_0x5cc318:0xe5},_0x2cb417={_0x124da7:0x192,_0x2cbf57:0x1bf},_0xa60865={_0x233fb1:0x1df},_0x516b6e=Array[_0x41f05f(_0x1ed4f8._0x19d37d,0x64b,0x596,0x54b)](_0x3ee233['content'])?_0x3ee233['content']:[];function _0x41f05f(_0x233020,_0x590f8e,_0x1dec1e,_0x158157){return _0x4ab00a(_0x233020-0xfe,_0x590f8e-0x4e,_0x1dec1e,_0x590f8e-_0xa60865._0x233fb1);}const _0x46abae=_0x516b6e[_0x41f05f(_0x1ed4f8._0x1436dc,_0x1ed4f8._0x5b9869,0x77f,_0x1ed4f8._0x5b4110)](_0x1c2cb1=>{if(!isObject(_0x1c2cb1))return'';function _0x280d73(_0x193cd9,_0x4e5cd6,_0x153d48,_0x1d7346){return _0x3573db(_0x193cd9-0x5,_0x4e5cd6-_0x2cb417._0x124da7,_0x153d48-_0x2cb417._0x2cbf57,_0x153d48);}function _0xfc7de7(_0x5651cd,_0xd32010,_0x430f76,_0x5c950a){return _0x41f05f(_0x5651cd-_0x139695._0x5cc318,_0x5651cd- -0x6cc,_0xd32010,_0x5c950a-0x6d);}if(_0x1c2cb1[_0x280d73(_0x2d8f11._0xd6e32e,_0x2d8f11._0x5049ee,_0x2d8f11._0x47c503,_0x2d8f11._0x5b2a8b)]===_0xfc7de7(0x13b,_0x2d8f11._0x4853c2,0x21c,_0x2d8f11._0x39e2a5)&&typeof _0x1c2cb1[_0x280d73(0x83b,_0x2d8f11._0x523c67,0x902,0x724)]===_0x280d73(0x6c5,_0x2d8f11._0x268f44,0x78e,0x544))return _0x1c2cb1['text'];return JSON[_0xfc7de7(-_0x2d8f11._0x5d6d80,0x6b,0x6c,0x23)](_0x1c2cb1);})[_0x3573db(0x575,_0x1ed4f8._0x104680,0x687,_0x1ed4f8._0x38464b)](_0x1d5391=>_0x1d5391['length']>0x0)[_0x41f05f(_0x1ed4f8._0x2d1eda,0x7d0,0x6a1,0x6d4)]('\x0a');function _0x3573db(_0x4ad1cd,_0x1adc00,_0x8686e5,_0x12a480){return _0x4ab00a(_0x4ad1cd-_0x27a44a._0x55c9b6,_0x1adc00-0x130,_0x12a480,_0x1adc00- -_0x27a44a._0x28df8b);}if(_0x46abae[_0x41f05f(_0x1ed4f8._0x35416b,0x717,_0x1ed4f8._0x5a90a7,_0x1ed4f8._0x1e7500)]>0x0)return _0x46abae;return JSON[_0x3573db(0x4c5,_0x1ed4f8._0x36aa3e,_0x1ed4f8._0x53a3f2,_0x1ed4f8._0x196ff1)](_0x3ee233,null,0x2);}function createMcpTool(_0x1d4b5b){const _0x275019={_0x4e3bc7:0x4,_0x51bca8:0x41,_0x3dcfca:0x5ed,_0x224ff7:0x4d7,_0x5e7387:0x6b0,_0x1be132:0x143,_0x4f2b6a:0x76,_0x4a2e6f:0x3d,_0x59352d:0x316,_0x181e4c:0x412,_0x348991:0x13,_0x3bd19b:0x105,_0x366a79:0x110,_0x211f89:0xe3,_0x40238a:0x1c7,_0x4e52f4:0xda,_0x1104b0:0x45b,_0x4cf3b0:0x419,_0x49e7f1:0x5ed,_0x1738cd:0x70a,_0x5b94ad:0x633,_0x21dd26:0x5e4,_0x3211a6:0x584},_0x4b325c={_0xc5ebc0:0x3b5,_0x4edc36:0x40d,_0x1a11be:0x317,_0x52970b:0x61a,_0x199f1e:0x598,_0x4a0d1b:0x4e4,_0xcb35a4:0x609,_0x1bdb92:0x4f0,_0x26bb98:0x3c6},_0x4d69df={_0x3f592c:0xe6,_0x50425b:0x138},_0x2d8ae1={_0x2afd45:0x3b},_0x2308cd={_0x1cb6d1:0x3d8},_0x5cbf58={_0x1e8d20:0x110,_0xa54e12:0xf3};function _0x533b19(_0x2ad5e2,_0x11d9e4,_0x506499,_0x3741bd){return _0x1932a3(_0x506499,_0x11d9e4-_0x5cbf58._0x1e8d20,_0x2ad5e2-0x177,_0x3741bd-_0x5cbf58._0xa54e12);}function _0x368d45(_0x481b62,_0x5e45cd,_0xbfde61,_0x345017){return _0x1932a3(_0x5e45cd,_0x5e45cd-0x141,_0x345017- -_0x2308cd._0x1cb6d1,_0x345017-0x121);}const _0x5d81ae=createMcpToolName(_0x1d4b5b[_0x368d45(-0xd8,0x43,-_0x275019._0x4e3bc7,_0x275019._0x51bca8)],_0x1d4b5b[_0x533b19(_0x275019._0x3dcfca,_0x275019._0x224ff7,_0x275019._0x5e7387,0x5e9)][_0x368d45(-_0x275019._0x1be132,-0x1da,0xd,-_0x275019._0x4f2b6a)]);return defineTool({'name':_0x5d81ae,'description':_0x1d4b5b[_0x368d45(0xcf,-_0x275019._0x4a2e6f,-0xa0,0x9e)][_0x533b19(0x430,_0x275019._0x59352d,_0x275019._0x181e4c,0x3cc)]??_0x368d45(_0x275019._0x348991,-0x1ba,-_0x275019._0x3bd19b,-_0x275019._0x366a79)+_0x1d4b5b['tool'][_0x368d45(_0x275019._0x211f89,-_0x275019._0x40238a,-_0x275019._0x4e52f4,-0x76)]+_0x533b19(0x44c,0x49b,_0x275019._0x1104b0,_0x275019._0x4cf3b0)+_0x1d4b5b['serverName'],'inputSchema':toNuvinToolSchema(_0x1d4b5b[_0x533b19(_0x275019._0x49e7f1,_0x275019._0x1738cd,_0x275019._0x5b94ad,_0x275019._0x21dd26)][_0x533b19(0x610,0x5e0,_0x275019._0x3211a6,0x547)]),async *'execute'(_0x1a9644){const _0x2f6cbc=await _0x1d4b5b[_0x4cc5b9(0x58a,0x535,0x41c,0x577)]['callTool']({'name':_0x1d4b5b['tool'][_0x4ec9ad(_0x4b325c._0xc5ebc0,_0x4b325c._0x4edc36,0x463,_0x4b325c._0x1a11be)],'arguments':isJsonObject(_0x1a9644)?_0x1a9644:{}});if(_0x2f6cbc['isError'])throw new ToolExecutionError(formatMcpContent(_0x2f6cbc),{'serverName':_0x1d4b5b[_0x4ec9ad(0x55b,0x4c4,_0x4b325c._0x52970b,0x3a6)],'toolName':_0x1d4b5b[_0x4ec9ad(_0x4b325c._0x199f1e,0x521,0x549,0x426)][_0x4ec9ad(0x486,0x40d,0x3b4,_0x4b325c._0x4a0d1b)]});function _0x4cc5b9(_0x2611af,_0x11acc9,_0x327906,_0x5d6d6b){return _0x533b19(_0x327906- -0x1f,_0x11acc9-_0x2d8ae1._0x2afd45,_0x5d6d6b,_0x5d6d6b-0xb9);}function _0x4ec9ad(_0x17d073,_0x14f50d,_0xb950f2,_0x403dcb){return _0x533b19(_0x14f50d- -0xcc,_0x14f50d-_0x4d69df._0x3f592c,_0x403dcb,_0x403dcb-_0x4d69df._0x50425b);}return yield createToolOutput(formatMcpContent(_0x2f6cbc),{'serverName':_0x1d4b5b[_0x4ec9ad(0x36a,0x4c4,0x3ef,0x3ca)],'toolName':_0x1d4b5b['tool'][_0x4cc5b9(_0x4b325c._0xcb35a4,_0x4b325c._0x1bdb92,0x4ba,_0x4b325c._0x26bb98)],'result':_0x2f6cbc}),void 0x0;}});}function resolvePrefix(_0x4b46cb,_0x2c4624){const _0x235b03={_0x49ce2a:0xe2,_0x333e07:0x7a,_0x105dfe:0x1a3},_0x5aaf45={_0x564ef2:0xfa,_0x275abb:0x408};function _0x3beef8(_0x3bc96b,_0x396f5b,_0x3b2e00,_0x2fef6d){return _0x4ab00a(_0x3bc96b-0x9f,_0x396f5b-_0x5aaf45._0x564ef2,_0x2fef6d,_0x396f5b- -_0x5aaf45._0x275abb);}return _0x2c4624[_0x3beef8(_0x235b03._0x49ce2a,0xae,-_0x235b03._0x333e07,_0x235b03._0x105dfe)]??_0x4b46cb;}function buildMcpHttpHeaders(_0x45967b){const _0x5e2fa1={_0x49e13f:0x1b1,_0x2ced56:0x103,_0x3d761e:0x283,_0x77ad1d:0x158,_0xcd11ee:0xf5,_0x4f412f:0x9f,_0x509ed8:0x1c3,_0x2c5e59:0x78,_0x1230be:0x232,_0x11bf07:0x1ba,_0x49aed3:0x3c,_0x1ceb48:0x1b8,_0x275e48:0xde,_0x5c7141:0x16b},_0x267c19={_0x5aa7e7:0x90},_0x4af1ee={_0x23533f:0x5d,_0x5d05b6:0x22a};function _0x2b3655(_0x153730,_0x31f78a,_0x5f4647,_0x15e668){return _0x1932a3(_0x31f78a,_0x31f78a-_0x4af1ee._0x23533f,_0x5f4647- -_0x4af1ee._0x5d05b6,_0x15e668-0x1cd);}function _0x3e68a5(_0x412b81,_0x209138,_0x5432f4,_0x374969){return _0x4ab00a(_0x412b81-0x28,_0x209138-_0x267c19._0x5aa7e7,_0x5432f4,_0x209138- -0x4db);}const _0x444364={..._0x45967b[_0x2b3655(_0x5e2fa1._0x49e13f,0x268,_0x5e2fa1._0x2ced56,0x10c)]??{}};return _0x45967b['auth']?.[_0x2b3655(0x19c,_0x5e2fa1._0x3d761e,_0x5e2fa1._0x77ad1d,_0x5e2fa1._0xcd11ee)]==='bearer'&&_0x45967b['auth'][_0x2b3655(_0x5e2fa1._0x4f412f,_0x5e2fa1._0x509ed8,_0x5e2fa1._0x2c5e59,0x145)]&&_0x444364['Authorization']===void 0x0&&(_0x444364[_0x2b3655(0x39a,0x1c4,_0x5e2fa1._0x1230be,0x1ea)]=_0x3e68a5(_0x5e2fa1._0x11bf07,0xd0,0x8,-0x3e)+_0x45967b['auth'][_0x2b3655(0x14a,_0x5e2fa1._0x49aed3,_0x5e2fa1._0x2c5e59,0xd6)]),Object[_0x3e68a5(_0x5e2fa1._0x1ceb48,_0x5e2fa1._0x275e48,0x14c,_0x5e2fa1._0x5c7141)](_0x444364)['length']>0x0?_0x444364:void 0x0;}function getErrorMessage(_0x23839d){const _0x3b196d={_0x4a44b0:0x186},_0x340301={_0x34fe75:0x490};function _0x4bdae0(_0x3e56f6,_0x56072b,_0xbcfc0b,_0x2733a5){return _0x4ab00a(_0x3e56f6-0x6f,_0x56072b-0x73,_0x56072b,_0x2733a5- -_0x340301._0x34fe75);}return _0x23839d instanceof Error?_0x23839d[_0x4bdae0(0x125,-_0x3b196d._0x4a44b0,-0x1b0,-0x48)]:String(_0x23839d);}function isUnauthorizedError(_0x239975){const _0x51883b={_0x344509:0x3c,_0x316af9:0x42,_0x4e7938:0x62,_0x36cbdb:0xd3,_0x335972:0x126,_0x66f65c:0x92,_0x5ab3af:0x37e,_0x19e88d:0x4e7},_0xd06e81={_0x47a735:0x49},_0x25f41d={_0x332ea2:0x17e,_0x57f54d:0xba,_0x20df02:0x152};function _0x45cc4a(_0x13bce4,_0xd6878,_0x2d6ea3,_0x41934a){return _0x1932a3(_0x2d6ea3,_0xd6878-_0x25f41d._0x332ea2,_0x41934a- -_0x25f41d._0x57f54d,_0x41934a-_0x25f41d._0x20df02);}function _0x9865e6(_0x30e8bd,_0x471337,_0x43e540,_0x1f542c){return _0x1932a3(_0x1f542c,_0x471337-0x126,_0x30e8bd- -0x28f,_0x1f542c-_0xd06e81._0x47a735);}return _0x239975 instanceof Error&&_0x239975[_0x9865e6(_0x51883b._0x344509,-_0x51883b._0x316af9,0xda,_0x51883b._0x4e7938)][_0x9865e6(_0x51883b._0x36cbdb,_0x51883b._0x335972,-_0x51883b._0x66f65c,0x16c)]===_0x45cc4a(_0x51883b._0x5ab3af,_0x51883b._0x19e88d,0x593,0x489);}async function connectMcpServer(_0x292b98,_0x5282f0,_0x5a4cba){const _0x310e5f={_0x4e3ccb:0x59,_0x34fd42:0x111,_0x192c47:0x24,_0x42d3dc:0x4d,_0x34dbe4:0x102,_0x4d21de:0x309,_0xc73119:0x3c0,_0x21872b:0x5c5,_0x2be82a:0x157,_0x1bd8a8:0x51,_0x4fda2b:0xbd,_0xff6ce4:0x4ee,_0x402c52:0x8a,_0x2908c9:0x46,_0x45406c:0x2a,_0x2872b2:0x9a,_0x49b8c4:0x5c,_0x314cc6:0x12b,_0xe861c:0x493,_0x395afb:0x4b1,_0x155c3a:0x197,_0x4c4652:0x1,_0x400536:0x59e,_0x239f48:0x3a0,_0x5259fb:0x193,_0x4bc970:0x173,_0xcd3ca7:0x25d,_0x5d385f:0x417,_0x4eb8e2:0x4b1,_0x24b975:0x2bc,_0xfc0eae:0x483,_0xebe4ba:0x2bd,_0x2ed3e3:0x39f,_0x4d85b1:0x40c,_0x43ae7f:0x418,_0x4eeff3:0x10a,_0x58987e:0x1b7,_0x4ab1ef:0x1b1,_0x5272b6:0x474,_0x23d9da:0x45c,_0x570f0c:0x657,_0x358382:0x460,_0x3be24e:0x4e9,_0x50cedc:0x4f5,_0x3d1aa0:0x8f,_0x38ae0d:0x15a,_0x2a96f7:0x3b4,_0x142163:0x2e0,_0x2c90a8:0xd7,_0x4ceb06:0x8e,_0x19d0e5:0xca,_0x3126c8:0xc7,_0x1c1a4e:0xda,_0x1d56f0:0x21},_0x4f175f={_0x252193:0x241},_0x2a76bc={_0x87a048:0x63e,_0x30cb49:0x658,_0x244472:0x810},_0x185095={_0x8037e8:0x40,_0x5be4d7:0x1bb},_0x23e63f={_0x33f19d:0x1e8},_0x5ae3ce={_0x3c34a0:0x339,_0x1422a2:0x17c};function _0x5c7257(_0x16ff7d,_0xcccb62,_0x333e7c,_0x17800c){return _0x1932a3(_0x17800c,_0xcccb62-0x1d4,_0x333e7c- -_0x5ae3ce._0x3c34a0,_0x17800c-_0x5ae3ce._0x1422a2);}const _0x436538=new Client({'name':_0x5c7257(-_0x310e5f._0x4e3ccb,-_0x310e5f._0x34fd42,-_0x310e5f._0x192c47,0xbe),'version':_0x5c7257(0xb9,_0x310e5f._0x42d3dc,0x1,_0x310e5f._0x34dbe4)});_0x436538[_0x12ea16(0x297,_0x310e5f._0x4d21de,_0x310e5f._0xc73119,0x28a)]=_0x16407b=>{const _0x2a094c={_0x4ffd3d:0x180};function _0x4b7846(_0x78e033,_0xf86651,_0x426baa,_0x43a2cb){return _0x12ea16(_0x78e033-_0x2a094c._0x4ffd3d,_0xf86651-0x198,_0x426baa,_0x43a2cb- -0x24b);}console['error']('[MCP\x20'+_0x292b98+']\x20transport\x20error:',_0x16407b[_0x4b7846(0x1d2,-0x24,0x2c,0x10b)]);};if(_0x5282f0[_0x12ea16(_0x310e5f._0x21872b,0x58b,0x62a,0x534)]===_0x5c7257(_0x310e5f._0x2be82a,-0x82,_0x310e5f._0x1bd8a8,-_0x310e5f._0x4fda2b)||_0x5282f0['url']){if(!_0x5282f0[_0x12ea16(_0x310e5f._0xff6ce4,0x278,0x4ca,0x39f)])throw new Error(_0x5c7257(-0x16d,-_0x310e5f._0x402c52,-_0x310e5f._0x2908c9,-_0x310e5f._0x45406c)+_0x292b98+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x5282f0[_0x5c7257(-0x126,0xb5,-0x12,-_0x310e5f._0x2872b2)]?.[_0x5c7257(-_0x310e5f._0x49b8c4,_0x310e5f._0x314cc6,0x49,-0x68)]===_0x12ea16(_0x310e5f._0xe861c,0x439,0x56f,_0x310e5f._0x395afb)&&!_0x5a4cba?.[_0x5c7257(_0x310e5f._0x155c3a,0x5b,0x173,-_0x310e5f._0x4c4652)])throw new Error('MCP\x20server\x20'+_0x292b98+'\x20requires\x20OAuth\x20connection\x20options');const _0x32a2fd=buildMcpHttpHeaders(_0x5282f0),_0x455fe8=_0x5282f0['auth']?.[_0x12ea16(0x4d0,0x3ce,0x2da,0x387)]===_0x12ea16(0x5b0,_0x310e5f._0x400536,_0x310e5f._0x239f48,0x4b1)&&_0x5a4cba?.['oauth']?createMcpOAuthProvider({'serverName':_0x292b98,'callbackUrl':_0x5a4cba[_0x5c7257(_0x310e5f._0x5259fb,0x2eb,_0x310e5f._0x4bc970,_0x310e5f._0xcd3ca7)]['callbackUrl'],'storageDir':_0x5a4cba[_0x12ea16(0x3f3,0x508,_0x310e5f._0x5d385f,_0x310e5f._0x4eb8e2)]['storageDir'],'config':_0x5282f0['auth'],'onRedirect':_0x4bc1ae=>_0x5a4cba['oauth']?.[_0x5c7257(-0x1a1,-0x2c,-0xa3,0x94)](_0x292b98,_0x4bc1ae)}):void 0x0,_0x527c0b=new StreamableHTTPClientTransport(new URL(_0x5282f0[_0x12ea16(_0x310e5f._0x24b975,_0x310e5f._0xfc0eae,_0x310e5f._0xebe4ba,_0x310e5f._0x2ed3e3)]),{'authProvider':_0x455fe8,'requestInit':_0x32a2fd?{'headers':_0x32a2fd}:void 0x0});await _0x436538[_0x12ea16(_0x310e5f._0x4d85b1,0x567,0x376,_0x310e5f._0x43ae7f)](_0x527c0b);}else{if(!_0x5282f0[_0x5c7257(_0x310e5f._0x4eeff3,0x321,_0x310e5f._0x58987e,_0x310e5f._0x4ab1ef)])throw new Error('MCP\x20server\x20'+_0x292b98+_0x12ea16(_0x310e5f._0x5272b6,0x2d1,_0x310e5f._0x23d9da,0x432));const _0x3fd51d=new StdioClientTransport({'command':_0x5282f0[_0x12ea16(_0x310e5f._0x570f0c,_0x310e5f._0x358382,_0x310e5f._0x3be24e,_0x310e5f._0x50cedc)],'args':_0x5282f0[_0x5c7257(_0x310e5f._0x3d1aa0,0x1bb,_0x310e5f._0x38ae0d,0x56)]??[],'env':_0x5282f0[_0x12ea16(_0x310e5f._0x2a96f7,_0x310e5f._0x142163,0x360,0x2a0)],'stderr':_0x5c7257(0x114,-_0x310e5f._0x2c90a8,_0x310e5f._0x4ceb06,0x16a)});await _0x436538[_0x5c7257(_0x310e5f._0x19d0e5,_0x310e5f._0x3126c8,_0x310e5f._0x1c1a4e,_0x310e5f._0x1d56f0)](_0x3fd51d);}function _0x12ea16(_0x1e4477,_0x36d05f,_0x4408ac,_0xc35326){return _0x4ab00a(_0x1e4477-0xce,_0x36d05f-_0x23e63f._0x33f19d,_0x4408ac,_0xc35326- -0xf2);}return{async 'listTools'(){return await _0x436538['listTools']();},async 'callTool'(_0xb712d5){function _0x42fe01(_0x2f7fff,_0x77952e,_0x4c4127,_0x54a4b1){return _0x12ea16(_0x2f7fff-0x98,_0x77952e-0x99,_0x77952e,_0x54a4b1- -0x3ed);}function _0x56006d(_0x465b04,_0x17b84c,_0x4b6dd9,_0x17137a){return _0x12ea16(_0x465b04-0x149,_0x17b84c-_0x185095._0x8037e8,_0x17b84c,_0x17137a-_0x185095._0x5be4d7);}return await _0x436538[_0x56006d(_0x2a76bc._0x87a048,0x59d,0x75b,_0x2a76bc._0x30cb49)]({'method':_0x56006d(0x60b,_0x2a76bc._0x244472,0x60d,0x6a0),'params':_0xb712d5},CallToolResultSchema);},async 'close'(){function _0x801a98(_0x340437,_0x2a05f7,_0x19036f,_0x193a31){return _0x12ea16(_0x340437-0x42,_0x2a05f7-0x1c4,_0x19036f,_0x340437-_0x4f175f._0x252193);}await _0x436538[_0x801a98(0x689,0x79d,0x7b1,0x7d9)]();}};}async function createMcpToolsFromServers(_0x260abf){const _0x492b8b={_0x377de6:0x169,_0x25d218:0x16c,_0x179f53:0x202,_0x58886f:0x36e,_0x555519:0x8a9,_0x3ef4d3:0x632,_0x1bf4e7:0x63a,_0xae7cc1:0x827,_0x3c83ea:0x83e,_0x2594cd:0x646,_0x4ff6a9:0x64b,_0x46a1eb:0x1e7,_0x3eeaac:0x1e2,_0x4dd9e1:0x390,_0x1a23d3:0x748,_0x93db50:0x649,_0x1e32e7:0x1a0,_0xb0326c:0xc9,_0x4dc9e9:0x1fe,_0x233b14:0x710,_0x2643e5:0x5a0,_0x9f929e:0x878,_0x5bb955:0x22e,_0x3157fb:0x28e,_0x446832:0x2ec,_0x3f388b:0x3c9,_0x1950cf:0x8ab},_0x24f008={_0x5610a6:0x311,_0x5b857f:0x376,_0x2470e3:0x4a1},_0x352ed0={_0x8eff30:0xa3},_0x914a53={_0x57bb69:0xb0,_0x131d1d:0x24},_0x147961={_0xea395b:0x1c7,_0x35183d:0x119,_0x247082:0x88},_0x87c0b1=_0x260abf['connect']??connectMcpServer;function _0x260e72(_0x1b44bf,_0x2e8f6a,_0x285ec6,_0x2c5386){return _0x1932a3(_0x2e8f6a,_0x2e8f6a-_0x147961._0xea395b,_0x1b44bf- -_0x147961._0x35183d,_0x2c5386-_0x147961._0x247082);}const _0x16a818=[],_0x143f5f={},_0x4394f9={},_0xa21eb9=[];function _0x2bebdc(_0x4025e8,_0x409f78,_0x54eb1c,_0x1db0f3){return _0x4ab00a(_0x4025e8-0x15a,_0x409f78-0x1cd,_0x4025e8,_0x1db0f3-0x1f0);}for(const [_0x4dacc3,_0x53c115]of Object['entries'](_0x260abf[_0x260e72(0x256,0x1e3,0x120,0x206)]??{})){if(_0x53c115[_0x260e72(_0x492b8b._0x377de6,_0x492b8b._0x25d218,0x1e1,0xbd)]===![]){_0x143f5f[_0x4dacc3]={'status':_0x260e72(0x2b1,_0x492b8b._0x179f53,0x374,_0x492b8b._0x58886f)};continue;}try{const _0x5ecdb6=await _0x87c0b1(_0x4dacc3,_0x53c115,_0x260abf[_0x2bebdc(0x7e8,0x92d,_0x492b8b._0x555519,0x7e9)]);_0x16a818[_0x2bebdc(_0x492b8b._0x3ef4d3,_0x492b8b._0x1bf4e7,0x676,0x77b)](_0x5ecdb6);const _0x30a886=await _0x5ecdb6[_0x2bebdc(_0x492b8b._0xae7cc1,0x85d,0x775,_0x492b8b._0x3c83ea)]();let _0x400168=0x0;const _0x5f644=[];for(const _0x21caf3 of _0x30a886[_0x260e72(0x30c,0x389,0x329,0x35c)]){const _0x5e3341=_0x260abf[_0x2bebdc(_0x492b8b._0x2594cd,_0x492b8b._0x4ff6a9,0x615,0x594)]?.[_0x4dacc3]?.[_0x21caf3[_0x260e72(0x249,_0x492b8b._0x46a1eb,0x251,_0x492b8b._0x3eeaac)]];_0x5f644[_0x260e72(0x37b,0x395,_0x492b8b._0x4dd9e1,0x376)]({'name':_0x21caf3[_0x2bebdc(0x524,0x682,_0x492b8b._0x1a23d3,_0x492b8b._0x93db50)],..._0x21caf3[_0x260e72(_0x492b8b._0x1e32e7,_0x492b8b._0xb0326c,0x18a,_0x492b8b._0x4dc9e9)]!==void 0x0?{'description':_0x21caf3[_0x2bebdc(0x67f,_0x492b8b._0x233b14,0x42d,_0x492b8b._0x2643e5)]}:{},..._0x21caf3[_0x2bebdc(0x71c,0x711,_0x492b8b._0x9f929e,0x780)]!==void 0x0?{'inputSchema':_0x21caf3[_0x2bebdc(0x677,0x62d,0x63c,0x780)]}:{}});if(_0x5e3341===![])continue;_0x400168+=0x1,_0xa21eb9['push'](createMcpTool({'serverName':resolvePrefix(_0x4dacc3,_0x53c115),'tool':_0x21caf3,'client':_0x5ecdb6}));}_0x4394f9[_0x4dacc3]=_0x5f644,_0x143f5f[_0x4dacc3]={'status':_0x260e72(0x264,0x39c,0x2e5,_0x492b8b._0x5bb955),'toolCount':_0x400168};}catch(_0x2337a5){_0x143f5f[_0x4dacc3]=isUnauthorizedError(_0x2337a5)?{'status':_0x260e72(_0x492b8b._0x3157fb,_0x492b8b._0x446832,0x3a2,_0x492b8b._0x3f388b),'message':getErrorMessage(_0x2337a5)}:{'status':_0x2bebdc(_0x492b8b._0x1950cf,0x7bd,0x6f9,0x739),'message':getErrorMessage(_0x2337a5)};}}return{'tools':_0xa21eb9,'servers':_0x143f5f,'serverTools':_0x4394f9,async 'close'(){function _0x352f49(_0x476472,_0x404eaf,_0x513398,_0x4d1e7d){return _0x260e72(_0x4d1e7d-_0x914a53._0x57bb69,_0x513398,_0x513398-_0x914a53._0x131d1d,_0x4d1e7d-0x133);}function _0x4a0aef(_0x1b5dd4,_0x27e37c,_0x4d55ac,_0x2e0bf1){return _0x260e72(_0x27e37c-0x139,_0x2e0bf1,_0x4d55ac-_0x352ed0._0x8eff30,_0x2e0bf1-0x2c);}await Promise['all'](_0x16a818[_0x4a0aef(_0x24f008._0x5610a6,0x36f,_0x24f008._0x5b857f,_0x24f008._0x2470e3)](_0x39a8a9=>_0x39a8a9[_0x4a0aef(0x340,0x463,0x3f6,0x50b)]()));}};}function getCommand(_0x363f6a){const _0x2eb75d={_0x303bf0:0x5b7,_0x36cedd:0x79b,_0x36e569:0x693,_0x485fac:0x51d,_0x58e8a2:0x5cf,_0x2cef92:0x619,_0x40ea56:0x6cd,_0x59858b:0x630,_0x155a39:0x4df},_0x22bd3c={_0x541820:0x1f2,_0x3ee357:0x528},_0x20b2ef={_0x37fc0c:0xec,_0x4c8105:0x1c8,_0x2bfa35:0xe6};function _0x1d9969(_0x3ac187,_0x1e0c29,_0x170298,_0x42ac9){return _0x4ab00a(_0x3ac187-_0x20b2ef._0x37fc0c,_0x1e0c29-_0x20b2ef._0x4c8105,_0x170298,_0x42ac9-_0x20b2ef._0x2bfa35);}if(_0x363f6a&&typeof _0x363f6a==='object'&&!Array['isArray'](_0x363f6a)&&typeof _0x363f6a[_0x1d9969(_0x2eb75d._0x303bf0,_0x2eb75d._0x36cedd,_0x2eb75d._0x36e569,0x6cd)]===_0x1d9969(0x4f5,0x6a6,_0x2eb75d._0x485fac,_0x2eb75d._0x58e8a2))return _0x363f6a[_0x1d9969(_0x2eb75d._0x2cef92,0x583,0x5b0,_0x2eb75d._0x40ea56)];function _0x4d4f9c(_0x272db7,_0x3bbfa,_0x4e44f0,_0x372008){return _0x4ab00a(_0x272db7-0xb6,_0x3bbfa-_0x22bd3c._0x541820,_0x4e44f0,_0x372008- -_0x22bd3c._0x3ee357);}return _0x1d9969(_0x2eb75d._0x59858b,0x5c0,0x36c,_0x2eb75d._0x155a39);}var MOCK_WORKSPACE_LISTING=[_0x1932a3(0x463,0x436,0x30e,0x1fb),_0x1932a3(0x4c0,0x52a,0x47f,0x57c),_0x4ab00a(0x3e5,0x515,0x63e,0x4cc),'package.json',_0x4ab00a(0x4f7,0x64c,0x676,0x5ee),_0x1932a3(0x49c,0x420,0x47a,0x37f),'src/examples/demo.ts',_0x4ab00a(0x3f4,0x2ba,0x2d9,0x389),_0x4ab00a(0x540,0x43c,0x5bd,0x5a7),'src/tools/mock-tool-runtime.ts',_0x1932a3(0x4bc,0x24a,0x3b1,0x404),_0x1932a3(0x360,0x2df,0x2fa,0x3ea),_0x4ab00a(0x3c3,0x3a9,0x455,0x478),_0x4ab00a(0x686,0x5ed,0x56f,0x58d),'src/models/anthropic-model.ts',_0x1932a3(0x4e9,0x472,0x533,0x424),_0x1932a3(0x35d,0x34e,0x4ae,0x4a7)][_0x1932a3(0x66f,0x4dc,0x4fa,0x392)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x4ab00a(0x469,0x368,0x4eb,0x444),'description':_0x4ab00a(0x56a,0x429,0x659,0x4e4),'input_schema':{'type':_0x1932a3(0x645,0x3fb,0x4eb,0x516),'properties':{'command':{'type':_0x1932a3(0x4d1,0x306,0x3f2,0x447)}},'required':[_0x4ab00a(0x6da,0x646,0x5b0,0x5e7)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x47bca2){return{'output':_0x47bca2,'structured':{'value':_0x47bca2}};}function createUnknownToolResult(_0x479356){const _0x3dbea9={_0x45669c:0x11,_0x241c86:0xf5,_0x9a20f0:0x127,_0x1df809:0xd4,_0x424170:0x85},_0x584562={_0x204ab1:0x16,_0x1a42c1:0x2fc};function _0x2388cf(_0x165448,_0x4a56ee,_0x2e990a,_0x41c630){return _0x4ab00a(_0x165448-_0x584562._0x204ab1,_0x4a56ee-0xce,_0x2e990a,_0x4a56ee- -_0x584562._0x1a42c1);}function _0x558de6(_0x5cebb1,_0x18f5c7,_0x34a33b,_0x373ffd){return _0x1932a3(_0x373ffd,_0x18f5c7-0x3f,_0x34a33b- -0x35d,_0x373ffd-0xc9);}return{'callId':_0x479356['id'],'toolName':_0x479356['name'],'status':_0x558de6(0x128,_0x3dbea9._0x45669c,_0x3dbea9._0x241c86,_0x3dbea9._0x9a20f0),'output':'Unknown\x20tool:\x20'+_0x479356[_0x558de6(-0x67,_0x3dbea9._0x1df809,0x5,-_0x3dbea9._0x424170)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x55225d,_0x4759cb){const _0x284a0f={_0x292d71:0x6a2,_0x25be48:0x537,_0x7ac572:0x4b9,_0x3f4577:0x5a6},_0x19932c={_0x29f123:0x3f},_0x117682={_0x19ea93:0xef};function _0x575162(_0xaca5d,_0x55d4a8,_0x15cbda,_0x3afbae){return _0x1932a3(_0x55d4a8,_0x55d4a8-0x168,_0x15cbda-_0x117682._0x19ea93,_0x3afbae-0x11b);}function _0x398794(_0x24ce4b,_0x5c04fa,_0x17e27c,_0x412d8e){return _0x1932a3(_0x17e27c,_0x5c04fa-_0x19932c._0x29f123,_0x24ce4b-0x295,_0x412d8e-0x10c);}return{'callId':_0x55225d['id'],'toolName':_0x55225d[_0x398794(0x5f7,_0x284a0f._0x292d71,_0x284a0f._0x25be48,_0x284a0f._0x7ac572)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x55225d[_0x398794(0x712,0x7a7,0x79e,_0x284a0f._0x3f4577)]),'exitCode':0x0},'chunks':[_0x4759cb],'meta':createMeta()};}function createMockToolRuntime(){const _0x395d20={_0x1bf85d:0xf,_0x44b0a9:0x726,_0x434dc3:0x695},_0xfe8a10={_0xde469a:0x2a2,_0x5d5c22:0x17f},_0x3f7ee8=async(_0x516178,_0x270ccc)=>{function _0x2c3725(_0x19fa08,_0x5e9894,_0x255793,_0x20b716){return _0x5a72(_0x5e9894- -0x113,_0x19fa08);}if(_0x516178[_0x2c3725(0xaa,0x16f,_0xfe8a10._0xde469a,0x29)]!==_0x2560d1(0x206,-0x81,0xb8,_0xfe8a10._0x5d5c22))return createUnknownToolResult(_0x516178);function _0x2560d1(_0x442b89,_0x2cc6da,_0x15cdb7,_0x4b4c54){return _0x5a72(_0x15cdb7- -0x1b5,_0x2cc6da);}const _0x3c7da2=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x516178,_0x3c7da2);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x34bdee,_0x33a5a8){const _0x4a69b7={_0x26310d:0x33b};function _0x1ba3dd(_0xe5da51,_0x2cec49,_0x385b63,_0x584f48){return _0x5a72(_0x385b63- -_0x4a69b7._0x26310d,_0x584f48);}function _0x973479(_0x55884e,_0x4b9516,_0xa62d28,_0x1a3b7b){return _0x5a72(_0xa62d28-0x3b2,_0x4b9516);}return await Promise[_0x1ba3dd(_0x395d20._0x1bf85d,0x3e,-0x24,0xd6)](_0x34bdee[_0x973479(_0x395d20._0x44b0a9,0x594,0x621,_0x395d20._0x434dc3)](async _0x220bb0=>{return await _0x3f7ee8(_0x220bb0,_0x33a5a8);}));},async 'execute'(_0x366bd2,_0x39276b){return await _0x3f7ee8(_0x366bd2,_0x39276b);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x21ebbb,_0x48e57d){const _0x5bccd4={_0x53af37:0x1e9},_0x392231={_0x204a22:0x127,_0x3078ce:0x3ac};function _0x2019e8(_0x19717f,_0x541678,_0x3f2b39,_0x4afc67){return _0x4ab00a(_0x19717f-0x16f,_0x541678-_0x392231._0x204a22,_0x19717f,_0x3f2b39- -_0x392231._0x3078ce);}return typeof _0x21ebbb===_0x2019e8(-0xea,_0x5bccd4._0x53af37,0x87,0x140)?await _0x21ebbb(_0x48e57d):_0x21ebbb;}function getDelegatedAgentDefinition(_0x3f08b0,_0x528f73){return _0x3f08b0['agents']?.[_0x528f73];}function createRunSummary(_0x4e5ece){const _0x13173e={_0x2555da:0x665,_0x280250:0x764,_0x8ff50e:0x82a,_0x762945:0x2a0,_0x5bd048:0x1f3,_0x3bedd2:0x1a8,_0x1828d8:0x21b,_0x263397:0x18,_0x4bd2b0:0x5bc,_0x57d56c:0x498,_0x460f91:0x30,_0x6be076:0xfc,_0xf53457:0x1c,_0x19cdb4:0x179,_0x42a4bc:0xea,_0x1e9b74:0x581,_0x722545:0x4ae,_0x59cb02:0x862,_0x1a2379:0x68d,_0x35e34c:0x75f,_0x30ed6e:0x8a8},_0x5704f3={_0x3e83d8:0x128,_0x58b506:0x45d},_0x323f2e={_0x1a9ecc:0x261,_0x11b62c:0x14};function _0x415726(_0x546366,_0x22a242,_0x53449b,_0x1724aa){return _0x1932a3(_0x546366,_0x22a242-0x174,_0x53449b-_0x323f2e._0x1a9ecc,_0x1724aa-_0x323f2e._0x11b62c);}function _0xa209bd(_0x2ec97f,_0x5506c1,_0xa2600f,_0x22c7f7){return _0x4ab00a(_0x2ec97f-0x6f,_0x5506c1-_0x5704f3._0x3e83d8,_0x22c7f7,_0x5506c1- -_0x5704f3._0x58b506);}return{'runId':_0x4e5ece[_0x415726(_0x13173e._0x2555da,0x7d9,_0x13173e._0x280250,_0x13173e._0x8ff50e)],'agentId':_0x4e5ece[_0xa209bd(_0x13173e._0x762945,_0x13173e._0x5bd048,_0x13173e._0x3bedd2,_0x13173e._0x1828d8)],'sessionId':_0x4e5ece[_0xa209bd(0x56,-0xed,-0x187,_0x13173e._0x263397)],'status':_0x4e5ece['status'],'parentSessionId':_0x4e5ece[_0x415726(_0x13173e._0x4bd2b0,_0x13173e._0x57d56c,0x602,0x744)],..._0x4e5ece[_0xa209bd(-0xa,-0x1c,_0x13173e._0x460f91,-0x92)]!==void 0x0?{'originToolCallId':_0x4e5ece[_0xa209bd(_0x13173e._0x6be076,-_0x13173e._0xf53457,-_0x13173e._0x19cdb4,-_0x13173e._0x42a4bc)]}:{},..._0x4e5ece['errorMessage']!==void 0x0?{'errorMessage':_0x4e5ece[_0x415726(0x465,_0x13173e._0x1e9b74,0x573,0x5a4)]}:{},..._0x4e5ece['result']?.['finalMessage']!==void 0x0?{'finalMessageText':getTextFromMessage(_0x4e5ece[_0x415726(_0x13173e._0x722545,0x43b,0x57c,0x502)][_0x415726(_0x13173e._0x59cb02,_0x13173e._0x1a2379,_0x13173e._0x35e34c,_0x13173e._0x30ed6e)])}:{}};}function createRunSummaryOutput(_0x2746c2,_0x18483b){const _0x289b71={_0x2f557c:0xe2,_0x12b496:0x6b,_0xab08d7:0x65,_0x28199f:0x2a,_0x275ceb:0x125,_0x322cd9:0x18d,_0x4bba2d:0x1c2},_0x57da64={_0x155760:0x133,_0x1d0be1:0x6,_0x3e60fd:0x4bf},_0x140893={_0x418dd6:0x1e9,_0x24af6d:0x29c},_0x3d3bb2=createRunSummary(_0x2746c2),_0x50ced4=_0x3d3bb2[_0x5140db(-0x5e,_0x289b71._0x2f557c,0x228,-_0x289b71._0x12b496)];function _0x47cf10(_0x120ff7,_0x474a7f,_0x22eb8,_0x47c867){return _0x4ab00a(_0x120ff7-0x1,_0x474a7f-_0x140893._0x418dd6,_0x474a7f,_0x47c867- -_0x140893._0x24af6d);}function _0x5140db(_0x4984ee,_0x549c33,_0x5b52d4,_0x561990){return _0x4ab00a(_0x4984ee-_0x57da64._0x155760,_0x549c33-_0x57da64._0x1d0be1,_0x5b52d4,_0x549c33- -_0x57da64._0x3e60fd);}return createToolOutput(typeof _0x50ced4===_0x5140db(-_0x289b71._0xab08d7,_0x289b71._0x28199f,_0x289b71._0x275ceb,_0x289b71._0x322cd9)&&_0x50ced4[_0x5140db(_0x289b71._0x4bba2d,0x79,-0xed,-_0x289b71._0x28199f)]>0x0?_0x50ced4:_0x18483b,_0x3d3bb2);}function getRunTerminalErrorMessage(_0x959b67){const _0x45b7bd={_0x5399f3:0x118,_0x1b6bdc:0x18b,_0x24bc6b:0x1b1,_0x369662:0x1e0,_0x4e8e17:0x77,_0x537639:0x1d5,_0x150185:0x4a5,_0x254764:0x4ec,_0x2bcd6d:0x579,_0x2da9a3:0x6ab},_0x41716b={_0x1d3238:0x9e},_0xda9309={_0x4b3502:0x40a};function _0x5a638f(_0x13f447,_0x34b782,_0x4518f4,_0xa19a9b){return _0x1932a3(_0x13f447,_0x34b782-0x88,_0x4518f4- -_0xda9309._0x4b3502,_0xa19a9b-0x17a);}const _0x4738d1=_0x959b67?.['state'][_0x5a638f(0x1b0,-0x28,0x54,_0x45b7bd._0x5399f3)]['at'](-0x1);function _0x39ccb9(_0x54dd41,_0x3e8a1b,_0x523b8a,_0x22f2e4){return _0x1932a3(_0x22f2e4,_0x3e8a1b-_0x41716b._0x1d3238,_0x523b8a-0xe8,_0x22f2e4-0x74);}if(_0x4738d1?.[_0x5a638f(-0x1c9,-0x1e2,-_0x45b7bd._0x1b6bdc,-0xa1)]===_0x5a638f(0x37,_0x45b7bd._0x24bc6b,0x48,-0xb3)&&_0x4738d1[_0x5a638f(_0x45b7bd._0x369662,0x56,0x87,0xd4)][_0x5a638f(-_0x45b7bd._0x4e8e17,-0xe1,-0xd6,-_0x45b7bd._0x537639)]()[_0x39ccb9(_0x45b7bd._0x150185,0x507,0x529,_0x45b7bd._0x254764)]>0x0)return _0x4738d1[_0x39ccb9(0x5e1,0x5b2,_0x45b7bd._0x2bcd6d,_0x45b7bd._0x2da9a3)];return void 0x0;}function formatAbortedRunMessage(_0x3f585f,_0x2c0101){const _0x3b9d71={_0x351591:0x38c,_0x1d8494:0x40e,_0x4db0ca:0x49,_0x1e1bba:0x133,_0x45de17:0x2a6,_0x5eee0b:0xd},_0x2b121a={_0x2d6735:0x149},_0x57dc72={_0x3ee205:0x12f,_0x5af33e:0x158},_0x5c0cfa=_0x34d675(_0x3b9d71._0x351591,0x49f,_0x3b9d71._0x1d8494,0x3ee)+_0x3f585f+_0x4bd9df(-_0x3b9d71._0x4db0ca,-0x1f,-0x6a,0xa1);if(!_0x2c0101||_0x2c0101[_0x4bd9df(-_0x3b9d71._0x1e1bba,-_0x3b9d71._0x45de17,_0x3b9d71._0x5eee0b,-0x26b)]()['length']===0x0||_0x2c0101===_0x5c0cfa)return _0x5c0cfa;function _0x34d675(_0x2cb955,_0x51cb66,_0x30bef0,_0x2ca2f0){return _0x1932a3(_0x30bef0,_0x51cb66-_0x57dc72._0x3ee205,_0x2ca2f0- -_0x57dc72._0x5af33e,_0x2ca2f0-0xac);}function _0x4bd9df(_0x22d112,_0x593513,_0x44b3e4,_0x1b7f57){return _0x1932a3(_0x1b7f57,_0x593513-_0x2b121a._0x2d6735,_0x22d112- -0x467,_0x1b7f57-0x2d);}return _0x5c0cfa+'\x20Cause:\x20'+_0x2c0101;}function createAssignTaskTool(_0x324651){const _0x27b49e={_0x34faf9:0x39f,_0x1e5e3f:0x3a8,_0x58b4b1:0x5a3,_0x120670:0x3f6,_0x4f7b03:0x4eb,_0x568100:0x383,_0x5abdb7:0x42d,_0x3958ab:0x356},_0x2cb54b={_0xbf80a:0x11f,_0x8ee9d9:0x2b1,_0x1798b6:0x193,_0x36c4d7:0x4cb,_0x5dbcc0:0x2e2,_0xca5b65:0x538,_0xa0f846:0x9,_0x57b0b3:0x3,_0x532aad:0x19,_0x46788c:0x8a,_0x493765:0x2e,_0x59b71a:0x844,_0x3f2a78:0x782,_0x333a6b:0x766,_0x5e0342:0x754,_0x57415b:0x29a,_0x462ae7:0x1d2,_0x233ac7:0x18d,_0x48572c:0x16f,_0x5b6cea:0x206,_0x260d27:0xd8,_0xac5810:0xf,_0x51e561:0x22c,_0x54ff33:0xa4,_0xef7c9f:0x14d,_0x174ef9:0xa,_0x22804f:0x66,_0x6198fd:0x1c,_0x1f1e94:0x5e0,_0x4f2c96:0x66b,_0x5e20ed:0x64f,_0x23b47b:0x5f7,_0x5b33b1:0xdc,_0x471b58:0x731,_0x220768:0x6c4,_0x1bc045:0x649,_0x2bec2c:0x257,_0x49bdf6:0x270,_0x4138ee:0x3a2,_0x2551aa:0x43a,_0x56703b:0x3a0,_0x1fc8c8:0x440,_0x2e7bd2:0x36,_0x34e560:0xd7,_0x22d737:0x5c,_0xc02ec4:0x3f8,_0x221182:0x56a,_0x1af2c5:0x4e8,_0xe180a:0x3d,_0x3dba29:0x6af,_0x55b81d:0x748,_0x3a29d0:0x16,_0x35636c:0x13d,_0x4ae232:0x78c,_0x5eec98:0x173,_0x3f64f5:0x70,_0x33208f:0xa1,_0x538810:0x75,_0x3bc549:0x83b,_0x26fdaf:0x606,_0x19fefe:0x5a7,_0x38d929:0x27b,_0x4a5679:0x47c,_0x4c5780:0x480,_0x41c6eb:0x85c},_0x3c3f47={_0x570064:0x482,_0x4ebd4d:0x334,_0x3fb74d:0x3da,_0x4ec9c1:0x13d,_0x56796c:0x122},_0x360bdf={_0x25b4f5:0x339,_0xc260c6:0x1bc,_0x283a53:0x83},_0x105f7c={_0x38afb6:0xf1},_0x1362ac={_0x30cf6d:0x4c};function _0x4fe80d(_0x55b041,_0x9ea2b7,_0x163235,_0x28237d){return _0x4ab00a(_0x55b041-_0x1362ac._0x30cf6d,_0x9ea2b7-0x6e,_0x9ea2b7,_0x55b041-0x8c);}function _0x11420c(_0x4dbf42,_0x14e0ec,_0x337d51,_0x2b2933){return _0x4ab00a(_0x4dbf42-_0x105f7c._0x38afb6,_0x14e0ec-0x109,_0x4dbf42,_0x14e0ec- -0x26f);}return defineTool({'name':_0x11420c(_0x27b49e._0x34faf9,_0x27b49e._0x1e5e3f,0x230,0x383),'description':_0x4fe80d(0x47f,_0x27b49e._0x58b4b1,0x417,_0x27b49e._0x120670),'inputSchema':{'type':'object','properties':{'agentId':{'type':'string'},'description':{'type':'string'},'nickname':{'type':'string'},'task':{'type':'string'}},'required':['agentId',_0x4fe80d(0x43c,_0x27b49e._0x4f7b03,_0x27b49e._0x568100,_0x27b49e._0x5abdb7),_0x11420c(0x33d,0x231,_0x27b49e._0x3958ab,0x1ee)]},async *'execute'(_0x54bc08,_0x18b2a4){const _0x22d081={_0x338923:0x187,_0x543f4b:0x1e3,_0x1052e3:0x25b},_0x5afad2={_0x150357:0x12a},_0x126d32=createDelegatedRunId(),_0x268dc={'agentId':_0x54bc08[_0x17e9d2(_0x2cb54b._0xbf80a,0x6a,_0x2cb54b._0x8ee9d9,_0x2cb54b._0x1798b6)],'parentSessionId':_0x18b2a4[_0x271f35(_0x2cb54b._0x36c4d7,0x43a,_0x2cb54b._0x5dbcc0,_0x2cb54b._0xca5b65)],'runId':_0x126d32,..._0x18b2a4[_0x17e9d2(_0x2cb54b._0xa0f846,-0x2d,-0x51,-_0x2cb54b._0x57b0b3)]!==void 0x0?{'toolCallId':_0x18b2a4['toolCallId']}:{}};function _0x17e9d2(_0x46e54e,_0x35d585,_0x5f8b42,_0x3100c2){return _0x11420c(_0x5f8b42,_0x3100c2- -0x24e,_0x5f8b42-_0x5afad2._0x150357,_0x3100c2-0xe);}function _0x271f35(_0x5bc90f,_0x57c7ad,_0x1bb166,_0x8b4972){return _0x11420c(_0x1bb166,_0x57c7ad-_0x360bdf._0x25b4f5,_0x1bb166-_0x360bdf._0xc260c6,_0x8b4972-_0x360bdf._0x283a53);}const _0x52705b=getDelegatedAgentDefinition(_0x324651,_0x54bc08['agentId']);if(!_0x52705b)throw new ToolExecutionError(_0x17e9d2(-_0x2cb54b._0x532aad,-0x6b,_0x2cb54b._0x46788c,_0x2cb54b._0x493765)+_0x54bc08[_0x271f35(0x751,0x71a,0x5a4,_0x2cb54b._0x59b71a)],{'agentId':_0x54bc08[_0x271f35(_0x2cb54b._0x3f2a78,0x71a,_0x2cb54b._0x333a6b,_0x2cb54b._0x5e0342)]});const _0x16316d=new Agent(await resolveDelegatedAgentOptions(_0x52705b,_0x268dc));let _0x20ef59={'runId':_0x126d32,'agentId':_0x54bc08[_0x17e9d2(_0x2cb54b._0x57415b,0x1b3,0x235,0x193)],'sessionId':_0x16316d[_0x17e9d2(-_0x2cb54b._0x462ae7,-_0x2cb54b._0x233ac7,-_0x2cb54b._0x48572c,-0x14d)],'status':_0x17e9d2(-_0x2cb54b._0x5b6cea,-_0x2cb54b._0x260d27,-_0x2cb54b._0xac5810,-0xd7),'parentSessionId':_0x18b2a4[_0x17e9d2(-_0x2cb54b._0x51e561,-_0x2cb54b._0x54ff33,-0xeb,-_0x2cb54b._0xef7c9f)],..._0x18b2a4[_0x17e9d2(-_0x2cb54b._0x174ef9,-_0x2cb54b._0x22804f,-_0x2cb54b._0x6198fd,-0x3)]!==void 0x0?{'originToolCallId':_0x18b2a4[_0x271f35(_0x2cb54b._0x1f1e94,0x584,_0x2cb54b._0x4f2c96,0x5cd)]}:{}};const _0xd1e29e=new AbortController(),_0x2a798e=addAbortListener(_0x18b2a4[_0x271f35(_0x2cb54b._0x5e20ed,_0x2cb54b._0x23b47b,0x6cb,0x566)],()=>{const _0x166241={_0x38bd7b:0x196};function _0x51d17e(_0x4fc67c,_0x13d7b2,_0x4e6792,_0x2b7717){return _0x271f35(_0x4fc67c-_0x166241._0x38bd7b,_0x4e6792- -0x2c3,_0x2b7717,_0x2b7717-0x14d);}function _0x170675(_0x20accb,_0x19288e,_0x3e1e73,_0x42d7f5){return _0x17e9d2(_0x20accb-_0x22d081._0x338923,_0x19288e-_0x22d081._0x543f4b,_0x20accb,_0x42d7f5-_0x22d081._0x1052e3);}_0xd1e29e['abort'](_0x18b2a4[_0x51d17e(0x32c,_0x3c3f47._0x570064,_0x3c3f47._0x4ebd4d,_0x3c3f47._0x3fb74d)]?.[_0x170675(0x126,0x1b1,_0x3c3f47._0x4ec9c1,_0x3c3f47._0x56796c)]);});yield createToolOutput(_0x17e9d2(-0x1d,0x16b,0x20e,_0x2cb54b._0x5b33b1)+_0x20ef59[_0x271f35(_0x2cb54b._0x471b58,_0x2cb54b._0x220768,_0x2cb54b._0x1bc045,0x612)]+'.',{'runId':_0x20ef59[_0x17e9d2(_0x2cb54b._0x2bec2c,_0x2cb54b._0x49bdf6,0xbe,0x13d)],'agentId':_0x20ef59['agentId'],'sessionId':_0x20ef59[_0x271f35(_0x2cb54b._0x4138ee,_0x2cb54b._0x2551aa,0x3d8,0x41c)],'status':_0x20ef59[_0x271f35(_0x2cb54b._0x56703b,_0x2cb54b._0x1fc8c8,0x512,0x319)]});try{const _0x25b022=await _0x16316d[_0x17e9d2(0x19f,-_0x2cb54b._0x2e7bd2,-_0x2cb54b._0x34e560,_0x2cb54b._0x22d737)](_0x54bc08[_0x271f35(_0x2cb54b._0xc02ec4,_0x2cb54b._0x221182,0x57e,_0x2cb54b._0x1af2c5)],{'signal':_0xd1e29e[_0x17e9d2(-_0x2cb54b._0xe180a,0x33,0x16f,0x70)]});_0x20ef59={..._0x20ef59,'status':_0x25b022['status'],'result':_0x25b022};if(_0x25b022['status']!==_0x271f35(0x629,_0x2cb54b._0x3dba29,0x5ca,_0x2cb54b._0x55b81d)){const _0xbfd494=getRunTerminalErrorMessage(_0x25b022),_0x15eb90=formatAbortedRunMessage(_0x20ef59[_0x17e9d2(-0x38,0x189,-_0x2cb54b._0x3a29d0,_0x2cb54b._0x35636c)],_0xbfd494);throw new ToolExecutionError(_0x15eb90,{...createRunSummary(_0x20ef59),'aborted':!![],'errorMessage':_0x15eb90});}return createRunSummaryOutput(_0x20ef59,'Agent\x20run\x20'+_0x20ef59[_0x271f35(0x617,0x6c4,_0x2cb54b._0x4ae232,0x706)]+'\x20completed.');}catch(_0x23ed4a){if(_0x23ed4a instanceof ToolExecutionError)throw _0x23ed4a;if(isAbortError(_0x23ed4a)||_0xd1e29e['signal']['aborted']||_0x18b2a4[_0x17e9d2(_0x2cb54b._0x5eec98,0x1d9,0x111,_0x2cb54b._0x3f64f5)][_0x17e9d2(-_0x2cb54b._0x33208f,-_0x2cb54b._0x46788c,0x3f,-0xa0)]){const _0x12c646=getRunTerminalErrorMessage(_0x20ef59['result'])??(_0x23ed4a instanceof Error?_0x23ed4a[_0x17e9d2(0xb9,-0xcb,0xe7,-_0x2cb54b._0x538810)]:String(_0x23ed4a)),_0x26ca1e=formatAbortedRunMessage(_0x20ef59[_0x271f35(_0x2cb54b._0x3bc549,0x6c4,_0x2cb54b._0x26fdaf,0x676)],_0x12c646);_0x20ef59={..._0x20ef59,'status':'aborted','errorMessage':_0x26ca1e};throw new ToolExecutionError(_0x26ca1e,{...createRunSummary(_0x20ef59),'aborted':!![],'errorMessage':_0x26ca1e});}const _0x2250f5=getRunTerminalErrorMessage(_0x20ef59['result'])??(_0x23ed4a instanceof Error?_0x23ed4a['message']:String(_0x23ed4a))??_0x271f35(0x77b,0x707,0x60f,_0x2cb54b._0x19fefe)+_0x20ef59[_0x17e9d2(0xed,0x124,_0x2cb54b._0x38d929,_0x2cb54b._0x35636c)]+_0x271f35(_0x2cb54b._0x4a5679,_0x2cb54b._0x4c5780,0x3e0,0x37a);_0x20ef59={..._0x20ef59,'status':_0x271f35(0x7a7,0x6e6,0x6dd,_0x2cb54b._0x41c6eb),'errorMessage':_0x2250f5};throw new ToolExecutionError(_0x2250f5,{...createRunSummary(_0x20ef59),'errorMessage':_0x2250f5});}finally{_0x2a798e();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x55553d){return[createAssignTaskTool(_0x55553d)];}import*as _0x5c6f58 from'path';function buildDescription2(_0x29cbac){const _0x1270d0={_0x5d4f1a:0x44,_0x470126:0x8,_0x3394c1:0xb6,_0x2506b2:0x95,_0x387fd9:0x10d,_0x312e5d:0x159,_0x8b93fd:0x59,_0xc3f588:0x261,_0x132b42:0x37b,_0x4f104d:0x242,_0x536be9:0x28a,_0x4e8398:0xb8,_0x97cf8f:0x9e,_0xfddbc6:0x1f8,_0x1eb8a3:0x1ea},_0x43d138={_0x1cdc03:0xa0},_0x50f58c={_0x1cb40a:0x57,_0x2e872b:0x31,_0x38a944:0x3e0};if(_0x29cbac['length']===0x0)return _0x24dca5(_0x1270d0._0x5d4f1a,-_0x1270d0._0x470126,_0x1270d0._0x3394c1,-_0x1270d0._0x2506b2);const _0x3d4962=[_0x24dca5(_0x1270d0._0x387fd9,_0x1270d0._0x312e5d,-0x4c,_0x1270d0._0x8b93fd),_0x24dca5(_0x1270d0._0xc3f588,0x137,_0x1270d0._0x132b42,0x128),_0x4dd15c(0x350,_0x1270d0._0x4f104d,_0x1270d0._0x536be9,0x26b),'Available\x20skills\x20(skill_name:\x20description):',..._0x29cbac[_0x24dca5(0x4d,0x120,-_0x1270d0._0x4e8398,-_0x1270d0._0x97cf8f)](_0x482b40=>'-\x20'+_0x482b40['name']+':\x20'+_0x482b40[_0x4dd15c(0xd3,-0x6d,-0x18b,-0x30)])];function _0x4dd15c(_0x4ee875,_0x49f004,_0x1d9eda,_0x29be3b){return _0x4ab00a(_0x4ee875-_0x50f58c._0x1cb40a,_0x49f004-_0x50f58c._0x2e872b,_0x49f004,_0x29be3b- -_0x50f58c._0x38a944);}function _0x24dca5(_0x550759,_0x3963d0,_0x1fbd41,_0x3b1f84){return _0x4ab00a(_0x550759-0x1d8,_0x3963d0-_0x43d138._0x1cdc03,_0x3b1f84,_0x550759- -0x3f9);}return _0x3d4962[_0x24dca5(_0x1270d0._0xfddbc6,_0x1270d0._0x1eb8a3,0x17b,0x1b8)]('\x0a');}function createLoadSkillTool(_0x1df4bd){const _0x56af5e={_0x2bc640:0x3b7,_0x1c4dcd:0x3c2,_0x219699:0x357,_0x5e682b:0x503,_0x155e38:0x59b,_0x2ddfdf:0x516,_0x1a469b:0x3e4,_0x2ce8f0:0x51a,_0x14b699:0x40f,_0x4872ac:0x4d6,_0x1fa831:0x325,_0x9ea40a:0x389,_0x189e03:0x224,_0x3383e8:0x35c,_0x49aa52:0x4e,_0x541970:0x2e,_0x5d5390:0x29,_0x65ad22:0x9b,_0x2bd6ef:0x21},_0x39c0db={_0x53697f:0x3dc,_0x5ef55a:0x7c,_0x26cce6:0x155,_0x1e084b:0x4d8,_0x30cb20:0x3e6,_0x47260f:0x321,_0x16c36b:0x205,_0x19b3c5:0x1eb,_0x49198f:0x23c,_0x166f30:0x193,_0x82a43a:0x217,_0x23bf59:0x1fa,_0x740719:0x33d,_0x4f18d7:0x200,_0x50727c:0x366,_0x5d187a:0x283,_0x10875d:0x175,_0x11ba1e:0x3e7,_0x2a4dd2:0x256,_0x14467e:0x273,_0x3d17a8:0x1cc,_0x31d0dd:0x1ad,_0x36d259:0x185,_0x8c420d:0x330,_0x19e50f:0xd0,_0x55e35f:0x23a,_0x3123b8:0x37f,_0x583c4f:0x23c,_0x177e15:0x1c3,_0x5c37f0:0x305,_0x51aef8:0x3db,_0x6b88f3:0x3eb,_0xc0d7f0:0x3f0,_0x4a8561:0x411,_0x2554e6:0x304,_0x586e9d:0x339,_0x58d53e:0x19,_0x2eefe0:0xdf,_0x4b90cc:0xcf,_0x21580f:0x13,_0x523183:0x15,_0x75cae6:0x521},_0x5368aa={_0x183eec:0x131,_0x569bb1:0x198},_0x259a0a={_0x11f408:0x39},_0x172433=new Map(_0x1df4bd[_0x155852(_0x56af5e._0x2bc640,_0x56af5e._0x1c4dcd,_0x56af5e._0x219699,_0x56af5e._0x5e682b)][_0x155852(0x480,0x4a9,0x598,_0x56af5e._0x155e38)](_0x57cd5c=>[_0x57cd5c[_0x187aa3(0x196,-0x49,0x9b,0x208)],_0x57cd5c]));function _0x187aa3(_0x12452d,_0x23a42c,_0x5e0076,_0x18af47){return _0x1932a3(_0x23a42c,_0x23a42c-0x1cb,_0x5e0076- -0x2c7,_0x18af47-_0x259a0a._0x11f408);}function _0x155852(_0x585df5,_0x2a35ba,_0x161d2e,_0x4c8eb6){return _0x1932a3(_0x161d2e,_0x2a35ba-0x38,_0x585df5-_0x5368aa._0x183eec,_0x4c8eb6-_0x5368aa._0x569bb1);}const _0x57f222=buildDescription2(_0x1df4bd[_0x155852(0x3b7,_0x56af5e._0x2ddfdf,0x294,_0x56af5e._0x1a469b)]);return defineTool({'name':_0x155852(0x4ee,_0x56af5e._0x2ce8f0,_0x56af5e._0x14b699,_0x56af5e._0x4872ac),'description':_0x57f222,'inputSchema':{'type':_0x187aa3(_0x56af5e._0x1fa831,_0x56af5e._0x9ea40a,_0x56af5e._0x189e03,_0x56af5e._0x3383e8),'properties':{'name':{'type':_0x187aa3(0x239,0xd0,0x12b,-_0x56af5e._0x49aa52)}},'required':[_0x187aa3(-_0x56af5e._0x541970,-_0x56af5e._0x5d5390,_0x56af5e._0x65ad22,_0x56af5e._0x2bd6ef)]},async *'execute'(_0xe6f0fa){const _0x2fedf5={_0x18fadb:0xc8};function _0x5d49ba(_0x9fc46b,_0x5cd429,_0x55f79c,_0x28e5b1){return _0x187aa3(_0x9fc46b-0x1f2,_0x9fc46b,_0x55f79c-0x1a1,_0x28e5b1-0x11b);}const _0x3f9e15=_0x172433[_0x5d49ba(0x444,_0x39c0db._0x53697f,0x3e3,0x324)](_0xe6f0fa['name']);if(!_0x3f9e15){const _0x116d72=Array[_0x2831ef(-0xb,_0x39c0db._0x5ef55a,0xa6,_0x39c0db._0x26cce6)](_0x172433[_0x2831ef(0x22f,0x2fb,0x275,0x36e)]())[_0x5d49ba(_0x39c0db._0x1e084b,_0x39c0db._0x30cb20,0x3d4,_0x39c0db._0x47260f)](',\x20');throw new ToolExecutionError(_0x2831ef(0xd3,-0x10,_0x39c0db._0x16c36b,_0x39c0db._0x19b3c5)+_0xe6f0fa[_0x5d49ba(0xee,0x2d5,_0x39c0db._0x49198f,_0x39c0db._0x166f30)]+_0x2831ef(0xab,_0x39c0db._0x82a43a,0x1b9,_0x39c0db._0x23bf59)+_0x116d72,{'name':_0xe6f0fa[_0x5d49ba(_0x39c0db._0x740719,0x110,0x23c,0x173)]});}const _0x508b8c=await _0x1df4bd[_0x5d49ba(_0x39c0db._0x4f18d7,0x1ee,0x294,_0x39c0db._0x50727c)](_0x3f9e15),_0x498654=_0x3f9e15[_0x2831ef(_0x39c0db._0x5d187a,_0x39c0db._0x10875d,0x357,0x368)][_0x5d49ba(0x4da,0x4bc,_0x39c0db._0x11ba1e,0x32c)]??_0x5c6f58[_0x5d49ba(0x24b,0x2d9,0x16d,0x6a)](_0x3f9e15[_0x2831ef(0x283,_0x39c0db._0x2a4dd2,0x22a,_0x39c0db._0x14467e)][_0x2831ef(_0x39c0db._0x3d17a8,_0x39c0db._0x31d0dd,_0x39c0db._0x36d259,_0x39c0db._0x8c420d)]),_0x321f43=[_0x2831ef(0x135,_0x39c0db._0x19e50f,0x20c,_0x39c0db._0x55e35f)+_0x508b8c[_0x5d49ba(_0x39c0db._0x3123b8,0x2f4,_0x39c0db._0x583c4f,0x20e)],'',_0x508b8c[_0x5d49ba(0x312,0x328,0x1c1,0x1b8)],'',_0x2831ef(_0x39c0db._0x177e15,0x6c,_0x39c0db._0x5c37f0,0x222),_0x5d49ba(0x4cd,0x27c,_0x39c0db._0x51aef8,_0x39c0db._0x6b88f3)+_0x3f9e15[_0x5d49ba(0x2a5,0x503,_0x39c0db._0xc0d7f0,_0x39c0db._0x4a8561)][_0x5d49ba(_0x39c0db._0x2554e6,0x3ab,_0x39c0db._0x586e9d,0x47c)],_0x2831ef(_0x39c0db._0x58d53e,-0xde,0x158,_0x39c0db._0x2eefe0)+_0x498654]['join']('\x0a');function _0x2831ef(_0x2de8a2,_0x394133,_0x81fbfc,_0x343046){return _0x187aa3(_0x2de8a2-0xfd,_0x343046,_0x2de8a2-0x34,_0x343046-_0x2fedf5._0x18fadb);}return yield createToolOutput(_0x321f43,{'id':_0x508b8c['id'],'name':_0x508b8c[_0x2831ef(_0x39c0db._0x4b90cc,_0x39c0db._0x21580f,-_0x39c0db._0x523183,0x1bd)],'path':_0x3f9e15[_0x5d49ba(_0x39c0db._0x75cae6,0x518,_0x39c0db._0xc0d7f0,0x38a)]['path'],'baseDirectory':_0x498654}),void 0x0;}});}var TODO_STATUSES=new Set([_0x4ab00a(0x30c,0x426,0x4c7,0x425),'in_progress','completed']),TODO_PRIORITIES=new Set(['high',_0x1932a3(0x2f1,0x24f,0x36d,0x3fd),_0x1932a3(0x1f8,0x285,0x336,0x36d)]);function isTodoStatus(_0x357248){const _0x48f3cd={_0x2434a7:0x40b,_0x38a395:0x3f6},_0x9ade50={_0x3ca977:0x4};function _0x30ef81(_0x844872,_0x540ff8,_0x58972f,_0x285a81){return _0x1932a3(_0x540ff8,_0x540ff8-0x10b,_0x58972f-_0x9ade50._0x3ca977,_0x285a81-0x28);}return typeof _0x357248===_0x30ef81(_0x48f3cd._0x2434a7,0x48b,_0x48f3cd._0x38a395,0x522)&&TODO_STATUSES['has'](_0x357248);}function isTodoPriority(_0x59decc){const _0x209fbe={_0x44560a:0x60,_0x435669:0x8b,_0x547a9c:0x19},_0x4fd82b={_0x587d30:0x22c},_0x4e83aa={_0x2e82c9:0x185};function _0x41dd1c(_0x331f91,_0xde0242,_0x1f3045,_0x25ee55){return _0x4ab00a(_0x331f91-_0x4e83aa._0x2e82c9,_0xde0242-0x93,_0xde0242,_0x331f91- -0x47e);}function _0x298fbf(_0x5c1b8c,_0x50f71b,_0x1def9d,_0x501006){return _0x1932a3(_0x501006,_0x50f71b-0x87,_0x5c1b8c-_0x4fd82b._0x587d30,_0x501006-0x11d);}return typeof _0x59decc===_0x41dd1c(0x6b,_0x209fbe._0x44560a,-0xc0,0x106)&&TODO_PRIORITIES[_0x41dd1c(-0x24,-_0x209fbe._0x435669,-_0x209fbe._0x547a9c,-0x134)](_0x59decc);}var TodoStore=class{[_0x1932a3(0x5a9,0x63b,0x4ea,0x3cc)]=new Map();[_0x4ab00a(0x397,0x47d,0x57f,0x41c)](_0x7be3a6){const _0x55b52c={_0x72b004:0x67e,_0x43e48d:0x620,_0x347e46:0x8ac,_0x2beab6:0x89b},_0x58fd02={_0x532b32:0xdc,_0x28dd50:0x231};function _0x42871d(_0x20e048,_0x1278a7,_0x2677ba,_0x43c857){return _0x4ab00a(_0x20e048-0x1bd,_0x1278a7-0x1c9,_0x20e048,_0x2677ba- -0xf7);}function _0x50bb90(_0x4cc2c0,_0x17b596,_0x43ff28,_0x3e5f81){return _0x1932a3(_0x17b596,_0x17b596-_0x58fd02._0x532b32,_0x4cc2c0-_0x58fd02._0x28dd50,_0x3e5f81-0xc7);}return this[_0x50bb90(0x71b,_0x55b52c._0x72b004,0x74b,_0x55b52c._0x43e48d)][_0x50bb90(0x73a,0x5fe,_0x55b52c._0x347e46,_0x55b52c._0x2beab6)](_0x7be3a6)??[];}[_0x1932a3(0x692,0x666,0x52d,0x4c4)](_0x294b48,_0xf64aa7){const _0x561ded={_0x1d4950:0x76b,_0x5c5e4f:0x60f,_0x5a9672:0x49d,_0x299fbf:0x39b},_0x78e12c={_0x53ab68:0xf},_0x30dd10={_0x4cbca7:0x74};function _0x178e8e(_0x50e612,_0x2a339a,_0x56dc95,_0x4e11a1){return _0x1932a3(_0x4e11a1,_0x2a339a-0x17,_0x56dc95- -0x68,_0x4e11a1-_0x30dd10._0x4cbca7);}function _0x102fdd(_0x262743,_0x42fea9,_0x4da530,_0x50d355){return _0x4ab00a(_0x262743-_0x78e12c._0x53ab68,_0x42fea9-0x117,_0x4da530,_0x42fea9-0x12e);}this[_0x102fdd(0x77e,0x70f,_0x561ded._0x1d4950,0x87d)][_0x178e8e(0x3cc,_0x561ded._0x5c5e4f,_0x561ded._0x5a9672,_0x561ded._0x299fbf)](_0x294b48,_0xf64aa7);}[_0x1932a3(0x46b,0x399,0x36c,0x38a)](_0x2dee61){const _0x4ee3a1={_0x185197:0x426,_0x5442bf:0x38a,_0x4cee44:0x1f8,_0x4400d6:0x421,_0x106708:0x2d4,_0x594eae:0x3f1,_0x590cd4:0x352,_0x262087:0x4e4,_0x397794:0x4f2,_0x245383:0x5ef,_0x214ba9:0x727,_0x1e24a7:0x752},_0x263f68={_0x549e35:0x11a,_0x276fa1:0x110},_0x9e372c={_0x278459:0xb,_0x20e35f:0x1f3,_0x4f9ad4:0x84},_0xe22afb=this[_0x37bbe9(_0x4ee3a1._0x185197,0x585,0x575,_0x4ee3a1._0x5442bf)](_0x2dee61),_0x6a6c37={'total':_0xe22afb['length'],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x3adfc4(_0x483cd4,_0x413147,_0x2c4b52,_0x312fca){return _0x4ab00a(_0x483cd4-_0x9e372c._0x278459,_0x413147-_0x9e372c._0x20e35f,_0x413147,_0x312fca- -_0x9e372c._0x4f9ad4);}function _0x37bbe9(_0x53bfe7,_0x321f75,_0x548c65,_0x42d577){return _0x4ab00a(_0x53bfe7-_0x263f68._0x549e35,_0x321f75-_0x263f68._0x276fa1,_0x548c65,_0x53bfe7-0xa);}for(const _0x511330 of _0xe22afb){if(_0x511330[_0x3adfc4(_0x4ee3a1._0x4cee44,0x2b9,0x276,0x2f2)]==='pending')_0x6a6c37[_0x3adfc4(_0x4ee3a1._0x4400d6,_0x4ee3a1._0x106708,0x2cb,0x3a1)]+=0x1;else{if(_0x511330[_0x37bbe9(0x380,_0x4ee3a1._0x594eae,_0x4ee3a1._0x590cd4,0x3f2)]===_0x37bbe9(_0x4ee3a1._0x262087,_0x4ee3a1._0x397794,0x48a,0x47b))_0x6a6c37['inProgress']+=0x1;else _0x6a6c37[_0x37bbe9(_0x4ee3a1._0x245383,0x6c8,_0x4ee3a1._0x214ba9,_0x4ee3a1._0x1e24a7)]+=0x1;}}return _0x6a6c37;}};function validateTodos(_0x52cefb){const _0x54bd65={_0x19d67e:0x21d,_0x3e0aa3:0x1a4,_0x372484:0x285,_0x473d03:0x246,_0x5ca99c:0x178,_0x26ec20:0x47,_0x150e9e:0x51,_0x57cf97:0x8b,_0x7e152e:0x1a4,_0x4175f8:0x7,_0x5c8968:0xd7,_0x18fa5e:0x118,_0x288485:0x59,_0x2c2288:0x10d,_0x26f42a:0x1d0,_0x445d4c:0x196,_0x261d67:0xfc,_0x15f126:0x3e,_0x371d28:0x240,_0x5b9339:0x155,_0x3af65d:0x1ca,_0x444c6e:0x27d,_0x3c4aac:0xf4,_0x1033c7:0xaa,_0x139e84:0x53,_0x481fb0:0xf9,_0x2254ad:0xe0,_0x32b9ad:0x97,_0x32d64c:0xe4,_0x4b127f:0x18a,_0x59a9a1:0x5,_0x3012a8:0x17b,_0x206b24:0xe9,_0x282e7f:0x245,_0x27f124:0x1a,_0x43081c:0xfb,_0x333837:0xc7,_0x4abc75:0x172,_0x5f551b:0xf5,_0x3effc5:0x2b5,_0x5525f9:0x166,_0x331fc2:0x192,_0x2d7bd1:0x254,_0x27829e:0x2d,_0x23a621:0x43,_0x568112:0x279,_0x479077:0x10d,_0x3dfd46:0xb,_0x4178ce:0x54,_0x4ba39b:0x2ec,_0x1af313:0x263,_0x83e0a7:0xf7,_0x288587:0x109,_0x1064f5:0x62,_0x472c75:0x17c,_0x36b67b:0xb2,_0x481f6c:0xeb,_0x350d35:0x133,_0x196d2f:0x10e},_0x423153={_0x4e561b:0x471,_0x4380b4:0x9},_0x1cf845={_0x1c5251:0x29d};if(!Array['isArray'](_0x52cefb[_0x2efef4(0x166,0x109,0x137,0x13f)])||_0x52cefb[_0x3de914(0xae,-0xcb,-0x3b,-_0x54bd65._0x19d67e)][_0x2efef4(0x11c,_0x54bd65._0x3e0aa3,0x1de,_0x54bd65._0x372484)]===0x0)throw new ToolExecutionError(_0x3de914(-_0x54bd65._0x473d03,-0x121,-0x96,-_0x54bd65._0x5ca99c),{'error':_0x2efef4(-_0x54bd65._0x26ec20,0x6,-0xd0,_0x54bd65._0x150e9e)});function _0x2efef4(_0x47e971,_0x5b5c07,_0x583a61,_0x4c41db){return _0x1932a3(_0x4c41db,_0x5b5c07-0xe1,_0x5b5c07- -_0x1cf845._0x1c5251,_0x4c41db-0x104);}for(let _0x527573=0x0;_0x527573<_0x52cefb[_0x3de914(-_0x54bd65._0x57cf97,-0xcb,-0x1c1,-0x174)][_0x2efef4(0x291,_0x54bd65._0x7e152e,0x14a,0x56)];_0x527573+=0x1){const _0x55444b=_0x52cefb[_0x3de914(-_0x54bd65._0x4175f8,-0xcb,-_0x54bd65._0x5c8968,-_0x54bd65._0x18fa5e)][_0x527573];if(!_0x55444b||typeof _0x55444b!=='object')throw new ToolExecutionError(_0x3de914(_0x54bd65._0x288485,-_0x54bd65._0x2c2288,-_0x54bd65._0x26f42a,-_0x54bd65._0x445d4c)+(_0x527573+0x1)+_0x3de914(0xe5,0x29,-0xb,_0x54bd65._0x261d67),{'error':_0x2efef4(_0x54bd65._0x15f126,0xdd,0x5b,_0x54bd65._0x371d28)});if(typeof _0x55444b['id']!==_0x2efef4(0x2a8,_0x54bd65._0x5b9339,0x2,0xd2)||_0x55444b['id']['trim']()[_0x2efef4(_0x54bd65._0x3af65d,0x1a4,_0x54bd65._0x444c6e,0x9f)]===0x0)throw new ToolExecutionError(_0x3de914(-0x1b1,-0x10d,-0x140,-_0x54bd65._0x3c4aac)+(_0x527573+0x1)+':\x20id\x20required',{'error':_0x3de914(-0x103,-0x9a,0x4,_0x54bd65._0x1033c7)});if(typeof _0x55444b[_0x3de914(-_0x54bd65._0x139e84,-_0x54bd65._0x481fb0,-0x2d,-0xf0)]!=='string'||_0x55444b[_0x3de914(-_0x54bd65._0x2254ad,-_0x54bd65._0x481fb0,-0xa2,-0x149)][_0x2efef4(0x152,_0x54bd65._0x32b9ad,_0x54bd65._0x32d64c,-0xb0)]()['length']===0x0)throw new ToolExecutionError('Todo\x20'+(_0x527573+0x1)+_0x3de914(_0x54bd65._0x4b127f,0x93,_0x54bd65._0x59a9a1,_0x54bd65._0x3012a8),{'error':_0x3de914(0x1a8,_0x54bd65._0x206b24,_0x54bd65._0x282e7f,0x1c2)});if(!isTodoStatus(_0x55444b[_0x2efef4(-_0x54bd65._0x27f124,-0x1e,-_0x54bd65._0x43081c,-0x21)]))throw new ToolExecutionError(_0x2efef4(0x203,_0x54bd65._0x333837,0x86,0xd6)+(_0x527573+0x1)+_0x3de914(-0x1f0,-_0x54bd65._0x4abc75,-_0x54bd65._0x5f551b,-_0x54bd65._0x3effc5),{'error':_0x3de914(-_0x54bd65._0x5525f9,-_0x54bd65._0x331fc2,-_0x54bd65._0x5f551b,-_0x54bd65._0x2d7bd1)});if(!isTodoPriority(_0x55444b[_0x3de914(0x41,_0x54bd65._0x27829e,0x68,_0x54bd65._0x23a621)]))throw new ToolExecutionError(_0x3de914(-_0x54bd65._0x568112,-_0x54bd65._0x479077,_0x54bd65._0x3dfd46,_0x54bd65._0x4178ce)+(_0x527573+0x1)+_0x2efef4(_0x54bd65._0x4ba39b,0x1c8,_0x54bd65._0x1af313,0xbb),{'error':'invalid_todo_priority'});}const _0x4c8c9a=_0x52cefb[_0x2efef4(_0x54bd65._0x83e0a7,_0x54bd65._0x288587,-0x60,_0x54bd65._0x1064f5)][_0x2efef4(_0x54bd65._0x472c75,_0x54bd65._0x36b67b,0x13e,_0x54bd65._0x481f6c)](_0x139e1c=>_0x139e1c['id']);function _0x3de914(_0x2ecb60,_0x3e2ed3,_0x5989e2,_0x9cc11a){return _0x1932a3(_0x9cc11a,_0x3e2ed3-0x1e,_0x3e2ed3- -_0x423153._0x4e561b,_0x9cc11a-_0x423153._0x4380b4);}if(new Set(_0x4c8c9a)[_0x3de914(-0x6f,-0x1ac,-0x1cd,-_0x54bd65._0x350d35)]!==_0x4c8c9a[_0x2efef4(0xfd,0x1a4,_0x54bd65._0x19d67e,0xb3)])throw new ToolExecutionError('Todo\x20items\x20must\x20have\x20unique\x20IDs',{'error':_0x3de914(-0x1c,-0x42,-_0x54bd65._0x196d2f,0xf8)});}function createStatsProgress(_0xa44c8e){const _0x3968f3={_0x179c7a:0x10c,_0x5e2ced:0xd4,_0xef6ab:0x209},_0x526c32={_0x511115:0x19b,_0xeeb49:0x2e5},_0x50cf69={_0x5c5c2b:0x164};function _0x39fcbb(_0x42e29d,_0x12eb9a,_0x5bfbf3,_0x50ee68){return _0x1932a3(_0x42e29d,_0x12eb9a-0x15f,_0x50ee68- -_0x50cf69._0x5c5c2b,_0x50ee68-0xb5);}function _0x2cde52(_0x6e2f9b,_0x7ade87,_0x25c3aa,_0x3c5c19){return _0x1932a3(_0x25c3aa,_0x7ade87-_0x526c32._0x511115,_0x3c5c19- -_0x526c32._0xeeb49,_0x3c5c19-0x1bd);}return _0xa44c8e['total']>0x0?Math[_0x39fcbb(0xe0,0x17f,_0x3968f3._0x179c7a,0x16a)](_0xa44c8e[_0x2cde52(0x17f,_0x3968f3._0x5e2ced,0x345,_0x3968f3._0xef6ab)]/_0xa44c8e['total']*0x64)+'%':'0%';}function createReminderItems(_0x5295a6){const _0x1eaf4b={_0x593fb8:0x7c,_0x5b55e6:0xa6,_0xf3610b:0xde};function _0x255992(_0x51b15b,_0x2933be,_0x373b86,_0x317d02){return _0x1932a3(_0x373b86,_0x2933be-_0x1eaf4b._0x593fb8,_0x317d02- -_0x1eaf4b._0x5b55e6,_0x317d02-_0x1eaf4b._0xf3610b);}return _0x5295a6['map'](_0x55517a=>({'content':_0x55517a['content'],'status':_0x55517a[_0x255992(0x1bf,0x111,0x24f,0x1d9)],'id':_0x55517a['id']}));}function createStructuredResult(_0x37a1a8,_0x4e3e79,_0xe69d2d,_0x56a9ec){const _0x44273d={_0x279b82:0x42f,_0x361c50:0x5e4},_0x5b6139={_0x230425:0xe5,_0x29dc04:0x17};function _0x2bcfd7(_0x4001ea,_0xd796a8,_0x553306,_0xdcc479){return _0x4ab00a(_0x4001ea-0x171,_0xd796a8-_0x5b6139._0x230425,_0x4001ea,_0x553306- -_0x5b6139._0x29dc04);}function _0x1e3d0c(_0x3bd555,_0x455721,_0x51bdbc,_0x3fe4eb){return _0x4ab00a(_0x3bd555-0x170,_0x455721-0xd8,_0x51bdbc,_0x455721-0xac);}return{'allCompleted':_0x56a9ec,'items':_0x4e3e79[_0x2bcfd7(0x397,0x309,_0x44273d._0x279b82,0x3de)](_0x3a8ec0=>({'id':_0x3a8ec0['id'],'content':_0x3a8ec0[_0x1e3d0c(0x3bd,0x51b,0x4fb,0x496)],'status':_0x3a8ec0[_0x2bcfd7(0x320,0x407,0x35f,0x49e)],'priority':_0x3a8ec0[_0x1e3d0c(0x5cb,0x641,0x734,0x755)],'createdAt':_0x3a8ec0[_0x1e3d0c(0x477,0x41d,0x4a8,0x36c)]})),'progress':createStatsProgress(_0xe69d2d),'recentChanges':!![],'sessionId':_0x37a1a8,'stats':_0xe69d2d,'todosWritten':_0x4e3e79[_0x1e3d0c(0x59e,_0x44273d._0x361c50,0x717,0x5e3)]};}function createOutputText(_0x3af103,_0x222215){const _0x31753a={_0x21f594:0x12c,_0x189834:0x4ea,_0x1d670f:0x5db,_0xa9bf6:0x4cb,_0x5b8ec9:0x1a1,_0x224f86:0x4d8,_0x32e016:0x42f,_0x2224fd:0x471,_0x573d43:0x3d0,_0x5d29c4:0x206,_0x1007e6:0x6d,_0x2b69f5:0x3a,_0x18ded0:0xc1,_0x3b48ce:0x48a,_0xd16ed8:0x40c},_0x48c393={_0x836378:0x584},_0x100f6b=JSON[_0x925633(-0x240,-0x299,-0x8f,-_0x31753a._0x21f594)](createReminderItems(_0x3af103));function _0x925633(_0x5dd476,_0x4a66f8,_0x63fae4,_0x1965c4){return _0x4ab00a(_0x5dd476-0x1d5,_0x4a66f8-0x169,_0x63fae4,_0x1965c4- -_0x48c393._0x836378);}function _0x5402a3(_0x46c097,_0x3672dc,_0x7f4902,_0x4f316e){return _0x1932a3(_0x46c097,_0x3672dc-0x10e,_0x7f4902-0x89,_0x4f316e-0x12c);}if(_0x222215)return _0x5402a3(0x586,_0x31753a._0x189834,_0x31753a._0x1d670f,_0x31753a._0xa9bf6)+_0x3af103['length']+_0x925633(0x1a8,0x16a,_0x31753a._0x5b8ec9,0x99)+_0x100f6b+_0x5402a3(_0x31753a._0x224f86,_0x31753a._0x32e016,_0x31753a._0x2224fd,_0x31753a._0x573d43);return _0x925633(_0x31753a._0x5d29c4,_0x31753a._0x1007e6,_0x31753a._0x2b69f5,_0x31753a._0x18ded0)+_0x100f6b+_0x5402a3(0x530,_0x31753a._0x3b48ce,_0x31753a._0x2224fd,_0x31753a._0xd16ed8);}function createTodoWriteTool(_0x542031=new TodoStore()){const _0x315519={_0x373931:0x57b,_0x33392:0x314,_0x3d6c02:0x2c4,_0x4a2865:0x2c7,_0x21be33:0x285,_0x51e531:0x484,_0x37a821:0x2a0,_0x37ab5c:0x271,_0x20a604:0xec,_0x331317:0xab,_0x3c27c7:0xc8,_0x1adf4c:0x88,_0x3da45f:0x31a,_0x13108c:0x19d,_0x4c7fa3:0x1d1,_0x2fc1d3:0x1c1,_0x393f69:0x12f,_0x4eb46b:0xd9},_0x48ab5d={_0x1ef190:0x149,_0xe3bc45:0x16a,_0x1f17fa:0x24b,_0x4caca1:0x18c,_0x3fd112:0x3d,_0x556455:0xa2,_0x31a301:0x23e,_0x1c753b:0x31c,_0x268251:0x1c6,_0x13dd32:0x3e5,_0x42843e:0x1ea,_0x10fb29:0x77},_0xc0763d={_0x19a32e:0x2cd};function _0x2a2acd(_0x50905f,_0x598d82,_0x50f038,_0x75e165){return _0x1932a3(_0x50905f,_0x598d82-0x85,_0x598d82- -_0xc0763d._0x19a32e,_0x75e165-0x192);}function _0x40e565(_0x4eae2d,_0x21d0ae,_0x4b98ee,_0x9b7795){return _0x4ab00a(_0x4eae2d-0x92,_0x21d0ae-0xd1,_0x4eae2d,_0x21d0ae- -0x1ce);}return defineTool({'name':'TodoWrite','description':'Use\x20this\x20tool\x20to\x20create\x20and\x20manage\x20a\x20structured\x20task\x20list\x20for\x20your\x20current\x20coding\x20session.\x20This\x20helps\x20you\x20track\x20progress,\x20organize\x20complex\x20tasks,\x20and\x20demonstrate\x20thoroughness\x20to\x20the\x20user.\x0aIt\x20also\x20helps\x20the\x20user\x20understand\x20the\x20progress\x20of\x20the\x20task\x20and\x20overall\x20progress\x20of\x20their\x20requests.\x0a\x0a##\x20When\x20to\x20Use\x20This\x20Tool\x0aUse\x20this\x20tool\x20proactively\x20in\x20these\x20scenarios:\x0a\x0a1.\x20Complex\x20multi-step\x20tasks\x20-\x20When\x20a\x20task\x20requires\x203\x20or\x20more\x20distinct\x20steps\x20or\x20actions\x0a2.\x20Non-trivial\x20and\x20complex\x20tasks\x20-\x20Tasks\x20that\x20require\x20careful\x20planning\x20or\x20multiple\x20operations\x0a3.\x20User\x20explicitly\x20requests\x20todo\x20list\x20-\x20When\x20the\x20user\x20directly\x20asks\x20you\x20to\x20use\x20the\x20todo\x20list\x0a4.\x20User\x20provides\x20multiple\x20tasks\x20-\x20When\x20users\x20provide\x20a\x20list\x20of\x20things\x20to\x20be\x20done\x20(numbered\x20or\x20comma-separated)\x0a5.\x20After\x20receiving\x20new\x20instructions\x20-\x20Immediately\x20capture\x20user\x20requirements\x20as\x20todos\x0a6.\x20When\x20you\x20start\x20working\x20on\x20a\x20task\x20-\x20Mark\x20it\x20as\x20in_progress\x20BEFORE\x20beginning\x20work.\x20Ideally\x20you\x20should\x20only\x20have\x20one\x20todo\x20as\x20in_progress\x20at\x20a\x20time\x0a7.\x20After\x20completing\x20a\x20task\x20-\x20Mark\x20it\x20as\x20completed\x20and\x20add\x20any\x20new\x20follow-up\x20tasks\x20discovered\x20during\x20implementation\x0a\x0a##\x20When\x20NOT\x20to\x20Use\x20This\x20Tool\x0a\x0aSkip\x20using\x20this\x20tool\x20when:\x0a1.\x20There\x20is\x20only\x20a\x20single,\x20straightforward\x20task\x0a2.\x20The\x20task\x20is\x20trivial\x20and\x20tracking\x20it\x20provides\x20no\x20organizational\x20benefit\x0a3.\x20The\x20task\x20can\x20be\x20completed\x20in\x20less\x20than\x203\x20trivial\x20steps\x0a4.\x20The\x20task\x20is\x20purely\x20conversational\x20or\x20informational\x0a\x0aNOTE\x20that\x20you\x20should\x20not\x20use\x20this\x20tool\x20if\x20there\x20is\x20only\x20one\x20trivial\x20task\x20to\x20do.\x20In\x20this\x20case\x20you\x20are\x20better\x20off\x20just\x20doing\x20the\x20task\x20directly.\x0a\x0a##\x20Task\x20States\x20and\x20Management\x0a\x0a1.\x20**Task\x20States**:\x20Use\x20these\x20states\x20to\x20track\x20progress:\x0a-\x20pending:\x20Task\x20not\x20yet\x20started\x0a-\x20in_progress:\x20Currently\x20working\x20on\x20(limit\x20to\x20ONE\x20task\x20at\x20a\x20time)\x0a-\x20completed:\x20Task\x20finished\x20successfully\x0a\x0a2.\x20**Task\x20Management**:\x0a-\x20Update\x20task\x20status\x20in\x20real-time\x20as\x20you\x20work\x0a-\x20Mark\x20tasks\x20complete\x20IMMEDIATELY\x20after\x20finishing\x20(don\x27t\x20batch\x20completions)\x0a-\x20Only\x20have\x20ONE\x20task\x20in_progress\x20at\x20any\x20time\x0a-\x20Complete\x20current\x20tasks\x20before\x20starting\x20new\x20ones\x0a-\x20Remove\x20tasks\x20that\x20are\x20no\x20longer\x20relevant\x20from\x20the\x20list\x20entirely\x0a\x0a3.\x20**Task\x20Completion\x20Requirements**:\x0a-\x20ONLY\x20mark\x20a\x20task\x20as\x20completed\x20when\x20you\x20have\x20FULLY\x20accomplished\x20it\x0a-\x20If\x20you\x20encounter\x20errors,\x20blockers,\x20or\x20cannot\x20finish,\x20keep\x20the\x20task\x20as\x20in_progress\x0a-\x20When\x20blocked,\x20create\x20a\x20new\x20task\x20describing\x20what\x20needs\x20to\x20be\x20resolved\x0a-\x20Never\x20mark\x20a\x20task\x20as\x20completed\x20if:\x0a-\x20Tests\x20are\x20failing\x0a-\x20Implementation\x20is\x20partial\x0a-\x20You\x20encountered\x20unresolved\x20errors\x0a-\x20You\x20couldn\x27t\x20find\x20necessary\x20files\x20or\x20dependencies\x0a\x0a4.\x20**Task\x20Breakdown**:\x0a-\x20Create\x20specific,\x20actionable\x20items\x0a-\x20Break\x20complex\x20tasks\x20into\x20smaller,\x20manageable\x20steps\x0a-\x20Use\x20clear,\x20descriptive\x20task\x20names\x0a\x0aWhen\x20in\x20doubt,\x20use\x20this\x20tool.\x20Being\x20proactive\x20with\x20task\x20management\x20demonstrates\x20attentiveness\x20and\x20ensures\x20you\x20complete\x20all\x20requirements\x20successfully.','inputSchema':{'type':'object','properties':{'todos':{'type':_0x2a2acd(0x149,0x25c,0x288,0x388),'items':{'type':_0x40e565(_0x315519._0x373931,0x414,_0x315519._0x33392,_0x315519._0x3d6c02),'properties':{'content':{'type':_0x40e565(_0x315519._0x4a2865,0x31b,_0x315519._0x21be33,_0x315519._0x51e531)},'status':{'type':'string'},'priority':{'type':_0x40e565(_0x315519._0x37a821,0x31b,_0x315519._0x37ab5c,0x213)},'id':{'type':_0x2a2acd(-0x40,0x125,_0x315519._0x20a604,0x297)},'createdAt':{'type':'string'}},'required':[_0x2a2acd(0x113,_0x315519._0x331317,_0x315519._0x3c27c7,-_0x315519._0x1adf4c),_0x40e565(_0x315519._0x3da45f,0x1a8,_0x315519._0x13108c,0x28c),_0x2a2acd(0x8c,_0x315519._0x4c7fa3,0x2a4,_0x315519._0x2fc1d3),'id']}}},'required':[_0x2a2acd(_0x315519._0x393f69,_0x315519._0x4eb46b,0x16b,0x0)]},async *'execute'(_0x4cf32b,_0x3b5dd6){const _0x587fed={_0x4d56ea:0x29a,_0x551313:0x1e1},_0x252f0c={_0x4a5196:0x30c},_0x4558be=_0x4cf32b;validateTodos(_0x4558be);const _0x4a97a0=_0x3b5dd6[_0x524305(-_0x48ab5d._0x1ef190,-0x1b2,-_0x48ab5d._0xe3bc45,-_0x48ab5d._0x1f17fa)]||'default',_0xdabe86=new Date()['toISOString']();function _0x524305(_0x570e60,_0x3cdfd9,_0x13e445,_0x24df9e){return _0x40e565(_0x570e60,_0x13e445- -_0x252f0c._0x4a5196,_0x13e445-0x58,_0x24df9e-0x1dd);}function _0x3826b2(_0x466a4c,_0x293c3b,_0x18d3fc,_0x279c0c){return _0x2a2acd(_0x466a4c,_0x293c3b-_0x587fed._0x4d56ea,_0x18d3fc-0x1ea,_0x279c0c-_0x587fed._0x551313);}const _0xb27f23=_0x4558be[_0x524305(-_0x48ab5d._0x4caca1,-0x2f,-_0x48ab5d._0x3fd112,_0x48ab5d._0x556455)][_0x3826b2(_0x48ab5d._0x31a301,_0x48ab5d._0x1c753b,_0x48ab5d._0x268251,_0x48ab5d._0x13dd32)](_0x5f0290=>({'id':_0x5f0290['id'],'content':_0x5f0290[_0x524305(-0x123,0x55,-0x6b,-0x166)],'status':_0x5f0290['status'],'priority':_0x5f0290[_0x3826b2(0x58d,0x46b,0x393,0x5b7)],'sessionId':_0x4a97a0,'createdAt':_0x5f0290[_0x524305(-0x280,-0x7c,-0x169,-0x197)]||_0xdabe86,'updatedAt':_0xdabe86}));_0x542031['setTodos'](_0x4a97a0,_0xb27f23);const _0x481c17=_0x542031[_0x524305(0x6a,-_0x48ab5d._0x42843e,-_0x48ab5d._0x10fb29,-0x15a)](_0x4a97a0),_0x334d3b=_0xb27f23['length']>0x0&&_0xb27f23['every'](_0x18e04c=>_0x18e04c[_0x524305(-0x2a5,-0x149,-0x164,-0x7d)]==='completed');return createToolOutput(createOutputText(_0xb27f23,_0x334d3b),createStructuredResult(_0x4a97a0,_0xb27f23,_0x481c17,_0x334d3b));}});}import{mkdir as _0x2f7be4,writeFile as _0x48d75f}from'fs/promises';import*as _0x17a2e4 from'path';function sanitizeFileName(_0x4e163c){return _0x4e163c['replace'](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x5a96b2,_0x338119){const _0x40b295={_0x179575:0x6d7,_0x5c0d95:0x817,_0x50bae5:0x4ad,_0x41014d:0x7e2,_0xfc95a8:0x736,_0x32638d:0x77f,_0x8e5199:0x706,_0xfe378a:0x69f,_0x345e38:0x612,_0x158523:0x698,_0x5751ef:0x7ab,_0x5c47bd:0x5b1,_0x5c432e:0x6ba,_0x44a6ba:0x5f0,_0x141fb4:0x646,_0xe3eae3:0x713,_0x47f87f:0x6dd,_0x5e3110:0x63a,_0x188d9a:0x730,_0x179bfc:0x551,_0x1b327a:0x80f,_0x4523df:0x767,_0x304f78:0x82b,_0x58292c:0x7ed,_0x5343ec:0x788,_0x4a5050:0x6ef,_0x2d8c0f:0x743,_0x1fa470:0x8fc,_0x134d30:0x784,_0x445747:0x7ec,_0xcd72b3:0x813,_0x3a13e6:0x71b,_0xe526d2:0x732,_0x321c49:0x540,_0x525a0d:0x815,_0x5e7b1c:0x782,_0x3b7305:0x682,_0x439c7b:0x79e,_0x22afe6:0x73c,_0x3b3bc2:0x5e4,_0x4a97b4:0x67d,_0x967161:0x7a3,_0x2d803b:0x76f,_0x556b09:0x612,_0x554907:0x71f,_0x14cfd1:0x6a5,_0x923ca7:0x614,_0x3739c6:0x644,_0x6e11bc:0x73e,_0x4c9be2:0x5a1,_0x2f8427:0x6cf,_0x28ca0a:0x77c,_0x49d34a:0x89b,_0x365856:0x745,_0x211af0:0x725,_0x16a8e0:0x67a,_0x1f4e32:0x5ff,_0xcfa982:0x5c0,_0x9da161:0x61a,_0x3f9370:0x58e,_0x1b0ef6:0x83b,_0x5d1aa4:0x748,_0x330532:0x73e,_0x55790e:0x5eb,_0x295c7a:0x71f,_0x4d63db:0x5e7,_0x32923e:0x555},_0x49f471={_0x972c83:0x1ce,_0x528157:0x42},_0x554d76={_0x3d8025:0x1b7},{maxBytes:_0x585c97,sessionDir:_0x443372}=_0x338119;if(!_0x5a96b2[_0x11b4ca(0x699,0x74d,_0x40b295._0x179575,_0x40b295._0x5c0d95)]||Buffer[_0x11b4ca(0x488,_0x40b295._0x50bae5,0x5d5,0x522)](_0x5a96b2[_0x72331c(_0x40b295._0x41014d,_0x40b295._0xfc95a8,0x71b,0x7a9)],_0x72331c(_0x40b295._0x32638d,_0x40b295._0x8e5199,0x656,0x5aa))<=_0x585c97)return _0x5a96b2;const _0x1519c9=Buffer['byteLength'](_0x5a96b2['output'],_0x11b4ca(0x728,_0x40b295._0xfe378a,_0x40b295._0x345e38,_0x40b295._0x158523));if(!_0x443372){const _0x1a5e27=_0x5a96b2[_0x11b4ca(_0x40b295._0x5751ef,_0x40b295._0x5c47bd,0x6d7,0x72a)]['slice'](0x0,_0x585c97);return{..._0x5a96b2,'output':_0x1a5e27+(_0x72331c(_0x40b295._0x5c432e,0x6f4,0x745,0x62f)+_0x585c97+_0x11b4ca(_0x40b295._0x44a6ba,0x6f5,_0x40b295._0x141fb4,_0x40b295._0xe3eae3)+_0x1519c9+_0x11b4ca(0x5a6,0x6d9,0x6cb,_0x40b295._0x47f87f)),'meta':{..._0x5a96b2[_0x11b4ca(0x4d3,0x673,0x624,_0x40b295._0x5e3110)],'truncated':!![],'originalBytes':_0x1519c9,'transforms':[..._0x5a96b2['meta']['transforms'],_0x72331c(_0x40b295._0x188d9a,_0x40b295._0x179bfc,0x65e,0x6ec)]}};}const _0x16d198=_0x5a96b2[_0x11b4ca(_0x40b295._0x1b327a,0x6ff,_0x40b295._0x4523df,_0x40b295._0x304f78)]+'_'+sanitizeFileName(_0x5a96b2[_0x11b4ca(_0x40b295._0x58292c,0x8cb,_0x40b295._0x5343ec,_0x40b295._0x4a5050)])+_0x11b4ca(0x7ce,0x6bb,_0x40b295._0x2d8c0f,0x71e),_0x17f00b=_0x17a2e4[_0x72331c(_0x40b295._0x1fa470,0x706,_0x40b295._0x134d30,0x7c1)](_0x443372,_0x16d198);function _0x72331c(_0x17c912,_0x38d175,_0x59a2f3,_0x3e1594){return _0x1932a3(_0x3e1594,_0x38d175-0x1b8,_0x59a2f3-0x28a,_0x3e1594-_0x554d76._0x3d8025);}function _0x11b4ca(_0x122fee,_0x1f2aa2,_0xf0c01c,_0x419755){return _0x1932a3(_0x419755,_0x1f2aa2-_0x49f471._0x972c83,_0xf0c01c-0x246,_0x419755-_0x49f471._0x528157);}await _0x2f7be4(_0x443372,{'recursive':!![]}),await _0x48d75f(_0x17f00b,_0x5a96b2[_0x72331c(_0x40b295._0x445747,_0x40b295._0xcd72b3,_0x40b295._0x3a13e6,0x785)],_0x11b4ca(_0x40b295._0xe526d2,_0x40b295._0x321c49,_0x40b295._0x345e38,0x631));let _0x3d70ee=_0x5a96b2[_0x11b4ca(_0x40b295._0x525a0d,_0x40b295._0x5e7b1c,0x6d7,_0x40b295._0x3b7305)]['slice'](0x0,_0x585c97);const _0x565e41=_0x3d70ee[_0x72331c(0x6c2,0x74a,_0x40b295._0x439c7b,_0x40b295._0x22afe6)]('\x0a');_0x565e41>_0x585c97*0.5&&(_0x3d70ee=_0x3d70ee[_0x72331c(0x74d,_0x40b295._0x3b3bc2,_0x40b295._0x4a97b4,_0x40b295._0x967161)](0x0,_0x565e41));const _0x312ea8=['',_0x72331c(_0x40b295._0x2d803b,0x4f2,_0x40b295._0x556b09,_0x40b295._0x554907),_0x11b4ca(_0x40b295._0x14cfd1,_0x40b295._0x923ca7,_0x40b295._0x3739c6,0x5c3)+_0x585c97+_0x11b4ca(0x64a,0x834,_0x40b295._0x6e11bc,0x6b3)+_0x1519c9+_0x72331c(_0x40b295._0x4c9be2,0x6fe,_0x40b295._0x2f8427,0x72f),_0x11b4ca(_0x40b295._0x28ca0a,_0x40b295._0x49d34a,_0x40b295._0x365856,_0x40b295._0x211af0)+_0x17f00b,_0x11b4ca(_0x40b295._0x16a8e0,_0x40b295._0x1f4e32,0x5da,0x515),_0x72331c(_0x40b295._0xcfa982,0x713,_0x40b295._0x9da161,_0x40b295._0x3f9370)][_0x72331c(_0x40b295._0x1b0ef6,0x794,0x784,_0x40b295._0x5d1aa4)]('\x0a');return{..._0x5a96b2,'output':_0x3d70ee+_0x312ea8,'meta':{..._0x5a96b2[_0x11b4ca(_0x40b295._0x330532,_0x40b295._0x55790e,0x624,0x741)],'truncated':!![],'originalBytes':_0x1519c9,'transforms':[..._0x5a96b2['meta'][_0x72331c(0x858,0x794,0x6e7,_0x40b295._0x295c7a)],_0x72331c(_0x40b295._0x4d63db,0x7c3,0x65e,_0x40b295._0x32923e)]}};}function createUpdateTopicTool(){const _0x2895c0={_0x23f520:0x16c,_0x447503:0x7b,_0x2f35b1:0x155,_0xb2836:0x10d,_0x40eadf:0x33,_0x46f19a:0x28e,_0xdaa804:0x1f0,_0x436d2a:0x81},_0x165eae={_0x8e154d:0x370,_0x2da094:0x63b,_0x2312c2:0x535,_0x1fc076:0x710,_0xdd0b64:0x41f,_0x49dd98:0x331,_0x5c5424:0x23d,_0x237010:0x571,_0x3c9dcf:0x4ed,_0x36b86a:0x1fa,_0x49086e:0x128,_0x419a56:0x248,_0x2579f0:0x665,_0x381164:0x519,_0x57c1d2:0x5b3},_0x4275b4={_0x1f4c97:0x1c8,_0x959033:0x538},_0x277126={_0x3e4628:0x294},_0x255b48={_0x16d30d:0x3e},_0x3a58fc={_0x96ded0:0x1,_0x1756b9:0x3f2};function _0x42dfb4(_0x4e13b6,_0x30810e,_0x36d88c,_0x3cc61f){return _0x4ab00a(_0x4e13b6-0x178,_0x30810e-_0x3a58fc._0x96ded0,_0x3cc61f,_0x36d88c- -_0x3a58fc._0x1756b9);}function _0x2eee24(_0x54ab32,_0x137a32,_0x568279,_0x5249df){return _0x4ab00a(_0x54ab32-_0x255b48._0x16d30d,_0x137a32-0x148,_0x568279,_0x54ab32- -0x580);}return defineTool({'name':_0x42dfb4(_0x2895c0._0x23f520,0x1e1,_0x2895c0._0x447503,-0x29),'description':_0x42dfb4(0x260,_0x2895c0._0x2f35b1,_0x2895c0._0xb2836,-_0x2895c0._0x40eadf),'inputSchema':{'type':_0x42dfb4(0x9e,_0x2895c0._0x46f19a,_0x2895c0._0xdaa804,0x1c5),'properties':{'topic':{'type':'string'}},'required':[_0x2eee24(-0xdb,0xf,-_0x2895c0._0x436d2a,-0x12b)]},async *'execute'(_0x5008c6,_0x477e16){const {topic:_0x267e16}=_0x5008c6;if(typeof _0x267e16!==_0x2fcb10(_0x165eae._0x8e154d,0x49f,0x38b,0x438)||_0x267e16['trim']()[_0x3f3bf8(0x67e,_0x165eae._0x2da094,_0x165eae._0x2312c2,_0x165eae._0x1fc076)]===0x0)throw new ToolExecutionError(_0x2fcb10(0x349,_0x165eae._0xdd0b64,_0x165eae._0x49dd98,_0x165eae._0x5c5424),{'error':'invalid_topic'});const _0x4e952c=_0x267e16[_0x3f3bf8(_0x165eae._0x237010,_0x165eae._0x3c9dcf,0x5db,0x44f)]();function _0x2fcb10(_0x2c80b8,_0x1c4ba0,_0x268989,_0x2e6692){return _0x42dfb4(_0x2c80b8-0xb3,_0x1c4ba0-0x14e,_0x268989-_0x277126._0x3e4628,_0x2e6692);}_0x477e16[_0x2fcb10(_0x165eae._0x36b86a,_0x165eae._0x49086e,_0x165eae._0x419a56,0x317)]?.(_0x4e952c);function _0x3f3bf8(_0x44fab4,_0x1a2d33,_0x4228a1,_0x19275c){return _0x42dfb4(_0x44fab4-_0x4275b4._0x1f4c97,_0x1a2d33-0x140,_0x44fab4-_0x4275b4._0x959033,_0x1a2d33);}return yield createToolOutput(_0x3f3bf8(_0x165eae._0x2579f0,_0x165eae._0x381164,_0x165eae._0x57c1d2,0x515)+_0x4e952c+'\x22',{'topic':_0x4e952c}),void 0x0;}});}import{readFile as _0x4a7404,stat as _0x57fcd1}from'fs/promises';import*as _0x50998d from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set(['auto',_0x4ab00a(0x325,0x33b,0x404,0x3c8),_0x1932a3(0x27b,0x34e,0x336,0x373),_0x4ab00a(0x2d0,0x30c,0x46d,0x388)]),PNG_SIGNATURE=Buffer[_0x1932a3(0x3b4,0x15f,0x288,0x3d2)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x19b178,_0x6bb874){const _0x107fa1={_0x15afc2:0x10a,_0x491507:0x4a4,_0x65dd2:0x26b,_0x45e546:0x2fd,_0x5cdf96:0x5d,_0x1d6d35:0x5a,_0x410b0c:0x11a,_0x3dae12:0x155,_0x2d0a10:0x37b,_0x31662b:0x390,_0x28a19c:0x308,_0x44e40c:0x28d,_0x314c78:0x25e,_0x5f039d:0xf2,_0x3abfe2:0x2b,_0x265f67:0x1a4,_0x14aa0f:0xb4,_0x538f26:0x29,_0x156a00:0xf,_0x2e9a5b:0x61,_0x3a246b:0xd3,_0xc35c86:0x94,_0x56c96d:0x121,_0x36ed28:0x48,_0xde18c1:0x5d,_0x75c04c:0x181,_0x1572f5:0x19d,_0x2f9af2:0x12f,_0x6d3011:0x2f8,_0x25edf1:0x20a,_0x417f40:0x1be,_0x110cf0:0x27e,_0x13eebe:0x20e,_0x36180d:0x2bb,_0x4c0eb6:0x295,_0x21d339:0x372,_0x29bcc7:0x345,_0x56883c:0x302,_0x59440f:0xf0,_0x3c1c24:0x128,_0x3c0ca3:0x261,_0x5c93e4:0x1da,_0x9aa4c1:0x28d,_0x1c5f6a:0x405,_0x2b9d9c:0x31e,_0x53b9e6:0x1fa},_0x39ba24={_0x2be693:0xcc,_0xdacf02:0x1e9,_0x1560ed:0x123},_0x145e38={_0x41fe71:0x19b,_0x5841d5:0x18,_0x1f5ab4:0x3ba};if(_0x19b178[_0x41db48(_0x107fa1._0x15afc2,0x5d,0x129,0x127)](0x0,0x8)[_0x41db48(-0x166,-0x34,-0xea,-0xf2)](PNG_SIGNATURE))return _0x82ca5b(0x361,_0x107fa1._0x491507,_0x107fa1._0x65dd2,_0x107fa1._0x45e546);if(_0x19b178[0x0]===0xff&&_0x19b178[0x1]===0xd8&&_0x19b178[0x2]===0xff)return'image/jpeg';const _0x3d280c=_0x19b178[_0x41db48(-0xfa,_0x107fa1._0x5cdf96,0x77,_0x107fa1._0x1d6d35)](0x0,0x6)[_0x82ca5b(_0x107fa1._0x410b0c,0xd5,_0x107fa1._0x3dae12,0x1db)](_0x82ca5b(_0x107fa1._0x2d0a10,_0x107fa1._0x31662b,_0x107fa1._0x28a19c,_0x107fa1._0x44e40c));function _0x41db48(_0x2db320,_0x238b15,_0x2473b4,_0x5a5596){return _0x4ab00a(_0x2db320-_0x145e38._0x41fe71,_0x238b15-_0x145e38._0x5841d5,_0x5a5596,_0x238b15- -_0x145e38._0x1f5ab4);}if(_0x3d280c===_0x41db48(_0x107fa1._0x314c78,_0x107fa1._0x5f039d,_0x107fa1._0x3abfe2,_0x107fa1._0x265f67)||_0x3d280c===_0x41db48(-0x181,-0x3a,_0x107fa1._0x14aa0f,-_0x107fa1._0x538f26))return'image/gif';if(_0x19b178[_0x41db48(_0x107fa1._0x156a00,_0x107fa1._0x5cdf96,-_0x107fa1._0x2e9a5b,_0x107fa1._0x3a246b)](0x0,0x4)[_0x41db48(-_0x107fa1._0xc35c86,0x40,-_0x107fa1._0x56c96d,-_0x107fa1._0x36ed28)]('ascii')===_0x82ca5b(0x1b6,0x2a7,0x1f6,0x267)&&_0x19b178[_0x41db48(0x1d1,_0x107fa1._0xde18c1,0x11,-0x19)](0x8,0xc)['toString']('ascii')===_0x41db48(_0x107fa1._0x75c04c,_0x107fa1._0x1572f5,_0x107fa1._0x2f9af2,0x61))return _0x82ca5b(0x261,_0x107fa1._0x6d3011,_0x107fa1._0x25edf1,0x1fa);const _0x24d626=_0x50998d['extname'](_0x6bb874)[_0x82ca5b(0x12d,0x18c,_0x107fa1._0x417f40,_0x107fa1._0x110cf0)]();function _0x82ca5b(_0x507a94,_0x36c1a6,_0x68f28e,_0x40ad60){return _0x1932a3(_0x36c1a6,_0x36c1a6-_0x39ba24._0x2be693,_0x507a94- -_0x39ba24._0xdacf02,_0x40ad60-_0x39ba24._0x1560ed);}if(_0x24d626===_0x41db48(0x200,_0x107fa1._0x13eebe,0x1d2,_0x107fa1._0x36180d))return _0x41db48(0x2b1,0x287,0x3eb,_0x107fa1._0x4c0eb6);if(_0x24d626===_0x82ca5b(_0x107fa1._0x21d339,_0x107fa1._0x29bcc7,0x320,0x3b2)||_0x24d626===_0x82ca5b(0x1f8,_0x107fa1._0x56883c,_0x107fa1._0x59440f,_0x107fa1._0x3c1c24))return _0x41db48(0xf3,0x121,_0x107fa1._0x3c0ca3,_0x107fa1._0x5c93e4);if(_0x24d626===_0x41db48(0x29d,_0x107fa1._0x9aa4c1,_0x107fa1._0x1c5f6a,_0x107fa1._0x2b9d9c))return'image/gif';if(_0x24d626===_0x82ca5b(0xc7,0x7e,-0x44,_0x107fa1._0x53b9e6))return'image/webp';return void 0x0;}function normalizeDetail(_0x2e35f0){const _0x21303a={_0x4ebe1b:0x2ba,_0x26e01b:0x292,_0x37aba9:0x3b7,_0x3731ca:0x3e7,_0x5ab1f8:0x3ac,_0x216804:0x355,_0x36a047:0x435,_0xd0fcff:0x356,_0x1d3f29:0x4af},_0x53c55d={_0x4352c7:0x72,_0x1cf873:0xc7},_0x40d511={_0x3c0882:0x37};if(_0x2e35f0===void 0x0)return void 0x0;const _0x388781=_0x2e35f0[_0xf39c1e(_0x21303a._0x4ebe1b,0x405,_0x21303a._0x26e01b,0x56b)]()[_0xf39c1e(_0x21303a._0x37aba9,_0x21303a._0x3731ca,_0x21303a._0x5ab1f8,0x320)]();function _0xf39c1e(_0x362db0,_0x408770,_0xaefb4b,_0x592f3e){return _0x4ab00a(_0x362db0-_0x40d511._0x3c0882,_0x408770-0xa6,_0x592f3e,_0x408770- -0x26);}if(!SUPPORTED_DETAILS[_0xf39c1e(0x2be,0x434,0x3b8,_0x21303a._0x216804)](_0x388781))throw new ToolExecutionError(_0x7b8cd0(0x4de,_0x21303a._0x36a047,_0x21303a._0xd0fcff,_0x21303a._0x1d3f29)+_0x2e35f0,{'detail':_0x2e35f0});function _0x7b8cd0(_0x17e3a3,_0xcced1f,_0x16c6c7,_0x24e090){return _0x4ab00a(_0x17e3a3-_0x53c55d._0x4352c7,_0xcced1f-0x2b,_0x17e3a3,_0x24e090-_0x53c55d._0x1cf873);}return _0x388781;}function createViewFileTool(_0x5ed491={}){const _0x5dd102={_0x15661c:0xa1,_0x35fd1f:0x1ac,_0x54e564:0xc2,_0x1dc2ca:0x28d,_0x4b15e4:0x18a,_0x5c709c:0x51,_0x13a071:0x35,_0x5ddac2:0x14b,_0x254f7f:0x7f,_0x32d754:0x22,_0x56ee57:0x19f,_0x2eba88:0xf3,_0x201699:0x6c,_0x39d271:0x247,_0x2b5ef0:0x9,_0x2e42cf:0x1c,_0x1cada3:0x1c1,_0x51c0b3:0x5d,_0x4e1f08:0x5b},_0x48581d={_0x468eb8:0x37e,_0x280372:0x3ca,_0x5cd609:0x35c,_0x5643aa:0x1f6,_0x4677a5:0x464,_0x3de1c1:0x2d1,_0x5391b4:0x4f5,_0x338df8:0x46f,_0x32cfc3:0x592,_0x50bfd1:0x384,_0x3c0040:0x588,_0x47cd62:0x3db,_0x37b189:0x231,_0x88b4ee:0x374,_0x1c6da2:0x32b,_0x28fd05:0x674,_0xe8b428:0x60f,_0x3c7422:0x52c,_0x1a1899:0x4dc,_0xc7dd53:0x5b5,_0x37f6a4:0x4ba,_0x2c91e6:0x19b,_0x1370a3:0x88,_0x59d75a:0x2ed,_0x4c02e8:0x441,_0x44a3f0:0x37d,_0x4a26c3:0x493,_0x3453e8:0x54b,_0x4789a0:0x4dd,_0x67da6f:0x5bb,_0x585eb1:0x67d,_0x4252dc:0x5be,_0x315484:0x63a,_0x1e9a73:0x243,_0x5ec3a5:0x401,_0x2a056f:0x229,_0x486fa5:0x230,_0x53b3fd:0x3c7,_0x31c1f0:0x4fb,_0x1376f3:0x611,_0x549355:0x4af,_0x4633f3:0x4db,_0x424f49:0x37e,_0x3f9e68:0x39e,_0x25a501:0x48d,_0x2b2c90:0x2a5,_0x3a64f7:0x244,_0x55c25b:0x2cf,_0x305e2e:0x273,_0x1a683d:0x37c,_0x455e33:0x452,_0x560a27:0x3a6},_0x359d08={_0x2e7724:0x16c,_0x5679ca:0x1c7},_0x487f98={_0x54338c:0xdd,_0x160f19:0xc4},_0x1bc84c=_0x50998d[_0x3fe041(_0x5dd102._0x15661c,-0x13c,-_0x5dd102._0x35fd1f,-_0x5dd102._0x54e564)](_0x5ed491[_0x225410(-_0x5dd102._0x1dc2ca,-0x289,-0x155,-_0x5dd102._0x4b15e4)]??process[_0x3fe041(0x49,-_0x5dd102._0x5c709c,0x1a7,_0x5dd102._0x13a071)]());function _0x3fe041(_0x5b180f,_0x11148c,_0x2db3f4,_0x1a5244){return _0x1932a3(_0x5b180f,_0x11148c-_0x487f98._0x54338c,_0x1a5244- -0x454,_0x1a5244-_0x487f98._0x160f19);}const _0x2fe839=_0x5ed491[_0x225410(_0x5dd102._0x5ddac2,_0x5dd102._0x254f7f,_0x5dd102._0x32d754,0xdd)]??[],_0x5d08b6=_0x5ed491[_0x3fe041(-0x41,_0x5dd102._0x56ee57,0x152,_0x5dd102._0x2eba88)]??DEFAULT_MAX_BYTES,_0x4f818f=_0x5ed491[_0x3fe041(-0x1cb,_0x5dd102._0x201699,-_0x5dd102._0x39d271,-0xf2)]??_0x225410(0x10,-0x118,-0x61,_0x5dd102._0x2b5ef0);function _0x225410(_0x7852b2,_0x5bb68b,_0x41e814,_0x12bf59){return _0x1932a3(_0x5bb68b,_0x5bb68b-_0x359d08._0x2e7724,_0x12bf59- -0x43f,_0x12bf59-_0x359d08._0x5679ca);}return defineTool({'name':_0x4f818f,'description':_0x225410(-0x1e5,-0x212,-0x14b,-0x1a2),'inputSchema':{'type':'object','properties':{'path':{'type':_0x225410(-0xbd,_0x5dd102._0x2e42cf,0x2b,-0x4d)},'detail':{'type':_0x3fe041(-0xdb,-_0x5dd102._0x1cada3,-0x24,-0x62)}},'required':[_0x225410(0x0,-_0x5dd102._0x51c0b3,_0x5dd102._0x4e1f08,0x20)]},async *'execute'(_0x500fb4){const _0x5ce620={_0x37a980:0xc3,_0x254b6e:0x35e},_0x1660bf={_0x63c79e:0x9c,_0x369959:0x503},_0x167313=resolveAllowedPath(_0x1bc84c,_0x2fe839,_0x500fb4[_0xbbe92b(_0x48581d._0x468eb8,0x240,0x2d5,0x438)]);await assertWorkspaceFile(_0x167313);function _0x19f225(_0x4270b2,_0x2dcaf2,_0x5bcb60,_0x21078a){return _0x225410(_0x4270b2-_0x1660bf._0x63c79e,_0x2dcaf2,_0x5bcb60-0x11f,_0x5bcb60-_0x1660bf._0x369959);}const _0x4f2e6a=await _0x57fcd1(_0x167313);if(_0x4f2e6a[_0xbbe92b(0x1e4,0x23e,0x244,0x30a)]>_0x5d08b6)throw new ToolExecutionError(_0x19f225(0x490,_0x48581d._0x280372,_0x48581d._0x5cd609,0x35b)+_0x500fb4['path'],{'path':_0x500fb4['path'],'maxBytes':_0x5d08b6,'size':_0x4f2e6a[_0xbbe92b(0x1e4,0x21d,0x1ca,_0x48581d._0x5643aa)]});const _0x35d453=await _0x4a7404(_0x167313);function _0xbbe92b(_0x659214,_0x25e65e,_0x20d0a4,_0x191ed5){return _0x225410(_0x659214-_0x5ce620._0x37a980,_0x20d0a4,_0x20d0a4-0x1e9,_0x659214-_0x5ce620._0x254b6e);}const _0x78ef24=detectImageMediaType(_0x35d453,_0x167313);if(!_0x78ef24)throw new ToolExecutionError(_0x19f225(_0x48581d._0x4677a5,0x1d4,0x33f,_0x48581d._0x3de1c1)+_0x500fb4[_0xbbe92b(_0x48581d._0x468eb8,0x394,_0x48581d._0x5391b4,0x31a)],{'path':_0x500fb4[_0xbbe92b(0x37e,0x215,0x28f,0x48d)],'supported':[_0xbbe92b(_0x48581d._0x338df8,_0x48581d._0x32cfc3,0x551,_0x48581d._0x50bfd1),'.jpeg',_0x19f225(_0x48581d._0x3c0040,0x5b1,0x61f,0x512),'.png',_0x19f225(_0x48581d._0x47cd62,_0x48581d._0x37b189,_0x48581d._0x88b4ee,_0x48581d._0x1c6da2)]});const _0x5042c8=normalizeDetail(_0x500fb4[_0xbbe92b(0x20b,0x230,0x1e1,0x160)]),_0x9c9d2d=[_0x19f225(0x51d,_0x48581d._0x28fd05,_0x48581d._0xe8b428,_0x48581d._0x3c7422)+_0x500fb4[_0x19f225(_0x48581d._0x5391b4,_0x48581d._0x1a1899,0x523,0x408)],_0x19f225(_0x48581d._0xc7dd53,0x5cc,_0x48581d._0x37f6a4,0x44f)+_0x78ef24,_0x19f225(0x5e5,0x53a,0x620,0x745)+_0x4f2e6a[_0xbbe92b(0x1e4,_0x48581d._0x2c91e6,_0x48581d._0x1370a3,0x225)]+'\x20bytes'][_0xbbe92b(_0x48581d._0x59d75a,_0x48581d._0x4c02e8,0x228,_0x48581d._0x44a3f0)](_0x5042c8?[_0x19f225(_0x48581d._0x4a26c3,0x42b,_0x48581d._0x3453e8,_0x48581d._0x4789a0)+_0x5042c8]:[])[_0x19f225(_0x48581d._0x67da6f,_0x48581d._0x585eb1,_0x48581d._0x4252dc,_0x48581d._0x315484)]('\x0a'),_0x165360=[{'type':_0xbbe92b(0x3a3,_0x48581d._0x1e9a73,_0x48581d._0x5ec3a5,0x32e),'source':{'type':_0xbbe92b(0x304,0x2e4,_0x48581d._0x2a056f,_0x48581d._0x486fa5),'media_type':_0x78ef24,'data':_0x35d453[_0x19f225(0x4a6,0x293,_0x48581d._0x53b3fd,_0x48581d._0x31c1f0)]('base64')}},{'type':_0x19f225(_0x48581d._0x1376f3,_0x48581d._0x549355,0x5f5,_0x48581d._0x4633f3),'text':_0x9c9d2d}];return yield createToolOutput(_0x9c9d2d,{'path':_0x500fb4[_0xbbe92b(_0x48581d._0x424f49,_0x48581d._0x3f9e68,0x23f,_0x48581d._0x25a501)],'resolvedPath':_0x167313,'created':_0x4f2e6a[_0xbbe92b(_0x48581d._0x2b2c90,_0x48581d._0x3a64f7,0x237,_0x48581d._0x55c25b)]['toISOString'](),'modified':_0x4f2e6a['mtime'][_0xbbe92b(_0x48581d._0x305e2e,0x384,0x2b8,_0x48581d._0x1a683d)](),'size':_0x4f2e6a[_0x19f225(_0x48581d._0x455e33,0x4b6,0x389,_0x48581d._0x560a27)],'mimeType':_0x78ef24,'encoding':_0x19f225(0x420,0x4c5,0x4a9,0x41c),..._0x5042c8?{'detail':_0x5042c8}:{}},_0x165360),void 0x0;}});}import _0x82d368 from'turndown';import{isIP}from'net';var DEFAULT_MAX_REDIRECTS=0x8,REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]),defaultLookup=async _0x3c3ad9=>{const {lookup:_0x45993d}=await import('dns/promises');return _0x45993d(_0x3c3ad9,{'all':!![],'verbatim':!![]});};function ipv4ToInt(_0x5114b7){const _0x4d19d={_0x314bee:0x205,_0x265f80:0x40b,_0x5bb2f4:0x621,_0x439666:0x50b,_0xf09ea:0x53c,_0x6d0973:0x616},_0xd9cff2={_0x509067:0x15a,_0x1ccfa3:0xca},_0x53fb2c={_0x1ff8d9:0x159},_0x9e18ac=_0x5114b7[_0x163fdf(_0x4d19d._0x314bee,0x12c,0x312,0x1c1)]('.');function _0x163fdf(_0x372710,_0x22359a,_0xd8e97e,_0x9f19c){return _0x1932a3(_0x22359a,_0x22359a-_0x53fb2c._0x1ff8d9,_0x372710- -0x19f,_0x9f19c-0xf4);}if(_0x9e18ac[_0x2ffaa9(_0x4d19d._0x265f80,_0x4d19d._0x5bb2f4,_0x4d19d._0x439666,0x4aa)]!==0x4)return null;let _0x4bca39=0x0;for(const _0x3a5457 of _0x9e18ac){if(!/^\d{1,3}$/[_0x2ffaa9(0x5ad,0x60b,_0x4d19d._0xf09ea,_0x4d19d._0x6d0973)](_0x3a5457))return null;const _0x575ce3=Number(_0x3a5457);if(_0x575ce3>0xff)return null;_0x4bca39=_0x4bca39*0x100+_0x575ce3;}function _0x2ffaa9(_0xf6e1d7,_0x43db8d,_0x27c9ce,_0x41a8f5){return _0x1932a3(_0x41a8f5,_0x43db8d-_0xd9cff2._0x509067,_0x27c9ce-_0xd9cff2._0x1ccfa3,_0x41a8f5-0x1de);}return _0x4bca39>>>0x0;}function isBlockedIpv4(_0x442705){const _0xe92b83={_0x1f3386:0x147,_0x56117e:0xb6,_0x2fd49d:0x37,_0x596846:0x4e3,_0x2a609a:0x12c,_0x1e1a57:0x1b0,_0x4fcd1a:0x133,_0x445793:0x45a,_0x3ddd52:0x3c3,_0x183ad2:0x1c1,_0x301152:0x443,_0x11e15c:0x548,_0x6bd816:0x5da},_0x47c7b6={_0x233b1e:0x1ca,_0x537c00:0x128},_0x363973={_0x239c37:0x5e},_0x33fb37=ipv4ToInt(_0x442705);if(_0x33fb37===null)return!![];function _0x486d50(_0x46188e,_0x9c572e,_0xfb2535,_0x57cec8){return _0x1932a3(_0xfb2535,_0x9c572e-0xf8,_0x46188e-0x170,_0x57cec8-_0x363973._0x239c37);}const _0x2fb7df=(_0x22ac0c,_0x59e8e7)=>{const _0x2064f2=ipv4ToInt(_0x22ac0c);if(_0x2064f2===null)return![];const _0x53271d=_0x59e8e7===0x0?0x0:0xffffffff<<0x20-_0x59e8e7>>>0x0;return(_0x33fb37&_0x53271d)===(_0x2064f2&_0x53271d);};function _0x148967(_0x46822d,_0x5a99a5,_0x32d679,_0x5d42f1){return _0x1932a3(_0x46822d,_0x5a99a5-_0x47c7b6._0x233b1e,_0x32d679- -0x4a9,_0x5d42f1-_0x47c7b6._0x537c00);}return _0x2fb7df(_0x148967(0xf3,_0xe92b83._0x1f3386,_0xe92b83._0x56117e,-_0xe92b83._0x2fd49d),0x8)||_0x2fb7df(_0x486d50(_0xe92b83._0x596846,0x595,0x3b7,0x463),0x8)||_0x2fb7df(_0x148967(-0x157,-0x84,-0x1b,-_0xe92b83._0x2a609a),0xa)||_0x2fb7df('127.0.0.0',0x8)||_0x2fb7df('169.254.0.0',0x10)||_0x2fb7df('172.16.0.0',0xc)||_0x2fb7df(_0x148967(-0x10c,-0x67,-_0xe92b83._0x1e1a57,-_0xe92b83._0x4fcd1a),0x18)||_0x2fb7df(_0x486d50(_0xe92b83._0x445793,_0xe92b83._0x3ddd52,0x3da,0x4ba),0x10)||_0x2fb7df(_0x148967(0x149,0x1b,0x62,_0xe92b83._0x183ad2),0xf)||_0x2fb7df(_0x486d50(0x585,0x585,0x49d,_0xe92b83._0x301152),0x4)||_0x2fb7df(_0x486d50(0x5a2,0x5f0,_0xe92b83._0x11e15c,_0xe92b83._0x6bd816),0x4);}function expandIpv6(_0x412493){const _0x4fa71e={_0x229e4b:0x270,_0x4e76cd:0x2bd,_0x427ae5:0x18c,_0x2b93da:0x1a2,_0xc75b9b:0x220,_0x747fef:0x10c,_0x537cff:0x15f,_0x176157:0x310,_0x35e3ad:0x14c,_0x16d94b:0x635,_0x4b99b2:0x5df,_0xa35acb:0x688,_0x89237:0x42b,_0x2b5b72:0x1a2,_0x178ac8:0x30b,_0x4bbf1c:0x70c,_0x18063f:0x781,_0x393a99:0x1ef,_0x11578e:0x34c},_0x4d4a5c={_0x1263e3:0x8a,_0x5cfb08:0x1d9},_0x4fcb8a={_0x9fc10a:0xfd};function _0x22792c(_0x4e0b29,_0x11ea1b,_0x1e913f,_0xd84597){return _0x4ab00a(_0x4e0b29-0x126,_0x11ea1b-0x55,_0x11ea1b,_0x1e913f-_0x4fcb8a._0x9fc10a);}let _0x5ca3bc=_0x412493,_0x17174e;const _0x4cce05=_0x5ca3bc[_0x13be59(0x3f9,0x3bb,0x3de,_0x4fa71e._0x229e4b)](':');_0x5ca3bc[_0x13be59(0x312,0x344,_0x4fa71e._0x4e76cd,_0x4fa71e._0x427ae5)](_0x4cce05+0x1)[_0x13be59(_0x4fa71e._0x2b93da,0xe8,_0x4fa71e._0xc75b9b,_0x4fa71e._0x747fef)]('.')&&(_0x17174e=_0x5ca3bc[_0x13be59(0x147,0x428,_0x4fa71e._0x4e76cd,_0x4fa71e._0x537cff)](_0x4cce05+0x1),_0x5ca3bc=_0x5ca3bc[_0x13be59(0x3d5,0x28c,0x2bd,0x1cf)](0x0,_0x4cce05+0x1));function _0x13be59(_0x5d9c3e,_0x40a66b,_0x55ce30,_0x2a04b5){return _0x4ab00a(_0x5d9c3e-_0x4d4a5c._0x1263e3,_0x40a66b-_0x4d4a5c._0x5cfb08,_0x40a66b,_0x55ce30- -0x22d);}const _0x1f4d76=_0x5ca3bc[_0x13be59(_0x4fa71e._0x176157,0xff,0x26e,_0x4fa71e._0x35e3ad)]('::');if(_0x1f4d76[_0x22792c(0x75e,0x4f5,_0x4fa71e._0x16d94b,_0x4fa71e._0x4b99b2)]>0x2)return null;const _0x27ea41=_0x3ffed3=>_0x3ffed3[_0x13be59(0x39e,0x21e,0x26e,0x29a)](':')['filter'](_0x2dd70f=>_0x2dd70f[_0x13be59(0x27a,0x2ed,0x30b,0x1ab)]>0x0)[_0x13be59(0x26c,0x362,0x219,0xc7)](_0x177a47=>Number[_0x13be59(0x160,0x271,0x147,0x2a9)](_0x177a47,0x10)),_0x248b88=_0x1f4d76[0x0]?_0x27ea41(_0x1f4d76[0x0]):[],_0x4bb45a=_0x1f4d76['length']===0x2&&_0x1f4d76[0x1]?_0x27ea41(_0x1f4d76[0x1]):[],_0x470599=[];if(_0x17174e){const _0x24be2f=ipv4ToInt(_0x17174e);if(_0x24be2f===null)return null;_0x470599[_0x22792c(0x7f3,0x7c6,_0x4fa71e._0xa35acb,0x6ee)](_0x24be2f>>>0x10&0xffff,_0x24be2f&0xffff);}const _0x53ce69=[..._0x4bb45a,..._0x470599],_0x2f24e9=0x8-_0x248b88['length']-_0x53ce69[_0x13be59(0x3bd,_0x4fa71e._0x89237,0x30b,_0x4fa71e._0x2b5b72)];if(_0x1f4d76[_0x13be59(0x1b6,0x1c0,_0x4fa71e._0x178ac8,0x26a)]===0x1)return _0x248b88[_0x22792c(_0x4fa71e._0x4bbf1c,0x59c,0x635,_0x4fa71e._0x18063f)]+_0x53ce69[_0x13be59(_0x4fa71e._0x393a99,0x453,0x30b,0x456)]===0x8?[..._0x248b88,..._0x53ce69]:null;if(_0x2f24e9<0x0)return null;return[..._0x248b88,...new Array(_0x2f24e9)[_0x22792c(_0x4fa71e._0x11578e,0x3fe,0x4aa,0x4be)](0x0),..._0x53ce69];}function isBlockedIpv6(_0x31a3bc){const _0x4768b4={_0x51f775:0x5c1,_0x2f8857:0x620,_0x1a7139:0x868,_0x5b8802:0x8cd,_0x3241c2:0x7c7,_0x56c57e:0x615,_0x49c467:0x722,_0x3a2ee5:0x7bd,_0x1b2975:0x6a3},_0x215b9f=expandIpv6(_0x31a3bc);if(!_0x215b9f||_0x215b9f[_0x281356(_0x4768b4._0x51f775,0x4e2,0x574,_0x4768b4._0x2f8857)](_0x25235f=>Number[_0xa910c(0x57b,0x4a8,0x4a4,0x611)](_0x25235f)))return!![];const _0x23b612=_0x215b9f['slice'](0x0,0x7)[_0x281356(0x7cf,_0x4768b4._0x1a7139,_0x4768b4._0x5b8802,0x69e)](_0x209a78=>_0x209a78===0x0);function _0x281356(_0x312542,_0x2a47f2,_0xcbc4fb,_0x467f69){return _0x4ab00a(_0x312542-0x44,_0x2a47f2-0x5d,_0x2a47f2,_0x312542-0x20f);}if(_0x23b612&&(_0x215b9f[0x7]===0x0||_0x215b9f[0x7]===0x1))return!![];if(_0x215b9f['slice'](0x0,0x5)[_0xa910c(0x6f1,_0x4768b4._0x3241c2,_0x4768b4._0x56c57e,0x768)](_0x14fd78=>_0x14fd78===0x0)&&(_0x215b9f[0x5]===0xffff||_0x215b9f[0x5]===0x0)){const _0x5e41a6=(_0x215b9f[0x6]<<0x10|_0x215b9f[0x7])>>>0x0,_0x21461a=[_0x5e41a6>>>0x18&0xff,_0x5e41a6>>>0x10&0xff,_0x5e41a6>>>0x8&0xff,_0x5e41a6&0xff][_0xa910c(_0x4768b4._0x49c467,_0x4768b4._0x3a2ee5,0x707,_0x4768b4._0x1b2975)]('.');return isBlockedIpv4(_0x21461a);}const _0x13fdcb=_0x215b9f[0x0];if((_0x13fdcb&0xff00)===0xfc00||(_0x13fdcb&0xfe00)===0xfc00)return!![];if((_0x13fdcb&0xffc0)===0xfe80)return!![];if((_0x13fdcb&0xff00)===0xff00)return!![];function _0xa910c(_0x5e6eb9,_0x1aa1ba,_0x963734,_0x2616e9){return _0x1932a3(_0x963734,_0x1aa1ba-0xb9,_0x5e6eb9-0x228,_0x2616e9-0xc9);}return![];}function isBlockedAddress(_0x1402a4){const _0x371560=isIP(_0x1402a4);if(_0x371560===0x4)return isBlockedIpv4(_0x1402a4);if(_0x371560===0x6)return isBlockedIpv6(_0x1402a4);return!![];}async function assertPublicUrl(_0x3d13cc,_0x23d605={}){const _0x8c2607={_0x4c492a:0x57f,_0x3bb277:0x618,_0xb95117:0x6ee,_0x4902fc:0x4ed,_0x2d290c:0x631,_0x2d17ec:0x4f6,_0x1b0bf8:0x6e7,_0x30330e:0x6d6,_0x4e9740:0x442,_0x20140b:0x59e,_0x3d8fc4:0x644,_0x18cef9:0x3b2,_0x532ea2:0x625,_0x4eafcf:0x50b,_0x5e13cd:0x634,_0x327dd8:0x746,_0x255f87:0x443,_0x199a8d:0x631,_0x483284:0x4f3,_0x1e5843:0x4cf,_0x195964:0x4b6,_0xcc68d6:0x731,_0x569255:0x685,_0x3d92a0:0x582,_0x4d4988:0x678,_0x3ba02c:0x4b1,_0x5a2bbc:0x5ca,_0xebb7ef:0x77b,_0x43fbef:0x6e0,_0x461ae9:0x5ee,_0x203d98:0x3ac,_0x2c7b51:0x3a6,_0x1faddc:0x406,_0x5f4c3f:0x412},_0x2b258e={_0x23065e:0x12e,_0x543768:0x32},_0x330a2a={_0x123bf7:0x1cb};let _0x47f05f;try{_0x47f05f=new URL(_0x3d13cc);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x3d13cc});}if(_0x47f05f['protocol']!==_0x47c3f3(_0x8c2607._0x4c492a,_0x8c2607._0x3bb277,_0x8c2607._0xb95117,_0x8c2607._0x4902fc)&&_0x47f05f[_0x5da786(_0x8c2607._0x2d290c,0x557,0x58d,0x791)]!==_0x5da786(0x4bf,0x394,_0x8c2607._0x2d17ec,0x507))throw new ToolExecutionError(_0x5da786(0x5b1,_0x8c2607._0x1b0bf8,_0x8c2607._0x30330e,_0x8c2607._0x4e9740),{'url':_0x3d13cc});if(_0x47f05f['username']||_0x47f05f['password'])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x47f05f[_0x47c3f3(_0x8c2607._0x20140b,_0x8c2607._0x3d8fc4,0x4ef,0x656)]+'//'+_0x47f05f[_0x47c3f3(0x5ee,0x4cf,_0x8c2607._0x18cef9,_0x8c2607._0x532ea2)]+_0x47f05f[_0x5da786(0x629,_0x8c2607._0x4eafcf,_0x8c2607._0x5e13cd,_0x8c2607._0x327dd8)]});function _0x47c3f3(_0x3f1115,_0x38fa5c,_0x3f1953,_0x3dca91){return _0x4ab00a(_0x3f1115-_0x330a2a._0x123bf7,_0x38fa5c-0x4c,_0x3f1115,_0x38fa5c-0x45);}const _0x23dd2a=_0x47f05f['hostname'][_0x5da786(_0x8c2607._0x255f87,0x43c,_0x8c2607._0x20140b,0x36b)](/^\[|\]$/g,''),_0x12fe56=_0x47f05f[_0x5da786(_0x8c2607._0x199a8d,0x75f,_0x8c2607._0x483284,0x660)]+'//'+_0x47f05f[_0x47c3f3(0x5b2,_0x8c2607._0x1e5843,_0x8c2607._0x195964,0x550)]+_0x47f05f['pathname'];if(isIP(_0x23dd2a)){if(isBlockedAddress(_0x23dd2a))throw new ToolExecutionError('Refusing\x20to\x20fetch\x20a\x20non-public\x20address',{'url':_0x12fe56});return _0x47f05f;}const _0x798b6=_0x23d605['lookup']??defaultLookup;function _0x5da786(_0x4445c4,_0x432c78,_0x3ecaca,_0x4f0084){return _0x4ab00a(_0x4445c4-_0x2b258e._0x23065e,_0x432c78-0xcf,_0x3ecaca,_0x4445c4-_0x2b258e._0x543768);}let _0x286c1e;try{_0x286c1e=await _0x798b6(_0x23dd2a);}catch{throw new ToolExecutionError(_0x47c3f3(_0x8c2607._0xcc68d6,_0x8c2607._0x569255,0x6e8,_0x8c2607._0x3d92a0),{'url':_0x12fe56});}if(_0x286c1e[_0x5da786(0x56a,_0x8c2607._0x4d4988,_0x8c2607._0x3ba02c,_0x8c2607._0x5a2bbc)]===0x0)throw new ToolExecutionError(_0x47c3f3(_0x8c2607._0xebb7ef,_0x8c2607._0x569255,_0x8c2607._0x43fbef,_0x8c2607._0x461ae9),{'url':_0x12fe56});for(const {address:_0x495a48}of _0x286c1e){if(isBlockedAddress(_0x495a48))throw new ToolExecutionError(_0x5da786(_0x8c2607._0x203d98,_0x8c2607._0x2c7b51,_0x8c2607._0x1faddc,_0x8c2607._0x5f4c3f),{'url':_0x12fe56});}return _0x47f05f;}async function safeFetch(_0x2d6770,_0x146ea2={},_0x383d9e={}){const _0x3fa3ac={_0x25ee4b:0x47c,_0x23247a:0x4b2,_0x2418c2:0x3c3,_0x52981a:0x34b,_0x135bdf:0x28c,_0xaf25aa:0x44a,_0xfa3ebd:0x5c6,_0x3848e8:0x608,_0x3cd344:0x7a2,_0x2f1c6c:0x855,_0x292361:0x5c9,_0x59d03c:0x46c,_0x2f2e59:0x4fc,_0x42d710:0x2a8,_0x379f53:0x694,_0x1f9d73:0x6b4},_0x34bbd4={_0xb35b82:0x1dc,_0x5150fc:0xf5},_0x7161b2={_0x3bd39b:0x2f};function _0x24a106(_0x4d474a,_0x23da92,_0xce5f39,_0x49b1c0){return _0x1932a3(_0x23da92,_0x23da92-0x143,_0x4d474a-0x299,_0x49b1c0-_0x7161b2._0x3bd39b);}function _0x47437e(_0x54e51c,_0x3361ec,_0x1c64e5,_0x105812){return _0x1932a3(_0x3361ec,_0x3361ec-_0x34bbd4._0xb35b82,_0x54e51c-_0x34bbd4._0x5150fc,_0x105812-0x143);}const _0x475f29=_0x383d9e['fetchImpl']??fetch,_0x57a139=_0x383d9e[_0x47437e(0x3f6,_0x3fa3ac._0x25ee4b,_0x3fa3ac._0x23247a,_0x3fa3ac._0x2418c2)]??DEFAULT_MAX_REDIRECTS;let _0x370364=_0x2d6770;for(let _0x5726dc=0x0;;_0x5726dc+=0x1){const _0x2194ac=await assertPublicUrl(_0x370364,_0x383d9e),_0x1a7b1b=await _0x475f29(_0x2194ac[_0x47437e(0x3f8,_0x3fa3ac._0x52981a,0x3ac,_0x3fa3ac._0x135bdf)](),{..._0x146ea2,'redirect':_0x47437e(0x59d,0x6d9,0x5e0,_0x3fa3ac._0xaf25aa)}),_0x43cab0=_0x1a7b1b[_0x24a106(_0x3fa3ac._0xfa3ebd,_0x3fa3ac._0x3848e8,0x47f,0x48e)][_0x24a106(_0x3fa3ac._0x3cd344,0x72b,_0x3fa3ac._0x2f1c6c,0x8ed)]('location');if(!REDIRECT_STATUSES['has'](_0x1a7b1b[_0x24a106(0x518,_0x3fa3ac._0x292361,_0x3fa3ac._0x59d03c,_0x3fa3ac._0x2f2e59)])||!_0x43cab0)return _0x1a7b1b;if(_0x5726dc>=_0x57a139)throw new ToolExecutionError('Too\x20many\x20redirects',{'url':_0x2194ac[_0x47437e(0x3f8,0x3e0,_0x3fa3ac._0x42d710,0x329)]()});_0x370364=new URL(_0x43cab0,_0x2194ac)[_0x24a106(0x59c,_0x3fa3ac._0x379f53,_0x3fa3ac._0x1f9d73,0x477)]();}}var USER_AGENT=_0x4ab00a(0x640,0x702,0x6c5,0x5fd),DEFAULT_TIMEOUT_MS2=0xea60;function createTimeoutSignal(_0x41d7eb,_0x3a263a){const _0x716da8={_0x4123e3:0xd1,_0x46e81b:0x48,_0x539306:0xa4,_0x2248d2:0x149,_0x6f706:0x2aa,_0x3e4abb:0x26f,_0x1d8764:0x155,_0x5df380:0x1e6,_0xcab1ba:0x28c,_0x2abb1d:0x57b},_0x18e71f={_0x718ea5:0x45,_0x23d5ec:0x108,_0x387078:0x1a7,_0x27b9f5:0x2ae,_0x1d1b41:0x1fb},_0x12b544={_0x82ccd7:0x41},_0x257d5b={_0x5d95d5:0x4b,_0x28b5ae:0x12e,_0x2f32b4:0x4ee},_0x3441a8={_0x524ad0:0x1b8},_0x2e9d75=new AbortController(),_0x5c775e=setTimeout(()=>_0x2e9d75['abort'](new Error(_0x8da7ac(0x11,-0x60,0x8,-0x111))),_0x3a263a),_0x195555=()=>_0x2e9d75[_0xb279da(0x55d,0x326,0x468,0x452)](_0x41d7eb[_0x8da7ac(-0x74,-0x16a,-0x255,-0x284)]);function _0xb279da(_0xaf7371,_0x549870,_0x5922b2,_0x61aebb){return _0x1932a3(_0xaf7371,_0x549870-_0x3441a8._0x524ad0,_0x61aebb- -0x1e,_0x61aebb-0x121);}_0x41d7eb[_0x8da7ac(-0x1b4,-_0x716da8._0x4123e3,-_0x716da8._0x46e81b,-0x190)]?_0x2e9d75[_0x8da7ac(-_0x716da8._0x539306,0x79,0x16d,-0x6f)](_0x41d7eb[_0xb279da(0x15e,_0x716da8._0x2248d2,_0x716da8._0x6f706,_0x716da8._0x3e4abb)]):_0x41d7eb[_0x8da7ac(0x7c,_0x716da8._0x1d8764,_0x716da8._0x5df380,_0x716da8._0xcab1ba)](_0xb279da(0x3d3,0x337,_0x716da8._0x2abb1d,0x452),_0x195555,{'once':!![]});function _0x8da7ac(_0x448d4a,_0x2c0aee,_0x3983a3,_0x13dc79){return _0x4ab00a(_0x448d4a-_0x257d5b._0x5d95d5,_0x2c0aee-_0x257d5b._0x28b5ae,_0x448d4a,_0x2c0aee- -_0x257d5b._0x2f32b4);}return{'signal':_0x2e9d75['signal'],'cleanup':()=>{const _0x4a4a7d={_0x3e2c42:0x115,_0x13983f:0x1e1};clearTimeout(_0x5c775e);function _0x49860c(_0x2e893b,_0x1cd8f2,_0x81894b,_0x20e9dc){return _0x8da7ac(_0x2e893b,_0x1cd8f2-0x12e,_0x81894b-_0x12b544._0x82ccd7,_0x20e9dc-0xf3);}function _0x5604d1(_0x5c6b6d,_0x93e31b,_0xf0e7f4,_0x2e7449){return _0xb279da(_0x2e7449,_0x93e31b-0x1a8,_0xf0e7f4-_0x4a4a7d._0x3e2c42,_0x5c6b6d-_0x4a4a7d._0x13983f);}_0x41d7eb[_0x49860c(_0x18e71f._0x718ea5,-0x51,0x94,-_0x18e71f._0x23d5ec)](_0x49860c(0x259,_0x18e71f._0x387078,_0x18e71f._0x27b9f5,_0x18e71f._0x1d1b41),_0x195555);}};}function createWebFetchTool(_0x3a4bf0={}){const _0x2f465c={_0x3e989a:0x350,_0x5496ce:0x17d,_0x5390f9:0x229,_0x37396f:0x390,_0x2f966e:0x63d,_0xe107da:0x618,_0x225dc1:0x225,_0x28dca9:0x17d,_0x34ff68:0x255,_0x16e65b:0x1cf,_0x232c04:0x4a5,_0x6746a4:0x272,_0x222d6e:0x1ad,_0x1c2101:0x547,_0x283b09:0x618,_0x2ef0b8:0x4fb,_0x573ea3:0x7bf,_0x56d0e1:0x748,_0xc60b2e:0x30e,_0x5cae5e:0x399,_0x59f26f:0x28f,_0x34e4c5:0x364,_0x1ee328:0x2dc,_0x38fcf0:0x479,_0x159b13:0x367,_0x593bf1:0x363,_0x3a367d:0x322,_0x23d6e5:0x387,_0x1283b8:0x2b9,_0x43d714:0x5b1,_0x5d20cf:0x55c,_0x3b1b2e:0x5ad},_0x4a5111={_0x3714c8:0x491,_0x3e5dcf:0x3ab,_0x261b09:0x39d,_0x270dd3:0x26c,_0x25fdc9:0x477,_0x4121a1:0x330,_0x1b9ce1:0x28b,_0x121520:0x163,_0x210c97:0x248,_0x41e32d:0x4ad,_0x179a3e:0x586,_0x2d80a3:0x2d7,_0x4e84ce:0x1be,_0x24b467:0x1bc,_0x1a9f4d:0x2e2,_0x5b3e0a:0x227,_0x2a9daa:0x295,_0x22e985:0x290,_0x1290f6:0x3d7,_0x5be261:0x398,_0x285275:0x535,_0x3fab14:0x396,_0x4148ce:0xb9,_0x40de1a:0x580,_0x3cdad6:0x549,_0x48f917:0x6b5,_0x85434d:0x499,_0x1a8816:0x2ad,_0x58fd88:0x13c,_0x4988f1:0x3e4,_0x43ea33:0x498,_0x19660d:0x336,_0x5dca53:0x327,_0x36c2c3:0x1ca,_0x42eb2c:0x2a6,_0x40f608:0x40c},_0x4be509={_0x3e5f0e:0x151,_0x39b6e4:0xd,_0x32bc8b:0x3a6},_0x147f04={_0xd6941e:0x78},_0x26a898={_0x592cdb:0x1c6,_0xc511a0:0x155},_0x4ffe15=_0x3a4bf0[_0x5d476a(_0x2f465c._0x3e989a,_0x2f465c._0x5496ce,_0x2f465c._0x5390f9,_0x2f465c._0x37396f)]??_0xd013d5(_0x2f465c._0x2f966e,0x6fb,0x770,_0x2f465c._0xe107da);function _0xd013d5(_0x54da5f,_0x433b58,_0x11393d,_0x32c1c9){return _0x4ab00a(_0x54da5f-0x14e,_0x433b58-_0x26a898._0x592cdb,_0x32c1c9,_0x11393d-_0x26a898._0xc511a0);}function _0x5d476a(_0x4b8c21,_0x3f6054,_0x5ed7f1,_0x1f1df5){return _0x1932a3(_0x3f6054,_0x3f6054-_0x147f04._0xd6941e,_0x5ed7f1- -0x139,_0x1f1df5-0x12f);}const _0x52ca22=_0x3a4bf0['timeoutMs']??DEFAULT_TIMEOUT_MS2,_0x4a9c09=_0x3a4bf0[_0xd013d5(0x646,0x586,0x50d,0x5bb)],_0x51eb55=new _0x82d368({'headingStyle':'atx','codeBlockStyle':'fenced','bulletListMarker':'-'});return _0x51eb55[_0x5d476a(0x261,0x2e6,_0x2f465c._0x225dc1,_0x2f465c._0x28dca9)]([_0x5d476a(_0x2f465c._0x34ff68,_0x2f465c._0x16e65b,0x332,_0x2f465c._0x232c04),_0x5d476a(_0x2f465c._0x6746a4,0xb8,_0x2f465c._0x222d6e,0x266),_0xd013d5(_0x2f465c._0x1c2101,_0x2f465c._0x283b09,0x50c,_0x2f465c._0x2ef0b8),_0xd013d5(0x784,_0x2f465c._0x573ea3,0x669,_0x2f465c._0x56d0e1),_0x5d476a(0x26d,_0x2f465c._0xc60b2e,0x30b,_0x2f465c._0x5cae5e),_0x5d476a(0x314,_0x2f465c._0x59f26f,_0x2f465c._0x34e4c5,0x221),_0x5d476a(_0x2f465c._0x1ee328,_0x2f465c._0x38fcf0,0x3dc,_0x2f465c._0x159b13),'aside']),defineTool({'name':_0x4ffe15,'description':_0x5d476a(0x237,_0x2f465c._0x593bf1,_0x2f465c._0x3a367d,_0x2f465c._0x23d6e5),'inputSchema':{'type':'object','properties':{'description':{'type':_0x5d476a(0x37b,0x389,_0x2f465c._0x1283b8,0x411)},'url':{'type':_0xd013d5(_0x2f465c._0x43d714,_0x2f465c._0x5d20cf,0x63e,_0x2f465c._0x3b1b2e)}},'required':['url']},async *'execute'(_0x46cf34,_0x9ef148){const _0x69f29f={_0x122d91:0xc2},_0x3f7ef6=(await assertPublicUrl(_0x46cf34[_0x1583db(_0x4a5111._0x3714c8,_0x4a5111._0x3e5dcf,0x499,_0x4a5111._0x261b09)],{'lookup':_0x4a9c09}))[_0x1583db(_0x4a5111._0x270dd3,0x314,_0x4a5111._0x25fdc9,0x2ff)]();function _0x1583db(_0x551537,_0x591c5b,_0x3c7b39,_0x2d786d){return _0x5d476a(_0x551537-_0x69f29f._0x122d91,_0x3c7b39,_0x591c5b-0x14a,_0x2d786d-0x19c);}if(_0x9ef148['signal']['aborted'])throw new ToolExecutionError(_0x393f92(_0x4a5111._0x4121a1,0x3c8,0x242,0x3bc),{'url':_0x3f7ef6});const _0x47f5bf=createTimeoutSignal(_0x9ef148[_0x393f92(0x2dc,_0x4a5111._0x1b9ce1,_0x4a5111._0x121520,_0x4a5111._0x210c97)],_0x52ca22);let _0x4db81c='',_0x5a53b9=0x0,_0x1f3927;try{const _0x242107=await safeFetch(_0x3f7ef6,{'headers':{'User-Agent':USER_AGENT},'signal':_0x47f5bf[_0x1583db(_0x4a5111._0x41e32d,0x447,_0x4a5111._0x179a3e,0x34d)]},{'lookup':_0x4a9c09});if(!_0x242107['ok'])throw new ToolExecutionError(_0x393f92(_0x4a5111._0x2d80a3,0x3e9,_0x4a5111._0x4e84ce,0x3e2)+_0x242107['status']+'\x20'+_0x242107['statusText'],{'url':_0x3f7ef6,'statusCode':_0x242107[_0x1583db(_0x4a5111._0x24b467,0x290,_0x4a5111._0x1a9f4d,_0x4a5111._0x5b3e0a)]});_0x4db81c=_0x242107['headers']['get']('content-type')??'',_0x5a53b9=_0x242107[_0x1583db(_0x4a5111._0x2a9daa,_0x4a5111._0x22e985,0x2dc,0x2de)],_0x1f3927=await _0x242107[_0x393f92(_0x4a5111._0x1290f6,_0x4a5111._0x5be261,_0x4a5111._0x285275,_0x4a5111._0x3fab14)]();}catch(_0x330c78){if(_0x330c78 instanceof ToolExecutionError)throw _0x330c78;const _0x3dd02c=_0x330c78 instanceof Error?_0x330c78[_0x393f92(0x1f7,_0x4a5111._0x4148ce,0x91,0xb8)]:String(_0x330c78);throw new ToolExecutionError(_0x3dd02c,{'url':_0x3f7ef6});}finally{_0x47f5bf[_0x1583db(_0x4a5111._0x40de1a,_0x4a5111._0x3cdad6,_0x4a5111._0x48f917,0x515)]();}const _0x1b5b8e=new Date()[_0x1583db(0x4b0,0x365,0x2c5,_0x4a5111._0x85434d)]();let _0x3d97c7,_0x358ad0;function _0x393f92(_0x5de401,_0xea377d,_0x199abc,_0x500bd5){return _0xd013d5(_0x5de401-_0x4be509._0x3e5f0e,_0xea377d-_0x4be509._0x39b6e4,_0x5de401- -_0x4be509._0x32bc8b,_0x500bd5);}if(_0x4db81c[_0x393f92(0x1fc,_0x4a5111._0x1a8816,0x24b,_0x4a5111._0x58fd88)](_0x393f92(0x399,0x27b,0x27b,0x42a)))_0x3d97c7=_0x1583db(0x3d4,0x4ce,_0x4a5111._0x4988f1,0x4b1)+_0x1f3927+_0x1583db(0x546,0x4e0,0x649,0x547),_0x358ad0=_0x1583db(_0x4a5111._0x43ea33,0x3d5,0x26a,_0x4a5111._0x19660d);else _0x4db81c[_0x1583db(0x3b0,0x367,_0x4a5111._0x5dca53,0x456)](_0x393f92(_0x4a5111._0x36c2c3,0x338,_0x4a5111._0x42eb2c,0x2ef))?(_0x3d97c7=_0x51eb55['turndown'](_0x1f3927),_0x358ad0=_0x393f92(_0x4a5111._0x40f608,0x415,0x533,0x37b)):(_0x3d97c7=_0x1f3927,_0x358ad0='text');return yield createToolOutput(_0x3d97c7,{'url':_0x3f7ef6,'contentType':_0x4db81c,'statusCode':_0x5a53b9,'format':_0x358ad0,'size':_0x1f3927['length'],'fetchedAt':_0x1b5b8e}),void 0x0;}});}import{load}from'cheerio';function _0x5a72(_0x3cec94,_0x1eb275){_0x3cec94=_0x3cec94-0x196;const _0x4a4c28=_0x4a4c();let _0x5a7222=_0x4a4c28[_0x3cec94];if(_0x5a72['SpOEgV']===undefined){var _0x393fcd=function(_0x5b827c){const _0x3dc033='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x126110='',_0x4982e0='';for(let _0x461961=0x0,_0x4577a3,_0x33e815,_0x2bba96=0x0;_0x33e815=_0x5b827c['charAt'](_0x2bba96++);~_0x33e815&&(_0x4577a3=_0x461961%0x4?_0x4577a3*0x40+_0x33e815:_0x33e815,_0x461961++%0x4)?_0x126110+=String['fromCharCode'](0xff&_0x4577a3>>(-0x2*_0x461961&0x6)):0x0){_0x33e815=_0x3dc033['indexOf'](_0x33e815);}for(let _0x1cebcf=0x0,_0x2c3e93=_0x126110['length'];_0x1cebcf<_0x2c3e93;_0x1cebcf++){_0x4982e0+='%'+('00'+_0x126110['charCodeAt'](_0x1cebcf)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4982e0);};_0x5a72['mJZReu']=_0x393fcd,_0x5a72['KocWHy']={},_0x5a72['SpOEgV']=!![];}const _0x1304aa=_0x4a4c28[0x0],_0x56b780=_0x3cec94+_0x1304aa,_0x44cee4=_0x5a72['KocWHy'][_0x56b780];return!_0x44cee4?(_0x5a7222=_0x5a72['mJZReu'](_0x5a7222),_0x5a72['KocWHy'][_0x56b780]=_0x5a7222):_0x5a7222=_0x44cee4,_0x5a7222;}var USER_AGENT2=_0x1932a3(0x1b6,0x39d,0x29a,0x22e);function normalizeUrl(_0xb3d654){const _0x33cf78={_0x22fa54:0x57d,_0x51994d:0x5d7,_0x23faa5:0x536,_0x33a984:0x59b,_0x2860c2:0x5e0,_0x30ee51:0x7e6,_0x4eb633:0x740,_0x40dca7:0x5f9,_0x39153c:0x5e9,_0x33de38:0x48a,_0x252eb9:0x247,_0x329c98:0x8cc,_0x51aa12:0x75d,_0x581fa1:0x53e,_0x1e5ca9:0x57c,_0x1a3adb:0x354},_0xeed263={_0x40908d:0x149},_0x2cb603={_0x34dd89:0x1b1,_0x556db6:0x146,_0x373a37:0x1e5};function _0xa255bd(_0x20a38d,_0x4c3662,_0xfb3268,_0x54522a){return _0x4ab00a(_0x20a38d-_0x2cb603._0x34dd89,_0x4c3662-_0x2cb603._0x556db6,_0x54522a,_0xfb3268-_0x2cb603._0x373a37);}function _0x597b66(_0x415383,_0x22c34d,_0x11c964,_0x30e05a){return _0x4ab00a(_0x415383-_0xeed263._0x40908d,_0x22c34d-0x13e,_0x415383,_0x11c964- -0xa6);}try{const _0x43c9ff=new URL(_0xb3d654);for(const _0x4b54c9 of[_0xa255bd(0x702,_0x33cf78._0x22fa54,_0x33cf78._0x51994d,_0x33cf78._0x23faa5),_0xa255bd(0x47f,_0x33cf78._0x33a984,0x553,_0x33cf78._0x2860c2),'utm_campaign','utm_term',_0xa255bd(0x616,_0x33cf78._0x30ee51,_0x33cf78._0x4eb633,_0x33cf78._0x40dca7),_0xa255bd(0x7a3,0x742,0x6d9,_0x33cf78._0x39153c),'fbclid',_0x597b66(_0x33cf78._0x33de38,0x4b8,0x34e,_0x33cf78._0x252eb9),'mc_eid']){_0x43c9ff[_0xa255bd(0x82f,_0x33cf78._0x329c98,_0x33cf78._0x51aa12,0x7f1)][_0xa255bd(0x65f,_0x33cf78._0x581fa1,_0x33cf78._0x1e5ca9,0x587)](_0x4b54c9);}return _0x43c9ff[_0x597b66(0x2cb,0x49e,_0x33cf78._0x1a3adb,0x341)]();}catch{return _0xb3d654;}}function cseDateRestrict(_0x50ae71){const _0x69944b={_0x34b5fb:0x1a6,_0xadb747:0x210,_0x701d29:0x321,_0x2b57d4:0xaf},_0x2548b5={_0x1fbdaa:0x6a,_0x50e984:0x1a7,_0x3d7963:0x12a},_0x695d6f={_0xe59c1a:0x1a2};if(_0x50ae71<=0x0)return void 0x0;function _0x27cf18(_0x45e5de,_0x33b5dd,_0x211677,_0x2225de){return _0x1932a3(_0x2225de,_0x33b5dd-_0x695d6f._0xe59c1a,_0x33b5dd- -0x23f,_0x2225de-0x1cd);}function _0x1dd89c(_0x10e151,_0xa64e59,_0x28d049,_0x2cee3a){return _0x1932a3(_0x2cee3a,_0xa64e59-_0x2548b5._0x1fbdaa,_0x10e151-_0x2548b5._0x50e984,_0x2cee3a-_0x2548b5._0x3d7963);}if(_0x50ae71<=0x1e)return'd'+Math[_0x27cf18(_0x69944b._0x34b5fb,_0x69944b._0xadb747,0xff,_0x69944b._0x701d29)](0x1,Math['floor'](_0x50ae71));if(_0x50ae71<=0x16d)return'm'+Math['ceil'](_0x50ae71/0x1e);return'y'+Math[_0x27cf18(-_0x69944b._0x2b57d4,0x3d,0x4,0x19c)](_0x50ae71/0x16d);}function addSiteFilters(_0x5cdd5a,_0x151e9e){const _0x42202d={_0x598c6b:0x1c0,_0x2b73ce:0x294,_0x5047a9:0x2f8,_0x436e2f:0x284,_0x53656d:0x3b2,_0x5e21aa:0x2e0},_0x2e09cc={_0x5f275f:0xc7,_0xbec87e:0x14e},_0x3baff9={_0x12b240:0x12b,_0x5cfd92:0x15};if(_0x151e9e['length']===0x0)return _0x5cdd5a['trim']();function _0x2c855d(_0x274882,_0x510878,_0x2fba9d,_0x17f137){return _0x4ab00a(_0x274882-_0x3baff9._0x12b240,_0x510878-_0x3baff9._0x5cfd92,_0x2fba9d,_0x510878- -0x36d);}function _0x2c7b61(_0x4095ea,_0x19f05c,_0x53aa79,_0x1efa52){return _0x4ab00a(_0x4095ea-_0x2e09cc._0x5f275f,_0x19f05c-0x1eb,_0x53aa79,_0x1efa52- -_0x2e09cc._0xbec87e);}return(_0x5cdd5a+'\x20('+_0x151e9e[_0x2c7b61(0x1ce,_0x42202d._0x598c6b,_0x42202d._0x2b73ce,_0x42202d._0x5047a9)](_0x901f19=>'site:'+_0x901f19)[_0x2c855d(0x291,_0x42202d._0x436e2f,_0x42202d._0x53656d,_0x42202d._0x5e21aa)]('\x20OR\x20')+')')['trim']();}function normalizeType(_0x291298){const _0x29b2cb={_0x1a0398:0x50e,_0x3c9d90:0x36c,_0x4c7e0d:0x3a9,_0x232b15:0x4cc},_0xdcffa8={_0x3cb42e:0x17f,_0x1e8ebf:0x4f6},_0x1d5094={_0x22a189:0x76,_0x1558a5:0x11d};function _0x41c537(_0x22bd8b,_0x2b7e86,_0x3d91e7,_0x4f86e8){return _0x4ab00a(_0x22bd8b-_0x1d5094._0x22a189,_0x2b7e86-0x1ba,_0x4f86e8,_0x3d91e7- -_0x1d5094._0x1558a5);}function _0xe6554f(_0x280351,_0x301800,_0x11c3ce,_0x1a38de){return _0x4ab00a(_0x280351-_0xdcffa8._0x3cb42e,_0x301800-0x60,_0x11c3ce,_0x280351- -_0xdcffa8._0x1e8ebf);}return _0x291298===_0x41c537(0x497,_0x29b2cb._0x1a0398,0x4cc,0x635)?_0x41c537(_0x29b2cb._0x3c9d90,_0x29b2cb._0x4c7e0d,_0x29b2cb._0x232b15,0x44a):'web';}async function fetchJson(_0x4c450f,_0x4735a2,_0x282235){const _0x1abbd7={_0x5a9c3b:0xc3,_0x419862:0xcf,_0x5bd08a:0x2f7,_0x5a40ed:0x1a4,_0x587795:0x306,_0x3e41a7:0x2d0,_0x13896e:0x429,_0x47c790:0x24c,_0x361d6f:0x46c,_0x1d5c8b:0x59b,_0x2875ea:0x32c,_0x3df995:0x3d6,_0x5a08cb:0x3ce,_0x289dc1:0x349,_0x402956:0x486,_0x3cc5a1:0x381,_0xb303a2:0x36f,_0x80061a:0x8,_0x3c8bb9:0x5b,_0x1baf36:0x13a,_0x46db46:0x36,_0x31e0e9:0x7b,_0x472eb0:0x20b,_0x34f201:0x30a,_0x4e3e93:0x300,_0x26dc2b:0x578,_0x1dbe39:0x299,_0x5c83ae:0x510,_0x4896fa:0x553,_0x567789:0x46c},_0xfc6e46={_0x44329b:0x24},_0x1e293f={_0x456d5b:0x9f};function _0x2d4dee(_0x5a89bc,_0x3eecc7,_0x281ec3,_0xc03964){return _0x4ab00a(_0x5a89bc-0x1b9,_0x3eecc7-_0x1e293f._0x456d5b,_0x281ec3,_0x5a89bc- -0xdd);}const _0x56f3c3=await fetch(_0x4c450f,{'headers':{'User-Agent':USER_AGENT2,'Accept':'application/json',..._0x282235?.[_0x47f4b8(-0x2c,0x19,_0x1abbd7._0x5a9c3b,-0x11e)]},'signal':_0x4735a2,..._0x282235});function _0x47f4b8(_0x4140df,_0x12c6b3,_0xf27ff7,_0xaddf05){return _0x4ab00a(_0x4140df-_0xfc6e46._0x44329b,_0x12c6b3-0x15a,_0xaddf05,_0x4140df- -0x450);}if(!_0x56f3c3['ok']){let _0x101aa6,_0x3fdce2;try{_0x101aa6=await _0x56f3c3[_0x47f4b8(0x1d8,0x294,0x288,0x155)]();const _0x2c7c08=JSON[_0x47f4b8(-_0x1abbd7._0x419862,-0x206,0x3c,-0x2c)](_0x101aa6),_0x5d7b1b=typeof _0x2c7c08[_0x2d4dee(0x306,0x29d,_0x1abbd7._0x5bd08a,0x287)]===_0x47f4b8(0x192,0xe9,0x170,_0x1abbd7._0x5a40ed)?_0x2c7c08[_0x2d4dee(_0x1abbd7._0x587795,_0x1abbd7._0x3e41a7,0x3e6,_0x1abbd7._0x13896e)][_0x47f4b8(0xf9,0x26b,0xb7,_0x1abbd7._0x47c790)]:void 0x0;_0x3fdce2=_0x2c7c08[_0x2d4dee(_0x1abbd7._0x361d6f,0x35f,_0x1abbd7._0x1d5c8b,_0x1abbd7._0x2875ea)]?.['message']??_0x2c7c08[_0x2d4dee(_0x1abbd7._0x361d6f,0x547,_0x1abbd7._0x3df995,_0x1abbd7._0x5a08cb)]?.[_0x2d4dee(_0x1abbd7._0x289dc1,_0x1abbd7._0x402956,_0x1abbd7._0x3cc5a1,_0x1abbd7._0xb303a2)]?.[0x0]?.[_0x47f4b8(-_0x1abbd7._0x80061a,-_0x1abbd7._0x3c8bb9,_0x1abbd7._0x1baf36,0xb2)]??_0x5d7b1b;}catch{}const _0x5513aa=_0x3fdce2?_0x47f4b8(0xd8,-_0x1abbd7._0x46db46,_0x1abbd7._0x31e0e9,_0x1abbd7._0x472eb0)+_0x56f3c3[_0x2d4dee(0x299,0x401,_0x1abbd7._0x34f201,_0x1abbd7._0x4e3e93)]+':\x20'+_0x3fdce2:_0x2d4dee(0x44b,0x536,_0x1abbd7._0x26dc2b,0x414)+_0x56f3c3[_0x2d4dee(_0x1abbd7._0x1dbe39,0x1fd,0x2be,0x2db)]+'\x20'+_0x56f3c3[_0x2d4dee(_0x1abbd7._0x5c83ae,_0x1abbd7._0x4896fa,0x5a9,0x647)];throw new ToolExecutionError(_0x5513aa,{'statusCode':_0x56f3c3[_0x2d4dee(_0x1abbd7._0x1dbe39,0x2ef,0x340,0x300)],..._0x101aa6?{'body':_0x101aa6}:{}});}return await _0x56f3c3[_0x2d4dee(0x3de,_0x1abbd7._0x567789,0x3c4,0x4d8)]();}async function hydrateResults(_0x352a5e,_0x111f1f,_0x22f322,_0xdf8462){const _0x509d42={_0x55dc69:0x17a,_0x1dae02:0x5,_0x2175ee:0x2c5,_0x4dd88d:0x16a,_0x20e7fd:0x3df,_0x509ccc:0x464,_0x3ebb37:0x385},_0x5032a6={_0x210693:0x1c0},_0x258c63={_0x30fd6f:0x658,_0x223dc2:0x750,_0x41f2a4:0x816,_0x454ac8:0x8af,_0x4fd25b:0x98d,_0x865c53:0x104,_0x54d3ea:0x1e1,_0x3ffba1:0x636,_0x5cb373:0x621,_0x215619:0x4be,_0x50c912:0x5d7,_0x569ac1:0x65f,_0x2adb86:0x6b4,_0x2a122f:0x7ef,_0xa222f2:0x77e,_0x12d3f1:0x217,_0x538bb0:0x263,_0x97fcd7:0x217,_0x432c33:0x343,_0x3db4a5:0x516,_0x46616f:0x7c4,_0x20e412:0x6b7,_0x1826ea:0x133,_0x1ea47f:0x7f,_0x26c736:0x28,_0x5f29a8:0x6da,_0x33f7f6:0x590,_0x2b2fa0:0x5fd,_0x4518eb:0x1a,_0x204fc9:0xf3,_0x364d79:0xfe,_0x266768:0x12c,_0x19602b:0x16a,_0x2e9752:0x178,_0x495bf1:0x6da,_0x29b714:0x565,_0x298335:0x59d,_0x43e4d2:0x6cf,_0x2ef7d9:0x2cd,_0x412dd0:0x177,_0x1ef9c1:0x11c,_0x327130:0x195,_0x4b9ef1:0x251,_0x46fffc:0x283,_0x1a3b51:0x91,_0x4bf0ee:0x658},_0x396728={_0xdb1fb0:0x547},_0x135c91=await Promise[_0x47f6fc(_0x509d42._0x55dc69,_0x509d42._0x1dae02,0x16e,0xc2)](_0x352a5e[_0x47f6fc(0xed,_0x509d42._0x2175ee,_0x509d42._0x4dd88d,0xf9)](0x0,0xa)['map'](async _0x5bb31f=>{function _0x31eddf(_0x5d26b7,_0xec6844,_0x1ef19b,_0x2b1759){return _0x47f6fc(_0xec6844,_0xec6844-0xfa,_0x5d26b7-_0x396728._0xdb1fb0,_0x2b1759-0x1d3);}function _0x2af600(_0x544a82,_0x5abe8d,_0x54b849,_0x2d21d6){return _0x47f6fc(_0x54b849,_0x5abe8d-0xc7,_0x5abe8d-0x84,_0x2d21d6-0x198);}try{const _0x26e784=await safeFetch(_0x5bb31f[_0x31eddf(_0x258c63._0x30fd6f,_0x258c63._0x30fd6f,0x533,_0x258c63._0x223dc2)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x111f1f,'Accept':'text/html'},'signal':_0x22f322},{'lookup':_0xdf8462});if(!_0x26e784['ok'])return _0x5bb31f;const _0x492aa6=await _0x26e784['text'](),_0x391333=load(_0x492aa6),_0x1fbeef=_0x391333(_0x31eddf(_0x258c63._0x41f2a4,_0x258c63._0x454ac8,_0x258c63._0x4fd25b,0x6b0))[_0x2af600(_0x258c63._0x865c53,0x217,_0x258c63._0x54d3ea,0x1b0)](_0x31eddf(_0x258c63._0x3ffba1,_0x258c63._0x5cb373,_0x258c63._0x215619,0x63d))||_0x391333('title')[_0x31eddf(_0x258c63._0x50c912,_0x258c63._0x569ac1,0x4ba,_0x258c63._0x2adb86)]()[_0x31eddf(_0x258c63._0x2a122f,_0x258c63._0xa222f2,0x702,0x7ee)]()[_0x31eddf(0x5f2,0x4ca,0x4b9,0x60e)](),_0x27c216=_0x391333('meta[name=\x27description\x27]')[_0x2af600(0x13b,_0x258c63._0x12d3f1,0x384,0x1f2)]('content')||_0x391333('meta[property=\x27og:description\x27]')[_0x2af600(_0x258c63._0x538bb0,_0x258c63._0x97fcd7,_0x258c63._0x432c33,0x2f6)](_0x31eddf(0x636,0x500,0x72f,_0x258c63._0x3db4a5))||_0x5bb31f[_0x31eddf(0x721,_0x258c63._0x46616f,0x751,_0x258c63._0x20e412)],_0x23e3ce=_0x391333(_0x2af600(0xc7,_0x258c63._0x1826ea,_0x258c63._0x1ea47f,_0x258c63._0x26c736))[_0x31eddf(_0x258c63._0x5f29a8,0x6cd,_0x258c63._0x33f7f6,_0x258c63._0x2b2fa0)](_0x2af600(0x241,0x173,0x158,_0x258c63._0x4518eb))||_0x391333('time[datetime]')[_0x2af600(_0x258c63._0x204fc9,_0x258c63._0x12d3f1,0x2c5,_0x258c63._0x364d79)]('datetime')||_0x5bb31f[_0x2af600(_0x258c63._0x266768,0x12b,_0x258c63._0x19602b,_0x258c63._0x2e9752)],_0x5edc62=_0x391333('link[rel=\x27canonical\x27]')[_0x31eddf(_0x258c63._0x495bf1,_0x258c63._0x29b714,0x834,_0x258c63._0x298335)](_0x31eddf(0x5d2,0x4f1,_0x258c63._0x43e4d2,0x565));return{..._0x5bb31f,'title':_0x1fbeef||_0x5bb31f[_0x2af600(0x392,_0x258c63._0x2ef7d9,0x188,_0x258c63._0x412dd0)],'snippet':_0x27c216,'url':_0x5edc62?normalizeUrl(new URL(_0x5edc62,_0x5bb31f[_0x2af600(_0x258c63._0x1ef9c1,_0x258c63._0x327130,_0x258c63._0x4b9ef1,_0x258c63._0x46fffc)])[_0x2af600(0x79,_0x258c63._0x364d79,_0x258c63._0x1a3b51,0xf1)]()):_0x5bb31f[_0x31eddf(_0x258c63._0x4bf0ee,0x6d4,0x6aa,0x743)],'publishedAt':_0x23e3ce};}catch{return _0x5bb31f;}})),_0x1b96b4=new Map(_0x352a5e[_0x5fb01d(_0x509d42._0x20e7fd,_0x509d42._0x509ccc,_0x509d42._0x3ebb37,0x399)](0x0,0xa)['map']((_0x1e9cdb,_0x12a9ce)=>[_0x1e9cdb[_0x47f6fc(0xcf,0xd4,0x111,0x10)],_0x135c91[_0x12a9ce]]));function _0x5fb01d(_0xeaa9c6,_0x153aee,_0x2e413a,_0x1841cc){return _0x4ab00a(_0xeaa9c6-0x69,_0x153aee-0x87,_0xeaa9c6,_0x153aee- -0x86);}function _0x47f6fc(_0x1f3904,_0x535522,_0x40c38c,_0x2763ff){return _0x1932a3(_0x1f3904,_0x535522-0x10f,_0x40c38c- -0x289,_0x2763ff-_0x5032a6._0x210693);}return _0x352a5e['map'](_0x2aed9c=>_0x1b96b4[_0x5fb01d(0x607,0x57a,0x441,0x6c9)](_0x2aed9c[_0x47f6fc(0x69,0xa7,0x111,0x1b5)])??_0x2aed9c);}function formatResults(_0xf81cda){const _0x1ef83e={_0x11fd47:0x19,_0x535cc8:0x46,_0x561a30:0x112,_0x9472fe:0x3,_0x30dc05:0xee,_0x1ab4ab:0x11f},_0x3fef7c={_0x2adddb:0x195,_0x32a01e:0x422,_0x7a7192:0xe9,_0x13110f:0x353,_0x1f095c:0x431,_0x40f786:0x34f,_0x5a68c4:0x33d,_0x43754c:0x221,_0x50de4d:0x2cb,_0x5ce15c:0x1f0,_0x3d3b5d:0xd0,_0x18efc8:0x130,_0xd6ab65:0x25c,_0x3d7739:0x1dd,_0x4df141:0x383,_0x10c9bb:0x50b,_0x4a9c1f:0x179,_0x345c5a:0x274,_0x5bc45a:0x298,_0x3d222f:0x2d3,_0xe62616:0x348,_0x197bce:0x57a,_0x2a7285:0x49d},_0x14f210={_0x275b07:0x2d},_0x5e3a5d={_0x1a5fc2:0x4b},_0x207e24={_0x3ef6ef:0x3db,_0x53f8e8:0x12c};if(_0xf81cda[_0x28bee0(-_0x1ef83e._0x11fd47,-_0x1ef83e._0x535cc8,0x66,-_0x1ef83e._0x561a30)]===0x0)return'No\x20results\x20found.';function _0x28bee0(_0x55c585,_0x4650a9,_0x429cce,_0x1686b3){return _0x1932a3(_0x1686b3,_0x4650a9-0x1c2,_0x429cce- -_0x207e24._0x3ef6ef,_0x1686b3-_0x207e24._0x53f8e8);}function _0x59d275(_0x1a74b9,_0x37b75f,_0x5ba3c2,_0x3f8d36){return _0x4ab00a(_0x1a74b9-0x5,_0x37b75f-0x1f4,_0x37b75f,_0x3f8d36- -_0x5e3a5d._0x1a5fc2);}return _0xf81cda['map'](_0x275527=>{const _0x82557e=[_0x275527[_0x11867a(0x2a3,0x14a,0x23a,0x340)][_0x200413(0x2c4,_0x3fef7c._0x2adddb,_0x3fef7c._0x32a01e,0x2fe)]+'.\x20'+_0x275527[_0x11867a(0x25f,_0x3fef7c._0x7a7192,_0x3fef7c._0x13110f,0xf7)],_0x275527[_0x200413(0x466,_0x3fef7c._0x1f095c,_0x3fef7c._0x40f786,_0x3fef7c._0x5a68c4)]];function _0x200413(_0x1c3328,_0x2d7f67,_0x3cfb92,_0x149ef3){return _0x28bee0(_0x1c3328-0xaf,_0x2d7f67-_0x14f210._0x275b07,_0x149ef3-0x37e,_0x2d7f67);}if(_0x275527['snippet'])_0x82557e[_0x11867a(_0x3fef7c._0x43754c,0x1a8,_0x3fef7c._0x50de4d,0x183)](_0x275527[_0x11867a(_0x3fef7c._0x5ce15c,_0x3fef7c._0x3d3b5d,_0x3fef7c._0x18efc8,_0x3fef7c._0xd6ab65)]);if(_0x275527[_0x200413(0x1a2,_0x3fef7c._0x3d7739,0x1d6,0x2d3)])_0x82557e[_0x200413(_0x3fef7c._0x4df141,0x485,_0x3fef7c._0x10c9bb,0x437)](_0x11867a(_0x3fef7c._0x4a9c1f,0x1f1,_0x3fef7c._0x345c5a,0x18a)+_0x275527[_0x200413(_0x3fef7c._0x5bc45a,0x431,0x412,_0x3fef7c._0x3d222f)]);function _0x11867a(_0x294fed,_0x4c6ab1,_0x390fb4,_0x997ac6){return _0x28bee0(_0x294fed-0x174,_0x4c6ab1-0x6d,_0x294fed-0x168,_0x997ac6);}return _0x82557e[_0x200413(_0x3fef7c._0xe62616,0x5ae,_0x3fef7c._0x197bce,_0x3fef7c._0x2a7285)]('\x0a');})[_0x28bee0(_0x1ef83e._0x9472fe,_0x1ef83e._0x30dc05,_0x1ef83e._0x1ab4ab,0x1cb)]('\x0a\x0a');}async function searchOllama(_0x1130f1,_0x39237d,_0x2aef7b){const _0x35f4cf={_0x2c4a52:0x588,_0x55d3d0:0x5e4,_0x47114e:0x7a2,_0x100caf:0x1e3,_0x55509e:0xad,_0xf845a:0x201,_0x76d40a:0x227,_0x4a8aa3:0x54a,_0x178d19:0x30e,_0x21b7d5:0x3d3,_0x49b2f4:0x5e8,_0x2850be:0x520,_0x520e26:0x507,_0x11b584:0x37f,_0x421ad3:0x5e3,_0x5b1d2a:0x45a,_0x407fe5:0x43c,_0x316d86:0x5b2,_0x5b474b:0x69d,_0xf6824b:0x2ee,_0x464279:0x395},_0x5aa757={_0x1a08a3:0x58,_0x25c72b:0x106,_0x19e341:0x13e},_0x4816b4={_0x3680f8:0x649,_0x15c251:0x768,_0x36480b:0x68b,_0x4e50e8:0x69d,_0x221b39:0x560,_0x2d028a:0x53c,_0x38d720:0x651},_0xa7b7ee={_0x586d9e:0x166,_0x233abb:0x16e},_0x307d11={_0x254ba7:0x16c};function _0x5778dc(_0x46fbd4,_0x14af4a,_0x1b0180,_0x7f8667){return _0x4ab00a(_0x46fbd4-0x7,_0x14af4a-0xda,_0x46fbd4,_0x1b0180-_0x307d11._0x254ba7);}const _0x35f0eb=Math[_0x5778dc(_0x35f4cf._0x2c4a52,_0x35f4cf._0x55d3d0,0x6b2,_0x35f4cf._0x47114e)](0x1,Math[_0x44ecd0(_0x35f4cf._0x100caf,_0x35f4cf._0x55509e,_0x35f4cf._0xf845a,_0x35f4cf._0x76d40a)](0xa,_0x39237d[_0x5778dc(0x537,0x544,0x53b,_0x35f4cf._0x4a8aa3)])),_0x5cccc2=addSiteFilters(_0x39237d[_0x44ecd0(_0x35f4cf._0x178d19,_0x35f4cf._0x21b7d5,0x2a1,0x269)],_0x39237d['domains']),_0x3d8b56=await fetchJson(_0x5778dc(0x6f1,0x4b4,_0x35f4cf._0x49b2f4,0x491),_0x2aef7b,{'method':_0x5778dc(0x519,_0x35f4cf._0x2850be,0x585,_0x35f4cf._0x520e26),'headers':{'Authorization':_0x44ecd0(0x3ae,0x3a3,0x4e2,_0x35f4cf._0x11b584)+_0x1130f1['apiKey']},'body':JSON[_0x5778dc(_0x35f4cf._0x421ad3,0x5b8,0x5c4,0x57b)]({'query':_0x5cccc2,'max_results':_0x35f0eb})}),_0x5416c3=_0x3d8b56['results']??[],_0x1a95a9=_0x5416c3[_0x5778dc(_0x35f4cf._0x5b1d2a,_0x35f4cf._0x407fe5,_0x35f4cf._0x316d86,_0x35f4cf._0x5b474b)]((_0x3c99b3,_0x3378c8)=>{const _0x2d2c02=_0x3c99b3[_0x4be3a4(0x7b9,0x76e,_0x4816b4._0x3680f8,0x673)]||'';let _0xdca75a;try{_0xdca75a=new URL(_0x2d2c02)['host'];}catch{_0xdca75a=null;}function _0x4be3a4(_0x31d73e,_0x1aad4b,_0x16771a,_0x519757){return _0x44ecd0(_0x519757-0x3df,_0x1aad4b-_0xa7b7ee._0x586d9e,_0x16771a-_0xa7b7ee._0x233abb,_0x16771a);}function _0x43ad27(_0x2ea8f8,_0x17854d,_0x726480,_0x504f99){return _0x5778dc(_0x504f99,_0x17854d-0x7d,_0x726480-0x1a,_0x504f99-0x157);}return{'title':_0x3c99b3['title']||_0x4be3a4(_0x4816b4._0x15c251,_0x4816b4._0x36480b,0x56f,0x624),'url':normalizeUrl(_0x2d2c02),'snippet':_0x3c99b3[_0x4be3a4(_0x4816b4._0x4e50e8,_0x4816b4._0x221b39,_0x4816b4._0x2d028a,_0x4816b4._0x38d720)]??null,'displayUrl':_0xdca75a,'favicon':null,'publishedAt':null,'source':{'engine':'ollama','rank':_0x3378c8+0x1}};});function _0x44ecd0(_0xb3b5f2,_0x240590,_0x49feee,_0x489f84){return _0x1932a3(_0x489f84,_0x240590-_0x5aa757._0x1a08a3,_0xb3b5f2- -_0x5aa757._0x25c72b,_0x489f84-_0x5aa757._0x19e341);}return{'items':_0x1a95a9['slice'](0x0,_0x35f0eb),'engine':_0x44ecd0(0x42a,_0x35f4cf._0xf6824b,_0x35f4cf._0x464279,0x431)};}async function searchTavily(_0x136079,_0x1075cc,_0x182ea1){const _0x17c85c={_0x276ccd:0x6bc,_0x16fb55:0x5b6,_0x176d78:0x670,_0x3e351c:0x249,_0x7b8097:0x426,_0x4517c4:0x449,_0x5d1167:0x4bd,_0x55c16a:0x4bc,_0x285096:0x442,_0x433c0d:0x4c7,_0x20ddd9:0x56f,_0x4dfef1:0x731,_0xd060be:0x5a1,_0x615924:0x54c,_0x46ac2a:0x608,_0x43b518:0x6eb,_0x25d7d8:0x5bd,_0x118faf:0x4ea,_0x4cad63:0x4b0,_0x4c9eab:0x396,_0x518d74:0x413,_0x5663d1:0x65c,_0xc64663:0x678,_0x1d915d:0x542,_0x5075b8:0x7ac,_0x72653:0x6d5,_0x156a59:0x468,_0x396efd:0x477,_0x2119d4:0x5f3,_0x4b8f10:0x5cd,_0x3fe0d5:0x44e,_0x9d8929:0x5e8,_0x376a2b:0x708,_0x45d0aa:0x5eb,_0x43b4a4:0x5f1},_0x54eaad={_0xad5c76:0x71},_0x166815={_0x52d5a2:0x31e,_0x964f2d:0x138,_0x302b97:0x6f,_0xc2c5fd:0x34f,_0x140cf7:0x13a,_0x1da310:0x360,_0x511085:0x318,_0x3c41a2:0x2e3,_0x5239c8:0x447,_0x39f071:0x196,_0xc47667:0xb8,_0x4025af:0x33},_0x2c06f3={_0x509773:0xa3},_0x283750=Math[_0x234c47(_0x17c85c._0x276ccd,0x6f8,_0x17c85c._0x16fb55,_0x17c85c._0x176d78)](0x1,Math[_0x4dc810(_0x17c85c._0x3e351c,0x392,0x4a0,_0x17c85c._0x7b8097)](0x14,_0x1075cc[_0x234c47(0x4f0,0x60d,0x4b6,0x4f9)])),_0x23c64d={'query':_0x1075cc[_0x4dc810(_0x17c85c._0x4517c4,_0x17c85c._0x5d1167,0x50a,_0x17c85c._0x55c16a)],'max_results':_0x283750,'search_depth':_0x136079[_0x234c47(_0x17c85c._0x285096,_0x17c85c._0x433c0d,_0x17c85c._0x20ddd9,0x50c)]??'basic','topic':_0x136079[_0x234c47(_0x17c85c._0x4dfef1,_0x17c85c._0xd060be,_0x17c85c._0x615924,0x5cf)]??_0x234c47(0x7c3,_0x17c85c._0x46ac2a,_0x17c85c._0x43b518,0x64f)};if(_0x1075cc[_0x234c47(0x7df,0x6ee,_0x17c85c._0x25d7d8,0x678)][_0x4dc810(0x623,_0x17c85c._0x118faf,_0x17c85c._0x4cad63,0x3fc)]>0x0)_0x23c64d[_0x4dc810(_0x17c85c._0x4c9eab,0x420,_0x17c85c._0x518d74,0x573)]=_0x1075cc[_0x234c47(0x56e,_0x17c85c._0x5663d1,0x601,_0x17c85c._0xc64663)];const _0x53fe15=await fetchJson(_0x234c47(0x662,0x543,0x651,0x528),_0x182ea1,{'method':_0x4dc810(0x308,0x3cb,_0x17c85c._0x1d915d,0x3ce),'headers':{'Authorization':_0x234c47(0x834,0x812,_0x17c85c._0x5075b8,_0x17c85c._0x72653)+_0x136079[_0x234c47(_0x17c85c._0x156a59,_0x17c85c._0x396efd,_0x17c85c._0x2119d4,0x4bd)],'Content-Type':_0x4dc810(_0x17c85c._0x4b8f10,0x59c,_0x17c85c._0x3fe0d5,0x4bd)},'body':JSON[_0x4dc810(0x348,0x40a,0x360,0x2a9)](_0x23c64d)});function _0x234c47(_0x41bd00,_0x4064fe,_0x2052c7,_0x3d55d4){return _0x1932a3(_0x4064fe,_0x4064fe-0x146,_0x3d55d4-0x221,_0x3d55d4-_0x2c06f3._0x509773);}const _0x514165=_0x53fe15[_0x4dc810(0x488,_0x17c85c._0x9d8929,0x72c,0x656)]??[],_0x2ebaac=_0x514165['map']((_0x5c87d3,_0x37c2ab)=>{const _0x3a9043={_0x3d6cfb:0x263},_0x4da51d={_0x160bd3:0x1ef},_0x4c269c=_0x5c87d3[_0x20fe75(_0x166815._0x52d5a2,0x1e0,_0x166815._0x964f2d,_0x166815._0x302b97)]||'';let _0x47f1ad;function _0x2b8729(_0x5df483,_0x48b9c7,_0x1c4712,_0x52fc4d){return _0x4dc810(_0x5df483-_0x4da51d._0x160bd3,_0x1c4712- -0x4ac,_0x1c4712-0x1b0,_0x52fc4d);}try{_0x47f1ad=new URL(_0x4c269c)[_0x20fe75(_0x166815._0xc2c5fd,0x1d9,0x1ff,_0x166815._0x140cf7)];}catch{_0x47f1ad=null;}function _0x20fe75(_0x4e1e67,_0x528b81,_0x3631dd,_0x3b1734){return _0x4dc810(_0x4e1e67-0x3f,_0x528b81- -_0x3a9043._0x3d6cfb,_0x3631dd-0x14,_0x3b1734);}return{'title':_0x5c87d3[_0x20fe75(_0x166815._0x1da310,_0x166815._0x511085,_0x166815._0x3c41a2,_0x166815._0x5239c8)]||_0x2b8729(-_0x166815._0x39f071,-0x21c,-_0x166815._0xc47667,-0x91),'url':normalizeUrl(_0x4c269c),'snippet':_0x5c87d3['content']??null,'displayUrl':_0x47f1ad,'favicon':null,'publishedAt':null,'source':{'engine':_0x2b8729(-0x14a,0x110,-_0x166815._0x4025af,-0x186),'rank':_0x37c2ab+0x1}};});function _0x4dc810(_0x41ceb7,_0x51e885,_0x4a8d51,_0x14dcc7){return _0x4ab00a(_0x41ceb7-_0x54eaad._0xad5c76,_0x51e885-0x18e,_0x14dcc7,_0x51e885- -0x4e);}return{'items':_0x2ebaac[_0x234c47(0x628,0x684,0x50a,0x614)](0x0,_0x283750),'engine':_0x234c47(0x4a2,_0x17c85c._0x376a2b,_0x17c85c._0x45d0aa,_0x17c85c._0x43b4a4)};}async function searchGoogleCse(_0x26de3d,_0x81e11b,_0x1f5a66){const _0x354fdc={_0x3ed305:0xb7,_0x306742:0xd2,_0x3e5123:0xa6,_0x29c616:0x1de,_0x3aca8a:0x38f,_0x566409:0x2df,_0x3cbf49:0x186,_0xf643c7:0x266,_0x3b18ed:0x12a,_0xabe2ef:0x1c4,_0x50fb78:0xec,_0x2d8cfb:0x136,_0x4ebf95:0x249,_0x140081:0x19e,_0x42871f:0x2fa,_0xa30a6b:0x3,_0x4a9b28:0xe0,_0x422819:0x171,_0x4c722d:0x35f,_0x4fa649:0x420,_0x244ffa:0x33b,_0x2aba8d:0x2d3,_0x12f17d:0x1b3,_0x5a05f6:0x1ce,_0x220937:0x26a,_0x103628:0x2bf,_0x58c0fe:0x3c4,_0x1fc42f:0x21a,_0x55ca30:0x24f,_0x28d156:0x531,_0x25a184:0x5b4,_0x2d5b8e:0x5c7,_0x37a02b:0x612,_0x9816d3:0x500,_0x361be0:0x5c4,_0x3c8413:0x44b,_0x13fce2:0x1a9,_0x2772d3:0x4a5,_0x242ccf:0x378,_0x287ee8:0x594,_0x757833:0x3da,_0x3e80dc:0x38f,_0x1f72fa:0x267,_0x417d71:0x1ad,_0x44769f:0x215,_0x398bdd:0x455,_0x3702a9:0x427,_0xee9ea3:0x3c9,_0x11ac83:0x4db,_0x33e433:0x472,_0x3dd371:0x5a7,_0x4cb9f5:0x1e7,_0x5df7e1:0x136,_0x299946:0x1a4,_0x479b66:0x1c9,_0x3692e5:0x669,_0x23d85f:0x2cf,_0x3159fa:0x316,_0x542ee5:0x398,_0x5af09e:0x347,_0x2fad93:0x74,_0x12cea4:0x150,_0x2ff64f:0x34d,_0x668142:0x3b7,_0x4df663:0x24f,_0x3dbe8e:0x584,_0x12b475:0x4de,_0xe9395e:0x567,_0x5f0894:0x438,_0x45a12f:0x55f,_0x277f32:0x634,_0x1924a2:0x559,_0x3fda31:0x35d,_0x5dec73:0x332,_0x2a3aa6:0x20f,_0x4235b7:0x2d4,_0x535915:0x30c,_0x273797:0x15f,_0x146d68:0x596,_0x13c19e:0x630,_0x44d291:0x608,_0x189b2f:0x36f,_0x244119:0x47,_0x420152:0xe5,_0x5b37fb:0x119,_0x188b22:0x1fe,_0x1e1cea:0x23c,_0x413f41:0x231,_0x40da0a:0x317,_0x15b1c9:0x44d,_0x17c948:0x23a,_0x209fee:0x2bd,_0x177e4d:0x141,_0x2e03e9:0x1f9,_0x49a86d:0x44,_0x12b3f8:0x113,_0x341406:0x4ee,_0x5d5a19:0x55d,_0x2b0bb4:0x53c,_0xb43034:0x3b6,_0x259574:0x386,_0xf18733:0x218,_0x176972:0x33d,_0x228e89:0x33c,_0x4f6bce:0x30a,_0x296692:0x20f,_0x52966f:0x475},_0x4497f4={_0x2cebf9:0xe3},_0x5a80a4={_0x4b91b5:0x18e,_0x31e5da:0x195},_0xa6424f=Math['max'](0x1,Math[_0x3cc919(0x160,0x1ad,-0x2b,_0x354fdc._0x3ed305)](0x32,_0x81e11b[_0x3cc919(-0x4f,-0x2d,-_0x354fdc._0x306742,_0x354fdc._0x3e5123)]));function _0x210770(_0x1c691f,_0x4cf29a,_0x47597b,_0x3cf97d){return _0x1932a3(_0x1c691f,_0x4cf29a-_0x5a80a4._0x4b91b5,_0x4cf29a-0x5a,_0x3cf97d-_0x5a80a4._0x31e5da);}if(_0x81e11b[_0x3cc919(_0x354fdc._0x29c616,_0x354fdc._0x3aca8a,0x2aa,_0x354fdc._0x566409)]+_0xa6424f>0x64)throw new ToolExecutionError(_0x3cc919(0x92,_0x354fdc._0x3cbf49,_0x354fdc._0xf643c7,_0x354fdc._0x3b18ed),{'offset':_0x81e11b['offset'],'count':_0xa6424f,'maxResults':0x64});const _0x37b24a=cseDateRestrict(_0x81e11b[_0x3cc919(0x176,_0x354fdc._0xabe2ef,_0x354fdc._0x50fb78,0x1ca)]),_0x34c63c=addSiteFilters(_0x81e11b[_0x3cc919(_0x354fdc._0x2d8cfb,_0x354fdc._0x4ebf95,_0x354fdc._0x140081,0x1e2)],_0x81e11b[_0x3cc919(0x18c,_0x354fdc._0x42871f,0x1d2,0x225)]);let _0xba7a96=0x0,_0x50d82f=_0x81e11b[_0x210770(0x427,0x56b,0x435,0x4d3)]+0x1;const _0x45ced0=[];while(_0xba7a96<_0xa6424f){const _0x3e5fb6=Math['min'](0xa,_0xa6424f-_0xba7a96),_0x155ed3=new URL(_0x3cc919(-_0x354fdc._0xa30a6b,_0x354fdc._0x4a9b28,0xb9,_0x354fdc._0x422819));_0x155ed3['searchParams'][_0x3cc919(_0x354fdc._0x4c722d,_0x354fdc._0x4fa649,_0x354fdc._0x244ffa,_0x354fdc._0x2aba8d)](_0x3cc919(_0x354fdc._0x12f17d,_0x354fdc._0x5a05f6,_0x354fdc._0x220937,0x1f5),_0x26de3d[_0x3cc919(0x100,0x1b5,0x1a8,0x128)]),_0x155ed3[_0x3cc919(_0x354fdc._0x103628,_0x354fdc._0x58c0fe,_0x354fdc._0x1fc42f,_0x354fdc._0x55ca30)]['set']('cx',_0x26de3d[_0x210770(0x54f,_0x354fdc._0x28d156,_0x354fdc._0x25a184,0x3d9)]),_0x155ed3['searchParams']['set']('q',_0x34c63c),_0x155ed3[_0x210770(_0x354fdc._0x2d5b8e,0x4db,_0x354fdc._0x37a02b,0x39c)]['set'](_0x210770(0x401,_0x354fdc._0x9816d3,_0x354fdc._0x3aca8a,_0x354fdc._0x361be0),String(_0x3e5fb6)),_0x155ed3[_0x210770(0x37e,0x4db,0x513,_0x354fdc._0x3c8413)][_0x3cc919(0x42a,_0x354fdc._0x13fce2,0x30b,0x2d3)](_0x210770(0x5ab,_0x354fdc._0x2772d3,_0x354fdc._0x242ccf,0x35b),String(_0x50d82f)),_0x155ed3['searchParams'][_0x210770(_0x354fdc._0x287ee8,0x55f,0x51b,0x610)]('safe',_0x81e11b[_0x210770(_0x354fdc._0x757833,_0x354fdc._0x3e80dc,0x2fc,_0x354fdc._0x1f72fa)]?'active':_0x3cc919(_0x354fdc._0x417d71,_0x354fdc._0x44769f,_0x354fdc._0x398bdd,0x304));_0x81e11b[_0x210770(0x478,0x3c2,0x45c,_0x354fdc._0x3702a9)]&&(_0x155ed3[_0x3cc919(0x202,0x25d,0x28d,0x24f)][_0x3cc919(0x303,0x1a3,_0x354fdc._0xee9ea3,0x2d3)]('hl',_0x81e11b[_0x3cc919(0x171,0x64,0x0,0x136)]),_0x155ed3[_0x210770(0x530,_0x354fdc._0x11ac83,_0x354fdc._0x33e433,_0x354fdc._0x3dd371)][_0x3cc919(0x216,0x279,0x1c5,0x2d3)]('lr','lang_'+_0x81e11b[_0x3cc919(_0x354fdc._0x4cb9f5,0x17b,0xb0,_0x354fdc._0x5df7e1)]));if(_0x81e11b[_0x3cc919(_0x354fdc._0x299946,-0x12,_0x354fdc._0x479b66,0x8a)])_0x155ed3[_0x210770(0x3f6,0x4db,0x4b3,0x638)][_0x210770(_0x354fdc._0x3692e5,0x55f,0x61a,0x4d5)]('gl',_0x81e11b[_0x210770(_0x354fdc._0x23d85f,_0x354fdc._0x3159fa,_0x354fdc._0x542ee5,_0x354fdc._0x5af09e)]['toUpperCase']());if(_0x81e11b[_0x3cc919(_0x354fdc._0x306742,_0x354fdc._0x2fad93,0x15b,_0x354fdc._0x12cea4)]===_0x3cc919(0x3cb,0x26e,_0x354fdc._0x2ff64f,0x2c0))_0x155ed3[_0x3cc919(0x16d,0x2ca,_0x354fdc._0x668142,_0x354fdc._0x4df663)]['set']('searchType',_0x210770(_0x354fdc._0x3dbe8e,_0x354fdc._0x12b475,_0x354fdc._0xe9395e,_0x354fdc._0x5f0894));if(_0x37b24a)_0x155ed3['searchParams'][_0x210770(0x4ea,_0x354fdc._0x45a12f,_0x354fdc._0x277f32,_0x354fdc._0x1924a2)]('dateRestrict',_0x37b24a);const _0x36efb2=await fetchJson(_0x155ed3[_0x210770(0x244,_0x354fdc._0x3fda31,0x468,0x3aa)](),_0x1f5a66),_0x3bb4ff=_0x36efb2['items']??[];if(_0x3bb4ff[_0x3cc919(0x199,0x1d8,_0x354fdc._0x5dec73,_0x354fdc._0x2a3aa6)]===0x0)break;const _0x5e84c0=_0xba7a96;for(let _0x2b0b87=0x0;_0x2b0b87<_0x3bb4ff[_0x3cc919(_0x354fdc._0x4235b7,_0x354fdc._0x535915,_0x354fdc._0x273797,_0x354fdc._0x2a3aa6)];_0x2b0b87++){const _0x52c315=_0x3bb4ff[_0x2b0b87];if(!_0x52c315)continue;const _0xa03304=_0x52c315[_0x210770(0x673,_0x354fdc._0x146d68,0x41d,_0x354fdc._0x13c19e)]||_0x52c315['image']?.['contextLink']||'',_0x404c3b=_0x52c315['title']||_0x52c315[_0x210770(0x5eb,0x4de,_0x354fdc._0x44d291,_0x354fdc._0x189b2f)]?.[_0x3cc919(0x1de,0x3ae,0x330,0x2a0)]||_0x3cc919(0x187,-_0x354fdc._0x244119,_0x354fdc._0x420152,_0x354fdc._0x5b37fb),_0x1365d6=_0x52c315[_0x3cc919(_0x354fdc._0x188b22,_0x354fdc._0x1e1cea,0x2ca,_0x354fdc._0x413f41)]||_0x52c315['htmlSnippet']?.[_0x210770(0x3e8,0x374,_0x354fdc._0x40da0a,_0x354fdc._0x15b1c9)](/<[^>]+>/g,''),_0x534c69=_0x52c315[_0x3cc919(_0x354fdc._0x17c948,_0x354fdc._0x209fee,_0x354fdc._0x177e4d,0x1da)]?.[_0x3cc919(_0x354fdc._0x2e03e9,_0x354fdc._0x49a86d,0x1c4,_0x354fdc._0x12b3f8)]?.[0x0]??{};let _0x2e99c2;try{_0x2e99c2=new URL(_0xa03304)['host'];}catch{_0x2e99c2=null;}_0x45ced0[_0x210770(0x550,_0x354fdc._0x341406,_0x354fdc._0x5d5a19,_0x354fdc._0x2b0bb4)]({'title':_0x404c3b,'url':normalizeUrl(_0xa03304),'snippet':_0x1365d6??null,'displayUrl':_0x2e99c2,'favicon':null,'publishedAt':_0x534c69[_0x210770(_0x354fdc._0xb43034,_0x354fdc._0x259574,_0x354fdc._0xf18733,0x43a)]||_0x534c69['og:updated_time']||null,'source':{'engine':'google-cse','rank':_0x5e84c0+_0x2b0b87+0x1}});}_0xba7a96+=_0x3bb4ff[_0x210770(0x4ef,0x49b,0x4d8,_0x354fdc._0x176972)],_0x50d82f+=_0x3bb4ff['length'];if(_0x3bb4ff[_0x3cc919(0x2c2,_0x354fdc._0x228e89,_0x354fdc._0x4f6bce,_0x354fdc._0x296692)]<_0x3e5fb6)break;}function _0x3cc919(_0x4bae25,_0x227d07,_0x3c1489,_0x5aa905){return _0x4ab00a(_0x4bae25-0x1d5,_0x227d07-_0x4497f4._0x2cebf9,_0x227d07,_0x5aa905- -0x329);}return _0x45ced0[_0x210770(_0x354fdc._0x52966f,0x44d,0x3f7,0x5b8)](0x0,_0xa6424f);}function isGoogleCseEngine(_0x4a1e1a){const _0x23bcfd={_0x25ba56:0x152,_0x541141:0xeb};function _0x35d118(_0x146573,_0x460026,_0x3be975,_0x20fc95){return _0x4ab00a(_0x146573-_0x23bcfd._0x25ba56,_0x460026-_0x23bcfd._0x541141,_0x20fc95,_0x460026- -0x433);}return _0x35d118(0xed,0x1e,0x61,-0x2a)in _0x4a1e1a;}function isOllamaEngine(_0x1da9d8){return'apiKey'in _0x1da9d8;}function isTavilyEngine(_0x2046b7){const _0x3975f2={_0x16ee23:0x20};function _0x3b5699(_0xabfdef,_0xbcb280,_0x32eeaf,_0x351fcb){return _0x4ab00a(_0xabfdef-0x1c7,_0xbcb280-_0x3975f2._0x16ee23,_0xabfdef,_0xbcb280- -0xad);}return _0x3b5699(0x261,0x2e6,0x359,0x1dd)in _0x2046b7;}function createWebSearchTool(_0x3d5d5d){const _0x162132={_0x466008:0x265,_0x858b14:0x3e2,_0x2c8e37:0x17d,_0x147da2:0x146,_0x2715f4:0x138,_0x3ab4fa:0xbe,_0x925c20:0x37a,_0x182e3d:0x10f,_0x4e6348:0x1c8,_0x527f9f:0x278,_0x2fd497:0x81,_0x21c148:0x1ad,_0x153368:0x372,_0x45a255:0x31e,_0xd7ba5d:0x35d,_0x39e78d:0x21d,_0x262956:0x5,_0x1076fb:0x213,_0x21da83:0x133,_0x2df269:0xb5,_0x527e3b:0x1a3,_0x447897:0x1cc},_0x4c85d8={_0x32d648:0x3c3,_0x3e5ec6:0x634,_0x29fff4:0x4c6,_0x25cf47:0x4f5,_0x5cbbba:0x112,_0x1fc24e:0x1c9,_0x18072c:0x218,_0x87ee12:0x54,_0xb7c5fa:0x206,_0x38a4d1:0x588,_0x1300db:0x548,_0x2271ff:0xa7,_0x1db891:0x1a6,_0x563396:0x9d,_0x50e2d4:0x24d,_0x374bf6:0x3ae,_0x4fecbb:0x5b7,_0xba8e48:0x9e,_0x23a258:0x2d8,_0xbdbbb8:0x3ac,_0x28673d:0x317,_0x4408e7:0x29d,_0xa23c39:0x3f9,_0x47fadc:0x352,_0x3a30bb:0xf2,_0x1e645d:0x20f,_0x1c6c06:0x43,_0x20908b:0x39,_0x3d29c8:0x5d3,_0x580ca1:0x3f3,_0x8e8ddb:0x4ab,_0x4a4b4d:0x4c8,_0x23f294:0x277,_0x3ceb61:0x4ad,_0x172c82:0x463,_0x31eeea:0x4cf,_0x427e38:0x56,_0x4e92b4:0x189,_0x210787:0x116,_0x19f740:0x52d,_0x233ff1:0x50f,_0x1f7f5e:0x400,_0x1ba0ae:0xd8,_0x35dd37:0x29,_0xa04e0a:0x402,_0x176ab4:0x3d6,_0x380c3f:0x2bd,_0x1fdf46:0x4b5,_0x267ef5:0x41b,_0x581b8f:0x9b,_0x15d220:0x2e,_0x9a3cc9:0x46,_0x45e7e3:0x7d,_0x5cfd58:0xb0,_0x298919:0x177,_0x4b4a33:0x44,_0x13b661:0x379,_0x500d67:0x47c,_0x5076ce:0x6bb,_0x37f514:0x10f,_0x5ec8de:0xd2,_0x36dc8a:0x46,_0x220ce6:0xe1,_0x4ed067:0x5c,_0x5423ac:0xf5,_0xb599a5:0x4a,_0x5e3c1b:0x1,_0xe49e5c:0x93,_0x217b8b:0xf0,_0x14314f:0x65,_0x37b585:0x99,_0x5784ab:0x333,_0x541c35:0x33c,_0x57bbad:0x13f,_0x560ee3:0xa8,_0x202de4:0x340,_0x194fc7:0x4b4,_0x4ad0cd:0x560,_0x45deb8:0x48b,_0x2963dc:0x464,_0x57969e:0x4b8,_0x2d9258:0x41c,_0xfc8b6b:0x346},_0x1e52df={_0x4f5a0d:0x195},_0x3881c8={_0x360ed9:0x105},_0x43a5fe={_0x2e82a0:0x120},_0x337576={_0x3832f0:0x2b,_0x57175a:0x321};function _0x45fe12(_0x4a323c,_0x2e889c,_0x3cd174,_0x71b0fb){return _0x4ab00a(_0x4a323c-0x13c,_0x2e889c-_0x337576._0x3832f0,_0x3cd174,_0x2e889c- -_0x337576._0x57175a);}function _0x126881(_0x13df80,_0x2e69ce,_0x5aa633,_0x4f5715){return _0x1932a3(_0x2e69ce,_0x2e69ce-0x42,_0x4f5715- -0x1d5,_0x4f5715-_0x43a5fe._0x2e82a0);}if(!_0x3d5d5d['engines']||_0x3d5d5d[_0x126881(_0x162132._0x466008,0x178,0x281,0x269)][_0x126881(_0x162132._0x858b14,_0x162132._0x2c8e37,_0x162132._0x147da2,0x26c)]===0x0)throw new Error('WebSearch\x20requires\x20at\x20least\x20one\x20search\x20engine\x20configured');const _0x4aec04=_0x3d5d5d[_0x45fe12(0xcb,_0x162132._0x2715f4,0xd3,0x5a)]??_0x126881(_0x162132._0x3ab4fa,_0x162132._0x925c20,_0x162132._0x182e3d,0x20b),_0x392adb=_0x3d5d5d['lookup'];return defineTool({'name':_0x4aec04,'description':'Search\x20the\x20web\x20and\x20return\x20ranked\x20results.','inputSchema':{'type':_0x45fe12(0x1a9,0x2c1,0x3d3,0x29a),'properties':{'description':{'type':_0x45fe12(0x16e,_0x162132._0x4e6348,0xad,0x2fa)},'query':{'type':_0x126881(0x34b,_0x162132._0x527f9f,0x31a,0x21d)},'count':{'type':'number'},'offset':{'type':_0x45fe12(0x83,0x100,_0x162132._0x2fd497,_0x162132._0x21c148)},'domains':{'type':_0x126881(_0x162132._0x153368,_0x162132._0x45a255,0x261,0x354),'items':{'type':_0x126881(_0x162132._0xd7ba5d,0x2fa,0x38c,_0x162132._0x39e78d)}},'recencyDays':{'type':_0x45fe12(_0x162132._0x262956,0x100,0x1b5,-0x6f)},'lang':{'type':'string'},'region':{'type':_0x126881(_0x162132._0x1076fb,_0x162132._0x21da83,0x34f,0x21d)},'safe':{'type':'boolean'},'type':{'type':_0x126881(_0x162132._0x182e3d,0x2bb,_0x162132._0x2df269,0x21d)},'hydrateMeta':{'type':_0x126881(_0x162132._0x527e3b,0x25e,_0x162132._0x447897,0x11f)}},'required':['query']},async *'execute'(_0x1866d7,_0x59f00b){const _0x497f82={_0x7b2c6d:0x645,_0x320f3f:0x534,_0x56e3e3:0x4f1,_0x5462bc:0x53c,_0x2f7772:0x5ad},_0x2c6845=_0x1866d7['query'][_0x5097b6(_0x4c85d8._0x32d648,0x3ab,0x3df,0x430)]();if(!_0x2c6845)throw new ToolExecutionError('Missing\x20required\x20parameter:\x20query');const _0x224ab3={'query':_0x2c6845,'count':Math[_0x5097b6(_0x4c85d8._0x3e5ec6,_0x4c85d8._0x29fff4,_0x4c85d8._0x25cf47,0x518)](0x1,Math[_0x144226(-_0x4c85d8._0x5cbbba,-0x26a,-_0x4c85d8._0x1fc24e,-_0x4c85d8._0x18072c)](0x32,Math[_0x144226(-0x10b,-0x13f,-0x1d4,-0x26a)](_0x1866d7[_0x5097b6(0x2a0,0x34f,0x3ce,0x370)]??0xa))),'offset':Math[_0x144226(_0x4c85d8._0x87ee12,-0x1a,0xdd,0x144)](0x0,Math[_0x144226(-0x10b,-0x45,-0xbf,-_0x4c85d8._0xb7c5fa)](_0x1866d7[_0x5097b6(0x414,_0x4c85d8._0x38a4d1,_0x4c85d8._0x1300db,0x615)]??0x0)),'domains':_0x1866d7[_0x144226(0x5c,0x8a,-0x1f,0x41)]??[],'recencyDays':Math[_0x144226(0x54,-_0x4c85d8._0x2271ff,_0x4c85d8._0x1db891,-_0x4c85d8._0x563396)](0x0,Math[_0x5097b6(_0x4c85d8._0x50e2d4,0x367,_0x4c85d8._0x374bf6,0x405)](_0x1866d7[_0x5097b6(0x594,0x473,0x572,_0x4c85d8._0x4fecbb)]??0x0)),'lang':_0x1866d7[_0x144226(-0x93,-0x6,-0xd0,-_0x4c85d8._0xba8e48)]??'en','region':_0x1866d7['region']??'','safe':_0x1866d7[_0x5097b6(_0x4c85d8._0x23a258,_0x4c85d8._0xbdbbb8,_0x4c85d8._0x28673d,0x520)]??!![],'type':normalizeType(_0x1866d7[_0x5097b6(_0x4c85d8._0x4408e7,_0x4c85d8._0xa23c39,_0x4c85d8._0x47fadc,0x412)]),'hydrateMeta':_0x1866d7['hydrateMeta']??![]};let _0x3dc9bd=[],_0x2a0cf2=_0x144226(_0x4c85d8._0x3a30bb,-0x4a,_0x4c85d8._0x1e645d,0x1d1);for(const _0x4ac981 of _0x3d5d5d[_0x144226(_0x4c85d8._0x1c6c06,0x10e,_0x4c85d8._0x5cbbba,-_0x4c85d8._0x20908b)]){try{if(isGoogleCseEngine(_0x4ac981))_0x3dc9bd=await searchGoogleCse(_0x4ac981,_0x224ab3,_0x59f00b[_0x5097b6(_0x4c85d8._0x3d29c8,0x4ad,_0x4c85d8._0x580ca1,_0x4c85d8._0x8e8ddb)]),_0x2a0cf2=_0x5097b6(_0x4c85d8._0x4a4b4d,0x36f,_0x4c85d8._0x23f294,0x32c);else{if(isOllamaEngine(_0x4ac981)){const _0x297b0d=await searchOllama(_0x4ac981,_0x224ab3,_0x59f00b[_0x5097b6(0x3f3,_0x4c85d8._0x3ceb61,_0x4c85d8._0x172c82,_0x4c85d8._0x31eeea)]);_0x3dc9bd=_0x297b0d[_0x144226(_0x4c85d8._0x427e38,-0xfe,_0x4c85d8._0x4e92b4,_0x4c85d8._0x210787)],_0x2a0cf2=_0x297b0d[_0x5097b6(0x33a,0x402,_0x4c85d8._0x19f740,0x4b5)];}else{if(isTavilyEngine(_0x4ac981)){const _0x30021c=await searchTavily(_0x4ac981,_0x224ab3,_0x59f00b[_0x5097b6(0x4ff,0x4ad,_0x4c85d8._0x233ff1,_0x4c85d8._0x1f7f5e)]);_0x3dc9bd=_0x30021c[_0x144226(_0x4c85d8._0x427e38,-_0x4c85d8._0x1ba0ae,-0x103,_0x4c85d8._0x35dd37)],_0x2a0cf2=_0x30021c[_0x5097b6(0x29c,_0x4c85d8._0xa04e0a,_0x4c85d8._0x176ab4,_0x4c85d8._0x380c3f)];}}}if(_0x3dc9bd[_0x144226(0x46,0xf5,0x26,0x12f)]>0x0)break;}catch(_0xdbb02d){if(_0x4ac981===_0x3d5d5d[_0x5097b6(0x418,_0x4c85d8._0x1fdf46,0x347,_0x4c85d8._0x267ef5)][_0x3d5d5d[_0x144226(_0x4c85d8._0x1c6c06,_0x4c85d8._0x581b8f,_0x4c85d8._0x15d220,-0x11a)][_0x144226(_0x4c85d8._0x9a3cc9,-_0x4c85d8._0x45e7e3,-0x21,-0xc1)]-0x1])throw _0xdbb02d;}}_0x224ab3[_0x144226(_0x4c85d8._0x5cfd58,_0x4c85d8._0x298919,_0x4c85d8._0x4b4a33,0x7c)]&&_0x3dc9bd['length']>0x0&&(_0x3dc9bd=await hydrateResults(_0x3dc9bd,_0x224ab3[_0x5097b6(0x379,0x3df,0x31e,0x3e1)],_0x59f00b[_0x5097b6(0x5c3,0x4ad,_0x4c85d8._0x13b661,_0x4c85d8._0x172c82)],_0x392adb));const _0x4f32ec=new Set();_0x3dc9bd=_0x3dc9bd[_0x5097b6(_0x4c85d8._0x500d67,0x5bb,_0x4c85d8._0x5076ce,0x451)](_0x7dd443=>{const _0x46992e={_0x18b7e4:0x5d6,_0x4f5b68:0x4};function _0x36a26c(_0x5c8c41,_0x1bccd4,_0x16e7ac,_0x471e43){return _0x144226(_0x471e43-0x1c2,_0x1bccd4-0x1e9,_0x16e7ac-0x15a,_0x5c8c41);}const _0x53d70c=_0x7dd443['url'][_0x3a6506(0x5ad,_0x497f82._0x7b2c6d,_0x497f82._0x320f3f,_0x497f82._0x56e3e3)]();function _0x3a6506(_0x1ef9a1,_0x56c44e,_0x295984,_0x384615){return _0x144226(_0x384615-_0x46992e._0x18b7e4,_0x56c44e-0xfa,_0x295984-_0x46992e._0x4f5b68,_0x56c44e);}if(!_0x53d70c||_0x4f32ec[_0x3a6506(_0x497f82._0x5462bc,0x5c4,_0x497f82._0x2f7772,0x53e)](_0x53d70c))return![];return _0x4f32ec['add'](_0x53d70c),!![];});function _0x144226(_0x51f78c,_0xc4d8b3,_0x51286f,_0x4578a0){return _0x45fe12(_0x51f78c-_0x3881c8._0x360ed9,_0x51f78c- -0x1d1,_0x4578a0,_0x4578a0-0xd7);}_0x3dc9bd=_0x3dc9bd['map']((_0x228420,_0x26d9aa)=>({..._0x228420,'source':{..._0x228420[_0x5097b6(0x43c,0x58d,0x446,0x6bb)],'rank':_0x26d9aa+0x1}}));const _0x336e93={};if(_0x224ab3[_0x144226(0x5c,-_0x4c85d8._0x37f514,0x18c,-_0x4c85d8._0x5ec8de)][_0x144226(_0x4c85d8._0x36dc8a,-0xfb,-_0x4c85d8._0x220ce6,-0xd9)]>0x0)_0x336e93[_0x144226(_0x4c85d8._0x4ed067,-_0x4c85d8._0x5423ac,_0x4c85d8._0xb599a5,0x5f)]=_0x224ab3[_0x144226(0x5c,0x142,-0x10d,0x173)];if(_0x224ab3['recencyDays']>0x0)_0x336e93['recencyDays']=_0x224ab3[_0x144226(_0x4c85d8._0x5e3c1b,0x16e,_0x4c85d8._0x220ce6,0xf3)];if(_0x224ab3[_0x144226(-_0x4c85d8._0xe49e5c,-0xd9,0x1,-0x1b3)]!=='en')_0x336e93['lang']=_0x224ab3[_0x144226(-_0x4c85d8._0xe49e5c,-_0x4c85d8._0x217b8b,_0x4c85d8._0x14314f,-_0x4c85d8._0x37b585)];function _0x5097b6(_0xbd2a3b,_0x1a16a9,_0x50c8fa,_0x59a99f){return _0x45fe12(_0xbd2a3b-0x53,_0x1a16a9-0x2a1,_0x50c8fa,_0x59a99f-_0x1e52df._0x4f5a0d);}if(_0x224ab3[_0x5097b6(0x2e7,_0x4c85d8._0x5784ab,0x409,_0x4c85d8._0x541c35)])_0x336e93['region']=_0x224ab3[_0x144226(-_0x4c85d8._0x57bbad,-_0x4c85d8._0x560ee3,_0x4c85d8._0x15d220,-0x156)];return yield createToolOutput(formatResults(_0x3dc9bd),{'engine':_0x2a0cf2,'count':_0x3dc9bd[_0x5097b6(_0x4c85d8._0x202de4,0x4b8,_0x4c85d8._0x194fc7,_0x4c85d8._0x4ad0cd)],'items':_0x3dc9bd,'query':_0x224ab3[_0x5097b6(0x54a,_0x4c85d8._0x45deb8,_0x4c85d8._0x2963dc,0x514)],...Object['keys'](_0x336e93)[_0x5097b6(0x4e8,_0x4c85d8._0x57969e,_0x4c85d8._0x2d9258,_0x4c85d8._0xfc8b6b)]>0x0?{'appliedFilters':_0x336e93}:{},'offset':_0x224ab3['offset'],'totalRequested':_0x224ab3['count'],'hydrated':_0x224ab3['hydrateMeta']}),void 0x0;}});}export{BackgroundProcessRegistry,ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashOutputTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createKillShellTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
1
+ (function(_0x19d07a,_0x6f6470){const _0x4daef7={_0x875422:0x1af,_0x215b33:0x2b,_0x2bd0f9:0xc4,_0x509f53:0x318,_0x4a6c7a:0x2f4,_0x264275:0x26c,_0x316f9d:0x280,_0x3e0a03:0x261,_0x292a6f:0x101,_0x3cf7aa:0x12f,_0x52713f:0x1cd,_0x3a85d7:0x1cb,_0x16eb4d:0x37e,_0x5901d8:0x4b7,_0x1a39a3:0x297,_0x5723fd:0x566,_0x467f6f:0x593,_0xbff1ac:0x308,_0x3e7fb2:0x38a,_0x4f4a73:0x29e,_0x2934f2:0x2ce,_0x210538:0x33a,_0x38f295:0x111,_0x267a18:0x8e,_0x585d5e:0x146},_0x25f5bb=_0x19d07a();function _0x5b1bf3(_0x49e82e,_0x24cb48,_0x9366f9,_0x2fe2b1){return _0x16af(_0x9366f9-0x15d,_0x49e82e);}function _0x1b6eee(_0x147d9a,_0x2b1c73,_0x3f574,_0x17154c){return _0x16af(_0x17154c- -0xbf,_0x2b1c73);}while(!![]){try{const _0x4ff590=-parseInt(_0x1b6eee(_0x4daef7._0x875422,-_0x4daef7._0x215b33,0xa6,_0x4daef7._0x2bd0f9))/0x1+-parseInt(_0x1b6eee(_0x4daef7._0x509f53,0x414,0x179,_0x4daef7._0x4a6c7a))/0x2*(-parseInt(_0x1b6eee(_0x4daef7._0x264275,_0x4daef7._0x316f9d,_0x4daef7._0x3e0a03,0x30e))/0x3)+-parseInt(_0x1b6eee(-0x35,_0x4daef7._0x292a6f,0x77,_0x4daef7._0x3cf7aa))/0x4*(parseInt(_0x5b1bf3(_0x4daef7._0x52713f,_0x4daef7._0x3a85d7,0x2d1,_0x4daef7._0x16eb4d))/0x5)+-parseInt(_0x1b6eee(_0x4daef7._0x5901d8,_0x4daef7._0x1a39a3,0x2c3,0x37d))/0x6*(parseInt(_0x5b1bf3(0x637,_0x4daef7._0x5723fd,_0x4daef7._0x467f6f,0x56a))/0x7)+-parseInt(_0x5b1bf3(_0x4daef7._0xbff1ac,0x241,_0x4daef7._0x3e7fb2,0x266))/0x8+parseInt(_0x1b6eee(0x2b3,0x1db,_0x4daef7._0x4f4a73,_0x4daef7._0x2934f2))/0x9*(parseInt(_0x5b1bf3(0x336,_0x4daef7._0x210538,0x467,0x4a4))/0xa)+parseInt(_0x1b6eee(_0x4daef7._0x38f295,_0x4daef7._0x267a18,0x22e,_0x4daef7._0x585d5e))/0xb;if(_0x4ff590===_0x6f6470)break;else _0x25f5bb['push'](_0x25f5bb['shift']());}catch(_0x463acc){_0x25f5bb['push'](_0x25f5bb['shift']());}}}(_0x892d,0xdfede));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-UIXQPCSN.js';import{getTextFromMessage}from'../chunk-YWQXXHHU.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x4c748a from'path';var EXTENSION_TO_LANGUAGE={'.ts':'typescript','.tsx':_0x26f978(0x368,0x1b4,0x325,0x2c6),'.js':_0x26f978(0x2d,0x20b,0x183,0x75),'.jsx':'javascriptreact','.mjs':_0x199ce4(-0xff,-0x24f,0x5f,0x1a),'.cjs':_0x199ce4(-0xff,0x70,-0x11b,-0x133),'.mts':_0x199ce4(0xf,0x138,0x166,-0x2c),'.cts':_0x26f978(0x1a0,0x214,0x291,0x123),'.json':_0x26f978(0x2c1,0x1fb,0x303,0x3fe),'.jsonc':_0x26f978(0x181,0xe8,0x1bc,0x2c2)};function getLanguageId(_0xf1ae9c){const _0x461b98={_0x22d8df:0x6a8,_0x5ae9b5:0x90},_0x18bc5d={_0x2c8918:0x54,_0x10d3ed:0x98,_0x3a2bd1:0x236},_0x59e9ae={_0x1fd448:0xb3,_0x3d1e98:0x3d};function _0x359d45(_0x355ff7,_0x428c5a,_0xb9f60,_0x4a087e){return _0x26f978(_0x355ff7-_0x59e9ae._0x1fd448,_0x428c5a-_0x59e9ae._0x3d1e98,_0x428c5a-0x393,_0xb9f60);}function _0x4d4a9d(_0x219656,_0xa59d5d,_0x4c6078,_0x50632c){return _0x26f978(_0x219656-_0x18bc5d._0x2c8918,_0xa59d5d-_0x18bc5d._0x10d3ed,_0xa59d5d- -_0x18bc5d._0x3a2bd1,_0x219656);}return EXTENSION_TO_LANGUAGE[_0x4c748a[_0x359d45(_0x461b98._0x22d8df,0x6e1,0x814,0x5d7)](_0xf1ae9c)[_0x4d4a9d(_0x461b98._0x5ae9b5,0x10b,0x76,-0x4f)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x1248c1){const _0xb74553={_0x3becb3:0x109,_0x27dcbf:0x13d},_0x4598de={_0x1defae:0x7c,_0x3e21d2:0x142};function _0x1215d6(_0x197164,_0x39e1c2,_0x929dca,_0x222658){return _0x199ce4(_0x39e1c2-_0x4598de._0x1defae,_0x39e1c2-_0x4598de._0x3e21d2,_0x222658,_0x222658-0x195);}return pathToFileURL(_0x1248c1)[_0x1215d6(-_0xb74553._0x3becb3,0x63,0x6b,_0xb74553._0x27dcbf)]();}function textDocumentPosition(_0x423e91){const _0x455320={_0x1c9431:0x156,_0x272f4d:0x8a,_0x55dc2b:0xe3},_0x195302={_0x4f6d1b:0x111,_0x5ec360:0x1e7,_0x47569d:0x20e};function _0x4f6009(_0x3f73ce,_0x312120,_0x4f30ab,_0x5ccc30){return _0x26f978(_0x3f73ce-_0x195302._0x4f6d1b,_0x312120-_0x195302._0x5ec360,_0x4f30ab- -_0x195302._0x47569d,_0x5ccc30);}return{'textDocument':{'uri':uriForPath(_0x423e91['file'])},'position':{'line':_0x423e91[_0x4f6009(-_0x455320._0x1c9431,_0x455320._0x272f4d,-_0x455320._0x55dc2b,0x6e)],'character':_0x423e91['character']}};}function normalizeLocations(_0x5ef66a){const _0xf22fbe={_0x19e37b:0xea,_0x342263:0xc8},_0xdd001b={_0x22db52:0x17};if(!_0x5ef66a)return[];function _0x3f27a2(_0x253ab2,_0x2b2e43,_0x2b776f,_0x44ac8d){return _0x199ce4(_0x44ac8d-0x191,_0x2b2e43-0x1de,_0x253ab2,_0x44ac8d-_0xdd001b._0x22db52);}return Array[_0x3f27a2(_0xf22fbe._0x19e37b,0x271,_0xf22fbe._0x342263,0x181)](_0x5ef66a)?_0x5ef66a:[_0x5ef66a];}async function createLspClient(_0x2a75e7){const _0x37b1c5={_0x3b971f:0x2f5,_0xd32a5:0x2fe,_0x3f5f4d:0x242,_0x1e3667:0x51a,_0x355c53:0x643,_0x41f9cb:0x1a3,_0x4e4424:0x18d,_0x18af1e:0x26a,_0x17775c:0x664,_0x157fed:0x3f5,_0x45f206:0x2ef,_0x316d13:0x1ad,_0x3c25b7:0x215,_0x5a6693:0x336,_0x1ac3c6:0x325,_0x595b53:0x23e,_0x563a05:0x337,_0x487076:0x3f8,_0x5e4d66:0x55d,_0xc3a4b8:0x4ca,_0x4c05cc:0x44f,_0x533398:0x509,_0x56e327:0x5dc,_0x1fc214:0x338,_0x2eb84f:0x3e7,_0x14caf7:0x2f8,_0x2b7474:0x36e,_0x8807eb:0x198,_0x20cf5d:0xde,_0x35fe2f:0x150,_0x485939:0x2b,_0x1d9b1b:0x7c,_0x354703:0xc2,_0x915844:0x2e5,_0x4b64c1:0x304,_0x2b850a:0x35f,_0x2603d0:0x478,_0x530008:0x411,_0x58df2e:0x67c,_0x3f2760:0xbc,_0x17cbe6:0x160},_0x2d114e={_0x12c144:0x344,_0x2d3f0d:0x78a,_0x123f37:0x69c,_0x11c72d:0x31c,_0x453434:0x42f,_0x185195:0x7a2,_0xcaa9d7:0x6ec,_0x49f9a7:0x61d},_0x1dfeef={_0xceb30a:0x15f,_0x29db80:0x1a6},_0x288c6d={_0x4caefa:0x33c,_0x5527b9:0x2d0,_0x4a30e6:0x3a5},_0x43820f={_0x2e6f1f:0x4a4,_0x66e756:0x64b,_0x55c65a:0x784,_0x474eb1:0x730,_0x48f553:0x5c0,_0x3b7fce:0x829,_0x2b3bcc:0x6ef},_0x854f3a={_0x4fcf9d:0x2b0,_0x4d4b58:0x16b},_0xb32889={_0x1ced88:0x522,_0x5d0eb4:0x463,_0x24d7c8:0x589,_0x52d4b9:0x305},_0x47d5b7={_0x2e60aa:0xc8},_0x3087b6={_0xd017d:0x41f,_0x198a7d:0x316},_0x2fbc73={_0x430a52:0x321,_0x24a274:0x20c,_0x3ea243:0x341},_0x38f728={_0x56e97f:0x476,_0x52dfdd:0x2f4,_0x5c810e:0x21d,_0x454663:0x157,_0x203151:0x16e},_0x2ea51d={_0xe12f1d:0x4e},_0x1f6063={_0x4cb875:0x1d9,_0x10f79c:0x223,_0x16a515:0x2fb,_0x76dae1:0x227,_0x1149f6:0xdb},_0x3ef3bb={_0x148bde:0x152},_0x527f2e={_0x143671:0x57b,_0x1e367e:0x548,_0x3c01ab:0x514,_0x185213:0x526,_0x3a29f1:0x3ae,_0x48c7c8:0x56c},_0x195961={_0x3c097f:0x1b9,_0x569d20:0x4e7},_0x19c422={_0x551f0d:0x3e6,_0x274512:0x35f,_0x25a7ef:0x2af},_0x4eb574={_0x28e166:0x3d6,_0x422150:0x4e7,_0x5464b3:0x8f,_0x551c65:0x226},_0x4d1933={_0x3eb8c3:0x30f,_0x368dd7:0x35c,_0x216d7d:0x299,_0x531468:0x4f9,_0x52a5a7:0x4c9},_0x5b94e8={_0x301ce6:0x282,_0x5053e5:0x53},_0x457990={_0x2d4135:0x690,_0xb8fe8e:0x4bb,_0x35bb05:0x581,_0x30c5ba:0x41a,_0x13a43a:0x48a,_0xf1df84:0x561,_0x13203e:0x2d6,_0x234a91:0x415},_0x3bb812={_0x604be7:0x7,_0x171339:0x246},_0x198b7e={_0x4c5d23:0x165},_0x479725={_0x2cfb02:0x19b,_0xa1170b:0x2e7,_0x36f220:0x5e,_0x1cb620:0x586,_0xc77feb:0x4b5,_0x14d2ee:0x42e,_0x30bc0e:0x27b,_0x43cedd:0x23,_0xd598c7:0x19b},_0x164fed={_0x55e9d3:0x3f,_0x4ef715:0x1cd},_0x8b69ec={_0x144b4f:0x10a,_0x425587:0x19b};function _0x4fdbe5(_0x144ac8,_0x4e3800,_0xa0836f,_0x2422b2){return _0x26f978(_0x144ac8-0x12,_0x4e3800-_0x8b69ec._0x144b4f,_0xa0836f-_0x8b69ec._0x425587,_0x144ac8);}const _0x336d66=_0x2a75e7[_0x3d18ef(0x30b,0x165,0x278,0x2b8)][_0x3d18ef(_0x37b1c5._0x3b971f,_0x37b1c5._0xd32a5,0x18d,_0x37b1c5._0x3f5f4d)]['stdout'],_0xc89003=_0x2a75e7[_0x4fdbe5(_0x37b1c5._0x1e3667,0x4eb,0x4f3,_0x37b1c5._0x355c53)][_0x3d18ef(0x271,_0x37b1c5._0x41f9cb,_0x37b1c5._0x4e4424,_0x37b1c5._0x18af1e)][_0x4fdbe5(0x574,_0x37b1c5._0x17775c,0x546,_0x37b1c5._0x157fed)];if(!_0x336d66||!_0xc89003)throw new Error(_0x4fdbe5(0x331,0x3bd,0x39a,0x433));const _0x25ebe4=createMessageConnection(new StreamMessageReader(_0x336d66),new StreamMessageWriter(_0xc89003)),_0x51165d=new Map(),_0x4ae23d=new Map();let _0x2e275b=![];_0x25ebe4[_0x3d18ef(_0x37b1c5._0x45f206,_0x37b1c5._0x316d13,0x316,0x1e1)](_0x3d18ef(0x5f,_0x37b1c5._0x3c25b7,0x195,0xc6),_0xa7c989=>{const _0x1f2613={_0x55e942:0x137,_0x1689ee:0x17};_0x51165d['set'](_0xa7c989[_0x779297(_0x479725._0x2cfb02,_0x479725._0xa1170b,_0x479725._0x36f220,0x100)],_0xa7c989['diagnostics']);function _0x779297(_0x28728d,_0x263fc9,_0x3a37c0,_0x5e29a6){return _0x3d18ef(_0x5e29a6,_0x263fc9-_0x164fed._0x55e9d3,_0x28728d-0xc0,_0x5e29a6-_0x164fed._0x4ef715);}const _0x1c8812=_0x4ae23d[_0x4c17ac(_0x479725._0x1cb620,_0x479725._0xc77feb,_0x479725._0x14d2ee,0x54a)](_0xa7c989[_0x779297(0x19b,0x194,_0x479725._0x30bc0e,_0x479725._0x43cedd)]);function _0x4c17ac(_0x405bd5,_0x72e239,_0x78374c,_0x36b884){return _0x4fdbe5(_0x36b884,_0x72e239-_0x1f2613._0x55e942,_0x72e239-0x1e9,_0x36b884-_0x1f2613._0x1689ee);}if(!_0x1c8812)return;_0x4ae23d['delete'](_0xa7c989[_0x779297(_0x479725._0xd598c7,0x1c6,0x1d2,0x113)]);for(const _0x4543be of _0x1c8812)_0x4543be();}),_0x25ebe4[_0x4fdbe5(0x388,0x479,0x364,_0x37b1c5._0x5a6693)]();function _0x3d18ef(_0x13c2d2,_0x47b0ec,_0x45f5a5,_0x59d616){return _0x26f978(_0x13c2d2-_0x198b7e._0x4c5d23,_0x47b0ec-0x17e,_0x45f5a5- -0xe0,_0x13c2d2);}const _0x3fad24=await _0x25ebe4[_0x4fdbe5(_0x37b1c5._0x1ac3c6,_0x37b1c5._0x595b53,0x30f,0x341)](_0x4fdbe5(0x1d7,0x30a,_0x37b1c5._0x563a05,_0x37b1c5._0x487076),{'processId':process[_0x4fdbe5(0x35a,_0x37b1c5._0x5e4d66,_0x37b1c5._0xc3a4b8,0x5a5)],'rootUri':uriForPath(_0x2a75e7['root']),'workspaceFolders':[{'uri':uriForPath(_0x2a75e7[_0x4fdbe5(_0x37b1c5._0x4c05cc,0x4ac,_0x37b1c5._0x533398,_0x37b1c5._0x56e327)]),'name':_0x2a75e7[_0x4fdbe5(0x373,_0x37b1c5._0x1fc214,0x369,_0x37b1c5._0x2eb84f)]['id']}],'initializationOptions':_0x2a75e7[_0x3d18ef(_0x37b1c5._0x14caf7,_0x37b1c5._0x2b7474,0x278,_0x37b1c5._0x8807eb)][_0x3d18ef(0xa5,0x8f,0x17e,0x1f1)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':['markdown',_0x3d18ef(_0x37b1c5._0x20cf5d,0x86,_0x37b1c5._0x35fe2f,0x24)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x25ebe4[_0x3d18ef(-_0x37b1c5._0x485939,-_0x37b1c5._0x1d9b1b,_0x37b1c5._0x354703,-0x88)](_0x4fdbe5(_0x37b1c5._0x915844,_0x37b1c5._0x4b64c1,_0x37b1c5._0x2b850a,0x20a),{});const _0x104eeb={'serverId':_0x2a75e7['server']['id'],'root':_0x2a75e7[_0x4fdbe5(_0x37b1c5._0x2603d0,_0x37b1c5._0x530008,_0x37b1c5._0x533398,_0x37b1c5._0x58df2e)],'connection':_0x25ebe4,'diagnostics':_0x51165d,'capabilities':_0x3fad24[_0x3d18ef(0x8a,_0x37b1c5._0x3f2760,_0x37b1c5._0x17cbe6,0xcc)]??{},'notify':{async 'open'({path:_0x20c47d}){const _0x27d122={_0x442d74:0x122,_0x136a57:0x1d8};function _0x3516cd(_0xd847f2,_0xd88d2d,_0x47757e,_0x6490fc){return _0x3d18ef(_0x47757e,_0xd88d2d-_0x3bb812._0x604be7,_0xd847f2-_0x3bb812._0x171339,_0x6490fc-0x38);}function _0xdde5e3(_0xff876b,_0x2c6405,_0x3c681e,_0x408c1d){return _0x4fdbe5(_0xff876b,_0x2c6405-0x9b,_0x408c1d-_0x27d122._0x442d74,_0x408c1d-_0x27d122._0x136a57);}const _0x2c25c3=await readFile(_0x20c47d,_0xdde5e3(_0x457990._0x2d4135,0x4ad,_0x457990._0xb8fe8e,_0x457990._0x35bb05));_0x25ebe4['sendNotification'](_0xdde5e3(_0x457990._0x30c5ba,_0x457990._0x13a43a,0x44a,_0x457990._0xf1df84),{'textDocument':{'uri':uriForPath(_0x20c47d),'languageId':getLanguageId(_0x20c47d)??_0x3516cd(0x396,_0x457990._0x13203e,0x356,_0x457990._0x234a91),'version':0x1,'text':_0x2c25c3}});},async 'change'({path:_0x35e462,version:_0x2298af}){const _0x17866a={_0x38dd5b:0x18e},_0x5abb88=await readFile(_0x35e462,'utf8');function _0x5afc22(_0x40de8d,_0x306063,_0x343217,_0x10251c){return _0x4fdbe5(_0x343217,_0x306063-0x43,_0x10251c- -_0x17866a._0x38dd5b,_0x10251c-0x39);}_0x25ebe4[_0x5afc22(0x322,_0x5b94e8._0x301ce6,_0x5b94e8._0x5053e5,0x1af)]('textDocument/didChange',{'textDocument':{'uri':uriForPath(_0x35e462),'version':_0x2298af},'contentChanges':[{'text':_0x5abb88}]});},async 'close'({path:_0x30a67a}){const _0x4f4002={_0x23d906:0x1ae,_0x4ab8ad:0x1a9},_0x562d4e={_0x4f1ee8:0xe4,_0x12422d:0x182};function _0x4e2658(_0xc10bbc,_0x17b46e,_0x21b568,_0x154d62){return _0x4fdbe5(_0x17b46e,_0x17b46e-_0x562d4e._0x4f1ee8,_0x154d62-0x8e,_0x154d62-_0x562d4e._0x12422d);}function _0xe257a2(_0x17628f,_0x4e3214,_0x321e56,_0x2f9fed){return _0x3d18ef(_0x4e3214,_0x4e3214-_0x4f4002._0x23d906,_0x2f9fed-_0x4f4002._0x4ab8ad,_0x2f9fed-0x11b);}_0x25ebe4[_0x4e2658(_0x4d1933._0x3eb8c3,_0x4d1933._0x368dd7,0x459,0x3cb)](_0xe257a2(_0x4d1933._0x216d7d,_0x4d1933._0x531468,_0x4d1933._0x52a5a7,0x3be),{'textDocument':{'uri':uriForPath(_0x30a67a)}});}},'request':{async 'definition'(_0x2a8cdf){const _0x35a751={_0x50d3c5:0xf8},_0x21a59a={_0x3f5172:0x1d8};function _0x512dd5(_0x3626dc,_0x4c668f,_0x318517,_0x4ae26e){return _0x4fdbe5(_0x4ae26e,_0x4c668f-0xbe,_0x318517-_0x21a59a._0x3f5172,_0x4ae26e-0x145);}function _0x1e51aa(_0x3c3800,_0x5ee872,_0x1c6de7,_0x309f69){return _0x3d18ef(_0x309f69,_0x5ee872-_0x35a751._0x50d3c5,_0x5ee872- -0x1b7,_0x309f69-0xb9);}return normalizeLocations(await _0x25ebe4[_0x512dd5(_0x4eb574._0x28e166,0x47e,_0x4eb574._0x422150,0x56e)](_0x1e51aa(_0x4eb574._0x5464b3,0x11d,0x34,_0x4eb574._0x551c65),textDocumentPosition(_0x2a8cdf)));},async 'references'(_0x389a89){function _0x25b67a(_0x1bd749,_0x4e57e6,_0x3a7399,_0x3b679d){return _0x4fdbe5(_0x4e57e6,_0x4e57e6-0xcc,_0x3b679d- -0x60,_0x3b679d-0x17d);}return normalizeLocations(await _0x25ebe4[_0x25b67a(_0x19c422._0x551f0d,0x14b,_0x19c422._0x274512,_0x19c422._0x25a7ef)]('textDocument/references',{...textDocumentPosition(_0x389a89),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x2ea40d){const _0x511f60={_0x15601f:0x229};function _0x315564(_0xad0621,_0x187731,_0x151b3c,_0x4407e0){return _0x4fdbe5(_0x4407e0,_0x187731-0xbe,_0x151b3c- -_0x511f60._0x15601f,_0x4407e0-0x105);}function _0x2956d6(_0x5c6cda,_0xdd24ec,_0x86e72e,_0x16444e){return _0x3d18ef(_0xdd24ec,_0xdd24ec-_0x195961._0x3c097f,_0x5c6cda-_0x195961._0x569d20,_0x16444e-0x1b1);}return await _0x25ebe4[_0x2956d6(_0x527f2e._0x143671,_0x527f2e._0x1e367e,_0x527f2e._0x3c01ab,0x68d)](_0x2956d6(_0x527f2e._0x185213,_0x527f2e._0x3a29f1,_0x527f2e._0x48c7c8,0x46b),textDocumentPosition(_0x2ea40d))??null;},async 'documentSymbol'(_0x340bfd){function _0x15b088(_0x39fdc5,_0x58d9e4,_0x52f1cc,_0x310d7d){return _0x3d18ef(_0x39fdc5,_0x58d9e4-0x1ae,_0x52f1cc-0x5a,_0x310d7d-0x126);}function _0x478176(_0x1be434,_0x1c786f,_0x500b3d,_0x3dbbb8){return _0x4fdbe5(_0x500b3d,_0x1c786f-_0x3ef3bb._0x148bde,_0x1c786f- -0x117,_0x3dbbb8-0x40);}return await _0x25ebe4[_0x478176(_0x1f6063._0x4cb875,0x1f8,_0x1f6063._0x10f79c,_0x1f6063._0x16a515)](_0x15b088(_0x1f6063._0x76dae1,0x9c,_0x1f6063._0x1149f6,0x8f),{'textDocument':{'uri':uriForPath(_0x340bfd)}})??[];},async 'workspaceSymbol'(_0xcacb8c){function _0x408d34(_0xa8a650,_0x1d714f,_0x42c20e,_0x2d7be6){return _0x4fdbe5(_0x2d7be6,_0x1d714f-0xe2,_0x1d714f- -0x2db,_0x2d7be6-0x89);}function _0x8520a5(_0x5d8b76,_0x2900af,_0x180aee,_0x537c29){return _0x4fdbe5(_0x2900af,_0x2900af-0x86,_0x180aee-_0x2ea51d._0xe12f1d,_0x537c29-0x1a);}return await _0x25ebe4[_0x8520a5(_0x38f728._0x56e97f,_0x38f728._0x52dfdd,0x35d,0x3d8)](_0x408d34(_0x38f728._0x5c810e,_0x38f728._0x454663,_0x38f728._0x203151,0x19c),{'query':_0xcacb8c})??[];},async 'implementation'(_0xc2aa34){return normalizeLocations(await _0x25ebe4['sendRequest']('textDocument/implementation',textDocumentPosition(_0xc2aa34)));},async 'prepareCallHierarchy'(_0x519111){function _0x4a303f(_0x41e3c9,_0x2c9a10,_0x13310f,_0x8bc739){return _0x3d18ef(_0x41e3c9,_0x2c9a10-0xb4,_0x8bc739-0x2ad,_0x8bc739-0x15e);}return await _0x25ebe4[_0x4a303f(_0x2fbc73._0x430a52,_0x2fbc73._0x24a274,0x3fe,_0x2fbc73._0x3ea243)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x519111))??[];},async 'incomingCalls'(_0x5209fa){const _0x45f531={_0x3beb0c:0x296,_0x3d6e2e:0x189};function _0x4c6263(_0x5b10a0,_0xc7d662,_0x480118,_0x2bdba5){return _0x3d18ef(_0xc7d662,_0xc7d662-0x150,_0x480118-_0x45f531._0x3beb0c,_0x2bdba5-_0x45f531._0x3d6e2e);}return await _0x25ebe4[_0x4c6263(0x22d,_0x3087b6._0xd017d,0x32a,_0x3087b6._0x198a7d)]('callHierarchy/incomingCalls',{'item':_0x5209fa})??[];},async 'outgoingCalls'(_0x30bb91){const _0xedcb7={_0x62a50:0x76,_0x194e56:0x19a,_0x3aacf1:0xa7};function _0x313d44(_0x40c5b6,_0x4d9e07,_0x1e7d46,_0x74342){return _0x3d18ef(_0x1e7d46,_0x4d9e07-_0xedcb7._0x62a50,_0x40c5b6-_0xedcb7._0x194e56,_0x74342-_0xedcb7._0x3aacf1);}function _0x51f3c2(_0x3ad3df,_0x47b88c,_0x46f202,_0x45f86e){return _0x4fdbe5(_0x46f202,_0x47b88c-0x121,_0x47b88c-0x154,_0x45f86e-_0x47d5b7._0x2e60aa);}return await _0x25ebe4[_0x51f3c2(_0xb32889._0x1ced88,_0xb32889._0x5d0eb4,_0xb32889._0x24d7c8,0x557)](_0x313d44(0x261,0x33f,0x220,_0xb32889._0x52d4b9),{'item':_0x30bb91})??[];}},'waitForDiagnostics'({path:_0x5d0ef4,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x240bed={_0x1e3a38:0x232,_0x5e4cb:0x31b,_0x5a012a:0x1f7,_0x352e9f:0x106,_0x1f3011:0x124,_0x329a03:0xe9,_0x178619:0x2da,_0x4e107a:0x22a,_0x5db30e:0x386,_0x3da511:0x21f,_0x56800d:0x270},_0x56e36d={_0x5713f5:0x1d4,_0x429cfb:0x132},_0xea7817=uriForPath(_0x5d0ef4);function _0x3b2035(_0x1a3a0f,_0x3f9f89,_0x3993c9,_0x40ea59){return _0x3d18ef(_0x3993c9,_0x3f9f89-_0x56e36d._0x5713f5,_0x3f9f89-0x420,_0x40ea59-_0x56e36d._0x429cfb);}function _0x433fe2(_0x32593f,_0x132cb9,_0xefdd92,_0x2a4148){return _0x3d18ef(_0x2a4148,_0x132cb9-0xbd,_0x132cb9-_0x854f3a._0x4fcf9d,_0x2a4148-_0x854f3a._0x4d4b58);}if(_0x51165d[_0x433fe2(_0x288c6d._0x4caefa,0x374,0x46f,0x2ac)](_0xea7817))return Promise[_0x433fe2(_0x288c6d._0x5527b9,_0x288c6d._0x4a30e6,0x4ac,0x3fd)]();return new Promise(_0x5cd450=>{function _0x3f0bc5(_0x37e965,_0x42be6a,_0xe07ed3,_0x1996ca){return _0x3b2035(_0x37e965-0x2c,_0x1996ca-0x33,_0x42be6a,_0x1996ca-0x34);}const _0x141d49=setTimeout(()=>{const _0x31f9c5=_0x4ae23d[_0x3d0d2a(_0x240bed._0x1e3a38,_0x240bed._0x5e4cb,0x33e,0x389)](_0xea7817);_0x31f9c5?.[_0x5bb5fd(_0x240bed._0x5a012a,_0x240bed._0x352e9f,_0x240bed._0x1f3011,_0x240bed._0x329a03)](_0x1f0696);function _0x3d0d2a(_0x16cf21,_0x52782d,_0x4e7234,_0x5d7696){return _0x16af(_0x16cf21-0xa4,_0x52782d);}if(_0x31f9c5?.[_0x5bb5fd(0x293,0x405,0x27f,_0x240bed._0x178619)]===0x0)_0x4ae23d[_0x3d0d2a(_0x240bed._0x4e107a,_0x240bed._0x5db30e,_0x240bed._0x3da511,_0x240bed._0x56800d)](_0xea7817);function _0x5bb5fd(_0x1c3e8a,_0xdca901,_0x31ca44,_0x2aff31){return _0x16af(_0x1c3e8a-0x71,_0xdca901);}_0x5cd450();},timeoutMs),_0x1f0696=()=>{clearTimeout(_0x141d49),_0x5cd450();},_0x119662=_0x4ae23d[_0x3f0bc5(0x59c,0x3b4,0x33c,_0x43820f._0x2e6f1f)](_0xea7817)??new Set();_0x119662[_0x3f0bc5(_0x43820f._0x66e756,0x695,_0x43820f._0x55c65a,_0x43820f._0x474eb1)](_0x1f0696);function _0x393e4d(_0x487d8e,_0x225ef1,_0x17da65,_0xcf78a2){return _0x433fe2(_0x487d8e-0x60,_0xcf78a2- -0x1d5,_0x17da65-0x123,_0x17da65);}_0x4ae23d[_0x3f0bc5(_0x43820f._0x48f553,_0x43820f._0x3b7fce,0x805,_0x43820f._0x2b3bcc)](_0xea7817,_0x119662);});},async 'shutdown'(){if(_0x2e275b)return;function _0x38323c(_0x2579e3,_0x29772c,_0x12b667,_0x1c94b4){return _0x4fdbe5(_0x12b667,_0x29772c-_0x1dfeef._0xceb30a,_0x2579e3-0x21e,_0x1c94b4-_0x1dfeef._0x29db80);}function _0x24f1d2(_0x8e15e8,_0x4eb122,_0x66a5f7,_0x2edbdc){return _0x4fdbe5(_0x4eb122,_0x4eb122-0x16f,_0x66a5f7- -0x132,_0x2edbdc-0x8f);}_0x2e275b=!![];try{await _0x25ebe4[_0x24f1d2(_0x2d114e._0x12c144,0xb9,0x1dd,0x29d)](_0x38323c(0x6b8,0x760,0x81f,_0x2d114e._0x2d3f0d),null),_0x25ebe4['sendNotification']('exit');}catch{}finally{_0x25ebe4[_0x38323c(0x75a,0x6d5,0x600,_0x2d114e._0x123f37)](),_0x2a75e7['handle'][_0x24f1d2(0x25f,_0x2d114e._0x11c72d,0x2d6,_0x2d114e._0x453434)][_0x38323c(0x64f,_0x2d114e._0x185195,_0x2d114e._0xcaa9d7,_0x2d114e._0x49f9a7)]();}}};return _0x104eeb;}import{spawn as _0x2f5856}from'child_process';import{access as _0x75c00e}from'fs/promises';import _0x43ea12 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x52f918 from'os';import _0x562cbc from'path';import _0x45fe0a from'which';var installPromises=new Map();function sanitizePackageName(_0x5123e7){const _0x531b96={_0x862076:0x56,_0x6cd00c:0x14e},_0x4e0950={_0x4ebe77:0x48c,_0x2cdbad:0x145},_0xf85712={_0x5979fb:0x131,_0x11da63:0xec};function _0x9d2a9f(_0x48a3e0,_0x1a5153,_0x476fb8,_0x55fe24){return _0x199ce4(_0x1a5153- -0x71,_0x1a5153-_0xf85712._0x5979fb,_0x48a3e0,_0x55fe24-_0xf85712._0x11da63);}function _0x4e7c3e(_0x556fc3,_0x3432ed,_0x2f34a2,_0x9bab20){return _0x199ce4(_0x3432ed-_0x4e0950._0x4ebe77,_0x3432ed-_0x4e0950._0x2cdbad,_0x556fc3,_0x9bab20-0x11a);}return _0x5123e7[_0x9d2a9f(0x6c,-_0x531b96._0x862076,-0x81,0xa8)](/^@/,'')[_0x9d2a9f(-0x80,-0x56,-0x57,-_0x531b96._0x6cd00c)](/[/]/g,'__');}function binaryNameForPlatform(_0x2b557e){const _0x7e0ed4={_0x5015c5:0xf6,_0x609f:0xf,_0x875c83:0x3ff},_0x13fb0b={_0x3e99b9:0x48f,_0x19d4d2:0x56},_0x5dbc3b={_0x1ec9e1:0x1bf,_0x2b9237:0x35e};function _0x46609e(_0xd5cca1,_0x17ea7a,_0x3a9930,_0x539dc7){return _0x26f978(_0xd5cca1-0xc4,_0x17ea7a-_0x5dbc3b._0x1ec9e1,_0x3a9930- -_0x5dbc3b._0x2b9237,_0xd5cca1);}function _0x4fdb09(_0x1bbf3d,_0xb60b48,_0x57da32,_0x3963e7){return _0x199ce4(_0x57da32-_0x13fb0b._0x3e99b9,_0xb60b48-_0x13fb0b._0x19d4d2,_0x1bbf3d,_0x3963e7-0xba);}return process[_0x46609e(0x47,0x7e,-_0x7e0ed4._0x5015c5,_0x7e0ed4._0x609f)]===_0x4fdb09(0x4aa,0x315,_0x7e0ed4._0x875c83,0x424)?_0x2b557e+_0x4fdb09(0x571,0x45d,0x527,0x673):_0x2b557e;}async function exists(_0xae3b9f){try{return await access(_0xae3b9f),!![];}catch{return![];}}function runNpmInstall(_0x123f89,_0x4b8af1,_0x2dde8d){const _0x435b93={_0x554e9f:0x3c4,_0x5b0499:0x37e,_0x1b14d4:0x39f,_0x334174:0x300,_0x28d323:0x367,_0x153bfe:0x2cb,_0x259df1:0x3a7,_0x5962a0:0x4a8,_0x4374bb:0x57d,_0xef15b9:0x3c3,_0x5b4775:0x260};return new Promise(_0x13fa82=>{const _0x5c337d={_0x55cb6a:0x96};function _0xd33fac(_0x50fe90,_0x2f1f42,_0x25a3a1,_0x4479dc){return _0x16af(_0x25a3a1-0x33c,_0x50fe90);}const _0x2f8df6=spawn(_0x19b85f(0x3b7,_0x435b93._0x554e9f,_0x435b93._0x5b0499,_0x435b93._0x1b14d4),['install',_0x19b85f(0x26c,_0x435b93._0x334174,_0x435b93._0x28d323,_0x435b93._0x153bfe),_0x123f89,_0x4b8af1],{'env':_0x2dde8d,'stdio':_0x19b85f(0x236,0x35e,_0x435b93._0x259df1,0x293)});function _0x19b85f(_0x52444b,_0x7fa312,_0x302231,_0x210142){return _0x16af(_0x210142- -_0x5c337d._0x55cb6a,_0x302231);}_0x2f8df6['on'](_0xd33fac(_0x435b93._0x5962a0,_0x435b93._0x4374bb,0x61a,0x4bb),()=>_0x13fa82(![])),_0x2f8df6['on'](_0x19b85f(0x2ac,0x2fb,_0x435b93._0xef15b9,_0x435b93._0x5b4775),_0x366e79=>_0x13fa82(_0x366e79===0x0));});}function shouldDisableLspDownload(_0x3c394f=process[_0x199ce4(-0x3,0x16b,0xbc,0x37)]){const _0x35b086={_0x1018f5:0x9c,_0x4b3e71:0x122,_0x4ee52c:0x326,_0x413924:0x29f},_0x307d78={_0x47155a:0x10d,_0x12a56d:0x21f},_0x2be870={_0x46406e:0x99,_0x5e09cf:0x77},_0x462e00=_0x3c394f[_0x1cc04a(-0x81,_0x35b086._0x1018f5,0x7b,0x1da)]?.[_0x1cc04a(0x21c,0xd2,_0x35b086._0x4b3e71,0x1c)]();function _0x54e9ef(_0x5deb95,_0xde21ad,_0xbdb4aa,_0x4630c9){return _0x199ce4(_0xbdb4aa-0x1c1,_0xde21ad-_0x2be870._0x46406e,_0x5deb95,_0x4630c9-_0x2be870._0x5e09cf);}function _0x1cc04a(_0x464613,_0x24b505,_0x444446,_0x53700e){return _0x26f978(_0x464613-0x52,_0x24b505-_0x307d78._0x47155a,_0x444446- -_0x307d78._0x12a56d,_0x24b505);}return _0x462e00==='true'||_0x462e00==='1'||_0x462e00===_0x54e9ef(_0x35b086._0x4ee52c,0x3f1,_0x35b086._0x413924,0x360)||_0x462e00==='on';}function getLspPackageDir(_0x1de9b8){const _0x191171={_0x1f93a9:0xc5,_0x2795a1:0x95,_0x16d207:0x108,_0x15e04e:0x5a,_0x5d7589:0x172,_0x45667c:0x413},_0x1f299a={_0x45fb49:0x77,_0x1492d8:0x118},_0x79578c={_0x39db8a:0x3eb};function _0x502fb4(_0x38ce37,_0xe7de4b,_0x1f4efe,_0x4aede7){return _0x199ce4(_0x4aede7-_0x79578c._0x39db8a,_0xe7de4b-0x84,_0x1f4efe,_0x4aede7-0x91);}function _0x134e9a(_0x3d97bc,_0x42cb5a,_0x3797b2,_0x23109a){return _0x199ce4(_0x3d97bc- -_0x1f299a._0x45fb49,_0x42cb5a-_0x1f299a._0x1492d8,_0x42cb5a,_0x23109a-0xac);}return _0x562cbc[_0x134e9a(-_0x191171._0x1f93a9,-0x147,-0x232,-0x1fc)](_0x52f918['homedir'](),_0x134e9a(-0x8b,-0x185,-_0x191171._0x2795a1,-_0x191171._0x16d207),_0x134e9a(0x4b,0x121,0xa6,-_0x191171._0x15e04e),_0x502fb4(0x3e0,_0x191171._0x5d7589,_0x191171._0x45667c,0x2b7),sanitizePackageName(_0x1de9b8));}function getLspBinDir(_0xa3b3e4){const _0x2fab86={_0x5494a7:0x557,_0x158cb6:0x498,_0x37ec68:0x6dc,_0x1cf88a:0x382,_0x13ebc1:0x3c2,_0x5320c0:0x3aa},_0x34d5bd={_0x32604e:0x28c},_0x8cbe46={_0x2fad5d:0x187,_0x1bbe26:0x179};function _0x3b937c(_0x157f4e,_0x17c263,_0x278945,_0x3bdd40){return _0x26f978(_0x157f4e-_0x8cbe46._0x2fad5d,_0x17c263-_0x8cbe46._0x1bbe26,_0x157f4e-0x21c,_0x3bdd40);}function _0x21adfd(_0x3c4b19,_0x111e12,_0x8d83cf,_0x31ddc1){return _0x26f978(_0x3c4b19-0xb7,_0x111e12-0x73,_0x8d83cf-_0x34d5bd._0x32604e,_0x111e12);}return _0x562cbc['join'](getLspPackageDir(_0xa3b3e4),_0x21adfd(_0x2fab86._0x5494a7,_0x2fab86._0x158cb6,0x5d9,_0x2fab86._0x37ec68),_0x3b937c(_0x2fab86._0x1cf88a,0x486,_0x2fab86._0x13ebc1,_0x2fab86._0x5320c0));}async function findPackageBinary(_0x424d39,_0x71c08){const _0x809b34={_0x5e3369:0x191,_0x56f524:0x285,_0x485167:0x16,_0x169327:0xe},_0x11878f={_0x1cf8bc:0x87,_0x45c38c:0x9c},_0x522ea2={_0x294825:0xc7,_0x38f635:0x43};function _0x3e89d0(_0x8207e4,_0x2340b4,_0x15d5cc,_0x1e9f07){return _0x199ce4(_0x1e9f07-_0x522ea2._0x294825,_0x2340b4-_0x522ea2._0x38f635,_0x15d5cc,_0x1e9f07-0xf9);}function _0x5d520e(_0x2ef055,_0x5afae5,_0x219c07,_0x45d99b){return _0x26f978(_0x2ef055-_0x11878f._0x1cf8bc,_0x5afae5-_0x11878f._0x45c38c,_0x2ef055- -0x239,_0x45d99b);}let _0x586a37=_0x562cbc['resolve'](_0x71c08);const _0x30b43a=binaryNameForPlatform(_0x424d39);while(!![]){const _0x2f780a=_0x562cbc[_0x3e89d0(0x11a,0x42,_0x809b34._0x5e3369,0x79)](_0x586a37,_0x3e89d0(_0x809b34._0x56f524,_0x809b34._0x485167,0x2f7,0x192),'.bin',_0x30b43a);if(await exists(_0x2f780a))return _0x2f780a;const _0x33f75e=_0x562cbc[_0x5d520e(0x142,0xca,0xb5,-_0x809b34._0x169327)](_0x586a37);if(_0x33f75e===_0x586a37)return void 0x0;_0x586a37=_0x33f75e;}}async function findPathBinary(_0x57467c,_0x4b7b97){const _0x5bb972={_0x421b52:0x147,_0x4e0867:0x48,_0x4ab576:0x3ee,_0x172a6e:0x64a,_0x8b6785:0xb7,_0x1ab934:0x55a,_0x5aaa37:0x48b,_0x1b9876:0x354},_0x810802={_0xc85f74:0xd8},_0x15624c={_0x591b9b:0x112,_0x4f0835:0x44},_0x206bd1=getLspBinDir(_0x4b7b97),_0x2e179f=[_0x206bd1,process[_0x5ca85a(_0x5bb972._0x421b52,0x2a3,0x1a7,_0x5bb972._0x4e0867)][_0x1eb629(_0x5bb972._0x4ab576,0x4ff,_0x5bb972._0x172a6e,0x39c)]][_0x5ca85a(0x12,_0x5bb972._0x8b6785,0xee,0xd0)](Boolean)[_0x1eb629(0x5eb,_0x5bb972._0x1ab934,0x3ea,0x3de)](_0x562cbc[_0x1eb629(0x507,0x492,_0x5bb972._0x5aaa37,_0x5bb972._0x1b9876)]);function _0x1eb629(_0x1e1989,_0x6fa1e8,_0x13cfb7,_0x1a8864){return _0x26f978(_0x1e1989-_0x15624c._0x591b9b,_0x6fa1e8-_0x15624c._0x4f0835,_0x6fa1e8-0x326,_0x13cfb7);}function _0x5ca85a(_0xb21905,_0x562274,_0x1019e4,_0x2dd78f){return _0x26f978(_0xb21905-0x16a,_0x562274-0x1b3,_0x1019e4- -_0x810802._0xc85f74,_0x2dd78f);}try{return await _0x45fe0a(_0x57467c,{'path':_0x2e179f});}catch{return void 0x0;}}async function resolvePackageBinary(_0x2f7090){const _0x3c3b50={_0xc30214:0x388,_0x5af2a3:0x41c,_0x204b1f:0x47f,_0x7b4eac:0x38d,_0x8d3258:0x1ae,_0x407a5c:0x61,_0x41bde3:0x311,_0x20d17a:0x500,_0x3d705f:0x2f8,_0x303d69:0x57,_0x5d7dd0:0x26c,_0x25d1dc:0x177,_0x51dc3e:0x156,_0x26770a:0x18a},_0x3cd9e8={_0x28a7f2:0x163,_0x462c5d:0x190,_0x577c4e:0x325,_0x2dcaa6:0x33c,_0x1c33b4:0x269,_0x1a99a6:0x393,_0x2ab20c:0x6c7,_0x127774:0x661},_0x4762fe={_0x325463:0x40,_0x3c58b4:0x6},_0x276f69={_0x3e8829:0x109},_0x4de2dd={_0x412e3f:0xe4,_0x1db074:0x19c},_0x296808=_0x2f7090['binaryName']??_0x2f7090['packageName'],_0x3bf10b=await findPackageBinary(_0x296808,_0x2f7090[_0x22452c(_0x3c3b50._0xc30214,_0x3c3b50._0x5af2a3,_0x3c3b50._0x204b1f,_0x3c3b50._0x7b4eac)]);function _0x4b86a7(_0x849927,_0x171483,_0x83fba6,_0x270b91){return _0x199ce4(_0x83fba6-0x4bc,_0x171483-_0x4de2dd._0x412e3f,_0x171483,_0x270b91-_0x4de2dd._0x1db074);}if(_0x3bf10b)return _0x3bf10b;const _0x510d8a=await findPathBinary(_0x296808,_0x2f7090['packageName']);if(_0x510d8a)return _0x510d8a;const _0x12ae66=_0x2f7090['env']??process['env'];if(shouldDisableLspDownload(_0x12ae66))return void 0x0;const _0x1fcebd=getLspPackageDir(_0x2f7090[_0x22452c(_0x3c3b50._0x8d3258,0x189,_0x3c3b50._0x407a5c,_0x3c3b50._0x41bde3)]),_0x45b2b7=_0x2f7090[_0x4b86a7(0x4b1,_0x3c3b50._0x20d17a,0x3e6,_0x3c3b50._0x3d705f)]+':'+_0x296808;function _0x22452c(_0x3300cb,_0x5f1d84,_0x16a050,_0x21aec8){return _0x199ce4(_0x3300cb-0x284,_0x5f1d84-_0x276f69._0x3e8829,_0x16a050,_0x21aec8-0x76);}let _0x310ec9=installPromises[_0x22452c(0x133,_0x3c3b50._0x303d69,0x113,_0x3c3b50._0x5d7dd0)](_0x45b2b7);!_0x310ec9&&(_0x310ec9=((async()=>{const _0x3c8d3a={_0x359efc:0x12a,_0x499303:0x180};await mkdir(_0x1fcebd,{'recursive':!![]});function _0x2735ca(_0x1dac7d,_0x1b55cf,_0x25835d,_0x4e91ee){return _0x22452c(_0x1b55cf-0x40a,_0x1b55cf-_0x3c8d3a._0x359efc,_0x1dac7d,_0x4e91ee-_0x3c8d3a._0x499303);}const _0x4c768b=await runNpmInstall(_0x1fcebd,_0x2f7090[_0x329115(_0x3cd9e8._0x28a7f2,_0x3cd9e8._0x462c5d,0x1e1,_0x3cd9e8._0x577c4e)],_0x12ae66);if(!_0x4c768b)return void 0x0;function _0x329115(_0xe16d0,_0xab3ba,_0x2ac2e0,_0x59aa7e){return _0x4b86a7(_0xe16d0-_0x4762fe._0x325463,_0xab3ba,_0x2ac2e0- -0x205,_0x59aa7e-_0x4762fe._0x3c58b4);}const _0x5b7d9c=_0x562cbc[_0x329115(_0x3cd9e8._0x2dcaa6,0x1ff,_0x3cd9e8._0x1c33b4,_0x3cd9e8._0x1a99a6)](getLspBinDir(_0x2f7090[_0x2735ca(0x5ba,0x5b8,_0x3cd9e8._0x2ab20c,_0x3cd9e8._0x127774)]),binaryNameForPlatform(_0x296808));return await exists(_0x5b7d9c)?_0x5b7d9c:void 0x0;})()),installPromises['set'](_0x45b2b7,_0x310ec9));try{return await _0x310ec9;}catch{return void 0x0;}finally{installPromises[_0x22452c(0x12b,_0x3c3b50._0x25d1dc,_0x3c3b50._0x51dc3e,_0x3c3b50._0x26770a)](_0x45b2b7);}}var TYPESCRIPT_EXTENSIONS=['.ts','.tsx',_0x26f978(-0x24,0xf,0x156,0xe6),'.jsx',_0x199ce4(-0x150,-0x26b,-0x26c,-0x260),_0x26f978(0x503,0x392,0x3a8,0x46d),_0x199ce4(-0x13c,-0x16c,-0x136,-0x4f),'.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x199ce4(0x9a,-0xa2,0x11a,0xcf)],TYPESCRIPT_ROOT_MARKERS=[_0x26f978(0x2cb,0x449,0x32b,0x45f),'bun.lockb',_0x199ce4(-0x79,-0x6a,-0x1d9,0xf2),_0x26f978(0x36a,0x35f,0x273,0x170),'yarn.lock',_0x26f978(0x3b6,0x191,0x2ef,0x1fb),_0x199ce4(0x12,-0xea,0x68,0x122),_0x199ce4(-0x5f,0x11a,-0x47,0xda)],BIOME_ROOT_MARKERS=['biome.json',_0x26f978(0x279,0x134,0x2a8,0x3d3),_0x199ce4(0xa9,0x210,0x1fd,0x6f),_0x199ce4(-0x137,-0x7e,-0x16f,-0xcc),_0x199ce4(-0x79,-0xe9,-0x70,0xa7),_0x199ce4(-0xf,0x144,-0x45,0x2d),_0x199ce4(-0x112,0x3c,-0x27b,-0x244),_0x199ce4(-0x5f,-0xfd,-0xfb,0xb0)];async function exists2(_0x34310a){try{return await _0x75c00e(_0x34310a),!![];}catch{return![];}}async function findUp(_0x4327a9,_0x3f6345){const _0x2eddf9={_0x5e7736:0x6dc,_0x3f0028:0x665,_0x3d0b3b:0x7a1,_0x207657:0x562,_0x417814:0x651,_0x8df7f:0x584,_0x22fbeb:0x546},_0x15aa34={_0x74798:0x2f5},_0x38a1b0={_0x119a9a:0x12,_0x459654:0x17e};let _0x35a6b5=_0x43ea12['resolve'](_0x4327a9);function _0x230702(_0x283271,_0x31538e,_0x2029e5,_0x1e4e63){return _0x26f978(_0x283271-_0x38a1b0._0x119a9a,_0x31538e-_0x38a1b0._0x459654,_0x2029e5-0x317,_0x283271);}const _0x503c48=_0x43ea12[_0x230702(0x5e7,_0x2eddf9._0x5e7736,_0x2eddf9._0x3f0028,0x77f)](_0x35a6b5);if(_0x503c48)_0x35a6b5=_0x43ea12[_0x230702(_0x2eddf9._0x3d0b3b,0x803,0x692,_0x2eddf9._0x207657)](_0x35a6b5);function _0x33c23b(_0x19fe49,_0x140fac,_0x161469,_0x4be3cc){return _0x199ce4(_0x140fac-_0x15aa34._0x74798,_0x140fac-0xaf,_0x161469,_0x4be3cc-0xed);}while(!![]){for(const _0x21e66b of _0x3f6345){if(await exists2(_0x43ea12[_0x230702(_0x2eddf9._0x417814,_0x2eddf9._0x8df7f,0x54b,_0x2eddf9._0x22fbeb)](_0x35a6b5,_0x21e66b)))return _0x35a6b5;}const _0x3546b6=_0x43ea12['dirname'](_0x35a6b5);if(_0x3546b6===_0x35a6b5)return void 0x0;_0x35a6b5=_0x3546b6;}}async function hasDenoRoot(_0x34e58e){const _0x3939bf={_0x32889a:0x113,_0x3c4864:0x151,_0x1dcc0c:0x154,_0x1fbc22:0x229,_0x281db2:0x2cf,_0x3bd8df:0x148,_0x4d0bd7:0x24b},_0xf4bff7={_0x2c12be:0x4c,_0x4afc9d:0xbb},_0xd83cb0={_0x460319:0x5c,_0x5a47dc:0xc9};function _0x3afb2e(_0x54f243,_0x54bc83,_0x497d05,_0x335b41){return _0x26f978(_0x54f243-_0xd83cb0._0x460319,_0x54bc83-_0xd83cb0._0x5a47dc,_0x54f243- -0x77,_0x497d05);}function _0x1acb3b(_0x2147c1,_0x5d2a0c,_0x29bc9e,_0x3f21b7){return _0x199ce4(_0x5d2a0c-0x206,_0x5d2a0c-_0xf4bff7._0x2c12be,_0x3f21b7,_0x3f21b7-_0xf4bff7._0x4afc9d);}return await exists2(_0x43ea12[_0x3afb2e(0x1bd,_0x3939bf._0x32889a,_0x3939bf._0x3c4864,_0x3939bf._0x1dcc0c)](_0x34e58e,_0x3afb2e(0x2bd,0x41b,0x25b,_0x3939bf._0x1fbc22)))||await exists2(_0x43ea12['join'](_0x34e58e,_0x3afb2e(0x26c,_0x3939bf._0x281db2,_0x3939bf._0x3bd8df,_0x3939bf._0x4d0bd7)));}async function resolveTsserverPath(_0x4f3ce7){const _0x306749={_0x5011ae:0x312,_0x584b38:0xc1,_0x2e6f41:0x1f3,_0x4f775c:0x6d5,_0x3c98c0:0x656,_0x15f998:0x4ee,_0x5c8323:0x5c1,_0x37d07c:0x1a2,_0x161ce3:0x25f,_0x1258c7:0x355,_0x24ca42:0x479,_0xe5289b:0x4a9,_0x542b6a:0x2e7,_0x2833fc:0x3c0,_0x1de758:0x290,_0x829be8:0x2af,_0x39c0b3:0x252,_0x4afba1:0x561,_0x2d8d7a:0x67d,_0x52308b:0x348,_0x10bf3b:0x2fb,_0x4af660:0x16d,_0x3d0547:0x1d0,_0x1d5bee:0x34f,_0x14abcf:0x299,_0x1e4bd0:0x22a,_0x26c7d0:0x11f},_0x1d4d05={_0x1e11e9:0x10a,_0x2d257e:0x1ea},_0x2f985a={_0x39a5e9:0xaf};let _0x1faab6=_0x43ea12[_0x5e3239(_0x306749._0x5011ae,0x296,_0x306749._0x584b38,_0x306749._0x2e6f41)](_0x4f3ce7);function _0x21b606(_0x4cbecd,_0x56890a,_0x12ec75,_0x57c508){return _0x26f978(_0x4cbecd-_0x2f985a._0x39a5e9,_0x56890a-0x68,_0x12ec75-0x330,_0x56890a);}while(!![]){const _0x18e6bd=_0x43ea12[_0x21b606(0x466,0x44c,0x564,0x56b)](_0x1faab6,_0x21b606(0x52d,_0x306749._0x4f775c,0x67d,_0x306749._0x3c98c0),_0x21b606(0x533,_0x306749._0x15f998,_0x306749._0x5c8323,0x6bb),'lib',_0x5e3239(0x25d,0x263,_0x306749._0x37d07c,_0x306749._0x161ce3));if(await exists2(_0x18e6bd))return _0x18e6bd;const _0x12f64b=_0x43ea12[_0x5e3239(0x36c,_0x306749._0x1258c7,_0x306749._0x24ca42,0x399)](_0x1faab6);if(_0x12f64b===_0x1faab6)break;_0x1faab6=_0x12f64b;}const _0x45edc2=getLspPackageDir(_0x21b606(0x55a,0x6cd,0x5c1,_0x306749._0xe5289b));function _0x5e3239(_0x21bb5a,_0xf5c7b8,_0x53d92f,_0x3c2069){return _0x199ce4(_0x3c2069-0x2a0,_0xf5c7b8-_0x1d4d05._0x1e11e9,_0x53d92f,_0x3c2069-_0x1d4d05._0x2d257e);}const _0x2b3a5b=await resolvePackageBinary({'packageName':_0x5e3239(_0x306749._0x542b6a,_0x306749._0x2833fc,_0x306749._0x1de758,_0x306749._0x829be8),'binaryName':_0x21b606(0x5ee,0x4f6,0x4b7,0x428),'startDir':_0x4f3ce7});if(!_0x2b3a5b)return void 0x0;const _0x39dd32=_0x43ea12[_0x5e3239(0x139,0x38f,0xde,_0x306749._0x39c0b3)](_0x45edc2,_0x21b606(0x710,_0x306749._0x4afba1,_0x306749._0x2d8d7a,0x7be),_0x5e3239(0x156,_0x306749._0x52308b,_0x306749._0x10bf3b,0x2af),_0x5e3239(_0x306749._0x4af660,_0x306749._0x3d0547,_0x306749._0x1d5bee,_0x306749._0x14abcf),_0x5e3239(_0x306749._0x1e4bd0,0x1cd,_0x306749._0x26c7d0,0x25f));return await exists2(_0x39dd32)?_0x39dd32:void 0x0;}var TypeScriptServer={'id':_0x199ce4(0xf,0xff,0xaa,0x2c),'name':'TypeScript\x20Language\x20Server','extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x201394){const _0x1fe2e8=await findUp(_0x201394,TYPESCRIPT_ROOT_MARKERS);if(!_0x1fe2e8)return void 0x0;return await hasDenoRoot(_0x1fe2e8)?void 0x0:_0x1fe2e8;},async 'spawn'(_0x291f68){const _0x92e459={_0x312481:0xdd,_0xde3027:0x292,_0x30363c:0x200,_0x1029dd:0x242,_0x3267d6:0x311,_0x2faceb:0x127,_0x5a81bc:0x1fe,_0x35d0b7:0x257,_0x4eee47:0x10d,_0x226eb2:0x6},_0x382b15={_0xb707c1:0x1ef},_0x4f97ed={_0x41c831:0x1a,_0x393a64:0x16e},_0x16e3be=await resolveTsserverPath(_0x291f68);function _0x4eef89(_0x527edb,_0x3e6af6,_0x3ee7b9,_0x5688fb){return _0x199ce4(_0x3e6af6-0x22e,_0x3e6af6-_0x4f97ed._0x41c831,_0x5688fb,_0x5688fb-_0x4f97ed._0x393a64);}function _0x3e30fc(_0x572a97,_0x321c07,_0x529392,_0x15ed9e){return _0x26f978(_0x572a97-0xed,_0x321c07-_0x382b15._0xb707c1,_0x529392- -0x17d,_0x572a97);}if(!_0x16e3be)return void 0x0;const _0x1872b7=await resolvePackageBinary({'packageName':_0x4eef89(0x298,0x200,0x2a8,_0x92e459._0x312481),'binaryName':_0x4eef89(_0x92e459._0xde3027,_0x92e459._0x30363c,_0x92e459._0x1029dd,0x1ab),'startDir':_0x291f68});if(!_0x1872b7)return void 0x0;return{'process':_0x2f5856(_0x1872b7,[_0x3e30fc(_0x92e459._0x3267d6,_0x92e459._0x2faceb,0x1f2,_0x92e459._0x5a81bc)],{'cwd':_0x291f68,'stdio':_0x3e30fc(0x14c,_0x92e459._0x35d0b7,_0x92e459._0x4eee47,_0x92e459._0x226eb2)}),'initialization':{'tsserver':{'path':_0x16e3be}}};}},BiomeServer={'id':_0x26f978(0x229,0x259,0x1c1,0x9d),'name':_0x199ce4(0x93,0x10e,0x64,0x1a7),'extensions':BIOME_EXTENSIONS,async 'root'(_0x5249fd){return findUp(_0x5249fd,BIOME_ROOT_MARKERS);},async 'spawn'(_0x146eea){const _0x415218={_0x117986:0x60c,_0x395a98:0x545,_0x24df70:0x465},_0x2f2bf7={_0x4ccde9:0x95,_0x61deaa:0x7b},_0x2c734b={_0x394e85:0x190,_0x3e86a4:0x2bb};function _0x13d646(_0x4bda7a,_0x356188,_0x5d9790,_0x234037){return _0x26f978(_0x4bda7a-_0x2c734b._0x394e85,_0x356188-0x78,_0x4bda7a-_0x2c734b._0x3e86a4,_0x356188);}const _0x29e03c=await findPackageBinary(_0x9557ff(0x48d,0x47e,0x58a,_0x415218._0x117986),_0x146eea)??await resolvePackageBinary({'packageName':'@biomejs/biome','binaryName':_0x9557ff(0x604,0x627,0x58a,0x526),'startDir':_0x146eea});function _0x9557ff(_0x14c56b,_0x2ab36c,_0x4496e8,_0x170bbc){return _0x199ce4(_0x4496e8-0x64b,_0x2ab36c-_0x2f2bf7._0x4ccde9,_0x2ab36c,_0x170bbc-_0x2f2bf7._0x61deaa);}if(!_0x29e03c)return void 0x0;return{'process':_0x2f5856(_0x29e03c,['lsp-proxy',_0x13d646(0x62a,0x775,0x4f9,0x6bb)],{'cwd':_0x146eea,'stdio':_0x13d646(_0x415218._0x395a98,_0x415218._0x24df70,0x5a5,0x662)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x423aaa){const _0x3158bd={_0x2e3256:0x806,_0x5c4a3b:0x76d,_0x345b88:0x5f3,_0x59a121:0x744,_0x1cdc5a:0x49d,_0x2d39da:0x582,_0x270ca6:0x65d,_0x51e49c:0x510},_0x2b73a6={_0x6fb614:0x112,_0x5c077d:0x15c},_0xa7f2e9={_0x6b1ea:0x34,_0x4f9342:0x41f},_0x4ae140=_0x43ea12[_0x38dcca(_0x3158bd._0x2e3256,_0x3158bd._0x5c4a3b,_0x3158bd._0x345b88,_0x3158bd._0x59a121)](_0x423aaa)[_0x3488cf(0x56a,_0x3158bd._0x1cdc5a,0x466,_0x3158bd._0x2d39da)]();function _0x38dcca(_0x302af3,_0x42ba29,_0x34209c,_0x4a6910){return _0x26f978(_0x302af3-0x41,_0x42ba29-_0xa7f2e9._0x6b1ea,_0x42ba29-_0xa7f2e9._0x4f9342,_0x302af3);}function _0x3488cf(_0x2eabec,_0x313395,_0x3fb3f8,_0x270943){return _0x26f978(_0x2eabec-_0x2b73a6._0x6fb614,_0x313395-0x1d1,_0x313395-_0x2b73a6._0x5c077d,_0x3fb3f8);}return BUILTIN_LSP_SERVERS[_0x38dcca(0x48a,0x5e5,_0x3158bd._0x270ca6,_0x3158bd._0x51e49c)](_0x1fb0a2=>_0x1fb0a2['extensions'][_0x3488cf(0x4b3,0x435,0x375,0x5a6)](_0x4ae140));}function stateKey(_0x5ab294,_0x493d69){return _0x493d69+':'+_0x5ab294['id'];}function diagnosticsKeyToPath(_0x8a7c6c){const _0x187be6={_0xf3e54e:0x18f,_0x26b39d:0x38},_0x33f0e5={_0x3bbaf3:0x176};if(!_0x8a7c6c[_0x3c64ed(-0xbf,0xa2,-_0x187be6._0xf3e54e,-_0x187be6._0x26b39d)]('file://'))return _0x8a7c6c;function _0x3c64ed(_0x162cb0,_0x5ad067,_0x5ab7f9,_0x361004){return _0x199ce4(_0x162cb0-0x2b,_0x5ad067-_0x33f0e5._0x3bbaf3,_0x5ab7f9,_0x361004-0xb6);}return fileURLToPath(_0x8a7c6c);}function nextFileVersion(_0x17c7be,_0x255753){const _0x1ee57e={_0x36e386:0xb9,_0x37dceb:0x20e,_0x1131fd:0x216,_0xd0449a:0x2fa},_0x1b4541={_0x97f06d:0xbd,_0x5e3657:0xd},_0x41e7a9={_0x353af1:0x25,_0x1fda49:0x14e},_0x2aed9a=(_0x17c7be[_0x4bea95(-0x2b7,-_0x1ee57e._0x36e386,-0x226,-0x2fb)][_0x4bea95(-0x2aa,-0x19b,-_0x1ee57e._0x37dceb,-0xc3)](_0x255753)??0x1)+0x1;_0x17c7be['fileVersions'][_0x2f5991(0x314,0x33c,_0x1ee57e._0x1131fd,_0x1ee57e._0xd0449a)](_0x255753,_0x2aed9a);function _0x2f5991(_0x520010,_0x5750a3,_0x28c727,_0x63892e){return _0x199ce4(_0x5750a3-0x242,_0x5750a3-_0x41e7a9._0x353af1,_0x63892e,_0x63892e-_0x41e7a9._0x1fda49);}function _0x4bea95(_0xd7ee74,_0x3cc43c,_0x42715c,_0x706c1){return _0x199ce4(_0x42715c- -_0x1b4541._0x97f06d,_0x3cc43c-0x65,_0x706c1,_0x706c1-_0x1b4541._0x5e3657);}return _0x2aed9a;}async function collectClientResults(_0x47b08b){const _0x25c2e1={_0x467fde:0x182,_0x1a3162:0x4e,_0xa1107f:0x1c5},_0x4d6ee5={_0x48dc03:0x1c2},_0x3d1be5={_0x43b6d7:0x52,_0xab6fe:0x2dc};function _0x41b8f0(_0x20f381,_0x49889d,_0x472a3e,_0x2ac06a){return _0x26f978(_0x20f381-0x16c,_0x49889d-_0x3d1be5._0x43b6d7,_0x2ac06a-_0x3d1be5._0xab6fe,_0x49889d);}const _0x3de98b=await Promise[_0x39b59c(0x1a0,_0x25c2e1._0x467fde,_0x25c2e1._0x1a3162,_0x25c2e1._0xa1107f)](_0x47b08b);function _0x39b59c(_0x45eee7,_0x480ca1,_0x56da20,_0x4898b3){return _0x26f978(_0x45eee7-0x10d,_0x480ca1-0x1cb,_0x4898b3- -_0x4d6ee5._0x48dc03,_0x45eee7);}return _0x3de98b['flatMap'](_0x25ead1=>_0x25ead1[_0x41b8f0(0x649,0x3bb,0x5c9,0x52a)]===_0x39b59c(-0x4,-0x65,0x5c,-0xa)?_0x25ead1[_0x41b8f0(0x580,0x597,0x6ec,0x6b8)]:[]);}function createLspService(_0x3e3548={}){const _0x388991={_0xa61764:0x134,_0x520fb4:0x275,_0xc14a29:0x192},_0x4970ff={_0x71bb7f:0x201,_0x19ec7d:0x29d,_0x2d7301:0x150,_0x32cb8a:0x16d,_0x568725:0x6c,_0x479f54:0x34,_0x7e765b:0x118,_0x125663:0x12b,_0x28276d:0x23e,_0x525c4f:0x102,_0x27e8cd:0xf8,_0x3fb0a9:0x102,_0x450a2c:0xfb,_0x108829:0xd3,_0xe45440:0x261,_0x45f353:0x1d4,_0x20f43d:0x5e,_0x21ffb3:0xfb,_0x1d57a4:0x25a,_0xd9dc35:0xa9,_0x60ce3b:0x215,_0x96f54b:0x60,_0x4093f0:0x272,_0x30c268:0x179,_0x14960f:0x6a,_0xf6ef51:0x10f},_0x12e039={_0x3a9064:0x1d},_0x46b1ba={_0x5d8f9d:0x212},_0x56788f={_0xe98703:0x106,_0x3400e6:0x103,_0x2aa10c:0x20f},_0x6baca4={_0x3024a7:0x1df,_0x374df4:0x1de},_0x2dc510={_0x55eca4:0x27e,_0x36bf68:0x225},_0x28fc4b={_0x20089c:0x4c7,_0x483135:0x6b},_0x36e0e3={_0x49ba47:0x2ea,_0x11dd43:0x2cc,_0x822bbe:0x2a6,_0x874e92:0x2f8,_0x2bb986:0x44,_0x21871a:0x74,_0x535400:0xa8},_0x2be4da={_0x466da7:0x3d4,_0x11ec5e:0x95,_0x2a1da0:0x65},_0x211156={_0x5c5bf0:0x28,_0x45e6d2:0x187},_0x4407a7={_0x2bad70:0x79,_0x4bd53a:0x1f0},_0x2a5900={_0x2c3a04:0x1e8,_0x85a30d:0x2e7,_0x49a77c:0x12c},_0x1a73b1={_0x19edfc:0x8f,_0x457ffc:0xad},_0x2cc6a3={_0x259ca1:0x26a,_0x3a0d68:0x232},_0x1aa429={_0x457d99:0x438,_0x22b2e6:0x1cc},_0x1b9a56={_0x23a206:0x25c,_0x4d66be:0x179},_0x14ee3f={_0x338670:0x131,_0x4d702b:0xa4,_0x33c388:0xb0},_0x3f6409={_0x229223:0x127,_0x630e7c:0x335},_0x195052={_0x5a55e3:0x4aa},_0x5d43fa={_0x1b1d68:0x586,_0x2f5cc4:0x80},_0x71c80c={_0xbdbe39:0x62f},_0x152cbf={_0x418982:0x277,_0x188b80:0x13d,_0x516e78:0x79},_0x5a67ff={_0x27c3f0:0x180,_0x569b82:0x4d},_0x31fbbb={_0x28818c:0x88},_0x1ba8c1={_0x1dbb50:0x8a,_0xea7c34:0x53,_0x32e5bc:0x34,_0x43906:0x16c,_0x49a560:0x2c3,_0x448f44:0xa9,_0x547aa6:0x2e,_0x415860:0x7a,_0x40ee55:0x47,_0x100803:0x83,_0x2e79dd:0x25,_0x2da609:0x172,_0x3fda23:0xd6,_0x34f87f:0x29f},_0x336053={_0x3336af:0xaf,_0x62166f:0x12a,_0x4ed1c0:0xe9},_0x4218cf={_0x573d51:0xc9},_0x290043={_0x2d69b2:0x13f,_0x1b7fd9:0x202,_0x305aee:0x126,_0x3449a9:0x16f,_0x5b364:0xcf,_0x349f32:0xaf,_0x5ef419:0x5d,_0x434d1a:0x21a,_0x27db73:0x16a,_0x2e5172:0x236,_0x26c769:0xe9,_0x4d25dd:0x86},_0x1960fa={_0xfff41a:0x446,_0x5b1144:0x3b6,_0x44a424:0x34e,_0x5bfba5:0x261,_0x330bb2:0x34a,_0x462684:0x3d5,_0x5bc59f:0x56e,_0x49a391:0x419,_0xb42d71:0x4a6,_0x1cde46:0x53e,_0x473aa1:0x571,_0x3c58c7:0x673,_0x3e4604:0x212},_0xffd65e={_0x4c7fae:0x144},_0x218ad9={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x2f7510=()=>_0x3e3548[_0x40b833(-0xfa,-0x2d,0xa9,-0x8d)]!==![];async function _0x48ce1b(_0x36e6d4,_0x15250b){const _0x23e903={_0x2f8a21:0x15e,_0xc1176e:0x66};function _0x5a302a(_0x2186ec,_0x323110,_0x36f256,_0x32171a){return _0x40b833(_0x2186ec,_0x323110-0x2ec,_0x36f256-0x179,_0x32171a-0x193);}const _0x6b9698=stateKey(_0x36e6d4,_0x15250b);function _0xc53054(_0x250da0,_0x447529,_0x5473e8,_0x118a8d){return _0x40b833(_0x118a8d,_0x5473e8-_0xffd65e._0x4c7fae,_0x5473e8-0x172,_0x118a8d-0xa0);}const _0x1403b4=_0x218ad9[_0x5a302a(_0x290043._0x2d69b2,_0x290043._0x1b7fd9,0x131,0xe7)][_0xc53054(0x237,0x1e2,0xc3,0x222)](_0x4bfd80=>_0x4bfd80[_0xc53054(0xbb,0x2ca,0x197,0x1cb)]===_0x36e6d4['id']&&_0x4bfd80[_0x5a302a(0x201,0x30f,0x209,0x32e)]===_0x15250b);if(_0x1403b4)return _0x1403b4;if(_0x218ad9[_0x5a302a(0x4a,_0x290043._0x305aee,0x279,_0x290043._0x3449a9)][_0xc53054(-_0x290043._0x5b364,_0x290043._0x349f32,-0x63,0xf7)](_0x6b9698))return void 0x0;const _0x3995cd=_0x218ad9[_0xc53054(_0x290043._0x5ef419,_0x290043._0x434d1a,_0x290043._0x27db73,_0x290043._0x2e5172)][_0x5a302a(-0x6a,0xd2,-0x2e,0xf0)](_0x6b9698);if(_0x3995cd)return _0x3995cd;const _0x3e49bb=((async()=>{const _0x37302d={_0x2488a2:0xa5};function _0x2790be(_0x3ceabf,_0x4f1eb5,_0x31507d,_0x18190d){return _0x5a302a(_0x18190d,_0x3ceabf-0x22c,_0x31507d-_0x37302d._0x2488a2,_0x18190d-0x57);}function _0x48b5e2(_0x3699fe,_0x205e90,_0x5e8e90,_0xbb9adf){return _0x5a302a(_0x3699fe,_0xbb9adf-0x148,_0x5e8e90-_0x23e903._0x2f8a21,_0xbb9adf-_0x23e903._0xc1176e);}try{const _0xf7db94=await _0x36e6d4[_0x2790be(_0x1960fa._0xfff41a,_0x1960fa._0x5b1144,_0x1960fa._0x44a424,0x394)](_0x15250b);if(!_0xf7db94)return _0x218ad9['broken']['add'](_0x6b9698),void 0x0;const _0x27f7d9=await createLspClient({'server':_0x36e6d4,'root':_0x15250b,'handle':_0xf7db94}),_0x3cf8f1=_0x218ad9[_0x48b5e2(0x3ae,0x3ae,_0x1960fa._0x5bfba5,_0x1960fa._0x330bb2)][_0x2790be(0x497,0x5c2,_0x1960fa._0x462684,0x49a)](_0x4ffda8=>_0x4ffda8[_0x2790be(0x56b,0x421,0x494,0x6ae)]===_0x36e6d4['id']&&_0x4ffda8[_0x48b5e2(0x4d1,0x42d,0x3b3,0x457)]===_0x15250b);if(_0x3cf8f1)return await _0x27f7d9['shutdown'](),_0x3cf8f1;return _0x218ad9[_0x2790be(0x42e,0x493,0x3c3,0x553)][_0x48b5e2(0x163,0x248,0x169,0x213)](_0x27f7d9),_0x27f7d9;}catch{return _0x218ad9['broken'][_0x48b5e2(0x559,_0x1960fa._0x5bc59f,_0x1960fa._0x49a391,_0x1960fa._0xb42d71)](_0x6b9698),void 0x0;}finally{_0x218ad9[_0x2790be(_0x1960fa._0x1cde46,_0x1960fa._0x473aa1,_0x1960fa._0x3c58c7,0x643)][_0x48b5e2(0x9f,0x2bf,0xde,_0x1960fa._0x3e4604)](_0x6b9698);}})());return _0x218ad9[_0xc53054(_0x290043._0x26c769,0xb5,_0x290043._0x27db73,_0x290043._0x4d25dd)]['set'](_0x6b9698,_0x3e49bb),_0x3e49bb;}function _0x40b833(_0x589ab6,_0xe1c7d2,_0x1dc129,_0x39aa79){return _0x199ce4(_0xe1c7d2- -_0x4218cf._0x573d51,_0xe1c7d2-0x3c,_0x589ab6,_0x39aa79-0xc4);}async function _0x3e9d27(_0x4275fb,_0x517356){const _0x469926={_0x294c91:0x3f5};if(!_0x2f7510())return[];const _0x267cb1=[];function _0xeb7bb3(_0x257b01,_0x35e7f5,_0x429668,_0x28c53f){return _0x40b833(_0x35e7f5,_0x429668-_0x336053._0x3336af,_0x429668-_0x336053._0x62166f,_0x28c53f-_0x336053._0x4ed1c0);}for(const _0x5254f0 of getServersForFile(_0x4275fb)){const _0xa01a8b=await _0x5254f0[_0xeb7bb3(_0x1ba8c1._0x1dbb50,_0x1ba8c1._0xea7c34,0xd2,_0x1ba8c1._0x32e5bc)](_0x4275fb);if(!_0xa01a8b)continue;const _0x53ba04=stateKey(_0x5254f0,_0xa01a8b);if(_0x218ad9[_0x5cceb8(_0x1ba8c1._0x43906,0x22f,0x1f9,_0x1ba8c1._0x49a560)]['has'](_0x53ba04))continue;const _0xeee34c=_0x218ad9[_0xeb7bb3(-_0x1ba8c1._0x448f44,0x9c,-0x3b,_0x1ba8c1._0x547aa6)][_0xeb7bb3(_0x1ba8c1._0x415860,_0x1ba8c1._0x40ee55,0x2e,-0x11d)](_0x719b74=>_0x719b74[_0xeb7bb3(0xe,-0x48,0x102,0xcc)]===_0x5254f0['id']&&_0x719b74[_0x5cceb8(0x2a6,0x418,0x580,0x3c2)]===_0xa01a8b);if(_0xeee34c){_0x267cb1[_0xeb7bb3(-_0x1ba8c1._0x100803,-_0x1ba8c1._0x2e79dd,-_0x1ba8c1._0x2da609,-0x2b6)](_0xeee34c);continue;}if(!_0x517356)continue;const _0x314fba=await _0x48ce1b(_0x5254f0,_0xa01a8b);if(_0x314fba)_0x267cb1[_0xeb7bb3(-0x130,-_0x1ba8c1._0x3fda23,-0x172,-_0x1ba8c1._0x34f87f)](_0x314fba);}function _0x5cceb8(_0x134846,_0x4c9a3c,_0x5a6f2b,_0x2e8c33){return _0x40b833(_0x5a6f2b,_0x4c9a3c-_0x469926._0x294c91,_0x5a6f2b-0x58,_0x2e8c33-0x191);}return _0x267cb1;}async function _0x42c378(_0x299c42,_0x2a7d63=![]){const _0x2fe060={_0x497b30:0xa5,_0x1c5c22:0x88,_0x244393:0x90,_0x1dc565:0xe7,_0xd1217a:0x132,_0x215c6e:0x16f,_0x1166d1:0x70,_0x3886de:0x77,_0x39330d:0x15f,_0xcb48c5:0x152,_0x54409b:0xb,_0x474178:0x4a,_0x38789b:0x130,_0x8edc5f:0x14c,_0x1332e3:0xf4,_0x1a61ee:0x58,_0x2c5ad9:0x1a,_0x1bbe00:0x16b,_0x316d1e:0x3a,_0x418418:0x1e6},_0x38ad8a={_0x23ba77:0x1f3,_0x4742a7:0x30},_0x2ea541=await _0x3e9d27(_0x299c42,!![]);function _0x22d129(_0xd3b554,_0x170429,_0x54b03d,_0x30fc05){return _0x40b833(_0xd3b554,_0x30fc05-0x1d,_0x54b03d-_0x31fbbb._0x28818c,_0x30fc05-0x19);}await Promise['all'](_0x2ea541[_0x22d129(-0xba,-_0x5a67ff._0x27c3f0,-_0x5a67ff._0x569b82,-0xbf)](async _0x758962=>{const _0x132bef={_0x47637e:0x61,_0x54c9c9:0x19f};!_0x218ad9[_0x2d352a(-0x1a,-0x14f,-0x2c7,-0x7e)][_0x2d352a(-_0x2fe060._0x497b30,-0x1b0,-_0x2fe060._0x1c5c22,-_0x2fe060._0x244393)](_0x758962[_0x2d352a(-_0x2fe060._0x1dc565,0x4a,-_0x2fe060._0xd1217a,_0x2fe060._0x215c6e)]+':'+_0x758962[_0x340276(_0x2fe060._0x1166d1,_0x2fe060._0x3886de,-0xf8,-0x65)]+':'+_0x299c42)&&(await _0x758962['notify'][_0x340276(-0xa4,-0x3a,-_0x2fe060._0x39330d,-0xf9)]({'path':_0x299c42}),_0x218ad9['openFiles'][_0x2d352a(_0x2fe060._0xcb48c5,0x69,-_0x2fe060._0x54409b,-0x92)](_0x758962[_0x2d352a(0x180,_0x2fe060._0x474178,_0x2fe060._0x38789b,_0x2fe060._0x8edc5f)]+':'+_0x758962[_0x2d352a(-_0x2fe060._0x1332e3,0x1a,-0x10a,-_0x2fe060._0x1a61ee)]+':'+_0x299c42));await _0x758962[_0x2d352a(0xde,0x86,-_0x2fe060._0x2c5ad9,0x10e)][_0x2d352a(_0x2fe060._0x1bbe00,0x2c,-0xc9,-_0x2fe060._0x316d1e)]({'path':_0x299c42,'version':nextFileVersion(_0x218ad9,_0x299c42)});function _0x2d352a(_0x176621,_0x1faea7,_0x5d0c3a,_0x15221a){return _0x22d129(_0x15221a,_0x1faea7-_0x132bef._0x47637e,_0x5d0c3a-_0x132bef._0x54c9c9,_0x1faea7- -0x26);}function _0x340276(_0x4313d6,_0x3670fd,_0x1d28fa,_0x1581b7){return _0x22d129(_0x1581b7,_0x3670fd-0x84,_0x1d28fa-_0x38ad8a._0x23ba77,_0x4313d6-_0x38ad8a._0x4742a7);}if(_0x2a7d63)await _0x758962[_0x340276(-0x11a,-_0x2fe060._0x418418,-0x220,0x1f)]({'path':_0x299c42});}));}async function _0x18be12(_0x3b3829){const _0x49c59e={_0x5ef81d:0x430,_0x2beb11:0x179};await _0x42c378(_0x3b3829[_0x11bcea(0x370,0x4d8,_0x71c80c._0xbdbe39,0x3fd)],![]);function _0x1a1be8(_0x4dfad5,_0x21d55b,_0x242144,_0x296191){return _0x40b833(_0x4dfad5,_0x242144-_0x152cbf._0x418982,_0x242144-_0x152cbf._0x188b80,_0x296191-_0x152cbf._0x516e78);}function _0x11bcea(_0x3bc26f,_0x3ea498,_0x140d48,_0x3d568e){return _0x40b833(_0x3bc26f,_0x3ea498-_0x49c59e._0x5ef81d,_0x140d48-0x18c,_0x3d568e-_0x49c59e._0x2beb11);}return _0x3e9d27(_0x3b3829[_0x1a1be8(0x3ed,0x28c,0x31f,0x484)],![]);}async function _0x18da57(_0x5ef32c){const _0x202db9={_0xbf3421:0x658,_0xb36538:0x35};function _0x5bea1e(_0xe583e3,_0xac6ab6,_0x342110,_0x2e3d24){return _0x40b833(_0xe583e3,_0x342110-_0x5d43fa._0x1b1d68,_0x342110-0xf,_0x2e3d24-_0x5d43fa._0x2f5cc4);}const _0x140733=await _0x18be12(_0x5ef32c);function _0x124ac6(_0x5bc413,_0x304b47,_0x404608,_0x320c96){return _0x40b833(_0x404608,_0x320c96-_0x202db9._0xbf3421,_0x404608-0x29,_0x320c96-_0x202db9._0xb36538);}return collectClientResults(_0x140733[_0x5bea1e(0x350,0x5c0,_0x195052._0x5a55e3,0x59c)](_0x5ab0ec=>_0x5ab0ec[_0x124ac6(0x77e,0x732,0x6c4,0x6b4)]['prepareCallHierarchy'](_0x5ef32c)));}return{'isEnabled':_0x2f7510,async 'hasClients'(_0x2a3703){const _0x4c5a61={_0x429b80:0x22,_0x263f6d:0x1d,_0x240cd5:0xd7},_0x5dabc8={_0x1d95ec:0x3c5,_0x579a85:0x15b,_0x17e756:0x5a};function _0x1f946b(_0x479c1e,_0x199694,_0x2620f1,_0x31c6f9){return _0x40b833(_0x199694,_0x2620f1-_0x5dabc8._0x1d95ec,_0x2620f1-_0x5dabc8._0x579a85,_0x31c6f9-_0x5dabc8._0x17e756);}function _0xe8201e(_0x598c1e,_0x27729a,_0x41c7a4,_0x40b1c5){return _0x40b833(_0x598c1e,_0x40b1c5- -_0x4c5a61._0x429b80,_0x41c7a4-_0x4c5a61._0x263f6d,_0x40b1c5-_0x4c5a61._0x240cd5);}return(await _0x3e9d27(_0x2a3703,![]))[_0xe8201e(-0xc9,-0x25a,-0x8,-_0x3f6409._0x229223)]>0x0||getServersForFile(_0x2a3703)[_0x1f946b(0x303,0x3d6,0x2c0,_0x3f6409._0x630e7c)]>0x0;},'touchFile':_0x42c378,async 'diagnostics'(){const _0x435437={_0x4e75d3:0x9d};function _0x45cbab(_0x5f37a9,_0x1cd915,_0x1344b1,_0x1d9cea){return _0x40b833(_0x1d9cea,_0x5f37a9-_0x435437._0x4e75d3,_0x1344b1-0x19e,_0x1d9cea-0x112);}const _0x28dfe0={};for(const _0x343c22 of _0x218ad9['clients']){for(const [_0x261bd6,_0x6b813e]of _0x343c22[_0x45cbab(-_0x14ee3f._0x338670,-_0x14ee3f._0x4d702b,-_0x14ee3f._0x33c388,-0x27f)]){_0x28dfe0[diagnosticsKeyToPath(_0x261bd6)]=_0x6b813e;}}return _0x28dfe0;},async 'diagnosticsForFile'(_0x522101){await _0x42c378(_0x522101,!![]);function _0x46c7a5(_0x49c1cf,_0x21de1f,_0x22866d,_0x1f6c48){return _0x40b833(_0x1f6c48,_0x21de1f-_0x1b9a56._0x23a206,_0x22866d-0x134,_0x1f6c48-_0x1b9a56._0x4d66be);}const _0x5820f5=[];for(const _0x6f7123 of await _0x3e9d27(_0x522101,![])){for(const [_0x32e40b,_0x47c2e4]of _0x6f7123[_0x83292e(_0x2cc6a3._0x259ca1,0x34f,0x17d,0x1f5)]){if(diagnosticsKeyToPath(_0x32e40b)===_0x522101)_0x5820f5[_0x83292e(0x217,0x2aa,_0x2cc6a3._0x3a0d68,0x12a)](..._0x47c2e4);}}function _0x83292e(_0x424e9d,_0x2e7581,_0x506df6,_0x5ae469){return _0x40b833(_0x2e7581,_0x424e9d-_0x1aa429._0x457d99,_0x506df6-_0x1aa429._0x22b2e6,_0x5ae469-0x13a);}return _0x5820f5;},async 'definition'(_0x298ef6){const _0x5a3283={_0x4fe9f8:0x267};function _0x3d4264(_0x2fdeb2,_0x3d9e40,_0x1c937d,_0x168657){return _0x40b833(_0x1c937d,_0x2fdeb2-_0x5a3283._0x4fe9f8,_0x1c937d-0xa3,_0x168657-0xf0);}function _0xf20fa7(_0x5c11c9,_0x13c5fe,_0x3286c2,_0x40a60d){return _0x40b833(_0x40a60d,_0x5c11c9-0x2c4,_0x3286c2-_0x1a73b1._0x19edfc,_0x40a60d-_0x1a73b1._0x457ffc);}return collectClientResults((await _0x18be12(_0x298ef6))[_0xf20fa7(_0x2a5900._0x2c3a04,0x303,_0x2a5900._0x85a30d,_0x2a5900._0x49a77c)](_0x53a92a=>_0x53a92a[_0xf20fa7(0x320,0x1ad,0x2cf,0x298)][_0xf20fa7(0x32c,0x1b7,0x4a0,0x295)](_0x298ef6)));},async 'references'(_0x4e5b68){function _0xe86240(_0x1fa82b,_0x395b42,_0x5213bc,_0x31901e){return _0x40b833(_0x31901e,_0x1fa82b-_0x4407a7._0x2bad70,_0x5213bc-0x6d,_0x31901e-_0x4407a7._0x4bd53a);}function _0x387b3a(_0x1e202d,_0x6ca819,_0x26db68,_0x4f0099){return _0x40b833(_0x1e202d,_0x4f0099-0x677,_0x26db68-0x13e,_0x4f0099-0xe0);}return collectClientResults((await _0x18be12(_0x4e5b68))['map'](_0x421a9d=>_0x421a9d[_0x387b3a(0x6ce,0x646,0x5b3,0x6d3)][_0x387b3a(0x675,0x77b,0x6a3,0x609)](_0x4e5b68)));},async 'hover'(_0x335181){function _0x596016(_0x46f39d,_0x327111,_0x459cd6,_0x1b4eea){return _0x40b833(_0x46f39d,_0x327111- -_0x211156._0x5c5bf0,_0x459cd6-0x1c1,_0x1b4eea-_0x211156._0x45e6d2);}function _0x43d663(_0x1158e4,_0xb04812,_0x592a8f,_0x580aaf){return _0x40b833(_0x580aaf,_0x592a8f-_0x2be4da._0x466da7,_0x592a8f-_0x2be4da._0x11ec5e,_0x580aaf-_0x2be4da._0x2a1da0);}const _0x3e7a1a=await Promise[_0x43d663(_0x36e0e3._0x49ba47,_0x36e0e3._0x11dd43,0x410,0x378)]((await _0x18be12(_0x335181))[_0x43d663(_0x36e0e3._0x822bbe,0x321,_0x36e0e3._0x874e92,0x3fc)](_0x2232b2=>_0x2232b2['request']['hover'](_0x335181)));return _0x3e7a1a[_0x596016(-0xf5,_0x36e0e3._0x2bb986,_0x36e0e3._0x21871a,-_0x36e0e3._0x535400)](_0x21a43f=>_0x21a43f[_0x596016(-0x8d,-0x125,-0x1e5,-0xbb)]==='fulfilled'&&_0x21a43f[_0x596016(0x1a5,0x69,0x11e,0xe0)]?[_0x21a43f[_0x43d663(0x3d9,0x521,0x465,0x3a8)]]:[]);},async 'documentSymbol'(_0x577e53){const _0x1c8968={_0x5d6d2f:0x52c,_0x5b15ff:0xe4,_0x536697:0xd},_0x1182e9={_0x3e2e67:0x28};function _0x1ab252(_0x5ebddc,_0x432151,_0x5104a0,_0x4b7181){return _0x40b833(_0x432151,_0x5104a0-0x74a,_0x5104a0-_0x1182e9._0x3e2e67,_0x4b7181-0xf7);}await _0x42c378(_0x577e53,![]);function _0x3cf1d6(_0xe701b8,_0x24ba07,_0x52de8a,_0x524969){return _0x40b833(_0x52de8a,_0x524969-_0x1c8968._0x5d6d2f,_0x52de8a-_0x1c8968._0x5b15ff,_0x524969-_0x1c8968._0x536697);}return collectClientResults((await _0x3e9d27(_0x577e53,![]))[_0x1ab252(0x672,0x60a,0x66e,0x69e)](_0x3d2716=>_0x3d2716[_0x3cf1d6(0x6bd,0x4c3,0x6ff,0x588)][_0x1ab252(0x704,0x71c,0x75a,0x845)](_0x577e53)));},async 'workspaceSymbol'(_0x58b8b7){const _0x1bd591={_0x2520d2:0x30f};function _0x27b2cb(_0x55376b,_0x1d7096,_0x2d5a1c,_0x24a9b2){return _0x40b833(_0x1d7096,_0x24a9b2-_0x28fc4b._0x20089c,_0x2d5a1c-_0x28fc4b._0x483135,_0x24a9b2-0x70);}function _0x4b6f47(_0x2996d5,_0x5ad62a,_0x1ad9cd,_0x5dfc45){return _0x40b833(_0x1ad9cd,_0x5dfc45-_0x1bd591._0x2520d2,_0x1ad9cd-0x1db,_0x5dfc45-0x90);}return collectClientResults(_0x218ad9[_0x4b6f47(0x278,0x27c,_0x2dc510._0x55eca4,_0x2dc510._0x36bf68)]['map'](_0x5980a6=>_0x5980a6[_0x27b2cb(0x5b9,0x4c8,0x502,0x523)]['workspaceSymbol'](_0x58b8b7)));},async 'implementation'(_0x178242){const _0x44b949={_0x1ff18c:0xd1};function _0x39a5d1(_0x429091,_0xa790ad,_0x222d2d,_0x4f9a91){return _0x40b833(_0x429091,_0x222d2d-_0x6baca4._0x3024a7,_0x222d2d-_0x6baca4._0x374df4,_0x4f9a91-0x119);}function _0x3c58d1(_0x1311de,_0x1ccbb5,_0x5b54e9,_0x3a274c){return _0x40b833(_0x1ccbb5,_0x1311de-0x376,_0x5b54e9-0x58,_0x3a274c-_0x44b949._0x1ff18c);}return collectClientResults((await _0x18be12(_0x178242))[_0x39a5d1(0x9d,_0x56788f._0xe98703,_0x56788f._0x3400e6,_0x56788f._0x2aa10c)](_0x2065bf=>_0x2065bf[_0x39a5d1(0x226,0xe2,0x23b,0x19f)]['implementation'](_0x178242)));},async 'prepareCallHierarchy'(_0x4973be){return _0x18da57(_0x4973be);},async 'incomingCalls'(_0x293f15){const _0x4a91c8={_0x3af3b9:0x192},_0x2174e9={_0x17bb93:0x1af};function _0x46dfae(_0x3bb73d,_0x312551,_0x247ec0,_0x25d967){return _0x40b833(_0x3bb73d,_0x25d967-0x663,_0x247ec0-0x49,_0x25d967-_0x2174e9._0x17bb93);}function _0x896836(_0x25592f,_0x3b255b,_0x54336e,_0x228787){return _0x40b833(_0x3b255b,_0x25592f-0x43b,_0x54336e-_0x4a91c8._0x3af3b9,_0x228787-0x2c);}const _0x4cddb7=await _0x18da57(_0x293f15),_0x48785b=await _0x18be12(_0x293f15);return collectClientResults(_0x48785b['flatMap'](_0x3e5359=>_0x4cddb7[_0x896836(0x35f,0x452,0x319,0x20d)](_0x582dbe=>_0x3e5359[_0x896836(0x497,0x527,0x4ea,0x404)][_0x46dfae(0x49b,0x4ff,0x536,0x457)](_0x582dbe))));},async 'outgoingCalls'(_0x3acc1d){const _0x5bd416={_0x30aa1a:0x44b,_0x3ef2fd:0x136,_0x191015:0xe0},_0xd56e0b=await _0x18da57(_0x3acc1d),_0x30ede6=await _0x18be12(_0x3acc1d);function _0x599d67(_0x5bd6d2,_0x19a89d,_0x11ee63,_0x392f1d){return _0x40b833(_0x11ee63,_0x392f1d-_0x5bd416._0x30aa1a,_0x11ee63-_0x5bd416._0x3ef2fd,_0x392f1d-_0x5bd416._0x191015);}function _0x3a9f51(_0xe55a0,_0x33ed4a,_0x5e5390,_0x422dff){return _0x40b833(_0x33ed4a,_0x5e5390-_0x46b1ba._0x5d8f9d,_0x5e5390-0x163,_0x422dff-0x1f1);}return collectClientResults(_0x30ede6['flatMap'](_0x4a02af=>_0xd56e0b[_0x599d67(0x2b7,0x3ed,0x343,0x36f)](_0x14dbe1=>_0x4a02af[_0x599d67(0x37e,0x61e,0x51c,0x4a7)]['outgoingCalls'](_0x14dbe1))));},async 'shutdown'(){function _0x5010b9(_0x35c51e,_0x14ae99,_0x2930a5,_0x46e2e7){return _0x40b833(_0x35c51e,_0x46e2e7-_0x12e039._0x3a9064,_0x2930a5-0x1bf,_0x46e2e7-0x1bb);}if(_0x218ad9[_0x5010b9(-_0x4970ff._0x71bb7f,-_0x4970ff._0x19ec7d,-0x165,-_0x4970ff._0x2d7301)])return;_0x218ad9[_0x5010b9(-_0x4970ff._0x32cb8a,-_0x4970ff._0x568725,-_0x4970ff._0x479f54,-0x150)]=!![],await Promise[_0x3a4c4e(0x1bc,_0x4970ff._0x7e765b,-0x4f,0xe4)](_0x218ad9[_0x5010b9(-_0x4970ff._0x125663,-0x34,-_0x4970ff._0x28276d,-0xcd)][_0x3a4c4e(-0x163,0x0,_0x4970ff._0x525c4f,-_0x4970ff._0x27e8cd)](_0x4dde42=>_0x4dde42['shutdown']())),_0x218ad9[_0x3a4c4e(-0x99,-0xe,_0x4970ff._0x3fb0a9,-0x6f)]=[],_0x218ad9['spawning'][_0x3a4c4e(0x1b4,_0x4970ff._0x450a2c,_0x4970ff._0x108829,0xf8)]();function _0x3a4c4e(_0x28c667,_0x323984,_0x41eb02,_0x847294){return _0x40b833(_0x847294,_0x323984-0xdc,_0x41eb02-0x11d,_0x847294-0x1dc);}_0x218ad9[_0x5010b9(-_0x4970ff._0xe45440,-0x1e7,-_0x4970ff._0x45f353,-0x1a9)][_0x3a4c4e(_0x4970ff._0x20f43d,_0x4970ff._0x21ffb3,_0x4970ff._0x1d57a4,-0x45)](),_0x218ad9[_0x5010b9(-0x1df,-0x2cb,-_0x4970ff._0xd9dc35,-_0x4970ff._0x60ce3b)][_0x3a4c4e(-_0x4970ff._0x96f54b,0xfb,_0x4970ff._0x4093f0,-0x6a)](),_0x218ad9[_0x3a4c4e(-_0x4970ff._0x30c268,-_0x4970ff._0x14960f,-0x7c,_0x4970ff._0xf6ef51)]['clear']();},'status'(){const _0x43074d={_0x10c811:0x2a,_0x44563c:0xf8,_0x23c8de:0x10};function _0x5e1dd5(_0x5eeeec,_0x3097d8,_0x47bf3d,_0x4e1657){return _0x40b833(_0x3097d8,_0x5eeeec- -_0x43074d._0x10c811,_0x47bf3d-_0x43074d._0x44563c,_0x4e1657-_0x43074d._0x23c8de);}return{'connectedClients':_0x218ad9[_0x5e1dd5(-0x114,-_0x388991._0xa61764,-_0x388991._0x520fb4,-_0x388991._0xc14a29)]['length']};}};}function createQuestionId(){const _0x4a15cb={_0x48aba1:0x53,_0xadc4aa:0xe0,_0x1b5c37:0x1d,_0x58604d:0x1a3,_0x115273:0x161,_0x2ec79a:0x4c4,_0x34418b:0x413,_0x667604:0x2e4,_0xc3e0ee:0x44c,_0x3bcc66:0x423,_0x1df13b:0x46e},_0xde30a={_0x5f0361:0x1a2},_0xbc6075={_0x1791ee:0x1c0,_0x5e3649:0x178};function _0x2c72ac(_0x545409,_0x23c9e5,_0x28a24c,_0x35a354){return _0x26f978(_0x545409-_0xbc6075._0x1791ee,_0x23c9e5-_0xbc6075._0x5e3649,_0x35a354- -0x23a,_0x23c9e5);}function _0x245558(_0xe97a3c,_0x4220ac,_0x3ffa2c,_0x225735){return _0x26f978(_0xe97a3c-_0xde30a._0x5f0361,_0x4220ac-0x2,_0x3ffa2c-0xd3,_0x4220ac);}return _0x2c72ac(_0x4a15cb._0x48aba1,_0x4a15cb._0xadc4aa,-0x49,_0x4a15cb._0x1b5c37)+Date[_0x2c72ac(-0x218,-_0x4a15cb._0x58604d,-_0x4a15cb._0x115273,-0xb8)]()+'-'+Math[_0x245558(_0x4a15cb._0x2ec79a,0x341,_0x4a15cb._0x34418b,_0x4a15cb._0x667604)]()[_0x245558(_0x4a15cb._0xc3e0ee,_0x4a15cb._0x3bcc66,0x33c,0x235)](0x24)[_0x245558(_0x4a15cb._0x1df13b,0x2f5,0x366,0x44b)](0x2,0x9);}function validateInput(_0x509057){const _0x5471e3={_0x52b32c:0x1b7,_0x211966:0x26e,_0xb3bb1a:0x14c,_0x3b6c2c:0x243,_0x3f88aa:0x220,_0x17716c:0x287,_0x91c724:0x132,_0x5d6db8:0x3a3,_0x2fba2f:0x214,_0x24e2c5:0x19f,_0x59ef07:0x1f9,_0x5567a6:0x3de,_0x1479cf:0x25a,_0x4eb953:0x3f8,_0x4d80fa:0x27f,_0x59258c:0x330,_0x1228af:0x1e1,_0x5648f4:0x2bb,_0x34f34f:0x252,_0x3b82b9:0x2d8,_0x43d442:0x20d,_0x1e16f9:0x40d,_0x3c985d:0x47d,_0x42c86f:0x362,_0x365d61:0x160,_0x337f63:0x158,_0x346a8d:0x285,_0x13c93a:0x287,_0x2f75d1:0x3a4,_0x4d7451:0x2e6,_0x195d5a:0x29d,_0x46db4c:0x30a,_0x14e681:0x454,_0x34b940:0x3d1,_0x208b35:0x32c,_0x49b054:0x30f,_0x5af3a1:0x39c,_0x8ecb5a:0x361,_0x4276b3:0x454,_0x1f4c93:0x5b2,_0x42ecf8:0x43e,_0x55557e:0x1a2,_0x52b653:0x385,_0x27d230:0x2f5,_0x48cb3c:0x3e8,_0x2ee617:0x324,_0x3fcaee:0x283,_0x7b1175:0x454,_0x23645c:0x2ed,_0x795196:0x2ba,_0x3e8d9f:0x321,_0x54580f:0x318,_0x388683:0x46c,_0x1ceec8:0x3da,_0x2bb259:0x342,_0x34b0a1:0x1ea,_0x5abab7:0x3f3,_0x4b39f6:0x365,_0x3eb692:0x352,_0x46fbbb:0x42e,_0x33663c:0x284,_0x30badf:0x29f,_0x520a12:0x377,_0x3faa88:0x310,_0x29fe68:0x1e0,_0x3c719c:0x204,_0x39076e:0x1af,_0xe4b35d:0x352,_0x34b5b3:0x270,_0x53549e:0x3a1,_0x2d5c52:0x4be},_0x353885={_0x5cfc15:0x5f},_0x28dcd5={_0xaea8d8:0x59};function _0x2fb63c(_0x4adb97,_0x1c0c85,_0x2f0e2c,_0x4e2185){return _0x26f978(_0x4adb97-_0x28dcd5._0xaea8d8,_0x1c0c85-0x156,_0x4adb97-0x74,_0x1c0c85);}if(!Array[_0x2c9c8a(0x2b3,_0x5471e3._0x52b32c,_0x5471e3._0x211966,0x25d)](_0x509057[_0x2fb63c(0x2bc,0x425,_0x5471e3._0xb3bb1a,_0x5471e3._0x3b6c2c)])||_0x509057['questions'][_0x2c9c8a(0x287,_0x5471e3._0x3f88aa,0x37e,0x348)]<0x1||_0x509057['questions'][_0x2c9c8a(_0x5471e3._0x17716c,_0x5471e3._0x91c724,0x13d,0x3ff)]>0xa)throw new ToolExecutionError(_0x2fb63c(0x22a,0x101,_0x5471e3._0x5d6db8,_0x5471e3._0x2fba2f),{'error':'invalid_questions'});function _0x2c9c8a(_0x5164e2,_0x1d8ce6,_0x6be2c9,_0x191047){return _0x26f978(_0x5164e2-_0x353885._0x5cfc15,_0x1d8ce6-0x1f4,_0x5164e2-0x41,_0x1d8ce6);}for(let _0xadc50=0x0;_0xadc50<_0x509057[_0x2fb63c(0x2bc,_0x5471e3._0x2fba2f,_0x5471e3._0x24e2c5,0x32c)][_0x2c9c8a(0x287,0x13b,_0x5471e3._0x59ef07,0x38d)];_0xadc50+=0x1){const _0x2b8af1=_0x509057['questions'][_0xadc50];if(!_0x2b8af1[_0x2fb63c(0x316,_0x5471e3._0x5567a6,_0x5471e3._0x1479cf,0x211)]||typeof _0x2b8af1[_0x2c9c8a(0x2e3,0x405,0x34c,_0x5471e3._0x4eb953)]!=='string')throw new ToolExecutionError('Question\x20'+(_0xadc50+0x1)+':\x20\x22question\x22\x20field\x20is\x20required\x20and\x20must\x20be\x20a\x20string');if(!_0x2b8af1[_0x2fb63c(0x285,0x1fe,0x28e,_0x5471e3._0x4d80fa)]||typeof _0x2b8af1[_0x2fb63c(0x285,_0x5471e3._0x59258c,_0x5471e3._0x1228af,0x183)]!==_0x2fb63c(0x37c,0x331,_0x5471e3._0x5648f4,0x3e5))throw new ToolExecutionError('Question\x20'+(_0xadc50+0x1)+_0x2c9c8a(0x2ad,0x20d,0x34e,0x2d5));if(_0x2b8af1[_0x2c9c8a(_0x5471e3._0x34f34f,_0x5471e3._0x3b82b9,_0x5471e3._0x43d442,0x1c6)]['length']>0x1e)throw new ToolExecutionError(_0x2c9c8a(0x352,_0x5471e3._0x1e16f9,_0x5471e3._0x3c985d,0x205)+(_0xadc50+0x1)+_0x2fb63c(0x267,_0x5471e3._0x42c86f,_0x5471e3._0x365d61,_0x5471e3._0x337f63)+_0x2b8af1[_0x2fb63c(_0x5471e3._0x346a8d,0x381,0x1d1,0x1f8)][_0x2c9c8a(_0x5471e3._0x13c93a,_0x5471e3._0x2f75d1,0x1dc,0x34f)]);if(!Array[_0x2fb63c(_0x5471e3._0x4d7451,0x436,_0x5471e3._0x195d5a,_0x5471e3._0x46db4c)](_0x2b8af1[_0x2fb63c(_0x5471e3._0x14e681,_0x5471e3._0x34b940,_0x5471e3._0x208b35,_0x5471e3._0x49b054)])||_0x2b8af1[_0x2fb63c(0x454,0x4c5,_0x5471e3._0x5af3a1,_0x5471e3._0x8ecb5a)]['length']<0x2||_0x2b8af1[_0x2fb63c(_0x5471e3._0x4276b3,_0x5471e3._0x1f4c93,0x31c,_0x5471e3._0x42ecf8)][_0x2c9c8a(0x287,_0x5471e3._0x55557e,0x1ad,0x3db)]>0x4)throw new ToolExecutionError(_0x2fb63c(_0x5471e3._0x52b653,0x4ed,_0x5471e3._0x27d230,0x419)+(_0xadc50+0x1)+_0x2fb63c(_0x5471e3._0x48cb3c,_0x5471e3._0x2ee617,_0x5471e3._0x3fcaee,0x313));for(let _0x28292e=0x0;_0x28292e<_0x2b8af1[_0x2fb63c(_0x5471e3._0x7b1175,0x4b3,_0x5471e3._0x23645c,0x41e)][_0x2fb63c(_0x5471e3._0x795196,_0x5471e3._0x3e8d9f,_0x5471e3._0x54580f,0x1fa)];_0x28292e+=0x1){const _0x1f87da=_0x2b8af1[_0x2c9c8a(0x421,_0x5471e3._0x388683,0x306,_0x5471e3._0x1ceec8)][_0x28292e];if(!_0x1f87da[_0x2fb63c(_0x5471e3._0x2bb259,_0x5471e3._0x34b0a1,_0x5471e3._0x5abab7,_0x5471e3._0x4b39f6)]||!_0x1f87da[_0x2c9c8a(0x288,0x1f0,0x344,0x18f)])throw new ToolExecutionError(_0x2c9c8a(_0x5471e3._0x3eb692,_0x5471e3._0x46fbbb,0x1d6,_0x5471e3._0x33663c)+(_0xadc50+0x1)+_0x2fb63c(_0x5471e3._0x30badf,0x23d,_0x5471e3._0x208b35,_0x5471e3._0x520a12)+(_0x28292e+0x1)+_0x2c9c8a(_0x5471e3._0x3faa88,_0x5471e3._0x29fe68,_0x5471e3._0x2ee617,_0x5471e3._0x3c719c));}if(typeof _0x2b8af1[_0x2c9c8a(0x14c,0xb5,0xb,0x8b)]!==_0x2c9c8a(0x28e,0x229,_0x5471e3._0x39076e,0x2db))throw new ToolExecutionError(_0x2c9c8a(_0x5471e3._0xe4b35d,_0x5471e3._0x34b5b3,_0x5471e3._0x53549e,_0x5471e3._0x2d5c52)+(_0xadc50+0x1)+_0x2fb63c(0x206,0x2c7,0x21b,0x2dc));}}function buildQuestions(_0x2f195b){const _0x58b19b={_0x485161:0x2e0},_0x24a02f={_0x2a6c2f:0x31c,_0x414965:0x124},_0x59a890={_0x5086d3:0x1a7};function _0x1014c4(_0x4c7e90,_0x222035,_0x304176,_0x582564){return _0x199ce4(_0x304176-0x243,_0x222035-0x18a,_0x4c7e90,_0x582564-_0x59a890._0x5086d3);}function _0x26910c(_0x1969a2,_0x51019a,_0x498ad7,_0x131352){return _0x199ce4(_0x51019a-_0x24a02f._0x2a6c2f,_0x51019a-_0x24a02f._0x414965,_0x131352,_0x131352-0x1ab);}return _0x2f195b[_0x1014c4(0x22f,_0x58b19b._0x485161,0x209,0x131)][_0x26910c(0x226,0x309,0x40d,0x2e8)]((_0x3a3c7d,_0x36cbf2)=>({'id':'q'+_0x36cbf2,'question':_0x3a3c7d[_0x26910c(0x403,0x33c,0x1fb,0x33f)],'topic':_0x3a3c7d['topic'],'options':_0x3a3c7d[_0x1014c4(0x365,0x42d,0x3a1,0x295)],'multiSelect':_0x3a3c7d[_0x1014c4(-0xaa,-0x2d,0xcc,0x1dd)]}));}function createResult(_0x38b8b1,_0x4de31a,_0x1e29d1){const _0x455830={'questionId':_0x38b8b1,'questionCount':_0x4de31a,'answers':_0x1e29d1};function _0xe9741e(_0x5b1a43,_0x210d1b,_0x1f1d36,_0x1717f7){return _0x26f978(_0x5b1a43-0x17e,_0x210d1b-0x113,_0x5b1a43-0x3e1,_0x1f1d36);}return createToolOutput(_0xe9741e(0x716,0x882,0x615,0x790)+JSON['stringify'](_0x1e29d1,null,0x2),_0x455830);}function createAskUserTool(){const _0x295af0={_0x3e2c2a:0x602,_0x3c071c:0x55f,_0x217747:0x4eb,_0x160be8:0x5ca,_0x467e4a:0x5cf,_0x3980c9:0x544,_0x4c4be0:0x5cf,_0x5ac519:0x51d,_0x44379a:0x616,_0x57a41e:0x4ff,_0x548514:0x679,_0x46137a:0x538,_0x15f018:0x3ed,_0x42cdd7:0x35e,_0x32414d:0x455,_0x29c77b:0x6ee,_0x8da9ea:0x5cf,_0x2928fe:0x5ac,_0x300309:0x600,_0x7e429b:0x5dd,_0x3d9332:0x57f,_0x46ad86:0x4ff,_0x12a5b8:0x4a1,_0x3aeac5:0x4c5,_0x101ff:0x505,_0x53fd4d:0x43e,_0x2f5ee3:0x41d,_0x4c4e28:0x4cd,_0x6e6b66:0x408,_0x5030b0:0x49e,_0x53da0c:0x296,_0xf7b3d1:0x462,_0x19cc1c:0x636,_0x1ded79:0x5e7},_0xa8b273={_0xa28cfb:0x78,_0xc5bba0:0x56,_0x418f0c:0x104,_0x321d0f:0x624,_0x4cb72d:0x531,_0x4a82a9:0x4c9,_0x1e0c00:0x4ce,_0x146b68:0x454,_0x52f430:0x63b,_0xfc45da:0x6b9,_0x346018:0x72b,_0x5f4232:0x4d},_0x3204bd={_0x3042ba:0x150},_0x2af501={_0x49d359:0x18c,_0x38242b:0x193},_0x565a38={_0x23fd73:0x1bc};function _0x2af485(_0x5cb9b7,_0x5b1ff2,_0x4b52a1,_0x1d2644){return _0x199ce4(_0x4b52a1-0x479,_0x5b1ff2-_0x565a38._0x23fd73,_0x5cb9b7,_0x1d2644-0x76);}function _0x114a32(_0x534f27,_0x53a56d,_0x23419f,_0x35a4fd){return _0x199ce4(_0x35a4fd-0x463,_0x53a56d-_0x2af501._0x49d359,_0x53a56d,_0x35a4fd-_0x2af501._0x38242b);}return defineTool({'name':_0x2af485(0x379,0x4ea,0x450,0x35a),'description':_0x114a32(_0x295af0._0x3e2c2a,0x5c9,0x4cc,_0x295af0._0x3c071c),'inputSchema':{'type':_0x114a32(_0x295af0._0x217747,0x58a,_0x295af0._0x160be8,_0x295af0._0x467e4a),'properties':{'questions':{'type':'array','items':{'type':_0x114a32(0x58f,_0x295af0._0x3980c9,0x612,_0x295af0._0x4c4be0),'properties':{'question':{'type':'string'},'topic':{'type':_0x2af485(_0x295af0._0x5ac519,_0x295af0._0x44379a,_0x295af0._0x57a41e,_0x295af0._0x548514)},'options':{'type':_0x2af485(_0x295af0._0x46137a,0x4c2,_0x295af0._0x15f018,_0x295af0._0x42cdd7),'items':{'type':_0x114a32(_0x295af0._0x32414d,_0x295af0._0x29c77b,0x477,_0x295af0._0x8da9ea),'properties':{'label':{'type':_0x2af485(0x3c3,_0x295af0._0x2928fe,_0x295af0._0x57a41e,_0x295af0._0x300309)},'description':{'type':_0x2af485(_0x295af0._0x7e429b,_0x295af0._0x3d9332,_0x295af0._0x46ad86,0x44e)}},'required':[_0x2af485(_0x295af0._0x12a5b8,0x3bb,_0x295af0._0x3aeac5,0x3dc),_0x2af485(_0x295af0._0x101ff,0x388,_0x295af0._0x53fd4d,0x317)]}},'multiSelect':{'type':'boolean'}},'required':[_0x114a32(_0x295af0._0x2f5ee3,0x458,_0x295af0._0x4c4e28,0x483),_0x2af485(0x34d,0x319,_0x295af0._0x6e6b66,0x389),_0x114a32(0x49b,0x6a6,_0x295af0._0x5030b0,0x5c1),_0x114a32(0x42a,0x177,_0x295af0._0x53da0c,0x2ec)]}},'answers':{'type':_0x114a32(_0x295af0._0xf7b3d1,_0x295af0._0x19cc1c,_0x295af0._0x1ded79,_0x295af0._0x4c4be0),'properties':{}}},'required':['questions']},async *'execute'(_0x130569,_0x121aed){const _0x4cdec0=_0x130569;validateInput(_0x4cdec0);const _0x218a3d=_0x121aed[_0x29a2e1(-0x170,-_0xa8b273._0xa28cfb,-_0xa8b273._0xc5bba0,_0xa8b273._0x418f0c)]??createQuestionId();if(_0x4cdec0[_0x147558(0x3cd,0x531,0x408,_0xa8b273._0x321d0f)]&&Object['keys'](_0x4cdec0[_0x147558(0x448,_0xa8b273._0x4cb72d,0x5a3,0x472)])[_0x147558(0x6c1,0x577,_0xa8b273._0x4a82a9,0x5d2)]>0x0)return createResult(_0x218a3d,_0x4cdec0['questions'][_0x147558(_0xa8b273._0x1e0c00,0x577,_0xa8b273._0x146b68,0x6f3)],_0x4cdec0['answers']);if(!_0x121aed[_0x29a2e1(-0xa9,-0x6c,-0xb5,-0x158)])throw new ToolExecutionError(_0x147558(0x6a9,_0xa8b273._0x52f430,_0xa8b273._0xfc45da,_0xa8b273._0x346018));const _0x4cef3f=buildQuestions(_0x4cdec0);function _0x29a2e1(_0x284637,_0xcbb3e5,_0x3e9da2,_0x4a1ee9){return _0x114a32(_0x284637-0xc4,_0x3e9da2,_0x3e9da2-0x34,_0xcbb3e5- -0x3da);}function _0x147558(_0x10debf,_0xd9ac15,_0x46da60,_0x38280a){return _0x114a32(_0x10debf-0xb6,_0x10debf,_0x46da60-0x1dd,_0xd9ac15-_0x3204bd._0x3042ba);}const _0x256c5b=await _0x121aed['askUser']({'questionId':_0x218a3d,'questions':_0x4cef3f});yield createResult(_0x218a3d,_0x4cdec0['questions'][_0x29a2e1(0x79,_0xa8b273._0x5f4232,-0xc9,-0x125)],_0x256c5b);}});}import{randomUUID}from'crypto';import{StringDecoder}from'string_decoder';function _0x26f978(_0x56373a,_0x2a3074,_0x1a47b0,_0x620d6b){return _0x16af(_0x1a47b0- -0x5d,_0x620d6b);}import{spawn as _0x4139b1}from'child_process';import{stripVTControlCharacters}from'util';function isErrnoException(_0x114bac){return _0x114bac instanceof Error;}function resolveCarriageReturns(_0x1f509a){const _0x1a7cbd={_0x40591e:0x4fe,_0x517ad5:0x654,_0x4d0687:0x161},_0x382dcf={_0x3ab4ee:0x4f1,_0xd02fd1:0xe1,_0x5b541b:0x2c},_0x229118={_0x2f39ba:0x270,_0x1543f5:0x5b,_0x2ebd15:0x4a},_0x29ec30={_0x3680d7:0x168,_0x5cbb28:0x100};function _0x45fa8a(_0x248224,_0x3e92f3,_0x115eed,_0x35a232){return _0x26f978(_0x248224-_0x29ec30._0x3680d7,_0x3e92f3-_0x29ec30._0x5cbb28,_0x248224-0x11a,_0x3e92f3);}function _0x17da1a(_0x2ba354,_0x2b2d86,_0x57b5cc,_0x583474){return _0x199ce4(_0x2b2d86-_0x229118._0x2f39ba,_0x2b2d86-_0x229118._0x1543f5,_0x2ba354,_0x583474-_0x229118._0x2ebd15);}return _0x1f509a[_0x45fa8a(_0x1a7cbd._0x40591e,_0x1a7cbd._0x517ad5,0x630,0x4ed)]('\x0a')['map'](_0x45f06d=>{function _0x216a4a(_0x4e37d6,_0x2bdf94,_0x243b17,_0x5a80e5){return _0x45fa8a(_0x2bdf94- -0x441,_0x243b17,_0x243b17-0x12f,_0x5a80e5-0x25);}if(!_0x45f06d[_0x2a0398(0x61d,0x717,0x4f2,_0x382dcf._0x3ab4ee)]('\x0d'))return _0x45f06d;function _0x2a0398(_0x298dbb,_0x1ce0a,_0x3886ed,_0x3d8194){return _0x45fa8a(_0x298dbb-0x22a,_0x3886ed,_0x3886ed-0x20,_0x3d8194-0x1a);}const _0x43f01e=_0x45f06d['split']('\x0d');return _0x43f01e[_0x43f01e[_0x216a4a(0x7f,-_0x382dcf._0xd02fd1,0x52,-_0x382dcf._0x5b541b)]-0x1]??'';})[_0x17da1a(_0x1a7cbd._0x4d0687,0x222,0x36c,0x282)]('\x0a');}function resolveBackspaces(_0x34c72b){const _0x44b80b={_0x448f63:0x5ab,_0x52791f:0x4af,_0x14c47b:0x4ea,_0x23f8bc:0x4ad,_0x42a8eb:0x2da,_0x4ab62d:0xe5,_0x44203f:0x233,_0x440904:0x439,_0xe46466:0x3a4,_0x2a383f:0x399,_0x1f3708:0x33d},_0x55f4b5={_0x45a4f9:0x1bc,_0x2a40d6:0x14c,_0x9525e6:0x6f};function _0x44fb67(_0x8e218,_0x903610,_0x910628,_0x188318){return _0x199ce4(_0x188318-0x38b,_0x903610-0x75,_0x903610,_0x188318-0x191);}function _0x5f5d31(_0x438464,_0x4871c0,_0x598b9f,_0x4c3bdd){return _0x26f978(_0x438464-_0x55f4b5._0x45a4f9,_0x4871c0-_0x55f4b5._0x2a40d6,_0x438464-_0x55f4b5._0x9525e6,_0x4c3bdd);}const _0x18a237=[];for(const _0x1ef52d of Array[_0x44fb67(_0x44b80b._0x448f63,_0x44b80b._0x52791f,_0x44b80b._0x14c47b,_0x44b80b._0x23f8bc)](_0x34c72b)){_0x1ef52d==='\x08'?_0x18a237[_0x44fb67(0x29f,0x1b0,_0x44b80b._0x42a8eb,0x2fe)]():_0x18a237[_0x44fb67(_0x44b80b._0x4ab62d,0x124,0x29b,_0x44b80b._0x44203f)](_0x1ef52d);}return _0x18a237[_0x44fb67(_0x44b80b._0x440904,_0x44b80b._0xe46466,_0x44b80b._0x2a383f,_0x44b80b._0x1f3708)]('');}function stripAnsiAndControls(_0x55c9e1){const _0x2ca9be={_0x1cdb9c:0x7ae,_0xbf7889:0x773,_0x5232ef:0x49d,_0x35c7ab:0x58f,_0x3057fe:0x2ea,_0x8b1341:0x469,_0x27d75d:0x413,_0x433433:0x4b9,_0x160a82:0x44f,_0x3b2c03:0x1bb,_0x235bcd:0x311,_0x1d844f:0x311,_0x1d79a2:0x54f,_0x2803ee:0x5f9,_0x85d42e:0x53d,_0x54a501:0x735,_0x3be4db:0x60d,_0x3c7fbe:0x62e,_0x40111d:0x648},_0x57a6a5={_0x1dbea0:0x3ab},_0x3dd416={_0x5e94aa:0x2f6,_0x2884f6:0x42};_0x55c9e1=resolveCarriageReturns(_0x55c9e1),_0x55c9e1=resolveBackspaces(_0x55c9e1),_0x55c9e1=stripVTControlCharacters(_0x55c9e1);const _0x28f6aa='\x1b',_0x4b7cec='\x07';function _0x257bf9(_0x4a8640,_0x3e888c,_0x23a9dd,_0x3085d6){return _0x199ce4(_0x3085d6-_0x3dd416._0x5e94aa,_0x3e888c-_0x3dd416._0x2884f6,_0x23a9dd,_0x3085d6-0x1e6);}_0x55c9e1=_0x55c9e1[_0x131d68(0x669,_0x2ca9be._0x1cdb9c,_0x2ca9be._0xbf7889,0x648)](new RegExp(_0x131d68(_0x2ca9be._0x5232ef,0x6bd,_0x2ca9be._0x35c7ab,0x5ee)+_0x4b7cec+_0x257bf9(_0x2ca9be._0x3057fe,_0x2ca9be._0x8b1341,0x458,0x426)+_0x4b7cec,'g'),''),_0x55c9e1=_0x55c9e1['replace'](new RegExp(_0x131d68(0x479,_0x2ca9be._0x27d75d,0x5e2,_0x2ca9be._0x433433)+_0x28f6aa+'\x5c\x5c','g'),''),_0x55c9e1=_0x55c9e1[_0x257bf9(0x36c,_0x2ca9be._0x160a82,_0x2ca9be._0x3b2c03,_0x2ca9be._0x235bcd)](new RegExp(_0x4b7cec,'g'),''),_0x55c9e1=_0x55c9e1[_0x257bf9(0x198,0x1c8,0x1f9,_0x2ca9be._0x1d844f)](new RegExp(_0x28f6aa+_0x131d68(0x3d3,0x67b,_0x2ca9be._0x1d79a2,0x534)+_0x28f6aa+'\x5c\x5c','g'),''),_0x55c9e1=_0x55c9e1['replace'](new RegExp(_0x28f6aa+_0x131d68(_0x2ca9be._0x2803ee,_0x2ca9be._0x85d42e,0x6dc,0x5fd),'g'),''),_0x55c9e1=_0x55c9e1[_0x131d68(_0x2ca9be._0x54a501,0x4cd,_0x2ca9be._0x3be4db,0x648)](/[\u0080-\u009F]/g,''),_0x55c9e1=_0x55c9e1['replace'](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x55c9e1=_0x55c9e1[_0x131d68(0x52d,_0x2ca9be._0x3c7fbe,0x5b9,_0x2ca9be._0x40111d)](/[\u23CE\u2424]/g,'');function _0x131d68(_0x4d4973,_0x33835a,_0x2d432a,_0x1d803f){return _0x26f978(_0x4d4973-0x1ec,_0x33835a-0xd3,_0x1d803f-_0x57a6a5._0x1dbea0,_0x2d432a);}return _0x55c9e1;}function killProcessGroup(_0x4f2b39,_0x2ff584,_0x3a5f21=_0x26f978(0x1fe,0x13d,0x1b9,0x181)){const _0x24bdc2={_0x15b1f4:0x192,_0x3ae44a:0x353,_0x5a5dbc:0x256,_0x39b1a4:0x246,_0x3b3db7:0x4cc,_0x1d50aa:0xcc,_0x4c7ab2:0x2,_0x33e35b:0x196,_0x5e40c0:0x6e,_0x4db0e8:0x420},_0x506422={_0x1dac57:0xe5,_0x2cade6:0x4a},_0x500677={_0x303f7c:0xdd};if(!_0x4f2b39[_0x2347d5(_0x24bdc2._0x15b1f4,0xed,0x38,0xca)])return;function _0x23cb38(_0x4e17a4,_0x240ca8,_0x1a4fdd,_0x5a73b6){return _0x26f978(_0x4e17a4-_0x500677._0x303f7c,_0x240ca8-0x7,_0x240ca8-0x13a,_0x4e17a4);}function _0x2347d5(_0x24af9f,_0x329fe5,_0x5ae139,_0x936ba1){return _0x199ce4(_0x24af9f-_0x506422._0x1dac57,_0x329fe5-_0x506422._0x2cade6,_0x5ae139,_0x936ba1-0xe4);}if(_0x2ff584)try{_0x4139b1(_0x23cb38(_0x24bdc2._0x3ae44a,0x301,_0x24bdc2._0x5a5dbc,_0x24bdc2._0x39b1a4),['/pid',_0x4f2b39[_0x23cb38(_0x24bdc2._0x3b3db7,0x469,0x3d6,0x328)][_0x2347d5(_0x24bdc2._0x1d50aa,-_0x24bdc2._0x4c7ab2,_0x24bdc2._0x33e35b,_0x24bdc2._0x5e40c0)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x4f2b39['kill'](_0x3a5f21);return;}try{process['kill'](-_0x4f2b39['pid'],_0x3a5f21);}catch{_0x4f2b39[_0x23cb38(0x50d,0x3d0,_0x24bdc2._0x4db0e8,0x2cd)](_0x3a5f21);}}var BackgroundProcessRegistry=class{[_0x26f978(0x3a6,0x361,0x260,0x1d2)]=new Map();[_0x26f978(0x3f6,0x46f,0x2fd,0x27a)];['maxEntries'];[_0x199ce4(0x9e,-0xc2,0x125,0x130)];['counter']=0x0;constructor(_0x506ede={}){const _0x427c12={_0x3e5c1b:0x33e,_0x31afe4:0x467,_0x4def2a:0x5ae,_0x2da24f:0x51c,_0x451b97:0x3a7,_0x1a0cf6:0x2e2,_0x464978:0x326,_0x574321:0x46d,_0x56b0fe:0x703},_0x171621={_0x51dd0a:0x26};function _0x3e725d(_0x52e2fb,_0xf864dd,_0x5a4711,_0x956586){return _0x26f978(_0x52e2fb-0x186,_0xf864dd-0x48,_0x5a4711-0x2c3,_0x52e2fb);}this[_0x32784e(0x30c,0x32e,0x279,_0x427c12._0x3e5c1b)]=_0x506ede[_0x3e725d(_0x427c12._0x31afe4,_0x427c12._0x4def2a,0x5c0,_0x427c12._0x2da24f)]??0xa;function _0x32784e(_0x5b396e,_0x46ac1b,_0x42de03,_0x2573a3){return _0x199ce4(_0x2573a3-0x2c3,_0x46ac1b-0x9a,_0x5b396e,_0x2573a3-_0x171621._0x51dd0a);}this[_0x32784e(_0x427c12._0x451b97,_0x427c12._0x1a0cf6,0x284,_0x427c12._0x464978)]=_0x506ede['maxEntries']??0x40,this[_0x3e725d(0x54b,_0x427c12._0x574321,0x5e3,_0x427c12._0x56b0fe)]=_0x506ede[_0x3e725d(0x4da,0x73a,0x5e3,0x582)]??0x100000;}[_0x26f978(0x293,0x33c,0x279,0x111)](_0x3c34d1){const _0x3eedab={_0x5a6f8f:0x96,_0x4436cc:0x59,_0x4f0720:0x1ce,_0x317862:0x1b1,_0x496b84:0x73,_0xea7e47:0xc9,_0x5732f6:0x115,_0x432510:0x194,_0x11be2b:0x1d9,_0xb7408c:0x1de,_0x36c632:0x13f,_0x59e9e7:0x1c7,_0x427801:0x60,_0x3ff84c:0x20,_0x13e9eb:0xcf,_0x67b8ec:0x1e8,_0x533b2d:0x1a7,_0x13994a:0x48,_0x27c430:0x1af,_0x1f5aca:0x235,_0x20857d:0x38f,_0x402a8a:0x1fd,_0x4add5b:0x243,_0x3f2b66:0x33d,_0x1059e9:0x2c3,_0x22fc94:0x25d,_0x4e32a7:0x1ba,_0x1bb486:0x49,_0x364d16:0x57,_0x30542e:0x1b0,_0x2055e6:0x74,_0x153afa:0x189,_0x58036c:0x3a,_0x16346d:0xe3,_0x29f830:0x9d,_0x5e1f14:0x18d,_0x33564c:0x26e,_0x444d2c:0x1e2,_0x1eb295:0xb5,_0x374d9b:0xd2,_0x593ef3:0x32a,_0x354edc:0x22a,_0x380f06:0x25e,_0x235cd5:0x23,_0xa0253b:0xbe,_0x567f09:0x87,_0x1d12a6:0xd0,_0x258bea:0x2d,_0x9d56f3:0x89,_0x45778e:0x1c5,_0x35c91e:0xf,_0x47dc6a:0x55},_0x1f2da7={_0xe24951:0x2a0,_0x43edeb:0x377,_0x1da608:0x244},_0x3cdfab={_0x5a7a2d:0x921,_0x8037b6:0x801,_0xa25956:0x832,_0x1d51b5:0x8d7,_0x385e25:0x6e1,_0x179867:0x88d,_0x26caa8:0xe9,_0x95f889:0x736,_0x4609fd:0x5d5,_0x51fbfb:0x681,_0x2b34b5:0x1bf,_0x40a329:0x24,_0x595002:0x1a9,_0x4bbf45:0x31a,_0x2998a4:0x6f3,_0x5b5f58:0x727,_0x543570:0x137,_0x312067:0x21,_0x3f40fc:0x63,_0x1e91f8:0x10d,_0x29749b:0x153,_0x9073cd:0x69},_0x1d96a1={_0x266c4b:0x47,_0x5addf8:0x29},_0x24b7d7={_0x75904a:0x8,_0xf1cda6:0x8d};function _0x2e71c5(_0x2ef9ae,_0x455cb4,_0x2a046e,_0x4454ec){return _0x199ce4(_0x455cb4- -_0x24b7d7._0x75904a,_0x455cb4-0x19c,_0x2a046e,_0x4454ec-_0x24b7d7._0xf1cda6);}const _0x4830a9=[...this[_0x2e71c5(-0x27,-0x2a,0x148,-_0x3eedab._0x5a6f8f)]['values']()][_0x2ffd99(0xda,-_0x3eedab._0x4436cc,_0x3eedab._0x4f0720,_0x3eedab._0x317862)](_0x1d3295=>_0x1d3295['status']===_0x2e71c5(-0x55,0x118,-0x33,0x128))[_0x2e71c5(_0x3eedab._0x496b84,-0x44,0xf3,-_0x3eedab._0xea7e47)];if(_0x4830a9>=this[_0x2e71c5(-0xb7,_0x3eedab._0x496b84,_0x3eedab._0x5732f6,0x123)])throw new ToolExecutionError('Too\x20many\x20background\x20processes\x20running\x20('+this['maxConcurrent']+_0x2ffd99(_0x3eedab._0x432510,_0x3eedab._0x11be2b,_0x3eedab._0xb7408c,0xea),{'running':this[_0x2e71c5(-0x30,0x73,_0x3eedab._0x36c632,_0x3eedab._0x59e9e7)]});const _0x5b7043=_0x2e71c5(-_0x3eedab._0x427801,-_0x3eedab._0x3ff84c,_0x3eedab._0x13e9eb,-0x69)+ ++this[_0x2ffd99(_0x3eedab._0x67b8ec,0x177,0x281,0x273)]+'-'+randomUUID()[_0x2ffd99(_0x3eedab._0x533b2d,_0x3eedab._0x13994a,0x290,0x263)](0x0,0x8);function _0x2ffd99(_0x546d9f,_0x49f766,_0x170b69,_0x485ad8){return _0x26f978(_0x546d9f-_0x1d96a1._0x266c4b,_0x49f766-_0x1d96a1._0x5addf8,_0x546d9f- -0xec,_0x49f766);}const _0x5eb476={'shellId':_0x5b7043,'command':_0x3c34d1[_0x2ffd99(0x264,_0x3eedab._0x27c430,0x2ec,0x35e)],'cwd':_0x3c34d1[_0x2ffd99(_0x3eedab._0x1f5aca,_0x3eedab._0x20857d,0x287,0x322)],'pid':_0x3c34d1[_0x2e71c5(0x11c,0xd0,_0x3eedab._0x402a8a,0xff)][_0x2ffd99(_0x3eedab._0x4add5b,_0x3eedab._0x3f2b66,_0x3eedab._0x1059e9,_0x3eedab._0x22fc94)],'status':'running','exitCode':null,'signal':null,'startedAt':Date[_0x2ffd99(0x96,_0x3eedab._0x4e32a7,_0x3eedab._0x1bb486,-_0x3eedab._0x364d16)](),'child':_0x3c34d1[_0x2e71c5(_0x3eedab._0x30542e,0xd0,_0x3eedab._0x2055e6,-0x7d)],'buffer':[],'bufferChars':0x0,'totalProduced':0x0,'totalDropped':0x0,'readCursor':0x0,'stdoutDecoder':new StringDecoder(_0x2e71c5(_0x3eedab._0x153afa,_0x3eedab._0x58036c,0x10b,_0x3eedab._0x16346d)),'stderrDecoder':new StringDecoder(_0x2e71c5(-0xa0,0x3a,-0xed,_0x3eedab._0x29f830)),'stripAnsi':_0x3c34d1[_0x2ffd99(0x2c2,0x231,_0x3eedab._0x5e1f14,0x2aa)],'killRequested':![],'processExited':![]};return _0x3c34d1['child']['stdout']?.['on'](_0x2ffd99(0x1d6,0x15d,0x2f7,0x2c5),_0xa68238=>this[_0x2e71c5(0x5,0x175,0x64,0xfd)](_0x5eb476,_0x5eb476[_0x2e71c5(0x20c,0x144,0xa8,0x232)]['write'](_0xa68238))),_0x3c34d1[_0x2ffd99(_0x3eedab._0x33564c,_0x3eedab._0x444d2c,0x3bd,0x2bf)][_0x2ffd99(0x5b,-0x104,-0xba,-0x1a)]?.['on'](_0x2e71c5(-0x51,0x38,_0x3eedab._0x3ff84c,0x1ab),_0x2add5b=>this[_0x2ffd99(0x313,0x254,0x1e4,0x3ab)](_0x5eb476,_0x5eb476[_0x2ffd99(0x1e1,0x222,0x19d,0x1ab)]['write'](_0x2add5b))),_0x3c34d1['child']['once'](_0x2ffd99(_0x3eedab._0x1eb295,-0x8b,_0x3eedab._0x374d9b,0x9f),()=>{_0x5eb476['processExited']=!![];}),_0x3c34d1[_0x2ffd99(0x26e,0x13a,_0x3eedab._0x593ef3,0x29f)][_0x2ffd99(0xf3,_0x3eedab._0x354edc,_0x3eedab._0x380f06,-_0x3eedab._0x235cd5)](_0x2ffd99(0x1ad,_0x3eedab._0xa0253b,_0x3eedab._0x427801,0x109),(_0x4c66a0,_0x5d1295)=>{this[_0x41e808(_0x3cdfab._0x5a7a2d,_0x3cdfab._0x8037b6,0x98e,_0x3cdfab._0xa25956)](_0x5eb476,_0x5eb476[_0x41e808(_0x3cdfab._0x1d51b5,_0x3cdfab._0x385e25,_0x3cdfab._0x179867,0x801)][_0x41e808(0x551,0x52e,0x5c7,0x661)]()),this[_0x2b8c54(0x256,0x103,0x1f8,_0x3cdfab._0x26caa8)](_0x5eb476,_0x5eb476['stderrDecoder']['end']()),_0x5eb476[_0x41e808(0x612,_0x3cdfab._0x95f889,_0x3cdfab._0x4609fd,_0x3cdfab._0x51fbfb)]=_0x5eb476[_0x2b8c54(_0x3cdfab._0x2b34b5,_0x3cdfab._0x40a329,0x107,_0x3cdfab._0x595002)]?_0x2b8c54(0x94,0x273,0x1be,_0x3cdfab._0x4bbf45):_0x41e808(0x5f1,_0x3cdfab._0x2998a4,_0x3cdfab._0x5b5f58,0x73f);function _0x2b8c54(_0x15b1f0,_0x35d1cd,_0x3fb77c,_0x5cae87){return _0x2e71c5(_0x15b1f0-0x1de,_0x3fb77c-0x83,_0x5cae87,_0x5cae87-0x10e);}_0x5eb476['exitCode']=_0x4c66a0;function _0x41e808(_0x52e5a2,_0x2f6e3b,_0x4d4a2d,_0x2f9461){return _0x2ffd99(_0x2f9461-0x51f,_0x4d4a2d,_0x4d4a2d-0x73,_0x2f9461-0x15b);}_0x5eb476[_0x2b8c54(-_0x3cdfab._0x543570,_0x3cdfab._0x312067,-0x57,_0x3cdfab._0x3f40fc)]=_0x5d1295,_0x5eb476[_0x2b8c54(_0x3cdfab._0x1e91f8,0xf6,_0x3cdfab._0x29749b,_0x3cdfab._0x9073cd)]=null;}),_0x3c34d1[_0x2e71c5(_0x3eedab._0x567f09,_0x3eedab._0x1d12a6,0x204,0x1ec)][_0x2ffd99(0xf3,-_0x3eedab._0x258bea,0x69,_0x3eedab._0x9d56f3)]('error',_0x408ce9=>{const _0x1f89ed={_0x4fef98:0x83,_0x44a064:0x29,_0x223afc:0x30},_0x500b47={_0x29f7d6:0x10b};_0x5eb476['status']=_0x22369c(0x157,0x367,0x260,_0x1f2da7._0xe24951);function _0x22369c(_0x4b60fb,_0x40db9b,_0x58cbb2,_0x5f3e1a){return _0x2ffd99(_0x5f3e1a-_0x500b47._0x29f7d6,_0x58cbb2,_0x58cbb2-0x33,_0x5f3e1a-0x156);}_0x5eb476[_0x22369c(_0x1f2da7._0x43edeb,0x35a,_0x1f2da7._0x1da608,0x2a0)]=_0x408ce9['message'];function _0x5568d8(_0x562ce2,_0x9b9e72,_0x1e3fe3,_0x3cc7e0){return _0x2ffd99(_0x562ce2- -_0x1f89ed._0x4fef98,_0x9b9e72,_0x1e3fe3-_0x1f89ed._0x44a064,_0x3cc7e0-_0x1f89ed._0x223afc);}_0x5eb476['child']=null;}),this['entries'][_0x2e71c5(0x23d,0xf2,_0x3eedab._0x45778e,_0x3eedab._0x35c91e)](_0x5b7043,_0x5eb476),this[_0x2ffd99(_0x3eedab._0x47dc6a,0x120,0xbc,0x179)](),_0x5eb476;}[_0x26f978(0x166,0x389,0x23d,0x171)](_0x27b761,_0x523f66){const _0x1f4569={_0x5563b7:0x1bf,_0x5218cd:0xb1,_0x45476f:0x19e,_0x9b9a91:0x1e0,_0x52e41f:0x97,_0x3d3156:0x1f6,_0x598cae:0x32e,_0x3690a4:0x3b5,_0x222da6:0x2c5,_0x333cd:0xd5,_0x1a94ce:0x12b,_0x1a9ec7:0xb2,_0x1849b1:0x1df,_0x41d6b8:0xa1,_0x368d44:0x71,_0x215d95:0x3c0,_0x4be9d9:0x104,_0xec622c:0x250,_0x1404d0:0x3a2,_0x2cb7e0:0x3bb,_0x4fa384:0x2da,_0x4d6f74:0x32f,_0x4b40b2:0x3da,_0x1d8739:0x26a,_0x49a8dc:0x35d,_0x2f7f27:0x277,_0x50f5db:0x378,_0x252a20:0x39d,_0x328414:0x3cf,_0x4861ef:0x356,_0xe337ce:0x22,_0x292cc5:0x174,_0x4232c5:0x4b4,_0x34f2d:0x449,_0xe4a0c8:0x3b6,_0x400cc9:0xb0,_0xbae9dd:0x223,_0x113683:0x2dd,_0x2b2478:0x2d5,_0x2b0ae0:0x322,_0x3d8c65:0x343,_0x38b265:0x3d4,_0x56b437:0x290,_0x330a6a:0x3fb,_0x6d9ae5:0x35a,_0x3bfc2a:0x1},_0x4d0951={_0x1dbf24:0x192,_0x13f092:0x1af},_0x4ac1cd={_0x19fd78:0x10f};function _0x196837(_0x405e9b,_0x2701d4,_0x3d9616,_0x50233e){return _0x26f978(_0x405e9b-0x1f0,_0x2701d4-0x13f,_0x2701d4-_0x4ac1cd._0x19fd78,_0x50233e);}const _0x28df6d=this[_0x29e8c6(-0xa2,_0x1f4569._0x5563b7,0x8b,_0x1f4569._0x5218cd)][_0x196837(_0x1f4569._0x45476f,0x240,0x341,0x2cf)](_0x27b761);if(!_0x28df6d)throw new ToolExecutionError(_0x29e8c6(0x5c,-_0x1f4569._0x9b9a91,-0x12c,-_0x1f4569._0x52e41f)+_0x27b761,{'shellId':_0x27b761});const _0x517e63=_0x28df6d[_0x196837(_0x1f4569._0x3d3156,_0x1f4569._0x598cae,_0x1f4569._0x3690a4,_0x1f4569._0x222da6)]['join'](''),_0x5ee5a8=Math['max'](_0x28df6d[_0x29e8c6(_0x1f4569._0x333cd,0x28f,0x187,_0x1f4569._0x1a94ce)],_0x28df6d[_0x29e8c6(_0x1f4569._0x1a9ec7,_0x1f4569._0x1849b1,-_0x1f4569._0x41d6b8,_0x1f4569._0x368d44)]);function _0x29e8c6(_0x14c6e9,_0x1f56e4,_0x118967,_0x378531){return _0x26f978(_0x14c6e9-_0x4d0951._0x1dbf24,_0x1f56e4-0xdb,_0x378531- -_0x4d0951._0x13f092,_0x14c6e9);}const _0x48f4d5=Math[_0x196837(0x385,0x408,0x2e3,_0x1f4569._0x215d95)](0x0,_0x28df6d['totalDropped']-_0x28df6d[_0x29e8c6(_0x1f4569._0x4be9d9,0x11,_0x1f4569._0xec622c,0x12b)]),_0x104c83=_0x517e63[_0x196837(0x3fd,_0x1f4569._0x1404d0,0x23f,_0x1f4569._0x2cb7e0)](_0x5ee5a8-_0x28df6d[_0x196837(_0x1f4569._0x4fa384,_0x1f4569._0x4d6f74,_0x1f4569._0x4b40b2,_0x1f4569._0x1d8739)]),_0x5a9225=_0x28df6d[_0x196837(0x3e8,_0x1f4569._0x49a8dc,0x43d,0x489)]!=='running';let _0x242295;const _0x24067e=_0x523f66?.[_0x196837(0x116,_0x1f4569._0x2f7f27,_0x1f4569._0x50f5db,0x16e)];if(!_0x24067e)_0x242295=_0x104c83,_0x28df6d['readCursor']=_0x28df6d[_0x196837(0x23e,_0x1f4569._0x252a20,_0x1f4569._0x328414,_0x1f4569._0x4861ef)];else{let _0x52f08e;try{_0x52f08e=new RegExp(_0x24067e);}catch(_0x167f2b){throw new ToolExecutionError(_0x29e8c6(0x14,0x213,_0x1f4569._0xe337ce,_0x1f4569._0x292cc5)+_0x167f2b[_0x196837(_0x1f4569._0x4232c5,0x44b,_0x1f4569._0x34f2d,_0x1f4569._0xe4a0c8)],{'shellId':_0x27b761,'regex':_0x24067e});}let _0x2f0178=_0x104c83;if(!_0x5a9225){const _0x48c8df=_0x104c83['lastIndexOf']('\x0a');_0x2f0178=_0x48c8df>=0x0?_0x104c83[_0x29e8c6(_0x1f4569._0x400cc9,_0x1f4569._0xbae9dd,0x17d,0xe4)](0x0,_0x48c8df+0x1):'';}_0x242295=_0x2f0178[_0x196837(0x3cf,0x4f3,0x3ef,0x60a)]('\x0a')[_0x196837(_0x1f4569._0x113683,_0x1f4569._0x2b2478,0x38c,_0x1f4569._0x2b0ae0)](_0x407d85=>_0x52f08e['test'](_0x407d85))[_0x196837(0x2fc,_0x1f4569._0x3d8c65,0x24a,_0x1f4569._0x38b265)]('\x0a'),_0x28df6d['readCursor']=_0x5ee5a8+_0x2f0178['length'];}const _0x3c408a=(_0x48f4d5>0x0?'[output\x20truncated:\x20'+_0x48f4d5+_0x196837(0x428,0x365,_0x1f4569._0x56b437,0x311):'')+_0x242295;return{'output':_0x3c408a,'status':_0x28df6d['status'],'exitCode':_0x28df6d[_0x196837(0x3f2,0x3f8,_0x1f4569._0x330a6a,_0x1f4569._0x6d9ae5)],'signal':_0x28df6d[_0x29e8c6(0x10c,-0x81,0x123,_0x1f4569._0x3bfc2a)],'truncated':_0x48f4d5>0x0};}[_0x26f978(0x324,0x29c,0x357,0x25c)](){const _0x3b84ab={_0x2cb178:0x2f9,_0x1ab19b:0x44c,_0x46f5f3:0x24d,_0x20625e:0x371,_0x4e27c9:0x1f7},_0x35bd34={_0x522dab:0x2d};function _0xdcc136(_0x49f15b,_0x12cf00,_0x5527ee,_0x179b5a){return _0x26f978(_0x49f15b-0x16f,_0x12cf00-0x105,_0x12cf00-0x99,_0x49f15b);}function _0x2a230a(_0xbed70d,_0x53cff6,_0x30816d,_0x2db314){return _0x199ce4(_0x2db314-0x161,_0x53cff6-_0x35bd34._0x522dab,_0xbed70d,_0x2db314-0x2a);}return[...this[_0xdcc136(0x383,_0x3b84ab._0x2cb178,_0x3b84ab._0x1ab19b,_0x3b84ab._0x46f5f3)][_0x2a230a(0x12c,_0x3b84ab._0x20625e,_0x3b84ab._0x4e27c9,0x277)]()];}[_0x199ce4(0x14,0x143,-0x1a,-0x5a)](_0x5ca765){const _0xd010ce={_0x32b892:0x21,_0x1e5af7:0x42,_0x53b648:0x151,_0x2e3915:0xee,_0x49ed7c:0x116,_0x5b5214:0x239,_0x1d68a7:0x3d1,_0x3d37d8:0x176,_0x136c80:0xd2,_0x277eba:0x2a7,_0x59da7d:0x232,_0x18d398:0x158,_0x155e9e:0x20,_0x5dadcb:0x210,_0xd2f121:0xbb,_0x457021:0xe2,_0x583798:0x51,_0x453e4f:0x13e,_0x1726a1:0x194,_0x4de0f6:0x234,_0x38a966:0x3c1},_0x3ddd99={_0x5551da:0x18e,_0x2ff16b:0x56,_0x2b5a53:0x10b},_0x21b989={_0x33578:0x110};function _0x363099(_0x567ed4,_0x1e5484,_0x4f3328,_0x1f78b6){return _0x26f978(_0x567ed4-0x1e2,_0x1e5484-0x16b,_0x567ed4- -_0x21b989._0x33578,_0x4f3328);}const _0x14b2d5=this['entries'][_0x363099(_0xd010ce._0x32b892,0x148,_0xd010ce._0x1e5af7,-_0xd010ce._0x53b648)](_0x5ca765);if(!_0x14b2d5)throw new ToolExecutionError('No\x20background\x20process\x20with\x20id\x20'+_0x5ca765,{'shellId':_0x5ca765});function _0x43aad2(_0x3cfb17,_0xb23d18,_0x54067a,_0x5251aa){return _0x26f978(_0x3cfb17-_0x3ddd99._0x5551da,_0xb23d18-_0x3ddd99._0x2ff16b,_0x5251aa-_0x3ddd99._0x2b5a53,_0x54067a);}if(_0x14b2d5[_0x363099(0x13e,0x20c,_0xd010ce._0x2e3915,_0xd010ce._0x49ed7c)]===_0x363099(0x292,0x1ab,_0xd010ce._0x5b5214,0x160)&&_0x14b2d5[_0x43aad2(0x519,_0xd010ce._0x1d68a7,0x3ec,0x465)]&&!_0x14b2d5[_0x363099(_0xd010ce._0x3d37d8,0x1f2,0x2a4,_0xd010ce._0x136c80)]){_0x14b2d5[_0x363099(0x1fe,_0xd010ce._0x277eba,0x1cb,_0xd010ce._0x59da7d)]=!![];try{killProcessGroup(_0x14b2d5['child'],process[_0x363099(_0xd010ce._0x18d398,-_0xd010ce._0x155e9e,_0xd010ce._0x5dadcb,_0xd010ce._0xd2f121)]===_0x363099(_0xd010ce._0x457021,0x1e4,-_0xd010ce._0x583798,0x22d));}catch{}}return{'status':_0x14b2d5[_0x363099(_0xd010ce._0x453e4f,0xc8,0x42,_0xd010ce._0x1726a1)],'exitCode':_0x14b2d5[_0x363099(0x1d9,0x1e3,0xfd,0x329)],'signal':_0x14b2d5[_0x43aad2(0x38b,_0xd010ce._0x4de0f6,_0xd010ce._0x38a966,0x2bb)]};}async['closeAll'](){const _0x346a12={_0x2a7ea1:0x23a,_0x4177e6:0x1f8,_0x1985db:0x37c,_0x1a45b7:0x4f6,_0x51b9c4:0x602,_0x3fc455:0x4b0,_0x12cfd3:0x61b,_0x431c8d:0x6f8,_0x1d59e3:0x625,_0x1549d9:0x27e,_0x55616a:0x242,_0xa95fb3:0x426},_0x1957b4={_0x214ad4:0x25c,_0x46f457:0x1cc,_0x4e5be9:0x16},_0x2f44b5={_0x27b8b7:0x5ec};function _0x1c23b2(_0x2ce2d7,_0x1442fd,_0x378ac0,_0xeab613){return _0x199ce4(_0xeab613-_0x2f44b5._0x27b8b7,_0x1442fd-0x142,_0x378ac0,_0xeab613-0x14b);}function _0x474c8d(_0x1aa7ce,_0x9d4c6,_0x124478,_0x3f302c){return _0x199ce4(_0x9d4c6-_0x1957b4._0x214ad4,_0x9d4c6-_0x1957b4._0x46f457,_0x3f302c,_0x3f302c-_0x1957b4._0x4e5be9);}for(const _0x36b4cc of this[_0x474c8d(0x2e2,_0x346a12._0x2a7ea1,0x2ae,0x342)]['values']()){if(_0x36b4cc[_0x474c8d(_0x346a12._0x4177e6,0x228,0x369,0x2b5)]===_0x474c8d(0x3f3,_0x346a12._0x1985db,0x292,_0x346a12._0x1a45b7)&&_0x36b4cc[_0x1c23b2(_0x346a12._0x51b9c4,0x75b,0x767,0x6c4)]&&!_0x36b4cc[_0x1c23b2(_0x346a12._0x3fc455,_0x346a12._0x12cfd3,_0x346a12._0x431c8d,0x5f0)]){_0x36b4cc[_0x1c23b2(0x549,0x5dc,0x557,0x678)]=!![];try{killProcessGroup(_0x36b4cc[_0x1c23b2(_0x346a12._0x1d59e3,0x832,0x77a,0x6c4)],process[_0x474c8d(_0x346a12._0x1549d9,_0x346a12._0x55616a,0x2b1,0x146)]===_0x1c23b2(0x591,0x426,_0x346a12._0xa95fb3,0x55c));}catch{}}}}[_0x26f978(0x54d,0x4c6,0x3ff,0x29c)](_0x4aad63,_0x102886){const _0x537c18={_0x2c859e:0x419,_0x17c742:0x605,_0x369ab0:0x50e,_0x93d3c4:0x27f,_0x1f79c1:0x3c2,_0x55f3a0:0x28a,_0x59c531:0x2ed,_0x409e23:0x32f,_0x3404b3:0x284,_0x47f177:0x736,_0x51443d:0x771,_0x27a2b3:0x474,_0x3331bd:0x33f,_0x37f9e0:0x2e1,_0x492524:0x691,_0x136274:0x5ed,_0x43b1eb:0x2dc,_0x5d3ddc:0x703,_0xa74536:0x7ae,_0x4ebcb4:0x35e,_0x45bfa0:0x192,_0x1a0f30:0x23d,_0x475417:0x3f2,_0xe5dc64:0x359,_0x302d92:0x68a,_0x3ea5da:0x655,_0x22611f:0x557,_0x5a3b7b:0x672,_0x11cf7d:0x3a6,_0x1fb47d:0x388,_0x1497a0:0x20c,_0x5613c7:0x380},_0x4917a2={_0x256e1f:0x160},_0xdc61f6={_0x4fd93a:0x6c1},_0x435429=_0x4aad63[_0x57c0ba(_0x537c18._0x2c859e,0x620,_0x537c18._0x17c742,_0x537c18._0x369ab0)]?stripAnsiAndControls(_0x102886):_0x102886;if(_0x435429['length']===0x0)return;_0x4aad63['buffer'][_0x57c0ba(0x28b,_0x537c18._0x93d3c4,_0x537c18._0x1f79c1,_0x537c18._0x55f3a0)](_0x435429);function _0x20fc25(_0x310e91,_0xce23ef,_0x5203c8,_0x1e2cd4){return _0x199ce4(_0xce23ef-_0xdc61f6._0x4fd93a,_0xce23ef-0x13d,_0x310e91,_0x1e2cd4-0x133);}_0x4aad63[_0x57c0ba(_0x537c18._0x59c531,_0x537c18._0x409e23,0x35b,_0x537c18._0x3404b3)]+=_0x435429[_0x20fc25(0x6ac,0x685,0x719,_0x537c18._0x47f177)],_0x4aad63[_0x20fc25(0x771,0x6cd,0x81f,_0x537c18._0x51443d)]+=_0x435429[_0x57c0ba(0x4c7,_0x537c18._0x27a2b3,_0x537c18._0x3331bd,0x3a6)];function _0x57c0ba(_0xab294d,_0x557238,_0x5ccf2,_0x207252){return _0x26f978(_0xab294d-0x17,_0x557238-0x1b8,_0x207252-_0x4917a2._0x256e1f,_0xab294d);}while(_0x4aad63[_0x57c0ba(0x1a6,_0x537c18._0x37f9e0,0x14f,0x284)]>this[_0x20fc25(_0x537c18._0x492524,0x75f,0x828,_0x537c18._0x136274)]){const _0x3055c4=_0x4aad63['bufferChars']-this['capChars'],_0x3e6f30=_0x4aad63[_0x57c0ba(0x3ca,0x34e,_0x537c18._0x43b1eb,0x37f)][0x0];_0x3e6f30['length']<=_0x3055c4?(_0x4aad63[_0x20fc25(0x7c8,0x65e,_0x537c18._0x5d3ddc,_0x537c18._0xa74536)][_0x57c0ba(_0x537c18._0x4ebcb4,_0x537c18._0x45bfa0,_0x537c18._0x1a0f30,0x2da)](),_0x4aad63[_0x57c0ba(0x396,_0x537c18._0x475417,_0x537c18._0xe5dc64,0x284)]-=_0x3e6f30[_0x20fc25(_0x537c18._0x302d92,0x685,_0x537c18._0x3ea5da,_0x537c18._0x22611f)],_0x4aad63[_0x20fc25(_0x537c18._0x5a3b7b,0x65f,0x7c2,0x697)]+=_0x3e6f30[_0x57c0ba(0x370,0x242,0x375,_0x537c18._0x11cf7d)]):(_0x4aad63['buffer'][0x0]=_0x3e6f30['slice'](_0x3055c4),_0x4aad63['bufferChars']-=_0x3055c4,_0x4aad63[_0x57c0ba(0x4e6,_0x537c18._0x1fb47d,_0x537c18._0x1497a0,_0x537c18._0x5613c7)]+=_0x3055c4);}}[_0x26f978(0x25f,0xee,0x141,0x8f)](){const _0xb77a21={_0x190972:0x64e,_0x40acbf:0x62a,_0x163679:0x2d6,_0x5b3824:0x1d9,_0x51d852:0x3df,_0x58cb42:0x488,_0x1d3e0c:0x4dc,_0x5b4e55:0x6f4,_0x4f8e33:0x398,_0x59e63c:0x5da,_0x1da77d:0x37f,_0x5a4c4b:0x67e,_0x3b803b:0x578,_0x201178:0x491,_0x39606b:0x23a,_0x413e3c:0x298,_0x4dacd0:0xbe,_0x2cd50d:0x12a},_0x26cbce={_0x56b2dd:0x2a,_0x817e9e:0x29,_0x531e5d:0x312},_0x9645ff={_0x4b1007:0x11a,_0x57673e:0x179};if(this[_0x4ceb9a(_0xb77a21._0x190972,0x572,_0xb77a21._0x40acbf,0x5d0)][_0x56bc35(_0xb77a21._0x163679,_0xb77a21._0x5b3824,_0xb77a21._0x51d852,0x1e0)]<=this[_0x4ceb9a(_0xb77a21._0x58cb42,0x5f7,_0xb77a21._0x1d3e0c,_0xb77a21._0x5b4e55)])return;function _0x56bc35(_0x2944f5,_0x1a72f4,_0x5df6db,_0xd86e3f){return _0x199ce4(_0x2944f5-0x393,_0x1a72f4-_0x9645ff._0x4b1007,_0x5df6db,_0xd86e3f-_0x9645ff._0x57673e);}function _0x4ceb9a(_0x32a2e2,_0x29d5d9,_0x24b953,_0x38a31c){return _0x26f978(_0x32a2e2-_0x26cbce._0x56b2dd,_0x29d5d9-_0x26cbce._0x817e9e,_0x29d5d9-_0x26cbce._0x531e5d,_0x24b953);}for(const [_0xe3d8c3,_0x3c4554]of this['entries']){if(_0x3c4554[_0x4ceb9a(0x674,0x560,0x56b,0x602)]!==_0x56bc35(0x4b3,_0xb77a21._0x4f8e33,_0xb77a21._0x59e63c,_0xb77a21._0x1da77d)){this[_0x4ceb9a(_0xb77a21._0x5a4c4b,0x572,_0xb77a21._0x3b803b,_0xb77a21._0x201178)][_0x56bc35(_0xb77a21._0x39606b,_0xb77a21._0x413e3c,_0xb77a21._0x4dacd0,_0xb77a21._0x2cd50d)](_0xe3d8c3);return;}}}};function createBashOutputTool(_0x226cac){const _0x490fd5={_0x5db000:0x494,_0x24f9f0:0x5ce,_0x86f5af:0x614,_0x112faa:0x511},_0x5704f4={_0x307296:0x464,_0x277c64:0x4ba,_0x16d1f6:0xe8,_0xdf5810:0x639,_0x156768:0x7d3,_0x5ab26d:0x63a,_0x5097ab:0x84b},_0x40b626={_0x472e14:0xb1,_0x526085:0x1a0},_0x33249a={_0x16dc63:0x70e,_0x5d518d:0x191},_0x47004f={_0x13d4b9:0x67f,_0x2a00f8:0xfd},_0x510657={_0x1ffab3:0x4cd,_0xdd4482:0x18e};function _0x367769(_0x540592,_0xf475f8,_0x40d8fc,_0x1a185c){return _0x199ce4(_0x1a185c-_0x510657._0x1ffab3,_0xf475f8-0x60,_0x540592,_0x1a185c-_0x510657._0xdd4482);}function _0x5eb96b(_0x414ab9,_0x26f9e9,_0x2e3192,_0x475dca){return _0x199ce4(_0x26f9e9-_0x47004f._0x13d4b9,_0x26f9e9-_0x47004f._0x2a00f8,_0x414ab9,_0x475dca-0x2d);}const {registry:_0x3eda55}=_0x226cac;return defineTool({'name':'BashOutput','description':_0x367769(_0x490fd5._0x5db000,0x61c,0x467,_0x490fd5._0x24f9f0),'inputSchema':{'type':_0x367769(_0x490fd5._0x86f5af,0x603,0x76c,0x639),'properties':{'shellId':{'type':'string'},'regex':{'type':_0x367769(0x6a1,_0x490fd5._0x112faa,0x50b,0x553)}},'required':[_0x367769(0x6a3,0x51f,0x58a,0x54c)]},async *'execute'(_0x86c87f){const _0x1de847=_0x3eda55['read'](_0x86c87f['shellId'],_0x86c87f[_0x3e419c(0x674,_0x5704f4._0x307296,0x553,_0x5704f4._0x277c64)]?{'regex':_0x86c87f['regex']}:void 0x0);function _0x9fff85(_0x5045ce,_0x9f4d76,_0x4efdeb,_0x5909db){return _0x5eb96b(_0x4efdeb,_0x9f4d76- -_0x33249a._0x16dc63,_0x4efdeb-_0x33249a._0x5d518d,_0x5909db-0x73);}function _0x3e419c(_0x4ce390,_0x5ad06c,_0x27e998,_0x302735){return _0x367769(_0x4ce390,_0x5ad06c-_0x40b626._0x472e14,_0x27e998-0xd0,_0x27e998-_0x40b626._0x526085);}return createToolOutput(_0x1de847['output'],{'shellId':_0x86c87f[_0x9fff85(0x119,-0x10,0xa9,_0x5704f4._0x16d1f6)],'status':_0x1de847[_0x3e419c(0x6b5,0x5ad,_0x5704f4._0xdf5810,0x6a3)],'exitCode':_0x1de847[_0x3e419c(_0x5704f4._0x156768,_0x5704f4._0x5ab26d,0x6d4,_0x5704f4._0x5097ab)],'signal':_0x1de847['signal'],'truncated':_0x1de847['truncated']});}});}import{spawn as _0x413e4d}from'child_process';import{statSync}from'fs';import*as _0x367e4c from'os';function _0x892d(){const _0x2eec86=['B2zM','DhLWzxnJCMLWDa','ChvIBgLZAgvKqxq','C2XPy2u','ANnJB25MAwCUANnVBG','BgLNAhq','A2LSBa','D29YA3nWywnLl3n5BwjVBa','q29TBwfUzcaN','y2XVC2u','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','B3jPz2LUywW','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','CMvWBgfJzq','C2nVCgvZ','AgLNAa','mtK4lJe4lJaUma','y2HHCMfJDgvY','CxvLC3rPB24','zgLYzwn0B3j5','Dgv4DerVy3vTzw50l2rPze9Wzw4','ChjLCgfYzunHBgXiAwvYyxjJAhK','r09pr0Xfx0ntrv9dwa','zgvMyxvSDa','yMLVBwuUANnVBMm','Dg9KB3ncEvnLC3nPB24','Aw52ywXPzf90B2rVCW','ls1NBg9IpseUz2L0lYO','y29UDgvUDa','mtG4otuWwgL2zfP3','Dgf2AwX5qxbPs2v5','AgvHzgvYCW','B3rOzxi','seLhsa','DMvYAwzPzxi','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','l3vZCI9IAw4VCMC','igzYB20G','zMLUywXnzxnZywDLvgv4Da','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','zxHPDcbJB2rLia','C2nYAxb0','DgvZDa','zgvMyxvSDfrPBwvVDxrnCW','yxjNDw1LBNroyw1LCW','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','yNL0zuXLBMD0Aa','iYmGu2TPBgW6ia','C2vYDMvYCW','Aw5ZDhj1y3rPB25Z','zgf0yq','DgfZAW','DxrMoa','y29UC3rYDwn0B3i','B25LCNjVCG','C2TPBgXZ','l2jPBI9IyxnO','l2jPBI9ZAa','zMLUza','lu5VuhjVzMLSzq','AwDUB3jL','C3rKzxjYrgvJB2rLCG','BgfIzwW','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','CMvMCMvZAf90B2TLBG','CMvJB3jK','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','B3bLCMf0Aw9U','y291BNrLCG','AwDUB3jLt3v0Chv0','y2fJAgvK','CMvXDwLYzwq','C2HLBgXqyxrO','Aw5JBhvKzxm','CMvHzen1CNnVCG','Ahr0Chm6','C2vHCMnOvhLWzq','CMvMzxjLBMnLCW','z2v0u3rHDhm','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','rMLSzsb3CML0DgvUigf0ia','v2vIu2vHCMnO','zgvUBY5QC29UyW','Bg9JyxrPB24','Bwf4rw50CMLLCW','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','vMLLD0zPBgu','BgfUz3vHz2u','zxHPDenVzgu','C2vZC2LVBG','tuLosu1bwf9bueLFs0vz','C3rHDgu','Ahr0Ca','C3rHCNq','DhnJB25MAwCUANnVBG','ywXS','AxngAwXL','AxnjBNrLz2vY','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','mtaUmc4WlJa','Dgv4DerVy3vTzw50l2rPzenSB3nL','Aw52ywXPzf90B2rVx2nVBNrLBNq','yxnJAwK','C291CMnL','Bwf4','y2HHCKnVzgvbDa','CMvZDwX0CW','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','Bwf4q29Uy3vYCMvUDa','y29TCgXLDgvK','C2H1DgrVD24','tg9HzfnRAwXS','C2HLBgXjza','B25szwrPCMvJDa','ANnVBG','ls1WCMvMAxG','CMLWz3jLCa','zMLUzfjLzMvYzw5Jzxm','C2nYDwjfBNzlzxLZ','C3rYAw5N','u2HLBgWGBM90igzVDw5KoIa','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','te9x','zxHPDgvK','z2nSAwq','A2LSBfjLCxvLC3rLza','qxnZAwDUvgfZAW','phn5C3rLBs1Yzw1PBMrLCJ4','uxvLC3rPB24G','BwLUAw1HEa','C3r5Bgu','C2v0vg9KB3m','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','B3v0Chv0','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','Aw1Hz2uVANbLzW','Bg9JywXLq29TCgfYzq','lMnTza','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','lMPZB25J','cMbGya','zw5HyMXLza','l29WDc9OB21LyNjLDY9IAw4VCMC','y2fWq2HHCNm','y3DK','CMCUzxHL','sw52ywXPzcbYzwDLEdOG','sw5MB3jTyxrPB24','DhLWzxnJCMLWDhjLywn0','zw5NAw5LCW','ls1YzwDLEha','zgvLChnLzwS','C2HHmJu2','ignVBxbSzxrLzc4','CgfJA2fNzs1SB2nRlMPZB24','C3rKB3v0','icHZDgf0Dxm6ia','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','CgLK','nJmWDMTmAe5c','ig1Z','B2C6DxbKyxrLzf90Aw1L','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','zgvUBY5QC29U','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','q29Tu3bLyW','t1bftLjpvvrfuL9bueLFs0vz','tM8GC3LTyM9SCYbMB3vUza','ywXSB3DLzerPCNm','oIbJB250zw50ihjLCxvPCMvK','Aw50zwDLCG','BwvZC2fNzq','BgLUzxm','D29YA3nWywnLu3LTyM9S','lMXVzW','CMfUzg9T','Dg9mB3DLCKnHC2u','vgvYBwLUyxrLigeGyMfJA2DYB3vUzcbWCM9JzxnZihn0yxj0zwqGD2L0AcbcyxnOkhj1BKLUqMfJA2DYB3vUzdP0CNvLksWGAwrLBNrPzMLLzcbIEsbPDhmGC2HLBgXjzc4','lMPWzW','BhnW','C3vKBW','ihDHCYbHyM9YDgvKlG','yxbPs2v5','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','zhvWBgLJyxrLx3rVzg9FAwrZ','vxbKyxrLihrOzsbZzxnZAw9UihrVCgLJihrVigeGy29Uy2LZzsaZltyGD29YzcbUB3vUihbOCMfZzsb0Agf0ignHChr1CMvZihrOzsbJDxjYzw50ihn1yMPLy3qUcGPdywXSihrOAxmGDg9VBcb3AgvUihrOzsbZzxnZAw9Uj3mGC3vIAMvJDcbIzwnVBwvZignSzwfYig9YihnOAwz0CYb0BYbZB21LDgHPBMCGy2XLyxjSEsbKAwzMzxjLBNqG4Ocuig5VDcbMB3iGBwLUB3iGDgfUz2vUDhmGB3iGy2XHCMLMEwLUzYbZDwiTCxvLC3rPB25ZlIbjzIbUB3rOAw5NigHHCYbTzwfUAw5NzNvSBhKGy2HHBMDLzcWGzg8GBM90ignHBgWGAxqUcGPhB29KihrVCgLJicHUB3vUihbOCMfZzsWGmY02ihDVCMrZktOkicaIrgvIDwCGvfmGz2vUzxjPy3mGzxjYB3iIcIaGiLjLzMfJDg9Yigf1DgGGBwLKzgXLD2fYzsikicaIqwrKifn0CMLWzsb3zwjOB29RigHHBMrSzxiIcGPcywqGDg9WAwmGkgz1BgWGC2vUDgvUy2uGB3iGDMfNDwuPoGOGicjuAguGDxnLCIb3yw50CYb0BYbKzwj1zYbHifr5Cgvty3jPChqGz2vUzxjPy3mGzxjYB3iGAw4GDgHLAxiGChjVAMvJDcikicaIy29KAw5NiG','zMjJBgLK','y2fSBeLK','BM9Kzv9TB2r1BgvZ','zxH0BMfTzq','D2HPy2GGCMC','y29TBwfUza','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','yxnZAwDU','C29Tzq','Ag9ZDg5HBwu','y29KzvzLCMLMAwvY','mti0mte0thHgv09v','BgLZDa','AgfUzgXL','AxngAw5PDgu','y2HPBgq','zg9JDw1LBNrtEw1IB2W','ue9tva','zgLNzxn0','vw5HDxrOB3jPEMvKrxjYB3i','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','EwvZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','ChjVDg90ExbL','y29Uy2f0','igj5DgvZicH0B3rHBdOG','BwvKAxvT','zgvLCgLUzNjH','mJqWlJaUmc4W','cGOTls0kcG','y2XLyxi','v0vcua','tM8GAg92zxiGAw5MB3jTyxrPB24','lNrTCc4','CM9VDa','ls1ZDgrPBW','mJDny3HJDwm','C3bHD25PBMC','AgvHzgvY','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','ChjVDg9JB2W','BwfUDwfS','z2L0AhvI','mty5lJi1nc4WlJa','Ag92zxi','yw5ZAti1nG','zgLYBMfTzq','C2v0','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','z2vUzxjHBa','y2HHBMDL','Aw1Hz2u','yxjNDw1LBNriAw50','uMvHzcbUzxCGB3v0Chv0igzYB20GysbIywnRz3jVDw5KihbYB2nLC3mGC3rHCNrLzcb3AxrOiejHC2GOCNvUsw5cywnRz3jVDw5KoNrYDwuPlIbszxr1CM5Zig91Dhb1DcbWCM9KDwnLzcbZAw5Jzsb0AguGBgfZDcbYzwfKoYbVChrPB25HBgX5igzPBhrLCIbSAw5LCYbIEsbHihjLz2v4lG','ywXSB3DLzfrVB2XZ','DgLTzvTKyxrLDgLTzv0','C3rHCNreAxi','ywXSu2v0DgXLza','tunqihnLCNzLCIa','zxjYB3jZ','mtKYlJe2oc4WlJa','zw5NAw5L','BNvTyMvY','uhvIBgLZAgvKoIa','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','zNjVBuvUDhjPzxm','r09pr0Xfx0ntrv9lrvK','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','ks4GvxnLiejHC2HpDxrWDxqGDg8GCMvHzcbPDhmGB3v0Chv0igfUzcblAwXSu2HLBgWGDg8GC3rVCcbPDc4','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','B3v0z29PBMDdywXSCW','te9dquXbufbeqvrb','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','AxneAxjLy3rVCNK','DMfSDwvZ','CNvUswq','Aw5JBhvKzq','Dhj1BMm','Dg9VBa','wefjx0fqsv9lrvK','C2vYDMvYswq','y291BNq','C3vIyxjYyxK','zgLZCg9Zzq','CNvUBMLUzW','Cgf0DgvYBG','zNjVBq','Aw5WDxq','rMv0y2GGDgLTzwqGB3v0','CMvXDwvZDa','lMnQCW','CNnZ','ugf0AcbUB3qGzM91BMq6ia','C3rKAw4','Bwv0yxrHz3m','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','C3rYAxbbBNnP','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','y29ZDa','C3jJl2fNzw50l2fNzw50lNrZ','xg5DkJ8','zgvMAw5PDgLVBG','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','BNvT','zxjYB3jnzxnZywDL','zMXHDe1HCa','tunqihrVB2WG','rM91BMqG','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','rMLSzu5LDW','y29UDgvUDhm','ywrK','thnW','Aw52ywXPzf90B2rVx3n0yxr1CW','CMvMAw5L','A2LUza','C2vUza','sfruuca','yxjNCW','A2LSBgvK','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','y2fSBfrVB2W','BgLZDfrVB2XZ','zgv0ywLS','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','mtKYlJaUmc4W','BgLUzvrLEhq','C2v0vg9WAwm','C3rKB3v0rgvJB2rLCG','Dg9Rzw4','yw50AhjVCgLJlw1LC3nHz2vZ','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','CgfYC2vjBNq','C2vZC2LVBKLK','qMfZAa','zMLUywXnzxnZywDL','BxrPBwu','BNbT','nJm2odeXwNnnEwHs','BM90Awz5','Dg9VBhm','DMfSDwu','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','DhvWBgu','odrNs0rquM8','B3b0Aw9UCW','CMvJzw5JEurHExm','rgv0ywLSoIa','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','C3bSAxq','lMPZB24','yMfZzty0','CMvTB3zLrxzLBNrmAxn0zw5LCG','B2XKvgv4Da','igj5DgvZ','mc4WlJa','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','A2v5','B2jQzwn0','B3bLBNjVDxrLCG','zg5Zl3bYB21PC2vZ','BhmGlwXH','C3rYAw5NAwz5','zMLSzq','y3jSzG','Dgf2AwX5','B25oB3rPzMLJyxrPB24','yxv0Ag9YAxPHDgLVBL9JB2rL','oIbPBNzHBgLKihn0yxr1CW','yMLYDgH0Aw1L','vw50AxrSzwq','ru5pru5u','yxv0Aa','AhLKCMf0zu1LDge','Dgv4Dc9ODg1S','yxbWzw5K','yxv0AfjLCxvPCMvK','ig1HDgnO','uKLgrG','BxvSDgLtzwXLy3q','yxjNDw1LBNrZ','Aw5WDxrty2HLBwe','o1TExg5DkJ8','u2TPBgWGjW','C3LTBgLUAW','ksbB','BwfYA2rVD24','DhjPBq','Bg9VA3vW','z29Vz2XLq3nLs2v5','pc9ZExn0zw0TCMvTAw5Kzxi+','nxjIzgr3Aa','tM8GyMfJA2DYB3vUzcbWCM9JzxnZihDPDgGGAwqG','zMLSzvzLCNnPB25Z','Cgf0DgvYBIbPCYbYzxf1AxjLza','zMvUy2vK','Dg9VBhmVy2fSBa','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','D3jPDgu','Dgv4DerVy3vTzw50l2HVDMvY','ywn0AxzL','qwDLBNqGCNvUia','lunVBw1HBMq','B3b0Aw9UywW','yNvMzMvYq2HHCNm','sw52B2TLq29TBwfUza','mtaXmJq3mhnwsvDpwG','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','ienHDxnLoIa','zgvSzxrL','ChvZAa','BgLUzq','ywjVCNrLza','C2vYDMvYtMfTzq','BM9Uzq','z29Vz2XLlwnZzq','y29UBMvJDa','z2v0','lM1QCW','uhjVz3jHBuzPBgvZkhG4nIK','DgHPBMTPBMC','DgHLBG','Aw5JBhvKzv9KB21HAw5Z','zMLYC3q','ywjVCNq','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','ywrKrxzLBNrmAxn0zw5LCG','z2L0qNjHBMnO','y2XPzw50','vxbKyxrLvg9WAwm','BgfUz18','Aw5JB21PBMDdywXSCW','u2L6ztOG','zxzPy3rjzK5LzwrLza','qsbJB25JAxnLigv4CgXHBMf0Aw9Uig9MihDOyxqGDgHPCYbJB21Tyw5KigrVzxmGyw5KihDOEsb5B3uGyxjLihj1BM5PBMCGAxqG4OcuihrOzsbNB2fSigL0igfKDMfUy2vZlIbtAg93BIb0BYb0AguGDxnLCIbIzwzVCMuGzxHLy3v0Aw9UlIbczsbZCgvJAwzPyYWGzs5NlIaNuNvUihrOzsbHDxrOihrLC3rZihrVihzLCMLMEsb0AguGDg9Rzw4TCMvMCMvZAcbMAxGNihjHDgHLCIb0AgfUicDYDw4GDgvZDhmNlG','ls1MAwXLCW','A2v5yMLUzgLUz3m','C3jJl2v4yw1WBgvZl2rLBw8UDhm','lM10CW','C3rKzxjY','tgLUzsa','ugf0AcbPCYbUB3qGysbMAwXLoIa','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','yNvUlMXVy2TI','Aw1Hz2uVz2LM','AxndB250zxH0','CgfJA2fNzxm','B3bLBMfP','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','ChjVCgvYDgLLCW','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','Dg90ywW','qxzHAwXHyMXLignVBw1HBMrZoG','C3rHDhvZvgv4Da','lMPZ','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','DgL0Bgu','qsbJB25JAxnLigv4CgXHBMf0Aw9Uig9MihDOyxqGDgHPCYbLzgL0ignOyw5NzxmGyw5KihDOEsdIGjqGDgHLigDVywWGAxqGywr2yw5JzxmUifnOB3DUihrVihrOzsb1C2vYigjLzM9Yzsb0AguGy2HHBMDLigLZigfWCgXPzwqUiejLihnWzwnPzMLJlcbLlMCUicDgAxGGDgHLihrVA2vUlxjLzNjLC2GGCMfJzsbPBIb0AguGyxv0AcbJBgLLBNqNihjHDgHLCIb0AgfUicDLzgL0igzPBguNlG','AhjLzG','z2v0t3DUuhjVCgvYDhLoyw1LCW','Dg9vChbLCKnHC2u','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','Cgf0Aa','Dg9VBc1VDxrWDxqTB2zMBg9Hza','ChjLzML4','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','vg9WAwmGC2v0ihrVici','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','DhjPBuvUza','zgvSzwDHDgvKlxj1BI0','lMjPBG','rxjYB3i','CMvNzxG','DhLWzq','Aw52ywXPzf90B2rVx2L0zw0','zgfYAW','zgvSAw1PDgvY','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','Dg9VBfjLC3vSDhm','mtCYlJe2lJaUma','EwfYBI5SB2nR','BwvTB3j5','vw5RBM93BIb0B29SoIa','CgfYzw50u2vZC2LVBKLK','C2vUzfjLCxvLC3q','BgfZDeLUzgv4t2y','zgLZy292zxj5','BgLUzuvUza','BxrPBwvnCW','DxnLCM5HBwu','C2HPzNq','Bg93','wKfjx0fqsv9lrvK','zgLHz25VC3rPy3m','ChjPB3jPDhK','rMLSzuvKAxq','zgLZywjSzwq','Dg9VBenHBgXjza','BM93','AMf2yxnJCMLWDa','CxvLCNK','yNjVA2vU','yxbWBgLJyxrPB24VANnVBG','DhnJ','yxr0CG','w1bFxL1BxhnCu10QpW','uMvMDxnPBMCGDg8GzMv0y2GGysbOB3n0ihrOyxqGCMvZB2X2zxmGDg8GysbUB24TChvIBgLJigfKzhjLC3m','tM8GBg9JyxrPB25ZigzVDw5K','w01duca','yxnRvxnLCG','Aw5FChjVz3jLC3m','z2v0vg9KB3m','CMvSyxrPDMu','nZe2nZi5mM5rDNrJrW','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','Aw1Hz2uVCg5N','u3rHCNrLzcbIywnRz3jVDw5KihbYB2nLC3mG','revfueLorLjbx0fqsv9lrvK','q291BgqGBM90ihjLC29SDMuGAg9ZDa','Dgv4Da','C3rHCNrZv2L0Aa','ywDLBNrjza','y29Kzq','r0Lusfvcx1rps0vo','Aw5PDgLHBgL6zq','ygbGANnVBGO','tM8GCMvZDwX0CYbMB3vUzc4','vg9KBYa','yxr4','zxHPDa','C2vUze5VDgLMAwnHDgLVBG','z29Vz2XLq3nLq3G','AgfZ','r2XVyG','Bw9KzwW','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','nde2nZa4otnyv1vnvfm','zg9TywLUCW','Dg9Rzw5tDg9YywDLs2v5','CgvUzgLUzW','CgfJA2fNzu5HBwu','B2XSyw1H','qvbjx0Tfwq','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','C2LNBMfS','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','z29uB0rLzMLUAxrPB24','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','DhjHBNnMB3jT','yxjNDw1LBNrZvgv4Da','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','CMvNAw9U','zNvSzMLSBgvK','u0Lhs0Lmta','r3jLCa','DxjP','ANnVBMm','Bw9Kzq','zxzLCNK','Bg9HzfnRAwXS','lI4U','yMLVBwu','BMfTzq','r0LgodLH','Aw5PDgLHBgL6zwq','C2L6zq','zMLSDgvY','DgfZA2TPBgW','zMLSzvbHDgG','BgLZDgvU','zw51Bq','vg9Vig1HBNKGCMvKAxjLy3rZ','D2HLCMuGCMC','C25PChbLDa','C2vYDMvY','Dg9KB3m','ntm5ndm3nKn6ywPuuW','zMfPBgvK','Agv4','qMvHCMvYia','DxrTx2nVBNrLBNq','CMvZB2X2zq','y29UzMLN','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','y29UBMvJDgvK','uefusa','yw5ZAte2','igj5DgvZks4','C2vHCMnOugfYyw1Z','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','C2H1DgrVD25tDgfYDgvK','B25Jzq','Aw5qCM9NCMvZCW','B2zMC2v0','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','D2fPDezVCKrPywDUB3n0AwnZ','tM8GzgLHz25VC3rPy3m','DgLTzw91De1Z','y29TBwfUzhm','DxjS','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','mti3lJaUmc4W','l2jPBI9YzW','lNbUzW','AxnbyNnVBhv0zq','BgfUzW','vMLLD2vKigLTywDLigzPBgu6ia','yM94zwq','Dg9ju09tDhjPBMC','D2LUmZi','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','Cg9W','yxjYyxK','CMvHC29U','icHWAwqG','yMvHCMvY','zgvMyxvSDen3za','u0HfteW','CM91BMq','ls1JB2X1Bw4','t1bftKfjx0fqsv9lrvK','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','yw5ZD2vYCW','lw5i','lNDLyNa','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','ls1MB2XSB3C','B3bLBKzPBgvZ','BM9Zy3jPChq','Aw52ywXPzf90B3bPyW','CMfUz2u','yNvUlMXVy2S','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','y29UBMvJDgLVBG','AwzYyw1L','CMvZDwX0','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','BwLU','Dg9WAwm','uhjVDMLKzxiGBMfTzsbJyw5UB3qGyMuGzw1WDhK','lu5Vtg9NBW','v2LUr2v0','y2f0y2G','oIbPBNzHBgLKihbYAw9YAxr5','DhvYBMrVD24','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','uhjVz3jHBuzPBgvZ','qMfZzsbKAxjLy3rVCNK6ia','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','C3jJl3nOyxjLzc90ExbLCY50CW','rMLSzvjLywq','yNvMzMvY','Dg90ywXeCM9WCgvK','C2v2zxjPDhK','y2fSBgjHy2TvCMW','CgfJA2fNzs5QC29U','CgfZC3rOCM91z2G','CMfUAW','y21KlMv4zq','z3jVAW','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','r0Lusfvcx0fdq0vtu19ut0TftG','yxv0BW','lcbpChrPB24G','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','s2LSBfnOzwXS','zw5K','DhjHBNnMB3jTCW','CgXHAw50zxH0','CMvTB3zL','z29uB0LTCgXLBwvUDgf0Aw9U','C2fMzq','AM9PBG','l3vZCI9IAw4VyMfZAa','C3rVCMfNzurPCG','A2v5CW','Aw1Hz2uVD2vICa','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','Dg9Rzw5Z','BgLTAxq','CMvHza','BMf2','ygbG','y2fWywjPBgL0AwvZ','DhnZzxj2zxiUANm','CNvUsw5cywnRz3jVDw5K','o1TE','z2XVyG','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlIbtzxqGCNvUsw5cywnRz3jVDw5KoNrYDwuGzM9YigXVBMCTCNvUBMLUzYbJB21Tyw5KCYaOC2vYDMvYCYWGD2f0y2HLCNmPoIbPDcbYzxr1CM5ZigeGC2HLBgXjzcbPBw1LzgLHDgvSEsdIGjqGCMvHzcbVDxrWDxqGD2L0AcbcyxnOt3v0Chv0igfUzcbZDg9WigL0ihDPDgGGs2LSBfnOzwXSlIbetYbot1qGvvnfiejbu0GGve9ptcbMB3iGCMvHzcbMAwXLihvZzsbgAwXLuMvHzc4Gww91ie1vu1qGChjVDMLKzsbHignVBMnPC2uGygrLC2nYAxb0Aw9UycbLEhbSywLUAw5NihDOyxqGDgHLignVBw1HBMqGzg9LCYbHBMqGD2H5ihLVDsbHCMuGCNvUBMLUzYbPDcaODgHLigDVywWGAxqGywr2yw5JzxmPiokaLcbPDcbPCYbZAg93BIb0BYb0AguGDxnLCIbMB3iGDhjHBNnWyxjLBMn5igjLzM9YzsbLEgvJDxrPB24UifrOzsbKzwzHDwX0ihrPBwvVDxqGAxmG','BgvUz3rO','zgvZy3jPChrPB24','CxvLC3rPB25Z','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','y2XPzw50sw5MB3jTyxrPB24','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','C29YDa','yM9VBgvHBG','C3rHDhvZ','Aw52ywXPzf90B2rVx3bYAw9YAxr5','BwnFzwLK','CgfYC2u','wZ0+nY04kcLD','B2f1DgG','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','C2vSzwn0Aw9UuMfUz2u','ignOyxjZigrYB3bWzwrDcG','CxvLC3rPB24T','zgf0zvjLC3rYAwn0','qxnRvxnLCLrVB2W','B3bLBG','Ec1HCgKTA2v5','Dg91y2HgAwXL','igj5DgvZicHVCMLNAw5HBdOG','Aw5PDgLHBgL6yxrPB24','AxrLBxm','zw50CMLLCW','y2XPzw50CW','AgfZq2XPzw50CW','Dhj1zwnVBg9Y','yxnPzgu','BgLUzvn0yxj0','lMDPzG','Dw5PB24','CgXHDgzVCM0','Dg9tDhjPBMC','yMCT','xsb0CMfUC3bVCNqGzxjYB3i6','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','ChjVy2vZCW','lM51DMLU','BwfW','zMXVB3i','BNv2Aw4','AxnbCNjHEq','Cg5WBs1SB2nRlNLHBwW','Bwf0y2HLCW','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','B3bLBMfPlxjLC3bVBNnLCW','y29UDgv4Da','yMfJA2DYB3vUzfjLz2LZDhj5','C3bHD24','y2XPzw50twv0ywrHDgfvCMW','BgLI','Ag9ZDa','y3jLyxrLzef0','ls1OAwrKzw4','zw52','ks4Gs2LSBcbVBMuGD2L0AcblAwXSu2HLBgWGyMvMB3jLihn0yxj0Aw5NigfUB3rOzxiU','zxjYB3i','Bwf4uMvKAxjLy3rZ','Bwv0yq','y2XLyw51Ca','BgL0zxjHBa','ChjVy2vZC0v4AxrLza','t0zg','B3jPz2LUvg9VBenHBgXjza','Aw1Hz2vZ','CgLWzq','qxv0Ag9YAxPHDgLVBG','zgLZy292zxj5u3rHDgu','yMfZzw5HBwu','Dg90ywXqCM9KDwnLza','lMPWzwC'];_0x892d=function(){return _0x2eec86;};return _0x892d();}import*as _0xdeea2a from'path';import{StringDecoder as _0x4856e2}from'string_decoder';import{stat}from'fs/promises';import*as _0xf0db92 from'path';function isPathInside(_0x154eb4,_0x4b8689){const _0x3168bb={_0x2b8377:0x1d1,_0xe02dc2:0xda,_0x2c4ffc:0x71,_0x2787be:0x40,_0x5e1367:0x3d,_0x3ed8b3:0x87},_0x4ec0dc={_0x2c9d3d:0x50,_0x248a4d:0x93},_0x1854a6={_0x1fcfbd:0x164},_0xa787cf=_0xf0db92[_0x41bc2b(_0x3168bb._0x2b8377,_0x3168bb._0xe02dc2,_0x3168bb._0x2c4ffc,-_0x3168bb._0x2787be)](_0x154eb4),_0x435950=_0xf0db92['relative'](_0xa787cf,_0x4b8689);function _0x41bc2b(_0x363268,_0x14b6f8,_0x57f7cc,_0x5d81cc){return _0x26f978(_0x363268-0x4a,_0x14b6f8-0x23,_0x57f7cc- -_0x1854a6._0x1fcfbd,_0x14b6f8);}function _0x58e3b9(_0xf5d31e,_0x4eeccc,_0x2ae458,_0x4f0274){return _0x199ce4(_0x4f0274-0x11,_0x4eeccc-_0x4ec0dc._0x2c9d3d,_0x4eeccc,_0x4f0274-_0x4ec0dc._0x248a4d);}return _0x435950===''||!_0x435950['startsWith']('..')&&!_0xf0db92[_0x58e3b9(0x98,-_0x3168bb._0x5e1367,-_0x3168bb._0x3ed8b3,-0x84)](_0x435950);}function resolveWorkspacePath(_0x485d18,_0x28595c){return resolveAllowedPath(_0x485d18,[],_0x28595c);}function resolveAllowedPath(_0x117288,_0x4a1bd6,_0x198b5e){const _0x322954={_0x4c2752:0x177,_0x865a44:0x1ed,_0xb263f6:0x100,_0x4df2c6:0x67,_0x2422f5:0xf5,_0x14c9d6:0x7c,_0x55a8ad:0x11},_0x562302={_0x5a125e:0x190},_0x1e36bb={_0x3abfb0:0x1ad},_0x412e4f=_0xf0db92[_0x523f86(_0x322954._0x4c2752,_0x322954._0x865a44,_0x322954._0xb263f6,_0x322954._0x4df2c6)](_0x117288),_0x5c3004=_0xf0db92['resolve'](_0x412e4f,_0x198b5e),_0x1f569a=[_0x412e4f,..._0x4a1bd6[_0x16f035(-0xc1,0x0,-0x80,-_0x322954._0x2422f5)](_0x2f2d3a=>_0xf0db92[_0x16f035(-0x188,-0x25c,-0x292,-0x18f)](_0x2f2d3a))];if(_0x1f569a[_0x16f035(-0xa9,-0x170,_0x322954._0x14c9d6,-_0x322954._0x55a8ad)](_0x16f38d=>isPathInside(_0x16f38d,_0x5c3004)))return _0x5c3004;function _0x523f86(_0x107cb3,_0xacb37a,_0x13941e,_0x384e46){return _0x199ce4(_0x13941e-_0x1e36bb._0x3abfb0,_0xacb37a-0x35,_0x384e46,_0x384e46-0xbe);}function _0x16f035(_0xba602e,_0x338870,_0x3321b9,_0x45f9d8){return _0x26f978(_0xba602e-0x1cb,_0x338870-_0x562302._0x5a125e,_0x45f9d8- -0x364,_0x338870);}throw new ToolExecutionError('Path\x20is\x20outside\x20allowed\x20directories:\x20'+_0x198b5e,{'path':_0x198b5e,'rootDir':_0x412e4f,'allowedDirs':_0x1f569a});}async function assertWorkspaceFile(_0xeb2c60){const _0x17792e={_0x4c42d9:0x489},_0x27e1ff={_0xf0c679:0x5c2,_0x40f70e:0x13},_0x462f3f=await stat(_0xeb2c60);function _0x2fb15c(_0x5c86dc,_0x21d0db,_0x1b79ac,_0x9c0235){return _0x199ce4(_0x1b79ac-_0x27e1ff._0xf0c679,_0x21d0db-0xdd,_0x21d0db,_0x9c0235-_0x27e1ff._0x40f70e);}if(!_0x462f3f['isFile']())throw new ToolExecutionError(_0x2fb15c(0x4e1,0x450,_0x17792e._0x4c42d9,0x466)+_0xeb2c60,{'path':_0xeb2c60});}function isProbablyBinary(_0xd811f5){return _0xd811f5['includes'](0x0);}var DEFAULT_TIMEOUT_MS=0x7530,DEFAULT_DESCRIPTION=_0x26f978(0x202,0x2ef,0x245,0x1ab)+DEFAULT_TIMEOUT_MS+'ms';function buildChildEnv(_0x55fd86,_0x2e259c){const _0x25ce03={_0x32edbf:0x221,_0x45b92e:0x249,_0xd3176:0xcf,_0x3b0bee:0xc,_0x2cdb5f:0x12f,_0x119ce4:0x434,_0x4d7bfe:0x44a,_0x30880d:0xc9,_0x2e04e0:0x1f5,_0x25fee6:0x42f},_0x8839bc={_0x20096f:0x16d,_0x204949:0xd1};function _0x545bd3(_0x35ecc5,_0x481583,_0x4def70,_0x566295){return _0x26f978(_0x35ecc5-0x9b,_0x481583-0x9d,_0x4def70- -0x117,_0x566295);}const _0x1695ca={...process[_0x545bd3(_0x25ce03._0x32edbf,_0x25ce03._0x45b92e,0x168,_0x25ce03._0xd3176)],..._0x55fd86??{}};function _0x558b5d(_0x51eecf,_0x4a52b3,_0x43543f,_0x1ddfb1){return _0x199ce4(_0x1ddfb1-0x370,_0x4a52b3-_0x8839bc._0x20096f,_0x4a52b3,_0x1ddfb1-_0x8839bc._0x204949);}if(_0x2e259c[_0x545bd3(0x24e,_0x25ce03._0x3b0bee,_0x25ce03._0x2cdb5f,0x250)]===0x0)return _0x1695ca;if(_0x367e4c['platform']()===_0x558b5d(_0x25ce03._0x119ce4,_0x25ce03._0x4d7bfe,0x42e,0x2e0)){const _0x2fb99d=new Set(_0x2e259c[_0x545bd3(0x2b8,_0x25ce03._0x30880d,0x158,0x1ad)](_0x4cd345=>_0x4cd345[_0x545bd3(0x375,0x1c1,0x22a,0x21d)]()));for(const _0x50d85e of Object[_0x558b5d(0x36b,0x3c9,_0x25ce03._0x2e04e0,0x325)](_0x1695ca)){if(_0x2fb99d['has'](_0x50d85e[_0x558b5d(0x314,0x3db,0x418,_0x25ce03._0x25fee6)]()))delete _0x1695ca[_0x50d85e];}}else{for(const _0x2ff139 of _0x2e259c)delete _0x1695ca[_0x2ff139];}return _0x1695ca;}function mapSpawnError(_0x5fe8a2,_0x403d96){const _0x3bd960={_0x5a4ce9:0x18b,_0x5932da:0x104,_0x47b7e6:0x784,_0x443b2a:0x3e5,_0x20e9b4:0x242,_0x45929f:0x27c,_0xd71a64:0x65c,_0x2ca1d0:0x899},_0x5b75d1={_0x277c71:0xa0,_0x91e317:0x95},_0x551b3b={_0x5c9885:0x1f4,_0x250aa1:0x171};function _0x4aed0c(_0x1d7f52,_0x5c8da2,_0x2fc43e,_0x1966d7){return _0x199ce4(_0x2fc43e-0x6b5,_0x5c8da2-_0x551b3b._0x5c9885,_0x1966d7,_0x1966d7-_0x551b3b._0x250aa1);}if(isErrnoException(_0x5fe8a2)&&_0x5fe8a2[_0x22bac1(_0x3bd960._0x5a4ce9,_0x3bd960._0x5932da,0x1b7,0xbb)]===_0x4aed0c(0x8c2,0x942,0x82e,_0x3bd960._0x47b7e6))return new ToolExecutionError(_0x22bac1(0x3af,0x273,0x31b,_0x3bd960._0x443b2a)+_0x403d96[_0x22bac1(0x344,_0x3bd960._0x20e9b4,0x24c,_0x3bd960._0x45929f)],_0x403d96);function _0x22bac1(_0x4645a9,_0x20320a,_0x5a8dae,_0x89be97){return _0x26f978(_0x4645a9-_0x5b75d1._0x277c71,_0x20320a-_0x5b75d1._0x91e317,_0x20320a- -0x96,_0x4645a9);}return new ToolExecutionError(_0x5fe8a2 instanceof Error?_0x5fe8a2[_0x4aed0c(_0x3bd960._0xd71a64,0x732,0x76f,_0x3bd960._0x2ca1d0)]:String(_0x5fe8a2),_0x403d96);}function shellExists(_0x545b58){const _0xebf243={_0x291b45:0x28,_0x2b192d:0x92,_0x4cce66:0xd,_0x129fa5:0xf2,_0x4edc73:0xdb,_0x273459:0x4a},_0x347e01={_0x3f4fa1:0x12b,_0x50713e:0x18},_0x3d2769={_0x102557:0x1b7};function _0x3a5930(_0x31cb09,_0x1b71e9,_0x28eecf,_0x3f61b2){return _0x199ce4(_0x31cb09-_0x3d2769._0x102557,_0x1b71e9-0x56,_0x28eecf,_0x3f61b2-0x145);}function _0x229a12(_0x25d909,_0x32f979,_0x2b0a44,_0x43f3c3){return _0x26f978(_0x25d909-_0x347e01._0x3f4fa1,_0x32f979-_0x347e01._0x50713e,_0x43f3c3- -0x2e4,_0x32f979);}try{const _0x4d2b97=statSync(_0x545b58);return _0x4d2b97[_0x229a12(0x1a,_0xebf243._0x291b45,_0xebf243._0x2b192d,_0xebf243._0x4cce66)]()&&(_0x4d2b97[_0x3a5930(_0xebf243._0x129fa5,0x235,_0xebf243._0x4edc73,-_0xebf243._0x273459)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x946fc4){const _0x7e6cca={_0x54a520:0x330,_0x30d530:0x275,_0x11cd5d:0x28c,_0x2c1934:0x6d8,_0xab2f84:0x4c9,_0x2ec787:0x62e,_0x2981f5:0x2ee,_0x30775f:0x344,_0x36539c:0x229,_0x544f24:0x26e,_0x30e0b5:0x46a,_0x41a1e7:0x64e,_0x3be87e:0x5d4,_0x4a2cd8:0x49c,_0x404402:0x4f3,_0x527858:0x2ac},_0x49559c={_0x1cb58f:0xc8};if(_0x946fc4)return _0x946fc4;function _0x1c74e4(_0x5c741d,_0x31ef4b,_0x50af67,_0x3d3453){return _0x26f978(_0x5c741d-0x15e,_0x31ef4b-0x98,_0x3d3453-0x2f8,_0x31ef4b);}if(_0x367e4c[_0x19d2b8(_0x7e6cca._0x54a520,_0x7e6cca._0x30d530,0x1d0,_0x7e6cca._0x11cd5d)]()==='win32')return process['env'][_0x1c74e4(_0x7e6cca._0x2c1934,_0x7e6cca._0xab2f84,0x500,_0x7e6cca._0x2ec787)]||_0x1c74e4(0x426,0x479,0x5db,0x51e);const _0x10676c=[_0x19d2b8(0x390,_0x7e6cca._0x2981f5,0x4f6,0x3e8),_0x19d2b8(0x391,_0x7e6cca._0x30775f,0x355,0x389),_0x19d2b8(0x2fd,0x2aa,_0x7e6cca._0x36539c,_0x7e6cca._0x544f24),'/usr/bin/sh'];for(const _0x4c4f42 of _0x10676c){if(shellExists(_0x4c4f42))return _0x4c4f42;}function _0x19d2b8(_0xa24354,_0x42b9a6,_0x5e7406,_0x2ff11b){return _0x26f978(_0xa24354-0x4b,_0x42b9a6-0x1ea,_0xa24354-_0x49559c._0x1cb58f,_0x5e7406);}const _0xc79333=process[_0x19d2b8(0x347,0x44c,0x210,_0x7e6cca._0x30e0b5)][_0x1c74e4(_0x7e6cca._0x41a1e7,_0x7e6cca._0x3be87e,_0x7e6cca._0x4a2cd8,_0x7e6cca._0x404402)];if(_0xc79333&&shellExists(_0xc79333))return _0xc79333;return _0x19d2b8(0x390,0x3d7,_0x7e6cca._0x527858,0x408);}function buildShellArgs(_0x4f291f,_0x4a44d9){const _0x16330a={_0x4f9d99:0x2a8,_0x55757d:0x352,_0x1185d2:0x2c0,_0x3ffcc4:0x2e4,_0x47ddfc:0x280,_0x45f5c1:0x2c9,_0x291430:0x171,_0x23e3a6:0x91,_0x4b0b6f:0xa4,_0x37b90e:0x204,_0x41577b:0x1fa,_0x2baa2e:0x162,_0x4965e8:0xe1},_0x1b5a9a={_0x18fa08:0x43,_0x3397bc:0x3f},_0x3ff7f6={_0x1e41fe:0x35};function _0x315ef4(_0x1c9926,_0x2d98d1,_0x52a70f,_0x694ec3){return _0x199ce4(_0x2d98d1- -_0x3ff7f6._0x1e41fe,_0x2d98d1-0xf9,_0x52a70f,_0x694ec3-0x14f);}function _0x13f639(_0x5d586b,_0x5bb934,_0x21997c,_0x182d38){return _0x199ce4(_0x5d586b-0x2c2,_0x5bb934-_0x1b5a9a._0x18fa08,_0x5bb934,_0x182d38-_0x1b5a9a._0x3397bc);}if(_0x367e4c[_0x13f639(_0x16330a._0x4f9d99,_0x16330a._0x55757d,_0x16330a._0x1185d2,_0x16330a._0x3ffcc4)]()===_0x13f639(0x232,_0x16330a._0x47ddfc,_0x16330a._0x45f5c1,_0x16330a._0x291430)){const _0xa34bda=/cmd(\.exe)?$/i['test'](_0x4a44d9);return _0xa34bda?['/d','/s','/c',_0x4f291f]:[_0x315ef4(-_0x16330a._0x23e3a6,-_0x16330a._0x4b0b6f,-_0x16330a._0x37b90e,-_0x16330a._0x41577b),_0x315ef4(-0x52,0x14,-0x28,-0xdd),_0x13f639(_0x16330a._0x2baa2e,0x1e6,0x1a1,_0x16330a._0x4965e8),_0x4f291f];}return['-c',_0x4f291f];}function resolveWorkingDirectory(_0x20c096,_0x2ae373,_0x116b0c){const _0x161fa1={_0x179fd6:0x1e4,_0x17cd50:0x1ae,_0x333483:0xda,_0x5788a4:0x45},_0x4e5fff={_0x2a6a28:0x1},_0x1f5811={_0x42ac86:0x197,_0x2d773e:0x385};function _0xa227aa(_0x36c0c6,_0x4924ed,_0x2e024d,_0x1bb0bb){return _0x26f978(_0x36c0c6-0x1b2,_0x4924ed-_0x1f5811._0x42ac86,_0x1bb0bb- -_0x1f5811._0x2d773e,_0x36c0c6);}const _0x38868a=resolveAllowedPath(_0x2ae373,_0x116b0c,_0x20c096??'.');function _0x364571(_0x36e59b,_0x1e1ae7,_0x5dcd8f,_0x5c968f){return _0x199ce4(_0x5c968f-_0x4e5fff._0x2a6a28,_0x1e1ae7-0x2e,_0x36e59b,_0x5c968f-0x168);}try{const _0x10129a=statSync(_0x38868a);if(!_0x10129a['isDirectory']())throw new ToolExecutionError(_0xa227aa(-_0x161fa1._0x179fd6,-0x21a,-0x122,-_0x161fa1._0x17cd50)+_0x38868a,{'cwd':_0x38868a});return _0x38868a;}catch(_0x583881){if(_0x583881 instanceof ToolExecutionError)throw _0x583881;throw new ToolExecutionError(_0xa227aa(-_0x161fa1._0x333483,0x128,0x5,_0x161fa1._0x5788a4)+_0x38868a,{'cwd':_0x38868a});}}function appendChunk(_0x5f2fcc,_0x234b81,_0x910600,_0x364efe,_0x16633f){const _0x5e6121={_0x132ae1:0x16f,_0x407deb:0x1d2,_0xe35b4e:0x94,_0x55a992:0x1f4,_0x316684:0x160,_0x3686e2:0x10c},_0xdc5546={_0x2cd9f8:0x3c},_0x4091eb={_0x14fd1b:0x192,_0x11047b:0x106};function _0x246463(_0x4722ae,_0x59d2a0,_0x4e4284,_0x30b002){return _0x26f978(_0x4722ae-_0x4091eb._0x14fd1b,_0x59d2a0-_0x4091eb._0x11047b,_0x4722ae-0x9a,_0x59d2a0);}const _0x20a844=_0x364efe?stripAnsiAndControls(_0x910600):_0x910600;function _0x4a75c3(_0x4002ad,_0x3bb259,_0x44c39d,_0x46e890){return _0x199ce4(_0x4002ad- -0x17,_0x3bb259-0x1af,_0x3bb259,_0x46e890-_0xdc5546._0x2cd9f8);}if(_0x20a844['length']===0x0)return;_0x5f2fcc[_0x4a75c3(-_0x5e6121._0x132ae1,-_0x5e6121._0x407deb,-_0x5e6121._0xe35b4e,-_0x5e6121._0x55a992)](_0x20a844),_0x234b81[_0x246463(0x1c4,_0x5e6121._0x316684,0x1bd,_0x5e6121._0x3686e2)](_0x20a844),_0x16633f();}function createBashTool(_0x41ae4c={}){const _0x1f740e={_0x28481c:0x404,_0x679c9d:0x4fd,_0x37b66f:0x6be,_0x55f1bf:0x6e3,_0x1a8752:0x59d,_0x6eff99:0x5b6,_0x906d1d:0x676,_0x2f6e32:0x452,_0x4fef22:0x574,_0x2f4117:0x854,_0x28006e:0x782,_0x303fe8:0x6b2,_0x1f96ca:0x597,_0x455631:0x441,_0x243435:0x407,_0x2e021c:0x47b,_0x82e5ed:0x5f4,_0xa59db2:0x6f3,_0x1f993f:0x598,_0x15d308:0x68b,_0x280f2f:0x54e,_0x217b9c:0x5e0,_0x522dd7:0x59c,_0x2c1b47:0x5f4,_0x492a1b:0x4e7},_0x63a7cd={_0xb2252c:0x112,_0xe70e68:0x768,_0x4f683a:0x616,_0x142a7e:0x497,_0x2536f7:0x65b,_0x772c98:0x58,_0x4f7274:0x8c,_0x17a3fd:0x533,_0x54e884:0x53b,_0x141135:0x582,_0x5d2821:0x586,_0x3e44a3:0x835,_0x4ff4b5:0x7b5,_0x58a358:0x6f3,_0x1c663c:0x684,_0x145337:0x5cb,_0x343bfe:0x62b,_0x2db3d8:0x7c4,_0x34e119:0x530,_0xac6e04:0x58,_0x50bb87:0x44,_0xf4252:0x73,_0x4596e9:0x90,_0x6579bf:0xbd,_0x337dd6:0x5a,_0x218d21:0x18,_0x14a936:0x184,_0x3c8df1:0x148,_0x4f6102:0x7af,_0x3519e7:0x651,_0x2a7935:0x6fc,_0x11beb1:0x615,_0x3fcc60:0x7e4,_0x4f114f:0x6e,_0x5a8ce9:0xaf,_0x27f776:0x1d3,_0x1f0a2a:0x7f,_0x10a835:0x6f,_0x2186f0:0x177,_0x3cc32a:0x6b1,_0x24e41e:0x722,_0x3ff2b5:0x86c,_0x307c20:0x9e,_0x5c2c45:0x119,_0x57bf31:0x1e5,_0x3478dd:0x16a,_0x4d9dc8:0x74c,_0x37073b:0x630,_0x46577b:0x759,_0x43b40a:0x9,_0x2e613d:0xea,_0x54b6ef:0x71a,_0x6261aa:0x6d3,_0x20ee4c:0x100,_0x44b7f0:0x37,_0x453334:0x9f,_0x3ce7bd:0x44,_0x3d546e:0xb6,_0x252981:0xd8,_0x327023:0x9,_0x5b7567:0xb7,_0x66051f:0x21a,_0xa8631:0x5,_0x275ac7:0x7f4,_0x53bfba:0x701,_0x885d74:0x6d6,_0x116917:0xe4,_0x53f4d7:0x2c,_0x2353e1:0x95,_0x2db4f2:0xbe,_0x18a156:0x189,_0x5dcd00:0xba,_0x2b941c:0xca,_0x217452:0x79,_0x4f6766:0x6e,_0x39beb4:0x783,_0x1e4508:0x652,_0x316f38:0x6e4,_0x5a83ef:0x696,_0x58eec5:0x685,_0x3f821b:0x67b,_0x23e728:0x4ad,_0x530bb2:0x55b,_0x19937c:0x519,_0x24b980:0x5ee,_0x36e8fb:0x5a7,_0x1991e0:0x694,_0x4d1b75:0x6dd,_0x471a50:0x6b4,_0x5c09f5:0x618,_0x2a5911:0x777,_0x21c99c:0x637,_0x3a9537:0x68a,_0x5e3677:0x48f,_0x4e6d62:0x5eb,_0x43e2f2:0x606,_0x360245:0x7d8,_0x1b573a:0x67d,_0x535b30:0x74b,_0x535b5e:0xee,_0x403cf9:0x148,_0x5bc30e:0x13b,_0x3ddbfe:0x15e,_0x388496:0x514,_0x20e03e:0x60c,_0x4d8c83:0x491,_0x32d08d:0x54c,_0x362d41:0x6ad,_0x2088b4:0x6fe,_0x152c65:0x773,_0x360a6a:0x58,_0x5d4f8d:0x701,_0x339bed:0x756,_0xb4b0d2:0x6a9,_0xa4ebfb:0x797,_0x444eeb:0x8bc},_0x44f24f={_0x429346:0x388,_0x17fd2c:0x472},_0x142684={_0x23f587:0x468},_0x218aac={_0x281e17:0x195,_0x5c12f1:0x171,_0x397048:0x1f},_0x558576={_0x2af3f6:0x588,_0x52ad55:0xf3},_0x2d5a27={_0x78cd6d:0x512,_0x5503e4:0x15c},_0x194b48={_0x3bc0f8:0x3ad},_0x4a80f8=_0xdeea2a['resolve'](_0x41ae4c[_0xeb9440(0x48a,_0x1f740e._0x28481c,0x3f8,_0x1f740e._0x679c9d)]??process[_0xeb9440(0x5b1,_0x1f740e._0x37b66f,_0x1f740e._0x55f1bf,_0x1f740e._0x1a8752)]()),_0x4f9aa9=_0x41ae4c['allowedDirs']??[];function _0x3c6e5e(_0x5c71fb,_0x39a678,_0x46de87,_0x301ff4){return _0x26f978(_0x5c71fb-0x14d,_0x39a678-0xbd,_0x39a678-_0x194b48._0x3bc0f8,_0x5c71fb);}const _0x36fc11=_0x41ae4c[_0xeb9440(0x54b,0x500,0x4f7,_0x1f740e._0x6eff99)]??DEFAULT_TIMEOUT_MS,_0x8c707f=_0x41ae4c[_0x3c6e5e(0x862,0x75b,0x784,_0x1f740e._0x906d1d)]??!![],_0x5c7f9e=_0x41ae4c[_0xeb9440(_0x1f740e._0x2f6e32,0x449,_0x1f740e._0x4fef22,0x427)]??_0x3c6e5e(_0x1f740e._0x2f4117,_0x1f740e._0x28006e,0x63d,_0x1f740e._0x303fe8),_0x446cc5=_0x41ae4c[_0xeb9440(_0x1f740e._0x1f96ca,0x449,0x6b8,_0x1f740e._0x455631)]??[];function _0xeb9440(_0x272afd,_0x593779,_0x49bd47,_0x2c50bd){return _0x199ce4(_0x272afd-_0x2d5a27._0x78cd6d,_0x593779-0x28,_0x593779,_0x2c50bd-_0x2d5a27._0x5503e4);}const _0x14d27b=_0x41ae4c[_0xeb9440(0x508,0x5c8,_0x1f740e._0x243435,0x541)];return defineTool({'name':_0x5c7f9e,'description':_0x41ae4c[_0x3c6e5e(_0x1f740e._0x2e021c,_0x1f740e._0x82e5ed,_0x1f740e._0xa59db2,0x75b)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':'object','properties':{'command':{'type':_0xeb9440(_0x1f740e._0x1f993f,0x5c0,_0x1f740e._0x15d308,0x490)},'description':{'type':'string','description':_0x3c6e5e(_0x1f740e._0x280f2f,0x4ef,0x43f,0x3ba)},'cwd':{'type':'string'},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':'boolean'},'runInBackground':{'type':'boolean'}},'required':[_0xeb9440(_0x1f740e._0x217b9c,0x5b9,0x653,0x5b5),_0x3c6e5e(_0x1f740e._0x522dd7,_0x1f740e._0x2c1b47,0x73d,_0x1f740e._0x492a1b)]},async *'execute'(_0x1d433c,_0x2f87bb){const _0x1724e1={_0x5dbad5:0x18f,_0x1d17d1:0xce,_0x4423ff:0x231,_0x3d678a:0x12f,_0x3368a7:0x23d,_0x2c48f3:0x1d7,_0x37d3a0:0x159,_0x13cfc2:0x21b},_0x2194b5={_0x2e6ad3:0x3c6},_0x269091={_0xefdafa:0x1dc,_0x53590d:0x84,_0x823f:0x42,_0x2e33f2:0x13a,_0x31a17d:0x421,_0x2292f2:0x48a,_0x3fa796:0x387},_0xc863fa={_0x133220:0x8b,_0x32cddf:0x2d},_0x21d30f={_0x4ea2e4:0x6d,_0x381893:0x5eb},_0x2337b4=_0x1d433c[_0x2f2fef(-0x163,-_0x63a7cd._0xb2252c,-0x29,-0x102)]??_0x36fc11;if(!Number[_0x5078e5(_0x63a7cd._0xe70e68,_0x63a7cd._0x4f683a,0x72b,0x812)](_0x2337b4)||_0x2337b4<0x1)throw new ToolExecutionError(_0x5078e5(_0x63a7cd._0x142a7e,0x4e0,0x5b4,_0x63a7cd._0x2536f7),{'command':_0x1d433c[_0x2f2fef(0x154,_0x63a7cd._0x772c98,_0x63a7cd._0x4f7274,0x18f)]});throwIfAborted(_0x2f87bb[_0x5078e5(_0x63a7cd._0x17a3fd,_0x63a7cd._0x54e884,_0x63a7cd._0x141135,_0x63a7cd._0x5d2821)]);const _0x8c72e8=resolveWorkingDirectory(_0x1d433c[_0x5078e5(_0x63a7cd._0x3e44a3,_0x63a7cd._0x4ff4b5,_0x63a7cd._0x58a358,_0x63a7cd._0x1c663c)],_0x4a80f8,_0x4f9aa9);function _0x2f2fef(_0x4f7e09,_0x57be7a,_0x419aef,_0x4e2ec5){return _0xeb9440(_0x57be7a- -_0x558576._0x2af3f6,_0x4e2ec5,_0x419aef-_0x558576._0x52ad55,_0x4e2ec5-0x17f);}const _0x33c271=_0x1d433c[_0x5078e5(_0x63a7cd._0x145337,_0x63a7cd._0x343bfe,0x6a7,_0x63a7cd._0x2db3d8)]??![],_0x5355e7=resolveDefaultShell(_0x41ae4c[_0x5078e5(0x69b,_0x63a7cd._0x34e119,0x6aa,0x7bf)]),_0x298b4e=buildShellArgs(_0x1d433c[_0x2f2fef(-0xc2,_0x63a7cd._0xac6e04,_0x63a7cd._0x50bb87,-0x1)],_0x5355e7),_0x42eec2=_0x367e4c[_0x2f2fef(-_0x63a7cd._0xf4252,-_0x63a7cd._0x4596e9,-_0x63a7cd._0x6579bf,-0x155)]()==='win32';if(_0x1d433c[_0x2f2fef(_0x63a7cd._0x337dd6,-0xb6,0x73,-0x2c)]){if(!_0x14d27b)throw new ToolExecutionError('Background\x20execution\x20is\x20not\x20available\x20in\x20this\x20context.',{'command':_0x1d433c[_0x2f2fef(_0x63a7cd._0x218d21,0x58,0x158,_0x63a7cd._0x14a936)]});throwIfAborted(_0x2f87bb[_0x2f2fef(-0xfb,-_0x63a7cd._0x3c8df1,-0x205,-0x22)]);let _0x4d5876;try{_0x4d5876=_0x413e4d(_0x5355e7,_0x298b4e,{'cwd':_0x8c72e8,'env':buildChildEnv(_0x41ae4c[_0x5078e5(0x6f6,_0x63a7cd._0x4f6102,_0x63a7cd._0x3519e7,_0x63a7cd._0x2a7935)],_0x446cc5),'stdio':[_0x5078e5(_0x63a7cd._0x11beb1,0x71b,0x69e,_0x63a7cd._0x3fcc60),_0x2f2fef(0x2b,-_0x63a7cd._0x4f114f,-_0x63a7cd._0x5a8ce9,-_0x63a7cd._0x27f776),'pipe'],'shell':![],'windowsHide':!![],'detached':!_0x42eec2});}catch(_0x341596){throw mapSpawnError(_0x341596,{'command':_0x1d433c[_0x5078e5(0x76d,0x762,0x722,0x5bd)],'cwd':_0x8c72e8,'shellPath':_0x5355e7});}let _0x573bfa;try{_0x573bfa=_0x14d27b[_0x2f2fef(0x99,-_0x63a7cd._0x1f0a2a,_0x63a7cd._0x10a835,-_0x63a7cd._0x2186f0)]({'child':_0x4d5876,'command':_0x1d433c[_0x5078e5(_0x63a7cd._0x3cc32a,0x61c,_0x63a7cd._0x24e41e,_0x63a7cd._0x3ff2b5)],'cwd':_0x8c72e8,'stripAnsi':_0x8c707f});}catch(_0x430491){_0x4d5876[_0x2f2fef(-_0x63a7cd._0x307c20,-_0x63a7cd._0x5c2c45,-_0x63a7cd._0x57bf31,-_0x63a7cd._0x3478dd)](_0x5078e5(_0x63a7cd._0x4d9dc8,_0x63a7cd._0x37073b,0x653,_0x63a7cd._0x46577b),()=>{});try{killProcessGroup(_0x4d5876,_0x42eec2);}catch{}throw _0x430491;}return createToolOutput(_0x2f2fef(-_0x63a7cd._0x43b40a,-0x164,-_0x63a7cd._0x2e613d,-0x286)+_0x573bfa[_0x5078e5(_0x63a7cd._0x54b6ef,0x5be,_0x63a7cd._0x6261aa,0x82a)]+_0x2f2fef(-0x206,-_0x63a7cd._0x20ee4c,-0x186,0x50)+(_0x573bfa[_0x2f2fef(-0xa8,_0x63a7cd._0x44b7f0,-_0x63a7cd._0x453334,_0x63a7cd._0x3ce7bd)]??'?')+_0x2f2fef(-_0x63a7cd._0x3d546e,0x9a,-_0x63a7cd._0x252981,-0x89),{'shellId':_0x573bfa[_0x2f2fef(-0x134,_0x63a7cd._0x327023,0x172,-_0x63a7cd._0x5b7567)],'status':_0x573bfa[_0x2f2fef(-_0x63a7cd._0x66051f,-0xaa,_0x63a7cd._0xa8631,-0x1dd)],'command':_0x573bfa[_0x5078e5(0x793,0x5b5,0x722,_0x63a7cd._0x275ac7)],'description':_0x1d433c['description'],'cwd':_0x573bfa['cwd'],'pid':_0x573bfa[_0x5078e5(0x747,0x77f,_0x63a7cd._0x53bfba,0x5ab)]??null});}let _0x4c6c83;function _0x5078e5(_0x3ed91f,_0x3f100b,_0x30e136,_0x134161){return _0x3c6e5e(_0x134161,_0x30e136-0x25,_0x30e136-0xcf,_0x134161-0x119);}try{_0x4c6c83=_0x413e4d(_0x5355e7,_0x298b4e,{'cwd':_0x8c72e8,'env':buildChildEnv(_0x41ae4c[_0x5078e5(0x728,_0x63a7cd._0x885d74,_0x63a7cd._0x3519e7,0x5d9)],_0x446cc5),'stdio':_0x33c271?['ignore',_0x2f2fef(_0x63a7cd._0x116917,-_0x63a7cd._0x53f4d7,-_0x63a7cd._0x2353e1,_0x63a7cd._0x2db4f2),_0x2f2fef(-_0x63a7cd._0x18a156,-0x2c,-0x137,_0x63a7cd._0x5dcd00)]:[_0x2f2fef(-0x11b,-0x2c,-0x52,-_0x63a7cd._0x2b941c),_0x2f2fef(-0x154,-0x6e,-0x1ca,0x2a),_0x2f2fef(_0x63a7cd._0x217452,-_0x63a7cd._0x4f6766,_0x63a7cd._0x53f4d7,0x38)],'shell':![],'windowsHide':!![],'detached':!_0x42eec2});}catch(_0x47e5c3){throw mapSpawnError(_0x47e5c3,{'command':_0x1d433c[_0x5078e5(_0x63a7cd._0x39beb4,0x851,_0x63a7cd._0x24e41e,_0x63a7cd._0x1e4508)],'cwd':_0x8c72e8,'shellPath':_0x5355e7});}const _0x4f9ee8=[],_0x20cfba=[],_0xc2a3c3=new _0x4856e2(_0x5078e5(0x77d,0x634,0x696,_0x63a7cd._0x316f38)),_0x527696=new _0x4856e2(_0x5078e5(0x6ae,0x770,_0x63a7cd._0x5a83ef,0x755));let _0x35b6e7,_0xa2689e=![],_0x2b295b;const _0x273b90=()=>{if(!_0x35b6e7)return;const _0xb94770=_0x35b6e7;_0x35b6e7=void 0x0,_0xb94770();},_0xe73dcf=async()=>{if(_0x20cfba[_0x50b83e(-_0xc863fa._0x133220,-0x66,_0xc863fa._0x32cddf,0x13b)]>0x0||_0xa2689e)return;function _0x50b83e(_0x28402a,_0x2c8588,_0x55345f,_0x5b0dae){return _0x5078e5(_0x28402a-_0x21d30f._0x4ea2e4,_0x2c8588-0xeb,_0x55345f- -_0x21d30f._0x381893,_0x2c8588);}await new Promise(_0x50b957=>{_0x35b6e7=_0x50b957;});},_0x4e6524=_0x1b796c=>{const _0x340147={_0x29d793:0xd7,_0x39f52c:0x45};function _0x34f624(_0xe6eaf1,_0x34c925,_0xb3503,_0x4282e9){return _0x2f2fef(_0xe6eaf1-_0x340147._0x29d793,_0xe6eaf1-_0x340147._0x39f52c,_0xb3503-0x1cb,_0x34c925);}appendChunk(_0x4f9ee8,_0x20cfba,_0xc2a3c3[_0x34f624(-_0x218aac._0x281e17,-0x36,-_0x218aac._0x5c12f1,-_0x218aac._0x397048)](_0x1b796c),_0x8c707f,_0x273b90);},_0x2faf42=_0x3fb0da=>{const _0x43da1e={_0x1ad1e6:0x1c4,_0x5915ad:0x139};function _0x368e6d(_0x1388ea,_0x564fe3,_0x141fc2,_0x48da5a){return _0x5078e5(_0x1388ea-0x1d7,_0x564fe3-_0x43da1e._0x1ad1e6,_0x141fc2- -_0x43da1e._0x5915ad,_0x1388ea);}appendChunk(_0x4f9ee8,_0x20cfba,_0x527696[_0x368e6d(_0x142684._0x23f587,0x305,0x3b7,0x437)](_0x3fb0da),_0x8c707f,_0x273b90);};_0x4c6c83[_0x5078e5(_0x63a7cd._0x58eec5,0x7c9,0x6fe,_0x63a7cd._0x3f821b)]?.['on']('data',_0x4e6524),_0x4c6c83[_0x5078e5(_0x63a7cd._0x23e728,_0x63a7cd._0x530bb2,_0x63a7cd._0x19937c,_0x63a7cd._0x24b980)]?.['on'](_0x5078e5(_0x63a7cd._0x36e8fb,0x7f3,_0x63a7cd._0x1991e0,0x7ed),_0x2faf42);let _0x3ce677=![],_0x416269;const _0x7b8bf8=addAbortListener(_0x2f87bb['signal'],()=>{const _0x5914ba={_0x37d780:0xdd};_0x2b295b=toAbortError(_0x2f87bb['signal'][_0x20e233(_0x44f24f._0x429346,_0x44f24f._0x17fd2c,0x47e,0x3d9)]),_0xa2689e=!![],_0x273b90();function _0x20e233(_0x44db1e,_0x426799,_0x51dbce,_0x1c9551){return _0x2f2fef(_0x44db1e-0x1a2,_0x1c9551-0x4da,_0x51dbce-_0x5914ba._0x37d780,_0x51dbce);}try{killProcessGroup(_0x4c6c83,_0x42eec2);}catch{}});try{const _0x1448d3=new Promise((_0x27cef1,_0x3b9b03)=>{const _0x575029={_0x47c7b4:0xc5},_0x341ecd={_0x14298d:0x71e,_0x4bb6c4:0x535,_0x1851eb:0x747,_0x2c07a7:0x5d7,_0x2fbb09:0x528},_0x2395e1={_0x93e84b:0x136},_0xfd70be={_0x4979ab:0x3a,_0x15e675:0x3da},_0x359a1a={_0xcf384b:0x1a4},_0x220113=()=>{_0x416269&&(clearTimeout(_0x416269),_0x416269=void 0x0);function _0x17fe0b(_0x1b6f5f,_0x45a057,_0x22cd76,_0xfb806){return _0x16af(_0x22cd76- -_0x359a1a._0xcf384b,_0x45a057);}function _0xfca2bc(_0x7d1ef5,_0x272e50,_0x58db7e,_0x15ec2f){return _0x16af(_0x58db7e-0x91,_0x7d1ef5);}_0x4c6c83[_0x17fe0b(_0x269091._0xefdafa,_0x269091._0x53590d,0x149,0x291)](_0x17fe0b(0x1d,_0x269091._0x823f,_0x269091._0x2e33f2,0x1be),_0x11368d),_0x4c6c83[_0xfca2bc(0x42e,0x20d,0x37e,0x331)](_0xfca2bc(_0x269091._0x31a17d,_0x269091._0x2292f2,_0x269091._0x3fa796,0x2a4),_0xa5c24c);},_0x11368d=_0x2ee65d=>{_0xa2689e=!![],_0x273b90(),_0x220113(),_0x3b9b03(_0x2b295b??_0x2ee65d);},_0xa5c24c=(_0x35e940,_0x4bd4f1)=>{const _0x1c22a6={_0x20ec5d:0x2ab};_0x3ce677=!![];function _0x34ea9c(_0x3f3a7a,_0x18bda1,_0x4c9bee,_0x4e7ca3){return _0x16af(_0x3f3a7a-_0x1c22a6._0x20ec5d,_0x4c9bee);}appendChunk(_0x4f9ee8,_0x20cfba,_0xc2a3c3[_0x34ea9c(0x536,_0x2194b5._0x2e6ad3,0x3ea,0x68f)](),_0x8c707f,_0x273b90),appendChunk(_0x4f9ee8,_0x20cfba,_0x527696['end'](),_0x8c707f,_0x273b90),_0xa2689e=!![],_0x273b90(),_0x220113();if(_0x2b295b){_0x3b9b03(_0x2b295b);return;}_0x27cef1({'code':_0x35e940,'signal':_0x4bd4f1});};function _0x197e3e(_0x4a923f,_0x5d8a7c,_0x836692,_0x4c3375){return _0x5078e5(_0x4a923f-0xc6,_0x5d8a7c-_0xfd70be._0x4979ab,_0x4c3375- -_0xfd70be._0x15e675,_0x836692);}_0x416269=setTimeout(()=>{const _0x225c82={_0x1ab9dc:0x2f6};_0xa2689e=!![],_0x273b90(),_0x220113();function _0xf94df4(_0x37e743,_0x15c42d,_0x5d3a6f,_0x22c4f3){return _0x16af(_0x37e743-_0x225c82._0x1ab9dc,_0x15c42d);}try{killProcessGroup(_0x4c6c83,_0x42eec2);}catch{}function _0x6dcda8(_0x4fdce6,_0x19b7b0,_0x30ba3a,_0x43c615){return _0x16af(_0x4fdce6-_0x2395e1._0x93e84b,_0x43c615);}_0x3b9b03(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0x2337b4+_0xf94df4(0x684,_0x341ecd._0x14298d,_0x341ecd._0x4bb6c4,0x716),{'command':_0x1d433c[_0xf94df4(0x6a3,_0x341ecd._0x1851eb,_0x341ecd._0x2c07a7,_0x341ecd._0x2fbb09)],'cwd':_0x8c72e8,'shellPath':_0x5355e7,'timeoutMs':_0x2337b4,'timedOut':!![]}));},_0x2337b4);function _0x56ac1a(_0xc2087c,_0x6a4d9,_0x55bf85,_0x3dd700){return _0x2f2fef(_0xc2087c-0xe1,_0x6a4d9-0x2a8,_0x55bf85-_0x575029._0x47c7b4,_0xc2087c);}_0x4c6c83[_0x56ac1a(0x1ea,_0x1724e1._0x5dbad5,0x54,_0x1724e1._0x1d17d1)](_0x56ac1a(0x226,_0x1724e1._0x4423ff,_0x1724e1._0x3d678a,_0x1724e1._0x3368a7),_0x11368d),_0x4c6c83[_0x197e3e(0x31d,0x7f,0x2a7,_0x1724e1._0x2c48f3)](_0x197e3e(_0x1724e1._0x37d3a0,0x3a0,_0x1724e1._0x13cfc2,0x291),_0xa5c24c);});while(_0x20cfba[_0x5078e5(_0x63a7cd._0x4d1b75,_0x63a7cd._0x471a50,_0x63a7cd._0x5c09f5,_0x63a7cd._0x2a5911)]>0x0||!_0xa2689e){if(_0x20cfba['length']===0x0){await _0xe73dcf();continue;}const _0x2cf239=_0x20cfba['shift']();_0x2cf239!==void 0x0&&(yield _0x2cf239);}const _0x534047=await _0x1448d3,_0x2fff84=_0x33c271?_0x5078e5(0x6e4,_0x63a7cd._0x21c99c,_0x63a7cd._0x3a9537,0x625)+(_0x534047['code']??0x0):_0x4f9ee8[_0x5078e5(_0x63a7cd._0x5e3677,_0x63a7cd._0x4e6d62,_0x63a7cd._0x43e2f2,0x672)](''),_0x32af76={'command':_0x1d433c[_0x5078e5(_0x63a7cd._0x360245,_0x63a7cd._0x1b573a,0x722,_0x63a7cd._0x535b30)],'description':_0x1d433c[_0x2f2fef(-0x1c4,-0xb1,-_0x63a7cd._0x535b5e,0x4c)],'cwd':_0x8c72e8,'exitCode':_0x534047[_0x2f2fef(0x1e,-0x15e,-_0x63a7cd._0x14a936,-0x10f)]??0x0,'signal':_0x534047[_0x2f2fef(-0x157,-_0x63a7cd._0x403cf9,-0x7d,-_0x63a7cd._0x5bc30e)],'ignoreOutput':_0x33c271,'shellPath':_0x5355e7,'timeoutMs':_0x2337b4};if(_0x534047[_0x2f2fef(-0x103,-_0x63a7cd._0x3ddbfe,-0x292,-0x14f)]!==0x0)throw new ToolExecutionError(_0x2fff84||_0x5078e5(_0x63a7cd._0x388496,0x51a,_0x63a7cd._0x20e03e,0x497)+(_0x534047['code']??0x0),_0x32af76);return createToolOutput(_0x2fff84,_0x32af76);}catch(_0x1f5a6e){while(_0x20cfba['length']>0x0){const _0x257e3d=_0x20cfba[_0x5078e5(_0x63a7cd._0x4d8c83,0x5e4,_0x63a7cd._0x32d08d,_0x63a7cd._0x362d41)]();_0x257e3d!==void 0x0&&(yield _0x257e3d);}if(_0x1f5a6e instanceof ToolExecutionError)throw _0x1f5a6e;if(_0x2b295b)throw _0x2b295b;throw mapSpawnError(_0x1f5a6e,{'command':_0x1d433c['command'],'cwd':_0x8c72e8,'shellPath':_0x5355e7});}finally{_0x416269&&clearTimeout(_0x416269);_0x7b8bf8(),_0x4c6c83[_0x5078e5(0x63c,0x77d,_0x63a7cd._0x2088b4,_0x63a7cd._0x152c65)]?.['off'](_0x5078e5(0x7e2,0x7ea,0x694,0x650),_0x4e6524),_0x4c6c83['stderr']?.[_0x2f2fef(-0xd,-0x68,-0x168,-_0x63a7cd._0x360a6a)]('data',_0x2faf42);if(!_0x3ce677&&_0x4c6c83[_0x5078e5(0x6bf,0x792,_0x63a7cd._0x5d4f8d,0x5ce)]&&!_0x4c6c83[_0x5078e5(_0x63a7cd._0x339bed,_0x63a7cd._0xb4b0d2,_0x63a7cd._0xa4ebfb,_0x63a7cd._0x444eeb)])try{killProcessGroup(_0x4c6c83,_0x42eec2);}catch{}}}});}function createShellExecTool(_0x149627={}){return createBashTool(_0x149627);}import{readdir,readFile as _0x55b831}from'fs/promises';import{extname,join as _0x44603b}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x472220,join,relative as _0x4279db,resolve as _0x5b4ae7}from'path';import{readdir as _0x560211,readFile as _0x517921}from'fs/promises';import{join as _0x361f37,relative as _0x8e2817,sep}from'path';import{delimiter}from'path';import{mkdir as _0x527ee3,rm,stat as _0x3da0e3,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x41391e}from'path';import{unwatchFile,watchFile}from'fs';import{chmod,readFile as _0x45c401,rename,rm as _0x5f1ce7,stat as _0x3849dc,writeFile as _0x2e7541}from'fs/promises';import{homedir as _0x264d55}from'os';import{dirname as _0x5133ce,isAbsolute as _0x116eaa,join as _0x4e8c1e,resolve as _0x3c41cf}from'path';import{parse as _0x1b0ede,stringify as _0x42c119}from'yaml';import{cp,mkdir as _0x26df78,readFile as _0x16f45a,rm as _0x4d9b62,writeFile as _0x2168fd}from'fs/promises';import{homedir}from'os';import{join as _0x5dc440}from'path';import{parse as _0x5aa086,stringify as _0x16404e}from'yaml';import{z}from'zod';import{readdir as _0x4bdc71,readFile as _0x9c59da}from'fs/promises';import{join as _0x4c5022}from'path';import{randomUUID as _0x24a9a0}from'crypto';import{mkdir as _0x51f22f,readdir as _0x4aa282,readFile as _0x5f5884,rename as _0x20dba9,rm as _0x479c32,writeFile as _0x14cac3}from'fs/promises';import{homedir as _0x28c9ac}from'os';import{basename,isAbsolute as _0x129542,join as _0x4bdfab,relative as _0xb10777,resolve as _0x37be41}from'path';import{parse as _0x31265d,stringify as _0x1dc26f}from'yaml';import{delimiter as _0x592cac,resolve as _0x4caa65}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function _0x16af(_0x262607,_0x3067c9){_0x262607=_0x262607-0x168;const _0x892df4=_0x892d();let _0x16af1e=_0x892df4[_0x262607];if(_0x16af['jFGMiq']===undefined){var _0x32f73a=function(_0x295b95){const _0x4bd1a1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c748a='',_0x2f5856='';for(let _0x75c00e=0x0,_0x43ea12,_0x52f918,_0x562cbc=0x0;_0x52f918=_0x295b95['charAt'](_0x562cbc++);~_0x52f918&&(_0x43ea12=_0x75c00e%0x4?_0x43ea12*0x40+_0x52f918:_0x52f918,_0x75c00e++%0x4)?_0x4c748a+=String['fromCharCode'](0xff&_0x43ea12>>(-0x2*_0x75c00e&0x6)):0x0){_0x52f918=_0x4bd1a1['indexOf'](_0x52f918);}for(let _0x45fe0a=0x0,_0x4139b1=_0x4c748a['length'];_0x45fe0a<_0x4139b1;_0x45fe0a++){_0x2f5856+='%'+('00'+_0x4c748a['charCodeAt'](_0x45fe0a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f5856);};_0x16af['KztgIP']=_0x32f73a,_0x16af['hrUOTy']={},_0x16af['jFGMiq']=!![];}const _0xc91714=_0x892df4[0x0],_0x258b37=_0x262607+_0xc91714,_0x17ed6f=_0x16af['hrUOTy'][_0x258b37];return!_0x17ed6f?(_0x16af1e=_0x16af['KztgIP'](_0x16af1e),_0x16af['hrUOTy'][_0x258b37]=_0x16af1e):_0x16af1e=_0x17ed6f,_0x16af1e;}function tokenizeCommandArguments(_0x316027){const _0x50ba43={_0x1f6962:0x5ab,_0x52e981:0x5f0,_0x4ae849:0x52d,_0x50d135:0x4ac,_0x47826b:0x57f,_0x560805:0x1cb,_0x99e4de:0x314,_0x215c86:0x247,_0xaff839:0x305},_0x45eff9={_0xedd879:0x5d,_0x45a55e:0xa5},_0x3d47b3={_0x2c235e:0x1cb,_0xeddf85:0x266},_0x7ea7c0=[];let _0x4041f5='';function _0x2cd031(_0x116462,_0x14cad5,_0x4ea1ec,_0x5a2666){return _0x26f978(_0x116462-_0x3d47b3._0x2c235e,_0x14cad5-0x9,_0x4ea1ec-_0x3d47b3._0xeddf85,_0x5a2666);}function _0xcc343e(_0x1009c6,_0x2b596f,_0xb108c4,_0x42145e){return _0x199ce4(_0x42145e-0x2cd,_0x2b596f-_0x45eff9._0xedd879,_0xb108c4,_0x42145e-_0x45eff9._0x45a55e);}let _0x10eb22=0x0;while(_0x10eb22<_0x316027[_0x2cd031(_0x50ba43._0x1f6962,_0x50ba43._0x52e981,0x4ac,0x564)]){const _0x20f756=_0x316027[_0x10eb22];if(_0x20f756==='\x5c'&&_0x10eb22+0x1<_0x316027[_0x2cd031(_0x50ba43._0x4ae849,0x477,_0x50ba43._0x50d135,_0x50ba43._0x47826b)])_0x4041f5+=_0x316027[_0x10eb22+0x1],_0x10eb22+=0x2;else{if(_0x20f756==='\x22'||_0x20f756==='\x27'){const _0x19ce7d=_0x20f756;_0x10eb22++;while(_0x10eb22<_0x316027[_0xcc343e(_0x50ba43._0x560805,_0x50ba43._0x99e4de,0x3d5,0x291)]&&_0x316027[_0x10eb22]!==_0x19ce7d){_0x316027[_0x10eb22]==='\x5c'&&_0x10eb22+0x1<_0x316027['length']?(_0x4041f5+=_0x316027[_0x10eb22+0x1],_0x10eb22+=0x2):(_0x4041f5+=_0x316027[_0x10eb22],_0x10eb22++);}_0x10eb22++;}else _0x20f756!==void 0x0&&/\s/[_0xcc343e(_0x50ba43._0x215c86,0x315,0x36a,_0x50ba43._0xaff839)](_0x20f756)?(_0x4041f5&&(_0x7ea7c0['push'](_0x4041f5),_0x4041f5=''),_0x10eb22++):(_0x4041f5+=_0x20f756,_0x10eb22++);}}if(_0x4041f5)_0x7ea7c0[_0x2cd031(0x359,0x4c9,0x390,0x29e)](_0x4041f5);return _0x7ea7c0;}function renderCommandInstructions(_0xf44be8){const _0x417813={_0x52ca7e:0x672,_0x3f8e25:0x538,_0x83e991:0x5ee,_0x33af90:0x669,_0x45bbaa:0x645,_0x245ea8:0x68c,_0xf161cd:0x6e6,_0xd6e53d:0x591,_0x57e479:0x654,_0x2d36b6:0x79d,_0x22982c:0x597,_0xd7f891:0x462,_0x4048b8:0x574,_0x2ea408:0x60d,_0x424840:0x6fd,_0x1b7277:0x585,_0x3d8ba8:0x69b,_0x15ac38:0x5c0,_0x1f9363:0x3a4,_0x518cdd:0x464,_0x4d975d:0x445,_0x5224a2:0x5f9},_0x14e03a={_0x19e005:0x135,_0x559eb5:0x103};let _0x8f73c7=_0xf44be8['instructions'],_0x2239b5=![];function _0x28b442(_0x1ec98f,_0x22170b,_0x566794,_0x3f0a2e){return _0x26f978(_0x1ec98f-0x1,_0x22170b-0x190,_0x1ec98f-0x42a,_0x22170b);}const _0x1606ce=tokenizeCommandArguments(_0xf44be8[_0x28b442(0x5df,_0x417813._0x52ca7e,0x57f,0x6b8)]);_0x8f73c7=_0x8f73c7['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0x17424a,_0x1f0a8c)=>{return _0x2239b5=!![],_0x1606ce[Number(_0x1f0a8c)]??'';}),_0x8f73c7=_0x8f73c7[_0x5167d5(_0x417813._0x3f8e25,_0x417813._0x83e991,0x548,0x648)](/\$ARGUMENTS\b/g,()=>{return _0x2239b5=!![],_0xf44be8['argumentsText'];});if(_0xf44be8[_0x5167d5(_0x417813._0x33af90,0x60d,_0x417813._0x45bbaa,_0x417813._0x245ea8)]&&_0xf44be8[_0x28b442(_0x417813._0xf161cd,_0x417813._0xd6e53d,0x829,0x81e)][_0x28b442(0x670,_0x417813._0x57e479,0x76f,_0x417813._0x2d36b6)]>0x0)for(let _0x31139c=0x0;_0x31139c<_0xf44be8[_0x5167d5(0x776,0x60d,0x6c8,0x644)][_0x5167d5(0x477,_0x417813._0x22982c,0x6e7,_0x417813._0xd7f891)];_0x31139c++){const _0x44db7d=_0xf44be8[_0x5167d5(_0x417813._0x4048b8,_0x417813._0x2ea408,0x4f6,_0x417813._0x424840)][_0x31139c];if(_0x44db7d){const _0x1981ce=new RegExp('\x5c$'+_0x44db7d+'\x5cb','g');_0x8f73c7=_0x8f73c7['replace'](_0x1981ce,()=>{return _0x2239b5=!![],_0x1606ce[_0x31139c]??'';});}}_0x8f73c7=_0x8f73c7[_0x28b442(0x6c7,_0x417813._0x1b7277,0x78a,_0x417813._0x3d8ba8)](/\$(\d+)\b/g,(_0x261e67,_0x592471)=>{return _0x2239b5=!![],_0x1606ce[Number(_0x592471)]??'';});function _0x5167d5(_0x2f8dd7,_0x347e7a,_0x4959ff,_0x3fa490){return _0x26f978(_0x2f8dd7-_0x14e03a._0x19e005,_0x347e7a-_0x14e03a._0x559eb5,_0x347e7a-0x351,_0x3fa490);}return!_0x2239b5&&_0xf44be8[_0x28b442(0x5df,_0x417813._0x15ac38,0x4ed,0x57d)][_0x5167d5(_0x417813._0x1f9363,_0x417813._0x518cdd,0x3a3,0x476)]()&&(_0x8f73c7=_0x8f73c7+'\x0a\x0aARGUMENTS:\x20'+_0xf44be8[_0x5167d5(_0x417813._0x4d975d,0x506,_0x417813._0x5224a2,0x3d0)]),_0x8f73c7;}var PROVIDER_API_KEY_ENVS=[{'env':_0x199ce4(0xb5,0x96,-0xa4,0x9),'provider':_0x26f978(0x450,0x3f2,0x3ef,0x4f1)},{'env':'ANTHROPIC_API_KEY','provider':'anthropic'},{'env':_0x199ce4(-0x59,-0x71,-0x192,-0x1bc),'provider':_0x26f978(0x42d,0x423,0x377,0x3a2)},{'env':_0x26f978(0x246,0xdb,0x19b,0x125),'provider':'github'},{'env':_0x199ce4(0x11b,0x1c7,0xc9,0x10a),'provider':_0x199ce4(-0x5b,-0x69,-0xcf,-0xba)},{'env':_0x26f978(0x7b,0x10e,0x195,0x266),'provider':_0x26f978(0x4bd,0x464,0x367,0x320)},{'env':_0x26f978(0x2a9,0x2f1,0x17c,0x2b2),'provider':'zai'},{'env':'MOONSHOT_API_KEY','provider':'moonshot'},{'env':_0x26f978(0x261,0x397,0x2eb,0x3bb),'provider':_0x26f978(0x48e,0x448,0x312,0x231)},{'env':'KIMI_API_KEY','provider':'kimi'},{'env':_0x26f978(0xd7,0xe4,0x1fe,0x346),'provider':_0x26f978(0x1c2,0x3,0x14f,0xe1)},{'env':'DEEPSEEK_API_KEY','provider':_0x199ce4(0xa6,0x59,0xf8,0x79)}],PROVIDER_API_KEY_ENV_NAMES=PROVIDER_API_KEY_ENVS['map'](_0x2850c4=>_0x2850c4[_0x199ce4(-0x3,0xa1,-0x17e,0x166)]),SCRUBBED_ENV_KEYS=[...PROVIDER_API_KEY_ENV_NAMES,_0x26f978(0x106,0x283,0x1ae,0x71),_0x26f978(0x2d2,0x45e,0x390,0x47d),_0x199ce4(0x24,-0x49,0x42,0x160)],PROTOTYPE_SENSITIVE_NAMES=new Set([...Object['getOwnPropertyNames'](Object[_0x26f978(0x1fc,0x245,0x363,0x2fa)]),_0x199ce4(0xe1,0x215,0x84,0x110)]);function prototypeSafeRecord(_0x12c563){const _0x3928c9={_0x2acf57:0x2f8,_0x59b699:0x152,_0x5a065d:0x266,_0x1eeb5c:0x317,_0x164066:0x27f,_0x20208c:0x5d2,_0x24335c:0x4a5,_0x4c8795:0x9f},_0x5991d3={_0x3c3a5a:0x41d,_0x20d219:0x2d0,_0x4a3bf3:0x376,_0x349c38:0x19,_0x4f063f:0xda,_0x483de5:0x3ba,_0x34ce4:0x417},_0x530b66={_0x560df2:0x17b},_0x5cdf87={_0x13c9a1:0x1b9,_0x74b25c:0x7b,_0x361446:0x188},_0x504976={_0x56ca86:0x2ca};function _0x69c1cc(_0xe4550e,_0x3187e9,_0x431c4c,_0x559856){return _0x26f978(_0xe4550e-0x1d1,_0x3187e9-0xe7,_0x3187e9-_0x504976._0x56ca86,_0x431c4c);}function _0x181568(_0x595f6b,_0x10519e,_0x32ab2f,_0x234069){return _0x26f978(_0x595f6b-_0x5cdf87._0x13c9a1,_0x10519e-_0x5cdf87._0x74b25c,_0x32ab2f- -_0x5cdf87._0x361446,_0x234069);}return z['preprocess'](_0x483c7c=>{function _0x82a3f3(_0xaa4327,_0x70f86e,_0x1872f3,_0x58a457){return _0x16af(_0x70f86e- -_0x530b66._0x560df2,_0x58a457);}if(_0x483c7c===null||typeof _0x483c7c!==_0x82a3f3(_0x5991d3._0x3c3a5a,_0x5991d3._0x20d219,_0x5991d3._0x4a3bf3,0x258)||Array[_0x82a3f3(_0x5991d3._0x349c38,0x154,0x258,_0x5991d3._0x4f063f)](_0x483c7c))return null;function _0x32e276(_0x21bde5,_0x467f11,_0x5e47d9,_0x14b1b9){return _0x16af(_0x5e47d9- -0x6,_0x21bde5);}const _0x23538f=Object['getPrototypeOf'](_0x483c7c);if(_0x23538f!==Object[_0x32e276(0x517,0x31a,_0x5991d3._0x483de5,_0x5991d3._0x34ce4)]&&_0x23538f!==null)return null;return{'entries':Object['entries'](_0x483c7c)};},z[_0x181568(_0x3928c9._0x2acf57,_0x3928c9._0x59b699,_0x3928c9._0x5a065d,0x1ab)]({'entries':z['array'](z[_0x181568(_0x3928c9._0x1eeb5c,0x1e4,0x256,_0x3928c9._0x164066)]([z[_0x69c1cc(0x5a2,_0x3928c9._0x20208c,0x4b5,_0x3928c9._0x24335c)](),_0x12c563]))}))[_0x181568(-0x56,-_0x3928c9._0x4c8795,0x2c,-0xe3)](({entries:_0x5e8a0d})=>Object[_0x69c1cc(0x558,0x659,0x7a6,0x50a)](_0x5e8a0d));}var chatModelAuthSchemeSchema=z[_0x26f978(0x2fb,0x252,0x1ca,0x197)]([_0x26f978(0x13a,0xb6,0x1f9,0x24d),_0x26f978(0x2bc,0x1a6,0x25b,0x165)]),apiKeyAuthSchema=z['object']({'type':z[_0x199ce4(0x3,-0x59,0x12c,0x10e)](_0x199ce4(0xc5,0x124,-0x7c,0x8c)),'apiKey':z[_0x199ce4(0x86,0x50,0x1ba,0x1b4)](),'authScheme':chatModelAuthSchemeSchema[_0x199ce4(-0x15f,-0x253,-0x157,-0x1be)]()})[_0x199ce4(-0x5e,-0x17d,0x95,-0x46)](),oauthAuthSchema=z[_0x26f978(0x2a6,0x38f,0x3ee,0x47d)]({'type':z['literal']('oauth'),'access':z[_0x199ce4(0x86,0xa1,-0x53,0x1e6)](),'refresh':z[_0x26f978(0x284,0x2c9,0x308,0x2c0)](),'expires':z[_0x199ce4(0x10a,-0x3a,0x26f,0x12)]()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x199ce4(-0x15f,-0x2db,-0x2a3,-0x80)]()})[_0x26f978(0x332,0x37a,0x224,0x2ad)](),finiteNonNegative=z[_0x199ce4(0x10a,0x136,-0x2d,0x7b)]()['finite']()['nonnegative'](),chatGptAuthSchema=z['object']({'type':z[_0x199ce4(0x3,-0xa7,0x36,0x159)]('chatgpt'),'access':z['string']()[_0x26f978(0x11e,0x22d,0x210,0x370)](0x1),'refresh':z['string']()[_0x26f978(0x225,0x16d,0x210,0x277)](0x1),'idToken':z['string']()[_0x199ce4(-0x72,0xe7,-0x1d9,-0xa9)](0x1),'accountId':z[_0x26f978(0x32c,0x24e,0x308,0x378)]()[_0x199ce4(-0x72,-0x108,-0x132,-0x1ea)](0x1),'expires':finiteNonNegative,'earliestRefreshAt':finiteNonNegative[_0x199ce4(-0x15f,-0x16f,-0x20d,-0x2da)]()})['passthrough'](),authMethodSchema=z[_0x199ce4(-0x1b,-0x109,-0x4c,-0x9e)]([apiKeyAuthSchema,oauthAuthSchema,chatGptAuthSchema]),modelDefinitionSchema=z[_0x26f978(0x4af,0x3bf,0x3ee,0x569)]({'id':z[_0x199ce4(0x86,0x175,-0x8a,0xb8)](),'name':z[_0x199ce4(0x86,0x7c,0x1ba,0x197)]()['optional']()})[_0x26f978(0x1d5,0x298,0x224,0x354)](),modelConfigSchema=z[_0x199ce4(-0x1b,-0x12e,0xf3,-0xab)]([z[_0x26f978(0x2d0,0x2a9,0x285,0x2fb)](![]),z['literal'](!![]),z[_0x199ce4(0x86,0x72,-0xaf,0x199)](),z[_0x26f978(0xa1,0x169,0x1f6,0xef)](z[_0x199ce4(0x86,-0x10,0x12e,0xab)]()),z['array'](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x199ce4(-0xb8,-0x1b5,-0x85,-0x1c4)]([_0x26f978(0x283,0x492,0x3d0,0x519),'openai-chat-completions',_0x199ce4(-0xc,-0xe6,-0xad,-0x15c),'openai-responses-ws']),providerConfigSchema=z['object']({'apiKey':z['string']()['optional'](),'token':z[_0x26f978(0x483,0x22a,0x308,0x468)]()[_0x26f978(0xc5,0x286,0x123,0x20a)](),'defaultModel':z[_0x26f978(0x35c,0x2f3,0x308,0x381)]()[_0x199ce4(-0x15f,-0x23a,-0x14d,-0x266)](),'smallModel':z[_0x199ce4(0x86,0x1c1,-0x3f,-0xa9)]()[_0x199ce4(-0x15f,-0xad,-0x2b9,-0x1ed)](),'currentAuth':z[_0x26f978(0x3ba,0x264,0x308,0x18c)]()[_0x26f978(0x1b7,0x15c,0x123,0x115)](),'auth':z['array'](authMethodSchema)[_0x199ce4(-0x15f,-0x4b,-0x41,-0x28b)](),'surface':chatModelSurfaceSchema[_0x199ce4(-0x15f,-0x91,-0x247,-0xd0)](),'baseUrl':z['string']()[_0x199ce4(-0x15f,-0x25f,-0x2bc,-0x1df)](),'models':modelConfigSchema[_0x26f978(0x269,0x1ae,0x123,0xd3)](),'customHeaders':z[_0x199ce4(0x4f,0x41,0x104,0x14d)](z[_0x26f978(0x3fb,0x3f5,0x308,0x19c)](),z[_0x199ce4(0x86,-0x35,-0xa8,-0x97)]())[_0x26f978(0x1ea,0x1ff,0x123,0x249)]()})[_0x199ce4(-0x5e,0x1b,-0x13c,0xcb)](),mcpServerConfigSchema=z[_0x26f978(0x412,0x538,0x3ee,0x453)]({'command':z['string']()[_0x199ce4(-0x15f,-0x21e,-0x124,-0x299)](),'args':z[_0x199ce4(-0x8c,-0x90,-0x146,-0x9)](z[_0x26f978(0x41e,0x3ee,0x308,0x2ba)]())['optional'](),'env':z[_0x26f978(0x1da,0x32d,0x2d1,0x23c)](z[_0x199ce4(0x86,-0xf5,0x92,0x5f)](),z[_0x26f978(0x3be,0x440,0x308,0x463)]())[_0x199ce4(-0x15f,-0xf7,-0x49,-0x5e)](),'transport':z[_0x26f978(0x2e9,0x331,0x1ca,0x23b)](['stdio',_0x199ce4(0x6b,0x1b1,0x163,0x2b)])[_0x199ce4(-0x15f,-0x161,-0x82,0x1c)](),'url':z[_0x26f978(0x3c8,0x373,0x308,0x45e)]()[_0x26f978(0x74,0x1fc,0x123,-0x2)](),'headers':z['record'](z['string'](),z[_0x199ce4(0x86,-0xb2,0x1bb,0x95)]())['optional'](),'prefix':z[_0x199ce4(0x86,0x33,0x1af,-0x91)]()[_0x199ce4(-0x15f,-0x15c,-0x15,-0x1d5)](),'timeoutMs':z['number']()[_0x199ce4(-0x15f,-0x189,-0xf2,-0x96)](),'enabled':z['boolean']()[_0x199ce4(-0x15f,-0x233,-0x85,-0x26f)](),'auth':z['object']({'type':z[_0x199ce4(-0xb8,-0x9a,-0x38,-0x54)]([_0x26f978(0x1d0,0x16a,0x12e,0xd0),_0x26f978(0x337,0x8d,0x1f9,0x1a9),_0x199ce4(-0x2f,-0xc5,0x15,-0x95)]),'token':z[_0x199ce4(0x86,-0x58,-0xc4,0x135)]()[_0x26f978(0xac,0x1c8,0x123,0x19e)](),'oauth':z[_0x199ce4(0x16c,0x9d,0x167,0x34)]({'clientId':z['string']()[_0x26f978(-0x35,0x210,0x123,0xda)](),'clientMetadataUrl':z['string']()[_0x26f978(0x196,0x1e2,0x123,0x12b)](),'authorizationServer':z[_0x26f978(0x193,0x2ad,0x308,0x1f4)]()['optional'](),'scopes':z['array'](z[_0x199ce4(0x86,-0x96,0x2b,0x3a)]())['optional'](),'tokenStorageKey':z[_0x199ce4(0x86,-0x55,0x1fc,0x164)]()['optional']()})[_0x26f978(0x256,0x22a,0x224,0xe2)]()[_0x199ce4(-0x15f,-0x7,-0x1c2,-0x33)]()})[_0x26f978(0x181,0x305,0x224,0xd5)]()[_0x26f978(0x280,0x140,0x123,0x140)]()})[_0x26f978(0x2b7,0x181,0x224,0x1dc)](),mcpSettingsSchema=z['object']({'servers':prototypeSafeRecord(mcpServerConfigSchema)[_0x199ce4(-0x15f,-0xd4,-0x4f,-0x146)](),'allowedTools':prototypeSafeRecord(prototypeSafeRecord(z[_0x199ce4(-0x35,0x88,-0x56,-0x109)]()))[_0x199ce4(-0x15f,-0x5f,-0x1df,-0xa8)](),'defaultTimeoutMs':z[_0x199ce4(0x10a,-0x2f,0x74,0x1b1)]()['optional']()})['passthrough'](),skillsSettingsSchema=z[_0x26f978(0x2a2,0x30c,0x3ee,0x3c1)]({'enabled':z[_0x199ce4(-0x35,-0x128,-0xa2,-0xab)]()[_0x26f978(0x192,0x212,0x123,0x9f)](),'includeDefaults':z[_0x199ce4(-0x35,0xb6,-0x9c,-0x137)]()[_0x26f978(0x200,0x47,0x123,-0x7)](),'directories':z[_0x199ce4(-0x8c,-0x72,0x57,-0x167)](z[_0x26f978(0x190,0x367,0x308,0x1a6)]())[_0x199ce4(-0x15f,-0x114,-0x9e,-0x84)](),'exclude':z[_0x26f978(0x222,0x265,0x1f6,0x12c)](z['string']())['optional']()})[_0x26f978(0x31e,0x16d,0x224,0x1e7)](),commandsSettingsSchema=z['object']({'enabled':z[_0x26f978(0x124,0x24b,0x24d,0x38e)]()[_0x26f978(0x21a,0x119,0x123,0x11f)](),'directories':z[_0x199ce4(-0x8c,0x6d,-0x1b4,-0xeb)](z[_0x199ce4(0x86,0x23,0x64,0x61)]())[_0x199ce4(-0x15f,0x6,-0xf6,-0x241)]()})[_0x199ce4(-0x5e,0xa,-0x1a,0xa7)](),agentsSettingsSchema=z['object']({'enabled':z[_0x26f978(0xda,0x219,0x24d,0x157)]()[_0x199ce4(-0x15f,-0x90,-0x17a,-0xc3)](),'includeDefaults':z[_0x26f978(0x1c8,0x13c,0x24d,0x22a)]()['optional'](),'directories':z['array'](z['string']())['optional']()})[_0x199ce4(-0x5e,-0x21,0xc,-0x1bb)](),uiThemeSettingsSchema=z['object']({'mode':z[_0x26f978(0x27d,0x247,0x1ca,0x1ca)]([_0x199ce4(-0x58,-0x33,-0xfd,-0x101),_0x26f978(0x206,-0x3,0x16b,0x223),_0x26f978(0x3cc,0x397,0x295,0x2a5)])[_0x199ce4(-0x15f,-0xcf,-0x8,-0xf9)](),'colorLevel':z[_0x199ce4(-0xb8,-0x7d,-0x1d,0x65)]([_0x199ce4(-0x58,-0x77,0xdb,-0x18f),_0x26f978(0x179,0x78,0x12e,0x177),_0x199ce4(-0xa8,-0x221,-0x7e,-0xd1),_0x199ce4(0xf8,0xe7,0x212,0x59),_0x199ce4(-0x1f,0x9e,-0x121,0x51)])[_0x199ce4(-0x15f,-0x180,-0x143,-0xab)](),'backgrounds':z['enum']([_0x26f978(0x32b,0x218,0x22a,0x28f),'on',_0x26f978(0x1a0,0x1ce,0x290,0x25b)])['optional'](),'messageStyle':z[_0x199ce4(-0xb8,0xc2,-0x107,-0x48)](['plain',_0x199ce4(-0x92,-0x16e,-0x1bd,-0x3)])[_0x26f978(0xbc,0xf,0x123,0x9f)]()})[_0x199ce4(-0x5e,-0x5b,-0xf6,-0x1d)](),statuslineSegmentSchema=z[_0x199ce4(-0xb8,0x5,0x41,-0x1f7)]([_0x199ce4(-0xdc,0x59,-0x19e,0x12),_0x26f978(0x31e,0x2d7,0x2ea,0x406),_0x199ce4(-0x14e,-0x7a,-0x12c,-0x178),_0x26f978(0x1d9,0x466,0x345,0x2da),_0x26f978(0x1ed,0x3a9,0x23b,0x2f9),_0x26f978(0x33c,0x316,0x277,0x151),_0x199ce4(0x54,0x16a,-0xa4,-0x9d),'requests',_0x199ce4(0x159,0x14,0x17a,0x7f),_0x199ce4(0x12e,0x2a1,0x1e7,0x81),_0x26f978(0x31a,0x382,0x344,0x2c3),_0x199ce4(-0x147,-0x1d7,-0x158,-0x20e),_0x199ce4(-0x13e,-0x20e,-0x35,-0x18f),_0x26f978(0x27d,0x66,0x171,0x29c),_0x199ce4(0x127,0x18d,0x66,0xf)]),statuslineItemSchema=z[_0x199ce4(-0x1b,-0x180,-0x81,0x136)]([statuslineSegmentSchema,z[_0x199ce4(0x3,-0xd,-0x52,0xe7)]('|')]),statuslineRowSchema=z[_0x26f978(0x261,0x1e2,0x1f6,0x370)](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z[_0x26f978(0x550,0x554,0x3de,0x46c)]([statuslineRowSchema,statuslineRowSchema])[_0x199ce4(-0x15f,-0x110,-0xad,-0x2ac)]()})[_0x199ce4(-0x5e,0x61,-0x1d7,-0x191)](),memorySettingsSchema=z[_0x199ce4(0x16c,0x2ba,0x15a,0xe5)]({'version':z[_0x26f978(0x259,0x116,0x285,0x3cb)](0x2)[_0x199ce4(-0x15f,-0x185,-0x256,-0x255)](),'retrieval':z[_0x199ce4(0x16c,0x38,0x198,0xc3)]({'engine':z[_0x26f978(0x16c,0x1ed,0x285,0x1b7)]('bm25')[_0x199ce4(-0x15f,-0x1ef,-0x208,-0x1f7)](),'candidateLimit':z['number']()[_0x199ce4(-0x15f,-0x16d,-0x27d,-0x135)](),'activeCandidateLimit':z[_0x26f978(0x3ae,0x2d4,0x38c,0x2bc)]()[_0x199ce4(-0x15f,-0xd1,0xc,-0xc)](),'activeEnabled':z[_0x26f978(0x16d,0x35b,0x24d,0x1ae)]()[_0x199ce4(-0x15f,-0x247,-0xbd,-0x76)](),'maxQueriesPerTurn':z[_0x199ce4(0x10a,0x160,0xa0,0x117)]()[_0x199ce4(-0x15f,-0x2a8,-0x2d9,-0x134)](),'coreInjectTokenBudget':z[_0x199ce4(0x10a,0x18f,-0x50,0x21d)]()[_0x199ce4(-0x15f,-0x19d,-0x1db,-0x28c)](),'injectTokenBudget':z[_0x199ce4(0x10a,-0x35,0x136,0xb8)]()[_0x199ce4(-0x15f,-0x10a,-0xba,-0x18f)](),'minScore':z['number']()[_0x199ce4(-0x15f,-0x289,-0x7c,-0x2ab)](),'freshnessHalfLifeDays':z['number']()['optional']()})['passthrough']()[_0x199ce4(-0x15f,-0x266,-0xcb,-0x25f)](),'extraction':z[_0x199ce4(0x16c,0x1ab,0x10c,0x18f)]({'enabled':z[_0x199ce4(-0x35,0x31,0xc7,0x53)]()[_0x199ce4(-0x15f,-0x180,-0x19c,-0x265)](),'provider':z[_0x26f978(0x27f,0x245,0x308,0x1a5)]()[_0x26f978(0x273,0x5c,0x123,0x231)](),'model':z[_0x199ce4(0x86,0x1d0,-0x4c,0x108)]()['optional'](),'sensitiveFilter':z['boolean']()[_0x26f978(0x15d,0xb3,0x123,0x113)]()})[_0x26f978(0xc5,0x108,0x224,0x2aa)]()['optional'](),'index':z[_0x26f978(0x494,0x537,0x3ee,0x3bc)]({'persisted':z[_0x26f978(0x105,0xec,0x24d,0x388)]()[_0x199ce4(-0x15f,-0x2d9,-0x207,-0x207)](),'flushIntervalMs':z[_0x199ce4(0x10a,0x7f,0x157,0x4)]()[_0x26f978(0x41,0xce,0x123,0x1d5)]()})[_0x26f978(0x149,0x17b,0x224,0xb5)]()[_0x199ce4(-0x15f,-0x193,-0x1be,-0xd6)](),'enabled':z[_0x199ce4(-0x35,-0x139,-0xfc,-0xb3)]()[_0x199ce4(-0x15f,-0xb7,-0x52,-0x67)](),'saveTool':z[_0x26f978(0x311,0x310,0x24d,0x157)]()['optional'](),'model':z[_0x199ce4(0x86,-0x26,0x84,0x4a)]()[_0x199ce4(-0x15f,-0x2ac,-0x6c,-0x2a3)](),'provider':z[_0x199ce4(0x86,0x71,0x9c,0xcd)]()[_0x26f978(-0x30,-0x23,0x123,0xa7)](),'maxInjectionTokens':z[_0x199ce4(0x10a,0x279,0xca,0x10d)]()[_0x26f978(0x58,0x8,0x123,0x209)](),'backgroundExtraction':z[_0x26f978(0x21b,0x21d,0x24d,0xd3)]()[_0x26f978(0x55,0xdb,0x123,0xad)]()})[_0x26f978(0x227,0x2c9,0x224,0x2f9)](),recentModelSchema=z[_0x26f978(0x308,0x41e,0x3ee,0x3d5)]({'provider':z['string'](),'model':z[_0x26f978(0x26e,0x3db,0x308,0x363)](),'usedAt':z['number']()})[_0x26f978(0x2ee,0xa8,0x224,0xd9)](),lspServerEntrySchema=z[_0x199ce4(0x16c,0x1bd,0x2dd,0x0)]({'disabled':z[_0x199ce4(-0x35,-0x141,-0x51,0x138)]()[_0x26f978(0x39,0x274,0x123,0x180)](),'command':z[_0x199ce4(0x86,0xb0,-0xc7,0xb1)]()[_0x26f978(0x13b,-0x3c,0x123,0x95)](),'args':z['array'](z['string']())[_0x199ce4(-0x15f,-0x1fa,-0x13f,-0x2ca)](),'rootMarkers':z[_0x26f978(0x25d,0xf3,0x1f6,0x228)](z[_0x199ce4(0x86,0x14c,0x1bf,-0x38)]())['optional']()})[_0x26f978(0x184,0x2fe,0x224,0x11d)](),lspConfigSchema=z[_0x26f978(0x2c8,0x2c8,0x3ee,0x305)]({'enabled':z['boolean']()[_0x26f978(0x98,0x131,0x123,0x167)](),'servers':z[_0x199ce4(0x4f,0x146,-0x2d,0x18d)](z['string'](),lspServerEntrySchema)[_0x26f978(0x18c,0x146,0x123,0x190)]()})[_0x199ce4(-0x5e,-0xea,0x1a,0x4b)](),serverEndpointSchema=z[_0x26f978(0x4bb,0x292,0x3ee,0x3fb)]({'url':z[_0x199ce4(0x86,0xea,-0x36,-0x59)](),'token':z['string']()[_0x26f978(0xc1,0xb1,0x123,0x1ba)]()})[_0x199ce4(-0x5e,-0x1b6,-0x1ab,0x80)](),commandHookConfigSchema=z['object']({'type':z[_0x199ce4(0x3,-0x7c,0x36,-0x2d)](_0x26f978(0x379,0x456,0x350,0x298)),'command':z[_0x199ce4(0x86,0x98,-0xe1,-0x13)](),'timeout':z[_0x26f978(0x25d,0x42b,0x38c,0x260)]()[_0x26f978(0x1af,0xa7,0x123,0xfb)]()}),hookMatcherGroupSchema=z[_0x26f978(0x2be,0x2f7,0x3ee,0x541)]({'matcher':z[_0x26f978(0x2d3,0x1ee,0x308,0x473)]()[_0x26f978(0x1a5,0x11b,0x123,0x183)](),'hooks':z[_0x26f978(0x2c7,0x1d6,0x1f6,0x175)](commandHookConfigSchema)}),hooksConfigSchema=z[_0x26f978(0x403,0x515,0x3ee,0x491)]({'PreToolUse':z[_0x26f978(0x19e,0x19d,0x1f6,0x103)](hookMatcherGroupSchema)[_0x199ce4(-0x15f,-0x2a,-0x13f,-0x1e0)](),'PostToolUse':z[_0x199ce4(-0x8c,0x38,-0x54,0xda)](hookMatcherGroupSchema)[_0x199ce4(-0x15f,0xc,-0xc2,-0xa)](),'UserPromptSubmit':z['array'](hookMatcherGroupSchema)[_0x199ce4(-0x15f,-0x116,-0x296,-0x1f4)](),'Stop':z[_0x199ce4(-0x8c,0x1e,-0xf,-0x19a)](hookMatcherGroupSchema)['optional'](),'Notification':z[_0x199ce4(-0x8c,-0x5b,-0xd5,-0x71)](hookMatcherGroupSchema)[_0x199ce4(-0x15f,-0x25a,-0x279,-0x97)](),'ToolApprovalRequest':z['array'](hookMatcherGroupSchema)['optional'](),'SessionStart':z[_0x26f978(0x7c,0xe0,0x1f6,0x2d9)](hookMatcherGroupSchema)[_0x199ce4(-0x15f,-0xa5,-0x254,-0x26)](),'SessionEnd':z[_0x199ce4(-0x8c,-0x160,-0x10,-0x63)](hookMatcherGroupSchema)[_0x26f978(0x1fb,-0x1c,0x123,0xd)]()}),providerNameSchema=z[_0x199ce4(0x86,-0x5b,0xe3,-0x49)]()['min'](0x1,_0x26f978(0xf1,0x332,0x212,0x319))[_0x26f978(0x485,0x2ba,0x3c0,0x41b)](_0x315c43=>!_0x315c43[_0x26f978(0x1e0,0x331,0x2d9,0x364)](':'),'Provider\x20name\x20cannot\x20contain\x20\x27:\x27'),cliConfigSchema=z['object']({'activeProvider':providerNameSchema[_0x26f978(0x22a,0x1a8,0x123,0x173)](),'activeModel':z[_0x26f978(0x31b,0x29d,0x308,0x23f)]()[_0x26f978(0x158,-0x14,0x123,0x12e)](),'apiKey':z[_0x199ce4(0x86,-0xdf,0x0,0xf9)]()['optional'](),'providers':z[_0x26f978(0x16b,0x381,0x2d1,0x3d2)](providerNameSchema,providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema[_0x26f978(-0x9,0x8b,0x123,0x1ed)](),'skills':skillsSettingsSchema[_0x199ce4(-0x15f,-0x1b4,-0x2b5,-0x281)](),'agents':agentsSettingsSchema[_0x199ce4(-0x15f,-0x7f,-0x90,-0xec)](),'commands':commandsSettingsSchema[_0x199ce4(-0x15f,-0x220,-0x27f,-0x2be)](),'skillsEnabled':z[_0x26f978(0x218,0x180,0x2d1,0x244)](z[_0x26f978(0x47b,0x315,0x308,0x2ba)](),z[_0x26f978(0x32c,0x177,0x24d,0x24c)]())[_0x26f978(0x75,0x27b,0x123,0x240)](),'allowedDirs':z[_0x26f978(0x134,0x271,0x1f6,0x2d2)](z['string']())[_0x26f978(0x6,0x291,0x123,-0x9)](),'mcpEnabled':prototypeSafeRecord(z[_0x199ce4(-0x35,0xff,-0x10f,-0x14f)]())[_0x199ce4(-0x15f,-0x18a,-0x96,-0x241)](),'commandsEnabled':z['record'](z[_0x199ce4(0x86,0x14c,0x18,0x1da)](),z['boolean']())['optional'](),'memory':memorySettingsSchema[_0x26f978(-0x35,0x1da,0x123,0x144)](),'session':z[_0x26f978(0x2a0,0x4e1,0x3ee,0x46e)]({'memPersist':z[_0x26f978(0x1b7,0x286,0x24d,0x305)]()[_0x199ce4(-0x15f,-0x10d,-0x12e,-0x7)](),'persistEventLog':z['boolean']()[_0x26f978(0x263,0xc4,0x123,0x260)](),'persistHttpLog':z[_0x199ce4(-0x35,-0x1a8,-0x84,-0x1b)]()['optional']()})[_0x26f978(0x2cf,0x387,0x224,0x2c5)]()[_0x199ce4(-0x15f,-0x5a,-0x16,-0x2ce)](),'requireToolApproval':z[_0x199ce4(-0x35,-0xda,-0xde,0xb5)]()[_0x199ce4(-0x15f,-0x28a,-0x1a9,-0x27d)](),'thinking':z[_0x199ce4(-0xb8,-0x22e,0x4e,-0x1ff)]([_0x199ce4(0x5,-0x148,-0x72,0xd1),_0x26f978(0x1e3,0x2d5,0x30b,0x27d),'MEDIUM',_0x199ce4(0x2f,0xc4,0x123,0xf5)])[_0x26f978(0x221,0xbc,0x123,0xf4)](),'streamingChunks':z[_0x199ce4(-0x35,-0x10b,-0xa5,0xc1)]()[_0x199ce4(-0x15f,-0x87,-0x23b,-0x75)](),'agentsEnabled':z[_0x199ce4(0x4f,0x12e,-0x48,-0xe5)](z[_0x26f978(0x271,0x462,0x308,0x3d8)](),z[_0x26f978(0x29d,0x3aa,0x24d,0x396)]())[_0x199ce4(-0x15f,-0x28,-0x28,-0x2a3)](),'recentModels':z[_0x26f978(0x1a1,0x2a4,0x1f6,0x33e)](recentModelSchema)[_0x26f978(0x145,0x132,0x123,-0x51)](),'lsp':lspConfigSchema[_0x199ce4(-0x15f,-0x19f,-0x146,-0x10a)](),'servers':z[_0x199ce4(0x4f,0x123,0xda,0x19f)](z[_0x26f978(0x2e5,0x3e0,0x308,0x3e1)](),serverEndpointSchema)[_0x26f978(0x260,0x1df,0x123,0x47)](),'ui':z[_0x199ce4(0x16c,0x261,0x30,0x13e)]({'theme':uiThemeSettingsSchema[_0x26f978(-0x37,0xcc,0x123,-0x4d)](),'statusline':statuslineConfigSchema[_0x26f978(0x13e,0x190,0x123,0x194)]()})[_0x26f978(0x216,0x1ba,0x224,0x169)]()[_0x26f978(-0x2b,-0x49,0x123,-0x55)](),'tools':z[_0x26f978(0x25f,0x301,0x2d1,0x26d)](z[_0x199ce4(0x86,0x18c,0xfb,0x15a)](),z['unknown']())[_0x26f978(0x222,0x8f,0x123,0xbd)](),'hooks':hooksConfigSchema[_0x26f978(0x1c,0x21c,0x123,0x1b5)]()})[_0x26f978(0xec,0x13c,0x224,0x30b)](),workspaceOverlaySchema=z[_0x26f978(0x3fa,0x4e4,0x3ee,0x297)]({'root':z['string']()[_0x26f978(0xe2,0x131,0x123,0x225)](),'allowedDirs':z[_0x199ce4(-0x8c,-0x102,-0xcd,0x4a)](z[_0x26f978(0x1bd,0x33f,0x308,0x32f)]())[_0x26f978(0x98,0x50,0x123,0x1d4)](),'activeProvider':providerNameSchema['optional'](),'activeModel':z[_0x26f978(0x2a6,0x293,0x308,0x230)]()['optional'](),'mcp':mcpSettingsSchema[_0x26f978(0x6c,0xe3,0x123,0xe)](),'skills':skillsSettingsSchema[_0x199ce4(-0x15f,-0x173,-0x162,-0x2d8)](),'agents':agentsSettingsSchema[_0x199ce4(-0x15f,-0xff,-0x270,-0x138)](),'commands':commandsSettingsSchema[_0x26f978(0x23b,0x1fa,0x123,-0x10)](),'hooks':hooksConfigSchema[_0x26f978(0x105,0x272,0x123,0x217)](),'memory':memorySettingsSchema['optional'](),'mcpEnabled':prototypeSafeRecord(z[_0x26f978(0x2f0,0x2c1,0x24d,0x3be)]())[_0x26f978(0x228,0x9e,0x123,0x10f)](),'skillsEnabled':z['record'](z[_0x199ce4(0x86,0x86,0x5c,-0xf2)](),z['boolean']())[_0x26f978(0x29,0x29a,0x123,0xb9)](),'agentsEnabled':z[_0x199ce4(0x4f,0x55,0x148,-0xb)](z[_0x26f978(0x3d3,0x367,0x308,0x2b4)](),z['boolean']())[_0x26f978(0x1b7,0x15f,0x123,0xcd)](),'commandsEnabled':z['record'](z[_0x26f978(0x215,0x2f7,0x308,0x227)](),z['boolean']())[_0x199ce4(-0x15f,-0x83,-0x2a3,-0x270)]()})['passthrough'](),PROTOTYPE_SENSITIVE_NAMES2=new Set([...Object[_0x26f978(0x209,0xa,0x15b,0xfe)](Object[_0x199ce4(0xe1,0x22e,-0x77,0x6b)]),'prototype']);function buildDescription(_0x3e761c){const _0x46b9af={_0x1750b9:0x2d1,_0x2cacc6:0x2a0,_0x2af0e9:0x279,_0x2382dc:0x1d1,_0x2b7f12:0x5c2,_0x2fbc4c:0x4c3,_0x4255fa:0x47f,_0x1151be:0x380,_0xd73ca7:0x162,_0x4283fb:0x564,_0x2fdc73:0x655,_0x55558b:0x1f,_0x437d30:0xb9,_0x3d7196:0x10,_0x385382:0xc3,_0x2c13e2:0x17b,_0x2c9e9d:0x27,_0x1e076e:0xc9},_0x3df343={_0x399347:0xde,_0x35da15:0x4c};if(_0x3e761c['length']===0x0)return[_0x513e24(_0x46b9af._0x1750b9,_0x46b9af._0x2cacc6,_0x46b9af._0x2af0e9,_0x46b9af._0x2382dc),_0x513e24(0x564,_0x46b9af._0x2b7f12,0x4bc,0x464),_0x513e24(0x36a,0x4ce,_0x46b9af._0x2fbc4c,0x251)][_0x513e24(0x3b5,_0x46b9af._0x4255fa,0x428,0x3fe)]('\x0a');const _0x1af1e0=[_0x513e24(_0x46b9af._0x1750b9,_0x46b9af._0x1151be,0x3c7,_0x46b9af._0xd73ca7),_0x513e24(_0x46b9af._0x4283fb,0x6c8,0x644,_0x46b9af._0x2fdc73),_0x3b1dd4(-0x8a,_0x46b9af._0x55558b,-_0x46b9af._0x437d30,_0x46b9af._0x3d7196),..._0x3e761c[_0x3b1dd4(_0x46b9af._0x385382,-0xb0,0x62,_0x46b9af._0x2c13e2)](_0x4ad521=>_0x4ad521[_0x513e24(0x503,0x464,0x438,0x577)]?'-\x20'+_0x4ad521[_0x513e24(0x343,0x2d4,0x2a0,0x4a5)]+'\x20'+_0x4ad521[_0x513e24(0x503,0x4c7,0x393,0x402)]+':\x20'+_0x4ad521[_0x513e24(0x3c8,0x26f,0x32c,0x4d0)]:'-\x20'+_0x4ad521['name']+':\x20'+_0x4ad521['description'])];function _0x3b1dd4(_0xf64618,_0x16e96a,_0x653285,_0x48cd78){return _0x26f978(_0xf64618-0x1c,_0x16e96a-0x109,_0x653285- -0x20d,_0x16e96a);}function _0x513e24(_0x2a38fe,_0x1e4a76,_0x392de2,_0x3dbed5){return _0x199ce4(_0x2a38fe-0x403,_0x1e4a76-_0x3df343._0x399347,_0x392de2,_0x3dbed5-_0x3df343._0x35da15);}return _0x1af1e0[_0x3b1dd4(-0x74,-0xd7,_0x46b9af._0x2c9e9d,_0x46b9af._0x1e076e)]('\x0a');}function createInvokeCommandTool(_0x305564){const _0x161b6c={_0x58ccbf:0x3f2,_0x4724fc:0x2c3,_0x55c276:0x9d,_0x6b117d:0x1b9,_0x4ba51a:0x11b,_0x529d6c:0x378,_0x1fcfc7:0x330,_0x47f656:0x321,_0x8be54a:0x257,_0x47993e:0x513,_0xd7d94c:0x4b4,_0xbe42bb:0x9b,_0x291a60:0x110,_0x4dcd8b:0x4e},_0x40751a={_0x177023:0x731,_0x33ab58:0x505,_0x1f4da5:0x150,_0x5138c7:0x1c,_0x56e66b:0x53c,_0x47fabc:0x346,_0x5da57a:0x48d,_0x184f28:0x457,_0x3fc874:0x2e,_0x488421:0x49,_0x13e773:0xa4,_0xef4cc9:0x3d,_0x571bea:0x68,_0x4de2cd:0x57,_0x1e4742:0x9c,_0x243d89:0x44a,_0x16fece:0x3af},_0x41b27e={_0x2d80d9:0x1ee},_0x3fab45={_0xd96cc2:0x140,_0x13a144:0xdc},_0x53d4fe={_0x5b5fe7:0x1a7,_0x149221:0x20b},_0x438817=new Map(_0x305564[_0x122bd1(0x53c,_0x161b6c._0x58ccbf,0x3b0,_0x161b6c._0x4724fc)][_0xca3a35(0x292,0xbe,_0x161b6c._0x55c276,0x1a3)](_0x168fa5=>[_0x168fa5['id'],_0x168fa5])),_0x10c132=buildDescription(_0x305564[_0xca3a35(0x180,0x1f,_0x161b6c._0x6b117d,_0x161b6c._0x4ba51a)]);function _0xca3a35(_0x12c0d7,_0x932232,_0x50c4b7,_0x16de36){return _0x199ce4(_0x16de36-0x1b6,_0x932232-0x17e,_0x12c0d7,_0x16de36-0x1cd);}function _0x122bd1(_0x24f152,_0x24854a,_0x3e99dd,_0x2defa8){return _0x26f978(_0x24f152-_0x53d4fe._0x5b5fe7,_0x24854a-0x9a,_0x24854a-_0x53d4fe._0x149221,_0x2defa8);}return defineTool({'name':_0x122bd1(_0x161b6c._0x529d6c,_0x161b6c._0x1fcfc7,0x21d,_0x161b6c._0x47f656),'description':_0x10c132,'inputSchema':{'type':_0xca3a35(0x26c,_0x161b6c._0x8be54a,0x32c,0x322),'properties':{'name':{'type':_0x122bd1(0x429,_0x161b6c._0x47993e,0x4fa,_0x161b6c._0xd7d94c)},'args':{'type':_0xca3a35(0x13f,0x208,0x197,0x23c)}},'required':[_0xca3a35(_0x161b6c._0xbe42bb,_0x161b6c._0x291a60,_0x161b6c._0x4dcd8b,0xf6)]},async *'execute'(_0x1d6d72){const _0x372eec=_0x438817['get'](_0x1d6d72[_0x12ea31(0x316,0x387,0x33c,0x457)]);if(!_0x372eec){const _0x3e2823=Array[_0x12ea31(_0x40751a._0x177023,0x703,_0x40751a._0x33ab58,0x639)](_0x438817[_0x10d3ef(-_0x40751a._0x1f4da5,_0x40751a._0x5138c7,-0x1c6,-0x70)]())['join'](',\x20');throw new ToolExecutionError(_0x10d3ef(-0xef,-0x24,-0x177,-0x184)+_0x1d6d72[_0x12ea31(_0x40751a._0x56e66b,_0x40751a._0x47fabc,_0x40751a._0x5da57a,_0x40751a._0x184f28)]+_0x10d3ef(0x64,_0x40751a._0x3fc874,0x34,-0xe5)+_0x3e2823,{'name':_0x1d6d72[_0x10d3ef(-0x1c5,-_0x40751a._0x488421,-_0x40751a._0x13e773,-0x231)]});}const _0xc2ec97=await _0x305564['loadCommand'](_0x372eec),_0x5477e9=_0x1d6d72[_0x10d3ef(_0x40751a._0xef4cc9,-_0x40751a._0x571bea,-_0x40751a._0x4de2cd,_0x40751a._0x1e4742)]??'',_0xb4b6fe=renderCommandInstructions({'instructions':_0xc2ec97['instructions'],'argumentsText':_0x5477e9,'argumentNames':_0xc2ec97[_0x12ea31(0x393,0x441,0x365,0x3a1)]});function _0x10d3ef(_0x376678,_0x49f582,_0x22d924,_0x1e6c96){return _0xca3a35(_0x22d924,_0x49f582-_0x3fab45._0xd96cc2,_0x22d924-_0x3fab45._0x13a144,_0x376678- -0x2bb);}yield createToolOutput(_0xb4b6fe,{'id':_0xc2ec97['id'],'name':_0xc2ec97['name'],'path':_0x372eec[_0x10d3ef(-0x8f,0xbd,-0x154,-0x4d)][_0x12ea31(_0x40751a._0x243d89,_0x40751a._0x16fece,0x56e,0x3f3)]});function _0x12ea31(_0x1f7522,_0x2a88ae,_0x2ee22d,_0x39169a){return _0x122bd1(_0x1f7522-0x44,_0x39169a-0x8a,_0x2ee22d-_0x41b27e._0x2d80d9,_0x2a88ae);}return void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x44beaf,rename as _0x4b836c,stat as _0x31b590,writeFile as _0x459dad}from'fs/promises';import*as _0x47c7f9 from'path';function detectEol(_0x3c67a9){const _0x3a0e87={_0x1ff6d1:0x1be,_0x9ca54a:0x24,_0x3bac2a:0xb3,_0x77a352:0x10e,_0x4cfaa8:0x465,_0x1d5fa4:0x2ed},_0x42c7da={_0x4209bb:0x77,_0x4fc122:0x1e6,_0x10308f:0x107},_0x17514b={_0xc9394d:0x80,_0xee4039:0x1b6};function _0x16d2dc(_0x249e83,_0x5d4b52,_0x487912,_0x501977){return _0x26f978(_0x249e83-0xfe,_0x5d4b52-_0x17514b._0xc9394d,_0x501977- -_0x17514b._0xee4039,_0x487912);}function _0x30d9d2(_0x5a4e32,_0x1c9661,_0x30f00f,_0x3a51a9){return _0x26f978(_0x5a4e32-_0x42c7da._0x4209bb,_0x1c9661-_0x42c7da._0x4fc122,_0x30f00f- -_0x42c7da._0x10308f,_0x5a4e32);}return/\r\n/[_0x30d9d2(0x200,0x28f,0x1b3,_0x3a0e87._0x1ff6d1)](_0x3c67a9[_0x16d2dc(0x68,-_0x3a0e87._0x9ca54a,-0x9d,_0x3a0e87._0x3bac2a)](_0x16d2dc(0x266,0x222,-0x50,_0x3a0e87._0x77a352)))?_0x30d9d2(_0x3a0e87._0x4cfaa8,0x469,_0x3a0e87._0x1d5fa4,0x2e5):'lf';}function normalizeToLf(_0x305596){const _0x1ac341={_0x47cb84:0xe2},_0x18f569={_0x1ccab0:0x18c,_0x36ee82:0x1c6};function _0x5da73c(_0x4efa50,_0x468713,_0x598565,_0xdcb13d){return _0x26f978(_0x4efa50-_0x18f569._0x1ccab0,_0x468713-_0x18f569._0x36ee82,_0x468713- -0x37f,_0xdcb13d);}return _0x305596[_0x5da73c(-0xb,-_0x1ac341._0x47cb84,-0x184,-0x94)](/\r\n/g,'\x0a');}function convertEol(_0x52130c,_0x4ec257){const _0x1b6681={_0x1a2eef:0x70,_0x36e1dd:0x192,_0xc53952:0x197},_0x510a68={_0x2756c1:0xa2,_0x2f28f1:0x161};function _0xd267af(_0x49d29d,_0x730525,_0x1e1c6e,_0x4677d0){return _0x199ce4(_0x49d29d- -_0x510a68._0x2756c1,_0x730525-0xcc,_0x4677d0,_0x4677d0-_0x510a68._0x2f28f1);}return _0x4ec257===_0xd267af(0xd0,_0x1b6681._0x1a2eef,_0x1b6681._0x36e1dd,_0x1b6681._0xc53952)?_0x52130c['replace'](/\n/g,'\x0d\x0a'):_0x52130c;}async function atomicWrite(_0x5da9fd,_0x5aba30){const _0x5a864e={_0x182daf:0x4e2,_0x47e3d7:0x3e1,_0x112ee3:0x1ef,_0x52df46:0x29a,_0x5d8fbc:0x1ce,_0x1022bf:0x21a,_0x4f8830:0x235,_0x419576:0x2cf,_0x12feae:0x32c,_0x521817:0x21c},_0x56d75d={_0x1f4b17:0x14,_0x2b9117:0x66},_0x5816ea={_0x17df97:0x140};function _0x4bc48b(_0x888fc5,_0x21143e,_0x48488d,_0x119fab){return _0x199ce4(_0x48488d-0x15c,_0x21143e-_0x5816ea._0x17df97,_0x21143e,_0x119fab-0x1e9);}const _0x16b3a0=_0x47c7f9[_0x50c12c(_0x5a864e._0x182daf,_0x5a864e._0x47e3d7,0x46c,0x460)](_0x5da9fd),_0x45695f=_0x47c7f9[_0x50c12c(_0x5a864e._0x112ee3,_0x5a864e._0x52df46,0x322,0x2b6)](_0x16b3a0,_0x4bc48b(0x3af,_0x5a864e._0x5d8fbc,0x247,0x232)+_0x47c7f9[_0x50c12c(0x1ba,0x2f3,0x2ef,0x23c)](_0x5da9fd)+'.'+Date['now']()+'.'+Math[_0x4bc48b(0x32e,0x313,_0x5a864e._0x1022bf,_0x5a864e._0x4f8830)]()[_0x50c12c(0x2e1,_0x5a864e._0x419576,0x439,_0x5a864e._0x12feae)](0x24)[_0x4bc48b(0x157,_0x5a864e._0x521817,0x16d,0xc3)](0x2));function _0x50c12c(_0x38a812,_0x1dd577,_0x16b786,_0x344e09){return _0x26f978(_0x38a812-_0x56d75d._0x1f4b17,_0x1dd577-0xea,_0x1dd577-_0x56d75d._0x2b9117,_0x344e09);}await _0x459dad(_0x45695f,_0x5aba30),await _0x4b836c(_0x45695f,_0x5da9fd);}function sha256(_0x28f0fa){const _0x1a1232={_0x4c75cd:0x643,_0xfa2df0:0x4ec,_0x5438c3:0x57f},_0x495ed5={_0x372b93:0x59c},_0x131fd9={_0x5a7ae7:0x355};function _0x2a748c(_0x5f51d2,_0x1c8978,_0x577dd3,_0x2b7765){return _0x26f978(_0x5f51d2-0xf,_0x1c8978-0x117,_0x2b7765- -_0x131fd9._0x5a7ae7,_0x577dd3);}function _0x3adb61(_0x37b769,_0x5ebbe0,_0x274484,_0x1f8876){return _0x199ce4(_0x5ebbe0-_0x495ed5._0x372b93,_0x5ebbe0-0x1ca,_0x1f8876,_0x1f8876-0x1d0);}return createHash(_0x3adb61(0x727,0x643,0x690,_0x1a1232._0x4c75cd))['update'](_0x28f0fa)[_0x2a748c(-0xba,-0x118,0x27,0x8)](_0x3adb61(0x3c9,_0x1a1232._0xfa2df0,_0x1a1232._0x5438c3,0x546));}function countLines(_0xaae927){const _0x4705f0={_0x129890:0x7c,_0x135ae6:0x3dc,_0x5c5c5e:0x461,_0x41fdda:0x92,_0x564f6b:0x14d,_0x2823a4:0x63,_0x3aaccf:0x4f1,_0x49a15b:0x435},_0xf337ad={_0x210778:0x121,_0x2250e3:0x76},_0x691fb0=_0xaae927[_0x19f118(_0x4705f0._0x129890,-0x18e,-0xc1,-0xe4)](/\n$/,'');function _0x19f118(_0x5708dd,_0x263497,_0x3e98e6,_0x1ed69a){return _0x26f978(_0x5708dd-_0xf337ad._0x210778,_0x263497-_0xf337ad._0x2250e3,_0x1ed69a- -0x381,_0x5708dd);}function _0x3e739a(_0x4fe5e3,_0x45b052,_0x263835,_0x21eb95){return _0x26f978(_0x4fe5e3-0xbd,_0x45b052-0xeb,_0x263835-0x21b,_0x4fe5e3);}return _0x691fb0[_0x3e739a(0x53d,_0x4705f0._0x135ae6,_0x4705f0._0x5c5c5e,0x3e0)]===0x0?0x0:_0x691fb0[_0x19f118(-_0x4705f0._0x41fdda,0x80,_0x4705f0._0x564f6b,_0x4705f0._0x2823a4)]('\x0a')[_0x3e739a(_0x4705f0._0x3aaccf,_0x4705f0._0x49a15b,_0x4705f0._0x5c5c5e,0x46b)];}function calculateLineNumbers(_0x119ca2,_0x523413,_0x576ea9,_0x276b56){const _0x344768={_0x307aca:0x4ab,_0x5610e6:0x4f1,_0x4fa116:0x4b1,_0x3d6d7a:0x3dc},_0x2b2d2a={_0x133e28:0x1e0},_0x1d2c30={_0x51c25c:0x13f,_0x4f4eef:0x100},_0x1a0ee6=_0x119ca2[_0xeedd86(0x568,_0x344768._0x307aca,_0x344768._0x5610e6,_0x344768._0x4fa116)](0x0,_0x276b56)['split']('\x0a')[_0xeedd86(_0x344768._0x3d6d7a,0x45e,0x581,0x399)];function _0x29c967(_0x1bd46a,_0x1e8b08,_0x147ec3,_0x5973be){return _0x26f978(_0x1bd46a-_0x1d2c30._0x51c25c,_0x1e8b08-0xa5,_0x1bd46a- -_0x1d2c30._0x4f4eef,_0x147ec3);}const _0x24894b=countLines(_0x523413),_0x594559=countLines(_0x576ea9);function _0xeedd86(_0x3af2b2,_0x4a40b1,_0xe07968,_0x8be935){return _0x26f978(_0x3af2b2-0x153,_0x4a40b1-_0x2b2d2a._0x133e28,_0x4a40b1-0x218,_0x3af2b2);}return{'oldStartLine':_0x1a0ee6,'oldEndLine':_0x1a0ee6+_0x24894b-0x1,'newStartLine':_0x1a0ee6,'newEndLine':_0x1a0ee6+_0x594559-0x1,'oldLineCount':_0x24894b,'newLineCount':_0x594559};}function createFileEditTool(_0x122ba6={}){const _0x51466e={_0x23ec13:0x46,_0x3c6bb2:0x18c,_0x4cb446:0x1e,_0x52ada8:0x125,_0x245f26:0x725,_0x10f350:0x41f,_0x9cc20:0x56b,_0x37002c:0x66c,_0xc308bf:0x7da,_0x5cb060:0x822,_0x3acba2:0xfd,_0x5999d6:0x680,_0x3b209b:0x549,_0x1a66e0:0x620,_0x5a97f3:0x30,_0x9bd6ab:0x22f,_0x3ad485:0x14f,_0x16226c:0x20c,_0xce3596:0x11,_0x1ea1b1:0x1c2,_0x1320ac:0xc9},_0x31e2b4={_0xb4ceec:0xea,_0x39f8a4:0x143,_0x409e15:0x136,_0x46812c:0x18b,_0x18ec01:0x2c2,_0x5132df:0x174,_0x59ef70:0x1a8,_0x54b257:0x558,_0x4e1320:0x43c,_0x4381ae:0x560,_0x107b23:0x4eb,_0x23952a:0x53b,_0x182946:0x1bf,_0x3e0fcb:0x361,_0x2f2df1:0x2d5,_0x116de5:0x171,_0xc05a24:0x52,_0x47cc43:0x3be,_0x2ef434:0x49f,_0x37e09b:0x51c,_0x3e6984:0x65f,_0x46ca40:0x348,_0x27970b:0x43c,_0x4a38fc:0x281,_0x1ef217:0x368,_0x32ee5c:0x3f3,_0x6dc8a4:0x386,_0x286dd9:0x21,_0x42e663:0x1bc,_0x41cabe:0x21e,_0x2a9186:0x475,_0x40d6e4:0x369,_0xbeeca1:0x2f9,_0x504e61:0x319,_0x2f74f9:0x350,_0x44d235:0x4b8,_0xac633f:0x2c8,_0x224638:0x33d,_0x251fcf:0x3b1,_0x1becf3:0x263,_0x3722c1:0x168,_0x119e77:0x86,_0x11b072:0x14d,_0x488d62:0x197,_0x30722e:0xd,_0x14eb10:0x207},_0x54974f={_0x408f2b:0x7c,_0x16dabb:0x3ec},_0x973667=_0x47c7f9['resolve'](_0x122ba6[_0x3cc4f3(-_0x51466e._0x23ec13,-_0x51466e._0x3c6bb2,-_0x51466e._0x4cb446,-_0x51466e._0x52ada8)]??process['cwd']());function _0x3cc4f3(_0x319414,_0x1262a6,_0x2f1d63,_0x2a531a){return _0x26f978(_0x319414-0xb3,_0x1262a6-0x5b,_0x2a531a- -0x31f,_0x1262a6);}const _0x5c6941=_0x122ba6[_0x4587ed(0x852,0x67d,_0x51466e._0x245f26,0x75c)]??[],_0x2c0823=_0x122ba6['name']??_0x4587ed(0x666,_0x51466e._0x10f350,_0x51466e._0x9cc20,0x62f);function _0x4587ed(_0x4a83fc,_0x6b1675,_0x3a1f12,_0x45db28){return _0x26f978(_0x4a83fc-0xd,_0x6b1675-_0x54974f._0x408f2b,_0x3a1f12-_0x54974f._0x16dabb,_0x6b1675);}return defineTool({'name':_0x2c0823,'description':'Edit\x20a\x20UTF-8\x20text\x20file\x20in\x20the\x20workspace\x20or\x20allowed\x20directories\x20by\x20replacing\x20the\x20first\x20exact\x20text\x20segment.','inputSchema':{'type':_0x4587ed(0x7d8,_0x51466e._0x37002c,_0x51466e._0xc308bf,_0x51466e._0x5cb060),'properties':{'filePath':{'type':'string'},'description':{'type':'string','description':_0x3cc4f3(-0x72,-0x17b,-_0x51466e._0x3acba2,-0x1c6)},'oldText':{'type':'string'},'newText':{'type':_0x4587ed(_0x51466e._0x5999d6,0x63f,0x6f4,0x7bb)},'dryRun':{'type':_0x4587ed(0x6ee,_0x51466e._0x3b209b,0x639,_0x51466e._0x1a66e0)}},'required':[_0x3cc4f3(-_0x51466e._0x5a97f3,-_0x51466e._0x9bd6ab,-_0x51466e._0x3ad485,-0x157),_0x3cc4f3(_0x51466e._0x16226c,_0x51466e._0xce3596,_0x51466e._0x1ea1b1,_0x51466e._0x1320ac),'newText']},async *'execute'(_0x567aa5){const _0x183210={_0x1dd382:0x3e,_0x4faf5b:0x125},_0x36e8e4={_0x4525d3:0xe3,_0x343270:0x16a},_0x20181f=resolveAllowedPath(_0x973667,_0x5c6941,_0x567aa5[_0x84cfee(_0x31e2b4._0xb4ceec,_0x31e2b4._0x39f8a4,_0x31e2b4._0x409e15,0x1a)]);await assertWorkspaceFile(_0x20181f);const _0x1a80b9=await _0x31b590(_0x20181f),_0x1cc7e7=await _0x44beaf(_0x20181f),_0x5d0e7d=detectEol(_0x1cc7e7);function _0x84cfee(_0xe880eb,_0xc16276,_0x4a0c0a,_0x36dbb2){return _0x4587ed(_0xe880eb-_0x36e8e4._0x4525d3,_0x36dbb2,_0xe880eb- -0x4ca,_0x36dbb2-_0x36e8e4._0x343270);}const _0x1ae0cf=normalizeToLf(_0x1cc7e7[_0x84cfee(_0x31e2b4._0x46812c,_0x31e2b4._0x18ec01,_0x31e2b4._0x5132df,_0x31e2b4._0x59ef70)](_0xb7b495(_0x31e2b4._0x54b257,_0x31e2b4._0x4e1320,0x3c6,0x5b6))),_0x14050a=normalizeToLf(_0x567aa5[_0xb7b495(0x534,_0x31e2b4._0x4381ae,_0x31e2b4._0x107b23,_0x31e2b4._0x23952a)]),_0x3e7ebe=normalizeToLf(_0x567aa5['newText']),_0x4de9d6=_0x1ae0cf['indexOf'](_0x14050a);function _0xb7b495(_0x1a4b84,_0xc8f450,_0x3393fe,_0x33a5aa){return _0x4587ed(_0x1a4b84-_0x183210._0x1dd382,_0x3393fe,_0xc8f450- -0x274,_0x33a5aa-_0x183210._0x4faf5b);}if(_0x4de9d6===-0x1){const _0x46590f=_0x14050a[_0x84cfee(0x1b5,0xb7,0xc0,0xac)](0x0,0x64)[_0x84cfee(_0x31e2b4._0x182946,0xe1,0x2fe,0x24c)](/\n/g,'\x5cn');throw new ToolExecutionError(_0xb7b495(_0x31e2b4._0x3e0fcb,0x3a0,0x249,_0x31e2b4._0x2f2df1)+_0x46590f+(_0x14050a['length']>0x64?_0x84cfee(0xe2,0x1af,0xc5,0x2a):'')+'\x22',{'filePath':_0x567aa5['filePath']});}const _0x36f68f=_0x1ae0cf['slice'](0x0,_0x4de9d6)+_0x3e7ebe+_0x1ae0cf[_0x84cfee(0x1b5,_0x31e2b4._0x116de5,_0x31e2b4._0xc05a24,0x225)](_0x4de9d6+_0x14050a[_0xb7b495(0x326,_0x31e2b4._0x47cc43,_0x31e2b4._0x2ef434,0x33d)]),_0x7c3b32=convertEol(_0x36f68f,_0x5d0e7d),_0x203f47=Buffer[_0xb7b495(0x3a5,_0x31e2b4._0x37e09b,0x545,_0x31e2b4._0x3e6984)](_0x7c3b32,_0xb7b495(_0x31e2b4._0x46ca40,_0x31e2b4._0x27970b,0x536,0x312)),_0x4494d6=sha256(_0x1cc7e7),_0x52f29d=sha256(_0x203f47),_0x208eb5=_0x4494d6===_0x52f29d,_0x20cacb=_0x567aa5['dryRun']??![];return!_0x20cacb&&!_0x208eb5&&await atomicWrite(_0x20181f,_0x203f47),yield createToolOutput(_0x208eb5?_0x84cfee(0x255,0x1e6,0x2bb,0x2fb):_0x20cacb?_0x84cfee(0x250,0x3bf,0x22f,0x31a):_0x84cfee(_0x31e2b4._0x4a38fc,_0x31e2b4._0x1ef217,_0x31e2b4._0x32ee5c,_0x31e2b4._0x6dc8a4),{'filePath':_0x567aa5[_0x84cfee(0xea,0x10c,_0x31e2b4._0x286dd9,_0x31e2b4._0x42e663)],'resolvedPath':_0x20181f,'created':_0x1a80b9[_0x84cfee(0x31b,_0x31e2b4._0x41cabe,_0x31e2b4._0x2a9186,0x3bf)][_0xb7b495(0x3a0,_0x31e2b4._0x40d6e4,0x40f,0x268)](),'modified':_0x1a80b9[_0x84cfee(_0x31e2b4._0xbeeca1,_0x31e2b4._0x504e61,_0x31e2b4._0x2f74f9,0x2b7)][_0xb7b495(_0x31e2b4._0x44d235,_0x31e2b4._0x40d6e4,_0x31e2b4._0xac633f,0x3a2)](),'size':_0x1a80b9[_0xb7b495(0x382,_0x31e2b4._0x224638,_0x31e2b4._0x251fcf,_0x31e2b4._0x1becf3)],'eol':_0x5d0e7d,'oldTextLength':_0x14050a[_0x84cfee(_0x31e2b4._0x3722c1,_0x31e2b4._0x119e77,_0x31e2b4._0x11b072,_0x31e2b4._0x488d62)],'newTextLength':_0x3e7ebe[_0x84cfee(0x168,_0x31e2b4._0x30722e,0x2c2,0xbc)],'bytesWritten':_0x208eb5||_0x20cacb?0x0:_0x203f47[_0x84cfee(0x168,0x1c4,_0x31e2b4._0x14eb10,0x3d)],'beforeSha':_0x4494d6,'afterSha':_0x52f29d,'dryRun':_0x20cacb,'noChange':_0x208eb5,'lineNumbers':calculateLineNumbers(_0x1ae0cf,_0x14050a,_0x3e7ebe,_0x4de9d6)}),void 0x0;}});}import{mkdir as _0x9f6ab1,rename as _0x286357,stat as _0x46c8de,writeFile as _0x401dcb}from'fs/promises';import*as _0x1209a7 from'path';async function atomicWrite2(_0x373e1e,_0x2074af){const _0x19b0e2={_0x336f5b:0x5ff,_0x30fd5e:0x53f,_0x56ca18:0x749,_0x270a0e:0x152,_0x4cae5b:0x111,_0x105f7f:0x6df,_0x1167b9:0x731,_0x131615:0x413,_0x4c37d5:0x236,_0x8efc94:0x3b,_0x44a4c2:0x15a,_0x1ec21c:0x5c4,_0x35adaa:0x44a,_0x2e7899:0x106,_0x4c8f90:0x241,_0x45e54d:0x517,_0x2b1441:0x5b0,_0x49d4ac:0x569},_0x53d199={_0x57c273:0x25a,_0x17975c:0xc7},_0x3db441={_0x4fe3b8:0x284},_0x5afad0=_0x1209a7[_0x50d98b(_0x19b0e2._0x336f5b,0x656,_0x19b0e2._0x30fd5e,_0x19b0e2._0x56ca18)](_0x373e1e);await _0x9f6ab1(_0x5afad0,{'recursive':!![]});function _0x50d98b(_0x19dcda,_0x2a59b6,_0x11dc0a,_0x1a6785){return _0x26f978(_0x19dcda-0x188,_0x2a59b6-0x14a,_0x19dcda-_0x3db441._0x4fe3b8,_0x2a59b6);}const _0x4aeba2=_0x1209a7[_0x4dbdcd(_0x19b0e2._0x270a0e,_0x19b0e2._0x4cae5b,0x2bd,0x20c)](_0x5afad0,_0x50d98b(0x5f1,0x761,_0x19b0e2._0x105f7f,_0x19b0e2._0x1167b9)+_0x1209a7[_0x50d98b(0x511,0x549,0x43d,_0x19b0e2._0x131615)](_0x373e1e)+'.'+Date[_0x4dbdcd(0x15a,_0x19b0e2._0x4c37d5,_0x19b0e2._0x8efc94,_0x19b0e2._0x44a4c2)]()+'.'+Math[_0x50d98b(_0x19b0e2._0x1ec21c,0x5b5,_0x19b0e2._0x35adaa,0x5d0)]()[_0x4dbdcd(0x2f0,_0x19b0e2._0x2e7899,0x305,_0x19b0e2._0x4c8f90)](0x24)[_0x50d98b(_0x19b0e2._0x45e54d,_0x19b0e2._0x2b1441,_0x19b0e2._0x49d4ac,0x3a4)](0x2));function _0x4dbdcd(_0x8d17f9,_0xf37e23,_0x29cff9,_0x35bfa5){return _0x199ce4(_0x35bfa5-_0x53d199._0x57c273,_0xf37e23-0x130,_0x29cff9,_0x35bfa5-_0x53d199._0x17975c);}await _0x401dcb(_0x4aeba2,_0x2074af),await _0x286357(_0x4aeba2,_0x373e1e);}function createFileNewTool(_0x478be1={}){const _0x24542a={_0x10c00c:0xdb,_0x284214:0x2b2,_0x56bf66:0x40e,_0x437a80:0x1fc,_0x4a1b20:0x2c9,_0x16f6a0:0x2d9,_0x22c583:0x242,_0x2af927:0x168,_0x12a35f:0x2eb,_0x2e2311:0x4d,_0x3ad4c4:0xcc},_0x25bb55={_0x4aae6d:0x391,_0x1ff383:0x251,_0xee102f:0x362,_0x5a25d5:0x4a7,_0x2e15ce:0x558,_0x239ab2:0x5af,_0x58834f:0x35b,_0xf2ae7f:0x42d,_0x19fa17:0x51b,_0x50c47a:0x314,_0x270c21:0x36a,_0x3598bc:0x2aa,_0x476a12:0x67a,_0x2941ee:0x1a5,_0x3245fe:0x128,_0x3b23aa:0x175,_0x5e816a:0x629,_0x554c6e:0x76f,_0x47af98:0x669,_0x3d58ac:0x435,_0x4dd8fa:0x335,_0x2a3da8:0x385,_0x40be11:0x429,_0x328d08:0x57e,_0x6dc10f:0x2bb,_0x583c71:0x2cf,_0x46fbb9:0x131,_0x3b90a7:0x149},_0x409b3e={_0x386db9:0x1b0,_0x8f05e4:0x28,_0x3b6362:0x8f},_0x2ef790={_0x53e5cf:0x1a},_0x41b175={_0x450a81:0x1e,_0x18cb24:0x286};function _0x3b06ff(_0x3dce92,_0x1a5115,_0x43ffb4,_0x47c947){return _0x26f978(_0x3dce92-_0x41b175._0x450a81,_0x1a5115-0x7c,_0x43ffb4- -_0x41b175._0x18cb24,_0x1a5115);}const _0x18c076=_0x1209a7[_0x3b06ff(-0x1cd,-0x13,-0xb1,-0x19d)](_0x478be1[_0x3b06ff(-0x170,0xb2,-0x8c,_0x24542a._0x10c00c)]??process[_0x10c8c0(_0x24542a._0x284214,_0x24542a._0x56bf66,0x382,0x348)]());function _0x10c8c0(_0x47954b,_0x32a433,_0x27ac11,_0x222e25){return _0x199ce4(_0x27ac11-0x2e3,_0x32a433-0x90,_0x47954b,_0x222e25-_0x2ef790._0x53e5cf);}const _0x258a77=_0x478be1['allowedDirs']??[],_0x1fd9a3=_0x478be1['name']??_0x3b06ff(_0x24542a._0x437a80,-0x43,0x135,0x199);return defineTool({'name':_0x1fd9a3,'description':_0x10c8c0(0x2bb,0x391,0x279,_0x24542a._0x4a1b20),'inputSchema':{'type':_0x3b06ff(_0x24542a._0x16f6a0,_0x24542a._0x22c583,_0x24542a._0x2af927,0x2d7),'properties':{'filePath':{'type':_0x3b06ff(0x198,0x1e4,0x82,0x29)},'content':{'type':'string'}},'required':[_0x10c8c0(0x1c6,0x29c,0x229,_0x24542a._0x12a35f),_0x3b06ff(-_0x24542a._0x2e2311,-0x107,0x26,-_0x24542a._0x3ad4c4)]},async *'execute'(_0x468342){const _0x24f6c0={_0x2be93e:0x119,_0x1dc6f0:0x6a9,_0x45449c:0xa4},_0x14ed77=resolveAllowedPath(_0x18c076,_0x258a77,_0x468342[_0x5b8677(_0x25bb55._0x4aae6d,_0x25bb55._0x1ff383,_0x25bb55._0xee102f,0x299)]),_0x8aba46=await _0x46c8de(_0x14ed77)[_0x4a70b9(0x572,_0x25bb55._0x5a25d5,_0x25bb55._0x2e15ce,0x47c)](()=>!![])[_0x4a70b9(_0x25bb55._0x239ab2,0x661,0x638,0x698)](()=>![]),_0x5b4a04=Buffer[_0x5b8677(_0x25bb55._0x58834f,_0x25bb55._0xf2ae7f,_0x25bb55._0x19fa17,0x505)](_0x468342['content'],'utf8');await atomicWrite2(_0x14ed77,_0x5b4a04);function _0x5b8677(_0x38b379,_0xe1aba1,_0x29d8dc,_0x1c7533){return _0x10c8c0(_0x38b379,_0xe1aba1-_0x409b3e._0x386db9,_0xe1aba1-_0x409b3e._0x8f05e4,_0x1c7533-_0x409b3e._0x3b6362);}function _0x4a70b9(_0xfca4f2,_0x2afa55,_0x1bd8a6,_0x3ca9c3){return _0x3b06ff(_0xfca4f2-_0x24f6c0._0x2be93e,_0x3ca9c3,_0x1bd8a6-_0x24f6c0._0x1dc6f0,_0x3ca9c3-_0x24f6c0._0x45449c);}return yield createToolOutput(_0x5b8677(_0x25bb55._0x50c47a,_0x25bb55._0x270c21,0x4d4,_0x25bb55._0x3598bc)+_0x468342[_0x4a70b9(0x57d,0x479,0x5eb,_0x25bb55._0x476a12)]+'.',{'filePath':_0x468342[_0x5b8677(_0x25bb55._0x2941ee,0x251,_0x25bb55._0x3245fe,_0x25bb55._0x3b23aa)],'resolvedPath':_0x14ed77,'bytes':_0x5b4a04[_0x4a70b9(_0x25bb55._0x5e816a,_0x25bb55._0x554c6e,_0x25bb55._0x47af98,0x4f4)],'lines':_0x468342[_0x5b8677(_0x25bb55._0x3d58ac,_0x25bb55._0x4dd8fa,_0x25bb55._0x2a3da8,_0x25bb55._0x40be11)][_0x5b8677(_0x25bb55._0x328d08,0x46d,0x323,0x347)](/\r?\n/)[_0x5b8677(_0x25bb55._0x6dc10f,_0x25bb55._0x583c71,0x40f,0x412)],'created':new Date()[_0x5b8677(0x1b2,0x27a,_0x25bb55._0x46fbb9,_0x25bb55._0x3b90a7)](),'overwritten':_0x8aba46}),void 0x0;}});}import{readFile as _0xcbe2bd,stat as _0x5bf091}from'fs/promises';import*as _0x4ad524 from'path';function stripUtfBom(_0x162c77){const _0x293c0a={_0x48fba7:0x3a4,_0x406768:0x609,_0x3d82c6:0x48e},_0x2c4a60={_0x145093:0x416,_0x342709:0x120,_0x46acfe:0x78};function _0xf28fcb(_0x121bdf,_0x52170f,_0x2861d7,_0x5aafcc){return _0x199ce4(_0x2861d7-_0x2c4a60._0x145093,_0x52170f-_0x2c4a60._0x342709,_0x52170f,_0x5aafcc-_0x2c4a60._0x46acfe);}return _0x162c77[_0xf28fcb(_0x293c0a._0x48fba7,_0x293c0a._0x406768,_0x293c0a._0x3d82c6,0x3ce)](0x0)===0xfeff?_0x162c77['slice'](0x1):_0x162c77;}function clampLine(_0x3d0e4b,_0x5bd0f3){const _0x35ca19={_0x28d8ce:0x3a,_0x4d908a:0xee,_0x5734ed:0xf8,_0x579108:0x37,_0x392272:0x130,_0x18dc6f:0x16b},_0x48ce32={_0x545f08:0x3a1,_0x2f4c1c:0x38},_0x1c0054={_0x3035d1:0x87,_0xc88d1b:0x26b};function _0x733365(_0x36db27,_0x3078fc,_0x59b564,_0x36fe5e){return _0x26f978(_0x36db27-_0x1c0054._0x3035d1,_0x3078fc-0x14a,_0x3078fc- -_0x1c0054._0xc88d1b,_0x59b564);}function _0x374289(_0x5e0174,_0x12661c,_0x4ed0e0,_0x5d9ce5){return _0x199ce4(_0x4ed0e0-_0x48ce32._0x545f08,_0x12661c-0x195,_0x12661c,_0x5d9ce5-_0x48ce32._0x2f4c1c);}if(!Number[_0x733365(_0x35ca19._0x28d8ce,_0x35ca19._0x4d908a,-0x6e,_0x35ca19._0x5734ed)](_0x3d0e4b))return 0x1;return Math['max'](0x1,Math['min'](Math[_0x733365(_0x35ca19._0x579108,_0x35ca19._0x392272,_0x35ca19._0x18dc6f,0x50)](_0x3d0e4b),_0x5bd0f3));}function createFileReadTool(_0x478abd={}){const _0x4e79d6={_0x132f02:0x408,_0x282082:0x2be,_0x543d59:0x211,_0x393975:0x4e,_0x96a58a:0xc1,_0x2e6470:0x2a1,_0x4489d3:0x228,_0x7da97:0xe1,_0x50ac7e:0x326,_0x702588:0x177,_0x466b21:0x57,_0x43ad44:0x3e3,_0x29e946:0x6a,_0x2365d9:0xce,_0x50b692:0x3f1,_0x185f6e:0x3ad,_0x41a780:0x380,_0x40b67a:0x513,_0x5955da:0x5e6,_0x1ed348:0x55a,_0x376abf:0x38e,_0x3f90e7:0x14e},_0x4df158={_0x24cd68:0x23,_0x134892:0x5b,_0x57a2bf:0x6f,_0x4e519:0xb5,_0x5b0862:0xb2,_0x317761:0xa1,_0x168dd2:0x80,_0x11da07:0x18e,_0x38141e:0x16a,_0x4416ae:0x179,_0x31eca9:0x1e6,_0x1af665:0x170,_0x4d1de9:0xb7,_0x3e709b:0x408,_0x11a1f5:0x1bc,_0x33d2a7:0x306,_0x53cf48:0x244,_0x382b85:0x2fb,_0x4246c9:0x3b5,_0x4aae14:0x43,_0x163cca:0x237,_0xf69115:0x107,_0x3d0c4d:0x113,_0x222d01:0x29c,_0x1badac:0x1e2,_0x162717:0xb6,_0x14ad84:0x8a,_0x1cdf9f:0x1a0,_0x2338d0:0x47,_0xb2f181:0x120,_0x3ef3b4:0x168,_0x37d165:0x3c,_0x3ab927:0x11c,_0x55377d:0x145,_0x1916eb:0xad,_0x49f931:0x90,_0x50951c:0x99,_0x3b6db1:0x168,_0xec69ed:0x10b,_0xdfb5c0:0xdc,_0x583b7b:0x117,_0x28054c:0x1c9,_0xdaefe0:0xe5,_0x4ad0f4:0x132,_0xc1272b:0x158,_0x1dd2ff:0x3d,_0x458eed:0x24f,_0x445b55:0x134,_0x2e5385:0xba,_0xa0009d:0xfb,_0x4b72f9:0x1b9,_0x42d869:0x24,_0x4097c9:0x156,_0x4d0921:0x26f,_0x26a341:0xc5},_0x483f33={_0x187a46:0x10e,_0x47f58d:0xe9},_0x4e73e3={_0x12bbbe:0x189,_0x16caef:0xae,_0x424d8b:0x17e};function _0x3a23e4(_0x30a06e,_0x3b3eb1,_0x459fdf,_0x4ca969){return _0x199ce4(_0x459fdf-_0x4e73e3._0x12bbbe,_0x3b3eb1-_0x4e73e3._0x16caef,_0x3b3eb1,_0x4ca969-_0x4e73e3._0x424d8b);}const _0x4ecfbf=_0x4ad524[_0x577045(_0x4e79d6._0x132f02,_0x4e79d6._0x282082,_0x4e79d6._0x543d59,0x19e)](_0x478abd[_0x3a23e4(-0x61,_0x4e79d6._0x393975,0x101,_0x4e79d6._0x96a58a)]??process[_0x3a23e4(0x364,_0x4e79d6._0x2e6470,_0x4e79d6._0x4489d3,_0x4e79d6._0x7da97)]());function _0x577045(_0x2289c7,_0x354af2,_0xe4e82f,_0x1e785a){return _0x26f978(_0x2289c7-0x4d,_0x354af2-_0x483f33._0x187a46,_0x354af2-_0x483f33._0x47f58d,_0xe4e82f);}const _0x2f519b=_0x478abd[_0x3a23e4(_0x4e79d6._0x50ac7e,_0x4e79d6._0x702588,0x240,0x2ab)]??[],_0x2aff54=_0x478abd[_0x3a23e4(-0x4b,0x84,0xc9,_0x4e79d6._0x466b21)]??_0x577045(0x235,0x307,0x2f9,_0x4e79d6._0x43ad44);return defineTool({'name':_0x2aff54,'description':_0x3a23e4(0x1f,0x155,_0x4e79d6._0x29e946,-_0x4e79d6._0x2365d9),'inputSchema':{'type':'object','properties':{'path':{'type':_0x577045(0x4fd,_0x4e79d6._0x50b692,_0x4e79d6._0x185f6e,_0x4e79d6._0x41a780)},'lineStart':{'type':_0x577045(_0x4e79d6._0x40b67a,0x475,_0x4e79d6._0x5955da,_0x4e79d6._0x1ed348),'description':'Start\x20reading\x20from\x20this\x20line\x20number\x20(1-based)'},'lineEnd':{'type':_0x3a23e4(_0x4e79d6._0x376abf,_0x4e79d6._0x3f90e7,0x293,0x336),'description':'Stop\x20reading\x20at\x20this\x20line\x20number\x20(1-based)'}},'required':['path']},async *'execute'(_0x2529c6){const _0x41342e={_0x4b8f85:0x13a,_0x47031c:0xe6},_0x485cc7={_0x33300b:0x14d,_0x575807:0x1c7},_0x477958=resolveAllowedPath(_0x4ecfbf,_0x2f519b,_0x2529c6[_0x27b3a2(0xa2,-0x88,-_0x4df158._0x24cd68,0x80)]);await assertWorkspaceFile(_0x477958);const _0x4678b8=await _0x5bf091(_0x477958),_0x366095=await _0xcbe2bd(_0x477958);if(isProbablyBinary(_0x366095))throw new ToolExecutionError(_0x27b3a2(0xd4,-0xf7,-0x69,_0x4df158._0x134892)+_0x2529c6[_0x27b3a2(_0x4df158._0x57a2bf,-_0x4df158._0x4e519,-_0x4df158._0x5b0862,0x80)],{'path':_0x2529c6[_0x27b3a2(0x18d,-0x9a,-_0x4df158._0x317761,_0x4df158._0x168dd2)]});function _0x27b3a2(_0x354d89,_0x3d408f,_0x34c1ed,_0x471d1b){return _0x577045(_0x354d89-_0x485cc7._0x33300b,_0x471d1b- -_0x485cc7._0x575807,_0x34c1ed,_0x471d1b-0x155);}let _0x44b6ee=_0x366095[_0x4ff816(0x12e,0x1c1,0x3a,0x246)](_0x27b3a2(_0x4df158._0x11da07,_0x4df158._0x38141e,_0x4df158._0x4416ae,_0x4df158._0x31eca9));const _0x42a866=_0x44b6ee[_0x27b3a2(0x291,_0x4df158._0x1af665,_0x4df158._0x4d1de9,0x21c)](0x0)===0xfeff;_0x44b6ee=stripUtfBom(_0x44b6ee);const _0x16db85=_0x44b6ee[_0x27b3a2(_0x4df158._0x3e709b,_0x4df158._0x11a1f5,0x363,_0x4df158._0x33d2a7)](/\r?\n/),_0x5419a2={'path':_0x2529c6['path'],'resolvedPath':_0x477958,'created':_0x4678b8[_0x27b3a2(_0x4df158._0x53cf48,_0x4df158._0x382b85,_0x4df158._0x4246c9,0x31b)][_0x27b3a2(-_0x4df158._0x4aae14,_0x4df158._0x163cca,_0x4df158._0xf69115,_0x4df158._0x3d0c4d)](),'modified':_0x4678b8[_0x4ff816(_0x4df158._0x222d01,0x377,0x184,_0x4df158._0x1badac)][_0x4ff816(_0x4df158._0x162717,-0x73,-0x39,0x6f)](),'size':_0x4678b8[_0x4ff816(_0x4df158._0x14ad84,-0x53,_0x4df158._0x1cdf9f,-0x44)],'encoding':_0x4ff816(0x189,0x26a,0x298,0x1f5),'bomStripped':_0x42a866,'truncated':![],'totalLines':_0x16db85[_0x27b3a2(0x1d0,_0x4df158._0x2338d0,_0x4df158._0xb2f181,_0x4df158._0x3ef3b4)]};function _0x4ff816(_0x28ca9c,_0x409bec,_0x16db8b,_0x4336a8){return _0x577045(_0x28ca9c-_0x41342e._0x4b8f85,_0x28ca9c- -0x224,_0x409bec,_0x4336a8-_0x41342e._0x47031c);}if(_0x2529c6['lineStart']!==void 0x0||_0x2529c6[_0x4ff816(_0x4df158._0x37d165,-_0x4df158._0x3ab927,_0x4df158._0x55377d,_0x4df158._0x1916eb)]!==void 0x0){const _0xc1273f=clampLine(_0x2529c6[_0x4ff816(0x12a,-0x26,0x291,0x18d)]??0x1,_0x16db85['length']),_0x9362fc=clampLine(_0x2529c6[_0x27b3a2(0x8c,-_0x4df158._0x49f931,0x183,_0x4df158._0x50951c)]??_0x16db85[_0x27b3a2(0x21f,0x214,0x95,_0x4df158._0x3b6db1)],_0x16db85[_0x4ff816(_0x4df158._0xec69ed,_0x4df158._0xdfb5c0,_0x4df158._0x583b7b,_0x4df158._0x28054c)]),_0x2e0981=Math[_0x27b3a2(0x1bb,_0x4df158._0xdaefe0,0x21a,_0x4df158._0x4ad0f4)](_0xc1273f,_0x9362fc),_0xe33508=Math['max'](_0xc1273f,_0x9362fc),_0x3c76db=_0x16db85[_0x4ff816(_0x4df158._0xc1272b,_0x4df158._0x1dd2ff,_0x4df158._0x458eed,0x145)](_0x2e0981-0x1,_0xe33508)[_0x4ff816(_0x4df158._0x445b55,_0x4df158._0x2e5385,0x22e,0x131)]((_0x3093a8,_0x20831a)=>_0x2e0981+_0x20831a+'|'+_0x3093a8)[_0x27b3a2(_0x4df158._0xa0009d,_0x4df158._0x4b72f9,-_0x4df158._0x42d869,_0x4df158._0x4097c9)]('\x0a');return yield createToolOutput(_0x3c76db,{..._0x5419a2,'lineRange':{'lineStart':_0x2e0981,'lineEnd':_0xe33508,'linesTotal':_0x16db85[_0x27b3a2(_0x4df158._0x4d0921,_0x4df158._0x26a341,0x216,_0x4df158._0x3b6db1)]}}),void 0x0;}return yield createToolOutput(_0x44b6ee,_0x5419a2),void 0x0;}});}import{stat as _0x1796df}from'fs/promises';import*as _0x12e049 from'path';import{execSync,spawn as _0x4f4777}from'child_process';import{existsSync}from'fs';import{stat as _0x37e698}from'fs/promises';import*as _0x1bcb38 from'os';import*as _0x36f4c6 from'path';import{rgPath as _0x145b22}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x514d60={_0x3ac74d:0x1bd,_0x36dfc5:0x46d,_0x5c7687:0x31a,_0x3a1b03:0x2bc,_0x4c8b4b:0x10a,_0x2610a1:0xf0,_0x3df22d:0x1f4,_0x179716:0x208,_0x2f9de5:0x42b,_0x48bc8b:0x2de,_0x148737:0x3a3,_0x42cd45:0x2e6,_0x26d072:0x20e,_0x1588a3:0x19e,_0x42aaa5:0x318,_0x2f41e1:0x2cb,_0x2008d9:0x1d6,_0x35c4dc:0x267,_0x355199:0x331,_0x30f9e1:0x2,_0x36f333:0x4a,_0x8dc83a:0x269,_0x58f4fe:0x294,_0x250a9e:0x317,_0x2916c9:0x136,_0x483b55:0x1c6,_0x141852:0x448,_0x5331da:0x43e,_0x4bc8d6:0x35d,_0x5ade9b:0x3d6,_0x1f37b1:0x257,_0x3645fe:0x39a,_0x48ffdd:0x240,_0x178ec6:0x30e,_0x3acf90:0x337,_0x3de28c:0x3f9,_0x43789c:0x3e4,_0x4e22ac:0x401,_0x4fd1e0:0x15b,_0x2f683b:0x327,_0x4fa070:0x38d,_0x25be93:0x32f,_0x4cfe52:0x4ef,_0x5cca0d:0x2fb,_0x363ffe:0x443,_0x5707cf:0x37e,_0x34a0d3:0xa2,_0x5772a6:0x82,_0x408b54:0x520,_0x5bd34a:0x380,_0x2c1057:0x5e5,_0x224fe4:0x496},_0xc1464d={_0x475644:0x1d3,_0x477221:0xaa},_0x26f008={_0x491e83:0x334,_0x19e724:0x17d,_0xb98d1f:0x1c1},_0x4ef1f6=_0x1bcb38[_0x2fe550(_0x514d60._0x3ac74d,_0x514d60._0x36dfc5,0x228,_0x514d60._0x5c7687)]()==='win32',_0x1c1eca=_0x4ef1f6?[_0x36f4c6[_0x34514c(_0x514d60._0x3a1b03,0x1c3,_0x514d60._0x4c8b4b,_0x514d60._0x2610a1)](process[_0x34514c(0x310,0x20e,0x109,_0x514d60._0x3df22d)][_0x34514c(0x41a,0x324,_0x514d60._0x179716,0x441)]||'','Microsoft',_0x2fe550(0x385,_0x514d60._0x2f9de5,0x1fb,0x2c6),'Packages'),_0x36f4c6[_0x2fe550(_0x514d60._0x48bc8b,0x31a,_0x514d60._0x148737,_0x514d60._0x42cd45)](process[_0x34514c(_0x514d60._0x26d072,0x20e,0x1f6,0x33d)][_0x2fe550(0x33f,_0x514d60._0x1588a3,_0x514d60._0x42aaa5,_0x514d60._0x2f41e1)]||'','ripgrep','rg.exe'),_0x36f4c6[_0x2fe550(_0x514d60._0x2008d9,_0x514d60._0x35c4dc,0x39f,0x2e6)](process[_0x2fe550(0x243,0x1f5,0x344,_0x514d60._0x355199)][_0x34514c(-0xa1,0xc2,-_0x514d60._0x30f9e1,-_0x514d60._0x36f333)]||'',_0x34514c(_0x514d60._0x8dc83a,_0x514d60._0x58f4fe,_0x514d60._0x250a9e,0x254),_0x34514c(_0x514d60._0x2916c9,0x2b1,0x2df,_0x514d60._0x483b55))]:[_0x2fe550(0x29d,_0x514d60._0x141852,_0x514d60._0x5331da,0x3d1),'/usr/local/bin/rg',_0x2fe550(_0x514d60._0x4bc8d6,_0x514d60._0x5ade9b,0x2e0,0x366),_0x34514c(0x1a9,0x17a,0x231,_0x514d60._0x1f37b1)];for(const _0x2d4b32 of _0x1c1eca){if(existsSync(_0x2d4b32))return _0x2d4b32;}function _0x2fe550(_0x49e743,_0x115707,_0x2c44bd,_0xde4bea){return _0x199ce4(_0xde4bea-_0x26f008._0x491e83,_0x115707-_0x26f008._0x19e724,_0x49e743,_0xde4bea-_0x26f008._0xb98d1f);}try{const _0x3ecfbf=_0x4ef1f6?_0x2fe550(_0x514d60._0x3645fe,_0x514d60._0x48ffdd,_0x514d60._0x178ec6,0x27e):_0x2fe550(_0x514d60._0x3acf90,_0x514d60._0x3de28c,_0x514d60._0x43789c,_0x514d60._0x4e22ac),_0x4d8437=execSync(_0x3ecfbf,{'encoding':'utf8','stdio':[_0x34514c(_0x514d60._0x4fd1e0,0x219,_0x514d60._0x2f683b,0x30d),_0x34514c(0x34c,0x219,_0x514d60._0x4fa070,_0x514d60._0x25be93),_0x2fe550(_0x514d60._0x4cfe52,_0x514d60._0x5cca0d,_0x514d60._0x363ffe,_0x514d60._0x5707cf)]})[_0x34514c(-0x49,_0x514d60._0x34a0d3,_0x514d60._0x5772a6,-0x78)]()[_0x2fe550(_0x514d60._0x408b54,_0x514d60._0x5bd34a,_0x514d60._0x2c1057,_0x514d60._0x224fe4)](/\r?\n/)[0x0];if(_0x4d8437&&existsSync(_0x4d8437))return _0x4d8437;}catch{return null;}function _0x34514c(_0x1f4f2b,_0x31d186,_0x25be84,_0x1e7764){return _0x26f978(_0x1f4f2b-_0xc1464d._0x475644,_0x31d186-_0xc1464d._0x477221,_0x31d186- -0x71,_0x1f4f2b);}return null;}async function filepath(){const _0x4269d={_0x53a9fd:0x35,_0x3913be:0x51,_0x56c1dd:0x178};if(cachedRgPath)return cachedRgPath;function _0x2ecbfa(_0x4a870a,_0x5acadb,_0x9bc4a6,_0x2e0631){return _0x26f978(_0x4a870a-_0x4269d._0x53a9fd,_0x5acadb-_0x4269d._0x3913be,_0x4a870a-_0x4269d._0x56c1dd,_0x9bc4a6);}if(_0x145b22&&existsSync(_0x145b22))return cachedRgPath=_0x145b22,_0x145b22;const _0x407496=findSystemRipgrep();if(!_0x407496)throw new Error(_0x2ecbfa(0x4c0,0x5ca,0x58b,0x5c7));return cachedRgPath=_0x407496,_0x407496;}async function*files(_0x2f9787){const _0x283abb={_0xe8ee3:0x6c,_0x1a70a0:0xfd,_0x2c21c1:0x3ff,_0x480d33:0x44e,_0x3e3d50:0x209,_0x28246e:0x44c,_0x4361f4:0x148,_0xdcb8ab:0x251,_0x357a3d:0x312,_0x5e8c61:0x243,_0x1dcba4:0x24f,_0x13dc30:0x2f1,_0x2761fc:0x193,_0x2c22f8:0x45a,_0xc1387:0x2b3,_0x1e7909:0x2cc,_0x58d0c1:0x181,_0x13ab9b:0x426,_0x3a8b82:0x308,_0x3dabcb:0x398,_0x1997f1:0x2b5,_0x4f9467:0x2dd,_0x184658:0x303,_0x19b616:0x149},_0x40d92c={_0x428afd:0x390,_0x55eefa:0x30},_0x5514cb={_0x458362:0x1c9};function _0x384049(_0x211beb,_0xdc1a41,_0x5818e4,_0x1ffd52){return _0x199ce4(_0x1ffd52-0x16a,_0xdc1a41-_0x5514cb._0x458362,_0x211beb,_0x1ffd52-0x1b8);}const _0x127ccd=await filepath(),_0x217c5c=await _0x37e698(_0x2f9787['cwd'])[_0x384049(0x1d0,_0x283abb._0xe8ee3,0xff,_0x283abb._0x1a70a0)](()=>null);if(!_0x217c5c?.[_0xc60854(0x4e3,_0x283abb._0x2c21c1,_0x283abb._0x480d33,0x4a5)]())throw Object['assign'](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x2f9787[_0x384049(0x225,0xb7,0x204,_0x283abb._0x3e3d50)]+'\x27'),{'code':_0xc60854(0x3b3,0x3b9,_0x283abb._0x28246e,0x509)});const _0x29043e=[_0xc60854(0x152,_0x283abb._0x4361f4,0x316,_0x283abb._0xdcb8ab),_0xc60854(0x37f,0x2de,0x289,_0x283abb._0x357a3d),_0x384049(_0x283abb._0x5e8c61,0x201,0x189,0x166),_0x384049(0x1c7,_0x283abb._0x1dcba4,_0x283abb._0x13dc30,_0x283abb._0x2761fc)];for(const _0x801863 of _0x2f9787[_0xc60854(0x37d,_0x283abb._0x2c22f8,_0x283abb._0xc1387,0x352)]??[]){_0x29043e['push']('--glob='+_0x801863);}const _0x479b53=_0x4f4777(_0x127ccd,_0x29043e,{'cwd':_0x2f9787[_0x384049(0xad,_0x283abb._0x1e7909,_0x283abb._0x58d0c1,_0x283abb._0x3e3d50)],'stdio':[_0xc60854(0x27d,_0x283abb._0x13ab9b,_0x283abb._0x3a8b82,0x3da),_0xc60854(0x322,0x4da,0x31d,_0x283abb._0x3dabcb),'pipe']});let _0x12c46e='';function _0xc60854(_0x3a37db,_0x4d4a40,_0x3dc01a,_0x39f2e7){return _0x199ce4(_0x39f2e7-_0x40d92c._0x428afd,_0x4d4a40-0xab,_0x3dc01a,_0x39f2e7-_0x40d92c._0x55eefa);}for await(const _0x1d48c4 of _0x479b53['stdout']??[]){_0x12c46e+=_0x1d48c4[_0xc60854(_0x283abb._0x1997f1,0x242,0x36f,0x377)]();const _0x3b7020=_0x12c46e[_0x384049(0x382,0x25a,0x427,0x2cc)](/\r?\n/);_0x12c46e=_0x3b7020[_0xc60854(0x430,_0x283abb._0x4f9467,0x2de,_0x283abb._0x184658)]()??'';for(const _0xe9d2d0 of _0x3b7020){if(_0xe9d2d0['length']>0x0)yield _0xe9d2d0;}}_0x12c46e['trim']()[_0x384049(0x10b,_0x283abb._0x19b616,0x22d,0x12e)]>0x0&&(yield _0x12c46e['trim']());}function parseMatchLine(_0x54ca42,_0x5aa4f7){const _0x594510={_0x5941db:0x47c,_0x9a550c:0x476,_0x406e53:0x18b,_0x58797b:0x15e,_0x2abd2f:0x5aa,_0x5705b9:0x6da,_0x3b4bea:0x4b0,_0x337723:0x624,_0x2eaa9f:0x693,_0x5d9bf1:0x5aa,_0x40798b:0x612,_0x42fb0b:0x254,_0x593394:0xc6,_0x3be417:0x485,_0x25bc36:0x4d9,_0x54dfe6:0xd1,_0x9c4288:0x18d,_0x213eb3:0x2f4,_0x1d1b6c:0x593},_0x2d5eb8={_0x14e09e:0x174},_0x1b6106={_0x27ab1c:0xd8};if(!_0x54ca42||_0x54ca42==='--')return null;function _0x1cc9c4(_0x11d22e,_0x56e759,_0x26aef8,_0xe2bf84){return _0x26f978(_0x11d22e-_0x1b6106._0x27ab1c,_0x56e759-0x114,_0x56e759- -0xbb,_0x26aef8);}const _0x5df3f8=_0x54ca42[_0x1cc9c4(_0x594510._0x5941db,0x329,0x374,_0x594510._0x9a550c)]('|');function _0x510c59(_0x234cf9,_0x1d1efc,_0x550488,_0x1c2e09){return _0x199ce4(_0x550488-0x4d3,_0x1d1efc-0x18b,_0x1d1efc,_0x1c2e09-_0x2d5eb8._0x14e09e);}if(_0x5aa4f7&&_0x5df3f8[_0x1cc9c4(0x1ea,_0x594510._0x406e53,0x230,_0x594510._0x58797b)]>=0x4&&Number[_0x510c59(0x6e9,0x6fc,_0x594510._0x2abd2f,_0x594510._0x5705b9)](Number['parseInt'](_0x5df3f8[0x2]??'',0xa))){const _0x19f139=Number[_0x510c59(_0x594510._0x3b4bea,0x741,_0x594510._0x337723,0x74c)](_0x5df3f8[0x1]??'',0xa);if(!Number[_0x510c59(_0x594510._0x2eaa9f,0x69c,_0x594510._0x5d9bf1,_0x594510._0x40798b)](_0x19f139)||!_0x5df3f8[0x0])return null;return{'filePath':_0x5df3f8[0x0],'lineNum':_0x19f139,'lineText':_0x5df3f8[_0x1cc9c4(_0x594510._0x42fb0b,0x1d8,_0x594510._0x593394,0x98)](0x3)[_0x510c59(0x56b,0x3af,_0x594510._0x3be417,_0x594510._0x25bc36)]('|')};}if(_0x5df3f8[_0x1cc9c4(_0x594510._0x54dfe6,0x18b,_0x594510._0x9c4288,_0x594510._0x213eb3)]>=0x3){const _0x408346=Number['parseInt'](_0x5df3f8[0x1]??'',0xa);if(!Number['isFinite'](_0x408346)||!_0x5df3f8[0x0])return null;return{'filePath':_0x5df3f8[0x0],'lineNum':_0x408346,'lineText':_0x5df3f8['slice'](0x2)[_0x510c59(_0x594510._0x1d1b6c,0x360,0x485,0x38b)]('|'),..._0x5aa4f7?{'isContext':!![]}:{}};}return null;}async function search(_0x20a0b8){const _0x2b7079={_0x503871:0x53e,_0x5e27a9:0x3f8,_0x18cce4:0x20,_0x561e72:0x25b,_0x13ca95:0xd7,_0x243b54:0x15b,_0x336744:0x29e,_0x39c2a2:0x1b,_0x2f4d47:0x8b,_0x5cdca8:0x83,_0x88f430:0xe7,_0x4882b4:0x5d,_0x5d7a23:0xee,_0xf595c8:0xff,_0x34cd51:0x1d3,_0x1cd7d4:0x252,_0x3cba37:0xba,_0x59a77e:0x39,_0x3ded05:0xbb,_0x4b8be1:0x5ac,_0x4a68ea:0x4fa,_0x3ab411:0x97,_0x4f4cd3:0x67,_0x230bde:0xf6,_0xd481fe:0x126,_0x4698c1:0x4e,_0x5a11d9:0x2f1,_0x5630e3:0x4a6,_0x4e2f3b:0x454,_0x53689e:0x464,_0x99c48e:0x3c2,_0x27d733:0x388,_0x2428e1:0x36e,_0x35c82a:0x352,_0x5c402b:0x275,_0x53b5ec:0x392,_0xc050d5:0x10a,_0x32d730:0xfd,_0x4f299a:0x38f,_0x3e62aa:0x627,_0x2b9d93:0x202},_0x5b37fc={_0xa3ef9a:0x22e,_0x511c1b:0x40d,_0x2b4bb8:0x2bc,_0x19bed3:0x375,_0x54d239:0x129,_0xd120cd:0x5cc,_0x57e2c5:0x495,_0x92bdd1:0x5c2,_0x106564:0x423,_0x2016a5:0x4e7,_0x466b8b:0x48e,_0x16df09:0x4b8},_0x430a81={_0x2792e7:0xb1},_0x1c97e0={_0x3158b4:0x1dc,_0x1fca0c:0x298},_0x3c170e=await filepath();if(_0x20a0b8[_0x17d84a(0x458,0x5dd,_0x2b7079._0x503871,_0x2b7079._0x5e27a9)]){const _0x37145c=await _0x37e698(_0x20a0b8[_0x245910(0x15b,_0x2b7079._0x18cce4,_0x2b7079._0x561e72,_0x2b7079._0x13ca95)])['catch'](()=>null);if(!_0x37145c?.['isFile']())throw Object['assign'](new Error('No\x20such\x20file:\x20\x27'+_0x20a0b8[_0x245910(_0x2b7079._0x243b54,_0x2b7079._0x336744,_0x2b7079._0x39c2a2,0xa3)]+'\x27'),{'code':'ENOENT'});}else{const _0x57ab7f=await _0x37e698(_0x20a0b8[_0x245910(0x89,_0x2b7079._0x2f4d47,0x184,0x1d6)])[_0x245910(-_0x2b7079._0x5cdca8,-_0x2b7079._0x88f430,_0x2b7079._0x4882b4,-_0x2b7079._0x5d7a23)](()=>null);if(!_0x57ab7f?.[_0x245910(_0x2b7079._0xf595c8,_0x2b7079._0x34cd51,_0x2b7079._0x1cd7d4,0x232)]())throw Object[_0x245910(_0x2b7079._0x3cba37,-_0x2b7079._0x59a77e,-_0x2b7079._0x3ded05,-0xb1)](new Error(_0x17d84a(0x63b,_0x2b7079._0x4b8be1,_0x2b7079._0x4a68ea,0x5c3)+_0x20a0b8['cwd']+'\x27'),{'code':'ENOENT'});}const _0xdb1724=[_0x245910(-_0x2b7079._0x3ab411,-_0x2b7079._0x4f4cd3,-_0x2b7079._0x230bde,-_0x2b7079._0xd481fe),_0x245910(_0x2b7079._0x4698c1,-0x22,_0x2b7079._0x4698c1,0x76),_0x17d84a(_0x2b7079._0x5a11d9,0x436,0x366,0x4df),_0x17d84a(0x5e0,_0x2b7079._0x5630e3,0x472,_0x2b7079._0x4e2f3b),_0x20a0b8[_0x245910(0x10b,0x14f,-0x4c,0x99)]];function _0x245910(_0x956bc3,_0x215892,_0x4f1359,_0x15af04){return _0x26f978(_0x956bc3-0x8c,_0x215892-_0x1c97e0._0x3158b4,_0x956bc3- -_0x1c97e0._0x1fca0c,_0x4f1359);}function _0x17d84a(_0x5627b6,_0x336840,_0x4dccbc,_0x327606){return _0x26f978(_0x5627b6-0x9c,_0x336840-_0x430a81._0x2792e7,_0x4dccbc-0x14b,_0x5627b6);}const _0x26e912=typeof _0x20a0b8[_0x17d84a(0x2e6,_0x2b7079._0x53689e,_0x2b7079._0x99c48e,_0x2b7079._0x27d733)]==='number'&&_0x20a0b8[_0x17d84a(0x28c,_0x2b7079._0x2428e1,0x3c2,_0x2b7079._0x35c82a)]>0x0;return _0x26e912&&_0xdb1724[_0x17d84a(0x38e,0x237,_0x2b7079._0x5c402b,0x23f)]('-C',String(_0x20a0b8[_0x17d84a(0x372,0x475,0x3c2,_0x2b7079._0x53b5ec)]),_0x245910(-0x9b,0x66,-0x1c3,-0x1c3)),_0x20a0b8['glob']&&!_0x20a0b8['file']&&_0xdb1724[_0x245910(-0x16e,-_0x2b7079._0xc050d5,-0x23c,-_0x2b7079._0x32d730)]('--glob',_0x20a0b8[_0x17d84a(0x505,0x431,_0x2b7079._0x4f299a,0x404)]),_0xdb1724['push'](_0x20a0b8[_0x17d84a(0x5a3,_0x2b7079._0x4b8be1,0x53e,_0x2b7079._0x3e62aa)]??_0x20a0b8[_0x245910(0x89,_0x2b7079._0x2b9d93,-0xbf,0x1eb)]),await new Promise((_0x9dd450,_0x5097af)=>{const _0x14eb52={_0x46e487:0x55d,_0xa5c61b:0x41e,_0x4df350:0x351,_0x1180df:0x3ea,_0x5aea01:0x67c,_0x4ae1d0:0x5c6,_0x486243:0x5b2,_0x390d5d:0x1b9,_0x356f9c:0x319},_0x43286d={_0x8b3863:0x2d,_0x1f735c:0x164},_0x36a227={_0x5eeab2:0x168,_0x522535:0x177},_0x29756d={_0x35f8dd:0x4cf,_0xbb2c6:0x143},_0x2444d7={_0x5d57e6:0x233,_0x36911b:0x15c},_0x5ed110=_0x4f4777(_0x3c170e,_0xdb1724,{'cwd':_0x20a0b8[_0x7bc621(0x209,_0x5b37fc._0xa3ef9a,_0x5b37fc._0x511c1b,_0x5b37fc._0x2b4bb8)],'stdio':['ignore','pipe',_0x7bc621(0x1ce,_0x5b37fc._0x19bed3,_0x5b37fc._0x54d239,0x225)]});function _0x7bc621(_0x3a4da1,_0x5197b9,_0x5c192a,_0xc7d9bd){return _0x245910(_0xc7d9bd-_0x2444d7._0x5d57e6,_0x5197b9-0x1b3,_0x5c192a,_0xc7d9bd-_0x2444d7._0x36911b);}function _0x579e84(_0x308853,_0x1f9799,_0x40673f,_0x530911){return _0x245910(_0x530911-_0x29756d._0x35f8dd,_0x1f9799-0x4b,_0x308853,_0x530911-_0x29756d._0xbb2c6);}let _0x24674b='',_0x3331b9='';_0x5ed110['stdout']?.['on']('data',_0x42c626=>{_0x24674b+=_0x42c626['toString']();}),_0x5ed110[_0x7bc621(0x22a,0x16e,-0x51,0xe2)]?.['on'](_0x579e84(0x549,_0x5b37fc._0xd120cd,0x64a,0x4f9),_0x2602db=>{const _0x3e3645={_0x5468ed:0x9c};function _0x3b63dd(_0xb9874b,_0x5544e7,_0x4c85df,_0x395fb7){return _0x7bc621(_0xb9874b-0x70,_0x5544e7-0x145,_0x4c85df,_0xb9874b- -_0x3e3645._0x5468ed);}_0x3331b9+=_0x2602db[_0x3b63dd(_0x36a227._0x5eeab2,0x17b,0x63,_0x36a227._0x522535)]();}),_0x5ed110['on'](_0x579e84(_0x5b37fc._0x57e2c5,_0x5b37fc._0x92bdd1,0x45c,0x4d0),_0x4ffacf=>{const _0x3cb775={_0x2e8d41:0x46,_0x259f88:0x21};if(_0x4ffacf===0x1&&_0x24674b===''){_0x9dd450([]);return;}if(_0x4ffacf!==0x0&&_0x4ffacf!==0x1){_0x5097af(new Error('ripgrep\x20failed:\x20'+_0x3331b9));return;}function _0x74b299(_0x3b87c5,_0x5d3fdf,_0x35f048,_0x48e554){return _0x579e84(_0x3b87c5,_0x5d3fdf-_0x43286d._0x8b3863,_0x35f048-0xf6,_0x5d3fdf- -_0x43286d._0x1f735c);}const _0x293698=_0x20a0b8[_0x27aa81(_0x14eb52._0x46e487,_0x14eb52._0xa5c61b,_0x14eb52._0x4df350,_0x14eb52._0x1180df)]??0x64,_0x4ee8ef=[];function _0x27aa81(_0x2a2e84,_0x21fb4b,_0x1538ab,_0x5b9e93){return _0x7bc621(_0x2a2e84-_0x3cb775._0x2e8d41,_0x21fb4b-_0x3cb775._0x259f88,_0x5b9e93,_0x21fb4b-0x247);}for(const _0x430b26 of _0x24674b[_0x27aa81(_0x14eb52._0x5aea01,_0x14eb52._0x4ae1d0,0x5b6,_0x14eb52._0x486243)](/\r?\n/)){if(_0x4ee8ef[_0x74b299(_0x14eb52._0x390d5d,_0x14eb52._0x356f9c,0x380,0x3fa)]>=_0x293698)break;const _0x112cf1=parseMatchLine(_0x430b26,_0x26e912);if(_0x112cf1)_0x4ee8ef['push'](_0x112cf1);}_0x9dd450(_0x4ee8ef);}),_0x5ed110['on'](_0x579e84(_0x5b37fc._0x106564,_0x5b37fc._0x2016a5,_0x5b37fc._0x466b8b,_0x5b37fc._0x16df09),_0x5097af);});}function createGlobTool(_0x38bb74={}){const _0x5d3ef9={_0x5a778d:0x150,_0x2313b4:0xa1,_0x145f28:0x2c8,_0x209e40:0x2a1,_0xdc4977:0x438,_0x197408:0x1d9,_0x320eba:0x1d0,_0x17a901:0x2c0,_0x5daf27:0x326,_0x24d8ba:0x1a0,_0x3531e2:0x240,_0xeea7eb:0x24a,_0x2c9cec:0x382,_0x382b37:0x3b0,_0x36a23f:0x2f5,_0x3daa8c:0x20d,_0x43712e:0x29c,_0x4f8982:0x1ec,_0x31e879:0x1b4,_0x2a9ebf:0x371,_0x23a02c:0x2a3,_0x3036d1:0x337,_0x16f8c5:0x31b},_0x58630a={_0x15f6d2:0x266,_0xe35a3b:0x283,_0x422c86:0x1af,_0x5b92cf:0xe1,_0x1d3235:0xb7,_0xe1c360:0xd,_0x3a9c37:0x9,_0x50321e:0x126,_0xd794c5:0xce,_0x302813:0x88,_0x348d14:0xd5,_0x1112b3:0xa0,_0x25e665:0x81,_0x3f7f24:0x9c,_0x3c63a1:0x163,_0x5c34eb:0x268,_0x1ec611:0x7f,_0x4c5fe1:0x34,_0x2c76f2:0x2a,_0x3546b1:0x142,_0x518761:0x96,_0x2b3c1c:0x4d,_0x413dd4:0x10a,_0x19ecc1:0x1f8,_0x472887:0x29f,_0x34102a:0x3f4,_0x2734a6:0x27b,_0x3364ce:0x3e,_0x5158cb:0x57,_0x4791fb:0x1ec,_0x437ca5:0x114,_0x1f4d44:0x3d,_0x146b9b:0x1a1,_0x1b45a1:0x177,_0x349a9b:0x50,_0x59e42a:0x12d,_0x1f3378:0x46,_0x1b5225:0x126,_0x568144:0x1b5,_0x10411b:0x263,_0x44afc3:0x119,_0x52d5a1:0xfb,_0x4aac6d:0x1cd,_0x5a4246:0x1b4,_0x3acb76:0x18c,_0xabc1e3:0x1bd,_0x3e60f4:0x29b},_0x130963={_0x4c5653:0x2c},_0x44bb18={_0x15745a:0x327,_0x2d5a6f:0x1eb},_0x58a41a=_0x12e049[_0x408016(_0x5d3ef9._0x5a778d,0x169,_0x5d3ef9._0x2313b4,0x278)](_0x38bb74[_0xda7fef(0x18e,0x29f,0x231,0x30d)]??process[_0xda7fef(0x448,0x3c6,_0x5d3ef9._0x145f28,_0x5d3ef9._0x209e40)]()),_0x40508c=_0x38bb74[_0xda7fef(0x3f1,0x3de,0x519,_0x5d3ef9._0xdc4977)]??[];function _0x408016(_0x3d7da0,_0x50f64a,_0x4275c7,_0x1ce10c){return _0x199ce4(_0x50f64a-0x216,_0x50f64a-0x140,_0x1ce10c,_0x1ce10c-0xaa);}const _0x3367ee=_0x38bb74[_0x408016(_0x5d3ef9._0x197408,_0x5d3ef9._0x320eba,0x150,0x1ae)]??0x64;function _0xda7fef(_0x140d58,_0x240ed9,_0x2061be,_0x2e73ed){return _0x199ce4(_0x240ed9-_0x44bb18._0x15745a,_0x240ed9-0x45,_0x140d58,_0x2e73ed-_0x44bb18._0x2d5a6f);}const _0x7c9c0=_0x38bb74[_0xda7fef(_0x5d3ef9._0x17a901,0x267,_0x5d3ef9._0x5daf27,_0x5d3ef9._0x24d8ba)]??_0xda7fef(_0x5d3ef9._0x3531e2,_0x5d3ef9._0xeea7eb,0x235,0x381);return defineTool({'name':_0x7c9c0,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0x408016(0x265,_0x5d3ef9._0x2c9cec,_0x5d3ef9._0x382b37,_0x5d3ef9._0x36a23f),'properties':{'pattern':{'type':_0x408016(_0x5d3ef9._0x3daa8c,_0x5d3ef9._0x43712e,0x277,_0x5d3ef9._0x4f8982)},'path':{'type':'string'},'limit':{'type':_0x408016(0x2da,0x320,_0x5d3ef9._0x31e879,_0x5d3ef9._0x2a9ebf)}},'required':[_0x408016(_0x5d3ef9._0x23a02c,_0x5d3ef9._0x3036d1,0x3ab,_0x5d3ef9._0x16f8c5)]},async *'execute'(_0xa43b18){if(_0xa43b18[_0x2f7b0e(0x207,_0x58630a._0x15f6d2,_0x58630a._0xe35a3b,_0x58630a._0x422c86)][_0x2f7b0e(-_0x58630a._0x5b92cf,-_0x58630a._0x1d3235,-_0x58630a._0xe1c360,0x99)]()[_0x2f7b0e(_0x58630a._0x3a9c37,0xdf,_0x58630a._0x50321e,0x256)]===0x0)throw new ToolExecutionError(_0x9eca6f(-_0x58630a._0xd794c5,-_0x58630a._0x302813,-_0x58630a._0x348d14,-_0x58630a._0x1112b3),{});const _0x217280=resolveAllowedPath(_0x58a41a,_0x40508c,_0xa43b18[_0x2f7b0e(_0x58630a._0x25e665,-0xb6,0x3e,_0x58630a._0x3f7f24)]??'.'),_0xe479=await _0x1796df(_0x217280)[_0x9eca6f(-0x13a,_0x58630a._0x3c63a1,0x26,0x128)](()=>null);if(!_0xe479?.[_0x2f7b0e(0x31d,_0x58630a._0x5c34eb,0x277,0x287)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+(_0xa43b18['path']??'.'),{'path':_0xa43b18[_0x2f7b0e(_0x58630a._0x1ec611,_0x58630a._0x4c5fe1,0x3e,_0x58630a._0x2c76f2)]??'.'});const _0x21e1d2=_0xa43b18[_0x9eca6f(_0x58630a._0x3546b1,-_0x58630a._0x518761,_0x58630a._0x2b3c1c,-0x118)]??_0x3367ee,_0x4d24ab=Math[_0x9eca6f(0x156,0x1b,_0x58630a._0x413dd4,_0x58630a._0x19ecc1)](0x1,Math[_0x2f7b0e(_0x58630a._0x472887,_0x58630a._0x34102a,_0x58630a._0x2734a6,0x308)](_0x21e1d2));function _0x9eca6f(_0x1f3310,_0x1cde18,_0x3e702b,_0x1eced3){return _0x408016(_0x1f3310-0x63,_0x3e702b- -0x183,_0x3e702b-0x26,_0x1cde18);}const _0xaab08a=[];let _0x1815a5=![];for await(const _0x44a7e2 of files({'cwd':_0x217280,'glob':[_0xa43b18['pattern']]})){if(_0xaab08a[_0x9eca6f(0x106,_0x58630a._0x3364ce,_0x58630a._0x5158cb,-0xac)]>=_0x4d24ab){_0x1815a5=!![];break;}const _0x35691c=await _0x1796df(_0x12e049[_0x2f7b0e(0x6f,_0x58630a._0x4791fb,_0x58630a._0x437ca5,_0x58630a._0x1f4d44)](_0x217280,_0x44a7e2))[_0x9eca6f(-0xec,0x82,0x26,0x172)](()=>null);_0xaab08a[_0x2f7b0e(-_0x58630a._0x4c5fe1,0x13b,0xa,0x5c)]({'path':_0x44a7e2,'mtime':_0x35691c?.[_0x2f7b0e(_0x58630a._0x146b9b,0x155,0x58,_0x58630a._0x1b45a1)]??0x0});}_0xaab08a['sort']((_0x5f2d04,_0x37d8c8)=>_0x37d8c8['mtime']-_0x5f2d04[_0x2f7b0e(0x2aa,0x2c0,0x2b7,0x40b)]);const _0x2cfda0=_0xaab08a[_0x9eca6f(-_0x58630a._0x349a9b,_0x58630a._0x59e42a,0x80,0x120)](_0x6ddb9f=>_0x6ddb9f['path']),_0x3cd609=_0x2cfda0[_0x2f7b0e(0x1f7,-_0x58630a._0x1f3378,_0x58630a._0x1b5225,0x238)]===0x0?_0x2f7b0e(_0x58630a._0x568144,_0x58630a._0x10411b,0x231,_0x58630a._0x44afc3)+_0xa43b18[_0x9eca6f(_0x58630a._0x52d5a1,_0x58630a._0x4aac6d,_0x58630a._0x5a4246,0x23d)]:''+_0x2cfda0[_0x2f7b0e(0x256,0x27c,_0x58630a._0x437ca5,_0x58630a._0x3acb76)]('\x0a')+(_0x1815a5?_0x2f7b0e(0x19c,_0x58630a._0xabc1e3,0x253,_0x58630a._0x3e60f4):'');yield createToolOutput(_0x3cd609,{'pattern':_0xa43b18['pattern'],'searchPath':_0x12e049['relative'](_0x58a41a,_0x217280)||'.','matches':_0x2cfda0,'count':_0x2cfda0['length'],'truncated':_0x1815a5});function _0x2f7b0e(_0x50a8d4,_0x3b06e9,_0x68d1ed,_0x5c8e68){return _0x408016(_0x50a8d4-_0x130963._0x4c5653,_0x68d1ed- -0xb4,_0x68d1ed-0x121,_0x5c8e68);}return void 0x0;}});}import{stat as _0x101270}from'fs/promises';import*as _0x4b30c0 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x307573={}){const _0x2f9bd4={_0xcb7add:0x462,_0x55668a:0x6c,_0x12d791:0x1f4,_0x27b7d7:0x70b,_0x96a66f:0x591,_0x439659:0x1dc,_0x48b6bb:0x6d6,_0x16fc5c:0x7d2,_0x49f124:0x8f4,_0x2a4f67:0x898,_0x3938f2:0x6d7,_0x21aa7f:0x5fa,_0x3525b1:0x7c1,_0x2aaf3b:0x23e,_0x3c114a:0x3a3,_0x29539c:0x177},_0x12c180={_0x43ea2d:0x46b,_0x35d4ba:0x599,_0x5b8ebc:0x3f3,_0x449fae:0x262,_0x1e7f76:0x17a,_0x5c5d33:0x133,_0x53b4e0:0x37,_0x2e0618:0x234,_0xca67c9:0x46e,_0x12d64b:0x594,_0x30f6c6:0x4e7,_0x5ed1e8:0x382,_0x27ace8:0x5a0,_0x310336:0x287,_0x7851ca:0xb6,_0x57615b:0x474,_0x424627:0x432,_0x49f0ce:0x46d,_0x38b1ad:0x29a,_0x43af9a:0x6a0,_0x46a46f:0x687,_0x18d8cc:0x590,_0x2ac893:0x25f,_0x43346a:0x186,_0x339a44:0x194,_0x227c84:0x2f7,_0x5e208f:0x83,_0x4707b9:0xbe,_0x55eda1:0x226,_0x31627e:0xd3,_0x4d0c2b:0x29c,_0x34e5dd:0x163,_0x262670:0x251,_0x3555b8:0x2d9,_0x3906df:0x464,_0x3d96cb:0x2a7,_0x1ff61d:0x450,_0x237313:0x1b1,_0x38d2da:0x35f,_0x205fb5:0x571,_0x1c056a:0x408,_0x53ac04:0x34b,_0x3957d8:0x3a4,_0x4e17af:0x346,_0x1b110e:0x160,_0x12711b:0x344,_0x8bbba5:0x3e2,_0x1caf9c:0x3b7,_0x295593:0x376,_0x50ba33:0x3d4,_0x372fd4:0x27e,_0xf6e33b:0x42a,_0x2040cd:0x271,_0x1ad9a2:0x138,_0x34c30c:0x54,_0x501234:0x1ae,_0x3b3649:0x2bb,_0x456dc8:0x238,_0x326012:0x4f9,_0x20742a:0x56,_0x306852:0x26c,_0x41573b:0x1b0,_0x4071f1:0x410,_0x3489e7:0x385,_0x391e99:0x4ab,_0x23089a:0x48b,_0x3eb4e9:0x16f},_0x2c02a2={_0x2818c8:0x1e3,_0x322bab:0x19e},_0x5ebbb1={_0x353c0e:0x134},_0x1b01dd={_0x15ac35:0x15b},_0x132460=_0x4b30c0[_0x50e5da(0x589,0x5a4,0x496,_0x2f9bd4._0xcb7add)](_0x307573['defaultCwd']??process[_0x1045de(0x1d3,_0x2f9bd4._0x55668a,_0x2f9bd4._0x12d791,0x1be)]()),_0x347b98=_0x307573[_0x50e5da(0x5b1,0x708,0x778,_0x2f9bd4._0x27b7d7)]??[],_0x2235cd=_0x307573['limit']??0x64,_0x2c47eb=_0x307573[_0x50e5da(0x627,_0x2f9bd4._0x96a66f,0x5d3,0x653)]??_0x1045de(0x6c,0xa8,_0x2f9bd4._0x439659,0xc4);function _0x50e5da(_0x22b5ed,_0x3c176e,_0x5b835e,_0x2b65f2){return _0x199ce4(_0x3c176e-0x651,_0x3c176e-_0x1b01dd._0x15ac35,_0x22b5ed,_0x2b65f2-0xd2);}function _0x1045de(_0x44ac4b,_0x4d7e77,_0x471620,_0x2050b3){return _0x199ce4(_0x44ac4b-_0x5ebbb1._0x353c0e,_0x4d7e77-0xda,_0x2050b3,_0x2050b3-0xe7);}return defineTool({'name':_0x2c47eb,'description':_0x50e5da(0x820,0x6ea,_0x2f9bd4._0x48b6bb,_0x2f9bd4._0x16fc5c),'inputSchema':{'type':_0x50e5da(_0x2f9bd4._0x49f124,0x7bd,0x84d,_0x2f9bd4._0x2a4f67),'properties':{'pattern':{'type':_0x50e5da(0x5af,_0x2f9bd4._0x3938f2,0x77d,_0x2f9bd4._0x21aa7f)},'path':{'type':'string'},'include':{'type':_0x50e5da(_0x2f9bd4._0x3525b1,0x6d7,0x7d0,0x5f6)},'limit':{'type':_0x1045de(_0x2f9bd4._0x2aaf3b,_0x2f9bd4._0x3c114a,0x2c4,_0x2f9bd4._0x29539c)},'context':{'type':'number'}},'required':[_0x50e5da(0x712,0x772,0x6bb,0x69e)]},async *'execute'(_0x1ead1f){const _0x4884c6={_0x4d0161:0x344};if(_0x1ead1f[_0x2a09c4(0x434,_0x12c180._0x43ea2d,_0x12c180._0x35d4ba,0x4c2)][_0x2a09c4(_0x12c180._0x5b8ebc,0x214,0x309,0x36b)]()[_0x1beb20(_0x12c180._0x449fae,0x1a2,_0x12c180._0x1e7f76,0x231)]===0x0)throw new ToolExecutionError(_0x1beb20(_0x12c180._0x5c5d33,0x198,-_0x12c180._0x53b4e0,0x105),{});function _0x1beb20(_0x47838f,_0x2b8782,_0x54190b,_0x2a9e83){return _0x1045de(_0x2a9e83-0x139,_0x2b8782-_0x2c02a2._0x2818c8,_0x54190b-_0x2c02a2._0x322bab,_0x54190b);}const _0x3c92f2=resolveAllowedPath(_0x132460,_0x347b98,_0x1ead1f[_0x2a09c4(0x44f,_0x12c180._0x2e0618,0x354,0x24f)]??'.'),_0xfc094=await _0x101270(_0x3c92f2)['catch'](()=>null),_0x5e94e2=_0xfc094?.[_0x2a09c4(_0x12c180._0xca67c9,_0x12c180._0x12d64b,_0x12c180._0x30f6c6,0x441)]()??![],_0x21f8f8=_0xfc094?.[_0x1beb20(0x3b8,0x2f7,0x3c7,_0x12c180._0x5ed1e8)]()??![];if(!_0x5e94e2&&!_0x21f8f8)throw new ToolExecutionError(_0x2a09c4(0x556,0x432,_0x12c180._0x27ace8,0x49d)+(_0x1ead1f[_0x1beb20(0xf,_0x12c180._0x310336,_0x12c180._0x7851ca,0x149)]??'.'),{'path':_0x1ead1f[_0x2a09c4(_0x12c180._0x57615b,0x4c9,0x354,0x26d)]??'.'});const _0x59539f=_0x1ead1f[_0x2a09c4(0x46b,0x341,_0x12c180._0x424627,0x494)]??_0x2235cd,_0x3dfb10=Math[_0x2a09c4(_0x12c180._0x49f0ce,0x63e,0x4ef,0x465)](0x1,Math[_0x1beb20(0x4f3,0x31e,0x4a0,0x386)](_0x59539f));function _0x2a09c4(_0x44c772,_0x34a521,_0x488cf8,_0x1ec28f){return _0x1045de(_0x488cf8-_0x4884c6._0x4d0161,_0x34a521-0xc3,_0x488cf8-0xee,_0x34a521);}const _0x2f8b95=await search({'cwd':_0x21f8f8?_0x3c92f2:_0x4b30c0[_0x1beb20(_0x12c180._0x38b1ad,0x340,0x46b,0x366)](_0x3c92f2),'pattern':_0x1ead1f[_0x2a09c4(_0x12c180._0x43af9a,0x46f,0x599,_0x12c180._0x46a46f)],'glob':_0x21f8f8?_0x1ead1f[_0x2a09c4(0x615,0x4e0,_0x12c180._0x18d8cc,0x709)]:void 0x0,'limit':_0x3dfb10,'file':_0x5e94e2?_0x3c92f2:void 0x0,'context':_0x1ead1f[_0x1beb20(_0x12c180._0x2ac893,_0x12c180._0x43346a,_0x12c180._0x339a44,_0x12c180._0x449fae)]}),_0x513567=new Map();for(const _0x3a16fb of _0x2f8b95){if(!_0x513567['has'](_0x3a16fb[_0x1beb20(0xbd,_0x12c180._0x227c84,0x153,0x1b3)])){const _0x4523ec=await _0x101270(_0x3a16fb[_0x1beb20(0x1b4,0x274,_0x12c180._0x5e208f,0x1b3)])[_0x1beb20(_0x12c180._0x4707b9,0x166,0x20c,0x200)](()=>null);_0x513567[_0x1beb20(0x332,0x3c8,0x38c,0x367)](_0x3a16fb['filePath'],{'matches':[],'mtime':_0x4523ec?.[_0x1beb20(_0x12c180._0x55eda1,_0x12c180._0x31627e,_0x12c180._0x4d0c2b,_0x12c180._0x34e5dd)]??0x0});}_0x513567[_0x2a09c4(_0x12c180._0x262670,0x333,0x327,_0x12c180._0x3555b8)](_0x3a16fb['filePath'])?.[_0x2a09c4(0x39c,0x36f,0x46a,0x50c)][_0x2a09c4(_0x12c180._0x3906df,_0x12c180._0x3d96cb,0x320,_0x12c180._0x1ff61d)](_0x3a16fb);}const _0x1d9bd9=[..._0x513567['entries']()]['sort']((_0x293d63,_0x4aeaa6)=>_0x4aeaa6[0x1]['mtime']-_0x293d63[0x1][_0x1beb20(0x3f6,0x320,0x4ca,0x3c2)]),_0x32aab0=_0x2f8b95[_0x1beb20(0x189,0x309,0x22e,_0x12c180._0x237313)](_0x3eb031=>!_0x3eb031[_0x1beb20(0x238,0x10f,0x123,0x138)])[_0x1beb20(0x2a9,_0x12c180._0x38d2da,0x30a,0x231)],_0x17327a=_0x2f8b95[_0x1beb20(0xc2,0x26c,0x232,0x231)]>=_0x3dfb10,_0x4ecb7d=_0x5e94e2?_0x4b30c0[_0x2a09c4(0x54c,0x69e,_0x12c180._0x205fb5,0x491)](_0x3c92f2):_0x3c92f2;let _0xd7ce7='';if(_0x2f8b95[_0x2a09c4(0x486,_0x12c180._0x1c056a,0x43c,0x55c)]===0x0)_0xd7ce7='No\x20matches\x20found\x20for\x20pattern:\x20'+_0x1ead1f[_0x1beb20(_0x12c180._0x53ac04,0x30a,0x508,0x38e)];else{_0xd7ce7=_0x1beb20(0x370,0x454,0x249,_0x12c180._0x3957d8)+_0x32aab0+_0x1beb20(0x36f,0x40b,_0x12c180._0x4e17af,0x3ec)+(_0x32aab0===0x1?'':'es')+'\x0a';for(const [_0x3277b3,_0x3825d8]of _0x1d9bd9){const _0x1aec0b=_0x5e94e2?_0x4b30c0['basename'](_0x3277b3):_0x4b30c0[_0x1beb20(0x1a6,0x1bb,0x15b,0x17b)](_0x4ecb7d,_0x3277b3);_0xd7ce7+='\x0a'+_0x1aec0b+':\x0a';for(const _0x102c24 of _0x3825d8[_0x1beb20(_0x12c180._0x1b110e,0x390,0x1a2,_0x12c180._0x2ac893)]){const _0x4588bc=_0x102c24[_0x1beb20(_0x12c180._0x12711b,_0x12c180._0x8bbba5,_0x12c180._0x4e17af,_0x12c180._0x1caf9c)]['length']>MAX_LINE_LENGTH?_0x102c24['lineText'][_0x1beb20(_0x12c180._0x295593,_0x12c180._0x50ba33,0x19c,_0x12c180._0x372fd4)](0x0,MAX_LINE_LENGTH)+_0x2a09c4(0x323,_0x12c180._0xf6e33b,0x3b6,_0x12c180._0x2040cd):_0x102c24['lineText'],_0x3cd22f=_0x102c24[_0x1beb20(0x296,0x147,0x214,_0x12c180._0x1ad9a2)]?'\x20\x20':'>\x20';_0xd7ce7+=_0x3cd22f+_0x1beb20(-0x34,_0x12c180._0x34c30c,_0x12c180._0x501234,_0x12c180._0x5c5d33)+_0x102c24['lineNum']+':\x20'+_0x4588bc+'\x0a';}}_0x17327a&&(_0xd7ce7+=_0x1beb20(0x20d,_0x12c180._0x3b3649,_0x12c180._0x456dc8,0x35e));}const _0x5ced94={'searchPath':_0x4b30c0[_0x2a09c4(0x2a9,_0x12c180._0x326012,0x386,0x402)](_0x132460,_0x3c92f2)||'.','pattern':_0x1ead1f['pattern'],'matchCount':_0x32aab0,'fileCount':_0x513567[_0x1beb20(_0x12c180._0x20742a,0x2d5,_0x12c180._0x306852,_0x12c180._0x41573b)],'truncated':_0x17327a};return _0x21f8f8&&_0x1ead1f[_0x1beb20(0x247,0x283,0x226,0x385)]!==void 0x0&&(_0x5ced94[_0x1beb20(0x3ec,_0x12c180._0x4071f1,0x2f9,_0x12c180._0x3489e7)]=_0x1ead1f[_0x2a09c4(0x530,_0x12c180._0x391e99,0x590,_0x12c180._0x23089a)]),yield createToolOutput(_0xd7ce7[_0x1beb20(0x1fd,0x0,_0x12c180._0x3eb4e9,0xfe)](),_0x5ced94),void 0x0;}});}function createKillShellTool(_0x122535){const _0x391b02={_0x3ce45c:0x4a,_0x53ddc8:0x32,_0x3ad7c5:0x65,_0x8fb16b:0x6a,_0x2c5bb0:0x47,_0x40c11e:0x1d,_0x4cee78:0x142,_0x48f9b3:0x49},_0x5800b2={_0x5d6610:0x12b,_0x4c9744:0x2d4,_0x6fa902:0x461,_0x8cf796:0x5b7,_0x51b89f:0x58c,_0x309adf:0x584,_0x242414:0x34c,_0x33d797:0x1bc,_0x20cf7e:0x44b,_0x26f9c4:0x2a8,_0x5ca827:0x35b,_0x328b1c:0xd9,_0x5bc572:0x22f,_0x52bc00:0x1cf},_0x4df98e={_0x2c34f3:0x1af,_0x1ae0ad:0xdc},_0x707c4f={_0x22afe0:0x2b8,_0x32ab7e:0xa5},_0x19bfff={_0x19f8e8:0x18a},_0x32b967={_0x47bf02:0xcd},{registry:_0x326c53}=_0x122535;function _0x44eba7(_0x1718b8,_0x1e8ffa,_0xa562c5,_0x233202){return _0x199ce4(_0x1e8ffa- -_0x32b967._0x47bf02,_0x1e8ffa-0x1d9,_0x1718b8,_0x233202-0x14e);}function _0x3a3e5f(_0x4babf9,_0x38b8fe,_0x366005,_0x3c37c2){return _0x199ce4(_0x366005- -0x55,_0x38b8fe-_0x19bfff._0x19f8e8,_0x38b8fe,_0x3c37c2-0x171);}return defineTool({'name':_0x44eba7(-0x100,-0x122,-_0x391b02._0x3ce45c,-_0x391b02._0x53ddc8),'description':_0x3a3e5f(-_0x391b02._0x3ad7c5,-0x3f,0x6b,0xc6),'inputSchema':{'type':'object','properties':{'shellId':{'type':_0x44eba7(-_0x391b02._0x8fb16b,-_0x391b02._0x2c5bb0,_0x391b02._0x40c11e,0x88)}},'required':[_0x44eba7(-_0x391b02._0x4cee78,-0x4e,-_0x391b02._0x48f9b3,-0x193)]},async *'execute'(_0x31157a){function _0x1f3049(_0xffaeb1,_0x1cad0c,_0x590a46,_0x5856f9){return _0x3a3e5f(_0xffaeb1-0x16f,_0x5856f9,_0x590a46-_0x707c4f._0x22afe0,_0x5856f9-_0x707c4f._0x32ab7e);}function _0x389f5b(_0x465f03,_0x38ff50,_0x3b0c48,_0x9d6c21){return _0x44eba7(_0x38ff50,_0x465f03-0x4af,_0x3b0c48-_0x4df98e._0x2c34f3,_0x9d6c21-_0x4df98e._0x1ae0ad);}const _0x14565a=_0x326c53[_0x1f3049(0x10e,_0x5800b2._0x5d6610,0x277,_0x5800b2._0x4c9744)](_0x31157a[_0x389f5b(_0x5800b2._0x6fa902,_0x5800b2._0x8cf796,_0x5800b2._0x51b89f,_0x5800b2._0x309adf)]);return createToolOutput('Killed\x20'+_0x31157a[_0x1f3049(_0x5800b2._0x242414,_0x5800b2._0x33d797,0x2e2,_0x5800b2._0x20cf7e)]+_0x1f3049(0x23c,0x3eb,0x30e,0x1ef)+_0x14565a['status']+').',{'shellId':_0x31157a[_0x1f3049(0x1a9,_0x5800b2._0x26f9c4,0x2e2,0x175)],'status':_0x14565a[_0x1f3049(_0x5800b2._0x5ca827,_0x5800b2._0x328b1c,_0x5800b2._0x5bc572,0x124)],'exitCode':_0x14565a[_0x1f3049(0x390,0x35a,0x2ca,_0x5800b2._0x52bc00)],'signal':_0x14565a['signal']});}});}import{readdir as _0x5418b4,readFile as _0x504c40,stat as _0x1ea8bd}from'fs/promises';import*as _0x4e03ac from'path';import*as _0x5d1f27 from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x42ce62,_0x2bb32c){const _0x398335={_0x5ac134:0x19e,_0x119e3b:0xfc,_0x44ea1d:0x106,_0x4878f7:0x2f9,_0x3b840f:0x228,_0x29c676:0x20d},_0x6f7207={_0x2f2641:0x95},_0x3255d0={_0x55947d:0x249,_0x21ce34:0x112};if(_0x2bb32c>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x36ed61(_0x9cc148,_0x2edfb2,_0xed7f49,_0x5d10b5){return _0x199ce4(_0x5d10b5-_0x3255d0._0x55947d,_0x2edfb2-0xda,_0x9cc148,_0x5d10b5-_0x3255d0._0x21ce34);}function _0x559d0f(_0x399c55,_0x273a3c,_0x163349,_0x2a3065){return _0x199ce4(_0x2a3065-0x2aa,_0x273a3c-0xf,_0x273a3c,_0x2a3065-_0x6f7207._0x2f2641);}const _0x39c743=await _0x504c40(_0x42ce62)['catch'](()=>null);if(!_0x39c743||isProbablyBinary(_0x39c743))return void 0x0;return _0x39c743[_0x36ed61(_0x398335._0x5ac134,_0x398335._0x119e3b,_0x398335._0x44ea1d,0x230)](_0x559d0f(0x269,_0x398335._0x4878f7,0x2a7,0x2ec))['split'](/\r?\n/)[_0x36ed61(0x143,_0x398335._0x3b840f,0x20a,_0x398335._0x29c676)];}function createLsTool(_0x4e66e2={}){const _0xd80224={_0x5b03a6:0x524,_0x498a1a:0x4f1,_0x568002:0x3a6,_0x5d0921:0x486,_0x3dbb91:0x24c,_0x3192c7:0x53b,_0x3d60b4:0x623,_0x211eca:0x515,_0x965ba3:0x738},_0x477ce6={_0x46091c:0x155,_0x310dc0:0xd2,_0xba35f8:0x556,_0x1e94ea:0x553,_0x318a47:0x52,_0x13dc40:0x74,_0x51eb91:0x441,_0x2168de:0x3bc,_0x589df1:0x585,_0x22bc78:0x4c2,_0x34a598:0x458,_0x4a9adb:0x5ac,_0x2fa5bc:0x293,_0x2cc54e:0x360,_0xd55687:0x9b,_0x1cc332:0x1f2,_0x188872:0x1ea,_0x1479a9:0x46a,_0x4667cc:0x5fa,_0x36e27a:0x4b6,_0x1a6849:0x5b8,_0x5b3463:0x43f,_0x2b2d4f:0x438,_0x54b7be:0xda,_0x2dd145:0xe5,_0x51c90c:0x61,_0x53304c:0x41d,_0x3cc627:0x209,_0x2824aa:0xb3,_0x54ccba:0x367,_0x51430b:0x38a,_0x1b2566:0x3ce,_0x237ab3:0x153,_0x522fda:0xc0,_0x50e957:0xcf,_0x19ec93:0x62,_0x5b86a3:0x77,_0x59ca7c:0x7a,_0x332c61:0xf0,_0x11a00d:0x5c,_0x3cc624:0xd1,_0x436dc6:0x1b3,_0x16247e:0x571,_0x1a8a90:0x5b7,_0x13b16b:0x86,_0x203c7d:0xe4,_0x39acf7:0x5c,_0xfdb75d:0x6c,_0x2457e7:0x113,_0x1cc733:0x16a,_0x2476ba:0x3,_0x2032e1:0x53},_0x241d94={_0xf60e95:0x122,_0x5b3cfa:0x337,_0x5a54e5:0x12c},_0x3997a0={_0x501cac:0x174},_0x4b9e9f={_0x99dd01:0x3cf,_0x53d97d:0x73,_0x24aef9:0x1cd},_0x3d334f={_0x52b9e4:0x38,_0x385617:0x88},_0x5a89e7=_0x4e03ac['resolve'](_0x4e66e2[_0x31bde7(0x59c,_0xd80224._0x5b03a6,_0xd80224._0x498a1a,0x58f)]??process[_0x3e9f29(0x4e7,0x46e,_0xd80224._0x568002,0x386)]());function _0x31bde7(_0x262492,_0x38d948,_0x2b8cda,_0x34c4fc){return _0x26f978(_0x262492-_0x3d334f._0x52b9e4,_0x38d948-_0x3d334f._0x385617,_0x38d948-0x32a,_0x34c4fc);}const _0x5a0d19=_0x4e66e2[_0x3e9f29(0x372,_0xd80224._0x5d0921,0x33c,0x592)]??[];function _0x3e9f29(_0x146c80,_0xe3f2e2,_0x50ed93,_0x856185){return _0x199ce4(_0xe3f2e2-_0x4b9e9f._0x99dd01,_0xe3f2e2-_0x4b9e9f._0x53d97d,_0x856185,_0x856185-_0x4b9e9f._0x24aef9);}const _0x1a62c8=_0x4e66e2[_0x3e9f29(0x29e,0x30f,_0xd80224._0x3dbb91,0x2ff)]??'Ls';return defineTool({'name':_0x1a62c8,'description':'List\x20files\x20and\x20directories\x20in\x20the\x20workspace\x20or\x20allowed\x20directories.','inputSchema':{'type':_0x3e9f29(0x421,_0xd80224._0x3192c7,_0xd80224._0x3d60b4,_0xd80224._0x211eca),'properties':{'path':{'type':'string'},'limit':{'type':_0x31bde7(_0xd80224._0x965ba3,0x6b6,0x7aa,0x77d)}}},async *'execute'(_0x89c170){const _0x20b19c=_0x89c170[_0x3469a1(-0x8c,-_0x477ce6._0x46091c,0xaf,-0x5a)]??'.',_0x176f47=resolveAllowedPath(_0x5a89e7,_0x5a0d19,_0x20b19c),_0x117d0c=await _0x1ea8bd(_0x176f47)[_0x3469a1(0x2b,_0x477ce6._0x310dc0,0x76,0x58)](()=>null);if(!_0x117d0c?.[_0x3469a1(0x1ad,0x1db,0x1dc,0x296)]())throw new ToolExecutionError(_0x3b76ca(0x4d1,0x532,_0x477ce6._0xba35f8,_0x477ce6._0x1e94ea)+_0x20b19c,{'path':_0x20b19c});const _0x122b7c=_0x89c170[_0x3469a1(_0x477ce6._0x318a47,-_0x477ce6._0x13dc40,0xcf,0xd0)]??0x3e8,_0x3e172f=Math['min'](Math[_0x3b76ca(_0x477ce6._0x51eb91,0x407,0x4be,_0x477ce6._0x2168de)](Math['trunc'](_0x122b7c),0x1),0x2710),_0x13fdae=await _0x5418b4(_0x176f47);function _0x3b76ca(_0x581a91,_0x40d270,_0x40bec9,_0x31a126){return _0x31bde7(_0x581a91-_0x3997a0._0x501cac,_0x40bec9- -0x165,_0x40bec9-0xbe,_0x581a91);}const _0x37b29c=[];for(const _0x34a75a of _0x13fdae[_0x3b76ca(_0x477ce6._0x589df1,_0x477ce6._0x22bc78,_0x477ce6._0x34a598,_0x477ce6._0x4a9adb)](0x0,_0x3e172f)){const _0x176b0d=_0x4e03ac['join'](_0x176f47,_0x34a75a),_0x160aee=await _0x1ea8bd(_0x176b0d)[_0x3b76ca(_0x477ce6._0x2fa5bc,_0x477ce6._0x2cc54e,0x3da,0x329)](()=>null);if(!_0x160aee)continue;let _0x4168ae=_0x3469a1(0xc6,_0x477ce6._0xd55687,_0x477ce6._0x1cc332,_0x477ce6._0x188872);if(_0x160aee[_0x3b76ca(_0x477ce6._0x1479a9,_0x477ce6._0x4667cc,_0x477ce6._0x36e27a,0x4f7)]())_0x4168ae=_0x3b76ca(0x5c7,0x587,_0x477ce6._0x1a6849,0x5ca);else{if(_0x160aee['isDirectory']())_0x4168ae=_0x3b76ca(0x42a,_0x477ce6._0x5b3463,0x468,_0x477ce6._0x2b2d4f);else{if(_0x160aee['isSymbolicLink']())_0x4168ae=_0x3469a1(-_0x477ce6._0x54b7be,-_0x477ce6._0x2dd145,_0x477ce6._0x51c90c,-0x189);}}const _0xca18df={'name':_0x34a75a,'type':_0x4168ae,'size':_0x160aee['size'],'mtime':_0x160aee['mtimeMs'],'mode':_0x160aee[_0x3b76ca(0x20d,_0x477ce6._0x53304c,0x382,0x461)]},_0x4fbea3=_0x4168ae===_0x3469a1(_0x477ce6._0x3cc627,0x136,_0x477ce6._0x2824aa,0x299)?await countTextLines(_0x176b0d,_0x160aee[_0x3b76ca(0x451,_0x477ce6._0x54ccba,_0x477ce6._0x51430b,_0x477ce6._0x1b2566)]):void 0x0;if(_0x4fbea3!==void 0x0)_0xca18df[_0x3469a1(_0x477ce6._0x237ab3,0x1bc,0x1ac,0x8a)]=_0x4fbea3;_0x37b29c[_0x3469a1(-_0x477ce6._0x522fda,0x8b,-_0x477ce6._0x50e957,-0xc6)](_0xca18df);}_0x37b29c[_0x3469a1(_0x477ce6._0x19ec93,-0xa3,-_0x477ce6._0x5b86a3,0x130)]((_0x459c1e,_0x334ca5)=>_0x459c1e[_0x3469a1(-0x28,0xab,-0x196,-0x1a0)][_0x3469a1(0x12f,0x1ac,0x234,0x2d)](_0x334ca5[_0x3469a1(-0x28,-0xb4,-0x67,-0x18)]));function _0x3469a1(_0x2cea50,_0xe6388c,_0x5a5a2a,_0x47f291){return _0x3e9f29(_0x2cea50-_0x241d94._0xf60e95,_0x2cea50- -_0x241d94._0x5b3cfa,_0x5a5a2a-_0x241d94._0x5a54e5,_0x47f291);}const _0x528692={'path':_0x20b19c,'total':_0x37b29c[_0x3469a1(0x5c,-_0x477ce6._0x59ca7c,0x124,-_0x477ce6._0x332c61)],'truncated':_0x13fdae[_0x3469a1(_0x477ce6._0x11a00d,0xf6,_0x477ce6._0x3cc624,_0x477ce6._0x436dc6)]>_0x3e172f,'entries':_0x37b29c};return yield createToolOutput(_0x5d1f27[_0x3b76ca(0x442,_0x477ce6._0x16247e,_0x477ce6._0x1a8a90,0x4a4)](_0x528692,{'indent':0x2,'lineWidth':0x0})[_0x3469a1(-_0x477ce6._0x13b16b,-0x97,_0x477ce6._0x203c7d,0xaf)](),{'path':_0x20b19c,'total':_0x37b29c[_0x3469a1(_0x477ce6._0x39acf7,-0x45,-_0x477ce6._0xfdb75d,-_0x477ce6._0x2457e7)],'truncated':_0x13fdae[_0x3469a1(0x5c,_0x477ce6._0x1cc733,-_0x477ce6._0x2476ba,-_0x477ce6._0x2032e1)]>_0x3e172f,'limit':_0x3e172f,'entries':_0x37b29c}),void 0x0;}});}import{stat as _0x28d3f5}from'fs/promises';import _0x95a5d9 from'path';import{fileURLToPath as _0x260fb8}from'url';function severityName(_0x37304b){const _0x59daa7={_0x3671b2:0x160,_0x342aa5:0xfe,_0x3617a9:0x45,_0x1a2105:0x1b1,_0x33f432:0x3d},_0x25a3b6={_0x59d0e9:0x65,_0x50936b:0x18d,_0x18dbf1:0x1a},_0x278717={_0x2a3a30:0x22,_0x45e211:0x2e8};function _0x182fd9(_0x389ea5,_0x256c1d,_0x4e9c77,_0x5a4ad2){return _0x26f978(_0x389ea5-0x189,_0x256c1d-_0x278717._0x2a3a30,_0x5a4ad2- -_0x278717._0x45e211,_0x389ea5);}function _0x3d14d7(_0xa3246e,_0x24aa4c,_0x420d71,_0x44b530){return _0x199ce4(_0x44b530- -_0x25a3b6._0x59d0e9,_0x24aa4c-_0x25a3b6._0x50936b,_0xa3246e,_0x44b530-_0x25a3b6._0x18dbf1);}switch(_0x37304b){case 0x1:return _0x3d14d7(-_0x59daa7._0x3671b2,-_0x59daa7._0x342aa5,-0x1eb,-0x180);case 0x2:return'Warning';case 0x3:return _0x3d14d7(_0x59daa7._0x3617a9,0x18b,_0x59daa7._0x1a2105,_0x59daa7._0x33f432);case 0x4:return'Hint';default:return'Diagnostic';}}function formatSingleHover(_0x5ad92f){const _0x1a4473={_0x106a96:0x29e,_0x52d906:0x1b1,_0x2e9153:0x209,_0x46f47d:0x165,_0x320322:0x12f,_0x2371c9:0xbf,_0x4de3d3:0xf4,_0x2f57df:0xc1,_0x1ef31b:0xbc,_0x4025fc:0x194,_0x3e48cf:0x145,_0x2d33d6:0x11d,_0x151f16:0x14c,_0x42d081:0x239,_0x4ffd12:0xde,_0x23d612:0xa7,_0x5a27dc:0x1ea,_0x12ddcb:0xa8,_0x11575f:0x73,_0x4faf77:0xd,_0x3882a3:0xf5,_0x129afb:0xe9,_0xfcb723:0x229,_0x12498c:0x1b4,_0xe49ae0:0x179,_0x3b84df:0x152},_0x7fa44f={_0x171ffc:0xb2,_0x567305:0xdc},_0x51489a={_0x58b7c7:0x145},_0x29c3c7=_0x5ad92f[_0x534b37(_0x1a4473._0x106a96,_0x1a4473._0x52d906,_0x1a4473._0x2e9153,0x294)];function _0x534b37(_0x3836d1,_0x5bb959,_0x20907a,_0x4ed4d1){return _0x26f978(_0x3836d1-0x1d1,_0x5bb959-_0x51489a._0x58b7c7,_0x20907a- -0x1b3,_0x5bb959);}if(typeof _0x29c3c7===_0x534b37(0xf6,_0x1a4473._0x46f47d,0x155,0x123))return _0x29c3c7;if(Array[_0x534b37(0x13e,_0x1a4473._0x320322,_0x1a4473._0x2371c9,_0x1a4473._0x4de3d3)](_0x29c3c7))return _0x29c3c7[_0x534b37(0x1cc,_0x1a4473._0x2f57df,_0x1a4473._0x1ef31b,_0x1a4473._0x4025fc)](_0x195780=>typeof _0x195780==='string'?_0x195780:_0x195780[_0x72fae7(0x50,0x74,0xa8,-0x87)])[_0x72fae7(-_0x1a4473._0x3e48cf,-_0x1a4473._0x2d33d6,-0x16e,-_0x1a4473._0x151f16)](Boolean)[_0x72fae7(-_0x1a4473._0x42d081,-_0x1a4473._0x4ffd12,-0x100,-0xe7)]('\x0a\x0a');if('kind'in _0x29c3c7)return _0x29c3c7[_0x72fae7(_0x1a4473._0x23d612,_0x1a4473._0x5a27dc,_0x1a4473._0x12ddcb,0x14a)];function _0x72fae7(_0x45e576,_0x24a4ab,_0x25d415,_0x244a0c){return _0x199ce4(_0x25d415- -_0x7fa44f._0x171ffc,_0x24a4ab-_0x7fa44f._0x567305,_0x24a4ab,_0x244a0c-0x182);}return _0x29c3c7[_0x534b37(_0x1a4473._0x11575f,0x155,0x135,0x256)]?_0x72fae7(0xc,_0x1a4473._0x4faf77,-_0x1a4473._0x3882a3,-_0x1a4473._0x42d081)+_0x29c3c7['language']+'\x0a'+_0x29c3c7[_0x534b37(_0x1a4473._0x129afb,0x26c,_0x1a4473._0xfcb723,_0x1a4473._0x12498c)]+_0x534b37(0xd3,_0x1a4473._0xe49ae0,0x16a,_0x1a4473._0x3b84df):_0x29c3c7['value'];}function formatHover(_0x3f34c2){const _0x30aef3={_0xaa8ef:0x213,_0x502bd6:0x209,_0x5b8cbe:0x282,_0x4cc80e:0x244,_0x432c0a:0x185,_0x3866a8:0x24e,_0x33c497:0x175,_0x29fb28:0x22f,_0x5ba19a:0x80,_0x827e90:0x370,_0x4f4365:0x13b,_0x3a7d74:0x19e},_0x34a32b={_0xd8d1ac:0xbd},_0x54667d={_0x249d68:0xd9,_0x11bcbc:0xd0};function _0x2df129(_0x20d76c,_0x32cfa1,_0x23f0b5,_0x22bfda){return _0x199ce4(_0x32cfa1-0x198,_0x32cfa1-_0x54667d._0x249d68,_0x23f0b5,_0x22bfda-_0x54667d._0x11bcbc);}if(_0x3f34c2[_0x2df129(0x46,0x15c,0x13b,_0x30aef3._0xaa8ef)]===0x0)return _0x2df129(_0x30aef3._0x502bd6,_0x30aef3._0x5b8cbe,0x196,0x187);function _0x485fde(_0x47768a,_0x4aa354,_0x59fe4e,_0x2b024d){return _0x26f978(_0x47768a-0x13f,_0x4aa354-0x96,_0x2b024d- -_0x34a32b._0xd8d1ac,_0x59fe4e);}return _0x3f34c2[_0x2df129(_0x30aef3._0x4cc80e,_0x30aef3._0x432c0a,_0x30aef3._0x3866a8,_0x30aef3._0x33c497)](formatSingleHover)[_0x485fde(_0x30aef3._0x29fb28,0x10c,_0x30aef3._0x5ba19a,0x177)](_0x2df129(_0x30aef3._0x827e90,0x27f,_0x30aef3._0x4f4365,_0x30aef3._0x3a7d74));}function locationPath(_0x4818a8){const _0x1e90c6={_0x1cb372:0x2a9,_0x120b89:0x1b2};function _0x1ebf55(_0x5c28e0,_0x419f79,_0x188fe2,_0x4078a8){return _0x199ce4(_0x188fe2- -0xc8,_0x419f79-0x133,_0x419f79,_0x4078a8-0xab);}if(!_0x4818a8[_0x1ebf55(-0xca,-_0x1e90c6._0x1cb372,-_0x1e90c6._0x120b89,-0x1e8)]('file://'))return _0x4818a8;return _0x260fb8(_0x4818a8);}function formatLocations(_0x4440e2){const _0x3fc4e1={_0x582c1f:0x315,_0x1dd858:0x325,_0x366467:0x314,_0x18c0a0:0x3ee,_0x168742:0x4a2,_0x2e112e:0x44c},_0x2e89ee={_0x2d40b4:0x4bf,_0x43ecc3:0x40a,_0x49c168:0x3df,_0x38e050:0x5c,_0x4c2064:0x41,_0x3436a4:0x130,_0xa35205:0x3c3,_0x34bd62:0x21f,_0x1c3d3e:0x1c5,_0x3764a7:0xa9,_0x3cbd1d:0xc2,_0x7f878a:0xce},_0x3bebda={_0x31700b:0x33,_0x163cd8:0xf4},_0x16aaec={_0x36562b:0x1ab,_0x2ecb66:0x3a};function _0x338786(_0x1664c4,_0x4ecd45,_0x3cc90d,_0x59ca32){return _0x199ce4(_0x59ca32-0x40b,_0x4ecd45-_0x16aaec._0x36562b,_0x4ecd45,_0x59ca32-_0x16aaec._0x2ecb66);}if(_0x4440e2[_0x338786(0x454,_0x3fc4e1._0x582c1f,0x523,0x3cf)]===0x0)return _0x338786(0x318,0x31a,_0x3fc4e1._0x1dd858,_0x3fc4e1._0x366467);function _0xdd18e2(_0x2b9f45,_0x2070d8,_0x318a12,_0x2555df){return _0x199ce4(_0x2b9f45-0x37f,_0x2070d8-_0x3bebda._0x31700b,_0x2070d8,_0x2555df-_0x3bebda._0x163cd8);}return _0x4440e2[_0xdd18e2(0x36c,_0x3fc4e1._0x18c0a0,0x3cc,_0x3fc4e1._0x168742)](_0x10ff74=>{const _0x44b816=_0x10ff74[_0x3c7345(0x3d2,_0x2e89ee._0x2d40b4,_0x2e89ee._0x43ecc3,_0x2e89ee._0x49c168)][_0x574b54(-_0x2e89ee._0x38e050,_0x2e89ee._0x4c2064,0x96,-_0x2e89ee._0x3436a4)];function _0x574b54(_0x56be21,_0x256c8e,_0x2579f5,_0xfaca09){return _0x338786(_0x56be21-0x19d,_0xfaca09,_0x2579f5-0x1ed,_0x56be21- -0x4d3);}function _0x3c7345(_0x317b65,_0x3a58ae,_0x26e75a,_0x393970){return _0xdd18e2(_0x317b65-0xcd,_0x26e75a,_0x26e75a-0xf6,_0x393970-0x8a);}return locationPath(_0x10ff74[_0x3c7345(0x385,0x451,_0x2e89ee._0xa35205,0x4f0)])+':'+(_0x44b816[_0x574b54(-_0x2e89ee._0x34bd62,-0x2c1,-_0x2e89ee._0x1c3d3e,-0x2a4)]+0x1)+':'+(_0x44b816[_0x574b54(-_0x2e89ee._0x3764a7,-0x109,-_0x2e89ee._0x3cbd1d,-_0x2e89ee._0x7f878a)]+0x1);})[_0xdd18e2(0x331,_0x3fc4e1._0x2e112e,0x27c,0x463)]('\x0a');}function isDocumentSymbol(_0x35fba5){const _0x4e51dc={_0x4f9e7f:0x63,_0xfb654f:0x4,_0x8d226d:0xe1},_0x5ec3f5={_0x1beeb3:0x36,_0x248d6a:0xe9,_0x157f8d:0x1a6};function _0x10ea4a(_0x49cd02,_0x1a4467,_0x51edb4,_0x151695){return _0x199ce4(_0x49cd02- -_0x5ec3f5._0x1beeb3,_0x1a4467-_0x5ec3f5._0x248d6a,_0x51edb4,_0x151695-_0x5ec3f5._0x157f8d);}return'range'in _0x35fba5&&_0x10ea4a(-_0x4e51dc._0x4f9e7f,-_0x4e51dc._0xfb654f,-0x17e,_0x4e51dc._0x8d226d)in _0x35fba5;}function formatSymbols(_0x257883){const _0x4754dc={_0x392b6a:0x4d5,_0x412ecb:0x537,_0xd5a6f0:0x372,_0x5734b0:0x62e,_0x3e1490:0x41},_0x57e2fa={_0xebd2a6:0x163,_0x24b8b5:0x185,_0x4a44fa:0x145,_0x289eb2:0x236,_0x3696f7:0x2aa,_0x1d117c:0x77,_0xb54614:0x283,_0xa48615:0x29e,_0x1b3143:0xa0,_0x336a21:0x84,_0x1db5e4:0x13f,_0x406939:0xec,_0x376840:0x230,_0x170e80:0x60,_0x2fd1c3:0xa6,_0x346e1f:0x7d,_0xfbface:0x38f,_0x49034d:0x1f2,_0x3d0722:0x8f,_0x1df4d2:0x85,_0x3c893d:0x12d,_0x1b0a63:0x188,_0x209f49:0xb3,_0x1897a1:0xb2,_0x1cc5dc:0x13f,_0x1af2ad:0x217,_0x4d830c:0xc7,_0x28c123:0x27,_0x2bcd55:0x28e,_0x3a34c1:0x13f,_0x5f52ad:0x1df},_0x1bb335={_0xe6bc0:0x143,_0x2b1afc:0x60},_0x287ec2={_0x4e881a:0x11,_0x348d18:0x26a},_0x871e26={_0x2f4007:0x511,_0x435f15:0x15c,_0x4db486:0x122};function _0x578e90(_0x30f258,_0x41b6f9,_0x500c5d,_0xfbdaf0){return _0x199ce4(_0x30f258-_0x871e26._0x2f4007,_0x41b6f9-_0x871e26._0x435f15,_0x41b6f9,_0xfbdaf0-_0x871e26._0x4db486);}if(_0x257883[_0x578e90(_0x4754dc._0x392b6a,_0x4754dc._0x412ecb,_0x4754dc._0xd5a6f0,0x631)]===0x0)return _0x578e90(0x5c7,_0x4754dc._0x5734b0,0x5d7,0x4e9);function _0x53c293(_0x54f100,_0x10efd5,_0x7c4fbe,_0x50f7d2){return _0x26f978(_0x54f100-_0x287ec2._0x4e881a,_0x10efd5-0x94,_0x50f7d2- -_0x287ec2._0x348d18,_0x10efd5);}return _0x257883[_0x53c293(0x7,0xa5,-_0x4754dc._0x3e1490,0x5)](_0x516900=>{function _0x2f983c(_0x4287ec,_0xe7eab4,_0x218ff2,_0x21c7a7){return _0x578e90(_0xe7eab4- -0x5d6,_0x218ff2,_0x218ff2-0x157,_0x21c7a7-0xfc);}if(isDocumentSymbol(_0x516900))return _0x516900[_0x2f983c(-_0x57e2fa._0xebd2a6,-_0x57e2fa._0x24b8b5,-_0x57e2fa._0x4a44fa,-0x70)]+'\x20('+_0x516900['kind']+_0x2f983c(-0x1a3,-_0x57e2fa._0x289eb2,-0x274,-_0x57e2fa._0x3696f7)+(_0x516900[_0x278402(0xb6,-0x3d,0x3b,_0x57e2fa._0x1d117c)][_0x278402(0x6b,_0x57e2fa._0xb54614,_0x57e2fa._0xa48615,0x15d)][_0x278402(-0x67,0xe3,_0x57e2fa._0x1b3143,-0x66)]+0x1)+':'+(_0x516900[_0x2f983c(-_0x57e2fa._0x336a21,-_0x57e2fa._0x1db5e4,-_0x57e2fa._0x406939,-_0x57e2fa._0x376840)]['start'][_0x2f983c(-_0x57e2fa._0x170e80,-_0x57e2fa._0x2fd1c3,-_0x57e2fa._0x346e1f,-0x1ce)]+0x1)+']';function _0x278402(_0x1781fa,_0x1de287,_0x13df7c,_0xb52b0f){return _0x53c293(_0x1781fa-_0x1bb335._0xe6bc0,_0x1781fa,_0x13df7c-_0x1bb335._0x2b1afc,_0xb52b0f-0xd9);}return _0x516900[_0x278402(0x9b,0xd3,-0x13c,0x31)]+'\x20('+_0x516900[_0x278402(0x36a,_0x57e2fa._0xfbface,_0x57e2fa._0x49034d,_0x57e2fa._0x376840)]+')\x20'+locationPath(_0x516900[_0x2f983c(_0x57e2fa._0x3d0722,-0x63,-_0x57e2fa._0x1df4d2,-0x110)][_0x2f983c(-_0x57e2fa._0x3c893d,-0x18c,-0x1d5,-0x2e4)])+':'+(_0x516900[_0x278402(_0x57e2fa._0x1b0a63,_0x57e2fa._0x209f49,-0x24,0x153)][_0x2f983c(-_0x57e2fa._0x1897a1,-_0x57e2fa._0x1cc5dc,-_0x57e2fa._0x1af2ad,-0x292)][_0x2f983c(-0x1ab,-0x59,-0xc6,-0x18d)][_0x278402(-_0x57e2fa._0x4d830c,_0x57e2fa._0x28c123,-0x174,-0x66)]+0x1)+':'+(_0x516900['location'][_0x2f983c(-_0x57e2fa._0x2bcd55,-_0x57e2fa._0x3a34c1,-0x1cc,-0x216)]['start'][_0x2f983c(-0x93,-0xa6,-_0x57e2fa._0x5f52ad,-0x85)]+0x1);})['join']('\x0a');}function formatDiagnostics(_0x2fff9c){const _0x488d53={_0x329f75:0x33e,_0x837eaa:0x51b,_0x3f4748:0x59a,_0x3c86a8:0x5ff,_0x372fa3:0x4ae,_0x53263c:0x281,_0x1f77ef:0x250,_0xfe9a8b:0x56a,_0x5000d3:0x53b},_0x43f0e8={_0x164396:0xab,_0x39c32a:0x2,_0x571dfd:0xe4,_0x177029:0x114,_0x6e9d71:0x119,_0x1c2459:0x292,_0x2b11bc:0x164,_0x42edd6:0x246,_0x2b633e:0x1ff},_0xde2c2={_0x59bd0a:0xa2},_0xdc255f={_0x2c60fd:0x86},_0x342cd0={_0x434d67:0xb2},_0x25201e={_0xc431a6:0x12};if(_0x2fff9c[_0x3e7e6c(0x258,0x375,0x105,_0x488d53._0x329f75)]===0x0)return _0x3b08ec(_0x488d53._0x837eaa,_0x488d53._0x3f4748,_0x488d53._0x3c86a8,_0x488d53._0x372fa3);function _0x3e7e6c(_0x370498,_0x3aa1dc,_0xfc10ab,_0x2aabb6){return _0x26f978(_0x370498-0x2f,_0x3aa1dc-0x55,_0x370498-_0x25201e._0xc431a6,_0xfc10ab);}function _0x3b08ec(_0x2e8422,_0x33de66,_0x1683db,_0x544c97){return _0x26f978(_0x2e8422-0xb9,_0x33de66-_0x342cd0._0x434d67,_0x2e8422-0x336,_0x33de66);}return _0x2fff9c[_0x3e7e6c(_0x488d53._0x53263c,0x184,_0x488d53._0x1f77ef,0x119)](_0x4b6534=>{const _0x33fa8b=_0x4b6534[_0x374e53(0x147,_0x43f0e8._0x164396,0xcb,-_0x43f0e8._0x39c32a)]['start'];function _0x374e53(_0x456b6e,_0x2877d2,_0x5f3a31,_0x3dba27){return _0x3b08ec(_0x5f3a31- -0x473,_0x456b6e,_0x5f3a31-0x3d,_0x3dba27-_0xdc255f._0x2c60fd);}function _0x11f271(_0x57a65b,_0x22c51c,_0x3a68f8,_0x2caff9){return _0x3e7e6c(_0x2caff9- -0x276,_0x22c51c-0x169,_0x22c51c,_0x2caff9-_0xde2c2._0x59bd0a);}return severityName(_0x4b6534[_0x374e53(0x20c,0x217,_0x43f0e8._0x571dfd,0x12e)])+'\x20['+(_0x33fa8b[_0x374e53(-0x47,-_0x43f0e8._0x177029,-0x12,-_0x43f0e8._0x6e9d71)]+0x1)+':'+(_0x33fa8b[_0x374e53(_0x43f0e8._0x1c2459,0xb0,_0x43f0e8._0x2b11bc,-0x3)]+0x1)+']\x20'+_0x4b6534[_0x374e53(0x35c,_0x43f0e8._0x42edd6,_0x43f0e8._0x2b633e,0x2e5)];})[_0x3b08ec(_0x488d53._0xfe9a8b,_0x488d53._0x5000d3,0x6dd,0x532)]('\x0a');}function formatIncomingCalls(_0x58426a){const _0x2f1588={_0x23cfa7:0xd8,_0x3b5501:0x285,_0x403aa9:0x44d,_0x32143a:0xea,_0x11e406:0x89},_0x8c3876={_0x23b6f1:0x1c5},_0x459b3e={_0x1bb47b:0x19b,_0x39c0d8:0x1c7};function _0x24cd1d(_0x10c23a,_0x123f3d,_0x373d8f,_0x18bef6){return _0x199ce4(_0x373d8f-0x31e,_0x123f3d-_0x459b3e._0x1bb47b,_0x18bef6,_0x18bef6-_0x459b3e._0x39c0d8);}function _0x419028(_0xb2d08b,_0x40b299,_0x1260df,_0x1d85ba){return _0x199ce4(_0x1260df- -0x9c,_0x40b299-0x101,_0x1d85ba,_0x1d85ba-_0x8c3876._0x23b6f1);}if(_0x58426a[_0x419028(-0x161,-0x129,-_0x2f1588._0x23cfa7,0x9d)]===0x0)return'No\x20call\x20hierarchy\x20results';return _0x58426a[_0x24cd1d(_0x2f1588._0x3b5501,0x190,0x30b,_0x2f1588._0x403aa9)](_0x357480=>_0x357480['from'][_0x24cd1d(0x389,0x130,0x25e,0x175)])[_0x419028(-0x1d4,-0x1c9,-_0x2f1588._0x32143a,-_0x2f1588._0x11e406)]('\x0a');}function formatOutgoingCalls(_0x126040){const _0x158898={_0x470167:0x14e,_0x12689f:0x5b,_0x135ac4:0x3,_0x446c54:0x6b,_0x15b95f:0x2e,_0x21a5d9:0xc8,_0x48a24a:0x477,_0x558cb5:0x557,_0x5045c9:0x3e4},_0x136894={_0x1f1493:0x49},_0x55ddcc={_0x51ef2a:0x5e,_0x1b5903:0x9f};if(_0x126040[_0x1193fc(_0x158898._0x470167,_0x158898._0x12689f,-0x126,-_0x158898._0x135ac4)]===0x0)return _0x1193fc(_0x158898._0x446c54,_0x158898._0x15b95f,0x1f,0x53);function _0x1193fc(_0x1f9396,_0x517489,_0x4120b0,_0x3ddafb){return _0x26f978(_0x1f9396-_0x55ddcc._0x51ef2a,_0x517489-_0x55ddcc._0x1b5903,_0x3ddafb- -0x249,_0x1f9396);}function _0x3e4b57(_0x1d246d,_0x3cc466,_0xade775,_0xccd7f4){return _0x199ce4(_0x1d246d-0x4ad,_0x3cc466-_0x136894._0x1f1493,_0xade775,_0xccd7f4-0xcd);}return _0x126040[_0x1193fc(0x121,0x100,_0x158898._0x21a5d9,0x26)](_0x318afa=>_0x318afa['to'][_0x1193fc(0xa1,-0x49,-0xb,-0x87)])[_0x3e4b57(0x45f,_0x158898._0x48a24a,_0x158898._0x558cb5,_0x158898._0x5045c9)]('\x0a');}function toStructured(_0x237041){const _0x12fe1d={_0x5c7baf:0x84b,_0x3c8e6b:0x91b};function _0x31b403(_0x211cce,_0x8d504e,_0x145851,_0x1ed1c5){return _0x199ce4(_0x8d504e-0x673,_0x8d504e-0x9b,_0x211cce,_0x1ed1c5-0xdf);}return JSON['parse'](JSON[_0x31b403(_0x12fe1d._0x5c7baf,0x7e3,0x8d1,_0x12fe1d._0x3c8e6b)](_0x237041));}async function assertFile(_0xcfd8a){const _0x4222a7={_0x528c22:0x677,_0x366fd4:0x41e,_0x233dd4:0x530,_0x37fb90:0x47c,_0x4157d6:0x3c,_0x34ade6:0xea},_0xac2775={_0x5233b1:0x158,_0x409cf3:0x233};function _0x3d9a27(_0x1d8509,_0x5d0d99,_0x2db98b,_0x293f80){return _0x26f978(_0x1d8509-0xdc,_0x5d0d99-_0xac2775._0x5233b1,_0x293f80- -_0xac2775._0x409cf3,_0x5d0d99);}function _0x2a9dac(_0x140bc3,_0x8da675,_0x190b35,_0x50c170){return _0x26f978(_0x140bc3-0x2,_0x8da675-0x5e,_0x190b35-0x23f,_0x8da675);}const _0x555e2d=await _0x28d3f5(_0xcfd8a);if(!_0x555e2d[_0x2a9dac(_0x4222a7._0x528c22,_0x4222a7._0x366fd4,_0x4222a7._0x233dd4,_0x4222a7._0x37fb90)]())throw new ToolExecutionError(_0x3d9a27(-0x46,_0x4222a7._0x4157d6,-0x64,-_0x4222a7._0x34ade6)+_0xcfd8a,{'path':_0xcfd8a});}function validatePosition(_0x474bda,_0x1759f1){const _0x235f43={_0x3b5de3:0x21d,_0xa8bcaf:0x1e7,_0x9e7b7c:0x24d,_0xd262e5:0xa6,_0x2bdeeb:0x2,_0x1cc0bf:0x1b2,_0x5465b5:0x197},_0x357316={_0x1ca3e7:0x158},_0x4576ba={_0x1811f0:0x7b,_0x3e2d17:0x12};function _0x58d1ef(_0x3c1e9d,_0x403476,_0x16f374,_0x50cc28){return _0x199ce4(_0x50cc28- -0x6e,_0x403476-_0x4576ba._0x1811f0,_0x403476,_0x50cc28-_0x4576ba._0x3e2d17);}function _0x1e5f15(_0xb54cf0,_0x1ddef6,_0x4ea580,_0x83027e){return _0x26f978(_0xb54cf0-0x17d,_0x1ddef6-_0x357316._0x1ca3e7,_0x1ddef6- -0x10b,_0x4ea580);}if(!Number[_0x1e5f15(_0x235f43._0x3b5de3,_0x235f43._0xa8bcaf,_0x235f43._0x9e7b7c,0x1a9)](_0x474bda)||_0x474bda<0x1)throw new ToolExecutionError(_0x58d1ef(0xc,-0x1d7,-0xe2,-0x13d),{'line':_0x474bda});if(!Number[_0x58d1ef(-0x178,-0x138,_0x235f43._0xd262e5,_0x235f43._0x2bdeeb)](_0x1759f1)||_0x1759f1<0x1)throw new ToolExecutionError(_0x58d1ef(-0x26,-_0x235f43._0x1cc0bf,-_0x235f43._0x5465b5,-0xfc),{'character':_0x1759f1});}function createLspTool(_0x3735f1={}){const _0x3ea294={_0x4829a1:0x62d,_0x1c06b0:0x613,_0x13d9cb:0x6f3,_0x5c3bf1:0x84a,_0x25bf01:0x75f,_0x258fae:0x847,_0x11ac52:0x4b4,_0x18dea8:0x43a,_0x266cf3:0x408,_0x5ac596:0x42e,_0x4fe36f:0x6b0,_0x411c3b:0x645,_0x4d76c8:0x74c,_0x2b4696:0x6c4,_0x514389:0x82f,_0x322f73:0x6aa,_0xc1d7bd:0x790,_0x2bda5b:0x746,_0x1c3ebb:0x4a4,_0x532cf3:0x5f8,_0x295c64:0x47f,_0xeaf2da:0x73a,_0x2d9f19:0x630,_0x14c0ef:0x60e,_0x48df80:0x547,_0x20caee:0x524,_0x38e79c:0x5f6,_0x471cd4:0x5cb,_0x2a89f5:0x6e3,_0x5a4e97:0x655,_0x3bfb05:0x55b,_0x46ef86:0x6f7,_0x46a994:0x711,_0x1c9499:0x6d9,_0x3479de:0x4ba,_0x58e27a:0x3fa,_0x4524fa:0x5f9,_0x46664f:0x4c9,_0x4a71db:0x53f},_0x25fc9c={_0x35c451:0xf8,_0x15ef1e:0x16a,_0x49ea04:0x583,_0x5920a3:0x377,_0x292a54:0x334,_0x4a4cce:0x3af,_0x257e6d:0x381,_0x85cb0f:0x3b9,_0xbdc12f:0x3d4,_0x355e90:0x496,_0x23f600:0x1c0,_0x35615d:0x784,_0x32b370:0x5e7,_0x240c56:0x6c1,_0x3ff184:0x641,_0x199bae:0x3a,_0x50c1b8:0xe,_0x419e92:0x156,_0xaf93a:0x52b,_0x1a3538:0x4fe,_0x107cd6:0x418,_0x119850:0x54b,_0x432947:0x728,_0x1d88e7:0x44a,_0x238044:0x4c6,_0x2e5b71:0x1bf,_0x10d478:0x267,_0x4ad1ed:0x185,_0x54ad0f:0x1ff,_0x51b78d:0x4ae,_0x36b4dc:0x766,_0x21335a:0x6fc,_0x3a44b8:0x314,_0x1399c7:0x3c9,_0x4bf952:0x122,_0x512a79:0xc0,_0x51f043:0x3ac,_0x4c2e58:0x3b0,_0x4e607a:0x31b,_0xdf374c:0x3f6,_0x16919d:0x469,_0x54e999:0x589,_0x1b616f:0x5e8,_0x364aeb:0x4c2,_0x242c43:0x5d0,_0x3012ca:0x736},_0xb695e4={_0x5dbcba:0x6c0,_0x4f0c4d:0x26,_0x3a6a83:0xbc};function _0x3f2314(_0xfac252,_0x5d92e1,_0x17208e,_0x111a92){return _0x199ce4(_0xfac252-0x574,_0x5d92e1-0x138,_0x111a92,_0x111a92-0x12f);}const _0x430e54=_0x95a5d9[_0x264b12(0x588,_0x3ea294._0x4829a1,_0x3ea294._0x1c06b0,_0x3ea294._0x13d9cb)](_0x3735f1['defaultCwd']??process[_0x264b12(0x880,_0x3ea294._0x5c3bf1,_0x3ea294._0x25bf01,_0x3ea294._0x258fae)]());function _0x264b12(_0x2f1cc4,_0x40bd60,_0x5eacf7,_0x1e7b76){return _0x199ce4(_0x5eacf7-_0xb695e4._0x5dbcba,_0x40bd60-_0xb695e4._0x4f0c4d,_0x2f1cc4,_0x1e7b76-_0xb695e4._0x3a6a83);}const _0x5850ef=_0x3735f1[_0x264b12(0x638,0x8ae,0x777,0x7a9)]??[],_0x1dcf3d=_0x3735f1[_0x3f2314(_0x3ea294._0x11ac52,_0x3ea294._0x18dea8,_0x3ea294._0x266cf3,_0x3ea294._0x5ac596)]??_0x3f2314(_0x3ea294._0x4fe36f,_0x3ea294._0x411c3b,0x5cc,_0x3ea294._0x4d76c8);return defineTool({'name':_0x1dcf3d,'description':_0x3f2314(_0x3ea294._0x2b4696,_0x3ea294._0x514389,0x72a,0x804),'inputSchema':{'type':_0x3f2314(0x6e0,_0x3ea294._0x322f73,0x706,0x5a1),'properties':{'operation':{'type':_0x264b12(0x65d,_0x3ea294._0xc1d7bd,_0x3ea294._0x2bda5b,0x7f1),'enum':[_0x3f2314(_0x3ea294._0x1c3ebb,0x440,0x3c4,0x482),_0x3f2314(_0x3ea294._0x532cf3,0x6a9,_0x3ea294._0x295c64,_0x3ea294._0xeaf2da),'hover','documentSymbol',_0x3f2314(_0x3ea294._0x2d9f19,_0x3ea294._0x14c0ef,_0x3ea294._0x48df80,0x678),_0x3f2314(_0x3ea294._0x20caee,0x582,0x64e,_0x3ea294._0x38e79c),_0x264b12(0x6ea,_0x3ea294._0x471cd4,_0x3ea294._0x2a89f5,0x737),_0x264b12(0x561,0x507,0x57d,_0x3ea294._0x5a4e97),'outgoingCalls',_0x264b12(_0x3ea294._0x3bfb05,0x68e,0x5bb,0x48b)]},'filePath':{'type':'string'},'line':{'type':'number'},'character':{'type':'number'},'query':{'type':_0x264b12(0x79c,0x80c,_0x3ea294._0x2bda5b,0x63e)}},'required':[_0x264b12(_0x3ea294._0x46ef86,0x7c7,_0x3ea294._0x46a994,_0x3ea294._0x1c9499),_0x3f2314(_0x3ea294._0x3479de,0x605,0x52c,_0x3ea294._0x58e27a),'line',_0x3f2314(0x593,_0x3ea294._0x4524fa,_0x3ea294._0x46664f,_0x3ea294._0x4a71db)]},async *'execute'(_0x308856){const _0x1abb62={_0x123640:0x185,_0xe20222:0xbb,_0x58f177:0xd3},_0xab09e5={_0x47f1a5:0x10d},_0x39f630=_0x3735f1['lspService'];if(!_0x39f630)throw new ToolExecutionError(_0x311752(_0x25fc9c._0x35c451,0x80,0x144,_0x25fc9c._0x15ef1e));if(!_0x39f630['isEnabled']())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0x63f8b9=_0x308856[_0x243d75(0x4f8,_0x25fc9c._0x49ea04,0x7b4,0x656)];validatePosition(_0x308856[_0x243d75(_0x25fc9c._0x5920a3,_0x25fc9c._0x292a54,_0x25fc9c._0x4a4cce,0x4ae)],_0x308856['character']);if(_0x63f8b9===_0x311752(0x3b5,0x40b,0x438,_0x25fc9c._0x257e6d)){if(!_0x308856[_0x243d75(0x4da,0x3ac,_0x25fc9c._0x85cb0f,0x507)]?.[_0x243d75(0x3dc,_0x25fc9c._0xbdc12f,0x588,_0x25fc9c._0x355e90)]())throw new ToolExecutionError(_0x311752(0x185,_0x25fc9c._0x23f600,0x16d,0x1f2));const _0x8bee59=await _0x39f630[_0x243d75(_0x25fc9c._0x35615d,0x83c,_0x25fc9c._0x32b370,_0x25fc9c._0x240c56)](_0x308856[_0x243d75(_0x25fc9c._0x3ff184,_0x25fc9c._0x32b370,0x48a,0x507)][_0x311752(_0x25fc9c._0x199bae,_0x25fc9c._0x50c1b8,0x11d,_0x25fc9c._0x419e92)]());return yield createToolOutput(formatSymbols(_0x8bee59),{'operation':_0x63f8b9,'query':_0x308856[_0x243d75(0x607,0x44d,_0x25fc9c._0xaf93a,0x507)],'symbols':_0x8bee59}),void 0x0;}function _0x311752(_0x5a8ed6,_0x1c35a8,_0x4daeba,_0x43dcf8){return _0x264b12(_0x1c35a8,_0x1c35a8-_0xab09e5._0x47f1a5,_0x43dcf8- -0x3fb,_0x43dcf8-0x104);}const _0x31527e=resolveAllowedPath(_0x430e54,_0x5850ef,_0x308856[_0x243d75(_0x25fc9c._0x1a3538,0x3f0,_0x25fc9c._0x107cd6,_0x25fc9c._0x119850)]);await assertFile(_0x31527e);if(!await _0x39f630[_0x243d75(0x6dc,_0x25fc9c._0x432947,0x58d,0x5e5)](_0x31527e))throw new ToolExecutionError(_0x243d75(_0x25fc9c._0x1d88e7,0x64f,_0x25fc9c._0x238044,0x58d)+_0x308856[_0x243d75(0x56c,0x600,0x6b5,0x54b)],{'filePath':_0x308856[_0x311752(_0x25fc9c._0x2e5b71,_0x25fc9c._0x10d478,_0x25fc9c._0x4ad1ed,0x20b)]});await _0x39f630[_0x311752(0x323,0x3ce,_0x25fc9c._0x54ad0f,0x29f)](_0x31527e,!![]);const _0x2052ca={'file':_0x31527e,'line':_0x308856[_0x243d75(0x555,0x36b,0x3f1,_0x25fc9c._0x51b78d)]-0x1,'character':_0x308856[_0x311752(0x18d,0x3a0,0x41e,0x2e4)]-0x1};function _0x243d75(_0x12458d,_0x4ecfa4,_0x1f76ed,_0x2383f7){return _0x264b12(_0x12458d,_0x4ecfa4-_0x1abb62._0x123640,_0x2383f7- -_0x1abb62._0xe20222,_0x2383f7-_0x1abb62._0x58f177);}switch(_0x63f8b9){case _0x243d75(_0x25fc9c._0x32b370,_0x25fc9c._0x36b4dc,0x6bb,_0x25fc9c._0x21335a):{const _0xfa099c=await _0x39f630[_0x311752(0x3b0,_0x25fc9c._0x3a44b8,_0x25fc9c._0x1399c7,0x3bc)](_0x2052ca);return yield createToolOutput(formatHover(_0xfa099c),{'operation':_0x63f8b9,'filePath':_0x31527e,'hover':_0xfa099c}),void 0x0;}case'diagnostics':{const _0x275101=await _0x39f630['diagnosticsForFile'](_0x31527e);return yield createToolOutput(formatDiagnostics(_0x275101),{'operation':_0x63f8b9,'filePath':_0x31527e,'diagnostics':_0x275101}),void 0x0;}case _0x311752(_0x25fc9c._0x4bf952,_0x25fc9c._0x512a79,0x143,0x1f5):{const _0x1d4f3b=await _0x39f630[_0x311752(_0x25fc9c._0x51f043,_0x25fc9c._0x4c2e58,_0x25fc9c._0x4e607a,_0x25fc9c._0xdf374c)](_0x2052ca);return yield createToolOutput(formatLocations(_0x1d4f3b),{'operation':_0x63f8b9,'filePath':_0x31527e,'locations':_0x1d4f3b}),void 0x0;}case'findReferences':{const _0x2a2f29=await _0x39f630['references'](_0x2052ca);return yield createToolOutput(formatLocations(_0x2a2f29),{'operation':_0x63f8b9,'filePath':_0x31527e,'locations':_0x2a2f29}),void 0x0;}case'goToImplementation':{const _0x59e17d=await _0x39f630['implementation'](_0x2052ca);return yield createToolOutput(formatLocations(_0x59e17d),{'operation':_0x63f8b9,'filePath':_0x31527e,'locations':_0x59e17d}),void 0x0;}case'documentSymbol':{const _0x57c982=await _0x39f630[_0x311752(0x39d,0x273,_0x25fc9c._0x16919d,0x39e)](_0x31527e);return yield createToolOutput(formatSymbols(_0x57c982),{'operation':_0x63f8b9,'filePath':_0x31527e,'symbols':_0x57c982}),void 0x0;}case _0x243d75(0x574,0x777,_0x25fc9c._0x54e999,0x628):{const _0x2257ee=await _0x39f630[_0x243d75(0x4eb,0x6dd,0x5b1,0x628)](_0x2052ca);return yield createToolOutput(formatSymbols(_0x2257ee),{'operation':_0x63f8b9,'filePath':_0x31527e,'symbols':toStructured(_0x2257ee)}),void 0x0;}case _0x243d75(0x354,_0x25fc9c._0x1b616f,0x36f,_0x25fc9c._0x364aeb):{const _0x3947aa=await _0x39f630['incomingCalls'](_0x2052ca);return yield createToolOutput(formatIncomingCalls(_0x3947aa),{'operation':_0x63f8b9,'filePath':_0x31527e,'calls':toStructured(_0x3947aa)}),void 0x0;}case _0x243d75(0x7bf,_0x25fc9c._0x242c43,0x77b,0x717):{const _0x305254=await _0x39f630[_0x243d75(0x72f,_0x25fc9c._0x3012ca,0x765,0x717)](_0x2052ca);return yield createToolOutput(formatOutgoingCalls(_0x305254),{'operation':_0x63f8b9,'filePath':_0x31527e,'calls':toStructured(_0x305254)}),void 0x0;}}}});}import{randomUUID as _0x21098f}from'crypto';import{mkdir as _0x22849c,readFile as _0x795d97,writeFile as _0x20c9a6}from'fs/promises';import{join as _0x1eaa63}from'path';function sanitizeStorageKey(_0x5798cc){const _0x5b54ad={_0x5461de:0x554,_0x3bff7e:0x59f,_0x2d6dbe:0x6f3},_0x5071cb={_0x1d4a77:0x1c4,_0x1bda4f:0x302},_0x4933e6={_0x3afb78:0x48,_0x460f56:0x3e5};function _0x1ab571(_0x36c5f7,_0x42c436,_0x4d90cb,_0x74372c){return _0x26f978(_0x36c5f7-0x93,_0x42c436-_0x4933e6._0x3afb78,_0x42c436-_0x4933e6._0x460f56,_0x4d90cb);}function _0x3ccd5c(_0xbf0a63,_0x15aaf6,_0x5db0b9,_0x435e45){return _0x26f978(_0xbf0a63-0xdd,_0x15aaf6-_0x5071cb._0x1d4a77,_0x5db0b9-_0x5071cb._0x1bda4f,_0x15aaf6);}return _0x5798cc[_0x3ccd5c(_0x5b54ad._0x5461de,0x609,_0x5b54ad._0x3bff7e,0x4f1)](/[^a-zA-Z0-9_]+/g,'_')[_0x3ccd5c(0x4f4,_0x5b54ad._0x2d6dbe,0x59f,0x6f5)](/^_+|_+$/g,'')||'server';}function storagePath(_0x37eed6){const _0x45ead1={_0x273bb8:0x4d9,_0xb1cb4:0x608,_0x45034b:0x51e,_0x4c0e3a:0x65e,_0xa5e08:0x5ca,_0x205faf:0x59b,_0x177f8f:0x619,_0x5a7a0f:0x6d,_0x520292:0x19d,_0x526964:0x96,_0x3bc935:0x56,_0x51f959:0x6c0},_0x5dd8e9={_0x45f34a:0x1ae,_0x33fb0e:0x1eb,_0x3b7f8d:0xd7},_0x31c0fe={_0x4b31b3:0x348},_0x346f79=sanitizeStorageKey(_0x37eed6[_0x503608(_0x45ead1._0x273bb8,_0x45ead1._0xb1cb4,0x3e4,_0x45ead1._0x45034b)][_0x503608(_0x45ead1._0x4c0e3a,_0x45ead1._0xa5e08,0x4d2,_0x45ead1._0x205faf)]?.[_0x503608(_0x45ead1._0x177f8f,0x593,0x47a,0x4f2)]??_0x37eed6[_0x446776(-_0x45ead1._0x5a7a0f,_0x45ead1._0x520292,_0x45ead1._0x526964,_0x45ead1._0x3bc935)]);function _0x503608(_0x5501dd,_0x2984ef,_0x407808,_0x532533){return _0x26f978(_0x5501dd-0x155,_0x2984ef-0x7b,_0x532533-_0x31c0fe._0x4b31b3,_0x5501dd);}function _0x446776(_0x49a082,_0x54b7af,_0xb4d4a9,_0x1e5f9e){return _0x26f978(_0x49a082-_0x5dd8e9._0x45f34a,_0x54b7af-_0x5dd8e9._0x33fb0e,_0x1e5f9e- -_0x5dd8e9._0x3b7f8d,_0xb4d4a9);}return _0x1eaa63(_0x37eed6[_0x503608(0x4b5,0x441,_0x45ead1._0x51f959,0x57e)],_0x346f79+_0x503608(0x627,0x6e7,0x71f,0x72d));}async function readStore(_0x42462b){const _0xda0f62={_0x5d0dea:0x4d0,_0x4742d1:0x3af,_0x28a18b:0x2cd,_0xcdd1a0:0x793,_0x35e820:0x52f,_0x4ee30a:0x55b},_0x472667={_0x516426:0x501,_0x2d6712:0x1ce,_0x23b24a:0x99};function _0x318e48(_0x2aec04,_0x18b27e,_0x826af7,_0x182717){return _0x199ce4(_0x2aec04-_0x472667._0x516426,_0x18b27e-_0x472667._0x2d6712,_0x18b27e,_0x182717-_0x472667._0x23b24a);}function _0x160940(_0x172305,_0xe6ca4b,_0x25f2ff,_0x3c0bfe){return _0x199ce4(_0xe6ca4b- -0x4e,_0xe6ca4b-0x19d,_0x3c0bfe,_0x3c0bfe-0x47);}try{return JSON[_0x318e48(_0xda0f62._0x5d0dea,_0xda0f62._0x4742d1,0x355,0x4a6)](await _0x795d97(_0x42462b,'utf8'));}catch(_0x1c0ca2){if(_0x1c0ca2 instanceof Error&&_0x318e48(0x419,0x315,0x2d5,_0xda0f62._0x28a18b)in _0x1c0ca2&&_0x1c0ca2['code']===_0x318e48(0x67a,_0xda0f62._0xcdd1a0,_0xda0f62._0x35e820,_0xda0f62._0x4ee30a))return{};throw _0x1c0ca2;}}async function writeStore(_0x34a4a6,_0x53eae2){const _0xaaeb1c={_0x1f8965:0x5d1,_0x455c58:0x569,_0x36cff3:0x4a3,_0x19b0e6:0x57d},_0x5df74a={_0x21ed59:0x96,_0x408bae:0x277};function _0x3749bd(_0x760a06,_0x4baa4b,_0x4f5da7,_0x288753){return _0x26f978(_0x760a06-0x11f,_0x4baa4b-_0x5df74a._0x21ed59,_0x760a06-_0x5df74a._0x408bae,_0x288753);}function _0x47636f(_0x2d6dc7,_0x204f3f,_0x2720a4,_0x419f3c){return _0x26f978(_0x2d6dc7-0x156,_0x204f3f-0xd4,_0x2d6dc7-0x1df,_0x419f3c);}await _0x22849c(_0x1eaa63(_0x34a4a6,'..'),{'recursive':!![]}),await _0x20c9a6(_0x34a4a6,JSON[_0x47636f(_0xaaeb1c._0x1f8965,_0xaaeb1c._0x455c58,0x66a,0x524)](_0x53eae2,null,0x2),_0x47636f(_0xaaeb1c._0x36cff3,_0xaaeb1c._0x19b0e6,0x5f8,0x43f));}async function updateStore(_0x486b8c,_0x5fb707){const _0x565615=await readStore(_0x486b8c);_0x5fb707(_0x565615),await writeStore(_0x486b8c,_0x565615);}function createMcpOAuthProvider(_0x3344a3){const _0x56b2a8={_0x4a7bbc:0x42a,_0x1c1c5f:0x383,_0x3be585:0x2b,_0x535716:0x7e,_0x5872a5:0xf1,_0x26c165:0x3b,_0x56fffa:0x7b,_0xa48ee7:0x128,_0x7d65e7:0x512,_0xd86baa:0x371,_0xeca13b:0x3c3,_0xf0323d:0x50f,_0x2973f2:0x143,_0x5f3b50:0xad,_0x5522dc:0x1ed,_0x3d3f60:0x106,_0x3b4869:0x36a,_0x2a6ec3:0x9c,_0x2edce4:0x4d,_0x9c6074:0x120,_0x3a6823:0x11f,_0xc141dd:0x57},_0x1aa667={_0x34ad98:0x44,_0x3414eb:0xc},_0x3aa3e3={_0x426e5e:0x22c,_0x4b4bd9:0x347,_0xea5f85:0x3ef},_0x277116={_0x467717:0x8c,_0x5f01aa:0x16d,_0x4d883c:0x120,_0x786efc:0x2cc,_0x147a38:0x1a,_0x339543:0xe4,_0x4b9f66:0xf1,_0x4b05a1:0x23,_0x2532e1:0x32,_0x35ffdc:0x148,_0x511612:0xd3,_0x4929b1:0x5,_0x3d67b9:0x1e0,_0x4695fc:0x93,_0x596f12:0xe2,_0x23cce5:0x12,_0x461545:0x1c5,_0x3778f5:0x97,_0x449bd7:0x2a,_0x4f8a55:0xee,_0x520c3e:0xc7,_0x346221:0xdf,_0x57a112:0xf7,_0x1bcc8a:0x81,_0x1bf6f2:0x22a},_0x81e9dd={_0x1f8fd9:0x5fc,_0x128bc8:0x49c,_0x4427b2:0x4f5},_0x578f7b={_0x4dd849:0x570,_0x1420c3:0x513},_0x3cf826={_0x1f32fc:0x61e},_0x355297={_0x4949d1:0x661,_0x43c209:0x42a,_0x5db276:0x64c},_0x5e4e93={_0x39c807:0x1f0,_0x5a0768:0x269},_0x11cf47={_0x7f2c8e:0x134,_0x1d7d11:0x6f},_0x581350={_0x1a5078:0x2fe,_0x52a7d6:0x2ce},_0x164593={_0xffac65:0x19e,_0x15b912:0x145},_0x48b9d5={_0x48ad7f:0x92,_0x37fc56:0xe5,_0x2dd008:0x40},_0x505c26={_0x4a9c39:0x2bd,_0x1f16dc:0x302},_0x554984={_0x2f8c55:0x3e},_0x488857={_0x37eeac:0xad};function _0x544462(_0x30f867,_0x4ad604,_0x44478c,_0x2428ac){return _0x26f978(_0x30f867-0xb5,_0x4ad604-_0x488857._0x37eeac,_0x44478c-0x229,_0x4ad604);}const _0x24fda4=storagePath(_0x3344a3);function _0x35dc63(_0x1cbb5f,_0x400f7,_0xe4f0f4,_0x3b53cd){return _0x26f978(_0x1cbb5f-0x1e2,_0x400f7-0x1ea,_0x400f7- -0x223,_0x3b53cd);}const _0x15eed1=_0x3344a3[_0x544462(_0x56b2a8._0x4a7bbc,0x4f7,0x3ff,_0x56b2a8._0x1c1c5f)][_0x35dc63(_0x56b2a8._0x3be585,0x30,-_0x56b2a8._0x535716,-_0x56b2a8._0x5872a5)]?.[_0x35dc63(-_0x56b2a8._0x26c165,_0x56b2a8._0x56fffa,0x20,_0x56b2a8._0xa48ee7)]?.[_0x544462(_0x56b2a8._0x7d65e7,_0x56b2a8._0xd86baa,0x45d,0x425)]('\x20'),_0x51e610={'client_name':'Nuvin','redirect_uris':[_0x3344a3[_0x544462(_0x56b2a8._0xeca13b,0x517,0x44b,0x2fb)]],'grant_types':[_0x544462(0x526,0x674,0x620,_0x56b2a8._0xf0323d),_0x35dc63(_0x56b2a8._0x2973f2,_0x56b2a8._0x5f3b50,_0x56b2a8._0x5522dc,_0x56b2a8._0x3d3f60)],'response_types':[_0x544462(0x3f4,0x3b1,0x3c3,_0x56b2a8._0x3b4869)],'token_endpoint_auth_method':'client_secret_post',..._0x15eed1?{'scope':_0x15eed1}:{}};return{'clientMetadataUrl':_0x3344a3[_0x35dc63(-_0x56b2a8._0x2a6ec3,-_0x56b2a8._0x2edce4,_0x56b2a8._0x9c6074,-0x123)]['oauth']?.[_0x35dc63(-_0x56b2a8._0x3a6823,_0x56b2a8._0xc141dd,0xc5,-0x43)],get 'redirectUrl'(){function _0x13f214(_0x14825d,_0xd8c277,_0x1c1135,_0x12509e){return _0x544462(_0x14825d-0x89,_0x12509e,_0x14825d- -0x251,_0x12509e-_0x554984._0x2f8c55);}return _0x3344a3[_0x13f214(0x1fa,_0x505c26._0x4a9c39,0xa0,_0x505c26._0x1f16dc)];},get 'clientMetadata'(){return _0x51e610;},async 'state'(){const _0x20f915={_0x162cf1:0x4a,_0x1513e8:0xb3},_0x592b9e={_0x50d700:0x7c},_0x4c9edc=await readStore(_0x24fda4);if(_0x4c9edc[_0x147caf(0xa1,0x246,_0x164593._0xffac65,_0x164593._0x15b912)])return _0x4c9edc['state'];const _0x2faddc=_0x21098f();function _0x147caf(_0xc06673,_0xfc3255,_0x3ff79d,_0x4590e9){return _0x35dc63(_0xc06673-0x1cd,_0x4590e9-_0x592b9e._0x50d700,_0x3ff79d-0x131,_0x3ff79d);}return await updateStore(_0x24fda4,_0x586984=>{function _0xa6888c(_0x3945ce,_0x579af0,_0x129b0e,_0x528f49){return _0x147caf(_0x3945ce-_0x20f915._0x162cf1,_0x579af0-0x171,_0x129b0e,_0x3945ce- -_0x20f915._0x1513e8);}_0x586984[_0xa6888c(_0x48b9d5._0x48ad7f,-_0x48b9d5._0x37fc56,_0x48b9d5._0x2dd008,0x22)]=_0x2faddc;}),_0x2faddc;},async 'clientInformation'(){const _0x244319={_0x58a2ce:0x2a7,_0x21fc96:0x1e4};function _0x41cf87(_0x143aaa,_0xc5883f,_0x3850dc,_0x4374f9){return _0x35dc63(_0x143aaa-0x17a,_0x3850dc-_0x244319._0x58a2ce,_0x3850dc-_0x244319._0x21fc96,_0xc5883f);}return(await readStore(_0x24fda4))[_0x41cf87(0x35d,_0x581350._0x1a5078,_0x581350._0x52a7d6,0x445)];},async 'saveClientInformation'(_0x24651a){const _0x5058e2={_0x30cca1:0x62a};await updateStore(_0x24fda4,_0x521248=>{function _0x16b236(_0x581a65,_0x19ea77,_0x113557,_0x2b1a47){return _0x16af(_0x113557-0x383,_0x19ea77);}_0x521248[_0x16b236(0x6f6,0x546,_0x5058e2._0x30cca1,0x6b3)]=_0x24651a;});},async 'tokens'(){function _0x4bee69(_0x12ff78,_0x54849e,_0xbba2e7,_0x9d3e69){return _0x544462(_0x12ff78-_0x11cf47._0x7f2c8e,_0x9d3e69,_0x54849e- -0x1ac,_0x9d3e69-_0x11cf47._0x1d7d11);}return(await readStore(_0x24fda4))[_0x4bee69(_0x5e4e93._0x39c807,0x2b8,_0x5e4e93._0x5a0768,0x332)];},async 'saveTokens'(_0x4ad01c){await updateStore(_0x24fda4,_0x3a4d31=>{const _0x172fe9={_0x458120:0x252};function _0xf369ad(_0x31a946,_0x1aa83d,_0x3cc2c4,_0x5015eb){return _0x16af(_0x31a946-_0x172fe9._0x458120,_0x1aa83d);}_0x3a4d31[_0xf369ad(0x4ea,_0x355297._0x4949d1,_0x355297._0x43c209,_0x355297._0x5db276)]=_0x4ad01c;});},async 'redirectToAuthorization'(_0x2ef3f8){const _0x1f8f70={_0x204acb:0x1c,_0x498a0e:0x50e};function _0x21bfce(_0x2d2e29,_0x95b986,_0x283eec,_0x3f7d99){return _0x35dc63(_0x2d2e29-_0x1f8f70._0x204acb,_0x3f7d99-_0x1f8f70._0x498a0e,_0x283eec-0x151,_0x2d2e29);}await _0x3344a3[_0x21bfce(0x53b,_0x3cf826._0x1f32fc,0x715,0x5ed)](_0x2ef3f8);},async 'saveCodeVerifier'(_0x190961){await updateStore(_0x24fda4,_0x30444b=>{function _0xcf82fd(_0x52cd8c,_0x2abe00,_0x381bcc,_0x42e6c0){return _0x16af(_0x2abe00-0x1be,_0x381bcc);}_0x30444b[_0xcf82fd(0x65f,_0x578f7b._0x4dd849,_0x578f7b._0x1420c3,0x49b)]=_0x190961;});},async 'codeVerifier'(){const _0x2e9add={_0x4d6085:0x37,_0x5798ac:0x160},_0xe7f5f6=(await readStore(_0x24fda4))[_0x332767(_0x81e9dd._0x1f8fd9,0x50e,_0x81e9dd._0x128bc8,_0x81e9dd._0x4427b2)];if(!_0xe7f5f6)throw new Error(_0x332767(0x661,0x601,0x676,0x705));function _0x348a61(_0x52e0eb,_0x18fd04,_0x1a82e1,_0x2699be){return _0x544462(_0x52e0eb-_0x2e9add._0x4d6085,_0x18fd04,_0x52e0eb- -0x7c,_0x2699be-_0x2e9add._0x5798ac);}function _0x332767(_0x460c7a,_0x1da921,_0x259ed5,_0x31ef0f){return _0x544462(_0x460c7a-0x120,_0x1da921,_0x460c7a-0x7e,_0x31ef0f-0x16a);}return _0xe7f5f6;},async 'invalidateCredentials'(_0x6f144){await updateStore(_0x24fda4,_0x8d71ca=>{const _0x303975={_0x161d9f:0x3e0},_0x8d3f1e={_0xe92c90:0x2c1};(_0x6f144===_0x287415(_0x277116._0x467717,_0x277116._0x5f01aa,0xd3,0x33)||_0x6f144===_0x3f0d87(-_0x277116._0x4d883c,-0x247,-_0x277116._0x786efc,-0x14c))&&(_0x8d71ca[_0x287415(-_0x277116._0x147a38,-0x100,_0x277116._0x339543,_0x277116._0x4b9f66)]=void 0x0);(_0x6f144===_0x3f0d87(-_0x277116._0x4b05a1,-0x93,-0x82,-_0x277116._0x2532e1)||_0x6f144===_0x3f0d87(-0x270,-_0x277116._0x35ffdc,-0x196,-0x19a))&&(_0x8d71ca[_0x3f0d87(-0x1f7,-0x148,-_0x277116._0x511612,_0x277116._0x4929b1)]=void 0x0);function _0x287415(_0x4be79f,_0x489807,_0x3550e0,_0x510193){return _0x16af(_0x4be79f- -_0x8d3f1e._0xe92c90,_0x489807);}function _0x3f0d87(_0x103f80,_0x33184b,_0x121820,_0x4e2979){return _0x16af(_0x33184b- -_0x303975._0x161d9f,_0x4e2979);}(_0x6f144===_0x3f0d87(-_0x277116._0x3d67b9,-_0x277116._0x4695fc,-0x4,_0x277116._0x596f12)||_0x6f144===_0x3f0d87(-0x1fe,-0xd1,-_0x277116._0x23cce5,-0xa9))&&(_0x8d71ca['codeVerifier']=void 0x0,_0x8d71ca[_0x3f0d87(-_0x277116._0x461545,-_0x277116._0x3778f5,-0xf3,-0x20)]=void 0x0),(_0x6f144===_0x3f0d87(-_0x277116._0x449bd7,-_0x277116._0x4695fc,-0x9,-0x1be)||_0x6f144===_0x287415(-_0x277116._0x4f8a55,-0x1e0,-_0x277116._0x520c3e,-0xa8))&&(_0x8d71ca[_0x3f0d87(-_0x277116._0x346221,-_0x277116._0x57a112,_0x277116._0x1bcc8a,-_0x277116._0x1bf6f2)]=void 0x0);});},async 'saveDiscoveryState'(_0x5aed22){await updateStore(_0x24fda4,_0x1225b5=>{const _0x2e097f={_0x4b58d9:0x39};function _0x18f534(_0x5e7ffa,_0x560cbe,_0x43429a,_0x52c55d){return _0x16af(_0x43429a-_0x2e097f._0x4b58d9,_0x560cbe);}_0x1225b5[_0x18f534(_0x3aa3e3._0x426e5e,_0x3aa3e3._0x4b4bd9,0x322,_0x3aa3e3._0xea5f85)]=_0x5aed22;});},async 'discoveryState'(){function _0x52d3ef(_0xaeacb0,_0x5ac2a0,_0x51708c,_0x4bc155){return _0x544462(_0xaeacb0-0x1b6,_0x5ac2a0,_0xaeacb0- -0x532,_0x4bc155-0x189);}return(await readStore(_0x24fda4))[_0x52d3ef(-0x7d,-0x7e,-_0x1aa667._0x34ad98,-_0x1aa667._0x3414eb)];}};}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(_0x22720f,_0x36e06a){const _0x16c800={_0x16354d:0xad,_0x3fbd9e:0x2b3},_0x12373b={_0x1cebe2:0x100},_0xf074a0=_0x2ea1e7=>_0x2ea1e7[_0x5ace0d(0x3d7,0x612,0x550,0x428)](/[^a-zA-Z0-9_]+/g,'_')[_0x203dd5(0x488,0x310,0x416,0x1c8)](/^_+|_+$/g,'');function _0x203dd5(_0x431430,_0x3f49b1,_0x299a5d,_0x3061c1){return _0x26f978(_0x431430-0x11d,_0x3f49b1-_0x12373b._0x1cebe2,_0x3f49b1-0x73,_0x431430);}function _0x5ace0d(_0x4fab66,_0x47b34c,_0xff8914,_0x5e7e18){return _0x26f978(_0x4fab66-_0x16c800._0x16354d,_0x47b34c-0x7a,_0xff8914-_0x16c800._0x3fbd9e,_0x5e7e18);}return'mcp_'+_0xf074a0(_0x22720f)+'_'+_0xf074a0(_0x36e06a);}function isObject(_0x262bca){const _0x3dd9cc={_0x274467:0x555,_0x2eb740:0x1df,_0x28f973:0x338,_0x4b9e00:0x21f},_0x394314={_0x3ad2f2:0xac},_0x17c398={_0x1ff5ed:0x419,_0x30093f:0x185};function _0x2191fa(_0x2fb18a,_0x40c7e7,_0x113f86,_0x1d09e9){return _0x199ce4(_0x113f86-_0x17c398._0x1ff5ed,_0x40c7e7-_0x17c398._0x30093f,_0x40c7e7,_0x1d09e9-0x18c);}function _0x5e00f7(_0x48ecbe,_0x57cca2,_0x4ab8d2,_0x44975d){return _0x199ce4(_0x44975d-0x1ee,_0x57cca2-_0x394314._0x3ad2f2,_0x48ecbe,_0x44975d-0x19b);}return typeof _0x262bca===_0x2191fa(_0x3dd9cc._0x274467,0x430,0x585,0x484)&&_0x262bca!==null&&!Array[_0x5e00f7(_0x3dd9cc._0x2eb740,_0x3dd9cc._0x28f973,_0x3dd9cc._0x4b9e00,0x1de)](_0x262bca);}function toSupportedSchema(_0x5e4ce1){const _0x373e99={_0xaa887a:0x166,_0x1052d1:0xb,_0x232135:0x2c9,_0x44fd51:0x39,_0x76748e:0xf5,_0x4733a5:0x18,_0x99a1b3:0x82,_0x257f5b:0x414,_0x80295d:0x3e5,_0x4e1a40:0x3b6,_0xe4c093:0x5ca,_0x45676f:0x5b7,_0x4108e3:0x608,_0x388885:0x512,_0x4b23ff:0x166,_0x52ab94:0xa4,_0x33424e:0x82,_0xad8683:0x2a7,_0x33a21a:0x47c,_0x4bb152:0x111,_0x1c43f1:0xe8,_0x4c7675:0x1fc,_0x519b58:0xd9,_0x333e8b:0x11f,_0x3b6c38:0xba,_0x49cb6d:0x106,_0x12803a:0x5c,_0x701984:0x57a,_0x298395:0x584,_0x58caba:0x6b4,_0x212c23:0x11f,_0x2a2743:0x96,_0x1e1dfa:0x1d7,_0x229217:0x204},_0x262f75={_0x3e6608:0x35,_0x4d2cb8:0x1bd},_0x51d845={_0x4ec575:0x11c};function _0x478bc1(_0x3a2861,_0x2ebb74,_0x2319a0,_0x207d59){return _0x26f978(_0x3a2861-_0x51d845._0x4ec575,_0x2ebb74-0xa5,_0x2319a0-0x27c,_0x2ebb74);}if(!isObject(_0x5e4ce1))return void 0x0;if(_0x5e4ce1[_0x2b013a(-_0x373e99._0xaa887a,_0x373e99._0x1052d1,-0xb3,-_0x373e99._0x232135)]==='string')return{'type':_0x2b013a(_0x373e99._0x44fd51,_0x373e99._0x76748e,-_0x373e99._0x4733a5,_0x373e99._0x99a1b3)};if(_0x5e4ce1[_0x478bc1(_0x373e99._0x257f5b,0x406,_0x373e99._0x80295d,0x523)]==='number'||_0x5e4ce1[_0x478bc1(0x359,0x31b,0x3e5,_0x373e99._0x4e1a40)]===_0x478bc1(0x620,_0x373e99._0xe4c093,_0x373e99._0x45676f,0x720))return{'type':_0x478bc1(0x63d,0x4be,_0x373e99._0x4108e3,_0x373e99._0x388885)};if(_0x5e4ce1[_0x2b013a(-_0x373e99._0x4b23ff,-0xb,-_0x373e99._0x52ab94,-0x219)]===_0x2b013a(-_0x373e99._0x33424e,-0xd,0xe6,-0x96))return{'type':'boolean'};function _0x2b013a(_0x3463a6,_0x578069,_0x250cf6,_0x40a25d){return _0x26f978(_0x3463a6-_0x262f75._0x3e6608,_0x578069-_0x262f75._0x4d2cb8,_0x3463a6- -0x2cf,_0x250cf6);}if(_0x5e4ce1[_0x478bc1(0x306,_0x373e99._0xad8683,_0x373e99._0x80295d,_0x373e99._0x33a21a)]===_0x2b013a(-0xd9,-_0x373e99._0x4bb152,-_0x373e99._0x1c43f1,-_0x373e99._0x4c7675))return{'type':_0x2b013a(-_0x373e99._0x519b58,-0x1ee,-0x1e7,-_0x373e99._0x333e8b),'items':toSupportedSchema(_0x5e4ce1[_0x2b013a(-0x70,-_0x373e99._0x3b6c38,_0x373e99._0x49cb6d,_0x373e99._0x12803a)])??{'type':_0x478bc1(0x48b,_0x373e99._0x701984,_0x373e99._0x298395,_0x373e99._0x58caba)}};if(_0x5e4ce1['type']===_0x2b013a(_0x373e99._0x212c23,_0x373e99._0x2a2743,_0x373e99._0x1e1dfa,_0x373e99._0x229217))return toNuvinToolSchema(_0x5e4ce1);return void 0x0;}function toNuvinToolSchema(_0x5b5faf){const _0x3e381f={_0x394e3d:0x63c,_0x12f1bb:0x765,_0x4173b3:0x6fd,_0x3530fe:0x458,_0x488465:0x58b,_0x56c102:0x37c,_0x458a21:0x5d7,_0x2ff277:0x55a,_0x4f6f05:0x5e9,_0x4d8816:0x60c,_0x15094d:0x6af,_0x435081:0x6e8,_0x11b946:0x64e,_0x34de78:0x580,_0x52f6b1:0x428,_0x326234:0x413,_0x174e6d:0x363,_0x215cd1:0x483,_0x54cc7e:0x39d,_0x2949f4:0x2ea},_0x5a620e={_0x5b9769:0x128};if(!isObject(_0x5b5faf)||_0x5b5faf[_0x4337d5(0x61e,0x5cf,0x4e0,_0x3e381f._0x394e3d)]!==_0x4337d5(0x7bc,0x796,_0x3e381f._0x12f1bb,0x618))return{'type':_0x264035(_0x3e381f._0x4173b3,_0x3e381f._0x3530fe,_0x3e381f._0x488465,0x65a),'properties':{}};function _0x264035(_0x4a06d1,_0x1d2b78,_0x3a6079,_0x196d7e){return _0x26f978(_0x4a06d1-0x8f,_0x1d2b78-0x1a6,_0x3a6079-0x19d,_0x4a06d1);}const _0x5e8b7d={},_0x40e02c=isObject(_0x5b5faf['properties'])?_0x5b5faf[_0x4337d5(0x5fc,_0x3e381f._0x56c102,0x4c8,0x55e)]:{};for(const [_0x670949,_0x4fc180]of Object[_0x4337d5(0x4fc,0x718,_0x3e381f._0x458a21,_0x3e381f._0x2ff277)](_0x40e02c)){const _0x2924ed=toSupportedSchema(_0x4fc180);if(_0x2924ed)_0x5e8b7d[_0x670949]=_0x2924ed;}const _0x588811=Array[_0x4337d5(0x649,0x5e2,_0x3e381f._0x4f6f05,_0x3e381f._0x4d8816)](_0x5b5faf[_0x4337d5(0x777,_0x3e381f._0x15094d,0x64e,0x535)])?_0x5b5faf[_0x4337d5(0x555,_0x3e381f._0x435081,_0x3e381f._0x11b946,_0x3e381f._0x34de78)][_0x264035(_0x3e381f._0x52f6b1,_0x3e381f._0x326234,_0x3e381f._0x174e6d,_0x3e381f._0x215cd1)](_0x4964e1=>typeof _0x4964e1===_0x4337d5(0x74c,0x6a0,0x67f,0x60d)):void 0x0;function _0x4337d5(_0x485909,_0x3e75ff,_0x4a0a1f,_0x46d4f7){return _0x26f978(_0x485909-0x10c,_0x3e75ff-_0x5a620e._0x5b9769,_0x4a0a1f-0x377,_0x3e75ff);}return _0x588811?.[_0x264035(_0x3e381f._0x54cc7e,0x34c,0x3e3,_0x3e381f._0x2949f4)]?{'type':_0x4337d5(0x6c2,0x843,0x765,0x87b),'properties':_0x5e8b7d,'required':_0x588811}:{'type':_0x4337d5(0x8ae,0x7f9,0x765,0x7cf),'properties':_0x5e8b7d};}function isJsonObject(_0x2054c9){const _0x4798b7={_0x38c012:0x543,_0x436029:0x531},_0x54d5b3={_0x4df768:0x15,_0x400e51:0x1aa};function _0x1f9786(_0x2f4493,_0x2c92b8,_0x48f79f,_0x3451a9){return _0x199ce4(_0x48f79f-0x667,_0x2c92b8-_0x54d5b3._0x4df768,_0x2f4493,_0x3451a9-_0x54d5b3._0x400e51);}return typeof _0x2054c9==='object'&&_0x2054c9!==null&&!Array[_0x1f9786(0x6a8,_0x4798b7._0x38c012,0x657,_0x4798b7._0x436029)](_0x2054c9);}function formatMcpContent(_0x4102a7){const _0x49bf54={_0xceb4ad:0x69d,_0x211776:0x568,_0x1a1529:0x7f0,_0x381c05:0x52,_0x41cce1:0x11b,_0x2ccca5:0x8f,_0x39aa2c:0x1be,_0x5129aa:0x8d,_0x4ef223:0x200,_0xc7d79c:0x91,_0xb271a6:0xca,_0x41b25f:0xd3,_0x47e717:0x76d,_0x32af50:0x15b,_0x44701f:0x185,_0x432791:0x87},_0xa8c969={_0x3a8877:0x7f,_0x505c9b:0xa0,_0xcdd565:0x3f1},_0x5a4bcc={_0x190856:0x337,_0x314813:0x328,_0x33959f:0xe8,_0x3a225e:0x13d,_0x157835:0x24,_0x29b78e:0x12f,_0x459a6f:0x14d,_0x11ba28:0x5c0,_0x3c5485:0x704},_0x1fcaee={_0xe21cc7:0x9a},_0x4a7439=Array['isArray'](_0x4102a7[_0x56ba68(_0x49bf54._0xceb4ad,_0x49bf54._0x211776,0x575,_0x49bf54._0x1a1529)])?_0x4102a7[_0x222643(0x8c,-_0x49bf54._0x381c05,-0x180,-_0x49bf54._0x41cce1)]:[],_0x1b0eb8=_0x4a7439[_0x222643(0x44,-_0x49bf54._0x2ccca5,-_0x49bf54._0x39aa2c,-0xab)](_0x63ebd4=>{const _0x1696c3={_0x8fe5e0:0x13a};function _0x377491(_0x35e9c5,_0x3ad6cc,_0x581c7b,_0x10c56c){return _0x56ba68(_0x35e9c5- -0x223,_0x3ad6cc-0x1ca,_0x3ad6cc,_0x10c56c-_0x1fcaee._0xe21cc7);}function _0x29f191(_0x3a2585,_0x44eca2,_0x3c0420,_0x6310d7){return _0x56ba68(_0x6310d7- -0x5ac,_0x44eca2-_0x1696c3._0x8fe5e0,_0x44eca2,_0x6310d7-0x1c5);}if(!isObject(_0x63ebd4))return'';if(_0x63ebd4[_0x377491(_0x5a4bcc._0x190856,0x489,_0x5a4bcc._0x314813,0x3d0)]===_0x29f191(_0x5a4bcc._0x33959f,-_0x5a4bcc._0x3a225e,0x12,-_0x5a4bcc._0x157835)&&typeof _0x63ebd4['text']===_0x29f191(0x242,0x7a,_0x5a4bcc._0x29b78e,_0x5a4bcc._0x459a6f))return _0x63ebd4['text'];return JSON[_0x377491(_0x5a4bcc._0x11ba28,0x54d,0x629,_0x5a4bcc._0x3c5485)](_0x63ebd4);})[_0x222643(-_0x49bf54._0x5129aa,-0x138,-_0x49bf54._0x4ef223,0xc)](_0x5d2d31=>_0x5d2d31[_0x222643(-0x13c,-0xb8,-0xa2,-0x7c)]>0x0)[_0x222643(-_0x49bf54._0xc7d79c,-_0x49bf54._0xb271a6,-0xed,-_0x49bf54._0x41b25f)]('\x0a');function _0x56ba68(_0x2c9fc6,_0x1182c8,_0x4bbd18,_0x186f2a){return _0x26f978(_0x2c9fc6-_0xa8c969._0x3a8877,_0x1182c8-_0xa8c969._0x505c9b,_0x2c9fc6-_0xa8c969._0xcdd565,_0x4bbd18);}if(_0x1b0eb8[_0x56ba68(0x637,_0x49bf54._0x47e717,0x563,0x4dc)]>0x0)return _0x1b0eb8;function _0x222643(_0x11a134,_0x53f5e4,_0xbd72f6,_0xe26954){return _0x199ce4(_0x53f5e4- -0x7c,_0x53f5e4-0xb,_0xe26954,_0xe26954-0x1a0);}return JSON[_0x222643(_0x49bf54._0x32af50,0xf4,_0x49bf54._0x44701f,_0x49bf54._0x432791)](_0x4102a7,null,0x2);}function createMcpTool(_0x16f0af){const _0x555387={_0x53b631:0x43,_0x2bdc93:0x75,_0x135b47:0x51a,_0x13d264:0x2b2,_0x15148b:0x252,_0x2dbc5a:0x57f,_0x4c0c75:0x3ff,_0x4df37c:0x39d,_0x58b1af:0x31b,_0x47accc:0x3b7,_0x1397b7:0x61a,_0x3b6180:0x4cb,_0x214fc6:0x50e,_0x3e4a4f:0x42c,_0x10a341:0x1be,_0x440f56:0x36a,_0x28d0c5:0x318,_0x110542:0x383,_0x401307:0x3aa,_0x2f1de0:0x2d6,_0x2ce2d6:0x345,_0x2845fc:0x218,_0x4bb580:0x53f,_0x32ced4:0x229,_0x27459e:0x310},_0x1e5675={_0x386307:0x13f,_0x4fe40a:0x114,_0xbba04e:0x2bb,_0x309f30:0x9d,_0x40a1f9:0x22,_0x104c77:0x13e,_0x5cad2d:0x130,_0x41d708:0x4e,_0x27b4ca:0x234,_0x39595b:0x8,_0x493bed:0xb7,_0x4f822e:0x1b8,_0x3acc56:0x100},_0x7a395c={_0x22c528:0x123,_0x5874d6:0x55,_0x3234dd:0x33a},_0x13da8a={_0x10af43:0x10d,_0x22fde1:0x3d},_0x1d403e={_0x2bff5c:0x3b,_0xc11702:0x156};function _0x43f83f(_0x4ffad7,_0x422489,_0x29c39b,_0x2426ed){return _0x26f978(_0x4ffad7-0x1e5,_0x422489-_0x1d403e._0x2bff5c,_0x2426ed-_0x1d403e._0xc11702,_0x4ffad7);}const _0x3ca6e8=createMcpToolName(_0x16f0af[_0x45f307(0xa1,_0x555387._0x53b631,_0x555387._0x2bdc93,0x1bd)],_0x16f0af[_0x43f83f(0x4b0,0x3c1,_0x555387._0x135b47,0x4f2)][_0x45f307(_0x555387._0x13d264,0x3ca,0x356,_0x555387._0x15148b)]);function _0x45f307(_0x3dd0e1,_0x4cd254,_0x4c97cb,_0x35c4b9){return _0x199ce4(_0x35c4b9-0x312,_0x4cd254-_0x13da8a._0x10af43,_0x4c97cb,_0x35c4b9-_0x13da8a._0x22fde1);}return defineTool({'name':_0x3ca6e8,'description':_0x16f0af[_0x43f83f(_0x555387._0x2dbc5a,_0x555387._0x4c0c75,_0x555387._0x4df37c,0x4f2)][_0x43f83f(0x35e,_0x555387._0x58b1af,0x514,0x39d)]??_0x43f83f(_0x555387._0x47accc,_0x555387._0x1397b7,_0x555387._0x3b6180,_0x555387._0x214fc6)+_0x16f0af[_0x45f307(0x453,0x363,0x565,_0x555387._0x3e4a4f)][_0x43f83f(0x22e,_0x555387._0x10a341,_0x555387._0x440f56,_0x555387._0x28d0c5)]+_0x45f307(_0x555387._0x110542,_0x555387._0x401307,_0x555387._0x2f1de0,_0x555387._0x2ce2d6)+_0x16f0af[_0x43f83f(_0x555387._0x2845fc,0x3e7,0x2f2,0x283)],'inputSchema':toNuvinToolSchema(_0x16f0af[_0x43f83f(0x3d9,0x458,_0x555387._0x4bb580,0x4f2)][_0x43f83f(0x36e,_0x555387._0x32ced4,_0x555387._0x27459e,0x263)]),async *'execute'(_0x30e528){const _0x4616cd={_0xe02999:0xfd};function _0x22d61b(_0x371930,_0x5de71c,_0x91c5d1,_0x275f4b){return _0x43f83f(_0x91c5d1,_0x5de71c-_0x7a395c._0x22c528,_0x91c5d1-_0x7a395c._0x5874d6,_0x5de71c- -_0x7a395c._0x3234dd);}const _0x1df74e=await _0x16f0af['client'][_0x9208ba(0xd3,_0x1e5675._0x386307,_0x1e5675._0x4fe40a,_0x1e5675._0xbba04e)]({'name':_0x16f0af['tool'][_0x22d61b(-_0x1e5675._0x309f30,-_0x1e5675._0x40a1f9,0xa1,-_0x1e5675._0x104c77)],'arguments':isJsonObject(_0x30e528)?_0x30e528:{}});function _0x9208ba(_0x21d6ad,_0x211c82,_0x5e190e,_0x4b6198){return _0x43f83f(_0x5e190e,_0x211c82-0x155,_0x5e190e-_0x4616cd._0xe02999,_0x211c82- -0x3de);}if(_0x1df74e['isError'])throw new ToolExecutionError(formatMcpContent(_0x1df74e),{'serverName':_0x16f0af[_0x22d61b(-0x28,-0xb7,0x4b,-_0x1e5675._0x5cad2d)],'toolName':_0x16f0af[_0x9208ba(-_0x1e5675._0x41d708,0x114,0x1fd,_0x1e5675._0x27b4ca)]['name']});return yield createToolOutput(formatMcpContent(_0x1df74e),{'serverName':_0x16f0af[_0x22d61b(-_0x1e5675._0x39595b,-_0x1e5675._0x493bed,-0xee,0xb2)],'toolName':_0x16f0af[_0x22d61b(0x2c3,_0x1e5675._0x4f822e,0x2c7,_0x1e5675._0x3acc56)]['name'],'result':_0x1df74e}),void 0x0;}});}function resolvePrefix(_0x50c64b,_0x54d209){const _0x56c5cd={_0x26c2e8:0x23,_0x140a59:0x17e};function _0x306dd5(_0x495fcf,_0x14f11b,_0x3dfcec,_0x1c8dc8){return _0x199ce4(_0x14f11b-_0x56c5cd._0x26c2e8,_0x14f11b-0x1ac,_0x3dfcec,_0x1c8dc8-_0x56c5cd._0x140a59);}return _0x54d209[_0x306dd5(-0x18,-0xff,-0x131,-0x1a2)]??_0x50c64b;}function buildMcpHttpHeaders(_0x54c43c){const _0x310612={_0x52c24c:0x1a3,_0x484a6d:0x23d,_0x13c49c:0x2ac,_0x396518:0x153,_0x459ad6:0x68a,_0x2cb789:0x5a0,_0x2123ce:0x54,_0x1a4f87:0x41d,_0x4284d8:0x38a,_0x3c7e64:0x324,_0x43f6dd:0x2fe,_0xf759f2:0x65d,_0x47b27a:0x603,_0x42392f:0x5b1,_0x12c0a3:0x219,_0x49250a:0x2f1,_0x344f3d:0x58a,_0x4104fe:0x594},_0x432fca={_0xed9bcc:0x510,_0x465d1f:0x1d1},_0x7ab120={_0x48b701:0x136,_0x57a893:0x187,_0x88b883:0x72};function _0x4ee82e(_0x2ae874,_0x576609,_0x19080a,_0x5e90b1){return _0x26f978(_0x2ae874-_0x7ab120._0x48b701,_0x576609-_0x7ab120._0x57a893,_0x576609- -_0x7ab120._0x88b883,_0x2ae874);}function _0x3744a5(_0x9a7f74,_0x1fca87,_0xe5e6bb,_0x1c20bb){return _0x199ce4(_0x1fca87-_0x432fca._0xed9bcc,_0x1fca87-_0x432fca._0x465d1f,_0x1c20bb,_0x1c20bb-0x13e);}const _0x562a0d={..._0x54c43c[_0x4ee82e(_0x310612._0x52c24c,_0x310612._0x484a6d,_0x310612._0x13c49c,_0x310612._0x396518)]??{}};return _0x54c43c[_0x3744a5(0x801,_0x310612._0x459ad6,0x74d,_0x310612._0x2cb789)]?.[_0x4ee82e(-0x16,0xf7,-_0x310612._0x2123ce,0x2)]==='bearer'&&_0x54c43c[_0x4ee82e(_0x310612._0x1a4f87,_0x310612._0x4284d8,_0x310612._0x3c7e64,_0x310612._0x43f6dd)][_0x3744a5(0x7b3,_0x310612._0xf759f2,_0x310612._0x47b27a,_0x310612._0x42392f)]&&_0x562a0d['Authorization']===void 0x0&&(_0x562a0d[_0x4ee82e(0x35b,_0x310612._0x12c0a3,0x130,_0x310612._0x49250a)]='Bearer\x20'+_0x54c43c[_0x3744a5(_0x310612._0x344f3d,0x68a,_0x310612._0x4104fe,0x6c5)][_0x3744a5(0x646,0x65d,0x519,0x546)]),Object['keys'](_0x562a0d)['length']>0x0?_0x562a0d:void 0x0;}function getErrorMessage(_0xfcfed9){const _0x37f710={_0x3aed80:0xbc,_0x201988:0x15e,_0x1b1b89:0x188,_0x4c3483:0x28a},_0x27bd62={_0x25a41d:0xce};function _0x29efcb(_0x47f788,_0x4ca607,_0xc5507b,_0x3a622b){return _0x199ce4(_0xc5507b-_0x27bd62._0x25a41d,_0x4ca607-0x21,_0x3a622b,_0x3a622b-0x120);}return _0xfcfed9 instanceof Error?_0xfcfed9[_0x29efcb(_0x37f710._0x3aed80,_0x37f710._0x201988,_0x37f710._0x1b1b89,_0x37f710._0x4c3483)]:String(_0xfcfed9);}function isUnauthorizedError(_0x586873){const _0x17081f={_0x41debf:0x61,_0x154f72:0x7a,_0x954cca:0x1e,_0x4486cc:0x2a2,_0x534736:0x4f,_0x5d2829:0x35,_0xa89768:0x97},_0x55d2df={_0x5e1a5e:0xaf,_0x15dfcf:0xc0,_0x3bf100:0x1bc},_0x4f3584={_0x2681f1:0x6b};function _0x2ab392(_0x5f46e2,_0x444e8e,_0x254eef,_0x23edb2){return _0x199ce4(_0x5f46e2- -0xa4,_0x444e8e-0x1c6,_0x23edb2,_0x23edb2-_0x4f3584._0x2681f1);}function _0x4af670(_0x33f752,_0x3c32d6,_0x335cf4,_0xa5ef99){return _0x199ce4(_0xa5ef99- -_0x55d2df._0x5e1a5e,_0x3c32d6-_0x55d2df._0x15dfcf,_0x33f752,_0xa5ef99-_0x55d2df._0x3bf100);}return _0x586873 instanceof Error&&_0x586873[_0x2ab392(-_0x17081f._0x41debf,-0x1b5,_0x17081f._0x154f72,-_0x17081f._0x954cca)][_0x4af670(-0x43,-_0x17081f._0x4486cc,-_0x17081f._0x534736,-0x16f)]===_0x2ab392(0x38,-_0x17081f._0x5d2829,-0xff,_0x17081f._0xa89768);}async function connectMcpServer(_0x5784b0,_0x16f2ec,_0x389030){const _0x5b30a0={_0x5b4aeb:0x7c,_0x14c6f2:0x84,_0x226f87:0xe9,_0x4b07e3:0x8a,_0x11aa66:0x4eb,_0x86dd1:0x4fc,_0x443a48:0x590,_0x4c2f00:0x136,_0x19804b:0x4cb,_0x37d024:0x624,_0x8a2d23:0x4b2,_0x455009:0x50f,_0x34f758:0x60f,_0x51abe2:0x696,_0x5a0b95:0x44d,_0x5c282b:0x482,_0x272bd1:0x19a,_0x281c08:0x1c4,_0x1c178f:0xb3,_0x11ae3d:0x5b6,_0x555ffe:0x584,_0x55adcc:0x176,_0x3850aa:0x246,_0x41e04e:0x121,_0x4bf623:0x198,_0x47df79:0x4d5,_0x2c3f74:0x640,_0x316aca:0x51d,_0x44952f:0x1d2,_0x1f9ac0:0x537,_0x346f8c:0x4d6,_0x5d27dd:0x8e,_0xc0a9d7:0x15e,_0x540be5:0x97,_0x5bcfe8:0x5ad,_0x5b8bc5:0x500,_0x274792:0x119,_0x6d148d:0x148,_0x103442:0xd9,_0x38428a:0x4f3,_0x2d9fb0:0x5a2,_0x392021:0x61a,_0xfcaa1f:0x87,_0x4de33e:0xe4,_0x2ecc92:0x4f,_0x3f3bc5:0x4,_0xde52c9:0xc3,_0x2596f3:0x86,_0x4e31c3:0x1ee,_0x428733:0xa6,_0x3a1d13:0xec},_0x46ccf3={_0x512981:0x71,_0x54fb5c:0x77,_0x353f93:0xab},_0x400355={_0x40bdf5:0x7a5},_0x5c54e8={_0x1e9d4a:0x71a,_0x398479:0x128,_0xc2f0a4:0xd6},_0x394d5a={_0x4aa3df:0x118},_0x428708={_0x1b77b0:0x1b9},_0x2dc41c={_0x2a191f:0x7d,_0x4c9a48:0x79,_0x5a1e52:0x172,_0x3eee1f:0x10a,_0x7a22bd:0xf0,_0x56cb6a:0x70},_0x37672a={_0xf25e65:0x12c,_0x471938:0xdb,_0x20cea8:0x1cd},_0x122e56=new Client({'name':_0x27508b(-0x90,-_0x5b30a0._0x5b4aeb,-_0x5b30a0._0x14c6f2,0x18),'version':_0x27508b(_0x5b30a0._0x226f87,_0x5b30a0._0x4b07e3,0x1c9,0x1f0)});_0x122e56[_0x5e0048(0x660,_0x5b30a0._0x11aa66,_0x5b30a0._0x86dd1,_0x5b30a0._0x443a48)]=_0x1b2a42=>{const _0x321bc8={_0x294125:0x3};function _0x439c5e(_0x453afe,_0xaf7609,_0x425ef7,_0xa0aabc){return _0x5e0048(_0x453afe-_0x37672a._0xf25e65,_0xaf7609-_0x37672a._0x471938,_0xa0aabc,_0x453afe- -_0x37672a._0x20cea8);}function _0x17d572(_0x2dee2d,_0x329a80,_0x53e1e7,_0x4b2298){return _0x27508b(_0x53e1e7-_0x321bc8._0x294125,_0x329a80,_0x53e1e7-0x1ac,_0x4b2298-0x16c);}console[_0x17d572(0x66,0x17,-_0x2dc41c._0x2a191f,0xc0)](_0x17d572(-0x1fc,-_0x2dc41c._0x4c9a48,-_0x2dc41c._0x5a1e52,-0x44)+_0x5784b0+_0x17d572(-_0x2dc41c._0x3eee1f,-0x18f,-0x93,0xdb),_0x1b2a42[_0x17d572(_0x2dc41c._0x7a22bd,-0xc2,0x3e,_0x2dc41c._0x56cb6a)]);};function _0x5e0048(_0x4dba74,_0x546b4a,_0x26e830,_0x2d9d7c){return _0x199ce4(_0x2d9d7c-0x54c,_0x546b4a-_0x428708._0x1b77b0,_0x26e830,_0x2d9d7c-0x116);}if(_0x16f2ec['transport']===_0x27508b(-0x14,0x25,-0x35,-_0x5b30a0._0x4c2f00)||_0x16f2ec[_0x5e0048(_0x5b30a0._0x19804b,_0x5b30a0._0x37d024,0x45f,0x4b2)]){if(!_0x16f2ec[_0x5e0048(0x39c,0x439,0x461,_0x5b30a0._0x8a2d23)])throw new Error(_0x5e0048(0x675,_0x5b30a0._0x455009,_0x5b30a0._0x34f758,0x652)+_0x5784b0+_0x5e0048(_0x5b30a0._0x51abe2,_0x5b30a0._0x5a0b95,_0x5b30a0._0x5c282b,0x5aa));if(_0x16f2ec[_0x27508b(0xfb,0x21f,_0x5b30a0._0x272bd1,0x15)]?.[_0x27508b(-0x198,-_0x5b30a0._0x281c08,-_0x5b30a0._0x1c178f,-0x98)]===_0x5e0048(0x3e8,_0x5b30a0._0x11ae3d,_0x5b30a0._0x555ffe,0x51d)&&!_0x389030?.[_0x5e0048(0x579,0x502,0x553,0x51d)])throw new Error('MCP\x20server\x20'+_0x5784b0+'\x20requires\x20OAuth\x20connection\x20options');const _0x385bd2=buildMcpHttpHeaders(_0x16f2ec),_0x873637=_0x16f2ec[_0x27508b(0xfb,_0x5b30a0._0x55adcc,_0x5b30a0._0x3850aa,_0x5b30a0._0x41e04e)]?.[_0x27508b(-_0x5b30a0._0x4bf623,-0x295,-0x120,-0x18b)]==='oauth'&&_0x389030?.[_0x5e0048(_0x5b30a0._0x47df79,0x461,_0x5b30a0._0x2c3f74,_0x5b30a0._0x316aca)]?createMcpOAuthProvider({'serverName':_0x5784b0,'callbackUrl':_0x389030[_0x27508b(-0xae,-_0x5b30a0._0x44952f,-0xf3,-0x108)][_0x5e0048(_0x5b30a0._0x1f9ac0,_0x5b30a0._0x346f8c,0x5c0,0x4ec)],'storageDir':_0x389030[_0x27508b(-0xae,_0x5b30a0._0x5d27dd,-_0x5b30a0._0xc0a9d7,_0x5b30a0._0x540be5)][_0x5e0048(0x388,_0x5b30a0._0x5bcfe8,0x541,_0x5b30a0._0x5b8bc5)],'config':_0x16f2ec['auth'],'onRedirect':_0x25d414=>_0x389030[_0x27508b(-0xae,-0xfc,0x51,-0x212)]?.[_0x5e0048(0x69a,0x5a7,0x6a1,0x5cc)](_0x5784b0,_0x25d414)}):void 0x0,_0x3ae588=new StreamableHTTPClientTransport(new URL(_0x16f2ec[_0x27508b(-_0x5b30a0._0x274792,-0x124,-_0x5b30a0._0x6d148d,-_0x5b30a0._0x103442)]),{'authProvider':_0x873637,'requestInit':_0x385bd2?{'headers':_0x385bd2}:void 0x0});await _0x122e56['connect'](_0x3ae588);}else{if(!_0x16f2ec[_0x5e0048(0x608,_0x5b30a0._0x38428a,_0x5b30a0._0x2d9fb0,_0x5b30a0._0x392021)])throw new Error(_0x27508b(_0x5b30a0._0xfcaa1f,-0x96,-0xb8,_0x5b30a0._0x4de33e)+_0x5784b0+'\x20requires\x20command\x20for\x20stdio\x20transport');const _0xcd3bc3=new StdioClientTransport({'command':_0x16f2ec[_0x27508b(_0x5b30a0._0x2ecc92,-0x114,0xbf,-_0x5b30a0._0x3f3bc5)],'args':_0x16f2ec[_0x27508b(_0x5b30a0._0xde52c9,0x7b,-_0x5b30a0._0x2596f3,_0x5b30a0._0x4e31c3)]??[],'env':_0x16f2ec[_0x27508b(-0x82,-0x1c6,-_0x5b30a0._0x428733,-_0x5b30a0._0x3a1d13)],'stderr':'pipe'});await _0x122e56['connect'](_0xcd3bc3);}function _0x27508b(_0x254a4c,_0x20ec7f,_0x1e87ce,_0x349d30){return _0x26f978(_0x254a4c-0x10c,_0x20ec7f-_0x394d5a._0x4aa3df,_0x254a4c- -0x301,_0x20ec7f);}return{async 'listTools'(){function _0x1ada8c(_0x429075,_0x20a5d9,_0xe9aec3,_0x7c4ceb){return _0x27508b(_0x7c4ceb-_0x5c54e8._0x1e9d4a,_0xe9aec3,_0xe9aec3-_0x5c54e8._0x398479,_0x7c4ceb-_0x5c54e8._0xc2f0a4);}return await _0x122e56[_0x1ada8c(0x954,_0x400355._0x40bdf5,0x66c,0x7e1)]();},async 'callTool'(_0x491c6c){const _0x55b55c={_0x19bb7c:0xc1,_0x3d0873:0x491};function _0x23ee3d(_0x1cb690,_0x1a9cf,_0x3cf7d3,_0x190384){return _0x5e0048(_0x1cb690-_0x55b55c._0x19bb7c,_0x1a9cf-0x132,_0x3cf7d3,_0x190384- -_0x55b55c._0x3d0873);}return await _0x122e56['request']({'method':_0x23ee3d(-_0x46ccf3._0x512981,-0x2f,-_0x46ccf3._0x54fb5c,-_0x46ccf3._0x353f93),'params':_0x491c6c},CallToolResultSchema);},async 'close'(){await _0x122e56['close']();}};}async function createMcpToolsFromServers(_0xb77f76){const _0xa03f4e={_0x53174e:0x185,_0x20e20c:0x75,_0x1bdba2:0x85,_0x5c2bf9:0x4a,_0x52ccd2:0x143,_0x3be04f:0x11b,_0x13439d:0x5c,_0x14accc:0x254,_0x184423:0x12a,_0x59d536:0x138,_0x5c4fb5:0x19a,_0x2bc40f:0x9e,_0x1ac72a:0x180,_0x140954:0x31c,_0xfc9c88:0x290,_0x30072d:0x1f6,_0x226846:0x9f,_0x838e97:0x131,_0x22648e:0x3,_0x2d6f79:0xda,_0x5196ff:0x23b,_0x3a0f80:0x52,_0x59878b:0x7b,_0x477b8d:0x1a9,_0x1a1623:0x134,_0xe74753:0xa2,_0x1cccc0:0x22e,_0x1d9dc4:0x19d,_0x3fdca7:0x21,_0x7d905b:0x71,_0x4d67d2:0xd7,_0x2332fd:0x2da,_0xd3a3fb:0x33,_0x3c5731:0x25b,_0x339394:0x13,_0x455ad5:0xdc},_0x414ecd={_0x195513:0x89,_0x52bede:0x165,_0x4be18c:0x32b},_0x3b5a79={_0x518f62:0xa9},_0x5676ce={_0x27ab80:0x5},_0x5cd861={_0x3d84d0:0x12c,_0x309188:0x15d,_0x44a79f:0x2aa},_0x50b25f={_0x589508:0x1a5},_0x40a53e=_0xb77f76[_0x1a8dc0(-_0xa03f4e._0x53174e,-0x21,-0x163,-_0xa03f4e._0x20e20c)]??connectMcpServer,_0x288e68=[];function _0x1a8dc0(_0x413ec1,_0x137af0,_0x36be56,_0x2148be){return _0x26f978(_0x413ec1-0x14c,_0x137af0-0x62,_0x2148be- -_0x50b25f._0x589508,_0x36be56);}const _0x568e2f={};function _0xb05239(_0x492d91,_0x4524ab,_0x1f732a,_0x5b6262){return _0x26f978(_0x492d91-_0x5cd861._0x3d84d0,_0x4524ab-_0x5cd861._0x309188,_0x5b6262- -_0x5cd861._0x44a79f,_0x1f732a);}const _0x2b685b={},_0x1958be=[];for(const [_0x40b4e4,_0xdfe43f]of Object[_0xb05239(0x2f,0x60,-_0xa03f4e._0x1bdba2,-_0xa03f4e._0x5c2bf9)](_0xb77f76[_0x1a8dc0(0x225,_0xa03f4e._0x52ccd2,0xf0,_0xa03f4e._0x3be04f)]??{})){if(_0xdfe43f['enabled']===![]){_0x568e2f[_0x40b4e4]={'status':_0xb05239(-0x9,-_0xa03f4e._0x13439d,-_0xa03f4e._0x14accc,-_0xa03f4e._0x184423)};continue;}try{const _0x598599=await _0x40a53e(_0x40b4e4,_0xdfe43f,_0xb77f76[_0xb05239(-0x5f,-_0xa03f4e._0x59d536,-_0xa03f4e._0x5c4fb5,-_0xa03f4e._0x2bc40f)]);_0x288e68[_0xb05239(-0x1f9,-0xcd,-0x62,-_0xa03f4e._0x1ac72a)](_0x598599);const _0x204e2a=await _0x598599[_0x1a8dc0(_0xa03f4e._0x140954,_0xa03f4e._0xfc9c88,0x29b,0x223)]();let _0x4b5f6d=0x0;const _0x2a3e61=[];for(const _0x2ed4a1 of _0x204e2a[_0xb05239(0x154,_0xa03f4e._0x30072d,_0xa03f4e._0x226846,_0xa03f4e._0x838e97)]){const _0x3f975f=_0xb77f76[_0xb05239(_0xa03f4e._0x22648e,0x23a,-0x5b,_0xa03f4e._0x2d6f79)]?.[_0x40b4e4]?.[_0x2ed4a1[_0xb05239(-0x1d,0x3c,-_0xa03f4e._0x5196ff,-0xe8)]];_0x2a3e61[_0x1a8dc0(-0x122,-_0xa03f4e._0x3a0f80,-0x2b,-_0xa03f4e._0x59878b)]({'name':_0x2ed4a1[_0xb05239(-0x1a8,-_0xa03f4e._0x477b8d,0xa,-0xe8)],..._0x2ed4a1['description']!==void 0x0?{'description':_0x2ed4a1[_0x1a8dc0(_0xa03f4e._0x1a1623,-0xc6,0x5c,_0xa03f4e._0xe74753)]}:{},..._0x2ed4a1[_0xb05239(-_0xa03f4e._0x1cccc0,-0xfa,-0x2c1,-_0xa03f4e._0x1d9dc4)]!==void 0x0?{'inputSchema':_0x2ed4a1[_0x1a8dc0(-0x6c,_0xa03f4e._0x3fdca7,0x53,-0x98)]}:{}});if(_0x3f975f===![])continue;_0x4b5f6d+=0x1,_0x1958be[_0xb05239(-_0xa03f4e._0x7d905b,-_0xa03f4e._0x4d67d2,-_0xa03f4e._0x2332fd,-0x180)](createMcpTool({'serverName':resolvePrefix(_0x40b4e4,_0xdfe43f),'tool':_0x2ed4a1,'client':_0x598599}));}_0x2b685b[_0x40b4e4]=_0x2a3e61,_0x568e2f[_0x40b4e4]={'status':_0x1a8dc0(-0x144,-0x138,0x197,_0xa03f4e._0xd3a3fb),'toolCount':_0x4b5f6d};}catch(_0x7b3585){_0x568e2f[_0x40b4e4]=isUnauthorizedError(_0x7b3585)?{'status':_0x1a8dc0(0x211,0x1ab,0x19d,_0xa03f4e._0x3c5731),'message':getErrorMessage(_0x7b3585)}:{'status':_0x1a8dc0(0x62,_0xa03f4e._0x339394,0x3b,_0xa03f4e._0x455ad5),'message':getErrorMessage(_0x7b3585)};}}return{'tools':_0x1958be,'servers':_0x568e2f,'serverTools':_0x2b685b,async 'close'(){function _0x35e506(_0x35f57f,_0x381d69,_0x4e4e1e,_0x50ed50){return _0x1a8dc0(_0x35f57f-0xa4,_0x381d69-_0x5676ce._0x27ab80,_0x35f57f,_0x381d69- -0x89);}function _0x40e8bd(_0x5c9f14,_0x9fc034,_0x36859a,_0x4536f2){return _0xb05239(_0x5c9f14-_0x3b5a79._0x518f62,_0x9fc034-0x1de,_0x4536f2,_0x9fc034-0x28e);}await Promise[_0x35e506(-_0x414ecd._0x195513,0xc2,0x166,0xf9)](_0x288e68[_0x40e8bd(_0x414ecd._0x52bede,0x253,_0x414ecd._0x4be18c,0x2e7)](_0x3e21fe=>_0x3e21fe['close']()));}};}function getCommand(_0x19865a){const _0x273c29={_0x25cc06:0x402,_0x2f67c6:0x770,_0x51f3a8:0x6a7,_0x1eec0f:0x6f2,_0x31c6b7:0x4f1,_0x147b6b:0x4bf,_0x472e21:0x8e6},_0x1e2aef={_0x4f9e24:0x624,_0xc98453:0x128,_0x187a43:0x1c0},_0xf115b9={_0x3896ab:0x439,_0xf64b1d:0xb,_0xa47294:0xf3};if(_0x19865a&&typeof _0x19865a==='object'&&!Array[_0x5eaf75(_0x273c29._0x25cc06,0x483,0x422,0x429)](_0x19865a)&&typeof _0x19865a[_0x2a7bac(_0x273c29._0x2f67c6,0x63b,_0x273c29._0x51f3a8,_0x273c29._0x1eec0f)]===_0x5eaf75(0x5db,0x454,_0x273c29._0x31c6b7,_0x273c29._0x147b6b))return _0x19865a['command'];function _0x5eaf75(_0x52aef9,_0x4cc042,_0x433da4,_0x70b540){return _0x199ce4(_0x70b540-_0xf115b9._0x3896ab,_0x4cc042-_0xf115b9._0xf64b1d,_0x52aef9,_0x70b540-_0xf115b9._0xa47294);}function _0x2a7bac(_0x1174c6,_0x5cb857,_0x18d43c,_0x4c2b6c){return _0x199ce4(_0x4c2b6c-_0x1e2aef._0x4f9e24,_0x5cb857-_0x1e2aef._0xc98453,_0x1174c6,_0x4c2b6c-_0x1e2aef._0x187a43);}return _0x2a7bac(_0x273c29._0x472e21,0x839,0x7df,0x793);}var MOCK_WORKSPACE_LISTING=['docs/plans/2026-04-16-agent-loop-core-design.md',_0x199ce4(-0x115,-0xa2,-0x12,-0xa7),_0x26f978(0x236,0x3be,0x361,0x3bc),_0x199ce4(-0x5f,-0xf5,-0x1da,-0x14),_0x26f978(0x414,0x27a,0x3b1,0x402),_0x199ce4(-0x165,-0x1b7,-0x233,0x6),_0x199ce4(-0x13d,-0x1d5,-0x1e2,-0xba),'src/agent/extension-registry.ts','src/models/mock-model.ts',_0x26f978(0x316,0x288,0x203,0x354),_0x26f978(0x139,0xc7,0x1e3,0x177),_0x199ce4(0x15b,0x193,0x22b,0x68),_0x199ce4(-0x65,-0x18e,-0x186,-0x17f),'src/agent/agent.test.ts','src/models/anthropic-model.ts','src/formats/provider-adapters.test.ts',_0x199ce4(0x144,0x15c,0x18e,0x1db)][_0x199ce4(-0x4e,-0x197,0x11e,0x9)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x26f978(0x4cd,0x419,0x3d5,0x4fa),'description':'Executes\x20a\x20shell\x20command','input_schema':{'type':_0x26f978(0x2cb,0x428,0x3ee,0x2bf),'properties':{'command':{'type':_0x26f978(0x3d5,0x3a8,0x308,0x2c5)}},'required':[_0x26f978(0x384,0x435,0x350,0x3e9)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x3a9db8){return{'output':_0x3a9db8,'structured':{'value':_0x3a9db8}};}function createUnknownToolResult(_0x5909d0){const _0x5c06b4={_0x4e39df:0x2ec,_0xcfc3fe:0x1c9,_0x30fce8:0x3d6,_0x2d8136:0x319,_0x1abc3f:0xba,_0x35a855:0x164,_0x373b84:0x58,_0x486dbe:0x129,_0x2300e0:0xe,_0x34102b:0xc},_0x5a1aab={_0x400a3a:0x7d},_0x53f029={_0x1af397:0x11,_0x120c16:0x98};function _0x581d39(_0x5bda87,_0x32f321,_0x14e512,_0x4a3702){return _0x26f978(_0x5bda87-_0x53f029._0x1af397,_0x32f321-0x9,_0x4a3702-_0x53f029._0x120c16,_0x14e512);}function _0x59bb5b(_0x1b6cab,_0x57eb3b,_0x23874e,_0x1caca4){return _0x26f978(_0x1b6cab-0x1b1,_0x57eb3b-_0x5a1aab._0x400a3a,_0x1b6cab- -0x16a,_0x57eb3b);}return{'callId':_0x5909d0['id'],'toolName':_0x5909d0['name'],'status':_0x581d39(_0x5c06b4._0x4e39df,_0x5c06b4._0xcfc3fe,_0x5c06b4._0x30fce8,_0x5c06b4._0x2d8136),'output':_0x59bb5b(0x8,_0x5c06b4._0x1abc3f,0x35,_0x5c06b4._0x35a855)+_0x5909d0[_0x59bb5b(_0x5c06b4._0x373b84,_0x5c06b4._0x486dbe,_0x5c06b4._0x2300e0,_0x5c06b4._0x34102b)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x4e5809,_0x558506){const _0x3f901a={_0x9655ca:0xff,_0x47e6b1:0x415,_0x2c9f7b:0x4a6},_0x516ec1={_0x1d681f:0x35},_0x72c83e={_0x331141:0xbf,_0x5649f3:0x179};function _0x354f8b(_0xb738f1,_0x25071c,_0x539409,_0x205e34){return _0x26f978(_0xb738f1-_0x72c83e._0x331141,_0x25071c-_0x72c83e._0x5649f3,_0xb738f1-0x1d7,_0x25071c);}function _0x1a831b(_0x4c4a95,_0xea3633,_0x44ea81,_0x5f5190){return _0x26f978(_0x4c4a95-_0x516ec1._0x1d681f,_0xea3633-0x95,_0x44ea81- -0x13,_0x5f5190);}return{'callId':_0x4e5809['id'],'toolName':_0x4e5809[_0x1a831b(0x62,0x14d,0x1af,_0x3f901a._0x9655ca)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x4e5809[_0x1a831b(_0x3f901a._0x47e6b1,0x37b,0x392,_0x3f901a._0x2c9f7b)]),'exitCode':0x0},'chunks':[_0x558506],'meta':createMeta()};}function createMockToolRuntime(){const _0x1a2385={_0x22b0df:0x148,_0x1ce648:0x16d,_0x4156c5:0x2b3},_0x24da7d={_0x2e2b5a:0x1b9,_0xca2da:0xce,_0x5b4457:0x1b6,_0x158e9a:0x9b},_0x21b428=async(_0x15eb67,_0x1f7913)=>{const _0x424033={_0x284cef:0x310};if(_0x15eb67[_0x385452(0x34b,0x2e3,_0x24da7d._0x2e2b5a,0x1fa)]!==_0xa58533(_0x24da7d._0xca2da,0x122,_0x24da7d._0x5b4457,_0x24da7d._0x158e9a))return createUnknownToolResult(_0x15eb67);function _0xa58533(_0x5b350c,_0x2395c7,_0x555c76,_0x2d30a9){return _0x16af(_0x2395c7- -_0x424033._0x284cef,_0x2d30a9);}function _0x385452(_0x387354,_0x308274,_0x5c566b,_0x3d35a3){return _0x16af(_0x308274-0xc4,_0x3d35a3);}const _0x3166f0=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x15eb67,_0x3166f0);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x5e44bd,_0x2295ab){function _0x4089d3(_0x5e6e2c,_0x5b25fc,_0x59b11a,_0x3f4364){return _0x16af(_0x3f4364- -0x9a,_0x59b11a);}return await Promise[_0x4089d3(_0x1a2385._0x22b0df,_0x1a2385._0x1ce648,0x1ad,_0x1a2385._0x4156c5)](_0x5e44bd['map'](async _0xe3b963=>{return await _0x21b428(_0xe3b963,_0x2295ab);}));},async 'execute'(_0x55417a,_0x30dfb7){return await _0x21b428(_0x55417a,_0x30dfb7);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x3efc1c={_0x453fc1:0x184,_0x4a5894:0x236},_0x495e31={_0xa8ca3e:0x121,_0x214069:0x2b};delegatedRunCounter+=0x1;function _0xc183ae(_0x27d642,_0x4c6b0d,_0x5e66a8,_0x36af8c){return _0x26f978(_0x27d642-0x21,_0x4c6b0d-_0x495e31._0xa8ca3e,_0x36af8c-_0x495e31._0x214069,_0x27d642);}return _0xc183ae(_0x3efc1c._0x453fc1,0x1f1,_0x3efc1c._0x4a5894,0x190)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x30486b,_0x36715b){return typeof _0x30486b==='function'?await _0x30486b(_0x36715b):_0x30486b;}function getDelegatedAgentDefinition(_0x5935d8,_0x5f3c88){return _0x5935d8['agents']?.[_0x5f3c88];}function createRunSummary(_0x209ec1){const _0x1219c2={_0x688cf7:0x30f,_0x48e557:0x49c,_0x24e759:0x23c,_0xee50e2:0x34a,_0x3ee0a1:0x3bc,_0x2c1f63:0x172,_0x35ad2c:0x18c,_0x53527c:0x453,_0x347cfe:0x63a,_0x465152:0x50b,_0x223ecc:0x1a1,_0x57a6a2:0x51f,_0x3a632b:0x441,_0xf2e4dc:0x487,_0x4a45f4:0x491},_0x57b033={_0x35afe5:0x136},_0x2f4ae3={_0x186c24:0x1f8,_0x3c5c31:0x118,_0x367c5f:0xf5};function _0x7abfc8(_0xe73a2,_0x514bed,_0x4aeb4b,_0x18942c){return _0x199ce4(_0x4aeb4b-_0x2f4ae3._0x186c24,_0x514bed-_0x2f4ae3._0x3c5c31,_0xe73a2,_0x18942c-_0x2f4ae3._0x367c5f);}function _0x3bee57(_0x5f0aac,_0x23221e,_0x2715d6,_0x3b0d55){return _0x199ce4(_0x3b0d55-0x505,_0x23221e-0x129,_0x5f0aac,_0x3b0d55-_0x57b033._0x35afe5);}return{'runId':_0x209ec1[_0x7abfc8(0x418,0x393,_0x1219c2._0x688cf7,0x1a3)],'agentId':_0x209ec1[_0x3bee57(0x40a,0x353,_0x1219c2._0x48e557,0x41c)],'sessionId':_0x209ec1[_0x7abfc8(0x484,_0x1219c2._0x24e759,_0x1219c2._0xee50e2,_0x1219c2._0x3ee0a1)],'status':_0x209ec1['status'],'parentSessionId':_0x209ec1[_0x7abfc8(0x19d,_0x1219c2._0x2c1f63,0xe9,_0x1219c2._0x35ad2c)],..._0x209ec1[_0x3bee57(_0x1219c2._0x53527c,_0x1219c2._0x347cfe,0x5a5,_0x1219c2._0x465152)]!==void 0x0?{'originToolCallId':_0x209ec1[_0x7abfc8(0x1c6,_0x1219c2._0x223ecc,0x1fe,0x2d2)]}:{},..._0x209ec1[_0x3bee57(_0x1219c2._0x57a6a2,0x6ac,0x60c,0x639)]!==void 0x0?{'errorMessage':_0x209ec1[_0x7abfc8(0x3a8,0x3c9,0x32c,0x21e)]}:{},..._0x209ec1[_0x3bee57(_0x1219c2._0x3a632b,0x4cf,_0x1219c2._0xf2e4dc,_0x1219c2._0x4a45f4)]?.[_0x3bee57(0x7a9,0x746,0x5e0,0x659)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x209ec1['result']['finalMessage'])}:{}};}function createRunSummaryOutput(_0x2d7c97,_0x11d8d9){const _0x8ac7f0={_0x56a5de:0x61d,_0x19ac1f:0x7c0,_0x1c6a15:0x766,_0x5ae583:0x3c1,_0x5d7894:0x43d,_0x1db79d:0x4e3,_0x41ec2b:0x72a,_0x86fdca:0x56e},_0x251e34={_0xc50a80:0x6b6,_0x59fdd3:0x22},_0x28108d={_0x36835e:0x7f,_0x24c1a3:0xb9};function _0x13cd4c(_0x2361bf,_0x42cb31,_0x10d268,_0x2ab32e){return _0x26f978(_0x2361bf-_0x28108d._0x36835e,_0x42cb31-0x1c3,_0x2361bf-_0x28108d._0x24c1a3,_0x42cb31);}function _0x324513(_0x525a5e,_0x1ca7b0,_0x24ff34,_0x12b7f5){return _0x199ce4(_0x1ca7b0-_0x251e34._0xc50a80,_0x1ca7b0-0x189,_0x525a5e,_0x12b7f5-_0x251e34._0x59fdd3);}const _0xcf1d3b=createRunSummary(_0x2d7c97),_0xa85194=_0xcf1d3b[_0x324513(_0x8ac7f0._0x56a5de,0x6ea,_0x8ac7f0._0x19ac1f,_0x8ac7f0._0x1c6a15)];return createToolOutput(typeof _0xa85194===_0x13cd4c(_0x8ac7f0._0x5ae583,_0x8ac7f0._0x5d7894,0x3ad,_0x8ac7f0._0x1db79d)&&_0xa85194[_0x324513(0x594,0x67a,_0x8ac7f0._0x41ec2b,_0x8ac7f0._0x86fdca)]>0x0?_0xa85194:_0x11d8d9,_0xcf1d3b);}function getRunTerminalErrorMessage(_0xd7706a){const _0x3df6d2={_0x1a4bb6:0x9d,_0x55a965:0x95,_0x59ac7e:0x281,_0x279aed:0xf8,_0x146da0:0xab,_0x3a6928:0x4,_0x5e2cb8:0xe4,_0x2d1cf4:0x17,_0x115cf5:0x145,_0x4a8213:0x14,_0x33599c:0x154,_0x40907e:0xdc,_0x5467b3:0x5,_0x2c3d36:0x289,_0x5a7dbc:0x25a,_0x4d8bfe:0x173,_0x427ce3:0xca,_0x38690b:0xe6},_0x401f20={_0x1cbb2c:0x9a},_0x1bab9e={_0x254cc1:0xa5};function _0x1ca5d9(_0x4b4f51,_0x31bf0b,_0x3f12fb,_0xf407f){return _0x26f978(_0x4b4f51-_0x1bab9e._0x254cc1,_0x31bf0b-0x4b,_0xf407f- -0x23a,_0x4b4f51);}const _0x33b7bc=_0xd7706a?.[_0xeb91ae(-0xe2,-_0x3df6d2._0x1a4bb6,_0x3df6d2._0x55a965,-0x15a)][_0xeb91ae(-_0x3df6d2._0x59ac7e,-0x21b,-_0x3df6d2._0x279aed,-_0x3df6d2._0x146da0)]['at'](-0x1);function _0xeb91ae(_0x1e0492,_0x408388,_0x91ab7b,_0xf2c5f8){return _0x26f978(_0x1e0492-_0x401f20._0x1cbb2c,_0x408388-0x77,_0x408388- -0x389,_0x1e0492);}if(_0x33b7bc?.[_0xeb91ae(-0x1b3,-0x13b,-_0x3df6d2._0x3a6928,0x1f)]===_0x1ca5d9(-_0x3df6d2._0x5e2cb8,_0x3df6d2._0x2d1cf4,_0x3df6d2._0x115cf5,0x47)&&_0x33b7bc[_0x1ca5d9(-_0x3df6d2._0x4a8213,0x1bd,_0x3df6d2._0x33599c,_0x3df6d2._0x40907e)][_0x1ca5d9(-0x110,_0x3df6d2._0x5467b3,-_0x3df6d2._0x2c3d36,-0x127)]()[_0xeb91ae(-_0x3df6d2._0x5a7dbc,-0x143,-_0x3df6d2._0x4d8bfe,-_0x3df6d2._0x427ce3)]>0x0)return _0x33b7bc[_0x1ca5d9(-0x8f,0x24f,_0x3df6d2._0x38690b,_0x3df6d2._0x40907e)];return void 0x0;}function formatAbortedRunMessage(_0x220c06,_0x5c3623){const _0x4a3647={_0x48026e:0xce,_0x58920c:0x55,_0x288322:0x40,_0x29a5ae:0x157,_0x3ae06c:0x283,_0x25e6a7:0x97,_0x280e00:0x54,_0x12aab7:0xd3,_0x23a71e:0x34,_0x4768b9:0xad},_0x2d630a={_0x505a37:0x93,_0xe07562:0x48,_0x49bf8e:0x120},_0x55ac98=_0x450236(-_0x4a3647._0x48026e,-_0x4a3647._0x58920c,-0xf3,_0x4a3647._0x288322)+_0x220c06+_0x450236(_0x4a3647._0x29a5ae,_0x4a3647._0x3ae06c,0x8f,-0xb);function _0x1d1863(_0x2af70a,_0x56ef65,_0x5df201,_0x21d28a){return _0x199ce4(_0x21d28a-0xe2,_0x56ef65-0x1a5,_0x56ef65,_0x21d28a-0x1e5);}if(!_0x5c3623||_0x5c3623[_0x1d1863(_0x4a3647._0x25e6a7,_0x4a3647._0x280e00,-_0x4a3647._0x12aab7,-0x8d)]()[_0x1d1863(-_0x4a3647._0x23a71e,-0x4e,0x15f,0xa6)]===0x0||_0x5c3623===_0x55ac98)return _0x55ac98;function _0x450236(_0x236c2e,_0x56248a,_0x2884b9,_0x1b99f4){return _0x199ce4(_0x236c2e-_0x2d630a._0x505a37,_0x56248a-_0x2d630a._0xe07562,_0x1b99f4,_0x1b99f4-_0x2d630a._0x49bf8e);}return _0x55ac98+_0x450236(-0xc7,-0x113,0x75,-_0x4a3647._0x4768b9)+_0x5c3623;}function createAssignTaskTool(_0x3f537c){const _0x3e5b4a={_0x193475:0x4f4,_0xed7456:0x631,_0x10a7f1:0x43f,_0x10beb6:0x592,_0x484261:0x480,_0x4a63cf:0x230,_0x14a7a7:0xd7,_0x16e55b:0x20f,_0x3b0b90:0x187,_0x5f3e86:0x4ed,_0xfd2c7e:0x3fc,_0x55333e:0x365,_0x3439d4:0x58c,_0x7f3247:0x4a8,_0x3a3a2d:0x389},_0x5f1601={_0x4dbeee:0x53f,_0x52a71a:0x5df,_0x3344eb:0x4ad,_0xd89c55:0x77a,_0x2f69a6:0x8d3,_0x40289f:0x8a3,_0x595ead:0x5a9,_0x3abcf8:0x527,_0x47b4bc:0x675,_0x2b299b:0x57a,_0x3ac6b4:0x57b,_0x499041:0x3fa,_0x16c6a2:0x4f3,_0x300088:0x473,_0x573c1d:0x444,_0x3d8222:0x504,_0x336578:0x406,_0x1e8f39:0x53f,_0xcde5c8:0x50b,_0xf16a87:0x4cf,_0x32016e:0x751,_0x1d55e5:0x6e7,_0x1f761a:0x6fc,_0x1f606c:0x7cb,_0x2b5b4e:0x7b3,_0x5cdb6b:0x4db,_0x9ef957:0x614,_0x2f240a:0x556,_0x182860:0x645,_0x2c4273:0x647,_0x409b7e:0x610,_0x3a505a:0x4e8,_0x346685:0x705,_0x1fd7f0:0x58b,_0x22c74f:0x5a8,_0x135ed5:0x66c,_0x27a11d:0x733,_0x444245:0x86a,_0x323af1:0x5b7,_0x428a05:0x55f,_0x17e50d:0x553,_0x3dfdc3:0x5f4,_0x1ae6e5:0x499,_0x145031:0x614,_0x29e010:0x3c1,_0x55c2b2:0x4c7,_0x156039:0x61e,_0x32e135:0x666,_0x31ef30:0x77e,_0x59f85e:0x69f,_0x43a24d:0x4c9,_0x2a2656:0x3ee,_0x5c1883:0x50a,_0x324160:0x401,_0x3f3bbf:0x4dc,_0x502828:0x4d2,_0x2f4cbb:0x3df,_0x2a0f51:0x460,_0x59f9fc:0x5b4,_0x12f5a0:0x5ef,_0x4b61ad:0x691,_0x145fc2:0x68d,_0x105933:0x5c7,_0x1e9e7f:0x4d2,_0xe10b7b:0x508,_0x56439e:0x656,_0x2d4d1b:0x536,_0x4ccfe4:0x73f,_0x50f904:0x8ad,_0x4a644b:0x6c2,_0x42fe53:0x524,_0x455b01:0x52b},_0x2f931b={_0x727f65:0x51,_0xd48b78:0x15a};function _0x45d83d(_0x2656fd,_0x4d0047,_0xf5bcec,_0x56af46){return _0x199ce4(_0x56af46-_0x2f931b._0x727f65,_0x4d0047-0x1d9,_0xf5bcec,_0x56af46-_0x2f931b._0xd48b78);}function _0x5bd11e(_0x45ecdc,_0x4e5a8b,_0x1130c4,_0x1a6182){return _0x199ce4(_0x1130c4-0x467,_0x4e5a8b-0x1e9,_0x45ecdc,_0x1a6182-0x192);}return defineTool({'name':_0x5bd11e(0x570,0x3cb,_0x3e5b4a._0x193475,_0x3e5b4a._0xed7456),'description':_0x5bd11e(_0x3e5b4a._0x10a7f1,0x433,_0x3e5b4a._0x10beb6,_0x3e5b4a._0x484261),'inputSchema':{'type':'object','properties':{'agentId':{'type':_0x45d83d(-0x7b,-0x66,_0x3e5b4a._0x4a63cf,_0x3e5b4a._0x14a7a7)},'description':{'type':_0x45d83d(_0x3e5b4a._0x16e55b,_0x3e5b4a._0x3b0b90,-0x4e,0xd7)},'nickname':{'type':'string'},'task':{'type':_0x5bd11e(0x5f0,0x4aa,_0x3e5b4a._0x5f3e86,0x591)}},'required':['agentId',_0x5bd11e(_0x3e5b4a._0xfd2c7e,0x2d1,0x42c,_0x3e5b4a._0x55333e),_0x5bd11e(0x5aa,_0x3e5b4a._0x3439d4,_0x3e5b4a._0x7f3247,_0x3e5b4a._0x3a3a2d)]},async *'execute'(_0x1d682b,_0x490299){const _0x2d5045={_0x51379e:0x13c,_0x5b5305:0x18a},_0x1cfd05={_0x564993:0x1ed,_0x3d5cd9:0x58b},_0x5a89b2=createDelegatedRunId(),_0x31bca9={'agentId':_0x1d682b[_0x91497(0x5ab,_0x5f1601._0x4dbeee,_0x5f1601._0x52a71a,_0x5f1601._0x3344eb)],'parentSessionId':_0x490299[_0x91497(0x836,_0x5f1601._0xd89c55,_0x5f1601._0x2f69a6,_0x5f1601._0x40289f)],'runId':_0x5a89b2,..._0x490299['toolCallId']!==void 0x0?{'toolCallId':_0x490299[_0x91497(_0x5f1601._0x595ead,_0x5f1601._0x3abcf8,_0x5f1601._0x47b4bc,_0x5f1601._0x2b299b)]}:{}},_0x2eadca=getDelegatedAgentDefinition(_0x3f537c,_0x1d682b['agentId']);if(!_0x2eadca)throw new ToolExecutionError(_0x1e24cf(0x5d2,0x4a5,0x50b,_0x5f1601._0x3ac6b4)+_0x1d682b[_0x1e24cf(0x45e,_0x5f1601._0x499041,_0x5f1601._0x16c6a2,_0x5f1601._0x300088)],{'agentId':_0x1d682b[_0x1e24cf(0x5c5,_0x5f1601._0x573c1d,0x4f3,_0x5f1601._0x3d8222)]});const _0x3e3722=new Agent(await resolveDelegatedAgentOptions(_0x2eadca,_0x31bca9));function _0x1e24cf(_0x54378a,_0x39a62a,_0x3d454b,_0x1ddcc3){return _0x45d83d(_0x54378a-_0x1cfd05._0x564993,_0x39a62a-0x35,_0x54378a,_0x3d454b-_0x1cfd05._0x3d5cd9);}let _0x53e321={'runId':_0x5a89b2,'agentId':_0x1d682b[_0x91497(_0x5f1601._0x336578,_0x5f1601._0x1e8f39,_0x5f1601._0xcde5c8,_0x5f1601._0xf16a87)],'sessionId':_0x3e3722[_0x91497(_0x5f1601._0x32016e,0x77a,0x87e,_0x5f1601._0x1d55e5)],'status':_0x1e24cf(0x5e9,0x643,_0x5f1601._0x1f761a,_0x5f1601._0x1f606c),'parentSessionId':_0x490299[_0x1e24cf(0x7d2,_0x5f1601._0x2b5b4e,0x72e,0x681)],..._0x490299['toolCallId']!==void 0x0?{'originToolCallId':_0x490299[_0x1e24cf(0x4f8,0x62f,_0x5f1601._0x5cdb6b,0x483)]}:{}};const _0x373dd6=new AbortController();function _0x91497(_0x14d8d3,_0x46ed9e,_0x46a964,_0x1ec12d){return _0x45d83d(_0x14d8d3-_0x2d5045._0x51379e,_0x46ed9e-_0x2d5045._0x5b5305,_0x46a964,_0x46ed9e-0x5d7);}const _0x573665=addAbortListener(_0x490299[_0x91497(_0x5f1601._0x9ef957,_0x5f1601._0x2f240a,_0x5f1601._0x182860,_0x5f1601._0x2c4273)],()=>{_0x373dd6['abort'](_0x490299['signal']?.['reason']);});yield createToolOutput('Started\x20agent\x20run\x20'+_0x53e321['runId']+'.',{'runId':_0x53e321['runId'],'agentId':_0x53e321[_0x91497(_0x5f1601._0x409b7e,_0x5f1601._0x4dbeee,_0x5f1601._0x3a505a,0x40d)],'sessionId':_0x53e321[_0x91497(0x723,0x77a,_0x5f1601._0x346685,0x86e)],'status':_0x53e321[_0x1e24cf(_0x5f1601._0x1fd7f0,0x5ee,_0x5f1601._0x22c74f,0x706)]});try{const _0x440ead=await _0x3e3722[_0x1e24cf(_0x5f1601._0x135ed5,_0x5f1601._0x27a11d,0x71c,_0x5f1601._0x444245)](_0x1d682b[_0x1e24cf(_0x5f1601._0x323af1,0x56e,0x61d,_0x5f1601._0x428a05)],{'streaming':!![],'signal':_0x373dd6['signal']});_0x53e321={..._0x53e321,'status':_0x440ead[_0x91497(_0x5f1601._0x17e50d,_0x5f1601._0x3dfdc3,0x54a,0x595)],'result':_0x440ead};if(_0x440ead[_0x91497(0x4ba,0x5f4,0x47d,_0x5f1601._0x1ae6e5)]!=='completed'){const _0x178ea2=getRunTerminalErrorMessage(_0x440ead),_0x2c380a=formatAbortedRunMessage(_0x53e321[_0x1e24cf(0x699,_0x5f1601._0x145031,0x6f3,0x793)],_0x178ea2);throw new ToolExecutionError(_0x2c380a,{...createRunSummary(_0x53e321),'aborted':!![],'errorMessage':_0x2c380a});}return createRunSummaryOutput(_0x53e321,_0x91497(_0x5f1601._0x29e010,_0x5f1601._0x55c2b2,0x4c8,0x503)+_0x53e321['runId']+_0x1e24cf(_0x5f1601._0x156039,_0x5f1601._0x32e135,0x684,_0x5f1601._0x31ef30));}catch(_0xf23f8c){if(_0xf23f8c instanceof ToolExecutionError)throw _0xf23f8c;if(isAbortError(_0xf23f8c)||_0x373dd6[_0x91497(_0x5f1601._0x59f85e,_0x5f1601._0x2f240a,_0x5f1601._0x43a24d,0x5e8)]['aborted']||_0x490299[_0x1e24cf(0x5ec,_0x5f1601._0x2a2656,_0x5f1601._0x5c1883,_0x5f1601._0x324160)][_0x91497(_0x5f1601._0x3f3bbf,_0x5f1601._0x502828,0x4f0,_0x5f1601._0x2f4cbb)]){const _0x1eaf84=getRunTerminalErrorMessage(_0x53e321[_0x91497(_0x5f1601._0x2a0f51,_0x5f1601._0x59f9fc,_0x5f1601._0x12f5a0,_0x5f1601._0x4b61ad)])??(_0xf23f8c instanceof Error?_0xf23f8c['message']:String(_0xf23f8c)),_0x580be3=formatAbortedRunMessage(_0x53e321[_0x91497(_0x5f1601._0x145fc2,0x73f,0x6bc,_0x5f1601._0x105933)],_0x1eaf84);_0x53e321={..._0x53e321,'status':_0x91497(0x46c,_0x5f1601._0x1e9e7f,0x4f7,0x3a8),'errorMessage':_0x580be3};throw new ToolExecutionError(_0x580be3,{...createRunSummary(_0x53e321),'aborted':!![],'errorMessage':_0x580be3});}const _0x4bf62e=getRunTerminalErrorMessage(_0x53e321[_0x91497(0x55a,0x5b4,_0x5f1601._0xe10b7b,0x46e)])??(_0xf23f8c instanceof Error?_0xf23f8c[_0x1e24cf(_0x5f1601._0x56439e,0x603,0x696,_0x5f1601._0x2d4d1b)]:String(_0xf23f8c))??_0x1e24cf(0x32b,0x3ce,0x47b,0x34b)+_0x53e321[_0x91497(0x7e2,_0x5f1601._0x4ccfe4,_0x5f1601._0x50f904,_0x5f1601._0x4a644b)]+'\x20failed.';_0x53e321={..._0x53e321,'status':_0x1e24cf(_0x5f1601._0x42fe53,0x3f8,_0x5f1601._0x455b01,0x69d),'errorMessage':_0x4bf62e};throw new ToolExecutionError(_0x4bf62e,{...createRunSummary(_0x53e321),'errorMessage':_0x4bf62e});}finally{_0x573665();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x433e53){return[createAssignTaskTool(_0x433e53)];}import*as _0x93cf0 from'path';function buildDescription2(_0x16a69d){const _0xc9bc92={_0x502477:0x493,_0x106fc1:0x393,_0x4a2d13:0x3be,_0x1e9a8c:0x476,_0x40dd06:0x3f9,_0x4003e5:0x4b2},_0x46307e={_0x100758:0x180,_0x17e05e:0x87,_0x26f375:0x267},_0x186d9f={_0x8efc53:0x181,_0x439a68:0xe};if(_0x16a69d[_0x12807e(0x351,0x4ad,_0xc9bc92._0x502477,0x4ea)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';const _0x42f4e5=[_0x12807e(_0xc9bc92._0x106fc1,_0xc9bc92._0x4a2d13,_0xc9bc92._0x1e9a8c,0x3fe),_0x12807e(_0xc9bc92._0x40dd06,_0xc9bc92._0x4003e5,0x5f8,0x4fb),'Use\x20this\x20when\x20a\x20task\x20matches\x20an\x20available\x20skill\x20description.','Available\x20skills\x20(skill_name:\x20description):',..._0x16a69d['map'](_0x54ebaa=>'-\x20'+_0x54ebaa[_0x12807e(0x4ae,0x429,0x35a,0x2e4)]+':\x20'+_0x54ebaa['description'])];function _0x1f4da2(_0xfca943,_0x312171,_0x11918e,_0x2b333a){return _0x26f978(_0xfca943-_0x186d9f._0x8efc53,_0x312171-0x7a,_0x2b333a-_0x186d9f._0x439a68,_0xfca943);}function _0x12807e(_0x52773c,_0x102c53,_0x51786c,_0x41645b){return _0x26f978(_0x52773c-_0x46307e._0x100758,_0x102c53-_0x46307e._0x17e05e,_0x102c53-_0x46307e._0x26f375,_0x41645b);}return _0x42f4e5['join']('\x0a');}function createLoadSkillTool(_0x25f1cf){const _0x5a961a={_0x47a0ce:0x18f,_0x3621b0:0xb,_0xf43d6a:0x1ed,_0x250534:0xf0,_0x1d1ea9:0x1b7,_0x246055:0x233,_0x2e96d2:0x235,_0x58ad93:0x217,_0x2b2d69:0xe4},_0x34291e={_0x367de2:0x19b,_0x2310b0:0x211,_0x2ab453:0x1d8,_0x162928:0x2c,_0x34b72d:0x21,_0x51f5ba:0x33c,_0xfa8ac5:0x484,_0x569b29:0x3e6,_0x38417b:0x49,_0x46968e:0x8,_0x34ea80:0x48e,_0x3d7b5b:0x40b,_0x24e978:0x296,_0x140eec:0x28c,_0x3c752d:0xf6,_0x45df62:0x87,_0x399c2b:0x19d,_0x1c5f9f:0xaf,_0x9e33c6:0x263,_0x65226a:0x2da,_0xb0b90a:0x1d3,_0xde9bce:0x9c,_0x29606e:0xda,_0x35d353:0x13a,_0x525dd0:0x267,_0x27ac8b:0x230,_0x3fc48e:0x3d8,_0x13d00e:0x430,_0x524023:0x92,_0x12a4ab:0x18d,_0x465fec:0x202,_0x7fccea:0x10a,_0x229f24:0x90,_0x4587bf:0x67,_0x3cd551:0x39f,_0x128f51:0x3e5,_0x6082ad:0x2a2,_0x51f9b6:0x142,_0x3fa68c:0x5c,_0x44d675:0x344,_0x3f3722:0x3d8,_0xefd04f:0x2b4,_0x1bd1f4:0x2fa,_0x334745:0x2ed,_0x2031f9:0x30b,_0xe04ae8:0x25f,_0x8fd19c:0x51,_0x2535c3:0xbb},_0x5577fa={_0x1aa023:0x13a,_0x40a407:0x171},_0x28ebea={_0x93b04:0x1ad},_0x2a5114={_0x2cf6e6:0x1e5},_0x325b1b={_0x22b26e:0xb9,_0x2257d4:0x1cf},_0xa3ab13=new Map(_0x25f1cf[_0x24e686(-0x23,-0x98,-_0x5a961a._0x47a0ce,_0x5a961a._0x3621b0)][_0x24e686(-_0x5a961a._0xf43d6a,-_0x5a961a._0x250534,0x48,-0x220)](_0xd95bdd=>[_0xd95bdd[_0x24e686(-0x12a,-0x19d,-0x26f,-0x1a1)],_0xd95bdd]));function _0x24e686(_0x26a789,_0x332f3a,_0xe07a15,_0x5af46e){return _0x26f978(_0x26a789-_0x325b1b._0x22b26e,_0x332f3a-_0x325b1b._0x2257d4,_0x332f3a- -0x35f,_0x5af46e);}const _0x40e66b=buildDescription2(_0x25f1cf['skills']);function _0x445331(_0x1caaa0,_0x4d0050,_0x1494e0,_0x1db090){return _0x26f978(_0x1caaa0-_0x2a5114._0x2cf6e6,_0x4d0050-0x18c,_0x4d0050- -0xcd,_0x1caaa0);}return defineTool({'name':_0x445331(_0x5a961a._0x1d1ea9,_0x5a961a._0x246055,_0x5a961a._0x2e96d2,_0x5a961a._0x58ad93),'description':_0x40e66b,'inputSchema':{'type':'object','properties':{'name':{'type':_0x24e686(0xfc,-0x57,-0x147,_0x5a961a._0x2b2d69)}},'required':[_0x445331(0x8e,0xf5,0x1ae,-0x3f)]},async *'execute'(_0x33485d){function _0x40e503(_0x1eb6c2,_0x5f5965,_0x1a637f,_0x4e251a){return _0x445331(_0x5f5965,_0x1a637f-_0x28ebea._0x93b04,_0x1a637f-0x8f,_0x4e251a-0x186);}const _0x28ee24=_0xa3ab13[_0x40e503(0x1bb,_0x34291e._0x367de2,_0x34291e._0x2310b0,_0x34291e._0x2ab453)](_0x33485d[_0x358ffc(0xe7,-_0x34291e._0x162928,0x49,-_0x34291e._0x34b72d)]);function _0x358ffc(_0x1d52c2,_0x6b8d6c,_0x31baf2,_0x1decd1){return _0x24e686(_0x1d52c2-_0x5577fa._0x1aa023,_0x6b8d6c-_0x5577fa._0x40a407,_0x31baf2-0x79,_0x1d52c2);}if(!_0x28ee24){const _0x500c2b=Array[_0x40e503(_0x34291e._0x51f5ba,0x393,_0x34291e._0xfa8ac5,_0x34291e._0x569b29)](_0xa3ab13[_0x358ffc(-0x4d,_0x34291e._0x38417b,-_0x34291e._0x46968e,0x7b)]())[_0x40e503(_0x34291e._0x34ea80,_0x34291e._0x3d7b5b,0x314,0x307)](',\x20');throw new ToolExecutionError(_0x40e503(_0x34291e._0x24e978,_0x34291e._0x140eec,0x1ef,_0x34291e._0x3c752d)+_0x33485d[_0x358ffc(-_0x34291e._0x45df62,-0x2c,-_0x34291e._0x399c2b,_0x34291e._0x1c5f9f)]+_0x40e503(_0x34291e._0x9e33c6,_0x34291e._0x65226a,0x2bd,_0x34291e._0xb0b90a)+_0x500c2b,{'name':_0x33485d[_0x358ffc(_0x34291e._0xde9bce,-0x2c,-_0x34291e._0x29606e,-0x64)]});}const _0x48870b=await _0x25f1cf[_0x40e503(_0x34291e._0x35d353,_0x34291e._0x525dd0,0x29f,_0x34291e._0x27ac8b)](_0x28ee24),_0x2f95f4=_0x28ee24[_0x40e503(0x448,0x3e0,_0x34291e._0x3fc48e,_0x34291e._0x13d00e)]['directory']??_0x93cf0[_0x358ffc(_0x34291e._0x524023,_0x34291e._0x12a4ab,0x102,0x47)](_0x28ee24[_0x358ffc(_0x34291e._0x465fec,_0x34291e._0x7fccea,0x123,0xee)][_0x358ffc(0xb7,-_0x34291e._0x229f24,_0x34291e._0x4587bf,0x50)]),_0x2499f8=[_0x40e503(0x26a,0x46c,_0x34291e._0x3cd551,0x386)+_0x48870b[_0x40e503(_0x34291e._0x128f51,0x370,_0x34291e._0x6082ad,0x1d1)],'',_0x48870b[_0x358ffc(_0x34291e._0x51f9b6,0xd3,_0x34291e._0x3fa68c,0x1dd)],'','---','Loaded\x20from:\x20'+_0x28ee24[_0x40e503(0x413,_0x34291e._0x44d675,_0x34291e._0x3f3722,_0x34291e._0xefd04f)]['path'],_0x40e503(0x298,0x448,_0x34291e._0x1bd1f4,_0x34291e._0x334745)+_0x2f95f4]['join']('\x0a');return yield createToolOutput(_0x2499f8,{'id':_0x48870b['id'],'name':_0x48870b['name'],'path':_0x28ee24[_0x40e503(_0x34291e._0x2031f9,0x412,_0x34291e._0x3fc48e,_0x34291e._0xe04ae8)][_0x358ffc(0x89,-0x90,_0x34291e._0x8fd19c,-_0x34291e._0x2535c3)],'baseDirectory':_0x2f95f4}),void 0x0;}});}var TODO_STATUSES=new Set([_0x26f978(0x193,0xe8,0x1ab,0x29e),'in_progress',_0x26f978(0x3f9,0x2b2,0x2fe,0x34b)]),TODO_PRIORITIES=new Set(['high',_0x199ce4(0xe4,0x15c,0x1c2,-0x29),_0x26f978(0x15f,0x278,0x17b,0x29b)]);function isTodoStatus(_0x530293){const _0x2e6a5f={_0x2f5077:0x6a6,_0x2293a2:0x474};function _0x49d508(_0x154380,_0x5e3626,_0x5e88d5,_0x3e0d7e){return _0x26f978(_0x154380-0xd8,_0x5e3626-0x121,_0x5e3626-0x24e,_0x5e88d5);}return typeof _0x530293===_0x49d508(_0x2e6a5f._0x2f5077,0x556,0x625,_0x2e6a5f._0x2293a2)&&TODO_STATUSES['has'](_0x530293);}function isTodoPriority(_0xb164aa){const _0x57c497={_0xcc2c73:0x431,_0x11ffd4:0x40e},_0x5225b4={_0x27e82e:0xdd,_0xcb01f0:0x13d,_0x2c2c85:0x409};function _0x4f75b8(_0x53a4e0,_0x296a63,_0x13fe18,_0x46fa45){return _0x199ce4(_0x53a4e0-0x50f,_0x296a63-0x60,_0x296a63,_0x46fa45-0x126);}function _0x3ada61(_0x50e6d0,_0x60d2d,_0x3355ab,_0x5a2a10){return _0x26f978(_0x50e6d0-_0x5225b4._0x27e82e,_0x60d2d-_0x5225b4._0xcb01f0,_0x50e6d0-_0x5225b4._0x2c2c85,_0x60d2d);}return typeof _0xb164aa===_0x4f75b8(0x595,0x6ff,0x442,0x578)&&TODO_PRIORITIES[_0x4f75b8(_0x57c497._0xcc2c73,0x410,0x4c8,_0x57c497._0x11ffd4)](_0xb164aa);}var TodoStore=class{['todosBySession']=new Map();[_0x199ce4(-0xf3,-0x79,-0x1e1,0x42)](_0x40fcaf){return this['todosBySession']['get'](_0x40fcaf)??[];}[_0x26f978(0x1bc,0x420,0x314,0x2b5)](_0x525aeb,_0x348514){const _0x5baf09={_0x3c5937:0x148,_0x34cb2c:0x146,_0x2c4239:0x156,_0x454758:0x19d},_0x49fea7={_0x4eae49:0x1d6,_0x3a7682:0x164},_0x28da8f={_0x2b0cbf:0x1b4,_0x4dea2b:0x169};function _0x383ebc(_0x150e6e,_0x3d59d8,_0x2df18c,_0x37aac8){return _0x26f978(_0x150e6e-_0x28da8f._0x2b0cbf,_0x3d59d8-_0x28da8f._0x4dea2b,_0x2df18c- -0x226,_0x37aac8);}function _0x4f2be6(_0x335a3f,_0x4a01ed,_0xd70931,_0x2fe074){return _0x199ce4(_0xd70931-0x22,_0x4a01ed-_0x49fea7._0x4eae49,_0x335a3f,_0x2fe074-_0x49fea7._0x3a7682);}this[_0x4f2be6(-0xd4,_0x5baf09._0x3c5937,0x49,_0x5baf09._0x34cb2c)][_0x383ebc(0x11b,0x18,_0x5baf09._0x2c4239,_0x5baf09._0x454758)](_0x525aeb,_0x348514);}[_0x199ce4(0x5c,0x26,-0x2a,0xe1)](_0x1b76b7){const _0x54d661={_0x3f98dc:0x446,_0x19408f:0x470,_0x23db3a:0xe9,_0x5bf4b6:0x1a8,_0x596fa6:0xbc,_0x494ff8:0xf3,_0x4ca460:0x108,_0x2facc4:0x69,_0x404eba:0x2cf,_0x41200d:0xe7},_0x58512e={_0x8945a5:0x14},_0x3fcfb6={_0xb907c8:0x60,_0x502d05:0x3a,_0x1980c6:0x26a},_0x58b664=this[_0x44f416(0x4ca,_0x54d661._0x3f98dc,_0x54d661._0x19408f,0x3f9)](_0x1b76b7);function _0x44f416(_0x3837b9,_0x16b55b,_0x2e8706,_0x4740ab){return _0x26f978(_0x3837b9-_0x3fcfb6._0xb907c8,_0x16b55b-_0x3fcfb6._0x502d05,_0x4740ab-_0x3fcfb6._0x1980c6,_0x2e8706);}const _0x441660={'total':_0x58b664['length'],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x12ec9e(_0x55acde,_0x24f79f,_0x38d75b,_0x119f67){return _0x199ce4(_0x24f79f- -_0x58512e._0x8945a5,_0x24f79f-0x1e6,_0x55acde,_0x119f67-0x11e);}for(const _0x35405b of _0x58b664){if(_0x35405b[_0x12ec9e(-0x182,-0x48,-0x179,-_0x54d661._0x23db3a)]===_0x12ec9e(-_0x54d661._0x5bf4b6,-0xeb,0xb,-0x137))_0x441660['pending']+=0x1;else{if(_0x35405b[_0x12ec9e(-_0x54d661._0x596fa6,-0x48,-0x1a9,_0x54d661._0x494ff8)]===_0x12ec9e(-0x1f4,-_0x54d661._0x4ca460,-0x123,_0x54d661._0x2facc4))_0x441660[_0x44f416(0x3b4,0x4e4,_0x54d661._0x404eba,0x44a)]+=0x1;else _0x441660[_0x12ec9e(_0x54d661._0x41200d,0x68,-0xc5,0x162)]+=0x1;}}return _0x441660;}};function validateTodos(_0x53ec6a){const _0x337ba3={_0x23ef99:0x131,_0x1508d4:0x199,_0x237de6:0x20c,_0x307d57:0x191,_0x27f078:0xd3,_0x455518:0x12d,_0xd2b8a7:0x12e,_0x95fd45:0x26f,_0x5901bd:0x1d1,_0x4a2114:0x24,_0x5463cb:0x84,_0x2f4ef4:0x2f,_0x4d3cbf:0xcc,_0x599289:0x19,_0x3fa465:0x3c6,_0x56476d:0x46,_0x3b8fdb:0x5a,_0x211688:0x2fc,_0x39466b:0x269,_0x46c2cb:0x200,_0x252eaa:0x6b,_0x504900:0x16e,_0x19298f:0x67,_0x30e043:0x9f,_0x270a8d:0x59,_0x22dd63:0x1cd,_0x26c865:0xf4,_0x42a92c:0x7d,_0x165855:0xe6,_0x26335f:0xdf,_0x182c1a:0x4,_0x20e1b3:0x10d,_0xa17866:0x25,_0x254ec0:0x1d4,_0x5cec40:0x10a,_0x4639aa:0x101,_0x4425b5:0x270,_0x3a65d0:0x2d1,_0x21a996:0x1b1,_0x55b34f:0x1a4,_0x20be34:0x43,_0x24d6d5:0x2fa,_0x10230b:0x71,_0x3ec940:0x1f2,_0x31715c:0x1dc,_0x2c2414:0x1a8,_0x55c523:0xba,_0x1a19ea:0x11c,_0x34fc03:0x1b},_0x3f91ab={_0x3d4973:0x373},_0x30aaca={_0x1b376e:0x68};function _0x167abd(_0x28927c,_0x15c4bc,_0x3eb283,_0x410d95){return _0x199ce4(_0x3eb283-0x1e4,_0x15c4bc-_0x30aaca._0x1b376e,_0x410d95,_0x410d95-0x11d);}if(!Array[_0x167abd(0x1bb,0x133,0x1d4,0xf6)](_0x53ec6a[_0x167abd(0x3a,0x164,_0x337ba3._0x23ef99,0x56)])||_0x53ec6a['todos']['length']===0x0)throw new ToolExecutionError(_0x167abd(0x324,0x1d1,0x25e,_0x337ba3._0x1508d4),{'error':_0x167abd(0x1fa,0x36e,_0x337ba3._0x237de6,0x1bf)});function _0x5e390a(_0x5a157b,_0x4ba35a,_0x122fbd,_0x1fbdd1){return _0x26f978(_0x5a157b-0xfb,_0x4ba35a-0x192,_0x5a157b- -_0x3f91ab._0x3d4973,_0x4ba35a);}for(let _0xfe345=0x0;_0xfe345<_0x53ec6a[_0x167abd(_0x337ba3._0x307d57,_0x337ba3._0x27f078,0x131,0x96)][_0x5e390a(-_0x337ba3._0x455518,0x37,-_0x337ba3._0xd2b8a7,-_0x337ba3._0x95fd45)];_0xfe345+=0x1){const _0x8160a4=_0x53ec6a['todos'][_0xfe345];if(!_0x8160a4||typeof _0x8160a4!=='object')throw new ToolExecutionError(_0x167abd(0x1a1,0x88,0x101,-0x18)+(_0xfe345+0x1)+_0x167abd(_0x337ba3._0x5901bd,_0x337ba3._0x4a2114,0xbf,_0x337ba3._0x5463cb),{'error':_0x167abd(_0x337ba3._0x2f4ef4,0x224,_0x337ba3._0x4d3cbf,-_0x337ba3._0x599289)});if(typeof _0x8160a4['id']!==_0x167abd(_0x337ba3._0x3fa465,0x24a,0x26a,0x248)||_0x8160a4['id'][_0x167abd(_0x337ba3._0x56476d,-0x9,0x75,-_0x337ba3._0x3b8fdb)]()[_0x167abd(0x127,0x31a,0x1a8,0x2f9)]===0x0)throw new ToolExecutionError(_0x5e390a(-0x1d4,-_0x337ba3._0x211688,-0x9c,-0xba)+(_0xfe345+0x1)+':\x20id\x20required',{'error':'invalid_todo_id'});if(typeof _0x8160a4[_0x167abd(0x123,_0x337ba3._0x39466b,0x20e,_0x337ba3._0x46c2cb)]!==_0x5e390a(-_0x337ba3._0x252eaa,-_0x337ba3._0x504900,-_0x337ba3._0x19298f,-_0x337ba3._0x30e043)||_0x8160a4['content'][_0x167abd(-_0x337ba3._0x270a8d,_0x337ba3._0x22dd63,0x75,-0x6)]()['length']===0x0)throw new ToolExecutionError('Todo\x20'+(_0xfe345+0x1)+_0x5e390a(-0x39,-_0x337ba3._0x26c865,-0x18f,0x5c),{'error':_0x5e390a(-_0x337ba3._0x42a92c,-0x139,0x4e,_0x337ba3._0x165855)});if(!isTodoStatus(_0x8160a4[_0x5e390a(-0x125,-_0x337ba3._0x26335f,_0x337ba3._0x182c1a,-_0x337ba3._0x20e1b3)]))throw new ToolExecutionError('Todo\x20'+(_0xfe345+0x1)+_0x5e390a(0x85,0x191,-0xa1,0xdd),{'error':_0x167abd(0x22b,0x335,0x321,0x359)});if(!isTodoPriority(_0x8160a4[_0x167abd(-0x91,-_0x337ba3._0xa17866,0xe0,0x113)]))throw new ToolExecutionError(_0x5e390a(-_0x337ba3._0x254ec0,-_0x337ba3._0x5cec40,-0xee,-_0x337ba3._0x4639aa)+(_0xfe345+0x1)+_0x5e390a(-0x15d,-0x24a,-0xda,-_0x337ba3._0x4425b5),{'error':_0x167abd(0x26e,_0x337ba3._0x3a65d0,_0x337ba3._0x21a996,0x281)});}const _0x5738fa=_0x53ec6a[_0x5e390a(-_0x337ba3._0x55b34f,-_0x337ba3._0x20be34,-0x236,-_0x337ba3._0x24d6d5)]['map'](_0x3dd282=>_0x3dd282['id']);if(new Set(_0x5738fa)[_0x167abd(0x25b,_0x337ba3._0x10230b,0x127,_0x337ba3._0x3ec940)]!==_0x5738fa[_0x167abd(_0x337ba3._0x31715c,0x4f,_0x337ba3._0x2c2414,_0x337ba3._0x55c523)])throw new ToolExecutionError(_0x5e390a(0x79,0x3d,0x45,0xb8),{'error':_0x5e390a(-0x2a,_0x337ba3._0x1a19ea,-_0x337ba3._0x34fc03,-_0x337ba3._0x27f078)});}function createStatsProgress(_0x41d55b){const _0x3d04ce={_0x341d4e:0x1c3,_0x7dca3b:0x2ad,_0xcfae04:0x50b,_0x8dbd52:0x52e,_0x423018:0x4ac,_0x3c982:0x311,_0x81cb7f:0x403},_0x2051c5={_0x3022a0:0x10c,_0x52fdbd:0x0};function _0x22fae2(_0x40a358,_0x1d91e2,_0x4f9df0,_0xfd28e2){return _0x199ce4(_0xfd28e2-0x3dc,_0x1d91e2-_0x2051c5._0x3022a0,_0x40a358,_0xfd28e2-_0x2051c5._0x52fdbd);}function _0x4f4a82(_0x1b8577,_0x49fada,_0x5b436f,_0x3baf44){return _0x199ce4(_0x3baf44-0x532,_0x49fada-0x15e,_0x49fada,_0x3baf44-0xd2);}return _0x41d55b[_0x22fae2(_0x3d04ce._0x341d4e,0x305,0x1e9,_0x3d04ce._0x7dca3b)]>0x0?Math[_0x4f4a82(_0x3d04ce._0xcfae04,0x4be,_0x3d04ce._0x8dbd52,_0x3d04ce._0x423018)](_0x41d55b['completed']/_0x41d55b[_0x4f4a82(0x4fe,_0x3d04ce._0x3c982,0x48a,_0x3d04ce._0x81cb7f)]*0x64)+'%':'0%';}function createReminderItems(_0x54a8f3){const _0x55baae={_0x35aa6b:0x117,_0x164040:0x39},_0x39410e={_0x171548:0x12d,_0x2063e3:0x329},_0x24bdbc={_0x2cd40c:0x5};function _0x2d5e84(_0x5279ed,_0x2c50af,_0x453792,_0x22042d){return _0x26f978(_0x5279ed-_0x24bdbc._0x2cd40c,_0x2c50af-0xae,_0x22042d-0x29a,_0x5279ed);}function _0x39ecc0(_0x15c4ac,_0x176b76,_0x3e7c45,_0x578547){return _0x26f978(_0x15c4ac-0x1ea,_0x176b76-_0x39410e._0x171548,_0x3e7c45- -_0x39410e._0x2063e3,_0x578547);}return _0x54a8f3[_0x39ecc0(-_0x55baae._0x35aa6b,-0x1aa,-0xba,_0x55baae._0x164040)](_0x8d2b50=>({'content':_0x8d2b50['content'],'status':_0x8d2b50[_0x39ecc0(-0x32,-0x61,-0xdb,-0x256)],'id':_0x8d2b50['id']}));}function createStructuredResult(_0x370028,_0x3d1316,_0x26f84c,_0x4904c6){const _0x4e0613={_0x2d64a5:0x197,_0x255997:0x10e},_0xc2fd77={_0x421151:0xec},_0x68ba1d={_0xca7fe3:0x62f};function _0x4dd74b(_0x3c5723,_0x1c16ea,_0xea01ba,_0x302b31){return _0x199ce4(_0x1c16ea-_0x68ba1d._0xca7fe3,_0x1c16ea-0x144,_0xea01ba,_0x302b31-0x68);}function _0x5c59af(_0x3eb799,_0x1de091,_0x1e5c4a,_0x125a5d){return _0x199ce4(_0x1de091-0x63,_0x1de091-_0xc2fd77._0x421151,_0x125a5d,_0x125a5d-0x7e);}return{'allCompleted':_0x4904c6,'items':_0x3d1316[_0x5c59af(_0x4e0613._0x2d64a5,0x50,-_0x4e0613._0x255997,-0x36)](_0x2b80c5=>({'id':_0x2b80c5['id'],'content':_0x2b80c5[_0x5c59af(-0x3c,0x8d,0x101,0xef)],'status':_0x2b80c5[_0x4dd74b(0x5bc,0x5fb,0x4f0,0x4c0)],'priority':_0x2b80c5[_0x5c59af(-0x58,-0xa1,-0x1f8,-0x1dc)],'createdAt':_0x2b80c5['createdAt']})),'progress':createStatsProgress(_0x26f84c),'recentChanges':!![],'sessionId':_0x370028,'stats':_0x26f84c,'todosWritten':_0x3d1316['length']};}function createOutputText(_0xbbf1f6,_0x54b6da){const _0x3718a9={_0x5a1ad6:0x3ba,_0x101036:0x310,_0x26f031:0x100,_0x3bcb39:0x13f,_0x3e2afd:0x1dc,_0x569f9a:0x121,_0x43ab7f:0x159,_0x1262b5:0x2ad,_0x4ca8a8:0x19a,_0x3b6396:0x1f4,_0x18a63a:0x2e8},_0xd5bb89={_0x42cd1b:0x1a3,_0x5083c9:0xdb},_0x2884e8={_0x513fdb:0x21c,_0x5760af:0x54,_0x1b1710:0xbd},_0x314d90=JSON[_0x2bdcdc(_0x3718a9._0x5a1ad6,0x38c,0x32a,_0x3718a9._0x101036)](createReminderItems(_0xbbf1f6));function _0x2bdcdc(_0x435409,_0x128adc,_0x5cecb8,_0x247cdf){return _0x199ce4(_0x128adc-_0x2884e8._0x513fdb,_0x128adc-_0x2884e8._0x5760af,_0x435409,_0x247cdf-_0x2884e8._0x1b1710);}function _0x3a3ce9(_0x5f2d72,_0x3865a1,_0x3650f7,_0x2b13c8){return _0x26f978(_0x5f2d72-_0xd5bb89._0x42cd1b,_0x3865a1-0x188,_0x3865a1- -_0xd5bb89._0x5083c9,_0x2b13c8);}if(_0x54b6da)return'All\x20'+_0xbbf1f6[_0x2bdcdc(0x2a4,0x1e0,_0x3718a9._0x26f031,_0x3718a9._0x3bcb39)]+_0x3a3ce9(0x313,_0x3718a9._0x3e2afd,_0x3718a9._0x569f9a,_0x3718a9._0x43ab7f)+_0x314d90+_0x2bdcdc(0x2e9,0x1e3,_0x3718a9._0x1262b5,_0x3718a9._0x4ca8a8);return _0x2bdcdc(0x160,0x1a5,0x25f,_0x3718a9._0x3b6396)+_0x314d90+_0x3a3ce9(_0x3718a9._0x18a63a,0x16e,0x2c7,0x1eb);}function createTodoWriteTool(_0x5bee1a=new TodoStore()){const _0x16c25c={_0x4862fb:0x476,_0x5b6198:0x3b3,_0x24498b:0x4da,_0x3e6a7a:0x471,_0x156e3e:0x43e,_0x39da2a:0x4c5,_0x43a41e:0x5b7,_0x51db22:0x38e,_0x39a284:0x55f,_0x29bdab:0x63a,_0x5e4920:0x4b5,_0x317364:0x4da,_0x469bf5:0x621,_0x1090d3:0x49e,_0x488dac:0x60c,_0x566027:0x567,_0x1e5501:0x32e,_0x4e90b7:0x2cf},_0x3a60f0={_0x1fac17:0x7d7,_0x18671c:0x741,_0x546a43:0x713,_0x2e72c8:0x554,_0x5b4e2a:0x73e,_0x2461fd:0x473,_0x50e3d9:0x6fc,_0x2c3a00:0x42d,_0x5326a4:0x53c,_0x195397:0x501,_0x343b86:0x70d},_0x71d528={_0x18db17:0xf6},_0x912f0e={_0x3727bd:0xfd},_0x26c269={_0x38a6aa:0x168,_0x3ed2d2:0x156};function _0x587e6a(_0x5596e0,_0x34c75f,_0x2ac1d0,_0x3ad038){return _0x26f978(_0x5596e0-_0x26c269._0x38a6aa,_0x34c75f-_0x26c269._0x3ed2d2,_0x34c75f-0x1bd,_0x5596e0);}function _0x5a4c84(_0x9fa216,_0x42d511,_0x47e021,_0x50ef0e){return _0x26f978(_0x9fa216-_0x912f0e._0x3727bd,_0x42d511-0x15,_0x50ef0e-0x319,_0x9fa216);}return defineTool({'name':'TodoWrite','description':'Use\x20this\x20tool\x20to\x20create\x20and\x20manage\x20a\x20structured\x20task\x20list\x20for\x20your\x20current\x20coding\x20session.\x20This\x20helps\x20you\x20track\x20progress,\x20organize\x20complex\x20tasks,\x20and\x20demonstrate\x20thoroughness\x20to\x20the\x20user.\x0aIt\x20also\x20helps\x20the\x20user\x20understand\x20the\x20progress\x20of\x20the\x20task\x20and\x20overall\x20progress\x20of\x20their\x20requests.\x0a\x0a##\x20When\x20to\x20Use\x20This\x20Tool\x0aUse\x20this\x20tool\x20proactively\x20in\x20these\x20scenarios:\x0a\x0a1.\x20Complex\x20multi-step\x20tasks\x20-\x20When\x20a\x20task\x20requires\x203\x20or\x20more\x20distinct\x20steps\x20or\x20actions\x0a2.\x20Non-trivial\x20and\x20complex\x20tasks\x20-\x20Tasks\x20that\x20require\x20careful\x20planning\x20or\x20multiple\x20operations\x0a3.\x20User\x20explicitly\x20requests\x20todo\x20list\x20-\x20When\x20the\x20user\x20directly\x20asks\x20you\x20to\x20use\x20the\x20todo\x20list\x0a4.\x20User\x20provides\x20multiple\x20tasks\x20-\x20When\x20users\x20provide\x20a\x20list\x20of\x20things\x20to\x20be\x20done\x20(numbered\x20or\x20comma-separated)\x0a5.\x20After\x20receiving\x20new\x20instructions\x20-\x20Immediately\x20capture\x20user\x20requirements\x20as\x20todos\x0a6.\x20When\x20you\x20start\x20working\x20on\x20a\x20task\x20-\x20Mark\x20it\x20as\x20in_progress\x20BEFORE\x20beginning\x20work.\x20Ideally\x20you\x20should\x20only\x20have\x20one\x20todo\x20as\x20in_progress\x20at\x20a\x20time\x0a7.\x20After\x20completing\x20a\x20task\x20-\x20Mark\x20it\x20as\x20completed\x20and\x20add\x20any\x20new\x20follow-up\x20tasks\x20discovered\x20during\x20implementation\x0a\x0a##\x20When\x20NOT\x20to\x20Use\x20This\x20Tool\x0a\x0aSkip\x20using\x20this\x20tool\x20when:\x0a1.\x20There\x20is\x20only\x20a\x20single,\x20straightforward\x20task\x0a2.\x20The\x20task\x20is\x20trivial\x20and\x20tracking\x20it\x20provides\x20no\x20organizational\x20benefit\x0a3.\x20The\x20task\x20can\x20be\x20completed\x20in\x20less\x20than\x203\x20trivial\x20steps\x0a4.\x20The\x20task\x20is\x20purely\x20conversational\x20or\x20informational\x0a\x0aNOTE\x20that\x20you\x20should\x20not\x20use\x20this\x20tool\x20if\x20there\x20is\x20only\x20one\x20trivial\x20task\x20to\x20do.\x20In\x20this\x20case\x20you\x20are\x20better\x20off\x20just\x20doing\x20the\x20task\x20directly.\x0a\x0a##\x20Task\x20States\x20and\x20Management\x0a\x0a1.\x20**Task\x20States**:\x20Use\x20these\x20states\x20to\x20track\x20progress:\x0a-\x20pending:\x20Task\x20not\x20yet\x20started\x0a-\x20in_progress:\x20Currently\x20working\x20on\x20(limit\x20to\x20ONE\x20task\x20at\x20a\x20time)\x0a-\x20completed:\x20Task\x20finished\x20successfully\x0a\x0a2.\x20**Task\x20Management**:\x0a-\x20Update\x20task\x20status\x20in\x20real-time\x20as\x20you\x20work\x0a-\x20Mark\x20tasks\x20complete\x20IMMEDIATELY\x20after\x20finishing\x20(don\x27t\x20batch\x20completions)\x0a-\x20Only\x20have\x20ONE\x20task\x20in_progress\x20at\x20any\x20time\x0a-\x20Complete\x20current\x20tasks\x20before\x20starting\x20new\x20ones\x0a-\x20Remove\x20tasks\x20that\x20are\x20no\x20longer\x20relevant\x20from\x20the\x20list\x20entirely\x0a\x0a3.\x20**Task\x20Completion\x20Requirements**:\x0a-\x20ONLY\x20mark\x20a\x20task\x20as\x20completed\x20when\x20you\x20have\x20FULLY\x20accomplished\x20it\x0a-\x20If\x20you\x20encounter\x20errors,\x20blockers,\x20or\x20cannot\x20finish,\x20keep\x20the\x20task\x20as\x20in_progress\x0a-\x20When\x20blocked,\x20create\x20a\x20new\x20task\x20describing\x20what\x20needs\x20to\x20be\x20resolved\x0a-\x20Never\x20mark\x20a\x20task\x20as\x20completed\x20if:\x0a-\x20Tests\x20are\x20failing\x0a-\x20Implementation\x20is\x20partial\x0a-\x20You\x20encountered\x20unresolved\x20errors\x0a-\x20You\x20couldn\x27t\x20find\x20necessary\x20files\x20or\x20dependencies\x0a\x0a4.\x20**Task\x20Breakdown**:\x0a-\x20Create\x20specific,\x20actionable\x20items\x0a-\x20Break\x20complex\x20tasks\x20into\x20smaller,\x20manageable\x20steps\x0a-\x20Use\x20clear,\x20descriptive\x20task\x20names\x0a\x0aWhen\x20in\x20doubt,\x20use\x20this\x20tool.\x20Being\x20proactive\x20with\x20task\x20management\x20demonstrates\x20attentiveness\x20and\x20ensures\x20you\x20complete\x20all\x20requirements\x20successfully.','inputSchema':{'type':'object','properties':{'todos':{'type':_0x587e6a(_0x16c25c._0x4862fb,_0x16c25c._0x5b6198,_0x16c25c._0x24498b,_0x16c25c._0x3e6a7a),'items':{'type':'object','properties':{'content':{'type':'string'},'status':{'type':_0x587e6a(_0x16c25c._0x156e3e,_0x16c25c._0x39da2a,_0x16c25c._0x43a41e,_0x16c25c._0x51db22)},'priority':{'type':_0x587e6a(_0x16c25c._0x39a284,_0x16c25c._0x39da2a,0x533,0x56d)},'id':{'type':_0x5a4c84(0x51b,_0x16c25c._0x29bdab,_0x16c25c._0x5e4920,0x621)},'createdAt':{'type':_0x5a4c84(0x5f9,0x4ec,_0x16c25c._0x317364,_0x16c25c._0x469bf5)}},'required':['content',_0x5a4c84(_0x16c25c._0x1090d3,0x528,_0x16c25c._0x488dac,_0x16c25c._0x566027),'priority','id']}}},'required':[_0x587e6a(_0x16c25c._0x1e5501,0x38c,0x3df,_0x16c25c._0x4e90b7)]},async *'execute'(_0x10c2f8,_0x31fe78){const _0x19336d={_0x57f84f:0x1d9,_0x2e2357:0x133},_0x1cf5a3=_0x10c2f8;validateTodos(_0x1cf5a3);const _0x2883e6=_0x31fe78[_0x1ea88c(_0x3a60f0._0x1fac17,_0x3a60f0._0x18671c,_0x3a60f0._0x546a43,0x68f)]||_0x1acfe9(0x63d,_0x3a60f0._0x2e72c8,0x76b,_0x3a60f0._0x5b4e2a);function _0x1ea88c(_0xf2180b,_0x77ae57,_0x631c0c,_0x5e9692){return _0x587e6a(_0xf2180b,_0x77ae57-0x1b0,_0x631c0c-0x167,_0x5e9692-_0x71d528._0x18db17);}const _0xd9c6eb=new Date()[_0x1acfe9(0x587,_0x3a60f0._0x2461fd,0x6ad,_0x3a60f0._0x50e3d9)]();function _0x1acfe9(_0x29ef00,_0x31992a,_0x135f4b,_0x266f54){return _0x587e6a(_0x31992a,_0x29ef00-_0x19336d._0x57f84f,_0x135f4b-_0x19336d._0x2e2357,_0x266f54-0xb0);}const _0x358e31=_0x1cf5a3[_0x1ea88c(_0x3a60f0._0x2c3a00,_0x3a60f0._0x5326a4,0x55a,0x4d8)]['map'](_0x3aaecd=>({'id':_0x3aaecd['id'],'content':_0x3aaecd[_0x1ea88c(0x5d7,0x619,0x685,0x58a)],'status':_0x3aaecd['status'],'priority':_0x3aaecd[_0x1acfe9(0x514,0x473,0x47a,0x3a4)],'sessionId':_0x2883e6,'createdAt':_0x3aaecd[_0x1acfe9(0x613,0x720,0x55d,0x649)]||_0xd9c6eb,'updatedAt':_0xd9c6eb}));_0x5bee1a['setTodos'](_0x2883e6,_0x358e31);const _0x289cfb=_0x5bee1a['getStats'](_0x2883e6),_0x5d6a96=_0x358e31[_0x1acfe9(0x5dc,0x543,_0x3a60f0._0x195397,_0x3a60f0._0x343b86)]>0x0&&_0x358e31['every'](_0x3eb048=>_0x3eb048[_0x1acfe9(0x5e4,0x60f,0x5f0,0x6b8)]===_0x1ea88c(0x6a4,0x66b,0x612,0x6b5));return createToolOutput(createOutputText(_0x358e31,_0x5d6a96),createStructuredResult(_0x2883e6,_0x358e31,_0x289cfb,_0x5d6a96));}});}import{mkdir as _0x2343f5,writeFile as _0x730040}from'fs/promises';import*as _0xb6592f from'path';function sanitizeFileName(_0x2b5437){const _0x12c234={_0x5d26d2:0x22f,_0x4e9794:0x18c},_0x222422={_0x3dd83c:0x214,_0x31ef21:0x1f4};function _0x123d51(_0x5e5ea1,_0x44f9fc,_0x1d966e,_0x3f2a3e){return _0x199ce4(_0x5e5ea1-_0x222422._0x3dd83c,_0x44f9fc-_0x222422._0x31ef21,_0x3f2a3e,_0x3f2a3e-0x38);}return _0x2b5437[_0x123d51(_0x12c234._0x5d26d2,0x1dd,_0x12c234._0x4e9794,0x148)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x1cce83,_0x224823){const _0x53c36b={_0xcaaa70:0x8,_0x332d04:0x3e,_0x248aee:0x43,_0x269d70:0x23,_0x36dca0:0x4a,_0x94e429:0x29,_0x5e01a7:0xdf,_0xed587:0x18,_0x28fc20:0x8c,_0xea6897:0x6b,_0x52e95b:0x59,_0x1797e9:0x164,_0x318bb2:0xb5,_0xf52a92:0x43,_0x41fd1d:0x71,_0x513bd6:0x84,_0x1e79bc:0xfd,_0x40816f:0x53,_0x5938be:0xee,_0x1dd4d6:0x62,_0x5e3efd:0x94,_0x51026c:0xbd,_0x4e54e4:0x88,_0x5cc929:0xb3,_0x5da9b5:0x3d,_0x51c892:0x13c,_0x108445:0x1a6,_0x3f1b5d:0xd5,_0x5557ca:0x1c1,_0x53498c:0x6d,_0x436c43:0xae,_0x18c4e4:0x5f,_0x1c7814:0x7b,_0x574ff0:0x10d,_0x1fa84b:0x7e,_0x301892:0x1c,_0x2aff84:0xbe,_0x684993:0x98,_0x4455e0:0x43,_0x217d5c:0x54,_0x59202c:0x19,_0x4e7455:0x192,_0x21c79a:0x15d,_0x152b36:0xca,_0x2bd4a6:0x76,_0x447b8b:0x14,_0x327158:0x70,_0x2e8ac3:0xc9,_0x535f4d:0x57,_0x4802fd:0xf3,_0x4627f6:0x5f,_0x3beb21:0x1df,_0x2e7675:0x185,_0x40ca64:0x5c,_0x4ca110:0x53,_0x27c64c:0x13f,_0x3d4863:0x1b4},_0x35560c={_0x1ee262:0x149,_0x5d5e59:0x29b},_0x52db77={_0x275d32:0x44},{maxBytes:_0x2dbbec,sessionDir:_0x5a5187}=_0x224823;if(!_0x1cce83[_0x1e6819(_0x53c36b._0xcaaa70,0x101,0x7b,-_0x53c36b._0x332d04)]||Buffer[_0x1e6819(0xb,-_0x53c36b._0x248aee,_0x53c36b._0x269d70,0x121)](_0x1cce83[_0x491a80(-_0x53c36b._0x36dca0,0x40,0x50,-0xc0)],_0x1e6819(-0x17,-0x5b,_0x53c36b._0x94e429,0x13e))<=_0x2dbbec)return _0x1cce83;function _0x491a80(_0x26e08f,_0x21638f,_0x40cbc7,_0x1a2c8b){return _0x199ce4(_0x21638f- -0x54,_0x21638f-0x71,_0x26e08f,_0x1a2c8b-_0x52db77._0x275d32);}const _0x4ac7c3=Buffer[_0x491a80(-_0x53c36b._0x5e01a7,-_0x53c36b._0xed587,0xdd,_0x53c36b._0x28fc20)](_0x1cce83[_0x1e6819(-_0x53c36b._0xea6897,-_0x53c36b._0x52e95b,0x7b,0x198)],_0x1e6819(_0x53c36b._0x1797e9,-0x95,0x29,-_0x53c36b._0x318bb2));if(!_0x5a5187){const _0x114289=_0x1cce83['output'][_0x491a80(-0x17d,-_0x53c36b._0xf52a92,-0x6a,-_0x53c36b._0x41fd1d)](0x0,_0x2dbbec);return{..._0x1cce83,'output':_0x114289+('\x0a\x0a<system-reminder>\x0aTool\x20output\x20was\x20truncated\x20at\x20'+_0x2dbbec+_0x1e6819(-0x89,0xf1,-0x3e,-_0x53c36b._0x513bd6)+_0x4ac7c3+'\x20bytes).\x20No\x20session\x20directory\x20available\x20for\x20file\x20offload.\x0a</system-reminder>'),'meta':{..._0x1cce83[_0x491a80(-_0x53c36b._0x1e79bc,-_0x53c36b._0x40816f,-_0x53c36b._0x5938be,_0x53c36b._0x1dd4d6)],'truncated':!![],'originalBytes':_0x4ac7c3,'transforms':[..._0x1cce83[_0x1e6819(0x142,_0x53c36b._0x5e3efd,-0x18,_0x53c36b._0x51026c)][_0x1e6819(-_0x53c36b._0x4e54e4,_0x53c36b._0x5cc929,-0x6c,-_0x53c36b._0x5da9b5)],_0x1e6819(-0x22f,-0x203,-_0x53c36b._0x51c892,-0x279)]}};}const _0x2d232b=_0x1cce83['toolName']+'_'+sanitizeFileName(_0x1cce83[_0x491a80(-0xf,0x76,_0x53c36b._0x108445,0xd5)])+_0x491a80(0x1a,0x69,-_0x53c36b._0x3f1b5d,_0x53c36b._0x5557ca),_0x3dfbbf=_0xb6592f[_0x1e6819(-_0x53c36b._0x53498c,_0x53c36b._0x436c43,-0x67,-_0x53c36b._0x18c4e4)](_0x5a5187,_0x2d232b);await _0x2343f5(_0x5a5187,{'recursive':!![]}),await _0x730040(_0x3dfbbf,_0x1cce83[_0x1e6819(-0x48,0x4f,_0x53c36b._0x1c7814,0x31)],_0x491a80(0xff,-0x12,-_0x53c36b._0x574ff0,-_0x53c36b._0x1fa84b));let _0x5110c3=_0x1cce83[_0x491a80(-0xbd,0x40,-_0x53c36b._0x301892,0x18d)][_0x1e6819(-0x35,0x5f,-_0x53c36b._0xcaaa70,_0x53c36b._0x2aff84)](0x0,_0x2dbbec);function _0x1e6819(_0x9b5db5,_0x2512c9,_0x28f216,_0x53c06e){return _0x26f978(_0x9b5db5-_0x35560c._0x1ee262,_0x2512c9-0x140,_0x28f216- -_0x35560c._0x5d5e59,_0x53c06e);}const _0x33eda8=_0x5110c3['lastIndexOf']('\x0a');_0x33eda8>_0x2dbbec*0.5&&(_0x5110c3=_0x5110c3[_0x491a80(_0x53c36b._0x684993,-_0x53c36b._0x4455e0,0x76,0x135)](0x0,_0x33eda8));const _0xb84a24=['',_0x491a80(-0x4e,0x3a,_0x53c36b._0x217d5c,_0x53c36b._0x59202c),_0x491a80(-_0x53c36b._0x5938be,-0x19,-_0x53c36b._0x4e7455,_0x53c36b._0x21c79a)+_0x2dbbec+_0x1e6819(0x124,0xc0,_0x53c36b._0x152b36,-0x79)+_0x4ac7c3+_0x1e6819(-_0x53c36b._0x5557ca,-_0x53c36b._0x2bd4a6,-0xc0,-0x12d),_0x491a80(-_0x53c36b._0x447b8b,0xa7,_0x53c36b._0x327158,_0x53c36b._0x2e8ac3)+_0x3dfbbf,_0x1e6819(-_0x53c36b._0x535f4d,0x1ce,_0x53c36b._0x4802fd,-_0x53c36b._0x4627f6),_0x1e6819(-_0x53c36b._0x3beb21,-0xd3,-_0x53c36b._0x2e7675,-0x300)][_0x1e6819(-_0x53c36b._0x40ca64,0x99,-0x67,-0x54)]('\x0a');return{..._0x1cce83,'output':_0x5110c3+_0xb84a24,'meta':{..._0x1cce83[_0x491a80(0xe7,-_0x53c36b._0x4ca110,-_0x53c36b._0x27c64c,0xbd)],'truncated':!![],'originalBytes':_0x4ac7c3,'transforms':[..._0x1cce83[_0x1e6819(0x6c,-0x8e,-0x18,0x68)]['transforms'],_0x1e6819(-0x111,-0x48,-0x13c,-_0x53c36b._0x3d4863)]}};}function createUpdateTopicTool(){const _0x131863={_0x4cf925:0x72,_0x590278:0x29a,_0x5c4baa:0x311,_0x4a501d:0x2a9,_0x38c6d1:0x293,_0x35932b:0x34d,_0x37a8f1:0x18a,_0x4844aa:0x170},_0x32a7bb={_0x133360:0x631,_0x2b623e:0x4ee,_0x4e34a7:0x50b,_0x4effa4:0x680,_0x389e88:0x43c,_0x276ff0:0x4f0,_0x4f244d:0x56f,_0x378876:0x41c,_0x2bb048:0x522,_0x1ea16c:0x5a5,_0x1dbb26:0x46f,_0x4844cf:0x5d9,_0x1ecf37:0x43c,_0x4c90b6:0x2d8,_0x32771f:0x546,_0x1d7638:0x79f,_0x15ec60:0x48b,_0x3beeab:0x5fb,_0x18366b:0x360},_0xdd42ba={_0x3b7b03:0x1a1,_0x33a356:0xe1},_0xcd4848={_0x316f63:0xa4,_0x1f76e8:0x2d6};function _0x2d2e72(_0x5ba692,_0x1aecd0,_0x55ac00,_0x229876){return _0x26f978(_0x5ba692-0x4f,_0x1aecd0-_0xcd4848._0x316f63,_0x229876- -_0xcd4848._0x1f76e8,_0x1aecd0);}function _0x1a1081(_0x1824b1,_0x54db43,_0x1f0587,_0x58c5dc){return _0x199ce4(_0x1f0587-0x1e1,_0x54db43-_0xdd42ba._0x3b7b03,_0x54db43,_0x58c5dc-_0xdd42ba._0x33a356);}return defineTool({'name':_0x2d2e72(-_0x131863._0x4cf925,-_0x131863._0x590278,-_0x131863._0x5c4baa,-0x199),'description':_0x1a1081(0x39e,0x21f,_0x131863._0x4a501d,_0x131863._0x38c6d1),'inputSchema':{'type':_0x1a1081(0x425,0x361,_0x131863._0x35932b,0x344),'properties':{'topic':{'type':'string'}},'required':[_0x1a1081(_0x131863._0x37a8f1,0x25,_0x131863._0x4844aa,0x17b)]},async *'execute'(_0x662664,_0x93ed7e){const _0xe12365={_0x30453e:0x157,_0x239e74:0x103},{topic:_0x107c59}=_0x662664;if(typeof _0x107c59!==_0x1737a3(_0x32a7bb._0x133360,_0x32a7bb._0x2b623e,_0x32a7bb._0x4e34a7,_0x32a7bb._0x4effa4)||_0x107c59[_0x1737a3(_0x32a7bb._0x389e88,0x2dc,0x329,_0x32a7bb._0x276ff0)]()[_0x1737a3(_0x32a7bb._0x4f244d,0x538,_0x32a7bb._0x378876,0x588)]===0x0)throw new ToolExecutionError(_0x1737a3(0x562,0x699,0x69d,_0x32a7bb._0x2bb048),{'error':_0x3813d6(_0x32a7bb._0x1ea16c,_0x32a7bb._0x1dbb26,0x676,_0x32a7bb._0x4844cf)});function _0x3813d6(_0x18875f,_0x37b5f5,_0x1c53c7,_0x346239){return _0x1a1081(_0x18875f-0x10c,_0x37b5f5,_0x346239-0x473,_0x346239-0x1c);}const _0x510ef0=_0x107c59[_0x1737a3(_0x32a7bb._0x1ecf37,0x3c6,_0x32a7bb._0x4c90b6,_0x32a7bb._0x32771f)]();_0x93ed7e[_0x3813d6(0x76d,0x854,0x8ca,_0x32a7bb._0x1d7638)]?.(_0x510ef0);function _0x1737a3(_0x4a3922,_0x81015c,_0xc5e01,_0x2afff6){return _0x2d2e72(_0x4a3922-_0xe12365._0x30453e,_0xc5e01,_0xc5e01-_0xe12365._0x239e74,_0x4a3922-0x5ff);}return yield createToolOutput(_0x1737a3(_0x32a7bb._0x15ec60,_0x32a7bb._0x3beeab,_0x32a7bb._0x18366b,0x483)+_0x510ef0+'\x22',{'topic':_0x510ef0}),void 0x0;}});}import{readFile as _0x254351,stat as _0x194a3a}from'fs/promises';import*as _0x1a0ece from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set(['auto',_0x199ce4(0x1d,0xb5,0x12d,-0x71),_0x26f978(0xae,0x2ea,0x17b,0x1da),_0x199ce4(0x19,0x119,-0x150,-0x103)]);function _0x199ce4(_0x3e6622,_0x4d93dc,_0x32d67f,_0x390b29){const _0x3e6fdc={_0x2e439e:0x2df};return _0x16af(_0x3e6622- -_0x3e6fdc._0x2e439e,_0x32d67f);}var PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x114823,_0x2ea307){const _0xf79eea={_0x2c8c69:0xc5,_0x5bfc4d:0x58,_0x4151c8:0x285,_0x21515c:0x12d,_0x15188b:0xb8,_0x199f2d:0x7e,_0x302246:0x62,_0x5132c6:0x105,_0x339830:0x7f,_0xa695cc:0xe4,_0x4b2cc1:0x64,_0x1d698e:0xa2,_0x1d688e:0x612,_0x48dac7:0x5bd,_0x599d04:0x60c,_0x33cfd4:0x55b,_0xf25105:0x5dd,_0x3b91ec:0x193,_0xb2b7ff:0x7e,_0x41741b:0xc7,_0x133031:0x562,_0x5d47b2:0x4b2,_0x446de7:0x457,_0x1378b8:0x41,_0x2a2a5c:0x74,_0xbc7945:0x110,_0x43141a:0x389,_0x7c831e:0x446,_0x3bb2b5:0x271,_0x1bb873:0x51f,_0x58b6aa:0x454,_0x1306ec:0x250,_0x1ed108:0x34e,_0x403ae4:0x2e3,_0x558947:0x49c,_0x1a5ef7:0x158,_0x4c37bc:0x1e,_0x5739f8:0x2b7,_0x208c67:0x38b,_0x1cc1b5:0x128,_0x42db9a:0x7b,_0x2b3753:0x12c,_0xa1c05a:0x1e,_0x4c9b79:0x9f,_0x4a0fda:0x1a3,_0x14707d:0x2d},_0x3e0145={_0xf6c492:0x1bc,_0x4a1b53:0x16e},_0x511027={_0x15a735:0x97,_0x289cf5:0x112};if(_0x114823[_0x26695d(0xa2,0x1b5,0x10c,_0xf79eea._0x2c8c69)](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x26695d(-0xee,-_0xf79eea._0x5bfc4d,0xa4,-0x1b);if(_0x114823[0x0]===0xff&&_0x114823[0x1]===0xd8&&_0x114823[0x2]===0xff)return _0x26695d(_0xf79eea._0x4151c8,_0xf79eea._0x21515c,0x83,0x19);const _0x15e94d=_0x114823['subarray'](0x0,0x6)[_0x26695d(_0xf79eea._0x15188b,_0xf79eea._0x199f2d,0xe7,_0xf79eea._0x302246)](_0x26695d(0x117,0x10c,_0xf79eea._0x5132c6,_0xf79eea._0x339830));if(_0x15e94d==='GIF87a'||_0x15e94d===_0x26695d(_0xf79eea._0xa695cc,-0x28,-0xc,_0xf79eea._0x4b2cc1))return _0x26695d(_0xf79eea._0x1d698e,-0x9f,-0xc9,-0x96);if(_0x114823[_0x26695d(0x262,0x1b5,0x91,0x2db)](0x0,0x4)['toString'](_0x4e3df3(0x4e8,0x4b2,_0xf79eea._0x1d688e,0x53e))===_0x4e3df3(0x66b,_0xf79eea._0x48dac7,0x736,_0xf79eea._0x599d04)&&_0x114823[_0x4e3df3(0x4df,_0xf79eea._0x33cfd4,0x627,_0xf79eea._0xf25105)](0x8,0xc)[_0x26695d(_0xf79eea._0x3b91ec,_0xf79eea._0xb2b7ff,0x1b6,_0xf79eea._0x41741b)](_0x4e3df3(_0xf79eea._0x133031,_0xf79eea._0x5d47b2,0x429,0x44d))===_0x4e3df3(0x616,0x526,0x4dc,_0xf79eea._0x446de7))return _0x26695d(-_0xf79eea._0x1378b8,0x4d,_0xf79eea._0x2a2a5c,-_0xf79eea._0xbc7945);const _0x32cf61=_0x1a0ece['extname'](_0x2ea307)[_0x4e3df3(_0xf79eea._0x43141a,0x4fc,_0xf79eea._0x7c831e,0x3c2)]();if(_0x32cf61===_0x4e3df3(_0xf79eea._0x3bb2b5,0x3a7,_0xf79eea._0x1bb873,_0xf79eea._0x58b6aa))return _0x4e3df3(_0xf79eea._0x1306ec,_0xf79eea._0x1ed108,_0xf79eea._0x403ae4,_0xf79eea._0x558947);if(_0x32cf61===_0x26695d(0x52,_0xf79eea._0x1a5ef7,-_0xf79eea._0x4c37bc,_0xf79eea._0x5739f8)||_0x32cf61===_0x4e3df3(_0xf79eea._0x208c67,0x44a,0x438,0x2f8))return'image/jpeg';function _0x26695d(_0x356261,_0x3d5a1b,_0x4fdf98,_0x141dff){return _0x199ce4(_0x3d5a1b-_0x511027._0x15a735,_0x3d5a1b-_0x511027._0x289cf5,_0x4fdf98,_0x141dff-0x6b);}if(_0x32cf61===_0x26695d(_0xf79eea._0x1cc1b5,_0xf79eea._0x42db9a,_0xf79eea._0x2b3753,-0x62))return _0x26695d(-_0xf79eea._0xa1c05a,-_0xf79eea._0x4c9b79,-_0xf79eea._0x4a0fda,-_0xf79eea._0x14707d);function _0x4e3df3(_0x9de5a1,_0x19bf34,_0x23d417,_0x3bdb83){return _0x199ce4(_0x19bf34-0x43d,_0x19bf34-_0x3e0145._0xf6c492,_0x9de5a1,_0x3bdb83-_0x3e0145._0x4a1b53);}if(_0x32cf61==='.webp')return'image/webp';return void 0x0;}function normalizeDetail(_0x1e1225){const _0x1ed055={_0x2b85ed:0x4ce,_0x561371:0x797,_0x53a3d5:0x643,_0x3e21b6:0x61e,_0x17f413:0x610,_0x3ab334:0x611,_0xa9946:0x41b},_0x51c10a={_0x5a4f94:0x14d,_0x2b469c:0x2f,_0x367f19:0x1d1};if(_0x1e1225===void 0x0)return void 0x0;function _0x104b08(_0x15553e,_0x6ccd4f,_0x299d16,_0x398025){return _0x26f978(_0x15553e-0xb,_0x6ccd4f-0x6b,_0x6ccd4f-0x302,_0x299d16);}const _0x4d3b2b=_0x1e1225[_0x104b08(0x2b4,0x415,_0x1ed055._0x2b85ed,0x2b3)]()[_0x104b08(_0x1ed055._0x561371,_0x1ed055._0x53a3d5,_0x1ed055._0x3e21b6,0x5a4)]();if(!SUPPORTED_DETAILS['has'](_0x4d3b2b))throw new ToolExecutionError(_0x104b08(_0x1ed055._0x17f413,0x51e,_0x1ed055._0x3ab334,_0x1ed055._0xa9946)+_0x1e1225,{'detail':_0x1e1225});function _0x287d72(_0x20dc23,_0x1071cc,_0x551bb9,_0x193a8f){return _0x199ce4(_0x1071cc-_0x51c10a._0x5a4f94,_0x1071cc-_0x51c10a._0x2b469c,_0x20dc23,_0x193a8f-_0x51c10a._0x367f19);}return _0x4d3b2b;}function createViewFileTool(_0x53aad0={}){const _0x497de2={_0x4d6da0:0x322,_0x48a6bd:0x43a,_0x57e97d:0x4fa,_0x4568a4:0x558,_0x508471:0x45f,_0x56808d:0x52b,_0x42d2d7:0x43c,_0x28dce4:0x343,_0x314cc7:0x33b,_0x1a2e60:0x1e4,_0x17ac1c:0x613,_0x273322:0x46d,_0x41518d:0x63e,_0x55c669:0x699,_0x21403d:0x31b,_0x1539a7:0x410,_0x25648e:0x3ae,_0x34cf52:0x475,_0x3ea1c8:0x33b,_0x3e42e5:0x41a,_0x5ae7ff:0x218,_0x750601:0x27a,_0x5ed7a9:0x180},_0x4c3860={_0x297859:0x1a1,_0x395c74:0x12a,_0x35e186:0xe3,_0x5b7a14:0x70,_0x288124:0x252,_0x176041:0x36a,_0x446f85:0x2f6,_0x34541d:0x127,_0x3bacad:0x1ad,_0x35b539:0x4d,_0x536ee7:0x3,_0x45f7cf:0xe1,_0x32f9b9:0x123,_0x6114f6:0x420,_0x3dd605:0x248,_0x282678:0xa,_0x3cb644:0xb2,_0xeba6c4:0x3e5,_0xac9135:0x386,_0x5bb5c3:0x332,_0xe3e70f:0x99,_0x3d6785:0x132,_0x11d03d:0x154,_0x1004ad:0x39f,_0x309d2c:0x144,_0x5ca55d:0x119,_0x122ab0:0x96,_0x46fed0:0x187,_0xacd341:0x18d,_0x1bdaa7:0x72,_0x44b6a9:0x125,_0x4d8d86:0xf6,_0x42fc6d:0x1f5,_0x20ff88:0xbb,_0x2fad0a:0xe7,_0x510477:0x1b4,_0x288c57:0x425,_0x55e5e1:0x546,_0xb6846d:0x277,_0x365184:0x238,_0x1cbe8c:0x15c,_0xa6351f:0x1c4,_0x1dd05e:0x1c,_0x5c6994:0x11d,_0x4ea36d:0x1da,_0x5a638b:0x13f,_0x323912:0x462,_0x1ba7cf:0x225,_0x1fbca0:0x234,_0x3c8308:0x140,_0x3ff69c:0x19f,_0x2f33f9:0xd2,_0x34b319:0xdc,_0x43b67a:0xc0,_0x3b7a03:0x161,_0x3446d6:0x262,_0x1c0282:0x55},_0x41a45b={_0x2dc753:0x179,_0x30b7d2:0x7c},_0x5a0019={_0x133cd0:0x80,_0x480512:0x137,_0x16a797:0x222},_0x225cb1={_0x5e0c65:0x2a4,_0x115e62:0xea},_0x2ee9c3={_0x542b0f:0xa9},_0x1c5aac=_0x1a0ece[_0x4fd1bc(_0x497de2._0x4d6da0,0x312,_0x497de2._0x48a6bd,_0x497de2._0x57e97d)](_0x53aad0[_0x4fd1bc(0x312,_0x497de2._0x4568a4,_0x497de2._0x508471,_0x497de2._0x56808d)]??process[_0x183d34(0x1fa,_0x497de2._0x42d2d7,_0x497de2._0x28dce4,_0x497de2._0x314cc7)]()),_0x271811=_0x53aad0['allowedDirs']??[],_0x52147f=_0x53aad0['maxBytes']??DEFAULT_MAX_BYTES;function _0x4fd1bc(_0x5e7e40,_0x3434c3,_0x8785fb,_0x2aa290){return _0x26f978(_0x5e7e40-0xfb,_0x3434c3-_0x2ee9c3._0x542b0f,_0x8785fb-0x265,_0x2aa290);}function _0x183d34(_0x181069,_0x6bdf9,_0x16af93,_0x2d22e){return _0x199ce4(_0x16af93-_0x225cb1._0x5e0c65,_0x6bdf9-0x169,_0x181069,_0x2d22e-_0x225cb1._0x115e62);}const _0x57d7cb=_0x53aad0[_0x183d34(0xd3,0x108,_0x497de2._0x1a2e60,0x154)]??_0x4fd1bc(_0x497de2._0x17ac1c,0x5bc,0x54c,0x568);return defineTool({'name':_0x57d7cb,'description':_0x4fd1bc(_0x497de2._0x273322,_0x497de2._0x41518d,0x5c7,_0x497de2._0x55c669),'inputSchema':{'type':_0x183d34(0x54e,_0x497de2._0x21403d,_0x497de2._0x1539a7,_0x497de2._0x25648e),'properties':{'path':{'type':_0x183d34(_0x497de2._0x34cf52,_0x497de2._0x3ea1c8,0x32a,0x3c4)},'detail':{'type':_0x4fd1bc(0x586,_0x497de2._0x3e42e5,0x56d,0x501)}},'required':[_0x183d34(_0x497de2._0x5ae7ff,_0x497de2._0x750601,_0x497de2._0x5ed7a9,0x276)]},async *'execute'(_0x16352a){const _0x413bd5=resolveAllowedPath(_0x1c5aac,_0x271811,_0x16352a[_0x5dd339(0x168,_0x4c3860._0x297859,_0x4c3860._0x395c74,0x27c)]);await assertWorkspaceFile(_0x413bd5);function _0x5dd339(_0x504b60,_0x369ccf,_0x4a1a89,_0x2022df){return _0x4fd1bc(_0x504b60-_0x5a0019._0x133cd0,_0x369ccf-_0x5a0019._0x480512,_0x369ccf- -_0x5a0019._0x16a797,_0x504b60);}const _0x3841fb=await _0x194a3a(_0x413bd5);function _0x4b995c(_0x339dcf,_0x4ed342,_0x1c04f7,_0x574202){return _0x183d34(_0x574202,_0x4ed342-_0x41a45b._0x2dc753,_0x339dcf- -0x2a7,_0x574202-_0x41a45b._0x30b7d2);}if(_0x3841fb[_0x4b995c(-0xc0,-_0x4c3860._0x35e186,_0x4c3860._0x5b7a14,-0x1be)]>_0x52147f)throw new ToolExecutionError(_0x5dd339(0x2cd,_0x4c3860._0x288124,_0x4c3860._0x176041,_0x4c3860._0x446f85)+_0x16352a[_0x4b995c(-_0x4c3860._0x34541d,-_0x4c3860._0x3bacad,0x3f,-_0x4c3860._0x35b539)],{'path':_0x16352a[_0x4b995c(-0x127,-_0x4c3860._0x536ee7,-_0x4c3860._0x45f7cf,-_0x4c3860._0x32f9b9)],'maxBytes':_0x52147f,'size':_0x3841fb['size']});const _0xfa99cd=await _0x254351(_0x413bd5),_0x170389=detectImageMediaType(_0xfa99cd,_0x413bd5);if(!_0x170389)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0x16352a['path'],{'path':_0x16352a['path'],'supported':[_0x5dd339(0x28f,0x2a9,_0x4c3860._0x6114f6,_0x4c3860._0x3dd605),_0x4b995c(_0x4c3860._0x282678,0x1,-0x117,_0x4c3860._0x3cb644),_0x5dd339(_0x4c3860._0xeba6c4,_0x4c3860._0xac9135,0x395,_0x4c3860._0x5bb5c3),_0x4b995c(-_0x4c3860._0xe3e70f,-_0x4c3860._0x3d6785,-_0x4c3860._0x11d03d,-0x14f),_0x5dd339(0x292,0x245,0x3ba,_0x4c3860._0x1004ad)]});const _0x37616f=normalizeDetail(_0x16352a[_0x4b995c(_0x4c3860._0x309d2c,0x22c,_0x4c3860._0x5ca55d,0x220)]),_0x4554df=[_0x4b995c(-_0x4c3860._0x122ab0,-_0x4c3860._0x46fed0,-_0x4c3860._0xacd341,_0x4c3860._0x1bdaa7)+_0x16352a['path'],'MIME:\x20'+_0x170389,_0x5dd339(0x19a,0x183,0x2aa,_0x4c3860._0x44b6a9)+_0x3841fb[_0x4b995c(-0xc0,-_0x4c3860._0x4d8d86,-_0x4c3860._0x42fc6d,0xa7)]+_0x5dd339(0x330,0x42c,0x309,0x3bf)][_0x4b995c(0xdf,_0x4c3860._0x20ff88,_0x4c3860._0x2fad0a,_0x4c3860._0x510477)](_0x37616f?[_0x5dd339(0x35f,_0x4c3860._0x288c57,_0x4c3860._0x55e5e1,0x509)+_0x37616f]:[])[_0x5dd339(0x134,_0x4c3860._0xb6846d,0x36e,0x332)]('\x0a'),_0x1f3888=[{'type':_0x4b995c(0xfc,0x149,_0x4c3860._0x365184,0x109),'source':{'type':_0x4b995c(0x161,_0x4c3860._0x1cbe8c,_0x4c3860._0xa6351f,0x124),'media_type':_0x170389,'data':_0xfa99cd[_0x4b995c(-_0x4c3860._0x1dd05e,-0xa,_0x4c3860._0x5c6994,0xee)]('base64')}},{'type':_0x5dd339(0x125,_0x4c3860._0x4ea36d,0x1a2,_0x4c3860._0x5a638b),'text':_0x4554df}];return yield createToolOutput(_0x4554df,{'path':_0x16352a['path'],'resolvedPath':_0x413bd5,'created':_0x3841fb[_0x5dd339(_0x4c3860._0x323912,0x43c,0x458,0x3b7)][_0x5dd339(_0x4c3860._0x1ba7cf,_0x4c3860._0x1fbca0,_0x4c3860._0x3c8308,_0x4c3860._0x3ff69c)](),'modified':_0x3841fb[_0x4b995c(0x152,_0x4c3860._0x2f33f9,_0x4c3860._0x34b319,0x41)]['toISOString'](),'size':_0x3841fb[_0x4b995c(-_0x4c3860._0x43b67a,-0x8d,-0x4d,-0x22a)],'mimeType':_0x170389,'encoding':_0x4b995c(_0x4c3860._0x3b7a03,_0x4c3860._0x3446d6,0x159,_0x4c3860._0x1c0282),..._0x37616f?{'detail':_0x37616f}:{}},_0x1f3888),void 0x0;}});}import _0x498273 from'turndown';import{isIP}from'net';var DEFAULT_MAX_REDIRECTS=0x8,REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]),defaultLookup=async _0x410bd5=>{const _0x18fd61={_0x3733bc:0x6d7,_0x1a0273:0x7de,_0xbbe716:0x6af},_0x3230ae={_0x57062e:0x670,_0x2d6811:0x97};function _0xcfdd8b(_0x2f5f8a,_0x1d88d3,_0x5ce159,_0x4ee38a){return _0x199ce4(_0x1d88d3-_0x3230ae._0x57062e,_0x1d88d3-_0x3230ae._0x2d6811,_0x2f5f8a,_0x4ee38a-0x125);}const {lookup:_0x4c22af}=await import(_0xcfdd8b(_0x18fd61._0x3733bc,_0x18fd61._0x1a0273,_0x18fd61._0xbbe716,0x690));return _0x4c22af(_0x410bd5,{'all':!![],'verbatim':!![]});};function ipv4ToInt(_0x353477){const _0x51f327={_0x4577b0:0x14,_0x36c3af:0x27,_0x149d9b:0x140,_0x541ce2:0x53,_0x2d07c8:0x1e0,_0x24c6a5:0x1b4,_0x30b6dc:0x1ef},_0x504eca={_0x4f6b6a:0x50d,_0xe7ef53:0x1be,_0x1634ac:0x119},_0x36195f=_0x353477['split']('.');function _0x1b6860(_0x20ce46,_0x16b3f3,_0x5bb439,_0x2d6331){return _0x199ce4(_0x20ce46-_0x504eca._0x4f6b6a,_0x16b3f3-_0x504eca._0xe7ef53,_0x16b3f3,_0x2d6331-_0x504eca._0x1634ac);}if(_0x36195f[_0x322742(_0x51f327._0x4577b0,_0x51f327._0x36c3af,_0x51f327._0x149d9b,_0x51f327._0x541ce2)]!==0x4)return null;function _0x322742(_0x53035a,_0x49b417,_0x3740e4,_0x2fcc44){return _0x26f978(_0x53035a-0x31,_0x49b417-0x2f,_0x3740e4- -0x106,_0x49b417);}let _0x7d1fde=0x0;for(const _0x2c5780 of _0x36195f){if(!/^\d{1,3}$/[_0x322742(0x10d,_0x51f327._0x2d07c8,_0x51f327._0x24c6a5,_0x51f327._0x30b6dc)](_0x2c5780))return null;const _0x4311f9=Number(_0x2c5780);if(_0x4311f9>0xff)return null;_0x7d1fde=_0x7d1fde*0x100+_0x4311f9;}return _0x7d1fde>>>0x0;}function isBlockedIpv4(_0x2286ea){const _0x50c4b8={_0x5b98be:0x6a4,_0x4dea75:0x5e1,_0x1c55e7:0x379,_0x32fa6c:0x599,_0x51a8a7:0x4d7,_0xa490ce:0x10c,_0x48405e:0x95,_0x32e0ab:0x266,_0x104b22:0x23e,_0x4615e9:0x5a9,_0x44617b:0x58d,_0x2ff5a6:0x5c5,_0x40de5:0x2b2},_0x2b716d={_0x1b8a81:0x1c7,_0x513df6:0x56},_0x19df55={_0x17e0d3:0x7e,_0x3041ed:0x16},_0x3a09ad=ipv4ToInt(_0x2286ea);if(_0x3a09ad===null)return!![];function _0x37ce29(_0x2cc780,_0x2f3b46,_0x501662,_0x31eb34){return _0x199ce4(_0x31eb34-_0x19df55._0x17e0d3,_0x2f3b46-_0x19df55._0x3041ed,_0x501662,_0x31eb34-0x174);}function _0x419923(_0x20eb5c,_0x435ea3,_0x28ed3c,_0x1d557a){return _0x26f978(_0x20eb5c-_0x2b716d._0x1b8a81,_0x435ea3-_0x2b716d._0x513df6,_0x28ed3c-0x2ed,_0x435ea3);}const _0x462f6a=(_0x244b9d,_0x1debcb)=>{const _0x533f71=ipv4ToInt(_0x244b9d);if(_0x533f71===null)return![];const _0xe27d9b=_0x1debcb===0x0?0x0:0xffffffff<<0x20-_0x1debcb>>>0x0;return(_0x3a09ad&_0xe27d9b)===(_0x533f71&_0xe27d9b);};return _0x462f6a('0.0.0.0',0x8)||_0x462f6a(_0x419923(_0x50c4b8._0x5b98be,0x59e,_0x50c4b8._0x4dea75,0x4d8),0x8)||_0x462f6a('100.64.0.0',0xa)||_0x462f6a(_0x419923(_0x50c4b8._0x1c55e7,_0x50c4b8._0x32fa6c,_0x50c4b8._0x51a8a7,0x591),0x8)||_0x462f6a(_0x37ce29(0x29f,0x117,0x1d9,0x174),0x10)||_0x462f6a(_0x37ce29(0x87,0x9c,-_0x50c4b8._0xa490ce,-_0x50c4b8._0x48405e),0xc)||_0x462f6a(_0x37ce29(_0x50c4b8._0x32e0ab,_0x50c4b8._0x104b22,0x228,0x1c7),0x18)||_0x462f6a(_0x419923(_0x50c4b8._0x4615e9,0x687,0x677,0x6c3),0x10)||_0x462f6a(_0x419923(0x6d6,0x4aa,_0x50c4b8._0x44617b,_0x50c4b8._0x2ff5a6),0xf)||_0x462f6a('224.0.0.0',0x4)||_0x462f6a(_0x37ce29(0x2c0,0x254,_0x50c4b8._0x40de5,0x164),0x4);}function expandIpv6(_0x1e6ef0){const _0x3499c2={_0x35256e:0x47,_0x25ac0f:0x10f,_0x5696e3:0x88,_0xa9281:0x59,_0x16d103:0x160,_0x43fbd1:0x141,_0x42c167:0x18e,_0x31d53a:0x3b4,_0x1b3313:0x2e6,_0x1a2e5f:0x26b,_0x2ac4da:0x113,_0xcad558:0x222,_0x4f1bee:0xf5,_0x2789b4:0x113,_0x19d1d5:0x1f3,_0x583aaa:0xc7,_0x26c7ad:0x1f7,_0x3c391f:0x94,_0x35a771:0x2c},_0x1bd8c7={_0x35b776:0xbf,_0x3a87bc:0x43};let _0x13e711=_0x1e6ef0,_0x44d39d;const _0x44dbfc=_0x13e711[_0x22b997(0x42,-_0x3499c2._0x35256e,0x5,0x129)](':');_0x13e711[_0x2f893b(_0x3499c2._0x25ac0f,_0x3499c2._0x5696e3,0x195,_0x3499c2._0xa9281)](_0x44dbfc+0x1)['includes']('.')&&(_0x44d39d=_0x13e711[_0x22b997(_0x3499c2._0x16d103,_0x3499c2._0x43fbd1,0x206,0x2f)](_0x44dbfc+0x1),_0x13e711=_0x13e711[_0x22b997(0x160,_0x3499c2._0x42c167,0x1f2,0xd)](0x0,_0x44dbfc+0x1));const _0x2cc3ca=_0x13e711[_0x2f893b(_0x3499c2._0x31d53a,0x395,_0x3499c2._0x1b3313,_0x3499c2._0x1a2e5f)]('::');if(_0x2cc3ca['length']>0x2)return null;const _0x386744=_0x1b3be4=>_0x1b3be4['split'](':')[_0x22b997(0x93,0x16b,-0x60,0x17d)](_0x15f5ec=>_0x15f5ec[_0x22b997(0x113,0x1ca,0x1f4,0xb4)]>0x0)[_0x22b997(0x13c,0x1b3,0x57,0x22d)](_0x5a59b4=>Number[_0x2f893b(0x202,0x3f7,0x2d5,0x1c6)](_0x5a59b4,0x10)),_0x5a8407=_0x2cc3ca[0x0]?_0x386744(_0x2cc3ca[0x0]):[],_0x58194c=_0x2cc3ca[_0x22b997(_0x3499c2._0x2ac4da,_0x3499c2._0xcad558,0x1fa,0x1f4)]===0x2&&_0x2cc3ca[0x1]?_0x386744(_0x2cc3ca[0x1]):[];function _0x22b997(_0x895f19,_0x28fc50,_0x534a5b,_0xfadb90){return _0x26f978(_0x895f19-_0x1bd8c7._0x35b776,_0x28fc50-_0x1bd8c7._0x3a87bc,_0x895f19- -0x133,_0x28fc50);}const _0x1e2f19=[];if(_0x44d39d){const _0x2536ba=ipv4ToInt(_0x44d39d);if(_0x2536ba===null)return null;_0x1e2f19[_0x2f893b(0x15d,-_0x3499c2._0x4f1bee,0x2c,-0x80)](_0x2536ba>>>0x10&0xffff,_0x2536ba&0xffff);}const _0x404a04=[..._0x58194c,..._0x1e2f19];function _0x2f893b(_0x2d5d2a,_0x87ca8,_0x507c0d,_0x155340){return _0x26f978(_0x2d5d2a-0x1c4,_0x87ca8-0x1c4,_0x507c0d- -0xfe,_0x2d5d2a);}const _0x3c3485=0x8-_0x5a8407[_0x22b997(_0x3499c2._0x2789b4,0x1c3,0x1e,0x1e2)]-_0x404a04[_0x2f893b(_0x3499c2._0x19d1d5,-0xb,0x148,_0x3499c2._0x583aaa)];if(_0x2cc3ca[_0x2f893b(0x1ae,_0x3499c2._0x26c7ad,0x148,_0x3499c2._0x3c391f)]===0x1)return _0x5a8407[_0x2f893b(0xc7,-0x2c,0x148,-_0x3499c2._0x35a771)]+_0x404a04['length']===0x8?[..._0x5a8407,..._0x404a04]:null;if(_0x3c3485<0x0)return null;return[..._0x5a8407,...new Array(_0x3c3485)['fill'](0x0),..._0x404a04];}function isBlockedIpv6(_0x1faf4a){const _0x1ce673={_0x388699:0xa,_0xc2d17e:0x792,_0x29d8f0:0x6d1,_0x5cecc3:0x65e,_0x5196a8:0x524},_0x448f5b={_0x30b63c:0x1de,_0x9e079f:0x29d},_0x1034fc={_0x14caa7:0x6c0,_0x27e0f8:0x150,_0x5d3cca:0x1e4},_0x2d54f4=expandIpv6(_0x1faf4a);if(!_0x2d54f4||_0x2d54f4['some'](_0x178e4e=>Number['isNaN'](_0x178e4e)))return!![];function _0x52aaf4(_0x274fbe,_0x85775,_0x50039c,_0x51aebc){return _0x199ce4(_0x50039c-_0x1034fc._0x14caa7,_0x85775-_0x1034fc._0x27e0f8,_0x51aebc,_0x51aebc-_0x1034fc._0x5d3cca);}const _0x78cf82=_0x2d54f4[_0x330d91(0xf1,-0x110,-_0x1ce673._0x388699,-0xa0)](0x0,0x7)['every'](_0x527072=>_0x527072===0x0);if(_0x78cf82&&(_0x2d54f4[0x7]===0x0||_0x2d54f4[0x7]===0x1))return!![];if(_0x2d54f4[_0x52aaf4(_0x1ce673._0xc2d17e,0x66f,_0x1ce673._0x29d8f0,0x64e)](0x0,0x5)[_0x330d91(-0x227,-0x24,-0xdf,-0xa1)](_0x3039ab=>_0x3039ab===0x0)&&(_0x2d54f4[0x5]===0xffff||_0x2d54f4[0x5]===0x0)){const _0x4aaaeb=(_0x2d54f4[0x6]<<0x10|_0x2d54f4[0x7])>>>0x0,_0x5da63a=[_0x4aaaeb>>>0x18&0xff,_0x4aaaeb>>>0x10&0xff,_0x4aaaeb>>>0x8&0xff,_0x4aaaeb&0xff][_0x52aaf4(_0x1ce673._0x5cecc3,0x654,0x672,_0x1ce673._0x5196a8)]('.');return isBlockedIpv4(_0x5da63a);}const _0x1d61fa=_0x2d54f4[0x0];if((_0x1d61fa&0xff00)===0xfc00||(_0x1d61fa&0xfe00)===0xfc00)return!![];if((_0x1d61fa&0xffc0)===0xfe80)return!![];if((_0x1d61fa&0xff00)===0xff00)return!![];function _0x330d91(_0x5a82aa,_0x22f9a3,_0x8349d9,_0x120517){return _0x26f978(_0x5a82aa-0x1b7,_0x22f9a3-_0x448f5b._0x30b63c,_0x8349d9- -_0x448f5b._0x9e079f,_0x22f9a3);}return![];}function isBlockedAddress(_0x4af7b4){const _0x166482=isIP(_0x4af7b4);if(_0x166482===0x4)return isBlockedIpv4(_0x4af7b4);if(_0x166482===0x6)return isBlockedIpv6(_0x4af7b4);return!![];}async function assertPublicUrl(_0x5d8fca,_0x134565={}){const _0x4e2a5c={_0x5a7622:0x59c,_0x53c652:0x423,_0x3fae16:0x48b,_0xd4d0c7:0x583,_0x17262c:0x251,_0x274762:0x199,_0x5befcc:0x304,_0x46cbb7:0x32a,_0x24f4e4:0x37c,_0x1e07c8:0x402,_0x4dc906:0x30a,_0x1ceb73:0xf1,_0x11982c:0x46d,_0x8f6a35:0x1c5,_0x227ce4:0x253,_0x4f5bee:0x106,_0x2846ba:0x2e5,_0x3d6cba:0x37,_0x4dc837:0x17c,_0x2ab240:0x12d,_0x2df1c2:0xcc,_0xde3746:0x184,_0x397da1:0x1c2,_0x3b988e:0x3b0,_0x281870:0x238,_0x42261e:0x119},_0x4eb902={_0x58c4fc:0x19f},_0x13008f={_0x342acc:0x13e};let _0x3ec8d4;try{_0x3ec8d4=new URL(_0x5d8fca);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x5d8fca});}if(_0x3ec8d4[_0x50ad83(_0x4e2a5c._0x5a7622,_0x4e2a5c._0x53c652,_0x4e2a5c._0x3fae16,_0x4e2a5c._0xd4d0c7)]!=='http:'&&_0x3ec8d4['protocol']!==_0x50ad83(0x4e8,0x389,0x4fd,_0x4e2a5c._0x17262c))throw new ToolExecutionError('Only\x20http://\x20and\x20https://\x20URLs\x20are\x20supported',{'url':_0x5d8fca});function _0x5c4155(_0x28486f,_0x3d30ef,_0x4492a1,_0x2b025f){return _0x199ce4(_0x2b025f- -0x90,_0x3d30ef-0x117,_0x28486f,_0x2b025f-_0x13008f._0x342acc);}if(_0x3ec8d4[_0x5c4155(-0x1ae,-0xc7,-0x20,-_0x4e2a5c._0x274762)]||_0x3ec8d4['password'])throw new ToolExecutionError(_0x50ad83(_0x4e2a5c._0x5befcc,0x38d,0x23f,0x3c6),{'url':_0x3ec8d4['protocol']+'//'+_0x3ec8d4[_0x50ad83(0x30c,_0x4e2a5c._0x46cbb7,0x307,0x23e)]+_0x3ec8d4['pathname']});const _0x21c039=_0x3ec8d4[_0x50ad83(_0x4e2a5c._0x24f4e4,_0x4e2a5c._0x1e07c8,0x362,_0x4e2a5c._0x4dc906)]['replace'](/^\[|\]$/g,''),_0x239b7c=_0x3ec8d4[_0x5c4155(-0x4f,0x7a,_0x4e2a5c._0x1ceb73,0x63)]+'//'+_0x3ec8d4[_0x50ad83(_0x4e2a5c._0x11982c,0x32a,0x25a,0x3b0)]+_0x3ec8d4['pathname'];if(isIP(_0x21c039)){if(isBlockedAddress(_0x21c039))throw new ToolExecutionError('Refusing\x20to\x20fetch\x20a\x20non-public\x20address',{'url':_0x239b7c});return _0x3ec8d4;}const _0x1caad1=_0x134565[_0x5c4155(-_0x4e2a5c._0x8f6a35,-_0x4e2a5c._0x227ce4,-_0x4e2a5c._0x4f5bee,-0x1fe)]??defaultLookup;let _0x3877d5;try{_0x3877d5=await _0x1caad1(_0x21c039);}catch{throw new ToolExecutionError(_0x5c4155(-_0x4e2a5c._0x2846ba,-_0x4e2a5c._0x3d6cba,-0x1f0,-_0x4e2a5c._0x4dc837),{'url':_0x239b7c});}if(_0x3877d5[_0x5c4155(-0x128,-0x13c,-_0x4e2a5c._0x2ab240,-_0x4e2a5c._0x2df1c2)]===0x0)throw new ToolExecutionError(_0x50ad83(_0x4e2a5c._0xde3746,0x244,_0x4e2a5c._0x397da1,0x208),{'url':_0x239b7c});function _0x50ad83(_0x302ec8,_0x57943f,_0x147a34,_0x434b73){return _0x199ce4(_0x57943f-0x330,_0x57943f-0xa7,_0x302ec8,_0x434b73-_0x4eb902._0x58c4fc);}for(const {address:_0x20f94d}of _0x3877d5){if(isBlockedAddress(_0x20f94d))throw new ToolExecutionError(_0x50ad83(_0x4e2a5c._0x3b988e,_0x4e2a5c._0x281870,0x1f5,_0x4e2a5c._0x42261e),{'url':_0x239b7c});}return _0x3ec8d4;}async function safeFetch(_0x2ac95d,_0x12897a={},_0x1907de={}){const _0x368ac4={_0x5b7212:0x9f,_0x4d6731:0x80,_0x1049b9:0x43,_0xda861c:0x26d,_0x54a0ed:0x132,_0x1a0449:0x18f,_0x4d91bb:0xd0,_0x317f15:0x13a,_0x43bb39:0x2c8,_0x4b06da:0x288,_0x47ac39:0x191,_0x347842:0x1f9,_0x329fc3:0xca,_0x15085e:0x1ef,_0x549ed2:0x1e1,_0x272f26:0xca},_0x3a3283={_0x2f950a:0x73,_0x15472c:0xac,_0x4bbfeb:0x333},_0x1646c5={_0x3d2876:0xbd},_0x39d512=_0x1907de['fetchImpl']??fetch,_0x20de34=_0x1907de[_0x4d7f2e(-0x19b,-0x52,-0xb1,_0x368ac4._0x5b7212)]??DEFAULT_MAX_REDIRECTS;function _0x356be8(_0x139a63,_0x4e0301,_0x575efd,_0x5dc192){return _0x26f978(_0x139a63-0xf6,_0x4e0301-0x83,_0x5dc192- -_0x1646c5._0x3d2876,_0x139a63);}function _0x4d7f2e(_0x3a379a,_0x2d731b,_0x5072aa,_0x1d1867){return _0x26f978(_0x3a379a-_0x3a3283._0x2f950a,_0x2d731b-_0x3a3283._0x15472c,_0x5072aa- -_0x3a3283._0x4bbfeb,_0x1d1867);}let _0x32d897=_0x2ac95d;for(let _0x5353e4=0x0;;_0x5353e4+=0x1){const _0x3c2dc9=await assertPublicUrl(_0x32d897,_0x1907de),_0x30c6eb=await _0x39d512(_0x3c2dc9['toString'](),{..._0x12897a,'redirect':_0x4d7f2e(_0x368ac4._0x4d6731,0x8d,_0x368ac4._0x1049b9,0x117)}),_0x5b8e5c=_0x30c6eb[_0x356be8(0x30a,0x2ce,0x21e,0x1f2)][_0x356be8(-0x17,0x147,0xaa,0x74)]('location');if(!REDIRECT_STATUSES[_0x4d7f2e(-_0x368ac4._0xda861c,-_0x368ac4._0x54a0ed,-_0x368ac4._0x1a0449,-_0x368ac4._0x4d91bb)](_0x30c6eb[_0x356be8(_0x368ac4._0x317f15,_0x368ac4._0x43bb39,_0x368ac4._0x4b06da,_0x368ac4._0x47ac39)])||!_0x5b8e5c)return _0x30c6eb;if(_0x5353e4>=_0x20de34)throw new ToolExecutionError(_0x356be8(0x195,0x26f,0x1a6,0x10e),{'url':_0x3c2dc9[_0x4d7f2e(-_0x368ac4._0x347842,0x5b,-_0x368ac4._0x329fc3,-_0x368ac4._0x15085e)]()});_0x32d897=new URL(_0x5b8e5c,_0x3c2dc9)[_0x4d7f2e(-_0x368ac4._0x549ed2,-0x93,-_0x368ac4._0x272f26,-0x117)]();}}var USER_AGENT='Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_7)\x20AppleWebKit/537.36\x20NuvinBot/1.0',DEFAULT_TIMEOUT_MS2=0xea60;function createTimeoutSignal(_0x28e968,_0x563f04){const _0x112e90={_0x27970a:0x231,_0x4b5fa2:0x118,_0x361155:0xbd,_0x2b2017:0xf0,_0x58076c:0x4d5,_0x13ec92:0x3a5,_0x4b9084:0x4d},_0x3fecd2={_0x241f2f:0x4f1,_0x3d6c6c:0x4fd,_0x207cd1:0x290},_0x1e8d3f={_0x5bc16b:0xe4,_0x4d99c7:0x1af},_0x37a764={_0x739ea4:0x7d,_0x2f7db3:0xfe},_0x3206a6={_0x239c4a:0x184,_0x58e62a:0x86},_0x1fcabe=new AbortController(),_0x5301c7=setTimeout(()=>_0x1fcabe[_0x13e4c8(0x3db,0x393,0x519,0x3a3)](new Error(_0x3acb8d(0x477,0x339,0x3c4,0x32b))),_0x563f04);function _0x13e4c8(_0x4ca845,_0x59f5a3,_0x2bebfc,_0x55a812){return _0x26f978(_0x4ca845-_0x3206a6._0x239c4a,_0x59f5a3-_0x3206a6._0x58e62a,_0x55a812-0x26b,_0x59f5a3);}const _0x419f28=()=>_0x1fcabe[_0x3acb8d(0x19f,0xc5,0xff,0xbd)](_0x28e968[_0x3acb8d(0x270,0xe2,0x2a,0x17c)]);function _0x3acb8d(_0x78f48,_0x13537d,_0x27d73e,_0x3b52e9){return _0x26f978(_0x78f48-_0x37a764._0x739ea4,_0x13537d-_0x37a764._0x2f7db3,_0x3b52e9- -0x7b,_0x27d73e);}return _0x28e968['aborted']?_0x1fcabe[_0x3acb8d(_0x112e90._0x27970a,0x48,_0x112e90._0x4b5fa2,_0x112e90._0x361155)](_0x28e968[_0x3acb8d(0x201,_0x112e90._0x2b2017,0x1ec,0x17c)]):_0x28e968[_0x13e4c8(0x240,0x387,_0x112e90._0x58076c,_0x112e90._0x13ec92)]('abort',_0x419f28,{'once':!![]}),{'signal':_0x1fcabe[_0x3acb8d(_0x112e90._0x4b9084,0x43,0x2,0x135)],'cleanup':()=>{const _0x3107e1={_0x380b88:0x19b,_0x59b6f5:0xa1};function _0x2da6f3(_0x5084b1,_0xc57d37,_0x2da9bd,_0x271d8b){return _0x13e4c8(_0x5084b1-_0x3107e1._0x380b88,_0x271d8b,_0x2da9bd-_0x3107e1._0x59b6f5,_0x5084b1- -0x274);}function _0x3e5383(_0x55b899,_0x524f6a,_0x41b714,_0x1f2d5e){return _0x13e4c8(_0x55b899-_0x1e8d3f._0x5bc16b,_0x55b899,_0x41b714-_0x1e8d3f._0x4d99c7,_0x41b714- -0x25f);}clearTimeout(_0x5301c7),_0x28e968[_0x3e5383(_0x3fecd2._0x241f2f,_0x3fecd2._0x3d6c6c,0x3f3,0x507)](_0x2da6f3(0x12f,_0x3fecd2._0x207cd1,0x293,0xd8),_0x419f28);}};}function createWebFetchTool(_0x5a8154={}){const _0x3ad0a8={_0x48e634:0x189,_0x3bb01c:0x195,_0x220534:0x23e,_0x5a4ebd:0x16d,_0x3375b2:0x1b3,_0x5d5ac1:0x1bf,_0x215366:0x283,_0xc44739:0x330,_0x3c5d69:0x1d2,_0x36de85:0x238,_0x335db8:0x1e2,_0x259de2:0x272,_0x474684:0xb5,_0x440e6a:0x4d,_0x375575:0x56,_0x2e8249:0x58,_0x38731b:0x40,_0x5cda25:0x155,_0x51c69c:0x31,_0xa20319:0x131,_0x5f1bc9:0xd4,_0x19b06c:0x18d,_0x34911e:0x2c1,_0x5958b7:0xef,_0x2e81bb:0x1de,_0x9ae5ce:0x81,_0x3c5197:0x257},_0x5c19cb={_0x360a78:0xa5,_0x58fd63:0x17f,_0x3d432b:0x388,_0xfd0ad7:0x4be,_0x1a680d:0x37f,_0x3aacd0:0x628,_0x48bf5b:0x477,_0x497ef7:0x39,_0x5a2522:0x183,_0x28e4c5:0x15c,_0x518dba:0x47,_0x460cd2:0x6e,_0x3ad0c8:0x2c1,_0x3f23de:0x315,_0x2714d1:0x21b,_0x164435:0x493,_0x2eb0e3:0x36f,_0x3bc087:0x124,_0x4ad189:0x57d,_0x1a5079:0x45c,_0x2a5d0b:0x4a,_0x52cfb1:0x4b3,_0x145425:0x38e,_0x2fd3ba:0x4b1,_0x42e61f:0x20a,_0x46180e:0x257,_0x2c8075:0x309,_0xbac541:0x31c,_0x277f98:0x2a8,_0x52c366:0x90,_0x2d1db9:0x63,_0x1c446e:0x15,_0x46d30c:0x14,_0xe0adf4:0x76,_0x25211c:0x7c,_0x26cd0d:0xf3,_0x3beaa6:0xcf,_0x5bdee6:0x630,_0x5064e3:0x5d6,_0x6b9f69:0x3b3,_0x42f3d7:0x366,_0x3eebaf:0x3ef,_0x10f170:0x2a5,_0x5c6810:0x41e},_0x1a1d36={_0x4cf8e3:0x16f,_0x42528f:0x121},_0x3581f7={_0x5b4164:0x6e,_0x4ab0f3:0x173},_0x142926=_0x5a8154['name']??'WebFetch',_0x446530=_0x5a8154[_0x250b60(-_0x3ad0a8._0x48e634,-_0x3ad0a8._0x3bb01c,-_0x3ad0a8._0x220534,-_0x3ad0a8._0x5a4ebd)]??DEFAULT_TIMEOUT_MS2;function _0x44daf1(_0x3b755b,_0x31cacd,_0x52c51c,_0x374a67){return _0x199ce4(_0x31cacd-0x1d1,_0x31cacd-_0x3581f7._0x5b4164,_0x374a67,_0x374a67-_0x3581f7._0x4ab0f3);}function _0x250b60(_0x229861,_0x3b1e3d,_0x24e45f,_0x529bbb){return _0x199ce4(_0x529bbb- -0xd1,_0x3b1e3d-_0x1a1d36._0x4cf8e3,_0x3b1e3d,_0x529bbb-_0x1a1d36._0x42528f);}const _0x32fc46=_0x5a8154[_0x250b60(-_0x3ad0a8._0x3375b2,-_0x3ad0a8._0x5d5ac1,-_0x3ad0a8._0x215366,-0x23f)],_0x29c658=new _0x498273({'headingStyle':_0x250b60(-0xef,-0x322,-0x67,-0x1b3),'codeBlockStyle':_0x250b60(-_0x3ad0a8._0xc44739,-0x240,-_0x3ad0a8._0x3c5d69,-_0x3ad0a8._0x36de85),'bulletListMarker':'-'});return _0x29c658[_0x250b60(-_0x3ad0a8._0x335db8,-0x164,-0xa1,-0x122)]([_0x44daf1(_0x3ad0a8._0x259de2,0x208,0xb8,_0x3ad0a8._0x474684),_0x250b60(-_0x3ad0a8._0x440e6a,_0x3ad0a8._0x375575,_0x3ad0a8._0x2e8249,-_0x3ad0a8._0x38731b),_0x44daf1(0x48,_0x3ad0a8._0x5cda25,0x22e,_0x3ad0a8._0x51c69c),_0x44daf1(_0x3ad0a8._0xa20319,0x15c,0x277,0x1a2),_0x44daf1(_0x3ad0a8._0x5f1bc9,_0x3ad0a8._0x19b06c,0x111,0x2fe),'footer',_0x44daf1(0x38f,_0x3ad0a8._0x34911e,0x3d7,0x224),_0x250b60(-0x5c,-0x240,-_0x3ad0a8._0x5f1bc9,-_0x3ad0a8._0x5958b7)]),defineTool({'name':_0x142926,'description':_0x250b60(-_0x3ad0a8._0x38731b,-_0x3ad0a8._0x2e81bb,0xe7,-_0x3ad0a8._0x9ae5ce),'inputSchema':{'type':'object','properties':{'description':{'type':'string'},'url':{'type':_0x44daf1(0x37d,_0x3ad0a8._0x3c5197,0x271,0x2d3)}},'required':['url']},async *'execute'(_0x8d05a0,_0x4f7b05){const _0x3b63b4={_0x4c0c6a:0x23,_0x2c18ab:0x52b},_0xf09f31=(await assertPublicUrl(_0x8d05a0[_0x36aa9e(-_0x5c19cb._0x360a78,-_0x5c19cb._0x58fd63,-0x7f,0xc2)],{'lookup':_0x32fc46}))['toString']();if(_0x4f7b05[_0x116608(0x45f,0x4f7,0x237,_0x5c19cb._0x3d432b)]['aborted'])throw new ToolExecutionError('Fetch\x20aborted\x20by\x20user',{'url':_0xf09f31});const _0x1f5775=createTimeoutSignal(_0x4f7b05[_0x116608(0x24d,0x3bc,_0x5c19cb._0xfd0ad7,0x388)],_0x446530);let _0x489fd1='',_0x20905f=0x0,_0x14677e;try{const _0x163083=await safeFetch(_0xf09f31,{'headers':{'User-Agent':USER_AGENT},'signal':_0x1f5775[_0x116608(_0x5c19cb._0x1a680d,0x3c9,0x39f,0x388)]},{'lookup':_0x32fc46});if(!_0x163083['ok'])throw new ToolExecutionError(_0x116608(_0x5c19cb._0x3aacd0,_0x5c19cb._0x48bf5b,0x49b,0x59b)+_0x163083['status']+'\x20'+_0x163083['statusText'],{'url':_0xf09f31,'statusCode':_0x163083[_0x36aa9e(-0x3f,-_0x5c19cb._0x497ef7,0xb7,-_0x5c19cb._0x5a2522)]});_0x489fd1=_0x163083['headers'][_0x36aa9e(-_0x5c19cb._0x28e4c5,-_0x5c19cb._0x518dba,-_0x5c19cb._0x460cd2,-0x2c8)]('content-type')??'',_0x20905f=_0x163083[_0x116608(0x420,0x444,_0x5c19cb._0x3ad0c8,0x426)],_0x14677e=await _0x163083[_0x116608(_0x5c19cb._0x3f23de,_0x5c19cb._0x2714d1,_0x5c19cb._0x164435,_0x5c19cb._0x2eb0e3)]();}catch(_0x157b9a){if(_0x157b9a instanceof ToolExecutionError)throw _0x157b9a;const _0x3ed244=_0x157b9a instanceof Error?_0x157b9a[_0x36aa9e(0xaf,0x206,_0x5c19cb._0x3bc087,0xf8)]:String(_0x157b9a);throw new ToolExecutionError(_0x3ed244,{'url':_0xf09f31});}finally{_0x1f5775[_0x116608(_0x5c19cb._0x4ad189,0x366,0x430,_0x5c19cb._0x1a5079)]();}const _0x2ba25c=new Date()[_0x36aa9e(-0x9c,0x94,-_0x5c19cb._0x2a5d0b,-0xec)]();function _0x36aa9e(_0x4e14c3,_0x16b788,_0x266067,_0x2935d8){return _0x250b60(_0x4e14c3-0x7a,_0x2935d8,_0x266067-0x17b,_0x4e14c3-0xc6);}function _0x116608(_0x5d6137,_0x311fa4,_0x1a0304,_0x525889){return _0x250b60(_0x5d6137-0x13b,_0x1a0304,_0x1a0304-_0x3b63b4._0x4c0c6a,_0x525889-_0x3b63b4._0x2c18ab);}let _0x5362e0,_0x4ea093;if(_0x489fd1[_0x116608(_0x5c19cb._0x52cfb1,_0x5c19cb._0x145425,0x52d,_0x5c19cb._0x2fd3ba)](_0x116608(_0x5c19cb._0x42e61f,_0x5c19cb._0x46180e,0x232,0x35e)))_0x5362e0=_0x116608(_0x5c19cb._0x2c8075,_0x5c19cb._0xbac541,_0x5c19cb._0x277f98,0x375)+_0x14677e+_0x36aa9e(_0x5c19cb._0x52c366,_0x5c19cb._0x2d1db9,-_0x5c19cb._0x1c446e,_0x5c19cb._0x46d30c),_0x4ea093=_0x36aa9e(_0x5c19cb._0xe0adf4,_0x5c19cb._0x25211c,_0x5c19cb._0x26cd0d,_0x5c19cb._0x3beaa6);else _0x489fd1[_0x116608(_0x5c19cb._0x3d432b,0x4d3,0x3cb,_0x5c19cb._0x2fd3ba)](_0x116608(0x5c5,_0x5c19cb._0x5bdee6,0x501,_0x5c19cb._0x5064e3))?(_0x5362e0=_0x29c658[_0x116608(0x439,_0x5c19cb._0x6b9f69,_0x5c19cb._0x42f3d7,_0x5c19cb._0x3eebaf)](_0x14677e),_0x4ea093=_0x116608(0x421,0x370,0x39f,0x2ea)):(_0x5362e0=_0x14677e,_0x4ea093='text');return yield createToolOutput(_0x5362e0,{'url':_0xf09f31,'contentType':_0x489fd1,'statusCode':_0x20905f,'format':_0x4ea093,'size':_0x14677e[_0x116608(0x51e,_0x5c19cb._0x10f170,0x317,_0x5c19cb._0x5c6810)],'fetchedAt':_0x2ba25c}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x26f978(0x2c9,0x340,0x317,0x425);function normalizeUrl(_0x2af36e){const _0x5a392c={_0x570cbe:0x60,_0x296d75:0x12f,_0x58fcd4:0x1ad,_0x1621be:0x51,_0x90059c:0x5,_0x296ba8:0x147,_0x159d1a:0x54,_0x478271:0x258,_0x4e7307:0xb5},_0xa9c669={_0x45b409:0xdb,_0x190212:0x1de},_0x116833={_0x308686:0xc4,_0x21c658:0x18};function _0xf9fab1(_0x5a725f,_0x51b802,_0x45e7a4,_0x1334c7){return _0x199ce4(_0x1334c7- -_0x116833._0x308686,_0x51b802-_0x116833._0x21c658,_0x51b802,_0x1334c7-0x7a);}function _0x44d6c4(_0x5cac75,_0x1e06be,_0x2dbc3d,_0x72ca66){return _0x26f978(_0x5cac75-_0xa9c669._0x45b409,_0x1e06be-0x131,_0x1e06be- -_0xa9c669._0x190212,_0x5cac75);}try{const _0x108d49=new URL(_0x2af36e);for(const _0x2ccc9a of['utm_source','utm_medium','utm_campaign','utm_term',_0x44d6c4(-0x47,-0xa,0x127,_0x5a392c._0x570cbe),_0x44d6c4(0x244,_0x5a392c._0x296d75,_0x5a392c._0x58fcd4,0x6b),_0xf9fab1(0xc8,0xd2,_0x5a392c._0x1621be,_0x5a392c._0x90059c),'mc_cid',_0x44d6c4(_0x5a392c._0x296ba8,0x72,0x1ee,_0x5a392c._0x159d1a)]){_0x108d49[_0xf9fab1(-_0x5a392c._0x478271,-0x19f,-0x24f,-0x16a)][_0x44d6c4(0xad,-_0x5a392c._0x4e7307,-0x208,-0x6d)](_0x2ccc9a);}return _0x108d49['toString']();}catch{return _0x2af36e;}}function cseDateRestrict(_0x45fde4){const _0x12309f={_0x438053:0xf8,_0x164c43:0x3c,_0x149272:0xcb,_0x1498ad:0x9e,_0x5871cd:0x50},_0x87c386={_0xa0a2a9:0x2bd},_0x3dc0ed={_0x4b59aa:0x6,_0x4877f4:0xb1};function _0x622669(_0x42a89c,_0x7f20dc,_0x5de328,_0x14e839){return _0x26f978(_0x42a89c-_0x3dc0ed._0x4b59aa,_0x7f20dc-0x71,_0x7f20dc-_0x3dc0ed._0x4877f4,_0x5de328);}if(_0x45fde4<=0x0)return void 0x0;function _0x34e859(_0x3c78ed,_0x543d5a,_0x3229a3,_0x389a5c){return _0x26f978(_0x3c78ed-0xda,_0x543d5a-0xeb,_0x543d5a- -_0x87c386._0xa0a2a9,_0x389a5c);}if(_0x45fde4<=0x1e)return'd'+Math[_0x34e859(-_0x12309f._0x438053,_0x12309f._0x164c43,0x152,0x195)](0x1,Math[_0x34e859(-_0x12309f._0x149272,-0x4d,_0x12309f._0x1498ad,-_0x12309f._0x5871cd)](_0x45fde4));if(_0x45fde4<=0x16d)return'm'+Math['ceil'](_0x45fde4/0x1e);return'y'+Math['ceil'](_0x45fde4/0x16d);}function addSiteFilters(_0x103116,_0x5d20b6){const _0x7a4472={_0x21b679:0x4c4,_0x4969d2:0x89,_0x2e9253:0x1df,_0x4d0c45:0x135},_0x1e317a={_0x4040e0:0x15d,_0x539829:0x7f},_0x28d05f={_0x47ea13:0xd7,_0x40e95e:0x185,_0x3c7de9:0x19a};function _0xf41daf(_0x5616bc,_0x21817e,_0xa70566,_0x2a2b62){return _0x199ce4(_0x21817e-_0x28d05f._0x47ea13,_0x21817e-_0x28d05f._0x40e95e,_0x5616bc,_0x2a2b62-_0x28d05f._0x3c7de9);}function _0xca010a(_0x473408,_0x16083e,_0x21b5e3,_0x3f501f){return _0x199ce4(_0x21b5e3-0x4d7,_0x16083e-_0x1e317a._0x4040e0,_0x473408,_0x3f501f-_0x1e317a._0x539829);}if(_0x5d20b6['length']===0x0)return _0x103116['trim']();return(_0x103116+'\x20('+_0x5d20b6[_0xca010a(0x37d,0x45d,_0x7a4472._0x21b679,0x606)](_0x2edbc5=>'site:'+_0x2edbc5)[_0xf41daf(0x192,_0x7a4472._0x4969d2,_0x7a4472._0x2e9253,_0x7a4472._0x4d0c45)]('\x20OR\x20')+')')['trim']();}function normalizeType(_0x5ce619){const _0x4d4bc6={_0x4624c0:0x253,_0x3611f3:0x75,_0x292c1b:0x1ca},_0x63da26={_0xc2e1ef:0x69,_0x1e95c2:0xa2},_0x47b3f4={_0x5e00d9:0x167,_0x1e313c:0xf1};function _0x515076(_0x31204a,_0x40f8f8,_0x4bc97e,_0x4c77ec){return _0x26f978(_0x31204a-_0x47b3f4._0x5e00d9,_0x40f8f8-_0x47b3f4._0x1e313c,_0x31204a- -0xaf,_0x4c77ec);}function _0x347182(_0x4332c3,_0x58e2c0,_0x2e7c1f,_0x32bde6){return _0x26f978(_0x4332c3-_0x63da26._0xc2e1ef,_0x58e2c0-0x150,_0x2e7c1f-_0x63da26._0x1e95c2,_0x4332c3);}return _0x5ce619===_0x515076(0x1da,0x129,_0x4d4bc6._0x4624c0,_0x4d4bc6._0x3611f3)?_0x347182(_0x4d4bc6._0x292c1b,0x37e,0x32b,0x1e1):'web';}async function fetchJson(_0x5eb6f9,_0x4a69aa,_0x38282f){const _0x591619={_0x2f5bb7:0x176,_0x46abb9:0x3b,_0x992a5c:0xbc,_0x5d8470:0x50b,_0x500a5e:0x5a5,_0x3cbef8:0x4f5,_0xa21e95:0xba,_0x3681ab:0x7fc,_0xe61cf6:0x78a,_0x12fff2:0x823,_0x4633b2:0x582,_0xdb1225:0x552,_0x189d4b:0xdd,_0xffe62f:0x149,_0x512c73:0x10a,_0x2c7e63:0x32,_0x489e88:0x196,_0x3bc530:0xb1,_0x3d97c4:0x149,_0x4ce78c:0x2b8,_0x3b50b6:0x9e,_0x4eb7d2:0x30b,_0x137d05:0x130,_0x146584:0x7d1,_0xedcd7f:0x6e5,_0x17e511:0x113,_0x309faf:0x699,_0xccc9bd:0x4f9,_0x5a2d22:0x87d},_0xb1646e={_0x511097:0x7d},_0x2e6437=await fetch(_0x5eb6f9,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x4e9fac(-0x6d,-_0x591619._0x2f5bb7,_0x591619._0x46abb9,-0x4),..._0x38282f?.[_0x4e9fac(_0x591619._0x992a5c,0xc5,0x173,0xcb)]},'signal':_0x4a69aa,..._0x38282f});if(!_0x2e6437['ok']){let _0x98815d,_0x3c98e3;try{_0x98815d=await _0x2e6437[_0x4265c9(_0x591619._0x5d8470,_0x591619._0x500a5e,_0x591619._0x3cbef8,0x4bc)]();const _0x537ff4=JSON[_0x4e9fac(0x5e,_0x591619._0xa21e95,-0x75,-0xc8)](_0x98815d),_0x10170c=typeof _0x537ff4['detail']===_0x4265c9(0x789,_0x591619._0x3681ab,_0x591619._0xe61cf6,_0x591619._0x12fff2)?_0x537ff4['detail'][_0x4265c9(0x601,0x68f,_0x591619._0x4633b2,_0x591619._0xdb1225)]:void 0x0;_0x3c98e3=_0x537ff4[_0x4e9fac(0x8e,-0x3e,-0x3b,-_0x591619._0x189d4b)]?.[_0x4e9fac(_0x591619._0xffe62f,_0x591619._0x512c73,-_0x591619._0x2c7e63,0x2c5)]??_0x537ff4[_0x4265c9(0x566,0x68f,0x633,0x533)]?.[_0x4e9fac(_0x591619._0x489e88,_0x591619._0x3bc530,0x275,0x20)]?.[0x0]?.[_0x4e9fac(_0x591619._0x3d97c4,0xe8,_0x591619._0x4ce78c,0x271)]??_0x10170c;}catch{}const _0x481d9b=_0x3c98e3?_0x4e9fac(0x1d0,_0x591619._0x3b50b6,_0x591619._0x4eb7d2,_0x591619._0x137d05)+_0x2e6437['status']+':\x20'+_0x3c98e3:_0x4265c9(0x7c8,_0x591619._0x146584,0x665,_0x591619._0xedcd7f)+_0x2e6437[_0x4e9fac(0x5b,-0x11e,_0x591619._0x17e511,0x50)]+'\x20'+_0x2e6437[_0x4265c9(_0x591619._0x309faf,0x563,_0x591619._0xccc9bd,0x60a)];throw new ToolExecutionError(_0x481d9b,{'statusCode':_0x2e6437['status'],..._0x98815d?{'body':_0x98815d}:{}});}function _0x4265c9(_0x14d8a7,_0x4ff2f4,_0x5f0326,_0x5879db){return _0x199ce4(_0x4ff2f4-0x690,_0x4ff2f4-0x1a2,_0x5879db,_0x5879db-_0xb1646e._0x511097);}function _0x4e9fac(_0x414039,_0x4c4026,_0x5d5965,_0x33e3ca){return _0x26f978(_0x414039-0x142,_0x4c4026-0x1d7,_0x414039- -0x1f3,_0x5d5965);}return await _0x2e6437[_0x4265c9(0x6b3,0x711,0x6fe,_0x591619._0x5a2d22)]();}async function hydrateResults(_0x3d5723,_0x26e0a1,_0x5de8da,_0xa7e907){const _0x2dff14={_0x31ac82:0x60,_0x13a540:0xbe,_0x590d8b:0x268,_0x3e8062:0x55,_0x4d121b:0x158,_0x4b684c:0x16e,_0x24830b:0x5a,_0x5429ec:0x192,_0x280349:0x273},_0x95d23f={_0xfc5dfa:0x4f},_0x243a1c={_0x3f667c:0x181},_0x9f0d7d={_0x3f19b0:0x33c,_0x2c0338:0x2b7,_0x45dac3:0x5ab,_0x56632b:0x5f9,_0x6fbb8f:0x2f4,_0x281ee0:0x351,_0x20c272:0x56c,_0x55e854:0x6f6,_0x587b83:0x516,_0x531aa2:0x339,_0x5d3099:0x312,_0x379929:0x1a4,_0x202a0a:0x281,_0x3da67c:0x3da,_0x25e13f:0x20f,_0x3d8ced:0x130,_0x2de45f:0x129,_0x17c01e:0x38f,_0x5d346a:0x2c5,_0x403989:0x342,_0x174777:0x2df,_0x492ce7:0x2b1,_0x1a0a41:0x212,_0x18a2ea:0x51,_0xadcfb3:0x15c,_0x3e5e35:0x1d1,_0x5296c4:0xe4,_0x5a7243:0x4c,_0xfc8c58:0x456,_0x268339:0x54d,_0x17b0f9:0x435,_0x318b11:0x64,_0x15bd54:0x44d,_0x51de89:0x595,_0x21828d:0x53f,_0x1ac6f1:0x528,_0x360059:0x6f,_0x57768f:0xc,_0xd2b861:0x313,_0x5ebb4f:0x44c,_0x1c783f:0x22a,_0x34ebdb:0x73,_0x5df620:0x98,_0x458ba1:0x3a2},_0x45e808={_0xfb426f:0x1cc,_0x226c99:0x4f},_0x31d94c=await Promise[_0x5425d2(-0x45,-_0x2dff14._0x31ac82,-0x95,-0xca)](_0x3d5723[_0x5425d2(-0xa2,-0x85,-0x15d,_0x2dff14._0x13a540)](0x0,0xa)[_0x4db84b(_0x2dff14._0x590d8b,_0x2dff14._0x3e8062,_0x2dff14._0x4d121b,_0x2dff14._0x4b684c)](async _0x3d973d=>{function _0x3f4723(_0xc82569,_0x5bf6e1,_0x2aaec7,_0x2edff7){return _0x4db84b(_0x5bf6e1,_0x5bf6e1-0x3f,_0x2aaec7-0x10c,_0x2aaec7-0x2bb);}function _0x11b48e(_0x1406ed,_0x536e05,_0x5377f9,_0x22eb31){return _0x4db84b(_0x1406ed,_0x536e05-0x1ce,_0x5377f9-_0x45e808._0xfb426f,_0x536e05- -_0x45e808._0x226c99);}try{const _0x216f01=await safeFetch(_0x3d973d[_0x3f4723(_0x9f0d7d._0x3f19b0,_0x9f0d7d._0x2c0338,0x3a2,0x396)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x26e0a1,'Accept':_0x3f4723(_0x9f0d7d._0x45dac3,0x6de,0x5b8,_0x9f0d7d._0x56632b)},'signal':_0x5de8da},{'lookup':_0xa7e907});if(!_0x216f01['ok'])return _0x3d973d;const _0x1efeae=await _0x216f01[_0x3f4723(0x2d2,_0x9f0d7d._0x6fbb8f,_0x9f0d7d._0x281ee0,0x3bb)](),_0x174fdb=load(_0x1efeae),_0x309400=_0x174fdb(_0x3f4723(_0x9f0d7d._0x20c272,_0x9f0d7d._0x55e854,0x58b,_0x9f0d7d._0x587b83))['attr']('content')||_0x174fdb(_0x3f4723(_0x9f0d7d._0x531aa2,0x390,_0x9f0d7d._0x5d3099,_0x9f0d7d._0x379929))[_0x3f4723(_0x9f0d7d._0x202a0a,_0x9f0d7d._0x3da67c,0x2f1,_0x9f0d7d._0x25e13f)]()[_0x11b48e(-0xc3,0x47,0xb,_0x9f0d7d._0x3d8ced)]()[_0x11b48e(-0x8d,-0x3d,0x115,-_0x9f0d7d._0x2de45f)](),_0x3b68bd=_0x174fdb('meta[name=\x27description\x27]')[_0x3f4723(_0x9f0d7d._0x17c01e,_0x9f0d7d._0x5d346a,_0x9f0d7d._0x403989,_0x9f0d7d._0x174777)]('content')||_0x174fdb('meta[property=\x27og:description\x27]')[_0x3f4723(_0x9f0d7d._0x492ce7,0x3cd,0x342,_0x9f0d7d._0x1a0a41)](_0x11b48e(_0x9f0d7d._0x18a2ea,_0x9f0d7d._0xadcfb3,_0x9f0d7d._0x3e5e35,_0x9f0d7d._0x5296c4))||_0x3d973d[_0x11b48e(0x10b,0x7d,0xcd,_0x9f0d7d._0x5a7243)],_0x4bee2d=_0x174fdb(_0x3f4723(0x516,_0x9f0d7d._0xfc8c58,_0x9f0d7d._0x268339,_0x9f0d7d._0x17b0f9))[_0x11b48e(0x11a,0x38,_0x9f0d7d._0x318b11,-0xbc)]('content')||_0x174fdb(_0x3f4723(_0x9f0d7d._0x15bd54,_0x9f0d7d._0x51de89,_0x9f0d7d._0x21828d,_0x9f0d7d._0x1ac6f1))[_0x11b48e(-_0x9f0d7d._0x360059,0x38,0x5,-_0x9f0d7d._0x57768f)]('datetime')||_0x3d973d[_0x3f4723(_0x9f0d7d._0xd2b861,0x384,_0x9f0d7d._0x5ebb4f,0x475)],_0x15df5b=_0x174fdb('link[rel=\x27canonical\x27]')[_0x3f4723(_0x9f0d7d._0x1c783f,0x441,0x342,0x1ee)](_0x3f4723(0x33a,0x271,0x314,0x436));return{..._0x3d973d,'title':_0x309400||_0x3d973d['title'],'snippet':_0x3b68bd,'url':_0x15df5b?normalizeUrl(new URL(_0x15df5b,_0x3d973d[_0x11b48e(_0x9f0d7d._0x34ebdb,_0x9f0d7d._0x5df620,-0x9d,0x137)])['toString']()):_0x3d973d[_0x3f4723(0x49a,0x4e8,_0x9f0d7d._0x458ba1,0x2eb)],'publishedAt':_0x4bee2d};}catch{return _0x3d973d;}}));function _0x4db84b(_0x52719b,_0x28e223,_0xcc108,_0x21df91){return _0x199ce4(_0x21df91-_0x243a1c._0x3f667c,_0x28e223-0x21,_0x52719b,_0x21df91-0x1c5);}function _0x5425d2(_0x520d9e,_0x8b4b3,_0x490ded,_0x68c8de){return _0x26f978(_0x520d9e-_0x95d23f._0xfc5dfa,_0x8b4b3-0x71,_0x520d9e- -0x335,_0x490ded);}const _0x1cf9f4=new Map(_0x3d5723[_0x4db84b(0xab,0x284,_0x2dff14._0x24830b,_0x2dff14._0x5429ec)](0x0,0xa)['map']((_0x42b547,_0x2af37b)=>[_0x42b547[_0x4db84b(0x6,0x1e2,-0x94,0xe7)],_0x31d94c[_0x2af37b]]));return _0x3d5723[_0x4db84b(0xf7,0x24a,_0x2dff14._0x280349,_0x2dff14._0x4b684c)](_0x25fe08=>_0x1cf9f4['get'](_0x25fe08[_0x5425d2(-0x14d,-0x15d,-0x7f,-0x11d)])??_0x25fe08);}function formatResults(_0x137e04){const _0x5af35b={_0x50fa32:0x9c,_0x2ae6a5:0x5e,_0x268610:0x4ee,_0x262e18:0x444,_0x3df02f:0x50,_0x3d2abe:0x4da,_0x3504fe:0x49a},_0x4729bb={_0x51be22:0x5d9,_0x50cccf:0x42b,_0x46cd45:0x5e6,_0x3e98ee:0x542,_0x3fa8b0:0x500,_0x49e404:0x505,_0x5c7c48:0x3c7,_0x238071:0x333,_0x185595:0x44f,_0x4aa701:0x6e4,_0x2caa38:0x5af,_0x24e216:0x652,_0x1110eb:0x6aa,_0x385618:0x496,_0x4c9232:0x63c,_0x43fe92:0x64a,_0x3753a2:0x551},_0x11eadc={_0x53687b:0x53,_0x31de6d:0x138},_0x2b0528={_0x239850:0x1d9,_0x41b794:0x5c1},_0x2fb7c1={_0x5222b5:0x17},_0x3a9c1b={_0x201746:0x123,_0x20624d:0x2f};function _0x2ef095(_0x411ac1,_0x149908,_0x26e0e4,_0x59dff1){return _0x26f978(_0x411ac1-_0x3a9c1b._0x201746,_0x149908-_0x3a9c1b._0x20624d,_0x26e0e4-0x2a6,_0x59dff1);}function _0x1637a9(_0x20bfbd,_0x58b65c,_0xa520d0,_0x27f7d6){return _0x199ce4(_0x27f7d6- -0x22,_0x58b65c-0x7c,_0x58b65c,_0x27f7d6-_0x2fb7c1._0x5222b5);}if(_0x137e04[_0x1637a9(-0x12c,-_0x5af35b._0x50fa32,-0xd6,-_0x5af35b._0x2ae6a5)]===0x0)return _0x2ef095(_0x5af35b._0x268610,0x53f,_0x5af35b._0x262e18,0x56e);return _0x137e04[_0x1637a9(0x102,_0x5af35b._0x3df02f,-0xdc,-0x35)](_0x3182e3=>{const _0x24c07f=[_0x3182e3[_0x2e877e(0x63f,0x5e3,_0x4729bb._0x51be22,0x615)][_0x2e877e(0x50e,_0x4729bb._0x50cccf,_0x4729bb._0x46cd45,_0x4729bb._0x3e98ee)]+'.\x20'+_0x3182e3['title'],_0x3182e3[_0x2e877e(_0x4729bb._0x3fa8b0,0x52a,0x3a0,_0x4729bb._0x49e404)]];function _0x2e877e(_0x4dda95,_0x1540d4,_0x102133,_0x1ddb37){return _0x1637a9(_0x4dda95-0x1c,_0x102133,_0x102133-_0x2b0528._0x239850,_0x1ddb37-_0x2b0528._0x41b794);}if(_0x3182e3[_0x2e877e(_0x4729bb._0x5c7c48,0x65f,0x3c5,0x4ea)])_0x24c07f[_0x2e877e(_0x4729bb._0x238071,0x5b9,_0x4729bb._0x185595,0x447)](_0x3182e3['snippet']);if(_0x3182e3[_0x2e877e(_0x4729bb._0x4aa701,0x529,0x6f6,_0x4729bb._0x2caa38)])_0x24c07f['push'](_0x2e877e(0x5eb,_0x4729bb._0x24e216,0x5f9,_0x4729bb._0x1110eb)+_0x3182e3[_0x271691(0x43a,_0x4729bb._0x385618,0x473,0x53b)]);function _0x271691(_0x271cc2,_0x54d412,_0x16dbbb,_0x54b2e5){return _0x1637a9(_0x271cc2-_0x11eadc._0x53687b,_0x54b2e5,_0x16dbbb-_0x11eadc._0x31de6d,_0x54d412-0x4a8);}return _0x24c07f[_0x2e877e(0x536,_0x4729bb._0x4c9232,_0x4729bb._0x43fe92,_0x4729bb._0x3753a2)]('\x0a');})[_0x2ef095(0x574,0x55c,_0x5af35b._0x3d2abe,_0x5af35b._0x3504fe)]('\x0a\x0a');}async function searchOllama(_0x267f7d,_0x54b37f,_0x3e6f2d){const _0x308b84={_0x5becfd:0x294,_0x2c9843:0x134,_0xfd1354:0x6a7,_0x2b18e8:0x6e2,_0x19e21b:0x626,_0x5561b9:0x4c7,_0x292924:0x4f8,_0x410c29:0x609,_0x55b882:0x4e5,_0x118350:0x549,_0x4f3cac:0x1b5,_0xb269df:0x197,_0x56fae9:0x62f,_0x550a5c:0x68a,_0x387935:0x7cf,_0x40cdac:0x63e,_0x4cc321:0x5b2,_0x2447db:0x5a3,_0x127c16:0x4f0,_0x599087:0x37b},_0x1e53f5={_0x32f4eb:0x4c5,_0x5d96fd:0x5a2,_0x2ecad9:0x4f5,_0x40b226:0x411,_0x558f34:0x611,_0x388854:0x12b},_0x4ce287={_0x3fd774:0x88},_0x384947={_0x53de29:0xf0,_0x23f1e9:0x7},_0x4264df={_0x216972:0xbd,_0x2a893c:0x87};function _0x1d462c(_0x405a3e,_0x179b2a,_0xd03c3e,_0x5c33f2){return _0x199ce4(_0x5c33f2-_0x4264df._0x216972,_0x179b2a-_0x4264df._0x2a893c,_0xd03c3e,_0x5c33f2-0x1c3);}const _0x4203dc=Math[_0x1d462c(_0x308b84._0x5becfd,0x201,-0x33,_0x308b84._0x2c9843)](0x1,Math['min'](0xa,_0x54b37f[_0x448378(_0x308b84._0xfd1354,_0x308b84._0x2b18e8,_0x308b84._0x19e21b,0x5de)]));function _0x448378(_0x51e7e9,_0x46e8a1,_0x22151c,_0x141bc9){return _0x26f978(_0x51e7e9-_0x384947._0x53de29,_0x46e8a1-_0x384947._0x23f1e9,_0x46e8a1-0x343,_0x22151c);}const _0x2e1d82=addSiteFilters(_0x54b37f[_0x448378(0x48c,_0x308b84._0x5561b9,_0x308b84._0x292924,_0x308b84._0x410c29)],_0x54b37f[_0x448378(0x5d6,0x4ec,_0x308b84._0x55b882,_0x308b84._0x118350)]),_0x1e0418=await fetchJson('https://ollama.com/api/web_search',_0x3e6f2d,{'method':_0x1d462c(0x253,_0x308b84._0x4f3cac,0x28c,_0x308b84._0xb269df),'headers':{'Authorization':'Bearer\x20'+_0x267f7d[_0x448378(_0x308b84._0x56fae9,_0x308b84._0x550a5c,_0x308b84._0x387935,0x535)]},'body':JSON['stringify']({'query':_0x2e1d82,'max_results':_0x4203dc})}),_0x2313b2=_0x1e0418[_0x448378(0x693,_0x308b84._0x40cdac,_0x308b84._0x4cc321,_0x308b84._0x2447db)]??[],_0x1649c6=_0x2313b2['map']((_0x302af7,_0x4175cd)=>{function _0x45a720(_0x44981b,_0x40c1b5,_0x385720,_0x483e7e){return _0x448378(_0x44981b-0xd2,_0x44981b- -0x66,_0x40c1b5,_0x483e7e-0x1b2);}const _0x5793d5=_0x302af7[_0x45a720(_0x1e53f5._0x32f4eb,0x4e8,0x46d,_0x1e53f5._0x5d96fd)]||'';let _0xa8184b;function _0x1a801c(_0x3eb35c,_0x344a44,_0x2ea18e,_0x8bb4fe){return _0x1d462c(_0x3eb35c-_0x4ce287._0x3fd774,_0x344a44-0xee,_0x2ea18e,_0x344a44-0x198);}try{_0xa8184b=new URL(_0x5793d5)[_0x45a720(0x559,_0x1e53f5._0x2ecad9,_0x1e53f5._0x40b226,_0x1e53f5._0x558f34)];}catch{_0xa8184b=null;}return{'title':_0x302af7[_0x1a801c(0x1f9,_0x1e53f5._0x388854,0x1c9,0x6d)]||'Untitled','url':normalizeUrl(_0x5793d5),'snippet':_0x302af7[_0x1a801c(0x1b0,0x27f,0x2b5,0x310)]??null,'displayUrl':_0xa8184b,'favicon':null,'publishedAt':null,'source':{'engine':_0x45a720(0x48a,0x4c0,0x32b,0x4d6),'rank':_0x4175cd+0x1}};});return{'items':_0x1649c6['slice'](0x0,_0x4203dc),'engine':_0x448378(0x420,_0x308b84._0x127c16,_0x308b84._0x599087,0x4da)};}async function searchTavily(_0x204ae0,_0x3d655a,_0x19ea12){const _0x3a9956={_0x137956:0x520,_0xbce72f:0x48e,_0xa39cc9:0x41d,_0x2c1e51:0x2d4,_0xe70ba4:0x265,_0xb80e2:0x16a,_0x33e9ea:0x2d5,_0xac4ea3:0x38d,_0x26dc7c:0x443,_0x577a05:0x53f,_0x128b72:0x566,_0x6f62ab:0x3f3,_0x118a9d:0x566,_0x5603b1:0x4ac,_0x5372fe:0x4f1,_0x160c6e:0x3e8,_0x753550:0x55c,_0x1ce560:0x58a,_0x1a2eb4:0x420,_0x37b586:0x445,_0x1c83b8:0x77e,_0x5ce136:0x66b,_0x3ba2ec:0x4b6,_0x5a5a9b:0x62c,_0x133673:0x666,_0x1da221:0x650,_0x47ddeb:0x4a1,_0x1a7f1a:0x59a},_0x587cfb={_0x177022:0x37d,_0x3fcd0c:0x2a9,_0x2a87fb:0x56b,_0xccb439:0x54b,_0x156b65:0x659,_0x25d433:0x509,_0x3022a1:0x3fd,_0x837a81:0x30b,_0x3581f3:0x3ef,_0x4cad71:0x4c7},_0x107fcd={_0x298231:0x9e,_0x217d5a:0xc4},_0x328384={_0x26ab14:0x24,_0x50d870:0x3bd};function _0x1196f0(_0x210a79,_0x90ff2b,_0x1e2ac2,_0x25f40f){return _0x26f978(_0x210a79-0x8e,_0x90ff2b-_0x328384._0x26ab14,_0x25f40f-_0x328384._0x50d870,_0x90ff2b);}const _0x5ed9db=Math[_0x4775cd(_0x3a9956._0x137956,_0x3a9956._0xbce72f,0x410,0x3bd)](0x1,Math[_0x4775cd(0x336,_0x3a9956._0xa39cc9,0x1c5,_0x3a9956._0x2c1e51)](0x14,_0x3d655a['count'])),_0x8996d2={'query':_0x3d655a['query'],'max_results':_0x5ed9db,'search_depth':_0x204ae0['searchDepth']??'basic','topic':_0x204ae0[_0x4775cd(_0x3a9956._0xe70ba4,_0x3a9956._0xb80e2,0x233,_0x3a9956._0x33e9ea)]??_0x4775cd(_0x3a9956._0xac4ea3,0x3aa,0x575,_0x3a9956._0x26dc7c)};if(_0x3d655a[_0x1196f0(0x4a3,_0x3a9956._0x577a05,0x65a,_0x3a9956._0x128b72)][_0x4775cd(0x36d,0x33f,0x402,0x30a)]>0x0)_0x8996d2[_0x4775cd(0xf0,0x332,0x2df,0x1fa)]=_0x3d655a[_0x1196f0(0x5ba,_0x3a9956._0x6f62ab,0x692,_0x3a9956._0x118a9d)];const _0xfff675=await fetchJson(_0x1196f0(_0x3a9956._0x5603b1,0x3dd,_0x3a9956._0x5372fe,0x507),_0x19ea12,{'method':_0x4775cd(_0x3a9956._0x160c6e,_0x3a9956._0x753550,_0x3a9956._0x1ce560,_0x3a9956._0x1a2eb4),'headers':{'Authorization':_0x1196f0(_0x3a9956._0x37b586,0x4e8,0x6a7,0x590)+_0x204ae0[_0x1196f0(_0x3a9956._0x1c83b8,0x758,0x57a,_0x3a9956._0x5ce136)],'Content-Type':'application/json'},'body':JSON[_0x4775cd(0x3b5,0x3f7,0x479,_0x3a9956._0x3ba2ec)](_0x8996d2)}),_0x3b1a3c=_0xfff675['results']??[];function _0x4775cd(_0x373d98,_0x337184,_0x5014f3,_0x4c4b20){return _0x26f978(_0x373d98-_0x107fcd._0x298231,_0x337184-0x5c,_0x4c4b20-_0x107fcd._0x217d5a,_0x337184);}const _0x4caf73=_0x3b1a3c[_0x1196f0(0x4d5,0x78c,0x79d,_0x3a9956._0x5a5a9b)]((_0x24be4d,_0x25cef0)=>{const _0x277e15={_0xace6f6:0x57},_0x4b39b6={_0x587d0e:0x17c};function _0x212538(_0x3677ea,_0x2e50ff,_0x9a44a7,_0x57f28a){return _0x1196f0(_0x3677ea-0x113,_0x2e50ff,_0x9a44a7-_0x4b39b6._0x587d0e,_0x9a44a7- -0x26c);}const _0x39a6cc=_0x24be4d['url']||'';let _0xfc14ae;try{_0xfc14ae=new URL(_0x39a6cc)[_0x212538(_0x587cfb._0x177022,0x440,0x3cd,0x325)];}catch{_0xfc14ae=null;}function _0x42ff09(_0x57d089,_0x59f18d,_0x41d66f,_0xfc9522){return _0x4775cd(_0x57d089-0x126,_0x57d089,_0x41d66f-_0x277e15._0xace6f6,_0x41d66f- -0xca);}return{'title':_0x24be4d[_0x212538(0x2d9,0x145,_0x587cfb._0x3fcd0c,0x29d)]||_0x212538(0x472,_0x587cfb._0x2a87fb,_0x587cfb._0xccb439,_0x587cfb._0x156b65),'url':normalizeUrl(_0x39a6cc),'snippet':_0x24be4d[_0x212538(_0x587cfb._0x25d433,0x443,_0x587cfb._0x3022a1,0x4c5)]??null,'displayUrl':_0xfc14ae,'favicon':null,'publishedAt':null,'source':{'engine':_0x42ff09(0x3f3,_0x587cfb._0x837a81,_0x587cfb._0x3581f3,_0x587cfb._0x4cad71),'rank':_0x25cef0+0x1}};});return{'items':_0x4caf73[_0x1196f0(_0x3a9956._0x133673,0x5f4,0x4eb,_0x3a9956._0x1da221)](0x0,_0x5ed9db),'engine':_0x4775cd(_0x3a9956._0x47ddeb,_0x3a9956._0x1a7f1a,0x504,0x4b9)};}async function searchGoogleCse(_0x8c847a,_0x9282b0,_0x1a2d18){const _0x58cdf5={_0x4532e1:0x1c9,_0x5c8276:0x9b,_0x1432ee:0x19d,_0x27b71a:0x19f,_0x2395c1:0x280,_0x2fb1f9:0x158,_0x55db38:0x185,_0x51d750:0x146,_0x110c73:0xb1,_0x1636d7:0xe0,_0x396420:0x21,_0x2aac92:0x19a,_0x18fb0f:0x125,_0x1c48b4:0x1df,_0x4f9ccf:0x9e,_0x375143:0x89,_0x1febe1:0xcf,_0x3cf6b3:0xb3,_0x34864a:0x2e2,_0x3f9831:0x16c,_0x5124ca:0xce,_0x38531f:0xe8,_0x2423f4:0x91,_0x4973c8:0xa,_0x195db2:0x1a5,_0x1aa568:0x8d,_0x329323:0x0,_0x5bb58f:0x176,_0x8b2f7f:0x17a,_0x32614c:0x264,_0x102903:0x26,_0x857d73:0xb8,_0x3bc223:0x115,_0x4f39c3:0xf8,_0x5a56db:0x26,_0x22ac6a:0x3b,_0x1d4630:0x28,_0x433080:0x82,_0x405683:0x140,_0x235d95:0x31,_0x44fc04:0x84,_0x411bdc:0x3e,_0x41c178:0x5a,_0xb28e1d:0x51,_0xdb9383:0x31,_0x1dac69:0x6c,_0x3382f2:0x132,_0x4977a5:0x19e,_0x3d11f7:0x4e,_0xe37135:0x4a,_0x2399b6:0x273,_0x2747cf:0x2ea,_0xe378a6:0x233,_0x3b7710:0x228,_0x228667:0x31,_0x39afbb:0x14,_0x424c40:0x16,_0x5904bd:0x78,_0x24d401:0x7d,_0x5cb22e:0x34,_0x383eb1:0x2c1,_0x402316:0x38,_0x22c24b:0x11,_0x102da9:0xed,_0xbd9b72:0x188,_0x375efc:0x109,_0x334e30:0xee,_0x22291a:0x29c,_0x529641:0x1a9,_0x52dd5e:0x27a,_0x4fec84:0x16d,_0x3ce4a7:0x26,_0x5c86c9:0x163,_0xb4a9c2:0xfa,_0x27fe2e:0xa6,_0x53f34c:0x79,_0x35c963:0x2b9,_0x4c9316:0x16c,_0x11c65a:0x9a,_0x208f7c:0x2e7,_0x24c7bf:0xda,_0x28489b:0xfc,_0x1b69e2:0x207,_0x74ef2e:0x26,_0x528661:0x11b,_0x59ea81:0x267,_0x39514c:0x26f,_0x5bc6b7:0x15a,_0x3dbd79:0x2a,_0x410cd9:0x15f,_0x4da722:0xa1,_0x200ee1:0xe9,_0x21eb6b:0x3c,_0x540747:0x16e,_0x530a21:0x145,_0x356367:0x8b,_0x2de403:0x279,_0x37d8b6:0xb9,_0x230e4e:0xc1,_0x4750ec:0xb,_0x427024:0xb2,_0x4de313:0x12a,_0x53fa67:0xb0,_0x432046:0x1aa,_0x2d88ee:0xf7,_0x5a6566:0xf9,_0x1ed942:0x37,_0x438416:0x85,_0x34fe3b:0x171,_0x1bc5b5:0xcc,_0x18061b:0xd8,_0x125517:0x1cd,_0x4420c3:0x130,_0x3c2b2c:0x260,_0x32d07f:0x81,_0xae0a28:0x11f,_0xc0ff0c:0x51,_0xd90483:0x1cb,_0xf7a884:0x75,_0x1f5677:0x199,_0x459971:0x102},_0x2b6f2f={_0xb72f5f:0xc6,_0x1b641e:0x13e},_0x3ff86c={_0x5033d7:0x101},_0x16510a=Math[_0x114604(-_0x58cdf5._0x4532e1,0x98,-_0x58cdf5._0x5c8276,-0x4f)](0x1,Math[_0x370b38(0xe,-0x123,-0x1,-0x15e)](0x32,_0x9282b0[_0x370b38(_0x58cdf5._0x1432ee,0x69,_0x58cdf5._0x27b71a,_0x58cdf5._0x2395c1)]));function _0x370b38(_0x407448,_0x3f0d1d,_0x3775de,_0x1f90c3){return _0x199ce4(_0x407448-0x80,_0x3f0d1d-0x1ca,_0x1f90c3,_0x1f90c3-_0x3ff86c._0x5033d7);}if(_0x9282b0[_0x114604(-_0x58cdf5._0x2fb1f9,-_0x58cdf5._0x55db38,-_0x58cdf5._0x51d750,-0x167)]+_0x16510a>0x64)throw new ToolExecutionError(_0x370b38(_0x58cdf5._0x110c73,_0x58cdf5._0x1636d7,-0x98,0x11f),{'offset':_0x9282b0[_0x370b38(-_0x58cdf5._0x396420,-_0x58cdf5._0x2aac92,-0x149,-_0x58cdf5._0x18fb0f)],'count':_0x16510a,'maxResults':0x64});function _0x114604(_0x4e38c9,_0x19ba36,_0x4ee870,_0x1536f6){return _0x199ce4(_0x1536f6- -_0x2b6f2f._0xb72f5f,_0x19ba36-_0x2b6f2f._0x1b641e,_0x19ba36,_0x1536f6-0xf);}const _0x16ad4e=cseDateRestrict(_0x9282b0[_0x370b38(_0x58cdf5._0x1c48b4,_0x58cdf5._0x4f9ccf,0xbf,0x2f9)]),_0x3c9eca=addSiteFilters(_0x9282b0[_0x370b38(-0x7e,_0x58cdf5._0x375143,-0xfa,_0x58cdf5._0x1febe1)],_0x9282b0['domains']);let _0x336127=0x0,_0x2225d9=_0x9282b0[_0x370b38(-0x21,-0x11e,-0xce,-0x162)]+0x1;const _0x20431d=[];while(_0x336127<_0x16510a){const _0x539936=Math[_0x114604(-0x1a,-_0x58cdf5._0x3cf6b3,-0x1f8,-0x138)](0xa,_0x16510a-_0x336127),_0x18171e=new URL(_0x370b38(0xf1,-0x84,0x21a,0x144));_0x18171e[_0x114604(-_0x58cdf5._0x34864a,-0x1c8,-0x104,-_0x58cdf5._0x3f9831)]['set'](_0x114604(0x12c,_0x58cdf5._0x5124ca,-0x1c,0xa5),_0x8c847a['googleCseKey']),_0x18171e[_0x370b38(-0x26,_0x58cdf5._0x38531f,_0x58cdf5._0x2423f4,-_0x58cdf5._0x4973c8)]['set']('cx',_0x8c847a[_0x114604(-0x141,-0xd2,-0xd2,-_0x58cdf5._0x195db2)]),_0x18171e[_0x370b38(-0x26,_0x58cdf5._0x1aa568,_0x58cdf5._0x329323,-_0x58cdf5._0x5bb58f)][_0x370b38(_0x58cdf5._0x8b2f7f,0x2ec,0xa7,_0x58cdf5._0x32614c)]('q',_0x3c9eca),_0x18171e[_0x370b38(-_0x58cdf5._0x102903,0x13c,-_0x58cdf5._0x857d73,-0x16c)][_0x114604(-_0x58cdf5._0x3bc223,-_0x58cdf5._0x4f39c3,-0x1d,0x34)](_0x370b38(0x1b3,0x23d,0x286,0x1d3),String(_0x539936)),_0x18171e[_0x370b38(-_0x58cdf5._0x5a56db,-_0x58cdf5._0x22ac6a,-_0x58cdf5._0x1d4630,_0x58cdf5._0x433080)][_0x114604(0x103,_0x58cdf5._0x405683,_0x58cdf5._0x235d95,0x34)](_0x114604(-_0x58cdf5._0x44fc04,-_0x58cdf5._0x411bdc,-0xf6,-_0x58cdf5._0x41c178),String(_0x2225d9)),_0x18171e[_0x114604(-_0x58cdf5._0xb28e1d,-0x48,-_0x58cdf5._0x4f9ccf,-0x16c)]['set'](_0x370b38(_0x58cdf5._0xdb9383,-_0x58cdf5._0x1dac69,_0x58cdf5._0x3382f2,0x5c),_0x9282b0[_0x370b38(0x31,_0x58cdf5._0x4977a5,-_0x58cdf5._0x3d11f7,-_0x58cdf5._0xe37135)]?_0x114604(-_0x58cdf5._0x2399b6,-_0x58cdf5._0x2747cf,-_0x58cdf5._0xe378a6,-_0x58cdf5._0x3b7710):_0x114604(-_0x58cdf5._0x228667,0xbb,0x58,-0xb8));_0x9282b0[_0x370b38(-_0x58cdf5._0x39afbb,_0x58cdf5._0x424c40,-0x15e,-_0x58cdf5._0x5904bd)]&&(_0x18171e['searchParams'][_0x114604(-_0x58cdf5._0x24d401,0xe2,0x183,_0x58cdf5._0x5cb22e)]('hl',_0x9282b0[_0x114604(-_0x58cdf5._0x383eb1,-_0x58cdf5._0x402316,_0x58cdf5._0x22c24b,-0x15a)]),_0x18171e[_0x370b38(-0x26,_0x58cdf5._0x102da9,-_0x58cdf5._0xbd9b72,0x88)][_0x114604(-0xaa,-_0x58cdf5._0x375efc,_0x58cdf5._0x334e30,0x34)]('lr',_0x114604(-0x37a,-0xdd,-0x34d,-0x20a)+_0x9282b0[_0x114604(-0x21d,-_0x58cdf5._0x22291a,-_0x58cdf5._0x529641,-0x15a)]));if(_0x9282b0[_0x114604(-_0x58cdf5._0x52dd5e,-_0x58cdf5._0x4fec84,-0x243,-0x191)])_0x18171e[_0x370b38(-_0x58cdf5._0x3ce4a7,0x7b,-_0x58cdf5._0x5c86c9,-_0x58cdf5._0xb4a9c2)]['set']('gl',_0x9282b0['region'][_0x370b38(-_0x58cdf5._0x27fe2e,-0x4d,_0x58cdf5._0x53f34c,-0x80)]());if(_0x9282b0[_0x370b38(-0x99,0xdd,-0xfd,0x75)]==='images')_0x18171e[_0x114604(-0xbb,0x0,-_0x58cdf5._0x35c963,-_0x58cdf5._0x4c9316)][_0x370b38(_0x58cdf5._0x8b2f7f,_0x58cdf5._0x11c65a,_0x58cdf5._0x208f7c,0x26e)](_0x370b38(_0x58cdf5._0x24c7bf,0x8e,_0x58cdf5._0x28489b,0x1e2),_0x370b38(0x17f,0x203,_0x58cdf5._0x1b69e2,0x136));if(_0x16ad4e)_0x18171e[_0x370b38(-_0x58cdf5._0x74ef2e,-0xd1,-0x153,_0x58cdf5._0x528661)][_0x370b38(0x17a,_0x58cdf5._0x59ea81,0xc0,_0x58cdf5._0x39514c)](_0x114604(-_0x58cdf5._0x5bc6b7,-_0x58cdf5._0x3dbd79,-_0x58cdf5._0x410cd9,-0xf0),_0x16ad4e);const _0x44f64e=await fetchJson(_0x18171e[_0x370b38(0x67,0xce,_0x58cdf5._0x4da722,0x12b)](),_0x1a2d18),_0x1e276b=_0x44f64e[_0x114604(-0xe1,-0x128,-0x200,-_0x58cdf5._0x200ee1)]??[];if(_0x1e276b['length']===0x0)break;const _0xe5299c=_0x336127;for(let _0x16ca5a=0x0;_0x16ca5a<_0x1e276b['length'];_0x16ca5a++){const _0x4493ad=_0x1e276b[_0x16ca5a];if(!_0x4493ad)continue;const _0x3cae3e=_0x4493ad['link']||_0x4493ad[_0x114604(0x3e,0x130,-_0x58cdf5._0x21eb6b,0x39)]?.['contextLink']||'',_0x484eeb=_0x4493ad[_0x114604(-_0x58cdf5._0x540747,-0x18d,-0x2c0,-0x1f0)]||_0x4493ad[_0x370b38(0x17f,_0x58cdf5._0x530a21,_0x58cdf5._0x356367,_0x58cdf5._0x2de403)]?.[_0x370b38(-0xaa,-_0x58cdf5._0x37d8b6,_0x58cdf5._0x230e4e,_0x58cdf5._0x4750ec)]||_0x114604(0x8f,0x36,-0x2e,_0x58cdf5._0x427024),_0x13f4c4=_0x4493ad[_0x370b38(-0x35,0xe4,0xe0,_0x58cdf5._0x4de313)]||_0x4493ad['htmlSnippet']?.[_0x114604(-0x1d,-0x45,-_0x58cdf5._0x53fa67,-0xab)](/<[^>]+>/g,''),_0x2bbcf9=_0x4493ad['pagemap']?.[_0x370b38(_0x58cdf5._0x432046,_0x58cdf5._0x2d88ee,_0x58cdf5._0x5a6566,0x1c3)]?.[0x0]??{};let _0x3fa321;try{_0x3fa321=new URL(_0x3cae3e)[_0x114604(_0x58cdf5._0x1ed942,-_0x58cdf5._0x438416,-_0x58cdf5._0x34fe3b,-_0x58cdf5._0x1bc5b5)];}catch{_0x3fa321=null;}_0x20431d[_0x370b38(-_0x58cdf5._0x18061b,-_0x58cdf5._0x125517,_0x58cdf5._0x4973c8,-0xbf)]({'title':_0x484eeb,'url':normalizeUrl(_0x3cae3e),'snippet':_0x13f4c4??null,'displayUrl':_0x3fa321,'favicon':null,'publishedAt':_0x2bbcf9['article:published_time']||_0x2bbcf9[_0x370b38(_0x58cdf5._0x4420c3,_0x58cdf5._0x3c2b2c,0xff,0x166)]||null,'source':{'engine':_0x370b38(-0xd3,_0x58cdf5._0x32d07f,-_0x58cdf5._0xae0a28,_0x58cdf5._0xc0ff0c),'rank':_0xe5299c+_0x16ca5a+0x1}});}_0x336127+=_0x1e276b['length'],_0x2225d9+=_0x1e276b['length'];if(_0x1e276b[_0x114604(-_0x58cdf5._0xd90483,-_0x58cdf5._0xf7a884,-_0x58cdf5._0x1f5677,-_0x58cdf5._0x459971)]<_0x539936)break;}return _0x20431d['slice'](0x0,_0x16510a);}function isGoogleCseEngine(_0x472a49){const _0x55584e={_0x2ca8a1:0x4d8},_0x206734={_0x18abe3:0xd};function _0x54faa0(_0x3b7103,_0x575a24,_0x264b32,_0x1f2362){return _0x199ce4(_0x1f2362-0x645,_0x575a24-0xb6,_0x575a24,_0x1f2362-_0x206734._0x18abe3);}return _0x54faa0(0x37a,0x5e7,0x51c,_0x55584e._0x2ca8a1)in _0x472a49;}function isOllamaEngine(_0x37dba3){const _0x19414a={_0x3c294c:0x6df,_0x2d3150:0x6d7},_0x423fd3={_0x349856:0xa0};function _0x5688e6(_0x13b4a4,_0x12b19f,_0x2b308d,_0x3b346b){return _0x26f978(_0x13b4a4-0x14e,_0x12b19f-_0x423fd3._0x349856,_0x2b308d-0x398,_0x13b4a4);}return _0x5688e6(0x665,0x600,_0x19414a._0x3c294c,_0x19414a._0x2d3150)in _0x37dba3;}function isTavilyEngine(_0x444f93){const _0x48182f={_0x4c0229:0x36};function _0x4e08ca(_0x14a875,_0x380ff8,_0x1e6974,_0x40435a){return _0x26f978(_0x14a875-0xfc,_0x380ff8-0xff,_0x14a875-_0x48182f._0x4c0229,_0x40435a);}return _0x4e08ca(0x2e4,0x261,0x43b,0x2aa)in _0x444f93;}function createWebSearchTool(_0x3b7824){const _0x1afb8b={_0xb00711:0x3f2,_0x5a1aaa:0x4ec,_0xd6aa3b:0x3c0,_0x45c6f2:0x4d8,_0x5a83d2:0x4f6,_0x4e548d:0x55c,_0x5b0db6:0x5a1,_0x311c06:0x38b,_0x12985b:0x261,_0x57dd84:0x1d1,_0xafa83a:0x2c4,_0x28ee2c:0x2da,_0x282a0c:0x318,_0x2a72d3:0x36d,_0x29d3c5:0x35f,_0xf40347:0x60d,_0x4d2efc:0x4de,_0x330155:0x464,_0x1c976f:0x671,_0x3c5df1:0x3fe,_0x23c0a3:0x505,_0x5db8a6:0x3bc,_0x5539c5:0x2f4,_0x4ff8b8:0x4b6,_0x3baaf0:0x365,_0x2de85f:0x1e9,_0x1bf588:0x402,_0x562807:0x287,_0x58df7e:0x400,_0x195b50:0x52a,_0xb3cdb1:0x413,_0x434868:0x321,_0x1f1f1d:0x127,_0x2f7d18:0x16f,_0x9191df:0x103,_0xf7f423:0x8d},_0x291aeb={_0x145091:0xf1,_0x2824b0:0xbf,_0x19c83d:0xbf,_0x1ac80e:0x135,_0x82d02f:0xe,_0x3658cd:0x3e,_0x2ae136:0x275,_0x3f4074:0xfe,_0x5a737a:0x1b0,_0x1370e1:0xdb,_0x38b14c:0x10a,_0x14750e:0x8b,_0x58c263:0xca,_0x305c9c:0x3a,_0x3379ba:0x52,_0x45f76d:0x162,_0x3c05d3:0x13e,_0x137f91:0x46,_0x3db041:0xb0,_0x598fba:0x1b7,_0x41fcfe:0x6e,_0x33ab5a:0xf6,_0xdceb36:0x1da,_0x11d5d0:0x4c,_0x25cfa0:0xd8,_0x29bd13:0x8c,_0x5716fe:0x5a,_0x114163:0x38,_0x104d33:0x112,_0x2ccb20:0xa0,_0x5bb6ab:0x8c,_0x2f9099:0x14a,_0x1464be:0x216,_0x383636:0xde,_0xce4e6d:0x74,_0x41c0c3:0xa5,_0x5e2e7c:0x67,_0x4895a6:0x247,_0x48eba6:0x2d2,_0x28b2ab:0x238,_0x3e1080:0xea,_0x133f97:0x3b,_0x4c5c2a:0xd2,_0x3cf5a9:0xc8,_0x1bb99d:0x167,_0x1103d0:0x2b0,_0x5a9f80:0xcf,_0x53037a:0x25b,_0x42bc53:0x39,_0x1c66ce:0xd1,_0x5a0ee5:0x225,_0x5821a6:0x14e,_0xdadca8:0xf6,_0x1a6493:0x229,_0x5a2261:0x20,_0x257bc4:0xfd,_0x3b37a6:0x2c,_0x1a2bfe:0x10f,_0x17c45b:0x31,_0x21ba24:0x113,_0x4b2875:0x207,_0x562dcf:0x3c,_0x52abe3:0xcd,_0x3cb1a3:0x167,_0x48b7b1:0xd8,_0x8e12bd:0xb3,_0x3a1fb8:0x93,_0x9c8eee:0x272,_0x2c67eb:0x97,_0x18c36:0x2c0,_0x692886:0x413,_0x13c9fd:0x286,_0x3cd7ff:0x257},_0x2db9ff={_0x1021dd:0x862,_0x53ca89:0x719,_0x5d24ac:0x660,_0x1b8dfe:0x7ec,_0x3c2c14:0x3e1,_0x2ec171:0x458},_0x40eec0={_0x431b44:0x134};if(!_0x3b7824['engines']||_0x3b7824[_0x1ff9ab(_0x1afb8b._0xb00711,0x620,_0x1afb8b._0x5a1aaa,_0x1afb8b._0xd6aa3b)]['length']===0x0)throw new Error(_0x1ff9ab(_0x1afb8b._0x45c6f2,_0x1afb8b._0x5a83d2,_0x1afb8b._0x4e548d,_0x1afb8b._0x5b0db6));function _0x4e0a0f(_0x1465cd,_0x303edb,_0x45c4a1,_0x21ed8a){return _0x199ce4(_0x45c4a1-0x201,_0x303edb-_0x40eec0._0x431b44,_0x21ed8a,_0x21ed8a-0x4a);}const _0x33be73=_0x3b7824[_0x4e0a0f(0x15f,0x266,0x141,0x1dc)]??_0x4e0a0f(0x3bd,_0x1afb8b._0x311c06,_0x1afb8b._0x12985b,_0x1afb8b._0x57dd84),_0x3271fa=_0x3b7824[_0x1ff9ab(0x24f,_0x1afb8b._0xafa83a,_0x1afb8b._0x28ee2c,0x1c5)];function _0x1ff9ab(_0x1f9acd,_0x154a34,_0x346f90,_0x5ae94a){return _0x26f978(_0x1f9acd-0x4e,_0x154a34-0x83,_0x346f90-0x1c6,_0x154a34);}return defineTool({'name':_0x33be73,'description':_0x1ff9ab(0x20d,0x318,_0x1afb8b._0x282a0c,0x1fb),'inputSchema':{'type':_0x4e0a0f(0x443,0x48b,_0x1afb8b._0x2a72d3,0x2bc),'properties':{'description':{'type':_0x1ff9ab(_0x1afb8b._0x29d3c5,_0x1afb8b._0xf40347,0x4ce,0x3ad)},'query':{'type':'string'},'count':{'type':_0x1ff9ab(_0x1afb8b._0x4d2efc,_0x1afb8b._0x330155,0x552,_0x1afb8b._0x1c976f)},'offset':{'type':_0x1ff9ab(0x645,_0x1afb8b._0x3c5df1,0x552,_0x1afb8b._0x23c0a3)},'domains':{'type':_0x1ff9ab(0x2d6,0x2bb,_0x1afb8b._0x5db8a6,_0x1afb8b._0x5539c5),'items':{'type':_0x1ff9ab(_0x1afb8b._0x4ff8b8,0x35b,0x4ce,_0x1afb8b._0x3baaf0)}},'recencyDays':{'type':_0x4e0a0f(_0x1afb8b._0x2de85f,_0x1afb8b._0x1bf588,0x30b,0x21e)},'lang':{'type':'string'},'region':{'type':_0x4e0a0f(0x158,0x16e,_0x1afb8b._0x562807,0x30e)},'safe':{'type':_0x4e0a0f(0x5e,0x13a,0x1cc,0x2e4)},'type':{'type':_0x4e0a0f(0x1a0,_0x1afb8b._0x58df7e,0x287,0x311)},'hydrateMeta':{'type':_0x1ff9ab(0x33d,_0x1afb8b._0x195b50,_0x1afb8b._0xb3cdb1,_0x1afb8b._0x434868)}},'required':[_0x4e0a0f(_0x1afb8b._0x1f1f1d,_0x1afb8b._0x2f7d18,_0x1afb8b._0x9191df,_0x1afb8b._0xf7f423)]},async *'execute'(_0x2f12fe,_0x16fc13){const _0x5d2b0d={_0xb3ceed:0x1de,_0x15dfad:0x1b7},_0x2a8c8d={_0x5183fc:0x6c3,_0x45e8d3:0x81},_0xbb027={_0x127052:0xda,_0x3bd508:0x1e2};function _0x53a22f(_0x1b7657,_0x27184e,_0x4cc369,_0x228b9e){return _0x1ff9ab(_0x1b7657-_0xbb027._0x127052,_0x228b9e,_0x27184e- -0x2a5,_0x228b9e-_0xbb027._0x3bd508);}const _0x52fedb=_0x2f12fe[_0x4e8db9(-_0x291aeb._0x145091,-0x22a,-0x167,-0x136)]['trim']();if(!_0x52fedb)throw new ToolExecutionError(_0x4e8db9(-0x7a,0x69,-_0x291aeb._0x2824b0,0xa0));const _0x1b9b6a={'query':_0x52fedb,'count':Math[_0x4e8db9(_0x291aeb._0x19c83d,_0x291aeb._0x1ac80e,_0x291aeb._0x82d02f,_0x291aeb._0x3658cd)](0x1,Math[_0x53a22f(0x32,0x131,_0x291aeb._0x2ae136,0x60)](0x32,Math['trunc'](_0x2f12fe[_0x4e8db9(0x154,_0x291aeb._0x3f4074,0xb4,0x105)]??0xa))),'offset':Math['max'](0x0,Math[_0x4e8db9(_0x291aeb._0x5a737a,0x159,0xb0,0x1a0)](_0x2f12fe[_0x4e8db9(-_0x291aeb._0x1370e1,-0xe4,-_0x291aeb._0x38b14c,-0x1e8)]??0x0)),'domains':_0x2f12fe[_0x53a22f(_0x291aeb._0x14750e,_0x291aeb._0x58c263,0x192,-_0x291aeb._0x305c9c)]??[],'recencyDays':Math[_0x4e8db9(_0x291aeb._0x3379ba,-0xf,0xe,_0x291aeb._0x45f76d)](0x0,Math[_0x4e8db9(_0x291aeb._0x3c05d3,_0x291aeb._0x137f91,_0x291aeb._0x3db041,-0xb9)](_0x2f12fe[_0x4e8db9(_0x291aeb._0x598fba,-_0x291aeb._0x41fcfe,_0x291aeb._0x33ab5a,-0x2a)]??0x0)),'lang':_0x2f12fe[_0x53a22f(_0x291aeb._0xdceb36,0x10f,-_0x291aeb._0x11d5d0,0x26a)]??'en','region':_0x2f12fe[_0x53a22f(0x1af,_0x291aeb._0x25cfa0,-_0x291aeb._0x29bd13,0xeb)]??'','safe':_0x2f12fe[_0x53a22f(-0x3,0x154,0x276,0xf)]??!![],'type':normalizeType(_0x2f12fe['type']),'hydrateMeta':_0x2f12fe[_0x4e8db9(-_0x291aeb._0x5716fe,-_0x291aeb._0x114163,_0x291aeb._0x104d33,0x11d)]??![]};let _0x51261a=[],_0x5a233a='unknown';for(const _0x4bbe1f of _0x3b7824['engines']){try{if(isGoogleCseEngine(_0x4bbe1f))_0x51261a=await searchGoogleCse(_0x4bbe1f,_0x1b9b6a,_0x16fc13[_0x53a22f(0xc2,0xd1,-0xa9,_0x291aeb._0x2ccb20)]),_0x5a233a='google-cse';else{if(isOllamaEngine(_0x4bbe1f)){const _0x65f99b=await searchOllama(_0x4bbe1f,_0x1b9b6a,_0x16fc13[_0x53a22f(_0x291aeb._0xdceb36,0xd1,0x6f,0xeb)]);_0x51261a=_0x65f99b[_0x4e8db9(0x55,0xd2,-_0x291aeb._0x5bb6ab,_0x291aeb._0x1370e1)],_0x5a233a=_0x65f99b[_0x4e8db9(_0x291aeb._0x2f9099,-0x3f,0xa0,0x173)];}else{if(isTavilyEngine(_0x4bbe1f)){const _0x14961a=await searchTavily(_0x4bbe1f,_0x1b9b6a,_0x16fc13[_0x53a22f(_0x291aeb._0x1464be,0xd1,_0x291aeb._0x383636,-0x42)]);_0x51261a=_0x14961a[_0x53a22f(0x1e1,0x180,0x130,_0x291aeb._0xce4e6d)],_0x5a233a=_0x14961a['engine'];}}}if(_0x51261a[_0x4e8db9(-0x221,-0xcf,-_0x291aeb._0x41c0c3,-_0x291aeb._0x5e2e7c)]>0x0)break;}catch(_0x42ba99){if(_0x4bbe1f===_0x3b7824[_0x53a22f(0x1fd,_0x291aeb._0x4895a6,_0x291aeb._0x48eba6,_0x291aeb._0x28b2ab)][_0x3b7824[_0x4e8db9(-_0x291aeb._0x3e1080,-0xc1,_0x291aeb._0x133f97,_0x291aeb._0x4c5c2a)][_0x53a22f(_0x291aeb._0x3cf5a9,_0x291aeb._0x1bb99d,_0x291aeb._0x1103d0,_0x291aeb._0x5a9f80)]-0x1])throw _0x42ba99;}}function _0x4e8db9(_0x399d1f,_0x183612,_0x46a015,_0x29f2f6){return _0x4e0a0f(_0x399d1f-0x30,_0x183612-0x1ea,_0x46a015- -0x26a,_0x399d1f);}_0x1b9b6a['hydrateMeta']&&_0x51261a[_0x53a22f(_0x291aeb._0x53037a,0x167,_0x291aeb._0xce4e6d,0x15d)]>0x0&&(_0x51261a=await hydrateResults(_0x51261a,_0x1b9b6a['lang'],_0x16fc13[_0x53a22f(-_0x291aeb._0x42bc53,_0x291aeb._0x1c66ce,_0x291aeb._0x5a0ee5,_0x291aeb._0x5821a6)],_0x3271fa));const _0x48798c=new Set();_0x51261a=_0x51261a['filter'](_0x1d29f0=>{const _0x3daa15=_0x1d29f0['url'][_0x59b01e(_0x2db9ff._0x1021dd,_0x2db9ff._0x53ca89,_0x2db9ff._0x5d24ac,_0x2db9ff._0x1b8dfe)]();function _0x59b01e(_0x53d28a,_0x2295d2,_0x416de4,_0x1244b1){return _0x4e8db9(_0x1244b1,_0x2295d2-0xca,_0x2295d2-_0x2a8c8d._0x5183fc,_0x1244b1-_0x2a8c8d._0x45e8d3);}if(!_0x3daa15||_0x48798c['has'](_0x3daa15))return![];function _0x37e999(_0x5316c2,_0x25fe58,_0x587598,_0x41dd7b){return _0x53a22f(_0x5316c2-_0x5d2b0d._0xb3ceed,_0x25fe58-0x1bd,_0x587598-_0x5d2b0d._0x15dfad,_0x587598);}return _0x48798c[_0x37e999(0x5af,0x49b,_0x2db9ff._0x3c2c14,_0x2db9ff._0x2ec171)](_0x3daa15),!![];}),_0x51261a=_0x51261a[_0x53a22f(0x243,0x190,0xd1,0x125)]((_0x586161,_0x37664c)=>({..._0x586161,'source':{..._0x586161[_0x4e8db9(0x2e,-0xcb,0xd,-0x13f)],'rank':_0x37664c+0x1}}));const _0x2232fa={};if(_0x1b9b6a['domains']['length']>0x0)_0x2232fa['domains']=_0x1b9b6a[_0x53a22f(0x22e,_0x291aeb._0x58c263,0xc3,0xcd)];if(_0x1b9b6a[_0x4e8db9(0x155,0xf4,_0x291aeb._0xdadca8,_0x291aeb._0x1a6493)]>0x0)_0x2232fa['recencyDays']=_0x1b9b6a['recencyDays'];if(_0x1b9b6a[_0x4e8db9(-0x26c,_0x291aeb._0x5a2261,-_0x291aeb._0x257bc4,-0xe4)]!=='en')_0x2232fa['lang']=_0x1b9b6a[_0x53a22f(-_0x291aeb._0x3b37a6,_0x291aeb._0x1a2bfe,-_0x291aeb._0x17c45b,0x99)];if(_0x1b9b6a['region'])_0x2232fa[_0x4e8db9(-_0x291aeb._0x21ba24,-0x288,-0x134,-_0x291aeb._0x4b2875)]=_0x1b9b6a[_0x53a22f(-_0x291aeb._0x562dcf,0xd8,0x183,0x24f)];return yield createToolOutput(formatResults(_0x51261a),{'engine':_0x5a233a,'count':_0x51261a[_0x53a22f(_0x291aeb._0x52abe3,_0x291aeb._0x3cb1a3,_0x291aeb._0x48b7b1,0x160)],'items':_0x51261a,'query':_0x1b9b6a[_0x53a22f(-_0x291aeb._0x8e12bd,0xa5,_0x291aeb._0x3a1fb8,0x7e)],...Object[_0x53a22f(_0x291aeb._0x9c8eee,0x158,_0x291aeb._0x2c67eb,0x172)](_0x2232fa)['length']>0x0?{'appliedFilters':_0x2232fa}:{},'offset':_0x1b9b6a['offset'],'totalRequested':_0x1b9b6a[_0x53a22f(0x249,_0x291aeb._0x18c36,_0x291aeb._0x692886,0x19b)],'hydrated':_0x1b9b6a[_0x4e8db9(_0x291aeb._0x13c9fd,_0x291aeb._0x3cd7ff,0x112,0x1e5)]}),void 0x0;}});}export{BackgroundProcessRegistry,ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashOutputTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createKillShellTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};