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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/VERSION +2 -2
  2. package/dist/agent/agent.d.ts +28 -0
  3. package/dist/agent/context-compactor.d.ts +8 -0
  4. package/dist/agent/extension-registry.d.ts +3 -0
  5. package/dist/agent/index.d.ts +8 -68
  6. package/dist/agent/index.js +1 -1
  7. package/dist/agent/messages-to-text.d.ts +3 -0
  8. package/dist/agent/metrics.d.ts +30 -0
  9. package/dist/agent/topic-reminder-extension.d.ts +32 -0
  10. package/dist/agent/turn-engine.d.ts +3 -0
  11. package/dist/chunk-FFIZ6TKW.js +1 -0
  12. package/dist/chunk-HRU363DY.js +1 -0
  13. package/dist/chunk-NHBKADBW.js +1 -0
  14. package/dist/chunk-NYZR4XKO.js +1 -1
  15. package/dist/chunk-QDOE7NWO.js +1 -0
  16. package/dist/chunk-X7VAACWY.js +1 -1
  17. package/dist/formats/base64-image-content.d.ts +4 -0
  18. package/dist/formats/index.d.ts +4 -28
  19. package/dist/formats/index.js +1 -1
  20. package/dist/formats/message-format.d.ts +33 -0
  21. package/dist/formats/provider-adapters.d.ts +3 -0
  22. package/dist/hooks/executor.d.ts +3 -0
  23. package/dist/hooks/extensions.d.ts +28 -0
  24. package/dist/hooks/index.d.ts +7 -0
  25. package/dist/hooks/index.js +1 -0
  26. package/dist/hooks/registry.d.ts +8 -0
  27. package/dist/hooks/types.d.ts +40 -0
  28. package/dist/lsp/client.d.ts +11 -0
  29. package/dist/lsp/index.d.ts +24 -0
  30. package/dist/lsp/installer.d.ts +11 -0
  31. package/dist/lsp/language.d.ts +2 -0
  32. package/dist/lsp/server.d.ts +6 -0
  33. package/dist/lsp/types.d.ts +68 -0
  34. package/dist/models/anthropic-model.d.ts +27 -0
  35. package/dist/models/anthropic-surface.d.ts +5 -0
  36. package/dist/models/chat-model.d.ts +31 -0
  37. package/dist/models/github-model.d.ts +32 -0
  38. package/dist/models/http-transport.d.ts +10 -0
  39. package/dist/models/index.d.ts +16 -347
  40. package/dist/models/index.js +1 -1
  41. package/dist/models/mock-model.d.ts +15 -0
  42. package/dist/models/model-errors.d.ts +16 -0
  43. package/dist/models/model-limits.d.ts +7 -0
  44. package/dist/models/model-registry.d.ts +44 -0
  45. package/dist/models/model-surface-router.d.ts +19 -0
  46. package/dist/models/model-transports.d.ts +17 -0
  47. package/dist/models/openai-model.d.ts +67 -0
  48. package/dist/models/openai-surfaces.d.ts +74 -0
  49. package/dist/models/provider-adapter.d.ts +23 -0
  50. package/dist/models/provider-session.d.ts +16 -0
  51. package/dist/models/routed-model.d.ts +90 -0
  52. package/dist/shared/abort.d.ts +9 -0
  53. package/dist/shared/index.d.ts +5 -17
  54. package/dist/shared/index.js +1 -1
  55. package/dist/shared/reasoning-config.d.ts +5 -0
  56. package/dist/shared/turn-failed.d.ts +6 -0
  57. package/dist/{types-Bb2eVtsy.d.ts → shared/types.d.ts} +180 -164
  58. package/dist/tools/ask-user-tool.d.ts +55 -0
  59. package/dist/tools/background-process-registry.d.ts +64 -0
  60. package/dist/tools/bash-internals.d.ts +5 -0
  61. package/dist/tools/bash-output-tool.d.ts +20 -0
  62. package/dist/tools/bash-tool.d.ts +75 -0
  63. package/dist/tools/command-tool.d.ts +23 -0
  64. package/dist/tools/file-edit-tool.d.ts +29 -0
  65. package/dist/tools/file-new-tool.d.ts +21 -0
  66. package/dist/tools/file-read-tool.d.ts +27 -0
  67. package/dist/tools/glob-tool.d.ts +26 -0
  68. package/dist/tools/grep-tool.d.ts +34 -0
  69. package/dist/tools/index.d.ts +31 -773
  70. package/dist/tools/index.js +1 -1
  71. package/dist/tools/internal-tool-runtime.d.ts +8 -0
  72. package/dist/tools/kill-shell-tool.d.ts +16 -0
  73. package/dist/tools/ls-tool.d.ts +20 -0
  74. package/dist/tools/lsp-tool.d.ts +36 -0
  75. package/dist/tools/mcp-oauth-provider.d.ts +11 -0
  76. package/dist/tools/mcp-server-manager.d.ts +43 -0
  77. package/dist/tools/mcp-tool-adapter.d.ts +47 -0
  78. package/dist/tools/mock-tool-runtime.d.ts +3 -0
  79. package/dist/tools/ripgrep.d.ts +20 -0
  80. package/dist/tools/runtime-manager-tools.d.ts +58 -0
  81. package/dist/tools/safe-fetch.d.ts +36 -0
  82. package/dist/tools/skill-tool.d.ts +33 -0
  83. package/dist/tools/todo-write-tool.d.ts +66 -0
  84. package/dist/tools/tool-output-offload.d.ts +12 -0
  85. package/dist/tools/tools.d.ts +24 -0
  86. package/dist/tools/update-topic-tool.d.ts +12 -0
  87. package/dist/tools/view-file-tool.d.ts +22 -0
  88. package/dist/tools/web-fetch-tool.d.ts +23 -0
  89. package/dist/tools/web-search-tool.d.ts +75 -0
  90. package/dist/tools/workspace-paths.d.ts +5 -0
  91. package/package.json +6 -2
  92. package/dist/chunk-3QLMAAJY.js +0 -1
  93. package/dist/chunk-4DNIDCX7.js +0 -1
  94. package/dist/chunk-G2FR4UGO.js +0 -1
  95. package/dist/provider-adapters-NxiNWlxu.d.ts +0 -5
@@ -1 +1 @@
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};
1
+ (function(_0x36ba78,_0x30a842){const _0x6aad13={_0x18fca4:0x39c,_0x1ab43d:0x249,_0x2c6692:0x262,_0x15c96e:0x311,_0x4d25aa:0x178,_0x113318:0x3a1,_0x43efa4:0x31d,_0x49a26b:0x85,_0x3e3925:0xac,_0x10b8b1:0x7c,_0x332c33:0x1f5,_0x27babd:0x443,_0xf2862f:0x30d,_0x1bb219:0x47f,_0x134848:0x23f,_0x24732f:0x52d,_0x20581f:0x5d5,_0x404a4e:0x496,_0x11eb82:0x2c4,_0x25cdff:0x2a9},_0x5153d2={_0x46a5cb:0xe5};function _0x36afbd(_0x170d4b,_0x57dbaf,_0x504c01,_0x22c989){return _0x4951(_0x170d4b- -_0x5153d2._0x46a5cb,_0x57dbaf);}function _0x263920(_0x584a44,_0x439050,_0x36da39,_0x249cdc){return _0x4951(_0x584a44-0x1a3,_0x439050);}const _0x24c3d3=_0x36ba78();while(!![]){try{const _0x3cc7c0=parseInt(_0x263920(_0x6aad13._0x18fca4,_0x6aad13._0x1ab43d,_0x6aad13._0x2c6692,_0x6aad13._0x15c96e))/0x1*(-parseInt(_0x36afbd(0x2e9,_0x6aad13._0x4d25aa,_0x6aad13._0x113318,0x189))/0x2)+-parseInt(_0x263920(0x32e,_0x6aad13._0x18fca4,_0x6aad13._0x43efa4,0x255))/0x3+-parseInt(_0x36afbd(_0x6aad13._0x49a26b,_0x6aad13._0x3e3925,-_0x6aad13._0x10b8b1,_0x6aad13._0x332c33))/0x4+parseInt(_0x263920(0x3dd,_0x6aad13._0x27babd,_0x6aad13._0xf2862f,0x335))/0x5*(-parseInt(_0x263920(0x38a,_0x6aad13._0x1bb219,0x209,0x23b))/0x6)+-parseInt(_0x36afbd(0x1e6,_0x6aad13._0x134848,0x1e6,0x2da))/0x7*(parseInt(_0x36afbd(0x258,0xf7,0x1de,0x13e))/0x8)+-parseInt(_0x263920(0x48b,_0x6aad13._0x24732f,_0x6aad13._0x20581f,_0x6aad13._0x404a4e))/0x9+parseInt(_0x36afbd(_0x6aad13._0x11eb82,_0x6aad13._0x25cdff,0x35e,0x3f0))/0xa;if(_0x3cc7c0===_0x30a842)break;else _0x24c3d3['push'](_0x24c3d3['shift']());}catch(_0xaa365b){_0x24c3d3['push'](_0x24c3d3['shift']());}}}(_0x61ca,0x9dfe1));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-HRU363DY.js';import{getTextFromMessage}from'../chunk-QDOE7NWO.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';function _0x61ca(){const _0x4880bd=['ignOyxjZigrYB3bWzwrDcG','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','zMLSzq','BhnWlxbYB3H5','igzYB20G','AwDUB3jL','xsb0CMfUC3bVCNqGzxjYB3i6','zw52','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','zg9JDw1LBNrtEw1IB2W','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','vg9Vig1HBNKGCMvKAxjLy3rZ','BwnFzwLK','mti3lJaUmc4W','uhjVz3jHBuzPBgvZkhG4nIK','BgLZDgvU','y29TCgXLDgvK','rMLSzuvKAxq','BwvTB3j5','C3rHDhvZvgv4Da','B25Jzq','AxrLBxm','y2f0y2G','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','y2HHCKnVzgvbDa','Ahr0Ca','ywXSB3DLzfrVB2XZ','z29Vz2XLq3nLq3G','B2zM','r3jLCa','D2vI','Bg9JywXLq29TCgfYzq','zxjYB3jnzxnZywDL','zgLHz25VC3rPy3m','CgfYC2vjBNq','zgvLChnLzwS','vg9KB1DYAxrL','zgvLCgLUzNjH','Bwf4q29Uy3vYCMvUDa','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','rMLSzsb3CML0DgvUigf0ia','mZm4ntKZmJbyyLrWEgq','ywXSB3DLzerPCNm','zMLUywXnzxnZywDLvgv4Da','mtKYlJe2oc4WlJa','igj5DgvZicHVCMLNAw5HBdOG','C3rKB3v0','C3bHD24','y3jLyxrLzef0','Aw5FChjVz3jLC3m','CMvMCMvZAf90B2TLBG','phn5C3rLBs1Yzw1PBMrLCJ4','Dgf2AwX5qxbPs2v5','D3jPDgu','yxv0AfjLCxvPCMvK','BgfZDeLUzgv4t2y','Dgv4Da','lMjPBG','tg9HzgvKigzYB206ia','tM8GC3vJAcbMAwXLoIaN','tgLUzsa','C2vHCMnOugfYyw1Z','yNvUlMXVy2TI','qMfJA2DYB3vUzcbLEgvJDxrPB24GAxmGBM90igf2ywLSywjSzsbPBIb0AgLZignVBNrLEhqU','DhLWzq','zgvMyxvSDen3za','t1bftLjpvvrfuL9bueLFs0vz','r09pr0Xfx0ntrv9lrvK','Aw5KzxHpzG','y21KlMv4zq','BgvUz3rO','AxngAw5PDgu','te9x','y291BNq','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','ugfJA2fNzxm','Aw52ywXPzf90B2rVx3bYAw9YAxr5','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','mtqWndK0DhHcv2DN','zgvSzwDHDgvKlxj1BI0','yxr0CG','DgfZAW','CgLK','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','zMv0y2HjBxbS','Dg9WAwm','B3bLBMfPlxjLC3bVBNnLCW','BgLUzvrLEhq','s2LSBfnOzwXS','y2HHBMDL','C2HHmJu2','vMLLD0zPBgu','DxrTx21LzgL1Bq','C3rYAw5NAwz5','ANnVBMm','C3rKB3v0rgvJB2rLCG','ChjVDg9JB2W','DhnJB25MAwCUANnVBG','uhjVz3jHBuzPBgvZ','BgLUAW','AgfZq2XPzw50CW','CMvWBgfJzq','ChjVy2vZC0v4AxrLza','B3v0z29PBMDdywXSCW','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','ls1NBg9I','y2fWq2HHCNm','AwDUB3jLt3v0Chv0','tM8GyMfJA2DYB3vUzcbWCM9JzxnZihDPDgGGAwqG','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','BgLUzxm','tuLnrtOG','AxndB250zxH0','zw5NAw5LCW','yMLYDgH0Aw1L','vxbKyxrLihrOzsbZzxnZAw9UihrVCgLJihrVigeGy29Uy2LZzsaZltyGD29YzcbUB3vUihbOCMfZzsb0Agf0ignHChr1CMvZihrOzsbJDxjYzw50ihn1yMPLy3qUcGPdywXSihrOAxmGDg9VBcb3AgvUihrOzsbZzxnZAw9Uj3mGC3vIAMvJDcbIzwnVBwvZignSzwfYig9YihnOAwz0CYb0BYbZB21LDgHPBMCGy2XLyxjSEsbKAwzMzxjLBNqG4Ocuig5VDcbMB3iGBwLUB3iGDgfUz2vUDhmGB3iGy2XHCMLMEwLUzYbZDwiTCxvLC3rPB25ZlIbjzIbUB3rOAw5NigHHCYbTzwfUAw5NzNvSBhKGy2HHBMDLzcWGzg8GBM90ignHBgWGAxqUcGPhB29KihrVCgLJicHUB3vUihbOCMfZzsWGmY02ihDVCMrZktOkicaIrgvIDwCGvfmGz2vUzxjPy3mGzxjYB3iIcIaGiLjLzMfJDg9Yigf1DgGGBwLKzgXLD2fYzsikicaIqwrKifn0CMLWzsb3zwjOB29RigHHBMrSzxiIcGPcywqGDg9WAwmGkgz1BgWGC2vUDgvUy2uGB3iGDMfNDwuPoGOGicjuAguGDxnLCIb3yw50CYb0BYbKzwj1zYbHifr5Cgvty3jPChqGz2vUzxjPy3mGzxjYB3iGAw4GDgHLAxiGChjVAMvJDcikicaIy29KAw5NiG','ls1ZDgrPBW','AhjLzG','DhjPBq','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','Dgv4DerVy3vTzw50l2rPzenSB3nL','A2LTAq','zMLUzfjLzMvYzw5Jzxm','revfueLorLjbx0fqsv9lrvK','BwfYA2rVD24','yxjNDw1LBNriAw50','AxnbCNjHEq','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','Dg9Rzw5Z','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','y29UzMLN','oIbPzcbYzxf1AxjLza','y2fSBgjHy2TvCMW','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','CMvNzxG','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','z2v0u3rHDhm','t0zg','AxnjBNrLz2vY','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','DgHPBMTPBMC','DhLWzxnJCMLWDhjLywn0','u3rHCNrLzcbIywnRz3jVDw5KihbYB2nLC3mG','Dg9mB3DLCKnHC2u','l3vZCI9IAw4VCMC','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','yxjNCW','yxnJAwK','C291CMnL','BwLU','Bwf4qNL0zxm','Bg9VA3vW','lu5Vtg9NBW','C2XPy2u','C3bSAxq','CMvSyxrPDMu','uhvIBgLZAgvKoIa','Dg90ywW','BwLUAw1HEa','Dhj1BMnHDgvK','y2fWywjPBgL0AwvZ','cGPbuKDvtuvovfm6ia','C2vUzfjLCxvLC3q','zgf0zxrPBwu','CgLWzq','ANnVBG','B3bLBKzPBgvZ','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','uxvLC3rPB24G','DgL0Bgu','y2XLyxi','y29TBwfUza','vg9KBYa','CMvHza','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','CMfUzg9T','BgfUz18','Dg9Rzw4','ywXSu2v0DgXLza','C3rHDhvZ','ks4Gs2LSBcbVBMuGD2L0AcblAwXSu2HLBgWGyMvMB3jLihn0yxj0Aw5NigfUB3rOzxiU','lNDLyNa','Dg9VBenHBgXjza','Agv4','y2XPzw50CW','y29UDgvUDa','AxnbyNnVBhv0zq','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','DxnLCM5HBwu','zw51Bq','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','DhLWzxnJCMLWDa','lNrTCc4','C3vIyxjYyxK','qMvHCMvYia','Aw5JB21PBMDdywXSCW','BNvTyMvY','qxv0Ag9YAxPHDgLVBG','C2vYDMvYtMfTzq','BhnWu2vYDMLJzq','zhvWBgLJyxrLx3rVzg9FAwrZ','zMLSzvbHDgG','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','C2vYDMvY','DgvZDa','zxzPy3rjzK5LzwrLza','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','zNvUy3rPB24','C3rVCMfNzurPCG','ChjPB3jPDhK','v2vIrMv0y2G','Ag92zxi','B2f1DgG','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','zgvZy3jPChrPB24','Dg90ywXeCM9WCgvK','lMPWzW','CgfYC2u','DhnZzxj2zxiUANm','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','AgvHzgvYCW','y29UC3rYDwn0B3i','u2TPBgWGjW','l2jPBI9ZAa','y29UDgv4Da','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','DgLTzw91De1Z','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','B3bLBMfPlxjLC3bVBNnLCY13CW','Dg91y2HgAwXL','uMvHzcbUzxCGB3v0Chv0igzYB20GysbIywnRz3jVDw5KihbYB2nLC3mGC3rHCNrLzcb3AxrOiejHC2GOCNvUsw5cywnRz3jVDw5KoNrYDwuPlIbszxr1CM5Zig91Dhb1DcbWCM9KDwnLzcbZAw5Jzsb0AguGBgfZDcbYzwfKoYbVChrPB25HBgX5igzPBhrLCIbSAw5LCYbIEsbHihjLz2v4lG','zw5K','tunqihnLCNzLCIa','lM1QCW','AgfZ','rgLHz25VC3rPyW','nJiYntiWDfzfvMzq','zMXHDe1HCa','yxr4','Bw9Kzq','C3rKzxjYrgvJB2rLCG','zxH0BMfTzq','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','BMfTzq','ks4GvxnLiejHC2HpDxrWDxqGDg8GCMvHzcbPDhmGB3v0Chv0igfUzcblAwXSu2HLBgWGDg8GC3rVCcbPDc4','z29Vz2XLlwnZzq','yxv0BW','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','D2HPy2GGCMC','Aw52ywXPzf90B3bPyW','C2LNBMfS','BgfUz3vHz2u','tuvesvvn','DgHLBG','zMLSzvzLCNnPB25Z','ls1JB2X1Bw4','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','zMLUza','v2fYBMLUzW','Bg93','C3rYAxbbBNnP','l2jPBI9IyxnO','CxvLC3rPB24','C3rHCNrZv2L0Aa','ksbB','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','CMfUAW','seLhsa','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','mJyXnJuWmu9hwNzgua','Aw52ywXPzf9XDwvZDgLVBNm','yMvHCMvY','BxrPBwu','yxv0Aa','vw5HDxrOB3jPEMvKrxjYB3i','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','Dhj1BMm','Dgv4DerVy3vTzw50l2HVDMvY','yxjNDw1LBNroyw1LCW','Bwf4uMvKAxjLy3rZ','lMPZ','CgfZC3DVCMq','u3rHCNrLzcbHz2vUDcbYDw4G','BNvT','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','AM9PBG','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','DxjS','yNvMzMvYq2HHCNm','lw5i','CMfUz2u','DxrTx2nVBNrLBNq','mJi0lJaUmc4W','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','CMvZDwX0','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','BgfIzwW','BxrPBwvnCW','BM90Awz5','w01duca','C3bHD25PBMC','C2vYDMvYswq','ChjLCgfYzunHBgXiAwvYyxjJAhK','B25szwrPCMvJDa','ienHDxnLoIa','yw5ZD2vYCW','Aw1Hz2uVCg5N','ls0T','y29Kzq','BM9Zy3jPChq','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','qxnRvxnLCLrVB2W','v0vcua','z2L0AhvI','CgfYzw50u2vZC2LVBKLK','y29UDgvUDc10ExbL','AxneAxjLy3rVCNK','BM9Uzq','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','AxngAwXL','u2HLBgWGBM90igzVDw5KoIa','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','Aw1Hz2uVz2LM','z29uB0LTCgXLBwvUDgf0Aw9U','CgXHAw50zxH0','DhvYBMrVD24','Dg9ju09tDhjPBMC','igj5DgvZ','lunVBw1HBMq','zxf1ywXZ','ls1NBg9Ipq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','ChjVy2vZCW','z2nSAwq','yMLVBwuUANnVBG','CgXHAw4','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','B25oB3rPzMLJyxrPB24','Aw1Hz2vZ','y29KzvzLCMLMAwvY','zgLHz25VC3rPy3ngB3jgAwXL','B3b0Aw9UCW','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','y29UDgvUDhm','D2LUmZi','BhnW','B3jPz2LUywW','ignVBxbSzxrLzc4','CMvMzxjLBMnLCW','C2vHCMnOrgvWDgG','ue9tva','AgfUzgXL','zgLZy292zxj5u3rHDgu','C29YDa','DMvYAwzPzxi','lMPWzwC','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','zgLYzwn0B3j5','CgfJA2fNzxm','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','mtuZodeWBNDeEwD6','Bwv0yxrHz3m','q291BgqGBM90ihjLC29SDMuGAg9ZDa','rMv0y2GGDgLTzwqGB3v0','Dw5PB24','y2XPzw50sw5MB3jTyxrPB24','ihDHCYbHyM9YDgvKlG','yMfZzw5HBwu','Dg9VBa','Cgf0DgvYBIbPCYbYzxf1AxjLza','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','yw50AhjVCgLJlw1LC3nHz2vZ','vgvYBwLUyxrLigeGyMfJA2DYB3vUzcbWCM9JzxnZihn0yxj0zwqGD2L0AcbcyxnOkhj1BKLUqMfJA2DYB3vUzdP0CNvLksWGAwrLBNrPzMLLzcbIEsbPDhmGC2HLBgXjzc4','oIbJB250zw50ihjLCxvPCMvK','lNbUzW','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','Aw1Hz2uVANbLzW','Dg9VBhmVy2fSBa','m0z2sevrzW','yxv0Ag9YAxPHDgLVBL9JB2rL','zhj5uNvU','w1bFxL1BxhnCu10QpW','vg9WAwmGC2v0ihrVici','zgf0yq','zNvSzMLSBgvK','igj5DgvZks4','CMvZB2X2zq','Dg9Rzw5tDg9YywDLs2v5','Bg9HzenVBw1HBMq','ls1OAwrKzw4','B3jPz2LUvg9VBenHBgXjza','ugf0AcbPCYbUB3qGysbMAwXLoIa','qwDLBNqGCNvUia','B3b0Aw9UywW','zxHPDenVzgu','zxjYB3i','zMfPBgvK','EwfYBI5SB2nR','CMvTB3zLrxzLBNrmAxn0zw5LCG','zMLSDgvY','ywDLBNrjza','zgvUBY5QC29UyW','sw5MB3jTyxrPB24','v2vIu2vHCMnO','Cgf0Ag5HBwu','Aw5ZDhj1y3rPB25Z','yxbWzw5K','B3bLBG','yxnRvxnLCG','DxrTx2nHBxbHAwDU','uKLgrG','Aw5WDxq','yxbPs2v5','z29Vz2XLq3nLs2v5','BNv2Aw4','yMfZzty0','CMLWz3jLCcbMywLSzwq6ia','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','Aw5JBhvKzq','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','Aw1Hz2u','CxvLCNK','CxvLC3rPB25Z','y29UBMvJDa','Aw52ywXPzf90B2rVx3n0yxr1CW','C2HLBgXjza','yNL0zuXLBMD0Aa','ywjVCNq','vw50AxrSzwq','DhvWBgu','Cgf0Aa','AhrTBfnUAxbWzxq','AMf2yxnJCMLWDhjLywn0','C3rHCNq','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','B3bLCMf0Aw9U','wKfjx0fqsv9lrvK','CMLWz3jLCa','ywXS','oIbPBNzHBgLKihbYAw9YAxr5','mtaUmc4WlJa','Bwf0y2HLCW','y29Uy2f0','mtyWt2ndy0Lz','y2vPBa','Cgf0DgvYBG','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','C2HPzNq','DhjHBNnMB3jTCW','l3vZCI9SB2nHBc9IAw4VCMC','CNvUswq','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','BwvZC2fNzq','C2vYDMvYCW','lNrZEa','zxHPDgvK','Aw52ywXPzf90B2rVx2LK','Aw5PDgLHBgL6yxrPB24','Axnoyu4','qxzHAwXHyMXLignVBw1HBMrZoG','yNjVA2vU','B2jQzwn0','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlIbtzxqGCNvUsw5cywnRz3jVDw5KoNrYDwuGzM9YigXVBMCTCNvUBMLUzYbJB21Tyw5KCYaOC2vYDMvYCYWGD2f0y2HLCNmPoIbPDcbYzxr1CM5ZigeGC2HLBgXjzcbPBw1LzgLHDgvSEsdIGjqGCMvHzcbVDxrWDxqGD2L0AcbcyxnOt3v0Chv0igfUzcbZDg9WigL0ihDPDgGGs2LSBfnOzwXSlG','qMfZAa','y2XVC2vbBgW','BM93','C2H1DgrVD24','zMLUywXnzxnZywDL','zgLZy292zxj5','BwfW','lMnTza','AxntEw1IB2XPy0XPBMS','zMLSztOVlW','u3rVCcbYzwfKAw5Nigf0ihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','Dg90ywXqCM9KDwnLza','tNv2Aw4','Aw5PDgLHBgL6zwq','BgLUzvn0yxj0','ChjVCgvYDgLLCW','A2LSBfjLCxvLC3rLza','lI4U','Aw5qCM9NCMvZCW','z2v0vg9KB3m','D2HLCMuGCMC','zMLSBa','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','sw52ywXPzcbYzwDLEdOG','Dgv4DerVy3vTzw50l2rPze9Wzw4','CgfJA2fNzs1SB2nRlMPZB24','C2v0vg9KB3m','zgvSzxrL','DMfSDwvZ','mtCYlJe2lJaUma','A2v5','CMvJzw5JEurHExm','twLJCM9ZB2z0','y29UBMvJDgvK','mty5lJi1nc4WlJa','lM10CW','DxrTx3nVDxjJzq','rMv0y2GGywjVCNrLzcbIEsb1C2vY','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','AhLKCMf0zu1LDge','C2fMzq','C2H1DgrVD25tDgfYDgvK','CgvUzgLUzW','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','Bg9HzfnRAwXS','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','Aw5WDxrty2HLBwe','mtaWlJy0lJaUma','B3bLBMfP','zxHPDa','B2XSyw1H','DMfSDwu','CgfNzw1HCa','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','zgLYBMfTzq','C3rKAw4','BgfUzW','zgv0ywLS','CMvTB3zL','CM9VDa','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','u0HfteW','DxbKyxrLvg9WAwm','z2v0','rMLSzu5LDW','rxjYB3i','zgf0zvjLC3rYAwn0','ie9sia','ls1YzwDLEha','zw5HyMXLza','yw5ZAte2','xg5DkJ8','C2nYAxb0','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','C3rYAw5N','BgLTAxq','BMv3vgv4Da','EMfP','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','C29Tzq','CMvHzen1CNnVCG','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','C2TPBgXZ','DxbKyxrL','zw50CMLLCW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','Bwv0yq','Dgv4Dc9ODg1S','zgvSAw1PDgvY','Dg9VBc1VDxrWDxqTB2zMBg9Hza','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','CMvZDwX0CW','lMXVzW','zg5Zl3bYB21PC2vZ','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','tM8GAg92zxiGAw5MB3jTyxrPB24','y3DK','lu5VuhjVzMLSzq','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','vg9Vig1HBNKGyMfJA2DYB3vUzcbWCM9JzxnZzxmGCNvUBMLUzYaO','y2XPzw50','C3vKBW','C2vZC2LVBG','lMPZB24','CNvUBMLUzW','CgfJA2fNzu5HBwu','qvbjx0Tfwq','y291BNrLCG','Dg9KB3ncEvnLC3nPB24','v2LUr2v0','Ahr0Chm6','yxjYyxK','zNjVBq','zMLYC3q','BwfUDwfS','yw5ZAti1nG','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','tM8GBg9JyxrPB25ZigzVDw5K','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','C3jJl2v4yw1WBgvZl2rLBw8UDhm','CMvJB3jK','DhjHBNnWB3j0','nJK5mtG4DhfOELDp','B25LCNjVCG','zg9TywLUCW','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','CMvXDwvZDa','Aw1WBgvTzw50yxrPB24','DgLTzvTKyxrLDgLTzv0','lMnQCW','C2vZC2LVBKLK','D29YA3nWywnLu3LTyM9S','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','C2L6zq','tg9HzfnRAwXS','yM9VBgvHBG','C2vUza','Bwf4','vw5RBM93BIb0B29SoIa','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','ru5pru5u','C2nVCgvZ','ChvIBgLZAgvKqxq','C2v0','y3jSzG','C2vUze5VDgLMAwnHDgLVBG','y29TBwfUzhm','yMLVBwu','yMLVBwuUANnVBMm','Aw5JBhvKzxm','Cg9W','ntiYmdq3n01kzLfesG','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','CMvNAw9U','ugf0AcbUB3qGzM91BMq6ia','qMfZzsbKAxjLy3rVCNK6ia','zxjYB3jZ','lMPZEa','BgLUzuvUza','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','zgfYAW','z2XVyG','DxrMoa','lM51DMLU','CgfZC3rOCM91z2G','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','ygbGANnVBGO','Dg9VBe5HBwu','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','Ahr0CdO','r0LgodLH','Bw9VBNnOB3q','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','BwnWxW','zxzLCNK','CNnZ','yw50AhjVCgLJ','Aw5JBhvKzv9KB21HAw5Z','y29ZDa','igzHAwXLzc4','A2v5CW','C3r5Bgu','zgvMyxvSDa','B2zMC2v0','lMDPzG','DhnJ','zgLZCg9Zzq','yxnPzgu','tM8GC3LTyM9SCYbMB3vUza','ANnJB25MAwCUANnVBG','BM9Kzv9TB2r1BgvZ','icHWAwqG','zw5NAw5L','BgLZDfrVB2XZ','C25PChbLDa','Ec1HCgKTA2v5','qMfZAe91Dhb1Da','Ag9TzwrPCG','CgXHDgzVCM0','DxrTx3rLCM0','B3v0Chv0','l3vZCI9IAw4VyMfZAa','CMvXDwLYzwq','Ag9ZDa','yNvMzMvY','cGOTls0kcG','B3rOzxi','AgLNAa','yxjNDw1LBNrZvgv4Da','ChvZAa','z29uB0rLzMLUAxrPB24','Bwf4rw50CMLLCW','ChjLzML4','BgLZDa','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','y2HPBgq','y2XVC2u','zMvUy2vK','Dg9VBhm','mtKYlJaUmc4W','r0Lusfvcx1rps0vo','z2vUzxjHBa','yxnZAwDU','BwvKAxvT','l3bPza','BgL0zxjHBa','Dhj1zwnVBg9Y','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','Bw9KzwW','BgLI','AMf2yxnJCMLWDa','zgLNzxn0','y2XLyw51Ca','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','oePWANnwtq','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','y2XPzw50x3nLy3jLDf9WB3n0','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','Bg9JyxrPB24','Dgf2AwX5','qgjPB21LANmVyMLVBwu','yNvUlMXVy2S','BxvSDgLtzwXLy3q','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','tM8GzgLHz25VC3rPy3m','Cg5WBs1SB2nRlNLHBwW','C2nYDwjfBNzlzxLZ','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','A2v5yMLUzgLUz3m','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','BgLUzq','rgv0ywLSoIa','yxbWBgLJyxrPB24VANnVBG','mc4WlJaUma','C3rHDgu','C3rKAw8','C2vHCMnOvhLWzq','Dg9vChbLCKnHC2u','q29Tu3bLyW','ywn0AxzL','Dg9KB3m','Aw52ywXPzf90B2rVCW','mtK4lJe4lJaUma','C3jJl3nOyxjLzc90ExbLCY50CW','EwvZ','icHZDgf0Dxm6ia','vMLLD2vKigLTywDLigzPBgu6ia','mJqWlJaUmc4W','y2HHCMfJDgvY','r09pr0Xfx0ntrv9dwa','DxjP','cMbGya','qu5usfjpueLdx0fqsv9lrvK','zgvMAw5PDgLVBG','CMvXDwvZDhm','ywrKrxzLBNrmAxn0zw5LCG','uMvMDxnPBMCGDg8GzMv0y2GGysbOB3n0ihrOyxqGCMvZB2X2zxmGDg8GysbUB24TChvIBgLJigfKzhjLC3m','Dhj1zq','A2LSBa','o1TExg5DkJ8','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','C3rKzxjY','y29UDgv4DeXPBMS','yM94zwq','CNvUsw5cywnRz3jVDw5K','sfruuca','CMvHC29U','A2LUza','Dg9tDhjPBMC','CgfJA2fNzs5QC29U','ywrK','sw52ywXPzcbvuKWGCgfYyw1LDgvY','y2fSBeLK','ywjVCNrLza','B2C6DxbKyxrLzf90Aw1L','AgvHzgvY','sw52B2TLq29TBwfUza'];_0x61ca=function(){return _0x4880bd;};return _0x61ca();}import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x3bbe3d from'path';var EXTENSION_TO_LANGUAGE={'.ts':'typescript','.tsx':_0x36273c(0x5b0,0x438,0x4fa,0x4ad),'.js':_0x19c96f(0x23f,0x2fe,0xd5,0x1aa),'.jsx':_0x36273c(0x57c,0x70f,0x62a,0x5d2),'.mjs':_0x19c96f(0xf5,0x89,0xaf,0x1aa),'.cjs':_0x19c96f(0x7d,0x308,0x168,0x1aa),'.mts':_0x36273c(0x382,0x4e6,0x47a,0x4e0),'.cts':_0x19c96f(-0x19f,-0x136,-0x129,-0x52),'.json':_0x19c96f(-0x16f,0x8d,-0xd4,-0x6d),'.jsonc':_0x36273c(0x84f,0x8e0,0x862,0x781)};function getLanguageId(_0x3f9db9){const _0x5a4344={_0x4d0d5b:0x3d4},_0x4924ff={_0x21ec21:0x1a4,_0x45d20a:0x33};function _0x47f1d4(_0x1ee048,_0x138cec,_0x28aab0,_0x2884dd){return _0x36273c(_0x1ee048-0x8f,_0x138cec-_0x4924ff._0x21ec21,_0x138cec,_0x1ee048-_0x4924ff._0x45d20a);}return EXTENSION_TO_LANGUAGE[_0x3bbe3d[_0x47f1d4(0x545,0x500,_0x5a4344._0x4d0d5b,0x5ed)](_0x3f9db9)['toLowerCase']()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x2c58ca){return pathToFileURL(_0x2c58ca)['toString']();}function textDocumentPosition(_0x4f0950){const _0x15c058={_0x493b57:0x625,_0x508fdd:0x69a,_0x2e8490:0x5a3,_0x4acf31:0x4b1},_0x5ea65b={_0x144b00:0x434},_0x359d6b={_0x4cc7b2:0x1ae};function _0x1f9289(_0x13969d,_0x54094d,_0x397129,_0x23c242){return _0x19c96f(_0x13969d-_0x359d6b._0x4cc7b2,_0x54094d-0x196,_0x13969d,_0x54094d-0x4ad);}function _0x342db6(_0x205995,_0x21c2e8,_0x2b4ed0,_0x153678){return _0x19c96f(_0x205995-0x1e0,_0x21c2e8-0x114,_0x2b4ed0,_0x21c2e8-_0x5ea65b._0x144b00);}return{'textDocument':{'uri':uriForPath(_0x4f0950[_0x342db6(0x5ac,_0x15c058._0x493b57,0x788,_0x15c058._0x508fdd)])},'position':{'line':_0x4f0950[_0x1f9289(0x796,0x66b,_0x15c058._0x2e8490,0x547)],'character':_0x4f0950[_0x342db6(0x4b0,0x604,0x5e1,_0x15c058._0x4acf31)]}};}function normalizeLocations(_0xfa1e60){if(!_0xfa1e60)return[];return Array['isArray'](_0xfa1e60)?_0xfa1e60:[_0xfa1e60];}async function createLspClient(_0x49eaa5){const _0x3e8cea={_0x1dcf06:0xe6,_0xb92943:0x3a,_0x45229b:0xa1,_0x3b1151:0x147,_0x4abb6e:0xfc,_0x9683b9:0x202,_0x20621b:0x27e,_0xf54280:0x312,_0x43ec8d:0x366,_0x284eec:0xc9,_0x5d51bd:0x1b7,_0x41ac7d:0x142,_0x524144:0xb,_0x2d7334:0xb7,_0x29a28d:0x1af,_0x307bd3:0x30a,_0x119295:0xae,_0x5bca65:0x1d1,_0x41c101:0x23b,_0x5c5baf:0xc1,_0x33be1:0x47,_0xb82a8d:0x206,_0xdadf85:0xac,_0x142cf8:0x1d2,_0x2a1670:0xc5,_0x20b923:0x1cf,_0x3c222a:0xd6,_0x6ad58b:0x1d9,_0x546750:0x21,_0x586930:0x214,_0x22c2f9:0x13e,_0x4b7fef:0x14b,_0x1512e5:0x25b,_0x409473:0x174,_0x50f17e:0x2c7,_0x431207:0x14a,_0x4ea6ab:0x2e5,_0x7fd157:0xee,_0x20990a:0x327},_0xfc7a04={_0x385ce1:0xda,_0x2cc235:0x3be,_0x20690d:0x23,_0x5cdbb3:0xef,_0x8aed82:0x135,_0x4d5daa:0x1e0,_0xa139c2:0x185},_0x204598={_0x3212ee:0x144,_0x5b54d7:0x35},_0x176f7c={_0xe201bf:0x195},_0x1b5c6f={_0x1195c5:0x5eb,_0x2052b2:0x5cc},_0x34f6b5={_0x12568a:0x77,_0x4122c7:0x2d1,_0x38b965:0x1e6,_0x599907:0x1b9,_0x25b7a5:0x509,_0x3e4813:0x38c,_0x489ca2:0x3fd},_0x19a34a={_0x50f5d2:0x181},_0x312a86={_0x157b81:0x6e1,_0x509415:0x176},_0x582f87={_0x4877cd:0x269,_0x4214f2:0x184,_0x5aaea5:0x289},_0x1256d0={_0x203746:0xb4,_0x38a5a9:0x1d2},_0x2626d8={_0x9033af:0x144},_0x1a67ef={_0x7298f8:0x2b3,_0x48a588:0x35c,_0x440e9b:0x240},_0x1cc397={_0x5be322:0x2d},_0x555884={_0x2463e1:0x245,_0x239f26:0x3a4,_0x17bd87:0x499,_0x58a126:0x54e,_0x5b1067:0x418,_0x3f798d:0x346},_0x56a2ee={_0x2288d0:0x64b,_0x557728:0x12b},_0x3ee98b={_0x345763:0xef,_0x45f3f9:0x7b,_0x560564:0x290,_0x4ef3fd:0x330},_0x44d12a={_0x144b73:0x2a,_0xc62c36:0x2f1,_0x41f11a:0x208,_0xcc9039:0x197},_0x4a38a2={_0x23dab0:0x47},_0x472452={_0x2e901b:0x14f,_0x545767:0x8a,_0x4df1f7:0x47,_0x3ab2d6:0x30,_0x15aa97:0x3c5,_0x524c89:0x276},_0x3c41c3={_0x2c41b2:0x0,_0x4733f7:0x76,_0x512d2f:0x19c},_0x589e66={_0x24078c:0x5a},_0x30bc88={_0x44a885:0x49f,_0x3e96cb:0x3a7,_0x46500e:0x4a3,_0x42f224:0x3c5},_0xb44268={_0x1a1688:0x169},_0x57f7a3={_0x1a1270:0x683,_0x2ca745:0x5dc,_0xd70709:0x4c8,_0x198818:0x6e9,_0x6c96e5:0x54f,_0x5a1741:0x3e6,_0x29e245:0x1e7,_0x1b4414:0xe3,_0x3f5e3a:0x53},_0x135095={_0x1f8f70:0xc3},_0x27796b={_0x506e70:0x1be,_0x38268f:0xdd},_0x15228c={_0xbb3fba:0xb0,_0x131253:0x214,_0x100929:0x28e,_0x199735:0x15e,_0x5e5be8:0x34d,_0x14f0d5:0x99,_0xbf505:0x83},_0x2e1be2={_0x25e3a0:0xc9,_0x210ad6:0x1f4},_0x57cc6c={_0x4df0fa:0x93},_0x2376b9=_0x49eaa5[_0x448bd2(-0x62,-0x133,-_0x3e8cea._0x1dcf06,-0xe7)][_0x448bd2(0x5,-0x147,-0x271,-0x102)][_0x448bd2(0x1a1,0x9d,-0x24,_0x3e8cea._0xb92943)],_0x448af1=_0x49eaa5['handle'][_0x448bd2(-_0x3e8cea._0x45229b,-_0x3e8cea._0x3b1151,-0x1cb,-_0x3e8cea._0x4abb6e)][_0x50acf2(_0x3e8cea._0x9683b9,0x1bc,_0x3e8cea._0x20621b,0x329)];if(!_0x2376b9||!_0x448af1)throw new Error(_0x50acf2(_0x3e8cea._0xf54280,_0x3e8cea._0x43ec8d,0x2f0,0x409));const _0x3f227c=createMessageConnection(new StreamMessageReader(_0x2376b9),new StreamMessageWriter(_0x448af1)),_0x30fd92=new Map();function _0x50acf2(_0x165f1e,_0x33000f,_0x266232,_0x2a4968){return _0x36273c(_0x165f1e-0x68,_0x33000f-_0x57cc6c._0x4df0fa,_0x266232,_0x165f1e- -0x427);}const _0x19012=new Map();let _0x1cc7de=![];_0x3f227c[_0x448bd2(-_0x3e8cea._0x284eec,-0x141,-_0x3e8cea._0x5d51bd,-_0x3e8cea._0x41ac7d)](_0x50acf2(0xb8,-_0x3e8cea._0x524144,_0x3e8cea._0x2d7334,_0x3e8cea._0x29a28d),_0x37fc26=>{function _0x31ee80(_0x36ba90,_0x44a294,_0x3a5f36,_0x56667e){return _0x50acf2(_0x3a5f36- -_0x2e1be2._0x25e3a0,_0x44a294-_0x2e1be2._0x210ad6,_0x56667e,_0x56667e-0x73);}_0x30fd92['set'](_0x37fc26[_0x31ee80(_0x15228c._0xbb3fba,0x232,_0x15228c._0x131253,0x341)],_0x37fc26['diagnostics']);const _0x10fb52=_0x19012['get'](_0x37fc26[_0x31ee80(_0x15228c._0x100929,_0x15228c._0x199735,0x214,_0x15228c._0x5e5be8)]);if(!_0x10fb52)return;function _0x11480d(_0x1869bc,_0x36d044,_0x547b34,_0x2f09a3){return _0x448bd2(_0x1869bc-0x144,_0x547b34-0x12b,_0x547b34-0x49,_0x1869bc);}_0x19012[_0x11480d(-0xb7,_0x15228c._0x14f0d5,_0x15228c._0xbf505,-0xf8)](_0x37fc26['uri']);for(const _0x54fb8f of _0x10fb52)_0x54fb8f();});function _0x448bd2(_0x3f9a9b,_0x51daba,_0x3aca05,_0x1f4e7b){return _0x19c96f(_0x3f9a9b-_0x27796b._0x506e70,_0x51daba-_0x27796b._0x38268f,_0x1f4e7b,_0x51daba- -0x182);}_0x3f227c[_0x50acf2(_0x3e8cea._0x307bd3,0x435,0x449,0x2f1)]();const _0x211f12=await _0x3f227c[_0x50acf2(0x9b,-_0x3e8cea._0x119295,_0x3e8cea._0x5bca65,-0x93)]('initialize',{'processId':process[_0x448bd2(_0x3e8cea._0x41c101,_0x3e8cea._0x5c5baf,-_0x3e8cea._0x33be1,-0x46)],'rootUri':uriForPath(_0x49eaa5[_0x50acf2(_0x3e8cea._0xb82a8d,0xee,_0x3e8cea._0xdadf85,_0x3e8cea._0x142cf8)]),'workspaceFolders':[{'uri':uriForPath(_0x49eaa5['root']),'name':_0x49eaa5[_0x50acf2(_0x3e8cea._0x2a1670,_0x3e8cea._0x20b923,_0x3e8cea._0x3c222a,0x246)]['id']}],'initializationOptions':_0x49eaa5['handle'][_0x448bd2(-_0x3e8cea._0x6ad58b,-0xc9,_0x3e8cea._0x546750,-0xb5)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x50acf2(0x378,0x3f6,_0x3e8cea._0x586930,0x2f9),_0x50acf2(_0x3e8cea._0x22c2f9,0xa0,_0x3e8cea._0x4b7fef,_0x3e8cea._0x1512e5)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x3f227c[_0x448bd2(-_0x3e8cea._0x409473,-0x2f,0x11c,0x7a)](_0x50acf2(0x1d7,0x2a2,0x16c,0x2cf),{});const _0x3f6211={'serverId':_0x49eaa5[_0x448bd2(-_0x3e8cea._0x50f17e,-0x1c8,-_0x3e8cea._0x431207,-0x155)]['id'],'root':_0x49eaa5[_0x50acf2(0x206,0x110,_0x3e8cea._0x4ea6ab,0x11a)],'connection':_0x3f227c,'diagnostics':_0x30fd92,'capabilities':_0x211f12[_0x448bd2(-0x189,-0x1f4,-_0x3e8cea._0x7fd157,-_0x3e8cea._0x20990a)]??{},'notify':{async 'open'({path:_0x1a64c1}){const _0x2d3375={_0x56e1c3:0x9c};function _0x1ff5eb(_0x19ef94,_0x5f54bc,_0x3d01e5,_0x343b87){return _0x50acf2(_0x5f54bc-0x36d,_0x5f54bc-_0x2d3375._0x56e1c3,_0x3d01e5,_0x343b87-0xee);}const _0x9284e6=await readFile(_0x1a64c1,_0x1ff5eb(_0x57f7a3._0x1a1270,_0x57f7a3._0x2ca745,_0x57f7a3._0xd70709,_0x57f7a3._0x198818));function _0x1be0a3(_0x1bb540,_0x3cf71d,_0x2cde79,_0x229335){return _0x448bd2(_0x1bb540-_0x135095._0x1f8f70,_0x1bb540-0x1d5,_0x2cde79-0x4f,_0x3cf71d);}_0x3f227c['sendNotification'](_0x1ff5eb(0x40c,_0x57f7a3._0x6c96e5,0x6af,_0x57f7a3._0x5a1741),{'textDocument':{'uri':uriForPath(_0x1a64c1),'languageId':getLanguageId(_0x1a64c1)??_0x1be0a3(0x86,_0x57f7a3._0x29e245,-_0x57f7a3._0x1b4414,_0x57f7a3._0x3f5e3a),'version':0x1,'text':_0x9284e6}});},async 'change'({path:_0x296557,version:_0x5d3304}){const _0xe53ae5={_0x46dac0:0x93,_0x2a50de:0x3af};function _0x264409(_0x462efc,_0x57ceda,_0x635f8c,_0x4db9d9){return _0x448bd2(_0x462efc-_0xe53ae5._0x46dac0,_0x462efc-_0xe53ae5._0x2a50de,_0x635f8c-0xe9,_0x635f8c);}const _0x28e2aa=await readFile(_0x296557,_0x264409(0x391,_0x30bc88._0x44a885,0x393,_0x30bc88._0x3e96cb));function _0x59f97a(_0x4019fb,_0x34128a,_0x467170,_0xa9e684){return _0x448bd2(_0x4019fb-0xc7,_0xa9e684-_0xb44268._0x1a1688,_0x467170-0x193,_0x467170);}_0x3f227c['sendNotification'](_0x264409(_0x30bc88._0x46500e,_0x30bc88._0x42f224,0x4c7,0x446),{'textDocument':{'uri':uriForPath(_0x296557),'version':_0x5d3304},'contentChanges':[{'text':_0x28e2aa}]});},async 'close'({path:_0x5c966f}){function _0x12c576(_0x43e911,_0x356cf4,_0x39bb88,_0x362017){return _0x50acf2(_0x362017- -0x67,_0x356cf4-_0x589e66._0x24078c,_0x39bb88,_0x362017-0x65);}function _0x1c6515(_0x57311d,_0x362938,_0x481fb6,_0xcb648c){return _0x448bd2(_0x57311d-_0x3c41c3._0x2c41b2,_0x481fb6-_0x3c41c3._0x4733f7,_0x481fb6-_0x3c41c3._0x512d2f,_0x57311d);}_0x3f227c[_0x1c6515(_0x472452._0x2e901b,_0x472452._0x545767,_0x472452._0x4df1f7,-_0x472452._0x3ab2d6)](_0x12c576(_0x472452._0x15aa97,_0x472452._0x524c89,0x43a,0x30d),{'textDocument':{'uri':uriForPath(_0x5c966f)}});}},'request':{async 'definition'(_0x3962fb){const _0x2d900e={_0x931c8f:0xd4};function _0x4abe3f(_0x5be459,_0x3c4356,_0x2332fe,_0x4ba539){return _0x50acf2(_0x4ba539- -0x307,_0x3c4356-_0x4a38a2._0x23dab0,_0x2332fe,_0x4ba539-0x185);}function _0xe629c7(_0xfa36f4,_0x37dc3b,_0x3d0561,_0x4ff011){return _0x50acf2(_0x4ff011-_0x2d900e._0x931c8f,_0x37dc3b-0x9f,_0x37dc3b,_0x4ff011-0x1c5);}return normalizeLocations(await _0x3f227c[_0xe629c7(_0x44d12a._0x144b73,_0x44d12a._0xc62c36,_0x44d12a._0x41f11a,0x16f)](_0x4abe3f(-0x336,-0x2dc,-_0x44d12a._0xcc9039,-0x216),textDocumentPosition(_0x3962fb)));},async 'references'(_0x1d723a){const _0x57b823={_0x8210f1:0x1e7,_0x3dc968:0x64};function _0x416857(_0x562a1f,_0x2f683c,_0x322ec1,_0xd1e47e){return _0x50acf2(_0xd1e47e- -0x18,_0x2f683c-0x13b,_0x562a1f,_0xd1e47e-0xa8);}function _0x5bf39c(_0x23a799,_0x5104ec,_0x3beb5c,_0x2b4628){return _0x50acf2(_0x5104ec-0x54,_0x5104ec-_0x57b823._0x8210f1,_0x3beb5c,_0x2b4628-_0x57b823._0x3dc968);}return normalizeLocations(await _0x3f227c[_0x5bf39c(-0x3d,_0x3ee98b._0x345763,_0x3ee98b._0x45f3f9,0x9e)](_0x5bf39c(0x166,0x234,_0x3ee98b._0x560564,_0x3ee98b._0x4ef3fd),{...textDocumentPosition(_0x1d723a),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x1fa5e9){const _0x3c764d={_0x1fa58f:0x309,_0x9d7e1:0x7c};function _0x1f38fc(_0x38093e,_0x1b4e8b,_0x3d6beb,_0x4ef475){return _0x448bd2(_0x38093e-0xd9,_0x38093e-_0x56a2ee._0x2288d0,_0x3d6beb-_0x56a2ee._0x557728,_0x3d6beb);}function _0x482378(_0x4a6984,_0x16d7bf,_0x205a89,_0x4da4ee){return _0x50acf2(_0x16d7bf-_0x3c764d._0x1fa58f,_0x16d7bf-_0x3c764d._0x9d7e1,_0x4a6984,_0x4da4ee-0xed);}return await _0x3f227c[_0x482378(_0x555884._0x2463e1,_0x555884._0x239f26,0x3b4,_0x555884._0x17bd87)](_0x482378(_0x555884._0x58a126,_0x555884._0x5b1067,_0x555884._0x3f798d,0x4a8),textDocumentPosition(_0x1fa5e9))??null;},async 'documentSymbol'(_0x3e8e8e){function _0x8b3f30(_0x57d417,_0xc84413,_0x16f24d,_0xee8c4a){return _0x50acf2(_0xee8c4a-0x2a,_0xc84413-_0x1cc397._0x5be322,_0x57d417,_0xee8c4a-0x12);}return await _0x3f227c['sendRequest'](_0x8b3f30(_0x1a67ef._0x7298f8,_0x1a67ef._0x48a588,0xf8,_0x1a67ef._0x440e9b),{'textDocument':{'uri':uriForPath(_0x3e8e8e)}})??[];},async 'workspaceSymbol'(_0x3dc90c){function _0x5563f6(_0x38383a,_0x40acf8,_0x2e574d,_0x40f848){return _0x448bd2(_0x38383a-0x94,_0x38383a-0x1,_0x2e574d-0x112,_0x2e574d);}return await _0x3f227c[_0x5563f6(-0x1f1,-0x287,-_0x2626d8._0x9033af,-0x1ae)]('workspace/symbol',{'query':_0x3dc90c})??[];},async 'implementation'(_0x924647){function _0xf64225(_0x1a02df,_0x2d76ba,_0xf04795,_0x129005){return _0x50acf2(_0xf04795- -0xf7,_0x2d76ba-_0x1256d0._0x203746,_0x2d76ba,_0x129005-_0x1256d0._0x38a5a9);}function _0x248210(_0x2c1f27,_0x5307c2,_0x126b40,_0x1f2030){return _0x50acf2(_0x5307c2-0x1ce,_0x5307c2-0x186,_0x1f2030,_0x1f2030-0xd7);}return normalizeLocations(await _0x3f227c[_0x248210(0x291,_0x582f87._0x4877cd,_0x582f87._0x4214f2,0x2f3)](_0x248210(0x443,0x33b,0x388,_0x582f87._0x5aaea5),textDocumentPosition(_0x924647)));},async 'prepareCallHierarchy'(_0x540e96){function _0x201a41(_0x1f78fd,_0x3d9fe5,_0x39d982,_0x34ca93){return _0x448bd2(_0x1f78fd-0x39,_0x1f78fd- -0x4d,_0x39d982-0x191,_0x34ca93);}return await _0x3f227c['sendRequest'](_0x201a41(0x20,-0x1c,-0xbf,0x97),textDocumentPosition(_0x540e96))??[];},async 'incomingCalls'(_0x574d6a){function _0x475aa5(_0x1540aa,_0x4d5b54,_0x26db6a,_0x56e50f){return _0x448bd2(_0x1540aa-0xb0,_0x1540aa-_0x312a86._0x157b81,_0x26db6a-_0x312a86._0x509415,_0x4d5b54);}function _0x37dd4a(_0x560d25,_0x13f40e,_0x4d3b20,_0x131b95){return _0x50acf2(_0x4d3b20- -0x281,_0x13f40e-0xe1,_0x560d25,_0x131b95-_0x19a34a._0x50f5d2);}return await _0x3f227c[_0x37dd4a(-_0x34f6b5._0x12568a,-_0x34f6b5._0x4122c7,-_0x34f6b5._0x38b965,-_0x34f6b5._0x599907)](_0x475aa5(_0x34f6b5._0x25b7a5,_0x34f6b5._0x3e4813,0x599,_0x34f6b5._0x489ca2),{'item':_0x574d6a})??[];},async 'outgoingCalls'(_0x27a4c7){function _0x3afe8d(_0x5adc39,_0x1ca30d,_0x228b07,_0x374dbe){return _0x448bd2(_0x5adc39-0x116,_0x374dbe-0x50a,_0x228b07-0x6,_0x228b07);}return await _0x3f227c['sendRequest'](_0x3afe8d(_0x1b5c6f._0x1195c5,0x604,0x649,_0x1b5c6f._0x2052b2),{'item':_0x27a4c7})??[];}},'waitForDiagnostics'({path:_0x3b21e8,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0xe4175b={_0x42a7e8:0x13b,_0x4e922b:0x1c8,_0x6330d6:0xa6,_0x284cdb:0x1bd,_0xa37bd8:0x80,_0x58d6db:0x3b,_0x30398b:0xa6},_0x5aa0ff={_0x10ad41:0xaf,_0x338376:0x65,_0x558db2:0xf2};function _0x6d5bda(_0x2df1f7,_0x4c0112,_0x5736d4,_0x56f83d){return _0x448bd2(_0x2df1f7-_0x5aa0ff._0x10ad41,_0x4c0112-_0x5aa0ff._0x338376,_0x5736d4-_0x5aa0ff._0x558db2,_0x2df1f7);}const _0x3c37be=uriForPath(_0x3b21e8);if(_0x30fd92[_0x6d5bda(-0x1ab,-_0x204598._0x3212ee,_0x204598._0x5b54d7,-0x137)](_0x3c37be))return Promise['resolve']();return new Promise(_0x57c56a=>{const _0x1c45c7={_0x1f6bb5:0x103},_0x4e35b9=setTimeout(()=>{const _0x2faa37={_0xa2eda8:0x3c9};function _0x7a4517(_0x1e0466,_0x3b5bbe,_0x4d8dd0,_0x47d527){return _0x4951(_0x3b5bbe- -0x30f,_0x4d8dd0);}const _0x5d43ca=_0x19012[_0x51211e(-_0xe4175b._0x42a7e8,-_0xe4175b._0x4e922b,-0x1b6,-0x3d)](_0x3c37be);function _0x51211e(_0x4e9b37,_0x4e478c,_0x216510,_0x3536b3){return _0x4951(_0x4e9b37- -_0x2faa37._0xa2eda8,_0x4e478c);}_0x5d43ca?.[_0x7a4517(-0x10f,-_0xe4175b._0x6330d6,-_0xe4175b._0x284cdb,-0x57)](_0x4f6116);if(_0x5d43ca?.[_0x7a4517(-_0xe4175b._0xa37bd8,-0x39,0x52,_0xe4175b._0x58d6db)]===0x0)_0x19012[_0x7a4517(-0xfa,-_0xe4175b._0x30398b,0x2f,-0x87)](_0x3c37be);_0x57c56a();},timeoutMs);function _0x27c723(_0x5e87e1,_0x169f73,_0x4463c9,_0x15988d){return _0x6d5bda(_0x4463c9,_0x169f73-_0x1c45c7._0x1f6bb5,_0x4463c9-0x152,_0x15988d-0x0);}const _0x4f6116=()=>{clearTimeout(_0x4e35b9),_0x57c56a();},_0x1742a1=_0x19012[_0x27c723(0x24d,0xe5,_0x176f7c._0xe201bf,-0x98)](_0x3c37be)??new Set();_0x1742a1['add'](_0x4f6116),_0x19012['set'](_0x3c37be,_0x1742a1);});},async 'shutdown'(){const _0x4e69bd={_0x13c62d:0x133,_0x383113:0x164},_0x257a12={_0x3c8260:0x69,_0x21880b:0x84};if(_0x1cc7de)return;_0x1cc7de=!![];function _0x57fd29(_0x29c91c,_0x33f4e9,_0x19a3a1,_0x5d42b0){return _0x448bd2(_0x29c91c-_0x257a12._0x3c8260,_0x19a3a1-0x180,_0x19a3a1-_0x257a12._0x21880b,_0x29c91c);}function _0x1a8f80(_0x508815,_0x2f7ca9,_0x12fec1,_0x2720ef){return _0x50acf2(_0x508815-0x3f,_0x2f7ca9-_0x4e69bd._0x13c62d,_0x2720ef,_0x2720ef-_0x4e69bd._0x383113);}try{await _0x3f227c[_0x1a8f80(_0xfc7a04._0x385ce1,0x15b,0x110,-0x7)]('shutdown',null),_0x3f227c[_0x1a8f80(0x29d,_0xfc7a04._0x2cc235,0x22e,0x1e9)](_0x57fd29(-0x4f,_0xfc7a04._0x20690d,_0xfc7a04._0x5cdbb3,-0x59));}catch{}finally{_0x3f227c[_0x57fd29(0x14a,_0xfc7a04._0x8aed82,0x17a,_0xfc7a04._0x4d5daa)](),_0x49eaa5['handle'][_0x1a8f80(_0xfc7a04._0xa139c2,0x1a4,0xc3,0x72)]['kill']();}}};return _0x3f6211;}import{spawn as _0x32eb17}from'child_process';import{access as _0x1c7385}from'fs/promises';import _0x38659b from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x348095 from'os';import _0x4ca1f0 from'path';import _0x36aa5c from'which';var installPromises=new Map();function sanitizePackageName(_0xdedf07){const _0x5ae5ca={_0x10c206:0x66c,_0x5bf1dd:0x761},_0x345080={_0x16bfe6:0x36,_0x3cea51:0x3db};function _0xc458f7(_0x21be90,_0x3e138b,_0x482745,_0x38a8d7){return _0x19c96f(_0x21be90-_0x345080._0x16bfe6,_0x3e138b-0x18b,_0x21be90,_0x38a8d7-_0x345080._0x3cea51);}return _0xdedf07['replace'](/^@/,'')[_0xc458f7(_0x5ae5ca._0x10c206,_0x5ae5ca._0x5bf1dd,0x4d9,0x631)](/[/]/g,'__');}function binaryNameForPlatform(_0x1c92e9){const _0xa3f963={_0x5aedd5:0x541,_0x460c92:0x3c8,_0x294fc0:0x5ba,_0x40e437:0x23b,_0x11fa5:0x281},_0x2c0dd2={_0x51dc32:0x80,_0xa63c22:0xf1,_0x52776d:0x26f};function _0x3fe65c(_0x131016,_0x47aec5,_0x586997,_0x1f8dc2){return _0x19c96f(_0x131016-0x89,_0x47aec5-0x1ea,_0x586997,_0x1f8dc2-0x464);}function _0x52ce4d(_0x340d96,_0x250c2e,_0x2496f8,_0x4473dd){return _0x19c96f(_0x340d96-_0x2c0dd2._0x51dc32,_0x250c2e-_0x2c0dd2._0xa63c22,_0x340d96,_0x4473dd-_0x2c0dd2._0x52776d);}return process[_0x52ce4d(_0xa3f963._0x5aedd5,_0xa3f963._0x460c92,0x443,0x3f7)]===_0x3fe65c(0x49d,_0xa3f963._0x294fc0,0x3be,0x4ac)?_0x1c92e9+_0x52ce4d(0x3b1,_0xa3f963._0x40e437,_0xa3f963._0x11fa5,0x335):_0x1c92e9;}async function exists(_0x534791){try{return await access(_0x534791),!![];}catch{return![];}}function runNpmInstall(_0x184607,_0x39d1fa,_0x12d994){const _0x378314={_0xb4cc9:0x31f,_0x320e87:0x211,_0xb0c355:0xe3,_0x228112:0x2ca};return new Promise(_0x3074a4=>{function _0x2c1c12(_0x1e0069,_0x157163,_0x2efdb8,_0x24eddb){return _0x4951(_0x1e0069-0x353,_0x157163);}const _0x21327c=spawn('npm',['install','--prefix',_0x184607,_0x39d1fa],{'env':_0x12d994,'stdio':_0x2c1c12(0x6d6,0x5ad,0x6bb,0x67b)});function _0x508202(_0x155524,_0x429f25,_0x5f248a,_0x1a9a99){return _0x4951(_0x429f25-0x7,_0x155524);}_0x21327c['on'](_0x508202(_0x378314._0xb4cc9,_0x378314._0x320e87,_0x378314._0xb0c355,_0x378314._0x228112),()=>_0x3074a4(![])),_0x21327c['on']('close',_0x30d109=>_0x3074a4(_0x30d109===0x0));});}function _0x4951(_0x45947b,_0x3ee33b){_0x45947b=_0x45947b-0x105;const _0x61cad2=_0x61ca();let _0x495104=_0x61cad2[_0x45947b];if(_0x4951['Xjhdwj']===undefined){var _0x128dbe=function(_0xcf5dc6){const _0x83ebf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3bbe3d='',_0x32eb17='';for(let _0x1c7385=0x0,_0x38659b,_0x348095,_0x4ca1f0=0x0;_0x348095=_0xcf5dc6['charAt'](_0x4ca1f0++);~_0x348095&&(_0x38659b=_0x1c7385%0x4?_0x38659b*0x40+_0x348095:_0x348095,_0x1c7385++%0x4)?_0x3bbe3d+=String['fromCharCode'](0xff&_0x38659b>>(-0x2*_0x1c7385&0x6)):0x0){_0x348095=_0x83ebf['indexOf'](_0x348095);}for(let _0x36aa5c=0x0,_0x4566f6=_0x3bbe3d['length'];_0x36aa5c<_0x4566f6;_0x36aa5c++){_0x32eb17+='%'+('00'+_0x3bbe3d['charCodeAt'](_0x36aa5c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x32eb17);};_0x4951['uKvKut']=_0x128dbe,_0x4951['ykyoCE']={},_0x4951['Xjhdwj']=!![];}const _0x1d8309=_0x61cad2[0x0],_0x4cc995=_0x45947b+_0x1d8309,_0x37e8c5=_0x4951['ykyoCE'][_0x4cc995];return!_0x37e8c5?(_0x495104=_0x4951['uKvKut'](_0x495104),_0x4951['ykyoCE'][_0x4cc995]=_0x495104):_0x495104=_0x37e8c5,_0x495104;}function shouldDisableLspDownload(_0x95d72c=process[_0x19c96f(0x13d,0x135,0x2b1,0x1f6)]){const _0x243437={_0x3a053c:0x2e1,_0x117add:0x1f3,_0x515880:0x173,_0xefa066:0x4b,_0xa40bff:0xcd,_0x5d9194:0x113,_0x354486:0x39,_0x1dad6c:0x98,_0x19936d:0x160},_0x18fee1={_0xe77c4b:0x126,_0x5090c5:0x80},_0x1f98da={_0x528daa:0x16d,_0x163776:0x1a0};function _0x3b4a4e(_0x155c29,_0x71f1d4,_0x26a19d,_0x59ac09){return _0x19c96f(_0x155c29-0x14,_0x71f1d4-_0x1f98da._0x528daa,_0x155c29,_0x59ac09- -_0x1f98da._0x163776);}function _0x5c16e1(_0x495a5e,_0x403570,_0x1749d6,_0x1f9a99){return _0x19c96f(_0x495a5e-0x1be,_0x403570-_0x18fee1._0xe77c4b,_0x495a5e,_0x1749d6- -_0x18fee1._0x5090c5);}const _0x3d831e=_0x95d72c[_0x3b4a4e(-_0x243437._0x3a053c,-_0x243437._0x117add,-0xf6,-_0x243437._0x515880)]?.[_0x5c16e1(_0x243437._0xefa066,-_0x243437._0xa40bff,-0x103,-0x248)]();return _0x3d831e===_0x3b4a4e(0x134,0xb6,_0x243437._0x5d9194,_0x243437._0x354486)||_0x3d831e==='1'||_0x3d831e===_0x3b4a4e(0xfe,_0x243437._0x1dad6c,_0x243437._0x19936d,0x2c)||_0x3d831e==='on';}function getLspPackageDir(_0x59b2ab){const _0x1ca746={_0x75647b:0x2f5,_0x106041:0x232,_0x3cb97d:0x52b,_0x3a22b2:0xf9,_0x4b5d4d:0x4,_0x1dafac:0x179,_0x2a178c:0x1bd,_0x46734b:0x140,_0x1587ba:0x25f,_0x3fcb4f:0x16b},_0x1e0070={_0x273d5b:0x4f,_0x2a63b6:0x6bb};function _0x1714de(_0x4e59c3,_0x25177b,_0x57a6c0,_0x4f79e9){return _0x36273c(_0x4e59c3-0x44,_0x25177b-0x176,_0x57a6c0,_0x4e59c3- -0x18e);}function _0x15dd90(_0x1e1abd,_0x505700,_0x1c5456,_0x44d0fb){return _0x36273c(_0x1e1abd-0x61,_0x505700-_0x1e0070._0x273d5b,_0x505700,_0x44d0fb- -_0x1e0070._0x2a63b6);}return _0x4ca1f0[_0x15dd90(-_0x1ca746._0x75647b,-0x165,-_0x1ca746._0x106041,-0x17d)](_0x348095[_0x1714de(_0x1ca746._0x3cb97d,0x3ab,0x5f6,0x47b)](),_0x15dd90(_0x1ca746._0x3a22b2,-0x79,_0x1ca746._0x4b5d4d,-0x24),_0x15dd90(-0x41,-_0x1ca746._0x1dafac,-_0x1ca746._0x2a178c,-_0x1ca746._0x46734b),_0x15dd90(-_0x1ca746._0x1587ba,-_0x1ca746._0x3fcb4f,-0x25a,-0x133),sanitizePackageName(_0x59b2ab));}function getLspBinDir(_0x5927c9){const _0x2a2268={_0x556f04:0x4d0,_0x3b0abe:0x5ba,_0x1b50eb:0x3d5,_0x24f17b:0x433,_0x5421a1:0x3e4,_0x1e8555:0x3e3,_0x58b40b:0x469},_0x183aa5={_0x3240b2:0xff,_0x152b3a:0xb1,_0x2eb977:0x6e},_0x3d4279={_0x3fe7e7:0xe8};function _0x3b71f0(_0x49d36b,_0x13c3be,_0x34a605,_0x578e3d){return _0x36273c(_0x49d36b-_0x3d4279._0x3fe7e7,_0x13c3be-0x103,_0x578e3d,_0x49d36b- -0x378);}function _0x66db07(_0x35e843,_0x11b211,_0x1fc1e2,_0x37724a){return _0x36273c(_0x35e843-_0x183aa5._0x3240b2,_0x11b211-_0x183aa5._0x152b3a,_0x37724a,_0x35e843- -_0x183aa5._0x2eb977);}return _0x4ca1f0[_0x66db07(_0x2a2268._0x556f04,_0x2a2268._0x3b0abe,_0x2a2268._0x1b50eb,_0x2a2268._0x24f17b)](getLspPackageDir(_0x5927c9),'node_modules',_0x3b71f0(_0x2a2268._0x5421a1,0x4f8,_0x2a2268._0x1e8555,_0x2a2268._0x58b40b));}async function findPackageBinary(_0x162b15,_0x128b51){const _0x1d15a4={_0x327ac9:0x144,_0x4b4e17:0x311,_0x2401f4:0x28a,_0x554e05:0x233,_0x4f5715:0x150},_0x23de56={_0x5a51cf:0x1cd};function _0x2c3f35(_0x574688,_0x20b7ba,_0x1f04fd,_0x51d2ec){return _0x36273c(_0x574688-0x173,_0x20b7ba-0xa7,_0x1f04fd,_0x51d2ec- -0x47f);}let _0x54eeb5=_0x4ca1f0['resolve'](_0x128b51);const _0x126e3f=binaryNameForPlatform(_0x162b15);function _0x43bf5a(_0xe32ec1,_0x231b66,_0x4f5c19,_0x127d4f){return _0x36273c(_0xe32ec1-_0x23de56._0x5a51cf,_0x231b66-0x19d,_0x231b66,_0x4f5c19- -0x76f);}while(!![]){const _0x1aa146=_0x4ca1f0['join'](_0x54eeb5,_0x2c3f35(_0x1d15a4._0x327ac9,_0x1d15a4._0x4b4e17,_0x1d15a4._0x2401f4,_0x1d15a4._0x554e05),_0x43bf5a(-0x49,-0x4b,-0x13,_0x1d15a4._0x4f5715),_0x126e3f);if(await exists(_0x1aa146))return _0x1aa146;const _0xe2276b=_0x4ca1f0['dirname'](_0x54eeb5);if(_0xe2276b===_0x54eeb5)return void 0x0;_0x54eeb5=_0xe2276b;}}async function findPathBinary(_0x3650d2,_0x53a38a){const _0x46bfce={_0x332a5e:0x19b,_0x139562:0x16d,_0x5eba07:0x93,_0x39603f:0x1e,_0x3a3fc9:0x131,_0x42d084:0x12e,_0x5e94b6:0xf5},_0x48e74a={_0x7ea6f3:0x14},_0x4f3705={_0x253125:0x5a,_0x52277e:0x13c},_0x576ecd=getLspBinDir(_0x53a38a);function _0x154376(_0x236a3a,_0x32d10b,_0x3b1f7f,_0x29fa77){return _0x36273c(_0x236a3a-_0x4f3705._0x253125,_0x32d10b-0xb8,_0x3b1f7f,_0x29fa77- -_0x4f3705._0x52277e);}const _0x5adf7d=[_0x576ecd,process[_0x2b439c(_0x46bfce._0x332a5e,_0x46bfce._0x139562,0x20a,0x2e6)]['PATH']][_0x2b439c(-0xa0,0x1d7,_0x46bfce._0x5eba07,0x19)](Boolean)[_0x2b439c(-_0x46bfce._0x39603f,0xb2,0x20,0x14c)](_0x4ca1f0[_0x2b439c(0x231,_0x46bfce._0x3a3fc9,_0x46bfce._0x42d084,_0x46bfce._0x5e94b6)]);function _0x2b439c(_0x58dfe0,_0x8c8dac,_0x1051ce,_0x5685f2){return _0x19c96f(_0x58dfe0-0x155,_0x8c8dac-0x182,_0x5685f2,_0x1051ce-_0x48e74a._0x7ea6f3);}try{return await _0x36aa5c(_0x3650d2,{'path':_0x5adf7d});}catch{return void 0x0;}}async function resolvePackageBinary(_0x3a3f87){const _0x24a02c={_0x11cf6e:0x1d9,_0x3005af:0x37a,_0xcc597b:0xc3,_0x499442:0x40,_0x34d514:0xb9,_0x18fc86:0x2a3,_0x2f035f:0x29,_0x1a70cf:0xf6,_0xa32b2a:0x111,_0x476b29:0xb5,_0x31ffdd:0x37e,_0x1e8368:0x2e4,_0x1090e1:0x338,_0x257621:0x333,_0x51e366:0x19b},_0x2a910d={_0x4b43d6:0x24d,_0x5a5036:0xbb,_0x35821e:0xa2,_0x2f1f47:0x131,_0x1c4bb2:0x6},_0x3dcb27={_0x7e7d38:0x12d,_0x1433b2:0x31},_0xbe3125={_0x1e5d4c:0xc2,_0x4ea9e0:0x68},_0x34c581={_0x1bd9d5:0x172,_0xef776b:0xef},_0x31cd59=_0x3a3f87['binaryName']??_0x3a3f87[_0x3df66c(_0x24a02c._0x11cf6e,0x104,0x21a,_0x24a02c._0x3005af)],_0x1e8010=await findPackageBinary(_0x31cd59,_0x3a3f87['startDir']);if(_0x1e8010)return _0x1e8010;function _0x3df66c(_0x3a22c5,_0x1f66dc,_0x5280c6,_0xf2feb7){return _0x19c96f(_0x3a22c5-0x1de,_0x1f66dc-_0x34c581._0x1bd9d5,_0xf2feb7,_0x5280c6-_0x34c581._0xef776b);}const _0xcf78bf=await findPathBinary(_0x31cd59,_0x3a3f87[_0x4334cd(_0x24a02c._0xcc597b,-_0x24a02c._0x499442,0x240,0x142)]);if(_0xcf78bf)return _0xcf78bf;const _0x56e97f=_0x3a3f87[_0x4334cd(0x18e,0xd3,0x2c,_0x24a02c._0x34d514)]??process[_0x4334cd(0x18e,0xde,0x3a,_0x24a02c._0x18fc86)];if(shouldDisableLspDownload(_0x56e97f))return void 0x0;const _0x41681=getLspPackageDir(_0x3a3f87[_0x4334cd(_0x24a02c._0xcc597b,-_0x24a02c._0x2f035f,0xba,_0x24a02c._0x1a70cf)]),_0x3a9f1e=_0x3a3f87[_0x4334cd(_0x24a02c._0xcc597b,_0x24a02c._0xa32b2a,0x18f,_0x24a02c._0x476b29)]+':'+_0x31cd59;let _0x4ed5dd=installPromises['get'](_0x3a9f1e);function _0x4334cd(_0x1286ec,_0x191e7a,_0x5e2673,_0x3035be){return _0x19c96f(_0x1286ec-0x146,_0x191e7a-_0xbe3125._0x1e5d4c,_0x5e2673,_0x1286ec- -_0xbe3125._0x4ea9e0);}!_0x4ed5dd&&(_0x4ed5dd=((async()=>{const _0x4d044a={_0x7e3c1c:0x1bb};await mkdir(_0x41681,{'recursive':!![]});function _0x1263aa(_0x2c4eed,_0x568c21,_0x310a6f,_0x2efceb){return _0x4334cd(_0x2c4eed-0x155,_0x568c21-0x14d,_0x568c21,_0x2efceb-_0x4d044a._0x7e3c1c);}function _0x21cf98(_0x579624,_0x181d1c,_0x1bebc8,_0x18dd99){return _0x3df66c(_0x579624-_0x3dcb27._0x7e7d38,_0x181d1c-_0x3dcb27._0x1433b2,_0x579624- -0x59,_0x181d1c);}const _0x541469=await runNpmInstall(_0x41681,_0x3a3f87[_0x21cf98(0x1c1,_0x2a910d._0x4b43d6,0xa5,_0x2a910d._0x5a5036)],_0x56e97f);if(!_0x541469)return void 0x0;const _0x4721f1=_0x4ca1f0[_0x21cf98(_0x2a910d._0x35821e,0x15d,_0x2a910d._0x2f1f47,-_0x2a910d._0x1c4bb2)](getLspBinDir(_0x3a3f87['packageName']),binaryNameForPlatform(_0x31cd59));return await exists(_0x4721f1)?_0x4721f1:void 0x0;})()),installPromises[_0x3df66c(_0x24a02c._0x31ffdd,_0x24a02c._0x1e8368,0x240,_0x24a02c._0x1090e1)](_0x3a9f1e,_0x4ed5dd));try{return await _0x4ed5dd;}catch{return void 0x0;}finally{installPromises[_0x3df66c(_0x24a02c._0x257621,_0x24a02c._0x51e366,0x1c9,0x1d7)](_0x3a9f1e);}}var TYPESCRIPT_EXTENSIONS=['.ts',_0x19c96f(0xdb,0x109,0x69,0xb6),_0x36273c(0x4df,0x511,0x5de,0x539),_0x19c96f(0x12d,0x280,0x27e,0x15f),_0x19c96f(-0x91,-0x119,0x155,-0x28),_0x19c96f(0x13e,0x20e,0x22,0x143),_0x19c96f(-0x60,0x24d,0x254,0xe2),'.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x36273c(0x4ef,0x779,0x6c5,0x65b),'.jsonc'],TYPESCRIPT_ROOT_MARKERS=[_0x19c96f(0x20e,0x19a,0x155,0xd8),_0x19c96f(0x291,0x255,0x246,0x22f),_0x36273c(0x794,0x6e9,0x608,0x6e7),_0x19c96f(0x2b2,0x7b,0x326,0x1b9),_0x36273c(0x4ee,0x44c,0x4ea,0x5af),_0x19c96f(0x227,0x180,0x1c3,0x252),_0x36273c(0x6a6,0x6e3,0x73e,0x6b1),'package.json'],BIOME_ROOT_MARKERS=[_0x19c96f(0x17d,0x25,0xb1,0x3d),_0x36273c(0x541,0x775,0x590,0x688),_0x19c96f(0x59,0x1f5,0x1e,0xd8),_0x19c96f(0x2fe,0x1be,0x339,0x22f),'bun.lock',_0x36273c(0x5eb,0x647,0x6c0,0x6eb),_0x36273c(0x654,0x5f3,0x611,0x5af),_0x19c96f(0x176,0xff,0x260,0x1e5)];async function exists2(_0xe3002a){try{return await _0x1c7385(_0xe3002a),!![];}catch{return![];}}async function findUp(_0x5b91c3,_0x545dcb){const _0x32ddc9={_0xd4c450:0x2b7,_0x1c0af5:0x382,_0x2b4696:0x4f4},_0x40fb14={_0x3afa99:0x151,_0x499ec9:0x186,_0x59bb23:0x299},_0x28aef3={_0x3e5205:0x497};function _0x1854d4(_0x11cb87,_0xf10460,_0x34feb7,_0x1ca603){return _0x19c96f(_0x11cb87-0x177,_0xf10460-0x1b9,_0x1ca603,_0x11cb87-_0x28aef3._0x3e5205);}function _0x26e396(_0x3274da,_0xe0a854,_0x10d84a,_0x565032){return _0x19c96f(_0x3274da-_0x40fb14._0x3afa99,_0xe0a854-_0x40fb14._0x499ec9,_0x3274da,_0xe0a854-_0x40fb14._0x59bb23);}let _0x29722a=_0x38659b[_0x26e396(0x421,0x30b,_0x32ddc9._0xd4c450,0x374)](_0x5b91c3);const _0x362a90=_0x38659b[_0x1854d4(0x477,0x39d,0x45c,_0x32ddc9._0x1c0af5)](_0x29722a);if(_0x362a90)_0x29722a=_0x38659b[_0x1854d4(0x58d,0x431,0x61b,_0x32ddc9._0x2b4696)](_0x29722a);while(!![]){for(const _0x5b8c62 of _0x545dcb){if(await exists2(_0x38659b['join'](_0x29722a,_0x5b8c62)))return _0x29722a;}const _0xffd2c3=_0x38659b['dirname'](_0x29722a);if(_0xffd2c3===_0x29722a)return void 0x0;_0x29722a=_0xffd2c3;}}async function hasDenoRoot(_0x5840ad){const _0x3e627a={_0x20b767:0x20f,_0x36dd5c:0x27e,_0x2cf32c:0x10b,_0x5dcadc:0x3be,_0x1978d1:0x3e1},_0xfaa85e={_0x564520:0x4c},_0x8ab7f={_0x2e0c58:0xe2,_0x781971:0x25f};function _0x1f6676(_0xd0506,_0x4bc709,_0x1e7bc1,_0xd82df0){return _0x19c96f(_0xd0506-_0x8ab7f._0x2e0c58,_0x4bc709-0x14d,_0x4bc709,_0xd82df0-_0x8ab7f._0x781971);}function _0x96f7c3(_0x26dc4f,_0x2458f2,_0x5c9e6a,_0x555a80){return _0x19c96f(_0x26dc4f-_0xfaa85e._0x564520,_0x2458f2-0x101,_0x555a80,_0x26dc4f-0x1cf);}return await exists2(_0x38659b[_0x96f7c3(0x1db,_0x3e627a._0x20b767,0x2f5,0x28f)](_0x5840ad,'deno.json'))||await exists2(_0x38659b[_0x1f6676(0x351,_0x3e627a._0x36dd5c,_0x3e627a._0x2cf32c,0x26b)](_0x5840ad,_0x1f6676(_0x3e627a._0x5dcadc,_0x3e627a._0x1978d1,0x34f,0x2e0)));}async function resolveTsserverPath(_0x36f05a){const _0x4bd249={_0x12d0f6:0x248,_0x3e5c6b:0x332,_0x2450e2:0xab,_0x290259:0x20a,_0x55cbfc:0x162,_0xc0d8d2:0xc4,_0x5a9888:0xfe,_0x1959ed:0x179,_0x12ea7e:0x116,_0x2c848c:0x269,_0x3d61a0:0x459,_0x57173a:0x3f3,_0x5046a6:0x3f1,_0x4122fa:0x2dd,_0x6cb805:0x447,_0x3e4524:0xb0,_0x58b4b6:0x132,_0x21f4f9:0x488,_0x40cdae:0x4a5,_0x382b92:0x574,_0x6c677c:0x619,_0x169514:0x27d,_0x444d52:0x19e},_0x4773b7={_0x5018c7:0xef},_0xb48639={_0x3017ab:0x6a,_0x468860:0x75d};let _0x3134b0=_0x38659b['resolve'](_0x36f05a);while(!![]){const _0x383f5f=_0x38659b[_0x2319e1(-0x21f,-_0x4bd249._0x12d0f6,-0x305,-_0x4bd249._0x3e5c6b)](_0x3134b0,_0x2319e1(-_0x4bd249._0x2450e2,-_0x4bd249._0x290259,-0x14f,-0x12f),'typescript',_0x2319e1(-0x82,-_0x4bd249._0x55cbfc,-_0x4bd249._0xc0d8d2,_0x4bd249._0x5a9888),_0x2319e1(-0x262,-_0x4bd249._0x1959ed,-_0x4bd249._0x12ea7e,-_0x4bd249._0x2c848c));if(await exists2(_0x383f5f))return _0x383f5f;const _0x34f538=_0x38659b['dirname'](_0x3134b0);if(_0x34f538===_0x3134b0)break;_0x3134b0=_0x34f538;}function _0x2319e1(_0x42ffd8,_0x204a51,_0x3f4f93,_0x55621d){return _0x36273c(_0x42ffd8-0x106,_0x204a51-_0xb48639._0x3017ab,_0x55621d,_0x42ffd8- -_0xb48639._0x468860);}function _0x56ac79(_0x20885b,_0x44441c,_0x1008dd,_0x31badb){return _0x19c96f(_0x20885b-_0x4773b7._0x5018c7,_0x44441c-0x161,_0x31badb,_0x44441c-0x499);}const _0x46c924=getLspPackageDir(_0x56ac79(_0x4bd249._0x3d61a0,0x447,0x520,_0x4bd249._0x57173a)),_0x498f37=await resolvePackageBinary({'packageName':_0x56ac79(_0x4bd249._0x5046a6,0x447,_0x4bd249._0x4122fa,_0x4bd249._0x6cb805),'binaryName':_0x2319e1(-_0x4bd249._0x3e4524,0x3a,0xac,-_0x4bd249._0x58b4b6),'startDir':_0x36f05a});if(!_0x498f37)return void 0x0;const _0x1e546c=_0x38659b[_0x56ac79(_0x4bd249._0x21f4f9,_0x4bd249._0x40cdae,0x3e0,0x5bb)](_0x46c924,_0x56ac79(_0x4bd249._0x382b92,_0x4bd249._0x6c677c,0x788,0x554),_0x2319e1(-_0x4bd249._0x169514,-0x227,-0x2e4,-_0x4bd249._0x444d52),'lib',_0x2319e1(-0x262,-0x310,-0x2c6,-0x2e8));return await exists2(_0x1e546c)?_0x1e546c:void 0x0;}var TypeScriptServer={'id':_0x19c96f(-0x99,0x10b,0x1,-0x52),'name':_0x36273c(0x577,0x638,0x683,0x617),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x576be1){const _0x3852e3=await findUp(_0x576be1,TYPESCRIPT_ROOT_MARKERS);if(!_0x3852e3)return void 0x0;return await hasDenoRoot(_0x3852e3)?void 0x0:_0x3852e3;},async 'spawn'(_0x46862b){const _0x524c67={_0x5531d0:0x5a4,_0x26931d:0x6fc,_0x1b1cef:0x654,_0x12f912:0x2,_0xf67a97:0x2e},_0x2a10ea={_0x28f200:0xd9};function _0x372b5e(_0x530286,_0x1cff36,_0x3fb7bb,_0x5caf08){return _0x19c96f(_0x530286-0x164,_0x1cff36-0x184,_0x530286,_0x3fb7bb- -0x237);}const _0x2e2cc9=await resolveTsserverPath(_0x46862b);function _0x30eaf3(_0x41c223,_0x5aa423,_0x4ff8b4,_0x2ca74b){return _0x19c96f(_0x41c223-_0x2a10ea._0x28f200,_0x5aa423-0x1b1,_0x4ff8b4,_0x5aa423-0x32c);}if(!_0x2e2cc9)return void 0x0;const _0x211e3f=await resolvePackageBinary({'packageName':'typescript-language-server','binaryName':_0x30eaf3(0x63d,_0x524c67._0x5531d0,_0x524c67._0x26931d,_0x524c67._0x1b1cef),'startDir':_0x46862b});if(!_0x211e3f)return void 0x0;return{'process':_0x32eb17(_0x211e3f,[_0x372b5e(-_0x524c67._0x12f912,0x19f,_0x524c67._0xf67a97,-0x153)],{'cwd':_0x46862b,'stdio':'pipe'}),'initialization':{'tsserver':{'path':_0x2e2cc9}}};}},BiomeServer={'id':'biome','name':_0x19c96f(0x159,0xf6,0x261,0x16e),'extensions':BIOME_EXTENSIONS,async 'root'(_0x96396a){return findUp(_0x96396a,BIOME_ROOT_MARKERS);},async 'spawn'(_0xf66051){const _0x2a4781={_0x51686b:0x170,_0x257d9c:0x21b,_0x3f518b:0xdb,_0x73bdbc:0x17b,_0x53d3ec:0xbd,_0x1ec9a3:0x233,_0x4f093e:0x33,_0x1e6baf:0x117,_0x105cc0:0x175,_0x217fbc:0x26a,_0x2b4b5b:0x1eb,_0x1ec656:0xd1,_0x721651:0x19b},_0x5ab5f8={_0x15a1d6:0x5ac},_0x5e156c={_0xaa7c56:0x176,_0x14a2d5:0x744},_0x15c787=await findPackageBinary(_0x560bde(_0x2a4781._0x51686b,_0x2a4781._0x257d9c,0xdb,_0x2a4781._0x3f518b),_0xf66051)??await resolvePackageBinary({'packageName':_0x552c0e(-0x50,-0x5e,-0x77,0x7d),'binaryName':_0x552c0e(-_0x2a4781._0x73bdbc,-_0x2a4781._0x53d3ec,-_0x2a4781._0x1ec9a3,-_0x2a4781._0x4f093e),'startDir':_0xf66051});function _0x552c0e(_0x818366,_0x23a053,_0x3f098f,_0x5db301){return _0x36273c(_0x818366-_0x5e156c._0xaa7c56,_0x23a053-0x73,_0x5db301,_0x23a053- -_0x5e156c._0x14a2d5);}if(!_0x15c787)return void 0x0;function _0x560bde(_0x172ab2,_0x54c421,_0x4efaae,_0x364806){return _0x36273c(_0x172ab2-0x10c,_0x54c421-0x6,_0x4efaae,_0x364806- -_0x5ab5f8._0x15a1d6);}return{'process':_0x32eb17(_0x15c787,[_0x552c0e(-0x3,-0x20,-_0x2a4781._0x1e6baf,-0xbb),_0x560bde(_0x2a4781._0x105cc0,0x257,_0x2a4781._0x217fbc,_0x2a4781._0x2b4b5b)],{'cwd':_0xf66051,'stdio':_0x560bde(-_0x2a4781._0x1ec656,-0x1fe,-_0x2a4781._0x721651,-0xe8)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0xbdebf5){const _0x26a00b={_0x42a228:0x13,_0x9d2e0f:0x1d0,_0x16c2d5:0xc5,_0xaf4e7b:0x9,_0x54abbf:0x58,_0x2f1b9b:0xc2},_0x5c9dd1={_0x350bdc:0xf7,_0xc096a2:0x609},_0x3ecf56={_0x109a1f:0x108};function _0x415786(_0x24f8ad,_0x5f2d9b,_0x2d6d46,_0x3e56af){return _0x36273c(_0x24f8ad-0x8b,_0x5f2d9b-_0x3ecf56._0x109a1f,_0x24f8ad,_0x3e56af- -0x44c);}const _0xd4fcf1=_0x38659b[_0x5e7a3e(-0x1d6,-0x13a,-0xf7,_0x26a00b._0x42a228)](_0xbdebf5)[_0x415786(-0x79,_0x26a00b._0x9d2e0f,_0x26a00b._0x16c2d5,0x63)]();function _0x5e7a3e(_0x240e7f,_0x5c1cdb,_0xe386af,_0x499ff3){return _0x36273c(_0x240e7f-_0x5c9dd1._0x350bdc,_0x5c1cdb-0x5d,_0x240e7f,_0xe386af- -_0x5c9dd1._0xc096a2);}return BUILTIN_LSP_SERVERS[_0x5e7a3e(_0x26a00b._0xaf4e7b,-0x50,-_0x26a00b._0x54abbf,-_0x26a00b._0x2f1b9b)](_0x4d94ef=>_0x4d94ef['extensions'][_0x415786(0x32d,0x348,0xc9,0x23d)](_0xd4fcf1));}function stateKey(_0x4b7bb5,_0x3ca102){return _0x3ca102+':'+_0x4b7bb5['id'];}function diagnosticsKeyToPath(_0x2d08cf){if(!_0x2d08cf['startsWith']('file://'))return _0x2d08cf;return fileURLToPath(_0x2d08cf);}function nextFileVersion(_0x237b4c,_0xfff88e){const _0x19a367={_0x2ebe23:0x252,_0x1c1a1f:0x2d5,_0x4f3296:0xcd,_0x51c13e:0x20f,_0x2c5545:0x1e4,_0x4d584d:0xdb},_0x207d44={_0x473c62:0x6c,_0x508a80:0x22d},_0x5d0ec4={_0x216d00:0x16,_0x13d372:0x351},_0x19ec49=(_0x237b4c[_0x35b3bd(_0x19a367._0x2ebe23,0x1ce,_0x19a367._0x1c1a1f,_0x19a367._0x4f3296)][_0x353a0f(0x2b5,0x285,0x32c,_0x19a367._0x51c13e)](_0xfff88e)??0x1)+0x1;function _0x35b3bd(_0x33101e,_0x567d0a,_0x47ddae,_0x293f9c){return _0x36273c(_0x33101e-_0x5d0ec4._0x216d00,_0x567d0a-0xb6,_0x293f9c,_0x567d0a- -_0x5d0ec4._0x13d372);}_0x237b4c[_0x35b3bd(_0x19a367._0x2c5545,0x1ce,0x235,_0x19a367._0x4d584d)][_0x353a0f(0x430,0x3d7,0x37e,0x484)](_0xfff88e,_0x19ec49);function _0x353a0f(_0x60a2ff,_0x177858,_0x5ed857,_0x1e46fc){return _0x19c96f(_0x60a2ff-_0x207d44._0x473c62,_0x177858-0x60,_0x1e46fc,_0x5ed857-_0x207d44._0x508a80);}return _0x19ec49;}async function collectClientResults(_0x37cc62){const _0x1eabfd={_0xd43b06:0x2b5,_0x20e2ff:0x36b,_0x1d6b5c:0x2f3,_0x3ad054:0x1e0},_0x7e25db={_0x29766e:0xb7},_0x1ad103={_0x434c10:0xa,_0x89843a:0x4b4};function _0x382287(_0x1572a7,_0x2810bf,_0x588d9e,_0x491fe3){return _0x19c96f(_0x1572a7-0x65,_0x2810bf-_0x1ad103._0x434c10,_0x2810bf,_0x1572a7-_0x1ad103._0x89843a);}const _0x4dbdc2=await Promise[_0x4116bb(-_0x1eabfd._0xd43b06,-_0x1eabfd._0x20e2ff,-0x21b,-0x2d4)](_0x37cc62);function _0x4116bb(_0x16cc9c,_0x57e89a,_0x45f1cd,_0x3b3ad7){return _0x36273c(_0x16cc9c-0x1ce,_0x57e89a-_0x7e25db._0x29766e,_0x57e89a,_0x45f1cd- -0x6ee);}return _0x4dbdc2[_0x4116bb(-0x234,-_0x1eabfd._0x1d6b5c,-_0x1eabfd._0x3ad054,-0x1ae)](_0x344279=>_0x344279[_0x4116bb(-0xd1,-0x279,-0x21a,-0x18e)]==='fulfilled'?_0x344279[_0x382287(0x5a7,0x5c7,0x491,0x53c)]:[]);}function createLspService(_0x57f670={}){const _0x2323d8={_0x19600c:0x4f4,_0x1ee9c2:0x279},_0x22acb9={_0x440a65:0x15b,_0x2ee540:0x25,_0x20d7ee:0xd,_0x3fe2a6:0x35,_0x33c40e:0x332,_0x408429:0x442,_0x41580c:0x408,_0x496228:0x2d9,_0x2da9db:0x577,_0x4f883c:0x30d,_0x264a28:0x408,_0x4e3c20:0x467,_0x4abb6a:0x4cc,_0x1547b0:0x3ca},_0x77d175={_0x23f911:0x7a},_0x33e02b={_0x7ecbd8:0x4bc},_0x2e7b8d={_0x69571:0xc9,_0x493dec:0x3cb},_0x5455c9={_0x261ad8:0x151,_0x5b5081:0x160},_0x37fc81={_0x375236:0xe,_0x131239:0x1eb},_0x3099c7={_0x594d85:0x3d2,_0x33fdf6:0x28e},_0x59e52a={_0x44c0f9:0x27d,_0x507221:0x38b,_0x1b168c:0x2fe,_0x2ac626:0x2a8,_0x43fad9:0x256,_0x4100fd:0x2a2,_0x3ada56:0x1f8},_0x1fed54={_0x525de3:0x312},_0x146328={_0x4e4875:0x44f},_0x32970d={_0x334d49:0x10b,_0x51807b:0x40,_0x1142c8:0xe4},_0x64241a={_0x1d8350:0xd,_0x7be20f:0x23,_0x49c5c3:0x1b,_0x354ee3:0x6f,_0x3d7965:0x61},_0x5c364d={_0x325d2a:0x653,_0x224954:0x667,_0x5a2a34:0x8a7,_0x2a758d:0x783,_0x74e54a:0x788},_0x2a7772={_0x16a66c:0x287,_0x3e5605:0x263},_0x1e2816={_0x4a760f:0x117,_0x17e2f3:0x12a,_0xb781af:0xaf},_0x39c603={_0x369924:0xcc,_0x27d20e:0xe3},_0x6b90d0={_0x381029:0x91,_0x2b9183:0x5e},_0x271052={_0x2b87a2:0xb1},_0x5acd69={_0x1500ba:0x4b8,_0x4be89a:0x50f,_0x7e9d12:0x6b4},_0x37e005={_0x5c9866:0x4ee},_0x3c6cd8={_0x125927:0x2dd,_0x29c43c:0x38c,_0x434e62:0x498,_0x38b1d4:0x424,_0x3f5cc:0x86,_0xe4666e:0x28,_0x253b8a:0x58,_0x4e6801:0x3c,_0x510a35:0x61,_0x46ef02:0x47,_0x3a1f73:0x8c,_0x16d904:0xa9,_0x446e36:0x1ea,_0x473b5e:0x351,_0x441ede:0x283,_0x2e851a:0x441,_0x5b216d:0x2c6,_0x20bf9d:0x2fb},_0x28e90a={_0x38fde5:0x7e},_0x4f2ad3={_0x11eed6:0x2fa},_0x1a8270={_0x1512a2:0x90,_0x473c33:0x72,_0x2435dc:0x57e},_0x448f26={_0x3916d8:0x2a7,_0x33b62d:0x367,_0x7500c0:0x499,_0x5df64a:0x3cb,_0x4a4645:0x278,_0x5ae73c:0x392,_0x23c8cb:0x3ac,_0x58bbc3:0x442,_0x1c6ebf:0x476,_0x2c6384:0x351,_0x4b4e03:0x446,_0x48aa60:0x24b,_0x12bdc2:0x11c,_0x4d2f46:0xfd},_0x460367={_0x607582:0x202},_0x2f9d68={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x2a3837=()=>_0x57f670[_0x3845e2(0x1ea,0x63,0xb9,0xe3)]!==![];async function _0x2838b4(_0x1136d9,_0x16650d){const _0x544990={_0x5577e1:0x6a,_0x33ac23:0x3c3},_0xadb419={_0x1d6de7:0x3aa,_0x1bdbc8:0x4b4,_0x3b986c:0x343,_0x4cb5c5:0x1a4,_0x2e40cc:0x1c7,_0xe54e8:0x5c9,_0x2b300e:0x4ba,_0x266312:0x24,_0x110aeb:0x106,_0x489e11:0x2f,_0x377879:0x15a,_0x16332c:0x84,_0x6818d6:0x4f1,_0x7e4905:0x455},_0x59ee28=stateKey(_0x1136d9,_0x16650d),_0x1a2275=_0x2f9d68[_0x1c0205(-0x149,-0x3a0,-_0x448f26._0x3916d8,-0x1d3)][_0xa2d383(0x324,0x233,_0x448f26._0x33b62d,0x2a0)](_0x4cc933=>_0x4cc933['serverId']===_0x1136d9['id']&&_0x4cc933[_0xa2d383(0x39c,0x563,0x472,0x32a)]===_0x16650d);if(_0x1a2275)return _0x1a2275;if(_0x2f9d68['broken'][_0xa2d383(_0x448f26._0x7500c0,0x2d7,0x350,_0x448f26._0x5df64a)](_0x59ee28))return void 0x0;function _0x1c0205(_0x13921a,_0x5172f5,_0x175479,_0x4c358f){return _0x3845e2(_0x13921a-0x144,_0x5172f5,_0x175479- -_0x460367._0x607582,_0x4c358f-0x27);}const _0x2c6af2=_0x2f9d68[_0xa2d383(_0x448f26._0x4a4645,0x269,_0x448f26._0x5ae73c,0x23e)][_0xa2d383(_0x448f26._0x23c8cb,_0x448f26._0x58bbc3,_0x448f26._0x1c6ebf,_0x448f26._0x2c6384)](_0x59ee28);if(_0x2c6af2)return _0x2c6af2;const _0x24fba7=((async()=>{const _0x242155={_0x439acb:0x646,_0x8b7214:0xf9},_0x15b208={_0x67fb26:0x52e};function _0x1b57c0(_0x12d878,_0x2fb8d8,_0xecb9c2,_0x29f7b2){return _0xa2d383(_0x12d878-0x170,_0x2fb8d8-0xe2,_0x12d878- -_0x15b208._0x67fb26,_0x2fb8d8);}function _0x3d647b(_0xc1c66b,_0x55e80f,_0x5ce9f2,_0x10fcb8){return _0x1c0205(_0xc1c66b-0xec,_0xc1c66b,_0x55e80f-_0x242155._0x439acb,_0x10fcb8-_0x242155._0x8b7214);}try{const _0x521782=await _0x1136d9['spawn'](_0x16650d);if(!_0x521782)return _0x2f9d68[_0x3d647b(_0xadb419._0x1d6de7,_0xadb419._0x1bdbc8,0x4e8,_0xadb419._0x3b986c)]['add'](_0x59ee28),void 0x0;const _0x44bbb1=await createLspClient({'server':_0x1136d9,'root':_0x16650d,'handle':_0x521782}),_0x5c5be0=_0x2f9d68[_0x1b57c0(-0x210,-0x21e,-0x19f,-_0xadb419._0x4cb5c5)][_0x1b57c0(-_0xadb419._0x2e40cc,-0x341,-0x179,-0x1be)](_0x3e789f=>_0x3e789f[_0x1b57c0(-0x19b,-0x31c,-0x27c,-0xbf)]===_0x1136d9['id']&&_0x3e789f[_0x3d647b(0x62c,0x4f3,0x446,0x3f7)]===_0x16650d);if(_0x5c5be0)return await _0x44bbb1[_0x3d647b(_0xadb419._0xe54e8,_0xadb419._0x2b300e,0x5c6,0x5d3)](),_0x5c5be0;return _0x2f9d68['clients'][_0x1b57c0(-_0xadb419._0x266312,0xef,-0x2a,-_0xadb419._0x110aeb)](_0x44bbb1),_0x44bbb1;}catch{return _0x2f9d68[_0x3d647b(0x3a7,0x4b4,0x4b3,0x471)][_0x1b57c0(_0xadb419._0x489e11,_0xadb419._0x377879,0x123,-_0xadb419._0x16332c)](_0x59ee28),void 0x0;}finally{_0x2f9d68['spawning'][_0x3d647b(_0xadb419._0x6818d6,0x4d2,0x532,_0xadb419._0x7e4905)](_0x59ee28);}})());function _0xa2d383(_0x3a7f33,_0x326361,_0x523a96,_0x56b697){return _0x3845e2(_0x3a7f33-_0x544990._0x5577e1,_0x56b697,_0x523a96-_0x544990._0x33ac23,_0x56b697-0x73);}return _0x2f9d68[_0xa2d383(_0x448f26._0x4b4e03,_0x448f26._0x48aa60,_0x448f26._0x5ae73c,0x498)][_0x1c0205(-0x58,-_0x448f26._0x12bdc2,-_0x448f26._0x4d2f46,-0x150)](_0x59ee28,_0x24fba7),_0x24fba7;}function _0x3845e2(_0x157cf1,_0x4a09b3,_0x2847a8,_0x149735){return _0x36273c(_0x157cf1-_0x1a8270._0x1512a2,_0x4a09b3-_0x1a8270._0x473c33,_0x4a09b3,_0x2847a8- -_0x1a8270._0x2435dc);}async function _0x361850(_0x114353,_0x3130f3){if(!_0x2a3837())return[];function _0x34f18e(_0x40ac5b,_0x5549aa,_0x4b31d6,_0x56788b){return _0x3845e2(_0x40ac5b-0x50,_0x56788b,_0x40ac5b-_0x4f2ad3._0x11eed6,_0x56788b-0x159);}function _0x4d2804(_0xe2337f,_0x234b80,_0x3db95b,_0x161702){return _0x3845e2(_0xe2337f-0x160,_0x3db95b,_0x234b80-0xa3,_0x161702-_0x28e90a._0x38fde5);}const _0x136837=[];for(const _0x2f5fcb of getServersForFile(_0x114353)){const _0x2e5573=await _0x2f5fcb[_0x34f18e(0x3a9,_0x3c6cd8._0x125927,_0x3c6cd8._0x29c43c,_0x3c6cd8._0x434e62)](_0x114353);if(!_0x2e5573)continue;const _0x49c5f1=stateKey(_0x2f5fcb,_0x2e5573);if(_0x2f9d68[_0x34f18e(0x36a,0x3d6,0x25c,_0x3c6cd8._0x38b1d4)][_0x4d2804(-_0x3c6cd8._0x3f5cc,0x30,-_0x3c6cd8._0xe4666e,_0x3c6cd8._0x253b8a)](_0x49c5f1))continue;const _0x3e522a=_0x2f9d68[_0x4d2804(-0xbc,-0x2,-0x14c,-_0x3c6cd8._0x4e6801)][_0x4d2804(-_0x3c6cd8._0x510a35,_0x3c6cd8._0x46ef02,0x98,_0x3c6cd8._0x3a1f73)](_0xbf3b23=>_0xbf3b23[_0x34f18e(0x2ca,0x37a,0x29a,0x2ee)]===_0x2f5fcb['id']&&_0xbf3b23['root']===_0x2e5573);if(_0x3e522a){_0x136837[_0x4d2804(_0x3c6cd8._0x16d904,_0x3c6cd8._0x446e36,_0x3c6cd8._0x473b5e,_0x3c6cd8._0x441ede)](_0x3e522a);continue;}if(!_0x3130f3)continue;const _0xa1b7c9=await _0x2838b4(_0x2f5fcb,_0x2e5573);if(_0xa1b7c9)_0x136837[_0x34f18e(_0x3c6cd8._0x2e851a,0x393,_0x3c6cd8._0x5b216d,_0x3c6cd8._0x20bf9d)](_0xa1b7c9);}return _0x136837;}async function _0x2c714c(_0x428f5b,_0x391f51=![]){const _0x5c771b={_0x308a7c:0x5bc,_0x348882:0x5ae,_0x5384ac:0x4bb,_0x2641c2:0x39b,_0x5e56e6:0x500,_0x4303be:0x6b,_0x5ddd67:0x131,_0x1f7476:0xa9,_0x48a1e7:0x197,_0x5d4f29:0x5fe,_0x3c16d6:0x4cc,_0x197d96:0x540,_0x3f7d7c:0x668,_0x4d41f2:0x0,_0x3b1a20:0xd5,_0x1b1a91:0x34,_0x1a523d:0xcd,_0x300c51:0x5,_0x26f109:0x15d,_0x2a95be:0x20d,_0x364cb9:0x460,_0x4acb5d:0x3eb,_0x501990:0x543,_0xc9775e:0xa0,_0x8a66e2:0x133},_0x322ecf={_0x14f046:0xef,_0x93153e:0xc},_0x8c5daa={_0xb778f2:0x85};function _0x2553e0(_0x4e83a1,_0x476eb3,_0x41b856,_0x189ea6){return _0x3845e2(_0x4e83a1-0xc0,_0x41b856,_0x4e83a1-_0x37e005._0x5c9866,_0x189ea6-0x96);}const _0x2e6ade=await _0x361850(_0x428f5b,!![]);await Promise['all'](_0x2e6ade[_0x2553e0(0x567,_0x5acd69._0x1500ba,_0x5acd69._0x4be89a,_0x5acd69._0x7e9d12)](async _0x2be8f8=>{function _0x332605(_0x4fe3ec,_0x2a5bea,_0x3f71a4,_0x1bd351){return _0x2553e0(_0x3f71a4-_0x8c5daa._0xb778f2,_0x2a5bea-0x1a8,_0x2a5bea,_0x1bd351-0xce);}!_0x2f9d68[_0x332605(_0x5c771b._0x308a7c,_0x5c771b._0x348882,_0x5c771b._0x5384ac,0x52f)][_0x332605(_0x5c771b._0x2641c2,0x3d8,_0x5c771b._0x5e56e6,0x5f4)](_0x2be8f8[_0x50bd1a(-_0x5c771b._0x4303be,-_0x5c771b._0x5ddd67,-0xb6,-0x1ba)]+':'+_0x2be8f8[_0x50bd1a(0x74,_0x5c771b._0x1f7476,_0x5c771b._0x48a1e7,0x162)]+':'+_0x428f5b)&&(await _0x2be8f8[_0x332605(_0x5c771b._0x5d4f29,_0x5c771b._0x3c16d6,_0x5c771b._0x197d96,_0x5c771b._0x3f7d7c)][_0x50bd1a(_0x5c771b._0x4d41f2,_0x5c771b._0x3b1a20,_0x5c771b._0x1b1a91,-_0x5c771b._0x1a523d)]({'path':_0x428f5b}),_0x2f9d68[_0x50bd1a(-0xf3,-_0x5c771b._0x300c51,-_0x5c771b._0x26f109,-0x55)][_0x50bd1a(0x15f,_0x5c771b._0x2a95be,0x1d4,0x42)](_0x2be8f8[_0x332605(_0x5c771b._0x364cb9,_0x5c771b._0x4acb5d,_0x5c771b._0x501990,0x4ce)]+':'+_0x2be8f8['root']+':'+_0x428f5b));await _0x2be8f8['notify'][_0x50bd1a(0x1c3,_0x5c771b._0xc9775e,0x2cf,_0x5c771b._0x8a66e2)]({'path':_0x428f5b,'version':nextFileVersion(_0x2f9d68,_0x428f5b)});function _0x50bd1a(_0xb7b7e2,_0x413dd7,_0x3bf376,_0x5a4852){return _0x2553e0(_0xb7b7e2- -0x529,_0x413dd7-_0x322ecf._0x14f046,_0x413dd7,_0x5a4852-_0x322ecf._0x93153e);}if(_0x391f51)await _0x2be8f8['waitForDiagnostics']({'path':_0x428f5b});}));}async function _0x58b7ba(_0x5c41ea){await _0x2c714c(_0x5c41ea['file'],![]);function _0x20f8cf(_0x5e0ca9,_0x3f014a,_0x29c343,_0x504d90){return _0x3845e2(_0x5e0ca9-_0x271052._0x2b87a2,_0x504d90,_0x5e0ca9- -0x1f0,_0x504d90-0x1d8);}return _0x361850(_0x5c41ea[_0x20f8cf(-0x4b,_0x6b90d0._0x381029,-_0x6b90d0._0x2b9183,_0x6b90d0._0x381029)],![]);}async function _0x192271(_0x408b6d){function _0x38f13a(_0x3456a9,_0x1bed23,_0x5853b1,_0x4639cf){return _0x3845e2(_0x3456a9-0x3f,_0x4639cf,_0x1bed23-0x533,_0x4639cf-0xc5);}function _0x2ae190(_0x4f3787,_0x4b9f44,_0x158057,_0x5dfc27){return _0x3845e2(_0x4f3787-_0x39c603._0x369924,_0x4f3787,_0x4b9f44-0x9e,_0x5dfc27-_0x39c603._0x27d20e);}const _0x5e60e1=await _0x58b7ba(_0x408b6d);return collectClientResults(_0x5e60e1[_0x2ae190(0x252,_0x1e2816._0x4a760f,_0x1e2816._0x17e2f3,_0x1e2816._0xb781af)](_0x239f5f=>_0x239f5f['request'][_0x38f13a(0x5b5,0x504,0x4d7,0x433)](_0x408b6d)));}return{'isEnabled':_0x2a3837,async 'hasClients'(_0x56e009){const _0x29e80a={_0x62f35:0x11f};function _0x34b9d8(_0x397860,_0x99de5a,_0x20f14d,_0x351528){return _0x3845e2(_0x397860-0x115,_0x351528,_0x99de5a-0xbb,_0x351528-_0x29e80a._0x62f35);}return(await _0x361850(_0x56e009,![]))['length']>0x0||getServersForFile(_0x56e009)[_0x34b9d8(_0x2a7772._0x16a66c,0x2a6,_0x2a7772._0x3e5605,0x28e)]>0x0;},'touchFile':_0x2c714c,async 'diagnostics'(){const _0x4e902e={_0x10e7c5:0x5b2},_0x311562={_0x46e359:0x191,_0x9c946f:0x185};function _0x14d373(_0x5bf2e3,_0x52fcbc,_0x4cdb48,_0x52505c){return _0x3845e2(_0x5bf2e3-_0x311562._0x46e359,_0x5bf2e3,_0x52505c-0x5c3,_0x52505c-_0x311562._0x9c946f);}const _0x18e8ea={};for(const _0x22b682 of _0x2f9d68[_0x14d373(_0x5c364d._0x325d2a,_0x5c364d._0x224954,0x3f4,0x51e)]){for(const [_0x447b66,_0x3784ba]of _0x22b682[_0x14d373(_0x5c364d._0x5a2a34,_0x5c364d._0x2a758d,0x757,_0x5c364d._0x74e54a)]){_0x18e8ea[diagnosticsKeyToPath(_0x447b66)]=_0x3784ba;}}function _0x465f0c(_0x32d691,_0x160478,_0x48fda7,_0x1aebb4){return _0x3845e2(_0x32d691-0x131,_0x1aebb4,_0x160478-_0x4e902e._0x10e7c5,_0x1aebb4-0x184);}return _0x18e8ea;},async 'diagnosticsForFile'(_0x350944){const _0x36ee9b={_0x2d6348:0x1b0};function _0x236401(_0x59a1bd,_0x25c009,_0x5f2e2e,_0x29ad2a){return _0x3845e2(_0x59a1bd-0x173,_0x25c009,_0x29ad2a- -0x136,_0x29ad2a-_0x36ee9b._0x2d6348);}await _0x2c714c(_0x350944,!![]);const _0xe33085=[];for(const _0x210f87 of await _0x361850(_0x350944,![])){for(const [_0x444571,_0xe364b2]of _0x210f87[_0x236401(-_0x64241a._0x1d8350,_0x64241a._0x7be20f,-0x7e,0x8f)]){if(diagnosticsKeyToPath(_0x444571)===_0x350944)_0xe33085[_0x5ac12b(_0x64241a._0x49c5c3,0x75,-_0x64241a._0x354ee3,-_0x64241a._0x3d7965)](..._0xe364b2);}}function _0x5ac12b(_0x47b0b9,_0x34d6a9,_0x3546fe,_0x251260){return _0x3845e2(_0x47b0b9-0x125,_0x3546fe,_0x34d6a9- -0xd2,_0x251260-0x1e2);}return _0xe33085;},async 'definition'(_0x13c947){return collectClientResults((await _0x58b7ba(_0x13c947))['map'](_0x2b9b53=>_0x2b9b53['request']['definition'](_0x13c947)));},async 'references'(_0x227050){const _0x178122={_0x57d43c:0xb9};function _0x54dfb3(_0x24e7cb,_0x3b5685,_0x543df9,_0x1819aa){return _0x3845e2(_0x24e7cb-0x127,_0x1819aa,_0x3b5685- -_0x178122._0x57d43c,_0x1819aa-0x10c);}function _0xe6631e(_0x4dee30,_0x383547,_0x471b93,_0x5a4c15){return _0x3845e2(_0x4dee30-0x15b,_0x5a4c15,_0x383547-0x57a,_0x5a4c15-0x48);}return collectClientResults((await _0x58b7ba(_0x227050))[_0x54dfb3(_0x32970d._0x334d49,-_0x32970d._0x51807b,-_0x32970d._0x1142c8,0x142)](_0x163e7e=>_0x163e7e['request'][_0x54dfb3(-0x166,-0xb9,-0x217,0x85)](_0x227050)));},async 'hover'(_0x20e370){const _0x1bfbb4=await Promise[_0x358109(0x3a4,_0x59e52a._0x44c0f9,0x2ae,0x2c3)]((await _0x58b7ba(_0x20e370))[_0xb53fab(0x443,_0x59e52a._0x507221,_0x59e52a._0x1b168c,_0x59e52a._0x2ac626)](_0x27ed32=>_0x27ed32[_0x358109(0x543,0x6a4,0x4dd,0x5dd)]['hover'](_0x20e370)));function _0x358109(_0x44dd79,_0x5ea9f4,_0x328817,_0xae57fa){return _0x3845e2(_0x44dd79-0x18c,_0xae57fa,_0x44dd79-_0x146328._0x4e4875,_0xae57fa-0x1dd);}function _0xb53fab(_0x83050f,_0x502edc,_0x4628e4,_0x544459){return _0x3845e2(_0x83050f-0x81,_0x544459,_0x502edc-_0x1fed54._0x525de3,_0x544459-0x150);}return _0x1bfbb4[_0xb53fab(_0x59e52a._0x43fad9,_0x59e52a._0x4100fd,_0x59e52a._0x3ada56,0x3c6)](_0x1fedf0=>_0x1fedf0[_0xb53fab(0x182,0x268,0x157,0x358)]===_0xb53fab(0x2fd,0x336,0x373,0x2ee)&&_0x1fedf0['value']?[_0x1fedf0[_0x358109(0x4f6,0x671,0x3f0,0x57e)]]:[]);},async 'documentSymbol'(_0x4e59e8){const _0x484668={_0x2b9bed:0x101,_0x539189:0x11a},_0x1b75b3={_0x20e934:0x1ed};await _0x2c714c(_0x4e59e8,![]);function _0x28f217(_0x5030bf,_0x14447d,_0x41aab7,_0x40330c){return _0x3845e2(_0x5030bf-0x86,_0x5030bf,_0x14447d- -0x1fc,_0x40330c-_0x1b75b3._0x20e934);}function _0x6a5f13(_0x4899f6,_0x556c25,_0x1df9b2,_0xe41372){return _0x3845e2(_0x4899f6-_0x484668._0x2b9bed,_0x4899f6,_0x556c25-0x215,_0xe41372-_0x484668._0x539189);}return collectClientResults((await _0x361850(_0x4e59e8,![]))[_0x6a5f13(_0x3099c7._0x594d85,_0x3099c7._0x33fdf6,0x23f,0x24a)](_0x48b8f8=>_0x48b8f8[_0x6a5f13(0x403,0x309,0x425,0x32a)]['documentSymbol'](_0x4e59e8)));},async 'workspaceSymbol'(_0x1dee73){const _0x2f9233={_0x18c607:0x7f},_0x3a0fd5={_0x294edf:0x50c,_0x51911c:0x4a};function _0x91c7e1(_0x2849e9,_0x134cb6,_0x20db69,_0x579428){return _0x3845e2(_0x2849e9-0x115,_0x20db69,_0x134cb6-_0x3a0fd5._0x294edf,_0x579428-_0x3a0fd5._0x51911c);}function _0x5d0324(_0x36c8cb,_0x5db4d3,_0x5bdb8c,_0x32440c){return _0x3845e2(_0x36c8cb-0xb3,_0x5db4d3,_0x5bdb8c-0x2e1,_0x32440c-_0x2f9233._0x18c607);}return collectClientResults(_0x2f9d68[_0x91c7e1(0x464,0x467,0x522,0x3dc)]['map'](_0x129ad2=>_0x129ad2[_0x91c7e1(0x4e3,0x600,0x4e3,0x494)][_0x5d0324(0x413,0x501,0x3da,0x53a)](_0x1dee73)));},async 'implementation'(_0x1c6e10){const _0x4c6a0d={_0xade2a1:0x27,_0x4539c4:0x6a};function _0x10165c(_0x886509,_0x914f39,_0x36d4e2,_0x11b23){return _0x3845e2(_0x886509-_0x4c6a0d._0xade2a1,_0x36d4e2,_0x11b23-0x418,_0x11b23-_0x4c6a0d._0x4539c4);}function _0x4adf33(_0x47d96b,_0x178b75,_0x4e114a,_0x3f685b){return _0x3845e2(_0x47d96b-0x17b,_0x4e114a,_0x178b75- -0x65,_0x3f685b-0x111);}return collectClientResults((await _0x58b7ba(_0x1c6e10))['map'](_0x46f19d=>_0x46f19d[_0x4adf33(0xa9,0x8f,0x202,0x14f)][_0x10165c(0x617,0x4dc,0x509,0x50d)](_0x1c6e10)));},async 'prepareCallHierarchy'(_0x5535c5){return _0x192271(_0x5535c5);},async 'incomingCalls'(_0x387945){const _0x1f190d={_0x168c2c:0x183,_0x3d2f2:0x50e,_0x159ece:0x15d},_0x13e056=await _0x192271(_0x387945);function _0x4cea28(_0x4ca5dd,_0x1ede92,_0x3fbfb9,_0x5be667){return _0x3845e2(_0x4ca5dd-_0x37fc81._0x375236,_0x5be667,_0x1ede92- -0x94,_0x5be667-_0x37fc81._0x131239);}function _0x174bb6(_0x492d85,_0x5615a8,_0x3ced5d,_0x2f6189){return _0x3845e2(_0x492d85-_0x1f190d._0x168c2c,_0x5615a8,_0x2f6189-_0x1f190d._0x3d2f2,_0x2f6189-_0x1f190d._0x159ece);}const _0x17ee69=await _0x58b7ba(_0x387945);return collectClientResults(_0x17ee69['flatMap'](_0x3357ce=>_0x13e056[_0x4cea28(0xab,-0x1b,0x86,-0x121)](_0x11a6b5=>_0x3357ce[_0x4cea28(0x150,0x60,-0x119,0x124)]['incomingCalls'](_0x11a6b5))));},async 'outgoingCalls'(_0x82a689){const _0x2329dc=await _0x192271(_0x82a689);function _0x3ea90e(_0x350906,_0x1c11e2,_0x51bf1f,_0x45832d){return _0x3845e2(_0x350906-0x61,_0x350906,_0x51bf1f-_0x5455c9._0x261ad8,_0x45832d-_0x5455c9._0x5b5081);}const _0x20f839=await _0x58b7ba(_0x82a689);function _0x344d5e(_0x348faf,_0x1c5058,_0x47e913,_0x2efc8d){return _0x3845e2(_0x348faf-_0x2e7b8d._0x69571,_0x1c5058,_0x47e913-_0x2e7b8d._0x493dec,_0x2efc8d-0x19d);}return collectClientResults(_0x20f839['flatMap'](_0x5e5d92=>_0x2329dc[_0x3ea90e(0x216,0x14e,0x1ca,0x1bf)](_0xd23fdc=>_0x5e5d92[_0x3ea90e(0x2bb,0x358,0x245,0x292)][_0x344d5e(0x589,0x466,0x5d7,0x4b2)](_0xd23fdc))));},async 'shutdown'(){if(_0x2f9d68['shutdownStarted'])return;function _0x589971(_0xf264bf,_0x2dbb70,_0x5cae8d,_0x538de0){return _0x3845e2(_0xf264bf-0x175,_0x538de0,_0x5cae8d-_0x33e02b._0x7ecbd8,_0x538de0-0x9);}function _0xa9fc0a(_0x2fac22,_0x2c3b95,_0x544576,_0x2f508d){return _0x3845e2(_0x2fac22-0x33,_0x544576,_0x2f508d-_0x77d175._0x23f911,_0x2f508d-0x135);}_0x2f9d68[_0xa9fc0a(_0x22acb9._0x440a65,-0x4b,-_0x22acb9._0x2ee540,0x117)]=!![],await Promise['allSettled'](_0x2f9d68['clients'][_0xa9fc0a(0x1f0,-_0x22acb9._0x20d7ee,_0x22acb9._0x3fe2a6,0xf3)](_0xd5dc40=>_0xd5dc40[_0xa9fc0a(0x44,-0x3e,-0x7e,0xf0)]())),_0x2f9d68[_0xa9fc0a(0xe9,0xda,-0x146,-0x2b)]=[],_0x2f9d68[_0x589971(0x560,_0x22acb9._0x33c40e,0x48b,_0x22acb9._0x408429)][_0x589971(0x4b5,0x406,_0x22acb9._0x41580c,0x3e7)](),_0x2f9d68['broken'][_0x589971(0x3e2,_0x22acb9._0x496228,0x408,0x3a5)](),_0x2f9d68['fileVersions'][_0x589971(_0x22acb9._0x2da9db,_0x22acb9._0x4f883c,_0x22acb9._0x264a28,0x3db)](),_0x2f9d68['openFiles'][_0x589971(_0x22acb9._0x4e3c20,_0x22acb9._0x4abb6a,0x408,_0x22acb9._0x1547b0)]();},'status'(){const _0x318496={_0x5e2e1a:0x149},_0x33aac9={_0x1e7219:0x8e};function _0xd812bb(_0x2d2f2d,_0x2b9c05,_0x1f9de3,_0x5880e2){return _0x3845e2(_0x2d2f2d-0x74,_0x1f9de3,_0x2d2f2d-_0x33aac9._0x1e7219,_0x5880e2-0x132);}function _0x48120b(_0x30dcd3,_0x2fa7b1,_0x467ce2,_0x1d8b38){return _0x3845e2(_0x30dcd3-0xf3,_0x2fa7b1,_0x30dcd3-0x5bd,_0x1d8b38-_0x318496._0x5e2e1a);}return{'connectedClients':_0x2f9d68[_0x48120b(0x518,0x3b6,0x490,_0x2323d8._0x19600c)][_0xd812bb(_0x2323d8._0x1ee9c2,0x33b,0x153,0x193)]};}};}function createQuestionId(){const _0x3546f0={_0x12b76c:0x528,_0x2a004b:0x4ce,_0x5c6ff0:0x60c,_0x18f037:0x64b,_0x2900ab:0x53f,_0x186244:0x65a,_0x3671f5:0x31,_0x45798e:0xdb,_0x281109:0x93},_0x2a1678={_0x21c543:0x18c,_0x19039f:0x25,_0x2f55f2:0x467},_0x2e532c={_0x270a27:0x194,_0x5bb77b:0xff};function _0x578d9e(_0x15fb86,_0x40f9c1,_0x518191,_0x25deaa){return _0x19c96f(_0x15fb86-0x1d9,_0x40f9c1-_0x2e532c._0x270a27,_0x518191,_0x15fb86-_0x2e532c._0x5bb77b);}function _0x266e9(_0x44f4ab,_0x4f1439,_0x38cf0d,_0x416671){return _0x19c96f(_0x44f4ab-_0x2a1678._0x21c543,_0x4f1439-_0x2a1678._0x19039f,_0x38cf0d,_0x44f4ab-_0x2a1678._0x2f55f2);}return'question-'+Date[_0x266e9(_0x3546f0._0x12b76c,_0x3546f0._0x2a004b,0x48f,_0x3546f0._0x5c6ff0)]()+'-'+Math['random']()[_0x266e9(_0x3546f0._0x18f037,_0x3546f0._0x2900ab,0x55a,_0x3546f0._0x186244)](0x24)[_0x578d9e(0x86,-_0x3546f0._0x3671f5,_0x3546f0._0x45798e,_0x3546f0._0x281109)](0x2,0x9);}function validateInput(_0x150912){const _0x28b072={_0x40607b:0x31e,_0x2f3e10:0x86,_0x1a1f62:0x161,_0x327122:0x650,_0x58fbd5:0x5eb,_0x4fd807:0x4d7,_0x2593b9:0x58c,_0x374bb2:0x597,_0x15be22:0x1aa,_0x296bd8:0x1de,_0x1b8603:0x5de,_0x1a1620:0x4f,_0x137230:0x178,_0x3046aa:0x38,_0x4e65e5:0xda,_0x508de0:0x43,_0x5ee4f9:0xdc,_0x1e6c8b:0x91,_0x2aee5f:0x4b3,_0x4be999:0x10c,_0xf7008b:0x34c,_0x57ba56:0x6f2,_0x1c04f4:0x5ed,_0x35ccc6:0x2e2,_0x5c7566:0x334,_0xdc2f66:0x1a8,_0x3e26ef:0x1e1,_0x8a787c:0x556,_0x1c08c6:0x600,_0x2bea3f:0x54e,_0xcb0931:0x1df,_0x4fda13:0x3de,_0x14b7d8:0x1b9,_0x4762db:0x54,_0x1a2f6c:0x522,_0x23ae14:0x54c,_0x2e44cf:0x4d0,_0x5b3c8d:0x6e8,_0x1cb9bd:0x4b7,_0x512b72:0x5f7,_0x83918b:0x317,_0x5da938:0x30b,_0x48ee05:0x3bd,_0x4cd59c:0x1db,_0xc9dd83:0x499,_0x1d46c0:0x3ec,_0x2bf095:0x2cc,_0x1ffa0f:0xe1,_0x5cf29c:0x57,_0x5ecf52:0x14e,_0xc64e25:0x1f6,_0x9c018f:0xa0,_0x88e3e5:0x1bf,_0x9da93d:0x5f,_0x3b302e:0x2a1,_0x3d49a8:0x33d,_0x110a97:0x254,_0xa57827:0x200,_0x2354b4:0x116,_0x2ae7bc:0x252,_0x5a3aa4:0x245,_0x26d505:0x2bc,_0x9b1e0e:0x14b,_0x4a2e4f:0x1e5,_0x583f3e:0x90,_0x3186e7:0x123,_0x4244e2:0x4b6,_0x3ae2b6:0x1b8,_0x3aff4d:0x25d,_0x34bb22:0x22c},_0x2c1473={_0x3feb90:0x496},_0xd2f49c={_0x229d11:0x1c0,_0x545765:0xee,_0x100a6f:0x3a7};if(!Array[_0xc5b074(0x374,0x30b,_0x28b072._0x40607b,0x23f)](_0x150912['questions'])||_0x150912[_0xc5b074(0xf1,0x132,_0x28b072._0x2f3e10,_0x28b072._0x1a1f62)][_0x4ae85e(0x744,_0x28b072._0x327122,_0x28b072._0x58fbd5,0x5de)]<0x1||_0x150912['questions'][_0x4ae85e(_0x28b072._0x4fd807,0x63b,0x655,0x5de)]>0xa)throw new ToolExecutionError(_0x4ae85e(0x521,_0x28b072._0x2593b9,0x5da,_0x28b072._0x374bb2),{'error':_0xc5b074(_0x28b072._0x15be22,0x99,0x1c5,-0xa0)});function _0x4ae85e(_0x10728d,_0x23c65c,_0x15b1c7,_0x59fab4){return _0x19c96f(_0x10728d-_0xd2f49c._0x229d11,_0x23c65c-_0xd2f49c._0x545765,_0x10728d,_0x59fab4-_0xd2f49c._0x100a6f);}function _0xc5b074(_0x1b008b,_0x1ffdb1,_0xd42402,_0x4b537e){return _0x36273c(_0x1b008b-0x1b7,_0x1ffdb1-0x7d,_0x4b537e,_0x1ffdb1- -_0x2c1473._0x3feb90);}for(let _0x283057=0x0;_0x283057<_0x150912[_0xc5b074(0x48,0x132,_0x28b072._0x296bd8,0x3c)][_0x4ae85e(0x6ba,0x728,0x48f,_0x28b072._0x1b8603)];_0x283057+=0x1){const _0x3d163f=_0x150912[_0xc5b074(-_0x28b072._0x1a1620,0x132,0xed,_0x28b072._0x137230)][_0x283057];if(!_0x3d163f[_0xc5b074(_0x28b072._0x3046aa,0x91,-_0x28b072._0x4e65e5,_0x28b072._0x508de0)]||typeof _0x3d163f[_0xc5b074(_0x28b072._0x5ee4f9,_0x28b072._0x1e6c8b,-0x27,_0x28b072._0x4e65e5)]!==_0x4ae85e(0x50e,0x41d,0x38f,_0x28b072._0x2aee5f))throw new ToolExecutionError(_0xc5b074(0x11d,0x32,_0x28b072._0x4be999,0xcf)+(_0x283057+0x1)+_0x4ae85e(_0x28b072._0xf7008b,0x4ce,0x34b,0x43a));if(!_0x3d163f[_0x4ae85e(0x4ce,_0x28b072._0x57ba56,0x76e,_0x28b072._0x1c04f4)]||typeof _0x3d163f[_0xc5b074(0x33d,_0x28b072._0x35ccc6,_0x28b072._0x5c7566,0x310)]!==_0xc5b074(0x141,_0x28b072._0xdc2f66,_0x28b072._0x3e26ef,0x1d6))throw new ToolExecutionError('Question\x20'+(_0x283057+0x1)+_0x4ae85e(_0x28b072._0x8a787c,0x48a,_0x28b072._0x1c08c6,_0x28b072._0x2bea3f));if(_0x3d163f['topic'][_0xc5b074(_0x28b072._0xcb0931,0x2d3,_0x28b072._0x4fda13,_0x28b072._0x14b7d8)]>0x1e)throw new ToolExecutionError(_0xc5b074(0x9f,0x32,-_0x28b072._0x4762db,0x98)+(_0x283057+0x1)+_0x4ae85e(0x562,0x5eb,_0x28b072._0x1a2f6c,_0x28b072._0x23ae14)+_0x3d163f[_0x4ae85e(_0x28b072._0x2e44cf,_0x28b072._0x5b3c8d,0x724,_0x28b072._0x1c04f4)][_0x4ae85e(_0x28b072._0x1cb9bd,0x688,_0x28b072._0x512b72,0x5de)]);if(!Array[_0xc5b074(_0x28b072._0x83918b,_0x28b072._0x5da938,_0x28b072._0x48ee05,_0x28b072._0x4cd59c)](_0x3d163f[_0x4ae85e(_0x28b072._0xc9dd83,0x4b2,0x497,_0x28b072._0x1d46c0)])||_0x3d163f['options'][_0xc5b074(0x26e,0x2d3,_0x28b072._0x2bf095,0x1e5)]<0x2||_0x3d163f[_0xc5b074(0xd9,_0x28b072._0x1ffa0f,-_0x28b072._0x5cf29c,0x53)]['length']>0x4)throw new ToolExecutionError('Question\x20'+(_0x283057+0x1)+':\x20must\x20have\x202-4\x20options');for(let _0x16d896=0x0;_0x16d896<_0x3d163f['options'][_0x4ae85e(0x671,0x512,0x4be,0x5de)];_0x16d896+=0x1){const _0x4f4a38=_0x3d163f[_0xc5b074(_0x28b072._0x5ecf52,0xe1,-0x68,_0x28b072._0xc64e25)][_0x16d896];if(!_0x4f4a38[_0xc5b074(_0x28b072._0x9c018f,0xb3,_0x28b072._0x88e3e5,-_0x28b072._0x9da93d)]||!_0x4f4a38['description'])throw new ToolExecutionError(_0x4ae85e(_0x28b072._0x35ccc6,0x1ee,_0x28b072._0x3b302e,_0x28b072._0x3d49a8)+(_0x283057+0x1)+',\x20Option\x20'+(_0x16d896+0x1)+_0xc5b074(_0x28b072._0x110a97,0x182,0x252,_0x28b072._0xa57827));}if(typeof _0x3d163f[_0xc5b074(_0x28b072._0x2354b4,_0x28b072._0x2ae7bc,_0x28b072._0x5a3aa4,_0x28b072._0x26d505)]!==_0xc5b074(_0x28b072._0x9b1e0e,_0x28b072._0x4a2e4f,_0x28b072._0x583f3e,_0x28b072._0x3186e7))throw new ToolExecutionError(_0x4ae85e(_0x28b072._0x4244e2,0x376,0x20b,0x33d)+(_0x283057+0x1)+_0xc5b074(_0x28b072._0x3ae2b6,0x2d7,_0x28b072._0x3aff4d,_0x28b072._0x34bb22));}}function buildQuestions(_0x1794a3){const _0x4d392e={_0x837ab0:0x5da,_0x3c8202:0xac,_0xa11879:0x214,_0x2d9cf3:0x18b},_0x505368={_0x5b180a:0x1aa,_0x1c607d:0x163},_0x39fe95={_0x47798c:0x159,_0x131cee:0x12};function _0x1ce747(_0x3139f5,_0x13f425,_0x2aa9f0,_0x4f056d){return _0x36273c(_0x3139f5-0x119,_0x13f425-_0x39fe95._0x47798c,_0x4f056d,_0x3139f5-_0x39fe95._0x131cee);}function _0x56c825(_0x1d9f74,_0x19e848,_0x1b5b33,_0x465cff){return _0x19c96f(_0x1d9f74-0x72,_0x19e848-_0x505368._0x5b180a,_0x1b5b33,_0x1d9f74-_0x505368._0x1c607d);}return _0x1794a3[_0x1ce747(_0x4d392e._0x837ab0,0x579,0x60e,0x65f)][_0x56c825(0x228,_0x4d392e._0x3c8202,_0x4d392e._0xa11879,_0x4d392e._0x2d9cf3)]((_0x50adc9,_0x2bdd0d)=>({'id':'q'+_0x2bdd0d,'question':_0x50adc9[_0x56c825(0x158,0x1b4,0x2c7,0x27c)],'topic':_0x50adc9[_0x56c825(0x3a9,0x41c,0x2bb,0x352)],'options':_0x50adc9[_0x1ce747(0x589,0x41c,0x519,0x4da)],'multiSelect':_0x50adc9[_0x1ce747(0x6fa,0x6bc,0x838,0x729)]}));}function createResult(_0x29ae3f,_0x4854d1,_0x1bd684){const _0x387e50={_0x18513e:0x618,_0x34760f:0x56b,_0x4359b6:0x6e4},_0x984da2={_0x1b702c:0xe0};function _0x5afc15(_0x1ba038,_0x3d6c04,_0x2fd628,_0x210e0b){return _0x19c96f(_0x1ba038-_0x984da2._0x1b702c,_0x3d6c04-0xd6,_0x1ba038,_0x210e0b-0x529);}const _0x561928={'questionId':_0x29ae3f,'questionCount':_0x4854d1,'answers':_0x1bd684};return createToolOutput(_0x5afc15(0x821,_0x387e50._0x18513e,_0x387e50._0x34760f,_0x387e50._0x4359b6)+JSON['stringify'](_0x1bd684,null,0x2),_0x561928);}function createAskUserTool(){const _0x41547d={_0x650314:0x482,_0x7552f7:0x3c4,_0x4f69cc:0x3a7,_0x154680:0x4c5,_0x1ce03e:0x526,_0x4c8638:0x328,_0x927370:0x3fb,_0x435dc1:0x5b3,_0x27bab1:0x4db,_0x137a9c:0x251,_0x56cb0d:0x27e,_0x426a35:0x3ee,_0x28e444:0x48d,_0x22a994:0x5d4,_0x16eeb8:0x45f,_0x705da7:0x353,_0x3cbcac:0x363,_0x18b6d1:0x252,_0x839bbf:0x296,_0x4d5483:0x14c,_0x548908:0x3d5,_0x42b296:0x5b0,_0x56b568:0x4ca,_0x392823:0x385,_0x51dca9:0x223,_0x3adde6:0x3c6,_0x21a3e4:0x21c,_0x5ec9e1:0x25b,_0x181054:0x2f9,_0x2ca2e2:0x340,_0x52dbd3:0x22e},_0x508843={_0x5bb87c:0x33a,_0x546c17:0x293,_0x385396:0x50b,_0x3e1280:0x4d1,_0x1fce15:0x2fe,_0x4e85ac:0x6b2,_0x3e2abc:0x414,_0x44b91f:0x455,_0x5270f5:0x5f9,_0x1e5403:0x4dd,_0x329f46:0x715,_0x505b0a:0x52e,_0x4b833f:0x524,_0x6719fc:0x345,_0x100add:0x542,_0x235ca1:0x55e,_0x309af0:0x2dd,_0x209ec3:0x526,_0x184a20:0x702},_0x30d1ce={_0x45853e:0x1b9,_0x135518:0x123,_0x198226:0x14},_0x1071be={_0x1d51a2:0xbd,_0x497d6f:0x3a8},_0x29c5ed={_0x1313a0:0x120,_0xea0f07:0x17c};function _0x5525e5(_0x75e1c3,_0x5becef,_0x2e3c99,_0x13ca2f){return _0x19c96f(_0x75e1c3-_0x29c5ed._0x1313a0,_0x5becef-_0x29c5ed._0xea0f07,_0x13ca2f,_0x2e3c99-0x381);}function _0x284d15(_0x549e62,_0x565bd7,_0x179e99,_0x50d58b){return _0x36273c(_0x549e62-0xa5,_0x565bd7-_0x1071be._0x1d51a2,_0x179e99,_0x50d58b- -_0x1071be._0x497d6f);}return defineTool({'name':_0x5525e5(_0x41547d._0x650314,_0x41547d._0x7552f7,_0x41547d._0x4f69cc,_0x41547d._0x154680),'description':_0x5525e5(0x3bc,_0x41547d._0x1ce03e,0x3c7,_0x41547d._0x4c8638),'inputSchema':{'type':_0x5525e5(_0x41547d._0x927370,_0x41547d._0x435dc1,0x43e,_0x41547d._0x27bab1),'properties':{'questions':{'type':'array','items':{'type':'object','properties':{'question':{'type':_0x284d15(_0x41547d._0x137a9c,_0x41547d._0x56cb0d,0x3d6,0x296)},'topic':{'type':_0x5525e5(_0x41547d._0x426a35,0x569,_0x41547d._0x28e444,_0x41547d._0x22a994)},'options':{'type':'array','items':{'type':'object','properties':{'label':{'type':_0x5525e5(_0x41547d._0x16eeb8,_0x41547d._0x705da7,0x48d,_0x41547d._0x3cbcac)},'description':{'type':_0x284d15(0x1af,_0x41547d._0x18b6d1,0x227,_0x41547d._0x839bbf)}},'required':[_0x284d15(0x24b,0x16a,0x1d9,0x1a1),_0x284d15(0x244,_0x41547d._0x4d5483,0x4d,0x14f)]}},'multiSelect':{'type':_0x5525e5(_0x41547d._0x548908,_0x41547d._0x42b296,_0x41547d._0x56b568,_0x41547d._0x392823)}},'required':[_0x284d15(_0x41547d._0x51dca9,0xd5,0x154,0x17f),'topic',_0x5525e5(0x380,0x40c,_0x41547d._0x3adde6,0x4b9),_0x284d15(_0x41547d._0x21a3e4,_0x41547d._0x5ec9e1,_0x41547d._0x181054,_0x41547d._0x2ca2e2)]}},'answers':{'type':_0x284d15(_0x41547d._0x52dbd3,0x252,0x19a,0x247),'properties':{}}},'required':['questions']},async *'execute'(_0x4663f2,_0xcfd75){const _0x2a09cb=_0x4663f2;validateInput(_0x2a09cb);const _0x470013=_0xcfd75[_0x27ce72(0x342,0x438,_0x508843._0x5bb87c,_0x508843._0x546c17)]??createQuestionId();function _0x55caca(_0x40b840,_0x15e51f,_0x2c2caf,_0x4c2933){return _0x284d15(_0x40b840-0xf,_0x15e51f-0x1d2,_0x40b840,_0x4c2933-0x230);}if(_0x2a09cb['answers']&&Object[_0x27ce72(0x550,0x5ad,_0x508843._0x385396,_0x508843._0x3e1280)](_0x2a09cb[_0x27ce72(_0x508843._0x1fce15,0x263,0x3b5,0x3e3)])[_0x27ce72(0x4b4,0x536,0x5cc,_0x508843._0x4e85ac)]>0x0)return createResult(_0x470013,_0x2a09cb[_0x27ce72(0x37e,_0x508843._0x3e2abc,0x42b,_0x508843._0x44b91f)][_0x27ce72(_0x508843._0x5270f5,_0x508843._0x1e5403,0x5cc,_0x508843._0x329f46)],_0x2a09cb[_0x55caca(0x39d,0x39c,0x507,0x3da)]);if(!_0xcfd75['askUser'])throw new ToolExecutionError(_0x27ce72(_0x508843._0x505b0a,0x5a1,0x448,_0x508843._0x4b833f));const _0x1aa39d=buildQuestions(_0x2a09cb),_0x4b4fd5=await _0xcfd75[_0x27ce72(_0x508843._0x6719fc,_0x508843._0x100add,0x41d,_0x508843._0x235ca1)]({'questionId':_0x470013,'questions':_0x1aa39d});function _0x27ce72(_0x41c7bd,_0x154940,_0x3795e9,_0x431065){return _0x5525e5(_0x41c7bd-_0x30d1ce._0x45853e,_0x154940-_0x30d1ce._0x135518,_0x3795e9-_0x30d1ce._0x198226,_0x431065);}yield createResult(_0x470013,_0x2a09cb[_0x55caca(_0x508843._0x309af0,0x497,_0x508843._0x209ec3,0x450)][_0x55caca(0x6c8,0x4a8,_0x508843._0x184a20,0x5f1)],_0x4b4fd5);}});}import{randomUUID}from'crypto';import{StringDecoder}from'string_decoder';import{spawn as _0x4566f6}from'child_process';import{stripVTControlCharacters}from'util';function isErrnoException(_0x1f6586){return _0x1f6586 instanceof Error;}function resolveCarriageReturns(_0x3ba30d){const _0xab4fa4={_0x325dcc:0x125,_0x16c2d6:0x4d,_0x5eeccc:0x387,_0x42dbf5:0x3a1},_0xfd7382={_0x50a164:0x1b4,_0x4b8dc0:0x356,_0x39b66b:0x3b3},_0x3bec1={_0x218d8a:0xff,_0x4fc312:0x32,_0x8ebcd8:0x395};function _0x41220a(_0x1fd04d,_0x2cacbb,_0x5ae4d4,_0x3dafaa){return _0x36273c(_0x1fd04d-0x13,_0x2cacbb-0x18b,_0x3dafaa,_0x1fd04d- -0x5df);}function _0x30dd1c(_0x478f86,_0x2419c1,_0x49fe53,_0x3b088f){return _0x19c96f(_0x478f86-_0x3bec1._0x218d8a,_0x2419c1-_0x3bec1._0x4fc312,_0x3b088f,_0x2419c1-_0x3bec1._0x8ebcd8);}return _0x3ba30d[_0x41220a(-_0xab4fa4._0x325dcc,-0x84,0x1e,_0xab4fa4._0x16c2d6)]('\x0a')['map'](_0x4cc85d=>{const _0x470c8c={_0x30be9c:0x1cc,_0x7797b2:0xe3};function _0x25ec34(_0x18d028,_0x30d831,_0x128308,_0x1b74e7){return _0x41220a(_0x30d831-0x3c6,_0x30d831-0x19a,_0x128308-0x1a9,_0x18d028);}function _0xecd6e4(_0xcc82cb,_0x23131b,_0x10cdc0,_0x18dc11){return _0x41220a(_0x10cdc0-_0x470c8c._0x30be9c,_0x23131b-_0x470c8c._0x7797b2,_0x10cdc0-0x1d3,_0x23131b);}if(!_0x4cc85d['includes']('\x0d'))return _0x4cc85d;const _0x5e6bf7=_0x4cc85d[_0xecd6e4(0x142,0x41,0xa7,_0xfd7382._0x50a164)]('\x0d');return _0x5e6bf7[_0x5e6bf7[_0xecd6e4(0x3bf,0x2e9,_0xfd7382._0x4b8dc0,_0xfd7382._0x39b66b)]-0x1]??'';})[_0x30dd1c(_0xab4fa4._0x5eeccc,_0xab4fa4._0x42dbf5,0x32f,0x2b8)]('\x0a');}function resolveBackspaces(_0x468efc){const _0x422213={_0x4eee79:0x4e,_0x466592:0xdc,_0x5b058b:0x37,_0x268a26:0x465,_0x416ac2:0x539,_0x4eadbf:0x491,_0x2bd867:0x514},_0x56e44c={_0x32d941:0x3e1},_0x518ebf={_0xd41ce6:0x29,_0x439a8c:0x20e},_0x121b3e=[];function _0x1eb04b(_0x585ac8,_0x192bcd,_0x802c18,_0x358a62){return _0x19c96f(_0x585ac8-_0x518ebf._0xd41ce6,_0x192bcd-0x8d,_0x192bcd,_0x802c18- -_0x518ebf._0x439a8c);}for(const _0x16589c of Array[_0x1eb04b(-_0x422213._0x4eee79,0x15,-_0x422213._0x466592,_0x422213._0x5b058b)](_0x468efc)){_0x16589c==='\x08'?_0x121b3e[_0x194a24(_0x422213._0x268a26,_0x422213._0x416ac2,_0x422213._0x4eadbf,_0x422213._0x2bd867)]():_0x121b3e['push'](_0x16589c);}function _0x194a24(_0x527840,_0x207505,_0x5beb82,_0x329269){return _0x19c96f(_0x527840-0x14,_0x207505-0xab,_0x5beb82,_0x207505-_0x56e44c._0x32d941);}return _0x121b3e['join']('');}function stripAnsiAndControls(_0x57493b){const _0x3c5bad={_0x2c7afd:0x2e6,_0x24671a:0x161,_0x5374ce:0x433,_0xbeaef4:0x25b,_0x58c7ae:0x377,_0x250822:0x3cf,_0x4f367a:0x55f,_0x89ffb2:0x3f2,_0x306566:0x2e1,_0x4f5ad1:0x209,_0x3f3bc2:0x3d8,_0x1e5018:0x3da,_0x58644b:0x316,_0xb731e7:0x4a6,_0x325ae5:0x472,_0x39d8db:0x521,_0x367508:0x361},_0x3b9c70={_0xf4c27a:0x21c},_0x3bf010={_0x6a55be:0x18d,_0x585d74:0x396};_0x57493b=resolveCarriageReturns(_0x57493b),_0x57493b=resolveBackspaces(_0x57493b),_0x57493b=stripVTControlCharacters(_0x57493b);const _0x72da87='\x1b',_0x2566e9='\x07';_0x57493b=_0x57493b['replace'](new RegExp(';[^'+_0x2566e9+_0x5a3e21(_0x3c5bad._0x2c7afd,_0x3c5bad._0x24671a,0x3b8,0x2a3)+_0x2566e9,'g'),'');function _0x5a3e21(_0x5eb27a,_0x5bc174,_0xcc9ba1,_0x336df4){return _0x36273c(_0x5eb27a-0x10e,_0x5bc174-_0x3bf010._0x6a55be,_0x5bc174,_0x336df4- -_0x3bf010._0x585d74);}_0x57493b=_0x57493b[_0x5a3e21(0x28f,0x288,0x428,0x3f2)](new RegExp(_0x5a3e21(_0x3c5bad._0x5374ce,0x418,_0x3c5bad._0xbeaef4,_0x3c5bad._0x58c7ae)+_0x72da87+'\x5c\x5c','g'),''),_0x57493b=_0x57493b[_0x5a3e21(_0x3c5bad._0x250822,0x2b4,_0x3c5bad._0x4f367a,_0x3c5bad._0x89ffb2)](new RegExp(_0x2566e9,'g'),''),_0x57493b=_0x57493b['replace'](new RegExp(_0x72da87+_0x5a3e21(0x1c3,_0x3c5bad._0x306566,0xf9,_0x3c5bad._0x4f5ad1)+_0x72da87+'\x5c\x5c','g'),''),_0x57493b=_0x57493b[_0x3bfc88(0x531,_0x3c5bad._0x3f3bc2,0x472,_0x3c5bad._0x1e5018)](new RegExp(_0x72da87+'[=>7-8()]','g'),''),_0x57493b=_0x57493b[_0x3bfc88(_0x3c5bad._0x58644b,_0x3c5bad._0xb731e7,_0x3c5bad._0x325ae5,0x529)](/[\u0080-\u009F]/g,'');function _0x3bfc88(_0x1ad430,_0x282f2f,_0x2ddc05,_0x2bbb8c){return _0x19c96f(_0x1ad430-0xe9,_0x282f2f-0x172,_0x2bbb8c,_0x2ddc05-_0x3b9c70._0xf4c27a);}return _0x57493b=_0x57493b[_0x3bfc88(0x5e1,0x538,_0x3c5bad._0x325ae5,_0x3c5bad._0x39d8db)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x57493b=_0x57493b[_0x3bfc88(_0x3c5bad._0x367508,0x33c,_0x3c5bad._0x325ae5,0x597)](/[\u23CE\u2424]/g,''),_0x57493b;}function killProcessGroup(_0x11fa64,_0x1b4f3d,_0x4be929='SIGKILL'){const _0x138bac={_0x3ed18d:0x157,_0x1ef58c:0x142,_0x1b366f:0x79,_0x32cefe:0x634,_0x2bacd5:0x762,_0x5e0af0:0x199,_0x4bfa61:0x207,_0x2c9227:0x5fc,_0x2c0c62:0x645,_0x147e29:0x1f8,_0xc4d9f0:0x287,_0x1665c4:0x10d,_0x3723f9:0x29c,_0x28ab5b:0x60},_0x4258eb={_0x4c2be9:0x133,_0x11094b:0x4b},_0x38bfd3={_0x4dfa56:0x1cf,_0x30933c:0x3f1};function _0x23e23f(_0x4d8bd2,_0x33dde8,_0x38b40c,_0x21f222){return _0x19c96f(_0x4d8bd2-0x1e0,_0x33dde8-_0x38bfd3._0x4dfa56,_0x33dde8,_0x4d8bd2-_0x38bfd3._0x30933c);}if(!_0x11fa64['pid'])return;if(_0x1b4f3d)try{_0x4566f6('taskkill',[_0x4bc7fd(_0x138bac._0x3ed18d,_0x138bac._0x1ef58c,0x253,_0x138bac._0x1b366f),_0x11fa64[_0x23e23f(_0x138bac._0x32cefe,0x77f,0x532,_0x138bac._0x2bacd5)][_0x4bc7fd(_0x138bac._0x5e0af0,_0x138bac._0x4bfa61,0x24f,0x1be)](),'/T','/F'],{'stdio':_0x23e23f(0x5e5,0x742,_0x138bac._0x2c9227,0x757)});return;}catch{_0x11fa64['kill'](_0x4be929);return;}function _0x4bc7fd(_0x4fa40e,_0x1cedd7,_0x2f2472,_0x5eb818){return _0x19c96f(_0x4fa40e-_0x4258eb._0x4c2be9,_0x1cedd7-0x15e,_0x1cedd7,_0x4fa40e- -_0x4258eb._0x11094b);}try{process[_0x23e23f(0x5cb,_0x138bac._0x2c0c62,0x68c,0x599)](-_0x11fa64[_0x4bc7fd(_0x138bac._0x147e29,_0x138bac._0xc4d9f0,_0x138bac._0x1665c4,_0x138bac._0x3723f9)],_0x4be929);}catch{_0x11fa64[_0x4bc7fd(0x18f,0xe5,0x207,_0x138bac._0x28ab5b)](_0x4be929);}}var BackgroundProcessRegistry=class{[_0x19c96f(0x133,0x269,0x194,0x116)]=new Map();['maxConcurrent'];[_0x36273c(0x714,0x64a,0x551,0x6c7)];[_0x36273c(0x7ad,0x64a,0x784,0x78d)];[_0x36273c(0x51a,0x73b,0x6ce,0x65f)]=0x0;constructor(_0x594024={}){const _0x27ee5e={_0x468a90:0x9b,_0x531caf:0xf9,_0x21a11c:0x7f,_0x19822f:0x9b,_0x4a2a3b:0x139,_0x221bb1:0x7b,_0x1c908c:0x1a1,_0x140b9e:0x56,_0x2a5079:0x9e,_0x547f13:0x232,_0x46b851:0x1e1,_0xec89fd:0x349,_0x5de966:0x118,_0x371620:0xe0,_0x584653:0x94,_0x3f4b17:0x54},_0xd64c7a={_0x2363a9:0xc},_0x31abe1={_0x4b31c1:0x78,_0x2656b5:0x17b};function _0x155a95(_0xd4b24a,_0x5e684f,_0x4afc76,_0xe016e8){return _0x19c96f(_0xd4b24a-0x194,_0x5e684f-_0x31abe1._0x4b31c1,_0x5e684f,_0xd4b24a- -_0x31abe1._0x2656b5);}this[_0x155a95(_0x27ee5e._0x468a90,0x1f7,_0x27ee5e._0x531caf,_0x27ee5e._0x21a11c)]=_0x594024[_0x155a95(_0x27ee5e._0x19822f,_0x27ee5e._0x4a2a3b,-0xb,-0xb1)]??0xa;function _0x304523(_0x235085,_0x40bfd0,_0x2a6e60,_0x4cf707){return _0x19c96f(_0x235085-0x55,_0x40bfd0-0x1b9,_0x4cf707,_0x2a6e60-_0xd64c7a._0x2363a9);}this[_0x304523(_0x27ee5e._0x221bb1,0x1bc,_0x27ee5e._0x1c908c,_0x27ee5e._0x140b9e)]=_0x594024[_0x304523(_0x27ee5e._0x2a5079,_0x27ee5e._0x547f13,0x1a1,_0x27ee5e._0x46b851)]??0x40,this[_0x304523(_0x27ee5e._0xec89fd,_0x27ee5e._0x5de966,0x267,0x3c6)]=_0x594024[_0x155a95(_0x27ee5e._0x371620,_0x27ee5e._0x584653,_0x27ee5e._0x3f4b17,0x186)]??0x100000;}[_0x36273c(0x71d,0x749,0x8d1,0x752)](_0x28456c){const _0x40f921={_0x37f946:0x48c,_0x212282:0x353,_0x206811:0x5d9,_0x9f4184:0x19a,_0xeffb0:0x6c,_0x5c1906:0x11e,_0x2b3f4d:0x2a,_0x517487:0x5ad,_0x427aed:0x481,_0x339c77:0x40e,_0x40252b:0x651,_0x32be57:0x8e,_0x2061c3:0xe7,_0x517aee:0xcf,_0x587793:0x180,_0x87412b:0x189,_0x21add8:0x1c0,_0x345fea:0x10a,_0xf3f399:0x2f3,_0x4633fa:0x2f5,_0x22ac7b:0x498,_0x54fe41:0x5cd,_0x51b52a:0x48f,_0x4b5367:0x50f,_0x299918:0x630,_0x3a1068:0x2e3,_0x5be144:0xd,_0x5b7a11:0xe,_0x231227:0x1d,_0x3261e1:0x138,_0x215d3a:0xe2,_0x146e20:0x5a0,_0x3e7558:0x3cb,_0x56b59a:0x1f4,_0x3a32cc:0x10b,_0x5ce3cc:0xd8,_0x15a2ce:0x22d,_0x3703b2:0x471,_0x39bc7f:0x44f,_0x5c1c02:0x3d5,_0x43fdb8:0x399,_0x4c6f44:0xbd,_0x53a25d:0x5b6,_0x38b695:0x57f,_0x4ec7fb:0x548,_0xadf0cc:0x5cb,_0x21a83b:0x1b6,_0x313927:0x47,_0x1960c6:0x50f,_0x132abe:0x57a,_0x1961e1:0x44f,_0x5dff6e:0x4c3,_0x478be3:0x6dc,_0x18e35f:0x48c,_0x5dedd1:0x51a,_0x1075d4:0x2ec,_0x4779d2:0x34d},_0x5d6fbf={_0x198243:0x1d9},_0x3a2917={_0x4b1117:0x1e8,_0x7b3bdd:0x2df,_0x1096d5:0x1d6,_0x25cf6b:0x3cd,_0x10cc6d:0x24b,_0x49dd03:0x361,_0x85cbef:0x330},_0x15c83d={_0x57ce1f:0x131,_0x250ff2:0x106},_0x1d234c={_0x45f33b:0x2aa,_0x19a331:0x3d1,_0x4bf7eb:0x6d0,_0x399713:0x51f,_0x2dd3d2:0x280,_0x17065a:0x302,_0x436d6e:0x51e,_0x3902c9:0x5fd,_0x4e2bc7:0x3e6,_0x551408:0x3bf,_0x2dfe3e:0x402,_0x52f505:0x461,_0x1569d8:0x3b9,_0x311666:0x45c,_0x1ace57:0x3c5,_0x4ce91d:0x420,_0x5c36a4:0x389},_0x43526f={_0x3e5a26:0x1d2,_0x4e6bd5:0x1b7},_0x1e92ae={_0x25c8ed:0x679},_0x173457=[...this[_0x3ef237(_0x40f921._0x37f946,_0x40f921._0x212282,0x3d5,_0x40f921._0x206811)][_0x4e45ef(-_0x40f921._0x9f4184,-_0x40f921._0xeffb0,-_0x40f921._0x5c1906,-_0x40f921._0x2b3f4d)]()][_0x3ef237(0x3f5,0x543,0x3a2,0x350)](_0x1a802c=>_0x1a802c[_0x3ef237(0x318,0x365,0x3ab,0x2a1)]===_0x4e45ef(-0x175,-0x1d,-0x11,-0x14a))[_0x3ef237(_0x40f921._0x517487,0x4f9,_0x40f921._0x427aed,0x6eb)];function _0x4e45ef(_0x3565a6,_0x1ea19c,_0x442d9c,_0x2e5d2a){return _0x36273c(_0x3565a6-0xe9,_0x1ea19c-0x4d,_0x442d9c,_0x1ea19c- -_0x1e92ae._0x25c8ed);}if(_0x173457>=this[_0x3ef237(0x58c,_0x40f921._0x339c77,0x559,_0x40f921._0x40252b)])throw new ToolExecutionError(_0x4e45ef(_0x40f921._0x32be57,-0x22,-_0x40f921._0x2061c3,0x2f)+this['maxConcurrent']+_0x3ef237(0x319,0x272,0x261,0x279),{'running':this[_0x4e45ef(0x1aa,_0x40f921._0x517aee,_0x40f921._0x587793,0x184)]});const _0x5d6323='bg-'+ ++this['counter']+'-'+randomUUID()[_0x4e45ef(-_0x40f921._0x87412b,-_0x40f921._0x21add8,-0x253,-_0x40f921._0x345fea)](0x0,0x8),_0xe714b0={'shellId':_0x5d6323,'command':_0x28456c[_0x4e45ef(-0x301,-0x1ae,-_0x40f921._0xf3f399,-_0x40f921._0x4633fa)],'cwd':_0x28456c[_0x3ef237(_0x40f921._0x22ac7b,_0x40f921._0x54fe41,0x4ca,_0x40f921._0x51b52a)],'pid':_0x28456c[_0x3ef237(_0x40f921._0x4b5367,0x4c8,0x4a7,_0x40f921._0x299918)]['pid'],'status':_0x4e45ef(-0xe5,-0x1d,-0x11b,0xb4),'exitCode':null,'signal':null,'startedAt':Date[_0x3ef237(0x437,0x334,_0x40f921._0x3a1068,0x430)](),'child':_0x28456c[_0x4e45ef(0x180,0x52,_0x40f921._0x5be144,0x1b9)],'buffer':[],'bufferChars':0x0,'totalProduced':0x0,'totalDropped':0x0,'readCursor':0x0,'stdoutDecoder':new StringDecoder(_0x4e45ef(-_0x40f921._0x5b7a11,_0x40f921._0x231227,-_0x40f921._0x3261e1,-_0x40f921._0x215d3a)),'stderrDecoder':new StringDecoder(_0x3ef237(0x4da,_0x40f921._0x146e20,0x5e9,0x574)),'stripAnsi':_0x28456c[_0x3ef237(0x369,0x2bd,_0x40f921._0x3e7558,_0x40f921._0x56b59a)],'killRequested':![],'processExited':![]};_0x28456c[_0x4e45ef(-0xbe,0x52,0xa7,-_0x40f921._0x3a32cc)]['stdout']?.['on'](_0x4e45ef(-0x210,-_0x40f921._0x5ce3cc,-_0x40f921._0x15a2ce,-0x164),_0x161240=>this[_0x4e45ef(-0x23d,-0xc1,-0x7,0x11)](_0xe714b0,_0xe714b0[_0x4e45ef(0x18a,0x109,0x166,-0x5a)][_0x4e45ef(0x1d5,0xdf,0x196,0x224)](_0x161240))),_0x28456c[_0x3ef237(0x50f,0x616,0x474,_0x40f921._0x3703b2)][_0x3ef237(0x553,_0x40f921._0x39bc7f,_0x40f921._0x5c1c02,0x42d)]?.['on'](_0x3ef237(0x3e5,0x2c1,0x2ba,0x31f),_0x2e0dcc=>this['append'](_0xe714b0,_0xe714b0[_0x3ef237(0x355,0x43a,0x434,0x2ae)][_0x3ef237(0x59c,0x6bd,0x5f6,0x4cb)](_0x2e0dcc))),_0x28456c[_0x3ef237(0x50f,0x4f8,_0x40f921._0x43fdb8,0x5fb)][_0x4e45ef(0x104,_0x40f921._0x4c6f44,-0x51,0x159)](_0x3ef237(0x467,_0x40f921._0x53a25d,0x2ff,_0x40f921._0x38b695),()=>{_0xe714b0['processExited']=!![];}),_0x28456c[_0x3ef237(0x50f,0x5c4,_0x40f921._0x4ec7fb,_0x40f921._0xadf0cc)][_0x4e45ef(0x227,0xbd,_0x40f921._0x21a83b,-_0x40f921._0x313927)]('close',(_0x5197aa,_0x3e6e00)=>{const _0x495f1b={_0x33d95e:0x58,_0xb47460:0x492,_0x44a3e5:0x56};this[_0x1cecef(_0x1d234c._0x45f33b,0x34b,_0x1d234c._0x19a331,0x37f)](_0xe714b0,_0xe714b0[_0x1cecef(_0x1d234c._0x4bf7eb,0x66a,0x59b,_0x1d234c._0x399713)][_0x1cecef(0x46a,_0x1d234c._0x2dd3d2,0x321,_0x1d234c._0x17065a)]()),this[_0x5671d7(0x4db,0x71c,0x59e,0x605)](_0xe714b0,_0xe714b0[_0x5671d7(_0x1d234c._0x436d6e,0x488,0x4f7,0x4a6)]['end']());function _0x1cecef(_0x33a050,_0x4c4c6b,_0x25c68e,_0x389baf){return _0x4e45ef(_0x33a050-_0x495f1b._0x33d95e,_0x25c68e-_0x495f1b._0xb47460,_0x389baf,_0x389baf-_0x495f1b._0x44a3e5);}_0xe714b0[_0x5671d7(0x544,_0x1d234c._0x3902c9,0x4ba,_0x1d234c._0x4e2bc7)]=_0xe714b0['killRequested']?'killed':_0x1cecef(_0x1d234c._0x551408,0x34b,_0x1d234c._0x2dfe3e,_0x1d234c._0x52f505);function _0x5671d7(_0x1f8706,_0x5c0274,_0x2a3a51,_0x60d4){return _0x4e45ef(_0x1f8706-_0x43526f._0x3e5a26,_0x2a3a51-0x65f,_0x5c0274,_0x60d4-_0x43526f._0x4e6bd5);}_0xe714b0[_0x1cecef(_0x1d234c._0x1569d8,_0x1d234c._0x311666,_0x1d234c._0x1ace57,0x29f)]=_0x5197aa,_0xe714b0[_0x5671d7(0x5a3,_0x1d234c._0x4ce91d,0x501,_0x1d234c._0x5c36a4)]=_0x3e6e00,_0xe714b0['child']=null;}),_0x28456c[_0x3ef237(_0x40f921._0x1960c6,0x471,0x57e,0x56a)][_0x3ef237(_0x40f921._0x132abe,_0x40f921._0x1961e1,_0x40f921._0x5dff6e,_0x40f921._0x478be3)]('error',_0x161e1e=>{const _0x41a0ac={_0x5cd719:0x1df};function _0x1773de(_0x14b818,_0x1ac69b,_0x5526c0,_0x1b7295){return _0x3ef237(_0x1b7295- -_0x41a0ac._0x5cd719,_0x1ac69b-0x7a,_0x5526c0-0x148,_0x1ac69b);}_0xe714b0[_0x1773de(0x21f,0x2ab,0x104,0x139)]=_0x147f46(-0x17b,0x66,-0x88,-_0x3a2917._0x4b1117);function _0x147f46(_0x16f704,_0x1c0b54,_0x27f708,_0x34cf2b){return _0x4e45ef(_0x16f704-_0x15c83d._0x57ce1f,_0x27f708-0x44,_0x16f704,_0x34cf2b-_0x15c83d._0x250ff2);}_0xe714b0[_0x1773de(0x23b,_0x3a2917._0x7b3bdd,_0x3a2917._0x1096d5,0x212)]=_0x161e1e[_0x1773de(0x11e,_0x3a2917._0x25cf6b,0x114,_0x3a2917._0x10cc6d)],_0xe714b0[_0x1773de(0x3c6,_0x3a2917._0x49dd03,0x26c,_0x3a2917._0x85cbef)]=null;}),this[_0x3ef237(_0x40f921._0x18e35f,0x479,_0x40f921._0x5dedd1,0x3af)]['set'](_0x5d6323,_0xe714b0),this[_0x3ef237(0x332,_0x40f921._0x1075d4,_0x40f921._0x4779d2,0x477)]();function _0x3ef237(_0x549059,_0x4023c9,_0x459ea1,_0xc2c169){return _0x36273c(_0x549059-_0x5d6fbf._0x198243,_0x4023c9-0x87,_0xc2c169,_0x549059- -0x1bc);}return _0xe714b0;}[_0x36273c(0x58a,0x473,0x49c,0x4cd)](_0x206595,_0x18c8cd){const _0x3d84d7={_0x11263c:0xb3,_0x32b5bc:0x85,_0x111fd1:0x4d,_0x52de50:0x1cc,_0x268c59:0x6ce,_0x185664:0x556,_0x4a6c65:0x461,_0x2b86ab:0x55f,_0x44b5d5:0x2e2,_0x251f2e:0x66a,_0x106b6b:0x598,_0x2707a2:0x4c9,_0x173da7:0x3b0,_0x3534b2:0xd1,_0x5ef57a:0xe6,_0x178dda:0x60,_0x19642b:0x1bb,_0x1419f3:0x34e,_0x2f4051:0x40f,_0x1d2f22:0x99,_0x2b0eec:0x73,_0x20852f:0x6e,_0x5e3ac8:0x39,_0xacb25e:0xf2,_0x322891:0x45,_0x308cf4:0x23,_0x22ec57:0xfd,_0x4b5cce:0x538,_0x58cb0c:0x675,_0x4f8703:0x7b7,_0x54690a:0x291,_0x275efe:0x3b3,_0x13c92e:0x4cc,_0x1170e9:0x4c3,_0x406d2b:0x41,_0x1afc12:0xf8,_0x1b287e:0x81,_0xab315b:0x29d,_0x58086f:0x13c,_0x377e0e:0x515,_0x462535:0x4a4},_0x4b4665={_0x227b71:0xe5},_0x35bd34={_0x106534:0x14c},_0x28eecc=this[_0x4c1dce(-_0x3d84d7._0x11263c,0x26,_0x3d84d7._0x32b5bc,0x23)]['get'](_0x206595);if(!_0x28eecc)throw new ToolExecutionError(_0x4c1dce(_0x3d84d7._0x111fd1,0x335,_0x3d84d7._0x52de50,0x17e)+_0x206595,{'shellId':_0x206595});const _0x5e99f6=_0x28eecc[_0x1d4b51(_0x3d84d7._0x268c59,0x5db,_0x3d84d7._0x185664,_0x3d84d7._0x4a6c65)]['join'](''),_0x2a5c1a=Math['max'](_0x28eecc[_0x1d4b51(0x5d8,_0x3d84d7._0x2b86ab,0x469,0x46c)],_0x28eecc[_0x1d4b51(0x2a3,0x413,_0x3d84d7._0x44b5d5,0x457)]);function _0x4c1dce(_0x33e67a,_0xb8c292,_0x57026d,_0x138153){return _0x36273c(_0x33e67a-_0x35bd34._0x106534,_0xb8c292-0x1dc,_0xb8c292,_0x57026d- -0x5c3);}const _0x43d477=Math[_0x1d4b51(_0x3d84d7._0x251f2e,_0x3d84d7._0x106b6b,0x63f,_0x3d84d7._0x2707a2)](0x0,_0x28eecc[_0x1d4b51(0x4d6,0x413,_0x3d84d7._0x173da7,0x2b9)]-_0x28eecc[_0x4c1dce(_0x3d84d7._0x3534b2,0x16b,0x81,_0x3d84d7._0x5ef57a)]),_0xd35510=_0x5e99f6['slice'](_0x2a5c1a-_0x28eecc[_0x4c1dce(0x2,_0x3d84d7._0x178dda,-0xcb,-_0x3d84d7._0x19642b)]),_0x4f2cfa=_0x28eecc[_0x1d4b51(0x525,0x3ef,_0x3d84d7._0x1419f3,_0x3d84d7._0x2f4051)]!==_0x4c1dce(0x209,0x10b,_0x3d84d7._0x1d2f22,-_0x3d84d7._0x2b0eec);let _0x5793c3;function _0x1d4b51(_0x37f885,_0x64f90d,_0x10cb1b,_0x597538){return _0x36273c(_0x37f885-0xbb,_0x64f90d-0x2e,_0x597538,_0x64f90d- -_0x4b4665._0x227b71);}const _0x582d19=_0x18c8cd?.['regex'];if(!_0x582d19)_0x5793c3=_0xd35510,_0x28eecc['readCursor']=_0x28eecc[_0x4c1dce(0x134,_0x3d84d7._0x20852f,_0x3d84d7._0x5e3ac8,0x49)];else{let _0x458468;try{_0x458468=new RegExp(_0x582d19);}catch(_0x67e6e3){throw new ToolExecutionError(_0x4c1dce(0x62,_0x3d84d7._0xacb25e,_0x3d84d7._0x322891,0xd2)+_0x67e6e3[_0x4c1dce(-0x34,0x12,_0x3d84d7._0x308cf4,_0x3d84d7._0x22ec57)],{'shellId':_0x206595,'regex':_0x582d19});}let _0x22b7c0=_0xd35510;if(!_0x4f2cfa){const _0xf5a763=_0xd35510[_0x1d4b51(_0x3d84d7._0x4b5cce,_0x3d84d7._0x58cb0c,_0x3d84d7._0x4f8703,0x7f0)]('\x0a');_0x22b7c0=_0xf5a763>=0x0?_0xd35510['slice'](0x0,_0xf5a763+0x1):'';}_0x5793c3=_0x22b7c0[_0x1d4b51(_0x3d84d7._0x54690a,0x3d5,0x49e,0x32d)]('\x0a')[_0x1d4b51(_0x3d84d7._0x275efe,_0x3d84d7._0x13c92e,_0x3d84d7._0x1170e9,0x601)](_0x27687a=>_0x458468[_0x4c1dce(0x61,-0x8a,-0xd6,-0x20f)](_0x27687a))[_0x4c1dce(-0x1f,-0x53,-_0x3d84d7._0x32b5bc,0x5)]('\x0a'),_0x28eecc[_0x4c1dce(-_0x3d84d7._0x406d2b,_0x3d84d7._0x1afc12,_0x3d84d7._0x1b287e,0x6c)]=_0x2a5c1a+_0x22b7c0['length'];}const _0x38d393=(_0x43d477>0x0?'[output\x20truncated:\x20'+_0x43d477+_0x4c1dce(_0x3d84d7._0xab315b,_0x3d84d7._0x58086f,0x15c,-0x1b):'')+_0x5793c3;return{'output':_0x38d393,'status':_0x28eecc['status'],'exitCode':_0x28eecc[_0x1d4b51(_0x3d84d7._0x377e0e,0x4c7,0x61d,0x4d1)],'signal':_0x28eecc[_0x1d4b51(0x474,0x436,_0x3d84d7._0x462535,0x4c5)],'truncated':_0x43d477>0x0};}[_0x36273c(0x58a,0x689,0x583,0x6c9)](){const _0x46c509={_0x40b0dd:0x2dc,_0x4a52cf:0x2ba},_0x31e519={_0xb3a7d9:0x157,_0x5ed2dd:0x4},_0x179495={_0x3b39d2:0x1e3,_0x19bc51:0x162};function _0x471684(_0x1a74db,_0xc106c8,_0x2877e1,_0x2ab16b){return _0x19c96f(_0x1a74db-_0x179495._0x3b39d2,_0xc106c8-0x171,_0xc106c8,_0x1a74db-_0x179495._0x19bc51);}function _0x365cb5(_0x2fcd35,_0x277300,_0x129b41,_0x15fcf2){return _0x36273c(_0x2fcd35-_0x31e519._0xb3a7d9,_0x277300-_0x31e519._0x5ed2dd,_0x277300,_0x15fcf2- -0x5e0);}return[...this[_0x471684(0x278,_0x46c509._0x40b0dd,_0x46c509._0x4a52cf,0x3df)][_0x471684(0x23d,0x118,0x355,0x238)]()];}['kill'](_0xc978cc){const _0x3b617d={_0x49ab26:0x36d,_0x2ef580:0x5e,_0x2dc637:0x28,_0x5dbc86:0x340,_0x4c07f2:0x31c,_0x125eae:0x24f,_0x57992e:0x2c4,_0x2e9584:0x30a,_0x546430:0x45a,_0x1eb2a5:0x43d,_0x5c0ea1:0x3cb,_0x4d9565:0x7e,_0x469185:0x1ee,_0x19b5d1:0xf8,_0x3a7195:0x308,_0x2e9431:0x1d4,_0x13c875:0x8d,_0x8f9e36:0x21},_0x1b5440={_0x294424:0x148,_0x2e3ba7:0x102,_0x1291f2:0x232},_0xa7c174={_0x1fd7dd:0x185,_0x1ba1f3:0x4fc},_0x223ea0=this['entries']['get'](_0xc978cc);function _0x4dab85(_0x3b7240,_0x9a1e81,_0x36e0f4,_0x5b41a0){return _0x36273c(_0x3b7240-0x1c6,_0x9a1e81-_0xa7c174._0x1fd7dd,_0x36e0f4,_0x9a1e81- -_0xa7c174._0x1ba1f3);}if(!_0x223ea0)throw new ToolExecutionError(_0x5f225c(0x55c,_0x3b617d._0x49ab26,0x48f,0x396)+_0xc978cc,{'shellId':_0xc978cc});function _0x5f225c(_0x122bbe,_0x113200,_0x5d22b8,_0x3a4569){return _0x19c96f(_0x122bbe-_0x1b5440._0x294424,_0x113200-_0x1b5440._0x2e3ba7,_0x122bbe,_0x5d22b8-_0x1b5440._0x1291f2);}if(_0x223ea0[_0x4dab85(_0x3b617d._0x2ef580,-_0x3b617d._0x2dc637,0x29,-0xd6)]==='running'&&_0x223ea0[_0x4dab85(_0x3b617d._0x5dbc86,0x1cf,0x34c,_0x3b617d._0x4c07f2)]&&!_0x223ea0[_0x4dab85(0x27c,0x28d,_0x3b617d._0x125eae,0x1f0)]){_0x223ea0[_0x5f225c(0x2ff,_0x3b617d._0x57992e,0x301,_0x3b617d._0x2e9584)]=!![];try{killProcessGroup(_0x223ea0[_0x5f225c(_0x3b617d._0x546430,_0x3b617d._0x1eb2a5,_0x3b617d._0x5c0ea1,0x53a)],process[_0x4dab85(0x32e,0x1be,0x1ef,0x2d6)]===_0x4dab85(0x13c,_0x3b617d._0x4d9565,_0x3b617d._0x469185,-_0x3b617d._0x19b5d1));}catch{}}return{'status':_0x223ea0[_0x5f225c(_0x3b617d._0x3a7195,0x2df,_0x3b617d._0x2e9431,0x17f)],'exitCode':_0x223ea0[_0x4dab85(-_0x3b617d._0x13c875,0xb0,-_0x3b617d._0x8f9e36,0x1cd)],'signal':_0x223ea0['signal']};}async[_0x36273c(0x703,0x733,0x54e,0x5f2)](){const _0x34e350={_0x3d45c8:0x1fe,_0x15a262:0x2ef,_0x385e87:0x1fd,_0xa051cd:0x766,_0x1328fd:0x3ee,_0x112c67:0x5b2,_0x14991f:0x4b4,_0x55e9ec:0x4c4,_0x26f406:0x3f4,_0xa14983:0x52c,_0x160f50:0x27c},_0x2908ad={_0x340005:0xe4},_0x24cca9={_0x1e3cc1:0x1cf};function _0x48a712(_0x3f8fa1,_0x5b7fe2,_0x2c8361,_0x2b3e91){return _0x19c96f(_0x3f8fa1-0x3d,_0x5b7fe2-_0x24cca9._0x1e3cc1,_0x5b7fe2,_0x2b3e91-0x25b);}function _0x1e962c(_0x58f345,_0x31e5b1,_0x4c6140,_0x335d74){return _0x19c96f(_0x58f345-_0x2908ad._0x340005,_0x31e5b1-0xca,_0x58f345,_0x31e5b1-0x4ee);}for(const _0x49ad7a of this['entries']['values']()){if(_0x49ad7a[_0x48a712(_0x34e350._0x3d45c8,_0x34e350._0x15a262,0x319,_0x34e350._0x385e87)]===_0x1e962c(0x695,0x618,_0x34e350._0xa051cd,0x4d3)&&_0x49ad7a['child']&&!_0x49ad7a[_0x48a712(0x387,0x363,_0x34e350._0x1328fd,0x4b2)]){_0x49ad7a[_0x1e962c(_0x34e350._0x112c67,0x5bd,_0x34e350._0x14991f,0x5e6)]=!![];try{killProcessGroup(_0x49ad7a[_0x48a712(_0x34e350._0x55e9ec,0x571,0x37d,_0x34e350._0x26f406)],process[_0x1e962c(_0x34e350._0xa14983,0x676,0x6c4,0x579)]===_0x48a712(0x26b,0x347,_0x34e350._0x160f50,0x2a3));}catch{}}}}[_0x19c96f(0x1a2,0x191,0x199,0x86)](_0x4a6ff9,_0x43fe41){const _0x3dc73f={_0x541666:0x24,_0x243cf5:0x3e,_0x16b436:0x134,_0x32dc9f:0x12a,_0x18626b:0x60,_0x164f5d:0x76,_0x20dbf3:0x2fb,_0xc683e6:0x259,_0x12cef6:0x115,_0x55bdfb:0x8,_0x479cd1:0x101,_0x3a2203:0x3e9,_0x3aa78f:0x282,_0x13d017:0x188,_0x2f24ee:0x5a,_0xae43f4:0x9f,_0x1cd2a6:0x10,_0x2daa9a:0x2a0,_0xbe454b:0x1d9,_0xefc42b:0x25a,_0x412f49:0xc7,_0x44c7c3:0x10b,_0x5c1f7a:0x111,_0x22792a:0x1d1,_0x27cc19:0x9f,_0x3bdba0:0x54,_0x302e3b:0x21f,_0x44ee23:0x233,_0x337fe6:0x29,_0x1b3b3b:0x2d9,_0x2024fe:0x74,_0x320e9b:0x5b,_0x597902:0x3b,_0x7b5784:0x11f,_0x396a9d:0x7e,_0x4efeff:0x87,_0x1b4fb3:0x168,_0x407f92:0x109},_0x374840={_0x387201:0x3e,_0x501e8d:0xff,_0x660e8d:0x4b},_0x1ccbef={_0x278118:0x12e},_0x28796e=_0x4a6ff9[_0x5ae7cd(_0x3dc73f._0x541666,_0x3dc73f._0x243cf5,_0x3dc73f._0x16b436,-_0x3dc73f._0x32dc9f)]?stripAnsiAndControls(_0x43fe41):_0x43fe41;function _0x5035ea(_0x173b9b,_0xb71de6,_0x36b6b0,_0x3a5c68){return _0x19c96f(_0x173b9b-0x19a,_0xb71de6-0x13a,_0x173b9b,_0xb71de6- -_0x1ccbef._0x278118);}if(_0x28796e['length']===0x0)return;_0x4a6ff9[_0x5035ea(-0xd0,_0x3dc73f._0x18626b,-_0x3dc73f._0x164f5d,0xed)][_0x5ae7cd(_0x3dc73f._0x20dbf3,0x1de,0x267,0x1c6)](_0x28796e),_0x4a6ff9['bufferChars']+=_0x28796e['length'];function _0x5ae7cd(_0x4d62a8,_0x51235f,_0x54d8bb,_0x58faac){return _0x19c96f(_0x4d62a8-_0x374840._0x387201,_0x51235f-_0x374840._0x501e8d,_0x58faac,_0x51235f-_0x374840._0x660e8d);}_0x4a6ff9[_0x5ae7cd(_0x3dc73f._0xc683e6,_0x3dc73f._0x12cef6,_0x3dc73f._0x55bdfb,_0x3dc73f._0x479cd1)]+=_0x28796e[_0x5ae7cd(_0x3dc73f._0x3a2203,_0x3dc73f._0x3aa78f,_0x3dc73f._0x13d017,0x345)];while(_0x4a6ff9[_0x5ae7cd(0xdb,_0x3dc73f._0x2f24ee,-_0x3dc73f._0xae43f4,-_0x3dc73f._0x1cd2a6)]>this['capChars']){const _0x2898ae=_0x4a6ff9['bufferChars']-this[_0x5035ea(_0x3dc73f._0x2daa9a,0x12d,0x1fe,0x29b)],_0x44bc60=_0x4a6ff9[_0x5ae7cd(0x1ec,_0x3dc73f._0xbe454b,_0x3dc73f._0xefc42b,0x13c)][0x0];_0x44bc60['length']<=_0x2898ae?(_0x4a6ff9[_0x5035ea(_0x3dc73f._0x412f49,0x60,_0x3dc73f._0x44c7c3,-_0x3dc73f._0x5c1f7a)][_0x5035ea(-0xf5,-0x7f,-_0x3dc73f._0x22792a,-_0x3dc73f._0x27cc19)](),_0x4a6ff9[_0x5035ea(-0x23f,-0x11f,-_0x3dc73f._0x3bdba0,-_0x3dc73f._0x302e3b)]-=_0x44bc60['length'],_0x4a6ff9[_0x5035ea(-0xed,-0x168,-_0x3dc73f._0x44ee23,-_0x3dc73f._0x337fe6)]+=_0x44bc60[_0x5ae7cd(0x3c6,0x282,_0x3dc73f._0x1b3b3b,0x1b4)]):(_0x4a6ff9[_0x5ae7cd(_0x3dc73f._0x2024fe,0x1d9,_0x3dc73f._0x320e9b,0x355)][0x0]=_0x44bc60['slice'](_0x2898ae),_0x4a6ff9[_0x5035ea(-_0x3dc73f._0x597902,-_0x3dc73f._0x7b5784,-_0x3dc73f._0x396a9d,-0xe2)]-=_0x2898ae,_0x4a6ff9[_0x5035ea(-_0x3dc73f._0x4efeff,-_0x3dc73f._0x1b4fb3,-0x2c8,-_0x3dc73f._0x407f92)]+=_0x2898ae);}}[_0x19c96f(-0x1d,0x91,0x65,-0x44)](){const _0x4ea0d7={_0x429cdb:0x655,_0x1fd10f:0x5df,_0x55c5bd:0x6ed,_0x4458e5:0x7cd,_0x2906af:0x537,_0x2e80a7:0x67a,_0x18fbef:0x6ee,_0x2d2d96:0x45,_0x5cffbc:0x3e,_0xd7322:0x9d,_0x26e817:0x47,_0x26f5ed:0x6,_0x103012:0xe3,_0xd6e844:0x638,_0x88898f:0x68a,_0x3b684a:0x614},_0x1486d0={_0x45eb6b:0x8f},_0xff3fee={_0x5710f2:0x1b4,_0x1326cb:0x1b8};function _0x5af30d(_0x363a28,_0x6722f7,_0x8ce15b,_0x12104){return _0x19c96f(_0x363a28-_0xff3fee._0x5710f2,_0x6722f7-_0xff3fee._0x1326cb,_0x8ce15b,_0x12104- -0x85);}function _0x146a15(_0x2dcbf6,_0x598444,_0x4e9297,_0x153387){return _0x36273c(_0x2dcbf6-0x17b,_0x598444-_0x1486d0._0x45eb6b,_0x4e9297,_0x2dcbf6- -0x24);}if(this[_0x5af30d(0x25,-0x41,-0xa9,0x91)][_0x146a15(_0x4ea0d7._0x429cdb,_0x4ea0d7._0x1fd10f,_0x4ea0d7._0x55c5bd,_0x4ea0d7._0x4458e5)]<=this[_0x146a15(0x6a3,_0x4ea0d7._0x2906af,_0x4ea0d7._0x2e80a7,_0x4ea0d7._0x18fbef)])return;for(const [_0x5d9b11,_0x3bd179]of this[_0x5af30d(-_0x4ea0d7._0x2d2d96,_0x4ea0d7._0x5cffbc,0x1c7,0x91)]){if(_0x3bd179[_0x5af30d(_0x4ea0d7._0xd7322,_0x4ea0d7._0x26e817,_0x4ea0d7._0x26f5ed,-_0x4ea0d7._0x103012)]!==_0x146a15(_0x4ea0d7._0xd6e844,_0x4ea0d7._0x88898f,0x5e9,_0x4ea0d7._0x3b684a)){this['entries']['delete'](_0x5d9b11);return;}}}};function createBashOutputTool(_0x360944){const _0x2a9717={_0x473782:0x6d4,_0x635640:0x6f4,_0x5ef498:0x67d,_0xcee277:0x6d9,_0x5f4235:0x53b,_0x497ecd:0x528,_0x2f7a53:0x266,_0x3feeee:0x293,_0x5548e3:0x24c,_0x2c0471:0x2b5,_0x4b3fc7:0x4c4,_0xf521c4:0x5ad,_0x57437e:0x5fe,_0x2e890e:0x5ec},_0x3e41e8={_0x558513:0xea,_0x229ccd:0x129,_0x4addb5:0x1d3,_0x471f04:0x482,_0x394c3f:0x416,_0x5971d7:0x2e0,_0x46a6b0:0x338,_0xd88d8b:0x12e,_0x1b00c0:0x546,_0x307a32:0x516,_0xcfbf14:0x1b7,_0x54a21a:0x122,_0x16d5a4:0x275,_0x4e2a20:0x3ee,_0x12475f:0x1fd,_0x1ad07a:0x38c,_0x1b807c:0x319,_0x1adb42:0xd,_0x3071a3:0xdb,_0xca2c:0x2c,_0x3c1d3b:0x39f,_0x44d53c:0xe2,_0x2d1d82:0x356,_0x37d41c:0x22c},_0x14f3a9={_0x6cd03a:0x86,_0x4a2ee2:0x1b1,_0x177529:0x389},_0x421311={_0x49b9b3:0x78};function _0x16ef8e(_0x47b180,_0x26d2aa,_0x43cdca,_0x1d8942){return _0x36273c(_0x47b180-0xaa,_0x26d2aa-_0x421311._0x49b9b3,_0x26d2aa,_0x1d8942-0x21);}const {registry:_0xa88590}=_0x360944;function _0x4e3dd7(_0x2d0ed0,_0xc24b08,_0x41a186,_0x341de3){return _0x36273c(_0x2d0ed0-_0x14f3a9._0x6cd03a,_0xc24b08-_0x14f3a9._0x4a2ee2,_0x341de3,_0x41a186- -_0x14f3a9._0x177529);}return defineTool({'name':_0x16ef8e(_0x2a9717._0x473782,_0x2a9717._0x635640,_0x2a9717._0x5ef498,_0x2a9717._0xcee277),'description':_0x16ef8e(_0x2a9717._0x5f4235,0x497,0x540,_0x2a9717._0x497ecd),'inputSchema':{'type':_0x4e3dd7(0x108,0x3e2,_0x2a9717._0x2f7a53,_0x2a9717._0x3feeee),'properties':{'shellId':{'type':'string'},'regex':{'type':_0x4e3dd7(0x173,_0x2a9717._0x5548e3,_0x2a9717._0x2c0471,0x217)}},'required':[_0x16ef8e(_0x2a9717._0x4b3fc7,_0x2a9717._0xf521c4,_0x2a9717._0x57437e,_0x2a9717._0x2e890e)]},async *'execute'(_0x66a387){const _0x552218=_0xa88590[_0x172583(-_0x3e41e8._0x558513,-_0x3e41e8._0x229ccd,-_0x3e41e8._0x4addb5,-0x1ce)](_0x66a387[_0x33b319(_0x3e41e8._0x471f04,_0x3e41e8._0x394c3f,_0x3e41e8._0x5971d7,_0x3e41e8._0x46a6b0)],_0x66a387[_0x172583(_0x3e41e8._0xd88d8b,0x1b3,0x22a,0x7e)]?{'regex':_0x66a387[_0x33b319(0x3c4,0x485,_0x3e41e8._0x1b00c0,_0x3e41e8._0x307a32)]}:void 0x0);function _0x33b319(_0x336b52,_0x70eea4,_0x52ca18,_0xbe7b8e){return _0x16ef8e(_0x336b52-0x8b,_0x52ca18,_0x52ca18-0x1b6,_0xbe7b8e- -0x2b4);}function _0x172583(_0x51ac3b,_0xd5e051,_0x13e67e,_0x437f94){return _0x4e3dd7(_0x51ac3b-0x71,_0xd5e051-0x175,_0xd5e051- -0x26d,_0x437f94);}return createToolOutput(_0x552218['output'],{'shellId':_0x66a387['shellId'],'status':_0x552218[_0x172583(-_0x3e41e8._0xcfbf14,-_0x3e41e8._0x54a21a,-_0x3e41e8._0x16d5a4,-0x1f8)],'exitCode':_0x552218[_0x33b319(_0x3e41e8._0x4e2a20,_0x3e41e8._0x12475f,_0x3e41e8._0x1ad07a,_0x3e41e8._0x1b807c)],'signal':_0x552218[_0x172583(-_0x3e41e8._0x1adb42,-_0x3e41e8._0x3071a3,_0x3e41e8._0xca2c,-0x11d)],'truncated':_0x552218[_0x33b319(_0x3e41e8._0x3c1d3b,_0x3e41e8._0x44d53c,_0x3e41e8._0x2d1d82,_0x3e41e8._0x37d41c)]});}});}import{spawn as _0x247ade}from'child_process';import{statSync}from'fs';import*as _0x3b5486 from'os';import*as _0x4d87b3 from'path';import{StringDecoder as _0x390ecb}from'string_decoder';import{stat}from'fs/promises';import*as _0x474e68 from'path';function isPathInside(_0x2595ef,_0x14e87a){const _0x3755f0={_0x27f077:0x406,_0x15916f:0x319,_0x128ee0:0x430},_0x229c7b={_0x141328:0xc4,_0x4aee17:0x390},_0x49fb2f={_0x575f25:0x19e},_0x35e8cd=_0x474e68[_0x42d7ad(0x2d9,0x515,_0x3755f0._0x27f077,0x4eb)](_0x2595ef);function _0x42d7ad(_0x5a63a0,_0x3cc622,_0x33e212,_0x2c3919){return _0x36273c(_0x5a63a0-0x103,_0x3cc622-0x5e,_0x5a63a0,_0x33e212- -_0x49fb2f._0x575f25);}function _0xd6d846(_0x1142ff,_0xe7b605,_0x561432,_0x1a47c8){return _0x19c96f(_0x1142ff-0x19b,_0xe7b605-_0x229c7b._0x141328,_0x561432,_0x1142ff-_0x229c7b._0x4aee17);}const _0x266cbb=_0x474e68[_0xd6d846(_0x3755f0._0x15916f,0x407,0x397,0x25c)](_0x35e8cd,_0x14e87a);return _0x266cbb===''||!_0x266cbb['startsWith']('..')&&!_0x474e68[_0x42d7ad(_0x3755f0._0x128ee0,0x1e6,0x33d,0x242)](_0x266cbb);}function resolveWorkspacePath(_0x55a735,_0x3ddff8){return resolveAllowedPath(_0x55a735,[],_0x3ddff8);}function resolveAllowedPath(_0x535000,_0x30151d,_0x2eab1e){const _0xbf5cf0={_0x2cbf0e:0x1ff,_0x4f0cff:0x25b,_0x42f054:0x2cb,_0x147184:0x230,_0x4f57f0:0x189,_0x2b2e6b:0xed},_0xa7c5a7={_0x25c1f8:0xc1,_0x5444b9:0x187},_0x2c004d={_0x59edbf:0x1d5,_0x593111:0x3a5},_0x33faff=_0x474e68[_0x2b1449(0x169,0x281,_0xbf5cf0._0x2cbf0e,0x2e2)](_0x535000);function _0x2b1449(_0x52e274,_0x111bd4,_0x35440d,_0x337af5){return _0x36273c(_0x52e274-0x1d7,_0x111bd4-_0x2c004d._0x59edbf,_0x52e274,_0x35440d- -_0x2c004d._0x593111);}const _0x22107b=_0x474e68[_0x2b1449(0x157,0x35b,0x1ff,_0xbf5cf0._0x4f0cff)](_0x33faff,_0x2eab1e),_0x33bbbc=[_0x33faff,..._0x30151d[_0x3ec059(-0x8b,0xe4,-0x10c,-0x13)](_0xc2b5e2=>_0x474e68[_0x2b1449(0x10c,0x309,0x1ff,0x247)](_0xc2b5e2))];if(_0x33bbbc[_0x2b1449(_0xbf5cf0._0x42f054,0x254,0x29e,_0xbf5cf0._0x147184)](_0xc920d3=>isPathInside(_0xc920d3,_0x22107b)))return _0x22107b;function _0x3ec059(_0x23987c,_0x430a64,_0x21ee92,_0x27a352){return _0x36273c(_0x23987c-_0xa7c5a7._0x25c1f8,_0x430a64-_0xa7c5a7._0x5444b9,_0x27a352,_0x23987c- -0x682);}throw new ToolExecutionError(_0x2b1449(_0xbf5cf0._0x4f57f0,_0xbf5cf0._0x2b2e6b,0x1f4,0xe1)+_0x2eab1e,{'path':_0x2eab1e,'rootDir':_0x33faff,'allowedDirs':_0x33bbbc});}async function assertWorkspaceFile(_0x1cf4a1){const _0x4158e7={_0x2f74bd:0x38d,_0x596df2:0x345,_0x1c2ac0:0x369},_0x533dc5={_0x30ce58:0xb6,_0x22c955:0x188};function _0x4fe769(_0x52d424,_0x26b824,_0x5a24dd,_0x4061d9){return _0x36273c(_0x52d424-0x11d,_0x26b824-0x8c,_0x5a24dd,_0x4061d9- -0x43f);}function _0x33c65d(_0x56dff5,_0x5556c6,_0x32fe26,_0x2aaaee){return _0x36273c(_0x56dff5-_0x533dc5._0x30ce58,_0x5556c6-_0x533dc5._0x22c955,_0x32fe26,_0x2aaaee- -0x157);}const _0x1bfd38=await stat(_0x1cf4a1);if(!_0x1bfd38[_0x33c65d(_0x4158e7._0x2f74bd,0x4db,_0x4158e7._0x596df2,0x409)]())throw new ToolExecutionError(_0x33c65d(_0x4158e7._0x1c2ac0,0x3ba,0x33e,0x452)+_0x1cf4a1,{'path':_0x1cf4a1});}function isProbablyBinary(_0x133363){const _0x2ff9be={_0x4b295a:0x1b0,_0x2c88c5:0x1e8,_0x2d726e:0x5df};function _0x35c393(_0x2ab68f,_0x427633,_0x32ed25,_0x2f07d0){return _0x36273c(_0x2ab68f-_0x2ff9be._0x4b295a,_0x427633-_0x2ff9be._0x2c88c5,_0x2ab68f,_0x32ed25- -_0x2ff9be._0x2d726e);}return _0x133363[_0x35c393(0x176,-0xc8,0xaa,0xc2)](0x0);}var DEFAULT_DESCRIPTION=_0x36273c(0x535,0x532,0x6ac,0x5f0),DEFAULT_TIMEOUT_MS=0x7530;function buildChildEnv(_0xc92609,_0x33fbed){const _0x1ccedf={_0x176a6e:0x363,_0x20dadb:0x267,_0x2e66aa:0x2af,_0x51786c:0x298,_0x149943:0x96,_0x29f091:0xef,_0x4de35b:0x7b,_0x4c63ba:0xb6,_0xdde276:0x81,_0x54c0bc:0x84,_0x234b47:0x1e1,_0x51fc78:0x131,_0x15a5e2:0x259,_0x43267c:0x1a2,_0x4a8f66:0x117,_0xe43c7a:0x12,_0x32c419:0x142,_0x5c651e:0xca},_0x998774={_0x2c463e:0x71},_0x2454c3={...process[_0x54e1b4(_0x1ccedf._0x176a6e,_0x1ccedf._0x20dadb,_0x1ccedf._0x2e66aa,_0x1ccedf._0x51786c)],..._0xc92609??{}};function _0x54e1b4(_0x45881c,_0xca42b9,_0x5bc967,_0x32ca66){return _0x19c96f(_0x45881c-0x2f,_0xca42b9-0xf1,_0x5bc967,_0xca42b9-_0x998774._0x2c463e);}if(_0x33fbed['length']===0x0)return _0x2454c3;if(_0x3b5486[_0x4bcfea(_0x1ccedf._0x149943,_0x1ccedf._0x29f091,0x55,-0xb)]()===_0x54e1b4(0x7,0xb9,0x1c9,_0x1ccedf._0x4de35b)){const _0x2a5db4=new Set(_0x33fbed[_0x4bcfea(-0x2d,_0x1ccedf._0x4c63ba,_0x1ccedf._0xdde276,-0xad)](_0x5647b8=>_0x5647b8[_0x4bcfea(-0x175,-0x209,-0x286,-0x2f4)]()));for(const _0x4b6e0e of Object[_0x4bcfea(_0x1ccedf._0x54c0bc,0x205,_0x1ccedf._0x234b47,_0x1ccedf._0x51fc78)](_0x2454c3)){if(_0x2a5db4[_0x4bcfea(-0x119,-_0x1ccedf._0x15a5e2,-_0x1ccedf._0x43267c,-0xe)](_0x4b6e0e[_0x54e1b4(-_0x1ccedf._0x4a8f66,-_0x1ccedf._0xe43c7a,_0x1ccedf._0x32c419,-_0x1ccedf._0x5c651e)]()))delete _0x2454c3[_0x4b6e0e];}}else{for(const _0x4d42d6 of _0x33fbed)delete _0x2454c3[_0x4d42d6];}function _0x4bcfea(_0x11326d,_0x50f4a1,_0x3f3df7,_0x14bbf4){return _0x36273c(_0x11326d-0x1a1,_0x50f4a1-0x1a,_0x50f4a1,_0x11326d- -0x624);}return _0x2454c3;}function mapSpawnError(_0xce4f59,_0x243da3){const _0x459746={_0x257e6b:0x26,_0x149d00:0xdb,_0x117248:0x107,_0x1f1967:0x118},_0x1af57d={_0x396a96:0x1b6},_0x1fe240={_0x35f7a1:0xdc,_0x2a3a46:0x1de};function _0xd2e7ba(_0x21fd9d,_0x494e04,_0x4e5b46,_0x4d53d6){return _0x19c96f(_0x21fd9d-_0x1fe240._0x35f7a1,_0x494e04-_0x1fe240._0x2a3a46,_0x4d53d6,_0x494e04- -0x10a);}if(isErrnoException(_0xce4f59)&&_0xce4f59['code']==='ENOENT')return new ToolExecutionError(_0xd2e7ba(-_0x459746._0x257e6b,-_0x459746._0x149d00,-0x9,-_0x459746._0x117248)+_0x243da3['shellPath'],_0x243da3);function _0x4454f1(_0x458344,_0x3ee8a5,_0x2aa8d2,_0x58a5d6){return _0x36273c(_0x458344-_0x1af57d._0x396a96,_0x3ee8a5-0x13e,_0x458344,_0x3ee8a5-0x21);}return new ToolExecutionError(_0xce4f59 instanceof Error?_0xce4f59[_0xd2e7ba(_0x459746._0x1f1967,-0x56,0x18,0xad)]:String(_0xce4f59),_0x243da3);}function shellExists(_0x4db09b){const _0x37b8fd={_0x1750c5:0x160,_0x925c50:0x8,_0x9612c7:0x24},_0x236a2b={_0x5571c1:0x1a5},_0x36f806={_0x4a5585:0x13d,_0x229925:0x5a5};function _0x5acf9d(_0xac5832,_0x376fe7,_0x465357,_0x14710f){return _0x36273c(_0xac5832-_0x36f806._0x4a5585,_0x376fe7-0xe8,_0x376fe7,_0xac5832- -_0x36f806._0x229925);}function _0x906aba(_0x5096ba,_0x3afe30,_0x1677b6,_0x1b9520){return _0x19c96f(_0x5096ba-_0x236a2b._0x5571c1,_0x3afe30-0x3c,_0x3afe30,_0x1b9520- -0xca);}try{const _0x52bb44=statSync(_0x4db09b);return _0x52bb44[_0x906aba(0x39,-_0x37b8fd._0x1750c5,-_0x37b8fd._0x925c50,-0x9c)]()&&(_0x52bb44[_0x906aba(_0x37b8fd._0x9612c7,-0x18e,-0x188,-0xec)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x5659ff){const _0xf231ce={_0x4815e3:0x255,_0x4a2a58:0x10f,_0x478056:0x504,_0x3eb611:0x551,_0x3e73bc:0x167,_0x4b8633:0x109,_0x3b2315:0x157,_0x3e487e:0x258,_0x287c1e:0xdf,_0x1295b6:0x290,_0x239cae:0xc6,_0x292678:0x1e4,_0x4b788f:0x41,_0x1fd4e0:0x25c,_0x2474cb:0x38e,_0x3f6f47:0x484,_0x5f9e9:0x395,_0x420f08:0x12,_0x440cb0:0x140,_0x59351f:0x163},_0x7a0045={_0x3dd215:0x8b},_0x34f2bf={_0x3438a0:0x111,_0xc6920d:0x1d7};if(_0x5659ff)return _0x5659ff;function _0x43a7b9(_0x3da5e8,_0x5f3590,_0x426bcb,_0x581317){return _0x19c96f(_0x3da5e8-_0x34f2bf._0x3438a0,_0x5f3590-_0x34f2bf._0xc6920d,_0x3da5e8,_0x581317- -0x157);}if(_0x3b5486['platform']()===_0x43a7b9(-0xc2,-0xc,-_0xf231ce._0x4815e3,-_0xf231ce._0x4a2a58))return process[_0xe53a39(0x48e,_0xf231ce._0x478056,_0xf231ce._0x3eb611,0x3e6)][_0x43a7b9(_0xf231ce._0x3e73bc,_0xf231ce._0x4b8633,0x15b,0x6f)]||_0x43a7b9(0x25e,_0xf231ce._0x3b2315,_0xf231ce._0x3e487e,_0xf231ce._0x287c1e);const _0x306f0f=[_0xe53a39(0x144,_0xf231ce._0x1295b6,_0xf231ce._0x239cae,_0xf231ce._0x292678),_0x43a7b9(-0x2d5,-_0xf231ce._0x4b788f,-0x212,-0x189),_0xe53a39(0x482,0x3cf,_0xf231ce._0x1fd4e0,0x37b),'/usr/bin/sh'];for(const _0x40ea2c of _0x306f0f){if(shellExists(_0x40ea2c))return _0x40ea2c;}function _0xe53a39(_0x4d7701,_0x45f4de,_0x93a7ef,_0x18622d){return _0x19c96f(_0x4d7701-_0x7a0045._0x3dd215,_0x45f4de-0x1c5,_0x4d7701,_0x18622d-0x1f0);}const _0x469618=process[_0xe53a39(_0xf231ce._0x2474cb,0x498,_0xf231ce._0x3f6f47,0x3e6)][_0xe53a39(_0xf231ce._0x5f9e9,0x2a6,0x19e,0x2ed)];if(_0x469618&&shellExists(_0x469618))return _0x469618;return _0x43a7b9(-0xce,-_0xf231ce._0x420f08,-_0xf231ce._0x440cb0,-_0xf231ce._0x59351f);}function buildShellArgs(_0x535602,_0x208560){const _0x47c9e8={_0x10bce5:0x18e,_0x3aa2ea:0x18f,_0x272d8d:0x1a8,_0x3969dc:0xa0,_0x1ae224:0x1d,_0x5d27da:0x60,_0x3a94c7:0x23e,_0x33f504:0xc8,_0x27089f:0x208,_0x2d958d:0x102,_0x4ce2c0:0x2c},_0x2a0636={_0x37a521:0x83,_0x346127:0x1cd},_0x279763={_0x3018c8:0x49,_0xee4f74:0x1e3};function _0x15f60f(_0x4c0ffa,_0x431d00,_0x426efb,_0x5c5ec4){return _0x36273c(_0x4c0ffa-_0x279763._0x3018c8,_0x431d00-_0x279763._0xee4f74,_0x431d00,_0x4c0ffa- -0x44d);}function _0x3277e6(_0x2193eb,_0x40cac,_0x1d87cf,_0x456a5a){return _0x19c96f(_0x2193eb-0x1e3,_0x40cac-_0x2a0636._0x37a521,_0x1d87cf,_0x456a5a- -_0x2a0636._0x346127);}if(_0x3b5486[_0x15f60f(0x26d,_0x47c9e8._0x10bce5,_0x47c9e8._0x3aa2ea,_0x47c9e8._0x272d8d)]()==='win32'){const _0x27d2fa=/cmd(\.exe)?$/i[_0x15f60f(_0x47c9e8._0x3969dc,-_0x47c9e8._0x1ae224,-_0x47c9e8._0x5d27da,0xf9)](_0x208560);return _0x27d2fa?['/d','/s','/c',_0x535602]:[_0x3277e6(-0x153,-_0x47c9e8._0x3a94c7,-_0x47c9e8._0x33f504,-0x247),_0x15f60f(_0x47c9e8._0x27089f,0x1d0,0x388,_0x47c9e8._0x2d958d),_0x15f60f(0x11c,0x1d0,-_0x47c9e8._0x4ce2c0,0x1d7),_0x535602];}return['-c',_0x535602];}function resolveWorkingDirectory(_0x14bf32,_0x240f5a,_0x220e24){const _0x23ad4d={_0x19cd2a:0x4a8,_0x772123:0x1c9,_0x5dd02d:0x2f9,_0x2d2fd3:0x2be},_0x257eb1={_0x239435:0x111,_0x792e55:0x370},_0x487545={_0x18902c:0x1ad};function _0x25c568(_0x3827e7,_0x4975dc,_0x34dec6,_0x28142a){return _0x36273c(_0x3827e7-_0x487545._0x18902c,_0x4975dc-0x106,_0x3827e7,_0x34dec6- -0x49);}const _0x40026f=resolveAllowedPath(_0x240f5a,_0x220e24,_0x14bf32??'.');function _0x5e5c3c(_0x3c7972,_0x3e6d53,_0x54b538,_0xa7a00){return _0x36273c(_0x3c7972-0x1e9,_0x3e6d53-_0x257eb1._0x239435,_0x3c7972,_0x54b538- -_0x257eb1._0x792e55);}try{const _0x5285a9=statSync(_0x40026f);if(!_0x5285a9[_0x25c568(0x501,_0x23ad4d._0x19cd2a,0x514,0x584)]())throw new ToolExecutionError(_0x5e5c3c(_0x23ad4d._0x772123,_0x23ad4d._0x5dd02d,_0x23ad4d._0x2d2fd3,0x417)+_0x40026f,{'cwd':_0x40026f});return _0x40026f;}catch(_0xbd1374){if(_0xbd1374 instanceof ToolExecutionError)throw _0xbd1374;throw new ToolExecutionError(_0x25c568(0x83c,0x841,0x727,0x5cc)+_0x40026f,{'cwd':_0x40026f});}}function appendChunk(_0x2eca88,_0x4d89dd,_0x432673,_0x331f8d,_0x2b1dfd){const _0x445e8f={_0x4a4a99:0x4e4,_0x58398c:0x440},_0x34dad6={_0x1bc287:0x87,_0x1f9ceb:0x1b},_0x1c868a={_0x2731f2:0x78,_0x1035d5:0x37};function _0x430d99(_0x48abe8,_0x2d80cd,_0xb0b1f0,_0x4b63d){return _0x19c96f(_0x48abe8-_0x1c868a._0x2731f2,_0x2d80cd-_0x1c868a._0x1035d5,_0x48abe8,_0x2d80cd-0x2ad);}const _0x44aa96=_0x331f8d?stripAnsiAndControls(_0x432673):_0x432673;function _0x316cff(_0x271f28,_0x5394b4,_0x33cc4e,_0x42b8c1){return _0x19c96f(_0x271f28-_0x34dad6._0x1bc287,_0x5394b4-_0x34dad6._0x1f9ceb,_0x33cc4e,_0x5394b4-0x20b);}if(_0x44aa96[_0x430d99(0x657,_0x445e8f._0x4a4a99,0x430,0x44f)]===0x0)return;_0x2eca88['push'](_0x44aa96),_0x4d89dd[_0x430d99(0x4cc,_0x445e8f._0x58398c,0x405,0x3ec)](_0x44aa96),_0x2b1dfd();}function createBashTool(_0x4709d8={}){const _0x4ca3e0={_0x46bee9:0x3b,_0x5d25f1:0x1bf,_0x2ffdbd:0x45f,_0x4cc340:0x412,_0x31373f:0x315,_0x5d1565:0x106,_0x305b18:0x2ce,_0x39e71a:0x1e6,_0x1c7ff2:0x3e,_0x390929:0x6b,_0x27c42d:0x43e,_0x1d815d:0x396,_0x793e29:0x46e,_0x5acd54:0x17c,_0x3641b1:0x2b0,_0x22d537:0x24d,_0x1efb61:0x3e2,_0x49d4fe:0x2ff,_0x2366d3:0x28,_0x4438a8:0x69,_0x116a04:0x3e,_0x115aba:0x18a,_0x101193:0x2e8,_0x318a37:0x17f,_0x546547:0x18c},_0x500cce={_0x2569a1:0xee,_0x138767:0x12f,_0xcb08ee:0x8e,_0x428274:0x22,_0x46698a:0x17f,_0x27a2d9:0x1a1,_0x4fabce:0x1ab,_0x34c937:0x4ae,_0x555ca3:0x578,_0x14b255:0xb3,_0x212a30:0xdb,_0x2815a2:0x319,_0x22ff14:0x4d8,_0x18efa6:0x59b,_0x470408:0x6cf,_0x3b23a1:0x109,_0x2eb17f:0xae,_0x18010f:0x28,_0x4b7b05:0x329,_0x199b39:0x35e,_0x507c13:0x27f,_0x1e9d01:0x559,_0x2ea5f9:0x460,_0x5b0b22:0x279,_0x3fcd35:0x2fd,_0x4f7357:0x405,_0x3fb439:0x26c,_0x5737be:0x304,_0x491480:0x68,_0x23b188:0x165,_0x11bc64:0x20a,_0x4f2abb:0x658,_0x34c5c4:0x5ae,_0x75c502:0x5af,_0x43218c:0x6b8,_0xf36f8:0x9c,_0x5925be:0x87,_0x34945d:0x6c,_0x15516b:0x27,_0x24a5ab:0x18d,_0x475338:0x5d,_0xc3f88c:0x48d,_0x1699c5:0x5ae,_0x1fb31f:0x48d,_0x5c1d35:0x68c,_0x3c71e7:0x5fa,_0x429ccb:0x69d,_0xae5dc6:0x55f,_0x17e650:0x668,_0x4d665a:0x487,_0x308be9:0x64c,_0x5a0ef5:0x57e,_0xadd061:0x39a,_0x1be47d:0x275,_0x6e90cf:0x41a,_0x2d9afe:0x31b,_0x11765c:0x41a,_0xb27a16:0x2fd,_0x44f274:0x37d,_0x5d16c7:0xfc,_0x156e15:0x92,_0x34e424:0x2e0,_0xbc30c7:0x3d1,_0x183c22:0x4fb,_0x269766:0x1a6,_0x2facef:0x266,_0x3125cd:0x3a4,_0x50d41a:0x3da,_0x39ca10:0x50c,_0x2c6251:0x3ac,_0x2622a4:0x2f1,_0x53c1b7:0x2ab,_0x35dd65:0x2c0,_0x32ce4e:0x55a,_0x1bc27d:0x41a,_0x45ac36:0x4a9,_0x5d0fcf:0x40,_0x24dd6a:0x77,_0x5abfcb:0xd3,_0x474972:0xac,_0x252dce:0x194,_0x3d62cc:0x289,_0x309f56:0x38e,_0x275d60:0x449,_0x35f712:0x1f2,_0x3d3226:0x354,_0x40275c:0x13d,_0x245bb3:0xf8,_0x1ffd46:0x341,_0x4cf370:0x364,_0x3836e2:0x2c0,_0x1a545b:0x44e,_0x11d90f:0x2ec,_0x24ab3d:0x14,_0x579bb1:0xf8,_0x21367f:0x266,_0x13917c:0x286,_0x3ff81d:0x3d4,_0x1b91ad:0x213,_0x5ab218:0x295,_0x369f9e:0x3da,_0x218d7d:0x25d,_0x3c2183:0x3bc,_0x37bac5:0x1c5,_0x232ce9:0x347,_0xa6956a:0x2cc},_0x39d801={_0x3313af:0x82f,_0x4ff338:0x527,_0x4b700c:0x48b,_0x1ee778:0x7b4,_0xb0200c:0x4a1,_0x442801:0x59a,_0x3ef77a:0x4ce},_0x4691ec={_0x3414c6:0x9,_0x1c9f64:0xe,_0x2c53c5:0x2ab},_0x506cec={_0x4f3608:0x3fd,_0x516984:0x359,_0x35f8ae:0x284,_0x748d2e:0x1d6},_0xfe0cf6={_0x133ee1:0x47f,_0x2a61e3:0x495,_0x1ceb33:0x5ba},_0x58aa09={_0x437771:0x79e,_0x37663f:0x7d9},_0x50b811={_0x11daf9:0x2c},_0x41f460={_0xdffda4:0x41},_0x133e2b={_0x29274e:0xc5,_0x3f9386:0xf0},_0x1c8d2b=_0x4d87b3[_0x5edb9e(-0x86,_0x4ca3e0._0x46bee9,_0x4ca3e0._0x5d25f1,0xb3)](_0x4709d8[_0xb53d9d(0x2d6,0x53c,_0x4ca3e0._0x2ffdbd,0x425)]??process[_0xb53d9d(0x1f8,_0x4ca3e0._0x4cc340,0x1bb,_0x4ca3e0._0x31373f)]()),_0x21b969=(_0x4709d8['allowedDirs']??[])[_0x5edb9e(0xa5,0x233,0x15,_0x4ca3e0._0x5d1565)](_0xcca0e3=>_0x4d87b3[_0x5edb9e(-0x6d,0x87,0x83,0xb3)](_0xcca0e3)),_0x1c2d57=_0x4709d8['defaultTimeoutMs']??DEFAULT_TIMEOUT_MS,_0x81f71c=_0x4709d8[_0xb53d9d(_0x4ca3e0._0x305b18,0x2a2,0xd8,_0x4ca3e0._0x39e71a)]??!![];function _0xb53d9d(_0x4f3b44,_0xb314a1,_0x120985,_0x5c03e5){return _0x19c96f(_0x4f3b44-_0x133e2b._0x29274e,_0xb314a1-_0x133e2b._0x3f9386,_0xb314a1,_0x5c03e5-0x1f3);}const _0x218450=_0x4709d8[_0x5edb9e(_0x4ca3e0._0x1c7ff2,-_0x4ca3e0._0x390929,0xd9,0x23)]??'Bash',_0x9d4a4e=_0x4709d8[_0xb53d9d(_0x4ca3e0._0x27c42d,_0x4ca3e0._0x1d815d,_0x4ca3e0._0x793e29,0x3ad)]??[];function _0x5edb9e(_0xc94cd1,_0x1138a0,_0x157de4,_0x319b16){return _0x19c96f(_0xc94cd1-0x13,_0x1138a0-0xce,_0x157de4,_0x319b16-_0x41f460._0xdffda4);}const _0x58faec=_0x4709d8['backgroundRegistry'];return defineTool({'name':_0x218450,'description':_0x4709d8['description']??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0xb53d9d(0x26d,0x255,_0x4ca3e0._0x5acd54,_0x4ca3e0._0x3641b1),'properties':{'command':{'type':'string'},'cwd':{'type':_0xb53d9d(_0x4ca3e0._0x22d537,_0x4ca3e0._0x1efb61,0x301,_0x4ca3e0._0x49d4fe)},'timeoutMs':{'type':_0x5edb9e(-0x32,-_0x4ca3e0._0x2366d3,0xe,-0xc)},'ignoreOutput':{'type':_0x5edb9e(_0x4ca3e0._0x4438a8,_0x4ca3e0._0x116a04,0x261,_0x4ca3e0._0x115aba)},'runInBackground':{'type':_0xb53d9d(0x2b8,_0x4ca3e0._0x101193,0x378,0x33c)}},'required':[_0xb53d9d(0x23a,_0x4ca3e0._0x318a37,0x2ef,_0x4ca3e0._0x546547)]},async *'execute'(_0xac4a8b,_0xe038b6){const _0x4e7618={_0x58187e:0x1c2},_0xfdfc2={_0x5016a3:0xa5},_0x41545e={_0x1d9dc4:0x181},_0x28a5bb={_0x3a75cd:0x14b},_0x21bb20={_0x58b456:0x38,_0x115362:0x48},_0x392d5e=_0xac4a8b[_0x302b9a(0x1ba,_0x500cce._0x2569a1,_0x500cce._0x138767,0x5a)]??_0x1c2d57;function _0x30e658(_0x1d219a,_0x535da8,_0x4645fe,_0x30af24){return _0xb53d9d(_0x1d219a-0xe3,_0x1d219a,_0x4645fe-_0x50b811._0x11daf9,_0x535da8-0x178);}if(!Number['isFinite'](_0x392d5e)||_0x392d5e<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0xac4a8b[_0x302b9a(-0x63,_0x500cce._0xcb08ee,0x11d,_0x500cce._0x428274)]});throwIfAborted(_0xe038b6[_0x302b9a(-0xf5,0x17c,_0x500cce._0x46698a,0x72)]);function _0x302b9a(_0x8988e7,_0x2e8eeb,_0x1ce301,_0x272fe7){return _0x5edb9e(_0x8988e7-0x9d,_0x2e8eeb-_0x21bb20._0x58b456,_0x1ce301,_0x272fe7-_0x21bb20._0x115362);}const _0x19b675=resolveWorkingDirectory(_0xac4a8b[_0x302b9a(_0x500cce._0x27a2d9,0x120,0x241,_0x500cce._0x4fabce)],_0x1c8d2b,_0x21b969),_0x5ed736=_0xac4a8b[_0x30e658(_0x500cce._0x34c937,0x5c7,0x591,_0x500cce._0x555ca3)]??![],_0x539bf0=resolveDefaultShell(_0x4709d8['shellPath']),_0x404d93=buildShellArgs(_0xac4a8b[_0x302b9a(0x7d,-_0x500cce._0x14b255,_0x500cce._0x212a30,_0x500cce._0x428274)],_0x539bf0),_0x48ef7b=_0x3b5486[_0x30e658(0x4e2,0x4f3,0x48a,0x527)]()==='win32';if(_0xac4a8b[_0x302b9a(_0x500cce._0x2815a2,0x35e,0x3c6,0x269)]){if(!_0x58faec)throw new ToolExecutionError(_0x30e658(_0x500cce._0x22ff14,_0x500cce._0x18efa6,_0x500cce._0x470408,0x71d),{'command':_0xac4a8b[_0x302b9a(_0x500cce._0x3b23a1,_0x500cce._0x2eb17f,-_0x500cce._0x18010f,_0x500cce._0x428274)]});throwIfAborted(_0xe038b6[_0x30e658(0x2c7,0x354,0x498,0x32d)]);let _0xa7ff6a;try{_0xa7ff6a=_0x247ade(_0x539bf0,_0x404d93,{'cwd':_0x19b675,'env':buildChildEnv(_0x4709d8[_0x302b9a(_0x500cce._0x4b7b05,_0x500cce._0x199b39,0x1ef,_0x500cce._0x507c13)],_0x9d4a4e),'stdio':[_0x30e658(0x6c1,0x55f,_0x500cce._0x1e9d01,_0x500cce._0x2ea5f9),_0x30e658(_0x500cce._0x5b0b22,_0x500cce._0x3fcd35,0x3f1,_0x500cce._0x4f7357),'pipe'],'shell':![],'windowsHide':!![],'detached':!_0x48ef7b});}catch(_0x13e4aa){throw mapSpawnError(_0x13e4aa,{'command':_0xac4a8b[_0x30e658(0x318,0x304,0x3b4,0x308)],'cwd':_0x19b675,'shellPath':_0x539bf0});}let _0x32a75b;try{_0x32a75b=_0x58faec['spawn']({'child':_0xa7ff6a,'command':_0xac4a8b[_0x30e658(_0x500cce._0x3fb439,_0x500cce._0x5737be,0x3df,0x226)],'cwd':_0x19b675,'stripAnsi':_0x81f71c});}catch(_0x5c970f){_0xa7ff6a['once']('error',()=>{});try{killProcessGroup(_0xa7ff6a,_0x48ef7b);}catch{}throw _0x5c970f;}return createToolOutput(_0x302b9a(_0x500cce._0x491480,-0x179,_0x500cce._0x23b188,0x5)+_0x32a75b['shellId']+_0x302b9a(0x262,0x173,0xc7,_0x500cce._0x11bc64)+(_0x32a75b[_0x30e658(_0x500cce._0x4f2abb,_0x500cce._0x34c5c4,_0x500cce._0x75c502,_0x500cce._0x43218c)]??'?')+_0x302b9a(_0x500cce._0xf36f8,_0x500cce._0x5925be,0x3f,_0x500cce._0x34945d),{'shellId':_0x32a75b[_0x302b9a(0x111,0x1d,-0x1a,0x122)],'status':_0x32a75b['status'],'command':_0x32a75b[_0x302b9a(-_0x500cce._0x15516b,_0x500cce._0x24a5ab,_0x500cce._0x475338,0x22)],'cwd':_0x32a75b[_0x30e658(0x48e,_0x500cce._0xc3f88c,0x32c,0x36f)],'pid':_0x32a75b[_0x30e658(0x69c,_0x500cce._0x1699c5,_0x500cce._0x1fb31f,0x6c0)]??null});}let _0xaab48d;try{_0xaab48d=_0x247ade(_0x539bf0,_0x404d93,{'cwd':_0x19b675,'env':buildChildEnv(_0x4709d8[_0x30e658(0x479,0x561,_0x500cce._0x5c1d35,_0x500cce._0x3c71e7)],_0x9d4a4e),'stdio':_0x5ed736?[_0x30e658(_0x500cce._0x429ccb,_0x500cce._0xae5dc6,_0x500cce._0x17e650,_0x500cce._0x4d665a),_0x30e658(_0x500cce._0x308be9,0x55f,0x4c7,_0x500cce._0x5a0ef5),_0x302b9a(_0x500cce._0xadd061,_0x500cce._0x1be47d,0x181,0x27d)]:['ignore',_0x30e658(_0x500cce._0x6e90cf,_0x500cce._0x3fcd35,_0x500cce._0x2d9afe,_0x500cce._0x11765c),_0x30e658(0x45c,_0x500cce._0xb27a16,0x3f5,_0x500cce._0x44f274)],'shell':![],'windowsHide':!![],'detached':!_0x48ef7b});}catch(_0x373550){throw mapSpawnError(_0x373550,{'command':_0xac4a8b[_0x302b9a(-0xd4,-0xe7,_0x500cce._0x5d16c7,0x22)],'cwd':_0x19b675,'shellPath':_0x539bf0});}const _0x4fac8b=[],_0x352ac6=[],_0x3603e8=new _0x390ecb(_0x302b9a(_0x500cce._0x156e15,_0x500cce._0x34e424,0x33e,0x1ed)),_0x44e324=new _0x390ecb('utf8');let _0x4136a3,_0x58075a=![],_0x2962f1;const _0x19a23a=()=>{if(!_0x4136a3)return;const _0x3d2d67=_0x4136a3;_0x4136a3=void 0x0,_0x3d2d67();},_0xa85f32=async()=>{const _0x23f1fb={_0x263246:0x12d,_0x498788:0x26,_0x2d8799:0x1df};function _0xfdadbf(_0x14de97,_0x3ba576,_0x22fa0c,_0x3f3d15){return _0x30e658(_0x22fa0c,_0x3f3d15-_0x23f1fb._0x263246,_0x22fa0c-_0x23f1fb._0x498788,_0x3f3d15-_0x23f1fb._0x2d8799);}if(_0x352ac6[_0xfdadbf(0x5cb,_0x58aa09._0x437771,_0x58aa09._0x37663f,0x6cf)]>0x0||_0x58075a)return;await new Promise(_0x4962f6=>{_0x4136a3=_0x4962f6;});},_0x4e9939=_0x5ae54a=>{function _0x38a4cc(_0x497403,_0x45fc79,_0x35a9d3,_0x7d95c4){return _0x30e658(_0x45fc79,_0x35a9d3-0x29,_0x35a9d3-0x132,_0x7d95c4-_0x28a5bb._0x3a75cd);}appendChunk(_0x4fac8b,_0x352ac6,_0x3603e8[_0x38a4cc(_0xfe0cf6._0x133ee1,_0xfe0cf6._0x2a61e3,_0xfe0cf6._0x1ceb33,0x4b5)](_0x5ae54a),_0x81f71c,_0x19a23a);},_0x3923d3=_0x2fc22f=>{function _0x32862d(_0x285db8,_0x302379,_0xce6cc0,_0x33f917){return _0x30e658(_0x285db8,_0xce6cc0- -0x30d,_0xce6cc0-_0x41545e._0x1d9dc4,_0x33f917-0x10c);}appendChunk(_0x4fac8b,_0x352ac6,_0x44e324[_0x32862d(_0x506cec._0x4f3608,_0x506cec._0x516984,_0x506cec._0x35f8ae,_0x506cec._0x748d2e)](_0x2fc22f),_0x81f71c,_0x19a23a);};_0xaab48d['stdout']?.['on'](_0x30e658(0x40c,0x3da,_0x500cce._0xbc30c7,_0x500cce._0x183c22),_0x4e9939),_0xaab48d[_0x302b9a(0x244,_0x500cce._0x269766,0x159,_0x500cce._0x2facef)]?.['on'](_0x30e658(_0x500cce._0x3125cd,_0x500cce._0x50d41a,_0x500cce._0x39ca10,0x52b),_0x3923d3);let _0x30c0f1=![],_0x2e7514;const _0x20ff27=addAbortListener(_0xe038b6['signal'],()=>{const _0x2807cf={_0x599995:0xa7};_0x2962f1=toAbortError(_0xe038b6[_0x63287b(0x7b,-_0x4691ec._0x3414c6,0x22,-_0x4691ec._0x1c9f64)][_0x63287b(0xf3,_0x4691ec._0x2c53c5,0x269,0x1eb)]),_0x58075a=!![];function _0x63287b(_0x1bc78c,_0x616ca2,_0x422583,_0x2c87f7){return _0x302b9a(_0x1bc78c-_0xfdfc2._0x5016a3,_0x616ca2-0xec,_0x1bc78c,_0x2c87f7- -0x80);}_0x19a23a();function _0x100084(_0x3adbcd,_0xc49322,_0x5c8056,_0x1d7750){return _0x30e658(_0x1d7750,_0x5c8056-0x74,_0x5c8056-0x102,_0x1d7750-_0x2807cf._0x599995);}try{killProcessGroup(_0xaab48d,_0x48ef7b);}catch{}});try{const _0xb2bd1e=new Promise((_0x58ec64,_0x9bb2d1)=>{const _0x5b9b3a={_0x10661c:0xb7},_0x383d13={_0x20ecc2:0x362,_0x1365c0:0x3de,_0x248845:0x363,_0xc57548:0x31a},_0x29eeae={_0x23b367:0x9d,_0x2de7d4:0x348,_0x2cd95e:0x17c,_0x6a225d:0x1dd,_0x1ffac3:0x1ab,_0x5df39c:0x305},_0x110875={_0x2800f1:0x24},_0x1dd8be=()=>{_0x2e7514&&(clearTimeout(_0x2e7514),_0x2e7514=void 0x0);_0xaab48d[_0x2958d5(0x212,0x23f,0x202,0x164)](_0x59a919(0xdf,0x291,0x1e6,_0x29eeae._0x23b367),_0x59acd6);function _0x59a919(_0x5422fb,_0x8b9abe,_0x840240,_0x12e428){return _0x4951(_0x840240- -_0x110875._0x2800f1,_0x5422fb);}function _0x2958d5(_0x50cccd,_0xf2c0fc,_0x3923a6,_0x382f59){return _0x4951(_0x50cccd- -0x189,_0xf2c0fc);}_0xaab48d[_0x2958d5(0x212,0x2f3,_0x29eeae._0x2de7d4,_0x29eeae._0x2cd95e)](_0x59a919(_0x29eeae._0x6a225d,_0x29eeae._0x1ffac3,_0x29eeae._0x5df39c,0x1f4),_0x5721b2);};function _0x3593dc(_0x227776,_0x3aa5a0,_0x245c83,_0x3cb857){return _0x302b9a(_0x227776-_0x4e7618._0x58187e,_0x3aa5a0-0x140,_0x245c83,_0x3cb857-0x46f);}const _0x59acd6=_0x389dc2=>{_0x58075a=!![],_0x19a23a(),_0x1dd8be(),_0x9bb2d1(_0x2962f1??_0x389dc2);};function _0x4ba95f(_0x5c934a,_0x135c56,_0x4ae45a,_0x67090b){return _0x30e658(_0x67090b,_0x135c56- -0x64,_0x4ae45a-0x16e,_0x67090b-0x97);}const _0x5721b2=(_0x49df18,_0x4c7d5b)=>{_0x30c0f1=!![],appendChunk(_0x4fac8b,_0x352ac6,_0x3603e8[_0xba1d6e(-_0x383d13._0x20ecc2,-0x279,-_0x383d13._0x1365c0,-_0x383d13._0x248845)](),_0x81f71c,_0x19a23a);function _0xba1d6e(_0x50e343,_0x16e2ea,_0x1518ef,_0x43fb5a){return _0x4951(_0x16e2ea- -0x3de,_0x1518ef);}appendChunk(_0x4fac8b,_0x352ac6,_0x44e324[_0xba1d6e(-0x257,-0x279,-0x25b,-_0x383d13._0xc57548)](),_0x81f71c,_0x19a23a),_0x58075a=!![];function _0x5ea2ff(_0x15e9e0,_0x14d015,_0x4606fc,_0x276d7e){return _0x4951(_0x15e9e0-0xc0,_0x14d015);}_0x19a23a(),_0x1dd8be();if(_0x2962f1){_0x9bb2d1(_0x2962f1);return;}_0x58ec64({'code':_0x49df18,'signal':_0x4c7d5b});};_0x2e7514=setTimeout(()=>{_0x58075a=!![],_0x19a23a(),_0x1dd8be();try{killProcessGroup(_0xaab48d,_0x48ef7b);}catch{}function _0x76cf40(_0x532c98,_0x18b458,_0x4f851e,_0x507f15){return _0x4951(_0x532c98- -0x359,_0x507f15);}_0x9bb2d1(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0x392d5e+'\x20ms',{'command':_0xac4a8b[_0x76cf40(-0x231,-0x278,-0xbf,-_0x5b9b3a._0x10661c)],'cwd':_0x19b675,'shellPath':_0x539bf0,'timeoutMs':_0x392d5e,'timedOut':!![]}));},_0x392d5e),_0xaab48d[_0x3593dc(_0x39d801._0x3313af,0x669,0x59d,0x6fc)](_0x3593dc(_0x39d801._0x4ff338,0x562,_0x39d801._0x4b700c,0x573),_0x59acd6),_0xaab48d[_0x3593dc(_0x39d801._0x1ee778,0x5b0,0x6f1,0x6fc)](_0x4ba95f(0x50a,_0x39d801._0xb0200c,_0x39d801._0x442801,_0x39d801._0x3ef77a),_0x5721b2);});while(_0x352ac6[_0x302b9a(_0x500cce._0x2c6251,_0x500cce._0x2622a4,_0x500cce._0x53c1b7,_0x500cce._0x35dd65)]>0x0||!_0x58075a){if(_0x352ac6['length']===0x0){await _0xa85f32();continue;}const _0x356010=_0x352ac6[_0x30e658(_0x500cce._0x32ce4e,_0x500cce._0x1bc27d,_0x500cce._0x45ac36,0x398)]();_0x356010!==void 0x0&&(yield _0x356010);}const _0x375eba=await _0xb2bd1e,_0xe26dd9=_0x5ed736?'exit\x20code\x20'+(_0x375eba[_0x302b9a(-_0x500cce._0x5d0fcf,_0x500cce._0x24dd6a,_0x500cce._0x5abfcb,_0x500cce._0x474972)]??0x0):_0x4fac8b['join'](''),_0x41c23e={'command':_0xac4a8b[_0x302b9a(0x19c,0x176,_0x500cce._0x252dce,0x22)],'cwd':_0x19b675,'exitCode':_0x375eba[_0x30e658(_0x500cce._0x3d62cc,_0x500cce._0x309f56,0x281,_0x500cce._0x275d60)]??0x0,'signal':_0x375eba[_0x30e658(_0x500cce._0x35f712,_0x500cce._0x3d3226,0x2fe,0x31a)],'ignoreOutput':_0x5ed736,'shellPath':_0x539bf0,'timeoutMs':_0x392d5e};if(_0x375eba[_0x302b9a(_0x500cce._0x40275c,0x188,_0x500cce._0x245bb3,_0x500cce._0x474972)]!==0x0)throw new ToolExecutionError(_0xe26dd9||'Command\x20exited\x20with\x20code\x20'+(_0x375eba[_0x30e658(0x455,0x38e,_0x500cce._0x1ffd46,_0x500cce._0x4cf370)]??0x0),_0x41c23e);return createToolOutput(_0xe26dd9,_0x41c23e);}catch(_0x301a38){while(_0x352ac6[_0x302b9a(0x24b,0x1e2,0x420,_0x500cce._0x3836e2)]>0x0){const _0x5189af=_0x352ac6[_0x30e658(0x41a,0x41a,0x399,_0x500cce._0x1a545b)]();_0x5189af!==void 0x0&&(yield _0x5189af);}if(_0x301a38 instanceof ToolExecutionError)throw _0x301a38;if(_0x2962f1)throw _0x2962f1;throw mapSpawnError(_0x301a38,{'command':_0xac4a8b[_0x30e658(_0x500cce._0x11d90f,0x304,0x413,0x374)],'cwd':_0x19b675,'shellPath':_0x539bf0});}finally{_0x2e7514&&clearTimeout(_0x2e7514);_0x20ff27(),_0xaab48d['stdout']?.['off'](_0x302b9a(0xda,0x232,-_0x500cce._0x24ab3d,_0x500cce._0x579bb1),_0x4e9939),_0xaab48d[_0x302b9a(0x16f,0x322,0x342,_0x500cce._0x21367f)]?.[_0x302b9a(_0x500cce._0x13917c,_0x500cce._0x3ff81d,_0x500cce._0x1b91ad,_0x500cce._0x5ab218)](_0x30e658(0x264,_0x500cce._0x369f9e,_0x500cce._0x218d7d,_0x500cce._0x3c2183),_0x3923d3);if(!_0x30c0f1&&_0xaab48d[_0x302b9a(_0x500cce._0x37bac5,0x358,_0x500cce._0x232ce9,_0x500cce._0xa6956a)]&&!_0xaab48d['killed'])try{killProcessGroup(_0xaab48d,_0x48ef7b);}catch{}}}});}function createShellExecTool(_0x408b93={}){return createBashTool(_0x408b93);}import{readdir,readFile as _0x42fa6b}from'fs/promises';import{extname,join as _0xfd1806}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x42be5d,join,relative as _0xae87ef,resolve as _0x1ebeb0}from'path';import{readdir as _0x4fb92e,readFile as _0x24d7c8}from'fs/promises';import{join as _0x4d32e5,relative as _0xbd2664,sep}from'path';import{delimiter}from'path';import{mkdir as _0x19bc24,rm,stat as _0x5cfdc8,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x51c64c}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x1fc7d6,rename,writeFile as _0x279118}from'fs/promises';import{homedir as _0xf6b544}from'os';import{dirname as _0x341efe,isAbsolute as _0x1e4e2b,join as _0x2e7ed5,resolve as _0x5a56dd}from'path';import{parse as _0x2320b5,stringify as _0x5fb8f7}from'yaml';import{cp,mkdir as _0x35408b,readFile as _0x5ee93e,rm as _0x203d31,writeFile as _0x51d816}from'fs/promises';import{homedir}from'os';import{join as _0x41a989}from'path';import{parse as _0x1ea8db,stringify as _0x3b27cb}from'yaml';import{z}from'zod';import{readdir as _0x2d8943,readFile as _0x264c07}from'fs/promises';import{join as _0x1ba6c6}from'path';import{mkdir as _0x57f699,readFile as _0x420a7c,rm as _0x22606f,writeFile as _0x116ef2}from'fs/promises';import{homedir as _0x5ae640}from'os';import{basename,isAbsolute as _0x352439,join as _0x4f530a,relative as _0x51f1b3,resolve as _0x1528dd}from'path';import{parse as _0x401eca,stringify as _0x39fdf2}from'yaml';import{delimiter as _0x3b2e84,resolve as _0x349701}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x2a2230){const _0x1c9f80={_0x22531e:0xee,_0x635342:0x49d,_0x2a7455:0x7b,_0x3250b3:0x13c,_0x18f041:0x40f,_0x522aeb:0x1f7,_0x592729:0x2e4,_0x38927d:0x3f6,_0x2fc2bd:0x2c0},_0x3dce1a={_0x57fcb9:0x55,_0x37f100:0x1ae},_0x1cb0b6={_0x32ec0b:0x405},_0x2d4e67=[];function _0x3b3027(_0x616e35,_0x473d21,_0x508a85,_0x506377){return _0x36273c(_0x616e35-0xac,_0x473d21-0x60,_0x473d21,_0x506377- -_0x1cb0b6._0x32ec0b);}let _0x322c92='',_0x2b6cf5=0x0;while(_0x2b6cf5<_0x2a2230[_0x301c01(-0x11,_0x1c9f80._0x22531e,-0x11d,0x2e)]){const _0x46b05e=_0x2a2230[_0x2b6cf5];if(_0x46b05e==='\x5c'&&_0x2b6cf5+0x1<_0x2a2230[_0x301c01(-0x11,-0xd2,-0xfc,-0x18d)])_0x322c92+=_0x2a2230[_0x2b6cf5+0x1],_0x2b6cf5+=0x2;else{if(_0x46b05e==='\x22'||_0x46b05e==='\x27'){const _0x21ccfb=_0x46b05e;_0x2b6cf5++;while(_0x2b6cf5<_0x2a2230[_0x3b3027(0x2a9,0x460,0x1f7,0x364)]&&_0x2a2230[_0x2b6cf5]!==_0x21ccfb){_0x2a2230[_0x2b6cf5]==='\x5c'&&_0x2b6cf5+0x1<_0x2a2230[_0x3b3027(_0x1c9f80._0x635342,0x2c5,0x2d8,0x364)]?(_0x322c92+=_0x2a2230[_0x2b6cf5+0x1],_0x2b6cf5+=0x2):(_0x322c92+=_0x2a2230[_0x2b6cf5],_0x2b6cf5++);}_0x2b6cf5++;}else _0x46b05e!==void 0x0&&/\s/[_0x3b3027(-0x62,-_0x1c9f80._0x2a7455,_0x1c9f80._0x3250b3,0xe8)](_0x46b05e)?(_0x322c92&&(_0x2d4e67[_0x3b3027(_0x1c9f80._0x18f041,_0x1c9f80._0x522aeb,_0x1c9f80._0x592729,0x2c0)](_0x322c92),_0x322c92=''),_0x2b6cf5++):(_0x322c92+=_0x46b05e,_0x2b6cf5++);}}function _0x301c01(_0x3659b1,_0x46050d,_0x3fa1ec,_0x190a9e){return _0x19c96f(_0x3659b1-_0x3dce1a._0x57fcb9,_0x46050d-_0x3dce1a._0x37f100,_0x190a9e,_0x3659b1- -0x248);}if(_0x322c92)_0x2d4e67[_0x3b3027(_0x1c9f80._0x38927d,0x36e,0x3ce,_0x1c9f80._0x2fc2bd)](_0x322c92);return _0x2d4e67;}function renderCommandInstructions(_0x428c71){const _0x339382={_0x5e29d8:0x51f,_0x1f255f:0x4bb,_0x380bf2:0x422,_0x20ed8f:0x28b,_0x18949c:0x6d0,_0x1f7bf0:0x5d2,_0xc294de:0x3a0,_0x226d22:0x4ca,_0x3f2067:0x125,_0x2323ab:0x145,_0x366a95:0x279,_0x1579a1:0x49f,_0x2b23be:0x3c6,_0xf3ba:0x6d1,_0x4af08a:0x82c,_0x543f2b:0x78c,_0x69c945:0x34f,_0xd6951b:0x6f0,_0x228d2e:0x788,_0x5f06d7:0x6bd,_0x58a780:0x317,_0x17bd77:0x522,_0xe6efe6:0x4db,_0x10e0d:0x429,_0x19f389:0x484,_0x49dd62:0x349,_0x5f4304:0x566,_0x45b3f8:0x76c},_0x33d9f7={_0x35f216:0xe3,_0x19280d:0x1b},_0x37a4e0={_0x2310c0:0x6d};let _0x56675d=_0x428c71[_0x2ce22d(_0x339382._0x5e29d8,0x5b1,0x5cd,_0x339382._0x1f255f)],_0x3a63eb=![];const _0x15f6d5=tokenizeCommandArguments(_0x428c71[_0x1963a1(0x304,_0x339382._0x380bf2,0x406,_0x339382._0x20ed8f)]);function _0x2ce22d(_0x439459,_0x19b05d,_0x22b027,_0x18c4ed){return _0x36273c(_0x439459-_0x37a4e0._0x2310c0,_0x19b05d-0xb9,_0x22b027,_0x439459- -0x98);}_0x56675d=_0x56675d[_0x2ce22d(0x6f0,0x5c0,_0x339382._0x18949c,_0x339382._0x1f7bf0)](/\$ARGUMENTS\[(\d+)\]/g,(_0x1682e6,_0x14d1f7)=>{return _0x3a63eb=!![],_0x15f6d5[Number(_0x14d1f7)]??'';}),_0x56675d=_0x56675d[_0x1963a1(_0x339382._0xc294de,0x541,_0x339382._0x226d22,0x445)](/\$ARGUMENTS\b/g,()=>{return _0x3a63eb=!![],_0x428c71['argumentsText'];});if(_0x428c71[_0x1963a1(_0x339382._0x3f2067,0x2dd,0x279,0x2a3)]&&_0x428c71[_0x1963a1(_0x339382._0x2323ab,0x38c,_0x339382._0x366a95,0x1a9)]['length']>0x0)for(let _0x59708b=0x0;_0x59708b<_0x428c71[_0x2ce22d(_0x339382._0x1579a1,0x41e,_0x339382._0x2b23be,0x47b)][_0x2ce22d(_0x339382._0xf3ba,_0x339382._0x4af08a,0x814,_0x339382._0x543f2b)];_0x59708b++){const _0x104464=_0x428c71[_0x1963a1(0x190,0x201,0x279,_0x339382._0x69c945)][_0x59708b];if(_0x104464){const _0x20c88b=new RegExp('\x5c$'+_0x104464+'\x5cb','g');_0x56675d=_0x56675d['replace'](_0x20c88b,()=>{return _0x3a63eb=!![],_0x15f6d5[_0x59708b]??'';});}}_0x56675d=_0x56675d[_0x2ce22d(_0x339382._0xd6951b,_0x339382._0x228d2e,_0x339382._0x5f06d7,0x6ce)](/\$(\d+)\b/g,(_0x49452c,_0x4dc274)=>{return _0x3a63eb=!![],_0x15f6d5[Number(_0x4dc274)]??'';});function _0x1963a1(_0x2709c6,_0x1a8eb6,_0x476aee,_0x3210f8){return _0x19c96f(_0x2709c6-_0x33d9f7._0x35f216,_0x1a8eb6-_0x33d9f7._0x19280d,_0x1a8eb6,_0x476aee-0x274);}return!_0x3a63eb&&_0x428c71[_0x1963a1(0x546,_0x339382._0x58a780,0x406,0x40e)][_0x1963a1(0x557,_0x339382._0x17bd77,_0x339382._0xe6efe6,0x601)]()&&(_0x56675d=_0x56675d+_0x2ce22d(_0x339382._0x10e0d,0x2ca,_0x339382._0x19f389,_0x339382._0x49dd62)+_0x428c71[_0x2ce22d(0x62c,_0x339382._0x5f4304,_0x339382._0x45b3f8,0x4b2)]),_0x56675d;}var PROVIDER_API_KEY_ENVS=[{'env':_0x36273c(0x751,0x70d,0x634,0x765),'provider':'openrouter'},{'env':_0x36273c(0x7fb,0x884,0x801,0x706),'provider':_0x36273c(0x692,0x698,0x71e,0x6a4)},{'env':'GITHUB_ACCESS_TOKEN','provider':_0x36273c(0x443,0x3e3,0x497,0x55a)},{'env':_0x19c96f(0xb1,0x2f8,0xc5,0x19e),'provider':_0x36273c(0x691,0x669,0x404,0x55a)},{'env':_0x19c96f(0x12f,0x21d,0x1c7,0x26c),'provider':_0x36273c(0x82b,0x7c7,0x681,0x747)},{'env':_0x19c96f(-0x19,0x2e,0x198,0xa4),'provider':_0x36273c(0x6e5,0x7c2,0x71a,0x641)},{'env':'MOONSHOT_API_KEY','provider':_0x36273c(0x6b9,0x5ac,0x622,0x69f)},{'env':'MINIMAX_API_KEY','provider':_0x19c96f(-0xb8,-0xd5,-0xd6,-0x74)},{'env':'KIMI_API_KEY','provider':_0x19c96f(0x3e0,0x3b7,0x340,0x26a)},{'env':'OPENAI_API_KEY','provider':_0x19c96f(0x18a,0x1b8,0x127,0xf0)},{'env':'DEEPSEEK_API_KEY','provider':_0x19c96f(0x320,0xad,0x30e,0x213)}],PROVIDER_API_KEY_ENV_NAMES=PROVIDER_API_KEY_ENVS['map'](_0xbca513=>_0xbca513[_0x19c96f(0x178,0x1dc,0x104,0x1f6)]),SCRUBBED_ENV_KEYS=[...PROVIDER_API_KEY_ENV_NAMES,_0x36273c(0x68f,0x5b2,0x6d0,0x65e),_0x36273c(0x78a,0x65d,0x787,0x766),_0x19c96f(0x32b,0x250,0x216,0x1d1)],chatModelAuthSchemeSchema=z[_0x36273c(0x421,0x476,0x403,0x4de)]([_0x36273c(0x5ad,0x59d,0x4fd,0x530),_0x19c96f(0x214,0xe5,0x204,0x185)]),apiKeyAuthSchema=z['object']({'type':z['literal']('apiKey'),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x36273c(0x625,0x5f2,0x5a0,0x5ab)]()})[_0x36273c(0x6e5,0x701,0x563,0x698)](),oauthAuthSchema=z[_0x19c96f(0xed,0x33,0x138,0xbd)]({'type':z[_0x19c96f(0x29,0x25a,0x2f1,0x1a3)](_0x36273c(0x64f,0x5ec,0x504,0x4f5)),'access':z['string'](),'refresh':z[_0x19c96f(0x265,0x19a,-0x2d,0x10c)](),'expires':z[_0x19c96f(-0x12a,-0x9a,-0x1ce,-0x4d)]()[_0x19c96f(-0xe9,0x13,0x1b1,0x79)](),'authScheme':chatModelAuthSchemeSchema[_0x36273c(0x5ff,0x5a7,0x563,0x5ab)]()})[_0x19c96f(0x13e,0xf0,0x1b2,0x166)](),authMethodSchema=z[_0x36273c(0x49c,0x513,0x68d,0x58e)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z['string'](),'name':z[_0x19c96f(0x200,0x263,0xeb,0x10c)]()['optional']()})[_0x36273c(0x76b,0x5ca,0x610,0x698)](),modelConfigSchema=z[_0x19c96f(0xd7,0x18d,0x8e,0x5c)]([z[_0x36273c(0x692,0x7c0,0x6fb,0x6d5)](![]),z['literal'](!![]),z[_0x19c96f(-0x37,0x4b,0xc4,0x10c)](),z['array'](z[_0x36273c(0x730,0x6e0,0x4cc,0x63e)]()),z[_0x36273c(0x51a,0x527,0x633,0x663)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x36273c(0x4b2,0x4b9,0x387,0x4de)]([_0x19c96f(0xe9,0x151,0x187,0x63),_0x36273c(0x77e,0x55e,0x6b7,0x64e),_0x36273c(0x803,0x876,0x854,0x779),_0x36273c(0x49a,0x5bc,0x5dc,0x505)]),providerConfigSchema=z[_0x19c96f(-0x38,0x17c,0x1bd,0xbd)]({'apiKey':z['string']()['optional'](),'token':z[_0x36273c(0x61d,0x6b7,0x580,0x63e)]()[_0x36273c(0x6a9,0x5bb,0x5c0,0x5ab)](),'defaultModel':z['string']()[_0x19c96f(-0x6a,-0xdb,0xd,0x79)](),'smallModel':z['string']()[_0x19c96f(0xf2,0xd2,-0x31,0x79)](),'currentAuth':z['string']()[_0x19c96f(0xcd,0xba,0x1ce,0x79)](),'auth':z[_0x36273c(0x70c,0x54a,0x59b,0x663)](authMethodSchema)[_0x19c96f(0x6e,0x45,0x157,0x79)](),'surface':chatModelSurfaceSchema[_0x19c96f(0x157,0x2d,0xc1,0x79)](),'baseUrl':z[_0x36273c(0x7b4,0x559,0x53f,0x63e)]()[_0x19c96f(0x44,-0x8a,0x11,0x79)](),'models':modelConfigSchema[_0x36273c(0x620,0x6a0,0x61e,0x5ab)](),'customHeaders':z[_0x36273c(0x78e,0x74d,0x754,0x66c)](z[_0x36273c(0x71e,0x570,0x749,0x63e)](),z[_0x19c96f(-0x4c,0x24c,0x22a,0x10c)]())[_0x19c96f(-0x19,0x1a3,0x39,0x79)]()})['passthrough'](),mcpServerConfigSchema=z[_0x19c96f(0x135,0x6b,0xb6,0xbd)]({'command':z[_0x19c96f(0x28,0x1bb,0x5f,0x10c)]()[_0x36273c(0x6b4,0x714,0x6f2,0x5ab)](),'args':z[_0x36273c(0x622,0x740,0x54c,0x663)](z[_0x36273c(0x773,0x59c,0x5a8,0x63e)]())['optional'](),'env':z[_0x36273c(0x51f,0x5f4,0x740,0x66c)](z[_0x19c96f(0x20c,0x206,0x1c9,0x10c)](),z['string']())[_0x36273c(0x5b3,0x491,0x6bf,0x5ab)](),'transport':z[_0x36273c(0x5f8,0x373,0x451,0x4de)]([_0x36273c(0x6bd,0x62c,0x7ce,0x6f5),_0x19c96f(0x2ab,0x2a2,0x332,0x209)])[_0x36273c(0x5b6,0x487,0x43f,0x5ab)](),'url':z[_0x19c96f(0x8a,0xc8,0x19,0x10c)]()[_0x36273c(0x615,0x49f,0x59f,0x5ab)](),'headers':z['record'](z['string'](),z['string']())[_0x36273c(0x5a9,0x4f5,0x5e3,0x5ab)](),'prefix':z[_0x36273c(0x720,0x59e,0x64b,0x63e)]()[_0x36273c(0x6b9,0x536,0x700,0x5ab)](),'timeoutMs':z['number']()[_0x36273c(0x582,0x565,0x60f,0x5ab)](),'enabled':z[_0x36273c(0x7bd,0x5b5,0x5bf,0x67b)]()[_0x19c96f(0x102,0x6a,0xc1,0x79)](),'auth':z['object']({'type':z['enum'](['none',_0x19c96f(-0x4,-0xa9,0x167,-0x2),_0x19c96f(-0x115,-0x160,-0xa7,-0x3d)]),'token':z[_0x19c96f(-0x41,0x26d,0x15b,0x10c)]()[_0x19c96f(0x19e,-0xc0,0x124,0x79)](),'oauth':z['object']({'clientId':z[_0x19c96f(0x270,0x78,0x39,0x10c)]()['optional'](),'clientMetadataUrl':z[_0x19c96f(0xc7,0xfc,0x1b8,0x10c)]()['optional'](),'authorizationServer':z[_0x19c96f(-0x1c,0xd5,0x21f,0x10c)]()['optional'](),'scopes':z['array'](z['string']())['optional'](),'tokenStorageKey':z['string']()[_0x36273c(0x484,0x485,0x5dc,0x5ab)]()})[_0x19c96f(0x178,0x86,0x7e,0x166)]()['optional']()})['passthrough']()[_0x19c96f(0xca,0xc3,0xed,0x79)]()})[_0x36273c(0x69c,0x650,0x817,0x698)](),mcpSettingsSchema=z[_0x36273c(0x71c,0x708,0x6bc,0x5ef)]({'servers':z[_0x36273c(0x517,0x6ec,0x7b5,0x66c)](z[_0x19c96f(-0x24,0x23,0x26,0x10c)](),mcpServerConfigSchema)[_0x36273c(0x4f4,0x62e,0x4ce,0x5ab)](),'allowedTools':z[_0x19c96f(0x281,0x1e6,0xdd,0x13a)](z[_0x19c96f(-0x4e,-0x72,0x278,0x10c)](),z[_0x19c96f(0x149,0x1d7,0x17e,0x13a)](z[_0x19c96f(0xb0,0xc9,-0x53,0x10c)](),z[_0x19c96f(0x1ed,0x267,0x159,0x149)]()))[_0x19c96f(-0x102,0x1ef,0x14,0x79)](),'defaultTimeoutMs':z['number']()[_0x36273c(0x672,0x5ba,0x549,0x5ab)]()})['passthrough'](),skillsSettingsSchema=z[_0x36273c(0x52d,0x73f,0x48e,0x5ef)]({'enabled':z[_0x19c96f(0x239,0xae,0x260,0x149)]()[_0x36273c(0x42f,0x533,0x4b1,0x5ab)](),'includeDefaults':z[_0x19c96f(-0x29,0x167,0x1d4,0x149)]()[_0x36273c(0x5c2,0x560,0x448,0x5ab)](),'directories':z[_0x19c96f(0x14d,0x2a5,0xc3,0x131)](z[_0x36273c(0x609,0x5e1,0x4f8,0x63e)]())[_0x36273c(0x5da,0x670,0x453,0x5ab)](),'exclude':z[_0x19c96f(0x149,0xa4,0xa1,0x131)](z[_0x36273c(0x542,0x52c,0x549,0x63e)]())[_0x36273c(0x640,0x6bc,0x4b5,0x5ab)]()})['passthrough'](),commandsSettingsSchema=z['object']({'enabled':z[_0x19c96f(0x14a,0x1b,0x27a,0x149)]()[_0x36273c(0x51b,0x448,0x60f,0x5ab)](),'directories':z[_0x19c96f(0x197,0x51,-0x15,0x131)](z[_0x36273c(0x665,0x6c5,0x669,0x63e)]())[_0x36273c(0x655,0x4fa,0x715,0x5ab)]()})['passthrough'](),agentsSettingsSchema=z[_0x36273c(0x508,0x6ee,0x50c,0x5ef)]({'enabled':z['boolean']()[_0x19c96f(0x1d7,-0xe,0x1ce,0x79)](),'includeDefaults':z['boolean']()[_0x36273c(0x69e,0x5b7,0x721,0x5ab)](),'directories':z[_0x36273c(0x55b,0x608,0x726,0x663)](z[_0x36273c(0x6a3,0x7af,0x603,0x63e)]())['optional']()})[_0x36273c(0x702,0x565,0x6ca,0x698)](),uiThemeSettingsSchema=z[_0x19c96f(0x57,0x167,0x7a,0xbd)]({'mode':z[_0x19c96f(-0x1af,-0x127,0x13,-0x54)](['auto',_0x36273c(0x6c0,0x752,0x689,0x694),'light'])[_0x36273c(0x578,0x509,0x69a,0x5ab)](),'colorLevel':z['enum']([_0x19c96f(-0x10e,0x147,0xfc,-0x1b),_0x36273c(0x690,0x634,0x593,0x55e),_0x36273c(0x647,0x5e4,0x4dd,0x638),_0x19c96f(0x1b0,0x4f,-0xf,0x135),_0x36273c(0x7e7,0x579,0x760,0x6d6)])[_0x36273c(0x592,0x6bd,0x6be,0x5ab)](),'backgrounds':z[_0x19c96f(-0x2a,-0x92,0xac,-0x54)](['auto','on','off'])[_0x36273c(0x445,0x59f,0x6ff,0x5ab)](),'messageStyle':z[_0x36273c(0x593,0x53d,0x3a0,0x4de)]([_0x19c96f(-0x71,0xd9,-0x4f,0x3e),_0x19c96f(0x102,0x203,0x1f6,0x1df)])[_0x19c96f(0x1f0,0x110,-0xba,0x79)]()})[_0x19c96f(0x2c3,0x1ca,0x2d4,0x166)](),statuslineSegmentSchema=z['enum']([_0x19c96f(0x2ed,0x40,0x110,0x1a8),_0x19c96f(0xdb,0x6d,0x279,0x128),_0x36273c(0x470,0x567,0x48a,0x4ac),_0x36273c(0x752,0x6b4,0x737,0x659),_0x36273c(0x632,0x762,0x6b0,0x7a3),'context','cached',_0x36273c(0x630,0x5a0,0x5e3,0x708),_0x19c96f(0x14b,0xe8,0x174,0x19c),_0x19c96f(0xad,0x21a,0x285,0x174),_0x36273c(0x5da,0x5a3,0x584,0x57b),'gitBranch',_0x36273c(0x84f,0x6be,0x743,0x6ee),_0x19c96f(0x343,0x1dd,0x321,0x202),_0x19c96f(0x156,0x29a,0x1de,0x171)]),statuslineItemSchema=z[_0x36273c(0x532,0x544,0x708,0x58e)]([statuslineSegmentSchema,z['literal']('|')]),statuslineRowSchema=z[_0x36273c(0x5f8,0x6bc,0x555,0x663)](statuslineItemSchema),statuslineConfigSchema=z[_0x36273c(0x6a8,0x621,0x5e5,0x5ef)]({'rows':z[_0x19c96f(-0x23,0x63,0x6a,0x9d)]([statuslineRowSchema,statuslineRowSchema])[_0x19c96f(0x105,0x105,-0x6e,0x79)]()})['passthrough'](),memorySettingsSchema=z[_0x36273c(0x509,0x5ce,0x6b1,0x5ef)]({'version':z['literal'](0x2)[_0x19c96f(0x167,0x1e3,-0xb6,0x79)](),'retrieval':z[_0x36273c(0x598,0x639,0x6b8,0x5ef)]({'engine':z[_0x19c96f(0xf4,0x2f1,0x244,0x1a3)]('bm25')[_0x36273c(0x671,0x5be,0x435,0x5ab)](),'candidateLimit':z[_0x36273c(0x3ba,0x56e,0x3bc,0x4e5)]()[_0x36273c(0x680,0x5b5,0x709,0x5ab)](),'activeCandidateLimit':z['number']()[_0x19c96f(0x15f,-0x62,-0xaf,0x79)](),'activeEnabled':z[_0x36273c(0x7cb,0x5c0,0x585,0x67b)]()['optional'](),'maxQueriesPerTurn':z[_0x19c96f(0xc7,0x128,-0x14d,-0x4d)]()[_0x19c96f(0x171,-0x4c,-0xf9,0x79)](),'coreInjectTokenBudget':z[_0x19c96f(0xab,0x57,0x1c,-0x4d)]()['optional'](),'injectTokenBudget':z[_0x36273c(0x46d,0x401,0x4ec,0x4e5)]()[_0x19c96f(-0xe5,0x1ba,0xc,0x79)](),'minScore':z[_0x36273c(0x5de,0x452,0x3ac,0x4e5)]()[_0x19c96f(0x5c,0x19,-0x50,0x79)](),'freshnessHalfLifeDays':z['number']()[_0x36273c(0x6fd,0x499,0x50e,0x5ab)]()})['passthrough']()[_0x19c96f(-0x41,0x1ec,0x9,0x79)](),'extraction':z['object']({'enabled':z['boolean']()[_0x36273c(0x501,0x712,0x51c,0x5ab)](),'provider':z[_0x19c96f(0x276,-0x6d,0x4e,0x10c)]()[_0x36273c(0x66c,0x43d,0x4e2,0x5ab)](),'model':z[_0x19c96f(0x2,0xdc,0xef,0x10c)]()[_0x19c96f(-0x93,0x85,-0x102,0x79)](),'sensitiveFilter':z[_0x36273c(0x543,0x583,0x6c0,0x67b)]()[_0x19c96f(0xf0,-0x54,0x170,0x79)]()})[_0x19c96f(0x2ce,0x5b,0x193,0x166)]()[_0x19c96f(-0xc7,-0x30,-0x93,0x79)](),'index':z[_0x19c96f(0x172,0x1e8,0x19f,0xbd)]({'persisted':z['boolean']()[_0x36273c(0x4d2,0x68d,0x620,0x5ab)](),'flushIntervalMs':z[_0x36273c(0x37a,0x482,0x59e,0x4e5)]()[_0x19c96f(0x105,0x1e7,-0x66,0x79)]()})[_0x19c96f(0x175,0x223,0x22d,0x166)]()[_0x19c96f(-0x16,0xa1,-0x39,0x79)](),'enabled':z[_0x19c96f(0x0,0x1f2,0x197,0x149)]()[_0x36273c(0x6f0,0x72b,0x71a,0x5ab)](),'saveTool':z[_0x19c96f(0xe2,0x1e9,0x264,0x149)]()[_0x19c96f(0x195,0xe,-0xf,0x79)](),'model':z[_0x36273c(0x64a,0x512,0x4c2,0x63e)]()['optional'](),'provider':z[_0x36273c(0x687,0x4fd,0x552,0x63e)]()[_0x19c96f(-0xd9,0x173,-0x7d,0x79)](),'maxInjectionTokens':z['number']()[_0x19c96f(-0x62,0x106,0xc2,0x79)](),'backgroundExtraction':z[_0x19c96f(0x2c8,0x199,0x15,0x149)]()[_0x36273c(0x576,0x4ef,0x5d6,0x5ab)]()})['passthrough'](),recentModelSchema=z['object']({'provider':z[_0x19c96f(-0x39,0x282,0xa,0x10c)](),'model':z['string'](),'usedAt':z['number']()})[_0x19c96f(0x130,0xcd,0x231,0x166)](),lspServerEntrySchema=z['object']({'disabled':z[_0x19c96f(0x58,0x8a,0x29,0x149)]()[_0x19c96f(-0x97,-0x48,0xbe,0x79)](),'command':z[_0x36273c(0x579,0x4c5,0x53a,0x63e)]()['optional'](),'args':z[_0x19c96f(0xeb,0x129,0x1b8,0x131)](z[_0x36273c(0x713,0x50f,0x510,0x63e)]())['optional'](),'rootMarkers':z[_0x36273c(0x73c,0x4e3,0x725,0x663)](z[_0x36273c(0x4c6,0x543,0x5b2,0x63e)]())[_0x36273c(0x577,0x4d3,0x4ef,0x5ab)]()})['passthrough'](),lspConfigSchema=z['object']({'enabled':z[_0x19c96f(0x8c,0x3c,0xfa,0x149)]()[_0x36273c(0x455,0x6de,0x588,0x5ab)](),'servers':z[_0x19c96f(0x24,0x6c,0x15b,0x13a)](z[_0x19c96f(0x18f,0x200,0x1cc,0x10c)](),lspServerEntrySchema)[_0x19c96f(0xcb,-0x20,0xf1,0x79)]()})[_0x19c96f(0x27c,0x26e,0x2e,0x166)](),serverEndpointSchema=z[_0x36273c(0x75e,0x4cb,0x56a,0x5ef)]({'url':z[_0x19c96f(0x1a9,-0x7,0x61,0x10c)](),'token':z[_0x36273c(0x56e,0x591,0x4ef,0x63e)]()[_0x19c96f(0x115,0x78,-0x56,0x79)]()})[_0x36273c(0x819,0x7bd,0x785,0x698)](),commandHookConfigSchema=z['object']({'type':z['literal'](_0x36273c(0x524,0x3ce,0x5c4,0x4cb)),'command':z[_0x19c96f(-0x2a,0x239,0x131,0x10c)](),'timeout':z[_0x36273c(0x405,0x463,0x3be,0x4e5)]()['optional']()}),hookMatcherGroupSchema=z['object']({'matcher':z[_0x19c96f(0x159,0x17f,0x1fd,0x10c)]()[_0x36273c(0x5dd,0x60b,0x6b0,0x5ab)](),'hooks':z[_0x36273c(0x7e2,0x5ef,0x55d,0x663)](commandHookConfigSchema)}),hooksConfigSchema=z['object']({'PreToolUse':z['array'](hookMatcherGroupSchema)[_0x19c96f(0x3d,0x146,-0xc8,0x79)](),'PostToolUse':z[_0x36273c(0x5b0,0x511,0x692,0x663)](hookMatcherGroupSchema)[_0x36273c(0x43a,0x651,0x66c,0x5ab)](),'UserPromptSubmit':z[_0x19c96f(0x201,0x197,0x2b1,0x131)](hookMatcherGroupSchema)[_0x19c96f(0xf5,0x76,0x160,0x79)](),'Stop':z['array'](hookMatcherGroupSchema)['optional'](),'Notification':z[_0x36273c(0x6d8,0x767,0x7b2,0x663)](hookMatcherGroupSchema)[_0x19c96f(0x148,-0x77,0xc4,0x79)](),'ToolApprovalRequest':z[_0x36273c(0x5f9,0x4e5,0x6b7,0x663)](hookMatcherGroupSchema)[_0x36273c(0x5cb,0x5dc,0x4c3,0x5ab)](),'SessionStart':z[_0x19c96f(0x23f,0x15b,0x194,0x131)](hookMatcherGroupSchema)[_0x36273c(0x5dd,0x53c,0x67b,0x5ab)](),'SessionEnd':z[_0x19c96f(0x2a1,0x1d6,0x291,0x131)](hookMatcherGroupSchema)[_0x36273c(0x681,0x5f3,0x6c5,0x5ab)]()}),cliConfigSchema=z[_0x36273c(0x507,0x553,0x6af,0x5ef)]({'activeProvider':z[_0x19c96f(0x23d,0x1a9,0x64,0x10c)]()[_0x36273c(0x650,0x63c,0x6c4,0x5ab)](),'activeModel':z[_0x19c96f(0x122,0x7a,0x22e,0x10c)]()['optional'](),'apiKey':z[_0x36273c(0x73f,0x556,0x79c,0x63e)]()[_0x36273c(0x4d7,0x699,0x552,0x5ab)](),'providers':z[_0x36273c(0x582,0x57a,0x5e4,0x66c)](z[_0x19c96f(0x17,-0x71,0x1a9,0x10c)](),providerConfigSchema)[_0x19c96f(0x4e,0xb7,-0xe4,0x79)](),'mcp':mcpSettingsSchema[_0x36273c(0x577,0x6a8,0x4d5,0x5ab)](),'skills':skillsSettingsSchema[_0x19c96f(-0x100,0xf0,-0x10,0x79)](),'agents':agentsSettingsSchema[_0x36273c(0x45d,0x5d6,0x54e,0x5ab)](),'commands':commandsSettingsSchema[_0x19c96f(0x151,-0xdc,0xe3,0x79)](),'skillsEnabled':z[_0x36273c(0x77c,0x769,0x6e5,0x66c)](z[_0x19c96f(0x3e,0x1df,0x191,0x10c)](),z['boolean']())[_0x19c96f(-0x45,0x4c,-0x4d,0x79)](),'allowedDirs':z['array'](z[_0x36273c(0x669,0x5fe,0x6ee,0x63e)]())[_0x19c96f(-0x17,0x126,-0xf6,0x79)](),'mcpEnabled':z[_0x36273c(0x67a,0x734,0x4f6,0x66c)](z[_0x19c96f(0x183,0x2d,0x193,0x10c)](),z[_0x36273c(0x7bd,0x6a3,0x65c,0x67b)]())[_0x19c96f(-0x53,-0x54,-0xab,0x79)](),'commandsEnabled':z[_0x36273c(0x685,0x7a4,0x514,0x66c)](z[_0x36273c(0x6cc,0x5ba,0x684,0x63e)](),z[_0x36273c(0x6d5,0x52d,0x68b,0x67b)]())[_0x19c96f(0xf3,0x39,0x20,0x79)](),'memory':memorySettingsSchema[_0x19c96f(0x129,-0x1e,0xbe,0x79)](),'session':z['object']({'memPersist':z['boolean']()['optional'](),'persistEventLog':z[_0x19c96f(0x200,0xdf,0x1a7,0x149)]()[_0x36273c(0x4ef,0x521,0x71d,0x5ab)](),'persistHttpLog':z['boolean']()['optional']()})[_0x19c96f(0x134,0x82,0x5c,0x166)]()[_0x19c96f(0x6c,0x126,0x1fa,0x79)](),'requireToolApproval':z['boolean']()['optional'](),'thinking':z['enum']([_0x36273c(0x45d,0x4dc,0x3a0,0x4a9),_0x36273c(0x8b8,0x77d,0x62b,0x76b),_0x19c96f(0x17,0xfd,-0x173,-0x15),_0x19c96f(0x4c,0x13,-0xd0,-0x6)])[_0x36273c(0x55b,0x4b6,0x701,0x5ab)](),'streamingChunks':z[_0x36273c(0x514,0x755,0x4fa,0x67b)]()[_0x36273c(0x541,0x5ce,0x6ff,0x5ab)](),'agentsEnabled':z['record'](z[_0x19c96f(0xcd,0xdc,0x1fa,0x10c)](),z[_0x19c96f(0x166,0x18b,0x2ac,0x149)]())['optional'](),'recentModels':z['array'](recentModelSchema)[_0x19c96f(-0x85,0x84,0x100,0x79)](),'lsp':lspConfigSchema['optional'](),'servers':z['record'](z[_0x19c96f(-0x36,0x1be,-0x13,0x10c)](),serverEndpointSchema)['optional'](),'ui':z['object']({'theme':uiThemeSettingsSchema[_0x36273c(0x645,0x437,0x6b3,0x5ab)](),'statusline':statuslineConfigSchema['optional']()})['passthrough']()[_0x19c96f(-0x44,0x1ac,-0x29,0x79)](),'tools':z[_0x36273c(0x5cb,0x60a,0x507,0x66c)](z[_0x36273c(0x522,0x611,0x54c,0x63e)](),z['unknown']())[_0x36273c(0x695,0x623,0x61f,0x5ab)](),'hooks':hooksConfigSchema[_0x19c96f(-0x47,-0x28,0x158,0x79)]()})[_0x36273c(0x71c,0x7f3,0x695,0x698)](),workspaceOverlaySchema=z['object']({'root':z[_0x19c96f(0x94,0x26b,0x1dd,0x10c)]()[_0x19c96f(0x10e,0x4f,0xf6,0x79)](),'allowedDirs':z[_0x36273c(0x6f3,0x735,0x77b,0x663)](z[_0x36273c(0x717,0x75a,0x74c,0x63e)]())[_0x19c96f(0x176,0x111,0x5a,0x79)](),'activeProvider':z[_0x36273c(0x4f0,0x655,0x754,0x63e)]()[_0x36273c(0x555,0x696,0x660,0x5ab)](),'activeModel':z[_0x36273c(0x6c0,0x637,0x79b,0x63e)]()['optional'](),'mcp':mcpSettingsSchema[_0x19c96f(0x13f,-0x9f,-0x24,0x79)](),'skills':skillsSettingsSchema[_0x19c96f(0xc3,-0xbc,0x1e7,0x79)](),'agents':agentsSettingsSchema[_0x19c96f(0x1b0,0x1bf,0x113,0x79)](),'commands':commandsSettingsSchema['optional'](),'hooks':hooksConfigSchema['optional'](),'memory':memorySettingsSchema['optional'](),'mcpEnabled':z[_0x19c96f(0x1f1,0x276,0x22b,0x13a)](z[_0x36273c(0x630,0x7b5,0x678,0x63e)](),z[_0x19c96f(0x108,0xb9,-0x28,0x149)]())['optional'](),'skillsEnabled':z[_0x36273c(0x5dd,0x70d,0x592,0x66c)](z[_0x19c96f(0x7c,0xe5,0x49,0x10c)](),z[_0x36273c(0x594,0x680,0x56f,0x67b)]())[_0x36273c(0x5aa,0x48d,0x456,0x5ab)](),'agentsEnabled':z[_0x36273c(0x5a5,0x6df,0x66e,0x66c)](z[_0x36273c(0x676,0x61a,0x6a6,0x63e)](),z[_0x19c96f(0x44,0x1ba,0x1c,0x149)]())[_0x36273c(0x531,0x4d5,0x451,0x5ab)](),'commandsEnabled':z[_0x19c96f(-0x21,0x34,0x13d,0x13a)](z[_0x36273c(0x684,0x638,0x4e9,0x63e)](),z[_0x36273c(0x76f,0x709,0x6f7,0x67b)]())[_0x19c96f(0x8a,0x99,0xe,0x79)]()})['passthrough']();function buildDescription(_0xfb69d4){const _0x407180={_0x51bac9:0x11a,_0x4bdd39:0x21b,_0x59ae00:0x9e,_0x2fb293:0x377,_0xf988f2:0x4c7,_0x441956:0x355,_0x1415fd:0x111,_0x774fff:0x59,_0x551975:0x3d,_0x41f733:0xa8,_0x39afeb:0x142,_0x5df74e:0x62,_0x81b625:0x64,_0x498d28:0x267,_0x58affe:0x346},_0x4e19bb={_0x5b7022:0x1e7,_0x22f599:0x2b1};function _0x5deaad(_0x2830e0,_0x58df60,_0x5b0029,_0x37ffbc){return _0x36273c(_0x2830e0-0x198,_0x58df60-_0x4e19bb._0x5b7022,_0x58df60,_0x5b0029- -_0x4e19bb._0x22f599);}if(_0xfb69d4[_0x4c2180(_0x407180._0x51bac9,_0x407180._0x4bdd39,_0x407180._0x59ae00,0x12c)]===0x0)return['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.',_0x5deaad(_0x407180._0x2fb293,_0x407180._0xf988f2,0x3db,_0x407180._0x441956),'No\x20commands\x20are\x20currently\x20available.'][_0x4c2180(-_0x407180._0x1415fd,-0x143,-0x148,_0x407180._0x774fff)]('\x0a');function _0x4c2180(_0x4a8cb9,_0x5d2c6b,_0x999536,_0x468fb1){return _0x19c96f(_0x4a8cb9-0x12d,_0x5d2c6b-0x59,_0x5d2c6b,_0x4a8cb9- -0x11d);}const _0x31c8ef=['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.',_0x4c2180(_0x407180._0x551975,-_0x407180._0x41f733,-0x112,_0x407180._0x39afeb),_0x4c2180(-_0x407180._0x5df74e,0x88,-_0x407180._0x81b625,-0xf6),..._0xfb69d4[_0x5deaad(_0x407180._0x498d28,0x379,_0x407180._0x58affe,0x1cd)](_0x340c16=>_0x340c16[_0x4c2180(0x151,0xf5,0xf9,0x205)]?'-\x20'+_0x340c16['name']+'\x20'+_0x340c16[_0x4c2180(0x151,0x164,0x28a,-0x19)]+':\x20'+_0x340c16[_0x5deaad(0x125,0x3a1,0x246,0x2b2)]:'-\x20'+_0x340c16[_0x5deaad(0x362,0x35e,0x263,0x3a0)]+':\x20'+_0x340c16[_0x4c2180(-0x158,-0x75,-0x193,-0x1cc)])];return _0x31c8ef['join']('\x0a');}function createInvokeCommandTool(_0x1c3f28){const _0x3ee6ce={_0x4b29be:0x598,_0x1d0f6d:0x623,_0x4f5c0b:0x382,_0x35acf6:0x459,_0x4cc7ba:0x21d,_0x4964c6:0x265,_0x2cf129:0x41f,_0x3bbb95:0x550,_0x1591d8:0x546},_0x217828={_0x488aa0:0x41b,_0x57318f:0x329,_0x148a28:0x464,_0x253aa3:0x68,_0x386fac:0x64,_0x7df6d9:0x3a0,_0x266133:0x68,_0x3a4503:0xa0,_0x39bacc:0x89,_0x2c84d2:0x74,_0x76e64b:0x33b,_0x5689c6:0x314,_0x344ce3:0x170,_0x227991:0x1aa,_0xbe3cf3:0x2c9,_0x9254b:0x2af,_0x3e35d9:0x3a2,_0x44a8a9:0x68,_0x544bd7:0x122,_0x59d33c:0x1de,_0x539d1a:0x51,_0x5c526d:0xf0,_0x33d646:0x135,_0x2cb179:0x1a,_0x47d78f:0x7f,_0x57951c:0x2f};function _0x56c166(_0x1b4064,_0x47c54c,_0x483a8b,_0x5d9e64){return _0x36273c(_0x1b4064-0x4b,_0x47c54c-0x3b,_0x483a8b,_0x1b4064- -0x2cf);}const _0xf39c1d=new Map(_0x1c3f28[_0x505d0b(0x4db,0x4aa,_0x3ee6ce._0x4b29be,_0x3ee6ce._0x1d0f6d)]['map'](_0x5cbcf9=>[_0x5cbcf9['id'],_0x5cbcf9])),_0x2d290b=buildDescription(_0x1c3f28['commands']);function _0x505d0b(_0x2df586,_0x1c4480,_0x471b86,_0xcc5ccb){return _0x19c96f(_0x2df586-0x190,_0x1c4480-0xbd,_0x1c4480,_0x471b86-0x444);}return defineTool({'name':_0x56c166(0x44f,0x55e,_0x3ee6ce._0x4f5c0b,0x3f0),'description':_0x2d290b,'inputSchema':{'type':_0x56c166(0x320,_0x3ee6ce._0x35acf6,_0x3ee6ce._0x4cc7ba,_0x3ee6ce._0x4964c6),'properties':{'name':{'type':_0x505d0b(_0x3ee6ce._0x2cf129,0x5bc,_0x3ee6ce._0x3bbb95,_0x3ee6ce._0x1591d8)},'args':{'type':'string'}},'required':['name']},async *'execute'(_0xeb1cf8){const _0x4f4ef0=_0xf39c1d[_0x60d233(_0x217828._0x488aa0,0x322,_0x217828._0x57318f,_0x217828._0x148a28)](_0xeb1cf8[_0x10e6c7(_0x217828._0x253aa3,0x17d,-0xb9,_0x217828._0x386fac)]);if(!_0x4f4ef0){const _0x332e38=Array['from'](_0xf39c1d[_0x60d233(0x2f9,0x302,_0x217828._0x7df6d9,0x21f)]())[_0x10e6c7(0x92,-0x92,0x23,0x10c)](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0xeb1cf8[_0x10e6c7(_0x217828._0x266133,-_0x217828._0x3a4503,_0x217828._0x39bacc,-_0x217828._0x2c84d2)]+_0x60d233(0x328,0x334,0x394,0x37e)+_0x332e38,{'name':_0xeb1cf8[_0x60d233(0x1d8,0x339,0x20c,_0x217828._0x76e64b)]});}const _0x481f6d=await _0x1c3f28[_0x60d233(_0x217828._0x5689c6,_0x217828._0x344ce3,0x29e,0x2f5)](_0x4f4ef0);function _0x60d233(_0x155005,_0xbef017,_0xed8f29,_0x3d0289){return _0x56c166(_0xed8f29- -0x39,_0xbef017-0xdb,_0x155005,_0x3d0289-0x101);}const _0x589be4=_0xeb1cf8[_0x60d233(0x42,0x167,_0x217828._0x227991,_0x217828._0xbe3cf3)]??'';function _0x10e6c7(_0x194bee,_0x293c84,_0x2208fc,_0x59bbab){return _0x505d0b(_0x194bee-0x1bd,_0x2208fc,_0x194bee- -0x3be,_0x59bbab-0xbd);}const _0x5ebfee=renderCommandInstructions({'instructions':_0x481f6d[_0x60d233(0x346,0x380,_0x217828._0x9254b,_0x217828._0x3e35d9)],'argumentsText':_0x589be4,'argumentNames':_0x481f6d['arguments']});return yield createToolOutput(_0x5ebfee,{'id':_0x481f6d['id'],'name':_0x481f6d[_0x10e6c7(_0x217828._0x44a8a9,_0x217828._0x544bd7,-0x7d,_0x217828._0x59d33c)],'path':_0x4f4ef0[_0x10e6c7(0x8,_0x217828._0x539d1a,_0x217828._0x5c526d,_0x217828._0x33d646)][_0x10e6c7(0x124,_0x217828._0x2cb179,_0x217828._0x47d78f,_0x217828._0x57951c)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x2fa651,rename as _0x19d016,stat as _0x1539cd,writeFile as _0x87ec7f}from'fs/promises';import*as _0x15b52d from'path';function detectEol(_0x841ccf){const _0x2efc1f={_0xc49be0:0x29a,_0xc1f7c5:0x296,_0x3bcd06:0x309,_0x3f084b:0x1e9},_0x54ee08={_0x138d9d:0xbf,_0x14cc20:0x1b8},_0x1b0c1f={_0x2a3a42:0x1c4,_0xcd48ec:0x18b};function _0x43f2a6(_0x478550,_0x4a2d3f,_0x2107ea,_0xeba161){return _0x36273c(_0x478550-_0x1b0c1f._0x2a3a42,_0x4a2d3f-_0x1b0c1f._0xcd48ec,_0x478550,_0x4a2d3f- -0x47c);}function _0x12429d(_0x20b280,_0xf8100b,_0x511d36,_0x42c551){return _0x36273c(_0x20b280-_0x54ee08._0x138d9d,_0xf8100b-_0x54ee08._0x14cc20,_0x42c551,_0x511d36- -0x356);}return/\r\n/['test'](_0x841ccf[_0x43f2a6(0x3c9,_0x2efc1f._0xc49be0,0x41a,_0x2efc1f._0xc1f7c5)](_0x12429d(0x457,_0x2efc1f._0x3bcd06,0x340,0x43d)))?_0x43f2a6(0x178,0x208,0x198,_0x2efc1f._0x3f084b):'lf';}function normalizeToLf(_0x46ba15){return _0x46ba15['replace'](/\r\n/g,'\x0a');}function convertEol(_0x327dcf,_0x19be7d){const _0x33bdcf={_0x51cf5b:0x85,_0x531df6:0x32},_0x3a9284={_0x163494:0x105,_0x596500:0x1d6};function _0x2fc6c7(_0x3e8577,_0x165f6f,_0x27fa99,_0x58288e){return _0x19c96f(_0x3e8577-0x2d,_0x165f6f-_0x3a9284._0x163494,_0x58288e,_0x3e8577- -_0x3a9284._0x596500);}return _0x19be7d===_0x2fc6c7(-0x84,-_0x33bdcf._0x51cf5b,_0x33bdcf._0x531df6,-0x96)?_0x327dcf['replace'](/\n/g,'\x0d\x0a'):_0x327dcf;}async function atomicWrite(_0x395a52,_0x1bbabf){const _0x5827af={_0x24c375:0xaf,_0x37afaf:0x1f,_0x2b6232:0x159,_0x23bedd:0xfb,_0x4e86c1:0x1c2,_0x3723b6:0x1f6,_0x19d37a:0xe3,_0x297d12:0x146,_0x51fab4:0x125,_0x3bebec:0x1c0,_0x18c375:0x268},_0x49d52a={_0x35a92b:0x177,_0x3bbf96:0x310},_0x209e8b={_0x17555f:0x6d7},_0x5a653d=_0x15b52d[_0x631617(-_0x5827af._0x24c375,_0x5827af._0x37afaf,-_0x5827af._0x2b6232,-_0x5827af._0x23bedd)](_0x395a52);function _0x631617(_0x5a4f3b,_0xeae6ce,_0x2e25be,_0x2be5d4){return _0x36273c(_0x5a4f3b-0x135,_0xeae6ce-0xc,_0x2e25be,_0x5a4f3b- -_0x209e8b._0x17555f);}const _0x61b71a=_0x15b52d[_0x631617(-0x199,-0xf9,-_0x5827af._0x4e86c1,-0x8e)](_0x5a653d,_0x631617(-_0x5827af._0x3723b6,-_0x5827af._0x19d37a,-0xaa,-0x357)+_0x15b52d[_0x631617(-_0x5827af._0x297d12,-0x15c,-0x138,-0x1dc)](_0x395a52)+'.'+Date[_0x631617(-0xe4,-0x179,-0x1ca,-_0x5827af._0x51fab4)]()+'.'+Math[_0x10efdc(_0x5827af._0x3bebec,0x33e,0xb1,0x92)]()[_0x631617(0x3f,-0x57,0x41,-0xcd)](0x24)[_0x631617(-0x21e,-_0x5827af._0x18c375,-0x220,-0x1f2)](0x2));function _0x10efdc(_0x555c3d,_0x44f531,_0x3ce463,_0x258444){return _0x36273c(_0x555c3d-_0x49d52a._0x35a92b,_0x44f531-0x16f,_0x3ce463,_0x555c3d- -_0x49d52a._0x3bbf96);}await _0x87ec7f(_0x61b71a,_0x1bbabf),await _0x19d016(_0x61b71a,_0x395a52);}function sha256(_0x1af432){const _0xb0ab1={_0x37ca73:0x649,_0x118f16:0x7d2,_0x46ed6f:0x67f,_0x2e0fa8:0x492,_0x2addfe:0x4d1,_0x35024c:0x6e4,_0x7bdd61:0x5df},_0x2f6c92={_0x5bab8f:0x28},_0x202a7d={_0x3d68ba:0xc1,_0x145ba3:0x176};function _0x4517f4(_0xf765f0,_0x44b5ae,_0x4f8907,_0x31c92c){return _0x36273c(_0xf765f0-_0x202a7d._0x3d68ba,_0x44b5ae-0x13f,_0x44b5ae,_0x4f8907- -_0x202a7d._0x145ba3);}function _0xeed5aa(_0x33d926,_0x548cb6,_0x56de19,_0x306e31){return _0x19c96f(_0x33d926-0x14f,_0x548cb6-_0x2f6c92._0x5bab8f,_0x33d926,_0x56de19-0x434);}return createHash(_0xeed5aa(_0xb0ab1._0x37ca73,_0xb0ab1._0x118f16,_0xb0ab1._0x46ed6f,0x7bb))[_0x4517f4(0x44b,_0xb0ab1._0x2e0fa8,_0xb0ab1._0x2addfe,0x47d)](_0x1af432)[_0xeed5aa(0x719,_0xb0ab1._0x35024c,_0xb0ab1._0x7bdd61,0x62d)](_0xeed5aa(0x47a,0x284,0x3da,0x2ec));}function countLines(_0x49bdd2){const _0x3570fc={_0x10523d:0x731,_0x482c2e:0x5d1,_0x208b38:0x647,_0x4ab5cb:0x1da,_0x51da01:0x35e,_0x389540:0x303},_0x2da9c6={_0x3bd930:0x9b,_0x3910ad:0x1b7},_0x335ac3={_0x50baa3:0xa9};function _0x11c8e7(_0xb28dc0,_0x237f84,_0x3e84ac,_0xd59acb){return _0x19c96f(_0xb28dc0-0x1e,_0x237f84-_0x335ac3._0x50baa3,_0x237f84,_0xd59acb-0x4dc);}function _0x5fe702(_0x517651,_0x5d4227,_0x1bc553,_0xfced90){return _0x36273c(_0x517651-0x1dd,_0x5d4227-_0x2da9c6._0x3bd930,_0x5d4227,_0xfced90- -_0x2da9c6._0x3910ad);}const _0x3b8b3c=_0x49bdd2[_0x5fe702(0x729,0x748,_0x3570fc._0x10523d,_0x3570fc._0x482c2e)](/\n$/,'');return _0x3b8b3c[_0x11c8e7(_0x3570fc._0x208b38,0x5d9,0x806,0x713)]===0x0?0x0:_0x3b8b3c[_0x5fe702(_0x3570fc._0x4ab5cb,0x348,_0x3570fc._0x51da01,_0x3570fc._0x389540)]('\x0a')['length'];}function calculateLineNumbers(_0xa56eec,_0x2fa0e3,_0x129236,_0x52da76){const _0x1eaa28={_0x5ac821:0x4,_0x5257ff:0x11d,_0x204435:0x1a1,_0x3446f1:0x135,_0x1b26d8:0x3e4},_0x225610={_0x2ab1d4:0x142,_0x4c1cfb:0x3f0},_0x3f93d4={_0x4b2d12:0xeb,_0x4a4361:0x1ad},_0x37c399=_0xa56eec[_0x31a37b(0x1ec,_0x1eaa28._0x5ac821,_0x1eaa28._0x5257ff,0xc9)](0x0,_0x52da76)[_0x307d98(_0x1eaa28._0x204435,_0x1eaa28._0x3446f1,-0x27,0x1a7)]('\x0a')[_0x307d98(0x490,_0x1eaa28._0x1b26d8,0x51d,0x546)],_0x1fed86=countLines(_0x2fa0e3),_0x377b1f=countLines(_0x129236);function _0x307d98(_0x51cac2,_0x41032f,_0x4b0b16,_0x43a89e){return _0x19c96f(_0x51cac2-_0x3f93d4._0x4b2d12,_0x41032f-0x1ea,_0x43a89e,_0x41032f-_0x3f93d4._0x4a4361);}function _0x31a37b(_0x552d55,_0xd7cf87,_0x31e098,_0x23d85b){return _0x36273c(_0x552d55-0x77,_0xd7cf87-_0x225610._0x2ab1d4,_0x552d55,_0x23d85b- -_0x225610._0x4c1cfb);}return{'oldStartLine':_0x37c399,'oldEndLine':_0x37c399+_0x1fed86-0x1,'newStartLine':_0x37c399,'newEndLine':_0x37c399+_0x377b1f-0x1,'oldLineCount':_0x1fed86,'newLineCount':_0x377b1f};}function createFileEditTool(_0x5a372b={}){const _0x42fccb={_0x4cc2a0:0x77,_0x122365:0x247,_0x5f1d8f:0x3bf,_0x4afb51:0x635,_0x1916c3:0x4e1,_0x55ffd6:0x2cb,_0x4c1bee:0x38b,_0x35308f:0x114,_0xee5eba:0x61,_0x1283e6:0x64,_0xaabcd2:0x56e,_0x1816ad:0x14,_0x246d71:0x157,_0x1f24ed:0x39,_0x1bce65:0xc0,_0x587f01:0x16,_0x1bdf81:0x54,_0x58f8ff:0xdd,_0xb803de:0x9b,_0x2978c1:0x13e,_0x59d063:0xf4,_0x5e7ebd:0x18,_0xc5ab25:0x155},_0x300342={_0x53861c:0x573,_0x4f1b49:0x644,_0x23f345:0x5f5,_0x5b7202:0x3d9,_0x1eb090:0x616,_0x2c0ae3:0x646,_0x5772e5:0x7aa,_0x43fab2:0x4df,_0x42acf2:0x3e4,_0x381ad3:0x292,_0x479e54:0x6f2,_0x34d2c1:0x64c,_0x57e0f8:0x6f1,_0x5623d7:0x496,_0x2198f9:0x3fb,_0x566fb9:0x2ea,_0x4d0cd9:0x4c8,_0x441baf:0x2ce,_0x1d12a0:0x3ef,_0x45a584:0x3f3,_0x48b3e6:0x4e0,_0x2c9471:0x5ee,_0x36e128:0x75c,_0x33117b:0x61c,_0x47a0af:0x498,_0x296903:0x447,_0x2324aa:0x2c0,_0x30100b:0x40e,_0x3df099:0x2b4,_0x1f9b63:0x4cc,_0x551ef1:0x444,_0x5b4efe:0x4fb,_0x3f6b59:0x60f,_0x1dae1d:0x4bd,_0x2de1db:0x500,_0x5d091f:0x5be,_0x4bdc1d:0x5f0},_0x5cd86c={_0x3be77e:0x141,_0x169eaa:0x197},_0x4702d8={_0x37f591:0x2c6},_0x3968e5={_0x3e388a:0x13d,_0x16dc4d:0xf6},_0x41bc63=_0x15b52d['resolve'](_0x5a372b[_0x14cd03(0x13c,_0x42fccb._0x4cc2a0,0xcb,_0x42fccb._0x122365)]??process[_0x4c7d6b(0x3d6,0x2c4,0x49c,0x3e8)]()),_0x369c32=(_0x5a372b[_0x4c7d6b(_0x42fccb._0x5f1d8f,_0x42fccb._0x4afb51,0x533,_0x42fccb._0x1916c3)]??[])[_0x4c7d6b(0x293,_0x42fccb._0x55ffd6,0x380,_0x42fccb._0x4c1bee)](_0x5a215d=>_0x15b52d[_0x14cd03(-0x84,-0x1ac,-0x55,-0x177)](_0x5a215d));function _0x14cd03(_0x40083d,_0x1842ce,_0x197bcb,_0x2e3959){return _0x19c96f(_0x40083d-_0x3968e5._0x3e388a,_0x1842ce-0x6e,_0x197bcb,_0x40083d- -_0x3968e5._0x16dc4d);}function _0x4c7d6b(_0x4cbb25,_0x338078,_0x4d4b40,_0x367bbd){return _0x19c96f(_0x4cbb25-0x171,_0x338078-0x9,_0x338078,_0x367bbd-_0x4702d8._0x37f591);}const _0x57323f=_0x5a372b[_0x14cd03(-_0x42fccb._0x35308f,-_0x42fccb._0xee5eba,-0x123,_0x42fccb._0x1283e6)]??_0x4c7d6b(0x407,_0x42fccb._0xaabcd2,0x5f0,0x4c7);return defineTool({'name':_0x57323f,'description':_0x14cd03(_0x42fccb._0x1816ad,-0xdd,_0x42fccb._0x246d71,-0x10f),'inputSchema':{'type':_0x14cd03(-_0x42fccb._0x1f24ed,0x78,-_0x42fccb._0x1bce65,-0x177),'properties':{'filePath':{'type':'string'},'oldText':{'type':_0x14cd03(_0x42fccb._0x587f01,-0x32,_0x42fccb._0x1bdf81,_0x42fccb._0x58f8ff)},'newText':{'type':_0x14cd03(_0x42fccb._0x587f01,0x61,_0x42fccb._0xb803de,-0x13)},'dryRun':{'type':'boolean'}},'required':[_0x14cd03(-_0x42fccb._0x2978c1,-0x161,-_0x42fccb._0x59d063,-0xb),'oldText',_0x14cd03(_0x42fccb._0x5e7ebd,-0xfb,-0x3e,-_0x42fccb._0xc5ab25)]},async *'execute'(_0x276e26){const _0x282780={_0x15b381:0xf3},_0x2028c9=resolveAllowedPath(_0x41bc63,_0x369c32,_0x276e26['filePath']);await assertWorkspaceFile(_0x2028c9);const _0x3cf99f=await _0x1539cd(_0x2028c9),_0x5e33a2=await _0x2fa651(_0x2028c9);function _0x3320eb(_0x267498,_0x5efd3c,_0x4461ca,_0x3abead){return _0x4c7d6b(_0x267498-0x171,_0x4461ca,_0x4461ca-0xbc,_0x3abead-_0x282780._0x15b381);}const _0x217247=detectEol(_0x5e33a2),_0x1cb35f=normalizeToLf(_0x5e33a2['toString'](_0xb42687(0x6d8,_0x300342._0x53861c,0x5a0,0x4de))),_0x197e35=normalizeToLf(_0x276e26['oldText']),_0x26fc88=normalizeToLf(_0x276e26['newText']),_0x2185a7=_0x1cb35f[_0xb42687(0x71f,_0x300342._0x4f1b49,0x70b,0x68c)](_0x197e35);if(_0x2185a7===-0x1){const _0x1a641f=_0x197e35['slice'](0x0,0x64)[_0x3320eb(_0x300342._0x23f345,0x772,0x71d,0x60f)](/\n/g,'\x5cn');throw new ToolExecutionError(_0xb42687(0x3a4,_0x300342._0x5b7202,0x2d0,0x421)+_0x1a641f+(_0x197e35[_0xb42687(_0x300342._0x1eb090,_0x300342._0x2c0ae3,_0x300342._0x5772e5,0x548)]>0x64?_0xb42687(0x3ae,_0x300342._0x43fab2,0x51a,0x661):'')+'\x22',{'filePath':_0x276e26['filePath']});}const _0x50b7a5=_0x1cb35f[_0x3320eb(0x36d,0x453,_0x300342._0x42acf2,0x340)](0x0,_0x2185a7)+_0x26fc88+_0x1cb35f[_0xb42687(_0x300342._0x381ad3,0x396,0x310,0x467)](_0x2185a7+_0x197e35[_0xb42687(_0x300342._0x479e54,_0x300342._0x2c0ae3,_0x300342._0x34d2c1,_0x300342._0x57e0f8)]),_0x563843=convertEol(_0x50b7a5,_0x217247),_0x51a906=Buffer['from'](_0x563843,_0x3320eb(_0x300342._0x5623d7,_0x300342._0x2198f9,0x48e,0x51d)),_0x401e60=sha256(_0x5e33a2),_0x26bdd0=sha256(_0x51a906),_0x86a0b9=_0x401e60===_0x26bdd0;function _0xb42687(_0x893073,_0x461b1e,_0x126f13,_0x52ebf0){return _0x4c7d6b(_0x893073-_0x5cd86c._0x3be77e,_0x893073,_0x126f13-_0x5cd86c._0x169eaa,_0x461b1e-0x149);}const _0x3cd27e=_0x276e26[_0x3320eb(_0x300342._0x566fb9,0x4a8,_0x300342._0x4d0cd9,0x425)]??![];return!_0x3cd27e&&!_0x86a0b9&&await atomicWrite(_0x2028c9,_0x51a906),yield createToolOutput(_0x86a0b9?_0x3320eb(0x479,_0x300342._0x441baf,_0x300342._0x1d12a0,_0x300342._0x45a584):_0x3cd27e?'Validated\x20(dry\x20run:\x20no\x20write).':'Edit\x20applied\x20successfully.',{'filePath':_0x276e26[_0x3320eb(_0x300342._0x2198f9,0x2a7,_0x300342._0x48b3e6,0x371)],'resolvedPath':_0x2028c9,'created':_0x3cf99f[_0x3320eb(_0x300342._0x2c9471,_0x300342._0x36e128,_0x300342._0x34d2c1,_0x300342._0x33117b)][_0xb42687(_0x300342._0x47a0af,0x444,0x4f5,_0x300342._0x296903)](),'modified':_0x3cf99f[_0xb42687(_0x300342._0x2324aa,_0x300342._0x30100b,_0x300342._0x3df099,0x464)][_0xb42687(_0x300342._0x1f9b63,_0x300342._0x551ef1,_0x300342._0x5b4efe,0x3a1)](),'size':_0x3cf99f[_0x3320eb(_0x300342._0x3f6b59,_0x300342._0x1dae1d,0x390,_0x300342._0x2de1db)],'eol':_0x217247,'oldTextLength':_0x197e35['length'],'newTextLength':_0x26fc88[_0xb42687(0x4d1,0x646,0x7c4,0x751)],'bytesWritten':_0x86a0b9||_0x3cd27e?0x0:_0x51a906[_0x3320eb(0x577,_0x300342._0x5d091f,0x52b,_0x300342._0x4bdc1d)],'beforeSha':_0x401e60,'afterSha':_0x26bdd0,'dryRun':_0x3cd27e,'noChange':_0x86a0b9,'lineNumbers':calculateLineNumbers(_0x1cb35f,_0x197e35,_0x26fc88,_0x2185a7)}),void 0x0;}});}import{mkdir as _0x3de74d,rename as _0x2fc2df,stat as _0x6103b6,writeFile as _0x29c20f}from'fs/promises';function _0x36273c(_0x3345aa,_0x4738db,_0x1a0a69,_0x105849){const _0x2b1e61={_0x48b7d0:0x3a3};return _0x4951(_0x105849-_0x2b1e61._0x48b7d0,_0x1a0a69);}import*as _0x1b2235 from'path';async function atomicWrite2(_0x24659d,_0x526956){const _0x578aec={_0x241e15:0x4d7,_0x32ff5a:0x5b1,_0xed2e82:0x507,_0x6d5cd:0x1f3,_0x4f9d4a:0x33a,_0x33ac66:0x34f,_0x5825bd:0x250,_0x12a1eb:0x204,_0x24b317:0x4d2,_0x2250c8:0x477,_0x3071d1:0x185,_0x98cd0a:0x24e,_0x15fdf8:0x2ea,_0x10f9db:0x421,_0x34135a:0xb},_0x487449={_0x287c64:0x1dd,_0x42f45f:0x34b},_0x54adaf={_0x2efffd:0x96},_0x318d65=_0x1b2235[_0x5edb5e(_0x578aec._0x241e15,_0x578aec._0x32ff5a,_0x578aec._0xed2e82,0x401)](_0x24659d);await _0x3de74d(_0x318d65,{'recursive':!![]});const _0x460d0a=_0x1b2235[_0x14f266(_0x578aec._0x6d5cd,_0x578aec._0x4f9d4a,_0x578aec._0x33ac66,0x25c)](_0x318d65,_0x14f266(0x196,0xfe,0x110,0xfe)+_0x1b2235[_0x14f266(0x246,_0x578aec._0x5825bd,0xfb,_0x578aec._0x12a1eb)](_0x24659d)+'.'+Date[_0x5edb5e(0x5f8,0x64f,_0x578aec._0x24b317,_0x578aec._0x2250c8)]()+'.'+Math[_0x14f266(_0x578aec._0x3071d1,0x2a7,_0x578aec._0x98cd0a,0x1b2)]()[_0x14f266(0x3cb,_0x578aec._0x15fdf8,0x342,_0x578aec._0x10f9db)](0x24)[_0x14f266(0x16e,0x1c4,_0x578aec._0x34135a,0x21d)](0x2));function _0x5edb5e(_0x1bfbc5,_0x5ef2a9,_0xb50c2a,_0x1223bf){return _0x36273c(_0x1bfbc5-_0x54adaf._0x2efffd,_0x5ef2a9-0x164,_0x1223bf,_0xb50c2a- -0x121);}function _0x14f266(_0x1770fc,_0x1a9030,_0x2591ee,_0x1c864c){return _0x36273c(_0x1770fc-0xa4,_0x1a9030-_0x487449._0x287c64,_0x2591ee,_0x1770fc- -_0x487449._0x42f45f);}await _0x29c20f(_0x460d0a,_0x526956),await _0x2fc2df(_0x460d0a,_0x24659d);}function createFileNewTool(_0x313e58={}){const _0x15dc0b={_0x491347:0x202,_0x1ceb56:0x4f,_0x30b96a:0x8d,_0x5d6206:0x68,_0x40f66e:0x7b,_0xb7c21b:0x19,_0x520c6a:0x48,_0x3d289d:0x144,_0x5e4b8b:0x2ae,_0x2052e4:0x1c6,_0x2aebaa:0x72,_0x435916:0x74,_0xa00add:0x35,_0x39847e:0x187,_0x5ae789:0x8e,_0xdf49e8:0x73,_0x3a7409:0xe0,_0x36d5f5:0x4,_0x417cf0:0xf0,_0x203430:0x9},_0x50d955={_0xdb9917:0x28c,_0x58dbba:0x4f7,_0x52152a:0x4d5,_0x24b148:0x5e6,_0x2b8b4d:0x4b8,_0x4036b8:0x4fd,_0x4b5cac:0x396,_0x5d61b9:0x41f,_0x5dd1df:0x454,_0x4dc235:0x209,_0x242ab6:0x383,_0x4d1b5c:0x2c4,_0x1a169f:0x5f4,_0x29ee8a:0x602,_0x3a7cf0:0x5c6,_0x5c6fec:0x352,_0x172465:0x3b7,_0x409ab2:0x4a0,_0xa6603e:0x4e5,_0x7c417a:0x368,_0x4c32de:0x1f0,_0x5e1c0e:0x483,_0x5a7767:0x514,_0x31b72b:0x602,_0x353fe3:0x28a,_0x43d2e1:0x400,_0x17bf92:0x533},_0x776569={_0x4fe2f3:0xe4,_0x162df6:0x1c5},_0xaf495={_0x1d1245:0xe7},_0x1df317={_0x1a837f:0x195,_0x408e8e:0x98},_0x5bad39=_0x1b2235['resolve'](_0x313e58['defaultCwd']??process['cwd']());function _0x1ee215(_0x57f96e,_0x40acbc,_0x15af0d,_0x4a5d93){return _0x19c96f(_0x57f96e-_0x1df317._0x1a837f,_0x40acbc-0x174,_0x57f96e,_0x40acbc- -_0x1df317._0x408e8e);}function _0x791159(_0x4c3562,_0x5446d1,_0x5c10f9,_0x4b390e){return _0x36273c(_0x4c3562-0x183,_0x5446d1-_0xaf495._0x1d1245,_0x5446d1,_0x5c10f9- -0x684);}const _0x21494d=(_0x313e58[_0x1ee215(0x1b7,0x183,_0x15dc0b._0x491347,0x186)]??[])[_0x791159(_0x15dc0b._0x1ceb56,0xe3,-_0x15dc0b._0x30b96a,-0x1b7)](_0x3e9226=>_0x1b2235['resolve'](_0x3e9226)),_0x28852b=_0x313e58['name']??_0x1ee215(0x152,_0x15dc0b._0x5d6206,_0x15dc0b._0x40f66e,_0x15dc0b._0xb7c21b);return defineTool({'name':_0x28852b,'description':_0x1ee215(_0x15dc0b._0x520c6a,_0x15dc0b._0x3d289d,_0x15dc0b._0x5e4b8b,0x1ba),'inputSchema':{'type':_0x791159(-0x17f,-_0x15dc0b._0x2052e4,-0x95,-_0x15dc0b._0x2aebaa),'properties':{'filePath':{'type':_0x1ee215(0x19a,_0x15dc0b._0x435916,-_0x15dc0b._0xa00add,_0x15dc0b._0x39847e)},'content':{'type':_0x1ee215(0x150,0x74,_0x15dc0b._0x5ae789,-0xb7)}},'required':[_0x1ee215(_0x15dc0b._0xdf49e8,-_0x15dc0b._0x3a7409,-_0x15dc0b._0x36d5f5,0x86),_0x1ee215(-0x22a,-_0x15dc0b._0x417cf0,-_0x15dc0b._0x203430,-0x61)]},async *'execute'(_0x5522b8){const _0x1e4528={_0x69e6e0:0x7};function _0x32b5f4(_0x746086,_0x1ac3e3,_0x262fe3,_0x13ba7d){return _0x1ee215(_0x13ba7d,_0x262fe3-0x463,_0x262fe3-_0x776569._0x4fe2f3,_0x13ba7d-_0x776569._0x162df6);}const _0x5cc842=resolveAllowedPath(_0x5bad39,_0x21494d,_0x5522b8[_0x1c3d81(0x27d,0x4b3,0x398,_0x50d955._0xdb9917)]),_0x2d6654=await _0x6103b6(_0x5cc842)[_0x1c3d81(_0x50d955._0x58dbba,0x466,0x3cc,_0x50d955._0x52152a)](()=>!![])[_0x1c3d81(0x555,0x59d,_0x50d955._0x24b148,0x6be)](()=>![]),_0x432d33=Buffer[_0x32b5f4(_0x50d955._0x2b8b4d,0x43d,_0x50d955._0x4036b8,_0x50d955._0x4b5cac)](_0x5522b8[_0x32b5f4(0x31e,_0x50d955._0x5d61b9,0x373,_0x50d955._0x5dd1df)],'utf8');await atomicWrite2(_0x5cc842,_0x432d33);function _0x1c3d81(_0x25f7dc,_0x4bbe34,_0x3e0246,_0x5c5d32){return _0x1ee215(_0x4bbe34,_0x3e0246-0x478,_0x3e0246-_0x1e4528._0x69e6e0,_0x5c5d32-0x42);}return yield createToolOutput(_0x32b5f4(0x4a8,0x66f,0x5e4,0x4b6)+_0x5522b8['filePath']+'.',{'filePath':_0x5522b8[_0x32b5f4(0x4a7,_0x50d955._0x4dc235,_0x50d955._0x242ab6,_0x50d955._0x4d1b5c)],'resolvedPath':_0x5cc842,'bytes':_0x432d33[_0x32b5f4(_0x50d955._0x1a169f,0x483,_0x50d955._0x29ee8a,_0x50d955._0x3a7cf0)],'lines':_0x5522b8[_0x1c3d81(_0x50d955._0x5c6fec,0x240,0x388,_0x50d955._0x172465)][_0x1c3d81(_0x50d955._0x409ab2,_0x50d955._0xa6603e,_0x50d955._0x7c417a,_0x50d955._0x4c32de)](/\r?\n/)[_0x32b5f4(_0x50d955._0x5e1c0e,_0x50d955._0x5a7767,_0x50d955._0x31b72b,0x609)],'created':new Date()[_0x32b5f4(0x311,_0x50d955._0x353fe3,_0x50d955._0x43d2e1,_0x50d955._0x17bf92)](),'overwritten':_0x2d6654}),void 0x0;}});}import{readFile as _0x2c72f4,stat as _0x561541}from'fs/promises';import*as _0xd34a1e from'path';function stripUtfBom(_0x1aa6c5){const _0x4f7026={_0xd8f4b:0x23a},_0x139607={_0x5f59c2:0x177,_0xd77fb3:0x6f3},_0xfd3e2={_0x47dc65:0xfa};function _0x4cb6e4(_0x22c412,_0x17c01a,_0x4d5f9c,_0x225dd8){return _0x19c96f(_0x22c412-0x1b1,_0x17c01a-_0xfd3e2._0x47dc65,_0x225dd8,_0x4d5f9c-0x55d);}function _0x2f99e1(_0x571773,_0x5f349b,_0x38fe38,_0x3ed8f5){return _0x36273c(_0x571773-0xb7,_0x5f349b-_0x139607._0x5f59c2,_0x38fe38,_0x571773- -_0x139607._0xd77fb3);}return _0x1aa6c5[_0x2f99e1(0x47,0x13d,0x107,0x1af)](0x0)===0xfeff?_0x1aa6c5[_0x2f99e1(-_0x4f7026._0xd8f4b,-0x245,-0x2a2,-0x20a)](0x1):_0x1aa6c5;}function clampLine(_0x1de2ee,_0x11af2d){const _0x246b28={_0x89186:0x689,_0x1b358e:0x3cb,_0x40dd69:0x261,_0x2320ef:0x40b,_0x21cc0f:0x38e,_0x16a45e:0x329},_0xc5d356={_0x3274de:0x2f},_0x4bb9ee={_0x31e2f1:0x2f,_0xc1e56a:0x10};if(!Number[_0x275adc(0x5dc,0x5d1,0x5c3,_0x246b28._0x89186)](_0x1de2ee))return 0x1;function _0x13091a(_0x3a00dd,_0x2d222f,_0x57d938,_0x215262){return _0x19c96f(_0x3a00dd-_0x4bb9ee._0x31e2f1,_0x2d222f-_0x4bb9ee._0xc1e56a,_0x57d938,_0x2d222f-0x4c3);}function _0x275adc(_0x2c8be6,_0x2316fc,_0x53d4a1,_0x150bc4){return _0x36273c(_0x2c8be6-_0xc5d356._0x3274de,_0x2316fc-0x1e7,_0x2316fc,_0x53d4a1- -0x1a7);}return Math['max'](0x1,Math[_0x13091a(0x2d4,0x446,_0x246b28._0x1b358e,0x4a0)](Math[_0x275adc(_0x246b28._0x40dd69,_0x246b28._0x2320ef,_0x246b28._0x21cc0f,_0x246b28._0x16a45e)](_0x1de2ee),_0x11af2d));}function createFileReadTool(_0x2a9527={}){const _0x5053e6={_0x382738:0x5c,_0x5a6756:0xba,_0x25c688:0x12c,_0x2bd0c5:0x3e,_0x158c16:0x178,_0x4ce925:0x85,_0x32427e:0x214,_0x42d6e8:0x1b4,_0x39afe3:0x30f,_0x4969fb:0x100,_0x1259fc:0x8a,_0x695c66:0xf7,_0x4dad9a:0x201,_0x42491e:0x1d7,_0x587ba7:0x63,_0x6360a7:0xb3,_0x1860eb:0xf8,_0x35f394:0x235},_0x2a59bc={_0x4aae90:0x34c,_0xfa4ddf:0x2cb,_0x1cc862:0x5c3,_0xdd77b9:0x483,_0x155f43:0x4be,_0x38946f:0x3d9,_0x509f01:0x2c0,_0x3fbbf8:0x2c6,_0x29d9c8:0x537,_0x44446d:0xf8,_0x5652a6:0x236,_0x273db0:0x279,_0x3e77ae:0x225,_0x46a753:0x382,_0x3a8398:0x407,_0x3bb6ef:0x31c,_0x96737b:0x41a,_0x5673a6:0x553,_0x537eb9:0x360,_0x73600b:0x5e6,_0x38fe2e:0x52c,_0x2171d7:0x448,_0x5d13f7:0x545,_0x418466:0x412,_0xacd292:0x4e5,_0x56dd79:0x5fe,_0x5bd8e1:0x4b2,_0x5a3e7f:0x5bf,_0x2b1f68:0x5dd,_0x3d7eef:0x4fa,_0x3fdc75:0x4e5,_0x291601:0x52b,_0x45d1cc:0x655,_0x1c40c1:0x5e7,_0x264424:0x46c,_0x37dd62:0x174,_0x5544ba:0x3f9,_0x30f003:0x38c,_0x1250a5:0x398,_0x93f197:0x4e5,_0x18c6c0:0x5da,_0x32109d:0x62e},_0x5c1bac={_0x2bc3f9:0x4f},_0x60cb45={_0x3831a4:0x84},_0x8b40d7={_0x151248:0x1d,_0x6bdf05:0xf8};function _0x58188e(_0x479f86,_0x5c7788,_0x182086,_0x1ded20){return _0x19c96f(_0x479f86-_0x8b40d7._0x151248,_0x5c7788-_0x8b40d7._0x6bdf05,_0x182086,_0x1ded20- -0x16);}const _0x5d872e=_0xd34a1e[_0x58188e(-0xd,0x10,0xbd,_0x5053e6._0x382738)](_0x2a9527[_0x58188e(_0x5053e6._0x5a6756,_0x5053e6._0x25c688,0x39a,0x21c)]??process[_0x58188e(0x279,-_0x5053e6._0x2bd0c5,_0x5053e6._0x158c16,0x10c)]()),_0x2f5e9e=(_0x2a9527[_0x22289c(_0x5053e6._0x4ce925,-0x60,-0x69,0x169)]??[])[_0x58188e(_0x5053e6._0x2bd0c5,_0x5053e6._0x32427e,0xba,0xaf)](_0x4750f6=>_0xd34a1e[_0x22289c(-0x124,-0xe9,-0x177,-0x4)](_0x4750f6)),_0xc12e55=_0x2a9527[_0x22289c(-_0x5053e6._0x42d6e8,-0x13d,-_0x5053e6._0x39afe3,-_0x5053e6._0x4969fb)]??'FileRead';function _0x22289c(_0x4c4bde,_0x3ae782,_0x54c41c,_0x3cb67c){return _0x19c96f(_0x4c4bde-0x19c,_0x3ae782-_0x60cb45._0x3831a4,_0x3cb67c,_0x4c4bde- -0x196);}return defineTool({'name':_0xc12e55,'description':'Read\x20files\x20from\x20workspace.\x20Optionally\x20specify\x20line\x20ranges\x20(lineStart,\x20lineEnd).','inputSchema':{'type':'object','properties':{'path':{'type':_0x22289c(-_0x5053e6._0x1259fc,-_0x5053e6._0x695c66,-0xf,-0x201)},'lineStart':{'type':'number','description':_0x22289c(-_0x5053e6._0x4dad9a,-0x315,-0x172,-0x15c)},'lineEnd':{'type':_0x58188e(0xca,-0x134,-_0x5053e6._0x42491e,-_0x5053e6._0x587ba7),'description':_0x58188e(0x1bc,-0x77,0x52,_0x5053e6._0x6360a7)}},'required':[_0x22289c(-_0x5053e6._0x1860eb,-0x1f7,-_0x5053e6._0x35f394,-0x3a)]},async *'execute'(_0x12c6fd){function _0x13e62a(_0x5b235e,_0x36ef16,_0x247b59,_0x183f2b){return _0x22289c(_0x36ef16-0x444,_0x36ef16-0x93,_0x247b59-0x9d,_0x5b235e);}const _0x3ddef4=resolveAllowedPath(_0x5d872e,_0x2f5e9e,_0x12c6fd[_0x13e62a(0x1ec,_0x2a59bc._0x4aae90,0x1e1,0x1df)]);await assertWorkspaceFile(_0x3ddef4);const _0x158f1c=await _0x561541(_0x3ddef4),_0x30454e=await _0x2c72f4(_0x3ddef4);if(isProbablyBinary(_0x30454e))throw new ToolExecutionError(_0x13e62a(_0x2a59bc._0xfa4ddf,0x3fb,0x43e,0x2e5)+_0x12c6fd[_0xe9307e(_0x2a59bc._0x1cc862,_0x2a59bc._0xdd77b9,0x351,_0x2a59bc._0x155f43)],{'path':_0x12c6fd[_0xe9307e(0x346,0x483,0x367,0x398)]});let _0x39d3c0=_0x30454e[_0x13e62a(0x5fa,0x492,0x433,_0x2a59bc._0x38946f)](_0x13e62a(_0x2a59bc._0x509f01,0x412,_0x2a59bc._0x3fbbf8,_0x2a59bc._0x29d9c8));const _0x21b047=_0x39d3c0['charCodeAt'](0x0)===0xfeff;_0x39d3c0=stripUtfBom(_0x39d3c0);const _0x178490=_0x39d3c0[_0x13e62a(_0x2a59bc._0x44446d,_0x2a59bc._0x5652a6,_0x2a59bc._0x273db0,_0x2a59bc._0x3e77ae)](/\r?\n/),_0x35ef9d={'path':_0x12c6fd[_0xe9307e(0x5b2,0x483,0x5fa,_0x2a59bc._0x46a753)],'resolvedPath':_0x3ddef4,'created':_0x158f1c[_0x13e62a(_0x2a59bc._0x3a8398,0x511,0x673,0x5da)][_0xe9307e(_0x2a59bc._0x3bb6ef,_0x2a59bc._0x96737b,_0x2a59bc._0x5673a6,_0x2a59bc._0x537eb9)](),'modified':_0x158f1c['mtime']['toISOString'](),'size':_0x158f1c[_0xe9307e(_0x2a59bc._0x73600b,_0x2a59bc._0x38fe2e,_0x2a59bc._0x2171d7,_0x2a59bc._0x5d13f7)],'encoding':_0x13e62a(0x389,_0x2a59bc._0x418466,0x3d4,0x2bc),'bomStripped':_0x21b047,'truncated':![],'totalLines':_0x178490[_0x13e62a(0x395,_0x2a59bc._0xacd292,0x59d,0x55c)]};function _0xe9307e(_0x5f28b7,_0x594d7f,_0x123556,_0x43a423){return _0x58188e(_0x5f28b7-0xd3,_0x594d7f-_0x5c1bac._0x2bc3f9,_0x123556,_0x594d7f-0x3fb);}if(_0x12c6fd[_0xe9307e(_0x2a59bc._0x56dd79,_0x2a59bc._0x5bd8e1,_0x2a59bc._0x5a3e7f,0x379)]!==void 0x0||_0x12c6fd['lineEnd']!==void 0x0){const _0x419dd8=clampLine(_0x12c6fd['lineStart']??0x1,_0x178490['length']),_0x260812=clampLine(_0x12c6fd[_0xe9307e(0x45b,0x545,0x3de,_0x2a59bc._0x2b1f68)]??_0x178490[_0x13e62a(_0x2a59bc._0x3d7eef,_0x2a59bc._0x3fdc75,_0x2a59bc._0x291601,_0x2a59bc._0x45d1cc)],_0x178490[_0x13e62a(_0x2a59bc._0x1c40c1,0x4e5,0x52b,_0x2a59bc._0x264424)]),_0x1d4741=Math[_0x13e62a(_0x2a59bc._0x37dd62,0x231,0x39a,0x23f)](_0x419dd8,_0x260812),_0x2a60a7=Math[_0x13e62a(0x35a,_0x2a59bc._0x5544ba,0x381,0x2d0)](_0x419dd8,_0x260812),_0xaa8698=_0x178490[_0x13e62a(0x202,0x235,0x24d,0x33b)](_0x1d4741-0x1,_0x2a60a7)[_0x13e62a(0x4eb,0x373,0x2c9,_0x2a59bc._0x30f003)]((_0x2a1f36,_0x490f60)=>_0x1d4741+_0x490f60+'|'+_0x2a1f36)['join']('\x0a');return yield createToolOutput(_0xaa8698,{..._0x35ef9d,'lineRange':{'lineStart':_0x1d4741,'lineEnd':_0x2a60a7,'linesTotal':_0x178490[_0x13e62a(_0x2a59bc._0x1250a5,_0x2a59bc._0x93f197,_0x2a59bc._0x18c6c0,_0x2a59bc._0x32109d)]}}),void 0x0;}return yield createToolOutput(_0x39d3c0,_0x35ef9d),void 0x0;}});}import{stat as _0x583d66}from'fs/promises';import*as _0x4759c1 from'path';import{execSync,spawn as _0xfe9ed1}from'child_process';import{existsSync}from'fs';import{stat as _0x4f450a}from'fs/promises';import*as _0x55ab5f from'os';import*as _0x24c33b from'path';import{rgPath as _0x4823bf}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x2322fb={_0x2a77cd:0x183,_0x5dfc5c:0x1ff,_0x2c4a35:0x302,_0x591c5e:0x358,_0x2352ce:0x13f,_0x1ae03b:0x186,_0x55ac94:0x81,_0x3dec8d:0x136,_0x112427:0x18d,_0x7ff20e:0x1eb,_0x533143:0x235,_0x535d27:0x259,_0x56dd9e:0x35,_0x5ec0e4:0xb4,_0x3e4df0:0x94,_0x3b679c:0xc6,_0x362229:0x319,_0x157088:0x3b6,_0x2820ef:0x4bb,_0x4ef5aa:0x5d,_0x1a2bd0:0x2f3,_0x2d9b43:0x3cd,_0x2fb2de:0x41b,_0x32e6fd:0x3a9,_0x26d784:0x378,_0x2d8a06:0x166,_0x543555:0x181,_0x2c6bab:0x72,_0x393543:0x48,_0xa0647a:0x56,_0x4cfddd:0xf8,_0x488ea1:0x39,_0x3cb0ff:0x117,_0x3dd7ec:0x6a,_0x3766b8:0xc1,_0x3d091e:0x161,_0x368f3c:0x10f,_0x2e3ca2:0xfb,_0x5f5718:0x16f,_0x166b42:0x91,_0x649d6c:0x458,_0xb4ae7e:0x413,_0x19c490:0x36e,_0x116b4a:0x4e6,_0x446fe1:0x18,_0x6c3aa4:0x1f,_0x933fdd:0xe1},_0x2a2bf8={_0x4a2089:0x1aa,_0x5d1317:0xe4},_0x1d0127={_0x44f9d3:0xe},_0x166c2=_0x55ab5f[_0x56cd72(_0x2322fb._0x2a77cd,_0x2322fb._0x5dfc5c,_0x2322fb._0x2c4a35,_0x2322fb._0x591c5e)]()===_0x56cd72(0x344,_0x2322fb._0x2352ce,0x1c2,0x40);function _0x42903d(_0x1b6246,_0x22a761,_0x101833,_0x42c765){return _0x19c96f(_0x1b6246-_0x1d0127._0x44f9d3,_0x22a761-0x132,_0x1b6246,_0x42c765- -0x69);}const _0x1e73f2=_0x166c2?[_0x24c33b['join'](process[_0x42903d(_0x2322fb._0x1ae03b,_0x2322fb._0x55ac94,_0x2322fb._0x3dec8d,_0x2322fb._0x112427)]['LOCALAPPDATA']||'',_0x56cd72(_0x2322fb._0x7ff20e,_0x2322fb._0x533143,_0x2322fb._0x535d27,0x341),_0x42903d(-_0x2322fb._0x56dd9e,_0x2322fb._0x5ec0e4,-_0x2322fb._0x3e4df0,_0x2322fb._0x3b679c),_0x56cd72(_0x2322fb._0x362229,0x326,_0x2322fb._0x157088,_0x2322fb._0x2820ef)),_0x24c33b[_0x42903d(-0xb6,0xc1,0x6,-_0x2322fb._0x4ef5aa)](process[_0x56cd72(0x367,0x27e,0x370,_0x2322fb._0x1a2bd0)][_0x56cd72(_0x2322fb._0x2d9b43,0x3ed,0x3cd,0x505)]||'','ripgrep','rg.exe'),_0x24c33b['join'](process['env'][_0x56cd72(_0x2322fb._0x2fb2de,_0x2322fb._0x32e6fd,_0x2322fb._0x26d784,0x215)]||'',_0x42903d(_0x2322fb._0x2d8a06,0xc8,_0x2322fb._0x543555,0x3c),'rg.exe')]:['/opt/homebrew/bin/rg',_0x42903d(0x1ba,-0xd1,-_0x2322fb._0x2c6bab,_0x2322fb._0x393543),_0x56cd72(-_0x2322fb._0xa0647a,_0x2322fb._0x2d8a06,_0x2322fb._0x4cfddd,-_0x2322fb._0x488ea1),'/bin/rg'];function _0x56cd72(_0x50ae1c,_0x169e32,_0x44bdc5,_0x5d0d02){return _0x36273c(_0x50ae1c-_0x2a2bf8._0x4a2089,_0x169e32-_0x2a2bf8._0x5d1317,_0x5d0d02,_0x44bdc5- -0x3b8);}for(const _0x2b31e2 of _0x1e73f2){if(existsSync(_0x2b31e2))return _0x2b31e2;}try{const _0x9a9373=_0x166c2?_0x42903d(0x1dc,0x15c,_0x2322fb._0x3cb0ff,_0x2322fb._0x3dd7ec):_0x56cd72(0x1c3,_0x2322fb._0x3766b8,_0x2322fb._0x3d091e,0x1d2),_0xadb2ec=execSync(_0x9a9373,{'encoding':_0x42903d(0x59,0x249,_0x2322fb._0x368f3c,_0x2322fb._0x2e3ca2),'stdio':[_0x42903d(-0x20,-_0x2322fb._0x5f5718,_0x2322fb._0x166b42,-0xd7),'pipe',_0x56cd72(_0x2322fb._0x649d6c,_0x2322fb._0xb4ae7e,_0x2322fb._0x19c490,0x35e)]})[_0x56cd72(0x296,0x448,0x3e1,_0x2322fb._0x116b4a)]()[_0x42903d(_0x2322fb._0x446fe1,-_0x2322fb._0x6c3aa4,-0xde,-_0x2322fb._0x933fdd)](/\r?\n/)[0x0];if(_0xadb2ec&&existsSync(_0xadb2ec))return _0xadb2ec;}catch{return null;}return null;}async function filepath(){const _0x4ab635={_0x5c7025:0x58,_0x3cc16e:0x45,_0x330557:0x7c,_0x152c24:0x71};if(cachedRgPath)return cachedRgPath;if(_0x4823bf&&existsSync(_0x4823bf))return cachedRgPath=_0x4823bf,_0x4823bf;const _0x4dfafd=findSystemRipgrep();function _0x3f9ed7(_0x246513,_0x5aa8d7,_0x24a2fa,_0x4d6b32){return _0x36273c(_0x246513-0x47,_0x5aa8d7-0x24,_0x5aa8d7,_0x24a2fa- -0x64e);}if(!_0x4dfafd)throw new Error(_0x3f9ed7(_0x4ab635._0x5c7025,-_0x4ab635._0x3cc16e,_0x4ab635._0x330557,-_0x4ab635._0x152c24));return cachedRgPath=_0x4dfafd,_0x4dfafd;}async function*files(_0x4f01ba){const _0x302c09={_0x4fab39:0x27,_0x477091:0xa6,_0x2ba4b4:0x248,_0x10a9f1:0x716,_0x1d0c84:0x61c,_0x277628:0x51f,_0x32fbb8:0x67a,_0x809dbb:0xb7,_0x198a2b:0x57,_0x427714:0x77f,_0x4335d4:0x731,_0x1450ef:0x661,_0x304bcc:0x6eb,_0x10943f:0x7b,_0xddef84:0x122,_0x5d6403:0x152,_0x5e9d0b:0x4ea,_0x548fa9:0x261,_0x4c8786:0x23d,_0x401003:0x444,_0x2711ea:0x59a,_0x342936:0x8fc,_0x1da6d7:0x7ee,_0x2040ee:0x7bf,_0x194727:0x7e3},_0x2d0074={_0x46531f:0x4f0},_0x4cddc1=await filepath(),_0x23761d=await _0x4f450a(_0x4f01ba[_0x411406(0x164,0x27,_0x302c09._0x4fab39,_0x302c09._0x477091)])[_0x411406(_0x302c09._0x2ba4b4,0x2dd,0x2d9,0x311)](()=>null);if(!_0x23761d?.['isDirectory']())throw Object[_0x2914cd(_0x302c09._0x10a9f1,0x85a,_0x302c09._0x1d0c84,0x6f8)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x4f01ba[_0x2914cd(0x643,0x648,_0x302c09._0x277628,_0x302c09._0x32fbb8)]+'\x27'),{'code':'ENOENT'});function _0x411406(_0x50b222,_0x4b1253,_0x2694de,_0x568580){return _0x36273c(_0x50b222-0x22,_0x4b1253-0x67,_0x2694de,_0x50b222- -_0x2d0074._0x46531f);}const _0x5dd12f=['--files','--follow',_0x411406(_0x302c09._0x809dbb,0xea,_0x302c09._0x198a2b,0x13c),'--glob=!.git/*'];function _0x2914cd(_0x35adbf,_0x45ee82,_0xe16d8f,_0x1c2246){return _0x19c96f(_0x35adbf-0x179,_0x45ee82-0x1e6,_0x35adbf,_0x1c2246-0x558);}for(const _0x39cbb8 of _0x4f01ba[_0x2914cd(_0x302c09._0x427714,_0x302c09._0x4335d4,0x823,0x6bb)]??[]){_0x5dd12f[_0x2914cd(0x7aa,_0x302c09._0x1450ef,0x751,_0x302c09._0x304bcc)](_0x411406(_0x302c09._0x10943f,_0x302c09._0xddef84,0x5c,-0x45)+_0x39cbb8);}const _0x1049aa=_0xfe9ed1(_0x4cddc1,_0x5dd12f,{'cwd':_0x4f01ba['cwd'],'stdio':['ignore',_0x411406(-0x2c,_0x302c09._0x5d6403,0x6b,-0x12c),_0x2914cd(0x523,0x5a1,0x57e,_0x302c09._0x5e9d0b)]});let _0x8379c1='';for await(const _0x418f6d of _0x1049aa[_0x411406(_0x302c09._0x548fa9,0x28e,_0x302c09._0x4c8786,0x3c6)]??[]){_0x8379c1+=_0x418f6d['toString']();const _0x42255e=_0x8379c1[_0x2914cd(0x54e,_0x302c09._0x401003,_0x302c09._0x2711ea,0x4e0)](/\r?\n/);_0x8379c1=_0x42255e[_0x411406(0x19a,0x157,0x2ec,0x34)]()??'';for(const _0x390ba7 of _0x42255e){if(_0x390ba7['length']>0x0)yield _0x390ba7;}}_0x8379c1[_0x2914cd(_0x302c09._0x342936,0x75c,_0x302c09._0x1da6d7,_0x302c09._0x2040ee)]()[_0x411406(0x279,0x3d0,0x206,0x360)]>0x0&&(yield _0x8379c1[_0x2914cd(0x6bc,_0x302c09._0x194727,0x7a0,_0x302c09._0x2040ee)]());}function parseMatchLine(_0x1cacf3,_0x409471){const _0x1cb1ab={_0x51aacf:0x6,_0x47bd26:0x269,_0x573cfc:0x3a1,_0x53cda2:0x373,_0x4f331d:0x2b5,_0x13da29:0xe1,_0x2f0718:0x1e9,_0x488fe3:0x8e,_0x30a276:0x260,_0x178f96:0x33c,_0x11c570:0x2a2,_0x353d59:0x232,_0x5377a8:0x2b6,_0x5c353f:0x1d0,_0x3aadc4:0x2e8,_0x296725:0x3fd,_0x44bed6:0x7f,_0x4a8306:0x99,_0x477fca:0xde,_0x24b7a9:0xd7},_0x5f1a48={_0x6bb85e:0x10b,_0x3f84f6:0x689};if(!_0x1cacf3||_0x1cacf3==='--')return null;function _0x3e512f(_0x427154,_0x1c7b60,_0x1d895a,_0x41b5fa){return _0x19c96f(_0x427154-0xc4,_0x1c7b60-0x1b7,_0x427154,_0x41b5fa-0x7e);}const _0x3c738a=_0x1cacf3[_0x3e512f(-0x11a,0xc0,0xa8,_0x1cb1ab._0x51aacf)]('|');if(_0x409471&&_0x3c738a[_0x3e512f(_0x1cb1ab._0x47bd26,_0x1cb1ab._0x573cfc,_0x1cb1ab._0x53cda2,_0x1cb1ab._0x4f331d)]>=0x4&&Number[_0x46d7a0(_0x1cb1ab._0x13da29,_0x1cb1ab._0x2f0718,0x169,_0x1cb1ab._0x488fe3)](Number[_0x3e512f(0x384,_0x1cb1ab._0x30a276,_0x1cb1ab._0x178f96,0x290)](_0x3c738a[0x2]??'',0xa))){const _0x438797=Number[_0x3e512f(0x2a2,0x3f7,0x2b1,0x290)](_0x3c738a[0x1]??'',0xa);if(!Number[_0x3e512f(_0x1cb1ab._0x11c570,_0x1cb1ab._0x353d59,0x392,_0x1cb1ab._0x5377a8)](_0x438797)||!_0x3c738a[0x0])return null;return{'filePath':_0x3c738a[0x0],'lineNum':_0x438797,'lineText':_0x3c738a[_0x46d7a0(-_0x1cb1ab._0x5c353f,-0x22a,-_0x1cb1ab._0x3aadc4,-0x2d1)](0x3)['join']('|')};}function _0x46d7a0(_0x32f4c1,_0x35d984,_0x1a8a85,_0x52f8fa){return _0x36273c(_0x32f4c1-0x184,_0x35d984-_0x5f1a48._0x6bb85e,_0x35d984,_0x32f4c1- -_0x5f1a48._0x3f84f6);}if(_0x3c738a[_0x3e512f(_0x1cb1ab._0x296725,0x302,0x1dc,_0x1cb1ab._0x4f331d)]>=0x3){const _0x5eb3b1=Number[_0x3e512f(0x132,0x3f1,0x33b,0x290)](_0x3c738a[0x1]??'',0xa);if(!Number[_0x46d7a0(0xe1,-_0x1cb1ab._0x44bed6,_0x1cb1ab._0x4a8306,-0x3c)](_0x5eb3b1)||!_0x3c738a[0x0])return null;return{'filePath':_0x3c738a[0x0],'lineNum':_0x5eb3b1,'lineText':_0x3c738a['slice'](0x2)[_0x3e512f(0x1c,_0x1cb1ab._0x477fca,-_0x1cb1ab._0x24b7a9,0x8a)]('|'),..._0x409471?{'isContext':!![]}:{}};}return null;}async function search(_0x4d95e8){const _0x53e116={_0x123141:0x22f,_0x2a3feb:0x728,_0x5daa60:0xfa,_0x1b76c7:0x3ae,_0x31645f:0x244,_0x36d04c:0x43e,_0x5d4e74:0x79e,_0x30f36c:0x676,_0x3f6624:0x710,_0x47b05e:0x72e,_0x5eb6ae:0x667,_0x6f0881:0x67c,_0x3b2628:0x487,_0x5fdf8b:0x225,_0x282c8b:0x1b2,_0x3ff5d5:0x21d,_0xe3c2ef:0x150,_0x129ea6:0x26,_0x135f5c:0x225,_0x21b3dc:0x69,_0x534708:0x538,_0x5f2985:0x3e6,_0x43c6df:0x54,_0x3d3811:0x1d2,_0x34c8ca:0x36,_0x583b61:0x1f4,_0x1e2eb0:0x744,_0xed18f5:0xf,_0x57c715:0xd,_0x517237:0xd0,_0x36c030:0x6b,_0x25648a:0x65e,_0x350e4c:0x4f7,_0x5464cf:0x7aa,_0x102715:0x77c,_0x4a0c78:0x3a3,_0x19a05e:0x33e,_0x26e79e:0xe4,_0x3b4c3c:0x1bd,_0x25afe6:0x1d1,_0x2d638d:0x22e,_0x165e77:0x298,_0x36c3e3:0x1df,_0x427fb0:0x43,_0x19fa38:0x6bb,_0x160d69:0x130,_0x40fd23:0xba},_0x32f592={_0x59f84e:0xfa,_0x405ce9:0x1ec,_0x22f625:0x190,_0x41d0f7:0x2d9,_0x2582f1:0x152,_0x1edc37:0xce,_0x3d7cf7:0xc,_0x25a335:0x55,_0x32cfca:0x235,_0x48f4d6:0x3,_0x42e481:0x3,_0x44ef61:0x119,_0x3da4e0:0x33,_0x53fe6c:0x17f,_0x401d73:0xe1,_0x59fe8c:0x20,_0x16c2d3:0x1e,_0xaa806:0xda,_0x15da66:0x3a,_0x45f489:0x1ce,_0x272f93:0x12,_0x3d7822:0x113},_0x40eb7e={_0x50215f:0x20a,_0x2aca1a:0xe0,_0x1fa61d:0x197},_0x2b38c9={_0x1ac01f:0x1b0,_0x1eac3f:0xcb},_0x3521ce={_0xf0fb21:0xb6},_0x2f8344={_0x49e244:0x1e1,_0x22713b:0x528},_0x1fd082=await filepath();if(_0x4d95e8[_0x2ebeb1(0x2f2,0x144,0x236,_0x53e116._0x123141)]){const _0x4bc9ab=await _0x4f450a(_0x4d95e8[_0x5881f3(0x60b,0x719,0x7c1,_0x53e116._0x2a3feb)])[_0x2ebeb1(_0x53e116._0x5daa60,0xf3,_0x53e116._0x1b76c7,_0x53e116._0x31645f)](()=>null);if(!_0x4bc9ab?.[_0x5881f3(_0x53e116._0x36d04c,0x556,0x559,0x647)]())throw Object['assign'](new Error(_0x5881f3(0x784,0x754,0x6e1,0x816)+_0x4d95e8[_0x5881f3(_0x53e116._0x5d4e74,0x719,0x59a,0x68a)]+'\x27'),{'code':_0x5881f3(0x7ee,_0x53e116._0x30f36c,0x741,0x747)});}else{const _0x2feb80=await _0x4f450a(_0x4d95e8['cwd'])[_0x5881f3(_0x53e116._0x3f6624,_0x53e116._0x47b05e,_0x53e116._0x5eb6ae,_0x53e116._0x6f0881)](()=>null);if(!_0x2feb80?.[_0x5881f3(_0x53e116._0x3b2628,0x553,0x4d3,0x4dd)]())throw Object[_0x2ebeb1(_0x53e116._0x5fdf8b,_0x53e116._0x282c8b,_0x53e116._0x3ff5d5,0x1de)](new Error(_0x2ebeb1(-_0x53e116._0xe3c2ef,-0x8c,0xf4,-_0x53e116._0x129ea6)+_0x4d95e8['cwd']+'\x27'),{'code':_0x2ebeb1(0xe9,_0x53e116._0x135f5c,_0x53e116._0x21b3dc,0x18c)});}const _0x29903b=[_0x5881f3(0x66e,_0x53e116._0x534708,_0x53e116._0x5f2985,0x586),'--field-match-separator=|',_0x2ebeb1(0xb7,0x17,0x1f,_0x53e116._0x43c6df),_0x2ebeb1(_0x53e116._0x3d3811,_0x53e116._0x34c8ca,_0x53e116._0x583b61,0x142),_0x4d95e8[_0x5881f3(0x478,0x5d5,_0x53e116._0x1e2eb0,0x4db)]],_0x349254=typeof _0x4d95e8[_0x2ebeb1(0x10e,_0x53e116._0xed18f5,-0x5d,_0x53e116._0x57c715)]===_0x5881f3(0x54a,0x4db,0x521,0x3a6)&&_0x4d95e8['context']>0x0;_0x349254&&_0x29903b[_0x2ebeb1(0x2fc,_0x53e116._0x517237,_0x53e116._0x36c030,0x1d1)]('-C',String(_0x4d95e8[_0x5881f3(_0x53e116._0x25648a,_0x53e116._0x350e4c,0x645,0x3c7)]),_0x2ebeb1(0x71,_0x53e116._0x21b3dc,0x9b,0x2c));_0x4d95e8[_0x5881f3(_0x53e116._0x5464cf,0x68b,0x701,_0x53e116._0x102715)]&&!_0x4d95e8[_0x2ebeb1(_0x53e116._0x4a0c78,_0x53e116._0x19a05e,_0x53e116._0x26e79e,0x22f)]&&_0x29903b[_0x2ebeb1(0x313,0x303,_0x53e116._0x3b4c3c,_0x53e116._0x25afe6)](_0x2ebeb1(_0x53e116._0x2d638d,0x2b5,0x2e9,_0x53e116._0x165e77),_0x4d95e8[_0x2ebeb1(_0x53e116._0x36c3e3,0x232,_0x53e116._0x427fb0,0x1a1)]);function _0x2ebeb1(_0x49a700,_0x1cad5c,_0x1aff95,_0x15578c){return _0x19c96f(_0x49a700-0x4c,_0x1cad5c-0xdb,_0x49a700,_0x15578c-0x3e);}function _0x5881f3(_0x1af1c3,_0x4a06aa,_0x4b62d0,_0x45042d){return _0x19c96f(_0x1af1c3-0x14,_0x4a06aa-_0x2f8344._0x49e244,_0x4b62d0,_0x4a06aa-_0x2f8344._0x22713b);}return _0x29903b[_0x5881f3(0x765,_0x53e116._0x19fa38,0x553,0x784)](_0x4d95e8['file']??_0x4d95e8[_0x2ebeb1(0x1fb,_0x53e116._0x160d69,_0x53e116._0x40fd23,0x160)]),await new Promise((_0x4cb2ec,_0x231738)=>{const _0x294141={_0x3f8a52:0x521,_0x5d5082:0x431,_0x22fb7d:0x404,_0x4f0270:0x476},_0x539b17={_0xbe8844:0x3c1,_0x477ffb:0x4a9},_0x26d3de={_0x3c43af:0x1c1};function _0x5ed4f1(_0x4bfdea,_0x1c7bf9,_0x3b1dc6,_0x20e681){return _0x2ebeb1(_0x3b1dc6,_0x1c7bf9-_0x3521ce._0xf0fb21,_0x3b1dc6-0x69,_0x4bfdea- -0x25a);}const _0x16397e=_0xfe9ed1(_0x1fd082,_0x29903b,{'cwd':_0x4d95e8[_0x5ed4f1(-_0x32f592._0x59f84e,-0x204,-_0x32f592._0x405ce9,-0xfd)],'stdio':[_0x50cdb3(-0x13,0x167,_0x32f592._0x22f625,_0x32f592._0x41d0f7),_0x50cdb3(-0x27c,-0xfb,-_0x32f592._0x2582f1,-_0x32f592._0x1edc37),_0x50cdb3(_0x32f592._0x3d7cf7,-0xfb,_0x32f592._0x25a335,-_0x32f592._0x32cfca)]});function _0x50cdb3(_0x3878fc,_0x10ca8e,_0xb9bd1e,_0x1c77c5){return _0x2ebeb1(_0x1c77c5,_0x10ca8e-0x1c0,_0xb9bd1e-_0x2b38c9._0x1ac01f,_0x10ca8e- -_0x2b38c9._0x1eac3f);}let _0x508be4='',_0xc67f85='';_0x16397e[_0x5ed4f1(_0x32f592._0x48f4d6,-_0x32f592._0x42e481,-0x86,_0x32f592._0x44ef61)]?.['on'](_0x5ed4f1(-0x1ad,-0x2b4,-_0x32f592._0x3da4e0,-_0x32f592._0x53fe6c),_0x5a4131=>{const _0x401c9a={_0x45fb6f:0x1ac};function _0x3953aa(_0x16cc4c,_0x23f0ac,_0x2f0431,_0x5b771e){return _0x5ed4f1(_0x2f0431-0x1cf,_0x23f0ac-_0x401c9a._0x45fb6f,_0x23f0ac,_0x5b771e-0x189);}_0x508be4+=_0x5a4131[_0x3953aa(_0x40eb7e._0x50215f,_0x40eb7e._0x2aca1a,_0x40eb7e._0x1fa61d,0x187)]();}),_0x16397e[_0x5ed4f1(-0x3f,_0x32f592._0x401d73,-_0x32f592._0x59fe8c,-0x1c)]?.['on'](_0x50cdb3(0x28,-_0x32f592._0x16c2d3,_0x32f592._0xaa806,_0x32f592._0x15da66),_0x4a073c=>{function _0x4b745c(_0x322d81,_0x148369,_0x253ab8,_0x2de256){return _0x50cdb3(_0x322d81-_0x26d3de._0x3c43af,_0x322d81-0x23e,_0x253ab8-0x96,_0x2de256);}_0xc67f85+=_0x4a073c[_0x4b745c(0x395,0x2f3,_0x539b17._0xbe8844,_0x539b17._0x477ffb)]();}),_0x16397e['on'](_0x50cdb3(0x91,0x10d,0x1e7,_0x32f592._0x45f489),_0x1815d9=>{const _0x464f73={_0x13b2ae:0x664,_0x54d0b6:0x63,_0xec5e92:0x1c1};if(_0x1815d9===0x1&&_0x508be4===''){_0x4cb2ec([]);return;}if(_0x1815d9!==0x0&&_0x1815d9!==0x1){_0x231738(new Error(_0x4604e8(0x4d8,_0x294141._0x3f8a52,0x474,_0x294141._0x5d5082)+_0xc67f85));return;}const _0x2031d7=_0x4d95e8[_0x4604e8(0x555,0x691,0x6ad,_0x294141._0x22fb7d)]??0x64;function _0x4604e8(_0x303ba5,_0xa66191,_0x3f1cc9,_0x383d69){return _0x5ed4f1(_0x303ba5-_0x464f73._0x13b2ae,_0xa66191-_0x464f73._0x54d0b6,_0x3f1cc9,_0x383d69-_0x464f73._0xec5e92);}function _0x3f29e7(_0x56c9cf,_0x5f1317,_0x25bcbd,_0x4892fe){return _0x50cdb3(_0x56c9cf-0xf9,_0x4892fe-0x48e,_0x25bcbd-0x16,_0x56c9cf);}const _0x52787f=[];for(const _0x13cb38 of _0x508be4[_0x3f29e7(_0x294141._0x4f0270,0x443,0x3b0,0x389)](/\r?\n/)){if(_0x52787f['length']>=_0x2031d7)break;const _0x3567da=parseMatchLine(_0x13cb38,_0x349254);if(_0x3567da)_0x52787f['push'](_0x3567da);}_0x4cb2ec(_0x52787f);}),_0x16397e['on'](_0x50cdb3(-0xd,-_0x32f592._0x272f93,-0xd,_0x32f592._0x3d7822),_0x231738);});}function createGlobTool(_0x3abeb5={}){const _0x26bcec={_0x4684de:0x201,_0xf47b45:0x271,_0x5016b6:0x94,_0x3316f4:0x63,_0xe45f3e:0x3a,_0x1ca37c:0x69,_0x5ebe55:0x11d,_0x85201b:0x174,_0xb51615:0x164,_0x49732a:0x4f,_0x1e54b5:0x72,_0x45e53a:0x8c,_0x43d0c0:0x12,_0x58acff:0x12f,_0x2fbcb3:0xdb,_0x28ce8a:0x20d,_0x4dfc4:0x1df,_0x97669c:0x141,_0x319339:0xbd,_0x682728:0x119,_0x2983db:0x222},_0x2f378d={_0x2d6527:0x13b,_0x6c30f9:0x145,_0x15af7d:0x11c,_0x5ec707:0x152,_0x565760:0x88,_0x2f649c:0xa3,_0x5f1abc:0x75,_0x39034a:0x11,_0x25d2ce:0x3b,_0xabc276:0x19e,_0x209e2d:0x16b,_0x23a2ef:0x42,_0x2f2732:0x38,_0x71ec13:0x129,_0x13293d:0x19b,_0x13dcc1:0x5a,_0x50ebcb:0x29,_0x5dddc1:0xec,_0x28a599:0x169,_0x450b06:0x11f,_0x4d447e:0xa1,_0x556c97:0x208,_0x1c6005:0xbe,_0x198351:0x95,_0x551c92:0x1,_0xa2a718:0xc5,_0x1202ec:0x89,_0x204ab0:0xec,_0x201bc9:0x1fc,_0x3bcb53:0xa7,_0x3baea4:0xcc,_0x133ba3:0x4f,_0x3c091c:0x5c,_0x2e0a82:0x1fc,_0x2cf589:0x81,_0x4b31ec:0x192,_0x32a900:0x220,_0x3ba0b8:0x14e,_0x39a9dc:0x2fe},_0x10c2a0={_0x5f5aba:0x1d1,_0x218bb1:0x17f,_0x1d7f87:0x7e},_0xef89d5={_0x586959:0xfb,_0x5322cb:0x31},_0x4257e5={_0x17c3b3:0x1bd};function _0x5905d4(_0xd018ec,_0x21a054,_0x20e739,_0xa09e8b){return _0x36273c(_0xd018ec-_0x4257e5._0x17c3b3,_0x21a054-0x106,_0xd018ec,_0xa09e8b- -0x6fb);}const _0x26b550=_0x4759c1['resolve'](_0x3abeb5[_0x12f46b(_0x26bcec._0x4684de,_0x26bcec._0xf47b45,0x173,0x370)]??process['cwd']()),_0x2b60d1=(_0x3abeb5['allowedDirs']??[])[_0x12f46b(_0x26bcec._0x5016b6,_0x26bcec._0x3316f4,_0x26bcec._0xe45f3e,-_0x26bcec._0x1ca37c)](_0x2830ab=>_0x4759c1[_0x5905d4(-0x1cf,-0x1e3,-0x11e,-0x157)](_0x2830ab)),_0x459d95=_0x3abeb5[_0x5905d4(-_0x26bcec._0x5ebe55,-_0x26bcec._0x85201b,-_0x26bcec._0xb51615,-0xbc)]??0x64;function _0x12f46b(_0x222894,_0x1e19d3,_0x6d98fe,_0x1fafcd){return _0x19c96f(_0x222894-_0xef89d5._0x586959,_0x1e19d3-0x2b,_0x1e19d3,_0x222894- -_0xef89d5._0x5322cb);}const _0x53d389=_0x3abeb5[_0x12f46b(-_0x26bcec._0x49732a,0x1f,-0x89,0xdc)]??'Glob';return defineTool({'name':_0x53d389,'description':_0x5905d4(_0x26bcec._0x1e54b5,-0x17d,0x13c,-0x12),'inputSchema':{'type':_0x12f46b(_0x26bcec._0x45e53a,_0x26bcec._0x43d0c0,0x1d9,_0x26bcec._0x58acff),'properties':{'pattern':{'type':_0x12f46b(_0x26bcec._0x2fbcb3,_0x26bcec._0x28ce8a,0x259,_0x26bcec._0x4dfc4)},'path':{'type':_0x5905d4(-0x20c,-_0x26bcec._0x97669c,-0x145,-_0x26bcec._0x319339)},'limit':{'type':_0x5905d4(-_0x26bcec._0x682728,-_0x26bcec._0x2983db,-0x15b,-0x216)}},'required':['pattern']},async *'execute'(_0x4e6c07){if(_0x4e6c07[_0x3b941b(-0x61,-0x29,-_0x2f378d._0x2d6527,0x150)][_0x139d43(_0x2f378d._0x6c30f9,_0x2f378d._0x15af7d,_0x2f378d._0x5ec707,0x23b)]()['length']===0x0)throw new ToolExecutionError(_0x3b941b(_0x2f378d._0x565760,-0x75,-_0x2f378d._0x2f649c,0x40),{});const _0x65cf8a=resolveAllowedPath(_0x26b550,_0x2b60d1,_0x4e6c07[_0x3b941b(_0x2f378d._0x5f1abc,-0x38,-0x8e,0xa1)]??'.'),_0x84d1af=await _0x583d66(_0x65cf8a)[_0x3b941b(_0x2f378d._0x39034a,0x130,0xee,0x3d)](()=>null);if(!_0x84d1af?.[_0x139d43(-_0x2f378d._0x25d2ce,-0x120,-_0x2f378d._0xabc276,-_0x2f378d._0x209e2d)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+(_0x4e6c07['path']??'.'),{'path':_0x4e6c07[_0x3b941b(-_0x2f378d._0x23a2ef,-_0x2f378d._0x2f2732,_0x2f378d._0x71ec13,-0xca)]??'.'});const _0x37f203=_0x4e6c07[_0x3b941b(_0x2f378d._0x13293d,0x37,-0xc0,-0x11e)]??_0x459d95,_0x39a33e=Math['max'](0x1,Math['trunc'](_0x37f203)),_0x3f7177=[];function _0x139d43(_0x439198,_0x18300a,_0x2e8224,_0x1fb441){return _0x5905d4(_0x2e8224,_0x18300a-_0x10c2a0._0x5f5aba,_0x2e8224-_0x10c2a0._0x218bb1,_0x18300a-_0x10c2a0._0x1d7f87);}function _0x3b941b(_0x4807f7,_0x539449,_0xbdf65e,_0x3b86d9){return _0x12f46b(_0x539449- -0xa5,_0xbdf65e,_0xbdf65e-0x1d1,_0x3b86d9-0x15d);}let _0x4f8be2=![];for await(const _0x2036a0 of files({'cwd':_0x65cf8a,'glob':[_0x4e6c07[_0x3b941b(_0x2f378d._0x13dcc1,-_0x2f378d._0x50ebcb,0xe0,-0xd9)]]})){if(_0x3f7177[_0x139d43(0x18b,_0x2f378d._0x5dddc1,-0x16,_0x2f378d._0x28a599)]>=_0x39a33e){_0x4f8be2=!![];break;}const _0x31f111=await _0x583d66(_0x4759c1['join'](_0x65cf8a,_0x2036a0))[_0x3b941b(_0x2f378d._0x450b06,0x130,_0x2f378d._0x4d447e,_0x2f378d._0x13293d)](()=>null);_0x3f7177['push']({'path':_0x2036a0,'mtime':_0x31f111?.[_0x3b941b(-_0x2f378d._0x556c97,-_0x2f378d._0x1c6005,_0x2f378d._0x198351,-_0x2f378d._0x551c92)]??0x0});}_0x3f7177[_0x3b941b(-0x124,-0x85,-0x1d4,_0x2f378d._0xa2a718)]((_0x278445,_0x5b1a46)=>_0x5b1a46[_0x139d43(-0xf8,-0x14c,-0x55,-0x191)]-_0x278445['mtime']);const _0x1cba78=_0x3f7177[_0x139d43(_0x2f378d._0x1202ec,-0x86,-0x1b7,0x9b)](_0x453366=>_0x453366[_0x3b941b(-0x8f,-0x38,0x136,-0x51)]),_0x5b2958=_0x1cba78[_0x139d43(0x1ae,_0x2f378d._0x204ab0,_0x2f378d._0x201bc9,_0x2f378d._0x3bcb53)]===0x0?_0x3b941b(-0x52,0x62,_0x2f378d._0x3baea4,-_0x2f378d._0x133ba3)+_0x4e6c07[_0x139d43(_0x2f378d._0x3c091c,-0x9e,-_0x2f378d._0x2e0a82,_0x2f378d._0x2cf589)]:''+_0x1cba78['join']('\x0a')+(_0x4f8be2?_0x139d43(-0xd3,-_0x2f378d._0x4b31ec,-_0x2f378d._0x32a900,-0x89):'');return yield createToolOutput(_0x5b2958,{'pattern':_0x4e6c07[_0x3b941b(-0x15b,-0x29,_0x2f378d._0x3ba0b8,-0x30)],'searchPath':_0x4759c1[_0x139d43(-0x2f8,-0x1c2,-0x1f2,-_0x2f378d._0x39a9dc)](_0x26b550,_0x65cf8a)||'.','matches':_0x1cba78,'count':_0x1cba78['length'],'truncated':_0x4f8be2}),void 0x0;}});}import{stat as _0x409ad4}from'fs/promises';import*as _0x422987 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x45940d={}){const _0x224866={_0x53735f:0x223,_0x46ad17:0x36d,_0x63bd30:0x20c,_0x26e22b:0x310,_0x1b1082:0x1b5,_0x59d38c:0x2af,_0x31d070:0x3d5,_0x19c99b:0x259,_0x2e4c78:0x409,_0x56fe91:0x4da,_0x2c64d5:0x24f,_0xe2895b:0xd2,_0x5060fa:0x240,_0x216b91:0x22b,_0x560c34:0x73,_0x2dfc34:0x17e,_0x92b3bb:0x4d0,_0xe3f9a1:0x357,_0x14dfe2:0x137,_0x126a6b:0x409,_0x79d983:0x2d8,_0x5e20f2:0x1fe},_0xf02d18={_0x29fd17:0x699,_0x50c93a:0x331,_0x4c2e55:0x4a9,_0x224adc:0x5e0,_0x4001a1:0x733,_0x25a31f:0x661,_0x4da68c:0x64e,_0x30c018:0x446,_0x1eda6a:0x3ca,_0x178f42:0x387,_0x3cccae:0x49b,_0x5d7750:0x473,_0x1f0eda:0x31d,_0x40f27d:0x517,_0x2f6e19:0x41c,_0x263bcf:0x54e,_0x3e2113:0x3f3,_0x3eda95:0x4a2,_0x39f88f:0x543,_0x42128f:0x2a6,_0x20685f:0x468,_0x5a835e:0x3cd,_0x5270ff:0x407,_0x1242dd:0x492,_0x215120:0x612,_0x11f150:0x4da,_0x31f3f6:0x333,_0x4c378f:0x378,_0x5194aa:0x312,_0x41c70a:0x6fe,_0x283280:0x539,_0x1a2914:0x72b,_0x21f674:0x418,_0xc0f5f0:0x56a,_0x53acb7:0x336,_0x36a11f:0x400,_0x434ab2:0x373,_0x307669:0x50c,_0x2b4f2a:0x460,_0x137daa:0x3b2,_0x332584:0x49b,_0x3d240b:0x605,_0x2989a2:0x579,_0x340191:0x470,_0x46d889:0x2f0,_0x5e65ed:0x499,_0x5ddcf7:0x7ab,_0x3fe2c4:0x67f,_0x16cb15:0x715,_0x56a0a2:0x5b3,_0x44f18:0x4d8,_0x2cf3f5:0x2cd,_0x4d5c52:0x3d1,_0x224d1f:0x39d,_0x17b72d:0x3a5,_0xdf42be:0x2c6,_0x35f39d:0x5dc,_0x3d8f03:0x64b,_0x54d8e3:0x5a2,_0x163caf:0x6b4,_0x4d17dd:0x609,_0x54d9c0:0x64b,_0xcde0b3:0x2e3,_0x5a0c14:0x1ba,_0x54f0c7:0x466,_0x37f065:0x4d7,_0x2f61bc:0x445,_0x5f597c:0x58f,_0x5cad33:0x46f,_0x58f007:0x630,_0x2d77e1:0x72e,_0x4308fa:0x7a5,_0x9ba558:0x6af,_0x44207d:0x805},_0x130d6b={_0x5dcb98:0x6,_0x2b91a4:0x150},_0x1da20c={_0x5b9fb7:0x3,_0x3f4b84:0x2e7},_0x13bb97=_0x422987['resolve'](_0x45940d['defaultCwd']??process[_0x56e3ab(_0x224866._0x53735f,0x424,0x352,_0x224866._0x46ad17)]());function _0x56e3ab(_0xdc05f1,_0x537364,_0x1cf2ed,_0x20ae30){return _0x36273c(_0xdc05f1-0x13a,_0x537364-_0x1da20c._0x5b9fb7,_0x537364,_0x20ae30- -_0x1da20c._0x3f4b84);}const _0x421d29=(_0x45940d['allowedDirs']??[])[_0x56e3ab(0x3eb,0x444,_0x224866._0x63bd30,_0x224866._0x26e22b)](_0x5f4c91=>_0x422987['resolve'](_0x5f4c91)),_0x4bb50d=_0x45940d[_0x5a7867(-_0x224866._0x1b1082,-_0x224866._0x59d38c,-0x74,-0x12e)]??0x64,_0x368b1e=_0x45940d[_0x5a7867(-0x29e,-0x2c8,-_0x224866._0x31d070,-_0x224866._0x19c99b)]??_0x56e3ab(_0x224866._0x2e4c78,_0x224866._0x56fe91,0x45b,0x458);function _0x5a7867(_0x157d6a,_0x115c21,_0x4a4eae,_0x506820){return _0x19c96f(_0x157d6a-0x1b1,_0x115c21-0x35,_0x115c21,_0x506820- -0x23b);}return defineTool({'name':_0x368b1e,'description':_0x5a7867(-0xc1,-_0x224866._0x2c64d5,-_0x224866._0xe2895b,-_0x224866._0x5060fa),'inputSchema':{'type':_0x5a7867(-_0x224866._0x216b91,-_0x224866._0x560c34,-0x18e,-_0x224866._0x2dfc34),'properties':{'pattern':{'type':_0x56e3ab(_0x224866._0x92b3bb,0x49a,0x49a,_0x224866._0xe3f9a1)},'path':{'type':_0x5a7867(-0x215,-0x298,-_0x224866._0x14dfe2,-0x12f)},'include':{'type':_0x56e3ab(0x32a,_0x224866._0x126a6b,0x1ee,0x357)},'limit':{'type':_0x56e3ab(_0x224866._0x19c99b,_0x224866._0x14dfe2,_0x224866._0x79d983,_0x224866._0x5e20f2)},'context':{'type':'number'}},'required':[_0x56e3ab(0x1ac,0x29e,0x2f9,0x2f8)]},async *'execute'(_0x2a9ed7){const _0x47b2ed={_0x98b112:0x83,_0x3ee3b0:0x2d};if(_0x2a9ed7['pattern']['trim']()[_0x3d8a83(0x6c6,0x591,_0xf02d18._0x29fd17,0x416)]===0x0)throw new ToolExecutionError(_0x20b50e(_0xf02d18._0x50c93a,0x450,_0xf02d18._0x4c2e55,0x60a),{});const _0x3e7d26=resolveAllowedPath(_0x13bb97,_0x421d29,_0x2a9ed7[_0x20b50e(0x625,_0xf02d18._0x224adc,0x4e6,0x4af)]??'.'),_0x33da92=await _0x409ad4(_0x3e7d26)[_0x20b50e(_0xf02d18._0x4001a1,_0xf02d18._0x25a31f,_0xf02d18._0x4da68c,0x5c3)](()=>null),_0xe43f10=_0x33da92?.[_0x3d8a83(_0xf02d18._0x30c018,0x388,_0xf02d18._0x1eda6a,_0xf02d18._0x178f42)]()??![],_0x1bea43=_0x33da92?.[_0x20b50e(0x4fb,_0xf02d18._0x3cccae,_0xf02d18._0x5d7750,_0xf02d18._0x1f0eda)]()??![];if(!_0xe43f10&&!_0x1bea43)throw new ToolExecutionError(_0x3d8a83(0x56b,0x4b6,_0xf02d18._0x40f27d,0x3d7)+(_0x2a9ed7[_0x3d8a83(0x31e,0x3f8,0x4e7,_0xf02d18._0x2f6e19)]??'.'),{'path':_0x2a9ed7[_0x20b50e(0x4d9,_0xf02d18._0x263bcf,0x4e6,_0xf02d18._0x3e2113)]??'.'});const _0x4be7dd=_0x2a9ed7['limit']??_0x4bb50d,_0x936815=Math[_0x20b50e(0x5d9,_0xf02d18._0x3eda95,0x593,_0xf02d18._0x39f88f)](0x1,Math[_0x3d8a83(0x48d,0x35d,_0xf02d18._0x42128f,_0xf02d18._0x20685f)](_0x4be7dd)),_0x71c855=await search({'cwd':_0x1bea43?_0x3e7d26:_0x422987[_0x20b50e(_0xf02d18._0x5a835e,0x4f1,0x53e,0x493)](_0x3e7d26),'pattern':_0x2a9ed7[_0x3d8a83(0x298,_0xf02d18._0x5270ff,0x51f,0x4ed)],'glob':_0x1bea43?_0x2a9ed7[_0x20b50e(_0xf02d18._0x1242dd,_0xf02d18._0x215120,_0xf02d18._0x11f150,0x5d1)]:void 0x0,'limit':_0x936815,'file':_0xe43f10?_0x3e7d26:void 0x0,'context':_0x2a9ed7['context']});function _0x20b50e(_0x2aa601,_0xbb7cfd,_0x1656da,_0x4ab8eb){return _0x5a7867(_0x2aa601-_0x130d6b._0x5dcb98,_0x2aa601,_0x1656da-_0x130d6b._0x2b91a4,_0x1656da-0x683);}const _0xe77384=new Map();for(const _0x310318 of _0x71c855){if(!_0xe77384[_0x3d8a83(0x346,_0xf02d18._0x31f3f6,0x3e0,0x320)](_0x310318['filePath'])){const _0x58b0cb=await _0x409ad4(_0x310318[_0x3d8a83(_0xf02d18._0x4c378f,_0xf02d18._0x5194aa,0x3a8,0x27f)])[_0x20b50e(_0xf02d18._0x41c70a,_0xf02d18._0x283280,0x64e,_0xf02d18._0x1a2914)](()=>null);_0xe77384[_0x20b50e(_0xf02d18._0x21f674,0x6ef,0x599,0x6d1)](_0x310318[_0x20b50e(_0xf02d18._0xc0f5f0,_0xf02d18._0x53acb7,_0xf02d18._0x36a11f,_0xf02d18._0x434ab2)],{'matches':[],'mtime':_0x58b0cb?.[_0x20b50e(0x30b,_0xf02d18._0x307669,_0xf02d18._0x2b4f2a,_0xf02d18._0x137daa)]??0x0});}_0xe77384[_0x20b50e(0x689,_0xf02d18._0x332584,0x547,0x480)](_0x310318['filePath'])?.['matches'][_0x20b50e(_0xf02d18._0x3d240b,0x4e1,0x5db,_0xf02d18._0x2989a2)](_0x310318);}const _0x5e89e6=[..._0xe77384[_0x3d8a83(0x441,_0xf02d18._0x340191,_0xf02d18._0x46d889,0x51e)]()][_0x20b50e(0x346,0x34f,_0xf02d18._0x5e65ed,0x547)]((_0xbda8c2,_0x1198a8)=>_0x1198a8[0x1][_0x20b50e(0x2ff,0x2fd,0x447,0x2fd)]-_0xbda8c2[0x1]['mtime']),_0x2447c0=_0x71c855[_0x3d8a83(0x472,0x3d9,0x46c,0x496)](_0x52292c=>!_0x52292c[_0x20b50e(0x80d,0x785,0x6a9,0x5c1)])['length'],_0x3b92f0=_0x71c855[_0x20b50e(0x696,0x6e9,0x67f,_0xf02d18._0x5ddcf7)]>=_0x936815,_0x2f89c6=_0xe43f10?_0x422987['dirname'](_0x3e7d26):_0x3e7d26;let _0x31ddcf='';if(_0x71c855[_0x20b50e(0x67a,0x649,_0xf02d18._0x3fe2c4,_0xf02d18._0x16cb15)]===0x0)_0x31ddcf=_0x3d8a83(0x528,_0xf02d18._0x56a0a2,0x5ae,_0xf02d18._0x44f18)+_0x2a9ed7[_0x20b50e(0x541,0x4d0,0x4f5,0x386)];else{_0x31ddcf='Found\x20'+_0x2447c0+'\x20match'+(_0x2447c0===0x1?'':'es')+'\x0a';for(const [_0x34d2ed,_0x54d01c]of _0x5e89e6){const _0x1628e8=_0xe43f10?_0x422987[_0x3d8a83(_0xf02d18._0x2cf3f5,0x3b9,0x466,0x465)](_0x34d2ed):_0x422987[_0x20b50e(0x529,0x2c3,_0xf02d18._0x4d5c52,_0xf02d18._0x224d1f)](_0x2f89c6,_0x34d2ed);_0x31ddcf+='\x0a'+_0x1628e8+':\x0a';for(const _0x2c81cc of _0x54d01c[_0x20b50e(_0xf02d18._0x17b72d,0x611,0x4f1,0x43d)]){const _0x483b89=_0x2c81cc['lineText']['length']>MAX_LINE_LENGTH?_0x2c81cc['lineText'][_0x20b50e(0x465,0x45d,0x3cf,_0xf02d18._0xdf42be)](0x0,MAX_LINE_LENGTH)+_0x20b50e(0x532,_0xf02d18._0x35f39d,0x518,_0xf02d18._0x3d8f03):_0x2c81cc[_0x3d8a83(0x5a0,_0xf02d18._0x54d8e3,_0xf02d18._0x163caf,0x662)],_0x380c24=_0x2c81cc['isContext']?'\x20\x20':'>\x20';_0x31ddcf+=_0x380c24+_0x3d8a83(_0xf02d18._0x4d17dd,0x587,_0xf02d18._0x54d9c0,0x637)+_0x2c81cc['lineNum']+':\x20'+_0x483b89+'\x0a';}}_0x3b92f0&&(_0x31ddcf+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x226afa={'searchPath':_0x422987[_0x3d8a83(0x2dd,_0xf02d18._0xcde0b3,_0xf02d18._0x5a0c14,0x334)](_0x13bb97,_0x3e7d26)||'.','pattern':_0x2a9ed7[_0x3d8a83(_0xf02d18._0x54f0c7,_0xf02d18._0x5270ff,_0xf02d18._0x37f065,0x3de)],'matchCount':_0x2447c0,'fileCount':_0xe77384[_0x20b50e(_0xf02d18._0x2f61bc,0x679,_0xf02d18._0x5f597c,0x4c0)],'truncated':_0x3b92f0};function _0x3d8a83(_0x44405e,_0x3330ca,_0x42d1e5,_0x1aabfc){return _0x56e3ab(_0x44405e-_0x47b2ed._0x98b112,_0x44405e,_0x42d1e5-_0x47b2ed._0x3ee3b0,_0x3330ca-0x10f);}return _0x1bea43&&_0x2a9ed7[_0x20b50e(0x641,_0xf02d18._0x5cad33,0x4da,0x567)]!==void 0x0&&(_0x226afa['include']=_0x2a9ed7[_0x20b50e(_0xf02d18._0x58f007,0x526,0x4da,0x627)]),yield createToolOutput(_0x31ddcf[_0x20b50e(_0xf02d18._0x2d77e1,_0xf02d18._0x4308fa,_0xf02d18._0x9ba558,_0xf02d18._0x44207d)](),_0x226afa),void 0x0;}});}function createKillShellTool(_0x1e4bac){const _0x9cc390={_0x1f78ca:0x6e1,_0x3b668f:0x6af,_0x7cd1d9:0x70c,_0xe0c6f5:0x6c8,_0x1261ce:0x157,_0x221fee:0x1aa,_0x3073d:0x18f,_0x5c2b72:0x151,_0x3c0abb:0x78,_0x566a96:0x102,_0x42561b:0x12b,_0x1dfcdd:0x4a0,_0xe2495a:0x579,_0x2e888e:0x518},_0x34dd43={_0x565965:0x14b,_0x3738b5:0xdc,_0x153bc5:0x65,_0x2a9595:0x81,_0x276114:0x287,_0x57554a:0x1fc,_0x4d4cf1:0x28a,_0x5bc1e6:0x110,_0x275f90:0x65,_0x1c4fe1:0xf1,_0x214bc7:0x41,_0x590c55:0x15c,_0xdb8b8b:0x27f,_0x1bec78:0x200,_0x3ac8e5:0x32c,_0x2b8e55:0xe7,_0x441bc0:0x243},_0x33ac3d={_0x33e21a:0xdf,_0x4ad670:0x1e6,_0x1dc3a0:0x6ab},_0x1428ec={_0x161f4d:0x11b,_0xa9f2f4:0x57d},_0x2c4528={_0xad6d3e:0x740},_0x26877e={_0x1efd4b:0x101},{registry:_0x35df13}=_0x1e4bac;function _0x473a8e(_0x25e4ee,_0x449a94,_0x3280e0,_0x3788e6){return _0x19c96f(_0x25e4ee-_0x26877e._0x1efd4b,_0x449a94-0x8a,_0x25e4ee,_0x3788e6-0x47f);}function _0x1bd9c4(_0x2fd8e1,_0x50c659,_0x4e703e,_0x304f0a){return _0x36273c(_0x2fd8e1-0x83,_0x50c659-0x79,_0x50c659,_0x4e703e- -_0x2c4528._0xad6d3e);}return defineTool({'name':_0x473a8e(_0x9cc390._0x1f78ca,_0x9cc390._0x3b668f,_0x9cc390._0x7cd1d9,_0x9cc390._0xe0c6f5),'description':_0x1bd9c4(-0x205,-_0x9cc390._0x1261ce,-_0x9cc390._0x221fee,-0x1f9),'inputSchema':{'type':_0x1bd9c4(-0x254,-_0x9cc390._0x3073d,-_0x9cc390._0x5c2b72,-0x95),'properties':{'shellId':{'type':_0x1bd9c4(0x5b,_0x9cc390._0x3c0abb,-_0x9cc390._0x566a96,-_0x9cc390._0x42561b)}},'required':[_0x473a8e(_0x9cc390._0x1dfcdd,0x3b3,_0x9cc390._0xe2495a,_0x9cc390._0x2e888e)]},async *'execute'(_0x40e2c0){const _0x2a20be=_0x35df13[_0x124073(_0x34dd43._0x565965,_0x34dd43._0x3738b5,-0x5a,0x56)](_0x40e2c0[_0x124073(0xb,-_0x34dd43._0x153bc5,0x48,0x11d)]);function _0x124073(_0x34b952,_0x5e1de0,_0x507807,_0x3480f2){return _0x473a8e(_0x34b952,_0x5e1de0-0x15a,_0x507807-_0x1428ec._0x161f4d,_0x5e1de0- -_0x1428ec._0xa9f2f4);}function _0x320ebf(_0x453d91,_0x5151f0,_0x1a5285,_0x301f38){return _0x473a8e(_0x5151f0,_0x5151f0-_0x33ac3d._0x33e21a,_0x1a5285-_0x33ac3d._0x4ad670,_0x301f38- -_0x33ac3d._0x1dc3a0);}return createToolOutput('Killed\x20'+_0x40e2c0[_0x124073(0x29,-_0x34dd43._0x153bc5,0x30,-0x92)]+_0x124073(_0x34dd43._0x2a9595,0xcf,-0x40,-0x4f)+_0x2a20be[_0x320ebf(-_0x34dd43._0x276114,-_0x34dd43._0x57554a,-0x1ff,-_0x34dd43._0x4d4cf1)]+').',{'shellId':_0x40e2c0[_0x124073(_0x34dd43._0x5bc1e6,-_0x34dd43._0x275f90,-0x78,-_0x34dd43._0x1c4fe1)],'status':_0x2a20be[_0x124073(-_0x34dd43._0x214bc7,-_0x34dd43._0x590c55,-0x150,-_0x34dd43._0xdb8b8b)],'exitCode':_0x2a20be[_0x124073(-0x71,-0x84,-0xbc,-_0x34dd43._0x1bec78)],'signal':_0x2a20be[_0x320ebf(-_0x34dd43._0x3ac8e5,-0x3bf,-_0x34dd43._0x2b8e55,-_0x34dd43._0x441bc0)]});}});}import{readdir as _0x606b1,readFile as _0x4fe3b6,stat as _0x4c3a31}from'fs/promises';import*as _0x55de9c from'path';import*as _0xddd368 from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x217700,_0x127ac2){const _0x24c732={_0xd2160a:0x280,_0x35f354:0x322,_0x145213:0x3b6,_0x581611:0x42},_0x51f955={_0x1feb23:0x14c,_0x566d2e:0x234},_0x69322a={_0x2a73cf:0xc7};if(_0x127ac2>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;const _0x48bcad=await _0x4fe3b6(_0x217700)[_0x45ef05(_0x24c732._0xd2160a,0x43d,0x244,_0x24c732._0x35f354)](()=>null);if(!_0x48bcad||isProbablyBinary(_0x48bcad))return void 0x0;function _0x45ef05(_0x4302a6,_0x17ae28,_0x1203a1,_0xc2fc83){return _0x19c96f(_0x4302a6-0x127,_0x17ae28-_0x69322a._0x2a73cf,_0x4302a6,_0xc2fc83-0x11c);}function _0x15c01a(_0x5c0c37,_0x14832e,_0xe75c1d,_0x13792d){return _0x36273c(_0x5c0c37-0x75,_0x14832e-_0x51f955._0x1feb23,_0x14832e,_0x5c0c37- -_0x51f955._0x566d2e);}return _0x48bcad['toString'](_0x45ef05(0x1a6,0x3a2,_0x24c732._0x145213,0x280))[_0x45ef05(-0x6b,0x54,-_0x24c732._0x581611,0xa4)](/\r?\n/)['length'];}function createLsTool(_0x14e55b={}){const _0x17b402={_0x1e5202:0xcd,_0x30aed0:0x1ba,_0x42ab74:0x41d,_0x5c1495:0x390,_0x46f980:0x3a4,_0x51646a:0xf0,_0x155e66:0x2b,_0x20b3af:0x327,_0x2dfa44:0x2ff,_0x5f4aa6:0x311,_0x4cdbfd:0x361},_0xdeeda8={_0x128628:0x3a3,_0x56ef22:0x2ca,_0x5b688e:0x1b5,_0x293206:0x15f,_0x4f7afb:0xd6,_0x5d894a:0x201,_0x554093:0x155,_0x141989:0x1ed,_0x31c384:0x131,_0x3df19e:0x35,_0x37b79d:0x31,_0x30ec33:0xb1,_0x3e79c5:0x138,_0x400560:0x11d,_0x312c5e:0xdc,_0x502a8d:0x139,_0x383711:0x1c3,_0x51fcd1:0xc3,_0x1055f0:0x239,_0x4dca4d:0x38,_0x13677a:0x45,_0x381bbf:0xc9,_0x536e87:0x3,_0x24ec4e:0x186,_0x25a97f:0x10f,_0x35f16f:0x1a8,_0x285741:0x60,_0x12e8ab:0x6a,_0x2d8e31:0x49,_0x5b02b9:0x239,_0x5bac2f:0x143,_0x59c1f2:0x40,_0x66664:0xf8,_0x39462a:0x2a7,_0x470de7:0x3e6,_0x22fe4e:0xb3,_0x4f0682:0x1a1,_0x5f0c16:0x7c,_0x392fe3:0x1a1,_0x33b839:0x2aa,_0x476b77:0x27b,_0x470ffa:0x200,_0x1e4230:0xc8,_0x1287ce:0x16a,_0x49cb32:0xd,_0x21421f:0x181,_0x132d05:0x3b0},_0x155c79={_0x55a1c1:0xce,_0x39bab6:0x128},_0x502526={_0x2b8c25:0x414};function _0x458a5e(_0x3b5992,_0xabdaa8,_0x3afdc9,_0x572595){return _0x36273c(_0x3b5992-0x1be,_0xabdaa8-0x1a8,_0x572595,_0x3afdc9- -_0x502526._0x2b8c25);}function _0x1532b8(_0xb11976,_0x35f1de,_0x1f6bbc,_0x14e881){return _0x36273c(_0xb11976-_0x155c79._0x55a1c1,_0x35f1de-_0x155c79._0x39bab6,_0xb11976,_0x1f6bbc- -0x184);}const _0x568390=_0x55de9c['resolve'](_0x14e55b['defaultCwd']??process['cwd']()),_0x28ae4f=(_0x14e55b['allowedDirs']??[])[_0x458a5e(0xf6,_0x17b402._0x1e5202,0x1e3,_0x17b402._0x30aed0)](_0x52cfa3=>_0x55de9c[_0x458a5e(0x216,0x1e9,0x190,0x1e2)](_0x52cfa3)),_0x483830=_0x14e55b[_0x1532b8(_0x17b402._0x42ab74,0x26d,_0x17b402._0x5c1495,_0x17b402._0x46f980)]??'Ls';return defineTool({'name':_0x483830,'description':_0x458a5e(0xdd,0x17b,_0x17b402._0x51646a,_0x17b402._0x155e66),'inputSchema':{'type':_0x1532b8(_0x17b402._0x20b3af,0x325,0x46b,_0x17b402._0x2dfa44),'properties':{'path':{'type':_0x1532b8(0x605,0x5c2,0x4ba,0x497)},'limit':{'type':_0x1532b8(_0x17b402._0x5f4aa6,0x283,_0x17b402._0x4cdbfd,0x317)}}},async *'execute'(_0xf4fb72){const _0x163ad0={_0x6a01c1:0x80},_0x31088c=_0xf4fb72['path']??'.',_0x5b9b1e=resolveAllowedPath(_0x568390,_0x28ae4f,_0x31088c),_0x22cd5c=await _0x4c3a31(_0x5b9b1e)[_0x55b701(0x125,0x24e,_0xdeeda8._0x128628,_0xdeeda8._0x56ef22)](()=>null);if(!_0x22cd5c?.['isDirectory']())throw new ToolExecutionError(_0x55b701(_0xdeeda8._0x5b688e,_0xdeeda8._0x293206,_0xdeeda8._0x4f7afb,0x256)+_0x31088c,{'path':_0x31088c});const _0x1e5e66=_0xf4fb72[_0x55b701(_0xdeeda8._0x5d894a,_0xdeeda8._0x554093,_0xdeeda8._0x141989,0x1b4)]??0x3e8,_0x120a92=Math[_0x55b701(_0xdeeda8._0x31c384,-_0xdeeda8._0x3df19e,0x127,-0x193)](Math['max'](Math['trunc'](_0x1e5e66),0x1),0x2710),_0x4e1c58=await _0x606b1(_0x5b9b1e),_0x4bc56e=[];for(const _0x19e89b of _0x4e1c58[_0x55b701(-0x143,-_0xdeeda8._0x37b79d,0x9a,-0x195)](0x0,_0x120a92)){const _0x9d3b49=_0x55de9c[_0x5326e2(-0x52,-0x34,_0xdeeda8._0x30ec33,-0xc1)](_0x5b9b1e,_0x19e89b),_0x3c2272=await _0x4c3a31(_0x9d3b49)[_0x5326e2(_0xdeeda8._0x3e79c5,_0xdeeda8._0x400560,_0xdeeda8._0x312c5e,_0xdeeda8._0x502a8d)](()=>null);if(!_0x3c2272)continue;let _0x324681=_0x5326e2(_0xdeeda8._0x383711,0x175,0x8,_0xdeeda8._0x51fcd1);if(_0x3c2272['isFile']())_0x324681=_0x55b701(0x39c,_0xdeeda8._0x1055f0,0x327,_0xdeeda8._0x4f7afb);else{if(_0x3c2272[_0x5326e2(-_0xdeeda8._0x4dca4d,_0xdeeda8._0x13677a,-0x204,-0xa2)]())_0x324681=_0x55b701(-_0xdeeda8._0x381bbf,0x9d,_0xdeeda8._0x536e87,_0xdeeda8._0x24ec4e);else{if(_0x3c2272[_0x55b701(0x281,_0xdeeda8._0x25a97f,-0x44,0x1e9)]())_0x324681='symlink';}}const _0x4ed7a9={'name':_0x19e89b,'type':_0x324681,'size':_0x3c2272['size'],'mtime':_0x3c2272[_0x55b701(_0xdeeda8._0x35f16f,_0xdeeda8._0x285741,-_0xdeeda8._0x12e8ab,0x73)],'mode':_0x3c2272[_0x55b701(-0x104,0x26,-_0xdeeda8._0x2d8e31,0x16c)]},_0x26d057=_0x324681===_0x55b701(0x260,_0xdeeda8._0x5b02b9,0x374,_0xdeeda8._0x5bac2f)?await countTextLines(_0x9d3b49,_0x3c2272[_0x55b701(_0xdeeda8._0x59c1f2,0x18f,0xad,_0xdeeda8._0x66664)]):void 0x0;if(_0x26d057!==void 0x0)_0x4ed7a9[_0x55b701(0x1c4,_0xdeeda8._0x39462a,_0xdeeda8._0x470de7,0x1d6)]=_0x26d057;_0x4bc56e['push'](_0x4ed7a9);}function _0x5326e2(_0x2b8810,_0x573c0b,_0x260958,_0x392ce1){return _0x1532b8(_0x573c0b,_0x573c0b-_0x163ad0._0x6a01c1,_0x392ce1- -0x47b,_0x392ce1-0x94);}_0x4bc56e[_0x5326e2(_0xdeeda8._0x22fe4e,-0x164,-_0xdeeda8._0x4f0682,-_0xdeeda8._0x5f0c16)]((_0x6303ff,_0x1bdf7a)=>_0x6303ff['name'][_0x5326e2(0x5d,0xd,-0x15,0x142)](_0x1bdf7a[_0x5326e2(-0xa4,-0x185,-0xf0,-0xeb)]));function _0x55b701(_0x55d2b4,_0x51d11e,_0x39bc52,_0x106584){return _0x1532b8(_0x55d2b4,_0x51d11e-0x1d4,_0x51d11e- -0x366,_0x106584-0x1a9);}const _0x575852={'path':_0x31088c,'total':_0x4bc56e[_0x55b701(_0xdeeda8._0x392fe3,0x27f,0x281,_0xdeeda8._0x33b839)],'truncated':_0x4e1c58[_0x5326e2(_0xdeeda8._0x476b77,_0xdeeda8._0x470ffa,_0xdeeda8._0x1e4230,_0xdeeda8._0x1287ce)]>_0x120a92,'entries':_0x4bc56e};return yield createToolOutput(_0xddd368[_0x5326e2(_0xdeeda8._0x49cb32,0x26f,0x1c,_0xdeeda8._0x21421f)](_0x575852,{'indent':0x2,'lineWidth':0x0})['trimEnd'](),{'path':_0x31088c,'total':_0x4bc56e['length'],'truncated':_0x4e1c58[_0x55b701(_0xdeeda8._0x132d05,0x27f,0x1b1,0x177)]>_0x120a92,'limit':_0x120a92,'entries':_0x4bc56e}),void 0x0;}});}import{stat as _0x4b3dd9}from'fs/promises';import _0x4dbba3 from'path';import{fileURLToPath as _0x58adcf}from'url';function severityName(_0x481d83){const _0x970a6d={_0x408da7:0x44,_0x476166:0x136,_0xd04daf:0x2e9,_0x1b0084:0x1bc,_0x33b8cc:0x31c,_0x55655c:0xeb,_0x282a94:0x1a3,_0x1ef3b7:0x297,_0x513df0:0x265},_0x512efb={_0x28909c:0x6d,_0x3243e2:0x5ef},_0x1a3650={_0x5d55be:0x6a,_0x377505:0x28b};function _0x5ecca4(_0x5a6575,_0x3efba0,_0x7b86b4,_0x13d2f5){return _0x19c96f(_0x5a6575-_0x1a3650._0x5d55be,_0x3efba0-0x62,_0x5a6575,_0x13d2f5-_0x1a3650._0x377505);}function _0x150e7e(_0x3cfcf0,_0x3e2b80,_0x35230d,_0x54fc73){return _0x36273c(_0x3cfcf0-0x120,_0x3e2b80-_0x512efb._0x28909c,_0x35230d,_0x3cfcf0- -_0x512efb._0x3243e2);}switch(_0x481d83){case 0x1:return _0x150e7e(_0x970a6d._0x408da7,_0x970a6d._0x476166,-0x3c,0x16b);case 0x2:return _0x5ecca4(_0x970a6d._0xd04daf,_0x970a6d._0x1b0084,_0x970a6d._0x33b8cc,0x27c);case 0x3:return _0x150e7e(-0x3b,_0x970a6d._0x55655c,-_0x970a6d._0x282a94,0x52);case 0x4:return'Hint';default:return _0x5ecca4(_0x970a6d._0x1ef3b7,0x1bd,0x296,_0x970a6d._0x513df0);}}function formatSingleHover(_0x4124c4){const _0x21d7a2={_0x30ded5:0xe0,_0x1ade07:0x1b,_0x1741e8:0x172,_0x13be3e:0xab,_0x278dd0:0xf4,_0x248982:0x225,_0xdaf004:0x313,_0x1b2338:0x24d,_0xa460d0:0x70,_0x358e7f:0xb2,_0x426df1:0x1c9,_0xd094c6:0xd,_0x126d0b:0x18e,_0x513e8c:0x168},_0x21e8fa={_0x19e56a:0x4bd},_0x36efcd={_0x56df85:0x172,_0x4eec6a:0x127},_0x4d4bfc=_0x4124c4[_0x5bfbff(-0x15e,-0x256,-0x134,-0x266)];if(typeof _0x4d4bfc===_0x3bd71c(0xe,0x253,0x181,0x1ef))return _0x4d4bfc;if(Array['isArray'](_0x4d4bfc))return _0x4d4bfc[_0x5bfbff(-_0x21d7a2._0x30ded5,0x7f,-_0x21d7a2._0x1ade07,-_0x21d7a2._0x1741e8)](_0x16914f=>typeof _0x16914f===_0x3bd71c(0xf3,0x29b,0x181,0x2fa)?_0x16914f:_0x16914f['value'])[_0x3bd71c(0x1eb,_0x21d7a2._0x13be3e,_0x21d7a2._0x278dd0,0x26b)](Boolean)[_0x5bfbff(-0x199,-0x66,-0x1a6,-0x2d1)]('\x0a\x0a');function _0x5bfbff(_0x5d8930,_0x3166f9,_0x5a974c,_0x4d6484){return _0x36273c(_0x5d8930-_0x36efcd._0x56df85,_0x3166f9-_0x36efcd._0x4eec6a,_0x3166f9,_0x5d8930- -0x6d7);}if('kind'in _0x4d4bfc)return _0x4d4bfc[_0x5bfbff(-0xb2,-_0x21d7a2._0x248982,-0x155,-0x112)];function _0x3bd71c(_0x5cb407,_0xf04993,_0xe7143d,_0x2a4134){return _0x36273c(_0x5cb407-0x12e,_0xf04993-0xdd,_0xf04993,_0xe7143d- -_0x21e8fa._0x19e56a);}return _0x4d4bfc[_0x5bfbff(-0x1bb,-0x226,-_0x21d7a2._0xdaf004,-_0x21d7a2._0x1b2338)]?'```'+_0x4d4bfc[_0x3bd71c(-0x1,_0x21d7a2._0xa460d0,0x5f,0x68)]+'\x0a'+_0x4d4bfc[_0x5bfbff(-_0x21d7a2._0x358e7f,-_0x21d7a2._0x426df1,0x24,-0x90)]+_0x5bfbff(0x2e,-0x9e,-_0x21d7a2._0xd094c6,_0x21d7a2._0x126d0b):_0x4d4bfc[_0x3bd71c(-0x10,0x14f,_0x21d7a2._0x513e8c,0x291)];}function formatHover(_0x32fb04){const _0x3283e2={_0xf0f676:0x19f,_0x4b1986:0x13d,_0x41d37a:0x20e,_0xdc553e:0xaf,_0x51f50b:0xce,_0x157590:0x102},_0x1b2071={_0x456803:0x18,_0x44d22f:0x83},_0x544522={_0x253c46:0x1d6,_0x13bcb5:0x8d};function _0x460d60(_0x15de97,_0x5d5bf3,_0x3b380c,_0x443e28){return _0x19c96f(_0x15de97-_0x544522._0x253c46,_0x5d5bf3-0x160,_0x443e28,_0x15de97- -_0x544522._0x13bcb5);}if(_0x32fb04['length']===0x0)return _0x3fe45a(_0x3283e2._0xf0f676,_0x3283e2._0x4b1986,0x1c4,0x2ed);function _0x3fe45a(_0x52cf2,_0x5266a6,_0x2a4aff,_0x5a2467){return _0x19c96f(_0x52cf2-_0x1b2071._0x456803,_0x5266a6-_0x1b2071._0x44d22f,_0x5a2467,_0x2a4aff-0xa3);}return _0x32fb04['map'](formatSingleHover)[_0x3fe45a(_0x3283e2._0x41d37a,0xe9,_0x3283e2._0xdc553e,_0x3283e2._0x51f50b)](_0x460d60(_0x3283e2._0x157590,-0x63,0x19f,0x181));}function locationPath(_0x272d4b){const _0xc2db1e={_0x3a2e7c:0x149,_0x1a3348:0xe3},_0x46bd55={_0x249d61:0x16f,_0x286bbd:0x49,_0x4bc410:0x429};function _0x416773(_0x51cdb8,_0x353dcd,_0x25ef7b,_0x1b8137){return _0x36273c(_0x51cdb8-_0x46bd55._0x249d61,_0x353dcd-_0x46bd55._0x286bbd,_0x25ef7b,_0x1b8137- -_0x46bd55._0x4bc410);}function _0x2cab30(_0x2a5854,_0x48c927,_0x3d0608,_0x1857cb){return _0x36273c(_0x2a5854-0x120,_0x48c927-0xee,_0x48c927,_0x2a5854- -0x54e);}if(!_0x272d4b[_0x416773(0x1b4,0x1c8,0x55,0xff)](_0x2cab30(0xac,_0xc2db1e._0x3a2e7c,-0x79,_0xc2db1e._0x1a3348)))return _0x272d4b;return _0x58adcf(_0x272d4b);}function formatLocations(_0x38c643){const _0x44b97c={_0x147673:0x33c,_0x529d8e:0x3f9,_0x2a890c:0x607,_0x1181c9:0x580,_0x3336c7:0x6be,_0xbf8c8e:0x36c},_0x1addee={_0x1fabfb:0x58f,_0xa426b8:0x363},_0x5eeba0={_0x4d410e:0x13a,_0x2b53c2:0x1d3},_0x5be80e={_0x2b9c9b:0x153,_0x3ce9f1:0x13b,_0x323213:0x105},_0x3f0cf8={_0x3071ba:0xcf,_0x1d9725:0x69};function _0x45395c(_0x480d57,_0x1493ff,_0x500b3c,_0x2121f5){return _0x36273c(_0x480d57-_0x3f0cf8._0x3071ba,_0x1493ff-_0x3f0cf8._0x1d9725,_0x500b3c,_0x480d57- -0x62);}if(_0x38c643[_0x7348b5(0x2e1,_0x44b97c._0x147673,0x27e,_0x44b97c._0x529d8e)]===0x0)return _0x45395c(_0x44b97c._0x2a890c,0x4a4,_0x44b97c._0x1181c9,0x4dc);function _0x7348b5(_0x27f5b8,_0xd40af5,_0x46c655,_0x1d976e){return _0x19c96f(_0x27f5b8-_0x5be80e._0x2b9c9b,_0xd40af5-_0x5be80e._0x3ce9f1,_0x27f5b8,_0xd40af5-_0x5be80e._0x323213);}return _0x38c643[_0x45395c(0x595,0x5cb,0x441,_0x44b97c._0x3336c7)](_0x49d182=>{const _0x3be71c={_0x5685ce:0x1f7,_0x1988e8:0xea};function _0x35891d(_0x3115ba,_0xb08a7d,_0x3d8bd7,_0x460c19){return _0x45395c(_0xb08a7d- -_0x3be71c._0x5685ce,_0xb08a7d-_0x3be71c._0x1988e8,_0x3d8bd7,_0x460c19-0x179);}const _0x1f8469=_0x49d182['range']['start'];function _0x2aae61(_0x429c1e,_0x40b092,_0x473b51,_0x347eb7){return _0x45395c(_0x473b51- -0x1b0,_0x40b092-_0x5eeba0._0x4d410e,_0x429c1e,_0x347eb7-_0x5eeba0._0x2b53c2);}return locationPath(_0x49d182[_0x2aae61(0x4d3,0x592,0x4f2,0x38e)])+':'+(_0x1f8469[_0x2aae61(_0x1addee._0x1fabfb,_0x1addee._0xa426b8,0x4de,0x3ba)]+0x1)+':'+(_0x1f8469['character']+0x1);})[_0x45395c(0x4dc,0x56b,_0x44b97c._0xbf8c8e,0x44a)]('\x0a');}function isDocumentSymbol(_0x13ec0e){const _0x5c6227={_0x24f290:0x1bc},_0x46793e={_0x1183b0:0x12f,_0x3badf8:0x353};function _0x2561b0(_0x22f41e,_0x597f8d,_0x22788e,_0x5304f5){return _0x36273c(_0x22f41e-0x34,_0x597f8d-_0x46793e._0x1183b0,_0x22f41e,_0x22788e- -_0x46793e._0x3badf8);}return _0x2561b0(0x1e6,_0x5c6227._0x24f290,0x1f0,0x1ff)in _0x13ec0e&&'selectionRange'in _0x13ec0e;}function formatSymbols(_0x3a5e37){const _0x31e3f8={_0x8dcb53:0x42d,_0x1474b:0x4f3,_0x56e3b7:0x455,_0x3ef976:0x28f,_0x2394ab:0xaa,_0x321804:0x21,_0x36f719:0x280,_0x24cbdc:0x29a},_0x151203={_0x403efc:0x3f4,_0x3f7a11:0x4b7,_0x495fd0:0x183,_0x4fbc28:0xae,_0x15af0a:0x1af,_0x5b2f31:0x143,_0x45ae15:0x447,_0x31648a:0x4d7,_0xbadc99:0x548,_0x1cc8aa:0x601,_0x2bd669:0x732,_0x1bd907:0x217,_0x340887:0x117,_0x468a1b:0x367,_0x25999f:0x57f,_0x21600b:0x5d,_0x51b3f7:0x1b6,_0x1c9d9f:0xf0,_0x332a4b:0x5c,_0x1a3a90:0x78,_0x440604:0x104,_0x3cc353:0x1e8,_0x4f3a1a:0x447,_0x46dc3e:0x41c,_0x2e5308:0x3b3,_0x13d9b7:0x129,_0x2c10ce:0x426},_0xeb6074={_0x1e0bd0:0xf2,_0x51bacb:0xa4},_0x1494da={_0x5d5e2e:0xfc};function _0x37945e(_0x567f98,_0x2f1b5d,_0x203e45,_0x319c8f){return _0x19c96f(_0x567f98-0x60,_0x2f1b5d-_0x1494da._0x5d5e2e,_0x2f1b5d,_0x203e45-0x1f6);}function _0x1a951c(_0x47bbbb,_0x287033,_0x1e1184,_0x481cbf){return _0x19c96f(_0x47bbbb-_0xeb6074._0x1e0bd0,_0x287033-0x6e,_0x1e1184,_0x481cbf- -_0xeb6074._0x51bacb);}if(_0x3a5e37[_0x37945e(0x499,0x33e,_0x31e3f8._0x8dcb53,_0x31e3f8._0x1474b)]===0x0)return _0x37945e(0x46a,_0x31e3f8._0x56e3b7,0x374,_0x31e3f8._0x3ef976);return _0x3a5e37[_0x1a951c(-0x13e,0x65,_0x31e3f8._0x2394ab,_0x31e3f8._0x321804)](_0x485c22=>{const _0x5999cd={_0x4cfd07:0x26,_0x4881db:0x240,_0x336a5a:0x10c},_0x1b2a6d={_0x42dd25:0x114};function _0x3a8daa(_0x46dd75,_0x14ffe3,_0x222ed2,_0x228952){return _0x1a951c(_0x46dd75-_0x1b2a6d._0x42dd25,_0x14ffe3-0x8e,_0x222ed2,_0x14ffe3- -0x96);}function _0x5cde49(_0x2e2e84,_0x3ec14d,_0x1495c0,_0xa43a89){return _0x37945e(_0x2e2e84-_0x5999cd._0x4cfd07,_0x3ec14d,_0x1495c0-_0x5999cd._0x4881db,_0xa43a89-_0x5999cd._0x336a5a);}if(isDocumentSymbol(_0x485c22))return _0x485c22[_0x5cde49(_0x151203._0x403efc,0x45a,0x418,_0x151203._0x3f7a11)]+'\x20('+_0x485c22[_0x3a8daa(_0x151203._0x495fd0,0xa9,0x10e,-_0x151203._0x4fbc28)]+_0x3a8daa(-_0x151203._0x15af0a,-_0x151203._0x5b2f31,-0x20e,-0xec)+(_0x485c22[_0x5cde49(0x43e,0x37b,_0x151203._0x45ae15,0x2d3)][_0x5cde49(0x5b7,0x58e,_0x151203._0x31648a,0x516)][_0x5cde49(_0x151203._0xbadc99,_0x151203._0x1cc8aa,0x5f4,_0x151203._0x2bd669)]+0x1)+':'+(_0x485c22[_0x3a8daa(-_0x151203._0x1bd907,-0x129,-0x12f,-_0x151203._0x340887)][_0x5cde49(_0x151203._0x468a1b,_0x151203._0x25999f,0x4d7,0x47c)][_0x3a8daa(0x209,0x96,0x210,_0x151203._0x21600b)]+0x1)+']';return _0x485c22['name']+'\x20('+_0x485c22['kind']+')\x20'+locationPath(_0x485c22['location'][_0x3a8daa(_0x151203._0x51b3f7,0x98,_0x151203._0x1c9d9f,-0xe4)])+':'+(_0x485c22[_0x3a8daa(-_0x151203._0x332a4b,_0x151203._0x1a3a90,_0x151203._0x440604,_0x151203._0x3cc353)][_0x5cde49(0x4cb,0x2da,_0x151203._0x4f3a1a,0x441)][_0x5cde49(0x37f,_0x151203._0x46dc3e,0x4d7,_0x151203._0x2e5308)][_0x5cde49(0x475,0x714,0x5f4,0x533)]+0x1)+':'+(_0x485c22[_0x3a8daa(-0xe7,0x78,0x13,-0xf6)][_0x3a8daa(-0x194,-_0x151203._0x13d9b7,-0xd7,-0xd7)][_0x5cde49(0x566,_0x151203._0x2c10ce,0x4d7,0x4f6)]['character']+0x1);})[_0x37945e(_0x31e3f8._0x36f719,0x10b,0x202,_0x31e3f8._0x24cbdc)]('\x0a');}function formatDiagnostics(_0xb4c6b8){const _0x3a6191={_0x6202f8:0x5e1,_0x4e1fc3:0x575,_0x3ce645:0x562,_0x5586e1:0x3f5,_0x16491b:0x56e,_0x2b2036:0x78,_0x58646e:0x17,_0x304d95:0x153},_0x963b03={_0x55059d:0x24e,_0x45cf45:0x279,_0xf4f2ba:0x22b},_0x40cf30={_0xe07c69:0x15c,_0xd52f29:0x1ce,_0x1d73b6:0x3aa},_0x2cb578={_0x21a0ad:0x67,_0x50b77f:0x26,_0xd9685e:0x68d};if(_0xb4c6b8[_0x37d8f4(_0x3a6191._0x6202f8,0x648,_0x3a6191._0x4e1fc3,0x540)]===0x0)return _0x37d8f4(_0x3a6191._0x3ce645,_0x3a6191._0x5586e1,_0x3a6191._0x16491b,0x543);function _0x553896(_0x2a8161,_0x3d9447,_0x502cb1,_0x383845){return _0x36273c(_0x2a8161-_0x2cb578._0x21a0ad,_0x3d9447-_0x2cb578._0x50b77f,_0x3d9447,_0x2a8161- -_0x2cb578._0xd9685e);}function _0x37d8f4(_0x1d8cc6,_0x2d3be7,_0x5a8e1a,_0x5da472){return _0x19c96f(_0x1d8cc6-_0x40cf30._0xe07c69,_0x2d3be7-_0x40cf30._0xd52f29,_0x5da472,_0x1d8cc6-_0x40cf30._0x1d73b6);}return _0xb4c6b8[_0x553896(-0x96,-_0x3a6191._0x2b2036,_0x3a6191._0x58646e,-0xe)](_0x4a917a=>{const _0x1d693f={_0xeb6895:0x90},_0x15983f={_0x1edaa2:0x142},_0x3f946c=_0x4a917a[_0x2c396b(_0x963b03._0x55059d,0x170,0x28f,_0x963b03._0x45cf45)]['start'];function _0x2c396b(_0x446593,_0x16c1aa,_0x1911c0,_0x25112b){return _0x37d8f4(_0x25112b- -_0x15983f._0x1edaa2,_0x16c1aa-0x13f,_0x1911c0-0x3f,_0x1911c0);}function _0x1c6e9c(_0x11e5b3,_0x321ffc,_0x4fddf8,_0x7bdd99){return _0x553896(_0x11e5b3-0x5a,_0x4fddf8,_0x4fddf8-_0x1d693f._0xeb6895,_0x7bdd99-0x198);}return severityName(_0x4a917a['severity'])+'\x20['+(_0x3f946c['line']+0x1)+':'+(_0x3f946c[_0x1c6e9c(0xcf,0xfe,_0x963b03._0xf4f2ba,-0x9)]+0x1)+']\x20'+_0x4a917a['message'];})[_0x553896(-0x14f,-0x1e6,-0x11d,-_0x3a6191._0x304d95)]('\x0a');}function formatIncomingCalls(_0xa8ba29){const _0x5ca476={_0x11fa20:0x4e1,_0x40e1ce:0x655,_0x2408f0:0x588},_0x14cdd3={_0x26a8a9:0xf0},_0x5e5f86={_0x38b4c3:0x98,_0x1e237f:0x1a8};if(_0xa8ba29['length']===0x0)return _0x17939d(_0x5ca476._0x11fa20,0x5d6,_0x5ca476._0x40e1ce,_0x5ca476._0x2408f0);function _0x2faceb(_0x582357,_0x46578a,_0x415c9d,_0x16a035){return _0x19c96f(_0x582357-_0x5e5f86._0x38b4c3,_0x46578a-_0x5e5f86._0x1e237f,_0x16a035,_0x582357-0x43);}function _0x17939d(_0x2dfe34,_0x2dff07,_0xb81291,_0x5eb027){return _0x19c96f(_0x2dfe34-0xeb,_0x2dff07-_0x14cdd3._0x26a8a9,_0x5eb027,_0x2dfe34-0x271);}return _0xa8ba29[_0x2faceb(0x108,-0x62,0x20a,0x151)](_0x5ec6ec=>_0x5ec6ec['from'][_0x17939d(0x253,0x1ec,0x190,0x112)])[_0x17939d(0x27d,0x17e,0x31a,0x208)]('\x0a');}function formatOutgoingCalls(_0x11d716){const _0x559483={_0x3eb28d:0x4ae,_0x515e15:0x3ef,_0x551500:0x3a4,_0x3f44f8:0x44,_0x1a861a:0x16f},_0x27eb9f={_0x12ef11:0xaf,_0x57cba4:0x3cf},_0x534ebd={_0x202dec:0xab,_0x43ba61:0x15,_0xbbf067:0x277};function _0x51f625(_0x9a1c76,_0x1e9334,_0x1f8676,_0x2d8440){return _0x19c96f(_0x9a1c76-_0x534ebd._0x202dec,_0x1e9334-_0x534ebd._0x43ba61,_0x1f8676,_0x9a1c76-_0x534ebd._0xbbf067);}if(_0x11d716[_0x51f625(_0x559483._0x3eb28d,0x4a9,_0x559483._0x515e15,0x33e)]===0x0)return _0x51f625(0x4e7,0x5c7,0x377,_0x559483._0x551500);function _0x26de71(_0x1e370b,_0x15a075,_0x40d18a,_0x3ab50b){return _0x36273c(_0x1e370b-_0x27eb9f._0x12ef11,_0x15a075-0x14,_0x1e370b,_0x40d18a- -_0x27eb9f._0x57cba4);}return _0x11d716['map'](_0x17329d=>_0x17329d['to'][_0x51f625(0x259,0x165,0x211,0x117)])[_0x26de71(0x194,_0x559483._0x3f44f8,_0x559483._0x1a861a,0xd4)]('\x0a');}function toStructured(_0xaa76e3){const _0x1baf5d={_0x77d1b:0x258,_0x5c9527:0x141,_0x42f31e:0x236,_0x843247:0x348,_0x42c1ac:0x4a3,_0xf03bf4:0x579},_0x3285e9={_0x50b1eb:0x176,_0x45759a:0x2dd},_0x433dd3={_0x370329:0x1fe};function _0x28e735(_0x58eadb,_0x328236,_0x31d85d,_0x39f575){return _0x19c96f(_0x58eadb-0x103,_0x328236-0x9,_0x39f575,_0x31d85d- -_0x433dd3._0x370329);}function _0x17ad9f(_0x40a120,_0x3c3fbc,_0x1b7194,_0x5113a0){return _0x36273c(_0x40a120-0x4a,_0x3c3fbc-_0x3285e9._0x50b1eb,_0x1b7194,_0x3c3fbc- -_0x3285e9._0x45759a);}return JSON[_0x28e735(-_0x1baf5d._0x77d1b,-_0x1baf5d._0x5c9527,-_0x1baf5d._0x42f31e,-_0x1baf5d._0x5c9527)](JSON[_0x17ad9f(_0x1baf5d._0x843247,_0x1baf5d._0x42c1ac,0x3b2,_0x1baf5d._0xf03bf4)](_0xaa76e3));}async function assertFile(_0x408704){const _0x51f7e0={_0xe25479:0x3a3},_0x24004f={_0x198825:0x88},_0x1f20ae=await _0x4b3dd9(_0x408704);function _0x1760c8(_0x53d690,_0x1983cf,_0x3170d6,_0x2d5000){return _0x36273c(_0x53d690-0x13b,_0x1983cf-_0x24004f._0x198825,_0x53d690,_0x1983cf- -0x206);}if(!_0x1f20ae['isFile']())throw new ToolExecutionError(_0x1760c8(0x2b3,_0x51f7e0._0xe25479,0x476,0x2d3)+_0x408704,{'path':_0x408704});}function validatePosition(_0x58d3e1,_0xf5eccb){const _0x98eaba={_0x5dd3e0:0x2c2,_0x3dc145:0x15d,_0x1d74c8:0x17d,_0x5d1c32:0x1bc},_0x446dbb={_0xdb1e94:0xca,_0x145c38:0x6da};function _0x21749a(_0x5116f8,_0x2d9a49,_0x53abb1,_0x371322){return _0x36273c(_0x5116f8-0x124,_0x2d9a49-0x1b0,_0x5116f8,_0x371322- -0x34d);}if(!Number['isInteger'](_0x58d3e1)||_0x58d3e1<0x1)throw new ToolExecutionError('line\x20must\x20be\x20a\x20positive\x20integer',{'line':_0x58d3e1});function _0x5074cc(_0x33ec80,_0x4350b3,_0x2d3fc9,_0x5e7704){return _0x36273c(_0x33ec80-_0x446dbb._0xdb1e94,_0x4350b3-0x2b,_0x4350b3,_0x5e7704- -_0x446dbb._0x145c38);}if(!Number[_0x21749a(0x56,0x246,_0x98eaba._0x5dd3e0,_0x98eaba._0x3dc145)](_0xf5eccb)||_0xf5eccb<0x1)throw new ToolExecutionError(_0x5074cc(-_0x98eaba._0x1d74c8,-_0x98eaba._0x5d1c32,-0x226,-0x168),{'character':_0xf5eccb});}function _0x19c96f(_0x52873d,_0x5c1834,_0x445d90,_0x533dcc){const _0x4b98a7={_0x5dd328:0x18f};return _0x4951(_0x533dcc- -_0x4b98a7._0x5dd328,_0x445d90);}function createLspTool(_0x1dc0fa={}){const _0x1add01={_0x8d02b1:0x26f,_0x55380f:0x914,_0x32317a:0x824,_0x22d1d1:0x18c,_0x5e969e:0x6a,_0x5666a6:0xc,_0x5465ab:0x177,_0xb5c976:0x1ab,_0x1de242:0x1c3,_0xa458d1:0x749,_0x1aef5b:0x8,_0xa490d:0x66,_0x4c132e:0xe0,_0x105504:0x1b7,_0x7fe1e9:0x21a,_0x5ffc02:0xa2,_0x34884e:0x15a,_0x2b77ce:0x2d2,_0x4213f9:0x2be,_0x4b9d79:0x1da,_0x4e0cce:0x266,_0x4375d9:0x28a,_0x482444:0x6e9,_0xbee334:0x6b4,_0x10415b:0x1df,_0x20105a:0x520,_0x73be77:0x67a,_0x131182:0x525,_0x21c105:0x5f8,_0x4e70f6:0x92},_0x193377={_0x467c77:0x61,_0x48f2a9:0x146,_0x41babd:0xa7,_0x5f133a:0x15c,_0x300935:0x21a,_0x5ad43e:0x26a,_0x303046:0x16e,_0x3019b9:0x187,_0xbd93af:0x330,_0x4559ee:0x20,_0x576a3c:0x33,_0xbe0328:0x32d,_0xdaefd:0x123,_0x1cdc83:0x205,_0x1a4cf1:0xc5,_0x3d59d0:0x5f,_0x5df044:0xcd,_0x59dfeb:0xc5,_0x5bb54b:0x143,_0x4f4ee6:0x44,_0x4c21df:0x8e,_0x255f88:0xb8,_0x2a1a17:0xb3,_0x55192c:0x1ca,_0x12bb62:0x4,_0x33aa9e:0x1b9,_0x1ba3b7:0x2ee,_0x3999fb:0xa2,_0x2f702b:0xa0,_0xec1efe:0xbf,_0x3d97c7:0x55,_0x449b1d:0x10b,_0x386f04:0x2d,_0xe6271d:0x201,_0x285667:0x2e2,_0x1f71ba:0x40,_0x21b60c:0x115,_0x16a18d:0x21,_0x235923:0x16,_0x551a7b:0x13e,_0x5f14a5:0x30,_0x381831:0x194,_0x3a31fc:0x206,_0x50f772:0x13e,_0x2e72c3:0x45,_0x398d2a:0xa3,_0x37d745:0x45,_0x29f996:0x4e,_0xdf4ab6:0x130,_0x2a4015:0x2ce},_0x24885b={_0x41655f:0x94,_0x46af21:0x34},_0x50e593={_0x31b807:0xf4,_0x5e88f5:0x14e};function _0x12c9a0(_0xe6e2d9,_0x21c730,_0x30bd73,_0x260675){return _0x19c96f(_0xe6e2d9-_0x50e593._0x31b807,_0x21c730-_0x50e593._0x5e88f5,_0xe6e2d9,_0x21c730- -0x18c);}const _0x298b6b=_0x4dbba3[_0x12c9a0(-0x284,-0x11a,-0x93,-_0x1add01._0x8d02b1)](_0x1dc0fa[_0x59ff4e(0x84b,0x7a0,_0x1add01._0x55380f,_0x1add01._0x32317a)]??process[_0x12c9a0(-_0x1add01._0x22d1d1,-_0x1add01._0x5e969e,0xf8,-0x14c)]()),_0x3c59e7=(_0x1dc0fa[_0x12c9a0(0x14a,0x8f,-0x11,-_0x1add01._0x5666a6)]??[])['map'](_0x2fad6b=>_0x4dbba3[_0x12c9a0(-0x60,-0x11a,-0x214,-0x103)](_0x2fad6b));function _0x59ff4e(_0x3d4a38,_0x438caa,_0x5f4fd9,_0x4e0647){return _0x36273c(_0x3d4a38-_0x24885b._0x41655f,_0x438caa-_0x24885b._0x46af21,_0x4e0647,_0x438caa-0x3c);}const _0x5472d3=_0x1dc0fa[_0x12c9a0(-_0x1add01._0x5465ab,-0x1aa,-0x1c5,-0x249)]??'Lsp';return defineTool({'name':_0x5472d3,'description':'Query\x20Language\x20Server\x20Protocol\x20code\x20intelligence\x20for\x20workspace\x20files:\x20definitions,\x20references,\x20hover,\x20symbols,\x20call\x20hierarchy,\x20and\x20diagnostics.','inputSchema':{'type':_0x12c9a0(-_0x1add01._0xb5c976,-0xcf,-_0x1add01._0x1de242,-0x1a1),'properties':{'operation':{'type':_0x59ff4e(0x6f1,0x67a,0x58c,_0x1add01._0xa458d1),'enum':[_0x12c9a0(-0x54,_0x1add01._0x1aef5b,_0x1add01._0xa490d,_0x1add01._0x4c132e),_0x12c9a0(_0x1add01._0x105504,0xdf,_0x1add01._0x7fe1e9,-0x6),'hover','documentSymbol','workspaceSymbol',_0x12c9a0(-_0x1add01._0x5ffc02,-_0x1add01._0x34884e,-0xe6,-0x17a),_0x12c9a0(-0x2e5,-0x16f,-_0x1add01._0x2b77ce,-_0x1add01._0x4213f9),_0x12c9a0(-0x27b,-_0x1add01._0x4b9d79,-_0x1add01._0x4e0cce,-_0x1add01._0x4375d9),'outgoingCalls',_0x59ff4e(_0x1add01._0x482444,0x77f,_0x1add01._0xbee334,0x8e0)]},'filePath':{'type':'string'},'line':{'type':_0x12c9a0(-0x16d,-0x1d9,-_0x1add01._0x10415b,-0x292)},'character':{'type':'number'},'query':{'type':_0x59ff4e(_0x1add01._0x20105a,_0x1add01._0x73be77,_0x1add01._0x131182,0x797)}},'required':[_0x59ff4e(_0x1add01._0x21c105,0x611,0x68b,0x57a),'filePath',_0x59ff4e(0x5ca,0x72c,0x677,0x8ae),_0x12c9a0(-_0x1add01._0x4e70f6,0x44,-0x46,0xb8)]},async *'execute'(_0x306769){const _0x9d8b9f={_0x3887d0:0x175,_0x5c88a6:0x157,_0x5f3f92:0x19a},_0x39b384=_0x1dc0fa[_0x170464(-_0x193377._0x467c77,-0x136,-_0x193377._0x48f2a9,0x42)];if(!_0x39b384)throw new ToolExecutionError(_0xc45ac5(0xd1,-0x14f,-0x23,0x69));if(!_0x39b384['isEnabled']())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0xfc6222=_0x306769['operation'];function _0x170464(_0x585519,_0x4812b0,_0x29c497,_0x363fc1){return _0x12c9a0(_0x363fc1,_0x585519-_0x9d8b9f._0x3887d0,_0x29c497-_0x9d8b9f._0x5c88a6,_0x363fc1-_0x9d8b9f._0x5f3f92);}validatePosition(_0x306769[_0xc45ac5(0x214,_0x193377._0x41babd,_0x193377._0x5f133a,_0x193377._0x300935)],_0x306769[_0xc45ac5(_0x193377._0x5ad43e,0x255,_0x193377._0x303046,0x2df)]);function _0xc45ac5(_0x3e2c8f,_0x3c8837,_0x35bdc3,_0x2b69c3){return _0x12c9a0(_0x2b69c3,_0x35bdc3-0x12a,_0x35bdc3-0x141,_0x2b69c3-0x118);}if(_0xfc6222==='workspaceSymbol'){if(!_0x306769[_0x170464(0x7e,-0x46,_0x193377._0x3019b9,-0x97)]?.[_0xc45ac5(_0x193377._0xbd93af,0x279,0x205,0x1fa)]())throw new ToolExecutionError(_0x170464(0x12f,-_0x193377._0x4559ee,0x11d,0x110));const _0x7e5ba6=await _0x39b384['workspaceSymbol'](_0x306769[_0xc45ac5(0x12c,-0xfa,_0x193377._0x576a3c,-0xad)][_0xc45ac5(_0x193377._0xbe0328,_0x193377._0xdaefd,_0x193377._0x1cdc83,_0x193377._0x1a4cf1)]());return yield createToolOutput(formatSymbols(_0x7e5ba6),{'operation':_0xfc6222,'query':_0x306769['query'],'symbols':_0x7e5ba6}),void 0x0;}const _0x52c3f4=resolveAllowedPath(_0x298b6b,_0x3c59e7,_0x306769[_0x170464(-_0x193377._0x3d59d0,-_0x193377._0x5df044,-0xa4,_0x193377._0x59dfeb)]);await assertFile(_0x52c3f4);if(!await _0x39b384[_0xc45ac5(0x2ce,0xd3,0x1f3,0xa7)](_0x52c3f4))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x306769[_0x170464(-0x5f,-_0x193377._0x5bb54b,-_0x193377._0x4f4ee6,-0xee)],{'filePath':_0x306769['filePath']});await _0x39b384[_0xc45ac5(-0x186,0x52,-_0x193377._0x4c21df,-_0x193377._0x255f88)](_0x52c3f4,!![]);const _0x50414d={'file':_0x52c3f4,'line':_0x306769[_0xc45ac5(_0x193377._0x2a1a17,_0x193377._0x55192c,0x15c,_0x193377._0x12bb62)]-0x1,'character':_0x306769[_0x170464(_0x193377._0x33aa9e,0x253,_0x193377._0x1ba3b7,0x256)]-0x1};switch(_0xfc6222){case _0xc45ac5(-_0x193377._0x3999fb,-0x1c3,-_0x193377._0x2f702b,-_0x193377._0xec1efe):{const _0x175a05=await _0x39b384[_0x170464(-_0x193377._0x3d97c7,0x127,_0x193377._0x449b1d,0xa0)](_0x50414d);return yield createToolOutput(formatHover(_0x175a05),{'operation':_0xfc6222,'filePath':_0x52c3f4,'hover':_0x175a05}),void 0x0;}case'diagnostics':{const _0x3c6266=await _0x39b384[_0x170464(_0x193377._0x386f04,0x13e,0x86,0xb4)](_0x52c3f4);return yield createToolOutput(formatDiagnostics(_0x3c6266),{'operation':_0xfc6222,'filePath':_0x52c3f4,'diagnostics':_0x3c6266}),void 0x0;}case _0x170464(0x17d,_0x193377._0xe6271d,0xab,0x1ad):{const _0x1c351d=await _0x39b384[_0x170464(0x1be,0x1c8,_0x193377._0x285667,_0x193377._0x1f71ba)](_0x50414d);return yield createToolOutput(formatLocations(_0x1c351d),{'operation':_0xfc6222,'filePath':_0x52c3f4,'locations':_0x1c351d}),void 0x0;}case'findReferences':{const _0x343b80=await _0x39b384[_0xc45ac5(_0x193377._0x21b60c,-_0x193377._0x16a18d,-_0x193377._0x235923,-0x10)](_0x50414d);return yield createToolOutput(formatLocations(_0x343b80),{'operation':_0xfc6222,'filePath':_0x52c3f4,'locations':_0x343b80}),void 0x0;}case _0xc45ac5(_0x193377._0x551a7b,-0xf9,-_0x193377._0x5f14a5,-_0x193377._0x381831):{const _0xe476df=await _0x39b384['implementation'](_0x50414d);return yield createToolOutput(formatLocations(_0xe476df),{'operation':_0xfc6222,'filePath':_0x52c3f4,'locations':_0xe476df}),void 0x0;}case'documentSymbol':{const _0x527eee=await _0x39b384[_0x170464(0x1e1,0x2ab,_0x193377._0x3a31fc,0xc1)](_0x52c3f4);return yield createToolOutput(formatSymbols(_0x527eee),{'operation':_0xfc6222,'filePath':_0x52c3f4,'symbols':_0x527eee}),void 0x0;}case _0xc45ac5(-_0x193377._0x50f772,-0x35,-_0x193377._0x2e72c3,-0x187):{const _0x3eb36b=await _0x39b384[_0xc45ac5(-_0x193377._0x398d2a,0x74,-_0x193377._0x37d745,-0x116)](_0x50414d);return yield createToolOutput(formatSymbols(_0x3eb36b),{'operation':_0xfc6222,'filePath':_0x52c3f4,'symbols':toStructured(_0x3eb36b)}),void 0x0;}case _0xc45ac5(_0x193377._0x29f996,-_0x193377._0xdf4ab6,-0xb0,-_0x193377._0x21b60c):{const _0x439c0b=await _0x39b384['incomingCalls'](_0x50414d);return yield createToolOutput(formatIncomingCalls(_0x439c0b),{'operation':_0xfc6222,'filePath':_0x52c3f4,'calls':toStructured(_0x439c0b)}),void 0x0;}case'outgoingCalls':{const _0x24440e=await _0x39b384[_0xc45ac5(0xf6,0x79,0x1f6,_0x193377._0x2a4015)](_0x50414d);return yield createToolOutput(formatOutgoingCalls(_0x24440e),{'operation':_0xfc6222,'filePath':_0x52c3f4,'calls':toStructured(_0x24440e)}),void 0x0;}}}});}import{randomUUID as _0x543624}from'crypto';import{mkdir as _0x14bb31,readFile as _0x31c076,writeFile as _0x5f3633}from'fs/promises';import{join as _0x2f859f}from'path';function sanitizeStorageKey(_0x333853){const _0x1bd81d={_0x484f68:0x4a2,_0x12aac1:0x540,_0x31db40:0x665,_0x240273:0x2d8},_0x1f4d17={_0x5089f0:0x3a};function _0x34b6d5(_0x2748d0,_0x37d81a,_0xecd9c3,_0x1e4cd0){return _0x19c96f(_0x2748d0-0x7,_0x37d81a-0x177,_0x37d81a,_0x2748d0-0x335);}function _0x5e1266(_0x2b9d80,_0x30b36d,_0x383a11,_0x45b31d){return _0x19c96f(_0x2b9d80-0x193,_0x30b36d-_0x1f4d17._0x5089f0,_0x383a11,_0x30b36d-0x2ea);}return _0x333853[_0x34b6d5(0x58b,_0x1bd81d._0x484f68,0x644,0x428)](/[^a-zA-Z0-9_]+/g,'_')[_0x5e1266(0x633,_0x1bd81d._0x12aac1,_0x1bd81d._0x31db40,0x4cf)](/^_+|_+$/g,'')||_0x5e1266(0x1e1,0x2a4,0x37a,_0x1bd81d._0x240273);}function storagePath(_0x148fd7){const _0x237346={_0x50a138:0x30f,_0x11067d:0x433,_0x2e3c76:0x462,_0x18f174:0x477,_0x5cadfc:0x1f3,_0x3e0dfe:0x1d0,_0x682eb1:0xb2,_0x332d01:0x233,_0x379354:0x7d,_0x2f4d4d:0x72,_0x1e3f78:0x1e3,_0x4a9283:0x26f,_0x1619c0:0x1f2},_0x4234f1={_0x5ddc08:0x89,_0x53d9ff:0x127,_0x4e0b8d:0x657},_0x46f952={_0x262ccc:0xfc,_0x5035cb:0x189};function _0xbbb036(_0x397259,_0x34bcb5,_0x25df19,_0x2ccbd2){return _0x36273c(_0x397259-_0x46f952._0x262ccc,_0x34bcb5-_0x46f952._0x5035cb,_0x25df19,_0x34bcb5- -0x372);}function _0x1713d7(_0x3b235c,_0x4955a7,_0x4516dc,_0x31ad9f){return _0x36273c(_0x3b235c-_0x4234f1._0x5ddc08,_0x4955a7-_0x4234f1._0x53d9ff,_0x31ad9f,_0x4955a7- -_0x4234f1._0x4e0b8d);}const _0x39ad41=sanitizeStorageKey(_0x148fd7[_0xbbb036(_0x237346._0x50a138,_0x237346._0x11067d,_0x237346._0x2e3c76,_0x237346._0x18f174)][_0xbbb036(0x18,0x183,0x247,_0x237346._0x5cadfc)]?.[_0x1713d7(-_0x237346._0x3e0dfe,-_0x237346._0x682eb1,-_0x237346._0x332d01,-0xb4)]??_0x148fd7[_0xbbb036(_0x237346._0x379354,0x175,_0x237346._0x2f4d4d,_0x237346._0x1e3f78)]);return _0x2f859f(_0x148fd7[_0x1713d7(-_0x237346._0x4a9283,-0x166,-_0x237346._0x1619c0,-0x4e)],_0x39ad41+'.json');}async function readStore(_0x47ecc0){const _0x477983={_0x55a5c5:0x2d1,_0x2ee233:0x3c3,_0x341059:0x2e3,_0x50abbe:0x113,_0x1e516:0x138,_0xda9cf0:0x2fe,_0x40c302:0x3d2,_0x522a42:0x44a,_0x56f401:0x267,_0x226ce4:0xad,_0x2909fc:0xae,_0x3160d7:0x210,_0xba55e3:0x220,_0x420c1a:0x25d,_0x5672c6:0xe5},_0x3317e9={_0x5154ef:0x176,_0x31af34:0x765},_0x5de6ff={_0x453c51:0x89};function _0x47b8c5(_0x5a49ad,_0x1befe0,_0x446dd0,_0x440f98){return _0x36273c(_0x5a49ad-0xb4,_0x1befe0-_0x5de6ff._0x453c51,_0x1befe0,_0x5a49ad- -0x257);}function _0x1b82e5(_0x2cde1a,_0x1b98bc,_0x42e24f,_0x3f308f){return _0x36273c(_0x2cde1a-0x14a,_0x1b98bc-_0x3317e9._0x5154ef,_0x42e24f,_0x3f308f- -_0x3317e9._0x31af34);}try{return JSON[_0x1b82e5(-_0x477983._0x55a5c5,-_0x477983._0x2ee233,-_0x477983._0x341059,-0x26b)](await _0x31c076(_0x47ecc0,_0x1b82e5(-_0x477983._0x50abbe,-0xfc,-_0x477983._0x1e516,-0xcf)));}catch(_0x29598a){if(_0x29598a instanceof Error&&_0x47b8c5(_0x477983._0xda9cf0,_0x477983._0x40c302,_0x477983._0x522a42,_0x477983._0x56f401)in _0x29598a&&_0x29598a[_0x1b82e5(-_0x477983._0x226ce4,-_0x477983._0x2909fc,-0x373,-_0x477983._0x3160d7)]===_0x1b82e5(-_0x477983._0xba55e3,-0x1d7,-_0x477983._0x420c1a,-_0x477983._0x5672c6))return{};throw _0x29598a;}}async function writeStore(_0x45c088,_0x3d5919){const _0x435083={_0x4f55b9:0x2ee,_0x25996d:0x1bf,_0x273124:0x1c5},_0x6c1cbd={_0x4519ae:0x1};function _0x14c4a7(_0x3b9b7e,_0x12162d,_0x11a2d5,_0x25e45c){return _0x19c96f(_0x3b9b7e-0x1a,_0x12162d-_0x6c1cbd._0x4519ae,_0x11a2d5,_0x3b9b7e- -0x20);}await _0x14bb31(_0x2f859f(_0x45c088,'..'),{'recursive':!![]}),await _0x5f3633(_0x45c088,JSON[_0x14c4a7(0x22e,_0x435083._0x4f55b9,_0x435083._0x25996d,_0x435083._0x273124)](_0x3d5919,null,0x2),'utf8');}async function updateStore(_0x358f65,_0x2d2de6){const _0x221b5c=await readStore(_0x358f65);_0x2d2de6(_0x221b5c),await writeStore(_0x358f65,_0x221b5c);}function createMcpOAuthProvider(_0x1444cb){const _0x374ff8={_0xa57719:0x4c,_0x3353ab:0x52,_0x476918:0x77,_0x40018e:0x19e,_0x3b4326:0x6a,_0x588416:0x2ce,_0x8f0de9:0xad,_0x3537bd:0x22d,_0x558f4f:0x2af,_0x1334c6:0x10c,_0x210992:0x23,_0x1e865b:0x38,_0x160711:0xbb,_0x475c2e:0xe5,_0x894a58:0x297,_0x37fa9a:0x9,_0x2e6dbd:0x1b8,_0x43437a:0x22b,_0x92a7ab:0xfb,_0x378b77:0x67,_0x1a226f:0xdd},_0x14b81e={_0x285564:0x29,_0x5ef6d0:0x140,_0x419908:0x1eb},_0x508e24={_0x213fb1:0x3e6,_0x5da46a:0x65d,_0x5a2876:0x502,_0x21ab11:0x2df,_0x5ca415:0x764,_0x1174cb:0x564,_0x16b119:0x6cd,_0x1a92cf:0x1d8,_0x3fece4:0x405,_0x35aeb9:0x564,_0x151c6a:0x60e,_0x25a3f1:0x444,_0x1ee5ff:0x379,_0x3225d0:0x4ae,_0x4ca07c:0x7,_0xb9f81d:0xc1,_0x2d33b2:0x1db,_0x22ddfc:0x53a,_0x5d7f19:0x629,_0x7c6cbf:0x61e,_0x4b49ce:0x3ac,_0x19e96f:0x4d2,_0x5aafa2:0x520,_0x1eeb1b:0x60a},_0x5ac296={_0x13fdd3:0x1a5,_0x17ff08:0x1a5,_0x415a52:0x1bf},_0x101074={_0x306020:0xa7,_0x5025dc:0x167},_0xc177f6={_0x95a8f7:0x309,_0x1f32d5:0x220},_0x4a7e0f={_0x56fb28:0x14c},_0x6cebe1={_0x1694b3:0x1c7},_0x5ed67c={_0x404e3c:0x33b,_0x247523:0x4ca},_0x3df7c3={_0x1a160b:0x500,_0x5490b7:0x434,_0x474b34:0x4f5},_0x174177={_0x3cfbfa:0x642,_0x32b475:0x1e2},_0x4dad30={_0x14ce22:0x325,_0x221d90:0x1f8,_0x4a5797:0x45a},_0x5e91ac={_0xae61c5:0x1ab,_0x29b994:0x52,_0x169fec:0x2a},_0x51c4bd={_0x4240af:0x24,_0xfaeb93:0x5e},_0xfb592f={_0x862b7f:0xa7,_0x205959:0x12d},_0x53c5ef={_0x4a681d:0x57a},_0x1dbd40=storagePath(_0x1444cb);function _0x15c139(_0x1c8a9e,_0x4ba84c,_0x7c0669,_0x2eb04f){return _0x19c96f(_0x1c8a9e-0x172,_0x4ba84c-0x9d,_0x4ba84c,_0x1c8a9e- -0x1aa);}const _0x10da36=_0x1444cb[_0x15c139(0xc9,0xe5,0x9f,-0x4d)]['oauth']?.[_0x15c139(-0x5b,_0x374ff8._0xa57719,-_0x374ff8._0x3353ab,_0x374ff8._0x476918)]?.[_0x15c139(-_0x374ff8._0x40018e,-_0x374ff8._0x3b4326,-0x11c,-_0x374ff8._0x588416)]('\x20');function _0xcf846d(_0x117964,_0x3a344d,_0x3ce3a6,_0x135e58){return _0x36273c(_0x117964-0x1d4,_0x3a344d-0x8c,_0x135e58,_0x117964- -_0x53c5ef._0x4a681d);}const _0x5d300c={'client_name':_0x15c139(-0xdf,0x1,-0x182,-_0x374ff8._0x8f0de9),'redirect_uris':[_0x1444cb[_0xcf846d(_0x374ff8._0x3537bd,_0x374ff8._0x558f4f,0x2c5,_0x374ff8._0x1334c6)]],'grant_types':[_0xcf846d(_0x374ff8._0x210992,-_0x374ff8._0x1e865b,-0xbf,-0x61),_0x15c139(0x79,-0x5f,_0x374ff8._0x160711,_0x374ff8._0x475c2e)],'response_types':[_0x15c139(-0x187,-0x20e,-0x66,-_0x374ff8._0x894a58)],'token_endpoint_auth_method':_0xcf846d(0x168,0x217,_0x374ff8._0x37fa9a,_0x374ff8._0x2e6dbd),..._0x10da36?{'scope':_0x10da36}:{}};return{'clientMetadataUrl':_0x1444cb[_0xcf846d(_0x374ff8._0x43437a,_0x374ff8._0x92a7ab,0xb7,0x20e)][_0xcf846d(-0x85,_0x374ff8._0x378b77,-0xf2,_0x374ff8._0x1a226f)]?.['clientMetadataUrl'],get 'redirectUrl'(){function _0x284239(_0x1fb929,_0x1dff30,_0x331e5e,_0x3ed127){return _0x15c139(_0x1fb929- -_0xfb592f._0x862b7f,_0x331e5e,_0x331e5e-_0xfb592f._0x205959,_0x3ed127-0x116);}return _0x1444cb[_0x284239(_0x51c4bd._0x4240af,-0x106,-0xf7,_0x51c4bd._0xfaeb93)];},get 'clientMetadata'(){return _0x5d300c;},async 'state'(){const _0x473e90=await readStore(_0x1dbd40);if(_0x473e90['state'])return _0x473e90[_0xf8beb8(_0x4dad30._0x14ce22,0x284,_0x4dad30._0x221d90,_0x4dad30._0x4a5797)];function _0xf8beb8(_0x5a56ea,_0x42e62f,_0x2a7060,_0x2e084a){return _0xcf846d(_0x5a56ea-_0x5e91ac._0xae61c5,_0x42e62f-_0x5e91ac._0x29b994,_0x2a7060-_0x5e91ac._0x169fec,_0x2e084a);}const _0x31168f=_0x543624();return await updateStore(_0x1dbd40,_0x1872a8=>{_0x1872a8['state']=_0x31168f;}),_0x31168f;},async 'clientInformation'(){function _0xc32b6(_0x158d63,_0x56fe72,_0x19a671,_0xc7ee2b){return _0x15c139(_0x19a671-_0x174177._0x3cfbfa,_0x158d63,_0x19a671-_0x174177._0x32b475,_0xc7ee2b-0x145);}return(await readStore(_0x1dbd40))[_0xc32b6(_0x3df7c3._0x1a160b,_0x3df7c3._0x5490b7,_0x3df7c3._0x474b34,0x5a1)];},async 'saveClientInformation'(_0x1feb00){await updateStore(_0x1dbd40,_0x2dfd7c=>{function _0x3eb2db(_0x36838e,_0x1cc638,_0x30a1e7,_0x173b9c){return _0x4951(_0x30a1e7-0x3c3,_0x36838e);}_0x2dfd7c[_0x3eb2db(0x4ba,0x662,0x5af,0x6f2)]=_0x1feb00;});},async 'tokens'(){const _0x3a38f6={_0xef0295:0xb8,_0x3ad448:0x135};function _0x523de4(_0x40cc08,_0xa9d245,_0x163775,_0x9e16ad){return _0xcf846d(_0x163775-0x227,_0xa9d245-_0x3a38f6._0xef0295,_0x163775-_0x3a38f6._0x3ad448,_0xa9d245);}return(await readStore(_0x1dbd40))[_0x523de4(_0x5ed67c._0x404e3c,0x40e,0x450,_0x5ed67c._0x247523)];},async 'saveTokens'(_0x22c33f){await updateStore(_0x1dbd40,_0x383e39=>{function _0x32bccf(_0x5317b1,_0x4ab564,_0x6cac53,_0x4f3f89){return _0x4951(_0x6cac53- -0x239,_0x4f3f89);}_0x383e39[_0x32bccf(0x2a7,0x92,_0x6cebe1._0x1694b3,0x22c)]=_0x22c33f;});},async 'redirectToAuthorization'(_0xe965d3){function _0x1b9c1e(_0x479491,_0x4dd334,_0xa0a538,_0x151104){return _0xcf846d(_0x4dd334- -0x1f6,_0x4dd334-_0x4a7e0f._0x56fb28,_0xa0a538-0x15e,_0x151104);}await _0x1444cb[_0x1b9c1e(-_0xc177f6._0x95a8f7,-_0xc177f6._0x1f32d5,-0x2be,-0x370)](_0xe965d3);},async 'saveCodeVerifier'(_0x578778){await updateStore(_0x1dbd40,_0x172ba5=>{_0x172ba5['codeVerifier']=_0x578778;});},async 'codeVerifier'(){const _0x53764e=(await readStore(_0x1dbd40))[_0xc41676(_0x5ac296._0x13fdd3,0xc7,_0x5ac296._0x17ff08,_0x5ac296._0x415a52)];function _0xc41676(_0x57dd31,_0x5313dc,_0x378c83,_0x18c57e){return _0x15c139(_0x5313dc-0x22e,_0x18c57e,_0x378c83-_0x101074._0x306020,_0x18c57e-_0x101074._0x5025dc);}if(!_0x53764e)throw new Error('No\x20MCP\x20OAuth\x20code\x20verifier\x20saved');return _0x53764e;},async 'invalidateCredentials'(_0xcd249f){await updateStore(_0x1dbd40,_0x51302f=>{function _0x1ca74f(_0x2404bd,_0x34da83,_0x19d86a,_0x531c3c){return _0x4951(_0x531c3c-0x2cd,_0x19d86a);}(_0xcd249f===_0x1ca74f(_0x508e24._0x213fb1,_0x508e24._0x5da46a,0x535,_0x508e24._0x5a2876)||_0xcd249f===_0x56aad7(0x269,_0x508e24._0x21ab11,0x1a4,0x305))&&(_0x51302f['clientInformation']=void 0x0);function _0x56aad7(_0x2e04a0,_0x1c336e,_0x1c4d98,_0x138e85){return _0x4951(_0x1c4d98- -0x111,_0x1c336e);}(_0xcd249f==='all'||_0xcd249f===_0x1ca74f(_0x508e24._0x5ca415,0x65b,_0x508e24._0x1174cb,_0x508e24._0x16b119))&&(_0x51302f[_0x56aad7(0x3eb,_0x508e24._0x1a92cf,0x2ef,0x1e2)]=void 0x0),(_0xcd249f===_0x1ca74f(_0x508e24._0x3fece4,_0x508e24._0x35aeb9,_0x508e24._0x151c6a,_0x508e24._0x5a2876)||_0xcd249f===_0x1ca74f(0x5d4,_0x508e24._0x25a3f1,_0x508e24._0x1ee5ff,_0x508e24._0x3225d0))&&(_0x51302f[_0x56aad7(0x1fd,_0x508e24._0x4ca07c,_0x508e24._0xb9f81d,_0x508e24._0x2d33b2)]=void 0x0,_0x51302f[_0x1ca74f(_0x508e24._0x22ddfc,_0x508e24._0x5d7f19,0x669,_0x508e24._0x7c6cbf)]=void 0x0),(_0xcd249f===_0x1ca74f(0x5b9,0x64f,_0x508e24._0x4b49ce,0x502)||_0xcd249f===_0x1ca74f(0x405,0x428,_0x508e24._0x19e96f,_0x508e24._0x5aafa2))&&(_0x51302f[_0x1ca74f(0x5c1,0x400,_0x508e24._0x1eeb1b,0x4ac)]=void 0x0);});},async 'saveDiscoveryState'(_0x19e761){await updateStore(_0x1dbd40,_0xea18c5=>{_0xea18c5['discoveryState']=_0x19e761;});},async 'discoveryState'(){function _0x1f5e6e(_0x2d1e1b,_0x560441,_0xcbbd0e,_0x1be644){return _0x15c139(_0x1be644-_0x14b81e._0x285564,_0xcbbd0e,_0xcbbd0e-_0x14b81e._0x5ef6d0,_0x1be644-_0x14b81e._0x419908);}return(await readStore(_0x1dbd40))[_0x1f5e6e(-0x209,-0x1f6,-0x63,-0x131)];}};}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(_0x2423af,_0x5b7a4e){const _0x20eebc={_0x1d6174:0x390},_0x794bc8={_0x318865:0x42},_0xc4bca={_0x19a936:0x10d};function _0x46fb04(_0x4fb2a1,_0x313d32,_0x579713,_0x207df5){return _0x19c96f(_0x4fb2a1-0x1a8,_0x313d32-_0xc4bca._0x19a936,_0x4fb2a1,_0x207df5-0x221);}const _0x368479=_0x59fbe7=>_0x59fbe7[_0x46fb04(0x3ca,0x312,0x375,0x477)](/[^a-zA-Z0-9_]+/g,'_')[_0x46fb04(0x56d,0x5b0,0x3a4,0x477)](/^_+|_+$/g,'');function _0x137d20(_0x3eaf23,_0x5a034e,_0x2def23,_0x5b4a42){return _0x19c96f(_0x3eaf23-0x1d6,_0x5a034e-_0x794bc8._0x318865,_0x5b4a42,_0x3eaf23-0x336);}return _0x46fb04(0x2de,0x3dd,0x36b,_0x20eebc._0x1d6174)+_0x368479(_0x2423af)+'_'+_0x368479(_0x5b7a4e);}function isObject(_0x23fc22){return typeof _0x23fc22==='object'&&_0x23fc22!==null&&!Array['isArray'](_0x23fc22);}function toSupportedSchema(_0x2eb8d7){const _0xe5e1a9={_0x934437:0x109,_0x3c37db:0x17f,_0x3f026d:0x176,_0xd67b53:0x160,_0x1dfeb5:0x89,_0x381289:0x2a4,_0x2c2fc7:0x263,_0x1c3092:0x110,_0xc9a505:0x1ea,_0x34e2f2:0x94,_0x2cf501:0x1bc,_0x440c2f:0x32d,_0x2aaa60:0x114,_0x57d0d6:0x4b,_0x2945d4:0x5,_0x1552bb:0x17f,_0x191047:0x195,_0x4aee03:0x73,_0x2cf17b:0x6f},_0x29b7b7={_0x1e7d87:0x179,_0x13fdc7:0xb6,_0x6df719:0x73};if(!isObject(_0x2eb8d7))return void 0x0;function _0x3e1795(_0xdc7f15,_0x3a414d,_0x179a54,_0x51c076){return _0x19c96f(_0xdc7f15-_0x29b7b7._0x1e7d87,_0x3a414d-_0x29b7b7._0x13fdc7,_0x51c076,_0x3a414d-_0x29b7b7._0x6df719);}if(_0x2eb8d7['type']===_0x3e1795(_0xe5e1a9._0x934437,_0xe5e1a9._0x3c37db,_0xe5e1a9._0x3f026d,_0xe5e1a9._0xd67b53))return{'type':_0x3e1795(_0xe5e1a9._0x1dfeb5,0x17f,0x5a,0x1b1)};if(_0x2eb8d7['type']==='number'||_0x2eb8d7[_0x3e1795(0x3d6,_0xe5e1a9._0x381289,_0xe5e1a9._0x2c2fc7,0x3d9)]==='integer')return{'type':_0x205d07(-0x2e7,-_0xe5e1a9._0x1c3092,-0x319,-_0xe5e1a9._0xc9a505)};function _0x205d07(_0x375404,_0x55d536,_0x20dce3,_0x4d4fd9){return _0x19c96f(_0x375404-0x187,_0x55d536-0x1f3,_0x20dce3,_0x4d4fd9- -0x19d);}if(_0x2eb8d7[_0x205d07(0x26,-0x23,0x13c,_0xe5e1a9._0x34e2f2)]===_0x3e1795(0x285,_0xe5e1a9._0x2cf501,_0xe5e1a9._0x440c2f,0x25c))return{'type':'boolean'};if(_0x2eb8d7[_0x205d07(_0xe5e1a9._0x2aaa60,_0xe5e1a9._0x57d0d6,-_0xe5e1a9._0x2945d4,0x94)]==='array')return{'type':'array','items':toSupportedSchema(_0x2eb8d7['items'])??{'type':_0x3e1795(0x1b4,_0xe5e1a9._0x1552bb,_0xe5e1a9._0x191047,0x162)}};if(_0x2eb8d7[_0x205d07(-0x21,_0xe5e1a9._0x4aee03,-_0xe5e1a9._0x2cf17b,_0xe5e1a9._0x34e2f2)]==='object')return toNuvinToolSchema(_0x2eb8d7);return void 0x0;}function toNuvinToolSchema(_0x50cbbe){const _0x491d2e={_0xcd1db:0x446,_0x264e9f:0x2ef,_0x102b41:0x3be,_0x4f1ba5:0x43b,_0x815b00:0x131,_0x45252a:0x256,_0x1dd893:0x5c9,_0x461f5d:0x693,_0xa96b5d:0x211,_0x932ddd:0x3b5,_0x3840fa:0x314,_0x6c41f:0x4da,_0x410757:0x503,_0x196de4:0x4ee,_0x4b8e8f:0x1f8,_0x3f8c9a:0xf2,_0xd33422:0x245},_0x5d942a={_0x34af4b:0x153,_0x4fcd97:0x171,_0x133d21:0x35a},_0x2052b5={_0x50ce5d:0x10a,_0x7c82a1:0x3aa};function _0x55ac99(_0x410cd2,_0x2b84b5,_0x5e87d9,_0x2e1b82){return _0x36273c(_0x410cd2-0x14c,_0x2b84b5-_0x2052b5._0x50ce5d,_0x410cd2,_0x2e1b82- -_0x2052b5._0x7c82a1);}if(!isObject(_0x50cbbe)||_0x50cbbe[_0xe050d3(0x58b,0x4ab,0x6b6,_0x491d2e._0xcd1db)]!==_0xe050d3(0x417,0x39a,_0x491d2e._0x264e9f,_0x491d2e._0x102b41))return{'type':_0xe050d3(0x417,_0x491d2e._0x4f1ba5,0x487,0x42f),'properties':{}};const _0x5ea0d4={},_0x59d87c=isObject(_0x50cbbe[_0x55ac99(0x26b,0x280,_0x491d2e._0x815b00,_0x491d2e._0x45252a)])?_0x50cbbe['properties']:{};for(const [_0x176065,_0x2fd94b]of Object['entries'](_0x59d87c)){const _0x3f713c=toSupportedSchema(_0x2fd94b);if(_0x3f713c)_0x5ea0d4[_0x176065]=_0x3f713c;}function _0xe050d3(_0x57b1b4,_0x5237a0,_0x4e5f3e,_0x5227a5){return _0x19c96f(_0x57b1b4-_0x5d942a._0x34af4b,_0x5237a0-_0x5d942a._0x4fcd97,_0x4e5f3e,_0x57b1b4-_0x5d942a._0x133d21);}const _0x58a04a=Array[_0xe050d3(_0x491d2e._0x1dd893,_0x491d2e._0x461f5d,0x5da,0x54e)](_0x50cbbe['required'])?_0x50cbbe[_0x55ac99(_0x491d2e._0xa96b5d,0x2a8,_0x491d2e._0x932ddd,_0x491d2e._0x3840fa)][_0xe050d3(0x3d9,_0x491d2e._0x6c41f,_0x491d2e._0x410757,0x314)](_0x52dc3a=>typeof _0x52dc3a==='string'):void 0x0;return _0x58a04a?.[_0xe050d3(0x591,0x551,_0x491d2e._0x196de4,0x471)]?{'type':'object','properties':_0x5ea0d4,'required':_0x58a04a}:{'type':_0x55ac99(0x16b,_0x491d2e._0x4b8e8f,_0x491d2e._0x3f8c9a,_0x491d2e._0xd33422),'properties':_0x5ea0d4};}function isJsonObject(_0x293634){const _0x1b130a={_0xba6d4b:0x25b,_0x44bbf3:0x386,_0x557a90:0x2b3,_0x25e2c5:0x3b5},_0x20c296={_0x4ee9ed:0xd2};function _0x152504(_0x3f0f9d,_0x4fc01e,_0x3d39a3,_0x2f25c5){return _0x36273c(_0x3f0f9d-0x17c,_0x4fc01e-_0x20c296._0x4ee9ed,_0x4fc01e,_0x3d39a3- -0x33c);}return typeof _0x293634===_0x152504(_0x1b130a._0xba6d4b,_0x1b130a._0x44bbf3,_0x1b130a._0x557a90,_0x1b130a._0x25e2c5)&&_0x293634!==null&&!Array['isArray'](_0x293634);}function formatMcpContent(_0xd6f99e){const _0x4efa21={_0xee879b:0x4ea,_0x20d798:0x3a2,_0x421fe3:0x2cf,_0xb0eb7e:0x223,_0x20e7d2:0x237,_0x4a81ab:0x145,_0xb1f929:0x23c,_0x2c52ce:0x40d,_0x4f4837:0xa3,_0x5dd9df:0x2c0,_0x119494:0x10d,_0x4981f1:0x287,_0x38933a:0x38,_0x1a2efb:0x20,_0x112434:0xe4,_0x2e08c5:0x556,_0x2d5fa0:0x5e2},_0x39bf0d={_0x5f17cb:0x726,_0x415b56:0x67d,_0x3e9361:0x76e,_0x4b9555:0x781,_0xc9a3f0:0x5be,_0x1e4ce7:0x830,_0x55fdea:0x85c,_0x53fc09:0x6fa,_0x26fa3b:0x861,_0x2fb0d6:0x5c4,_0x5f3b13:0x68f,_0x4c9156:0x841,_0x3fc8bc:0x71f},_0x3f69ed={_0x52c1b0:0xdd,_0x564bc0:0x1d4,_0x5c78a9:0x2b7},_0x3d44a1={_0x2da56c:0x146,_0x12d0b5:0x3d};function _0x3e75f8(_0x5bea89,_0x1e3909,_0x8ec3f4,_0x57c958){return _0x19c96f(_0x5bea89-_0x3d44a1._0x2da56c,_0x1e3909-_0x3d44a1._0x12d0b5,_0x57c958,_0x8ec3f4- -0x217);}function _0x5d6975(_0xccae2b,_0x22602e,_0x104cd6,_0x5e9857){return _0x36273c(_0xccae2b-_0x3f69ed._0x52c1b0,_0x22602e-_0x3f69ed._0x564bc0,_0x5e9857,_0x104cd6- -_0x3f69ed._0x5c78a9);}const _0x7faec5=Array[_0x5d6975(0x42a,0x3e0,_0x4efa21._0xee879b,_0x4efa21._0x20d798)](_0xd6f99e[_0x5d6975(_0x4efa21._0x421fe3,0x202,_0x4efa21._0xb0eb7e,0x2b4)])?_0xd6f99e[_0x5d6975(_0x4efa21._0x20e7d2,_0x4efa21._0x4a81ab,_0x4efa21._0xb0eb7e,0xcb)]:[],_0x4f4902=_0x7faec5[_0x5d6975(_0x4efa21._0xb1f929,0x45f,0x340,_0x4efa21._0x2c52ce)](_0xbce06e=>{const _0x4e43cc={_0x3b3eeb:0x6e8},_0x471988={_0x437d7a:0x1cb,_0x582618:0x27a};if(!isObject(_0xbce06e))return'';if(_0xbce06e[_0x21197f(_0x39bf0d._0x5f17cb,_0x39bf0d._0x415b56,_0x39bf0d._0x3e9361,_0x39bf0d._0x4b9555)]===_0x28412d(_0x39bf0d._0xc9a3f0,_0x39bf0d._0x1e4ce7,_0x39bf0d._0x55fdea,_0x39bf0d._0x53fc09)&&typeof _0xbce06e[_0x21197f(0x71e,_0x39bf0d._0x26fa3b,_0x39bf0d._0x2fb0d6,_0x39bf0d._0x5f3b13)]==='string')return _0xbce06e['text'];function _0x21197f(_0xba9e6c,_0x2e8d45,_0x16445c,_0x55e5c5){return _0x5d6975(_0xba9e6c-0x1dc,_0x2e8d45-_0x471988._0x437d7a,_0xba9e6c-_0x471988._0x582618,_0x2e8d45);}function _0x28412d(_0x1257d7,_0x3146de,_0x1f8196,_0x1d8959){return _0x3e75f8(_0x1257d7-0xbb,_0x3146de-0xcc,_0x1d8959-_0x4e43cc._0x3b3eeb,_0x1257d7);}return JSON[_0x28412d(0x6bf,_0x39bf0d._0x4c9156,0x845,_0x39bf0d._0x3fc8bc)](_0xbce06e);})[_0x3e75f8(-_0x4efa21._0x4f4837,-0x24,-0x198,-_0x4efa21._0x5dd9df)](_0x3b64fe=>_0x3b64fe['length']>0x0)[_0x5d6975(0x194,_0x4efa21._0x119494,_0x4efa21._0x4981f1,0x11d)]('\x0a');if(_0x4f4902[_0x3e75f8(0x156,-_0x4efa21._0x38933a,_0x4efa21._0x1a2efb,-_0x4efa21._0x112434)]>0x0)return _0x4f4902;return JSON[_0x5d6975(0x644,_0x4efa21._0x2e08c5,0x4c9,_0x4efa21._0x2d5fa0)](_0xd6f99e,null,0x2);}function createMcpTool(_0x885e90){const _0x490f40={_0x4e0e05:0x2da,_0x598220:0x2be,_0x3b10b0:0x372,_0x4dad9d:0x1bc,_0x1ed3a4:0x21a,_0x16cd48:0x384,_0x2ecd9c:0x22f,_0x9db040:0x27a,_0x2f61c0:0x50a,_0x45cccb:0x34d,_0x2b983c:0x36d,_0x28605f:0x21f,_0x388a61:0x313,_0x51c117:0x4a2,_0x51d458:0x1be,_0x5a00da:0x326},_0x52ff84={_0x27bdf4:0x2e4,_0x2d0e72:0x21e,_0x3e9b34:0x337,_0x32c00d:0xac,_0x609091:0x2df,_0x1574db:0x13f,_0x472d4b:0x1c2,_0x4644e3:0x112,_0xa1a42f:0x6,_0x52f280:0x13f,_0x37edb3:0x1cb,_0x119d87:0x18,_0x3b6222:0x31e,_0x10b28a:0x2ed,_0xcb4f3d:0x21a,_0x21a584:0x266,_0x4ca1ec:0x1d},_0x35393b={_0x330c30:0xa},_0x2f65db={_0x2f2e4a:0x118,_0x52e881:0xe9};function _0xdbe429(_0x1e54cb,_0x3cbf8b,_0x284c42,_0x40dee4){return _0x19c96f(_0x1e54cb-_0x2f65db._0x2f2e4a,_0x3cbf8b-_0x2f65db._0x52e881,_0x3cbf8b,_0x284c42-0x238);}const _0x4317ab=createMcpToolName(_0x885e90[_0xf1a288(_0x490f40._0x4e0e05,_0x490f40._0x598220,0x1ae,0x21f)],_0x885e90[_0xf1a288(_0x490f40._0x3b10b0,0x30b,0x18f,0x2ca)][_0xdbe429(_0x490f40._0x4dad9d,0x24f,_0x490f40._0x1ed3a4,0x14f)]);function _0xf1a288(_0x22d439,_0x210886,_0x3c053d,_0x491b9f){return _0x19c96f(_0x22d439-_0x35393b._0x330c30,_0x210886-0x9,_0x3c053d,_0x491b9f-0x26a);}return defineTool({'name':_0x4317ab,'description':_0x885e90['tool'][_0xf1a288(0x2f4,0x184,_0x490f40._0x16cd48,_0x490f40._0x2ecd9c)]??'MCP\x20tool\x20'+_0x885e90['tool'][_0xdbe429(_0x490f40._0x9db040,0x2da,0x21a,0x32d)]+_0xdbe429(_0x490f40._0x2f61c0,_0x490f40._0x45cccb,0x42b,0x4c0)+_0x885e90[_0xf1a288(_0x490f40._0x2b983c,0x22c,0x153,_0x490f40._0x28605f)],'inputSchema':toNuvinToolSchema(_0x885e90[_0xdbe429(_0x490f40._0x388a61,0x1a8,0x298,0x3da)][_0xdbe429(_0x490f40._0x51c117,_0x490f40._0x51d458,_0x490f40._0x5a00da,0x35f)]),async *'execute'(_0x3a0b35){const _0x1e2885={_0xa6b800:0x18b,_0x406ec7:0x35e},_0x3c7908=await _0x885e90[_0x472462(0x35f,0x37d,_0x52ff84._0x27bdf4,0x17f)]['callTool']({'name':_0x885e90[_0x472462(0xf9,0x26b,_0x52ff84._0x2d0e72,_0x52ff84._0x3e9b34)][_0x472462(0x48,_0x52ff84._0x32c00d,0x1a0,_0x52ff84._0x609091)],'arguments':isJsonObject(_0x3a0b35)?_0x3a0b35:{}});if(_0x3c7908['isError'])throw new ToolExecutionError(formatMcpContent(_0x3c7908),{'serverName':_0x885e90[_0x35957c(-_0x52ff84._0x1574db,-0xd0,-_0x52ff84._0x472d4b,-0x13d)],'toolName':_0x885e90['tool'][_0x35957c(-_0x52ff84._0x4644e3,0x3d,-0x36,_0x52ff84._0xa1a42f)]});function _0x35957c(_0x3a901a,_0x2f8dd4,_0x1b687c,_0x815585){return _0xf1a288(_0x3a901a-_0x1e2885._0xa6b800,_0x2f8dd4-0x22,_0x1b687c,_0x3a901a- -_0x1e2885._0x406ec7);}yield createToolOutput(formatMcpContent(_0x3c7908),{'serverName':_0x885e90[_0x35957c(-_0x52ff84._0x52f280,-_0x52ff84._0x37edb3,-0x18f,-_0x52ff84._0x119d87)],'toolName':_0x885e90[_0x472462(_0x52ff84._0x3b6222,_0x52ff84._0x10b28a,_0x52ff84._0x2d0e72,0x1c2)][_0x35957c(-_0x52ff84._0x4644e3,-_0x52ff84._0xcb4f3d,-_0x52ff84._0x21a584,_0x52ff84._0x4ca1ec)],'result':_0x3c7908});function _0x472462(_0x1c3a95,_0x40f904,_0x1c4cb8,_0x46184a){return _0xdbe429(_0x1c3a95-0x64,_0x46184a,_0x1c4cb8- -0x7a,_0x46184a-0x30);}return void 0x0;}});}function resolvePrefix(_0x230d0e,_0x3e1022){const _0x5586d4={_0x2abcc2:0x330,_0x9cf284:0x4a1,_0x6029a1:0x345};function _0x402a11(_0x5609bf,_0x532605,_0x5d6dae,_0xff5279){return _0x19c96f(_0x5609bf-0x3c,_0x532605-0x49,_0xff5279,_0x532605-0x30b);}return _0x3e1022[_0x402a11(_0x5586d4._0x2abcc2,_0x5586d4._0x9cf284,_0x5586d4._0x6029a1,0x340)]??_0x230d0e;}function buildMcpHttpHeaders(_0x5563f1){const _0x4eff1c={_0x438aee:0x5a7,_0xb96a75:0x630,_0x53485a:0x4bf,_0x510824:0x202,_0x41c32d:0x16f,_0x342a41:0x560,_0x5d0ef5:0x625,_0x4a4649:0x596,_0x34fb8c:0x4e7,_0x34f547:0x437,_0x19d4f9:0x460,_0x596f83:0x4fb,_0x3a6252:0x104,_0x48c04d:0x539,_0x647f20:0x59f,_0x237d5f:0x546,_0x363a09:0xd1},_0x17e4e7={_0x298db9:0x547},_0x103336={..._0x5563f1[_0x547532(0x559,0x512,_0x4eff1c._0x438aee,_0x4eff1c._0xb96a75)]??{}};function _0x547532(_0x495e32,_0x211cca,_0x57a33d,_0x3a8e02){return _0x19c96f(_0x495e32-0x98,_0x211cca-0x128,_0x3a8e02,_0x211cca-_0x17e4e7._0x298db9);}_0x5563f1[_0x547532(_0x4eff1c._0x53485a,0x547,0x579,0x40a)]?.['type']===_0x360e9c(-0x124,-_0x4eff1c._0x510824,-_0x4eff1c._0x41c32d,-0x84)&&_0x5563f1[_0x547532(_0x4eff1c._0x342a41,0x547,_0x4eff1c._0x5d0ef5,_0x4eff1c._0x4a4649)][_0x547532(0x4f0,_0x4eff1c._0x34fb8c,_0x4eff1c._0x34f547,0x3f5)]&&_0x103336[_0x547532(_0x4eff1c._0x19d4f9,_0x4eff1c._0x596f83,0x3b9,0x62e)]===void 0x0&&(_0x103336[_0x360e9c(-0x166,-0x23b,-_0x4eff1c._0x3a6252,-0xce)]=_0x547532(0x66e,0x4f8,_0x4eff1c._0x48c04d,0x44a)+_0x5563f1[_0x547532(_0x4eff1c._0x647f20,0x547,_0x4eff1c._0x237d5f,0x58d)]['token']);function _0x360e9c(_0x2d6eb4,_0x5e84f1,_0x5e4857,_0x1dba22){return _0x36273c(_0x2d6eb4-0x1e8,_0x5e84f1-0x1ca,_0x2d6eb4,_0x1dba22- -0x5b4);}return Object['keys'](_0x103336)[_0x360e9c(_0x4eff1c._0x363a09,0x9f,0xa0,0x1b5)]>0x0?_0x103336:void 0x0;}function getErrorMessage(_0x191226){const _0x56306f={_0x3c45e8:0x229,_0xc66ac:0xf4,_0x369019:0x245},_0x169a59={_0x15fbf6:0xaf,_0x3482cf:0x46};function _0x10380a(_0x1e77a6,_0x4fef31,_0x1dec47,_0xb447b0){return _0x19c96f(_0x1e77a6-_0x169a59._0x15fbf6,_0x4fef31-_0x169a59._0x3482cf,_0x1e77a6,_0xb447b0-0x191);}return _0x191226 instanceof Error?_0x191226[_0x10380a(_0x56306f._0x3c45e8,0x21b,_0x56306f._0xc66ac,_0x56306f._0x369019)]:String(_0x191226);}function isUnauthorizedError(_0x3b4d2b){const _0x4b72e3={_0x39d33:0x4fc,_0x8a63f:0x50a,_0x47a3d3:0x448,_0x440da:0x479,_0x4f51ee:0x541},_0x382812={_0x4dda26:0x63,_0x43bcdd:0x197};function _0x14f09b(_0x179c32,_0x42595c,_0x797ed2,_0x4d9ff5){return _0x36273c(_0x179c32-0xa6,_0x42595c-0x1e,_0x4d9ff5,_0x42595c- -0xcc);}function _0x1aa5ed(_0x2531ac,_0x48c9c1,_0x1b8c48,_0x396f55){return _0x19c96f(_0x2531ac-_0x382812._0x4dda26,_0x48c9c1-_0x382812._0x43bcdd,_0x396f55,_0x2531ac-0x572);}return _0x3b4d2b instanceof Error&&_0x3b4d2b[_0x14f09b(0x309,0x432,0x511,_0x4b72e3._0x39d33)][_0x14f09b(_0x4b72e3._0x8a63f,_0x4b72e3._0x47a3d3,_0x4b72e3._0x440da,0x362)]===_0x14f09b(0x352,0x467,0x3f3,_0x4b72e3._0x4f51ee);}async function connectMcpServer(_0x2f1e2d,_0x33a806,_0x1e49f1){const _0x617447={_0x274cb5:0xca,_0x38f652:0x12c,_0x119339:0x4b4,_0x3c677d:0x590,_0x12c300:0x101,_0x5a2aa0:0x625,_0x2cf7b5:0x6f5,_0x5dbe48:0x701,_0xd39437:0x36b,_0x26175a:0x3b9,_0x59b719:0x196,_0xddd3dd:0x1aa,_0x3e8d1b:0x5b,_0x3500e3:0x34,_0x4a3253:0x3c0,_0x4d908e:0x493,_0x540c7c:0x5c0,_0x106c13:0x44a,_0x198329:0x11b,_0x2c8286:0x61,_0xcc4c05:0x56b,_0x185dad:0x48f,_0x567eb3:0x1d0,_0x2047f9:0x126,_0x2c104c:0x6c,_0x3c997c:0x1d7,_0x2aa394:0x34f,_0x20b548:0x4d0,_0x35d6e9:0x361,_0x5f221a:0x4a7,_0x11b788:0x139,_0x4d37a1:0x28,_0x4c52ed:0x12f,_0x2ccf3f:0x135},_0x20f981={_0x42b966:0x259,_0x4b6ccc:0x163,_0x181d54:0x3cd,_0x2a448f:0x4c0},_0x6251d={_0x11322a:0x1ad,_0xd7d6d9:0x3ea},_0x23071a={_0x4b6133:0x40,_0x5ee621:0x1b2,_0x4e5e95:0xce,_0x143167:0x23f},_0x4000ff={_0x44b9cc:0xa8,_0x406304:0x721},_0x55cc6a={_0x46cbeb:0x127},_0x44bd1d={_0x49d4aa:0x96,_0x5cd944:0x1ae,_0xcfde75:0x407,_0x50d287:0x489,_0x544dc4:0x46a,_0x17f33a:0x112},_0x31492d={_0x195c1f:0x115,_0x130fcd:0x158},_0xe3aa7={_0x5c8023:0x67},_0x47c2f6=new Client({'name':_0x3851d3(0xdd,_0x617447._0x274cb5,_0x617447._0x38f652,0xa0),'version':'0.0.0'});function _0x5b8b28(_0x44ce73,_0x2019ef,_0x5219e5,_0x115133){return _0x36273c(_0x44ce73-_0xe3aa7._0x5c8023,_0x2019ef-0x17d,_0x44ce73,_0x115133- -0x62);}_0x47c2f6[_0x5b8b28(0x512,_0x617447._0x119339,0x657,0x60d)]=_0x5b9c46=>{const _0x7b0715={_0xc18f5c:0xc5,_0x5c6770:0x25e};function _0x1f50ec(_0x497fe1,_0x35ca61,_0x2f861d,_0x5d3c65){return _0x5b8b28(_0x35ca61,_0x35ca61-_0x31492d._0x195c1f,_0x2f861d-_0x31492d._0x130fcd,_0x497fe1- -0x6e9);}function _0x46e189(_0x4d06e1,_0x97bc46,_0xaae5b1,_0xb6e7fd){return _0x3851d3(_0xb6e7fd,_0x97bc46-_0x7b0715._0xc18f5c,_0xaae5b1-_0x7b0715._0x5c6770,_0xb6e7fd-0x11a);}console['error'](_0x1f50ec(-0x1ff,-0x194,-_0x44bd1d._0x49d4aa,-_0x44bd1d._0x5cd944)+_0x2f1e2d+_0x46e189(_0x44bd1d._0xcfde75,_0x44bd1d._0x50d287,0x4f1,_0x44bd1d._0x544dc4),_0x5b9c46[_0x1f50ec(-0x165,-_0x44bd1d._0x17f33a,-0x28b,-0x266)]);};function _0x3851d3(_0xb35854,_0x2abf48,_0x4fdd06,_0x4eae62){return _0x19c96f(_0xb35854-0x103,_0x2abf48-_0x55cc6a._0x46cbeb,_0xb35854,_0x4fdd06-0x9e);}if(_0x33a806[_0x5b8b28(0x6bc,0x4b9,0x6e7,0x60b)]===_0x5b8b28(0x736,0x81d,_0x617447._0x3c677d,0x6d9)||_0x33a806['url']){if(!_0x33a806['url'])throw new Error(_0x5b8b28(0x4a2,0x38d,0x3b8,0x4a7)+_0x2f1e2d+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x33a806[_0x3851d3(0xff,_0x617447._0x12c300,0x9e,0x10b)]?.[_0x5b8b28(_0x617447._0x5a2aa0,0x6c0,_0x617447._0x2cf7b5,_0x617447._0x5dbe48)]===_0x5b8b28(0x38c,_0x617447._0xd39437,_0x617447._0x26175a,0x493)&&!_0x1e49f1?.['oauth'])throw new Error(_0x3851d3(_0x617447._0x59b719,_0x617447._0xddd3dd,0x75,-_0x617447._0x3e8d1b)+_0x2f1e2d+'\x20requires\x20OAuth\x20connection\x20options');const _0xe6151e=buildMcpHttpHeaders(_0x33a806),_0xaa5307=_0x33a806['auth']?.[_0x5b8b28(0x60a,0x7cd,0x608,_0x617447._0x5dbe48)]===_0x3851d3(0x119,-_0x617447._0x3500e3,0x61,-0x62)&&_0x1e49f1?.[_0x5b8b28(0x494,0x48c,_0x617447._0x4a3253,_0x617447._0x4d908e)]?createMcpOAuthProvider({'serverName':_0x2f1e2d,'callbackUrl':_0x1e49f1[_0x5b8b28(_0x617447._0x540c7c,0x554,_0x617447._0x106c13,_0x617447._0x4d908e)]['callbackUrl'],'storageDir':_0x1e49f1[_0x3851d3(-0xd3,_0x617447._0x198329,_0x617447._0x2c8286,-0xa7)][_0x5b8b28(0x56b,_0x617447._0xcc4c05,0x34c,_0x617447._0x185dad)],'config':_0x33a806[_0x3851d3(0x178,0xa0,0x9e,-0x2c)],'onRedirect':_0x18655d=>_0x1e49f1[_0x5b8b28(0x608,0x4c5,0x37d,0x493)]?.['onRedirect'](_0x2f1e2d,_0x18655d)}):void 0x0,_0x408dd4=new StreamableHTTPClientTransport(new URL(_0x33a806[_0x3851d3(0x12a,_0x617447._0x567eb3,0xac,_0x617447._0x2047f9)]),{'authProvider':_0xaa5307,'requestInit':_0xe6151e?{'headers':_0xe6151e}:void 0x0});await _0x47c2f6[_0x3851d3(0x271,_0x617447._0x2c104c,0x135,_0x617447._0x3c997c)](_0x408dd4);}else{if(!_0x33a806['command'])throw new Error(_0x5b8b28(_0x617447._0x2aa394,_0x617447._0x20b548,_0x617447._0x35d6e9,_0x617447._0x5f221a)+_0x2f1e2d+_0x3851d3(0x1ee,0x1cb,0x1ff,0x291));const _0x474d8d=new StdioClientTransport({'command':_0x33a806['command'],'args':_0x33a806['args']??[],'env':_0x33a806['env'],'stderr':_0x3851d3(-0x36,-_0x617447._0x11b788,0x30,_0x617447._0x4d37a1)});await _0x47c2f6[_0x3851d3(0x167,_0x617447._0x4c52ed,_0x617447._0x2ccf3f,0x1b6)](_0x474d8d);}return{async 'listTools'(){function _0x10981c(_0x4e0cd2,_0x35a1a5,_0x1f92c3,_0x2b0c47){return _0x5b8b28(_0x2b0c47,_0x35a1a5-0x1b6,_0x1f92c3-_0x4000ff._0x44b9cc,_0x1f92c3- -_0x4000ff._0x406304);}return await _0x47c2f6[_0x10981c(-_0x23071a._0x4b6133,-_0x23071a._0x5ee621,-_0x23071a._0x4e5e95,-_0x23071a._0x143167)]();},async 'callTool'(_0x4bf651){function _0x362a93(_0x1d0543,_0x1e504a,_0x2dee77,_0x57a7d6){return _0x5b8b28(_0x2dee77,_0x1e504a-0xdd,_0x2dee77-0xc7,_0x57a7d6- -0x1d9);}function _0x367d3d(_0x134518,_0x397d94,_0x55e6f5,_0x339289){return _0x5b8b28(_0x134518,_0x397d94-0x11d,_0x55e6f5-_0x6251d._0x11322a,_0x397d94- -_0x6251d._0xd7d6d9);}return await _0x47c2f6[_0x367d3d(0x191,0x226,_0x20f981._0x42b966,_0x20f981._0x4b6ccc)]({'method':_0x362a93(0x202,_0x20f981._0x181d54,_0x20f981._0x2a448f,0x360),'params':_0x4bf651},CallToolResultSchema);},async 'close'(){await _0x47c2f6['close']();}};}async function createMcpToolsFromServers(_0x1ea657){const _0x3e02a6={_0x1ed733:0x655,_0x314330:0x7cd,_0x379edf:0x5a4,_0xe8f001:0x404,_0x46f3e9:0x3da,_0x352f17:0x53c,_0x2729c4:0x734,_0x4a733a:0x487,_0xc1e6e6:0x453,_0x56eeb7:0x571,_0x387dd8:0x771,_0x12a76d:0x6db,_0x358807:0x75e,_0x15bee9:0x789,_0x288284:0x63e,_0x3c967f:0x57b,_0x2331c4:0x7bc,_0x4ba40b:0x653,_0x21458b:0x517,_0x16dd36:0x3e8,_0xae188:0x5c2,_0x44dd5b:0x766,_0x53f4bf:0x80a,_0x32728c:0x4ff,_0x587ed8:0x5de,_0x40a5de:0x71f},_0x50b739={_0x23d74b:0x130,_0x3acacb:0xca,_0x21ab38:0x47,_0x53eaae:0x37,_0x36faef:0xc4},_0x5d932a={_0x17a3e1:0x4c5,_0x3cd489:0x139},_0x30007e={_0x2db356:0x5a7,_0x20ff9d:0x2e,_0x2d5b70:0x9c},_0x2673c1={_0xa32eb1:0x1e3,_0x29561f:0x190,_0x20c8c4:0xd},_0x4a2fed={_0x854fd7:0xe5,_0x3b5a59:0xfb},_0x1c03fa=_0x1ea657['connect']??connectMcpServer;function _0x292da9(_0x1e1c2a,_0x838065,_0x44e87b,_0x4cd90b){return _0x36273c(_0x1e1c2a-0x140,_0x838065-_0x4a2fed._0x854fd7,_0x1e1c2a,_0x838065- -_0x4a2fed._0x3b5a59);}const _0x4f5b49=[],_0x4862bb={},_0x29ddf6=[];for(const [_0x34c73f,_0x224f2e]of Object[_0x384bf1(0x773,0x742,_0x3e02a6._0x1ed733,_0x3e02a6._0x314330)](_0x1ea657[_0x292da9(_0x3e02a6._0x379edf,0x4ec,_0x3e02a6._0xe8f001,_0x3e02a6._0x46f3e9)]??{})){if(_0x224f2e[_0x292da9(0x434,_0x3e02a6._0x352f17,0x533,0x3ca)]===![]){_0x4862bb[_0x34c73f]={'status':'disabled'};continue;}try{const _0xb40e4d=await _0x1c03fa(_0x34c73f,_0x224f2e,_0x1ea657['connection']);_0x4f5b49[_0x292da9(_0x3e02a6._0x2729c4,0x5ca,_0x3e02a6._0x4a733a,_0x3e02a6._0xc1e6e6)](_0xb40e4d);const _0x5391af=await _0xb40e4d['listTools']();let _0x577d9b=0x0;for(const _0x405bbf of _0x5391af[_0x384bf1(_0x3e02a6._0x56eeb7,_0x3e02a6._0x387dd8,_0x3e02a6._0x12a76d,_0x3e02a6._0x358807)]){const _0xd18051=_0x1ea657[_0x384bf1(_0x3e02a6._0x15bee9,_0x3e02a6._0x288284,0x749,0x5f1)]?.[_0x34c73f]?.[_0x405bbf[_0x292da9(0x31d,0x419,0x467,_0x3e02a6._0x3c967f)]];if(_0xd18051===![])continue;_0x577d9b+=0x1,_0x29ddf6[_0x384bf1(0x609,0x783,0x6d2,_0x3e02a6._0x2331c4)](createMcpTool({'serverName':resolvePrefix(_0x34c73f,_0x224f2e),'tool':_0x405bbf,'client':_0xb40e4d}));}_0x4862bb[_0x34c73f]={'status':_0x292da9(_0x3e02a6._0x4ba40b,_0x3e02a6._0x21458b,_0x3e02a6._0x16dd36,_0x3e02a6._0xae188),'toolCount':_0x577d9b};}catch(_0x1bca33){_0x4862bb[_0x34c73f]=isUnauthorizedError(_0x1bca33)?{'status':_0x384bf1(0x749,0x88d,_0x3e02a6._0x44dd5b,_0x3e02a6._0x53f4bf),'message':getErrorMessage(_0x1bca33)}:{'status':_0x384bf1(_0x3e02a6._0x32728c,_0x3e02a6._0x587ed8,0x5ba,_0x3e02a6._0x40a5de),'message':getErrorMessage(_0x1bca33)};}}function _0x384bf1(_0xff899d,_0x2fd85c,_0x2b5de2,_0x3ffdfd){return _0x36273c(_0xff899d-_0x2673c1._0xa32eb1,_0x2fd85c-_0x2673c1._0x29561f,_0xff899d,_0x2b5de2-_0x2673c1._0x20c8c4);}return{'tools':_0x29ddf6,'servers':_0x4862bb,async 'close'(){function _0x41537d(_0x900357,_0x37eb52,_0x1cd647,_0x3a5d54){return _0x292da9(_0x3a5d54,_0x1cd647- -_0x30007e._0x2db356,_0x1cd647-_0x30007e._0x20ff9d,_0x3a5d54-_0x30007e._0x2d5b70);}function _0x77d7a1(_0x1d9d48,_0x53e58f,_0x4605ab,_0x325756){return _0x292da9(_0x1d9d48,_0x4605ab- -_0x5d932a._0x17a3e1,_0x4605ab-_0x5d932a._0x3cd489,_0x325756-0x1db);}await Promise[_0x41537d(-0x247,-_0x50b739._0x23d74b,-_0x50b739._0x3acacb,0x30)](_0x4f5b49[_0x77d7a1(-_0x50b739._0x21ab38,0x106,_0x50b739._0x53eaae,-_0x50b739._0x36faef)](_0x8733ca=>_0x8733ca[_0x77d7a1(0x1e0,0x10a,0x10c,0x1e3)]()));}};}function getCommand(_0x12a49c){const _0xa71ee3={_0x19d2aa:0x3bd,_0x3c8cab:0x326,_0x4f9aaf:0x21a,_0x2635a1:0x11c,_0x56118b:0x316,_0x36417e:0xfa},_0x1ec898={_0x4fa26c:0x29};function _0x341444(_0x481348,_0x3c2f7b,_0x4de119,_0x43c21d){return _0x36273c(_0x481348-_0x1ec898._0x4fa26c,_0x3c2f7b-0xda,_0x481348,_0x4de119- -0x79);}function _0x1d9dd7(_0x2fc5f6,_0x591bfb,_0x2010e6,_0xcd195c){return _0x19c96f(_0x2fc5f6-0x36,_0x591bfb-0x1af,_0x2fc5f6,_0x591bfb-0x269);}if(_0x12a49c&&typeof _0x12a49c===_0x1d9dd7(_0xa71ee3._0x19d2aa,_0xa71ee3._0x3c8cab,0x42f,0x1ff)&&!Array['isArray'](_0x12a49c)&&typeof _0x12a49c[_0x1d9dd7(0x2d3,0x202,_0xa71ee3._0x4f9aaf,_0xa71ee3._0x2635a1)]===_0x341444(0x58d,0x547,0x5c5,0x579))return _0x12a49c[_0x1d9dd7(0x14b,0x202,_0xa71ee3._0x56118b,_0xa71ee3._0x36417e)];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x19c96f(0x2e7,0x1e5,0x3d7,0x268),_0x36273c(0x6b0,0x891,0x7e2,0x720),_0x36273c(0x5e1,0x60f,0x641,0x6df),_0x36273c(0x5fc,0x6f0,0x796,0x717),'src/agent/agent.ts',_0x36273c(0x7cc,0x8a9,0x5b3,0x729),_0x36273c(0x78f,0x568,0x7d5,0x66b),_0x36273c(0x5c9,0x66e,0x3c9,0x521),_0x19c96f(0xea,0x142,0xbb,0x113),_0x19c96f(0x1b8,-0x20,0x4c,0x91),_0x19c96f(0x187,0xce,0x1f9,0x1f9),_0x36273c(0x4da,0x423,0x69c,0x562),_0x19c96f(0x342,0x14b,0x307,0x1cb),_0x19c96f(0x47,-0x191,0x14b,-0x1f),_0x19c96f(-0xd,0xc,0x6c,0x109),_0x36273c(0x491,0x3b5,0x5c3,0x534),_0x36273c(0x502,0x4e8,0x616,0x642)][_0x36273c(0x485,0x3ff,0x584,0x53e)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x36273c(0x684,0x57b,0x504,0x5f1),'description':_0x19c96f(-0x31,-0x22,-0xdc,0xa2),'input_schema':{'type':_0x36273c(0x70b,0x492,0x756,0x5ef),'properties':{'command':{'type':_0x19c96f(0x129,-0x28,0x151,0x10c)}},'required':[_0x19c96f(-0xb7,-0xc7,-0xc5,-0x67)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x31d69c){return{'output':_0x31d69c,'structured':{'value':_0x31d69c}};}function createUnknownToolResult(_0x374c42){const _0x465fd5={_0x11f5be:0x101,_0x7f0e03:0x253,_0x78d8a:0x263,_0x2e0bbf:0x221,_0x37069e:0x396},_0x5c241f={_0x2a2ab8:0x26a};function _0x262828(_0x3ad24d,_0x1b52ab,_0x4e57e0,_0x460e41){return _0x36273c(_0x3ad24d-0x12d,_0x1b52ab-0x53,_0x4e57e0,_0x460e41- -_0x5c241f._0x2a2ab8);}function _0x1c2424(_0xc65734,_0x12560d,_0x5f59eb,_0x1c0b19){return _0x36273c(_0xc65734-0x187,_0x12560d-0x5f,_0x1c0b19,_0x5f59eb- -0x2b1);}return{'callId':_0x374c42['id'],'toolName':_0x374c42[_0x1c2424(_0x465fd5._0x11f5be,_0x465fd5._0x7f0e03,_0x465fd5._0x78d8a,0x332)],'status':'error','output':_0x262828(0x299,0x365,0x4df,0x414)+_0x374c42[_0x1c2424(0x3e0,_0x465fd5._0x2e0bbf,0x263,_0x465fd5._0x37069e)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x1adb31,_0x3607ac){const _0x21c082={_0x3e1d74:0x2da,_0x5500fc:0x16e},_0x135251={_0x46874b:0x4e},_0x4e6e25={_0x3eba9d:0x46};function _0x3d48f5(_0x25e0d0,_0x1d7fcc,_0x2b5501,_0x45b14e){return _0x19c96f(_0x25e0d0-0x1e6,_0x1d7fcc-_0x4e6e25._0x3eba9d,_0x45b14e,_0x25e0d0- -0x185);}function _0x5ccd09(_0xc8dc2b,_0x18e014,_0x4d9d4b,_0x433dbc){return _0x36273c(_0xc8dc2b-0x169,_0x18e014-0x1eb,_0x433dbc,_0x4d9d4b- -_0x135251._0x46874b);}return{'callId':_0x1adb31['id'],'toolName':_0x1adb31[_0x3d48f5(-0x1a3,-_0x21c082._0x3e1d74,-_0x21c082._0x5500fc,-0x154)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x1adb31[_0x3d48f5(-0xfa,-0x1de,-0x1d0,-0x22)]),'exitCode':0x0},'chunks':[_0x3607ac],'meta':createMeta()};}function createMockToolRuntime(){const _0x34e077={_0x1a6e99:0x367,_0x751259:0x208},_0x51e78a={_0x39fc6f:0xa3},_0x2675bd={_0x2412cd:0x256,_0x42451d:0x20,_0x510c8e:0x11e,_0x46cb0f:0x287,_0x40a269:0x1a1},_0x887941={_0x4ba323:0x28f},_0x3251ec={_0x3951d8:0x2b},_0x3d8b08=async(_0x39bf98,_0x5bdadf)=>{function _0x343f09(_0x4e4d0d,_0x31d0a1,_0x10d3ac,_0x1e84f9){return _0x4951(_0x1e84f9- -_0x3251ec._0x3951d8,_0x31d0a1);}if(_0x39bf98[_0x51913a(-_0x2675bd._0x2412cd,_0x2675bd._0x42451d,-_0x2675bd._0x510c8e,-_0x2675bd._0x46cb0f)]!==_0x343f09(0x312,_0x2675bd._0x40a269,0x341,0x223))return createUnknownToolResult(_0x39bf98);function _0x51913a(_0x557876,_0x1f2830,_0x2de398,_0x257b76){return _0x4951(_0x2de398- -_0x887941._0x4ba323,_0x557876);}const _0x1788b1=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x39bf98,_0x1788b1);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x2f4fc1,_0x4ee17e){function _0xbd380a(_0x234ff9,_0x428602,_0x21536f,_0x12b002){return _0x4951(_0x428602-_0x51e78a._0x39fc6f,_0x12b002);}return await Promise['all'](_0x2f4fc1[_0xbd380a(_0x34e077._0x1a6e99,0x2f7,_0x34e077._0x751259,0x27c)](async _0x2370bb=>{return await _0x3d8b08(_0x2370bb,_0x4ee17e);}));},async 'execute'(_0x30d7a4,_0x3255c6){return await _0x3d8b08(_0x30d7a4,_0x3255c6);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x3c8315={_0x2ae94e:0x5e5,_0x41a2ed:0x700},_0x1dde0b={_0x5d826c:0x17b};delegatedRunCounter+=0x1;function _0x3154db(_0x248eff,_0x100baf,_0x53bb85,_0xfb3707){return _0x36273c(_0x248eff-0x1ac,_0x100baf-0x15e,_0x248eff,_0x100baf- -_0x1dde0b._0x5d826c);}return _0x3154db(_0x3c8315._0x2ae94e,0x5f7,_0x3c8315._0x41a2ed,0x4db)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x24b896,_0xa023d3){const _0x57a222={_0x129dad:0x373};function _0x3f9202(_0x2a02aa,_0x3cdc43,_0x4a887c,_0x51b5c0){return _0x19c96f(_0x2a02aa-0x18b,_0x3cdc43-0x1b2,_0x2a02aa,_0x3cdc43-_0x57a222._0x129dad);}return typeof _0x24b896===_0x3f9202(0x48c,0x331,0x1b4,0x1de)?await _0x24b896(_0xa023d3):_0x24b896;}function getDelegatedAgentDefinition(_0x345428,_0x568ef4){return _0x345428['agents']?.[_0x568ef4];}function createRunSummary(_0x1d4d94){const _0x2a0bf9={_0x5878eb:0x3a0,_0x5c8b9d:0x2ae,_0x1e37bc:0x39c,_0x1e3b1d:0x380,_0x16acbe:0x286,_0x1ad4e1:0x2a4,_0x47d333:0x1e1,_0x399d0f:0x1db,_0x45a53c:0x156,_0x2a0fd1:0x1af,_0x4c70c2:0x561,_0xcf6b3b:0x43e,_0x16e88a:0x402,_0x55912c:0x154,_0x51fb06:0x3bc,_0x4b708b:0x209,_0x3a8ac5:0x370,_0x3e404d:0x2f1,_0x32a9e9:0x466,_0x2065cb:0x247,_0x165f18:0x1eb},_0x59ab43={_0x150787:0x22e},_0x5e5130={_0x6a2f9b:0x7a,_0x5e2abb:0x283};function _0x3f2c4c(_0x3e2e5f,_0x1f6078,_0x1aa9db,_0x105290){return _0x36273c(_0x3e2e5f-0x6a,_0x1f6078-_0x5e5130._0x6a2f9b,_0x105290,_0x1f6078- -_0x5e5130._0x5e2abb);}function _0xad764b(_0x3b224c,_0x219086,_0x3aaf5e,_0x5d8fb9){return _0x19c96f(_0x3b224c-0x1ec,_0x219086-0xd2,_0x219086,_0x3aaf5e-_0x59ab43._0x150787);}return{'runId':_0x1d4d94['runId'],'agentId':_0x1d4d94[_0xad764b(_0x2a0bf9._0x5878eb,0x311,_0x2a0bf9._0x5c8b9d,0x3eb)],'sessionId':_0x1d4d94['sessionId'],'status':_0x1d4d94['status'],'parentSessionId':_0x1d4d94[_0x3f2c4c(0x173,0x2d8,0x3fd,_0x2a0bf9._0x1e37bc)],..._0x1d4d94[_0xad764b(_0x2a0bf9._0x1e3b1d,_0x2a0bf9._0x16acbe,_0x2a0bf9._0x1ad4e1,_0x2a0bf9._0x47d333)]!==void 0x0?{'originToolCallId':_0x1d4d94[_0xad764b(_0x2a0bf9._0x399d0f,_0x2a0bf9._0x45a53c,0x2a4,_0x2a0bf9._0x2a0fd1)]}:{},..._0x1d4d94['errorMessage']!==void 0x0?{'errorMessage':_0x1d4d94[_0xad764b(_0x2a0bf9._0x4c70c2,0x44b,_0x2a0bf9._0xcf6b3b,_0x2a0bf9._0x16e88a)]}:{},..._0x1d4d94[_0x3f2c4c(0x3bc,0x2c4,_0x2a0bf9._0x55912c,_0x2a0bf9._0x51fb06)]?.[_0xad764b(_0x2a0bf9._0x4b708b,_0x2a0bf9._0x3a8ac5,_0x2a0bf9._0x3e404d,_0x2a0bf9._0x32a9e9)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x1d4d94['result'][_0xad764b(_0x2a0bf9._0x2065cb,0x1cf,0x2f1,_0x2a0bf9._0x165f18)])}:{}};}function createRunSummaryOutput(_0x5369dd,_0x168ed6){const _0x16d5ba={_0x4d1277:0x59c,_0x34f139:0x43a,_0x2f195b:0x715,_0x18fd37:0x548},_0x2742c2={_0x421d00:0x114},_0x189ffa={_0x423e1b:0x1ac,_0x20ac22:0x1b8};function _0x1af1ad(_0x5e758c,_0x1e8d6c,_0x85d994,_0x48efd0){return _0x36273c(_0x5e758c-_0x189ffa._0x423e1b,_0x1e8d6c-0x6b,_0x48efd0,_0x1e8d6c- -_0x189ffa._0x20ac22);}const _0x134693=createRunSummary(_0x5369dd),_0xf0f455=_0x134693[_0x1af1ad(0x59d,0x596,0x63e,_0x16d5ba._0x4d1277)];function _0x1a31af(_0x3dcdf3,_0x283c75,_0x3c32e4,_0x21b79f){return _0x36273c(_0x3dcdf3-0x167,_0x283c75-_0x2742c2._0x421d00,_0x3c32e4,_0x21b79f- -0x86);}return createToolOutput(typeof _0xf0f455===_0x1a31af(_0x16d5ba._0x34f139,0x68d,0x637,0x5b8)&&_0xf0f455[_0x1af1ad(_0x16d5ba._0x2f195b,0x5b1,_0x16d5ba._0x18fd37,0x47d)]>0x0?_0xf0f455:_0x168ed6,_0x134693);}function getRunTerminalErrorMessage(_0x465a36){const _0x21518e={_0x505672:0x20d,_0x27a8da:0x56,_0x1cc5f7:0x285,_0x56e4c6:0x13c,_0x1c7f80:0x2f,_0x37954c:0x301,_0x5d47c1:0x328,_0x3fea3f:0x2fe,_0x11fdc5:0x294},_0x377a4a={_0x562a7c:0x89},_0x4df660={_0x33f066:0x471},_0x590e03=_0x465a36?.[_0x18bebe(_0x21518e._0x505672,0x137,_0x21518e._0x27a8da,_0x21518e._0x1cc5f7)]['toolResults']['at'](-0x1);function _0x2f3104(_0x22b2a2,_0x5050d8,_0x407245,_0x25b0b0){return _0x36273c(_0x22b2a2-0x2b,_0x5050d8-0xb4,_0x407245,_0x5050d8- -_0x4df660._0x33f066);}function _0x18bebe(_0x2504da,_0x4182ee,_0x51b432,_0x210c44){return _0x19c96f(_0x2504da-_0x377a4a._0x562a7c,_0x4182ee-0x101,_0x210c44,_0x4182ee- -0x8b);}if(_0x590e03?.['status']===_0x2f3104(0x1b1,_0x21518e._0x56e4c6,-_0x21518e._0x1c7f80,0x25c)&&_0x590e03[_0x2f3104(_0x21518e._0x37954c,0x24b,0xe4,0xf8)][_0x2f3104(0x361,_0x21518e._0x5d47c1,_0x21518e._0x3fea3f,_0x21518e._0x11fdc5)]()['length']>0x0)return _0x590e03['output'];return void 0x0;}function formatAbortedRunMessage(_0x88838f,_0x66d840){const _0x54e5ed={_0x299e72:0x16a,_0x27b28d:0x5c8,_0x19d7a5:0x5cd,_0x370958:0x8d,_0x17cdbb:0x55,_0x2bae6e:0x186,_0x11f56e:0xa3,_0x5016b1:0x2d9,_0x3693d2:0x2a0},_0x21846b={_0x36bb66:0x186,_0x1eff9b:0xd,_0x5153c4:0x1e2},_0x47cb9d={_0x3a2a54:0xcd,_0x2340be:0x4b2},_0x4fe391=_0x39aba9(-0x1c5,-_0x54e5ed._0x299e72,-0x1d7,-0x262)+_0x88838f+_0x15c154(_0x54e5ed._0x27b28d,0x402,0x510,_0x54e5ed._0x19d7a5);function _0x15c154(_0x2ba7c8,_0xbc5f52,_0x593201,_0x181497){return _0x19c96f(_0x2ba7c8-_0x47cb9d._0x3a2a54,_0xbc5f52-0xd0,_0x2ba7c8,_0x593201-_0x47cb9d._0x2340be);}function _0x39aba9(_0x410da3,_0x418a80,_0x51b4dd,_0x120ae1){return _0x19c96f(_0x410da3-_0x21846b._0x36bb66,_0x418a80-_0x21846b._0x1eff9b,_0x51b4dd,_0x418a80- -_0x21846b._0x5153c4);}if(!_0x66d840||_0x66d840[_0x39aba9(-_0x54e5ed._0x370958,0x85,-0xa4,0x7)]()[_0x39aba9(0xff,_0x54e5ed._0x17cdbb,-0x1c,_0x54e5ed._0x2bae6e)]===0x0||_0x66d840===_0x4fe391)return _0x4fe391;return _0x4fe391+_0x39aba9(-_0x54e5ed._0x11f56e,-0x1c3,-_0x54e5ed._0x5016b1,-_0x54e5ed._0x3693d2)+_0x66d840;}function createAssignTaskTool(_0x5dedc3){const _0x31f2fa={_0x18ea24:0x1a1,_0x2b346f:0x2bd,_0x507855:0x250,_0x443dd0:0x404,_0xdca358:0x3c4,_0x3d49b9:0x363,_0x313468:0x380,_0x56f6d4:0x76,_0xbc0b2:0x99,_0x56b24b:0x13d,_0x5a1006:0x66a},_0xf00f70={_0x5ed011:0x429,_0x3dc31a:0x5bd,_0x319a43:0x148,_0x43a844:0x30,_0x3842c7:0x318,_0x3cf961:0x351,_0xbaefd6:0x470,_0x29a33d:0x202,_0x566c01:0x84,_0x27a818:0x2e,_0xbb5d43:0x54b,_0x20de62:0x6f,_0x2cb7e6:0xd1,_0x4795:0x16d,_0x5b9851:0x5f5,_0xad155f:0x732,_0x4862d8:0x60f,_0x3b6434:0x470,_0x5bc0b5:0x4fd,_0x32b543:0x53e,_0x1773b6:0x555,_0x88a326:0x4b4,_0x42ef02:0x552,_0x517f5a:0xd,_0x1aaa00:0x67,_0x32cbcc:0x8,_0x4e5bce:0xd4,_0x26c0f5:0x57d,_0x482010:0x662,_0x192bb9:0x617,_0x4b521b:0x3d6,_0x2cf2d0:0x46d,_0x277852:0x48e,_0x31c387:0x57f,_0x11284c:0x277,_0x418ece:0x1e4,_0x441891:0x2b9,_0x2e465c:0x13,_0x47f13c:0x178,_0x378d38:0xc1,_0x1f4f32:0xb6,_0x5ad74c:0x7c,_0x26b39e:0x4b7,_0x32e654:0x516,_0x3bbf36:0x56d,_0x22087d:0x77f,_0x378c7f:0x4c3,_0x1e5591:0x4c5,_0x3c5ca7:0x3a5,_0x3842fa:0x644,_0xe9b50c:0x163,_0x3c54b3:0xc9,_0x9e3213:0x502,_0x59fe28:0x591,_0x3d074c:0x432,_0xb0259b:0x6b4,_0xe2212a:0x19,_0x59df50:0xc2,_0xc7cb25:0x1,_0x32815d:0xcd,_0x5aa3ad:0x52,_0x476ac9:0x60,_0x879b8d:0x3d8,_0x4fa740:0x543,_0x383ac1:0x508,_0x25a25e:0x40e,_0xa2a8ae:0xb0,_0x6894b6:0x3df},_0x180d0a={_0x378298:0x16d,_0x155d41:0x58},_0x242bd4={_0x4049c2:0x176,_0x30d1a3:0xf2,_0x44b23d:0x23a},_0x19e8f2={_0x3296b8:0x19};function _0x2b2c9c(_0x508235,_0x1d84c8,_0x4f99e9,_0x1ec3fd){return _0x19c96f(_0x508235-0xda,_0x1d84c8-0x14e,_0x1d84c8,_0x4f99e9-_0x19e8f2._0x3296b8);}function _0x151432(_0x3998e1,_0x53aba1,_0x185ab9,_0x1b5a08){return _0x36273c(_0x3998e1-_0x242bd4._0x4049c2,_0x53aba1-_0x242bd4._0x30d1a3,_0x53aba1,_0x3998e1- -_0x242bd4._0x44b23d);}return defineTool({'name':'AssignTask','description':_0x2b2c9c(_0x31f2fa._0x18ea24,0x9f,0x158,0x4d),'inputSchema':{'type':_0x151432(0x3b5,_0x31f2fa._0x2b346f,0x3fa,0x409),'properties':{'agentId':{'type':_0x2b2c9c(0x19f,_0x31f2fa._0x507855,0x125,0x13f)},'description':{'type':_0x151432(_0x31f2fa._0x443dd0,0x28d,_0x31f2fa._0xdca358,0x3a6)},'nickname':{'type':'string'},'task':{'type':_0x151432(_0x31f2fa._0x443dd0,_0x31f2fa._0x3d49b9,0x33e,_0x31f2fa._0x313468)}},'required':[_0x2b2c9c(-0x7c,-_0x31f2fa._0x56f6d4,_0x31f2fa._0xbc0b2,_0x31f2fa._0x56b24b),'description',_0x151432(0x53a,_0x31f2fa._0x5a1006,0x430,0x513)]},async *'execute'(_0x1dc9df,_0x58ad42){const _0x5678d5={_0x4c0c8f:0x4b2,_0x18a854:0x13e},_0x211ea3=createDelegatedRunId();function _0x3715dc(_0x4998d0,_0x2168c5,_0x446118,_0x4f6e65){return _0x151432(_0x4998d0- -0x2f4,_0x2168c5,_0x446118-0x71,_0x4f6e65-0x120);}const _0x23c0fd={'agentId':_0x1dc9df[_0x76875d(_0xf00f70._0x5ed011,0x54b,_0xf00f70._0x3dc31a,0x582)],'parentSessionId':_0x58ad42[_0x3715dc(_0xf00f70._0x319a43,0xd2,0x196,_0xf00f70._0x43a844)],'runId':_0x211ea3,..._0x58ad42[_0x76875d(0x45e,0x470,_0xf00f70._0x3842c7,0x5d8)]!==void 0x0?{'toolCallId':_0x58ad42[_0x76875d(_0xf00f70._0x3cf961,_0xf00f70._0xbaefd6,0x3b2,0x581)]}:{}},_0x5477d2=getDelegatedAgentDefinition(_0x5dedc3,_0x1dc9df[_0x3715dc(0x84,0x1d7,0x200,_0xf00f70._0x29a33d)]);if(!_0x5477d2)throw new ToolExecutionError('Unknown\x20delegated\x20agent:\x20'+_0x1dc9df[_0x3715dc(_0xf00f70._0x566c01,_0xf00f70._0x27a818,-0x9c,0x10c)],{'agentId':_0x1dc9df[_0x76875d(0x4ba,_0xf00f70._0xbb5d43,0x5d4,0x3f6)]});const _0x3c3338=new Agent(await resolveDelegatedAgentOptions(_0x5477d2,_0x23c0fd));let _0x2b0b54={'runId':_0x211ea3,'agentId':_0x1dc9df[_0x3715dc(_0xf00f70._0x566c01,-_0xf00f70._0x20de62,_0xf00f70._0x2cb7e6,_0xf00f70._0x4795)],'sessionId':_0x3c3338[_0x3715dc(_0xf00f70._0x319a43,0x3,0x5c,0x8a)],'status':_0x76875d(0x525,_0xf00f70._0x5b9851,_0xf00f70._0xad155f,0x5e1),'parentSessionId':_0x58ad42[_0x76875d(0x708,_0xf00f70._0x4862d8,0x560,0x719)],..._0x58ad42[_0x76875d(0x4b8,_0xf00f70._0x3b6434,_0xf00f70._0x5bc0b5,0x4d7)]!==void 0x0?{'originToolCallId':_0x58ad42[_0x76875d(_0xf00f70._0x32b543,0x470,_0xf00f70._0x1773b6,0x4d5)]}:{}};const _0x2ac16c=new AbortController();function _0x76875d(_0x2de0a7,_0x3b047,_0x4c6794,_0x4007b5){return _0x2b2c9c(_0x2de0a7-0x166,_0x4c6794,_0x3b047-_0x5678d5._0x4c0c8f,_0x4007b5-_0x5678d5._0x18a854);}const _0x16c42f=addAbortListener(_0x58ad42[_0x76875d(0x383,_0xf00f70._0x88a326,0x52a,_0xf00f70._0x42ef02)],()=>{const _0x458ff4={_0x165d8e:0x723,_0x17c672:0xdd};function _0x45d861(_0x13af3f,_0x50ef4e,_0x474b74,_0x2fb04e){return _0x76875d(_0x13af3f-0xc0,_0x2fb04e- -_0x458ff4._0x165d8e,_0x474b74,_0x2fb04e-_0x458ff4._0x17c672);}_0x2ac16c['abort'](_0x58ad42['signal']?.[_0x45d861(-_0x180d0a._0x378298,0x10,-_0x180d0a._0x155d41,-0x76)]);});yield createToolOutput(_0x3715dc(_0xf00f70._0x517f5a,-0xf7,-0xda,-_0xf00f70._0x1aaa00)+_0x2b0b54[_0x3715dc(0xb6,-_0xf00f70._0x32cbcc,_0xf00f70._0x4e5bce,0xc8)]+'.',{'runId':_0x2b0b54[_0x76875d(0x4d0,_0xf00f70._0x26c0f5,_0xf00f70._0x482010,_0xf00f70._0x192bb9)],'agentId':_0x2b0b54['agentId'],'sessionId':_0x2b0b54['sessionId'],'status':_0x2b0b54[_0x76875d(_0xf00f70._0x4b521b,_0xf00f70._0x2cf2d0,_0xf00f70._0x277852,_0xf00f70._0x31c387)]});try{const _0x28bdb5=await _0x3c3338[_0x3715dc(0x14e,_0xf00f70._0x11284c,_0xf00f70._0x418ece,_0xf00f70._0x441891)](_0x1dc9df[_0x3715dc(0x246,0x348,0x29c,0x1fd)],{'signal':_0x2ac16c[_0x3715dc(-_0xf00f70._0x2e465c,-_0xf00f70._0x47f13c,_0xf00f70._0x378d38,0x20)]});_0x2b0b54={..._0x2b0b54,'status':_0x28bdb5['status'],'result':_0x28bdb5};if(_0x28bdb5['status']!=='completed'){const _0x37d728=getRunTerminalErrorMessage(_0x28bdb5),_0x45618c=formatAbortedRunMessage(_0x2b0b54[_0x3715dc(_0xf00f70._0x1f4f32,0x1b1,0xcf,0x71)],_0x37d728);throw new ToolExecutionError(_0x45618c,{...createRunSummary(_0x2b0b54),'aborted':!![],'errorMessage':_0x45618c});}return createRunSummaryOutput(_0x2b0b54,_0x3715dc(_0xf00f70._0x5ad74c,0x1f,-0xba,-0xdc)+_0x2b0b54['runId']+_0x76875d(_0xf00f70._0x26b39e,_0xf00f70._0x32e654,_0xf00f70._0x3bbf36,0x5d0));}catch(_0x395a40){if(_0x395a40 instanceof ToolExecutionError)throw _0x395a40;if(isAbortError(_0x395a40)||_0x2ac16c['signal'][_0x76875d(0x792,0x6b4,0x597,_0xf00f70._0x22087d)]||_0x58ad42[_0x76875d(_0xf00f70._0x378c7f,_0xf00f70._0x88a326,_0xf00f70._0x1e5591,_0xf00f70._0x3c5ca7)][_0x76875d(_0xf00f70._0x3842fa,0x6b4,0x6a9,0x696)]){const _0x4390bf=getRunTerminalErrorMessage(_0x2b0b54[_0x3715dc(0x19,-_0xf00f70._0xe9b50c,-_0xf00f70._0x3c54b3,-0x2a)])??(_0x395a40 instanceof Error?_0x395a40[_0x76875d(_0xf00f70._0x9e3213,_0xf00f70._0x31c387,_0xf00f70._0x59fe28,_0xf00f70._0x3d074c)]:String(_0x395a40)),_0x2b8db4=formatAbortedRunMessage(_0x2b0b54['runId'],_0x4390bf);_0x2b0b54={..._0x2b0b54,'status':_0x76875d(0x70d,_0xf00f70._0xb0259b,0x679,0x586),'errorMessage':_0x2b8db4};throw new ToolExecutionError(_0x2b8db4,{...createRunSummary(_0x2b0b54),'aborted':!![],'errorMessage':_0x2b8db4});}const _0xdcea25=getRunTerminalErrorMessage(_0x2b0b54[_0x3715dc(_0xf00f70._0xe2212a,-_0xf00f70._0x59df50,_0xf00f70._0xc7cb25,-_0xf00f70._0x32815d)])??(_0x395a40 instanceof Error?_0x395a40[_0x3715dc(0xb8,_0xf00f70._0x5aa3ad,-_0xf00f70._0x476ac9,0x1c0)]:String(_0x395a40))??_0x76875d(_0xf00f70._0x879b8d,_0xf00f70._0x4fa740,_0xf00f70._0x383ac1,0x419)+_0x2b0b54[_0x76875d(0x67c,0x57d,0x4f6,_0xf00f70._0x25a25e)]+_0x3715dc(0x179,0x239,0x136,_0xf00f70._0xa2a8ae);_0x2b0b54={..._0x2b0b54,'status':_0x76875d(_0xf00f70._0x6894b6,0x547,0x681,0x4bd),'errorMessage':_0xdcea25};throw new ToolExecutionError(_0xdcea25,{...createRunSummary(_0x2b0b54),'errorMessage':_0xdcea25});}finally{_0x16c42f();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x3d3147){return[createAssignTaskTool(_0x3d3147)];}import*as _0x13e7dc from'path';function buildDescription2(_0xbe60d9){const _0x14085f={_0x555ab1:0x1e3,_0x2ca675:0x316,_0x574b48:0x218,_0x1ff69d:0x17a,_0x2cd291:0x17c,_0xbbb257:0x2f2,_0x5d5a12:0x105,_0x4a7cf0:0x2ab,_0x5439b6:0xd9,_0xfaa76b:0x1ea,_0x150427:0x191,_0x2a3f37:0x74,_0x4547e3:0x269},_0x2ad906={_0x1f7274:0x1e2,_0x240fa1:0x4be},_0x3b3bbb={_0x45a0f0:0x2b,_0x47032c:0xa9,_0x516d5d:0x40d};if(_0xbe60d9[_0x533e97(0x35c,_0x14085f._0x555ab1,_0x14085f._0x2ca675,_0x14085f._0x574b48)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';function _0x533e97(_0x280053,_0xca2f63,_0x79b34a,_0x4dd2ad){return _0x36273c(_0x280053-_0x3b3bbb._0x45a0f0,_0xca2f63-_0x3b3bbb._0x47032c,_0x79b34a,_0x280053- -_0x3b3bbb._0x516d5d);}const _0xb42e2=[_0x533e97(0x2e2,_0x14085f._0x1ff69d,0x425,0x313),'Skills\x20provide\x20specialized\x20knowledge\x20and\x20step-by-step\x20guidance.',_0x533e97(_0x14085f._0x2cd291,0x12b,_0x14085f._0xbbb257,0x2d3),_0x533e97(0x21a,_0x14085f._0x5d5a12,_0x14085f._0x4a7cf0,_0x14085f._0x5439b6),..._0xbe60d9[_0x533e97(_0x14085f._0xfaa76b,0x252,_0x14085f._0x150427,0x2cc)](_0x202fcc=>'-\x20'+_0x202fcc['name']+':\x20'+_0x202fcc[_0x533e97(0xea,0x153,0xc9,-0x68)])];function _0x42cbf5(_0x416ed4,_0x3b2940,_0x3cf25f,_0x413b72){return _0x36273c(_0x416ed4-_0x2ad906._0x1f7274,_0x3b2940-0x10a,_0x3b2940,_0x416ed4- -_0x2ad906._0x240fa1);}return _0xb42e2[_0x533e97(0x131,_0x14085f._0x2a3f37,_0x14085f._0x4547e3,0x10d)]('\x0a');}function createLoadSkillTool(_0x4073ee){const _0x14ae30={_0x499f21:0x65f,_0x3e03c1:0x185,_0xca55c3:0xd1,_0x4fa126:0x58e,_0x2a997f:0x5c,_0x928d49:0xd9,_0x149b94:0x143,_0x56d79b:0x1b4},_0x1af041={_0xeba6bf:0x71e,_0x237fd0:0x612,_0x498795:0x547,_0x213874:0x481,_0x58efbb:0x561,_0x93521b:0x548,_0x4fb2ee:0x689,_0x4b25dd:0x366,_0x563852:0x234,_0x75b23d:0x389,_0x33607a:0x4f5,_0x507a21:0x4a1,_0x1c1ee1:0x477,_0xdd37a0:0x4d9,_0x13fd44:0x566,_0x45194f:0x4a2,_0x4263ed:0x583,_0xfecef7:0x4a9,_0x21df85:0x387,_0xb8dcf8:0x495,_0x493d41:0x40b,_0x17da47:0x512,_0x3dac33:0x609,_0x41a32a:0x512,_0x5eafad:0x4bd,_0x940e30:0x536,_0x561c0e:0x78e,_0x429fb7:0x66e,_0x15e660:0x6a3,_0x5e5cd7:0x73e,_0x281426:0x358,_0x52ebc1:0x3f8,_0x3ef6da:0x495,_0x3a6977:0x513,_0x3bb34c:0x5ff,_0x3f784f:0x4c7,_0x5eba6a:0x4b8,_0x112395:0x519,_0x54e38a:0x1c0},_0x1d42d6={_0x1376d7:0x1be,_0x28c9a6:0x14d,_0x13eaa0:0x196};function _0x2fe11a(_0x446ad5,_0x200d52,_0x1083ca,_0x3cb515){return _0x19c96f(_0x446ad5-_0x1d42d6._0x1376d7,_0x200d52-_0x1d42d6._0x28c9a6,_0x3cb515,_0x1083ca- -_0x1d42d6._0x13eaa0);}const _0x5c1740=new Map(_0x4073ee[_0x5138e3(0x5ff,_0x14ae30._0x499f21,0x717,0x70a)][_0x2fe11a(-_0x14ae30._0x3e03c1,-0xb5,-_0x14ae30._0xca55c3,-0x1e9)](_0x2bb3e2=>[_0x2bb3e2[_0x2fe11a(-0x1c4,-0x14c,-0x1b4,-0x2d3)],_0x2bb3e2])),_0x39eccd=buildDescription2(_0x4073ee['skills']);function _0x5138e3(_0x45d8cc,_0x4f5b6d,_0x4a234e,_0x3de8af){return _0x19c96f(_0x45d8cc-0xdf,_0x4f5b6d-0x172,_0x4a234e,_0x4f5b6d-0x54b);}return defineTool({'name':_0x5138e3(0x6df,0x693,0x555,_0x14ae30._0x4fa126),'description':_0x39eccd,'inputSchema':{'type':_0x2fe11a(-0x134,-_0x14ae30._0x2a997f,-_0x14ae30._0x928d49,-0x6f),'properties':{'name':{'type':_0x2fe11a(-0xe0,-0x22,-0x8a,-0x14b)}},'required':[_0x2fe11a(-0x2f8,-_0x14ae30._0x149b94,-_0x14ae30._0x56d79b,-0x272)]},async *'execute'(_0x347b3b){const _0x3f1c0a={_0x60182b:0x36,_0x5ad6a2:0x195,_0x6e555f:0x51};function _0x3e0696(_0x2e1d2b,_0x3633ec,_0x44797b,_0x58258d){return _0x5138e3(_0x2e1d2b-_0x3f1c0a._0x60182b,_0x2e1d2b- -_0x3f1c0a._0x5ad6a2,_0x3633ec,_0x58258d-_0x3f1c0a._0x6e555f);}const _0x1f3084=_0x5c1740[_0x534be5(0x54f,_0x1af041._0xeba6bf,0x766,_0x1af041._0x237fd0)](_0x347b3b[_0x534be5(0x474,_0x1af041._0x498795,_0x1af041._0x213874,0x4f5)]);function _0x534be5(_0x60d131,_0x363d05,_0x2ea96b,_0x7038b){return _0x2fe11a(_0x60d131-0x100,_0x363d05-0x1f0,_0x7038b-0x6a9,_0x60d131);}if(!_0x1f3084){const _0x58a16d=Array[_0x534be5(_0x1af041._0x58efbb,0x603,0x571,0x645)](_0x5c1740[_0x534be5(_0x1af041._0x93521b,0x596,0x53b,_0x1af041._0x4fb2ee)]())[_0x3e0696(0x3c2,0x524,_0x1af041._0x4b25dd,0x493)](',\x20');throw new ToolExecutionError(_0x3e0696(0x383,0x2e4,0x46a,_0x1af041._0x563852)+_0x347b3b[_0x534be5(0x4be,0x614,_0x1af041._0x75b23d,_0x1af041._0x33607a)]+_0x3e0696(_0x1af041._0x507a21,_0x1af041._0x1c1ee1,_0x1af041._0xdd37a0,_0x1af041._0x13fd44)+_0x58a16d,{'name':_0x347b3b[_0x3e0696(0x398,0x3fb,0x354,0x3f2)]});}const _0x562b8d=await _0x4073ee[_0x3e0696(_0x1af041._0x45194f,_0x1af041._0x4263ed,_0x1af041._0xfecef7,0x438)](_0x1f3084),_0x25a7cd=_0x1f3084[_0x534be5(0x532,0x36a,_0x1af041._0x21df85,_0x1af041._0xb8dcf8)][_0x3e0696(_0x1af041._0x493d41,0x41d,_0x1af041._0x17da47,0x3d2)]??_0x13e7dc[_0x534be5(0x6b6,0x4fd,0x783,_0x1af041._0x3dac33)](_0x1f3084['source']['path']),_0xf91395=['##\x20Skill:\x20'+_0x562b8d['name'],'',_0x562b8d[_0x534be5(0x5e0,_0x1af041._0x41a32a,_0x1af041._0x5eafad,0x598)],'',_0x3e0696(0x3d8,0x30d,0x430,_0x1af041._0x940e30),_0x534be5(_0x1af041._0x561c0e,_0x1af041._0x429fb7,_0x1af041._0x15e660,_0x1af041._0x5e5cd7)+_0x1f3084[_0x534be5(_0x1af041._0x281426,0x490,_0x1af041._0x52ebc1,_0x1af041._0x3ef6da)]['path'],_0x3e0696(_0x1af041._0x3a6977,_0x1af041._0x3bb34c,_0x1af041._0x3f784f,0x44b)+_0x25a7cd][_0x3e0696(0x3c2,0x4e3,0x358,_0x1af041._0x5eba6a)]('\x0a');return yield createToolOutput(_0xf91395,{'id':_0x562b8d['id'],'name':_0x562b8d[_0x534be5(_0x1af041._0x112395,0x599,0x62f,_0x1af041._0x33607a)],'path':_0x1f3084[_0x3e0696(0x338,0x371,0x42a,_0x1af041._0x54e38a)]['path'],'baseDirectory':_0x25a7cd}),void 0x0;}});}var TODO_STATUSES=new Set([_0x36273c(0x65d,0x745,0x5eb,0x61c),'in_progress','completed']),TODO_PRIORITIES=new Set([_0x19c96f(0xdb,0x13,0x12f,0x191),_0x19c96f(0x18f,0x1f2,0x1f4,0x1a1),_0x36273c(0x52d,0x432,0x40d,0x524)]);function isTodoStatus(_0x2b8cb6){const _0x4ede35={_0xd7c408:0x227,_0x18e182:0x175,_0xb24028:0x2f0,_0x1318f1:0xf4,_0x4ba66c:0x171,_0x2ea903:0x145},_0x486f5d={_0x1d931b:0xa5,_0x1220ea:0x6f};function _0xb03f3(_0x3ec789,_0x47d28f,_0x45dcc5,_0x59848a){return _0x36273c(_0x3ec789-0x11c,_0x47d28f-0x13b,_0x47d28f,_0x3ec789- -0x417);}function _0x104c8a(_0x1c10ad,_0x14f2f7,_0x2d4353,_0x70bfde){return _0x36273c(_0x1c10ad-_0x486f5d._0x1d931b,_0x14f2f7-_0x486f5d._0x1220ea,_0x1c10ad,_0x14f2f7- -0x647);}return typeof _0x2b8cb6===_0xb03f3(_0x4ede35._0xd7c408,_0x4ede35._0x18e182,0x391,_0x4ede35._0xb24028)&&TODO_STATUSES[_0xb03f3(_0x4ede35._0x1318f1,_0x4ede35._0x4ba66c,0x187,_0x4ede35._0x2ea903)](_0x2b8cb6);}function isTodoPriority(_0x3972f4){return typeof _0x3972f4==='string'&&TODO_PRIORITIES['has'](_0x3972f4);}var TodoStore=class{[_0x19c96f(0xcc,0x183,0x75,0x12e)]=new Map();[_0x19c96f(0x1db,0x99,-0x5f,0xd2)](_0x3f9b77){const _0x561fd2={_0x1e3802:0x54f,_0x28a4fb:0x34a,_0x1564c1:0x5a9,_0x19589e:0x44f},_0x140837={_0x1fe26a:0xc3,_0x1f7087:0x1e2};function _0x20fc4e(_0x48b0c2,_0x7435a2,_0xd68469,_0x24484f){return _0x36273c(_0x48b0c2-0x1b2,_0x7435a2-_0x140837._0x1fe26a,_0xd68469,_0x24484f- -_0x140837._0x1f7087);}return this['todosBySession'][_0x20fc4e(_0x561fd2._0x1e3802,_0x561fd2._0x28a4fb,_0x561fd2._0x1564c1,_0x561fd2._0x19589e)](_0x3f9b77)??[];}[_0x19c96f(0x5b,0xec,0x165,0xd9)](_0x504a5b,_0x4df9f1){const _0x1a72f5={_0x3ae518:0xae,_0x3887ca:0x2cc,_0x412e64:0x1ab},_0x2d115e={_0x4e2b4c:0x79};function _0x134267(_0x18b480,_0x462433,_0x381e2b,_0x2d210f){return _0x36273c(_0x18b480-0x17f,_0x462433-_0x2d115e._0x4e2b4c,_0x462433,_0x2d210f- -0x4d8);}this['todosBySession'][_0x134267(_0x1a72f5._0x3ae518,0x63,_0x1a72f5._0x3887ca,_0x1a72f5._0x412e64)](_0x504a5b,_0x4df9f1);}['getStats'](_0x5e2439){const _0x4a2071={_0x10dd0f:0xf3,_0x44a340:0x197,_0x3a7d29:0x2d1,_0x16828b:0x3bb,_0x5c4042:0x296,_0xe3f0a1:0x69,_0x59b860:0xd2,_0x5984f8:0x12a,_0x5afa00:0x1ea,_0x13eb5c:0x1c9,_0x2350e5:0x8a,_0x1a0863:0x3c,_0x351fa5:0x1a0,_0x29ac20:0xe1,_0x3096ba:0x19,_0x1e415a:0xb0,_0xfc6394:0x51,_0x5304e9:0x13a,_0x1320eb:0x1bc,_0x531f1b:0x180},_0x147b78={_0x46bb7a:0x498},_0x5e75f6={_0x534d0b:0x80},_0x15c65a=this[_0x144082(0x16c,0x1f,_0x4a2071._0x10dd0f,_0x4a2071._0x44a340)](_0x5e2439),_0x4bb7d2={'total':_0x15c65a[_0x144082(_0x4a2071._0x3a7d29,0x1b1,_0x4a2071._0x16828b,_0x4a2071._0x5c4042)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0x513de2 of _0x15c65a){if(_0x513de2[_0x144082(0x3c,_0x4a2071._0xe3f0a1,0x19,-0x8f)]===_0x144082(0x184,_0x4a2071._0x59b860,_0x4a2071._0x5984f8,_0x4a2071._0x5afa00))_0x4bb7d2[_0x144082(0x184,0xb7,_0x4a2071._0x13eb5c,_0x4a2071._0x2350e5)]+=0x1;else{if(_0x513de2[_0x144082(_0x4a2071._0x1a0863,_0x4a2071._0x351fa5,-0x108,_0x4a2071._0x29ac20)]===_0x144082(0x2bc,0x2d1,0x2d6,0x42f))_0x4bb7d2[_0x149b49(-_0x4a2071._0x3096ba,-_0x4a2071._0x1e415a,_0x4a2071._0xfc6394,_0x4a2071._0x5304e9)]+=0x1;else _0x4bb7d2[_0x149b49(0x198,_0x4a2071._0x1320eb,_0x4a2071._0x531f1b,0x286)]+=0x1;}}function _0x149b49(_0x21c52a,_0xc94168,_0x379ebf,_0x54f580){return _0x19c96f(_0x21c52a-0x3c,_0xc94168-0x4c,_0x54f580,_0x379ebf- -_0x5e75f6._0x534d0b);}function _0x144082(_0x533a57,_0x344b28,_0x48b008,_0x4a768a){return _0x36273c(_0x533a57-0x77,_0x344b28-0x1ad,_0x4a768a,_0x533a57- -_0x147b78._0x46bb7a);}return _0x4bb7d2;}};function validateTodos(_0x17643e){const _0x23f350={_0x3a8e12:0x354,_0xfb4948:0x3be,_0x42d55e:0x49f,_0x138f3b:0x2bd,_0x56f941:0x1b2,_0x542b57:0x396,_0x3f2315:0x386,_0x47eebd:0x39b,_0x4f588f:0x40b,_0x38c8cc:0x46f,_0x238647:0x529,_0x4f16e4:0x20b,_0x2dbc0f:0x3bb,_0x127cfb:0x3c6,_0x552f40:0x2d9,_0x118a68:0x34d,_0x1ba470:0x311,_0x289a61:0x18d,_0x3cf522:0x2b1,_0x337357:0x199,_0x96f40c:0x5c4,_0x442f97:0x4f4,_0x581038:0x56e,_0x2e7230:0x3c8,_0x5768b0:0x370,_0x3892d8:0x2a,_0x568417:0x4a7,_0x2b8a34:0x2ab,_0x3f8956:0x3ce,_0xe45e09:0x257,_0xd9a549:0x4b9,_0x5df2a3:0x38d,_0x40df12:0xe9,_0x2b6a3a:0x1fe,_0x4840d4:0x1b4,_0x24fe8d:0xf1,_0x29eee8:0x181,_0x1ee144:0x190,_0x4d6851:0x96,_0x11a548:0x2d2,_0x4da963:0x1e7,_0x313d18:0x1b3,_0x9e950d:0x2b9,_0x20ef7e:0x166,_0x1658b3:0xee,_0x2afcea:0x290,_0x35cc3f:0x29a,_0x10f7a0:0x31c,_0x5c5826:0x216,_0x114b49:0x253,_0x278944:0x187,_0x175696:0x388,_0x13ec24:0x42a,_0x4a738e:0x46f,_0x179055:0x113,_0x3d1741:0xf8,_0x24701b:0x2f4},_0xb8a155={_0x8a97b1:0x1b1},_0x596426={_0x2df2c7:0x2,_0xfd54f6:0x135,_0x3a76a9:0x14f};function _0x179467(_0x5adcbf,_0x1e2329,_0x36d5cc,_0x2dc760){return _0x19c96f(_0x5adcbf-_0x596426._0x2df2c7,_0x1e2329-_0x596426._0xfd54f6,_0x1e2329,_0x36d5cc-_0x596426._0x3a76a9);}if(!Array[_0x179467(0x488,_0x23f350._0x3a8e12,_0x23f350._0xfb4948,0x4f1)](_0x17643e[_0x1988aa(0x3bb,_0x23f350._0x42d55e,_0x23f350._0x138f3b,0x4f0)])||_0x17643e[_0x179467(0x2a7,_0x23f350._0x56f941,0x317,_0x23f350._0x542b57)][_0x179467(0x2b4,0x3ca,_0x23f350._0x3f2315,_0x23f350._0x47eebd)]===0x0)throw new ToolExecutionError(_0x1988aa(_0x23f350._0x4f588f,_0x23f350._0x38c8cc,_0x23f350._0x238647,0x42a),{'error':_0x179467(_0x23f350._0x4f16e4,0x315,0x318,0x258)});for(let _0x243a76=0x0;_0x243a76<_0x17643e[_0x1988aa(_0x23f350._0x2dbc0f,0x4d6,_0x23f350._0x127cfb,_0x23f350._0x552f40)][_0x1988aa(0x42a,0x4a3,0x2ef,_0x23f350._0x118a68)];_0x243a76+=0x1){const _0xf8d273=_0x17643e[_0x1988aa(0x3bb,0x2c6,0x2ef,_0x23f350._0x1ba470)][_0x243a76];if(!_0xf8d273||typeof _0xf8d273!=='object')throw new ToolExecutionError(_0x1988aa(_0x23f350._0x289a61,0xbb,0x76,_0x23f350._0x3cf522)+(_0x243a76+0x1)+_0x1988aa(0x1c3,0x1af,_0x23f350._0x337357,0x23b),{'error':'invalid_todo_item'});if(typeof _0xf8d273['id']!=='string'||_0xf8d273['id'][_0x1988aa(0x45a,0x318,_0x23f350._0x96f40c,_0x23f350._0x442f97)]()[_0x1988aa(0x42a,_0x23f350._0x581038,_0x23f350._0x2e7230,_0x23f350._0x5768b0)]===0x0)throw new ToolExecutionError(_0x179467(_0x23f350._0x3892d8,-0x19,0xe9,0x25a)+(_0x243a76+0x1)+_0x179467(_0x23f350._0x568417,0x39d,0x3c3,0x364),{'error':_0x1988aa(_0x23f350._0x2b8a34,0x176,0x18d,0x1a4)});if(typeof _0xf8d273['content']!=='string'||_0xf8d273[_0x179467(-0x41,0xf9,0xf7,0x1bb)][_0x179467(0x512,_0x23f350._0x3f8956,0x3b6,_0x23f350._0xe45e09)]()[_0x179467(0x4de,_0x23f350._0xd9a549,0x386,_0x23f350._0x5df2a3)]===0x0)throw new ToolExecutionError(_0x179467(0x56,0x1c8,_0x23f350._0x40df12,_0x23f350._0x2b6a3a)+(_0x243a76+0x1)+_0x179467(0x2d9,0x28c,_0x23f350._0x4840d4,0x250),{'error':'invalid_todo_content'});if(!isTodoStatus(_0xf8d273[_0x179467(0x174,0x6e,_0x23f350._0x24fe8d,_0x23f350._0x29eee8)]))throw new ToolExecutionError(_0x179467(0x1f7,_0x23f350._0x1ee144,_0x23f350._0x40df12,-_0x23f350._0x4d6851)+(_0x243a76+0x1)+':\x20invalid\x20status',{'error':_0x179467(_0x23f350._0x11a548,0xd4,_0x23f350._0x4da963,0x2bb)});if(!isTodoPriority(_0xf8d273[_0x1988aa(_0x23f350._0x313d18,0xe3,_0x23f350._0x9e950d,0x273)]))throw new ToolExecutionError(_0x1988aa(0x18d,_0x23f350._0x20ef7e,_0x23f350._0x1658b3,_0x23f350._0x2afcea)+(_0x243a76+0x1)+_0x1988aa(_0x23f350._0x35cc3f,_0x23f350._0x10f7a0,0x164,_0x23f350._0x5c5826),{'error':_0x179467(0x2a6,0x49c,0x38c,0x237)});}const _0xaa9ec6=_0x17643e[_0x1988aa(0x3bb,0x4d3,_0x23f350._0x114b49,_0x23f350._0x11a548)][_0x179467(0x12c,_0x23f350._0x278944,0x214,0x2d8)](_0x41873c=>_0x41873c['id']);function _0x1988aa(_0x3d1d30,_0x249993,_0x406588,_0x22ddcf){return _0x19c96f(_0x3d1d30-0x3d,_0x249993-_0xb8a155._0x8a97b1,_0x406588,_0x3d1d30-0x1f3);}if(new Set(_0xaa9ec6)[_0x1988aa(0x33a,_0x23f350._0x175696,0x2f8,0x44b)]!==_0xaa9ec6[_0x1988aa(_0x23f350._0x13ec24,0x4fd,0x373,_0x23f350._0x4a738e)])throw new ToolExecutionError(_0x179467(0x253,0x285,_0x23f350._0x179055,-0x58),{'error':_0x1988aa(0x1aa,_0x23f350._0x3d1741,0x222,_0x23f350._0x24701b)});}function createStatsProgress(_0xf9b20){const _0x4e980a={_0x47489b:0x220,_0x2c0d2d:0xe2,_0xd50c18:0xe6,_0xc74f86:0x348,_0x556677:0x38f},_0x41a632={_0x1226a9:0x143,_0x582763:0x1ab},_0xc2468b={_0x480bf7:0x1d7};function _0x3c5b70(_0x2cc045,_0x28d309,_0x81ce2f,_0x3b1211){return _0x19c96f(_0x2cc045-0xf3,_0x28d309-0x19f,_0x3b1211,_0x2cc045- -_0xc2468b._0x480bf7);}function _0x50da4c(_0x1d1a2b,_0x102536,_0x124815,_0x1cf22e){return _0x19c96f(_0x1d1a2b-_0x41a632._0x1226a9,_0x102536-0xa6,_0x1cf22e,_0x1d1a2b- -_0x41a632._0x582763);}return _0xf9b20[_0x50da4c(-_0x4e980a._0x47489b,-0x17d,-_0x4e980a._0x2c0d2d,-0x100)]>0x0?Math['round'](_0xf9b20[_0x50da4c(0x55,_0x4e980a._0xd50c18,0x7d,-0x3d)]/_0xf9b20[_0x50da4c(-0x220,-0x23b,-_0x4e980a._0xc74f86,-_0x4e980a._0x556677)]*0x64)+'%':'0%';}function createReminderItems(_0x17b6ca){const _0x387ad8={_0x564797:0xc5},_0x4eac11={_0x409b16:0x46,_0x136fa2:0x532};function _0x3110e0(_0x53d63f,_0x24fb1c,_0x98f4aa,_0x2cc697){return _0x36273c(_0x53d63f-_0x4eac11._0x409b16,_0x24fb1c-0x5f,_0x53d63f,_0x2cc697- -_0x4eac11._0x136fa2);}function _0x12c081(_0x2fdc7b,_0x338d6f,_0x143c58,_0x42157d){return _0x36273c(_0x2fdc7b-0x1ec,_0x338d6f-0x1a5,_0x338d6f,_0x42157d- -0x2f2);}return _0x17b6ca[_0x3110e0(0x12a,0x179,0xfb,_0x387ad8._0x564797)](_0x5a7b5a=>({'content':_0x5a7b5a[_0x3110e0(-0x1b5,-0xf8,0x80,-0x58)],'status':_0x5a7b5a['status'],'id':_0x5a7b5a['id']}));}function createStructuredResult(_0x35ae71,_0x3dd42b,_0x44bdb1,_0x29e260){const _0x48a896={_0xbffb57:0x3d,_0x5aa4d1:0x18a,_0xc288a0:0xc8,_0x31b831:0xe2,_0x39910d:0x62,_0x42f985:0xa7,_0x38bdba:0xaa,_0x425e0c:0x136},_0x151ffd={_0x411b8a:0x115},_0x15496c={_0x3ee0e5:0x99,_0x26782c:0x88,_0x558284:0x18d};function _0x52d6c3(_0x5c8a39,_0x21df93,_0x1daee3,_0x5dc1db){return _0x19c96f(_0x5c8a39-_0x15496c._0x3ee0e5,_0x21df93-_0x15496c._0x26782c,_0x5c8a39,_0x1daee3- -_0x15496c._0x558284);}function _0x121802(_0x46e8fc,_0x1307ea,_0x57efe9,_0x824f43){return _0x19c96f(_0x46e8fc-0x11,_0x1307ea-0x1bc,_0x57efe9,_0x1307ea- -_0x151ffd._0x411b8a);}return{'allCompleted':_0x29e260,'items':_0x3dd42b[_0x52d6c3(_0x48a896._0xbffb57,-_0x48a896._0x5aa4d1,-_0x48a896._0xc288a0,-_0x48a896._0x31b831)](_0xddcdef=>({'id':_0xddcdef['id'],'content':_0xddcdef[_0x121802(-0x219,-0x16d,-0x2ca,-0x2a6)],'status':_0xddcdef[_0x52d6c3(-0x90,-0x147,-0x1eb,-0x219)],'priority':_0xddcdef[_0x52d6c3(-0x65,-0xb0,-0x1cd,-0xcb)],'createdAt':_0xddcdef[_0x52d6c3(0x31,0x70,0x94,-0x7c)]})),'progress':createStatsProgress(_0x44bdb1),'recentChanges':!![],'sessionId':_0x35ae71,'stats':_0x44bdb1,'todosWritten':_0x3dd42b[_0x52d6c3(-_0x48a896._0x39910d,-_0x48a896._0x42f985,_0x48a896._0x38bdba,_0x48a896._0x425e0c)]};}function createOutputText(_0xabde47,_0x33f5b1){const _0x2eb534={_0x338d49:0x1c5,_0x119f05:0x1c7,_0x27ea46:0x33,_0x1dd54c:0x164,_0x1b598c:0x10,_0x4e3464:0x115,_0x198d03:0x2e2,_0x9f3ae:0x23d,_0x284bf6:0x1b2},_0x42b18={_0x59c185:0x8b,_0x214973:0x14c};function _0x373bb1(_0x5cb195,_0x53d4d5,_0x1ec275,_0x1e9126){return _0x19c96f(_0x5cb195-_0x42b18._0x59c185,_0x53d4d5-_0x42b18._0x214973,_0x5cb195,_0x1e9126- -0x204);}const _0x592759=JSON[_0x373bb1(_0x2eb534._0x338d49,0x71,_0x2eb534._0x119f05,0x4a)](createReminderItems(_0xabde47));function _0x41d042(_0x3451e2,_0x5c0659,_0x58de24,_0x5f51d0){return _0x36273c(_0x3451e2-0xc5,_0x5c0659-0xaa,_0x3451e2,_0x5f51d0- -0x52f);}if(_0x33f5b1)return'All\x20'+_0xabde47[_0x373bb1(0x63,0x194,0x7f,_0x2eb534._0x27ea46)]+_0x41d042(-0x163,-0xbf,_0x2eb534._0x1dd54c,_0x2eb534._0x1b598c)+_0x592759+'.\x0a</system-reminder>';return _0x41d042(0x5e,-0x68,_0x2eb534._0x4e3464,0x57)+_0x592759+_0x41d042(_0x2eb534._0x198d03,_0x2eb534._0x9f3ae,0x285,_0x2eb534._0x284bf6);}function createTodoWriteTool(_0x4f09f3=new TodoStore()){const _0x588526={_0x5977f3:0x4b8,_0x4e0473:0x345,_0x584a29:0xf6,_0x17fbfc:0x103,_0xee73df:0x32d,_0xa8eab5:0x1f1,_0x1729e2:0x10c,_0x539d3f:0x394,_0x2f5e60:0x509,_0x5136ae:0x326,_0x98f88e:0x394,_0x496c69:0x47c,_0x40ad44:0xae,_0x1b0e4f:0x88,_0x2d088f:0xd6,_0xaf8aa5:0xf4,_0x2a7ff0:0x1ff,_0x5d2976:0x516},_0x504843={_0x3cfaed:0x455,_0xfe28d6:0x3a9,_0x10da95:0x5e5,_0x26de6c:0x4f2,_0x8b55f1:0x486,_0x44f7ad:0x578,_0x411f0c:0x4cd,_0x5de8c8:0x2f4,_0x3a35ee:0x396,_0x16cc0b:0x2c6,_0x4c639f:0x336,_0x31c2ef:0x636,_0x5c8347:0x7e8,_0x49c625:0x6c7,_0x210f63:0x4f6},_0x5cb1da={_0x3db0fd:0x1c9},_0x20c50a={_0x227301:0x99,_0x53f47e:0x3fe},_0x4ab472={_0x4beb33:0x1f1,_0x24b470:0x38};function _0x436528(_0x3d3f3a,_0x211d25,_0x2cf7a8,_0x24471d){return _0x36273c(_0x3d3f3a-_0x4ab472._0x4beb33,_0x211d25-_0x4ab472._0x24b470,_0x211d25,_0x2cf7a8- -0x2aa);}function _0x3cbd04(_0x499b8a,_0x49539a,_0x136e0a,_0x1100fd){return _0x36273c(_0x499b8a-0x1b7,_0x49539a-_0x20c50a._0x227301,_0x1100fd,_0x49539a- -_0x20c50a._0x53f47e);}return defineTool({'name':_0x3cbd04(_0x588526._0x5977f3,0x348,0x432,_0x588526._0x4e0473),'description':_0x3cbd04(_0x588526._0x584a29,0x221,_0x588526._0x17fbfc,0x16b),'inputSchema':{'type':_0x3cbd04(_0x588526._0xee73df,_0x588526._0xa8eab5,0xea,_0x588526._0x1729e2),'properties':{'todos':{'type':_0x3cbd04(0x3e6,0x265,0x22a,0x24d),'items':{'type':_0x436528(0x3e0,0x215,0x345,0x29c),'properties':{'content':{'type':'string'},'status':{'type':'string'},'priority':{'type':_0x436528(0x45f,0x2e5,_0x588526._0x539d3f,_0x588526._0x2f5e60)},'id':{'type':_0x436528(0x4ac,_0x588526._0x5136ae,_0x588526._0x98f88e,_0x588526._0x496c69)},'createdAt':{'type':'string'}},'required':[_0x3cbd04(_0x588526._0x40ad44,0xdc,0x87,0x11b),_0x3cbd04(_0x588526._0x1b0e4f,_0x588526._0x2d088f,-0x5c,0x3a),_0x3cbd04(0xdd,_0x588526._0xaf8aa5,0x61,_0x588526._0x2a7ff0),'id']}}},'required':[_0x436528(_0x588526._0x5d2976,0x59c,0x450,0x3f7)]},async *'execute'(_0x33e961,_0x52a164){const _0x5691e3={_0x17f6f5:0x21c,_0x1afa76:0x1},_0x500988=_0x33e961;validateTodos(_0x500988);const _0x2d64e9=_0x52a164[_0x285a11(0x611,0x51e,0x494,_0x504843._0x3cfaed)]||_0x285a11(_0x504843._0xfe28d6,_0x504843._0x10da95,0x4c8,0x3cb),_0x5b9b95=new Date()[_0x3dc399(_0x504843._0x26de6c,0x5b5,0x59a,_0x504843._0x8b55f1)]();function _0x285a11(_0x8171b4,_0x305248,_0x4afb72,_0x1c6696){return _0x3cbd04(_0x8171b4-0x1d2,_0x4afb72-_0x5691e3._0x17f6f5,_0x4afb72-_0x5691e3._0x1afa76,_0x305248);}const _0x1915d8=_0x500988['todos'][_0x285a11(_0x504843._0x44f7ad,_0x504843._0x411f0c,0x415,0x338)](_0x3c8525=>({'id':_0x3c8525['id'],'content':_0x3c8525[_0x285a11(0x340,0x29d,0x2f8,0x243)],'status':_0x3c8525[_0x3dc399(0x4fa,0x2ef,0x399,0x3f3)],'priority':_0x3c8525[_0x3dc399(0x46a,0x587,0x2d7,0x411)],'sessionId':_0x2d64e9,'createdAt':_0x3c8525[_0x285a11(0x65b,0x4ca,0x571,0x6a1)]||_0x5b9b95,'updatedAt':_0x5b9b95}));function _0x3dc399(_0x310adb,_0x533a1b,_0xb4c2dc,_0x2d3dde){return _0x436528(_0x310adb-0x56,_0x533a1b,_0x2d3dde-_0x5cb1da._0x3db0fd,_0x2d3dde-0x103);}_0x4f09f3[_0x285a11(0x40a,0x437,0x429,_0x504843._0x5de8c8)](_0x2d64e9,_0x1915d8);const _0x2febba=_0x4f09f3[_0x285a11(_0x504843._0x3a35ee,0x1d7,_0x504843._0x16cc0b,_0x504843._0x4c639f)](_0x2d64e9),_0x3ab359=_0x1915d8[_0x3dc399(_0x504843._0x31c2ef,_0x504843._0x5c8347,0x791,0x688)]>0x0&&_0x1915d8[_0x3dc399(0x4aa,_0x504843._0x49c625,_0x504843._0x210f63,0x5c1)](_0x4e363c=>_0x4e363c[_0x3dc399(0x298,0x2db,0x4fd,0x3f3)]===_0x3dc399(0x61b,0x682,0x58d,0x651));return createToolOutput(createOutputText(_0x1915d8,_0x3ab359),createStructuredResult(_0x2d64e9,_0x1915d8,_0x2febba,_0x3ab359));}});}import{mkdir as _0x501e53,writeFile as _0x11c607}from'fs/promises';import*as _0x392ca7 from'path';function sanitizeFileName(_0x31b255){const _0x240297={_0x34d944:0x5b},_0x5783a0={_0x3d587e:0x1f0,_0x208f69:0x14b};function _0xf7ec1c(_0x30684f,_0x183517,_0x45c515,_0x3bdd6a){return _0x36273c(_0x30684f-_0x5783a0._0x3d587e,_0x183517-_0x5783a0._0x208f69,_0x45c515,_0x3bdd6a- -0x5ed);}return _0x31b255[_0xf7ec1c(0x2d4,_0x240297._0x34d944,0x2b2,0x19b)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x177996,_0x568b2c){const _0x598c51={_0x369969:0x35b,_0x5d4433:0x362,_0x51bf96:0x22f,_0x1d8c8b:0x6c0,_0x566bdc:0x5e1,_0x3dbe77:0x59c,_0x1f6da2:0x5b9,_0x54c88d:0x576,_0x1a9bb5:0x305,_0x13c66b:0x35b,_0x104cde:0x2b1,_0x5f2ff8:0x3cf,_0x40d290:0x4a2,_0x3c5127:0x321,_0x19f87e:0x399,_0x19959:0x325,_0x27a167:0x24c,_0x57f91c:0x630,_0x1a5e3c:0x4ee,_0x159fcc:0x5ed,_0x2401d0:0x5c5,_0x163f3a:0x5da,_0x85f4e9:0x57b,_0x18d9e8:0x5d6,_0x172ad5:0x3e4,_0x1f9223:0x43c,_0x41f5a7:0x43c,_0x4e48f1:0x4b4,_0x2c2996:0x3dd,_0x2801e6:0x500,_0x2dba43:0x2c8,_0x2f9a62:0x2a2,_0x21d3b9:0x28a,_0x2b4ade:0x4de,_0x42de02:0x38b,_0x122bd5:0x242,_0x4b52e7:0x25a,_0x23c304:0x353,_0x75c805:0x3cb,_0x53f52c:0x575,_0x761f85:0x41e,_0x490acc:0x554,_0x3e4cb:0x3b7,_0x2d9c3a:0x3aa,_0x47b5f6:0x52a,_0x39a96c:0x37f,_0x1663e1:0x384,_0x1bfb72:0x4c2,_0x513327:0x210,_0x5335f4:0x2ec,_0x17d90c:0x27c},_0x49fc50={_0x9bd242:0x120},{maxBytes:_0x5982f8,sessionDir:_0x46f0e2}=_0x568b2c;if(!_0x177996[_0x1abf58(0x3d6,0x47d,_0x598c51._0x369969,0x42f)]||Buffer['byteLength'](_0x177996[_0x1abf58(_0x598c51._0x5d4433,0x4d5,0x35b,_0x598c51._0x51bf96)],'utf8')<=_0x5982f8)return _0x177996;const _0x297930=Buffer[_0x1abf58(0x335,0x1cd,0x26b,0x200)](_0x177996[_0x1f0bb2(_0x598c51._0x1d8c8b,_0x598c51._0x566bdc,0x45e,_0x598c51._0x3dbe77)],_0x1f0bb2(_0x598c51._0x1f6da2,0x461,0x66e,_0x598c51._0x54c88d));function _0x1abf58(_0x5b928d,_0x430b69,_0x3580e8,_0xd34922){return _0x36273c(_0x5b928d-0xe1,_0x430b69-0xd1,_0x5b928d,_0x3580e8- -0x361);}if(!_0x46f0e2){const _0x5e8a08=_0x177996[_0x1abf58(0x467,_0x598c51._0x1a9bb5,_0x598c51._0x13c66b,_0x598c51._0x104cde)][_0x1f0bb2(_0x598c51._0x5f2ff8,_0x598c51._0x40d290,_0x598c51._0x3c5127,_0x598c51._0x19f87e)](0x0,_0x5982f8);return{..._0x177996,'output':_0x5e8a08+(_0x1abf58(0x477,_0x598c51._0x19959,0x377,_0x598c51._0x27a167)+_0x5982f8+_0x1f0bb2(0x5ee,0x518,0x548,_0x598c51._0x57f91c)+_0x297930+_0x1f0bb2(_0x598c51._0x1a5e3c,0x519,0x516,0x629)),'meta':{..._0x177996['meta'],'truncated':!![],'originalBytes':_0x297930,'transforms':[..._0x177996[_0x1f0bb2(_0x598c51._0x159fcc,0x5fd,0x4a3,0x52a)][_0x1abf58(0x1c5,0x231,0x281,0x3f8)],_0x1f0bb2(0x51f,0x59e,_0x598c51._0x2401d0,0x52d)]}};}const _0x1dd979=_0x177996[_0x1f0bb2(0x60e,_0x598c51._0x163f3a,0x46e,_0x598c51._0x85f4e9)]+'_'+sanitizeFileName(_0x177996[_0x1f0bb2(0x4c5,0x522,_0x598c51._0x18d9e8,0x5fa)])+_0x1f0bb2(_0x598c51._0x172ad5,_0x598c51._0x1f9223,_0x598c51._0x41f5a7,0x530),_0x94baa6=_0x392ca7[_0x1f0bb2(_0x598c51._0x4e48f1,_0x598c51._0x2c2996,_0x598c51._0x2801e6,0x41e)](_0x46f0e2,_0x1dd979);await _0x501e53(_0x46f0e2,{'recursive':!![]}),await _0x11c607(_0x94baa6,_0x177996[_0x1abf58(0x1e9,0x23b,0x35b,0x3f9)],'utf8');function _0x1f0bb2(_0x5ba9ed,_0x15d537,_0x394260,_0x1b68ec){return _0x36273c(_0x5ba9ed-0x17d,_0x15d537-0xb2,_0x5ba9ed,_0x1b68ec- -_0x49fc50._0x9bd242);}let _0x5acb24=_0x177996['output']['slice'](0x0,_0x5982f8);const _0x277353=_0x5acb24[_0x1abf58(_0x598c51._0x2dba43,_0x598c51._0x2f9a62,0x3f9,0x40c)]('\x0a');_0x277353>_0x5982f8*0.5&&(_0x5acb24=_0x5acb24[_0x1f0bb2(0x403,_0x598c51._0x21d3b9,0x393,0x399)](0x0,_0x277353));const _0x221719=['',_0x1f0bb2(_0x598c51._0x2b4ade,0x6fb,0x5f1,0x636),_0x1f0bb2(0x32d,0x40c,0x2d4,_0x598c51._0x42de02)+_0x5982f8+'\x20bytes\x20(total:\x20'+_0x297930+_0x1abf58(0x1ce,0x25d,_0x598c51._0x122bd5,_0x598c51._0x4b52e7),_0x1f0bb2(0x41a,_0x598c51._0x23c304,0x335,_0x598c51._0x5f2ff8)+_0x94baa6,'Use\x20FileRead\x20with\x20lineStart/lineEnd\x20to\x20inspect\x20specific\x20sections\x20of\x20the\x20full\x20output.','</system-reminder>'][_0x1f0bb2(_0x598c51._0x75c805,0x348,_0x598c51._0x53f52c,_0x598c51._0x761f85)]('\x0a');return{..._0x177996,'output':_0x5acb24+_0x221719,'meta':{..._0x177996['meta'],'truncated':!![],'originalBytes':_0x297930,'transforms':[..._0x177996[_0x1f0bb2(_0x598c51._0x490acc,_0x598c51._0x3e4cb,_0x598c51._0x2d9c3a,_0x598c51._0x47b5f6)][_0x1f0bb2(0x3ab,_0x598c51._0x39a96c,_0x598c51._0x1663e1,_0x598c51._0x1bfb72)],_0x1abf58(_0x598c51._0x513327,0x2ae,_0x598c51._0x5335f4,_0x598c51._0x17d90c)]}};}function createUpdateTopicTool(){const _0x33f20d={_0x546013:0x1fc,_0x10d580:0xd5,_0x2f6afb:0x1cb,_0x3eadab:0x331,_0xb4c6e6:0x354,_0x5a89b1:0x273,_0x1a6f1e:0xa6,_0x5c5e8b:0x18a,_0x410501:0x2ee,_0x1a4da3:0x111,_0x32e57b:0x79,_0x54983c:0x2d3},_0x131e42={_0x53a85b:0x21b,_0x308b49:0x85,_0x284972:0x7b,_0x39a263:0x1ea,_0x2ffb2a:0x759,_0x37c872:0x714,_0x18df03:0x820,_0xa5137:0x2ad,_0x4ad58e:0x3cf,_0x2d9d78:0x6a7,_0x5764ef:0x7ea,_0xa45142:0x4bb,_0x5905f0:0x495,_0x48f62d:0x469,_0xda3c1f:0x2ff,_0x3c7806:0x345,_0x241eca:0x1eb,_0x363382:0x1c},_0x4dfaba={_0x3ced39:0x16e},_0x49e497={_0x429643:0x101},_0x2fc0c3={_0x1bc1b1:0x465};function _0x97cc82(_0x5e9f00,_0x2920b4,_0x4e60da,_0xea6e80){return _0x36273c(_0x5e9f00-0x5e,_0x2920b4-0xcb,_0xea6e80,_0x4e60da- -_0x2fc0c3._0x1bc1b1);}function _0x38ffe7(_0x547ab9,_0x405b2b,_0x41f8f8,_0x25f453){return _0x36273c(_0x547ab9-0x120,_0x405b2b-_0x49e497._0x429643,_0x25f453,_0x41f8f8- -0x3ad);}return defineTool({'name':_0x97cc82(_0x33f20d._0x546013,_0x33f20d._0x10d580,_0x33f20d._0x2f6afb,0x69),'description':_0x97cc82(0x1d0,0x357,_0x33f20d._0x3eadab,_0x33f20d._0xb4c6e6),'inputSchema':{'type':_0x97cc82(_0x33f20d._0x5a89b1,_0x33f20d._0x1a6f1e,_0x33f20d._0x5c5e8b,0x102),'properties':{'topic':{'type':_0x97cc82(_0x33f20d._0x410501,_0x33f20d._0x1a4da3,0x1d9,_0x33f20d._0x32e57b)}},'required':[_0x97cc82(_0x33f20d._0x54983c,0x436,0x313,0x1f4)]},async *'execute'(_0x515c88,_0x51c62b){const {topic:_0x13fe51}=_0x515c88;function _0x17681b(_0x21cfd8,_0x740242,_0xc1ce5d,_0x114476){return _0x97cc82(_0x21cfd8-0xf,_0x740242-_0x4dfaba._0x3ced39,_0x114476-0x11,_0x740242);}if(typeof _0x13fe51!==_0x17681b(_0x131e42._0x53a85b,_0x131e42._0x308b49,_0x131e42._0x284972,_0x131e42._0x39a263)||_0x13fe51[_0x39b602(_0x131e42._0x2ffb2a,0x7c1,_0x131e42._0x37c872,_0x131e42._0x18df03)]()[_0x17681b(0x320,_0x131e42._0xa5137,_0x131e42._0x4ad58e,0x315)]===0x0)throw new ToolExecutionError(_0x39b602(0x812,0x7c4,_0x131e42._0x2d9d78,_0x131e42._0x5764ef),{'error':_0x39b602(0x4b9,_0x131e42._0xa45142,_0x131e42._0x5905f0,0x44c)});const _0x317f0e=_0x13fe51[_0x17681b(_0x131e42._0x48f62d,0x38f,_0x131e42._0xda3c1f,_0x131e42._0x3c7806)]();_0x51c62b['setTopic']?.(_0x317f0e);function _0x39b602(_0x3f450a,_0x553d04,_0x241b78,_0x54a537){return _0x38ffe7(_0x3f450a-0xc2,_0x553d04-0x162,_0x241b78-0x328,_0x54a537);}return yield createToolOutput(_0x17681b(0x278,_0x131e42._0x241eca,_0x131e42._0x363382,0x14c)+_0x317f0e+'\x22',{'topic':_0x317f0e}),void 0x0;}});}import{readFile as _0x2e60f2,stat as _0x20b463}from'fs/promises';import*as _0x4794e5 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x19c96f(-0x146,-0xdd,0x15c,-0x1b),_0x19c96f(0x231,0x110,0x1fa,0x191),_0x19c96f(-0xaa,0xb,-0x83,-0xe),_0x19c96f(-0x30,0x11e,0x1ca,0x4a)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x5aba3e,_0x373ef2){const _0x302e8e={_0x3c8c82:0x244,_0x34aa13:0x336,_0x735cb0:0x151,_0x1e5383:0x1b5,_0x175956:0x297,_0x412cb6:0x72,_0x3c5ddf:0x1d3,_0x3251ee:0x3a3,_0x323524:0x112,_0x5811f8:0x206,_0x434a2b:0x1e4,_0x4f8f82:0x1bc,_0x131e84:0x184,_0x3af812:0x2b5,_0x27ea95:0x2a7,_0x24c07e:0x478,_0x21f632:0x317,_0x28fb45:0x2a0,_0x45b246:0x65,_0x185ec2:0x15,_0x444897:0x13d,_0x5d0545:0x84,_0x4a4b3d:0x9,_0x415657:0x1b0,_0x1fef5b:0x2bb,_0x51d4e5:0x211,_0x4cd79a:0x37b,_0x151acb:0x135,_0x3735d9:0x154,_0x35072d:0x187,_0x3e5aeb:0x134,_0x527c3c:0x226,_0x2cecee:0x7f,_0x29a5eb:0xf8,_0x585eb9:0x19a,_0x1273a3:0x2fc,_0x162b24:0x2b4,_0x2de744:0x40e,_0x30089e:0x434,_0x4898c8:0x123,_0x395725:0x1c0,_0x42fbf5:0x252},_0x3cc694={_0x26ffa7:0x172,_0x49fb5d:0xae,_0x4b2f04:0x29e},_0x58a86f={_0x3a44a6:0x1bf};if(_0x5aba3e[_0x27b1e8(_0x302e8e._0x3c8c82,0x16f,_0x302e8e._0x34aa13,0x271)](0x0,0x8)[_0xa5ccc4(-0x146,-_0x302e8e._0x735cb0,-0x98,-_0x302e8e._0x1e5383)](PNG_SIGNATURE))return _0xa5ccc4(-_0x302e8e._0x175956,-0x173,-_0x302e8e._0x412cb6,-0x1cc);function _0xa5ccc4(_0x31f173,_0x3b2dc5,_0x3350ef,_0x2552f2){return _0x19c96f(_0x31f173-0x72,_0x3b2dc5-_0x58a86f._0x3a44a6,_0x3350ef,_0x2552f2- -0x1ed);}if(_0x5aba3e[0x0]===0xff&&_0x5aba3e[0x1]===0xd8&&_0x5aba3e[0x2]===0xff)return _0xa5ccc4(-0x1aa,-0x29c,-0x29a,-0x185);const _0x20c1f5=_0x5aba3e['subarray'](0x0,0x6)['toString'](_0xa5ccc4(-_0x302e8e._0x3c5ddf,-0x3b5,-_0x302e8e._0x3251ee,-0x26c));if(_0x20c1f5==='GIF87a'||_0x20c1f5===_0xa5ccc4(-_0x302e8e._0x323524,-0x44,0x3,-0x81))return _0xa5ccc4(-0x106,-_0x302e8e._0x5811f8,-_0x302e8e._0x434a2b,-_0x302e8e._0x4f8f82);if(_0x5aba3e[_0x27b1e8(_0x302e8e._0x3c8c82,_0x302e8e._0x131e84,_0x302e8e._0x3af812,_0x302e8e._0x27ea95)](0x0,0x4)[_0x27b1e8(_0x302e8e._0x24c07e,0x3c9,_0x302e8e._0x21f632,0x580)](_0xa5ccc4(-0x3a3,-_0x302e8e._0x28fb45,-0x211,-0x26c))===_0xa5ccc4(-_0x302e8e._0x45b246,-0x24b,-_0x302e8e._0x185ec2,-0x163)&&_0x5aba3e[_0xa5ccc4(-0x1c8,-0x2c7,-0x2eb,-0x23d)](0x8,0xc)[_0xa5ccc4(-_0x302e8e._0x444897,-_0x302e8e._0x5d0545,0x51,-_0x302e8e._0x4a4b3d)](_0x27b1e8(0x215,_0x302e8e._0x415657,0x252,0x2ad))===_0x27b1e8(_0x302e8e._0x1fef5b,0x324,0x3f6,0x2e8))return'image/webp';const _0x509503=_0x4794e5['extname'](_0x373ef2)[_0x27b1e8(_0x302e8e._0x51d4e5,0x386,_0x302e8e._0x4cd79a,_0x302e8e._0x151acb)]();if(_0x509503===_0xa5ccc4(-0x23c,-0x272,-_0x302e8e._0x3735d9,-_0x302e8e._0x35072d))return _0x27b1e8(_0x302e8e._0x3af812,0x2fa,0x1fb,0x3c4);if(_0x509503===_0xa5ccc4(-0x38a,-0x1e7,-_0x302e8e._0x3e5aeb,-_0x302e8e._0x527c3c)||_0x509503===_0xa5ccc4(-_0x302e8e._0x2cecee,-_0x302e8e._0x29a5eb,-0xad,-_0x302e8e._0x585eb9))return _0x27b1e8(_0x302e8e._0x1273a3,0x2f1,_0x302e8e._0x162b24,0x277);function _0x27b1e8(_0x2ec214,_0x5e5f41,_0x2c641d,_0x10a594){return _0x36273c(_0x2ec214-_0x3cc694._0x26ffa7,_0x5e5f41-_0x3cc694._0x49fb5d,_0x5e5f41,_0x2ec214- -_0x3cc694._0x4b2f04);}if(_0x509503===_0x27b1e8(_0x302e8e._0x2de744,_0x302e8e._0x30089e,0x326,0x568))return _0xa5ccc4(-_0x302e8e._0x4898c8,-_0x302e8e._0x395725,-_0x302e8e._0x42fbf5,-_0x302e8e._0x4f8f82);if(_0x509503==='.webp')return'image/webp';return void 0x0;}function normalizeDetail(_0x35ce2d){const _0x3974f={_0x37410f:0x5a6,_0x1fac02:0x4a1,_0x59dce1:0x47d,_0x3e0b68:0x170,_0x1ef9de:0x15e,_0x437850:0x233,_0x35df6d:0x353,_0x174e63:0x3a3,_0x5db2b9:0x45f},_0x700abc={_0xc6a390:0x1f3},_0x467afd={_0xf2500c:0x2d8};function _0x8b53ae(_0xa6c2c0,_0x21ad24,_0x387656,_0x35d072){return _0x36273c(_0xa6c2c0-0xa4,_0x21ad24-0x1e2,_0x21ad24,_0x387656- -_0x467afd._0xf2500c);}if(_0x35ce2d===void 0x0)return void 0x0;function _0x18124b(_0x3fd208,_0x51a4a6,_0x132b8a,_0x5c5ea4){return _0x36273c(_0x3fd208-0x150,_0x51a4a6-0x1ef,_0x5c5ea4,_0x3fd208- -_0x700abc._0xc6a390);}const _0x5f02c6=_0x35ce2d[_0x18124b(_0x3974f._0x37410f,0x597,_0x3974f._0x1fac02,_0x3974f._0x59dce1)]()[_0x18124b(0x2bc,0x43e,0x405,_0x3974f._0x3e0b68)]();if(!SUPPORTED_DETAILS[_0x8b53ae(0x335,_0x3974f._0x1ef9de,_0x3974f._0x437850,0x2b1)](_0x5f02c6))throw new ToolExecutionError(_0x18124b(_0x3974f._0x35df6d,0x400,_0x3974f._0x174e63,_0x3974f._0x5db2b9)+_0x35ce2d,{'detail':_0x35ce2d});return _0x5f02c6;}function createViewFileTool(_0x51e76e={}){const _0x180acf={_0x385258:0x3a8,_0x30e226:0x7a8,_0x148964:0x6c3,_0x565d12:0x68f,_0x54f2c8:0x43d,_0x109bc9:0x85,_0x5c5f9e:0x1ce,_0x9460ba:0x9a,_0x337c66:0xe3,_0x25a24f:0x1bf,_0x11b38f:0x34d,_0x4cce3e:0x572,_0x21e76d:0x81,_0x5aa076:0x32e},_0x206f9d={_0x4bf0c2:0x1a0,_0x111b57:0x1ae,_0x2557e5:0x3c4,_0x3a0bb8:0xf8,_0xd7a0f5:0x218,_0x30a5e9:0x251,_0x524c53:0x17b,_0x546566:0x111,_0x332e03:0x1f9,_0x44c5ee:0x23f,_0x49ce73:0x119,_0x224ad2:0x1a,_0x588635:0x17b,_0x178b39:0x1d5,_0x17a427:0x252,_0x1c834f:0x252,_0x55b2b4:0x1b5,_0x1dd067:0x1e6,_0x250485:0x17,_0x2555b3:0xcf,_0x418250:0xdf,_0x4cf3bd:0x1a5,_0x1916c4:0xb2,_0xc05c86:0x4b,_0x426e5a:0xca,_0x1996ed:0x232,_0x7443c3:0x3d,_0x1e6f00:0x47,_0x28be4b:0xad,_0xf873d:0x14,_0x3ad67a:0xf9,_0x436ad0:0xc2,_0x3451f2:0x86,_0x3f8226:0x1f4,_0x509b79:0x2a7,_0x9f8fbf:0x1ea,_0x36bd1c:0x2cf,_0x4ee399:0x8e,_0xf05c0:0xb1,_0x3caf4c:0x20d,_0x1b9ef3:0x309,_0x2b01fd:0xeb,_0x277b24:0xee,_0x35bef7:0x2c7,_0x3ac915:0x19f,_0x1232ff:0x281,_0x4b919a:0xd3,_0x402cb1:0x3a8,_0x5aaba4:0x339,_0x3bda83:0x17b,_0x626ded:0x3ba,_0x4eca23:0x373,_0x358e1d:0x27f},_0x17a5c7={_0x3ab7d9:0x69a,_0x513739:0x15e},_0x91904f={_0xa3a611:0x14e,_0xca0828:0xf0,_0x219ace:0x101},_0x46eb70={_0x55b96b:0x1e7,_0x28daca:0x157},_0x145362=_0x4794e5[_0x59670f(0x3ea,0x4f3,0x3e3,_0x180acf._0x385258)](_0x51e76e[_0x502cb5(0x288,0x333,0x203,0x32b)]??process['cwd']());function _0x59670f(_0x262005,_0x67c0d8,_0x77a4e2,_0x18468a){return _0x36273c(_0x262005-_0x46eb70._0x55b96b,_0x67c0d8-_0x46eb70._0x28daca,_0x18468a,_0x67c0d8- -0xb1);}const _0x687f24=(_0x51e76e[_0x59670f(_0x180acf._0x30e226,0x69c,_0x180acf._0x148964,_0x180acf._0x565d12)]??[])[_0x59670f(0x588,0x546,0x55f,_0x180acf._0x54f2c8)](_0x3425de=>_0x4794e5[_0x59670f(0x447,0x4f3,0x600,0x37a)](_0x3425de)),_0x3a8243=_0x51e76e[_0x502cb5(0x1da,_0x180acf._0x109bc9,_0x180acf._0x5c5f9e,-_0x180acf._0x9460ba)]??DEFAULT_MAX_BYTES,_0x11a160=_0x51e76e[_0x502cb5(0x193,_0x180acf._0x337c66,_0x180acf._0x25a24f,0x17)]??_0x502cb5(0x1e7,_0x180acf._0x11b38f,0x42b,0x24e);function _0x502cb5(_0x57a65b,_0x12a3c5,_0x2e4a86,_0x1db562){return _0x19c96f(_0x57a65b-_0x91904f._0xa3a611,_0x12a3c5-_0x91904f._0xca0828,_0x1db562,_0x12a3c5-_0x91904f._0x219ace);}return defineTool({'name':_0x11a160,'description':_0x59670f(0x625,0x5e8,_0x180acf._0x4cce3e,0x543),'inputSchema':{'type':_0x502cb5(_0x180acf._0x21e76d,0x1be,_0x180acf._0x5aa076,0x2ad),'properties':{'path':{'type':'string'},'detail':{'type':'string'}},'required':['path']},async *'execute'(_0x9ef347){const _0x2f6385={_0x1de2d6:0x371},_0x345a1c=resolveAllowedPath(_0x145362,_0x687f24,_0x9ef347[_0x1ea4ef(_0x206f9d._0x4bf0c2,0x2c7,0x14c,_0x206f9d._0x111b57)]);await assertWorkspaceFile(_0x345a1c);const _0x2c9867=await _0x20b463(_0x345a1c);if(_0x2c9867[_0x1ea4ef(_0x206f9d._0x2557e5,0x258,0x1ed,0x257)]>_0x3a8243)throw new ToolExecutionError('Image\x20file\x20is\x20too\x20large:\x20'+_0x9ef347[_0x1ea4ef(_0x206f9d._0x3a0bb8,0x28c,_0x206f9d._0xd7a0f5,_0x206f9d._0x111b57)],{'path':_0x9ef347[_0x169e76(-_0x206f9d._0x30a5e9,-0x221,-_0x206f9d._0x524c53,-_0x206f9d._0x546566)],'maxBytes':_0x3a8243,'size':_0x2c9867[_0x1ea4ef(_0x206f9d._0x332e03,_0x206f9d._0x44c5ee,0x288,0x257)]});const _0x44db20=await _0x2e60f2(_0x345a1c);function _0x1ea4ef(_0xf6c7bf,_0x242244,_0x16d0e9,_0x447ab6){return _0x59670f(_0xf6c7bf-0x1b,_0x447ab6- -_0x2f6385._0x1de2d6,_0x16d0e9-0x45,_0xf6c7bf);}const _0x51c084=detectImageMediaType(_0x44db20,_0x345a1c);if(!_0x51c084)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0x9ef347['path'],{'path':_0x9ef347[_0x169e76(-_0x206f9d._0x49ce73,-_0x206f9d._0x224ad2,-_0x206f9d._0x588635,-0x67)],'supported':['.gif',_0x169e76(-0x7c,-0x203,-0x1c6,-_0x206f9d._0x178b39),_0x169e76(-_0x206f9d._0x17a427,-0x11d,-_0x206f9d._0x1c834f,-_0x206f9d._0x55b2b4),_0x169e76(-0x165,-0x1f8,-0x1b3,-_0x206f9d._0x1dd067),_0x1ea4ef(0x31,_0x206f9d._0x250485,_0x206f9d._0x2555b3,0xb4)]});const _0x1be0c1=normalizeDetail(_0x9ef347[_0x169e76(-0x29f,-0x5e,-0x120,-_0x206f9d._0x418250)]),_0x381969=[_0x169e76(-_0x206f9d._0x4cf3bd,_0x206f9d._0x1916c4,-_0x206f9d._0xc05c86,_0x206f9d._0x426e5a)+_0x9ef347[_0x1ea4ef(0x1ed,_0x206f9d._0x1996ed,0x77,0x1ae)],_0x169e76(0x5b,-_0x206f9d._0x7443c3,_0x206f9d._0x1e6f00,-_0x206f9d._0x28be4b)+_0x51c084,'Size:\x20'+_0x2c9867[_0x169e76(_0x206f9d._0xf873d,-_0x206f9d._0x3ad67a,-0xd2,-_0x206f9d._0x436ad0)]+_0x1ea4ef(_0x206f9d._0x3451f2,0x1c4,0x2a6,0x146)][_0x169e76(-0xaa,-0x1c4,-0x16f,-_0x206f9d._0x3f8226)](_0x1be0c1?[_0x1ea4ef(_0x206f9d._0x509b79,_0x206f9d._0x9f8fbf,0x1c6,_0x206f9d._0x36bd1c)+_0x1be0c1]:[])[_0x169e76(-_0x206f9d._0x4ee399,-_0x206f9d._0xf05c0,-_0x206f9d._0x3caf4c,-_0x206f9d._0x1b9ef3)]('\x0a'),_0x4aacaf=[{'type':_0x1ea4ef(_0x206f9d._0x2b01fd,0x60,0xbe,0x1a4),'source':{'type':_0x1ea4ef(_0x206f9d._0x277b24,_0x206f9d._0x35bef7,0x164,_0x206f9d._0x3ac915),'media_type':_0x51c084,'data':_0x44db20['toString'](_0x169e76(-0xc9,-_0x206f9d._0x1232ff,-0x18a,-_0x206f9d._0x4b919a))}},{'type':_0x1ea4ef(_0x206f9d._0x402cb1,0x32c,0x213,_0x206f9d._0x5aaba4),'text':_0x381969}];yield createToolOutput(_0x381969,{'path':_0x9ef347[_0x169e76(-0x72,-0x1a9,-_0x206f9d._0x3bda83,-0x25a)],'resolvedPath':_0x345a1c,'created':_0x2c9867[_0x1ea4ef(0x265,_0x206f9d._0x626ded,0x40b,_0x206f9d._0x4eca23)][_0x1ea4ef(0x2a3,0x1e8,0x253,0x145)](),'modified':_0x2c9867[_0x169e76(-0x29d,-_0x206f9d._0x358e1d,-0x21a,-0x2b3)]['toISOString'](),'size':_0x2c9867['size'],'mimeType':_0x51c084,'encoding':'base64',..._0x1be0c1?{'detail':_0x1be0c1}:{}},_0x4aacaf);function _0x169e76(_0x4e8c5c,_0x173eed,_0x4b3176,_0x27fc99){return _0x59670f(_0x4e8c5c-0x1aa,_0x4b3176- -_0x17a5c7._0x3ab7d9,_0x4b3176-_0x17a5c7._0x513739,_0x4e8c5c);}return void 0x0;}});}import _0x685532 from'turndown';import{isIP}from'net';var DEFAULT_MAX_REDIRECTS=0x8,REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]),defaultLookup=async _0x54a879=>{const _0x2428c3={_0x4c2c7b:0x3de},_0x2c863e={_0x51faa4:0x7a};function _0x333ca2(_0x47bc2,_0x3c5c47,_0x2b8992,_0xf6c002){return _0x19c96f(_0x47bc2-0x69,_0x3c5c47-_0x2c863e._0x51faa4,_0x2b8992,_0x3c5c47-0x295);}const {lookup:_0x4a952c}=await import(_0x333ca2(_0x2428c3._0x4c2c7b,0x3b4,0x2aa,0x3e4));return _0x4a952c(_0x54a879,{'all':!![],'verbatim':!![]});};function ipv4ToInt(_0x3453c3){const _0x910997={_0x37fcbf:0x24e,_0x15ee02:0x263,_0x39d45c:0x1e3},_0x3488a8={_0x502b0f:0x9,_0x52829a:0x506},_0x26f46d=_0x3453c3['split']('.');if(_0x26f46d[_0x404d1a(_0x910997._0x37fcbf,0x39a,_0x910997._0x15ee02,_0x910997._0x39d45c)]!==0x4)return null;let _0x13e361=0x0;function _0x404d1a(_0x9c34d2,_0x4ce468,_0x33826e,_0x8d6072){return _0x36273c(_0x9c34d2-_0x3488a8._0x502b0f,_0x4ce468-0x186,_0x8d6072,_0x33826e- -_0x3488a8._0x52829a);}for(const _0xecc272 of _0x26f46d){if(!/^\d{1,3}$/['test'](_0xecc272))return null;const _0x4d64f1=Number(_0xecc272);if(_0x4d64f1>0xff)return null;_0x13e361=_0x13e361*0x100+_0x4d64f1;}return _0x13e361>>>0x0;}function isBlockedIpv4(_0x48894e){const _0xa2ce38={_0x5067fb:0x5cd,_0x1a5c31:0x46a,_0x4c645b:0x4d0,_0x33695a:0x469,_0x1375d8:0x19b,_0x42f649:0x160,_0x581002:0x1cb,_0x2f6405:0x369,_0x28062b:0x3a0,_0x5b04d7:0x429,_0x3f4ccf:0x4e8,_0x22034a:0x587,_0x13ccf5:0x2a0,_0x1ff5b8:0x41a,_0x5ba776:0x381,_0x19bb96:0x3d3,_0x5ca187:0x629,_0x4107ed:0x2cd,_0x56310e:0x362,_0x2f7041:0x286,_0x3d948e:0x2f9,_0x2b0985:0x41f,_0x50808d:0x46d,_0x121d1a:0x502,_0x552631:0x5a3,_0x1eabad:0x480},_0x2cefa1={_0x23f657:0x1b0,_0x476d6b:0x126},_0x3c8b36={_0x728063:0x16c,_0x3fc48e:0x103},_0x5070aa=ipv4ToInt(_0x48894e);function _0x2bdc13(_0x384af0,_0xe30903,_0x1137c6,_0x357406){return _0x19c96f(_0x384af0-0x121,_0xe30903-_0x3c8b36._0x728063,_0x1137c6,_0x384af0-_0x3c8b36._0x3fc48e);}if(_0x5070aa===null)return!![];function _0x1f2407(_0x162f49,_0x23e4c9,_0x51a7fb,_0x15ebca){return _0x36273c(_0x162f49-0x181,_0x23e4c9-_0x2cefa1._0x23f657,_0x23e4c9,_0x162f49- -_0x2cefa1._0x476d6b);}const _0x4a34d0=(_0x5994c3,_0x1b8173)=>{const _0x462ade=ipv4ToInt(_0x5994c3);if(_0x462ade===null)return![];const _0x228fab=_0x1b8173===0x0?0x0:0xffffffff<<0x20-_0x1b8173>>>0x0;return(_0x5070aa&_0x228fab)===(_0x462ade&_0x228fab);};return _0x4a34d0(_0x1f2407(_0xa2ce38._0x5067fb,0x458,_0xa2ce38._0x1a5c31,0x74b),0x8)||_0x4a34d0(_0x1f2407(0x4b4,_0xa2ce38._0x4c645b,_0xa2ce38._0x33695a,0x3a7),0x8)||_0x4a34d0(_0x2bdc13(0x1f2,_0xa2ce38._0x1375d8,0xfd,_0xa2ce38._0x42f649),0xa)||_0x4a34d0(_0x2bdc13(0x300,0x2c3,_0xa2ce38._0x581002,_0xa2ce38._0x2f6405),0x8)||_0x4a34d0(_0x1f2407(0x4ed,_0xa2ce38._0x28062b,0x643,_0xa2ce38._0x5b04d7),0x10)||_0x4a34d0(_0x1f2407(_0xa2ce38._0x3f4ccf,0x58b,0x4cf,_0xa2ce38._0x22034a),0xc)||_0x4a34d0(_0x2bdc13(_0xa2ce38._0x13ccf5,_0xa2ce38._0x1ff5b8,_0xa2ce38._0x5ba776,_0xa2ce38._0x19bb96),0x18)||_0x4a34d0(_0x1f2407(_0xa2ce38._0x5ca187,0x4db,0x66c,0x506),0x10)||_0x4a34d0(_0x2bdc13(_0xa2ce38._0x4107ed,_0xa2ce38._0x56310e,_0xa2ce38._0x2f7041,_0xa2ce38._0x3d948e),0xf)||_0x4a34d0(_0x1f2407(_0xa2ce38._0x2b0985,0x331,0x4ef,_0xa2ce38._0x50808d),0x4)||_0x4a34d0(_0x1f2407(0x5db,_0xa2ce38._0x121d1a,_0xa2ce38._0x552631,_0xa2ce38._0x1eabad),0x4);}function expandIpv6(_0xdc8f2a){const _0x3e939e={_0x8873fe:0x1e9,_0x180fad:0x5f,_0x688d64:0xca,_0x3de3c9:0x55,_0x282eec:0x148,_0x95b37c:0x158,_0x59ba63:0xd5,_0x39fc55:0x7,_0x3c6377:0xb1,_0x49ca08:0x1d7,_0x431caa:0x209,_0x3d067a:0x245,_0x41aa31:0xd3,_0xa67a05:0x709,_0x5da1f5:0xf2,_0x25e7f2:0x25,_0x50d328:0x12,_0x52f9e6:0xd9,_0x1551c0:0xa9,_0xed0bfa:0x1e7,_0x511416:0x1ef,_0x524a68:0x1b,_0x63e1b7:0x190,_0x538285:0x170},_0x207a05={_0x3bb327:0x1b5,_0xe0930e:0x83,_0x373247:0x429};let _0x5da6d6=_0xdc8f2a,_0x5546e6;const _0x108f5c=_0x5da6d6[_0x52b1da(_0x3e939e._0x8873fe,-_0x3e939e._0x180fad,_0x3e939e._0x688d64,_0x3e939e._0x3de3c9)](':');_0x5da6d6[_0x52b1da(-0x161,-_0x3e939e._0x282eec,-0x1d7,-_0x3e939e._0x95b37c)](_0x108f5c+0x1)[_0x52b1da(-_0x3e939e._0x59ba63,0x10f,-_0x3e939e._0x39fc55,-0xe0)]('.')&&(_0x5546e6=_0x5da6d6[_0x52b1da(-0x10d,-_0x3e939e._0x3c6377,-_0x3e939e._0x49ca08,-_0x3e939e._0x431caa)](_0x108f5c+0x1),_0x5da6d6=_0x5da6d6[_0x52b1da(-0xdc,-_0x3e939e._0x3d067a,-_0x3e939e._0x49ca08,-0x256)](0x0,_0x108f5c+0x1));const _0x2e03e2=_0x5da6d6[_0x52b1da(-_0x3e939e._0x41aa31,-0x7e,-0x1d6,-0x198)]('::');if(_0x2e03e2[_0x383021(_0x3e939e._0xa67a05,0x7a2,0x660,0x4f5)]>0x2)return null;const _0x5447b8=_0x4fd91d=>_0x4fd91d['split'](':')[_0x383021(0x591,0x565,0x4a8,0x341)](_0x3be3a1=>_0x3be3a1[_0x52b1da(0x245,0x16d,0xd9,0x15c)]>0x0)[_0x52b1da(0xa0,-0x64,-0x99,0x7b)](_0x1f6e73=>Number['parseInt'](_0x1f6e73,0x10)),_0x4ddfbf=_0x2e03e2[0x0]?_0x5447b8(_0x2e03e2[0x0]):[],_0x36916b=_0x2e03e2[_0x52b1da(0x112,_0x3e939e._0x5da1f5,0xd9,-_0x3e939e._0x25e7f2)]===0x2&&_0x2e03e2[0x1]?_0x5447b8(_0x2e03e2[0x1]):[],_0x10b131=[];function _0x52b1da(_0x3afa59,_0x4e1e7b,_0x4a0f9a,_0x33c011){return _0x19c96f(_0x3afa59-0x70,_0x4e1e7b-0x182,_0x4e1e7b,_0x4a0f9a- -0x15e);}function _0x383021(_0x2f9e1a,_0x1344b0,_0x2024bb,_0x32111a){return _0x19c96f(_0x2f9e1a-_0x207a05._0x3bb327,_0x1344b0-_0x207a05._0xe0930e,_0x32111a,_0x2024bb-_0x207a05._0x373247);}if(_0x5546e6){const _0x1537de=ipv4ToInt(_0x5546e6);if(_0x1537de===null)return null;_0x10b131['push'](_0x1537de>>>0x10&0xffff,_0x1537de&0xffff);}const _0x3b182e=[..._0x36916b,..._0x10b131],_0x5e195b=0x8-_0x4ddfbf[_0x52b1da(-_0x3e939e._0x50d328,-0xa0,_0x3e939e._0x52f9e6,-_0x3e939e._0x1551c0)]-_0x3b182e[_0x52b1da(0x15d,-0x82,_0x3e939e._0x52f9e6,0x23a)];if(_0x2e03e2['length']===0x1)return _0x4ddfbf[_0x52b1da(_0x3e939e._0xed0bfa,0x144,0xd9,0xf8)]+_0x3b182e[_0x52b1da(_0x3e939e._0x511416,_0x3e939e._0x524a68,0xd9,0x127)]===0x8?[..._0x4ddfbf,..._0x3b182e]:null;if(_0x5e195b<0x0)return null;return[..._0x4ddfbf,...new Array(_0x5e195b)[_0x52b1da(-_0x3e939e._0x63e1b7,0x7f,-0x8a,-_0x3e939e._0x538285)](0x0),..._0x3b182e];}function isBlockedIpv6(_0x475fe7){const _0x26689b={_0x168f87:0xfc,_0xb6e0a1:0x25f,_0x3764c3:0x191,_0x13407a:0x16d,_0x2bb3de:0x283,_0x332a08:0x376,_0x357d29:0x4b9,_0x170819:0x112},_0x120849={_0x54937a:0x1a8},_0x26eb5d={_0xa4d4a5:0x1c6},_0x1fe197=expandIpv6(_0x475fe7);if(!_0x1fe197||_0x1fe197[_0x207e7f(-0x15c,0xf4,-0x7,-_0x26689b._0x168f87)](_0x47d862=>Number[_0x207e7f(-0xb9,0x1b,-0x5e,-0x134)](_0x47d862)))return!![];const _0x3922b9=_0x1fe197[_0x5829e0(_0x26689b._0xb6e0a1,_0x26689b._0x3764c3,_0x26689b._0x13407a,0x7f)](0x0,0x7)[_0x5829e0(_0x26689b._0x2bb3de,0x37a,_0x26689b._0x332a08,_0x26689b._0x357d29)](_0x2dfb38=>_0x2dfb38===0x0);function _0x207e7f(_0x33d2f8,_0x30f6ea,_0x575e4e,_0x5d7459){return _0x19c96f(_0x33d2f8-0xb6,_0x30f6ea-_0x26eb5d._0xa4d4a5,_0x33d2f8,_0x575e4e- -0x118);}if(_0x3922b9&&(_0x1fe197[0x7]===0x0||_0x1fe197[0x7]===0x1))return!![];if(_0x1fe197['slice'](0x0,0x5)['every'](_0x56d23c=>_0x56d23c===0x0)&&(_0x1fe197[0x5]===0xffff||_0x1fe197[0x5]===0x0)){const _0x573980=(_0x1fe197[0x6]<<0x10|_0x1fe197[0x7])>>>0x0,_0x1a5df0=[_0x573980>>>0x18&0xff,_0x573980>>>0x10&0xff,_0x573980>>>0x8&0xff,_0x573980&0xff][_0x5829e0(0xef,0x216,_0x26689b._0x170819,0x97)]('.');return isBlockedIpv4(_0x1a5df0);}const _0x3a08e4=_0x1fe197[0x0];if((_0x3a08e4&0xff00)===0xfc00||(_0x3a08e4&0xfe00)===0xfc00)return!![];if((_0x3a08e4&0xffc0)===0xfe80)return!![];function _0x5829e0(_0x4041f3,_0x184f2f,_0x1830a6,_0x341c36){return _0x36273c(_0x4041f3-0x87,_0x184f2f-_0x120849._0x54937a,_0x1830a6,_0x184f2f- -0x328);}if((_0x3a08e4&0xff00)===0xff00)return!![];return![];}function isBlockedAddress(_0x36f1a5){const _0x4e2110=isIP(_0x36f1a5);if(_0x4e2110===0x4)return isBlockedIpv4(_0x36f1a5);if(_0x4e2110===0x6)return isBlockedIpv6(_0x36f1a5);return!![];}async function assertPublicUrl(_0x37ba13,_0x264a27={}){const _0x236320={_0x4502b8:0x3fa,_0xc7fd54:0x3c2,_0x10f696:0x48e,_0x1f7e17:0x351,_0x572fcd:0x481,_0x355668:0x5a,_0x352e6b:0x18,_0x5b08f4:0x55,_0x53a84a:0x109,_0x2d1f4b:0x1c7,_0x86289c:0x115,_0x4a59e1:0x24e,_0x59be6e:0x336,_0x465fb5:0x9c,_0x106966:0x341,_0x4acd69:0x2bb,_0x161808:0x234,_0x1f13d0:0x36e,_0x41679b:0x5d9,_0x46c7f0:0x4cc,_0x78470b:0x416,_0xa5b58b:0x16d,_0x597eaa:0x1ff,_0x58c2c7:0x4df,_0x1aadcb:0x490,_0x18f27f:0x46e,_0x450940:0x47d,_0x28b9d3:0xd3,_0x5a7c38:0xd0,_0x54a78a:0x1b1,_0x3c6f49:0x1d4,_0x59e6eb:0x1e2,_0x41c91:0x3de,_0x2e97e9:0x441,_0x2f4396:0x30b,_0x4919f6:0x463,_0x441fbb:0x1cc,_0x124243:0x1df,_0x8290a7:0x284,_0x4d852b:0x19,_0x3b01c6:0x61,_0x52f296:0x90},_0x96fc4={_0x11ef3a:0xcd,_0x59bdeb:0x22c},_0x49aa8b={_0x2e9aaf:0x76b};let _0x32c62f;try{_0x32c62f=new URL(_0x37ba13);}catch{throw new ToolExecutionError(_0x264011(0x479,_0x236320._0x4502b8,0x413,0x2a0),{'url':_0x37ba13});}if(_0x32c62f[_0x264011(0x48a,0x3b9,0x47d,_0x236320._0xc7fd54)]!==_0x264011(_0x236320._0x10f696,_0x236320._0x1f7e17,0x397,_0x236320._0x572fcd)&&_0x32c62f[_0x141ea3(_0x236320._0x355668,0x8a,_0x236320._0x352e6b,-_0x236320._0x5b08f4)]!==_0x141ea3(-0xf0,-0x16a,-_0x236320._0x53a84a,-_0x236320._0x2d1f4b))throw new ToolExecutionError(_0x141ea3(-0xd2,-_0x236320._0x86289c,-0x115,-_0x236320._0x4a59e1),{'url':_0x37ba13});if(_0x32c62f[_0x264011(_0x236320._0x59be6e,0x343,0x1d7,_0x236320._0x465fb5)]||_0x32c62f[_0x264011(_0x236320._0x106966,_0x236320._0x4acd69,_0x236320._0x161808,0xc6)])throw new ToolExecutionError(_0x264011(_0x236320._0x1f13d0,0x2ee,0x224,0x39b),{'url':_0x32c62f[_0x264011(0x499,_0x236320._0x41679b,0x47d,_0x236320._0x46c7f0)]+'//'+_0x32c62f['host']+_0x32c62f[_0x264011(_0x236320._0x78470b,_0x236320._0xa5b58b,0x2b0,_0x236320._0x597eaa)]});const _0x35751c=_0x32c62f['hostname'][_0x264011(0x311,_0x236320._0x58c2c7,0x482,0x3e4)](/^\[|\]$/g,''),_0x1b578e=_0x32c62f[_0x264011(_0x236320._0x1aadcb,_0x236320._0x18f27f,_0x236320._0x450940,0x48d)]+'//'+_0x32c62f[_0x141ea3(_0x236320._0x28b9d3,-_0x236320._0x5a7c38,-0xac,-0x10b)]+_0x32c62f['pathname'];if(isIP(_0x35751c)){if(isBlockedAddress(_0x35751c))throw new ToolExecutionError('Refusing\x20to\x20fetch\x20a\x20non-public\x20address',{'url':_0x1b578e});return _0x32c62f;}const _0x54298e=_0x264a27[_0x264011(0x1e2,0x208,_0x236320._0x54a78a,_0x236320._0x3c6f49)]??defaultLookup;function _0x141ea3(_0x13ba49,_0x94a091,_0x1a4c44,_0x1e6bf3){return _0x36273c(_0x13ba49-0x11b,_0x94a091-0x14e,_0x94a091,_0x1a4c44- -_0x49aa8b._0x2e9aaf);}let _0x523588;try{_0x523588=await _0x54298e(_0x35751c);}catch{throw new ToolExecutionError(_0x264011(0x35d,_0x236320._0x59e6eb,0x286,_0x236320._0x41c91),{'url':_0x1b578e});}if(_0x523588[_0x264011(_0x236320._0x2e97e9,_0x236320._0x2f4396,_0x236320._0x4919f6,0x589)]===0x0)throw new ToolExecutionError(_0x141ea3(-0xed,-_0x236320._0x441fbb,-_0x236320._0x124243,-_0x236320._0x8290a7),{'url':_0x1b578e});function _0x264011(_0x1ab2f4,_0x103db0,_0x19bfc4,_0x5b7d54){return _0x19c96f(_0x1ab2f4-_0x96fc4._0x11ef3a,_0x103db0-0x168,_0x5b7d54,_0x19bfc4-_0x96fc4._0x59bdeb);}for(const {address:_0x38f6ba}of _0x523588){if(isBlockedAddress(_0x38f6ba))throw new ToolExecutionError(_0x141ea3(-_0x236320._0x4d852b,0x11c,-_0x236320._0x3b01c6,-_0x236320._0x52f296),{'url':_0x1b578e});}return _0x32c62f;}async function safeFetch(_0x22481a,_0x57d112={},_0x3e6964={}){const _0x71e6fb={_0x9270f7:0x5d8,_0x34ad83:0x3a4,_0x4d135a:0x51a,_0x59a3df:0x331,_0x38252b:0x48b,_0x3ccef1:0x39c,_0x23679e:0x4d2,_0x43814e:0x63c,_0x5884ee:0x562,_0x5b9659:0x347,_0x30f420:0x22c,_0x30c4b5:0x272,_0x761d1:0x174,_0x313828:0x49d,_0x4c9c59:0x512,_0x38975b:0x3f2,_0x4b7db9:0x400,_0x2e0c3e:0x494,_0x197278:0x561,_0xef6741:0x465,_0x2f5b38:0x19e,_0x2535f1:0x336,_0x554960:0x4e1,_0x464c24:0x4a2,_0x13a02b:0x499},_0x451137={_0x459cc1:0x177},_0x265fdc={_0x360a4d:0x1ce},_0x3693b7=_0x3e6964[_0x188897(0x5e3,0x730,0x66a,_0x71e6fb._0x9270f7)]??fetch,_0x577d41=_0x3e6964[_0x188897(_0x71e6fb._0x34ad83,_0x71e6fb._0x4d135a,_0x71e6fb._0x59a3df,0x393)]??DEFAULT_MAX_REDIRECTS;let _0x3bd025=_0x22481a;function _0x188897(_0x25849b,_0x2f8d87,_0xf68ed7,_0x355c04){return _0x36273c(_0x25849b-_0x265fdc._0x360a4d,_0x2f8d87-0x168,_0x2f8d87,_0x25849b- -0x194);}function _0x4fcd1e(_0x58fae0,_0x5e1d71,_0x122c47,_0xf1277){return _0x19c96f(_0x58fae0-_0x451137._0x459cc1,_0x5e1d71-0x6b,_0x58fae0,_0x122c47-0x2a7);}for(let _0x169529=0x0;;_0x169529+=0x1){const _0x178b1a=await assertPublicUrl(_0x3bd025,_0x3e6964),_0x4c2b62=await _0x3693b7(_0x178b1a[_0x4fcd1e(0x575,0x56f,_0x71e6fb._0x38252b,_0x71e6fb._0x3ccef1)](),{..._0x57d112,'redirect':_0x188897(_0x71e6fb._0x23679e,_0x71e6fb._0x43814e,0x4b0,_0x71e6fb._0x5884ee)}),_0x55164d=_0x4c2b62[_0x4fcd1e(_0x71e6fb._0x5b9659,_0x71e6fb._0x30f420,_0x71e6fb._0x30c4b5,_0x71e6fb._0x761d1)][_0x188897(_0x71e6fb._0x313828,_0x71e6fb._0x4c9c59,_0x71e6fb._0x38975b,_0x71e6fb._0x4b7db9)](_0x188897(0x550,_0x71e6fb._0x2e0c3e,_0x71e6fb._0x197278,_0x71e6fb._0xef6741));if(!REDIRECT_STATUSES['has'](_0x4c2b62[_0x4fcd1e(0xce,_0x71e6fb._0x2f5b38,0x249,_0x71e6fb._0x2535f1)])||!_0x55164d)return _0x4c2b62;if(_0x169529>=_0x577d41)throw new ToolExecutionError(_0x4fcd1e(_0x71e6fb._0x554960,0x5d8,_0x71e6fb._0x464c24,0x3c3),{'url':_0x178b1a[_0x188897(0x582,0x61b,_0x71e6fb._0x13a02b,0x628)]()});_0x3bd025=new URL(_0x55164d,_0x178b1a)['toString']();}}var USER_AGENT='Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_7)\x20AppleWebKit/537.36\x20NuvinBot/1.0',DEFAULT_TIMEOUT_MS2=0xea60;function createTimeoutSignal(_0xf96a33,_0x4110c8){const _0xd7c107={_0x1c9fcb:0x191,_0x11a8bb:0xf7,_0x47674d:0x110,_0x5ef638:0x176,_0x57a3de:0x19c,_0x5d0309:0x2e5,_0x4a8903:0x7b,_0x591639:0x161,_0x300f74:0x164,_0x4dad4b:0x2b,_0x4e85d1:0x1f3,_0x335440:0x154,_0x5b73b4:0x8a},_0x49638c={_0x145b9b:0x1c3,_0x5734fc:0xb9,_0x18a61b:0x2c5,_0x49b721:0x1b1,_0x6a283f:0x2ac},_0x32baf5={_0x1d99d6:0x16a,_0x268d6c:0x1c2,_0xf78621:0xf7},_0x214941={_0x57dcac:0x11a},_0x46859c=new AbortController(),_0x4583ff=setTimeout(()=>_0x46859c['abort'](new Error(_0x1de52b(0x288,0x152,0xbe,0x9d))),_0x4110c8);function _0x5ed875(_0xe4ccbb,_0x103ab4,_0x4f536c,_0x281117){return _0x19c96f(_0xe4ccbb-0xb7,_0x103ab4-_0x214941._0x57dcac,_0x4f536c,_0x281117- -0x73);}const _0x2f0b1c=()=>_0x46859c[_0x1de52b(0x2e3,0x192,0x13f,0x25)](_0xf96a33[_0x1de52b(0x36b,0x2d9,0x42b,0x1f5)]);_0xf96a33[_0x5ed875(_0xd7c107._0x1c9fcb,_0xd7c107._0x11a8bb,_0xd7c107._0x47674d,_0xd7c107._0x5ef638)]?_0x46859c['abort'](_0xf96a33[_0x1de52b(0x1d9,0x2d9,_0xd7c107._0x57a3de,_0xd7c107._0x5d0309)]):_0xf96a33[_0x5ed875(_0xd7c107._0x4a8903,0x2d1,_0xd7c107._0x591639,_0xd7c107._0x300f74)]('abort',_0x2f0b1c,{'once':!![]});function _0x1de52b(_0xd6692d,_0x2f8b6b,_0x4520d3,_0x11985f){return _0x19c96f(_0xd6692d-_0x32baf5._0x1d99d6,_0x2f8b6b-_0x32baf5._0x268d6c,_0x11985f,_0x2f8b6b-_0x32baf5._0xf78621);}return{'signal':_0x46859c[_0x5ed875(-_0xd7c107._0x4dad4b,-_0xd7c107._0x4e85d1,-_0xd7c107._0x335440,-_0xd7c107._0x5b73b4)],'cleanup':()=>{const _0x139518={_0x59bd27:0x1f0,_0x21428f:0x1d9},_0x2cce26={_0x35dcba:0x1a5};clearTimeout(_0x4583ff);function _0x156943(_0x2e12ea,_0x44c90b,_0x294b1d,_0x342a49){return _0x1de52b(_0x2e12ea-_0x2cce26._0x35dcba,_0x2e12ea-0x2c9,_0x294b1d-0x23,_0x44c90b);}function _0x2eb287(_0x4b7fa8,_0x5d535a,_0x484f7c,_0x5ada1f){return _0x5ed875(_0x4b7fa8-0x24,_0x5d535a-_0x139518._0x59bd27,_0x484f7c,_0x5d535a- -_0x139518._0x21428f);}_0xf96a33[_0x2eb287(-0x279,-0x1ce,-_0x49638c._0x145b9b,-_0x49638c._0x5734fc)](_0x2eb287(-_0x49638c._0x18a61b,-_0x49638c._0x49b721,-_0x49638c._0x6a283f,-0xd7),_0x2f0b1c);}};}function createWebFetchTool(_0x5f0bbd={}){const _0x1ff070={_0x3c93c1:0x24b,_0x5097f2:0x2b8,_0x5de510:0x2b8,_0x15370d:0x39d,_0x2df275:0x34b,_0x2b76f9:0x2c8,_0x345a48:0x1d6,_0x279843:0xf1,_0x3600b7:0x78,_0x7480e8:0x190,_0x1c36ef:0x2fe,_0x2c6f56:0x254,_0x4b59a5:0x39a,_0x35a465:0x4d6,_0x30e2c6:0x5f9,_0x5f0f26:0x553,_0x1eeae8:0x400,_0x4c372e:0x481,_0x128821:0x652,_0x147489:0x5c7,_0x4b27d8:0x342,_0x75f2f4:0x196,_0x147469:0x2d2,_0x35683c:0x229,_0x1acc69:0x30a,_0x3e005c:0x278,_0x3b9360:0x2da,_0x2a7a7d:0x2a7},_0x328639={_0x5466c6:0x54,_0x5cff4c:0x72,_0x57fe81:0x168,_0x12c8c5:0x18e,_0x4ced78:0xb2,_0x22d0f2:0x89,_0x134970:0x283,_0xc91b23:0x247,_0x585dbc:0x115,_0x5da49c:0x2ac,_0x15b4c2:0x4b9,_0x41af44:0x4a4,_0x4d54c6:0x4d6,_0x265633:0x461,_0x470ff4:0x1ff,_0x54d7d5:0x20c,_0x1aa147:0x200,_0x4d7088:0x4a,_0x5ad827:0x11c,_0x73c4bd:0x23,_0xe63ca4:0x90,_0x69ba95:0xbd,_0x4169a1:0xd7,_0x1dda56:0x1c7,_0x10cd31:0x3aa,_0x1dc137:0x272,_0x33056c:0x425,_0x183569:0x2a6,_0x3b365a:0x1e,_0x2180ea:0x151,_0x3b095c:0x94,_0x22f611:0xc4,_0x3c45bb:0x26,_0x17d2d3:0x495,_0x2993fd:0x4ba,_0x2ec109:0x117,_0x1f7e61:0x7f,_0x1b354f:0x139,_0x9329e:0x10d,_0x4d375d:0x1f,_0x283349:0xc8,_0x56322a:0x1df,_0x5f515a:0xfc,_0x3ce6f7:0x228,_0x1d334a:0xd4,_0x20bafd:0xe1,_0x2331f6:0x27,_0x4b1ec4:0x2fa,_0x2bd6cd:0x351,_0x2b8144:0x1b5,_0x21b1df:0x136,_0x30c0f2:0x1ce,_0x4d46ab:0x1d4,_0x37fee9:0x250},_0x8d6305={_0x22d58f:0x85,_0x2e39ce:0x39},_0x977556={_0x1fed68:0x5c,_0x3b923e:0x437},_0x35781d={_0x41b3a8:0x178},_0x428642=_0x5f0bbd[_0x4f2eae(_0x1ff070._0x3c93c1,_0x1ff070._0x5097f2,0x14e,0x2ab)]??_0x4f7618(_0x1ff070._0x5de510,0x43c,0x43c,_0x1ff070._0x15370d);function _0x4f7618(_0x580314,_0x1df264,_0x5e27e7,_0x5cb6c1){return _0x36273c(_0x580314-_0x35781d._0x41b3a8,_0x1df264-0x1b7,_0x5e27e7,_0x5cb6c1- -0x156);}const _0x30470c=_0x5f0bbd[_0x4f7618(_0x1ff070._0x2df275,0x293,_0x1ff070._0x2b76f9,0x3ad)]??DEFAULT_TIMEOUT_MS2,_0xa57800=_0x5f0bbd[_0x4f2eae(_0x1ff070._0x345a48,0x1c0,_0x1ff070._0x279843,-_0x1ff070._0x3600b7)],_0x42d0d3=new _0x685532({'headingStyle':_0x4f7618(0x516,0x359,0x250,0x3b9),'codeBlockStyle':_0x4f2eae(_0x1ff070._0x7480e8,_0x1ff070._0x1c36ef,0x307,_0x1ff070._0x2c6f56),'bulletListMarker':'-'});function _0x4f2eae(_0x1765e3,_0x133594,_0x510bdf,_0x501972){return _0x19c96f(_0x1765e3-0x1bf,_0x133594-0x104,_0x1765e3,_0x510bdf-0x16c);}return _0x42d0d3[_0x4f7618(0x633,_0x1ff070._0x4b59a5,0x4eb,_0x1ff070._0x35a465)]([_0x4f2eae(0x255,0x1c6,0x274,0x253),_0x4f7618(_0x1ff070._0x30e2c6,0x641,0x4e2,_0x1ff070._0x5f0f26),_0x4f7618(0x435,0x284,0x4c3,_0x1ff070._0x1eeae8),'iframe','nav','footer',_0x4f7618(_0x1ff070._0x4c372e,_0x1ff070._0x128821,0x717,_0x1ff070._0x147489),_0x4f2eae(_0x1ff070._0x4b27d8,_0x1ff070._0x75f2f4,0x2e9,_0x1ff070._0x147469)]),defineTool({'name':_0x428642,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':_0x4f2eae(0xde,0x285,_0x1ff070._0x35683c,0x2b3),'properties':{'description':{'type':_0x4f2eae(0x3de,_0x1ff070._0x1acc69,_0x1ff070._0x3e005c,_0x1ff070._0x3b9360)},'url':{'type':'string'}},'required':[_0x4f7618(_0x1ff070._0x2a7a7d,0x383,0x532,0x3ea)]},async *'execute'(_0x376a55,_0x4a02fd){const _0x1bc6fd=(await assertPublicUrl(_0x376a55[_0x35182f(0x134,0x32,0x68,-0x4d)],{'lookup':_0xa57800}))['toString']();if(_0x4a02fd[_0x35182f(-0xdf,-_0x328639._0x5466c6,-0x103,-_0x328639._0x5cff4c)][_0x35182f(_0x328639._0x57fe81,0xb5,0x2b,_0x328639._0x12c8c5)])throw new ToolExecutionError(_0x35182f(_0x328639._0x4ced78,-0x85,0x53,_0x328639._0x22d0f2),{'url':_0x1bc6fd});function _0x35182f(_0x9d5137,_0x176fcc,_0x54bf9f,_0x55916e){return _0x4f7618(_0x9d5137-_0x977556._0x1fed68,_0x176fcc-0x70,_0x9d5137,_0x55916e- -_0x977556._0x3b923e);}const _0x22dd6b=createTimeoutSignal(_0x4a02fd[_0x2c5017(0x230,_0x328639._0x134970,0x176,_0x328639._0xc91b23)],_0x30470c);let _0x55ae68='',_0x2c1955=0x0,_0x2f1cff;try{const _0x191e60=await safeFetch(_0x1bc6fd,{'headers':{'User-Agent':USER_AGENT},'signal':_0x22dd6b[_0x2c5017(0x1b7,_0x328639._0x585dbc,_0x328639._0x5da49c,0x247)]},{'lookup':_0xa57800});if(!_0x191e60['ok'])throw new ToolExecutionError(_0x2c5017(_0x328639._0x15b4c2,0x42d,_0x328639._0x41af44,0x43f)+_0x191e60['status']+'\x20'+_0x191e60[_0x2c5017(0x359,_0x328639._0x4d54c6,0x402,_0x328639._0x265633)],{'url':_0x1bc6fd,'statusCode':_0x191e60[_0x2c5017(_0x328639._0x470ff4,0x158,_0x328639._0x54d7d5,_0x328639._0x1aa147)]});_0x55ae68=_0x191e60[_0x35182f(-_0x328639._0x4d7088,-_0x328639._0x5ad827,-_0x328639._0x73c4bd,-_0x328639._0xe63ca4)][_0x35182f(_0x328639._0x69ba95,_0x328639._0x4169a1,_0x328639._0x1dda56,0xa4)](_0x2c5017(_0x328639._0x10cd31,0x13e,0x2df,0x288))??'',_0x2c1955=_0x191e60[_0x2c5017(_0x328639._0x1dc137,0xe8,0xee,0x200)],_0x2f1cff=await _0x191e60[_0x2c5017(0x3c6,0x37f,0x49d,0x487)]();}catch(_0x434d47){if(_0x434d47 instanceof ToolExecutionError)throw _0x434d47;const _0x17b7a3=_0x434d47 instanceof Error?_0x434d47[_0x2c5017(_0x328639._0x33056c,_0x328639._0x183569,0x279,0x312)]:String(_0x434d47);throw new ToolExecutionError(_0x17b7a3,{'url':_0x1bc6fd});}finally{_0x22dd6b[_0x35182f(-0xd,0x250,-_0x328639._0x3b365a,_0x328639._0x2180ea)]();}const _0x2f27ba=new Date()[_0x35182f(-0x156,-_0x328639._0x3b095c,_0x328639._0x22f611,-_0x328639._0x3c45bb)]();function _0x2c5017(_0x514e25,_0x3688c0,_0xfbc519,_0x574615){return _0x4f7618(_0x514e25-_0x8d6305._0x22d58f,_0x3688c0-_0x8d6305._0x2e39ce,_0x514e25,_0x574615- -0x17e);}let _0x58429d,_0x2ecba1;if(_0x55ae68['includes'](_0x2c5017(_0x328639._0x17d2d3,_0x328639._0x2993fd,0x3e1,0x41e)))_0x58429d=_0x35182f(_0x328639._0x2ec109,_0x328639._0x1f7e61,_0x328639._0x1b354f,_0x328639._0x9329e)+_0x2f1cff+'\x0a```',_0x2ecba1=_0x35182f(-0x18d,-0x6e,-_0x328639._0x4d375d,-_0x328639._0x283349);else _0x55ae68[_0x35182f(0x137,0xf5,_0x328639._0x56322a,_0x328639._0x5f515a)](_0x2c5017(0x259,_0x328639._0x3ce6f7,0x3c2,0x377))?(_0x58429d=_0x42d0d3[_0x35182f(-0x6f,-_0x328639._0x1d334a,-_0x328639._0x20bafd,-_0x328639._0x2331f6)](_0x2f1cff),_0x2ecba1=_0x35182f(_0x328639._0x4b1ec4,0xe8,_0x328639._0x2bd6cd,0x212)):(_0x58429d=_0x2f1cff,_0x2ecba1=_0x35182f(_0x328639._0x2b8144,0xda,_0x328639._0x21b1df,_0x328639._0x30c0f2));return yield createToolOutput(_0x58429d,{'url':_0x1bc6fd,'contentType':_0x55ae68,'statusCode':_0x2c1955,'format':_0x2ecba1,'size':_0x2f1cff[_0x35182f(0x17a,_0x328639._0x4d46ab,_0x328639._0x37fee9,0x1dc)],'fetchedAt':_0x2f27ba}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x19c96f(0x173,0x322,0x16f,0x272);function normalizeUrl(_0x14984c){const _0x4d1d6a={_0x462786:0x4e0,_0xde0878:0x2b8,_0x5f37e2:0x463,_0x1a484f:0x421,_0x30daf6:0x51d,_0x1645ca:0x5ef,_0x54e451:0x5a6,_0x3e23ea:0x267,_0x19faba:0x6cc,_0x5c048e:0x690,_0x803133:0x62c,_0x3b93e6:0x149,_0x3d289f:0x1eb,_0x25c9d0:0x209,_0xe3dfb6:0x522,_0x3d1f4a:0x69c,_0x408cd3:0x678},_0x29199d={_0x43af0a:0xb5,_0x390e65:0x135,_0x454fe1:0x9e},_0x4a2024={_0x13ab70:0x12f};function _0x33910b(_0x467536,_0x24e649,_0x5a70e7,_0x243cf7){return _0x19c96f(_0x467536-0x3d,_0x24e649-0x95,_0x467536,_0x5a70e7-_0x4a2024._0x13ab70);}function _0x127344(_0x2e7ad7,_0xd36388,_0x333842,_0x46eeea){return _0x36273c(_0x2e7ad7-_0x29199d._0x43af0a,_0xd36388-_0x29199d._0x390e65,_0x2e7ad7,_0x46eeea- -_0x29199d._0x454fe1);}try{const _0x334cc3=new URL(_0x14984c);for(const _0x53dd73 of[_0x127344(0x5b8,_0x4d1d6a._0x462786,0x446,0x577),_0x33910b(0x4d3,_0x4d1d6a._0xde0878,0x37c,_0x4d1d6a._0x5f37e2),_0x127344(0x623,0x3dc,_0x4d1d6a._0x1a484f,_0x4d1d6a._0x30daf6),_0x33910b(0x3af,0x23c,0x2b8,0x225),_0x127344(_0x4d1d6a._0x1645ca,0x35e,_0x4d1d6a._0x54e451,0x4a6),_0x33910b(0x221,_0x4d1d6a._0x3e23ea,0x16b,0x2b6),'fbclid','mc_cid',_0x127344(0x574,_0x4d1d6a._0x19faba,0x5a6,_0x4d1d6a._0x5c048e)]){_0x334cc3[_0x127344(0x7bd,_0x4d1d6a._0x803133,0x6a0,0x6c2)][_0x33910b(_0x4d1d6a._0x3b93e6,_0x4d1d6a._0x3d289f,_0x4d1d6a._0x25c9d0,0x14c)](_0x53dd73);}return _0x334cc3[_0x127344(0x5ca,_0x4d1d6a._0xe3dfb6,_0x4d1d6a._0x3d1f4a,_0x4d1d6a._0x408cd3)]();}catch{return _0x14984c;}}function cseDateRestrict(_0x2a9754){const _0x56b742={_0x1c317a:0x143,_0x23b220:0x34b,_0x4946ac:0x23e,_0x1846d7:0x2b1,_0x320baa:0x21b},_0x6a4703={_0x17ba06:0xff,_0x4ef575:0x197},_0x4c84aa={_0x3d6778:0x193,_0x2adf75:0x205};if(_0x2a9754<=0x0)return void 0x0;if(_0x2a9754<=0x1e)return'd'+Math[_0x105aa9(_0x56b742._0x1c317a,0x1ea,0x214,0x142)](0x1,Math['floor'](_0x2a9754));function _0x18a240(_0x375cf6,_0x3ee0b4,_0x35e955,_0x35dda9){return _0x19c96f(_0x375cf6-0x1ca,_0x3ee0b4-_0x4c84aa._0x3d6778,_0x35dda9,_0x375cf6-_0x4c84aa._0x2adf75);}if(_0x2a9754<=0x16d)return'm'+Math[_0x18a240(0x2b1,0x1e0,_0x56b742._0x23b220,_0x56b742._0x4946ac)](_0x2a9754/0x1e);function _0x105aa9(_0x47ac5b,_0x264aaa,_0x2808ea,_0x504e01){return _0x36273c(_0x47ac5b-_0x6a4703._0x17ba06,_0x264aaa-_0x6a4703._0x4ef575,_0x2808ea,_0x504e01- -0x53b);}return'y'+Math[_0x18a240(_0x56b742._0x1846d7,_0x56b742._0x320baa,0x16c,0x34a)](_0x2a9754/0x16d);}function addSiteFilters(_0x33cd26,_0x19d4f0){const _0x3aba61={_0x110059:0x27a,_0x51b980:0x2e9,_0x57d4b2:0x3ba,_0x4c94b8:0x745,_0x8773bf:0x682,_0x38aae3:0x743,_0x5776c2:0x2be,_0x37d294:0x1b0,_0x4257cb:0x3c,_0x478ca6:0xf7,_0x8dfc1a:0x81,_0x367852:0x5e1},_0x57da3d={_0x29f64c:0x191},_0x574c46={_0x415bcb:0xd6};function _0x45d897(_0x3bbfaf,_0x347b1b,_0x1766fb,_0x75ba67){return _0x36273c(_0x3bbfaf-0x160,_0x347b1b-_0x574c46._0x415bcb,_0x75ba67,_0x3bbfaf- -0x54);}if(_0x19d4f0[_0x96e80(_0x3aba61._0x110059,_0x3aba61._0x51b980,0x322,_0x3aba61._0x57d4b2)]===0x0)return _0x33cd26[_0x45d897(_0x3aba61._0x4c94b8,_0x3aba61._0x8773bf,0x73a,_0x3aba61._0x38aae3)]();function _0x96e80(_0xa09f4a,_0x502054,_0x388850,_0x2c368f){return _0x19c96f(_0xa09f4a-0x11c,_0x502054-_0x57da3d._0x29f64c,_0x502054,_0x388850-0xeb);}return(_0x33cd26+'\x20('+_0x19d4f0[_0x96e80(_0x3aba61._0x5776c2,0x126,_0x3aba61._0x37d294,0x1b3)](_0x15454c=>'site:'+_0x15454c)[_0x96e80(_0x3aba61._0x4257cb,0x194,_0x3aba61._0x478ca6,-_0x3aba61._0x8dfc1a)](_0x45d897(_0x3aba61._0x367852,0x6af,0x635,0x64a))+')')[_0x45d897(_0x3aba61._0x4c94b8,0x80b,0x8c4,0x660)]();}function normalizeType(_0x897050){const _0x100905={_0x1ae022:0x4c2,_0x1ed60:0x2fa,_0x52e744:0x38e,_0x2de609:0x265,_0x5d9320:0x232,_0x12a11f:0x495,_0x44f615:0x410,_0x47e459:0x436},_0x4f7d0d={_0x596ea7:0x197,_0x9219ae:0xd6},_0x254267={_0x4b47bb:0x15d};function _0x13294f(_0x264ec2,_0x5b9bd4,_0x58b4db,_0x35c6b9){return _0x19c96f(_0x264ec2-0x1b4,_0x5b9bd4-_0x254267._0x4b47bb,_0x264ec2,_0x58b4db-0x34c);}function _0xbbca2b(_0x4e6754,_0xb81cd5,_0x371acb,_0x5198f9){return _0x36273c(_0x4e6754-_0x4f7d0d._0x596ea7,_0xb81cd5-_0x4f7d0d._0x9219ae,_0x371acb,_0x5198f9- -0x3d3);}return _0x897050===_0x13294f(_0x100905._0x1ae022,_0x100905._0x1ed60,_0x100905._0x52e744,_0x100905._0x2de609)?_0x13294f(0x297,_0x100905._0x5d9320,0x38e,_0x100905._0x12a11f):_0x13294f(_0x100905._0x44f615,0x5dd,0x55a,_0x100905._0x47e459);}async function fetchJson(_0x32f939,_0x32358a,_0xa66b82){const _0x1aa441={_0x12164b:0x5,_0x550640:0xd2,_0x5bc81f:0x254,_0x39e77f:0x190,_0x36093d:0x128,_0x10254d:0xf0,_0x238a08:0x1a8,_0x4f7d08:0x144,_0x3ef01d:0x3a3,_0x5e60f6:0x3a1,_0x5b0882:0x115,_0x357d17:0x2b4,_0x2fcbf9:0x10c,_0x2926e7:0x191,_0x12d94a:0xba,_0x22c00e:0x242,_0x3a851c:0x236,_0x4402e6:0x165,_0x1a3c13:0x23a},_0x10307c={_0x4f7685:0x1e4},_0x2a0ce1={_0x10f5ce:0x191,_0x2c0377:0x1cf};function _0x3eb12e(_0x2f1f42,_0x5b41fd,_0x4894bb,_0x25b1c0){return _0x36273c(_0x2f1f42-_0x2a0ce1._0x10f5ce,_0x5b41fd-_0x2a0ce1._0x2c0377,_0x25b1c0,_0x4894bb- -0x379);}function _0x3a41c8(_0x44bf9f,_0x12989f,_0x9e5740,_0x5af3f5){return _0x36273c(_0x44bf9f-0x17a,_0x12989f-_0x10307c._0x4f7685,_0x44bf9f,_0x5af3f5- -0x4ff);}const _0xfc34e4=await fetch(_0x32f939,{'headers':{'User-Agent':USER_AGENT2,'Accept':'application/json',..._0xa66b82?.['headers']},'signal':_0x32358a,..._0xa66b82});if(!_0xfc34e4['ok']){let _0x661cc3,_0x397f62;try{_0x661cc3=await _0xfc34e4['text']();const _0x51dba7=JSON[_0x3a41c8(0x141,0xf7,-0xeb,-_0x1aa441._0x12164b)](_0x661cc3),_0x1149b=typeof _0x51dba7[_0x3a41c8(0xda,0x21d,_0x1aa441._0x550640,0x12c)]===_0x3a41c8(_0x1aa441._0x5bc81f,_0x1aa441._0x39e77f,_0x1aa441._0x36093d,_0x1aa441._0x10254d)?_0x51dba7[_0x3eb12e(0x1b4,0x3c2,0x2b2,_0x1aa441._0x238a08)]['error']:void 0x0;_0x397f62=_0x51dba7['error']?.[_0x3eb12e(_0x1aa441._0x4f7d08,0x31d,0x26d,_0x1aa441._0x3ef01d)]??_0x51dba7[_0x3eb12e(0x34d,_0x1aa441._0x5e60f6,0x234,_0x1aa441._0x5b0882)]?.[_0x3a41c8(_0x1aa441._0x357d17,_0x1aa441._0x2fcbf9,0x1d3,_0x1aa441._0x2926e7)]?.[0x0]?.['message']??_0x1149b;}catch{}const _0x50eed0=_0x397f62?_0x3a41c8(0x13f,0xbd,_0x1aa441._0x12d94a,0x214)+_0xfc34e4['status']+':\x20'+_0x397f62:'HTTP\x20'+_0xfc34e4['status']+'\x20'+_0xfc34e4[_0x3a41c8(0x35c,0x385,_0x1aa441._0x22c00e,_0x1aa441._0x3a851c)];throw new ToolExecutionError(_0x50eed0,{'statusCode':_0xfc34e4[_0x3a41c8(0xa5,0x103,-0xe6,-0x2b)],..._0x661cc3?{'body':_0x661cc3}:{}});}return await _0xfc34e4[_0x3eb12e(_0x1aa441._0x4402e6,0x194,0x14c,_0x1aa441._0x1a3c13)]();}async function hydrateResults(_0x661350,_0x292a81,_0x20058d,_0x5e1108){const _0x596f81={_0x1f5ba2:0x48b,_0x453c03:0x5b1,_0xb88cf2:0x483,_0x1eca61:0x2d,_0x3c3474:0x1b,_0x2b522b:0xc,_0x37a5af:0x288,_0x3309d9:0x27c,_0x19b3e3:0xaf,_0xdea901:0x14a},_0x42e88b={_0x4c3428:0x168,_0x19da35:0xf0,_0x167731:0x11b},_0x32668b={_0x435cc9:0x179,_0x3e9fb3:0x36e,_0x1a64b3:0x398,_0x5dbaa5:0x408,_0x45927f:0x73a,_0x32f492:0x817,_0x538326:0x674,_0x17dfe2:0x866,_0x4fd868:0x647,_0x2ba2f4:0x72b,_0x391fab:0xce,_0x41ffaf:0x124,_0x164dc6:0x247,_0x28414f:0x30c,_0x580823:0x535,_0xf722fa:0x566,_0x5929d8:0x5ae,_0x28a3aa:0x492,_0x2397c0:0x4eb,_0x36d143:0x3d4,_0x30fd2b:0x8a8,_0x42475e:0x1e2,_0x586add:0x3be,_0x2f9876:0x48b,_0x26f8f9:0x4e4,_0x1bce76:0x473,_0x2aeb6b:0x32c,_0xb81c3f:0x37c,_0x22855c:0x376,_0x58cdf7:0x81d,_0x346396:0x6e9,_0x33dae2:0x97,_0xa4cd96:0x177,_0x4159f0:0x38a,_0x5f22be:0x27b,_0x257c8c:0x498,_0x1728d3:0x592,_0x16cc12:0x517,_0x345610:0x72b,_0x2d0d03:0x750,_0x21902f:0xa3,_0x4c13dd:0xbe,_0x45a545:0x167,_0x437ef2:0x248,_0x3b8335:0x1b1,_0xb7614b:0x2dd,_0x136b9c:0x505,_0x3fdf86:0x2a3,_0x39d470:0x404,_0x37684f:0x4f8},_0x2bf97c={_0x33b654:0x18,_0x2991b1:0x1d8},_0x39cbc2=await Promise['all'](_0x661350[_0x13ddb5(_0x596f81._0x1f5ba2,0x454,0x39e,0x374)](0x0,0xa)[_0x13ddb5(_0x596f81._0x453c03,0x5a3,0x4dc,_0x596f81._0xb88cf2)](async _0x1b9b4c=>{const _0x49b744={_0x39bdde:0x9d,_0x594da7:0x465};function _0x1c5c75(_0x484ae7,_0x31da83,_0xfed645,_0x2e76cf){return _0x4c1ff9(_0x484ae7-_0x49b744._0x39bdde,_0xfed645,_0x2e76cf-_0x49b744._0x594da7,_0x2e76cf-0x1b);}function _0x1b0dca(_0x387021,_0x18fd85,_0x271e6b,_0x11ea08){return _0x13ddb5(_0x11ea08,_0x18fd85-_0x2bf97c._0x33b654,_0x387021- -0x1dd,_0x11ea08-_0x2bf97c._0x2991b1);}try{const _0x3a3e81=await safeFetch(_0x1b9b4c[_0x1b0dca(0x248,0x331,_0x32668b._0x435cc9,_0x32668b._0x3e9fb3)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x292a81,'Accept':_0x1b0dca(0x353,_0x32668b._0x1a64b3,0x21f,_0x32668b._0x5dbaa5)},'signal':_0x20058d},{'lookup':_0x5e1108});if(!_0x3a3e81['ok'])return _0x1b9b4c;const _0x24ea7a=await _0x3a3e81[_0x1c5c75(_0x32668b._0x45927f,_0x32668b._0x32f492,0x5f9,0x713)](),_0x42be76=load(_0x24ea7a),_0x593a8b=_0x42be76(_0x1c5c75(0x4c2,0x632,_0x32668b._0x538326,0x620))[_0x1c5c75(0x86c,_0x32668b._0x17dfe2,_0x32668b._0x4fd868,_0x32668b._0x2ba2f4)]('content')||_0x42be76(_0x1b0dca(0x1d1,0x266,_0x32668b._0x391fab,_0x32668b._0x41ffaf))[_0x1b0dca(0x36d,0x43a,_0x32668b._0x164dc6,_0x32668b._0x28414f)]()[_0x1b0dca(0x463,0x52c,0x5ab,0x40c)]()['trim'](),_0x2ba4fe=_0x42be76('meta[name=\x27description\x27]')['attr'](_0x1c5c75(_0x32668b._0x580823,_0x32668b._0xf722fa,_0x32668b._0x5929d8,_0x32668b._0x28a3aa))||_0x42be76(_0x1c5c75(_0x32668b._0x2397c0,0x56d,_0x32668b._0x36d143,0x487))[_0x1c5c75(0x7c7,0x6e4,_0x32668b._0x30fd2b,0x72b)](_0x1b0dca(_0x32668b._0x42475e,0x262,0x182,0x225))||_0x1b9b4c[_0x1b0dca(_0x32668b._0x586add,0x2b6,_0x32668b._0x2f9876,0x487)],_0x514da4=_0x42be76(_0x1c5c75(_0x32668b._0x26f8f9,0x4c3,0x460,0x469))[_0x1b0dca(0x47b,0x5e5,_0x32668b._0x1bce76,0x32f)](_0x1b0dca(_0x32668b._0x42475e,0x25c,0x1f8,_0x32668b._0x2aeb6b))||_0x42be76(_0x1b0dca(_0x32668b._0xb81c3f,0x2be,_0x32668b._0x22855c,0x470))[_0x1c5c75(0x8ab,_0x32668b._0x58cdf7,_0x32668b._0x346396,_0x32668b._0x2ba2f4)](_0x1b0dca(0x1cb,_0x32668b._0x33dae2,_0x32668b._0xa4cd96,0x1f1))||_0x1b9b4c[_0x1b0dca(_0x32668b._0x4159f0,0x3d5,0x3b9,_0x32668b._0x5f22be)],_0x47ed28=_0x42be76(_0x1b0dca(_0x32668b._0x257c8c,0x52a,_0x32668b._0x1728d3,_0x32668b._0x16cc12))[_0x1c5c75(0x77a,0x7aa,0x721,_0x32668b._0x345610)](_0x1c5c75(0x5f8,0x81b,0x6d0,_0x32668b._0x2d0d03));return{..._0x1b9b4c,'title':_0x593a8b||_0x1b9b4c[_0x1b0dca(0x1d1,_0x32668b._0x21902f,_0x32668b._0x4c13dd,_0x32668b._0x45a545)],'snippet':_0x2ba4fe,'url':_0x47ed28?normalizeUrl(new URL(_0x47ed28,_0x1b9b4c[_0x1b0dca(_0x32668b._0x437ef2,_0x32668b._0x3b8335,0x2b2,_0x32668b._0xb7614b)])[_0x1b0dca(0x41e,_0x32668b._0x136b9c,0x421,_0x32668b._0x3fdf86)]()):_0x1b9b4c[_0x1c5c75(0x4d4,_0x32668b._0x39d470,0x4f9,_0x32668b._0x37684f)],'publishedAt':_0x514da4};}catch{return _0x1b9b4c;}}));function _0x4c1ff9(_0x4e8388,_0x4bc7d8,_0x2ec39c,_0x178c5d){return _0x19c96f(_0x4e8388-0xd5,_0x4bc7d8-0x12c,_0x4bc7d8,_0x2ec39c-0x85);}function _0x13ddb5(_0x2e0245,_0xdf426b,_0x164d19,_0xb2365a){return _0x36273c(_0x2e0245-_0x42e88b._0x4c3428,_0xdf426b-_0x42e88b._0x19da35,_0x2e0245,_0x164d19- -_0x42e88b._0x167731);}const _0x3615f2=new Map(_0x661350[_0x4c1ff9(_0x596f81._0x1eca61,_0x596f81._0x3c3474,_0x596f81._0x2b522b,0x46)](0x0,0xa)[_0x4c1ff9(_0x596f81._0x37a5af,0x2c3,0x14a,_0x596f81._0x3309d9)]((_0x5bda81,_0x3b5b41)=>[_0x5bda81[_0x4c1ff9(-0xe1,0x7,0x93,-0x15)],_0x39cbc2[_0x3b5b41]]));return _0x661350[_0x4c1ff9(_0x596f81._0x19b3e3,-0x9,_0x596f81._0xdea901,0x279)](_0x2e33d1=>_0x3615f2[_0x13ddb5(0x5df,0x61a,0x516,0x3e2)](_0x2e33d1['url'])??_0x2e33d1);}function formatResults(_0x37bfd8){const _0x1477d3={_0x454f07:0xef,_0x6a39d1:0x20f,_0x332e22:0x2a3,_0x46be8c:0x14d,_0x5b411c:0x22b},_0x58824e={_0x78566e:0x1b4,_0x1a8e21:0x390,_0x4fb681:0x27a,_0x5b0a5e:0x291,_0x36184e:0x2,_0x44f110:0xf4,_0x60a987:0x75,_0x5b5b4d:0x7d,_0x3d2ddd:0xa3,_0x4c2a85:0x49,_0x12be10:0xe,_0x44faa8:0x41,_0x83e672:0x3a,_0x58d779:0x40,_0x17d6f3:0x241,_0x2dabc6:0x1ff,_0x6c3621:0x12d,_0x4c8080:0xd8,_0x51a431:0x2e0,_0x5c7616:0x21c},_0xcfcfa3={_0x2010da:0xd,_0x510310:0x41};function _0x36a48e(_0x194dbf,_0x282046,_0xd4eceb,_0x44dd94){return _0x19c96f(_0x194dbf-0x73,_0x282046-0x12d,_0x194dbf,_0xd4eceb-0x141);}if(_0x37bfd8['length']===0x0)return'No\x20results\x20found.';function _0x4779e3(_0x495de8,_0x44d60a,_0x576792,_0x2fb335){return _0x36273c(_0x495de8-_0xcfcfa3._0x2010da,_0x44d60a-_0xcfcfa3._0x510310,_0x2fb335,_0x576792- -0x649);}return _0x37bfd8[_0x36a48e(0x13d,_0x1477d3._0x454f07,0x206,_0x1477d3._0x6a39d1)](_0xee7eaf=>{const _0x3b0345={_0x5119f6:0x1ac};function _0x2a080e(_0x31db53,_0x3e3d76,_0x4ddca9,_0x232e97){return _0x36a48e(_0x4ddca9,_0x3e3d76-0xe5,_0x232e97- -0x369,_0x232e97-0x1cf);}const _0x246760=[_0xee7eaf['source'][_0x26d856(-_0x58824e._0x78566e,-0x11d,-0xef,-0x1a5)]+'.\x20'+_0xee7eaf[_0x2a080e(-0x2f8,-_0x58824e._0x1a8e21,-_0x58824e._0x4fb681,-_0x58824e._0x5b0a5e)],_0xee7eaf['url']];if(_0xee7eaf[_0x26d856(-_0x58824e._0x36184e,0x6e,_0x58824e._0x44f110,0x5a)])_0x246760[_0x26d856(_0x58824e._0x60a987,_0x58824e._0x5b5b4d,-_0x58824e._0x3d2ddd,0x1ce)](_0xee7eaf[_0x26d856(0x169,0x6e,-_0x58824e._0x4c2a85,-_0x58824e._0x12be10)]);if(_0xee7eaf[_0x26d856(_0x58824e._0x44faa8,_0x58824e._0x83e672,-0xf0,_0x58824e._0x58d779)])_0x246760['push'](_0x2a080e(-_0x58824e._0x17d6f3,-0x313,-_0x58824e._0x2dabc6,-0x29e)+_0xee7eaf[_0x2a080e(0x10,-_0x58824e._0x6c3621,-0xcd,-_0x58824e._0x4c8080)]);function _0x26d856(_0x7f9986,_0x18edc8,_0x37cb42,_0x183e1b){return _0x36a48e(_0x7f9986,_0x18edc8-_0x3b0345._0x5119f6,_0x18edc8- -0x257,_0x183e1b-0x128);}return _0x246760[_0x2a080e(-0x376,-0x33d,-_0x58824e._0x51a431,-_0x58824e._0x5c7616)]('\x0a');})[_0x36a48e(_0x1477d3._0x332e22,0x227,_0x1477d3._0x46be8c,_0x1477d3._0x5b411c)]('\x0a\x0a');}async function searchOllama(_0x46fb7e,_0x193a32,_0x4b23d7){const _0x4324ad={_0x1497b8:0x6a7,_0x58b988:0x766,_0x565acd:0x5d3,_0x27ecad:0x726,_0x5346be:0x3a,_0x4a0257:0x1f2,_0x17d97c:0x163,_0x3c89f9:0x25e,_0x2a6209:0x20c,_0x74d11c:0xad,_0xf5deb6:0x7f,_0x31d997:0x599,_0x36a93f:0x482,_0x3a64d4:0x578,_0x2c3fc3:0x352,_0x438951:0x1eb,_0x259916:0x58a,_0x3fa88d:0x5b1},_0x2f2543={_0x4335c0:0x6,_0x473432:0x117,_0x51d9bb:0xab,_0x27d7d7:0x68,_0x5ccca8:0x20a,_0x164226:0x291,_0x3dc80d:0x18e,_0xb7d56b:0x51,_0x4b5719:0x89,_0x276b08:0x42d,_0x48fc52:0x4c6,_0x1cfc79:0x57d,_0x405fc0:0x622},_0x36ab04={_0x3fc297:0xea,_0x16d101:0x46,_0xc77377:0x464},_0x20a386={_0x11c097:0x50},_0x1aa791=Math['max'](0x1,Math['min'](0xa,_0x193a32[_0x24280a(_0x4324ad._0x1497b8,_0x4324ad._0x58b988,_0x4324ad._0x565acd,_0x4324ad._0x27ecad)])),_0x312edf=addSiteFilters(_0x193a32[_0xb39be2(_0x4324ad._0x5346be,0x103,_0x4324ad._0x4a0257,_0x4324ad._0x17d97c)],_0x193a32[_0xb39be2(0x258,0x115,_0x4324ad._0x3c89f9,_0x4324ad._0x2a6209)]);function _0x24280a(_0x42719,_0x568096,_0x1e2594,_0x2bcba7){return _0x36273c(_0x42719-_0x20a386._0x11c097,_0x568096-0xac,_0x1e2594,_0x2bcba7- -0x46);}const _0x146b86=await fetchJson('https://ollama.com/api/web_search',_0x4b23d7,{'method':'POST','headers':{'Authorization':_0xb39be2(0xdd,0x2d,-_0x4324ad._0x74d11c,_0x4324ad._0xf5deb6)+_0x46fb7e[_0x24280a(_0x4324ad._0x31d997,0x56c,_0x4324ad._0x36a93f,_0x4324ad._0x3a64d4)]},'body':JSON['stringify']({'query':_0x312edf,'max_results':_0x1aa791})}),_0x30c658=_0x146b86[_0xb39be2(0x353,0x270,_0x4324ad._0x2c3fc3,_0x4324ad._0x438951)]??[];function _0xb39be2(_0x3afa91,_0x3adbbf,_0x1a8a06,_0x2c2a9f){return _0x36273c(_0x3afa91-_0x36ab04._0x3fc297,_0x3adbbf-_0x36ab04._0x16d101,_0x1a8a06,_0x2c2a9f- -_0x36ab04._0xc77377);}const _0x4d6a5d=_0x30c658[_0x24280a(0x64c,0x665,_0x4324ad._0x259916,_0x4324ad._0x3fa88d)]((_0x574195,_0x55614c)=>{const _0x7a959e={_0x57f980:0xda,_0x478ba9:0x611},_0x2cb74a={_0x38af26:0xb3};function _0x10b16a(_0x4f15de,_0x10e1c7,_0x1526bd,_0x491ec0){return _0xb39be2(_0x4f15de-0x45,_0x10e1c7-_0x2cb74a._0x38af26,_0x491ec0,_0x1526bd-0x450);}const _0x27ca41=_0x574195[_0x4f60c3(-0x12d,0x18,_0x2f2543._0x4335c0,-_0x2f2543._0x473432)]||'';function _0x4f60c3(_0x52c973,_0x540cf2,_0x2067c1,_0x33e13c){return _0x24280a(_0x52c973-0x130,_0x540cf2-_0x7a959e._0x57f980,_0x540cf2,_0x33e13c- -_0x7a959e._0x478ba9);}let _0x2c5c85;try{_0x2c5c85=new URL(_0x27ca41)[_0x4f60c3(_0x2f2543._0x51d9bb,0x18,-0xc1,_0x2f2543._0x27d7d7)];}catch{_0x2c5c85=null;}return{'title':_0x574195[_0x4f60c3(-_0x2f2543._0x5ccca8,-_0x2f2543._0x164226,-0x1c6,-_0x2f2543._0x3dc80d)]||_0x4f60c3(-_0x2f2543._0xb7d56b,-0x16b,-0x11c,-_0x2f2543._0x4b5719),'url':normalizeUrl(_0x27ca41),'snippet':_0x574195[_0x10b16a(0x54b,_0x2f2543._0x276b08,_0x2f2543._0x48fc52,_0x2f2543._0x1cfc79)]??null,'displayUrl':_0x2c5c85,'favicon':null,'publishedAt':null,'source':{'engine':_0x10b16a(0x6e1,0x65a,0x610,_0x2f2543._0x405fc0),'rank':_0x55614c+0x1}};});return{'items':_0x4d6a5d['slice'](0x0,_0x1aa791),'engine':'ollama'};}async function searchTavily(_0x4d7650,_0xb17a79,_0x241ece){const _0x523bcb={_0x5237e9:0x119,_0x340bd:0x1cd,_0x36099d:0xb5,_0x57fce1:0x71a,_0x18a62e:0x47e,_0xdd0b4e:0x5e4,_0x4441e9:0x31b,_0x20f7aa:0x429,_0x20dea0:0x43f,_0x2bd5be:0x1b,_0x39bdb9:0xf7,_0x10f47e:0x733,_0x19cb3e:0x539,_0x443f93:0x10c,_0x2424f4:0x116,_0x52ebf5:0x205,_0x185b5d:0x1eb,_0x185531:0x3f2,_0x567d55:0x3c0,_0x4fe9ec:0x4bb,_0x5493c5:0x10c,_0x19601e:0x46a,_0x3cd98f:0x252,_0x470329:0x81,_0x8b6a3e:0x6a1,_0x1e6f78:0x18e,_0x2c8616:0x1bf,_0x3ca240:0x213,_0x3c67b5:0x464,_0x5db13d:0x475,_0x447b72:0x49c,_0x280185:0x56b,_0x1f2dd1:0x46f,_0x454599:0xab,_0x575944:0xbc,_0x2d2206:0x215},_0xdc2039={_0x1699cf:0x101,_0x242360:0x10b,_0x186c6e:0xd,_0x3e5729:0x7e,_0x417e66:0x1b8,_0x423ef6:0xaf,_0x1a067c:0x6b,_0x31f760:0xee,_0x5c0500:0xb2,_0x38f264:0x89,_0x39c2cc:0xe6,_0x101e71:0xcd,_0xc57c59:0x192,_0x28dcd6:0x214},_0xd586fc={_0x1aa0ec:0x63,_0x5dcc0e:0x110},_0x2dde4e={_0x39fe77:0x1e9,_0x54672b:0x6e,_0x291655:0x564},_0x991c51={_0x192fb2:0x178,_0x3c5578:0x3aa};function _0x36646a(_0x40cbf7,_0x493a03,_0x5b7b16,_0x3c9326){return _0x19c96f(_0x40cbf7-_0x991c51._0x192fb2,_0x493a03-0xb9,_0x40cbf7,_0x3c9326-_0x991c51._0x3c5578);}const _0x43c2c5=Math[_0x44aed9(_0x523bcb._0x5237e9,0x221,_0x523bcb._0x340bd,0x93)](0x1,Math[_0x44aed9(-0xaf,-_0x523bcb._0x36099d,-0x1d0,-0x9c)](0x14,_0xb17a79[_0x36646a(0x4fa,_0x523bcb._0x57fce1,_0x523bcb._0x18a62e,_0x523bcb._0xdd0b4e)])),_0x2b679e={'query':_0xb17a79[_0x36646a(0x43b,_0x523bcb._0x4441e9,_0x523bcb._0x20f7aa,_0x523bcb._0x20dea0)],'max_results':_0x43c2c5,'search_depth':_0x4d7650[_0x44aed9(_0x523bcb._0x2bd5be,0x8a,-0x68,-_0x523bcb._0x39bdb9)]??'basic','topic':_0x4d7650[_0x36646a(0x4f9,0x594,_0x523bcb._0x10f47e,0x5f0)]??_0x36646a(0x5e9,0x4c3,_0x523bcb._0x19cb3e,0x549)};if(_0xb17a79[_0x44aed9(_0x523bcb._0x443f93,_0x523bcb._0x2424f4,0x110,0x68)][_0x44aed9(_0x523bcb._0x52ebf5,0x323,0x162,_0x523bcb._0x185b5d)]>0x0)_0x2b679e[_0x36646a(_0x523bcb._0x185531,_0x523bcb._0x567d55,_0x523bcb._0x4fe9ec,0x51d)]=_0xb17a79[_0x44aed9(_0x523bcb._0x5493c5,0x178,0x265,0x281)];const _0x5bc7ea=await fetchJson(_0x36646a(_0x523bcb._0x19601e,_0x523bcb._0x3cd98f,0x352,0x3cf),_0x241ece,{'method':_0x36646a(0x51c,0x3a1,0x304,0x3f8),'headers':{'Authorization':_0x44aed9(-0x81,_0x523bcb._0x470329,0x95,-0xbc)+_0x4d7650[_0x36646a(0x491,_0x523bcb._0x8b6a3e,0x6c4,0x5cf)],'Content-Type':_0x44aed9(_0x523bcb._0x1e6f78,0x1ab,_0x523bcb._0x2c8616,_0x523bcb._0x3ca240)},'body':JSON['stringify'](_0x2b679e)});function _0x44aed9(_0x2e4439,_0x472cce,_0x411f03,_0x23e0ad){return _0x36273c(_0x2e4439-_0x2dde4e._0x39fe77,_0x472cce-_0x2dde4e._0x54672b,_0x411f03,_0x2e4439- -_0x2dde4e._0x291655);}const _0x43e199=_0x5bc7ea[_0x36646a(_0x523bcb._0x3c67b5,0x46f,_0x523bcb._0x5db13d,0x4c7)]??[],_0x5c06f1=_0x43e199[_0x36646a(_0x523bcb._0x447b72,0x44b,_0x523bcb._0x280185,_0x523bcb._0x1f2dd1)]((_0x314512,_0x37d1e8)=>{const _0x28b33b={_0x5277dc:0x3db};function _0x1fb65b(_0x304319,_0x609893,_0x2a775d,_0x2b624e){return _0x36646a(_0x304319,_0x609893-_0xd586fc._0x1aa0ec,_0x2a775d-_0xd586fc._0x5dcc0e,_0x2b624e- -0x3bf);}const _0x25e499=_0x314512[_0x19e321(-0xde,-_0xdc2039._0x1699cf,-0x23,-_0xdc2039._0x242360)]||'';let _0x27649d;try{_0x27649d=new URL(_0x25e499)['host'];}catch{_0x27649d=null;}function _0x19e321(_0x5d5627,_0x43053b,_0x3950e8,_0xcecf4b){return _0x36646a(_0xcecf4b,_0x43053b-0xb5,_0x3950e8-0xb1,_0x3950e8- -_0x28b33b._0x5277dc);}return{'title':_0x314512[_0x1fb65b(0x101,0x68,-_0xdc2039._0x186c6e,-_0xdc2039._0x3e5729)]||_0x19e321(_0xdc2039._0x417e66,_0xdc2039._0x423ef6,_0xdc2039._0x1a067c,_0xdc2039._0x31f760),'url':normalizeUrl(_0x25e499),'snippet':_0x314512[_0x19e321(0x40,_0xdc2039._0x5c0500,-_0xdc2039._0x38f264,_0xdc2039._0x39c2cc)]??null,'displayUrl':_0x27649d,'favicon':null,'publishedAt':null,'source':{'engine':_0x1fb65b(_0xdc2039._0x101e71,_0xdc2039._0xc57c59,_0xdc2039._0x28dcd6,0x19e),'rank':_0x37d1e8+0x1}};});return{'items':_0x5c06f1[_0x44aed9(-_0x523bcb._0x454599,0xc2,_0x523bcb._0x575944,-_0x523bcb._0x2d2206)](0x0,_0x43c2c5),'engine':'tavily'};}async function searchGoogleCse(_0x43d297,_0x2e4477,_0x595ec3){const _0x1ad8ac={_0x2698e6:0x265,_0xcc397c:0x37a,_0x328e21:0x506,_0x2a75d8:0x252,_0xd9ff9c:0x456,_0x5e3af0:0x396,_0x5be0fd:0x168,_0x278c57:0x5f7,_0x189fef:0x48c,_0x306d22:0x389,_0x383ea6:0x468,_0x165136:0x291,_0x2e649c:0x213,_0x441338:0x570,_0x24ebcf:0x62b,_0x4e0ac7:0x402,_0x164778:0x436,_0x59f70d:0x3c3,_0x4709c6:0x36e,_0x1bab0a:0xe9,_0x9786a1:0x2fa,_0x5b7542:0x225,_0x548e16:0x4d4,_0x397f56:0x393,_0x214da7:0x41d,_0x373379:0x559,_0x39f55e:0x484,_0x480607:0x4d4,_0x425c36:0x5b3,_0x9b89b9:0x477,_0x2d53d7:0x548,_0x24ab75:0x4ac,_0x4882bf:0x62e,_0x5a0927:0xa3,_0x5180f2:0x223,_0x34c4d5:0x548,_0x4f640f:0x42c,_0x25db78:0x16b,_0x5cc9d6:0x173,_0xbd1b31:0x161,_0x648f58:0x718,_0x131da1:0x625,_0x575942:0x6de,_0x1b01f4:0x1,_0x3691fb:0x148,_0x9a71a:0xee,_0x17f2ca:0x205,_0x34d24d:0x98,_0x28565c:0x84,_0x536c1b:0x4b,_0x4993c8:0xd6,_0x3b8791:0x624,_0x2f9b94:0x775,_0x647427:0x649,_0x826566:0x67c,_0x5b345a:0x270,_0x1853b6:0xef,_0x55be18:0x5df,_0x3e9128:0x70f,_0x27513e:0x148,_0x5d6522:0x5cb,_0x581ea2:0x615,_0x3ac0a5:0x6a,_0x1292de:0x155,_0x138976:0x1bc,_0x1d7db6:0x727,_0x37ecfd:0x5ec,_0x2e2598:0x180,_0x1d5f4b:0x8b,_0x464612:0x2c,_0x2fd3eb:0x2d,_0x129308:0x482,_0x3f586f:0x5db,_0x34dc40:0x582,_0x55d7f8:0x74b,_0x537ccf:0x5e5,_0x54f5f7:0x6a2,_0xd23add:0x221,_0x436d28:0x162,_0x5a6149:0x64b,_0x4a7bb2:0x6a4,_0x528f3a:0x5d5,_0x289deb:0x68c,_0x41fddb:0x150,_0x10f83f:0x1f9,_0x286626:0x57,_0x531789:0x93,_0x51dc1c:0x17b,_0x39d930:0x1b9,_0x3fdbc7:0x435,_0x5cffd7:0x7e,_0xc74c02:0xfa,_0x4a75a:0x8b,_0x56d471:0x20,_0x36e925:0x184,_0x58d3c1:0x58a,_0x4366e8:0x40c,_0x21b543:0x33,_0x142c8b:0x6a1,_0x1ea8a5:0x5e1,_0x1e9005:0x6a6,_0x171756:0x61f,_0x3004de:0x76f,_0xb216d4:0x2e,_0xcf6776:0x8c},_0x18e936={_0x50f8d0:0x89,_0x7ef962:0x53b},_0xbff78a={_0x1df3e8:0x13a,_0x2abd66:0x13b},_0x132173=Math['max'](0x1,Math[_0x480821(_0x1ad8ac._0x2698e6,_0x1ad8ac._0xcc397c,0x2c8,0x3dd)](0x32,_0x2e4477[_0x480821(0x514,0x631,_0x1ad8ac._0x328e21,0x77b)]));if(_0x2e4477[_0x1fbed4(0x1ea,0x58,_0x1ad8ac._0x2a75d8,0x170)]+_0x132173>0x64)throw new ToolExecutionError(_0x480821(0x540,0x517,_0x1ad8ac._0xd9ff9c,_0x1ad8ac._0x5e3af0),{'offset':_0x2e4477[_0x480821(0x5f6,0x570,0x67f,0x692)],'count':_0x132173,'maxResults':0x64});const _0x2f3752=cseDateRestrict(_0x2e4477[_0x1fbed4(0x3e,_0x1ad8ac._0x5be0fd,0x3b,0xd5)]),_0x4204ed=addSiteFilters(_0x2e4477[_0x480821(_0x1ad8ac._0x278c57,_0x1ad8ac._0x189fef,_0x1ad8ac._0x306d22,_0x1ad8ac._0x383ea6)],_0x2e4477[_0x1fbed4(_0x1ad8ac._0x165136,_0x1ad8ac._0x2e649c,0x129,0x135)]);let _0x38e63d=0x0,_0x85374c=_0x2e4477[_0x480821(0x41c,_0x1ad8ac._0x441338,_0x1ad8ac._0x24ebcf,0x5ff)]+0x1;function _0x480821(_0x454997,_0x4d3daa,_0x5ecbb,_0x258112){return _0x36273c(_0x454997-0x1b9,_0x4d3daa-_0xbff78a._0x1df3e8,_0x454997,_0x4d3daa- -_0xbff78a._0x2abd66);}const _0x4a9aa7=[];while(_0x38e63d<_0x132173){const _0xeccf99=Math['min'](0xa,_0x132173-_0x38e63d),_0x1b4935=new URL(_0x480821(0x3a1,_0x1ad8ac._0x4e0ac7,_0x1ad8ac._0x164778,_0x1ad8ac._0x59f70d));_0x1b4935[_0x1fbed4(_0x1ad8ac._0x4709c6,_0x1ad8ac._0x1bab0a,_0x1ad8ac._0x9786a1,_0x1ad8ac._0x5b7542)]['set'](_0x480821(0x4f1,_0x1ad8ac._0x548e16,_0x1ad8ac._0x397f56,_0x1ad8ac._0x214da7),_0x43d297[_0x480821(_0x1ad8ac._0x373379,_0x1ad8ac._0x39f55e,0x422,0x5fe)]),_0x1b4935[_0x480821(_0x1ad8ac._0x480607,0x625,_0x1ad8ac._0x425c36,0x74b)]['set']('cx',_0x43d297[_0x1fbed4(0x244,0x37e,0x1c3,0x202)]),_0x1b4935[_0x1fbed4(0x31d,0x37c,0x24b,0x225)][_0x480821(_0x1ad8ac._0x9b89b9,_0x1ad8ac._0x2d53d7,_0x1ad8ac._0x24ab75,_0x1ad8ac._0x4882bf)]('q',_0x4204ed),_0x1b4935[_0x1fbed4(_0x1ad8ac._0x5a0927,_0x1ad8ac._0x5180f2,0x1b2,_0x1ad8ac._0x5b7542)][_0x480821(0x446,_0x1ad8ac._0x34c4d5,0x446,_0x1ad8ac._0x4f640f)](_0x1fbed4(_0x1ad8ac._0x25db78,_0x1ad8ac._0x5cc9d6,-_0x1ad8ac._0xbd1b31,0x1),String(_0xeccf99)),_0x1b4935[_0x480821(_0x1ad8ac._0x648f58,_0x1ad8ac._0x131da1,0x6fe,_0x1ad8ac._0x575942)][_0x1fbed4(-_0x1ad8ac._0x1b01f4,0x27f,0x133,_0x1ad8ac._0x3691fb)](_0x1fbed4(_0x1ad8ac._0x9a71a,_0x1ad8ac._0x17f2ca,0x1ec,_0x1ad8ac._0x34d24d),String(_0x85374c)),_0x1b4935['searchParams']['set'](_0x1fbed4(0x4e,-0x61,_0x1ad8ac._0x28565c,0xdf),_0x2e4477[_0x1fbed4(-_0x1ad8ac._0x536c1b,-0x31,_0x1ad8ac._0x4993c8,0xdf)]?_0x480821(0x4fc,0x5be,_0x1ad8ac._0x3b8791,0x6f2):_0x480821(_0x1ad8ac._0x2f9b94,0x603,_0x1ad8ac._0x647427,_0x1ad8ac._0x826566));_0x2e4477[_0x1fbed4(0x59,0x2e,_0x1ad8ac._0x5b345a,_0x1ad8ac._0x1853b6)]&&(_0x1b4935[_0x480821(_0x1ad8ac._0x55be18,0x625,0x4fd,_0x1ad8ac._0x3e9128)][_0x1fbed4(0x1aa,0x16a,0x14d,_0x1ad8ac._0x27513e)]('hl',_0x2e4477['lang']),_0x1b4935['searchParams'][_0x480821(_0x1ad8ac._0x5d6522,0x548,_0x1ad8ac._0x581ea2,0x691)]('lr',_0x1fbed4(-0x1c4,-0x11f,0x2f,-_0x1ad8ac._0x3ac0a5)+_0x2e4477['lang']));if(_0x2e4477['region'])_0x1b4935[_0x1fbed4(0x14c,0x33b,0x29d,0x225)][_0x1fbed4(0xc,0xc3,0x24d,0x148)]('gl',_0x2e4477['region'][_0x1fbed4(_0x1ad8ac._0x1292de,0x282,0x2ec,_0x1ad8ac._0x138976)]());if(_0x2e4477[_0x480821(_0x1ad8ac._0x1d7db6,0x628,0x5ec,0x72e)]==='images')_0x1b4935['searchParams'][_0x480821(0x52f,0x548,0x507,0x576)](_0x480821(_0x1ad8ac._0x37ecfd,0x5bb,0x5d2,0x498),_0x1fbed4(_0x1ad8ac._0x2e2598,-0x7a,-0x61,_0x1ad8ac._0x1d5f4b));if(_0x2f3752)_0x1b4935['searchParams']['set'](_0x1fbed4(0x4,_0x1ad8ac._0x464612,_0x1ad8ac._0x2fd3eb,0xf9),_0x2f3752);const _0xe8e067=await fetchJson(_0x1b4935[_0x480821(_0x1ad8ac._0x129308,_0x1ad8ac._0x3f586f,0x70c,0x73f)](),_0x595ec3),_0x106f31=_0xe8e067[_0x480821(0x571,0x5fc,_0x1ad8ac._0x34dc40,0x72c)]??[];if(_0x106f31[_0x480821(_0x1ad8ac._0x55d7f8,0x62e,_0x1ad8ac._0x537ccf,_0x1ad8ac._0x54f5f7)]===0x0)break;const _0x5e93bd=_0x38e63d;for(let _0x124684=0x0;_0x124684<_0x106f31[_0x1fbed4(_0x1ad8ac._0xd23add,0x176,_0x1ad8ac._0x436d28,0x22e)];_0x124684++){const _0x6f98dd=_0x106f31[_0x124684];if(!_0x6f98dd)continue;const _0x3b5895=_0x6f98dd[_0x480821(0x6e1,_0x1ad8ac._0x5a6149,0x564,0x518)]||_0x6f98dd['image']?.[_0x480821(_0x1ad8ac._0x4a7bb2,_0x1ad8ac._0x528f3a,_0x1ad8ac._0x289deb,0x58e)]||'',_0x5ca8d2=_0x6f98dd['title']||_0x6f98dd[_0x1fbed4(0x48,0x182,_0x1ad8ac._0x41fddb,0x8b)]?.[_0x1fbed4(-0x128,0x6b,-0x41,-0x72)]||_0x1fbed4(-0x30,_0x1ad8ac._0x10f83f,-_0x1ad8ac._0x286626,_0x1ad8ac._0x531789),_0x216d40=_0x6f98dd[_0x1fbed4(0x24e,0x32,0x187,_0x1ad8ac._0x51dc1c)]||_0x6f98dd[_0x1fbed4(_0x1ad8ac._0x39d930,-0xec,0x1f0,0x96)]?.['replace'](/<[^>]+>/g,''),_0x5080ff=_0x6f98dd[_0x480821(0x381,0x4eb,0x605,_0x1ad8ac._0x3fdbc7)]?.[_0x1fbed4(-_0x1ad8ac._0x5cffd7,_0x1ad8ac._0xc74c02,_0x1ad8ac._0x4a75a,0x50)]?.[0x0]??{};let _0x46d710;try{_0x46d710=new URL(_0x3b5895)[_0x1fbed4(0xa7,0x1b2,_0x1ad8ac._0x56d471,_0x1ad8ac._0x36e925)];}catch{_0x46d710=null;}_0x4a9aa7[_0x480821(0x532,_0x1ad8ac._0x58d3c1,0x67f,_0x1ad8ac._0x4366e8)]({'title':_0x5ca8d2,'url':normalizeUrl(_0x3b5895),'snippet':_0x216d40??null,'displayUrl':_0x46d710,'favicon':null,'publishedAt':_0x5080ff[_0x1fbed4(0xcc,_0x1ad8ac._0x21b543,0x1df,0xa5)]||_0x5080ff[_0x480821(_0x1ad8ac._0x142c8b,_0x1ad8ac._0x1ea8a5,0x4c6,_0x1ad8ac._0x1e9005)]||null,'source':{'engine':_0x480821(0x2fc,0x3db,0x3a3,0x372),'rank':_0x5e93bd+_0x124684+0x1}});}_0x38e63d+=_0x106f31[_0x480821(0x5c2,0x62e,0x519,0x682)],_0x85374c+=_0x106f31[_0x480821(0x546,0x62e,_0x1ad8ac._0x171756,_0x1ad8ac._0x3004de)];if(_0x106f31['length']<_0xeccf99)break;}function _0x1fbed4(_0x94b846,_0x4e2222,_0x432ba4,_0x41364c){return _0x36273c(_0x94b846-0xe,_0x4e2222-_0x18e936._0x50f8d0,_0x432ba4,_0x41364c- -_0x18e936._0x7ef962);}return _0x4a9aa7[_0x1fbed4(-_0x1ad8ac._0xb216d4,-0x17b,-_0x1ad8ac._0xcf6776,-0x82)](0x0,_0x132173);}function isGoogleCseEngine(_0xe1e3fa){const _0x26a7ee={_0x492466:0x65f,_0x588eb9:0x62c},_0xd9bfbf={_0x35c905:0x149,_0x589c61:0x171,_0x3b9811:0x17};function _0x587372(_0x4553dc,_0x46ac86,_0x5c05aa,_0xddbafc){return _0x36273c(_0x4553dc-_0xd9bfbf._0x35c905,_0x46ac86-_0xd9bfbf._0x589c61,_0xddbafc,_0x5c05aa-_0xd9bfbf._0x3b9811);}return _0x587372(0x65f,_0x26a7ee._0x492466,0x5d6,_0x26a7ee._0x588eb9)in _0xe1e3fa;}function isOllamaEngine(_0x4312d5){const _0x4e69ae={_0x23d719:0x142};function _0x15a9d2(_0x29904c,_0x5eda96,_0x3db7a6,_0x5b9e55){return _0x19c96f(_0x29904c-_0x4e69ae._0x23d719,_0x5eda96-0x2a,_0x5b9e55,_0x5eda96-0x505);}return _0x15a9d2(0x4ea,0x591,0x495,0x6d0)in _0x4312d5;}function isTavilyEngine(_0x87af25){const _0x4764df={_0x18105c:0x120,_0x366921:0xc9,_0x4595fc:0x2d};function _0x5eef7b(_0x380861,_0x4155a8,_0x453bdc,_0x5cff2a){return _0x36273c(_0x380861-_0x4764df._0x18105c,_0x4155a8-_0x4764df._0x366921,_0x4155a8,_0x5cff2a- -_0x4764df._0x4595fc);}return _0x5eef7b(0x7ac,0x5dc,0x7a0,0x72a)in _0x87af25;}function createWebSearchTool(_0x354540){const _0x5e16ec={_0x290712:0x30d,_0x116b8c:0x2e6,_0x12c4a8:0x3bb,_0x2e46fd:0x4bd,_0x24f9a2:0x53f,_0x278dac:0x3e8,_0x1eaf0e:0x417,_0x51f98e:0x126,_0x53c3fd:0x281,_0xe5e3a5:0x30e,_0x716506:0x314,_0x41cb12:0x3d6,_0x2e8d0a:0x139,_0x2474fa:0x43c,_0x1939cc:0x474,_0x2b72d7:0x337,_0x596aa7:0x327,_0x62595b:0x1ab,_0x4c04e4:0x1cc,_0x416239:0x265,_0x4c5ac3:0x316,_0x233ef9:0x10c,_0xbc1bbe:0x397,_0x4dbe68:0x43e,_0x983073:0x33d,_0x599e74:0x232,_0xa0bec8:0x1f2,_0x534c88:0x37b,_0x178d9e:0x33c,_0x4ee445:0x466,_0x36b20a:0x3d4,_0xa27650:0x47e,_0x539245:0x483,_0x1ca184:0x339,_0x4976b8:0x1ee,_0x2a27a7:0x1f4},_0x5337f5={_0xd68505:0xa0,_0x17265a:0xc6,_0x21b6df:0x493,_0x22e8e4:0x105,_0x126015:0x36,_0x3b458d:0x21e,_0x187ea8:0x229,_0x561a98:0x6fa,_0x4364f5:0x65d,_0x917c3:0x75f,_0x3a6df8:0x650,_0x4bce2e:0x532,_0x1a9283:0x5f6,_0x1a044c:0x247,_0x359edc:0x130,_0x41ddc2:0x274,_0x5be687:0x5f0,_0x454d51:0x5d0,_0xb29b3:0x718,_0x5bee35:0x66d,_0x42b459:0x5fa,_0x47e862:0x4e,_0x14b0d6:0x65,_0x2e384b:0x12d,_0x4e6ee6:0x88,_0x467936:0x5ab,_0x21cdad:0x14c,_0x4be3fd:0x111,_0x3b9bb7:0x808,_0x1e38a8:0x694,_0x5a9d04:0x230,_0x290270:0x11e,_0x3ab84c:0x717,_0x387919:0x846,_0x1194b4:0x813,_0x5b0220:0x789,_0x53df7d:0x7e5,_0x58ad56:0x7e4,_0x36c778:0x84a,_0x4b4d3b:0x749,_0x517fd4:0x775,_0x567bd4:0x709,_0x11c87e:0x6,_0x1cf95f:0x1ce,_0x4dc3b7:0x25e,_0x331b97:0x19,_0x45650a:0x481,_0x5bd9b5:0x745,_0x500d3c:0x5d9,_0x1c66de:0x749,_0x33f5a6:0x87b,_0x2b6a89:0x5f0,_0xa8f09f:0x5de,_0x337f60:0x57,_0x4e847f:0xee,_0x3d6993:0x4c,_0x5b313e:0x685,_0xb5a4c2:0x60a,_0x17921f:0x4c0,_0x1a039b:0x5d5,_0x243644:0x5a6,_0x4e221e:0x5a8,_0x18caab:0x5a7,_0xf4a9bc:0x48b,_0x35b17e:0x41,_0x4424aa:0x749,_0x101b37:0x7a4,_0x111472:0x6fc,_0x4344ba:0x105,_0x57a103:0x11},_0x49f874={_0x12b6a3:0x472,_0xb533e8:0x515,_0x66a617:0x4cc,_0x2c7d04:0x5d4,_0x2768a0:0x306,_0x244efb:0x20a},_0x4ed862={_0x3bf5a7:0x84,_0x4b1149:0x159},_0x419550={_0x2a7b98:0x156,_0x2ba586:0x2a7};if(!_0x354540[_0x216925(_0x5e16ec._0x290712,_0x5e16ec._0x116b8c,_0x5e16ec._0x12c4a8,0x2ef)]||_0x354540[_0x36a28d(0x4ed,_0x5e16ec._0x2e46fd,_0x5e16ec._0x24f9a2,0x3af)][_0x36a28d(0x4c2,0x43c,_0x5e16ec._0x278dac,_0x5e16ec._0x1eaf0e)]===0x0)throw new Error('WebSearch\x20requires\x20at\x20least\x20one\x20search\x20engine\x20configured');const _0x445cd0=_0x354540[_0x36a28d(0x26d,_0x5e16ec._0x51f98e,0x322,_0x5e16ec._0x53c3fd)]??_0x36a28d(_0x5e16ec._0xe5e3a5,0x3da,_0x5e16ec._0x716506,_0x5e16ec._0x41cb12),_0x211871=_0x354540[_0x36a28d(0x210,0xe5,0x282,_0x5e16ec._0x2e8d0a)];function _0x36a28d(_0x109b0a,_0x238322,_0x5c3d02,_0x47e6ab){return _0x36273c(_0x109b0a-_0x419550._0x2a7b98,_0x238322-0xd4,_0x47e6ab,_0x109b0a- -_0x419550._0x2ba586);}function _0x216925(_0x31a35b,_0x47edb8,_0x26b8f2,_0x55b9fb){return _0x19c96f(_0x31a35b-_0x4ed862._0x3bf5a7,_0x47edb8-0x184,_0x47edb8,_0x26b8f2-_0x4ed862._0x4b1149);}return defineTool({'name':_0x445cd0,'description':_0x36a28d(_0x5e16ec._0x2474fa,_0x5e16ec._0x1939cc,_0x5e16ec._0x2b72d7,_0x5e16ec._0x596aa7),'inputSchema':{'type':_0x216925(0x2ee,0xb1,0x216,_0x5e16ec._0x62595b),'properties':{'description':{'type':_0x216925(0x1b0,_0x5e16ec._0x4c04e4,_0x5e16ec._0x416239,_0x5e16ec._0x4c5ac3)},'query':{'type':'string'},'count':{'type':'number'},'offset':{'type':_0x216925(0xab,0x1d2,_0x5e16ec._0x233ef9,0xe0)},'domains':{'type':'array','items':{'type':_0x36a28d(_0x5e16ec._0xbc1bbe,0x2ec,_0x5e16ec._0x4dbe68,0x279)}},'recencyDays':{'type':_0x36a28d(0x23e,_0x5e16ec._0x983073,_0x5e16ec._0x599e74,_0x5e16ec._0xa0bec8)},'lang':{'type':_0x36a28d(0x397,_0x5e16ec._0x534c88,_0x5e16ec._0x178d9e,_0x5e16ec._0x4ee445)},'region':{'type':'string'},'safe':{'type':'boolean'},'type':{'type':'string'},'hydrateMeta':{'type':_0x36a28d(_0x5e16ec._0x36b20a,_0x5e16ec._0xa27650,_0x5e16ec._0x539245,0x4c1)}},'required':[_0x216925(_0x5e16ec._0x1ca184,0x86,_0x5e16ec._0x4976b8,_0x5e16ec._0x2a27a7)]},async *'execute'(_0x1528ce,_0x91778e){const _0xac8138={_0x1c6dbc:0x133},_0x3a718b={_0xe55d78:0x4e6,_0x4c278c:0x157,_0x57f95f:0x143},_0x256b55=_0x1528ce[_0x4ee81c(-_0x5337f5._0xd68505,_0x5337f5._0x17265a,0x72,-0x1c8)]['trim']();if(!_0x256b55)throw new ToolExecutionError('Missing\x20required\x20parameter:\x20query');const _0x390fc8={'query':_0x256b55,'count':Math['max'](0x1,Math[_0x2a233e(_0x5337f5._0x21b6df,0x495,0x4fd,0x58c)](0x32,Math[_0x2a233e(0x57a,0x515,0x3da,0x4ea)](_0x1528ce[_0x4ee81c(_0x5337f5._0x22e8e4,-_0x5337f5._0x126015,_0x5337f5._0x3b458d,_0x5337f5._0x187ea8)]??0xa))),'offset':Math[_0x2a233e(_0x5337f5._0x561a98,_0x5337f5._0x4364f5,0x6af,_0x5337f5._0x917c3)](0x0,Math['trunc'](_0x1528ce[_0x4ee81c(0x44,-0x81,-_0x5337f5._0xd68505,0x19f)]??0x0)),'domains':_0x1528ce[_0x2a233e(0x4dc,_0x5337f5._0x3a6df8,_0x5337f5._0x4bce2e,_0x5337f5._0x1a9283)]??[],'recencyDays':Math[_0x2a233e(0x78a,0x65d,0x56b,0x542)](0x0,Math[_0x4ee81c(-0x132,-_0x5337f5._0x1a044c,-_0x5337f5._0x359edc,-_0x5337f5._0x41ddc2)](_0x1528ce[_0x2a233e(0x655,_0x5337f5._0x5be687,0x4fb,_0x5337f5._0x454d51)]??0x0)),'lang':_0x1528ce['lang']??'en','region':_0x1528ce[_0x2a233e(_0x5337f5._0xb29b3,_0x5337f5._0x5bee35,0x584,0x5e3)]??'','safe':_0x1528ce[_0x2a233e(0x6ea,_0x5337f5._0x42b459,0x6e6,0x5f9)]??!![],'type':normalizeType(_0x1528ce['type']),'hydrateMeta':_0x1528ce[_0x4ee81c(-_0x5337f5._0x47e862,-_0x5337f5._0x14b0d6,-0xb9,-0x11b)]??![]};function _0x4ee81c(_0x4deea1,_0x28b2bf,_0x2f45e6,_0x365c4e){return _0x36a28d(_0x4deea1- -0x3c0,_0x28b2bf-0x1cb,_0x2f45e6-0xc9,_0x28b2bf);}let _0x1e6f29=[],_0x26a2a0='unknown';for(const _0x4ac89b of _0x354540[_0x4ee81c(_0x5337f5._0x2e384b,0x12f,_0x5337f5._0x4e6ee6,0x7c)]){try{if(isGoogleCseEngine(_0x4ac89b))_0x1e6f29=await searchGoogleCse(_0x4ac89b,_0x390fc8,_0x91778e['signal']),_0x26a2a0=_0x2a233e(_0x5337f5._0x467936,0x4f6,0x553,0x3f0);else{if(isOllamaEngine(_0x4ac89b)){const _0xdd873b=await searchOllama(_0x4ac89b,_0x390fc8,_0x91778e[_0x4ee81c(-_0x5337f5._0x21cdad,-0x231,-0x27b,-_0x5337f5._0x4be3fd)]);_0x1e6f29=_0xdd873b['items'],_0x26a2a0=_0xdd873b[_0x2a233e(_0x5337f5._0x3b9bb7,_0x5337f5._0x1e38a8,0x625,0x6c8)];}else{if(isTavilyEngine(_0x4ac89b)){const _0x378256=await searchTavily(_0x4ac89b,_0x390fc8,_0x91778e[_0x4ee81c(-_0x5337f5._0x21cdad,-_0x5337f5._0x5a9d04,-0x13a,-_0x5337f5._0x290270)]);_0x1e6f29=_0x378256[_0x2a233e(0x5dc,_0x5337f5._0x3ab84c,_0x5337f5._0x387919,_0x5337f5._0x1194b4)],_0x26a2a0=_0x378256[_0x2a233e(0x593,0x694,0x752,_0x5337f5._0x5b0220)];}}}if(_0x1e6f29[_0x2a233e(_0x5337f5._0x53df7d,0x749,_0x5337f5._0x58ad56,0x887)]>0x0)break;}catch(_0x69b72c){if(_0x4ac89b===_0x354540['engines'][_0x354540[_0x2a233e(0x83d,0x774,0x7d7,_0x5337f5._0x36c778)][_0x2a233e(0x7f2,_0x5337f5._0x4b4d3b,_0x5337f5._0x517fd4,_0x5337f5._0x567bd4)]-0x1])throw _0x69b72c;}}_0x390fc8[_0x4ee81c(-_0x5337f5._0x47e862,-0x168,_0x5337f5._0x11c87e,-0x41)]&&_0x1e6f29[_0x4ee81c(0x102,0x261,_0x5337f5._0x1cf95f,_0x5337f5._0x4dc3b7)]>0x0&&(_0x1e6f29=await hydrateResults(_0x1e6f29,_0x390fc8['lang'],_0x91778e[_0x4ee81c(-0x14c,0x2a,-_0x5337f5._0x331b97,-0x23e)],_0x211871));const _0x9074e7=new Set();_0x1e6f29=_0x1e6f29['filter'](_0x479944=>{const _0x4ea83d={_0x13bd9f:0x1f,_0x529161:0x1ad};function _0x651921(_0x598d20,_0x5b7f98,_0x459ca7,_0xc3d043){return _0x2a233e(_0x5b7f98,_0xc3d043- -_0x3a718b._0xe55d78,_0x459ca7-_0x3a718b._0x4c278c,_0xc3d043-_0x3a718b._0x57f95f);}const _0x2b1022=_0x479944['url'][_0x2d40e4(0x470,0x48a,_0x49f874._0x12b6a3,_0x49f874._0xb533e8)]();if(!_0x2b1022||_0x9074e7[_0x2d40e4(_0x49f874._0x66a617,0x360,0x5e6,_0x49f874._0x2c7d04)](_0x2b1022))return![];_0x9074e7[_0x651921(0x2fd,_0x49f874._0x2768a0,_0x49f874._0x244efb,0x212)](_0x2b1022);function _0x2d40e4(_0x52a5fc,_0x51eec3,_0x4fa476,_0x4339b4){return _0x2a233e(_0x51eec3,_0x52a5fc- -_0x4ea83d._0x13bd9f,_0x4fa476-0x1f2,_0x4339b4-_0x4ea83d._0x529161);}return!![];});function _0x2a233e(_0x5c9e58,_0x1af6fd,_0x1d5903,_0x3a2562){return _0x36a28d(_0x1af6fd-0x287,_0x1af6fd-_0xac8138._0x1c6dbc,_0x1d5903-0x94,_0x5c9e58);}_0x1e6f29=_0x1e6f29[_0x2a233e(_0x5337f5._0x45650a,0x5d7,0x562,_0x5337f5._0x5bd9b5)]((_0x4a1ea1,_0x5ab288)=>({..._0x4a1ea1,'source':{..._0x4a1ea1[_0x4ee81c(-0x1b3,-0x14c,-0x26f,-0x228)],'rank':_0x5ab288+0x1}}));const _0x23a6db={};if(_0x390fc8['domains'][_0x2a233e(_0x5337f5._0x500d3c,_0x5337f5._0x1c66de,_0x5337f5._0x33f5a6,0x6c6)]>0x0)_0x23a6db['domains']=_0x390fc8['domains'];if(_0x390fc8[_0x2a233e(_0x5337f5._0x561a98,_0x5337f5._0x2b6a89,0x608,_0x5337f5._0xa8f09f)]>0x0)_0x23a6db[_0x4ee81c(-_0x5337f5._0x337f60,-_0x5337f5._0x4e847f,-0xc5,-_0x5337f5._0x3d6993)]=_0x390fc8['recencyDays'];if(_0x390fc8[_0x2a233e(0x70c,0x60a,0x58d,0x65d)]!=='en')_0x23a6db[_0x2a233e(_0x5337f5._0x5b313e,_0x5337f5._0xb5a4c2,0x691,_0x5337f5._0x17921f)]=_0x390fc8['lang'];if(_0x390fc8[_0x2a233e(_0x5337f5._0x1a039b,0x66d,_0x5337f5._0x243644,_0x5337f5._0x4e221e)])_0x23a6db['region']=_0x390fc8['region'];return yield createToolOutput(formatResults(_0x1e6f29),{'engine':_0x26a2a0,'count':_0x1e6f29['length'],'items':_0x1e6f29,'query':_0x390fc8[_0x2a233e(0x62f,_0x5337f5._0x18caab,0x4ea,_0x5337f5._0xf4a9bc)],...Object[_0x4ee81c(_0x5337f5._0x35b17e,0x15c,0x160,-0xc7)](_0x23a6db)[_0x2a233e(0x74e,_0x5337f5._0x4424aa,_0x5337f5._0x101b37,_0x5337f5._0x111472)]>0x0?{'appliedFilters':_0x23a6db}:{},'offset':_0x390fc8[_0x4ee81c(0x44,0x137,0x121,-0xaf)],'totalRequested':_0x390fc8[_0x4ee81c(_0x5337f5._0x4344ba,0x15d,0x78,-_0x5337f5._0x57a103)],'hydrated':_0x390fc8['hydrateMeta']}),void 0x0;}});}export{BackgroundProcessRegistry,ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashOutputTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createKillShellTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};