@nuvin/agent-core 0.0.0-rc.8 → 0.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-3QLMAAJY.js +1 -0
- package/dist/chunk-4DNIDCX7.js +1 -1
- package/dist/chunk-G2FR4UGO.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +2 -2
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +3 -4
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-BGVEzrOK.d.ts → provider-adapters-NxiNWlxu.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/{types-mpqTRf_e.d.ts → types-Bb2eVtsy.d.ts} +12 -9
- package/package.json +2 -2
- package/dist/chunk-KVFXQ7HW.js +0 -1
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x38d419,_0x1e0110){const _0x4213c5={_0x1ae2f5:0x60,_0x400570:0xad,_0x47c029:0x9f,_0x55ca26:0x1b5,_0x1f592c:0x130,_0x20bc63:0x471,_0x503d44:0x400,_0x20254b:0x48,_0x68c553:0x5e4,_0x55f01e:0x4e2,_0x315e70:0x489,_0x3414b0:0x4a2,_0x56f340:0x2f5,_0x111a79:0x46c,_0x371a9c:0x198,_0x63bc11:0xde,_0x294b78:0x6c,_0x4d11b5:0x654,_0xfcc22f:0x535,_0x14d6c9:0x602,_0x2c7edf:0x12e,_0x14aba4:0xa6},_0x426dd8={_0x4a3552:0x238},_0x1d97ec={_0xf140c:0x1e8},_0x582d36=_0x38d419();function _0x3ea3d9(_0x8775ba,_0x219034,_0x1ed715,_0x23285e){return _0x20ac(_0x8775ba-_0x1d97ec._0xf140c,_0x1ed715);}function _0x5cc145(_0x4afdfa,_0x2c5e4a,_0xc9eb53,_0x431942){return _0x20ac(_0x4afdfa- -_0x426dd8._0x4a3552,_0x2c5e4a);}while(!![]){try{const _0x422773=parseInt(_0x5cc145(0x12,-0xae,-0xd9,-_0x4213c5._0x1ae2f5))/0x1*(-parseInt(_0x5cc145(0x184,0xc6,0x242,_0x4213c5._0x400570))/0x2)+-parseInt(_0x5cc145(_0x4213c5._0x47c029,-0x96,-0x35,0x13e))/0x3*(parseInt(_0x5cc145(_0x4213c5._0x55ca26,0x1cd,0x11c,_0x4213c5._0x1f592c))/0x4)+parseInt(_0x3ea3d9(_0x4213c5._0x20bc63,0x4c1,0x538,_0x4213c5._0x503d44))/0x5+parseInt(_0x5cc145(0x88,0x83,_0x4213c5._0x20254b,-0xa3))/0x6*(parseInt(_0x3ea3d9(_0x4213c5._0x68c553,_0x4213c5._0x55f01e,0x62e,0x6c7))/0x7)+parseInt(_0x3ea3d9(0x5a1,_0x4213c5._0x315e70,_0x4213c5._0x3414b0,0x65a))/0x8*(-parseInt(_0x3ea3d9(0x3b6,_0x4213c5._0x56f340,0x486,_0x4213c5._0x111a79))/0x9)+-parseInt(_0x5cc145(_0x4213c5._0x371a9c,0x83,_0x4213c5._0x63bc11,_0x4213c5._0x294b78))/0xa+parseInt(_0x3ea3d9(0x61f,_0x4213c5._0x4d11b5,_0x4213c5._0xfcc22f,_0x4213c5._0x14d6c9))/0xb*(parseInt(_0x5cc145(-0x16,-_0x4213c5._0x2c7edf,-_0x4213c5._0x14aba4,0x8a))/0xc);if(_0x422773===_0x1e0110)break;else _0x582d36['push'](_0x582d36['shift']());}catch(_0x43a4a9){_0x582d36['push'](_0x582d36['shift']());}}}(_0x8b5e,0xce253));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-KVFXQ7HW.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x51bc1c from'path';var EXTENSION_TO_LANGUAGE={'.ts':'typescript','.tsx':_0x2803df(-0xac,-0x147,0x6c,-0xe4),'.js':'javascript','.jsx':_0x34fd29(0x470,0x59f,0x560,0x516),'.mjs':_0x2803df(0x9f,0x19b,-0x2a,-0x2d),'.cjs':_0x2803df(0x9f,0x134,0x1b3,-0x85),'.mts':_0x2803df(-0x15d,-0x1de,-0x77,-0x10b),'.cts':_0x34fd29(0x640,0x45d,0x4e5,0x52b),'.json':_0x2803df(0xd,0x27,0x11b,-0x6d),'.jsonc':_0x2803df(-0xfa,-0xb8,-0x1bb,0x1f)};function getLanguageId(_0x260771){const _0x367021={_0x3fa934:0x93,_0x2ae836:0x69,_0xd4c30:0x107},_0x4aa8c3={_0x3e053b:0x1e9,_0x4f25a7:0x5cd};function _0x222fbe(_0x505c28,_0x2756b2,_0x59d318,_0x24e53e){return _0x34fd29(_0x59d318,_0x2756b2-_0x4aa8c3._0x3e053b,_0x59d318-0x30,_0x24e53e- -_0x4aa8c3._0x4f25a7);}return EXTENSION_TO_LANGUAGE[_0x51bc1c[_0x222fbe(_0x367021._0x3fa934,_0x367021._0x2ae836,_0x367021._0xd4c30,-0x7)](_0x260771)['toLowerCase']()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x38dcdb){return pathToFileURL(_0x38dcdb)['toString']();}function textDocumentPosition(_0x362d1f){const _0x384151={_0x5b3ce8:0x35c,_0x1b911e:0x7a,_0x4ed6e6:0x2b9,_0x536d75:0x84,_0x208eda:0xd2,_0x217a18:0x9},_0x1116bd={_0x19ad39:0x2b,_0x2a795b:0x42,_0x21da9f:0x106},_0x4d97a0={_0x170b8f:0x411,_0x4a5a68:0x8b};function _0xa89850(_0x232c57,_0x17f23f,_0x21dd37,_0x581dca){return _0x2803df(_0x581dca-_0x4d97a0._0x170b8f,_0x21dd37,_0x21dd37-0x14d,_0x581dca-_0x4d97a0._0x4a5a68);}function _0xab6988(_0x8c7db6,_0x3efe93,_0x32d5a6,_0x2aefb9){return _0x2803df(_0x2aefb9- -_0x1116bd._0x19ad39,_0x32d5a6,_0x32d5a6-_0x1116bd._0x2a795b,_0x2aefb9-_0x1116bd._0x21da9f);}return{'textDocument':{'uri':uriForPath(_0x362d1f[_0xa89850(_0x384151._0x5b3ce8,0x4a0,0x287,0x3ce)])},'position':{'line':_0x362d1f[_0xab6988(-_0x384151._0x1b911e,-0x25e,-_0x384151._0x4ed6e6,-0x175)],'character':_0x362d1f[_0xab6988(0x137,_0x384151._0x536d75,-_0x384151._0x208eda,_0x384151._0x217a18)]}};}function normalizeLocations(_0x39303e){const _0x539722={_0x29e9ae:0x561},_0x237795={_0x259861:0x4f0,_0x542fcb:0x11e};function _0x2d637d(_0x41ec89,_0x3495c7,_0x455cb2,_0x69d58e){return _0x2803df(_0x41ec89-_0x237795._0x259861,_0x69d58e,_0x455cb2-0xa9,_0x69d58e-_0x237795._0x542fcb);}if(!_0x39303e)return[];return Array[_0x2d637d(0x4de,0x436,0x509,_0x539722._0x29e9ae)](_0x39303e)?_0x39303e:[_0x39303e];}async function createLspClient(_0x33674e){const _0x2a45b3={_0x405b90:0x4da,_0x10eada:0x5f1,_0x291d89:0x4e7,_0x1596e0:0x405,_0x31f228:0x4fd,_0x2dbf79:0x3ac,_0x38eaeb:0x482,_0x91e690:0x35a,_0x222142:0x45e,_0x59f130:0x593,_0x2daec8:0x49a,_0x3c162f:0x52f,_0x88e176:0x475,_0x49d00d:0x47d,_0x3e6df1:0x41c,_0x3cfa88:0x420,_0x4d9c7f:0x3f7,_0x2896be:0x3f4,_0x531440:0x46f,_0x4530ab:0x5eb,_0x3b52ed:0x4cc,_0x4d1393:0x6ee,_0x3b5c19:0x5eb,_0x242ef2:0x55e,_0x3b8700:0x5e9,_0x53ddb7:0x5df,_0x27515a:0x54e,_0x53474d:0x405,_0x5c0a1b:0x3a4,_0x35e42a:0x549,_0x8ae839:0x5e4,_0x5a99d0:0x30a,_0x2137bc:0x58c,_0x4eaf3d:0x59e,_0x49ce56:0x462,_0x4e331d:0x4bd,_0x30e4e0:0x32a,_0x418708:0x56b,_0x875195:0x55a,_0x5951ba:0x63c,_0x16680d:0x5a5},_0x5eaca0={_0x1fb74e:0x97,_0x28b681:0xa5,_0x31384e:0x1c3,_0x988c93:0x124,_0x17b86b:0xad,_0x2f569e:0x96,_0x22d1b4:0x38,_0xaa4c63:0x1a8,_0x176874:0x2db,_0x5ded47:0xe3,_0xe00a0c:0x117,_0xb5b9f5:0x249,_0x4ca17f:0x8c,_0x16d0bc:0x6b,_0x341685:0x46,_0x2cce7e:0xb3},_0x5b6e0c={_0x27aebd:0x80},_0x1fc31d={_0x174637:0x142,_0x4319a7:0xd6,_0x423d85:0x177,_0x2bc78e:0x1f3},_0x21f7da={_0x2d43b1:0x92,_0xd9b5:0x423},_0x51ee1c={_0x228877:0x18d,_0x4b841b:0x274},_0x5b1119={_0x271384:0x1c},_0x3b6c11={_0x17f492:0xd5,_0x510c26:0x49,_0x59dce3:0x2a,_0x4c0211:0xa0,_0x56aa57:0x59},_0x328756={_0x2d85de:0x530,_0x533c90:0x61d,_0x1ddfa7:0x479,_0x17582c:0x4c4,_0x1b0404:0x4c7},_0x90defe={_0x4114a6:0xd6},_0x311328={_0x37a1ea:0x333,_0x1cfb30:0x1db,_0x2be086:0x299,_0x382e01:0x1de},_0x327a7e={_0x446922:0x185},_0xb6eb6c={_0x2a5210:0x169},_0x170ae7={_0x186254:0x1ad,_0x262e5d:0x235,_0x193e57:0x23d},_0x49063e={_0x1d6d35:0x12},_0x4d61db={_0x41fa9d:0x275,_0x339410:0x116},_0x2a1276={_0x27c869:0x211,_0x4ea0cd:0x31a,_0x5e15a2:0x133},_0x379cc9={_0x57148a:0x486,_0x36e55e:0x38d,_0x55dbd8:0x27a,_0x1e206e:0x288,_0x365bc1:0xde},_0x21708b={_0x3c3c86:0x261,_0x4e28fa:0xeb,_0x1750fe:0x14d},_0x5d5786={_0x33a171:0x2ba,_0x132e67:0x353},_0x250323={_0x24c9e3:0x17b,_0x2dbd95:0x2f6,_0x64652b:0x21c},_0x1c22f6={_0x57c5ce:0x9c},_0x45cc74={_0x44b7d1:0x281,_0x529777:0x1b3,_0x41c207:0x1f7,_0x1614f1:0x591,_0x5d57f8:0x4a9},_0x494a32={_0x22bfc5:0x170,_0x16a580:0x18f},_0x218c84={_0x79bad:0x5c},_0x2c950e={_0x858eb9:0x576,_0x2f006c:0x4f1,_0x2cf799:0x342,_0x183852:0x161,_0x123427:0x234},_0x171b6c={_0x4089dc:0x2dc,_0x443eca:0x2e1,_0x505a6c:0x3b8,_0x2c61a1:0x421,_0x5f3384:0x486,_0x4e6bf7:0x1c7,_0x4f3f31:0x2cc,_0x44f659:0x1fd,_0x4f6d86:0x340,_0x2f9de2:0x3a1,_0x539443:0x208,_0x4868f8:0x360},_0x96a7f1={_0x20a12a:0x21},_0x3fa144={_0x31be44:0x10a,_0x280608:0x1e3},_0x32df9f=_0x33674e['handle']['process'][_0x360666(_0x2a45b3._0x405b90,_0x2a45b3._0x10eada,0x4f7,_0x2a45b3._0x291d89)];function _0x360666(_0x456c94,_0x391d3b,_0x510c20,_0x527328){return _0x34fd29(_0x391d3b,_0x391d3b-_0x3fa144._0x31be44,_0x510c20-_0x3fa144._0x280608,_0x456c94- -0x16f);}const _0xa89cbd=_0x33674e[_0x360666(_0x2a45b3._0x1596e0,0x4cd,_0x2a45b3._0x31f228,_0x2a45b3._0x2dbf79)][_0x48861e(0x389,0x4a2,_0x2a45b3._0x38eaeb,_0x2a45b3._0x91e690)]['stdin'];function _0x48861e(_0x3710f1,_0x4b6fcb,_0x4b5ad5,_0x33b733){return _0x2803df(_0x4b6fcb-0x510,_0x33b733,_0x4b5ad5-0x16a,_0x33b733-_0x96a7f1._0x20a12a);}if(!_0x32df9f||!_0xa89cbd)throw new Error(_0x360666(_0x2a45b3._0x222142,0x588,0x4b4,0x4c6));const _0x14bff7=createMessageConnection(new StreamMessageReader(_0x32df9f),new StreamMessageWriter(_0xa89cbd)),_0x1dd223=new Map(),_0xc6d480=new Map();let _0x55f2a6=![];_0x14bff7['onNotification'](_0x360666(0x45c,_0x2a45b3._0x59f130,0x519,_0x2a45b3._0x2daec8),_0x4d081e=>{const _0x23f072={_0x92daca:0x1c9},_0x52ac43={_0x3f7dbc:0x91};_0x1dd223[_0x54f7e9(0x2ba,_0x171b6c._0x4089dc,_0x171b6c._0x443eca,_0x171b6c._0x505a6c)](_0x4d081e[_0x54f7e9(0x340,0x347,_0x171b6c._0x2c61a1,_0x171b6c._0x5f3384)],_0x4d081e[_0x54f7e9(_0x171b6c._0x4e6bf7,_0x171b6c._0x4f3f31,_0x171b6c._0x44f659,0x9e)]);const _0x5133fa=_0xc6d480['get'](_0x4d081e[_0x54f7e9(_0x171b6c._0x4f6d86,_0x171b6c._0x2f9de2,_0x171b6c._0x539443,0x36b)]);if(!_0x5133fa)return;function _0x54f7e9(_0x4f7bf5,_0x3f153a,_0x56bb06,_0x316a2c){return _0x360666(_0x4f7bf5- -0x1ed,_0x3f153a,_0x56bb06-_0x52ac43._0x3f7dbc,_0x316a2c-0x22);}_0xc6d480['delete'](_0x4d081e[_0x54f7e9(0x340,0x233,0x297,_0x171b6c._0x4868f8)]);function _0x2d69c8(_0x281b5e,_0x542c6d,_0x339287,_0x38a0ae){return _0x48861e(_0x281b5e-_0x23f072._0x92daca,_0x339287-0x220,_0x339287-0x1c8,_0x281b5e);}for(const _0x553fbc of _0x5133fa)_0x553fbc();}),_0x14bff7[_0x360666(0x430,_0x2a45b3._0x3c162f,_0x2a45b3._0x88e176,_0x2a45b3._0x49d00d)]();const _0x13589c=await _0x14bff7[_0x360666(0x3da,0x485,_0x2a45b3._0x3e6df1,_0x2a45b3._0x3cfa88)]('initialize',{'processId':process[_0x360666(_0x2a45b3._0x4d9c7f,_0x2a45b3._0x2896be,0x53a,_0x2a45b3._0x531440)],'rootUri':uriForPath(_0x33674e[_0x48861e(0x659,_0x2a45b3._0x4530ab,0x622,_0x2a45b3._0x3b52ed)]),'workspaceFolders':[{'uri':uriForPath(_0x33674e[_0x48861e(_0x2a45b3._0x4d1393,_0x2a45b3._0x3b5c19,0x4e2,_0x2a45b3._0x242ef2)]),'name':_0x33674e[_0x48861e(0x68c,_0x2a45b3._0x3b8700,_0x2a45b3._0x53ddb7,_0x2a45b3._0x27515a)]['id']}],'initializationOptions':_0x33674e[_0x360666(_0x2a45b3._0x53474d,_0x2a45b3._0x5c0a1b,0x3d9,_0x2a45b3._0x35e42a)][_0x48861e(_0x2a45b3._0x8ae839,0x59d,0x578,0x54e)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x48861e(0x2f2,0x3f6,_0x2a45b3._0x5a99d0,0x42a),_0x360666(_0x2a45b3._0x2137bc,_0x2a45b3._0x4eaf3d,_0x2a45b3._0x49ce56,0x6b2)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x14bff7[_0x48861e(_0x2a45b3._0x4e331d,0x42d,0x33d,_0x2a45b3._0x30e4e0)](_0x360666(_0x2a45b3._0x418708,0x47e,_0x2a45b3._0x875195,_0x2a45b3._0x5951ba),{});const _0x2b7459={'serverId':_0x33674e['server']['id'],'root':_0x33674e[_0x360666(0x5f4,0x573,_0x2a45b3._0x16680d,0x642)],'connection':_0x14bff7,'diagnostics':_0x1dd223,'capabilities':_0x13589c['capabilities']??{},'notify':{async 'open'({path:_0x2b11e2}){const _0x1e0816={_0x3397ca:0x19a,_0x205c91:0x197},_0x19deb2={_0x7c298:0x18f};function _0x3b4cf3(_0x3e9f1d,_0x5b20f5,_0xacc7bf,_0x169358){return _0x360666(_0x169358- -0x1f3,_0x3e9f1d,_0xacc7bf-0xed,_0x169358-_0x19deb2._0x7c298);}function _0xdfd625(_0x314d12,_0xb935fc,_0x2e20c2,_0x4a630a){return _0x360666(_0x2e20c2-0xfe,_0x314d12,_0x2e20c2-_0x1e0816._0x3397ca,_0x4a630a-_0x1e0816._0x205c91);}const _0x1ef675=await readFile(_0x2b11e2,_0xdfd625(_0x2c950e._0x858eb9,0x431,0x4ef,_0x2c950e._0x2f006c));_0x14bff7['sendNotification'](_0x3b4cf3(0x17e,_0x2c950e._0x2cf799,_0x2c950e._0x183852,_0x2c950e._0x123427),{'textDocument':{'uri':uriForPath(_0x2b11e2),'languageId':getLanguageId(_0x2b11e2)??_0xdfd625(0x580,0x615,0x68a,0x67b),'version':0x1,'text':_0x1ef675}});},async 'change'({path:_0x151132,version:_0x4f551e}){const _0xaa71b0=await readFile(_0x151132,_0x1ae10f(_0x45cc74._0x44b7d1,0x2a9,0x1d2,_0x45cc74._0x529777));function _0x3cee52(_0x2a4007,_0x108bc2,_0x3ff860,_0x457493){return _0x48861e(_0x2a4007-0x12e,_0x457493- -_0x218c84._0x79bad,_0x3ff860-0x19e,_0x2a4007);}function _0x1ae10f(_0x4ff5c8,_0x35ca3c,_0x2bccf6,_0x132d49){return _0x360666(_0x4ff5c8- -_0x494a32._0x22bfc5,_0x132d49,_0x2bccf6-0x14,_0x132d49-_0x494a32._0x16a580);}_0x14bff7[_0x1ae10f(0x2c6,0x326,_0x45cc74._0x41c207,0x220)](_0x3cee52(0x3b9,0x51f,_0x45cc74._0x1614f1,_0x45cc74._0x5d57f8),{'textDocument':{'uri':uriForPath(_0x151132),'version':_0x4f551e},'contentChanges':[{'text':_0xaa71b0}]});},async 'close'({path:_0x27e7e5}){const _0x5b8589={_0x42df7c:0x1b6,_0xf01544:0x1c7};function _0x1ad00a(_0x468304,_0x3bee18,_0x54d511,_0x1401ae){return _0x48861e(_0x468304-_0x5b8589._0x42df7c,_0x1401ae- -0x371,_0x54d511-_0x5b8589._0xf01544,_0x54d511);}function _0x4d5608(_0x44f384,_0x4683a9,_0xe6f57,_0x2f41f8){return _0x48861e(_0x44f384-_0x1c22f6._0x57c5ce,_0x44f384- -0xfc,_0xe6f57-0xa9,_0xe6f57);}_0x14bff7[_0x1ad00a(0x198,0x17c,_0x250323._0x24c9e3,0xbc)](_0x4d5608(_0x250323._0x2dbd95,_0x250323._0x64652b,0x1d2,0x280),{'textDocument':{'uri':uriForPath(_0x27e7e5)}});}},'request':{async 'definition'(_0x15c4d3){const _0x4a47e5={_0x38c3a1:0x1d2,_0x27e4f3:0x14f,_0x61b410:0x181};function _0x499679(_0x42230f,_0x1de1e6,_0x503817,_0x1ba4e6){return _0x360666(_0x42230f- -_0x4a47e5._0x38c3a1,_0x1ba4e6,_0x503817-_0x4a47e5._0x27e4f3,_0x1ba4e6-_0x4a47e5._0x61b410);}return normalizeLocations(await _0x14bff7['sendRequest'](_0x499679(0x3e9,_0x5d5786._0x33a171,0x4e8,_0x5d5786._0x132e67),textDocumentPosition(_0x15c4d3)));},async 'references'(_0x46e0cd){const _0x55be85={_0x439c65:0x16e,_0x5c16e8:0xb5,_0x4babd1:0x104};function _0x3a4aef(_0x1f2394,_0x459072,_0x4fec29,_0x1a1732){return _0x360666(_0x1f2394- -_0x21708b._0x3c3c86,_0x4fec29,_0x4fec29-_0x21708b._0x4e28fa,_0x1a1732-_0x21708b._0x1750fe);}function _0x4eb05c(_0x21063b,_0x1d2bf4,_0x2e0545,_0x176fac){return _0x48861e(_0x21063b-_0x55be85._0x439c65,_0x1d2bf4-_0x55be85._0x5c16e8,_0x2e0545-_0x55be85._0x4babd1,_0x2e0545);}return normalizeLocations(await _0x14bff7[_0x4eb05c(0x459,_0x379cc9._0x57148a,0x519,_0x379cc9._0x36e55e)](_0x3a4aef(0x147,_0x379cc9._0x55dbd8,_0x379cc9._0x1e206e,_0x379cc9._0x365bc1),{...textDocumentPosition(_0x46e0cd),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x4f5bbc){const _0x40d370={_0x306d31:0x98,_0x213762:0x5ac,_0x561718:0xeb};function _0x46c8ff(_0x33a4a8,_0x155256,_0x4ecc2f,_0x807e92){return _0x48861e(_0x33a4a8-_0x40d370._0x306d31,_0x155256- -_0x40d370._0x213762,_0x4ecc2f-_0x40d370._0x561718,_0x4ecc2f);}return await _0x14bff7['sendRequest'](_0x46c8ff(-0x1cb,-_0x2a1276._0x27c869,-_0x2a1276._0x4ea0cd,-_0x2a1276._0x5e15a2),textDocumentPosition(_0x4f5bbc))??null;},async 'documentSymbol'(_0x2bf4c1){function _0x3c6134(_0x22746e,_0x362b36,_0x24865f,_0x23f24d){return _0x48861e(_0x22746e-0x172,_0x22746e- -_0x4d61db._0x41fa9d,_0x24865f-_0x4d61db._0x339410,_0x362b36);}function _0x43ca5a(_0xb66230,_0x5a9056,_0x8804a7,_0x35e0bf){return _0x360666(_0x35e0bf- -0x17a,_0xb66230,_0x8804a7-_0x49063e._0x1d6d35,_0x35e0bf-0x122);}return await _0x14bff7[_0x43ca5a(_0x170ae7._0x186254,0x1a8,0x2a6,0x260)](_0x3c6134(_0x170ae7._0x262e5d,_0x170ae7._0x193e57,0x11f,0x2ff),{'textDocument':{'uri':uriForPath(_0x2bf4c1)}})??[];},async 'workspaceSymbol'(_0x2b8b6b){const _0x4e4ac2={_0x471d95:0x68};function _0x3178cf(_0x35e6bf,_0x2dff4d,_0x4d3ae8,_0x52299e){return _0x48861e(_0x35e6bf-0xc0,_0x2dff4d- -0x568,_0x4d3ae8-_0x4e4ac2._0x471d95,_0x4d3ae8);}return await _0x14bff7['sendRequest'](_0x3178cf(-0x11c,-0x1e5,-0x324,-_0xb6eb6c._0x2a5210),{'query':_0x2b8b6b})??[];},async 'implementation'(_0x185a5a){const _0x2da6e8={_0x5cf7f7:0xc,_0x226571:0x155,_0x149f0a:0x1d0};function _0x3241b9(_0x1298ce,_0x94528f,_0x2bf327,_0x530f81){return _0x48861e(_0x1298ce-_0x327a7e._0x446922,_0x530f81- -0x213,_0x2bf327-0x40,_0x94528f);}function _0x28179d(_0x22f83e,_0x1d7089,_0x589a8f,_0x28ff79){return _0x48861e(_0x22f83e-_0x2da6e8._0x5cf7f7,_0x589a8f- -_0x2da6e8._0x226571,_0x589a8f-_0x2da6e8._0x149f0a,_0x22f83e);}return normalizeLocations(await _0x14bff7[_0x28179d(0x1c5,_0x311328._0x37a1ea,0x27c,_0x311328._0x1cfb30)](_0x28179d(_0x311328._0x2be086,_0x311328._0x382e01,0x278,0x2fb),textDocumentPosition(_0x185a5a)));},async 'prepareCallHierarchy'(_0x202f72){function _0x4b9ff5(_0x48d9c5,_0x180918,_0x43ff4c,_0x3d5a43){return _0x360666(_0x180918-0x156,_0x43ff4c,_0x43ff4c-_0x90defe._0x4114a6,_0x3d5a43-0x1c2);}function _0x1db0b3(_0x32ef70,_0x3b325b,_0x52fd3a,_0x278175){return _0x48861e(_0x32ef70-0x112,_0x52fd3a- -0x10e,_0x52fd3a-0xc5,_0x3b325b);}return await _0x14bff7[_0x4b9ff5(0x4cb,_0x328756._0x2d85de,_0x328756._0x533c90,_0x328756._0x1ddfa7)](_0x1db0b3(0x5ae,0x5c5,_0x328756._0x17582c,_0x328756._0x1b0404),textDocumentPosition(_0x202f72))??[];},async 'incomingCalls'(_0x3d712b){const _0x8ba31c={_0x1d8784:0x2ca,_0x169936:0x4a},_0x235266={_0x34798c:0x1ba,_0x9d234f:0x2d};function _0x48d0fc(_0x428ca1,_0x125fef,_0xe825c2,_0xc958cf){return _0x360666(_0x428ca1- -0x4af,_0xc958cf,_0xe825c2-_0x235266._0x34798c,_0xc958cf-_0x235266._0x9d234f);}function _0x3427af(_0x1a8b3c,_0x86cfc3,_0x163419,_0x32be71){return _0x360666(_0x32be71- -_0x8ba31c._0x1d8784,_0x1a8b3c,_0x163419-0x117,_0x32be71-_0x8ba31c._0x169936);}return await _0x14bff7[_0x48d0fc(-_0x3b6c11._0x17f492,0x14,-_0x3b6c11._0x510c26,-_0x3b6c11._0x59dce3)](_0x48d0fc(-_0x3b6c11._0x4c0211,-0xf5,-0x1b7,_0x3b6c11._0x56aa57),{'item':_0x3d712b})??[];},async 'outgoingCalls'(_0x39760d){const _0x5b3c36={_0x49e2c9:0x142,_0x24897d:0x1e6};function _0x3eb650(_0x57ed3a,_0x1ffc7f,_0x5eb004,_0x2793ec){return _0x360666(_0x5eb004-_0x5b3c36._0x49e2c9,_0x1ffc7f,_0x5eb004-_0x5b3c36._0x24897d,_0x2793ec-0xed);}function _0x523f5e(_0x234043,_0xd7da08,_0x57a0e2,_0x58bb23){return _0x360666(_0x57a0e2- -0x24d,_0x58bb23,_0x57a0e2-0x7a,_0x58bb23-_0x5b1119._0x271384);}return await _0x14bff7[_0x523f5e(0x2a7,0x5b,_0x51ee1c._0x228877,0x88)](_0x523f5e(0x357,0x283,_0x51ee1c._0x4b841b,0x3b6),{'item':_0x39760d})??[];}},'waitForDiagnostics'({path:_0x14e4db,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0xc53228={_0x4220a6:0x6f6,_0x2b5ad0:0x751,_0x5a61e3:0x6bf,_0x4884b6:0x4bc,_0x123fad:0x147,_0x5b44ab:0x48},_0x236219={_0x4ab257:0x1e9,_0x291b11:0xfe},_0x2d5dcd={_0x22fdb5:0xe9,_0x2f3b94:0x64,_0x12d76d:0x47,_0x1225c4:0x149,_0x35d6a5:0x4a,_0x365a7b:0x85},_0xcdbd18={_0x2813de:0x1b9},_0x124021=uriForPath(_0x14e4db);if(_0x1dd223[_0x280d77(0x1b,0x1f5,_0x1fc31d._0x174637,0xd4)](_0x124021))return Promise[_0x1f7832(_0x1fc31d._0x4319a7,_0x1fc31d._0x423d85,_0x1fc31d._0x2bc78e,0xad)]();function _0x280d77(_0x1a6a76,_0x2f2542,_0x4a74b5,_0x5093ce){return _0x360666(_0x5093ce- -0x37d,_0x4a74b5,_0x4a74b5-_0xcdbd18._0x2813de,_0x5093ce-0xf9);}function _0x1f7832(_0x8ca34,_0x54c0c6,_0xbb8d9b,_0x2041b8){return _0x48861e(_0x8ca34-_0x21f7da._0x2d43b1,_0x8ca34- -_0x21f7da._0xd9b5,_0xbb8d9b-0x110,_0xbb8d9b);}return new Promise(_0x1e49be=>{const _0x1ff89b={_0x55019f:0x19a},_0x3b2543=setTimeout(()=>{const _0x32764b={_0x40c244:0x39b},_0xf8426d={_0x1502a0:0x3b1};function _0x3acff1(_0x501f01,_0x39a484,_0x4386d1,_0x4d8bda){return _0x20ac(_0x4386d1- -_0xf8426d._0x1502a0,_0x4d8bda);}const _0x5e46da=_0xc6d480[_0x2d8c8e(-0x9c,-_0x2d5dcd._0x22fdb5,-_0x2d5dcd._0x2f3b94,0xe)](_0x124021);function _0x2d8c8e(_0x1e4123,_0xef749c,_0xbfc4f0,_0x59e54b){return _0x20ac(_0xbfc4f0- -_0x32764b._0x40c244,_0x59e54b);}_0x5e46da?.['delete'](_0x5067d6);if(_0x5e46da?.[_0x2d8c8e(-0x9a,-0x99,-_0x2d5dcd._0x12d76d,-_0x2d5dcd._0x1225c4)]===0x0)_0xc6d480[_0x3acff1(-_0x2d5dcd._0x35d6a5,0x146,_0x2d5dcd._0x365a7b,0x30)](_0x124021);_0x1e49be();},timeoutMs),_0x5067d6=()=>{clearTimeout(_0x3b2543),_0x1e49be();},_0x16a2b3=_0xc6d480[_0x146e71(_0xc53228._0x4220a6,_0xc53228._0x2b5ad0,0x682,0x765)](_0x124021)??new Set();function _0x55fcb9(_0x26858e,_0x41fd06,_0x57189a,_0x12a9b9){return _0x1f7832(_0x12a9b9- -0x33,_0x41fd06-_0x1ff89b._0x55019f,_0x41fd06,_0x12a9b9-0xf6);}function _0x146e71(_0x3badd3,_0x59b7bd,_0x547dcd,_0x254fd5){return _0x280d77(_0x3badd3-_0x236219._0x4ab257,_0x59b7bd-_0x236219._0x291b11,_0x3badd3,_0x547dcd-0x4fb);}_0x16a2b3[_0x146e71(_0xc53228._0x5a61e3,0x6ca,0x5e0,_0xc53228._0x4884b6)](_0x5067d6),_0xc6d480[_0x55fcb9(0xce,_0xc53228._0x123fad,0x39,_0xc53228._0x5b44ab)](_0x124021,_0x16a2b3);});},async 'shutdown'(){const _0x2d37ca={_0x264c42:0x1b7,_0x1fd2ad:0x18d};if(_0x55f2a6)return;_0x55f2a6=!![];function _0x3676eb(_0x4a20b0,_0xe181e9,_0x14ffaa,_0x46dba9){return _0x360666(_0x46dba9- -0x3fe,_0xe181e9,_0x14ffaa-_0x2d37ca._0x264c42,_0x46dba9-_0x2d37ca._0x1fd2ad);}function _0x172060(_0x46c15d,_0x5f3535,_0x137d56,_0x144f89){return _0x360666(_0x46c15d- -0x343,_0x137d56,_0x137d56-_0x5b6e0c._0x27aebd,_0x144f89-0x95);}try{await _0x14bff7[_0x172060(_0x5eaca0._0x1fb74e,-_0x5eaca0._0x28b681,0x67,-0x13)](_0x172060(_0x5eaca0._0x31384e,0x95,_0x5eaca0._0x988c93,_0x5eaca0._0x17b86b),null),_0x14bff7[_0x3676eb(-_0x5eaca0._0x2f569e,-0xc0,-0xc7,_0x5eaca0._0x22d1b4)](_0x172060(_0x5eaca0._0xaa4c63,_0x5eaca0._0x176874,0xa8,_0x5eaca0._0x5ded47));}catch{}finally{_0x14bff7[_0x172060(_0x5eaca0._0xe00a0c,0x1f0,_0x5eaca0._0xb5b9f5,_0x5eaca0._0x4ca17f)](),_0x33674e[_0x3676eb(-_0x5eaca0._0x16d0bc,-0x78,-0xa5,0x7)][_0x3676eb(0x15b,_0x5eaca0._0x341685,-0x28,_0x5eaca0._0x17b86b)][_0x3676eb(_0x5eaca0._0x2cce7e,0x8d,-0x52,0xd4)]();}}};return _0x2b7459;}import{spawn as _0x4f46e5}from'child_process';import{access as _0x470b2d}from'fs/promises';import _0x1cd249 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x2cf92c from'os';import _0x436177 from'path';import _0x1a904d from'which';var installPromises=new Map();function sanitizePackageName(_0x3e9a09){const _0x3e06da={_0x3d3de6:0x22f,_0x7d80a3:0x1f,_0x5ce7e9:0x29d,_0x5e63ce:0x1c2,_0x34a4ae:0x6c},_0x3063ca={_0x32188c:0x1b9},_0x4e989f={_0x67ea68:0x6b,_0x144df4:0x182};function _0x325c8f(_0x53fa9d,_0xfb930e,_0xc50bc4,_0x14417e){return _0x2803df(_0x53fa9d-_0x4e989f._0x67ea68,_0xfb930e,_0xc50bc4-0x14d,_0x14417e-_0x4e989f._0x144df4);}function _0x2fa95d(_0x2431ca,_0x8f8385,_0x4952f9,_0x420302){return _0x2803df(_0x4952f9-_0x3063ca._0x32188c,_0x420302,_0x4952f9-0xd4,_0x420302-0x0);}return _0x3e9a09[_0x2fa95d(_0x3e06da._0x3d3de6,_0x3e06da._0x7d80a3,0x15c,_0x3e06da._0x5ce7e9)](/^@/,'')[_0x2fa95d(_0x3e06da._0x5e63ce,_0x3e06da._0x34a4ae,0x15c,0x1e7)](/[/]/g,'__');}function binaryNameForPlatform(_0x494b60){const _0x519951={_0x4a0bc5:0xb1,_0x1961e2:0x175,_0x339ab9:0x51,_0x1e8f1f:0x89,_0x427bec:0x86,_0xb49772:0x165,_0x4c3695:0xf5,_0x217e80:0xe7},_0x3f0839={_0x2a9b51:0x4b,_0x6f6161:0x62};function _0x4e0a2f(_0x505fb9,_0xde3b74,_0x27ac9f,_0x401a67){return _0x2803df(_0x505fb9-0xf7,_0x401a67,_0x27ac9f-0x11e,_0x401a67-0x5f);}function _0x8bc880(_0xe1f586,_0x41cd55,_0x2c1095,_0x12fead){return _0x2803df(_0x2c1095-0xd7,_0x41cd55,_0x2c1095-_0x3f0839._0x2a9b51,_0x12fead-_0x3f0839._0x6f6161);}return process[_0x8bc880(_0x519951._0x4a0bc5,_0x519951._0x1961e2,0x2d,-0x80)]===_0x4e0a2f(-_0x519951._0x339ab9,_0x519951._0x1e8f1f,-0xf1,_0x519951._0x427bec)?_0x494b60+_0x8bc880(_0x519951._0xb49772,-_0x519951._0x4c3695,0x2a,_0x519951._0x217e80):_0x494b60;}async function exists(_0x25fb86){try{return await access(_0x25fb86),!![];}catch{return![];}}function runNpmInstall(_0x1924b8,_0x594286,_0x13b2a){const _0x48020b={_0x41503f:0x2a4,_0x35214d:0x2ce,_0x30365a:0x3b9,_0x45110b:0x27e,_0x15e043:0x24b,_0x1a05f4:0x1d2,_0xcf9af9:0x435,_0x4e2e44:0x323,_0x5220b3:0x44d,_0x2d944a:0x24a,_0x481bfa:0x1cc,_0x25656c:0x299,_0x45009e:0x1e6,_0x5d7541:0x4c3,_0x4e7d8b:0x436,_0x4d500c:0x3bf};return new Promise(_0x2950e3=>{function _0x382a80(_0x1b64a9,_0x3f95be,_0x2ad5c2,_0x25e415){return _0x20ac(_0x3f95be- -0x119,_0x25e415);}const _0x3f66ff=spawn(_0x503f3d(_0x48020b._0x41503f,_0x48020b._0x35214d,_0x48020b._0x30365a,0x373),[_0x382a80(_0x48020b._0x45110b,0x293,0x233,0x222),_0x382a80(0x28b,_0x48020b._0x15e043,0x260,_0x48020b._0x1a05f4),_0x1924b8,_0x594286],{'env':_0x13b2a,'stdio':_0x382a80(_0x48020b._0xcf9af9,_0x48020b._0x4e2e44,0x2c0,_0x48020b._0x5220b3)});function _0x503f3d(_0x5b2657,_0x397070,_0x356db9,_0x27f2bf){return _0x20ac(_0x27f2bf- -0x5f,_0x356db9);}_0x3f66ff['on'](_0x503f3d(_0x48020b._0x2d944a,_0x48020b._0x481bfa,_0x48020b._0x25656c,_0x48020b._0x45009e),()=>_0x2950e3(![])),_0x3f66ff['on'](_0x503f3d(0x474,_0x48020b._0x5d7541,_0x48020b._0x4e7d8b,_0x48020b._0x4d500c),_0x12235d=>_0x2950e3(_0x12235d===0x0));});}function shouldDisableLspDownload(_0x512c3e=process[_0x2803df(0xdd,0x6,0x11,0x1bd)]){const _0x5a7e74={_0x3b560d:0x111,_0x29b6d0:0x3a,_0x17affa:0x509,_0x1c920b:0x403,_0x7711fd:0x179,_0x19928f:0xc6,_0x44e6e4:0x160,_0x36ca17:0x137,_0x27df87:0xa1,_0x19cc01:0x1c0},_0x591cb2={_0x2c7c31:0x1c1};function _0x8e584f(_0x1eeef7,_0x27d190,_0x188c66,_0x3d5826){return _0x2803df(_0x188c66-0x457,_0x1eeef7,_0x188c66-_0x591cb2._0x2c7c31,_0x3d5826-0x76);}const _0x17c37b=_0x512c3e[_0x165667(0xb0,_0x5a7e74._0x3b560d,-_0x5a7e74._0x29b6d0,0x17a)]?.[_0x8e584f(0x637,0x5d4,_0x5a7e74._0x17affa,_0x5a7e74._0x1c920b)]();function _0x165667(_0xd174f9,_0x1eb9b2,_0x3a7ecc,_0x5ec5a8){return _0x34fd29(_0x3a7ecc,_0x1eb9b2-0x121,_0x3a7ecc-0x15,_0xd174f9- -0x698);}return _0x17c37b===_0x165667(-_0x5a7e74._0x7711fd,-_0x5a7e74._0x19928f,-_0x5a7e74._0x44e6e4,-_0x5a7e74._0x36ca17)||_0x17c37b==='1'||_0x17c37b===_0x165667(-0x8b,_0x5a7e74._0x27df87,-_0x5a7e74._0x19cc01,0x51)||_0x17c37b==='on';}function getLspPackageDir(_0x5c36c1){const _0x56754f={_0x5c6cee:0x2d8,_0x5b23f7:0x27a,_0x4c9780:0x152,_0x2f8b7c:0x3d5},_0x2632ee={_0x1818ab:0x54a,_0x39383e:0x65,_0x473ec7:0xe8},_0x41910d={_0x54262d:0x14c,_0x48e2a0:0x133,_0x228b89:0x2c8};function _0x29d6a9(_0x3b9c7f,_0x296f21,_0x142eab,_0x4714b7){return _0x34fd29(_0x296f21,_0x296f21-_0x41910d._0x54262d,_0x142eab-_0x41910d._0x48e2a0,_0x142eab- -_0x41910d._0x228b89);}function _0x3eefde(_0x5a0f59,_0x100933,_0x1da877,_0xca264e){return _0x2803df(_0xca264e-_0x2632ee._0x1818ab,_0x5a0f59,_0x1da877-_0x2632ee._0x39383e,_0xca264e-_0x2632ee._0x473ec7);}return _0x436177[_0x3eefde(0x5ac,0x618,0x46d,0x597)](_0x2cf92c['homedir'](),_0x29d6a9(_0x56754f._0x5c6cee,0x157,0x258,0x2b6),_0x29d6a9(0x1fc,_0x56754f._0x5b23f7,0x288,_0x56754f._0x4c9780),_0x29d6a9(_0x56754f._0x2f8b7c,0x3fa,0x2ec,0x2bf),sanitizePackageName(_0x5c36c1));}function getLspBinDir(_0xc546d8){const _0x469673={_0x5daaa0:0x19f,_0x5a3ea8:0xa4,_0x47db1b:0x6c,_0x1d4be8:0x145},_0x582da7={_0x38447c:0x1c},_0x469919={_0xf8657b:0x156,_0x118df6:0x42};function _0x1a4091(_0x47918f,_0x2c6ab9,_0x5a94bf,_0xd96a8d){return _0x34fd29(_0x2c6ab9,_0x2c6ab9-_0x469919._0xf8657b,_0x5a94bf-0x1a7,_0xd96a8d- -_0x469919._0x118df6);}function _0xc40905(_0x23345e,_0x526785,_0xca297b,_0x2fa186){return _0x34fd29(_0x2fa186,_0x526785-0x11f,_0xca297b-_0x582da7._0x38447c,_0x526785- -0x567);}return _0x436177['join'](getLspPackageDir(_0xc546d8),_0xc40905(_0x469673._0x5daaa0,_0x469673._0x5a3ea8,-_0x469673._0x47db1b,0x13),_0xc40905(0x41,0x16f,0x3e,_0x469673._0x1d4be8));}async function findPackageBinary(_0x53a06b,_0x415fea){const _0x23635b={_0x41474d:0x5e7,_0x5ac92f:0x78,_0x2daf63:0x48,_0x54b9b5:0xe0,_0x104bc9:0x73,_0x153918:0x73,_0x4eef97:0x158,_0x423996:0x13e,_0x42cc5e:0x4ae,_0x18d17f:0x343},_0x594b79={_0x25570e:0x165,_0x5acdbd:0x1b},_0x1dbea7={_0xe643e1:0x548,_0x53d7a7:0x57};function _0x45e5da(_0xc0ec5d,_0x138c95,_0x3c9100,_0x30e3d5){return _0x2803df(_0x30e3d5-_0x1dbea7._0xe643e1,_0x3c9100,_0x3c9100-_0x1dbea7._0x53d7a7,_0x30e3d5-0x11);}let _0x1cfae3=_0x436177['resolve'](_0x415fea);const _0xb3edd0=binaryNameForPlatform(_0x53a06b);function _0x1d65e8(_0x5a295e,_0x466921,_0x38de75,_0x50d45f){return _0x2803df(_0x50d45f-0xf0,_0x5a295e,_0x38de75-_0x594b79._0x25570e,_0x50d45f-_0x594b79._0x5acdbd);}while(!![]){const _0x487041=_0x436177[_0x45e5da(0x613,0x49b,_0x23635b._0x41474d,0x595)](_0x1cfae3,_0x1d65e8(_0x23635b._0x5ac92f,-_0x23635b._0x2daf63,_0x23635b._0x54b9b5,_0x23635b._0x104bc9),_0x1d65e8(_0x23635b._0x153918,0x27f,_0x23635b._0x4eef97,_0x23635b._0x423996),_0xb3edd0);if(await exists(_0x487041))return _0x487041;const _0x2f0fc4=_0x436177[_0x45e5da(0x4ff,_0x23635b._0x42cc5e,_0x23635b._0x18d17f,0x454)](_0x1cfae3);if(_0x2f0fc4===_0x1cfae3)return void 0x0;_0x1cfae3=_0x2f0fc4;}}async function findPathBinary(_0x15ec45,_0xac5f66){const _0x4dcecb={_0x1edfdb:0x1dd,_0x1d5cf5:0x288,_0x283840:0x30d,_0x1a5876:0x271,_0x2600df:0x467,_0x3c433e:0x2be},_0xa60fef={_0x32750f:0x3b8},_0x409ab6={_0x5de5e5:0x138},_0x5625c2=getLspBinDir(_0xac5f66);function _0x4c220b(_0x101486,_0x337807,_0x22026f,_0x239d0f){return _0x34fd29(_0x337807,_0x337807-_0x409ab6._0x5de5e5,_0x22026f-0xcf,_0x239d0f- -0x2e2);}const _0x330a78=[_0x5625c2,process['env']['PATH']][_0x2cff30(_0x4dcecb._0x1edfdb,_0x4dcecb._0x1d5cf5,_0x4dcecb._0x283840,_0x4dcecb._0x1a5876)](Boolean)[_0x4c220b(_0x4dcecb._0x2600df,0x352,0x2e2,0x3f3)](_0x436177[_0x4c220b(0x332,0x40d,_0x4dcecb._0x3c433e,0x368)]);function _0x2cff30(_0x2b15d1,_0x16c9b6,_0x5d077d,_0x1ee4c0){return _0x2803df(_0x5d077d-_0xa60fef._0x32750f,_0x16c9b6,_0x5d077d-0x1a6,_0x1ee4c0-0x15e);}try{return await _0x1a904d(_0x15ec45,{'path':_0x330a78});}catch{return void 0x0;}}async function resolvePackageBinary(_0x5b8378){const _0x6ceb75={_0x429472:0x23c,_0x4f77ed:0x294,_0x1cb891:0x185,_0x51e7bb:0x1ff,_0x7f7a39:0x1c0,_0x436da9:0x118,_0x2e4eb7:0x2f,_0x541e17:0x8d,_0x50faa0:0x330,_0x57d3f2:0x3f1,_0x4cd01b:0x3ad,_0x28f71d:0x524,_0x1dc943:0x165,_0x4fe49f:0x3,_0x38baf8:0xc0,_0x5d577d:0x206},_0x51c693={_0x196420:0x206,_0x5561f2:0xc2,_0x411eca:0x17e,_0x458bb1:0x7f,_0x150837:0x2b},_0x1dae84={_0x273d29:0x11d,_0x385c85:0x374},_0x229d15=_0x5b8378[_0x36354f(_0x6ceb75._0x429472,_0x6ceb75._0x4f77ed,0x266,_0x6ceb75._0x1cb891)]??_0x5b8378['packageName'],_0x5cb477=await findPackageBinary(_0x229d15,_0x5b8378[_0x36354f(0x194,0x1f6,_0x6ceb75._0x51e7bb,_0x6ceb75._0x7f7a39)]);if(_0x5cb477)return _0x5cb477;const _0x278706=await findPathBinary(_0x229d15,_0x5b8378[_0x421057(-0x58,_0x6ceb75._0x436da9,_0x6ceb75._0x2e4eb7,_0x6ceb75._0x541e17)]);function _0x421057(_0x487227,_0x4cb47d,_0x3cbcb9,_0x2678c8){return _0x34fd29(_0x4cb47d,_0x4cb47d-0x6,_0x3cbcb9-0x4,_0x2678c8- -0x46d);}function _0x36354f(_0x202045,_0x3c8e56,_0x321d2d,_0xf227a7){return _0x34fd29(_0x3c8e56,_0x3c8e56-_0x1dae84._0x273d29,_0x321d2d-0x190,_0x202045- -_0x1dae84._0x385c85);}if(_0x278706)return _0x278706;const _0x57a5a4=_0x5b8378[_0x36354f(0x3f1,0x4bf,_0x6ceb75._0x50faa0,0x382)]??process[_0x36354f(_0x6ceb75._0x57d3f2,0x30b,_0x6ceb75._0x4cd01b,_0x6ceb75._0x28f71d)];if(shouldDisableLspDownload(_0x57a5a4))return void 0x0;const _0x1cbb4f=getLspPackageDir(_0x5b8378[_0x421057(0x17a,_0x6ceb75._0x1dc943,_0x6ceb75._0x4fe49f,0x8d)]),_0x4197d4=_0x5b8378[_0x421057(0x43,-0x52,-0xb3,0x8d)]+':'+_0x229d15;let _0x1c8e3d=installPromises[_0x421057(_0x6ceb75._0x38baf8,0x207,0xde,_0x6ceb75._0x5d577d)](_0x4197d4);!_0x1c8e3d&&(_0x1c8e3d=((async()=>{const _0x520a4f={_0x284bc6:0x38c},_0x443617={_0x28ff7d:0x1c1,_0x118b12:0x10c,_0x22e5b8:0x142};await mkdir(_0x1cbb4f,{'recursive':!![]});const _0x2ac46c=await runNpmInstall(_0x1cbb4f,_0x5b8378[_0x43f5ec(-0xfc,-_0x51c693._0x196420,-_0x51c693._0x5561f2,-_0x51c693._0x411eca)],_0x57a5a4);if(!_0x2ac46c)return void 0x0;function _0x5da86d(_0xc396f5,_0x2e954e,_0x3518cb,_0x1120d8){return _0x421057(_0xc396f5-_0x443617._0x28ff7d,_0x1120d8,_0x3518cb-_0x443617._0x118b12,_0xc396f5-_0x443617._0x22e5b8);}const _0x7fa2ca=_0x436177[_0x43f5ec(-_0x51c693._0x458bb1,-_0x51c693._0x150837,0x2f,-0x14)](getLspBinDir(_0x5b8378['packageName']),binaryNameForPlatform(_0x229d15));function _0x43f5ec(_0x4b83c8,_0x1e3fe5,_0xabe51e,_0x2b71d7){return _0x36354f(_0x1e3fe5- -_0x520a4f._0x284bc6,_0xabe51e,_0xabe51e-0x1a2,_0x2b71d7-0xc9);}return await exists(_0x7fa2ca)?_0x7fa2ca:void 0x0;})()),installPromises[_0x421057(0x294,0x180,0x2df,0x1a9)](_0x4197d4,_0x1c8e3d));try{return await _0x1c8e3d;}catch{return void 0x0;}finally{installPromises['delete'](_0x4197d4);}}var TYPESCRIPT_EXTENSIONS=['.ts',_0x34fd29(0x6a1,0x792,0x71c,0x70b),'.js',_0x34fd29(0x49e,0x665,0x514,0x5a6),'.mjs',_0x2803df(0x4b,0x37,0x171,-0xf8),_0x2803df(-0x92,-0x151,-0x1a3,-0x13b),_0x2803df(0xb,0x11e,0xd8,-0xbd)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x34fd29(0x5f6,0x665,0x448,0x53c),_0x2803df(0x56,0x45,0x151,0x25)],TYPESCRIPT_ROOT_MARKERS=['package-lock.json',_0x34fd29(0x522,0x584,0x759,0x618),_0x34fd29(0x670,0x698,0x7c2,0x6df),_0x2803df(-0x173,-0x1e5,-0x1f9,-0x3f),'yarn.lock',_0x2803df(0x5d,-0x66,0x24,0x17),_0x2803df(-0x162,-0x6e,-0x170,-0x257),_0x34fd29(0x7c2,0x597,0x76e,0x6cb)],BIOME_ROOT_MARKERS=[_0x34fd29(0x658,0x5db,0x686,0x669),_0x2803df(-0x74,-0x176,-0x80,0x24),_0x2803df(-0x46,-0x52,-0x60,-0x10e),_0x2803df(-0x70,0x87,-0x15e,0x11),_0x34fd29(0x6c9,0x734,0x597,0x6df),_0x34fd29(0x5d6,0x616,0x5b7,0x515),_0x2803df(0xa,0x82,-0x130,0xbd),'package.json'];async function exists2(_0x440348){try{return await _0x470b2d(_0x440348),!![];}catch{return![];}}async function findUp(_0x1cf2b2,_0x54f7ad){const _0x9f4d34={_0x413b6f:0x57a,_0x5bcef6:0x52a,_0x1b5f89:0x526,_0x224f05:0x428,_0x20af13:0x34a,_0x2d64b2:0x635,_0x275a32:0x71e},_0x2579a2={_0x1270e1:0x5e8};let _0x1a0515=_0x1cd249[_0x286603(0x506,0x4ae,_0x9f4d34._0x413b6f,_0x9f4d34._0x5bcef6)](_0x1cf2b2);const _0x59ff7c=_0x1cd249[_0x15729f(0x419,_0x9f4d34._0x1b5f89,_0x9f4d34._0x224f05,0x44a)](_0x1a0515);function _0x286603(_0x57f667,_0x3cdac8,_0x20197e,_0x19cf07){return _0x34fd29(_0x20197e,_0x3cdac8-0xc0,_0x20197e-0x7e,_0x3cdac8- -0x1c3);}function _0x15729f(_0x27a956,_0x73ef0f,_0x383a08,_0x4433a9){return _0x2803df(_0x73ef0f-_0x2579a2._0x1270e1,_0x383a08,_0x383a08-0x79,_0x4433a9-0x194);}if(_0x59ff7c)_0x1a0515=_0x1cd249[_0x286603(0x317,0x3d1,0x2c9,_0x9f4d34._0x20af13)](_0x1a0515);while(!![]){for(const _0x424dbc of _0x54f7ad){if(await exists2(_0x1cd249[_0x15729f(0x515,_0x9f4d34._0x2d64b2,0x69d,_0x9f4d34._0x275a32)](_0x1a0515,_0x424dbc)))return _0x1a0515;}const _0xcf9441=_0x1cd249['dirname'](_0x1a0515);if(_0xcf9441===_0x1a0515)return void 0x0;_0x1a0515=_0xcf9441;}}async function hasDenoRoot(_0x208d68){const _0x4dacc4={_0x1296e2:0x251,_0x291734:0x60,_0x8f350b:0x111,_0x18f2b4:0x89,_0x1894c0:0x30,_0x35755e:0x1d8,_0x3b70c8:0x29d,_0x169dee:0x1a3},_0x19b88a={_0x388ba9:0x4e};function _0x5d6851(_0x3f92df,_0x2032e4,_0x11611c,_0x374675){return _0x34fd29(_0x3f92df,_0x2032e4-_0x19b88a._0x388ba9,_0x11611c-0x17f,_0x374675- -0x5c4);}function _0x472dbe(_0x3ffa3c,_0x3913b6,_0x5c43be,_0x143899){return _0x34fd29(_0x5c43be,_0x3913b6-0x95,_0x5c43be-0x1cc,_0x3ffa3c-0x4b);}return await exists2(_0x1cd249[_0x5d6851(0xa1,_0x4dacc4._0x1296e2,_0x4dacc4._0x291734,_0x4dacc4._0x8f350b)](_0x208d68,_0x5d6851(-0xa,_0x4dacc4._0x18f2b4,-0x41,-_0x4dacc4._0x291734)))||await exists2(_0x1cd249[_0x5d6851(-_0x4dacc4._0x1894c0,0x1f9,_0x4dacc4._0x35755e,_0x4dacc4._0x8f350b)](_0x208d68,_0x5d6851(0x89,_0x4dacc4._0x3b70c8,0x2b2,_0x4dacc4._0x169dee)));}async function resolveTsserverPath(_0x3b76f8){const _0x578bec={_0x2d3450:0x22,_0x547209:0xfd,_0x1f68f4:0x14,_0x120c7f:0xd1,_0x4744df:0x220,_0x4fef1c:0x1d1,_0x331176:0x6f,_0x3c6922:0x309,_0x4b68fb:0x287,_0x789140:0x2ba,_0x4b79ae:0x19,_0x510265:0xcf,_0x3f5d65:0x6d,_0x2a1bc3:0xf1,_0x22b24e:0x73,_0x103bcf:0x229,_0x18459f:0xdb,_0x5991a6:0x30,_0x4bce58:0x2de,_0x521255:0x1b5},_0x51d08b={_0x2dfecd:0x8e,_0x13ed98:0x5f},_0x7c3850={_0x3c5e88:0x10,_0x3a4f75:0x1aa};function _0x21f620(_0x149ffc,_0x67056,_0x1a02ff,_0xd5b382){return _0x2803df(_0x149ffc-0x24e,_0x1a02ff,_0x1a02ff-_0x7c3850._0x3c5e88,_0xd5b382-_0x7c3850._0x3a4f75);}let _0x297d6c=_0x1cd249[_0x248bd1(-_0x578bec._0x2d3450,0x77,_0x578bec._0x547209,-_0x578bec._0x1f68f4)](_0x3b76f8);while(!![]){const _0x198273=_0x1cd249[_0x248bd1(0x3d,0xdb,_0x578bec._0x120c7f,_0x578bec._0x4744df)](_0x297d6c,_0x21f620(_0x578bec._0x4fef1c,0x295,0x262,0x1df),'typescript',_0x248bd1(-0x15d,-_0x578bec._0x331176,-0x4e,-0x7),_0x21f620(_0x578bec._0x3c6922,_0x578bec._0x4b68fb,_0x578bec._0x789140,0x3c5));if(await exists2(_0x198273))return _0x198273;const _0xe39638=_0x1cd249['dirname'](_0x297d6c);if(_0xe39638===_0x297d6c)break;_0x297d6c=_0xe39638;}const _0x59fb6b=getLspPackageDir(_0x248bd1(-_0x578bec._0x4b79ae,-_0x578bec._0x510265,_0x578bec._0x3f5d65,0x2c));function _0x248bd1(_0xf093f,_0x252e22,_0x5067e3,_0x564cd0){return _0x2803df(_0x252e22-_0x51d08b._0x2dfecd,_0x5067e3,_0x5067e3-_0x51d08b._0x13ed98,_0x564cd0-0x1d2);}const _0x2767db=await resolvePackageBinary({'packageName':_0x21f620(_0x578bec._0x2a1bc3,-0x3c,_0x578bec._0x22b24e,_0x578bec._0x103bcf),'binaryName':'tsc','startDir':_0x3b76f8});if(!_0x2767db)return void 0x0;const _0x501606=_0x1cd249[_0x248bd1(0x196,_0x578bec._0x18459f,0xda,_0x578bec._0x5991a6)](_0x59fb6b,_0x21f620(_0x578bec._0x4fef1c,0x2df,0x263,_0x578bec._0x4bce58),'typescript',_0x248bd1(-0x171,-0x6f,-0xe3,-_0x578bec._0x521255),_0x21f620(0x309,0x233,0x1ca,0x3b4));return await exists2(_0x501606)?_0x501606:void 0x0;}var TypeScriptServer={'id':_0x34fd29(0x4ee,0x49a,0x55c,0x52b),'name':_0x2803df(-0xd6,-0x77,-0xe6,-0x1c1),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x5a3e3d){const _0x2e5f45=await findUp(_0x5a3e3d,TYPESCRIPT_ROOT_MARKERS);if(!_0x2e5f45)return void 0x0;return await hasDenoRoot(_0x2e5f45)?void 0x0:_0x2e5f45;},async 'spawn'(_0x3e9178){const _0x390068={_0x2c84c0:0x202,_0x2856c0:0x89,_0x36e5c2:0x1d,_0x5477d4:0x11e,_0x11bf12:0x1ca},_0x1fb8b0={_0x521d03:0x21,_0x37cd3d:0xda},_0x306adc={_0x4b6e46:0x157},_0x2fee69=await resolveTsserverPath(_0x3e9178);function _0x519a1e(_0x2920a4,_0x537d21,_0xab0313,_0x49a0df){return _0x34fd29(_0x537d21,_0x537d21-_0x306adc._0x4b6e46,_0xab0313-0x1b,_0xab0313- -0x586);}function _0x5d8024(_0x46f525,_0x17808d,_0x16b311,_0x66f206){return _0x34fd29(_0x66f206,_0x17808d-_0x1fb8b0._0x521d03,_0x16b311-_0x1fb8b0._0x37cd3d,_0x16b311- -0x4d7);}if(!_0x2fee69)return void 0x0;const _0x6b38cc=await resolvePackageBinary({'packageName':_0x519a1e(_0x390068._0x2c84c0,0x58,0x134,0x2),'binaryName':'typescript-language-server','startDir':_0x3e9178});if(!_0x6b38cc)return void 0x0;return{'process':_0x4f46e5(_0x6b38cc,[_0x519a1e(0x76,-_0x390068._0x2856c0,-_0x390068._0x36e5c2,0x11)],{'cwd':_0x3e9178,'stdio':_0x519a1e(_0x390068._0x5477d4,0x1e8,_0x390068._0x11bf12,0x15c)}),'initialization':{'tsserver':{'path':_0x2fee69}}};}},BiomeServer={'id':_0x2803df(0xd5,-0x59,0x85,0x6f),'name':_0x2803df(-0xc5,0x5d,-0x1c6,-0x11),'extensions':BIOME_EXTENSIONS,async 'root'(_0x37c0eb){return findUp(_0x37c0eb,BIOME_ROOT_MARKERS);},async 'spawn'(_0x565f7f){const _0x1ab911={_0x1b5154:0x4ca,_0x42d331:0x400,_0xe81a4c:0x540,_0x4cf9a6:0x28,_0x2eeeec:0xb4,_0x4cd265:0x257,_0x50b24a:0x2e5,_0x74b7d9:0x24d,_0x1900ce:0x461,_0x172448:0x34c},_0x2dd153={_0x481836:0x11a,_0x8cb86c:0x99},_0x4ed536=await findPackageBinary(_0x5a038b(_0x1ab911._0x1b5154,_0x1ab911._0x42d331,0x688,_0x1ab911._0xe81a4c),_0x565f7f)??await resolvePackageBinary({'packageName':_0x41dee7(0x14a,0xc6,_0x1ab911._0x4cf9a6,_0x1ab911._0x2eeeec),'binaryName':'biome','startDir':_0x565f7f});function _0x41dee7(_0x224cde,_0x157a63,_0x3f6355,_0x11c82e){return _0x2803df(_0x157a63-_0x2dd153._0x481836,_0x3f6355,_0x3f6355-_0x2dd153._0x8cb86c,_0x11c82e-0x7c);}if(!_0x4ed536)return void 0x0;function _0x5a038b(_0x38efa7,_0x3fd86d,_0x103974,_0x4e8fd4){return _0x2803df(_0x4e8fd4-0x46b,_0x38efa7,_0x103974-0xc3,_0x4e8fd4-0x190);}return{'process':_0x4f46e5(_0x4ed536,[_0x5a038b(_0x1ab911._0x4cd265,0x1a1,0x1f4,_0x1ab911._0x50b24a),_0x5a038b(_0x1ab911._0x74b7d9,_0x1ab911._0x1900ce,0x2e8,_0x1ab911._0x172448)],{'cwd':_0x565f7f,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x3801ab){const _0x55dca8={_0x5fa55b:0x41b,_0xae0f87:0x2ef},_0x5c1d02={_0x2ad568:0x632};function _0x290b35(_0x5f19fc,_0x5bcd59,_0x422b31,_0x23a0d1){return _0x34fd29(_0x422b31,_0x5bcd59-0x7b,_0x422b31-0xe1,_0x5bcd59- -0x250);}function _0x1bb99b(_0x4647db,_0x18d595,_0x3883ec,_0x12ed65){return _0x2803df(_0x12ed65-_0x5c1d02._0x2ad568,_0x4647db,_0x3883ec-0xf7,_0x12ed65-0x1e6);}const _0x3200ea=_0x1cd249['extname'](_0x3801ab)[_0x1bb99b(0x6f7,0x5d6,0x7ed,0x6e4)]();return BUILTIN_LSP_SERVERS[_0x290b35(0x3f8,0x38d,_0x55dca8._0x5fa55b,_0x55dca8._0xae0f87)](_0x85c560=>_0x85c560[_0x1bb99b(0x5de,0x713,0x744,0x6db)][_0x290b35(0x34e,0x2a9,0x2ff,0x249)](_0x3200ea));}function _0x2803df(_0x20490c,_0xfdf1d5,_0x2a7a00,_0x5476bf){const _0x36ab74={_0x597857:0x34c};return _0x20ac(_0x20490c- -_0x36ab74._0x597857,_0xfdf1d5);}function stateKey(_0x50c5fe,_0x1cd9ec){return _0x1cd9ec+':'+_0x50c5fe['id'];}function diagnosticsKeyToPath(_0x220d6f){const _0x2a85c8={_0x29f8e1:0x1c6,_0x2cc118:0x158,_0x360c46:0x1b9},_0x443150={_0x170694:0x250,_0x5e6065:0xe8,_0x1b4fd3:0x6a};function _0x3ea615(_0x2cf495,_0x32f1d4,_0x33331a,_0x2b18fd){return _0x2803df(_0x32f1d4-_0x443150._0x170694,_0x2cf495,_0x33331a-_0x443150._0x5e6065,_0x2b18fd-_0x443150._0x1b4fd3);}if(!_0x220d6f[_0x3ea615(_0x2a85c8._0x29f8e1,_0x2a85c8._0x2cc118,_0x2a85c8._0x360c46,0xfc)]('file://'))return _0x220d6f;return fileURLToPath(_0x220d6f);}function nextFileVersion(_0x177ddc,_0x1a40f9){const _0x55a973={_0x22266d:0x12a,_0x35d4ae:0x267,_0x650723:0x621,_0x46d5ae:0x725,_0x1af305:0x7ff,_0x3d0f8b:0x527,_0x5d999b:0x764},_0x281820={_0x204323:0x6b4},_0x2c3e11={_0x1a44c6:0x1f6,_0x3bb3ff:0x31},_0x5046dd=(_0x177ddc[_0x2919e4(_0x55a973._0x22266d,0x2f3,0x22d,_0x55a973._0x35d4ae)][_0x2331f0(0x69f,0x74b,0x643,_0x55a973._0x650723)](_0x1a40f9)??0x1)+0x1;function _0x2919e4(_0x2ba1e7,_0xcbcd1f,_0x3243bc,_0x39f1c0){return _0x2803df(_0x39f1c0-_0x2c3e11._0x1a44c6,_0x3243bc,_0x3243bc-0x13f,_0x39f1c0-_0x2c3e11._0x3bb3ff);}function _0x2331f0(_0x1acbcc,_0x53db78,_0x24d145,_0x5c38d0){return _0x2803df(_0x1acbcc-_0x281820._0x204323,_0x53db78,_0x24d145-0x1c7,_0x5c38d0-0x179);}return _0x177ddc[_0x2331f0(_0x55a973._0x46d5ae,0x7ea,_0x55a973._0x1af305,0x671)][_0x2331f0(0x642,_0x55a973._0x3d0f8b,_0x55a973._0x5d999b,0x646)](_0x1a40f9,_0x5046dd),_0x5046dd;}async function collectClientResults(_0x11c451){const _0xc92b1b={_0x36afb7:0x3a7,_0xbca57a:0x36d,_0x98aaaa:0x249,_0x27e64b:0x435},_0x452b1d={_0x163039:0x16e,_0x24108b:0x181},_0xd233b0={_0x3a80d8:0x1bc};function _0x24ce25(_0x45b776,_0x424771,_0x19cec3,_0x327a69){return _0x34fd29(_0x327a69,_0x424771-_0xd233b0._0x3a80d8,_0x19cec3-0x2b,_0x19cec3- -0x2c2);}function _0x218f0e(_0x362649,_0x3e97c1,_0x859dbc,_0x5424b7){return _0x34fd29(_0x5424b7,_0x3e97c1-_0x452b1d._0x163039,_0x859dbc-_0x452b1d._0x24108b,_0x3e97c1- -0x3a2);}const _0x21a116=await Promise[_0x218f0e(0x2ef,_0xc92b1b._0x36afb7,_0xc92b1b._0xbca57a,0x47d)](_0x11c451);return _0x21a116[_0x24ce25(_0xc92b1b._0x98aaaa,0x27f,0x366,_0xc92b1b._0x27e64b)](_0xf153d6=>_0xf153d6[_0x218f0e(0x35b,0x315,0x2f6,0x1eb)]===_0x24ce25(0x4b6,0x3f8,0x3d2,0x3f3)?_0xf153d6[_0x218f0e(0x233,0x201,0x198,0x2db)]:[]);}function createLspService(_0x27abdf={}){const _0x14ebcc={_0x22077a:0x709,_0x306395:0x5e1},_0x612a63={_0x1a0a0f:0x639,_0x37a45f:0xc,_0x4084a2:0x111,_0x324bf1:0x77f,_0x5ca5d5:0x21f,_0x473287:0x246,_0x2e0be9:0x144,_0x3c98e2:0x1d6,_0x40fe38:0x50,_0x14674b:0x155,_0x400043:0x7d},_0x3bf706={_0x5e9a2f:0x353},_0x1d1b3a={_0xd9bc4b:0x372},_0x54d7ae={_0x5b688b:0x1c1},_0x6a461b={_0xadd0c9:0x226},_0x302358={_0x2cf15e:0x5e3,_0x2339e2:0x4ee},_0x51e389={_0x408941:0x2b3},_0x21a89a={_0x3676c4:0x64,_0x52d074:0x97,_0x2b0590:0x1ab},_0x2bc5b1={_0x47a948:0x3fe},_0x33bbbb={_0x1a1f76:0x3e1,_0x1c21c1:0x430},_0x56f4fd={_0x72d27c:0x27e},_0x4fb367={_0xe413ef:0x1cb,_0x41bae8:0xe8},_0x421574={_0x39d3d6:0x680,_0x447fcf:0x559},_0x45d29b={_0x491798:0x260},_0x2a3828={_0x3c4d94:0x671,_0x3eee93:0x683,_0x495ebc:0x20b,_0x3450b9:0x242},_0x329791={_0x41bde2:0x426},_0x25e88a={_0x58842a:0x88,_0x31d958:0x2d,_0x52cca6:0x47,_0x25db29:0x4c,_0xf8611:0xe4},_0x2f6464={_0x24fdec:0x517,_0x244213:0x4ff,_0x1a92a5:0x436,_0x5be4e8:0x29d,_0x2eacc2:0x240},_0x3dbd9b={_0x55ba7f:0x10e},_0x26c00d={_0x201e51:0x852,_0xb81376:0x72f,_0x17ffb8:0x2b6,_0x36d7c9:0x354,_0x35db16:0x35a,_0x1c93c0:0x1b5,_0x31c812:0x270,_0x32ebae:0x72d,_0x39e112:0x601},_0x34714a={_0xa43731:0x317,_0x15cd74:0x41b,_0x6a2b56:0x758,_0x288ac0:0x6d0,_0x194e0c:0x470,_0x32c067:0x264,_0x87cac3:0x49a,_0x49afc0:0x359,_0x385cb4:0x301},_0x189943={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x1b03a0=()=>_0x27abdf['enabled']!==![];async function _0x44cf2e(_0x394a8a,_0x354d37){const _0x358dc7={_0x47b110:0x2e1,_0x54d212:0x43b,_0x63827b:0x5ae,_0x2f854a:0x91,_0x206d9e:0x10a,_0x2d3946:0x68a,_0x2bcdd5:0x66f,_0x236cbd:0x65f,_0x27824e:0x524,_0x34d54:0x44f,_0x3b049f:0x41b,_0x373614:0x8f,_0xd14f5:0xa9,_0x46d520:0x4b5,_0x50b372:0x4c0,_0x53e7b3:0x34b,_0x5e465e:0x54b,_0x18c73a:0x661},_0x81431e={_0x55dc97:0x17a,_0x493f62:0x208},_0x438f2d={_0x4c0b2e:0xc4,_0x5a63f2:0x209,_0x445798:0x161},_0x3121af=stateKey(_0x394a8a,_0x354d37),_0x3668f1=_0x189943[_0x229111(_0x34714a._0xa43731,0x31b,0x35a,_0x34714a._0x15cd74)][_0x2a68a(_0x34714a._0x6a2b56,0x5ff,0x67a,_0x34714a._0x288ac0)](_0x2b64cf=>_0x2b64cf[_0x229111(0x35b,0x43e,0x460,0x447)]===_0x394a8a['id']&&_0x2b64cf[_0x229111(0x4ed,0x449,0x498,0x405)]===_0x354d37);if(_0x3668f1)return _0x3668f1;if(_0x189943[_0x229111(0x3f3,0x3a5,0x3a7,_0x34714a._0x194e0c)]['has'](_0x3121af))return void 0x0;function _0x2a68a(_0x2fa9e8,_0x52b846,_0x43e348,_0x53a6c2){return _0x20ac(_0x53a6c2-0x28c,_0x52b846);}const _0xd8d0b9=_0x189943[_0x229111(0x158,0x1fa,_0x34714a._0x32c067,0x25e)][_0x229111(_0x34714a._0x87cac3,_0x34714a._0x49afc0,0x3e3,0x29b)](_0x3121af);function _0x229111(_0x52936b,_0x35145d,_0x2cc1ea,_0x1ba4a9){return _0x20ac(_0x35145d-0x22,_0x2cc1ea);}if(_0xd8d0b9)return _0xd8d0b9;const _0x56b5f6=((async()=>{function _0x4692d0(_0x467b04,_0x3b41b2,_0x33e479,_0x590554){return _0x229111(_0x467b04-_0x438f2d._0x4c0b2e,_0x33e479-_0x438f2d._0x5a63f2,_0x3b41b2,_0x590554-_0x438f2d._0x445798);}function _0x1de618(_0x13e4f3,_0x263ee7,_0x138074,_0x49905a){return _0x229111(_0x13e4f3-_0x81431e._0x55dc97,_0x49905a- -_0x81431e._0x493f62,_0x138074,_0x49905a-0xa2);}try{const _0x4e2834=await _0x394a8a[_0x4692d0(_0x358dc7._0x47b110,0x3c1,0x410,_0x358dc7._0x54d212)](_0x354d37);if(!_0x4e2834)return _0x189943[_0x4692d0(0x629,0x55a,_0x358dc7._0x63827b,0x60d)][_0x1de618(_0x358dc7._0x2f854a,_0x358dc7._0x206d9e,0x146,0xaf)](_0x3121af),void 0x0;const _0x840e44=await createLspClient({'server':_0x394a8a,'root':_0x354d37,'handle':_0x4e2834}),_0x34c841=_0x189943['clients'][_0x4692d0(0x5ac,_0x358dc7._0x2d3946,_0x358dc7._0x2bcdd5,0x6d5)](_0x3f3288=>_0x3f3288[_0x1de618(0x348,0x1e5,0x36f,0x236)]===_0x394a8a['id']&&_0x3f3288['root']===_0x354d37);if(_0x34c841)return await _0x840e44[_0x1de618(0x231,0x264,0x25b,0x153)](),_0x34c841;return _0x189943[_0x4692d0(_0x358dc7._0x236cbd,0x620,_0x358dc7._0x27824e,0x56d)][_0x4692d0(0x363,_0x358dc7._0x34d54,_0x358dc7._0x3b049f,0x42f)](_0x840e44),_0x840e44;}catch{return _0x189943[_0x1de618(_0x358dc7._0x373614,0x17a,_0x358dc7._0xd14f5,0x19d)][_0x4692d0(_0x358dc7._0x46d520,0x55c,_0x358dc7._0x50b372,0x5d7)](_0x3121af),void 0x0;}finally{_0x189943[_0x4692d0(0x3c5,0x3b3,0x403,_0x358dc7._0x53e7b3)][_0x4692d0(0x6e9,_0x358dc7._0x5e465e,_0x358dc7._0x18c73a,0x6d9)](_0x3121af);}})());return _0x189943[_0x229111(0x182,0x1fa,_0x34714a._0x385cb4,0x25b)]['set'](_0x3121af,_0x56b5f6),_0x56b5f6;}async function _0x5036c0(_0x282516,_0x3eed70){const _0x1c1e37={_0x33b0a8:0x29};if(!_0x1b03a0())return[];function _0xece6fd(_0x2754d4,_0x1fbf83,_0x347621,_0x58f4c3){return _0x20ac(_0x58f4c3-0x308,_0x1fbf83);}const _0x454e4a=[];for(const _0x3d4539 of getServersForFile(_0x282516)){const _0x8b81e2=await _0x3d4539[_0xece6fd(0x757,0x834,_0x26c00d._0x201e51,_0x26c00d._0xb81376)](_0x282516);if(!_0x8b81e2)continue;const _0xec7f59=stateKey(_0x3d4539,_0x8b81e2);if(_0x189943[_0x3ea5f3(_0x26c00d._0x17ffb8,0x389,_0x26c00d._0x36d7c9,_0x26c00d._0x35db16)][_0x3ea5f3(_0x26c00d._0x1c93c0,_0x26c00d._0x31c812,0x29e,0x25b)](_0xec7f59))continue;const _0x31cceb=_0x189943[_0xece6fd(0x666,_0x26c00d._0x32ebae,0x4db,_0x26c00d._0x39e112)]['find'](_0x9169f8=>_0x9169f8['serverId']===_0x3d4539['id']&&_0x9169f8[_0xece6fd(0x79a,0x5e7,0x6f2,0x72f)]===_0x8b81e2);if(_0x31cceb){_0x454e4a['push'](_0x31cceb);continue;}if(!_0x3eed70)continue;const _0x1d9970=await _0x44cf2e(_0x3d4539,_0x8b81e2);if(_0x1d9970)_0x454e4a[_0xece6fd(0x427,0x569,0x607,0x4f8)](_0x1d9970);}function _0x3ea5f3(_0x40393f,_0x34a0b4,_0x59d567,_0x2e424a){return _0x20ac(_0x2e424a- -_0x1c1e37._0x33b0a8,_0x34a0b4);}return _0x454e4a;}async function _0x12aebf(_0x38fe58,_0x45ea71=![]){const _0x9a61a3={_0x20a4d0:0x433,_0x576488:0x4d8,_0x382798:0x355,_0x1fa8ff:0x7a3,_0x41e5f3:0x70c,_0x8cc319:0x658,_0x57ec7e:0x5a9,_0x5f0113:0x786,_0x5eaab4:0x376,_0x282ccd:0x392,_0x565ff3:0x3fb,_0x51580d:0x2c2,_0x102427:0x2fa,_0x18349a:0x3b3,_0x5538b6:0x4a3,_0xbd3e63:0x6a0,_0x5f31b8:0x529,_0x5726f5:0x62b,_0x43e5e4:0x646},_0x12533e={_0x63c527:0xab,_0x5d4075:0x736},_0x59cf46={_0x53e740:0x96,_0x469e05:0x131},_0x31ecf6=await _0x5036c0(_0x38fe58,!![]);function _0x5ca025(_0x72f627,_0x2d7045,_0x52670b,_0x442525){return _0x20ac(_0x442525-_0x3dbd9b._0x55ba7f,_0x52670b);}function _0x4ee3e1(_0x31c013,_0x1d6bc5,_0x12b932,_0x194f2b){return _0x20ac(_0x12b932- -0x3e0,_0x194f2b);}await Promise[_0x5ca025(_0x2f6464._0x24fdec,0x58a,0x5dc,_0x2f6464._0x244213)](_0x31ecf6[_0x5ca025(_0x2f6464._0x1a92a5,_0x2f6464._0x5be4e8,_0x2f6464._0x2eacc2,0x349)](async _0x3dfebb=>{function _0x22710a(_0x3b752f,_0x347b11,_0x29662a,_0x1c19d4){return _0x5ca025(_0x3b752f-_0x59cf46._0x53e740,_0x347b11-_0x59cf46._0x469e05,_0x347b11,_0x29662a- -0x10c);}function _0x5e31b1(_0x2de580,_0x3a04ec,_0x1bf5c4,_0x471999){return _0x4ee3e1(_0x2de580-_0x12533e._0x63c527,_0x3a04ec-0xde,_0x3a04ec-_0x12533e._0x5d4075,_0x471999);}!_0x189943[_0x22710a(_0x9a61a3._0x20a4d0,_0x9a61a3._0x576488,0x3b3,_0x9a61a3._0x382798)]['has'](_0x3dfebb['serverId']+':'+_0x3dfebb[_0x5e31b1(_0x9a61a3._0x1fa8ff,0x77d,0x684,0x73b)]+':'+_0x38fe58)&&(await _0x3dfebb[_0x5e31b1(_0x9a61a3._0x41e5f3,_0x9a61a3._0x8cc319,_0x9a61a3._0x57ec7e,_0x9a61a3._0x5f0113)][_0x22710a(0x258,_0x9a61a3._0x5eaab4,_0x9a61a3._0x282ccd,_0x9a61a3._0x565ff3)]({'path':_0x38fe58}),_0x189943[_0x22710a(_0x9a61a3._0x51580d,_0x9a61a3._0x102427,_0x9a61a3._0x18349a,0x462)][_0x5e31b1(0x6c8,0x5eb,_0x9a61a3._0x5538b6,_0x9a61a3._0xbd3e63)](_0x3dfebb['serverId']+':'+_0x3dfebb['root']+':'+_0x38fe58));await _0x3dfebb['notify'][_0x5e31b1(_0x9a61a3._0x5f31b8,0x570,0x6a2,0x56e)]({'path':_0x38fe58,'version':nextFileVersion(_0x189943,_0x38fe58)});if(_0x45ea71)await _0x3dfebb[_0x5e31b1(0x75a,_0x9a61a3._0x5726f5,_0x9a61a3._0x43e5e4,0x674)]({'path':_0x38fe58});}));}async function _0x250d37(_0x55bc9e){function _0x423ce3(_0xdeb2d2,_0x14a32e,_0x5afb71,_0x4de6a4){return _0x20ac(_0xdeb2d2- -0x19,_0x14a32e);}await _0x12aebf(_0x55bc9e[_0x16a432(_0x25e88a._0x58842a,-0xec,_0x25e88a._0x31d958,-_0x25e88a._0x52cca6)],![]);function _0x16a432(_0x4afc6a,_0x10f4a0,_0x11d278,_0x4ac34c){return _0x20ac(_0x11d278- -0x2dc,_0x10f4a0);}return _0x5036c0(_0x55bc9e[_0x16a432(-0x4c,_0x25e88a._0x25db29,_0x25e88a._0x31d958,-_0x25e88a._0xf8611)],![]);}async function _0xd53915(_0x4a7d9f){const _0x388ec7={_0x10e0c9:0x3b},_0x44e345=await _0x250d37(_0x4a7d9f);function _0x123f59(_0x366c83,_0x3dd364,_0x51754f,_0x5480da){return _0x20ac(_0x3dd364-0x17d,_0x51754f);}function _0x5c3df5(_0x2f06cd,_0x17a0aa,_0xe01445,_0x471e5f){return _0x20ac(_0x2f06cd-_0x388ec7._0x10e0c9,_0x471e5f);}return collectClientResults(_0x44e345[_0x123f59(0x364,0x3b8,_0x329791._0x41bde2,0x273)](_0x19aca9=>_0x19aca9['request'][_0x123f59(0x5c0,0x4e8,0x45f,0x421)](_0x4a7d9f)));}return{'isEnabled':_0x1b03a0,async 'hasClients'(_0x3c0e21){const _0x371f49={_0x59e148:0x391};function _0xe732de(_0x148325,_0x8877a1,_0xd2ef20,_0x5c4eaf){return _0x20ac(_0x148325- -0x84,_0xd2ef20);}function _0x4d71dc(_0x1b89a9,_0x50c72e,_0x4f8a9c,_0x9c5791){return _0x20ac(_0x9c5791-_0x371f49._0x59e148,_0x50c72e);}return(await _0x5036c0(_0x3c0e21,![]))[_0x4d71dc(_0x2a3828._0x3c4d94,_0x2a3828._0x3eee93,0x6f3,0x6c2)]>0x0||getServersForFile(_0x3c0e21)[_0xe732de(0x2ad,_0x2a3828._0x495ebc,0x20e,_0x2a3828._0x3450b9)]>0x0;},'touchFile':_0x12aebf,async 'diagnostics'(){const _0x3ab18f={};function _0x589654(_0x5dfe3d,_0x382823,_0xf1c96c,_0x11be76){return _0x20ac(_0x11be76-_0x45d29b._0x491798,_0x382823);}for(const _0x12dd81 of _0x189943[_0x589654(_0x421574._0x39d3d6,0x4d5,0x474,_0x421574._0x447fcf)]){for(const [_0x25e108,_0x304ec9]of _0x12dd81['diagnostics']){_0x3ab18f[diagnosticsKeyToPath(_0x25e108)]=_0x304ec9;}}return _0x3ab18f;},async 'diagnosticsForFile'(_0x1806f9){await _0x12aebf(_0x1806f9,!![]);function _0x423c63(_0x3444fb,_0x22234b,_0x1a5202,_0xf0a7e0){return _0x20ac(_0x3444fb- -0x25,_0xf0a7e0);}const _0x2448bb=[];for(const _0x2316c6 of await _0x5036c0(_0x1806f9,![])){for(const [_0x3f9b9c,_0xf883d7]of _0x2316c6['diagnostics']){if(diagnosticsKeyToPath(_0x3f9b9c)===_0x1806f9)_0x2448bb[_0x423c63(_0x4fb367._0xe413ef,0x8f,_0x4fb367._0x41bae8,0x20c)](..._0xf883d7);}}return _0x2448bb;},async 'definition'(_0x314ee6){function _0x22278e(_0x3295cc,_0x1809b0,_0x63687e,_0x30c208){return _0x20ac(_0x1809b0- -0x1c6,_0x63687e);}function _0x454b04(_0x3f5392,_0x365d6b,_0x3de4bb,_0x996c77){return _0x20ac(_0x3de4bb- -0x82,_0x365d6b);}return collectClientResults((await _0x250d37(_0x314ee6))['map'](_0x45b0c4=>_0x45b0c4[_0x454b04(0x377,0x330,0x259,0x2ae)][_0x22278e(0x89,0x19d,0x2d0,0x186)](_0x314ee6)));},async 'references'(_0x7d5173){function _0x1a6ac5(_0xd3f118,_0x344c2f,_0x5c0870,_0x4d6216){return _0x20ac(_0xd3f118-_0x56f4fd._0x72d27c,_0x5c0870);}return collectClientResults((await _0x250d37(_0x7d5173))[_0x1a6ac5(0x4b9,_0x33bbbb._0x1a1f76,0x4a9,_0x33bbbb._0x1c21c1)](_0x4c1ab1=>_0x4c1ab1['request']['references'](_0x7d5173)));},async 'hover'(_0x233e32){function _0x231331(_0x42494c,_0x434acf,_0x5add20,_0x136a68){return _0x20ac(_0x5add20- -0x341,_0x136a68);}const _0x557e0a=await Promise['allSettled']((await _0x250d37(_0x233e32))['map'](_0x234182=>_0x234182[_0x574bb2(0x388,0x395,0x3ed,0x4e6)]['hover'](_0x233e32)));function _0x574bb2(_0x4df29a,_0x17b6c2,_0x445df6,_0x6713a){return _0x20ac(_0x445df6-0x112,_0x6713a);}return _0x557e0a[_0x574bb2(0x446,0x521,_0x2bc5b1._0x47a948,0x415)](_0x35e1d4=>_0x35e1d4[_0x231331(0x46,0x34,0x3a,0x152)]===_0x231331(-0x121,-0x2,0x17,0x13)&&_0x35e1d4['value']?[_0x35e1d4[_0x574bb2(0x332,0x43e,0x379,0x4ac)]]:[]);},async 'documentSymbol'(_0x2eb44d){function _0x391fb2(_0x44663c,_0x2c07e5,_0xd4e696,_0x4d014e){return _0x20ac(_0x2c07e5- -0x29f,_0xd4e696);}function _0x53df74(_0x58e827,_0x2333ce,_0x1d4faa,_0x35d43c){return _0x20ac(_0x58e827- -0x3dd,_0x1d4faa);}return await _0x12aebf(_0x2eb44d,![]),collectClientResults((await _0x5036c0(_0x2eb44d,![]))[_0x391fb2(-0x93,-_0x21a89a._0x3676c4,-_0x21a89a._0x52d074,-_0x21a89a._0x2b0590)](_0x5a02d7=>_0x5a02d7[_0x53df74(-0x102,-0x19c,-0x24,-0x101)][_0x53df74(-0x56,0xec,-0x71,-0xf)](_0x2eb44d)));},async 'workspaceSymbol'(_0x1f3b4b){function _0x479c56(_0x5de753,_0x419dd5,_0x9c6dde,_0xd98e00){return _0x20ac(_0x5de753- -0x19b,_0x9c6dde);}function _0x47b57f(_0x26250d,_0x3472c8,_0x35c092,_0xa5bd8e){return _0x20ac(_0xa5bd8e- -0x30c,_0x26250d);}return collectClientResults(_0x189943['clients'][_0x479c56(0xa0,0x89,0x1ba,0xba)](_0x1dd6ce=>_0x1dd6ce[_0x47b57f(0xc7,-0x121,-0x11a,-0x31)][_0x479c56(0x1e2,0x26f,0x189,0x27c)](_0x1f3b4b)));},async 'implementation'(_0x328d80){function _0x1951b5(_0x4abeb6,_0x13ba14,_0x404c5f,_0x514dbd){return _0x20ac(_0x13ba14- -0x14e,_0x514dbd);}function _0x2679eb(_0x30babc,_0xe5678e,_0x1fbd8b,_0x13104d){return _0x20ac(_0xe5678e-_0x51e389._0x408941,_0x1fbd8b);}return collectClientResults((await _0x250d37(_0x328d80))[_0x2679eb(_0x302358._0x2cf15e,_0x302358._0x2339e2,0x54b,0x532)](_0x710615=>_0x710615[_0x2679eb(0x475,0x58e,0x590,0x4ca)]['implementation'](_0x328d80)));},async 'prepareCallHierarchy'(_0x563349){return _0xd53915(_0x563349);},async 'incomingCalls'(_0x38153d){function _0x4e8d93(_0x20dc1f,_0x6987e0,_0x3f43b1,_0x2135a9){return _0x20ac(_0x3f43b1-0x216,_0x6987e0);}const _0x5d22e2=await _0xd53915(_0x38153d);function _0x306f9c(_0x15b9ee,_0x2d651b,_0x1b60f7,_0x3fb5ef){return _0x20ac(_0x1b60f7- -0x96,_0x2d651b);}const _0x3efcb1=await _0x250d37(_0x38153d);return collectClientResults(_0x3efcb1['flatMap'](_0x147969=>_0x5d22e2[_0x306f9c(0x226,0x2b1,0x1a5,0x1ed)](_0x32abcb=>_0x147969['request'][_0x4e8d93(0x2bf,0x37b,0x402,0x464)](_0x32abcb))));},async 'outgoingCalls'(_0x5283f9){function _0x288e3a(_0x5f8365,_0x272adf,_0x5159d0,_0x861c07){return _0x20ac(_0x272adf- -0x1d2,_0x5159d0);}const _0x557175=await _0xd53915(_0x5283f9),_0x2de98c=await _0x250d37(_0x5283f9);function _0x2d4462(_0x26c5ca,_0x30fb0a,_0x2759a2,_0x4d3380){return _0x20ac(_0x30fb0a- -_0x6a461b._0xadd0c9,_0x2759a2);}return collectClientResults(_0x2de98c[_0x2d4462(0x1ab,0xc6,_0x54d7ae._0x5b688b,0x111)](_0xf92fdb=>_0x557175[_0x288e3a(0x8c,0x69,-0x63,0x2b)](_0x157b9c=>_0xf92fdb['request'][_0x2d4462(0x282,0x20d,0x280,0x153)](_0x157b9c))));},async 'shutdown'(){if(_0x189943[_0x3664c2(_0x612a63._0x1a0a0f,0x4f9,0x63e,0x591)])return;_0x189943[_0x31a663(-0x1d1,-0x134,_0x612a63._0x37a45f,-_0x612a63._0x4084a2)]=!![],await Promise[_0x3664c2(0x6f0,0x85f,_0x612a63._0x1a0a0f,_0x612a63._0x324bf1)](_0x189943['clients'][_0x31a663(-_0x612a63._0x5ca5d5,-0x118,-0x17a,-0x1be)](_0x45b45f=>_0x45b45f['shutdown']()));function _0x3664c2(_0x4616d7,_0x44936d,_0x3bb3dc,_0x47ea1c){return _0x20ac(_0x47ea1c-_0x1d1b3a._0xd9bc4b,_0x3bb3dc);}_0x189943['clients']=[];function _0x31a663(_0x1d4516,_0x365d40,_0x413aae,_0x53791d){return _0x20ac(_0x365d40- -_0x3bf706._0x5e9a2f,_0x53791d);}_0x189943[_0x31a663(-0x132,-0x17b,-0x5f,-0x5d)][_0x31a663(-_0x612a63._0x473287,-_0x612a63._0x2e0be9,-_0x612a63._0x3c98e2,-0x227)](),_0x189943['broken']['clear'](),_0x189943['fileVersions']['clear'](),_0x189943[_0x31a663(0x193,0x5e,-_0x612a63._0x40fe38,_0x612a63._0x14674b)][_0x31a663(-_0x612a63._0x400043,-0x144,-0x236,-0x1f4)]();},'status'(){function _0x441047(_0x2596f3,_0x1a8702,_0x5c4c4f,_0x1ffa86){return _0x20ac(_0x5c4c4f-0x2e8,_0x1a8702);}return{'connectedClients':_0x189943[_0x441047(_0x14ebcc._0x22077a,0x689,_0x14ebcc._0x306395,0x5bd)]['length']};}};}function createQuestionId(){const _0x165b35={_0x2e6d74:0x644,_0x3e40d8:0x585,_0x44a222:0x62d,_0x480c1a:0x69d,_0x308974:0x73d,_0x4e9d76:0x5e5,_0x4a1723:0x627,_0x54825c:0x5cf,_0x37e499:0x737},_0x4fde4d={_0x166c8c:0x8c,_0x21364b:0x7},_0x41e0b1={_0x4452ab:0x1bc,_0x94ce19:0x1ab};function _0x133b0b(_0x2c5355,_0x74906,_0x1c4171,_0x9b551b){return _0x2803df(_0x2c5355-0x6e1,_0x9b551b,_0x1c4171-_0x41e0b1._0x4452ab,_0x9b551b-_0x41e0b1._0x94ce19);}function _0x3fafab(_0x276e35,_0x21100c,_0x44c9bd,_0x5bb763){return _0x34fd29(_0x21100c,_0x21100c-_0x4fde4d._0x166c8c,_0x44c9bd-0x13e,_0x44c9bd- -_0x4fde4d._0x21364b);}return'question-'+Date[_0x3fafab(0x561,0x51f,0x618,0x603)]()+'-'+Math[_0x3fafab(_0x165b35._0x2e6d74,_0x165b35._0x3e40d8,0x508,_0x165b35._0x44a222)]()[_0x133b0b(_0x165b35._0x480c1a,0x6aa,_0x165b35._0x308974,_0x165b35._0x4e9d76)](0x24)[_0x133b0b(_0x165b35._0x4a1723,0x5bd,_0x165b35._0x54825c,_0x165b35._0x37e499)](0x2,0x9);}function validateInput(_0xe46ec2){const _0x33986e={_0x4f179a:0x4b1,_0x5f026c:0x50e,_0x24398a:0x71d,_0xd3e194:0x54e,_0x1a643b:0x258,_0x229723:0x75,_0xfae5fe:0xbc,_0x4b850a:0x11e,_0x1e5ad1:0x4f6,_0x186815:0x4bc,_0x548a56:0x42d,_0x1eb3f4:0x6cb,_0x1b5ad6:0x5c7,_0x53034b:0x517,_0xc7ed68:0x61b,_0x5d4af9:0x5ac,_0x25a5f8:0x339,_0x206c0c:0x39d,_0x4b0498:0x18d,_0x1e7aee:0x222,_0x1bb1b6:0x342,_0x40742b:0x5a7,_0x4f30dd:0x408,_0x55785e:0x575,_0xb53d24:0x512,_0x25d7f3:0x3d8,_0x208b69:0x1e0,_0x1f6cab:0xc3,_0x4d1f38:0x516,_0x1cfa7e:0x4fa,_0x5c780f:0x45d,_0x7c5604:0x3d7,_0xf5ba52:0x528,_0x5662d9:0x42a,_0x3bdf97:0x1c5,_0x32694a:0x222,_0x2420a4:0x2d9,_0x4f2d09:0x1c4,_0x5bd3f2:0x2e7,_0xb5c30f:0x1fa,_0x3b5cc8:0x1cc,_0x4b92a8:0x1e9,_0x26f0c7:0x2df,_0x10238b:0x2d8,_0x42f9f5:0x164,_0x2f7e41:0x1f1,_0x2fa2b3:0x69e,_0x54a6fa:0x622,_0x25e06b:0x276,_0x599724:0x125,_0x3d09da:0x16c,_0x4f8353:0x307,_0x9c07b8:0x2bd,_0x45f7cb:0x43a,_0x5d0409:0x34c,_0x5eeab1:0x434,_0x2f6a08:0x31a,_0x1c7b67:0x5d3,_0x57087f:0x6fb,_0x197876:0x4d0,_0x24a73c:0x4e5,_0x5e75a3:0x59e,_0x46fade:0x44e,_0x4ab7bf:0x1b2,_0x1d6965:0x189,_0xb7a4f1:0x151,_0x35c5df:0x16d,_0x2e4b98:0xce,_0xfe5f5e:0x64,_0x5df7d4:0x2a3,_0x7a05bf:0x320,_0x24f7a6:0xdb,_0x36c0c2:0x186,_0x379f2f:0x33c,_0x4c6803:0x512,_0x5809cd:0x608,_0x412a7a:0x624,_0x5240cd:0x1ee},_0x46b1ec={_0x3473e8:0x13e},_0x46a064={_0x20d42b:0x56,_0x3a6e22:0x188};function _0x1442ac(_0xd8b914,_0x2b3085,_0x5849c5,_0x1929eb){return _0x34fd29(_0x5849c5,_0x2b3085-0x134,_0x5849c5-_0x46a064._0x20d42b,_0xd8b914- -_0x46a064._0x3a6e22);}if(!Array[_0x1442ac(0x4ee,_0x33986e._0x4f179a,_0x33986e._0x5f026c,0x491)](_0xe46ec2['questions'])||_0xe46ec2['questions']['length']<0x1||_0xe46ec2[_0x1442ac(0x5da,0x594,_0x33986e._0x24398a,_0x33986e._0xd3e194)]['length']>0x4)throw new ToolExecutionError(_0x307f70(0x8,0x13f,_0x33986e._0x1a643b,_0x33986e._0x229723),{'error':_0x307f70(0x1cb,_0x33986e._0xfae5fe,_0x33986e._0x4b850a,-0x73)});function _0x307f70(_0x57bae6,_0x4d8da1,_0x533aca,_0x38708c){return _0x34fd29(_0x57bae6,_0x4d8da1-0x139,_0x533aca-_0x46b1ec._0x3473e8,_0x4d8da1- -0x47c);}for(let _0x38c556=0x0;_0x38c556<_0xe46ec2[_0x1442ac(0x5da,_0x33986e._0x1e5ad1,0x6f8,0x55c)][_0x1442ac(0x4e5,_0x33986e._0x186815,0x5b6,_0x33986e._0x548a56)];_0x38c556+=0x1){const _0x5640ca=_0xe46ec2['questions'][_0x38c556];if(!_0x5640ca[_0x1442ac(0x5c7,_0x33986e._0x1eb3f4,0x61b,0x4da)]||typeof _0x5640ca[_0x1442ac(_0x33986e._0x1b5ad6,_0x33986e._0x53034b,_0x33986e._0xc7ed68,_0x33986e._0x5d4af9)]!=='string')throw new ToolExecutionError('Question\x20'+(_0x38c556+0x1)+_0x1442ac(0x395,_0x33986e._0x25a5f8,0x324,_0x33986e._0x206c0c));if(!_0x5640ca['header']||typeof _0x5640ca[_0x307f70(_0x33986e._0x4b0498,_0x33986e._0x1e7aee,0xfa,_0x33986e._0x1bb1b6)]!==_0x1442ac(0x4ef,_0x33986e._0x40742b,_0x33986e._0x4f30dd,_0x33986e._0x55785e))throw new ToolExecutionError(_0x1442ac(_0x33986e._0xb53d24,0x58e,0x4b2,_0x33986e._0x25d7f3)+(_0x38c556+0x1)+_0x307f70(_0x33986e._0x208b69,0x1e2,_0x33986e._0x1f6cab,0x223));if(_0x5640ca[_0x1442ac(_0x33986e._0x4d1f38,_0x33986e._0x1cfa7e,_0x33986e._0x5c780f,0x4fb)][_0x1442ac(0x4e5,0x423,0x48f,0x594)]>0x14)throw new ToolExecutionError(_0x1442ac(0x512,_0x33986e._0x7c5604,0x49a,0x4c9)+(_0x38c556+0x1)+_0x1442ac(_0x33986e._0xf5ba52,_0x33986e._0x5662d9,0x4c5,0x627)+_0x5640ca[_0x307f70(_0x33986e._0x3bdf97,_0x33986e._0x32694a,_0x33986e._0x2420a4,_0x33986e._0x4f2d09)]['length']);if(!Array[_0x307f70(_0x33986e._0x5bd3f2,_0x33986e._0xb5c30f,_0x33986e._0x3b5cc8,0x31e)](_0x5640ca[_0x307f70(_0x33986e._0x4b92a8,_0x33986e._0x26f0c7,0x3e8,0x411)])||_0x5640ca[_0x307f70(0x219,0x2df,_0x33986e._0x10238b,0x2e9)][_0x307f70(_0x33986e._0x42f9f5,_0x33986e._0x2f7e41,0x318,0x1cf)]<0x2||_0x5640ca[_0x1442ac(0x5d3,_0x33986e._0x2fa2b3,0x5e1,_0x33986e._0x54a6fa)][_0x307f70(_0x33986e._0x25e06b,_0x33986e._0x2f7e41,_0x33986e._0x599724,_0x33986e._0x3d09da)]>0x4)throw new ToolExecutionError(_0x307f70(_0x33986e._0x4f8353,0x21e,0x11a,_0x33986e._0x9c07b8)+(_0x38c556+0x1)+_0x1442ac(_0x33986e._0x45f7cb,_0x33986e._0x5d0409,_0x33986e._0x5eeab1,_0x33986e._0x2f6a08));for(let _0x4cee85=0x0;_0x4cee85<_0x5640ca[_0x1442ac(_0x33986e._0x1c7b67,0x4eb,_0x33986e._0x57087f,_0x33986e._0x197876)][_0x1442ac(_0x33986e._0x24a73c,0x58b,_0x33986e._0x5e75a3,_0x33986e._0x46fade)];_0x4cee85+=0x1){const _0x406a6c=_0x5640ca['options'][_0x4cee85];if(!_0x406a6c[_0x307f70(_0x33986e._0x4ab7bf,_0x33986e._0x1d6965,0x24d,_0x33986e._0xb7a4f1)]||!_0x406a6c[_0x307f70(_0x33986e._0x35c5df,_0x33986e._0x2e4b98,0x1b8,_0x33986e._0xfe5f5e)])throw new ToolExecutionError('Question\x20'+(_0x38c556+0x1)+_0x307f70(0x2c9,_0x33986e._0x5df7d4,0x281,_0x33986e._0x7a05bf)+(_0x4cee85+0x1)+_0x307f70(0x4a,_0x33986e._0x24f7a6,0x1da,_0x33986e._0x36c0c2));}if(typeof _0x5640ca['multiSelect']!==_0x307f70(0x32f,0x29d,0x38b,_0x33986e._0x379f2f))throw new ToolExecutionError(_0x1442ac(_0x33986e._0x4c6803,0x480,_0x33986e._0x5809cd,_0x33986e._0x412a7a)+(_0x38c556+0x1)+_0x307f70(0x234,_0x33986e._0x4f8353,0x3c1,_0x33986e._0x5240cd));}}function buildQuestions(_0x41be87){const _0x4323ed={_0x9ce73c:0x5da,_0x22da07:0x62f,_0x26ca1a:0xb7,_0x157ee4:0x46},_0x58d1fe={_0x27a81d:0x1cc},_0x5c00cc={_0x4a5af8:0x5bd};function _0x497834(_0x126ed5,_0x43f9d7,_0x37fba9,_0x2c3401){return _0x34fd29(_0x43f9d7,_0x43f9d7-0xc7,_0x37fba9-0xc3,_0x2c3401- -_0x5c00cc._0x4a5af8);}function _0x3e5c7d(_0x29743a,_0x1ac0be,_0x207b77,_0x490ea7){return _0x34fd29(_0x1ac0be,_0x1ac0be-_0x58d1fe._0x27a81d,_0x207b77-0x1ec,_0x490ea7- -0x276);}return _0x41be87[_0x3e5c7d(_0x4323ed._0x9ce73c,_0x4323ed._0x22da07,0x5a0,0x4ec)][_0x497834(-0xa1,0x13,-_0x4323ed._0x26ca1a,-_0x4323ed._0x157ee4)]((_0x1154e5,_0xe04e18)=>({'id':'q'+_0xe04e18,'question':_0x1154e5['question'],'header':_0x1154e5[_0x3e5c7d(0x365,0x470,0x4cb,0x428)],'options':_0x1154e5['options'],'multiSelect':_0x1154e5[_0x497834(0x75,0x93,-0x87,0xae)]}));}function createResult(_0x52f5d0,_0x59a0bc,_0x488d54){const _0x33b20d={_0x25dcf6:0x7b,_0x22f667:0x149,_0xcdd991:0x2b1,_0x20a051:0x167,_0x402e5f:0x24d},_0x5b9a72={_0x103161:0x594},_0x36102d={_0x54cea7:0x462};function _0x1f7584(_0xcc73d8,_0x56c8bc,_0x14cbc6,_0x5d4a88){return _0x34fd29(_0x56c8bc,_0x56c8bc-0x8d,_0x14cbc6-0x1a1,_0x5d4a88- -_0x36102d._0x54cea7);}function _0x4bba83(_0x37d463,_0x46f09e,_0x45618c,_0x383b1c){return _0x34fd29(_0x46f09e,_0x46f09e-0x163,_0x45618c-0x27,_0x383b1c- -_0x5b9a72._0x103161);}const _0x18911a={'questionId':_0x52f5d0,'questionCount':_0x59a0bc,'answers':_0x488d54};return createToolOutput(_0x4bba83(0x6b,_0x33b20d._0x25dcf6,0x75,_0x33b20d._0x22f667)+JSON[_0x1f7584(0x379,_0x33b20d._0xcdd991,_0x33b20d._0x20a051,_0x33b20d._0x402e5f)](_0x488d54,null,0x2),_0x18911a);}function createAskUserTool(){const _0xbd9c3b={_0xe34a0f:0x3bb,_0x4dfa42:0x401,_0x11edaa:0x385,_0x3193df:0x492,_0x360f36:0x43d,_0xcc24ad:0x436,_0x1b9843:0x5b7,_0x1deb70:0x3fe,_0x1ec845:0x66a,_0x25402d:0x635,_0x90e69:0x49f,_0x3cde3f:0x51e,_0x30be35:0x531,_0xbdd5a4:0x56f,_0x16bcf6:0x512,_0x179086:0x4c2,_0x4e8a5d:0x2d9,_0x417118:0x541,_0x22a1d8:0x5cf,_0x5a897e:0x624,_0x8ca385:0x61f,_0x347f11:0x5c4,_0x3d53df:0x586,_0x9c055d:0x58a,_0x3e3836:0x6a9},_0x40d072={_0xd056cf:0x181,_0x1565ca:0xea,_0x1f4fa0:0xde,_0x1b04dd:0xe5,_0x2b5819:0xfe,_0x4dead7:0x15,_0x48867b:0x9a,_0x475141:0x121,_0x40cdf3:0x15,_0x19c2b0:0x352,_0x1cbb09:0x283,_0x508733:0x1a6,_0x5b45e9:0xa2,_0x32bbd0:0x389,_0xb1d963:0x362,_0x24faab:0x3a6,_0x47e143:0x3f8,_0x3c688d:0x81,_0x11180e:0x78,_0x1f52da:0x95,_0x51857c:0x33c,_0x3dfdea:0x35b,_0x36f9ef:0x47e,_0x2d0c4a:0x305},_0x1bcb94={_0x38b2c7:0x558},_0x3b5f9e={_0x150cd5:0x1f};function _0x1e1899(_0x1e7edb,_0x3a11a1,_0x2294fb,_0x1732d1){return _0x2803df(_0x1e7edb-0x4b0,_0x2294fb,_0x2294fb-_0x3b5f9e._0x150cd5,_0x1732d1-0x43);}function _0x32a709(_0x4b2264,_0x5d450b,_0x4adc50,_0xe6711){return _0x2803df(_0x4b2264-_0x1bcb94._0x38b2c7,_0x5d450b,_0x4adc50-0xa1,_0xe6711-0x163);}return defineTool({'name':_0x1e1899(_0xbd9c3b._0xe34a0f,_0xbd9c3b._0x4dfa42,_0xbd9c3b._0x11edaa,_0xbd9c3b._0x3193df),'description':'Use\x20this\x20tool\x20when\x20you\x20need\x20to\x20ask\x20the\x20user\x20questions\x20during\x20execution.\x20This\x20allows\x20you\x20to:\x0a1.\x20Gather\x20user\x20preferences\x20or\x20requirements\x0a2.\x20Clarify\x20ambiguous\x20instructions\x0a3.\x20Get\x20decisions\x20on\x20implementation\x20choices\x20as\x20you\x20work\x0a4.\x20Offer\x20choices\x20to\x20the\x20user\x20about\x20what\x20direction\x20to\x20take.\x0a\x0aUsage\x20notes:\x0a-\x20Users\x20will\x20always\x20be\x20able\x20to\x20select\x20\x22Other\x22\x20to\x20provide\x20custom\x20text\x20input\x0a-\x20Use\x20multiSelect:\x20true\x20to\x20allow\x20multiple\x20answers\x20to\x20be\x20selected\x20for\x20a\x20question\x0a-\x20If\x20you\x20recommend\x20a\x20specific\x20option,\x20make\x20that\x20the\x20first\x20option\x20in\x20the\x20list\x20and\x20add\x20\x22(Recommended)\x22\x20at\x20the\x20end\x20of\x20the\x20label','inputSchema':{'type':'object','properties':{'questions':{'type':'array','items':{'type':_0x1e1899(0x3b0,0x27b,_0xbd9c3b._0x360f36,_0xbd9c3b._0xcc24ad),'properties':{'question':{'type':_0x1e1899(0x49f,_0xbd9c3b._0x1b9843,0x370,_0xbd9c3b._0x1deb70)},'header':{'type':_0x32a709(0x547,0x63e,_0xbd9c3b._0x1ec845,_0xbd9c3b._0x25402d)},'options':{'type':'array','items':{'type':'object','properties':{'label':{'type':'string'},'description':{'type':_0x1e1899(_0xbd9c3b._0x90e69,0x4e8,0x59c,_0xbd9c3b._0x3cde3f)}},'required':[_0x1e1899(0x42d,0x4ed,_0xbd9c3b._0x30be35,_0xbd9c3b._0xbdd5a4),_0x32a709(0x41a,_0xbd9c3b._0x16bcf6,_0xbd9c3b._0x179086,_0xbd9c3b._0x4e8a5d)]}},'multiSelect':{'type':_0x1e1899(_0xbd9c3b._0x417118,_0xbd9c3b._0x22a1d8,0x645,_0xbd9c3b._0x5a897e)}},'required':[_0x32a709(_0xbd9c3b._0x8ca385,0x56c,0x68d,0x736),_0x32a709(0x56e,0x592,_0xbd9c3b._0x347f11,_0xbd9c3b._0x3d53df),'options','multiSelect']}},'answers':{'type':_0x1e1899(0x3b0,0x33a,0x4c2,0x40d),'properties':{}}},'required':[_0x1e1899(_0xbd9c3b._0x9c055d,_0xbd9c3b._0x3e3836,0x4bc,0x4ee)]},async *'execute'(_0x483241,_0xabd411){const _0x5b58d4={_0x3127ad:0x73,_0x163a16:0x1cc},_0x4a5e3a={_0x1ecc01:0x590,_0x4986d6:0x13c},_0x2307c2=_0x483241;function _0x1c1579(_0x1365dc,_0x1f5a40,_0x270eba,_0x135f07){return _0x32a709(_0x135f07- -_0x4a5e3a._0x1ecc01,_0x1f5a40,_0x270eba-_0x4a5e3a._0x4986d6,_0x135f07-0x15e);}validateInput(_0x2307c2);const _0x76f0d2=_0xabd411[_0x1c1579(-_0x40d072._0xd056cf,-_0x40d072._0x1565ca,0x40,-_0x40d072._0x1f4fa0)]??createQuestionId();if(_0x2307c2[_0x1c1579(_0x40d072._0x1b04dd,_0x40d072._0x2b5819,-0xe2,-_0x40d072._0x4dead7)]&&Object['keys'](_0x2307c2[_0x1c1579(-0xd0,_0x40d072._0x48867b,_0x40d072._0x475141,-_0x40d072._0x40cdf3)])[_0x86b695(_0x40d072._0x19c2b0,0x362,_0x40d072._0x1cbb09,0x2f8)]>0x0)return createResult(_0x76f0d2,_0x2307c2[_0x1c1579(0x19,0xf5,_0x40d072._0x508733,_0x40d072._0x5b45e9)][_0x86b695(_0x40d072._0x32bbd0,_0x40d072._0xb1d963,_0x40d072._0x24faab,_0x40d072._0x47e143)],_0x2307c2[_0x1c1579(0x24,_0x40d072._0x3c688d,-_0x40d072._0x11180e,-0x15)]);if(!_0xabd411['askUser'])throw new ToolExecutionError(_0x1c1579(0x16f,-_0x40d072._0x1f52da,-0xa2,0x6c));const _0x436623=buildQuestions(_0x2307c2),_0x344c7e=await _0xabd411[_0x86b695(_0x40d072._0x51857c,_0x40d072._0x3dfdea,0x2fa,_0x40d072._0x36f9ef)]({'questionId':_0x76f0d2,'questions':_0x436623});function _0x86b695(_0x378c3d,_0x57f35d,_0x5a3c4d,_0x368ff4){return _0x1e1899(_0x57f35d- -0x133,_0x57f35d-_0x5b58d4._0x3127ad,_0x368ff4,_0x368ff4-_0x5b58d4._0x163a16);}yield createResult(_0x76f0d2,_0x2307c2['questions'][_0x86b695(_0x40d072._0x2d0c4a,_0x40d072._0xb1d963,0x448,0x3c4)],_0x344c7e);}});}import{spawn as _0x460588}from'child_process';import{statSync}from'fs';import*as _0x462485 from'os';import*as _0x57f507 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x1b6761 from'path';function isPathInside(_0x55fa67,_0x3af24d){const _0x4c9414={_0x57558e:0x18f,_0x1f445c:0x17a,_0x3b5b2e:0x161,_0x8d3f8a:0x6ea,_0x58316c:0x4f1,_0x5def80:0x637,_0x5178a2:0x92,_0x351e25:0x1ca,_0xe47feb:0xdd},_0x474b75={_0x2a7337:0xa7},_0x47f30a={_0xb61432:0x58};function _0x2ae4e7(_0x2531a6,_0x1d1d6f,_0x56bccb,_0x4e4597){return _0x34fd29(_0x4e4597,_0x1d1d6f-_0x47f30a._0xb61432,_0x56bccb-0x31,_0x2531a6- -0x58f);}const _0x3123be=_0x1b6761[_0x2ae4e7(0xe2,0x6d,0x7b,0x129)](_0x55fa67);function _0x486927(_0x349b0e,_0x4ac920,_0x13c31f,_0xfbdfbc){return _0x34fd29(_0x4ac920,_0x4ac920-0x15f,_0x13c31f-0x1c4,_0xfbdfbc-_0x474b75._0x2a7337);}const _0x53e002=_0x1b6761[_0x2ae4e7(0x7d,_0x4c9414._0x57558e,_0x4c9414._0x1f445c,_0x4c9414._0x3b5b2e)](_0x3123be,_0x3af24d);return _0x53e002===''||!_0x53e002[_0x486927(0x5ca,_0x4c9414._0x8d3f8a,_0x4c9414._0x58316c,_0x4c9414._0x5def80)]('..')&&!_0x1b6761[_0x2ae4e7(-_0x4c9414._0x5178a2,-_0x4c9414._0x351e25,-_0x4c9414._0xe47feb,-0x72)](_0x53e002);}function resolveWorkspacePath(_0x5adcd8,_0x2bc726){return resolveAllowedPath(_0x5adcd8,[],_0x2bc726);}function resolveAllowedPath(_0x3314ae,_0x4e0446,_0x6e476f){const _0xbe7d1d={_0x236972:0x39d,_0x2919c0:0x4c5,_0x1b63cc:0x445,_0x5a892a:0x54a,_0x5a09d0:0x4a5,_0x18bdb7:0x2cc,_0x309ed1:0x323},_0x2883ff={_0x256b9c:0x330},_0xc4a0c9={_0x524df4:0x196,_0xd5294a:0x57},_0x3ebca5=_0x1b6761[_0x45cf8e(0x341,_0xbe7d1d._0x236972,0x34d,0x35e)](_0x3314ae),_0x44e5f6=_0x1b6761[_0xdf5cf4(0x314,0x534,_0xbe7d1d._0x2919c0,_0xbe7d1d._0x1b63cc)](_0x3ebca5,_0x6e476f),_0x2c420d=[_0x3ebca5,..._0x4e0446['map'](_0x927744=>_0x1b6761[_0xdf5cf4(0x517,0x335,0x30f,0x445)](_0x927744))];function _0xdf5cf4(_0x57d648,_0x521bda,_0x547d79,_0x2e8866){return _0x2803df(_0x2e8866-0x45c,_0x547d79,_0x547d79-_0xc4a0c9._0x524df4,_0x2e8866-_0xc4a0c9._0xd5294a);}function _0x45cf8e(_0xfbc3f5,_0x469ec1,_0x35e0b7,_0xd76a92){return _0x34fd29(_0x35e0b7,_0x469ec1-0x125,_0x35e0b7-0x1f3,_0xfbc3f5- -_0x2883ff._0x256b9c);}if(_0x2c420d[_0xdf5cf4(_0xbe7d1d._0x5a892a,0x3b8,0x5eb,_0xbe7d1d._0x5a09d0)](_0xf347fb=>isPathInside(_0xf347fb,_0x44e5f6)))return _0x44e5f6;throw new ToolExecutionError(_0xdf5cf4(0x3e9,_0xbe7d1d._0x18bdb7,0x2dc,_0xbe7d1d._0x309ed1)+_0x6e476f,{'path':_0x6e476f,'rootDir':_0x3ebca5,'allowedDirs':_0x2c420d});}async function assertWorkspaceFile(_0x45d971){const _0x115fc2={_0x5ef1c8:0x5bc,_0x5a90e9:0x7c},_0xd1e367={_0x1f8730:0xa3,_0x2b5536:0x41},_0x2f4720={_0x27026c:0x12e,_0x50cee3:0x103,_0x2cb614:0x56b},_0x6a06e0=await stat(_0x45d971);function _0x4be13b(_0x21c345,_0x3f1cf1,_0x505d9e,_0x5d3d51){return _0x34fd29(_0x21c345,_0x3f1cf1-_0x2f4720._0x27026c,_0x505d9e-_0x2f4720._0x50cee3,_0x5d3d51- -_0x2f4720._0x2cb614);}function _0x5a4072(_0x5741a9,_0x5e75ef,_0x156090,_0x2608ee){return _0x2803df(_0x5e75ef-0x5cc,_0x156090,_0x156090-_0xd1e367._0x1f8730,_0x2608ee-_0xd1e367._0x2b5536);}if(!_0x6a06e0[_0x5a4072(0x53c,_0x115fc2._0x5ef1c8,0x595,0x592)]())throw new ToolExecutionError(_0x4be13b(-0xca,0xa6,-0x38,_0x115fc2._0x5a90e9)+_0x45d971,{'path':_0x45d971});}function isProbablyBinary(_0x561b5c){const _0x54950f={_0x10766b:0xeb};function _0x2e455e(_0x43cbed,_0xe6010e,_0xfe217,_0x49eabc){return _0x2803df(_0x43cbed-0x1,_0xe6010e,_0xfe217-0x9a,_0x49eabc-0x1c9);}return _0x561b5c[_0x2e455e(-0x18e,-_0x54950f._0x10766b,-0x188,-0x146)](0x0);}var DEFAULT_DESCRIPTION=_0x34fd29(0x74a,0x61c,0x824,0x708),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x407c01){return _0x407c01 instanceof Error;}function shellExists(_0x439c43){const _0x27f642={_0x5351ea:0x19,_0x3c05ae:0x115,_0x1c1125:0xdf,_0x2237f8:0x8f,_0xb78a5a:0x9b},_0x5b0137={_0x101e2a:0x714,_0x1f9298:0x1cc,_0x35f033:0x65},_0x5f26db={_0x28bf87:0xf3};function _0x48e17c(_0x286c4d,_0x2f9b29,_0x41bb54,_0x1df8d6){return _0x34fd29(_0x2f9b29,_0x2f9b29-0xb9,_0x41bb54-_0x5f26db._0x28bf87,_0x286c4d- -0x6f9);}function _0x1511bf(_0x438029,_0x16f21f,_0x5c3f6a,_0x17e703){return _0x2803df(_0x438029-_0x5b0137._0x101e2a,_0x17e703,_0x5c3f6a-_0x5b0137._0x1f9298,_0x17e703-_0x5b0137._0x35f033);}try{const _0x229eca=statSync(_0x439c43);return _0x229eca[_0x48e17c(-0x81,-0x87,_0x27f642._0x5351ea,-_0x27f642._0x3c05ae)]()&&(_0x229eca[_0x48e17c(-0x38,-_0x27f642._0x1c1125,_0x27f642._0x2237f8,-_0x27f642._0xb78a5a)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x46fe64){const _0x49c6b6={_0x4db3f6:0x5f4,_0x2720cb:0x4b4,_0x4fa62a:0x6f2,_0x3ebc08:0x64c,_0x576b24:0x497,_0x120e81:0x54e,_0x45e767:0x652,_0x269bd2:0x3d5,_0x1cf0ac:0x4fa},_0x3dbe64={_0x5f19a3:0x517,_0x18a96b:0xf9,_0x3a093e:0x106};if(_0x46fe64)return _0x46fe64;if(_0x462485['platform']()==='win32')return process[_0x1ab1ec(0x69d,_0x49c6b6._0x4db3f6,0x562,0x4fb)]['ComSpec']||_0x1ab1ec(0x59e,_0x49c6b6._0x2720cb,0x45a,0x46a);const _0x386636=['/bin/bash',_0x203519(0x69a,_0x49c6b6._0x4fa62a,0x797,_0x49c6b6._0x3ebc08),_0x203519(0x547,_0x49c6b6._0x576b24,0x64f,0x510),_0x203519(0x68b,_0x49c6b6._0x120e81,_0x49c6b6._0x45e767,0x5c4)];function _0x1ab1ec(_0x2a1c53,_0x3a96d7,_0x2f8e1a,_0x44db39){return _0x2803df(_0x3a96d7-_0x3dbe64._0x5f19a3,_0x44db39,_0x2f8e1a-_0x3dbe64._0x18a96b,_0x44db39-_0x3dbe64._0x3a093e);}function _0x203519(_0x24c207,_0x5974e8,_0x5003ba,_0x1ee2a5){return _0x2803df(_0x24c207-0x5de,_0x1ee2a5,_0x5003ba-0x70,_0x1ee2a5-0x14c);}for(const _0x17742b of _0x386636){if(shellExists(_0x17742b))return _0x17742b;}const _0x21eb65=process['env']['SHELL'];if(_0x21eb65&&shellExists(_0x21eb65))return _0x21eb65;return _0x1ab1ec(_0x49c6b6._0x269bd2,0x519,0x594,_0x49c6b6._0x1cf0ac);}function buildShellArgs(_0x3f512c,_0x2d0aa8){const _0x5805b3={_0x2e67b3:0x9a,_0x48c53b:0xcd,_0x209069:0xa0,_0x8ff6e7:0x138,_0x5d9ace:0x1,_0x4cede5:0x46,_0x524569:0x56b,_0x2b3c4c:0x1c6,_0x1856ac:0x1ba},_0x701abc={_0x457430:0x28,_0x4f31c5:0x60},_0x1187ba={_0x28f0c5:0x6b,_0x9954ae:0x2da};function _0x3c1669(_0x5e5a8e,_0x1db8a9,_0x34c990,_0x52be4c){return _0x34fd29(_0x34c990,_0x1db8a9-_0x1187ba._0x28f0c5,_0x34c990-0x34,_0x1db8a9- -_0x1187ba._0x9954ae);}if(_0x462485[_0x59da01(-0x190,0x43,-0x8,-_0x5805b3._0x2e67b3)]()===_0x59da01(-0x1a2,-_0x5805b3._0x48c53b,-_0x5805b3._0x209069,-_0x5805b3._0x8ff6e7)){const _0x5173ee=/cmd(\.exe)?$/i['test'](_0x2d0aa8);return _0x5173ee?['/d','/s','/c',_0x3f512c]:[_0x59da01(-0x7d,-_0x5805b3._0x5d9ace,-0xd7,-_0x5805b3._0x4cede5),_0x3c1669(_0x5805b3._0x524569,0x449,0x3db,0x344),_0x3c1669(_0x5805b3._0x2b3c4c,0x277,0x2b0,_0x5805b3._0x1856ac),_0x3f512c];}function _0x59da01(_0x595dce,_0x3e936d,_0x1ddf64,_0x53aacf){return _0x34fd29(_0x1ddf64,_0x3e936d-_0x701abc._0x457430,_0x1ddf64-_0x701abc._0x4f31c5,_0x53aacf- -0x678);}return['-c',_0x3f512c];}function resolveCarriageReturns(_0x4f6d36){const _0xc0d09b={_0x1f1b98:0x177,_0x1fd77e:0x1fb,_0x474658:0xc8,_0xc7deb5:0x49,_0x411508:0x77,_0x39cfd2:0x2c,_0x4f2ce7:0x96},_0x45b2ec={_0x267338:0x53c,_0x31f234:0x54c,_0x5927ad:0x4f5,_0x4ef0f0:0x616,_0x2e69a8:0x5c6,_0x242b7b:0x690},_0x382cf8={_0x3d1f54:0x77},_0x24989e={_0x1ef836:0x93},_0x494c43={_0x5ae94e:0x15f};function _0x3df3c5(_0x1e3bfc,_0x36424c,_0x41ce96,_0x1f74ca){return _0x34fd29(_0x41ce96,_0x36424c-_0x494c43._0x5ae94e,_0x41ce96-0xef,_0x1f74ca- -0x63f);}function _0x3425c2(_0x1ac7b5,_0x383ac3,_0x1242ed,_0x573a26){return _0x2803df(_0x1242ed- -_0x24989e._0x1ef836,_0x573a26,_0x1242ed-0x24,_0x573a26-0x12a);}return _0x4f6d36[_0x3425c2(-0x270,-0x163,-_0xc0d09b._0x1f1b98,-0x137)]('\x0a')[_0x3df3c5(-_0xc0d09b._0x1fd77e,-0x1,-0xf8,-_0xc0d09b._0x474658)](_0x2a07af=>{const _0x5cb91f={_0x466dff:0x139};if(!_0x2a07af[_0x5ce1c5(0x57b,_0x45b2ec._0x267338,0x616,_0x45b2ec._0x31f234)]('\x0d'))return _0x2a07af;const _0x4369af=_0x2a07af[_0x133edf(0x6cf,_0x45b2ec._0x5927ad,0x5c7,_0x45b2ec._0x4ef0f0)]('\x0d');function _0x133edf(_0x7d2263,_0x160905,_0x39fd4f,_0x34b7c7){return _0x3df3c5(_0x7d2263-0x1ab,_0x160905-_0x5cb91f._0x466dff,_0x34b7c7,_0x39fd4f-0x662);}function _0x5ce1c5(_0x4fe5f6,_0x5132a5,_0x3d0e2c,_0x301b2f){return _0x3df3c5(_0x4fe5f6-_0x382cf8._0x3d1f54,_0x5132a5-0x196,_0x4fe5f6,_0x5132a5-0x682);}return _0x4369af[_0x4369af[_0x133edf(_0x45b2ec._0x2e69a8,0x750,_0x45b2ec._0x242b7b,0x59a)]-0x1]??'';})[_0x3df3c5(_0xc0d09b._0xc7deb5,-_0xc0d09b._0x411508,-_0xc0d09b._0x39cfd2,_0xc0d09b._0x4f2ce7)]('\x0a');}function resolveBackspaces(_0x3c5d3e){const _0x5ed731={_0x395caf:0x8b,_0x396ce7:0xa9,_0x268ab8:0x18c,_0xa0b098:0x64,_0x5071d3:0xc1,_0x4e220a:0xec,_0x5ddaba:0x232},_0x42853f={_0x10421f:0x10c,_0x1c87ad:0x540},_0x4d9f3f={_0x71bd73:0x4,_0x47a119:0x3f};function _0x569c44(_0x467b0e,_0x5efbde,_0x547528,_0x468616){return _0x2803df(_0x468616-_0x4d9f3f._0x71bd73,_0x467b0e,_0x547528-0x172,_0x468616-_0x4d9f3f._0x47a119);}const _0x5f1e9a=[];for(const _0x2bc9b8 of Array[_0x15417d(0x38,-_0x5ed731._0x395caf,0x1d,-_0x5ed731._0x396ce7)](_0x3c5d3e)){_0x2bc9b8==='\x08'?_0x5f1e9a[_0x569c44(-0xba,-0x154,-_0x5ed731._0x268ab8,-_0x5ed731._0xa0b098)]():_0x5f1e9a[_0x15417d(0x26,0x11e,-0x14,-_0x5ed731._0x5071d3)](_0x2bc9b8);}function _0x15417d(_0x28ef9b,_0x1f1537,_0xf4da00,_0xabb44c){return _0x34fd29(_0xabb44c,_0x1f1537-0xfe,_0xf4da00-_0x42853f._0x10421f,_0xf4da00- -_0x42853f._0x1c87ad);}return _0x5f1e9a[_0x15417d(_0x5ed731._0x4e220a,0x8c,0x195,_0x5ed731._0x5ddaba)]('');}function stripAnsiAndControls(_0x358479){const _0x38c1d5={_0x4fa01f:0x4d6,_0x9940bc:0x513,_0x312a8a:0x6df,_0xb80ff7:0x511,_0x212606:0x536,_0x368cd5:0x45c,_0x432194:0x5c6,_0x280c04:0x5fb,_0xd32bff:0x4ab,_0x350dda:0x6b2,_0x31b410:0x6ad,_0x380422:0x601,_0x457970:0x591,_0x3c1a15:0x45e,_0x52ebd9:0x520},_0x571132={_0xb3802e:0x623,_0x59ab3a:0x158},_0x190735={_0x3c05fa:0x24};_0x358479=resolveCarriageReturns(_0x358479),_0x358479=resolveBackspaces(_0x358479),_0x358479=stripVTControlCharacters(_0x358479);const _0x20ea73='\x1b';function _0x147a60(_0x46cb3b,_0xdf1b0c,_0x147392,_0x1556fa){return _0x2803df(_0x147392-0x593,_0xdf1b0c,_0x147392-0x55,_0x1556fa-_0x190735._0x3c05fa);}const _0x543371='\x07';_0x358479=_0x358479[_0x3b84a9(0x5c6,_0x38c1d5._0x4fa01f,_0x38c1d5._0x9940bc,_0x38c1d5._0x312a8a)](new RegExp(_0x3b84a9(0x66a,0x55f,0x659,0x698)+_0x543371+'\x5cn]*?'+_0x543371,'g'),''),_0x358479=_0x358479[_0x3b84a9(0x5c6,0x657,_0x38c1d5._0xb80ff7,0x525)](new RegExp(';[^\x5cn]*?'+_0x20ea73+'\x5c\x5c','g'),'');function _0x3b84a9(_0x2bc0d1,_0xb6007d,_0x2800c6,_0x2670ad){return _0x2803df(_0x2bc0d1-_0x571132._0xb3802e,_0x2670ad,_0x2800c6-_0x571132._0x59ab3a,_0x2670ad-0x12a);}return _0x358479=_0x358479[_0x147a60(0x4ff,0x501,_0x38c1d5._0x212606,_0x38c1d5._0x368cd5)](new RegExp(_0x543371,'g'),''),_0x358479=_0x358479[_0x3b84a9(_0x38c1d5._0x432194,0x6af,_0x38c1d5._0x280c04,_0x38c1d5._0xd32bff)](new RegExp(_0x20ea73+_0x3b84a9(_0x38c1d5._0x350dda,0x65a,0x69c,_0x38c1d5._0x31b410)+_0x20ea73+'\x5c\x5c','g'),''),_0x358479=_0x358479['replace'](new RegExp(_0x20ea73+_0x147a60(_0x38c1d5._0x380422,0x554,_0x38c1d5._0x457970,0x67f),'g'),''),_0x358479=_0x358479[_0x147a60(0x468,0x453,0x536,_0x38c1d5._0x3c1a15)](/[\u0080-\u009F]/g,''),_0x358479=_0x358479[_0x3b84a9(_0x38c1d5._0x432194,0x50d,_0x38c1d5._0x52ebd9,0x5e4)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x358479=_0x358479['replace'](/[\u23CE\u2424]/g,''),_0x358479;}function resolveWorkingDirectory(_0x115ffd,_0x6d03e3,_0x44a6ca){const _0x3cee0f={_0x497066:0x49e,_0x264ecd:0x560,_0x277b90:0x608,_0x6dd524:0x367,_0x47cdb9:0x358},_0x21c163={_0xecb52a:0x93,_0x5ed280:0x211},_0xfa9b3d={_0x35c779:0xbb},_0xb5b0a4=resolveAllowedPath(_0x6d03e3,_0x44a6ca,_0x115ffd??'.');function _0xf2f257(_0x16bc5e,_0x17c795,_0x2e31fe,_0x2c4871){return _0x34fd29(_0x2c4871,_0x17c795-0x1d,_0x2e31fe-_0xfa9b3d._0x35c779,_0x17c795- -0x34b);}function _0x3b19a3(_0x222083,_0x3b5b79,_0x1c558e,_0x27f592){return _0x34fd29(_0x222083,_0x3b5b79-_0x21c163._0xecb52a,_0x1c558e-0x1c6,_0x3b5b79- -_0x21c163._0x5ed280);}try{const _0x1d8d87=statSync(_0xb5b0a4);if(!_0x1d8d87[_0x3b19a3(_0x3cee0f._0x497066,_0x3cee0f._0x264ecd,0x583,_0x3cee0f._0x277b90)]())throw new ToolExecutionError(_0xf2f257(0x4fb,0x3bb,_0x3cee0f._0x6dd524,0x39f)+_0xb5b0a4,{'cwd':_0xb5b0a4});return _0xb5b0a4;}catch(_0x5d037c){if(_0x5d037c instanceof ToolExecutionError)throw _0x5d037c;throw new ToolExecutionError(_0xf2f257(0x414,_0x3cee0f._0x47cdb9,0x345,0x272)+_0xb5b0a4,{'cwd':_0xb5b0a4});}}function killProcessGroup(_0x53523e,_0x264bfd,_0x1d3ce0=_0x34fd29(0x701,0x7ae,0x888,0x759)){const _0x24ebd7={_0x1abb68:0x61,_0x5a9d6f:0xc8,_0x281243:0xc4,_0x1d8cd3:0x1e6,_0x4a074e:0x572,_0x327f9b:0x5ec,_0x5b9ae4:0xec,_0x422225:0x164,_0x5ee922:0x4ec,_0x51ef7b:0x440,_0x297cac:0x425,_0x2c0923:0x504,_0x1ad8c0:0x466,_0x3fce02:0x4a4,_0x60e291:0x638,_0x5be95c:0x62d,_0x19e4d4:0x501,_0x8a253d:0x55e,_0xf75f72:0x4fe,_0x58ff35:0x5ca,_0x5ca2c8:0x501,_0x218493:0x43f,_0x280d9f:0x2b,_0x1fc38a:0x17},_0xd2ff32={_0x970b68:0x548,_0x551c98:0x145},_0x4b1a94={_0x42a8d8:0x130,_0x35a101:0x162};if(!_0x53523e[_0x3cafef(-_0x24ebd7._0x1abb68,-_0x24ebd7._0x5a9d6f,-_0x24ebd7._0x281243,-_0x24ebd7._0x1d8cd3)])return;function _0x3cafef(_0x211278,_0x45c382,_0x326e09,_0x3a3bc6){return _0x34fd29(_0x45c382,_0x45c382-_0x4b1a94._0x42a8d8,_0x326e09-_0x4b1a94._0x35a101,_0x326e09- -0x62a);}if(_0x264bfd)try{_0x460588(_0x22e8c5(0x568,_0x24ebd7._0x4a074e,_0x24ebd7._0x327f9b,0x463),[_0x3cafef(_0x24ebd7._0x5b9ae4,_0x24ebd7._0x422225,0xa6,0xf1),_0x53523e[_0x22e8c5(_0x24ebd7._0x5ee922,0x426,_0x24ebd7._0x51ef7b,_0x24ebd7._0x297cac)][_0x22e8c5(0x4e7,_0x24ebd7._0x2c0923,_0x24ebd7._0x1ad8c0,_0x24ebd7._0x3fce02)](),'/T','/F'],{'stdio':_0x22e8c5(0x661,_0x24ebd7._0x60e291,0x633,0x670)});return;}catch{_0x53523e[_0x22e8c5(_0x24ebd7._0x5be95c,_0x24ebd7._0x19e4d4,_0x24ebd7._0x8a253d,_0x24ebd7._0xf75f72)](_0x1d3ce0);return;}function _0x22e8c5(_0x37f7ea,_0x591fe5,_0x3690e5,_0x5ed584){return _0x2803df(_0x591fe5-_0xd2ff32._0x970b68,_0x3690e5,_0x3690e5-0x84,_0x5ed584-_0xd2ff32._0x551c98);}try{process[_0x22e8c5(_0x24ebd7._0x58ff35,_0x24ebd7._0x5ca2c8,_0x24ebd7._0x218493,0x57a)](-_0x53523e['pid'],_0x1d3ce0);}catch{_0x53523e[_0x3cafef(-_0x24ebd7._0x280d9f,-0x12e,_0x24ebd7._0x1fc38a,0x46)](_0x1d3ce0);}}function appendChunk(_0x294a8e,_0x11cb0d,_0x32c6b5,_0x18c7dd,_0x425bfb){const _0x34090c={_0x4cfcd2:0x2b3,_0x1c89f4:0x258,_0x2e0417:0x11f,_0x155000:0x156,_0x262691:0x25a},_0x38854b={_0x320f97:0x62,_0x5148cd:0x13b},_0x137fed=_0x18c7dd?stripAnsiAndControls(_0x32c6b5):_0x32c6b5;function _0x1d6d87(_0x177081,_0x3900af,_0x1a614f,_0x3d78e3){return _0x2803df(_0x1a614f-0x385,_0x3900af,_0x1a614f-0x11a,_0x3d78e3-0x181);}if(_0x137fed[_0x1d6d87(0x27b,_0x34090c._0x4cfcd2,0x36a,0x399)]===0x0)return;function _0x260a3a(_0x32bbe1,_0x32cdf6,_0x364f18,_0x3f7aff){return _0x34fd29(_0x32cdf6,_0x32cdf6-_0x38854b._0x320f97,_0x364f18-_0x38854b._0x5148cd,_0x364f18- -0x2d4);}_0x294a8e[_0x260a3a(0x2f7,0x15b,_0x34090c._0x1c89f4,_0x34090c._0x2e0417)](_0x137fed),_0x11cb0d[_0x260a3a(_0x34090c._0x155000,0x301,0x258,_0x34090c._0x262691)](_0x137fed),_0x425bfb();}function createBashTool(_0x4e49e1={}){const _0x4d5842={_0x2ca2a8:0x5b3,_0x182031:0x613,_0x44a396:0x612,_0x3b7a8c:0x6f5,_0xaf478c:0x668,_0x629723:0x56e,_0x396f0a:0x6bf,_0x384bdc:0x550,_0x25e40b:0x4ce,_0x3e1e9d:0x622,_0x51a239:0x5f6,_0x4c9539:0x654,_0x211b4a:0x579,_0x2edd0a:0x543,_0x492a8a:0x4ec,_0x48ac48:0x5da,_0x898bb9:0x5ed,_0x4af157:0x395,_0x259a29:0x5d3,_0x4f9b8d:0x619,_0x38ed65:0x617,_0x146c4b:0x618,_0x5641f5:0x57a,_0x30b3d6:0x3bb,_0x8b7b07:0x521,_0x2348ca:0x4d3,_0x2b35e1:0x7e4,_0xac40e8:0x6bb},_0x437b45={_0x492d46:0x214,_0x5cfa2b:0x4c,_0x3a8d59:0x21b,_0x277b19:0x1c6,_0x47676d:0x2ae,_0x5e9eb9:0x344,_0x2d03ff:0x3b,_0x125174:0x15d,_0xcfa5fb:0x2a,_0x58b4cd:0xcb,_0x24eb5d:0x197,_0x3475b9:0xe7,_0x3505f4:0x26e,_0x577acc:0x22c,_0x14a960:0x1c3,_0xd42e5d:0xf1,_0x14a438:0x54,_0x325867:0x13,_0x17c0e7:0x9e,_0x3cb3d2:0x279,_0x409d5b:0x2ac,_0x237817:0x279,_0x39c403:0x68,_0x461a9b:0xdc,_0x592382:0x7a,_0x5c331e:0x112,_0x36de9e:0x67,_0x50caa0:0xad,_0x37f8fd:0x11d,_0x47ccdf:0xbc,_0x3492ae:0x3f,_0x430dd7:0x2c,_0x289c9a:0x1dd,_0x218b45:0x16e,_0x83be4e:0xe9,_0x376ff6:0x221,_0x289df8:0x245,_0xde26e5:0x1ef,_0x58f003:0x119,_0x1322d3:0x118,_0x23dca6:0x61,_0x37012d:0x124,_0x2d75c7:0x208,_0x24a031:0x7f,_0x443d2c:0x117,_0x167d65:0xb,_0x18b219:0x1be,_0x32ca6a:0x145,_0x19627f:0x16e,_0x1c9e51:0x7,_0x367b1a:0x79,_0x342b1b:0x11,_0x5726f4:0x77,_0x59d965:0x15,_0x14eadb:0x103,_0x13d67f:0x129,_0x1d75f6:0xf8,_0x56dc64:0x5e,_0x42499d:0xe5,_0x51aa36:0x98,_0x300473:0x148,_0x25dead:0x242,_0x35ee76:0x109,_0x38cb28:0x160,_0x34a14d:0x63,_0x5d6ca6:0xa4,_0x369043:0x39,_0xab5f70:0x151,_0x3a5971:0x72,_0x3fb681:0xeb,_0x406707:0xba,_0x28cb41:0x10e,_0x52b81b:0xfc,_0x4557bb:0x1bd,_0x21c241:0x42,_0x5c13ee:0x131,_0x5b1500:0x96,_0x100196:0x1ed,_0x47fee0:0x108,_0x487ea8:0xd1,_0xe63368:0x254,_0x1699ae:0x107,_0x537757:0x1bf,_0x2dbb7f:0x1ab,_0x45fbfd:0x18},_0x2e164d={_0x47868a:0x1b2,_0x1e91d7:0x11b,_0x6fd539:0x1d1,_0x5ed7ce:0x13b,_0x4dcb2b:0x3a2,_0x30d2f7:0x3bb,_0x3d700f:0x411,_0x455f37:0x346,_0x305ce0:0x4a2,_0x339b68:0x5b7,_0x3c7cc0:0x5c6},_0x224978={_0x3f0804:0x614},_0x3bc61e={_0x7036b3:0x5e2},_0x38e407={_0x2a2f7f:0x62a,_0x4763d2:0xa9},_0x4d693c={_0x89aee9:0xe9,_0x2386ef:0xfd},_0xa6a86e=_0x57f507[_0x40db9c(_0x4d5842._0x2ca2a8,_0x4d5842._0x182031,_0x4d5842._0x44a396,0x4d5)](_0x4e49e1[_0x40db9c(_0x4d5842._0x3b7a8c,_0x4d5842._0xaf478c,_0x4d5842._0x629723,_0x4d5842._0x396f0a)]??process['cwd']()),_0x443cbe=(_0x4e49e1['allowedDirs']??[])[_0x139c1d(0x345,0x3c9,_0x4d5842._0x384bdc,0x47a)](_0x1a95d8=>_0x57f507[_0x40db9c(0x59f,0x613,0x714,0x597)](_0x1a95d8));function _0x139c1d(_0xed6115,_0x36571c,_0x4080a0,_0x431fb2){return _0x34fd29(_0x4080a0,_0x36571c-_0x4d693c._0x89aee9,_0x4080a0-0x3a,_0x431fb2- -_0x4d693c._0x2386ef);}const _0x55dae9=_0x4e49e1[_0x139c1d(_0x4d5842._0x25e40b,_0x4d5842._0x3e1e9d,_0x4d5842._0x51a239,0x606)]??DEFAULT_TIMEOUT_MS,_0x5c4eb9=_0x4e49e1[_0x139c1d(0x56e,0x4b5,0x5df,0x583)]??!![];function _0x40db9c(_0x5877e7,_0x2850a9,_0x5779bd,_0xc521cc){return _0x2803df(_0x2850a9-_0x38e407._0x2a2f7f,_0x5877e7,_0x5779bd-0xe0,_0xc521cc-_0x38e407._0x4763d2);}const _0x1a6c8d=_0x4e49e1[_0x40db9c(0x4be,0x5f4,_0x4d5842._0x4c9539,0x59b)]??_0x139c1d(0x653,0x539,_0x4d5842._0x211b4a,_0x4d5842._0x2edd0a);return defineTool({'name':_0x1a6c8d,'description':_0x4e49e1[_0x40db9c(0x5a0,_0x4d5842._0x492a8a,_0x4d5842._0x48ac48,_0x4d5842._0x898bb9)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x139c1d(_0x4d5842._0x4af157,0x459,0x55d,0x48b),'properties':{'command':{'type':_0x40db9c(_0x4d5842._0x259a29,_0x4d5842._0x4f9b8d,_0x4d5842._0x38ed65,_0x4d5842._0x146c4b)},'cwd':{'type':_0x139c1d(0x474,0x68e,0x645,_0x4d5842._0x5641f5)},'timeoutMs':{'type':_0x139c1d(0x53b,_0x4d5842._0x30b3d6,_0x4d5842._0x8b7b07,_0x4d5842._0x2348ca)},'ignoreOutput':{'type':_0x40db9c(_0x4d5842._0x2b35e1,_0x4d5842._0xac40e8,0x6c5,0x5d0)}},'required':[_0x139c1d(0x77f,0x569,0x6d9,0x640)]},async *'execute'(_0x6e5b1a,_0x2dc44e){const _0xec4fb5={_0x201792:0xb2},_0x2a2f78={_0x13c709:0x2b3,_0x39784d:0x30,_0x13555d:0x150,_0x42631b:0x19b,_0x4f1023:0xd9,_0x21796a:0x196,_0x20e60c:0x2e9,_0x251471:0x367},_0xb3fa54={_0x4ee0d4:0x3ac},_0x1dd048={_0x221831:0x9,_0x5c6cd5:0x465},_0x3e582e={_0xfd5cbb:0x9f,_0x3c4b28:0x49c},_0x5180c1={_0x26421e:0x8e},_0x30fc17=_0x6e5b1a[_0x77001f(0x305,0x331,0x257,_0x437b45._0x492d46)]??_0x55dae9;if(!Number[_0x451cb3(-0x172,-_0x437b45._0x5cfa2b,-0xff,-0x158)](_0x30fc17)||_0x30fc17<0x1)throw new ToolExecutionError(_0x77001f(_0x437b45._0x3a8d59,0x37c,0x190,0x257),{'command':_0x6e5b1a[_0x77001f(_0x437b45._0x277b19,_0x437b45._0x47676d,_0x437b45._0x5e9eb9,0x23e)]});throwIfAborted(_0x2dc44e['signal']);const _0x48f6be=resolveWorkingDirectory(_0x6e5b1a[_0x77001f(_0x437b45._0x2d03ff,0x95,_0x437b45._0x125174,_0x437b45._0xcfa5fb)],_0xa6a86e,_0x443cbe),_0x1d7b82=_0x6e5b1a[_0x451cb3(-0x1f3,-0x1e2,-_0x437b45._0x58b4cd,-_0x437b45._0x24eb5d)]??![],_0x3c6397=resolveDefaultShell(_0x4e49e1[_0x451cb3(-_0x437b45._0x3475b9,0x53,0x1,0x53)]),_0x1aa302=buildShellArgs(_0x6e5b1a[_0x451cb3(-0xb4,0x8e,0x163,0x2c)],_0x3c6397);function _0x77001f(_0x236083,_0x3068a8,_0x2086de,_0x464043){return _0x40db9c(_0x2086de,_0x464043- -0x4a1,_0x2086de-_0x5180c1._0x26421e,_0x464043-0x9e);}const _0x3ef67a=_0x462485['platform']()===_0x451cb3(-_0x437b45._0x3505f4,-_0x437b45._0x577acc,-_0x437b45._0x14a960,-0x1d1);let _0x43c042;try{_0x43c042=_0x460588(_0x3c6397,_0x1aa302,{'cwd':_0x48f6be,'env':{...process[_0x451cb3(_0x437b45._0xd42e5d,0xb5,-0xf2,_0x437b45._0x14a438)],..._0x4e49e1[_0x451cb3(-_0x437b45._0x325867,_0x437b45._0x17c0e7,-0x83,0x54)]??{}},'stdio':_0x1d7b82?[_0x77001f(0x2ce,0x2ba,0x35c,_0x437b45._0x3cb3d2),_0x77001f(0x27a,_0x437b45._0x409d5b,0x2ab,_0x437b45._0x237817),_0x451cb3(_0x437b45._0x39c403,0x134,_0x437b45._0x461a9b,0x67)]:[_0x451cb3(_0x437b45._0x592382,_0x437b45._0x5c331e,0x105,_0x437b45._0x36de9e),_0x451cb3(_0x437b45._0x50caa0,0x17b,_0x437b45._0x37f8fd,0x3f),_0x451cb3(_0x437b45._0x47ccdf,0x12f,-0xd0,_0x437b45._0x3492ae)],'shell':![],'windowsHide':!![],'detached':!_0x3ef67a});}catch(_0x4cff05){if(isErrnoException(_0x4cff05)&&_0x4cff05[_0x77001f(_0x437b45._0x430dd7,_0x437b45._0x289c9a,_0x437b45._0x218b45,_0x437b45._0x83be4e)]===_0x77001f(0x12e,_0x437b45._0x376ff6,_0x437b45._0x289df8,0x1ab))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x3c6397,{'command':_0x6e5b1a['command'],'cwd':_0x48f6be,'shellPath':_0x3c6397});throw new ToolExecutionError(_0x4cff05 instanceof Error?_0x4cff05['message']:String(_0x4cff05),{'command':_0x6e5b1a[_0x77001f(0x210,0x25c,_0x437b45._0xde26e5,0x23e)],'cwd':_0x48f6be,'shellPath':_0x3c6397});}const _0x4faf78=[],_0x58cf8a=[],_0x4f59f9=new StringDecoder(_0x451cb3(-_0x437b45._0x58f003,-0x218,-0x24a,-0x1b1)),_0x4c9126=new StringDecoder(_0x77001f(0x1a2,-0x72,_0x437b45._0x1322d3,_0x437b45._0x23dca6));let _0x31a375,_0x342282=![],_0x283cb0;const _0x481db8=()=>{if(!_0x31a375)return;const _0x6c5b4e=_0x31a375;_0x31a375=void 0x0,_0x6c5b4e();},_0x45ae96=async()=>{if(_0x58cf8a['length']>0x0||_0x342282)return;await new Promise(_0x2d5151=>{_0x31a375=_0x2d5151;});},_0x2cb04a=_0x8e9a7e=>{appendChunk(_0x4faf78,_0x58cf8a,_0x4f59f9['write'](_0x8e9a7e),_0x5c4eb9,_0x481db8);},_0x569ef9=_0x4a3b99=>{function _0xd04c16(_0xd3d0b2,_0x18b35c,_0x412529,_0x39a9ab){return _0x77001f(_0xd3d0b2-_0x3e582e._0xfd5cbb,_0x18b35c-0x5d,_0xd3d0b2,_0x39a9ab-_0x3e582e._0x3c4b28);}appendChunk(_0x4faf78,_0x58cf8a,_0x4c9126[_0xd04c16(0x5fa,_0x3bc61e._0x7036b3,0x715,0x618)](_0x4a3b99),_0x5c4eb9,_0x481db8);};_0x43c042['stdout']?.['on'](_0x77001f(_0x437b45._0x37012d,0x5c,_0x437b45._0x2d75c7,0x13d),_0x2cb04a),_0x43c042[_0x451cb3(-_0x437b45._0x24a031,-0x5a,-_0x437b45._0x443d2c,-0x17c)]?.['on'](_0x451cb3(_0x437b45._0x167d65,-0xf7,-0x1fe,-0xd5),_0x569ef9);let _0xfc4e38=![],_0x233b04;function _0x451cb3(_0x4e8a93,_0x303554,_0x491763,_0x62c1e5){return _0x139c1d(_0x4e8a93-0xd8,_0x303554-0xb2,_0x491763,_0x62c1e5- -_0x224978._0x3f0804);}const _0x3dd435=addAbortListener(_0x2dc44e[_0x451cb3(-0x1a7,-_0x437b45._0x18b219,-0xa7,-_0x437b45._0x32ca6a)],()=>{const _0x1f21f9={_0x4133be:0xeb};function _0x5bfe98(_0x563842,_0x4eb69f,_0x424085,_0x3c2259){return _0x451cb3(_0x563842-0x173,_0x4eb69f-0x133,_0x3c2259,_0x4eb69f-_0x1f21f9._0x4133be);}function _0x59736d(_0xb2f6f8,_0x5f0928,_0xd9eda8,_0x29a599){return _0x451cb3(_0xb2f6f8-_0x1dd048._0x221831,_0x5f0928-0x1da,_0x5f0928,_0xd9eda8-_0x1dd048._0x5c6cd5);}_0x283cb0=toAbortError(_0x2dc44e[_0x59736d(0x44e,0x466,0x320,0x212)][_0x59736d(0x4db,0x2dd,_0xb3fa54._0x4ee0d4,0x4ac)]),_0x342282=!![],_0x481db8();try{killProcessGroup(_0x43c042,_0x3ef67a);}catch{}});try{const _0x8adad1=new Promise((_0x4a62bd,_0x2f8864)=>{const _0xd1e5ed={_0x4211e5:0x5bc,_0x1c835b:0x550},_0x150ca7={_0x46a1e6:0x4f1,_0x5e1058:0x4c3,_0x56be7d:0x6c4},_0x36d694={_0x432b55:0x198},_0x13d04d={_0x1544d2:0x144},_0x396826=()=>{_0x233b04&&(clearTimeout(_0x233b04),_0x233b04=void 0x0);function _0x2f3097(_0x339415,_0x21ab39,_0x373806,_0x5e99d9){return _0x20ac(_0x339415- -0x135,_0x373806);}_0x43c042[_0x2f3097(0x170,_0x2a2f78._0x13c709,_0x2a2f78._0x39784d,_0x2a2f78._0x13555d)](_0x1cafa9(0x18f,0x132,0x288,0x169),_0x499516);function _0x1cafa9(_0x29e7ea,_0x3b28bf,_0x5c17f4,_0x408a37){return _0x20ac(_0x408a37- -0xdc,_0x3b28bf);}_0x43c042[_0x1cafa9(_0x2a2f78._0x42631b,_0x2a2f78._0x4f1023,_0x2a2f78._0x21796a,0x1c9)](_0x2f3097(_0x2a2f78._0x20e60c,0x205,0x1f7,_0x2a2f78._0x251471),_0xcb7e04);};function _0xccae5e(_0x1b483f,_0x457d81,_0x2631b0,_0x4ce883){return _0x451cb3(_0x1b483f-0x3f,_0x457d81-_0x13d04d._0x1544d2,_0x2631b0,_0x1b483f-0x56e);}const _0x499516=_0x22ab6c=>{_0x342282=!![],_0x481db8(),_0x396826(),_0x2f8864(_0x283cb0??_0x22ab6c);};function _0x30140b(_0x82777b,_0x54b473,_0x182f0d,_0x367922){return _0x451cb3(_0x82777b-0x94,_0x54b473-_0xec4fb5._0x201792,_0x367922,_0x82777b-0x2b1);}const _0xcb7e04=(_0x5a3e5b,_0x3fa636)=>{const _0x362393={_0x452c99:0x261};_0xfc4e38=!![],appendChunk(_0x4faf78,_0x58cf8a,_0x4f59f9[_0x263a41(_0x150ca7._0x46a1e6,0x587,_0x150ca7._0x5e1058,0x3cd)](),_0x5c4eb9,_0x481db8),appendChunk(_0x4faf78,_0x58cf8a,_0x4c9126[_0x26373a(0x58c,0x46b,_0x150ca7._0x56be7d,0x56a)](),_0x5c4eb9,_0x481db8),_0x342282=!![],_0x481db8(),_0x396826();function _0x263a41(_0x448931,_0x3c74c6,_0x3a3342,_0x4354fc){return _0x20ac(_0x3a3342-_0x36d694._0x432b55,_0x448931);}if(_0x283cb0){_0x2f8864(_0x283cb0);return;}function _0x26373a(_0xbcae2c,_0x677161,_0x37f446,_0x42fa32){return _0x20ac(_0xbcae2c-_0x362393._0x452c99,_0x677161);}_0x4a62bd({'code':_0x5a3e5b,'signal':_0x3fa636});};_0x233b04=setTimeout(()=>{_0x342282=!![];function _0x150c99(_0xb20885,_0x37e519,_0x4defac,_0x55f27e){return _0x20ac(_0x37e519-0x1bb,_0x4defac);}_0x481db8(),_0x396826();try{killProcessGroup(_0x43c042,_0x3ef67a);}catch{}_0x2f8864(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0x30fc17+'\x20ms',{'command':_0x6e5b1a[_0x150c99(0x524,_0xd1e5ed._0x4211e5,0x58f,_0xd1e5ed._0x1c835b)],'cwd':_0x48f6be,'shellPath':_0x3c6397,'timeoutMs':_0x30fc17,'timedOut':!![]}));},_0x30fc17),_0x43c042[_0x30140b(_0x2e164d._0x47868a,_0x2e164d._0x1e91d7,_0x2e164d._0x6fd539,_0x2e164d._0x5ed7ce)](_0xccae5e(0x3de,_0x2e164d._0x4dcb2b,_0x2e164d._0x30d2f7,_0x2e164d._0x3d700f),_0x499516),_0x43c042[_0xccae5e(0x46f,_0x2e164d._0x455f37,_0x2e164d._0x305ce0,0x337)](_0xccae5e(_0x2e164d._0x339b68,0x603,_0x2e164d._0x3c7cc0,0x5ff),_0xcb7e04);});while(_0x58cf8a[_0x77001f(0x11b,0x1aa,0x28c,_0x437b45._0x19627f)]>0x0||!_0x342282){if(_0x58cf8a[_0x451cb3(_0x437b45._0x1c9e51,-0x93,-0xe2,-0xa4)]===0x0){await _0x45ae96();continue;}const _0x5c6184=_0x58cf8a[_0x77001f(_0x437b45._0x367b1a,0x1ee,0x10b,0x180)]();_0x5c6184!==void 0x0&&(yield _0x5c6184);}const _0x548192=await _0x8adad1,_0x1fc643=_0x1d7b82?_0x451cb3(_0x437b45._0x342b1b,-_0x437b45._0x5726f4,-0x77,-_0x437b45._0x59d965)+(_0x548192[_0x451cb3(-0x1cd,-_0x437b45._0x14eadb,-0xa3,-_0x437b45._0x13d67f)]??0x0):_0x4faf78[_0x451cb3(-0xca,-_0x437b45._0x1d75f6,_0x437b45._0x56dc64,-0x3c)](''),_0x23891c={'command':_0x6e5b1a[_0x451cb3(-0x111,_0x437b45._0x42499d,_0x437b45._0x461a9b,0x2c)],'cwd':_0x48f6be,'exitCode':_0x548192[_0x451cb3(-0x18a,0xf,-0xf5,-0x129)]??0x0,'signal':_0x548192['signal'],'ignoreOutput':_0x1d7b82,'shellPath':_0x3c6397,'timeoutMs':_0x30fc17};if(_0x548192[_0x451cb3(-0x1e9,-_0x437b45._0x51aa36,-0x149,-_0x437b45._0x13d67f)]!==0x0)throw new ToolExecutionError(_0x1fc643||_0x77001f(_0x437b45._0x300473,0x1f4,0x341,_0x437b45._0x25dead)+(_0x548192['code']??0x0),_0x23891c);return createToolOutput(_0x1fc643,_0x23891c);}catch(_0x4b102c){while(_0x58cf8a[_0x451cb3(-_0x437b45._0x35ee76,-_0x437b45._0x38cb28,-_0x437b45._0x34a14d,-_0x437b45._0x5d6ca6)]>0x0){const _0x6c78=_0x58cf8a[_0x77001f(_0x437b45._0x369043,_0x437b45._0xab5f70,_0x437b45._0x3a5971,0x180)]();_0x6c78!==void 0x0&&(yield _0x6c78);}if(_0x4b102c instanceof ToolExecutionError)throw _0x4b102c;if(_0x283cb0)throw _0x283cb0;if(isErrnoException(_0x4b102c)&&_0x4b102c['code']===_0x77001f(0x18f,0x85,_0x437b45._0x3fb681,0x1ab))throw new ToolExecutionError(_0x451cb3(-0x17a,-_0x437b45._0x406707,-_0x437b45._0x28cb41,-_0x437b45._0x52b81b)+_0x3c6397,{'command':_0x6e5b1a['command'],'cwd':_0x48f6be,'shellPath':_0x3c6397});throw new ToolExecutionError(_0x4b102c instanceof Error?_0x4b102c['message']:String(_0x4b102c),{'command':_0x6e5b1a['command'],'cwd':_0x48f6be,'shellPath':_0x3c6397});}finally{_0x233b04&&clearTimeout(_0x233b04);_0x3dd435(),_0x43c042['stdout']?.[_0x451cb3(-0x176,-0x86,-_0x437b45._0x4557bb,-0x130)]('data',_0x2cb04a),_0x43c042[_0x77001f(_0x437b45._0x36de9e,-_0x437b45._0x21c241,_0x437b45._0x5c13ee,_0x437b45._0x5b1500)]?.[_0x451cb3(-_0x437b45._0x100196,-_0x437b45._0x47fee0,-0xfc,-0x130)](_0x77001f(0xd1,0x59,_0x437b45._0x487ea8,0x13d),_0x569ef9);if(!_0xfc4e38&&_0x43c042[_0x451cb3(-_0x437b45._0xe63368,-_0x437b45._0x1699ae,-_0x437b45._0x537757,-_0x437b45._0x2dbb7f)]&&!_0x43c042[_0x77001f(0x12e,0x1f,-_0x437b45._0x45fbfd,0x98)])try{killProcessGroup(_0x43c042,_0x3ef67a);}catch{}}}});}function createShellExecTool(_0x235592={}){return createBashTool(_0x235592);}import{readdir,readFile as _0x12369f}from'fs/promises';import{extname,join as _0x11b65d}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0xafe7bc,join,relative as _0x3ececb,resolve as _0xaffb5b}from'path';import{readdir as _0x540b12,readFile as _0x339023}from'fs/promises';import{join as _0xd4ea15,relative as _0x270051,sep}from'path';import{delimiter}from'path';function _0x8b5e(){const _0x46b168=['CgfNzw1HCa','z29uB0LTCgXLBwvUDgf0Aw9U','AgfZ','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','Aw52ywXPzf90B2rVx2LK','ndmXmdeWAenmq0Tm','zxH0BMfTzq','q29TBwfUzcaN','Aw50zwDLCG','zgLZCg9Zzq','yxr0CG','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','C2LNBMfS','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','C2XPy2u','DgHLBG','BNvTyMvY','ywrK','rM91BMqG','yMLYDgH0Aw1L','DhjHBNnWB3j0','A2LUza','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','CMCUzxHL','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','te9x','lMnTza','DhLWzxnJCMLWDhjLywn0','zMLSDgvY','CgXHDgzVCM0','Agv4','C3jJl2v4yw1WBgvZl2rLBw8UDhm','B2zM','Dg9VBenHBgXjza','y29UDgvUDa','uKLgrG','y29KzvzLCMLMAwvY','C2vSzwn0Aw9UuMfUz2u','ugf0AcbPCYbUB3qGysbMAwXLoIa','y29Kzq','zgv0ywLS','CgfZC3DVCMq','Aw1Hz2uVANbLzW','oIbPzcbYzxf1AxjLza','lI4U','CgXHAw4','zgLZy292zxj5u3rHDgu','Dg9Rzw5Z','l3vZCI9IAw4VyMfZAa','A2v5CW','yxv0BW','BgL0zxjHBa','zMfPBgvK','lM10CW','DhjPBuvUza','Dg9Rzw4','zM9VDgvY','AxntEw1IB2XPy0XPBMS','Aw1WBgvTzw50yxrPB24','ntrjwfHwy2O','C3r5Bgu','ygbGANnVBGO','C3LTBgLUAW','Aw5FChjVz3jLC3m','DxrTx2nHBxbHAwDU','r0LgodDH','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','z2v0vg9KB3m','BgfIzwW','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','Aw1Hz2uVz2LM','y29UBMvJDa','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','CgvUzgLUzW','BM9Kzv9TB2r1BgvZ','CMvSyxrPDMu','EwvZ','B25szwrPCMvJDa','BwvZC2fNzq','B3jPz2LUywW','D2fPDezVCKrPywDUB3n0AwnZ','B25Jzq','mtmZmZjmEg1tsNq','yMLVBwuUANnVBMm','u2HLBgWGBM90igzVDw5KoIa','C2v0','CMvXDwvZDa','yNvUlMXVy2TI','y29UDgv4Da','ChjVy2vZCW','uhjVz3jHBuzPBgvZ','tuvesvvn','Ahr0Ca','zgLZy292zxj5','BM93','Cg9W','yxnZAwDU','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','C2v2zxjPDhK','D2HPy2GGCMC','y21KlMv4zq','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','vw5RBM93BIb0B29SoIa','zMXHDe1HCa','zhj5uNvU','vw5HDxrOB3jPEMvKrxjYB3i','CMvWBgfJzq','Bw9KzwW','Dw5RBM93BG','v2LUr2v0','ls1NBg9IpseUz2L0lYO','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','BMf2','lu5Vtg9NBW','yxjNCW','qgjPB21LANmVyMLVBwu','y2XPzw50CW','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','C25PChbLDa','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','yxjNDw1LBNroyw1LCW','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','AwzYyw1L','zgf0yq','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','BM90Awz5','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','qMfZAa','A2LSBa','CgfJA2fNzs1SB2nRlMPZB24','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','Dg9tDhjPBMC','zMLSzq','B2zMC2v0','ChjVCgvYDgLLCW','C2L0ztO','C3rKB3v0','zgvSAw1PDgvY','te9dquXbufbeqvrb','y3jLyxrLzef0','CMvJzw5JEurHExm','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','Dgv4Dc9ODg1S','zhvWBgLJyxrLx3rVzg9FAwrZ','zg9TywLUCW','BMfTzq','u2L6ztOG','u3rHCNrLzcbHz2vUDcbYDw4G','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','ls1YzwDLEha','y2fSBfrVB2W','CMvHC29U','CMLWz3jLCa','zxHPDa','mc4WlJa','Dhj1zwnVBg9Y','C3rVCMfNzurPCG','oIaIAgvHzgvYiIbMAwvSzcbPCYbYzxf1AxjLzcbHBMqGBxvZDcbIzsbHihn0CMLUzW','AhrTBfnUAxbWzxq','rMLSzsb3CML0DgvUigf0ia','tM8GCMvZDwX0CYbMB3vUzc4','DxrTx3nVDxjJzq','B3bLBMfPlxjLC3bVBNnLCW','seLhsa','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','yxnRvxnLCG','zw5K','Dg9ju09tDhjPBMC','yMLVBwuUANnVBG','yxv0AfjLCxvPCMvK','BxvSDgLtzwXLy3q','DxjS','BgvUz3rO','zMLUywXnzxnZywDL','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','CMvZB2X2zq','zMLSztOVlW','z2v0','y2vPBa','C2H1DgrVD24','AxnbCNjHEq','C3rYAw5N','AxngAwXL','lNDLyNa','CMfUz2u','D3jPDgu','lMPWzW','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','Ahr0Chm6','C2HPzNq','C3rYAxbbBNnP','yxjNDw1LBNriAw50','Bg9JywXLq29TCgfYzq','DgLTzvTKyxrLDgLTzv0','tgLUzsa','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','wZ0+nY04kcLD','B2XKvgv4Da','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','C2vUza','l2jPBI9IyxnO','zgf0zxrPBwu','Aw1Hz2uVCg5N','y29UDgvUDc1Szw5NDgG','y2XPzw50twv0ywrHDgfvCMW','y29UBMvJDgvK','C2L6zq','DxrTx2nVBNrLBNq','EwfYBI5SB2nR','lMn0CW','zNvSzMLSBgvK','ANnVBG','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','igj5DgvZ','BgLTAxq','ywXSB3DLzfrVB2XZ','uxvLC3rPB24G','C2vZC2LVBKLK','DxjP','lNbUzW','AgvHzgvY','zgvMAw5PDgLVBG','ls1WCMvMAxG','Aw5ZDhj1y3rPB25Z','B2f1DgG','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','ig1HDgnO','sfruuca','ChjLzML4','ChjLCgfYzunHBgXiAwvYyxjJAhK','cMbGya','BgLUzxm','ru5pru5u','yw5ZD2vYCW','AxnfCNjVCG','Dg9VBfjLC3vSDhm','zw50CMLLCW','C3rYAw5NAwz5','oIaIAgvHzgvYiIbTDxn0igjLig1HEcaYmcbJAgfYywn0zxjZlcbNB3qG','C3jJl2fNzw50l2fNzw50lNrZ','DgfZA2TPBgW','ugf0AcbUB3qGzM91BMq6ia','B2C6DxbKyxrLzf90Aw1L','sw5MB3jTyxrPB24','Dg91y2HgAwXL','C3rHDhvZ','y3jSzG','D29YA3nWywnLu3LTyM9S','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','Aw1Hz2uVD2vICa','y2HHCMfJDgvY','qwDLBNqGCNvUia','vMLLD0zPBgu','yNjVA2vU','BMv3vgv4Da','Bw9Kzq','C3rHDhvZvgv4Da','zg9JDw1LBNrtEw1IB2W','r2XVyG','Aw52ywXPzf90B2rVCW','zgvMyxvSDen3za','C2v0vg9KB3m','ksbB','CNvUBMLUzW','Bwf4','CgfJA2fNzs5QC29U','B3bLBG','l29WDc9OB21LyNjLDY9IAw4VCMC','zw5HyMXLza','o1TE','l3bPza','C29Tzq','l2jPBI9YzW','lMnQCW','yMfZzw5HBwu','AM9PBG','lMjPBG','DgvZDa','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','v0vcua','Aw5PDgLHBgL6zwq','yxnJAwK','zgLYzwn0B3j5','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','lMPZB25J','yNvUlMXVy2S','CxvLCNK','tM8GzgLHz25VC3rPy3m','Bg9HzfnRAwXS','cGOTls0kcG','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','DhnJB25MAwCUANnVBG','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','y2HHCKnVzgvbDa','Aw5ZDgfSBa','CMvJB3jK','CNvUswq','y29UDgv4DeXPBMS','sw52ywXPzcbvuKWGCgfYyw1LDgvY','B3bLBKzPBgvZ','yw5ZAte2','z29Vz2XLq3nLq3G','DhvWBgu','BwvTB3j5','yMvHCMvY','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','CMvXDwLYzwq','mZq0CuHRvMDX','BwnWxW','y2fUy2vS','odmZoeXOuK16Aq','zMLSzvzLCNnPB25Z','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','CgXHAw50zxH0','zxHPDcbJB2rLia','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','vg9KBYa','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','Aw5WDxq','zw51Bq','Dg9KB3m','zgvMyxvSDfrPBwvVDxrnCW','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','uMvZCg9UC2uGDg9VigXHCMDLoIa','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','l3vZCI9IAw4VCMC','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','twLJCM9ZB2z0','v2vIrMv0y2G','lNrZEa','mtq1ndy4mJbiAuDzuem','C2nVCgvZ','BNbT','BwnFzwLK','CgfYC2u','ienHDxnLoIa','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','DgLTzw91De1Z','Aw5WDxrty2HLBwe','Aw5PDgLHBgL6yxrPB24','Dg9KB3ncEvnLC3nPB24','w1bFxL1BxhnCu10QpW','CM91BMq','yM9VBgvHBG','AxnfBMfIBgvK','Dhj1BMm','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','igj5DgvZigv4y2vLzhmG','rgLHz25VC3rPyW','lcbpChrPB24G','CMLWz3jLCcbMywLSzwq6ia','BwvKAxvT','t0zg','lu5VuhjVzMLSzq','BgLUzvn0yxj0','C3rHDgu','Aw52ywXPzf90B2rVx2nVBNrLBNq','AMf2yxnJCMLWDa','rMv0y2GGDgLTzwqGB3v0','mtiZmM5IrgPgzq','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','Dg9VBa','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','ywXS','zMLUzfjLzMvYzw5Jzxm','BgLUzuvUza','z29Vz2XLq3nLs2v5','zxH0zw5ZAw9UCW','lMDPzG','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','zMXVB3i','l3vZCI9IAw4VC2G','CgfZC3rOCM91z2G','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','nZiXmJfly1PmChy','rxjYB3i','Dg9mB3DLCKnHC2u','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','BxrPBwu','y29TBwfUza','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','yNL0zuXLBMD0Aa','BgfUzW','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','ChjVDg9JB2W','DhnZzxj2zxiUANm','l2jPBI9ZAa','y29UBMvJDgLVBG','ls1MAwXLCW','AhLKCMf0zu1LDge','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','ywXSu2v0DgXLza','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','AxnjBNrLz2vY','zgvMyxvSDa','yxr4','DgL0Bgu','CxvLC3rPB24','CgLWzq','CMvNAw9U','y29UzMLN','DxrTx21LzgL1Bq','z2v0u3rHDhm','Bwf0y2HLCW','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','Dgv4Da','C2vYDMvYswq','u0Lhs0Lmta','y2XVC2u','B3b0Aw9UCW','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','yMLVBwu','C2TPBgXZ','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','yxv0Ag9YAxPHDgLVBL9JB2rL','C2vYDMvY','CxvLC3rPB25Z','CM9VDa','C2HLBgXqyxrO','zw52','Ahr0CdO','zgvUBY5QC29UyW','CMvZDwX0','Aw52ywXPzf90B2rVx3bYAw9YAxr5','z29Vz2XLlwnZzq','tM8GAg92zxiGAw5MB3jTyxrPB24','lMPWzwC','CMvMzxjLBMnLCW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','B3v0z29PBMDdywXSCW','zgf0zvjLC3rYAwn0','AxneAxjLy3rVCNK','zgvSzxrL','nZa2mK5UsK1vwq','y2XPzw50x3nLy3jLDf9WB3n0','BgLZDfrVB2XZ','CNnZ','yxbPs2v5','AwDUB3jL','D2vI','qxnZAwDUvgfZAW','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','r0LgodLH','B3v0Chv0','tunqihnLCNzLCIa','rMv0y2GGywjVCNrLzcbIEsb1C2vY','zMLUza','y2XPzw50','tuLnrtOG','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','Bwv0yxrHz3m','rMLSzvjLywq','Bg9JyxrPB24','Aw1Hz2vZ','Aw5JBhvKzq','Aw5JBhvKzxm','CgfJA2fNzu5HBwu','D29YA3nWywnLl3n5BwjVBa','DhLWzq','AxnbyNnVBhv0zq','Cgf0Aa','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','C29YDa','ChjPB3jPDhK','BhnWlxbYB3H5','Cgf0DgvYBG','C2vZC2LVBG','y2XLyw51Ca','AxndB250zxH0','BxrPBwvnCW','C3rHCNreAxi','qxv0Ag9YAxPHDgLVBG','mJm0nZq3sfjeB1nc','zgfYAW','DhjPBq','y29TBwfUzhm','Dg9VBhmVy2fSBa','CMfUzg9T','ywrKrxzLBNrmAxn0zw5LCG','yxv0Aa','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','Dgv4DerVy3vTzw50l2HVDMvY','C3bHD25PBMC','Cg5WBs1SB2nRlNLHBwW','AMf2yxnJCMLWDhjLywn0','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','CgfYzw50u2vZC2LVBKLK','rMLSzu5LDW','BwLU','C3rHCNq','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','ie9sia','Dhj1zq','lM51DMLU','C3bHD24','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','zgLHz25VC3rPy3m','DhvYBMrVD24','C3vKBW','ANnJB25MAwCUANnVBG','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','Aw5JB21PBMDdywXSCW','y3DK','ywjVCNrLza','DhLWzxnJCMLWDa','ChvZAa','CMvTB3zLrxzLBNrmAxn0zw5LCG','BgLUzu51Bq','ywXSB3DLzerPCNm','yxjNDw1LBNrZvgv4Da','tg9HzgvKigzYB206ia','C3vIyxjYyxK','BM9Uzq','Aw5KzxHpzG','zgLHz25VC3rPy3ngB3jgAwXL','Dg9Rzw5tDg9YywDLs2v5','zxjYB3jnzxnZywDL','Aw52ywXPzf9XDwvZDgLVBNm','C3rKAw8','cGPbuKDvtuvovfm6ia','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','lMPZB24','Dw5PB24','BgLUzq','yxjYyxK','D2LUmZi','Ag92zxi','lNrTCc4','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','y2f0y2G','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','Aw1Hz2u','Ag9ZDa','vg9KB1DYAxrL','C2vUzfjLCxvLC3q','zgvZy3jPChrPB24','y2XLyxi','igzHAwXLzc4','zMLYC3q','y2XPzw50sw5MB3jTyxrPB24','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','BhnW','lunVBw1HBMq','C2fMzq','B3bLCMf0Aw9U','oIbPBNzHBgLKihn0yxr1CW','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','y2HHBMDL','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','C2vYDMvYtMfTzq','zMLSzvbHDgG','Aw52ywXPzf90B2rVx3n0yxr1CW','C2H1DgrVD25tDgfYDgvK','C2vHCMnOugfYyw1Z','zNjVBq','otCXnJr5yxjLs2K','CMfUAW','DxrMoa','rgv0ywLSoIa','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','yxjNDw1LBNrZ','zgvUBY5QC29U','ywjVCNq','CgLK','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','z2L0qNjHBMnO','ls1ZDgrPBW','Dgv4DerVy3vTzw50l2rPzenSB3nL','yMfZzty0','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','C291CMnL','BwfYA2rVD24','ihDHCYbHyM9YDgvKlG','vMLLD2vKigLTywDLigzPBgu6ia','y29TCgXLDgvK','BgLNAhq','ywDLBNrjza','AgfUzgXL','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','DxbKyxrL','BwfW','C2nYAxb0','ls1NBg9Ipq','AwDUB3jLt3v0Chv0','uhvIBgLZAgvKoIa','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','ChvIBgLZAgvKqxq','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','AgvHzgvYCW','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','zxjYB3i','z2XVyG','yxnPzgu','B3jPz2LUvg9VBenHBgXjza','z29uB0rLzMLUAxrPB24','mtqXA0TjuLL5','B3bLBMfPlxjLC3bVBNnLCY13CW','B2jQzwn0','B3b0Aw9UywW','y29UC3rYDwn0B3i','BgLI','ywn0AxzL','igzYB20G','ANnVBMm','uMvZCg9UC2uGDg9VigXHCMDLoIbLEgnLzwrZia','C3rHCNrZv2L0Aa','Dg90ywW','AgLNAa','qxnRvxnLCLrVB2W','zgLYBMfTzq','C3rKzxjY','Dgv4DerVy3vTzw50l2rPze9Wzw4','A2LSBgvK','Bg93','thnW','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','zMLUywXnzxnZywDLvgv4Da','y2fJAgvK','oIbPBNzHBgLKihbYAw9YAxr5','BgLZDgvU','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','tunqihrVB2WG','DxnLCM5HBwu','DMfSDwu','C3bSAxq','C2vUze5VDgLMAwnHDgLVBG','lMPZEa','CMvXDwvZDhm','CgfYC2vjBNq','y2fSBgjHy2TvCMW','BgLUzvrLEhq','tM8GC3vJAcbMAwXLoIaN','C3jJl3nOyxjLzc90ExbLCY50CW','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','l3vZCI9SB2nHBc9IAw4VCMC','BhmGlwXH','yMLUyxj5tMfTzq','qxzHAwXHyMXLignVBw1HBMrZoG','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','zxf1ywXZ','CgfJA2fNzxm','DgfZAW','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','zMvUy2vK','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','AxngAw5PDgu','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqP','txvZDcbWCM92AwrLideTncbXDwvZDgLVBNm','yM9KEq','CMvTB3zL'];_0x8b5e=function(){return _0x46b168;};return _0x8b5e();}import{mkdir as _0x25f122,rm,stat as _0x70a303,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x412e4d}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x1901d7,rename,writeFile as _0x187211}from'fs/promises';import{homedir}from'os';import{dirname as _0x408633,isAbsolute as _0x39e53b,join as _0x29be2b,resolve as _0x4ef8eb}from'path';import{parse as _0xb6b73f,stringify as _0x2fa053}from'yaml';import{z}from'zod';import{cp,mkdir as _0x381572,readFile as _0x1453da,rm as _0x214656,writeFile as _0x1ec19e}from'fs/promises';import{homedir as _0x559d96}from'os';import{join as _0x50619b}from'path';import{parse as _0x464502,stringify as _0x5c68c0}from'yaml';import{readdir as _0x207090,readFile as _0x209b82}from'fs/promises';import{join as _0x471bfc}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x4ac2f4){const _0x2f7692={_0x2bed7f:0x1c9,_0x4c47b8:0x150,_0x52b7f2:0x113,_0x2dff2e:0x103,_0x39daa2:0x150,_0x2bd6d0:0x1a5,_0x21301e:0x6ef,_0x12f20a:0x870,_0xa1f306:0xf,_0x586e6e:0xd0,_0x14e2a3:0x5e,_0x2072de:0x19,_0x58a833:0xf},_0x32cc2a={_0x18109c:0x16b,_0x4b5505:0x18f},_0x2a567b={_0x4db9cf:0x716,_0x446b32:0x103};function _0x1e659d(_0x582f79,_0x38de34,_0x37f8e9,_0x4b8757){return _0x2803df(_0x37f8e9-_0x2a567b._0x4db9cf,_0x38de34,_0x37f8e9-_0x2a567b._0x446b32,_0x4b8757-0x76);}const _0x4e2c0c=[];let _0x38e1c7='',_0x31d06f=0x0;while(_0x31d06f<_0x4ac2f4['length']){const _0x3679d2=_0x4ac2f4[_0x31d06f];if(_0x3679d2==='\x5c'&&_0x31d06f+0x1<_0x4ac2f4[_0x5bab8c(_0x2f7692._0x2bed7f,_0x2f7692._0x4c47b8,_0x2f7692._0x52b7f2,0x20f)])_0x38e1c7+=_0x4ac2f4[_0x31d06f+0x1],_0x31d06f+=0x2;else{if(_0x3679d2==='\x22'||_0x3679d2==='\x27'){const _0x26e4e5=_0x3679d2;_0x31d06f++;while(_0x31d06f<_0x4ac2f4[_0x5bab8c(_0x2f7692._0x2dff2e,_0x2f7692._0x39daa2,_0x2f7692._0x2bd6d0,0xc8)]&&_0x4ac2f4[_0x31d06f]!==_0x26e4e5){_0x4ac2f4[_0x31d06f]==='\x5c'&&_0x31d06f+0x1<_0x4ac2f4[_0x1e659d(0x5d0,0x729,0x6fb,0x5f7)]?(_0x38e1c7+=_0x4ac2f4[_0x31d06f+0x1],_0x31d06f+=0x2):(_0x38e1c7+=_0x4ac2f4[_0x31d06f],_0x31d06f++);}_0x31d06f++;}else _0x3679d2!==void 0x0&&/\s/[_0x1e659d(_0x2f7692._0x21301e,0x6ea,0x765,_0x2f7692._0x12f20a)](_0x3679d2)?(_0x38e1c7&&(_0x4e2c0c[_0x5bab8c(0x13,_0x2f7692._0xa1f306,-_0x2f7692._0x586e6e,_0x2f7692._0x14e2a3)](_0x38e1c7),_0x38e1c7=''),_0x31d06f++):(_0x38e1c7+=_0x3679d2,_0x31d06f++);}}function _0x5bab8c(_0x4bacdf,_0x4321ad,_0x42a180,_0x2b5d6e){return _0x2803df(_0x4321ad-_0x32cc2a._0x18109c,_0x42a180,_0x42a180-0x1df,_0x2b5d6e-_0x32cc2a._0x4b5505);}if(_0x38e1c7)_0x4e2c0c[_0x5bab8c(-_0x2f7692._0x2072de,_0x2f7692._0x58a833,_0x2f7692._0x2072de,-0x2a)](_0x38e1c7);return _0x4e2c0c;}function renderCommandInstructions(_0x50d067){const _0x5e562a={_0x53b486:0x74e,_0xcd300f:0x6a6,_0x517f0e:0x59d,_0x2f6bae:0x563,_0x499da8:0x3fe,_0x1157c5:0x57e,_0x2092e7:0x76b,_0x5af073:0x630,_0x2caa9a:0x530,_0x21bd91:0x59b,_0x1e0411:0x672,_0x5bf1d3:0x797,_0x53fd8a:0x3ec,_0x4d4f88:0x52d,_0x4aa88b:0x4ce,_0x593b9a:0x534,_0x87e2ff:0x60e,_0x281bec:0x5d3,_0x8211d4:0x52d,_0x392b19:0x62f,_0x38c7fc:0x4bc,_0x310772:0x400,_0x5a37d0:0x356,_0x4e53e1:0x55e,_0x53d910:0x535,_0x941a71:0x539},_0x21834f={_0x3303f8:0x4d0},_0x86bbae={_0x3f24a2:0x74};function _0x5d7fd9(_0x4fab66,_0x1d7b2a,_0x3d61ca,_0xa3753a){return _0x34fd29(_0x1d7b2a,_0x1d7b2a-0x14,_0x3d61ca-_0x86bbae._0x3f24a2,_0xa3753a- -0x10c);}let _0x45e4d7=_0x50d067[_0x29f3ca(_0x5e562a._0x53b486,_0x5e562a._0xcd300f,_0x5e562a._0x517f0e,0x635)],_0x5dc97f=![];const _0x4367e3=tokenizeCommandArguments(_0x50d067[_0x29f3ca(_0x5e562a._0x2f6bae,0x535,_0x5e562a._0x499da8,_0x5e562a._0x1157c5)]);_0x45e4d7=_0x45e4d7[_0x29f3ca(_0x5e562a._0x2092e7,_0x5e562a._0x5af073,_0x5e562a._0x2caa9a,_0x5e562a._0x21bd91)](/\$ARGUMENTS\[(\d+)\]/g,(_0x5d8bbc,_0x2c3730)=>{return _0x5dc97f=!![],_0x4367e3[Number(_0x2c3730)]??'';});function _0x29f3ca(_0x3364cb,_0x1d6b8f,_0x4c2f8f,_0x240367){return _0x34fd29(_0x240367,_0x1d6b8f-0x6,_0x4c2f8f-0x1f0,_0x1d6b8f-0x5);}_0x45e4d7=_0x45e4d7['replace'](/\$ARGUMENTS\b/g,()=>{const _0x321421={_0x218753:0x65};_0x5dc97f=!![];function _0x35bc51(_0x324602,_0x1e3f3a,_0x124a1c,_0x407b4f){return _0x29f3ca(_0x324602-0xfa,_0x124a1c- -_0x321421._0x218753,_0x124a1c-0x10a,_0x1e3f3a);}return _0x50d067[_0x35bc51(0x5d7,0x4de,_0x21834f._0x3303f8,0x4ff)];});if(_0x50d067['argumentNames']&&_0x50d067['argumentNames'][_0x29f3ca(0x5cf,_0x5e562a._0x1e0411,_0x5e562a._0x5bf1d3,0x782)]>0x0)for(let _0x1713bb=0x0;_0x1713bb<_0x50d067[_0x5d7fd9(0x4b4,_0x5e562a._0x53fd8a,0x633,_0x5e562a._0x4d4f88)][_0x5d7fd9(_0x5e562a._0x4aa88b,_0x5e562a._0x593b9a,_0x5e562a._0x87e2ff,0x561)];_0x1713bb++){const _0x1d6f3d=_0x50d067[_0x5d7fd9(_0x5e562a._0x281bec,0x531,0x4f3,_0x5e562a._0x8211d4)][_0x1713bb];if(_0x1d6f3d){const _0x45d4c8=new RegExp('\x5c$'+_0x1d6f3d+'\x5cb','g');_0x45e4d7=_0x45e4d7[_0x29f3ca(0x625,0x630,0x61b,_0x5e562a._0x392b19)](_0x45d4c8,()=>{return _0x5dc97f=!![],_0x4367e3[_0x1713bb]??'';});}}return _0x45e4d7=_0x45e4d7['replace'](/\$(\d+)\b/g,(_0x2e3a4b,_0x47ab74)=>{return _0x5dc97f=!![],_0x4367e3[Number(_0x47ab74)]??'';}),!_0x5dc97f&&_0x50d067['argumentsText'][_0x5d7fd9(0x400,0x46b,_0x5e562a._0x38c7fc,_0x5e562a._0x310772)]()&&(_0x45e4d7=_0x45e4d7+_0x5d7fd9(_0x5e562a._0x5a37d0,0x477,0x394,0x42e)+_0x50d067[_0x29f3ca(_0x5e562a._0x4e53e1,_0x5e562a._0x53d910,0x447,_0x5e562a._0x941a71)]),_0x45e4d7;}var chatModelAuthSchemeSchema=z[_0x2803df(0x79,-0x6,0x1b2,0x46)]([_0x2803df(0x6a,0x65,-0x14,0x5b),'x-api-key']),apiKeyAuthSchema=z[_0x34fd29(0x461,0x58e,0x4be,0x588)]({'type':z[_0x2803df(-0x94,0x43,-0xb1,0x3a)](_0x2803df(0xef,0x159,-0x26,0x207)),'apiKey':z[_0x34fd29(0x766,0x626,0x664,0x677)](),'authScheme':chatModelAuthSchemeSchema[_0x2803df(-0xff,-0x119,-0x197,-0x151)]()})['passthrough'](),oauthAuthSchema=z['object']({'type':z[_0x34fd29(0x4f7,0x532,0x5e0,0x5f4)](_0x2803df(0x1a,0x7e,0x72,0x153)),'access':z[_0x34fd29(0x5e5,0x530,0x733,0x677)](),'refresh':z[_0x34fd29(0x7be,0x58b,0x798,0x677)](),'expires':z['number']()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x2803df(-0xff,0xc,-0x148,-0x14e)]()})[_0x34fd29(0x7a7,0x685,0x7f3,0x736)](),authMethodSchema=z['union']([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x34fd29(0x4d6,0x52c,0x570,0x588)]({'id':z[_0x2803df(-0x11,0xb8,0x126,-0x156)](),'name':z[_0x2803df(-0x11,-0xd4,-0x3e,-0x14e)]()[_0x2803df(-0xff,0x17,-0x15c,-0x18a)]()})[_0x34fd29(0x833,0x7a7,0x671,0x736)](),modelConfigSchema=z['union']([z['literal'](![]),z[_0x2803df(-0x94,-0x151,-0xc7,0x8c)](!![]),z[_0x2803df(-0x11,0xda,0x30,0xd3)](),z[_0x2803df(-0x149,-0x25,-0x1e5,-0x94)](z[_0x34fd29(0x627,0x68d,0x5a0,0x677)]()),z[_0x2803df(-0x149,-0xe7,-0xb7,-0x1bc)](modelDefinitionSchema)]),chatModelSurfaceSchema=z['enum'](['anthropic-messages','openai-chat-completions',_0x2803df(-0x25,0x18,0x5,-0xdb),_0x2803df(-0x101,-0x10a,-0x1d3,-0x1e0)]),providerConfigSchema=z[_0x2803df(-0x100,-0x5,-0x15d,-0x189)]({'apiKey':z[_0x2803df(-0x11,-0x56,0x7c,-0xab)]()[_0x34fd29(0x475,0x4f1,0x674,0x589)](),'token':z['string']()[_0x34fd29(0x51b,0x614,0x51e,0x589)](),'defaultModel':z[_0x34fd29(0x63b,0x6e5,0x6f3,0x677)]()[_0x2803df(-0xff,-0x21b,-0x9a,-0xd2)](),'smallModel':z[_0x34fd29(0x70d,0x73c,0x6a9,0x677)]()[_0x34fd29(0x6c5,0x6c7,0x50e,0x589)](),'currentAuth':z[_0x34fd29(0x723,0x592,0x549,0x677)]()[_0x2803df(-0xff,-0x1ba,-0x1fa,-0x147)](),'auth':z[_0x34fd29(0x5fd,0x610,0x5b6,0x53f)](authMethodSchema)[_0x2803df(-0xff,-0x10c,-0x21,-0x1a0)](),'surface':chatModelSurfaceSchema[_0x34fd29(0x5bb,0x5b5,0x4a4,0x589)](),'baseUrl':z[_0x34fd29(0x77d,0x559,0x5e3,0x677)]()[_0x2803df(-0xff,-0xbb,-0x28,-0xca)](),'models':modelConfigSchema['optional'](),'customHeaders':z[_0x34fd29(0x78a,0x64c,0x5ab,0x6e9)](z['string'](),z[_0x34fd29(0x5b9,0x6c2,0x538,0x677)]())[_0x2803df(-0xff,-0x1a,-0xdb,-0xe6)]()})[_0x34fd29(0x852,0x725,0x6cc,0x736)](),mcpServerConfigSchema=z['object']({'command':z[_0x2803df(-0x11,0x8,-0x13,0xf2)]()[_0x2803df(-0xff,-0x1ce,-0x77,-0x1de)](),'args':z[_0x2803df(-0x149,-0xfe,-0x3b,-0x25e)](z['string']())[_0x34fd29(0x4ef,0x458,0x448,0x589)](),'env':z[_0x2803df(0x61,0x11c,0xb1,0xd2)](z['string'](),z['string']())[_0x2803df(-0xff,0x3b,-0x1bc,-0xb1)](),'transport':z[_0x2803df(0x79,-0xcc,0x17,-0xc0)]([_0x34fd29(0x5ca,0x578,0x47f,0x539),_0x2803df(-0x6b,-0xab,-0x28,-0x99)])['optional'](),'url':z[_0x34fd29(0x61d,0x79f,0x56b,0x677)]()['optional'](),'headers':z[_0x34fd29(0x601,0x5ee,0x6eb,0x6e9)](z[_0x2803df(-0x11,-0x3c,0x68,-0x49)](),z[_0x2803df(-0x11,-0x12e,-0x34,0x10c)]())['optional'](),'prefix':z[_0x2803df(-0x11,0x116,0x7b,-0x122)]()[_0x34fd29(0x5c6,0x4bf,0x48f,0x589)](),'timeoutMs':z[_0x34fd29(0x6fc,0x579,0x675,0x5d0)]()['optional'](),'enabled':z[_0x34fd29(0x6ce,0x6f4,0x6fc,0x719)]()[_0x34fd29(0x64d,0x69f,0x578,0x589)](),'auth':z[_0x34fd29(0x4a5,0x6b2,0x683,0x588)]({'type':z[_0x34fd29(0x66f,0x707,0x7b9,0x701)]([_0x34fd29(0x5d6,0x55b,0x52e,0x533),_0x2803df(0x6a,0x136,0x167,-0x2b),_0x34fd29(0x708,0x5f3,0x6ce,0x6a2)]),'token':z[_0x2803df(-0x11,0x11d,-0x2,0x12b)]()[_0x34fd29(0x4b7,0x4dd,0x5b7,0x589)](),'oauth':z[_0x2803df(-0x100,-0x24,-0x92,-0x1f2)]({'clientId':z['string']()['optional'](),'clientMetadataUrl':z[_0x34fd29(0x64d,0x75e,0x6bf,0x677)]()[_0x34fd29(0x44d,0x56e,0x5b7,0x589)](),'authorizationServer':z[_0x2803df(-0x11,-0x52,-0xa,-0xec)]()[_0x34fd29(0x65a,0x544,0x593,0x589)](),'scopes':z[_0x34fd29(0x3ff,0x5dc,0x5c0,0x53f)](z[_0x34fd29(0x6a2,0x6da,0x660,0x677)]())[_0x2803df(-0xff,-0x5a,-0x195,-0x13)](),'tokenStorageKey':z[_0x2803df(-0x11,-0x76,-0xbe,-0x76)]()['optional']()})[_0x2803df(0xae,0x155,0x1e0,-0x14)]()[_0x34fd29(0x6b0,0x514,0x66a,0x589)]()})['passthrough']()[_0x34fd29(0x450,0x533,0x553,0x589)]()})[_0x2803df(0xae,0x8b,0x5f,0x64)](),mcpSettingsSchema=z['object']({'servers':z['record'](z['string'](),mcpServerConfigSchema)[_0x34fd29(0x5f3,0x4e3,0x4f8,0x589)](),'allowedTools':z[_0x34fd29(0x617,0x782,0x5a1,0x6e9)](z[_0x34fd29(0x774,0x671,0x5f4,0x677)](),z[_0x2803df(0x61,-0x90,0x17,0x1f)](z['string'](),z[_0x34fd29(0x725,0x75f,0x64d,0x719)]()))[_0x34fd29(0x665,0x61a,0x48c,0x589)](),'defaultTimeoutMs':z[_0x2803df(-0xb8,-0xe,-0x79,-0x128)]()[_0x34fd29(0x6ab,0x630,0x490,0x589)]()})[_0x34fd29(0x797,0x612,0x7df,0x736)](),skillsSettingsSchema=z['object']({'enabled':z[_0x2803df(0x91,-0x41,0x115,0x10c)]()[_0x34fd29(0x617,0x583,0x446,0x589)](),'includeDefaults':z[_0x34fd29(0x733,0x7b5,0x6a9,0x719)]()['optional'](),'directories':z[_0x2803df(-0x149,-0xb6,-0x18c,-0xe7)](z[_0x34fd29(0x6db,0x596,0x703,0x677)]())[_0x2803df(-0xff,-0x42,-0x14d,-0xbb)](),'exclude':z[_0x2803df(-0x149,-0x169,-0x1a,-0x86)](z[_0x2803df(-0x11,-0xd5,-0x2e,-0xf8)]())[_0x34fd29(0x458,0x5b7,0x567,0x589)]()})[_0x2803df(0xae,0x9f,-0xc,-0x2d)](),commandsSettingsSchema=z[_0x34fd29(0x55f,0x5a6,0x5c0,0x588)]({'enabled':z[_0x2803df(0x91,0x110,0x184,0x89)]()[_0x34fd29(0x612,0x5c9,0x59d,0x589)](),'directories':z[_0x34fd29(0x679,0x53e,0x4ad,0x53f)](z[_0x2803df(-0x11,0xa6,-0xde,0x129)]())['optional']()})[_0x34fd29(0x695,0x6c5,0x7b6,0x736)](),agentsSettingsSchema=z[_0x34fd29(0x573,0x618,0x54b,0x588)]({'enabled':z[_0x2803df(0x91,0xb4,0xf1,-0x65)]()[_0x34fd29(0x641,0x5a0,0x5c3,0x589)](),'includeDefaults':z[_0x2803df(0x91,0x171,-0x2c,0x1a3)]()['optional'](),'directories':z[_0x34fd29(0x601,0x583,0x4ea,0x53f)](z[_0x34fd29(0x6af,0x540,0x608,0x677)]())[_0x34fd29(0x58a,0x4d1,0x5a6,0x589)]()})[_0x34fd29(0x65e,0x70b,0x7a1,0x736)](),uiThemeSettingsSchema=z[_0x2803df(-0x100,-0x182,-0x1d,-0xf4)]({'mode':z[_0x34fd29(0x715,0x70d,0x841,0x701)]([_0x2803df(-0x95,-0xf4,0xf,0x34),_0x2803df(-0x17d,-0x1fd,-0x56,-0x2bc),_0x2803df(-0x116,-0x1db,-0xfa,0x2f)])[_0x2803df(-0xff,-0x217,-0x1a4,-0x130)](),'colorLevel':z[_0x34fd29(0x7ac,0x824,0x76d,0x701)]([_0x2803df(-0x95,-0xb,0x7c,0x41),_0x2803df(-0x155,-0x265,-0x8f,-0x128),_0x2803df(0x66,0xd1,0x61,0x45),'ansi256',_0x34fd29(0x71d,0x6b8,0x744,0x65c)])[_0x2803df(-0xff,-0xfc,-0x6a,-0x218)](),'backgrounds':z[_0x34fd29(0x6af,0x62e,0x5d9,0x701)]([_0x2803df(-0x95,0x1a,-0x7,-0x121),'on','off'])[_0x2803df(-0xff,-0x47,-0x95,0x28)](),'messageStyle':z[_0x2803df(0x79,0x159,0x1b0,0xe2)]([_0x2803df(-0x9a,-0x10f,-0x7e,-0x8f),'boxed'])[_0x34fd29(0x564,0x4d0,0x5c0,0x589)]()})[_0x2803df(0xae,-0x16,0x11f,0xb0)](),statuslineSegmentSchema=z['enum']([_0x34fd29(0x713,0x5cc,0x584,0x62c),_0x34fd29(0x48f,0x3fa,0x5ae,0x504),'thinking',_0x2803df(-0x163,-0x134,-0x1c3,-0x148),'tokens',_0x34fd29(0x6e7,0x718,0x6d5,0x619),_0x34fd29(0x6a4,0x56b,0x682,0x59d),_0x34fd29(0x48b,0x6ba,0x6c5,0x5a7),'tools','cost',_0x2803df(-0x138,-0x3,-0xf6,-0x190),_0x34fd29(0x4a4,0x49b,0x606,0x568),'keybindings',_0x34fd29(0x6a1,0x7a2,0x609,0x6f1),_0x2803df(0xee,-0x29,-0x18,0x2)]),statuslineItemSchema=z[_0x34fd29(0x669,0x5aa,0x4ab,0x53d)]([statuslineSegmentSchema,z['literal']('|')]),statuslineRowSchema=z['array'](statuslineItemSchema),statuslineConfigSchema=z[_0x2803df(-0x100,-0xca,-0x23e,-0x1fc)]({'rows':z[_0x2803df(0x68,-0x98,0xa9,0x5)]([statuslineRowSchema,statuslineRowSchema])[_0x34fd29(0x501,0x6ba,0x509,0x589)]()})[_0x34fd29(0x7d6,0x6ee,0x681,0x736)](),memorySettingsSchema=z[_0x34fd29(0x6b3,0x6a2,0x5c8,0x588)]({'version':z[_0x2803df(-0x94,-0x156,-0x1a5,0xa5)](0x2)['optional'](),'retrieval':z[_0x34fd29(0x44b,0x4a2,0x68e,0x588)]({'engine':z[_0x34fd29(0x585,0x4e1,0x66f,0x5f4)]('bm25')[_0x2803df(-0xff,-0x18e,0x40,-0x187)](),'candidateLimit':z['number']()['optional'](),'activeCandidateLimit':z[_0x34fd29(0x59a,0x582,0x4df,0x5d0)]()[_0x2803df(-0xff,-0xf6,-0x6,-0xd8)](),'activeEnabled':z[_0x34fd29(0x61c,0x80a,0x64b,0x719)]()[_0x34fd29(0x59d,0x4fd,0x59f,0x589)](),'maxQueriesPerTurn':z[_0x2803df(-0xb8,-0x12f,0x7e,-0x18b)]()[_0x2803df(-0xff,-0x78,-0x30,-0x221)](),'coreInjectTokenBudget':z['number']()[_0x34fd29(0x5b8,0x6d1,0x46c,0x589)](),'injectTokenBudget':z['number']()['optional'](),'minScore':z[_0x34fd29(0x620,0x537,0x699,0x5d0)]()[_0x2803df(-0xff,-0x54,-0x127,-0x105)](),'freshnessHalfLifeDays':z[_0x34fd29(0x66d,0x5f5,0x48a,0x5d0)]()[_0x34fd29(0x55e,0x6ca,0x61b,0x589)]()})['passthrough']()['optional'](),'extraction':z[_0x2803df(-0x100,-0x1e8,-0x20e,-0xce)]({'enabled':z[_0x2803df(0x91,0x52,0x136,0xbe)]()[_0x34fd29(0x4ce,0x5fc,0x5ee,0x589)](),'provider':z[_0x34fd29(0x6ef,0x584,0x55d,0x677)]()[_0x34fd29(0x5ac,0x604,0x47a,0x589)](),'model':z[_0x34fd29(0x683,0x717,0x553,0x677)]()[_0x34fd29(0x6b8,0x541,0x4f7,0x589)](),'sensitiveFilter':z[_0x2803df(0x91,0xd5,0x4,0x2)]()[_0x34fd29(0x558,0x611,0x4e4,0x589)]()})[_0x34fd29(0x618,0x5f1,0x64f,0x736)]()[_0x34fd29(0x5db,0x57e,0x4f3,0x589)](),'index':z['object']({'persisted':z[_0x34fd29(0x7d6,0x761,0x83d,0x719)]()[_0x34fd29(0x6af,0x669,0x6c5,0x589)](),'flushIntervalMs':z[_0x2803df(-0xb8,-0x1a2,-0x1e1,-0x148)]()[_0x34fd29(0x655,0x4ed,0x522,0x589)]()})[_0x34fd29(0x7f4,0x658,0x6ae,0x736)]()['optional'](),'enabled':z[_0x34fd29(0x75f,0x7b8,0x667,0x719)]()['optional'](),'saveTool':z[_0x2803df(0x91,-0x3b,0x15f,0x15c)]()[_0x2803df(-0xff,-0x85,-0xfd,-0xe5)](),'model':z[_0x34fd29(0x56c,0x607,0x5db,0x677)]()[_0x2803df(-0xff,-0x120,-0x214,-0x16f)](),'provider':z[_0x34fd29(0x539,0x600,0x77a,0x677)]()[_0x34fd29(0x584,0x535,0x57f,0x589)](),'maxInjectionTokens':z[_0x2803df(-0xb8,0x6,-0x17f,-0x99)]()[_0x34fd29(0x49a,0x633,0x469,0x589)](),'backgroundExtraction':z[_0x34fd29(0x721,0x81f,0x828,0x719)]()[_0x2803df(-0xff,-0x11d,-0x38,-0x1a6)]()})['passthrough'](),recentModelSchema=z[_0x2803df(-0x100,-0xf3,-0x23a,-0xe6)]({'provider':z[_0x2803df(-0x11,-0x87,-0x69,0x64)](),'model':z[_0x2803df(-0x11,-0x107,0x1a,0x50)](),'usedAt':z[_0x2803df(-0xb8,-0x166,-0x1f,-0x1a1)]()})[_0x34fd29(0x6d3,0x613,0x6d4,0x736)](),lspServerEntrySchema=z[_0x34fd29(0x4e7,0x631,0x613,0x588)]({'disabled':z['boolean']()['optional'](),'command':z['string']()[_0x34fd29(0x4ac,0x6cd,0x56b,0x589)](),'args':z['array'](z['string']())[_0x2803df(-0xff,-0x2a,-0x15,-0x16b)](),'rootMarkers':z['array'](z[_0x34fd29(0x65f,0x63d,0x771,0x677)]())[_0x2803df(-0xff,-0x9,-0x162,-0x4)]()})['passthrough'](),lspConfigSchema=z[_0x2803df(-0x100,-0x10e,-0x91,-0xfb)]({'enabled':z[_0x34fd29(0x6fb,0x827,0x713,0x719)]()[_0x34fd29(0x47c,0x5c5,0x6a2,0x589)](),'servers':z['record'](z[_0x34fd29(0x6e9,0x5d1,0x7a6,0x677)](),lspServerEntrySchema)[_0x34fd29(0x449,0x5f7,0x687,0x589)]()})[_0x2803df(0xae,0x1a5,0x16e,0x17c)](),cliConfigSchema=z['object']({'activeProvider':z[_0x2803df(-0x11,-0x37,-0x2,-0x92)]()['optional'](),'activeModel':z['string']()[_0x2803df(-0xff,0x46,-0x101,0x6)](),'apiKey':z[_0x2803df(-0x11,0x24,-0x1a,0x40)]()[_0x2803df(-0xff,-0x10b,-0x111,-0x11a)](),'providers':z[_0x2803df(0x61,0x11a,0x185,0x4a)](z[_0x34fd29(0x566,0x700,0x6ec,0x677)](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema[_0x34fd29(0x479,0x654,0x56b,0x589)](),'skills':skillsSettingsSchema[_0x34fd29(0x4ca,0x5e2,0x67e,0x589)](),'agents':agentsSettingsSchema[_0x2803df(-0xff,-0x20d,-0x1a3,-0x193)](),'commands':commandsSettingsSchema[_0x34fd29(0x48a,0x4fe,0x682,0x589)](),'skillsEnabled':z[_0x2803df(0x61,0xef,0x7e,0x13b)](z[_0x2803df(-0x11,-0x11e,-0x12d,-0xc6)](),z[_0x2803df(0x91,0xd0,0xc4,0x12d)]())[_0x2803df(-0xff,0x31,-0x36,-0x23a)](),'memory':memorySettingsSchema[_0x34fd29(0x5c3,0x4d8,0x6b3,0x589)](),'session':z[_0x2803df(-0x100,0xa,-0x6c,-0x245)]({'memPersist':z['boolean']()[_0x2803df(-0xff,-0x1b8,-0x16e,-0x248)](),'persistEventLog':z[_0x2803df(0x91,-0xa6,0x12b,0x7)]()[_0x2803df(-0xff,-0x10,-0x14c,-0x2a)](),'persistHttpLog':z[_0x2803df(0x91,-0x17,0x1c4,-0xae)]()[_0x2803df(-0xff,-0x248,-0x237,-0x219)]()})[_0x34fd29(0x7f5,0x798,0x6f7,0x736)]()['optional'](),'requireToolApproval':z[_0x34fd29(0x7a0,0x7a9,0x7be,0x719)]()[_0x34fd29(0x544,0x50d,0x6cf,0x589)](),'thinking':z[_0x34fd29(0x670,0x800,0x806,0x701)]([_0x34fd29(0x670,0x704,0x708,0x722),_0x34fd29(0x70c,0x677,0x59d,0x5da),_0x2803df(-0x6c,-0x12f,-0xdc,-0x39),_0x2803df(-0x24,0x47,0x115,-0x159)])[_0x2803df(-0xff,-0x1da,-0x179,-0xc6)](),'streamingChunks':z[_0x34fd29(0x61c,0x63c,0x756,0x719)]()[_0x34fd29(0x48f,0x4f4,0x65d,0x589)](),'agentsEnabled':z['record'](z[_0x34fd29(0x67c,0x780,0x626,0x677)](),z[_0x34fd29(0x6ae,0x76c,0x792,0x719)]())['optional'](),'recentModels':z[_0x34fd29(0x4d9,0x682,0x64f,0x53f)](recentModelSchema)[_0x2803df(-0xff,0xd,-0x1e1,-0xdc)](),'lsp':lspConfigSchema[_0x2803df(-0xff,-0x143,-0x1e5,-0xba)](),'ui':z['object']({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema['optional']()})[_0x34fd29(0x803,0x80c,0x61d,0x736)]()['optional'](),'tools':z[_0x2803df(0x61,0xfb,0x5e,0xc1)](z[_0x34fd29(0x6af,0x68e,0x6f0,0x677)](),z[_0x2803df(-0x5b,0x27,0xc0,-0x19f)]())[_0x2803df(-0xff,-0xb2,-0x92,-0x1cf)]()})['passthrough']();function buildDescription(_0x5157f6){const _0x491371={_0x18b777:0x744,_0x586755:0x71d,_0x15ac83:0x78f,_0x239885:0x69e,_0x215f8a:0x62c,_0x287f78:0x6d2,_0x251a27:0x433,_0x560f2b:0x51a,_0x2163d2:0x45b,_0x3e7253:0x339,_0xafd6cb:0x30f},_0x17b1c0={_0xe2858f:0x3e6,_0x1af63c:0x1a3,_0x50b010:0x0},_0x21e7e8={_0x9c4010:0x96,_0x417015:0x82,_0x23fb5e:0xa9};function _0x4a6e5(_0x1767d2,_0x4a05ed,_0x195d6f,_0x19dc1b){return _0x34fd29(_0x4a05ed,_0x4a05ed-_0x21e7e8._0x9c4010,_0x195d6f-_0x21e7e8._0x417015,_0x19dc1b-_0x21e7e8._0x23fb5e);}if(_0x5157f6['length']===0x0)return[_0x4a6e5(0x6eb,_0x491371._0x18b777,_0x491371._0x586755,_0x491371._0x15ac83),_0x4a6e5(0x6db,0x845,0x6b6,0x7a6),_0x4a6e5(_0x491371._0x239885,_0x491371._0x215f8a,_0x491371._0x287f78,0x718)][_0x11d276(0x50a,0x2ed,0x37b,_0x491371._0x251a27)]('\x0a');function _0x11d276(_0x4db70a,_0x47dc2d,_0x2657de,_0x15df5c){return _0x2803df(_0x15df5c-_0x17b1c0._0xe2858f,_0x4db70a,_0x2657de-_0x17b1c0._0x1af63c,_0x15df5c-_0x17b1c0._0x50b010);}const _0xa32af8=[_0x4a6e5(0x7b8,0x822,0x709,0x78f),_0x11d276(_0x491371._0x560f2b,0x4a2,0x34b,_0x491371._0x2163d2),_0x11d276(0x434,0x1cd,_0x491371._0x3e7253,_0x491371._0xafd6cb),..._0x5157f6['map'](_0x46addf=>_0x46addf[_0x11d276(0x407,0x435,0x470,0x3df)]?'-\x20'+_0x46addf[_0x4a6e5(0x714,0x65d,0x68b,0x6fb)]+'\x20'+_0x46addf['argumentHint']+':\x20'+_0x46addf[_0x11d276(0x31d,0x20e,0x27a,0x2a8)]:'-\x20'+_0x46addf[_0x11d276(0x45f,0x45d,0x453,0x3b0)]+':\x20'+_0x46addf[_0x11d276(0x1a4,0x25e,0x334,0x2a8)])];return _0xa32af8['join']('\x0a');}function createInvokeCommandTool(_0x3d4624){const _0x24206e={_0x4cdf29:0x36,_0x5725f4:0x4d,_0x355874:0xf6,_0x11f682:0xd9,_0x420c78:0xb3,_0xf5561c:0x1a8,_0x4ca6e3:0x62,_0x12f991:0x9},_0x547513={_0x2d5a75:0x259,_0x1370fd:0x143,_0x52ee99:0x44c,_0x1c39b1:0x3b5,_0x236d47:0x3cd,_0x276295:0x11b,_0x12f7a7:0x1b0,_0x9bea69:0xdc,_0x5b4ca5:0x2cf,_0x55b396:0xe4,_0x5982cb:0x185,_0x15e23d:0x19a,_0x3b6a1b:0x210,_0x1701d1:0x1de,_0x11287f:0x2fd,_0x26d63f:0x5b1,_0x12b5a6:0x59d,_0x191b6d:0x42d,_0x5a5977:0x3d4,_0x1e9b2e:0x347,_0xe88728:0x35d,_0xac17da:0xca,_0x4df096:0x2f8,_0x47dbbb:0x1b1,_0x1f58cf:0x33e},_0x1e4930={_0x12894a:0x182,_0x2d42e9:0x16d,_0x2aac27:0x17c},_0xc3aed2={_0x1f8bce:0x137,_0x22ef63:0x60,_0x35380a:0xd3},_0x2ea80c={_0x2a32b9:0x192},_0x107bd0=new Map(_0x3d4624[_0x526e31(-0x41,-_0x24206e._0x4cdf29,0x0,-0x44)][_0x1c9383(-_0x24206e._0x5725f4,-0x163,0x3,-0x156)](_0x2b04f3=>[_0x2b04f3['id'],_0x2b04f3]));function _0x1c9383(_0x34a70e,_0x2e9c78,_0x340e90,_0x139a91){return _0x2803df(_0x34a70e-0xc4,_0x340e90,_0x340e90-_0x2ea80c._0x2a32b9,_0x139a91-0x1f2);}const _0x1dba7f=buildDescription(_0x3d4624[_0x1c9383(-0xb7,-0x5b,-_0x24206e._0x355874,-0xb)]);function _0x526e31(_0x5df6ad,_0x59c1f0,_0x25b9d5,_0x111ff9){return _0x2803df(_0x111ff9-_0xc3aed2._0x1f8bce,_0x5df6ad,_0x25b9d5-_0xc3aed2._0x22ef63,_0x111ff9-_0xc3aed2._0x35380a);}return defineTool({'name':'InvokeCommand','description':_0x1dba7f,'inputSchema':{'type':'object','properties':{'name':{'type':_0x526e31(_0x24206e._0x11f682,0x3,0x0,0x126)},'args':{'type':_0x1c9383(_0x24206e._0x420c78,0x148,_0x24206e._0xf5561c,0xf1)}},'required':[_0x526e31(_0x24206e._0x4ca6e3,0x1b6,-_0x24206e._0x12f991,0x101)]},async *'execute'(_0x37badd){const _0x537f58={_0x20a35:0xe4,_0x16876c:0x129},_0x48a99d=_0x107bd0[_0x1e1847(_0x547513._0x2d5a75,0x231,0x179,_0x547513._0x1370fd)](_0x37badd[_0x53029a(_0x547513._0x52ee99,0x590,_0x547513._0x1c39b1,_0x547513._0x236d47)]);if(!_0x48a99d){const _0x15d5b7=Array[_0x1e1847(0x8e,_0x547513._0x276295,0x208,0x103)](_0x107bd0[_0x1e1847(0x236,_0x547513._0x12f7a7,0xf6,_0x547513._0x9bea69)]())[_0x1e1847(_0x547513._0x5b4ca5,0x293,0x17b,0x293)](',\x20');throw new ToolExecutionError(_0x1e1847(_0x547513._0x55b396,_0x547513._0x5982cb,0xac,0xa4)+_0x37badd[_0x1e1847(_0x547513._0x15e23d,_0x547513._0x3b6a1b,_0x547513._0x1701d1,_0x547513._0x11287f)]+_0x53029a(0x4f9,0x526,_0x547513._0x26d63f,_0x547513._0x12b5a6)+_0x15d5b7,{'name':_0x37badd['name']});}const _0x2cfe4d=await _0x3d4624['loadCommand'](_0x48a99d);function _0x1e1847(_0x2c07b4,_0x4ac305,_0xd1816c,_0x3a986f){return _0x1c9383(_0x4ac305-_0x1e4930._0x12894a,_0x4ac305-_0x1e4930._0x2d42e9,_0xd1816c,_0x3a986f-_0x1e4930._0x2aac27);}const _0x3794b7=_0x37badd[_0x53029a(_0x547513._0x191b6d,_0x547513._0x5a5977,_0x547513._0x1e9b2e,0x525)]??'',_0x586816=renderCommandInstructions({'instructions':_0x2cfe4d['instructions'],'argumentsText':_0x3794b7,'argumentNames':_0x2cfe4d[_0x53029a(_0x547513._0xe88728,0x310,0x26a,0x36e)]});function _0x53029a(_0x3803d7,_0xe2528e,_0x5b87d7,_0x3489f6){return _0x526e31(_0xe2528e,_0xe2528e-_0x537f58._0x20a35,_0x5b87d7-_0x537f58._0x16876c,_0x3803d7-0x34b);}return yield createToolOutput(_0x586816,{'id':_0x2cfe4d['id'],'name':_0x2cfe4d[_0x1e1847(0x1a3,_0x547513._0x3b6a1b,0x286,_0x547513._0xac17da)],'path':_0x48a99d['source'][_0x53029a(_0x547513._0x4df096,0x254,_0x547513._0x47dbbb,_0x547513._0x1f58cf)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x17a6c6,rename as _0x3ce014,stat as _0x5df82c,writeFile as _0x1de8df}from'fs/promises';import*as _0x3443a6 from'path';function detectEol(_0x1e1b26){const _0x4a0774={_0x20ceb8:0x6cc,_0x3bcf45:0x65d,_0x48f1a3:0x6c0,_0xc7b27c:0x60a,_0x4e02f6:0x60d},_0x1b962d={_0x82011c:0x6a5},_0x666864={_0x181554:0x1c2};function _0x433ee9(_0x13f536,_0x16af81,_0x2fca46,_0x20c7c3){return _0x2803df(_0x16af81-0x5dd,_0x13f536,_0x2fca46-0x1ad,_0x20c7c3-_0x666864._0x181554);}function _0x4446df(_0x296d9b,_0x18cf7f,_0x2c0cb3,_0xa46dbc){return _0x2803df(_0x296d9b-_0x1b962d._0x82011c,_0x18cf7f,_0x2c0cb3-0x80,_0xa46dbc-0xdd);}return/\r\n/[_0x4446df(0x6f4,_0x4a0774._0x20ceb8,_0x4a0774._0x3bcf45,_0x4a0774._0x48f1a3)](_0x1e1b26['toString']('utf8'))?_0x433ee9(_0x4a0774._0xc7b27c,_0x4a0774._0x4e02f6,0x702,0x4e7):'lf';}function normalizeToLf(_0x23d967){const _0x141b5b={_0x27db07:0x391,_0x582301:0x38f},_0x461cc3={_0x2f34c4:0x1cb,_0x51bf4d:0x29a};function _0x42d11c(_0x588f22,_0x10580b,_0x6c4af3,_0x1a8863){return _0x34fd29(_0x10580b,_0x10580b-0x152,_0x6c4af3-_0x461cc3._0x2f34c4,_0x588f22- -_0x461cc3._0x51bf4d);}return _0x23d967[_0x42d11c(_0x141b5b._0x27db07,0x3da,0x2ab,_0x141b5b._0x582301)](/\r\n/g,'\x0a');}function convertEol(_0xabdf6b,_0x1a9149){const _0x16aed8={_0xc353b3:0x325},_0xb748f7={_0x52b8e4:0x10};function _0x22119d(_0x442c5c,_0x5d5313,_0x47cffc,_0xa45a4){return _0x34fd29(_0x5d5313,_0x5d5313-0x16e,_0x47cffc-0x1d8,_0x47cffc- -0x305);}function _0x14dfc2(_0x27fba7,_0xaba81f,_0x577462,_0x2f74ee){return _0x2803df(_0xaba81f-0x671,_0x2f74ee,_0x577462-0xf6,_0x2f74ee-_0xb748f7._0x52b8e4);}return _0x1a9149===_0x14dfc2(0x66a,0x6a1,0x7e0,0x797)?_0xabdf6b[_0x22119d(0x396,0x3d6,0x326,_0x16aed8._0xc353b3)](/\n/g,'\x0d\x0a'):_0xabdf6b;}async function atomicWrite(_0x21b32a,_0x43608b){const _0x331226={_0x34b4bb:0x66,_0x374b2b:0xf1,_0x3ccdfe:0x1ff,_0x2b3c81:0x263,_0x2718d7:0x232,_0x41ce21:0x4ec,_0x49c921:0x4ea,_0x247338:0x5a8,_0x58819f:0xec,_0x4b5c90:0x9f,_0xf3bf6f:0x8f,_0x1ca7b2:0x17c,_0xbbfad7:0x3b6,_0x406262:0x3e3,_0x305589:0x3db,_0x1cb4d1:0x3bf,_0x2fa48c:0x3b4},_0x723542={_0x5b5fc1:0x12c},_0x57ab0d={_0x34ac4c:0x1c,_0x2f39a8:0x1f1};function _0x3f25b6(_0x261ee8,_0x482ead,_0x21d610,_0x5c0f26){return _0x34fd29(_0x261ee8,_0x482ead-_0x57ab0d._0x34ac4c,_0x21d610-_0x57ab0d._0x2f39a8,_0x5c0f26- -0x4a3);}const _0x4626c6=_0x3443a6[_0x3f25b6(-0x3b,0x11f,_0x331226._0x34b4bb,_0x331226._0x374b2b)](_0x21b32a),_0x60513c=_0x3443a6[_0x3f25b6(_0x331226._0x3ccdfe,_0x331226._0x2b3c81,0x24f,_0x331226._0x2718d7)](_0x4626c6,'.tmp.'+_0x3443a6[_0x34bbad(_0x331226._0x41ce21,_0x331226._0x49c921,_0x331226._0x247338,0x657)](_0x21b32a)+'.'+Date[_0x3f25b6(_0x331226._0x58819f,_0x331226._0x4b5c90,_0x331226._0xf3bf6f,_0x331226._0x1ca7b2)]()+'.'+Math[_0x34bbad(0x529,_0x331226._0xbbfad7,_0x331226._0x406262,_0x331226._0x305589)]()[_0x34bbad(0x4fb,0x617,0x518,0x566)](0x24)[_0x34bbad(_0x331226._0x1cb4d1,0x4aa,0x4a2,_0x331226._0x2fa48c)](0x2));function _0x34bbad(_0x963b11,_0x3e78ce,_0x2bee23,_0x2413e6){return _0x34fd29(_0x3e78ce,_0x3e78ce-0x7c,_0x2bee23-0x1dd,_0x2bee23- -_0x723542._0x5b5fc1);}await _0x1de8df(_0x60513c,_0x43608b),await _0x3ce014(_0x60513c,_0x21b32a);}function sha256(_0x56eb4d){const _0x40977f={_0x4cdda8:0x14b,_0x2ede6a:0x7f,_0x58d27c:0x2bf,_0x442137:0x203,_0x3174f8:0x2b9},_0x2d523a={_0x4b629b:0x146,_0xa34ec2:0x152},_0x583a6c={_0x2544d4:0x141};function _0x5428a3(_0x2856b6,_0x804fec,_0x461bc1,_0x2332d6){return _0x34fd29(_0x804fec,_0x804fec-0x185,_0x461bc1-_0x583a6c._0x2544d4,_0x2332d6- -0x638);}function _0x1e4a6e(_0x3afacb,_0xaaea8,_0x3bb4da,_0x1cd05e){return _0x34fd29(_0x1cd05e,_0xaaea8-_0x2d523a._0x4b629b,_0x3bb4da-_0x2d523a._0xa34ec2,_0xaaea8- -0x3dc);}return createHash('sha256')[_0x1e4a6e(_0x40977f._0x4cdda8,0x19a,_0x40977f._0x2ede6a,_0x40977f._0x58d27c)](_0x56eb4d)['digest'](_0x1e4a6e(0x1e6,_0x40977f._0x442137,_0x40977f._0x3174f8,0x2d1));}function countLines(_0x21d3f6){const _0x28661c={_0x429667:0x3a,_0x55bd0b:0xce,_0x37c471:0x78},_0x49b1ae={_0x2ea102:0x93,_0x3e69f1:0x1a3},_0x2e55c3={_0x204354:0x125},_0x8013cf=_0x21d3f6['replace'](/\n$/,'');function _0x32ac3f(_0x502f45,_0x452c26,_0x482055,_0x2c1609){return _0x2803df(_0x482055-0x599,_0x452c26,_0x482055-_0x2e55c3._0x204354,_0x2c1609-0xed);}function _0x441ac1(_0x43e6cc,_0x4588a7,_0x38e589,_0x529e96){return _0x2803df(_0x529e96-_0x49b1ae._0x2ea102,_0x43e6cc,_0x38e589-_0x49b1ae._0x3e69f1,_0x529e96-0x143);}return _0x8013cf[_0x32ac3f(0x44b,0x647,0x57e,0x49a)]===0x0?0x0:_0x8013cf['split']('\x0a')[_0x441ac1(0x2a,_0x28661c._0x429667,-_0x28661c._0x55bd0b,_0x28661c._0x37c471)];}function calculateLineNumbers(_0x1a4b31,_0x4c843c,_0x1e4bdd,_0x544c4b){const _0x97f447={_0x11fd16:0x546,_0x1c5086:0x5f2,_0x26f4f6:0x4c1},_0x2550aa={_0x416566:0x3,_0x4e92ca:0x34},_0x51678b=_0x1a4b31['slice'](0x0,_0x544c4b)['split']('\x0a')[_0x4ab5fa(_0x97f447._0x11fd16,_0x97f447._0x1c5086,0x435,_0x97f447._0x26f4f6)],_0x11ccc2=countLines(_0x4c843c),_0xc35d2=countLines(_0x1e4bdd);function _0x4ab5fa(_0x54c91e,_0x5bcee4,_0x36fba7,_0x5ab10b){return _0x34fd29(_0x5ab10b,_0x5bcee4-_0x2550aa._0x416566,_0x36fba7-_0x2550aa._0x4e92ca,_0x54c91e- -0x127);}return{'oldStartLine':_0x51678b,'oldEndLine':_0x51678b+_0x11ccc2-0x1,'newStartLine':_0x51678b,'newEndLine':_0x51678b+_0xc35d2-0x1,'oldLineCount':_0x11ccc2,'newLineCount':_0xc35d2};}function createFileEditTool(_0x2378e2={}){const _0x13457c={_0x15f21f:0x5a,_0x9c5ee9:0x2e,_0x206277:0x109,_0x55030b:0x255,_0x4c29fb:0x29d,_0x137037:0x2d8,_0x46f9fb:0x49d,_0xeaa3d8:0x378,_0x4a8b14:0x337,_0x5e3edc:0x364,_0x39a271:0x2ae,_0x50730f:0x39d,_0x40819a:0x36b},_0x2d64f9={_0x4b2332:0xfb,_0x36e227:0x32a,_0x275009:0x3ff,_0x47c4e5:0x411,_0x21c67a:0x3c5,_0x1d9b3e:0x246,_0x27a055:0x2dd,_0x48f53b:0x33,_0x22a4c3:0x3a6,_0x214e92:0x3f5,_0x35f8fa:0x3d0,_0x815e56:0x17a,_0x104f83:0xbd,_0x1223fd:0x13d,_0x1d9ce6:0x48,_0x4519ef:0x229,_0x12a095:0x297,_0x39db6c:0x19,_0x337339:0x192,_0x876569:0x1f,_0x330ab3:0x86,_0x2fcdb8:0x5e,_0x2d58f1:0x67,_0x32cad3:0x19,_0x5ed161:0x2cd,_0x468666:0x14a,_0x1ea7a2:0x246,_0x34f833:0x2d6,_0x1ba524:0x1b0,_0xa2bbd0:0x116,_0x14b2d8:0x11a,_0x3ff91c:0x293,_0x23960c:0x1c7,_0x6ad6e6:0x23f,_0x395dbd:0x31c,_0x48f087:0x2c3,_0xf41613:0x1f6,_0x2a47d6:0xb4,_0x3c2eae:0x3e,_0x53ad60:0x1a1,_0x66330a:0x230,_0x13bbdd:0x12d,_0x1a1c28:0x14,_0x354614:0xbb,_0x19c0b3:0x128,_0x3269a4:0xd4,_0x27ee77:0x137,_0x33f5b1:0xdb,_0x49b5e4:0x419},_0x11e4a3={_0x451b0c:0x1f1},_0x195d53={_0x110e54:0x88};function _0x31d650(_0x5c3ecb,_0x1413c1,_0x3f7792,_0x5e9ff7){return _0x2803df(_0x5e9ff7-0x71,_0x3f7792,_0x3f7792-_0x195d53._0x110e54,_0x5e9ff7-0xf1);}function _0x8f3a5a(_0x418359,_0x4dc012,_0x5b9484,_0x3c3a87){return _0x34fd29(_0x418359,_0x4dc012-0x46,_0x5b9484-0x1f3,_0x4dc012- -0x2da);}const _0x296c6d=_0x3443a6[_0x31d650(-0xd4,0x88,0xf9,_0x13457c._0x15f21f)](_0x2378e2[_0x31d650(_0x13457c._0x9c5ee9,_0x13457c._0x206277,0x5e,0xaf)]??process['cwd']()),_0x30ed41=(_0x2378e2[_0x8f3a5a(0x39c,_0x13457c._0x55030b,0x23c,0x1e2)]??[])[_0x8f3a5a(0x17a,_0x13457c._0x4c29fb,_0x13457c._0x137037,0x282)](_0x5bf990=>_0x3443a6[_0x31d650(0x7c,-0xa0,-0xbe,0x5a)](_0x5bf990)),_0x27debb=_0x2378e2[_0x8f3a5a(_0x13457c._0x46f9fb,_0x13457c._0xeaa3d8,_0x13457c._0x4a8b14,_0x13457c._0x5e3edc)]??'FileEdit';return defineTool({'name':_0x27debb,'description':_0x31d650(0x20,-0x67,-0xa4,-0x77),'inputSchema':{'type':_0x8f3a5a(0x395,_0x13457c._0x39a271,0x347,0x3ab),'properties':{'filePath':{'type':'string'},'oldText':{'type':'string'},'newText':{'type':_0x8f3a5a(0x2ba,_0x13457c._0x50730f,0x2d3,_0x13457c._0x40819a)},'dryRun':{'type':'boolean'}},'required':['filePath','oldText','newText']},async *'execute'(_0x2a410d){const _0x5d3946={_0x52848f:0x30},_0x18a0d4=resolveAllowedPath(_0x296c6d,_0x30ed41,_0x2a410d[_0x424cc0(-0x1a8,-_0x2d64f9._0x4b2332,-0x1b6,-0xf3)]);await assertWorkspaceFile(_0x18a0d4);function _0xda7dbf(_0x4e1f3a,_0x565b00,_0x24e0b7,_0x519edb){return _0x31d650(_0x4e1f3a-_0x11e4a3._0x451b0c,_0x565b00-0xc5,_0x565b00,_0x4e1f3a-0x2fd);}const _0x2b16db=await _0x5df82c(_0x18a0d4),_0x514019=await _0x17a6c6(_0x18a0d4),_0x3fbbed=detectEol(_0x514019),_0x582c8c=normalizeToLf(_0x514019[_0xda7dbf(_0x2d64f9._0x36e227,_0x2d64f9._0x275009,_0x2d64f9._0x47c4e5,_0x2d64f9._0x21c67a)](_0xda7dbf(_0x2d64f9._0x1d9b3e,_0x2d64f9._0x27a055,0x187,0x303))),_0x2e9589=normalizeToLf(_0x2a410d[_0x424cc0(0x13b,_0x2d64f9._0x48f53b,0xf9,0x117)]),_0x1dfc3d=normalizeToLf(_0x2a410d[_0xda7dbf(_0x2d64f9._0x22a4c3,_0x2d64f9._0x214e92,0x28e,_0x2d64f9._0x35f8fa)]);function _0x424cc0(_0x7a85db,_0x1ef7bc,_0x908cc1,_0x20bdcd){return _0x31d650(_0x7a85db-0x1f0,_0x1ef7bc-_0x5d3946._0x52848f,_0x908cc1,_0x1ef7bc- -0x3d);}const _0x1470df=_0x582c8c[_0x424cc0(-_0x2d64f9._0x815e56,-0x120,-_0x2d64f9._0x104f83,-0x211)](_0x2e9589);if(_0x1470df===-0x1){const _0x5de695=_0x2e9589['slice'](0x0,0x64)[_0x424cc0(-_0x2d64f9._0x1223fd,-0x29,0xe7,-_0x2d64f9._0x1d9ce6)](/\n/g,'\x5cn');throw new ToolExecutionError(_0xda7dbf(_0x2d64f9._0x4519ef,0x2d1,0x34a,_0x2d64f9._0x12a095)+_0x5de695+(_0x2e9589[_0x424cc0(0x155,_0x2d64f9._0x39db6c,-0x4e,-0x8)]>0x64?'...':'')+'\x22',{'filePath':_0x2a410d[_0x424cc0(-_0x2d64f9._0x337339,-0xfb,_0x2d64f9._0x876569,-0x212)]});}const _0x39d986=_0x582c8c[_0x424cc0(-0x89,-0x86,0xa9,-0x119)](0x0,_0x1470df)+_0x1dfc3d+_0x582c8c[_0x424cc0(-0x29,-_0x2d64f9._0x330ab3,0x66,-_0x2d64f9._0x2fcdb8)](_0x1470df+_0x2e9589[_0x424cc0(_0x2d64f9._0x2d58f1,_0x2d64f9._0x32cad3,0x10f,-0x41)]),_0x75c4b4=convertEol(_0x39d986,_0x3fbbed),_0x4164b3=Buffer[_0xda7dbf(0x243,_0x2d64f9._0x5ed161,_0x2d64f9._0x468666,0x1f8)](_0x75c4b4,_0xda7dbf(_0x2d64f9._0x1ea7a2,_0x2d64f9._0x34f833,_0x2d64f9._0x1ba524,0x10a)),_0x1cbacd=sha256(_0x514019),_0xe5b0b0=sha256(_0x4164b3),_0x381be1=_0x1cbacd===_0xe5b0b0,_0x33f5c3=_0x2a410d[_0x424cc0(-0x152,-0x2b,-0x61,0x8d)]??![];return!_0x33f5c3&&!_0x381be1&&await atomicWrite(_0x18a0d4,_0x4164b3),yield createToolOutput(_0x381be1?_0x424cc0(-_0x2d64f9._0xa2bbd0,-0xf2,-0x95,-_0x2d64f9._0x14b2d8):_0x33f5c3?'Validated\x20(dry\x20run:\x20no\x20write).':_0xda7dbf(_0x2d64f9._0x3ff91c,0x20c,_0x2d64f9._0x23960c,0x202),{'filePath':_0x2a410d[_0xda7dbf(_0x2d64f9._0x6ad6e6,_0x2d64f9._0x395dbd,_0x2d64f9._0x48f087,_0x2d64f9._0xf41613)],'resolvedPath':_0x18a0d4,'created':_0x2b16db[_0x424cc0(-_0x2d64f9._0x2a47d6,-0x81,-0x147,-_0x2d64f9._0x3c2eae)][_0x424cc0(0x100,0x14,0x153,-0x8b)](),'modified':_0x2b16db[_0x424cc0(_0x2d64f9._0x53ad60,0xe8,0x116,_0x2d64f9._0x66330a)][_0x424cc0(_0x2d64f9._0x13bbdd,_0x2d64f9._0x1a1c28,-0x19,-0x11e)](),'size':_0x2b16db['size'],'eol':_0x3fbbed,'oldTextLength':_0x2e9589[_0x424cc0(_0x2d64f9._0x354614,0x19,_0x2d64f9._0x19c0b3,-_0x2d64f9._0x3269a4)],'newTextLength':_0x1dfc3d[_0x424cc0(_0x2d64f9._0x27ee77,_0x2d64f9._0x39db6c,-0xf6,_0x2d64f9._0x33f5b1)],'bytesWritten':_0x381be1||_0x33f5c3?0x0:_0x4164b3[_0xda7dbf(0x353,_0x2d64f9._0x49b5e4,0x2b2,0x3ad)],'beforeSha':_0x1cbacd,'afterSha':_0xe5b0b0,'dryRun':_0x33f5c3,'noChange':_0x381be1,'lineNumbers':calculateLineNumbers(_0x582c8c,_0x2e9589,_0x1dfc3d,_0x1470df)}),void 0x0;}});}import{mkdir as _0x5eadd4,rename as _0x165f67,stat as _0xa83d82,writeFile as _0x95bb56}from'fs/promises';import*as _0xf9947f from'path';async function atomicWrite2(_0x1ad357,_0x4579d6){const _0x56219a={_0x4dcb78:0x6be,_0x3c0929:0x531,_0x4e628d:0x648,_0x5de6df:0x5bc,_0xd0b5b3:0x4f8,_0x49fbfd:0x476,_0x3723be:0x570,_0x32f214:0x657,_0x2b4a8d:0x57c,_0x58e48a:0x4b7,_0x356c44:0x58d,_0x30b756:0x482},_0x5a1a0d={_0x28bd38:0x159,_0x7b107:0x92},_0x5d64fc={_0xd8b5e0:0x2b,_0x3beb34:0x8d},_0x194b85=_0xf9947f['dirname'](_0x1ad357);await _0x5eadd4(_0x194b85,{'recursive':!![]});const _0x1cfde2=_0xf9947f[_0x40f5ad(_0x56219a._0x4dcb78,_0x56219a._0x3c0929,_0x56219a._0x4e628d,_0x56219a._0x5de6df)](_0x194b85,_0x321ec4(_0x56219a._0xd0b5b3,0x4a2,_0x56219a._0x49fbfd,0x4b0)+_0xf9947f[_0x321ec4(_0x56219a._0x3723be,_0x56219a._0x32f214,0x6e9,0x642)](_0x1ad357)+'.'+Date[_0x321ec4(_0x56219a._0x2b4a8d,_0x56219a._0x58e48a,0x62d,_0x56219a._0x356c44)]()+'.'+Math[_0x40f5ad(0x488,0x43d,_0x56219a._0x30b756,0x448)]()['toString'](0x24)['slice'](0x2));function _0x40f5ad(_0x473c05,_0x4113f8,_0x58ca6c,_0x5692dc){return _0x34fd29(_0x5692dc,_0x4113f8-_0x5d64fc._0xd8b5e0,_0x58ca6c-0x5c,_0x58ca6c- -_0x5d64fc._0x3beb34);}await _0x95bb56(_0x1cfde2,_0x4579d6);function _0x321ec4(_0x5d38f9,_0x26fb5d,_0x4e70e4,_0x5a59a1){return _0x34fd29(_0x5d38f9,_0x26fb5d-_0x5a1a0d._0x28bd38,_0x4e70e4-0xa7,_0x5a59a1- -_0x5a1a0d._0x7b107);}await _0x165f67(_0x1cfde2,_0x1ad357);}function createFileNewTool(_0x3474e3={}){const _0x1c60a6={_0x432f6c:0x21a,_0x28c5d5:0x31b,_0x193028:0x1d9,_0x5ba576:0x183,_0x415d8e:0x29d,_0x5d3fe2:0x103,_0x1ae884:0x222,_0x2e88db:0x2bb,_0x4e1f9c:0x17a,_0x4f650b:0x2a1,_0x26f08d:0x1d7,_0x2f80da:0xf5,_0x56e96e:0x218,_0x42ace2:0x2fc,_0x417e81:0x5f,_0x4fb948:0xf2},_0x259ebf={_0x4cafb6:0x22c,_0x42187e:0x27b,_0x56fc0c:0x152,_0x1c87e1:0x81,_0x232be5:0xab,_0x47466b:0xb2,_0x36cc65:0x1c1,_0x4e5c19:0xf8,_0x35b68f:0x92,_0x9daff:0x124,_0x136b91:0x1c0,_0x9369c1:0xf6,_0x53ae83:0x1c8,_0x2d9584:0x81,_0x2501f7:0x197,_0x2d3059:0x1dc,_0x253827:0x13e,_0x18743a:0x4ca,_0x1a8996:0x5bd,_0x3c8ace:0x473,_0x5317b4:0x4ab,_0x547ac7:0x593,_0x1a8b36:0x69c,_0x3f4563:0x50f},_0xd251c4={_0x1dba5e:0x7a},_0x372fc4={_0x80ee5c:0x55,_0x281ea7:0x41d};function _0x4d4415(_0x3fcd0a,_0x39ae8c,_0x4785b1,_0x8247f1){return _0x34fd29(_0x8247f1,_0x39ae8c-0xd2,_0x4785b1-_0x372fc4._0x80ee5c,_0x4785b1- -_0x372fc4._0x281ea7);}const _0x3f51ca=_0xf9947f['resolve'](_0x3474e3[_0x4d4415(0x31f,_0x1c60a6._0x432f6c,0x2a9,_0x1c60a6._0x28c5d5)]??process[_0x493ab2(-_0x1c60a6._0x193028,-0x202,-0x1c2,-0x31f)]());function _0x493ab2(_0x475b61,_0x4c8da2,_0xd16486,_0x2e536d){return _0x2803df(_0x475b61- -_0xd251c4._0x1dba5e,_0xd16486,_0xd16486-0x1e3,_0x2e536d-0x1a2);}const _0xd58198=(_0x3474e3['allowedDirs']??[])[_0x4d4415(_0x1c60a6._0x5ba576,_0x1c60a6._0x415d8e,0x15a,0x105)](_0x18c9e7=>_0xf9947f[_0x493ab2(-0x91,0x53,0x85,-0x1a0)](_0x18c9e7)),_0x1bef60=_0x3474e3['name']??_0x4d4415(_0x1c60a6._0x5d3fe2,_0x1c60a6._0x1ae884,0xfc,0xca);return defineTool({'name':_0x1bef60,'description':_0x4d4415(0x160,0x17e,0x21b,_0x1c60a6._0x2e88db),'inputSchema':{'type':_0x493ab2(-_0x1c60a6._0x4e1f9c,-_0x1c60a6._0x4f650b,-_0x1c60a6._0x26f08d,-_0x1c60a6._0x2f80da),'properties':{'filePath':{'type':_0x4d4415(0x2ef,_0x1c60a6._0x56e96e,0x25a,_0x1c60a6._0x42ace2)},'content':{'type':_0x493ab2(-0x8b,-0x68,_0x1c60a6._0x417e81,-_0x1c60a6._0x4fb948)}},'required':['filePath',_0x493ab2(-0x11f,-0x7c,-0x4e,-0x4c)]},async *'execute'(_0x58845d){const _0x13d9e7={_0x5c1d86:0x92,_0x37095b:0x343},_0x43cd78={_0x3deef4:0x42,_0x49e28a:0x304},_0x4628a6=resolveAllowedPath(_0x3f51ca,_0xd58198,_0x58845d['filePath']),_0x9d29f3=await _0xa83d82(_0x4628a6)[_0x316508(-_0x259ebf._0x4cafb6,-0xf9,-_0x259ebf._0x42187e,-_0x259ebf._0x56fc0c)](()=>!![])['catch'](()=>![]),_0x15be4f=Buffer[_0x316508(-_0x259ebf._0x1c87e1,-_0x259ebf._0x232be5,-_0x259ebf._0x47466b,-0x1c4)](_0x58845d['content'],_0x316508(-0xaa,-0x143,-0x27c,-_0x259ebf._0x36cc65));function _0x316508(_0x4297d8,_0x410a27,_0x24f2c6,_0x19e921){return _0x4d4415(_0x4297d8-0xbf,_0x410a27-_0x43cd78._0x3deef4,_0x19e921- -_0x43cd78._0x49e28a,_0x4297d8);}function _0x4cf759(_0x1941c5,_0x221851,_0x4bf914,_0xd44784){return _0x4d4415(_0x1941c5-0x1ac,_0x221851-_0x13d9e7._0x5c1d86,_0x1941c5-_0x13d9e7._0x37095b,_0x4bf914);}return await atomicWrite2(_0x4628a6,_0x15be4f),yield createToolOutput(_0x316508(-_0x259ebf._0x4e5c19,-_0x259ebf._0x35b68f,-_0x259ebf._0x9daff,-0xc1)+_0x58845d[_0x316508(-_0x259ebf._0x136b91,-0x265,-0x261,-0x1c8)]+'.',{'filePath':_0x58845d[_0x316508(-0x9e,-0x1d4,-_0x259ebf._0x9369c1,-_0x259ebf._0x53ae83)],'resolvedPath':_0x4628a6,'bytes':_0x15be4f[_0x316508(-_0x259ebf._0x2d9584,-_0x259ebf._0x2501f7,-0x7,-0xb4)],'lines':_0x58845d[_0x316508(-_0x259ebf._0x2d3059,-0x190,-0x1d5,-_0x259ebf._0x253827)][_0x4cf759(_0x259ebf._0x18743a,_0x259ebf._0x1a8996,_0x259ebf._0x3c8ace,_0x259ebf._0x5317b4)](/\r?\n/)[_0x4cf759(_0x259ebf._0x547ac7,_0x259ebf._0x1a8b36,0x4b5,0x44d)],'created':new Date()[_0x4cf759(0x58e,0x5c6,_0x259ebf._0x3f4563,0x584)](),'overwritten':_0x9d29f3}),void 0x0;}});}import{readFile as _0x225014,stat as _0x5727bb}from'fs/promises';import*as _0x5a6856 from'path';function stripUtfBom(_0xc97ca9){const _0x53cb40={_0x1d795a:0x116,_0x4a9416:0x6e,_0xb89843:0xb2},_0x41a428={_0x48cfaf:0x155,_0xb08cc4:0x680},_0x46d6ca={_0x1910d0:0x4e9};function _0x55127c(_0x330929,_0x1620c3,_0x2e5261,_0x66778e){return _0x34fd29(_0x66778e,_0x1620c3-0x119,_0x2e5261-0x92,_0x330929- -_0x46d6ca._0x1910d0);}function _0x4b7842(_0x2ddfa1,_0x461c9c,_0x5b73ee,_0x2f4a9a){return _0x34fd29(_0x2f4a9a,_0x461c9c-0x144,_0x5b73ee-_0x41a428._0x48cfaf,_0x5b73ee- -_0x41a428._0xb08cc4);}return _0xc97ca9[_0x4b7842(-0xb,_0x53cb40._0x1d795a,0x67,_0x53cb40._0x4a9416)](0x0)===0xfeff?_0xc97ca9[_0x4b7842(-0x30,-0x1cb,-_0x53cb40._0xb89843,-0x65)](0x1):_0xc97ca9;}function clampLine(_0x2dad3a,_0x25ff3a){const _0x31de3a={_0xfc72c6:0x1d0,_0x3699fd:0x269,_0xb5d292:0x6da,_0x3673a5:0x635,_0x2047ae:0x597,_0x10c022:0x5af,_0x19b295:0x12e,_0x5498bc:0x1ca,_0x3b04d6:0xe3,_0x2ffe94:0x37e,_0x3d7dfb:0x3fc},_0x117b9f={_0x1c4e66:0x13a,_0x331a14:0x1ef,_0x87bffb:0x133};function _0x445d02(_0x53f4a2,_0x3f2766,_0x4dc6b9,_0x44efe2){return _0x34fd29(_0x44efe2,_0x3f2766-0x95,_0x4dc6b9-0x1a2,_0x4dc6b9- -0x350);}function _0x305e31(_0x1c8be7,_0x274f20,_0xd1bc51,_0x65afc7){return _0x34fd29(_0x274f20,_0x274f20-_0x117b9f._0x1c4e66,_0xd1bc51-_0x117b9f._0x331a14,_0xd1bc51- -_0x117b9f._0x87bffb);}if(!Number[_0x445d02(_0x31de3a._0xfc72c6,0x2c4,_0x31de3a._0x3699fd,0x300)](_0x2dad3a))return 0x1;return Math[_0x305e31(_0x31de3a._0xb5d292,_0x31de3a._0x3673a5,_0x31de3a._0x2047ae,_0x31de3a._0x10c022)](0x1,Math[_0x445d02(_0x31de3a._0x19b295,0x245,_0x31de3a._0x5498bc,_0x31de3a._0x3b04d6)](Math[_0x445d02(0x43a,_0x31de3a._0x2ffe94,0x3cb,_0x31de3a._0x3d7dfb)](_0x2dad3a),_0x25ff3a));}function createFileReadTool(_0x1489e1={}){const _0x284068={_0x235229:0x116,_0x2fe324:0x135,_0x25d113:0x55,_0x41bf6b:0xe9,_0x26321b:0xa8,_0x2c853c:0xd,_0x174afc:0x13f,_0x522fcd:0x259,_0x4ab5ec:0x15c,_0x4d6b8a:0x45,_0x4f8cf5:0x25,_0x4a2ff2:0x38,_0x1b7a04:0x6f,_0x13f154:0x24,_0x25aba2:0x196,_0x2e8793:0x62},_0x2ff1f5={_0x4e4d82:0x2a,_0x30d71f:0x35f,_0x368512:0x36a,_0x33d3f1:0x3e4,_0x48dc25:0x5e,_0x5f4991:0x15e,_0x50b606:0x4b8,_0x213616:0x515,_0x22d886:0x548,_0x2e0a21:0x3e9,_0x3da171:0x405,_0x55d1ec:0x91,_0x18cc14:0xfc,_0x19a5db:0x3ef,_0x29680f:0x3ed,_0x16cde6:0x3c4,_0xc96d68:0x23f,_0x326cbc:0x431,_0x2a945b:0x2e6,_0x407505:0x33a,_0x3f2aaf:0x262,_0x8d6105:0x14b,_0x36bb8d:0x266,_0x94d7a7:0x1ac,_0x109b27:0x22,_0x266faf:0x678,_0x41bdf2:0x515,_0x4f754f:0x590,_0x52bc87:0x4c9,_0x10b84c:0x2bf,_0x260518:0x37c,_0x47855c:0x345,_0x583c35:0x26b,_0xc77fd4:0x32d,_0x1480bb:0x21c,_0x54819a:0xcb,_0xfb53b:0x1cb,_0x28c05a:0x314,_0x5252dc:0x5f,_0x4eb917:0x2d3,_0x47089d:0x34b},_0x548d0e={_0x1374d2:0x4a0,_0x53ac04:0x193,_0x135009:0x3c},_0x4ce97d={_0x464157:0x185},_0x38d1d9={_0x327c88:0xc4,_0x340bbb:0x63f};function _0x5c1e5e(_0x305ebf,_0x50a2ad,_0x27660d,_0xa99360){return _0x34fd29(_0x27660d,_0x50a2ad-_0x38d1d9._0x327c88,_0x27660d-0x80,_0x305ebf- -_0x38d1d9._0x340bbb);}const _0x2a69b4=_0x5a6856['resolve'](_0x1489e1['defaultCwd']??process[_0x5c1e5e(-_0x284068._0x235229,0x1e,-0x12d,-_0x284068._0x2fe324)]()),_0x33973c=(_0x1489e1[_0x1e6957(-_0x284068._0x25d113,0x11d,0x3b,-0x23)]??[])[_0x1e6957(_0x284068._0x41bf6b,_0x284068._0x26321b,_0x284068._0x2c853c,0x25)](_0x2d37a7=>_0x5a6856['resolve'](_0x2d37a7)),_0x33c452=_0x1489e1[_0x5c1e5e(0x13,-0xd5,-0x29,0xb3)]??_0x5c1e5e(-0x14a,-_0x284068._0x174afc,-0x25e,-_0x284068._0x522fcd);function _0x1e6957(_0x119e85,_0x286dbd,_0x459bbe,_0x4d3b7b){return _0x34fd29(_0x119e85,_0x286dbd-_0x4ce97d._0x464157,_0x459bbe-0xb4,_0x4d3b7b- -0x552);}return defineTool({'name':_0x33c452,'description':_0x5c1e5e(-0x85,-_0x284068._0x4ab5ec,_0x284068._0x4d6b8a,-_0x284068._0x4f8cf5),'inputSchema':{'type':'object','properties':{'path':{'type':_0x5c1e5e(_0x284068._0x4a2ff2,0x14d,0x3c,-0xc1)},'lineStart':{'type':_0x5c1e5e(-_0x284068._0x1b7a04,-0x86,-0x86,_0x284068._0x13f154)},'lineEnd':{'type':'number'}},'required':[_0x1e6957(-_0x284068._0x25aba2,_0x284068._0x2e8793,-0x48,-0x54)]},async *'execute'(_0x5a30ee){const _0x5c6dbc=resolveAllowedPath(_0x2a69b4,_0x33973c,_0x5a30ee[_0x2085cd(_0x2ff1f5._0x4e4d82,0x179,0x3f,0xfc)]);await assertWorkspaceFile(_0x5c6dbc);const _0x30f8f6=await _0x5727bb(_0x5c6dbc),_0x24d15e=await _0x225014(_0x5c6dbc);if(isProbablyBinary(_0x24d15e))throw new ToolExecutionError(_0x2620f8(0x3c1,0x50e,0x422,0x383)+_0x5a30ee['path'],{'path':_0x5a30ee[_0x2620f8(0x2af,0x327,_0x2ff1f5._0x30d71f,0x391)]});let _0x57baba=_0x24d15e[_0x2620f8(0x367,_0x2ff1f5._0x368512,0x4a5,_0x2ff1f5._0x33d3f1)](_0x2085cd(_0x2ff1f5._0x48dc25,0x67,0x40,_0x2ff1f5._0x5f4991));const _0x43728f=_0x57baba[_0x2620f8(_0x2ff1f5._0x50b606,_0x2ff1f5._0x213616,_0x2ff1f5._0x22d886,0x5c2)](0x0)===0xfeff;_0x57baba=stripUtfBom(_0x57baba);const _0x3c1a57=_0x57baba[_0x2620f8(_0x2ff1f5._0x2e0a21,0x50f,_0x2ff1f5._0x3da171,0x3e1)](/\r?\n/);function _0x2620f8(_0x2ed73c,_0xccca61,_0x58bea4,_0x8229f0){return _0x5c1e5e(_0x58bea4-_0x548d0e._0x1374d2,_0xccca61-_0x548d0e._0x53ac04,_0xccca61,_0x8229f0-_0x548d0e._0x135009);}const _0x216fac={'path':_0x5a30ee[_0x2085cd(_0x2ff1f5._0x55d1ec,-0x32,0x22d,_0x2ff1f5._0x18cc14)],'resolvedPath':_0x5c6dbc,'created':_0x30f8f6[_0x2620f8(0x311,_0x2ff1f5._0x19a5db,0x434,0x48a)][_0x2620f8(_0x2ff1f5._0x29680f,0x464,0x4c9,_0x2ff1f5._0x16cde6)](),'modified':_0x30f8f6[_0x2085cd(_0x2ff1f5._0xc96d68,_0x2ff1f5._0x326cbc,_0x2ff1f5._0x2a945b,_0x2ff1f5._0x407505)][_0x2085cd(_0x2ff1f5._0x3f2aaf,0x2b8,_0x2ff1f5._0x8d6105,_0x2ff1f5._0x36bb8d)](),'size':_0x30f8f6['size'],'encoding':_0x2085cd(0x291,_0x2ff1f5._0x94d7a7,_0x2ff1f5._0x109b27,0x15e),'bomStripped':_0x43728f,'truncated':![],'totalLines':_0x3c1a57['length']};if(_0x5a30ee[_0x2620f8(_0x2ff1f5._0x266faf,0x478,0x585,0x6a3)]!==void 0x0||_0x5a30ee[_0x2620f8(_0x2ff1f5._0x41bdf2,0x530,_0x2ff1f5._0x4f754f,_0x2ff1f5._0x52bc87)]!==void 0x0){const _0x334ea2=clampLine(_0x5a30ee['lineStart']??0x1,_0x3c1a57[_0x2085cd(_0x2ff1f5._0x10b84c,_0x2ff1f5._0x260518,_0x2ff1f5._0x47855c,_0x2ff1f5._0x583c35)]),_0x3e1c39=clampLine(_0x5a30ee[_0x2085cd(0x33c,0x247,0x39b,_0x2ff1f5._0xc77fd4)]??_0x3c1a57['length'],_0x3c1a57['length']),_0x2b5f72=Math[_0x2085cd(0x240,_0x2ff1f5._0x1480bb,_0x2ff1f5._0x54819a,0x118)](_0x334ea2,_0x3e1c39),_0x2c755e=Math[_0x2085cd(_0x2ff1f5._0xfb53b,0x221,0x371,0x2c8)](_0x334ea2,_0x3e1c39),_0x1cb619=_0x3c1a57[_0x2085cd(0x1d2,0x30a,_0x2ff1f5._0x28c05a,0x1cc)](_0x2b5f72-0x1,_0x2c755e)[_0x2085cd(_0x2ff1f5._0x5252dc,0x51,0x7f,0x175)]((_0x5d1655,_0x5c584c)=>_0x2b5f72+_0x5c584c+'|'+_0x5d1655)[_0x2085cd(0x363,0x194,0x208,_0x2ff1f5._0x4eb917)]('\x0a');return yield createToolOutput(_0x1cb619,{..._0x216fac,'lineRange':{'lineStart':_0x2b5f72,'lineEnd':_0x2c755e,'linesTotal':_0x3c1a57[_0x2085cd(0x1b8,_0x2ff1f5._0x47089d,0x1f4,0x26b)]}}),void 0x0;}function _0x2085cd(_0xea5de3,_0xd7f132,_0x594722,_0x1152ed){return _0x1e6957(_0xd7f132,_0xd7f132-0xb8,_0x594722-0x45,_0x1152ed-0x150);}return yield createToolOutput(_0x57baba,_0x216fac),void 0x0;}});}import{stat as _0x26f93d}from'fs/promises';import*as _0x539c8f from'path';import{execSync,spawn as _0x543b89}from'child_process';import{existsSync}from'fs';import{stat as _0x51351e}from'fs/promises';import*as _0x2b33d0 from'os';function _0x20ac(_0x19ad4d,_0x31152c){_0x19ad4d=_0x19ad4d-0x1b8;const _0x8b5ea3=_0x8b5e();let _0x20ac92=_0x8b5ea3[_0x19ad4d];if(_0x20ac['VWRBml']===undefined){var _0xe91d2f=function(_0x43278a){const _0xaba78f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x51bc1c='',_0x4f46e5='';for(let _0x470b2d=0x0,_0x1cd249,_0x2cf92c,_0x436177=0x0;_0x2cf92c=_0x43278a['charAt'](_0x436177++);~_0x2cf92c&&(_0x1cd249=_0x470b2d%0x4?_0x1cd249*0x40+_0x2cf92c:_0x2cf92c,_0x470b2d++%0x4)?_0x51bc1c+=String['fromCharCode'](0xff&_0x1cd249>>(-0x2*_0x470b2d&0x6)):0x0){_0x2cf92c=_0xaba78f['indexOf'](_0x2cf92c);}for(let _0x1a904d=0x0,_0x460588=_0x51bc1c['length'];_0x1a904d<_0x460588;_0x1a904d++){_0x4f46e5+='%'+('00'+_0x51bc1c['charCodeAt'](_0x1a904d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4f46e5);};_0x20ac['TGtQiI']=_0xe91d2f,_0x20ac['vxjBGl']={},_0x20ac['VWRBml']=!![];}const _0x203c69=_0x8b5ea3[0x0],_0x20c7b3=_0x19ad4d+_0x203c69,_0x80722a=_0x20ac['vxjBGl'][_0x20c7b3];return!_0x80722a?(_0x20ac92=_0x20ac['TGtQiI'](_0x20ac92),_0x20ac['vxjBGl'][_0x20c7b3]=_0x20ac92):_0x20ac92=_0x80722a,_0x20ac92;}import*as _0xa73127 from'path';import{rgPath as _0x3b0566}from'@vscode/ripgrep';function _0x34fd29(_0x2a6616,_0x52b07b,_0x438e1c,_0xba4906){const _0x27863a={_0x4f2edc:0x33c};return _0x20ac(_0xba4906-_0x27863a._0x4f2edc,_0x2a6616);}var cachedRgPath=null;function findSystemRipgrep(){const _0x88cc19={_0x513e32:0x24d,_0x2ab075:0x455,_0xa51356:0x30a,_0x35aea7:0x2e9,_0x1d071d:0x29c,_0x56c762:0x5ee,_0x2fcc89:0x5f6,_0x20e8d4:0x545,_0x5262f1:0x435,_0x3c9451:0x337,_0x4b6345:0x66e,_0x400cc2:0x4b1,_0x511d38:0x431,_0x43073b:0x4da,_0x1f61d6:0x534,_0x41c034:0x50f,_0x575d20:0x638,_0x2243da:0x572,_0x3dfc5d:0x576,_0x2cc2ad:0x5b0,_0x53da78:0x5e6,_0x259c96:0x5d5,_0xd1c21d:0x676,_0x57354a:0x36b,_0x4b349b:0x3bf,_0x5347e1:0x333,_0x4b827:0x2bb,_0x35691b:0x3ee,_0x3dfc0b:0x53d,_0x3f28ae:0x4c7,_0x26077b:0x574,_0x4f83d9:0x606,_0x3cb025:0x5eb,_0x397911:0x6fa,_0x35bea6:0x4a7,_0x48bc30:0x4c5,_0x2ef549:0x380,_0x180668:0x30f,_0xe9b48e:0x669,_0xf07e8b:0x4ac,_0xde0d7:0x461,_0x275fd6:0x691,_0xfd2989:0x65f,_0x174667:0x4de},_0x447452={_0x920047:0xdc,_0x21bc41:0x170},_0x15f8eb={_0x152908:0x2e,_0x123ce1:0xe4},_0x905ad4=_0x2b33d0[_0x471e3c(_0x88cc19._0x513e32,0x21c,0x33a,_0x88cc19._0x2ab075)]()===_0x471e3c(_0x88cc19._0xa51356,_0x88cc19._0x35aea7,_0x88cc19._0x1d071d,0x2f3),_0x2bc570=_0x905ad4?[_0xa73127[_0x4c3efa(_0x88cc19._0x56c762,0x4fd,0x552,_0x88cc19._0x2fcc89)](process[_0x4c3efa(0x67e,_0x88cc19._0x20e8d4,0x670,0x746)][_0x471e3c(0x26f,0x29c,0x3a7,0x2cb)]||'',_0x471e3c(_0x88cc19._0x5262f1,_0x88cc19._0x3c9451,0x465,0x3a0),_0x4c3efa(0x547,0x5ac,_0x88cc19._0x4b6345,_0x88cc19._0x400cc2),'Packages'),_0xa73127[_0x471e3c(0x4cf,0x555,_0x88cc19._0x511d38,_0x88cc19._0x43073b)](process['env'][_0x4c3efa(_0x88cc19._0x1f61d6,_0x88cc19._0x41c034,_0x88cc19._0x575d20,0x58c)]||'',_0x4c3efa(_0x88cc19._0x2243da,0x49c,_0x88cc19._0x3dfc5d,0x477),_0x4c3efa(0x4f0,0x5ee,_0x88cc19._0x2cc2ad,_0x88cc19._0x53da78)),_0xa73127[_0x4c3efa(_0x88cc19._0x56c762,_0x88cc19._0x259c96,_0x88cc19._0xd1c21d,0x4f1)](process['env']['ProgramFiles(x86)']||'','ripgrep',_0x471e3c(_0x88cc19._0x57354a,_0x88cc19._0x4b349b,_0x88cc19._0x5347e1,_0x88cc19._0x4b827))]:[_0x471e3c(_0x88cc19._0x35691b,0x350,0x429,_0x88cc19._0x3dfc0b),_0x4c3efa(_0x88cc19._0x3f28ae,_0x88cc19._0x26077b,0x5b4,_0x88cc19._0x4f83d9),_0x471e3c(0x451,0x462,0x463,0x4cb),_0x4c3efa(_0x88cc19._0x3cb025,_0x88cc19._0x397911,0x6db,_0x88cc19._0x35bea6)];function _0x471e3c(_0x4cc203,_0x2cc71d,_0x50b366,_0x312ad4){return _0x34fd29(_0x312ad4,_0x2cc71d-_0x15f8eb._0x152908,_0x50b366-_0x15f8eb._0x123ce1,_0x50b366- -0x2a4);}for(const _0x376f6f of _0x2bc570){if(existsSync(_0x376f6f))return _0x376f6f;}function _0x4c3efa(_0x3cd218,_0x53419b,_0x5c8c36,_0x4caf8d){return _0x2803df(_0x3cd218-0x5a1,_0x53419b,_0x5c8c36-_0x447452._0x920047,_0x4caf8d-_0x447452._0x21bc41);}try{const _0x45509f=_0x905ad4?'where\x20rg':_0x471e3c(_0x88cc19._0x48bc30,0x24f,_0x88cc19._0x2ef549,_0x88cc19._0x180668),_0x12fa69=execSync(_0x45509f,{'encoding':'utf8','stdio':[_0x4c3efa(_0x88cc19._0xe9b48e,0x546,0x623,0x54d),_0x471e3c(0x40b,0x5ad,_0x88cc19._0xf07e8b,_0x88cc19._0xde0d7),_0x4c3efa(_0x88cc19._0x275fd6,_0x88cc19._0xfd2989,0x707,0x76d)]})['trim']()[_0x4c3efa(0x4bd,0x4f1,_0x88cc19._0x174667,0x3cf)](/\r?\n/)[0x0];if(_0x12fa69&&existsSync(_0x12fa69))return _0x12fa69;}catch{return null;}return null;}async function filepath(){if(cachedRgPath)return cachedRgPath;if(_0x3b0566&&existsSync(_0x3b0566))return cachedRgPath=_0x3b0566,_0x3b0566;const _0x456c27=findSystemRipgrep();if(!_0x456c27)throw new Error('ripgrep\x20executable\x20not\x20found.\x20Install\x20rg\x20to\x20use\x20Glob\x20and\x20Grep\x20tools.');return cachedRgPath=_0x456c27,_0x456c27;}async function*files(_0x255bf3){const _0x5a96c2={_0xe7d837:0x53b,_0x3a1729:0x674,_0x5d6558:0x655,_0x32d984:0x552,_0x51037c:0x309,_0x432f55:0x25a,_0x3a03b3:0x297,_0x4aa1fa:0x61d,_0x5f2178:0x72a,_0x3ffceb:0x5ff,_0x139fb4:0x50b,_0x4f4ff9:0x5ec,_0xfb9372:0x6a1,_0xe83519:0x6f4,_0x1cde80:0x751,_0x229f3e:0x73d,_0x5be907:0x726,_0x1b079e:0x626,_0x3315e0:0x714,_0x28d3b5:0x56b,_0x4ee1be:0x1a2,_0x4f6455:0x73,_0x5a32ef:0x2a,_0x19e554:0x520,_0x33c200:0x572,_0x499b95:0x1ba,_0x496b48:0x2d1,_0x129f58:0x188,_0x2743b0:0x378,_0x37f958:0x640,_0x1438c0:0x64a,_0x4194fd:0x54d,_0xcbf74b:0x63b,_0xde8d7:0x612,_0x4bf637:0x582,_0xbf0f84:0x76a,_0x31cd52:0x4b,_0x3bc60a:0x53,_0xa60c08:0x24,_0xbf8814:0x2a6,_0x40b0e3:0x1b4,_0x19397e:0x2e8,_0x336c47:0x3cd,_0x1abdf2:0x4e1},_0x48760a={_0x3c5f42:0x11c},_0x37dba3={_0x557532:0x67f},_0x426251=await filepath(),_0x271b26=await _0x51351e(_0x255bf3['cwd'])[_0x30991a(_0x5a96c2._0xe7d837,_0x5a96c2._0x3a1729,_0x5a96c2._0x5d6558,_0x5a96c2._0x32d984)](()=>null);if(!_0x271b26?.[_0x1754e0(0x3ba,_0x5a96c2._0x51037c,0x2b8,_0x5a96c2._0x432f55)]())throw Object[_0x1754e0(_0x5a96c2._0x3a03b3,0x108,0x168,0x7b)](new Error(_0x30991a(_0x5a96c2._0x4aa1fa,_0x5a96c2._0x5f2178,_0x5a96c2._0x3ffceb,_0x5a96c2._0x139fb4)+_0x255bf3[_0x30991a(0x520,0x5f1,_0x5a96c2._0x4f4ff9,0x58b)]+'\x27'),{'code':_0x30991a(_0x5a96c2._0xfb9372,0x763,_0x5a96c2._0xe83519,_0x5a96c2._0x1cde80)});const _0xb35cfb=[_0x30991a(_0x5a96c2._0x229f3e,_0x5a96c2._0x5be907,0x7e1,0x7b7),'--follow','--hidden',_0x30991a(_0x5a96c2._0x1b079e,0x650,_0x5a96c2._0x3315e0,_0x5a96c2._0x28d3b5)];function _0x30991a(_0xe5c8a3,_0xeb7a8c,_0x226265,_0xf77570){return _0x2803df(_0xe5c8a3-_0x37dba3._0x557532,_0xeb7a8c,_0x226265-0x1c9,_0xf77570-0x111);}for(const _0x3a0ff1 of _0x255bf3['glob']??[]){_0xb35cfb[_0x1754e0(0x1a0,_0x5a96c2._0x4ee1be,_0x5a96c2._0x4f6455,0xeb)](_0x1754e0(0x9,_0x5a96c2._0x5a32ef,0xc0,0x151)+_0x3a0ff1);}const _0x365b03=_0x543b89(_0x426251,_0xb35cfb,{'cwd':_0x255bf3[_0x30991a(_0x5a96c2._0x19e554,0x561,0x508,_0x5a96c2._0x33c200)],'stdio':[_0x1754e0(0x287,_0x5a96c2._0x499b95,0x2bf,_0x5a96c2._0x496b48),'pipe',_0x1754e0(_0x5a96c2._0x129f58,0x332,0x297,_0x5a96c2._0x2743b0)]});function _0x1754e0(_0x469087,_0x5e8035,_0x379232,_0x3f2dd7){return _0x2803df(_0x379232-0x1cf,_0x5e8035,_0x379232-_0x48760a._0x3c5f42,_0x3f2dd7-0x10d);}let _0x1cda3='';for await(const _0x32a89b of _0x365b03[_0x30991a(_0x5a96c2._0x37f958,_0x5a96c2._0x1438c0,0x727,_0x5a96c2._0x4194fd)]??[]){_0x1cda3+=_0x32a89b[_0x30991a(_0x5a96c2._0xcbf74b,_0x5a96c2._0xde8d7,_0x5a96c2._0x4bf637,_0x5a96c2._0xbf0f84)]();const _0x4bcbc5=_0x1cda3['split'](/\r?\n/);_0x1cda3=_0x4bcbc5['pop']()??'';for(const _0x11fafc of _0x4bcbc5){if(_0x11fafc['length']>0x0)yield _0x11fafc;}}_0x1cda3[_0x1754e0(-_0x5a96c2._0x31cd52,-0x7a,_0x5a96c2._0x3bc60a,_0x5a96c2._0xa60c08)]()[_0x1754e0(_0x5a96c2._0xbf8814,0x29c,_0x5a96c2._0x40b0e3,_0x5a96c2._0x19397e)]>0x0&&(yield _0x1cda3[_0x30991a(0x503,_0x5a96c2._0x336c47,_0x5a96c2._0x1abdf2,0x5cb)]());}function parseMatchLine(_0x5afbf0,_0x3d8ef7){const _0xbacaf5={_0x3ccd52:0x452,_0x1cf67a:0x308,_0x510605:0x3c9,_0x1c82cb:0x5e7,_0xb0c3c0:0x5fe,_0x5cdebb:0x4cb,_0x15f400:0x5bb,_0x4ce89e:0x4ef,_0x99ee2d:0x6f9,_0x479e84:0x716,_0x4d4aae:0x6b0,_0x1519dc:0x62e,_0x59c3e2:0x723,_0x3c1732:0x582,_0x2203d3:0x37e,_0xc07287:0x314,_0xea5e33:0x487,_0x479e75:0x345},_0x4de662={_0x3ac54b:0x41},_0x1c1d8d={_0x11953d:0x60};if(!_0x5afbf0||_0x5afbf0==='--')return null;function _0x1d4f72(_0x17d937,_0x1acbea,_0x19b086,_0x28182e){return _0x2803df(_0x1acbea-0x429,_0x28182e,_0x19b086-0x18b,_0x28182e-_0x1c1d8d._0x11953d);}function _0x8b51b8(_0x209a11,_0x13f9a1,_0x528367,_0x1541bf){return _0x34fd29(_0x1541bf,_0x13f9a1-0x4a,_0x528367-0x13a,_0x13f9a1-_0x4de662._0x3ac54b);}const _0x2b093e=_0x5afbf0[_0x1d4f72(0x21d,0x345,_0xbacaf5._0x3ccd52,_0xbacaf5._0x1cf67a)]('|');if(_0x3d8ef7&&_0x2b093e[_0x1d4f72(_0xbacaf5._0x510605,0x40e,0x4da,0x3ca)]>=0x4&&Number[_0x8b51b8(_0xbacaf5._0x1c82cb,0x5fa,_0xbacaf5._0xb0c3c0,0x68f)](Number[_0x8b51b8(_0xbacaf5._0x5cdebb,0x5e9,_0xbacaf5._0x15f400,0x4da)](_0x2b093e[0x2]??'',0xa))){const _0x43043e=Number['parseInt'](_0x2b093e[0x1]??'',0xa);if(!Number['isFinite'](_0x43043e)||!_0x2b093e[0x0])return null;return{'filePath':_0x2b093e[0x0],'lineNum':_0x43043e,'lineText':_0x2b093e[_0x8b51b8(_0xbacaf5._0x4ce89e,0x60f,0x6e4,_0xbacaf5._0x99ee2d)](0x3)[_0x8b51b8(_0xbacaf5._0x479e84,_0xbacaf5._0x479e84,_0xbacaf5._0x4d4aae,0x806)]('|')};}if(_0x2b093e[_0x8b51b8(_0xbacaf5._0x1519dc,0x6ae,_0xbacaf5._0x59c3e2,_0xbacaf5._0x3c1732)]>=0x3){const _0x115281=Number['parseInt'](_0x2b093e[0x1]??'',0xa);if(!Number['isFinite'](_0x115281)||!_0x2b093e[0x0])return null;return{'filePath':_0x2b093e[0x0],'lineNum':_0x115281,'lineText':_0x2b093e[_0x1d4f72(_0xbacaf5._0x2203d3,0x36f,_0xbacaf5._0xc07287,0x26a)](0x2)[_0x1d4f72(_0xbacaf5._0xea5e33,0x476,_0xbacaf5._0x479e75,0x56b)]('|'),..._0x3d8ef7?{'isContext':!![]}:{}};}return null;}async function search(_0x283b9b){const _0x5a1dd4={_0x144032:0x276,_0x2ab729:0x41c,_0x1c7b74:0x2e3,_0x4c16fb:0x385,_0x44b77c:0x3b2,_0xbc0a52:0x269,_0x417f22:0x390,_0x1100c7:0x384,_0x3c470c:0x2b1,_0x16f993:0x324,_0x3b23ff:0x2f0,_0x332778:0x38e,_0x4a067c:0x67b,_0x2de041:0x53a,_0x48d871:0x5ac,_0x33ed5b:0x803,_0x39176e:0x417,_0x494631:0x22f,_0x556569:0x70d,_0x1492c5:0x60c,_0x2592c7:0x727,_0x173814:0x738,_0x37ceb7:0x6d3,_0x4f9eef:0x5d2,_0x90482a:0x7b0,_0x569e3a:0x270,_0x517ec9:0x6b1,_0x58bc79:0x696,_0x5288f0:0x6f8,_0x3590f1:0x3a9,_0x32956b:0x23a,_0xdb23fb:0x25b,_0x268085:0x299,_0x5203f7:0x2b7,_0x1e7b34:0x29c,_0x3efd65:0x4b8,_0x43c5df:0x5ff,_0x108e8c:0x6bd,_0x44cd17:0x2ab,_0x496c37:0x407,_0x5f4e4b:0x460,_0x1988d3:0x507,_0x51b4a8:0x30b,_0x5ddf1e:0x1d4,_0x7e1ac6:0x5a9,_0x2907cd:0x567},_0x571ae7={_0x5ac98e:0x518,_0x45d679:0x55d,_0x2258e7:0x50b,_0x389e2a:0x3fb,_0x737b01:0x3dc,_0x34d9e5:0x331,_0x5f3e16:0x233,_0x511270:0x618,_0x262fae:0x4b4,_0x44d829:0x380,_0x979110:0x4aa},_0x405e29={_0x11d3a3:0x2dd},_0x59f562={_0x3c8f01:0x92},_0x4ff058={_0x41be45:0x705,_0x19d55b:0x1e1},_0x58124d={_0x4cc55a:0x3f5,_0x13288c:0x15c},_0x45650d=await filepath();function _0x340c69(_0x25bb3b,_0x16f7dd,_0x480ba9,_0x277621){return _0x2803df(_0x277621-_0x58124d._0x4cc55a,_0x25bb3b,_0x480ba9-0x8e,_0x277621-_0x58124d._0x13288c);}if(_0x283b9b[_0x340c69(_0x5a1dd4._0x144032,_0x5a1dd4._0x2ab729,0x26e,0x3b2)]){const _0x27f071=await _0x51351e(_0x283b9b[_0x340c69(_0x5a1dd4._0x1c7b74,0x4ea,_0x5a1dd4._0x4c16fb,_0x5a1dd4._0x44b77c)])[_0x340c69(_0x5a1dd4._0xbc0a52,_0x5a1dd4._0x417f22,_0x5a1dd4._0x1100c7,_0x5a1dd4._0x3c470c)](()=>null);if(!_0x27f071?.['isFile']())throw Object[_0x340c69(_0x5a1dd4._0x16f993,0x4a3,_0x5a1dd4._0x3b23ff,_0x5a1dd4._0x332778)](new Error(_0xb464bb(_0x5a1dd4._0x4a067c,0x628,_0x5a1dd4._0x2de041,0x4f2)+_0x283b9b[_0xb464bb(0x66c,0x6c2,_0x5a1dd4._0x48d871,_0x5a1dd4._0x33ed5b)]+'\x27'),{'code':_0x340c69(0x4a1,0x528,0x315,_0x5a1dd4._0x39176e)});}else{const _0x52cee1=await _0x51351e(_0x283b9b[_0xb464bb(0x664,0x5a6,0x464,0x461)])[_0x340c69(_0x5a1dd4._0x494631,0x20a,0x36c,_0x5a1dd4._0x3c470c)](()=>null);if(!_0x52cee1?.[_0xb464bb(0x81b,0x7ee,0x760,0x834)]())throw Object['assign'](new Error(_0xb464bb(_0x5a1dd4._0x556569,0x6a3,0x6c5,0x6fc)+_0x283b9b['cwd']+'\x27'),{'code':_0xb464bb(_0x5a1dd4._0x1492c5,_0x5a1dd4._0x2592c7,_0x5a1dd4._0x173814,0x61c)});}const _0x275821=['-nH','--field-match-separator=|','--field-context-separator=|',_0xb464bb(0x63d,_0x5a1dd4._0x37ceb7,_0x5a1dd4._0x4f9eef,_0x5a1dd4._0x90482a),_0x283b9b[_0x340c69(0x32b,0x280,0x151,_0x5a1dd4._0x569e3a)]],_0x2ce781=typeof _0x283b9b['context']==='number'&&_0x283b9b[_0xb464bb(_0x5a1dd4._0x517ec9,_0x5a1dd4._0x58bc79,0x7d9,_0x5a1dd4._0x5288f0)]>0x0;_0x2ce781&&_0x275821[_0x340c69(_0x5a1dd4._0x3590f1,_0x5a1dd4._0x32956b,_0x5a1dd4._0xdb23fb,_0x5a1dd4._0x268085)]('-C',String(_0x283b9b[_0x340c69(_0x5a1dd4._0x5203f7,_0x5a1dd4._0x1e7b34,_0x5a1dd4._0x3efd65,0x386)]),'--column');function _0xb464bb(_0x189d9b,_0x43c5e3,_0x558d2f,_0x43a1b1){return _0x2803df(_0x43c5e3-_0x4ff058._0x41be45,_0x189d9b,_0x558d2f-_0x4ff058._0x19d55b,_0x43a1b1-0xf1);}return _0x283b9b[_0xb464bb(0x505,_0x5a1dd4._0x43c5df,_0x5a1dd4._0x108e8c,0x60c)]&&!_0x283b9b[_0x340c69(_0x5a1dd4._0x44cd17,0x492,_0x5a1dd4._0x496c37,0x3b2)]&&_0x275821[_0xb464bb(_0x5a1dd4._0x5f4e4b,0x5a9,_0x5a1dd4._0x1988d3,0x6bb)]('--glob',_0x283b9b[_0x340c69(0x380,_0x5a1dd4._0x51b4a8,_0x5a1dd4._0x5ddf1e,0x2ef)]),_0x275821[_0xb464bb(0x50f,_0x5a1dd4._0x7e1ac6,0x51c,0x4dc)](_0x283b9b[_0x340c69(0x36e,0x273,0x38f,0x3b2)]??_0x283b9b[_0xb464bb(_0x5a1dd4._0x2907cd,0x5a6,0x5d2,0x5c1)]),await new Promise((_0x126553,_0x5a10f6)=>{const _0x3df9a8={_0x302897:0x3f4,_0x920e92:0x513,_0x414b25:0x361,_0x2a5487:0x4c5,_0x2f0128:0x4f5,_0x2867c5:0x596,_0x1fdbd2:0x6ef,_0x3b0d22:0x53c,_0x4b0f23:0x5be},_0x326c85=_0x543b89(_0x45650d,_0x275821,{'cwd':_0x283b9b['cwd'],'stdio':[_0x9e2da4(_0x571ae7._0x5ac98e,_0x571ae7._0x45d679,_0x571ae7._0x2258e7,0x56f),'pipe','pipe']});let _0x1d1223='';function _0x358cbe(_0x2998c4,_0x2676d5,_0x5d01db,_0x468317){return _0x340c69(_0x468317,_0x2676d5-0xcd,_0x5d01db-0x44,_0x5d01db-_0x59f562._0x3c8f01);}let _0x114761='';_0x326c85[_0x358cbe(0x499,0x425,0x448,_0x571ae7._0x389e2a)]?.['on'](_0x9e2da4(_0x571ae7._0x737b01,0x341,_0x571ae7._0x34d9e5,0x30b),_0x1ade0c=>{_0x1d1223+=_0x1ade0c['toString']();}),_0x326c85[_0x9e2da4(0x335,_0x571ae7._0x5f3e16,0x3e3,0x3f2)]?.['on']('data',_0x2e793e=>{_0x114761+=_0x2e793e['toString']();});function _0x9e2da4(_0x579366,_0x4f13cd,_0x22a480,_0x2bfac2){return _0xb464bb(_0x22a480,_0x579366- -_0x405e29._0x11d3a3,_0x22a480-0x153,_0x2bfac2-0x18d);}_0x326c85['on'](_0x9e2da4(0x4fa,_0x571ae7._0x511270,_0x571ae7._0x262fae,0x409),_0x1dee9d=>{const _0x4f6a7e={_0x4e14ec:0x15f,_0x81993a:0x1e4};if(_0x1dee9d===0x1&&_0x1d1223===''){_0x126553([]);return;}if(_0x1dee9d!==0x0&&_0x1dee9d!==0x1){_0x5a10f6(new Error(_0x4cbd0b(_0x3df9a8._0x302897,0x374,0x401,_0x3df9a8._0x920e92)+_0x114761));return;}function _0x1a8b5d(_0x5d0d26,_0x400656,_0x310253,_0x19526b){return _0x9e2da4(_0x310253-0x1b1,_0x400656-_0x4f6a7e._0x4e14ec,_0x19526b,_0x19526b-_0x4f6a7e._0x81993a);}const _0x107c62=_0x283b9b[_0x4cbd0b(0x36c,0x3b1,_0x3df9a8._0x414b25,0x28a)]??0x64,_0x325115=[];for(const _0x4cf582 of _0x1d1223[_0x1a8b5d(0x4d7,_0x3df9a8._0x2a5487,_0x3df9a8._0x2f0128,_0x3df9a8._0x2867c5)](/\r?\n/)){if(_0x325115[_0x1a8b5d(_0x3df9a8._0x1fdbd2,_0x3df9a8._0x3b0d22,_0x3df9a8._0x4b0f23,0x647)]>=_0x107c62)break;const _0x403ab7=parseMatchLine(_0x4cf582,_0x2ce781);if(_0x403ab7)_0x325115['push'](_0x403ab7);}function _0x4cbd0b(_0x137945,_0x33b4a5,_0x1e65ab,_0x19a9d9){return _0x358cbe(_0x137945-0x1a,_0x33b4a5-0x1a4,_0x137945- -0x12b,_0x33b4a5);}_0x126553(_0x325115);}),_0x326c85['on'](_0x358cbe(0x3bd,0x39c,_0x571ae7._0x44d829,_0x571ae7._0x979110),_0x5a10f6);});}function createGlobTool(_0x5865f0={}){const _0x2e419b={_0x343e68:0x59d,_0x3f8fb0:0x6be,_0xda4deb:0x70a,_0x57abd:0x57c,_0x504b49:0x46f,_0x397d41:0x62a,_0x184192:0x5c4,_0x57a719:0x643,_0x2f33e6:0xb8,_0x1aa108:0x10d,_0xaaaaf7:0x179,_0x515824:0xbd,_0x325237:0x78c,_0x745a07:0x62a,_0x212bd5:0x647,_0x1ca53f:0x532,_0x152615:0x61d,_0x1221e3:0x57e,_0x5dcdcf:0x5b1,_0x2f87c0:0x4bd},_0x1e1122={_0x508caa:0xc7,_0x2516d2:0x27,_0x294ca5:0x13e,_0x130dcb:0x153,_0x54a6c5:0xc9,_0x3f4264:0xf,_0x36e039:0x5d,_0x3b460b:0x4c,_0x47cf12:0x3f,_0x5f4cc6:0x92,_0x518ed4:0x70,_0x20e8fd:0x63,_0x24b7fb:0x4a,_0x83f6b9:0x6d,_0x3923b3:0x14b,_0x1dfb1f:0x137,_0x1459fa:0x4a,_0x243d32:0x2c3,_0x2128fb:0xc7,_0x1db094:0x3,_0x7141ad:0x102,_0x562354:0x11b,_0x2e92d5:0x11a,_0x8ed536:0x46,_0x4a5e02:0xcf,_0x189917:0xb,_0x810e00:0xd5,_0x23d1d3:0x1be,_0x348795:0x2c9,_0x4b710a:0xce,_0x45ba96:0xe1,_0x15be68:0x167,_0x571884:0x186,_0x4bdc03:0x4,_0x3404cc:0x121,_0xf6c1f2:0x5},_0x10518c={_0x8a6197:0x102},_0x34941a={_0x304431:0x10d};function _0x53a61c(_0x2e467c,_0x24bb18,_0x1d9e38,_0x148ac2){return _0x2803df(_0x2e467c-0xee,_0x1d9e38,_0x1d9e38-0xf9,_0x148ac2-_0x34941a._0x304431);}const _0x270c9e=_0x539c8f[_0x4aa56b(_0x2e419b._0x343e68,_0x2e419b._0x3f8fb0,0x6d5,_0x2e419b._0xda4deb)](_0x5865f0['defaultCwd']??process['cwd']());function _0x4aa56b(_0x5cdfb7,_0x3300f5,_0x508404,_0x96e0a9){return _0x34fd29(_0x5cdfb7,_0x3300f5-0xc9,_0x508404-_0x10518c._0x8a6197,_0x3300f5-0x4d);}const _0x44afa6=(_0x5865f0[_0x4aa56b(0x6a0,_0x2e419b._0x57abd,_0x2e419b._0x504b49,0x464)]??[])[_0x4aa56b(_0x2e419b._0x397d41,_0x2e419b._0x184192,0x6f3,0x4b4)](_0xcb0a1e=>_0x539c8f[_0x4aa56b(0x5c8,0x6be,0x5fe,0x5f0)](_0xcb0a1e)),_0x56b951=_0x5865f0[_0x4aa56b(0x6c0,0x6e5,_0x2e419b._0x57a719,0x6aa)]??0x64,_0x541a8a=_0x5865f0[_0x53a61c(_0x2e419b._0x2f33e6,-0x24,0x6f,-0x85)]??_0x53a61c(0x12a,_0x2e419b._0x1aa108,_0x2e419b._0xaaaaf7,0x1e6);return defineTool({'name':_0x541a8a,'description':_0x53a61c(0x160,_0x2e419b._0x515824,0x238,0xd7),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x4aa56b(_0x2e419b._0x325237,0x6c4,_0x2e419b._0x745a07,_0x2e419b._0x212bd5)},'path':{'type':'string'},'limit':{'type':_0x4aa56b(_0x2e419b._0x1ca53f,_0x2e419b._0x152615,0x648,_0x2e419b._0x1221e3)}},'required':[_0x4aa56b(_0x2e419b._0x5dcdcf,0x550,0x447,_0x2e419b._0x2f87c0)]},async *'execute'(_0xa52d40){const _0x26808a={_0x1c2d65:0x65,_0x30502c:0x1e0,_0x26fac0:0xb5};if(_0xa52d40['pattern'][_0x4da110(-0x236,-0x1b1,-0x13a,-0x38)]()[_0x4da110(-0x3d,_0x1e1122._0x508caa,_0x1e1122._0x2516d2,_0x1e1122._0x294ca5)]===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x34918a=resolveAllowedPath(_0x270c9e,_0x44afa6,_0xa52d40[_0xea77f0(-_0x1e1122._0x130dcb,0x47,-0x37,0x57)]??'.'),_0x5c43e8=await _0x26f93d(_0x34918a)[_0xea77f0(-0xa1,_0x1e1122._0x54a6c5,_0x1e1122._0x3f4264,_0x1e1122._0x36e039)](()=>null);if(!_0x5c43e8?.['isDirectory']())throw new ToolExecutionError(_0x4da110(_0x1e1122._0x3b460b,-_0x1e1122._0x47cf12,0xcc,0x197)+(_0xa52d40[_0xea77f0(0x1d,-_0x1e1122._0x5f4cc6,-0x37,-_0x1e1122._0x518ed4)]??'.'),{'path':_0xa52d40['path']??'.'});const _0x70c764=_0xa52d40['limit']??_0x56b951,_0x519f73=Math['max'](0x1,Math[_0x4da110(_0x1e1122._0x20e8fd,-_0x1e1122._0x24b7fb,0xd5,_0x1e1122._0x83f6b9)](_0x70c764)),_0x28bc0c=[];let _0x54ab7a=![];function _0x4da110(_0x589dc9,_0x353892,_0x32feeb,_0x393da9){return _0x53a61c(_0x32feeb- -0xac,_0x353892-0xd5,_0x353892,_0x393da9-0x28);}for await(const _0x546fca of files({'cwd':_0x34918a,'glob':[_0xa52d40[_0xea77f0(-_0x1e1122._0x3923b3,-_0x1e1122._0x1dfb1f,-0x32,_0x1e1122._0x1459fa)]]})){if(_0x28bc0c['length']>=_0x519f73){_0x54ab7a=!![];break;}const _0x4b6182=await _0x26f93d(_0x539c8f[_0xea77f0(0x144,_0x1e1122._0x243d32,0x1a0,_0x1e1122._0x2128fb)](_0x34918a,_0x546fca))[_0x4da110(-0x95,_0x1e1122._0x1db094,-_0x1e1122._0x7141ad,-_0x1e1122._0x562354)](()=>null);_0x28bc0c[_0x4da110(-0x116,-0xb4,-_0x1e1122._0x2e92d5,-0x1fa)]({'path':_0x546fca,'mtime':_0x4b6182?.[_0x4da110(-0xd2,-0xb4,-0x13f,-0x17e)]??0x0});}_0x28bc0c['sort']((_0x1f04c7,_0x17e2c8)=>_0x17e2c8[_0x4da110(0x15,0xaf,0xf6,0x1d3)]-_0x1f04c7['mtime']);function _0xea77f0(_0x36fbf6,_0x311f5e,_0x1798e3,_0xde0824){return _0x53a61c(_0x1798e3-_0x26808a._0x1c2d65,_0x311f5e-_0x26808a._0x30502c,_0x36fbf6,_0xde0824-_0x26808a._0x26fac0);}const _0x597891=_0x28bc0c[_0x4da110(_0x1e1122._0x8ed536,-0xca,-_0x1e1122._0x4a5e02,-0x1ac)](_0x2ac551=>_0x2ac551[_0xea77f0(-0x1e,0xef,-0x37,-0x78)]),_0xa4ac8f=_0x597891['length']===0x0?_0x4da110(_0x1e1122._0x189917,0x69,-0xc,_0x1e1122._0x810e00)+_0xa52d40['pattern']:''+_0x597891[_0xea77f0(_0x1e1122._0x23d1d3,_0x1e1122._0x348795,0x1a0,_0x1e1122._0x4b710a)]('\x0a')+(_0x54ab7a?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');return yield createToolOutput(_0xa4ac8f,{'pattern':_0xa52d40[_0xea77f0(0x8b,_0x1e1122._0x45ba96,-0x32,-0x30)],'searchPath':_0x539c8f[_0xea77f0(0xfe,_0x1e1122._0x15be68,0xd7,_0x1e1122._0x571884)](_0x270c9e,_0x34918a)||'.','matches':_0x597891,'count':_0x597891[_0x4da110(_0x1e1122._0x4bdc03,_0x1e1122._0x3404cc,_0x1e1122._0x2516d2,-_0x1e1122._0xf6c1f2)],'truncated':_0x54ab7a}),void 0x0;}});}import{stat as _0x6e30da}from'fs/promises';import*as _0x590982 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0xcc5a10={}){const _0xc3e605={_0x527f8a:0x692,_0x1f5737:0x6ca,_0x5c8e4c:0x602,_0x5f2f5c:0x4d7,_0x125e72:0x6a9,_0x11ccbc:0x7ec,_0x962748:0x6d9,_0xc8bc15:0x117,_0x5e1d18:0x4db,_0x3e0e66:0x635,_0x3f8eef:0x103,_0x2d5d24:0xa9,_0x1735b3:0x54,_0x7440be:0xd1,_0x410203:0x5e3,_0x3ae774:0x6b8,_0x5e1a15:0x62,_0x40d014:0x58c},_0x197c0b={_0x3b6392:0x194,_0x131023:0x138,_0x353a70:0x80,_0x1a0f61:0x60,_0x365003:0x48,_0x3e07f1:0x67,_0x459a33:0x27,_0x2b05ba:0x56,_0x48fc53:0x10f,_0x111494:0xa5,_0x46486b:0x1d3,_0x4df695:0x127,_0x186787:0x2,_0x5ed0f6:0x18,_0x6801dd:0x1ce,_0x2f9be0:0x1e4,_0x510ca0:0x4f,_0x567e3f:0x6c,_0xca7fe3:0x2c,_0x580534:0x1d2,_0x4d3690:0x1c9,_0x4640b7:0xe0,_0x45207a:0x280,_0x188a17:0xce,_0x3fe53a:0x108,_0x40303b:0x34,_0x5066e8:0x8e,_0x54ba47:0xec,_0x3d4992:0x14e,_0x455457:0xc2,_0x53a270:0x66,_0x2960ef:0x4,_0x1adda1:0xe7,_0x2af869:0x1dd,_0xdb6859:0x283,_0x37f249:0x147,_0x327e8d:0x33,_0x28fe93:0xb4,_0x29a597:0x6,_0x348012:0x1c9,_0xb5ea90:0x1f8,_0x4fce12:0x1a0,_0x2e25f3:0x1eb,_0x15ef92:0x8c,_0x4595e5:0x11,_0x415e8f:0x5f,_0x48e61b:0x18,_0x2fa256:0xbe,_0x530c7e:0xe1,_0xfff7c6:0x13,_0xe6b723:0x209,_0x30a349:0x5,_0x2b8dea:0x56,_0x37a24b:0x27,_0x6d2b15:0x1d0,_0x205f5d:0x148,_0x2f2ca1:0x8,_0x3ca1d8:0x1e,_0x4ea5aa:0x1ae,_0x4369d1:0xe1,_0x5cee00:0x200,_0x1b2aa2:0x5e,_0x4d3ea4:0x61,_0x5af1b7:0x15d,_0x2e5760:0x3a,_0x38ee97:0xb0,_0x267981:0x4e,_0x3d14c5:0x2c2,_0x3ac5f6:0x1c3,_0x1704b8:0x44,_0x484020:0x9c,_0x22c741:0xeb,_0x1241b1:0xcf,_0x4c4209:0x17b,_0x519dfb:0x2e4},_0x30a6f8={_0x20777d:0xed,_0x3b4f25:0x6a},_0x2f243e={_0x15e8fc:0x6c9,_0x4fe86b:0x137,_0x25bc0b:0xf2},_0x11981c={_0x6ef676:0xf,_0x3ba520:0x118},_0x2b6fcf=_0x590982[_0x4aa2ef(0x6ba,_0xc3e605._0x527f8a,_0xc3e605._0x1f5737,0x6b2)](_0xcc5a10['defaultCwd']??process['cwd']());function _0x52b2f8(_0x3d266e,_0x41e4af,_0x4f6d8a,_0x1c33a7){return _0x34fd29(_0x1c33a7,_0x41e4af-_0x11981c._0x6ef676,_0x4f6d8a-_0x11981c._0x3ba520,_0x3d266e- -0x5ce);}const _0x40732c=(_0xcc5a10[_0x4aa2ef(0x548,_0xc3e605._0x5c8e4c,_0xc3e605._0x5f2f5c,0x570)]??[])[_0x52b2f8(-0x57,-0xdf,0xaa,-0x14f)](_0x45e94d=>_0x590982['resolve'](_0x45e94d)),_0x299458=_0xcc5a10[_0x4aa2ef(_0xc3e605._0x125e72,0x597,_0xc3e605._0x11ccbc,_0xc3e605._0x962748)]??0x64;function _0x4aa2ef(_0x424f36,_0x6d0d4c,_0x4c6dba,_0x4a5656){return _0x2803df(_0x4a5656-_0x2f243e._0x15e8fc,_0x424f36,_0x4c6dba-_0x2f243e._0x4fe86b,_0x4a5656-_0x2f243e._0x25bc0b);}const _0x496ff9=_0xcc5a10[_0x52b2f8(0x84,_0xc3e605._0xc8bc15,-0x72,-0x7)]??'Grep';return defineTool({'name':_0x496ff9,'description':_0x4aa2ef(0x586,_0xc3e605._0x5e1d18,_0xc3e605._0x3e0e66,0x5ad),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x52b2f8(0xa9,0x30,0x1cf,_0xc3e605._0x3f8eef)},'path':{'type':_0x52b2f8(_0xc3e605._0x2d5d24,_0xc3e605._0x1735b3,0x86,_0xc3e605._0x7440be)},'include':{'type':_0x4aa2ef(0x66c,0x592,_0xc3e605._0x410203,_0xc3e605._0x3ae774)},'limit':{'type':_0x52b2f8(0x2,_0xc3e605._0x5e1a15,-0x110,0xc0)},'context':{'type':_0x4aa2ef(0x5d0,0x4d3,_0xc3e605._0x40d014,0x611)}},'required':['pattern']},async *'execute'(_0x17b0f4){const _0x4ac9f3={_0x2a2909:0xfe};function _0x36bf05(_0x10d724,_0x3ee270,_0x3c3449,_0x21348d){return _0x52b2f8(_0x3ee270- -_0x4ac9f3._0x2a2909,_0x3ee270-0xf2,_0x3c3449-0x7c,_0x3c3449);}if(_0x17b0f4[_0x585fac(-0x10b,-0x89,-0xc2,-_0x197c0b._0x3b6392)][_0x585fac(-_0x197c0b._0x131023,-_0x197c0b._0x353a70,-0x5a,-0x1a7)]()[_0x585fac(0xe9,0xe1,0x23,0x9f)]===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x55a974=resolveAllowedPath(_0x2b6fcf,_0x40732c,_0x17b0f4['path']??'.'),_0x4d576d=await _0x6e30da(_0x55a974)[_0x585fac(_0x197c0b._0x1a0f61,-_0x197c0b._0x365003,_0x197c0b._0x3e07f1,_0x197c0b._0x459a33)](()=>null),_0x3034a5=_0x4d576d?.[_0x36bf05(-_0x197c0b._0x2b05ba,-0x54,-_0x197c0b._0x48fc53,0x86)]()??![],_0x1d97ca=_0x4d576d?.[_0x36bf05(-0x4e,_0x197c0b._0x111494,_0x197c0b._0x46486b,0x1ea)]()??![];if(!_0x3034a5&&!_0x1d97ca)throw new ToolExecutionError(_0x585fac(0xec,_0x197c0b._0x4df695,_0x197c0b._0x186787,0xab)+(_0x17b0f4[_0x585fac(-_0x197c0b._0x5ed0f6,-0x8e,-0x19b,-0x2d)]??'.'),{'path':_0x17b0f4[_0x36bf05(-0x2d2,-_0x197c0b._0x6801dd,-_0x197c0b._0x2f9be0,-0x22a)]??'.'});const _0xa2dc7a=_0x17b0f4['limit']??_0x299458,_0x5a5d7=Math['max'](0x1,Math[_0x36bf05(-0x70,_0x197c0b._0x510ca0,0x5c,-0xf8)](_0xa2dc7a)),_0x21f4be=await search({'cwd':_0x1d97ca?_0x55a974:_0x590982[_0x36bf05(-_0x197c0b._0x567e3f,-0x138,-_0x197c0b._0xca7fe3,-_0x197c0b._0x580534)](_0x55a974),'pattern':_0x17b0f4[_0x36bf05(-0x1c1,-_0x197c0b._0x4d3690,-_0x197c0b._0x4640b7,-_0x197c0b._0x45207a)],'glob':_0x1d97ca?_0x17b0f4['include']:void 0x0,'limit':_0x5a5d7,'file':_0x3034a5?_0x55a974:void 0x0,'context':_0x17b0f4[_0x36bf05(-_0x197c0b._0x188a17,-0xb3,0x4f,-0x189)]}),_0x5ddeec=new Map();for(const _0x34e6fd of _0x21f4be){if(!_0x5ddeec[_0x585fac(-_0x197c0b._0x3fe53a,_0x197c0b._0x40303b,0x163,_0x197c0b._0x5066e8)](_0x34e6fd[_0x36bf05(-_0x197c0b._0x54ba47,-0x173,-_0x197c0b._0x3d4992,-_0x197c0b._0x455457)])){const _0x374f7f=await _0x6e30da(_0x34e6fd[_0x585fac(-_0x197c0b._0x53a270,-0x33,-_0x197c0b._0x353a70,-0xfe)])['catch'](()=>null);_0x5ddeec[_0x585fac(0xe3,0x8a,-_0x197c0b._0x2960ef,_0x197c0b._0x1adda1)](_0x34e6fd['filePath'],{'matches':[],'mtime':_0x374f7f?.[_0x36bf05(-_0x197c0b._0x2af869,-0x1c5,-_0x197c0b._0xdb6859,-_0x197c0b._0x37f249)]??0x0});}_0x5ddeec['get'](_0x34e6fd[_0x585fac(0x48,-_0x197c0b._0x327e8d,_0x197c0b._0x28fe93,-_0x197c0b._0x29a597)])?.[_0x585fac(0xb4,_0x197c0b._0x348012,0x86,_0x197c0b._0xb5ea90)][_0x36bf05(-0x25a,-_0x197c0b._0x4fce12,-0x7a,-_0x197c0b._0x2e25f3)](_0x34e6fd);}const _0x359f3d=[..._0x5ddeec['entries']()][_0x585fac(0x38,-_0x197c0b._0x15ef92,0x68,-0x181)]((_0x3faf87,_0x3717dc)=>_0x3717dc[0x1]['mtime']-_0x3faf87[0x1][_0x585fac(0x294,0x1b0,0x79,0x25b)]),_0x4f4e35=_0x21f4be[_0x585fac(0x141,0x51,-0x80,-0xe9)](_0x50bcf0=>!_0x50bcf0['isContext'])[_0x36bf05(-_0x197c0b._0x4595e5,-_0x197c0b._0x415e8f,-_0x197c0b._0x48e61b,-0x125)],_0x23ebd8=_0x21f4be[_0x585fac(_0x197c0b._0x2fa256,_0x197c0b._0x530c7e,0x13c,-_0x197c0b._0xfff7c6)]>=_0x5a5d7,_0x10dcdf=_0x3034a5?_0x590982['dirname'](_0x55a974):_0x55a974;function _0x585fac(_0x96b9b,_0x2e0e0d,_0x2b6890,_0x4afc92){return _0x4aa2ef(_0x96b9b,_0x2e0e0d-_0x30a6f8._0x20777d,_0x2b6890-_0x30a6f8._0x3b4f25,_0x2e0e0d- -0x5cd);}let _0x1dcaa1='';if(_0x21f4be['length']===0x0)_0x1dcaa1='No\x20matches\x20found\x20for\x20pattern:\x20'+_0x17b0f4[_0x36bf05(-_0x197c0b._0xe6b723,-0x1c9,-0x14c,-0x1da)];else{_0x1dcaa1=_0x36bf05(-_0x197c0b._0x30a349,-0xfa,-0x18b,-_0x197c0b._0x2b8dea)+_0x4f4e35+_0x36bf05(-_0x197c0b._0x37a24b,-0x28,-0x21,0x63)+(_0x4f4e35===0x1?'':'es')+'\x0a';for(const [_0x1212d2,_0x37ec63]of _0x359f3d){const _0x2f1ec0=_0x3034a5?_0x590982[_0x585fac(_0x197c0b._0x6d2b15,_0x197c0b._0x205f5d,0x1d,_0x197c0b._0x2f2ca1)](_0x1212d2):_0x590982['relative'](_0x10dcdf,_0x1212d2);_0x1dcaa1+='\x0a'+_0x2f1ec0+':\x0a';for(const _0x24a3f0 of _0x37ec63[_0x36bf05(0x13f,0x89,0x4,0x186)]){const _0x5eff8e=_0x24a3f0[_0x585fac(-0x7f,_0x197c0b._0x3ca1d8,0x2a,0xd4)][_0x585fac(_0x197c0b._0x4ea5aa,_0x197c0b._0x4369d1,_0x197c0b._0x5cee00,-0x2d)]>MAX_LINE_LENGTH?_0x24a3f0[_0x585fac(-0x8,_0x197c0b._0x3ca1d8,0xea,-0x5b)][_0x585fac(-_0x197c0b._0x459a33,0x42,-0x45,-0x87)](0x0,MAX_LINE_LENGTH)+_0x585fac(-_0x197c0b._0x1b2aa2,_0x197c0b._0x4d3ea4,_0x197c0b._0x5af1b7,_0x197c0b._0x2e5760):_0x24a3f0['lineText'],_0x1c48ae=_0x24a3f0[_0x585fac(-0x27,-0x86,_0x197c0b._0x38ee97,0xa)]?'\x20\x20':'>\x20';_0x1dcaa1+=_0x1c48ae+_0x585fac(_0x197c0b._0x267981,0xf8,_0x197c0b._0x2960ef,_0x197c0b._0x40303b)+_0x24a3f0[_0x36bf05(-_0x197c0b._0x3d14c5,-0x19e,-0xe3,-0xc4)]+':\x20'+_0x5eff8e+'\x0a';}}_0x23ebd8&&(_0x1dcaa1+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x2413c7={'searchPath':_0x590982['relative'](_0x2b6fcf,_0x55a974)||'.','pattern':_0x17b0f4['pattern'],'matchCount':_0x4f4e35,'fileCount':_0x5ddeec['size'],'truncated':_0x23ebd8};return _0x1d97ca&&_0x17b0f4['include']!==void 0x0&&(_0x2413c7[_0x585fac(0x20,-0x94,-_0x197c0b._0x3ac5f6,-_0x197c0b._0x1704b8)]=_0x17b0f4[_0x36bf05(-_0x197c0b._0x484020,-0x1d4,-_0x197c0b._0x22c741,-0x2a9)]),yield createToolOutput(_0x1dcaa1[_0x36bf05(-_0x197c0b._0x1241b1,-0x1c0,-_0x197c0b._0x4c4209,-_0x197c0b._0x519dfb)](),_0x2413c7),void 0x0;}});}import{readdir as _0x465b9a,readFile as _0x3ad38a,stat as _0x38d8f1}from'fs/promises';import*as _0x592dfc from'path';import*as _0x19ba40 from'yaml';async function countTextLines(_0x5ad148){const _0x119c74={_0x49118a:0x1c4,_0x579a5e:0x279,_0x39ceba:0xae,_0x4a08c3:0xc,_0x58c652:0x31,_0x1b8591:0x133,_0xa7b428:0xfa,_0x3be981:0x1d},_0x5d9302={_0x5ef221:0x92},_0xa2bfb4={_0x4e1ea6:0x114};function _0x2d4c21(_0xd62128,_0x409b57,_0x41d533,_0x3cb7ac){return _0x34fd29(_0xd62128,_0x409b57-_0xa2bfb4._0x4e1ea6,_0x41d533-0xbc,_0x3cb7ac- -0x2cb);}function _0x5ea64d(_0x4236e4,_0x53edeb,_0x52eda0,_0x2a9df4){return _0x34fd29(_0x53edeb,_0x53edeb-_0x5d9302._0x5ef221,_0x52eda0-0x1ba,_0x2a9df4- -0x650);}const _0x38556a=await _0x3ad38a(_0x5ad148)[_0x2d4c21(0x21d,0x31d,_0x119c74._0x49118a,_0x119c74._0x579a5e)](()=>null);if(!_0x38556a||isProbablyBinary(_0x38556a))return void 0x0;return _0x38556a[_0x5ea64d(-0x9f,_0x119c74._0x39ceba,-0x7d,-_0x119c74._0x4a08c3)]('utf8')[_0x5ea64d(0x9a,-0x14d,_0x119c74._0x58c652,-0xac)](/\r?\n/)[_0x5ea64d(_0x119c74._0x1b8591,-_0x119c74._0xa7b428,-0x2e,_0x119c74._0x3be981)];}function createLsTool(_0x1059c4={}){const _0x4ce025={_0x5d3720:0x6cd,_0x3d7f23:0x65d,_0x510b84:0x59d,_0x53e544:0x178,_0x1c5a8f:0x1d4,_0x250784:0x3ed,_0x499736:0x338,_0x1b9ef6:0x48c,_0x257794:0x455,_0x1a6a7e:0x530,_0x551a3e:0x55b,_0x18e8ae:0x467,_0x203fca:0x50a,_0x109e36:0x57e,_0x31870d:0x14,_0x1ef83e:0x155,_0x20bc65:0x28,_0x3fe74f:0xd6,_0x291748:0x96,_0xf3717f:0x2b,_0x913cbf:0xde},_0x1dea78={_0x3b092c:0x254,_0x45bf53:0x24f,_0x520215:0x23b,_0x181334:0x25b,_0x5324ae:0x24b,_0x817a9c:0x418,_0x348f32:0x2e0,_0x936e88:0x328,_0x22079c:0x1ab,_0x199436:0x1ef,_0x1df96a:0x26f,_0x5b6127:0x216,_0x70419:0x122,_0xb1cbde:0x279,_0x375fc8:0x18c,_0x2980d2:0x1fb,_0x30b417:0x129,_0x230983:0x139,_0x46e088:0x206,_0x18de04:0x11a,_0x1dcb78:0x234,_0x2b2099:0x17a,_0x3c6178:0x247,_0x571d50:0x14b,_0x9cf99d:0x27e,_0x2b2737:0x141,_0x16d993:0xf1,_0xe33a05:0xdd,_0x2b206c:0x182,_0x21379e:0x1dc,_0x4786c5:0x172,_0x1b8503:0x15b,_0x358662:0x418,_0x2f0b08:0x1c0,_0x5153c0:0x174,_0x47813c:0x4f,_0x3f8556:0x4c,_0x66829f:0x1b0,_0x1b395d:0x11e,_0x281ac4:0x1c,_0x51b0e9:0x270,_0x33a727:0x311,_0x354d92:0x134,_0x396a9a:0xa8,_0x2198e1:0x1d8,_0x2dd36b:0xfb},_0x11baee={_0x40cd1d:0x1b8,_0x3eea44:0x1b6,_0x2e87ee:0x2e4},_0x55f3ad={_0x2c4e06:0x135,_0x51fb9d:0xd4},_0x121055={_0x355cf7:0xb6,_0x4cb320:0x1f1},_0x4da691=_0x592dfc[_0x3833f8(_0x4ce025._0x5d3720,0x61d,_0x4ce025._0x3d7f23,_0x4ce025._0x510b84)](_0x1059c4[_0x39a294(0xeb,0x103,_0x4ce025._0x53e544,_0x4ce025._0x1c5a8f)]??process[_0x3833f8(_0x4ce025._0x250784,_0x4ce025._0x499736,_0x4ce025._0x1b9ef6,_0x4ce025._0x257794)]());function _0x39a294(_0x45f20a,_0x43e46d,_0x17e11f,_0x59b07c){return _0x34fd29(_0x17e11f,_0x43e46d-_0x121055._0x355cf7,_0x17e11f-_0x121055._0x4cb320,_0x59b07c- -0x4f2);}function _0x3833f8(_0x307477,_0x377a19,_0x2b4007,_0x577a0d){return _0x34fd29(_0x2b4007,_0x377a19-0x15a,_0x2b4007-_0x55f3ad._0x2c4e06,_0x577a0d- -_0x55f3ad._0x51fb9d);}const _0x1d50fa=(_0x1059c4[_0x3833f8(_0x4ce025._0x1a6a7e,0x5a0,0x3d3,0x45b)]??[])[_0x3833f8(_0x4ce025._0x551a3e,0x42c,0x4d9,0x4a3)](_0x505eb6=>_0x592dfc[_0x3833f8(0x4c3,0x6ad,0x51c,0x59d)](_0x505eb6)),_0x30b86c=_0x1059c4[_0x3833f8(_0x4ce025._0x18e8ae,0x562,_0x4ce025._0x203fca,_0x4ce025._0x109e36)]??'Ls';return defineTool({'name':_0x30b86c,'description':_0x39a294(-_0x4ce025._0x31870d,_0x4ce025._0x1ef83e,0x89,0xe6),'inputSchema':{'type':_0x39a294(-_0x4ce025._0x20bc65,_0x4ce025._0x3fe74f,0xc4,_0x4ce025._0x291748),'properties':{'path':{'type':'string'},'limit':{'type':_0x39a294(-_0x4ce025._0xf3717f,-0x2e,0x1ed,_0x4ce025._0x913cbf)}}},async *'execute'(_0x5d5e0b){function _0x16092d(_0x2e7e2e,_0xd1eb83,_0x327d2c,_0x17b55c){return _0x3833f8(_0x2e7e2e-_0x11baee._0x40cd1d,_0xd1eb83-_0x11baee._0x3eea44,_0x327d2c,_0x17b55c- -_0x11baee._0x2e87ee);}const _0x50e5cd=_0x5d5e0b[_0x16092d(_0x1dea78._0x3b092c,_0x1dea78._0x45bf53,0x267,0x146)]??'.',_0x416009=resolveAllowedPath(_0x4da691,_0x1d50fa,_0x50e5cd),_0x4e8393=await _0x38d8f1(_0x416009)['catch'](()=>null);if(!_0x4e8393?.[_0x34cae7(0x2f7,_0x1dea78._0x520215,0x222,_0x1dea78._0x181334)]())throw new ToolExecutionError(_0x16092d(0x456,_0x1dea78._0x5324ae,0x3bd,0x35a)+_0x50e5cd,{'path':_0x50e5cd});const _0x345eca=_0x5d5e0b[_0x16092d(0x408,_0x1dea78._0x817a9c,0x216,_0x1dea78._0x348f32)]??0x3e8,_0x1dce5f=Math['min'](Math['max'](Math[_0x16092d(0x31b,_0x1dea78._0x936e88,0x46c,0x363)](_0x345eca),0x1),0x2710),_0x20c831=await _0x465b9a(_0x416009);function _0x34cae7(_0x3b39b7,_0x37d62e,_0x1091af,_0x134206){return _0x3833f8(_0x3b39b7-0x1af,_0x37d62e-0xdd,_0x37d62e,_0x1091af- -0x47b);}const _0x65e028=[];for(const _0x5cb7f7 of _0x20c831[_0x16092d(_0x1dea78._0x22079c,_0x1dea78._0x199436,_0x1dea78._0x1df96a,_0x1dea78._0x5b6127)](0x0,_0x1dce5f)){const _0x14abf2=_0x592dfc[_0x34cae7(0x91,0xdf,0x186,0x113)](_0x416009,_0x5cb7f7),_0x332d43=await _0x38d8f1(_0x14abf2)[_0x16092d(0x205,_0x1dea78._0x70419,_0x1dea78._0xb1cbde,_0x1dea78._0x375fc8)](()=>null);if(!_0x332d43)continue;let _0x50a9fe='other';if(_0x332d43[_0x34cae7(0x209,_0x1dea78._0x2980d2,_0x1dea78._0x30b417,_0x1dea78._0x230983)]())_0x50a9fe='file';else{if(_0x332d43['isDirectory']())_0x50a9fe=_0x34cae7(0x48,0x192,0x18d,_0x1dea78._0x46e088);else{if(_0x332d43[_0x16092d(0x1ab,_0x1dea78._0x18de04,_0x1dea78._0x1dcb78,0x242)]())_0x50a9fe=_0x16092d(0x2cb,_0x1dea78._0x2b2099,0x2c9,_0x1dea78._0x3c6178);}}const _0x1092b4={'name':_0x5cb7f7,'type':_0x50a9fe,'size':_0x332d43[_0x34cae7(_0x1dea78._0x571d50,_0x1dea78._0x9cf99d,_0x1dea78._0x2b2737,0x9)],'mtime':_0x332d43[_0x16092d(0x268,_0x1dea78._0x16d993,_0x1dea78._0xe33a05,0x14f)],'mode':_0x332d43[_0x34cae7(_0x1dea78._0x2b206c,_0x1dea78._0x21379e,_0x1dea78._0x4786c5,0x14a)]},_0x3ded78=_0x50a9fe===_0x16092d(0x394,_0x1dea78._0x1b8503,0x34c,0x28d)?await countTextLines(_0x14abf2):void 0x0;if(_0x3ded78!==void 0x0)_0x1092b4[_0x16092d(_0x1dea78._0x358662,0x3cf,0x3cb,0x2f1)]=_0x3ded78;_0x65e028[_0x16092d(0x1e8,0x61,_0x1dea78._0x2f0b08,_0x1dea78._0x5153c0)](_0x1092b4);}_0x65e028[_0x34cae7(-0x131,-0xe5,-_0x1dea78._0x47813c,_0x1dea78._0x3f8556)]((_0xb3c261,_0x42079c)=>_0xb3c261['name'][_0x34cae7(-0x9,0x19c,0x133,0x82)](_0x42079c[_0x16092d(0x28b,0x339,0x171,0x29a)]));const _0xff9840={'path':_0x50e5cd,'total':_0x65e028[_0x34cae7(_0x1dea78._0x66829f,0xc8,_0x1dea78._0x1b395d,-_0x1dea78._0x281ac4)],'truncated':_0x20c831['length']>_0x1dce5f,'entries':_0x65e028};return yield createToolOutput(_0x19ba40[_0x16092d(_0x1dea78._0x51b0e9,0x33d,_0x1dea78._0x33a727,0x2f7)](_0xff9840,{'indent':0x2,'lineWidth':0x0})[_0x34cae7(0x130,_0x1dea78._0x354d92,_0x1dea78._0x396a9a,_0x1dea78._0x2198e1)](),{'path':_0x50e5cd,'total':_0x65e028[_0x34cae7(0x18,0x215,_0x1dea78._0x1b395d,_0x1dea78._0x2dd36b)],'truncated':_0x20c831['length']>_0x1dce5f,'limit':_0x1dce5f,'entries':_0x65e028}),void 0x0;}});}import{stat as _0x219538}from'fs/promises';import _0x1b9ce5 from'path';import{fileURLToPath as _0x509bc0}from'url';function severityName(_0x4d25c1){const _0x30141f={_0x478d31:0x594,_0x1904fd:0x4b1,_0x598eff:0x607,_0x58e6dc:0x76e,_0x39270f:0x3c0},_0xad6d05={_0x126e45:0xe8,_0x4a0f16:0x48},_0x5e2591={_0x1ac602:0x28a};function _0x8d4eb8(_0x3b8b51,_0x4db1ff,_0x337091,_0xa82b90){return _0x34fd29(_0x337091,_0x4db1ff-0x5d,_0x337091-0x2a,_0x4db1ff- -_0x5e2591._0x1ac602);}function _0x18a27e(_0x50b857,_0x2df862,_0x5676c3,_0x5e8c3f){return _0x34fd29(_0x5676c3,_0x2df862-_0xad6d05._0x126e45,_0x5676c3-0x2a,_0x50b857- -_0xad6d05._0x4a0f16);}switch(_0x4d25c1){case 0x1:return _0x8d4eb8(_0x30141f._0x478d31,0x4af,0x553,_0x30141f._0x1904fd);case 0x2:return'Warning';case 0x3:return _0x18a27e(0x66d,_0x30141f._0x598eff,0x69d,_0x30141f._0x58e6dc);case 0x4:return'Hint';default:return _0x8d4eb8(0x4b2,0x494,0x3ca,_0x30141f._0x39270f);}}function formatSingleHover(_0x178fa3){const _0x31ac25={_0x384639:0x128,_0x26ce17:0xf5,_0x4b74ea:0xd5,_0x4a57bb:0x23,_0x525905:0xd0,_0x1c51f6:0x11b,_0x35ed43:0x103,_0x522d49:0x1b,_0xb9249c:0x40b,_0x18fa3e:0x3bd,_0x919e74:0x45d,_0x26ffe2:0x482,_0x4f7d41:0x3b3,_0x3c0b98:0x131,_0x140bc7:0x6},_0x509c43={_0x1f31aa:0x193,_0x443990:0x9d},_0x15f51c={_0x7dd956:0x114,_0x46ac04:0x5ba},_0x33a9ea=_0x178fa3['contents'];function _0x44e10c(_0x5021d5,_0x571ee0,_0x222295,_0xdb0660){return _0x34fd29(_0x571ee0,_0x571ee0-_0x15f51c._0x7dd956,_0x222295-0x5e,_0xdb0660- -_0x15f51c._0x46ac04);}function _0x286244(_0x312c07,_0x1ac8b2,_0x34d700,_0x3a4c49){return _0x34fd29(_0x1ac8b2,_0x1ac8b2-_0x509c43._0x1f31aa,_0x34d700-_0x509c43._0x443990,_0x312c07- -0x198);}if(typeof _0x33a9ea===_0x44e10c(0xda,0x1cb,0x189,0xbd))return _0x33a9ea;if(Array[_0x44e10c(0x7c,_0x31ac25._0x384639,_0x31ac25._0x26ce17,0xbc)](_0x33a9ea))return _0x33a9ea['map'](_0x3ea7ae=>typeof _0x3ea7ae===_0x286244(0x4df,0x414,0x3ab,0x3a6)?_0x3ea7ae:_0x3ea7ae['value'])[_0x44e10c(-0x112,-0x11d,_0x31ac25._0x4b74ea,_0x31ac25._0x4a57bb)](Boolean)[_0x44e10c(_0x31ac25._0x525905,0x63,0x6a,_0x31ac25._0x1c51f6)]('\x0a\x0a');if(_0x44e10c(0xff,_0x31ac25._0x35ed43,-0xa0,_0x31ac25._0x522d49)in _0x33a9ea)return _0x33a9ea[_0x286244(_0x31ac25._0xb9249c,_0x31ac25._0x18fa3e,_0x31ac25._0x919e74,_0x31ac25._0x26ffe2)];return _0x33a9ea['language']?'```'+_0x33a9ea['language']+'\x0a'+_0x33a9ea[_0x286244(0x40b,0x30c,0x510,_0x31ac25._0x4f7d41)]+_0x44e10c(0x12e,_0x31ac25._0x3c0b98,0x98,0xee):_0x33a9ea[_0x44e10c(-0x31,-_0x31ac25._0x140bc7,0xb8,-0x17)];}function formatHover(_0x55846a){const _0x3ff30a={_0x5c5dd6:0x171,_0x37e1c4:0x307,_0x28d2a8:0x579,_0x4fadf5:0x5b6,_0xf8e1e1:0x670,_0x1b68c5:0x179,_0x87c753:0x54e,_0x50bc45:0x596},_0x6000ad={_0x554997:0xe6,_0x1117a0:0x3fe},_0x37145a={_0x243bd5:0x3f,_0x59367c:0xfb};function _0x40445a(_0x1e8e37,_0x2303fe,_0x14828b,_0x4fb831){return _0x34fd29(_0x2303fe,_0x2303fe-0x1eb,_0x14828b-_0x37145a._0x243bd5,_0x4fb831- -_0x37145a._0x59367c);}if(_0x55846a[_0x39fe1e(_0x3ff30a._0x5c5dd6,0x26f,0x231,_0x3ff30a._0x37e1c4)]===0x0)return _0x40445a(_0x3ff30a._0x28d2a8,0x618,_0x3ff30a._0x4fadf5,_0x3ff30a._0xf8e1e1);function _0x39fe1e(_0x5ed577,_0x5bcf89,_0x1f2aa1,_0x28b7aa){return _0x34fd29(_0x28b7aa,_0x5bcf89-_0x6000ad._0x554997,_0x1f2aa1-0xbe,_0x5bcf89- -_0x6000ad._0x1117a0);}return _0x55846a[_0x39fe1e(0x25b,_0x3ff30a._0x1b68c5,0x6f,0x149)](formatSingleHover)['join'](_0x40445a(_0x3ff30a._0x87c753,_0x3ff30a._0x50bc45,0x552,0x5e8));}function locationPath(_0x2818e2){const _0x4ab6fc={_0x2abd46:0x184,_0x5f52d4:0x127},_0x320b16={_0x4e61cc:0xcf,_0x4ff9b5:0xf};if(!_0x2818e2['startsWith'](_0x59dd7c(_0x4ab6fc._0x2abd46,0x262,0x5e,_0x4ab6fc._0x5f52d4)))return _0x2818e2;function _0x59dd7c(_0x2350d1,_0x59ba2f,_0x7f5439,_0x242732){return _0x2803df(_0x2350d1-0x19a,_0x7f5439,_0x7f5439-_0x320b16._0x4e61cc,_0x242732-_0x320b16._0x4ff9b5);}return _0x509bc0(_0x2818e2);}function formatLocations(_0x1d3c83){const _0x85cde3={_0x1ad81a:0xf6,_0x1c977e:0x9e,_0x4d4ea3:0x329,_0x4f2e73:0x45d,_0x5a2b3f:0x487,_0x333f4d:0x351,_0x1defc1:0x43b},_0x27f488={_0x407fdf:0x645,_0x34905b:0x593,_0x453669:0x5e8,_0x33be9e:0x78f,_0x179754:0x734,_0x11da87:0x698},_0x47ca1e={_0x254d2b:0x2c6,_0x35bac0:0x1ae},_0x43a63a={_0x34e83a:0x10f},_0x42ed60={_0x1d0d2d:0xa4};if(_0x1d3c83[_0x2a7da9(-0x3d,-0xc3,_0x85cde3._0x1ad81a,-_0x85cde3._0x1c977e)]===0x0)return'No\x20locations\x20found';function _0x213e97(_0xa2595d,_0x26a5eb,_0x33227d,_0x517953){return _0x2803df(_0xa2595d-0x43a,_0x26a5eb,_0x33227d-0xe2,_0x517953-_0x42ed60._0x1d0d2d);}function _0x2a7da9(_0x1d30c0,_0x4ee116,_0x355ce8,_0x33ed7d){return _0x2803df(_0x1d30c0- -0x22,_0x33ed7d,_0x355ce8-_0x43a63a._0x34e83a,_0x33ed7d-0xfe);}return _0x1d3c83[_0x213e97(_0x85cde3._0x4d4ea3,0x33c,_0x85cde3._0x4f2e73,0x341)](_0x386bbb=>{const _0x136b3c={_0x5a42eb:0xdb};function _0x107361(_0x52a6d6,_0x1e818c,_0x3214c3,_0xa48afc){return _0x213e97(_0x1e818c- -0x3eb,_0xa48afc,_0x3214c3-_0x136b3c._0x5a42eb,_0xa48afc-0x15f);}function _0x45849a(_0x515a5a,_0x19d98f,_0x3d34a7,_0x454735){return _0x213e97(_0x3d34a7-_0x47ca1e._0x254d2b,_0x454735,_0x3d34a7-_0x47ca1e._0x35bac0,_0x454735-0x155);}const _0x3f1fd1=_0x386bbb['range'][_0x45849a(_0x27f488._0x407fdf,0x6cd,_0x27f488._0x34905b,0x4ad)];return locationPath(_0x386bbb['uri'])+':'+(_0x3f1fd1[_0x45849a(_0x27f488._0x453669,0x648,0x5b6,0x63a)]+0x1)+':'+(_0x3f1fd1[_0x45849a(0x7fa,_0x27f488._0x33be9e,_0x27f488._0x179754,_0x27f488._0x11da87)]+0x1);})[_0x213e97(_0x85cde3._0x5a2b3f,_0x85cde3._0x333f4d,0x46b,_0x85cde3._0x1defc1)]('\x0a');}function isDocumentSymbol(_0x3ca1eb){const _0x3531d6={_0x303e9e:0x5ec,_0x4d1d64:0x59a},_0x3abb02={_0x1d5ecd:0x56a,_0x41a06e:0x131,_0x3739a4:0x9b};function _0x1d83b2(_0x2370b3,_0x15cb17,_0x2b5f2e,_0x4fde9e){return _0x2803df(_0x2b5f2e-_0x3abb02._0x1d5ecd,_0x2370b3,_0x2b5f2e-_0x3abb02._0x41a06e,_0x4fde9e-_0x3abb02._0x3739a4);}return'range'in _0x3ca1eb&&_0x1d83b2(_0x3531d6._0x303e9e,0x5f7,0x4c8,_0x3531d6._0x4d1d64)in _0x3ca1eb;}function formatSymbols(_0x5bdf75){const _0x3069e5={_0x6daf9a:0x535,_0x5b0a63:0x394,_0x3cd6d1:0x4b7},_0x2f4750={_0x52da1c:0x335,_0x593225:0x2d2,_0x3af605:0x247,_0x3fc92f:0x293,_0xed80b8:0x311,_0x32c127:0x2f9,_0x4d0680:0x28d,_0x207216:0x458,_0x107877:0x1ef,_0x1e4f24:0x291,_0x40f380:0x325,_0x143123:0x25e,_0x4def7b:0xd2,_0x274fe6:0x1d9,_0x1cafd0:0x2f0,_0x3fac34:0x15c,_0x4cd58c:0x26e,_0x1296e9:0x47c,_0x214657:0x2a6,_0x4162bf:0x310,_0x298725:0x2e3,_0x3465f4:0x2e2,_0x2bb15c:0x1f8,_0x5d7413:0x150,_0x2b8fe6:0x1ac,_0x5bee67:0x1b4,_0xa5f490:0xf2,_0xdb281b:0x18b,_0x266485:0x1b7,_0x2f4bd0:0x27a,_0x2ec565:0x23b,_0x5d7c10:0x16d,_0x1ee8a6:0x1fc,_0x55fe22:0x85,_0x1908d3:0x1b4,_0x15b009:0x148,_0x1be537:0x23b},_0x3c3689={_0x2bca2e:0xff,_0x4ff2c6:0x18c},_0x1a392d={_0x3a031d:0x11e,_0x230c15:0x12a},_0x9cd8e5={_0x245e18:0x1b6};function _0x9c8137(_0x3a21dd,_0x2f813c,_0x299eb2,_0x1d2fa9){return _0x34fd29(_0x299eb2,_0x2f813c-0x108,_0x299eb2-0x1e1,_0x1d2fa9- -_0x9cd8e5._0x245e18);}if(_0x5bdf75[_0x9c8137(_0x3069e5._0x6daf9a,_0x3069e5._0x5b0a63,0x5ae,_0x3069e5._0x3cd6d1)]===0x0)return'No\x20symbols\x20found';return _0x5bdf75['map'](_0x1e1d28=>{function _0x3d6ee3(_0x24a0c5,_0x1e9a1e,_0x312ae8,_0x1bd807){return _0x9c8137(_0x24a0c5-0x1bf,_0x1e9a1e-_0x1a392d._0x3a031d,_0x1e9a1e,_0x312ae8- -_0x1a392d._0x230c15);}if(isDocumentSymbol(_0x1e1d28))return _0x1e1d28[_0x3d6ee3(_0x2f4750._0x52da1c,0x486,0x372,_0x2f4750._0x593225)]+'\x20('+_0x1e1d28[_0x4f2207(_0x2f4750._0x3af605,_0x2f4750._0x3fc92f,_0x2f4750._0xed80b8,_0x2f4750._0x32c127)]+_0x4f2207(_0x2f4750._0x4d0680,0x386,0x43a,_0x2f4750._0x207216)+(_0x1e1d28['range'][_0x3d6ee3(_0x2f4750._0x107877,_0x2f4750._0x1e4f24,0x23b,0x25b)][_0x3d6ee3(_0x2f4750._0x40f380,0x29f,_0x2f4750._0x143123,0x36d)]+0x1)+':'+(_0x1e1d28['range'][_0x4f2207(_0x2f4750._0x4def7b,_0x2f4750._0x274fe6,_0x2f4750._0x1cafd0,_0x2f4750._0x3fac34)][_0x4f2207(_0x2f4750._0x4cd58c,0x37a,_0x2f4750._0x1296e9,_0x2f4750._0x214657)]+0x1)+']';function _0x4f2207(_0x2596a7,_0x1eca6d,_0x2f16dd,_0x106e97){return _0x9c8137(_0x2596a7-_0x3c3689._0x2bca2e,_0x1eca6d-0x11,_0x2f16dd,_0x1eca6d- -_0x3c3689._0x4ff2c6);}return _0x1e1d28[_0x4f2207(0x3bc,_0x2f4750._0x4162bf,0x426,_0x2f4750._0x298725)]+'\x20('+_0x1e1d28[_0x3d6ee3(0x2ba,0x3e5,0x2f5,0x1c7)]+')\x20'+locationPath(_0x1e1d28[_0x4f2207(_0x2f4750._0x3465f4,0x1b4,_0x2f4750._0x2bb15c,_0x2f4750._0x5d7413)]['uri'])+':'+(_0x1e1d28[_0x4f2207(_0x2f4750._0x2b8fe6,_0x2f4750._0x5bee67,_0x2f4750._0xa5f490,_0x2f4750._0xdb281b)][_0x3d6ee3(0x4c8,0x41e,0x39a,0x266)][_0x3d6ee3(_0x2f4750._0x266485,_0x2f4750._0x2f4bd0,_0x2f4750._0x2ec565,_0x2f4750._0x5d7c10)][_0x4f2207(0x2fe,_0x2f4750._0x1ee8a6,0x253,0x109)]+0x1)+':'+(_0x1e1d28[_0x4f2207(_0x2f4750._0x55fe22,_0x2f4750._0x1908d3,_0x2f4750._0x15b009,0x2b8)]['range'][_0x3d6ee3(0x2ed,0x135,_0x2f4750._0x1be537,0x10b)]['character']+0x1);})['join']('\x0a');}function formatDiagnostics(_0x1ca52c){const _0x49950a={_0x57f907:0x547,_0x2f317c:0x4af,_0x1bcffb:0x3af,_0x463eaf:0x52e,_0x4e05eb:0x474,_0x272671:0x3ef},_0x24d9db={_0x67454f:0x524,_0x3012b0:0x54b,_0x4d5709:0x605,_0x38708d:0x497,_0x4c9b9b:0x2e3,_0x2151cd:0x3ee,_0xd6b0f6:0x5d9,_0x5a306d:0x449,_0x209993:0x475,_0x24fb68:0x393},_0x13c6c8={_0xc07a76:0x8f},_0x106a6f={_0x1b52a0:0x1,_0x3618a2:0xc0,_0x5f56cb:0xc7};function _0x13c64b(_0x27f1d0,_0x321111,_0x1ad49b,_0x4fbbbd){return _0x2803df(_0x321111-0x456,_0x4fbbbd,_0x1ad49b-0x1c1,_0x4fbbbd-0x166);}function _0x28491a(_0x14027f,_0x50a5e6,_0x599f7a,_0x8edf86){return _0x34fd29(_0x50a5e6,_0x50a5e6-_0x106a6f._0x1b52a0,_0x599f7a-_0x106a6f._0x3618a2,_0x14027f- -_0x106a6f._0x5f56cb);}if(_0x1ca52c[_0x28491a(0x5a6,0x5fa,0x5d5,0x61f)]===0x0)return _0x13c64b(_0x49950a._0x57f907,_0x49950a._0x2f317c,0x5a2,_0x49950a._0x1bcffb);return _0x1ca52c[_0x28491a(0x4b0,_0x49950a._0x463eaf,_0x49950a._0x4e05eb,_0x49950a._0x272671)](_0x2ed516=>{function _0x1b250e(_0x5da63c,_0x4f857b,_0x5d5d7a,_0x2bb16e){return _0x28491a(_0x5da63c- -_0x13c6c8._0xc07a76,_0x4f857b,_0x5d5d7a-0x146,_0x2bb16e-0x171);}function _0x22cc84(_0x171b37,_0x4ea86f,_0x43d97e,_0x443e1d){return _0x13c64b(_0x171b37-0xe0,_0x43d97e-0x216,_0x43d97e-0x1d0,_0x443e1d);}const _0x3929f2=_0x2ed516[_0x1b250e(_0x24d9db._0x67454f,_0x24d9db._0x3012b0,0x49e,_0x24d9db._0x4d5709)][_0x1b250e(0x3c5,_0x24d9db._0x38708d,_0x24d9db._0x4c9b9b,0x336)];return severityName(_0x2ed516[_0x1b250e(0x4cd,_0x24d9db._0x2151cd,0x4e6,_0x24d9db._0xd6b0f6)])+'\x20['+(_0x3929f2[_0x1b250e(0x3e8,_0x24d9db._0x5a306d,_0x24d9db._0x209993,_0x24d9db._0x24fb68)]+0x1)+':'+(_0x3929f2['character']+0x1)+']\x20'+_0x2ed516['message'];})['join']('\x0a');}function formatIncomingCalls(_0x208c87){const _0x2c112a={_0x526910:0x8a,_0x1fbf2c:0x171,_0x182e13:0x15a,_0x3a83f1:0x7d,_0x300ca6:0x5b9,_0x3f7e27:0x711,_0x12bd19:0x5d8},_0x2369a4={_0x181582:0x9d},_0x219caa={_0x45a702:0x13b,_0x293c90:0xfd};function _0x34c9c6(_0x290a91,_0x34feb8,_0x2db4dd,_0x435dc0){return _0x34fd29(_0x435dc0,_0x34feb8-0x128,_0x2db4dd-_0x219caa._0x45a702,_0x2db4dd- -_0x219caa._0x293c90);}function _0x49416c(_0x39b60e,_0x884d6c,_0x2ae1bc,_0x32ef8c){return _0x34fd29(_0x32ef8c,_0x884d6c-0x1f0,_0x2ae1bc-_0x2369a4._0x181582,_0x39b60e- -0x5dd);}if(_0x208c87[_0x49416c(0x90,-_0x2c112a._0x526910,_0x2c112a._0x1fbf2c,-0x5c)]===0x0)return _0x49416c(_0x2c112a._0x182e13,0x24c,0x274,0x235);return _0x208c87[_0x49416c(-0x66,_0x2c112a._0x3a83f1,-0x11e,-0x3b)](_0x4ac78a=>_0x4ac78a[_0x34c9c6(0x3a9,0x51f,0x460,0x57d)][_0x34c9c6(0x5ab,0x5e6,0x555,0x63a)])[_0x34c9c6(_0x2c112a._0x300ca6,_0x2c112a._0x3f7e27,_0x2c112a._0x12bd19,0x63a)]('\x0a');}function formatOutgoingCalls(_0x55bf83){const _0x167783={_0x160dc5:0x712,_0x473bfc:0x774,_0x4b3d00:0x596,_0x220e6f:0x5a0,_0x5d427b:0x4e7},_0x2fc6c5={_0x43505c:0x426},_0xee6059={_0x1ad789:0x181,_0x86b1fb:0xd7,_0x3be52c:0x97};if(_0x55bf83['length']===0x0)return _0xe568a9(_0x167783._0x160dc5,0x719,0x7ce,_0x167783._0x473bfc);function _0xe568a9(_0x5c625c,_0x487751,_0x3a703,_0xad2094){return _0x34fd29(_0x487751,_0x487751-_0xee6059._0x1ad789,_0x3a703-_0xee6059._0x86b1fb,_0x3a703-_0xee6059._0x3be52c);}function _0x324ae3(_0xe88fad,_0x48b4fb,_0x5b7822,_0x43f3b5){return _0x2803df(_0xe88fad-_0x2fc6c5._0x43505c,_0x48b4fb,_0x5b7822-0x125,_0x43f3b5-0xbf);}return _0x55bf83[_0xe568a9(_0x167783._0x4b3d00,0x66e,0x60e,_0x167783._0x220e6f)](_0x42a5dc=>_0x42a5dc['to'][_0x324ae3(0x3f0,0x400,0x498,0x338)])[_0x324ae3(0x473,0x3b6,_0x167783._0x5d427b,0x3d9)]('\x0a');}function toStructured(_0x4242ae){const _0x164623={_0x4248ea:0x2f8,_0x3a3a66:0x301,_0x232692:0xc8,_0x3f1b15:0x1c8,_0x5ca7ba:0x1db,_0x2564da:0x13a},_0x57f793={_0xcf6f44:0xbb},_0x54944e={_0x41327f:0x1af,_0x483490:0xe6,_0x153c57:0x6af};function _0x4334b3(_0x4964ff,_0x490d94,_0x53660e,_0x59868c){return _0x34fd29(_0x4964ff,_0x490d94-_0x54944e._0x41327f,_0x53660e-_0x54944e._0x483490,_0x53660e- -_0x54944e._0x153c57);}function _0x1857d3(_0x378a13,_0x24e039,_0x297daa,_0x2d98af){return _0x2803df(_0x2d98af-0x140,_0x378a13,_0x297daa-_0x57f793._0xcf6f44,_0x2d98af-0x7a);}return JSON[_0x1857d3(_0x164623._0x4248ea,_0x164623._0x3a3a66,_0x164623._0x232692,_0x164623._0x3f1b15)](JSON[_0x1857d3(_0x164623._0x5ca7ba,0x274,_0x164623._0x2564da,0x167)](_0x4242ae));}async function assertFile(_0x937ac5){const _0x4a2483=await _0x219538(_0x937ac5);if(!_0x4a2483['isFile']())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x937ac5,{'path':_0x937ac5});}function validatePosition(_0x137770,_0x129d20){const _0x111023={_0x94bf66:0x568,_0x39fcfa:0x5f2,_0x4ce75c:0x36},_0x24c95a={_0x45d080:0x52f,_0x1568f9:0xeb,_0x4cbcec:0x191},_0x65bb1e={_0x353045:0x1e4,_0x2f1809:0x195,_0x1b2a74:0x702};function _0x5ee2fc(_0x3dbb47,_0x2d933a,_0x3fdbda,_0x3e4dd4){return _0x34fd29(_0x3fdbda,_0x2d933a-_0x65bb1e._0x353045,_0x3fdbda-_0x65bb1e._0x2f1809,_0x3e4dd4- -_0x65bb1e._0x1b2a74);}function _0x13654f(_0x564bf6,_0x182741,_0x1f213,_0x28ae68){return _0x2803df(_0x182741-_0x24c95a._0x45d080,_0x1f213,_0x1f213-_0x24c95a._0x1568f9,_0x28ae68-_0x24c95a._0x4cbcec);}if(!Number['isInteger'](_0x137770)||_0x137770<0x1)throw new ToolExecutionError('line\x20must\x20be\x20a\x20positive\x20integer',{'line':_0x137770});if(!Number[_0x13654f(_0x111023._0x94bf66,_0x111023._0x39fcfa,0x524,0x547)](_0x129d20)||_0x129d20<0x1)throw new ToolExecutionError(_0x5ee2fc(-0x26,-0x89,-_0x111023._0x4ce75c,-0xf9),{'character':_0x129d20});}function createLspTool(_0x284060={}){const _0x5ede26={_0x408642:0x33c,_0x169989:0x348,_0x9f348a:0x46c,_0x293548:0x287,_0x3f88d2:0x471,_0x287776:0x53e,_0x2e0857:0x1f4,_0x4713eb:0x2b1,_0xf21272:0x242,_0x50b480:0x153,_0x5ab86f:0x1a7,_0x3ea540:0x345,_0x23bc26:0x432,_0x35fc46:0x52f,_0x47d427:0x19a,_0x44cae4:0x10f,_0x3a23f0:0x253,_0x1902df:0x23d,_0x51e9b0:0x4d9,_0x4e8d23:0x45b,_0x331257:0x39b,_0x4be8f1:0x1ba,_0x877697:0x372,_0x244c16:0x266,_0x32e064:0x2b6,_0x10ed91:0x342,_0x325e30:0x1f3,_0x22d6ed:0x51a,_0xacd955:0x3f5,_0x11a846:0x499,_0x5549ac:0xb6,_0x5174aa:0x369,_0x123d8f:0x25b,_0x1c66cc:0x29b,_0x450763:0x317,_0xe19a8:0x22e,_0x422ffe:0x422,_0x16ea47:0x4a6,_0x20c6bf:0x29e,_0x529418:0x224,_0x400a97:0x14a,_0x187784:0x1da,_0x2ce628:0x368,_0x5025b0:0x3b4,_0x1e046a:0x251,_0x51d065:0x39a,_0x3ef226:0x466},_0x466367={_0x595071:0x203,_0x4b03b0:0x391,_0x229771:0x21b,_0x58c5ad:0x110,_0x502655:0x158,_0x10aeec:0x3d,_0x4672fd:0xd3,_0x177d5b:0x2d1,_0x3ee62c:0x152,_0x14a2b4:0x34d,_0x35bcb8:0x74,_0x4eba02:0x9e,_0x5dec00:0x20f,_0x265160:0x12a,_0xc70b8b:0x264,_0x3d0124:0x64,_0x30274f:0x23a,_0x213211:0x61,_0x121143:0x11f,_0x1183da:0x11,_0x1c33f3:0x29,_0x5c619d:0x173,_0x35e5d8:0x3b,_0x3bcd03:0x126,_0x17959c:0xf9,_0x3e4c8:0x148,_0x422614:0x15,_0x1f3230:0x18,_0x4ff766:0x187,_0x30f25c:0x105,_0xfa419c:0x22,_0xbe0164:0x15c,_0x59d9a4:0x20,_0x2871ea:0x65,_0x49f58c:0xfa,_0x5676cb:0x22f,_0x225a62:0x18b,_0x1ee283:0xaf,_0x32f77c:0x54,_0x2321e0:0x68,_0x232295:0x32a,_0x46fba6:0x31a,_0x51e913:0x2e2,_0x4c24bb:0xf8,_0x3d453:0x84,_0x283598:0x16d,_0x1043fd:0x25c,_0x5a2a0a:0x28,_0x1d6b40:0xca,_0x54e481:0xec,_0x46ce58:0x157,_0x344eb8:0x11a,_0x4dfdc8:0xf0,_0x25993d:0x169,_0x3c10d7:0x12,_0x14bbbf:0x202},_0x27ad2b={_0x54324f:0x1e,_0x53a4cf:0x176},_0x1a3141={_0x1ffcbe:0x255},_0x2d5dcc={_0x5690e3:0xcb,_0x41de33:0x43};function _0x1de7b7(_0x20b21a,_0x1a312c,_0x44d3c2,_0xd28fc6){return _0x2803df(_0x20b21a-0x353,_0x1a312c,_0x44d3c2-_0x2d5dcc._0x5690e3,_0xd28fc6-_0x2d5dcc._0x41de33);}const _0x56a292=_0x1b9ce5[_0x1de7b7(_0x5ede26._0x408642,_0x5ede26._0x169989,_0x5ede26._0x9f348a,_0x5ede26._0x293548)](_0x284060[_0xf2505d(_0x5ede26._0x3f88d2,_0x5ede26._0x287776,0x57e,0x3ac)]??process[_0x1de7b7(_0x5ede26._0x2e0857,0x271,0xb5,_0x5ede26._0x4713eb)]()),_0x506739=(_0x284060['allowedDirs']??[])[_0x1de7b7(_0x5ede26._0xf21272,_0x5ede26._0x50b480,0x2e9,_0x5ede26._0x5ab86f)](_0x5e6f45=>_0x1b9ce5[_0x1de7b7(0x33c,0x333,0x47a,0x387)](_0x5e6f45)),_0x510da1=_0x284060[_0x1de7b7(0x31d,_0x5ede26._0x3ea540,0x35d,_0x5ede26._0x23bc26)]??_0xf2505d(0x344,0x404,0x31e,0x219);function _0xf2505d(_0x49c2a7,_0x2e96f7,_0x5b9c65,_0x40ac93){return _0x34fd29(_0x5b9c65,_0x2e96f7-0x1a5,_0x5b9c65-0xa9,_0x49c2a7- -_0x1a3141._0x1ffcbe);}return defineTool({'name':_0x510da1,'description':_0xf2505d(_0x5ede26._0x35fc46,0x53c,0x592,0x61d),'inputSchema':{'type':_0x1de7b7(0x253,_0x5ede26._0x47d427,_0x5ede26._0x44cae4,_0x5ede26._0x3a23f0),'properties':{'operation':{'type':'string','enum':[_0x1de7b7(0x250,_0x5ede26._0x1902df,0x155,0x2c2),_0xf2505d(_0x5ede26._0x51e9b0,0x3c8,0x5c0,_0x5ede26._0x4e8d23),'hover','documentSymbol','workspaceSymbol',_0x1de7b7(0x28a,0x1e3,_0x5ede26._0x331257,_0x5ede26._0x4be8f1),_0x1de7b7(_0x5ede26._0x877697,_0x5ede26._0x244c16,_0x5ede26._0x32e064,_0x5ede26._0x10ed91),_0x1de7b7(_0x5ede26._0x325e30,0xc5,0xe4,0x166),_0xf2505d(_0x5ede26._0x22d6ed,_0x5ede26._0xacd955,0x437,_0x5ede26._0x11a846),_0x1de7b7(0x1ee,0xe4,0xff,_0x5ede26._0x5549ac)]},'filePath':{'type':_0x1de7b7(_0x5ede26._0x10ed91,0x28b,0x2e9,_0x5ede26._0x5174aa)},'line':{'type':_0xf2505d(0x37b,_0x5ede26._0x123d8f,0x3ec,0x33f)},'character':{'type':_0x1de7b7(_0x5ede26._0x1c66cc,_0x5ede26._0x450763,_0x5ede26._0xe19a8,0x20a)},'query':{'type':_0xf2505d(_0x5ede26._0x422ffe,_0x5ede26._0x16ea47,0x32b,0x380)}},'required':[_0xf2505d(0x2fe,0x1e0,0x3b9,_0x5ede26._0x20c6bf),_0x1de7b7(_0x5ede26._0x529418,_0x5ede26._0x400a97,_0x5ede26._0x187784,0x310),_0xf2505d(0x2e9,_0x5ede26._0x2ce628,_0x5ede26._0x5025b0,_0x5ede26._0x1e046a),_0xf2505d(0x467,_0x5ede26._0x51d065,_0x5ede26._0x3ef226,0x3b8)]},async *'execute'(_0x3d590a){const _0x179e97={_0x7009d9:0x34a,_0x5c46f9:0x1eb,_0x26bbfb:0x1c2},_0x383ee4=_0x284060['lspService'];if(!_0x383ee4)throw new ToolExecutionError(_0x2fa7b1(0x242,0x2cd,0x305,_0x466367._0x595071));if(!_0x383ee4[_0x2fa7b1(0x2d7,_0x466367._0x4b03b0,_0x466367._0x229771,0x419)]())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0x45860b=_0x3d590a[_0x2fa7b1(_0x466367._0x58c5ad,_0x466367._0x502655,0x191,0x11d)];validatePosition(_0x3d590a['line'],_0x3d590a[_0x44290e(_0x466367._0x10aeec,-_0x466367._0x4672fd,-0x3,0xdd)]);if(_0x45860b===_0x2fa7b1(0x276,_0x466367._0x177d5b,_0x466367._0x3ee62c,_0x466367._0x14a2b4)){if(!_0x3d590a[_0x44290e(0x61,-_0x466367._0x35bcb8,0x13,0x78)]?.[_0x2fa7b1(0xc9,_0x466367._0x4eba02,_0x466367._0x5dec00,-0x38)]())throw new ToolExecutionError(_0x44290e(-_0x466367._0x265160,-_0x466367._0xc70b8b,-_0x466367._0x3d0124,-_0x466367._0x30274f));const _0xc6aa79=await _0x383ee4['workspaceSymbol'](_0x3d590a[_0x44290e(_0x466367._0x213211,_0x466367._0x121143,-_0x466367._0x1183da,-_0x466367._0x1c33f3)][_0x44290e(-_0x466367._0x5c619d,-0x250,-0x52,-_0x466367._0x35e5d8)]());return yield createToolOutput(formatSymbols(_0xc6aa79),{'operation':_0x45860b,'query':_0x3d590a['query'],'symbols':_0xc6aa79}),void 0x0;}function _0x44290e(_0xdc41b2,_0x4e7f88,_0xc0788f,_0x41cbf7){return _0x1de7b7(_0xdc41b2- -_0x179e97._0x7009d9,_0x4e7f88,_0xc0788f-_0x179e97._0x5c46f9,_0x41cbf7-_0x179e97._0x26bbfb);}const _0x215c2d=resolveAllowedPath(_0x56a292,_0x506739,_0x3d590a[_0x44290e(-_0x466367._0x3bcd03,-0x3f,-0x11,-_0x466367._0x17959c)]);await assertFile(_0x215c2d);if(!await _0x383ee4['hasClients'](_0x215c2d))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x3d590a[_0x2fa7b1(0x116,0x43,0x1ca,0x11c)],{'filePath':_0x3d590a[_0x2fa7b1(0x116,0x19,0x20c,-0x2c)]});await _0x383ee4[_0x44290e(0x37,_0x466367._0x3e4c8,0x69,-_0x466367._0x422614)](_0x215c2d,!![]);function _0x2fa7b1(_0x216aed,_0x514ce6,_0x3747d7,_0x3edc7e){return _0x1de7b7(_0x216aed- -0x10e,_0x3747d7,_0x3747d7-_0x27ad2b._0x54324f,_0x3edc7e-_0x27ad2b._0x53a4cf);}const _0x28fd31={'file':_0x215c2d,'line':_0x3d590a[_0x2fa7b1(0xfb,_0x466367._0x1f3230,0x21e,_0x466367._0x4ff766)]-0x1,'character':_0x3d590a['character']-0x1};switch(_0x45860b){case _0x44290e(-0x13e,-0xf9,-0xf8,-_0x466367._0x30f25c):{const _0x52ffb5=await _0x383ee4[_0x2fa7b1(0xfe,_0x466367._0xfa419c,0x18,0x1de)](_0x28fd31);return yield createToolOutput(formatHover(_0x52ffb5),{'operation':_0x45860b,'filePath':_0x215c2d,'hover':_0x52ffb5}),void 0x0;}case _0x44290e(-_0x466367._0xbe0164,-_0x466367._0x59d9a4,-0x59,-0x5b):{const _0x4e582c=await _0x383ee4[_0x2fa7b1(0xf2,0x1e,-0x53,_0x466367._0x2871ea)](_0x215c2d);return yield createToolOutput(formatDiagnostics(_0x4e582c),{'operation':_0x45860b,'filePath':_0x215c2d,'diagnostics':_0x4e582c}),void 0x0;}case _0x44290e(-_0x466367._0x49f58c,0x24,-_0x466367._0x5676cb,-_0x466367._0x225a62):{const _0x236d97=await _0x383ee4['definition'](_0x28fd31);return yield createToolOutput(formatLocations(_0x236d97),{'operation':_0x45860b,'filePath':_0x215c2d,'locations':_0x236d97}),void 0x0;}case _0x44290e(_0x466367._0x1ee283,0xee,_0x466367._0x32f77c,-_0x466367._0x2321e0):{const _0x5069ea=await _0x383ee4[_0x2fa7b1(_0x466367._0x232295,_0x466367._0x46fba6,0x319,_0x466367._0x51e913)](_0x28fd31);return yield createToolOutput(formatLocations(_0x5069ea),{'operation':_0x45860b,'filePath':_0x215c2d,'locations':_0x5069ea}),void 0x0;}case _0x44290e(-0xc0,0x29,-0xc1,-_0x466367._0x4c24bb):{const _0x27d10a=await _0x383ee4[_0x44290e(-_0x466367._0x3d453,-0x80,-0xc,0xa6)](_0x28fd31);return yield createToolOutput(formatLocations(_0x27d10a),{'operation':_0x45860b,'filePath':_0x215c2d,'locations':_0x27d10a}),void 0x0;}case'documentSymbol':{const _0x327460=await _0x383ee4['documentSymbol'](_0x215c2d);return yield createToolOutput(formatSymbols(_0x327460),{'operation':_0x45860b,'filePath':_0x215c2d,'symbols':_0x327460}),void 0x0;}case _0x2fa7b1(_0x466367._0xc70b8b,_0x466367._0x283598,0x180,_0x466367._0x1043fd):{const _0x48b41e=await _0x383ee4[_0x44290e(_0x466367._0x5a2a0a,_0x466367._0x213211,_0x466367._0x1d6b40,_0x466367._0x54e481)](_0x28fd31);return yield createToolOutput(formatSymbols(_0x48b41e),{'operation':_0x45860b,'filePath':_0x215c2d,'symbols':toStructured(_0x48b41e)}),void 0x0;}case _0x44290e(-_0x466367._0x46ce58,-0x189,-0x9d,-_0x466367._0x344eb8):{const _0x2ed3aa=await _0x383ee4['incomingCalls'](_0x28fd31);return yield createToolOutput(formatIncomingCalls(_0x2ed3aa),{'operation':_0x45860b,'filePath':_0x215c2d,'calls':toStructured(_0x2ed3aa)}),void 0x0;}case'outgoingCalls':{const _0x4c8c72=await _0x383ee4[_0x44290e(_0x466367._0x4dfdc8,_0x466367._0x25993d,-_0x466367._0x3c10d7,_0x466367._0x14bbbf)](_0x28fd31);return yield createToolOutput(formatOutgoingCalls(_0x4c8c72),{'operation':_0x45860b,'filePath':_0x215c2d,'calls':toStructured(_0x4c8c72)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x56129b,readFile as _0x31f2f2,writeFile as _0x3e59e1}from'fs/promises';import{join as _0x4b50e6}from'path';function sanitizeStorageKey(_0x979d55){const _0x46cca9={_0x1fcc21:0x47c,_0x40f8ab:0x4a5,_0x325414:0x36b,_0x1d8460:0x370},_0xa10e75={_0x5a5252:0xa5,_0x56c914:0xc0,_0x1290dc:0x272},_0xfcfa9a={_0x36408d:0x14e,_0x57a169:0x1af};function _0x16b2e7(_0x3ad2c1,_0x34ad41,_0x4f843f,_0x5beadd){return _0x34fd29(_0x34ad41,_0x34ad41-0x1d8,_0x4f843f-_0xfcfa9a._0x36408d,_0x3ad2c1- -_0xfcfa9a._0x57a169);}function _0x5e5fcb(_0x5de2d5,_0x52031f,_0x1d2222,_0x4e2e30){return _0x34fd29(_0x4e2e30,_0x52031f-_0xa10e75._0x5a5252,_0x1d2222-_0xa10e75._0x56c914,_0x1d2222- -_0xa10e75._0x1290dc);}return _0x979d55[_0x16b2e7(_0x46cca9._0x1fcc21,_0x46cca9._0x40f8ab,0x33e,0x59d)](/[^a-zA-Z0-9_]+/g,'_')[_0x16b2e7(0x47c,_0x46cca9._0x325414,_0x46cca9._0x1d8460,0x3d9)](/^_+|_+$/g,'')||'server';}function storagePath(_0x477f3c){const _0x1e6e7c={_0x3aa6ea:0x156,_0x1a3fb6:0x164,_0x3a702b:0x258,_0xf32849:0x16,_0x200838:0x1,_0x4c3627:0x186,_0x353d7a:0xb,_0x569833:0x125,_0x41a80c:0x20d,_0x3b51c7:0x237,_0x48131e:0x1ba},_0x20a87f={_0x503476:0x1e,_0xfad2fc:0x1dd},_0x473c8d={_0x10bd2d:0x4b},_0x326e23=sanitizeStorageKey(_0x477f3c['config'][_0x19a2d5(_0x1e6e7c._0x3aa6ea,_0x1e6e7c._0x1a3fb6,_0x1e6e7c._0x3a702b,0x277)]?.[_0x19a2d5(-_0x1e6e7c._0xf32849,-0x55,-_0x1e6e7c._0x200838,0x64)]??_0x477f3c[_0x5cdc7f(-_0x1e6e7c._0x4c3627,_0x1e6e7c._0x353d7a,0x6d,-0x6c)]);function _0x5cdc7f(_0x34a0ce,_0x288f77,_0x4db400,_0x4f1548){return _0x34fd29(_0x4db400,_0x288f77-_0x473c8d._0x10bd2d,_0x4db400-0x125,_0x4f1548- -0x5c4);}function _0x19a2d5(_0x542c44,_0x3e6747,_0x1b9a76,_0x391fba){return _0x2803df(_0x542c44-0x13c,_0x391fba,_0x1b9a76-_0x20a87f._0x503476,_0x391fba-_0x20a87f._0xfad2fc);}return _0x4b50e6(_0x477f3c[_0x19a2d5(0x111,_0x1e6e7c._0x569833,_0x1e6e7c._0x41a80c,_0x1e6e7c._0x3b51c7)],_0x326e23+_0x5cdc7f(-0x22,-0x73,-_0x1e6e7c._0x48131e,-0x88));}async function readStore(_0x2cee84){const _0x183288={_0xb1fd29:0x2a6,_0xd6efaa:0x1dc,_0x54c743:0x380,_0x29cd72:0x1c,_0x3ab217:0xf6,_0x43e723:0x3d,_0x2bfab1:0xc3,_0x43f61b:0x1df,_0x32047e:0x229},_0x5c0541={_0x3975c3:0x70},_0x564682={_0x507afb:0x12b};function _0x1d6494(_0x7f03dd,_0x1c3e00,_0x4405c8,_0x3cb846){return _0x2803df(_0x1c3e00-0x21e,_0x4405c8,_0x4405c8-0x91,_0x3cb846-_0x564682._0x507afb);}function _0x9a8475(_0x4ed448,_0x3415d0,_0x3b8139,_0xf733f2){return _0x2803df(_0x3b8139-0x207,_0x3415d0,_0x3b8139-0x68,_0xf733f2-_0x5c0541._0x3975c3);}try{return JSON[_0x1d6494(0x167,_0x183288._0xb1fd29,_0x183288._0xd6efaa,_0x183288._0x54c743)](await _0x31f2f2(_0x2cee84,_0x1d6494(_0x183288._0x29cd72,_0x183288._0x3ab217,-_0x183288._0x43e723,_0x183288._0x2bfab1)));}catch(_0x3665d7){if(_0x3665d7 instanceof Error&&'code'in _0x3665d7&&_0x3665d7['code']===_0x9a8475(0x31c,_0x183288._0x43f61b,_0x183288._0x32047e,0x207))return{};throw _0x3665d7;}}async function writeStore(_0x3dffbb,_0x1c84b9){const _0x40116={_0x4b7bc7:0x3b4,_0x4a96d4:0x4bc},_0x2f1035={_0x2606b8:0x38d,_0x9d3133:0x121};await _0x56129b(_0x4b50e6(_0x3dffbb,'..'),{'recursive':!![]});function _0x12cb3d(_0x5d4f5b,_0x4bfd71,_0x42ebf5,_0x482d5d){return _0x2803df(_0x4bfd71-_0x2f1035._0x2606b8,_0x482d5d,_0x42ebf5-0x116,_0x482d5d-_0x2f1035._0x9d3133);}await _0x3e59e1(_0x3dffbb,JSON[_0x12cb3d(0x3ca,_0x40116._0x4b7bc7,_0x40116._0x4a96d4,0x3aa)](_0x1c84b9,null,0x2),'utf8');}async function updateStore(_0x428b8a,_0x8d300d){const _0x299d97=await readStore(_0x428b8a);_0x8d300d(_0x299d97),await writeStore(_0x428b8a,_0x299d97);}function createMcpOAuthProvider(_0x263dc0){const _0x155817={_0x18721d:0x776,_0x1d14d5:0x734,_0x54842c:0x582,_0x2d7d62:0x5ec,_0x498959:0x674,_0x3a7446:0x4fb,_0x11e003:0x4c6,_0x58866c:0x728,_0x219abf:0x787,_0x3a7622:0x6d6,_0x18fcab:0x66f,_0x551bf2:0x54b,_0x9cec42:0x642},_0x544c4c={_0x108742:0x2b6},_0x31db77={_0x1a7f80:0x409,_0x46f3c1:0xa6,_0x18c3b5:0xc0},_0x2d1187={_0x28ed57:0x52a,_0x3d3768:0x494,_0x5c2132:0x51a,_0x51b2ce:0x49a,_0x2ca1b7:0x34d,_0x4bedc0:0x353,_0x65a62:0x354,_0x4d61f7:0x259,_0x168297:0x2b7,_0x368d6a:0x259,_0x5f48a6:0x1dc,_0x2d4de0:0x18e,_0x4a4087:0x18c,_0x40be6a:0x111,_0x3afc85:0x49d,_0x5bea1e:0x4c6,_0x52911f:0x536,_0x55d029:0x1d7},_0x21eda5={_0x4a1657:0x22,_0xaf686f:0x90},_0x3f87fb={_0x1dda3d:0x4b4},_0x3c7ad9={_0x19cfc0:0x6ac,_0x36958a:0x662,_0x39b101:0x71b,_0x172f6b:0x6c7},_0x3d16bc={_0x624b99:0xcc,_0x3798bc:0x10b},_0x565272={_0xc68aad:0x4f,_0x598958:0x143,_0x54344b:0xb7},_0x5512fa={_0xebe9b2:0xda},_0x1f9f52={_0x59e5e1:0x2ab,_0x2ab6a3:0x3ec,_0x205538:0x3d3,_0x12a344:0x4c0,_0x597343:0x3d7},_0x3bd5cd={_0x3ff310:0x4e,_0x586b2e:0x1dd},_0x10096a={_0x296764:0x5c3},_0xeddcd1={_0x2054c3:0x62e,_0x3d7306:0x22},_0x4d69d8=storagePath(_0x263dc0);function _0x12af0e(_0x50d217,_0x301ada,_0x283ddc,_0x10c6ea){return _0x2803df(_0x10c6ea-0x63c,_0x50d217,_0x283ddc-0x109,_0x10c6ea-0xef);}const _0x3ee0a7=_0x263dc0[_0x12af0e(_0x155817._0x18721d,0x6b4,0x697,0x706)]['oauth']?.[_0x444df6(0x5d0,0x6b3,0x7db,_0x155817._0x1d14d5)]?.[_0x12af0e(0x5a5,0x5d3,_0x155817._0x54842c,0x689)]('\x20');function _0x444df6(_0x126024,_0x5486da,_0x5023,_0x311c69){return _0x2803df(_0x5486da-_0xeddcd1._0x2054c3,_0x126024,_0x5023-0x181,_0x311c69-_0xeddcd1._0x3d7306);}const _0x4b09de={'client_name':'Nuvin','redirect_uris':[_0x263dc0[_0x12af0e(0x5e5,0x44a,0x6a1,0x55d)]],'grant_types':[_0x12af0e(0x835,0x788,_0x155817._0x2d7d62,0x714),'refresh_token'],'response_types':[_0x444df6(_0x155817._0x498959,0x58e,_0x155817._0x3a7446,_0x155817._0x11e003)],'token_endpoint_auth_method':_0x12af0e(0x735,0x77d,0x663,_0x155817._0x58866c),..._0x3ee0a7?{'scope':_0x3ee0a7}:{}};return{'clientMetadataUrl':_0x263dc0['config'][_0x12af0e(_0x155817._0x219abf,_0x155817._0x3a7622,_0x155817._0x18fcab,0x656)]?.[_0x12af0e(0x58c,_0x155817._0x551bf2,0x51c,_0x155817._0x9cec42)],get 'redirectUrl'(){const _0x848ad3={_0x41a888:0x4e,_0xa9b19f:0x15f};function _0x546997(_0x16ad30,_0x4d744e,_0x492ff4,_0x4290a6){return _0x444df6(_0x4290a6,_0x16ad30- -_0x848ad3._0x41a888,_0x492ff4-0x12f,_0x4290a6-_0x848ad3._0xa9b19f);}return _0x263dc0[_0x546997(0x501,0x4c5,_0x10096a._0x296764,0x44f)];},get 'clientMetadata'(){return _0x4b09de;},async 'state'(){const _0x2f1319={_0x367f8e:0x2b},_0x1af6f7={_0xb3e994:0xbe,_0x525be:0x306},_0x5cba7d=await readStore(_0x4d69d8);if(_0x5cba7d[_0x5dc833(_0x1f9f52._0x59e5e1,0x425,_0x1f9f52._0x2ab6a3,_0x1f9f52._0x205538)])return _0x5cba7d[_0x5dc833(0x48e,_0x1f9f52._0x12a344,_0x1f9f52._0x597343,_0x1f9f52._0x205538)];const _0x2e57bd=randomUUID();function _0x5dc833(_0x5b55e9,_0x49ca31,_0x1b05df,_0x1e3e21){return _0x12af0e(_0x1b05df,_0x49ca31-0x130,_0x1b05df-_0x1af6f7._0xb3e994,_0x1e3e21- -_0x1af6f7._0x525be);}await updateStore(_0x4d69d8,_0x25b53=>{function _0x2d8b27(_0x18e7d4,_0x2e34b7,_0x168656,_0x23bae2){return _0x2d078d(_0x2e34b7,_0x2e34b7-0x1e4,_0x18e7d4- -0x333,_0x23bae2-_0x2f1319._0x367f8e);}_0x25b53[_0x2d8b27(0x34a,0x2c2,0x291,0x321)]=_0x2e57bd;});function _0x2d078d(_0x1bdbf4,_0x5a4bfa,_0x40d701,_0x3ed52e){return _0x444df6(_0x1bdbf4,_0x40d701- -_0x3bd5cd._0x3ff310,_0x40d701-_0x3bd5cd._0x586b2e,_0x3ed52e-0x1a1);}return _0x2e57bd;},async 'clientInformation'(){function _0x14819d(_0x4d515e,_0x112bf8,_0x3a9239,_0x332239){return _0x444df6(_0x112bf8,_0x3a9239- -0x43d,_0x3a9239-_0x5512fa._0xebe9b2,_0x332239-0x99);}return(await readStore(_0x4d69d8))[_0x14819d(_0x565272._0xc68aad,_0x565272._0x598958,_0x565272._0x54344b,0x163)];},async 'saveClientInformation'(_0xe4efb1){const _0x1b092d={_0xe759dd:0x36f,_0x246035:0x317,_0x35b0ce:0x4ac},_0x17b72b={_0x2ae52a:0x15d};await updateStore(_0x4d69d8,_0x508c48=>{function _0x3af53c(_0x55ece0,_0x3f23a4,_0x1d87e8,_0xab7757){return _0x20ac(_0x55ece0-_0x17b72b._0x2ae52a,_0xab7757);}_0x508c48[_0x3af53c(_0x1b092d._0xe759dd,_0x1b092d._0x246035,_0x1b092d._0x35b0ce,0x437)]=_0xe4efb1;});},async 'tokens'(){function _0x4a825f(_0x4781b9,_0x59475b,_0x938af0,_0x1b24fb){return _0x444df6(_0x1b24fb,_0x59475b-_0x3d16bc._0x624b99,_0x938af0-_0x3d16bc._0x3798bc,_0x1b24fb-0x148);}return(await readStore(_0x4d69d8))[_0x4a825f(_0x3c7ad9._0x19cfc0,_0x3c7ad9._0x36958a,_0x3c7ad9._0x39b101,_0x3c7ad9._0x172f6b)];},async 'saveTokens'(_0x2cf9d6){await updateStore(_0x4d69d8,_0x49c755=>{const _0x38c2e3={_0x2addd9:0x200};function _0x1fa9e9(_0x438c4d,_0x206a66,_0x4f2ac3,_0x223a2c){return _0x20ac(_0x223a2c-_0x38c2e3._0x2addd9,_0x206a66);}_0x49c755[_0x1fa9e9(0x5d3,0x569,0x3ef,_0x3f87fb._0x1dda3d)]=_0x2cf9d6;});},async 'redirectToAuthorization'(_0x4d2f03){const _0x3e9d4f={_0x4eabd0:0x83,_0x1c8a31:0x131};function _0x339f23(_0xfee50b,_0x373970,_0x3aa5e6,_0x10aa8e){return _0x444df6(_0x10aa8e,_0xfee50b- -0x112,_0x3aa5e6-_0x3e9d4f._0x4eabd0,_0x10aa8e-_0x3e9d4f._0x1c8a31);}await _0x263dc0[_0x339f23(0x4a2,0x521,0x5dc,0x588)](_0x4d2f03);},async 'saveCodeVerifier'(_0x38612c){await updateStore(_0x4d69d8,_0x1b57c2=>{_0x1b57c2['codeVerifier']=_0x38612c;});},async 'codeVerifier'(){const _0x50ec43={_0x4b1406:0x607},_0x2ff431=(await readStore(_0x4d69d8))['codeVerifier'];function _0x1314b6(_0x329b21,_0x55590c,_0xc7ee90,_0x1390e0){return _0x444df6(_0xc7ee90,_0x329b21- -_0x50ec43._0x4b1406,_0xc7ee90-0x16d,_0x1390e0-0x1bf);}if(!_0x2ff431)throw new Error(_0x1314b6(-_0x21eda5._0x4a1657,0x10e,_0x21eda5._0xaf686f,0xb9));return _0x2ff431;},async 'invalidateCredentials'(_0x472246){await updateStore(_0x4d69d8,_0x419d52=>{(_0x472246===_0x5e2e0b(0x596,0x4c6,_0x2d1187._0x28ed57,0x5ad)||_0x472246===_0x5e2e0b(_0x2d1187._0x3d3768,_0x2d1187._0x5c2132,_0x2d1187._0x51b2ce,0x40f))&&(_0x419d52['clientInformation']=void 0x0);(_0x472246===_0x1bc0fb(_0x2d1187._0x2ca1b7,_0x2d1187._0x4bedc0,_0x2d1187._0x65a62,_0x2d1187._0x4d61f7)||_0x472246==='tokens')&&(_0x419d52['tokens']=void 0x0);function _0x5e2e0b(_0x1ed478,_0x1573e4,_0x55ae2b,_0x15175a){return _0x20ac(_0x1573e4-0xd5,_0x15175a);}function _0x1bc0fb(_0x11086f,_0x5ef839,_0x33e17c,_0x374e7c){return _0x20ac(_0x374e7c- -0x198,_0x5ef839);}(_0x472246===_0x1bc0fb(0x399,_0x2d1187._0x168297,0x149,_0x2d1187._0x368d6a)||_0x472246==='verifier')&&(_0x419d52[_0x1bc0fb(_0x2d1187._0x5f48a6,_0x2d1187._0x2d4de0,_0x2d1187._0x4a4087,_0x2d1187._0x40be6a)]=void 0x0,_0x419d52['state']=void 0x0),(_0x472246===_0x5e2e0b(_0x2d1187._0x3afc85,_0x2d1187._0x5bea1e,_0x2d1187._0x52911f,0x57a)||_0x472246===_0x1bc0fb(0xdd,0x253,_0x2d1187._0x55d029,0x14a))&&(_0x419d52['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x41c188){await updateStore(_0x4d69d8,_0x2fe2dd=>{_0x2fe2dd['discoveryState']=_0x41c188;});},async 'discoveryState'(){function _0x126ab9(_0x503132,_0x330741,_0x550110,_0x4e5cc5){return _0x444df6(_0x550110,_0x330741- -_0x31db77._0x1a7f80,_0x550110-_0x31db77._0x46f3c1,_0x4e5cc5-_0x31db77._0x18c3b5);}return(await readStore(_0x4d69d8))[_0x126ab9(0x2c0,0x18c,_0x544c4c._0x108742,0x144)];}};}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(_0x487eee,_0x43ce98){const _0x54b885={_0x16ad8b:0x706,_0x2a0c6e:0x620},_0x488309={_0x2ebaa3:0x10d},_0x274416={_0x3d582a:0x56b,_0x48f906:0xe,_0x4ba9aa:0x186};function _0x5ef7bb(_0x4614fa,_0x1c2e11,_0x1ec690,_0x4f9f7e){return _0x2803df(_0x4f9f7e-_0x274416._0x3d582a,_0x1c2e11,_0x1ec690-_0x274416._0x48f906,_0x4f9f7e-_0x274416._0x4ba9aa);}const _0xcc8584=_0x1ffe52=>_0x1ffe52[_0x5ef7bb(0x58f,0x49f,0x623,0x50e)](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'');function _0x5dd46c(_0x4e3126,_0x46f6ef,_0x234984,_0x44f505){return _0x34fd29(_0x4e3126,_0x46f6ef-_0x488309._0x2ebaa3,_0x234984-0xeb,_0x44f505- -0x36a);}return _0x5ef7bb(_0x54b885._0x16ad8b,0x6bf,_0x54b885._0x2a0c6e,0x5d9)+_0xcc8584(_0x487eee)+'_'+_0xcc8584(_0x43ce98);}function isObject(_0x389680){return typeof _0x389680==='object'&&_0x389680!==null&&!Array['isArray'](_0x389680);}function toSupportedSchema(_0x530d75){const _0x1babc3={_0x4cefd7:0x4c5,_0x5db6ea:0x5c2,_0x3ced28:0x53f,_0xd1d5fc:0x3f8,_0x1b532f:0x45a,_0x5ee754:0x3b1,_0x2a72fb:0x493,_0x3adc39:0x4e2,_0x5ad170:0x27d,_0x445152:0x262,_0x23cd65:0x60b,_0x856c2:0x351,_0x3f7d8b:0x49a,_0x3e755a:0x5df,_0x242077:0x49a,_0x5388e1:0x49b,_0x572340:0x577,_0x245850:0x2c0,_0x2f7206:0x21f,_0x4eb734:0x33a},_0x19bd52={_0x34b069:0x162,_0xcb53e6:0xec},_0x3cbbff={_0x2474d6:0x12e,_0x4a2303:0x27f};if(!isObject(_0x530d75))return void 0x0;if(_0x530d75[_0x500e28(_0x1babc3._0x4cefd7,0x56d,_0x1babc3._0x5db6ea,_0x1babc3._0x3ced28)]===_0x58f3a7(_0x1babc3._0xd1d5fc,_0x1babc3._0x1b532f,_0x1babc3._0x5ee754,_0x1babc3._0x2a72fb))return{'type':_0x58f3a7(_0x1babc3._0xd1d5fc,0x48e,_0x1babc3._0x3adc39,0x43c)};function _0x58f3a7(_0x333c67,_0x36b5ee,_0x14cc09,_0x12e127){return _0x34fd29(_0x12e127,_0x36b5ee-_0x3cbbff._0x2474d6,_0x14cc09-0x171,_0x333c67- -_0x3cbbff._0x4a2303);}if(_0x530d75['type']==='number'||_0x530d75[_0x58f3a7(_0x1babc3._0x5ad170,0x2b4,_0x1babc3._0x445152,0x33d)]===_0x500e28(0x637,0x6df,0x591,_0x1babc3._0x23cd65))return{'type':_0x58f3a7(_0x1babc3._0x856c2,0x27a,0x2f6,0x247)};if(_0x530d75['type']===_0x58f3a7(_0x1babc3._0x3f7d8b,_0x1babc3._0x3e755a,0x416,0x3b8))return{'type':_0x58f3a7(_0x1babc3._0x242077,0x528,0x5b3,_0x1babc3._0x5388e1)};function _0x500e28(_0x2e99e9,_0x19784c,_0xb3e36a,_0x41b508){return _0x2803df(_0x41b508-0x6cb,_0xb3e36a,_0xb3e36a-_0x19bd52._0x34b069,_0x41b508-_0x19bd52._0xcb53e6);}if(_0x530d75[_0x500e28(0x49c,_0x1babc3._0x572340,0x426,_0x1babc3._0x3ced28)]==='array')return{'type':_0x58f3a7(_0x1babc3._0x245850,0x28b,_0x1babc3._0x2f7206,_0x1babc3._0x4eb734),'items':toSupportedSchema(_0x530d75['items'])??{'type':'string'}};if(_0x530d75[_0x58f3a7(0x27d,0x23a,0x1b4,0x169)]==='object')return toNuvinToolSchema(_0x530d75);return void 0x0;}function toNuvinToolSchema(_0x1a5fbc){const _0x370429={_0x3eaa19:0x76,_0x22dde1:0x3f6,_0xbac1c3:0x35e,_0x22c47b:0x4b5,_0x430a90:0x252,_0x5555ba:0x1d2,_0x3c5abf:0x415,_0x46007f:0x4a6,_0x21a75c:0x38d,_0x2005d2:0x3b2,_0x585b37:0x4e4,_0x57fbcc:0x517,_0x42cacd:0x221,_0x64c06c:0x320,_0x462670:0x366,_0x5c427a:0x387},_0x3fee30={_0x5dc674:0x1c6,_0x45c7d5:0xc5,_0x3f2d1:0x192},_0x4503f2={_0x3a9e24:0x7e};if(!isObject(_0x1a5fbc)||_0x1a5fbc[_0x5dbe36(_0x370429._0x3eaa19,0x141,0x146,0xd)]!==_0x8ae21c(0x488,_0x370429._0x22dde1,_0x370429._0xbac1c3,_0x370429._0x22c47b))return{'type':_0x5dbe36(_0x370429._0x430a90,0xf0,_0x370429._0x5555ba,0x1fd),'properties':{}};const _0xc56552={},_0x1d0599=isObject(_0x1a5fbc[_0x8ae21c(0x53b,0x4b5,0x38b,0x5e8)])?_0x1a5fbc[_0x8ae21c(0x50e,0x4b5,_0x370429._0x3c5abf,_0x370429._0x46007f)]:{};function _0x5dbe36(_0x216901,_0x444b61,_0x160790,_0x5d9ffb){return _0x2803df(_0x160790-0x2d2,_0x216901,_0x160790-0xfb,_0x5d9ffb-_0x4503f2._0x3a9e24);}function _0x8ae21c(_0x4d2bec,_0x38854d,_0x570079,_0x3c9144){return _0x34fd29(_0x4d2bec,_0x38854d-_0x3fee30._0x5dc674,_0x570079-_0x3fee30._0x45c7d5,_0x38854d- -_0x3fee30._0x3f2d1);}for(const [_0x3339a2,_0x58866f]of Object[_0x5dbe36(0x433,_0x370429._0x21a75c,0x2f8,0x3f3)](_0x1d0599)){const _0x8340c9=toSupportedSchema(_0x58866f);if(_0x8340c9)_0xc56552[_0x3339a2]=_0x8340c9;}const _0xe5c501=Array[_0x8ae21c(_0x370429._0x2005d2,_0x370429._0x585b37,_0x370429._0x57fbcc,0x526)](_0x1a5fbc[_0x5dbe36(_0x370429._0x42cacd,0x3f0,0x33e,_0x370429._0x64c06c)])?_0x1a5fbc['required']['filter'](_0x1fd426=>typeof _0x1fd426===_0x8ae21c(0x562,0x4e5,0x57e,0x3a1)):void 0x0;return _0xe5c501?.['length']?{'type':_0x8ae21c(0x40b,0x3f6,_0x370429._0x462670,_0x370429._0x5c427a),'properties':_0xc56552,'required':_0xe5c501}:{'type':'object','properties':_0xc56552};}function isJsonObject(_0x14281d){const _0xf4e668={_0x22c486:0x49f,_0xf5b07c:0x401,_0x46b34e:0x65d,_0xa7aaf:0x58c},_0x554ba4={_0x147c16:0x1d7};function _0x4c885b(_0x3d539c,_0x33fa33,_0x3f2b35,_0x327dfb){return _0x2803df(_0x3d539c-0x59f,_0x33fa33,_0x3f2b35-0x46,_0x327dfb-0x156);}function _0x4daa9f(_0x431b8e,_0x3d875b,_0x34f287,_0x4d5153){return _0x2803df(_0x34f287-0x2b9,_0x4d5153,_0x34f287-_0x554ba4._0x147c16,_0x4d5153-0x194);}return typeof _0x14281d===_0x4c885b(_0xf4e668._0x22c486,0x3f1,0x5cd,_0xf4e668._0xf5b07c)&&_0x14281d!==null&&!Array[_0x4c885b(0x58d,0x699,_0xf4e668._0x46b34e,_0xf4e668._0xa7aaf)](_0x14281d);}function formatMcpContent(_0x3f2206){const _0x2434a9={_0x18799e:0x55d,_0x376b31:0x408,_0x34fd3d:0x3b5,_0x231b77:0x333,_0x287151:0x2fe,_0x1a82e2:0x421,_0x39b070:0x4d8,_0x447181:0x3b8,_0xb468cb:0x3eb,_0x5b1ff7:0x636,_0x54ee00:0x53e,_0x367e84:0x319,_0x5f4e26:0x610,_0xe78502:0x6d2,_0x30ce1a:0x528},_0x2b77e8={_0x1e75b6:0x45f,_0x51e6c2:0xf3,_0x4337aa:0x1ab},_0xc1f7ae={_0x42b6b9:0x28e,_0x566ffc:0x3e8,_0x387890:0x517,_0x13c9f3:0x302,_0x1adafc:0x4c6,_0x1c8110:0x437,_0x4c8a36:0x4f0,_0x3c93bc:0x3a4},_0x4edcfa={_0x28e261:0x190,_0x2cfb16:0x50};function _0x3fe47b(_0x3cadb9,_0x126e5c,_0xef1449,_0x4d5c03){return _0x2803df(_0x126e5c-0x5e9,_0xef1449,_0xef1449-_0x4edcfa._0x28e261,_0x4d5c03-_0x4edcfa._0x2cfb16);}const _0x12e847=Array[_0x1e1380(_0x2434a9._0x18799e,_0x2434a9._0x376b31,0x44d,_0x2434a9._0x34fd3d)](_0x3f2206[_0x1e1380(_0x2434a9._0x231b77,_0x2434a9._0x287151,0x3ba,0x291)])?_0x3f2206['content']:[],_0x26fe78=_0x12e847[_0x3fe47b(_0x2434a9._0x1a82e2,_0x2434a9._0x39b070,_0x2434a9._0x447181,0x4be)](_0x2ae9cd=>{const _0x1aea3b={_0x51d813:0xfb,_0x36d056:0x1c8,_0x453d43:0x84},_0x33b19a={_0x8354fd:0x17};if(!isObject(_0x2ae9cd))return'';function _0x355006(_0x24dc27,_0x474d8e,_0x175383,_0x2955f9){return _0x1e1380(_0x24dc27-0x10d,_0x474d8e-0x137,_0x2955f9- -_0x33b19a._0x8354fd,_0x24dc27);}if(_0x2ae9cd[_0x44b8e0(0x109,0x373,0x24f,_0xc1f7ae._0x42b6b9)]===_0x355006(0x59b,_0xc1f7ae._0x566ffc,0x5a4,_0xc1f7ae._0x387890)&&typeof _0x2ae9cd['text']===_0x355006(_0xc1f7ae._0x13c9f3,_0xc1f7ae._0x1adafc,0x501,_0xc1f7ae._0x1c8110))return _0x2ae9cd[_0x44b8e0(0x5b7,_0xc1f7ae._0x4c8a36,0x4aa,_0xc1f7ae._0x3c93bc)];function _0x44b8e0(_0x5a3a47,_0x3c4df9,_0x256c8e,_0x1a5a81){return _0x1e1380(_0x5a3a47-_0x1aea3b._0x51d813,_0x3c4df9-_0x1aea3b._0x36d056,_0x256c8e- -_0x1aea3b._0x453d43,_0x1a5a81);}return JSON['stringify'](_0x2ae9cd);})[_0x1e1380(0x2ba,_0x2434a9._0xb468cb,0x3b4,0x451)](_0xcdda0d=>_0xcdda0d['length']>0x0)[_0x3fe47b(0x74e,_0x2434a9._0x5b1ff7,0x721,_0x2434a9._0x54ee00)]('\x0a');if(_0x26fe78[_0x1e1380(0x37b,_0x2434a9._0x367e84,0x444,0x30b)]>0x0)return _0x26fe78;function _0x1e1380(_0x3e2aeb,_0x1050dd,_0x527845,_0x1830ae){return _0x2803df(_0x527845-_0x2b77e8._0x1e75b6,_0x1830ae,_0x527845-_0x2b77e8._0x51e6c2,_0x1830ae-_0x2b77e8._0x4337aa);}return JSON[_0x3fe47b(0x6c2,_0x2434a9._0x5f4e26,_0x2434a9._0xe78502,_0x2434a9._0x30ce1a)](_0x3f2206,null,0x2);}function createMcpTool(_0x8ad7f){const _0x36a9b5={_0x2c8966:0x79f,_0x19cfba:0x709,_0x46b764:0x7e,_0x5bb980:0xbb,_0x133c8d:0x1e2,_0x3d082d:0x17a,_0x56599c:0x163,_0x2e0dcc:0x23d,_0x189214:0xc,_0xa562a9:0x10c,_0x37e3a3:0x93,_0x53235c:0xb3,_0x241830:0x19c,_0x36336a:0x127,_0x278b39:0x589,_0xc71288:0x52a,_0x3f54c3:0x77c,_0x621bbd:0x6c8,_0x469d20:0x5c2,_0x2b1d2e:0x5f7,_0x40ffc8:0x6b1,_0x3f8345:0x717},_0x50f2b3={_0x2bd206:0x491,_0x2d5c0d:0x452,_0x86ec58:0x484,_0x47bba1:0x4f7,_0x3c60e7:0x42e,_0x1d60dc:0x480,_0x17f216:0x564,_0x1d79d2:0x509,_0x24ef0a:0x25b,_0xf90713:0x3bd,_0x3a5dfb:0x27b,_0x3e3333:0x32a,_0x39ace5:0x546},_0x151902={_0x369461:0x1c9,_0x408275:0x8d,_0x4448d0:0x15a};function _0x3fdd98(_0x56477a,_0x1cfa64,_0x75a75d,_0x55d417){return _0x34fd29(_0x56477a,_0x1cfa64-0xa2,_0x75a75d-0x17f,_0x1cfa64- -0x63);}function _0x3fbdf3(_0x1a79f6,_0x4af65b,_0x2bfa2f,_0x42a6d0){return _0x2803df(_0x42a6d0- -0x25,_0x4af65b,_0x2bfa2f-0xbd,_0x42a6d0-0x156);}const _0x404f9f=createMcpToolName(_0x8ad7f[_0x3fdd98(0x5e4,0x4f5,0x463,0x602)],_0x8ad7f[_0x3fdd98(0x5a4,0x6c8,_0x36a9b5._0x2c8966,_0x36a9b5._0x19cfba)][_0x3fbdf3(-0x172,-0x111,-0xc8,-0x5b)]);return defineTool({'name':_0x404f9f,'description':_0x8ad7f[_0x3fbdf3(-0xb6,-0xb7,0x1f,_0x36a9b5._0x46b764)][_0x3fbdf3(-_0x36a9b5._0x5bb980,-_0x36a9b5._0x133c8d,-_0x36a9b5._0x3d082d,-_0x36a9b5._0x56599c)]??_0x3fbdf3(-_0x36a9b5._0x2e0dcc,-0x19,-_0x36a9b5._0x189214,-_0x36a9b5._0xa562a9)+_0x8ad7f[_0x3fbdf3(0x193,_0x36a9b5._0x37e3a3,_0x36a9b5._0x53235c,0x7e)][_0x3fbdf3(-_0x36a9b5._0x241830,-_0x36a9b5._0x36336a,-0x7f,-0x5b)]+_0x3fdd98(_0x36a9b5._0x278b39,_0x36a9b5._0xc71288,0x4ef,0x5ec)+_0x8ad7f['serverName'],'inputSchema':toNuvinToolSchema(_0x8ad7f[_0x3fdd98(_0x36a9b5._0x3f54c3,_0x36a9b5._0x621bbd,0x73b,_0x36a9b5._0x469d20)][_0x3fdd98(_0x36a9b5._0x2b1d2e,_0x36a9b5._0x40ffc8,_0x36a9b5._0x3f8345,0x669)]),async *'execute'(_0x482561){const _0x333e1a={_0x817601:0x133,_0x40856d:0x1a},_0x354384=await _0x8ad7f[_0x3d5c60(_0x50f2b3._0x2bd206,_0x50f2b3._0x2d5c0d,_0x50f2b3._0x86ec58,0x3b8)][_0x35cbfd(_0x50f2b3._0x47bba1,0x42b,0x4ba,0x567)]({'name':_0x8ad7f[_0x3d5c60(0x430,0x4df,_0x50f2b3._0x3c60e7,0x30e)]['name'],'arguments':isJsonObject(_0x482561)?_0x482561:{}});if(_0x354384[_0x35cbfd(0x3c1,_0x50f2b3._0x1d60dc,_0x50f2b3._0x17f216,_0x50f2b3._0x1d79d2)])throw new ToolExecutionError(formatMcpContent(_0x354384),{'serverName':_0x8ad7f[_0x3d5c60(0x358,0x28a,_0x50f2b3._0x24ef0a,0x25b)],'toolName':_0x8ad7f['tool'][_0x3d5c60(_0x50f2b3._0xf90713,0x377,0x355,_0x50f2b3._0x3a5dfb)]});function _0x35cbfd(_0x565d15,_0x34ff77,_0x339e7d,_0x1a2b95){return _0x3fdd98(_0x1a2b95,_0x34ff77- -_0x151902._0x369461,_0x339e7d-_0x151902._0x408275,_0x1a2b95-_0x151902._0x4448d0);}function _0x3d5c60(_0x17f451,_0x527dd2,_0x5719aa,_0x59fbd1){return _0x3fbdf3(_0x17f451-_0x333e1a._0x817601,_0x17f451,_0x5719aa-_0x333e1a._0x40856d,_0x5719aa-0x3b0);}return yield createToolOutput(formatMcpContent(_0x354384),{'serverName':_0x8ad7f[_0x3d5c60(0x37e,0x265,0x25b,0x17b)],'toolName':_0x8ad7f['tool'][_0x35cbfd(_0x50f2b3._0x3e3333,0x426,0x344,_0x50f2b3._0x39ace5)],'result':_0x354384}),void 0x0;}});}function resolvePrefix(_0xe047e1,_0x389fb2){const _0x290798={_0x1fabfc:0xce},_0x5e68ba={_0x41468f:0x191,_0x234440:0x185,_0x3e40de:0x5db};function _0xbe09d(_0x467ba5,_0x18e6d8,_0x505191,_0x5c1fb4){return _0x34fd29(_0x18e6d8,_0x18e6d8-_0x5e68ba._0x41468f,_0x505191-_0x5e68ba._0x234440,_0x505191- -_0x5e68ba._0x3e40de);}return _0x389fb2[_0xbe09d(_0x290798._0x1fabfc,0x24,0xcb,0x188)]??_0xe047e1;}function buildMcpHttpHeaders(_0x1a0d90){const _0x21f26d={_0x310bdc:0x111,_0x3d5c18:0x1ad,_0x47c6dd:0x168,_0x1a1b24:0x1d8,_0x2a9e3a:0xe0,_0x26c1a0:0x23d,_0x530378:0x160,_0x33907b:0x15e,_0x603abc:0x240,_0x38f67f:0x2dd,_0x1f69f2:0x1a8,_0x28a518:0x1b6},_0x3148d3={_0x308b50:0x1c4},_0x1b4213={_0x42f84c:0x197,_0x4f2e2e:0x15f};function _0xe48d1a(_0x2c478a,_0x59bdeb,_0x444e48,_0x4f2c00){return _0x2803df(_0x59bdeb-0x2df,_0x444e48,_0x444e48-_0x1b4213._0x42f84c,_0x4f2c00-_0x1b4213._0x4f2e2e);}const _0x5ea62a={..._0x1a0d90[_0x332b14(0x99,0x7e,0xbe,0x143)]??{}};function _0x332b14(_0x15ec2c,_0x5dc671,_0x53d9cc,_0x44f010){return _0x2803df(_0x44f010-0x24c,_0x53d9cc,_0x53d9cc-0x182,_0x44f010-_0x3148d3._0x308b50);}return _0x1a0d90[_0xe48d1a(0x196,0x168,0x4f,0x236)]?.[_0xe48d1a(_0x21f26d._0x310bdc,0x153,0x144,0xa6)]==='bearer'&&_0x1a0d90[_0xe48d1a(_0x21f26d._0x3d5c18,_0x21f26d._0x47c6dd,0x131,_0x21f26d._0x1a1b24)][_0x332b14(0xfc,_0x21f26d._0x2a9e3a,0x240,0x1bc)]&&_0x5ea62a[_0xe48d1a(_0x21f26d._0x26c1a0,_0x21f26d._0x530378,0x1b5,0x38)]===void 0x0&&(_0x5ea62a['Authorization']='Bearer\x20'+_0x1a0d90[_0xe48d1a(0x85,0x168,_0x21f26d._0x33907b,_0x21f26d._0x603abc)]['token']),Object[_0x332b14(_0x21f26d._0x38f67f,0x24e,_0x21f26d._0x1f69f2,_0x21f26d._0x28a518)](_0x5ea62a)['length']>0x0?_0x5ea62a:void 0x0;}function getErrorMessage(_0x24d2d9){return _0x24d2d9 instanceof Error?_0x24d2d9['message']:String(_0x24d2d9);}function isUnauthorizedError(_0x5f50f2){const _0x1b8ffb={_0x3794e0:0x232,_0x5f33eb:0x2e2,_0x428580:0x44a},_0x25a5f4={_0x2bdd26:0x3b3};function _0xccf4aa(_0xd3f440,_0x5b449e,_0x3237b0,_0x3ac067){return _0x34fd29(_0x5b449e,_0x5b449e-0x5c,_0x3237b0-0x1b1,_0x3ac067- -0x2a8);}function _0x5d5ae2(_0x29e18f,_0x2a0764,_0x426ebc,_0x2dc3d5){return _0x34fd29(_0x2dc3d5,_0x2a0764-0x70,_0x426ebc-0x11d,_0x29e18f- -_0x25a5f4._0x2bdd26);}return _0x5f50f2 instanceof Error&&_0x5f50f2[_0xccf4aa(_0x1b8ffb._0x3794e0,0x28b,0x398,_0x1b8ffb._0x5f33eb)]['name']===_0xccf4aa(0x25f,_0x1b8ffb._0x428580,0x3d9,0x382);}async function connectMcpServer(_0x489b11,_0x46049a,_0x32ecc6){const _0x83b0a8={_0x41bfb9:0x556,_0x368f72:0xf7,_0x318062:0x7b,_0x29282c:0x5c,_0x20dd99:0x55,_0x5413fc:0x19a,_0x447855:0xfa,_0x144dad:0xeb,_0x41feec:0x7d,_0x2ecc52:0x4a,_0x12b410:0x73f,_0x5565ef:0x730,_0x3da8a3:0x36a,_0x211712:0x63f,_0x57474b:0x606,_0x42ed8d:0x714,_0x5a631a:0x614,_0x295253:0x7f2,_0xbf626:0x5d3,_0x318122:0x5bd,_0x554f32:0x545,_0x114d9f:0x597,_0x4efeb9:0x4f0,_0xa211a5:0x499,_0x5e1291:0x4be,_0x54a686:0x7e,_0x5ba775:0x1e,_0x175d7a:0x200,_0x886cc6:0xb4,_0x3c8f38:0x117,_0x162113:0x69f,_0x28edc7:0x669,_0x50a87a:0x184,_0x11eca1:0x521,_0x4628c5:0x6a4,_0x4e6a66:0x183,_0x3d3aa1:0x71b,_0x245e86:0x798,_0xea9c3b:0x6da,_0x14c2c9:0x81a,_0x3c44e4:0x6e5,_0xbb16f2:0x6f5,_0x372a49:0x10f,_0x467ecb:0x9b,_0xc615b2:0xa5,_0x432cbd:0x159,_0x42d357:0x13b,_0x277481:0x0,_0x534109:0xb8},_0xa592f4={_0x4c5cac:0x407,_0x2cb711:0x33c},_0x1623f9={_0x252d29:0xd5},_0x3629e7={_0x1b713e:0x49e,_0x2b2a3c:0x3e7,_0x4447b0:0x3a4,_0x1d45ef:0x336},_0x2e72f2={_0x12c856:0x1b},_0x3a061d={_0x4846aa:0x6a,_0x14ec77:0x10a},_0x49e08b={_0x17c60d:0x561,_0x1b662e:0x60e,_0x225084:0x663,_0x33f6f6:0x58e},_0x5d4615={_0x1dfa51:0x6f,_0x3ba944:0x1b3},_0x459db6={_0x37d76a:0x6c0},_0x42df7b={_0x2b2413:0x1f2,_0xebe8ac:0x1d9};function _0x4642b3(_0x5472dd,_0x497133,_0x410874,_0x4b7918){return _0x34fd29(_0x4b7918,_0x497133-_0x42df7b._0x2b2413,_0x410874-_0x42df7b._0xebe8ac,_0x5472dd- -0x63);}const _0x5df837=new Client({'name':'nuvin','version':_0x4642b3(0x5f8,_0x83b0a8._0x41bfb9,0x661,0x4dc)});if(_0x46049a[_0x14729b(-0x92,-_0x83b0a8._0x368f72,-0xec,-_0x83b0a8._0x318062)]===_0x14729b(-_0x83b0a8._0x29282c,-_0x83b0a8._0x20dd99,-0xa3,-_0x83b0a8._0x5413fc)||_0x46049a[_0x14729b(0xe2,0xbc,-0x54,0xdc)]){if(!_0x46049a[_0x14729b(0x31,-_0x83b0a8._0x447855,-0x54,-0x15b)])throw new Error(_0x14729b(_0x83b0a8._0x144dad,_0x83b0a8._0x41feec,0xbe,-_0x83b0a8._0x2ecc52)+_0x489b11+_0x4642b3(0x718,0x718,_0x83b0a8._0x12b410,_0x83b0a8._0x5565ef));if(_0x46049a[_0x4642b3(0x4ae,_0x83b0a8._0x3da8a3,0x599,0x579)]?.['type']==='oauth'&&!_0x32ecc6?.[_0x4642b3(_0x83b0a8._0x211712,_0x83b0a8._0x57474b,_0x83b0a8._0x42ed8d,0x4ff)])throw new Error(_0x4642b3(0x71b,_0x83b0a8._0x5a631a,_0x83b0a8._0x295253,0x6f6)+_0x489b11+_0x4642b3(_0x83b0a8._0xbf626,_0x83b0a8._0x318122,0x5ea,_0x83b0a8._0x554f32));const _0x3d8570=buildMcpHttpHeaders(_0x46049a),_0x239639=_0x46049a[_0x4642b3(0x4ae,_0x83b0a8._0x114d9f,_0x83b0a8._0x4efeb9,0x3eb)]?.[_0x4642b3(_0x83b0a8._0xa211a5,0x584,_0x83b0a8._0x5e1291,0x48c)]==='oauth'&&_0x32ecc6?.['oauth']?createMcpOAuthProvider({'serverName':_0x489b11,'callbackUrl':_0x32ecc6[_0x14729b(0x73,-_0x83b0a8._0x54a686,-_0x83b0a8._0x5ba775,-0x115)][_0x14729b(-_0x83b0a8._0x175d7a,-_0x83b0a8._0x886cc6,-_0x83b0a8._0x3c8f38,-0x1a8)],'storageDir':_0x32ecc6[_0x4642b3(0x63f,0x6cd,_0x83b0a8._0x162113,_0x83b0a8._0x28edc7)]['storageDir'],'config':_0x46049a['auth'],'onRedirect':_0x216bde=>_0x32ecc6[_0x4642b3(0x63f,0x583,0x656,0x577)]?.['onRedirect'](_0x489b11,_0x216bde)}):void 0x0,_0x476248=new StreamableHTTPClientTransport(new URL(_0x46049a[_0x14729b(-0xd4,-0x73,-0x54,-_0x83b0a8._0x50a87a)]),{'authProvider':_0x239639,'requestInit':_0x3d8570?{'headers':_0x3d8570}:void 0x0});await _0x5df837[_0x4642b3(0x5a5,_0x83b0a8._0x11eca1,_0x83b0a8._0x4628c5,0x5ea)](_0x476248);}else{if(!_0x46049a[_0x14729b(0x80,0x16b,0x7d,_0x83b0a8._0x4e6a66)])throw new Error(_0x4642b3(_0x83b0a8._0x3d3aa1,0x758,0x7bc,_0x83b0a8._0x245e86)+_0x489b11+'\x20requires\x20command\x20for\x20stdio\x20transport');const _0x29b477=new StdioClientTransport({'command':_0x46049a[_0x4642b3(_0x83b0a8._0xea9c3b,_0x83b0a8._0x14c2c9,0x6a6,0x794)],'args':_0x46049a[_0x4642b3(0x5d0,0x6de,_0x83b0a8._0x3c44e4,_0x83b0a8._0xbb16f2)]??[],'env':_0x46049a[_0x14729b(_0x83b0a8._0x372a49,_0x83b0a8._0x467ecb,_0x83b0a8._0xc615b2,_0x83b0a8._0x432cbd)]});await _0x5df837[_0x14729b(-_0x83b0a8._0x42d357,_0x83b0a8._0x277481,-_0x83b0a8._0x534109,-0x13c)](_0x29b477);}function _0x14729b(_0x440ccf,_0xe07ade,_0x48ca85,_0x55698d){return _0x34fd29(_0x440ccf,_0xe07ade-0x17e,_0x48ca85-0x1e3,_0x48ca85- -_0x459db6._0x37d76a);}return{async 'listTools'(){function _0x3aa6d6(_0x9ec186,_0x32be83,_0x27f7d1,_0x513385){return _0x14729b(_0x32be83,_0x32be83-_0x5d4615._0x1dfa51,_0x27f7d1-0x5ae,_0x513385-_0x5d4615._0x3ba944);}return await _0x5df837[_0x3aa6d6(_0x49e08b._0x17c60d,_0x49e08b._0x1b662e,_0x49e08b._0x225084,_0x49e08b._0x33f6f6)]();},async 'callTool'(_0x5d324e){function _0x498d4c(_0x1c4b34,_0x189898,_0x14c882,_0x1f62f2){return _0x14729b(_0x14c882,_0x189898-_0x3a061d._0x4846aa,_0x1c4b34-0x6ac,_0x1f62f2-_0x3a061d._0x14ec77);}function _0x3d7073(_0x13e285,_0xe86b5d,_0x2d4f58,_0x138c3e){return _0x14729b(_0x138c3e,_0xe86b5d-_0x2e72f2._0x12c856,_0x13e285-0x556,_0x138c3e-0xe3);}return await _0x5df837[_0x3d7073(0x4ad,0x4fa,_0x3629e7._0x1b713e,_0x3629e7._0x2b2a3c)]({'method':_0x3d7073(_0x3629e7._0x4447b0,0x416,_0x3629e7._0x1d45ef,0x267),'params':_0x5d324e},CallToolResultSchema);},async 'close'(){function _0x2cf880(_0x1c3d09,_0x19bc66,_0x449386,_0x5ace2d){return _0x14729b(_0x19bc66,_0x19bc66-0x124,_0x5ace2d-0x2a2,_0x5ace2d-_0x1623f9._0x252d29);}await _0x5df837[_0x2cf880(_0xa592f4._0x4c5cac,0x3da,0x280,_0xa592f4._0x2cb711)]();}};}async function createMcpToolsFromServers(_0x5ad457){const _0x596324={_0x4e5acf:0x5b4,_0x1b9c51:0x68c,_0x2506cc:0x646,_0x3c2d3c:0x87,_0x13dc46:0x15d,_0x4878d6:0x413,_0x39d053:0x3d3,_0x2e62d9:0x9b,_0x1826b3:0x5ae,_0x314131:0x580,_0x2bb9a0:0x673,_0x2676ba:0x425,_0x2573d7:0x539,_0x2fa9e7:0x4d3,_0x2c1ee6:0x3e8,_0x147782:0xa7,_0xf1bd91:0x45,_0x524856:0x82},_0x17eeb3={_0x5aaa69:0x4a8,_0x3bf741:0x16e,_0x57ccfe:0x1a4},_0x403df0={_0x3ee9cf:0x1b5,_0x207647:0x1dc},_0x4de095={_0x3300b5:0x143,_0x43ea98:0x60};function _0x160716(_0x466d94,_0x2ecda5,_0x38d5f6,_0x30b4db){return _0x34fd29(_0x2ecda5,_0x2ecda5-_0x4de095._0x3300b5,_0x38d5f6-_0x4de095._0x43ea98,_0x38d5f6- -0x119);}const _0x1ff051=_0x5ad457[_0x2ba2cf(-0x6a,0x120,0x51,0x20)]??connectMcpServer,_0x1bf391=[],_0x23bb13={},_0x6ac51b=[];for(const [_0x197865,_0xa70de2]of Object[_0x160716(0x596,_0x596324._0x4e5acf,0x595,0x56d)](_0x5ad457['servers']??{})){if(_0xa70de2[_0x160716(_0x596324._0x1b9c51,0x617,0x5b5,_0x596324._0x2506cc)]===![]){_0x23bb13[_0x197865]={'status':'disabled'};continue;}try{const _0x5228ec=await _0x1ff051(_0x197865,_0xa70de2,_0x5ad457[_0x2ba2cf(0x1f5,_0x596324._0x3c2d3c,0x2a4,_0x596324._0x13dc46)]);_0x1bf391[_0x160716(0x344,0x319,_0x596324._0x4878d6,_0x596324._0x39d053)](_0x5228ec);const _0x599572=await _0x5228ec[_0x2ba2cf(0xc8,_0x596324._0x2e62d9,0xf3,0x18d)]();let _0x3e5a89=0x0;for(const _0x5256e of _0x599572['tools']){const _0x49aec=_0x5ad457[_0x160716(_0x596324._0x1826b3,0x440,_0x596324._0x314131,_0x596324._0x2bb9a0)]?.[_0x197865]?.[_0x5256e[_0x160716(_0x596324._0x2676ba,0x5ec,_0x596324._0x2573d7,_0x596324._0x2fa9e7)]];if(_0x49aec===![])continue;_0x3e5a89+=0x1,_0x6ac51b[_0x160716(0x307,_0x596324._0x2c1ee6,0x413,0x388)](createMcpTool({'serverName':resolvePrefix(_0x197865,_0xa70de2),'tool':_0x5256e,'client':_0x5228ec}));}_0x23bb13[_0x197865]={'status':_0x2ba2cf(0xb3,0xb7,0x187,_0x596324._0x147782),'toolCount':_0x3e5a89};}catch(_0x542ed8){_0x23bb13[_0x197865]=isUnauthorizedError(_0x542ed8)?{'status':_0x2ba2cf(0x28,-_0x596324._0xf1bd91,0xd2,_0x596324._0x524856),'message':getErrorMessage(_0x542ed8)}:{'status':'error','message':getErrorMessage(_0x542ed8)};}}function _0x2ba2cf(_0x555482,_0x1a4e52,_0x2a7b70,_0x3197af){return _0x2803df(_0x3197af-0xa0,_0x2a7b70,_0x2a7b70-_0x403df0._0x3ee9cf,_0x3197af-_0x403df0._0x207647);}return{'tools':_0x6ac51b,'servers':_0x23bb13,async 'close'(){const _0x482ca6={_0x410ff0:0x121,_0xc9b703:0xd5};function _0x39bf25(_0x443915,_0x3e9726,_0x3a6d44,_0xc4e90f){return _0x160716(_0x443915-_0x482ca6._0x410ff0,_0x3a6d44,_0xc4e90f- -0x16c,_0xc4e90f-_0x482ca6._0xc9b703);}function _0x58d108(_0xed0059,_0x4d44a2,_0x7163cb,_0x510f75){return _0x160716(_0xed0059-0x6a,_0x510f75,_0x4d44a2- -0x2ba,_0x510f75-0x168);}await Promise[_0x39bf25(0x4c8,0x507,0x52c,_0x17eeb3._0x5aaa69)](_0x1bf391[_0x58d108(_0x17eeb3._0x3bf741,_0x17eeb3._0x57ccfe,0x207,0x122)](_0x20f6fc=>_0x20f6fc[_0x39bf25(0x5ed,0x4cd,0x3c7,0x4d5)]()));}};}function getCommand(_0x59d03c){const _0x3b30fd={_0x5ddd3e:0x4cc,_0x4bc0a1:0x54f,_0x361418:0x44e,_0x5661ec:0x253,_0x516021:0x1ce,_0x2a1aed:0x3b,_0x306c5c:0x17},_0x18b631={_0xf96b23:0x114,_0x315dcf:0xc5},_0x5412ef={_0x4f5c81:0x43c,_0x2f5945:0x162,_0x44d1fe:0x1c8};if(_0x59d03c&&typeof _0x59d03c==='object'&&!Array[_0xd925ea(0x102,0xe4,0x223,0x15)](_0x59d03c)&&typeof _0x59d03c[_0x41a03d(_0x3b30fd._0x5ddd3e,_0x3b30fd._0x4bc0a1,_0x3b30fd._0x361418,0x4f1)]==='string')return _0x59d03c[_0xd925ea(0x1c9,_0x3b30fd._0x5661ec,0x109,_0x3b30fd._0x516021)];function _0x41a03d(_0x556991,_0x427d01,_0x4b171d,_0x153c93){return _0x2803df(_0x153c93-_0x5412ef._0x4f5c81,_0x4b171d,_0x4b171d-_0x5412ef._0x2f5945,_0x153c93-_0x5412ef._0x44d1fe);}function _0xd925ea(_0x590036,_0x5d8cdc,_0x139423,_0x13905b){return _0x2803df(_0x590036-_0x18b631._0xf96b23,_0x139423,_0x139423-0x9b,_0x13905b-_0x18b631._0x315dcf);}return _0xd925ea(_0x3b30fd._0x2a1aed,0xd,-_0x3b30fd._0x306c5c,0x86);}var MOCK_WORKSPACE_LISTING=[_0x2803df(0x0,-0xc3,0x90,-0x114),_0x34fd29(0x611,0x589,0x5e8,0x643),'docs/plans/2026-04-16-public-tools-api-implementation.md',_0x2803df(0x43,-0xa3,-0xec,0x124),_0x2803df(0x29,-0x5e,0xb5,-0x43),_0x2803df(0xe,-0x111,0x7f,0x1f),_0x34fd29(0x699,0x6c3,0x557,0x5e0),_0x34fd29(0x61f,0x5f0,0x607,0x567),_0x34fd29(0x43d,0x5f6,0x42a,0x527),_0x2803df(-0xd2,0x2,-0x17c,-0x13a),'src/formats/provider-adapters.ts',_0x34fd29(0x7d7,0x73d,0x6cf,0x71c),_0x2803df(-0xdc,-0xdc,-0x1f,-0x1be),_0x34fd29(0x639,0x586,0x58c,0x53b),_0x2803df(0xd4,0x11d,0x12d,0xaa),_0x2803df(0xe6,0xdd,0x174,0x1d8),_0x2803df(0xb6,-0x28,0x104,-0x77)]['join']('\x0a'),SHELL_EXEC_TOOL={'name':_0x2803df(-0x48,-0x5a,-0xb7,0x49),'description':'Executes\x20a\x20shell\x20command','input_schema':{'type':'object','properties':{'command':{'type':'string'}},'required':[_0x34fd29(0x68d,0x804,0x7cc,0x73d)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x164537){return{'output':_0x164537,'structured':{'value':_0x164537}};}function createUnknownToolResult(_0x54cf3e){const _0x107705={_0xffb707:0x43c,_0x7dbf59:0x265,_0x56d3fa:0x37a,_0x519ecf:0x316,_0x3db88c:0x4bf,_0x31685c:0x420,_0x577df1:0x4d8,_0x343208:0x326},_0xb62c2d={_0x3de0ff:0x149},_0x55f4d6={_0x4ef864:0x481,_0x3a59ab:0x1e};function _0xcd6f4c(_0x316b23,_0x556446,_0x24c9f3,_0x1a6e9f){return _0x2803df(_0x24c9f3-_0x55f4d6._0x4ef864,_0x556446,_0x24c9f3-0x11,_0x1a6e9f-_0x55f4d6._0x3a59ab);}function _0x24e220(_0x5bba71,_0x2242d5,_0x581be8,_0x345a71){return _0x2803df(_0x5bba71-0x6ba,_0x581be8,_0x581be8-0x113,_0x345a71-_0xb62c2d._0x3de0ff);}return{'callId':_0x54cf3e['id'],'toolName':_0x54cf3e['name'],'status':_0xcd6f4c(_0x107705._0xffb707,_0x107705._0x7dbf59,_0x107705._0x56d3fa,0x39c),'output':_0xcd6f4c(_0x107705._0x519ecf,_0x107705._0x3db88c,_0x107705._0x31685c,0x4e7)+_0x54cf3e[_0xcd6f4c(_0x107705._0x577df1,_0x107705._0x343208,0x44b,0x313)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x5c5d93,_0x3d1108){function _0x54e17a(_0x830377,_0x308e77,_0x2b9f49,_0x4b44d4){return _0x34fd29(_0x308e77,_0x308e77-0x10b,_0x2b9f49-0x19f,_0x2b9f49- -0x3bd);}return{'callId':_0x5c5d93['id'],'toolName':_0x5c5d93['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x5c5d93[_0x54e17a(0x24c,0x214,0x343,0x454)]),'exitCode':0x0},'chunks':[_0x3d1108],'meta':createMeta()};}function createMockToolRuntime(){const _0x5e69ca={_0x39c290:0x163,_0x174aa7:0x1cd,_0x9e3c07:0x131,_0x500321:0x84,_0x2dc4fa:0x152},_0x19956b={_0x561398:0x1f9},_0x3c97f3=async(_0x42874c,_0x30c278)=>{const _0x10b984={_0x7a607:0x11d};if(_0x42874c[_0x234046(_0x19956b._0x561398,0x2f3,0x284,0x232)]!=='Bash')return createUnknownToolResult(_0x42874c);function _0x234046(_0x36648d,_0x332459,_0x449505,_0x250351){return _0x20ac(_0x36648d- -_0x10b984._0x7a607,_0x332459);}const _0x5a51a6=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x42874c,_0x5a51a6);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x3eb8dc,_0x1a2c40){const _0x3729d1={_0x51965c:0xba};function _0x99de1b(_0x4e5aad,_0xfdc7a6,_0x364888,_0x2e9a5e){return _0x20ac(_0x2e9a5e- -_0x3729d1._0x51965c,_0xfdc7a6);}function _0x10f9a7(_0x9166a6,_0x3ae48c,_0x14239a,_0x5bd69e){return _0x20ac(_0x5bd69e- -0x36d,_0x9166a6);}return await Promise[_0x10f9a7(_0x5e69ca._0x39c290,_0x5e69ca._0x174aa7,_0x5e69ca._0x9e3c07,_0x5e69ca._0x500321)](_0x3eb8dc[_0x99de1b(0x5a,_0x5e69ca._0x2dc4fa,0x184,0x181)](async _0x22769a=>{return await _0x3c97f3(_0x22769a,_0x1a2c40);}));},async 'execute'(_0x494fbb,_0xa5e512){return await _0x3c97f3(_0x494fbb,_0xa5e512);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x1d05ef,_0x127467){return typeof _0x1d05ef==='function'?await _0x1d05ef(_0x127467):_0x1d05ef;}function getDelegatedAgentDefinition(_0x5cccc9,_0x20137e){return _0x5cccc9['agents']?.[_0x20137e];}function createRunSummary(_0x411bbf){const _0x19bf5e={_0x51ed69:0x1a4,_0x29cb16:0x234,_0x4ac22b:0x284,_0x211ec6:0x5ce,_0xc43c26:0x648,_0x33763b:0x530,_0x5ff7c2:0x2ef,_0x47bb56:0x2c4,_0x3a8015:0x339,_0x1d0e5c:0x479,_0x401804:0x2dd,_0x475421:0x419,_0x9947c3:0x405,_0x2c378d:0x427,_0x330c85:0x1e6,_0xb9c79e:0x248,_0x5f001a:0x57c,_0x517ab7:0x5c7,_0x44ef47:0x503,_0x31cbc5:0x3fa,_0xa2f6dd:0x510,_0x34af96:0x3f1},_0x8cef43={_0x48de22:0x399},_0x3f6b2a={_0x395d33:0x8,_0x8f2c31:0x22,_0xb11873:0x16b};function _0x4677ff(_0x5dc537,_0x45ecaa,_0x45339b,_0x1ed445){return _0x34fd29(_0x45ecaa,_0x45ecaa-_0x3f6b2a._0x395d33,_0x45339b-_0x3f6b2a._0x8f2c31,_0x1ed445- -_0x3f6b2a._0xb11873);}function _0x264404(_0x56791d,_0x46975c,_0x18667b,_0x26b775){return _0x2803df(_0x26b775-_0x8cef43._0x48de22,_0x46975c,_0x18667b-0xeb,_0x26b775-0x4f);}return{'runId':_0x411bbf['runId'],'agentId':_0x411bbf[_0x264404(0x32a,_0x19bf5e._0x51ed69,_0x19bf5e._0x29cb16,_0x19bf5e._0x4ac22b)],'sessionId':_0x411bbf[_0x4677ff(_0x19bf5e._0x211ec6,_0x19bf5e._0xc43c26,0x63e,_0x19bf5e._0x33763b)],'status':_0x411bbf['status'],'parentSessionId':_0x411bbf[_0x264404(_0x19bf5e._0x5ff7c2,_0x19bf5e._0x47bb56,_0x19bf5e._0x3a8015,0x229)],..._0x411bbf[_0x4677ff(_0x19bf5e._0x1d0e5c,_0x19bf5e._0x401804,0x310,_0x19bf5e._0x475421)]!==void 0x0?{'originToolCallId':_0x411bbf[_0x4677ff(_0x19bf5e._0x9947c3,_0x19bf5e._0x2c378d,0x541,0x419)]}:{},..._0x411bbf[_0x264404(0x119,_0x19bf5e._0x330c85,0x172,_0x19bf5e._0xb9c79e)]!==void 0x0?{'errorMessage':_0x411bbf['errorMessage']}:{},..._0x411bbf[_0x4677ff(0x61a,0x585,0x6a0,0x5fd)]?.[_0x4677ff(_0x19bf5e._0x5f001a,_0x19bf5e._0x517ab7,0x499,_0x19bf5e._0x44ef47)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x411bbf[_0x264404(_0x19bf5e._0x31cbc5,_0x19bf5e._0xa2f6dd,_0x19bf5e._0x34af96,0x479)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x3666eb,_0x34039f){const _0x20db79={_0x2080a7:0x57,_0x55b647:0x5f,_0x435018:0x1b3,_0x1b5cc2:0x1a9,_0x3d48ac:0x1e1,_0x419f70:0x282,_0x3b1789:0x19f,_0x274127:0xb2},_0x2590f3={_0x34b58d:0x132,_0x439749:0x4ce},_0x566291={_0x50bb35:0x50},_0x1f94a7=createRunSummary(_0x3666eb),_0x374c84=_0x1f94a7[_0x1ab89a(0xce,-_0x20db79._0x2080a7,-_0x20db79._0x55b647,_0x20db79._0x435018)];function _0x57d9d(_0x29e4da,_0x4f6817,_0x2da708,_0x59a592){return _0x2803df(_0x29e4da- -0x4d,_0x4f6817,_0x2da708-_0x566291._0x50bb35,_0x59a592-0x11f);}function _0x1ab89a(_0x46f7ba,_0x1b08c5,_0x52024d,_0x3854b1){return _0x34fd29(_0x52024d,_0x1b08c5-_0x2590f3._0x34b58d,_0x52024d-0xe,_0x46f7ba- -_0x2590f3._0x439749);}return createToolOutput(typeof _0x374c84===_0x1ab89a(_0x20db79._0x1b5cc2,0x2d5,_0x20db79._0x3d48ac,_0x20db79._0x419f70)&&_0x374c84[_0x1ab89a(_0x20db79._0x3b1789,0x2e6,_0x20db79._0x274127,0xa5)]>0x0?_0x374c84:_0x34039f,_0x1f94a7);}function getRunTerminalErrorMessage(_0x3379ba){const _0x4197a9={_0x167bbb:0x9c,_0x47a698:0x120,_0x3c47de:0x14a,_0x1bbace:0x103,_0x52e5fa:0x1bf,_0x27a237:0x19e,_0x67b5e4:0x13c,_0x147f33:0x1ee,_0x363127:0xe0,_0x29980c:0x104,_0x45bb7d:0x178,_0x38761c:0x207},_0x23acbb={_0x5a7029:0x40,_0x11f85c:0xf},_0x4c54d6=_0x3379ba?.['state'][_0x5baf5c(-0x26,_0x4197a9._0x167bbb,_0x4197a9._0x47a698,0x15d)]['at'](-0x1);function _0x3966c5(_0x30f788,_0x20bd38,_0x162095,_0x39235d){return _0x34fd29(_0x162095,_0x20bd38-0x1ad,_0x162095-0xd9,_0x30f788- -0x6cb);}function _0x5baf5c(_0x515c9f,_0x2536ae,_0x4f5bc7,_0x5e9a80){return _0x2803df(_0x4f5bc7-0xfb,_0x5e9a80,_0x4f5bc7-_0x23acbb._0x5a7029,_0x5e9a80-_0x23acbb._0x11f85c);}if(_0x4c54d6?.['status']===_0x3966c5(-_0x4197a9._0x3c47de,-0x8f,-_0x4197a9._0x1bbace,-0x255)&&_0x4c54d6['output'][_0x3966c5(-_0x4197a9._0x52e5fa,-_0x4197a9._0x27a237,-0xf5,-_0x4197a9._0x67b5e4)]()[_0x5baf5c(0x24,_0x4197a9._0x147f33,_0x4197a9._0x363127,_0x4197a9._0x29980c)]>0x0)return _0x4c54d6[_0x5baf5c(_0x4197a9._0x45bb7d,_0x4197a9._0x38761c,0x1f0,0xb2)];return void 0x0;}function formatAbortedRunMessage(_0x15ac7e,_0x43a84b){const _0x1aac8e={_0xab9501:0x646,_0x2d530d:0x5e0,_0x58c15d:0x58c,_0x20def2:0x3db,_0x22f0c8:0x808,_0x2a804a:0x6dd,_0xa594c5:0x72e},_0x2ee74d={_0x444ed3:0x2f3},_0x596f7c={_0x48232b:0x6a5,_0x3b7a19:0x4c,_0x296abf:0x1bd};function _0x45eb55(_0x237658,_0x2f8c34,_0x29c270,_0x2fc7fd){return _0x2803df(_0x2fc7fd-_0x596f7c._0x48232b,_0x2f8c34,_0x29c270-_0x596f7c._0x3b7a19,_0x2fc7fd-_0x596f7c._0x296abf);}const _0x3a7529=_0x45eb55(0x763,0x7ba,0x7fe,0x6da)+_0x15ac7e+_0x45eb55(0x625,_0x1aac8e._0xab9501,_0x1aac8e._0x2d530d,_0x1aac8e._0x58c15d);function _0x31ab99(_0x1e4b09,_0x1d24cd,_0x44d49d,_0xd1fc0f){return _0x2803df(_0x1e4b09-_0x2ee74d._0x444ed3,_0xd1fc0f,_0x44d49d-0xc2,_0xd1fc0f-0xb1);}if(!_0x43a84b||_0x43a84b['trim']()[_0x31ab99(0x2d8,0x242,0x3e1,_0x1aac8e._0x20def2)]===0x0||_0x43a84b===_0x3a7529)return _0x3a7529;return _0x3a7529+_0x45eb55(_0x1aac8e._0x22f0c8,0x7b9,_0x1aac8e._0x2a804a,_0x1aac8e._0xa594c5)+_0x43a84b;}function createAssignTaskTool(_0x2990ec){const _0xd67318={_0x3a77bd:0x69,_0x1b9b89:0x130,_0x1c4a9b:0x11f,_0x3622c3:0xc9,_0x55202d:0x9c,_0x2c01d8:0x2d,_0x3cc597:0x9d,_0x37e7a6:0x3fc,_0x39b6ba:0x94,_0x979aa0:0xd7,_0x443726:0x22e,_0x273368:0x2a7,_0x279496:0xb9},_0x4f41e7={_0x13eeb2:0x467,_0x4486b1:0x283,_0x3e5e37:0x3c1,_0x49370a:0x392,_0x3d6e62:0x275,_0x804c05:0x3dc,_0x5b33b5:0x2a3,_0x5b4729:0x245,_0x358135:0x243,_0x465700:0x32b,_0x2e9757:0x544,_0x236ee2:0x43b,_0x41e1af:0x479,_0x2cfd7c:0x3f7,_0x46170c:0x4b9,_0x2e4c25:0x453,_0x2b0a0b:0x330,_0x38735f:0x278,_0x25b212:0x3ad,_0x44d957:0x43d,_0x6cb64c:0x3ee,_0x143ced:0x392,_0x46fc8b:0x2bf,_0x6fcc9d:0x4e2,_0x4e30fb:0x31e,_0x8638e5:0x3bf,_0xaa9953:0x50e,_0x79366:0x568,_0x113b3e:0x4a2,_0x2b1b34:0x2d8,_0x4ed42a:0x44e,_0x2e658d:0x3bf,_0x54b5e5:0x37a,_0x386217:0x42a,_0x2b2ef3:0x389,_0x2c6054:0x439,_0x5bb984:0x3e2,_0x21fb1c:0x36d,_0x2099e9:0x224,_0xe5a34f:0x476,_0x3a7ea1:0x349,_0x5197e1:0x352,_0x554da8:0x46f,_0x3661eb:0x3d8,_0x9b88aa:0x204,_0x40d031:0x329,_0x353b3c:0x43b,_0x2650a2:0x4a2,_0x583859:0x2c6,_0x29dc11:0x23f,_0x4f0518:0x2e2,_0x3caf34:0x5d0,_0x1e3ee0:0x4b7,_0xcd9e27:0x3c6,_0x84bc10:0x242,_0x4ddee6:0x2da,_0x43a408:0x514,_0x1b2181:0x520,_0x489ee1:0x399,_0x532676:0x44b,_0x32d9c5:0x3f1,_0x2e3ebf:0x391,_0xba9136:0x3c0,_0x465fab:0x2fb,_0x4bba29:0x3eb,_0xce09a6:0x304,_0x164205:0x376,_0x5392ec:0x4bb},_0x3736c1={_0x1919f2:0x60,_0x327b97:0x69,_0x364803:0x1da,_0x1ea72a:0xf2,_0x3bc695:0x32,_0x2d5467:0x13b},_0x330129={_0x4cc1d2:0x1be},_0x240d56={_0x4fb4ca:0x36c};function _0x490ce7(_0xa3e9a0,_0x73bd6e,_0x5db79b,_0xc5f439){return _0x2803df(_0x73bd6e-_0x240d56._0x4fb4ca,_0x5db79b,_0x5db79b-0xb3,_0xc5f439-0x6);}function _0x1d0b70(_0x1809c7,_0x5206c6,_0xa67a3d,_0x8f5cf2){return _0x2803df(_0xa67a3d-0x3e,_0x1809c7,_0xa67a3d-_0x330129._0x4cc1d2,_0x8f5cf2-0x1f3);}return defineTool({'name':_0x1d0b70(_0xd67318._0x3a77bd,0x48,_0xd67318._0x1b9b89,0x138),'description':_0x1d0b70(-_0xd67318._0x1c4a9b,0xe,-0x138,-0xc0),'inputSchema':{'type':'object','properties':{'agentId':{'type':_0x1d0b70(-_0xd67318._0x3622c3,-0xa8,0x2d,-_0xd67318._0x55202d)},'description':{'type':_0x1d0b70(0x131,-0x7d,_0xd67318._0x2c01d8,_0xd67318._0x3cc597)},'nickname':{'type':_0x490ce7(0x2ba,0x35b,0x350,_0xd67318._0x37e7a6)},'task':{'type':'string'}},'required':[_0x1d0b70(-_0xd67318._0x39b6ba,-0x15f,-_0xd67318._0x979aa0,-0x125),_0x490ce7(0x2c5,_0xd67318._0x443726,0x2fd,_0xd67318._0x273368),_0x1d0b70(0x2b,-0x52,-0x95,-_0xd67318._0x279496)]},async *'execute'(_0x435470,_0x2301e9){const _0x3f50e1={_0x308fce:0x11b,_0x5a074a:0x2d5},_0x458b36={_0x4772fc:0xcc,_0x2bbbe8:0x191},_0x11e9aa=createDelegatedRunId(),_0x2bf997={'agentId':_0x435470[_0x28d287(_0x4f41e7._0x13eeb2,0x3a0,0x380,0x323)],'parentSessionId':_0x2301e9['sessionId'],'runId':_0x11e9aa,..._0x2301e9[_0x28d287(_0x4f41e7._0x4486b1,_0x4f41e7._0x3e5e37,0x48a,_0x4f41e7._0x49370a)]!==void 0x0?{'toolCallId':_0x2301e9[_0x28d287(_0x4f41e7._0x3d6e62,0x283,0x3c5,0x392)]}:{}},_0xa0431a=getDelegatedAgentDefinition(_0x2990ec,_0x435470[_0x3be689(0x38d,_0x4f41e7._0x804c05,_0x4f41e7._0x5b33b5,0x32b)]);if(!_0xa0431a)throw new ToolExecutionError('Unknown\x20delegated\x20agent:\x20'+_0x435470[_0x3be689(0x214,0x42f,0x24c,0x32b)],{'agentId':_0x435470['agentId']});const _0x1af89f=new Agent(await resolveDelegatedAgentOptions(_0xa0431a,_0x2bf997));function _0x28d287(_0x4ac159,_0x303fca,_0x13a0d6,_0x4c9be0){return _0x1d0b70(_0x4ac159,_0x303fca-_0x458b36._0x4772fc,_0x4c9be0-0x3fa,_0x4c9be0-_0x458b36._0x2bbbe8);}let _0x120052={'runId':_0x11e9aa,'agentId':_0x435470[_0x3be689(_0x4f41e7._0x5b4729,_0x4f41e7._0x358135,0x238,_0x4f41e7._0x465700)],'sessionId':_0x1af89f[_0x3be689(0x3ed,0x3d5,_0x4f41e7._0x2e9757,0x453)],'status':_0x28d287(0x51e,_0x4f41e7._0x236ee2,0x578,_0x4f41e7._0x41e1af),'parentSessionId':_0x2301e9[_0x3be689(_0x4f41e7._0x2cfd7c,_0x4f41e7._0x46170c,0x47f,_0x4f41e7._0x2e4c25)],..._0x2301e9[_0x28d287(_0x4f41e7._0x2b0a0b,_0x4f41e7._0x38735f,_0x4f41e7._0x25b212,_0x4f41e7._0x49370a)]!==void 0x0?{'originToolCallId':_0x2301e9[_0x28d287(_0x4f41e7._0x44d957,_0x4f41e7._0x6cb64c,0x4b1,_0x4f41e7._0x143ced)]}:{}};const _0xab9691=new AbortController(),_0x18a918=addAbortListener(_0x2301e9[_0x28d287(0x3bb,0x258,_0x4f41e7._0x46fc8b,0x37c)],()=>{const _0x523c47={_0x27f468:0x26e};function _0x42daca(_0xd8c954,_0x1dd56e,_0x3d0f8e,_0x325653){return _0x3be689(_0x3d0f8e,_0x1dd56e-_0x3f50e1._0x308fce,_0x3d0f8e-0x93,_0x1dd56e- -_0x3f50e1._0x5a074a);}function _0x44845a(_0x37d845,_0x503aff,_0x2f731b,_0x339236){return _0x28d287(_0x37d845,_0x503aff-0xec,_0x2f731b-0x14e,_0x339236- -_0x523c47._0x27f468);}_0xab9691[_0x44845a(_0x3736c1._0x1919f2,0x1c0,-_0x3736c1._0x327b97,0xa7)](_0x2301e9[_0x42daca(0x118,0xaf,_0x3736c1._0x364803,_0x3736c1._0x1ea72a)]?.[_0x42daca(_0x3736c1._0x3bc695,_0x3736c1._0x2d5467,0x230,0x274)]);});yield createToolOutput(_0x28d287(_0x4f41e7._0x6fcc9d,0x4fb,_0x4f41e7._0x4e30fb,0x404)+_0x120052[_0x3be689(_0x4f41e7._0x8638e5,0x405,0x3d1,0x4a2)]+'.',{'runId':_0x120052[_0x3be689(_0x4f41e7._0xaa9953,0x43a,_0x4f41e7._0x79366,_0x4f41e7._0x113b3e)],'agentId':_0x120052[_0x28d287(_0x4f41e7._0x2b1b34,_0x4f41e7._0x4ed42a,0x239,0x323)],'sessionId':_0x120052[_0x3be689(0x45e,_0x4f41e7._0x2e658d,0x4b9,0x453)],'status':_0x120052[_0x28d287(0x442,_0x4f41e7._0x54b5e5,_0x4f41e7._0x386217,0x467)]});function _0x3be689(_0x34c437,_0x22c15f,_0x4e66f0,_0x5a6d8a){return _0x490ce7(_0x34c437-0xfa,_0x5a6d8a-0xd4,_0x34c437,_0x5a6d8a-0xbf);}try{const _0x16ac83=await _0x1af89f[_0x28d287(0x46f,0x475,_0x4f41e7._0x2b2ef3,_0x4f41e7._0x2c6054)](_0x435470[_0x28d287(_0x4f41e7._0x5bb984,_0x4f41e7._0x21fb1c,_0x4f41e7._0x2099e9,0x365)],{'signal':_0xab9691['signal']});_0x120052={..._0x120052,'status':_0x16ac83['status'],'result':_0x16ac83};if(_0x16ac83[_0x3be689(_0x4f41e7._0xe5a34f,_0x4f41e7._0x3a7ea1,_0x4f41e7._0x5197e1,_0x4f41e7._0x554da8)]!==_0x3be689(0x3f6,_0x4f41e7._0x3661eb,_0x4f41e7._0x9b88aa,_0x4f41e7._0x40d031)){const _0x382592=getRunTerminalErrorMessage(_0x16ac83),_0x5ed30b=formatAbortedRunMessage(_0x120052['runId'],_0x382592);throw new ToolExecutionError(_0x5ed30b,{...createRunSummary(_0x120052),'aborted':!![],'errorMessage':_0x5ed30b});}return createRunSummaryOutput(_0x120052,'Agent\x20run\x20'+_0x120052[_0x3be689(_0x4f41e7._0x353b3c,0x513,0x54c,_0x4f41e7._0x2650a2)]+'\x20completed.');}catch(_0x47a5e1){if(_0x47a5e1 instanceof ToolExecutionError)throw _0x47a5e1;if(isAbortError(_0x47a5e1)||_0xab9691[_0x3be689(_0x4f41e7._0x583859,0x424,0x46e,0x384)][_0x3be689(0x3b9,0x3bd,_0x4f41e7._0x29dc11,_0x4f41e7._0x4f0518)]||_0x2301e9['signal'][_0x3be689(0x1fc,0x33f,0x2df,_0x4f41e7._0x4f0518)]){const _0x36aa4e=getRunTerminalErrorMessage(_0x120052[_0x28d287(0x5f8,_0x4f41e7._0x3caf34,0x5b0,0x518)])??(_0x47a5e1 instanceof Error?_0x47a5e1[_0x28d287(0x292,_0x4f41e7._0x1e3ee0,0x4fd,_0x4f41e7._0x8638e5)]:String(_0x47a5e1)),_0x561afb=formatAbortedRunMessage(_0x120052['runId'],_0x36aa4e);_0x120052={..._0x120052,'status':_0x28d287(0x3d9,_0x4f41e7._0xcd9e27,_0x4f41e7._0x84bc10,_0x4f41e7._0x4ddee6),'errorMessage':_0x561afb};throw new ToolExecutionError(_0x561afb,{...createRunSummary(_0x120052),'aborted':!![],'errorMessage':_0x561afb});}const _0x4c84d1=getRunTerminalErrorMessage(_0x120052[_0x3be689(0x463,_0x4f41e7._0x43a408,0x513,_0x4f41e7._0x1b2181)])??(_0x47a5e1 instanceof Error?_0x47a5e1[_0x28d287(0x340,0x3ba,_0x4f41e7._0x489ee1,0x3bf)]:String(_0x47a5e1))??_0x3be689(0x57d,_0x4f41e7._0x532676,0x416,0x475)+_0x120052[_0x3be689(_0x4f41e7._0x32d9c5,_0x4f41e7._0x2e3ebf,_0x4f41e7._0xba9136,0x4a2)]+_0x3be689(0x312,_0x4f41e7._0x465fab,_0x4f41e7._0x4bba29,_0x4f41e7._0xce09a6);_0x120052={..._0x120052,'status':_0x3be689(_0x4f41e7._0x164205,_0x4f41e7._0x5392ec,0x444,0x3ad),'errorMessage':_0x4c84d1};throw new ToolExecutionError(_0x4c84d1,{...createRunSummary(_0x120052),'errorMessage':_0x4c84d1});}finally{_0x18a918();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x4f2dce){return[createAssignTaskTool(_0x4f2dce)];}import*as _0x177f13 from'path';function buildDescription2(_0x28acb8){const _0x315133={_0x3b37ba:0x4a4,_0x207e6e:0x735,_0x3b0fb8:0x616,_0x4a20d2:0x6ca,_0x1abaaf:0x67b,_0x4edf2d:0x567,_0xa1b591:0x457,_0x8e0de0:0x4ce,_0x15b340:0x5d1,_0x4ef70f:0x56a,_0x412d9d:0x3b4,_0x53f960:0x48e,_0x3a9e46:0x3e3,_0x3b4bf6:0x504},_0x11995={_0x4c88a4:0x127},_0x1d0031={_0x731fba:0x5f4,_0x2352c7:0x5a};function _0x395c3d(_0x389941,_0x420462,_0x5ada78,_0x1e124e){return _0x2803df(_0x420462-_0x1d0031._0x731fba,_0x1e124e,_0x5ada78-0xee,_0x1e124e-_0x1d0031._0x2352c7);}function _0x39d51c(_0x5033cc,_0x368d8c,_0x1f948d,_0x2a9adb){return _0x2803df(_0x368d8c-0x59a,_0x2a9adb,_0x1f948d-0xaf,_0x2a9adb-_0x11995._0x4c88a4);}if(_0x28acb8[_0x395c3d(0x6f6,0x5d9,_0x315133._0x3b37ba,0x630)]===0x0)return _0x39d51c(_0x315133._0x207e6e,_0x315133._0x3b0fb8,_0x315133._0x4a20d2,_0x315133._0x1abaaf);const _0x493b5c=[_0x39d51c(0x511,_0x315133._0x4edf2d,_0x315133._0xa1b591,_0x315133._0x8e0de0),_0x395c3d(0x595,_0x315133._0x15b340,_0x315133._0x4ef70f,0x4d1),_0x39d51c(_0x315133._0x412d9d,_0x315133._0x53f960,_0x315133._0x3a9e46,0x55f),'Available\x20skills\x20(skill_name:\x20description):',..._0x28acb8[_0x395c3d(0x3e1,0x4e3,0x568,_0x315133._0x3b4bf6)](_0x3fb509=>'-\x20'+_0x3fb509['name']+':\x20'+_0x3fb509['description'])];return _0x493b5c['join']('\x0a');}function createLoadSkillTool(_0x661808){const _0x13361a={_0x561f97:0x13a,_0x190ce0:0x4a,_0x57f5e5:0x1d9,_0x2ef136:0xad,_0x12dfd8:0x64,_0x4cb66d:0x118,_0x2bd629:0x178,_0x377ec2:0x71e,_0x24ef56:0x5fd,_0x1f879a:0x603,_0x374b8d:0x29,_0x207d95:0x53,_0x28efd3:0x176,_0x11b9cd:0x608,_0x350a8a:0x688,_0x36fc3b:0x6cd},_0x1a54a6={_0x527db3:0x64a,_0x5dca56:0x568,_0x2b6921:0x719,_0x86ca23:0x9a,_0x125723:0xb0,_0x5b2d7a:0x10f,_0x54afc0:0x95,_0x1d52df:0x80,_0xcacc9d:0x6c0,_0x1190bf:0x543,_0x55f4d3:0x5c4,_0x5ad139:0x65f,_0x26dd7e:0x138,_0x53699a:0xec,_0x10d652:0xef,_0x2f7b86:0x109,_0x1c971f:0x19f,_0x5d1fc3:0x224,_0x4d4ea7:0x565,_0x2c9ff7:0x5d1,_0x1c9951:0x53d,_0x28e8a5:0x6d4,_0x1ed436:0x777,_0x285c97:0x38,_0x4db097:0x2e,_0x3ea510:0x39,_0xc494d5:0x7,_0xc6bf58:0x206,_0x301ade:0x162,_0x28a725:0x73,_0x48b5e4:0x35,_0x3ab257:0x6,_0x18a021:0x120,_0x368267:0x7,_0x3ca8be:0xb8,_0x2676e4:0x43,_0x4bdc28:0x16f,_0x581429:0xec,_0x488eb3:0x103,_0x31116b:0x4f3,_0x490594:0x4f6,_0x412a72:0x48b},_0x1f3158={_0x149cad:0x75,_0x177236:0x5e1},_0x11cbdd={_0x49d034:0x1c3,_0x22674d:0xc0},_0x37e43b={_0x5ddde5:0x64},_0x468ceb=new Map(_0x661808[_0x8f2920(0x1b7,0x23a,_0x13361a._0x561f97,_0x13361a._0x190ce0)][_0x8f2920(-_0x13361a._0x57f5e5,0x7,-_0x13361a._0x2ef136,0x75)](_0x48728f=>[_0x48728f[_0x8f2920(0x158,0xb,0x2e,-0xf0)],_0x48728f]));function _0x8f2920(_0x4f1869,_0x34b738,_0x4c8820,_0x1e7963){return _0x2803df(_0x4c8820-_0x37e43b._0x5ddde5,_0x4f1869,_0x4c8820-0x15e,_0x1e7963-0x6f);}function _0x2e5d3e(_0xbb3614,_0xdec54a,_0x466a7a,_0x142747){return _0x34fd29(_0xbb3614,_0xdec54a-_0x11cbdd._0x49d034,_0x466a7a-_0x11cbdd._0x22674d,_0x142747-0x7b);}const _0x5db8e9=buildDescription2(_0x661808[_0x8f2920(_0x13361a._0x12dfd8,_0x13361a._0x4cb66d,_0x13361a._0x561f97,_0x13361a._0x2bd629)]);return defineTool({'name':'LoadSkill','description':_0x5db8e9,'inputSchema':{'type':_0x2e5d3e(_0x13361a._0x377ec2,0x57b,_0x13361a._0x24ef56,_0x13361a._0x1f879a),'properties':{'name':{'type':_0x8f2920(_0x13361a._0x374b8d,0x12b,_0x13361a._0x207d95,_0x13361a._0x28efd3)}},'required':[_0x2e5d3e(_0x13361a._0x11b9cd,_0x13361a._0x350a8a,0x63d,_0x13361a._0x36fc3b)]},async *'execute'(_0xd4d4e0){const _0x1bf2de={_0x3d1e1d:0x28,_0x34dfd2:0x61c},_0x1b2f91=_0x468ceb[_0x2dcfd3(0x112,0x10d,0x201,0x202)](_0xd4d4e0[_0x13d39f(_0x1a54a6._0x527db3,0x652,_0x1a54a6._0x5dca56,_0x1a54a6._0x2b6921)]);if(!_0x1b2f91){const _0x2fd81a=Array[_0x2dcfd3(-_0x1a54a6._0x86ca23,-0x9,-_0x1a54a6._0x125723,_0x1a54a6._0x5b2d7a)](_0x468ceb[_0x2dcfd3(0x21,0x8c,-_0x1a54a6._0x54afc0,_0x1a54a6._0x1d52df)]())[_0x13d39f(0x6cd,_0x1a54a6._0xcacc9d,0x5e7,0x6ef)](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0xd4d4e0[_0x13d39f(0x64a,_0x1a54a6._0x1190bf,0x60c,_0x1a54a6._0x55f4d3)]+_0x13d39f(0x5b0,0x49d,0x50d,_0x1a54a6._0x5ad139)+_0x2fd81a,{'name':_0xd4d4e0[_0x2dcfd3(_0x1a54a6._0x26dd7e,_0x1a54a6._0x53699a,_0x1a54a6._0x10d652,_0x1a54a6._0x2f7b86)]});}const _0x14c87a=await _0x661808[_0x2dcfd3(_0x1a54a6._0x1c971f,0x17c,0xfb,_0x1a54a6._0x5d1fc3)](_0x1b2f91),_0x5a99b4=_0x1b2f91[_0x13d39f(_0x1a54a6._0x4d4ea7,_0x1a54a6._0x2c9ff7,_0x1a54a6._0x1c9951,0x58c)][_0x13d39f(_0x1a54a6._0x28e8a5,0x81b,_0x1a54a6._0x1ed436,0x5e2)]??_0x177f13[_0x2dcfd3(-_0x1a54a6._0x285c97,_0x1a54a6._0x4db097,_0x1a54a6._0x86ca23,0x92)](_0x1b2f91[_0x2dcfd3(-_0x1a54a6._0x3ea510,_0x1a54a6._0xc494d5,0x80,-0x9)]['path']);function _0x2dcfd3(_0xa0abd7,_0x494519,_0x5c01e0,_0x54a272){return _0x2e5d3e(_0x5c01e0,_0x494519-0x58,_0x5c01e0-_0x1f3158._0x149cad,_0x494519- -_0x1f3158._0x177236);}const _0x5ca601=['##\x20Skill:\x20'+_0x14c87a[_0x2dcfd3(_0x1a54a6._0xc6bf58,_0x1a54a6._0x53699a,0x5e,0x1b1)],'',_0x14c87a[_0x2dcfd3(_0x1a54a6._0x301ade,0x13b,0x108,0x244)],'','---',_0x2dcfd3(-_0x1a54a6._0x28a725,-_0x1a54a6._0x48b5e4,-0x106,_0x1a54a6._0x3ab257)+_0x1b2f91[_0x2dcfd3(-_0x1a54a6._0x18a021,_0x1a54a6._0x368267,-0xf0,-_0x1a54a6._0x3ca8be)][_0x13d39f(0x4f6,0x41a,0x5b4,0x46b)],'Base\x20directory:\x20'+_0x5a99b4][_0x2dcfd3(_0x1a54a6._0x2676e4,_0x1a54a6._0x4bdc28,0x262,0x22f)]('\x0a');function _0x13d39f(_0x2748fd,_0x2db743,_0xef7ef2,_0x5a1a57){return _0x8f2920(_0xef7ef2,_0x2db743-_0x1bf2de._0x3d1e1d,_0x2748fd-_0x1bf2de._0x34dfd2,_0x5a1a57-0x57);}return yield createToolOutput(_0x5ca601,{'id':_0x14c87a['id'],'name':_0x14c87a[_0x2dcfd3(0x46,_0x1a54a6._0x581429,_0x1a54a6._0x488eb3,0x64)],'path':_0x1b2f91[_0x13d39f(0x565,0x67b,0x50f,_0x1a54a6._0x31116b)][_0x13d39f(_0x1a54a6._0x490594,_0x1a54a6._0x412a72,0x3b3,0x47e)],'baseDirectory':_0x5a99b4}),void 0x0;}});}var TODO_STATUSES=new Set(['pending',_0x2803df(-0x88,-0x109,0x4c,-0x3),_0x34fd29(0x488,0x600,0x654,0x571)]),TODO_PRIORITIES=new Set([_0x2803df(-0xf6,-0x22f,-0x205,-0x6a),_0x34fd29(0x82d,0x75a,0x803,0x721),_0x2803df(-0xf0,-0x1fa,-0x1a8,-0x119)]);function isTodoStatus(_0x155229){const _0x506b37={_0x16178b:0x8b,_0x13cbba:0x1b9,_0x269df4:0xf6,_0x14f9e0:0x97,_0x375ad7:0x123},_0x3526cb={_0x3ee9e2:0x6d3,_0x491de1:0x1d4},_0x33e1dc={_0x4286d1:0x126,_0x327a95:0x16f};function _0xa18871(_0x32c04a,_0xb61c8b,_0x4e8ae3,_0x5a2768){return _0x34fd29(_0x5a2768,_0xb61c8b-_0x33e1dc._0x4286d1,_0x4e8ae3-_0x33e1dc._0x327a95,_0x32c04a- -0x5ec);}function _0x261514(_0x5b8402,_0x11eb64,_0x277bae,_0x194e7a){return _0x2803df(_0x194e7a-_0x3526cb._0x3ee9e2,_0x277bae,_0x277bae-0x1b7,_0x194e7a-_0x3526cb._0x491de1);}return typeof _0x155229===_0xa18871(_0x506b37._0x16178b,_0x506b37._0x13cbba,_0x506b37._0x269df4,0x13d)&&TODO_STATUSES[_0xa18871(-0x2c,_0x506b37._0x14f9e0,-_0x506b37._0x375ad7,0x26)](_0x155229);}function isTodoPriority(_0x5ab7de){const _0x1da63={_0x5ce50e:0xea,_0x42da00:0x1c6};function _0x2c54f7(_0x1a9347,_0x5deea6,_0x4fbb00,_0x4c6001){return _0x2803df(_0x4fbb00-_0x1da63._0x5ce50e,_0x5deea6,_0x4fbb00-0x4a,_0x4c6001-_0x1da63._0x42da00);}return typeof _0x5ab7de===_0x2c54f7(0x70,0x1fa,0xd9,0x165)&&TODO_PRIORITIES['has'](_0x5ab7de);}var TodoStore=class{[_0x2803df(0x8e,0xa5,0xb4,-0x67)]=new Map();[_0x2803df(-0x84,-0x2d,-0xa4,-0x190)](_0x143df3){const _0x8cb9b0={_0x1fb500:0x38,_0x52a547:0x193,_0x288980:0x191},_0x5ca13e={_0x1700ca:0x120};function _0x1f367e(_0x2a586e,_0x43e539,_0x2fe94c,_0x31d0b3){return _0x34fd29(_0x2a586e,_0x43e539-_0x5ca13e._0x1700ca,_0x2fe94c-0x4e,_0x43e539- -0x5d0);}return this['todosBySession'][_0x1f367e(-_0x8cb9b0._0x1fb500,0xa3,_0x8cb9b0._0x52a547,_0x8cb9b0._0x288980)](_0x143df3)??[];}['setTodos'](_0x19b617,_0x51afaa){this['todosBySession']['set'](_0x19b617,_0x51afaa);}[_0x2803df(0xcc,0x71,0x1fd,0x78)](_0x14ada7){const _0x2c2065={_0x18328d:0x4e8,_0x14540c:0x4dd,_0x3cde99:0x52d,_0x36209b:0x46e,_0x230782:0x3c1,_0x197ce7:0x347,_0x198452:0x462,_0x3307ad:0x4eb,_0x434c1b:0x4d0,_0x99c6c9:0x5be,_0x174d0c:0x50f,_0x3410c3:0x352,_0xe70b38:0x403,_0x27b59e:0x4c2},_0x5f1974={_0x28c531:0x4e0,_0x5783b0:0x43,_0x173ea6:0x87},_0x2f284b={_0x2ca3ee:0x130,_0x2e7fa9:0x3},_0x4ca5ef=this[_0x49065a(0x370,_0x2c2065._0x18328d,0x45c,0x428)](_0x14ada7);function _0x1d0f22(_0x157ba4,_0x18c61c,_0x15151c,_0x3d20d0){return _0x34fd29(_0x15151c,_0x18c61c-_0x2f284b._0x2ca3ee,_0x15151c-_0x2f284b._0x2e7fa9,_0x3d20d0- -0x190);}const _0xfd2a55={'total':_0x4ca5ef[_0x1d0f22(0x4ed,0x47a,0x446,_0x2c2065._0x14540c)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0x3d6f19 of _0x4ca5ef){if(_0x3d6f19['status']===_0x1d0f22(0x422,_0x2c2065._0x3cde99,_0x2c2065._0x36209b,0x47a))_0xfd2a55[_0x49065a(_0x2c2065._0x230782,_0x2c2065._0x197ce7,_0x2c2065._0x198452,_0x2c2065._0x3307ad)]+=0x1;else{if(_0x3d6f19[_0x49065a(_0x2c2065._0x434c1b,_0x2c2065._0x99c6c9,_0x2c2065._0x174d0c,0x4d2)]===_0x1d0f22(0x495,_0x2c2065._0x3410c3,_0x2c2065._0xe70b38,0x470))_0xfd2a55['inProgress']+=0x1;else _0xfd2a55[_0x1d0f22(0x324,_0x2c2065._0x27b59e,0x2c2,0x3e1)]+=0x1;}}function _0x49065a(_0x24c48c,_0x599b24,_0x531f93,_0x2a6091){return _0x2803df(_0x531f93-_0x5f1974._0x28c531,_0x599b24,_0x531f93-_0x5f1974._0x5783b0,_0x2a6091-_0x5f1974._0x173ea6);}return _0xfd2a55;}};function validateTodos(_0x2e13a0){const _0x36525e={_0x5cc440:0x229,_0x3fea8c:0x64,_0x218bfd:0x16c,_0x8a89cd:0x231,_0x127f54:0x2d3,_0x12c262:0x174,_0x293546:0x30c,_0xc6ed13:0x1e8,_0x470595:0x2c,_0x147292:0x5c,_0x2f1793:0x1e2,_0x3d7cc7:0x1ba,_0x3e7569:0xbe,_0x3ebf86:0x7e,_0x4a8863:0x23e,_0x32a945:0x331,_0x4b03d7:0x1f4,_0x286612:0xc,_0x4aaa31:0xcc,_0x4804ff:0x218,_0x15544b:0xc1,_0xf7efa7:0x15b,_0x430211:0xc7,_0x500f4a:0x122,_0x3c1782:0x290,_0x3508f1:0x2bf,_0x5f98a8:0x216,_0xa0644e:0x222,_0x165b6c:0x63,_0x13a776:0x10d,_0x43f961:0x227,_0x1724bd:0x18b,_0x343a52:0x196,_0x3f292a:0x412,_0x3957fe:0xd1,_0x31ffa3:0x13d,_0x4b047c:0x1ad,_0x424a67:0x2e0,_0x2dc972:0x67,_0x297b52:0x79,_0x2a856f:0xe1,_0x1b28df:0x50,_0x3e500c:0x60,_0x56aa1c:0x1b,_0x6e088d:0x9,_0xce9279:0x11b,_0x2846f8:0x2c5,_0x446959:0x149,_0x2ad92:0x37e,_0x2d9455:0x314,_0x543439:0x150,_0x508406:0x6d,_0x1bfe2d:0x5a,_0x3563a9:0x223,_0x5188e3:0x14e,_0x1caa7c:0xba,_0x4279d9:0x4c,_0x517358:0x3b,_0x70ef48:0x12,_0x57d647:0xa8},_0x187886={_0x407a7b:0x233,_0x6762a1:0xdd},_0x9e96ba={_0x3d1137:0x108,_0xc2a3e3:0xd2};if(!Array[_0x47aff2(_0x36525e._0x5cc440,_0x36525e._0x3fea8c,0x250,_0x36525e._0x218bfd)](_0x2e13a0[_0x400fdc(0x296,0x3c4,0x24e,0x2ad)])||_0x2e13a0[_0x400fdc(0x3e9,0x244,_0x36525e._0x8a89cd,0x2ad)]['length']===0x0)throw new ToolExecutionError(_0x400fdc(_0x36525e._0x127f54,_0x36525e._0x12c262,_0x36525e._0x293546,_0x36525e._0xc6ed13),{'error':_0x400fdc(0x28c,0x2f8,0x2bc,0x270)});for(let _0xd03af1=0x0;_0xd03af1<_0x2e13a0['todos'][_0x47aff2(0x7c,_0x36525e._0x470595,_0x36525e._0x147292,0x163)];_0xd03af1+=0x1){const _0x3dc7df=_0x2e13a0[_0x400fdc(0x38e,0x2e5,_0x36525e._0x2f1793,0x2ad)][_0xd03af1];if(!_0x3dc7df||typeof _0x3dc7df!==_0x47aff2(_0x36525e._0x3d7cc7,0xb,_0x36525e._0x3e7569,_0x36525e._0x3ebf86))throw new ToolExecutionError(_0x47aff2(0x2ee,_0x36525e._0x4a8863,_0x36525e._0x32a945,_0x36525e._0x4b03d7)+(_0xd03af1+0x1)+_0x47aff2(-_0x36525e._0x286612,-0x2,0x20a,_0x36525e._0x4aaa31),{'error':'invalid_todo_item'});if(typeof _0x3dc7df['id']!=='string'||_0x3dc7df['id'][_0x47aff2(-0x12c,0x6f,-0x6c,0x2)]()[_0x400fdc(0x336,0x2a7,0x1c9,_0x36525e._0x4804ff)]===0x0)throw new ToolExecutionError(_0x400fdc(0x343,0x3a0,0x3cd,0x2a9)+(_0xd03af1+0x1)+_0x47aff2(_0x36525e._0x15544b,_0x36525e._0xf7efa7,-0x25,0xe2),{'error':_0x400fdc(_0x36525e._0x430211,0x27d,_0x36525e._0x500f4a,0x16f)});if(typeof _0x3dc7df['content']!==_0x400fdc(_0x36525e._0x3c1782,_0x36525e._0x3508f1,_0x36525e._0x5f98a8,_0x36525e._0xa0644e)||_0x3dc7df[_0x400fdc(_0x36525e._0x165b6c,0x1de,0x59,0x18e)][_0x47aff2(_0x36525e._0x13a776,0x64,0x44,0x2)]()[_0x47aff2(0x6e,_0x36525e._0x43f961,_0x36525e._0x1724bd,0x163)]===0x0)throw new ToolExecutionError('Todo\x20'+(_0xd03af1+0x1)+':\x20content\x20required',{'error':_0x400fdc(_0x36525e._0x343a52,_0x36525e._0x3f292a,0x1f0,0x2d1)});if(!isTodoStatus(_0x3dc7df[_0x47aff2(0x269,_0x36525e._0x3957fe,_0x36525e._0x31ffa3,_0x36525e._0x4b047c)]))throw new ToolExecutionError(_0x47aff2(0x122,_0x36525e._0x424a67,0x19b,_0x36525e._0x4b03d7)+(_0xd03af1+0x1)+_0x47aff2(-0xc6,-0x3c,-_0x36525e._0x2dc972,0x4a),{'error':_0x47aff2(-0x7d,-_0x36525e._0x297b52,_0x36525e._0x2a856f,_0x36525e._0x1b28df)});if(!isTodoPriority(_0x3dc7df[_0x47aff2(-_0x36525e._0x3e500c,_0x36525e._0x56aa1c,-0x30,-_0x36525e._0x6e088d)]))throw new ToolExecutionError(_0x47aff2(_0x36525e._0xce9279,_0x36525e._0x2846f8,0x255,0x1f4)+(_0xd03af1+0x1)+_0x400fdc(0x16c,0x81,0x1ce,_0x36525e._0x446959),{'error':_0x400fdc(0x293,_0x36525e._0x2ad92,0x29d,_0x36525e._0x2d9455)});}function _0x47aff2(_0x264948,_0xe08d09,_0x1ce7b0,_0x4dea11){return _0x2803df(_0x4dea11-0x17e,_0xe08d09,_0x1ce7b0-_0x9e96ba._0x3d1137,_0x4dea11-_0x9e96ba._0xc2a3e3);}function _0x400fdc(_0x5b6ac8,_0x1fb3c5,_0x5997b8,_0x198f13){return _0x2803df(_0x198f13-_0x187886._0x407a7b,_0x5b6ac8,_0x5997b8-_0x187886._0x6762a1,_0x198f13-0x11b);}const _0x1798ab=_0x2e13a0['todos'][_0x47aff2(_0x36525e._0x543439,0x6e,-0x7e,_0x36525e._0x508406)](_0x1b1e92=>_0x1b1e92['id']);if(new Set(_0x1798ab)[_0x47aff2(0x1bc,_0x36525e._0x1bfe2d,_0x36525e._0x3563a9,0x186)]!==_0x1798ab[_0x47aff2(_0x36525e._0x5188e3,0x185,_0x36525e._0x1caa7c,0x163)])throw new ToolExecutionError(_0x47aff2(-_0x36525e._0x4279d9,0xa2,-_0x36525e._0x517358,_0x36525e._0x70ef48),{'error':_0x47aff2(0x17f,0x12e,_0x36525e._0x57d647,0x146)});}function createStatsProgress(_0x2a4291){const _0x54dcf0={_0x2e3d27:0x267,_0x532bc5:0x2e7,_0x1f9684:0x7a,_0x535645:0xdb,_0xd86b50:0x247,_0x551441:0x330,_0x23c9b3:0x18a,_0x5a6b8c:0xa8,_0x43f113:0x1a5,_0x114dcc:0x137},_0xde11df={_0x13fe74:0x36,_0x388b08:0x32a};function _0x32b23f(_0x11faff,_0x2397b4,_0x36f953,_0x1baddf){return _0x34fd29(_0x2397b4,_0x2397b4-0x1e3,_0x36f953-0x2,_0x36f953- -0x6c8);}function _0x4a8649(_0x74edde,_0x1285e3,_0x11bda9,_0x35cae1){return _0x34fd29(_0x11bda9,_0x1285e3-_0xde11df._0x13fe74,_0x11bda9-0x5e,_0x74edde- -_0xde11df._0x388b08);}return _0x2a4291[_0x4a8649(_0x54dcf0._0x2e3d27,_0x54dcf0._0x532bc5,0x1a6,0x312)]>0x0?Math[_0x32b23f(-_0x54dcf0._0x1f9684,0xe0,0x50,-_0x54dcf0._0x535645)](_0x2a4291[_0x4a8649(_0x54dcf0._0xd86b50,_0x54dcf0._0x551441,_0x54dcf0._0x23c9b3,0x303)]/_0x2a4291[_0x32b23f(-_0x54dcf0._0x5a6b8c,-_0x54dcf0._0x43f113,-_0x54dcf0._0x114dcc,-0x153)]*0x64)+'%':'0%';}function createReminderItems(_0x2a1f8b){const _0x4d93d5={_0x2fe975:0x3e9,_0x4368c7:0x47f,_0x514118:0x4ee},_0x4dfc57={_0x350fca:0x1d9},_0x5e13af={_0x2b95ea:0x1e,_0x57ff79:0x9d};function _0x4c6227(_0x13f7be,_0x39c573,_0x2a50d0,_0x4a13a7){return _0x2803df(_0x2a50d0- -_0x5e13af._0x2b95ea,_0x4a13a7,_0x2a50d0-0xa0,_0x4a13a7-_0x5e13af._0x57ff79);}function _0x3735ef(_0x2f0c13,_0x14ad70,_0x435739,_0x37ecfd){return _0x2803df(_0x435739-0x590,_0x14ad70,_0x435739-0x109,_0x37ecfd-_0x4dfc57._0x350fca);}return _0x2a1f8b[_0x3735ef(0x4ae,_0x4d93d5._0x2fe975,_0x4d93d5._0x4368c7,_0x4d93d5._0x514118)](_0x350c49=>({'content':_0x350c49['content'],'status':_0x350c49[_0x3735ef(0x51e,0x623,0x5bf,0x4f2)],'id':_0x350c49['id']}));}function createStructuredResult(_0x3758e0,_0xe11390,_0x6078ee,_0x190f10){const _0x3b6cd7={_0x234517:0x37,_0x31a38c:0x17f,_0x53d07c:0x3b,_0x1c6b5c:0x44,_0x467c41:0xc},_0x23d079={_0x448534:0x1a,_0x581c17:0x5d7};function _0x52b12c(_0x571737,_0x1ddff2,_0x2ff0a8,_0xc43ccc){return _0x34fd29(_0xc43ccc,_0x1ddff2-0x174,_0x2ff0a8-_0x23d079._0x448534,_0x571737- -_0x23d079._0x581c17);}function _0x5d2794(_0x3943ae,_0x169e37,_0x583dc6,_0x5495d7){return _0x2803df(_0x5495d7-0x2cb,_0x169e37,_0x583dc6-0x108,_0x5495d7-0x5f);}return{'allCompleted':_0x190f10,'items':_0xe11390[_0x52b12c(-0x60,0x84,-_0x3b6cd7._0x234517,-_0x3b6cd7._0x31a38c)](_0x5b82ea=>({'id':_0x5b82ea['id'],'content':_0x5b82ea[_0x52b12c(0xc,0x8e,-0x5c,-0xc1)],'status':_0x5b82ea[_0x5d2794(0x22a,0x28f,0x21c,0x2fa)],'priority':_0x5b82ea[_0x5d2794(0x83,0x204,0x15f,0x144)],'createdAt':_0x5b82ea[_0x5d2794(0x30f,0x25d,0x2c1,0x28f)]})),'progress':createStatsProgress(_0x6078ee),'recentChanges':!![],'sessionId':_0x3758e0,'stats':_0x6078ee,'todosWritten':_0xe11390[_0x52b12c(0x96,-_0x3b6cd7._0x53d07c,-_0x3b6cd7._0x1c6b5c,-_0x3b6cd7._0x467c41)]};}function createOutputText(_0x43bba7,_0x20fa4e){const _0x2c7bc3={_0x1ed325:0x68c,_0x54178d:0x51e,_0x3f4397:0x809,_0xec32b8:0x75a,_0x50bbb1:0x6f4,_0x9edb05:0x6bf,_0x442601:0x5b9,_0x2a3289:0x4e6,_0x1e7a2d:0x573,_0x44efaf:0x6b4},_0x18a62f={_0xb5bf14:0x112,_0x19053d:0x1dd,_0x4e455f:0x1f},_0xbd7b49={_0x608e17:0xec,_0x170ef2:0x1c8};function _0x4c3e5f(_0x35fc34,_0x44577e,_0x4a6a3e,_0x34fc99){return _0x34fd29(_0x35fc34,_0x44577e-_0xbd7b49._0x608e17,_0x4a6a3e-0x1bb,_0x44577e- -_0xbd7b49._0x170ef2);}const _0x589ae8=JSON[_0x4c3e5f(0x5eb,0x4e7,0x43e,0x4ef)](createReminderItems(_0x43bba7));if(_0x20fa4e)return'All\x20'+_0x43bba7[_0xe4e42a(0x748,_0x2c7bc3._0x1ed325,0x705,0x58b)]+_0xe4e42a(0x43e,_0x2c7bc3._0x54178d,0x4ab,0x454)+_0x589ae8+_0xe4e42a(_0x2c7bc3._0x3f4397,_0x2c7bc3._0xec32b8,0x79a,_0x2c7bc3._0x50bbb1);function _0xe4e42a(_0x56d01e,_0x266f0a,_0x4b671a,_0x593e8e){return _0x34fd29(_0x593e8e,_0x266f0a-_0x18a62f._0xb5bf14,_0x4b671a-_0x18a62f._0x19053d,_0x266f0a-_0x18a62f._0x4e455f);}return _0xe4e42a(_0x2c7bc3._0x9edb05,_0x2c7bc3._0x442601,0x5c8,_0x2c7bc3._0x2a3289)+_0x589ae8+_0x4c3e5f(0x4a8,_0x2c7bc3._0x1e7a2d,_0x2c7bc3._0x44efaf,0x622);}function createTodoWriteTool(_0x5e6e5a=new TodoStore()){const _0x2c2190={_0x128c91:0x1dc,_0x253cc4:0xe4,_0x4d48c8:0x14e,_0x308cb0:0x26e,_0x131055:0x276,_0x20e8bd:0x2ba,_0x22e90a:0x18e,_0x42f62a:0x243,_0x58e970:0x46,_0x49c468:0x14a,_0x8fe063:0x233,_0x51bb67:0x238,_0x241e65:0x27d,_0x5b728c:0x294,_0x1cd8c0:0x76,_0x197268:0x58,_0x88bc9b:0x45,_0x5d27da:0xea,_0x78a5e8:0x8f,_0x48122d:0x62,_0x429525:0x308},_0x45c077={_0x20b496:0x143,_0x1f5d3c:0x15e,_0x245121:0x3ab,_0x102d5e:0x40a,_0x529f36:0x120,_0xf6433c:0x266,_0x35b1b8:0x69},_0x18846d={_0x3c46bd:0x13c,_0x4ce985:0x1ad},_0x4d9700={_0x38746f:0x28e,_0x38d7d3:0x161,_0x41a5c9:0x4f},_0x4bad80={_0xaf293a:0x1f2};function _0x127aaf(_0x540778,_0x1a27c6,_0x392a3c,_0x22f346){return _0x2803df(_0x22f346-0x60,_0x392a3c,_0x392a3c-0xb3,_0x22f346-_0x4bad80._0xaf293a);}function _0x7083a8(_0x35a72e,_0x5a0850,_0xe623d,_0x9f5da1){return _0x2803df(_0xe623d-_0x4d9700._0x38746f,_0x9f5da1,_0xe623d-_0x4d9700._0x38d7d3,_0x9f5da1-_0x4d9700._0x41a5c9);}return defineTool({'name':_0x7083a8(_0x2c2190._0x128c91,_0x2c2190._0x253cc4,_0x2c2190._0x4d48c8,_0x2c2190._0x308cb0),'description':_0x7083a8(0x2c8,0x34f,_0x2c2190._0x131055,0x388),'inputSchema':{'type':'object','properties':{'todos':{'type':'array','items':{'type':_0x7083a8(_0x2c2190._0x20e8bd,0x1ce,_0x2c2190._0x22e90a,_0x2c2190._0x42f62a),'properties':{'content':{'type':_0x127aaf(0x62,-_0x2c2190._0x58e970,_0x2c2190._0x49c468,0x4f)},'status':{'type':_0x7083a8(0x211,_0x2c2190._0x8fe063,0x27d,_0x2c2190._0x51bb67)},'priority':{'type':_0x7083a8(0x17a,0x1e2,_0x2c2190._0x241e65,_0x2c2190._0x5b728c)},'id':{'type':'string'},'createdAt':{'type':'string'}},'required':[_0x127aaf(-0x9e,-_0x2c2190._0x1cd8c0,_0x2c2190._0x197268,-_0x2c2190._0x88bc9b),_0x127aaf(_0x2c2190._0x5d27da,-0x53,-0x10,_0x2c2190._0x78a5e8),_0x7083a8(0x91,_0x2c2190._0x48122d,0x107,0xc8),'id']}}},'required':[_0x7083a8(0x336,0x2dc,_0x2c2190._0x429525,0x383)]},async *'execute'(_0x43ca72,_0x371925){const _0xf55b5c=_0x43ca72;validateTodos(_0xf55b5c);const _0x373371=_0x371925['sessionId']||_0x1c2961(_0x45c077._0x20b496,_0x45c077._0x1f5d3c,0x1a5,0xe5);function _0x1c2961(_0x1a425b,_0x7c419,_0x859a1f,_0x13d647){return _0x7083a8(_0x1a425b-_0x18846d._0x3c46bd,_0x7c419-0xaa,_0x859a1f- -_0x18846d._0x4ce985,_0x7c419);}const _0x5b5977=new Date()[_0xe98686(0x376,0x2db,_0x45c077._0x245121,_0x45c077._0x102d5e)](),_0x5ea3a5=_0xf55b5c['todos']['map'](_0xbb47d1=>({'id':_0xbb47d1['id'],'content':_0xbb47d1[_0xe98686(0x2fb,0x3a5,0x344,0x385)],'status':_0xbb47d1[_0x1c2961(0x39,0xf1,0x110,0x115)],'priority':_0xbb47d1[_0xe98686(0x198,0x37a,0x210,0x2a3)],'sessionId':_0x373371,'createdAt':_0xbb47d1[_0xe98686(0x446,0x4cd,0x42d,0x3ee)]||_0x5b5977,'updatedAt':_0x5b5977}));_0x5e6e5a[_0x1c2961(0x1c4,0x251,_0x45c077._0x529f36,_0x45c077._0xf6433c)](_0x373371,_0x5ea3a5);function _0xe98686(_0x4fa6bf,_0x43de0e,_0x406881,_0x264f3e){return _0x127aaf(_0x4fa6bf-0x1c5,_0x43de0e-0x4c,_0x406881,_0x264f3e-0x3ca);}const _0x4cd941=_0x5e6e5a['getStats'](_0x373371),_0x273052=_0x5ea3a5[_0x1c2961(0x165,-_0x45c077._0x35b1b8,0xc6,0x7)]>0x0&&_0x5ea3a5['every'](_0x2e1d15=>_0x2e1d15[_0x1c2961(0x1f0,0x9e,0x110,0x22e)]===_0x1c2961(-0xd4,-0x15f,-0x36,-0x155));return createToolOutput(createOutputText(_0x5ea3a5,_0x273052),createStructuredResult(_0x373371,_0x5ea3a5,_0x4cd941,_0x273052));}});}import{readFile as _0x14171d,stat as _0x12ca82}from'fs/promises';import*as _0x4b2f26 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set(['auto',_0x2803df(-0xf6,-0x238,-0x14a,-0xb8),_0x34fd29(0x55a,0x584,0x5e1,0x598),_0x34fd29(0x5c7,0x55b,0x4e7,0x610)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x130676,_0x1d51e5){const _0x332017={_0x69e2a6:0x642,_0x55048a:0x6c0,_0x114336:0x57d,_0x4cf574:0x63b,_0x1709c3:0x4d3,_0x32544a:0x60e,_0x2d6837:0x6c2,_0x41c1e4:0x664,_0x5a82f6:0x488,_0x396957:0x666,_0x5d1d1a:0x746,_0x29233e:0x3bf,_0x28204a:0x3ef,_0x37af58:0x4fc,_0x4b32a6:0x63d,_0x47011d:0x60e,_0x10ff95:0x7c7,_0x283f19:0x706,_0xdce5:0x56f,_0x35c61d:0x4b3,_0x141912:0x469,_0x528861:0x5ae,_0x276a15:0x250,_0x1773ce:0x1a0,_0x13a894:0x27c,_0xc33108:0x1a1,_0x3f92d3:0x3fb,_0x539823:0x5be,_0x5479e1:0x571,_0x269cab:0x73c,_0x4fe5cc:0x685,_0x2171b1:0x2a5,_0x4a6ad1:0xde,_0x5bd72f:0x3d2,_0x4075c6:0x3d0,_0x289b7b:0x2a1,_0x4fb9c2:0x269,_0x25d779:0x2b4,_0xc991a2:0x864,_0xf2f4cc:0x736,_0x1fccf4:0x24e,_0x343df8:0x1ef,_0xa58612:0x2c6,_0x4f146a:0x336,_0x155c63:0x573,_0x5f26c0:0x5f0,_0x39ef23:0x635,_0x3d016a:0x5d1,_0x4e07e1:0x1a5,_0x51d3f9:0x22f,_0x1f1522:0x27d},_0x2f2cb6={_0x2e96fb:0x134,_0x454812:0x15b,_0x1fa167:0x36};if(_0x130676['subarray'](0x0,0x8)[_0x2fac1f(_0x332017._0x69e2a6,0x4d9,_0x332017._0x55048a,_0x332017._0x114336)](PNG_SIGNATURE))return'image/png';if(_0x130676[0x0]===0xff&&_0x130676[0x1]===0xd8&&_0x130676[0x2]===0xff)return'image/jpeg';function _0x2fac1f(_0x5cde8d,_0x4080b1,_0x19a102,_0x66721e){return _0x34fd29(_0x4080b1,_0x4080b1-_0x2f2cb6._0x2e96fb,_0x19a102-_0x2f2cb6._0x454812,_0x66721e- -_0x2f2cb6._0x1fa167);}const _0x3ec6f6=_0x130676[_0x2fac1f(0x434,_0x332017._0x4cf574,0x4d6,0x4fc)](0x0,0x6)[_0x2fac1f(0x666,_0x332017._0x1709c3,0x502,_0x332017._0x32544a)](_0x2fac1f(_0x332017._0x2d6837,0x575,0x654,0x6a5));if(_0x3ec6f6===_0x2fac1f(_0x332017._0x41c1e4,0x6aa,_0x332017._0x5a82f6,0x5cc)||_0x3ec6f6===_0x2fac1f(0x601,_0x332017._0x396957,0x788,_0x332017._0x5d1d1a))return'image/gif';if(_0x130676[_0x2fac1f(_0x332017._0x29233e,0x588,_0x332017._0x28204a,_0x332017._0x37af58)](0x0,0x4)[_0x2fac1f(_0x332017._0x1709c3,0x54d,_0x332017._0x4b32a6,_0x332017._0x47011d)](_0x2fac1f(_0x332017._0x10ff95,_0x332017._0x283f19,_0x332017._0xdce5,0x6a5))===_0x2fac1f(_0x332017._0x35c61d,_0x332017._0x141912,0x62a,_0x332017._0x528861)&&_0x130676[_0x6f268c(_0x332017._0x276a15,_0x332017._0x1773ce,_0x332017._0x13a894,0x136)](0x8,0xc)['toString'](_0x6f268c(_0x332017._0xc33108,_0x332017._0x3f92d3,0x35a,0x2df))===_0x2fac1f(0x5e1,_0x332017._0x539823,_0x332017._0x5479e1,0x6a3))return _0x2fac1f(0x5e1,0x75f,_0x332017._0x269cab,_0x332017._0x4fe5cc);const _0x1f7660=_0x4b2f26[_0x6f268c(_0x332017._0x2171b1,_0x332017._0x4a6ad1,0xf0,0x1ca)](_0x1d51e5)[_0x6f268c(0x44a,0x30d,_0x332017._0x5bd72f,0x33e)]();if(_0x1f7660===_0x6f268c(_0x332017._0x4075c6,0x31d,0x1c7,_0x332017._0x289b7b))return _0x6f268c(_0x332017._0x4fb9c2,_0x332017._0x25d779,0x1e7,0x290);if(_0x1f7660==='.jpg'||_0x1f7660===_0x2fac1f(0x622,_0x332017._0xc991a2,0x796,_0x332017._0xf2f4cc))return _0x6f268c(0x210,_0x332017._0x1fccf4,0xe3,_0x332017._0x343df8);function _0x6f268c(_0x6df465,_0x3cb9bc,_0x556fcd,_0x38af51){return _0x34fd29(_0x556fcd,_0x3cb9bc-0xd6,_0x556fcd-0x16,_0x38af51- -0x3fc);}if(_0x1f7660===_0x6f268c(_0x332017._0xa58612,0x460,0x415,_0x332017._0x4f146a))return _0x2fac1f(_0x332017._0x155c63,_0x332017._0x5f26c0,_0x332017._0x39ef23,_0x332017._0x3d016a);if(_0x1f7660===_0x6f268c(_0x332017._0x4e07e1,_0x332017._0x51d3f9,0x322,_0x332017._0x1f1522))return _0x2fac1f(0x724,0x5c6,0x66e,0x685);return void 0x0;}function normalizeDetail(_0x297aaa){const _0x18609a={_0x511102:0x34e,_0x5d122c:0x3a0,_0x2f645d:0x308,_0x3f438d:0x1ea,_0x1d8e35:0xcf,_0x177cd6:0xf4},_0x5aecff={_0x30985c:0x3d0},_0x5c47fa={_0x283812:0x1e0,_0x1dde00:0x196,_0x5027a5:0x6cd};if(_0x297aaa===void 0x0)return void 0x0;function _0x4f0749(_0x77a578,_0x5d2d4b,_0x32e2da,_0x5403f8){return _0x34fd29(_0x5d2d4b,_0x5d2d4b-_0x5c47fa._0x283812,_0x32e2da-_0x5c47fa._0x1dde00,_0x5403f8- -_0x5c47fa._0x5027a5);}const _0x256d51=_0x297aaa[_0x4f0749(-0x2ff,-0x1da,-0xe3,-0x1c1)]()[_0xfd1fd9(_0x18609a._0x511102,0x482,0x524,0x3cf)]();function _0xfd1fd9(_0x567436,_0x5213e0,_0x167209,_0x5ad2dc){return _0x2803df(_0x5213e0-_0x5aecff._0x30985c,_0x167209,_0x167209-0x1e1,_0x5ad2dc-0x11b);}if(!SUPPORTED_DETAILS[_0xfd1fd9(_0x18609a._0x5d122c,_0x18609a._0x2f645d,0x371,_0x18609a._0x3f438d)](_0x256d51))throw new ToolExecutionError(_0x4f0749(-0x104,-0x38,-_0x18609a._0x1d8e35,-_0x18609a._0x177cd6)+_0x297aaa,{'detail':_0x297aaa});return _0x256d51;}function createViewFileTool(_0x528e25={}){const _0x46965e={_0x12e945:0xd1,_0x167ed3:0x17c,_0x1ca896:0x119,_0x4570b7:0x1c6,_0x306613:0x1f4,_0xc2d9d0:0x25a,_0x1fc0eb:0x96,_0x838546:0x1b3,_0x3090c2:0x295,_0x3de55a:0x3bc,_0xae36aa:0x77,_0x16f872:0x12a},_0x67f9fa={_0x42542b:0x7d,_0x3dc285:0x16c,_0x2200d7:0x18c,_0x2da371:0x654,_0x498401:0x615,_0x586c97:0x80d,_0x2cabe4:0xb8,_0x5c957f:0x15e,_0x79a171:0x2e0,_0x42a5d8:0x31e,_0x4d04c2:0x1a4,_0x2028ea:0x571,_0x5353a0:0x4b8,_0x253035:0xc0,_0x43f92f:0x18c,_0x224e9b:0x80e,_0x3a1072:0x6ef,_0x4dc836:0x697,_0x324b74:0x3e3,_0x2c2448:0x379,_0x5816d1:0x307,_0x7f3a0:0x519,_0x2ef7a6:0x7a4,_0x340cfe:0x322,_0x3e3c7d:0x57f,_0xcccd37:0x7f5,_0x4aa037:0x753,_0x279bd0:0x7e5,_0x17c423:0x3f4,_0x389e16:0x27a,_0xb464d9:0x24e,_0x515414:0x2e1,_0x1fd174:0x45d,_0x54312:0x21f,_0x4cdf36:0x44f,_0x49db86:0x51f,_0x214a16:0x5f9,_0x3ddf00:0x5f8,_0x9fe80c:0xf8,_0x4feb2a:0x1d4,_0x3f4d97:0x237,_0x4f1b57:0x160,_0x5b76a2:0x2e7,_0x1ee08b:0x2f8,_0x5277a2:0x299,_0x1ce69b:0x504,_0x26787e:0x693,_0x3ebe6e:0x261,_0x3b1bc8:0x32d,_0x103558:0x2f6,_0x43e5d9:0x6db,_0x5d83a5:0x6c1,_0xcadb0c:0x6b9,_0xceb913:0x703,_0x73841c:0x66d,_0x1ecc71:0x81e,_0xc8b437:0x53b,_0x509ddd:0x688,_0x2fd2ba:0x582},_0x177b7e={_0x5458fe:0x4d1,_0x25f57e:0x174,_0x359b86:0x172},_0x36c3d0={_0x27a32d:0x2c,_0x4885c5:0x1b0,_0x2db908:0x45e},_0x5b638d={_0x1958ed:0x60},_0x23b44c=_0x4b2f26['resolve'](_0x528e25['defaultCwd']??process['cwd']());function _0x56a816(_0x730704,_0x276279,_0x497c26,_0x550245){return _0x2803df(_0x730704-_0x5b638d._0x1958ed,_0x276279,_0x497c26-0x96,_0x550245-0x80);}const _0x2b470a=(_0x528e25[_0x4c28e9(_0x46965e._0x12e945,-0x6f,0x1b4,_0x46965e._0x167ed3)]??[])[_0x4c28e9(_0x46965e._0x1ca896,_0x46965e._0x4570b7,0x1f4,0xa3)](_0x24fe4e=>_0x4b2f26[_0x56a816(0x49,-0xe6,-0x61,0xa3)](_0x24fe4e));function _0x4c28e9(_0x5d0a1f,_0x23cfa2,_0x43bddc,_0x3d4cf4){return _0x34fd29(_0x23cfa2,_0x23cfa2-_0x36c3d0._0x27a32d,_0x43bddc-_0x36c3d0._0x4885c5,_0x5d0a1f- -_0x36c3d0._0x2db908);}const _0x5c92eb=_0x528e25['maxBytes']??DEFAULT_MAX_BYTES,_0x469c9a=_0x528e25[_0x4c28e9(_0x46965e._0x306613,0x25e,0xf2,_0x46965e._0xc2d9d0)]??_0x56a816(_0x46965e._0x1fc0eb,0x11a,_0x46965e._0x838546,-0xa4);return defineTool({'name':_0x469c9a,'description':_0x4c28e9(_0x46965e._0x3090c2,0x15d,0x279,_0x46965e._0x3de55a),'inputSchema':{'type':'object','properties':{'path':{'type':'string'},'detail':{'type':_0x56a816(0x4f,_0x46965e._0xae36aa,-0x90,0x104)}},'required':[_0x56a816(-_0x46965e._0x16f872,-0x149,-0xdc,-0x14f)]},async *'execute'(_0x344c95){const _0x4cfe6f={_0x5d7532:0x89,_0x55551a:0x51},_0x21b056=resolveAllowedPath(_0x23b44c,_0x2b470a,_0x344c95[_0x17a704(0x172,_0x67f9fa._0x42542b,_0x67f9fa._0x3dc285,_0x67f9fa._0x2200d7)]);await assertWorkspaceFile(_0x21b056);const _0x2cd5b0=await _0x12ca82(_0x21b056);if(_0x2cd5b0[_0x170390(0x703,_0x67f9fa._0x2da371,_0x67f9fa._0x498401,_0x67f9fa._0x586c97)]>_0x5c92eb)throw new ToolExecutionError('Image\x20file\x20is\x20too\x20large:\x20'+_0x344c95[_0x17a704(_0x67f9fa._0x2cabe4,0x11b,0x1f5,0x18c)],{'path':_0x344c95[_0x17a704(0x2c3,_0x67f9fa._0x5c957f,0x295,0x18c)],'maxBytes':_0x5c92eb,'size':_0x2cd5b0[_0x17a704(_0x67f9fa._0x79a171,0x323,0x227,_0x67f9fa._0x42a5d8)]});const _0x423fd7=await _0x14171d(_0x21b056),_0x3e8a33=detectImageMediaType(_0x423fd7,_0x21b056);if(!_0x3e8a33)throw new ToolExecutionError(_0x17a704(_0x67f9fa._0x4d04c2,0x242,0x1d1,0x294)+_0x344c95[_0x170390(_0x67f9fa._0x2028ea,_0x67f9fa._0x5353a0,0x4cb,0x5ef)],{'path':_0x344c95[_0x17a704(0x1de,_0x67f9fa._0x253035,0xd4,_0x67f9fa._0x43f92f)],'supported':['.gif',_0x170390(0x7df,_0x67f9fa._0x224e9b,0x824,0x6d2),_0x170390(_0x67f9fa._0x3a1072,0x6f7,0x7e5,_0x67f9fa._0x4dc836),_0x170390(0x710,0x6f4,0x819,0x7b9),_0x17a704(0x3c1,_0x67f9fa._0x324b74,_0x67f9fa._0x2c2448,_0x67f9fa._0x5816d1)]});const _0x35db3b=normalizeDetail(_0x344c95[_0x170390(0x65c,_0x67f9fa._0x7f3a0,0x5b2,_0x67f9fa._0x2ef7a6)]);function _0x17a704(_0x3bf267,_0x1a4e2e,_0x1c6781,_0x31af05){return _0x56a816(_0x31af05-0x2b6,_0x3bf267,_0x1c6781-_0x4cfe6f._0x5d7532,_0x31af05-_0x4cfe6f._0x55551a);}const _0x238f5c=[_0x17a704(0x142,0x205,_0x67f9fa._0x340cfe,0x1fe)+_0x344c95[_0x170390(0x571,0x57c,_0x67f9fa._0x3e3c7d,0x62d)],_0x170390(_0x67f9fa._0xcccd37,_0x67f9fa._0x4aa037,_0x67f9fa._0x279bd0,0x771)+_0x3e8a33,_0x17a704(_0x67f9fa._0x17c423,_0x67f9fa._0x389e16,_0x67f9fa._0xb464d9,_0x67f9fa._0x515414)+_0x2cd5b0[_0x17a704(_0x67f9fa._0x1fd174,_0x67f9fa._0x54312,_0x67f9fa._0x4cdf36,_0x67f9fa._0x42a5d8)]+_0x170390(0x70a,0x7f5,0x5f6,0x6a7)]['concat'](_0x35db3b?[_0x170390(0x5d4,_0x67f9fa._0x49db86,_0x67f9fa._0x214a16,_0x67f9fa._0x3ddf00)+_0x35db3b]:[])[_0x17a704(0x245,0x2a4,0x22b,0x363)]('\x0a'),_0x86eac9=[{'type':_0x17a704(0x1d4,0x26f,_0x67f9fa._0x9fe80c,_0x67f9fa._0x4feb2a),'source':{'type':_0x17a704(_0x67f9fa._0x3f4d97,_0x67f9fa._0x4f1b57,_0x67f9fa._0x5b76a2,0x1f9),'media_type':_0x3e8a33,'data':_0x423fd7['toString'](_0x17a704(0x1d7,_0x67f9fa._0x1ee08b,_0x67f9fa._0x5277a2,0x1f9))}},{'type':_0x170390(0x7ca,0x7b6,0x877,0x82c),'text':_0x238f5c}];yield createToolOutput(_0x238f5c,{'path':_0x344c95[_0x170390(_0x67f9fa._0x2028ea,_0x67f9fa._0x1ce69b,_0x67f9fa._0x26787e,0x5e2)],'resolvedPath':_0x21b056,'created':_0x2cd5b0[_0x17a704(0x310,0x190,0x13b,_0x67f9fa._0x3ebe6e)][_0x17a704(_0x67f9fa._0x3b1bc8,0x3c2,0x1fa,_0x67f9fa._0x103558)](),'modified':_0x2cd5b0['mtime'][_0x170390(_0x67f9fa._0x43e5d9,0x5e9,_0x67f9fa._0x5d83a5,_0x67f9fa._0xcadb0c)](),'size':_0x2cd5b0[_0x170390(_0x67f9fa._0xceb913,0x758,_0x67f9fa._0x73841c,_0x67f9fa._0x1ecc71)],'mimeType':_0x3e8a33,'encoding':_0x170390(0x5de,_0x67f9fa._0xc8b437,_0x67f9fa._0x509ddd,_0x67f9fa._0x2fd2ba),..._0x35db3b?{'detail':_0x35db3b}:{}},_0x86eac9);function _0x170390(_0x19b80f,_0x1e2af9,_0x2a2c44,_0x4b2b47){return _0x4c28e9(_0x19b80f-_0x177b7e._0x5458fe,_0x2a2c44,_0x2a2c44-_0x177b7e._0x25f57e,_0x4b2b47-_0x177b7e._0x359b86);}return void 0x0;}});}import _0x45ab9e from'turndown';var USER_AGENT=_0x34fd29(0x646,0x76c,0x62d,0x64e),DEFAULT_MAX_BYTES2=0xf4240,DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x223a80){const _0x3253a6={_0x50486d:0x421,_0x3a1f95:0x197,_0x4e80ac:0x1f6,_0x187565:0x1cc,_0x36386c:0x3be,_0x2eb2ea:0x448,_0x1e492d:0x1fa,_0xd6ae55:0xa3,_0x24f08b:0x108,_0x23f9de:0x338,_0x1410b6:0x322,_0x4b41bd:0x1cb,_0x24cd02:0x303,_0x4e1c6e:0x221,_0x5d36e1:0x1f3,_0x952721:0x33b,_0x306981:0x19f,_0x357989:0x171},_0x15b305={_0x15847d:0x150},_0x355cc9={_0x2b6072:0xbb,_0x2d9289:0x576};function _0x44a33d(_0xd304cd,_0x53b769,_0x42627e,_0x1c4d77){return _0x34fd29(_0x53b769,_0x53b769-_0x355cc9._0x2b6072,_0x42627e-0x165,_0x1c4d77- -_0x355cc9._0x2d9289);}let _0x4dfdb7;try{_0x4dfdb7=new URL(_0x223a80);}catch{throw new ToolExecutionError(_0x4ba993(_0x3253a6._0x50486d,0x344,0x20a,0x3e7),{'url':_0x223a80});}if(_0x4dfdb7[_0x44a33d(_0x3253a6._0x3a1f95,_0x3253a6._0x4e80ac,0x1a2,_0x3253a6._0x187565)]!==_0x4ba993(0x2ea,_0x3253a6._0x36386c,_0x3253a6._0x2eb2ea,0x489)&&_0x4dfdb7['protocol']!==_0x44a33d(_0x3253a6._0x1e492d,_0x3253a6._0xd6ae55,-0x31,_0x3253a6._0x24f08b))throw new ToolExecutionError(_0x4ba993(_0x3253a6._0x23f9de,0x38b,0x334,0x3ba),{'url':_0x223a80});function _0x4ba993(_0x2ee8d1,_0x54407b,_0x52c76f,_0x468405){return _0x2803df(_0x54407b-0x2e0,_0x468405,_0x52c76f-0x99,_0x468405-_0x15b305._0x15847d);}if(_0x4dfdb7[_0x4ba993(_0x3253a6._0x1410b6,0x1fa,_0x3253a6._0x4b41bd,0x22e)]||_0x4dfdb7[_0x4ba993(_0x3253a6._0x24cd02,0x242,_0x3253a6._0x4e1c6e,0x12e)])throw new ToolExecutionError(_0x4ba993(0x12f,_0x3253a6._0x5d36e1,0x13e,_0x3253a6._0x952721),{'url':_0x4dfdb7['protocol']+'//'+_0x4dfdb7[_0x4ba993(0x1db,_0x3253a6._0x306981,0x28a,_0x3253a6._0x357989)]+_0x4dfdb7['pathname']});return _0x4dfdb7;}function parseContentLength(_0x59eb22){const _0x12eb4a={_0x1d9ef2:0x631,_0x100f77:0x633},_0x3d519b={_0x29e89b:0x15b,_0x49e110:0x5f};if(!_0x59eb22)return void 0x0;const _0x34f4d4=Number(_0x59eb22);function _0x175ec7(_0x522357,_0xfae79d,_0x503b40,_0x5c2ff3){return _0x34fd29(_0xfae79d,_0xfae79d-_0x3d519b._0x29e89b,_0x503b40-0x184,_0x522357- -_0x3d519b._0x49e110);}return Number[_0x175ec7(0x55a,0x503,_0x12eb4a._0x1d9ef2,_0x12eb4a._0x100f77)](_0x34f4d4)&&_0x34f4d4>=0x0?_0x34f4d4:void 0x0;}function createTimeoutSignal(_0x736896,_0x1bb033){const _0x4f5b98={_0x952325:0x35d,_0x2c6035:0x646,_0x2640f2:0x2d6,_0x466ade:0x30d,_0x4b9a2a:0x34c,_0x14938b:0x273},_0x34ef2b={_0x445ccc:0x188,_0x4cdaee:0x38},_0x38516d={_0x39af93:0x14f},_0x2e0d76={_0x842e61:0x11e},_0x205929={_0x12c83a:0x17c,_0x1eb567:0x183};function _0x22ee67(_0x21c82f,_0x2cbb93,_0x2403c6,_0x5a95c1){return _0x34fd29(_0x5a95c1,_0x2cbb93-_0x205929._0x12c83a,_0x2403c6-_0x205929._0x1eb567,_0x21c82f- -0x280);}const _0x2272f9=new AbortController(),_0x21c4ce=setTimeout(()=>_0x2272f9[_0x22ee67(0x2e5,0x2bd,0x1fc,0x2b3)](new Error(_0x22ee67(0x4a8,0x394,0x50a,0x4c5))),_0x1bb033),_0x44f6c5=()=>_0x2272f9[_0x22ee67(0x2e5,0x2da,0x3eb,0x399)](_0x736896[_0x22ee67(0x3d8,0x2fb,0x29c,0x3be)]);_0x736896['aborted']?_0x2272f9[_0x22ee67(0x2e5,0x352,_0x4f5b98._0x952325,0x1f6)](_0x736896[_0x147c07(0x7b4,0x6c2,_0x4f5b98._0x2c6035,0x7f4)]):_0x736896[_0x22ee67(0x290,0x2e1,_0x4f5b98._0x2640f2,_0x4f5b98._0x466ade)]('abort',_0x44f6c5,{'once':!![]});function _0x147c07(_0xa0305b,_0x5d3a31,_0x2e64f7,_0x9805b){return _0x2803df(_0x5d3a31-0x6f2,_0x2e64f7,_0x2e64f7-_0x2e0d76._0x842e61,_0x9805b-0x142);}return{'signal':_0x2272f9[_0x22ee67(_0x4f5b98._0x4b9a2a,_0x4f5b98._0x14938b,0x413,0x29b)],'cleanup':()=>{function _0x5a9505(_0x26a906,_0x545eda,_0x3b174f,_0x5a6927){return _0x22ee67(_0x26a906-0x31d,_0x545eda-_0x38516d._0x39af93,_0x3b174f-0x1f1,_0x3b174f);}clearTimeout(_0x21c4ce);function _0x41e75e(_0x24e241,_0x33f739,_0x2a769d,_0x180043){return _0x22ee67(_0x2a769d- -0x224,_0x33f739-0x1a3,_0x2a769d-0x41,_0x24e241);}_0x736896[_0x41e75e(_0x34ef2b._0x445ccc,-_0x34ef2b._0x4cdaee,0x89,0xeb)](_0x5a9505(0x602,0x59c,0x59e,0x576),_0x44f6c5);}};}function createWebFetchTool(_0xdc19ba={}){const _0x1e0193={_0x395c2a:0x6b9,_0x486669:0x471,_0x487efe:0x43a,_0x452ae8:0x347,_0x122c13:0x52d,_0x5581cd:0x566,_0x49f6b4:0x697,_0x1bf3fd:0x277,_0x5dcfce:0x265,_0x5c01bf:0x1df,_0x480293:0x357,_0xeeae6e:0x6bc,_0x1b48b3:0x5ea,_0x2cede8:0x62c,_0x419df6:0x646,_0x441a46:0x605,_0x500a54:0x375,_0x271bdd:0x3af,_0x293ad6:0x207,_0x2449c1:0x231,_0x415549:0x2f0,_0x1de987:0x2e7,_0x1c3065:0x19d,_0x1385a3:0x477,_0xf7989b:0x364},_0x8c0abe={_0x4093a4:0x3ad,_0x580b02:0x38e,_0xbedfe:0x2a0,_0x4b4c2f:0x295,_0x5917f3:0x16a,_0x446f4b:0x1fd,_0x4ae0b4:0x8f,_0x37f553:0xf1,_0x558296:0x2d2,_0x57f141:0x1d4,_0x2bd2d7:0x20c,_0x161cab:0x1b8,_0x56b197:0x89,_0x105d76:0x78,_0x5912d1:0xa9,_0x4eb57e:0x1da,_0x5a243c:0x98,_0x2d4bc1:0x382,_0x413c95:0xf2,_0x310b28:0xd9,_0x4ef160:0x1bf,_0x4558fc:0x163,_0x36e67f:0x19,_0x37480b:0x65,_0x57d806:0x18,_0x238f8f:0x22b,_0x1c4440:0x35d,_0x346dd2:0x22d,_0x26f22f:0x2c8,_0x483f43:0x81,_0x14ea8d:0x8f,_0x459ace:0x11,_0x45aade:0x65,_0x358c97:0x173,_0x2e2d20:0x29,_0x150901:0x8a,_0xa40be6:0x122,_0x4d4c90:0x1b4,_0x25b8b1:0x1f0,_0x4ea97f:0xf6,_0x188716:0x1e2,_0xf8ca3a:0x131,_0x3e229:0x25e,_0x30335a:0x275,_0x588cae:0x6d,_0x3d8700:0x1a0,_0x50c73b:0x93,_0x386acf:0x215,_0x5e01bf:0x1cf,_0x2bb54d:0xaa,_0x1d87c1:0xe7,_0x14b022:0x18b,_0x296d49:0x74,_0x2f8d34:0x188,_0x48eb66:0x2cb,_0xfc6b74:0x23e,_0x2e97d8:0x50,_0x5a6932:0x9a,_0x3ab1f9:0x2d5,_0x4025ce:0x10e,_0x47463f:0x115,_0x2b666f:0x1e7,_0x1d1a0c:0x23f,_0x2457e1:0x20a,_0x56603e:0x160,_0x213023:0x28f,_0x32dc7f:0x1d0,_0x43299e:0xea,_0x33ad2b:0x1ca,_0x31f0b8:0x149,_0x24568e:0x22f},_0x9637d4={_0x112222:0x2fb,_0x13b286:0x1aa},_0x302b9a={_0x4f79a2:0x1f0,_0xbbcf50:0x36f,_0x4c19ea:0x5e},_0x5bc7bd={_0x3fadc6:0xce},_0x5b3b9f={_0x9b087a:0x637,_0x1863bc:0x199},_0x2b0ad1=_0xdc19ba['name']??_0x4e663d(0x6bd,_0x1e0193._0x395c2a,0x64d,0x639),_0x1ec52f=_0xdc19ba['maxBytes']??DEFAULT_MAX_BYTES2,_0x523b38=_0xdc19ba['timeoutMs']??DEFAULT_TIMEOUT_MS2,_0x1c7272=new _0x45ab9e({'headingStyle':_0x5509c0(_0x1e0193._0x486669,_0x1e0193._0x487efe,_0x1e0193._0x452ae8,_0x1e0193._0x122c13),'codeBlockStyle':_0x4e663d(0x471,_0x1e0193._0x5581cd,_0x1e0193._0x49f6b4,0x5ca),'bulletListMarker':'-'});_0x1c7272[_0x5509c0(_0x1e0193._0x1bf3fd,0x2aa,0x30c,0x26a)]([_0x5509c0(0x237,_0x1e0193._0x5dcfce,_0x1e0193._0x5c01bf,_0x1e0193._0x480293),_0x5509c0(0x2e1,0x2ea,0x3b8,0x1b6),'noscript',_0x4e663d(_0x1e0193._0xeeae6e,_0x1e0193._0x1b48b3,0x70d,_0x1e0193._0x2cede8),_0x4e663d(0x57f,0x5e0,0x59e,_0x1e0193._0x419df6),_0x4e663d(_0x1e0193._0x441a46,0x5a8,0x551,0x611),'header',_0x5509c0(_0x1e0193._0x500a54,0x270,_0x1e0193._0x271bdd,_0x1e0193._0x293ad6)]);function _0x4e663d(_0x5975f6,_0x2d5864,_0x28446c,_0x2cf734){return _0x2803df(_0x2d5864-_0x5b3b9f._0x9b087a,_0x28446c,_0x28446c-_0x5b3b9f._0x1863bc,_0x2cf734-0x17e);}function _0x5509c0(_0x3120ae,_0x98ff29,_0x13ab31,_0x2b7d4e){return _0x34fd29(_0x2b7d4e,_0x98ff29-0x1b7,_0x13ab31-_0x5bc7bd._0x3fadc6,_0x98ff29- -0x313);}return defineTool({'name':_0x2b0ad1,'description':_0x5509c0(_0x1e0193._0x2449c1,_0x1e0193._0x415549,0x266,0x435),'inputSchema':{'type':_0x5509c0(_0x1e0193._0x1de987,0x275,0x166,_0x1e0193._0x1c3065),'properties':{'description':{'type':_0x5509c0(_0x1e0193._0x1385a3,_0x1e0193._0xf7989b,0x456,0x2f3)},'url':{'type':'string'}},'required':['url']},async *'execute'(_0x49434d,_0x790b2d){const _0x133002=assertFetchableUrl(_0x49434d[_0x45afea(_0x8c0abe._0x4093a4,_0x8c0abe._0x580b02,0x1f0,0x2ac)])['toString']();function _0x45afea(_0x5940e7,_0x8a6ed8,_0x471d02,_0x426e3b){return _0x4e663d(_0x5940e7-_0x302b9a._0x4f79a2,_0x426e3b- -_0x302b9a._0xbbcf50,_0x5940e7,_0x426e3b-_0x302b9a._0x4c19ea);}if(_0x790b2d[_0xe68eab(-0x94,-0x11b,-0x42,0x36)][_0x45afea(_0x8c0abe._0xbedfe,_0x8c0abe._0x4b4c2f,0x1f6,_0x8c0abe._0x5917f3)])throw new ToolExecutionError(_0xe68eab(0xcf,_0x8c0abe._0x446f4b,0x171,_0x8c0abe._0x4ae0b4),{'url':_0x133002});const _0x3893ec=createTimeoutSignal(_0x790b2d[_0xe68eab(-0xb8,-0x13,-0x42,-_0x8c0abe._0x37f553)],_0x523b38);function _0xe68eab(_0x11fb2f,_0x4fd8b9,_0x1b0291,_0x285158){return _0x5509c0(_0x11fb2f-0x11a,_0x1b0291- -_0x9637d4._0x112222,_0x1b0291-_0x9637d4._0x13b286,_0x4fd8b9);}let _0x5c4eef='',_0x3edd5f=0x0,_0x3bf751;try{const _0x2f396a=await fetch(_0x133002,{'headers':{'User-Agent':USER_AGENT},'signal':_0x3893ec[_0x45afea(_0x8c0abe._0x558296,_0x8c0abe._0x57f141,0x1b1,_0x8c0abe._0x2bd2d7)]});if(!_0x2f396a['ok'])throw new ToolExecutionError(_0xe68eab(0xc6,_0x8c0abe._0x161cab,0x97,-_0x8c0abe._0x56b197)+_0x2f396a[_0xe68eab(-0x65,-_0x8c0abe._0x105d76,_0x8c0abe._0x5912d1,0x8a)]+'\x20'+_0x2f396a[_0xe68eab(_0x8c0abe._0x4eb57e,0xa5,0xb4,_0x8c0abe._0x5a243c)],{'url':_0x133002,'statusCode':_0x2f396a[_0x45afea(_0x8c0abe._0x2d4bc1,0x29f,0x3b0,0x2f7)]});const _0x5b43ee=parseContentLength(_0x2f396a[_0x45afea(0x2be,_0x8c0abe._0x413c95,_0x8c0abe._0x310b28,_0x8c0abe._0x4ef160)][_0xe68eab(_0x8c0abe._0x4558fc,-_0x8c0abe._0x36e67f,_0x8c0abe._0x37480b,-_0x8c0abe._0x57d806)](_0x45afea(0x3f5,_0x8c0abe._0x238f8f,0x285,0x2cd)));if(_0x5b43ee!==void 0x0&&_0x5b43ee>_0x1ec52f)throw new ToolExecutionError(_0xe68eab(0xef,0x194,0xf7,0xcc)+_0x5b43ee+_0x45afea(0x215,0x372,0x37e,_0x8c0abe._0x1c4440)+_0x1ec52f+_0x45afea(_0x8c0abe._0x346dd2,_0x8c0abe._0x26f22f,0x284,0x2d7),{'url':_0x133002,'statusCode':_0x2f396a['status'],'contentLength':_0x5b43ee,'maxBytes':_0x1ec52f});_0x5c4eef=_0x2f396a[_0xe68eab(-_0x8c0abe._0x483f43,-0x11d,-_0x8c0abe._0x14ea8d,-0x1a3)][_0xe68eab(-_0x8c0abe._0x459ace,-0x5d,_0x8c0abe._0x45aade,0xa1)]('content-type')??'',_0x3edd5f=_0x2f396a['status'],_0x3bf751=await _0x2f396a[_0xe68eab(_0x8c0abe._0x358c97,0x163,0x149,_0x8c0abe._0x2e2d20)]();}catch(_0x13a2cc){if(_0x13a2cc instanceof ToolExecutionError)throw _0x13a2cc;const _0xc6d180=_0x13a2cc instanceof Error?_0x13a2cc[_0xe68eab(-_0x8c0abe._0x150901,-_0x8c0abe._0xa40be6,0x1,-0xf6)]:String(_0x13a2cc);throw new ToolExecutionError(_0xc6d180,{'url':_0x133002});}finally{_0x3893ec[_0xe68eab(-_0x8c0abe._0x4d4c90,-_0x8c0abe._0x25b8b1,-0x109,-_0x8c0abe._0x4ea97f)]();}if(Buffer[_0xe68eab(0x152,_0x8c0abe._0x188716,_0x8c0abe._0xf8ca3a,_0x8c0abe._0x3e229)](_0x3bf751,_0x45afea(0xf3,_0x8c0abe._0x30335a,_0x8c0abe._0x588cae,_0x8c0abe._0x3d8700))>_0x1ec52f)throw new ToolExecutionError(_0x45afea(_0x8c0abe._0x50c73b,0x2b7,_0x8c0abe._0x386acf,_0x8c0abe._0x5e01bf)+_0x1ec52f+'\x20bytes',{'url':_0x133002,'statusCode':_0x3edd5f,'maxBytes':_0x1ec52f});const _0xd296d8=new Date()[_0xe68eab(-_0x8c0abe._0x2bb54d,_0x8c0abe._0x1d87c1,0x5a,0x165)]();let _0x5774ae,_0x5398fa;if(_0x5c4eef[_0x45afea(0x6c,_0x8c0abe._0x14b022,_0x8c0abe._0x296d49,0x139)]('application/json'))_0x5774ae=_0x45afea(_0x8c0abe._0x2f8d34,0x378,_0x8c0abe._0x48eb66,_0x8c0abe._0xfc6b74)+_0x3bf751+_0xe68eab(_0x8c0abe._0x2e97d8,0x193,_0x8c0abe._0x5a6932,0x70),_0x5398fa=_0x45afea(0x3df,0x347,_0x8c0abe._0x4b4c2f,_0x8c0abe._0x3ab1f9);else _0x5c4eef[_0xe68eab(-_0x8c0abe._0x4025ce,-0x1c1,-_0x8c0abe._0x47463f,-_0x8c0abe._0x2b666f)](_0x45afea(_0x8c0abe._0x1d1a0c,_0x8c0abe._0x2457e1,_0x8c0abe._0x56603e,_0x8c0abe._0x213023))?(_0x5774ae=_0x1c7272[_0xe68eab(-0x183,-_0x8c0abe._0x32dc7f,-_0x8c0abe._0x43299e,-0x85)](_0x3bf751),_0x5398fa=_0xe68eab(-_0x8c0abe._0x33ad2b,-0x156,-0xa0,-_0x8c0abe._0x358c97)):(_0x5774ae=_0x3bf751,_0x5398fa=_0xe68eab(0x43,0x192,_0x8c0abe._0x31f0b8,_0x8c0abe._0x24568e));return yield createToolOutput(_0x5774ae,{'url':_0x133002,'contentType':_0x5c4eef,'statusCode':_0x3edd5f,'format':_0x5398fa,'size':_0x3bf751['length'],'fetchedAt':_0xd296d8}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2='Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20Chrome/123.0.0.0\x20Safari/537.36\x20NuvinBot/1.0';function normalizeUrl(_0x1b8736){const _0x2168b3={_0x1aad8b:0x699,_0x5e2c4a:0x5d3,_0x77f563:0x626,_0x1162d1:0x689,_0x757ce7:0x537,_0x1142ca:0x67d,_0x354185:0x68b,_0x5cb8ac:0x567,_0x2b710a:0x3de,_0x2a8de5:0x416},_0x1013b9={_0x148d91:0x10},_0x475b98={_0xf3f04b:0x171,_0x25c335:0xb2};function _0x252f8a(_0x1c304c,_0x4d314f,_0x56b955,_0x48561d){return _0x34fd29(_0x1c304c,_0x4d314f-_0x475b98._0xf3f04b,_0x56b955-0x182,_0x4d314f- -_0x475b98._0x25c335);}function _0x33c292(_0x5a7939,_0x597d8f,_0x5efb12,_0x5c2eb9){return _0x2803df(_0x597d8f-0x5f6,_0x5c2eb9,_0x5efb12-_0x1013b9._0x148d91,_0x5c2eb9-0x9b);}try{const _0x47a75c=new URL(_0x1b8736);for(const _0x412a9f of[_0x252f8a(_0x2168b3._0x1aad8b,0x5b0,_0x2168b3._0x5e2c4a,0x6f3),_0x33c292(0x580,0x6c1,0x770,_0x2168b3._0x77f563),_0x252f8a(_0x2168b3._0x1162d1,0x54f,0x575,0x5e4),'utm_term',_0x252f8a(_0x2168b3._0x757ce7,0x5df,0x5e4,0x676),'gclid','fbclid','mc_cid',_0x33c292(0x6d6,_0x2168b3._0x1142ca,_0x2168b3._0x354185,0x64b)]){_0x47a75c[_0x252f8a(_0x2168b3._0x5cb8ac,0x4aa,_0x2168b3._0x2b710a,_0x2168b3._0x2a8de5)]['delete'](_0x412a9f);}return _0x47a75c['toString']();}catch{return _0x1b8736;}}function cseDateRestrict(_0x15be71){const _0x4f930={_0x47213c:0x6f2,_0x428082:0x7de,_0x46630a:0x51f,_0x11a36f:0x533,_0x36686e:0x59e,_0x27f827:0x45f,_0x5950f3:0x79b,_0x518539:0x71d},_0x2d995a={_0x427f42:0x81},_0x13437b={_0x81a784:0x473,_0x134fe9:0xb5};if(_0x15be71<=0x0)return void 0x0;function _0x2481bb(_0x364ff0,_0x5846fc,_0x229b9e,_0x4f4371){return _0x2803df(_0x4f4371-_0x13437b._0x81a784,_0x5846fc,_0x229b9e-0x83,_0x4f4371-_0x13437b._0x134fe9);}if(_0x15be71<=0x1e)return'd'+Math[_0x31b987(_0x4f930._0x47213c,0x828,_0x4f930._0x428082,0x773)](0x1,Math[_0x2481bb(0x5bf,0x433,0x491,_0x4f930._0x46630a)](_0x15be71));if(_0x15be71<=0x16d)return'm'+Math[_0x2481bb(_0x4f930._0x11a36f,0x504,_0x4f930._0x36686e,_0x4f930._0x27f827)](_0x15be71/0x1e);function _0x31b987(_0x2c7eee,_0x408c89,_0x2a9614,_0x3a50f5){return _0x2803df(_0x3a50f5-0x731,_0x2c7eee,_0x2a9614-_0x2d995a._0x427f42,_0x3a50f5-0x113);}return'y'+Math[_0x31b987(_0x4f930._0x5950f3,0x7c7,0x818,_0x4f930._0x518539)](_0x15be71/0x16d);}function addSiteFilters(_0x3009c2,_0x435074){const _0x532769={_0x492cfa:0x563,_0x4f93ad:0x441,_0x4d47ec:0x1ff,_0x534f22:0x1ef,_0x107ffd:0x26a,_0x209b01:0x19f,_0x1bcffa:0x124,_0x29a655:0x211,_0x41c39c:0x2b6},_0x4fad3e={_0x4a996f:0x30d},_0x14cfe4={_0x891485:0x57e,_0x2cd18f:0x1b5};function _0x45b074(_0x563d81,_0x205113,_0x4d71a8,_0x486b7d){return _0x2803df(_0x205113-_0x14cfe4._0x891485,_0x4d71a8,_0x4d71a8-0x4f,_0x486b7d-_0x14cfe4._0x2cd18f);}if(_0x435074[_0x45b074(0x4e5,_0x532769._0x492cfa,0x41d,_0x532769._0x4f93ad)]===0x0)return _0x3009c2[_0x1b86ed(0x17c,_0x532769._0x4d47ec,0x131,_0x532769._0x534f22)]();function _0x1b86ed(_0x378d46,_0x562f86,_0x16c8e5,_0x475b43){return _0x34fd29(_0x16c8e5,_0x562f86-0xb2,_0x16c8e5-0x152,_0x562f86- -_0x4fad3e._0x4a996f);}return(_0x3009c2+'\x20('+_0x435074[_0x1b86ed(0x1d2,_0x532769._0x107ffd,_0x532769._0x209b01,0x257)](_0x39e3aa=>_0x45b074(0x57a,0x53e,0x47c,0x4bf)+_0x39e3aa)['join'](_0x1b86ed(_0x532769._0x1bcffa,_0x532769._0x29a655,0x1f9,_0x532769._0x41c39c))+')')['trim']();}function normalizeType(_0x1d1c00){const _0x855675={_0x12102a:0x383,_0xacedcf:0x3d1,_0x144d41:0x6ae},_0x3d755f={_0x6d8d5f:0x7d};function _0x21b1e5(_0x5ead8c,_0x2b73df,_0x361537,_0x17c1b5){return _0x2803df(_0x361537-0x256,_0x5ead8c,_0x361537-_0x3d755f._0x6d8d5f,_0x17c1b5-0x16b);}function _0x540ccb(_0x4bb13c,_0x1d895a,_0x556621,_0x55b447){return _0x2803df(_0x4bb13c-0x5bd,_0x55b447,_0x556621-0xc7,_0x55b447-0x91);}return _0x1d1c00==='images'?_0x540ccb(0x42c,0x468,_0x855675._0x12102a,_0x855675._0xacedcf):_0x540ccb(_0x855675._0x144d41,0x6a3,0x63b,0x694);}async function fetchJson(_0x34269e,_0x5affd5){const _0x318d77={_0x2188bd:0x394,_0x37d41d:0x48d,_0x4e9d46:0x342,_0x30351e:0x4d7,_0x1792fd:0x34c,_0x48a315:0x33c,_0x1ed985:0x47d,_0x5bc8db:0x4a9,_0x745ad1:0x50b,_0x365434:0x237,_0x594759:0x49b,_0x333f45:0x374},_0x55d141={_0x1a6e0d:0x460},_0x3c74b3={_0x274b64:0x345,_0x32c998:0x1f0,_0x30a947:0x85};function _0x2d954a(_0x426cb8,_0xac8f6,_0x436274,_0x4fcfbb){return _0x2803df(_0x4fcfbb-_0x3c74b3._0x274b64,_0xac8f6,_0x436274-_0x3c74b3._0x32c998,_0x4fcfbb-_0x3c74b3._0x30a947);}const _0x44d5b5=await fetch(_0x34269e,{'headers':{'User-Agent':USER_AGENT2,'Accept':'application/json'},'signal':_0x5affd5});function _0x3f18e1(_0x16f887,_0x2a55ba,_0x1d1213,_0x75240b){return _0x2803df(_0x16f887-_0x55d141._0x1a6e0d,_0x1d1213,_0x1d1213-0xd0,_0x75240b-0xf3);}if(!_0x44d5b5['ok']){await _0x44d5b5[_0x3f18e1(_0x318d77._0x2188bd,_0x318d77._0x37d41d,0x422,_0x318d77._0x4e9d46)]?.[_0x2d954a(_0x318d77._0x30351e,_0x318d77._0x1792fd,_0x318d77._0x48a315,0x3b4)]()['catch'](()=>void 0x0);throw new ToolExecutionError(_0x3f18e1(_0x318d77._0x1ed985,0x580,0x49c,_0x318d77._0x5bc8db)+_0x44d5b5[_0x3f18e1(0x48f,0x4cb,_0x318d77._0x745ad1,0x3c5)]+'\x20'+_0x44d5b5['statusText'],{'statusCode':_0x44d5b5[_0x2d954a(_0x318d77._0x365434,_0x318d77._0x594759,0x320,_0x318d77._0x333f45)]});}return await _0x44d5b5['json']();}async function hydrateResults(_0x5badb9,_0x521514,_0x4b5119){const _0x527189={_0x1a47e4:0x3c5,_0x22b18b:0x3d1,_0x1a241f:0x1b6,_0x519ae5:0x56,_0x499676:0x3ba,_0x4764bd:0x442},_0x172e85={_0x150fc2:0xfb},_0x377303={_0x34d2ab:0x7a,_0x31885b:0x1aa,_0x5d93ea:0x1a},_0x5ce275={_0x2e1a7f:0x15c,_0x2e8d38:0x84,_0x1314f2:0x1a0,_0x236b2b:0xfd,_0x2ec28a:0x56f,_0x45c129:0x4ff,_0x43ab32:0x535,_0x442fb3:0x247,_0x219231:0x17b,_0x10d3c3:0x379,_0x2ecadb:0x38c,_0x17332c:0x138,_0x5196ba:0x90,_0x22cb74:0x4ce,_0x3e9749:0x503,_0x3a77b3:0x51a,_0x1de201:0x23e,_0x407c9a:0x224,_0xd92b73:0x386,_0x2f8c99:0x3b4,_0x510370:0x247,_0x5afdce:0x281,_0x1c3bdc:0x107,_0x440618:0x4,_0x409f0e:0xe4,_0x40cd97:0x7f,_0x5b0545:0xf,_0x24dcc5:0x2a7,_0x3b3fc0:0x20a,_0x196380:0x154,_0x4da44f:0x5f1,_0x58f8ec:0x503,_0x2337bc:0x78d,_0x51ef48:0x554,_0x911e0:0x668,_0x29788d:0x8d,_0x2f7780:0x4e,_0x4b5101:0xf7,_0x25ef76:0x5a3,_0x31d3a4:0x49d,_0xe24b09:0x1af,_0x1ac549:0x5e,_0x525338:0xd5,_0xf487e2:0x6d,_0x3ce54f:0x69,_0x38b5b6:0x591,_0x3dd8d9:0x59a,_0x2af150:0x565,_0x118a66:0x66e,_0x22d03f:0x134,_0x1ef48f:0x15c,_0x425613:0xdf},_0x5b71f2={_0x37757f:0xac},_0x1cec13={_0x17c744:0x1f2,_0x2b0c10:0x1ea},_0xef57c2=await Promise['all'](_0x5badb9[_0x5d17bd(0x3e2,_0x527189._0x1a47e4,_0x527189._0x22b18b,0x442)](0x0,0xa)[_0x2d5372(-_0x527189._0x1a241f,-0x18b,-0x13b,-_0x527189._0x519ae5)](async _0x4ce229=>{function _0x2fe5ee(_0x209095,_0xabbedb,_0x25329f,_0x2589b3){return _0x2d5372(_0x209095-0x16c,_0x209095-_0x1cec13._0x17c744,_0x2589b3,_0x2589b3-_0x1cec13._0x2b0c10);}function _0x5a05d9(_0x59e9a3,_0x4eee40,_0x2282f7,_0x2152c3){return _0x5d17bd(_0x59e9a3,_0x4eee40-0x150,_0x2282f7-0x1a8,_0x4eee40-_0x5b71f2._0x37757f);}try{const _0x1c7a54=await fetch(_0x4ce229[_0x2fe5ee(_0x5ce275._0x2e1a7f,_0x5ce275._0x2e8d38,_0x5ce275._0x1314f2,_0x5ce275._0x236b2b)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x521514,'Accept':_0x5a05d9(0x5a4,_0x5ce275._0x2ec28a,_0x5ce275._0x45c129,_0x5ce275._0x43ab32)},'signal':_0x4b5119});if(!_0x1c7a54['ok'])return _0x4ce229;const _0x5b2fe0=await _0x1c7a54[_0x2fe5ee(_0x5ce275._0x442fb3,_0x5ce275._0x219231,_0x5ce275._0x10d3c3,_0x5ce275._0x2ecadb)](),_0x2c2fc7=load(_0x5b2fe0),_0x12f7f3=_0x2c2fc7('meta[property=\x27og:title\x27]')[_0x2fe5ee(0xba,0x64,_0x5ce275._0x17332c,_0x5ce275._0x5196ba)](_0x5a05d9(_0x5ce275._0x22cb74,_0x5ce275._0x3e9749,0x43a,_0x5ce275._0x3a77b3))||_0x2c2fc7(_0x2fe5ee(_0x5ce275._0x1de201,_0x5ce275._0x407c9a,0x26f,0x318))[_0x5a05d9(_0x5ce275._0xd92b73,0x46d,_0x5ce275._0x2f8c99,0x45d)]()[_0x2fe5ee(_0x5ce275._0x510370,0x2b3,_0x5ce275._0x5afdce,_0x5ce275._0x1c3bdc)]()[_0x2fe5ee(-_0x5ce275._0x440618,_0x5ce275._0x409f0e,_0x5ce275._0x40cd97,_0x5ce275._0x5b0545)](),_0x274e52=_0x2c2fc7(_0x2fe5ee(0x1d4,_0x5ce275._0x24dcc5,_0x5ce275._0x3b3fc0,_0x5ce275._0x196380))['attr'](_0x5a05d9(_0x5ce275._0x4da44f,_0x5ce275._0x58f8ec,0x5bf,0x648))||_0x2c2fc7(_0x5a05d9(0x614,0x67f,0x787,_0x5ce275._0x2337bc))['attr']('content')||_0x4ce229[_0x5a05d9(0x571,0x557,_0x5ce275._0x51ef48,_0x5ce275._0x911e0)],_0x1fdf0a=_0x2c2fc7(_0x2fe5ee(0x12,-_0x5ce275._0x29788d,-0x6a,-_0x5ce275._0x2f7780))[_0x2fe5ee(0xba,0x140,_0x5ce275._0x4b5101,0x116)]('content')||_0x2c2fc7(_0x5a05d9(0x471,_0x5ce275._0x25ef76,0x635,_0x5ce275._0x31d3a4))['attr'](_0x2fe5ee(_0x5ce275._0x219231,_0x5ce275._0xe24b09,_0x5ce275._0x1ac549,_0x5ce275._0x525338))||_0x4ce229[_0x2fe5ee(_0x5ce275._0xf487e2,0x76,-0xb3,-_0x5ce275._0x3ce54f)],_0x2d3116=_0x2c2fc7(_0x5a05d9(_0x5ce275._0x38b5b6,0x4a0,_0x5ce275._0x3dd8d9,0x473))[_0x5a05d9(0x5c1,0x4ea,_0x5ce275._0x2af150,0x5a4)]('href');return{..._0x4ce229,'title':_0x12f7f3||_0x4ce229[_0x5a05d9(0x67f,_0x5ce275._0x118a66,0x7a3,0x5cb)],'snippet':_0x274e52,'url':_0x2d3116?normalizeUrl(new URL(_0x2d3116,_0x4ce229['url'])[_0x2fe5ee(_0x5ce275._0x22d03f,0x1fd,0x14a,0x112)]()):_0x4ce229[_0x2fe5ee(_0x5ce275._0x1ef48f,0x167,0x170,_0x5ce275._0x425613)],'publishedAt':_0x1fdf0a};}catch{return _0x4ce229;}}));function _0x2d5372(_0x5ba332,_0x4d4b4b,_0x4d0811,_0x5bf793){return _0x2803df(_0x4d4b4b- -_0x377303._0x34d2ab,_0x4d0811,_0x4d0811-_0x377303._0x31885b,_0x5bf793-_0x377303._0x5d93ea);}const _0x2e358d=new Map(_0x5badb9[_0x5d17bd(0x329,_0x527189._0x499676,0x56d,_0x527189._0x4764bd)](0x0,0xa)['map']((_0x1d5147,_0x4c35c4)=>[_0x1d5147[_0x5d17bd(0x402,0x41d,0x570,0x4e0)],_0xef57c2[_0x4c35c4]]));function _0x5d17bd(_0x1f22c2,_0x14c76c,_0x4c5a0c,_0x305e2f){return _0x34fd29(_0x1f22c2,_0x14c76c-_0x172e85._0x150fc2,_0x4c5a0c-0xdf,_0x305e2f- -0x18c);}return _0x5badb9['map'](_0x4e2cc6=>_0x2e358d[_0x5d17bd(0x565,0x54a,0x544,0x4e7)](_0x4e2cc6[_0x5d17bd(0x3a9,0x476,0x4e7,0x4e0)])??_0x4e2cc6);}function formatResults(_0x417428){const _0x4a30ed={_0x9e1d3e:0x52f,_0x563d3f:0x3e4,_0x95e73d:0x455,_0x556bc1:0x4e2,_0x20518d:0x4c9},_0x290825={_0x17fa4c:0x129,_0x58273d:0x1a3,_0x8a2f57:0x36e,_0x567517:0x28c,_0x419f02:0x413,_0x122f4d:0x2bf,_0x4423d9:0x299,_0x1ca6e1:0x1d9,_0xa6d276:0x179,_0x46f502:0x166,_0xbcecb9:0xff,_0x596d0e:0xd4,_0x31f5a5:0x337,_0x1637f8:0x3cf,_0xf709b8:0xb1,_0x2b47b7:0xf6,_0x4cd2af:0x38a,_0x2123c5:0x42b},_0x1726c7={_0xeeec2d:0x1a1};function _0x17c402(_0x1e83d0,_0xf72f0e,_0x1e1d74,_0x4e2bde){return _0x2803df(_0x1e83d0-0xa4,_0x1e1d74,_0x1e1d74-0x34,_0x4e2bde-0x93);}function _0x1a9aa1(_0x233728,_0x197c53,_0x271688,_0x14b6d0){return _0x2803df(_0x14b6d0-0x47c,_0x233728,_0x271688-0x13a,_0x14b6d0-0x1d3);}if(_0x417428['length']===0x0)return _0x1a9aa1(_0x4a30ed._0x9e1d3e,0x4ba,_0x4a30ed._0x563d3f,_0x4a30ed._0x95e73d);return _0x417428['map'](_0x3965ab=>{const _0x4b3f36={_0x417639:0x73};function _0x383e12(_0x31c633,_0x3bb8f7,_0x31bbf2,_0xeafb00){return _0x1a9aa1(_0x3bb8f7,_0x3bb8f7-_0x4b3f36._0x417639,_0x31bbf2-0x128,_0x31c633-0x1b);}const _0x39882b=[_0x3965ab[_0x2e6628(0x1c0,0xf5,_0x290825._0x17fa4c,_0x290825._0x58273d)][_0x383e12(_0x290825._0x8a2f57,_0x290825._0x567517,0x31b,_0x290825._0x419f02)]+'.\x20'+_0x3965ab['title'],_0x3965ab[_0x2e6628(_0x290825._0x122f4d,_0x290825._0x4423d9,0x2b4,_0x290825._0x1ca6e1)]];function _0x2e6628(_0x4562f4,_0x153dcf,_0x287ed7,_0x105509){return _0x1a9aa1(_0x153dcf,_0x153dcf-0x6f,_0x287ed7-0x164,_0x4562f4- -_0x1726c7._0xeeec2d);}if(_0x3965ab[_0x2e6628(0x28a,_0x290825._0xa6d276,_0x290825._0x46f502,0x16a)])_0x39882b[_0x2e6628(0x17f,_0x290825._0xbcecb9,0x1d4,_0x290825._0x596d0e)](_0x3965ab[_0x383e12(0x446,0x44e,_0x290825._0x31f5a5,_0x290825._0x1637f8)]);if(_0x3965ab['publishedAt'])_0x39882b[_0x2e6628(0x17f,0x195,_0x290825._0xf709b8,_0x290825._0x2b47b7)](_0x383e12(_0x290825._0x4cd2af,0x458,0x492,_0x290825._0x2123c5)+_0x3965ab['publishedAt']);return _0x39882b['join']('\x0a');})[_0x1a9aa1(0x4e5,0x60f,_0x4a30ed._0x556bc1,_0x4a30ed._0x20518d)]('\x0a\x0a');}async function searchGoogleCse(_0x1bc0ad,_0x37e14d,_0x53b8eb){const _0x1c8273={_0x1b075e:0x492,_0x2f5ca4:0x52a,_0x2f2d2d:0x52c,_0x31e6b3:0x27b,_0x1a4e5e:0x37c,_0x559940:0x23d,_0x3bd7fb:0x312,_0x2d0144:0x2b1,_0x43a869:0x278,_0x43413e:0x1e7,_0x30831b:0x2b1,_0x4c10a4:0x2e8,_0x259c2f:0x256,_0x88f27f:0x38f,_0x2911c9:0x9b,_0x46ae59:0x1c7,_0x1c5560:0x1e8,_0x2b222f:0x526,_0x2f1aae:0x592,_0x5a65f5:0x29e,_0x12c00b:0x239,_0x316cd3:0x1a7,_0x22ccf6:0x281,_0x28b0bc:0x2d9,_0x373787:0x32f,_0x552368:0x156,_0x58ac17:0x208,_0x3cb9f3:0x1c7,_0x3be21f:0x2bd,_0x72b189:0x1c7,_0x4a2cc9:0x478,_0x1a9dd5:0x463,_0x563ec5:0x3db,_0x41dae7:0x3d4,_0x2b6351:0x389,_0x11f659:0x4c6,_0x5657b5:0x1c7,_0x43ef82:0x2db,_0x42017b:0x4ad,_0x541164:0x436,_0x5808f5:0x4b9,_0x392335:0x1fb,_0x3475d9:0x2eb,_0x38e8e8:0x1f7,_0x137310:0x18d,_0xbaddc2:0x2e7,_0x2f018a:0x1dd,_0xd4eb70:0x4ac,_0x2520c6:0x4f4,_0x51b830:0x43d,_0x208ced:0x2cb,_0x4e7812:0x4df,_0x364a89:0x478,_0x308526:0x4fe,_0x307caa:0x3be,_0x5071bc:0x37e,_0x4de712:0x57e,_0x14c009:0x53d,_0x1dd0a6:0x311,_0x3db384:0x3bc,_0x33f408:0x6b2,_0x16e5d0:0x14a,_0xf2f86a:0x218,_0x1f5cd6:0x2f1,_0x14153a:0x29a,_0x5a87e0:0x3a8,_0x173ab7:0x110,_0x4aeb15:0x5a2,_0x574254:0x478,_0x5ab513:0x42f,_0x6c0b04:0x5b0,_0x17c301:0x4ee,_0x42d7d0:0x5d2,_0x1b880f:0x57b,_0x5b15c9:0x435,_0x1b510d:0x1af,_0x4c0a82:0x2d8,_0x5c45e2:0x4dd,_0xa7a781:0x3ed,_0x362cad:0x2e2,_0x554b9c:0x262,_0x16f6ab:0x1b1,_0x42f826:0x22d,_0x448b4d:0x247,_0x5c7456:0x1f3,_0x3270df:0x216,_0x171a38:0x229,_0xbaa1e1:0x35a,_0x479760:0x19a,_0x2b2a4f:0x302,_0x169afd:0x28a,_0x203688:0x2ca,_0xe4ee26:0x31f,_0x12ee85:0x2c3,_0x4719f1:0x2d8,_0x41f5c7:0x430,_0x54067b:0x52d},_0x4e8223={_0x1dcf09:0x85,_0x839aa3:0x6d,_0x1849d8:0x395},_0x3a9874={_0x19d081:0x94},_0x4ec7ff=Math[_0x4720f9(_0x1c8273._0x1b075e,_0x1c8273._0x2f5ca4,_0x1c8273._0x2f2d2d,0x510)](0x1,Math[_0x4720f9(_0x1c8273._0x31e6b3,0x490,_0x1c8273._0x1a4e5e,_0x1c8273._0x559940)](0x32,_0x37e14d['count']));if(_0x37e14d['offset']+_0x4ec7ff>0x64)throw new ToolExecutionError('Google\x20CSE\x20supports\x20at\x20most\x20the\x20first\x20100\x20results',{'offset':_0x37e14d[_0x5cb86e(0x204,_0x1c8273._0x3bd7fb,_0x1c8273._0x2d0144,0x381)],'count':_0x4ec7ff,'maxResults':0x64});function _0x4720f9(_0x59c249,_0x2ad0a5,_0x5dc693,_0x44f45e){return _0x2803df(_0x5dc693-0x4ea,_0x59c249,_0x5dc693-_0x3a9874._0x19d081,_0x44f45e-0xe6);}const _0x41934e=cseDateRestrict(_0x37e14d['recencyDays']),_0x1f71f7=addSiteFilters(_0x37e14d[_0x5cb86e(0x202,0x481,0x34b,_0x1c8273._0x43a869)],_0x37e14d[_0x4720f9(0x5ca,0x4ca,0x4b3,0x5a3)]);let _0x116a72=0x0,_0x4bb78e=_0x37e14d[_0x5cb86e(0x26c,_0x1c8273._0x43413e,_0x1c8273._0x30831b,0x354)]+0x1;const _0x1efd9f=[];while(_0x116a72<_0x4ec7ff){const _0x1988be=Math[_0x4720f9(_0x1c8273._0x4c10a4,_0x1c8273._0x259c2f,0x37c,0x330)](0xa,_0x4ec7ff-_0x116a72),_0x390a97=new URL(_0x5cb86e(0x3e4,0x341,0x343,_0x1c8273._0x88f27f));_0x390a97[_0x5cb86e(_0x1c8273._0x2911c9,0x1af,_0x1c8273._0x46ae59,_0x1c8273._0x1c5560)]['set']('key',_0x1bc0ad[_0x4720f9(0x64d,_0x1c8273._0x2b222f,_0x1c8273._0x2f1aae,0x44e)]),_0x390a97[_0x5cb86e(_0x1c8273._0x5a65f5,_0x1c8273._0x12c00b,0x1c7,0x185)][_0x5cb86e(_0x1c8273._0x316cd3,0x29a,_0x1c8273._0x22ccf6,0x1c4)]('cx',_0x1bc0ad[_0x5cb86e(0x2c3,_0x1c8273._0x28b0bc,0x35a,_0x1c8273._0x373787)]),_0x390a97[_0x5cb86e(_0x1c8273._0x552368,_0x1c8273._0x58ac17,_0x1c8273._0x3cb9f3,0x1fe)]['set']('q',_0x1f71f7),_0x390a97[_0x5cb86e(0x1bf,_0x1c8273._0x3be21f,_0x1c8273._0x72b189,0x2da)][_0x4720f9(0x3dc,0x353,_0x1c8273._0x4a2cc9,_0x1c8273._0x1a9dd5)]('num',String(_0x1988be)),_0x390a97[_0x4720f9(_0x1c8273._0x563ec5,_0x1c8273._0x41dae7,0x3be,0x483)][_0x4720f9(_0x1c8273._0x2b6351,0x490,0x478,_0x1c8273._0x11f659)]('start',String(_0x4bb78e)),_0x390a97[_0x5cb86e(0x185,0x1e3,_0x1c8273._0x5657b5,0x19b)][_0x4720f9(0x565,0x422,_0x1c8273._0x4a2cc9,0x58b)](_0x5cb86e(_0x1c8273._0x43ef82,0x240,0x1bd,0x88),_0x37e14d[_0x4720f9(_0x1c8273._0x42017b,_0x1c8273._0x541164,0x3b4,_0x1c8273._0x5808f5)]?_0x5cb86e(_0x1c8273._0x392335,_0x1c8273._0x3475d9,_0x1c8273._0x38e8e8,0x23b):_0x5cb86e(_0x1c8273._0x137310,_0x1c8273._0xbaddc2,0x24c,_0x1c8273._0x2f018a));_0x37e14d[_0x5cb86e(0x38e,0x340,0x3ab,_0x1c8273._0xd4eb70)]&&(_0x390a97[_0x4720f9(_0x1c8273._0x2520c6,_0x1c8273._0x51b830,0x3be,_0x1c8273._0x208ced)][_0x4720f9(_0x1c8273._0x4e7812,0x346,_0x1c8273._0x364a89,0x44f)]('hl',_0x37e14d['lang']),_0x390a97[_0x4720f9(0x463,_0x1c8273._0x308526,_0x1c8273._0x307caa,0x39c)][_0x4720f9(0x3fe,_0x1c8273._0x5071bc,0x478,_0x1c8273._0x4de712)]('lr','lang_'+_0x37e14d[_0x4720f9(_0x1c8273._0x14c009,0x486,0x5a2,0x5a8)]));if(_0x37e14d[_0x5cb86e(_0x1c8273._0x1dd0a6,0x489,_0x1c8273._0x3db384,0x436)])_0x390a97['searchParams']['set']('gl',_0x37e14d[_0x4720f9(0x63f,_0x1c8273._0x33f408,0x5b3,0x4cf)]['toUpperCase']());if(_0x37e14d[_0x5cb86e(_0x1c8273._0x16e5d0,0xd9,0x167,_0x1c8273._0xf2f86a)]==='images')_0x390a97[_0x4720f9(0x2d0,_0x1c8273._0x1f5cd6,0x3be,_0x1c8273._0x14153a)][_0x5cb86e(0x3c6,0x354,0x281,0x3a9)]('searchType',_0x4720f9(0x4c3,0x2f9,_0x1c8273._0x5a87e0,0x49c));if(_0x41934e)_0x390a97[_0x5cb86e(0xda,0xe6,_0x1c8273._0x3cb9f3,_0x1c8273._0x173ab7)][_0x4720f9(0x509,_0x1c8273._0x4aeb15,_0x1c8273._0x574254,_0x1c8273._0x5ab513)](_0x4720f9(_0x1c8273._0x6c0b04,_0x1c8273._0x17c301,_0x1c8273._0x42d7d0,0x4f5),_0x41934e);const _0x1bdb98=await fetchJson(_0x390a97[_0x4720f9(_0x1c8273._0x1b880f,0x5df,0x4a6,_0x1c8273._0x5b15c9)](),_0x53b8eb),_0x1a0c3f=_0x1bdb98['items']??[];if(_0x1a0c3f['length']===0x0)break;const _0xeffa03=_0x116a72;for(let _0x2df221=0x0;_0x2df221<_0x1a0c3f[_0x5cb86e(_0x1c8273._0x1b510d,0x409,_0x1c8273._0x4c0a82,0x358)];_0x2df221++){const _0x2e0684=_0x1a0c3f[_0x2df221];if(!_0x2e0684)continue;const _0xc98f62=_0x2e0684['link']||_0x2e0684[_0x4720f9(_0x1c8273._0x5c45e2,_0x1c8273._0xa7a781,0x3a8,_0x1c8273._0x362cad)]?.[_0x5cb86e(0x242,0x3cb,0x356,0x293)]||'',_0x2251bf=_0x2e0684[_0x5cb86e(0x3a2,0x407,0x3b9,0x35d)]||_0x2e0684[_0x5cb86e(_0x1c8273._0x554b9c,0xaa,_0x1c8273._0x16f6ab,_0x1c8273._0x42f826)]?.['title']||'Untitled',_0x176254=_0x2e0684['snippet']||_0x2e0684[_0x5cb86e(0x26d,_0x1c8273._0x448b4d,0x2ca,0x411)]?.[_0x5cb86e(_0x1c8273._0x5c7456,0x1d1,0x296,_0x1c8273._0x3270df)](/<[^>]+>/g,''),_0x2ecdca=_0x2e0684[_0x5cb86e(_0x1c8273._0x559940,0x215,_0x1c8273._0x171a38,_0x1c8273._0xbaa1e1)]?.[_0x5cb86e(_0x1c8273._0x2911c9,0x3d,0x15f,0x3f)]?.[0x0]??{};let _0x34c61c;try{_0x34c61c=new URL(_0xc98f62)[_0x5cb86e(0x295,_0x1c8273._0x479760,0x1b2,0x196)];}catch{_0x34c61c=null;}_0x1efd9f[_0x4720f9(_0x1c8273._0x2b2a4f,0x45d,0x38e,0x37f)]({'title':_0x2251bf,'url':normalizeUrl(_0xc98f62),'snippet':_0x176254??null,'displayUrl':_0x34c61c,'favicon':null,'publishedAt':_0x2ecdca[_0x4720f9(0x31d,0x3cf,0x3d7,0x2c1)]||_0x2ecdca[_0x5cb86e(_0x1c8273._0x169afd,_0x1c8273._0x203688,_0x1c8273._0xe4ee26,0x3ee)]||null,'source':{'engine':'google-cse','rank':_0xeffa03+_0x2df221+0x1}});}_0x116a72+=_0x1a0c3f[_0x5cb86e(0x2c2,_0x1c8273._0x12ee85,_0x1c8273._0x4719f1,0x3f1)],_0x4bb78e+=_0x1a0c3f['length'];if(_0x1a0c3f['length']<_0x1988be)break;}function _0x5cb86e(_0x369bb8,_0x134c6f,_0x42c162,_0x353dcc){return _0x34fd29(_0x134c6f,_0x134c6f-_0x4e8223._0x1dcf09,_0x42c162-_0x4e8223._0x839aa3,_0x42c162- -_0x4e8223._0x1849d8);}return _0x1efd9f[_0x4720f9(0x468,0x570,_0x1c8273._0x41f5c7,_0x1c8273._0x54067b)](0x0,_0x4ec7ff);}function createWebSearchTool(_0x4352c7){const _0x76fbab={_0x34dcdb:0x3d4,_0x1b07fe:0x27f,_0x5ee12b:0x27a,_0x2ce46b:0x2e4,_0x318fcd:0x185,_0x5e9999:0xb9,_0x29828a:0x2da,_0xbcf40d:0x4f5,_0x583104:0xc7,_0x4fa50d:0x134,_0x2a332b:0x149,_0x966b73:0x340,_0x1ea44e:0x1f7,_0x261bc0:0x411,_0x3f7b47:0x3d1,_0x5de73e:0x3cf,_0x46601c:0x51d,_0x5ae546:0x5d4,_0x2c5d4d:0x55b,_0x478836:0x135,_0x25fc45:0x2d8,_0x1769d1:0x3d0,_0xe0c5db:0x19e,_0x5a61e8:0x292},_0x145627={_0x15d855:0x11c,_0x49699b:0x46,_0x5028dd:0x19f,_0x13fcb4:0xaa,_0x22c5f9:0xc9,_0x568f5f:0xc,_0x5e6694:0x157,_0x2983a0:0x1f1,_0xc7141c:0x14f,_0x38e24e:0x8d,_0xb48617:0x3d,_0x6dc469:0x2b,_0x795c03:0x258,_0x1982ec:0x157,_0xb940ae:0xe1,_0x360a06:0x23f,_0x4722a2:0x2ab,_0x53b96e:0x334,_0xa4495d:0x18d,_0x4e82bf:0x58,_0x32dc4f:0xde,_0x1887b3:0x3e4,_0x34e59b:0xe8,_0x2e786a:0x1b7,_0x555361:0x183,_0x24df87:0x3c,_0x116a55:0x25a,_0x3447d1:0x3fa,_0x4c98c2:0x374,_0x3b2b94:0x3d3,_0x59cd5e:0x220,_0x4378f2:0x300,_0x4e0f50:0x25f,_0x503aec:0x25c,_0x207f74:0x244,_0x4b12eb:0x36c,_0x2b56ae:0x2e4,_0x2c63bf:0x22b,_0x18a388:0x300,_0x3babfe:0x2c2,_0x3d5467:0x34,_0x5312ef:0x2d,_0x1b805d:0x2f,_0x5bf846:0x1ca,_0x2187e9:0x8d,_0x3e1068:0x64,_0x254f41:0x1c9,_0x34d54b:0x89,_0x204a24:0xc0,_0x3aba4f:0x89,_0x529e5f:0x25,_0x362196:0x1b2,_0x1aa44a:0x472,_0x3c143c:0x422,_0x3d86f2:0x4df,_0x51c3db:0x3d3,_0x4dbed7:0x3ef,_0x1ea466:0x37c,_0x214d45:0x4fb,_0x3b5f28:0x2a9,_0x17cd6c:0x22d,_0x11c6bb:0x118,_0xf19c44:0x3fd,_0x189e5b:0x41d,_0x2999c6:0x395,_0x1a8e19:0x20,_0x129716:0x382,_0x15852f:0x11d,_0x41dd84:0x82,_0x4ffe8b:0x66,_0x57262c:0x208},_0x501bd0={_0x57ffb1:0x473,_0x68cf10:0x54f,_0x310aa9:0x60b,_0xbfbe7e:0x481,_0x907b63:0x36d,_0x1f81de:0x3e6,_0x3a786f:0x30d,_0x3c8b4a:0x508},_0x58b810={_0x205a86:0x9f};function _0x381f5f(_0x295c88,_0x6d5b8f,_0x44455e,_0x1103e6){return _0x2803df(_0x1103e6-0x201,_0x6d5b8f,_0x44455e-_0x58b810._0x205a86,_0x1103e6-0xa4);}if(!_0x4352c7[_0x381f5f(0x34f,0x236,0x23c,0x2a9)])throw new Error('WebSearch\x20requires\x20GOOGLE_CSE_KEY');function _0x44fe4c(_0x59d7a7,_0x8bab3c,_0x2ce9b3,_0x281136){return _0x2803df(_0x8bab3c-0x489,_0x59d7a7,_0x2ce9b3-0x1da,_0x281136-0x160);}if(!_0x4352c7[_0x44fe4c(0x3d0,0x4f0,0x460,_0x76fbab._0x34dcdb)])throw new Error('WebSearch\x20requires\x20GOOGLE_CSE_CX');const _0x2bf6d7=_0x4352c7[_0x44fe4c(0x59a,0x453,0x45e,0x4d2)]??'WebSearch';return defineTool({'name':_0x2bf6d7,'description':'Search\x20the\x20web\x20using\x20Google\x20Custom\x20Search\x20and\x20return\x20ranked\x20results.','inputSchema':{'type':_0x44fe4c(_0x76fbab._0x1b07fe,0x389,_0x76fbab._0x5ee12b,_0x76fbab._0x2ce46b),'properties':{'description':{'type':_0x381f5f(_0x76fbab._0x318fcd,0x27d,_0x76fbab._0x5e9999,0x1f0)},'query':{'type':'string'},'count':{'type':_0x44fe4c(_0x76fbab._0x29828a,0x3d1,_0x76fbab._0xbcf40d,0x3b7)},'offset':{'type':_0x381f5f(0x86,_0x76fbab._0x583104,_0x76fbab._0x4fa50d,_0x76fbab._0x2a332b)},'domains':{'type':_0x44fe4c(0x25b,_0x76fbab._0x966b73,_0x76fbab._0x1ea44e,_0x76fbab._0x261bc0),'items':{'type':'string'}},'recencyDays':{'type':_0x44fe4c(0x29e,_0x76fbab._0x3f7b47,_0x76fbab._0x5de73e,0x2ab)},'lang':{'type':'string'},'region':{'type':_0x44fe4c(_0x76fbab._0x46601c,0x478,0x5ad,0x57b)},'safe':{'type':_0x44fe4c(_0x76fbab._0x5ae546,0x51a,_0x76fbab._0x2c5d4d,0x570)},'type':{'type':_0x381f5f(_0x76fbab._0x478836,_0x76fbab._0x25fc45,0x148,0x1f0)},'hydrateMeta':{'type':_0x381f5f(0x243,_0x76fbab._0x1769d1,_0x76fbab._0xe0c5db,_0x76fbab._0x5a61e8)}},'required':['query']},async *'execute'(_0x266b9e,_0x2bafad){const _0x1caac8={_0x104207:0x3c5,_0x2114d0:0x1b3},_0x38dcee={_0x2b4ee3:0x3d9},_0x181775=_0x266b9e[_0x449eaf(0x135,_0x145627._0x15d855,0x233,_0x145627._0x49699b)][_0x568ab9(0x1ce,0x9d,_0x145627._0x5028dd,0x11e)]();if(!_0x181775)throw new ToolExecutionError('Missing\x20required\x20parameter:\x20query');const _0x37395e={'query':_0x181775,'count':Math[_0x568ab9(0x45a,0x31b,0x35d,0x275)](0x1,Math[_0x449eaf(-0x46,-_0x145627._0x13fcb4,-_0x145627._0x22c5f9,_0x145627._0x568f5f)](0x32,Math[_0x449eaf(0xb2,_0x145627._0x5e6694,_0x145627._0x2983a0,0x15f)](_0x266b9e['count']??0xa))),'offset':Math[_0x449eaf(0x58,0x106,_0x145627._0xc7141c,0x123)](0x0,Math['trunc'](_0x266b9e['offset']??0x0)),'domains':_0x266b9e[_0x449eaf(-0x6e,_0x145627._0x38e24e,-_0x145627._0xb48617,_0x145627._0x6dc469)]??[],'recencyDays':Math['max'](0x0,Math[_0x449eaf(_0x145627._0x795c03,_0x145627._0x1982ec,_0x145627._0xb940ae,0x126)](_0x266b9e[_0x568ab9(_0x145627._0x360a06,_0x145627._0x4722a2,0x2e0,_0x145627._0x53b96e)]??0x0)),'lang':_0x266b9e['lang']??'en','region':_0x266b9e[_0x449eaf(0x237,_0x145627._0xa4495d,0x263,_0x145627._0x4e82bf)]??'','safe':_0x266b9e[_0x449eaf(0x55,-0x72,-0x1b2,-_0x145627._0x32dc4f)]??!![],'type':normalizeType(_0x266b9e['type']),'hydrateMeta':_0x266b9e[_0x568ab9(0x3da,0x30e,0x3da,_0x145627._0x1887b3)]??![]};function _0x568ab9(_0x565c71,_0x16239a,_0x5cc777,_0xbb7f54){return _0x381f5f(_0x565c71-0x1da,_0x565c71,_0x5cc777-0x12,_0x5cc777-0x11a);}let _0x570705=await searchGoogleCse(_0x4352c7,_0x37395e,_0x2bafad[_0x449eaf(0xdd,0x8,_0x145627._0x34e59b,0xea)]);_0x37395e[_0x449eaf(_0x145627._0x2e786a,_0x145627._0x555361,_0x145627._0x24df87,0x221)]&&_0x570705[_0x568ab9(_0x145627._0x116a55,0x2b6,0x300,_0x145627._0x3447d1)]>0x0&&(_0x570705=await hydrateResults(_0x570705,_0x37395e[_0x568ab9(_0x145627._0x4c98c2,0x3bd,_0x145627._0x3b2b94,0x386)],_0x2bafad[_0x568ab9(_0x145627._0x59cd5e,_0x145627._0x4378f2,_0x145627._0x4e0f50,_0x145627._0x503aec)]));const _0x3ae7e3=new Set();_0x570705=_0x570705[_0x568ab9(0x2ac,_0x145627._0x207f74,0x270,_0x145627._0x4b12eb)](_0x3968a0=>{const _0x402fe4={_0x1e62ac:0xc6,_0x48dae3:0x11,_0xebf92f:0x1e5};function _0x5b0130(_0xbd45b2,_0x5aa70f,_0x21256a,_0x4cec07){return _0x449eaf(_0x21256a,_0x5aa70f-_0x38dcee._0x2b4ee3,_0x21256a-0x193,_0x4cec07-0x163);}const _0x280859=_0x3968a0['url'][_0x5b0130(_0x501bd0._0x57ffb1,_0x501bd0._0x68cf10,_0x501bd0._0x310aa9,_0x501bd0._0xbfbe7e)]();if(!_0x280859||_0x3ae7e3['has'](_0x280859))return![];function _0xff9226(_0x17fe7c,_0x2249fa,_0x123a61,_0xce93dc){return _0x449eaf(_0xce93dc,_0x17fe7c- -_0x402fe4._0x1e62ac,_0x123a61-_0x402fe4._0x48dae3,_0xce93dc-_0x402fe4._0xebf92f);}return _0x3ae7e3[_0x5b0130(_0x501bd0._0x907b63,_0x501bd0._0x1f81de,_0x501bd0._0x3a786f,_0x501bd0._0x3c8b4a)](_0x280859),!![];}),_0x570705=_0x570705['map']((_0x47509b,_0x58319f)=>({..._0x47509b,'source':{..._0x47509b['source'],'rank':_0x58319f+0x1}}));const _0x24694e={};if(_0x37395e[_0x568ab9(0x347,0x29e,_0x145627._0x2b56ae,_0x145627._0x2c63bf)][_0x568ab9(0x385,0x449,_0x145627._0x18a388,_0x145627._0x3babfe)]>0x0)_0x24694e[_0x449eaf(-_0x145627._0x3d5467,_0x145627._0x38e24e,_0x145627._0x5312ef,_0x145627._0x1b805d)]=_0x37395e[_0x449eaf(_0x145627._0x5bf846,_0x145627._0x2187e9,_0x145627._0x3e1068,_0x145627._0x254f41)];if(_0x37395e[_0x449eaf(0xe1,_0x145627._0x34d54b,0x6a,-_0x145627._0x204a24)]>0x0)_0x24694e[_0x449eaf(0xab,_0x145627._0x3aba4f,-_0x145627._0x529e5f,_0x145627._0x362196)]=_0x37395e['recencyDays'];if(_0x37395e[_0x568ab9(0x2fe,0x439,0x3d3,_0x145627._0x1aa44a)]!=='en')_0x24694e[_0x568ab9(_0x145627._0x3c143c,_0x145627._0x3d86f2,_0x145627._0x51c3db,_0x145627._0x4dbed7)]=_0x37395e['lang'];if(_0x37395e['region'])_0x24694e[_0x568ab9(_0x145627._0x1ea466,_0x145627._0x214d45,0x3e4,0x335)]=_0x37395e[_0x449eaf(_0x145627._0x3b5f28,_0x145627._0xa4495d,_0x145627._0x17cd6c,_0x145627._0x11c6bb)];yield createToolOutput(formatResults(_0x570705),{'engine':_0x568ab9(0x362,0x47a,_0x145627._0xf19c44,0x4db),'count':_0x570705[_0x568ab9(_0x145627._0x189e5b,_0x145627._0x2999c6,0x300,0x221)],'items':_0x570705,'query':_0x37395e[_0x449eaf(-_0x145627._0x1a8e19,_0x145627._0x15d855,0x18a,0x162)],...Object[_0x568ab9(_0x145627._0x129716,0x3b0,0x285,0x164)](_0x24694e)['length']>0x0?{'appliedFilters':_0x24694e}:{},'offset':_0x37395e[_0x449eaf(_0x145627._0x15852f,_0x145627._0x41dd84,_0x145627._0x4ffe8b,-0x38)],'totalRequested':_0x37395e['count'],'hydrated':_0x37395e[_0x449eaf(0x175,0x183,_0x145627._0x57262c,0x2a1)]});function _0x449eaf(_0x49c9a4,_0x451299,_0x5be410,_0x4ab542){return _0x44fe4c(_0x49c9a4,_0x451299- -_0x1caac8._0x104207,_0x5be410-0x119,_0x4ab542-_0x1caac8._0x2114d0);}return void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
|
|
1
|
+
(function(_0x368024,_0x17d465){const _0x683c1e={_0x320d39:0x517,_0x46b52f:0x3ce,_0x41b8fc:0x344,_0xfb9eba:0x2f7,_0x5b74ef:0x479,_0x5204f3:0x281,_0x4970cf:0x254,_0x41ab63:0x43b,_0x321af4:0x392,_0x11866d:0x39c,_0x4f4028:0x588,_0x358948:0x3b1,_0xea1ab5:0x558,_0x32a685:0x3c2,_0x593d76:0x41e},_0x229318=_0x368024();function _0x480fce(_0x458e60,_0x5beefd,_0x382182,_0x3155d9){return _0x3d42(_0x3155d9-0xe3,_0x5beefd);}function _0x6dc6df(_0xab9e34,_0x5f3ad3,_0x28b813,_0x5212bb){return _0x3d42(_0x28b813-0x27f,_0x5f3ad3);}while(!![]){try{const _0x29c49e=parseInt(_0x480fce(_0x683c1e._0x320d39,0x3c3,0x32d,_0x683c1e._0x46b52f))/0x1+parseInt(_0x6dc6df(0x450,_0x683c1e._0x41b8fc,0x43a,_0x683c1e._0xfb9eba))/0x2*(-parseInt(_0x6dc6df(_0x683c1e._0x5b74ef,0x343,0x36d,_0x683c1e._0x5204f3))/0x3)+-parseInt(_0x6dc6df(_0x683c1e._0x4970cf,_0x683c1e._0x41ab63,_0x683c1e._0x321af4,0x2d6))/0x4+-parseInt(_0x6dc6df(0x576,_0x683c1e._0x11866d,0x45e,_0x683c1e._0x4f4028))/0x5+-parseInt(_0x6dc6df(_0x683c1e._0x358948,_0x683c1e._0xea1ab5,0x46c,_0x683c1e._0x32a685))/0x6+-parseInt(_0x480fce(0x32f,0x246,0x29e,0x291))/0x7*(parseInt(_0x480fce(_0x683c1e._0x593d76,0x44a,0x349,0x3de))/0x8)+parseInt(_0x480fce(0x33c,0x376,0x439,0x3f5))/0x9;if(_0x29c49e===_0x17d465)break;else _0x229318['push'](_0x229318['shift']());}catch(_0x50bd5c){_0x229318['push'](_0x229318['shift']());}}}(_0x1e7b,0xc1055));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-3QLMAAJY.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x6aebe9 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x4ebc2e(0x586,0x47a,0x4ed,0x546),'.tsx':_0x4ebc2e(0x512,0x4b8,0x4c0,0x55e),'.js':_0x1d9020(0xaf,0x210,0x1a3,0x213),'.jsx':_0x4ebc2e(0x479,0x440,0x35a,0x36c),'.mjs':_0x1d9020(0x97,0x1ca,0x1a3,0x15f),'.cjs':_0x1d9020(0x99,0x13a,0x1a3,0xe5),'.mts':'typescript','.cts':'typescript','.json':'json','.jsonc':_0x4ebc2e(0x49e,0x516,0x57e,0x643)};function getLanguageId(_0x56205f){const _0xbc529e={_0x48e704:0x85,_0x2b1a16:0x149},_0x4838e7={_0x5c9508:0x403,_0x201b81:0x50},_0x52a8ee={_0xcd7e63:0x87,_0x14225f:0x27e};function _0x552474(_0x5510f3,_0x313e67,_0x3ed795,_0x43456c){return _0x1d9020(_0x3ed795,_0x313e67-_0x52a8ee._0xcd7e63,_0x313e67- -_0x52a8ee._0x14225f,_0x43456c-0x7d);}function _0x1fed94(_0x54bea0,_0x36095d,_0x1009a0,_0x29b962){return _0x1d9020(_0x29b962,_0x36095d-0xdd,_0x54bea0- -_0x4838e7._0x5c9508,_0x29b962-_0x4838e7._0x201b81);}return EXTENSION_TO_LANGUAGE[_0x6aebe9[_0x552474(-0x163,-0x1b,0x86,_0xbc529e._0x48e704)](_0x56205f)[_0x552474(0x227,0xec,0x19e,_0xbc529e._0x2b1a16)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0xa49287){const _0x50d354={_0x82c9a5:0x2ac,_0x53e826:0x1ea},_0x3d453c={_0xa6deee:0x198};function _0x159556(_0x338619,_0x5eaa58,_0x5d87c4,_0x1f3273){return _0x1d9020(_0x338619,_0x5eaa58-0x12c,_0x5eaa58-0x10c,_0x1f3273-_0x3d453c._0xa6deee);}return pathToFileURL(_0xa49287)[_0x159556(0x3db,_0x50d354._0x82c9a5,0x18d,_0x50d354._0x53e826)]();}function textDocumentPosition(_0x2be36e){const _0x21d605={_0x4368f1:0x276,_0x4b03e9:0x1dc,_0x59aa61:0x310,_0x130f05:0xf0},_0x1862cb={_0x1042be:0x153,_0x158ee8:0x1ce},_0x14372f={_0x42db7a:0x12};function _0x3eaeab(_0x3a0480,_0x10e103,_0x56ec80,_0x3af24b){return _0x1d9020(_0x3af24b,_0x10e103-0x44,_0x3a0480- -_0x14372f._0x42db7a,_0x3af24b-0x17b);}function _0x2eef6d(_0x321d01,_0x55d9de,_0x18e239,_0x6d844f){return _0x1d9020(_0x321d01,_0x55d9de-0x45,_0x18e239- -_0x1862cb._0x1042be,_0x6d844f-_0x1862cb._0x158ee8);}return{'textDocument':{'uri':uriForPath(_0x2be36e['file'])},'position':{'line':_0x2be36e[_0x3eaeab(_0x21d605._0x4368f1,0x1ea,_0x21d605._0x4b03e9,_0x21d605._0x59aa61)],'character':_0x2be36e[_0x2eef6d(0x170,_0x21d605._0x130f05,0x14d,0x6a)]}};}function normalizeLocations(_0xf4de92){const _0x412ce9={_0x49ef59:0x49f,_0x4d45c8:0x571},_0x102f40={_0x5e7d99:0x1a};function _0x396cb5(_0x196d03,_0xbc1331,_0x26a414,_0x419bbf){return _0x4ebc2e(_0xbc1331,_0x419bbf-0x38,_0x26a414-0xf7,_0x419bbf-_0x102f40._0x5e7d99);}if(!_0xf4de92)return[];return Array[_0x396cb5(_0x412ce9._0x49ef59,0x429,_0x412ce9._0x4d45c8,0x56c)](_0xf4de92)?_0xf4de92:[_0xf4de92];}async function createLspClient(_0x426eb6){const _0x252a78={_0x2adc3a:0x269,_0x3e1b03:0x16e,_0x4725b1:0x1e8,_0x325bc7:0x137,_0x5dc9f7:0x192,_0x5b0380:0x26b,_0x366f3d:0x5e,_0x1e30dc:0x2b5,_0x23bab6:0x21f,_0x38370a:0x175,_0x1742ff:0x11b,_0x4e513f:0x299,_0x2435b4:0x1b9,_0x2b112a:0x254,_0x4db502:0x344,_0x1f9d11:0x250,_0x3f8667:0x1ba,_0x22f5c6:0x244,_0x727bb5:0x1d3,_0x46d2ff:0x13e,_0xa56267:0x44,_0x33a089:0x2e5,_0x3abcc2:0x37a,_0x116235:0x3f5,_0x34857f:0x164,_0x3d4394:0x12e,_0x4611db:0x176,_0x5822cb:0x5f,_0x3a9387:0x2a0,_0x5457f4:0x3b1,_0xf3c622:0x2e6,_0x29c3e1:0x3a7,_0x4e8b5e:0x328,_0x3c90de:0xa0,_0x1e2ce0:0x1e4},_0x1d5d28={_0x38f620:0x230,_0xabf027:0x147,_0x41129e:0x1c7,_0x28bc49:0xe9,_0x4bed98:0x1f3,_0x2e4aab:0x25d,_0x1c8995:0xaa,_0x4ad4bd:0xc6,_0x31198f:0x13b,_0x416ca3:0x2dc,_0xd5c255:0x156,_0x1a1f3b:0x1cb},_0x46c650={_0xde4e7e:0x2ae,_0x10e15b:0x10a},_0x423a37={_0x5bc077:0x85,_0x300683:0x49,_0x763aba:0x7f},_0x3b6d06={_0x1e6010:0x3a9},_0x5eb556={_0x2c6552:0x340,_0x369e8c:0x323,_0x244b57:0x231,_0xaeaac4:0xd1,_0x55531e:0x1c2,_0x34af59:0x60},_0x38b9e8={_0xe48fb6:0x481,_0x2c4b0a:0x68,_0x5cef34:0x195},_0x518798={_0x5779c1:0x161,_0x3b5df5:0x10e},_0x305767={_0x19c7c1:0x57,_0xfe29a5:0xc2,_0x45eda5:0x142},_0x40036f={_0x47f2ac:0x1e7,_0x67b3db:0x153,_0x423afe:0x1de,_0x2476ff:0xb5,_0x54d257:0x16d},_0xd53e1f={_0x4b527d:0x80},_0x571222={_0x23a75d:0x3e7,_0x547be2:0x270,_0x28b49b:0x298,_0xbf901:0x14e},_0x5b3a42={_0x14bf40:0x43b},_0x2c28e2={_0x5d4964:0x104,_0x195c2b:0xe3,_0x5bf95d:0xde,_0x1875e6:0x6b,_0x475440:0xd4,_0x2d81a8:0xa0},_0x57342d={_0x4286cd:0x191,_0x179278:0x1e3},_0x382301={_0x16b96a:0x9d,_0x317593:0x7d,_0x485297:0x1ba,_0xac4de7:0x207,_0x382df5:0x8e},_0x40736b={_0x2e0ff3:0x127,_0x371b8b:0x254,_0x57661d:0xee},_0x21c58b={_0x12750f:0x316,_0x25ff13:0x41c},_0x34740a={_0x36a6aa:0x62c},_0x26c7e7={_0x5d6f27:0xd0,_0x585fad:0x1af,_0x59a982:0x137,_0x56cc03:0x2da,_0x35cf4f:0x2f5},_0x35cf6e={_0x46fdcd:0x171},_0x3ebe06={_0x4c1a7e:0x511,_0x3a4b70:0x492,_0xceaae4:0x573},_0x1067b2={_0x543e77:0xd8,_0x50282e:0x6c},_0x2c5fd1={_0x422232:0x4a,_0x308fbb:0x1e,_0x8c9418:0xc6,_0x54631b:0xc5,_0x4046b4:0x101,_0x538a4a:0x97,_0x3c11e8:0x53,_0x4e78fd:0xfb,_0x1dceef:0x7},_0x908d6b={_0x13e2ab:0x1e0,_0x5a05ac:0x142},_0x18a331={_0x75a9cc:0x83},_0x302667={_0x23f2de:0xe1,_0x3a70ab:0x56,_0x2c908c:0x203,_0x2c743d:0x4cb,_0x3c8e8b:0x399,_0x259463:0x4d4,_0x44f5ec:0x463,_0x465b2e:0x33c,_0x47d86a:0x4f0},_0x31be14={_0xd2889a:0x169},_0x2f81a9={_0x5792d1:0x17c},_0x42ca30=_0x426eb6[_0x1f8fae(_0x252a78._0x2adc3a,_0x252a78._0x3e1b03,_0x252a78._0x4725b1,_0x252a78._0x325bc7)][_0x1f8fae(_0x252a78._0x5dc9f7,0x12e,_0x252a78._0x5b0380,_0x252a78._0x366f3d)][_0x1c16fc(-_0x252a78._0x1e30dc,-_0x252a78._0x23bab6,-_0x252a78._0x38370a,-_0x252a78._0x1742ff)],_0x319e4c=_0x426eb6[_0x1c16fc(-0x170,-_0x252a78._0x4e513f,-0x15f,-0x341)]['process']['stdin'];function _0x1f8fae(_0x49f1fa,_0x347d6c,_0x1849dc,_0x389498){return _0x4ebc2e(_0x1849dc,_0x347d6c- -0x2e6,_0x1849dc-0x7f,_0x389498-_0x2f81a9._0x5792d1);}if(!_0x42ca30||!_0x319e4c)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');const _0x2084df=createMessageConnection(new StreamMessageReader(_0x42ca30),new StreamMessageWriter(_0x319e4c)),_0x51d40e=new Map(),_0x17d6e7=new Map();let _0x485c92=![];function _0x1c16fc(_0x4e3ccb,_0x2807d0,_0x1adba7,_0x33485e){return _0x4ebc2e(_0x4e3ccb,_0x2807d0- -0x6ed,_0x1adba7-0x17b,_0x33485e-_0x31be14._0xd2889a);}_0x2084df['onNotification'](_0x1f8fae(0x2b2,_0x252a78._0x2435b4,0x1b4,_0x252a78._0x2b112a),_0x3c7961=>{const _0x2e058e={_0x24f12b:0x103},_0x668aaa={_0x152363:0x593,_0xa9393:0x83};_0x51d40e['set'](_0x3c7961[_0x5088ce(-0x149,-_0x302667._0x23f2de,-0xcd,-_0x302667._0x3a70ab)],_0x3c7961[_0x5088ce(-0xff,-_0x302667._0x2c908c,0x2a,-0x8f)]);function _0xafbf19(_0x37ee6f,_0x3c8107,_0x375971,_0x125a6b){return _0x1c16fc(_0x37ee6f,_0x3c8107-_0x668aaa._0x152363,_0x375971-_0x668aaa._0xa9393,_0x125a6b-0x72);}const _0x58b37f=_0x17d6e7[_0xafbf19(_0x302667._0x2c743d,0x3fb,_0x302667._0x3c8e8b,0x41e)](_0x3c7961['uri']);function _0x5088ce(_0x315af5,_0x1d4f98,_0x46d212,_0x74c8b3){return _0x1c16fc(_0x74c8b3,_0x315af5-0xfb,_0x46d212-_0x2e058e._0x24f12b,_0x74c8b3-0x72);}if(!_0x58b37f)return;_0x17d6e7[_0xafbf19(_0x302667._0x259463,_0x302667._0x44f5ec,_0x302667._0x465b2e,_0x302667._0x47d86a)](_0x3c7961['uri']);for(const _0x1cf47c of _0x58b37f)_0x1cf47c();}),_0x2084df[_0x1f8fae(0x230,0x315,0x325,0x2a9)]();const _0x19b702=await _0x2084df[_0x1c16fc(-_0x252a78._0x4db502,-_0x252a78._0x1f9d11,-0x148,-_0x252a78._0x3f8667)]('initialize',{'processId':process[_0x1f8fae(0x3c6,0x28a,0x174,_0x252a78._0x22f5c6)],'rootUri':uriForPath(_0x426eb6[_0x1c16fc(-_0x252a78._0x727bb5,-0xce,-_0x252a78._0x46d2ff,-_0x252a78._0xa56267)]),'workspaceFolders':[{'uri':uriForPath(_0x426eb6[_0x1f8fae(0x239,0x339,0x2fd,_0x252a78._0x33a089)]),'name':_0x426eb6[_0x1f8fae(_0x252a78._0x3abcc2,0x2e6,_0x252a78._0x116235,0x3bf)]['id']}],'initializationOptions':_0x426eb6['handle'][_0x1f8fae(0x13b,0x196,0x51,0x1f4)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x1c16fc(-0x218,-_0x252a78._0x34857f,-_0x252a78._0x3d4394,-_0x252a78._0x4611db),_0x1c16fc(-0xd5,-0x14d,-0x1d1,-_0x252a78._0x5822cb)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x2084df[_0x1f8fae(0x30e,0x2c7,0x19c,0x2fa)](_0x1f8fae(0x28f,_0x252a78._0x3a9387,0x2bc,0x2f7),{});const _0x2a78fb={'serverId':_0x426eb6[_0x1f8fae(_0x252a78._0x5457f4,_0x252a78._0xf3c622,0x42e,_0x252a78._0x2b112a)]['id'],'root':_0x426eb6[_0x1f8fae(_0x252a78._0x29c3e1,0x339,0x47b,_0x252a78._0x4e8b5e)],'connection':_0x2084df,'diagnostics':_0x51d40e,'capabilities':_0x19b702[_0x1c16fc(-_0x252a78._0x3c90de,-_0x252a78._0x1e2ce0,-0x21e,-0x30f)]??{},'notify':{async 'open'({path:_0x41db36}){function _0x48f349(_0x2f416d,_0xb82707,_0x431094,_0x31da77){return _0x1c16fc(_0x31da77,_0xb82707-0x128,_0x431094-0x18b,_0x31da77-_0x18a331._0x75a9cc);}const _0x5546f8=await readFile(_0x41db36,_0x48f349(0xa8,-_0x2c5fd1._0x422232,-0x3a,_0x2c5fd1._0x308fbb));function _0x574e53(_0x57d6b1,_0x2af754,_0x9a414d,_0x2ebfa3){return _0x1f8fae(_0x57d6b1-0x58,_0x57d6b1- -_0x908d6b._0x13e2ab,_0x9a414d,_0x2ebfa3-_0x908d6b._0x5a05ac);}_0x2084df[_0x48f349(-_0x2c5fd1._0x8c9418,-0x18,_0x2c5fd1._0x54631b,_0x2c5fd1._0x4046b4)](_0x48f349(0x81,0x37,-_0x2c5fd1._0x538a4a,-_0x2c5fd1._0x3c11e8),{'textDocument':{'uri':uriForPath(_0x41db36),'languageId':getLanguageId(_0x41db36)??_0x48f349(-_0x2c5fd1._0x4e78fd,-0x25,0x28,_0x2c5fd1._0x1dceef),'version':0x1,'text':_0x5546f8}});},async 'change'({path:_0x4ec8b1,version:_0x5b6b7f}){const _0x3006c5={_0x178ae3:0xb1},_0x278a63={_0x3c65f4:0x18c};function _0x5c752a(_0x368d20,_0x40e3a6,_0x3527bc,_0x2aaf57){return _0x1c16fc(_0x3527bc,_0x368d20-0x1c5,_0x3527bc-_0x278a63._0x3c65f4,_0x2aaf57-0x176);}const _0x4e0398=await readFile(_0x4ec8b1,'utf8');function _0xd79870(_0x589146,_0x333b5b,_0xa24442,_0x37ef2c){return _0x1c16fc(_0xa24442,_0x333b5b-0x68,_0xa24442-_0x3006c5._0x178ae3,_0x37ef2c-0x2);}_0x2084df[_0xd79870(-0x214,-_0x1067b2._0x543e77,-0xcd,-0x1af)](_0x5c752a(0xdc,0x1b4,_0x1067b2._0x50282e,-0x46),{'textDocument':{'uri':uriForPath(_0x4ec8b1),'version':_0x5b6b7f},'contentChanges':[{'text':_0x4e0398}]});},async 'close'({path:_0x38d8be}){function _0x16c410(_0x46b399,_0x2db8da,_0x5828a9,_0x4035fa){return _0x1f8fae(_0x46b399-0xbb,_0x4035fa-0x259,_0x46b399,_0x4035fa-0xf6);}_0x2084df['sendNotification'](_0x16c410(_0x3ebe06._0x4c1a7e,0x4f9,_0x3ebe06._0x3a4b70,_0x3ebe06._0xceaae4),{'textDocument':{'uri':uriForPath(_0x38d8be)}});}},'request':{async 'definition'(_0x67d974){const _0xddf536={_0x5d155f:0xec,_0x12f8d8:0xbd};function _0x2dab06(_0x5c5cee,_0x4ab8d5,_0x3b2d80,_0x24bd38){return _0x1f8fae(_0x5c5cee-_0xddf536._0x5d155f,_0x3b2d80- -0x150,_0x5c5cee,_0x24bd38-_0xddf536._0x12f8d8);}function _0x4667fc(_0x256594,_0x4e1d02,_0x5cdcde,_0x57a445){return _0x1f8fae(_0x256594-_0x35cf6e._0x46fdcd,_0x57a445- -0x80,_0x5cdcde,_0x57a445-0x19f);}return normalizeLocations(await _0x2084df[_0x4667fc(_0x26c7e7._0x5d6f27,_0x26c7e7._0x585fad,0x1db,_0x26c7e7._0x59a982)](_0x4667fc(_0x26c7e7._0x56cc03,0x1f4,0x302,_0x26c7e7._0x35cf4f),textDocumentPosition(_0x67d974)));},async 'references'(_0x1c6353){function _0x5b6947(_0x3e623f,_0xd0e722,_0x16c55c,_0x23c1c3){return _0x1c16fc(_0x23c1c3,_0x16c55c-_0x34740a._0x36a6aa,_0x16c55c-0x14d,_0x23c1c3-0x167);}return normalizeLocations(await _0x2084df['sendRequest'](_0x5b6947(0x45c,_0x21c58b._0x12750f,_0x21c58b._0x25ff13,0x399),{...textDocumentPosition(_0x1c6353),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x2fbe99){const _0x1a33e0={_0x24fd76:0x2f6};function _0x346af2(_0x569215,_0x242665,_0x2b3894,_0x274e81){return _0x1f8fae(_0x569215-_0x40736b._0x2e0ff3,_0x242665- -_0x40736b._0x371b8b,_0x274e81,_0x274e81-_0x40736b._0x57661d);}function _0x2a637a(_0x2837ba,_0x4ef6b3,_0x16298a,_0x2193ba){return _0x1f8fae(_0x2837ba-0x171,_0x4ef6b3- -_0x1a33e0._0x24fd76,_0x2837ba,_0x2193ba-0x58);}return await _0x2084df[_0x346af2(-0xa2,-_0x382301._0x16b96a,0x94,-_0x382301._0x317593)](_0x2a637a(-0x228,-_0x382301._0x485297,-_0x382301._0xac4de7,-_0x382301._0x382df5),textDocumentPosition(_0x2fbe99))??null;},async 'documentSymbol'(_0x473c1e){function _0x5f1e3e(_0x421b92,_0x14c103,_0x3f7ccf,_0x514748){return _0x1c16fc(_0x421b92,_0x3f7ccf-0x333,_0x3f7ccf-_0x57342d._0x4286cd,_0x514748-_0x57342d._0x179278);}function _0x47d8b7(_0x90e8e2,_0xa28556,_0x29edf9,_0xb43cd7){return _0x1f8fae(_0x90e8e2-0x24,_0xa28556- -0x455,_0x90e8e2,_0xb43cd7-0x112);}return await _0x2084df[_0x5f1e3e(0xce,_0x2c28e2._0x5d4964,_0x2c28e2._0x195c2b,_0x2c28e2._0x5bf95d)](_0x47d8b7(-_0x2c28e2._0x1875e6,-_0x2c28e2._0x475440,-_0x2c28e2._0x2d81a8,0x6b),{'textDocument':{'uri':uriForPath(_0x473c1e)}})??[];},async 'workspaceSymbol'(_0x38b05d){function _0x4a5273(_0x58c737,_0x4123f9,_0x144119,_0x55e452){return _0x1f8fae(_0x58c737-0x7b,_0x55e452- -_0x5b3a42._0x14bf40,_0x58c737,_0x55e452-0x8a);}function _0x5d2539(_0x5ea40a,_0x1ee251,_0x47581f,_0x89780f){return _0x1f8fae(_0x5ea40a-0x100,_0x1ee251-0xf5,_0x47581f,_0x89780f-0x17a);}return await _0x2084df[_0x5d2539(_0x571222._0x23a75d,0x2ac,_0x571222._0x547be2,_0x571222._0x28b49b)](_0x4a5273(-0x24e,-0x164,-0x25,-_0x571222._0xbf901),{'query':_0x38b05d})??[];},async 'implementation'(_0x511acc){const _0x4e7c56={_0x175c19:0x1a0};function _0x104e4e(_0x458f38,_0x169fa8,_0x1e127d,_0x3f27b2){return _0x1f8fae(_0x458f38-_0xd53e1f._0x4b527d,_0x1e127d- -0x64,_0x458f38,_0x3f27b2-0x7e);}function _0x48a11d(_0x188911,_0x743351,_0x276484,_0x2c5612){return _0x1c16fc(_0x188911,_0x276484-_0x4e7c56._0x175c19,_0x276484-0x13,_0x2c5612-0x61);}return normalizeLocations(await _0x2084df[_0x104e4e(0x1d8,_0x40036f._0x47f2ac,_0x40036f._0x67b3db,_0x40036f._0x423afe)](_0x104e4e(_0x40036f._0x2476ff,0x1e3,_0x40036f._0x54d257,0x22b),textDocumentPosition(_0x511acc)));},async 'prepareCallHierarchy'(_0x8d802d){const _0x128bee={_0x3bffbf:0x1e8};function _0x59716f(_0x215dde,_0x47c566,_0x551c2d,_0x272876){return _0x1c16fc(_0x215dde,_0x272876-0x146,_0x551c2d-_0x128bee._0x3bffbf,_0x272876-0x10f);}return await _0x2084df['sendRequest'](_0x59716f(_0x305767._0x19c7c1,_0x305767._0xfe29a5,_0x305767._0x45eda5,0xb7),textDocumentPosition(_0x8d802d))??[];},async 'incomingCalls'(_0x360e71){function _0x1b586d(_0x1a143c,_0x33a982,_0x4e57ab,_0x2209e4){return _0x1f8fae(_0x1a143c-_0x518798._0x5779c1,_0x33a982- -0x37f,_0x2209e4,_0x2209e4-_0x518798._0x3b5df5);}function _0x40f6e9(_0x29a5d2,_0x41d2b8,_0x24bddc,_0x17e3ce){return _0x1c16fc(_0x24bddc,_0x17e3ce-_0x38b9e8._0xe48fb6,_0x24bddc-_0x38b9e8._0x2c4b0a,_0x17e3ce-_0x38b9e8._0x5cef34);}return await _0x2084df[_0x40f6e9(_0x5eb556._0x2c6552,0x1ac,_0x5eb556._0x369e8c,_0x5eb556._0x244b57)](_0x1b586d(-0x1d7,-_0x5eb556._0xaeaac4,-_0x5eb556._0x55531e,_0x5eb556._0x34af59),{'item':_0x360e71})??[];},async 'outgoingCalls'(_0x77e12a){const _0x1415ef={_0x2433a0:0x14c,_0x265270:0x444};function _0xf4417d(_0x4896b2,_0x110935,_0x3558dc,_0x4edd28){return _0x1f8fae(_0x4896b2-_0x1415ef._0x2433a0,_0x110935- -_0x1415ef._0x265270,_0x4896b2,_0x4edd28-0x18b);}return await _0x2084df[_0xf4417d(-0x313,-0x28d,-0x1b5,-_0x3b6d06._0x1e6010)]('callHierarchy/outgoingCalls',{'item':_0x77e12a})??[];}},'waitForDiagnostics'({path:_0x37d0a2,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x4fe7ff={_0x4e9bba:0x23c,_0x238273:0x36},_0x15d219={_0xe7bd1b:0x223};function _0x54847b(_0x356681,_0x3e7f79,_0xfc57c1,_0x4e9706){return _0x1f8fae(_0x356681-0x12b,_0x3e7f79- -_0x15d219._0xe7bd1b,_0x356681,_0x4e9706-0xa);}const _0x48a513=uriForPath(_0x37d0a2);function _0x1b0d53(_0x1cdba7,_0x1f495e,_0x156435,_0x18db2c){return _0x1f8fae(_0x1cdba7-0x1f3,_0x1f495e- -0x40a,_0x1cdba7,_0x18db2c-0x42);}if(_0x51d40e[_0x54847b(-_0x423a37._0x5bc077,-0x5d,-0xc,-0x74)](_0x48a513))return Promise[_0x54847b(_0x423a37._0x300683,-0x47,-_0x423a37._0x763aba,-0x4f)]();return new Promise(_0x22792c=>{const _0x1ec8aa={_0x4d4a5b:0x155,_0x151d4b:0x633,_0x5bb091:0x638},_0x11674={_0x3e15a8:0xba};function _0x3803d0(_0x55de96,_0x508c53,_0x4b480a,_0x5841d8){return _0x54847b(_0x508c53,_0x55de96- -0x27,_0x4b480a-_0x11674._0x3e15a8,_0x5841d8-0x51);}const _0x291c5d=setTimeout(()=>{const _0x491875={_0x31ea10:0x3e7};function _0xc82173(_0x151b83,_0x56fb36,_0x2ea651,_0x113563){return _0x3d42(_0x151b83-_0x491875._0x31ea10,_0x56fb36);}const _0x42e367=_0x17d6e7['get'](_0x48a513);function _0x2eab04(_0x2aff0e,_0x2e2109,_0x1bb282,_0x98177f){return _0x3d42(_0x2e2109- -0x9b,_0x1bb282);}_0x42e367?.[_0x2eab04(_0x1ec8aa._0x4d4a5b,0x1ca,0x162,0x301)](_0x245b67);if(_0x42e367?.[_0xc82173(_0x1ec8aa._0x151d4b,0x6f8,0x768,_0x1ec8aa._0x5bb091)]===0x0)_0x17d6e7['delete'](_0x48a513);_0x22792c();},timeoutMs),_0x245b67=()=>{clearTimeout(_0x291c5d),_0x22792c();};function _0x258466(_0xa354de,_0x16d398,_0x5c0559,_0x2ec2b5){return _0x1b0d53(_0x5c0559,_0xa354de-0x1d,_0x5c0559-0xf7,_0x2ec2b5-0x4f);}const _0x143a37=_0x17d6e7[_0x258466(-0x17e,-0x2a8,-_0x4fe7ff._0x4e9bba,-0x20c)](_0x48a513)??new Set();_0x143a37['add'](_0x245b67),_0x17d6e7[_0x258466(-0xe2,-_0x4fe7ff._0x238273,-0xb3,-0x114)](_0x48a513,_0x143a37);});},async 'shutdown'(){const _0x4fd7c8={_0x192315:0x183,_0x46cc95:0xa5,_0x387beb:0x194};function _0x597a86(_0x595507,_0x155c1c,_0x50c139,_0x300c54){return _0x1c16fc(_0x50c139,_0x155c1c-_0x46c650._0xde4e7e,_0x50c139-0x3a,_0x300c54-_0x46c650._0x10e15b);}function _0x543540(_0x4f7dc0,_0x50ad61,_0x242a6a,_0x398759){return _0x1f8fae(_0x4f7dc0-_0x4fd7c8._0x192315,_0x50ad61-_0x4fd7c8._0x46cc95,_0x398759,_0x398759-_0x4fd7c8._0x387beb);}if(_0x485c92)return;_0x485c92=!![];try{await _0x2084df['sendRequest'](_0x597a86(0x140,_0x1d5d28._0x38f620,0x13d,_0x1d5d28._0xabf027),null),_0x2084df['sendNotification'](_0x597a86(_0x1d5d28._0x41129e,0x18e,_0x1d5d28._0x28bc49,0xbb));}catch{}finally{_0x2084df[_0x543540(_0x1d5d28._0x4bed98,0x286,_0x1d5d28._0x2e4aab,0x217)](),_0x426eb6[_0x597a86(_0x1d5d28._0x1c8995,0x15,-_0x1d5d28._0x4ad4bd,_0x1d5d28._0x31198f)][_0x543540(0x1f4,0x1d3,_0x1d5d28._0x416ca3,_0x1d5d28._0xd5c255)][_0x597a86(0x143,0x14f,0x9f,_0x1d5d28._0x1a1f3b)]();}}};return _0x2a78fb;}import{spawn as _0x13c6bc}from'child_process';import{access as _0x5969c4}from'fs/promises';import _0x4a9bb1 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x16e809 from'os';import _0x400dfd from'path';import _0x5db771 from'which';var installPromises=new Map();function sanitizePackageName(_0x2a215e){const _0x1c7044={_0x1df967:0x10d},_0x4f8dc4={_0x26d87f:0xe1};function _0x4c385f(_0x10d59e,_0x162612,_0x142dd6,_0xef15d0){return _0x4ebc2e(_0xef15d0,_0x162612- -0x63b,_0x142dd6-0x110,_0xef15d0-_0x4f8dc4._0x26d87f);}return _0x2a215e[_0x4c385f(0xbb,-0x1b,-_0x1c7044._0x1df967,-0x96)](/^@/,'')['replace'](/[/]/g,'__');}function binaryNameForPlatform(_0x2f9053){const _0x370b1e={_0x2df5c3:0x291,_0x525454:0x235,_0x533d0d:0xf9,_0x475c11:0x3d3,_0x2ea7fa:0x28e},_0x24e9c0={_0x411b84:0x170};function _0x425b87(_0xa2de2d,_0x84df61,_0x3591a4,_0x2038e1){return _0x1d9020(_0xa2de2d,_0x84df61-0x24,_0x3591a4- -0xb6,_0x2038e1-_0x24e9c0._0x411b84);}function _0x153da8(_0x51a1ad,_0x431ccd,_0x1a058a,_0x49e62e){return _0x4ebc2e(_0x431ccd,_0x1a058a- -0x4cc,_0x1a058a-0x112,_0x49e62e-0x7c);}return process[_0x425b87(0x189,_0x370b1e._0x2df5c3,_0x370b1e._0x525454,_0x370b1e._0x533d0d)]==='win32'?_0x2f9053+_0x425b87(0x2cf,_0x370b1e._0x475c11,_0x370b1e._0x2ea7fa,0x3a6):_0x2f9053;}async function exists(_0x4418d0){try{return await access(_0x4418d0),!![];}catch{return![];}}function runNpmInstall(_0x29b057,_0x28e86b,_0x3d3827){const _0x4ce01d={_0x40294c:0x22f,_0x3c62cb:0x1d9,_0x6161e2:0x117,_0x5a9c5c:0x2bc,_0x2e038d:0x2a1,_0x1808c6:0xb7,_0x298adb:0xdf,_0x10f68c:0xa1,_0x559dbc:0xb,_0x12533c:0x69,_0x3e6f10:0x12f,_0x4c45aa:0xa0,_0x2c011c:0x1ba};return new Promise(_0x61928=>{const _0x4e1d08={_0x3c35e1:0x1de},_0x34e538={_0x217bca:0xd4},_0x31b72d=spawn(_0x595bdf(_0x4ce01d._0x40294c,_0x4ce01d._0x3c62cb,_0x4ce01d._0x6161e2,_0x4ce01d._0x5a9c5c),[_0x595bdf(0x191,0x233,0xff,_0x4ce01d._0x2e038d),_0x595bdf(_0x4ce01d._0x1808c6,_0x4ce01d._0x298adb,_0x4ce01d._0x10f68c,0x3e),_0x29b057,_0x28e86b],{'env':_0x3d3827,'stdio':'ignore'});_0x31b72d['on'](_0x516232(-0xbc,_0x4ce01d._0x559dbc,_0x4ce01d._0x12533c,_0x4ce01d._0x3e6f10),()=>_0x61928(![]));function _0x595bdf(_0x4fbfc5,_0x22386e,_0x32b7cc,_0x3a5892){return _0x3d42(_0x22386e- -_0x34e538._0x217bca,_0x3a5892);}function _0x516232(_0xc362,_0x579d77,_0x36a235,_0x522276){return _0x3d42(_0x36a235- -_0x4e1d08._0x3c35e1,_0x522276);}_0x31b72d['on'](_0x595bdf(0x151,_0x4ce01d._0x4c45aa,0x10f,_0x4ce01d._0x2c011c),_0x26f310=>_0x61928(_0x26f310===0x0));});}function shouldDisableLspDownload(_0x1c34b3=process[_0x4ebc2e(0x5c8,0x598,0x5c0,0x451)]){const _0x3422ca={_0x570e0c:0x280,_0x278b60:0x237,_0xd656ec:0x2ae,_0x330568:0x361,_0x1e1c17:0x294,_0x32bb20:0x48a,_0x241d6d:0x41a,_0x4069d6:0x47c,_0x27a2bf:0x1c2},_0x13a243={_0x2e6292:0xd6,_0x4c7880:0x28},_0x53c84c={_0x346d7c:0x2bd};function _0x1f14f7(_0x380398,_0x1b773a,_0x5a4f92,_0x10e8ee){return _0x1d9020(_0x380398,_0x1b773a-0xdf,_0x1b773a-_0x53c84c._0x346d7c,_0x10e8ee-0x90);}const _0x2e4092=_0x1c34b3[_0x3663e3(_0x3422ca._0x570e0c,_0x3422ca._0x278b60,0x2c5,_0x3422ca._0xd656ec)]?.[_0x3663e3(0x1d9,0x1ac,_0x3422ca._0x330568,_0x3422ca._0x1e1c17)]();function _0x3663e3(_0x3ced92,_0x462bf1,_0x57e274,_0x162943){return _0x1d9020(_0x3ced92,_0x462bf1-0x59,_0x162943- -_0x13a243._0x2e6292,_0x162943-_0x13a243._0x4c7880);}return _0x2e4092===_0x1f14f7(_0x3422ca._0x32bb20,0x507,_0x3422ca._0x241d6d,_0x3422ca._0x4069d6)||_0x2e4092==='1'||_0x2e4092===_0x3663e3(0x177,0x2bc,0x2ac,_0x3422ca._0x27a2bf)||_0x2e4092==='on';}function getLspPackageDir(_0x51a7e8){const _0xce10e5={_0x2f263a:0x5e0,_0x4aa62d:0x4be,_0x550e62:0x4a6,_0x586618:0x471,_0x3d26af:0x3d},_0x373a1b={_0x5a69c6:0x43,_0x107944:0xd0,_0x48728a:0x1d3},_0x1d71c5={_0x22cdd3:0x56c,_0x4bebb3:0x94};function _0x3dd3bb(_0x41ff14,_0x38ba76,_0x4a66ca,_0x4dd193){return _0x4ebc2e(_0x4dd193,_0x41ff14- -_0x1d71c5._0x22cdd3,_0x4a66ca-_0x1d71c5._0x4bebb3,_0x4dd193-0x111);}function _0x1f29a3(_0x541685,_0x3bf57d,_0x13bd49,_0x50caca){return _0x4ebc2e(_0x13bd49,_0x3bf57d-_0x373a1b._0x5a69c6,_0x13bd49-_0x373a1b._0x107944,_0x50caca-_0x373a1b._0x48728a);}return _0x400dfd['join'](_0x16e809[_0x1f29a3(0x512,_0xce10e5._0x2f263a,_0xce10e5._0x4aa62d,0x56b)](),_0x1f29a3(_0xce10e5._0x550e62,0x50d,0x4dc,_0xce10e5._0x586618),_0x3dd3bb(-_0xce10e5._0x3d26af,-0x47,0xe,-0x137),'packages',sanitizePackageName(_0x51a7e8));}function getLspBinDir(_0x27c0a5){const _0x50b5f1={_0x2d7233:0x20b,_0x50751a:0x3c,_0x2a2ebe:0x163,_0x3c86ad:0x200,_0x3b508d:0x2e},_0xeb63d8={_0x3c5652:0x4ff,_0x526c8a:0x151,_0x18e81a:0x53},_0xd365ed={_0x4e5a94:0x16d};function _0x3a729d(_0x4b66de,_0x794f2c,_0x1bf96f,_0x37904d){return _0x4ebc2e(_0x1bf96f,_0x794f2c- -0x738,_0x1bf96f-_0xd365ed._0x4e5a94,_0x37904d-0xd1);}function _0x130e39(_0x20bf2d,_0x140425,_0x15992b,_0x5d4d55){return _0x4ebc2e(_0x140425,_0x20bf2d- -_0xeb63d8._0x3c5652,_0x15992b-_0xeb63d8._0x526c8a,_0x5d4d55-_0xeb63d8._0x18e81a);}return _0x400dfd[_0x130e39(-0xf9,-_0x50b5f1._0x2d7233,-0x2a,_0x50b5f1._0x50751a)](getLspPackageDir(_0x27c0a5),_0x3a729d(-0x9d,-0x17c,-_0x50b5f1._0x2a2ebe,-_0x50b5f1._0x3c86ad),_0x130e39(0x50,-0x60,-_0x50b5f1._0x3b508d,-0x74));}async function findPackageBinary(_0x420dce,_0x3c503c){const _0x5b26de={_0x17bf76:0x257,_0x1285ac:0xe7,_0x190aa4:0x1c4,_0x348cd4:0x8f,_0x2555ad:0x21d,_0x2a2bc5:0xf9,_0xfeffbb:0x23},_0x3b9f09={_0x5a51fe:0x7a,_0x17e510:0x12a,_0x1d870b:0x48},_0xa8c347={_0xd1255b:0x19a};function _0x396102(_0x4e5d3b,_0x3ad18d,_0x493e52,_0x16b909){return _0x1d9020(_0x4e5d3b,_0x3ad18d-_0xa8c347._0xd1255b,_0x3ad18d-0x102,_0x16b909-0xb9);}function _0x3aba40(_0x289963,_0x1d27af,_0x3a2520,_0x48bbfa){return _0x1d9020(_0x289963,_0x1d27af-_0x3b9f09._0x5a51fe,_0x3a2520- -_0x3b9f09._0x17e510,_0x48bbfa-_0x3b9f09._0x1d870b);}let _0x3a380d=_0x400dfd[_0x3aba40(-0x7b,0x163,0xca,0x1f2)](_0x3c503c);const _0x4f6eb8=binaryNameForPlatform(_0x420dce);while(!![]){const _0x31728f=_0x400dfd['join'](_0x3a380d,_0x3aba40(_0x5b26de._0x17bf76,_0x5b26de._0x1285ac,_0x5b26de._0x190aa4,0x7e),'.bin',_0x4f6eb8);if(await exists(_0x31728f))return _0x31728f;const _0x3b66e5=_0x400dfd[_0x3aba40(_0x5b26de._0x348cd4,_0x5b26de._0x2555ad,_0x5b26de._0x2a2bc5,_0x5b26de._0xfeffbb)](_0x3a380d);if(_0x3b66e5===_0x3a380d)return void 0x0;_0x3a380d=_0x3b66e5;}}async function findPathBinary(_0x435148,_0x5b2149){const _0xbba0de={_0x4756ab:0x1b8,_0x1f92f7:0x1e7,_0x2099bf:0x120,_0x6ee823:0x8f,_0x3d2bfe:0x17e,_0xf1d5f0:0x4c,_0x368cae:0x61},_0x3a5aa6={_0x28afdf:0x8c,_0x3b72f:0x2c},_0x52da97={_0x10b7a3:0x46};function _0x265874(_0x57f972,_0x1b0d45,_0xfacc00,_0x3e783a){return _0x1d9020(_0xfacc00,_0x1b0d45-0xfa,_0x57f972- -0x31f,_0x3e783a-_0x52da97._0x10b7a3);}const _0x1463e9=getLspBinDir(_0x5b2149),_0x12eebe=[_0x1463e9,process[_0x52c2e2(-0x36,-0x12d,-_0xbba0de._0x4756ab,-0x242)]['PATH']]['filter'](Boolean)[_0x265874(-_0xbba0de._0x1f92f7,-0x1a8,-_0xbba0de._0x2099bf,-0x2ec)](_0x400dfd[_0x265874(-_0xbba0de._0x6ee823,-_0xbba0de._0x3d2bfe,-_0xbba0de._0xf1d5f0,-_0xbba0de._0x368cae)]);function _0x52c2e2(_0x3b96ce,_0x2f49a,_0x3d75f2,_0x36e434){return _0x1d9020(_0x3d75f2,_0x2f49a-_0x3a5aa6._0x28afdf,_0x2f49a- -0x3f7,_0x36e434-_0x3a5aa6._0x3b72f);}try{return await _0x5db771(_0x435148,{'path':_0x12eebe});}catch{return void 0x0;}}async function resolvePackageBinary(_0x4740c7){const _0x5b0477={_0x163b62:0x15b,_0x2dc275:0x1a8,_0x409dc8:0xe3,_0xc5f5e2:0x2e,_0x2380f3:0x2ad,_0x39398f:0x177,_0x3e0630:0x1d3,_0x36ec51:0x1e0,_0x4b17af:0x88,_0x349aa7:0xb,_0x5b7a89:0x3f,_0x129002:0x2e,_0x2ee384:0x1f3,_0x5267b9:0x36d,_0x2b4dd3:0x22e,_0x3a34e9:0x1f1,_0x4a2ec9:0x2ca,_0x52e976:0x1c1,_0x350a69:0x352,_0x41d101:0x2b6},_0x8d1cea={_0xfc34a7:0x3b1,_0x499e48:0xf1,_0xe0cf30:0xe3,_0x337898:0x69},_0x10e987={_0x4a6ff0:0x1f3},_0x140116={_0x1b15c7:0x15e},_0x16272c={_0x13b402:0x133},_0x1a17f7=_0x4740c7[_0x393ce6(_0x5b0477._0x163b62,0x16d,0x7c,_0x5b0477._0x2dc275)]??_0x4740c7[_0x587ff4(-0x12f,-_0x5b0477._0x409dc8,-0x46,-_0x5b0477._0xc5f5e2)];function _0x587ff4(_0x374160,_0x2964b8,_0xc73f7d,_0x2972ea){return _0x4ebc2e(_0x2964b8,_0x2972ea- -0x64c,_0xc73f7d-0x128,_0x2972ea-_0x16272c._0x13b402);}const _0x2ca250=await findPackageBinary(_0x1a17f7,_0x4740c7[_0x393ce6(_0x5b0477._0x2380f3,0x1df,_0x5b0477._0x39398f,0x184)]);if(_0x2ca250)return _0x2ca250;const _0x435d6f=await findPathBinary(_0x1a17f7,_0x4740c7['packageName']);if(_0x435d6f)return _0x435d6f;const _0x3bf129=_0x4740c7[_0x587ff4(-0x1a,-0x192,-0x1c5,-0xb4)]??process[_0x587ff4(-_0x5b0477._0x3e0630,-_0x5b0477._0x36ec51,_0x5b0477._0x4b17af,-0xb4)];if(shouldDisableLspDownload(_0x3bf129))return void 0x0;const _0x4d0476=getLspPackageDir(_0x4740c7[_0x587ff4(-_0x5b0477._0x349aa7,-_0x5b0477._0x5b7a89,-0x11,-0x2e)]);function _0x393ce6(_0x49cbd5,_0xda1f57,_0x182242,_0x51f62c){return _0x1d9020(_0x182242,_0xda1f57-0x14f,_0x51f62c- -0x59,_0x51f62c-_0x140116._0x1b15c7);}const _0x24d7c0=_0x4740c7[_0x587ff4(-_0x5b0477._0x349aa7,-0xce,-0x52,-_0x5b0477._0x129002)]+':'+_0x1a17f7;let _0x469cec=installPromises[_0x393ce6(_0x5b0477._0x2ee384,_0x5b0477._0x5267b9,0x24b,_0x5b0477._0x2b4dd3)](_0x24d7c0);!_0x469cec&&(_0x469cec=((async()=>{const _0x107450={_0x274619:0x1e9};await mkdir(_0x4d0476,{'recursive':!![]});function _0x2f3943(_0x5e41a0,_0x448f58,_0x456075,_0x4441d5){return _0x393ce6(_0x5e41a0-0x1f,_0x448f58-_0x107450._0x274619,_0x456075,_0x4441d5- -0x76);}function _0x2a568f(_0x1e9b6f,_0x1446dc,_0x57c44c,_0x5a2860){return _0x393ce6(_0x1e9b6f-0x132,_0x1446dc-0xcf,_0x57c44c,_0x1e9b6f-_0x10e987._0x4a6ff0);}const _0x1e904c=await runNpmInstall(_0x4d0476,_0x4740c7[_0x2f3943(0x1f5,0x31d,_0x8d1cea._0xfc34a7,0x281)],_0x3bf129);if(!_0x1e904c)return void 0x0;const _0x1bfd95=_0x400dfd[_0x2f3943(_0x8d1cea._0x499e48,0x189,_0x8d1cea._0xe0cf30,_0x8d1cea._0x337898)](getLspBinDir(_0x4740c7['packageName']),binaryNameForPlatform(_0x1a17f7));return await exists(_0x1bfd95)?_0x1bfd95:void 0x0;})()),installPromises[_0x393ce6(0x18b,_0x5b0477._0x3a34e9,0x3a6,_0x5b0477._0x4a2ec9)](_0x24d7c0,_0x469cec));try{return await _0x469cec;}catch{return void 0x0;}finally{installPromises[_0x393ce6(_0x5b0477._0x52e976,_0x5b0477._0x350a69,_0x5b0477._0x41d101,0x296)](_0x24d7c0);}}var TYPESCRIPT_EXTENSIONS=[_0x4ebc2e(0x4d2,0x5ef,0x5f4,0x4ff),_0x1d9020(0x1c1,0x102,0x180,0x96),_0x4ebc2e(0x560,0x496,0x398,0x44a),'.jsx',_0x1d9020(0x3d7,0x429,0x2e4,0x19f),_0x1d9020(0x403,0x2d8,0x383,0x464),'.mts',_0x1d9020(0x28d,0x3e4,0x386,0x353)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x4ebc2e(0x5ad,0x48b,0x53b,0x54e)],TYPESCRIPT_ROOT_MARKERS=[_0x1d9020(0x1e0,0x380,0x2cd,0x2c9),_0x1d9020(0x218,0x89,0x13c,0x1f5),_0x4ebc2e(0x4d8,0x428,0x2ec,0x34d),'pnpm-lock.yaml',_0x1d9020(0x96,0x279,0x17e,0x281),'tsconfig.json','jsconfig.json',_0x1d9020(0x157,0x3b,0x16b,0x218)],BIOME_ROOT_MARKERS=[_0x4ebc2e(0x4a5,0x499,0x52d,0x474),_0x1d9020(0x4d8,0x31e,0x3aa,0x2ca),_0x4ebc2e(0x514,0x59b,0x661,0x4bc),_0x4ebc2e(0x523,0x40a,0x37c,0x2fb),_0x1d9020(0x28c,0x96,0x15a,0x238),'pnpm-lock.yaml',_0x1d9020(0x159,0x1a3,0x17e,0x152),_0x1d9020(0xed,0x1dc,0x16b,0x131)];async function exists2(_0x5135f6){try{return await _0x5969c4(_0x5135f6),!![];}catch{return![];}}async function findUp(_0x2f619a,_0x2b9b1c){const _0x2c0158={_0x2fa4de:0x498,_0x378e64:0x44f,_0x4a9397:0x292,_0x24798c:0x190,_0x329faa:0x4c7,_0x22996d:0x331,_0x491e40:0x314},_0x2ec3cc={_0x4bd796:0x2a,_0x1faaab:0x1be},_0x522106={_0x5defd5:0x40};let _0x48c972=_0x4a9bb1[_0x654a5d(0x3f8,0x57d,_0x2c0158._0x2fa4de,_0x2c0158._0x378e64)](_0x2f619a);function _0x586fcf(_0x33f351,_0x1033e4,_0x2aae55,_0x5c0ae8){return _0x4ebc2e(_0x33f351,_0x5c0ae8- -0x6c1,_0x2aae55-0x1a2,_0x5c0ae8-_0x522106._0x5defd5);}const _0xaf7bcb=_0x4a9bb1[_0x586fcf(-0x2d3,-_0x2c0158._0x4a9397,-0x2c2,-_0x2c0158._0x24798c)](_0x48c972);if(_0xaf7bcb)_0x48c972=_0x4a9bb1[_0x654a5d(0x3d1,0x4ab,_0x2c0158._0x329faa,0x3db)](_0x48c972);function _0x654a5d(_0x288dd3,_0x3fa9e8,_0x22ce62,_0x63e0ac){return _0x4ebc2e(_0x63e0ac,_0x22ce62- -_0x2ec3cc._0x4bd796,_0x22ce62-_0x2ec3cc._0x1faaab,_0x63e0ac-0xf2);}while(!![]){for(const _0x580ea4 of _0x2b9b1c){if(await exists2(_0x4a9bb1[_0x586fcf(-_0x2c0158._0x22996d,-0x263,-_0x2c0158._0x491e40,-0x2bb)](_0x48c972,_0x580ea4)))return _0x48c972;}const _0x39a20b=_0x4a9bb1['dirname'](_0x48c972);if(_0x39a20b===_0x48c972)return void 0x0;_0x48c972=_0x39a20b;}}async function hasDenoRoot(_0x4beedf){const _0x9402e8={_0x2bbb52:0x45,_0x15670e:0x2ba,_0x2f4d26:0x22c,_0x30a74e:0x3e2,_0x501e76:0x3b0,_0x4e5fbd:0x45,_0x282ee:0x161},_0x3c1be0={_0x42e826:0x24},_0xae2a15={_0x48eefa:0x2bc};function _0x5a4686(_0x38583b,_0x4c0d5b,_0x420026,_0x39049f){return _0x4ebc2e(_0x38583b,_0x39049f- -_0xae2a15._0x48eefa,_0x420026-0x178,_0x39049f-0x80);}function _0x2243fd(_0x41dc1d,_0x5a8261,_0x4f5a8b,_0x512ca1){return _0x4ebc2e(_0x512ca1,_0x41dc1d- -_0x3c1be0._0x42e826,_0x4f5a8b-0x1c0,_0x512ca1-0xaa);}return await exists2(_0x4a9bb1[_0x5a4686(0x5d,_0x9402e8._0x2bbb52,0x6,0x14a)](_0x4beedf,_0x5a4686(0x1cd,0x344,_0x9402e8._0x15670e,_0x9402e8._0x2f4d26)))||await exists2(_0x4a9bb1[_0x2243fd(_0x9402e8._0x30a74e,0x47f,_0x9402e8._0x501e76,0x3cd)](_0x4beedf,_0x5a4686(0x68,_0x9402e8._0x2bbb52,_0x9402e8._0x4e5fbd,_0x9402e8._0x282ee)));}async function resolveTsserverPath(_0xd74c68){const _0x37e609={_0x4d94ec:0x122,_0x35442f:0x3d,_0x1d4b81:0xa9,_0x4bda6a:0xa7,_0x410d32:0xe0,_0x2e8662:0x62,_0x5e316d:0x15,_0xecd68:0x14,_0x262b5b:0x2e4,_0x227cbe:0x41,_0x3bbeee:0xc7,_0xcad0b6:0x1d8,_0x4215fd:0x1f,_0x1623ed:0xc9,_0x5c7cf1:0x5d,_0x28f20c:0xb7,_0x50fa86:0xa7,_0x22d81d:0x1b9},_0x58ccc1={_0x4efbd8:0x1b0,_0x3052d6:0x163},_0x168c20={_0x1efc79:0x4dc};let _0x177466=_0x4a9bb1[_0x1d89b6(-_0x37e609._0x4d94ec,-0x4e,-0x1a,-_0x37e609._0x35442f)](_0xd74c68);function _0x1d89b6(_0x49e58d,_0x50551e,_0x5d6eb1,_0x55ec18){return _0x4ebc2e(_0x49e58d,_0x5d6eb1- -_0x168c20._0x1efc79,_0x5d6eb1-0x8c,_0x55ec18-0x101);}while(!![]){const _0x24278b=_0x4a9bb1[_0x1d89b6(-0x12a,-_0x37e609._0x1d4b81,-0xd6,-_0x37e609._0x4bda6a)](_0x177466,_0x1d89b6(0xf0,0x1b7,_0x37e609._0x410d32,0x160),_0x1d89b6(0x3c,-0x36,-_0x37e609._0x2e8662,-0x21),'lib','tsserver.js');if(await exists2(_0x24278b))return _0x24278b;const _0x329847=_0x4a9bb1[_0x1d89b6(-0x106,0xc4,_0x37e609._0x5e316d,_0x37e609._0xecd68)](_0x177466);if(_0x329847===_0x177466)break;_0x177466=_0x329847;}const _0x58dd1b=getLspPackageDir(_0x4a19e3(_0x37e609._0x262b5b,0x3f5,0x2e2,0x2dc)),_0x14b615=await resolvePackageBinary({'packageName':_0x1d89b6(-0x13f,0xd7,-0x62,_0x37e609._0x227cbe),'binaryName':_0x1d89b6(0x1da,0x1a3,_0x37e609._0x3bbeee,_0x37e609._0xcad0b6),'startDir':_0xd74c68});if(!_0x14b615)return void 0x0;function _0x4a19e3(_0x1c0f4d,_0x5ece33,_0x46f3c6,_0x562dd0){return _0x1d9020(_0x1c0f4d,_0x5ece33-_0x58ccc1._0x4efbd8,_0x562dd0-0x130,_0x562dd0-_0x58ccc1._0x3052d6);}const _0x143e12=_0x4a9bb1[_0x4a19e3(0x329,0x329,0x3ac,0x268)](_0x58dd1b,_0x1d89b6(_0x37e609._0x4215fd,_0x37e609._0x1623ed,0xe0,-0x9),_0x1d89b6(-0xef,-0x137,-_0x37e609._0x2e8662,_0x37e609._0x5c7cf1),_0x1d89b6(0x19,_0x37e609._0x28f20c,_0x37e609._0x50fa86,_0x37e609._0x22d81d),_0x4a19e3(0x3f1,0x208,0x20b,0x2af));return await exists2(_0x143e12)?_0x143e12:void 0x0;}var TypeScriptServer={'id':_0x1d9020(0x25f,0x1ef,0x1ac,0x109),'name':_0x4ebc2e(0x53f,0x576,0x65b,0x662),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x119b2e){const _0x471fcb=await findUp(_0x119b2e,TYPESCRIPT_ROOT_MARKERS);if(!_0x471fcb)return void 0x0;return await hasDenoRoot(_0x471fcb)?void 0x0:_0x471fcb;},async 'spawn'(_0x23bd0f){const _0x3859d5={_0x3b76af:0x19a,_0x55d7ba:0x196,_0x2ba33f:0x1a1,_0x4bdb87:0xcc},_0x34f17b={_0x3bdd3f:0x1ef,_0x379321:0x461},_0x40fb75={_0x32b75b:0xd3},_0x1febd4=await resolveTsserverPath(_0x23bd0f);if(!_0x1febd4)return void 0x0;function _0x47c634(_0x47e485,_0x14f2c9,_0x1af7c7,_0x4b8cfb){return _0x4ebc2e(_0x4b8cfb,_0x47e485- -0x715,_0x1af7c7-0xdc,_0x4b8cfb-_0x40fb75._0x32b75b);}const _0x1669e0=await resolvePackageBinary({'packageName':_0x206eac(-0x298,-0x313,-_0x3859d5._0x3b76af,-0x1f5),'binaryName':'typescript-language-server','startDir':_0x23bd0f});if(!_0x1669e0)return void 0x0;function _0x206eac(_0x3c8f16,_0x425ee1,_0x27727b,_0xf12194){return _0x1d9020(_0x425ee1,_0x425ee1-_0x34f17b._0x3bdd3f,_0xf12194- -_0x34f17b._0x379321,_0xf12194-0x53);}return{'process':_0x13c6bc(_0x1669e0,[_0x206eac(-0x197,-0x14,-0x3c,-0x13d)],{'cwd':_0x23bd0f,'stdio':_0x47c634(-_0x3859d5._0x55d7ba,-0x4e,-_0x3859d5._0x2ba33f,-_0x3859d5._0x4bdb87)}),'initialization':{'tsserver':{'path':_0x1febd4}}};}},BiomeServer={'id':'biome','name':_0x4ebc2e(0x3ed,0x468,0x4d0,0x428),'extensions':BIOME_EXTENSIONS,async 'root'(_0x4eaeba){return findUp(_0x4eaeba,BIOME_ROOT_MARKERS);},async 'spawn'(_0xd730c4){const _0x3bb85f={_0x48420f:0x1c,_0x331082:0x1e5,_0x49d27b:0x5c,_0x54173f:0x6e,_0x236af5:0x54,_0x2d4486:0x2c8,_0x391e90:0x1c3,_0x56245a:0x1eb,_0xe74b8f:0x24c,_0x539041:0x1d1,_0xedae3:0x17a,_0x232e1c:0x1fe},_0x3a78d5={_0x274e8f:0xb3};function _0x4e4bff(_0x21a0c8,_0x3f9520,_0x1452bc,_0x2b699d){return _0x1d9020(_0x3f9520,_0x3f9520-0xbd,_0x2b699d- -_0x3a78d5._0x274e8f,_0x2b699d-0x56);}function _0x2c593e(_0x53aa97,_0x137f38,_0xc14b26,_0x8e80df){return _0x4ebc2e(_0x8e80df,_0xc14b26- -0x407,_0xc14b26-0x48,_0x8e80df-0x8b);}const _0x523be3=await findPackageBinary(_0x2c593e(_0x3bb85f._0x48420f,_0x3bb85f._0x331082,0xd2,0xa8),_0xd730c4)??await resolvePackageBinary({'packageName':_0x2c593e(0x140,0x1,_0x3bb85f._0x49d27b,-0xe4),'binaryName':'biome','startDir':_0xd730c4});if(!_0x523be3)return void 0x0;return{'process':_0x13c6bc(_0x523be3,[_0x2c593e(-0x3b,0x1b4,_0x3bb85f._0x54173f,-_0x3bb85f._0x236af5),_0x2c593e(_0x3bb85f._0x2d4486,_0x3bb85f._0x391e90,_0x3bb85f._0x56245a,_0x3bb85f._0xe74b8f)],{'cwd':_0xd730c4,'stdio':_0x4e4bff(_0x3bb85f._0x539041,_0x3bb85f._0xedae3,0x257,_0x3bb85f._0x232e1c)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x1a4c08){const _0x5c411f={_0x57195a:0x498,_0x2ae3c8:0x464,_0xaf64ce:0x414,_0x2a1b75:0x512,_0x1a50c3:0x12a,_0x1138c7:0xae,_0x566810:0xc},_0x240ba6={_0x256e52:0x1bc,_0x25d39e:0x1a},_0x58eac0={_0x43fac2:0x240};function _0x5b62ec(_0x31ef9a,_0x3f82aa,_0x4c2a92,_0x33dc03){return _0x1d9020(_0x4c2a92,_0x3f82aa-0x2e,_0x31ef9a- -_0x58eac0._0x43fac2,_0x33dc03-0x193);}function _0x1d9c39(_0x8b39cf,_0x4f4933,_0x167c35,_0x26c64e){return _0x1d9020(_0x26c64e,_0x4f4933-_0x240ba6._0x256e52,_0x8b39cf-0x235,_0x26c64e-_0x240ba6._0x25d39e);}const _0x2e4049=_0x4a9bb1[_0x1d9c39(_0x5c411f._0x57195a,_0x5c411f._0x2ae3c8,_0x5c411f._0xaf64ce,_0x5c411f._0x2a1b75)](_0x1a4c08)[_0x5b62ec(_0x5c411f._0x1a50c3,0x11a,_0x5c411f._0x1138c7,-_0x5c411f._0x566810)]();return BUILTIN_LSP_SERVERS['filter'](_0x2510bf=>_0x2510bf['extensions']['includes'](_0x2e4049));}function stateKey(_0x17df14,_0x10a771){return _0x10a771+':'+_0x17df14['id'];}function diagnosticsKeyToPath(_0x44813c){const _0xfd2583={_0x490801:0x3f1,_0x5b1b27:0x309,_0x1f3315:0x70,_0x3a4947:0x114,_0x2bd4f4:0x35},_0x34ee72={_0x4ef349:0x79};function _0x404c76(_0x5ab298,_0x4a40bf,_0x39ff7b,_0xe3df29){return _0x1d9020(_0x39ff7b,_0x4a40bf-0xc2,_0x4a40bf- -_0x34ee72._0x4ef349,_0xe3df29-0x1c4);}if(!_0x44813c[_0x3e243a(0x2e3,0x2dd,_0xfd2583._0x490801,_0xfd2583._0x5b1b27)](_0x3e243a(_0xfd2583._0x1f3315,_0xfd2583._0x3a4947,_0xfd2583._0x2bd4f4,0xea)))return _0x44813c;function _0x3e243a(_0x3b515f,_0x3995f6,_0x491ac0,_0x331e94){return _0x1d9020(_0x491ac0,_0x3995f6-0x6b,_0x3995f6- -0x58,_0x331e94-0x1cd);}return fileURLToPath(_0x44813c);}function nextFileVersion(_0x26916b,_0xb10a2){const _0x24c9bc={_0x30109b:0x10,_0x512b58:0xa9,_0x5127c8:0x23d,_0x36f073:0x172,_0x175331:0x56,_0x4064d1:0x55,_0x279c80:0x19d,_0x1dcaee:0x12,_0x5a2246:0x1bb,_0x4d9cf6:0xc0},_0x368000={_0x95d335:0x6b1,_0x4bb66a:0xa8};function _0x40ba4c(_0x443cae,_0x4130eb,_0x4453dc,_0x489e91){return _0x4ebc2e(_0x4453dc,_0x4130eb- -0x657,_0x4453dc-0x1ec,_0x489e91-0x20);}function _0x112308(_0x2af4aa,_0x1fe045,_0x8547f5,_0x42ee2b){return _0x4ebc2e(_0x2af4aa,_0x42ee2b- -_0x368000._0x95d335,_0x8547f5-0x104,_0x42ee2b-_0x368000._0x4bb66a);}const _0x3f1a38=(_0x26916b[_0x112308(-_0x24c9bc._0x30109b,-0x15f,-0x172,-_0x24c9bc._0x512b58)][_0x40ba4c(-_0x24c9bc._0x5127c8,-0x102,-_0x24c9bc._0x36f073,-0x1cd)](_0xb10a2)??0x1)+0x1;return _0x26916b[_0x112308(-_0x24c9bc._0x175331,-_0x24c9bc._0x4064d1,-_0x24c9bc._0x279c80,-0xa9)][_0x112308(-_0x24c9bc._0x1dcaee,-0x1c0,-_0x24c9bc._0x5a2246,-_0x24c9bc._0x4d9cf6)](_0xb10a2,_0x3f1a38),_0x3f1a38;}async function collectClientResults(_0x12e513){const _0x391031={_0x1bcec8:0x175,_0x467337:0xdc,_0x531de9:0x84},_0x178dda={_0x2fbbb3:0x561,_0x18f217:0x9f},_0xbe18b5=await Promise[_0x43e7e4(_0x391031._0x1bcec8,0x20c,0x20d,0x132)](_0x12e513);function _0x131cc6(_0x4a0a36,_0x4fb99f,_0x3d0ab9,_0x272e76){return _0x4ebc2e(_0x4fb99f,_0x272e76- -_0x178dda._0x2fbbb3,_0x3d0ab9-0x13f,_0x272e76-_0x178dda._0x18f217);}function _0x43e7e4(_0x3821d2,_0x2d693d,_0x25a0e6,_0xc7004){return _0x1d9020(_0xc7004,_0x2d693d-0xdd,_0x3821d2- -0x79,_0xc7004-0x1b1);}return _0xbe18b5[_0x131cc6(-0xa,_0x391031._0x467337,0x1bd,_0x391031._0x531de9)](_0x1624b7=>_0x1624b7[_0x131cc6(0xb6,0x1d,0xc7,-0x81)]==='fulfilled'?_0x1624b7[_0x131cc6(0x1a5,0xd0,0xcd,0xcc)]:[]);}function createLspService(_0x157ab5={}){const _0x38e4b4={_0x189a0b:0x518,_0x3c77cf:0x64b,_0x160030:0x530,_0x74fbcc:0x30e,_0x5b1fb1:0x339},_0x407bf4={_0x403ed1:0x5c,_0x2ffbc2:0x54,_0x36bb07:0x156,_0x1db4ca:0xf5,_0x2e2f86:0x20,_0x1f685e:0xfc,_0x3c34df:0x40,_0x42dc3f:0xa1,_0x1ff0e5:0x6b,_0x3e3f6e:0x146,_0x568731:0x8d,_0x1a330e:0x250,_0x42a016:0x10a,_0x11dd71:0x158,_0x4e8a3e:0x19f,_0x523399:0x4d,_0x1a5069:0x98,_0xaf976c:0x25,_0x59dc22:0x1ae,_0x514fac:0x127,_0x80cb2b:0x16b,_0x31ed06:0x189,_0x2cd673:0x17a,_0x4d7d32:0x37,_0x4b1f05:0x5e,_0x2236c9:0x220},_0xc9a65f={_0x4e180e:0x1b7,_0x4e70dd:0x69,_0x40c6b6:0xc0,_0x33d1f5:0x1f,_0xdb47a6:0x557,_0x3f2f19:0x607,_0x1b27dc:0x64e},_0xa6585a={_0x31282f:0x48},_0x361ac5={_0x3427f9:0x392,_0x2e5ce6:0x55f,_0x16c2c7:0x335,_0x2d438a:0x2bc,_0x3af247:0x339},_0x1022b3={_0x3d515f:0xe2},_0x4fd27e={_0x45b321:0x3b},_0x252fe8={_0xbe00fa:0x49b,_0x3fbd2a:0x48c,_0x5a57ba:0x487,_0x38d5ce:0x486},_0x1eca23={_0x2d09df:0x211},_0x27b884={_0x786dc4:0x20,_0x50045d:0x16a},_0x2ea21f={_0xb01081:0x246,_0x3f2dc3:0x1e0,_0x4e5d8e:0x117,_0x37c511:0x86},_0x56c810={_0x417695:0x261,_0x225034:0x124,_0x1e28c6:0x1b1},_0x3bd973={_0x4097e9:0x78,_0x50a998:0x39,_0x1d782c:0x461,_0x4f2706:0x2c,_0x6f9bb9:0x71,_0x66ed96:0x6c4,_0x28c7e0:0x5c1,_0x514673:0x9,_0x3765e7:0x450,_0x354ffd:0x428,_0x46a4d9:0x41a,_0x37987b:0x392},_0x3d14cf={_0x2703fc:0x28b,_0x2e3ebc:0x320,_0x1b0a43:0x367,_0x35ba20:0x409,_0x651bf8:0x23b,_0x3b10fe:0x34b,_0x1e15c8:0x2c8,_0x51897e:0x293,_0x1247ed:0x44e,_0x3c417d:0x383,_0x2aafee:0x490},_0x472f57={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x56d37c=()=>_0x157ab5['enabled']!==![];async function _0x43b8f8(_0xb81d8c,_0x1c8737){const _0x2a4ea6={_0x19a380:0x2de,_0x14d12f:0x2fa,_0x273215:0x3ee,_0x1885f9:0x3c6,_0x2837d3:0x59f,_0x492b76:0x662,_0x26441e:0x439,_0x795829:0x559,_0x26332f:0x490,_0x56099d:0x45a,_0x5d0db7:0x412,_0x538a2b:0x436,_0x3c3c12:0x4d6,_0x528b6a:0x4d3,_0x47391b:0x601,_0x506d02:0x472,_0x446eb0:0x511,_0x1f5c2f:0x5fc,_0x25e593:0x4ca},_0x41c966={_0x28e347:0x129},_0x433bf7={_0x335c23:0x115},_0x4d8a68={_0x359c16:0x96},_0x50d71=stateKey(_0xb81d8c,_0x1c8737),_0x301ebd=_0x472f57[_0x28e5ef(0x1fa,_0x3d14cf._0x2703fc,_0x3d14cf._0x2e3ebc,0x436)][_0x28e5ef(0x45d,0x357,_0x3d14cf._0x1b0a43,_0x3d14cf._0x35ba20)](_0x26904d=>_0x26904d['serverId']===_0xb81d8c['id']&&_0x26904d['root']===_0x1c8737);if(_0x301ebd)return _0x301ebd;if(_0x472f57['broken'][_0x4f602d(_0x3d14cf._0x651bf8,0x315,0x28e,_0x3d14cf._0x3b10fe)](_0x50d71))return void 0x0;const _0x1553cd=_0x472f57[_0x4f602d(0x3e5,_0x3d14cf._0x1e15c8,0x458,0x3b9)][_0x28e5ef(0x3b9,0x2de,_0x3d14cf._0x51897e,0x183)](_0x50d71);function _0x4f602d(_0x59f3a7,_0xb4084c,_0x5c463e,_0x3da873){return _0x3d42(_0x3da873-0x1f7,_0x5c463e);}function _0x28e5ef(_0x3c2166,_0x310b45,_0x7936ae,_0x5d4882){return _0x3d42(_0x7936ae-_0x4d8a68._0x359c16,_0x310b45);}if(_0x1553cd)return _0x1553cd;const _0x744fa=((async()=>{function _0x429e42(_0x39d76f,_0x17c62a,_0x4af179,_0x4ba3e3){return _0x4f602d(_0x39d76f-_0x433bf7._0x335c23,_0x17c62a-0x148,_0x4ba3e3,_0x4af179-0xd8);}function _0x15983a(_0x190c15,_0x274af0,_0x2a0ced,_0xcd1206){return _0x28e5ef(_0x190c15-0x1be,_0xcd1206,_0x190c15-0x301,_0xcd1206-_0x41c966._0x28e347);}try{const _0x300d9d=await _0xb81d8c['spawn'](_0x1c8737);if(!_0x300d9d)return _0x472f57[_0x429e42(_0x2a4ea6._0x19a380,_0x2a4ea6._0x14d12f,_0x2a4ea6._0x273215,_0x2a4ea6._0x1885f9)][_0x15983a(0x59b,0x585,0x48d,_0x2a4ea6._0x2837d3)](_0x50d71),void 0x0;const _0xbb79b3=await createLspClient({'server':_0xb81d8c,'root':_0x1c8737,'handle':_0x300d9d}),_0x454991=_0x472f57[_0x429e42(_0x2a4ea6._0x492b76,_0x2a4ea6._0x26441e,_0x2a4ea6._0x795829,0x5f1)][_0x429e42(0x4cf,0x5f3,0x5a0,_0x2a4ea6._0x26332f)](_0x4a62cf=>_0x4a62cf[_0x429e42(0x620,0x601,0x55a,0x5c4)]===_0xb81d8c['id']&&_0x4a62cf[_0x15983a(0x65e,0x620,0x5e7,0x788)]===_0x1c8737);if(_0x454991)return await _0xbb79b3['shutdown'](),_0x454991;return _0x472f57['clients'][_0x429e42(0x47f,_0x2a4ea6._0x56099d,_0x2a4ea6._0x5d0db7,_0x2a4ea6._0x538a2b)](_0xbb79b3),_0xbb79b3;}catch{return _0x472f57['broken'][_0x429e42(_0x2a4ea6._0x3c3c12,0x3e0,_0x2a4ea6._0x528b6a,_0x2a4ea6._0x47391b)](_0x50d71),void 0x0;}finally{_0x472f57[_0x15983a(0x559,_0x2a4ea6._0x506d02,_0x2a4ea6._0x446eb0,0x639)][_0x15983a(_0x2a4ea6._0x1f5c2f,0x64e,0x4cd,_0x2a4ea6._0x25e593)](_0x50d71);}})());return _0x472f57[_0x4f602d(_0x3d14cf._0x1247ed,_0x3d14cf._0x1247ed,0x303,0x3b9)][_0x4f602d(_0x3d14cf._0x3c417d,0x56d,0x4c1,_0x3d14cf._0x2aafee)](_0x50d71,_0x744fa),_0x744fa;}async function _0x5f0fa4(_0x4631cb,_0x180f8b){if(!_0x56d37c())return[];const _0x35357b=[];for(const _0x352a07 of getServersForFile(_0x4631cb)){const _0x77e503=await _0x352a07['root'](_0x4631cb);if(!_0x77e503)continue;const _0x356c67=stateKey(_0x352a07,_0x77e503);if(_0x472f57[_0xa6559a(-_0x3bd973._0x4097e9,-0x10f,-_0x3bd973._0x50a998,-0x13f)][_0x14b1e3(_0x3bd973._0x1d782c,0x547,0x48c,0x500)](_0x356c67))continue;const _0x59a0b6=_0x472f57[_0xa6559a(-_0x3bd973._0x4f2706,-0xf7,-_0x3bd973._0x6f9bb9,_0x3bd973._0x4f2706)][_0x14b1e3(0x5de,_0x3bd973._0x66ed96,_0x3bd973._0x28c7e0,0x52d)](_0x3749be=>_0x3749be[_0x14b1e3(0x598,0x4c2,0x508,0x575)]===_0x352a07['id']&&_0x3749be[_0x14b1e3(0x5d4,0x5df,0x57f,0x623)]===_0x77e503);if(_0x59a0b6){_0x35357b[_0xa6559a(-0x8c,-_0x3bd973._0x514673,-0x8c,-0x11b)](_0x59a0b6);continue;}if(!_0x180f8b)continue;const _0x319d87=await _0x43b8f8(_0x352a07,_0x77e503);if(_0x319d87)_0x35357b[_0x14b1e3(_0x3bd973._0x3765e7,_0x3bd973._0x354ffd,_0x3bd973._0x46a4d9,_0x3bd973._0x37987b)](_0x319d87);}function _0x14b1e3(_0x1f88f6,_0x53a004,_0x4a62ea,_0x251041){return _0x3d42(_0x1f88f6-0x30d,_0x53a004);}function _0xa6559a(_0x2f0cce,_0x4937b9,_0x6648e6,_0x1721e1){return _0x3d42(_0x1721e1- -0x25e,_0x2f0cce);}return _0x35357b;}async function _0x184405(_0x5b0ad2,_0x252dce=![]){const _0x5e8567={_0x5aed9c:0x3a4,_0x11184c:0x24a,_0x5b0168:0x2cd,_0x2a8d02:0x2c9,_0x28b381:0x32a,_0x172851:0x13f,_0x5e827e:0x1a8,_0x3b0d38:0x286,_0x3f49ed:0x202,_0x500938:0x5e,_0x26abf4:0x75,_0x5d04f1:0x45,_0x25087b:0x143,_0x199238:0x2a9,_0x38b4e1:0x19b,_0x3d2172:0xa5},_0x5e52b5={_0x2bc07a:0x363},_0x40afdd=await _0x5f0fa4(_0x5b0ad2,!![]);await Promise['all'](_0x40afdd['map'](async _0x1f9b11=>{!_0x472f57[_0x23d29a(-0x288,-0x19f,-0x2fd,-_0x5e8567._0x5aed9c)]['has'](_0x1f9b11['serverId']+':'+_0x1f9b11[_0x524eb1(_0x5e8567._0x11184c,_0x5e8567._0x5b0168,_0x5e8567._0x2a8d02,_0x5e8567._0x28b381)]+':'+_0x5b0ad2)&&(await _0x1f9b11['notify'][_0x23d29a(-_0x5e8567._0x172851,-0x278,-_0x5e8567._0x5e827e,-_0x5e8567._0x3b0d38)]({'path':_0x5b0ad2}),_0x472f57['openFiles'][_0x23d29a(-0x15f,-_0x5e8567._0x3f49ed,-_0x5e8567._0x500938,-0x41)](_0x1f9b11['serverId']+':'+_0x1f9b11[_0x23d29a(-0x9c,-_0x5e8567._0x26abf4,-_0x5e8567._0x5d04f1,0x83)]+':'+_0x5b0ad2));function _0x524eb1(_0x1b5bf0,_0x1a9224,_0x204e3c,_0x4a733b){return _0x3d42(_0x4a733b-0x63,_0x204e3c);}function _0x23d29a(_0x7185eb,_0x363a7e,_0x195016,_0x5e9dd7){return _0x3d42(_0x7185eb- -_0x5e52b5._0x2bc07a,_0x5e9dd7);}await _0x1f9b11[_0x524eb1(_0x5e8567._0x25087b,0x24b,_0x5e8567._0x199238,_0x5e8567._0x38b4e1)][_0x23d29a(-0x6c,-_0x5e8567._0x3d2172,0xb6,-0xc3)]({'path':_0x5b0ad2,'version':nextFileVersion(_0x472f57,_0x5b0ad2)});if(_0x252dce)await _0x1f9b11['waitForDiagnostics']({'path':_0x5b0ad2});}));}async function _0x34120d(_0x55266a){function _0x29bf5e(_0xed1ca9,_0x565543,_0x2fd1ef,_0x1dcc7f){return _0x3d42(_0x2fd1ef- -0x3b4,_0xed1ca9);}await _0x184405(_0x55266a[_0x3d8f55(_0x56c810._0x417695,_0x56c810._0x225034,0x2fc,0x2c2)],![]);function _0x3d8f55(_0xd8efba,_0x2594f7,_0x66797,_0x127b45){return _0x3d42(_0xd8efba- -0x77,_0x127b45);}return _0x5f0fa4(_0x55266a[_0x3d8f55(0x261,0x2c4,_0x56c810._0x1e28c6,0x126)],![]);}async function _0x3bf087(_0x2b41ad){const _0x1c3f51={_0xf5f21e:0x1ce},_0x4d42fd=await _0x34120d(_0x2b41ad);function _0x51592a(_0x1972ef,_0x15aae5,_0x420126,_0x4c3ef9){return _0x3d42(_0x4c3ef9-_0x1c3f51._0xf5f21e,_0x420126);}function _0x345564(_0x363b41,_0x2f1244,_0x1a0640,_0x39c4f5){return _0x3d42(_0x1a0640- -0x1df,_0x2f1244);}return collectClientResults(_0x4d42fd[_0x345564(_0x2ea21f._0xb01081,_0x2ea21f._0x3f2dc3,_0x2ea21f._0x4e5d8e,_0x2ea21f._0x37c511)](_0x5ab361=>_0x5ab361[_0x345564(0xdc,-0x4b,0x38,0xa3)][_0x51592a(0x370,0x2e0,0x1cb,0x2cc)](_0x2b41ad)));}return{'isEnabled':_0x56d37c,async 'hasClients'(_0x52924d){function _0x27c0ff(_0x213674,_0x509baa,_0x2e6397,_0x23d5d8){return _0x3d42(_0x23d5d8- -0x193,_0x213674);}function _0xce5ebc(_0x1ef7cf,_0x3fa74c,_0x3055fd,_0x36e3f6){return _0x3d42(_0x1ef7cf- -0x345,_0x36e3f6);}return(await _0x5f0fa4(_0x52924d,![]))[_0x27c0ff(-0x11f,-0xcd,-0x123,-_0x27b884._0x786dc4)]>0x0||getServersForFile(_0x52924d)[_0xce5ebc(-0x1d2,-_0x27b884._0x50045d,-0x24e,-0x259)]>0x0;},'touchFile':_0x184405,async 'diagnostics'(){const _0x4f82d8={_0x522436:0x25c};function _0x462e5b(_0x568ade,_0x26c598,_0x421263,_0x397030){return _0x3d42(_0x568ade-_0x1eca23._0x2d09df,_0x397030);}function _0x21e2fa(_0x55b7fe,_0x2bb1eb,_0x3ded05,_0x2dddd4){return _0x3d42(_0x3ded05-_0x4f82d8._0x522436,_0x2bb1eb);}const _0x498bcd={};for(const _0x156e98 of _0x472f57[_0x462e5b(_0x252fe8._0xbe00fa,0x36d,0x58b,_0x252fe8._0x3fbd2a)]){for(const [_0x2d14f9,_0x437c45]of _0x156e98[_0x462e5b(0x3ac,0x483,_0x252fe8._0x5a57ba,_0x252fe8._0x38d5ce)]){_0x498bcd[diagnosticsKeyToPath(_0x2d14f9)]=_0x437c45;}}return _0x498bcd;},async 'diagnosticsForFile'(_0x48834b){await _0x184405(_0x48834b,!![]);const _0x1a01f4=[];for(const _0x533642 of await _0x5f0fa4(_0x48834b,![])){for(const [_0x18b444,_0x543b48]of _0x533642['diagnostics']){if(diagnosticsKeyToPath(_0x18b444)===_0x48834b)_0x1a01f4['push'](..._0x543b48);}}return _0x1a01f4;},async 'definition'(_0x26cbaf){const _0x7f970f={_0x48191a:0x7f};function _0x42ccae(_0x5f58f0,_0x482b65,_0x5dd812,_0x5ad375){return _0x3d42(_0x5dd812-_0x7f970f._0x48191a,_0x5ad375);}function _0x564266(_0xeb28e6,_0x418775,_0x51cc71,_0x131a3c){return _0x3d42(_0xeb28e6- -0x352,_0x51cc71);}return collectClientResults((await _0x34120d(_0x26cbaf))[_0x564266(-0x5c,-0x9e,-_0x4fd27e._0x45b321,-0x12e)](_0x3a3ab1=>_0x3a3ab1[_0x42ccae(0x24e,0x19c,0x296,0x152)]['definition'](_0x26cbaf)));},async 'references'(_0x4f2ad3){const _0x41c00d={_0x46c737:0x1fe};function _0x3b4122(_0x4b757f,_0x150bd8,_0xef3f42,_0x27fd5a){return _0x3d42(_0x27fd5a-_0x41c00d._0x46c737,_0xef3f42);}return collectClientResults((await _0x34120d(_0x4f2ad3))['map'](_0x28e479=>_0x28e479[_0x3b4122(0x42e,0x551,0x3ae,0x415)]['references'](_0x4f2ad3)));},async 'hover'(_0x4b6322){const _0x1fb4ff=await Promise[_0x288090(0x3cb,0x2f4,_0x361ac5._0x3427f9,0x420)]((await _0x34120d(_0x4b6322))[_0x288090(0x4b4,_0x361ac5._0x2e5ce6,0x520,0x5b2)](_0x504e2a=>_0x504e2a[_0x5246f6(0x2f9,0x2de,0x25e,0x403)][_0x288090(0x28f,0x320,0x370,0x373)](_0x4b6322)));function _0x5246f6(_0x13d5c4,_0x1e8e1,_0x1cab36,_0x67503e){return _0x3d42(_0x13d5c4-_0x1022b3._0x3d515f,_0x67503e);}function _0x288090(_0x39b9e1,_0x3ea4b3,_0x500066,_0x615afc){return _0x3d42(_0x615afc-0x2bc,_0x3ea4b3);}return _0x1fb4ff[_0x5246f6(0x36f,_0x361ac5._0x16c2c7,_0x361ac5._0x2d438a,_0x361ac5._0x3af247)](_0x473cb5=>_0x473cb5[_0x5246f6(0x26a,0x157,0x22d,0x20f)]===_0x5246f6(0x25a,0x230,0x30d,0x2e4)&&_0x473cb5[_0x288090(0x4c4,0x69e,0x486,0x591)]?[_0x473cb5[_0x288090(0x486,0x6cf,0x4ac,0x591)]]:[]);},async 'documentSymbol'(_0x3c3ed5){const _0x1c71de={_0x2142f8:0x33e};function _0x332e2f(_0x588615,_0x3a8b11,_0x41eb08,_0x4e812a){return _0x3d42(_0x588615- -0x31c,_0x3a8b11);}function _0x15ab33(_0x21f037,_0x53f06e,_0xcd08b5,_0x23aaea){return _0x3d42(_0x23aaea- -_0x1c71de._0x2142f8,_0xcd08b5);}return await _0x184405(_0x3c3ed5,![]),collectClientResults((await _0x5f0fa4(_0x3c3ed5,![]))[_0x15ab33(-0x3a,-0xf7,-0x156,-_0xa6585a._0x31282f)](_0x3de34a=>_0x3de34a[_0x332e2f(-0x105,-0x238,-0x1db,-0x1c2)][_0x332e2f(-0x180,-0x156,-0x7d,-0x258)](_0x3c3ed5)));},async 'workspaceSymbol'(_0xa7aec8){function _0x5d8fe9(_0x1a9045,_0x1662eb,_0x4a005e,_0x28bd23){return _0x3d42(_0x4a005e-0x311,_0x1662eb);}function _0x63eec0(_0x3a304e,_0xa8d189,_0x106562,_0x4fe1ed){return _0x3d42(_0x106562- -0x1ca,_0x4fe1ed);}return collectClientResults(_0x472f57[_0x63eec0(_0xc9a65f._0x4e180e,-_0xc9a65f._0x4e70dd,_0xc9a65f._0x40c6b6,-_0xc9a65f._0x33d1f5)][_0x5d8fe9(_0xc9a65f._0xdb47a6,0x568,_0xc9a65f._0x3f2f19,_0xc9a65f._0x1b27dc)](_0x366d22=>_0x366d22[_0x63eec0(-0x1a,-0xa,0x4d,-0x99)][_0x63eec0(-0x37,-0x6d,-0x1f,-0x8)](_0xa7aec8)));},async 'implementation'(_0x413b06){function _0x2e2954(_0x153981,_0x697611,_0x351de3,_0x43acca){return _0x3d42(_0x153981-0x3d5,_0x43acca);}return collectClientResults((await _0x34120d(_0x413b06))['map'](_0x189f73=>_0x189f73[_0x2e2954(0x5ec,0x613,0x693,0x6f5)]['implementation'](_0x413b06)));},async 'prepareCallHierarchy'(_0x4d60f9){return _0x3bf087(_0x4d60f9);},async 'incomingCalls'(_0x62fce4){const _0x2548ab={_0xd0863c:0x220};function _0x4f2ed7(_0x56ca41,_0x5d19f6,_0x5c679f,_0x5ccfbb){return _0x3d42(_0x5c679f- -_0x2548ab._0xd0863c,_0x56ca41);}const _0x3f52c9=await _0x3bf087(_0x62fce4);function _0x130e52(_0x5a426d,_0x57c262,_0x5d9a11,_0x57872d){return _0x3d42(_0x57c262- -0x11f,_0x57872d);}const _0x5c4fcd=await _0x34120d(_0x62fce4);return collectClientResults(_0x5c4fcd[_0x4f2ed7(0x37,0xbf,0x6d,0x12a)](_0x11f65f=>_0x3f52c9[_0x4f2ed7(0x146,-0x18,0xd6,0x58)](_0x1988ea=>_0x11f65f[_0x4f2ed7(0x3,-0x69,-0x9,0xa)]['incomingCalls'](_0x1988ea))));},async 'outgoingCalls'(_0x66e9e5){function _0x3bcbc3(_0x32fd27,_0x7ffbd1,_0x558b27,_0x14cf76){return _0x3d42(_0x558b27- -0x1b3,_0x14cf76);}const _0x173f43=await _0x3bf087(_0x66e9e5),_0x17771e=await _0x34120d(_0x66e9e5);return collectClientResults(_0x17771e['flatMap'](_0x38e8dc=>_0x173f43[_0x3bcbc3(0x17e,0x227,0x143,0x259)](_0x44dce9=>_0x38e8dc['request']['outgoingCalls'](_0x44dce9))));},async 'shutdown'(){const _0x41cb01={_0x31a429:0x255};if(_0x472f57[_0x352b25(-_0x407bf4._0x403ed1,-_0x407bf4._0x2ffbc2,-0xb5,-_0x407bf4._0x36bb07)])return;_0x472f57[_0x352b25(-_0x407bf4._0x403ed1,-0x70,-_0x407bf4._0x1db4ca,-0x5e)]=!![],await Promise[_0x83a8de(-0x96,_0x407bf4._0x2e2f86,-_0x407bf4._0x1f685e,-_0x407bf4._0x3c34df)](_0x472f57['clients'][_0x352b25(_0x407bf4._0x42dc3f,-0x6d,0x18a,_0x407bf4._0x1ff0e5)](_0x3aefc5=>_0x3aefc5[_0x352b25(0xc2,0xd4,0x4d,0x11)]()));function _0x352b25(_0x28b9b4,_0x5b1399,_0x3d2f84,_0x308abc){return _0x3d42(_0x28b9b4- -_0x41cb01._0x31a429,_0x3d2f84);}_0x472f57[_0x83a8de(0x16e,_0x407bf4._0x3e3f6e,_0x407bf4._0x568731,_0x407bf4._0x1a330e)]=[],_0x472f57[_0x83a8de(_0x407bf4._0x42a016,0x7e,_0x407bf4._0x11dd71,_0x407bf4._0x4e8a3e)][_0x352b25(0x9d,-0xd,-_0x407bf4._0x523399,-0x36)](),_0x472f57[_0x83a8de(-_0x407bf4._0x1a5069,-_0x407bf4._0xaf976c,-0xdd,_0x407bf4._0x523399)][_0x83a8de(0x103,_0x407bf4._0x59dc22,0x24d,_0x407bf4._0x514fac)](),_0x472f57[_0x83a8de(0xd0,0x16c,_0x407bf4._0x80cb2b,_0x407bf4._0x31ed06)]['clear']();function _0x83a8de(_0x55b83a,_0x4ee62f,_0x4d99cb,_0x495850){return _0x3d42(_0x4ee62f- -0x144,_0x55b83a);}_0x472f57[_0x352b25(-_0x407bf4._0x2cd673,-_0x407bf4._0x4d7d32,-_0x407bf4._0x4b1f05,-_0x407bf4._0x2236c9)]['clear']();},'status'(){function _0x2bc2ea(_0x510104,_0x2e8f10,_0x4f12c3,_0x1a40c6){return _0x3d42(_0x510104-0x2cc,_0x1a40c6);}function _0xb09956(_0x482168,_0x43587b,_0x51bf9d,_0x2e6c39){return _0x3d42(_0x2e6c39-0x2a6,_0x43587b);}return{'connectedClients':_0x472f57[_0xb09956(_0x38e4b4._0x189a0b,0x511,_0x38e4b4._0x3c77cf,_0x38e4b4._0x160030)][_0x2bc2ea(0x43f,_0x38e4b4._0x74fbcc,_0x38e4b4._0x5b1fb1,0x428)]};}};}function createQuestionId(){const _0x3c244d={_0x192062:0x4ef,_0x1c3eb5:0x474,_0x2ebc5c:0x408,_0x58e7f8:0x497,_0x422c60:0x417},_0x105730={_0x118510:0x15b,_0x5e5c5d:0x53},_0x4e8a55={_0x112106:0xf2,_0x3e19fa:0x8,_0x5b17d3:0x1d8};function _0x41c1a2(_0x6e03c5,_0x228614,_0x47e011,_0x2afd6c){return _0x1d9020(_0x2afd6c,_0x228614-_0x4e8a55._0x112106,_0x47e011-_0x4e8a55._0x3e19fa,_0x2afd6c-_0x4e8a55._0x5b17d3);}function _0x57dc0c(_0xbef75a,_0x2ff9dc,_0x350f09,_0xda5e9f){return _0x1d9020(_0xbef75a,_0x2ff9dc-_0x105730._0x118510,_0x2ff9dc-0x1b1,_0xda5e9f-_0x105730._0x5e5c5d);}return _0x57dc0c(0x499,_0x3c244d._0x192062,_0x3c244d._0x1c3eb5,0x557)+Date['now']()+'-'+Math['random']()[_0x57dc0c(_0x3c244d._0x2ebc5c,0x351,_0x3c244d._0x58e7f8,_0x3c244d._0x422c60)](0x24)['slice'](0x2,0x9);}function validateInput(_0x2f0e14){const _0x302e52={_0x5eda4f:0x7e,_0x236399:0xe6,_0x32567f:0x14b,_0x1b1645:0xd0,_0x37f937:0x129,_0x2fd926:0xd9,_0x22578d:0xd5,_0x475a7c:0x91,_0xa212c7:0x7f,_0x4132ce:0xb0,_0x14257e:0x9a,_0x323808:0x1d8,_0x4b9fe2:0x129,_0x457e0d:0x231,_0x26df84:0x12b,_0x577cc5:0x2a2,_0x582137:0x134,_0x2b5cc7:0x1eb,_0x3b97a6:0x9c,_0x518ccd:0x119,_0x3b8037:0x98,_0x54c2ba:0x5d,_0x442254:0xab,_0x2d8d95:0xff,_0x543de0:0xb6,_0x1b89a9:0x89,_0x5231ce:0xf0,_0x484330:0x30,_0x3494ae:0xdc,_0x4db39a:0x43,_0x1ab9f7:0x14a,_0x26072c:0x23a,_0x497cc0:0x182,_0x379fc2:0x123,_0x13c032:0xf,_0x562f8c:0xfa,_0x32cc7c:0x9e,_0x300872:0x168,_0x6f658e:0x9e,_0x37b1c0:0x59,_0x3d77e:0x14,_0x2e2bbb:0x91,_0x3a204c:0xab,_0x470eef:0xde,_0x29fcfb:0x74,_0x4ae561:0x2e,_0x54fde6:0x69,_0x58ea1f:0x4c,_0x2db829:0x87,_0x57ff54:0x148,_0x156532:0x153,_0xfe15a0:0x275,_0x3c59b6:0x164,_0x3ce0e0:0x8a,_0x46b64e:0xc2,_0xdd0680:0x118,_0x5c10c8:0x58,_0x5b84ad:0x1,_0x43c0da:0xf1,_0x2761d8:0x138,_0x2c00d2:0x1a8,_0x3225fd:0x153,_0x2b8eed:0x14f,_0x28cb17:0x104,_0x73736d:0xaa,_0x5e076d:0x1c8,_0x2b3e94:0x181,_0x1f80c0:0x2f,_0x247bc7:0x53,_0x13c968:0x113,_0x5b3248:0x177,_0x662454:0x166,_0xb72acf:0x11,_0x5d9bc9:0xae,_0x6a17a1:0x49,_0x499ec4:0xbe},_0x54adeb={_0xa940e1:0x1e0,_0x1d9c1a:0x2f7,_0x20f0fd:0x1c7};function _0x3524fe(_0x3cbc90,_0x323609,_0x435507,_0x1c5b12){return _0x1d9020(_0x435507,_0x323609-_0x54adeb._0xa940e1,_0x1c5b12- -_0x54adeb._0x1d9c1a,_0x1c5b12-_0x54adeb._0x20f0fd);}function _0xcdbd4f(_0x3df837,_0x1751c9,_0x2a40a1,_0x4d6863){return _0x4ebc2e(_0x4d6863,_0x3df837- -0x61e,_0x2a40a1-0xd5,_0x4d6863-0x1b3);}if(!Array[_0x3524fe(_0x302e52._0x5eda4f,-0xfb,-0x6a,-0x91)](_0x2f0e14['questions'])||_0x2f0e14[_0x3524fe(-_0x302e52._0x236399,-_0x302e52._0x32567f,-0x1c7,-_0x302e52._0x1b1645)]['length']<0x1||_0x2f0e14[_0xcdbd4f(-_0x302e52._0x37f937,-0x230,-_0x302e52._0x2fd926,-_0x302e52._0x22578d)]['length']>0x4)throw new ToolExecutionError(_0x3524fe(_0x302e52._0x475a7c,0x126,-0xb0,_0x302e52._0xa212c7),{'error':_0x3524fe(_0x302e52._0x4132ce,-_0x302e52._0x14257e,-0x12f,-0x93)});for(let _0x2c97b5=0x0;_0x2c97b5<_0x2f0e14[_0x3524fe(-0x18f,-_0x302e52._0x323808,-0xb7,-0xd0)][_0xcdbd4f(-0x153,-0x1a3,-0xba,-0x4f)];_0x2c97b5+=0x1){const _0x5b9cf9=_0x2f0e14[_0xcdbd4f(-_0x302e52._0x37f937,-0x233,-_0x302e52._0x4b9fe2,-0x1a2)][_0x2c97b5];if(!_0x5b9cf9[_0xcdbd4f(-0x21f,-_0x302e52._0x457e0d,-_0x302e52._0x26df84,-_0x302e52._0x577cc5)]||typeof _0x5b9cf9[_0x3524fe(-_0x302e52._0x582137,-_0x302e52._0x2b5cc7,-0x1d1,-0x1c6)]!=='string')throw new ToolExecutionError(_0xcdbd4f(-_0x302e52._0x3b97a6,-_0x302e52._0x518ccd,-_0x302e52._0x3b8037,-0x15e)+(_0x2c97b5+0x1)+':\x20\x22question\x22\x20field\x20is\x20required\x20and\x20must\x20be\x20a\x20string');if(!_0x5b9cf9[_0x3524fe(-0x30,0x1aa,_0x302e52._0x54c2ba,_0x302e52._0x442254)]||typeof _0x5b9cf9[_0x3524fe(_0x302e52._0x2d8d95,0x5e,_0x302e52._0x543de0,_0x302e52._0x442254)]!==_0x3524fe(-_0x302e52._0x1b89a9,-_0x302e52._0x5231ce,-_0x302e52._0x484330,-0x141))throw new ToolExecutionError(_0x3524fe(_0x302e52._0x3494ae,-0x66,0x27,-_0x302e52._0x4db39a)+(_0x2c97b5+0x1)+_0xcdbd4f(-_0x302e52._0x1ab9f7,-0xb2,-_0x302e52._0x26072c,-0x19d));if(_0x5b9cf9[_0xcdbd4f(0x52,_0x302e52._0x497cc0,0x58,-0x17)][_0x3524fe(-_0x302e52._0x379fc2,-_0x302e52._0x13c032,-0x83,-_0x302e52._0x562f8c)]>0x14)throw new ToolExecutionError(_0xcdbd4f(-_0x302e52._0x3b97a6,_0x302e52._0x32cc7c,-_0x302e52._0x300872,-_0x302e52._0x6f658e)+(_0x2c97b5+0x1)+_0x3524fe(-_0x302e52._0x37b1c0,-0x6b,-0x12c,_0x302e52._0x3d77e)+_0x5b9cf9[_0x3524fe(_0x302e52._0x2e2bbb,-0x80,-0x22,_0x302e52._0x3a204c)][_0x3524fe(-0x15a,-_0x302e52._0x470eef,-_0x302e52._0x29fcfb,-0xfa)]);if(!Array['isArray'](_0x5b9cf9[_0x3524fe(-0xca,0x83,-0x16c,-_0x302e52._0x4ae561)])||_0x5b9cf9[_0xcdbd4f(-0x87,_0x302e52._0x54fde6,_0x302e52._0x58ea1f,0xa5)]['length']<0x2||_0x5b9cf9[_0xcdbd4f(-_0x302e52._0x2db829,-_0x302e52._0x57ff54,-0xe3,-0x1c5)][_0xcdbd4f(-_0x302e52._0x156532,-_0x302e52._0xfe15a0,-_0x302e52._0x3c59b6,-0x210)]>0x4)throw new ToolExecutionError(_0x3524fe(-0xa2,_0x302e52._0x3ce0e0,_0x302e52._0x46b64e,-0x43)+(_0x2c97b5+0x1)+_0x3524fe(-_0x302e52._0xdd0680,-_0x302e52._0x5c10c8,0x1b,-_0x302e52._0x5b84ad));for(let _0x8946ee=0x0;_0x8946ee<_0x5b9cf9[_0xcdbd4f(-0x87,-_0x302e52._0x43c0da,-_0x302e52._0x2761d8,-_0x302e52._0x2c00d2)][_0xcdbd4f(-_0x302e52._0x3225fd,-_0x302e52._0x2b8eed,-0x261,-_0x302e52._0x28cb17)];_0x8946ee+=0x1){const _0x42d649=_0x5b9cf9[_0xcdbd4f(-0x87,0x47,-0x15c,-0x63)][_0x8946ee];if(!_0x42d649[_0x3524fe(-_0x302e52._0x73736d,-0x2b5,-0xc9,-_0x302e52._0x5e076d)]||!_0x42d649[_0x3524fe(-0x1a,_0x302e52._0x2b3e94,-_0x302e52._0x1f80c0,_0x302e52._0x247bc7)])throw new ToolExecutionError('Question\x20'+(_0x2c97b5+0x1)+',\x20Option\x20'+(_0x8946ee+0x1)+_0x3524fe(-_0x302e52._0x13c968,-0x18e,-_0x302e52._0x5b3248,-_0x302e52._0x662454));}if(typeof _0x5b9cf9['multiSelect']!==_0xcdbd4f(-0x56,-0xab,_0x302e52._0xb72acf,-_0x302e52._0x5d9bc9))throw new ToolExecutionError('Question\x20'+(_0x2c97b5+0x1)+_0x3524fe(0x59,-0xde,_0x302e52._0x6a17a1,-_0x302e52._0x499ec4));}}function buildQuestions(_0x5c935d){const _0xf123be={_0x307b06:0x223,_0x19c176:0x1a9},_0x41f5ce={_0x2a5ac3:0xbd},_0x237d4a={_0x53cc2a:0x21d,_0x47e090:0xbc,_0x47fbc5:0x16c};function _0x24a946(_0x2c48a1,_0x477763,_0x98c31e,_0x38d823){return _0x4ebc2e(_0x38d823,_0x477763- -_0x237d4a._0x53cc2a,_0x98c31e-_0x237d4a._0x47e090,_0x38d823-_0x237d4a._0x47fbc5);}function _0x1a62d5(_0x4c3720,_0x3298df,_0xfd060b,_0xedb94){return _0x1d9020(_0xfd060b,_0x3298df-0x9,_0xedb94- -0xa3,_0xedb94-_0x41f5ce._0x2a5ac3);}return _0x5c935d[_0x1a62d5(_0xf123be._0x307b06,_0xf123be._0x19c176,0x140,0x184)]['map']((_0x598192,_0x14d9de)=>({'id':'q'+_0x14d9de,'question':_0x598192[_0x1a62d5(0xeb,0x53,-0xb6,0x8e)],'header':_0x598192[_0x1a62d5(0x339,0x24b,0x3ec,0x2ff)],'options':_0x598192[_0x24a946(0x317,0x37a,0x2f0,0x3ad)],'multiSelect':_0x598192[_0x1a62d5(0x25c,0x1d2,0x78,0x133)]}));}function createResult(_0x30d47e,_0x1e112f,_0x1e738c){const _0x43c0f2={_0x5f8ad1:0x29c,_0x531d19:0x420,_0x1362da:0x2f3},_0x5ece9e={_0x68a26:0x5b},_0x97988b={'questionId':_0x30d47e,'questionCount':_0x1e112f,'answers':_0x1e738c};function _0x5b64d6(_0x3006cb,_0x192b2c,_0x42ffbb,_0x5743dd){return _0x1d9020(_0x3006cb,_0x192b2c-0x11,_0x5743dd-0x103,_0x5743dd-_0x5ece9e._0x68a26);}return createToolOutput('User\x20responses\x20received:\x20'+JSON[_0x5b64d6(0x210,_0x43c0f2._0x5f8ad1,_0x43c0f2._0x531d19,_0x43c0f2._0x1362da)](_0x1e738c,null,0x2),_0x97988b);}function createAskUserTool(){const _0x12b762={_0x2108d3:0x64,_0x408d15:0x109,_0x2b019b:0x233,_0x328011:0x22c,_0x5029dc:0x136,_0x3be702:0x58b,_0xd730fb:0xef,_0x35fd4c:0x85,_0x514cc3:0x3d,_0x5c3ea2:0x757,_0x1ad3ac:0x6ff,_0x43fbf5:0x6e4,_0x279a29:0x385,_0x300d03:0x3b2,_0x59cea7:0x5a,_0x81bf40:0xb9,_0x5944e7:0xb7,_0x29b3de:0x47d,_0x505795:0x3ae,_0x7295b5:0x550,_0x5a04ad:0x5f8,_0x59f2ff:0x527,_0x276e47:0x630,_0xaf838:0x62,_0xab489f:0x51,_0x38498b:0x9b,_0x299333:0x605,_0x489d84:0x43},_0x3863cb={_0x1180e2:0xb2,_0x358ecb:0x125,_0x56bdc4:0x111,_0xa51dbf:0x34d,_0x887b27:0x481,_0x588b61:0x516,_0x5a5cc3:0x311,_0x41b1af:0xd8,_0x3a30c1:0xf1,_0x390058:0xbd,_0x6ea1e8:0xb7,_0x2de079:0x363,_0x135074:0x2f2,_0x380219:0x304,_0x526a16:0x1ac,_0xb46565:0x2e9,_0x113c9a:0x14d,_0x19ccd1:0x9b,_0x12f8a2:0x5c,_0x25b540:0x342,_0x14ff7f:0x298},_0x501052={_0x60cd8d:0x14f},_0x5506f3={_0x5963c4:0x1e3,_0x4fd717:0x23b};function _0x1d9544(_0x14aa77,_0xeb5393,_0x3c16bd,_0x493b42){return _0x1d9020(_0x14aa77,_0xeb5393-_0x5506f3._0x5963c4,_0x3c16bd- -_0x5506f3._0x4fd717,_0x493b42-0x1c6);}function _0x548198(_0x45876a,_0x3e0187,_0x1e6932,_0x275d80){return _0x1d9020(_0x275d80,_0x3e0187-0x15c,_0x3e0187-0x2fe,_0x275d80-0x1cd);}return defineTool({'name':_0x1d9544(0x155,_0x12b762._0x2108d3,0x58,_0x12b762._0x408d15),'description':_0x1d9544(0x225,0xd4,0x12e,0x2),'inputSchema':{'type':'object','properties':{'questions':{'type':_0x1d9544(_0x12b762._0x2b019b,_0x12b762._0x328011,_0x12b762._0x5029dc,0xaa),'items':{'type':_0x548198(0x57c,0x5fe,0x4f7,_0x12b762._0x3be702),'properties':{'question':{'type':_0x1d9544(-0x4a,-_0x12b762._0xd730fb,-_0x12b762._0x35fd4c,-_0x12b762._0x514cc3)},'header':{'type':'string'},'options':{'type':_0x548198(0x780,0x66f,_0x12b762._0x5c3ea2,_0x12b762._0x1ad3ac),'items':{'type':_0x548198(0x70e,0x5fe,_0x12b762._0x43fbf5,0x53c),'properties':{'label':{'type':_0x548198(_0x12b762._0x279a29,0x4b4,_0x12b762._0x300d03,0x48c)},'description':{'type':_0x1d9544(-_0x12b762._0x59cea7,_0x12b762._0x81bf40,-0x85,-_0x12b762._0x5944e7)}},'required':[_0x548198(0x515,0x42d,_0x12b762._0x29b3de,_0x12b762._0x505795),'description']}},'multiSelect':{'type':_0x548198(_0x12b762._0x7295b5,_0x12b762._0x5a04ad,_0x12b762._0x59f2ff,_0x12b762._0x276e47)}},'required':[_0x1d9544(-0x23e,-_0x12b762._0xaf838,-0x10a,0x1e),'header',_0x1d9544(0x185,_0x12b762._0xab489f,0x8e,0xc5),_0x1d9544(_0x12b762._0x38498b,-0x46,-0x65,-0x80)]}},'answers':{'type':_0x548198(_0x12b762._0x299333,0x5fe,0x725,0x5e9),'properties':{}}},'required':[_0x1d9544(_0x12b762._0x489d84,0x1a,-0x14,0x6c)]},async *'execute'(_0xf222a7,_0x4144dd){const _0x35990c={_0x2109fb:0x61},_0x219dcc=_0xf222a7;validateInput(_0x219dcc);const _0x56d31d=_0x4144dd[_0x5ebd16(_0x3863cb._0x1180e2,0xca,_0x3863cb._0x358ecb,_0x3863cb._0x56bdc4)]??createQuestionId();if(_0x219dcc[_0x4680e7(0x278,0x31e,_0x3863cb._0xa51dbf,0x229)]&&Object[_0x4680e7(_0x3863cb._0x887b27,0x48e,_0x3863cb._0x588b61,0x459)](_0x219dcc[_0x4680e7(0x2d1,0x31e,_0x3863cb._0x5a5cc3,0x250)])[_0x5ebd16(-_0x3863cb._0x41b1af,-_0x3863cb._0x3a30c1,-_0x3863cb._0x390058,-0x86)]>0x0)return createResult(_0x56d31d,_0x219dcc['questions'][_0x5ebd16(-0x74,-_0x3863cb._0x6ea1e8,-0x104,-0x86)],_0x219dcc['answers']);if(!_0x4144dd[_0x4680e7(_0x3863cb._0x2de079,_0x3863cb._0x135074,0x252,_0x3863cb._0x380219)])throw new ToolExecutionError(_0x4680e7(_0x3863cb._0x526a16,_0x3863cb._0xb46565,0x3df,0x30a));function _0x5ebd16(_0x25b0d7,_0x3ea780,_0x3f183d,_0xd3ec2c){return _0x1d9544(_0x25b0d7,_0x3ea780-_0x501052._0x60cd8d,_0xd3ec2c- -0x48,_0xd3ec2c-0x85);}const _0xbc680e=buildQuestions(_0x219dcc);function _0x4680e7(_0x5a8276,_0x55e4f3,_0x5790c1,_0x2afba8){return _0x1d9544(_0x5790c1,_0x55e4f3-_0x35990c._0x2109fb,_0x55e4f3-0x380,_0x2afba8-0x105);}const _0x22ca5d=await _0x4144dd[_0x5ebd16(0x3a,-_0x3863cb._0x113c9a,-0x1fa,-0xd6)]({'questionId':_0x56d31d,'questions':_0xbc680e});yield createResult(_0x56d31d,_0x219dcc[_0x5ebd16(-0x20,_0x3863cb._0x19ccd1,-0x92,-_0x3863cb._0x12f8a2)][_0x4680e7(0x3a9,_0x3863cb._0x25b540,_0x3863cb._0x14ff7f,0x37a)],_0x22ca5d);}});}import{spawn as _0x46eb6e}from'child_process';import{statSync}from'fs';import*as _0x59809b from'os';import*as _0x43ef6e from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x4d20a3 from'path';function isPathInside(_0x443bc6,_0x21209e){const _0x475116={_0x1e6d6f:0x29,_0x30baf1:0x5a,_0x178b24:0xa3,_0xccea9d:0xe7,_0x56003f:0x1c9,_0x1ec7e6:0x30,_0x542fcf:0x8a,_0x31d6ab:0x47},_0x5789c7={_0x1f219b:0x304,_0xe81c90:0x23},_0x21d988=_0x4d20a3[_0x3e7abb(0x31,_0x475116._0x1e6d6f,-_0x475116._0x30baf1,_0x475116._0x178b24)](_0x443bc6);function _0x3e7abb(_0x5c9bc0,_0x58114e,_0x41c025,_0x1c434f){return _0x4ebc2e(_0x1c434f,_0x41c025- -0x51c,_0x41c025-0x14d,_0x1c434f-0xc);}const _0x3f6958=_0x4d20a3['relative'](_0x21d988,_0x21209e);function _0x4c418f(_0x370bb6,_0x43bb01,_0x424f9c,_0x28a57e){return _0x1d9020(_0x424f9c,_0x43bb01-0xfe,_0x28a57e-_0x5789c7._0x1f219b,_0x28a57e-_0x5789c7._0xe81c90);}return _0x3f6958===''||!_0x3f6958[_0x3e7abb(0x27,0x9e,_0x475116._0xccea9d,_0x475116._0x56003f)]('..')&&!_0x4d20a3[_0x3e7abb(0x11d,_0x475116._0x1ec7e6,_0x475116._0x542fcf,-_0x475116._0x31d6ab)](_0x3f6958);}function _0x1d9020(_0x1483a3,_0x19e574,_0x3beb0e,_0x5ae819){const _0x1bc68d={_0xf2e39e:0x8a};return _0x3d42(_0x3beb0e-_0x1bc68d._0xf2e39e,_0x1483a3);}function resolveWorkspacePath(_0xa5389,_0x25e09f){return resolveAllowedPath(_0xa5389,[],_0x25e09f);}function resolveAllowedPath(_0x1a054d,_0x4a81b6,_0x3cc823){const _0x4a1d81={_0x337d8c:0x292,_0x12b61e:0x153,_0x456887:0x236,_0x31bcff:0x41a,_0x30b725:0x41e,_0xc35654:0x4ad,_0x48e985:0x451,_0x9aacfa:0x4b2,_0x26caaa:0x3c1,_0x41071c:0x48b,_0x25dae9:0x51c},_0x17dbc8={_0x3b6aec:0x230,_0x30563e:0x46},_0x465cb9={_0x5c6503:0xd3},_0xed5ce1=_0x4d20a3[_0x2f2a36(0x14e,_0x4a1d81._0x337d8c,0x324,_0x4a1d81._0x12b61e)](_0x1a054d),_0x119187=_0x4d20a3[_0x2f2a36(0x345,_0x4a1d81._0x337d8c,_0x4a1d81._0x456887,0x1ec)](_0xed5ce1,_0x3cc823),_0x394709=[_0xed5ce1,..._0x4a81b6[_0x2f2a36(_0x4a1d81._0x31bcff,_0x4a1d81._0x30b725,_0x4a1d81._0xc35654,0x4f1)](_0x19b6f2=>_0x4d20a3[_0x1b6db5(0x36d,0x2c7,0x17f,0x360)](_0x19b6f2))];if(_0x394709[_0x1b6db5(0x4d8,_0x4a1d81._0x48e985,_0x4a1d81._0x9aacfa,_0x4a1d81._0x26caaa)](_0x577f88=>isPathInside(_0x577f88,_0x119187)))return _0x119187;function _0x1b6db5(_0x189743,_0x1b4cfb,_0x41e21a,_0x306cb5){return _0x1d9020(_0x41e21a,_0x1b4cfb-0xf0,_0x1b4cfb-_0x465cb9._0x5c6503,_0x306cb5-0x128);}function _0x2f2a36(_0x4fb1c3,_0x51cc61,_0x2f9114,_0x14c76c){return _0x4ebc2e(_0x2f9114,_0x51cc61- -_0x17dbc8._0x3b6aec,_0x2f9114-0x2b,_0x14c76c-_0x17dbc8._0x30563e);}throw new ToolExecutionError(_0x1b6db5(_0x4a1d81._0x41071c,0x489,_0x4a1d81._0x25dae9,0x4c3)+_0x3cc823,{'path':_0x3cc823,'rootDir':_0xed5ce1,'allowedDirs':_0x394709});}async function assertWorkspaceFile(_0x5426ea){const _0x4a313d={_0x16757a:0x153,_0x4b2d1c:0x266,_0x337bd3:0x182,_0x277a80:0x20c},_0x308278={_0x45eb7f:0xd5,_0x51f5d5:0x42d,_0x4d39bc:0x1e8},_0x447825={_0x479232:0x118},_0x4ed1df=await stat(_0x5426ea);function _0x28bfb5(_0x17658f,_0x2a046a,_0x35ff6a,_0x1b9601){return _0x4ebc2e(_0x17658f,_0x35ff6a- -0x3ba,_0x35ff6a-_0x447825._0x479232,_0x1b9601-0x5c);}function _0x1c4567(_0x4bdf6a,_0x3b631c,_0x42ae02,_0xa169f0){return _0x1d9020(_0xa169f0,_0x3b631c-_0x308278._0x45eb7f,_0x42ae02- -_0x308278._0x51f5d5,_0xa169f0-_0x308278._0x4d39bc);}if(!_0x4ed1df[_0x28bfb5(_0x4a313d._0x16757a,-0x3a,0x97,0x15f)]())throw new ToolExecutionError(_0x1c4567(-0x158,-_0x4a313d._0x4b2d1c,-_0x4a313d._0x337bd3,-_0x4a313d._0x277a80)+_0x5426ea,{'path':_0x5426ea});}function isProbablyBinary(_0x1bf925){const _0x28aa2b={_0x418de9:0x37b,_0xf5a2fa:0x36f},_0x276993={_0x485518:0xcf};function _0x13f84f(_0x15002d,_0x52697e,_0x3e55dc,_0x338572){return _0x1d9020(_0x15002d,_0x52697e-0x1ba,_0x52697e- -0x3e9,_0x338572-_0x276993._0x485518);}return _0x1bf925[_0x13f84f(-_0x28aa2b._0x418de9,-0x260,-_0x28aa2b._0xf5a2fa,-0x1a4)](0x0);}var DEFAULT_DESCRIPTION=_0x4ebc2e(0x2c7,0x400,0x508,0x39d),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x5b3a59){return _0x5b3a59 instanceof Error;}function shellExists(_0x2ff47e){const _0x5232ed={_0x540c44:0x54,_0x2acabb:0x15e,_0x22709b:0xbd,_0x3dde2d:0x1bc},_0xdb6bc4={_0x397795:0x2a3};function _0x3fbb97(_0x37c0e8,_0x549faf,_0x119654,_0x4a79c9){return _0x1d9020(_0x4a79c9,_0x549faf-0x1a5,_0x119654- -_0xdb6bc4._0x397795,_0x4a79c9-0xd1);}try{const _0x2d4f71=statSync(_0x2ff47e);return _0x2d4f71['isFile']()&&(_0x2d4f71[_0x3fbb97(_0x5232ed._0x540c44,-_0x5232ed._0x2acabb,-_0x5232ed._0x22709b,-_0x5232ed._0x3dde2d)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0xf801f3){const _0x29cff2={_0x52d00f:0x1d3,_0x175e88:0x1ec,_0x12b94c:0x204,_0x4fec84:0xf2,_0x167fb0:0x2,_0x4f449e:0x14,_0x36657e:0xca,_0x32c8bb:0x1d2,_0x543b35:0x138,_0x1a93c8:0xd8,_0x506256:0xb4,_0x3187b1:0xda,_0x41bdde:0x116,_0x3852d1:0x18c,_0x9ded98:0x26,_0x53445f:0xe1,_0x154010:0x9b,_0x8eddd0:0x4c,_0x1e2e88:0x130,_0x3e57f7:0x12,_0x2e9ab7:0xeb,_0x33437d:0x99,_0x38ade4:0x36,_0x53dd44:0xcf,_0x1e9fff:0x51},_0x50783a={_0x45112d:0x1fb,_0x92ac35:0x198},_0x4b422d={_0x13c69b:0xff};if(_0xf801f3)return _0xf801f3;if(_0x59809b[_0x36aba8(_0x29cff2._0x52d00f,0x15a,_0x29cff2._0x175e88,_0x29cff2._0x12b94c)]()===_0x576683(-0x8,-_0x29cff2._0x4fec84,-_0x29cff2._0x167fb0,-_0x29cff2._0x4f449e))return process[_0x576683(0xcf,0xd3,_0x29cff2._0x36657e,_0x29cff2._0x32c8bb)][_0x36aba8(_0x29cff2._0x543b35,_0x29cff2._0x1a93c8,0x83,_0x29cff2._0x506256)]||_0x576683(-0x9f,-0x2b,-_0x29cff2._0x3187b1,-_0x29cff2._0x41bdde);function _0x36aba8(_0x2d7151,_0x19d95e,_0x36f03f,_0x22faa6){return _0x1d9020(_0x19d95e,_0x19d95e-0x94,_0x36f03f- -_0x4b422d._0x13c69b,_0x22faa6-0x1c6);}const _0x39678c=[_0x576683(-0x6d,-_0x29cff2._0x3852d1,0x48,-0xed),_0x576683(_0x29cff2._0x9ded98,0xbf,-_0x29cff2._0x53445f,-_0x29cff2._0x154010),_0x576683(_0x29cff2._0x8eddd0,_0x29cff2._0x1e2e88,-_0x29cff2._0x3e57f7,_0x29cff2._0x2e9ab7),_0x36aba8(_0x29cff2._0x33437d,0x4e,0x71,_0x29cff2._0x38ade4)];for(const _0x20724f of _0x39678c){if(shellExists(_0x20724f))return _0x20724f;}function _0x576683(_0x32f7e8,_0x128b28,_0x493abf,_0x5b0a1b){return _0x1d9020(_0x5b0a1b,_0x128b28-0xa1,_0x32f7e8- -_0x50783a._0x45112d,_0x5b0a1b-_0x50783a._0x92ac35);}const _0x2b6c48=process[_0x576683(_0x29cff2._0x53dd44,0xf6,_0x29cff2._0x1e9fff,-0x20)]['SHELL'];if(_0x2b6c48&&shellExists(_0x2b6c48))return _0x2b6c48;return'/bin/bash';}function buildShellArgs(_0x277ae5,_0x4ef0b1){const _0x5acb07={_0x595383:0x59b,_0x23d2bd:0x5f3,_0x1950a6:0x58e,_0x4f9da4:0x569,_0x11ba81:0x54b,_0x590ac5:0x471,_0x32daf3:0x4c7,_0xe99083:0x4a9,_0x452b04:0x34c,_0x1342ce:0x692,_0xa27a7:0x4b2,_0x12145f:0x5ba},_0x5daba1={_0x581f16:0x1ec},_0x346f18={_0x62d997:0x1f2,_0x166553:0x27e};function _0x428f08(_0x4afe59,_0x140a15,_0x178959,_0x991a5f){return _0x1d9020(_0x4afe59,_0x140a15-_0x346f18._0x62d997,_0x991a5f-_0x346f18._0x166553,_0x991a5f-0x7);}function _0x4b1337(_0x5eff0e,_0x9404ba,_0x2fc490,_0x1f153f){return _0x1d9020(_0x2fc490,_0x9404ba-0x136,_0x5eff0e-0x1b1,_0x1f153f-_0x5daba1._0x581f16);}if(_0x59809b[_0x428f08(_0x5acb07._0x595383,_0x5acb07._0x23d2bd,_0x5acb07._0x1950a6,_0x5acb07._0x4f9da4)]()===_0x428f08(_0x5acb07._0x11ba81,0x3b4,0x4a6,_0x5acb07._0x590ac5)){const _0x2ccaf6=/cmd(\.exe)?$/i[_0x4b1337(_0x5acb07._0x32daf3,0x4c1,0x572,_0x5acb07._0xe99083)](_0x4ef0b1);return _0x2ccaf6?['/d','/s','/c',_0x277ae5]:['-NoLogo',_0x4b1337(0x37b,0x3a0,0x2a4,_0x5acb07._0x452b04),_0x428f08(_0x5acb07._0x1342ce,0x671,_0x5acb07._0xa27a7,_0x5acb07._0x12145f),_0x277ae5];}return['-c',_0x277ae5];}function resolveCarriageReturns(_0x409fdc){const _0xcd230a={_0x1248a2:0x255,_0x85ec6:0xb,_0x1ac599:0x1a7},_0x2595ed={_0x5adba8:0x137,_0x64278f:0xb3,_0x4f1c64:0xf5,_0x4e40f0:0x1db,_0x240d4d:0x2c1},_0x22c25c={_0x1d1451:0x5b,_0x2fe985:0x43},_0x524d07={_0x40fedc:0x2e,_0xf4c678:0xdf},_0x5438c3={_0x5e859b:0x535,_0x3ad066:0x58},_0x201aab={_0x66c248:0x55c,_0x5ae61:0x89,_0x387ab6:0x54};function _0x4ce003(_0x43e704,_0x493e3b,_0x3e867e,_0x34c43c){return _0x4ebc2e(_0x43e704,_0x3e867e- -_0x201aab._0x66c248,_0x3e867e-_0x201aab._0x5ae61,_0x34c43c-_0x201aab._0x387ab6);}function _0x17c035(_0x499877,_0x5af4b1,_0x52015f,_0x4c791f){return _0x4ebc2e(_0x5af4b1,_0x52015f- -_0x5438c3._0x5e859b,_0x52015f-_0x5438c3._0x3ad066,_0x4c791f-0x120);}return _0x409fdc[_0x17c035(0x21b,_0xcd230a._0x1248a2,0x123,_0xcd230a._0x85ec6)]('\x0a')[_0x4ce003(0x19f,0x8e,0xf2,_0xcd230a._0x1ac599)](_0xd2b6e4=>{function _0x4dae6d(_0x25d5f5,_0x5b9d3c,_0x15d168,_0x2b645e){return _0x4ce003(_0x2b645e,_0x5b9d3c-_0x524d07._0x40fedc,_0x5b9d3c-_0x524d07._0xf4c678,_0x2b645e-0x2f);}if(!_0xd2b6e4[_0x4dae6d(-0x16,-0x26,-_0x2595ed._0x5adba8,-_0x2595ed._0x64278f)]('\x0d'))return _0xd2b6e4;const _0x30fb3b=_0xd2b6e4[_0x4dae6d(_0x2595ed._0x4f1c64,_0x2595ed._0x4e40f0,_0x2595ed._0x240d4d,0xdc)]('\x0d');function _0x5de5db(_0xcacd2c,_0x15f1d3,_0x510f7d,_0xbef48b){return _0x4ce003(_0x15f1d3,_0x15f1d3-_0x22c25c._0x1d1451,_0xcacd2c-0x442,_0xbef48b-_0x22c25c._0x2fe985);}return _0x30fb3b[_0x30fb3b['length']-0x1]??'';})['join']('\x0a');}function resolveBackspaces(_0x2aab05){const _0xf7ce85={_0x308193:0x5b2,_0x42d590:0x53b,_0x4d1890:0x622,_0x200363:0x8,_0x868172:0x70,_0x391614:0x14c},_0x249274={_0x2102d9:0x4ce,_0x17db6e:0x188};function _0x4e22e9(_0x2985f5,_0x5a4467,_0x4c7f34,_0x2ab575){return _0x4ebc2e(_0x4c7f34,_0x5a4467- -0x121,_0x4c7f34-0x5d,_0x2ab575-0x14c);}const _0x158152=[];for(const _0x309284 of Array[_0x4e22e9(_0xf7ce85._0x308193,_0xf7ce85._0x42d590,_0xf7ce85._0x4d1890,0x5a6)](_0x2aab05)){_0x309284==='\x08'?_0x158152[_0x58383e(0xc2,0x40,-_0xf7ce85._0x200363,-0xe9)]():_0x158152[_0x58383e(-0x66,-0x167,-0x33,_0xf7ce85._0x868172)](_0x309284);}function _0x58383e(_0x39320b,_0x28c0eb,_0x4b0762,_0x26d969){return _0x4ebc2e(_0x28c0eb,_0x4b0762- -_0x249274._0x2102d9,_0x4b0762-0x179,_0x26d969-_0x249274._0x17db6e);}return _0x158152[_0x58383e(-_0xf7ce85._0x391614,-0x19a,-0xc8,-0xd)]('');}function stripAnsiAndControls(_0x47e73d){const _0x266bbc={_0x1bd563:0x70,_0x535d75:0x1e,_0x2b370f:0x110,_0x47deef:0x14f,_0x3557b9:0xf6,_0x2e5ef8:0x1e0,_0x8d1da9:0xaa,_0x311da4:0x1f7,_0x4558a8:0xdd,_0x9b3fe:0x56,_0x4d8182:0x2c,_0x5b4f57:0x1e,_0x13df67:0x10c,_0x5e417d:0x135,_0x56215c:0xd1,_0xb42fad:0x26,_0x14f42f:0xd8,_0x2fa0dd:0x27,_0x5f4707:0x17b},_0x3afb73={_0x48aa28:0x7c,_0x3d2a88:0x281,_0x56f7f5:0x12a},_0x56517d={_0xab80aa:0x694,_0x584a52:0x1b1};function _0x5402f0(_0x4e8b3c,_0x1b157b,_0x2ad7b7,_0x3ab0fa){return _0x4ebc2e(_0x2ad7b7,_0x4e8b3c- -_0x56517d._0xab80aa,_0x2ad7b7-0x6b,_0x3ab0fa-_0x56517d._0x584a52);}_0x47e73d=resolveCarriageReturns(_0x47e73d),_0x47e73d=resolveBackspaces(_0x47e73d),_0x47e73d=stripVTControlCharacters(_0x47e73d);function _0x4bffab(_0x238e0b,_0xbdec7,_0x2f0ba8,_0xce24d8){return _0x1d9020(_0xce24d8,_0xbdec7-_0x3afb73._0x48aa28,_0x238e0b- -_0x3afb73._0x3d2a88,_0xce24d8-_0x3afb73._0x56f7f5);}const _0x269ed6='\x1b',_0xa36d35='\x07';return _0x47e73d=_0x47e73d[_0x4bffab(0xd1,-0x4b,-_0x266bbc._0x1bd563,-_0x266bbc._0x535d75)](new RegExp(_0x5402f0(-0x234,-0x15a,-0x234,-0x1f2)+_0xa36d35+'\x5cn]*?'+_0xa36d35,'g'),''),_0x47e73d=_0x47e73d[_0x5402f0(-0x74,-_0x266bbc._0x2b370f,-_0x266bbc._0x47deef,-0x17)](new RegExp(_0x4bffab(_0x266bbc._0x3557b9,_0x266bbc._0x2e5ef8,_0x266bbc._0x8d1da9,_0x266bbc._0x311da4)+_0x269ed6+'\x5c\x5c','g'),''),_0x47e73d=_0x47e73d[_0x4bffab(0xd1,_0x266bbc._0x4558a8,-_0x266bbc._0x9b3fe,_0x266bbc._0x4d8182)](new RegExp(_0xa36d35,'g'),''),_0x47e73d=_0x47e73d['replace'](new RegExp(_0x269ed6+_0x5402f0(-_0x266bbc._0x5b4f57,_0x266bbc._0x13df67,-_0x266bbc._0x5e417d,0x42)+_0x269ed6+'\x5c\x5c','g'),''),_0x47e73d=_0x47e73d[_0x4bffab(_0x266bbc._0x56215c,-_0x266bbc._0xb42fad,_0x266bbc._0x14f42f,_0x266bbc._0x2fa0dd)](new RegExp(_0x269ed6+'[=>7-8()]','g'),''),_0x47e73d=_0x47e73d[_0x5402f0(-0x74,-0x6b,-0xc4,-_0x266bbc._0x5f4707)](/[\u0080-\u009F]/g,''),_0x47e73d=_0x47e73d['replace'](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x47e73d=_0x47e73d['replace'](/[\u23CE\u2424]/g,''),_0x47e73d;}function resolveWorkingDirectory(_0x194747,_0x4cb547,_0x2e3509){const _0x30495f={_0x57c5e0:0x4bf,_0x4d18f0:0x486,_0x3b2e71:0x5f7,_0x3c5ab6:0x4fb},_0x582bd3={_0x3bb996:0x38,_0x4154a2:0x2ee,_0x1961cc:0x3b},_0x23cdf1={_0x15ef7a:0x301};function _0x5c9d05(_0x244bbd,_0x177f91,_0x45ae00,_0x46ee51){return _0x1d9020(_0x244bbd,_0x177f91-0x3f,_0x177f91-_0x23cdf1._0x15ef7a,_0x46ee51-0x133);}function _0x15136b(_0xc472cd,_0x30fed8,_0x2b2455,_0x32fa6a){return _0x1d9020(_0x30fed8,_0x30fed8-_0x582bd3._0x3bb996,_0x32fa6a- -_0x582bd3._0x4154a2,_0x32fa6a-_0x582bd3._0x1961cc);}const _0x4dd77f=resolveAllowedPath(_0x4cb547,_0x2e3509,_0x194747??'.');try{const _0x4332de=statSync(_0x4dd77f);if(!_0x4332de[_0x5c9d05(0x5f5,_0x30495f._0x57c5e0,_0x30495f._0x4d18f0,0x393)]())throw new ToolExecutionError(_0x5c9d05(0x40b,0x550,0x473,0x52a)+_0x4dd77f,{'cwd':_0x4dd77f});return _0x4dd77f;}catch(_0x226285){if(_0x226285 instanceof ToolExecutionError)throw _0x226285;throw new ToolExecutionError(_0x5c9d05(0x526,0x580,_0x30495f._0x3b2e71,_0x30495f._0x3c5ab6)+_0x4dd77f,{'cwd':_0x4dd77f});}}function killProcessGroup(_0x8561fe,_0x4ebaa0,_0x424132=_0x1d9020(-0x11,0x13a,0x12a,0x247)){const _0x38e859={_0x51b7c2:0x1f2,_0x330256:0xeb,_0xb68ec7:0xa4,_0x43f507:0xd1,_0x52f7ba:0x40,_0x1db125:0x3c,_0x4ccdd6:0x295,_0x16a357:0x17f,_0x50aa42:0x123,_0xc00f66:0x1ea,_0x1266cc:0x255,_0xab30fd:0x187,_0x3e2888:0x156,_0x972ca7:0xd6,_0x5af117:0x14a,_0x56d05e:0x67,_0x27cc1f:0x169,_0xab11b2:0x69},_0x38656a={_0x48a731:0x327,_0x310284:0xe3},_0x14e0b1={_0x32909b:0x1b5,_0x316066:0x186};function _0x48ab4b(_0x18aded,_0x5e7a39,_0x4499f9,_0x428e0b){return _0x1d9020(_0x428e0b,_0x5e7a39-_0x14e0b1._0x32909b,_0x5e7a39- -0x421,_0x428e0b-_0x14e0b1._0x316066);}if(!_0x8561fe['pid'])return;if(_0x4ebaa0)try{_0x46eb6e(_0x48ab4b(-_0x38e859._0x51b7c2,-0xe8,-_0x38e859._0x330256,-_0x38e859._0xb68ec7),[_0x18eedf(0xac,_0x38e859._0x43f507,-_0x38e859._0x52f7ba,_0x38e859._0x1db125),_0x8561fe[_0x48ab4b(-_0x38e859._0x4ccdd6,-_0x38e859._0x16a357,-_0x38e859._0x50aa42,-_0x38e859._0xc00f66)][_0x18eedf(-_0x38e859._0x1266cc,-0x27f,-_0x38e859._0xab30fd,-_0x38e859._0x3e2888)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x8561fe[_0x18eedf(_0x38e859._0x972ca7,-_0x38e859._0x5af117,-_0x38e859._0x56d05e,-0xa4)](_0x424132);return;}function _0x18eedf(_0xaed5d5,_0x7c4dc7,_0x2b35a4,_0x10dc92){return _0x1d9020(_0x7c4dc7,_0x7c4dc7-0x190,_0x2b35a4- -_0x38656a._0x48a731,_0x10dc92-_0x38656a._0x310284);}try{process[_0x18eedf(-0x59,0x2e,-0x67,-0xd7)](-_0x8561fe[_0x48ab4b(-_0x38e859._0x27cc1f,-0x17f,-_0x38e859._0xab11b2,-0x111)],_0x424132);}catch{_0x8561fe['kill'](_0x424132);}}function appendChunk(_0x36ca48,_0x489d9c,_0x564585,_0x4c22cd,_0x36dc86){const _0x2d3482={_0x2063d1:0x220},_0x19281d={_0x228958:0x1d8,_0x43191e:0x453,_0x2d42c4:0x1bf};function _0x170460(_0x24c414,_0x57ee41,_0x192cc7,_0x16392e){return _0x1d9020(_0x57ee41,_0x57ee41-0x1ae,_0x16392e-0x331,_0x16392e-0x7c);}const _0x1ec6ea=_0x4c22cd?stripAnsiAndControls(_0x564585):_0x564585;if(_0x1ec6ea['length']===0x0)return;function _0x3a0d86(_0x1e5778,_0x2c7a5d,_0xebc562,_0x5948b9){return _0x1d9020(_0x2c7a5d,_0x2c7a5d-_0x19281d._0x228958,_0xebc562- -_0x19281d._0x43191e,_0x5948b9-_0x19281d._0x2d42c4);}_0x36ca48[_0x3a0d86(-_0x2d3482._0x2063d1,-0x330,-0x286,-0x2e5)](_0x1ec6ea),_0x489d9c[_0x3a0d86(-0x359,-0x245,-0x286,-0x24e)](_0x1ec6ea),_0x36dc86();}function createBashTool(_0x146da3={}){const _0xd84bc4={_0x32b149:0x536,_0x553224:0x5fe,_0x2db2dd:0x66e,_0x4a4f39:0x17e,_0x398193:0x40,_0x30c7bd:0xd1,_0x4f89b3:0x91,_0x46d773:0x9,_0x2ec624:0x6d,_0x2886f8:0x113,_0x2a70e3:0x5d8,_0x229165:0x6d5,_0xdf632d:0x4b0,_0x401c3e:0x521,_0x4aab43:0x11e,_0x468c6d:0x2de,_0xf2d845:0x2b5,_0x4bfc90:0xf4,_0x5091bb:0x4f,_0x1f7c54:0xd4,_0x139db6:0x177,_0x51b61d:0x6f,_0x217ee8:0x5fd,_0x4db112:0x4f8,_0x4eda7d:0x4f9,_0x589f02:0x5bd,_0xf0b1e6:0x595},_0x4c3447={_0x1ad173:0x1bb,_0xb816d9:0xdc,_0x37bb2:0x86,_0x12f086:0xbf,_0x376810:0x140,_0x5239d6:0x15e,_0x13147e:0x6e,_0x1f1d78:0x1a4,_0x16cfa3:0x16a,_0x3cf3ed:0x1fc,_0x2248b7:0x224,_0x399afc:0x120,_0x169c40:0x1d9,_0x4d51a8:0x32,_0x118ccc:0xbe,_0x16679a:0x24d,_0x3006b2:0x119,_0x547329:0x162,_0x308311:0x1ad,_0x6c05e4:0x1e,_0x33099d:0xf0,_0x54904a:0x102,_0x26bafc:0x94,_0x9096e1:0x17,_0x243a3f:0x178,_0x3a4c9b:0x252,_0x341ef1:0x2c5,_0x56a093:0x3e,_0xcf698e:0x94,_0x1665fb:0x8b,_0x3318fd:0x8,_0x2b5050:0x28d,_0xb3ee1c:0x241,_0x4f3a60:0xf1,_0x281270:0x109,_0x171a30:0x36,_0x50309f:0x2e,_0x318dff:0x1,_0x329c3d:0x21d,_0x32aa36:0x1d8,_0x5c4378:0xd0,_0x16c06c:0x1f8,_0x1cc647:0x2a5,_0x44e916:0xe,_0x2260ff:0x234,_0x5b3880:0x84,_0xb0d5e:0xb7,_0x3314d0:0x202,_0x4deff0:0x327,_0x1d1be2:0x1bd,_0x3be4d1:0xe7,_0x412514:0x60,_0x2a070c:0xc2,_0x1756da:0x8e,_0x78ad1a:0xfa,_0x57a52a:0xdf,_0x46046a:0x1ae,_0x49d6b0:0x6d,_0x53144d:0x2af,_0x384691:0x10b,_0x1cc3b8:0x1a7,_0x251740:0x10b,_0x15d9dc:0xeb,_0x209552:0x354,_0x523e1e:0x263,_0xf19eb:0x2be,_0x3b55b4:0xfc,_0x4a7947:0x1ef,_0x13d2ce:0x166,_0x56acd8:0x15b,_0x647307:0x233,_0x989e6b:0x1a4,_0x218599:0x333,_0x42e78f:0x254,_0x5b5706:0x3c7,_0x32e33a:0x169,_0x3b76a6:0x1db,_0x4e4e72:0x1a5,_0x4aa267:0xe1,_0x35be8b:0x75,_0x3a2509:0x34,_0x537bf1:0x189},_0x1388d4={_0x393e30:0x3b9,_0x247c29:0x4f6,_0x4f09d3:0x51c,_0x58f50a:0x595,_0x55f898:0xc8,_0x49c946:0x4d,_0x332b2c:0x3c,_0x32d074:0x19,_0x4ddbe7:0xf},_0x239fdc={_0x4e1035:0x176,_0x400efe:0x26e},_0x1bcb36={_0x4e3167:0xe3},_0x562bd6={_0x4a5f5e:0x74},_0x548107={_0x378b95:0x36f,_0xf8292b:0x4b},_0x37458d=_0x43ef6e[_0x23c56e(_0xd84bc4._0x32b149,_0xd84bc4._0x553224,0x669,_0xd84bc4._0x2db2dd)](_0x146da3['defaultCwd']??process[_0x358531(-_0xd84bc4._0x4a4f39,-0xfd,_0xd84bc4._0x398193,-0x72)]()),_0x3e6a05=(_0x146da3[_0x358531(_0xd84bc4._0x30c7bd,-_0xd84bc4._0x4f89b3,0x7b,_0xd84bc4._0x46d773)]??[])[_0x358531(-_0xd84bc4._0x2ec624,-0x12b,-_0xd84bc4._0x2886f8,0x11)](_0x5596f8=>_0x43ef6e[_0x358531(-0x62,-0x238,-0x94,-0x17b)](_0x5596f8)),_0x1db798=_0x146da3[_0x23c56e(0x5cc,_0xd84bc4._0x2a70e3,_0xd84bc4._0x229165,0x679)]??DEFAULT_TIMEOUT_MS,_0x16c68f=_0x146da3[_0x23c56e(0x57e,_0xd84bc4._0xdf632d,_0xd84bc4._0x401c3e,0x66b)]??!![];function _0x358531(_0x21e376,_0x2afbde,_0x5427ee,_0x522ac7){return _0x1d9020(_0x2afbde,_0x2afbde-0xdd,_0x522ac7- -_0x548107._0x378b95,_0x522ac7-_0x548107._0xf8292b);}const _0x3faba8=_0x146da3[_0x358531(-0x221,-0x140,-_0xd84bc4._0x4aab43,-0xdb)]??_0x358531(-_0xd84bc4._0x468c6d,-_0xd84bc4._0xf2d845,-0x1e3,-0x230);function _0x23c56e(_0x2dfedc,_0x25f390,_0x3a266f,_0x7021cf){return _0x4ebc2e(_0x3a266f,_0x2dfedc-_0x562bd6._0x4a5f5e,_0x3a266f-0x187,_0x7021cf-0x166);}return defineTool({'name':_0x3faba8,'description':_0x146da3[_0x358531(_0xd84bc4._0x4bfc90,-_0xd84bc4._0x5091bb,_0xd84bc4._0x1f7c54,-0x25)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x358531(-0x115,-_0xd84bc4._0x139db6,-0x1ae,-_0xd84bc4._0x51b61d),'properties':{'command':{'type':_0x23c56e(0x4f8,0x5af,_0xd84bc4._0x217ee8,0x521)},'cwd':{'type':_0x23c56e(_0xd84bc4._0x4db112,0x535,_0xd84bc4._0x4eda7d,0x54c)},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':_0x23c56e(0x63c,0x732,_0xd84bc4._0x589f02,_0xd84bc4._0xf0b1e6)}},'required':['command']},async *'execute'(_0x5b084b,_0x111020){const _0x17f3aa={_0x5d2135:0xd0,_0x520053:0x6e,_0x342840:0x177},_0x3e7531={_0x9e7b0a:0x732},_0x4aa7ba={_0xe6d9ee:0x56f,_0x2c18ee:0x5ed,_0x1c790b:0x5db,_0x27ff5:0x493},_0x2a8069={_0x51d334:0x5d8,_0x4aa125:0x535},_0x301b86={_0x124d7a:0x5d},_0x24935a=_0x5b084b[_0x3bd590(_0x4c3447._0x1ad173,0x2af,0x21d,0x2b9)]??_0x1db798;if(!Number[_0x3bd590(0x4c,_0x4c3447._0xb816d9,_0x4c3447._0x37bb2,-_0x4c3447._0x12f086)](_0x24935a)||_0x24935a<0x1)throw new ToolExecutionError(_0x3bd590(_0x4c3447._0x376810,0xe,0x47,_0x4c3447._0x5239d6),{'command':_0x5b084b[_0x3bd590(0xdb,_0x4c3447._0x13147e,_0x4c3447._0x1f1d78,_0x4c3447._0x16cfa3)]});throwIfAborted(_0x111020['signal']);const _0x229732=resolveWorkingDirectory(_0x5b084b[_0x3bd590(0xce,0x124,_0x4c3447._0x3cf3ed,_0x4c3447._0x2248b7)],_0x37458d,_0x3e6a05),_0x51d049=_0x5b084b[_0x3bd590(0x2e9,_0x4c3447._0x399afc,0x20c,_0x4c3447._0x169c40)]??![],_0x2e5d8a=resolveDefaultShell(_0x146da3[_0x3bd590(0x76,0x7e,_0x4c3447._0x4d51a8,_0x4c3447._0x118ccc)]),_0x181134=buildShellArgs(_0x5b084b[_0xd3dcd5(-_0x4c3447._0x16679a,-0x115,-0x74,-_0x4c3447._0x3006b2)],_0x2e5d8a),_0x4d97c6=_0x59809b[_0xd3dcd5(-0xbf,-0xcf,-_0x4c3447._0x547329,-0x8)]()==='win32';let _0x29d76b;try{_0x29d76b=_0x46eb6e(_0x2e5d8a,_0x181134,{'cwd':_0x229732,'env':{...process[_0x3bd590(0x2bd,0x1ab,0x1c9,_0x4c3447._0x308311)],..._0x146da3[_0xd3dcd5(-_0x4c3447._0x6c05e4,-_0x4c3447._0x33099d,-0x226,-_0x4c3447._0x54904a)]??{}},'stdio':_0x51d049?['ignore',_0xd3dcd5(-0x18d,-_0x4c3447._0x26bafc,_0x4c3447._0x9096e1,-_0x4c3447._0x243a3f),_0x3bd590(_0x4c3447._0x3a4c9b,_0x4c3447._0x341ef1,0x225,0x147)]:[_0xd3dcd5(-_0x4c3447._0x56a093,-_0x4c3447._0xcf698e,-_0x4c3447._0x1665fb,_0x4c3447._0x3318fd),_0x3bd590(_0x4c3447._0x2b5050,_0x4c3447._0xb3ee1c,0x1b0,0xfc),_0xd3dcd5(-_0x4c3447._0x4f3a60,-_0x4c3447._0x281270,-0x23b,-0xfb)],'shell':![],'windowsHide':!![],'detached':!_0x4d97c6});}catch(_0x21e6de){if(isErrnoException(_0x21e6de)&&_0x21e6de[_0xd3dcd5(-_0x4c3447._0x171a30,-0x10b,_0x4c3447._0x50309f,-_0x4c3447._0x318dff)]==='ENOENT')throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x2e5d8a,{'command':_0x5b084b[_0xd3dcd5(-_0x4c3447._0x329c3d,-0x115,-0x145,-_0x4c3447._0x32aa36)],'cwd':_0x229732,'shellPath':_0x2e5d8a});throw new ToolExecutionError(_0x21e6de instanceof Error?_0x21e6de[_0xd3dcd5(-0xf5,-0x166,-0xa4,-_0x4c3447._0x5c4378)]:String(_0x21e6de),{'command':_0x5b084b[_0x3bd590(_0x4c3447._0x16c06c,_0x4c3447._0x1cc647,0x1a4,0x257)],'cwd':_0x229732,'shellPath':_0x2e5d8a});}const _0x221689=[],_0x585768=[],_0x41f814=new StringDecoder(_0xd3dcd5(-0x16b,-0x10d,-0x93,-0x1aa)),_0x47aa81=new StringDecoder(_0xd3dcd5(0x17,-0x10d,-_0x4c3447._0x44e916,-_0x4c3447._0x2260ff));let _0x3519de,_0xb86005=![],_0x2779b7;const _0x5dd759=()=>{if(!_0x3519de)return;const _0x55c4d3=_0x3519de;_0x3519de=void 0x0,_0x55c4d3();};function _0xd3dcd5(_0x33bf4b,_0x318286,_0x3d3f23,_0x379be9){return _0x358531(_0x33bf4b-0xff,_0x33bf4b,_0x3d3f23-_0x1bcb36._0x4e3167,_0x318286- -0x4b);}const _0xf5288=async()=>{if(_0x585768[_0x5737e(0x5b8,0x519,_0x2a8069._0x51d334,_0x2a8069._0x4aa125)]>0x0||_0xb86005)return;function _0x5737e(_0x5b3a3a,_0xcb6beb,_0x176c3b,_0x4df3c3){return _0xd3dcd5(_0x5b3a3a,_0x4df3c3-0x6f2,_0x176c3b-_0x301b86._0x124d7a,_0x4df3c3-0xdb);}await new Promise(_0x2d0566=>{_0x3519de=_0x2d0566;});};function _0x3bd590(_0x52d65c,_0x430dc2,_0x15ac82,_0x4c6337){return _0x358531(_0x52d65c-0x0,_0x4c6337,_0x15ac82-_0x239fdc._0x4e1035,_0x15ac82-_0x239fdc._0x400efe);}const _0x1917dd=_0x1cdb45=>{const _0x2c245a={_0x175e16:0x16};function _0x2bc74b(_0x23593b,_0x42d5bd,_0x3e4b1f,_0xe17a42){return _0xd3dcd5(_0xe17a42,_0x3e4b1f-0x6ac,_0x3e4b1f-0x8,_0xe17a42-_0x2c245a._0x175e16);}appendChunk(_0x221689,_0x585768,_0x41f814[_0x2bc74b(_0x4aa7ba._0xe6d9ee,_0x4aa7ba._0x2c18ee,_0x4aa7ba._0x1c790b,_0x4aa7ba._0x27ff5)](_0x1cdb45),_0x16c68f,_0x5dd759);},_0x23dcd8=_0x49c67e=>{const _0x504bdf={_0x5a3f52:0x6ce};function _0x312c43(_0x2df061,_0x41917c,_0x4ed8a9,_0x27e674){return _0xd3dcd5(_0x27e674,_0x4ed8a9-_0x504bdf._0x5a3f52,_0x4ed8a9-0xf2,_0x27e674-0xe5);}appendChunk(_0x221689,_0x585768,_0x47aa81[_0x312c43(0x646,_0x3e7531._0x9e7b0a,0x5fd,0x6e9)](_0x49c67e),_0x16c68f,_0x5dd759);};_0x29d76b['stdout']?.['on'](_0x3bd590(_0x4c3447._0x5b3880,-_0x4c3447._0xb0d5e,0x34,0xa6),_0x1917dd),_0x29d76b[_0x3bd590(0x171,_0x4c3447._0x3314d0,0x1f1,0x146)]?.['on'](_0xd3dcd5(-0x1a7,-0x285,-0x2c1,-_0x4c3447._0x4deff0),_0x23dcd8);let _0x238d7c=![],_0x32af4b;const _0xf18727=addAbortListener(_0x111020['signal'],()=>{_0x2779b7=toAbortError(_0x111020['signal']['reason']),_0xb86005=!![],_0x5dd759();try{killProcessGroup(_0x29d76b,_0x4d97c6);}catch{}});try{const _0x3d38ad=new Promise((_0x1794f0,_0x19a774)=>{const _0x230e06={_0x23cc41:0xac},_0x46b1d9={_0x329342:0xe},_0x19ceea={_0x4a4b62:0x159},_0x2fc803={_0x5544d3:0x11f,_0x4f81eb:0x152,_0x2d7c18:0x252,_0x4b09ca:0x133,_0x3d072b:0x145,_0x58fd7e:0xa9,_0x4b19b8:0xc0},_0x387c30={_0x2e3c10:0xad},_0x51bbc3={_0x32d2e5:0x605,_0x3760db:0x18d,_0x67f186:0x1e4};function _0x162a03(_0x180ff3,_0x4884f5,_0x423802,_0x3bbf74){return _0xd3dcd5(_0x4884f5,_0x423802-_0x51bbc3._0x32d2e5,_0x423802-_0x51bbc3._0x3760db,_0x3bbf74-_0x51bbc3._0x67f186);}const _0x13ec66=()=>{function _0x133053(_0x28ecd6,_0xf17990,_0xcd9a4c,_0x392a9d){return _0x3d42(_0x392a9d- -0x114,_0xf17990);}function _0x45f0b6(_0x53ce08,_0x362e1b,_0xa0302b,_0x118781){return _0x3d42(_0xa0302b- -_0x387c30._0x2e3c10,_0x118781);}_0x32af4b&&(clearTimeout(_0x32af4b),_0x32af4b=void 0x0),_0x29d76b[_0x133053(_0x2fc803._0x5544d3,_0x2fc803._0x4f81eb,0xd4,0x41)](_0x133053(0x118,_0x2fc803._0x2d7c18,0x210,_0x2fc803._0x4b09ca),_0x5758af),_0x29d76b[_0x45f0b6(0xb6,_0x2fc803._0x3d072b,0xa8,0xc6)](_0x45f0b6(_0x2fc803._0x58fd7e,_0x2fc803._0x4b19b8,0xc7,0x173),_0x477fc9);},_0x5758af=_0x37be4d=>{_0xb86005=!![],_0x5dd759(),_0x13ec66(),_0x19a774(_0x2779b7??_0x37be4d);};function _0x3cb8cb(_0x511d27,_0xdb7370,_0x2ee9de,_0x2a4800){return _0xd3dcd5(_0x2a4800,_0x511d27-0x184,_0x2ee9de-_0x19ceea._0x4a4b62,_0x2a4800-0x1a5);}const _0x477fc9=(_0x595beb,_0x8d99d7)=>{_0x238d7c=!![],appendChunk(_0x221689,_0x585768,_0x41f814[_0x4b76b4(0x19c,0xaa,_0x17f3aa._0x5d2135,0xa4)](),_0x16c68f,_0x5dd759),appendChunk(_0x221689,_0x585768,_0x47aa81[_0x4b76b4(0x20a,-_0x17f3aa._0x520053,_0x17f3aa._0x5d2135,_0x17f3aa._0x342840)](),_0x16c68f,_0x5dd759),_0xb86005=!![],_0x5dd759();function _0x4b76b4(_0x5b2fa4,_0x314001,_0x5a8662,_0x1d98b9){return _0x3d42(_0x5a8662- -_0x46b1d9._0x329342,_0x1d98b9);}_0x13ec66();function _0x4659f3(_0x570e1c,_0x396de8,_0x431013,_0x4323a4){return _0x3d42(_0x431013-0x1f7,_0x570e1c);}if(_0x2779b7){_0x19a774(_0x2779b7);return;}_0x1794f0({'code':_0x595beb,'signal':_0x8d99d7});};_0x32af4b=setTimeout(()=>{const _0x41be65={_0x3013b1:0x17c};_0xb86005=!![],_0x5dd759();function _0x1a7170(_0x45ee6f,_0x1ff51d,_0x380856,_0x3239ab){return _0x3d42(_0x3239ab- -_0x41be65._0x3013b1,_0x1ff51d);}_0x13ec66();try{killProcessGroup(_0x29d76b,_0x4d97c6);}catch{}_0x19a774(new ToolExecutionError(_0x1a7170(0x8d,-0x2e,_0x230e06._0x23cc41,-0x79)+_0x24935a+'\x20ms',{'command':_0x5b084b['command'],'cwd':_0x229732,'shellPath':_0x2e5d8a,'timeoutMs':_0x24935a,'timedOut':!![]}));},_0x24935a),_0x29d76b[_0x162a03(0x3eb,0x4bf,_0x1388d4._0x393e30,0x4d2)](_0x162a03(0x5bd,_0x1388d4._0x247c29,_0x1388d4._0x4f09d3,_0x1388d4._0x58f50a),_0x5758af),_0x29d76b[_0x3cb8cb(-_0x1388d4._0x55f898,-0x15b,-_0x1388d4._0x49c946,-_0x1388d4._0x332b2c)](_0x3cb8cb(-0x38,_0x1388d4._0x32d074,_0x1388d4._0x4ddbe7,0x4),_0x477fc9);});while(_0x585768[_0xd3dcd5(-0x150,-_0x4c3447._0x1d1be2,-0x174,-0x257)]>0x0||!_0xb86005){if(_0x585768['length']===0x0){await _0xf5288();continue;}const _0x1114c2=_0x585768[_0xd3dcd5(_0x4c3447._0x3be4d1,-_0x4c3447._0x412514,_0x4c3447._0x2a070c,_0x4c3447._0x1756da)]();_0x1114c2!==void 0x0&&(yield _0x1114c2);}const _0x177316=await _0x3d38ad,_0x3a3d98=_0x51d049?'exit\x20code\x20'+(_0x177316[_0x3bd590(_0x4c3447._0x78ad1a,_0x4c3447._0x57a52a,_0x4c3447._0x46046a,0xbb)]??0x0):_0x221689['join'](''),_0x21d75c={'command':_0x5b084b[_0x3bd590(0x1c8,_0x4c3447._0x49d6b0,0x1a4,0x170)],'cwd':_0x229732,'exitCode':_0x177316['code']??0x0,'signal':_0x177316[_0xd3dcd5(-0x245,-0x148,-0x117,-0x290)],'ignoreOutput':_0x51d049,'shellPath':_0x2e5d8a,'timeoutMs':_0x24935a};if(_0x177316[_0x3bd590(_0x4c3447._0x53144d,0x1d6,0x1ae,0xf0)]!==0x0)throw new ToolExecutionError(_0x3a3d98||'Command\x20exited\x20with\x20code\x20'+(_0x177316[_0xd3dcd5(-0x245,-_0x4c3447._0x384691,-0x239,-0x129)]??0x0),_0x21d75c);return createToolOutput(_0x3a3d98,_0x21d75c);}catch(_0x149fa3){while(_0x585768['length']>0x0){const _0x5b0e1d=_0x585768[_0xd3dcd5(-0x2c,-0x60,-0xbd,-_0x4c3447._0x1cc3b8)]();_0x5b0e1d!==void 0x0&&(yield _0x5b0e1d);}if(_0x149fa3 instanceof ToolExecutionError)throw _0x149fa3;if(_0x2779b7)throw _0x2779b7;if(isErrnoException(_0x149fa3)&&_0x149fa3[_0xd3dcd5(-0x1c,-_0x4c3447._0x251740,-_0x4c3447._0x15d9dc,-0x8d)]===_0xd3dcd5(0x46,-0xe3,-0x100,0x25))throw new ToolExecutionError(_0xd3dcd5(-_0x4c3447._0x209552,-_0x4c3447._0x523e1e,-_0x4c3447._0xf19eb,-0x39e)+_0x2e5d8a,{'command':_0x5b084b[_0x3bd590(_0x4c3447._0x3b55b4,_0x4c3447._0x4a7947,0x1a4,0x60)],'cwd':_0x229732,'shellPath':_0x2e5d8a});throw new ToolExecutionError(_0x149fa3 instanceof Error?_0x149fa3[_0xd3dcd5(-0xfd,-_0x4c3447._0x13d2ce,-0x50,-0x1f3)]:String(_0x149fa3),{'command':_0x5b084b[_0x3bd590(_0x4c3447._0x56acd8,_0x4c3447._0x647307,_0x4c3447._0x989e6b,0x2b0)],'cwd':_0x229732,'shellPath':_0x2e5d8a});}finally{_0x32af4b&&clearTimeout(_0x32af4b);_0xf18727(),_0x29d76b['stdout']?.['off'](_0xd3dcd5(-_0x4c3447._0x218599,-0x285,-_0x4c3447._0x42e78f,-_0x4c3447._0x5b5706),_0x1917dd),_0x29d76b['stderr']?.[_0xd3dcd5(-_0x4c3447._0x32e33a,-_0x4c3447._0x3b76a6,-_0x4c3447._0x4e4e72,-_0x4c3447._0x4aa267)](_0x3bd590(_0x4c3447._0x35be8b,0x106,_0x4c3447._0x3a2509,0x16b),_0x23dcd8);if(!_0x238d7c&&_0x29d76b[_0x3bd590(_0x4c3447._0x537bf1,0x2c1,0x1a1,0x167)]&&!_0x29d76b['killed'])try{killProcessGroup(_0x29d76b,_0x4d97c6);}catch{}}}});}function createShellExecTool(_0x511e1d={}){return createBashTool(_0x511e1d);}import{readdir,readFile as _0x4e8d15}from'fs/promises';import{extname,join as _0x2ecdf9}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x3ff247,join,relative as _0x29b037,resolve as _0xf31ffe}from'path';import{readdir as _0x55cd0b,readFile as _0x5a40da}from'fs/promises';import{join as _0x5ba9b0,relative as _0x18d0c9,sep}from'path';import{delimiter}from'path';import{mkdir as _0x2031bc,rm,stat as _0x560bce,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x302626}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x4c198e,rename,writeFile as _0x3112a6}from'fs/promises';import{homedir as _0x539683}from'os';import{dirname as _0x1ff022,isAbsolute as _0x2ee6a8,join as _0x1caac8,resolve as _0x3a0648}from'path';import{parse as _0x77182,stringify as _0x5dcfb8}from'yaml';import{cp,mkdir as _0x2d10c0,readFile as _0xce7ace,rm as _0x94ae20,writeFile as _0x5c7673}from'fs/promises';import{homedir}from'os';import{join as _0x38b677}from'path';import{parse as _0x594976,stringify as _0x46d22d}from'yaml';import{z}from'zod';import{readdir as _0x5b2d2c,readFile as _0x5848db}from'fs/promises';import{join as _0x1d61d1}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x3af06a){const _0x1f8a36={_0xc9e08d:0x2a3,_0x2dadac:0x165,_0x39ce07:0x48e,_0x268830:0x5c3,_0x58e1a5:0x3dd,_0xdbf9fd:0x1a8,_0x50d5c8:0x64,_0x53caf3:0x1d9,_0x3871d1:0x2c1,_0x155976:0x1b0,_0x3e8fa3:0x218,_0x2629ce:0x59,_0x29397c:0x1d4,_0x3acc9a:0x4db},_0x5d1eb3={_0x415c85:0x10c},_0x33469d={_0x490b8e:0x3d},_0x3ab8a8=[];let _0x16ba53='',_0x5a2952=0x0;function _0x4bb9ff(_0x1d9694,_0x2ea94a,_0x14a2b5,_0x379f83){return _0x4ebc2e(_0x379f83,_0x1d9694- -_0x33469d._0x490b8e,_0x14a2b5-0xc5,_0x379f83-0x176);}function _0x461e01(_0x39c7cc,_0x1e2836,_0x5d7650,_0x476102){return _0x4ebc2e(_0x476102,_0x39c7cc- -0x323,_0x5d7650-0xc7,_0x476102-_0x5d1eb3._0x415c85);}while(_0x5a2952<_0x3af06a[_0x461e01(0x1a8,0x95,_0x1f8a36._0xc9e08d,_0x1f8a36._0x2dadac)]){const _0x5a7679=_0x3af06a[_0x5a2952];if(_0x5a7679==='\x5c'&&_0x5a2952+0x1<_0x3af06a[_0x4bb9ff(_0x1f8a36._0x39ce07,0x479,_0x1f8a36._0x268830,_0x1f8a36._0x58e1a5)])_0x16ba53+=_0x3af06a[_0x5a2952+0x1],_0x5a2952+=0x2;else{if(_0x5a7679==='\x22'||_0x5a7679==='\x27'){const _0x577fac=_0x5a7679;_0x5a2952++;while(_0x5a2952<_0x3af06a['length']&&_0x3af06a[_0x5a2952]!==_0x577fac){_0x3af06a[_0x5a2952]==='\x5c'&&_0x5a2952+0x1<_0x3af06a[_0x461e01(_0x1f8a36._0xdbf9fd,_0x1f8a36._0x50d5c8,_0x1f8a36._0x53caf3,0xa4)]?(_0x16ba53+=_0x3af06a[_0x5a2952+0x1],_0x5a2952+=0x2):(_0x16ba53+=_0x3af06a[_0x5a2952],_0x5a2952++);}_0x5a2952++;}else _0x5a7679!==void 0x0&&/\s/[_0x461e01(_0x1f8a36._0x3871d1,_0x1f8a36._0x155976,0x2d8,_0x1f8a36._0x3e8fa3)](_0x5a7679)?(_0x16ba53&&(_0x3ab8a8[_0x461e01(0x178,_0x1f8a36._0x2629ce,_0x1f8a36._0x29397c,0x250)](_0x16ba53),_0x16ba53=''),_0x5a2952++):(_0x16ba53+=_0x5a7679,_0x5a2952++);}}if(_0x16ba53)_0x3ab8a8[_0x4bb9ff(0x45e,_0x1f8a36._0x3acc9a,0x444,0x45a)](_0x16ba53);return _0x3ab8a8;}function renderCommandInstructions(_0x3819bf){const _0x3d22dc={_0x52746c:0x197,_0x4fda1e:0x342,_0x477e5a:0x14c,_0x31b40b:0x267,_0x1410ab:0x45,_0x5837a9:0x18a,_0x1733ef:0xdc,_0x12e52b:0x1d5,_0x438fd8:0x1fa,_0x35f2b7:0x1ca,_0x3ef61c:0x231,_0x1e3bc2:0x10d,_0x26ec79:0xd1,_0x3bba9b:0x24b,_0x14dbe1:0x386,_0x5c1b55:0x4cd,_0x586a3d:0x450,_0x352dd9:0x3cb,_0x2f24ed:0x5f,_0x4f79fa:0x34,_0xdd6df2:0x9c,_0x82991e:0x54,_0xe46ad4:0x6c,_0x49fa58:0x2de,_0x586b94:0x1a9,_0x5b7db7:0x1ee},_0xee2a0c={_0x2daaca:0x34},_0x4441e4={_0xce07a6:0x2ad,_0x5bbb66:0x1db,_0x15cd8b:0x262},_0x3dd1fc={_0x443bf8:0x18a,_0x3dc442:0xe7,_0xf24776:0x8c},_0x32d5a5={_0x24b1e1:0x42};let _0x358b30=_0x3819bf[_0x2d029f(0x93,0x190,0x107,_0x3d22dc._0x52746c)],_0x52f2da=![];const _0x3ed7b3=tokenizeCommandArguments(_0x3819bf[_0x58059e(_0x3d22dc._0x4fda1e,0x260,_0x3d22dc._0x477e5a,_0x3d22dc._0x31b40b)]);function _0x2d029f(_0x2af466,_0x465c11,_0x4b6699,_0x12809f){return _0x1d9020(_0x4b6699,_0x465c11-0x5,_0x2af466- -0x24f,_0x12809f-_0x32d5a5._0x24b1e1);}_0x358b30=_0x358b30['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0x2f0ac3,_0x309104)=>{return _0x52f2da=!![],_0x3ed7b3[Number(_0x309104)]??'';}),_0x358b30=_0x358b30['replace'](/\$ARGUMENTS\b/g,()=>{_0x52f2da=!![];function _0x37dcd5(_0x31ba9b,_0x452904,_0x3a8edf,_0xb94ed7){return _0x58059e(_0x31ba9b-_0x3dd1fc._0x443bf8,_0x452904-_0x3dd1fc._0x3dc442,_0x3a8edf,_0x452904- -_0x3dd1fc._0xf24776);}return _0x3819bf[_0x37dcd5(_0x4441e4._0xce07a6,_0x4441e4._0x5bbb66,0x2a6,_0x4441e4._0x15cd8b)];});function _0x58059e(_0x737d8a,_0x4c2889,_0x49d33f,_0x34e3cc){return _0x1d9020(_0x49d33f,_0x4c2889-0xa0,_0x34e3cc-_0xee2a0c._0x2daaca,_0x34e3cc-0x81);}if(_0x3819bf[_0x2d029f(-_0x3d22dc._0x1410ab,-_0x3d22dc._0x5837a9,-_0x3d22dc._0x1733ef,-0x21)]&&_0x3819bf['argumentNames'][_0x58059e(_0x3d22dc._0x12e52b,_0x3d22dc._0x438fd8,_0x3d22dc._0x35f2b7,_0x3d22dc._0x3ef61c)]>0x0)for(let _0x2fb129=0x0;_0x2fb129<_0x3819bf[_0x2d029f(-_0x3d22dc._0x1410ab,-_0x3d22dc._0x1e3bc2,-_0x3d22dc._0x26ec79,-0xe2)]['length'];_0x2fb129++){const _0x35939e=_0x3819bf['argumentNames'][_0x2fb129];if(_0x35939e){const _0x547efc=new RegExp('\x5c$'+_0x35939e+'\x5cb','g');_0x358b30=_0x358b30[_0x58059e(0x4cc,0x448,_0x3d22dc._0x3bba9b,_0x3d22dc._0x14dbe1)](_0x547efc,()=>{return _0x52f2da=!![],_0x3ed7b3[_0x2fb129]??'';});}}return _0x358b30=_0x358b30[_0x58059e(_0x3d22dc._0x5c1b55,_0x3d22dc._0x586a3d,_0x3d22dc._0x352dd9,_0x3d22dc._0x14dbe1)](/\$(\d+)\b/g,(_0x247723,_0x1f59e7)=>{return _0x52f2da=!![],_0x3ed7b3[Number(_0x1f59e7)]??'';}),!_0x52f2da&&_0x3819bf[_0x2d029f(-0x1c,-_0x3d22dc._0x2f24ed,_0x3d22dc._0x4f79fa,_0x3d22dc._0xdd6df2)][_0x2d029f(_0x3d22dc._0x82991e,0x3a,_0x3d22dc._0xe46ad4,0x15b)]()&&(_0x358b30=_0x358b30+_0x58059e(0x334,_0x3d22dc._0x49fa58,_0x3d22dc._0x586b94,_0x3d22dc._0x5b7db7)+_0x3819bf['argumentsText']),_0x358b30;}var chatModelAuthSchemeSchema=z[_0x4ebc2e(0x6c9,0x5da,0x5a0,0x661)]([_0x1d9020(0x1b0,0x2e0,0x234,0x2ec),_0x1d9020(0x28a,0x2aa,0x2ec,0x2ea)]),apiKeyAuthSchema=z[_0x1d9020(0x1e3,0x36d,0x300,0x3b9)]({'type':z['literal'](_0x1d9020(0x30f,0x153,0x292,0x1f3)),'apiKey':z[_0x4ebc2e(0x421,0x484,0x436,0x3aa)](),'authScheme':chatModelAuthSchemeSchema[_0x1d9020(0x337,0x440,0x2f8,0x23f)]()})[_0x1d9020(0xe0,0xf8,0x18a,0x278)](),oauthAuthSchema=z[_0x1d9020(0x28d,0x2dc,0x300,0x430)]({'type':z['literal'](_0x1d9020(0x1e0,0x1f2,0x15b,0x22)),'access':z['string'](),'refresh':z[_0x1d9020(0x1c6,0x115,0x1b6,0xf6)](),'expires':z['number']()[_0x1d9020(0x2e8,0x343,0x2f8,0x2ff)](),'authScheme':chatModelAuthSchemeSchema[_0x4ebc2e(0x6c1,0x5c6,0x489,0x505)]()})[_0x4ebc2e(0x50f,0x458,0x33d,0x32e)](),authMethodSchema=z[_0x1d9020(0x381,0x3d2,0x36f,0x4a3)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x1d9020(0x3ac,0x289,0x300,0x20c)]({'id':z[_0x1d9020(0x1c2,0x217,0x1b6,0x144)](),'name':z[_0x4ebc2e(0x490,0x484,0x482,0x562)]()['optional']()})[_0x4ebc2e(0x338,0x458,0x3fc,0x385)](),modelConfigSchema=z[_0x4ebc2e(0x51c,0x63d,0x536,0x6af)]([z[_0x4ebc2e(0x4b4,0x50e,0x401,0x3ca)](![]),z[_0x1d9020(0x24c,0x2ad,0x240,0xff)](!![]),z[_0x4ebc2e(0x4d2,0x484,0x349,0x448)](),z[_0x1d9020(0x39e,0x3b9,0x371,0x3c3)](z[_0x4ebc2e(0x34c,0x484,0x588,0x57e)]()),z[_0x1d9020(0x2cf,0x4a1,0x371,0x236)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x1d9020(0x202,0x35e,0x30c,0x316)](['anthropic-messages',_0x4ebc2e(0x75a,0x64b,0x5a0,0x50d),_0x1d9020(0xd8,0xf8,0x21f,0x25e),_0x1d9020(0x4df,0x380,0x39d,0x34d)]),providerConfigSchema=z[_0x1d9020(0x223,0x39f,0x300,0x2db)]({'apiKey':z[_0x1d9020(0x111,0x1e2,0x1b6,0x1f1)]()[_0x1d9020(0x3ed,0x30e,0x2f8,0x435)](),'token':z[_0x1d9020(0x116,0x184,0x1b6,0x2e8)]()[_0x4ebc2e(0x549,0x5c6,0x607,0x635)](),'defaultModel':z[_0x4ebc2e(0x356,0x484,0x3ea,0x534)]()[_0x4ebc2e(0x53e,0x5c6,0x684,0x50b)](),'smallModel':z[_0x4ebc2e(0x350,0x484,0x447,0x470)]()[_0x1d9020(0x245,0x3e5,0x2f8,0x221)](),'currentAuth':z[_0x4ebc2e(0x477,0x484,0x3d7,0x496)]()['optional'](),'auth':z[_0x1d9020(0x4a1,0x2cd,0x371,0x330)](authMethodSchema)[_0x4ebc2e(0x585,0x5c6,0x698,0x638)](),'surface':chatModelSurfaceSchema[_0x1d9020(0x3d5,0x271,0x2f8,0x3b4)](),'baseUrl':z['string']()[_0x1d9020(0x1f6,0x28f,0x2f8,0x284)](),'models':modelConfigSchema['optional'](),'customHeaders':z[_0x1d9020(0x41,0x163,0x153,0x229)](z[_0x1d9020(0x2d1,0x1df,0x1b6,0x7d)](),z[_0x1d9020(0x24d,0x13b,0x1b6,0x19c)]())['optional']()})[_0x1d9020(0xbb,0x271,0x18a,0x24b)](),mcpServerConfigSchema=z[_0x4ebc2e(0x595,0x5ce,0x6fa,0x70e)]({'command':z['string']()[_0x4ebc2e(0x5e6,0x5c6,0x65c,0x607)](),'args':z['array'](z[_0x4ebc2e(0x43a,0x484,0x38a,0x375)]())[_0x1d9020(0x31e,0x2fd,0x2f8,0x310)](),'env':z['record'](z[_0x4ebc2e(0x585,0x484,0x4e2,0x4f8)](),z['string']())['optional'](),'transport':z['enum'](['stdio',_0x1d9020(0x284,0x30e,0x389,0x4a4)])[_0x1d9020(0x39d,0x2a1,0x2f8,0x1b8)](),'url':z[_0x4ebc2e(0x3e9,0x484,0x435,0x43f)]()['optional'](),'headers':z[_0x4ebc2e(0x430,0x421,0x2ef,0x511)](z['string'](),z['string']())['optional'](),'prefix':z[_0x4ebc2e(0x351,0x484,0x3c6,0x4bd)]()['optional'](),'timeoutMs':z[_0x1d9020(0x4f,0x133,0x164,0x8c)]()[_0x1d9020(0x29a,0x42e,0x2f8,0x2ee)](),'enabled':z[_0x1d9020(0x393,0x3b2,0x2fa,0x41f)]()[_0x1d9020(0x20d,0x287,0x2f8,0x441)](),'auth':z[_0x4ebc2e(0x49a,0x5ce,0x5a4,0x6c7)]({'type':z['enum']([_0x1d9020(0x1bc,0x291,0x257,0x2c4),_0x4ebc2e(0x56f,0x502,0x5f3,0x599),_0x1d9020(0xcc,0x232,0x15b,0x99)]),'token':z['string']()[_0x4ebc2e(0x6de,0x5c6,0x61b,0x5b1)](),'oauth':z[_0x4ebc2e(0x6db,0x5ce,0x637,0x4cd)]({'clientId':z['string']()[_0x1d9020(0x331,0x240,0x2f8,0x1f4)](),'clientMetadataUrl':z[_0x1d9020(0x170,0xd0,0x1b6,0x2ff)]()[_0x1d9020(0x1bb,0x2c0,0x2f8,0x2e1)](),'authorizationServer':z[_0x4ebc2e(0x5b1,0x484,0x4a4,0x5b7)]()[_0x4ebc2e(0x55a,0x5c6,0x5be,0x5b6)](),'scopes':z['array'](z[_0x4ebc2e(0x451,0x484,0x430,0x384)]())['optional'](),'tokenStorageKey':z[_0x4ebc2e(0x4bf,0x484,0x585,0x582)]()[_0x1d9020(0x437,0x26d,0x2f8,0x2c8)]()})[_0x4ebc2e(0x578,0x458,0x589,0x591)]()['optional']()})['passthrough']()[_0x1d9020(0x25a,0x1ce,0x2f8,0x237)]()})[_0x1d9020(0x158,0x16f,0x18a,0x26a)](),mcpSettingsSchema=z['object']({'servers':z[_0x1d9020(0x236,0x235,0x153,0xe9)](z[_0x1d9020(0xe2,0x2ca,0x1b6,0x2c5)](),mcpServerConfigSchema)[_0x4ebc2e(0x497,0x5c6,0x506,0x5ac)](),'allowedTools':z[_0x1d9020(0x35,0x212,0x153,0x188)](z[_0x1d9020(0x188,0xfc,0x1b6,0x10c)](),z['record'](z[_0x1d9020(0x29e,0x1d7,0x1b6,0x195)](),z[_0x4ebc2e(0x519,0x5c8,0x50d,0x4c0)]()))['optional'](),'defaultTimeoutMs':z[_0x1d9020(0x1ef,0x1f0,0x164,0x1de)]()[_0x1d9020(0x347,0x32c,0x2f8,0x2bc)]()})[_0x1d9020(0x194,0x1c6,0x18a,0x183)](),skillsSettingsSchema=z[_0x1d9020(0x299,0x407,0x300,0x20f)]({'enabled':z[_0x1d9020(0x2f6,0x2d9,0x2fa,0x324)]()[_0x4ebc2e(0x4c6,0x5c6,0x5ee,0x4ed)](),'includeDefaults':z[_0x1d9020(0x2d8,0x379,0x2fa,0x207)]()[_0x1d9020(0x3ce,0x433,0x2f8,0x289)](),'directories':z[_0x1d9020(0x33b,0x28a,0x371,0x32b)](z['string']())[_0x4ebc2e(0x4bb,0x5c6,0x593,0x562)](),'exclude':z[_0x1d9020(0x2d9,0x441,0x371,0x3c4)](z[_0x4ebc2e(0x3cf,0x484,0x448,0x43b)]())[_0x4ebc2e(0x686,0x5c6,0x663,0x6f9)]()})[_0x1d9020(0xc8,0x46,0x18a,0x234)](),commandsSettingsSchema=z['object']({'enabled':z[_0x4ebc2e(0x4ae,0x5c8,0x6b6,0x531)]()[_0x1d9020(0x368,0x43e,0x2f8,0x1dc)](),'directories':z[_0x4ebc2e(0x762,0x63f,0x763,0x68c)](z[_0x4ebc2e(0x406,0x484,0x5bf,0x391)]())[_0x4ebc2e(0x57f,0x5c6,0x4d0,0x51e)]()})[_0x4ebc2e(0x49d,0x458,0x480,0x45c)](),agentsSettingsSchema=z[_0x1d9020(0x2fc,0x3db,0x300,0x3b6)]({'enabled':z[_0x1d9020(0x2f8,0x3fd,0x2fa,0x441)]()['optional'](),'includeDefaults':z['boolean']()[_0x1d9020(0x205,0x31a,0x2f8,0x1f2)](),'directories':z['array'](z['string']())[_0x4ebc2e(0x53d,0x5c6,0x5f2,0x5b1)]()})[_0x1d9020(0x19c,0x29c,0x18a,0x1a4)](),uiThemeSettingsSchema=z[_0x4ebc2e(0x661,0x5ce,0x50d,0x5c6)]({'mode':z[_0x4ebc2e(0x609,0x5da,0x6e8,0x6a7)]([_0x4ebc2e(0x5e7,0x5ab,0x568,0x4ed),_0x4ebc2e(0x6ee,0x5e0,0x649,0x61a),_0x1d9020(0x10d,0xc6,0x1b8,0x273)])[_0x1d9020(0x3ce,0x2ab,0x2f8,0x415)](),'colorLevel':z[_0x4ebc2e(0x6e9,0x5da,0x5b7,0x569)]([_0x4ebc2e(0x6eb,0x5ab,0x4b1,0x6e1),_0x4ebc2e(0x4bd,0x525,0x44a,0x552),_0x4ebc2e(0x370,0x441,0x527,0x496),_0x1d9020(0x1e6,0x1c9,0x2aa,0x28b),_0x1d9020(0x2ed,0x47f,0x3ab,0x291)])[_0x1d9020(0x27a,0x293,0x2f8,0x3eb)](),'backgrounds':z['enum']([_0x1d9020(0x3b0,0x339,0x2dd,0x360),'on',_0x4ebc2e(0x3de,0x4ad,0x459,0x427)])[_0x1d9020(0x35a,0x40e,0x2f8,0x292)](),'messageStyle':z[_0x1d9020(0x273,0x2cd,0x30c,0x272)]([_0x4ebc2e(0x2d3,0x40c,0x2cd,0x4ab),_0x4ebc2e(0x3d0,0x478,0x486,0x38b)])[_0x4ebc2e(0x64d,0x5c6,0x50a,0x4f2)]()})['passthrough'](),statuslineSegmentSchema=z['enum']([_0x1d9020(0x232,0x101,0x214,0x1ba),'session',_0x1d9020(0x22e,0x90,0x14b,0x7d),_0x4ebc2e(0x4cf,0x430,0x411,0x558),_0x1d9020(0x10a,0x2,0x142,-0x5),_0x1d9020(0x439,0x447,0x37f,0x415),_0x4ebc2e(0x65c,0x5d1,0x6b2,0x606),'requests',_0x4ebc2e(0x562,0x483,0x514,0x542),_0x1d9020(0x215,0x2b7,0x2a7,0x1e6),_0x4ebc2e(0x56f,0x52f,0x48a,0x643),_0x4ebc2e(0x5e7,0x4b6,0x423,0x58f),'keybindings',_0x1d9020(0x2ae,0x2d7,0x33d,0x465),'rss']),statuslineItemSchema=z[_0x1d9020(0x2ea,0x40b,0x36f,0x35d)]([statuslineSegmentSchema,z['literal']('|')]),statuslineRowSchema=z['array'](statuslineItemSchema),statuslineConfigSchema=z[_0x1d9020(0x210,0x214,0x300,0x1bf)]({'rows':z[_0x1d9020(0x28e,0x358,0x28d,0x374)]([statuslineRowSchema,statuslineRowSchema])[_0x1d9020(0x3bf,0x2c6,0x2f8,0x2bb)]()})[_0x4ebc2e(0x4fb,0x458,0x373,0x477)](),memorySettingsSchema=z[_0x1d9020(0x38c,0x43a,0x300,0x31e)]({'version':z[_0x4ebc2e(0x50b,0x50e,0x44e,0x530)](0x2)[_0x1d9020(0x1bc,0x3ea,0x2f8,0x1cd)](),'retrieval':z[_0x4ebc2e(0x6bf,0x5ce,0x5f9,0x4cc)]({'engine':z[_0x4ebc2e(0x594,0x50e,0x3f0,0x4f0)](_0x1d9020(0x13a,0x2f4,0x251,0x18e))['optional'](),'candidateLimit':z[_0x4ebc2e(0x452,0x432,0x35a,0x566)]()[_0x4ebc2e(0x493,0x5c6,0x5c2,0x559)](),'activeCandidateLimit':z[_0x1d9020(0x259,0x158,0x164,0xc0)]()['optional'](),'activeEnabled':z[_0x1d9020(0x3cb,0x311,0x2fa,0x2fc)]()[_0x4ebc2e(0x6fd,0x5c6,0x516,0x6f8)](),'maxQueriesPerTurn':z[_0x4ebc2e(0x384,0x432,0x3ca,0x503)]()[_0x4ebc2e(0x4ab,0x5c6,0x691,0x5bf)](),'coreInjectTokenBudget':z[_0x4ebc2e(0x438,0x432,0x483,0x466)]()[_0x4ebc2e(0x61e,0x5c6,0x6f0,0x6aa)](),'injectTokenBudget':z[_0x4ebc2e(0x513,0x432,0x47d,0x3fe)]()[_0x1d9020(0x2ac,0x2d1,0x2f8,0x2f6)](),'minScore':z['number']()[_0x1d9020(0x1cb,0x20a,0x2f8,0x1bc)](),'freshnessHalfLifeDays':z['number']()['optional']()})['passthrough']()[_0x1d9020(0x245,0x20b,0x2f8,0x30b)](),'extraction':z[_0x1d9020(0x1d6,0x2f0,0x300,0x24c)]({'enabled':z['boolean']()['optional'](),'provider':z[_0x4ebc2e(0x4fc,0x484,0x3f9,0x3c1)]()[_0x1d9020(0x299,0x3be,0x2f8,0x252)](),'model':z['string']()[_0x4ebc2e(0x531,0x5c6,0x59f,0x5aa)](),'sensitiveFilter':z[_0x1d9020(0x2a4,0x333,0x2fa,0x25f)]()[_0x1d9020(0x1c1,0x43a,0x2f8,0x203)]()})[_0x1d9020(0x2a8,0x185,0x18a,0x28a)]()[_0x1d9020(0x328,0x2fd,0x2f8,0x24c)](),'index':z['object']({'persisted':z[_0x4ebc2e(0x4ac,0x5c8,0x490,0x650)]()[_0x4ebc2e(0x4fd,0x5c6,0x543,0x538)](),'flushIntervalMs':z[_0x4ebc2e(0x437,0x432,0x409,0x3e5)]()[_0x1d9020(0x39f,0x26a,0x2f8,0x3e1)]()})[_0x1d9020(0x18c,0x165,0x18a,0x148)]()['optional'](),'enabled':z[_0x4ebc2e(0x5ee,0x5c8,0x480,0x6ca)]()['optional'](),'saveTool':z[_0x1d9020(0x36d,0x228,0x2fa,0x304)]()[_0x4ebc2e(0x4d9,0x5c6,0x51d,0x555)](),'model':z['string']()['optional'](),'provider':z[_0x1d9020(0x1f3,0x10e,0x1b6,0x82)]()[_0x4ebc2e(0x585,0x5c6,0x4fa,0x6b2)](),'maxInjectionTokens':z['number']()[_0x4ebc2e(0x559,0x5c6,0x679,0x5f3)](),'backgroundExtraction':z[_0x1d9020(0x27f,0x282,0x2fa,0x3ac)]()[_0x1d9020(0x41e,0x2c0,0x2f8,0x3f9)]()})[_0x1d9020(0x95,0xce,0x18a,0x17f)](),recentModelSchema=z[_0x4ebc2e(0x6a9,0x5ce,0x715,0x66d)]({'provider':z[_0x1d9020(0x209,0x195,0x1b6,0x1be)](),'model':z['string'](),'usedAt':z[_0x4ebc2e(0x3f5,0x432,0x53d,0x352)]()})[_0x1d9020(0x1b7,0x237,0x18a,0x163)](),lspServerEntrySchema=z['object']({'disabled':z[_0x4ebc2e(0x5bf,0x5c8,0x699,0x694)]()['optional'](),'command':z[_0x1d9020(0x211,0x1f8,0x1b6,0xd0)]()[_0x4ebc2e(0x55b,0x5c6,0x53b,0x65f)](),'args':z[_0x4ebc2e(0x76a,0x63f,0x540,0x5a8)](z['string']())[_0x1d9020(0x28a,0x39b,0x2f8,0x37e)](),'rootMarkers':z[_0x4ebc2e(0x779,0x63f,0x6af,0x5ad)](z[_0x4ebc2e(0x3df,0x484,0x41b,0x484)]())[_0x1d9020(0x3b5,0x3c8,0x2f8,0x3c8)]()})['passthrough'](),lspConfigSchema=z[_0x4ebc2e(0x54f,0x5ce,0x4fc,0x63c)]({'enabled':z[_0x1d9020(0x3ba,0x3a5,0x2fa,0x1b9)]()[_0x1d9020(0x3ea,0x2d8,0x2f8,0x1e8)](),'servers':z[_0x1d9020(0x254,0x1dd,0x153,0x28a)](z['string'](),lspServerEntrySchema)[_0x1d9020(0x2b4,0x20e,0x2f8,0x2c9)]()})['passthrough'](),cliConfigSchema=z[_0x4ebc2e(0x5ae,0x5ce,0x5fc,0x5b1)]({'activeProvider':z['string']()[_0x1d9020(0x341,0x2f5,0x2f8,0x240)](),'activeModel':z[_0x1d9020(0x198,0xba,0x1b6,0x175)]()[_0x4ebc2e(0x605,0x5c6,0x633,0x50e)](),'apiKey':z['string']()[_0x1d9020(0x1e0,0x1ce,0x2f8,0x27b)](),'providers':z[_0x1d9020(0x40,0x22f,0x153,0x1f8)](z[_0x1d9020(0x28e,0x21d,0x1b6,0xd2)](),providerConfigSchema)[_0x4ebc2e(0x700,0x5c6,0x5c3,0x486)](),'mcp':mcpSettingsSchema[_0x1d9020(0x396,0x3e3,0x2f8,0x1e9)](),'skills':skillsSettingsSchema[_0x4ebc2e(0x5c7,0x5c6,0x6e8,0x670)](),'agents':agentsSettingsSchema[_0x1d9020(0x2eb,0x3c9,0x2f8,0x29b)](),'commands':commandsSettingsSchema[_0x1d9020(0x243,0x37b,0x2f8,0x348)](),'skillsEnabled':z[_0x4ebc2e(0x3f4,0x421,0x4d9,0x418)](z[_0x1d9020(0x290,0x283,0x1b6,0x1f4)](),z[_0x1d9020(0x205,0x32c,0x2fa,0x31a)]())[_0x1d9020(0x40b,0x20d,0x2f8,0x321)](),'memory':memorySettingsSchema['optional'](),'session':z['object']({'memPersist':z['boolean']()[_0x4ebc2e(0x4a5,0x5c6,0x6fd,0x6e0)](),'persistEventLog':z['boolean']()['optional'](),'persistHttpLog':z[_0x4ebc2e(0x4c2,0x5c8,0x4d6,0x515)]()[_0x4ebc2e(0x66d,0x5c6,0x4aa,0x5a1)]()})[_0x1d9020(0x1a4,0x272,0x18a,0xe6)]()['optional'](),'requireToolApproval':z['boolean']()['optional'](),'thinking':z[_0x1d9020(0x416,0x3fd,0x30c,0x283)]([_0x1d9020(0x182,0x179,0x1e5,0x29a),_0x1d9020(0x15d,0x196,0x1b0,0x29d),_0x1d9020(0xda,0x286,0x1dc,0x164),_0x1d9020(0x2bc,0x497,0x373,0x246)])[_0x1d9020(0x366,0x30f,0x2f8,0x1ef)](),'streamingChunks':z[_0x4ebc2e(0x534,0x5c8,0x4f0,0x515)]()[_0x1d9020(0x2ae,0x404,0x2f8,0x394)](),'agentsEnabled':z[_0x4ebc2e(0x32d,0x421,0x415,0x35c)](z['string'](),z[_0x1d9020(0x2ec,0x233,0x2fa,0x259)]())[_0x1d9020(0x281,0x38d,0x2f8,0x1de)](),'recentModels':z[_0x4ebc2e(0x518,0x63f,0x606,0x63e)](recentModelSchema)['optional'](),'lsp':lspConfigSchema['optional'](),'ui':z[_0x4ebc2e(0x6a8,0x5ce,0x5b8,0x6c8)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema['optional']()})[_0x4ebc2e(0x511,0x458,0x3a7,0x385)]()['optional'](),'tools':z['record'](z['string'](),z[_0x1d9020(0x260,0x245,0x340,0x21b)]())[_0x4ebc2e(0x6f8,0x5c6,0x64b,0x57f)]()})[_0x1d9020(0x1a0,0x14b,0x18a,0x229)]();function buildDescription(_0x5d9ebf){const _0x5f1815={_0x7065a8:0x28,_0x2d9668:0x112,_0x5c6027:0xb0,_0x54404c:0x35,_0x1cbd96:0x6b,_0x14210a:0x1cd,_0x9142f4:0x10b,_0x2d4be4:0x76,_0x47b663:0x113,_0x33ffd8:0x44,_0x29c952:0x13d,_0x31f9f5:0x15e,_0x4f3119:0x14e,_0x2fd59d:0x1b7},_0xccbbd5={_0x2d8a33:0x511},_0x272676={_0x30e93c:0x1d1};function _0x4e806d(_0x501f1a,_0x5c9f53,_0x94a280,_0x19edfa){return _0x1d9020(_0x94a280,_0x5c9f53-0x1a7,_0x5c9f53- -0xeb,_0x19edfa-_0x272676._0x30e93c);}if(_0x5d9ebf[_0x4e806d(-_0x5f1815._0x7065a8,_0x5f1815._0x2d9668,0x1e,0xc5)]===0x0)return[_0x4e806d(0x5a,0xbb,_0x5f1815._0x5c6027,_0x5f1815._0x54404c),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.','No\x20commands\x20are\x20currently\x20available.']['join']('\x0a');const _0x3517b9=['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.','Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x5871be(_0x5f1815._0x1cbd96,_0x5f1815._0x14210a,_0x5f1815._0x9142f4,_0x5f1815._0x2d4be4),..._0x5d9ebf[_0x5871be(_0x5f1815._0x47b663,_0x5f1815._0x33ffd8,_0x5f1815._0x29c952,_0x5f1815._0x47b663)](_0x2dfe0b=>_0x2dfe0b[_0x5871be(-0x1ae,-0x18c,-0x90,0x1e)]?'-\x20'+_0x2dfe0b[_0x4e806d(0xbc,0x1a9,0x81,0x1b5)]+'\x20'+_0x2dfe0b[_0x4e806d(0x8e,0xc8,0x1f3,-0x16)]+':\x20'+_0x2dfe0b[_0x4e806d(0x317,0x25f,0x13e,0x37a)]:'-\x20'+_0x2dfe0b[_0x4e806d(0x2c3,0x1a9,0x87,0x107)]+':\x20'+_0x2dfe0b['description'])];function _0x5871be(_0x24dba6,_0x570a01,_0xf09b26,_0xc15ae5){return _0x4ebc2e(_0xc15ae5,_0xf09b26- -_0xccbbd5._0x2d8a33,_0xf09b26-0x1af,_0xc15ae5-0x42);}return _0x3517b9[_0x5871be(-_0x5f1815._0x31f9f5,-_0x5f1815._0x4f3119,-0x10b,-_0x5f1815._0x2fd59d)]('\x0a');}function createInvokeCommandTool(_0x456f54){const _0x3f2759={_0x380ce4:0xfe,_0x1957ae:0x144,_0xe94d97:0x169,_0x10d02b:0x245,_0x15d8e7:0x305,_0x48c6a3:0x273,_0x4cfeb0:0x409,_0x2d545a:0xc8,_0x2abf0e:0x168,_0x122f7c:0x2a4,_0x4e6fee:0x2bf,_0x1484ea:0x3d1,_0x3e0e50:0x30c,_0xaf12f4:0x2df,_0x5774f1:0x39d},_0x347066={_0x3302b0:0x3d4,_0x30dfc7:0x376,_0x162848:0x408,_0x4ba6d8:0x486,_0x4ecce2:0x552,_0x51aa25:0x5cc,_0x92893f:0x736,_0xfb787d:0x19c,_0x4a4aca:0x1c3,_0xe6c199:0x576,_0x257ebe:0x695,_0x26300f:0x4f1,_0x579b5a:0x6d9,_0x172a0e:0x536,_0x76193a:0x3db,_0x1a57a2:0x46f,_0x248ce5:0x4a9,_0x54c903:0x34c,_0x5f2b04:0x2fa,_0x76148:0x3a0,_0x5b5822:0x26b,_0x49325f:0x1b6},_0x4986f3={_0x93e4b4:0x12,_0x2bf699:0xa5},_0x4e5f87={_0x1cb7b0:0x11c},_0x264c75={_0x28a401:0xd3},_0x13e9f1=new Map(_0x456f54['commands'][_0x56e870(0x66,-0x2d,_0x3f2759._0x380ce4,_0x3f2759._0x1957ae)](_0x589006=>[_0x589006['id'],_0x589006]));function _0x56e870(_0xc23b73,_0x4e3590,_0x7aa668,_0xfc372f){return _0x4ebc2e(_0x4e3590,_0x7aa668- -0x550,_0x7aa668-0x8b,_0xfc372f-_0x264c75._0x28a401);}const _0x45cb1a=buildDescription(_0x456f54[_0x2e4f48(_0x3f2759._0xe94d97,_0x3f2759._0x10d02b,_0x3f2759._0x15d8e7,_0x3f2759._0x48c6a3)]);function _0x2e4f48(_0x20bc20,_0xda3e29,_0x27ecd2,_0x5bad5a){return _0x4ebc2e(_0xda3e29,_0x5bad5a- -0x1c5,_0x27ecd2-0x10e,_0x5bad5a-_0x4e5f87._0x1cb7b0);}return defineTool({'name':_0x2e4f48(0x479,_0x3f2759._0x4cfeb0,0x414,0x359),'description':_0x45cb1a,'inputSchema':{'type':_0x56e870(0x1d,_0x3f2759._0x2d545a,0x7e,_0x3f2759._0x2abf0e),'properties':{'name':{'type':_0x2e4f48(_0x3f2759._0x15d8e7,_0x3f2759._0x122f7c,0x26e,_0x3f2759._0x4e6fee)},'args':{'type':_0x2e4f48(_0x3f2759._0x1484ea,_0x3f2759._0x3e0e50,0x34b,_0x3f2759._0x4e6fee)}},'required':[_0x2e4f48(0x2e5,_0x3f2759._0xaf12f4,0x3a9,_0x3f2759._0x5774f1)]},async *'execute'(_0xab8a07){const _0x3e1b5c={_0x1e100d:0xfb,_0x317de4:0x5ba};function _0x5d19d7(_0x164204,_0x4fbc23,_0x1ce523,_0x28653f){return _0x2e4f48(_0x164204-0x19a,_0x4fbc23,_0x1ce523-_0x4986f3._0x93e4b4,_0x1ce523- -_0x4986f3._0x2bf699);}function _0x299c22(_0x216db0,_0x41e114,_0x4fc299,_0x3b0489){return _0x56e870(_0x216db0-_0x3e1b5c._0x1e100d,_0x4fc299,_0x3b0489-_0x3e1b5c._0x317de4,_0x3b0489-0x4);}const _0x24bd96=_0x13e9f1[_0x5d19d7(_0x347066._0x3302b0,_0x347066._0x30dfc7,0x2eb,_0x347066._0x162848)](_0xab8a07[_0x299c22(_0x347066._0x4ba6d8,_0x347066._0x4ecce2,0x709,_0x347066._0x51aa25)]);if(!_0x24bd96){const _0x52fbf7=Array['from'](_0x13e9f1[_0x299c22(_0x347066._0x92893f,0x660,0x6e7,0x681)]())[_0x5d19d7(0x1ff,0x136,_0x347066._0xfb787d,_0x347066._0x4a4aca)](',\x20');throw new ToolExecutionError(_0x299c22(0x619,_0x347066._0xe6c199,0x6a0,_0x347066._0x257ebe)+_0xab8a07[_0x299c22(0x5eb,_0x347066._0x26300f,_0x347066._0x579b5a,0x5cc)]+_0x5d19d7(0x31d,_0x347066._0x172a0e,0x3fb,_0x347066._0x76193a)+_0x52fbf7,{'name':_0xab8a07['name']});}const _0x1c27cd=await _0x456f54['loadCommand'](_0x24bd96),_0x195256=_0xab8a07['args']??'',_0x437c94=renderCommandInstructions({'instructions':_0x1c27cd[_0x5d19d7(0x3fc,0x393,0x346,0x423)],'argumentsText':_0x195256,'argumentNames':_0x1c27cd[_0x299c22(_0x347066._0x1a57a2,0x4ce,0x54d,_0x347066._0x248ce5)]});return yield createToolOutput(_0x437c94,{'id':_0x1c27cd['id'],'name':_0x1c27cd[_0x5d19d7(_0x347066._0x54c903,0x1ca,0x2f8,_0x347066._0x5f2b04)],'path':_0x24bd96[_0x5d19d7(_0x347066._0x76148,0x326,_0x347066._0x5b5822,_0x347066._0x49325f)]['path']}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x3a1bc4,rename as _0x4b4076,stat as _0x4135fe,writeFile as _0x408528}from'fs/promises';import*as _0x279283 from'path';function detectEol(_0x51bc58){const _0x39b7f7={_0x2514d0:0x4a1,_0x4ce12c:0x42c,_0x1448fc:0x303,_0x5d2c2d:0x3fa,_0x1ffdc6:0x296,_0x1544f7:0x451,_0x40b8ce:0x309},_0x193b21={_0x460b6b:0x110,_0x183516:0x6e};function _0x153a30(_0x1479ff,_0x7cf6f8,_0x31be32,_0x185472){return _0x1d9020(_0x7cf6f8,_0x7cf6f8-_0x193b21._0x460b6b,_0x1479ff-0x18b,_0x185472-_0x193b21._0x183516);}function _0xadab80(_0x1c060f,_0x41c50d,_0x3ffdca,_0x26e9a4){return _0x4ebc2e(_0x1c060f,_0x41c50d-0x82,_0x3ffdca-0x141,_0x26e9a4-0x15b);}return/\r\n/[_0x153a30(_0x39b7f7._0x2514d0,0x377,0x3cb,_0x39b7f7._0x4ce12c)](_0x51bc58[_0x153a30(0x32b,_0x39b7f7._0x1448fc,_0x39b7f7._0x5d2c2d,_0x39b7f7._0x1ffdc6)]('utf8'))?_0x153a30(0x3c5,_0x39b7f7._0x1544f7,0x498,_0x39b7f7._0x40b8ce):'lf';}function normalizeToLf(_0x10596b){return _0x10596b['replace'](/\r\n/g,'\x0a');}function _0x3d42(_0x43dde2,_0x4442e6){_0x43dde2=_0x43dde2-0x9d;const _0x1e7b32=_0x1e7b();let _0x3d42ff=_0x1e7b32[_0x43dde2];if(_0x3d42['ZCwbmz']===undefined){var _0x1c5a74=function(_0x56ff7c){const _0x5b8f5a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x6aebe9='',_0x13c6bc='';for(let _0x5969c4=0x0,_0x4a9bb1,_0x16e809,_0x400dfd=0x0;_0x16e809=_0x56ff7c['charAt'](_0x400dfd++);~_0x16e809&&(_0x4a9bb1=_0x5969c4%0x4?_0x4a9bb1*0x40+_0x16e809:_0x16e809,_0x5969c4++%0x4)?_0x6aebe9+=String['fromCharCode'](0xff&_0x4a9bb1>>(-0x2*_0x5969c4&0x6)):0x0){_0x16e809=_0x5b8f5a['indexOf'](_0x16e809);}for(let _0x5db771=0x0,_0x46eb6e=_0x6aebe9['length'];_0x5db771<_0x46eb6e;_0x5db771++){_0x13c6bc+='%'+('00'+_0x6aebe9['charCodeAt'](_0x5db771)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x13c6bc);};_0x3d42['zodkqS']=_0x1c5a74,_0x3d42['NkglzW']={},_0x3d42['ZCwbmz']=!![];}const _0x2985d1=_0x1e7b32[0x0],_0x4d31ba=_0x43dde2+_0x2985d1,_0x2e2c02=_0x3d42['NkglzW'][_0x4d31ba];return!_0x2e2c02?(_0x3d42ff=_0x3d42['zodkqS'](_0x3d42ff),_0x3d42['NkglzW'][_0x4d31ba]=_0x3d42ff):_0x3d42ff=_0x2e2c02,_0x3d42ff;}function convertEol(_0x97561b,_0x4b6e06){const _0x1c288a={_0x128a7d:0x397,_0x21bad5:0x3cc,_0x21f7e3:0x47a,_0x1e032a:0x70e,_0x28d984:0x4e0},_0x1bfb06={_0x250036:0x175,_0x23770a:0x80},_0x1707b8={_0x13db4d:0x1e3,_0x55a0f4:0x278};function _0x3bcd34(_0x24203c,_0x5c8066,_0x4c4b07,_0xc1e9d7){return _0x1d9020(_0xc1e9d7,_0x5c8066-_0x1707b8._0x13db4d,_0x4c4b07-_0x1707b8._0x55a0f4,_0xc1e9d7-0x180);}function _0x117d01(_0x38a277,_0x142a84,_0x54b4ec,_0x3e8d41){return _0x4ebc2e(_0x38a277,_0x3e8d41- -_0x1bfb06._0x250036,_0x54b4ec-_0x1bfb06._0x23770a,_0x3e8d41-0x1);}return _0x4b6e06===_0x117d01(_0x1c288a._0x128a7d,_0x1c288a._0x21bad5,_0x1c288a._0x21f7e3,0x393)?_0x97561b[_0x3bcd34(_0x1c288a._0x1e032a,_0x1c288a._0x28d984,0x5ca,0x515)](/\n/g,'\x0d\x0a'):_0x97561b;}async function atomicWrite(_0x1d64ad,_0x4d8360){const _0x5ca12b={_0x15077b:0xd7,_0x181afb:0x2d9,_0x494578:0xec,_0x1c1e89:0x2f7,_0x42ea5f:0x261,_0xcd676e:0x2f9,_0x1c9da1:0x2c7,_0x4a35f9:0x200,_0x26dbfe:0x2b4,_0x1bad27:0x26a,_0x28a926:0x3e9,_0x20c98a:0x317},_0x1ee0f4={_0x4473ea:0x130,_0x407909:0x7a,_0x1fc5a1:0x117};function _0x514715(_0x4ce12d,_0x3617f5,_0x17323b,_0x3f2e74){return _0x1d9020(_0x17323b,_0x3617f5-0xea,_0x4ce12d-0x127,_0x3f2e74-0x186);}const _0x5d89b7=_0x279283[_0x1ae73(0x1a9,_0x5ca12b._0x15077b,0x192,0x2b7)](_0x1d64ad),_0x2e7e6a=_0x279283[_0x514715(0x25f,0x135,_0x5ca12b._0x181afb,0x220)](_0x5d89b7,'.tmp.'+_0x279283[_0x1ae73(0x197,0x1d0,_0x5ca12b._0x494578,0x108)](_0x1d64ad)+'.'+Date[_0x514715(0x40c,_0x5ca12b._0x1c1e89,0x455,0x4aa)]()+'.'+Math[_0x1ae73(0x338,_0x5ca12b._0x42ea5f,_0x5ca12b._0xcd676e,0x413)]()[_0x514715(_0x5ca12b._0x1c9da1,_0x5ca12b._0x4a35f9,_0x5ca12b._0x26dbfe,_0x5ca12b._0x1bad27)](0x24)[_0x514715(_0x5ca12b._0x28a926,0x33a,0x3ad,_0x5ca12b._0x20c98a)](0x2));function _0x1ae73(_0x1d9876,_0x440861,_0xa3e1be,_0x126a21){return _0x1d9020(_0xa3e1be,_0x440861-_0x1ee0f4._0x4473ea,_0x1d9876- -_0x1ee0f4._0x407909,_0x126a21-_0x1ee0f4._0x1fc5a1);}await _0x408528(_0x2e7e6a,_0x4d8360),await _0x4b4076(_0x2e7e6a,_0x1d64ad);}function sha256(_0x45b4cc){const _0x13114={_0x176470:0xe9,_0x2a6283:0x57,_0x30de73:0xdb,_0x162ace:0xa0,_0x323a24:0xc1,_0x3fdf58:0xc6},_0x3e7af8={_0x3ce6ef:0x57,_0x4b612a:0x425},_0x5e4bea={_0x4923af:0x90,_0x2f6be6:0x2ba,_0x517c62:0x14e};function _0x242827(_0x58019f,_0x10e278,_0x14434d,_0x162bed){return _0x1d9020(_0x14434d,_0x10e278-_0x5e4bea._0x4923af,_0x162bed- -_0x5e4bea._0x2f6be6,_0x162bed-_0x5e4bea._0x517c62);}function _0x4052d9(_0x487138,_0x49334d,_0x9e1596,_0x1b9b3f){return _0x1d9020(_0x49334d,_0x49334d-_0x3e7af8._0x3ce6ef,_0x9e1596- -_0x3e7af8._0x4b612a,_0x1b9b3f-0x1dc);}return createHash('sha256')[_0x242827(_0x13114._0x176470,_0x13114._0x2a6283,0xe3,_0x13114._0x30de73)](_0x45b4cc)[_0x242827(-_0x13114._0x162ace,-_0x13114._0x323a24,-_0x13114._0x3fdf58,-0x6c)]('hex');}function countLines(_0x4ba342){const _0x3c0a95={_0x815e21:0x28c,_0x2ed7c4:0x336,_0x95d3fc:0x23d,_0x26853f:0x3bb},_0x237898={_0x32c2d2:0x16e,_0x3cccb9:0x181};function _0x1c4987(_0x5caf8f,_0x199887,_0x276308,_0x326edb){return _0x4ebc2e(_0x276308,_0x326edb- -0x195,_0x276308-0x144,_0x326edb-0x11);}function _0x509e3f(_0x3c4534,_0x2595d7,_0x37de3e,_0x239dae){return _0x4ebc2e(_0x2595d7,_0x239dae- -_0x237898._0x32c2d2,_0x37de3e-_0x237898._0x3cccb9,_0x239dae-0x10);}const _0x4c9404=_0x4ba342[_0x509e3f(0x3aa,0x54d,0x39b,0x4b2)](/\n$/,'');return _0x4c9404[_0x1c4987(0x405,_0x3c0a95._0x815e21,0x3bd,_0x3c0a95._0x2ed7c4)]===0x0?0x0:_0x4c9404[_0x509e3f(0x3dd,0x3dd,0x5da,0x4ea)]('\x0a')[_0x509e3f(_0x3c0a95._0x95d3fc,0x416,_0x3c0a95._0x26853f,0x35d)];}function calculateLineNumbers(_0x42b7f4,_0x4c1633,_0x1a17a1,_0x3ddceb){const _0x44ed71={_0x2c5fa2:0x5c2,_0x31bce1:0x629,_0x229d17:0x4dd,_0x2b534f:0x632,_0x5caccc:0x4f7,_0x57072c:0x50d,_0x281ea5:0x3d9},_0x5245fb={_0x2b8931:0xa6};function _0x286d6e(_0x2f0d58,_0x556054,_0x34a5ec,_0x2cb5f4){return _0x1d9020(_0x34a5ec,_0x556054-0x7d,_0x2f0d58-0x2a8,_0x2cb5f4-0x112);}const _0x1cfde8=_0x42b7f4[_0x7aaafa(_0x44ed71._0x2c5fa2,_0x44ed71._0x31bce1,_0x44ed71._0x229d17,0x700)](0x0,_0x3ddceb)[_0x286d6e(_0x44ed71._0x2b534f,0x546,_0x44ed71._0x5caccc,_0x44ed71._0x57072c)]('\x0a')[_0x7aaafa(0x4fd,0x625,0x5f2,_0x44ed71._0x281ea5)],_0x593041=countLines(_0x4c1633);function _0x7aaafa(_0x417cb7,_0x5ef9cb,_0x43e447,_0x2a1c7d){return _0x4ebc2e(_0x5ef9cb,_0x417cb7-0x32,_0x43e447-_0x5245fb._0x2b8931,_0x2a1c7d-0x125);}const _0x12f02a=countLines(_0x1a17a1);return{'oldStartLine':_0x1cfde8,'oldEndLine':_0x1cfde8+_0x593041-0x1,'newStartLine':_0x1cfde8,'newEndLine':_0x1cfde8+_0x12f02a-0x1,'oldLineCount':_0x593041,'newLineCount':_0x12f02a};}function createFileEditTool(_0xe1405c={}){const _0x245f59={_0x6a80:0x1b9,_0xc376e0:0x3c2,_0x53c4b8:0x283,_0x45a9af:0x3d4,_0x5e3309:0x4f0,_0x13eb82:0x41a,_0x26c4a9:0x483,_0x90c9cd:0x4b6,_0x1c4ff1:0x531,_0x2f0085:0x54b,_0x576166:0x4c5,_0x2e7a9e:0x345,_0x4b1e4f:0x40c,_0x3d47b0:0x353,_0x6d1e6:0x3c3,_0x3be125:0x3c9,_0x111353:0x3bb,_0xf81db5:0x341,_0xe94dd1:0x4b9,_0x27545d:0x4f9,_0x559d4c:0x5fc,_0x4d01ac:0x47f,_0x3a6d12:0x344,_0x3972a1:0x245,_0x56e6d0:0x246,_0x5e1138:0x144,_0x4d35e6:0x23e,_0x1269e8:0x306,_0x5e5897:0x27b},_0x14eff1={_0x198100:0x22c,_0x3114d3:0x241,_0x514c45:0x2d0,_0x423525:0x173,_0x30d98a:0x102,_0x769e50:0x26e,_0x25670:0x10f,_0x1052d2:0xef,_0x4fdaea:0x2e,_0x5a2258:0x1bd,_0x57cd4d:0x12b,_0x515e09:0x11e,_0x17066a:0x13f,_0x1300e6:0x89,_0x1385c1:0x27c,_0x53f844:0x387,_0x191246:0x157,_0x1e2805:0x54,_0x337a99:0x162,_0x252a2:0x1f2,_0x1991e1:0x5c,_0x2a162b:0xd7,_0x3ad7fc:0x156,_0x29f4d1:0x108,_0x345ab5:0x1ae,_0x49563c:0x236,_0x5a0c0b:0x24b,_0x2611a5:0x101,_0x51d36e:0x27f,_0x3fbfdb:0x287,_0x2006df:0x214,_0x3cbf65:0xa4,_0x3af67a:0x1de,_0x402649:0x317},_0x31826c={_0x9dc1fe:0x138,_0x2f779a:0x4ff,_0x3a2afd:0x1b1},_0x953022={_0x524cff:0x1ad,_0x162043:0x11f},_0x193cc0={_0x2f701d:0x23f,_0x421b60:0x2,_0x563fc8:0x21},_0x462749=_0x279283[_0x3a603f(_0x245f59._0x6a80,_0x245f59._0xc376e0,_0x245f59._0x53c4b8,0x284)](_0xe1405c[_0xae87c6(_0x245f59._0x45a9af,_0x245f59._0x5e3309,_0x245f59._0x13eb82,_0x245f59._0x26c4a9)]??process[_0xae87c6(_0x245f59._0x90c9cd,0x50f,0x4ad,0x4b0)]());function _0x3a603f(_0xe099cc,_0x405f13,_0x43f5b6,_0x2e7af5){return _0x4ebc2e(_0xe099cc,_0x43f5b6- -_0x193cc0._0x2f701d,_0x43f5b6-_0x193cc0._0x421b60,_0x2e7af5-_0x193cc0._0x563fc8);}const _0x216afb=(_0xe1405c[_0xae87c6(_0x245f59._0x1c4ff1,0x505,0x5fe,_0x245f59._0x2f0085)]??[])['map'](_0x27e94f=>_0x279283['resolve'](_0x27e94f));function _0xae87c6(_0x169af5,_0x247cda,_0x23333c,_0x5e5b82){return _0x1d9020(_0x247cda,_0x247cda-_0x953022._0x524cff,_0x169af5-0x1b9,_0x5e5b82-_0x953022._0x162043);}const _0xf2dc0f=_0xe1405c[_0xae87c6(0x44d,_0x245f59._0x576166,_0x245f59._0x2e7a9e,0x46b)]??_0xae87c6(_0x245f59._0x4b1e4f,0x42b,_0x245f59._0x3d47b0,0x50c);return defineTool({'name':_0xf2dc0f,'description':_0x3a603f(_0x245f59._0x6d1e6,_0x245f59._0x3be125,_0x245f59._0x111353,_0x245f59._0xf81db5),'inputSchema':{'type':_0xae87c6(_0x245f59._0xe94dd1,_0x245f59._0x27545d,_0x245f59._0x559d4c,_0x245f59._0x4d01ac),'properties':{'filePath':{'type':_0x3a603f(0x21e,_0x245f59._0x3a6d12,_0x245f59._0x3972a1,0x171)},'oldText':{'type':_0xae87c6(0x36f,0x447,_0x245f59._0x56e6d0,0x2a6)},'newText':{'type':'string'},'dryRun':{'type':'boolean'}},'required':[_0x3a603f(0x314,_0x245f59._0x5e1138,_0x245f59._0x4d35e6,0x36e),_0x3a603f(0x3d5,_0x245f59._0x1269e8,0x2b8,_0x245f59._0x5e5897),'newText']},async *'execute'(_0x49d819){const _0x1594a8={_0x372dec:0x46a,_0x5bc4de:0xd5},_0x4d9743=resolveAllowedPath(_0x462749,_0x216afb,_0x49d819[_0xc79dfa(-0xf3,-0x28c,-_0x14eff1._0x198100,-_0x14eff1._0x3114d3)]);await assertWorkspaceFile(_0x4d9743);const _0xf5b433=await _0x4135fe(_0x4d9743),_0x412791=await _0x3a1bc4(_0x4d9743),_0x697662=detectEol(_0x412791),_0x1879e9=normalizeToLf(_0x412791[_0x2ae8ab(-0x305,-_0x14eff1._0x514c45,-0x31d,-0x1b7)](_0xc79dfa(-_0x14eff1._0x423525,-_0x14eff1._0x30d98a,-0x12e,-0x38))),_0x1bc8dd=normalizeToLf(_0x49d819[_0x2ae8ab(-_0x14eff1._0x769e50,-0x247,-_0x14eff1._0x25670,-0x382)]),_0x676b18=normalizeToLf(_0x49d819['newText']),_0x2a958a=_0x1879e9[_0xc79dfa(-_0x14eff1._0x1052d2,0xec,-0x43,_0x14eff1._0x4fdaea)](_0x1bc8dd);if(_0x2a958a===-0x1){const _0x1ae558=_0x1bc8dd[_0x2ae8ab(-_0x14eff1._0x5a2258,-0x1ae,-0x2f3,-_0x14eff1._0x57cd4d)](0x0,0x64)[_0xc79dfa(-_0x14eff1._0x515e09,-_0x14eff1._0x17066a,-_0x14eff1._0x1300e6,-0x166)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x1ae558+(_0x1bc8dd['length']>0x64?_0xc79dfa(-0x251,-0x1c8,-_0x14eff1._0x1385c1,-_0x14eff1._0x53f844):'')+'\x22',{'filePath':_0x49d819['filePath']});}const _0x109d20=_0x1879e9['slice'](0x0,_0x2a958a)+_0x676b18+_0x1879e9[_0xc79dfa(-_0x14eff1._0x191246,-_0x14eff1._0x1e2805,-0x119,-0x16)](_0x2a958a+_0x1bc8dd[_0x2ae8ab(-_0x14eff1._0x337a99,-0x273,-0x192,-_0x14eff1._0x252a2)]),_0x5ad941=convertEol(_0x109d20,_0x697662),_0xfba334=Buffer[_0x2ae8ab(-_0x14eff1._0x1991e1,-0xe2,-0x226,-0x3a)](_0x5ad941,'utf8'),_0x1cc855=sha256(_0x412791),_0x1e9e7f=sha256(_0xfba334),_0xbb1eb0=_0x1cc855===_0x1e9e7f;function _0xc79dfa(_0x4ede1d,_0x4eb104,_0x5d83fe,_0x1f228b){return _0x3a603f(_0x4ede1d,_0x4eb104-0xa1,_0x5d83fe- -_0x1594a8._0x372dec,_0x1f228b-_0x1594a8._0x5bc4de);}function _0x2ae8ab(_0x506b73,_0x780425,_0x38e139,_0x26347a){return _0x3a603f(_0x506b73,_0x780425-_0x31826c._0x9dc1fe,_0x780425- -_0x31826c._0x2f779a,_0x26347a-_0x31826c._0x3a2afd);}const _0xddee5=_0x49d819[_0xc79dfa(-_0x14eff1._0x2a162b,-0x108,-0xe4,-_0x14eff1._0x3ad7fc)]??![];return!_0xddee5&&!_0xbb1eb0&&await atomicWrite(_0x4d9743,_0xfba334),yield createToolOutput(_0xbb1eb0?'No\x20changes\x20(content\x20identical).':_0xddee5?_0xc79dfa(-0x28a,-_0x14eff1._0x29f4d1,-_0x14eff1._0x345ab5,-0x160):_0xc79dfa(-_0x14eff1._0x49563c,-0x36e,-_0x14eff1._0x5a0c0b,-0x378),{'filePath':_0x49d819[_0xc79dfa(-0x10c,-_0x14eff1._0x2611a5,-_0x14eff1._0x198100,-_0x14eff1._0x3114d3)],'resolvedPath':_0x4d9743,'created':_0xf5b433['birthtime']['toISOString'](),'modified':_0xf5b433[_0x2ae8ab(-_0x14eff1._0x51d36e,-0x2be,-_0x14eff1._0x3fbfdb,-_0x14eff1._0x2006df)]['toISOString'](),'size':_0xf5b433['size'],'eol':_0x697662,'oldTextLength':_0x1bc8dd['length'],'newTextLength':_0x676b18['length'],'bytesWritten':_0xbb1eb0||_0xddee5?0x0:_0xfba334[_0xc79dfa(-0x258,-_0x14eff1._0x3cbf65,-_0x14eff1._0x3af67a,-_0x14eff1._0x402649)],'beforeSha':_0x1cc855,'afterSha':_0x1e9e7f,'dryRun':_0xddee5,'noChange':_0xbb1eb0,'lineNumbers':calculateLineNumbers(_0x1879e9,_0x1bc8dd,_0x676b18,_0x2a958a)}),void 0x0;}});}import{mkdir as _0x4f15f8,rename as _0x1bfeed,stat as _0x445407,writeFile as _0x225caa}from'fs/promises';import*as _0x122a33 from'path';async function atomicWrite2(_0xda485b,_0x446ffe){const _0x68db34={_0x49a452:0xaa,_0x1c9cff:0x18c,_0x33007c:0xf8,_0x570f27:0x221,_0x191c1f:0x1ad,_0x1e4d82:0x1d1,_0x26aa0c:0x30d,_0x3937e4:0x2a5,_0x102d7b:0x1d2,_0x413e7e:0x276,_0x256d4a:0x372,_0x40ebcb:0x66,_0x5d099e:0x41,_0x1a1205:0x68,_0x257496:0x133},_0x4a3869={_0x512ee0:0x3dc,_0x2bbdc1:0x1b2,_0x177dfa:0x6d},_0x5043e8={_0x5a2782:0x1b};function _0x5d23bd(_0xc8b496,_0x4d9a43,_0x58f413,_0x30a4c5){return _0x4ebc2e(_0x30a4c5,_0xc8b496- -0x30e,_0x58f413-0xe9,_0x30a4c5-_0x5043e8._0x5a2782);}const _0x105e47=_0x122a33[_0x41dba4(_0x68db34._0x49a452,0x115,_0x68db34._0x1c9cff,0x11b)](_0xda485b);await _0x4f15f8(_0x105e47,{'recursive':!![]});function _0x41dba4(_0x37094c,_0x2839f3,_0xe51f0,_0x507547){return _0x4ebc2e(_0x507547,_0x2839f3- -_0x4a3869._0x512ee0,_0xe51f0-_0x4a3869._0x2bbdc1,_0x507547-_0x4a3869._0x177dfa);}const _0x50011b=_0x122a33[_0x5d23bd(_0x68db34._0x33007c,0xb1,-0x27,_0x68db34._0x570f27)](_0x105e47,_0x41dba4(0x355,0x26d,_0x68db34._0x191c1f,0x357)+_0x122a33[_0x5d23bd(_0x68db34._0x1e4d82,0xc9,_0x68db34._0x26aa0c,0x2d2)](_0xda485b)+'.'+Date[_0x5d23bd(_0x68db34._0x3937e4,_0x68db34._0x102d7b,_0x68db34._0x413e7e,0x215)]()+'.'+Math[_0x5d23bd(_0x68db34._0x256d4a,0x3d0,0x2d6,0x442)]()[_0x41dba4(-_0x68db34._0x40ebcb,0x92,-_0x68db34._0x5d099e,-_0x68db34._0x1a1205)](0x24)[_0x41dba4(_0x68db34._0x257496,0x1b4,0x174,0xa9)](0x2));await _0x225caa(_0x50011b,_0x446ffe),await _0x1bfeed(_0x50011b,_0xda485b);}function _0x4ebc2e(_0x164728,_0x9b020f,_0x283a90,_0x2ee55f){const _0x5d2579={_0x263439:0x358};return _0x3d42(_0x9b020f-_0x5d2579._0x263439,_0x164728);}function createFileNewTool(_0x330198={}){const _0x479f9a={_0x33cca0:0x361,_0x55f21a:0x2fe,_0x175917:0x390,_0x53628a:0x2be,_0x7a366f:0x340,_0x3b97e5:0x325,_0x32571a:0x4d5,_0x44c3b3:0x454,_0x56fc99:0x5b8,_0x50cde2:0x30f,_0x272edb:0x3c6,_0x5a78e1:0x227,_0x49f745:0x1d7,_0x3b4350:0x307,_0x560fb1:0x1db,_0x12c3d4:0x494,_0x9b6ec5:0x36d,_0x2df930:0x198,_0x5ac5a7:0x2c0,_0x18df4a:0x33b,_0x348cb0:0xd1},_0x57589a={_0x5d6645:0x40e,_0x5b3b62:0x11c,_0x1ac99d:0x103,_0x4f4ec9:0x7b,_0x311646:0x79,_0xa113e3:0xf,_0x3bc4c5:0x91,_0x555c5e:0xac,_0x414927:0x6,_0x92f661:0x328,_0x2224a2:0x3b0,_0x39e78c:0x1d5,_0xadec84:0x47e,_0x12199e:0x3f8},_0x3c6f15={_0x5d2e2d:0xf7,_0x5efdba:0x3f},_0x3174f5={_0x4033a4:0x16},_0x5657a2={_0x30ce13:0x1c4,_0x465efe:0xe7,_0x2315fa:0x46},_0x235e6f=_0x122a33[_0x4cd8f1(_0x479f9a._0x33cca0,0x3f2,_0x479f9a._0x55f21a,_0x479f9a._0x175917)](_0x330198[_0x4cd8f1(_0x479f9a._0x53628a,_0x479f9a._0x7a366f,_0x479f9a._0x3b97e5,0x29d)]??process[_0x4cd8f1(0x381,0x4d3,0x407,_0x479f9a._0x32571a)]()),_0x44d9bb=(_0x330198[_0x4cd8f1(_0x479f9a._0x44c3b3,0x355,0x482,_0x479f9a._0x56fc99)]??[])[_0x57c9df(0x3a2,_0x479f9a._0x50cde2,_0x479f9a._0x272edb,0x36a)](_0x2a4938=>_0x122a33[_0x57c9df(0x99,0x2b5,0x161,0x1de)](_0x2a4938));function _0x4cd8f1(_0x2def38,_0x43ba94,_0xbfa4c6,_0xf20351){return _0x4ebc2e(_0x43ba94,_0xbfa4c6- -_0x5657a2._0x30ce13,_0xbfa4c6-_0x5657a2._0x465efe,_0xf20351-_0x5657a2._0x2315fa);}const _0x328d41=_0x330198[_0x57c9df(_0x479f9a._0x5a78e1,0x239,_0x479f9a._0x49f745,0x27e)]??_0x57c9df(0x150,0x31b,_0x479f9a._0x3b4350,_0x479f9a._0x560fb1);function _0x57c9df(_0x52100b,_0xf5e915,_0x2cf649,_0x3be968){return _0x1d9020(_0xf5e915,_0xf5e915-0x6,_0x3be968- -_0x3174f5._0x4033a4,_0x3be968-0x191);}return defineTool({'name':_0x328d41,'description':_0x4cd8f1(_0x479f9a._0x12c3d4,0x516,0x46e,_0x479f9a._0x9b6ec5),'inputSchema':{'type':'object','properties':{'filePath':{'type':'string'},'content':{'type':_0x4cd8f1(0x23d,_0x479f9a._0x2df930,_0x479f9a._0x5ac5a7,_0x479f9a._0x18df4a)}},'required':['filePath',_0x57c9df(0x233,_0x479f9a._0x348cb0,0x2ad,0x1ae)]},async *'execute'(_0x462038){const _0x87040c={_0x5a304c:0x1c1,_0x5dacff:0x19f},_0x5ad80b=resolveAllowedPath(_0x235e6f,_0x44d9bb,_0x462038[_0xefc1c8(0x460,0x322,_0x57589a._0x5d6645,0x3b0)]),_0x33da1a=await _0x445407(_0x5ad80b)[_0x588022(-_0x57589a._0x5b3b62,0xc5,_0x57589a._0x1ac99d,-0x1d)](()=>!![])[_0x588022(-0x105,0x3e,0x4b,-_0x57589a._0x4f4ec9)](()=>![]);function _0xefc1c8(_0x3cd681,_0x28d913,_0x305d62,_0x4fdc92){return _0x4cd8f1(_0x3cd681-0x1e6,_0x305d62,_0x4fdc92-_0x3c6f15._0x5d2e2d,_0x4fdc92-_0x3c6f15._0x5efdba);}const _0x4c38b7=Buffer['from'](_0x462038[_0x588022(0x37,0x13d,_0x57589a._0x311646,_0x57589a._0xa113e3)],'utf8');await atomicWrite2(_0x5ad80b,_0x4c38b7),yield createToolOutput(_0x588022(-_0x57589a._0x3bc4c5,0x13a,-0x95,0x4e)+_0x462038[_0x588022(-0x6e,_0x57589a._0x555c5e,-0x27,-_0x57589a._0x414927)]+'.',{'filePath':_0x462038[_0xefc1c8(0x2a3,_0x57589a._0x92f661,0x2e0,_0x57589a._0x2224a2)],'resolvedPath':_0x5ad80b,'bytes':_0x4c38b7['length'],'lines':_0x462038['content'][_0x588022(0x30b,0x192,0x2af,_0x57589a._0x39e78c)](/\r?\n/)[_0xefc1c8(0x441,0x3a4,0x504,0x3fe)],'created':new Date()[_0xefc1c8(_0x57589a._0xadec84,_0x57589a._0x12199e,0x4c0,0x37a)](),'overwritten':_0x33da1a});function _0x588022(_0x4b2226,_0x377fb2,_0x39b799,_0x38da5f){return _0x57c9df(_0x4b2226-_0x87040c._0x5a304c,_0x39b799,_0x39b799-0xb8,_0x38da5f- -_0x87040c._0x5dacff);}return void 0x0;}});}import{readFile as _0x153ed6,stat as _0x4fe801}from'fs/promises';import*as _0x1af9bc from'path';function stripUtfBom(_0x48d828){const _0x455d82={_0x55ab09:0xdf,_0xaa2a32:0x5e,_0x53f3fe:0xe},_0x39887b={_0x4fc5eb:0x1a2},_0xabcb81={_0x2d64c0:0x194,_0x2c393a:0x3a4};function _0x2e2ae0(_0x412612,_0x496382,_0x21a632,_0xabb0c4){return _0x1d9020(_0xabb0c4,_0x496382-_0xabcb81._0x2d64c0,_0x412612- -_0xabcb81._0x2c393a,_0xabb0c4-0x98);}function _0x2888bc(_0x199188,_0x319273,_0x2174ac,_0x5a526b){return _0x4ebc2e(_0x319273,_0x5a526b- -0x582,_0x2174ac-0x13,_0x5a526b-_0x39887b._0x4fc5eb);}return _0x48d828[_0x2e2ae0(-_0x455d82._0x55ab09,-0x214,-_0x455d82._0xaa2a32,-0xdb)](0x0)===0xfeff?_0x48d828[_0x2888bc(0x151,-0x2a,-0x54,_0x455d82._0x53f3fe)](0x1):_0x48d828;}function clampLine(_0x123fac,_0x2e4212){const _0x165d7c={_0x8669b6:0x27c,_0x3eb5e5:0x2ca,_0x431bfd:0x2a3,_0x401f6a:0x186,_0x48b9c4:0x242,_0x578c13:0x68,_0x4398fe:0x101,_0x192a2b:0x22b,_0x16ed0d:0xca},_0x209b8a={_0x14474f:0x71f,_0x3832eb:0x15},_0x2325a1={_0x36ea08:0xc3,_0x5240ce:0xe3};if(!Number[_0x12b798(-_0x165d7c._0x8669b6,-_0x165d7c._0x3eb5e5,-0x2a3,-0x1d0)](_0x123fac))return 0x1;function _0xb80644(_0x2f8d32,_0x22fefe,_0x13b554,_0x427ddb){return _0x1d9020(_0x427ddb,_0x22fefe-_0x2325a1._0x36ea08,_0x13b554- -0x194,_0x427ddb-_0x2325a1._0x5240ce);}function _0x12b798(_0x5f2826,_0x20ea13,_0xf45c24,_0x43b77a){return _0x4ebc2e(_0xf45c24,_0x20ea13- -_0x209b8a._0x14474f,_0xf45c24-0x9c,_0x43b77a-_0x209b8a._0x3832eb);}return Math[_0x12b798(-_0x165d7c._0x431bfd,-_0x165d7c._0x401f6a,-0x1b7,-_0x165d7c._0x48b9c4)](0x1,Math[_0xb80644(_0x165d7c._0x578c13,_0x165d7c._0x4398fe,0x109,_0x165d7c._0x192a2b)](Math[_0xb80644(0x70,0x44,0x9e,_0x165d7c._0x16ed0d)](_0x123fac),_0x2e4212));}function createFileReadTool(_0x5432c2={}){const _0x5f45dd={_0x2d38b8:0x151,_0x2734b8:0x1a8,_0x1a7947:0xa5,_0x2b513f:0xe8,_0x3e35bf:0x34,_0x2ca32e:0x1c,_0x3f346f:0x93,_0x1092bd:0x2d,_0x22c5d3:0x80,_0x522a09:0x11c,_0x51ba84:0x238,_0x544f52:0xb,_0x557813:0x164},_0x43a0dc={_0x170ffa:0x29e,_0x2fc565:0x3a5,_0x3e863c:0x387,_0xea439f:0x177,_0x356f61:0x1e2,_0x327a6c:0x1fe,_0x4a1a3c:0x16f,_0x179b6d:0x242,_0x144340:0x196,_0x506148:0x155,_0x143164:0x9d,_0x216851:0x131,_0x1c87b9:0x58,_0x4057bf:0x23d,_0x2dbf37:0x211,_0x1b4539:0x147,_0xa6c9a:0x1f6,_0x18250f:0x2db,_0x309db6:0x238,_0xf8c4e6:0x2ac,_0x357a5a:0xaa,_0x477f08:0x11c,_0x207669:0x7d,_0x3e3555:0x88,_0xb0cefe:0x1bf,_0x4bbabd:0x180,_0x5d440f:0x143,_0x12469d:0x46,_0x15fa34:0xfd,_0x577990:0x71,_0x5ea7c3:0x15c,_0x51ce9a:0x1e4,_0x4ba402:0x15,_0x46bf8c:0x19,_0x4442fa:0x189,_0x2dc08e:0x154,_0x389c7b:0x112,_0x13a75f:0x1d2,_0x22e278:0x1ab,_0x24db2c:0xa7,_0x397e9f:0x2aa,_0x43ec09:0x1a5,_0x564bd6:0xe6,_0x2c3141:0x3c,_0x1ffddd:0x140},_0x4e7ad3={_0x2d9e92:0x179,_0x2789e9:0x1db},_0x3d1fea={_0x535cd6:0x55e,_0x52a35c:0x1c0,_0x49669c:0x1cf},_0x1220b0={_0xa3f90:0x66a};function _0xed158a(_0x3d639d,_0x5376d7,_0x3aa10a,_0x4e0d95){return _0x4ebc2e(_0x5376d7,_0x4e0d95- -_0x1220b0._0xa3f90,_0x3aa10a-0xf5,_0x4e0d95-0x126);}const _0x5b4877=_0x1af9bc[_0xed158a(-0xf6,-_0x5f45dd._0x2d38b8,-0x111,-_0x5f45dd._0x2734b8)](_0x5432c2[_0x2e0bab(-0x75,-_0x5f45dd._0x1a7947,-0x16d,0x3a)]??process['cwd']()),_0x2ea1aa=(_0x5432c2[_0x2e0bab(_0x5f45dd._0x2b513f,0x202,0xa3,-0x60)]??[])[_0xed158a(-_0x5f45dd._0x3e35bf,-0x4b,-0x80,-_0x5f45dd._0x2ca32e)](_0xe4df98=>_0x1af9bc[_0x2e0bab(-0x9c,-0x1a0,-0x1bf,-0x1dd)](_0xe4df98));function _0x2e0bab(_0x34975e,_0x31b66b,_0x29ed60,_0x262b10){return _0x4ebc2e(_0x29ed60,_0x34975e- -_0x3d1fea._0x535cd6,_0x29ed60-_0x3d1fea._0x52a35c,_0x262b10-_0x3d1fea._0x49669c);}const _0x4eaf10=_0x5432c2[_0x2e0bab(0x4,_0x5f45dd._0x3f346f,-0x30,-_0x5f45dd._0x1092bd)]??_0x2e0bab(-0x1a,-_0x5f45dd._0x22c5d3,-0x127,-0xa2);return defineTool({'name':_0x4eaf10,'description':'Read\x20a\x20UTF-8\x20text\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories.\x20Optionally\x20specify\x20line\x20ranges\x20(lineStart,\x20lineEnd)','inputSchema':{'type':_0xed158a(-0x17a,-_0x5f45dd._0x522a09,-0x1bf,-0x9c),'properties':{'path':{'type':'string'},'lineStart':{'type':_0xed158a(-0x247,-0x372,-0x1c2,-_0x5f45dd._0x51ba84)},'lineEnd':{'type':_0x2e0bab(-0x12c,-0x12a,_0x5f45dd._0x544f52,-_0x5f45dd._0x557813)}},'required':[_0x2e0bab(0x125,0x14e,0x48,0xf8)]},async *'execute'(_0x4b953b){const _0x1410a3=resolveAllowedPath(_0x5b4877,_0x2ea1aa,_0x4b953b[_0x282f82(_0x43a0dc._0x170ffa,_0x43a0dc._0x2fc565,0x2e5,0x3a6)]);await assertWorkspaceFile(_0x1410a3);function _0x2bc898(_0x527a76,_0x3fc37d,_0x46f707,_0x35f29c){return _0xed158a(_0x527a76-0x15c,_0x3fc37d,_0x46f707-0x116,_0x46f707- -0x46);}const _0x3c2e5f=await _0x4fe801(_0x1410a3),_0x48ce53=await _0x153ed6(_0x1410a3);if(isProbablyBinary(_0x48ce53))throw new ToolExecutionError(_0x2bc898(-0x25f,-0x38f,-0x267,-0x362)+_0x4b953b[_0x282f82(0x29e,_0x43a0dc._0x3e863c,_0x43a0dc._0xea439f,0x1fe)],{'path':_0x4b953b[_0x282f82(_0x43a0dc._0x170ffa,_0x43a0dc._0x356f61,_0x43a0dc._0x327a6c,_0x43a0dc._0x4a1a3c)]});let _0x37ab45=_0x48ce53[_0x2bc898(-0x229,-0x183,-_0x43a0dc._0x179b6d,-0x358)](_0x282f82(_0x43a0dc._0x144340,_0x43a0dc._0x506148,_0x43a0dc._0x143164,0xeb));const _0x5aa3cc=_0x37ab45[_0x282f82(0x1ae,0x171,0x142,0x2f2)](0x0)===0xfeff;_0x37ab45=stripUtfBom(_0x37ab45);const _0x134fb4=_0x37ab45[_0x2bc898(-_0x43a0dc._0x216851,0x55,-_0x43a0dc._0x1c87b9,-0x8)](/\r?\n/),_0x497e46={'path':_0x4b953b['path'],'resolvedPath':_0x1410a3,'created':_0x3c2e5f[_0x282f82(_0x43a0dc._0x4057bf,_0x43a0dc._0x2dbf37,_0x43a0dc._0x1b4539,_0x43a0dc._0xa6c9a)][_0x2bc898(-_0x43a0dc._0x18250f,-_0x43a0dc._0x309db6,-0x269,-_0x43a0dc._0xf8c4e6)](),'modified':_0x3c2e5f[_0x282f82(0x9b,-_0x43a0dc._0x357a5a,0x9e,_0x43a0dc._0x477f08)][_0x282f82(0x62,_0x43a0dc._0x207669,-0xd1,_0x43a0dc._0x3e3555)](),'size':_0x3c2e5f[_0x282f82(_0x43a0dc._0xb0cefe,0x12a,_0x43a0dc._0x4bbabd,0x1b4)],'encoding':_0x282f82(_0x43a0dc._0x144340,_0x43a0dc._0x5d440f,0x12d,0x229),'bomStripped':_0x5aa3cc,'truncated':![],'totalLines':_0x134fb4['length']};if(_0x4b953b['lineStart']!==void 0x0||_0x4b953b[_0x282f82(_0x43a0dc._0x12469d,_0x43a0dc._0x15fa34,0x62,0xda)]!==void 0x0){const _0x34b2ce=clampLine(_0x4b953b[_0x2bc898(-_0x43a0dc._0x577990,-0x12c,-_0x43a0dc._0x5ea7c3,-0x19b)]??0x1,_0x134fb4[_0x282f82(0xe6,_0x43a0dc._0x51ce9a,_0x43a0dc._0x4bbabd,0x1e7)]),_0x4c713e=clampLine(_0x4b953b[_0x282f82(0x46,-_0x43a0dc._0x4ba402,-_0x43a0dc._0x46bf8c,0xb4)]??_0x134fb4[_0x2bc898(-_0x43a0dc._0x4442fa,-_0x43a0dc._0x2dc08e,-0x1e5,-_0x43a0dc._0x389c7b)],_0x134fb4['length']),_0x3b6c08=Math['min'](_0x34b2ce,_0x4c713e),_0x2328b6=Math[_0x282f82(0x1b4,0x1f3,0x27a,_0x43a0dc._0x13a75f)](_0x34b2ce,_0x4c713e),_0x19a45c=_0x134fb4[_0x282f82(_0x43a0dc._0x22e278,_0x43a0dc._0x24db2c,0x195,0xa4)](_0x3b6c08-0x1,_0x2328b6)['map']((_0x20b541,_0x24bff6)=>_0x3b6c08+_0x24bff6+'|'+_0x20b541)[_0x2bc898(-0x213,-0x1e5,-_0x43a0dc._0x397e9f,-_0x43a0dc._0x43ec09)]('\x0a');return yield createToolOutput(_0x19a45c,{..._0x497e46,'lineRange':{'lineStart':_0x3b6c08,'lineEnd':_0x2328b6,'linesTotal':_0x134fb4[_0x282f82(_0x43a0dc._0x564bd6,-_0x43a0dc._0x2c3141,_0x43a0dc._0x1ffddd,0x21f)]}}),void 0x0;}function _0x282f82(_0x1a10e4,_0x3dc275,_0x3f2aa2,_0x3ce05b){return _0x2e0bab(_0x1a10e4-_0x4e7ad3._0x2d9e92,_0x3dc275-0x1a6,_0x3ce05b,_0x3ce05b-_0x4e7ad3._0x2789e9);}return yield createToolOutput(_0x37ab45,_0x497e46),void 0x0;}});}import{stat as _0x3b7f46}from'fs/promises';import*as _0x202fb4 from'path';import{execSync,spawn as _0x458ac5}from'child_process';import{existsSync}from'fs';import{stat as _0x1922f5}from'fs/promises';import*as _0x33b500 from'os';import*as _0x583777 from'path';import{rgPath as _0x326e46}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x26e82e={_0x566941:0x255,_0x9954ef:0x26e,_0x4bf768:0x180,_0x1e2786:0x11d,_0x3e4f15:0x30,_0x3c17f6:0x180,_0x1bd313:0x88,_0x182452:0x5a,_0x41b5bc:0x310,_0x1f2309:0x22d,_0x4fa15d:0x451,_0x4e6ff4:0x47d,_0x4a2c2f:0x3a5,_0x3722ef:0x24d,_0x1b7f13:0xf6,_0x9e54e9:0x212,_0x100a69:0x34a,_0x32d0e7:0x310,_0x3a5af0:0x3e4,_0x50994e:0x29d,_0x3b727c:0x3dc,_0x37bcfa:0x318,_0x4eaa94:0x1e3,_0x573d22:0x3fa,_0x4f3295:0x36c,_0x5d2d38:0x22b,_0x264df6:0x474,_0x1279d8:0x58e,_0x2949c4:0x264,_0x451e1d:0x2ac,_0x32529f:0x149,_0x1b2cf9:0x1ae,_0xe0e494:0x199,_0x369de3:0x49e,_0x269b9d:0x37d,_0xe9d9c1:0x4a3,_0x1430e2:0x19b,_0x130163:0x25a,_0x474a5a:0x106,_0x5665b1:0x393,_0x19c901:0x409,_0x407ffd:0x408,_0x4c4f58:0x3ce,_0x5cfcf9:0x385,_0x1eb0cf:0x2ba,_0x26574e:0xbe},_0xdd8cc0={_0x1e0a4a:0x19},_0x5eb060={_0x11b75d:0xf2};function _0x81c965(_0x2dd9be,_0x45a80c,_0x3fe406,_0x929947){return _0x4ebc2e(_0x929947,_0x2dd9be- -0x716,_0x3fe406-0x1ca,_0x929947-_0x5eb060._0x11b75d);}const _0x34dc3f=_0x33b500['platform']()===_0x81c965(-_0x26e82e._0x566941,-_0x26e82e._0x9954ef,-0x1b6,-0x281),_0x5a78b4=_0x34dc3f?[_0x583777['join'](process[_0x81c965(-0x17e,-0x178,-0x238,-_0x26e82e._0x4bf768)][_0x81c965(-_0x26e82e._0x1e2786,0xb,-0x25d,-_0x26e82e._0x3e4f15)]||'',_0x81c965(-_0x26e82e._0x3c17f6,-_0x26e82e._0x1bd313,-0xa5,-_0x26e82e._0x182452),'WinGet','Packages'),_0x583777[_0x81c965(-_0x26e82e._0x41b5bc,-_0x26e82e._0x1f2309,-_0x26e82e._0x4fa15d,-0x1cc)](process[_0xb9753d(0x2d1,_0x26e82e._0x4e6ff4,0x3ac,_0x26e82e._0x4a2c2f)]['ProgramFiles']||'',_0xb9753d(_0x26e82e._0x3722ef,_0x26e82e._0x1b7f13,_0x26e82e._0x9e54e9,_0x26e82e._0x100a69),_0xb9753d(0x283,0x289,0x279,0x148)),_0x583777[_0x81c965(-_0x26e82e._0x32d0e7,-0x1ff,-0x39f,-0x2dc)](process[_0xb9753d(0x327,_0x26e82e._0x3a5af0,0x3ac,0x2ff)][_0x81c965(-_0x26e82e._0x50994e,-0x22c,-0x3a0,-_0x26e82e._0x3b727c)]||'',_0x81c965(-_0x26e82e._0x37bcfa,-_0x26e82e._0x4eaa94,-_0x26e82e._0x573d22,-0x2bc),_0xb9753d(_0x26e82e._0x4f3295,_0x26e82e._0x5d2d38,0x279,0x378))]:[_0xb9753d(0x571,_0x26e82e._0x264df6,0x478,_0x26e82e._0x1279d8),_0x81c965(-_0x26e82e._0x2949c4,-0x18a,-0x2b9,-_0x26e82e._0x451e1d),_0x81c965(-0x1c8,-0x8c,-0x1e2,-_0x26e82e._0x32529f),_0x81c965(-0x217,-_0x26e82e._0x1b2cf9,-0x24e,-_0x26e82e._0xe0e494)];for(const _0x28bf3b of _0x5a78b4){if(existsSync(_0x28bf3b))return _0x28bf3b;}function _0xb9753d(_0x57f1b0,_0x381380,_0x75f398,_0x114cb2){return _0x4ebc2e(_0x57f1b0,_0x75f398- -0x1ec,_0x75f398-_0xdd8cc0._0x1e0a4a,_0x114cb2-0x1a8);}try{const _0x27d7e5=_0x34dc3f?'where\x20rg':_0xb9753d(0x454,_0x26e82e._0x369de3,_0x26e82e._0x269b9d,_0x26e82e._0xe9d9c1),_0x553d7f=execSync(_0x27d7e5,{'encoding':_0x81c965(-_0x26e82e._0x1430e2,-0x10e,-_0x26e82e._0x130163,-_0x26e82e._0x474a5a),'stdio':[_0xb9753d(0x400,0x2ef,_0x26e82e._0x5665b1,0x3e6),'pipe',_0xb9753d(_0x26e82e._0x19c901,0x2ce,_0x26e82e._0x407ffd,0x462)]})[_0xb9753d(0x29b,_0x26e82e._0x4c4f58,_0x26e82e._0x5cfcf9,_0x26e82e._0x1eb0cf)]()[_0x81c965(-_0x26e82e._0x26574e,-0xe7,-0xc0,-0x1df)](/\r?\n/)[0x0];if(_0x553d7f&&existsSync(_0x553d7f))return _0x553d7f;}catch{return null;}return null;}async function filepath(){const _0x2b3339={_0x1f32f3:0x5b,_0x552385:0x7,_0x44bdad:0xda},_0x27edbc={_0x2916ad:0x2d6,_0x23cb84:0x42};if(cachedRgPath)return cachedRgPath;if(_0x326e46&&existsSync(_0x326e46))return cachedRgPath=_0x326e46,_0x326e46;const _0x424467=findSystemRipgrep();function _0x9fa93d(_0x28f119,_0x45f07a,_0x3b841b,_0x592ed7){return _0x1d9020(_0x45f07a,_0x45f07a-0x78,_0x28f119- -_0x27edbc._0x2916ad,_0x592ed7-_0x27edbc._0x23cb84);}if(!_0x424467)throw new Error(_0x9fa93d(-_0x2b3339._0x1f32f3,_0x2b3339._0x552385,-0x43,_0x2b3339._0x44bdad));return cachedRgPath=_0x424467,_0x424467;}async function*files(_0x4b77f9){const _0xde86c9={_0x27bdaa:0x231,_0x5ab366:0x24a,_0x4cabf7:0x2aa,_0xf14bdf:0x2d7,_0xdf9392:0x432,_0x31ca69:0x2c0,_0x550728:0x2e4,_0xb5ca9e:0x397,_0x25ba40:0x388,_0x5e25d8:0x1e7,_0x29ebfd:0x138,_0x5a732d:0x442,_0x4b9891:0x3cf,_0x448fd1:0x399,_0x995d4a:0x39a,_0x3e4f69:0x360,_0x2b3b72:0x217,_0x10ee0e:0x2d2,_0x47496f:0xe7,_0x460e09:0x235,_0x1eb3a0:0x401,_0x2d175e:0x350,_0x273682:0x422,_0x4d3e0e:0x134,_0x4a77a9:0x398,_0x381ed8:0x31a,_0x3965d5:0x3d6,_0x1c344d:0x20c,_0x276df6:0x2e0,_0x349837:0x310,_0x32dfe5:0x204},_0x52efd6={_0x3ae2fc:0x77,_0x48d370:0x9},_0x59e428={_0x21b620:0x152,_0xfa7d94:0x73},_0x2fada5=await filepath();function _0x534dfe(_0x53335d,_0x3b4242,_0x9d3ac8,_0x3c1ac2){return _0x1d9020(_0x3c1ac2,_0x3b4242-_0x59e428._0x21b620,_0x53335d-_0x59e428._0xfa7d94,_0x3c1ac2-_0x59e428._0x21b620);}const _0x2cb609=await _0x1922f5(_0x4b77f9[_0x553e3d(0x374,0x42c,0x26b,0x295)])['catch'](()=>null);function _0x553e3d(_0x5f2c7d,_0x449c75,_0x49ef7c,_0x20206f){return _0x1d9020(_0x20206f,_0x449c75-0x39,_0x5f2c7d-_0x52efd6._0x3ae2fc,_0x20206f-_0x52efd6._0x48d370);}if(!_0x2cb609?.[_0x534dfe(_0xde86c9._0x27bdaa,0x26c,0xeb,_0xde86c9._0x5ab366)]())throw Object[_0x534dfe(0x1bf,0x223,0xd5,0x1a1)](new Error(_0x553e3d(0x31b,0x40d,_0xde86c9._0x4cabf7,0x38a)+_0x4b77f9[_0x534dfe(0x370,_0xde86c9._0xf14bdf,0x329,_0xde86c9._0xdf9392)]+'\x27'),{'code':'ENOENT'});const _0x4737f0=['--files',_0x553e3d(_0xde86c9._0x31ca69,0x22c,_0xde86c9._0x550728,_0xde86c9._0xb5ca9e),'--hidden','--glob=!.git/*'];for(const _0x3c54f2 of _0x4b77f9['glob']??[]){_0x4737f0[_0x553e3d(0x244,0x157,0x2cf,_0xde86c9._0x25ba40)](_0x534dfe(_0xde86c9._0x5e25d8,_0xde86c9._0x29ebfd,0x228,0x216)+_0x3c54f2);}const _0x32dc60=_0x458ac5(_0x2fada5,_0x4737f0,{'cwd':_0x4b77f9[_0x553e3d(0x374,_0xde86c9._0x5a732d,_0xde86c9._0x4b9891,0x2d8)],'stdio':[_0x534dfe(_0xde86c9._0x448fd1,0x27f,0x295,_0xde86c9._0x995d4a),_0x553e3d(0x328,0x2c2,0x2f9,_0xde86c9._0x3e4f69),'pipe']});let _0x2cb0c5='';for await(const _0x1adb51 of _0x32dc60['stdout']??[]){_0x2cb0c5+=_0x1adb51[_0x553e3d(_0xde86c9._0x2b3b72,_0xde86c9._0x10ee0e,_0xde86c9._0x47496f,_0xde86c9._0x460e09)]();const _0x479834=_0x2cb0c5[_0x553e3d(_0xde86c9._0x1eb3a0,0x454,_0xde86c9._0x2d175e,_0xde86c9._0x273682)](/\r?\n/);_0x2cb0c5=_0x479834[_0x553e3d(0x26f,0x257,0x1f0,0x17d)]()??'';for(const _0x8ce745 of _0x479834){if(_0x8ce745[_0x553e3d(0x274,_0xde86c9._0x4d3e0e,_0xde86c9._0x4a77a9,0x152)]>0x0)yield _0x8ce745;}}_0x2cb0c5[_0x553e3d(_0xde86c9._0x381ed8,0x2d3,0x37f,_0xde86c9._0x3965d5)]()[_0x534dfe(0x270,_0xde86c9._0x1c344d,_0xde86c9._0x276df6,0x1b4)]>0x0&&(yield _0x2cb0c5[_0x534dfe(0x316,_0xde86c9._0x349837,_0xde86c9._0x32dfe5,0x2c6)]());}function parseMatchLine(_0x520911,_0x2a23f1){const _0x139975={_0x1528eb:0x6b5,_0x6f4672:0x330,_0x5e5372:0x1dc,_0x343bc9:0x1d7,_0xe833e4:0x4de,_0x17f0ee:0x3df,_0xff27c:0x454,_0x3ae934:0x4e4,_0x3c3c38:0x5d5,_0x130f67:0x46b,_0x3c54a2:0x247,_0x3fc262:0x5e9,_0xfb2609:0x486,_0x121d77:0x3f7,_0x4b73c9:0x353,_0x129d3b:0x23d,_0xc2993f:0x434,_0x10aae1:0x1eb},_0x29ddc1={_0x2ac6d6:0x8f,_0xc0fef8:0x129},_0x80b1ac={_0x91edc7:0xfe,_0x4fb1a4:0x91,_0x50c32c:0x55};function _0x4e6f67(_0x160918,_0x46b1a8,_0x2f048d,_0x1bcbe0){return _0x1d9020(_0x1bcbe0,_0x46b1a8-_0x80b1ac._0x91edc7,_0x46b1a8-_0x80b1ac._0x4fb1a4,_0x1bcbe0-_0x80b1ac._0x50c32c);}if(!_0x520911||_0x520911==='--')return null;const _0x4449e7=_0x520911[_0x5dc04d(0x75b,0x80d,0x6e7,_0x139975._0x1528eb)]('|');if(_0x2a23f1&&_0x4449e7['length']>=0x4&&Number[_0x4e6f67(_0x139975._0x6f4672,0x218,_0x139975._0x5e5372,_0x139975._0x343bc9)](Number['parseInt'](_0x4449e7[0x2]??'',0xa))){const _0x17d708=Number[_0x5dc04d(0x5f4,0x482,_0x139975._0xe833e4,0x529)](_0x4449e7[0x1]??'',0xa);if(!Number[_0x5dc04d(_0x139975._0x17f0ee,_0x139975._0xff27c,_0x139975._0x3ae934,_0x139975._0x3c3c38)](_0x17d708)||!_0x4449e7[0x0])return null;return{'filePath':_0x4449e7[0x0],'lineNum':_0x17d708,'lineText':_0x4449e7[_0x4e6f67(0x46e,0x353,_0x139975._0x130f67,0x2f6)](0x3)['join']('|')};}if(_0x4449e7[_0x4e6f67(0x240,0x28e,_0x139975._0x3c54a2,0x1c3)]>=0x3){const _0x7ef458=Number['parseInt'](_0x4449e7[0x1]??'',0xa);if(!Number[_0x5dc04d(_0x139975._0x3fc262,_0x139975._0xfb2609,0x4e4,0x525)](_0x7ef458)||!_0x4449e7[0x0])return null;return{'filePath':_0x4449e7[0x0],'lineNum':_0x7ef458,'lineText':_0x4449e7[_0x4e6f67(_0x139975._0x121d77,_0x139975._0x4b73c9,_0x139975._0x129d3b,_0x139975._0xc2993f)](0x2)[_0x4e6f67(_0x139975._0x10aae1,0x1c9,0x30e,0x1eb)]('|'),..._0x2a23f1?{'isContext':!![]}:{}};}function _0x5dc04d(_0x2c599c,_0x5c13aa,_0x3be2ea,_0x4dcc5b){return _0x4ebc2e(_0x2c599c,_0x3be2ea-_0x29ddc1._0x2ac6d6,_0x3be2ea-_0x29ddc1._0xc0fef8,_0x4dcc5b-0x115);}return null;}async function search(_0x4c670e){const _0x3daf0a={_0x4ce816:0x3c1,_0x1c96be:0x2d4,_0x3ca6c2:0x3c1,_0x41593e:0x163,_0x5a9cab:0x1d9,_0x10326e:0x21d,_0x3831f0:0x330,_0x737561:0x3bc,_0x4ff0aa:0x297,_0x58cc6d:0x444,_0x188a02:0x4d9,_0x1d1e8d:0x601,_0x486394:0x5af,_0x3d6a26:0x474,_0x51d633:0x4ee,_0x23c301:0x199,_0x2638af:0x127,_0x38b888:0xd2,_0x5122a6:0x150,_0x8c163f:0x418,_0x537603:0x24c,_0x13d42c:0x2aa,_0x18822a:0x271,_0x4096b0:0x2ef,_0x51240f:0x314,_0xa557cc:0x2b8,_0xfa0fbb:0x233,_0x15b07a:0x318,_0x42070e:0x603,_0x3d348b:0x3bb,_0x1e15b7:0x550,_0x45f445:0x206,_0x584a26:0x3f3,_0x1ee4af:0x27d,_0x9e566d:0x2bb,_0x46bfa6:0x374,_0x1760a4:0x3a0,_0x5cce20:0x22c,_0xec72d1:0x31d,_0x4cd8:0x21a},_0x3c2534={_0xb89787:0x37a,_0x157dc0:0x4a9,_0x4eeff2:0x4bb,_0x260580:0x438,_0x85b05c:0x1df,_0xff7dbd:0x27c,_0x3d4f68:0x32d,_0x30fc33:0x27a,_0x43217a:0x36d,_0x5df107:0x4ea,_0x190b4e:0x480,_0x213e14:0x12c,_0x1925c2:0x227,_0x53d8ed:0x4c9,_0x57b10b:0x5de},_0xea7596={_0x48afe2:0x435,_0x2dc02e:0x462,_0x4e17f0:0x29e,_0x3ea685:0x3e2,_0x124116:0x3ba,_0x4f632f:0x2e4},_0x5ab4a3={_0x4c9f0f:0x466,_0x426e55:0x2a4,_0x202305:0x3a3},_0x41136f={_0xedd841:0x279},_0x446d54={_0x168ca4:0x157,_0x1b467c:0x11},_0x301a9c={_0x26e00b:0x26f,_0x28d329:0x61},_0x23c3d0=await filepath();if(_0x4c670e[_0x3ade57(_0x3daf0a._0x4ce816,_0x3daf0a._0x1c96be,0x4a8,0x340)]){const _0x40dc79=await _0x1922f5(_0x4c670e[_0x3ade57(_0x3daf0a._0x3ca6c2,0x41b,0x4ea,0x46b)])[_0x3ade57(0x199,_0x3daf0a._0x41593e,0x13a,0x21a)](()=>null);if(!_0x40dc79?.[_0x3ade57(0x1e2,_0x3daf0a._0x5a9cab,0x303,_0x3daf0a._0x10326e)]())throw Object[_0x446834(0x31f,0x2c3,_0x3daf0a._0x3831f0,_0x3daf0a._0x737561)](new Error(_0x3ade57(0x3a4,0x2b2,_0x3daf0a._0x4ff0aa,_0x3daf0a._0x58cc6d)+_0x4c670e[_0x446834(0x54d,_0x3daf0a._0x188a02,_0x3daf0a._0x1d1e8d,_0x3daf0a._0x486394)]+'\x27'),{'code':_0x446834(0x3dc,0x44e,0x3e9,0x498)});}else{const _0x44828f=await _0x1922f5(_0x4c670e[_0x446834(0x491,_0x3daf0a._0x3d6a26,_0x3daf0a._0x51d633,0x495)])[_0x3ade57(_0x3daf0a._0x23c301,_0x3daf0a._0x2638af,_0x3daf0a._0x38b888,_0x3daf0a._0x5122a6)](()=>null);if(!_0x44828f?.[_0x446834(_0x3daf0a._0x8c163f,0x335,0x1ee,0x29a)]())throw Object[_0x446834(0x1ac,0x2c3,0x3f3,_0x3daf0a._0x537603)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x4c670e['cwd']+'\x27'),{'code':'ENOENT'});}const _0x1ef390=[_0x3ade57(_0x3daf0a._0x13d42c,_0x3daf0a._0x18822a,0x2d2,0x374),_0x3ade57(0x2e4,_0x3daf0a._0x4096b0,_0x3daf0a._0x51240f,0x268),_0x3ade57(_0x3daf0a._0xa557cc,_0x3daf0a._0xfa0fbb,_0x3daf0a._0x15b07a,0x197),'--regexp',_0x4c670e['pattern']];function _0x3ade57(_0x36a116,_0x1c026f,_0x1b9bb5,_0x1ea443){return _0x4ebc2e(_0x1ea443,_0x36a116- -_0x301a9c._0x26e00b,_0x1b9bb5-_0x301a9c._0x28d329,_0x1ea443-0x189);}function _0x446834(_0x46a66b,_0x1caa4a,_0xec75d5,_0x8035fe){return _0x4ebc2e(_0x46a66b,_0x1caa4a- -_0x446d54._0x168ca4,_0xec75d5-_0x446d54._0x1b467c,_0x8035fe-0x1cf);}const _0x38733a=typeof _0x4c670e[_0x446834(0x402,0x4f6,_0x3daf0a._0x42070e,_0x3daf0a._0x3d348b)]==='number'&&_0x4c670e[_0x446834(_0x3daf0a._0x1e15b7,0x4f6,0x546,0x5fc)]>0x0;return _0x38733a&&_0x1ef390[_0x3ade57(0x22c,0x1c6,0x33f,0x2ed)]('-C',String(_0x4c670e['context']),_0x446834(_0x3daf0a._0x45f445,0x2ed,0x228,_0x3daf0a._0x584a26)),_0x4c670e['glob']&&!_0x4c670e[_0x3ade57(_0x3daf0a._0x4ce816,_0x3daf0a._0x1ee4af,0x361,0x3ca)]&&_0x1ef390['push'](_0x3ade57(_0x3daf0a._0x9e566d,_0x3daf0a._0x584a26,_0x3daf0a._0x46bfa6,0x3e2),_0x4c670e[_0x3ade57(_0x3daf0a._0x1760a4,0x350,0x4d3,0x284)]),_0x1ef390[_0x3ade57(_0x3daf0a._0x5cce20,_0x3daf0a._0xec72d1,0x256,_0x3daf0a._0x4cd8)](_0x4c670e['file']??_0x4c670e['cwd']),await new Promise((_0xe09c2b,_0x5714eb)=>{const _0x227c7a={_0x17ade2:0x5d},_0x7d99a9=_0x458ac5(_0x23c3d0,_0x1ef390,{'cwd':_0x4c670e['cwd'],'stdio':[_0x4aeb54(0x254,0x282,0x26a,_0x3c2534._0xb89787),_0x5bdc8a(_0x3c2534._0x157dc0,0x366,_0x3c2534._0x4eeff2,_0x3c2534._0x260580),_0x4aeb54(_0x3c2534._0x85b05c,_0x3c2534._0xff7dbd,0x1d4,0x1b5)]});let _0x71dfb4='',_0x9d1d11='';function _0x4aeb54(_0x5b23dc,_0x274929,_0x2ca454,_0x1f403c){return _0x446834(_0x2ca454,_0x5b23dc- -0x249,_0x2ca454-0x1bf,_0x1f403c-_0x227c7a._0x17ade2);}function _0x5bdc8a(_0xfc331,_0x20899a,_0x464105,_0x535b7c){return _0x3ade57(_0xfc331-0x199,_0x20899a-0xf0,_0x464105-0x146,_0x20899a);}_0x7d99a9[_0x4aeb54(0x12e,0x19c,0xa,0xbe)]?.['on'](_0x5bdc8a(_0x3c2534._0x3d4f68,0x3d5,_0x3c2534._0x30fc33,_0x3c2534._0x43217a),_0x5cc414=>{const _0x3a0798={_0x2877d1:0x22};function _0x23e476(_0x2c07a0,_0x1e09c2,_0xe0247e,_0x210e61){return _0x4aeb54(_0x1e09c2-0x1ab,_0x1e09c2-0x14d,_0xe0247e,_0x210e61-_0x3a0798._0x2877d1);}_0x71dfb4+=_0x5cc414[_0x23e476(0x2c3,_0x41136f._0xedd841,0x1c1,0x1a3)]();}),_0x7d99a9[_0x5bdc8a(_0x3c2534._0x5df107,0x476,0x3ab,_0x3c2534._0x190b4e)]?.['on']('data',_0x17c05c=>{const _0x2749c7={_0x2d372b:0xe2};function _0x401a0c(_0x1b4fc0,_0x30e655,_0x79ee31,_0x4ad856){return _0x4aeb54(_0x79ee31-0x2d5,_0x30e655-0x54,_0x30e655,_0x4ad856-_0x2749c7._0x2d372b);}_0x9d1d11+=_0x17c05c[_0x401a0c(_0x5ab4a3._0x4c9f0f,_0x5ab4a3._0x426e55,_0x5ab4a3._0x202305,0x434)]();}),_0x7d99a9['on'](_0x4aeb54(_0x3c2534._0x213e14,_0x3c2534._0x1925c2,0x5b,0x125),_0x4936fc=>{const _0x5a6ecb={_0x485de2:0x19c},_0x2d23a6={_0x19127a:0x1db,_0x329cdc:0x15c};function _0x3be884(_0x42f24e,_0x2f03e6,_0x2a4ae5,_0x11f190){return _0x4aeb54(_0x2a4ae5-_0x2d23a6._0x19127a,_0x2f03e6-_0x2d23a6._0x329cdc,_0x2f03e6,_0x11f190-0x140);}if(_0x4936fc===0x1&&_0x71dfb4===''){_0xe09c2b([]);return;}if(_0x4936fc!==0x0&&_0x4936fc!==0x1){_0x5714eb(new Error(_0x4dedf3(0x3b9,0x4a9,0x45c,0x366)+_0x9d1d11));return;}function _0x4dedf3(_0x38bf39,_0x519656,_0x17960a,_0x93c722){return _0x4aeb54(_0x519656-0x2b7,_0x519656-0xc0,_0x38bf39,_0x93c722-_0x5a6ecb._0x485de2);}const _0x3aa9c4=_0x4c670e[_0x3be884(0x3af,_0xea7596._0x48afe2,_0xea7596._0x2dc02e,0x501)]??0x64,_0x4c3af1=[];for(const _0x2590d5 of _0x71dfb4['split'](/\r?\n/)){if(_0x4c3af1[_0x4dedf3(_0xea7596._0x4e17f0,_0xea7596._0x3ea685,0x51c,0x3ec)]>=_0x3aa9c4)break;const _0x172d74=parseMatchLine(_0x2590d5,_0x38733a);if(_0x172d74)_0x4c3af1[_0x3be884(_0xea7596._0x124116,0x3b4,0x2d6,_0xea7596._0x4f632f)](_0x172d74);}_0xe09c2b(_0x4c3af1);}),_0x7d99a9['on'](_0x5bdc8a(_0x3c2534._0x53d8ed,0x3b5,0x47d,_0x3c2534._0x57b10b),_0x5714eb);});}function createGlobTool(_0x6824df={}){const _0x5edb4e={_0x39a3a4:0x3e0,_0x24788b:0x353,_0x5bdc20:0x191,_0x968c24:0xd0,_0x5a4c64:0x86,_0x3d867b:0x25,_0xc6a207:0x501,_0x2182d4:0x551,_0x34923a:0x394,_0x5619aa:0x1bb,_0x55c1a8:0x2b8,_0x62e280:0x36a,_0x4bdb4f:0x46c,_0x5e9080:0x4b0,_0x2c6559:0x229,_0x2ca5d8:0x32b,_0x3f1541:0x47a,_0x49b57b:0x3d1,_0x13d954:0x31f,_0x398612:0x3aa,_0x3ea998:0x5b7,_0x3daf7d:0x419},_0x20d547={_0x9f2ad2:0x11a,_0x572767:0x1a4,_0x318483:0x57d,_0x71eed:0x61e,_0x3b67bc:0x6fa,_0xbf48a7:0x5bc,_0x4552a0:0x374,_0x3e798a:0x488,_0x10c446:0x53d,_0x22c0e1:0x524,_0xd044d8:0x50c,_0x1e35c6:0x3f3,_0x55a495:0x631,_0x26851a:0x601,_0xc8ec9b:0x73f,_0x1b6a1d:0x7b1,_0x587426:0x703,_0x1d319b:0x10e,_0x2765a3:0x1d0,_0x1859b0:0x278,_0x1327fd:0x6fa,_0x38921a:0x715,_0x416ed1:0x619,_0x1a2dff:0x58b,_0x48eae0:0x574,_0x57504b:0x580,_0x4de045:0x520,_0x5098e0:0x6a0,_0x896c2a:0x660,_0x31a3f1:0x4b8,_0x5c8a2f:0x54b,_0x56e428:0x58a,_0x103caa:0x4e2,_0x3c8e57:0x43b,_0x23e93f:0x5cb,_0x14670b:0x1d,_0x2720cb:0x132,_0x472476:0x5cd,_0x4c7074:0x543,_0x9a3e76:0x1c3,_0x2b3a0e:0x1f7,_0x5cb54e:0x15a,_0x3b633e:0x74,_0x4671ff:0x0,_0x1591b2:0x67,_0x17266b:0xec,_0x410852:0x51,_0x4c4016:0x41,_0x354dfe:0x532,_0x10e226:0x5b5,_0x4a5a3f:0x62e,_0x400f3d:0xbd,_0x1d3af3:0x74},_0x512ce2={_0x552490:0x3f6,_0x532392:0xc6},_0x7e5b9e={_0x203e7c:0x6ad},_0x38d90e={_0x282aaf:0x26d,_0x4f5b76:0xa3},_0x4c1f0e=_0x202fb4['resolve'](_0x6824df[_0x47ff33(0x488,0x582,_0x5edb4e._0x39a3a4,_0x5edb4e._0x24788b)]??process['cwd']()),_0x5f30d8=(_0x6824df[_0x47ff33(0x5e5,0x590,0x577,0x584)]??[])[_0x381aa9(-0x162,0x43,-0x5f,-_0x5edb4e._0x5bdc20)](_0x140b68=>_0x202fb4[_0x381aa9(-0x148,-0x318,-0x1eb,-0x22e)](_0x140b68));function _0x47ff33(_0x22b268,_0x1f4b7c,_0x3fcd7c,_0x59505d){return _0x1d9020(_0x59505d,_0x1f4b7c-0x16,_0x22b268-_0x38d90e._0x282aaf,_0x59505d-_0x38d90e._0x4f5b76);}const _0xf07c42=_0x6824df[_0x381aa9(-0xf8,-_0x5edb4e._0x968c24,-_0x5edb4e._0x5a4c64,-_0x5edb4e._0x3d867b)]??0x64;function _0x381aa9(_0x693886,_0x1d47e1,_0x2ba8e2,_0x551a28){return _0x4ebc2e(_0x551a28,_0x2ba8e2- -_0x7e5b9e._0x203e7c,_0x2ba8e2-0x9b,_0x551a28-0x15f);}const _0x4e4527=_0x6824df[_0x47ff33(_0x5edb4e._0xc6a207,_0x5edb4e._0x2182d4,0x44a,0x631)]??_0x381aa9(-_0x5edb4e._0x34923a,-_0x5edb4e._0x5619aa,-_0x5edb4e._0x55c1a8,-_0x5edb4e._0x62e280);return defineTool({'name':_0x4e4527,'description':_0x47ff33(0x44f,0x558,_0x5edb4e._0x4bdb4f,0x3ac),'inputSchema':{'type':_0x47ff33(0x56d,_0x5edb4e._0x5e9080,0x4bf,0x540),'properties':{'pattern':{'type':_0x381aa9(-0x36a,-0x1ae,-_0x5edb4e._0x2c6559,-0x2b5)},'path':{'type':_0x47ff33(0x423,_0x5edb4e._0x2ca5d8,0x52c,_0x5edb4e._0x3f1541)},'limit':{'type':_0x47ff33(_0x5edb4e._0x49b57b,0x4c3,_0x5edb4e._0x13d954,_0x5edb4e._0x398612)}},'required':[_0x47ff33(0x54d,0x571,_0x5edb4e._0x3ea998,_0x5edb4e._0x3daf7d)]},async *'execute'(_0x15a13f){const _0x351b9e={_0x521d1e:0xe1,_0x1ffe6a:0x78};if(_0x15a13f['pattern'][_0x616a48(-0x6,_0x20d547._0x9f2ad2,0xc2,_0x20d547._0x572767)]()['length']===0x0)throw new ToolExecutionError(_0x5e9037(_0x20d547._0x318483,0x5d9,_0x20d547._0x71eed,_0x20d547._0x3b67bc),{});const _0xfc6c2b=resolveAllowedPath(_0x4c1f0e,_0x5f30d8,_0x15a13f['path']??'.'),_0xdc87be=await _0x3b7f46(_0xfc6c2b)[_0x5e9037(_0x20d547._0xbf48a7,_0x20d547._0x4552a0,_0x20d547._0x3e798a,0x59d)](()=>null);if(!_0xdc87be?.[_0x5e9037(_0x20d547._0x10c446,_0x20d547._0x22c0e1,_0x20d547._0xd044d8,_0x20d547._0x1e35c6)]())throw new ToolExecutionError(_0x5e9037(0x66a,0x580,_0x20d547._0x55a495,0x5ff)+(_0x15a13f[_0x5e9037(0x7ca,0x61e,0x703,_0x20d547._0x26851a)]??'.'),{'path':_0x15a13f[_0x5e9037(_0x20d547._0xc8ec9b,_0x20d547._0x1b6a1d,_0x20d547._0x587426,0x693)]??'.'});const _0xa81f74=_0x15a13f[_0x616a48(_0x20d547._0x1d319b,_0x20d547._0x2765a3,_0x20d547._0x1859b0,0x165)]??_0xf07c42;function _0x5e9037(_0x2ec810,_0x2cab04,_0x16a42d,_0x5e705b){return _0x47ff33(_0x16a42d-_0x351b9e._0x521d1e,_0x2cab04-0x21,_0x16a42d-_0x351b9e._0x1ffe6a,_0x2ec810);}const _0x393122=Math[_0x5e9037(_0x20d547._0x1327fd,_0x20d547._0x38921a,_0x20d547._0x416ed1,_0x20d547._0x1a2dff)](0x1,Math[_0x5e9037(0x5c7,_0x20d547._0x48eae0,_0x20d547._0x57504b,_0x20d547._0x4de045)](_0xa81f74));function _0x616a48(_0x25ed2e,_0x5558b5,_0x59625a,_0x212972){return _0x47ff33(_0x5558b5- -_0x512ce2._0x552490,_0x5558b5-_0x512ce2._0x532392,_0x59625a-0x15f,_0x59625a);}const _0xd664ef=[];let _0x2f05e4=![];for await(const _0x3172f6 of files({'cwd':_0xfc6c2b,'glob':[_0x15a13f[_0x5e9037(_0x20d547._0x5098e0,0x6f1,0x62e,_0x20d547._0x896c2a)]]})){if(_0xd664ef[_0x5e9037(_0x20d547._0x31a3f1,_0x20d547._0x10c446,_0x20d547._0x5c8a2f,_0x20d547._0x56e428)]>=_0x393122){_0x2f05e4=!![];break;}const _0x2d6081=await _0x3b7f46(_0x202fb4[_0x5e9037(_0x20d547._0x103caa,_0x20d547._0x3c8e57,0x486,_0x20d547._0x23e93f)](_0xfc6c2b,_0x3172f6))['catch'](()=>null);_0xd664ef[_0x616a48(_0x20d547._0x14670b,0x44,_0x20d547._0x2720cb,-0xe6)]({'path':_0x3172f6,'mtime':_0x2d6081?.['mtimeMs']??0x0});}_0xd664ef[_0x5e9037(0x404,_0x20d547._0x472476,_0x20d547._0x4c7074,0x4a3)]((_0x110be9,_0x1ead59)=>_0x1ead59[_0x616a48(-0xb7,0x29,-0xe0,-0x1a)]-_0x110be9[_0x616a48(-0xb8,0x29,0x4e,0x161)]);const _0x163fc5=_0xd664ef[_0x616a48(_0x20d547._0x9a3e76,_0x20d547._0x2b3a0e,0xe5,0x1cb)](_0x1f3c9b=>_0x1f3c9b[_0x616a48(0x1e7,0x22c,0x245,0x2c4)]),_0x32d8c5=_0x163fc5[_0x616a48(_0x20d547._0x5cb54e,_0x20d547._0x3b633e,0xcc,_0x20d547._0x4671ff)]===0x0?'No\x20files\x20found\x20matching\x20pattern:\x20'+_0x15a13f[_0x616a48(_0x20d547._0x1591b2,0x157,0x71,0x252)]:''+_0x163fc5[_0x616a48(_0x20d547._0x17266b,-_0x20d547._0x410852,-0x85,_0x20d547._0x4c4016)]('\x0a')+(_0x2f05e4?_0x5e9037(0x479,_0x20d547._0x354dfe,_0x20d547._0x10e226,0x6ad):'');return yield createToolOutput(_0x32d8c5,{'pattern':_0x15a13f[_0x5e9037(0x61b,0x66e,_0x20d547._0x4a5a3f,0x62d)],'searchPath':_0x202fb4['relative'](_0x4c1f0e,_0xfc6c2b)||'.','matches':_0x163fc5,'count':_0x163fc5[_0x616a48(-_0x20d547._0x400f3d,_0x20d547._0x1d3af3,-0x6e,0x19)],'truncated':_0x2f05e4}),void 0x0;}});}import{stat as _0x4f69a2}from'fs/promises';import*as _0x1439f3 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x2bc1c8={}){const _0x1354eb={_0x345049:0x589,_0x38cc81:0x5a2,_0x55e635:0x669,_0x44fea3:0x607,_0x163637:0x554,_0x6143da:0x3eb,_0xab9180:0x361,_0x2faed9:0x375,_0x573b43:0x563,_0x997199:0x3ff,_0x5ea815:0x319,_0x3d5293:0x663,_0x336b7f:0x25d,_0x11bd1d:0x2c9,_0x3cd5fd:0x47b,_0x5c6b1b:0x412,_0x41ea30:0x367,_0x312f31:0x2d6},_0x1e1451={_0x3d4b98:0x19,_0x2bc4dd:0x5f,_0x5da695:0x11d,_0x2a3f61:0x3aa,_0x395436:0x1e5,_0x9b3a9e:0x1e0,_0x484b37:0x104,_0x267da9:0x15c,_0x447833:0x49c,_0x1f051e:0x48e,_0x2ee7a6:0x464,_0x254eb6:0x4f3,_0x3f8971:0x4b1,_0x4fc4db:0x3b6,_0x1aa17b:0x28c,_0x2de03e:0x471,_0x455fc5:0x3a4,_0x2956f8:0x3ed,_0x2e53ec:0x475,_0x3bf71e:0x17a,_0x4bfdfd:0xc9,_0x26db3a:0x353,_0x3deb05:0x499,_0x249a87:0x350,_0x36598e:0x2b8,_0x406ffa:0xf3,_0xc4720e:0xff,_0x151c1e:0x9,_0x242699:0x3b7,_0x72ba89:0x1fa,_0x33980b:0x44b,_0x164ccc:0x321,_0x6d8ccb:0x2fe,_0x3eceb6:0x3e7,_0x242964:0x4bd,_0x3a7178:0x268,_0x374e5c:0x275,_0x3ff2e1:0x368,_0x18644b:0x33f,_0x84fcde:0x624,_0x1dfe38:0x497,_0xfaf335:0x4e9,_0x420705:0x4fa,_0x326b3d:0x356,_0x3ca5d5:0x367,_0x34596f:0xf8,_0x351d7d:0x29,_0x418ddf:0xfb,_0x4b3b6e:0x222,_0x2bbc9f:0x11d,_0x4ed516:0x3ec,_0x1ed7e0:0x4a,_0x3e4c99:0x328,_0x5099a0:0xaa,_0x5c54dc:0x115,_0x5010b6:0x109,_0x30f28f:0x172,_0x283b38:0x8b,_0x115fdc:0x80,_0x13e2aa:0x35d,_0x591803:0x205,_0x1bb511:0x1ba,_0x27e6a9:0x50,_0x193efc:0x18f,_0x4deb78:0x9c,_0x3acb70:0xf7,_0x9f8240:0x1bb,_0x4266c8:0x36,_0x425783:0x77,_0x5170c4:0x51a,_0x511b4a:0x8,_0x9f18b2:0xfd,_0x464f29:0x3a,_0xf1a6cb:0xa5,_0x10c800:0xdd,_0x440a7a:0x1a9,_0x1d9fee:0x289,_0x3e7d12:0x342,_0x12d080:0x2d3,_0x271ac9:0x316,_0x52d4d1:0x372,_0x584f2b:0x48},_0x5ab3d5={_0x5398c4:0x1e0,_0x5747ad:0x76},_0x5bcc15=_0x1439f3['resolve'](_0x2bc1c8['defaultCwd']??process[_0x1a8bdf(_0x1354eb._0x345049,0x5ab,0x5ce,0x57b)]()),_0x3614ac=(_0x2bc1c8[_0x2dd14d(0x4b9,_0x1354eb._0x38cc81,0x480,0x48b)]??[])[_0x1a8bdf(_0x1354eb._0x55e635,0x62e,0x659,0x581)](_0x264aa4=>_0x1439f3[_0x2dd14d(0x236,0x44e,0x450,0x307)](_0x264aa4)),_0xa74da7=_0x2bc1c8[_0x1a8bdf(0x593,_0x1354eb._0x44fea3,0x60b,_0x1354eb._0x163637)]??0x64;function _0x1a8bdf(_0x4004b0,_0x404e23,_0xe90770,_0x38c6d7){return _0x1d9020(_0x38c6d7,_0x404e23-_0x5ab3d5._0x5398c4,_0x404e23-0x2ae,_0x38c6d7-_0x5ab3d5._0x5747ad);}const _0x31720a=_0x2bc1c8[_0x2dd14d(_0x1354eb._0x6143da,_0x1354eb._0xab9180,_0x1354eb._0x2faed9,0x3a7)]??_0x1a8bdf(0x44f,0x575,0x510,_0x1354eb._0x573b43);function _0x2dd14d(_0x4bd987,_0x46f337,_0x30f92d,_0x392005){return _0x4ebc2e(_0x46f337,_0x392005- -0x1bb,_0x30f92d-0x1b2,_0x392005-0x151);}return defineTool({'name':_0x31720a,'description':_0x1a8bdf(0x354,_0x1354eb._0x997199,_0x1354eb._0x5ea815,0x31c),'inputSchema':{'type':_0x1a8bdf(_0x1354eb._0x3d5293,0x5ae,0x60d,0x5ab),'properties':{'pattern':{'type':_0x2dd14d(0x386,_0x1354eb._0x336b7f,0x350,_0x1354eb._0x11bd1d)},'path':{'type':'string'},'include':{'type':'string'},'limit':{'type':_0x1a8bdf(_0x1354eb._0x3cd5fd,_0x1354eb._0x5c6b1b,0x451,_0x1354eb._0x41ea30)},'context':{'type':_0x2dd14d(_0x1354eb._0x312f31,0x15f,0x359,0x277)}},'required':['pattern']},async *'execute'(_0x927f65){const _0x5f1cf8={_0x3eac92:0xc9},_0x3062b6={_0x3cd273:0x1a7,_0x453a99:0x1bb,_0x126656:0x42d};if(_0x927f65['pattern']['trim']()[_0x6a7dc6(-_0x1e1451._0x3d4b98,-0x1c9,-_0x1e1451._0x2bc4dd,-_0x1e1451._0x5da695)]===0x0)throw new ToolExecutionError(_0xa59479(0x53e,_0x1e1451._0x2a3f61,0x539,0x442),{});const _0x4b62f2=resolveAllowedPath(_0x5bcc15,_0x3614ac,_0x927f65[_0x6a7dc6(-0x9f,-0x28,0x12b,0x9b)]??'.'),_0x5d28e6=await _0x4f69a2(_0x4b62f2)[_0x6a7dc6(-0x246,-0x296,-_0x1e1451._0x395436,-_0x1e1451._0x9b3a9e)](()=>null),_0x728c2c=_0x5d28e6?.['isFile']()??![],_0x1ed8be=_0x5d28e6?.[_0x6a7dc6(-0x24,-0x54,-_0x1e1451._0x484b37,-_0x1e1451._0x267da9)]()??![];if(!_0x728c2c&&!_0x1ed8be)throw new ToolExecutionError(_0xa59479(_0x1e1451._0x447833,0x4ff,0x3ec,_0x1e1451._0x1f051e)+(_0x927f65[_0xa59479(0x463,0x5c3,_0x1e1451._0x2ee7a6,0x527)]??'.'),{'path':_0x927f65['path']??'.'});const _0x3fbbf6=_0x927f65['limit']??_0xa74da7,_0x1223a3=Math[_0xa59479(_0x1e1451._0x254eb6,_0x1e1451._0x3f8971,_0x1e1451._0x4fc4db,0x43d)](0x1,Math[_0xa59479(0x42f,_0x1e1451._0x1aa17b,_0x1e1451._0x2de03e,_0x1e1451._0x455fc5)](_0x3fbbf6)),_0x3061e2=await search({'cwd':_0x1ed8be?_0x4b62f2:_0x1439f3[_0xa59479(0x2c8,_0x1e1451._0x2956f8,_0x1e1451._0x2e53ec,0x395)](_0x4b62f2),'pattern':_0x927f65['pattern'],'glob':_0x1ed8be?_0x927f65[_0x6a7dc6(-_0x1e1451._0x3bf71e,-0x9a,-0x2a8,-0x187)]:void 0x0,'limit':_0x1223a3,'file':_0x728c2c?_0x4b62f2:void 0x0,'context':_0x927f65[_0x6a7dc6(0xe9,0x102,_0x1e1451._0x4bfdfd,0x65)]}),_0x1c3240=new Map();for(const _0x294b43 of _0x3061e2){if(!_0x1c3240[_0xa59479(_0x1e1451._0x26db3a,0x3ae,_0x1e1451._0x3deb05,_0x1e1451._0x249a87)](_0x294b43['filePath'])){const _0xd12897=await _0x4f69a2(_0x294b43[_0x6a7dc6(-0x6a,-0x92,-0x256,-0x16b)])[_0x6a7dc6(-0x246,-_0x1e1451._0x36598e,-_0x1e1451._0x406ffa,-0x1e0)](()=>null);_0x1c3240[_0x6a7dc6(0xc9,-_0x1e1451._0xc4720e,-0xf1,_0x1e1451._0x151c1e)](_0x294b43[_0xa59479(_0x1e1451._0x242699,_0x1e1451._0x72ba89,_0x1e1451._0x33980b,_0x1e1451._0x164ccc)],{'matches':[],'mtime':_0xd12897?.['mtimeMs']??0x0});}_0x1c3240[_0xa59479(0x4d2,_0x1e1451._0x6d8ccb,0x4df,0x3f9)](_0x294b43['filePath'])?.[_0xa59479(0x43c,_0x1e1451._0x3eceb6,_0x1e1451._0x242964,0x376)][_0xa59479(_0x1e1451._0x3a7178,_0x1e1451._0x374e5c,_0x1e1451._0x3ff2e1,_0x1e1451._0x18644b)](_0x294b43);}const _0x5a5037=[..._0x1c3240[_0xa59479(_0x1e1451._0x84fcde,_0x1e1451._0x1dfe38,_0x1e1451._0xfaf335,_0x1e1451._0x420705)]()][_0xa59479(_0x1e1451._0x326b3d,0x496,0x2d0,_0x1e1451._0x3ca5d5)]((_0x31a978,_0x567b38)=>_0x567b38[0x1]['mtime']-_0x31a978[0x1][_0x6a7dc6(-0x267,-0x108,-0xd2,-0x168)]),_0x5ae0ba=_0x3061e2[_0x6a7dc6(0x158,-0x6b,_0x1e1451._0x34596f,_0x1e1451._0x351d7d)](_0x7b0153=>!_0x7b0153[_0x6a7dc6(-0x1da,0x3f,-0x144,-0xac)])[_0x6a7dc6(-0x234,-0xba,-_0x1e1451._0x418ddf,-0x11d)],_0x5e4c67=_0x3061e2[_0x6a7dc6(-0x23e,-0x164,-_0x1e1451._0x4b3b6e,-_0x1e1451._0x2bbc9f)]>=_0x1223a3,_0x166e42=_0x728c2c?_0x1439f3[_0xa59479(0x4d4,_0x1e1451._0x4ed516,0x271,0x395)](_0x4b62f2):_0x4b62f2;function _0x6a7dc6(_0xb97798,_0x1d7ce8,_0x529e2e,_0x7a3ed3){return _0x2dd14d(_0xb97798-_0x3062b6._0x3cd273,_0x529e2e,_0x529e2e-_0x3062b6._0x453a99,_0x7a3ed3- -_0x3062b6._0x126656);}let _0x57c7ab='';if(_0x3061e2[_0x6a7dc6(-0xed,-_0x1e1451._0x1ed7e0,-0x179,-_0x1e1451._0x2bbc9f)]===0x0)_0x57c7ab=_0xa59479(_0x1e1451._0x3e4c99,0x398,0x29b,0x2e1)+_0x927f65[_0xa59479(0x344,0x483,0x571,0x452)];else{_0x57c7ab=_0x6a7dc6(0x118,-_0x1e1451._0x5099a0,-_0x1e1451._0x5c54dc,_0x1e1451._0x3d4b98)+_0x5ae0ba+'\x20match'+(_0x5ae0ba===0x1?'':'es')+'\x0a';for(const [_0x174855,_0x421bf4]of _0x5a5037){const _0xe5339a=_0x728c2c?_0x1439f3[_0x6a7dc6(-0x50,-0x7b,0x20,-_0x1e1451._0x5010b6)](_0x174855):_0x1439f3[_0x6a7dc6(-_0x1e1451._0x30f28f,_0x1e1451._0x283b38,_0x1e1451._0x115fdc,-0xb8)](_0x166e42,_0x174855);_0x57c7ab+='\x0a'+_0xe5339a+':\x0a';for(const _0x204517 of _0x421bf4[_0xa59479(0x37f,_0x1e1451._0x13e2aa,0x2d7,0x376)]){const _0x37bea6=_0x204517[_0x6a7dc6(-0x17a,-0x24a,-0x20b,-0x1ad)]['length']>MAX_LINE_LENGTH?_0x204517[_0xa59479(_0x1e1451._0x591803,_0x1e1451._0x1bb511,0x3b7,0x2df)][_0x6a7dc6(_0x1e1451._0x27e6a9,-_0x1e1451._0x193efc,-_0x1e1451._0x4deb78,-0x58)](0x0,MAX_LINE_LENGTH)+_0x6a7dc6(-_0x1e1451._0x3acb70,-0x20b,-0x2b6,-_0x1e1451._0x9f8240):_0x204517['lineText'],_0x1c4b7=_0x204517['isContext']?'\x20\x20':'>\x20';_0x57c7ab+=_0x1c4b7+'Line\x20'+_0x204517[_0x6a7dc6(-0xcb,_0x1e1451._0x4266c8,_0x1e1451._0x425783,-0x26)]+':\x20'+_0x37bea6+'\x0a';}}_0x5e4c67&&(_0x57c7ab+=_0xa59479(0x476,_0x1e1451._0x5170c4,0x498,0x3d9));}const _0x3a5af7={'searchPath':_0x1439f3[_0x6a7dc6(_0x1e1451._0x511b4a,-0xbe,-0x106,-0xb8)](_0x5bcc15,_0x4b62f2)||'.','pattern':_0x927f65[_0x6a7dc6(-_0x1e1451._0x9f18b2,-0xad,0x6f,-_0x1e1451._0x464f29)],'matchCount':_0x5ae0ba,'fileCount':_0x1c3240['size'],'truncated':_0x5e4c67};function _0xa59479(_0x45abcb,_0xe4b97e,_0x4daaeb,_0x469962){return _0x1a8bdf(_0x45abcb-0x12f,_0x469962- -0x13c,_0x4daaeb-_0x5f1cf8._0x3eac92,_0x45abcb);}return _0x1ed8be&&_0x927f65[_0x6a7dc6(-_0x1e1451._0xf1a6cb,-_0x1e1451._0x10c800,-_0x1e1451._0x440a7a,-0x187)]!==void 0x0&&(_0x3a5af7[_0xa59479(_0x1e1451._0x1d9fee,0x22b,_0x1e1451._0x3e7d12,0x305)]=_0x927f65[_0xa59479(_0x1e1451._0x12d080,_0x1e1451._0x271ac9,_0x1e1451._0x52d4d1,0x305)]),yield createToolOutput(_0x57c7ab[_0x6a7dc6(-0x62,_0x1e1451._0x584f2b,-0x7b,-0x77)](),_0x3a5af7),void 0x0;}});}import{readdir as _0x45f147,readFile as _0x318134,stat as _0xcc0063}from'fs/promises';import*as _0xf66b94 from'path';import*as _0x40edad from'yaml';async function countTextLines(_0x42aff8){const _0x276dc0={_0x7b6964:0x383,_0xcff1f0:0x3af,_0x6922e0:0x4bc,_0x3538d8:0x599,_0x1a1b43:0x57c},_0xaf208b={_0x41eefe:0x14},_0x4f3f48={_0xa88198:0x20f},_0xa40a97=await _0x318134(_0x42aff8)[_0x2f4dff(0x27d,0x3e2,0x349,0x30f)](()=>null);function _0x2f4dff(_0x4d59cb,_0x2f97ed,_0x40c252,_0x49ef68){return _0x1d9020(_0x2f97ed,_0x2f97ed-0x7e,_0x40c252-_0x4f3f48._0xa88198,_0x49ef68-0x133);}if(!_0xa40a97||isProbablyBinary(_0xa40a97))return void 0x0;function _0x547b03(_0x52f74a,_0x58ca5f,_0x4f8959,_0x549459){return _0x1d9020(_0x52f74a,_0x58ca5f-_0xaf208b._0x41eefe,_0x58ca5f- -0x423,_0x549459-0x135);}return _0xa40a97[_0x2f4dff(0x302,_0x276dc0._0x7b6964,_0x276dc0._0xcff1f0,0x431)](_0x2f4dff(0x471,0x541,_0x276dc0._0x6922e0,0x493))[_0x2f4dff(0x6ba,0x6d5,_0x276dc0._0x3538d8,_0x276dc0._0x1a1b43)](/\r?\n/)['length'];}function createLsTool(_0x215dac={}){const _0xe6fbd0={_0x2d4edb:0xfa,_0x5df904:0x476,_0x482fea:0x5ea,_0x5618f9:0x62e,_0x25ebc4:0x5b9,_0x56cc3a:0x542,_0x54ee42:0x59f,_0x4b637f:0x187,_0x2bde4b:0xbb,_0x506f83:0x571,_0x388779:0x5ae,_0x4196ed:0x6d4,_0x140405:0x464,_0x1734ba:0x1cd,_0x38d63a:0x1fb},_0x46171c={_0x1fe092:0x220,_0x2edeb9:0x1a2,_0x2a9b72:0x16d,_0x5df7ea:0x268,_0x43a649:0x163,_0x736389:0xf9,_0x59007:0x3a,_0xedccbb:0x209,_0x4a2b58:0xac,_0x3c9f38:0x218,_0x383285:0x119,_0x16d033:0xa4,_0x10a815:0xa2,_0x24b067:0x1f,_0x323c91:0x37,_0x49188b:0x34,_0x444c24:0x1c6,_0x491057:0x215,_0x14034e:0xdb,_0x584771:0x119,_0x1ec92b:0x148,_0x2fbe0f:0x12e,_0x209af0:0x167,_0x4364e1:0x154,_0x4ff69e:0x73,_0x4b876d:0xba,_0x341b6b:0x1,_0x5393fc:0x93,_0x13dbad:0x175,_0x26df69:0x14c,_0x30f639:0xa4,_0x93b8ab:0x51,_0x54360a:0x178,_0x27cf7c:0x1c6,_0x59ad4c:0x4d,_0x326263:0x10a,_0x1aee10:0x12c,_0x29371d:0x113,_0x5238ff:0x2d,_0x5d95bf:0x41,_0xf8c7e9:0x269,_0x579388:0xd6,_0x58b74a:0x0,_0x581082:0x165,_0x284c38:0x24,_0x24c0a7:0x16,_0x124d90:0xcd,_0x4c2e56:0x56,_0x5a76df:0x18},_0x5cba50={_0x5c6834:0x146},_0x28527a={_0x149f62:0x2ee},_0x129886={_0x56f8e7:0x20},_0x2859bc=_0xf66b94[_0x3fec59(-_0xe6fbd0._0x2d4edb,-0x10b,-0x1fd,-0x1db)](_0x215dac['defaultCwd']??process[_0xeaee83(_0xe6fbd0._0x5df904,0x68b,0x5ab,0x5bf)]());function _0xeaee83(_0x42f6e0,_0x4185f8,_0x366dee,_0x476944){return _0x4ebc2e(_0x4185f8,_0x366dee- -_0x129886._0x56f8e7,_0x366dee-0x7f,_0x476944-0x7c);}function _0x3fec59(_0x4f6b07,_0xd344fa,_0x4ec052,_0x404ea8){return _0x1d9020(_0x404ea8,_0xd344fa-0xb2,_0x4f6b07- -_0x28527a._0x149f62,_0x404ea8-0x36);}const _0x497525=(_0x215dac['allowedDirs']??[])[_0xeaee83(0x566,_0xe6fbd0._0x482fea,_0xe6fbd0._0x5618f9,0x71e)](_0x21c54f=>_0xf66b94[_0x3fec59(-0xfa,-0x12c,-0x156,-0x100)](_0x21c54f)),_0x5ec100=_0x215dac[_0xeaee83(0x459,_0xe6fbd0._0x25ebc4,_0xe6fbd0._0x56cc3a,_0xe6fbd0._0x54ee42)]??'Ls';return defineTool({'name':_0x5ec100,'description':_0x3fec59(-_0xe6fbd0._0x4b637f,-0x125,-_0xe6fbd0._0x2bde4b,-0xc3),'inputSchema':{'type':_0xeaee83(0x5bc,_0xe6fbd0._0x506f83,_0xe6fbd0._0x388779,_0xe6fbd0._0x4196ed),'properties':{'path':{'type':_0xeaee83(0x471,0x3c4,_0xe6fbd0._0x140405,0x4fa)},'limit':{'type':_0x3fec59(-0x18a,-_0xe6fbd0._0x1734ba,-0x142,-_0xe6fbd0._0x38d63a)}}},async *'execute'(_0x3f0d61){const _0x4fa81f={_0x4adf26:0x32},_0x12772e=_0x3f0d61[_0x34e0d0(_0x46171c._0x1fe092,_0x46171c._0x2edeb9,_0x46171c._0x2a9b72,_0x46171c._0x5df7ea)]??'.',_0x43f7d3=resolveAllowedPath(_0x2859bc,_0x497525,_0x12772e),_0x79d1e5=await _0xcc0063(_0x43f7d3)['catch'](()=>null);if(!_0x79d1e5?.[_0xebc220(_0x46171c._0x43a649,_0x46171c._0x736389,_0x46171c._0x59007,0x167)]())throw new ToolExecutionError(_0xebc220(0x27e,0x9f,0x15f,_0x46171c._0xedccbb)+_0x12772e,{'path':_0x12772e});const _0x58bc65=_0x3f0d61[_0x34e0d0(_0x46171c._0x4a2b58,0x146,0x1d5,0xca)]??0x3e8,_0x817797=Math[_0xebc220(0x47,_0x46171c._0x3c9f38,_0x46171c._0x383285,_0x46171c._0x16d033)](Math['max'](Math[_0x34e0d0(-_0x46171c._0x10a815,_0x46171c._0x24b067,_0x46171c._0x323c91,-_0x46171c._0x49188b)](_0x58bc65),0x1),0x2710),_0x3252b9=await _0x45f147(_0x43f7d3),_0x408849=[];for(const _0xa10ed3 of _0x3252b9[_0x34e0d0(0x106,0xaf,0xfc,_0x46171c._0x444c24)](0x0,_0x817797)){const _0xf28920=_0xf66b94[_0x34e0d0(-_0x46171c._0x491057,-_0x46171c._0x14034e,-0x1,-0xbe)](_0x43f7d3,_0xa10ed3),_0xd00ef7=await _0xcc0063(_0xf28920)[_0x34e0d0(-_0x46171c._0x584771,-0xd9,-_0x46171c._0x1ec92b,-_0x46171c._0x2fbe0f)](()=>null);if(!_0xd00ef7)continue;let _0x2f7315=_0xebc220(_0x46171c._0x209af0,_0x46171c._0x4364e1,0x13a,0x254);if(_0xd00ef7[_0xebc220(_0x46171c._0x4ff69e,_0x46171c._0x4b876d,-_0x46171c._0x341b6b,_0x46171c._0x5393fc)]())_0x2f7315=_0xebc220(_0x46171c._0x13dbad,0xb0,0x1de,0xcf);else{if(_0xd00ef7[_0xebc220(-0x2a,_0x46171c._0x26df69,0x3a,_0x46171c._0x30f639)]())_0x2f7315='directory';else{if(_0xd00ef7['isSymbolicLink']())_0x2f7315=_0x34e0d0(_0x46171c._0x93b8ab,_0x46171c._0x54360a,0x24a,_0x46171c._0x27cf7c);}}const _0x569f4b={'name':_0xa10ed3,'type':_0x2f7315,'size':_0xd00ef7[_0x34e0d0(0x158,0xc3,-_0x46171c._0x59ad4c,0x6a)],'mtime':_0xd00ef7[_0xebc220(_0x46171c._0x326263,0xbc,0x184,_0x46171c._0x1aee10)],'mode':_0xd00ef7[_0x34e0d0(-_0x46171c._0x29371d,-_0x46171c._0x5238ff,-0x164,-_0x46171c._0x5d95bf)]},_0x19285d=_0x2f7315===_0x34e0d0(_0x46171c._0xf8c7e9,0x14f,0x285,_0x46171c._0x579388)?await countTextLines(_0xf28920):void 0x0;if(_0x19285d!==void 0x0)_0x569f4b[_0x34e0d0(-0xec,-0xea,_0x46171c._0x58b74a,-_0x46171c._0x581082)]=_0x19285d;_0x408849['push'](_0x569f4b);}_0x408849['sort']((_0x346c06,_0xde9fb6)=>_0x346c06[_0xebc220(-0x3,0xcb,0x110,0x99)][_0xebc220(-0x16b,-0x45,-0x3f,0x91)](_0xde9fb6[_0x34e0d0(0x101,0x81,0x8c,0x131)]));const _0x2bf78e={'path':_0x12772e,'total':_0x408849[_0x34e0d0(_0x46171c._0x284c38,-_0x46171c._0x24c0a7,-0xca,_0x46171c._0x124d90)],'truncated':_0x3252b9['length']>_0x817797,'entries':_0x408849};function _0x34e0d0(_0x2e8fd6,_0x228fb9,_0x1cb18f,_0x5059e9){return _0xeaee83(_0x2e8fd6-_0x5cba50._0x5c6834,_0x2e8fd6,_0x228fb9- -0x4c1,_0x5059e9-0x1cb);}yield createToolOutput(_0x40edad['stringify'](_0x2bf78e,{'indent':0x2,'lineWidth':0x0})[_0xebc220(_0x46171c._0x59ad4c,0xea,_0x46171c._0x4c2e56,-0x80)](),{'path':_0x12772e,'total':_0x408849['length'],'truncated':_0x3252b9[_0x34e0d0(-0x13a,-0x16,0x97,_0x46171c._0x5a76df)]>_0x817797,'limit':_0x817797,'entries':_0x408849});function _0xebc220(_0x1c7774,_0x158495,_0x275267,_0x25605){return _0xeaee83(_0x1c7774-0x10c,_0x158495,_0x275267- -0x432,_0x25605-_0x4fa81f._0x4adf26);}return void 0x0;}});}import{stat as _0x2f2378}from'fs/promises';import _0x13f518 from'path';import{fileURLToPath as _0x3ac644}from'url';function severityName(_0x868977){const _0x4a0a0a={_0x3d776e:0x433,_0x3d7dfc:0x390,_0x57cb16:0x40c,_0x5c209e:0x323,_0x3b21bb:0x49a},_0xb44410={_0x494581:0xad},_0x1a6147={_0x724b8f:0xe6,_0x16a2b2:0xbc,_0x4bb771:0x1cf};function _0x184e4b(_0x4213c2,_0x5d642d,_0x40701d,_0x30f292){return _0x1d9020(_0x4213c2,_0x5d642d-_0x1a6147._0x724b8f,_0x30f292-_0x1a6147._0x16a2b2,_0x30f292-_0x1a6147._0x4bb771);}function _0x3d34b0(_0x8ce258,_0x91b7fa,_0x4fa8db,_0x1de60b){return _0x1d9020(_0x8ce258,_0x91b7fa-_0xb44410._0x494581,_0x91b7fa-0x200,_0x1de60b-0x10);}switch(_0x868977){case 0x1:return _0x184e4b(0x2f6,_0x4a0a0a._0x3d776e,0x2b7,0x348);case 0x2:return _0x3d34b0(0x4cc,0x39c,0x336,0x333);case 0x3:return _0x3d34b0(_0x4a0a0a._0x3d7dfc,_0x4a0a0a._0x57cb16,0x4af,0x451);case 0x4:return'Hint';default:return _0x3d34b0(0x497,0x408,_0x4a0a0a._0x5c209e,_0x4a0a0a._0x3b21bb);}}function formatSingleHover(_0x2b0311){const _0x1b8428={_0xd4828e:0x55f,_0x32ec0e:0x5fd,_0x55f8dc:0x64d,_0x5c93eb:0x516,_0x13cd56:0x244,_0x3e493d:0x141,_0x2942b:0x72,_0x93fb8f:0x91,_0x2b3cf9:0x89,_0x14f5aa:0x63a,_0x674f0d:0x664,_0xfe9c08:0x426,_0x134dac:0x208,_0x3706d8:0xb9,_0x4a90a9:0x487,_0x369fb9:0x468,_0x45d1c8:0x35c,_0x23dfcc:0x108,_0x54d4dc:0x8f,_0xe2ec23:0x1c,_0x48324a:0x6a},_0x45e4fa={_0x2fdd2b:0x2f7},_0x5e315b={_0x46af24:0xe7,_0x4ceeb1:0xe0,_0xece6de:0x49},_0x368daa=_0x2b0311[_0x5b1056(_0x1b8428._0xd4828e,_0x1b8428._0x32ec0e,_0x1b8428._0x55f8dc,_0x1b8428._0x5c93eb)];function _0x5b1056(_0x17ffe4,_0x5079dc,_0x326080,_0x9f3c3e){return _0x4ebc2e(_0x326080,_0x9f3c3e- -_0x5e315b._0x46af24,_0x326080-_0x5e315b._0x4ceeb1,_0x9f3c3e-_0x5e315b._0xece6de);}if(typeof _0x368daa===_0x80a4bb(-_0x1b8428._0x13cd56,-_0x1b8428._0x3e493d,-0x111,-0x105))return _0x368daa;function _0x80a4bb(_0xf181c6,_0x2b2688,_0x3a2b28,_0xadd4a){return _0x1d9020(_0x3a2b28,_0x2b2688-0xf5,_0x2b2688- -_0x45e4fa._0x2fdd2b,_0xadd4a-0x167);}if(Array[_0x80a4bb(_0x1b8428._0x2942b,-_0x1b8428._0x93fb8f,0x86,0x40)](_0x368daa))return _0x368daa[_0x80a4bb(-0x22,_0x1b8428._0x2b3cf9,-0x17,0x199)](_0xeabe3d=>typeof _0xeabe3d==='string'?_0xeabe3d:_0xeabe3d[_0x5b1056(0x604,0x55d,0x634,0x546)])[_0x5b1056(_0x1b8428._0x14f5aa,_0x1b8428._0x674f0d,0x609,0x52a)](Boolean)['join']('\x0a\x0a');if('kind'in _0x368daa)return _0x368daa[_0x5b1056(0x570,_0x1b8428._0xfe9c08,0x44c,0x546)];return _0x368daa[_0x80a4bb(-0x164,-0x182,-0x281,-_0x1b8428._0x134dac)]?_0x80a4bb(0x1c8,_0x1b8428._0x3706d8,0xf7,0x139)+_0x368daa[_0x5b1056(_0x1b8428._0x4a90a9,_0x1b8428._0x369fb9,0x311,_0x1b8428._0x45d1c8)]+'\x0a'+_0x368daa['value']+_0x80a4bb(-0x1e0,-_0x1b8428._0x23dfcc,-0x110,-_0x1b8428._0x54d4dc):_0x368daa[_0x80a4bb(_0x1b8428._0xe2ec23,0x68,0x76,_0x1b8428._0x48324a)];}function formatHover(_0x1b6b9f){const _0xfde262={_0x2356d9:0x10b,_0x4f8e3f:0x15f,_0x20634f:0x16b,_0x660905:0x42},_0x112499={_0x568ee9:0x0},_0x1797f5={_0x3ac515:0x143};function _0x284272(_0x4bfd17,_0xe749c3,_0xe6d56c,_0x5e4a1d){return _0x4ebc2e(_0x4bfd17,_0xe749c3- -0x3cf,_0xe6d56c-0x7d,_0x5e4a1d-_0x1797f5._0x3ac515);}if(_0x1b6b9f[_0x203986(_0xfde262._0x2356d9,-0x8d,0x1b0,0xab)]===0x0)return _0x203986(0x295,_0xfde262._0x4f8e3f,_0xfde262._0x20634f,0x252);function _0x203986(_0x2e4397,_0x1d2ae4,_0x59763e,_0x345a26){return _0x1d9020(_0x59763e,_0x1d2ae4-_0x112499._0x568ee9,_0x345a26- -0x152,_0x345a26-0x1bd);}return _0x1b6b9f['map'](formatSingleHover)[_0x284272(-_0xfde262._0x660905,0x37,-0x10b,0x1e)]('\x0a\x0a---\x0a\x0a');}function locationPath(_0x1fe1f3){const _0x105d2b={_0x3079a0:0x482,_0x5c6dc4:0x43a,_0x3ddba1:0x3a3,_0xcbc5f0:0x493},_0x1e3b20={_0x2d61aa:0x91,_0xa4d78d:0xae},_0x285411={_0x4ee8d3:0xa,_0x5250cb:0x152,_0x53c455:0x130};function _0x586e9f(_0x50a817,_0x2d8bec,_0x39c158,_0x2ee23f){return _0x4ebc2e(_0x2ee23f,_0x39c158- -_0x285411._0x4ee8d3,_0x39c158-_0x285411._0x5250cb,_0x2ee23f-_0x285411._0x53c455);}function _0x242455(_0x5a3df2,_0x28325c,_0x354786,_0xe8628){return _0x1d9020(_0x354786,_0x28325c-_0x1e3b20._0x2d61aa,_0xe8628-0x105,_0xe8628-_0x1e3b20._0xa4d78d);}if(!_0x1fe1f3[_0x242455(0x436,0x378,_0x105d2b._0x3079a0,_0x105d2b._0x5c6dc4)](_0x586e9f(_0x105d2b._0x3ddba1,_0x105d2b._0xcbc5f0,0x430,0x360)))return _0x1fe1f3;return _0x3ac644(_0x1fe1f3);}function formatLocations(_0x3287f2){const _0x340d70={_0x4eaa7d:0x486,_0x3a358e:0x46a,_0x178fc9:0x37a,_0x4b52d4:0xb7,_0xd0893b:0x22,_0xd36dfd:0x5e3,_0x4d2c02:0x4fd},_0x38daee={_0x3ef02d:0x54c,_0x37cafa:0x4c0,_0x42f4bf:0x661,_0xe5bb64:0x6a5,_0x1e5906:0x589},_0xd1091={_0x1decc4:0x4a6,_0x2858ba:0x1b1,_0x9524e4:0x13c},_0x3ca95f={_0xdc6b98:0x1a},_0x1f11df={_0x5ac09b:0x151,_0x354554:0x10a};if(_0x3287f2[_0x19ad52(_0x340d70._0x4eaa7d,0x34f,_0x340d70._0x3a358e,_0x340d70._0x178fc9)]===0x0)return _0x451439(0x91,_0x340d70._0x4b52d4,0x1e8,_0x340d70._0xd0893b);function _0x19ad52(_0x193160,_0x1eeb8c,_0x15c540,_0x2c7642){return _0x4ebc2e(_0x15c540,_0x2c7642- -_0x1f11df._0x5ac09b,_0x15c540-0x6d,_0x2c7642-_0x1f11df._0x354554);}function _0x451439(_0xd930f1,_0x3dc616,_0x6214f,_0x33a488){return _0x4ebc2e(_0xd930f1,_0x3dc616- -0x48b,_0x6214f-_0x3ca95f._0xdc6b98,_0x33a488-0xc3);}return _0x3287f2[_0x19ad52(0x512,0x417,_0x340d70._0xd36dfd,_0x340d70._0x4d2c02)](_0x7e79d1=>{const _0x4e56d1={_0x5e49db:0x4df};function _0x4f1e3f(_0x400c74,_0x2bfb5f,_0x25a3a2,_0x475a49){return _0x451439(_0x25a3a2,_0x2bfb5f-_0x4e56d1._0x5e49db,_0x25a3a2-0x1c8,_0x475a49-0x1d7);}const _0x2d729d=_0x7e79d1[_0x4f1e3f(_0x38daee._0x3ef02d,0x566,0x535,0x4f8)][_0x26fbe2(0x564,0x424,0x499,_0x38daee._0x37cafa)];function _0x26fbe2(_0x37bc65,_0x59ff21,_0x3c9bd0,_0x38b4ee){return _0x451439(_0x38b4ee,_0x59ff21-_0xd1091._0x1decc4,_0x3c9bd0-_0xd1091._0x2858ba,_0x38b4ee-_0xd1091._0x9524e4);}return locationPath(_0x7e79d1['uri'])+':'+(_0x2d729d[_0x26fbe2(0x4e4,0x571,_0x38daee._0x42f4bf,0x676)]+0x1)+':'+(_0x2d729d[_0x26fbe2(_0x38daee._0xe5bb64,_0x38daee._0x1e5906,0x592,0x67a)]+0x1);})['join']('\x0a');}function isDocumentSymbol(_0x370cde){const _0x39a3fb={_0xa72080:0x50b,_0x491f2a:0x3d9,_0x33912e:0x3f9,_0x3c5265:0x2d3},_0xdce929={_0x36864:0xf2,_0x504903:0x1f};function _0x13f4e3(_0x6548ac,_0x461808,_0x2b2dd8,_0x20a01e){return _0x4ebc2e(_0x2b2dd8,_0x461808- -0x298,_0x2b2dd8-_0xdce929._0x36864,_0x20a01e-_0xdce929._0x504903);}return'range'in _0x370cde&&_0x13f4e3(_0x39a3fb._0xa72080,_0x39a3fb._0x491f2a,_0x39a3fb._0x33912e,_0x39a3fb._0x3c5265)in _0x370cde;}function formatSymbols(_0x389ef3){const _0xf78cdd={_0x39864a:0x414,_0x381950:0x390,_0x372a40:0x328,_0xd1e5c6:0x3b4},_0x33bbb1={_0x162876:0x297,_0x344eb7:0x27a,_0x495b4d:0x1d9,_0x58a123:0x226,_0x33fc05:0x15f,_0x5b498a:0x2df,_0x40443:0x3d8,_0xf26ccd:0x1ed,_0x2466a5:0x7,_0x469ccd:0x275,_0x4fe8ba:0x6e,_0x44cb37:0x29,_0x555c7a:0x1e5,_0x14b020:0x295,_0x2202fa:0x539,_0x49e699:0x49b,_0x2af0c0:0x4e6,_0x4f041a:0x4ae,_0x198824:0x4cc,_0x4d79fa:0x541,_0x2fae9f:0x50b,_0x15eeae:0x48a,_0x28978b:0x344,_0x7403fc:0x399,_0x1dc26d:0x1be,_0xbd675d:0x176,_0x3b2e28:0x562,_0x5db119:0x506,_0x428243:0x3dd,_0x13e18b:0x278,_0x2d905c:0x331,_0x8a996a:0x28b,_0x3f8619:0x243,_0x32275c:0x1e0,_0x502957:0x1af,_0x43700f:0x170},_0xad9ebc={_0x567fff:0x1c2};function _0x3501c8(_0x477a11,_0x3c8260,_0x29c593,_0xa821e5){return _0x1d9020(_0x29c593,_0x3c8260-_0xad9ebc._0x567fff,_0xa821e5-0x1d8,_0xa821e5-0x141);}if(_0x389ef3['length']===0x0)return _0x1901d0(_0xf78cdd._0x39864a,_0xf78cdd._0x381950,_0xf78cdd._0x372a40,0x413);function _0x1901d0(_0x4f3b0d,_0x4d166f,_0x292abe,_0xf3b3b1){return _0x4ebc2e(_0x292abe,_0xf3b3b1- -0xfa,_0x292abe-0xad,_0xf3b3b1-0x3c);}return _0x389ef3['map'](_0xa4435d=>{const _0x2c563c={_0x2898f9:0x84};if(isDocumentSymbol(_0xa4435d))return _0xa4435d[_0xd4216e(_0x33bbb1._0x162876,_0x33bbb1._0x344eb7,0x182,0x230)]+'\x20('+_0xa4435d['kind']+_0xd4216e(_0x33bbb1._0x495b4d,_0x33bbb1._0x58a123,_0x33bbb1._0x33fc05,0x1de)+(_0xa4435d[_0x58bf20(0x411,_0x33bbb1._0x5b498a,0x394,0x3d6)]['start'][_0x58bf20(0x4ef,0x2d3,_0x33bbb1._0x40443,0x2e9)]+0x1)+':'+(_0xa4435d[_0xd4216e(_0x33bbb1._0xf26ccd,_0x33bbb1._0x2466a5,0x132,_0x33bbb1._0x469ccd)][_0xd4216e(-_0x33bbb1._0x4fe8ba,0xac,_0x33bbb1._0x44cb37,0x55)][_0xd4216e(0x286,0x2c6,0x18e,0x102)]+0x1)+']';function _0xd4216e(_0x312298,_0x2d5878,_0x4ef943,_0x7b9d1){return _0x1901d0(_0x312298-0xc0,_0x2d5878-0x173,_0x7b9d1,_0x4ef943- -0x2e6);}function _0x58bf20(_0x1c6043,_0x3bd80c,_0x4d130f,_0x2fe707){return _0x1901d0(_0x1c6043-0x1f,_0x3bd80c-0x164,_0x2fe707,_0x4d130f- -_0x2c563c._0x2898f9);}return _0xa4435d[_0xd4216e(_0x33bbb1._0x555c7a,0x269,0x182,_0x33bbb1._0x14b020)]+'\x20('+_0xa4435d[_0x58bf20(0x46e,_0x33bbb1._0x2202fa,0x400,0x3c9)]+')\x20'+locationPath(_0xa4435d[_0x58bf20(_0x33bbb1._0x49e699,_0x33bbb1._0x2af0c0,_0x33bbb1._0x4f041a,_0x33bbb1._0x198824)]['uri'])+':'+(_0xa4435d[_0x58bf20(_0x33bbb1._0x4d79fa,0x4e7,0x4ae,_0x33bbb1._0x2fae9f)][_0x58bf20(0x345,_0x33bbb1._0x15eeae,0x394,_0x33bbb1._0x28978b)][_0x58bf20(0x32e,_0x33bbb1._0x7403fc,0x28b,0x19c)][_0xd4216e(0x10d,_0x33bbb1._0x1dc26d,_0x33bbb1._0xbd675d,0x40)]+0x1)+':'+(_0xa4435d[_0x58bf20(_0x33bbb1._0x3b2e28,_0x33bbb1._0x5db119,0x4ae,_0x33bbb1._0x428243)]['range'][_0x58bf20(_0x33bbb1._0x13e18b,_0x33bbb1._0x2d905c,_0x33bbb1._0x8a996a,_0x33bbb1._0x3f8619)][_0xd4216e(_0x33bbb1._0x32275c,_0x33bbb1._0x502957,0x18e,_0x33bbb1._0x43700f)]+0x1);})[_0x3501c8(0x2af,0x358,_0xf78cdd._0xd1e5c6,0x310)]('\x0a');}function formatDiagnostics(_0x47a93c){const _0x33aead={_0x22aa25:0x36,_0x5cd7e7:0x12a,_0x4b17cf:0x156,_0x111b87:0x219},_0x3a3b3a={_0x10b1e5:0x274,_0x196756:0x4c6,_0x3fdea8:0x5f6,_0x5f4ba2:0x1a3,_0x323864:0x25c,_0x178117:0x290,_0x2a8ebf:0x5bd,_0x253238:0x488},_0x5eee21={_0x4025a7:0xfa},_0x194d1d={_0x18b979:0xf};function _0x3b3e19(_0x3c3992,_0xe1885,_0x2cba69,_0x3dcca1){return _0x1d9020(_0x3c3992,_0xe1885-_0x194d1d._0x18b979,_0x3dcca1- -0x22a,_0x3dcca1-0x0);}function _0x522307(_0x197097,_0x3f589e,_0x1dc542,_0x1cbeec){return _0x4ebc2e(_0x1dc542,_0x197097- -0x3be,_0x1dc542-0x93,_0x1cbeec-_0x5eee21._0x4025a7);}if(_0x47a93c[_0x522307(0x10d,-_0x33aead._0x22aa25,0x124,_0x33aead._0x5cd7e7)]===0x0)return _0x522307(0x284,_0x33aead._0x4b17cf,_0x33aead._0x111b87,0x207);return _0x47a93c[_0x3b3e19(0x13,0xb6,0xf2,_0x33aead._0x4b17cf)](_0x326682=>{const _0x58acd2={_0x4ed331:0x32e,_0x47a347:0x1ca},_0x2964b1=_0x326682[_0x2f27c6(-0x1ff,-0x29a,-0x31f,-0x1f7)][_0x6a299d(0x379,0x38f,_0x3a3b3a._0x10b1e5,0x2b9)];function _0x6a299d(_0x3942c3,_0xe2ce7,_0x1f3910,_0x5d5421){return _0x522307(_0x3942c3-_0x58acd2._0x4ed331,_0xe2ce7-_0x58acd2._0x47a347,_0x5d5421,_0x5d5421-0x66);}function _0x2f27c6(_0x4c82fe,_0x922b1c,_0x27e8c1,_0x5d4a13){return _0x3b3e19(_0x27e8c1,_0x922b1c-0x154,_0x27e8c1-0x70,_0x4c82fe- -0x219);}return severityName(_0x326682['severity'])+'\x20['+(_0x2964b1[_0x6a299d(_0x3a3b3a._0x196756,0x4b7,_0x3a3b3a._0x3fdea8,0x5ca)]+0x1)+':'+(_0x2964b1[_0x2f27c6(-_0x3a3b3a._0x5f4ba2,-0x196,-_0x3a3b3a._0x323864,-_0x3a3b3a._0x178117)]+0x1)+']\x20'+_0x326682[_0x6a299d(0x492,0x3cc,_0x3a3b3a._0x2a8ebf,_0x3a3b3a._0x253238)];})['join']('\x0a');}function formatIncomingCalls(_0x3a5257){const _0x3d6148={_0x279714:0x174,_0x224c42:0x2b,_0x4b7940:0x17e,_0x487ce6:0x22d,_0x4205b0:0x3b7,_0x29f171:0x281,_0x432ed7:0x24d,_0x5e71d4:0x306},_0x28809d={_0x2bb6b7:0x70c,_0x3c7c96:0x7d},_0x22ef5a={_0x4332e4:0x1d2};if(_0x3a5257[_0x146747(-0xc3,0xd,_0x3d6148._0x279714,_0x3d6148._0x224c42)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x146747(_0x3eae6e,_0x26bd32,_0x590355,_0x492232){return _0x1d9020(_0x590355,_0x26bd32-0x164,_0x492232- -_0x22ef5a._0x4332e4,_0x492232-0x1f2);}function _0x33c705(_0xd96828,_0x1bd0d6,_0x5a56e9,_0x3c2cb9){return _0x4ebc2e(_0x5a56e9,_0x3c2cb9- -_0x28809d._0x2bb6b7,_0x5a56e9-0x161,_0x3c2cb9-_0x28809d._0x3c7c96);}return _0x3a5257[_0x146747(_0x3d6148._0x4b7940,0x2db,_0x3d6148._0x487ce6,0x1ae)](_0x4f7358=>_0x4f7358[_0x146747(0x17c,0x24b,0x2f2,0x1bc)][_0x146747(0x179,-0x5d,0x1a,0xc2)])[_0x33c705(-_0x3d6148._0x4205b0,-_0x3d6148._0x29f171,-_0x3d6148._0x432ed7,-_0x3d6148._0x5e71d4)]('\x0a');}function formatOutgoingCalls(_0x226cb8){const _0x355794={_0x54af3d:0xc3,_0x1b8501:0x24d},_0x1949e8={_0xa6491b:0x5c0},_0x4bb27c={_0x2d6903:0x4a2};if(_0x226cb8['length']===0x0)return _0x15059f(-0xba,-0x12b,-_0x355794._0x54af3d,-0xce);function _0xce2231(_0x568091,_0x5a69d2,_0x15aca5,_0x2070d8){return _0x4ebc2e(_0x15aca5,_0x5a69d2- -_0x4bb27c._0x2d6903,_0x15aca5-0x18e,_0x2070d8-0xa8);}function _0x15059f(_0x430f20,_0x11de8b,_0x4c82d9,_0x2cad89){return _0x4ebc2e(_0x430f20,_0x4c82d9- -_0x1949e8._0xa6491b,_0x4c82d9-0xed,_0x2cad89-0x1c2);}return _0x226cb8['map'](_0x21c366=>_0x21c366['to'][_0xce2231(0x209,0xc0,0xfe,-0x3)])[_0x15059f(-0xc5,-_0x355794._0x1b8501,-0x1ba,-0x85)]('\x0a');}function toStructured(_0x325c4d){const _0x1098e0={_0x489e87:0x309,_0x352441:0x1d2},_0x965203={_0x68071a:0x690,_0x5e9015:0x1c6};function _0x24f862(_0x34da0b,_0x388a7c,_0x1ebb9f,_0x1627cd){return _0x4ebc2e(_0x388a7c,_0x1ebb9f- -_0x965203._0x68071a,_0x1ebb9f-0xee,_0x1627cd-_0x965203._0x5e9015);}return JSON['parse'](JSON[_0x24f862(-_0x1098e0._0x489e87,-0xc2,-_0x1098e0._0x352441,-0x287)](_0x325c4d));}async function assertFile(_0x31a587){const _0x43cba7={_0x2a18d6:0x35d,_0x529ca5:0x3c8},_0xf3bdd6={_0x45b1ec:0xb6,_0x598ae2:0xb0},_0xaefad7=await _0x2f2378(_0x31a587);function _0x5c097c(_0x24777f,_0x47879a,_0x426dff,_0x20447c){return _0x1d9020(_0x20447c,_0x47879a-_0xf3bdd6._0x45b1ec,_0x426dff-_0xf3bdd6._0x598ae2,_0x20447c-0x30);}if(!_0xaefad7['isFile']())throw new ToolExecutionError(_0x5c097c(_0x43cba7._0x2a18d6,_0x43cba7._0x529ca5,0x35b,0x3bc)+_0x31a587,{'path':_0x31a587});}function validatePosition(_0x3e1b39,_0x579a19){const _0x5eb4c3={_0x3808a8:0x4c4,_0x11450b:0x2c0,_0x1b0971:0x2cc,_0x70ed00:0x366,_0x4c23cb:0x231,_0x4d45d3:0x1ba},_0x547b5e={_0x12ba95:0x49b,_0x3c3a25:0x108},_0xba3b8f={_0xdaf765:0x10e,_0x471e27:0x193};function _0x25c460(_0x26b3ae,_0x30f30a,_0x3dba38,_0x33983a){return _0x4ebc2e(_0x3dba38,_0x30f30a- -0x256,_0x3dba38-_0xba3b8f._0xdaf765,_0x33983a-_0xba3b8f._0x471e27);}function _0x52bd25(_0x5b6e61,_0x5448e5,_0x58e8c3,_0x493663){return _0x4ebc2e(_0x58e8c3,_0x5b6e61- -_0x547b5e._0x12ba95,_0x58e8c3-_0x547b5e._0x3c3a25,_0x493663-0x12e);}if(!Number[_0x25c460(_0x5eb4c3._0x3808a8,0x3c0,_0x5eb4c3._0x11450b,_0x5eb4c3._0x1b0971)](_0x3e1b39)||_0x3e1b39<0x1)throw new ToolExecutionError(_0x25c460(_0x5eb4c3._0x70ed00,0x2eb,_0x5eb4c3._0x4c23cb,0x3e7),{'line':_0x3e1b39});if(!Number['isInteger'](_0x579a19)||_0x579a19<0x1)throw new ToolExecutionError(_0x52bd25(_0x5eb4c3._0x4d45d3,0x93,0x29b,0x75),{'character':_0x579a19});}function createLspTool(_0xfbbf85={}){const _0x45747e={_0x1889b3:0x43f,_0xf158bd:0x398,_0x580e1e:0x315,_0x13358a:0x15b,_0x30b187:0x11f,_0x2087a7:0x14e,_0x3de933:0x431,_0x4febb5:0x3f6,_0x31b969:0x578,_0x4db9f8:0x3cf,_0x56e1da:0x4cd,_0x727cdd:0x337,_0x52840f:0x347,_0x13799c:0x15d,_0x3ea748:0x32,_0x25d6f8:0x481,_0x53785f:0x3fb,_0x4b9a08:0x9,_0x81a491:0x27,_0x5a4127:0x1e,_0x2d8221:0x79,_0x1f9412:0xd5,_0x2a347e:0x47f,_0xec96d0:0x422,_0xc6c94c:0x102,_0x611fa6:0xbf,_0x5b507f:0x96,_0x18b70a:0x137,_0x46373c:0x2b4,_0x35e28c:0x380,_0x2cac2f:0x2d7,_0x1f5fbe:0x2f8,_0x1320f0:0x420,_0x44af09:0x404,_0x5f238a:0x2f4,_0x1c276e:0x315,_0x24d74f:0x262,_0x8aaaa7:0x3e0,_0x1f9ba2:0x3c1},_0x125b20={_0x15b068:0x1c3,_0x432996:0x27c,_0x23d11a:0x121,_0x381a92:0x49e,_0x3131ac:0x401,_0x27c165:0x340,_0x4e801a:0x382,_0x3fca9a:0x103,_0x8628eb:0x347,_0xbc27b3:0x33,_0x2113c4:0x3,_0x5b11e5:0x134,_0x4a3114:0x63,_0x330ab7:0x2ad,_0x22b18c:0x21c,_0x51386f:0x383,_0x42a12f:0x30f,_0x487261:0x3b4,_0x277039:0x28d,_0x2256ae:0x32c,_0x489178:0x2d,_0xc670cf:0x25,_0x1c2cdf:0xc6,_0x564573:0x83,_0x3db1ff:0x7e,_0x38f085:0x10c,_0xe86433:0xf7,_0x4658ee:0xe3,_0x4a0a19:0xee,_0x37f6bd:0xf7,_0x1c5546:0x100,_0x59790a:0x83,_0x27c188:0x81,_0x192a8c:0x251,_0x2fd24c:0x207,_0x3ffcec:0x19c,_0x3f3b45:0x147,_0x560446:0x229,_0x1e9eee:0x79,_0x40ce6c:0x6e,_0x3fbf3a:0x1af,_0x6e050c:0xa0,_0x5d00a1:0xf1,_0x4746fe:0x1a6,_0x57ebf8:0xbd,_0x56e234:0xd,_0xbde2c2:0x226,_0x57e230:0x237,_0x3cde8e:0xc1,_0x49a0bb:0x4d,_0xba5d47:0xcd,_0x292de6:0x24a,_0x54d5b6:0x27e,_0x2237a7:0x214,_0x103ed6:0x136,_0x18760f:0x26d,_0x221279:0x181,_0x1430aa:0x66,_0x416462:0x128,_0x47953d:0x18e,_0x3999f9:0x103,_0x405404:0x3f5,_0x3d89f4:0x43b,_0x485932:0xcf,_0x321e95:0x1f,_0x4e3bc3:0x1bf,_0xa9f37f:0x69},_0x40718b={_0x3b9965:0x40,_0xbe3fb9:0x13a},_0x5af26f={_0x1b731b:0x1af,_0x336f59:0x161},_0x50c83b={_0x17e7b9:0x1ad,_0x3ea162:0x162},_0x76184e=_0x13f518[_0x472d2f(0x310,_0x45747e._0x1889b3,_0x45747e._0xf158bd,_0x45747e._0x580e1e)](_0xfbbf85['defaultCwd']??process[_0x3f2788(_0x45747e._0x13358a,_0x45747e._0x30b187,_0x45747e._0x2087a7,0x123)]()),_0xea8ea7=(_0xfbbf85[_0x3f2788(0x293,0x12f,0x1c9,0x13b)]??[])[_0x472d2f(0x4cb,_0x45747e._0x3de933,0x4a8,0x4a1)](_0x8073b1=>_0x13f518[_0x3f2788(0x11c,0xdc,0x45,0x146)](_0x8073b1)),_0x8c7cc9=_0xfbbf85['name']??_0x472d2f(_0x45747e._0x4febb5,_0x45747e._0x31b969,_0x45747e._0x4db9f8,_0x45747e._0x56e1da);function _0x472d2f(_0x1dccd3,_0x8c85b0,_0x5be76c,_0x4bef78){return _0x4ebc2e(_0x8c85b0,_0x4bef78- -_0x50c83b._0x17e7b9,_0x5be76c-0x62,_0x4bef78-_0x50c83b._0x3ea162);}function _0x3f2788(_0x818fed,_0x88f01e,_0x16029f,_0xb62902){return _0x1d9020(_0xb62902,_0x88f01e-0x101,_0x16029f- -_0x5af26f._0x1b731b,_0xb62902-_0x5af26f._0x336f59);}return defineTool({'name':_0x8c7cc9,'description':'Query\x20Language\x20Server\x20Protocol\x20code\x20intelligence\x20for\x20workspace\x20files:\x20definitions,\x20references,\x20hover,\x20symbols,\x20call\x20hierarchy,\x20and\x20diagnostics.','inputSchema':{'type':'object','properties':{'operation':{'type':'string','enum':['goToDefinition','findReferences','hover',_0x472d2f(_0x45747e._0x727cdd,0x2bf,0x266,_0x45747e._0x52840f),_0x3f2788(0x161,_0x45747e._0x13799c,0x86,-_0x45747e._0x3ea748),_0x472d2f(_0x45747e._0x25d6f8,0x512,0x537,_0x45747e._0x53785f),_0x3f2788(-_0x45747e._0x4b9a08,-0x10e,-_0x45747e._0x81a491,_0x45747e._0x5a4127),_0x3f2788(0x1d,-0x1c2,-_0x45747e._0x2d8221,-_0x45747e._0x1f9412),_0x472d2f(0x4c3,_0x45747e._0x2a347e,0x3e1,_0x45747e._0xec96d0),_0x3f2788(_0x45747e._0xc6c94c,-_0x45747e._0x611fa6,0x76,0x2c)]},'filePath':{'type':_0x3f2788(_0x45747e._0x5b507f,0x110,0x7,-0x46)},'line':{'type':'number'},'character':{'type':_0x3f2788(-_0x45747e._0x18b70a,-0x112,-0x4b,0xec)},'query':{'type':_0x472d2f(0x34c,_0x45747e._0x46373c,_0x45747e._0x35e28c,_0x45747e._0x2cac2f)}},'required':[_0x472d2f(_0x45747e._0x1f5fbe,_0x45747e._0x1320f0,_0x45747e._0x44af09,_0x45747e._0x5f238a),_0x472d2f(0x397,0x395,_0x45747e._0x1c276e,0x2d0),_0x472d2f(_0x45747e._0x24d74f,0x3b6,0x276,0x3a9),_0x472d2f(0x34c,0x32a,_0x45747e._0x8aaaa7,_0x45747e._0x1f9ba2)]},async *'execute'(_0x586f09){const _0x3817b7={_0x4aaa8b:0x17,_0x334692:0x14d,_0x32da47:0x207},_0x327caf=_0xfbbf85[_0x493042(0x13b,0xf5,0x21f,_0x125b20._0x15b068)];if(!_0x327caf)throw new ToolExecutionError(_0x12d809(0x235,0x361,_0x125b20._0x432996,0x293));if(!_0x327caf[_0x493042(0xb6,0xb9,-0x5f,_0x125b20._0x23d11a)]())throw new ToolExecutionError(_0x12d809(_0x125b20._0x381a92,_0x125b20._0x3131ac,_0x125b20._0x27c165,_0x125b20._0x4e801a));function _0x12d809(_0x1ff4e3,_0x4e6af7,_0x31b3d1,_0x5c8e51){return _0x3f2788(_0x1ff4e3-_0x3817b7._0x4aaa8b,_0x4e6af7-_0x3817b7._0x334692,_0x4e6af7-_0x3817b7._0x32da47,_0x31b3d1);}const _0x40b49e=_0x586f09[_0x12d809(_0x125b20._0x3fca9a,0x22b,_0x125b20._0x8628eb,0x2a1)];validatePosition(_0x586f09['line'],_0x586f09[_0x493042(0x6e,-_0x125b20._0xbc27b3,0x23,0x5b)]);function _0x493042(_0x4ffc55,_0x5dbb9e,_0x2bafab,_0x1199b4){return _0x472d2f(_0x4ffc55-_0x40718b._0x3b9965,_0x5dbb9e,_0x2bafab-_0x40718b._0xbe3fb9,_0x4ffc55- -0x353);}if(_0x40b49e===_0x493042(_0x125b20._0x2113c4,_0x125b20._0x5b11e5,_0x125b20._0x4a3114,0xac)){if(!_0x586f09[_0x12d809(0x35c,0x2b7,_0x125b20._0x330ab7,0x199)]?.[_0x12d809(0x217,0x2fb,_0x125b20._0x22b18c,0x3f6)]())throw new ToolExecutionError(_0x12d809(_0x125b20._0x51386f,_0x125b20._0x42a12f,_0x125b20._0x487261,0x1fc));const _0x4b1519=await _0x327caf[_0x12d809(0x1b6,_0x125b20._0x277039,_0x125b20._0x2256ae,0x1fd)](_0x586f09['query']['trim']());return yield createToolOutput(formatSymbols(_0x4b1519),{'operation':_0x40b49e,'query':_0x586f09[_0x493042(_0x125b20._0x489178,_0x125b20._0xc670cf,0xc8,_0x125b20._0x1c2cdf)],'symbols':_0x4b1519}),void 0x0;}const _0x38e33f=resolveAllowedPath(_0x76184e,_0xea8ea7,_0x586f09[_0x493042(-_0x125b20._0x564573,-_0x125b20._0x3db1ff,-_0x125b20._0x38f085,-0xfe)]);await assertFile(_0x38e33f);if(!await _0x327caf[_0x493042(_0x125b20._0xe86433,0x1f1,_0x125b20._0x4658ee,0x1e1)](_0x38e33f))throw new ToolExecutionError(_0x493042(_0x125b20._0x4a0a19,_0x125b20._0x37f6bd,_0x125b20._0x1c5546,0x22d)+_0x586f09[_0x493042(-_0x125b20._0x59790a,-0x8,-_0x125b20._0x27c188,0x91)],{'filePath':_0x586f09[_0x12d809(_0x125b20._0x192a8c,_0x125b20._0x2fd24c,_0x125b20._0x3ffcec,0x2db)]});await _0x327caf[_0x493042(_0x125b20._0x3f3b45,_0x125b20._0x560446,0x254,_0x125b20._0x1e9eee)](_0x38e33f,!![]);const _0x189ee4={'file':_0x38e33f,'line':_0x586f09['line']-0x1,'character':_0x586f09[_0x493042(_0x125b20._0x40ce6c,_0x125b20._0x3fbf3a,_0x125b20._0x6e050c,_0x125b20._0x38f085)]-0x1};switch(_0x40b49e){case _0x493042(-0xf1,-0x19b,-0x6d,-0x165):{const _0x448748=await _0x327caf[_0x493042(-_0x125b20._0x5d00a1,-_0x125b20._0x4746fe,-_0x125b20._0x57ebf8,-0x23)](_0x189ee4);return yield createToolOutput(formatHover(_0x448748),{'operation':_0x40b49e,'filePath':_0x38e33f,'hover':_0x448748}),void 0x0;}case _0x493042(-_0x125b20._0x56e234,-0x3b,-_0x125b20._0x1c2cdf,0xe2):{const _0x218e5a=await _0x327caf['diagnosticsForFile'](_0x38e33f);return yield createToolOutput(formatDiagnostics(_0x218e5a),{'operation':_0x40b49e,'filePath':_0x38e33f,'diagnostics':_0x218e5a}),void 0x0;}case _0x12d809(0x1d1,_0x125b20._0xbde2c2,_0x125b20._0x57e230,0x1f0):{const _0x5f2c1a=await _0x327caf['definition'](_0x189ee4);return yield createToolOutput(formatLocations(_0x5f2c1a),{'operation':_0x40b49e,'filePath':_0x38e33f,'locations':_0x5f2c1a}),void 0x0;}case'findReferences':{const _0x44295c=await _0x327caf['references'](_0x189ee4);return yield createToolOutput(formatLocations(_0x44295c),{'operation':_0x40b49e,'filePath':_0x38e33f,'locations':_0x44295c}),void 0x0;}case'goToImplementation':{const _0x4f7aec=await _0x327caf[_0x493042(_0x125b20._0x3cde8e,_0x125b20._0x49a0bb,-0x29,_0x125b20._0xba5d47)](_0x189ee4);return yield createToolOutput(formatLocations(_0x4f7aec),{'operation':_0x40b49e,'filePath':_0x38e33f,'locations':_0x4f7aec}),void 0x0;}case _0x12d809(_0x125b20._0x292de6,_0x125b20._0x54d5b6,_0x125b20._0x2237a7,0x1ee):{const _0x5cf93d=await _0x327caf[_0x493042(-0xc,0x10d,-_0x125b20._0x103ed6,0x119)](_0x38e33f);return yield createToolOutput(formatSymbols(_0x5cf93d),{'operation':_0x40b49e,'filePath':_0x38e33f,'symbols':_0x5cf93d}),void 0x0;}case _0x12d809(_0x125b20._0x18760f,0x1e0,0x313,0x167):{const _0x55b71d=await _0x327caf[_0x493042(-0xaa,-_0x125b20._0x221279,-_0x125b20._0x1430aa,-_0x125b20._0x416462)](_0x189ee4);return yield createToolOutput(formatSymbols(_0x55b71d),{'operation':_0x40b49e,'filePath':_0x38e33f,'symbols':toStructured(_0x55b71d)}),void 0x0;}case _0x12d809(0x1f0,_0x125b20._0x47953d,_0x125b20._0x3999f9,0x171):{const _0x3932ed=await _0x327caf['incomingCalls'](_0x189ee4);return yield createToolOutput(formatIncomingCalls(_0x3932ed),{'operation':_0x40b49e,'filePath':_0x38e33f,'calls':toStructured(_0x3932ed)}),void 0x0;}case _0x12d809(0x327,0x359,_0x125b20._0x405404,_0x125b20._0x3d89f4):{const _0x39152d=await _0x327caf[_0x493042(_0x125b20._0x485932,-_0x125b20._0x321e95,_0x125b20._0x4e3bc3,_0x125b20._0xa9f37f)](_0x189ee4);return yield createToolOutput(formatOutgoingCalls(_0x39152d),{'operation':_0x40b49e,'filePath':_0x38e33f,'calls':toStructured(_0x39152d)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x498a54,readFile as _0x5df573,writeFile as _0x4e492f}from'fs/promises';import{join as _0x58b87f}from'path';function sanitizeStorageKey(_0x142dd3){const _0x2e4ff7={_0x47d432:0x356,_0x3108e6:0x304,_0x339364:0x545,_0x5af635:0x38d,_0x31777d:0x577},_0x28cf3c={_0x420308:0x2c1,_0x400cfa:0xa2},_0x5b5502={_0x327931:0x2e,_0x20a36b:0xdd};function _0x1876ee(_0x18f2ac,_0x1b0094,_0x540ed7,_0x163444){return _0x1d9020(_0x163444,_0x1b0094-_0x5b5502._0x327931,_0x18f2ac-_0x5b5502._0x20a36b,_0x163444-0x6b);}function _0x2a57d3(_0x59a461,_0x2ebef6,_0x402b60,_0xfeb251){return _0x4ebc2e(_0x2ebef6,_0x402b60- -_0x28cf3c._0x420308,_0x402b60-0x33,_0xfeb251-_0x28cf3c._0x400cfa);}return _0x142dd3[_0x1876ee(0x42f,_0x2e4ff7._0x47d432,0x4f0,_0x2e4ff7._0x3108e6)](/[^a-zA-Z0-9_]+/g,'_')[_0x1876ee(0x42f,_0x2e4ff7._0x339364,_0x2e4ff7._0x5af635,_0x2e4ff7._0x31777d)](/^_+|_+$/g,'')||'server';}function storagePath(_0x6e1406){const _0x1ceb70={_0x30c04e:0x199,_0x204278:0x86,_0x55d996:0x99,_0x44a4f1:0x462,_0x39d166:0x3f9,_0x4fc644:0x397,_0x497f7e:0x18b,_0x1aca27:0x17f,_0x599fe9:0x18d,_0x11034a:0x602},_0x4c91bb={_0x15522c:0x39,_0x29ffd9:0x189},_0x449095={_0x115c1b:0x553},_0x2c06f8=sanitizeStorageKey(_0x6e1406[_0x17cf8b(-0xa0,-_0x1ceb70._0x30c04e,-_0x1ceb70._0x204278,-_0x1ceb70._0x55d996)][_0x4af776(_0x1ceb70._0x44a4f1,_0x1ceb70._0x39d166,0x3e8,_0x1ceb70._0x4fc644)]?.[_0x17cf8b(-_0x1ceb70._0x497f7e,-_0x1ceb70._0x1aca27,-0x6f,-_0x1ceb70._0x599fe9)]??_0x6e1406['serverName']);function _0x17cf8b(_0x5d2372,_0x4ca483,_0x8c6575,_0x4db118){return _0x4ebc2e(_0x5d2372,_0x8c6575- -_0x449095._0x115c1b,_0x8c6575-0x6,_0x4db118-0x1aa);}function _0x4af776(_0x5e0ee0,_0x190cbe,_0x47ec97,_0x534e82){return _0x4ebc2e(_0x47ec97,_0x5e0ee0-_0x4c91bb._0x15522c,_0x47ec97-_0x4c91bb._0x29ffd9,_0x534e82-0x105);}return _0x58b87f(_0x6e1406['storageDir'],_0x2c06f8+_0x4af776(_0x1ceb70._0x11034a,0x6d3,0x4de,0x4fe));}async function readStore(_0x10a3ea){const _0x2b36a1={_0x20587b:0x12f,_0x46d27b:0x125,_0x22521f:0x88},_0x1a3cb3={_0xaa804f:0x63f,_0xeac042:0x22},_0x5c6acc={_0x36b65b:0x172,_0x5b3b2f:0xa7};function _0x4e664e(_0x3b3790,_0x509a6c,_0x51035f,_0x1d3594){return _0x1d9020(_0x1d3594,_0x509a6c-_0x5c6acc._0x36b65b,_0x51035f- -0x3fc,_0x1d3594-_0x5c6acc._0x5b3b2f);}function _0x146577(_0x25b41d,_0x46cdb9,_0x37997f,_0x96d4d){return _0x4ebc2e(_0x96d4d,_0x46cdb9- -_0x1a3cb3._0xaa804f,_0x37997f-0x90,_0x96d4d-_0x1a3cb3._0xeac042);}try{return JSON['parse'](await _0x5df573(_0x10a3ea,'utf8'));}catch(_0x1ac429){if(_0x1ac429 instanceof Error&&_0x146577(-0x1ad,-0xc2,-0x1ec,-0x100)in _0x1ac429&&_0x1ac429[_0x146577(-0x1cc,-0xc2,0xc,-0x1b6)]===_0x4e664e(-0xe6,-_0x2b36a1._0x20587b,-_0x2b36a1._0x46d27b,-_0x2b36a1._0x22521f))return{};throw _0x1ac429;}}async function writeStore(_0x2818d2,_0x3aa036){const _0x17494f={_0x4c38e0:0x3de},_0x394f77={_0x49fd14:0x1ee};await _0x498a54(_0x58b87f(_0x2818d2,'..'),{'recursive':!![]});function _0x4b6a3d(_0x466717,_0x1553b1,_0x43319c,_0x1d0f7f){return _0x1d9020(_0x466717,_0x1553b1-0xf0,_0x1d0f7f-_0x394f77._0x49fd14,_0x1d0f7f-0x1);}await _0x4e492f(_0x2818d2,JSON[_0x4b6a3d(0x506,0x2ad,0x437,_0x17494f._0x4c38e0)](_0x3aa036,null,0x2),'utf8');}async function updateStore(_0x557e73,_0x334bd7){const _0x5527d2=await readStore(_0x557e73);_0x334bd7(_0x5527d2),await writeStore(_0x557e73,_0x5527d2);}function createMcpOAuthProvider(_0x30e458){const _0x14dccd={_0x439ca7:0x1c0,_0x1dc48a:0x1f0,_0x4205bf:0x1cc,_0x429f97:0xf4,_0x289aa6:0x118,_0x19725c:0x1f2,_0x5c2337:0x11a,_0x1f49d9:0x3b9,_0x145dc5:0x4ff,_0x13a80e:0x60c,_0x5bcdff:0x48f,_0x392273:0x536,_0x5c6125:0x423,_0x156f82:0x374,_0x12f704:0x291,_0x2061f2:0x2fc,_0x2cca21:0x2c4,_0x45bd9e:0x27a},_0x49589d={_0x3ebf56:0xaf,_0x84bb66:0x38},_0x4f967c={_0x189e23:0xea,_0x11845f:0xab,_0xcbc9f4:0x23d},_0x55194f={_0xeb55be:0xbf},_0x24826f={_0x176a8f:0x33,_0x33c7d2:0x8d},_0x51d92c={_0x28318a:0x29b},_0xbef16={_0x5686b1:0x374,_0x29aa8e:0x306},_0x352ce4={_0x2eaac6:0xc5,_0x518b0e:0x166,_0x2442a1:0x42},_0x12fda9={_0x26060e:0x9c,_0x20d5d4:0x2eb},_0x1adc33={_0x1dbfa1:0x9a},_0x5cf0eb={_0x37afcb:0x33},_0x205839={_0x5c9e77:0x121},_0x9c76fd=storagePath(_0x30e458);function _0x594b64(_0x2973d0,_0x505d9c,_0x4da20d,_0x3fb237){return _0x1d9020(_0x2973d0,_0x505d9c-0xee,_0x4da20d- -0x44,_0x3fb237-_0x205839._0x5c9e77);}const _0x40d2d3=_0x30e458['config'][_0x594b64(0xe8,_0x14dccd._0x439ca7,0x117,0x15a)]?.['scopes']?.[_0x594b64(_0x14dccd._0x1dc48a,_0x14dccd._0x4205bf,_0x14dccd._0x429f97,_0x14dccd._0x289aa6)]('\x20'),_0x4c8e64={'client_name':_0x594b64(0x228,0x2e7,_0x14dccd._0x19725c,_0x14dccd._0x5c2337),'redirect_uris':[_0x30e458['callbackUrl']],'grant_types':[_0x550591(0x260,0x308,0x2ce,_0x14dccd._0x1f49d9),_0x550591(0x3c0,_0x14dccd._0x145dc5,_0x14dccd._0x13a80e,0x3c6)],'response_types':[_0x550591(0x527,_0x14dccd._0x5bcdff,_0x14dccd._0x392273,_0x14dccd._0x5c6125)],'token_endpoint_auth_method':_0x550591(0x440,_0x14dccd._0x156f82,0x2dd,_0x14dccd._0x12f704),..._0x40d2d3?{'scope':_0x40d2d3}:{}};function _0x550591(_0xef689,_0x2f930e,_0x298173,_0x56de05){return _0x4ebc2e(_0xef689,_0x2f930e- -0xee,_0x298173-0x1d4,_0x56de05-_0x5cf0eb._0x37afcb);}return{'clientMetadataUrl':_0x30e458[_0x594b64(_0x14dccd._0x2061f2,0x10e,0x1bb,_0x14dccd._0x2cca21)][_0x550591(0x47e,0x33b,0x370,0x224)]?.[_0x594b64(0x3fa,0x214,0x31f,_0x14dccd._0x45bd9e)],get 'redirectUrl'(){function _0x1822d8(_0x1861fa,_0x26dfbb,_0x4e8515,_0x5b07cc){return _0x594b64(_0x5b07cc,_0x26dfbb-0xc4,_0x26dfbb-_0x1adc33._0x1dbfa1,_0x5b07cc-0x174);}return _0x30e458[_0x1822d8(0x24b,0x1a6,_0x12fda9._0x26060e,_0x12fda9._0x20d5d4)];},get 'clientMetadata'(){return _0x4c8e64;},async 'state'(){const _0x54eec3={_0x68b525:0x1f1,_0x2ebad5:0x1d2},_0x491e8f={_0x3419a5:0x1d0},_0x34a077={_0x7600c1:0xcf,_0x23443a:0xb5},_0x3ec742=await readStore(_0x9c76fd);if(_0x3ec742[_0x191f0a(_0x352ce4._0x2eaac6,_0x352ce4._0x518b0e,_0x352ce4._0x2442a1,0x11)])return _0x3ec742['state'];const _0x41a5f3=randomUUID();await updateStore(_0x9c76fd,_0x289fbc=>{function _0x39060d(_0x1fa4f2,_0x1aedfc,_0x5dbc2f,_0x1624b1){return _0x191f0a(_0x1fa4f2-0x13e,_0x1fa4f2,_0x1624b1-_0x34a077._0x7600c1,_0x1624b1-_0x34a077._0x23443a);}_0x289fbc[_0x39060d(0x187,_0x491e8f._0x3419a5,0x1e2,0x111)]=_0x41a5f3;});function _0x191f0a(_0x537c7c,_0x5c1978,_0x515471,_0x458087){return _0x594b64(_0x5c1978,_0x5c1978-_0x54eec3._0x68b525,_0x515471- -_0x54eec3._0x2ebad5,_0x458087-0x9f);}return _0x41a5f3;},async 'clientInformation'(){const _0x356728={_0x262e9f:0xfe,_0x5ec325:0x13f};function _0x1b5933(_0xc1a0c9,_0x5d8e2b,_0x524066,_0x2acdc0){return _0x594b64(_0xc1a0c9,_0x5d8e2b-_0x356728._0x262e9f,_0x2acdc0-_0x356728._0x5ec325,_0x2acdc0-0xa5);}return(await readStore(_0x9c76fd))[_0x1b5933(_0xbef16._0x5686b1,_0xbef16._0x29aa8e,0x369,0x24d)];},async 'saveClientInformation'(_0x4f95b7){await updateStore(_0x9c76fd,_0x4a2f6a=>{_0x4a2f6a['clientInformation']=_0x4f95b7;});},async 'tokens'(){const _0x5ea519={_0x587215:0x76,_0x5ddb22:0x14e};function _0x463875(_0x141bc6,_0x1ce340,_0xbeff69,_0x3b177e){return _0x550591(_0xbeff69,_0x1ce340- -_0x5ea519._0x587215,_0xbeff69-_0x5ea519._0x5ddb22,_0x3b177e-0x8d);}return(await readStore(_0x9c76fd))[_0x463875(0x2ab,0x2ac,0x1a2,0x2f9)];},async 'saveTokens'(_0x4b7f66){await updateStore(_0x9c76fd,_0x1b3ed0=>{function _0x4b517d(_0xc5b2d2,_0x102d06,_0x14c45a,_0x4941f6){return _0x3d42(_0x102d06- -0x372,_0xc5b2d2);}_0x1b3ed0[_0x4b517d(-_0x51d92c._0x28318a,-0x2ba,-0x21e,-0x3ca)]=_0x4b7f66;});},async 'redirectToAuthorization'(_0x49f581){function _0x53c021(_0x235353,_0x1f395c,_0x3bffa9,_0x2c8f40){return _0x550591(_0x235353,_0x2c8f40- -0x451,_0x3bffa9-0x2c,_0x2c8f40-0x1d7);}await _0x30e458[_0x53c021(0x176,_0x24826f._0x176a8f,_0x24826f._0x33c7d2,0x143)](_0x49f581);},async 'saveCodeVerifier'(_0x38ecd1){await updateStore(_0x9c76fd,_0x1a6441=>{_0x1a6441['codeVerifier']=_0x38ecd1;});},async 'codeVerifier'(){const _0x58469b={_0x4df478:0x1ef},_0x68dd41=(await readStore(_0x9c76fd))[_0x44c945(_0x4f967c._0x189e23,_0x4f967c._0x11845f,0x1d3,0x15a)];function _0x697d99(_0x2db065,_0x3a0e29,_0x25736c,_0x4ea9c0){return _0x550591(_0x4ea9c0,_0x3a0e29- -0x64c,_0x25736c-_0x55194f._0xeb55be,_0x4ea9c0-0x108);}if(!_0x68dd41)throw new Error(_0x697d99(-_0x4f967c._0xcbc9f4,-0x1d5,-0x2cc,-0xa1));function _0x44c945(_0x3a9886,_0x44ab54,_0x57e7b6,_0x47bcdb){return _0x594b64(_0x3a9886,_0x44ab54-0x7,_0x44ab54- -_0x58469b._0x4df478,_0x47bcdb-0x7);}return _0x68dd41;},async 'invalidateCredentials'(_0x405502){const _0xcf91b7={_0x28b876:0x234,_0x59c0b3:0x424,_0x472555:0x6b,_0x3e9c90:0x12d,_0x562afe:0x31,_0x651b25:0x2c3,_0x55ffd2:0x17e,_0x54a0fe:0x116,_0x266159:0xb3,_0x4dc656:0x205,_0x2b706f:0x18e,_0xfb4b48:0x1f5,_0x38f052:0x128,_0x5c90ff:0x96,_0x5d5831:0x195,_0x37703f:0xb3,_0x2380b5:0x146},_0x5b33dc={_0x40f769:0xf9};await updateStore(_0x9c76fd,_0x4e8b1f=>{function _0x259cdb(_0x121be2,_0x2ff3c9,_0x576028,_0x27469f){return _0x3d42(_0x27469f- -_0x5b33dc._0x40f769,_0x2ff3c9);}(_0x405502===_0x259cdb(0x104,0x18f,0x359,_0xcf91b7._0x28b876)||_0x405502===_0x3337c2(-_0xcf91b7._0x59c0b3,-0x2ed,-0x20e,-0x30f))&&(_0x4e8b1f[_0x259cdb(-_0xcf91b7._0x472555,-_0xcf91b7._0x3e9c90,0x118,-_0xcf91b7._0x562afe)]=void 0x0);function _0x3337c2(_0x266732,_0x3da3c7,_0x4f0218,_0xd668d){return _0x3d42(_0x3da3c7- -0x3c3,_0x266732);}(_0x405502===_0x259cdb(0x17b,_0xcf91b7._0x651b25,_0xcf91b7._0x55ffd2,0x234)||_0x405502===_0x3337c2(-0x249,-0x30b,-0x3de,-0x3cf))&&(_0x4e8b1f[_0x259cdb(-_0xcf91b7._0x54a0fe,-0xf3,_0xcf91b7._0x266159,-0x41)]=void 0x0),(_0x405502===_0x259cdb(0x316,_0xcf91b7._0x4dc656,_0xcf91b7._0x2b706f,_0xcf91b7._0x28b876)||_0x405502==='verifier')&&(_0x4e8b1f['codeVerifier']=void 0x0,_0x4e8b1f[_0x3337c2(-0x2bc,-_0xcf91b7._0xfb4b48,-_0xcf91b7._0x38f052,-0x335)]=void 0x0),(_0x405502===_0x3337c2(-0x120,-_0xcf91b7._0x5c90ff,-0x1d1,-_0xcf91b7._0x5d5831)||_0x405502==='discovery')&&(_0x4e8b1f[_0x3337c2(-_0xcf91b7._0x37703f,-0xc1,-0x1b5,-_0xcf91b7._0x2380b5)]=void 0x0);});},async 'saveDiscoveryState'(_0xdd2da9){const _0x3ca906={_0x2c55b2:0x34a,_0x2b812c:0x1fb,_0x2e11d2:0x379},_0x46efc1={_0x1e9fd4:0xab};await updateStore(_0x9c76fd,_0x47eb0e=>{function _0x36c9c3(_0x56a426,_0x1040b4,_0x4f745a,_0x4d625a){return _0x3d42(_0x56a426- -_0x46efc1._0x1e9fd4,_0x4f745a);}_0x47eb0e[_0x36c9c3(0x257,_0x3ca906._0x2c55b2,_0x3ca906._0x2b812c,_0x3ca906._0x2e11d2)]=_0xdd2da9;});},async 'discoveryState'(){const _0x3a8b1f={_0xc3fa77:0x534,_0x22e22f:0x6f};function _0x36a749(_0x3bf45c,_0x48dd15,_0x2f8783,_0x55a184){return _0x550591(_0x55a184,_0x2f8783- -_0x3a8b1f._0xc3fa77,_0x2f8783-_0x3a8b1f._0x22e22f,_0x55a184-0x115);}return(await readStore(_0x9c76fd))[_0x36a749(0x106,_0x49589d._0x3ebf56,_0x49589d._0x84bb66,0x14a)];}};}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(_0x5d7e3e,_0x439dff){const _0x2cecbc={_0x614444:0x385,_0x57d04c:0x3c0},_0x3b53f4={_0x39a17b:0x39,_0x4fba96:0x22},_0xad9399={_0x526d53:0x130,_0x416276:0x46};function _0x197ec9(_0x53163d,_0x2f67fa,_0x2a99cd,_0x4116ba){return _0x4ebc2e(_0x53163d,_0x4116ba- -0x43c,_0x2a99cd-_0xad9399._0x526d53,_0x4116ba-_0xad9399._0x416276);}const _0x13b22=_0x3d7939=>_0x3d7939[_0x529013(0x51e,0x6f6,0x552,0x659)](/[^a-zA-Z0-9_]+/g,'_')[_0x197ec9(0x135,0x310,0x1e0,0x1e4)](/^_+|_+$/g,'');function _0x529013(_0x3de6d1,_0x359216,_0x5d3e67,_0x3f9a4e){return _0x4ebc2e(_0x5d3e67,_0x3f9a4e-_0x3b53f4._0x39a17b,_0x5d3e67-_0x3b53f4._0x4fba96,_0x3f9a4e-0xed);}return _0x529013(_0x2cecbc._0x614444,0x342,_0x2cecbc._0x57d04c,0x433)+_0x13b22(_0x5d7e3e)+'_'+_0x13b22(_0x439dff);}function isObject(_0x414b4c){const _0x1ae69f={_0x2abec8:0x114,_0xa70244:0xa9,_0x45697d:0x51},_0x13432f={_0x2ea48c:0xbd,_0x406487:0x1f};function _0x48651b(_0x59320e,_0x109545,_0x5ef8f5,_0x3ef5b8){return _0x1d9020(_0x3ef5b8,_0x109545-_0x13432f._0x2ea48c,_0x5ef8f5- -0x331,_0x3ef5b8-_0x13432f._0x406487);}return typeof _0x414b4c===_0x48651b(_0x1ae69f._0x2abec8,_0x1ae69f._0xa70244,-0x31,_0x1ae69f._0x45697d)&&_0x414b4c!==null&&!Array['isArray'](_0x414b4c);}function toSupportedSchema(_0x4b1426){const _0x510f0f={_0x345738:0x31f,_0x2f4bf7:0x116,_0x1bc9f2:0x4a,_0x8b92fc:0x109,_0x3ab104:0x109,_0x57727b:0x2b,_0x36de0d:0x59,_0x3e2eaf:0x138,_0x177e49:0xa5,_0x17f4c1:0x1b8,_0x8a2e41:0x1e1,_0x8e9904:0x9,_0x5f355e:0x294,_0x5b80e7:0x27c,_0xe83517:0x2ef,_0x3fa869:0x25b,_0x181943:0x23b,_0x2b90b4:0xb1,_0x29bbbd:0x3,_0xbd0301:0x22a,_0x153447:0x1d2,_0x1a46c3:0x247,_0x4ec0b7:0x2a},_0x49d7d0={_0x586d0d:0x518},_0x4e3765={_0x4ae13a:0x129,_0x23c9c6:0x168};if(!isObject(_0x4b1426))return void 0x0;if(_0x4b1426[_0x3f4373(0x294,_0x510f0f._0x345738,0x303,0x37f)]==='string')return{'type':'string'};function _0x3f4373(_0x57792a,_0x3af69a,_0x3f27ca,_0x1e82be){return _0x1d9020(_0x3af69a,_0x3af69a-_0x4e3765._0x4ae13a,_0x57792a- -0xbf,_0x1e82be-_0x4e3765._0x23c9c6);}if(_0x4b1426[_0x22c9a1(_0x510f0f._0x2f4bf7,_0x510f0f._0x1bc9f2,_0x510f0f._0x8b92fc,0x17e)]===_0x22c9a1(-0x1a3,-0x50,-0xe6,-0x142)||_0x4b1426[_0x22c9a1(0x100,0x165,_0x510f0f._0x3ab104,_0x510f0f._0x57727b)]===_0x22c9a1(0x73,_0x510f0f._0x36de0d,_0x510f0f._0x3e2eaf,0x145))return{'type':_0x3f4373(_0x510f0f._0x177e49,_0x510f0f._0x17f4c1,_0x510f0f._0x8a2e41,-_0x510f0f._0x8e9904)};if(_0x4b1426[_0x3f4373(_0x510f0f._0x5f355e,_0x510f0f._0x5b80e7,_0x510f0f._0xe83517,_0x510f0f._0x3fa869)]==='boolean')return{'type':_0x3f4373(_0x510f0f._0x181943,0x19e,0x2b3,0x144)};if(_0x4b1426[_0x22c9a1(_0x510f0f._0x2b90b4,_0x510f0f._0x29bbbd,_0x510f0f._0x3ab104,_0x510f0f._0xbd0301)]==='array')return{'type':'array','items':toSupportedSchema(_0x4b1426[_0x3f4373(0x118,0xb8,0x138,_0x510f0f._0x153447)])??{'type':_0x22c9a1(0xa6,-0xa6,-0x94,-0x87)}};if(_0x4b1426[_0x22c9a1(_0x510f0f._0x1a46c3,0x19c,0x109,-_0x510f0f._0x4ec0b7)]==='object')return toNuvinToolSchema(_0x4b1426);function _0x22c9a1(_0x2ba957,_0xedb476,_0x473886,_0x5daa78){return _0x4ebc2e(_0x2ba957,_0x473886- -_0x49d7d0._0x586d0d,_0x473886-0xb5,_0x5daa78-0x17a);}return void 0x0;}function toNuvinToolSchema(_0x2a5431){const _0x2c7cc3={_0x940764:0x96,_0x30c3e7:0x42,_0x2735c6:0x7f,_0xa71ab0:0x3b6,_0x26ef61:0x461,_0x23ca3b:0x2d8,_0x4e4dfd:0x342,_0x13281f:0xf2,_0x2ecb35:0x5,_0xf74754:0x49c,_0x42df94:0x46c,_0x279156:0x282,_0x185666:0x236,_0x1bc0ce:0x81,_0x426bd0:0x12b,_0x54a65b:0x84},_0x3f6983={_0x3800ac:0xd8,_0x1c8f13:0x281,_0x4b903b:0x77},_0x2894b7={_0x9aecb3:0xc4,_0x11e6b6:0x13a};if(!isObject(_0x2a5431)||_0x2a5431['type']!=='object')return{'type':_0x50f2dc(-_0x2c7cc3._0x940764,_0x2c7cc3._0x30c3e7,0x12c,_0x2c7cc3._0x2735c6),'properties':{}};function _0x5626cb(_0x42e9eb,_0x1214a5,_0x584c19,_0x16c49b){return _0x1d9020(_0x1214a5,_0x1214a5-_0x2894b7._0x9aecb3,_0x42e9eb-_0x2894b7._0x11e6b6,_0x16c49b-0x8d);}const _0x3dd050={},_0x803f92=isObject(_0x2a5431[_0x5626cb(_0x2c7cc3._0xa71ab0,_0x2c7cc3._0x26ef61,_0x2c7cc3._0x23ca3b,_0x2c7cc3._0x4e4dfd)])?_0x2a5431[_0x50f2dc(-0x9c,_0x2c7cc3._0x13281f,0xc7,-_0x2c7cc3._0x2ecb35)]:{};for(const [_0xe0d8ab,_0x36b479]of Object['entries'](_0x803f92)){const _0x1a7721=toSupportedSchema(_0x36b479);if(_0x1a7721)_0x3dd050[_0xe0d8ab]=_0x1a7721;}const _0x4b0226=Array[_0x5626cb(0x3a0,_0x2c7cc3._0xf74754,_0x2c7cc3._0x42df94,_0x2c7cc3._0x279156)](_0x2a5431[_0x50f2dc(-_0x2c7cc3._0x185666,-0xc2,-_0x2c7cc3._0x1bc0ce,-0x12b)])?_0x2a5431[_0x50f2dc(-0xd6,-0x10,-0x251,-_0x2c7cc3._0x426bd0)]['filter'](_0x5298fc=>typeof _0x5298fc===_0x5626cb(0x2f0,0x319,0x1e0,0x332)):void 0x0;function _0x50f2dc(_0x11d6e5,_0x353a93,_0x355388,_0x4f01be){return _0x1d9020(_0x355388,_0x353a93-_0x3f6983._0x3800ac,_0x4f01be- -_0x3f6983._0x1c8f13,_0x4f01be-_0x3f6983._0x4b903b);}return _0x4b0226?.[_0x50f2dc(-0x63,-0x1b9,-0x89,-_0x2c7cc3._0x54a65b)]?{'type':'object','properties':_0x3dd050,'required':_0x4b0226}:{'type':'object','properties':_0x3dd050};}function isJsonObject(_0x5469c8){const _0x51a2eb={_0x13c362:0xd4,_0x587ecd:0x135,_0x47e712:0xa2},_0x495785={_0x324b0c:0xa2,_0x5b0b71:0x25e};function _0x2d75ea(_0x4774be,_0x44eebf,_0x2eae8d,_0x2bb1f9){return _0x1d9020(_0x4774be,_0x44eebf-_0x495785._0x324b0c,_0x2bb1f9- -_0x495785._0x5b0b71,_0x2bb1f9-0xf2);}return typeof _0x5469c8===_0x2d75ea(_0x51a2eb._0x13c362,_0x51a2eb._0x587ecd,0x191,_0x51a2eb._0x47e712)&&_0x5469c8!==null&&!Array['isArray'](_0x5469c8);}function formatMcpContent(_0x27c87){const _0x4ee63e={_0x2d48a9:0x188,_0x2a1dd3:0x1d,_0x5e26f7:0x162,_0x4e7728:0x173,_0x3c096f:0x1b9,_0x3c45d4:0x2d,_0x21f91c:0x173,_0xf80892:0xfd,_0x56e447:0x49,_0x1ebd03:0x4aa,_0xb1426a:0x29f,_0x1436d0:0x3da,_0x555313:0x1ae,_0x362fc4:0x4a3,_0x1fb911:0x47f,_0x47f9b3:0x357,_0x8fe572:0x334,_0x8048f1:0x2fe},_0x28c2c4={_0x146c76:0x35c,_0x585779:0x323,_0x1dfa1d:0x3f4,_0x308acd:0x154,_0x3077ff:0x1a5,_0x262045:0x2b1,_0x3d34f2:0x2bb,_0x4bdbed:0xe9,_0x88a7e0:0x186,_0x2837b4:0x1c0,_0x566986:0xa4},_0xddc9ee={_0x36774a:0x18e,_0x4a30c4:0x1b},_0x396e5d={_0x2c697c:0x167},_0x4f01b6={_0x3cec6c:0xe};function _0xd66d2b(_0x5c6471,_0x3d37d1,_0x36c74f,_0x37b211){return _0x4ebc2e(_0x36c74f,_0x37b211- -0x605,_0x36c74f-0x65,_0x37b211-_0x4f01b6._0x3cec6c);}function _0x572990(_0x3dee37,_0xc0a0bc,_0x4e2608,_0x3b2e31){return _0x4ebc2e(_0x3b2e31,_0xc0a0bc- -_0x396e5d._0x2c697c,_0x4e2608-0x165,_0x3b2e31-0x8e);}const _0x549b40=Array[_0xd66d2b(-_0x4ee63e._0x2d48a9,-0xa,_0x4ee63e._0x2a1dd3,-0xd1)](_0x27c87[_0xd66d2b(-0xc9,-0x4e,-_0x4ee63e._0x5e26f7,-_0x4ee63e._0x4e7728)])?_0x27c87[_0xd66d2b(-_0x4ee63e._0x3c096f,-_0x4ee63e._0x3c45d4,-0x124,-_0x4ee63e._0x21f91c)]:[],_0x140bac=_0x549b40[_0xd66d2b(_0x4ee63e._0xf80892,0x175,0x16b,_0x4ee63e._0x56e447)](_0x19f820=>{const _0xe28e53={_0x1262ff:0xb8};function _0x36bc4d(_0x46b842,_0x330a87,_0xb8a660,_0x4a5745){return _0x572990(_0x46b842-0x2a,_0xb8a660- -0x197,_0xb8a660-_0xe28e53._0x1262ff,_0x330a87);}if(!isObject(_0x19f820))return'';if(_0x19f820[_0x36bc4d(_0x28c2c4._0x146c76,0x2d5,_0x28c2c4._0x585779,_0x28c2c4._0x1dfa1d)]===_0x359bbe(_0x28c2c4._0x308acd,_0x28c2c4._0x3077ff,_0x28c2c4._0x262045,0x169)&&typeof _0x19f820[_0x359bbe(_0x28c2c4._0x3d34f2,0x1a5,0x252,_0x28c2c4._0x4bdbed)]===_0x36bc4d(0x124,0x16f,_0x28c2c4._0x88a7e0,0x153))return _0x19f820['text'];function _0x359bbe(_0x481032,_0x138deb,_0x416592,_0x1510bb){return _0x572990(_0x481032-_0xddc9ee._0x36774a,_0x138deb- -0x32e,_0x416592-_0xddc9ee._0x4a30c4,_0x416592);}return JSON[_0x36bc4d(0x117,0x278,_0x28c2c4._0x2837b4,_0x28c2c4._0x566986)](_0x19f820);})[_0x572990(0x4de,_0x4ee63e._0x1ebd03,0x4a4,0x565)](_0x1b1088=>_0x1b1088[_0xd66d2b(-0xd6,-0x12c,-0x173,-0x13a)]>0x0)[_0x572990(0x290,_0x4ee63e._0xb1426a,_0x4ee63e._0x1436d0,_0x4ee63e._0x555313)]('\x0a');if(_0x140bac[_0x572990(_0x4ee63e._0x362fc4,0x364,0x3e4,0x2e6)]>0x0)return _0x140bac;return JSON[_0x572990(_0x4ee63e._0x1fb911,_0x4ee63e._0x47f9b3,_0x4ee63e._0x8fe572,_0x4ee63e._0x8048f1)](_0x27c87,null,0x2);}function createMcpTool(_0x46b59a){const _0x452095={_0x2e44f8:0x3e5,_0x1dca55:0x78,_0x44121a:0x95,_0x29fc8b:0x16,_0x3017b0:0x116,_0x22c0d5:0x3cf,_0x3c280f:0x47a,_0x4afea6:0x49a,_0x3b1e49:0x467,_0x4ddfab:0x118,_0x431bba:0xe9,_0x32b226:0xda,_0x5cbfa6:0xbe,_0x38419a:0x1,_0x1c0388:0x13b,_0x5a02f5:0x39c,_0x2a90ce:0x298,_0x18dde0:0x458},_0xac23a1={_0x8a1ee5:0x123,_0x3899d3:0x155,_0x483029:0x132,_0x190e9d:0x103,_0x4a9c0d:0x99,_0x54fbbe:0x21,_0x348bb6:0x41,_0x8f3f33:0xc5,_0x250245:0x11,_0x424303:0x81,_0x5c8b85:0xdd,_0x1ba7d1:0x54,_0x5cda7b:0x119,_0x1a51a5:0x3,_0x1b97a4:0xad,_0x368b38:0x132,_0x4ba110:0xe7,_0xfc3a98:0x31,_0x1cab7e:0x9a},_0x1aad19={_0x2f001a:0x132,_0x192da9:0xcf},_0x14e318={_0x21905a:0x55,_0x168383:0x206};function _0x300a09(_0x52481e,_0x17c1c7,_0x2b316d,_0x264871){return _0x1d9020(_0x17c1c7,_0x17c1c7-_0x14e318._0x21905a,_0x52481e-_0x14e318._0x168383,_0x264871-0x3a);}function _0x4f53a0(_0x267c49,_0x9d4a,_0xfe5abb,_0x4e40dc){return _0x1d9020(_0x267c49,_0x9d4a-_0x1aad19._0x2f001a,_0x9d4a- -0x21c,_0x4e40dc-_0x1aad19._0x192da9);}const _0x80e9b9=createMcpToolName(_0x46b59a[_0x300a09(0x41e,0x417,_0x452095._0x2e44f8,0x422)],_0x46b59a['tool'][_0x4f53a0(0xe4,_0x452095._0x1dca55,-0xab,_0x452095._0x44121a)]);return defineTool({'name':_0x80e9b9,'description':_0x46b59a['tool'][_0x4f53a0(-0x13,0x12e,-_0x452095._0x29fc8b,_0x452095._0x3017b0)]??_0x300a09(0x423,_0x452095._0x22c0d5,0x518,_0x452095._0x3c280f)+_0x46b59a['tool'][_0x300a09(_0x452095._0x4afea6,0x44b,_0x452095._0x3b1e49,0x564)]+_0x4f53a0(0xa2,_0x452095._0x4ddfab,_0x452095._0x431bba,_0x452095._0x32b226)+_0x46b59a[_0x4f53a0(-_0x452095._0x5cbfa6,-0x4,_0x452095._0x38419a,-_0x452095._0x1c0388)],'inputSchema':toNuvinToolSchema(_0x46b59a[_0x300a09(_0x452095._0x5a02f5,_0x452095._0x2a90ce,0x43d,0x423)][_0x300a09(_0x452095._0x18dde0,0x45c,0x546,0x4af)]),async *'execute'(_0x3e528d){const _0x1231cb={_0x1b0fda:0x187},_0x24d456=await _0x46b59a['client'][_0x77cce(-_0xac23a1._0x8a1ee5,0x77,-0x4a,0xc1)]({'name':_0x46b59a[_0x77cce(-0x10,-_0xac23a1._0x3899d3,-_0xac23a1._0x483029,-0x52)][_0x11824e(_0xac23a1._0x190e9d,_0xac23a1._0x4a9c0d,_0xac23a1._0x54fbbe,-0x30)],'arguments':isJsonObject(_0x3e528d)?_0x3e528d:{}});function _0x77cce(_0x5e1536,_0x1aa0ff,_0x1cb9b4,_0x5e5b97){return _0x4f53a0(_0x5e1536,_0x1cb9b4- -0xac,_0x1cb9b4-0x1ce,_0x5e5b97-_0x1231cb._0x1b0fda);}if(_0x24d456[_0x11824e(0xce,-_0xac23a1._0x348bb6,_0xac23a1._0x8f3f33,-0x80)])throw new ToolExecutionError(formatMcpContent(_0x24d456),{'serverName':_0x46b59a[_0x77cce(-_0xac23a1._0x250245,_0xac23a1._0x424303,-0xb0,-0x11f)],'toolName':_0x46b59a[_0x11824e(-0x82,-0xcf,-_0xac23a1._0x5c8b85,_0xac23a1._0x1ba7d1)][_0x77cce(-_0xac23a1._0x5cda7b,0x25,-0x34,0xb5)]});function _0x11824e(_0x17a120,_0xeab394,_0x1e7cb8,_0x369413){return _0x300a09(_0x1e7cb8- -0x479,_0x369413,_0x1e7cb8-0x169,_0x369413-0x12b);}return yield createToolOutput(formatMcpContent(_0x24d456),{'serverName':_0x46b59a['serverName'],'toolName':_0x46b59a[_0x77cce(-_0xac23a1._0x1a51a5,-_0xac23a1._0x1b97a4,-_0xac23a1._0x368b38,-_0xac23a1._0x4ba110)][_0x11824e(-_0xac23a1._0xfc3a98,-_0xac23a1._0x1cab7e,_0xac23a1._0x54fbbe,0x11)],'result':_0x24d456}),void 0x0;}});}function resolvePrefix(_0x3ce523,_0x27f824){const _0x4d83f4={_0x159032:0x271,_0x5323fe:0xf1},_0x1b6dce={_0x58738a:0x466,_0x704668:0x77};function _0x38bd4b(_0x57b857,_0x41eab3,_0x31a54a,_0x309874){return _0x4ebc2e(_0x31a54a,_0x41eab3- -_0x1b6dce._0x58738a,_0x31a54a-0x1d1,_0x309874-_0x1b6dce._0x704668);}return _0x27f824[_0x38bd4b(0x1fa,0x1b5,_0x4d83f4._0x159032,_0x4d83f4._0x5323fe)]??_0x3ce523;}function buildMcpHttpHeaders(_0x56f4d8){const _0x5bd72b={_0x44069e:0x435,_0x4af620:0x10,_0x45f7f0:0x10,_0x4ff51a:0x8e,_0x39a9b7:0xa5,_0x39a574:0x3a,_0x21e0ac:0x436,_0xf07a23:0x543,_0x59aad4:0x403,_0x9c7305:0x189,_0x1ead0c:0x5d6,_0x565a33:0x672,_0x40bea8:0x153,_0x4960b5:0x2a,_0x17a3eb:0x179,_0x2cafe7:0x10,_0x2829ee:0x78,_0x19e3c5:0x5,_0x1da67b:0x117,_0x4b937f:0x1a,_0x11f420:0x2b9,_0x40d52c:0x3c4,_0x5bb5ec:0x3dc},_0x1c0163={_0x42a790:0x130,_0x1a9fe8:0x1df},_0x2b966b={_0x58d216:0x4d8,_0x24a628:0x39},_0x33cec7={..._0x56f4d8['headers']??{}};_0x56f4d8[_0x1949dd(0x449,_0x5bd72b._0x44069e,0x308,0x3af)]?.['type']===_0x29867f(0x14c,0x105,-_0x5bd72b._0x4af620,0x2a)&&_0x56f4d8[_0x29867f(_0x5bd72b._0x45f7f0,_0x5bd72b._0x4ff51a,_0x5bd72b._0x39a9b7,-_0x5bd72b._0x39a574)][_0x1949dd(_0x5bd72b._0x21e0ac,0x53b,_0x5bd72b._0xf07a23,_0x5bd72b._0x59aad4)]&&_0x33cec7[_0x29867f(0x15c,0x184,0x1b5,_0x5bd72b._0x9c7305)]===void 0x0&&(_0x33cec7[_0x1949dd(0x533,_0x5bd72b._0x1ead0c,_0x5bd72b._0x565a33,0x572)]=_0x29867f(-_0x5bd72b._0x40bea8,-_0x5bd72b._0x4960b5,-_0x5bd72b._0x17a3eb,-0x69)+_0x56f4d8[_0x29867f(_0x5bd72b._0x2cafe7,_0x5bd72b._0x2829ee,_0x5bd72b._0x19e3c5,-0x3a)][_0x29867f(-_0x5bd72b._0x1da67b,_0x5bd72b._0x39a574,0x2d,_0x5bd72b._0x4b937f)]);function _0x29867f(_0x509419,_0x32b4d9,_0x58f509,_0x301245){return _0x4ebc2e(_0x32b4d9,_0x301245- -_0x2b966b._0x58d216,_0x58f509-_0x2b966b._0x24a628,_0x301245-0x1e0);}function _0x1949dd(_0x2802b9,_0x27b624,_0xdbd829,_0x2c0f78){return _0x1d9020(_0x27b624,_0x27b624-_0x1c0163._0x42a790,_0x2c0f78-_0x1c0163._0x1a9fe8,_0x2c0f78-0x140);}return Object[_0x29867f(0x18a,0x72,0x204,0x13f)](_0x33cec7)[_0x1949dd(_0x5bd72b._0x11f420,0x2ee,_0x5bd72b._0x40d52c,_0x5bd72b._0x5bb5ec)]>0x0?_0x33cec7:void 0x0;}function getErrorMessage(_0x28e2b8){const _0xb64fbc={_0x168914:0xb8};function _0x2eff29(_0x535c64,_0x698011,_0xcbec82,_0x2487af){return _0x1d9020(_0xcbec82,_0x698011-0x151,_0x535c64- -0x2c9,_0x2487af-0x67);}return _0x28e2b8 instanceof Error?_0x28e2b8[_0x2eff29(-0x75,0x39,0x8c,-_0xb64fbc._0x168914)]:String(_0x28e2b8);}function isUnauthorizedError(_0xa8383f){const _0x4fd43b={_0x153774:0x4,_0x580631:0x14a,_0x456018:0x594,_0x55da76:0x131,_0x47c2bb:0x18d},_0x40a30a={_0x2346ce:0x5a0},_0x14c225={_0x1bcfc2:0x1a6,_0x8a93e3:0x300,_0x2b1a1e:0x148};function _0x2278df(_0x1c092d,_0x17df96,_0x3ae2fd,_0x19c9d3){return _0x1d9020(_0x3ae2fd,_0x17df96-_0x14c225._0x1bcfc2,_0x19c9d3-_0x14c225._0x8a93e3,_0x19c9d3-_0x14c225._0x2b1a1e);}function _0x57bb1e(_0xf6d850,_0x308280,_0x483c33,_0x3c187d){return _0x4ebc2e(_0x483c33,_0x308280- -_0x40a30a._0x2346ce,_0x483c33-0x1a6,_0x3c187d-0x1b7);}return _0xa8383f instanceof Error&&_0xa8383f[_0x57bb1e(0xe4,-_0x4fd43b._0x153774,-0x1,-_0x4fd43b._0x580631)][_0x2278df(0x55d,0x6cb,0x47e,_0x4fd43b._0x456018)]===_0x57bb1e(-_0x4fd43b._0x55da76,-0x133,-_0x4fd43b._0x47c2bb,-0x21f);}async function connectMcpServer(_0x4863b8,_0x5da60c,_0x41a78e){const _0x15cc37={_0x2dd41d:0x41c,_0x1a0f73:0x40a,_0x12778b:0x2e,_0x4785e5:0x18,_0x4f6608:0x538,_0x148bb2:0x183,_0x4e043e:0x183,_0x330a0:0x8e,_0x4e0751:0x94,_0x361b74:0x332,_0x3e101a:0x191,_0xceb3e5:0xc6,_0x35228c:0x78,_0x32bd85:0x204,_0x479c95:0x4a,_0x11d1c9:0x286,_0x400a8c:0x1f9,_0x4f0fb9:0x289,_0x32e00:0x28b,_0x1f25a7:0x1e6,_0x4c1d8a:0x180,_0x2792db:0xf7,_0x1d8314:0x1cc,_0x1478a0:0x1a6,_0x450f06:0xc,_0x4e49f3:0x169,_0x176b61:0x2ad,_0x5d8133:0x183,_0x13ef90:0x238,_0x5bbd78:0x148,_0x55a2a3:0x1e,_0x4329ef:0x50,_0x26e641:0x87,_0x1ae8c5:0x25,_0x9ede43:0x11d,_0x26cb96:0x247,_0x286364:0xce,_0x120938:0x36,_0x1a0953:0xab,_0x4ac59f:0x50},_0x59dd28={_0x41eb41:0x2a3,_0x394496:0x333},_0x5069ea={_0x4c5705:0xd1,_0x4296a9:0x200,_0x94d1fb:0x74,_0x40d2fc:0x3fd},_0x2f56d1={_0x9e790:0x286,_0x183d04:0x1e},_0x1b86c1={_0xf34535:0x10c,_0x176b52:0x190},_0x384400={_0x1e1d6d:0xec,_0x451f04:0xb6},_0x4d7c20={_0x4b6421:0x5a9};function _0x2bd0d3(_0x3baec6,_0x37ee6d,_0x37fbda,_0x4a20c6){return _0x4ebc2e(_0x4a20c6,_0x37fbda- -_0x4d7c20._0x4b6421,_0x37fbda-0x3e,_0x4a20c6-0x151);}const _0x15d594=new Client({'name':'nuvin','version':_0x2e97fe(_0x15cc37._0x2dd41d,0x46e,0x52c,_0x15cc37._0x1a0f73)});function _0x2e97fe(_0x3d5872,_0x1eb729,_0x566707,_0x5bfff7){return _0x1d9020(_0x1eb729,_0x1eb729-_0x384400._0x1e1d6d,_0x3d5872-_0x384400._0x451f04,_0x5bfff7-0x7c);}if(_0x5da60c[_0x2bd0d3(-_0x15cc37._0x12778b,-0x52,-_0x15cc37._0x4785e5,-0x10c)]===_0x2e97fe(0x43f,0x33b,0x3c3,_0x15cc37._0x4f6608)||_0x5da60c[_0x2bd0d3(-0x157,-0x1a7,-_0x15cc37._0x148bb2,-0x19a)]){if(!_0x5da60c[_0x2bd0d3(-0x2a3,-0x6c,-_0x15cc37._0x4e043e,-_0x15cc37._0x330a0)])throw new Error('MCP\x20server\x20'+_0x4863b8+_0x2bd0d3(_0x15cc37._0x4e0751,-0x1c9,-0xad,-0x96));if(_0x5da60c[_0x2e97fe(0x286,0x27a,_0x15cc37._0x361b74,0x22e)]?.[_0x2bd0d3(_0x15cc37._0x3e101a,-_0x15cc37._0xceb3e5,_0x15cc37._0x35228c,0xc9)]==='oauth'&&!_0x41a78e?.[_0x2e97fe(0x211,0x287,_0x15cc37._0x32bd85,0x2fe)])throw new Error('MCP\x20server\x20'+_0x4863b8+_0x2bd0d3(-0x57,-0xa5,_0x15cc37._0x479c95,-0xa4));const _0xe817a7=buildMcpHttpHeaders(_0x5da60c),_0x1c3bf2=_0x5da60c[_0x2e97fe(_0x15cc37._0x11d1c9,_0x15cc37._0x400a8c,0x241,_0x15cc37._0x4f0fb9)]?.['type']==='oauth'&&_0x41a78e?.[_0x2bd0d3(-0x2ab,-_0x15cc37._0x32e00,-0x180,-0x240)]?createMcpOAuthProvider({'serverName':_0x4863b8,'callbackUrl':_0x41a78e[_0x2bd0d3(-0x107,-_0x15cc37._0x1f25a7,-_0x15cc37._0x4c1d8a,-0x1a5)][_0x2bd0d3(-0x28f,-0x155,-0x18b,-0x119)],'storageDir':_0x41a78e[_0x2bd0d3(-0x205,-_0x15cc37._0x2792db,-0x180,-_0x15cc37._0x1d8314)]['storageDir'],'config':_0x5da60c[_0x2bd0d3(0x29,-_0x15cc37._0x1478a0,-0x10b,_0x15cc37._0x450f06)],'onRedirect':_0x568901=>_0x41a78e[_0x2bd0d3(-0x83,-0x23e,-0x180,-0x88)]?.[_0x2bd0d3(0xd9,0x166,0xd9,0x103)](_0x4863b8,_0x568901)}):void 0x0,_0x4e95a1=new StreamableHTTPClientTransport(new URL(_0x5da60c[_0x2bd0d3(-_0x15cc37._0x4e49f3,-_0x15cc37._0x176b61,-_0x15cc37._0x5d8133,-_0x15cc37._0x13ef90)]),{'authProvider':_0x1c3bf2,'requestInit':_0xe817a7?{'headers':_0xe817a7}:void 0x0});await _0x15d594[_0x2bd0d3(-_0x15cc37._0x5bbd78,-_0x15cc37._0x55a2a3,-_0x15cc37._0x4329ef,_0x15cc37._0x26e641)](_0x4e95a1);}else{if(!_0x5da60c['command'])throw new Error(_0x2bd0d3(-0x119,0xbb,-_0x15cc37._0x1ae8c5,-_0x15cc37._0x9ede43)+_0x4863b8+_0x2e97fe(0x1ff,0xd0,0x255,_0x15cc37._0x26cb96));const _0x2f5b3d=new StdioClientTransport({'command':_0x5da60c[_0x2bd0d3(_0x15cc37._0x286364,-0xb0,-_0x15cc37._0x120938,-0x17e)],'args':_0x5da60c['args']??[],'env':_0x5da60c['env']});await _0x15d594[_0x2bd0d3(-0x126,_0x15cc37._0x1a0953,-_0x15cc37._0x4ac59f,-0x5a)](_0x2f5b3d);}return{async 'listTools'(){const _0x2eb11b={_0x30b0a1:0x1c6};function _0x1a0f6d(_0x1f0e60,_0x4fa4c8,_0x59431a,_0x59ce25){return _0x2e97fe(_0x59431a- -_0x2eb11b._0x30b0a1,_0x4fa4c8,_0x59431a-0x132,_0x59ce25-0x16c);}return await _0x15d594[_0x1a0f6d(0xee,_0x1b86c1._0xf34535,0x13d,_0x1b86c1._0x176b52)]();},async 'callTool'(_0x138d89){const _0x57db2d={_0x2f8dac:0x1c3,_0x46805e:0x427};function _0x3bc1b8(_0x38e73c,_0x4012c4,_0x3ea4e0,_0x4d887b){return _0x2bd0d3(_0x38e73c-_0x57db2d._0x2f8dac,_0x4012c4-0x90,_0x4012c4-_0x57db2d._0x46805e,_0x38e73c);}function _0x2fa509(_0x470b8d,_0x20dd65,_0x4d54d5,_0x324e19){return _0x2e97fe(_0x470b8d- -_0x2f56d1._0x9e790,_0x4d54d5,_0x4d54d5-_0x2f56d1._0x183d04,_0x324e19-0x175);}return await _0x15d594[_0x2fa509(_0x5069ea._0x4c5705,-0x74,_0x5069ea._0x4296a9,_0x5069ea._0x94d1fb)]({'method':_0x3bc1b8(0x4ae,0x3c9,0x3ed,_0x5069ea._0x40d2fc),'params':_0x138d89},CallToolResultSchema);},async 'close'(){function _0x973577(_0xca09ef,_0x320f0f,_0x4dec34,_0x2bad06){return _0x2e97fe(_0x4dec34- -0x4ed,_0x2bad06,_0x4dec34-0xc3,_0x2bad06-0xc5);}await _0x15d594[_0x973577(-0x2b9,-_0x59dd28._0x41eb41,-0x239,-_0x59dd28._0x394496)]();}};}async function createMcpToolsFromServers(_0x3c3661){const _0x1da28b={_0x2acf6d:0x351,_0xe9ed80:0x680,_0x29435d:0x407,_0x24c008:0x477,_0x458189:0x53d,_0x44f608:0xfa,_0x5b9122:0x47,_0x2bc1bf:0x553,_0x3ba6f4:0x31b,_0x16d0f4:0x2e5,_0x190e63:0x44b,_0x463ade:0x380,_0x5f36de:0x4fc,_0x3f1088:0x43b,_0x4d1e59:0x446,_0x263cfc:0x48a,_0x5b36e9:0xe2},_0x65afb1={_0x1ef608:0x8,_0x32fab2:0x3f},_0x1a1cc2={_0xb1e71d:0x4e8,_0x7f9bf0:0x12},_0x845449={_0x3ff267:0x1cb,_0x51b8d8:0x58},_0x60f471=_0x3c3661[_0x1aa3ce(_0x1da28b._0x2acf6d,0x518,0x39e,0x456)]??connectMcpServer,_0x245f06=[],_0x450ac7={},_0x34b1d1=[];function _0x1aa3ce(_0x43efb2,_0x1f32c0,_0x38c059,_0x4036e0){return _0x1d9020(_0x1f32c0,_0x1f32c0-0x1c5,_0x4036e0-_0x845449._0x3ff267,_0x4036e0-_0x845449._0x51b8d8);}function _0x48acb9(_0x3983b9,_0xecf38d,_0x1cccf4,_0x33057e){return _0x4ebc2e(_0x33057e,_0x3983b9- -_0x1a1cc2._0xb1e71d,_0x1cccf4-_0x1a1cc2._0x7f9bf0,_0x33057e-0xd9);}for(const [_0x43200d,_0x33d13d]of Object['entries'](_0x3c3661[_0x1aa3ce(_0x1da28b._0xe9ed80,_0x1da28b._0x29435d,_0x1da28b._0x24c008,_0x1da28b._0x458189)]??{})){if(_0x33d13d[_0x48acb9(-0xa,0xe,-0x4b,-0xf1)]===![]){_0x450ac7[_0x43200d]={'status':_0x48acb9(-0xd,0xe7,_0x1da28b._0x44f608,-_0x1da28b._0x5b9122)};continue;}try{const _0xbcef5c=await _0x60f471(_0x43200d,_0x33d13d,_0x3c3661['connection']);_0x245f06['push'](_0xbcef5c);const _0x2e83a8=await _0xbcef5c[_0x1aa3ce(0x54e,_0x1da28b._0x2bc1bf,0x35b,0x418)]();let _0x2e9635=0x0;for(const _0x4cb370 of _0x2e83a8[_0x1aa3ce(_0x1da28b._0x3ba6f4,_0x1da28b._0x16d0f4,_0x1da28b._0x190e63,_0x1da28b._0x463ade)]){const _0x358dc6=_0x3c3661['allowedTools']?.[_0x43200d]?.[_0x4cb370['name']];if(_0x358dc6===![])continue;_0x2e9635+=0x1,_0x34b1d1['push'](createMcpTool({'serverName':resolvePrefix(_0x43200d,_0x33d13d),'tool':_0x4cb370,'client':_0xbcef5c}));}_0x450ac7[_0x43200d]={'status':_0x1aa3ce(_0x1da28b._0x5f36de,_0x1da28b._0x3f1088,_0x1da28b._0x4d1e59,_0x1da28b._0x263cfc),'toolCount':_0x2e9635};}catch(_0x1e4ebd){_0x450ac7[_0x43200d]=isUnauthorizedError(_0x1e4ebd)?{'status':_0x48acb9(_0x1da28b._0x5b36e9,0xdb,0x1e6,0x1b6),'message':getErrorMessage(_0x1e4ebd)}:{'status':_0x1aa3ce(0x55a,0x531,0x36a,0x49c),'message':getErrorMessage(_0x1e4ebd)};}}return{'tools':_0x34b1d1,'servers':_0x450ac7,async 'close'(){const _0x1397e8={_0x2aa7f4:0x46},_0x40cc25={_0xbbaef7:0x410,_0x185847:0x25};function _0x592a17(_0x3eb4a7,_0x414297,_0x328b5b,_0x392487){return _0x48acb9(_0x414297-_0x40cc25._0xbbaef7,_0x414297-_0x40cc25._0x185847,_0x328b5b-0x5a,_0x3eb4a7);}function _0x2fa176(_0x4c3fde,_0x2ad125,_0x5d2152,_0xa5a17){return _0x1aa3ce(_0x4c3fde-_0x1397e8._0x2aa7f4,_0xa5a17,_0x5d2152-0x7e,_0x2ad125- -0x58a);}await Promise[_0x2fa176(-0x8f,-_0x65afb1._0x1ef608,0xa6,-0x138)](_0x245f06[_0x2fa176(-0x2,-_0x65afb1._0x32fab2,0x1b,0x84)](_0x5cffab=>_0x5cffab['close']()));}};}function getCommand(_0x67d2b2){const _0x432028={_0x1d284a:0x154,_0x28d233:0x57,_0x2e591a:0x56c,_0x5e312b:0x48e},_0x4c47bc={_0xcaa629:0x41f,_0x2ab2f7:0xa1},_0x5eab09={_0x5de8e6:0x18,_0x4f1a30:0x81,_0x3290db:0x32};function _0x5c4912(_0x54593d,_0x1851af,_0x1dc303,_0x3858ec){return _0x4ebc2e(_0x54593d,_0x3858ec- -_0x5eab09._0x5de8e6,_0x1dc303-_0x5eab09._0x4f1a30,_0x3858ec-_0x5eab09._0x3290db);}function _0x652f38(_0x1742d4,_0x517432,_0x151f8c,_0x464deb){return _0x4ebc2e(_0x517432,_0x1742d4- -_0x4c47bc._0xcaa629,_0x151f8c-_0x4c47bc._0x2ab2f7,_0x464deb-0x5c);}if(_0x67d2b2&&typeof _0x67d2b2==='object'&&!Array[_0x5c4912(0x4b9,0x4c8,0x3d7,0x51c)](_0x67d2b2)&&typeof _0x67d2b2[_0x652f38(_0x432028._0x1d284a,0x23b,0x1f3,0x125)]===_0x652f38(0x65,0x95,-0xaf,-_0x432028._0x28d233))return _0x67d2b2['command'];return _0x5c4912(0x4bd,0x3a3,_0x432028._0x2e591a,_0x432028._0x5e312b);}var MOCK_WORKSPACE_LISTING=['docs/plans/2026-04-16-agent-loop-core-design.md',_0x1d9020(0x47d,0x421,0x358,0x3e3),_0x4ebc2e(0x5c6,0x505,0x4e9,0x3c1),'package.json','src/agent/agent.ts',_0x1d9020(0x356,0x117,0x220,0x2f2),_0x1d9020(0x16b,0x73,0x17d,0xd2),_0x4ebc2e(0x5c3,0x5e8,0x4e5,0x718),_0x4ebc2e(0x46a,0x4ae,0x4fc,0x37e),_0x1d9020(0x46a,0x4ad,0x36b,0x446),_0x4ebc2e(0x4fe,0x4a3,0x4ac,0x372),'src/agent/turn-engine.ts',_0x1d9020(0x192,0x1e3,0x2d9,0x22c),_0x4ebc2e(0x328,0x412,0x392,0x309),_0x4ebc2e(0x6b9,0x5f6,0x68c,0x682),_0x4ebc2e(0x4c9,0x4e5,0x3a3,0x3ea),_0x1d9020(0x12b,0xbd,0x1fa,0x28e)][_0x1d9020(0x150,0x254,0x138,0x227)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x1d9020(0x157,0x16d,0x13f,0x74),'description':_0x1d9020(0x372,0x32e,0x2ea,0x303),'input_schema':{'type':'object','properties':{'command':{'type':_0x4ebc2e(0x4d8,0x484,0x46f,0x39f)}},'required':[_0x4ebc2e(0x68d,0x573,0x6ba,0x42b)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x3ed494){return{'output':_0x3ed494,'structured':{'value':_0x3ed494}};}function createUnknownToolResult(_0x103a97){const _0x4ab807={_0x1884b8:0xab,_0xa89b27:0x6d},_0x939276={_0x53d687:0x64a,_0x349ef2:0x1e5};function _0x75d422(_0x4eeaa8,_0x2a1250,_0x5345ef,_0x18f865){return _0x4ebc2e(_0x18f865,_0x4eeaa8- -_0x939276._0x53d687,_0x5345ef-0x3a,_0x18f865-_0x939276._0x349ef2);}return{'callId':_0x103a97['id'],'toolName':_0x103a97['name'],'status':_0x75d422(-_0x4ab807._0x1884b8,-0x9a,-0x26,-_0x4ab807._0xa89b27),'output':'Unknown\x20tool:\x20'+_0x103a97['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x598ec4,_0xeb640c){const _0x54eec1={_0x44e346:0x4d1,_0x56d745:0x46f,_0x175135:0x4ac},_0x4c3ede={_0x3b1546:0x133,_0x11bfc4:0x1db};function _0x120d5f(_0x506168,_0x3b0b10,_0x33535c,_0x5c2521){return _0x1d9020(_0x5c2521,_0x3b0b10-0x34,_0x506168-0x35e,_0x5c2521-0x1bf);}function _0x3c43c7(_0x624811,_0x2115ba,_0x51f9a7,_0x557616){return _0x1d9020(_0x624811,_0x2115ba-_0x4c3ede._0x3b1546,_0x557616-_0x4c3ede._0x11bfc4,_0x557616-0x100);}return{'callId':_0x598ec4['id'],'toolName':_0x598ec4[_0x3c43c7(_0x54eec1._0x44e346,0x510,0x3bd,_0x54eec1._0x56d745)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x598ec4[_0x120d5f(_0x54eec1._0x175135,0x49d,0x5f3,0x431)]),'exitCode':0x0},'chunks':[_0xeb640c],'meta':createMeta()};}function createMockToolRuntime(){const _0x230596={_0xd05e7:0x6c5,_0x53c2d7:0x68e,_0x1b3f3c:0x61c,_0x45f628:0x702},_0x341034={_0x4c8eff:0xe2,_0x1b6e27:0x1d3,_0x501654:0x237,_0x18e51e:0x16c,_0x27d71f:0x1b7},_0x45ccd2=async(_0x5c8aaa,_0x2bec2f)=>{const _0x512858={_0x777fac:0xd4};function _0x5000bd(_0x37554d,_0x46637c,_0x2b9b64,_0x58f8d2){return _0x3d42(_0x46637c- -0x2ec,_0x58f8d2);}function _0x50a979(_0x1edce8,_0x8e7b8f,_0x16a296,_0x5bb2eb){return _0x3d42(_0x1edce8- -_0x512858._0x777fac,_0x16a296);}if(_0x5c8aaa[_0x5000bd(0x41,-_0x341034._0x4c8eff,-0x19e,-_0x341034._0x1b6e27)]!==_0x5000bd(-0x1b0,-_0x341034._0x501654,-_0x341034._0x18e51e,-_0x341034._0x27d71f))return createUnknownToolResult(_0x5c8aaa);const _0x4f28ed=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x5c8aaa,_0x4f28ed);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0xfa8592,_0x444f76){function _0x33a147(_0x528a24,_0x539a3a,_0x40e36d,_0x3a9b2e){return _0x3d42(_0x40e36d- -0x3a7,_0x3a9b2e);}function _0x5eee98(_0x30191d,_0x11cc06,_0x445af6,_0x216e6e){return _0x3d42(_0x11cc06-0x398,_0x216e6e);}return await Promise[_0x5eee98(0x79e,_0x230596._0xd05e7,0x5e1,0x743)](_0xfa8592[_0x5eee98(0x7c1,_0x230596._0x53c2d7,_0x230596._0x1b3f3c,_0x230596._0x45f628)](async _0x3f3a4c=>{return await _0x45ccd2(_0x3f3a4c,_0x444f76);}));},async 'execute'(_0x234327,_0x553a69){return await _0x45ccd2(_0x234327,_0x553a69);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x285fb3={_0x19f258:0x155,_0x3bf949:0x1ea};delegatedRunCounter+=0x1;function _0x57f80e(_0x9e3896,_0x3a3873,_0x5050df,_0x503d0c){return _0x4ebc2e(_0x9e3896,_0x503d0c- -0x3f2,_0x5050df-0x16,_0x503d0c-0x8a);}return _0x57f80e(_0x285fb3._0x19f258,0x1da,0x282,_0x285fb3._0x3bf949)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x56f484,_0x432e46){const _0x59973b={_0x543f25:0x8c};function _0x2aaa69(_0x489ab8,_0x248e0a,_0x556b8a,_0x54b4c0){return _0x1d9020(_0x556b8a,_0x248e0a-0x55,_0x489ab8-0x23,_0x54b4c0-_0x59973b._0x543f25);}return typeof _0x56f484===_0x2aaa69(0x1e8,0x1cd,0x17a,0x2ea)?await _0x56f484(_0x432e46):_0x56f484;}function getDelegatedAgentDefinition(_0x482155,_0x4d8ae1){const _0x516566={_0x689b6d:0x38f},_0x8f59d8={_0xacce18:0x8b,_0x455d4e:0x158};function _0x4e9e64(_0x81ccb8,_0x438f4c,_0x312fa9,_0x4aab80){return _0x1d9020(_0x81ccb8,_0x438f4c-_0x8f59d8._0xacce18,_0x4aab80-_0x8f59d8._0x455d4e,_0x4aab80-0x123);}return _0x482155[_0x4e9e64(_0x516566._0x689b6d,0x380,0x4aa,0x371)]?.[_0x4d8ae1];}function createRunSummary(_0x2e2efc){const _0x31ed42={_0x16b717:0x59f,_0x20c7a9:0x547,_0x2d9dde:0x189,_0x5cc803:0x1bf,_0x152c84:0x40f,_0xd9f189:0x496,_0x3126ca:0x549,_0x52947e:0xda,_0x11f279:0x280,_0x472920:0x2f7,_0x14cbb9:0x38d,_0x3f5747:0x6c,_0x57fb40:0x26c,_0x3f341e:0x126,_0x29ab28:0x218,_0xa0b56:0x528,_0x455ec7:0x403,_0x2f00e2:0xc4,_0x2eec0d:0x40,_0x403be7:0xd7},_0x4502cc={_0x57ca05:0xde,_0x1d74a7:0x88},_0x2472ec={_0x2ceaff:0x2ec};function _0x8cb996(_0x48e5f6,_0x2bce54,_0x1fe464,_0xdcbe3b){return _0x1d9020(_0x1fe464,_0x2bce54-0x1b7,_0xdcbe3b- -_0x2472ec._0x2ceaff,_0xdcbe3b-0x11f);}function _0x536fa0(_0x47c223,_0x2a515b,_0x3eaf99,_0x48f671){return _0x4ebc2e(_0x47c223,_0x3eaf99- -_0x4502cc._0x57ca05,_0x3eaf99-0xb9,_0x48f671-_0x4502cc._0x1d74a7);}return{'runId':_0x2e2efc[_0x536fa0(0x53d,_0x31ed42._0x16b717,_0x31ed42._0x20c7a9,0x5c3)],'agentId':_0x2e2efc[_0x8cb996(-_0x31ed42._0x2d9dde,-0xe4,-0x88,-_0x31ed42._0x5cc803)],'sessionId':_0x2e2efc[_0x536fa0(0x4c7,_0x31ed42._0x152c84,_0x31ed42._0xd9f189,_0x31ed42._0x3126ca)],'status':_0x2e2efc[_0x8cb996(-0xc8,-0x71,-0xe1,-_0x31ed42._0x52947e)],'parentSessionId':_0x2e2efc[_0x536fa0(_0x31ed42._0x11f279,_0x31ed42._0x472920,0x38e,_0x31ed42._0x14cbb9)],..._0x2e2efc[_0x8cb996(-0x29,-0x9d,-_0x31ed42._0x3f5747,-0x126)]!==void 0x0?{'originToolCallId':_0x2e2efc[_0x8cb996(-0xa6,-_0x31ed42._0x57fb40,-0x127,-_0x31ed42._0x3f341e)]}:{},..._0x2e2efc[_0x8cb996(-0x1dc,-0x37,-_0x31ed42._0x29ab28,-0xd9)]!==void 0x0?{'errorMessage':_0x2e2efc[_0x536fa0(_0x31ed42._0xa0b56,0x3ac,_0x31ed42._0x455ec7,0x3cd)]}:{},..._0x2e2efc[_0x8cb996(-_0x31ed42._0x2f00e2,_0x31ed42._0x2eec0d,-0x171,-_0x31ed42._0x403be7)]?.['finalMessage']!==void 0x0?{'finalMessageText':getTextFromMessage(_0x2e2efc['result']['finalMessage'])}:{}};}function createRunSummaryOutput(_0x42288f,_0x24f10e){const _0x2b5af2={_0x57213c:0x326,_0x56b9f2:0x329},_0x517cbe={_0x10ed75:0xfd,_0x6a90e7:0x435,_0x561aca:0x173},_0x46c086=createRunSummary(_0x42288f);function _0x4169aa(_0x4fb56a,_0x1b5f4c,_0x238996,_0x534ae0){return _0x1d9020(_0x534ae0,_0x1b5f4c-_0x517cbe._0x10ed75,_0x1b5f4c- -_0x517cbe._0x6a90e7,_0x534ae0-_0x517cbe._0x561aca);}const _0x28b483=_0x46c086[_0x4169aa(-_0x2b5af2._0x57213c,-0x307,-0x39d,-_0x2b5af2._0x56b9f2)];return createToolOutput(typeof _0x28b483==='string'&&_0x28b483['length']>0x0?_0x28b483:_0x24f10e,_0x46c086);}function getRunTerminalErrorMessage(_0x356fb5){const _0x2f7e88={_0x390f0d:0x536,_0x14bea3:0x4ef,_0x3dfb21:0x525,_0x36bce8:0x435,_0x3405a0:0x4bd,_0x495740:0x2af,_0x5a64b7:0x29e,_0x321d6d:0x311,_0x322876:0x263,_0x4c1642:0x53a,_0x515fb7:0x63c,_0x2c67c9:0x63a,_0xa873ff:0x260,_0x469152:0x2ad,_0x4889e0:0x252},_0x2aa219={_0x3536ef:0x17f,_0x5688fc:0xd7},_0x55f93b={_0x391333:0x8c,_0x16316d:0xd7};function _0x559af2(_0x367c68,_0x4a1cb3,_0x3b3b85,_0x3c2cfd){return _0x1d9020(_0x3b3b85,_0x4a1cb3-0xd4,_0x367c68-_0x55f93b._0x391333,_0x3c2cfd-_0x55f93b._0x16316d);}const _0x54b527=_0x356fb5?.[_0x32fd77(_0x2f7e88._0x390f0d,_0x2f7e88._0x14bea3,_0x2f7e88._0x3dfb21,_0x2f7e88._0x36bce8)][_0x559af2(0x39f,_0x2f7e88._0x3405a0,0x42b,_0x2f7e88._0x495740)]['at'](-0x1);if(_0x54b527?.[_0x559af2(_0x2f7e88._0x5a64b7,_0x2f7e88._0x321d6d,_0x2f7e88._0x322876,0x397)]===_0x32fd77(_0x2f7e88._0x4c1642,_0x2f7e88._0x515fb7,0x59e,_0x2f7e88._0x2c67c9)&&_0x54b527[_0x559af2(0x22e,_0x2f7e88._0xa873ff,_0x2f7e88._0x469152,0x1e6)]['trim']()[_0x559af2(0x289,0x162,0x229,0x170)]>0x0)return _0x54b527[_0x559af2(0x22e,_0x2f7e88._0x4889e0,0x2b5,0x2d9)];function _0x32fd77(_0x299ae5,_0x3e7791,_0x5f44b0,_0x2df6c9){return _0x1d9020(_0x299ae5,_0x3e7791-_0x2aa219._0x3536ef,_0x5f44b0-0x2cd,_0x2df6c9-_0x2aa219._0x5688fc);}return void 0x0;}function formatAbortedRunMessage(_0x40c5b7,_0x5c042d){const _0x5d40b0={_0x4ac182:0x5c1,_0x33b0d7:0x5b2,_0x381802:0x47c,_0x5e9f6d:0x43b,_0x18ecbd:0x60d},_0x5b3837={_0xdd8613:0x2c8,_0x5e456a:0x1bc},_0x4a4d31={_0x5f70fa:0x328};function _0x16c4a0(_0x5eb706,_0x3924bf,_0x456b33,_0x158536){return _0x1d9020(_0x158536,_0x3924bf-0x7b,_0x3924bf-_0x4a4d31._0x5f70fa,_0x158536-0x17a);}const _0x4c47db=_0x402843(0x509,0x4c4,_0x5d40b0._0x4ac182,_0x5d40b0._0x33b0d7)+_0x40c5b7+_0x402843(_0x5d40b0._0x381802,0x5af,0x508,_0x5d40b0._0x5e9f6d);function _0x402843(_0x40ae25,_0x5b2adb,_0x465ce7,_0xe3ab36){return _0x1d9020(_0x5b2adb,_0x5b2adb-0x1d3,_0x40ae25-_0x5b3837._0xdd8613,_0xe3ab36-_0x5b3837._0x5e456a);}if(!_0x5c042d||_0x5c042d['trim']()['length']===0x0||_0x5c042d===_0x4c47db)return _0x4c47db;return _0x4c47db+_0x402843(0x5ae,0x566,_0x5d40b0._0x18ecbd,0x55d)+_0x5c042d;}function createAssignTaskTool(_0x4dc9c2){const _0x6f2539={_0x7eb25:0x587,_0x54e638:0x560,_0x565322:0x574,_0x355ffe:0x494,_0x10f1f4:0x42d,_0x36a2ad:0x19b,_0x4e3bf3:0x74,_0xaefe5f:0x38c,_0x193fb1:0x26a,_0x36a375:0x441,_0xa5e4c5:0x682,_0x4d403b:0x543},_0x222545={_0x37a164:0x2c6,_0x29e316:0x3f1,_0x5ac257:0x27e,_0x202995:0x14d,_0x110636:0x3b,_0x3129f7:0x66,_0x1b3257:0x1e6,_0x244b59:0x164,_0x3ca21a:0x212,_0x2077cd:0x25,_0x1d929e:0xe9,_0x24cb20:0x1d9,_0x4ca5a9:0x2f1,_0xee46b0:0x12c,_0xbf620c:0x46,_0x344672:0xdc,_0x44c5d0:0x98,_0x288c67:0xbc,_0x3e9d0b:0x13c,_0x157839:0x186,_0x3391ae:0x1fa,_0x46e80d:0x70,_0x203976:0x239,_0x574fbb:0x116,_0x5e2bd9:0x7a,_0x4ad6c6:0x53,_0x4cdba7:0x197,_0x11d76c:0x269,_0x56042e:0x1e,_0x53adae:0x1e9,_0x4169af:0x151,_0x1d965a:0x98,_0x1403aa:0xb9,_0x253468:0x2f2,_0x1835cd:0x242,_0x239df9:0x16d,_0x5c2669:0x181,_0x4652fa:0x1b6,_0x8c11a7:0xd6,_0xddfddf:0x4,_0x304b4a:0x2e3,_0x3e42de:0x9c,_0x5bead6:0x3,_0x590cdd:0x10,_0x399f91:0xe5,_0x1830aa:0x220,_0x299f07:0x9c,_0x30be8f:0x58,_0x3bf2d1:0x154,_0x1db9fc:0x2c,_0x2a83d0:0x20c,_0x62554c:0x104,_0x415cc5:0x2ef,_0x26824d:0xd6,_0x3bfb68:0x3e,_0x52c2de:0x75,_0x36a43d:0x1de,_0x500c2f:0x221,_0x2ae451:0x13f,_0x2a06af:0xad,_0x577d70:0x136,_0x57d302:0xd2,_0x2eed36:0x34,_0x46ff28:0xd2,_0x5ef92b:0x24,_0x320b3e:0xb,_0x4c07f1:0x109},_0x27f82d={_0x1306fc:0xdb,_0x10ce23:0x485},_0x506d51={_0x326351:0x188,_0x3d7cb4:0xb1};function _0x4caffc(_0x489fc5,_0x537761,_0x4be7f2,_0x263b63){return _0x1d9020(_0x489fc5,_0x537761-_0x506d51._0x326351,_0x263b63-0x277,_0x263b63-_0x506d51._0x3d7cb4);}function _0x2904a0(_0x460da1,_0x4f14f2,_0x1be22e,_0x4728cc){return _0x4ebc2e(_0x4728cc,_0x1be22e- -0x387,_0x1be22e-0x183,_0x4728cc-0x16b);}return defineTool({'name':'AssignTask','description':'Delegates\x20a\x20task\x20to\x20another\x20agent\x20and\x20waits\x20for\x20completion','inputSchema':{'type':_0x4caffc(_0x6f2539._0x7eb25,_0x6f2539._0x54e638,0x66c,0x577),'properties':{'agentId':{'type':'string'},'description':{'type':_0x4caffc(_0x6f2539._0x565322,0x4ea,_0x6f2539._0x355ffe,_0x6f2539._0x10f1f4)},'nickname':{'type':_0x4caffc(0x460,0x456,0x415,_0x6f2539._0x10f1f4)},'task':{'type':'string'}},'required':[_0x2904a0(_0x6f2539._0x36a2ad,0x19b,_0x6f2539._0x4e3bf3,0x1aa),_0x2904a0(0x328,_0x6f2539._0xaefe5f,0x291,_0x6f2539._0x193fb1),_0x4caffc(_0x6f2539._0x36a375,0x5a3,_0x6f2539._0xa5e4c5,_0x6f2539._0x4d403b)]},async *'execute'(_0x4875e5,_0x5a8bee){const _0x20c747={_0x161121:0x320,_0x12764c:0x3eb,_0x56b8fd:0x246,_0x4ff6e6:0x16c,_0x1089cb:0x51};function _0x14cf0a(_0x46c539,_0x434657,_0x37d52a,_0x128f04){return _0x4caffc(_0x37d52a,_0x434657-0x8c,_0x37d52a-_0x27f82d._0x1306fc,_0x434657- -_0x27f82d._0x10ce23);}const _0x368a63=createDelegatedRunId(),_0xd88bf2={'agentId':_0x4875e5[_0x196304(-_0x222545._0x37a164,-_0x222545._0x29e316,-0x232,-_0x222545._0x5ac257)],'parentSessionId':_0x5a8bee[_0x196304(-_0x222545._0x202995,-_0x222545._0x110636,-0x20b,-_0x222545._0x3129f7)],'runId':_0x368a63,..._0x5a8bee['toolCallId']!==void 0x0?{'toolCallId':_0x5a8bee[_0x14cf0a(0x188,0x186,_0x222545._0x1b3257,0x29b)]}:{}},_0x344703=getDelegatedAgentDefinition(_0x4dc9c2,_0x4875e5[_0x196304(-0x2c6,-0x392,-0x220,-0x34b)]);if(!_0x344703)throw new ToolExecutionError(_0x196304(-_0x222545._0x244b59,-_0x222545._0x3ca21a,-_0x222545._0x2077cd,-_0x222545._0x1d929e)+_0x4875e5[_0x196304(-0x2c6,-0x3ee,-_0x222545._0x24cb20,-_0x222545._0x4ca5a9)],{'agentId':_0x4875e5[_0x14cf0a(-0x16a,-0xe1,-0x18e,-_0x222545._0xee46b0)]});function _0x196304(_0x127a9e,_0x398518,_0x33740e,_0x2843ed){return _0x4caffc(_0x398518,_0x398518-0x177,_0x33740e-0x67,_0x127a9e- -0x66a);}const _0x5a57c4=new Agent(await resolveDelegatedAgentOptions(_0x344703,_0xd88bf2));let _0x22584b={'runId':_0x368a63,'agentId':_0x4875e5['agentId'],'sessionId':_0x5a57c4['sessionId'],'status':_0x196304(-0xf1,-0xdc,-0x162,-_0x222545._0xbf620c),'parentSessionId':_0x5a8bee[_0x14cf0a(_0x222545._0x344672,_0x222545._0x44c5d0,_0x222545._0x288c67,_0x222545._0x3e9d0b)],..._0x5a8bee[_0x14cf0a(0x16e,_0x222545._0x157839,_0x222545._0x3391ae,0x98)]!==void 0x0?{'originToolCallId':_0x5a8bee[_0x14cf0a(_0x222545._0x46e80d,0x186,0xbd,0x2bc)]}:{}};const _0x2a2a5f=new AbortController(),_0x566b29=addAbortListener(_0x5a8bee[_0x196304(-0x181,-0x188,-_0x222545._0x203976,-0x265)],()=>{const _0x13567c={_0x4fa2f8:0xa7},_0x57821b={_0x2dbeed:0x2b};function _0x5b8711(_0x18a55c,_0x474ba0,_0x579d9b,_0x3d1212){return _0x196304(_0x474ba0-0x4ee,_0x3d1212,_0x579d9b-_0x57821b._0x2dbeed,_0x3d1212-0x1d);}function _0x1721f4(_0x133725,_0x1b250d,_0x3261ff,_0x57a014){return _0x196304(_0x3261ff- -0x54,_0x57a014,_0x3261ff-0x1eb,_0x57a014-_0x13567c._0x4fa2f8);}_0x2a2a5f[_0x5b8711(_0x20c747._0x161121,0x2b4,_0x20c747._0x12764c,0x33e)](_0x5a8bee['signal']?.[_0x1721f4(-0x7a,-_0x20c747._0x56b8fd,-_0x20c747._0x4ff6e6,-_0x20c747._0x1089cb)]);});yield createToolOutput(_0x14cf0a(-_0x222545._0x574fbb,-0x57,-_0x222545._0x5e2bd9,-_0x222545._0x4ad6c6)+_0x22584b[_0x14cf0a(_0x222545._0x4cdba7,0x149,0x17e,_0x222545._0x11d76c)]+'.',{'runId':_0x22584b[_0x196304(-0x9c,-0x35,-0xc8,-_0x222545._0x56042e)],'agentId':_0x22584b[_0x196304(-0x2c6,-_0x222545._0x53adae,-0x280,-0x297)],'sessionId':_0x22584b[_0x14cf0a(_0x222545._0x4169af,_0x222545._0x1d965a,0x5b,0x80)],'status':_0x22584b[_0x196304(-0x1e1,-_0x222545._0x1403aa,-_0x222545._0x253468,-0x317)]});try{const _0x5cd610=await _0x5a57c4[_0x14cf0a(_0x222545._0x1835cd,0x139,0x4e,0x27a)](_0x4875e5[_0x196304(-0x127,-0x186,-_0x222545._0x239df9,-0x1c2)],{'signal':_0x2a2a5f[_0x196304(-_0x222545._0x5c2669,-0x91,-0x291,-_0x222545._0x4652fa)]});_0x22584b={..._0x22584b,'status':_0x5cd610[_0x14cf0a(-_0x222545._0x8c11a7,_0x222545._0xddfddf,-0x49,0x13b)],'result':_0x5cd610};if(_0x5cd610[_0x196304(-0x1e1,-0x324,-_0x222545._0x304b4a,-0xa7)]!==_0x14cf0a(0x44,0x10b,0x1bd,0x19a)){const _0x248f76=getRunTerminalErrorMessage(_0x5cd610),_0x48e3ae=formatAbortedRunMessage(_0x22584b[_0x196304(-_0x222545._0x3e42de,_0x222545._0x5bead6,_0x222545._0x590cdd,-_0x222545._0x399f91)],_0x248f76);throw new ToolExecutionError(_0x48e3ae,{...createRunSummary(_0x22584b),'aborted':!![],'errorMessage':_0x48e3ae});}return createRunSummaryOutput(_0x22584b,_0x196304(-0x1b2,-0x2e6,-_0x222545._0x1830aa,-0xd7)+_0x22584b[_0x196304(-_0x222545._0x299f07,_0x222545._0x30be8f,-_0x222545._0x3bf2d1,_0x222545._0x1db9fc)]+'\x20completed.');}catch(_0x426008){if(_0x426008 instanceof ToolExecutionError)throw _0x426008;if(isAbortError(_0x426008)||_0x2a2a5f['signal'][_0x196304(-_0x222545._0x2a83d0,-_0x222545._0x62554c,-0x32a,-_0x222545._0x415cc5)]||_0x5a8bee['signal'][_0x14cf0a(-_0x222545._0x26824d,-0x27,_0x222545._0x3bfb68,_0x222545._0x52c2de)]){const _0x492ba7=getRunTerminalErrorMessage(_0x22584b[_0x196304(-_0x222545._0x36a43d,-_0x222545._0x500c2f,-_0x222545._0x2ae451,-_0x222545._0x2a06af)])??(_0x426008 instanceof Error?_0x426008['message']:String(_0x426008)),_0x1b5142=formatAbortedRunMessage(_0x22584b[_0x14cf0a(_0x222545._0x577d70,0x149,0xce,0x55)],_0x492ba7);_0x22584b={..._0x22584b,'status':'aborted','errorMessage':_0x1b5142};throw new ToolExecutionError(_0x1b5142,{...createRunSummary(_0x22584b),'aborted':!![],'errorMessage':_0x1b5142});}const _0x190608=getRunTerminalErrorMessage(_0x22584b[_0x14cf0a(0x54,0x7,-_0x222545._0x57d302,0xe2)])??(_0x426008 instanceof Error?_0x426008[_0x14cf0a(0xf2,0x46,_0x222545._0x2eed36,-_0x222545._0x46ff28)]:String(_0x426008))??'Agent\x20run\x20'+_0x22584b[_0x14cf0a(0x24e,0x149,_0x222545._0x5ef92b,0x38)]+_0x196304(-_0x222545._0x30be8f,-0x52,_0x222545._0x320b3e,0x1d);_0x22584b={..._0x22584b,'status':_0x14cf0a(0x169,0x18c,_0x222545._0x4c07f1,0x22e),'errorMessage':_0x190608};throw new ToolExecutionError(_0x190608,{...createRunSummary(_0x22584b),'errorMessage':_0x190608});}finally{_0x566b29();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x3f2a9b){return[createAssignTaskTool(_0x3f2a9b)];}import*as _0x19e1ee from'path';function buildDescription2(_0x28392a){const _0x3a47c2={_0xc7c81f:0x1c5,_0x1f68a7:0x3f6,_0x541949:0x4e,_0x49f212:0x3d,_0x3197fd:0x248,_0x16203f:0x264,_0x39aefc:0x1b3,_0x45b2a1:0x205,_0x474cff:0x85,_0xd8b0f2:0x77,_0x4b9882:0xf},_0x481a0a={_0x272260:0x41a,_0x178881:0x11d,_0x2c4255:0x17f};function _0x456ba6(_0x56e2c5,_0x5e920a,_0x533fb6,_0x3f583d){return _0x1d9020(_0x5e920a,_0x5e920a-0xf6,_0x3f583d- -0x6b,_0x3f583d-0xe6);}if(_0x28392a[_0x456ba6(0x146,0x20f,0x9c,0x192)]===0x0)return _0x456ba6(0x1c2,_0x3a47c2._0xc7c81f,_0x3a47c2._0x1f68a7,0x2bf);const _0x152ead=[_0x456ba6(_0x3a47c2._0x541949,_0x3a47c2._0x49f212,_0x3a47c2._0x3197fd,0x11a),_0x456ba6(0x189,_0x3a47c2._0x16203f,_0x3a47c2._0x39aefc,_0x3a47c2._0x45b2a1),_0x45efc6(_0x3a47c2._0x474cff,0xab,0x47,0x172),'Available\x20skills\x20(skill_name:\x20description):',..._0x28392a['map'](_0x2bf0ae=>'-\x20'+_0x2bf0ae[_0x45efc6(0x16e,0x148,0x153,0xa3)]+':\x20'+_0x2bf0ae['description'])];function _0x45efc6(_0x1110eb,_0x284cb5,_0x4fd23d,_0xd47b3c){return _0x4ebc2e(_0x4fd23d,_0x284cb5- -_0x481a0a._0x272260,_0x4fd23d-_0x481a0a._0x178881,_0xd47b3c-_0x481a0a._0x2c4255);}return _0x152ead[_0x456ba6(0x165,-_0x3a47c2._0xd8b0f2,-_0x3a47c2._0x4b9882,0xcd)]('\x0a');}function createLoadSkillTool(_0x409ca0){const _0x58e069={_0x426400:0xbb,_0x392849:0x9,_0x164576:0x34,_0x4d87ed:0x2ab,_0xb71431:0x320,_0x188d9a:0x2a4,_0x1edec9:0x1d6,_0x43a8c4:0x1fd,_0x249fcf:0x2b4},_0x2cacd3={_0x5d3463:0x625,_0x1e8613:0x50e,_0x40bb8b:0x468,_0xf86b41:0x6d,_0x24edb6:0x12d,_0x3205e5:0x1e,_0x1c0c39:0xf2,_0x54e612:0x175,_0x2503c4:0x71,_0x28c0f3:0x167,_0x18c09b:0x79,_0xe2326a:0xd3,_0x3a5b3e:0x4b3,_0x273c07:0x4ba,_0x5a4494:0x5e6,_0x3e1c06:0x5a4,_0x8b40b9:0x119,_0x3159af:0x11f,_0xcf5184:0x65,_0x2a7a32:0x48e,_0x38eddb:0x109,_0x37b42e:0x11,_0x30acf4:0x3fd,_0x293ea6:0x408,_0x3f1012:0x4aa,_0x5add82:0x3e3,_0x4d45fc:0x6,_0x5e8640:0x55d,_0x1fe8bb:0x4e5,_0x1cd003:0x633,_0x4ebd8f:0x508,_0x51849e:0xbb,_0x4b6c56:0xc0,_0x1895fb:0x20,_0x4dae7f:0x1a,_0xf55301:0x4e,_0x260b72:0x13f,_0x419f21:0x4ee,_0x3ce026:0x4c4,_0x14c8f0:0x3bf,_0x22aede:0x9a,_0x4fb12d:0x573,_0xe82667:0xae,_0x29f652:0xf},_0x33c551={_0x3cca73:0x53},_0x61bf37={_0x21d153:0xc3,_0xc72e3e:0x3d},_0x3c49a8={_0x2f27ce:0x50},_0x2499a9={_0x1c9d4d:0xde},_0x545c08=new Map(_0x409ca0[_0x538502(0x185,-0xb5,0x84,_0x58e069._0x426400)]['map'](_0x4dbb55=>[_0x4dbb55[_0x850f28(0x3dd,0x3bd,0x2b4,0x38d)],_0x4dbb55]));function _0x538502(_0x1b1b22,_0x479335,_0x4b3f2e,_0x1fb2b0){return _0x1d9020(_0x1b1b22,_0x479335-_0x2499a9._0x1c9d4d,_0x4b3f2e- -0x31c,_0x1fb2b0-0x164);}const _0x3779db=buildDescription2(_0x409ca0[_0x538502(-_0x58e069._0x392849,-_0x58e069._0x164576,0x84,0xb6)]);function _0x850f28(_0x5d33a8,_0x5aa9f4,_0x23b693,_0x24a8cc){return _0x1d9020(_0x5d33a8,_0x5aa9f4-0x1d0,_0x23b693-0x20,_0x24a8cc-_0x3c49a8._0x2f27ce);}return defineTool({'name':'LoadSkill','description':_0x3779db,'inputSchema':{'type':_0x850f28(_0x58e069._0x4d87ed,0x27f,_0x58e069._0xb71431,0x205),'properties':{'name':{'type':_0x850f28(_0x58e069._0x188d9a,0xc8,_0x58e069._0x1edec9,0x97)}},'required':[_0x850f28(0x309,_0x58e069._0x43a8c4,_0x58e069._0x249fcf,0x271)]},async *'execute'(_0x5cf81e){function _0x2243b1(_0x2c2cb0,_0x2f6683,_0x21b183,_0x127fe7){return _0x850f28(_0x127fe7,_0x2f6683-_0x61bf37._0x21d153,_0x21b183-0x267,_0x127fe7-_0x61bf37._0xc72e3e);}const _0x3ffa10=_0x545c08[_0x2243b1(0x61a,_0x2cacd3._0x5d3463,_0x2cacd3._0x1e8613,_0x2cacd3._0x40bb8b)](_0x5cf81e[_0x592ae6(_0x2cacd3._0xf86b41,0xe2,_0x2cacd3._0x24edb6,_0x2cacd3._0x3205e5)]);if(!_0x3ffa10){const _0xd0ff80=Array[_0x592ae6(_0x2cacd3._0x1c0c39,0x19b,_0x2cacd3._0x54e612,0x118)](_0x545c08[_0x592ae6(_0x2cacd3._0x2503c4,_0x2cacd3._0x28c0f3,_0x2cacd3._0x18c09b,_0x2cacd3._0xe2326a)]())['join'](',\x20');throw new ToolExecutionError(_0x2243b1(0x53a,_0x2cacd3._0x3a5b3e,0x482,0x388)+_0x5cf81e['name']+_0x2243b1(_0x2cacd3._0x273c07,_0x2cacd3._0x5a4494,0x4b7,_0x2cacd3._0x3e1c06)+_0xd0ff80,{'name':_0x5cf81e[_0x592ae6(-_0x2cacd3._0x8b40b9,-_0x2cacd3._0x3159af,0xed,_0x2cacd3._0x3205e5)]});}const _0x52cd9e=await _0x409ca0[_0x592ae6(0xc3,_0x2cacd3._0xcf5184,0x15f,0xa5)](_0x3ffa10);function _0x592ae6(_0x3d22b4,_0x3f2f60,_0x5578c6,_0x2f12cc){return _0x850f28(_0x3f2f60,_0x3f2f60-_0x33c551._0x3cca73,_0x2f12cc- -0x296,_0x2f12cc-0x29);}const _0x31c6d1=_0x3ffa10[_0x2243b1(0x37c,0x3fe,_0x2cacd3._0x2a7a32,0x3c8)][_0x592ae6(0x17,0x51,-_0x2cacd3._0x38eddb,-_0x2cacd3._0x37b42e)]??_0x19e1ee[_0x2243b1(_0x2cacd3._0x30acf4,_0x2cacd3._0x293ea6,_0x2cacd3._0x3f1012,_0x2cacd3._0x5add82)](_0x3ffa10[_0x592ae6(-_0x2cacd3._0x4d45fc,-0xf2,-0x110,-0x6f)][_0x2243b1(_0x2cacd3._0x5e8640,0x568,0x63c,0x659)]),_0x353ccd=[_0x2243b1(0x4e0,0x45e,_0x2cacd3._0x1fe8bb,0x610)+_0x52cd9e[_0x2243b1(_0x2cacd3._0x1cd003,0x48f,0x51b,_0x2cacd3._0x4ebd8f)],'',_0x52cd9e['instructions'],'',_0x592ae6(-_0x2cacd3._0x51849e,0xd2,_0x2cacd3._0x4b6c56,-_0x2cacd3._0x1895fb),'Loaded\x20from:\x20'+_0x3ffa10[_0x592ae6(_0x2cacd3._0x4dae7f,_0x2cacd3._0xf55301,0xa4,-0x6f)][_0x592ae6(0x180,0x1a2,0xe7,_0x2cacd3._0x260b72)],'Base\x20directory:\x20'+_0x31c6d1][_0x2243b1(_0x2cacd3._0x419f21,_0x2cacd3._0x3ce026,_0x2cacd3._0x14c8f0,0x4da)]('\x0a');return yield createToolOutput(_0x353ccd,{'id':_0x52cd9e['id'],'name':_0x52cd9e[_0x592ae6(_0x2cacd3._0x22aede,0x121,-0x101,0x1e)],'path':_0x3ffa10[_0x2243b1(0x3cf,0x39d,0x48e,_0x2cacd3._0x4fb12d)][_0x592ae6(_0x2cacd3._0xe82667,0x20f,_0x2cacd3._0x29f652,0x13f)],'baseDirectory':_0x31c6d1}),void 0x0;}});}var TODO_STATUSES=new Set(['pending',_0x4ebc2e(0x6d2,0x5c7,0x66b,0x6d2),_0x1d9020(0x1f2,0x263,0x319,0x2c8)]),TODO_PRIORITIES=new Set([_0x4ebc2e(0x5a9,0x610,0x6b0,0x65f),_0x4ebc2e(0x40b,0x467,0x3dc,0x4a2),_0x1d9020(0x26b,0x33f,0x2dc,0x386)]);function isTodoStatus(_0x40b24d){const _0x42027a={_0x4bafae:0x446,_0x58a0cf:0x322,_0x5ae1f6:0x4d9,_0x5eef9b:0x46e,_0x20c53f:0x52d,_0x482ca5:0x51f},_0x4b9361={_0x235351:0xe3,_0x3269c9:0x34f};function _0x1715d0(_0x5f41ab,_0x3a12a0,_0x3022ad,_0x4e82da){return _0x1d9020(_0x5f41ab,_0x3a12a0-0x186,_0x3a12a0-0x290,_0x4e82da-0x1ea);}function _0x40d701(_0x2dbd43,_0x5ac9a7,_0x27bba2,_0x647e69){return _0x1d9020(_0x27bba2,_0x5ac9a7-_0x4b9361._0x235351,_0x5ac9a7- -_0x4b9361._0x3269c9,_0x647e69-0x9d);}return typeof _0x40b24d===_0x1715d0(0x586,_0x42027a._0x4bafae,_0x42027a._0x58a0cf,0x382)&&TODO_STATUSES[_0x1715d0(_0x42027a._0x5ae1f6,_0x42027a._0x5eef9b,_0x42027a._0x20c53f,_0x42027a._0x482ca5)](_0x40b24d);}function isTodoPriority(_0x40062d){const _0xd546fe={_0x183dfb:0x2a8,_0x5a766b:0x37d,_0x1eb429:0x2d5},_0x3d7dd4={_0x18966f:0x18c};function _0x3dc2cc(_0x48556f,_0x513a42,_0x42d7d0,_0x355bb8){return _0x1d9020(_0x513a42,_0x513a42-0xc5,_0x42d7d0-0x19f,_0x355bb8-_0x3d7dd4._0x18966f);}return typeof _0x40062d==='string'&&TODO_PRIORITIES[_0x3dc2cc(_0xd546fe._0x183dfb,0x32a,_0xd546fe._0x5a766b,_0xd546fe._0x1eb429)](_0x40062d);}var TodoStore=class{[_0x4ebc2e(0x3bf,0x402,0x4dc,0x2c4)]=new Map();[_0x1d9020(0x1c8,0x2f6,0x26d,0x368)](_0x33c3a4){const _0x3a5f07={_0x1437fd:0x21a,_0x397e26:0x1c3,_0x3cdd12:0x2ea,_0x58d226:0x97},_0x59a5ea={_0x315d83:0x196};function _0x242cd6(_0x571ce1,_0x2fedf9,_0xe54a0a,_0x56c7fe){return _0x4ebc2e(_0x571ce1,_0x2fedf9- -0x23f,_0xe54a0a-_0x59a5ea._0x315d83,_0x56c7fe-0xe0);}return this[_0x242cd6(_0x3a5f07._0x1437fd,_0x3a5f07._0x397e26,_0x3a5f07._0x3cdd12,_0x3a5f07._0x58d226)]['get'](_0x33c3a4)??[];}[_0x4ebc2e(0x40b,0x476,0x58d,0x42f)](_0x451b97,_0x575204){const _0x48d611={_0x4e67de:0x1d3,_0x3ac1d3:0xdc,_0x2579cf:0x27b,_0x204823:0x1a3,_0x2ae4ef:0x3c2,_0x3830f9:0x38c,_0x1ae63f:0x317,_0x2c751f:0x4da},_0x4f839b={_0x9ab6af:0xb},_0x3a4b96={_0x4fda0b:0x9f};function _0x3259f0(_0x4d9b89,_0x2af881,_0x5a721f,_0x256353){return _0x1d9020(_0x256353,_0x2af881-0x177,_0x4d9b89-_0x3a4b96._0x4fda0b,_0x256353-0x177);}function _0x131ac8(_0xb30803,_0x164ddd,_0x40f57b,_0xccd1bf){return _0x1d9020(_0x40f57b,_0x164ddd-_0x4f839b._0x9ab6af,_0xccd1bf- -0x80,_0xccd1bf-0xb3);}this[_0x3259f0(_0x48d611._0x4e67de,_0x48d611._0x3ac1d3,_0x48d611._0x2579cf,_0x48d611._0x204823)][_0x3259f0(_0x48d611._0x2ae4ef,_0x48d611._0x3830f9,_0x48d611._0x1ae63f,_0x48d611._0x2c751f)](_0x451b97,_0x575204);}[_0x1d9020(0x17b,0x307,0x282,0x3ba)](_0x5dbc40){const _0xa61f8e={_0x2ee93a:0xec,_0x3bd03c:0x10c,_0x2b8f4a:0xf,_0x39a6ab:0x42b,_0x20244d:0x573,_0x34954f:0x4bd,_0x282909:0x49b,_0x19994d:0x4a1,_0x5e6bdb:0x4f9,_0x4c85f7:0x3a2,_0x23b1d3:0x47b,_0x317162:0xf8,_0x179ab7:0x90,_0x48d851:0x10b,_0x184f6a:0x249,_0xd748ab:0x100,_0x29aea6:0x243},_0x1ff569={_0x3b04bd:0xa7,_0x181ccb:0x188},_0x557329=this['getTodos'](_0x5dbc40),_0xefce4e={'total':_0x557329[_0x39dbde(_0xa61f8e._0x2ee93a,-_0xa61f8e._0x3bd03c,-0xd9,_0xa61f8e._0x2b8f4a)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0x543255 of _0x557329){if(_0x543255['status']===_0x397e11(0x52a,_0xa61f8e._0x39a6ab,_0xa61f8e._0x20244d,0x4a1))_0xefce4e[_0x397e11(_0xa61f8e._0x34954f,0x57a,_0xa61f8e._0x282909,_0xa61f8e._0x19994d)]+=0x1;else{if(_0x543255[_0x397e11(_0xa61f8e._0x5e6bdb,_0xa61f8e._0x4c85f7,_0xa61f8e._0x23b1d3,0x458)]===_0x39dbde(_0xa61f8e._0x317162,_0xa61f8e._0x179ab7,0xff,_0xa61f8e._0x48d851))_0xefce4e[_0x39dbde(_0xa61f8e._0x184f6a,_0xa61f8e._0xd748ab,_0xa61f8e._0x29aea6,0x134)]+=0x1;else _0xefce4e['completed']+=0x1;}}function _0x39dbde(_0x3fa09b,_0x144865,_0x2a5758,_0x31a44e){return _0x4ebc2e(_0x144865,_0x31a44e- -0x4bc,_0x2a5758-_0x1ff569._0x3b04bd,_0x31a44e-_0x1ff569._0x181ccb);}function _0x397e11(_0x32daca,_0x466527,_0x48dcce,_0x370217){return _0x1d9020(_0x48dcce,_0x466527-0xc8,_0x370217-0x246,_0x370217-0x9d);}return _0xefce4e;}};function validateTodos(_0x176c39){const _0x1909ff={_0x28e101:0x27,_0x4c074c:0x150,_0x43ede9:0x9a,_0xf2d12a:0x114,_0x242863:0x29,_0x2450cc:0xf1,_0x1871e7:0x188,_0x19c0c1:0x151,_0x131ded:0x25,_0x49d166:0x4d,_0x550924:0x174,_0x5d2c57:0x14c,_0x2c0d0d:0x1cf,_0x2bc3ed:0x46,_0x44e285:0x3b,_0x528dd9:0x182,_0x536572:0x110,_0x46651d:0x183,_0x21c4fd:0x2fc,_0x5a64b4:0x208,_0x1bdf6f:0x118,_0x510bc7:0x89,_0x49f203:0x29,_0x2e4799:0x24a,_0x557872:0x19f,_0x20de57:0x11d,_0x3e7f3e:0xde,_0x5c8217:0x221,_0x5b29a8:0x169,_0xb66e5a:0x1d4,_0x5b2400:0x1ce,_0xac912a:0x198,_0x1f7f2e:0x204,_0x4a52c6:0x7b,_0x2efc76:0x24a,_0x2de5e1:0x215,_0x5d9a62:0xca,_0x51b6aa:0xa7,_0x4a9532:0x148,_0x5e0deb:0x5d,_0x2fa712:0x199,_0x17a690:0x1ca,_0x226546:0x3b,_0x2331a5:0x6c,_0x365116:0x58,_0x119fd5:0x14c,_0x4b2bc7:0x225,_0x5b1c3e:0xf6,_0x2f95f0:0x327,_0x197336:0x37e,_0x26f31c:0x229,_0x1ad594:0x83,_0x31ad7b:0x97,_0x41e15f:0x176,_0x268a9f:0x48,_0x2cce12:0xb4,_0x818910:0x56,_0x95606e:0x18a},_0x134cda={_0x2f2912:0x12c,_0x5a5bc9:0x23f},_0xe6bc23={_0x319a49:0x59,_0x2e9a31:0x1c2};function _0x49b499(_0x5c8c79,_0x42fcfe,_0x3bfa52,_0x1c1ed2){return _0x4ebc2e(_0x3bfa52,_0x5c8c79- -0x327,_0x3bfa52-_0xe6bc23._0x319a49,_0x1c1ed2-_0xe6bc23._0x2e9a31);}function _0x35b541(_0x384e9b,_0x4e13e1,_0xaf6f6c,_0x20ad2c){return _0x1d9020(_0xaf6f6c,_0x4e13e1-_0x134cda._0x2f2912,_0x4e13e1- -_0x134cda._0x5a5bc9,_0x20ad2c-0x89);}if(!Array[_0x35b541(-0xc7,_0x1909ff._0x28e101,0x48,_0x1909ff._0x4c074c)](_0x176c39[_0x35b541(-0x89,-_0x1909ff._0x43ede9,-_0x1909ff._0xf2d12a,-_0x1909ff._0x242863)])||_0x176c39[_0x49b499(0x14c,0xf0,0x94,0x6d)][_0x49b499(0x1a4,0x103,0x121,0xea)]===0x0)throw new ToolExecutionError(_0x35b541(0x8f,_0x1909ff._0x2450cc,_0x1909ff._0x1871e7,_0x1909ff._0x19c0c1),{'error':_0x35b541(_0x1909ff._0x131ded,-_0x1909ff._0x49d166,-_0x1909ff._0x550924,0x95)});for(let _0x1a121a=0x0;_0x1a121a<_0x176c39[_0x49b499(_0x1909ff._0x5d2c57,0x24b,0x194,0x23b)]['length'];_0x1a121a+=0x1){const _0x26099a=_0x176c39[_0x35b541(-0x18b,-0x9a,-_0x1909ff._0x2c0d0d,-0x6d)][_0x1a121a];if(!_0x26099a||typeof _0x26099a!==_0x35b541(0x17b,0xc1,0x1b4,-_0x1909ff._0x2bc3ed))throw new ToolExecutionError(_0x35b541(-0xed,_0x1909ff._0x44e285,-0xc,_0x1909ff._0x528dd9)+(_0x1a121a+0x1)+_0x49b499(_0x1909ff._0x536572,0x1f6,_0x1909ff._0x46651d,0x1c0),{'error':_0x49b499(_0x1909ff._0x21c4fd,0x34d,0x400,_0x1909ff._0x5a64b4)});if(typeof _0x26099a['id']!==_0x35b541(-_0x1909ff._0x1bdf6f,-_0x1909ff._0x510bc7,-0x16e,_0x1909ff._0x49f203)||_0x26099a['id'][_0x49b499(_0x1909ff._0x2e4799,0x37d,_0x1909ff._0x557872,_0x1909ff._0x20de57)]()[_0x49b499(0x1a4,_0x1909ff._0x3e7f3e,0xf1,0x17c)]===0x0)throw new ToolExecutionError(_0x49b499(_0x1909ff._0x5c8217,_0x1909ff._0x5b29a8,_0x1909ff._0xb66e5a,_0x1909ff._0x5b2400)+(_0x1a121a+0x1)+_0x49b499(0x268,_0x1909ff._0xac912a,0x1d9,_0x1909ff._0x1f7f2e),{'error':_0x35b541(0x240,0x15f,0x141,0x5a)});if(typeof _0x26099a['content']!=='string'||_0x26099a[_0x35b541(0x48,-_0x1909ff._0x4a52c6,-0xc1,0x8)][_0x49b499(_0x1909ff._0x2efc76,_0x1909ff._0x2de5e1,0x35e,0x25e)]()['length']===0x0)throw new ToolExecutionError(_0x35b541(0x123,0x3b,-_0x1909ff._0x5d9a62,0xa2)+(_0x1a121a+0x1)+_0x49b499(0x12b,_0x1909ff._0x51b6aa,0x14b,0x3),{'error':_0x35b541(-0x1c1,-0xf2,0x38,-_0x1909ff._0x4a9532)});if(!isTodoStatus(_0x26099a['status']))throw new ToolExecutionError('Todo\x20'+(_0x1a121a+0x1)+_0x35b541(0x3,_0x1909ff._0x5e0deb,-0xb6,0x21),{'error':_0x49b499(0x2e2,_0x1909ff._0x2fa712,_0x1909ff._0x17a690,0x2b7)});if(!isTodoPriority(_0x26099a['priority']))throw new ToolExecutionError(_0x35b541(0x172,_0x1909ff._0x226546,0x123,_0x1909ff._0x2331a5)+(_0x1a121a+0x1)+':\x20invalid\x20priority',{'error':_0x35b541(0x45,0x1b,_0x1909ff._0x365116,0x1d)});}const _0x45d749=_0x176c39[_0x49b499(_0x1909ff._0x119fd5,_0x1909ff._0x4b2bc7,0x25c,_0x1909ff._0x5b1c3e)][_0x49b499(_0x1909ff._0x2f95f0,_0x1909ff._0x197336,0x435,_0x1909ff._0x26f31c)](_0x2ce829=>_0x2ce829['id']);if(new Set(_0x45d749)[_0x35b541(_0x1909ff._0x1ad594,_0x1909ff._0x31ad7b,-0x3e,0x1d4)]!==_0x45d749[_0x35b541(-_0x1909ff._0x41e15f,-0x42,-0x155,_0x1909ff._0x268a9f)])throw new ToolExecutionError(_0x49b499(0x123,_0x1909ff._0x2cce12,_0x1909ff._0x818910,_0x1909ff._0x95606e),{'error':'duplicate_todo_ids'});}function createStatsProgress(_0x3e5eca){const _0x546925={_0x2e2e04:0x316,_0x30117e:0x3cb,_0x397119:0x314},_0xd417be={_0x12203c:0xfa},_0x113fd8={_0x5609a7:0x22,_0x2eb471:0x15c};function _0x241aed(_0x47f407,_0x383116,_0x3433f4,_0x23f6b6){return _0x1d9020(_0x383116,_0x383116-_0x113fd8._0x5609a7,_0x3433f4- -_0x113fd8._0x2eb471,_0x23f6b6-0x1f3);}function _0x3ea17d(_0x4681d9,_0x44a15a,_0x4a97ef,_0x249ef0){return _0x1d9020(_0x4681d9,_0x44a15a-0x11c,_0x44a15a-0x1c1,_0x249ef0-_0xd417be._0x12203c);}return _0x3e5eca[_0x241aed(_0x546925._0x2e2e04,0xd4,0x209,0x2b3)]>0x0?Math[_0x3ea17d(0x413,0x372,_0x546925._0x30117e,0x412)](_0x3e5eca['completed']/_0x3e5eca[_0x241aed(_0x546925._0x397119,0x2bc,0x209,0x228)]*0x64)+'%':'0%';}function createReminderItems(_0x137fe4){const _0x3e6222={_0x428056:0x228,_0x28b0ef:0x15e},_0x3ef187={_0x1305bd:0x137},_0x1c99fb={_0x7cec26:0x193,_0x1b0ad1:0x2b2,_0x1071b4:0x173};function _0x29a1ea(_0x2b412f,_0x24b2a5,_0x38d441,_0x53a3dd){return _0x1d9020(_0x2b412f,_0x24b2a5-_0x1c99fb._0x7cec26,_0x24b2a5-_0x1c99fb._0x1b0ad1,_0x53a3dd-_0x1c99fb._0x1071b4);}function _0x26921f(_0x3652b3,_0x3908cc,_0x5179b1,_0x48e7aa){return _0x4ebc2e(_0x3908cc,_0x5179b1- -0x3ed,_0x5179b1-_0x3ef187._0x1305bd,_0x48e7aa-0x1b4);}return _0x137fe4[_0x26921f(0x1fc,_0x3e6222._0x428056,0x261,_0x3e6222._0x28b0ef)](_0x445fd6=>({'content':_0x445fd6[_0x29a1ea(0x41b,0x476,0x461,0x3c7)],'status':_0x445fd6[_0x29a1ea(0x49e,0x4c4,0x52f,0x500)],'id':_0x445fd6['id']}));}function createStructuredResult(_0x2bb9fb,_0xb2fef9,_0x4113eb,_0x8da1f6){const _0x2b7641={_0x387fd6:0x113,_0x503468:0x1be};function _0x3f1832(_0x4b6739,_0x486f9d,_0x1c63fd,_0xad9b0d){return _0x1d9020(_0x486f9d,_0x486f9d-_0x2b7641._0x387fd6,_0x1c63fd-_0x2b7641._0x503468,_0xad9b0d-0x17d);}function _0x14e7ce(_0x558137,_0xba653e,_0x6929d0,_0x37bb33){return _0x1d9020(_0x37bb33,_0xba653e-0x5e,_0x558137-0xf9,_0x37bb33-0x102);}return{'allCompleted':_0x8da1f6,'items':_0xb2fef9['map'](_0x5e47e9=>({'id':_0x5e47e9['id'],'content':_0x5e47e9['content'],'status':_0x5e47e9[_0x14e7ce(0x30b,0x40b,0x453,0x387)],'priority':_0x5e47e9[_0x3f1832(0x3b1,0x4a4,0x45d,0x315)],'createdAt':_0x5e47e9[_0x3f1832(0x3ca,0x5c1,0x509,0x4da)]})),'progress':createStatsProgress(_0x4113eb),'recentChanges':!![],'sessionId':_0x2bb9fb,'stats':_0x4113eb,'todosWritten':_0xb2fef9['length']};}function createOutputText(_0x31b62b,_0x53d7e7){const _0x4c6019={_0x39f000:0x1a6,_0x3ddfe6:0x1d5},_0x2b357d={_0x33ecc1:0x17a,_0x1b8c76:0x9d},_0x2f496c=JSON['stringify'](createReminderItems(_0x31b62b));if(_0x53d7e7)return'All\x20'+_0x31b62b['length']+'\x20todo\x20items\x20have\x20been\x20completed\x20successfully!\x0a\x0a<system-reminder>\x0aAll\x20todo\x20items\x20are\x20now\x20completed!\x20Ask\x20about\x20next\x20steps.\x20Completed\x20list:\x0a'+_0x2f496c+_0x113894(_0x4c6019._0x39f000,0x5e,0x1e9,_0x4c6019._0x3ddfe6);function _0x113894(_0x5db4bc,_0x568344,_0x537cb9,_0x5821b9){return _0x1d9020(_0x537cb9,_0x568344-_0x2b357d._0x33ecc1,_0x5db4bc- -_0x2b357d._0x1b8c76,_0x5821b9-0x47);}return'Todos\x20have\x20been\x20modified\x20successfully.\x20Continue\x20with\x20current\x20tasks\x20if\x20applicable.\x0a\x0a<system-reminder>\x0aYour\x20todo\x20list\x20has\x20changed.\x20DO\x20NOT\x20mention\x20this\x20explicitly\x20to\x20the\x20user.\x20Latest\x20contents:\x0a'+_0x2f496c+'.\x0a</system-reminder>';}function createTodoWriteTool(_0x26a759=new TodoStore()){const _0x3ed260={_0x5e8089:0x3a3,_0x2c8fe6:0x2fb,_0x20172e:0x29a,_0xc2a446:0x320,_0x5df3cf:0x320,_0x2eb02a:0x32e,_0x1090a4:0x314,_0x47a102:0x4a3,_0x2a2dc7:0x409,_0x22e861:0x4ef},_0x5a33b5={_0x1c5af8:0x90,_0x1fe5f0:0x43,_0x324275:0x1a1,_0x3681eb:0x129,_0x103a4a:0xd2,_0x5dadc0:0xee,_0x1939e6:0x92,_0x24f092:0x7de,_0x3ff694:0x5a8,_0x232483:0x5ca,_0x11b04b:0x44,_0x46109f:0xcf,_0x3971a1:0x197,_0x8bf23d:0xb,_0x572421:0xea,_0x14a27f:0x56b,_0x57c1d8:0x5d,_0x2d5fda:0x114},_0x51c715={_0x333251:0xdf,_0x18a5e5:0x4a},_0x159c72={_0x38dd72:0x1ea};function _0x54f3d6(_0xd8451e,_0x54fcca,_0x1a5d6f,_0x1eb776){return _0x1d9020(_0x1eb776,_0x54fcca-_0x159c72._0x38dd72,_0x54fcca-0x16a,_0x1eb776-0x17);}function _0x534642(_0x158d35,_0x260ee4,_0x3f472f,_0x3356e5){return _0x1d9020(_0x3356e5,_0x260ee4-_0x51c715._0x333251,_0x260ee4- -_0x51c715._0x18a5e5,_0x3356e5-0x3b);}return defineTool({'name':_0x54f3d6(_0x3ed260._0x5e8089,0x3d5,_0x3ed260._0x2c8fe6,_0x3ed260._0x20172e),'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':'array','items':{'type':'object','properties':{'content':{'type':_0x54f3d6(0x259,_0x3ed260._0xc2a446,0x294,0x217)},'status':{'type':'string'},'priority':{'type':_0x54f3d6(0x29b,_0x3ed260._0x5df3cf,0x290,0x3b7)},'id':{'type':'string'},'createdAt':{'type':'string'}},'required':[_0x54f3d6(0x34d,_0x3ed260._0x2eb02a,_0x3ed260._0x1090a4,0x44f),_0x54f3d6(0x46b,0x37c,_0x3ed260._0x47a102,0x407),_0x54f3d6(0x3d2,_0x3ed260._0x2a2dc7,0x403,_0x3ed260._0x22e861),'id']}}},'required':['todos']},async *'execute'(_0x2ec28f,_0x1aa35a){const _0x535156={_0x4f4d69:0x37c,_0x535125:0xf8};function _0x1c488f(_0x116e3b,_0x3f451f,_0x2aabe6,_0xfd34d9){return _0x534642(_0x116e3b-0xc9,_0x116e3b-_0x535156._0x4f4d69,_0x2aabe6-_0x535156._0x535125,_0x2aabe6);}function _0x2e3ccb(_0x119ea1,_0xa6b2d7,_0x43f75a,_0x1c1cdc){return _0x54f3d6(_0x119ea1-0x9a,_0xa6b2d7- -0x3e1,_0x43f75a-0x7b,_0x1c1cdc);}const _0x5372dd=_0x2ec28f;validateTodos(_0x5372dd);const _0x19a1ee=_0x1aa35a['sessionId']||_0x2e3ccb(-0xb8,-0x2,_0x5a33b5._0x1c5af8,_0x5a33b5._0x1fe5f0),_0x42102a=new Date()[_0x2e3ccb(-_0x5a33b5._0x324275,-0xfe,-_0x5a33b5._0x3681eb,-0x118)](),_0x2bcdaf=_0x5372dd[_0x2e3ccb(-0x24,-_0x5a33b5._0x103a4a,-_0x5a33b5._0x5dadc0,-_0x5a33b5._0x1939e6)][_0x1c488f(0x6b2,_0x5a33b5._0x24f092,_0x5a33b5._0x3ff694,_0x5a33b5._0x232483)](_0x41b3ac=>({'id':_0x41b3ac['id'],'content':_0x41b3ac[_0x1c488f(0x4f6,0x53e,0x579,0x58f)],'status':_0x41b3ac[_0x1c488f(0x544,0x553,0x544,0x445)],'priority':_0x41b3ac[_0x1c488f(0x5d1,0x518,0x639,0x5ef)],'sessionId':_0x19a1ee,'createdAt':_0x41b3ac[_0x1c488f(0x67d,0x645,0x772,0x76c)]||_0x42102a,'updatedAt':_0x42102a}));_0x26a759[_0x2e3ccb(_0x5a33b5._0x11b04b,-_0x5a33b5._0x46109f,-_0x5a33b5._0x3971a1,-0x88)](_0x19a1ee,_0x2bcdaf);const _0x557b8c=_0x26a759[_0x2e3ccb(-0x7e,_0x5a33b5._0x8bf23d,_0x5a33b5._0x572421,0x13c)](_0x19a1ee),_0x5ed4f7=_0x2bcdaf[_0x1c488f(0x52f,_0x5a33b5._0x14a27f,0x5c5,0x4bd)]>0x0&&_0x2bcdaf[_0x2e3ccb(-0xd8,_0x5a33b5._0x57c1d8,_0x5a33b5._0x2d5fda,0x100)](_0x42f975=>_0x42f975[_0x2e3ccb(-0xc,-0x65,-0x133,0xd)]===_0x1c488f(0x64b,0x6ea,0x567,0x65e));return createToolOutput(createOutputText(_0x2bcdaf,_0x5ed4f7),createStructuredResult(_0x19a1ee,_0x2bcdaf,_0x557b8c,_0x5ed4f7));}});}import{readFile as _0x1f15c2,stat as _0x619e73}from'fs/promises';import*as _0x40855b from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x4ebc2e(0x4c7,0x5ab,0x593,0x53a),_0x4ebc2e(0x54c,0x610,0x6ed,0x74a),'low',_0x4ebc2e(0x352,0x418,0x3ab,0x4c5)]),PNG_SIGNATURE=Buffer[_0x4ebc2e(0x6ef,0x65c,0x571,0x621)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x4b58ef,_0x2f13ec){const _0x4e11bb={_0x1c59d5:0x2b4,_0x488f3b:0x359,_0x15141c:0x302,_0x179b0b:0x18c,_0x2a6472:0x1d3,_0x2e8715:0x63,_0x11e2ba:0x387,_0x556f2a:0x4cc,_0x44589c:0x3c3,_0x347b4d:0x283,_0xf55a17:0x28d,_0x5d55e4:0x4de,_0x422a74:0x48d,_0x2e49f1:0x2ba,_0x491986:0x92,_0x6e0146:0x316,_0x2f8116:0x2b0,_0x405bea:0x30,_0x9b94e8:0x7d,_0x453d2f:0x43,_0x42c45b:0x20d,_0x2f6a81:0x22c,_0x510bd0:0x145,_0x5011a0:0x104,_0x3b846d:0x418,_0xa63c63:0x484,_0x282cc4:0x545,_0x4a5c91:0x4e0,_0x1f20fe:0x3f8,_0x170f36:0x38e,_0x1a3183:0x416,_0x35571a:0x336,_0xf7882d:0x34f,_0x526656:0x49d,_0x1e9077:0x36c,_0x26ffdd:0x165,_0x3b02f5:0x148},_0x5d1baf={_0x4e5dd5:0x158,_0x393204:0x11b},_0xa4cf34={_0x5c8377:0x6bf,_0x72c86d:0x8e};if(_0x4b58ef[_0x577978(0x334,0x394,0x4b6,_0x4e11bb._0x1c59d5)](0x0,0x8)[_0x577978(0x3d0,_0x4e11bb._0x488f3b,0x40c,0x22d)](PNG_SIGNATURE))return'image/png';if(_0x4b58ef[0x0]===0xff&&_0x4b58ef[0x1]===0xd8&&_0x4b58ef[0x2]===0xff)return'image/jpeg';function _0x2973aa(_0x47fa90,_0x4f58bd,_0x4a105,_0x5ebc9b){return _0x4ebc2e(_0x47fa90,_0x5ebc9b- -_0xa4cf34._0x5c8377,_0x4a105-0xb,_0x5ebc9b-_0xa4cf34._0x72c86d);}function _0x577978(_0x413272,_0x218c15,_0xb437a5,_0x2afe8c){return _0x4ebc2e(_0x413272,_0x218c15- -_0x5d1baf._0x4e5dd5,_0xb437a5-0x25,_0x2afe8c-_0x5d1baf._0x393204);}const _0x109c74=_0x4b58ef[_0x2973aa(-0xa7,-_0x4e11bb._0x15141c,-_0x4e11bb._0x179b0b,-_0x4e11bb._0x2a6472)](0x0,0x6)[_0x577978(0x3d7,0x316,0x3b5,0x320)](_0x2973aa(_0x4e11bb._0x2e8715,-0xd7,0xd7,-0x43));if(_0x109c74==='GIF87a'||_0x109c74===_0x577978(_0x4e11bb._0x11e2ba,_0x4e11bb._0x556f2a,0x60e,_0x4e11bb._0x44589c))return'image/gif';if(_0x4b58ef[_0x2973aa(-0x1d7,-0xc9,-0x25f,-_0x4e11bb._0x2a6472)](0x0,0x4)[_0x577978(_0x4e11bb._0x347b4d,0x316,0x280,_0x4e11bb._0xf55a17)](_0x577978(0x49a,0x524,0x442,0x5de))===_0x577978(0x52b,_0x4e11bb._0x5d55e4,0x503,_0x4e11bb._0x422a74)&&_0x4b58ef[_0x2973aa(-_0x4e11bb._0x2e49f1,-_0x4e11bb._0x491986,-0x31c,-_0x4e11bb._0x2a6472)](0x8,0xc)[_0x577978(0x2e2,_0x4e11bb._0x6e0146,0x405,_0x4e11bb._0x2f8116)](_0x2973aa(0xd9,_0x4e11bb._0x405bea,-_0x4e11bb._0x9b94e8,-_0x4e11bb._0x453d2f))===_0x2973aa(-_0x4e11bb._0x42c45b,-_0x4e11bb._0x2f6a81,-0x205,-_0x4e11bb._0x510bd0))return _0x2973aa(0x17,-0x6,-0x95,-_0x4e11bb._0x5011a0);const _0x36d610=_0x40855b[_0x577978(0x2a8,0x3d9,_0x4e11bb._0x3b846d,_0x4e11bb._0xa63c63)](_0x2f13ec)[_0x577978(_0x4e11bb._0x282cc4,_0x4e11bb._0x4a5c91,0x572,0x4df)]();if(_0x36d610===_0x577978(_0x4e11bb._0x1f20fe,0x392,_0x4e11bb._0x170f36,0x328))return'image/png';if(_0x36d610===_0x577978(0x394,0x3d3,0x519,0x41f)||_0x36d610==='.jpeg')return _0x577978(_0x4e11bb._0x1a3183,_0x4e11bb._0x35571a,0x285,_0x4e11bb._0xf7882d);if(_0x36d610===_0x577978(0x476,_0x4e11bb._0x526656,0x3a4,_0x4e11bb._0x1e9077))return _0x2973aa(-0x206,-0x173,-_0x4e11bb._0x26ffdd,-_0x4e11bb._0x3b02f5);if(_0x36d610==='.webp')return _0x2973aa(0x3f,-0x1e1,-0xb9,-0x104);return void 0x0;}function normalizeDetail(_0x4f1667){const _0x4bff5a={_0x2ccb34:0x66,_0x305204:0x18,_0x42fe64:0x15d},_0x5f1bd2={_0x4f02d4:0x1e5},_0x2ba2b0={_0x1c7726:0xb8};if(_0x4f1667===void 0x0)return void 0x0;const _0x22e24c=_0x4f1667[_0x3ad38b(-_0x4bff5a._0x2ccb34,0x9d,0x41,0x9)]()[_0x53a235(-0x1be,-_0x4bff5a._0x305204,-0xaf,-0x114)]();function _0x3ad38b(_0x2732a4,_0x99faf0,_0x48f0a8,_0x3090f3){return _0x1d9020(_0x2732a4,_0x99faf0-_0x2ba2b0._0x1c7726,_0x99faf0- -0x206,_0x3090f3-0xda);}function _0x53a235(_0x3de1b9,_0x117ff0,_0x24216a,_0x40645b){return _0x1d9020(_0x117ff0,_0x117ff0-0x86,_0x24216a- -0x419,_0x40645b-_0x5f1bd2._0x4f02d4);}if(!SUPPORTED_DETAILS['has'](_0x22e24c))throw new ToolExecutionError(_0x3ad38b(0x15a,0xef,_0x4bff5a._0x42fe64,0xee)+_0x4f1667,{'detail':_0x4f1667});return _0x22e24c;}function createViewFileTool(_0x1387e8={}){const _0x596c9f={_0x1a9baa:0x2c0,_0x151bad:0x22f,_0x3a3fd6:0x154,_0x362f70:0x6c5,_0x2209ee:0x515,_0x91bbe3:0x6c9,_0x40a660:0x6b1,_0x1fd42a:0x685,_0x4f0944:0x596,_0x29852d:0x6ec,_0x4ec381:0x5da,_0x1bc852:0x2a1,_0x3b20a1:0x426,_0x450777:0x342,_0x3df706:0x5ad,_0xbf7a79:0x671},_0x449397={_0x1f37dc:0x79b,_0x54ff81:0x561,_0x4b29bd:0x660,_0x2f6b56:0x49e,_0x8872b8:0x5ef,_0x19dde1:0x613,_0x1f9867:0x5d9,_0x50a699:0x46f,_0x48f941:0x3cd,_0x185447:0x4a5,_0xe7ccaf:0x214,_0x177517:0x1d6,_0x1e8be1:0x33a,_0x2ebdf3:0x437,_0x3e2122:0x44f,_0x2cf86c:0x403,_0x4684c:0x349,_0x2409de:0x42c,_0xc2cad2:0x5a2,_0x3bcd03:0x3ac,_0x86f431:0x51e,_0x444a1a:0x4c7,_0x350f9f:0x5a8,_0x3962f7:0x4b2,_0x582ec3:0x4d5,_0x37e8a3:0x433,_0x31d007:0x5ae,_0x45bcef:0x5b0,_0x36b1cb:0x6b0,_0x5537a7:0x4bf,_0x9d8a75:0x561,_0x191c99:0x2a2,_0x6f01d0:0x447,_0x1055c5:0x2ba,_0x324271:0x4a4,_0x50a24c:0x4d6,_0x5dbc8c:0x317,_0x569db5:0x538,_0x5c1c6e:0x40f,_0x328b2a:0x42a,_0xdee178:0x5a8,_0x27fa37:0x6f3,_0xf17dc3:0x6de,_0x8b54b:0x523,_0x4037d0:0x2c8,_0x363b86:0x41c,_0x55e85b:0x3b8,_0xc8a2ce:0x4aa,_0x4c0406:0x210,_0x4bc1f7:0x374,_0x385a64:0x35d,_0x1c8bcc:0x3a3},_0x5026b7={_0x2c4fef:0x107,_0x430539:0x9c},_0x37c20b={_0x237d28:0xb2},_0x452a0f={_0x5e320a:0xd2},_0x4e396f=_0x40855b[_0x1b0e4d(_0x596c9f._0x1a9baa,0xfd,_0x596c9f._0x151bad,_0x596c9f._0x3a3fd6)](_0x1387e8['defaultCwd']??process[_0x1445b3(_0x596c9f._0x362f70,_0x596c9f._0x2209ee,0x60a,0x65a)]()),_0x5b28a4=(_0x1387e8[_0x1445b3(_0x596c9f._0x91bbe3,_0x596c9f._0x40a660,_0x596c9f._0x1fd42a,0x5d0)]??[])['map'](_0x80dcf8=>_0x40855b[_0x1445b3(0x627,0x602,0x501,0x3fe)](_0x80dcf8));function _0x1445b3(_0x3a8cfb,_0x1594ea,_0x4dfd25,_0x3bc57b){return _0x4ebc2e(_0x3bc57b,_0x4dfd25-0x3f,_0x4dfd25-0x7c,_0x3bc57b-_0x452a0f._0x5e320a);}const _0x390155=_0x1387e8[_0x1445b3(_0x596c9f._0x4f0944,0x5d2,0x611,0x74f)]??DEFAULT_MAX_BYTES,_0x2f9771=_0x1387e8['name']??_0x1445b3(_0x596c9f._0x29852d,0x55c,0x5c6,_0x596c9f._0x4ec381);function _0x1b0e4d(_0x176ada,_0x2c57ba,_0x4cc8a0,_0x24bf4c){return _0x1d9020(_0x176ada,_0x2c57ba-_0x37c20b._0x237d28,_0x4cc8a0-0x3b,_0x24bf4c-0x11);}return defineTool({'name':_0x2f9771,'description':'View\x20an\x20image\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories\x20so\x20the\x20model\x20can\x20inspect\x20its\x20visual\x20content.\x20Supports\x20PNG,\x20JPEG,\x20WebP,\x20and\x20GIF\x20images.\x20Use\x20this\x20for\x20screenshots,\x20diagrams,\x20photos,\x20and\x20other\x20image\x20files;\x20use\x20FileRead\x20for\x20text\x20files.','inputSchema':{'type':_0x1b0e4d(_0x596c9f._0x1bc852,_0x596c9f._0x3b20a1,0x33b,_0x596c9f._0x450777),'properties':{'path':{'type':'string'},'detail':{'type':_0x1445b3(_0x596c9f._0x3df706,0x557,0x4c3,0x5ec)}},'required':[_0x1445b3(_0x596c9f._0xbf7a79,0x76b,0x6c2,0x65b)]},async *'execute'(_0x135048){const _0x54f0fa={_0x5827b6:0xd9,_0x522027:0x1df},_0x5e642f=resolveAllowedPath(_0x4e396f,_0x5b28a4,_0x135048[_0x2ed126(0x624,_0x449397._0x1f37dc,_0x449397._0x54ff81,_0x449397._0x4b29bd)]);await assertWorkspaceFile(_0x5e642f);const _0xa397f0=await _0x619e73(_0x5e642f);if(_0xa397f0['size']>_0x390155)throw new ToolExecutionError(_0x2ed126(_0x449397._0x2f6b56,_0x449397._0x8872b8,_0x449397._0x19dde1,0x4cd)+_0x135048[_0x3d9752(_0x449397._0x1f9867,0x562,0x5d0,0x584)],{'path':_0x135048['path'],'maxBytes':_0x390155,'size':_0xa397f0[_0x3d9752(0x563,_0x449397._0x50a699,_0x449397._0x48f941,_0x449397._0x185447)]});function _0x3d9752(_0x5ebdd7,_0x141efb,_0x1bdfed,_0x3e8484){return _0x1445b3(_0x5ebdd7-_0x54f0fa._0x5827b6,_0x141efb-_0x54f0fa._0x522027,_0x3e8484- -0x13e,_0x5ebdd7);}const _0x3c634b=await _0x1f15c2(_0x5e642f),_0x56bc28=detectImageMediaType(_0x3c634b,_0x5e642f);if(!_0x56bc28)throw new ToolExecutionError(_0x3d9752(_0x449397._0xe7ccaf,_0x449397._0x177517,_0x449397._0x1e8be1,0x2fa)+_0x135048['path'],{'path':_0x135048[_0x2ed126(0x58b,0x6b2,0x74d,0x660)],'supported':['.gif',_0x2ed126(0x4ee,0x316,0x3de,_0x449397._0x2ebdf3),_0x3d9752(_0x449397._0x3e2122,_0x449397._0x2cf86c,_0x449397._0x4684c,_0x449397._0x2409de),_0x2ed126(_0x449397._0xc2cad2,_0x449397._0x3bcd03,_0x449397._0x86f431,_0x449397._0x444a1a),_0x2ed126(0x3c2,_0x449397._0x350f9f,_0x449397._0x3962f7,_0x449397._0x582ec3)]});const _0x29737c=normalizeDetail(_0x135048[_0x2ed126(0x3dc,_0x449397._0x37e8a3,_0x449397._0x31d007,0x4e9)]);function _0x2ed126(_0x390292,_0x3874b9,_0x17b377,_0x23e453){return _0x1b0e4d(_0x390292,_0x3874b9-_0x5026b7._0x2c4fef,_0x23e453-0x270,_0x23e453-_0x5026b7._0x430539);}const _0x409339=['Viewed\x20image\x20file:\x20'+_0x135048[_0x2ed126(_0x449397._0x45bcef,_0x449397._0x36b1cb,0x5d5,_0x449397._0x4b29bd)],'MIME:\x20'+_0x56bc28,_0x3d9752(0x577,_0x449397._0x185447,_0x449397._0x5537a7,_0x449397._0x9d8a75)+_0xa397f0['size']+_0x3d9752(0x3b8,0x41c,_0x449397._0x191c99,0x349)][_0x3d9752(0x47c,0x499,_0x449397._0x6f01d0,0x574)](_0x29737c?['Detail:\x20'+_0x29737c]:[])[_0x2ed126(0x452,0x32a,_0x449397._0x1055c5,0x3e3)]('\x0a'),_0x108cf5=[{'type':'image','source':{'type':_0x3d9752(0x3e4,0x504,_0x449397._0x324271,_0x449397._0x50a24c),'media_type':_0x56bc28,'data':_0x3c634b[_0x2ed126(_0x449397._0x5dbc8c,0x3e4,_0x449397._0x569db5,0x44b)](_0x3d9752(0x5bd,0x58c,0x509,0x4d6))}},{'type':_0x3d9752(_0x449397._0x5c1c6e,_0x449397._0x328b2a,_0x449397._0xdee178,0x53b),'text':_0x409339}];return yield createToolOutput(_0x409339,{'path':_0x135048[_0x2ed126(_0x449397._0x27fa37,_0x449397._0xf17dc3,0x788,0x660)],'resolvedPath':_0x5e642f,'created':_0xa397f0[_0x3d9752(0x611,0x5fc,0x546,_0x449397._0x8b54b)][_0x3d9752(0x392,_0x449397._0x4037d0,_0x449397._0x363b86,0x348)](),'modified':_0xa397f0[_0x2ed126(0x477,_0x449397._0x55e85b,_0x449397._0xc8a2ce,0x45d)][_0x3d9752(_0x449397._0x4c0406,0x3d8,0x35d,0x348)](),'size':_0xa397f0[_0x3d9752(_0x449397._0x4bc1f7,_0x449397._0x385a64,0x44b,0x4a5)],'mimeType':_0x56bc28,'encoding':_0x3d9752(_0x449397._0x1c8bcc,0x3d1,0x4f3,0x4d6),..._0x29737c?{'detail':_0x29737c}:{}},_0x108cf5),void 0x0;}});}import _0x155878 from'turndown';var USER_AGENT='Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_7)\x20AppleWebKit/537.36\x20NuvinBot/1.0',DEFAULT_MAX_BYTES2=0xf4240,DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x1dc286){const _0x139dc4={_0x42c72e:0x223,_0x34137a:0x21e,_0x36dd4f:0x143,_0xe604e2:0x2e,_0x3b3efa:0x98,_0x5ec439:0x50,_0x333031:0x26,_0x4727ff:0x16d,_0x21fbee:0x155,_0x151914:0x57,_0xe975e5:0x216,_0x4f04d7:0x73,_0xaecb95:0x3e,_0x30afbd:0x11e,_0x2f40eb:0x183,_0x56081c:0x1af,_0x1e39e0:0x8f},_0x11fb57={_0x4d1cbf:0x497},_0x42b040={_0x27bedb:0x3b1,_0x15975b:0x1af,_0x5c7ceb:0xe6};function _0x582447(_0x4df077,_0x1e6cce,_0x383c4d,_0x37cab7){return _0x4ebc2e(_0x37cab7,_0x1e6cce- -_0x42b040._0x27bedb,_0x383c4d-_0x42b040._0x15975b,_0x37cab7-_0x42b040._0x5c7ceb);}let _0x18c6ab;try{_0x18c6ab=new URL(_0x1dc286);}catch{throw new ToolExecutionError(_0x582447(0x265,_0x139dc4._0x42c72e,0x242,_0x139dc4._0x34137a),{'url':_0x1dc286});}function _0x4f08f9(_0xf559ec,_0x27a9b1,_0x404c2b,_0x3dbda2){return _0x4ebc2e(_0x3dbda2,_0xf559ec- -_0x11fb57._0x4d1cbf,_0x404c2b-0x2b,_0x3dbda2-0x1a6);}if(_0x18c6ab[_0x582447(0x1c3,0x172,_0x139dc4._0x36dd4f,0x59)]!==_0x4f08f9(-_0x139dc4._0xe604e2,_0x139dc4._0x3b3efa,-_0x139dc4._0x5ec439,-_0x139dc4._0x333031)&&_0x18c6ab[_0x4f08f9(0x8c,0x69,_0x139dc4._0x4727ff,0xd4)]!==_0x582447(-0xf,0xd9,_0x139dc4._0x21fbee,-_0x139dc4._0x151914))throw new ToolExecutionError('Only\x20http://\x20and\x20https://\x20URLs\x20are\x20supported',{'url':_0x1dc286});if(_0x18c6ab['username']||_0x18c6ab[_0x582447(_0x139dc4._0xe975e5,0x22d,0x1c6,0x24f)])throw new ToolExecutionError(_0x4f08f9(0x3,-_0x139dc4._0x4f04d7,-0x15,-0x11f),{'url':_0x18c6ab[_0x582447(_0x139dc4._0xaecb95,0x172,_0x139dc4._0x30afbd,_0x139dc4._0x2f40eb)]+'//'+_0x18c6ab[_0x4f08f9(-0x70,-0x103,-_0x139dc4._0x56081c,_0x139dc4._0x1e39e0)]+_0x18c6ab['pathname']});return _0x18c6ab;}function parseContentLength(_0x161d7d){if(!_0x161d7d)return void 0x0;const _0x852ac7=Number(_0x161d7d);return Number['isFinite'](_0x852ac7)&&_0x852ac7>=0x0?_0x852ac7:void 0x0;}function createTimeoutSignal(_0x33a6d9,_0x11db27){const _0x48602e={_0x50ee1a:0x3e3,_0x48fe86:0xde,_0x931945:0x136,_0x517f52:0x3d,_0x54e749:0x132,_0x24f9e8:0x1d1,_0x36b0e9:0x52e,_0x62dc00:0x389,_0x361d72:0xb4,_0x1c18a6:0x17b},_0x47919b={_0x32757d:0x604,_0x5dbf15:0x76c,_0x123820:0x645,_0x26c10f:0x635,_0x3609a8:0x2fb,_0x2f5a96:0x26b},_0x528901={_0x66ef0e:0x25b,_0x13bad9:0xd7},_0x32bc9d={_0x54d5b2:0x1a8},_0x730c62={_0x3d3932:0x180,_0x3afe29:0x1a9},_0x542e5e=new AbortController(),_0x3c2bb4=setTimeout(()=>_0x542e5e[_0x4fdfb2(0x39f,0x2b7,0x2a5,0x309)](new Error(_0x4fdfb2(0x1da,0x260,0x241,0x10a))),_0x11db27);function _0x535bd2(_0x560b28,_0x1e0190,_0x235fbb,_0x3c1d94){return _0x1d9020(_0x1e0190,_0x1e0190-_0x730c62._0x3d3932,_0x235fbb- -_0x730c62._0x3afe29,_0x3c1d94-0x1b2);}function _0x4fdfb2(_0x5b1db1,_0x26e2a7,_0x32ba4a,_0x48bdb9){return _0x4ebc2e(_0x48bdb9,_0x32ba4a- -0x1e2,_0x32ba4a-0x29,_0x48bdb9-_0x32bc9d._0x54d5b2);}const _0x5e3161=()=>_0x542e5e[_0x535bd2(-0x66,-0xdb,0x10,-0xca)](_0x33a6d9[_0x535bd2(0x166,0xaa,0x132,0x105)]);return _0x33a6d9[_0x4fdfb2(_0x48602e._0x50ee1a,0x3ff,0x2d3,0x309)]?_0x542e5e[_0x535bd2(-0x4a,_0x48602e._0x48fe86,0x10,_0x48602e._0x931945)](_0x33a6d9[_0x535bd2(_0x48602e._0x517f52,0x72,_0x48602e._0x54e749,_0x48602e._0x24f9e8)]):_0x33a6d9[_0x4fdfb2(0x42b,_0x48602e._0x36b0e9,0x492,_0x48602e._0x62dc00)](_0x535bd2(-0xd3,_0x48602e._0x361d72,0x10,0x97),_0x5e3161,{'once':!![]}),{'signal':_0x542e5e[_0x535bd2(0xfd,0x14c,0xc9,_0x48602e._0x1c18a6)],'cleanup':()=>{const _0x80deb7={_0x3be5ba:0x492,_0x2cae86:0x45};function _0x540a63(_0x166861,_0xc4aeef,_0x3b1b32,_0x41908f){return _0x535bd2(_0x166861-0xd7,_0xc4aeef,_0x3b1b32-_0x80deb7._0x3be5ba,_0x41908f-_0x80deb7._0x2cae86);}clearTimeout(_0x3c2bb4);function _0xc371f(_0x4e1761,_0x2ed5d2,_0x58a89d,_0x1c5786){return _0x535bd2(_0x4e1761-0x125,_0x58a89d,_0x1c5786-_0x528901._0x66ef0e,_0x1c5786-_0x528901._0x13bad9);}_0x33a6d9[_0x540a63(_0x47919b._0x32757d,_0x47919b._0x5dbf15,_0x47919b._0x123820,_0x47919b._0x26c10f)](_0xc371f(0x17f,0x12b,_0x47919b._0x3609a8,_0x47919b._0x2f5a96),_0x5e3161);}};}function createWebFetchTool(_0x25283b={}){const _0x82bbce={_0x11f0f0:0x5e1,_0xa77ee3:0x641,_0x5dad52:0x510,_0x405e21:0x5f6,_0x301c27:0x62f,_0x187243:0x530,_0x178c07:0x3ef,_0x2fd07b:0x42e,_0x4c2360:0x165,_0x48974c:0x211,_0x239aa9:0x613,_0x2022f7:0x503,_0x5d4213:0x6c3,_0x32d379:0x5b7,_0x19aff7:0x6af,_0x43b198:0x44e,_0x41648b:0x493,_0x587b7d:0x607,_0x2543f0:0x671,_0x21f80e:0x740,_0x5f3b69:0x459,_0x520c89:0x561,_0x3d81e4:0x261,_0x41393d:0x18d,_0x440f95:0x709,_0xed8921:0x4ff,_0x19e76c:0x2d8,_0x4ace0a:0x47f,_0x5dd543:0x17c,_0x3bd0be:0x396,_0x404f7c:0x45d,_0x2cb12d:0x5df,_0x5df1d2:0x447},_0x38c5e1={_0x110efa:0x415,_0x2a36ae:0x30c,_0x1436f5:0x2fd,_0x4d4651:0x338,_0x504583:0xe1,_0x54ee84:0x2c9,_0x51dcb7:0xaf,_0x347ace:0x10f,_0x31b017:0x176,_0x1a75db:0x140,_0x4a00a0:0x5e,_0x4fca98:0x283,_0x1e95c8:0x8,_0x3b99d8:0x196,_0x5e790e:0x64,_0x14a115:0x344,_0x2b46e9:0x20f,_0x5dc60a:0x268,_0x60181d:0x247,_0x319985:0x355,_0x145626:0x24f,_0x49182f:0xfb,_0x731e04:0x196,_0x11b734:0x2cd,_0x10cd49:0x13a,_0x19770a:0x277,_0x4cbb81:0xb5,_0x1a6b32:0x25b,_0x1f4c72:0x1ce,_0xccd3ae:0x236,_0x50bedf:0x275,_0x2e5a5b:0x217,_0x1c8290:0xef,_0x5757bb:0x1c1,_0x5df2be:0x24f,_0xb13892:0x264,_0x3ff2be:0x24c,_0x3bfbda:0x381,_0x9c8b82:0x410,_0x567b4c:0x32e,_0x21e252:0x295,_0x1c4742:0x7d,_0x50bbbc:0x74,_0x15051d:0x1a8,_0x2dc820:0x135,_0x3f8a95:0xe2,_0x949aea:0x212,_0x15aec2:0x3c2,_0x465e10:0x139,_0x24c02c:0x1eb,_0x63387:0x1c3,_0xd68370:0x188,_0x2ceb7c:0x1bc,_0x3cd9fe:0x211,_0x2b361c:0xf5,_0x47cd93:0x198,_0x2f6e9f:0x9c,_0x4972f3:0x87,_0x35be3c:0x1d3},_0x2faa36={_0x35a040:0xc3,_0x307cf4:0x14f,_0x2daf4d:0x526},_0x3e12e9={_0xcb8592:0x178,_0x5dbef7:0xd1},_0x141a4a={_0x9c4720:0xa9,_0x134c17:0x34d,_0x4590ff:0x18e},_0x33d63d=_0x25283b[_0x960ed4(_0x82bbce._0x11f0f0,0x5c9,_0x82bbce._0xa77ee3,0x6a2)]??_0x960ed4(_0x82bbce._0x5dad52,0x55e,_0x82bbce._0x405e21,_0x82bbce._0x301c27),_0x1dd1fc=_0x25283b[_0x960ed4(0x651,0x557,0x626,_0x82bbce._0x187243)]??DEFAULT_MAX_BYTES2,_0x334902=_0x25283b[_0x308bcf(0x2f7,0x361,_0x82bbce._0x178c07,_0x82bbce._0x2fd07b)]??DEFAULT_TIMEOUT_MS2,_0x142242=new _0x155878({'headingStyle':_0x308bcf(0x34f,_0x82bbce._0x4c2360,_0x82bbce._0x48974c,0x183),'codeBlockStyle':_0x960ed4(0x5c6,_0x82bbce._0x239aa9,_0x82bbce._0x2022f7,_0x82bbce._0x5d4213),'bulletListMarker':'-'});_0x142242[_0x960ed4(_0x82bbce._0x32d379,0x679,_0x82bbce._0x19aff7,0x581)]([_0x308bcf(_0x82bbce._0x43b198,0x59b,0x470,_0x82bbce._0x41648b),_0x960ed4(_0x82bbce._0x587b7d,0x639,_0x82bbce._0x2543f0,_0x82bbce._0x21f80e),'noscript',_0x308bcf(0x3ff,_0x82bbce._0x5f3b69,0x47e,_0x82bbce._0x520c89),'nav',_0x308bcf(_0x82bbce._0x3d81e4,_0x82bbce._0x41393d,0x290,0x296),_0x960ed4(0x6ef,0x602,_0x82bbce._0x440f95,0x76d),'aside']);function _0x960ed4(_0x306d6a,_0x431bbd,_0x6bb344,_0x1baa24){return _0x1d9020(_0x1baa24,_0x431bbd-_0x141a4a._0x9c4720,_0x306d6a-_0x141a4a._0x134c17,_0x1baa24-_0x141a4a._0x4590ff);}function _0x308bcf(_0x1bd5ed,_0x81df25,_0x1ca12f,_0x178ee9){return _0x1d9020(_0x178ee9,_0x81df25-_0x3e12e9._0xcb8592,_0x1ca12f-_0x3e12e9._0x5dbef7,_0x178ee9-0x1df);}return defineTool({'name':_0x33d63d,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':_0x308bcf(_0x82bbce._0xed8921,_0x82bbce._0x19e76c,0x3d1,0x41b),'properties':{'description':{'type':_0x960ed4(_0x82bbce._0x2022f7,_0x82bbce._0x4ace0a,0x5f3,0x55b)},'url':{'type':_0x308bcf(_0x82bbce._0x5dd543,_0x82bbce._0x4c2360,0x287,_0x82bbce._0x3bd0be)}},'required':[_0x960ed4(0x4a5,_0x82bbce._0x404f7c,_0x82bbce._0x2cb12d,_0x82bbce._0x5df1d2)]},async *'execute'(_0x5ddee3,_0x279fc6){function _0x104625(_0x5b601f,_0x3cff76,_0x30eae7,_0x1eb3e9){return _0x308bcf(_0x5b601f-_0x2faa36._0x35a040,_0x3cff76-_0x2faa36._0x307cf4,_0x1eb3e9- -_0x2faa36._0x2daf4d,_0x5b601f);}const _0x3dea3b=assertFetchableUrl(_0x5ddee3[_0x104625(-_0x38c5e1._0x110efa,-0x3dd,-_0x38c5e1._0x2a36ae,-_0x38c5e1._0x1436f5)])[_0x104625(-0x1fe,-_0x38c5e1._0x4d4651,-0x31d,-0x2b5)]();if(_0x279fc6['signal'][_0x259bf0(-0x13a,-0x23b,-0x69,-_0x38c5e1._0x504583)])throw new ToolExecutionError(_0x104625(-0x2dc,-_0x38c5e1._0x54ee84,-0x386,-0x2c6),{'url':_0x3dea3b});const _0x512625=createTimeoutSignal(_0x279fc6[_0x259bf0(-_0x38c5e1._0x51dcb7,0x56,-0x77,-0x6a)],_0x334902);let _0x2d12d7='',_0x5dfae6=0x0,_0x5d21b7;try{const _0x303a8e=await fetch(_0x3dea3b,{'headers':{'User-Agent':USER_AGENT},'signal':_0x512625[_0x259bf0(-_0x38c5e1._0x51dcb7,-0x107,-0x99,0x6c)]});if(!_0x303a8e['ok'])throw new ToolExecutionError('HTTP\x20'+_0x303a8e[_0x259bf0(-_0x38c5e1._0x347ace,-_0x38c5e1._0x31b017,-0x4d,-0x238)]+'\x20'+_0x303a8e[_0x259bf0(-_0x38c5e1._0x1a75db,-_0x38c5e1._0x4a00a0,-_0x38c5e1._0x4fca98,-0x205)],{'url':_0x3dea3b,'statusCode':_0x303a8e[_0x259bf0(-0x10f,_0x38c5e1._0x1e95c8,-0x1f2,-0x7d)]});const _0x22f1c3=parseContentLength(_0x303a8e[_0x259bf0(-_0x38c5e1._0x3b99d8,-_0x38c5e1._0x5e790e,-0x2d7,-0x1f9)]['get'](_0x104625(-0x2b8,-_0x38c5e1._0x14a115,-0x355,-_0x38c5e1._0x2b46e9)));if(_0x22f1c3!==void 0x0&&_0x22f1c3>_0x1dd1fc)throw new ToolExecutionError(_0x104625(-0x183,-0xd7,-0x234,-0x138)+_0x22f1c3+_0x104625(-_0x38c5e1._0x5dc60a,-0x379,-0x214,-_0x38c5e1._0x60181d)+_0x1dd1fc+_0x104625(-_0x38c5e1._0x319985,-0x329,-0x1c3,-0x2db),{'url':_0x3dea3b,'statusCode':_0x303a8e[_0x259bf0(-0x10f,-_0x38c5e1._0x145626,-_0x38c5e1._0x49182f,-0x36)],'contentLength':_0x22f1c3,'maxBytes':_0x1dd1fc});_0x2d12d7=_0x303a8e[_0x259bf0(-_0x38c5e1._0x731e04,-0x2b5,-_0x38c5e1._0x11b734,-_0x38c5e1._0x10cd49)][_0x104625(-_0x38c5e1._0x19770a,-_0x38c5e1._0x4cbb81,-_0x38c5e1._0x1a6b32,-_0x38c5e1._0x1f4c72)](_0x104625(-_0x38c5e1._0xccd3ae,-0x294,-_0x38c5e1._0x50bedf,-0x294))??'',_0x5dfae6=_0x303a8e[_0x104625(-0x24a,-0x353,-_0x38c5e1._0x2e5a5b,-0x243)],_0x5d21b7=await _0x303a8e[_0x259bf0(0x4b,0x10a,-_0x38c5e1._0x1c8290,0x58)]();}catch(_0x4ae7f0){if(_0x4ae7f0 instanceof ToolExecutionError)throw _0x4ae7f0;const _0x1321b3=_0x4ae7f0 instanceof Error?_0x4ae7f0[_0x104625(-0x330,-_0x38c5e1._0x5757bb,-_0x38c5e1._0x5df2be,-0x201)]:String(_0x4ae7f0);throw new ToolExecutionError(_0x1321b3,{'url':_0x3dea3b});}finally{_0x512625[_0x104625(-0x22f,-_0x38c5e1._0xb13892,-_0x38c5e1._0x3b99d8,-_0x38c5e1._0x3ff2be)]();}if(Buffer[_0x104625(-_0x38c5e1._0x3bfbda,-_0x38c5e1._0x9c8b82,-_0x38c5e1._0x567b4c,-0x31c)](_0x5d21b7,_0x104625(-_0x38c5e1._0x21e252,-_0x38c5e1._0x1c4742,-_0x38c5e1._0x50bbbc,-_0x38c5e1._0x15051d))>_0x1dd1fc)throw new ToolExecutionError(_0x259bf0(-_0x38c5e1._0x2dc820,-0x210,-0xb,-_0x38c5e1._0x3f8a95)+_0x1dd1fc+_0x259bf0(-0x1a7,-0x79,-0x77,-_0x38c5e1._0x949aea),{'url':_0x3dea3b,'statusCode':_0x5dfae6,'maxBytes':_0x1dd1fc});const _0x2a3486=new Date()[_0x104625(-0x2ee,-0x24e,-_0x38c5e1._0x15aec2,-0x2dc)]();let _0x1d66e2,_0x3d1b5f;function _0x259bf0(_0x32c3ef,_0xa72efe,_0x40ba77,_0x1e97d0){return _0x308bcf(_0x32c3ef-0x9b,_0xa72efe-0xf2,_0x32c3ef- -0x3f2,_0xa72efe);}if(_0x2d12d7['includes'](_0x104625(-_0x38c5e1._0x465e10,-_0x38c5e1._0x24c02c,0x31,-0xa6)))_0x1d66e2=_0x259bf0(-_0x38c5e1._0x63387,-_0x38c5e1._0xd68370,-0xbf,-0x10e)+_0x5d21b7+_0x259bf0(-0x132,-_0x38c5e1._0x2ceb7c,0x11,-0xdd),_0x3d1b5f=_0x104625(-_0x38c5e1._0x3cd9fe,-0x13d,-0x11b,-_0x38c5e1._0x2b361c);else _0x2d12d7[_0x259bf0(-_0x38c5e1._0x47cd93,-_0x38c5e1._0x2f6e9f,-_0x38c5e1._0x4972f3,-0x23b)]('text/html')?(_0x1d66e2=_0x142242[_0x104625(-_0x38c5e1._0x35be3c,-0x102,-0xfc,-0x1a2)](_0x5d21b7),_0x3d1b5f='markdown'):(_0x1d66e2=_0x5d21b7,_0x3d1b5f='text');return yield createToolOutput(_0x1d66e2,{'url':_0x3dea3b,'contentType':_0x2d12d7,'statusCode':_0x5dfae6,'format':_0x3d1b5f,'size':_0x5d21b7['length'],'fetchedAt':_0x2a3486}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x1d9020(0x266,0x18c,0x163,0x8c);function normalizeUrl(_0x25679c){const _0x3ebaf7={_0x2b1cb6:0x53d,_0x19493d:0x409,_0x167057:0x3d6,_0x2f9bf0:0x53a,_0x2de4cb:0x3ff,_0x33de56:0x464,_0x173400:0x563,_0x8f09aa:0x535,_0x1cd52f:0x519,_0x3c5244:0x49d,_0x550c5a:0x408,_0x86b25e:0x4e7,_0x272b5b:0x3b4},_0x22da0d={_0x3be978:0x1f3,_0x4bc5bd:0x129},_0x32e538={_0x5aace3:0xf6,_0xc4af28:0x34};function _0x24e3d4(_0x2c5704,_0x5d0aa3,_0x3eb3e6,_0x1e9883){return _0x4ebc2e(_0x3eb3e6,_0x2c5704- -0x120,_0x3eb3e6-_0x32e538._0x5aace3,_0x1e9883-_0x32e538._0xc4af28);}function _0x526622(_0x53d061,_0x127eb1,_0x49a3c4,_0x52c730){return _0x4ebc2e(_0x52c730,_0x49a3c4- -0xba,_0x49a3c4-_0x22da0d._0x3be978,_0x52c730-_0x22da0d._0x4bc5bd);}try{const _0x6ac5df=new URL(_0x25679c);for(const _0x5ea252 of['utm_source',_0x24e3d4(_0x3ebaf7._0x2b1cb6,_0x3ebaf7._0x19493d,0x3f6,0x435),_0x24e3d4(_0x3ebaf7._0x167057,0x428,0x30f,0x3e9),'utm_term',_0x526622(_0x3ebaf7._0x2f9bf0,0x2c5,_0x3ebaf7._0x2de4cb,0x3d2),_0x526622(_0x3ebaf7._0x33de56,0x50b,_0x3ebaf7._0x173400,0x64c),'fbclid','mc_cid',_0x526622(_0x3ebaf7._0x8f09aa,_0x3ebaf7._0x1cd52f,0x4e7,0x417)]){_0x6ac5df['searchParams'][_0x24e3d4(_0x3ebaf7._0x3c5244,_0x3ebaf7._0x550c5a,_0x3ebaf7._0x86b25e,0x5c2)](_0x5ea252);}return _0x6ac5df[_0x526622(0x43a,0x277,_0x3ebaf7._0x272b5b,0x376)]();}catch{return _0x25679c;}}function cseDateRestrict(_0x188a8e){const _0x5605bc={_0x1c2bbf:0x0,_0x1ac67d:0x12,_0x91677b:0x141,_0x36fd29:0x3c,_0x3fb8c7:0xa2,_0x15f19b:0xfc,_0x55fa97:0x36,_0x46ef88:0x6a},_0x45f50d={_0x52da13:0x268,_0x1a17c6:0x80},_0x2deea1={_0x4ae799:0x1,_0x1a831e:0x1e4};function _0x28a9ec(_0x63fd35,_0x21e7cb,_0x5a6ac9,_0x1f9086){return _0x1d9020(_0x63fd35,_0x21e7cb-_0x2deea1._0x4ae799,_0x5a6ac9- -0x2b9,_0x1f9086-_0x2deea1._0x1a831e);}if(_0x188a8e<=0x0)return void 0x0;if(_0x188a8e<=0x1e)return'd'+Math[_0x28a9ec(0xe0,_0x5605bc._0x1c2bbf,_0x5605bc._0x1ac67d,_0x5605bc._0x91677b)](0x1,Math[_0x113cc6(-_0x5605bc._0x36fd29,_0x5605bc._0x3fb8c7,0x93,-_0x5605bc._0x15f19b)](_0x188a8e));function _0x113cc6(_0x5349b3,_0x3331e8,_0x32a96c,_0x4813ac){return _0x1d9020(_0x4813ac,_0x3331e8-0xa7,_0x5349b3- -_0x45f50d._0x52da13,_0x4813ac-_0x45f50d._0x1a17c6);}if(_0x188a8e<=0x16d)return'm'+Math['ceil'](_0x188a8e/0x1e);return'y'+Math[_0x113cc6(_0x5605bc._0x55fa97,_0x5605bc._0x46ef88,-0x67,0x75)](_0x188a8e/0x16d);}function addSiteFilters(_0x5f059f,_0x11b7b9){const _0x42b2ec={_0x43d7cd:0x49f,_0x4526fe:0x3ea,_0x2fcb13:0x4f5,_0x3d7c01:0x4c8,_0x1fe4bf:0x4da,_0x2b3806:0x4d9,_0x4d8dbe:0x4b3,_0x37a38f:0x446,_0x5da807:0x45c},_0x4dc9d0={_0x2f2982:0x101,_0xc07306:0x10};function _0x2b9476(_0x124548,_0x356a6d,_0x592716,_0x5bfd40){return _0x4ebc2e(_0x5bfd40,_0x356a6d- -_0x4dc9d0._0x2f2982,_0x592716-_0x4dc9d0._0xc07306,_0x5bfd40-0x27);}if(_0x11b7b9[_0xd38258(0x39c,0x46f,_0x42b2ec._0x43d7cd,_0x42b2ec._0x4526fe)]===0x0)return _0x5f059f['trim']();function _0xd38258(_0x13d9ff,_0x26166c,_0x4dca15,_0x1fb148){return _0x4ebc2e(_0x13d9ff,_0x26166c- -0x5c,_0x4dca15-0x1f,_0x1fb148-0x122);}return(_0x5f059f+'\x20('+_0x11b7b9[_0x2b9476(0x67b,0x54d,0x408,_0x42b2ec._0x2fcb13)](_0x26dcd2=>_0xd38258(0x572,0x58a,0x4b9,0x6d0)+_0x26dcd2)['join'](_0xd38258(_0x42b2ec._0x3d7c01,_0x42b2ec._0x1fe4bf,0x43d,_0x42b2ec._0x2b3806))+')')[_0x2b9476(_0x42b2ec._0x4d8dbe,0x470,_0x42b2ec._0x37a38f,_0x42b2ec._0x5da807)]();}function normalizeType(_0x2e7c77){const _0x48aff5={_0x1734e8:0x266,_0x13d3d4:0x18f,_0x306d88:0x8a,_0x25274f:0x1fd,_0x1aa0df:0x7e},_0x16cb71={_0x2ed58d:0x143,_0x544509:0x18,_0x4b18c1:0x111},_0x4ab576={_0x31fe1d:0x5eb,_0x502eda:0xf2};function _0x249179(_0x48185b,_0x3a21bb,_0x4e2863,_0x33608a){return _0x4ebc2e(_0x4e2863,_0x33608a- -_0x4ab576._0x31fe1d,_0x4e2863-0x1af,_0x33608a-_0x4ab576._0x502eda);}function _0x12bcb0(_0x41f73a,_0x53f7c3,_0x8fb8b6,_0x19e950){return _0x1d9020(_0x41f73a,_0x53f7c3-_0x16cb71._0x2ed58d,_0x8fb8b6-_0x16cb71._0x544509,_0x19e950-_0x16cb71._0x4b18c1);}return _0x2e7c77==='images'?_0x12bcb0(0x155,_0x48aff5._0x1734e8,_0x48aff5._0x13d3d4,_0x48aff5._0x306d88):_0x12bcb0(0x1d3,_0x48aff5._0x25274f,0x14f,_0x48aff5._0x1aa0df);}async function fetchJson(_0x31d94b,_0xc7f627){const _0x289dce={_0xbc3d75:0x161,_0x4451d3:0x2,_0x253c0e:0x1c8,_0x2173e1:0x10d,_0x3c620d:0x7d,_0x578327:0x14e,_0x3e81bf:0x201,_0x18b307:0x186,_0x5c9810:0xb7,_0xde2e1c:0x7e,_0x5879cb:0x1a,_0x744c1e:0x4b,_0x34543a:0x136,_0x21c69b:0x1ff,_0x26aefe:0x125,_0x534882:0x17f,_0x59ffa1:0xd,_0x3a3acb:0xc2},_0x1fafcb={_0x54be9d:0x140,_0x26b401:0x34f},_0x9f50e9=await fetch(_0x31d94b,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x3d2cec(0x60,0x57,_0x289dce._0xbc3d75,-_0x289dce._0x4451d3)},'signal':_0xc7f627});function _0x90f8d5(_0x4265ab,_0x27a610,_0x39ebc0,_0x38d888){return _0x4ebc2e(_0x38d888,_0x39ebc0- -0x58e,_0x39ebc0-0x183,_0x38d888-0x3d);}function _0x3d2cec(_0x299c14,_0x1377c9,_0x4643fa,_0x4f94d9){return _0x1d9020(_0x4f94d9,_0x1377c9-_0x1fafcb._0x54be9d,_0x299c14- -_0x1fafcb._0x26b401,_0x4f94d9-0x48);}if(!_0x9f50e9['ok']){await _0x9f50e9[_0x3d2cec(-0x194,-0x2a6,-0x253,-_0x289dce._0x253c0e)]?.[_0x3d2cec(-_0x289dce._0x2173e1,-_0x289dce._0x3c620d,-0x1cb,-_0x289dce._0x578327)]()[_0x90f8d5(-0x202,-_0x289dce._0x3e81bf,-_0x289dce._0x18b307,-_0x289dce._0x253c0e)](()=>void 0x0);throw new ToolExecutionError('HTTP\x20'+_0x9f50e9[_0x90f8d5(-_0x289dce._0x5c9810,_0x289dce._0xde2e1c,-0xae,-_0x289dce._0x5879cb)]+'\x20'+_0x9f50e9[_0x90f8d5(_0x289dce._0x744c1e,-_0x289dce._0x34543a,-0xdf,-_0x289dce._0x21c69b)],{'statusCode':_0x9f50e9[_0x3d2cec(-0x13d,-_0x289dce._0x26aefe,-0x241,-_0x289dce._0x534882)]});}return await _0x9f50e9[_0x90f8d5(_0x289dce._0x59ffa1,_0x289dce._0x3a3acb,0xa0,0x106)]();}async function hydrateResults(_0x5575c2,_0xa2911a,_0x52b1c3){const _0x3de73f={_0x5cec70:0x78b,_0x380bcf:0x700,_0x3563ff:0x356,_0x5d6947:0x396,_0x4dbc17:0x521,_0x55f2f7:0x454,_0x1130b9:0x41b,_0x2ba858:0x4ac,_0x4b6119:0x70f,_0x2ae3e7:0x547,_0x28ad25:0x60b,_0x3ddcb9:0x454,_0x4e194e:0x454,_0x4ffeb3:0x31e},_0x1b85ac={_0x3878f8:0x7b,_0x10f1f7:0x128,_0x4332bf:0x18c},_0x3c362c={_0xe0f136:0xd4},_0x159ebb={_0x4930ba:0x76,_0x367ab8:0x8b,_0x53cf89:0x163,_0x44c920:0xd,_0x2d5e5c:0x121,_0x4abcbb:0x86,_0xe627ab:0x282,_0x3bd0d5:0x1b0,_0x70a8d1:0x115,_0x439984:0xf3,_0x42a5d0:0x11f,_0x36731a:0xaf,_0x2c987d:0x1c9,_0x298872:0x3d,_0x5174b0:0xa0,_0x49faa1:0x41,_0x4f0d41:0xbf,_0x2d623f:0xe3,_0x4ccc3a:0x4a,_0x1079e0:0x11,_0x1346c3:0x10e,_0x1c81b1:0x249,_0xae5c3d:0x1be,_0x3a35c5:0x184,_0x5d4901:0x13,_0xb48c9b:0xac,_0x71b93c:0x115,_0x240f13:0x3,_0x427c79:0x1a9,_0x1608eb:0xf6,_0x442376:0x8e,_0x11cd87:0x2ee,_0x4baa3e:0x23e,_0x4e3a0c:0x1b0,_0x1f2325:0x24e,_0x13f026:0x131,_0x2443e3:0x5,_0x68bfc:0x157,_0x3143bf:0x21c,_0x55cd5f:0x1f2,_0x1e4c45:0x27b,_0x445cb:0x35c},_0x104627=await Promise[_0x4072c5(_0x3de73f._0x5cec70,0x782,_0x3de73f._0x380bcf,0x7a0)](_0x5575c2[_0x2d7adf(_0x3de73f._0x3563ff,_0x3de73f._0x5d6947,0x4cb,0x328)](0x0,0xa)[_0x2d7adf(_0x3de73f._0x4dbc17,_0x3de73f._0x55f2f7,_0x3de73f._0x1130b9,_0x3de73f._0x2ba858)](async _0x261f60=>{const _0x30e3d2={_0x1b7c28:0x4e},_0x517c99={_0xb664b7:0x51e};function _0x21e600(_0x7ef607,_0x51e8c9,_0x5acd12,_0x344fb7){return _0x4072c5(_0x7ef607-0x171,_0x51e8c9-0xa1,_0x344fb7- -_0x517c99._0xb664b7,_0x51e8c9);}function _0x5bed95(_0x495cbb,_0x4609d7,_0x5ef6e3,_0x1dba2f){return _0x2d7adf(_0x495cbb-0x62,_0x5ef6e3- -0x456,_0x5ef6e3-_0x30e3d2._0x1b7c28,_0x495cbb);}try{const _0x2d29a9=await fetch(_0x261f60[_0x21e600(_0x159ebb._0x4930ba,0x94,-_0x159ebb._0x367ab8,-0x7d)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0xa2911a,'Accept':_0x21e600(0x156,0xed,_0x159ebb._0x53cf89,0x30)},'signal':_0x52b1c3});if(!_0x2d29a9['ok'])return _0x261f60;const _0x97dda3=await _0x2d29a9[_0x5bed95(_0x159ebb._0x44c920,-_0x159ebb._0x2d5e5c,-0x16,0xb9)](),_0x58de36=load(_0x97dda3),_0x2e1ad1=_0x58de36(_0x5bed95(-0xf7,0x10b,-0x3c,_0x159ebb._0x4abcbb))[_0x5bed95(-0xd1,-_0x159ebb._0xe627ab,-_0x159ebb._0x3bd0d5,-0x10e)](_0x21e600(-0x13a,-0x12,-_0x159ebb._0x70a8d1,-0x11))||_0x58de36('title')[_0x21e600(_0x159ebb._0x439984,_0x159ebb._0x42a5d0,0x1cb,_0x159ebb._0x36731a)]()[_0x21e600(0x1a9,0x150,_0x159ebb._0x2c987d,0x197)]()[_0x21e600(_0x159ebb._0x2c987d,-_0x159ebb._0x298872,0x11c,0xce)](),_0x19070b=_0x58de36(_0x5bed95(-0xd9,-_0x159ebb._0x5174b0,-0xe8,-_0x159ebb._0x49faa1))[_0x5bed95(-0xbe,-0x17b,-0x1b0,-_0x159ebb._0x4f0d41)](_0x21e600(-_0x159ebb._0x2d623f,-_0x159ebb._0x4ccc3a,-0x13d,-_0x159ebb._0x1079e0))||_0x58de36(_0x5bed95(-0x32e,-0x25c,-0x23f,-0x215))[_0x21e600(0x87,-0x55,_0x159ebb._0x1346c3,-0x3)](_0x5bed95(-_0x159ebb._0x1c81b1,-0xf0,-_0x159ebb._0xae5c3d,-_0x159ebb._0x3a35c5))||_0x261f60[_0x5bed95(-0x14d,0x2d,-0x43,_0x159ebb._0x5d4901)],_0x42ed8a=_0x58de36(_0x21e600(_0x159ebb._0xb48c9b,0x194,-0x66,0x8b))[_0x21e600(_0x159ebb._0x71b93c,-0xb8,0x3a,-_0x159ebb._0x240f13)](_0x5bed95(-_0x159ebb._0x427c79,-0x1b6,-0x1be,-0x11d))||_0x58de36(_0x21e600(-_0x159ebb._0x1608eb,-0x16f,-0x7d,-_0x159ebb._0x442376))[_0x5bed95(-_0x159ebb._0x11cd87,-_0x159ebb._0x4baa3e,-_0x159ebb._0x4e3a0c,-0x117)](_0x5bed95(-0xb6,-_0x159ebb._0x1f2325,-0x157,-_0x159ebb._0x42a5d0))||_0x261f60[_0x21e600(_0x159ebb._0x13f026,0x2d4,0x229,0x19b)],_0x278b20=_0x58de36(_0x5bed95(-_0x159ebb._0x2443e3,0xb7,-0x71,-0x121))[_0x5bed95(-_0x159ebb._0x68bfc,-_0x159ebb._0x3143bf,-0x1b0,-0x191)](_0x21e600(0x69,0x1d3,0x5c,0x9a));return{..._0x261f60,'title':_0x2e1ad1||_0x261f60[_0x21e600(-0x48,0x157,_0x159ebb._0x55cd5f,0xdd)],'snippet':_0x19070b,'url':_0x278b20?normalizeUrl(new URL(_0x278b20,_0x261f60[_0x5bed95(-0x206,-_0x159ebb._0x1e4c45,-0x22a,-0x369)])['toString']()):_0x261f60[_0x5bed95(-0x1d0,-_0x159ebb._0x445cb,-0x22a,-0x107)],'publishedAt':_0x42ed8a};}catch{return _0x261f60;}})),_0x27aabf=new Map(_0x5575c2[_0x4072c5(_0x3de73f._0x4b6119,_0x3de73f._0x2ae3e7,_0x3de73f._0x28ad25,0x5aa)](0x0,0xa)[_0x2d7adf(0x311,_0x3de73f._0x3ddcb9,0x3c5,0x35f)]((_0x34b2e0,_0x4113cd)=>[_0x34b2e0[_0x4072c5(0x379,0x430,0x4a1,0x388)],_0x104627[_0x4113cd]]));function _0x2d7adf(_0x50948e,_0x2254f7,_0x305bb5,_0x328d72){return _0x1d9020(_0x328d72,_0x2254f7-0x16d,_0x2254f7-_0x3c362c._0xe0f136,_0x328d72-0x52);}function _0x4072c5(_0xf2ceab,_0x33cd1a,_0x621b22,_0x487609){return _0x4ebc2e(_0x487609,_0x621b22-_0x1b85ac._0x3878f8,_0x621b22-_0x1b85ac._0x10f1f7,_0x487609-_0x1b85ac._0x4332bf);}return _0x5575c2[_0x2d7adf(0x562,_0x3de73f._0x4e194e,0x478,_0x3de73f._0x4ffeb3)](_0x484ad5=>_0x27aabf['get'](_0x484ad5['url'])??_0x484ad5);}function formatResults(_0x5cb02e){const _0x4019a4={_0xc14d13:0x1e4,_0x511a5d:0x145,_0x1fc119:0x2b9,_0x1b7c53:0x332,_0x1f1af1:0x1d1,_0x288221:0x0,_0x524143:0xa0,_0x2fa2fc:0x11f,_0x184747:0x254},_0x5957b9={_0x493a03:0x25f,_0x448dcc:0xb6,_0x50347f:0x27b,_0x106b1f:0x2de,_0xb0034f:0x1c5,_0x2cda55:0x3f1,_0x4bfc95:0x3c0,_0x33f4c4:0x361,_0x51b6b8:0x252,_0x55c635:0x2f3,_0x51b09b:0x222,_0xd31233:0x224,_0x505898:0x412,_0x2cdde5:0x15a,_0x526a49:0x169},_0xc470a3={_0x5e8ce9:0x441},_0x430692={_0x4ad35d:0x61,_0x1d9108:0x2a2},_0x44d69a={_0x297db1:0xfd,_0x2c1241:0x192},_0x49e86a={_0x4ae5ef:0x38f};if(_0x5cb02e[_0x66380a(_0x4019a4._0xc14d13,_0x4019a4._0x511a5d,_0x4019a4._0x1fc119,0xa2)]===0x0)return _0x66380a(0x280,_0x4019a4._0x1b7c53,0x275,_0x4019a4._0x1f1af1);function _0x1e7e70(_0x4f1eb4,_0x107089,_0x31aac9,_0xb9ea01){return _0x1d9020(_0xb9ea01,_0x107089-0xf2,_0x107089- -_0x49e86a._0x4ae5ef,_0xb9ea01-0xff);}function _0x66380a(_0x41dd42,_0x185dcd,_0x45bfc2,_0x13efec){return _0x4ebc2e(_0x13efec,_0x41dd42- -0x2e7,_0x45bfc2-_0x44d69a._0x297db1,_0x13efec-_0x44d69a._0x2c1241);}return _0x5cb02e[_0x1e7e70(_0x4019a4._0x288221,-0xf,-_0x4019a4._0x524143,-0xf4)](_0x5c0de7=>{const _0x2ed089=[_0x5c0de7[_0xde65c0(_0x5957b9._0x493a03,0x5b,0x11a,_0x5957b9._0x448dcc)][_0xa983d2(0x36f,0x3b2,_0x5957b9._0x50347f,0x3e0)]+'.\x20'+_0x5c0de7[_0xde65c0(_0x5957b9._0x106b1f,0xaf,_0x5957b9._0xb0034f,0x2bb)],_0x5c0de7['url']];if(_0x5c0de7[_0xa983d2(_0x5957b9._0x2cda55,0x32f,0x2e8,_0x5957b9._0x4bfc95)])_0x2ed089['push'](_0x5c0de7[_0xde65c0(0x37f,_0x5957b9._0x33f4c4,_0x5957b9._0x51b6b8,_0x5957b9._0x55c635)]);function _0xde65c0(_0x5d5a07,_0x49ad50,_0x5b4b7d,_0x478c0a){return _0x1e7e70(_0x5d5a07-_0x430692._0x4ad35d,_0x5b4b7d-_0x430692._0x1d9108,_0x5b4b7d-0xd0,_0x478c0a);}if(_0x5c0de7[_0xa983d2(0x422,0x4c4,0x382,0x4ff)])_0x2ed089['push'](_0xde65c0(0x289,0x108,_0x5957b9._0x51b09b,_0x5957b9._0xd31233)+_0x5c0de7[_0xa983d2(0x422,0x513,_0x5957b9._0x505898,0x2da)]);function _0xa983d2(_0x17ec87,_0x3d4282,_0x150c51,_0x56bb05){return _0x1e7e70(_0x17ec87-0x1c8,_0x17ec87-_0xc470a3._0x5e8ce9,_0x150c51-0x1f4,_0x150c51);}return _0x2ed089[_0xa983d2(0x1ea,0x223,_0x5957b9._0x2cdde5,_0x5957b9._0x526a49)]('\x0a');})[_0x66380a(_0x4019a4._0x2fa2fc,_0x4019a4._0x184747,0x8e,0x20d)]('\x0a\x0a');}async function searchGoogleCse(_0x5e8842,_0x3dacd4,_0x3ece40){const _0x4db540={_0x54b190:0x404,_0x682e89:0x2f7,_0xaf5f98:0x225,_0x228967:0x3f7,_0x2bab0c:0x39b,_0x28c49a:0x49d,_0x2a5c05:0x1d8,_0x14c8f2:0x29b,_0x40071a:0x219,_0x3b04d3:0x32d,_0x1e6c55:0x40c,_0x2fad0a:0x2e8,_0x3e9dcb:0x28b,_0x47de23:0x2eb,_0xfcecd0:0x26c,_0x2687f8:0x3a7,_0x300c02:0x274,_0x1f871a:0x139,_0x138a61:0x35d,_0x2a21e9:0x223,_0x4d1640:0x3d6,_0x7ad0a2:0x3ea,_0x3c0098:0x457,_0x371558:0x34f,_0x36eb6f:0x23e,_0x5bfd46:0x151,_0x5d3294:0x233,_0x50d697:0x292,_0x58c565:0x328,_0x486ec8:0x227,_0xc5ac86:0x319,_0x301071:0x1bc,_0x50bae6:0x1e6,_0xf9b0e2:0x234,_0x19b212:0x10c,_0x3eb3dd:0x27b,_0x3267d8:0x394,_0x23c369:0x134,_0x552395:0x2b6,_0x1bfd0a:0x197,_0x40c156:0x18d,_0x70321b:0x156,_0x86a96b:0x232,_0x227f3e:0x301,_0x364747:0x2a4,_0x46cc3e:0x369,_0x54777f:0x29a,_0x20a47a:0x486,_0x59d5e0:0x335,_0x2030a9:0x402,_0x3bdc5f:0x1d0,_0x6bb5de:0x1d6,_0x2bb034:0x2eb,_0x20266d:0x545,_0x3bf89d:0xf0,_0x1a8bd0:0x19c,_0x52b0ae:0x1f5,_0x3b3e81:0x406,_0x4ec01c:0x3cc,_0x4c1b70:0x27d,_0x5f13c3:0x222,_0x56cc62:0xec,_0x16ad89:0x1a3,_0x39a115:0x1c5,_0x3837c6:0x16e,_0x563b38:0x16d,_0xca9889:0x452,_0x3fe5a5:0x4a8,_0x36e53d:0x31e,_0x15ba39:0x274,_0x6e0045:0x345,_0xc6e647:0x249,_0x3a228d:0x282,_0x5ecb86:0x1c8,_0x17fb8c:0x190,_0x345c07:0x217,_0x573bf4:0x266,_0xe6b618:0x47e,_0x5f55fd:0x467,_0x8fe8ff:0x39a,_0x5829e6:0x35d,_0xacabd5:0x3ba,_0x467d4a:0x2b4,_0x31ea2a:0x46c,_0x3ef1b0:0x452,_0x57ed01:0x4cb,_0x5f4810:0x250,_0x54b167:0x200,_0x5a148d:0x304,_0x3a0d05:0x2d2,_0x5b5709:0x427,_0x49b5bf:0x3e5,_0x899f6:0x433,_0x12b5f5:0x417,_0x599b41:0x252,_0x21f14c:0x111,_0x555fd5:0xb6,_0x30069a:0x189,_0x2e44aa:0x103,_0x25efea:0x229,_0x4f816d:0x2a8,_0x5cecd6:0x1d8,_0x21fc7a:0x239},_0x452cf5={_0x90215e:0x1ac},_0x50c0a2={_0x41e70a:0x19c,_0x540483:0x12f};function _0x398bcd(_0x42ecd4,_0x4768bf,_0x47c081,_0x4ee5e5){return _0x1d9020(_0x47c081,_0x4768bf-_0x50c0a2._0x41e70a,_0x42ecd4-0xab,_0x4ee5e5-_0x50c0a2._0x540483);}const _0x5dc01f=Math[_0x853a29(_0x4db540._0x54b190,0x1fb,_0x4db540._0x682e89,_0x4db540._0xaf5f98)](0x1,Math['min'](0x32,_0x3dacd4[_0x398bcd(_0x4db540._0x228967,_0x4db540._0x2bab0c,0x2fa,_0x4db540._0x28c49a)]));if(_0x3dacd4['offset']+_0x5dc01f>0x64)throw new ToolExecutionError(_0x853a29(_0x4db540._0x2a5c05,_0x4db540._0x14c8f2,_0x4db540._0x40071a,0xfa),{'offset':_0x3dacd4[_0x398bcd(0x1e8,0x1fb,_0x4db540._0x3b04d3,0x10a)],'count':_0x5dc01f,'maxResults':0x64});const _0x33ddff=cseDateRestrict(_0x3dacd4[_0x398bcd(0x367,0x3d5,0x381,_0x4db540._0x1e6c55)]),_0x3883da=addSiteFilters(_0x3dacd4[_0x853a29(0x33e,_0x4db540._0x2fad0a,_0x4db540._0x3e9dcb,0x32a)],_0x3dacd4[_0x853a29(0x181,_0x4db540._0x47de23,0x2c1,0x21c)]);let _0x34aae3=0x0;function _0x853a29(_0x21573c,_0x4edba8,_0x416f19,_0x4c819a){return _0x4ebc2e(_0x4c819a,_0x416f19- -0x2a2,_0x416f19-_0x452cf5._0x90215e,_0x4c819a-0xfd);}let _0x2931ef=_0x3dacd4['offset']+0x1;const _0x3a2da5=[];while(_0x34aae3<_0x5dc01f){const _0x28f472=Math[_0x398bcd(0x348,_0x4db540._0xfcecd0,0x257,_0x4db540._0x2687f8)](0xa,_0x5dc01f-_0x34aae3),_0x53af26=new URL('https://www.googleapis.com/customsearch/v1');_0x53af26[_0x398bcd(_0x4db540._0x300c02,0x13a,_0x4db540._0x1f871a,_0x4db540._0x138a61)]['set']('key',_0x5e8842[_0x398bcd(0x334,_0x4db540._0x2a21e9,0x42f,_0x4db540._0x4d1640)]),_0x53af26['searchParams'][_0x853a29(_0x4db540._0x7ad0a2,_0x4db540._0x3c0098,_0x4db540._0x371558,_0x4db540._0x36eb6f)]('cx',_0x5e8842['googleCseCx']),_0x53af26[_0x398bcd(0x274,0x202,_0x4db540._0x5bfd46,0x2bf)][_0x853a29(0x43b,_0x4db540._0x5d3294,_0x4db540._0x371558,0x3ab)]('q',_0x3883da),_0x53af26['searchParams'][_0x853a29(0x227,_0x4db540._0x50d697,0x34f,0x402)](_0x853a29(0x49a,_0x4db540._0x58c565,0x3a6,0x376),String(_0x28f472)),_0x53af26[_0x398bcd(0x274,_0x4db540._0x486ec8,_0x4db540._0xc5ac86,_0x4db540._0x301071)]['set'](_0x398bcd(_0x4db540._0x50bae6,_0x4db540._0xf9b0e2,0xb9,_0x4db540._0x19b212),String(_0x2931ef)),_0x53af26[_0x398bcd(0x274,_0x4db540._0x3eb3dd,_0x4db540._0x3267d8,_0x4db540._0x23c369)]['set'](_0x853a29(_0x4db540._0x552395,_0x4db540._0x1bfd0a,0x1f3,0x1f1),_0x3dacd4[_0x853a29(0xcc,_0x4db540._0x40c156,0x1f3,_0x4db540._0x70321b)]?'active':'off');_0x3dacd4[_0x853a29(_0x4db540._0x86a96b,_0x4db540._0x227f3e,_0x4db540._0x364747,_0x4db540._0x46cc3e)]&&(_0x53af26['searchParams'][_0x398bcd(0x3ce,_0x4db540._0x54777f,_0x4db540._0x20a47a,_0x4db540._0x59d5e0)]('hl',_0x3dacd4['lang']),_0x53af26['searchParams']['set']('lr',_0x853a29(_0x4db540._0x2030a9,0x361,0x336,0x258)+_0x3dacd4[_0x853a29(_0x4db540._0x3bdc5f,_0x4db540._0x6bb5de,0x2a4,_0x4db540._0x301071)]));if(_0x3dacd4[_0x398bcd(0x40c,0x546,_0x4db540._0x2bb034,_0x4db540._0x20266d)])_0x53af26[_0x853a29(_0x4db540._0x3bf89d,_0x4db540._0x1a8bd0,_0x4db540._0x52b0ae,0x174)][_0x398bcd(0x3ce,_0x4db540._0x3b3e81,0x4ac,0x290)]('gl',_0x3dacd4[_0x398bcd(0x40c,_0x4db540._0x4ec01c,0x388,0x358)]['toUpperCase']());if(_0x3dacd4[_0x853a29(0x3ea,_0x4db540._0x4c1b70,0x37f,0x2e3)]===_0x853a29(_0x4db540._0x5f13c3,_0x4db540._0x56cc62,_0x4db540._0x16ad89,_0x4db540._0x39a115))_0x53af26[_0x398bcd(0x274,_0x4db540._0x3837c6,_0x4db540._0x563b38,0x2eb)]['set']('searchType',_0x398bcd(_0x4db540._0xca9889,_0x4db540._0x3fe5a5,_0x4db540._0x36e53d,0x542));if(_0x33ddff)_0x53af26[_0x398bcd(_0x4db540._0x15ba39,_0x4db540._0x6e0045,_0x4db540._0xc6e647,0x2d1)]['set'](_0x398bcd(0x38c,0x25a,0x3c0,0x4d1),_0x33ddff);const _0xb21758=await fetchJson(_0x53af26['toString'](),_0x3ece40),_0x4eaff2=_0xb21758[_0x398bcd(_0x4db540._0x3a228d,0x2e2,_0x4db540._0x5ecb86,0x322)]??[];if(_0x4eaff2['length']===0x0)break;const _0x18175d=_0x34aae3;for(let _0xa90570=0x0;_0xa90570<_0x4eaff2[_0x398bcd(0x2a8,0x16f,_0x4db540._0x17fb8c,0x3c1)];_0xa90570++){const _0x27df17=_0x4eaff2[_0xa90570];if(!_0x27df17)continue;const _0x517b57=_0x27df17[_0x853a29(_0x4db540._0x345c07,0x245,0x31d,_0x4db540._0x573bf4)]||_0x27df17[_0x398bcd(0x452,_0x4db540._0xe6b618,0x42b,0x4b0)]?.[_0x853a29(_0x4db540._0x5f55fd,_0x4db540._0x8fe8ff,_0x4db540._0x5829e6,0x447)]||'',_0x3c6238=_0x27df17[_0x398bcd(_0x4db540._0x138a61,_0x4db540._0xacabd5,_0x4db540._0x467d4a,_0x4db540._0x31ea2a)]||_0x27df17[_0x398bcd(_0x4db540._0x3ef1b0,0x32a,_0x4db540._0x57ed01,0x51a)]?.['title']||_0x853a29(0x205,_0x4db540._0x5f4810,_0x4db540._0x54b167,_0x4db540._0x5a148d),_0x169ec6=_0x27df17[_0x398bcd(_0x4db540._0x7ad0a2,_0x4db540._0x3a0d05,_0x4db540._0x5b5709,0x2a4)]||_0x27df17['htmlSnippet']?.[_0x398bcd(0x3fd,0x46f,_0x4db540._0x49b5bf,0x342)](/<[^>]+>/g,''),_0x6be6d5=_0x27df17[_0x398bcd(0x33c,_0x4db540._0x899f6,0x281,_0x4db540._0x12b5f5)]?.[_0x853a29(_0x4db540._0x599b41,0x363,0x222,_0x4db540._0x21f14c)]?.[0x0]??{};let _0x3cc4ef;try{_0x3cc4ef=new URL(_0x517b57)[_0x853a29(_0x4db540._0x555fd5,_0x4db540._0x30069a,0x185,_0x4db540._0x2e44aa)];}catch{_0x3cc4ef=null;}_0x3a2da5['push']({'title':_0x3c6238,'url':normalizeUrl(_0x517b57),'snippet':_0x169ec6??null,'displayUrl':_0x3cc4ef,'favicon':null,'publishedAt':_0x6be6d5['article:published_time']||_0x6be6d5['og:updated_time']||null,'source':{'engine':'google-cse','rank':_0x18175d+_0xa90570+0x1}});}_0x34aae3+=_0x4eaff2['length'],_0x2931ef+=_0x4eaff2[_0x853a29(0x122,0x341,_0x4db540._0x25efea,0x2fd)];if(_0x4eaff2[_0x398bcd(_0x4db540._0x4f816d,0x2c7,_0x4db540._0x5cecd6,_0x4db540._0x21fc7a)]<_0x28f472)break;}return _0x3a2da5['slice'](0x0,_0x5dc01f);}function _0x1e7b(){const _0x1768f1=['vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','zhj5uNvU','B3b0Aw9UywW','Aw5FChjVz3jLC3m','yM9VBgvHBG','lMPZB24','yxv0AfjLCxvPCMvK','y3DK','C2vYDMvY','zxHPDa','B2jQzwn0','B3v0z29PBMDdywXSCW','CNvUBMLUzW','y2fJAgvK','Bwf4qNL0zxm','D29YA3nWywnLl3n5BwjVBa','sw52ywXPzcbvuKWGCgfYyw1LDgvY','yMfZzty0','BxrPBwvnCW','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','BgfUz18','oIaIAgvHzgvYiIbTDxn0igjLig1HEcaYmcbJAgfYywn0zxjZlcbNB3qG','zw51Bq','AwDUB3jLt3v0Chv0','zgvSzwDHDgvKlxj1BI0','uhvIBgLZAgvKoIa','CgfZC3DVCMq','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','zgfYAW','Dg9VBfjLC3vSDhm','y2XPzw50CW','C2vYDMvYswq','DgvZDa','zMXHDe1HCa','C2L0ztO','y29TCgXLDgvK','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','Bg9HzfnRAwXS','ugf0AcbUB3qGzM91BMq6ia','uMvZCg9UC2uGDg9VigXHCMDLoIa','DgLTzw91De1Z','CMvMCMvZAf90B2TLBG','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','lNrZ','Aw5qCM9NCMvZCW','C2v0','ls1ZDgrPBW','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','AwDUB3jL','lMDPzG','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','AgfZq2XPzw50CW','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','te9dquXbufbeqvrb','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','BgLZDgvU','Dgv4DerVy3vTzw50l2rPze9Wzw4','y29UDgvUDhm','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','y29UDgv4DeXPBMS','Dgv4DerVy3vTzw50l2rPzenSB3nL','rM91BMqG','igzYB20G','C3rHCNrZv2L0Aa','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','BNbT','AxnfCNjVCG','DgfZA2TPBgW','zMLSzvzLCNnPB25Z','Aw52ywXPzf90B2rVx3n0yxr1CW','lunVBw1HBMq','BwvTB3j5','CxvLC3rPB24T','C25PChbLDa','Dw5RBM93BG','z2XVyG','AgLNAa','zMLSDgvY','lMnTza','tM8GC3vJAcbMAwXLoIaN','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','C2vUza','AxnjBNrLz2vY','A2v5CW','zgvZy3jPChrPB24','y3jLyxrLzef0','y291BNq','ChjLzML4','qxzHAwXHyMXLignVBw1HBMrZoG','z2nSAwq','CgfJA2fNzu5HBwu','CM9VDa','CMvWBgfJzq','DhLWzq','yMLYDgH0Aw1L','Aw52ywXPzf90B2rVx2L0zw0','r0LgodLH','CNvUswq','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','BgLTAxq','C2HPzNq','zMLUza','CMvTB3zLrxzLBNrmAxn0zw5LCG','q29TBwfUzcaN','Bg9JyxrPB24','DMfSDwu','ANnVBG','CMvNAw9U','zMLSzq','y2XPzw50twv0ywrHDgfvCMW','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','Dg90ywW','mc4WlJa','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFs0vz','uKLgrG','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','Dg9mB3DLCKnHC2u','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','Dgv4Da','BhnWu2vYDMLJzq','v2vIu2vHCMnO','Dw5PB24','ChvIBgLZAgvKqxq','yxjYyxK','C2vYDMvYCW','seLhsa','tM8GzgLHz25VC3rPy3m','ntC4otq0qwjev25s','txvZDcbWCM92AwrLideTncbXDwvZDgLVBNm','o1TExg5DkJ8','ywXSB3DLzerPCNm','Dg91y2HgAwXL','BNvT','lNrTCc4','y2XLyxi','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C29Tzq','y29UDgv4Da','BwfW','y2HHBMDL','Aw50zwDLCG','lMnQCW','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','oePgtuj2Ca','lMn0CW','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','zw50CMLLCW','Ahr0Ca','C3bSAxq','C3LTBgLUAW','zgLZy292zxj5u3rHDgu','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','zNjVBq','DxrTx21LzgL1Bq','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','Aw5ZDgfSBa','u2L6ztOG','qxv0Ag9YAxPHDgLVBG','Dg9VBenHBgXjza','DxbKyxrL','l29WDc9OB21LyNjLDY9IAw4VCMC','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','Aw5KzxHpzG','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','zMfPBgvK','igzHAwXLzc4','mZa2mda5otbAtvzYCwq','B3bLBMfPlxjLC3bVBNnLCY13CW','Aw52ywXPzf90B2rVx2LK','C2nYAxb0','C2TPBgXZ','C2H1DgrVD24','AgvHzgvY','C2vSzwn0Aw9UuMfUz2u','tM8GAg92zxiGAw5MB3jTyxrPB24','y29Uy2f0','ywrKrxzLBNrmAxn0zw5LCG','Aw1Hz2u','w1bFxL1BxhnCu10QpW','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','yMLVBwuUANnVBMm','Dhj1zwnVBg9Y','thnW','AwzYyw1L','yxnJAwK','yxbWBgLJyxrPB24VANnVBG','ygbG','AhLKCMf0zu1LDge','CMfUzg9T','z29Vz2XLlwnZzq','B25szwrPCMvJDa','Cgf0Aa','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','ywXS','r2XVyG','yxv0Ag9YAxPHDgLVBL9JB2rL','BgLUzxm','u0Lhs0Lmta','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','BwnWxW','ywDLBNrjza','zMLUywXnzxnZywDLvgv4Da','BgfIzwW','CMLWz3jLCa','CxvLC3rPB24','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','C2HLBgXqyxrO','Dg9KB3ncEvnLC3nPB24','zgf0yq','Aw5JB21PBMDdywXSCW','D2vI','AM9PBG','yNL0zuXLBMD0Aa','y2f0y2G','C3rHCNq','yNvUlMXVy2TI','B2zMC2v0','CgXHAw4','qMfZAa','yxr4','Ag92zxi','Dg9Rzw5Z','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','Bg9JywXLq29TCgfYzq','ChjVy2vZCW','DgLTzvTKyxrLDgLTzv0','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','B3jPz2LUywW','DgHPBMTPBMC','yxnZAwDU','Aw52ywXPzf90B2rVx2nVBNrLBNq','Aw5WDxq','zgvUBY5QC29UyW','y2fSBgjHy2TvCMW','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','y2XPzw50sw5MB3jTyxrPB24','CMvJB3jK','Dgv4DerVy3vTzw50l2HVDMvY','rMv0y2GGDgLTzwqGB3v0','CMvXDwLYzwq','u2HLBgWGBM90igzVDw5KoIa','DxjS','Ag9ZDa','yNvUlMXVy2S','B2f1DgG','y21KlMv4zq','BgLUzuvUza','ygbGANnVBGO','lI4U','y2XPzw50','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','C3vKBW','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','BNvTyMvY','B3bLBKzPBgvZ','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','zw5K','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','y29TBwfUzhm','CgfJA2fNzs5QC29U','zMLSztOVlW','BgLUzvrLEhq','B25Jzq','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','l3vZCI9IAw4VC2G','yxjNDw1LBNrZ','AMf2yxnJCMLWDhjLywn0','yw5ZAte2','ls1NBg9Ipq','BgfUz3vHz2u','ls1JB2X1Bw4','Aw1Hz2vZ','nta1nJiZwgTsAhzJ','Dg9ju09tDhjPBMC','igj5DgvZ','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','C3jJl2v4yw1WBgvZl2rLBw8UDhm','EwfYBI5SB2nR','DhnZzxj2zxiUANm','lNrZEa','CgfYC2vjBNq','q29Tu3bLyW','AxngAwXL','oIbJB250zw50ihjLCxvPCMvK','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','AgfUzgXL','AxngAw5PDgu','ChjLCgfYzunHBgXiAwvYyxjJAhK','Aw5JBhvKzxm','CgfZC3rOCM91z2G','AgvHzgvYCW','lMPWzwC','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','l2jPBI9IyxnO','rMv0y2GGywjVCNrLzcbIEsb1C2vY','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','o1TE','Aw5JBhvKzq','y2XPzw50x3nLy3jLDf9WB3n0','qgjPB21LANmVyMLVBwu','Dg9VBa','CMCUzxHL','DgHLBG','BwvKAxvT','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','Ahr0CdO','v2fYBMLUzW','mJy0nZaWBurYuxnj','CgfYzw50u2vZC2LVBKLK','vw5HDxrOB3jPEMvKrxjYB3i','Dg9tDhjPBMC','qMvHCMvYia','B3v0Chv0','AMf2yxnJCMLWDa','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','Dg9KB3m','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','BhnWlxbYB3H5','C2v0vg9KB3m','yNjVA2vU','yM94zwq','uhjVz3jHBuzPBgvZkhG4nIK','DhLWzxnJCMLWDa','yxnRvxnLCG','Aw5PDgLHBgL6yxrPB24','zMLSzvbHDgG','te9x','CM91BMq','BxrPBwu','yxjNDw1LBNriAw50','ihDHCYbHyM9YDgvKlG','Dg9VBhm','C3rYAw5N','u3rHCNrLzcbHz2vUDcbYDw4G','BgLNAhq','ywjVCNq','cGPbuKDvtuvovfm6ia','yM9KEq','Ahr0Chm6','lMPZB25J','AxneAxjLy3rVCNK','zM9VDgvY','Aw1Hz2uVANbLzW','y29UDgvUDc10ExbL','BM90Awz5','v2vIrMv0y2G','y29UDgvUDa','zNvUy3rPB24','B3jPz2LUvg9VBenHBgXjza','C2fMzq','lMPZ','C2vHCMnOugfYyw1Z','lu5VuhjVzMLSzq','yMLVBwuUANnVBG','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','ChvZAa','z29uB0rLzMLUAxrPB24','C2vUzfjLCxvLC3q','yxv0Aa','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','yxr0CG','B3bLCMf0Aw9U','vw50AxrSzwq','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','BxvSDgLtzwXLy3q','AxrLBxm','BhmGlwXH','yw5ZD2vYCW','DhjPBuvUza','DxjP','tuvesvvn','C3rHCNreAxi','AgfZ','B2zM','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','C3rHDhvZvgv4Da','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','zxf1ywXZ','l3vZCI9SB2nHBc9IAw4VCMC','t0zg','Bw9Kzq','ywjVCNrLza','z2L0qNjHBMnO','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','DhLWzxnJCMLWDhjLywn0','DxrTx2nVBNrLBNq','uMvZCg9UC2uGDg9VigXHCMDLoIbLEgnLzwrZia','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','ywXSu2v0DgXLza','cMbGya','C3rYAw5NAwz5','rMLSzu5LDW','Aw52ywXPzf90B2rVCW','D2LUmZi','CMvZB2X2zq','C29YDa','Bwv0yxrHz3m','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','Cg9W','zgLZCg9Zzq','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','u2TPBgWGjW','lM51DMLU','BgvUz3rO','y2XVC2u','y29UzMLN','C3rKB3v0','yMLUyxj5tMfTzq','zNvSzMLSBgvK','rMLSzsb3CML0DgvUigf0ia','Bwf0y2HLCW','Dgv4Dc9ODg1S','oIaIAgvHzgvYiIbMAwvSzcbPCYbYzxf1AxjLzcbHBMqGBxvZDcbIzsbHihn0CMLUzW','C291CMnL','rgLHz25VC3rPyW','y2XLyw51Ca','yxjNDw1LBNroyw1LCW','yMLVBwu','sw5MB3jTyxrPB24','zgLZywjSzwq','igj5DgvZigv4y2vLzhmG','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','zw5HyMXLza','yMfZzw5HBwu','C3rHDhvZ','zxjYB3jnzxnZywDL','Bw9KzwW','CMvZDwX0','Dg9Rzw5tDg9YywDLs2v5','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','C2vYDMvYtMfTzq','ywDLBNrZ','zgvUBY5QC29U','zgvMyxvSDen3za','lNbUzW','tunqihrVB2WG','C3vIyxjYyxK','B3bLBMfPlxjLC3bVBNnLCW','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','l2jPBI9ZAa','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','zgLYBMfTzq','Dg9Rzw4','zgLHz25VC3rPy3m','zg9JDw1LBNrtEw1IB2W','CxvLC3rPB25Z','DxrTx2nHBxbHAwDU','B2XKvgv4Da','lNDLyNa','zgf0zxrPBwu','zMXVB3i','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','l2jPBI9YzW','Dhj1BMm','yxjNDw1LBNrZvgv4Da','yMvHCMvY','D29YA3nWywnLu3LTyM9S','tNv2Aw4','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','ndq0nJKXmuv4te9qEa','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','y3jSzG','y2fWywjPBgL0AwvZ','C3rYAxbbBNnP','ls1WCMvMAxG','zgv0ywLS','tM8GC3LTyM9SCYbMB3vUza','BgL0zxjHBa','qwDLBNqGCNvUia','y2fUy2vS','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','CMfUz2u','nevSwxngrq','y29UDgvUDc1Szw5NDgG','l3vZCI9IAw4VyMfZAa','ANnVBMm','ls1MB2XSB3C','Dhj1zq','lw5i','C3bHD25PBMC','BgLZDfrVB2XZ','zgLNzxn0','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','sw52B2TLq29TBwfUza','yM0Ynq','Aw5WDxrty2HLBwe','rMLSzuvKAxq','BwvZC2fNzq','ChjVDg9JB2W','ls0T','BM9Uzq','C3rHDgu','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','Aw52ywXPzf90B2rVx3bYAw9YAxr5','CgvUzgLUzW','ls1NBg9I','lMPWzW','iYmGu2TPBgW6ia','CxvLCNK','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','BhnW','CMvSyxrPDMu','zxH0BMfTzq','Aw52ywXPzf9XDwvZDgLVBNm','zgLYzwn0B3j5','AxnbCNjHEq','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','ie9sia','nZu1ndqXnuHbu0HpqW','CMvTB3zL','vg9KB1DYAxrL','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','z2v0vg9KB3m','AxndB250zxH0','AhjLzG','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','ksbB','C2LNBMfS','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','tM8GBg9JyxrPB25ZigzVDw5K','zgvMyxvSDa','rMLSzvjLywq','mZGZnde2offxyu5rrq','BgfUzW','zMvUy2vK','vg9KBYa','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','ChjVCgvYDgLLCW','Dg9VBhmVy2fSBa','y2fSBfrVB2W','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','l3vZCI9IAw4VCMC','lMjPBG','z2v0u3rHDhm','C2H1DgrVD25tDgfYDgvK','zMLYC3q','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','BgLUzvn0yxj0','z2v0','BgLUzq','z29Vz2XLq3nLs2v5','zgvMyxvSDfrPBwvVDxrnCW','y29UBMvJDa','rxjYB3i','DhvWBgu','ywrK','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','zgvSAw1PDgvY','CgfNzw1HCa','yxbPs2v5','qxnRvxnLCLrVB2W','BMfTzq','zg9TywLUCW','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFq1G','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','EwvZ','tM8GCMvZDwX0CYbMB3vUzc4','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','D2HPy2GGCMC','oIbPBNzHBgLKihn0yxr1CW','BwLU','y2vPBa','ChjPB3jPDhK','y2HHCMfJDgvY','CMvXDwvZDa','CgLK','DhjPBq','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','y29TBwfUza','C2vZC2LVBKLK','y29ZDa','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','Aw1Hz2uVz2LM','yw5ZAti1nG','ugf0AcbPCYbUB3qGysbMAwXLoIa','v0vcua','DxrMoa','B3bLBG','y29Kzq','A2LUza','CgLWzq','DgL0Bgu','DhvYBMrVD24','uxvLC3rPB24G','BgLI','tunqihnLCNzLCIa','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','Aw5PDgLHBgL6zwq','vMLLD0zPBgu','C3r5Bgu','BwfYA2rVD24','CMvJzw5JEurHExm','CMfUAW','B3rOzxi','y29UBMvJDgvK','A2LSBa','oIbPzcbYzxf1AxjLza','C2XPy2u','DhjHBNnWB3j0','CMLWz3jLCcbMywLSzwq6ia','y2HHCKnVzgvbDa','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','r3jLCa','twLJCM9ZB2z0','B3b0Aw9UCW','zw52','Bwf4','DgfZAW','CgfJA2fNzs1SB2nRlMPZB24','y29UC3rYDwn0B3i','Ag9TzwrPCG','Cgf0DgvYBIbPCYbYzxf1AxjLza','zxjYB3i','CgXHAw50zxH0','BwnFzwLK','zxzLCNK','DhnJ','C2L6zq','ru5pru5u','AxnbyNnVBhv0zq','C3jJl3nOyxjLzc90ExbLCY50CW','z29uB0LTCgXLBwvUDgf0Aw9U','CMvHC29U','Bg93','yxv0BW','y29KzvzLCMLMAwvY','C2vUze5VDgLMAwnHDgLVBG','Cgf0DgvYBG','zgf0zvjLC3rYAwn0','Aw5ZDhj1y3rPB25Z','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','lM1QCW','BM93','ienHDxnLoIa','l3bPza','AxnfBMfIBgvK','D3jPDgu','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','CgXHDgzVCM0','Ec1HCgKTA2v5','Aw1Hz2uVD2vICa','BM9Kzv9TB2r1BgvZ','zgvSzxrL','z29Vz2XLq3nLq3G','BgLUAW','C3rKzxjY','Aw1WBgvTzw50yxrPB24','BgLUzu51Bq'];_0x1e7b=function(){return _0x1768f1;};return _0x1e7b();}function createWebSearchTool(_0x3bbd0f){const _0x5d42af={_0x259170:0x4ca,_0x474412:0x1af,_0x22c596:0x349,_0x63020b:0x16,_0x16168a:0x180,_0x46fc7c:0x151,_0x30d3e0:0x1a3,_0x30d44a:0x68,_0x84509b:0x193,_0x1408f3:0x28c,_0x1aaaec:0x303,_0x55045e:0x3e9,_0x8f2931:0x35,_0x5e5f33:0x15,_0x1a9e4b:0x2f,_0x1bbc17:0x1c,_0x3b432a:0x8f,_0x3ce5d7:0x29b,_0xc76d6:0x457,_0x456cf5:0x45a,_0x569616:0x30,_0x526370:0x5,_0x224d7c:0x67,_0x54eef4:0x11,_0x4f23a2:0x35d,_0xe26a6d:0x2c4,_0x2495a9:0x29f,_0x31fcca:0xcd,_0x35266b:0x131,_0x42d670:0x418},_0x16a264={_0x2dffc6:0x598,_0x5339d2:0x5c7,_0x3bc6fe:0x4b3,_0x3e859d:0x4aa,_0x450b9b:0x485,_0x2cd39a:0x3a8,_0x4d71d4:0x37a,_0x5335a1:0x421,_0x1e02fc:0x4b6,_0x5b7ade:0x5dc,_0x52ad5b:0x5d5,_0x32484a:0x30f,_0x1f73a4:0x32d,_0x599be7:0x393,_0x18c753:0x542,_0x3e5275:0x568,_0x4cecd2:0x556,_0x49256a:0x4f9,_0x24a495:0x5e0,_0x1c9769:0x58b,_0x1427fc:0x7b8,_0x3081d6:0x6e4,_0x5e6d8d:0x404,_0x5ecccb:0x818,_0x1a86f4:0x654,_0x1f44e4:0x2be,_0x31c81c:0x4ed,_0x1fe131:0x697,_0x205cd8:0x57b,_0x533c62:0x46b,_0x32cca1:0x375,_0x59f1e0:0x307,_0x5a0150:0x347,_0x3d9ab2:0x5f1,_0x530d67:0x5e0,_0x17deb8:0x32f,_0xa8490:0x3a2,_0x2fa2a3:0x355,_0x42164f:0x524,_0x2c268a:0x59c,_0xfa2c22:0x5e3,_0x362cc7:0x68b,_0x20d6f0:0x719,_0x259b48:0x5dd,_0x28b76b:0x685,_0x1e80bf:0x2da,_0x127ed7:0x233,_0x258752:0x387,_0x4df79c:0x24a,_0x241504:0x7b0,_0x4bd395:0x702,_0x55d877:0x670,_0x4efdd6:0x525,_0x2b537a:0x44b},_0x56f88b={_0x226f69:0x2a4,_0x10951c:0x34a,_0x14b893:0x2dd,_0x575f2f:0x2d9},_0x3d3451={_0x25802c:0x1e5,_0x30c835:0x2f,_0x1d1ca8:0x9f},_0x1703cb={_0x4f6964:0x15d};if(!_0x3bbd0f['googleCseKey'])throw new Error(_0x258289(0x559,0x398,_0x5d42af._0x259170,0x450));function _0x48cf18(_0x141014,_0x39ba9f,_0x306ad1,_0x422398){return _0x1d9020(_0x141014,_0x39ba9f-0x132,_0x306ad1- -0x1cb,_0x422398-_0x1703cb._0x4f6964);}function _0x258289(_0x10a720,_0x1f74f9,_0x51f733,_0x483f76){return _0x4ebc2e(_0x10a720,_0x483f76- -_0x3d3451._0x25802c,_0x51f733-_0x3d3451._0x30c835,_0x483f76-_0x3d3451._0x1d1ca8);}if(!_0x3bbd0f[_0x48cf18(0x145,0x1b3,0x125,_0x5d42af._0x474412)])throw new Error(_0x258289(0x376,_0x5d42af._0x22c596,0x36e,0x37f));const _0x4262d0=_0x3bbd0f[_0x48cf18(_0x5d42af._0x63020b,0x11c,0xc9,_0x5d42af._0x16168a)]??_0x48cf18(0x207,_0x5d42af._0x46fc7c,_0x5d42af._0x30d3e0,_0x5d42af._0x30d44a);return defineTool({'name':_0x4262d0,'description':_0x258289(0x1b4,_0x5d42af._0x84509b,_0x5d42af._0x1408f3,0x24f),'inputSchema':{'type':_0x258289(0x353,0x3f0,_0x5d42af._0x1aaaec,_0x5d42af._0x55045e),'properties':{'description':{'type':_0x48cf18(_0x5d42af._0x8f2931,-0x11a,-_0x5d42af._0x5e5f33,-_0x5d42af._0x1a9e4b)},'query':{'type':_0x48cf18(0x102,-_0x5d42af._0x1bbc17,-0x15,_0x5d42af._0x3b432a)},'count':{'type':_0x258289(0x1e7,0x341,_0x5d42af._0x3ce5d7,0x24d)},'offset':{'type':'number'},'domains':{'type':_0x258289(0x407,_0x5d42af._0xc76d6,0x4ac,_0x5d42af._0x456cf5),'items':{'type':_0x48cf18(-_0x5d42af._0x569616,-_0x5d42af._0x526370,-_0x5d42af._0x5e5f33,-0x13f)}},'recencyDays':{'type':_0x48cf18(0x1b,0x68,-_0x5d42af._0x224d7c,_0x5d42af._0x54eef4)},'lang':{'type':_0x258289(_0x5d42af._0x4f23a2,0x17d,_0x5d42af._0xe26a6d,_0x5d42af._0x2495a9)},'region':{'type':'string'},'safe':{'type':'boolean'},'type':{'type':_0x48cf18(-_0x5d42af._0x31fcca,0x8d,-_0x5d42af._0x5e5f33,_0x5d42af._0x35266b)},'hydrateMeta':{'type':'boolean'}},'required':[_0x258289(0x367,_0x5d42af._0x42d670,0x261,0x348)]},async *'execute'(_0x469c3a,_0xad47b){const _0x2c2c43={_0x4df391:0xa8,_0x4fea69:0x87},_0x312779={_0x3cd2f0:0xdc,_0x3490de:0x2a8,_0x1d7461:0x120},_0x1d4d4c={_0xdd65c7:0x23b};function _0x526d74(_0x22c024,_0x3f4641,_0x317a56,_0x5a7d88){return _0x258289(_0x22c024,_0x3f4641-0xd,_0x317a56-0x16b,_0x5a7d88-_0x1d4d4c._0xdd65c7);}const _0x42893a=_0x469c3a['query'][_0x526d74(_0x16a264._0x2dffc6,0x6fd,0x4c6,_0x16a264._0x5339d2)]();function _0xd49eff(_0xfb9898,_0x719e29,_0x1c260e,_0x223ccf){return _0x48cf18(_0x1c260e,_0x719e29-_0x312779._0x3cd2f0,_0xfb9898-_0x312779._0x3490de,_0x223ccf-_0x312779._0x1d7461);}if(!_0x42893a)throw new ToolExecutionError(_0x526d74(_0x16a264._0x3bc6fe,_0x16a264._0x3e859d,0x509,_0x16a264._0x450b9b));const _0x7bf061={'query':_0x42893a,'count':Math[_0xd49eff(_0x16a264._0x2cd39a,0x267,0x2a4,0x34f)](0x1,Math[_0xd49eff(_0x16a264._0x4d71d4,_0x16a264._0x5335a1,_0x16a264._0x1e02fc,0x399)](0x32,Math[_0x526d74(0x40d,0x5f3,0x551,0x556)](_0x469c3a['count']??0xa))),'offset':Math[_0x526d74(_0x16a264._0x5b7ade,0x635,_0x16a264._0x52ad5b,0x5ef)](0x0,Math[_0xd49eff(_0x16a264._0x32484a,_0x16a264._0x1f73a4,0x42b,_0x16a264._0x599be7)](_0x469c3a['offset']??0x0)),'domains':_0x469c3a['domains']??[],'recencyDays':Math['max'](0x0,Math[_0x526d74(_0x16a264._0x18c753,_0x16a264._0x3e5275,0x617,_0x16a264._0x4cecd2)](_0x469c3a[_0x526d74(0x5fb,0x56d,_0x16a264._0x49256a,_0x16a264._0x24a495)]??0x0)),'lang':_0x469c3a['lang']??'en','region':_0x469c3a[_0x526d74(_0x16a264._0x1c9769,_0x16a264._0x1427fc,_0x16a264._0x3081d6,0x685)]??'','safe':_0x469c3a['safe']??!![],'type':normalizeType(_0x469c3a['type']),'hydrateMeta':_0x469c3a[_0xd49eff(0x48e,0x582,0x5b6,0x437)]??![]};let _0x43609a=await searchGoogleCse(_0x3bbd0f,_0x7bf061,_0xad47b[_0xd49eff(0x34f,_0x16a264._0x5e6d8d,0x435,0x242)]);_0x7bf061[_0x526d74(0x592,_0x16a264._0x5ecccb,_0x16a264._0x1a86f4,0x6d5)]&&_0x43609a[_0xd49eff(0x2da,_0x16a264._0x1f44e4,0x29c,0x3dd)]>0x0&&(_0x43609a=await hydrateResults(_0x43609a,_0x7bf061['lang'],_0xad47b[_0x526d74(0x4e2,0x5d5,0x639,0x596)]));const _0x18d930=new Set();_0x43609a=_0x43609a['filter'](_0x61e088=>{const _0xae5cf0={_0x486f5b:0x13b};function _0x1ff509(_0x40a4a1,_0x272e2b,_0x48a51f,_0x5bc222){return _0xd49eff(_0x48a51f-_0xae5cf0._0x486f5b,_0x272e2b-0x192,_0x5bc222,_0x5bc222-0x166);}const _0x7a067f=_0x61e088[_0x4c14d5(0x261,_0x56f88b._0x226f69,_0x56f88b._0x10951c,_0x56f88b._0x14b893)]['toLowerCase']();if(!_0x7a067f||_0x18d930[_0x1ff509(_0x56f88b._0x575f2f,0x4e9,0x3f6,0x3d0)](_0x7a067f))return![];_0x18d930['add'](_0x7a067f);function _0x4c14d5(_0x4158e7,_0x175bf1,_0x119007,_0x1a5f93){return _0xd49eff(_0x1a5f93-_0x2c2c43._0x4df391,_0x175bf1-_0x2c2c43._0x4fea69,_0x119007,_0x1a5f93-0x143);}return!![];}),_0x43609a=_0x43609a['map']((_0x52e2d9,_0xd9ff2e)=>({..._0x52e2d9,'source':{..._0x52e2d9[_0xd49eff(0x2e4,0x2be,0x3d4,0x3e1)],'rank':_0xd9ff2e+0x1}}));const _0x3064ad={};if(_0x7bf061[_0x526d74(0x65c,_0x16a264._0x31c81c,_0x16a264._0x1fe131,0x5b9)][_0x526d74(_0x16a264._0x205cd8,0x546,0x658,0x521)]>0x0)_0x3064ad[_0xd49eff(0x372,_0x16a264._0x533c62,_0x16a264._0x32cca1,0x344)]=_0x7bf061[_0xd49eff(0x372,_0x16a264._0x59f1e0,0x398,_0x16a264._0x5a0150)];if(_0x7bf061[_0x526d74(_0x16a264._0x3d9ab2,0x51c,0x5bd,_0x16a264._0x530d67)]>0x0)_0x3064ad['recencyDays']=_0x7bf061['recencyDays'];if(_0x7bf061[_0xd49eff(0x355,0x325,_0x16a264._0x17deb8,_0x16a264._0xa8490)]!=='en')_0x3064ad[_0xd49eff(_0x16a264._0x2fa2a3,0x497,0x21a,0x2b0)]=_0x7bf061[_0x526d74(_0x16a264._0x42164f,0x5be,0x610,_0x16a264._0x2c268a)];if(_0x7bf061[_0x526d74(0x671,0x53f,0x655,0x685)])_0x3064ad[_0x526d74(0x70b,_0x16a264._0xfa2c22,_0x16a264._0x362cc7,0x685)]=_0x7bf061[_0x526d74(0x775,_0x16a264._0x20d6f0,_0x16a264._0x259b48,_0x16a264._0x28b76b)];return yield createToolOutput(formatResults(_0x43609a),{'engine':_0x526d74(0x5fa,0x594,0x671,0x6d7),'count':_0x43609a[_0xd49eff(_0x16a264._0x1e80bf,0x372,_0x16a264._0x127ed7,_0x16a264._0x258752)],'items':_0x43609a,'query':_0x7bf061['query'],...Object['keys'](_0x3064ad)[_0xd49eff(0x2da,_0x16a264._0x4df79c,0x40c,0x348)]>0x0?{'appliedFilters':_0x3064ad}:{},'offset':_0x7bf061['offset'],'totalRequested':_0x7bf061[_0x526d74(_0x16a264._0x241504,0x66e,_0x16a264._0x4bd395,_0x16a264._0x55d877)],'hydrated':_0x7bf061[_0xd49eff(0x48e,_0x16a264._0x4efdd6,_0x16a264._0x2b537a,0x40a)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
|