@nuvin/agent-core 0.2.0-rc.10 → 0.2.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -1
- package/dist/chunk-IUZALP6K.js +1 -1
- package/dist/chunk-KIIEBXJF.js +1 -0
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +11 -2
- package/dist/tools/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-ZHE3E26D.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvin/agent-core",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Core agent, model, format, and tool primitives for Nuvin",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"tsup": "^8.5.1",
|
|
53
53
|
"typescript": "^6.0.2",
|
|
54
54
|
"vitest": "^4.1.2",
|
|
55
|
-
"@nuvin/config": "0.3.0-rc.
|
|
55
|
+
"@nuvin/config": "0.3.0-rc.12"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@anthropic-ai/sdk": "^0.82.0",
|
package/dist/chunk-ZHE3E26D.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x494dd7,_0x3c7f69){const _0x459585={_0x56b902:0x1df,_0xab3b40:0x1ef,_0x4d47a3:0x24c,_0x259451:0x1b5,_0x51fbbf:0x1e0,_0x1867e1:0x1f2,_0xef80df:0x94,_0xc240f1:0x2f,_0x2d853e:0x1d,_0x3d585e:0x1c,_0x39a95c:0x1e6,_0x44f42b:0x24,_0x3c5829:0x5a,_0x2fb5a2:0x52,_0x3b1c38:0xb5,_0x547e39:0x15,_0xdf3b97:0x4f,_0x34c6ca:0x79,_0x536295:0x66,_0x1f5582:0x3c,_0x289819:0x187,_0x1536b3:0x1df,_0x17a105:0x235,_0x1a56c8:0x9c,_0x4bc8d5:0x59,_0xfbc978:0x64},_0x86f11={_0x9d9724:0xfb},_0x1d8c22={_0x78eba0:0xda};function _0x4f6589(_0x8faff,_0x8ae406,_0x594c5d,_0x24bd54){return _0x63b3(_0x594c5d- -_0x1d8c22._0x78eba0,_0x8ae406);}const _0x41b76e=_0x494dd7();function _0x194b6a(_0x39b8fd,_0xad0f80,_0x5f56d8,_0x471c53){return _0x63b3(_0x471c53-_0x86f11._0x9d9724,_0xad0f80);}while(!![]){try{const _0x2d894b=-parseInt(_0x194b6a(_0x459585._0x56b902,_0x459585._0xab3b40,0x23b,_0x459585._0x4d47a3))/0x1*(-parseInt(_0x194b6a(_0x459585._0x259451,_0x459585._0x51fbbf,0x1dd,_0x459585._0x1867e1))/0x2)+parseInt(_0x4f6589(0xd4,_0x459585._0xef80df,0x72,0xbe))/0x3*(parseInt(_0x4f6589(-_0x459585._0xc240f1,-_0x459585._0x2d853e,-_0x459585._0x3d585e,-0x2a))/0x4)+parseInt(_0x194b6a(0x1f4,0x22f,0x227,_0x459585._0x39a95c))/0x5*(-parseInt(_0x4f6589(_0x459585._0x44f42b,-_0x459585._0x3c5829,-0x4b,-_0x459585._0x2fb5a2))/0x6)+-parseInt(_0x4f6589(_0x459585._0x3b1c38,0x78,0x47,0x5a))/0x7*(parseInt(_0x4f6589(_0x459585._0x3d585e,-0x39,-_0x459585._0x547e39,_0x459585._0xdf3b97))/0x8)+-parseInt(_0x4f6589(-_0x459585._0x34c6ca,-_0x459585._0x536295,-0x2e,_0x459585._0x1f5582))/0x9+-parseInt(_0x194b6a(0x213,0x1a2,_0x459585._0x289819,_0x459585._0x1536b3))/0xa*(parseInt(_0x194b6a(_0x459585._0x17a105,0x23d,0x262,0x231))/0xb)+parseInt(_0x4f6589(-_0x459585._0x1a56c8,-0x5d,-_0x459585._0x4bc8d5,-_0x459585._0xfbc978))/0xc;if(_0x2d894b===_0x3c7f69)break;else _0x41b76e['push'](_0x41b76e['shift']());}catch(_0x45763f){_0x41b76e['push'](_0x41b76e['shift']());}}}(_0x26cd,0xb8c2a));import{withEstimatedModelCost}from'./chunk-GAZGO6N7.js';import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-YNOIG4FD.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x43043c){const _0x25125a={_0x2f4745:0xfe},_0x10d1a8={_0x4260a4:0xd};function _0x3aefe2(_0x3825d3,_0x3b1c0e,_0x364f56,_0x359ad2){return _0x63b3(_0x3b1c0e-_0x10d1a8._0x4260a4,_0x3825d3);}return typeof _0x43043c===_0x3aefe2(0x143,_0x25125a._0x2f4745,0x143,0x119)&&_0x43043c!==null&&!Array['isArray'](_0x43043c);}function isToolOutputEnvelope(_0x1372d0){const _0xcb4c66={_0x5e063e:0x105,_0x2418a9:0x1eb,_0x53427d:0x208,_0x935c50:0x1e5,_0x47c53a:0x76,_0x47ddaf:0xb1},_0x252bcc={_0xe847c0:0xf6};if(typeof _0x1372d0!==_0x1396d2(-0xbd,-0x10c,-0x102,-_0xcb4c66._0x5e063e)||_0x1372d0===null||Array[_0x1396d2(-0x120,-0xd3,-0xde,-0xf4)](_0x1372d0))return![];function _0x5b0670(_0x39f68a,_0x3ac647,_0x37a64b,_0x11c0ba){return _0x63b3(_0x39f68a-_0x252bcc._0xe847c0,_0x37a64b);}if(typeof _0x1372d0[_0x5b0670(0x1fd,_0xcb4c66._0x2418a9,_0xcb4c66._0x53427d,_0xcb4c66._0x935c50)]!==_0x1396d2(-_0xcb4c66._0x47c53a,-0x41,-_0xcb4c66._0x47ddaf,-0x81))return![];function _0x1396d2(_0x399bc3,_0x363160,_0xf1270,_0x56a4cc){return _0x63b3(_0x399bc3- -0x1ae,_0xf1270);}const _0xd507e8=_0x1372d0['structured'];return _0xd507e8===void 0x0||isJsonObject(_0xd507e8);}function validateAgainstSchema(_0x1b4c04,_0x15abb0,_0x4382cd){const _0x14bc30={_0x587503:0x28e,_0xff9715:0x27f,_0x5ce636:0x276,_0x3e6cbb:0x2b7,_0xddba99:0x306,_0x21617a:0x22e,_0x2576b2:0x1f2,_0x3a9542:0x1d9,_0x52da26:0x244,_0x3f2791:0x1f5,_0x25b9ae:0x205,_0x5d0552:0x1a9,_0x5bc2b4:0x28e,_0x1f3388:0x21b,_0x1aed93:0x253,_0x20be45:0x273,_0x5b8dc3:0x222,_0x32cd5f:0x29b,_0x4a041d:0x27e,_0x313109:0x2ac,_0x544810:0x1d9,_0x1c62d1:0x218,_0x43be8b:0x22e,_0x2adb82:0x20c,_0x32159e:0x26b,_0x1ac10c:0x249,_0x4c7b39:0x1ea,_0x48490d:0x20d,_0xe2ab31:0x24e,_0x31aff3:0x281,_0x9615d0:0x316,_0x51ea8b:0x2b4,_0x566239:0x270,_0x1a064c:0x267,_0x2fb972:0x222,_0x39b458:0x1d1,_0x2fc41b:0x179,_0x1f2da6:0x197,_0x4bde85:0x183,_0x36634d:0x190,_0x41cc3d:0x271,_0x215f61:0x2ab,_0x2dd64b:0x2a7,_0x2bffa9:0x258,_0xbf6c33:0x2f9,_0x187476:0x2c4,_0x30a165:0x2ee,_0x3334fc:0x2b8,_0xc66905:0x222,_0x2aa841:0x230,_0x47a352:0x1d1,_0x1eb2ff:0x214,_0x4806de:0x1e6,_0x2492f9:0x20a,_0x395861:0x1ec,_0x1b89e5:0x292,_0x44b9c5:0x1d2,_0x19a542:0x247,_0x4bf04a:0x1de,_0x588d3a:0x20a,_0x5526b3:0x1b7,_0x261536:0x252,_0x12fbc6:0x285,_0x1f18cb:0x2ae,_0x565a65:0x296,_0x4b70db:0x27b,_0x4f9bc7:0x283};function _0x58090b(_0x1ae247,_0xf5f17,_0x551afc,_0x116839){return _0x63b3(_0x116839-0x153,_0x1ae247);}if(_0x4eea69(0x2e5,0x297,0x28a,_0x14bc30._0x587503)in _0x4382cd){const _0x32d5b9=_0x4382cd[_0x58090b(0x2d3,_0x14bc30._0xff9715,0x27c,_0x14bc30._0x5ce636)][_0x4eea69(0x259,_0x14bc30._0x3e6cbb,0x2ff,_0x14bc30._0xddba99)](_0x21a684=>{try{return validateAgainstSchema(_0x1b4c04,_0x15abb0,_0x21a684),!![];}catch{return![];}});if(!_0x32d5b9)throw new Error(_0x4eea69(_0x14bc30._0x21617a,_0x14bc30._0x2576b2,_0x14bc30._0x3a9542,_0x14bc30._0x52da26)+_0x1b4c04+_0x58090b(0x1af,_0x14bc30._0x3f2791,0x1b0,_0x14bc30._0x25b9ae));return;}function _0x4eea69(_0x596165,_0x25d556,_0xe06a22,_0x1bac63){return _0x63b3(_0x25d556-0x174,_0x596165);}switch(_0x4382cd['type']){case'string':if(typeof _0x15abb0!=='string')throw new Error(_0x58090b(0x1ad,0x221,_0x14bc30._0x5d0552,0x1d1)+_0x1b4c04+_0x58090b(_0x14bc30._0x5bc2b4,0x219,0x1d5,_0x14bc30._0x1f3388));if(_0x4382cd['enum']!==void 0x0&&!_0x4382cd[_0x58090b(_0x14bc30._0x1aed93,_0x14bc30._0x20be45,_0x14bc30._0x5b8dc3,0x20c)][_0x58090b(_0x14bc30._0x32cd5f,_0x14bc30._0x4a041d,0x2b1,_0x14bc30._0x313109)](_0x15abb0))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1b4c04+_0x58090b(0x246,_0x14bc30._0x544810,0x282,0x243)+_0x4382cd[_0x58090b(_0x14bc30._0x1c62d1,0x278,_0x14bc30._0x43be8b,_0x14bc30._0x2adb82)][_0x4eea69(0x2cf,0x281,_0x14bc30._0x32159e,_0x14bc30._0x1ac10c)](',\x20'));return;case'number':if(typeof _0x15abb0!==_0x4eea69(0x194,0x1fe,_0x14bc30._0x4c7b39,_0x14bc30._0x48490d))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1b4c04+_0x4eea69(0x291,_0x14bc30._0xe2ab31,0x29f,_0x14bc30._0x31aff3));return;case _0x4eea69(_0x14bc30._0x9615d0,_0x14bc30._0x51ea8b,_0x14bc30._0x566239,_0x14bc30._0x1a064c):if(typeof _0x15abb0!=='boolean')throw new Error(_0x58090b(0x1bb,0x209,_0x14bc30._0x2fb972,_0x14bc30._0x39b458)+_0x1b4c04+_0x4eea69(0x31d,0x2c9,0x2fc,0x2ef));return;case'array':if(!Array[_0x58090b(_0x14bc30._0x2fc41b,0x1f1,_0x14bc30._0x1f2da6,0x1e1)](_0x15abb0))throw new Error(_0x58090b(_0x14bc30._0x4bde85,_0x14bc30._0x36634d,0x23d,0x1d1)+_0x1b4c04+_0x4eea69(0x261,0x269,0x203,_0x14bc30._0x41cc3d));_0x15abb0[_0x4eea69(0x2fc,0x2af,0x303,_0x14bc30._0x215f61)]((_0x28d315,_0x184f2)=>{validateAgainstSchema(_0x1b4c04+'['+_0x184f2+']',_0x28d315,_0x4382cd['items']);});return;case _0x4eea69(_0x14bc30._0x2dd64b,0x265,0x2a4,_0x14bc30._0x2bffa9):if(!isJsonObject(_0x15abb0))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1b4c04+_0x4eea69(_0x14bc30._0xbf6c33,_0x14bc30._0x187476,_0x14bc30._0x30a165,0x329));for(const _0x1440af of _0x4382cd[_0x4eea69(0x256,0x245,0x265,_0x14bc30._0x3334fc)]??[]){if(!Object['hasOwn'](_0x15abb0,_0x1440af))throw new Error(_0x58090b(_0x14bc30._0xc66905,_0x14bc30._0x2aa841,0x1fe,_0x14bc30._0x47a352)+_0x1b4c04+':\x20missing\x20required\x20field\x20\x22'+_0x1440af+'\x22');}if(_0x4382cd[_0x58090b(0x1fa,0x1ba,_0x14bc30._0x5d0552,_0x14bc30._0x1eb2ff)]===![]){const _0x2958ad=Object[_0x58090b(_0x14bc30._0x4806de,0x1e7,_0x14bc30._0x2492f9,_0x14bc30._0x395861)](_0x15abb0)[_0x58090b(0x23e,0x28e,0x305,_0x14bc30._0x1b89e5)](_0x36aeae=>!Object['hasOwn'](_0x4382cd[_0x4eea69(0x2dd,0x26e,0x283,0x20e)],_0x36aeae));if(_0x2958ad!==void 0x0)throw new Error(_0x4eea69(_0x14bc30._0x44b9c5,0x1f2,_0x14bc30._0x19a542,0x1fd)+_0x1b4c04+_0x4eea69(_0x14bc30._0x4bf04a,_0x14bc30._0x588d3a,_0x14bc30._0x5526b3,_0x14bc30._0x261536)+_0x2958ad+'\x22');}for(const [_0x5b1b4b,_0x314cb8]of Object[_0x4eea69(0x1f5,0x254,0x222,_0x14bc30._0x12fbc6)](_0x4382cd[_0x58090b(0x201,_0x14bc30._0x1f18cb,_0x14bc30._0x565a65,0x24d)])){Object[_0x58090b(_0x14bc30._0x4b70db,0x299,_0x14bc30._0x4f9bc7,0x265)](_0x15abb0,_0x5b1b4b)&&validateAgainstSchema(_0x1b4c04+'.'+_0x5b1b4b,_0x15abb0[_0x5b1b4b],_0x314cb8);}}}function normalizeToolOutputValue(_0x1a22d1){const _0x2845a7={_0x1eaa36:0x27d,_0x4ce770:0x24d,_0x6873a8:0x25b,_0x2aa104:0x2f7,_0x24ad31:0x2c2,_0x4f0fd3:0x279,_0x30594b:0x2e5,_0x29f69c:0x2c2,_0xca1c7c:0x265,_0x3f0f2f:0x210,_0x234470:0x276,_0x20d8ad:0x2ea,_0x6331e2:0x2cf,_0x5f3785:0x1f6,_0x3d6b44:0x284,_0x228bed:0x227};if(isToolOutputEnvelope(_0x1a22d1))return{'output':_0x1a22d1[_0x345889(-_0x2845a7._0x1eaa36,-0x2dd,-0x21f,-_0x2845a7._0x4ce770)],'structured':_0x1a22d1[_0x4b6e9b(-0x2db,-0x24c,-0x2ad,-0x24a)]??{'value':_0x1a22d1[_0x345889(-0x27d,-0x21e,-_0x2845a7._0x6873a8,-0x2a3)]},..._0x1a22d1[_0x4b6e9b(-0x2b0,-_0x2845a7._0x2aa104,-_0x2845a7._0x24ad31,-_0x2845a7._0x4f0fd3)]!==void 0x0?{'content':_0x1a22d1[_0x4b6e9b(-0x266,-_0x2845a7._0x30594b,-_0x2845a7._0x29f69c,-_0x2845a7._0xca1c7c)]}:{}};function _0x4b6e9b(_0x4e97e7,_0x3f55a5,_0x4a1473,_0x2afdcc){return _0x63b3(_0x4a1473- -0x382,_0x3f55a5);}if(typeof _0x1a22d1===_0x4b6e9b(-_0x2845a7._0x3f0f2f,-_0x2845a7._0x234470,-0x24a,-0x28f))return{'output':_0x1a22d1,'structured':{'value':_0x1a22d1}};if(typeof _0x1a22d1==='object'&&_0x1a22d1!==null&&!Array[_0x4b6e9b(-0x2f7,-_0x2845a7._0x20d8ad,-0x2f4,-0x32b)](_0x1a22d1))return{'output':JSON[_0x345889(-0x268,-0x266,-_0x2845a7._0x6331e2,-0x28e)](_0x1a22d1,null,0x2),'structured':_0x1a22d1};function _0x345889(_0x8287af,_0x31858e,_0x326e0b,_0x2601d2){return _0x63b3(_0x8287af- -0x384,_0x326e0b);}return{'output':JSON[_0x4b6e9b(-_0x2845a7._0x5f3785,-_0x2845a7._0x3d6b44,-0x266,-_0x2845a7._0x228bed)](_0x1a22d1,null,0x2),'structured':{'value':_0x1a22d1}};}function createToolOutput(_0x39697f,_0x1f2af6={'value':_0x39697f},_0x551608){return{'output':_0x39697f,'structured':_0x1f2af6,..._0x551608!==void 0x0?{'content':_0x551608}:{}};}var ToolExecutionError=class extends Error{['structured'];constructor(_0x38b7b5,_0x2b2967={}){const _0x479088={_0x484fe8:0x198,_0x824d71:0x170,_0x3e4e5c:0x290,_0x5562b3:0x1cf,_0x731ab:0x165},_0x4a10bf={_0x2d2199:0xef};function _0xcb0dc6(_0x1c0ab3,_0x13f240,_0x2f18c9,_0x625eb2){return _0x63b3(_0x1c0ab3- -0x255,_0x2f18c9);}super(_0x38b7b5),this[_0x545350(_0x479088._0x484fe8,_0x479088._0x824d71,0x1bf,0x205)]=_0x545350(0x241,_0x479088._0x3e4e5c,0x229,0x28f);function _0x545350(_0x1664cb,_0x25c5a1,_0x3b49da,_0x314df8){return _0x63b3(_0x3b49da-_0x4a10bf._0x2d2199,_0x25c5a1);}this[_0x545350(0x21c,_0x479088._0x5562b3,0x1c4,_0x479088._0x731ab)]=_0x2b2967;}};function defineTool(_0x4b0b7e){return _0x4b0b7e;}function resolveToolPermissionClass(_0xeb1b7){const _0x2871e0={_0x5f0406:0x300,_0x9325be:0x2c9,_0x5e6b71:0x390,_0x3b32a4:0x430,_0x12aca8:0x3cf,_0x260334:0x3a6,_0x5227e1:0x346,_0x90e3c0:0x384,_0x376388:0x316,_0x35723b:0x2e4,_0x23708c:0x346,_0x8662e0:0x377},_0x4398b1=_0xeb1b7?.[_0x4ce322(0x365,0x35c,_0x2871e0._0x5f0406,0x35d)];function _0x95e8d5(_0x17ab5b,_0x53b744,_0x1543e0,_0x383f94){return _0x63b3(_0x1543e0-0x274,_0x17ab5b);}function _0x4ce322(_0x469717,_0x2b2dfe,_0x5439c9,_0x2b7fd9){return _0x63b3(_0x5439c9-0x1d9,_0x2b7fd9);}if(_0x4398b1===_0x95e8d5(0x2e4,_0x2871e0._0x9325be,0x336,_0x2871e0._0x5e6b71)||_0x4398b1===_0x95e8d5(_0x2871e0._0x3b32a4,0x38b,_0x2871e0._0x12aca8,0x38b)||_0x4398b1===_0x95e8d5(_0x2871e0._0x260334,0x321,_0x2871e0._0x5227e1,_0x2871e0._0x90e3c0))return _0x4398b1;return _0x95e8d5(_0x2871e0._0x376388,_0x2871e0._0x35723b,_0x2871e0._0x23708c,_0x2871e0._0x8662e0);}var ToolRegistry=class{[_0x4d4502(-0x129,-0x161,-0x162,-0x115)]=new Map();constructor(_0x15c4fd=[]){const _0x557d9f={_0x881945:0xae,_0x408f0e:0xaa,_0x2f344e:0x3f},_0x1271e7={_0x543bdf:0x1be,_0x31b064:0xcf};function _0x2a57dc(_0x3d3899,_0x408329,_0x391e35,_0x235ffd){return _0x4d4502(_0x391e35-_0x1271e7._0x543bdf,_0x408329-0x14b,_0x3d3899,_0x235ffd-_0x1271e7._0x31b064);}for(const _0x604833 of _0x15c4fd){this[_0x2a57dc(_0x557d9f._0x881945,_0x557d9f._0x408f0e,0x67,_0x557d9f._0x2f344e)](_0x604833);}}[_0x4d4502(-0x157,-0x151,-0x1c5,-0xe3)](_0x4a4d3a){const _0x25c06f={_0x584d19:0xb1,_0x422955:0xf9,_0x41001c:0xc2,_0xf27452:0xd0,_0x3b80c2:0xce,_0x357da9:0x11d,_0x46dc9f:0xaa},_0x110700={_0x3fe122:0x1ef,_0x3cfad2:0x11f};function _0x2896a0(_0x3a9c3a,_0x596e26,_0x350b27,_0x44e5cf){return _0x4d4502(_0x3a9c3a-0x218,_0x596e26-0xb9,_0x350b27,_0x44e5cf-0xdb);}function _0x316f9c(_0x55989f,_0x404224,_0x4fadbc,_0x262f58){return _0x1213ea(_0x55989f-0x17f,_0x404224-_0x110700._0x3fe122,_0x55989f,_0x4fadbc-_0x110700._0x3cfad2);}this[_0x2896a0(0xef,_0x25c06f._0x584d19,0x11f,_0x25c06f._0x422955)][_0x316f9c(-_0x25c06f._0x41001c,-_0x25c06f._0xf27452,-_0x25c06f._0x3b80c2,-_0x25c06f._0x357da9)](_0x4a4d3a[_0x2896a0(0xa4,0x9d,0x83,_0x25c06f._0x46dc9f)],_0x4a4d3a);}[_0x1213ea(-0x135,-0x141,-0x17c,-0x1a3)](_0x5c7b23){const _0x5c6a5c={_0x38322b:0x1b8,_0x33e72d:0xe2},_0x2029f5={_0x318c84:0x253,_0x335704:0xd5,_0x5f0db7:0x55};function _0x327b7c(_0x11c4bf,_0x208eb9,_0x273ea6,_0x33f033){return _0x4d4502(_0x33f033-_0x2029f5._0x318c84,_0x208eb9-_0x2029f5._0x335704,_0x208eb9,_0x33f033-_0x2029f5._0x5f0db7);}function _0x2f9c36(_0x7604ac,_0x59342d,_0xe04537,_0x5aff59){return _0x1213ea(_0x7604ac-0x158,_0x59342d-0x70,_0x7604ac,_0x59342d- -0x2e);}return this[_0x327b7c(0x135,0xec,0x118,0x12a)][_0x327b7c(0xda,_0x5c6a5c._0x38322b,_0x5c6a5c._0x33e72d,0x14c)](_0x5c7b23);}[_0x1213ea(-0x214,-0x188,-0x180,-0x1dc)](){const _0x1287e9={_0x406fcf:0x6f,_0x22e4b3:0xe0,_0x387942:0x121,_0x272459:0x41a,_0x282903:0x3e5,_0x4aecec:0x427,_0x30b431:0x411},_0x1c7407={_0x45ea76:0x1b8,_0x1ad0b7:0x1cf};function _0x10bbf9(_0x3217f9,_0x26bbbf,_0x14aa00,_0x409624){return _0x4d4502(_0x26bbbf-0x4e7,_0x26bbbf-_0x1c7407._0x45ea76,_0x409624,_0x409624-_0x1c7407._0x1ad0b7);}function _0x2629b9(_0x37dcf7,_0x483e83,_0x3e4a1d,_0xbd6c99){return _0x4d4502(_0x483e83-0x49,_0x483e83-0x4b,_0x37dcf7,_0xbd6c99-0x163);}return[...this[_0x2629b9(-_0x1287e9._0x406fcf,-_0x1287e9._0x22e4b3,-_0x1287e9._0x387942,-0x6d)][_0x10bbf9(_0x1287e9._0x272459,_0x1287e9._0x282903,_0x1287e9._0x4aecec,_0x1287e9._0x30b431)]()];}[_0x4d4502(-0xf0,-0xd1,-0xbb,-0xca)](){const _0x5a5027={_0x1a9408:0x3d6,_0x157fa3:0x226},_0x255225={_0x204c8a:0x202,_0xf45741:0x236,_0x595779:0x23d,_0x443b73:0x27e},_0x53d794={_0x3f0c05:0x1e},_0x19f5c1={_0x2c4df4:0xc9,_0xc1b76:0xfc},_0x42f51e={_0x44f6ea:0xd9};function _0x1ad688(_0x4f4adb,_0x49e259,_0x1d09ab,_0x1083e0){return _0x4d4502(_0x1d09ab-0x3b4,_0x49e259-0x0,_0x4f4adb,_0x1083e0-_0x42f51e._0x44f6ea);}function _0x333433(_0x368962,_0xea998d,_0x1e607f,_0x2c99d6){return _0x1213ea(_0x368962-_0x19f5c1._0x2c4df4,_0xea998d-_0x19f5c1._0xc1b76,_0x1e607f,_0x368962-0x580);}return this[_0x333433(0x3a4,0x39c,0x3bd,_0x5a5027._0x1a9408)]()[_0x1ad688(0x1eb,0x1bc,_0x5a5027._0x157fa3,0x256)](_0x126097=>{const _0x14d096={_0x280851:0x3c};function _0x7933f3(_0x1c5cd1,_0x4d1072,_0x4c4e89,_0x3df2d0){return _0x333433(_0x1c5cd1- -0x105,_0x4d1072-0x7a,_0x4c4e89,_0x3df2d0-_0x53d794._0x3f0c05);}function _0x39c133(_0x5244e8,_0x3c983b,_0x23cc82,_0x452786){return _0x1ad688(_0x23cc82,_0x3c983b-0x1b7,_0x452786-0x1a2,_0x452786-_0x14d096._0x280851);}return{'name':_0x126097[_0x7933f3(0x26b,0x2ab,_0x255225._0x204c8a,0x2d5)],'description':_0x126097[_0x7933f3(_0x255225._0xf45741,_0x255225._0x595779,0x1ce,_0x255225._0x443b73)],'input_schema':_0x126097['inputSchema']};});}};function validateToolInput(_0x511e,_0x24acfc){const _0x1c49cb={_0x40fc14:0x3ca,_0x104c66:0x426},_0x383546={_0x3fb9d8:0x504,_0x18ae29:0x7d};function _0x14ad63(_0x3411b3,_0x407bcf,_0x1870a1,_0x51b394){return _0x4d4502(_0x3411b3-_0x383546._0x3fb9d8,_0x407bcf-_0x383546._0x18ae29,_0x407bcf,_0x51b394-0x10a);}return validateAgainstSchema(_0x14ad63(0x3c5,_0x1c49cb._0x40fc14,_0x1c49cb._0x104c66,0x3ec),_0x511e,_0x24acfc),_0x511e;}function deriveFinalToolOutput(_0x324708){const _0x2481f8={_0x351440:0x2a4,_0x5c4ceb:0x29e,_0x93d65a:0x2e1,_0x164513:0x2a4,_0x49573b:0x23e,_0x3fedc0:0x1f0,_0x4bc12f:0x271,_0x5099eb:0x287,_0x12ffa1:0x21d,_0xb63cbe:0x164,_0x3323bf:0x130,_0x1cea93:0x276,_0x2a2fbf:0x27e,_0x17e8d9:0x285,_0x5083e6:0xdd,_0x276faf:0x8c,_0x3527e7:0xe0,_0x1fb269:0xaa,_0x5cd7c5:0x287,_0x11a9a0:0x25a},_0x65c05a={_0x4e4b8f:0x2ec},_0x3b7389={_0x33cef0:0x5a,_0x2dbc50:0x91};if(_0x324708[_0x24de95(-_0x2481f8._0x351440,-_0x2481f8._0x5c4ceb,-0x2b3,-_0x2481f8._0x93d65a)]===0x0)return{'output':'','structured':{}};if(_0x324708[_0x24de95(-_0x2481f8._0x164513,-0x2e4,-0x270,-_0x2481f8._0x49573b)]===0x1)return{'output':_0x324708[0x0][_0x24de95(-0x240,-_0x2481f8._0x3fedc0,-0x1eb,-0x2ac)],'structured':_0x324708[0x0][_0x24de95(-0x272,-0x203,-_0x2481f8._0x4bc12f,-0x25e)],..._0x324708[0x0]['content']!==void 0x0?{'content':_0x324708[0x0][_0x24de95(-_0x2481f8._0x5099eb,-_0x2481f8._0x12ffa1,-0x2ec,-0x2b6)]}:{}};const _0x2331eb=_0x324708[_0x3895b7(0x138,0x177,_0x2481f8._0xb63cbe,_0x2481f8._0x3323bf)](_0x190620=>_0x190620[_0x24de95(-0x287,-0x272,-0x29e,-0x2f5)]!==void 0x0);function _0x24de95(_0x58559b,_0x1d7a3b,_0x178ae8,_0x1c7e3a){return _0x1213ea(_0x58559b-_0x3b7389._0x33cef0,_0x1d7a3b-_0x3b7389._0x2dbc50,_0x178ae8,_0x58559b- -0x67);}function _0x3895b7(_0x21509c,_0x5c636f,_0x11bcb2,_0x42b9e){return _0x1213ea(_0x21509c-0x4a,_0x5c636f-0x2b,_0x21509c,_0x42b9e-_0x65c05a._0x4e4b8f);}return{'output':_0x324708[_0x24de95(-0x291,-0x2d8,-0x289,-_0x2481f8._0x1cea93)](_0x16ab39=>_0x16ab39[_0x24de95(-0x240,-0x22a,-0x235,-0x222)])[_0x24de95(-0x23a,-_0x2481f8._0x2a2fbf,-0x20f,-_0x2481f8._0x17e8d9)](''),'structured':{'chunks':_0x324708[_0x3895b7(0x128,_0x2481f8._0x5083e6,_0x2481f8._0x276faf,0xc2)](_0x2fd2dc=>_0x2fd2dc[_0x24de95(-0x272,-0x2d3,-0x2dc,-0x28e)])},..._0x2331eb[_0x3895b7(_0x2481f8._0x3527e7,0xa4,_0x2481f8._0x1fb269,0xaf)]===0x1?{'content':_0x2331eb[0x0][_0x24de95(-_0x2481f8._0x5cd7c5,-0x2d6,-0x238,-_0x2481f8._0x11a9a0)]}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x28b2fa,_0x386e12,_0x3970b3,_0x4feb50=[]){const _0x231069={_0x59749b:0x344,_0x565df0:0x366,_0x3f8486:0x281},_0x9f8938={_0x2eb890:0x187},_0x596602={_0x5e33be:0x103};function _0x4be66d(_0x1e0c2e,_0x200dae,_0x505946,_0x2c1d30){return _0x1213ea(_0x1e0c2e-0x1d7,_0x200dae-0x2d,_0x1e0c2e,_0x505946- -_0x596602._0x5e33be);}function _0xcd4f31(_0x131f11,_0x41d6ef,_0x90a3e5,_0x42a3d1){return _0x1213ea(_0x131f11-_0x9f8938._0x2eb890,_0x41d6ef-0x7f,_0x90a3e5,_0x41d6ef-0x2c6);}return{'callId':_0x28b2fa['id'],'toolName':_0x28b2fa[_0x4be66d(-_0x231069._0x59749b,-0x33b,-0x313,-_0x231069._0x565df0)],'status':_0x4be66d(-0x2f0,-0x252,-_0x231069._0x3f8486,-0x226),'output':_0x386e12,'structured':_0x3970b3,'chunks':_0x4feb50,'meta':createToolMeta()};}function createRejectedToolResult(_0x488402,_0x1dd8e4){const _0x1f7d5a={_0x234888:0x91,_0x43045f:0x43,_0x729551:0x38,_0x38d846:0xb1,_0x3ea049:0x3a6,_0x560742:0x357,_0x54b849:0x37d,_0x48821a:0x3ee},_0x1e0e76={_0x3a3c9e:0x20,_0x1bf780:0x22,_0x109a6c:0x280},_0x2460b8={_0x49c917:0xd7,_0x20ed1c:0x1c9};function _0x249069(_0x4f22fa,_0x4e4fae,_0x187d18,_0x5b1b36){return _0x4d4502(_0x4e4fae-0x50d,_0x4e4fae-_0x2460b8._0x49c917,_0x5b1b36,_0x5b1b36-_0x2460b8._0x20ed1c);}const _0x24cd97=_0x1dd8e4?.[_0x3ef352(0xd0,0x108,_0x1f7d5a._0x234888,0xac)]()[_0x3ef352(_0x1f7d5a._0x43045f,0x1d,_0x1f7d5a._0x729551,_0x1f7d5a._0x38d846)]?_0x1dd8e4:_0x249069(0x391,_0x1f7d5a._0x3ea049,_0x1f7d5a._0x560742,_0x1f7d5a._0x54b849)+_0x488402[_0x249069(0x3c8,0x399,0x36f,_0x1f7d5a._0x48821a)];function _0x3ef352(_0x51b29c,_0x36019f,_0x4dde8c,_0x2cc83f){return _0x1213ea(_0x51b29c-_0x1e0e76._0x3a3c9e,_0x36019f-_0x1e0e76._0x1bf780,_0x2cc83f,_0x51b29c-_0x1e0e76._0x109a6c);}return createErrorToolResult(_0x488402,_0x24cd97,{'error':'tool_rejected',..._0x1dd8e4?.['trim']()['length']?{'reason':_0x1dd8e4}:{}});}function createAbortedToolResult(_0x39611e,_0xb6e1b7,_0x550e26=[]){const _0x87e75b={_0x476f8d:0x73},_0x40a796={_0x1a6bff:0x1b9,_0x2573cd:0x116,_0x1511d9:0x29e},_0x2dfd7b=toAbortError(_0xb6e1b7);function _0x3844b2(_0x24abaf,_0x33799c,_0x2a6ad1,_0x9384d3){return _0x1213ea(_0x24abaf-_0x40a796._0x1a6bff,_0x33799c-_0x40a796._0x2573cd,_0x33799c,_0x24abaf-_0x40a796._0x1511d9);}return createErrorToolResult(_0x39611e,_0x2dfd7b['message'],{'error':_0x2dfd7b[_0x3844b2(_0x87e75b._0x476f8d,0x10,0xde,0xc1)],'aborted':!![]},_0x550e26);}function createSuccessToolResult(_0x582950,_0x1c4473,_0x56a0e6){const _0x3ad2ff={_0x48c017:0x25d,_0xe43bb7:0x219,_0x59aba2:0x4,_0x593010:0x11,_0x3e6ead:0x193},_0x563b56={_0x5960cb:0x63},_0x2d5f05={_0x52bfa3:0xd1};function _0xf56d88(_0x26d4b0,_0x273d9f,_0x45c6ff,_0x4369c0){return _0x4d4502(_0x45c6ff-0x173,_0x273d9f-0x116,_0x4369c0,_0x4369c0-_0x2d5f05._0x52bfa3);}function _0x28cb5b(_0x342f82,_0x5d3a04,_0x3cf6bd,_0x3ce082){return _0x1213ea(_0x342f82-_0x563b56._0x5960cb,_0x5d3a04-0xa,_0x342f82,_0x5d3a04-0x3fd);}return{'callId':_0x582950['id'],'toolName':_0x582950[_0x28cb5b(0x254,0x1ed,0x1cf,_0x3ad2ff._0x48c017)],'status':'ok','output':_0x1c4473['output'],'structured':_0x1c4473[_0x28cb5b(0x1dc,0x1f2,0x205,_0x3ad2ff._0xe43bb7)],..._0x1c4473[_0xf56d88(_0x3ad2ff._0x59aba2,0x15,-_0x3ad2ff._0x593010,-0x17)]!==void 0x0?{'content':_0x1c4473[_0x28cb5b(_0x3ad2ff._0x3e6ead,0x1dd,0x1e7,0x1a3)]}:{},'chunks':_0x56a0e6,'meta':createToolMeta()};}function createUnknownToolResult(_0x1d2573){const _0x2170ac={_0x488feb:0x395,_0x1719f3:0x31b,_0x408c4c:0x374,_0x10964b:0x3a4},_0x2a6773={_0xb35f56:0x1d};function _0x5f2b7e(_0x587060,_0x17ad2e,_0x2009e8,_0x9463ef){return _0x1213ea(_0x587060-0x46,_0x17ad2e-0xd6,_0x17ad2e,_0x2009e8-0x575);}function _0x4f5e2b(_0x31ea69,_0x33a184,_0x317931,_0x394725){return _0x4d4502(_0x317931-0x225,_0x33a184-_0x2a6773._0xb35f56,_0x33a184,_0x394725-0xec);}return createErrorToolResult(_0x1d2573,_0x5f2b7e(_0x2170ac._0x488feb,0x358,0x33c,0x366)+_0x1d2573['name'],{'error':_0x5f2b7e(_0x2170ac._0x1719f3,_0x2170ac._0x408c4c,0x373,_0x2170ac._0x10964b)});}function isDispatchDecision(_0x8d056d){const _0x6630b1={_0x3c6c30:0x231,_0x25660a:0x19c,_0x134474:0x17c,_0x530621:0x1c1,_0x38626e:0x194,_0x329f7c:0x24e,_0x301ad5:0x1b5,_0x554d80:0x1bb,_0xa8e56e:0x217},_0x2584ac={_0x10bb8f:0xe9,_0x431d38:0xff};function _0x57aacb(_0x2f7535,_0x53a36c,_0x3b5969,_0x35413b){return _0x1213ea(_0x2f7535-_0x2584ac._0x10bb8f,_0x53a36c-_0x2584ac._0x431d38,_0x2f7535,_0x35413b-0x3b0);}function _0x12151a(_0xa7cc5d,_0x12436f,_0x4793f7,_0xa06345){return _0x4d4502(_0xa06345- -0xc3,_0x12436f-0x84,_0x4793f7,_0xa06345-0x11);}if(typeof _0x8d056d!==_0x57aacb(_0x6630b1._0x3c6c30,_0x6630b1._0x25660a,_0x6630b1._0x134474,_0x6630b1._0x530621)||_0x8d056d===null)return![];return _0x8d056d[_0x12151a(-_0x6630b1._0x38626e,-_0x6630b1._0x329f7c,-_0x6630b1._0x301ad5,-0x205)]===_0x57aacb(0x25c,0x282,_0x6630b1._0x554d80,_0x6630b1._0xa8e56e)||_0x8d056d['action']==='run';}function normalizeExecutionError(_0x24f2f2){const _0x176dc2={_0x1c4146:0x255,_0x1fac47:0x29a,_0x310587:0x2be,_0x33d0a3:0x275,_0x3016cd:0x215,_0xaff053:0x132,_0x5c7b3d:0x171,_0x233636:0x255,_0x1a712b:0x148,_0x4022f4:0x110,_0x4acf61:0x11c,_0x4af104:0x22c,_0x2ec5c7:0x2d8,_0x54ab37:0x341,_0x235cd4:0x135,_0x49a73e:0x11f},_0x1b359a={_0x21ae13:0x19c,_0x565e50:0x373};function _0x5b52fe(_0x456554,_0x485ebe,_0x1b15bd,_0x310b4c){return _0x1213ea(_0x456554-_0x1b359a._0x21ae13,_0x485ebe-0x1bf,_0x456554,_0x485ebe-_0x1b359a._0x565e50);}if(_0x24f2f2 instanceof ToolExecutionError)return{'errorMessage':_0x24f2f2[_0x402f55(_0x176dc2._0x1c4146,_0x176dc2._0x1fac47,_0x176dc2._0x310587,0x285)],'structured':{'error':_0x24f2f2['message'],..._0x24f2f2[_0x402f55(_0x176dc2._0x33d0a3,_0x176dc2._0x3016cd,0x2a0,0x22e)]}};if(_0x24f2f2 instanceof Error)return{'errorMessage':_0x24f2f2[_0x5b52fe(_0x176dc2._0xaff053,0x148,_0x176dc2._0x5c7b3d,0x16b)],'structured':{'error':_0x24f2f2[_0x402f55(_0x176dc2._0x233636,0x21e,0x2b8,0x23a)]}};if(typeof _0x24f2f2==='object'&&_0x24f2f2!==null&&_0x5b52fe(0x109,_0x176dc2._0x1a712b,_0x176dc2._0x4022f4,_0x176dc2._0x4acf61)in _0x24f2f2&&typeof _0x24f2f2[_0x402f55(_0x176dc2._0x233636,0x2b1,_0x176dc2._0x4af104,0x258)]===_0x402f55(_0x176dc2._0x2ec5c7,_0x176dc2._0x54ab37,0x2fa,0x333))return{'errorMessage':_0x24f2f2[_0x5b52fe(_0x176dc2._0x235cd4,0x148,0x12d,0x160)],'structured':{'error':_0x24f2f2[_0x5b52fe(0x13d,0x148,0x185,_0x176dc2._0x49a73e)]}};const _0x2fef1d=String(_0x24f2f2);function _0x402f55(_0x330f76,_0x599db7,_0x44ac1a,_0x27f8db){return _0x1213ea(_0x330f76-0x15c,_0x599db7-0x4d,_0x44ac1a,_0x330f76-0x480);}return{'errorMessage':_0x2fef1d,'structured':{'error':_0x2fef1d}};}async function emitEvent(_0x20e600,_0x295694,_0x55a0a4){await _0x20e600?.(_0x295694,_0x55a0a4);}async function resolveDispatchDecision(_0x561c4d,_0x11ccfa,_0xa813a7){const _0x19998b={_0x5274f0:0x1bf,_0x2e01a5:0x162,_0x309deb:0x232,_0x3aa036:0xaf,_0x3e65c2:0x6b,_0xbbd4b6:0xb5,_0x3566db:0x65,_0x29c2f6:0x0,_0x7ed946:0x57,_0xdf4ad7:0x9e,_0x1ca68c:0xf3,_0x16b439:0x72,_0x4a3bc2:0x113},_0x1554c1={_0x1a7146:0x5e},_0x176618={_0x5c6a02:0xa6,_0x502909:0x7d,_0x3ec97d:0x10b,_0x170c6b:0x15a,_0x5bec83:0x169,_0x2864fa:0x1cb,_0x137004:0x117,_0x21e51d:0x10b,_0x21bc91:0x15a,_0x1fe1eb:0x133,_0x50f5fb:0x185},_0x4aa8e9={_0x29c6df:0xf4},_0x5e7c71={_0x44b50d:0x1b,_0x3a5e0a:0x41};function _0x421bd4(_0x582917,_0x4a5038,_0x5068fa,_0x5426d3){return _0x1213ea(_0x582917-_0x5e7c71._0x44b50d,_0x4a5038-_0x5e7c71._0x3a5e0a,_0x5426d3,_0x4a5038-0x255);}if(!_0x561c4d)return{'action':_0x164cbc(0x1c1,_0x19998b._0x5274f0,_0x19998b._0x2e01a5,0x1f3)};const _0x5106f7=Promise[_0x164cbc(_0x19998b._0x309deb,0x22a,0x1d7,0x1b7)]()[_0x421bd4(_0x19998b._0x3aa036,_0x19998b._0x3e65c2,0x97,_0x19998b._0xbbd4b6)](()=>_0x561c4d(_0x11ccfa,_0xa813a7));if(!_0xa813a7[_0x421bd4(-_0x19998b._0x3566db,_0x19998b._0x29c2f6,0x60,-_0x19998b._0x7ed946)]){const _0x4603e5=await _0x5106f7;return isDispatchDecision(_0x4603e5)?_0x4603e5:{'action':_0x421bd4(_0x19998b._0xdf4ad7,0x4e,0x8d,0x60)};}const _0x597421=new Promise((_0x58ac2d,_0x2dd46d)=>{const _0x79f7e5={_0x460971:0x379,_0x25025b:0x79},_0x5965e1={_0x43daa0:0x22b,_0x1fb0d5:0x23a,_0x17d03a:0x446,_0x5f566c:0x3fa,_0x2fff42:0x4e8,_0xc42fa6:0x213},_0x1cb1c5=()=>{const _0x101f95={_0x5aa15c:0x188};function _0x4d6dfb(_0x3c8026,_0x343fe2,_0x132bfc,_0x5f2012){return _0x63b3(_0x343fe2-_0x101f95._0x5aa15c,_0x132bfc);}_0xa813a7[_0x4d6dfb(_0x5965e1._0x43daa0,0x213,_0x5965e1._0x1fb0d5,0x241)]?.[_0x43ec33(0x474,_0x5965e1._0x17d03a,_0x5965e1._0x5f566c,0x452)](_0x43ec33(0x483,0x4ce,0x4bd,_0x5965e1._0x2fff42),_0x1cb1c5);function _0x43ec33(_0x590cb7,_0x2a1553,_0x502475,_0x2c86fe){return _0x63b3(_0x2a1553-0x36f,_0x502475);}_0x2dd46d(toAbortError(_0xa813a7[_0x4d6dfb(0x21f,_0x5965e1._0xc42fa6,0x285,0x1f9)]?.['reason']));};function _0x352577(_0xfd2e34,_0xf6e8ff,_0x440f11,_0x24e361){return _0x164cbc(_0xf6e8ff,_0xfd2e34- -_0x79f7e5._0x460971,_0x440f11-_0x79f7e5._0x25025b,_0x24e361-0x1d9);}if(_0xa813a7['signal']?.['aborted']){_0x2dd46d(toAbortError(_0xa813a7[_0x5cbc52(0xc2,_0x176618._0x5c6a02,_0x176618._0x502909,_0x176618._0x3ec97d)][_0x352577(-_0x176618._0x170c6b,-_0x176618._0x5bec83,-0x150,-_0x176618._0x2864fa)]));return;}function _0x5cbc52(_0x24f7c1,_0x3217cb,_0x546a3a,_0x4f9cf2){return _0x421bd4(_0x24f7c1-_0x4aa8e9._0x29c6df,_0x24f7c1-0xc2,_0x546a3a-0x5e,_0x546a3a);}_0xa813a7[_0x5cbc52(0xc2,0x60,_0x176618._0x137004,0x8e)]?.[_0x5cbc52(_0x176618._0x21e51d,_0x176618._0x21bc91,0x105,_0x176618._0x1fe1eb)](_0x5cbc52(0x196,_0x176618._0x50f5fb,0x20a,0x1e4),_0x1cb1c5,{'once':!![]});});function _0x164cbc(_0x2fd1c2,_0x37a071,_0x26f2aa,_0x25c042){return _0x4d4502(_0x37a071-0x32a,_0x37a071-_0x1554c1._0x1a7146,_0x2fd1c2,_0x25c042-0x1c5);}const _0x16f4d4=await Promise[_0x421bd4(_0x19998b._0x1ca68c,0xb1,_0x19998b._0x16b439,_0x19998b._0x4a3bc2)]([_0x5106f7,_0x597421]);return isDispatchDecision(_0x16f4d4)?_0x16f4d4:{'action':_0x164cbc(0x172,0x1bf,0x1ac,0x170)};}async function executeCapturedToolCall(_0xfccdf7,_0x312b5b,_0x2bed4c,_0x5ee4b3,_0xe44496){const _0x14bab1={_0x5b49a9:0xcb,_0x442534:0x7b,_0x2c88f5:0x10c,_0x54a853:0x100,_0xdf85a3:0x121,_0x378456:0x12e,_0x286a67:0xf0,_0x250631:0x10b,_0x3cc5eb:0xdb,_0x8fc987:0x9a,_0xa773a1:0x4c,_0x462458:0x7f,_0x42cba9:0xf2,_0x9b778f:0x74,_0x22a2b8:0xb5,_0x36e15f:0xcb,_0x1b88bf:0x88,_0xca49a3:0x11f,_0x535989:0x146,_0x3d209c:0x174,_0x3773fb:0x3c,_0x4b3e39:0x30,_0xf69f5e:0x128,_0x144533:0x105,_0x3d1ec9:0x6a,_0x5e4d26:0x9c,_0x5ca04d:0x170,_0x50bec1:0xd4,_0x35db4b:0x4b,_0xc1bce0:0x55,_0x5a2bd8:0x1a7,_0x54b29b:0x176,_0xe84a4d:0x186,_0x527449:0x20f,_0x304823:0x19e,_0x21e9e1:0xff,_0x1f7ae9:0xfc,_0x2aac0c:0x21b,_0x50d419:0x17a,_0x42ca8c:0x1ae,_0x5d49c8:0xa0},_0x584840={_0x379fe7:0x149,_0x37ad7d:0x180,_0x21c6a4:0x177,_0x5386e1:0x179,_0x59bd50:0x1cd,_0x448999:0x18c},_0x1cdaec={_0x1820f5:0x1b,_0x10727a:0x1c6},_0x1db70a={_0x36163e:0x1d};function _0x3570ad(_0x4c6856,_0xdb8329,_0x1e8d4a,_0x20c59b){return _0x1213ea(_0x4c6856-0x145,_0xdb8329-_0x1db70a._0x36163e,_0x1e8d4a,_0xdb8329-0x18a);}const _0x41daff={..._0x2bed4c,'toolCallId':_0x312b5b['id'],'permissionClass':resolveToolPermissionClass(_0xfccdf7),'executionAuthorization':void 0x0};throwIfAborted(_0x41daff[_0x3570ad(-0xa3,-_0x14bab1._0x5b49a9,-0x75,-_0x14bab1._0x442534)]);let _0x18ff90;function _0x26095e(_0x4b67a3,_0x1783e8,_0x25b306,_0x2cdbaf){return _0x4d4502(_0x2cdbaf-_0x1cdaec._0x1820f5,_0x1783e8-0x1f4,_0x1783e8,_0x2cdbaf-_0x1cdaec._0x10727a);}try{_0x18ff90=await resolveDispatchDecision(_0x5ee4b3,_0x312b5b,_0x41daff);}catch(_0xdfee83){if(isAbortError(_0xdfee83)){const _0x52bd75=createAbortedToolResult(_0x312b5b,_0xdfee83);return await emitEvent(_0xe44496,{'type':_0x3570ad(-_0x14bab1._0x2c88f5,-0xdb,-_0x14bab1._0x54a853,-0x127),'toolCall':_0x312b5b,'result':_0x52bd75},_0x41daff),_0x52bd75;}const {errorMessage:_0x2f3383,structured:_0x3f7801}=normalizeExecutionError(_0xdfee83),_0x46d550=createErrorToolResult(_0x312b5b,_0x2f3383,_0x3f7801);return await emitEvent(_0xe44496,{'type':_0x26095e(-0x209,-0x16f,-0x18c,-0x1ae),'toolCall':_0x312b5b,'result':_0x46d550},_0x41daff),_0x46d550;}throwIfAborted(_0x41daff['signal']);if(_0x18ff90[_0x26095e(-0xcf,-_0x14bab1._0xdf85a3,-0x10e,-0x127)]==='reject'){const _0x13c6f3=createRejectedToolResult(_0x312b5b,_0x18ff90[_0x26095e(-_0x14bab1._0x378456,-0xbc,-0x92,-_0x14bab1._0x286a67)]);return await emitEvent(_0xe44496,{'type':_0x3570ad(-0xaf,-0x90,-0x53,-0x70),'toolCall':_0x312b5b,'result':_0x13c6f3},_0x41daff),_0x13c6f3;}if(!_0xfccdf7){const _0x42b4d0=createUnknownToolResult(_0x312b5b);return await emitEvent(_0xe44496,{'type':_0x3570ad(-_0x14bab1._0x250631,-_0x14bab1._0x3cc5eb,-0x148,-_0x14bab1._0x8fc987),'toolCall':_0x312b5b,'result':_0x42b4d0},_0x41daff),_0x42b4d0;}const _0x210433={..._0x41daff,'executionAuthorization':_0x18ff90[_0x3570ad(-_0x14bab1._0xa773a1,-0xbc,-_0x14bab1._0x462458,-_0x14bab1._0x42cba9)]};throwIfAborted(_0x210433[_0x3570ad(-0x102,-0xcb,-0xf4,-0x106)]),await emitEvent(_0xe44496,{'type':_0x3570ad(-_0x14bab1._0x9b778f,-_0x14bab1._0x22a2b8,-0xdf,-0x58),'toolCall':_0x312b5b},_0x210433);try{throwIfAborted(_0x210433[_0x3570ad(-0xe6,-_0x14bab1._0x36e15f,-_0x14bab1._0x1b88bf,-0x7a)]);const _0x1724db=validateToolInput(_0x312b5b[_0x26095e(-_0x14bab1._0xca49a3,-_0x14bab1._0x535989,-_0x14bab1._0x3d209c,-0x124)],_0xfccdf7[_0x3570ad(0x18,-0x8,_0x14bab1._0x3773fb,-_0x14bab1._0x4b3e39)]),_0x3ca855=await _0xfccdf7[_0x3570ad(-_0x14bab1._0xf69f5e,-0xc9,-0x80,-_0x14bab1._0x144533)](_0x1724db,_0x210433),_0x8f07bd=[],_0x2a70c3=addAbortListener(_0x210433[_0x3570ad(-_0x14bab1._0x3d1ec9,-_0x14bab1._0x5b49a9,-0xfd,-_0x14bab1._0x5e4d26)],()=>{const _0x28fac0={_0x332494:0x105,_0xcf86cc:0x212};function _0x2228b2(_0x2c4d6d,_0x40896d,_0x203046,_0xa262d9){return _0x3570ad(_0x2c4d6d-_0x28fac0._0x332494,_0xa262d9-_0x28fac0._0xcf86cc,_0x2c4d6d,_0xa262d9-0xc5);}function _0xdca2b2(_0x11eb4e,_0x572550,_0x274b2a,_0x10c5ce){return _0x3570ad(_0x11eb4e-0x168,_0x11eb4e-0x1b1,_0x572550,_0x10c5ce-0x1ea);}void _0x3ca855[_0xdca2b2(_0x584840._0x379fe7,_0x584840._0x37ad7d,0x146,_0x584840._0x21c6a4)](void 0x0)[_0xdca2b2(_0x584840._0x5386e1,0x1b1,_0x584840._0x59bd50,_0x584840._0x448999)](()=>{});});try{throwIfAborted(_0x210433['signal']);let _0x410276=await _0x3ca855[_0x26095e(-_0x14bab1._0x2c88f5,-0x102,-_0x14bab1._0x5ca04d,-0xfc)]();while(!_0x410276[_0x3570ad(-_0x14bab1._0x50bec1,-0xab,-_0x14bab1._0x35db4b,-_0x14bab1._0xc1bce0)]){throwIfAborted(_0x210433[_0x26095e(-_0x14bab1._0x5a2bd8,-_0x14bab1._0x54b29b,-_0x14bab1._0xe84a4d,-0x19e)]);const _0x1a8650=normalizeToolOutputValue(_0x410276[_0x3570ad(-0x90,-0xca,-0x7c,-_0x14bab1._0x144533)]);_0x8f07bd['push'](_0x1a8650),await emitEvent(_0xe44496,{'type':'tool_output_chunk','toolCall':_0x312b5b,'chunk':_0x1a8650},_0x210433),throwIfAborted(_0x210433[_0x26095e(-_0x14bab1._0x527449,-0x208,-0x14d,-_0x14bab1._0x304823)]),_0x410276=await _0x3ca855[_0x26095e(-0x10a,-_0x14bab1._0x21e9e1,-0x105,-_0x14bab1._0x1f7ae9)]();}throwIfAborted(_0x210433['signal']);const _0x4b4a95=_0x410276['value']===void 0x0?deriveFinalToolOutput(_0x8f07bd):normalizeToolOutputValue(_0x410276['value']),_0x1893d7=createSuccessToolResult(_0x312b5b,_0x4b4a95,_0x8f07bd);return await emitEvent(_0xe44496,{'type':_0x26095e(-0x1c1,-_0x14bab1._0x2aac0c,-_0x14bab1._0x50d419,-_0x14bab1._0x42ca8c),'toolCall':_0x312b5b,'result':_0x1893d7},_0x210433),_0x1893d7;}catch(_0x3b3f26){if(isAbortError(_0x3b3f26)){const _0x35edb9=createAbortedToolResult(_0x312b5b,_0x3b3f26,_0x8f07bd);return await emitEvent(_0xe44496,{'type':'tool_completed','toolCall':_0x312b5b,'result':_0x35edb9},_0x210433),_0x35edb9;}const {errorMessage:_0x737a42,structured:_0x4f0ad6}=normalizeExecutionError(_0x3b3f26),_0x27e6fd=createErrorToolResult(_0x312b5b,_0x737a42,_0x4f0ad6,_0x8f07bd);return await emitEvent(_0xe44496,{'type':'tool_completed','toolCall':_0x312b5b,'result':_0x27e6fd},_0x210433),_0x27e6fd;}finally{_0x2a70c3();}}catch(_0x39e00e){if(isAbortError(_0x39e00e)){const _0x1d622f=createAbortedToolResult(_0x312b5b,_0x39e00e);return await emitEvent(_0xe44496,{'type':'tool_completed','toolCall':_0x312b5b,'result':_0x1d622f},_0x210433),_0x1d622f;}const {errorMessage:_0x2b755e,structured:_0x8804ed}=normalizeExecutionError(_0x39e00e),_0x862482=createErrorToolResult(_0x312b5b,_0x2b755e,_0x8804ed);return await emitEvent(_0xe44496,{'type':_0x3570ad(-0x69,-0xdb,-0x10e,-_0x14bab1._0x5d49c8),'toolCall':_0x312b5b,'result':_0x862482},_0x210433),_0x862482;}}async function executeToolCall(_0x5eaeee,_0x3214c3,_0x44bc4c,_0x416ef7,_0x57b650){const _0x1fad09={_0x1c1596:0x1c8,_0x4dc08c:0x217,_0xfafd00:0x427,_0x4e6dba:0x46f,_0xbeb44d:0x46d,_0x179a86:0x4bd},_0x437089={_0x3c5b7c:0x4e},_0x2c0546={_0x32e4bf:0x8d,_0x3ab6a6:0x36b},_0xd67560=_0x5eaeee[_0x95da6f(_0x1fad09._0x1c1596,0x22c,_0x1fad09._0x4dc08c,0x1b4)](_0x3214c3[_0x95da6f(0x15b,0x11b,0x155,0x126)]),_0x38e016=_0xd67560?.[_0x3e4b87(0x44a,0x3e8,0x406,_0x1fad09._0xfafd00)]?.[_0x3e4b87(_0x1fad09._0x4e6dba,0x47f,_0x1fad09._0xbeb44d,_0x1fad09._0x179a86)]();function _0x95da6f(_0x365037,_0x235c63,_0x3425ce,_0x36114e){return _0x1213ea(_0x365037-0x19,_0x235c63-_0x2c0546._0x32e4bf,_0x235c63,_0x365037-_0x2c0546._0x3ab6a6);}function _0x3e4b87(_0x14a093,_0x35d715,_0x53482e,_0x5ba40a){return _0x4d4502(_0x53482e-0x59a,_0x35d715-_0x437089._0x3c5b7c,_0x5ba40a,_0x5ba40a-0x8);}try{return await executeCapturedToolCall(_0xd67560,_0x3214c3,_0x44bc4c,_0x416ef7,_0x57b650);}finally{_0x38e016?.();}}function createInternalToolRuntime(_0x4aa321=[],_0x2e97d8={}){const _0x3e2519={_0x187cde:0x1da,_0x4246c0:0x292},_0x1d1d9c={_0x504a8e:0x13e,_0x35dff7:0xf7,_0x21f1d9:0x1c9,_0x259818:0x1c0,_0x533310:0x1b4},_0x4aa665={_0x38d4ee:0x313,_0x4b9ff2:0x2bd,_0x285c01:0x321,_0xf474c2:0x32b},_0x436fe9={_0x4b4479:0x224},_0x156ef4={_0x5ab823:0x54c};let _0x2bb091=new ToolRegistry(_0x4aa321);return{'listToolSchemas'(){function _0x5a261d(_0x1f9a1f,_0x4592df,_0x5d3f84,_0x3e40ce){return _0x63b3(_0x5d3f84-0x3b7,_0x3e40ce);}return _0x2bb091[_0x5a261d(0x4f6,0x4b8,0x50b,_0x156ef4._0x5ab823)]();},'setTools'(_0x100356){_0x2bb091=new ToolRegistry(_0x100356);},async 'executeCalls'(_0x63e8ba,_0x3e32de){function _0x29e716(_0x183668,_0x3521bb,_0x126bcd,_0x4b7eac){return _0x63b3(_0x3521bb- -0x276,_0x4b7eac);}function _0x3d04a2(_0x34cd14,_0x3652cb,_0x5c1ad6,_0xd84a26){return _0x63b3(_0x34cd14-_0x436fe9._0x4b4479,_0x3652cb);}return await Promise[_0x29e716(-_0x1d1d9c._0x504a8e,-0x14a,-0x1a8,-_0x1d1d9c._0x35dff7)](_0x63e8ba[_0x29e716(-_0x1d1d9c._0x21f1d9,-_0x1d1d9c._0x259818,-_0x1d1d9c._0x533310,-0x154)](async _0x856dfb=>{const _0x39fcce={_0x644fd:0x27,_0x57a64a:0x397,_0xde10ee:0x2e};function _0x224c36(_0x2714e9,_0x21a69f,_0x2a1e48,_0x65ed68){return _0x29e716(_0x2714e9-_0x39fcce._0x644fd,_0x2714e9-_0x39fcce._0x57a64a,_0x2a1e48-_0x39fcce._0xde10ee,_0x21a69f);}function _0x297b81(_0x20cf68,_0x585967,_0x3c0485,_0x18871c){return _0x3d04a2(_0x585967-0x1e,_0x3c0485,_0x3c0485-0x96,_0x18871c-0xff);}return await executeToolCall(_0x2bb091,_0x856dfb,_0x3e32de,_0x2e97d8[_0x297b81(0x2fc,0x364,_0x4aa665._0x38d4ee,0x31c)],_0x2e97d8[_0x297b81(_0x4aa665._0x4b9ff2,_0x4aa665._0x285c01,_0x4aa665._0xf474c2,0x2d4)]);}));},async 'execute'(_0x31c66b,_0x40e9c7){const [_0x16c650]=await this[_0x29112d(_0x3e2519._0x187cde,0x269,_0x3e2519._0x4246c0,0x22c)]([_0x31c66b],_0x40e9c7);function _0x29112d(_0x2bfe9f,_0xe4e7ce,_0x17db48,_0x2fda19){return _0x63b3(_0x2fda19-0x120,_0xe4e7ce);}return _0x16c650;}};}function getOrderedObserverExtensions(_0x2a9f61,_0x4bb794){const _0x52e2ec={_0xc137fd:0x20d,_0x5e4137:0x211,_0x5b8a15:0x1d8},_0x4d39de={_0x16fd40:0x32,_0x3f7d1a:0x25,_0x4ea019:0x1e,_0x48761b:0x2a4,_0x555a98:0x2ee,_0x78a42:0x284,_0xb8865c:0x2b3,_0xaeb86b:0x6e,_0x35fade:0x2d,_0x8d9ac8:0x2ee},_0x61cbbb={_0x369585:0xc5,_0x31a831:0x196},_0x42e74c={_0x5cd264:0x137,_0x50f204:0x1cc,_0x7f8639:0x1e0,_0x377bd5:0x19c,_0x3a3dca:0x284,_0x24fa85:0x214,_0x332e71:0x258,_0xa1040d:0x214},_0xdd413f={_0x59dab4:0x95,_0x272ea2:0xdd};function _0x4887d2(_0x167de5,_0x8a0894,_0x400400,_0x50047c){return _0x4d4502(_0x400400-0x2db,_0x8a0894-_0xdd413f._0x59dab4,_0x167de5,_0x50047c-_0xdd413f._0x272ea2);}return _0x2a9f61[_0x4887d2(_0x52e2ec._0xc137fd,_0x52e2ec._0x5e4137,0x1bb,_0x52e2ec._0x5b8a15)](_0x1ccb2f=>{const _0x5a7bf4={_0x2a6541:0x1ce,_0x1415be:0x18,_0x544cdf:0x18f},_0x5a7522={_0x1c55d1:0x10a,_0x498aab:0x9};function _0xc7836c(_0x88b0d2,_0x3a993c,_0x5f1c03,_0x40987c){return _0x4887d2(_0x5f1c03,_0x3a993c-_0x5a7522._0x1c55d1,_0x88b0d2-0xda,_0x40987c-_0x5a7522._0x498aab);}function _0x3e382a(_0x149548,_0x546fe8,_0x3bb454,_0x14787e){return _0x4887d2(_0x149548,_0x546fe8-_0x5a7bf4._0x2a6541,_0x14787e- -_0x5a7bf4._0x1415be,_0x14787e-_0x5a7bf4._0x544cdf);}return _0x1ccb2f[_0x3e382a(_0x42e74c._0x5cd264,_0x42e74c._0x50f204,_0x42e74c._0x7f8639,_0x42e74c._0x377bd5)]!==![]&&_0x1ccb2f[_0xc7836c(_0x42e74c._0x3a3dca,0x225,_0x42e74c._0x24fa85,0x2cc)]===_0x4bb794&&_0x1ccb2f[_0xc7836c(0x24c,0x1eb,_0x42e74c._0x332e71,_0x42e74c._0xa1040d)]==='observer';})['sort']((_0x4273cb,_0x16ddb1)=>{function _0x561eb6(_0x15a178,_0x204296,_0x497f66,_0x2daa8c){return _0x4887d2(_0x15a178,_0x204296-0x24,_0x204296- -0x466,_0x2daa8c-0x11d);}function _0x1176ce(_0x3185d2,_0x42096f,_0x3b5803,_0x55bd5d){return _0x4887d2(_0x42096f,_0x42096f-_0x61cbbb._0x369585,_0x55bd5d- -_0x61cbbb._0x31a831,_0x55bd5d-0xae);}if(_0x4273cb[_0x1176ce(_0x4d39de._0x16fd40,-0x15,_0x4d39de._0x3f7d1a,-_0x4d39de._0x4ea019)]===!![]&&_0x16ddb1[_0x561eb6(-_0x4d39de._0x48761b,-_0x4d39de._0x555a98,-_0x4d39de._0x78a42,-_0x4d39de._0xb8865c)]!==!![])return 0x1;if(_0x4273cb[_0x1176ce(-_0x4d39de._0xaeb86b,-_0x4d39de._0x35fade,-0x6d,-0x1e)]!==!![]&&_0x16ddb1[_0x561eb6(-0x2f1,-_0x4d39de._0x8d9ac8,-0x28b,-0x340)]===!![])return-0x1;return _0x4273cb['order']-_0x16ddb1['order'];});}function getOrderedTransformerExtensions(_0x534343,_0x32cd0d){const _0x1ba68a={_0x35022a:0x6e,_0x3b262b:0xac,_0x5b608a:0x28,_0x40075d:0x14f,_0x1029d6:0xdd},_0x3732e7={_0x376eb1:0xbd,_0x1fe0d7:0x1b,_0x3f24de:0xc7},_0x215dfc={_0xd9bbd2:0xcc,_0x21a1f7:0xdf,_0x5ef8d8:0x9d},_0x43d824={_0x14cb5b:0x1c9,_0x445d85:0x11e},_0x56cb92={_0x5b6f47:0x1cd,_0x328989:0x14e};function _0x251ed0(_0xf3a30,_0x1b597b,_0x398b92,_0x54a84a){return _0x4d4502(_0xf3a30-0x5f8,_0x1b597b-_0x56cb92._0x5b6f47,_0x398b92,_0x54a84a-_0x56cb92._0x328989);}function _0x184fe8(_0x22e2b7,_0x493465,_0x28adca,_0x29434d){return _0x1213ea(_0x22e2b7-_0x43d824._0x14cb5b,_0x493465-_0x43d824._0x445d85,_0x493465,_0x22e2b7-0x177);}return _0x534343[_0x184fe8(-0x45,-_0x1ba68a._0x35022a,-_0x1ba68a._0x3b262b,-_0x1ba68a._0x5b608a)](_0x585d6f=>{const _0x3f5dac={_0x56f541:0x109,_0x13ccc7:0x110,_0x423e87:0xcb};function _0x368770(_0x4a408a,_0x310188,_0x5b7e43,_0x408b8f){return _0x184fe8(_0x5b7e43- -_0x215dfc._0xd9bbd2,_0x408b8f,_0x5b7e43-_0x215dfc._0x21a1f7,_0x408b8f-_0x215dfc._0x5ef8d8);}function _0x5113d2(_0x2715e8,_0x5c471e,_0x33c226,_0x2b1b10){return _0x184fe8(_0x2b1b10-_0x3f5dac._0x56f541,_0x2715e8,_0x33c226-_0x3f5dac._0x13ccc7,_0x2b1b10-_0x3f5dac._0x423e87);}return _0x585d6f[_0x5113d2(0x110,0x107,0x56,_0x3732e7._0x376eb1)]!==![]&&_0x585d6f[_0x368770(-0x13b,-0x122,-0x122,-0xe1)]===_0x32cd0d&&_0x585d6f[_0x5113d2(0x67,_0x3732e7._0x1fe0d7,_0x3732e7._0x3f24de,0x7b)]==='transformer';})[_0x184fe8(-0xe1,-_0x1ba68a._0x40075d,-0x9d,-_0x1ba68a._0x1029d6)]((_0x2bd745,_0x5dc985)=>_0x2bd745[_0x251ed0(0x450,0x4be,0x408,0x478)]-_0x5dc985[_0x251ed0(0x450,0x452,0x442,0x417)]);}function _0x1213ea(_0x1b9809,_0x4a88dd,_0x5713fc,_0x12ac26){return _0x63b3(_0x12ac26- -0x2e0,_0x5713fc);}function createExtensionRegistry(){const _0xaf018={_0x4064ba:0x2c7,_0x19e362:0x211,_0x26e9d0:0x21c},_0x324e1c={_0x331990:0x330},_0x16337a={_0x23a6c0:0x5a,_0x18d3df:0x5c,_0xaa7644:0x21},_0x5b74a6={_0x545543:0x219,_0xb35199:0x2aa,_0xab966c:0x21c,_0x3296e1:0x1b1,_0x43faba:0x1f5,_0x297e36:0x221,_0x685740:0x285,_0x23be1e:0x195,_0x327c46:0x1f8,_0x1b0861:0x203,_0x339c1c:0x284,_0x40c797:0x24c,_0x5b2cf8:0x2b8,_0x1697f7:0x232,_0x13f5ec:0x284,_0x638c00:0x1f3,_0x4dabee:0x230},_0x4f7566={_0x380176:0x337},_0x5d2ea3=[];return{'register'(_0x3bd1e6){const _0x4c9499={_0x21b7f9:0x345};if(_0x3bd1e6[_0x287a35(-_0x5b74a6._0x545543,-_0x5b74a6._0xb35199,-_0x5b74a6._0xab966c,-0x26a)]===_0xbddefe(-_0x5b74a6._0x3296e1,-_0x5b74a6._0x43faba,-0x17e,-0x1df)&&_0x3bd1e6[_0x287a35(-_0x5b74a6._0x297e36,-0x202,-0x292,-0x228)]!==![]&&_0x3bd1e6[_0xbddefe(-0x2af,-0x211,-_0x5b74a6._0x685740,-0x256)]===!![]){const _0x2d7d2d=_0x5d2ea3[_0xbddefe(-0x196,-_0x5b74a6._0x23be1e,-0x1c9,-_0x5b74a6._0x327c46)](_0x24b4c0=>_0x24b4c0['kind']===_0x287a35(-0x1f8,-0x24b,-0x1f1,-0x1ed)&&_0x24b4c0['enabled']!==![]&&_0x24b4c0[_0xbddefe(-0x288,-0x1c2,-0x1fe,-0x224)]===_0x3bd1e6[_0xbddefe(-0x202,-0x1b5,-0x1e8,-0x224)]&&_0x24b4c0[_0xbddefe(-0x221,-0x1f2,-0x1e8,-0x256)]===!![]);if(_0x2d7d2d)throw new Error(_0x287a35(-_0x5b74a6._0x1b0861,-_0x5b74a6._0x339c1c,-0x24e,-_0x5b74a6._0x40c797)+_0x3bd1e6['id']+_0x287a35(-0x1d5,-_0x5b74a6._0x5b2cf8,-0x23a,-0x246)+_0x3bd1e6[_0x287a35(-0x1ef,-0x21f,-0x201,-_0x5b74a6._0x1697f7)]+_0x287a35(-0x28b,-0x272,-0x26e,-0x2b2)+_0x2d7d2d['id']+'\x22\x20is\x20already\x20enabled');}function _0x287a35(_0x244915,_0x4e01ed,_0x362c0f,_0x406d02){return _0x63b3(_0x406d02- -_0x4c9499._0x21b7f9,_0x4e01ed);}function _0xbddefe(_0x58ec22,_0x39c7c6,_0x5740b4,_0x3beb08){return _0x63b3(_0x3beb08- -_0x4f7566._0x380176,_0x58ec22);}_0x5d2ea3[_0x287a35(-0x26c,-_0x5b74a6._0x13f5ec,-_0x5b74a6._0x638c00,-_0x5b74a6._0x4dabee)]({..._0x3bd1e6});},async 'runTransformers'(_0x216f78,_0x4da7f8,_0x50a566){const _0x15f17c={_0x44e3af:0x7f};let _0x35ba0d=_0x4da7f8;for(const _0x31b1d9 of getOrderedTransformerExtensions(_0x5d2ea3,_0x216f78)){_0x35ba0d=await _0x31b1d9[_0x44e09e(0x5e,_0x16337a._0x23a6c0,_0x16337a._0x18d3df,_0x16337a._0xaa7644)](_0x35ba0d,_0x50a566);}function _0x44e09e(_0x20c1db,_0x3ee47f,_0x7e8b0d,_0x2e6916){return _0x63b3(_0x3ee47f- -_0x15f17c._0x44e3af,_0x7e8b0d);}return _0x35ba0d;},async 'runObservers'(_0x236355,_0x4666c9,_0x2caa83){function _0x2fa5fd(_0xba6376,_0x9a0d9f,_0x30ddd4,_0x44a31b){return _0x63b3(_0x30ddd4- -_0x324e1c._0x331990,_0x9a0d9f);}for(const _0x3a67cb of getOrderedObserverExtensions(_0x5d2ea3,_0x236355)){await _0x3a67cb[_0x2fa5fd(-_0xaf018._0x4064ba,-_0xaf018._0x19e362,-0x257,-_0xaf018._0x26e9d0)](_0x4666c9,_0x2caa83);}}};}function createEmptySnapshot(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'toolCallCount':0x0,'totalModelTimeMs':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0,'totalCostUsdTicks':0x0,'totalReportedCostUsdTicks':0x0,'totalEstimatedCostUsdTicks':0x0,'reportedCostCallCount':0x0,'estimatedCostCallCount':0x0,'unpricedModelCallCount':0x0,'historicalMetricsComplete':!![],'missingHistoricalModelCallCount':0x0};}function applyModelCall(_0x730de,_0x33e9da){const _0x5850da={_0x58c46a:0xda,_0x419b9c:0x83,_0x14e0bb:0x6e,_0x469046:0x6,_0x5b69c9:0x56,_0x53847b:0x2c9,_0x6f7a77:0x265,_0x3c1bc8:0x2f3,_0x315b5e:0x33b,_0x6fd55a:0x388,_0x155d85:0x321,_0x25e84c:0x30e,_0x1f151b:0xf0,_0x5a0ae8:0x2b,_0x1f7e09:0x71,_0x207cf2:0x110,_0x579928:0x2b6,_0x520c44:0xd,_0x531977:0x2d,_0x2a111b:0x38,_0x18bd0f:0x32,_0x4472ed:0x34,_0x45e98f:0x64,_0x8d3cc:0xfa,_0x51aa94:0x1b,_0x445f4d:0x29,_0x3234d7:0x53,_0x17495d:0x61,_0x24d36c:0xde,_0x503694:0x6d,_0x200534:0x35b,_0x3b5ca0:0x2d6,_0x14d7eb:0xca,_0x157c35:0x70,_0x59efc0:0x92,_0xfb95d9:0x2ce,_0xa746f1:0x2f,_0x5cb7ed:0x7e,_0x5c6a2c:0x2f0},_0x4b0ad8={_0x350dd4:0x1b9},_0x365a9b={_0x96cb56:0xca},_0x270168=_0x33e9da[_0x393e31(_0x5850da._0x58c46a,_0x5850da._0x419b9c,_0x5850da._0x14e0bb,_0x5850da._0x469046)];function _0x393e31(_0x135890,_0xce687d,_0x270677,_0x44a3bc){return _0x4d4502(_0x270677-0x1b4,_0xce687d-0xd6,_0xce687d,_0x44a3bc-_0x365a9b._0x96cb56);}const _0x207d60=_0x270168['inputTokens'],_0x3b419f=_0x270168[_0x393e31(_0x5850da._0x5b69c9,-0xd,0x0,0x5c)],_0x1cef79=_0x270168[_0x11fa3e(-_0x5850da._0x53847b,-_0x5850da._0x6f7a77,-0x283,-0x333)]??0x0,_0x2c3dd6=_0x207d60+_0x3b419f,_0x50078c=_0x270168['reportedCost']?.[_0x11fa3e(-_0x5850da._0x3c1bc8,-0x2c6,-_0x5850da._0x315b5e,-0x33b)],_0x3f1760=_0x270168[_0x11fa3e(-0x354,-_0x5850da._0x6fd55a,-0x324,-0x37b)]?.[_0x11fa3e(-0x2f3,-0x2c7,-_0x5850da._0x155d85,-_0x5850da._0x25e84c)];function _0x11fa3e(_0xa59143,_0x5ccbc6,_0xfaec30,_0x54e14d){return _0x4d4502(_0xa59143- -0x196,_0x5ccbc6-0x2c,_0xfaec30,_0x54e14d-_0x4b0ad8._0x350dd4);}const _0x1063b7=_0x50078c??_0x3f1760,{currentReportedCostUsdTicks:_0x551433,currentEstimatedCostUsdTicks:_0x1688ff,..._0x426eea}=_0x730de;return{..._0x426eea,'totalTokens':_0x426eea[_0x393e31(_0x5850da._0x1f151b,_0x5850da._0x5a0ae8,0x99,_0x5850da._0x1f7e09)]+_0x2c3dd6,'totalInputTokens':_0x426eea[_0x393e31(_0x5850da._0x207cf2,0xf6,0xd0,0xf7)]+_0x207d60,'totalOutputTokens':_0x426eea[_0x11fa3e(-0x2d9,-0x2a5,-_0x5850da._0x579928,-0x2f5)]+_0x3b419f,'totalReasoningTokens':_0x426eea[_0x393e31(0x53,-0x23,-_0x5850da._0x520c44,-_0x5850da._0x531977)]+_0x1cef79,'modelCallCount':_0x426eea[_0x393e31(_0x5850da._0x2a111b,_0x5850da._0x18bd0f,_0x5850da._0x4472ed,0x11)]+0x1,'totalModelTimeMs':_0x426eea[_0x393e31(0x5f,0x5,0x3a,-0x4)]+_0x33e9da[_0x393e31(0x6,0xb4,_0x5850da._0x45e98f,0x31)],'currentTokens':_0x2c3dd6,'currentInputTokens':_0x207d60,'currentOutputTokens':_0x3b419f,'currentReasoningTokens':_0x1cef79,'currentModelTimeMs':_0x33e9da[_0x11fa3e(-0x2e6,-0x2c0,-0x2e6,-0x2d7)],..._0x426eea[_0x393e31(0xdf,0x76,0xb5,_0x5850da._0x8d3cc)]&&_0x2c3dd6>0x0?{'contextWindowUsage':_0x2c3dd6/_0x426eea['contextWindowLimit']}:{},'totalCostUsdTicks':_0x1063b7===void 0x0?_0x426eea[_0x393e31(_0x5850da._0x51aa94,_0x5850da._0x445f4d,0x15,-_0x5850da._0x3234d7)]:_0x426eea['totalCostUsdTicks']+_0x1063b7,'totalReportedCostUsdTicks':_0x50078c===void 0x0?_0x426eea['totalReportedCostUsdTicks']:_0x426eea[_0x393e31(_0x5850da._0x17495d,_0x5850da._0x24d36c,_0x5850da._0x503694,0x8d)]+_0x50078c,'totalEstimatedCostUsdTicks':_0x3f1760===void 0x0?_0x426eea['totalEstimatedCostUsdTicks']:_0x426eea[_0x11fa3e(-0x307,-0x2d3,-_0x5850da._0x200534,-_0x5850da._0x3b5ca0)]+_0x3f1760,'reportedCostCallCount':_0x50078c===void 0x0?_0x426eea['reportedCostCallCount']:_0x426eea[_0x393e31(_0x5850da._0x14d7eb,0xc,_0x5850da._0x157c35,_0x5850da._0x59efc0)]+0x1,'estimatedCostCallCount':_0x3f1760===void 0x0?_0x426eea[_0x11fa3e(-0x2d4,-0x2f8,-0x2c0,-_0x5850da._0xfb95d9)]:_0x426eea['estimatedCostCallCount']+0x1,'unpricedModelCallCount':_0x50078c===void 0x0&&_0x3f1760===void 0x0?_0x426eea[_0x393e31(-0x11,_0x5850da._0xa746f1,0x5a,_0x5850da._0x5cb7ed)]+0x1:_0x426eea[_0x11fa3e(-_0x5850da._0x5c6a2c,-0x30f,-0x2be,-0x32b)],..._0x50078c!==void 0x0?{'currentReportedCostUsdTicks':_0x50078c}:{},..._0x3f1760!==void 0x0?{'currentEstimatedCostUsdTicks':_0x3f1760}:{}};}function createAgentMetrics(_0x1a62b8={}){const _0x547a60={_0x1abc8b:0x482,_0x157199:0x45e,_0x4b0951:0x4aa},_0x415796={_0x3a5b00:0x241,_0x4a1ed:0x24a,_0x13ac82:0x452,_0x4149cd:0x491,_0x4112ad:0x492,_0x4b81d0:0x3f8,_0x1e0a50:0x3d5,_0x53ac3a:0x411,_0x280671:0x389},_0x2a59cc={_0x364b61:0x145},_0x1b7b92={_0xf91a48:0x252,_0x47c686:0x28d,_0x21dabb:0x291,_0x13db93:0x2fe,_0x13ac3e:0x201,_0x28a45d:0x21e,_0x29ac99:0x1fc,_0x37495f:0x2c8,_0x48fd85:0x325,_0x17659d:0x30f,_0x91c7bc:0x23a,_0x38ed84:0x2eb,_0x4c40d7:0x305,_0x1b5409:0x285,_0x3c2ed0:0x2d3,_0x5333f0:0x2cf,_0x3ab02f:0x294,_0x22b94c:0x260,_0x3a9ebd:0x23c,_0x5c4300:0x261,_0x11d83a:0x2b7,_0x371831:0x2be,_0x13b2ed:0x2ef,_0x3ed27d:0x228,_0x51e6e7:0x278,_0x23ae1a:0x3d4,_0xe08504:0x267,_0x5431ca:0x26d,_0x585cba:0x274},_0x5183c6={_0x2e2300:0x3e3};let _0x404f92=createEmptySnapshot();const _0x1af114=new Set();let _0x5b4396;const _0x2281f3=()=>{const _0x23f648={..._0x404f92};for(const _0x1d27ba of _0x1af114)_0x1d27ba(_0x23f648);};return{'getSnapshot'(){return{..._0x404f92};},'recordEvent'(_0x202bb6){if(_0x202bb6[_0x4e7366(-_0x1b7b92._0xf91a48,-_0x1b7b92._0x47c686,-_0x1b7b92._0x21dabb,-_0x1b7b92._0x13db93)]===_0x2bd966(-0x25d,-0x224,-0x2b3,-_0x1b7b92._0x13ac3e)){_0x5b4396=Date[_0x2bd966(-0x24e,-_0x1b7b92._0x28a45d,-_0x1b7b92._0x29ac99,-0x217)]();const _0x53af92=_0x1a62b8[_0x4e7366(-_0x1b7b92._0x37495f,-_0x1b7b92._0x48fd85,-0x327,-_0x1b7b92._0x17659d)]?.(_0x202bb6[_0x4e7366(-_0x1b7b92._0x91c7bc,-0x2cb,-0x2a2,-_0x1b7b92._0x38ed84)]);_0x53af92!==void 0x0&&(_0x404f92={..._0x404f92,'contextWindowLimit':_0x53af92},_0x2281f3());return;}function _0x2bd966(_0x2e5737,_0x5b3c77,_0x48202b,_0x4b8348){return _0x63b3(_0x2e5737- -0x376,_0x4b8348);}function _0x4e7366(_0x3d2fbd,_0x2e4016,_0x2d235a,_0x501914){return _0x63b3(_0x2d235a- -_0x5183c6._0x2e2300,_0x501914);}if(_0x202bb6[_0x4e7366(-_0x1b7b92._0x4c40d7,-_0x1b7b92._0x1b5409,-0x291,-_0x1b7b92._0x3c2ed0)]===_0x4e7366(-0x2c1,-_0x1b7b92._0x5333f0,-_0x1b7b92._0x3ab02f,-0x29b)){const _0x1352db=_0x5b4396===void 0x0?0x0:Date['now']()-_0x5b4396;_0x5b4396=void 0x0,_0x404f92=applyModelCall(_0x404f92,{'usage':_0x202bb6[_0x2bd966(-_0x1b7b92._0x22b94c,-0x29e,-_0x1b7b92._0x3a9ebd,-_0x1b7b92._0x5c4300)][_0x4e7366(-_0x1b7b92._0x11d83a,-0x2c9,-0x2e5,-0x333)],'modelTimeMs':_0x202bb6[_0x4e7366(-0x30a,-_0x1b7b92._0x371831,-_0x1b7b92._0x13b2ed,-0x2e4)]??_0x1352db}),_0x2281f3();return;}if(_0x202bb6[_0x2bd966(-0x224,-0x205,-_0x1b7b92._0x3ed27d,-_0x1b7b92._0x51e6e7)]==='tool_call'){_0x404f92={..._0x404f92,'toolCallCount':_0x404f92[_0x4e7366(-0x381,-0x3c1,-0x361,-_0x1b7b92._0x23ae1a)]+0x1},_0x2281f3();return;}_0x202bb6[_0x4e7366(-0x2c4,-_0x1b7b92._0xe08504,-_0x1b7b92._0x21dabb,-_0x1b7b92._0x5431ca)]===_0x4e7366(-_0x1b7b92._0x585cba,-_0x1b7b92._0x22b94c,-0x2af,-_0x1b7b92._0x3c2ed0)&&(_0x404f92={..._0x404f92,'requestCount':_0x404f92['requestCount']+0x1},_0x2281f3());},'reset'(){_0x404f92=createEmptySnapshot(),_0x5b4396=void 0x0,_0x2281f3();},'restore'(_0x1c4c95){const _0x19fd4d={_0x126c03:0x355};let _0x2a964b=createEmptySnapshot();function _0x18f827(_0x25a098,_0x249df3,_0x46df6b,_0x129931){return _0x63b3(_0x249df3-_0x19fd4d._0x126c03,_0x46df6b);}function _0x391edc(_0x161e0a,_0x5261b9,_0x171a85,_0x1989e7){return _0x63b3(_0x161e0a-_0x2a59cc._0x364b61,_0x171a85);}for(const _0x1aed1a of _0x1c4c95['modelCalls']){_0x2a964b=applyModelCall(_0x2a964b,{'usage':_0x1aed1a[_0x391edc(0x243,_0x415796._0x3a5b00,_0x415796._0x4a1ed,0x2a3)],'modelTimeMs':_0x1aed1a[_0x18f827(_0x415796._0x13ac82,0x449,_0x415796._0x4149cd,0x47e)]});}_0x404f92={..._0x2a964b,'requestCount':_0x1c4c95['modelCalls'][_0x18f827(_0x415796._0x4112ad,0x479,0x45c,0x4e8)](_0x951a3=>_0x951a3[_0x391edc(0x24d,0x260,0x1f8,0x27c)])[_0x18f827(0x38a,_0x415796._0x4b81d0,0x38e,0x3f7)],'toolCallCount':_0x1c4c95['toolCallCount'],'historicalMetricsComplete':_0x1c4c95['missingModelCallCount']===0x0,'missingHistoricalModelCallCount':_0x1c4c95[_0x18f827(0x3f0,_0x415796._0x1e0a50,_0x415796._0x53ac3a,_0x415796._0x280671)]},_0x5b4396=void 0x0,_0x2281f3();},'subscribe'(_0x4e5c18){const _0x27a8ff={_0x11c677:0x3e7};_0x1af114[_0x3d8521(_0x547a60._0x1abc8b,_0x547a60._0x157199,0x477,_0x547a60._0x4b0951)](_0x4e5c18);function _0x3d8521(_0x1063ec,_0x393884,_0x5b92d7,_0x1a46c1){return _0x63b3(_0x1a46c1-_0x27a8ff._0x11c677,_0x1063ec);}return()=>{_0x1af114['delete'](_0x4e5c18);};}};}function makeExtensionContext(_0x335842){return{'state':_0x335842};}async function runStage(_0x421a77,_0x548a9e,_0x2f1656,_0x315a3a){const _0x50ee33={_0x36e20f:0x159,_0x3e2045:0x47,_0x213e0a:0xfd};function _0xbf5b0e(_0x52ad9a,_0x4f9a4f,_0x381481,_0x1365e4){return _0x4d4502(_0x381481-0x26b,_0x4f9a4f-0xce,_0x1365e4,_0x1365e4-0x121);}const _0x42ad64=await _0x421a77[_0xbf5b0e(0x1a3,0x121,_0x50ee33._0x36e20f,0x138)](_0x548a9e,_0x2f1656,_0x315a3a);await _0x421a77[_0x3bbd22(-_0x50ee33._0x3e2045,-_0x50ee33._0x213e0a,-0xa8,-0xbd)](_0x548a9e,_0x42ad64,_0x315a3a);function _0x3bbd22(_0xfe3ecb,_0x583812,_0x5be4c6,_0x3fcfb2){return _0x1213ea(_0xfe3ecb-0x198,_0x583812-0x73,_0xfe3ecb,_0x5be4c6-0x153);}return _0x42ad64;}async function emitEvent2(_0x2cc1b2,_0x28b453,_0xe19bb3){await _0x2cc1b2?.(_0x28b453,_0xe19bb3);}function replaceToolUseBlocks(_0x5b2e0a,_0x6905c1){const _0x4b9d4f={_0x5f54dc:0x14e,_0x1c79ec:0xf3,_0x317fb3:0x24,_0x4322ab:0x7e},_0x4bfa14={_0xd4a6c:0x3c,_0xe20802:0x49},_0x361e38={_0x274b64:0x7e},_0x172eb9={_0x54be0a:0x1f,_0x13a77f:0x12d},_0x424285={_0x22c9b4:0x6e};function _0x1149c3(_0x458089,_0x21b186,_0xa202bd,_0x468d0e){return _0x1213ea(_0x458089-0x96,_0x21b186-_0x424285._0x22c9b4,_0x21b186,_0x468d0e-0x248);}function _0x3cd123(_0x1e3d7a,_0x56695b,_0x1f065b,_0xcda428){return _0x1213ea(_0x1e3d7a-_0x172eb9._0x54be0a,_0x56695b-0x12e,_0x1e3d7a,_0xcda428-_0x172eb9._0x13a77f);}let _0x2a6cf1=0x0;return{..._0x5b2e0a,'content':_0x5b2e0a[_0x3cd123(-0xe2,-_0x4b9d4f._0x5f54dc,-0x130,-_0x4b9d4f._0x1c79ec)][_0x1149c3(-_0x4b9d4f._0x317fb3,-0x55,_0x4b9d4f._0x4322ab,0x1e)](_0x4d0f4d=>{if(_0x4d0f4d[_0x4bd1e7(0x5b,0x88,_0x4bfa14._0xd4a6c,_0x4bfa14._0xe20802)]!=='tool_use')return _0x4d0f4d;const _0x44f156=_0x6905c1[_0x2a6cf1];_0x2a6cf1+=0x1;function _0x4bd1e7(_0x1bf254,_0x45b523,_0x31049a,_0x38aa94){return _0x1149c3(_0x1bf254-0x8,_0x45b523,_0x31049a-0x15b,_0x31049a- -_0x361e38._0x274b64);}return structuredClone(_0x44f156);})};}function createAssistantMessageId(_0x3c8614,_0x248912){function _0x784ca7(_0x3c7e85,_0x14533c,_0xb75711,_0x41cdc9){return _0x4d4502(_0x3c7e85-0x133,_0x14533c-0x9e,_0xb75711,_0x41cdc9-0x153);}return _0x3c8614+_0x784ca7(-0x64,-0x15,-0xae,-0x46)+_0x248912;}function createReasoningMessageId(_0x4742a5){const _0x5c52ff={_0x37b5a9:0x62,_0x276dcc:0x7a},_0x28bcb4={_0x38f380:0xe1,_0x51629a:0x2f};function _0x4b431f(_0x409027,_0x202595,_0x1f65ca,_0x122893){return _0x1213ea(_0x409027-_0x28bcb4._0x38f380,_0x202595-_0x28bcb4._0x51629a,_0x1f65ca,_0x122893-0x1ab);}return _0x4742a5+_0x4b431f(-0x19,-_0x5c52ff._0x37b5a9,-0x41,-_0x5c52ff._0x276dcc);}function _0x26cd(){const _0x5d8c0f=['y29UDgvUDa','ywrKAxrPB25HBfbYB3bLCNrPzxm','CMvHza','ywrK','Bw9KzwXdywXSq291BNq','nJe2z2zLs1jo','Dg9VBf9YzwPLy3rLza','C2vUza','oIbLEhbLy3rLzcbZDhjPBMC','yMvMB3jLrMLUywXpDxrWDxq','Dg90ywXnB2rLBfrPBwvnCW','zMLUywXnzxnZywDL','yxnZAxn0yw50twvZC2fNzuLK','Dg9VBf91C2vFzgvSDge','yMvMB3jLqxnZAxn0yw50qxbWzw5K','Dg9VBfj1BNrPBwu','BMfTzq','CMvXDwLYzwq','ywX3yxLZlwnVBMzPCM0','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','ywrKrxzLBNrmAxn0zw5LCG','C3rYDwn0DxjLza','y29TCgXLDgu','CMvTB3zLrxzLBNrmAxn0zw5LCG','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','CNvU','oIbLEhbLy3rLzcbUDw1Izxi','A2LUza','C2vZC2LVBI0','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','Dw5RBM93BL90B29S','B25fDMvUDa','zw50CMLLCW','DgvYBwLUywW','C2vZC2LVBKLK','DhvYBLn0yxj0zwrbDa','mtbNvvnnCwu','CNvUt2jZzxj2zxjZ','ChjVDMLKzxi','yw1VDw50vxnKvgLJA3m','Bw9KzwW','CMvJB3jKrxzLBNq','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','mJu4mtu1AurHrLfT','y2HHDe1VzgvS','CMvNAxn0zxi','CMv0DxjU','zgvSDge','oIbLEhbLy3rLzcbVBMuGB2yG','B2jQzwn0','DxnLCL9TzxnZywDL','C2v0','Bw9KzwXuAw1Ltxm','oIbLEhbLy3rLzcbHCNjHEq','DgHLBG','mti1mdu4oerKAevAsG','DxnLCG','q2fUBM90ihjLz2LZDgvYihrLCM1PBMfSig9IC2vYDMvYici','ChjVCgvYDgLLCW','C2v0u2vZC2LVBKLK','DhvYBKLUzgv4','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','DxnHz2u','iIbMB3iG','CMvWB3j0zwrdB3n0q2fSBenVDw50','Dg90ywXpDxrWDxruB2TLBNm','ywn0Aw9U','C2v0vg9VBhm','BgLZDa','Aw5WDxq','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','B3v0Chv0','y29TCgXLDgvZuMvXDwvZDa','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C2v0u3LZDgvTuhjVBxb0','z2v0vg9VBhm','zxHLy3v0zunHBgXZ','AM9PBG','zxH0zw5ZAw9UCW','y29UDgvUDf9KzwX0yq','CMvZzxrnzxnZywDLCW','CMvHC29UAw5Nvg9Rzw5Z','AgfZt3DU','C3rHz2u','zgvMyxvSDe1LC3nHz2u','ChvZAa','CMvZCg9UC2u','ywnXDwLYzq','y29TCgXLDgvK','Bw9KzwXFCMvXDwvZDa','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','Dg9VBhncEu5HBwu','C3rYAw5NAwz5','zw5HyMXLza','y2f0y2G','ChjPy2LUz1bYB3zPzgvYswq','y2f1C2u','nde0nJHAEu53B1u','B25uB29Sq2fSBa','yw55t2y','zMLSDgvY','CMvHC29UAw5Nu3rHCNrLzef0','Dg9VBf91C2vFy2H1BMS','CgvYBwLZC2LVBKnSyxnZ','BM93','Dg90ywXuB2TLBNm','ChjVDMLKzxjFCMv0CNK','Dgv4Da','ywXS','BMv4Da','Bwv0yq','zNvUy3rPB24','DhjPBq','Dg9VBf9JywXS','CNvUvhjHBNnMB3jTzxjZ','Bwv0ywrHDge','zMLUywXFBwvZC2fNzq','CMvHC29UAw5Nq29TCgXLDgvKqxq','mtqXmJCWohLOz2HNAG','CMvHC29UAw5Nx21LC3nHz2u','C3rYAw5N','CMvHC29U','vg9VBev4zwn1DgLVBKvYCM9Y','zM9YrwfJAa','CMfJzq','z2v0','zhjHAw5tDgvLCMLUzW','zMLUza','yM9VBgvHBG','CMvXDwvZDa','DMfSDwvZ','C29Tzq','CMvZB2X2zq','y29UDgv4DfDPBMrVD0XPBwL0','ywz0zxjnzxnZywDLqxbWzw5K','CMvQzwn0','DhvYBKLK','C3rHDgu','CMvNAxn0CNK','B3v0Chv0sw5KzxG','nJa5Bxvzserc','DgHPBMTPBMC','Aw5WDxrty2HLBwe','Bw9KzwXFCMvZCg9UC2u','oIbLEhbLy3rLzcbVyMPLy3q','mNjbtwXNCa','DhLWzq','C2v0q2HHDe1VzgvS','BgLZDfrVB2Xty2HLBwfZ','oIbLEhbLy3rLzcbIB29SzwfU','Dg9tDhjPBMC','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','B2jZzxj2zxi','Aw5JBhvKzxm','ywz0zxjuB29SuMvZDwX0','D3jPDgu','Bwf4vg9Rzw5Z','C2XPy2u','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','ywjVCNq','Dg90ywXjBNb1DfrVA2vUCW','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','zxjYB3i','Dg9VBf9JB21WBgv0zwq','C3LZDgvTuhjVBxb0','Aw5KzxG','sw52ywXPzcb0B29SigLUChv0igf0ia','ywjVCNrLza','BwLZC2LUz01VzgvSq2fSBenVDw50','nJu4mZqWnevVBhvwsa','Dg9VBenHBgXdB3vUDa','Dg90ywXszwfZB25PBMDuB2TLBNm','CMvHC29UAw5Nx2nODw5R','C2v0vg9WAwm','zxn0Aw1HDgvKq29ZDa','yxnZAxn0yw50x2nODw5R','C29YDa','yxnZAxn0yw50x21LC3nHz2u','BNvTyMvY','C2LNBMfS','DMfSDwu','zxHLy3v0zq','AxnbCNjHEq','ndjNqKjSqLu','B3v0Chv0vg9Rzw5Z','AxrLBuLK','DhvYBL9JB21WBgv0zq','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','DhvYBKnVBxbSzxrLzef0','Bwf4','oIb1BMv4CgvJDgvKigzPzwXKici','y29UDgvUDeLUzgv4','ywz0zxjuDxjUq29TCgXLDgu','A2v5CW','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','zgvZy3jPChrPB24','B3jKzxi','C3rHDhvZ','Bwv0CMLJCW','B3v0Chv0rM9YBwf0','ChjVDMLKzxjtDgf0zq','Dg9VBf9ZDgfYDgvK','Bw9KzwXjzgvUDgL0Eq','BgvUz3rO','C2vZC2LVBKrPCG','Dg90ywXdB3n0vxnKvgLJA3m','C3rYzwfTAw5N','vw5RBM93BIb0B29SoIa','BwvZC2fNzxm','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','zgvWCW','zg9Uzq','nZG3odeWnxPzsw1NAq','oMfZC2LZDgfUDdO','C3rYzwfT','DhvYBI0','Aw50zxjUywXmAwzLy3LJBgu','C3vTBwfYEuLUzgv4','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','B25vC2vYtwvZC2fNzq','yMvMB3jLvg9VBev4zwn1DgLVBG','BwvZC2fNzq','BwfW','CMfUzg9T','x3n5C3rLBvbYB21WDa','zw51Bq','BgfZDfjLC3bVBNnL','oNjLyxnVBMLUzW','z2v0q29UDgv4DfDPBMrVD0XPBwL0','yxnRvxnLCG','mtuZndHbuKrOq2S','C3LZDgvT'];_0x26cd=function(){return _0x5d8c0f;};return _0x26cd();}function withMessageId(_0x21eb1b,_0x535744){if(_0x21eb1b['id']===_0x535744)return _0x21eb1b;return{..._0x21eb1b,'id':_0x535744};}function createAssistantChunkEvent(_0x339148,_0x1ba20e){const _0x20e756={_0x102bff:0x17a,_0x4d8f85:0x173,_0x2e8b42:0x1cd,_0x394fec:0xb8,_0x125b84:0x37,_0x27147b:0x15,_0x4751f1:0x22,_0x5fe6c6:0x47,_0x48ef8e:0x2b,_0x52a055:0x51,_0x543565:0x12,_0x4588ff:0x6d,_0x1c9dbb:0xa5,_0x5b9e29:0x21},_0x117d1f={_0x49380a:0x222};function _0x28443b(_0x250efe,_0xaf2aca,_0x31c0ad,_0x2b5149){return _0x4d4502(_0xaf2aca-0x26c,_0xaf2aca-0x3,_0x31c0ad,_0x2b5149-0x7c);}function _0x5909f5(_0x3b322c,_0x387d38,_0x1628d1,_0x4afdf3){return _0x1213ea(_0x3b322c-0x2b,_0x387d38-0x1c7,_0x387d38,_0x3b322c-_0x117d1f._0x49380a);}if(_0x339148[_0x28443b(0x147,_0x20e756._0x102bff,_0x20e756._0x4d8f85,_0x20e756._0x2e8b42)]!=='content_delta')return void 0x0;if(_0x339148[_0x5909f5(0x6d,_0x20e756._0x394fec,0x4a,0x7)]===void 0x0)return void 0x0;return{'type':_0x5909f5(-_0x20e756._0x125b84,_0x20e756._0x27147b,-0x29,-_0x20e756._0x4751f1),'index':_0x339148[_0x5909f5(-0x41,-_0x20e756._0x5fe6c6,-_0x20e756._0x48ef8e,-0x5e)]??0x0,'messageId':_0x1ba20e,'chunk':{'type':_0x5909f5(_0x20e756._0x52a055,0x5d,-0xf,_0x20e756._0x543565),'index':_0x339148['index']??0x0,'text':_0x339148[_0x5909f5(_0x20e756._0x4588ff,_0x20e756._0x1c9dbb,_0x20e756._0x5b9e29,0x28)]}};}function _0x4d4502(_0x9365ab,_0x5c6bfe,_0x4a6357,_0x2fe338){return _0x63b3(_0x9365ab- -0x244,_0x4a6357);}function createToolUseChunkEvent(_0x8f986c,_0x57f233){const _0x2cd45f={_0x111e7b:0x4da,_0x131d51:0x438,_0x518509:0x431,_0x2b997f:0x4b3,_0x5d6b05:0x405,_0x474170:0x3ef,_0x4bdc5:0x3b8,_0x19d616:0x406,_0x334202:0x457,_0x148737:0x43e,_0x311861:0x46e,_0xce691:0x458,_0x514789:0x44d,_0x4ea02b:0x466,_0x4967e1:0x3f5},_0x4d9747={_0x231065:0x105};function _0x1e4213(_0x2d6c37,_0x2e350e,_0x5e4da2,_0x106bbf){return _0x1213ea(_0x2d6c37-0xe,_0x2e350e-0xef,_0x5e4da2,_0x2e350e-0x668);}function _0x3c8ef0(_0x1db4d5,_0x3dd9fe,_0x154131,_0x1d4453){return _0x1213ea(_0x1db4d5-_0x4d9747._0x231065,_0x3dd9fe-0x78,_0x1d4453,_0x3dd9fe-0x66a);}if(_0x8f986c[_0x1e4213(0x517,_0x2cd45f._0x111e7b,0x4ec,0x470)]!==_0x3c8ef0(_0x2cd45f._0x131d51,0x457,_0x2cd45f._0x518509,0x418))return void 0x0;return{'type':_0x1e4213(0x500,0x4ae,_0x2cd45f._0x2b997f,0x4d3),'index':_0x8f986c[_0x1e4213(0x3b6,_0x2cd45f._0x5d6b05,_0x2cd45f._0x474170,_0x2cd45f._0x4bdc5)]??0x0,'messageId':_0x57f233,'chunk':{'type':_0x3c8ef0(_0x2cd45f._0x19d616,_0x2cd45f._0x334202,_0x2cd45f._0x148737,0x452),'id':_0x8f986c['id']??'','index':_0x8f986c[_0x3c8ef0(0x464,0x407,0x43b,0x39f)]??0x0,..._0x8f986c[_0x1e4213(_0x2cd45f._0x311861,_0x2cd45f._0xce691,_0x2cd45f._0x474170,0x48b)]!==void 0x0?{'name':_0x8f986c[_0x1e4213(_0x2cd45f._0x514789,0x458,_0x2cd45f._0x4ea02b,_0x2cd45f._0x4967e1)]}:{},..._0x8f986c['inputDelta']!==void 0x0?{'inputDelta':_0x8f986c['inputDelta']}:{}}};}function createReasoningChunkEvent(_0xf5bf7b,_0x23293c){const _0x1bda2e={_0x18a8f3:0x2f1,_0x4d4bbc:0x12e,_0x1b6480:0x151,_0x3a4524:0xd1,_0x3d6bef:0x1b4,_0x4ad102:0x262,_0x90cac3:0x186,_0x1d92f0:0x150,_0x2f606f:0x12c,_0x162744:0x322,_0x36ee7c:0x2c7,_0x1d3cfc:0x30d,_0x4ef896:0x23e,_0x293cd2:0x205,_0x50b8b3:0x1b3,_0x3b3c18:0x20f,_0x87362b:0x167,_0x3d39d1:0x26e,_0x8e14c9:0x229,_0x469912:0x211,_0x50189c:0x252,_0x74c9e0:0x172,_0x5ec332:0x16c,_0x5143c7:0x1be,_0x28eed5:0x23e,_0x4d46ac:0x1fc,_0x5415bc:0x2f6,_0x5597dd:0x2c5,_0x105e85:0x141,_0x161fca:0xed,_0x490be6:0xbb,_0x588e71:0x203,_0x3d4cdd:0x246,_0x227580:0x22b,_0x312240:0x193,_0x2073d5:0x148,_0x377eb3:0xfe,_0x344722:0x1ae,_0x357464:0x1a3,_0x5db24a:0x20b,_0xe115f2:0x2c5,_0x168415:0x242,_0x242305:0x1bb,_0x51216a:0x291,_0x3215a6:0x29d},_0x121a61={_0x1c2348:0x17b,_0x67aee6:0xa9};function _0x2ab2f5(_0x12a30c,_0x31bb2e,_0x2e1b0d,_0x4a3509){return _0x1213ea(_0x12a30c-0xf8,_0x31bb2e-0x1b2,_0x12a30c,_0x2e1b0d-0x45a);}function _0x11467d(_0x23b087,_0x228a2c,_0x35405f,_0x3c364a){return _0x1213ea(_0x23b087-0xc5,_0x228a2c-_0x121a61._0x1c2348,_0x23b087,_0x228a2c-_0x121a61._0x67aee6);}switch(_0xf5bf7b[_0x2ab2f5(0x274,0x326,0x2cc,_0x1bda2e._0x18a8f3)]){case _0x11467d(-0x116,-_0x1bda2e._0x4d4bbc,-_0x1bda2e._0x1b6480,-_0x1bda2e._0x3a4524):return{'type':_0x2ab2f5(0x238,_0x1bda2e._0x3d6bef,0x1fe,0x1f3),'index':_0xf5bf7b[_0x2ab2f5(0x1a4,_0x1bda2e._0x4ad102,0x1f7,_0x1bda2e._0x90cac3)],'messageId':_0x23293c,'chunk':{'type':_0x11467d(-_0x1bda2e._0x1d92f0,-0x12e,-_0x1bda2e._0x2f606f,-0xed),'index':_0xf5bf7b['index']??0x0,'thinking':_0xf5bf7b[_0x2ab2f5(0x295,0x2fa,0x2c7,0x339)]??''},'text':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x162744,0x2a8,_0x1bda2e._0x36ee7c,_0x1bda2e._0x1d3cfc)]??''};case _0x2ab2f5(_0x1bda2e._0x4ef896,_0x1bda2e._0x293cd2,0x223,0x28f):return{'type':_0x11467d(-0x16a,-_0x1bda2e._0x50b8b3,-_0x1bda2e._0x3b3c18,-_0x1bda2e._0x87362b),'index':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x3d39d1,_0x1bda2e._0x8e14c9,_0x1bda2e._0x469912,_0x1bda2e._0x50189c)],'messageId':_0x23293c,'chunk':{'type':_0x11467d(-_0x1bda2e._0x74c9e0,-0x18e,-_0x1bda2e._0x5ec332,-_0x1bda2e._0x5143c7),'contentIndex':_0xf5bf7b['contentIndex']??0x0,'delta':_0xf5bf7b['delta']??'','itemId':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x28eed5,0x20f,0x20b,_0x1bda2e._0x4d46ac)]??'','outputIndex':_0xf5bf7b[_0x2ab2f5(0x2e9,_0x1bda2e._0x5415bc,_0x1bda2e._0x5597dd,0x2d1)]??0x0},'text':_0xf5bf7b['delta']??''};case _0x11467d(-_0x1bda2e._0x105e85,-0xe0,-_0x1bda2e._0x161fca,-_0x1bda2e._0x490be6):return{'type':'reasoning_chunk','index':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x588e71,_0x1bda2e._0x3d4cdd,_0x1bda2e._0x227580,0x21c)],'messageId':_0x23293c,'chunk':{'type':_0x11467d(-0x12f,-0xe0,-0xb2,-0xea),'delta':_0xf5bf7b[_0x11467d(-_0x1bda2e._0x312240,-_0x1bda2e._0x2073d5,-_0x1bda2e._0x377eb3,-0x158)]??'','itemId':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x344722,_0x1bda2e._0x357464,_0x1bda2e._0x5db24a,_0x1bda2e._0x5143c7)]??'','outputIndex':_0xf5bf7b[_0x2ab2f5(0x286,0x2ec,_0x1bda2e._0xe115f2,0x32a)]??0x0,'summaryIndex':_0xf5bf7b[_0x2ab2f5(0x1dd,_0x1bda2e._0x168415,_0x1bda2e._0x227580,_0x1bda2e._0x242305)]??0x0},'text':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x51216a,_0x1bda2e._0x3215a6,0x269,0x25f)]??''};default:return void 0x0;}}function isAbortedToolResult(_0x134dc2){const _0x3b21bc={_0x1a5dbd:0x143,_0x426d06:0xef},_0x583151={_0x5a9848:0x1,_0x330676:0x2b,_0x701489:0x26d},_0x17806a={_0x2dbd50:0x264};function _0x328132(_0x5ae353,_0x1713ca,_0x2a8770,_0x36f769){return _0x1213ea(_0x5ae353-0xd6,_0x1713ca-0x40,_0x5ae353,_0x2a8770-_0x17806a._0x2dbd50);}function _0x37e768(_0x46fe17,_0x8a998c,_0x527459,_0x562d47){return _0x1213ea(_0x46fe17-_0x583151._0x5a9848,_0x8a998c-_0x583151._0x330676,_0x8a998c,_0x527459-_0x583151._0x701489);}return _0x134dc2[_0x328132(0x29,0x72,0x21,0x17)]===_0x37e768(_0x3b21bc._0x1a5dbd,0x100,_0x3b21bc._0x426d06,0x128)&&_0x134dc2['structured']['aborted']===!![];}async function executeModelRequest(_0x106357,_0x195b2b,_0x32760f,_0x35085b,_0x541545,_0x298474){const _0x29e37a={_0x517b23:0x448,_0x131ee6:0x456,_0x5e6e66:0x4a4,_0x4e5e4b:0x4a5,_0x10e174:0x319,_0x509e56:0x2e5,_0xe3a62e:0x30c,_0x144960:0x303,_0x40710a:0x29e,_0x36c4d9:0x28b,_0x142769:0x4a1,_0x284420:0x4a1,_0x476b0d:0x4ff,_0x318879:0x457,_0x2ddb7b:0x479,_0x9a1571:0x414,_0x1a24b6:0x314,_0x3cd1f2:0x587,_0x28ee47:0x51d,_0x1e7313:0x509,_0x588c92:0x2ea,_0x257eff:0x30e,_0x218dea:0x364,_0x5e2f79:0x37c,_0x37bbc6:0x3e5,_0x9e4697:0x374,_0x4c83f3:0x4f9,_0x10ab71:0x54b,_0x50da59:0x4d8,_0x248df7:0x4ce,_0x2bbd57:0x367,_0x120d04:0x4e8,_0xc16199:0x51d,_0x4a395a:0x54a,_0x48a219:0x369,_0x294e36:0x4a8,_0x1906c5:0x443,_0x5d7df0:0x3ec,_0x1d88e7:0x44f,_0x121395:0x2ce,_0x17c367:0x2e2,_0x2f6206:0x355,_0x43cc8f:0x364,_0x4af20d:0x4f9,_0x3562ce:0x564,_0x18b797:0x372,_0x2b991b:0x2fb,_0x42dbd4:0x4ad,_0x484c5c:0x4f3,_0x16feae:0x54e,_0xb54f4a:0x4e0,_0x4933d8:0x4aa,_0xb54cdb:0x499,_0x73d27f:0x51a,_0x13b731:0x487,_0xcdd1e1:0x4f0,_0x3b6954:0x493,_0x270cab:0x508,_0x5d6ed8:0x4e9,_0x34617b:0x560,_0x58445d:0x532,_0x1e3b9c:0x395,_0x217b20:0x3b3,_0x2daeb4:0x514,_0x4c4242:0x4b6,_0x479265:0x4f3,_0x5890a9:0x484,_0x3e168a:0x460,_0x42acbb:0x4df,_0x4f9ce2:0x39d,_0x3e21b7:0x332,_0x482da9:0x3a9},_0x2647cc={_0x54f9e7:0x4b,_0x35f0fc:0x51f},_0x4ab46b={_0x33a1bc:0x6e};function _0x5953b2(_0x14ed62,_0x38383e,_0x1fc9fb,_0x2c515f){return _0x1213ea(_0x14ed62-_0x4ab46b._0x33a1bc,_0x38383e-0x34,_0x2c515f,_0x38383e-0x6ab);}throwIfAborted(_0x195b2b[_0x5953b2(_0x29e37a._0x517b23,_0x29e37a._0x131ee6,_0x29e37a._0x5e6e66,_0x29e37a._0x4e5e4b)]);function _0x38ec4e(_0x252035,_0x242a21,_0x1b70dd,_0x120571){return _0x1213ea(_0x252035-0x1b0,_0x242a21-_0x2647cc._0x54f9e7,_0x1b70dd,_0x242a21-_0x2647cc._0x35f0fc);}if(!_0x195b2b[_0x38ec4e(_0x29e37a._0x10e174,_0x29e37a._0x509e56,_0x29e37a._0xe3a62e,_0x29e37a._0x144960)]||!_0x32760f[_0x38ec4e(_0x29e37a._0x40710a,0x2ed,_0x29e37a._0x36c4d9,0x28e)])return await _0x32760f[_0x5953b2(_0x29e37a._0x142769,_0x29e37a._0x284420,0x499,_0x29e37a._0x476b0d)](_0x106357,{'signal':_0x195b2b[_0x5953b2(0x436,0x456,_0x29e37a._0x318879,0x445)]});let _0x5d31df;for await(const _0x4b99f0 of _0x32760f[_0x5953b2(0x473,_0x29e37a._0x2ddb7b,0x44e,_0x29e37a._0x9a1571)](_0x106357,{'signal':_0x195b2b[_0x38ec4e(0x2d6,0x2ca,0x28d,_0x29e37a._0x1a24b6)]})){throwIfAborted(_0x195b2b['signal']);if(_0x4b99f0[_0x5953b2(_0x29e37a._0x3cd1f2,_0x29e37a._0x28ee47,0x556,_0x29e37a._0x1e7313)]===_0x38ec4e(0x358,_0x29e37a._0x588c92,0x352,0x2a9)){_0x298474['meta'][_0x38ec4e(_0x29e37a._0x257eff,_0x29e37a._0x218dea,_0x29e37a._0x5e2f79,0x3b7)]!==void 0x0&&_0x298474['meta'][_0x38ec4e(_0x29e37a._0x37bbc6,_0x29e37a._0x9e4697,0x32f,_0x29e37a._0x9e4697)]===void 0x0&&(_0x298474[_0x5953b2(0x52d,_0x29e37a._0x4c83f3,0x523,0x4f4)][_0x5953b2(_0x29e37a._0x10ab71,0x500,_0x29e37a._0x50da59,_0x29e37a._0x248df7)]=Date[_0x38ec4e(0x31c,_0x29e37a._0x2bbd57,0x321,0x3c5)]());_0x5d31df=_0x4b99f0['response'];continue;}if(_0x4b99f0[_0x5953b2(_0x29e37a._0x120d04,_0x29e37a._0xc16199,_0x29e37a._0x4a395a,0x530)]===_0x38ec4e(_0x29e37a._0x1a24b6,_0x29e37a._0x48a219,0x3b7,0x37f)){await emitEvent2(_0x35085b[_0x5953b2(_0x29e37a._0x294e36,0x4aa,0x4d9,_0x29e37a._0x1906c5)],_0x4b99f0,_0x541545);continue;}const _0x97a96b=createReasoningChunkEvent(_0x4b99f0,_0x298474['reasoningMessageId']);if(_0x97a96b&&_0x97a96b[_0x38ec4e(0x349,0x391,0x355,0x387)]===_0x5953b2(_0x29e37a._0x5d7df0,_0x29e37a._0x1d88e7,0x40e,0x3dd)&&_0x97a96b['text'][_0x38ec4e(_0x29e37a._0x121395,_0x29e37a._0x17c367,_0x29e37a._0x10e174,0x302)]>0x0){_0x298474['meta'][_0x38ec4e(_0x29e37a._0x2f6206,_0x29e37a._0x43cc8f,0x316,0x374)]===void 0x0&&(_0x298474[_0x5953b2(0x55d,_0x29e37a._0x4af20d,0x505,_0x29e37a._0x3562ce)][_0x38ec4e(_0x29e37a._0x18b797,0x364,_0x29e37a._0x2b991b,0x30c)]=Date[_0x5953b2(_0x29e37a._0x42dbd4,_0x29e37a._0x484c5c,_0x29e37a._0x16feae,_0x29e37a._0xb54f4a)]());await emitEvent2(_0x35085b[_0x5953b2(0x4d4,_0x29e37a._0x4933d8,_0x29e37a._0xb54cdb,0x4d6)],_0x97a96b,_0x541545);continue;}const _0x3efe6f=createAssistantChunkEvent(_0x4b99f0,_0x298474[_0x38ec4e(0x30a,0x30b,0x375,0x374)]);if(_0x3efe6f){_0x298474[_0x5953b2(0x55e,_0x29e37a._0x4c83f3,_0x29e37a._0x73d27f,_0x29e37a._0x13b731)][_0x5953b2(0x4ed,_0x29e37a._0xcdd1e1,_0x29e37a._0x3b6954,_0x29e37a._0x270cab)]!==void 0x0&&_0x298474[_0x5953b2(_0x29e37a._0x5d6ed8,0x4f9,_0x29e37a._0x34617b,0x4f3)][_0x5953b2(0x4d4,0x500,_0x29e37a._0x58445d,0x4f0)]===void 0x0&&(_0x298474[_0x38ec4e(0x33b,0x36d,_0x29e37a._0x1e3b9c,_0x29e37a._0x217b20)][_0x5953b2(_0x29e37a._0x2daeb4,0x500,_0x29e37a._0x4c4242,_0x29e37a._0x479265)]=Date[_0x38ec4e(0x3aa,0x367,0x3cd,_0x29e37a._0x5e2f79)]());await emitEvent2(_0x35085b[_0x5953b2(0x4ac,_0x29e37a._0x4933d8,_0x29e37a._0x5890a9,_0x29e37a._0x3e168a)],_0x3efe6f,_0x541545);continue;}const _0x24d94e=createToolUseChunkEvent(_0x4b99f0,_0x298474[_0x5953b2(0x45f,0x497,0x4ee,_0x29e37a._0x42acbb)]);_0x24d94e&&await emitEvent2(_0x35085b['onEvent'],_0x24d94e,_0x541545);}if(!_0x5d31df)throw new Error(_0x38ec4e(0x3f3,_0x29e37a._0x4f9ce2,_0x29e37a._0x3e21b7,_0x29e37a._0x482da9));return _0x5d31df;}function makeTurnGuards(_0x1bb6ad,_0x330270,_0x31ffec,_0x32be79,_0x514013){return{async 'stage'(_0x2e7dc8,_0x1c2b30){return throwIfAborted(_0x1bb6ad),await runStage(_0x330270,_0x2e7dc8,_0x1c2b30,_0x32be79);},async 'emit'(_0x197065){throwIfAborted(_0x1bb6ad),await emitEvent2(_0x31ffec,_0x197065,_0x514013);},async 'stageUnchecked'(_0x4b8ce0,_0x30cc0a){return await runStage(_0x330270,_0x4b8ce0,_0x30cc0a,_0x32be79);},async 'emitUnchecked'(_0x40992c){await emitEvent2(_0x31ffec,_0x40992c,_0x514013);}};}async function runTurn(_0x55f2a1,_0x14a5ae){const _0x4788ba={_0x36a541:0x3d8,_0x1aa358:0x403,_0x4f33cd:0x4b4,_0x2df470:0x4d0,_0x594c80:0x4ec,_0x132b9d:0x474,_0xb7286:0x4e3,_0xde06cd:0x4e4,_0x41872f:0x49a,_0x4762a8:0x429,_0x2522e4:0x417,_0x14f38e:0x47d,_0x1e8b17:0x48c,_0x1f5c51:0x483,_0x17d26b:0x45b,_0x4208a3:0x4b2,_0x37e7db:0x482,_0x364c0d:0x402,_0x27d58b:0x459,_0x26def9:0x4ac,_0x3a0122:0x44c,_0x163b19:0x426,_0x4852e1:0x434,_0x5eb32d:0x45d,_0x2201b8:0x3d4,_0x38c9e2:0x409,_0x11d31f:0x418,_0x3e968a:0x46c,_0x302bd5:0x48a,_0x405a7c:0x4b4,_0x4b3576:0x484,_0x3e3616:0x4bc,_0x456470:0x500,_0x5a613f:0x3e9,_0x36689b:0x44b,_0x449f70:0x4c7,_0xd7b60d:0x4d3,_0x5d61e5:0x486,_0x499a3d:0x44b,_0x8c2712:0x49d,_0xa4766f:0x3f3,_0x775e6d:0x431,_0x380441:0x3bd,_0x2861f8:0x46f,_0xcfaa9e:0x536,_0x4e664d:0x491,_0x64ef28:0x524,_0x340323:0x4c3,_0x47adb9:0x4b1,_0x194446:0x49e,_0x25b590:0x4bd,_0x57b09a:0x475,_0x41a044:0x4db,_0x3cef8f:0x4a2,_0x5362c5:0x426,_0x42b12f:0x478,_0x194631:0x4b2,_0x5e115c:0x3d7,_0xd4108d:0x444,_0x132ebf:0x479,_0x3ba80f:0x416,_0x1586e4:0x439,_0x1d21c7:0x52c,_0x26d4ef:0x3fd,_0x192f1c:0x4c9,_0x47f605:0x45e,_0x2faaf3:0x452,_0x40e2c6:0x472,_0x310b60:0x4be,_0x21e258:0x531,_0x51439a:0x44e,_0x2847f4:0x4ab,_0x1edb05:0x414,_0x58489e:0x442,_0x24bf74:0x544,_0x4b0ed0:0x50e,_0x4cfd4a:0x485,_0x170ad2:0x41b,_0x45df93:0x467,_0x373ea7:0x40c,_0xb75ee3:0x3fb,_0x4f3f51:0x47e,_0x291eb5:0x447,_0x3bb7b9:0x4f5,_0x24516d:0x40a,_0x39d891:0x48d,_0x514904:0x3e0,_0x1c8ccf:0x421,_0x488ba4:0x47d,_0x23974d:0x425,_0x55b981:0x4c6,_0x264b9c:0x496,_0x728cc5:0x4d9,_0x557e5d:0x489,_0x26b0e9:0x42a,_0x32ef33:0x451,_0x43ed18:0x3db,_0x42c724:0x40a,_0x20e894:0x46d,_0x2f8b47:0x4aa,_0x3dbd09:0x43d,_0x1be3b2:0x49c,_0x199ebb:0x473,_0xf2a2f1:0x50a,_0x29291e:0x497,_0x2d13d4:0x4d5,_0x2b8280:0x4a1,_0x253f9c:0x47b,_0x1d1698:0x4f3,_0x7217af:0x550,_0xfdcf40:0x4cc,_0x25fe8c:0x47c,_0x4cc2ae:0x43a,_0x2a9652:0x498,_0x5b4129:0x47c,_0x380c42:0x4b9,_0x47d52e:0x411,_0x58480e:0x454,_0x3b8c69:0x3ea,_0x46835b:0x441,_0x41aca5:0x423},_0x507218={_0x1edd6c:0x13f,_0x1eb979:0x10f,_0x5ce9e1:0x116,_0x2fd254:0x41d,_0x2aa784:0x48d,_0x2c79fb:0x3f3,_0x43af51:0x54,_0x3063dc:0xc8,_0x886ade:0x96,_0x3868bb:0x4ad,_0x52434d:0x46c,_0x578945:0x48a,_0x4af2ed:0x469},_0x2142b2={_0x3f64dd:0x84,_0x1d571c:0x1e2},_0x12f4e8={_0x320a44:0x10,_0x5cdc99:0x39,_0x4a5405:0x672},_0x2d1e55={_0x22fea7:0x164,_0x207554:0x33d,_0x539ce9:0x36f,_0x444a86:0x38b},_0x4fa4ba={_0x5b683b:0xaa,_0x32a9b2:0x38a},_0x25f1db={_0x2a3074:0x120,_0x5dcf62:0xd},_0x36ff20=_0x14a5ae['chatModel'],_0x4dc1ee=_0x55f2a1[_0x250ff3(0x41d,_0x4788ba._0x36a541,0x3f2,0x40f)]??new AbortController()[_0x3b4a7f(_0x4788ba._0x1aa358,0x471,0x46d,0x42f)];function _0x3b4a7f(_0x131dc2,_0x11a2f8,_0xb3fbe6,_0xb3e3dc){return _0x4d4502(_0xb3e3dc-0x5e8,_0x11a2f8-0x191,_0x131dc2,_0xb3e3dc-0x1f4);}const _0x272655={'sessionId':_0x55f2a1['sessionId'],'turnId':_0x55f2a1[_0x3b4a7f(_0x4788ba._0x4f33cd,0x490,_0x4788ba._0x2df470,_0x4788ba._0x594c80)],'system':normalizeSystem(_0x55f2a1['system']),'messages':(_0x55f2a1['messages']??[])['map'](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x14a5ae['sessionDir']===_0x3b4a7f(0x466,0x4b8,0x489,0x4d3)?_0x14a5ae[_0x250ff3(0x436,0x473,0x45d,0x3fe)]():_0x14a5ae['sessionDir']},_0x3a1d9e=makeExtensionContext(_0x272655),_0x595dd5={'sessionId':_0x272655[_0x250ff3(_0x4788ba._0x132b9d,_0x4788ba._0xb7286,_0x4788ba._0xde06cd,_0x4788ba._0x41872f)],'turnId':_0x272655['turnId'],'state':_0x272655,'signal':_0x4dc1ee,..._0x14a5ae[_0x250ff3(0x44f,_0x4788ba._0x4762a8,0x461,0x45f)]?{'askUser':_0x14a5ae['askUser']}:{},..._0x14a5ae[_0x250ff3(_0x4788ba._0x2522e4,0x41f,0x459,0x436)]?{'setTopic':_0x14a5ae[_0x250ff3(0x417,0x405,_0x4788ba._0x14f38e,0x3df)]}:{}},{stage:_0x1f4329,emit:_0x1489a7,stageUnchecked:_0x25d8a3,emitUnchecked:_0x1d7102}=makeTurnGuards(_0x4dc1ee,_0x14a5ae['registry'],_0x14a5ae[_0x250ff3(0x471,_0x4788ba._0x1e8b17,0x418,_0x4788ba._0x1f5c51)],_0x3a1d9e,_0x595dd5),_0x295b23=async(_0x9f519a,_0x438cc5)=>{const _0x1e948d=_0x438cc5?{..._0x3a1d9e,'turnMeta':_0x438cc5}:_0x3a1d9e;function _0x54b92f(_0x5cedc7,_0x3000e4,_0x44da92,_0x5a0173){return _0x3b4a7f(_0x5cedc7,_0x3000e4-_0x25f1db._0x2a3074,_0x44da92-_0x25f1db._0x5dcf62,_0x44da92- -0x17b);}function _0x4081e1(_0x26e179,_0x427b36,_0x3a806a,_0x4f060a){return _0x3b4a7f(_0x4f060a,_0x427b36-0x71,_0x3a806a-_0x4fa4ba._0x5b683b,_0x3a806a- -_0x4fa4ba._0x32a9b2);}await _0x14a5ae[_0x4081e1(0x16d,0x111,_0x2d1e55._0x22fea7,0x16e)][_0x54b92f(_0x2d1e55._0x207554,0x2cb,0x30e,0x2b0)](_0x54b92f(0x38f,0x342,_0x2d1e55._0x539ce9,_0x2d1e55._0x444a86),structuredClone(_0x9f519a),_0x1e948d);};function _0x250ff3(_0x58c666,_0x3873a2,_0x520783,_0xcf908f){return _0x1213ea(_0x58c666-_0x12f4e8._0x320a44,_0x3873a2-_0x12f4e8._0x5cdc99,_0xcf908f,_0x58c666-_0x12f4e8._0x4a5405);}const _0x201923=async _0x3e6e60=>{const _0x58425c={_0x3f3880:0x3a4,_0x34b0a3:0x16a};function _0x12b3db(_0x5567c4,_0x2d671e,_0x2ff764,_0x42d8eb){return _0x250ff3(_0x5567c4-0x6,_0x2d671e-_0x2142b2._0x3f64dd,_0x2ff764-_0x2142b2._0x1d571c,_0x42d8eb);}if(!_0x55f2a1[_0x8d921d(_0x507218._0x1edd6c,_0x507218._0x1eb979,_0x507218._0x5ce9e1,0x12c)])return 0x0;const _0x233838=await _0x55f2a1['drainSteering']();throwIfAborted(_0x4dc1ee);if(_0x233838[_0x12b3db(0x43b,_0x507218._0x2fd254,0x463,_0x507218._0x2aa784)]===0x0)return 0x0;await _0x3e6e60?.();for(const _0x445a65 of _0x233838){const _0x49753b=await _0x1f4329(_0x12b3db(0x44b,0x436,_0x507218._0x2c79fb,0x49d),normalizeMessage(_0x445a65));throwIfAborted(_0x4dc1ee),_0x272655[_0x8d921d(_0x507218._0x43af51,_0x507218._0x3063dc,0x2e,_0x507218._0x886ade)][_0x12b3db(_0x507218._0x3868bb,0x4a2,0x508,_0x507218._0x52434d)](_0x49753b),await _0x295b23(_0x49753b),await _0x1489a7({'type':_0x12b3db(_0x507218._0x578945,_0x507218._0x4af2ed,0x4b4,0x4bf),'message':_0x49753b});}function _0x8d921d(_0x4c9029,_0x26a342,_0x3ff833,_0x3b0854){return _0x250ff3(_0x3b0854- -_0x58425c._0x3f3880,_0x26a342-_0x58425c._0x34b0a3,_0x3ff833-0x1bb,_0x3ff833);}return _0x233838['length'];};let _0x306117=0x0;try{const _0x1518f3=await _0x1f4329(_0x3b4a7f(_0x4788ba._0x17d26b,0x405,_0x4788ba._0x4208a3,0x457),normalizeMessage(_0x55f2a1[_0x3b4a7f(_0x4788ba._0x37e7db,_0x4788ba._0x364c0d,0x471,_0x4788ba._0x27d58b)]));_0x272655[_0x3b4a7f(0x3fc,0x437,_0x4788ba._0x26def9,_0x4788ba._0x3a0122)]['push'](_0x1518f3),await _0x295b23(_0x1518f3),await _0x1489a7({'type':_0x3b4a7f(0x4ad,0x45b,_0x4788ba._0x163b19,0x496),'message':_0x1518f3});while(!![]){throwIfAborted(_0x4dc1ee),_0x306117+=0x1;const _0x5759a6=createAssistantMessageId(_0x272655['turnId'],_0x306117),_0x5c473e=createReasoningMessageId(_0x5759a6),_0x6f7417={'model':_0x36ff20['model'],'modelIdentity':_0x36ff20[_0x250ff3(_0x4788ba._0x4852e1,_0x4788ba._0x5eb32d,0x478,_0x4788ba._0x2201b8)],..._0x36ff20[_0x250ff3(0x478,_0x4788ba._0x38c9e2,_0x4788ba._0x11d31f,0x43a)]?{'provider':_0x36ff20[_0x3b4a7f(0x47d,_0x4788ba._0x3e968a,0x4ed,_0x4788ba._0x302bd5)]}:{}};let _0x53def8={'model':_0x36ff20[_0x3b4a7f(_0x4788ba._0x405a7c,_0x4788ba._0x4b3576,0x41b,0x48c)],..._0x36ff20[_0x3b4a7f(0x527,_0x4788ba._0x3e3616,0x496,_0x4788ba._0x456470)]!==void 0x0?{'maxTokens':_0x36ff20['maxTokens']}:{},'system':structuredClone(_0x272655[_0x250ff3(0x451,0x416,0x465,_0x4788ba._0x5a613f)]),'messages':structuredClone(_0x272655[_0x3b4a7f(_0x4788ba._0x36689b,0x450,0x497,_0x4788ba._0x3a0122)]),'tools':_0x14a5ae['toolRuntime']['listToolSchemas'](),'metadata':{'sessionId':_0x272655[_0x3b4a7f(_0x4788ba._0x449f70,_0x4788ba._0xd7b60d,0x4d6,_0x4788ba._0x5d61e5)],'turnId':_0x272655['turnId'],'modelIdentity':_0x36ff20[_0x3b4a7f(0x3e8,_0x4788ba._0x499a3d,0x41a,0x446)],..._0x36ff20['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x36ff20['pricingProviderId']}:{}},..._0x14a5ae[_0x3b4a7f(_0x4788ba._0x8c2712,_0x4788ba._0xa4766f,0x419,0x443)]?{'outputFormat':_0x14a5ae[_0x250ff3(_0x4788ba._0x775e6d,0x487,_0x4788ba._0x380441,_0x4788ba._0x2861f8)]}:{}};_0x53def8=await _0x1f4329('beforeModelRequest',_0x53def8);{const {pricingProviderId:_0x31923d,..._0x1e0840}=_0x53def8[_0x3b4a7f(_0x4788ba._0xcfaa9e,_0x4788ba._0xcfaa9e,_0x4788ba._0x4e664d,0x4d7)];_0x53def8={..._0x53def8,'metadata':{..._0x1e0840,..._0x36ff20['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x36ff20[_0x3b4a7f(0x536,0x454,_0x4788ba._0x64ef28,_0x4788ba._0x340323)]}:{}}};}await _0x1489a7({'type':_0x3b4a7f(_0x4788ba._0x47adb9,0x4ac,_0x4788ba._0x194446,_0x4788ba._0x25b590),'request':_0x53def8});const _0x435583=Date['now']();_0x6f7417[_0x250ff3(_0x4788ba._0x57b09a,0x468,0x485,0x475)]=_0x435583;let _0x4128a0=await executeModelRequest(_0x53def8,_0x55f2a1,_0x36ff20,_0x14a5ae,_0x595dd5,{'assistantMessageId':_0x5759a6,'reasoningMessageId':_0x5c473e,'meta':_0x6f7417});const _0x2f273f=Date[_0x3b4a7f(_0x4788ba._0x41a044,0x521,_0x4788ba._0x3cef8f,0x4cc)]();_0x6f7417[_0x250ff3(_0x4788ba._0x5362c5,_0x4788ba._0x42b12f,0x43c,0x3da)]=_0x2f273f,_0x4128a0=await _0x1f4329('afterModelResponse',_0x4128a0);_0x4128a0[_0x3b4a7f(_0x4788ba._0x194631,_0x4788ba._0x5e115c,_0x4788ba._0x364c0d,_0x4788ba._0xd4108d)]&&(_0x4128a0={..._0x4128a0,'providerState':{..._0x4128a0[_0x250ff3(0x432,0x496,_0x4788ba._0x132ebf,_0x4788ba._0x5a613f)],'originModelIdentity':_0x36ff20[_0x250ff3(0x434,0x423,_0x4788ba._0x3ba80f,_0x4788ba._0xa4766f)]}});_0x4128a0=withEstimatedModelCost(_0x53def8,_0x4128a0);const _0x20cdc0=Math[_0x3b4a7f(0x3d6,0x3c9,0x3fd,_0x4788ba._0x1586e4)](0x0,_0x2f273f-_0x435583),_0x478252={'version':0x1,'usage':structuredClone(_0x4128a0['usage']),'modelTimeMs':_0x20cdc0},_0x253240=_0x582a04=>({..._0x6f7417,'metrics':{..._0x478252,'usage':structuredClone(_0x478252[_0x3b4a7f(0x44a,0x465,0x4af,0x4a2)]),'completesRequest':_0x582a04}});await _0x1489a7({'type':_0x250ff3(0x4e1,0x46e,0x4f0,_0x4788ba._0x1d21c7),'response':_0x4128a0,'modelTimeMs':_0x20cdc0}),_0x272655[_0x3b4a7f(_0x4788ba._0x26d4ef,0x406,_0x4788ba._0x192f1c,_0x4788ba._0x47f605)]=_0x4128a0;let _0x4a8af4=await _0x1f4329(_0x3b4a7f(_0x4788ba._0x2faaf3,_0x4788ba._0x4208a3,0x4aa,_0x4788ba._0x40e2c6),withMessageId(responseToAssistantMessage(_0x4128a0),_0x5759a6));_0x4a8af4=withMessageId(_0x4a8af4,_0x5759a6);const _0x14b5f4=getToolUseBlocks(_0x4a8af4),_0x4ebb40=await Promise[_0x250ff3(_0x4788ba._0x310b60,_0x4788ba._0x21e258,0x499,0x4ee)](_0x14b5f4[_0x250ff3(0x448,_0x4788ba._0x51439a,0x432,_0x4788ba._0x2847f4)](_0x3f28ca=>_0x1f4329(_0x3b4a7f(0x429,0x3fe,0x421,0x458),_0x3f28ca)));_0x4ebb40[_0x3b4a7f(_0x4788ba._0x1edb05,0x496,_0x4788ba._0x58489e,0x447)]>0x0&&(_0x4a8af4=replaceToolUseBlocks(_0x4a8af4,_0x4ebb40));const _0x59c95d=withMessageId(_0x4a8af4,_0x5759a6);_0x4a8af4=_0x59c95d;const _0x4ebad5=createReasoningMessage(_0x4a8af4),_0x390bfe=createAssistantTextMessage(_0x4a8af4),_0x2aa373=createToolUseMessage(_0x4a8af4);_0x4ebad5&&await _0x1489a7({'type':_0x3b4a7f(_0x4788ba._0x24bf74,_0x4788ba._0x4b0ed0,_0x4788ba._0x4cfd4a,0x4db),'message':withMessageId(_0x4ebad5,_0x5c473e)});_0x390bfe&&await _0x1489a7({'type':_0x250ff3(_0x4788ba._0x170ad2,0x3f5,_0x4788ba._0x45df93,0x444),'message':withMessageId(_0x390bfe,_0x5759a6)});_0x2aa373&&await _0x1489a7({'type':'tool_use_message','message':withMessageId(_0x2aa373,_0x5759a6)});_0x272655['messages'][_0x3b4a7f(0x47e,0x470,0x46d,0x4b9)](_0x59c95d);_0x4ebb40[_0x3b4a7f(_0x4788ba._0x373ea7,_0x4788ba._0xb75ee3,_0x4788ba._0x4f3f51,_0x4788ba._0x291eb5)]>0x0&&await _0x295b23(_0x59c95d,_0x253240(![]));for(const _0x245750 of _0x4ebb40){await _0x1489a7({'type':_0x3b4a7f(_0x4788ba._0x1e8b17,_0x4788ba._0x3bb7b9,0x4a8,0x4d5),'toolCall':_0x245750});}if(_0x4ebb40['length']===0x0){const _0x4cf798=await _0x201923(async()=>{await _0x295b23(_0x59c95d,_0x253240(![]));});if(_0x4cf798>0x0)continue;const _0xb6794d=await _0x1f4329(_0x3b4a7f(_0x4788ba._0x24516d,0x438,0x45e,0x46d),_0x4a8af4),_0x35cd5a=withMessageId(_0xb6794d,_0x5759a6);return _0x272655[_0x3b4a7f(0x46b,_0x4788ba._0x39d891,0x408,_0x4788ba._0x2861f8)]=_0x35cd5a,_0x272655[_0x3b4a7f(_0x4788ba._0x514904,0x470,0x4b7,0x44c)][_0x272655[_0x3b4a7f(0x481,0x423,_0x4788ba._0x1c8ccf,0x44c)][_0x3b4a7f(_0x4788ba._0x488ba4,_0x4788ba._0x23974d,0x471,_0x4788ba._0x291eb5)]-0x1]=_0x35cd5a,await _0x295b23(_0x35cd5a,_0x253240(!![])),await _0x1d7102({'type':_0x250ff3(_0x4788ba._0x55b981,0x486,0x50e,_0x4788ba._0x264b9c),'message':_0x35cd5a}),throwIfAborted(_0x4dc1ee),await _0x14a5ae['registry'][_0x3b4a7f(0x428,_0x4788ba._0x728cc5,0x49f,_0x4788ba._0x557e5d)](_0x250ff3(_0x4788ba._0x26b0e9,_0x4788ba._0x32ef33,_0x4788ba._0x43ed18,_0x4788ba._0x42c724),_0x272655,_0x3a1d9e),await _0x1489a7({'type':_0x250ff3(0x424,0x45b,_0x4788ba._0x20e894,0x474),'state':_0x272655}),{'status':_0x250ff3(_0x4788ba._0x2f8b47,0x4e5,_0x4788ba._0x3dbd09,0x4ff),'finalMessage':_0x35cd5a,'state':_0x272655};}let _0x89fae=await _0x14a5ae[_0x3b4a7f(_0x4788ba._0x1be3b2,0x402,0x445,_0x4788ba._0x199ebb)][_0x3b4a7f(_0x4788ba._0xf2a2f1,_0x4788ba._0x29291e,0x4a9,0x4b0)](_0x4ebb40,_0x595dd5);const _0xabe337=_0x89fae[_0x250ff3(_0x4788ba._0x2d13d4,0x481,_0x4788ba._0x2b8280,0x4e4)](isAbortedToolResult),_0xc1e3d0=_0xabe337?_0x25d8a3:_0x1f4329,_0x1dfe03=_0xabe337?_0x1d7102:_0x1489a7;_0x89fae=await Promise[_0x250ff3(0x4be,_0x4788ba._0x45df93,0x490,_0x4788ba._0x253f9c)](_0x89fae['map'](_0x1141e9=>_0xc1e3d0(_0x3b4a7f(0x56e,0x537,0x555,0x4fe),_0x1141e9))),_0x272655['toolResults']['push'](..._0x89fae);for(const _0x5db7b4 of _0x89fae){await _0x1dfe03({'type':'tool_result','result':_0x5db7b4});}const _0x4c8a0c=await _0xc1e3d0(_0x250ff3(_0x4788ba._0x1d1698,0x48d,0x553,_0x4788ba._0x7217af),createToolResultUserMessage(_0x89fae));await _0x1dfe03({'type':_0x3b4a7f(0x472,0x4e6,_0x4788ba._0xfdcf40,_0x4788ba._0x25fe8c),'message':_0x4c8a0c}),_0x272655[_0x250ff3(_0x4788ba._0x4cc2ae,0x416,0x3fd,0x46b)][_0x3b4a7f(0x4d6,_0x4788ba._0x2a9652,_0x4788ba._0x5b4129,_0x4788ba._0x380c42)](_0x4c8a0c),await _0x295b23(_0x4c8a0c);if(_0xabe337)return{'status':_0x250ff3(0x411,0x443,0x457,0x3f5),'state':_0x272655};await _0x201923();}}catch(_0x3787e5){if(!_0x4dc1ee[_0x250ff3(_0x4788ba._0x47d52e,_0x4788ba._0x58480e,_0x4788ba._0x3b8c69,0x43c)])throw new TurnFailedError(_0x3787e5,_0x272655);return{'status':_0x3b4a7f(_0x4788ba._0x1f5c51,0x48f,_0x4788ba._0x46835b,_0x4788ba._0x41aca5),'state':_0x272655};}}function createSessionId(){const _0x5065d1={_0x47f750:0xc6,_0x3569f9:0x5f,_0x287870:0xa0,_0x3e8bb4:0x406,_0x46b44a:0x3ee,_0x3c683d:0x46a,_0x6ba876:0x3d4};function _0x35e87c(_0x1bce5f,_0x343689,_0x133e37,_0x2a9fbf){return _0x4d4502(_0x343689-0x4f4,_0x343689-0x83,_0x1bce5f,_0x2a9fbf-0x5c);}function _0x2c4ee0(_0x1e4381,_0x253586,_0x3cf0bf,_0x5ef65f){return _0x4d4502(_0x1e4381-0xa2,_0x253586-0x1cd,_0x253586,_0x5ef65f-0x2b);}return _0x2c4ee0(-_0x5065d1._0x47f750,-_0x5065d1._0x3569f9,-0x5e,-_0x5065d1._0x287870)+Date['now']()+'-'+Math[_0x2c4ee0(-0xeb,-0x10e,-0xee,-0xb0)]()[_0x35e87c(0x3df,_0x5065d1._0x3e8bb4,0x437,0x3fe)](0x10)[_0x35e87c(_0x5065d1._0x46b44a,0x40d,_0x5065d1._0x3c683d,_0x5065d1._0x6ba876)](0x2,0xa);}function createTurnId(_0x3506af){const _0x6a77c5={_0x5b164b:0x35d,_0x516df0:0x2f9},_0x4b268a={_0x14b7d0:0x48c};function _0x1eeaa2(_0x166ef4,_0x51c163,_0x4a922c,_0x3c6513){return _0x4d4502(_0x166ef4-_0x4b268a._0x14b7d0,_0x51c163-0x19d,_0x51c163,_0x3c6513-0xb4);}return _0x1eeaa2(0x2f7,_0x6a77c5._0x5b164b,_0x6a77c5._0x516df0,0x2a8)+_0x3506af;}function _0x63b3(_0x114009,_0x4568e5){_0x114009=_0x114009-0x7b;const _0x26cd95=_0x26cd();let _0x63b35e=_0x26cd95[_0x114009];if(_0x63b3['nDHMPW']===undefined){var _0x2ca5ce=function(_0x4f8378){const _0x16f617='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x43043c='',_0x1372d0='';for(let _0xd507e8=0x0,_0x1b4c04,_0x15abb0,_0x4382cd=0x0;_0x15abb0=_0x4f8378['charAt'](_0x4382cd++);~_0x15abb0&&(_0x1b4c04=_0xd507e8%0x4?_0x1b4c04*0x40+_0x15abb0:_0x15abb0,_0xd507e8++%0x4)?_0x43043c+=String['fromCharCode'](0xff&_0x1b4c04>>(-0x2*_0xd507e8&0x6)):0x0){_0x15abb0=_0x16f617['indexOf'](_0x15abb0);}for(let _0x32d5b9=0x0,_0x21a684=_0x43043c['length'];_0x32d5b9<_0x21a684;_0x32d5b9++){_0x1372d0+='%'+('00'+_0x43043c['charCodeAt'](_0x32d5b9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1372d0);};_0x63b3['TKmmxi']=_0x2ca5ce,_0x63b3['EobtJL']={},_0x63b3['nDHMPW']=!![];}const _0xe74b22=_0x26cd95[0x0],_0x989a0c=_0x114009+_0xe74b22,_0x502c27=_0x63b3['EobtJL'][_0x989a0c];return!_0x502c27?(_0x63b35e=_0x63b3['TKmmxi'](_0x63b35e),_0x63b3['EobtJL'][_0x989a0c]=_0x63b35e):_0x63b35e=_0x502c27,_0x63b35e;}function createDefaultMessage(_0xb5014){if(_0xb5014===void 0x0)return void 0x0;return normalizeUserInput(_0xb5014);}function normalizeUserInput(_0x22799b){const _0x36b053={_0xc69525:0x198,_0x25162e:0x204,_0x548534:0x237,_0x54f81c:0x254,_0x5cdf80:0x282,_0x128d4b:0x253,_0x18e9a3:0x26a,_0x5b4a48:0x294,_0x2724c5:0x202},_0x5d3e78={_0x7598f6:0xa4},_0x499713={_0x566ca1:0x383,_0x244680:0xf3,_0x450cab:0x1a3};function _0x1b491f(_0x43cbb8,_0x29d97b,_0x87ca6e,_0xe70096){return _0x4d4502(_0x43cbb8-_0x499713._0x566ca1,_0x29d97b-_0x499713._0x244680,_0x87ca6e,_0xe70096-_0x499713._0x450cab);}if(typeof _0x22799b===_0x3fd612(0x15c,0x1cd,_0x36b053._0xc69525,_0x36b053._0x25162e))return{'role':_0x1b491f(_0x36b053._0x548534,_0x36b053._0x54f81c,_0x36b053._0x5cdf80,_0x36b053._0x128d4b),'content':[{'type':_0x1b491f(_0x36b053._0x18e9a3,0x27e,_0x36b053._0x5b4a48,_0x36b053._0x2724c5),'text':_0x22799b}]};function _0x3fd612(_0x5d1b7d,_0x2ba620,_0x177cd8,_0x501d3d){return _0x1213ea(_0x5d1b7d-_0x5d3e78._0x7598f6,_0x2ba620-0x3d,_0x501d3d,_0x177cd8-0x340);}return normalizeMessage(_0x22799b);}function resolveChatModel(_0x3ce116){const _0x1e725f={_0x2957ab:0x1b9,_0x558ca6:0x18c,_0x540675:0x166,_0x2c05c8:0x14d,_0x28cce6:0x162,_0x270fed:0x6b,_0x30aef7:0x96,_0x98ab58:0x78},_0x230a71={_0x3cc8f9:0x18},_0x4b432f={_0x160ae1:0x3};if(!_0x3ce116[_0x22a6e8(-_0x1e725f._0x2957ab,-0x17b,-0x1dc,-_0x1e725f._0x558ca6)])throw new Error(_0x22a6e8(-_0x1e725f._0x540675,-_0x1e725f._0x2c05c8,-0x1c0,-_0x1e725f._0x28cce6));function _0x22a6e8(_0x401880,_0x128861,_0x2b1853,_0x26e280){return _0x4d4502(_0x128861- -0x23,_0x128861-_0x4b432f._0x160ae1,_0x401880,_0x26e280-0x1ae);}function _0x4787e2(_0x47d2fb,_0x2652dd,_0x5742d2,_0x309e1a){return _0x1213ea(_0x47d2fb-0x45,_0x2652dd-_0x230a71._0x3cc8f9,_0x2652dd,_0x5742d2-0x17c);}return _0x3ce116[_0x4787e2(-_0x1e725f._0x270fed,-_0x1e725f._0x30aef7,-_0x1e725f._0x98ab58,-0x53)];}function createRegistry(_0x22126f){const _0x9c98ec={_0x58efbf:0x5,_0x25ed2b:0x185,_0x24838d:0x1ef,_0x36a460:0xc4,_0x282e42:0x18,_0x1180f4:0x58},_0x598e76={_0x2525b8:0xff},_0x153ffc={_0x34b412:0x153};if(_0x22126f['registry'])return _0x22126f[_0x4b9232(0xd,-0x43,_0x9c98ec._0x58efbf,0x6b)];const _0xbc62e4=createExtensionRegistry();function _0x4f1217(_0x21a319,_0x22b6de,_0x243931,_0x52d9e0){return _0x1213ea(_0x21a319-0xa,_0x22b6de-_0x153ffc._0x34b412,_0x21a319,_0x52d9e0- -0x1d);}const _0x518f85=_0x22126f[_0x4f1217(-_0x9c98ec._0x25ed2b,-0x23b,-0x199,-_0x9c98ec._0x24838d)]??[];function _0x4b9232(_0x3ca109,_0x2c4cb2,_0x308d91,_0x595d70){return _0x4d4502(_0x308d91-_0x598e76._0x2525b8,_0x2c4cb2-0x148,_0x595d70,_0x595d70-0x150);}for(const _0x200349 of _0x518f85){_0xbc62e4[_0x4b9232(-_0x9c98ec._0x36a460,-_0x9c98ec._0x282e42,-_0x9c98ec._0x1180f4,0x1)](_0x200349);}return _0xbc62e4;}var Agent=class{[_0x1213ea(-0x282,-0x275,-0x1f1,-0x228)];[_0x4d4502(-0x19a,-0x174,-0x203,-0x19f)];[_0x1213ea(-0x1e2,-0x231,-0x285,-0x242)];['sessionId'];[_0x4d4502(-0x19c,-0x1e6,-0x20f,-0x138)];['defaultMessage'];[_0x4d4502(-0x148,-0xef,-0x1b1,-0x108)];constructor(_0x3142f0={}){const _0x1b58e6={_0x28b6df:0x13a,_0x5e4673:0x1ad,_0x1a01d4:0x20a,_0x53ae3c:0x1d7,_0x176697:0x195,_0x185738:0x1b0,_0x239c5e:0x1a2,_0x2032d3:0x22e,_0x3c076e:0x1ec,_0x55a56f:0x103,_0x1710ef:0x131,_0x40635e:0x1b5,_0x3c7b5f:0x14a,_0x52a032:0x183,_0x4cd806:0x122,_0x435bd6:0x170,_0x1964ae:0x189,_0x3655bb:0x157,_0xbfc755:0x15e,_0x22b926:0x112,_0x4b4671:0x140,_0x1713ba:0x1f9,_0x4af1b3:0x154,_0x412621:0x20d,_0x29168f:0x1c5,_0x38831c:0x1c4,_0x79ebb0:0x13f,_0x4dbd9e:0x109,_0x5a697f:0x14c,_0x317a4f:0x171,_0x25c9ed:0x1e5,_0x1e9abf:0x1e3,_0x5638f5:0x18b,_0x3b01a3:0x114},_0x42d18e={_0xf1c1a:0x39,_0x4fa480:0x23,_0x18ac3b:0x4a4,_0x355dbb:0x416},_0x4ca867={_0x2631e8:0x1b6,_0x132144:0x83},_0x45b990={_0x520b3f:0xaf,_0x1be0c8:0x78};this[_0x5830db(_0x1b58e6._0x28b6df,0x162,0x15e,0x184)]=_0x3142f0[_0x2bfd9e(-_0x1b58e6._0x5e4673,-0x18c,-0x182,-0x186)]??createSessionId(),this[_0x5830db(0x1d9,0x17c,_0x1b58e6._0x1a01d4,0x19e)]=0x0;function _0x2bfd9e(_0x4bec2a,_0x484f87,_0x82f0fc,_0x1375fb){return _0x1213ea(_0x4bec2a-_0x45b990._0x520b3f,_0x484f87-0x6,_0x82f0fc,_0x1375fb-_0x45b990._0x1be0c8);}this[_0x2bfd9e(-_0x1b58e6._0x53ae3c,-0x1cb,-_0x1b58e6._0x176697,-_0x1b58e6._0x185738)]=_0x3142f0[_0x2bfd9e(-0x17a,-_0x1b58e6._0x239c5e,-_0x1b58e6._0x2032d3,-_0x1b58e6._0x3c076e)]??'',this[_0x2bfd9e(-0x22b,-0x169,-0x190,-0x1c0)]=(_0x3142f0[_0x5830db(_0x1b58e6._0x55a56f,_0x1b58e6._0x1710ef,_0x1b58e6._0x40635e,_0x1b58e6._0x3c7b5f)]??[])[_0x2bfd9e(-_0x1b58e6._0x52a032,-0x186,-0x177,-0x1b2)](normalizeMessage),this['defaultMessage']=createDefaultMessage(_0x3142f0[_0x5830db(_0x1b58e6._0x4cd806,_0x1b58e6._0x435bd6,_0x1b58e6._0x1964ae,_0x1b58e6._0x3655bb)]);function _0x5830db(_0x4d7ef2,_0x18849d,_0x1dfc8e,_0x4f598d){return _0x1213ea(_0x4d7ef2-_0x4ca867._0x2631e8,_0x18849d-_0x4ca867._0x132144,_0x4d7ef2,_0x4f598d-0x382);}this[_0x5830db(_0x1b58e6._0xbfc755,_0x1b58e6._0x22b926,0x128,_0x1b58e6._0x4b4671)]=createAgentMetrics({'getContextWindowLimit':_0x3142f0[_0x2bfd9e(-0x215,-_0x1b58e6._0x1713ba,-_0x1b58e6._0x4af1b3,-0x1ac)]});const _0x24e178=_0x3142f0['onEvent'],_0x3b7261=async(_0x73cec2,_0x22132b)=>{const _0x336c52={_0x5a875b:0x1ed};function _0x10bd88(_0x45dfeb,_0x47aaf,_0x5849b7,_0x332a36){return _0x5830db(_0x332a36,_0x47aaf-0xc2,_0x5849b7-0x1b7,_0x47aaf-0x2eb);}function _0x291470(_0x59b1f6,_0x37f84a,_0x59cb29,_0x113bb7){return _0x2bfd9e(_0x59b1f6-0x102,_0x37f84a-0xce,_0x59cb29,_0x113bb7-_0x336c52._0x5a875b);}this[_0x291470(_0x42d18e._0xf1c1a,-0x30,-0x27,_0x42d18e._0x4fa480)][_0x10bd88(_0x42d18e._0x18ac3b,0x476,_0x42d18e._0x355dbb,0x42e)](_0x73cec2),await _0x24e178?.(_0x73cec2,_0x22132b);},_0x105082=createInternalToolRuntime(_0x3142f0['tools']??[],{'onEvent':_0x3b7261,'onToolCall':_0x3142f0[_0x5830db(_0x1b58e6._0x412621,0x201,_0x1b58e6._0x29168f,_0x1b58e6._0x38831c)]});this[_0x5830db(_0x1b58e6._0x79ebb0,0x109,_0x1b58e6._0x4dbd9e,_0x1b58e6._0x5a697f)]={'registry':createRegistry(_0x3142f0),'chatModel':resolveChatModel(_0x3142f0),'toolRuntime':_0x105082,'askUser':_0x3142f0['askUser'],'setTopic':_0x3142f0[_0x2bfd9e(-_0x1b58e6._0x317a4f,-_0x1b58e6._0x25c9ed,-0x1df,-_0x1b58e6._0x1e9abf)],'onEvent':_0x3b7261,'sessionDir':_0x3142f0[_0x5830db(_0x1b58e6._0x5638f5,_0x1b58e6._0x3b01a3,0xde,0x146)],'outputFormat':_0x3142f0['outputFormat']};}get['systemPrompt'](){const _0x3bf081={_0x46b56e:0xce};function _0x1fa17e(_0x140668,_0x53450e,_0xdbee14,_0xff70af){return _0x4d4502(_0x53450e-0x609,_0x53450e-_0x3bf081._0x46b56e,_0xff70af,_0xff70af-0x12b);}return this[_0x1fa17e(0x4cd,0x47d,0x4e0,0x4e5)];}[_0x1213ea(-0x249,-0x19c,-0x1d2,-0x1dd)](_0x31ed2b=[]){const _0x4ff247={_0x4aa835:0x15b,_0x482754:0xf5,_0x4df56c:0x12b,_0x233ca6:0x14d},_0x41ed29={_0x11c0bc:0x2f5,_0x27a836:0xa};function _0x31d4f7(_0x119cb8,_0x5cd570,_0x5c3933,_0x3dd701){return _0x4d4502(_0x5cd570-_0x41ed29._0x11c0bc,_0x5cd570-0x0,_0x3dd701,_0x3dd701-_0x41ed29._0x27a836);}function _0x2ed8a0(_0x407de7,_0x1577dd,_0x14f5aa,_0x5e4364){return _0x4d4502(_0x14f5aa-0x4b,_0x1577dd-0xf0,_0x5e4364,_0x5e4364-0x8d);}this['deps'][_0x2ed8a0(-_0x4ff247._0x4aa835,-_0x4ff247._0x482754,-0x12a,-0x105)][_0x2ed8a0(-_0x4ff247._0x4df56c,-_0x4ff247._0x233ca6,-0xf6,-0xe2)](_0x31ed2b);}[_0x1213ea(-0x18f,-0x1df,-0x18b,-0x1d5)](){const _0x220adc={_0x401a6f:0x168,_0x13f388:0x1aa,_0x509175:0x277,_0x37f86b:0xbb,_0x6cdfdd:0xb8},_0x3974f9={_0x2e096e:0x117},_0x26f59f={_0x4865f0:0x16};function _0x46987d(_0x57f470,_0xd3c4d4,_0xe7dce6,_0x2c7ac3){return _0x4d4502(_0xd3c4d4- -0x10d,_0xd3c4d4-0x5b,_0xe7dce6,_0x2c7ac3-_0x26f59f._0x4865f0);}function _0x388f92(_0x5f4988,_0x4b5816,_0x48f259,_0x20ae33){return _0x1213ea(_0x5f4988-0x14b,_0x4b5816-_0x3974f9._0x2e096e,_0x20ae33,_0x4b5816-0xce);}return this[_0x388f92(-0x199,-_0x220adc._0x401a6f,-0x119,-_0x220adc._0x13f388)][_0x46987d(-_0x220adc._0x509175,-0x282,-0x2f3,-0x2a4)][_0x388f92(-_0x220adc._0x37f86b,-0xbe,-_0x220adc._0x6cdfdd,-0xc9)]();}[_0x1213ea(-0x19c,-0x1ed,-0x1fd,-0x1d6)](_0x5702da,_0x2d7024={}){const _0x33d58d={_0x2e68d0:0x2a1,_0x1a7ab5:0x269,_0x160205:0x21b,_0x547740:0x27e,_0x4ba65b:0x2a9,_0x35ab04:0x34c,_0xb7f04e:0x2a8,_0x15a8f3:0x2ab,_0x2fca05:0x308},_0x4ce4c7={_0x1aaa0d:0x16a,_0x61e8f3:0x491},_0x369e41={_0x3fc1dd:0x175,_0x1d4c71:0xd2};function _0x226be2(_0x2ca5ac,_0x3522cc,_0x2d9de3,_0x40711e){return _0x4d4502(_0x40711e- -_0x369e41._0x3fc1dd,_0x3522cc-_0x369e41._0x1d4c71,_0x3522cc,_0x40711e-0x198);}this[_0x35a8e1(0x22f,_0x33d58d._0x2e68d0,_0x33d58d._0x1a7ab5,_0x33d58d._0x160205)]=_0x5702da;function _0x35a8e1(_0x27903e,_0x5acca5,_0x55f596,_0x35fbf9){return _0x1213ea(_0x27903e-_0x4ce4c7._0x1aaa0d,_0x5acca5-0x119,_0x27903e,_0x55f596-_0x4ce4c7._0x61e8f3);}_0x2d7024[_0x226be2(-_0x33d58d._0x1a7ab5,-0x2ab,-_0x33d58d._0x547740,-_0x33d58d._0x4ba65b)]===!![]&&(this[_0x226be2(-0x2f2,-0x363,-_0x33d58d._0x35ab04,-0x311)]=[],this[_0x226be2(-_0x33d58d._0xb7f04e,-_0x33d58d._0x15a8f3,-_0x33d58d._0x2fca05,-0x2bd)]=0x0);}[_0x4d4502(-0x149,-0x128,-0xfb,-0x118)](_0x13b0a1){const _0x45b20e={_0x1bc549:0x2e},_0x1e3111={_0x3e7484:0x134};function _0x46cbff(_0x33588a,_0x178c9b,_0xddce2e,_0x1cee05){return _0x4d4502(_0xddce2e-_0x1e3111._0x3e7484,_0x178c9b-0x18d,_0x1cee05,_0x1cee05-0x154);}this[_0x46cbff(0x3e,-0x76,-_0x45b20e._0x1bc549,0x5)]=_0x13b0a1;}[_0x4d4502(-0xf1,-0x9e,-0x13c,-0x14d)](_0x4d7f6e){const _0x535cbf={_0x305880:0x249,_0x161001:0x1fa,_0x5c8dae:0x280,_0x841df3:0x25f,_0x532d3a:0x324},_0xcf7055={_0x1de166:0x495},_0x4454e6={_0x1c441b:0x19d,_0x13acae:0xfd};function _0x481ad3(_0x2e4816,_0x39564f,_0x299786,_0x9c65fb){return _0x1213ea(_0x2e4816-0x1d4,_0x39564f-_0x4454e6._0x1c441b,_0x299786,_0x39564f- -_0x4454e6._0x13acae);}function _0x40f9e8(_0x280c67,_0x54d76b,_0x491033,_0x5c1aea){return _0x1213ea(_0x280c67-0x157,_0x54d76b-0x91,_0x491033,_0x5c1aea-_0xcf7055._0x1de166);}this[_0x40f9e8(_0x535cbf._0x305880,_0x535cbf._0x161001,_0x535cbf._0x5c8dae,_0x535cbf._0x841df3)][_0x481ad3(-_0x535cbf._0x532d3a,-0x2f1,-0x306,-0x2cc)]=_0x4d7f6e;}async[_0x1213ea(-0x20f,-0x253,-0x1f5,-0x219)](_0x34a900=this[_0x1213ea(-0x1bb,-0x228,-0x1f7,-0x1cc)],_0x504728={}){const _0x53bb1a={_0x6a9838:0x2a9,_0x1df714:0x317,_0x264d32:0x308,_0x2d9c7e:0x49,_0xad8c0e:0x36,_0x2de246:0x2f1,_0x555df4:0x320,_0x1ceada:0x361,_0x51fac0:0x2e4,_0xf83bc3:0x11d,_0x186aeb:0x123,_0x1e6802:0x80,_0x576771:0x63,_0x2cdfc6:0x91,_0x2f186d:0xa3,_0x2bc544:0xd7,_0x7e9a32:0xcc,_0x318416:0xb7,_0x4d1684:0x67,_0x18bf27:0x2b,_0x1dc13d:0x6,_0xda6093:0x5d,_0x1f9e71:0x137,_0x4170a1:0x2e,_0x455e3d:0x47,_0x2ce7b9:0x65,_0x580ca4:0x64,_0x644cf:0x2ba,_0x3627ec:0x54,_0x4d79d8:0x4d},_0x529160={_0x365ba1:0xe6},_0x260481={_0x5202bf:0x159,_0x1f2d05:0x16c};if(!_0x34a900)throw new Error('Agent.send\x20requires\x20a\x20message\x20when\x20no\x20default\x20message\x20is\x20configured');function _0x425dcf(_0x433adf,_0x48678a,_0x539d6b,_0x9373b4){return _0x1213ea(_0x433adf-0xd2,_0x48678a-_0x260481._0x5202bf,_0x9373b4,_0x48678a-_0x260481._0x1f2d05);}function _0x1a664a(_0x30607b,_0x5f53f7,_0x3c45b2,_0x2adfaa){return _0x1213ea(_0x30607b-0x64,_0x5f53f7-0x190,_0x2adfaa,_0x5f53f7- -_0x529160._0x365ba1);}this[_0x1a664a(-_0x53bb1a._0x6a9838,-0x2ca,-_0x53bb1a._0x1df714,-_0x53bb1a._0x264d32)]+=0x1;const _0x382c53=_0x504728[_0x425dcf(-_0x53bb1a._0x2d9c7e,-_0x53bb1a._0xad8c0e,-0x5c,-0x51)];try{const _0xccb4de=await runTurn({'sessionId':this[_0x1a664a(-0x356,-0x2e4,-_0x53bb1a._0x2de246,-0x2df)],'turnId':createTurnId(this[_0x1a664a(-0x2f2,-0x2ca,-0x335,-0x2f0)]),'streaming':_0x504728[_0x1a664a(-0x38d,-_0x53bb1a._0x555df4,-_0x53bb1a._0x1ceada,-_0x53bb1a._0x51fac0)],'signal':_0x504728['signal'],'system':this[_0x425dcf(-0xe2,-0xf8,-_0x53bb1a._0xf83bc3,-_0x53bb1a._0x186aeb)],'messages':this[_0x425dcf(-0x106,-0xcc,-_0x53bb1a._0x1e6802,-_0x53bb1a._0x576771)],'message':normalizeUserInput(_0x34a900),..._0x382c53?{'drainSteering':async()=>(await _0x382c53())[_0x425dcf(-0xe1,-0xbe,-0xd8,-0x5a)](normalizeUserInput)}:{}},this[_0x425dcf(-_0x53bb1a._0x2cdfc6,-0xca,-0xb4,-_0x53bb1a._0x2f186d)]);return this[_0x425dcf(-_0x53bb1a._0x2bc544,-_0x53bb1a._0x7e9a32,-0xb6,-_0x53bb1a._0x318416)]=_0xccb4de[_0x425dcf(-_0x53bb1a._0x4d1684,-_0x53bb1a._0x18bf27,-_0x53bb1a._0x1dc13d,-0x9f)][_0x425dcf(-_0x53bb1a._0xda6093,-0xcc,-_0x53bb1a._0x1f9e71,-0xa0)]['map'](normalizeMessage),_0xccb4de;}catch(_0x3ae3f8){if(_0x3ae3f8 instanceof TurnFailedError){this['messages']=synthesizeMissingToolResults(_0x3ae3f8[_0x425dcf(_0x53bb1a._0x4170a1,-0x2b,-0x6d,-_0x53bb1a._0x455e3d)][_0x425dcf(-_0x53bb1a._0x2ce7b9,-0xcc,-0xf4,-_0x53bb1a._0x580ca4)][_0x1a664a(-0x2c8,-0x310,-_0x53bb1a._0x644cf,-0x36c)](normalizeMessage));throw _0x3ae3f8[_0x425dcf(0x12,-_0x53bb1a._0x3627ec,-_0x53bb1a._0x4d79d8,-0x82)];}throw _0x3ae3f8;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
|