@nuvin/agent-core 0.3.0-rc.3 → 0.3.0-rc.4
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-C7XNCD5L.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-EQGBU73Q.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-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/isolate/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +2 -1
- package/dist/tools/index.js +1 -1
- package/package.json +2 -2
package/dist/chunk-C7XNCD5L.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5f0dd1,_0x5b8bf1){const _0x5ece57={_0x4e70f7:0x19d,_0x164cef:0x1b4,_0x20a5c0:0x22e,_0x5c91e3:0x1cc,_0x36c4d8:0x167,_0x332911:0xf0,_0x50bfa5:0x127,_0x114b9f:0xfb,_0x4cdc2b:0xda,_0x403896:0x1ee,_0x34e438:0x1fd,_0x498f99:0x183,_0x225444:0x197,_0x4c511e:0xc6,_0xfedcaf:0x146,_0x16acb8:0x184,_0x22c860:0x1d8,_0x38bd7d:0x123};function _0x2fc848(_0x4742ba,_0x562d15,_0x16e7a3,_0x2c1598){return _0x9ad4(_0x16e7a3- -0x3,_0x562d15);}const _0x54add2=_0x5f0dd1();function _0x31c11e(_0x1388e2,_0x5e2418,_0x39435b,_0x32906c){return _0x9ad4(_0x39435b-0x89,_0x5e2418);}while(!![]){try{const _0x2fef7f=-parseInt(_0x2fc848(_0x5ece57._0x4e70f7,0x1a1,_0x5ece57._0x164cef,0x1fe))/0x1*(-parseInt(_0x31c11e(_0x5ece57._0x20a5c0,0x22e,0x1fb,0x24d))/0x2)+parseInt(_0x31c11e(_0x5ece57._0x5c91e3,0x1a6,_0x5ece57._0x36c4d8,_0x5ece57._0x332911))/0x3*(-parseInt(_0x2fc848(_0x5ece57._0x50bfa5,0x127,_0x5ece57._0x114b9f,_0x5ece57._0x4cdc2b))/0x4)+-parseInt(_0x2fc848(0x192,_0x5ece57._0x403896,0x1a5,_0x5ece57._0x34e438))/0x5*(-parseInt(_0x2fc848(0x176,_0x5ece57._0x498f99,0x161,0x1a9))/0x6)+-parseInt(_0x2fc848(_0x5ece57._0x225444,_0x5ece57._0x4c511e,0x118,0xf6))/0x7+-parseInt(_0x2fc848(0x1be,0x1c1,0x1be,0x1ac))/0x8+parseInt(_0x2fc848(_0x5ece57._0xfedcaf,0x10b,_0x5ece57._0x16acb8,0x18a))/0x9+parseInt(_0x2fc848(_0x5ece57._0x22c860,_0x5ece57._0x38bd7d,0x16e,0x13f))/0xa;if(_0x2fef7f===_0x5b8bf1)break;else _0x54add2['push'](_0x54add2['shift']());}catch(_0x268b34){_0x54add2['push'](_0x54add2['shift']());}}}(_0x2591,0x318ae));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(_0x3eb746){const _0x2005bd={_0x2c29c3:0x3ab,_0x23b3f0:0x423,_0x51852f:0x419,_0x284cf5:0x3fc,_0x745d9f:0x380},_0x4f31dc={_0x24ba39:0x197},_0x1c6f49={_0x14bbd1:0x280};function _0x52980f(_0x37d62d,_0x54d272,_0x1467fd,_0x392eb9){return _0x9ad4(_0x54d272-_0x1c6f49._0x14bbd1,_0x1467fd);}function _0x33a3cf(_0x5178d9,_0x1713b5,_0x412171,_0x5cb524){return _0x9ad4(_0x1713b5-_0x4f31dc._0x24ba39,_0x412171);}return typeof _0x3eb746===_0x52980f(0x356,_0x2005bd._0x2c29c3,_0x2005bd._0x23b3f0,0x3af)&&_0x3eb746!==null&&!Array[_0x52980f(_0x2005bd._0x51852f,_0x2005bd._0x284cf5,0x399,_0x2005bd._0x745d9f)](_0x3eb746);}function _0x9ad4(_0x2f0cdd,_0x5bb68d){_0x2f0cdd=_0x2f0cdd-0xd7;const _0x259161=_0x2591();let _0x9ad4e=_0x259161[_0x2f0cdd];if(_0x9ad4['bzJOuT']===undefined){var _0x3c4b50=function(_0x5cebc0){const _0x3860b2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3eb746='',_0x416dd7='';for(let _0x47f337=0x0,_0x484057,_0x1c996b,_0x86b586=0x0;_0x1c996b=_0x5cebc0['charAt'](_0x86b586++);~_0x1c996b&&(_0x484057=_0x47f337%0x4?_0x484057*0x40+_0x1c996b:_0x1c996b,_0x47f337++%0x4)?_0x3eb746+=String['fromCharCode'](0xff&_0x484057>>(-0x2*_0x47f337&0x6)):0x0){_0x1c996b=_0x3860b2['indexOf'](_0x1c996b);}for(let _0x7ef2ff=0x0,_0x372146=_0x3eb746['length'];_0x7ef2ff<_0x372146;_0x7ef2ff++){_0x416dd7+='%'+('00'+_0x3eb746['charCodeAt'](_0x7ef2ff)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x416dd7);};_0x9ad4['oQHAwT']=_0x3c4b50,_0x9ad4['QqpVqB']={},_0x9ad4['bzJOuT']=!![];}const _0x2ec6a7=_0x259161[0x0],_0x51318b=_0x2f0cdd+_0x2ec6a7,_0x367fea=_0x9ad4['QqpVqB'][_0x51318b];return!_0x367fea?(_0x9ad4e=_0x9ad4['oQHAwT'](_0x9ad4e),_0x9ad4['QqpVqB'][_0x51318b]=_0x9ad4e):_0x9ad4e=_0x367fea,_0x9ad4e;}function isToolOutputEnvelope(_0x416dd7){const _0x569a44={_0x4391bf:0x1f7,_0x46fa37:0x2af,_0x35e17b:0x266,_0x48b281:0x2db,_0x406b68:0x233,_0x2d561f:0x27d,_0x1d1731:0x21d,_0x212524:0x1df,_0x74c12b:0x1d7,_0x20034b:0x217,_0x90f709:0x212,_0x33c6e4:0x1f8},_0x389deb={_0x385a8d:0x13b};function _0x477cb3(_0x38f3d5,_0x237c7f,_0x1962ae,_0x422d4b){return _0x9ad4(_0x237c7f- -0x3a1,_0x422d4b);}if(typeof _0x416dd7!==_0x530ef5(_0x569a44._0x4391bf,0x205,_0x569a44._0x46fa37,_0x569a44._0x35e17b)||_0x416dd7===null||Array[_0x530ef5(0x300,_0x569a44._0x48b281,_0x569a44._0x406b68,0x2b7)](_0x416dd7))return![];function _0x530ef5(_0x5eaa35,_0x110ce9,_0x240b5f,_0x358e7d){return _0x9ad4(_0x358e7d-_0x389deb._0x385a8d,_0x240b5f);}if(typeof _0x416dd7[_0x530ef5(0x1e0,0x295,_0x569a44._0x2d561f,_0x569a44._0x1d1731)]!==_0x530ef5(_0x569a44._0x212524,0x25a,_0x569a44._0x74c12b,_0x569a44._0x20034b))return![];const _0x47f337=_0x416dd7[_0x477cb3(-_0x569a44._0x90f709,-_0x569a44._0x33c6e4,-0x1d9,-0x1d1)];return _0x47f337===void 0x0||isJsonObject(_0x47f337);}function validateAgainstSchema(_0x484057,_0x1c996b,_0x86b586){const _0x587be1={_0x411ae6:0x1fa,_0x47e25a:0x1fa,_0x5dd004:0x274,_0x3ddec4:0x1ab,_0x3835c3:0x2c2,_0x114ed9:0x2da,_0x5b2847:0x345,_0x59da5f:0x3a2,_0x2a529c:0x30d,_0x5accb4:0x31d,_0x470075:0x1c0,_0x32afd3:0x1e0,_0x59adf4:0x2ba,_0x25ace2:0x2e5,_0x5845be:0x2c7,_0x3c8f12:0x320,_0x3f6b60:0x361,_0x4c62f5:0x3a3,_0x5b9487:0x338,_0x94e23c:0x34d,_0x10a40d:0x356,_0x34b87b:0x30e,_0x2de228:0x275,_0x6d5f46:0x3eb,_0x4cc054:0x210,_0x7b51e8:0x191,_0x7e27e6:0x205,_0x475a68:0x214,_0x5276c1:0x1c2,_0x1f3ea5:0x354,_0x4e02ed:0x33a,_0x23040f:0x3a0,_0x23572f:0x350,_0x4703d8:0x419,_0x4ba8bb:0x39b,_0x5c6006:0x3e9,_0x3f2226:0x2dd,_0x195404:0x2b3,_0x293d51:0x2c3,_0x203b29:0x375,_0x555ae3:0x39b,_0x9233c7:0x3de,_0x1e0f98:0x3c8,_0x513277:0x1de,_0x1442e3:0x1b2,_0x3efbbc:0x1b9,_0x19d95d:0x35a,_0xad63ce:0x388,_0xbc03b8:0x329,_0x11100d:0x2fc,_0x373784:0x307,_0x278a91:0x2ba,_0x431e65:0x2d9,_0x168ca4:0x23b,_0x2b6269:0x27c,_0x199d54:0x27c,_0x58cb02:0x223,_0xb3eb43:0x2af,_0x53fac2:0x2ec,_0xf288b0:0x3b6,_0x5517d5:0x386,_0x3df9af:0x32c,_0x38ff41:0x3f7,_0x446224:0x394,_0x542026:0x327},_0x28d386={_0x96671d:0x2e1,_0x550520:0x35c},_0x386965={_0x5b8843:0xca,_0x300691:0x130},_0x1deb1b={_0x59036c:0x1e7};if(_0x152e25(_0x587be1._0x411ae6,0x238,0x1b1,0x174)in _0x86b586){const _0x7ef2ff=_0x86b586[_0x152e25(_0x587be1._0x47e25a,0x243,_0x587be1._0x5dd004,_0x587be1._0x3ddec4)][_0x152e25(0x27f,0x229,_0x587be1._0x3835c3,_0x587be1._0x114ed9)](_0x372146=>{try{return validateAgainstSchema(_0x484057,_0x1c996b,_0x372146),!![];}catch{return![];}});if(!_0x7ef2ff)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x484057+_0x47b881(0x387,_0x587be1._0x5b2847,_0x587be1._0x59da5f,_0x587be1._0x2a529c));return;}function _0x152e25(_0x38d3fe,_0x3ab3a1,_0x29cccd,_0x283443){return _0x9ad4(_0x38d3fe-0x106,_0x283443);}function _0x47b881(_0x970b99,_0x2f6974,_0x448c7a,_0x3a6493){return _0x9ad4(_0x2f6974-_0x1deb1b._0x59036c,_0x970b99);}switch(_0x86b586[_0x47b881(0x38a,_0x587be1._0x5accb4,0x349,0x2d4)]){case'string':if(typeof _0x1c996b!==_0x152e25(0x1e2,_0x587be1._0x470075,0x21c,_0x587be1._0x32afd3))throw new Error(_0x152e25(_0x587be1._0x59adf4,0x2f1,0x313,_0x587be1._0x25ace2)+_0x484057+':\x20expected\x20string');if(_0x86b586[_0x47b881(_0x587be1._0x5845be,_0x587be1._0x3c8f12,0x29e,_0x587be1._0x3f6b60)]!==void 0x0&&!_0x86b586[_0x152e25(0x23f,0x1e2,0x24a,0x284)][_0x47b881(_0x587be1._0x4c62f5,_0x587be1._0x5b9487,_0x587be1._0x94e23c,_0x587be1._0x10a40d)](_0x1c996b))throw new Error(_0x152e25(0x2ba,_0x587be1._0x34b87b,_0x587be1._0x2de228,0x2c0)+_0x484057+_0x47b881(0x2ff,0x370,0x2eb,0x3f5)+_0x86b586['enum'][_0x47b881(0x3c6,0x36c,_0x587be1._0x6d5f46,0x34e)](',\x20'));return;case _0x152e25(0x214,_0x587be1._0x4cc054,_0x587be1._0x7b51e8,_0x587be1._0x7e27e6):if(typeof _0x1c996b!==_0x152e25(_0x587be1._0x475a68,0x1c1,_0x587be1._0x5276c1,0x1cc))throw new Error(_0x152e25(0x2ba,0x2b0,0x24a,0x27e)+_0x484057+_0x47b881(_0x587be1._0x1f3ea5,_0x587be1._0x4e02ed,_0x587be1._0x23040f,_0x587be1._0x23572f));return;case'boolean':if(typeof _0x1c996b!=='boolean')throw new Error(_0x47b881(_0x587be1._0x4703d8,_0x587be1._0x4ba8bb,0x3ad,_0x587be1._0x5c6006)+_0x484057+_0x47b881(0x29f,_0x587be1._0x3f2226,_0x587be1._0x195404,0x2a5));return;case'array':if(!Array[_0x152e25(0x282,0x29f,0x2f1,_0x587be1._0x293d51)](_0x1c996b))throw new Error(_0x47b881(_0x587be1._0x203b29,_0x587be1._0x555ae3,_0x587be1._0x9233c7,_0x587be1._0x1e0f98)+_0x484057+_0x152e25(_0x587be1._0x513277,_0x587be1._0x1442e3,_0x587be1._0x3efbbc,0x1a7));_0x1c996b['forEach']((_0x4339b2,_0x4b6f10)=>{function _0x53827b(_0x24f57e,_0x2cf18d,_0x56798e,_0x312c14){return _0x47b881(_0x24f57e,_0x56798e- -0x69,_0x56798e-_0x386965._0x5b8843,_0x312c14-_0x386965._0x300691);}validateAgainstSchema(_0x484057+'['+_0x4b6f10+']',_0x4339b2,_0x86b586[_0x53827b(0x38f,_0x28d386._0x96671d,_0x28d386._0x550520,0x312)]);});return;case _0x47b881(0x291,0x312,0x2d0,0x2d7):if(!isJsonObject(_0x1c996b))throw new Error(_0x47b881(0x3b2,_0x587be1._0x555ae3,0x3b1,0x394)+_0x484057+_0x47b881(_0x587be1._0x19d95d,0x349,0x370,0x2ef));for(const _0x306b95 of _0x86b586[_0x47b881(0x310,_0x587be1._0xad63ce,0x3f9,_0x587be1._0xbc03b8)]??[]){if(!Object[_0x152e25(_0x587be1._0x195404,0x272,_0x587be1._0x11100d,_0x587be1._0x373784)](_0x1c996b,_0x306b95))throw new Error(_0x152e25(_0x587be1._0x278a91,_0x587be1._0x431e65,0x2dc,0x244)+_0x484057+_0x47b881(0x3f0,0x3a1,0x32b,0x36c)+_0x306b95+'\x22');}if(_0x86b586[_0x152e25(_0x587be1._0x168ca4,_0x587be1._0x2b6269,_0x587be1._0x199d54,_0x587be1._0x58cb02)]===![]){const _0x5d5b60=Object[_0x152e25(0x2ab,0x2be,0x22b,_0x587be1._0xb3eb43)](_0x1c996b)['find'](_0x3530a4=>!Object[_0x47b881(0x3cb,0x394,0x3c7,0x336)](_0x86b586[_0x152e25(0x252,0x1eb,0x286,0x272)],_0x3530a4));if(_0x5d5b60!==void 0x0)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x484057+_0x152e25(0x2ca,0x303,0x2f3,_0x587be1._0x53fac2)+_0x5d5b60+'\x22');}for(const [_0x113d3f,_0x5cbb7a]of Object[_0x47b881(0x403,_0x587be1._0xf288b0,0x403,_0x587be1._0x5517d5)](_0x86b586[_0x47b881(0x314,0x333,0x360,_0x587be1._0x3df9af)])){Object[_0x47b881(_0x587be1._0x38ff41,_0x587be1._0x446224,0x3c4,_0x587be1._0x542026)](_0x1c996b,_0x113d3f)&&validateAgainstSchema(_0x484057+'.'+_0x113d3f,_0x1c996b[_0x113d3f],_0x5cbb7a);}}}function normalizeToolOutputValue(_0x59e85e){const _0x2bcdf3={_0x49be6e:0x42f,_0x5681b4:0x406,_0x4a72ce:0x4a3,_0x21dd0d:0x484,_0x2825c9:0x4e5,_0x596af2:0x4a9,_0x5a32bf:0x443,_0x39cc9f:0x3cf,_0xe663b5:0x491,_0x246f26:0xe4,_0x4d7bc7:0x145,_0x290478:0xf0,_0x5ea912:0x4c5,_0x515371:0x4b8,_0x2b6bb6:0x504,_0xa6278d:0x1d4,_0x53d542:0x230,_0x474d3c:0x223};if(isToolOutputEnvelope(_0x59e85e))return{'output':_0x59e85e[_0x4b8143(0x42c,_0x2bcdf3._0x49be6e,0x41e,_0x2bcdf3._0x5681b4)],'structured':_0x59e85e[_0x4b8143(_0x2bcdf3._0x4a72ce,_0x2bcdf3._0x21dd0d,_0x2bcdf3._0x2825c9,0x54a)]??{'value':_0x59e85e['output']},..._0x59e85e[_0x4b8143(0x47f,_0x2bcdf3._0x596af2,_0x2bcdf3._0x5a32bf,0x4b3)]!==void 0x0?{'content':_0x59e85e[_0x4b8143(_0x2bcdf3._0x39cc9f,_0x2bcdf3._0xe663b5,0x443,0x44b)]}:{}};function _0x22ade8(_0x42d13d,_0x37ee66,_0xf98009,_0x1ee262){return _0x9ad4(_0x42d13d-0x8,_0x1ee262);}if(typeof _0x59e85e===_0x22ade8(_0x2bcdf3._0x246f26,0xcc,_0x2bcdf3._0x4d7bc7,0x14d))return{'output':_0x59e85e,'structured':{'value':_0x59e85e}};function _0x4b8143(_0x5c7f56,_0x4cd572,_0x2dc692,_0x3df986){return _0x9ad4(_0x2dc692-0x33c,_0x3df986);}if(typeof _0x59e85e===_0x22ade8(0x133,_0x2bcdf3._0x290478,0x137,0x133)&&_0x59e85e!==null&&!Array[_0x4b8143(0x4b8,_0x2bcdf3._0x5ea912,_0x2bcdf3._0x515371,_0x2bcdf3._0x2b6bb6)](_0x59e85e))return{'output':JSON[_0x22ade8(_0x2bcdf3._0xa6278d,_0x2bcdf3._0x53d542,_0x2bcdf3._0x474d3c,0x178)](_0x59e85e,null,0x2),'structured':_0x59e85e};return{'output':JSON['stringify'](_0x59e85e,null,0x2),'structured':{'value':_0x59e85e}};}function createToolOutput(_0x5b94a9,_0x157142={'value':_0x5b94a9},_0xa8193){return{'output':_0x5b94a9,'structured':_0x157142,..._0xa8193!==void 0x0?{'content':_0xa8193}:{}};}var ToolExecutionError=class extends Error{[_0x5c6b7a(0x1bc,0x22c,0x236,0x234)];constructor(_0x635fc0,_0x4f564b={}){const _0x42ad74={_0x2b8e6c:0x12d},_0x192f71={_0x43138e:0x1b8,_0x509b7c:0x39,_0x4d83ad:0x83},_0x1c16d4={_0x1fac3e:0x1a7};super(_0x635fc0);function _0x16fd90(_0x44ee1f,_0x12aad7,_0x367ed5,_0x390ef2){return _0x5c6b7a(_0x44ee1f-0x120,_0x44ee1f- -0x316,_0x390ef2,_0x390ef2-_0x1c16d4._0x1fac3e);}this[_0x56e81a(0x221,0x23d,0x235,0x289)]='ToolExecutionError';function _0x56e81a(_0x3a8016,_0x5f4452,_0x589015,_0x175fea){return _0x5c6b7a(_0x3a8016-_0x192f71._0x43138e,_0x3a8016- -_0x192f71._0x509b7c,_0x175fea,_0x175fea-_0x192f71._0x4d83ad);}this[_0x16fd90(-0xea,-0x11b,-_0x42ad74._0x2b8e6c,-0x82)]=_0x4f564b;}};function defineTool(_0x1403d8){return _0x1403d8;}function resolveToolPermissionClass(_0x4c46ac){const _0x1ea1dd={_0x3fefe8:0x1cb,_0x205cb5:0x15f,_0x16e6dd:0x1b8,_0x3d1b85:0x150,_0x18712d:0x16,_0x31fb41:0x7e,_0x23aa3f:0xb6,_0x42c9dc:0x3d,_0x385bd9:0x87},_0x53ebe1={_0x1a5869:0xe1,_0x2b0542:0xeb,_0x33d3d4:0x149};function _0x4fd71a(_0x1bedaa,_0x1ae59f,_0x942275,_0x257c77){return _0x5c6b7a(_0x1bedaa-_0x53ebe1._0x1a5869,_0x257c77- -_0x53ebe1._0x2b0542,_0x942275,_0x257c77-_0x53ebe1._0x33d3d4);}function _0x35cdbb(_0x4289bd,_0x2734e3,_0xf71ec3,_0x19040d){return _0x5c6b7a(_0x4289bd-0x35,_0x4289bd- -0x132,_0x2734e3,_0x19040d-0x1a4);}const _0x40f4bf=_0x4c46ac?.['permissionClass'];if(_0x40f4bf===_0x4fd71a(_0x1ea1dd._0x3fefe8,_0x1ea1dd._0x205cb5,_0x1ea1dd._0x16e6dd,_0x1ea1dd._0x3d1b85)||_0x40f4bf===_0x4fd71a(0xdb,_0x1ea1dd._0x18712d,_0x1ea1dd._0x31fb41,0x77)||_0x40f4bf===_0x35cdbb(_0x1ea1dd._0x23aa3f,_0x1ea1dd._0x42c9dc,0xc0,0xec))return _0x40f4bf;return _0x4fd71a(0xfb,_0x1ea1dd._0x385bd9,0x162,0xfd);}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x14a965=[]){const _0x4ec77a={_0x20f846:0x297,_0x2158d9:0x284},_0x3b8054={_0x5aae37:0x447,_0x3462d8:0x1d8};function _0x16a775(_0x585060,_0x1091ef,_0x4c7ebf,_0x1a41b6){return _0x5c6b7a(_0x585060-0x21,_0x4c7ebf- -_0x3b8054._0x5aae37,_0x1091ef,_0x1a41b6-_0x3b8054._0x3462d8);}for(const _0x57e16f of _0x14a965){this[_0x16a775(-0x1c6,-_0x4ec77a._0x20f846,-0x227,-_0x4ec77a._0x2158d9)](_0x57e16f);}}[_0x5c6b7a(0x1a8,0x220,0x274,0x286)](_0x40ad62){const _0x564bb2={_0x445938:0x1dd,_0xe773da:0x180},_0x205609={_0x308b55:0x2c};function _0xf93424(_0xd85f65,_0x196b82,_0x3fa8f5,_0x9d2318){return _0x417469(_0xd85f65-_0x205609._0x308b55,_0x196b82-0x1de,_0x196b82,_0x9d2318-0x14c);}this['toolsByName'][_0xf93424(0x1ff,0x21a,_0x564bb2._0x445938,_0x564bb2._0xe773da)](_0x40ad62['name'],_0x40ad62);}['get'](_0x48b8d8){return this['toolsByName']['get'](_0x48b8d8);}[_0x5c6b7a(0x183,0x1aa,0x131,0x192)](){const _0xf8ae84={_0x29e33a:0x1f7,_0x946279:0x220,_0x9a7306:0x3c7},_0x421aa2={_0x375998:0x1d2,_0x50f234:0x9b},_0xc6d128={_0xffac4a:0x70,_0x550b7d:0x1a0};function _0xebd4f9(_0x4bbcd4,_0x38df68,_0x2b36e2,_0x43ad4a){return _0x5c6b7a(_0x4bbcd4-_0xc6d128._0xffac4a,_0x43ad4a-0x203,_0x38df68,_0x43ad4a-_0xc6d128._0x550b7d);}function _0x34e1bc(_0x3f803a,_0x3b74cf,_0xca8137,_0x507ace){return _0x5c6b7a(_0x3f803a-_0x421aa2._0x375998,_0xca8137-_0x421aa2._0x50f234,_0x507ace,_0x507ace-0x30);}return[...this[_0x34e1bc(_0xf8ae84._0x29e33a,0x298,_0xf8ae84._0x946279,0x23d)][_0xebd4f9(0x45b,0x45e,_0xf8ae84._0x9a7306,0x431)]()];}[_0x417469(0x212,0x197,0x1f2,0x1b3)](){const _0x32fb06={_0x506279:0x45e,_0x546d31:0x49d,_0x25121d:0x539},_0x5c4b89={_0xac09d8:0xe2,_0x442414:0x48f,_0x43ecb3:0x4b2},_0x34c071={_0x2729b4:0x3d7},_0x2b5783={_0x430cd9:0x197,_0x372181:0x17c,_0x5b3be6:0x120},_0x52be0d={_0x5c7c8d:0x2d2};function _0x3e1944(_0x4bfcef,_0xd0c8c1,_0x125d32,_0x2dcd3d){return _0x417469(_0x125d32-_0x52be0d._0x5c7c8d,_0xd0c8c1-0x147,_0x2dcd3d,_0x2dcd3d-0xf7);}function _0x4113dc(_0x49d4cf,_0x50f949,_0x56863e,_0x3f5c06){return _0x5c6b7a(_0x49d4cf-_0x2b5783._0x430cd9,_0x56863e- -_0x2b5783._0x372181,_0x3f5c06,_0x3f5c06-_0x2b5783._0x5b3be6);}return this[_0x3e1944(_0x32fb06._0x506279,_0x32fb06._0x546d31,0x490,0x4bc)]()[_0x3e1944(0x5a4,0x5af,_0x32fb06._0x25121d,0x56a)](_0xa2cbb2=>{const _0x49e242={_0x3f2ed6:0xd1,_0x2d7fed:0x3ed};function _0x5977b9(_0x1b5aa1,_0x4d7942,_0x381016,_0x2c1e43){return _0x3e1944(_0x1b5aa1-_0x49e242._0x3f2ed6,_0x4d7942-0x1e3,_0x381016- -_0x49e242._0x2d7fed,_0x1b5aa1);}function _0x4ed210(_0x2845e5,_0xa8e313,_0x222df6,_0x33ff46){return _0x4113dc(_0x2845e5-0x19d,_0xa8e313-0x136,_0xa8e313-_0x34c071._0x2729b4,_0x2845e5);}return{'name':_0xa2cbb2[_0x4ed210(0x4f2,0x4b5,0x52a,0x537)],'description':_0xa2cbb2[_0x5977b9(_0x5c4b89._0xac09d8,_0x5c4b89._0xac09d8,0x110,0x141)],'input_schema':_0xa2cbb2[_0x4ed210(0x436,0x448,_0x5c4b89._0x442414,_0x5c4b89._0x43ecb3)]};});}};function validateToolInput(_0x553fd9,_0x43b217){return validateAgainstSchema('input',_0x553fd9,_0x43b217),_0x553fd9;}function deriveFinalToolOutput(_0x3a8a15){const _0x1d292b={_0x5417f4:0x2c9,_0xfb6d77:0x296,_0x1d17ad:0x2c5,_0x5e3245:0x20e,_0x68e9dd:0x35a,_0xc19682:0x2e5,_0x421bd8:0x32f,_0x4454c3:0x271,_0x363b9e:0x2f1,_0x8d213d:0x2a4,_0x2e3a59:0x1f4,_0x53522e:0x28b},_0x420622={_0x4b154c:0x14a,_0x5aa167:0xdd},_0x4a7828={_0xe53310:0x51};function _0x3bd27d(_0x158042,_0x31a764,_0x1e5c19,_0x3c155d){return _0x5c6b7a(_0x158042-0x128,_0x31a764-_0x4a7828._0xe53310,_0x158042,_0x3c155d-0x16c);}if(_0x3a8a15['length']===0x0)return{'output':'','structured':{}};function _0x2db8b1(_0x4378c4,_0x20faf8,_0x19198d,_0x1d0cdc){return _0x5c6b7a(_0x4378c4-_0x420622._0x4b154c,_0x4378c4-_0x420622._0x5aa167,_0x20faf8,_0x1d0cdc-0x64);}if(_0x3a8a15[_0x2db8b1(_0x1d292b._0x5417f4,0x319,0x34a,0x2d2)]===0x1)return{'output':_0x3a8a15[0x0]['output'],'structured':_0x3a8a15[0x0][_0x2db8b1(0x309,0x326,_0x1d292b._0xfb6d77,_0x1d292b._0x1d17ad)],..._0x3a8a15[0x0]['content']!==void 0x0?{'content':_0x3a8a15[0x0][_0x3bd27d(0x1ed,0x1db,0x1f9,_0x1d292b._0x5e3245)]}:{}};const _0x311d7b=_0x3a8a15[_0x2db8b1(0x30e,_0x1d292b._0x68e9dd,0x2ae,0x365)](_0x1715cf=>_0x1715cf[_0x3bd27d(0x1a8,0x1db,0x23e,0x171)]!==void 0x0);return{'output':_0x3a8a15['map'](_0x38d0d8=>_0x38d0d8[_0x2db8b1(0x242,0x255,0x276,0x26f)])[_0x2db8b1(_0x1d292b._0xc19682,0x2a9,_0x1d292b._0x421bd8,_0x1d292b._0x4454c3)](''),'structured':{'chunks':_0x3a8a15[_0x3bd27d(_0x1d292b._0x363b9e,_0x1d292b._0x8d213d,0x2d8,0x2ef)](_0x136d3a=>_0x136d3a[_0x3bd27d(0x21d,0x27d,0x21d,0x271)])},..._0x311d7b['length']===0x1?{'content':_0x311d7b[0x0][_0x2db8b1(0x267,_0x1d292b._0x2e3a59,_0x1d292b._0x53522e,0x22d)]}:{}};}var ToolRuntimeInfrastructureError=class extends Error{constructor(_0x41eed6){const _0x5d2978={_0x17a56d:0x111,_0x3b9394:0x12f,_0x1fa1da:0x97,_0x28b14e:0xea,_0xb9eba1:0x98},_0x564556={_0x567470:0x13f},_0x3d057e={_0x24a384:0x137,_0x55cb16:0xec};function _0x2159cf(_0x5180b6,_0x432637,_0x5978dc,_0x4a85fa){return _0x5c6b7a(_0x5180b6-_0x3d057e._0x24a384,_0x5978dc- -0x130,_0x4a85fa,_0x4a85fa-_0x3d057e._0x55cb16);}super(_0x341c6f(0x17f,0x12e,0x193,_0x5d2978._0x17a56d),{'cause':_0x41eed6});function _0x341c6f(_0x257f89,_0x576edf,_0x385dfd,_0x13e7c1){return _0x417469(_0x576edf- -_0x564556._0x567470,_0x576edf-0x13d,_0x13e7c1,_0x13e7c1-0x1d0);}this[_0x341c6f(0x187,_0x5d2978._0x3b9394,0x122,0x17f)]=_0x2159cf(_0x5d2978._0x1fa1da,_0x5d2978._0x28b14e,_0x5d2978._0xb9eba1,0xd1);}},boundNestedExecutionControls=new WeakMap();function closeBoundNestedToolExecution(_0x51cad7,_0x155921){const _0x110b33={_0x4c2cb5:0x2a4},_0x4d1e3c={_0x40ccb1:0xc};function _0x56ddd7(_0x2ff4af,_0x20eea8,_0x44af08,_0x137eae){return _0x417469(_0x2ff4af-0xcc,_0x20eea8-0xa9,_0x137eae,_0x137eae-_0x4d1e3c._0x40ccb1);}_0x51cad7&&boundNestedExecutionControls['get'](_0x51cad7)?.[_0x56ddd7(0x287,0x22c,0x303,_0x110b33._0x4c2cb5)](_0x155921);}async function drainBoundNestedToolPersistence(_0x21da3d){const _0x8daa37={_0x123f26:0x2d,_0xf11990:0x1e},_0x39386e={_0x3874d8:0x249,_0x592562:0xac};function _0x5dd0be(_0x521453,_0x5e4412,_0xe18109,_0x141d1){return _0x5c6b7a(_0x521453-0x16a,_0x141d1- -_0x39386e._0x3874d8,_0x5e4412,_0x141d1-_0x39386e._0x592562);}_0x21da3d&&await boundNestedExecutionControls['get'](_0x21da3d)?.[_0x5dd0be(_0x8daa37._0x123f26,-_0x8daa37._0x123f26,_0x8daa37._0xf11990,-0x59)]();}function commitBoundToolExecutionTerminalState(_0x2ab283){const _0x591816={_0x545884:0x432,_0x28ab06:0x3fb,_0x253f31:0x194},_0x3e6518={_0x49e53a:0xd1,_0x475e88:0x93},_0x17cbe8={_0x3db1e3:0x191,_0x1c04dc:0x3e1};function _0x3f0c66(_0x413fce,_0x7a92f6,_0x211be8,_0x50927e){return _0x5c6b7a(_0x413fce-_0x17cbe8._0x3db1e3,_0x50927e- -_0x17cbe8._0x1c04dc,_0x211be8,_0x50927e-0x1c9);}function _0x1e1a58(_0x3fb224,_0x6df099,_0x50c01c,_0x54c958){return _0x417469(_0x50c01c-0x1ed,_0x6df099-_0x3e6518._0x49e53a,_0x3fb224,_0x54c958-_0x3e6518._0x475e88);}_0x2ab283&&boundNestedExecutionControls[_0x1e1a58(0x38b,_0x591816._0x545884,0x3b0,_0x591816._0x28ab06)](_0x2ab283)?.[_0x3f0c66(-0x1cd,-0x135,-0x14f,-_0x591816._0x253f31)]();}var PARENT_TOOL_SETTLED_MESSAGE=_0x417469(0x174,0x17f,0x1cf,0xf4);function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x263979,_0x3115a5,_0x1a0bcb,_0x70c817,_0x25f5e6=[]){return{'callId':_0x263979,'toolName':_0x3115a5,'status':'error','output':_0x1a0bcb,'structured':_0x70c817,'chunks':_0x25f5e6,'meta':createToolMeta()};}function createRejectedToolResult(_0x2f7d02,_0x2fdd15,_0x268fb8){const _0x1ad733={_0x2b507f:0xb8,_0x5d7f09:0xa4,_0x1682b7:0x2,_0x1a8b4f:0x90,_0x294592:0xb0,_0x456481:0x110,_0x1bb23e:0xe1,_0x4508b3:0xc7,_0x3089e4:0xa7},_0x2acfc9={_0x28d2af:0x145,_0x249101:0x195},_0xb6294e={_0xcbd05c:0x17a,_0x582264:0x310};function _0x4ead34(_0x169bad,_0x37f5e3,_0x431997,_0x183a11){return _0x5c6b7a(_0x169bad-_0xb6294e._0xcbd05c,_0x183a11- -_0xb6294e._0x582264,_0x431997,_0x183a11-0xbc);}const _0xac170c=_0x268fb8?.['trim']()[_0x4ead34(-_0x1ad733._0x2b507f,-0x1a3,-_0x1ad733._0x5d7f09,-0x124)]?_0x268fb8:_0x3c7c65(0x45,_0x1ad733._0x1682b7,_0x1ad733._0x1a8b4f,0x80)+_0x2fdd15;function _0x3c7c65(_0x339a71,_0x501c08,_0x4e69b9,_0x46d744){return _0x5c6b7a(_0x339a71-0x1b1,_0x46d744- -_0x2acfc9._0x28d2af,_0x4e69b9,_0x46d744-_0x2acfc9._0x249101);}return createErrorToolResult(_0x2f7d02,_0x2fdd15,_0xac170c,{'error':_0x3c7c65(_0x1ad733._0x294592,0x15d,_0x1ad733._0x456481,_0x1ad733._0x1bb23e),..._0x268fb8?.['trim']()[_0x3c7c65(0x55,_0x1ad733._0x4508b3,0xa3,_0x1ad733._0x3089e4)]?{'reason':_0x268fb8}:{}});}function createAbortedToolResult(_0xbbab96,_0x28f9c7,_0x127d63,_0x3168ad=[]){const _0x1ba72d={_0x791dd6:0x427,_0x327f3a:0x3b0,_0x29f9a2:0x3ac,_0x33b6c1:0x244,_0x21d126:0x32a,_0x405dfe:0x2c4,_0x201bdd:0x256,_0x331c65:0x3cf,_0x4c1554:0x3f3,_0x39ff96:0x487,_0x3c782c:0x3b6,_0x3ea7ec:0x431,_0x3bb0e9:0x4b0,_0x21cb70:0x409},_0x55c100={_0x331c7c:0x68,_0x202165:0xed};function _0xd62ae9(_0x53ab43,_0x53c3f8,_0x4b6193,_0x2aa607){return _0x417469(_0x2aa607-0x20b,_0x53c3f8-0x1e0,_0x53ab43,_0x2aa607-0x1b7);}function _0x42c22a(_0x49a390,_0x24b814,_0x5e4691,_0x1c704d){return _0x417469(_0x5e4691-_0x55c100._0x331c7c,_0x24b814-_0x55c100._0x202165,_0x49a390,_0x1c704d-0x5b);}if(_0x28f9c7===_0xd62ae9(_0x1ba72d._0x791dd6,0x3f8,_0x1ba72d._0x327f3a,_0x1ba72d._0x29f9a2))return createErrorToolResult(_0xbbab96,_0x28f9c7,_0x42c22a(_0x1ba72d._0x33b6c1,_0x1ba72d._0x21d126,_0x1ba72d._0x405dfe,_0x1ba72d._0x201bdd),{'error':_0xd62ae9(0x3be,_0x1ba72d._0x331c65,0x40b,0x3c2),'aborted':!![]},_0x3168ad);const _0x2bd3f4=toAbortError(_0x127d63);return createErrorToolResult(_0xbbab96,_0x28f9c7,_0x2bd3f4[_0xd62ae9(_0x1ba72d._0x4c1554,_0x1ba72d._0x39ff96,_0x1ba72d._0x3c782c,_0x1ba72d._0x3ea7ec)],{'error':_0x2bd3f4[_0xd62ae9(_0x1ba72d._0x3bb0e9,0x3ea,_0x1ba72d._0x21cb70,0x431)],..._0x127d63 instanceof ToolExecutionError?_0x127d63['structured']:{},'aborted':!![]},_0x3168ad);}function createSuccessToolResult(_0x499e1a,_0xebec1f,_0x272195,_0x5c67ee){const _0x1cac85={_0x3ea60c:0x5e,_0x150553:0xb2,_0x2b15b6:0x4e,_0x20ddfd:0x44,_0x464a81:0x2c},_0x4edf01={_0x2d26d9:0x1ae};function _0x1b5fff(_0x1a7278,_0x2d1e59,_0x20271b,_0x2a213b){return _0x417469(_0x2a213b- -0x1e2,_0x2d1e59-0x1e5,_0x1a7278,_0x2a213b-0x49);}function _0x454af7(_0x4bf1e5,_0x5137bd,_0x14de08,_0x34fb95){return _0x417469(_0x14de08-0x1e6,_0x5137bd-_0x4edf01._0x2d26d9,_0x4bf1e5,_0x34fb95-0x1a0);}return{'callId':_0x499e1a,'toolName':_0xebec1f,'status':'ok','output':_0x272195['output'],'structured':_0x272195[_0x1b5fff(0xa0,0xb2,0x86,_0x1cac85._0x3ea60c)],..._0x272195[_0x1b5fff(-_0x1cac85._0x150553,-0x72,-_0x1cac85._0x2b15b6,-_0x1cac85._0x20ddfd)]!==void 0x0?{'content':_0x272195[_0x1b5fff(-0x3d,-_0x1cac85._0x464a81,-0x32,-0x44)]}:{},'chunks':_0x5c67ee,'meta':createToolMeta()};}function createUnknownToolResult(_0x2d99ce,_0x28c893){const _0x51a258={_0x1f59e5:0xc9,_0x15cec8:0x148,_0x2becba:0x7a,_0x546f39:0x8e},_0x3388d6={_0x4460c3:0x11,_0x46cc8f:0x170};function _0x2762b3(_0x45f083,_0x49dd84,_0x41fdd7,_0x5affa1){return _0x5c6b7a(_0x45f083-_0x3388d6._0x4460c3,_0x41fdd7- -0x283,_0x5affa1,_0x5affa1-_0x3388d6._0x46cc8f);}function _0x23a119(_0x59c4a3,_0x4fa9f4,_0x445c8a,_0x39f407){return _0x417469(_0x59c4a3- -0x246,_0x4fa9f4-0x6d,_0x4fa9f4,_0x39f407-0x14);}return createErrorToolResult(_0x2d99ce,_0x28c893,_0x23a119(-_0x51a258._0x1f59e5,-0x91,-_0x51a258._0x15cec8,-0x61)+_0x28c893,{'error':_0x2762b3(-_0x51a258._0x2becba,-_0x51a258._0x546f39,-0xd2,-0x5f)});}function cloneToolCallForPublication(_0x2b4681,_0xcaa688,_0x4e2d8d){const _0x45443b={_0x4abad4:0x397,_0x357068:0x37b,_0x3884e8:0x2bf},_0x4bb507={_0x31bb49:0x69};function _0x3d6d7a(_0x5c7011,_0x4b7664,_0x388f4d,_0x3f8f51){return _0x417469(_0x4b7664-0xbe,_0x4b7664-_0x4bb507._0x31bb49,_0x5c7011,_0x3f8f51-0x2a);}return{...structuredClone(_0x2b4681),'type':_0x3d6d7a(_0x45443b._0x4abad4,0x312,_0x45443b._0x357068,_0x45443b._0x3884e8),'id':_0xcaa688,'name':_0x4e2d8d};}function cloneToolResultChunkForPublication(_0x102783){return structuredClone(_0x102783);}function cloneToolResultForPublication(_0x3924fa,_0x7ce6a2,_0x4d8e87){const _0x5b82b3={_0x1c208a:0x3f,_0x40cffb:0x5b},_0x2d5caf={_0xcceb8:0x28f};function _0x3c2ecb(_0x3a7a32,_0x205434,_0x328fe4,_0x479371){return _0x5c6b7a(_0x3a7a32-0x1e,_0x479371- -_0x2d5caf._0xcceb8,_0x3a7a32,_0x479371-0x140);}const {chunks:_0x3cbd74,..._0x118eec}=_0x3924fa;return{...structuredClone(_0x118eec),'callId':_0x7ce6a2,'toolName':_0x4d8e87,'chunks':_0x3cbd74[_0x3c2ecb(0x4a,_0x5b82b3._0x1c208a,-_0x5b82b3._0x40cffb,-0x3c)](cloneToolResultChunkForPublication)};}function isDispatchDecision(_0x2561d4){const _0x267792={_0x32b46f:0x247,_0x347e33:0xd5,_0x5d0f11:0x143,_0x2d61ee:0x16a,_0x447de6:0x114,_0x32cd41:0x17d,_0x56fb36:0x1ec,_0x12f6cf:0x17a},_0x3afe76={_0x262583:0x2de,_0x36b482:0x150},_0x2ef699={_0xc6cb6c:0x3c7,_0x3b49c9:0x144,_0x1fd221:0x1c6};if(typeof _0x2561d4!==_0x427c64(-0x26b,-0x28a,-_0x267792._0x32b46f,-0x205)||_0x2561d4===null)return![];function _0x427c64(_0x27dd3d,_0x17a4d2,_0x3bdaf4,_0x37737e){return _0x417469(_0x37737e- -_0x2ef699._0xc6cb6c,_0x17a4d2-_0x2ef699._0x3b49c9,_0x3bdaf4,_0x37737e-_0x2ef699._0x1fd221);}function _0x505eff(_0x890ce,_0x357a45,_0x41574f,_0x17b22a){return _0x417469(_0x17b22a- -_0x3afe76._0x262583,_0x357a45-_0x3afe76._0x36b482,_0x357a45,_0x17b22a-0x1f3);}return _0x2561d4['action']===_0x505eff(-_0x267792._0x347e33,-_0x267792._0x5d0f11,-_0x267792._0x2d61ee,-_0x267792._0x447de6)||_0x2561d4[_0x427c64(-0x1aa,-_0x267792._0x32cd41,-_0x267792._0x56fb36,-_0x267792._0x12f6cf)]==='run';}function normalizeExecutionError(_0x22c428){const _0x52bc85={_0x345605:0x1c9,_0x161db9:0x1a9,_0x289fa:0x152,_0x33ddb0:0x145,_0x29c255:0x1df,_0x7f2693:0x1e2,_0x342c1b:0x188,_0x51dda2:0x110,_0x37acb3:0x97,_0x27b4d4:0x1bf,_0x4d4e80:0x237,_0x4216a3:0x15c,_0x55e1e0:0x19b,_0x3a6188:0xea},_0x36dcaf={_0x5703dc:0x5d,_0x2d1d93:0x188,_0x1be50c:0x120};if(_0x22c428 instanceof ToolExecutionError)return{'errorMessage':_0x22c428[_0x460a1d(_0x52bc85._0x345605,0x1cb,0x144,_0x52bc85._0x161db9)],'structured':{'error':_0x22c428[_0x518f1b(-0xc1,-0x9d,-_0x52bc85._0x289fa,-0x11d)],..._0x22c428[_0x518f1b(-0x98,-0x119,-_0x52bc85._0x33ddb0,-0x103)]}};function _0x518f1b(_0x2d4b09,_0xfadadf,_0x234b23,_0x190760){return _0x417469(_0x190760- -0x343,_0xfadadf-0x1e7,_0x234b23,_0x190760-0x136);}if(_0x22c428 instanceof Error)return{'errorMessage':_0x22c428['message'],'structured':{'error':_0x22c428['message']}};if(typeof _0x22c428===_0x518f1b(-_0x52bc85._0x29c255,-_0x52bc85._0x7f2693,-0x1f5,-0x181)&&_0x22c428!==null&&_0x518f1b(-_0x52bc85._0x342c1b,-_0x52bc85._0x51dda2,-_0x52bc85._0x37acb3,-0x11d)in _0x22c428&&typeof _0x22c428[_0x518f1b(-0x9f,-0xe9,-0x174,-0x11d)]===_0x518f1b(-0x1e2,-_0x52bc85._0x27b4d4,-0x1c9,-0x1d0))return{'errorMessage':_0x22c428[_0x460a1d(0x1c9,_0x52bc85._0x4d4e80,_0x52bc85._0x4216a3,0x1ac)],'structured':{'error':_0x22c428[_0x518f1b(-0xd6,-_0x52bc85._0x55e1e0,-_0x52bc85._0x3a6188,-0x11d)]}};const _0x287cb4=String(_0x22c428);function _0x460a1d(_0x33c08b,_0x921388,_0x1a810e,_0x3f4e5d){return _0x417469(_0x33c08b- -_0x36dcaf._0x5703dc,_0x921388-_0x36dcaf._0x2d1d93,_0x921388,_0x3f4e5d-_0x36dcaf._0x1be50c);}return{'errorMessage':_0x287cb4,'structured':{'error':_0x287cb4}};}function cloneToolEventForPublication(_0x439d3c){const _0x3ce5c2={_0x537f09:0x225,_0x20e5e0:0x29c,_0x3b202f:0x2f6,_0x58ea80:0x9b,_0x4e1f1c:0x3d,_0x106388:0x10a,_0x23e22c:0x273,_0x3329de:0x22b,_0x1ce6c0:0x20b,_0x157152:0x295,_0x5e4df2:0x2b0,_0x48f818:0x2a0,_0x448029:0x30c,_0x4c825d:0x295,_0x1a5554:0x313,_0x191b11:0x2c6,_0x654b89:0xc6,_0x3d3cfe:0xf,_0x28a0b8:0x2df,_0x445c63:0x35e,_0x51b821:0x80,_0x330a8e:0xd5,_0x1731c7:0x313,_0x1c78fd:0x7d,_0x139100:0x7e,_0x368e6c:0x59,_0x16e10b:0x3,_0x3e0c3f:0x2af,_0x17940b:0x298,_0x11d97b:0x20,_0x428155:0x81,_0x16514f:0x24b,_0x6f059d:0xea,_0x41d8dd:0x7e,_0x160576:0x9d,_0x2c7356:0x24e,_0x15bcdd:0x2a9,_0x58f55f:0x1fd},_0xabf7b5={_0x5efd1c:0x3b,_0x4d4c72:0x15c};function _0x3aa169(_0x3c8d4e,_0x2f9de8,_0x456332,_0x37d27f){return _0x5c6b7a(_0x3c8d4e-0xa7,_0x3c8d4e-0xb9,_0x2f9de8,_0x37d27f-0x2d);}function _0x6e38f0(_0x48ab51,_0x5cf59a,_0x12b1a0,_0xa9be58){return _0x417469(_0x5cf59a- -0x288,_0x5cf59a-_0xabf7b5._0x5efd1c,_0xa9be58,_0xa9be58-_0xabf7b5._0x4d4c72);}switch(_0x439d3c[_0x3aa169(0x272,_0x3ce5c2._0x537f09,_0x3ce5c2._0x20e5e0,_0x3ce5c2._0x3b202f)]){case _0x6e38f0(-0x25,-_0x3ce5c2._0x58ea80,-_0x3ce5c2._0x4e1f1c,-_0x3ce5c2._0x106388):case _0x3aa169(_0x3ce5c2._0x23e22c,_0x3ce5c2._0x3329de,_0x3ce5c2._0x1ce6c0,0x2ed):return{..._0x439d3c,'toolCall':cloneToolCallForPublication(_0x439d3c['toolCall'],_0x439d3c['toolCall']['id'],_0x439d3c[_0x3aa169(_0x3ce5c2._0x157152,0x29d,0x2c8,_0x3ce5c2._0x5e4df2)][_0x3aa169(0x313,0x2a7,_0x3ce5c2._0x48f818,0x2b5)])};case'tool_output_chunk':return{..._0x439d3c,'toolCall':cloneToolCallForPublication(_0x439d3c[_0x3aa169(0x295,_0x3ce5c2._0x448029,0x312,0x244)],_0x439d3c[_0x3aa169(_0x3ce5c2._0x4c825d,0x28d,0x2d2,0x22b)]['id'],_0x439d3c[_0x3aa169(0x295,0x227,0x2af,0x26c)][_0x3aa169(_0x3ce5c2._0x1a5554,0x2ce,0x2f3,_0x3ce5c2._0x191b11)]),'chunk':cloneToolResultChunkForPublication(_0x439d3c[_0x6e38f0(0x9,-0x77,-_0x3ce5c2._0x654b89,_0x3ce5c2._0x3d3cfe)])};case'tool_completed':case _0x3aa169(_0x3ce5c2._0x28a0b8,0x352,0x300,_0x3ce5c2._0x445c63):return{..._0x439d3c,'toolCall':cloneToolCallForPublication(_0x439d3c['toolCall'],_0x439d3c[_0x6e38f0(-_0x3ce5c2._0x51b821,-0x98,-0x8e,-_0x3ce5c2._0x330a8e)]['id'],_0x439d3c['toolCall'][_0x3aa169(_0x3ce5c2._0x1731c7,0x2a4,0x290,0x398)]),'result':cloneToolResultForPublication(_0x439d3c[_0x6e38f0(-_0x3ce5c2._0x1c78fd,-_0x3ce5c2._0x139100,-0xb9,-0x80)],_0x439d3c[_0x6e38f0(-0x73,-0x98,-0xa4,-_0x3ce5c2._0x1c78fd)]['id'],_0x439d3c['toolCall']['name'])};case _0x6e38f0(0x16,-_0x3ce5c2._0x368e6c,-0x26,_0x3ce5c2._0x16e10b):return{..._0x439d3c,'result':cloneToolResultForPublication(_0x439d3c[_0x3aa169(_0x3ce5c2._0x3e0c3f,0x233,_0x3ce5c2._0x17940b,0x2d6)],_0x439d3c[_0x6e38f0(-_0x3ce5c2._0x11d97b,-0x7e,-_0x3ce5c2._0x428155,-_0x3ce5c2._0x428155)][_0x3aa169(_0x3ce5c2._0x16514f,0x2af,0x226,0x205)],_0x439d3c[_0x6e38f0(-_0x3ce5c2._0x6f059d,-_0x3ce5c2._0x41d8dd,-_0x3ce5c2._0x160576,-0xf1)][_0x3aa169(_0x3ce5c2._0x2c7356,0x1dc,_0x3ce5c2._0x15bcdd,_0x3ce5c2._0x58f55f)])};default:return _0x439d3c;}}async function emitEvent(_0x1a013a,_0x424875,_0x755c9b){try{await _0x1a013a?.(cloneToolEventForPublication(_0x424875),_0x755c9b);}catch(_0x43ef51){throw new ToolRuntimeInfrastructureError(_0x43ef51);}}function actualCancellationHasPrecedence(_0x283281,_0x1ca022){const _0x24ca9f={_0x8cfb39:0x476,_0xf3b908:0x4df,_0x288d8e:0x32},_0x1f37f3={_0xb7d05b:0x1e1,_0x19ace4:0x1c2};function _0x367b11(_0x167c2c,_0x2430e1,_0x554695,_0x18bf3b){return _0x417469(_0x167c2c-0x26a,_0x2430e1-0x1ce,_0x2430e1,_0x18bf3b-0x15a);}function _0x330ff6(_0x5afb61,_0xf32335,_0x3c814a,_0x354b3a){return _0x5c6b7a(_0x5afb61-_0x1f37f3._0xb7d05b,_0x5afb61- -_0x1f37f3._0x19ace4,_0x354b3a,_0x354b3a-0x4d);}return _0x283281[_0x367b11(_0x24ca9f._0x8cfb39,0x4f8,_0x24ca9f._0xf3b908,0x4f3)][_0x330ff6(0x7f,_0x24ca9f._0x288d8e,0x4c,0x68)]&&!_0x1ca022;}function selectActualCancellationReason(_0x1e8c9b,_0x29b6d5){const _0x30f3b9={_0x113d45:0x3c5,_0x258ac5:0x38e,_0x8fd3ea:0x35b},_0x5d07bb={_0x341f47:0x101},_0x27c0f5={_0x55eaa3:0x106,_0x2a1d0c:0x17f};function _0x524462(_0x5e766d,_0x2c1a09,_0x393e48,_0x210a95){return _0x417469(_0x393e48-_0x27c0f5._0x55eaa3,_0x2c1a09-0x179,_0x5e766d,_0x210a95-_0x27c0f5._0x2a1d0c);}function _0x5b64d6(_0x1ea418,_0x458af4,_0x2c7158,_0x51233d){return _0x417469(_0x51233d- -0xe7,_0x458af4-_0x5d07bb._0x341f47,_0x1ea418,_0x51233d-0x133);}return _0x1e8c9b instanceof ToolExecutionError&&_0x1e8c9b[_0x524462(_0x30f3b9._0x113d45,0x30e,0x346,_0x30f3b9._0x258ac5)][_0x524462(0x32d,0x2e4,_0x30f3b9._0x8fd3ea,0x346)]===!![]?_0x1e8c9b:_0x29b6d5;}function selectedTerminalStateHasPrecedence(_0x2c5a32,_0x4bf23a,_0x3f890e,_0x10c19c){const _0x48f2fa={_0x2b1b13:0x403,_0xcefba:0x3c3,_0x402a5b:0x43c,_0xfe1d50:0x46f,_0x5c2be2:0x49c,_0x3b7b75:0x4a8,_0x204eb8:0x4db,_0x40d2d2:0x4bc,_0x494546:0x5cf,_0x10f6b2:0x55b,_0x562c3b:0x5ba,_0x395911:0x352,_0x52b719:0x3c7,_0x56a421:0x435,_0x1cbfa0:0x3fe,_0x34b90e:0x487,_0x2e80e9:0x49d,_0x5e7707:0x426,_0xe74567:0x4f1,_0x3604f8:0x497,_0xf69020:0x4cd,_0x5749e8:0x537,_0x407f84:0x58f,_0x2d4051:0x55b,_0x39071f:0x563,_0x1bb785:0x517,_0x223e87:0x496,_0x434b7a:0x3f5,_0x3ffef0:0x45b,_0xe9d16c:0x461,_0x2cc09c:0x4bd},_0x5e52ba={_0xc0e13:0x25b},_0x2da50d={_0x47fbb9:0x67,_0x29b285:0x32f};function _0x29150c(_0x575e65,_0x38eaa2,_0x262056,_0x478047){return _0x5c6b7a(_0x575e65-_0x2da50d._0x47fbb9,_0x262056-_0x2da50d._0x29b285,_0x478047,_0x478047-0x1bc);}if(_0x4bf23a['status']!==_0x15d27d(_0x48f2fa._0x2b1b13,_0x48f2fa._0xcefba,_0x48f2fa._0x402a5b,0x3e5))return![];if(!_0x10c19c)return _0x4bf23a[_0x15d27d(0x4f3,0x487,_0x48f2fa._0xfe1d50,0x40c)][_0x15d27d(0x42c,_0x48f2fa._0x5c2be2,0x416,_0x48f2fa._0x3b7b75)]===!![]&&actualCancellationHasPrecedence(_0x3f890e,_0x10c19c);function _0x15d27d(_0x5cece1,_0x2bb67f,_0x3cae4d,_0x41b9ca){return _0x5c6b7a(_0x5cece1-0x18f,_0x2bb67f-_0x5e52ba._0xc0e13,_0x3cae4d,_0x41b9ca-0x110);}if(_0x2c5a32!==_0x29150c(0x4f4,_0x48f2fa._0x204eb8,_0x48f2fa._0x40d2d2,0x4bf))return![];return _0x4bf23a[_0x29150c(0x5c7,_0x48f2fa._0x494546,_0x48f2fa._0x10f6b2,_0x48f2fa._0x562c3b)][_0x15d27d(_0x48f2fa._0x395911,_0x48f2fa._0xcefba,_0x48f2fa._0x52b719,_0x48f2fa._0x56a421)]===_0x15d27d(0x454,_0x48f2fa._0x1cbfa0,0x3de,0x3cb)||_0x4bf23a[_0x15d27d(0x419,_0x48f2fa._0x34b90e,0x508,_0x48f2fa._0x2e80e9)][_0x29150c(_0x48f2fa._0x5e7707,_0x48f2fa._0xe74567,_0x48f2fa._0x3604f8,0x450)]===_0x29150c(_0x48f2fa._0xf69020,0x4d1,0x4cb,0x453)||_0x4bf23a[_0x29150c(_0x48f2fa._0x5749e8,_0x48f2fa._0x407f84,_0x48f2fa._0x2d4051,_0x48f2fa._0x39071f)][_0x29150c(_0x48f2fa._0x1bb785,0x468,_0x48f2fa._0x3604f8,_0x48f2fa._0x223e87)]===_0x15d27d(_0x48f2fa._0x434b7a,_0x48f2fa._0x3ffef0,_0x48f2fa._0xe9d16c,_0x48f2fa._0x2cc09c);}async function emitToolCompletedEventWithTerminalPrecedence(_0x22413f,_0x99f0c6,_0x3e6124,_0xfcbe70,_0x35ef1e,_0x123221,_0x1fba3c=![]){const _0x2f3886={_0x46376f:0x78,_0x23d5d8:0x2f,_0x2e91eb:0x47},_0x301e03={_0x1e65a0:0x184};function _0x419c91(_0x4e55a9,_0x2b9e64,_0x567757,_0x1521f4){return _0x5c6b7a(_0x4e55a9-_0x301e03._0x1e65a0,_0x1521f4- -0x27b,_0x2b9e64,_0x1521f4-0x111);}try{await emitEvent(_0x22413f,{'type':_0x419c91(-_0x2f3886._0x46376f,-0xc,_0x2f3886._0x23d5d8,-_0x2f3886._0x2e91eb),'toolCall':cloneToolCallForPublication(_0x99f0c6,_0x3e6124,_0xfcbe70),'result':_0x35ef1e},_0x123221);}catch(_0x1655e5){if(!(_0x1655e5 instanceof ToolRuntimeInfrastructureError)||!selectedTerminalStateHasPrecedence(_0xfcbe70,_0x35ef1e,_0x123221,_0x1fba3c))throw _0x1655e5;}}async function awaitWithAbort(_0x5109c5,_0x2e6a5f){const _0x2268e9={_0x211c6f:0x184,_0x310494:0x208,_0xa675c2:0x1ea},_0x5605a2={_0x2fb6d6:0x157,_0x42b18d:0x13a},_0x4d69bb={_0x6d86d1:0x454,_0x293b33:0x428};let _0x11fba5=()=>{},_0x2d2ebf;_0x2e6a5f&&(throwIfAborted(_0x2e6a5f),_0x2d2ebf=new Promise((_0x2e2cda,_0x198612)=>{const _0x4c1322={_0x4558ba:0x8f},_0x5d9093={_0x2ff01e:0x82},_0x28e9fd={_0x3312b1:0x228},_0x5240fa=()=>{function _0x44c8ce(_0x36af45,_0x3cc430,_0xabe927,_0x15780d){return _0x9ad4(_0x36af45- -_0x28e9fd._0x3312b1,_0x3cc430);}_0x198612(toAbortError(_0x2e6a5f[_0x44c8ce(-_0x5d9093._0x2ff01e,-0x56,-0x4a,-0x1a)]));};function _0x21d04e(_0x2e0b63,_0x2c44c3,_0x37d72d,_0x35a0e9){return _0x9ad4(_0x37d72d- -_0x4c1322._0x4558ba,_0x2c44c3);}function _0x2f5125(_0x46a1b8,_0x250def,_0x52f50b,_0x243a70){return _0x9ad4(_0x46a1b8-0x277,_0x52f50b);}_0x2e6a5f[_0x2f5125(_0x4d69bb._0x6d86d1,0x4b1,_0x4d69bb._0x293b33,0x42d)]('abort',_0x5240fa,{'once':!![]}),_0x11fba5=()=>_0x2e6a5f[_0x21d04e(0x1b4,0x1bc,0x13f,0xdd)](_0x2f5125(0x3e2,0x3bd,0x41c,0x3c2),_0x5240fa);}));function _0x27eb7e(_0x426450,_0x44d484,_0x146dd3,_0x39daf1){return _0x5c6b7a(_0x426450-_0x5605a2._0x2fb6d6,_0x426450- -0xb8,_0x39daf1,_0x39daf1-_0x5605a2._0x42b18d);}const _0x186373=Promise[_0x27eb7e(_0x2268e9._0x211c6f,0x1a1,_0x2268e9._0x310494,_0x2268e9._0xa675c2)]()['then'](()=>{return throwIfAborted(_0x2e6a5f),_0x5109c5();});try{return await(_0x2d2ebf?Promise['race']([_0x186373,_0x2d2ebf]):_0x186373);}finally{_0x11fba5();}}function createNestedCallAdmissionGate(){const _0x3c3e3a={_0x39ccb7:0x1f6,_0x489788:0x2bb},_0x4b4d94={_0xddfa8e:0x8a,_0x1477c6:0x10c,_0x2d2974:0x90},_0x2f2799={_0x509b92:0x9a},_0x52d19e={_0x37facc:0x27};let _0x29f0bc=0x1,_0x284731=![],_0x6c1851,_0x77e037=Promise[_0x5c07e8(_0x3c3e3a._0x39ccb7,0x263,0x2a5,_0x3c3e3a._0x489788)]();function _0x5c07e8(_0x414c53,_0x534612,_0x42c1cc,_0x29a1a3){return _0x5c6b7a(_0x414c53-0x47,_0x534612-_0x52d19e._0x37facc,_0x29a1a3,_0x29a1a3-0x6e);}const _0xb006a8=new Set(),_0x5f130c=_0x331592=>{!_0x284731&&(_0x284731=!![],_0x6c1851=_0x331592);for(const _0x349b32 of[..._0xb006a8]){_0x349b32();}};return{'register'(_0x21d36f){const _0x380c87={_0x4c3960:0x107},_0x433db8={_0x3a4341:0x11,_0x5962b0:0x86},_0x5a29bd={_0x1b4ec3:0x4};if(_0x284731)throw _0x6c1851;if(_0x21d36f!==_0x29f0bc){const _0x28f536=new Error(_0x5f1508(0x7b,_0x4b4d94._0xddfa8e,0x11e,0xdb)+_0x21d36f+'\x20is\x20out\x20of\x20order;\x20expected\x20'+_0x29f0bc);_0x5f130c(_0x28f536);throw _0x28f536;}_0x29f0bc+=0x1;function _0x4e0eea(_0x31f86d,_0x24c9ed,_0x122a25,_0xf8fd62){return _0x5c07e8(_0x31f86d-0x34,_0x122a25- -_0x2f2799._0x509b92,_0x122a25-0x1e3,_0x24c9ed);}const _0x220af2=_0x77e037;let _0x61b119;_0x77e037=new Promise(_0x35a8af=>{_0x61b119=_0x35a8af;});const _0x26ba44=()=>{if(_0x61b119===void 0x0)return;const _0x99ba5f=_0x61b119;_0x61b119=void 0x0,_0xb006a8[_0x552135(-0x36,-_0x433db8._0x3a4341,-_0x433db8._0x5962b0,-0x58)](_0x26ba44);function _0x552135(_0x184a2c,_0x5405a9,_0x43b61a,_0x5928a6){return _0x5f1508(_0x184a2c-_0x5a29bd._0x1b4ec3,_0x5405a9-0x72,_0x5928a6,_0x43b61a- -0x190);}_0x99ba5f();};function _0x5f1508(_0x4f5f2e,_0x2b5f15,_0x41b7ec,_0x22bca7){return _0x5c07e8(_0x4f5f2e-0x50,_0x22bca7- -_0x380c87._0x4c3960,_0x41b7ec-0x21,_0x41b7ec);}return _0xb006a8[_0x4e0eea(0x17b,0x8f,_0x4b4d94._0x1477c6,_0x4b4d94._0x2d2974)](_0x26ba44),{async 'admit'(_0x43bc59,_0x58e70d){try{await awaitWithAbort(()=>_0x220af2,_0x58e70d);if(_0x284731)throw _0x6c1851;await _0x43bc59();if(_0x284731)throw _0x6c1851;}catch(_0x5a38e4){_0x5f130c(_0x5a38e4);throw _0x5a38e4;}finally{_0x26ba44();}},'fail'(_0x285649){_0x5f130c(_0x285649),_0x26ba44();}};},'fail':_0x5f130c};}async function awaitRequiredPersistence(_0x163177,_0x33bfd8,_0x287f5a){const _0x198ff8={_0x6a4e54:0xe8};await awaitWithAbort(()=>{const _0x352ca6=Promise['resolve']()[_0x40a27d(-_0x198ff8._0x6a4e54,-0x13e,-0xe2,-0x119)](_0x163177);_0x287f5a(_0x352ca6);function _0x40a27d(_0x1f1a1e,_0xb5704e,_0x46d8c4,_0xb1f13c){return _0x9ad4(_0xb1f13c- -0x21a,_0x1f1a1e);}return _0x352ca6;},_0x33bfd8);}async function awaitUncancellableAfterAdmission(_0x227ecb,_0x2cf953){const _0x1645b1={_0x11862c:0x39,_0x1368a1:0x6a,_0x173c87:0x2c6,_0x4a5d59:0x30a,_0x541c67:0x305,_0x14c935:0x30f,_0x498a9:0x77,_0x4bc3bc:0x7c},_0x1013e6={_0x2853a6:0xe9},_0x2e6a41={_0x274fdd:0x108,_0x248a36:0x92,_0x381525:0x199};throwIfAborted(_0x2cf953);function _0x5233a2(_0x3e56d5,_0x35ee7e,_0x535a4a,_0x49850b){return _0x417469(_0x35ee7e-_0x2e6a41._0x274fdd,_0x35ee7e-_0x2e6a41._0x248a36,_0x535a4a,_0x49850b-_0x2e6a41._0x381525);}function _0x5513f1(_0x4a68d3,_0x2a8b41,_0x434866,_0x308eee){return _0x5c6b7a(_0x4a68d3-0x183,_0x4a68d3- -0x227,_0x2a8b41,_0x308eee-_0x1013e6._0x2853a6);}const _0x3094fa=()=>{};_0x2cf953[_0x5513f1(_0x1645b1._0x11862c,_0x1645b1._0x1368a1,0x57,0x12)](_0x5233a2(_0x1645b1._0x173c87,_0x1645b1._0x4a5d59,_0x1645b1._0x541c67,_0x1645b1._0x14c935),_0x3094fa,{'once':!![]});try{return throwIfAborted(_0x2cf953),await _0x227ecb();}finally{_0x2cf953[_0x5513f1(0x2a,_0x1645b1._0x498a9,0x3f,_0x1645b1._0x4bc3bc)]('abort',_0x3094fa);}}async function resolveDispatchDecision(_0x1af064,_0x389f2b,_0x1bd78f){const _0xca9f5e={_0x8d4f3:0x214,_0x34d751:0x22c,_0xc63d9b:0x21e,_0x223fc6:0x2d0,_0x557634:0x1b3},_0x3fdc66={_0x483a86:0x1dd,_0x4aba46:0x78,_0x45f220:0xe3};function _0x28a736(_0x2f388c,_0x551287,_0x5d984f,_0xe1b9b1){return _0x417469(_0x5d984f- -0x334,_0x551287-0x38,_0xe1b9b1,_0xe1b9b1-0x1f4);}function _0x270cac(_0x49dcb0,_0x1ad436,_0x434a38,_0x50ae3d){return _0x5c6b7a(_0x49dcb0-_0x3fdc66._0x483a86,_0x434a38-_0x3fdc66._0x4aba46,_0x50ae3d,_0x50ae3d-_0x3fdc66._0x45f220);}if(!_0x1af064)return{'action':_0x270cac(0x1f6,_0xca9f5e._0x8d4f3,0x217,_0xca9f5e._0x34d751)};const _0x5873b5=await awaitWithAbort(()=>_0x1af064(_0x389f2b,_0x1bd78f),_0x1bd78f[_0x270cac(_0xca9f5e._0xc63d9b,0x21b,0x270,_0xca9f5e._0x223fc6)]);return isDispatchDecision(_0x5873b5)?_0x5873b5:{'action':_0x270cac(0x1e0,_0xca9f5e._0x557634,0x217,0x254)};}async function prepareNestedToolCall(_0x4f1229,_0x4f86e6,_0x4b063e,_0x15e299){const _0x11cb89={_0x593e45:0x9d},_0x50f98a={_0x5782ef:0xe9,_0x5f15d1:0x221,_0x585eed:0x1d7};if(!_0x4f1229)return _0x4f86e6;function _0xcebf19(_0x3e2335,_0x1df3cd,_0x683037,_0x11b770){return _0x5c6b7a(_0x3e2335-_0x50f98a._0x5782ef,_0x3e2335-_0x50f98a._0x5f15d1,_0x11b770,_0x11b770-_0x50f98a._0x585eed);}function _0x1be447(_0x365f3f,_0x5346e4,_0x3d96b3,_0x9f488f){return _0x417469(_0x9f488f-0x10f,_0x5346e4-_0x11cb89._0x593e45,_0x5346e4,_0x9f488f-0x1aa);}const _0x11e04e=await awaitWithAbort(()=>_0x4f1229[_0xcebf19(0x3b0,0x3d7,0x38c,0x3be)](_0x1be447(0x31b,0x2a6,0x344,0x2ef),_0x4f86e6,_0x4b063e),_0x15e299);return throwIfAborted(_0x15e299),await awaitWithAbort(()=>_0x4f1229[_0xcebf19(0x3d8,0x458,0x40f,0x3ca)]('beforeToolExecution',_0x11e04e,_0x4b063e),_0x15e299),_0x11e04e;}async function transformNestedToolResult(_0x508fc6,_0x4c5cc0,_0x5affdd,_0x1fd9cf){const _0x4661a1={_0x53dd3a:0x2b9,_0x16d2f4:0x110},_0x70943a={_0x3c860c:0x1cf,_0x54f836:0x9f};if(!_0x508fc6)return _0x4c5cc0;const _0x1d1052=await awaitWithAbort(()=>_0x508fc6[_0x1c5e4a(0x400,0x4a6,0x45c,0x3f8)]('afterToolResult',_0x4c5cc0,_0x5affdd),_0x1fd9cf);throwIfAborted(_0x1fd9cf),await awaitWithAbort(()=>_0x508fc6[_0x1c5e4a(0x4be,0x4f3,0x484,0x4aa)](_0x1c5e4a(0x476,0x427,0x472,0x492),_0x1d1052,_0x5affdd),_0x1fd9cf);function _0xa8812f(_0x386c2c,_0x11ea3d,_0x3d1637,_0x24878b){return _0x5c6b7a(_0x386c2c-_0x70943a._0x3c860c,_0x386c2c- -0x266,_0x24878b,_0x24878b-_0x70943a._0x54f836);}function _0x1c5e4a(_0x5ce526,_0x1e05aa,_0x2b4a47,_0x51aad1){return _0x417469(_0x2b4a47-_0x4661a1._0x53dd3a,_0x1e05aa-_0x4661a1._0x16d2f4,_0x5ce526,_0x51aad1-0x13e);}return _0x1d1052;}function snapshotNestedToolRequest(_0x30d359){const _0x3bb638={_0x4a31cc:0x1f,_0x262055:0xb,_0x2e8176:0x5b,_0x2a7419:0x28,_0x5ee72d:0x63,_0x1988f8:0x111,_0x1469ef:0xb1,_0x4a6541:0x71,_0x574d5a:0x58,_0x379341:0x98,_0x8f677f:0x56,_0x5e570b:0x7b,_0x311b2b:0x11d,_0x59cfe8:0xe8,_0x5edf72:0x9c,_0x2f35d0:0xce,_0x3b2217:0x8b,_0x70a452:0x109},_0x5e8c5c={_0x1cdce9:0x204,_0x430af5:0x34},_0x5e4816={_0x1e3133:0xd},_0x362bc5=_0x30d359[_0x4b2bb7(-0x60,0x16,0x8a,_0x3bb638._0x4a31cc)];function _0x1738af(_0xb7da4,_0x2bca20,_0x1c9009,_0x2dc7ac){return _0x5c6b7a(_0xb7da4-0x177,_0x1c9009- -0x172,_0x2bca20,_0x2dc7ac-_0x5e4816._0x1e3133);}const _0x1e0d27=_0x30d359[_0x1738af(0x34,-0x1,_0x3bb638._0x262055,-0x12)],_0x392d81=_0x30d359['toolCall']['id'],_0x35d8de=structuredClone(_0x30d359[_0x4b2bb7(_0x3bb638._0x2e8176,-0xa2,-0x84,-_0x3bb638._0x2a7419)]),_0x40d530=_0x30d359[_0x4b2bb7(-_0x3bb638._0x5ee72d,-_0x3bb638._0x1988f8,-0xde,-0x8f)],_0x38fb35=_0x30d359[_0x1738af(0x17,_0x3bb638._0x1469ef,0x59,_0x3bb638._0x262055)];function _0x4b2bb7(_0x71a328,_0x35c8d0,_0x1cd216,_0x2dce2a){return _0x5c6b7a(_0x71a328-0x48,_0x2dce2a- -_0x5e8c5c._0x1cdce9,_0x71a328,_0x2dce2a-_0x5e8c5c._0x430af5);}if(_0x35d8de[_0x4b2bb7(_0x3bb638._0x4a6541,_0x3bb638._0x574d5a,_0x3bb638._0x379341,_0x3bb638._0x8f677f)]!==_0x362bc5||_0x1e0d27!==void 0x0&&_0x1e0d27[_0x1738af(_0x3bb638._0x5e570b,_0x3bb638._0x311b2b,_0x3bb638._0x59cfe8,_0x3bb638._0x5edf72)]!==_0x362bc5)throw new Error(_0x1738af(_0x3bb638._0x2f35d0,_0x3bb638._0x3b2217,0xd0,_0x3bb638._0x70a452));return{'requestedName':_0x362bc5,'tool':_0x1e0d27,'toolCall':_0x35d8de,'toolCallId':_0x392d81,'sequence':_0x40d530,'trace':_0x38fb35};}function createImmutableExecutionScope(_0x233622,_0x313c2b){const _0x83766={_0x44eaed:0x166,_0x1b09fb:0x11c},_0x3f86db={_0x5b2240:0x59};function _0x590b61(_0x5a72a7,_0x5428b5,_0x234d2a,_0x4975c8){return _0x5c6b7a(_0x5a72a7-0xc7,_0x5428b5-0x48,_0x234d2a,_0x4975c8-_0x3f86db._0x5b2240);}function _0x5151f1(_0x20d772,_0x2b3fb9,_0x3cc9f4,_0x5b4152){return _0x417469(_0x20d772- -0x34c,_0x2b3fb9-0x170,_0x5b4152,_0x5b4152-0xf8);}return Object[_0x5151f1(-_0x83766._0x44eaed,-0x1be,-_0x83766._0x1b09fb,-0x144)]({'agentId':_0x233622,'toolCallPath':Object[_0x590b61(0x27f,0x21a,0x196,0x1cc)]([..._0x313c2b])});}async function executeNestedToolRequest(_0x3419b2,_0x1d1c89,_0xf1ef57,_0x3b85c,_0x471544,_0xae4e7e,_0x4bde49,_0x5ec2d0){const _0x54b644={_0x15c832:0x553,_0x5ee7a1:0x53d,_0x378495:0x579,_0x2088d0:0x4f9,_0x53d94f:0x4f8,_0xdfa041:0x594,_0x723e11:0x506,_0x41718c:0x4ce,_0x3c8649:0x500,_0x58437b:0x566,_0x988fbf:0x5f4,_0x274bb5:0x565,_0x4dc110:0x4c1,_0x4f35e2:0x4ed,_0x354297:0x510,_0x27c905:0x51a,_0x4b9b2b:0x517,_0x2b57cb:0x549,_0x3721b2:0x51b,_0x5a7e61:0x57c,_0x2cccd8:0x50d,_0x4d6ed2:0x4ee,_0xe2e502:0x4dc,_0x1d5d04:0x56d,_0xb0e617:0x50c,_0x5178ba:0x564,_0x56642b:0x53c,_0x419567:0x5b3},_0x56a1b5={_0x167ee2:0x448,_0x1bfabe:0x424,_0x32e7b9:0x2be,_0x58a13d:0x26e,_0x31fbd8:0x4d5,_0x350b81:0x308,_0x338f30:0x319},_0xf9626e={_0xa82705:0x98},_0xd54eff={_0xaf8ac:0x32e},_0x50e69f={_0x29e8c2:0x151},_0x3237b2={_0x462a50:0x1d8,_0xfcb17c:0x4f},_0x43c85f={_0x35a518:0x1,_0x372d14:0x345,_0x210050:0x196},_0x16cc95={'state':_0x1d1c89['state'],'delivery':_0x332f99(_0x54b644._0x15c832,_0x54b644._0x5ee7a1,_0x54b644._0x378495,0x4d5),'executionScope':_0xf1ef57};function _0x332f99(_0x3697e8,_0x33672d,_0x2e4aa0,_0x49533e){return _0x5c6b7a(_0x3697e8-_0x43c85f._0x35a518,_0x3697e8-_0x43c85f._0x372d14,_0x33672d,_0x49533e-_0x43c85f._0x210050);}let _0x5d1d56;try{_0x5d1d56=await prepareNestedToolCall(_0xae4e7e[_0x332f99(_0x54b644._0x2088d0,0x553,_0x54b644._0x53d94f,0x52b)],_0x3419b2[_0x2e1c19(_0x54b644._0xdfa041,0x51e,0x556,0x4f8)],_0x16cc95,_0x3b85c);if(_0x5d1d56['id']!==_0x3419b2['toolCallId']||_0x5d1d56['name']!==_0x3419b2['requestedName'])throw new Error(_0x2e1c19(0x55d,_0x54b644._0x723e11,_0x54b644._0x41718c,_0x54b644._0x3c8649));}catch(_0x39ec1c){_0x471544[_0x332f99(_0x54b644._0x58437b,0x5ba,0x52d,0x527)](_0x39ec1c);throw _0x39ec1c;}const _0x425b26={..._0x1d1c89,'signal':_0x3b85c,'executionScope':_0xf1ef57,'toolCallId':void 0x0,'permissionClass':void 0x0,'executionAuthorization':void 0x0,'executeNestedTool':void 0x0,'beginProgramTrace':void 0x0},_0xfcae8c=async(_0x209963,_0x4ea7b6)=>{function _0x568e1c(_0x1783e3,_0x47889e,_0x13abc8,_0x315a06){return _0x2e1c19(_0x1783e3-_0x3237b2._0x462a50,_0x13abc8- -0x432,_0x47889e,_0x315a06-_0x3237b2._0xfcb17c);}if(_0x3b85c['aborted'])return;try{await awaitWithAbort(()=>_0x4bde49?.(_0x209963,_0x4ea7b6),_0x3b85c);}catch(_0x26a1c1){if(!isAbortError(_0x26a1c1)||!_0x3b85c[_0x568e1c(0x184,0x111,0x151,_0x50e69f._0x29e8c2)])throw _0x26a1c1;}};function _0x2e1c19(_0x5ba0f5,_0x3eee56,_0x4ef308,_0x18e467){return _0x417469(_0x3eee56-_0xd54eff._0xaf8ac,_0x3eee56-0x1cb,_0x4ef308,_0x18e467-0x180);}await _0x471544[_0x332f99(0x599,_0x54b644._0x988fbf,_0x54b644._0x274bb5,0x58d)](async()=>{const _0x288aa9={_0x4c4cde:0x260,_0x5d7f5f:0x13f};function _0x482403(_0x1d7084,_0x16c251,_0x8860e4,_0x1f6dd6){return _0x2e1c19(_0x1d7084-_0xf9626e._0xa82705,_0x1f6dd6- -0x115,_0x16c251,_0x1f6dd6-0x12);}throwIfAborted(_0x3b85c);if(_0x3419b2[_0x482403(_0x56a1b5._0x167ee2,0x445,_0x56a1b5._0x1bfabe,0x3f8)]){const _0x5bcc34=_0x3419b2['trace'];await awaitRequiredPersistence(()=>_0x5bcc34[_0x156183(0x317,0x34a,0x2a8,0x35e)](_0x3419b2[_0x156183(0x25a,0x1e8,0x2da,0x286)],cloneToolCallForPublication(_0x5d1d56,_0x3419b2[_0x482403(0x43c,0x4a5,0x442,0x465)],_0x3419b2[_0x156183(0x308,0x382,0x2d1,0x36a)])),_0x3b85c,_0x5ec2d0);}function _0x156183(_0x3ab2f7,_0x74ef2e,_0x390e30,_0x2ca0e9){return _0x332f99(_0x3ab2f7- -_0x288aa9._0x4c4cde,_0x2ca0e9,_0x390e30-0xa5,_0x2ca0e9-_0x288aa9._0x5d7f5f);}await _0xfcae8c({'type':_0x156183(_0x56a1b5._0x32e7b9,_0x56a1b5._0x58a13d,0x340,0x31e),'toolCall':cloneToolCallForPublication(_0x5d1d56,_0x3419b2[_0x482403(0x4b5,0x3ef,_0x56a1b5._0x31fbd8,0x465)],_0x3419b2[_0x156183(_0x56a1b5._0x350b81,0x29f,0x2a3,_0x56a1b5._0x338f30)])},_0x425b26),throwIfAborted(_0x3b85c);},_0x3b85c);const _0x465cf6=await executeCapturedToolCall(_0x3419b2[_0x332f99(0x4c2,_0x54b644._0x4dc110,_0x54b644._0x4f35e2,0x4b0)],_0x5d1d56,_0x3419b2['toolCallId'],_0x3419b2[_0x332f99(0x568,_0x54b644._0x354297,_0x54b644._0x27c905,0x5aa)],_0x425b26,_0xae4e7e,_0xfcae8c);throwIfAborted(_0x3b85c);const _0x3be8f5=await transformNestedToolResult(_0xae4e7e[_0x2e1c19(_0x54b644._0x4b9b2b,0x4f6,0x4db,0x553)],_0x465cf6,_0x16cc95,_0x3b85c),_0x6c9ffc=cloneToolResultForPublication(_0x3be8f5,_0x3419b2['toolCallId'],_0x3419b2[_0x2e1c19(_0x54b644._0x2b57cb,_0x54b644._0x274bb5,_0x54b644._0x3721b2,0x4e8)]);throwIfAborted(_0x3b85c);if(_0x3419b2[_0x2e1c19(_0x54b644._0x5a7e61,_0x54b644._0x2cccd8,_0x54b644._0x4d6ed2,0x4bd)]){const _0x365fe5=_0x3419b2['trace'];await awaitRequiredPersistence(()=>_0x365fe5['recordToolResult'](_0x3419b2[_0x2e1c19(0x486,0x4b7,0x467,0x498)],cloneToolResultForPublication(_0x6c9ffc,_0x3419b2['toolCallId'],_0x3419b2[_0x332f99(0x568,0x5d1,0x52d,0x596)])),_0x3b85c,_0x5ec2d0);}return await _0xfcae8c({'type':_0x2e1c19(0x5b4,0x55d,_0x54b644._0xe2e502,_0x54b644._0x1d5d04),'result':cloneToolResultForPublication(_0x6c9ffc,_0x3419b2[_0x332f99(0x57d,_0x54b644._0xb0e617,0x5d8,_0x54b644._0x5178ba)],_0x3419b2[_0x2e1c19(0x52d,0x565,_0x54b644._0x56642b,_0x54b644._0x419567)])},_0x425b26),throwIfAborted(_0x3b85c),_0x6c9ffc;}function createBoundToolExecutionControl(_0x3fbbab,_0x449a69,_0x42b175,_0xa0c4ff){const _0x1b5032={_0x2ae3af:0x121,_0x295e55:0xdd,_0x59445d:0x1ac,_0x1df695:0x1c5,_0x443626:0x1c6,_0x116526:0x1a8,_0x2c3a07:0x298,_0x5f0489:0x1ff,_0x1aadfc:0x284,_0x103e8b:0x2b5,_0x46314c:0x12a,_0x2abbf1:0x2a9},_0x47914c={_0x35ab50:0xa1},_0x40bdd5={_0x54b70f:0x1,_0x22b5ac:0x33},_0x22a91e={_0x4f541a:0x82,_0x3813ef:0x202},_0x1c509e={_0x300bb7:0x421,_0x4a3d9f:0x57,_0xde5ea2:0x1d,_0x3b26e4:0x1c,_0x2c9176:0x59,_0x2036f5:0x11,_0x57ef1f:0x3ef,_0x248231:0x430,_0x2d6a51:0x3f9,_0x4c5186:0x44a,_0x290f63:0x32},_0x438977={_0x1f7d8b:0x530,_0x5418d1:0x525,_0x16fd52:0x1ea},_0x199e80={_0xd4a409:0x141,_0x21dabc:0x705},_0x4dc73e={_0x22cbf3:0x33b,_0x1befbb:0x338,_0x5a85ca:0x31e},_0x4795c6={_0x1a6d5f:0x118,_0xd4b4e4:0xd6,_0x5a3f30:0x10a},_0x394b3d={_0x3ad031:0x1f4,_0xb12951:0x18f,_0x117b6b:0x160,_0x5b854e:0x197,_0xee267f:0x1c3,_0x557e55:0x21c},_0x219279={_0x185e38:0x11c,_0x478d60:0x1ce},_0xf6b9d4={_0x40e0ed:0x33a},_0x33aa76=createImmutableExecutionScope(_0x449a69[_0x571f8(-0xcb,-0xd3,-_0x1b5032._0x2ae3af,-_0x1b5032._0x295e55)][_0x571f8(-_0x1b5032._0x59445d,-0x1ee,-_0x1b5032._0x1df695,-0x17a)],_0x449a69[_0x35fe0e(-0x1dc,-_0x1b5032._0x443626,-0x164,-0x177)][_0x35fe0e(-0x212,-0x208,-_0x1b5032._0x116526,-0x1fa)]),_0x4af460=new Set(),_0x5b6840=new Set(),_0x17c051=new AbortController(),_0x1b92a8=createNestedCallAdmissionGate();let _0x2313ae=![],_0x27bf9d=![],_0x359a01,_0x470f67=![],_0x409a83=()=>{};function _0x571f8(_0x36058e,_0x532c8e,_0x305807,_0x5a7ffe){return _0x417469(_0x5a7ffe- -_0xf6b9d4._0x40e0ed,_0x532c8e-0x1f2,_0x532c8e,_0x5a7ffe-0x1c2);}const _0xab2016=_0x2e49dd=>{const _0x85332e={_0x358007:0x62,_0x284ee9:0x5f};if(_0x2313ae)return;_0x2313ae=!![];const _0x2bd450=toAbortError(_0x2e49dd??PARENT_TOOL_SETTLED_MESSAGE);function _0x4c6ace(_0x1c64a1,_0x9470e0,_0x2188a0,_0x1cb006){return _0x35fe0e(_0x1c64a1-0x15,_0x1cb006-_0x219279._0x185e38,_0x9470e0,_0x1cb006-_0x219279._0x478d60);}_0x1b92a8[_0x5d4013(-_0x394b3d._0x3ad031,-_0x394b3d._0xb12951,-0x154,-_0x394b3d._0x117b6b)](_0x2bd450);function _0x5d4013(_0x423439,_0x50bb2d,_0x4cb661,_0x2104cb){return _0x35fe0e(_0x423439-_0x85332e._0x358007,_0x50bb2d-_0x85332e._0x284ee9,_0x423439,_0x2104cb-0x19e);}_0x17c051[_0x4c6ace(-0xf2,-0x150,-0x188,-0x105)](_0x2bd450);for(const _0x1b26f4 of _0x4af460){_0x1b26f4[_0x5d4013(-_0x394b3d._0x5b854e,-0x1c2,-_0x394b3d._0xee267f,-_0x394b3d._0x557e55)](_0x2bd450);}_0x409a83();};_0x409a83=addAbortListener(_0x449a69[_0x35fe0e(-_0x1b5032._0x2c3a07,-0x217,-_0x1b5032._0x5f0489,-0x20c)],()=>{const _0x1a33c1={_0x48f116:0x16a,_0x1877bb:0x27};function _0x239af2(_0x2d516c,_0x40cc9c,_0x41f9ae,_0x39a00a){return _0x571f8(_0x2d516c-_0x1a33c1._0x48f116,_0x40cc9c,_0x41f9ae-0x149,_0x41f9ae-_0x1a33c1._0x1877bb);}_0xab2016(_0x449a69['signal'][_0x239af2(-0x7d,-_0x4795c6._0x1a6d5f,-_0x4795c6._0xd4b4e4,-_0x4795c6._0x5a3f30)]);});const _0x50c45e=_0x378dd7=>{_0x5b6840['add'](_0x378dd7);const _0x26828f=()=>{function _0x799af2(_0x20183c,_0x51ba8d,_0xd1a579,_0x6ab5bf){return _0x9ad4(_0x51ba8d-0x1d0,_0xd1a579);}_0x5b6840[_0x799af2(_0x4dc73e._0x22cbf3,0x337,_0x4dc73e._0x1befbb,_0x4dc73e._0x5a85ca)](_0x378dd7);},_0x391dea=_0x22a236=>{!_0x27bf9d&&(_0x27bf9d=!![],_0x359a01=_0x22a236),_0x26828f();};void _0x378dd7['then'](_0x26828f,_0x391dea);},_0x49664c=async()=>{const _0x4f62eb={_0x29f422:0x126};while(_0x5b6840[_0x57bc80(0x4b5,0x4cd,_0x438977._0x1f7d8b,_0x438977._0x5418d1)]>0x0){await Promise[_0x510fd6(-0x25c,-0x19d,-0x23f,-_0x438977._0x16fd52)]([..._0x5b6840]);}function _0x57bc80(_0xa861c8,_0xcacaca,_0x1ff59f,_0x180a82){return _0x35fe0e(_0xa861c8-_0x199e80._0xd4a409,_0x180a82-_0x199e80._0x21dabc,_0xa861c8,_0x180a82-0x5a);}function _0x510fd6(_0x43c786,_0xe95806,_0x22244f,_0xeb261c){return _0x571f8(_0x43c786-0x121,_0x43c786,_0x22244f-_0x4f62eb._0x29f422,_0xeb261c- -0x20);}if(_0x27bf9d)throw _0x359a01;},_0x3725c0=async _0x574760=>{const _0x361e6a={_0x46a529:0x122},_0x310c12={_0x320a72:0x4bd},_0x492db1={_0x5de5d1:0x1a7,_0x33127c:0x5f};if(_0x2313ae)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);let _0xc556ac;try{_0xc556ac=snapshotNestedToolRequest(_0x574760);}catch(_0x33d005){_0x1b92a8['fail'](_0x33d005);throw _0x33d005;}const _0x55fd07=_0x1b92a8[_0x4cd0d6(0x3d6,_0x1c509e._0x300bb7,0x453,0x470)](_0xc556ac['sequence']),_0x3d61d9=createImmutableExecutionScope(_0x33aa76[_0x5c2199(-0x23,0x11,_0x1c509e._0x4a3d9f,0x7)],[..._0x33aa76['toolCallPath'],_0x3fbbab]),_0x507871=new AbortController();function _0x5c2199(_0x1ef0fe,_0x4d2d62,_0x23ad96,_0x2a31bb){return _0x35fe0e(_0x1ef0fe-_0x492db1._0x5de5d1,_0x4d2d62-0x274,_0x1ef0fe,_0x2a31bb-_0x492db1._0x33127c);}_0x4af460[_0x5c2199(-_0x1c509e._0xde5ea2,-_0x1c509e._0x3b26e4,-_0x1c509e._0x2c9176,_0x1c509e._0x2036f5)](_0x507871);_0x2313ae&&_0x507871[_0x4cd0d6(0x3f5,_0x1c509e._0x57ef1f,0x41a,_0x1c509e._0x248231)](toAbortError(PARENT_TOOL_SETTLED_MESSAGE));const _0x37f698=executeNestedToolRequest(_0xc556ac,_0x449a69,_0x3d61d9,_0x507871[_0x4cd0d6(0x437,_0x1c509e._0x2d6a51,_0x1c509e._0x4c5186,0x445)],_0x55fd07,_0x42b175,_0xa0c4ff,_0x50c45e),_0x508d15=()=>{function _0x8664cf(_0x5c6443,_0x4f3b00,_0x43bf70,_0x50e522){return _0x5c2199(_0x50e522,_0x5c6443-_0x310c12._0x320a72,_0x43bf70-0x10a,_0x50e522-0x1aa);}_0x4af460[_0x8664cf(0x50c,0x567,0x513,0x490)](_0x507871);};function _0x4cd0d6(_0x519774,_0x2141f3,_0x10d675,_0x168f55){return _0x571f8(_0x519774-0x130,_0x10d675,_0x10d675-_0x361e6a._0x46a529,_0x2141f3-0x527);}return void _0x37f698[_0x5c2199(-0x6c,-0x17,0x40,-_0x1c509e._0x290f63)](_0x508d15,_0x508d15),await awaitWithAbort(()=>_0x37f698,_0x17c051['signal']);},_0x4667a5={'executeNestedTool':_0x3725c0},_0x48be62=_0x42b175[_0x35fe0e(-0x227,-_0x1b5032._0x1aadfc,-0x2bc,-_0x1b5032._0x103e8b)];_0x48be62&&(_0x4667a5[_0x571f8(-0x180,-_0x1b5032._0x46314c,-0x14f,-0x19b)]=async()=>{const _0x290a63={_0x5f57f1:0x44,_0x3ad3c4:0x2de};if(_0x2313ae)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);function _0x59baac(_0x2a7d71,_0x43a7c4,_0x37ef73,_0x3fc285){return _0x35fe0e(_0x2a7d71-_0x22a91e._0x4f541a,_0x3fc285-_0x22a91e._0x3813ef,_0x2a7d71,_0x3fc285-0xe8);}function _0x37de01(_0x319469,_0x26987a,_0x2c7100,_0x495af1){return _0x35fe0e(_0x319469-_0x290a63._0x5f57f1,_0x495af1-_0x290a63._0x3ad3c4,_0x26987a,_0x495af1-0x11d);}return await awaitUncancellableAfterAdmission(()=>_0x48be62({'executionScope':createImmutableExecutionScope(_0x33aa76[_0x37de01(0xd5,0xa6,0x7f,0x7b)],_0x33aa76[_0x37de01(0xf0,0xd5,0x131,0xd6)]),'programToolCallId':_0x3fbbab}),_0x17c051[_0x59baac(_0x40bdd5._0x54b70f,0x4c,_0x40bdd5._0x22b5ac,-0x15)]);});function _0x35fe0e(_0xa60ea5,_0x405ea4,_0x11951b,_0x23a972){return _0x417469(_0x405ea4- -0x423,_0x405ea4-0x9a,_0x11951b,_0x23a972-_0x47914c._0x35ab50);}const _0x4e9d5a=()=>{_0x470f67=!![],_0xab2016();},_0x2fb750=()=>_0x470f67,_0x179d1d={'capabilities':_0x4667a5,'close':_0xab2016,'commitTerminalState':_0x4e9d5a,'drainPersistence':_0x49664c,'isTerminalStateCommitted':_0x2fb750};return boundNestedExecutionControls[_0x35fe0e(-0x2a3,-0x250,-0x2af,-_0x1b5032._0x2abbf1)](_0x3725c0,_0x179d1d),_0x179d1d;}async function executeCapturedToolCall(_0x5dd3df,_0x17bcd0,_0x24fe13,_0x11930a,_0x84119,_0xa078b7,_0x163aac=_0xa078b7[_0x5c6b7a(0x1d9,0x25e,0x27c,0x230)]){const _0x11f44c={_0x18fc27:0x8b,_0x597255:0x20,_0x3c6722:0x52},_0x5c709b={_0x20035b:0x9e},_0x500283={_0x234ba6:0x1f6,_0x465327:0x1f2,_0x2d26c4:0x198};function _0xc235d0(_0x318b57,_0x292e02,_0x55b71b,_0x1e53b3){return _0x417469(_0x1e53b3- -_0x500283._0x234ba6,_0x292e02-_0x500283._0x465327,_0x318b57,_0x1e53b3-_0x500283._0x2d26c4);}const _0x4d44c7={..._0x84119,'toolCallId':_0x24fe13,'permissionClass':resolveToolPermissionClass(_0x5dd3df),'executionAuthorization':void 0x0};if(_0x4d44c7['signal']['aborted']){const _0x3cb3a7=createAbortedToolResult(_0x24fe13,_0x11930a,_0x4d44c7['signal'][_0xc235d0(0x4b,0xbc,0x7f,0x47)]);return await emitToolCompletedEventWithTerminalPrecedence(_0x163aac,_0x17bcd0,_0x24fe13,_0x11930a,_0x3cb3a7,_0x4d44c7),_0x3cb3a7;}let _0x274d7f;try{_0x274d7f=_0x5dd3df?.['internalLifecycle']?.['acquire']();}catch(_0x32ccc7){const _0x3b7a3f=isAbortError(_0x32ccc7);let _0x2445e;if(_0x3b7a3f)_0x2445e=createAbortedToolResult(_0x24fe13,_0x11930a,_0x32ccc7);else{const {errorMessage:_0x4917ad,structured:_0x26a6cb}=normalizeExecutionError(_0x32ccc7);_0x2445e=createErrorToolResult(_0x24fe13,_0x11930a,_0x4917ad,_0x26a6cb);}return _0x3b7a3f?await emitToolCompletedEventWithTerminalPrecedence(_0x163aac,_0x17bcd0,_0x24fe13,_0x11930a,_0x2445e,_0x4d44c7):await emitEvent(_0x163aac,{'type':_0xc235d0(0x62,_0x11f44c._0x18fc27,_0x11f44c._0x597255,_0x11f44c._0x3c6722),'toolCall':cloneToolCallForPublication(_0x17bcd0,_0x24fe13,_0x11930a),'result':_0x2445e},_0x4d44c7),_0x2445e;}function _0x15fd8f(_0x12eb66,_0x52674d,_0x2f78d2,_0x4f0975){return _0x417469(_0x12eb66- -0xdf,_0x52674d-_0x5c709b._0x20035b,_0x2f78d2,_0x4f0975-0x182);}try{return await executeAcquiredToolCall(_0x5dd3df,_0x17bcd0,_0x24fe13,_0x11930a,_0x84119,_0xa078b7,_0x163aac);}finally{_0x274d7f?.();}}async function executeAcquiredToolCall(_0x313934,_0x4db12b,_0x454355,_0x13533d,_0x43e013,_0x2b8c53,_0x3e0d32){const _0x53ab00={_0x35b283:0x29e,_0x32cfb0:0x28d,_0x266b83:0x26d,_0x3d1e02:0x2d8,_0x401c98:0x1fc,_0x56c0a7:0x281,_0x3a5036:0x292,_0x192705:0x282,_0x58b9e9:0x195,_0x35d216:0x2ef,_0x16fe26:0x2b1,_0xda8056:0x2be,_0x48d5aa:0x210,_0x55daed:0x234,_0xa8f73f:0x265,_0x52bdf3:0x2f8,_0x1cd761:0x2ad,_0x5c3ae5:0x1df,_0x51ab5b:0x251,_0x30cfb3:0x222,_0x49b727:0x2b1,_0x2ddeb9:0x2ac,_0xfe29d0:0x200,_0x2c4c95:0x1fe,_0x3f8d9f:0x1d5,_0x34cbe3:0x22b,_0x141dbf:0x1fa,_0x303b29:0x1e6,_0x27c94a:0x246,_0x3cb037:0x2bb,_0x1a6b2b:0x2b0,_0x9dceb5:0x1ef,_0x543b73:0x28c,_0x423a37:0x283,_0x71a257:0x251,_0x5cd917:0x230,_0x448842:0x1f3,_0x56a2bd:0x1fd,_0x3dc878:0x1ed,_0x3a8099:0x2bd,_0x14a685:0x24b,_0x663879:0x24e,_0xfb01b9:0x1d8,_0x184b4b:0x215,_0x57e4d6:0x2d1,_0x158c02:0x2ae,_0x12b661:0x276,_0x3cc845:0x17f,_0x157e5e:0x139,_0x243833:0x182,_0xef4f5d:0x140,_0x3e5256:0x1a1,_0x23815b:0x1f5,_0x432760:0x1c0,_0x295dae:0x153,_0x2f6350:0x1ef,_0x11bd21:0x1ee,_0x37ee87:0x1b1,_0x23bbc3:0x138,_0x2a951e:0x204,_0x1ae514:0x253,_0x287b34:0x290,_0x32d81b:0x256,_0x1711f7:0x300,_0x4b840c:0x244,_0x5d59a3:0x2c5,_0x107adc:0x2be,_0x333ad4:0x2d7,_0x285148:0x236,_0x517641:0x266,_0x45559c:0x250,_0x1062e4:0x201,_0xcc6d76:0x151,_0x56a15e:0x158,_0x41869d:0x11e,_0x562b24:0x27a,_0x48d736:0x1af,_0x3c8c5d:0x19d,_0x116015:0x23c,_0x4f77f3:0x24f,_0x3b3067:0x234,_0x3567e1:0x211,_0x40261c:0x27d,_0x2da5a6:0x224,_0xde5ec1:0x190},_0x51ac53={_0x313d9b:0x36f,_0x475790:0x3d7,_0x4cf7a3:0x4f5,_0x2b0e98:0x4f2,_0x40cff3:0x486,_0x56ab53:0x4af,_0x507ba1:0x49d},_0x3d3cb0={_0x2d9b62:0x1a2},_0x4af065={_0x2140dd:0x3b8,_0x3025fe:0xac},_0xe3697c={_0x54f131:0x129,_0x35eced:0x59},_0x1060f3={..._0x43e013,'toolCallId':_0x454355,'permissionClass':resolveToolPermissionClass(_0x313934),'executionAuthorization':void 0x0};function _0x96f15a(_0x4d3049,_0x316b37,_0x3fabe1,_0x480d48){return _0x5c6b7a(_0x4d3049-_0xe3697c._0x54f131,_0x316b37-_0xe3697c._0x35eced,_0x3fabe1,_0x480d48-0xf2);}throwIfAborted(_0x1060f3['signal']);let _0x5a5744;try{_0x5a5744=await resolveDispatchDecision(_0x2b8c53[_0x96f15a(0x28a,_0x53ab00._0x35b283,_0x53ab00._0x32cfb0,_0x53ab00._0x266b83)],_0x4db12b,_0x1060f3);}catch(_0x1156c4){if(isAbortError(_0x1156c4)){const _0x2c5c15=createAbortedToolResult(_0x454355,_0x13533d,_0x1156c4);return await emitToolCompletedEventWithTerminalPrecedence(_0x3e0d32,_0x4db12b,_0x454355,_0x13533d,_0x2c5c15,_0x1060f3),_0x2c5c15;}const {errorMessage:_0x4a0f47,structured:_0x1f89cb}=normalizeExecutionError(_0x1156c4),_0x178843=createErrorToolResult(_0x454355,_0x13533d,_0x4a0f47,_0x1f89cb);return await emitEvent(_0x3e0d32,{'type':_0x96f15a(_0x53ab00._0x3d1e02,_0x53ab00._0x32cfb0,0x22c,0x2ef),'toolCall':cloneToolCallForPublication(_0x4db12b,_0x454355,_0x13533d),'result':_0x178843},_0x1060f3),_0x178843;}throwIfAborted(_0x1060f3[_0x96f15a(_0x53ab00._0x401c98,0x251,0x24e,_0x53ab00._0x56c0a7)]);if(_0x5a5744[_0x96f15a(0x24e,_0x53ab00._0x3a5036,0x314,0x25d)]==='reject'){const _0x332577=createRejectedToolResult(_0x454355,_0x13533d,_0x5a5744[_0x96f15a(0x2b3,_0x53ab00._0x192705,0x2b9,0x285)]);return await emitEvent(_0x3e0d32,{'type':'tool_rejected','toolCall':cloneToolCallForPublication(_0x4db12b,_0x454355,_0x13533d),'result':_0x332577},_0x1060f3),_0x332577;}function _0x5037b7(_0x16267f,_0x350113,_0x25e1d2,_0x53bc39){return _0x5c6b7a(_0x16267f-0x3,_0x25e1d2- -_0x4af065._0x2140dd,_0x16267f,_0x53bc39-_0x4af065._0x3025fe);}if(!_0x313934){const _0x3669ce=createUnknownToolResult(_0x454355,_0x13533d);return await emitEvent(_0x3e0d32,{'type':_0x5037b7(-0x1c8,-_0x53ab00._0x58b9e9,-0x184,-0x1a8),'toolCall':cloneToolCallForPublication(_0x4db12b,_0x454355,_0x13533d),'result':_0x3669ce},_0x1060f3),_0x3669ce;}const _0x219cd3=createBoundToolExecutionControl(_0x454355,_0x1060f3,_0x2b8c53,_0x3e0d32),_0x24b257={..._0x1060f3,'executionAuthorization':_0x5a5744['executionAuthorization'],..._0x219cd3[_0x96f15a(_0x53ab00._0x35d216,_0x53ab00._0x16fe26,_0x53ab00._0x266b83,0x32c)]};throwIfAborted(_0x24b257[_0x96f15a(_0x53ab00._0xda8056,0x251,_0x53ab00._0x48d5aa,0x2cc)]);try{await emitEvent(_0x3e0d32,{'type':_0x5037b7(-0x237,-_0x53ab00._0x55daed,-0x1fe,-_0x53ab00._0xa8f73f),'toolCall':cloneToolCallForPublication(_0x4db12b,_0x454355,_0x13533d)},_0x24b257);}catch(_0x200c53){const _0x4484e2=_0x219cd3[_0x96f15a(_0x53ab00._0x52bdf3,0x2be,0x325,_0x53ab00._0x1cd761)]();if(actualCancellationHasPrecedence(_0x24b257,_0x4484e2)){const _0x31d84c=selectActualCancellationReason(_0x200c53,_0x24b257[_0x96f15a(_0x53ab00._0x5c3ae5,_0x53ab00._0x51ab5b,_0x53ab00._0x30cfb3,_0x53ab00._0x49b727)][_0x96f15a(_0x53ab00._0x2ddeb9,0x282,0x2ab,0x2fc)]),_0x15e9e0=createAbortedToolResult(_0x454355,_0x13533d,_0x31d84c);return _0x219cd3[_0x96f15a(0x1d6,_0x53ab00._0xfe29d0,0x235,_0x53ab00._0x2c4c95)](_0x31d84c),await emitToolCompletedEventWithTerminalPrecedence(_0x3e0d32,_0x4db12b,_0x454355,_0x13533d,_0x15e9e0,_0x24b257,_0x4484e2),_0x15e9e0;}_0x219cd3[_0x5037b7(-0x284,-0x1bc,-0x211,-0x24c)](_0x200c53);throw _0x200c53;}try{throwIfAborted(_0x24b257[_0x5037b7(-0x21f,-_0x53ab00._0x3f8d9f,-0x1c0,-_0x53ab00._0x34cbe3)]);const _0x4384f7=validateToolInput(_0x4db12b[_0x96f15a(0x20b,_0x53ab00._0x141dbf,0x189,0x1d4)],_0x313934[_0x96f15a(_0x53ab00._0x303b29,_0x53ab00._0x27c94a,_0x53ab00._0x3cb037,_0x53ab00._0x1a6b2b)]),_0xdb896f=await _0x313934[_0x5037b7(-0x1ca,-0x219,-0x1b2,-0x234)](_0x4384f7,_0x24b257),_0x26f6b6=[],_0x4c6eb7=addAbortListener(_0x24b257[_0x96f15a(_0x53ab00._0x9dceb5,0x251,0x209,_0x53ab00._0x543b73)],()=>{const _0x4d00d4={_0xcbba38:0xd6};function _0x410c45(_0x210ac2,_0x405897,_0x2a09ba,_0x3758c8){return _0x96f15a(_0x210ac2-_0x4d00d4._0xcbba38,_0x210ac2-0x2d3,_0x3758c8,_0x3758c8-0x1c9);}function _0x564be2(_0x139908,_0xb63f19,_0x14f69b,_0x326fab){return _0x5037b7(_0x139908,_0xb63f19-_0x3d3cb0._0x2d9b62,_0x326fab-0x52a,_0x326fab-0x89);}!_0x219cd3[_0x564be2(0x38d,0x428,_0x51ac53._0x313d9b,_0x51ac53._0x475790)]()&&void _0xdb896f[_0x410c45(_0x51ac53._0x4cf7a3,_0x51ac53._0x2b0e98,0x4c9,_0x51ac53._0x40cff3)](void 0x0)[_0x410c45(_0x51ac53._0x56ab53,0x4d6,0x4b1,_0x51ac53._0x507ba1)](()=>{});});try{throwIfAborted(_0x24b257[_0x96f15a(_0x53ab00._0x423a37,_0x53ab00._0x71a257,_0x53ab00._0x5cd917,0x1fe)]);let _0x366389=await _0xdb896f[_0x96f15a(0x1cb,_0x53ab00._0x448842,_0x53ab00._0x56a2bd,_0x53ab00._0x3dc878)]();while(!_0x366389[_0x96f15a(_0x53ab00._0x3a8099,_0x53ab00._0x14a685,_0x53ab00._0x663879,_0x53ab00._0xfb01b9)]){throwIfAborted(_0x24b257[_0x96f15a(_0x53ab00._0x184b4b,0x251,_0x53ab00._0x57e4d6,_0x53ab00._0x158c02)]);const _0x4ebfa4=normalizeToolOutputValue(_0x366389[_0x96f15a(_0x53ab00._0x2c4c95,0x253,0x268,_0x53ab00._0x12b661)]);_0x26f6b6[_0x5037b7(-0x1b5,-_0x53ab00._0x3cc845,-0x17a,-_0x53ab00._0x157e5e)](_0x4ebfa4),await emitEvent(_0x3e0d32,{'type':_0x5037b7(-0x10d,-0x119,-_0x53ab00._0x243833,-_0x53ab00._0xef4f5d),'toolCall':cloneToolCallForPublication(_0x4db12b,_0x454355,_0x13533d),'chunk':_0x4ebfa4},_0x24b257),throwIfAborted(_0x24b257[_0x5037b7(-_0x53ab00._0x3e5256,-_0x53ab00._0x23815b,-_0x53ab00._0x432760,-0x198)]),_0x366389=await _0xdb896f['next']();}!_0x219cd3[_0x5037b7(-0x109,-0x124,-_0x53ab00._0x295dae,-0x112)]()&&throwIfAborted(_0x24b257[_0x5037b7(-_0x53ab00._0x2f6350,-0x1ee,-0x1c0,-_0x53ab00._0x11bd21)]);const _0x214f83=_0x366389[_0x5037b7(-_0x53ab00._0x37ee87,-0x16f,-0x1be,-_0x53ab00._0x23bbc3)]===void 0x0?deriveFinalToolOutput(_0x26f6b6):normalizeToolOutputValue(_0x366389[_0x96f15a(_0x53ab00._0x2a951e,_0x53ab00._0x1ae514,_0x53ab00._0x287b34,_0x53ab00._0x32d81b)]),_0x23c489=createSuccessToolResult(_0x454355,_0x13533d,_0x214f83,_0x26f6b6);return _0x219cd3['close'](),await emitEvent(_0x3e0d32,{'type':_0x96f15a(0x230,0x28d,_0x53ab00._0x1711f7,_0x53ab00._0x4b840c),'toolCall':cloneToolCallForPublication(_0x4db12b,_0x454355,_0x13533d),'result':_0x23c489},_0x24b257),_0x23c489;}catch(_0x5db2af){const _0x20f2ae=_0x219cd3[_0x96f15a(_0x53ab00._0x5d59a3,_0x53ab00._0x107adc,_0x53ab00._0x333ad4,0x24b)](),_0x2e1fee=actualCancellationHasPrecedence(_0x24b257,_0x20f2ae);if(_0x2e1fee||isAbortError(_0x5db2af)){const _0x49ab71=_0x2e1fee?selectActualCancellationReason(_0x5db2af,_0x24b257[_0x5037b7(-_0x53ab00._0x285148,-_0x53ab00._0x141dbf,-0x1c0,-0x190)][_0x96f15a(_0x53ab00._0x517641,_0x53ab00._0x192705,0x2fa,_0x53ab00._0x45559c)]):_0x5db2af,_0x9c8720=createAbortedToolResult(_0x454355,_0x13533d,_0x49ab71,_0x26f6b6);return _0x219cd3['close'](_0x49ab71),await emitToolCompletedEventWithTerminalPrecedence(_0x3e0d32,_0x4db12b,_0x454355,_0x13533d,_0x9c8720,_0x24b257,_0x20f2ae),_0x9c8720;}if(_0x5db2af instanceof ToolRuntimeInfrastructureError)throw _0x5db2af;const {errorMessage:_0x461517,structured:_0x41775c}=normalizeExecutionError(_0x5db2af),_0x55cda8=createErrorToolResult(_0x454355,_0x13533d,_0x461517,_0x41775c,_0x26f6b6);return _0x219cd3[_0x5037b7(-_0x53ab00._0x1062e4,-0x230,-0x211,-0x281)](_0x5db2af),await emitToolCompletedEventWithTerminalPrecedence(_0x3e0d32,_0x4db12b,_0x454355,_0x13533d,_0x55cda8,_0x24b257,_0x219cd3[_0x5037b7(-_0x53ab00._0xcc6d76,-_0x53ab00._0x56a15e,-0x153,-_0x53ab00._0x41869d)]()),_0x55cda8;}finally{_0x4c6eb7();}}catch(_0x3a0531){const _0x29bea2=_0x219cd3[_0x96f15a(0x2d1,0x2be,0x268,_0x53ab00._0x562b24)](),_0x556d3e=actualCancellationHasPrecedence(_0x24b257,_0x29bea2);if(_0x556d3e||isAbortError(_0x3a0531)){const _0x43da97=_0x556d3e?selectActualCancellationReason(_0x3a0531,_0x24b257[_0x5037b7(-_0x53ab00._0x48d736,-_0x53ab00._0x3c8c5d,-0x1c0,-0x156)][_0x96f15a(0x2c4,0x282,_0x53ab00._0x116015,_0x53ab00._0x4f77f3)]):_0x3a0531,_0x172ad8=createAbortedToolResult(_0x454355,_0x13533d,_0x43da97);return _0x219cd3[_0x5037b7(-0x1ee,-_0x53ab00._0x3b3067,-_0x53ab00._0x3567e1,-_0x53ab00._0x40261c)](_0x43da97),await emitToolCompletedEventWithTerminalPrecedence(_0x3e0d32,_0x4db12b,_0x454355,_0x13533d,_0x172ad8,_0x24b257,_0x29bea2),_0x172ad8;}if(_0x3a0531 instanceof ToolRuntimeInfrastructureError)throw _0x3a0531;const {errorMessage:_0xf6bc41,structured:_0x1827f1}=normalizeExecutionError(_0x3a0531),_0x361c44=createErrorToolResult(_0x454355,_0x13533d,_0xf6bc41,_0x1827f1);return _0x219cd3[_0x96f15a(0x274,0x200,_0x53ab00._0x2da5a6,_0x53ab00._0xde5ec1)](_0x3a0531),await emitEvent(_0x3e0d32,{'type':_0x5037b7(-0x1f7,-0x104,-0x184,-_0x53ab00._0x2a951e),'toolCall':cloneToolCallForPublication(_0x4db12b,_0x454355,_0x13533d),'result':_0x361c44},_0x24b257),_0x361c44;}finally{_0x219cd3['close']();}}async function executeRegisteredToolCall(_0x846f05,_0x4a0a65,_0x13ee05,_0x477a26){const _0x56940c=_0x4a0a65['id'],_0x1679d0=_0x4a0a65['name'],_0x1f6fa0=_0x846f05['get'](_0x1679d0);return await executeCapturedToolCall(_0x1f6fa0,_0x4a0a65,_0x56940c,_0x1679d0,_0x13ee05,_0x477a26);}function createInternalToolRuntime(_0x371c4b=[],_0x1de185={}){const _0x5de258={_0x1c970c:0x226,_0xf44c57:0x248},_0x49eb5b={_0x1f1f6a:0xcf,_0x335db0:0xed,_0x8c83da:0x11c,_0x2b7164:0x98},_0x1d8c97={_0x564a44:0x115,_0x1e43e4:0xf7};let _0x1089c5=new ToolRegistry(_0x371c4b);return{'listToolSchemas'(){function _0x2230cb(_0x4745b7,_0xd4ec81,_0x5a7710,_0x248733){return _0x9ad4(_0x248733- -0x84,_0xd4ec81);}return _0x1089c5[_0x2230cb(0x118,_0x1d8c97._0x564a44,0x127,_0x1d8c97._0x1e43e4)]();},'setTools'(_0x6c4afa){_0x1089c5=new ToolRegistry(_0x6c4afa);},async 'executeCalls'(_0x7b0adb,_0x365213){const _0x56d41a={_0x390a24:0x2f9},_0x3aee5b={_0x54adc6:0x2ec};function _0x42e200(_0x23968e,_0x112e23,_0x14f9a1,_0x1a807e){return _0x9ad4(_0x23968e- -_0x3aee5b._0x54adc6,_0x14f9a1);}function _0x4a2046(_0x5dd7c9,_0x38120b,_0x26d602,_0x43dd0b){return _0x9ad4(_0x38120b- -_0x56d41a._0x390a24,_0x5dd7c9);}return await Promise[_0x4a2046(-_0x49eb5b._0x1f1f6a,-0x11a,-0xba,-_0x49eb5b._0x335db0)](_0x7b0adb[_0x42e200(-_0x49eb5b._0x8c83da,-0x13f,-0xc4,-_0x49eb5b._0x2b7164)](async _0x519511=>{return await executeRegisteredToolCall(_0x1089c5,_0x519511,_0x365213,_0x1de185);}));},async 'execute'(_0x297b20,_0x5e4e10){const _0x4f1ee9={_0x216284:0x359};function _0x3425ef(_0x3ee34c,_0x49983d,_0x5db4b3,_0xf986b4){return _0x9ad4(_0x49983d- -_0x4f1ee9._0x216284,_0x3ee34c);}const [_0xc2c91c]=await this[_0x3425ef(-_0x5de258._0x1c970c,-_0x5de258._0xf44c57,-0x248,-0x203)]([_0x297b20],_0x5e4e10);return _0xc2c91c;}};}function getOrderedObserverExtensions(_0x15fe02,_0x41a97e){const _0x5aa0d1={_0x29ba4f:0x52,_0x4c9a23:0x97,_0xc5990a:0xb6,_0x30cced:0x118},_0x3c80ce={_0x44136d:0xae,_0x17c442:0xf1,_0x15d2f5:0xf0,_0x392354:0xbb,_0x4ea935:0x131,_0x1de897:0xc8,_0x159cc6:0xdb,_0x20cf5c:0xc9,_0x4ae341:0x86,_0x3bdd36:0x9a,_0x5fba25:0x2f,_0x4551d4:0x6a},_0x258c79={_0x5301c0:0x44,_0x4be881:0xe8},_0x13f1f7={_0xd4af31:0xcf},_0x1bf8ac={_0xcb1245:0xef},_0x363aef={_0x234dba:0x19c};function _0x4624b9(_0x24678b,_0x263bd9,_0x1e005d,_0xbd92e3){return _0x5c6b7a(_0x24678b-0x16d,_0x1e005d- -_0x363aef._0x234dba,_0x263bd9,_0xbd92e3-0xc6);}function _0x2033df(_0x4edbc3,_0x2cb3ae,_0x44b99c,_0x234bab){return _0x417469(_0x4edbc3- -0x16d,_0x2cb3ae-_0x1bf8ac._0xcb1245,_0x44b99c,_0x234bab-0x151);}return _0x15fe02[_0x2033df(0xd8,_0x5aa0d1._0x29ba4f,_0x5aa0d1._0x4c9a23,0x56)](_0x11bd23=>{const _0x3c0470={_0x368799:0x4,_0x1c1343:0x4b};function _0x55bb0e(_0x2dc56c,_0x1fca8f,_0x290e15,_0x56401e){return _0x2033df(_0x290e15-_0x3c0470._0x368799,_0x1fca8f-0x7c,_0x1fca8f,_0x56401e-_0x3c0470._0x1c1343);}return _0x11bd23[_0x55bb0e(_0x13f1f7._0xd4af31,0xea,0xac,0xc6)]!==![]&&_0x11bd23['stage']===_0x41a97e&&_0x11bd23['kind']==='observer';})[_0x2033df(0xba,0xc1,_0x5aa0d1._0xc5990a,_0x5aa0d1._0x30cced)]((_0x51ce42,_0x4813ba)=>{if(_0x51ce42[_0x214859(-0x48,-_0x3c80ce._0x44136d,-0x78,-0x7f)]===!![]&&_0x4813ba[_0x462c61(_0x3c80ce._0x17c442,_0x3c80ce._0x15d2f5,_0x3c80ce._0x392354,0xdb)]!==!![])return 0x1;function _0x462c61(_0x3e9242,_0xcfd7df,_0x5ce927,_0x2431b1){return _0x4624b9(_0x3e9242-0xd0,_0x3e9242,_0x2431b1-_0x258c79._0x5301c0,_0x2431b1-_0x258c79._0x4be881);}function _0x214859(_0x4bfa5b,_0xe12e07,_0x372757,_0x3265f9){return _0x4624b9(_0x4bfa5b-0x57,_0x3265f9,_0x372757- -0x10f,_0x3265f9-0x193);}if(_0x51ce42[_0x462c61(0x141,_0x3c80ce._0x4ea935,_0x3c80ce._0x1de897,_0x3c80ce._0x159cc6)]!==!![]&&_0x4813ba[_0x214859(0x6,-_0x3c80ce._0x20cf5c,-0x78,-_0x3c80ce._0x4ae341)]===!![])return-0x1;return _0x51ce42[_0x462c61(_0x3c80ce._0x3bdd36,-_0x3c80ce._0x5fba25,_0x3c80ce._0x4551d4,0x4a)]-_0x4813ba['order'];});}function getOrderedTransformerExtensions(_0x44cc9c,_0x36bffe){const _0x3aad88={_0x2ff6ee:0xe8,_0x51c998:0x142},_0x3e296d={_0x52b74f:0x1f0,_0x2d5175:0x196,_0x2fef3a:0x13d,_0xa3ee9a:0x1c3,_0x56b67e:0x275,_0x44f71d:0x2cf},_0x1b7d16={_0xe6f9f5:0x1ec},_0x39e777={_0x1340f4:0xe5,_0x248720:0xc9},_0x1a64d1={_0x21801c:0x1e7,_0x33e195:0x288,_0x507093:0x17b};function _0x4b3c3b(_0x2af3dc,_0x31cd3a,_0x4f6898,_0xc83be1){return _0x5c6b7a(_0x2af3dc-_0x1a64d1._0x21801c,_0xc83be1- -_0x1a64d1._0x33e195,_0x4f6898,_0xc83be1-_0x1a64d1._0x507093);}function _0x4254bc(_0x3ee7c6,_0x447eeb,_0x137ce6,_0x146420){return _0x417469(_0x137ce6- -_0x39e777._0x1340f4,_0x447eeb-0xbf,_0x146420,_0x146420-_0x39e777._0x248720);}return _0x44cc9c['filter'](_0x26a6b0=>{const _0x22cb10={_0x3a0935:0xaa};function _0x3aa571(_0x471fe7,_0x5f0074,_0x12c918,_0x3761a4){return _0x9ad4(_0x5f0074-_0x1b7d16._0xe6f9f5,_0x3761a4);}function _0x45ae3d(_0x2a886e,_0x17f673,_0x40f9ab,_0x4f6c48){return _0x9ad4(_0x2a886e-_0x22cb10._0x3a0935,_0x4f6c48);}return _0x26a6b0[_0x3aa571(0x392,0x36a,0x31f,0x3aa)]!==![]&&_0x26a6b0[_0x45ae3d(0x1f8,0x17a,_0x3e296d._0x52b74f,0x25b)]===_0x36bffe&&_0x26a6b0[_0x45ae3d(_0x3e296d._0x2d5175,_0x3e296d._0x2fef3a,_0x3e296d._0xa3ee9a,0x127)]===_0x45ae3d(_0x3e296d._0x56b67e,_0x3e296d._0x44f71d,0x278,0x22c);})[_0x4254bc(0xd8,_0x3aad88._0x2ff6ee,_0x3aad88._0x51c998,0x184)]((_0x2b6324,_0x4400c1)=>_0x2b6324[_0x4b3c3b(-0xaf,-0x111,-0x149,-0xe6)]-_0x4400c1['order']);}function createExtensionRegistry(){const _0x445cb7={_0x116809:0x94,_0x4420bd:0x7b},_0x7ee80d={_0x2ad50a:0x6f},_0x35b418={_0x46d96d:0x17c},_0x1d8eb9={_0x5d53b0:0x153,_0x7df3fc:0x158,_0x2a6882:0x11f,_0x44d6c4:0xdc,_0x4ef09b:0x1fa,_0x41cf61:0x1c5,_0x22e4ab:0x1dc,_0x273360:0x1f5,_0x6d541d:0x12d,_0x276fab:0x8d,_0x54abd7:0x10e,_0x2b823e:0x2a,_0x47aff7:0x15,_0x478aa9:0x50,_0x580b91:0x62,_0x422a33:0x176,_0x2b7263:0x129},_0x5177f1=[];return{'register'(_0x251300){function _0x29ea20(_0x58cc0d,_0x1ff3a5,_0x394031,_0x29a09f){return _0x9ad4(_0x1ff3a5-0x2c,_0x29a09f);}if(_0x251300[_0x29ea20(0x96,0x118,_0x1d8eb9._0x5d53b0,0x14a)]===_0x29ea20(_0x1d8eb9._0x7df3fc,_0x1d8eb9._0x2a6882,_0x1d8eb9._0x44d6c4,0xec)&&_0x251300[_0x29ea20(_0x1d8eb9._0x4ef09b,0x1aa,0x168,_0x1d8eb9._0x41cf61)]!==![]&&_0x251300[_0x29ea20(0x193,_0x1d8eb9._0x22e4ab,0x25a,_0x1d8eb9._0x273360)]===!![]){const _0x239bce=_0x5177f1[_0x4f2202(_0x1d8eb9._0x6d541d,_0x1d8eb9._0x276fab,_0x1d8eb9._0x44d6c4,_0x1d8eb9._0x54abd7)](_0x6468aa=>_0x6468aa[_0x29ea20(0xa4,0x118,0x12e,0x107)]==='observer'&&_0x6468aa[_0x29ea20(0x1e4,0x1aa,0x18b,0x182)]!==![]&&_0x6468aa[_0x4f2202(0x106,0xb,0x80,0x7)]===_0x251300[_0x4f2202(0x17,0x4e,0x80,0x9a)]&&_0x6468aa['terminal']===!![]);if(_0x239bce)throw new Error('Cannot\x20register\x20terminal\x20observer\x20\x22'+_0x251300['id']+_0x4f2202(_0x1d8eb9._0x2b823e,-0x71,_0x1d8eb9._0x47aff7,-_0x1d8eb9._0x478aa9)+_0x251300['stage']+_0x4f2202(0x35,-0x69,0x1d,_0x1d8eb9._0x580b91)+_0x239bce['id']+_0x29ea20(_0x1d8eb9._0x422a33,0x180,_0x1d8eb9._0x2b7263,0x121));}function _0x4f2202(_0x18fc98,_0x736eda,_0x3e7286,_0xd00735){return _0x9ad4(_0x3e7286- -0xce,_0x18fc98);}_0x5177f1['push']({..._0x251300});},async 'runTransformers'(_0x4d3c2a,_0x411f57,_0x639d12){let _0x1755d8=_0x411f57;function _0x55f236(_0x541c45,_0x53f0ea,_0x5ab7ed,_0x2e2ab9){return _0x9ad4(_0x53f0ea- -_0x35b418._0x46d96d,_0x541c45);}for(const _0x1065b9 of getOrderedTransformerExtensions(_0x5177f1,_0x4d3c2a)){_0x1755d8=await _0x1065b9[_0x55f236(-0xa2,-0x60,-0xc8,-_0x7ee80d._0x2ad50a)](_0x1755d8,_0x639d12);}return _0x1755d8;},async 'runObservers'(_0x2916b9,_0x1112d1,_0x3692f7){function _0x52f663(_0x50279e,_0x420314,_0x4f85f9,_0x3341af){return _0x9ad4(_0x420314- -0x48,_0x4f85f9);}for(const _0x507762 of getOrderedObserverExtensions(_0x5177f1,_0x2916b9)){await _0x507762[_0x52f663(0xad,0xd4,_0x445cb7._0x116809,_0x445cb7._0x4420bd)](_0x1112d1,_0x3692f7);}}};}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(_0x36d2e7,_0x4c8d54){const _0x426f7d={_0xfff45a:0x587,_0x273970:0x5a8,_0x26a1bc:0x537,_0x22f7d2:0x5e5,_0x82958c:0x530,_0x3a0c49:0x508,_0x3fcb1f:0x57a,_0x390c53:0x5bd,_0x26ff43:0xdb,_0x434ae5:0x69,_0x276fbc:0x4a,_0x323e44:0x4d1,_0x314eea:0x4c,_0x274cc1:0xaa,_0x993ff9:0x3d,_0x21168b:0x2f,_0x1b09c6:0x13,_0x1a2414:0x4,_0x328e62:0x5c,_0x20d61e:0xf,_0x4c9d30:0x9f,_0x56a999:0x79,_0x310d7c:0xe7,_0x1f92f3:0x5f,_0xa4a7bf:0x5c0,_0x344f6a:0x161,_0x346075:0xe4,_0x1c6f98:0x556,_0x17026e:0x50c,_0x520234:0x48d,_0x1c25e4:0x49,_0x406dda:0x19,_0x5d59ec:0x23,_0x46da65:0x4ba,_0x172c94:0x4d0,_0x18d8a6:0x4c1,_0x55e3fd:0x70,_0x19f609:0xc,_0x5af3e9:0x56b,_0x1774b2:0x535,_0x4e15d5:0x5a6,_0x54633c:0x5c1,_0x356a02:0x36,_0x5b9b2a:0x5},_0x260c96={_0x3eb77c:0x35c,_0x566b27:0xfa},_0xa0e8a0=_0x4c8d54[_0xd8be99(_0x426f7d._0xfff45a,0x5fd,_0x426f7d._0x273970,_0x426f7d._0x26a1bc)],_0x3e6c99=_0xa0e8a0[_0xd8be99(0x5fb,_0x426f7d._0x22f7d2,0x59f,0x590)],_0x35213b=_0xa0e8a0['outputTokens'],_0x561e4a=_0xa0e8a0[_0xd8be99(_0x426f7d._0x82958c,_0x426f7d._0x3a0c49,_0x426f7d._0x3fcb1f,_0x426f7d._0x390c53)]??0x0,_0xb99b57=_0x3e6c99+_0x35213b,_0x2f16f1=_0xa0e8a0[_0x233ac9(_0x426f7d._0x26ff43,0x38,0x2e,_0x426f7d._0x434ae5)]?.[_0x233ac9(-_0x426f7d._0x276fbc,-0x68,0x57,-0xd)],_0x582ff5=_0xa0e8a0['estimatedCost']?.[_0xd8be99(_0x426f7d._0x323e44,0x4ec,0x4cf,0x503)];function _0xd8be99(_0x4be6f5,_0x476ce5,_0x4242f1,_0x40a76a){return _0x5c6b7a(_0x4be6f5-0x159,_0x4242f1-_0x260c96._0x3eb77c,_0x476ce5,_0x40a76a-_0x260c96._0x566b27);}const _0x37a32c=_0x2f16f1??_0x582ff5,{currentReportedCostUsdTicks:_0x250bd9,currentEstimatedCostUsdTicks:_0x15d78e,..._0x7b54dd}=_0x36d2e7;function _0x233ac9(_0x334ebf,_0xb88613,_0x4c2854,_0x39b9a7){return _0x5c6b7a(_0x334ebf-0x15c,_0x39b9a7- -0x180,_0x4c2854,_0x39b9a7-0x186);}return{..._0x7b54dd,'totalTokens':_0x7b54dd[_0xd8be99(0x504,0x59a,0x56d,0x5b5)]+_0xb99b57,'totalInputTokens':_0x7b54dd[_0x233ac9(0x18,_0x426f7d._0x314eea,_0x426f7d._0x274cc1,_0x426f7d._0x993ff9)]+_0x3e6c99,'totalOutputTokens':_0x7b54dd[_0x233ac9(_0x426f7d._0x21168b,0x55,0x63,0x5f)]+_0x35213b,'totalReasoningTokens':_0x7b54dd['totalReasoningTokens']+_0x561e4a,'modelCallCount':_0x7b54dd[_0x233ac9(0x60,0x3,0x15,_0x426f7d._0x1b09c6)]+0x1,'totalModelTimeMs':_0x7b54dd[_0x233ac9(-0xd,-0x1e,0x1,0x0)]+_0x4c8d54[_0x233ac9(_0x426f7d._0x1a2414,-_0x426f7d._0x328e62,-0x6c,-_0x426f7d._0x20d61e)],'currentTokens':_0xb99b57,'currentInputTokens':_0x3e6c99,'currentOutputTokens':_0x35213b,'currentReasoningTokens':_0x561e4a,'currentModelTimeMs':_0x4c8d54['modelTimeMs'],..._0x7b54dd[_0x233ac9(0x45,_0x426f7d._0x4c9d30,0x48,_0x426f7d._0x56a999)]&&_0xb99b57>0x0?{'contextWindowUsage':_0xb99b57/_0x7b54dd[_0x233ac9(0xe9,_0x426f7d._0x310d7c,_0x426f7d._0x1f92f3,0x79)]}:{},'totalCostUsdTicks':_0x37a32c===void 0x0?_0x7b54dd[_0xd8be99(0x58b,0x61c,_0x426f7d._0xa4a7bf,0x5d5)]:_0x7b54dd[_0x233ac9(_0x426f7d._0x344f6a,0x161,0x106,_0x426f7d._0x346075)]+_0x37a32c,'totalReportedCostUsdTicks':_0x2f16f1===void 0x0?_0x7b54dd['totalReportedCostUsdTicks']:_0x7b54dd[_0xd8be99(_0x426f7d._0x1c6f98,0x4d3,_0x426f7d._0x17026e,_0x426f7d._0x520234)]+_0x2f16f1,'totalEstimatedCostUsdTicks':_0x582ff5===void 0x0?_0x7b54dd[_0x233ac9(0x8,_0x426f7d._0x1c25e4,_0x426f7d._0x406dda,-_0x426f7d._0x5d59ec)]:_0x7b54dd['totalEstimatedCostUsdTicks']+_0x582ff5,'reportedCostCallCount':_0x2f16f1===void 0x0?_0x7b54dd[_0xd8be99(_0x426f7d._0x46da65,0x539,_0x426f7d._0x172c94,_0x426f7d._0x18d8a6)]:_0x7b54dd[_0x233ac9(-0x86,-0x17,_0x426f7d._0x55e3fd,-_0x426f7d._0x19f609)]+0x1,'estimatedCostCallCount':_0x582ff5===void 0x0?_0x7b54dd[_0xd8be99(0x5e4,0x5cf,_0x426f7d._0x5af3e9,_0x426f7d._0x1774b2)]:_0x7b54dd[_0xd8be99(0x586,_0x426f7d._0x4e15d5,0x56b,_0x426f7d._0x54633c)]+0x1,'unpricedModelCallCount':_0x2f16f1===void 0x0&&_0x582ff5===void 0x0?_0x7b54dd['unpricedModelCallCount']+0x1:_0x7b54dd[_0x233ac9(0xc,-_0x426f7d._0x356a02,0x3e,-_0x426f7d._0x5b9b2a)],..._0x2f16f1!==void 0x0?{'currentReportedCostUsdTicks':_0x2f16f1}:{},..._0x582ff5!==void 0x0?{'currentEstimatedCostUsdTicks':_0x582ff5}:{}};}function createAgentMetrics(_0x11595d={}){const _0x4b1527={_0x5c6470:0x16f,_0x4b1626:0xfd,_0x40ba8b:0xbc,_0x3f542b:0xb6,_0x5baa82:0x58d,_0x51ee0d:0xc5,_0x1b7aab:0xd7,_0x521dab:0x6a,_0xbb06b1:0x455,_0x42d80d:0x152,_0x5782fd:0x1d7,_0x361b28:0x451,_0x551256:0x458,_0x2c8904:0x17b,_0x3ab206:0x157,_0x20d2a5:0x14f,_0x314a02:0x188},_0x60ea={_0x4f8171:0x54c,_0x33e719:0x56a,_0x2a015a:0x563,_0x484fdd:0xa2,_0x2f3fe0:0xe,_0x525e21:0x5d,_0x134c7e:0x2e,_0x1260f1:0xeb,_0x4acc35:0x7a,_0x260ee5:0x91,_0x7c8209:0x4cc,_0x3bc8e5:0xaf,_0x41fef1:0xd3,_0x2bbc96:0x599,_0x461e4c:0x5a7,_0x3d2451:0x79,_0x29e029:0x85,_0x44c8b7:0x568,_0x50b934:0x446,_0xa4597e:0x48b,_0x1dfb96:0x505,_0x15ff16:0x44d,_0x207cbb:0x4f4,_0x3a3e4b:0x11};let _0x38f8e0=createEmptySnapshot();const _0x576962=new Set();let _0x3eccd0;const _0x21ad23=()=>{const _0x47329c={..._0x38f8e0};for(const _0x738551 of _0x576962)_0x738551(_0x47329c);};return{'getSnapshot'(){return{..._0x38f8e0};},'recordEvent'(_0x86183e){const _0x38332e={_0x2ffdfd:0x1b8},_0x2dfc92={_0x534c9d:0x396};if(_0x86183e['type']===_0xf6e846(_0x60ea._0x4f8171,_0x60ea._0x33e719,_0x60ea._0x2a015a,_0x60ea._0x2a015a)){_0x3eccd0=Date[_0x4358df(-_0x60ea._0x484fdd,-_0x60ea._0x2f3fe0,-_0x60ea._0x525e21,-0x4d)]();const _0x3333c2=_0x11595d[_0x4358df(-_0x60ea._0x134c7e,-_0x60ea._0x1260f1,-_0x60ea._0x4acc35,-_0x60ea._0x260ee5)]?.(_0x86183e['request']);_0x3333c2!==void 0x0&&(_0x38f8e0={..._0x38f8e0,'contextWindowLimit':_0x3333c2},_0x21ad23());return;}if(_0x86183e[_0xf6e846(0x455,0x457,0x4d2,_0x60ea._0x7c8209)]===_0x4358df(-0x8c,-0xc9,-_0x60ea._0x3bc8e5,-_0x60ea._0x41fef1)){const _0x3cf43f=_0x3eccd0===void 0x0?0x0:Date['now']()-_0x3eccd0;_0x3eccd0=void 0x0,_0x38f8e0=applyModelCall(_0x38f8e0,{'usage':_0x86183e['response'][_0xf6e846(_0x60ea._0x2bbc96,_0x60ea._0x461e4c,0x550,0x55f)],'modelTimeMs':_0x86183e['modelTimeMs']??_0x3cf43f}),_0x21ad23();return;}if(_0x86183e[_0x4358df(-_0x60ea._0x3d2451,-0x3c,-0x82,-_0x60ea._0x29e029)]===_0xf6e846(_0x60ea._0x44c8b7,0x567,0x517,0x4ec)){_0x38f8e0={..._0x38f8e0,'toolCallCount':_0x38f8e0[_0xf6e846(0x4ed,_0x60ea._0x50b934,0x495,_0x60ea._0xa4597e)]+0x1},_0x21ad23();return;}function _0xf6e846(_0x1325f2,_0x720c2,_0x42d3f5,_0x1c18d3){return _0x9ad4(_0x1c18d3-_0x2dfc92._0x534c9d,_0x42d3f5);}function _0x4358df(_0x266ba3,_0x3a54fc,_0x2d08cc,_0x3314d7){return _0x9ad4(_0x2d08cc- -_0x38332e._0x2ffdfd,_0x266ba3);}_0x86183e[_0xf6e846(0x46f,_0x60ea._0x1dfb96,0x4e5,_0x60ea._0x7c8209)]===_0xf6e846(_0x60ea._0x15ff16,0x45f,_0x60ea._0x207cbb,0x4b3)&&(_0x38f8e0={..._0x38f8e0,'requestCount':_0x38f8e0[_0x4358df(-0x1c,_0x60ea._0x3a3e4b,-0x75,-0x73)]+0x1},_0x21ad23());},'reset'(){_0x38f8e0=createEmptySnapshot(),_0x3eccd0=void 0x0,_0x21ad23();},'restore'(_0x57a493){let _0x28034c=createEmptySnapshot();function _0x1bb2d1(_0x206b2c,_0x1ad9bc,_0x34aba5,_0x3a312c){return _0x9ad4(_0x1ad9bc- -0x17,_0x34aba5);}for(const _0x312e67 of _0x57a493[_0x1bb2d1(_0x4b1527._0x5c6470,_0x4b1527._0x4b1626,_0x4b1527._0x40ba8b,_0x4b1527._0x3f542b)]){_0x28034c=applyModelCall(_0x28034c,{'usage':_0x312e67[_0x561154(0x4b9,_0x4b1527._0x5baa82,0x4db,0x52c)],'modelTimeMs':_0x312e67[_0x1bb2d1(_0x4b1527._0x51ee0d,_0x4b1527._0x1b7aab,0xa1,_0x4b1527._0x521dab)]});}_0x38f8e0={..._0x28034c,'requestCount':_0x57a493[_0x561154(_0x4b1527._0xbb06b1,0x478,0x45c,0x477)]['filter'](_0x2b3135=>_0x2b3135[_0x1bb2d1(0x1dc,0x16b,0x18a,0x141)])[_0x1bb2d1(0x110,_0x4b1527._0x42d80d,_0x4b1527._0x5782fd,0x1ca)],'toolCallCount':_0x57a493[_0x561154(0x4ab,0x4af,_0x4b1527._0x361b28,_0x4b1527._0x551256)],'historicalMetricsComplete':_0x57a493[_0x1bb2d1(0x217,0x1c1,_0x4b1527._0x2c8904,_0x4b1527._0x3ab206)]===0x0,'missingHistoricalModelCallCount':_0x57a493[_0x1bb2d1(0x23d,0x1c1,_0x4b1527._0x20d2a5,_0x4b1527._0x314a02)]};function _0x561154(_0x211433,_0x408d0d,_0x14a820,_0x4fc616){return _0x9ad4(_0x4fc616-0x363,_0x211433);}_0x3eccd0=void 0x0,_0x21ad23();},'subscribe'(_0x3962b8){const _0x5aa2b7={_0x21123a:0x313,_0x2a6497:0x354,_0xd99eec:0x2d4,_0x5de847:0x253};return _0x576962['add'](_0x3962b8),()=>{function _0x2646ef(_0x519137,_0x463f34,_0x376bf7,_0x2ddd38){return _0x9ad4(_0x376bf7-0x16d,_0x2ddd38);}_0x576962[_0x2646ef(_0x5aa2b7._0x21123a,_0x5aa2b7._0x2a6497,_0x5aa2b7._0xd99eec,_0x5aa2b7._0x5de847)](_0x3962b8);};}};}function normalizeExecutionScope(_0x450c51){const _0x12059e={_0x5d0e1c:0x2a6,_0x51647e:0x29f,_0x553eef:0x1eb,_0x503d47:0x261,_0x418fda:0x2b3},_0x40b8c4={_0x5b2323:0x215,_0x373be8:0x48};function _0x297187(_0x13660b,_0x178ed1,_0x3d18b3,_0x13c385){return _0x417469(_0x3d18b3- -_0x40b8c4._0x5b2323,_0x178ed1-0x1c9,_0x13660b,_0x13c385-_0x40b8c4._0x373be8);}function _0x580616(_0x1790ea,_0x316119,_0x501697,_0x477967){return _0x5c6b7a(_0x1790ea-0xd7,_0x316119- -0x3e8,_0x501697,_0x477967-0x84);}return{'agentId':_0x450c51?.[_0x580616(-_0x12059e._0x5d0e1c,-0x23c,-_0x12059e._0x51647e,-_0x12059e._0x553eef)]??_0x580616(-0x268,-_0x12059e._0x503d47,-_0x12059e._0x418fda,-0x205),'toolCallPath':[..._0x450c51?.['toolCallPath']??[]]};}function makeExtensionContext(_0x5781ee,_0x38b8c5){const _0x32c047={_0xf3b6af:0x365,_0x170f7e:0x3b5};function _0x39b95a(_0x6155,_0xb98897,_0x1b4804,_0x36db97){return _0x417469(_0x1b4804-0x1da,_0xb98897-0xd7,_0x36db97,_0x36db97-0x1d3);}return{'state':_0x5781ee,'delivery':_0x39b95a(0x42b,_0x32c047._0xf3b6af,_0x32c047._0x170f7e,0x335),'executionScope':_0x38b8c5};}async function runStage(_0x515dc7,_0x2ce7e4,_0x41fcf4,_0x4d23c8){const _0xa76e5a={_0x16567f:0x72,_0x5edbc0:0xb6,_0x1f2cca:0xd},_0x2992b7={_0x1c6e59:0x1b6},_0x545946={_0x404707:0x130},_0x39b73c=await _0x515dc7[_0x203c3b(-_0xa76e5a._0x16567f,-0xb2,-_0xa76e5a._0x5edbc0,-0x5a)](_0x2ce7e4,_0x41fcf4,_0x4d23c8);function _0x26971a(_0x4cb97a,_0x5ce789,_0x3856f7,_0x175069){return _0x417469(_0x3856f7- -_0x545946._0x404707,_0x5ce789-0x83,_0x175069,_0x175069-0xc6);}await _0x515dc7[_0x203c3b(-0x17,0x2e,-_0xa76e5a._0x1f2cca,-0x32)](_0x2ce7e4,_0x39b73c,_0x4d23c8);function _0x203c3b(_0x1ef758,_0x1493ec,_0x14420b,_0x1cd2f4){return _0x417469(_0x1cd2f4- -0x1fd,_0x1493ec-0x16e,_0x14420b,_0x1cd2f4-_0x2992b7._0x1c6e59);}return _0x39b73c;}async function emitEvent2(_0x41fbec,_0x2debc2,_0x5bfa91){await _0x41fbec?.(_0x2debc2,_0x5bfa91);}function replaceToolUseBlocks(_0x547233,_0xc8dc84){const _0x29e103={_0x301072:0x3da,_0x3fee9e:0x407},_0x26b452={_0x3c6bbf:0x3c8,_0x4692f4:0x367,_0x36f0a2:0x401},_0x9df045={_0x53870f:0x115,_0x189329:0x1a9},_0x5c7102={_0x42fad6:0x1a0,_0x7c5ff1:0xf5};let _0x52fbed=0x0;function _0x555fe1(_0x11410c,_0x179c1d,_0x5b2246,_0x2f7f23){return _0x417469(_0x179c1d-_0x5c7102._0x42fad6,_0x179c1d-0x195,_0x5b2246,_0x2f7f23-_0x5c7102._0x7c5ff1);}return{..._0x547233,'content':_0x547233['content'][_0x555fe1(_0x29e103._0x301072,_0x29e103._0x3fee9e,0x3eb,0x3a1)](_0x19a0cb=>{const _0x1a1060={_0xf7e1ca:0x2b,_0x104bb8:0x110};function _0x1cb57d(_0x215fdc,_0x1325d2,_0x30fd83,_0x54949b){return _0x555fe1(_0x215fdc-0xff,_0x215fdc-_0x9df045._0x53870f,_0x1325d2,_0x54949b-_0x9df045._0x189329);}if(_0x19a0cb[_0x1da7c1(_0x26b452._0x3c6bbf,_0x26b452._0x4692f4,0x380,0x344)]!==_0x1da7c1(0x44f,_0x26b452._0x36f0a2,0x3fe,0x435))return _0x19a0cb;const _0x384e43=_0xc8dc84[_0x52fbed];_0x52fbed+=0x1;function _0x1da7c1(_0x33d3ed,_0x3f18d3,_0x51de31,_0x22cc06){return _0x555fe1(_0x33d3ed-_0x1a1060._0xf7e1ca,_0x33d3ed-0x5b,_0x22cc06,_0x22cc06-_0x1a1060._0x104bb8);}return structuredClone(_0x384e43);})};}function createAssistantMessageId(_0x3377f5,_0x42eddb){const _0x2b986c={_0x24949f:0x20,_0x58a1e8:0x7a},_0x56181d={_0x4f8e37:0x115,_0x3d6779:0x22b,_0x260425:0x138};function _0x54bd80(_0x548067,_0x5601aa,_0x28c248,_0x1cb718){return _0x5c6b7a(_0x548067-_0x56181d._0x4f8e37,_0x5601aa- -_0x56181d._0x3d6779,_0x1cb718,_0x1cb718-_0x56181d._0x260425);}return _0x3377f5+_0x54bd80(-_0x2b986c._0x24949f,-0x90,-0x9e,-_0x2b986c._0x58a1e8)+_0x42eddb;}function createReasoningMessageId(_0x4f0fdd){const _0x95fae4={_0x381bb9:0x226},_0x5af582={_0x2444e7:0x57,_0x319a43:0x191};function _0x4acd31(_0x2e4615,_0x113948,_0x433e8b,_0x2b057b){return _0x417469(_0x113948- -0x382,_0x113948-_0x5af582._0x2444e7,_0x2b057b,_0x2b057b-_0x5af582._0x319a43);}return _0x4f0fdd+_0x4acd31(-0x192,-0x1e8,-0x208,-_0x95fae4._0x381bb9);}function withMessageId(_0x171831,_0x315ed7){if(_0x171831['id']===_0x315ed7)return _0x171831;return{..._0x171831,'id':_0x315ed7};}function createAssistantChunkEvent(_0x3fc434,_0x1e26ee){const _0x22f858={_0x44d0d4:0x170,_0x429c6d:0x14e,_0x507c31:0x143,_0x1f4b64:0x1b9,_0x11aad2:0x1b7,_0x8b05fa:0x124,_0x5436d2:0x103,_0x823599:0x17f,_0xe8e9f5:0x17c,_0xb8f21e:0x110,_0x2f406d:0x172,_0x20e170:0x219,_0x52d5b7:0x12e,_0x1af735:0x10b},_0x5973ed={_0x1d3de2:0xdc,_0x5b1a1e:0x4d},_0x478cf3={_0x226cff:0x179,_0x546db2:0x39};if(_0x3fc434[_0xb23935(0xf1,0xcc,_0x22f858._0x44d0d4,_0x22f858._0x429c6d)]!==_0xb23935(_0x22f858._0x507c31,_0x22f858._0x1f4b64,_0x22f858._0x11aad2,_0x22f858._0x8b05fa))return void 0x0;function _0x2640d4(_0x229c8b,_0x1b745e,_0x129600,_0x204def){return _0x5c6b7a(_0x229c8b-_0x478cf3._0x226cff,_0x204def- -0x56,_0x229c8b,_0x204def-_0x478cf3._0x546db2);}if(_0x3fc434[_0x2640d4(0x133,0x12a,_0x22f858._0x5436d2,_0x22f858._0x823599)]===void 0x0)return void 0x0;function _0xb23935(_0x18a68b,_0x2a9d59,_0xbf5e78,_0xd0414e){return _0x417469(_0x18a68b- -_0x5973ed._0x1d3de2,_0x2a9d59-_0x5973ed._0x5b1a1e,_0xd0414e,_0xd0414e-0x1b1);}return{'type':_0xb23935(0x15f,_0x22f858._0xe8e9f5,0x1a7,0x1bf),'index':_0x3fc434[_0xb23935(_0x22f858._0xb8f21e,0x189,_0x22f858._0x2f406d,0x118)]??0x0,'messageId':_0x1e26ee,'chunk':{'type':_0x2640d4(_0x22f858._0x20e170,0x175,0x13f,0x1b5),'index':_0x3fc434[_0xb23935(0x110,0xd1,0x101,0xf1)]??0x0,'text':_0x3fc434[_0x2640d4(_0x22f858._0x52d5b7,0xf9,_0x22f858._0x1af735,_0x22f858._0x823599)]}};}function _0x2591(){const _0x1563f1=['Aw5JBhvKzxm','Dgv4Da','oIbLEhbLy3rLzcbUDw1Izxi','iIbPCYbHBhjLywr5igvUywjSzwq','Aw5KzxG','Dg9VBf9JywXS','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','y2f1C2u','Dg9VBenHBgW','CMvHC29UAw5Nx21LC3nHz2u','BM93','Dg90ywXpDxrWDxruB2TLBNm','DhvYBKLUzgv4','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','B3jPz2LU','C2vZC2LVBI0','CMvJB3jKrxzLBNq','oIbLEhbLy3rLzcbVyMPLy3q','x3n5C3rLBvbYB21WDa','mtG5odaXnNLLEgvNEG','ywX3yxLZlwnVBMzPCM0','CMvWB3j0zwrdB3n0','zgvSzxrL','C3LZDgvT','BgvUz3rO','Aw5WDxrty2HLBwe','ywjVCNq','C3LZDgvTuhjVBxb0','zhjHAw5qzxjZAxn0zw5Jzq','ChjPy2LUz1bYB3zPzgvYswq','zg9Uzq','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','mJuXmtyZmfD0sxvRAG','mJq3mtmYEg9zDfPe','CMvZDwX0','yxnZAxn0yw50twvZC2fNzuLK','C2LNBMfS','y29UDgv4DfDPBMrVD0XPBwL0','DMfSDwu','C3rHDhvZ','C29Tzq','y2H1BMS','BgLZDfrVB2Xty2HLBwfZ','AxnbCNjHEq','ChjVz3jHBs1YzxnVDxjJzs1SAw1PDa','zw5HyMXLza','CMvZzxrnzxnZywDLCW','ywz0zxjnzxnZywDLqxbWzw5K','Dg9VBf91C2vFy2H1BMS','y29TCgXLDgvZuMvXDwvZDa','zxHLy3v0zq','Dg9VBenHBgXqyxrO','AM9PBG','CMvHC29UAw5Nu3rHCNrLzef0','mJm3ody1nuntv0jtwG','y29UDgvUDf9KzwX0yq','oIbLEhbLy3rLzcbVBMuGB2yG','DxnLCL9TzxnZywDL','ChjVz3jHBs1PBNrLCM1LzgLHDgu','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','C2vZC2LVBKLK','Dg90ywXuB2TLBNm','BwvZC2fNzq','C29YDa','C3rYzwfT','DgHPBMTPBMC','Bwv0ywrHDge','zgvZy3jPChrPB24','C2XPy2u','CMvHC29UAw5Nq29TCgXLDgvKqxq','DhvYBI0','Dg9VBf9Yzxn1Bhq','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','CMfUzg9T','CMvHC29UAw5Nvg9Rzw5Z','ywz0zxjnB2rLBfjLC3bVBNnL','CMvNAxn0zxi','zMfPBa','Dg9VBhm','CMvXDwvZDgvKtMfTzq','CMvXDwLYzwq','DhvYBLn0yxj0zwrbDa','Dg9VBf9YzwPLy3rLza','yxnZAxn0yw50x2nODw5R','A2v5CW','CMvHC29U','C2v0vg9VBhm','nxfeDfjKwq','C3rYDwn0DxjLza','zMLUza','DMfSDwvZ','C2L6zq','AgfZt3DU','zMLSDgvY','CMvJB3jKvg9VBenHBgW','DgvYBwLUywW','Dg9VBf9JB21WBgv0zwq','z2v0vg9VBhm','Dg9VBf9VDxrWDxrFy2H1BMS','sw52ywXPzcb0B29SigLUChv0igf0ia','Dg9VBenHBgXjza','ywn0Aw9U','mujNsw9cEq','CMvHza','CMvZB2X2zq','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','ChvZAa','DhvYBKLK','Dg9VBf91C2u','ywjVCNrLza','tMvZDgvKihrVB2WGy2fSBcbHBMqGzgvMAw5PDgLVBIbUyw1LCYbTDxn0ig1HDgnOihrOzsbYzxf1zxn0zwqGBMfTzq','Aw5WDxruB2TLBNm','mty1otu1mNDqs2T1yG','B25uB29Sq2fSBa','Dg9tDhjPBMC','oIb1BMv4CgvJDgvKigzPzwXKici','ChjVz3jHBsbLEgvJDxrPB24GD2fZigfIB3j0zwq','zxHLy3v0Aw9Uu2nVCgu','C2vUza','y29TCgXLDgvK','DxnHz2u','y29TBwL0vgvYBwLUywXtDgf0zq','DhjHBNnMB3jTzxi','C3rYAw5NAwz5','Bw9KzwXFCMvXDwvZDa','CMvTB3zLrxzLBNrmAxn0zw5LCG','zw50CMLLCW','BwfW','ywrTAxq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','Dg9VBfj1BNrPBwu','zgvSDge','y2fWywjPBgL0AwvZ','vg9VBcbYDw50Aw1Ligv2zw50ihb1yMXPy2f0Aw9UigzHAwXLza','BMfTzq','BwLZC2LUz01VzgvSq2fSBenVDw50','ChjVDMLKzxi','Aw5WDxrezwX0yq','B25fDMvUDa','y29VCMrPBMf0B3i','ywrKrxzLBNrmAxn0zw5LCG','AxrLBxm','ywXS','zgvMyxvSDe1LC3nHz2u','Dg90ywXdB3n0vxnKvgLJA3m','AxnuzxjTAw5HBfn0yxrLq29TBwL0DgvK','C2v0u3LZDgvTuhjVBxb0','oIbLEhbLy3rLzcbHCNjHEq','ywXSu2v0DgXLza','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','Dg9VBf91C2vFBwvZC2fNzq','C3rYAw5N','ugfYzw50ihrVB2WGzxHLy3v0Aw9UihnLDhrSzwq','mte4otq0nMTpsNHtta','D3jPDgu','B3v0Chv0rM9YBwf0','ChjVDMLKzxjtDgf0zq','B3v0Chv0','iIbMB3iG','zgvWCW','zxjYB3i','vw5RBM93BIb0B29SoIa','DhvYBL9JB21WBgv0zq','C2vZC2LVBKrPCG','C2vUzgvYqwDLBNrjza','yMvMB3jLqxnZAxn0yw50qxbWzw5K','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','A2LUza','ywz0zxjuDxjUq29TCgXLDgu','Bw9KzwXuAw1Ltxm','Bwf4','yw1VDw50vxnKvgLJA3m','CMvWB3j0zwrdB3n0q2fSBenVDw50','C2vXDwvUy2u','B2jZzxj2zxi','yw55t2y','Dg9VBenHBgXdB3vUDa','oIbLEhbLy3rLzcbIB29SzwfU','Dg9VBf91C2vFzgvSDge','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','Bwv0yq','Dg9VBa','CMvZCg9UC2u','ywrK','Dg90ywXnB2rLBfrPBwvnCW','nhfYt3zNvG','AxrLBuLK','y2f0y2G','DgHLBG','Dg9VBhncEu5HBwu','oNjLyxnVBMLUzW','yxnZAxn0yw50','CMvHC29UAw5Nx2nODw5R','y2HHDe1VzgvS','y29UDgvUDa','yMvNAw5qCM9NCMfTvhjHy2u','Bw9KzwXFCMvZCg9UC2u','uhjVz3jHBq','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','CNvUvhjHBNnMB3jTzxjZ','C3vIBwLZC2LVBG','BNvTyMvY','y2fSBeLK','Bw9KzwXdywXSq291BNq','zxHLy3v0zunHBgXZ','Dg9VBe5HBwu','C3rHDgu','Bw9KzwXdywXSCW','C3rYzwfTAw5N','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','BMv4Da','oMfZC2LZDgfUDdO','ChjVz3jHBs10Aw1LB3v0','Bwf4vg9Rzw5Z','mtaZotu1nMLys1bovq','CNvU','zMLUywXFBwvZC2fNzq','Aw5WDxq','B3jKzxi','ChjVz3jHBs1HyM9YDgvK','C3vTBwfYEuLUzgv4','ywz0zxjuB29SuMvZDwX0','y29UDgvUDeLUzgv4','y2XVC2u','Bwv0CMLJCW','yMvMB3jLtw9KzwXszxf1zxn0','BgLZDa','zhjHAw5tDgvLCMLUzW','ywDLBNrjza','CMvHC29UAw5NtwvZC2fNzuLK','B2jQzwn0','z2v0','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','Dw5RBM93BL90B29S','Bw9KzwXjzgvUDgL0Eq','yxnZAxn0yw50x21LC3nHz2u','CMvNAxn0CNK','ywDLBNq','CMvQzwn0','CNvUt2jZzxj2zxjZ','ywrKAxrPB25HBfbYB3bLCNrPzxm','DhLWzq','Dg9VBf9ZDgfYDgvK','tMvZDgvKihrVB2WGy2fSBcbZzxf1zw5Jzsa','zw51Bq','Dg90ywXjBNb1DfrVA2vUCW','C2v0vg9WAwm','C2v0','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','z2v0q29UDgv4DfDPBMrVD0XPBwL0','yxnRvxnLCG','C2v0q2HHDe1VzgvS','tMvZDgvKigjLzM9YzvrVB2XfEgvJDxrPB24GzxH0zw5ZAw9UCYbTDxn0ihbYzxnLCNzLihrOzsbJywXSieLeigfUzcbYzxf1zxn0zwqGBMfTzq','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','CMvXDwvZDenVDw50','Bw9KzwW','vg9VBfj1BNrPBwvjBMzYyxn0CNvJDhvYzuvYCM9Y','CMv0DxjU','B25vC2vYtwvZC2fNzq','DhjHy2u','yMvMB3jLvg9VBev4zwn1DgLVBG','DhvYBKnVBxbSzxrLzef0','B3v0Chv0sw5KzxG','ChjVCgvYDgLLCW','DxnLCG','C3rHz2u','zNjLzxPL','BwvZC2fNzxm'];_0x2591=function(){return _0x1563f1;};return _0x2591();}function createToolUseChunkEvent(_0x22bcb4,_0x1cdb78){const _0x5a1179={_0x5c2a8c:0x4df,_0x400da7:0x49c,_0x5e6826:0x179,_0x510197:0x1bd,_0x21ef2b:0x197,_0x57d88a:0x1c1,_0x399878:0x12c,_0x4904ae:0x15f,_0xce550c:0xf6,_0x2695e0:0x1a2,_0x1e8cc5:0x580,_0x19c57b:0x54b,_0x1997b4:0x5d5,_0x1def9e:0x591,_0x153688:0x5bb,_0x39d750:0x520,_0x542d08:0x583,_0x4af3a1:0x577,_0x1ffaf7:0x5fb},_0x4e92e8={_0x4e62e3:0x0,_0x3148ea:0x337,_0x2ca1d0:0x9c},_0x1946fc={_0x128530:0x312,_0x27804d:0x190,_0x5828ce:0x1a0};if(_0x22bcb4[_0x3ab37c(_0x5a1179._0x5c2a8c,_0x5a1179._0x400da7,0x4cd,0x4b1)]!==_0x1db7f8(-0x176,-_0x5a1179._0x5e6826,-_0x5a1179._0x510197,-0x18a))return void 0x0;function _0x3ab37c(_0x38d820,_0x520fe9,_0xb7f7e1,_0x7995f6){return _0x417469(_0x38d820-_0x1946fc._0x128530,_0x520fe9-_0x1946fc._0x27804d,_0x520fe9,_0x7995f6-_0x1946fc._0x5828ce);}function _0x1db7f8(_0x4389e9,_0x254674,_0x410030,_0x5a7b74){return _0x5c6b7a(_0x4389e9-_0x4e92e8._0x4e62e3,_0x410030- -_0x4e92e8._0x3148ea,_0x254674,_0x5a7b74-_0x4e92e8._0x2ca1d0);}return{'type':_0x1db7f8(-_0x5a1179._0x21ef2b,-0x1b4,-0x133,-0x1a6),'index':_0x22bcb4[_0x1db7f8(-_0x5a1179._0x57d88a,-_0x5a1179._0x399878,-_0x5a1179._0x4904ae,-_0x5a1179._0xce550c)]??0x0,'messageId':_0x1cdb78,'chunk':{'type':_0x1db7f8(-_0x5a1179._0x2695e0,-0x21a,-0x1bd,-0x1a7),'id':_0x22bcb4['id']??'','index':_0x22bcb4[_0x3ab37c(0x4fe,0x573,0x57a,0x559)]??0x0,..._0x22bcb4[_0x3ab37c(_0x5a1179._0x1e8cc5,_0x5a1179._0x19c57b,_0x5a1179._0x1997b4,_0x5a1179._0x1def9e)]!==void 0x0?{'name':_0x22bcb4[_0x3ab37c(0x580,0x560,_0x5a1179._0x153688,0x56b)]}:{},..._0x22bcb4[_0x3ab37c(0x583,0x5e2,0x53c,_0x5a1179._0x39d750)]!==void 0x0?{'inputDelta':_0x22bcb4[_0x3ab37c(_0x5a1179._0x542d08,0x571,_0x5a1179._0x4af3a1,_0x5a1179._0x1ffaf7)]}:{}}};}function createReasoningChunkEvent(_0xc08c47,_0x7ad774){const _0x37b82b={_0x4083a4:0x255,_0x55a963:0x2b7,_0x448ce1:0x174,_0x2c1b25:0x147,_0x124c7c:0x23a,_0x40f87b:0x153,_0x593bac:0x1cf,_0x53e051:0x1a3,_0x232c9c:0x10c,_0x5d092d:0x276,_0x5d71a1:0x281,_0x5793e4:0x2b0,_0x921e2a:0x152,_0x26a9bb:0x176,_0x493bee:0x2b3,_0x5a5a3d:0x2a1,_0x34addf:0x24b,_0x1bca00:0x21d,_0x4e4742:0x1cf,_0x414cb5:0x178,_0x2156b6:0x22b,_0x11f1dd:0xaf,_0x1e8d6a:0x1cd,_0x43749c:0x1e3,_0xdc5289:0x105,_0x35af2a:0x14f,_0x5b8960:0x105,_0x207243:0x10a,_0x5ec641:0xd3,_0x473a5b:0x79,_0x524dd5:0x201,_0x430d44:0x1c3,_0x4c57cb:0x2f5,_0x51dbfb:0x318,_0x28ef8e:0x2f2,_0x28b7d0:0x1e8,_0x20f73a:0x248,_0x1dbb7e:0x23d,_0x45e57b:0x284},_0x27d163={_0x49df28:0x145},_0x49245={_0x10dc31:0x8a,_0x4e61e1:0xc4};function _0x2b45cc(_0x26e902,_0x7b2fd4,_0x33606a,_0x573538){return _0x417469(_0x26e902-_0x49245._0x10dc31,_0x7b2fd4-0x37,_0x7b2fd4,_0x573538-_0x49245._0x4e61e1);}function _0x59cebd(_0x3863f7,_0x581c40,_0xed6b8,_0x459beb){return _0x5c6b7a(_0x3863f7-_0x27d163._0x49df28,_0x581c40- -0x34f,_0x3863f7,_0x459beb-0x82);}switch(_0xc08c47[_0x2b45cc(0x257,_0x37b82b._0x4083a4,0x2b3,_0x37b82b._0x55a963)]){case _0x59cebd(-0x1ba,-0x15c,-_0x37b82b._0x448ce1,-_0x37b82b._0x2c1b25):return{'type':_0x59cebd(-_0x37b82b._0x124c7c,-0x1c7,-_0x37b82b._0x40f87b,-_0x37b82b._0x593bac),'index':_0xc08c47[_0x59cebd(-0x170,-0x177,-0x13f,-_0x37b82b._0x53e051)],'messageId':_0x7ad774,'chunk':{'type':_0x59cebd(-_0x37b82b._0x232c9c,-0x15c,-0x1b2,-0x135),'index':_0xc08c47[_0x2b45cc(_0x37b82b._0x5d092d,0x2e8,_0x37b82b._0x5d71a1,_0x37b82b._0x5793e4)]??0x0,'thinking':_0xc08c47[_0x59cebd(-_0x37b82b._0x921e2a,-0x13a,-_0x37b82b._0x26a9bb,-0x145)]??''},'text':_0xc08c47[_0x2b45cc(_0x37b82b._0x493bee,0x2f5,_0x37b82b._0x5a5a3d,0x2e0)]??''};case _0x59cebd(-0x1ac,-0x133,-0x18d,-0x1b7):return{'type':_0x2b45cc(0x226,_0x37b82b._0x34addf,_0x37b82b._0x1bca00,_0x37b82b._0x4e4742),'index':_0xc08c47[_0x59cebd(-0x163,-0x1a9,-_0x37b82b._0x414cb5,-_0x37b82b._0x2156b6)],'messageId':_0x7ad774,'chunk':{'type':'openai_reasoning_delta','contentIndex':_0xc08c47['contentIndex']??0x0,'delta':_0xc08c47[_0x59cebd(-0x99,-0xf8,-_0x37b82b._0x11f1dd,-0x7b)]??'','itemId':_0xc08c47[_0x59cebd(-0x1fa,-_0x37b82b._0x1e8d6a,-0x162,-_0x37b82b._0x43749c)]??'','outputIndex':_0xc08c47['outputIndex']??0x0},'text':_0xc08c47[_0x59cebd(-_0x37b82b._0xdc5289,-0xf8,-_0x37b82b._0x35af2a,-_0x37b82b._0x5b8960)]??''};case _0x59cebd(-_0x37b82b._0x207243,-0xfa,-_0x37b82b._0x5ec641,-_0x37b82b._0x473a5b):return{'type':_0x2b45cc(0x226,0x2ac,_0x37b82b._0x524dd5,_0x37b82b._0x430d44),'index':_0xc08c47['summaryIndex'],'messageId':_0x7ad774,'chunk':{'type':'openai_reasoning_summary_delta','delta':_0xc08c47[_0x2b45cc(_0x37b82b._0x4c57cb,_0x37b82b._0x51dbfb,0x2ce,_0x37b82b._0x28ef8e)]??'','itemId':_0xc08c47['itemId']??'','outputIndex':_0xc08c47[_0x2b45cc(0x26c,_0x37b82b._0x28b7d0,0x291,_0x37b82b._0x20f73a)]??0x0,'summaryIndex':_0xc08c47[_0x2b45cc(0x242,0x2a4,_0x37b82b._0x1dbb7e,_0x37b82b._0x45e57b)]??0x0},'text':_0xc08c47['delta']??''};default:return void 0x0;}}function cloneToolResultChunkForPublication2(_0x13548d){return structuredClone(_0x13548d);}function _0x5c6b7a(_0x2ff515,_0x376fd5,_0x18de14,_0x250a02){const _0x377124={_0x3c4533:0x83};return _0x9ad4(_0x376fd5-_0x377124._0x3c4533,_0x18de14);}function _0x417469(_0x4a3615,_0x3ef77c,_0x583a44,_0x18f536){return _0x9ad4(_0x4a3615-0x97,_0x583a44);}function cloneToolResultForPublication2(_0xfeb53){const _0x3c466c={_0x4c6545:0x181,_0x24ed7e:0x1ca,_0x313b54:0xd2,_0x2f6745:0xa3,_0x50134c:0xc9,_0x5ab7c7:0xc0},_0x6034d9={_0x39f918:0x1a1,_0x4e2608:0x313,_0x1ff50d:0xa8},_0x41bfbb={_0x4e4264:0x10d,_0x4b14c7:0x1ed};function _0x82203d(_0x3f4ef5,_0x462d66,_0x5be9a7,_0x498b3c){return _0x5c6b7a(_0x3f4ef5-_0x41bfbb._0x4e4264,_0x498b3c- -0xa7,_0x3f4ef5,_0x498b3c-_0x41bfbb._0x4b14c7);}const _0x53aaca=_0xfeb53[_0x2efdf8(-0x122,-0x1ae,-_0x3c466c._0x4c6545,-_0x3c466c._0x24ed7e)],_0x5221ef=_0xfeb53[_0x82203d(_0x3c466c._0x313b54,0xb0,0x145,0xee)];function _0x2efdf8(_0x630960,_0x147762,_0xb8803a,_0x377ea1){return _0x5c6b7a(_0x630960-_0x6034d9._0x39f918,_0xb8803a- -_0x6034d9._0x4e2608,_0x630960,_0x377ea1-_0x6034d9._0x1ff50d);}const {chunks:_0x32acb2,..._0x22db44}=_0xfeb53;return{...structuredClone(_0x22db44),'callId':_0x53aaca,'toolName':_0x5221ef,'chunks':_0x32acb2[_0x2efdf8(-_0x3c466c._0x2f6745,-_0x3c466c._0x50134c,-_0x3c466c._0x5ab7c7,-0x5e)](cloneToolResultChunkForPublication2)};}function isAbortedToolResult(_0x5342d2){const _0x2be09b={_0x284c2a:0x3b3,_0x558ff0:0x438,_0x188bea:0x303,_0x56d4d4:0x389,_0x56372a:0x393,_0x2657eb:0x253,_0xd9fc78:0x1c0,_0x172750:0x19e,_0x360032:0x1c6},_0x23b301={_0x10fc70:0x1cc,_0x54b7a3:0x179},_0x109687={_0x412dce:0x111,_0x11ef0f:0x54,_0x5afcdd:0x19f};function _0x2dd92b(_0x31db42,_0x570cd9,_0x184932,_0x4d0623){return _0x5c6b7a(_0x31db42-_0x109687._0x412dce,_0x570cd9- -_0x109687._0x11ef0f,_0x184932,_0x4d0623-_0x109687._0x5afcdd);}function _0xabb09a(_0x5f1e78,_0x1bf2ca,_0x4c65fb,_0x4bc8d0){return _0x5c6b7a(_0x5f1e78-0x147,_0x4bc8d0-_0x23b301._0x10fc70,_0x5f1e78,_0x4bc8d0-_0x23b301._0x54b7a3);}return _0x5342d2[_0xabb09a(_0x2be09b._0x284c2a,0x39a,_0x2be09b._0x558ff0,0x3c7)]===_0xabb09a(_0x2be09b._0x188bea,_0x2be09b._0x56d4d4,_0x2be09b._0x56372a,0x334)&&_0x5342d2[_0x2dd92b(_0x2be09b._0x2657eb,0x1d8,0x1ba,0x1ad)][_0x2dd92b(_0x2be09b._0xd9fc78,0x1ed,_0x2be09b._0x172750,_0x2be09b._0x360032)]===!![];}async function executeModelRequest(_0x4f0701,_0x332c35,_0x5b9c0c,_0x439292,_0x9c6116,_0x4a91e8){const _0x5271d2={_0x142f29:0x84,_0x260671:0x124,_0x1ea0c7:0x3a6,_0x28d939:0x405,_0x17ff15:0x427,_0x503377:0x117,_0x1c843c:0x132,_0x214b2c:0x3ee,_0x195c0e:0x431,_0x4e0aea:0x438,_0x1fbbb5:0x3aa,_0x3de0d2:0x459,_0x21508e:0xfb,_0x4290b9:0xc1,_0xa447e0:0x129,_0x218f5b:0x3c7,_0x3b346b:0x447,_0x39ebd1:0x400,_0x562462:0x478,_0x50e7c1:0x3cb,_0x899106:0x417,_0xf2b829:0x401,_0xe96cce:0x49b,_0x41bac6:0x1,_0x2072ae:0x62,_0x2ac822:0x11c,_0x1952e3:0xe8,_0x205bfd:0xe5,_0x5857e5:0x37d,_0x1e0b53:0x342,_0x40b10c:0x497,_0x215c3f:0x48b,_0x38987f:0xaa,_0x11c348:0x7,_0x46f4c3:0x369,_0x14699a:0x414,_0x35931b:0x3bc,_0x4e302d:0x3e8,_0x31a170:0x385,_0x553c4d:0x3ba,_0xfe4119:0x46c,_0x533b47:0x3f0,_0x3bb4d6:0x3ef,_0x1ca2b6:0x42b,_0x44e2fc:0x3c1,_0x3bc74e:0x3f5,_0x1fcef9:0x5d,_0xa90a61:0x3eb,_0x2f8c95:0x38a,_0x51ba82:0x3db,_0x208537:0x384,_0x2ee9e5:0x3e1,_0x3303f1:0x386,_0x45ff8e:0x38d,_0x2c831d:0xfa,_0x1ade42:0x3e3,_0x130c7e:0xd4,_0x301759:0x83,_0x297f58:0x413,_0x82f1f8:0x7f,_0x75c328:0x417,_0x5ca342:0x495,_0x2b137a:0x438,_0x26cb96:0x405,_0x2afe89:0x400,_0xe5879b:0x470,_0x514fab:0x3d7,_0x2ff811:0x477,_0x3df0d3:0x38a,_0x5f11c2:0x482,_0x35a8a8:0x161,_0x127c99:0x156,_0x2e821c:0x143,_0x4d105a:0x46c,_0xc811ef:0x3ce,_0x474ada:0x436},_0xde0ab5={_0x3d5f00:0xaa,_0x2560b7:0xfd},_0x27ea9f={_0x93f17e:0x104};function _0x563c4d(_0x45666e,_0x2ccb96,_0x431ab0,_0x4ddd05){return _0x417469(_0x45666e-0x1fa,_0x2ccb96-_0x27ea9f._0x93f17e,_0x4ddd05,_0x4ddd05-0xff);}function _0x5c2236(_0x547052,_0x1fe51f,_0x4d6c59,_0x340225){return _0x5c6b7a(_0x547052-_0xde0ab5._0x3d5f00,_0x547052- -_0xde0ab5._0x2560b7,_0x1fe51f,_0x340225-0x158);}throwIfAborted(_0x332c35[_0x5c2236(0xfb,0x12f,_0x5271d2._0x142f29,_0x5271d2._0x260671)]);if(!_0x332c35[_0x563c4d(_0x5271d2._0x1ea0c7,_0x5271d2._0x28d939,0x3fd,_0x5271d2._0x17ff15)]||!_0x5b9c0c[_0x5c2236(_0x5271d2._0x503377,_0x5271d2._0x1c843c,0x175,0xb0)])return await _0x5b9c0c['complete'](_0x4f0701,{'signal':_0x332c35[_0x563c4d(0x406,_0x5271d2._0x214b2c,0x399,_0x5271d2._0x195c0e)]});let _0x1dd329;for await(const _0x56de44 of _0x5b9c0c['stream'](_0x4f0701,{'signal':_0x332c35[_0x563c4d(0x406,_0x5271d2._0x4e0aea,_0x5271d2._0x1fbbb5,_0x5271d2._0x3de0d2)]})){throwIfAborted(_0x332c35[_0x5c2236(_0x5271d2._0x21508e,_0x5271d2._0x4290b9,0x181,_0x5271d2._0xa447e0)]);if(_0x56de44[_0x563c4d(_0x5271d2._0x218f5b,0x3f3,_0x5271d2._0x3b346b,0x355)]===_0x563c4d(_0x5271d2._0x39ebd1,_0x5271d2._0x562462,0x403,_0x5271d2._0x50e7c1)){_0x4a91e8['meta'][_0x563c4d(_0x5271d2._0x899106,_0x5271d2._0xf2b829,0x453,_0x5271d2._0xe96cce)]!==void 0x0&&_0x4a91e8[_0x5c2236(0x7f,_0x5271d2._0x41bac6,_0x5271d2._0x2072ae,0x12)][_0x5c2236(_0x5271d2._0x2ac822,_0x5271d2._0x1952e3,0xb1,_0x5271d2._0x205bfd)]===void 0x0&&(_0x4a91e8[_0x563c4d(0x38a,_0x5271d2._0x5857e5,_0x5271d2._0x1e0b53,0x3c5)][_0x563c4d(0x427,_0x5271d2._0x40b10c,_0x5271d2._0x215c3f,0x3e8)]=Date[_0x563c4d(0x3ec,0x422,0x3df,0x36f)]());_0x1dd329=_0x56de44[_0x5c2236(0x81,_0x5271d2._0x38987f,0xda,_0x5271d2._0x11c348)];continue;}if(_0x56de44[_0x563c4d(_0x5271d2._0x218f5b,_0x5271d2._0x46f4c3,_0x5271d2._0x14699a,_0x5271d2._0x35931b)]===_0x563c4d(_0x5271d2._0x4e302d,_0x5271d2._0x31a170,_0x5271d2._0x3b346b,_0x5271d2._0x553c4d)){await emitEvent2(_0x439292[_0x563c4d(_0x5271d2._0xfe4119,_0x5271d2._0x533b47,_0x5271d2._0x3bb4d6,_0x5271d2._0x533b47)],{'type':'provider_stream_reset','assistantMessageId':_0x4a91e8[_0x563c4d(0x405,_0x5271d2._0x1ca2b6,_0x5271d2._0x44e2fc,_0x5271d2._0x3bc74e)],'reasoningMessageId':_0x4a91e8[_0x5c2236(0xb0,0x3a,0x69,_0x5271d2._0x1fcef9)]},_0x9c6116),delete _0x4a91e8[_0x563c4d(0x38a,0x36e,0x3d2,_0x5271d2._0xa90a61)]['reasoningStartedAt'],delete _0x4a91e8[_0x563c4d(_0x5271d2._0x2f8c95,_0x5271d2._0x51ba82,_0x5271d2._0x208537,_0x5271d2._0x2ee9e5)]['reasoningCompletedAt'];continue;}if(_0x56de44[_0x5c2236(0xbc,0x113,0x69,0xf5)]==='provider_retry'){await emitEvent2(_0x439292['onEvent'],{..._0x56de44,'assistantMessageId':_0x4a91e8[_0x563c4d(0x405,_0x5271d2._0x3303f1,_0x5271d2._0x45ff8e,0x3fb)]},_0x9c6116);continue;}const _0x24f3bf=createReasoningChunkEvent(_0x56de44,_0x4a91e8[_0x5c2236(0xb0,0x8b,0xb2,_0x5271d2._0x2c831d)]);if(_0x24f3bf&&_0x24f3bf[_0x5c2236(0xbc,0xbe,0x7d,0x88)]===_0x563c4d(0x396,0x347,0x388,0x3a7)&&_0x24f3bf[_0x563c4d(_0x5271d2._0x1ade42,0x435,0x41c,0x35e)][_0x5c2236(0xef,_0x5271d2._0x130c7e,0x132,_0x5271d2._0x301759)]>0x0){_0x4a91e8['meta'][_0x563c4d(0x417,_0x5271d2._0x3bb4d6,_0x5271d2._0x533b47,_0x5271d2._0x297f58)]===void 0x0&&(_0x4a91e8[_0x5c2236(_0x5271d2._0x82f1f8,0x4,0xb2,-0x6)][_0x563c4d(0x417,_0x5271d2._0x75c328,_0x5271d2._0x5ca342,0x413)]=Date['now']());await emitEvent2(_0x439292[_0x563c4d(_0x5271d2._0xfe4119,0x468,_0x5271d2._0x2b137a,0x431)],_0x24f3bf,_0x9c6116);continue;}const _0x3a7ed5=createAssistantChunkEvent(_0x56de44,_0x4a91e8[_0x563c4d(_0x5271d2._0x26cb96,_0x5271d2._0x2afe89,_0x5271d2._0xe5879b,0x487)]);if(_0x3a7ed5){_0x4a91e8['meta'][_0x563c4d(0x417,0x3fd,_0x5271d2._0x514fab,_0x5271d2._0x2ff811)]!==void 0x0&&_0x4a91e8['meta'][_0x5c2236(0x11c,0x100,0x15a,0xde)]===void 0x0&&(_0x4a91e8[_0x563c4d(_0x5271d2._0x3df0d3,0x375,0x408,0x36e)][_0x563c4d(0x427,0x3fc,0x48c,_0x5271d2._0x5f11c2)]=Date['now']());await emitEvent2(_0x439292[_0x5c2236(_0x5271d2._0x35a8a8,_0x5271d2._0x127c99,0x145,0x123)],_0x3a7ed5,_0x9c6116);continue;}const _0x4ab29f=createToolUseChunkEvent(_0x56de44,_0x4a91e8[_0x5c2236(_0x5271d2._0x2c831d,_0x5271d2._0x2e821c,0x8a,0xbc)]);_0x4ab29f&&await emitEvent2(_0x439292[_0x563c4d(_0x5271d2._0x4d105a,0x45e,0x40d,0x494)],_0x4ab29f,_0x9c6116);}if(!_0x1dd329)throw new Error(_0x563c4d(_0x5271d2._0xc811ef,0x3d3,_0x5271d2._0x474ada,0x3cb));return _0x1dd329;}function makeTurnGuards(_0xbd46ad,_0x3173dc,_0x4e5bca,_0x4e2aa5,_0x1682ce){return{async 'stage'(_0x2478fa,_0x2f5724){return throwIfAborted(_0xbd46ad),await runStage(_0x3173dc,_0x2478fa,_0x2f5724,_0x4e2aa5);},async 'emit'(_0x513090){throwIfAborted(_0xbd46ad),await emitEvent2(_0x4e5bca,_0x513090,_0x1682ce);},async 'stageUnchecked'(_0x15d7d1,_0x526fb6){return await runStage(_0x3173dc,_0x15d7d1,_0x526fb6,_0x4e2aa5);},async 'emitUnchecked'(_0x30c2fa){await emitEvent2(_0x4e5bca,_0x30c2fa,_0x1682ce);}};}async function runTurn(_0x24bef5,_0x457cf2){const _0x770d91={_0x3dc9a2:0x17d,_0x4fae11:0x201,_0x3f0c21:0x199,_0x1980c2:0x25f,_0x273180:0x198,_0x294a78:0x192,_0x3684a3:0x1ce,_0x2c5824:0x449,_0x40b995:0x188,_0x52a534:0x141,_0x5eb79b:0x166,_0x2d817c:0x196,_0x196e87:0x117,_0x1ea779:0x4c2,_0x261a62:0x42e,_0x599626:0x42a,_0x1e40ca:0x43c,_0x3ee0da:0x416,_0x13cba0:0x470,_0x4040e0:0x152,_0x3512ff:0xeb,_0x50fe58:0x3f5,_0x5a033f:0x3f8,_0x4bc000:0x3b5,_0x4a1c84:0x3eb,_0x5a0189:0x3bc,_0x5cce4a:0x2a1,_0x123689:0x21f,_0x1fcb97:0x280,_0x36178:0x1a5,_0x490dc3:0xfa,_0x7c1063:0x3d4,_0x7802cb:0x499,_0x3a4603:0x413,_0x4d699b:0x46e,_0x349666:0x16f,_0x3f0bc3:0x1bf,_0xbca1f9:0x469,_0x169526:0x3be,_0x4dcf66:0x1a8,_0x4a80a6:0x139,_0x32528c:0x11b,_0x4b4ae7:0x13b,_0x32eefc:0x178,_0x44bfce:0x180,_0x1cd8ff:0x1e5,_0x4fc8cd:0x14f,_0x21bd12:0xdf,_0x2b0107:0x4a6,_0x251229:0x4df,_0x55092d:0x490,_0x4199d7:0x23c,_0x2ae1d4:0x38a,_0x40472f:0x394,_0x342cc7:0x403,_0x3dee58:0x254,_0x307c75:0x1ed,_0x4422fd:0x1b0,_0x5f0b94:0x19f,_0x3950b0:0x42d,_0x278909:0x50c,_0x2a4e16:0x524,_0x49d430:0x4a7,_0x2e538b:0x47f,_0x17f07e:0x4bb,_0x59d2a0:0x3de,_0x43024a:0x494,_0x1ea5b9:0x4d3,_0xf6e5ff:0x474,_0x34b003:0x16b,_0x2d9726:0x3ec,_0x44ef0c:0x442,_0x5b6534:0x342,_0xbe37a4:0x343,_0x532140:0x38e,_0x3da232:0x3b4,_0x3026d5:0x27a,_0x41a8cd:0x3e1,_0x184739:0x3fa,_0x1204cc:0x42f,_0x174ba8:0x4b7,_0x1336f9:0x467,_0x1f025c:0x43a,_0x1ff9bf:0x40d,_0x15e77f:0x4e4,_0x2778aa:0x4a1,_0xf2b61:0x1ac,_0x4da5dc:0x20b,_0x5852de:0x165,_0x5ed559:0x1e4,_0x25c946:0x1b2,_0x10338c:0x17d,_0x433f54:0x18f,_0x28de34:0x17c,_0x4d41b1:0x1df,_0x648f8a:0x39e,_0x24dd8c:0x426,_0x165278:0x42f,_0x5d9ce1:0x3b5,_0x3e5dde:0x25c,_0x952c37:0x226,_0x37d302:0x1d4,_0x8cf5a5:0x22d,_0x8fc868:0x218,_0x396a46:0x1e4,_0x184dbf:0x13e,_0x1b95d7:0x107,_0x20b66e:0x1ef,_0x189118:0x21d,_0x419c5d:0x182,_0x388789:0x100,_0x11a7e6:0x16f,_0x3e448e:0x428,_0x586027:0x43d,_0x45bd2d:0x1ec,_0x3f4339:0x1ad,_0x46312e:0x19b,_0x5f4635:0x1ac,_0x4a18b4:0x22c,_0xf88bf2:0x2af,_0x4744d6:0x464,_0xa30f5a:0x424,_0x57d1d4:0x405,_0x11c9c7:0x1b1,_0x1785a8:0x209,_0x47976d:0x1d9,_0x3eae30:0x1b7,_0x4ff986:0x1a2,_0xd7cabe:0x208,_0x31393e:0x145,_0x2681b3:0x195,_0x508646:0x161,_0x271078:0x14c,_0x138f82:0x3a6,_0x290b93:0x3d3,_0x44aa09:0x1be,_0x52b3f9:0x1d3,_0x9a7dc5:0x344,_0x46aa5d:0x347,_0x245ec4:0x38d,_0x3fcf2d:0x3bb,_0x2b2d2e:0x46f,_0x4ef47d:0x4e0,_0x4c0504:0x3d6,_0x4790a1:0x3e9,_0x1be405:0x3e5,_0x5a9b17:0x40c,_0x216dec:0x4ab,_0x20d864:0x44d,_0x5b888e:0x48f,_0x50ea25:0x1e3,_0x36cc55:0x116,_0x3e5efe:0x1f1,_0x23b64f:0x273,_0x3999bc:0x1e7,_0x44d423:0x1ba,_0xb83054:0x1b9,_0x4c91c6:0x4be,_0x559c7e:0x4c7,_0x257cd3:0x4a3,_0x151465:0x48f,_0x286ec7:0x40d},_0x20b405={_0x2dcd1f:0x2bb,_0x2ab5f7:0x2df,_0x42645a:0x290,_0x24b9cb:0x105,_0x597906:0xa9,_0x41efdb:0xad,_0x1f72d1:0x254,_0x44ad33:0x236,_0x2e4ce2:0x2d0,_0x122b47:0x22f,_0x12bf3b:0x1a8,_0x21cf01:0x10b,_0x2360e1:0xe4},_0x53f431={_0x4a4ce6:0x139},_0x4dda69={_0xbf8199:0x196,_0x25b0e0:0xb6},_0x22bf76={_0x3fa706:0xc7,_0x1a149c:0xdb,_0x12f360:0x2d0,_0x3c3067:0xf,_0x476ac9:0x1d,_0x2765e2:0x2df,_0x4a7276:0x32d,_0x12eae7:0x2c0},_0x59e02d={_0x2fa704:0x2e},_0x128334={_0x52cd74:0x21f,_0x366c75:0x299,_0xba544:0x25d,_0x54f3e1:0x1f1,_0x390343:0x25a,_0x2a8a8e:0x259,_0x4d9210:0x1a1},_0x5952c7={_0x2450c6:0x156},_0x304253={_0x579c9e:0x168,_0x5bf43a:0x38a};function _0x4eb9eb(_0x2ee3c1,_0x3c0284,_0x43c72b,_0x4e5d6b){return _0x5c6b7a(_0x2ee3c1-_0x304253._0x579c9e,_0x3c0284- -_0x304253._0x5bf43a,_0x4e5d6b,_0x4e5d6b-0x33);}const _0x5d879f=_0x457cf2[_0x4eb9eb(-_0x770d91._0x3dc9a2,-_0x770d91._0x4fae11,-_0x770d91._0x3f0c21,-_0x770d91._0x1980c2)];function _0x2cbd08(_0x2b6fc7,_0x5aacb4,_0x201354,_0x2a8411){return _0x417469(_0x2a8411-0x23d,_0x5aacb4-0x8c,_0x201354,_0x2a8411-_0x5952c7._0x2450c6);}const _0x3bdbc9=_0x24bef5[_0x4eb9eb(-_0x770d91._0x273180,-_0x770d91._0x294a78,-0x1c5,-_0x770d91._0x3684a3)]??new AbortController()[_0x2cbd08(0x46d,0x4b4,0x4ab,_0x770d91._0x2c5824)],_0xeb6edb=normalizeExecutionScope(_0x457cf2[_0x4eb9eb(-_0x770d91._0x40b995,-_0x770d91._0x52a534,-_0x770d91._0x5eb79b,-_0x770d91._0x2d817c)]),_0x3a8d43={'sessionId':_0x24bef5['sessionId'],'turnId':_0x24bef5[_0x4eb9eb(-_0x770d91._0x196e87,-0x14b,-0x16d,-0x1c9)],'system':normalizeSystem(_0x24bef5[_0x2cbd08(_0x770d91._0x1ea779,_0x770d91._0x261a62,_0x770d91._0x599626,_0x770d91._0x1e40ca)]),'messages':(_0x24bef5[_0x2cbd08(_0x770d91._0x3ee0da,_0x770d91._0x13cba0,0x467,0x424)]??[])[_0x4eb9eb(-0x11d,-0x137,-_0x770d91._0x4040e0,-_0x770d91._0x3512ff)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x457cf2[_0x2cbd08(_0x770d91._0x50fe58,_0x770d91._0x5a033f,0x3bd,0x3bc)]==='function'?_0x457cf2[_0x2cbd08(_0x770d91._0x4bc000,0x413,_0x770d91._0x4a1c84,_0x770d91._0x5a0189)]():_0x457cf2[_0x4eb9eb(-_0x770d91._0x5cce4a,-_0x770d91._0x123689,-0x1a1,-_0x770d91._0x1fcb97)]},_0x1f5dbf=makeExtensionContext(_0x3a8d43,_0xeb6edb),_0x519fed={'sessionId':_0x3a8d43[_0x4eb9eb(-0x1a1,-0x17a,-0x1ee,-_0x770d91._0x36178)],'turnId':_0x3a8d43[_0x4eb9eb(-_0x770d91._0x490dc3,-0x14b,-0x1af,-0x13b)],'state':_0x3a8d43,'executionScope':_0xeb6edb,'signal':_0x3bdbc9,..._0x457cf2[_0x4eb9eb(-0x1f7,-0x1c8,-0x1c3,-0x20e)]?{'askUser':_0x457cf2[_0x2cbd08(0x3b1,_0x770d91._0x7c1063,_0x770d91._0x7802cb,_0x770d91._0x3a4603)]}:{},..._0x457cf2[_0x2cbd08(_0x770d91._0x4d699b,0x41c,0x40c,0x40f)]?{'setTopic':_0x457cf2[_0x4eb9eb(-_0x770d91._0x349666,-0x1cc,-_0x770d91._0x3f0bc3,-0x16f)]}:{}},{stage:_0x4a78c4,emit:_0x4e0642,stageUnchecked:_0xe10a17,emitUnchecked:_0x4ed68a}=makeTurnGuards(_0x3bdbc9,_0x457cf2[_0x2cbd08(_0x770d91._0xbca1f9,_0x770d91._0x5a0189,_0x770d91._0x169526,0x405)],_0x457cf2[_0x4eb9eb(-_0x770d91._0x4dcf66,-0x12c,-_0x770d91._0x4a80a6,-_0x770d91._0x32528c)],_0x1f5dbf,_0x519fed),_0x5c15c2=async(_0x4253b5,_0x1af210)=>{const _0x54d67e={_0xd6a81f:0x18e,_0x2cd0ba:0x30b},_0x91dfd7={_0x227bff:0x14a},_0x5db4c7=_0x1af210?{..._0x1f5dbf,'turnMeta':_0x1af210}:_0x1f5dbf;function _0x474fe2(_0x54ddbf,_0x506be9,_0x910d67,_0x40d74d){return _0x2cbd08(_0x54ddbf-0x12c,_0x506be9-_0x91dfd7._0x227bff,_0x506be9,_0x40d74d- -0x662);}function _0x5d23ba(_0x4cee2b,_0xc6c38b,_0x1c1d9c,_0x2d8000){return _0x2cbd08(_0x4cee2b-0x7f,_0xc6c38b-_0x54d67e._0xd6a81f,_0x2d8000,_0x1c1d9c- -_0x54d67e._0x2cd0ba);}await _0x457cf2[_0x474fe2(-_0x128334._0x52cd74,-_0x128334._0x366c75,-0x204,-_0x128334._0xba544)][_0x474fe2(-0x226,-_0x128334._0x54f3e1,-0x268,-_0x128334._0x390343)](_0x474fe2(-_0x128334._0x2a8a8e,-_0x128334._0x4d9210,-0x1e2,-0x20e),structuredClone(_0x4253b5),_0x5db4c7);},_0x45d720=_0x5dc537=>{const _0x5ebed4={_0x2d3191:0x5e,_0x1a2026:0x49a};function _0x1fb746(_0x1df225,_0x1f8344,_0x4749fe,_0x44e1ca){return _0x4eb9eb(_0x1df225-_0x59e02d._0x2fa704,_0x4749fe-0x1f2,_0x4749fe-0x2,_0x1f8344);}if(_0x5dc537?.['origin']==='coordinator')return{'submissionOrigin':_0x1fb746(0x61,0x10f,_0x22bf76._0x3fa706,_0x22bf76._0x1a149c)};if(_0x5dc537?.[_0x48567f(_0x22bf76._0x12f360,0x27f,0x304,0x2f2)]===_0x1fb746(-_0x22bf76._0x3c3067,0x4c,_0x22bf76._0x476ac9,-0x5d))return{'submissionOrigin':_0x48567f(_0x22bf76._0x2765e2,_0x22bf76._0x4a7276,_0x22bf76._0x2765e2,0x2c5),'senderAgentId':_0x5dc537[_0x48567f(_0x22bf76._0x12eae7,0x275,0x215,0x27c)]};function _0x48567f(_0x58cf0b,_0x375e9f,_0x59c335,_0x1c9f36){return _0x4eb9eb(_0x58cf0b-_0x5ebed4._0x2d3191,_0x1c9f36-_0x5ebed4._0x1a2026,_0x59c335-0x8d,_0x59c335);}return void 0x0;},_0x703a5c=_0x593a39=>_0x593a39?.[_0x2cbd08(0x458,0x4a5,0x46e,0x433)]===_0x4eb9eb(-0x1c3,-0x1d5,-0x215,-0x1f2)?{'senderAgentId':_0x593a39['senderAgentId']}:void 0x0,_0x2d0449=_0x2ea5f3=>typeof _0x2ea5f3===_0x2cbd08(0x45d,0x416,0x43a,0x3ff)&&_0x2ea5f3!==null&&_0x2cbd08(0x3b8,0x3e7,0x3a5,0x3f2)in _0x2ea5f3&&_0x4eb9eb(-0x20f,-0x1fa,-0x212,-0x1cd)in _0x2ea5f3,_0x1954c3=async _0x46ffc4=>{if(!_0x24bef5[_0x5ef5e8(-0x295,-_0x20b405._0x2dcd1f,-_0x20b405._0x2ab5f7,-_0x20b405._0x42645a)])return 0x0;const _0x402ce3=await _0x24bef5[_0x752907(_0x20b405._0x24b9cb,_0x20b405._0x597906,0x29,_0x20b405._0x41efdb)]();function _0x5ef5e8(_0x17af51,_0xe94636,_0x3317ba,_0x14d411){return _0x4eb9eb(_0x17af51-_0x4dda69._0xbf8199,_0x17af51- -_0x4dda69._0x25b0e0,_0x3317ba-0x1dd,_0xe94636);}throwIfAborted(_0x3bdbc9);if(_0x402ce3[_0x5ef5e8(-_0x20b405._0x1f72d1,-_0x20b405._0x44ad33,-0x280,-_0x20b405._0x2e4ce2)]===0x0)return 0x0;function _0x752907(_0x31f97a,_0x380db4,_0x366532,_0x295aa0){return _0x4eb9eb(_0x31f97a-_0x53f431._0x4a4ce6,_0x380db4-0x288,_0x366532-0x1c6,_0x31f97a);}await _0x46ffc4?.();for(const _0xe30ad3 of _0x402ce3){const _0x31738e=_0x2d0449(_0xe30ad3)?_0xe30ad3[_0x752907(0x120,0x9f,0xb0,0x11a)]:_0xe30ad3,_0x523ecb=_0x2d0449(_0xe30ad3)?_0xe30ad3[_0x752907(0x12,0x8e,0xc6,0x104)]:void 0x0,_0x381c2e=await _0x4a78c4(_0x5ef5e8(-0x276,-0x2d0,-0x229,-_0x20b405._0x122b47),normalizeMessage(_0x31738e));throwIfAborted(_0x3bdbc9),_0x3a8d43['messages'][_0x752907(_0x20b405._0x12bf3b,0x13c,0xf8,0xbf)](_0x381c2e),await _0x5c15c2(_0x381c2e,_0x45d720(_0x523ecb)),await _0x4e0642({'type':_0x752907(0x182,_0x20b405._0x21cf01,0xf4,_0x20b405._0x2360e1),'message':_0x381c2e,..._0x703a5c(_0x523ecb)});}return _0x402ce3['length'];};let _0x25eca5=0x0;try{const _0x11660d=await _0x4a78c4(_0x4eb9eb(-0x188,-0x1c0,-0x23e,-_0x770d91._0x4b4ae7),normalizeMessage(_0x24bef5[_0x4eb9eb(-0x1b5,-_0x770d91._0x32eefc,-_0x770d91._0x44bfce,-_0x770d91._0x1cd8ff)]));_0x3a8d43['messages'][_0x4eb9eb(-_0x770d91._0x32eefc,-0x14c,-_0x770d91._0x4fc8cd,-_0x770d91._0x21bd12)](_0x11660d),await _0x5c15c2(_0x11660d,_0x45d720(_0x24bef5['submission'])),await _0x4e0642({'type':_0x2cbd08(0x439,_0x770d91._0x2b0107,0x3eb,0x45e),'message':_0x11660d,..._0x703a5c(_0x24bef5['submission'])});while(!![]){throwIfAborted(_0x3bdbc9),_0x25eca5+=0x1;const _0x5f0e5c=createAssistantMessageId(_0x3a8d43[_0x2cbd08(0x435,0x4e1,_0x770d91._0x251229,_0x770d91._0x55092d)],_0x25eca5),_0x4340fc=createReasoningMessageId(_0x5f0e5c),_0x19411b={'model':_0x5d879f[_0x4eb9eb(-_0x770d91._0x4199d7,-0x1c3,-0x152,-0x21e)],'modelIdentity':_0x5d879f[_0x2cbd08(_0x770d91._0x2ae1d4,_0x770d91._0x40472f,0x447,_0x770d91._0x342cc7)],..._0x5d879f['provider']?{'provider':_0x5d879f[_0x2cbd08(0x4b7,0x42a,0x521,0x4ad)]}:{}};let _0x576d6d={'model':_0x5d879f['model'],..._0x5d879f['maxTokens']!==void 0x0?{'maxTokens':_0x5d879f[_0x4eb9eb(-_0x770d91._0x3dee58,-_0x770d91._0x307c75,-0x1e3,-0x259)]}:{},'system':structuredClone(_0x3a8d43[_0x4eb9eb(-_0x770d91._0x4422fd,-_0x770d91._0x5f0b94,-0x195,-0x169)]),'messages':structuredClone(_0x3a8d43[_0x2cbd08(0x3b8,0x48d,_0x770d91._0x3950b0,0x424)]),'tools':_0x457cf2[_0x2cbd08(0x4ae,_0x770d91._0x278909,_0x770d91._0x2a4e16,_0x770d91._0x49d430)][_0x2cbd08(_0x770d91._0x2e538b,_0x770d91._0x17f07e,0x3f2,0x44f)](),'metadata':{'sessionId':_0x3a8d43[_0x2cbd08(_0x770d91._0x59d2a0,_0x770d91._0x43024a,_0x770d91._0x1ea5b9,0x461)],'turnId':_0x3a8d43[_0x2cbd08(_0x770d91._0xf6e5ff,0x4ca,0x502,0x490)],'modelIdentity':_0x5d879f['modelIdentity'],..._0x5d879f[_0x4eb9eb(-_0x770d91._0x34b003,-0x199,-0x19f,-0x16a)]!==void 0x0?{'pricingProviderId':_0x5d879f[_0x2cbd08(_0x770d91._0x2d9726,0x3de,0x461,_0x770d91._0x44ef0c)]}:{}},..._0x457cf2[_0x2cbd08(_0x770d91._0x5b6534,_0x770d91._0xbe37a4,_0x770d91._0x532140,_0x770d91._0x3da232)]?{'outputFormat':_0x457cf2[_0x4eb9eb(-0x295,-0x227,-_0x770d91._0x3026d5,-0x22c)]}:{}};_0x576d6d=await _0x4a78c4(_0x2cbd08(0x3ef,_0x770d91._0x41a8cd,0x44e,_0x770d91._0x184739),_0x576d6d);{const {pricingProviderId:_0x4c52b7,..._0x3e6629}=_0x576d6d[_0x2cbd08(_0x770d91._0x1204cc,_0x770d91._0x174ba8,0x478,_0x770d91._0x1336f9)];_0x576d6d={..._0x576d6d,'metadata':{..._0x3e6629,..._0x5d879f[_0x2cbd08(0x497,_0x770d91._0x1f025c,_0x770d91._0x1ff9bf,_0x770d91._0x44ef0c)]!==void 0x0?{'pricingProviderId':_0x5d879f['pricingProviderId']}:{}}};}await _0x4e0642({'type':_0x2cbd08(0x4a1,0x506,_0x770d91._0x15e77f,_0x770d91._0x2778aa),'request':_0x576d6d});const _0x23bb84=Date[_0x4eb9eb(-0x216,-_0x770d91._0xf2b61,-_0x770d91._0x34b003,-_0x770d91._0x4da5dc)]();_0x19411b[_0x4eb9eb(-0x17a,-_0x770d91._0x5852de,-_0x770d91._0x5ed559,-0x1a5)]=_0x23bb84;let _0x32f785=await executeModelRequest(_0x576d6d,_0x24bef5,_0x5d879f,_0x457cf2,_0x519fed,{'assistantMessageId':_0x5f0e5c,'reasoningMessageId':_0x4340fc,'meta':_0x19411b});const _0xb9d649=Date[_0x2cbd08(0x438,0x452,0x48b,0x42f)]();_0x19411b[_0x4eb9eb(-0x16c,-0x1bd,-_0x770d91._0x25c946,-_0x770d91._0x10338c)]=_0xb9d649,_0x32f785=await _0x4a78c4(_0x4eb9eb(-_0x770d91._0x433f54,-_0x770d91._0x34b003,-_0x770d91._0x28de34,-_0x770d91._0x4d41b1),_0x32f785);_0x32f785[_0x2cbd08(_0x770d91._0x648f8a,_0x770d91._0x24dd8c,_0x770d91._0x165278,_0x770d91._0x5d9ce1)]&&(_0x32f785={..._0x32f785,'providerState':{..._0x32f785[_0x4eb9eb(-_0x770d91._0x3e5dde,-_0x770d91._0x952c37,-0x2a9,-_0x770d91._0x37d302)],'originModelIdentity':_0x5d879f['modelIdentity']}});_0x32f785=withEstimatedModelCost(_0x576d6d,_0x32f785);const _0x10645c=Math[_0x4eb9eb(-_0x770d91._0x8cf5a5,-_0x770d91._0x8fc868,-0x268,-_0x770d91._0x396a46)](0x0,_0xb9d649-_0x23bb84),_0x582f5f={'version':0x1,'usage':structuredClone(_0x32f785[_0x4eb9eb(-0xd1,-_0x770d91._0x184dbf,-0x16e,-_0x770d91._0x1b95d7)]),'modelTimeMs':_0x10645c},_0x5ccfee=_0x2c4189=>({..._0x19411b,'metrics':{..._0x582f5f,'usage':structuredClone(_0x582f5f[_0x2cbd08(0x4e9,0x501,0x515,0x49d)]),'completesRequest':_0x2c4189}});await _0x4e0642({'type':'model_response','response':_0x32f785,'modelTimeMs':_0x10645c}),_0x3a8d43['lastResponse']=_0x32f785;let _0x513816=await _0x4a78c4(_0x4eb9eb(-_0x770d91._0x20b66e,-_0x770d91._0x189118,-0x19b,-_0x770d91._0x8fc868),withMessageId(responseToAssistantMessage(_0x32f785),_0x5f0e5c));_0x513816=withMessageId(_0x513816,_0x5f0e5c);const _0x59bec0=getToolUseBlocks(_0x513816),_0x2a2c26=await Promise[_0x4eb9eb(-0xfe,-0x128,-0x1a3,-0x177)](_0x59bec0[_0x4eb9eb(-_0x770d91._0x419c5d,-0x137,-_0x770d91._0x388789,-_0x770d91._0x11a7e6)](_0xc79df4=>_0x4a78c4(_0x2cbd08(0x47e,0x486,0x459,0x41d),_0xc79df4)));_0x2a2c26[_0x2cbd08(_0x770d91._0x3e448e,0x4ac,0x3e3,_0x770d91._0x586027)]>0x0&&(_0x513816=replaceToolUseBlocks(_0x513816,_0x2a2c26));const _0x3c53ff=withMessageId(_0x513816,_0x5f0e5c);_0x513816=_0x3c53ff;const _0x3d7c10=createReasoningMessage(_0x513816),_0x1023eb=createAssistantTextMessage(_0x513816),_0x1d0de4=createToolUseMessage(_0x513816);_0x3d7c10&&await _0x4e0642({'type':_0x4eb9eb(-_0x770d91._0x45bd2d,-_0x770d91._0x3f4339,-0x198,-0x152),'message':withMessageId(_0x3d7c10,_0x4340fc)});_0x1023eb&&await _0x4e0642({'type':_0x4eb9eb(-_0x770d91._0x46312e,-0x1d7,-_0x770d91._0x5f4635,-0x21f),'message':withMessageId(_0x1023eb,_0x5f0e5c)});_0x1d0de4&&await _0x4e0642({'type':_0x4eb9eb(-0x1ca,-_0x770d91._0x4a18b4,-_0x770d91._0xf88bf2,-0x27c),'message':withMessageId(_0x1d0de4,_0x5f0e5c)});_0x3a8d43[_0x2cbd08(_0x770d91._0x2c5824,_0x770d91._0x4744d6,0x488,_0x770d91._0xa30f5a)]['push'](_0x3c53ff);_0x2a2c26[_0x2cbd08(0x4a8,_0x770d91._0x57d1d4,0x3fc,_0x770d91._0x586027)]>0x0&&await _0x5c15c2(_0x3c53ff,_0x5ccfee(![]));for(const _0x1b6e9c of _0x2a2c26){await _0x4e0642({'type':'tool_call','toolCall':structuredClone(_0x1b6e9c)});}if(_0x2a2c26[_0x4eb9eb(-_0x770d91._0x11c9c7,-0x19e,-_0x770d91._0x1785a8,-_0x770d91._0x47976d)]===0x0){const _0x43b5fd=await _0x1954c3(async()=>{await _0x5c15c2(_0x3c53ff,_0x5ccfee(![]));});if(_0x43b5fd>0x0)continue;const _0x44b9af=await _0x4a78c4('beforeFinalOutput',_0x513816),_0x49d171=withMessageId(_0x44b9af,_0x5f0e5c);return _0x3a8d43['finalMessage']=_0x49d171,_0x3a8d43[_0x4eb9eb(-0x222,-_0x770d91._0x3eae30,-_0x770d91._0x4ff986,-_0x770d91._0xd7cabe)][_0x3a8d43[_0x4eb9eb(-0x177,-_0x770d91._0x3eae30,-_0x770d91._0x31393e,-0x1c2)][_0x4eb9eb(-_0x770d91._0x2681b3,-0x19e,-_0x770d91._0x508646,-_0x770d91._0x271078)]-0x1]=_0x49d171,await _0x5c15c2(_0x49d171,_0x5ccfee(!![])),await _0x4ed68a({'type':'final_message','message':_0x49d171}),throwIfAborted(_0x3bdbc9),await _0x457cf2[_0x2cbd08(_0x770d91._0x138f82,0x39d,_0x770d91._0x290b93,0x405)][_0x4eb9eb(-_0x770d91._0x44aa09,-_0x770d91._0x52b3f9,-0x1ca,-0x159)](_0x2cbd08(0x440,0x3e3,0x363,0x3c1),_0x3a8d43,_0x1f5dbf),await _0x4e0642({'type':_0x2cbd08(_0x770d91._0x9a7dc5,_0x770d91._0x46aa5d,_0x770d91._0x245ec4,_0x770d91._0x3fcf2d),'state':_0x3a8d43}),{'status':_0x2cbd08(_0x770d91._0x2b2d2e,0x418,_0x770d91._0x4ef47d,0x49c),'finalMessage':_0x49d171,'state':_0x3a8d43};}let _0x31ce29=await _0x457cf2['toolRuntime'][_0x2cbd08(0x455,_0x770d91._0x4c0504,_0x770d91._0x4790a1,_0x770d91._0x1be405)](_0x2a2c26,_0x519fed);const _0x2b90e8=_0x31ce29[_0x2cbd08(_0x770d91._0x5a9b17,0x412,_0x770d91._0x216dec,_0x770d91._0x20d864)](isAbortedToolResult),_0x447b0e=_0x2b90e8?_0xe10a17:_0x4a78c4,_0x4be361=_0x2b90e8?_0x4ed68a:_0x4e0642;_0x31ce29=await Promise[_0x2cbd08(0x4df,0x4f5,0x506,0x4b3)](_0x31ce29['map'](_0x4ad151=>_0x447b0e(_0x2cbd08(0x3aa,0x380,0x389,0x3f6),_0x4ad151))),_0x3a8d43['toolResults'][_0x2cbd08(0x47a,_0x770d91._0x251229,0x4a6,_0x770d91._0x5b888e)](..._0x31ce29);for(const _0x289e85 of _0x31ce29){await _0x4be361({'type':_0x4eb9eb(-_0x770d91._0x3f4339,-0x16f,-_0x770d91._0x50ea25,-_0x770d91._0x36cc55),'result':cloneToolResultForPublication2(_0x289e85)});}const _0x3a8d8b=await _0x447b0e('beforeToolResultAppend',createToolResultUserMessage(_0x31ce29));await _0x4be361({'type':_0x4eb9eb(-0x1a9,-_0x770d91._0x3e5efe,-_0x770d91._0x23b64f,-0x246),'message':_0x3a8d8b}),_0x3a8d43[_0x4eb9eb(-_0x770d91._0x3999bc,-0x1b7,-_0x770d91._0x44d423,-_0x770d91._0xb83054)][_0x2cbd08(_0x770d91._0x4c91c6,_0x770d91._0x559c7e,_0x770d91._0x257cd3,_0x770d91._0x151465)](_0x3a8d8b),await _0x5c15c2(_0x3a8d8b);if(_0x2b90e8)return{'status':'aborted','state':_0x3a8d43};await _0x1954c3();}}catch(_0x31b2f7){if(!_0x3bdbc9[_0x2cbd08(0x47f,_0x770d91._0x286ec7,_0x770d91._0x599626,0x492)])throw new TurnFailedError(_0x31b2f7,_0x3a8d43);return{'status':'aborted','state':_0x3a8d43};}}function createSessionId(){const _0x47ecc1={_0xc0c9ff:0x168,_0x388d47:0x1c1,_0x45b7b8:0xee,_0x42b1e5:0x10e,_0x364d5a:0x13a,_0x583e5d:0x10c,_0x2eab11:0x154,_0x378cfb:0x11c},_0x3c5400={_0x59dfde:0x158},_0x49f77e={_0x3ba246:0x388,_0x6071c1:0xd2};function _0x52b3d9(_0x3029f3,_0x119661,_0x5cef67,_0x1635fb){return _0x417469(_0x3029f3- -_0x49f77e._0x3ba246,_0x119661-0x118,_0x5cef67,_0x1635fb-_0x49f77e._0x6071c1);}function _0x117144(_0x5a4756,_0x516e91,_0x321dd2,_0x18ea7f){return _0x417469(_0x321dd2- -0x394,_0x516e91-0x18a,_0x5a4756,_0x18ea7f-_0x3c5400._0x59dfde);}return _0x52b3d9(-0x191,-0x16f,-0x154,-_0x47ecc1._0xc0c9ff)+Date['now']()+'-'+Math[_0x117144(-_0x47ecc1._0x388d47,-_0x47ecc1._0x45b7b8,-0x163,-_0x47ecc1._0x42b1e5)]()[_0x117144(-0xfe,-0x1b8,-_0x47ecc1._0x364d5a,-_0x47ecc1._0x583e5d)](0x10)[_0x52b3d9(-0x15c,-_0x47ecc1._0x2eab11,-0x143,-_0x47ecc1._0x378cfb)](0x2,0xa);}function createTurnId(_0x5b1953){const _0x3f71fb={_0x5b2206:0x375,_0x460c75:0x3f0,_0x40284c:0x448},_0x550a67={_0x2b6c9a:0x1d6,_0x1b0b13:0xa4};function _0x58fbaa(_0x2e34b4,_0x493331,_0x48f728,_0x20d82d){return _0x5c6b7a(_0x2e34b4-0xb8,_0x48f728-_0x550a67._0x2b6c9a,_0x493331,_0x20d82d-_0x550a67._0x1b0b13);}return _0x58fbaa(_0x3f71fb._0x5b2206,0x43d,_0x3f71fb._0x460c75,_0x3f71fb._0x40284c)+_0x5b1953;}function createDefaultMessage(_0x433a02){if(_0x433a02===void 0x0)return void 0x0;return normalizeUserInput(_0x433a02);}function normalizeUserInput(_0x4e3264){const _0x1d0773={_0x58897d:0x59,_0x1cbb6f:0x1cd,_0x12c225:0x1c2,_0x1efc26:0x24c},_0x5dd10b={_0x1721f0:0x229},_0x2d90c0={_0x395e41:0x3ff,_0x30a07f:0xe4,_0x10f52a:0x90};if(typeof _0x4e3264==='string')return{'role':_0x407bd2(0x18,-_0x1d0773._0x58897d,-0x7e,0x25),'content':[{'type':_0x5667f8(-_0x1d0773._0x1cbb6f,-_0x1d0773._0x12c225,-0x216,-_0x1d0773._0x1efc26),'text':_0x4e3264}]};function _0x5667f8(_0xa7fdcd,_0x42ae5a,_0x1bc68b,_0x23beeb){return _0x417469(_0x1bc68b- -_0x2d90c0._0x395e41,_0x42ae5a-_0x2d90c0._0x30a07f,_0x23beeb,_0x23beeb-_0x2d90c0._0x10f52a);}function _0x407bd2(_0x58439f,_0x3cae98,_0x23e520,_0x1c1f9b){return _0x5c6b7a(_0x58439f-0x1cd,_0x3cae98- -_0x5dd10b._0x1721f0,_0x23e520,_0x1c1f9b-0x6d);}return normalizeMessage(_0x4e3264);}function isTaggedSteeringInput(_0x2a2e98){const _0x3dbdb5={_0xa4bb0a:0x6c,_0x1e751b:0x68,_0x46e1a4:0x3a,_0x141478:0x7c,_0x387c06:0x75,_0x2e49ea:0x88},_0x3c650e={_0x551ebe:0x22a},_0x4b57e3={_0x2da7f2:0x1};function _0x33b035(_0xb31dee,_0x190147,_0x1fccf8,_0x496740){return _0x417469(_0x496740-0x46,_0x190147-0x1bc,_0x1fccf8,_0x496740-_0x4b57e3._0x2da7f2);}function _0x44c486(_0x24a5b0,_0x507028,_0x53eb5d,_0x20a600){return _0x417469(_0x53eb5d- -_0x3c650e._0x551ebe,_0x507028-0x14f,_0x20a600,_0x20a600-0x194);}return typeof _0x2a2e98===_0x44c486(-0xd2,-_0x3dbdb5._0xa4bb0a,-_0x3dbdb5._0x1e751b,-0x9c)&&_0x2a2e98!==null&&_0x44c486(-_0x3dbdb5._0x46e1a4,-_0x3dbdb5._0x141478,-_0x3dbdb5._0x387c06,-_0x3dbdb5._0x2e49ea)in _0x2a2e98&&'submission'in _0x2a2e98;}function resolveChatModel(_0x2eb605){const _0x2a41dc={_0x1a9a1f:0x189,_0x5b1438:0x157,_0x47f600:0x179},_0x39e31c={_0x32b84c:0x162},_0x2df074={_0x3c617b:0x3ab,_0x2b29ee:0x11e};if(!_0x2eb605[_0x13b0ce(-_0x2a41dc._0x1a9a1f,-0x184,-0x179,-0x176)])throw new Error('Agent\x20requires\x20a\x20chatModel');function _0x429688(_0x47c1ff,_0x3c1896,_0x124ba9,_0x289f58){return _0x417469(_0x289f58- -_0x2df074._0x3c617b,_0x3c1896-_0x2df074._0x2b29ee,_0x47c1ff,_0x289f58-0x14f);}function _0x13b0ce(_0xee134a,_0x412c47,_0xc8588e,_0x3aac1a){return _0x5c6b7a(_0xee134a-_0x39e31c._0x32b84c,_0xc8588e- -0x302,_0x3aac1a,_0x3aac1a-0x11c);}return _0x2eb605[_0x13b0ce(-0x1e0,-_0x2a41dc._0x5b1438,-_0x2a41dc._0x47f600,-0x14f)];}function normalizeExecutionScope2(_0x5712e8){const _0x29fd9f={_0xb29ce6:0x16,_0x1f2f0a:0x24,_0x1f08a1:0x5d,_0x3ffe39:0x6f,_0x3c6cdc:0x69,_0x22d9c2:0x46,_0x52bd60:0x40,_0x45ecae:0xb8,_0x59be5a:0x13a},_0x1bad1a={_0x4b7fe3:0x10b},_0x48c576={_0x133e9c:0xa1,_0x5a4108:0x5};function _0x50e624(_0x2c272a,_0x27014d,_0xd48ae0,_0x3eaa89){return _0x5c6b7a(_0x2c272a-_0x48c576._0x133e9c,_0x27014d-0x92,_0xd48ae0,_0x3eaa89-_0x48c576._0x5a4108);}function _0x6b2e85(_0x10df27,_0x25d03c,_0x274db5,_0x224b1c){return _0x5c6b7a(_0x10df27-0x0,_0x274db5- -0x14f,_0x224b1c,_0x224b1c-_0x1bad1a._0x4b7fe3);}return{'agentId':_0x5712e8?.[_0x6b2e85(_0x29fd9f._0xb29ce6,_0x29fd9f._0x1f2f0a,_0x29fd9f._0x1f08a1,_0x29fd9f._0x3ffe39)]??_0x6b2e85(_0x29fd9f._0x3c6cdc,_0x29fd9f._0x22d9c2,0x38,-0x38),'toolCallPath':[..._0x5712e8?.[_0x6b2e85(_0x29fd9f._0x52bd60,0xd5,_0x29fd9f._0x45ecae,_0x29fd9f._0x59be5a)]??[]]};}function createRegistry(_0x5e4285){const _0x12ef27={_0x4ac870:0x116,_0x20de44:0x150,_0xfc9923:0x1c,_0x230072:0x33,_0x44e2c1:0x1ce,_0x2353ed:0x1bc},_0x6eee34={_0x45b7d2:0x131},_0x4f8310={_0xf5fae0:0xd2};if(_0x5e4285[_0x403052(_0x12ef27._0x4ac870,0xcd,0x116,_0x12ef27._0x20de44)])return _0x5e4285[_0xf7fff9(-0x3f,_0x12ef27._0xfc9923,-_0x12ef27._0x230072,-0x96)];function _0xf7fff9(_0x591b0b,_0x122eaf,_0x56a98d,_0x261994){return _0x417469(_0x56a98d- -0x1fb,_0x122eaf-0x9c,_0x261994,_0x261994-_0x4f8310._0xf5fae0);}function _0x403052(_0x541bc4,_0x2483d8,_0x389c2e,_0x2cb7fb){return _0x417469(_0x2cb7fb- -0x78,_0x2483d8-_0x6eee34._0x45b7d2,_0x541bc4,_0x2cb7fb-0x10d);}const _0x257642=createExtensionRegistry(),_0x32054a=_0x5e4285['extensions']??[];for(const _0x10017a of _0x32054a){_0x257642[_0x403052(0x16c,0x228,_0x12ef27._0x44e2c1,_0x12ef27._0x2353ed)](_0x10017a);}return _0x257642;}var Agent=class{[_0x417469(0x1fa,0x27f,0x23a,0x24c)];[_0x417469(0x17b,0x1c6,0x149,0x1bf)];[_0x417469(0x1bc,0x22a,0x195,0x14e)];[_0x417469(0x224,0x229,0x241,0x27c)];[_0x417469(0x1e7,0x26c,0x26c,0x1e2)];[_0x417469(0x277,0x2eb,0x2b6,0x2ee)];[_0x5c6b7a(0x1f7,0x1e0,0x1d4,0x1c6)];constructor(_0x1a1bf0={}){const _0x4227a0={_0x1fc05f:0x107,_0x224d55:0x1c6,_0x2379f9:0x1af,_0x45a0c:0x1b2,_0x30a2a1:0x170,_0x18f701:0x119,_0x1474a3:0x140,_0x4c91f1:0x63,_0x2778f9:0x4d,_0x11c933:0x58,_0x5f4cb9:0xe,_0xf30a7b:0x38,_0x143902:0xe5,_0x1bf596:0x6b,_0x18b588:0x17,_0x4ed8ae:0x35,_0x3a82ca:0x2,_0xa2d7a3:0x189,_0x20e7d3:0x1ca,_0x4e161d:0x155,_0x39edde:0x1c3,_0x3c19b5:0x7e,_0x249739:0x4f,_0x213c4a:0x115,_0x3036b7:0x7d,_0x548e63:0x1d7,_0x5dd64f:0x11,_0xdc4e13:0x3e,_0x7cf02c:0x1c,_0x445f54:0x33,_0x56509c:0x2b,_0x43f278:0x4c,_0x321321:0xc1,_0x452734:0xbc,_0xba9d92:0x10a,_0x4d16e5:0x157,_0x1fd155:0xb5,_0x94fe27:0x122,_0x3f51c1:0xb3,_0x35e5c0:0xef,_0x5820ec:0xfd,_0x45533e:0x117,_0x3a16e8:0xb4,_0x3b3867:0x1ec,_0x1905fe:0x128,_0x382df4:0x12b,_0x552003:0x13a,_0x24b60b:0xeb},_0x4102f6={_0x5b136f:0x157},_0x23d159={_0x1fa654:0x12a},_0x50a312={_0x598ac8:0x18b,_0x3012f9:0x3a},_0x29c064={_0x155f0e:0xb4,_0x60aec0:0x1e0};function _0x9dca90(_0x3fb47b,_0x220e67,_0x4fd651,_0x384739){return _0x417469(_0x384739- -_0x29c064._0x155f0e,_0x220e67-0x65,_0x220e67,_0x384739-_0x29c064._0x60aec0);}this[_0x9dca90(_0x4227a0._0x1fc05f,0x175,_0x4227a0._0x224d55,0x170)]=_0x1a1bf0[_0x9dca90(0x1b3,_0x4227a0._0x2379f9,_0x4227a0._0x45a0c,_0x4227a0._0x30a2a1)]??createSessionId();function _0x2dd5e4(_0x1eecef,_0x45a23a,_0x1672fa,_0x4b91f9){return _0x417469(_0x4b91f9- -0x252,_0x45a23a-_0x50a312._0x598ac8,_0x1eecef,_0x4b91f9-_0x50a312._0x3012f9);}this[_0x9dca90(0x1a7,_0x4227a0._0x18f701,0x12d,_0x4227a0._0x1474a3)]=0x0,this[_0x2dd5e4(-0x85,-_0x4227a0._0x4c91f1,-_0x4227a0._0x2778f9,-_0x4227a0._0x11c933)]=_0x1a1bf0[_0x2dd5e4(-0x76,-_0x4227a0._0x5f4cb9,-_0x4227a0._0xf30a7b,-0x4f)]??'',this[_0x2dd5e4(-0xab,-0x4a,-_0x4227a0._0x143902,-_0x4227a0._0x1bf596)]=(_0x1a1bf0[_0x2dd5e4(-_0x4227a0._0x18b588,-_0x4227a0._0x4ed8ae,_0x4227a0._0x3a82ca,-0x6b)]??[])[_0x9dca90(0x19b,_0x4227a0._0xa2d7a3,_0x4227a0._0x20e7d3,0x1b3)](normalizeMessage),this[_0x9dca90(0x1ae,_0x4227a0._0x4e161d,0x1a7,_0x4227a0._0x39edde)]=createDefaultMessage(_0x1a1bf0[_0x2dd5e4(0x36,-_0x4227a0._0x3c19b5,-0x5b,-0x2c)]),this[_0x2dd5e4(-_0x4227a0._0x249739,-0xa1,-_0x4227a0._0x213c4a,-0x96)]=createAgentMetrics({'getContextWindowLimit':_0x1a1bf0[_0x2dd5e4(-0xe5,-0x9f,-0xcc,-_0x4227a0._0x3036b7)]});const _0x34c702=_0x1a1bf0[_0x9dca90(0x19e,0x22e,_0x4227a0._0x548e63,0x1be)],_0x3b957e=async(_0x312c39,_0x2c40a0)=>{function _0x11466c(_0x143c77,_0x36bd3b,_0x162ba1,_0x3e1fd9){return _0x2dd5e4(_0x36bd3b,_0x36bd3b-_0x23d159._0x1fa654,_0x162ba1-_0x23d159._0x1fa654,_0x143c77-0x22c);}this['metrics'][_0x11466c(0x1d2,0x1de,_0x4102f6._0x5b136f,0x1ec)](_0x312c39),await _0x34c702?.(_0x312c39,_0x2c40a0);},_0x3cdb95=createRegistry(_0x1a1bf0),_0x416647=createInternalToolRuntime(_0x1a1bf0[_0x2dd5e4(-0x86,_0x4227a0._0x5dd64f,_0x4227a0._0xdc4e13,-_0x4227a0._0x7cf02c)]??[],{'onEvent':_0x3b957e,'onToolCall':_0x1a1bf0[_0x2dd5e4(0x12,_0x4227a0._0x445f54,-_0x4227a0._0x56509c,0x7)],'registry':_0x3cdb95,'beginProgramTrace':_0x1a1bf0[_0x2dd5e4(-_0x4227a0._0x43f278,-_0x4227a0._0x321321,-0x36,-0xb3)]});this[_0x2dd5e4(-_0x4227a0._0x452734,-_0x4227a0._0xba9d92,-0xb9,-0xd7)]={'registry':_0x3cdb95,'chatModel':resolveChatModel(_0x1a1bf0),'toolRuntime':_0x416647,'askUser':_0x1a1bf0[_0x9dca90(_0x4227a0._0x4d16e5,0xef,_0x4227a0._0x1fd155,_0x4227a0._0x94fe27)],'setTopic':_0x1a1bf0[_0x9dca90(_0x4227a0._0x3f51c1,0x174,_0x4227a0._0x35e5c0,0x11e)],'onEvent':_0x3b957e,'sessionDir':_0x1a1bf0[_0x9dca90(_0x4227a0._0x5820ec,_0x4227a0._0x45533e,0x148,0xcb)],'outputFormat':_0x1a1bf0[_0x9dca90(0x108,0xf4,_0x4227a0._0x3a16e8,0xc3)],'executionScope':normalizeExecutionScope2(_0x1a1bf0[_0x9dca90(_0x4227a0._0x3b3867,_0x4227a0._0x1905fe,_0x4227a0._0x382df4,0x1a9)]),'beginProgramTrace':_0x1a1bf0[_0x9dca90(0x140,0x150,_0x4227a0._0x552003,_0x4227a0._0x24b60b)]};}get['systemPrompt'](){const _0x7a5330={_0x31abe9:0x257};function _0x592f05(_0x127928,_0x3c7f5e,_0x43c6dd,_0x9343ac){return _0x5c6b7a(_0x127928-0x196,_0x127928-0x68,_0x3c7f5e,_0x9343ac-0x49);}return this[_0x592f05(0x24e,0x1f3,_0x7a5330._0x31abe9,0x28d)];}[_0x417469(0x23e,0x2a1,0x297,0x2b1)](_0x4af0fe=[]){const _0x2366ed={_0xf6d989:0x411},_0x2939b3={_0xa4ba4d:0x5f};function _0x354ea6(_0x479b99,_0x516f8c,_0x3d8d84,_0x5b133b){return _0x417469(_0x479b99-0x1d3,_0x516f8c-0x19c,_0x516f8c,_0x5b133b-_0x2939b3._0xa4ba4d);}this['deps']['toolRuntime'][_0x354ea6(_0x2366ed._0xf6d989,0x3c9,0x43e,0x40c)](_0x4af0fe);}[_0x5c6b7a(0x1ba,0x235,0x24a,0x20f)](){const _0x5fc729={_0x543740:0x428,_0x53991a:0x501,_0x4f46b2:0x54c,_0x83a5e5:0x4ef},_0x1f912a={_0x38a23d:0x27e,_0x390723:0x93},_0x22eb1b={_0x3d5820:0x6e,_0x1eec5e:0x168};function _0x5f14dc(_0x221004,_0x2228bf,_0x3592a4,_0x8c7e10){return _0x417469(_0x3592a4-0x317,_0x2228bf-_0x22eb1b._0x3d5820,_0x221004,_0x8c7e10-_0x22eb1b._0x1eec5e);}function _0x5aaea4(_0x5139e7,_0x5c9a9e,_0x455089,_0x4d6719){return _0x5c6b7a(_0x5139e7-0xe0,_0x455089-_0x1f912a._0x38a23d,_0x5c9a9e,_0x4d6719-_0x1f912a._0x390723);}return this[_0x5aaea4(_0x5fc729._0x543740,0x412,0x3e5,0x364)][_0x5aaea4(_0x5fc729._0x53991a,_0x5fc729._0x4f46b2,0x4d4,0x512)][_0x5aaea4(0x4e9,0x428,0x47c,_0x5fc729._0x83a5e5)]();}[_0x417469(0x16e,0x127,0x1be,0x1b8)](_0x4dfea3,_0x452f21={}){const _0x349187={_0x37dee0:0x1e5,_0x568e05:0x198,_0x4ddf2c:0x12f,_0x49a546:0x174,_0x572708:0x129,_0x44b0d6:0x1ca,_0xca2e93:0x251,_0x5a34ee:0x2cb,_0xdae4c9:0x262,_0x51d99c:0x23d,_0x372679:0x1de,_0x402abd:0x24c},_0x111fb4={_0x544169:0x187,_0x171e62:0x20},_0x1f6997={_0x16dcbc:0x1d,_0x3772d4:0x43};function _0x85f691(_0x163e8e,_0x1d7b33,_0xb9e157,_0x586118){return _0x5c6b7a(_0x163e8e-_0x1f6997._0x16dcbc,_0x163e8e-0x7e,_0xb9e157,_0x586118-_0x1f6997._0x3772d4);}this[_0x4415(-0x136,-0x190,-_0x349187._0x37dee0,-_0x349187._0x568e05)]=_0x4dfea3;function _0x4415(_0x278568,_0x10b661,_0x25b8d6,_0x3381c5){return _0x417469(_0x10b661- -0x38a,_0x10b661-_0x111fb4._0x544169,_0x25b8d6,_0x3381c5-_0x111fb4._0x171e62);}_0x452f21[_0x4415(-_0x349187._0x4ddf2c,-_0x349187._0x49a546,-_0x349187._0x572708,-_0x349187._0x44b0d6)]===!![]&&(this[_0x85f691(_0x349187._0xca2e93,_0x349187._0x5a34ee,_0x349187._0xdae4c9,_0x349187._0x51d99c)]=[],this[_0x85f691(0x25e,_0x349187._0x372679,0x2ce,_0x349187._0x402abd)]=0x0);}['setSessionId'](_0x5995c1){const _0x147153={_0x334c88:0x59c},_0x143312={_0x47ad74:0x110,_0x3d5a75:0x35b};function _0x53ace3(_0x35692e,_0x54093e,_0x3f191a,_0x51691e){return _0x5c6b7a(_0x35692e-_0x143312._0x47ad74,_0x54093e-_0x143312._0x3d5a75,_0x51691e,_0x51691e-0x32);}this[_0x53ace3(0x519,0x56b,0x514,_0x147153._0x334c88)]=_0x5995c1;}[_0x5c6b7a(0x18b,0x1c3,0x19f,0x200)](_0x33b806){const _0x356024={_0x2e0add:0x2a1,_0x4af56b:0x21d},_0x179397={_0x45b2dc:0xf8,_0x16f0c9:0x16c},_0x192a9a={_0x53e580:0x80,_0x2cfc59:0xc5};function _0x4e5dac(_0x1d9a05,_0x3c95bd,_0x1cf919,_0x196dc1){return _0x417469(_0x196dc1-_0x192a9a._0x53e580,_0x3c95bd-0x1b6,_0x1cf919,_0x196dc1-_0x192a9a._0x2cfc59);}function _0x3eaf94(_0x42f07b,_0x48a280,_0x3316ff,_0x13f457){return _0x417469(_0x13f457- -0x371,_0x48a280-_0x179397._0x45b2dc,_0x3316ff,_0x13f457-_0x179397._0x16f0c9);}this[_0x4e5dac(0x1bc,0x1ca,0x1c4,0x1fb)][_0x4e5dac(_0x356024._0x2e0add,0x22e,0x221,_0x356024._0x4af56b)]=_0x33b806;}async[_0x5c6b7a(0x28c,0x24a,0x222,0x2b9)](_0x5b5e7d=this[_0x5c6b7a(0x2a5,0x263,0x251,0x29c)],_0xdb9055={}){const _0x42d437={_0x608c42:0x319,_0x4da200:0x36d,_0x46ca4e:0x3ce,_0x5cf760:0x3d2,_0x48957f:0x395,_0xe0c6d6:0x27f,_0x392644:0x278,_0x19b72d:0x3cd,_0xe46774:0x3ea,_0x44976d:0x2be,_0x18d46e:0x255,_0x3e990b:0x352,_0x192ba4:0x3b2,_0x3990e9:0x3b7,_0x3bbaec:0x2a7,_0x386bfd:0x365,_0x21b110:0x239,_0x563290:0x290,_0x50a6c9:0x24f,_0x1c6f06:0x276,_0x5170bc:0x398,_0x3a8f68:0x333,_0x983735:0x2c8,_0xcd8e70:0x31b,_0x163581:0x244,_0x3fea18:0x2bb},_0x11bcdf={_0x55881f:0x1ae,_0x14c48c:0x123},_0x44d05b={_0x34687d:0x160,_0x14d388:0xe0,_0x211c64:0x14};function _0x29a94e(_0x582b34,_0x26f48d,_0x47b72f,_0x8a682f){return _0x5c6b7a(_0x582b34-_0x44d05b._0x34687d,_0x8a682f-_0x44d05b._0x14d388,_0x582b34,_0x8a682f-_0x44d05b._0x211c64);}function _0x145fb2(_0x2cf827,_0x4e1a54,_0x3be572,_0xa30c9d){return _0x417469(_0x2cf827-_0x11bcdf._0x55881f,_0x4e1a54-_0x11bcdf._0x14c48c,_0x4e1a54,_0xa30c9d-0x0);}if(!_0x5b5e7d)throw new Error(_0x145fb2(0x350,0x32c,0x30e,_0x42d437._0x608c42));this['turnIndex']+=0x1;const _0xc51243=_0xdb9055[_0x145fb2(_0x42d437._0x4da200,0x388,0x2ee,_0x42d437._0x46ca4e)];try{const _0x3a4658=await runTurn({'sessionId':this[_0x145fb2(_0x42d437._0x5cf760,_0x42d437._0x48957f,0x39b,0x35d)],'turnId':createTurnId(this['turnIndex']),'streaming':_0xdb9055[_0x29a94e(0x274,0x207,_0x42d437._0xe0c6d6,_0x42d437._0x392644)],'signal':_0xdb9055['signal'],'system':this[_0x145fb2(0x3b1,0x3d3,_0x42d437._0x19b72d,0x344)],'messages':this[_0x145fb2(0x395,0x3dc,0x3be,_0x42d437._0xe46774)],'message':normalizeUserInput(_0x5b5e7d),..._0xdb9055[_0x29a94e(0x29f,_0x42d437._0x44976d,_0x42d437._0x18d46e,0x270)]===void 0x0?{}:{'submission':_0xdb9055[_0x145fb2(_0x42d437._0x3e990b,_0x42d437._0x192ba4,_0x42d437._0x3990e9,0x2f0)]},..._0xc51243?{'drainSteering':async()=>(await _0xc51243())[_0x145fb2(0x415,0x3bd,0x414,0x487)](_0x2f0346=>isTaggedSteeringInput(_0x2f0346)?{'input':normalizeUserInput(_0x2f0346[_0x145fb2(0x363,0x2e4,0x3df,0x388)]),'submission':_0x2f0346[_0x145fb2(0x352,0x3a4,0x301,0x34b)]}:normalizeUserInput(_0x2f0346))}:{}},this[_0x145fb2(0x329,_0x42d437._0x3bbaec,_0x42d437._0x386bfd,0x38e)]);return this[_0x29a94e(0x29d,0x316,0x26e,0x2b3)]=_0x3a4658[_0x29a94e(_0x42d437._0x21b110,_0x42d437._0x563290,_0x42d437._0x50a6c9,_0x42d437._0x1c6f06)][_0x145fb2(0x395,0x32e,0x351,0x380)]['map'](normalizeMessage),_0x3a4658;}catch(_0x5ba493){if(_0x5ba493 instanceof TurnFailedError){this[_0x29a94e(0x2fb,0x292,_0x42d437._0x18d46e,0x2b3)]=synthesizeMissingToolResults(_0x5ba493['state']['messages'][_0x29a94e(_0x42d437._0x5170bc,0x30b,0x320,_0x42d437._0x3a8f68)](normalizeMessage));throw _0x5ba493[_0x29a94e(_0x42d437._0x983735,_0x42d437._0xcd8e70,_0x42d437._0x163581,_0x42d437._0x3fea18)];}throw _0x5ba493;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,closeBoundNestedToolExecution,drainBoundNestedToolPersistence,commitBoundToolExecutionTerminalState,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
|
|
1
|
+
(function(_0x480fa6,_0x4e36f6){const _0x50e171={_0x5f6d25:0x441,_0x110b92:0x4d5,_0x1605e8:0x5ad,_0x2a9d98:0x30a,_0x56f7df:0x363,_0x5353ad:0x440,_0x1aaa11:0x486,_0x277b31:0x3ea,_0x61221d:0x395,_0x25fa47:0x322,_0x523d6f:0x304,_0x4366ba:0x4ae,_0x164f6b:0x4ee,_0x15c63c:0x375,_0x4cc877:0x302,_0x475fc6:0x4b2,_0x122255:0x554,_0x20a04c:0x513,_0x523693:0x4da},_0x52cf8c={_0x72739a:0x14b},_0x4d415e=_0x480fa6();function _0x539e4f(_0x349da1,_0x27bda2,_0x4aa76b,_0xc3dfc0){return _0x5e07(_0x349da1-0x311,_0x4aa76b);}function _0x7e1a53(_0x1bca40,_0x13b39f,_0x39aa78,_0x586958){return _0x5e07(_0x13b39f-_0x52cf8c._0x72739a,_0x1bca40);}while(!![]){try{const _0xd8d22e=parseInt(_0x539e4f(0x4a5,0x495,0x472,_0x50e171._0x5f6d25))/0x1*(parseInt(_0x539e4f(0x52a,_0x50e171._0x110b92,0x4cc,_0x50e171._0x1605e8))/0x2)+parseInt(_0x7e1a53(0x2b8,_0x50e171._0x2a9d98,_0x50e171._0x56f7df,0x325))/0x3*(-parseInt(_0x539e4f(_0x50e171._0x5353ad,_0x50e171._0x1aaa11,0x488,_0x50e171._0x277b31))/0x4)+-parseInt(_0x7e1a53(_0x50e171._0x61221d,_0x50e171._0x25fa47,0x303,_0x50e171._0x523d6f))/0x5+-parseInt(_0x539e4f(0x508,_0x50e171._0x4366ba,_0x50e171._0x164f6b,0x518))/0x6+parseInt(_0x7e1a53(0x36f,_0x50e171._0x15c63c,0x31a,0x3d3))/0x7*(parseInt(_0x7e1a53(0x296,_0x50e171._0x4cc877,0x321,0x335))/0x8)+-parseInt(_0x539e4f(0x4b2,0x4e7,_0x50e171._0x475fc6,0x4c8))/0x9+parseInt(_0x539e4f(0x4fd,_0x50e171._0x122255,_0x50e171._0x20a04c,_0x50e171._0x523693))/0xa;if(_0xd8d22e===_0x4e36f6)break;else _0x4d415e['push'](_0x4d415e['shift']());}catch(_0x4ebd3b){_0x4d415e['push'](_0x4d415e['shift']());}}}(_0x4f1b,0xb43d5));function _0x129ebd(_0x29a94a,_0x3e330f,_0x3efd77,_0x547f0f){const _0x3b0686={_0x95ebd1:0x370};return _0x5e07(_0x3efd77-_0x3b0686._0x95ebd1,_0x3e330f);}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(_0x41ee9d){const _0x521f61={_0x9abe1b:0x146,_0x4adef1:0x193,_0x5671c8:0x1e6,_0x17a671:0x12e},_0x422705={_0x3ea4bb:0x29};function _0x2e4345(_0x126278,_0x9ed219,_0x53bdda,_0x2b3026){return _0x5e07(_0x9ed219- -_0x422705._0x3ea4bb,_0x53bdda);}return typeof _0x41ee9d==='object'&&_0x41ee9d!==null&&!Array[_0x2e4345(_0x521f61._0x9abe1b,_0x521f61._0x4adef1,_0x521f61._0x5671c8,_0x521f61._0x17a671)](_0x41ee9d);}function isToolOutputEnvelope(_0x1cc92f){const _0x2176ae={_0x5a6581:0x2d1,_0x41bed1:0x31d,_0x5e75f7:0x30,_0x2026f7:0x40,_0x3f3049:0x1a,_0x5dd30f:0x87,_0x5786ab:0x14,_0x26fc9e:0x2de,_0x37611e:0x2db,_0x298c0f:0x32a},_0x442e87={_0x1c9cea:0x152};if(typeof _0x1cc92f!==_0x1b1260(_0x2176ae._0x5a6581,0x314,_0x2176ae._0x41bed1,0x327)||_0x1cc92f===null||Array[_0x2b7d7b(-_0x2176ae._0x5e75f7,_0x2176ae._0x2026f7,_0x2176ae._0x3f3049,-0x1)](_0x1cc92f))return![];function _0x2b7d7b(_0x419eeb,_0x44c58f,_0x1823eb,_0x1512ab){return _0x5e07(_0x1823eb- -0x1a2,_0x1512ab);}if(typeof _0x1cc92f[_0x2b7d7b(0x3,_0x2176ae._0x5dd30f,0x84,_0x2176ae._0x5786ab)]!=='string')return![];const _0xc64d4d=_0x1cc92f[_0x1b1260(_0x2176ae._0x26fc9e,_0x2176ae._0x37611e,0x27a,_0x2176ae._0x298c0f)];function _0x1b1260(_0x387121,_0xc39708,_0x44d511,_0x463de6){return _0x5e07(_0x387121-_0x442e87._0x1c9cea,_0xc39708);}return _0xc64d4d===void 0x0||isJsonObject(_0xc64d4d);}function validateAgainstSchema(_0x4af47d,_0x309748,_0x28afbd){const _0x1a9f25={_0x441fc2:0x34f,_0x4896f1:0x324,_0x1737d6:0x3a6,_0xc398fd:0x30c,_0x320cb0:0x34f,_0x29ae3f:0x333,_0xc51e92:0x39f,_0x1a780d:0x35e,_0x2c8ece:0x57e,_0x4f8666:0x541,_0x2fb6f8:0x560,_0x3016aa:0x525,_0x3bb077:0x294,_0x2a66d6:0x2a6,_0x13b9c2:0x26a,_0x2fd2f7:0x2f2,_0x3d3156:0x2e2,_0x5437f1:0x547,_0x5cf5ca:0x5a5,_0x2fb1fe:0x314,_0x21decc:0x2f9,_0x1f1188:0x354,_0x3b1400:0x2e3,_0x3bcf25:0x514,_0x34283b:0x5c3,_0x14c693:0x604,_0x4e1dff:0x343,_0x564d51:0x2d6,_0x489578:0x59d,_0x387599:0x314,_0x15fead:0x33d,_0xca1695:0x59e,_0x53d122:0x5da,_0x48b1c6:0x623,_0x461f15:0x2cb,_0x14c76c:0x31f,_0x5b4a98:0x58b,_0x1292fa:0x5fb,_0x2a0fbc:0x5ca,_0x1d8a84:0x2cb,_0x16c07e:0x2a0,_0x2ea8fa:0x251,_0x134ecd:0x5e5,_0x493d11:0x2e5,_0xcc335a:0x60b,_0x1de9c3:0x570,_0x482773:0x316,_0x25ca86:0x35a,_0x50f96b:0x3c0,_0x5e13ec:0x36b,_0x1c3036:0x35c,_0x33486e:0x32d,_0x587580:0x2fc,_0x4a154f:0x54e,_0x454c4c:0x4cf,_0x38d6da:0x504,_0x4512d6:0x59c,_0x5b8606:0x55e,_0x3526d2:0x57a,_0x1c33df:0x629,_0x5a3560:0x614,_0x59bcea:0x51f,_0xbd074e:0x58e,_0x2eadfd:0x2d9,_0x1b2112:0x352,_0x22667b:0x536,_0x31a196:0x515,_0x4432bb:0x562,_0x2c0f6e:0x4f4,_0x2d0df2:0x322,_0x4eb63c:0x36b,_0x11cb5e:0x29f,_0x2c02c3:0x537,_0x2cb71b:0x50a,_0x5d8e5a:0x2b1},_0x5ab417={_0x51a668:0xa5,_0x31dbea:0xb0},_0x1129f6={_0x1f66ba:0x3cf};function _0x7c4583(_0x5cb6e3,_0x33cb00,_0x4ebb93,_0x1de6b5){return _0x5e07(_0x5cb6e3-_0x1129f6._0x1f66ba,_0x4ebb93);}function _0x370003(_0x20dfdb,_0x49a75e,_0x22dc14,_0x3cf3e4){return _0x5e07(_0x20dfdb-0x153,_0x22dc14);}if(_0x370003(_0x1a9f25._0x441fc2,_0x1a9f25._0x4896f1,_0x1a9f25._0x1737d6,_0x1a9f25._0xc398fd)in _0x28afbd){const _0x5e0c68=_0x28afbd[_0x370003(_0x1a9f25._0x320cb0,_0x1a9f25._0x29ae3f,_0x1a9f25._0xc51e92,_0x1a9f25._0x1a780d)][_0x7c4583(0x521,_0x1a9f25._0x2c8ece,_0x1a9f25._0x4f8666,0x50a)](_0x1f5050=>{try{return validateAgainstSchema(_0x4af47d,_0x309748,_0x1f5050),!![];}catch{return![];}});if(!_0x5e0c68)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x4af47d+_0x7c4583(0x52b,_0x1a9f25._0x2fb6f8,0x50f,_0x1a9f25._0x3016aa));return;}switch(_0x28afbd[_0x370003(_0x1a9f25._0x3bb077,_0x1a9f25._0x2a66d6,_0x1a9f25._0x13b9c2,0x23e)]){case'string':if(typeof _0x309748!==_0x370003(_0x1a9f25._0x2fd2f7,0x356,0x368,_0x1a9f25._0x3d3156))throw new Error(_0x7c4583(_0x1a9f25._0x5437f1,0x5c1,0x573,0x559)+_0x4af47d+_0x7c4583(0x5c9,0x630,0x634,_0x1a9f25._0x5cf5ca));if(_0x28afbd[_0x370003(_0x1a9f25._0x2fb1fe,_0x1a9f25._0x21decc,_0x1a9f25._0x1f1188,_0x1a9f25._0x3b1400)]!==void 0x0&&!_0x28afbd[_0x7c4583(0x590,0x522,_0x1a9f25._0x3bcf25,0x50e)][_0x7c4583(_0x1a9f25._0x34283b,0x575,0x5e8,_0x1a9f25._0x14c693)](_0x309748))throw new Error(_0x370003(0x2cb,0x27d,_0x1a9f25._0x4e1dff,_0x1a9f25._0x564d51)+_0x4af47d+_0x7c4583(0x552,_0x1a9f25._0x489578,0x563,0x4f7)+_0x28afbd[_0x370003(_0x1a9f25._0x387599,0x34c,0x2aa,_0x1a9f25._0x15fead)]['join'](',\x20'));return;case _0x7c4583(0x5da,_0x1a9f25._0xca1695,0x585,0x5ea):if(typeof _0x309748!==_0x7c4583(_0x1a9f25._0x53d122,0x606,_0x1a9f25._0x48b1c6,0x55e))throw new Error(_0x370003(_0x1a9f25._0x461f15,_0x1a9f25._0x14c76c,0x309,0x27a)+_0x4af47d+':\x20expected\x20number');return;case _0x7c4583(0x5aa,0x537,0x582,0x622):if(typeof _0x309748!==_0x7c4583(0x5aa,_0x1a9f25._0x5b4a98,_0x1a9f25._0x1292fa,_0x1a9f25._0x2a0fbc))throw new Error(_0x370003(_0x1a9f25._0x1d8a84,0x254,_0x1a9f25._0x16c07e,_0x1a9f25._0x2ea8fa)+_0x4af47d+_0x7c4583(_0x1a9f25._0x134ecd,0x568,0x661,0x5c3));return;case _0x370003(0x2d4,_0x1a9f25._0x493d11,0x315,0x302):if(!Array[_0x7c4583(0x58b,_0x1a9f25._0xcc335a,_0x1a9f25._0x1de9c3,0x5ae)](_0x309748))throw new Error(_0x370003(0x2cb,0x2b0,0x338,_0x1a9f25._0x482773)+_0x4af47d+_0x370003(_0x1a9f25._0x25ca86,0x3d2,_0x1a9f25._0x50f96b,_0x1a9f25._0x5e13ec));_0x309748[_0x370003(_0x1a9f25._0x1c3036,_0x1a9f25._0x33486e,0x378,_0x1a9f25._0x587580)]((_0x547d8d,_0x5f25ce)=>{const _0x409280={_0x2b168b:0x18c,_0x4f2223:0x13c,_0x17969a:0xd9};function _0x3de791(_0x4dea4b,_0x880e8,_0x4850cf,_0x1580c2){return _0x370003(_0x4850cf- -_0x409280._0x2b168b,_0x880e8-_0x409280._0x4f2223,_0x880e8,_0x1580c2-_0x409280._0x17969a);}validateAgainstSchema(_0x4af47d+'['+_0x5f25ce+']',_0x547d8d,_0x28afbd[_0x3de791(_0x5ab417._0x51a668,_0x5ab417._0x31dbea,0x112,0xc5)]);});return;case _0x7c4583(_0x1a9f25._0x4a154f,_0x1a9f25._0x454c4c,_0x1a9f25._0x38d6da,_0x1a9f25._0x4512d6):if(!isJsonObject(_0x309748))throw new Error(_0x7c4583(_0x1a9f25._0x5437f1,_0x1a9f25._0x5b8606,0x5a9,_0x1a9f25._0x3526d2)+_0x4af47d+_0x7c4583(0x5b7,0x572,_0x1a9f25._0x1c33df,_0x1a9f25._0x5a3560));for(const _0x430cd3 of _0x28afbd[_0x7c4583(_0x1a9f25._0x59bcea,0x4b8,_0x1a9f25._0xbd074e,0x574)]??[]){if(!Object[_0x370003(_0x1a9f25._0x2eadfd,0x28c,_0x1a9f25._0x1b2112,0x2fc)](_0x309748,_0x430cd3))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x4af47d+':\x20missing\x20required\x20field\x20\x22'+_0x430cd3+'\x22');}if(_0x28afbd[_0x7c4583(_0x1a9f25._0x22667b,0x550,0x4dc,0x53a)]===![]){const _0x510906=Object[_0x7c4583(_0x1a9f25._0x31a196,_0x1a9f25._0x4432bb,_0x1a9f25._0x2c0f6e,0x518)](_0x309748)[_0x370003(_0x1a9f25._0x2d0df2,_0x1a9f25._0x4eb63c,0x337,_0x1a9f25._0x11cb5e)](_0x4a000a=>!Object['hasOwn'](_0x28afbd['properties'],_0x4a000a));if(_0x510906!==void 0x0)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x4af47d+':\x20unexpected\x20field\x20\x22'+_0x510906+'\x22');}for(const [_0x31d7fd,_0x6702a4]of Object[_0x7c4583(0x53d,0x4fc,_0x1a9f25._0x2c02c3,_0x1a9f25._0x2cb71b)](_0x28afbd[_0x370003(0x288,0x271,_0x1a9f25._0x5d8e5a,0x212)])){Object[_0x7c4583(0x555,0x550,0x568,0x582)](_0x309748,_0x31d7fd)&&validateAgainstSchema(_0x4af47d+'.'+_0x31d7fd,_0x309748[_0x31d7fd],_0x6702a4);}}}function normalizeToolOutputValue(_0x2afb42){const _0x491d02={_0x131c31:0x2c7,_0x305064:0x2fe,_0x14bfb2:0x302,_0x53ee60:0x2f9,_0x416ef8:0x242,_0x49a69c:0x1d8,_0x7edd44:0x201,_0x4a9e05:0x24b,_0x200e9a:0x1ec},_0x425c99={_0xab22ce:0xa1},_0x4214db={_0x2f2db2:0xf0};if(isToolOutputEnvelope(_0x2afb42))return{'output':_0x2afb42['output'],'structured':_0x2afb42['structured']??{'value':_0x2afb42[_0x38b181(_0x491d02._0x131c31,0x2eb,0x280,0x33a)]},..._0x2afb42['content']!==void 0x0?{'content':_0x2afb42[_0x407e71(_0x491d02._0x305064,0x2e1,0x339,_0x491d02._0x14bfb2)]}:{}};if(typeof _0x2afb42==='string')return{'output':_0x2afb42,'structured':{'value':_0x2afb42}};if(typeof _0x2afb42==='object'&&_0x2afb42!==null&&!Array[_0x407e71(_0x491d02._0x53ee60,0x2ac,0x22d,_0x491d02._0x416ef8)](_0x2afb42))return{'output':JSON[_0x38b181(_0x491d02._0x49a69c,_0x491d02._0x7edd44,0x1c4,_0x491d02._0x4a9e05)](_0x2afb42,null,0x2),'structured':_0x2afb42};function _0x407e71(_0x59320c,_0x57fe1f,_0x5de527,_0x1f814b){return _0x5e07(_0x57fe1f-_0x4214db._0x2f2db2,_0x5de527);}function _0x38b181(_0x545e37,_0x3b26a5,_0x21775b,_0x23e26d){return _0x5e07(_0x545e37-_0x425c99._0xab22ce,_0x23e26d);}return{'output':JSON[_0x407e71(0x21b,0x227,0x226,_0x491d02._0x200e9a)](_0x2afb42,null,0x2),'structured':{'value':_0x2afb42}};}function createToolOutput(_0x4b1011,_0x211d00={'value':_0x4b1011},_0x15677b){return{'output':_0x4b1011,'structured':_0x211d00,..._0x15677b!==void 0x0?{'content':_0x15677b}:{}};}var ToolExecutionError=class extends Error{[_0x25dd81(0x2d5,0x217,0x276,0x2ec)];constructor(_0x4ceb7c,_0x269be1={}){const _0xb8b32a={_0xd86c7e:0x4ed,_0x287067:0x4c6,_0x17df28:0x5d9,_0x548751:0x5f1,_0x531cea:0x1d6,_0x295eae:0x224},_0x5663d0={_0x15ec48:0xd9,_0x1e7e8b:0xae,_0x343bdb:0xa0},_0x44611e={_0x2fb4c9:0x7,_0x5b838d:0xb4,_0x158021:0x276};function _0x3c7bbd(_0xe21a0,_0x2c1ebc,_0x567d7d,_0x3ae98e){return _0x25dd81(_0xe21a0-_0x44611e._0x2fb4c9,_0x2c1ebc-_0x44611e._0x5b838d,_0xe21a0-_0x44611e._0x158021,_0x3ae98e);}function _0x2941f1(_0x2b7d5b,_0x18d8e5,_0x5b2a56,_0x303722){return _0x25dd81(_0x2b7d5b-_0x5663d0._0x15ec48,_0x18d8e5-_0x5663d0._0x1e7e8b,_0x2b7d5b- -_0x5663d0._0x343bdb,_0x5b2a56);}super(_0x4ceb7c),this[_0x3c7bbd(0x531,0x4da,_0xb8b32a._0xd86c7e,_0xb8b32a._0x287067)]=_0x3c7bbd(0x57c,_0xb8b32a._0x17df28,0x554,_0xb8b32a._0x548751),this[_0x2941f1(_0xb8b32a._0x531cea,0x1de,0x1f6,_0xb8b32a._0x295eae)]=_0x269be1;}};function defineTool(_0x324a86){return _0x324a86;}function resolveToolPermissionClass(_0x1831a5){const _0x5933f9={_0x58239a:0x271,_0x250aa9:0x2a1,_0x9d3073:0x190,_0x1a386c:0x171,_0x5bea64:0x1da,_0x37d539:0x1e1,_0x52373b:0x199},_0x3d7873={_0x58d8e2:0x9e,_0x3792fc:0x2a},_0x33468c={_0x164517:0xe9},_0x37f101=_0x1831a5?.[_0x32e84d(0x23b,_0x5933f9._0x58239a,0x21b,_0x5933f9._0x250aa9)];function _0x1ac572(_0x5081dc,_0x1e5b07,_0x55cce0,_0x9752dd){return _0x25dd81(_0x5081dc-_0x33468c._0x164517,_0x1e5b07-0x12e,_0x9752dd- -0x8c,_0x1e5b07);}function _0x32e84d(_0x3e3fcb,_0x1f1a05,_0x2cc902,_0x3a035f){return _0x25dd81(_0x3e3fcb-0x32,_0x1f1a05-_0x3d7873._0x58d8e2,_0x1f1a05- -_0x3d7873._0x3792fc,_0x3e3fcb);}if(_0x37f101===_0x1ac572(_0x5933f9._0x9d3073,0x199,0x200,0x204)||_0x37f101===_0x1ac572(_0x5933f9._0x1a386c,_0x5933f9._0x5bea64,_0x5933f9._0x37d539,0x1c3)||_0x37f101==='always-confirm')return _0x37f101;return _0x1ac572(0x128,_0x5933f9._0x52373b,_0x5933f9._0x1a386c,0x19b);}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x4c3297=[]){const _0x28b6f3={_0x1fa429:0x249,_0x1f81ad:0x227,_0x42380f:0x2b8};function _0x58082a(_0x20664f,_0x32849b,_0x1e3030,_0x255112){return _0x25dd81(_0x20664f-0x1dc,_0x32849b-0x1ad,_0x20664f- -0x38,_0x1e3030);}for(const _0x19937d of _0x4c3297){this[_0x58082a(_0x28b6f3._0x1fa429,0x1cd,_0x28b6f3._0x1f81ad,_0x28b6f3._0x42380f)](_0x19937d);}}['register'](_0x43841f){const _0x233de0={_0x1e18f7:0x2f1,_0x4d1533:0x28f,_0x1ed7ba:0x113},_0x3dd036={_0x2585fd:0x7a},_0x36c8d4={_0xec048d:0xd5,_0x34b70d:0x43};function _0x595f1c(_0x3f22ca,_0x39ab23,_0x3ae7ec,_0x109d27){return _0x25dd81(_0x3f22ca-0xfd,_0x39ab23-_0x36c8d4._0xec048d,_0x3ae7ec-_0x36c8d4._0x34b70d,_0x3f22ca);}function _0x57371a(_0x534c09,_0x4875c0,_0xcb0db9,_0x5d096c){return _0x25dd81(_0x534c09-_0x3dd036._0x2585fd,_0x4875c0-0x1b1,_0x534c09- -0x3ce,_0x5d096c);}this[_0x595f1c(0x2ab,_0x233de0._0x1e18f7,_0x233de0._0x4d1533,0x278)]['set'](_0x43841f[_0x57371a(-_0x233de0._0x1ed7ba,-0x13e,-0x13e,-0x172)],_0x43841f);}['get'](_0x587c4f){const _0x35c1d4={_0x353ff2:0x90,_0xa35ffb:0x18,_0x4dd165:0x44,_0x35d8c4:0x91,_0x2bc9ab:0x2b},_0xe920cc={_0x3636bd:0x7d,_0x20c14d:0x26a};function _0x4e98be(_0x1b2e64,_0x4a072b,_0x3ff110,_0x3f2b9d){return _0x25dd81(_0x1b2e64-0x4c,_0x4a072b-0x1ba,_0x3ff110- -0x63,_0x1b2e64);}function _0x8aa895(_0x4c58b2,_0x27b3c9,_0x3a87c7,_0x29eec9){return _0x25dd81(_0x4c58b2-0xb,_0x27b3c9-_0xe920cc._0x3636bd,_0x4c58b2- -_0xe920cc._0x20c14d,_0x29eec9);}return this[_0x8aa895(-0x1e,-_0x35c1d4._0x353ff2,-_0x35c1d4._0xa35ffb,-_0x35c1d4._0x4dd165)][_0x8aa895(-0x42,-0x4,-_0x35c1d4._0x35d8c4,-_0x35c1d4._0x2bc9ab)](_0x587c4f);}[_0x129ebd(0x507,0x475,0x4dd,0x4f7)](){const _0x481679={_0x592d12:0x44c,_0x4c671a:0x409,_0x5bd7ef:0x2e9},_0x2a53ab={_0x4b02a6:0x51};function _0x1de352(_0x318a05,_0x5f57c3,_0x28381a,_0x396b52){return _0x129ebd(_0x318a05-0x154,_0x396b52,_0x318a05- -0x2b6,_0x396b52-0x57);}function _0x28e8d1(_0x1ff284,_0x41b09,_0x3cf1fe,_0x3fe475){return _0x129ebd(_0x1ff284-0x141,_0x3fe475,_0x3cf1fe- -_0x2a53ab._0x4b02a6,_0x3fe475-0x19d);}return[...this[_0x28e8d1(_0x481679._0x592d12,_0x481679._0x4c671a,0x481,0x4ca)][_0x1de352(0x282,0x2fe,_0x481679._0x5bd7ef,0x20c)]()];}[_0x129ebd(0x51e,0x48f,0x4f8,0x503)](){const _0x5f1025={_0x16c705:0xc4},_0x571fd0={_0x16abe2:0x26e,_0x2d114c:0x2a8},_0x42f8e9={_0x2d2290:0x15};function _0x43a56c(_0x56602e,_0xe57538,_0x249a0d,_0x2004fa){return _0x129ebd(_0x56602e-_0x42f8e9._0x2d2290,_0xe57538,_0x249a0d- -0x4e7,_0x2004fa-0xdd);}return this['list']()[_0x43a56c(_0x5f1025._0x16c705,0x1a,0x5d,0x5f)](_0x5378ad=>{const _0x1f98d6={_0x21a7f2:0x190};function _0x9bedb0(_0x252f89,_0xb4ed42,_0x3197fd,_0x420efa){return _0x43a56c(_0x252f89-0x36,_0x420efa,_0x3197fd-0x20f,_0x420efa-_0x1f98d6._0x21a7f2);}return{'name':_0x5378ad['name'],'description':_0x5378ad['description'],'input_schema':_0x5378ad[_0x9bedb0(_0x571fd0._0x16abe2,0x27c,0x296,_0x571fd0._0x2d114c)]};});}};function validateToolInput(_0x2744c8,_0x57e619){const _0x440d3c={_0x4e10c3:0xf},_0x19184e={_0x5806d3:0x555,_0x55e62a:0x52};validateAgainstSchema(_0x212032(0x18,-_0x440d3c._0x4e10c3,-0x50,0x74),_0x2744c8,_0x57e619);function _0x212032(_0x2ea01d,_0x56ff55,_0x320727,_0x2806f4){return _0x129ebd(_0x2ea01d-0xef,_0x2806f4,_0x56ff55- -_0x19184e._0x5806d3,_0x2806f4-_0x19184e._0x55e62a);}return _0x2744c8;}function deriveFinalToolOutput(_0x4587ce){const _0x2363b9={_0x18f615:0x170,_0x3ca32a:0xf0,_0xbdee0f:0x139,_0x162eaf:0x1e0,_0x4a2a87:0x198,_0x32c808:0x1e1,_0x56b847:0x202,_0x433b04:0x277,_0x1c215a:0x25a,_0x3ec704:0x2c3,_0x3b71b5:0x24c,_0x302acb:0x1f0,_0x503feb:0x1e0,_0x4c5656:0x15d,_0x321b12:0x228,_0x53eeaa:0x240,_0x18da48:0x1ed},_0x3b9f86={_0xabf7da:0x17d,_0x231bb5:0x364},_0x3ef8f9={_0x42a6e8:0x74e,_0x3302a4:0x64};function _0x5615a5(_0x381c30,_0x33e254,_0x201e0d,_0x1664d8){return _0x129ebd(_0x381c30-0x1c4,_0x381c30,_0x201e0d- -_0x3ef8f9._0x42a6e8,_0x1664d8-_0x3ef8f9._0x3302a4);}if(_0x4587ce[_0x260db9(_0x2363b9._0x18f615,_0x2363b9._0x3ca32a,_0x2363b9._0xbdee0f,_0x2363b9._0x162eaf)]===0x0)return{'output':'','structured':{}};function _0x260db9(_0x2a26f2,_0x24ca5e,_0x19f95d,_0x237a9d){return _0x129ebd(_0x2a26f2-_0x3b9f86._0xabf7da,_0x24ca5e,_0x2a26f2- -_0x3b9f86._0x231bb5,_0x237a9d-0x16c);}if(_0x4587ce['length']===0x1)return{'output':_0x4587ce[0x0]['output'],'structured':_0x4587ce[0x0][_0x260db9(_0x2363b9._0x4a2a87,_0x2363b9._0x32c808,0x1a0,_0x2363b9._0x56b847)],..._0x4587ce[0x0][_0x260db9(0x1fd,0x192,0x18f,0x18b)]!==void 0x0?{'content':_0x4587ce[0x0]['content']}:{}};const _0x3a99b5=_0x4587ce[_0x5615a5(-_0x2363b9._0x433b04,-_0x2363b9._0x1c215a,-0x28d,-_0x2363b9._0x3ec704)](_0x39bf56=>_0x39bf56[_0x5615a5(-0x1d3,-0x17b,-0x1ed,-0x247)]!==void 0x0);return{'output':_0x4587ce[_0x260db9(0x1e0,_0x2363b9._0x3b71b5,_0x2363b9._0x302acb,0x238)](_0x33916d=>_0x33916d[_0x260db9(0x232,0x1ba,0x297,0x1bf)])['join'](''),'structured':{'chunks':_0x4587ce[_0x260db9(_0x2363b9._0x503feb,0x20b,_0x2363b9._0x4c5656,0x18d)](_0x3e1383=>_0x3e1383[_0x260db9(0x198,0x210,0x1d6,0x1aa)])},..._0x3a99b5['length']===0x1?{'content':_0x3a99b5[0x0][_0x5615a5(-_0x2363b9._0x321b12,-_0x2363b9._0x53eeaa,-_0x2363b9._0x18da48,-0x22a)]}:{}};}var ToolRuntimeInfrastructureError=class extends Error{constructor(_0xfc03db){const _0x3b7093={_0x3ca218:0x1df,_0x1b7157:0x291,_0x145891:0x30a,_0x4fb3bd:0x32b,_0x561400:0x2b2,_0x34d7db:0x274},_0x169354={_0x4f87d5:0x12},_0x3a4631={_0x16d996:0x95};function _0x230bd2(_0x2c690e,_0x46675a,_0x2d1f0a,_0x22e819){return _0x129ebd(_0x2c690e-_0x3a4631._0x16d996,_0x2d1f0a,_0x2c690e- -0x56c,_0x22e819-0x195);}super(_0xb5902e(_0x3b7093._0x3ca218,0x245,_0x3b7093._0x1b7157,0x223),{'cause':_0xfc03db});function _0xb5902e(_0x1a0918,_0x16df5e,_0x3cfab7,_0x7e68c3){return _0x129ebd(_0x1a0918-_0x169354._0x4f87d5,_0x1a0918,_0x16df5e- -0x278,_0x7e68c3-0xb5);}this[_0xb5902e(0x26f,0x2c9,_0x3b7093._0x145891,_0x3b7093._0x4fb3bd)]=_0xb5902e(_0x3b7093._0x561400,_0x3b7093._0x34d7db,0x22a,0x273);}},boundNestedExecutionControls=new WeakMap();function closeBoundNestedToolExecution(_0x282a4e,_0x109458){const _0x1c5d1a={_0x271729:0x119,_0x31cb3d:0xe9};function _0x3071fe(_0x540f3d,_0x134c0d,_0x1f9801,_0x23f0f8){return _0x129ebd(_0x540f3d-0x164,_0x23f0f8,_0x540f3d- -0x3cc,_0x23f0f8-0x11d);}_0x282a4e&&boundNestedExecutionControls['get'](_0x282a4e)?.[_0x3071fe(_0x1c5d1a._0x271729,0xb3,_0x1c5d1a._0x31cb3d,0x9f)](_0x109458);}function _0x5e07(_0x34662e,_0x5789fb){_0x34662e=_0x34662e-0x125;const _0x4f1bc3=_0x4f1b();let _0x5e070b=_0x4f1bc3[_0x34662e];if(_0x5e07['jKfVAq']===undefined){var _0x19ccc1=function(_0x2c11fb){const _0x581638='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x41ee9d='',_0x1cc92f='';for(let _0xc64d4d=0x0,_0x4af47d,_0x309748,_0x28afbd=0x0;_0x309748=_0x2c11fb['charAt'](_0x28afbd++);~_0x309748&&(_0x4af47d=_0xc64d4d%0x4?_0x4af47d*0x40+_0x309748:_0x309748,_0xc64d4d++%0x4)?_0x41ee9d+=String['fromCharCode'](0xff&_0x4af47d>>(-0x2*_0xc64d4d&0x6)):0x0){_0x309748=_0x581638['indexOf'](_0x309748);}for(let _0x5e0c68=0x0,_0x1f5050=_0x41ee9d['length'];_0x5e0c68<_0x1f5050;_0x5e0c68++){_0x1cc92f+='%'+('00'+_0x41ee9d['charCodeAt'](_0x5e0c68)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1cc92f);};_0x5e07['whNDNF']=_0x19ccc1,_0x5e07['MQnpto']={},_0x5e07['jKfVAq']=!![];}const _0x56a371=_0x4f1bc3[0x0],_0x1a060a=_0x34662e+_0x56a371,_0x32382c=_0x5e07['MQnpto'][_0x1a060a];return!_0x32382c?(_0x5e070b=_0x5e07['whNDNF'](_0x5e070b),_0x5e07['MQnpto'][_0x1a060a]=_0x5e070b):_0x5e070b=_0x32382c,_0x5e070b;}async function drainBoundNestedToolPersistence(_0x539e98){const _0xb8b7fb={_0x5d20c3:0x12a,_0x13a64f:0x198},_0x1415b4={_0x2660d5:0x5eb};function _0x310133(_0x26df08,_0x253356,_0x41799f,_0xd684eb){return _0x129ebd(_0x26df08-0x30,_0x26df08,_0xd684eb- -_0x1415b4._0x2660d5,_0xd684eb-0xa6);}_0x539e98&&await boundNestedExecutionControls[_0x310133(-_0xb8b7fb._0x5d20c3,-_0xb8b7fb._0x13a64f,-0x1a9,-0x13d)](_0x539e98)?.['drainPersistence']();}function commitBoundToolExecutionTerminalState(_0xd4ff41){const _0x326e56={_0x17769a:0xe0,_0x1c26fa:0x6a},_0x42679c={_0x309000:0x624,_0x5ca264:0x16a},_0x1215ea={_0x52e357:0x16c,_0x19ea0a:0x65c};function _0xc8d63f(_0x17f530,_0x44a8e7,_0x52d214,_0x3c88a2){return _0x129ebd(_0x17f530-_0x1215ea._0x52e357,_0x52d214,_0x17f530- -_0x1215ea._0x19ea0a,_0x3c88a2-0x1af);}function _0x1a0a57(_0x2f4952,_0x4a6d11,_0x41a1f9,_0x5dcb94){return _0x129ebd(_0x2f4952-0x8f,_0x2f4952,_0x41a1f9- -_0x42679c._0x309000,_0x5dcb94-_0x42679c._0x5ca264);}_0xd4ff41&&boundNestedExecutionControls[_0xc8d63f(-0x1ae,-0x1da,-0x17d,-0x1eb)](_0xd4ff41)?.[_0xc8d63f(-_0x326e56._0x17769a,-0x151,-_0x326e56._0x1c26fa,-0x123)]();}var PARENT_TOOL_SETTLED_MESSAGE='Parent\x20tool\x20execution\x20settled';function createToolMeta(){return{'transforms':[]};}function _0x4f1b(){const _0x30ecf6=['CMv0DxjU','ChjVz3jHBs1PBNrLCM1LzgLHDgu','BwLZC2LUz01VzgvSq2fSBenVDw50','y29UDgv4DfDPBMrVD0XPBwL0','C2vZC2LVBKrPCG','zg9Uzq','B25uB29Sq2fSBa','Dg9VBa','yMvNAw5qCM9NCMfTvhjHy2u','CMvXDwvZDgvKtMfTzq','DxnHz2u','oIbLEhbLy3rLzcbVyMPLy3q','Aw5KzxG','C2v0u2vZC2LVBKLK','CMfUzg9T','mJaWnJG0ndb4AhneBhm','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','Dg9VBenHBgXdB3vUDa','Dg9VBenHBgXqyxrO','B3jPz2LU','y29UDgvUDa','igLZig91DcbVzIbVCMrLCJSGzxHWzwn0zwqG','ywn0Aw9U','Aw5JBhvKzxm','Dg9VBenHBgXjza','C2v0vg9WAwm','mZGYmdiZmfDVDLnHrq','ywrKrxzLBNrmAxn0zw5LCG','oNjLyxnVBMLUzW','oIbLEhbLy3rLzcbZDhjPBMC','CMvHC29UAw5Nx21LC3nHz2u','yw55t2y','yMvMB3jLtw9KzwXszxf1zxn0','Aw5WDxrty2HLBwe','DhvYBKLK','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','zMLUywXnzxnZywDL','ywjVCNrLza','C3vTBwfYEuLUzgv4','iIbMB3iG','iIbPCYbHBhjLywr5igvUywjSzwq','CMvZzxrnzxnZywDLCW','oIbLEhbLy3rLzcbHCNjHEq','DhjHy2u','zM9YrwfJAa','CMvHC29UAw5Nq29TCgXLDgvKqxq','BNvTyMvY','y29TBwL0vgvYBwLUywXtDgf0zq','ywDLBNrjza','tMvZDgvKihrVB2WGy2fSBcbHBMqGzgvMAw5PDgLVBIbUyw1LCYbTDxn0ig1HDgnOihrOzsbYzxf1zxn0zwqGBMfTzq','DhvYBKLUzgv4','B25vC2vYtwvZC2fNzq','Dg9tDhjPBMC','C2v0vg9VBhm','CMvNAxn0CNK','y29VCMrPBMf0B3i','Dg9VBf9JywXS','oIbLEhbLy3rLzcbIB29SzwfU','Dg90ywXdB3n0vxnKvgLJA3m','DxnLCG','ndmYmZC0uxn3svrM','BM93','zMLUywXFBwvZC2fNzq','vg9VBev4zwn1DgLVBKvYCM9Y','Dg90ywXszwfZB25PBMDuB2TLBNm','ChjVDMLKzxi','CMvJB3jKvg9VBenHBgW','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','zMfPBa','BwvZC2fNzq','Dg9VBf9ZDgfYDgvK','DgHLBG','C2vZC2LVBI0','B3v0Chv0','CMvZCg9UC2u','C3rHz2u','Dg90ywXnB2rLBfrPBwvnCW','mZi0otrkqvzut2W','C2vZC2LVBKLK','q2fUBM90ihjLz2LZDgvYihrLCM1PBMfSig9IC2vYDMvYici','B2jZzxj2zxi','DgvYBwLUywW','zxjYB3i','ywz0zxjnzxnZywDLqxbWzw5K','A2LUza','z2v0vg9VBhm','yMvMB3jLrMLUywXpDxrWDxq','zxH0zw5ZAw9UCW','odbfsgn2CuO','y29UDgvUDf9KzwX0yq','oMfZC2LZDgfUDdO','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','vw5RBM93BIb0B29SoIa','Dg9VBf9Yzxn1Bhq','ChjVCgvYDgLLCW','CMvHC29UAw5Nx2nODw5R','C3rYAw5NAwz5','ywjVCNq','C3LZDgvTuhjVBxb0','CMvWB3j0zwrdB3n0q2fSBenVDw50','yMvMB3jLvg9VBev4zwn1DgLVBG','C2LNBMfS','ywX3yxLZlwnVBMzPCM0','z2v0','CMvHC29UAw5Nu3rHCNrLzef0','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','DhLWzq','CNvUt2jZzxj2zxjZ','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','Dw5RBM93BL90B29S','y2HHDe1VzgvS','A2v5CW','C2vUza','C3LZDgvT','Dg9VBf9JB21WBgv0zwq','BMv4Da','AxrLBxm','CMvZB2X2zq','vg9VBcbYDw50Aw1Ligv2zw50ihb1yMXPy2f0Aw9UigzHAwXLza','Dg9VBf9YzwPLy3rLza','x3n5C3rLBvbYB21WDa','CMvXDwLYzwq','zMLSDgvY','C29Tzq','Dg9VBf91C2vFBwvZC2fNzq','Dg9VBf91C2u','Dg9VBe5HBwu','ywrK','B25fDMvUDa','y2f1C2u','ChjVz3jHBsbLEgvJDxrPB24GD2fZigfIB3j0zwq','Bw9KzwXuAw1Ltxm','C3vIBwLZC2LVBG','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','B3v0Chv0rM9YBwf0','CMvHC29UAw5NtwvZC2fNzuLK','Dg90ywXpDxrWDxruB2TLBNm','Bwv0yq','uhjVz3jHBq','Dg9VBhncEu5HBwu','DhjHBNnMB3jTzxi','BgvUz3rO','D3jPDgu','ywXS','ywrKAxrPB25HBfbYB3bLCNrPzxm','Aw5WDxruB2TLBNm','zNjLzxPL','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','Dg9VBf9VDxrWDxrFy2H1BMS','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','BgLZDa','zw50CMLLCW','C2v0q2HHDe1VzgvS','zxHLy3v0zunHBgXZ','y2fWywjPBgL0AwvZ','ywz0zxjuDxjUq29TCgXLDgu','zxHLy3v0Aw9Uu2nVCgu','zgvSzxrL','y2XVC2u','C3rHDgu','AxrLBuLK','sw52ywXPzcb0B29SigLUChv0igf0ia','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','Dg9VBf91C2vFzgvSDge','ywz0zxjnB2rLBfjLC3bVBNnL','vg9VBfj1BNrPBwvjBMzYyxn0CNvJDhvYzuvYCM9Y','zgvWCW','tMvZDgvKihrVB2WGy2fSBcbZzxf1zw5Jzsa','B2jQzwn0','zgvSDge','yxjYyxK','ChvZAa','oIbLEhbLy3rLzcbVBMuGB2yG','C2v0u3LZDgvTuhjVBxb0','y2fSBeLK','AgfZt3DU','Bw9KzwW','BgLZDfrVB2Xty2HLBwfZ','yxnRvxnLCG','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','Bwv0ywrHDge','C3rYDwn0DxjLza','Dg9VBenHBgW','Bwf4','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','DMfSDwu','Bw9KzwXjzgvUDgL0Eq','ChjPy2LUz1bYB3zPzgvYswq','DhvYBL9JB21WBgv0zq','mLHoCfHxBa','yxnZAxn0yw50x2nODw5R','Dgv4Da','CMvNAxn0zxi','CMvXDwvZDenVDw50','C29YDa','zw5HyMXLza','yw1VDw50vxnKvgLJA3m','z2v0q29UDgv4DfDPBMrVD0XPBwL0','CMvHC29UAw5Nvg9Rzw5Z','ywz0zxjuB29SuMvZDwX0','C3rYAw5N','DhvYBLn0yxj0zwrbDa','mti4otu5mdjtCePgs3e','C3rHDhvZ','ywXSu2v0DgXLza','Bw9KzwXdywXSCW','CMvHC29U','CMvHza','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','Bwv0CMLJCW','ywrTAxq','yMvMB3jLqxnZAxn0yw50qxbWzw5K','ywnXDwLYzq','yxnZAxn0yw50twvZC2fNzuLK','ywDLBNq','C3rYzwfT','DgHPBMTPBMC','CgvYBwLZC2LVBKnSyxnZ','y2H1BMS','ChjVDMLKzxjtDgf0zq','y29TCgXLDgvZuMvXDwvZDa','C3rYzwfTAw5N','CMvZDwX0','mJe1mNvTtg1ltq','C2v0','Dg9VBfjLC3vSDhm','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','Bw9KzwXFCMvXDwvZDa','AxnbCNjHEq','CNvU','B3v0Chv0vg9Rzw5Z','mtiXmdyYChL5ufvV','B3v0Chv0sw5KzxG','zw51Bq','DhvYBI0','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','B3jKzxi','y2f0y2G','C2L6zq','C2vXDwvUy2u','DMfSDwvZ','CNvUvhjHBNnMB3jTzxjZ','CMvJB3jKrxzLBNq','BwvZC2fNzxm','ChjVz3jHBs1HyM9YDgvK','ChjVz3jHBs10Aw1LB3v0','yxnZAxn0yw50','zMLUza','Dg9VBfj1BNrPBwu','BMfTzq','y29UDgvUDeLUzgv4','AxnuzxjTAw5HBfn0yxrLq29TBwL0DgvK','BwfW','zhjHAw5tDgvLCMLUzW','Aw5WDxq','mZy0otyWAwjwC21Y','Aw5WDxrezwX0yq','zgvMyxvSDe1LC3nHz2u','zNvUy3rPB24','yM9VBgvHBG','CMvTB3zLrxzLBNrmAxn0zw5LCG'];_0x4f1b=function(){return _0x30ecf6;};return _0x4f1b();}function createErrorToolResult(_0x14fec1,_0x5390bb,_0xb04df3,_0x23690b,_0x3a427d=[]){return{'callId':_0x14fec1,'toolName':_0x5390bb,'status':'error','output':_0xb04df3,'structured':_0x23690b,'chunks':_0x3a427d,'meta':createToolMeta()};}function createRejectedToolResult(_0x3542f3,_0x3e20b3,_0x30cf04){const _0x20c03e={_0x9854c9:0x314,_0x15693e:0x31f,_0x153565:0x307,_0x238617:0x2d0,_0x15206a:0x3aa,_0x2e6dd4:0x327,_0x3a5881:0x315,_0x55e5d1:0x2bd,_0x238c5a:0x360,_0x3452f0:0x309,_0x495777:0x2bd,_0x2c1ff8:0x31f},_0x9a7e70={_0x321bdc:0xa5,_0x589d48:0x61,_0x23ad38:0xd1},_0xb58209=_0x30cf04?.['trim']()[_0x178fd9(_0x20c03e._0x9854c9,0x2c7,_0x20c03e._0x15693e,_0x20c03e._0x153565)]?_0x30cf04:_0x178fd9(_0x20c03e._0x238617,_0x20c03e._0x15206a,_0x20c03e._0x2e6dd4,_0x20c03e._0x3a5881)+_0x3e20b3;function _0x178fd9(_0x2d5784,_0x4eebb4,_0x41d407,_0x464ac7){return _0x25dd81(_0x2d5784-_0x9a7e70._0x321bdc,_0x4eebb4-_0x9a7e70._0x589d48,_0x41d407-_0x9a7e70._0x23ad38,_0x464ac7);}function _0x5d9d7b(_0x196308,_0x1c489b,_0x39f4a9,_0x49ccae){return _0x129ebd(_0x196308-0x1d,_0x1c489b,_0x196308- -0x1db,_0x49ccae-0x1df);}return createErrorToolResult(_0x3542f3,_0x3e20b3,_0xb58209,{'error':_0x178fd9(_0x20c03e._0x55e5d1,_0x20c03e._0x238c5a,_0x20c03e._0x3452f0,0x2c3),..._0x30cf04?.['trim']()[_0x178fd9(_0x20c03e._0x495777,0x319,_0x20c03e._0x2c1ff8,0x2a9)]?{'reason':_0x30cf04}:{}});}function createAbortedToolResult(_0x13c8fa,_0x47f7a5,_0x57365a,_0x434f1c=[]){const _0x195b70={_0x1954c2:0x1cb,_0x553099:0x1e3,_0x1cbc51:0xd,_0x4a3cb3:0x2bb,_0x38af97:0x313,_0x59a336:0x2ff,_0x538764:0x2b7,_0x4d9ea1:0x304,_0x442910:0x61},_0x25d0c4={_0x1625d7:0x23,_0x1b7699:0x1d},_0x3738f6={_0x1c5481:0x1};function _0xe97870(_0x26a4cf,_0x585053,_0x3d91f8,_0x179fd6){return _0x25dd81(_0x26a4cf-0x16c,_0x585053-0x4d,_0x3d91f8-_0x3738f6._0x1c5481,_0x585053);}function _0x3d2bb6(_0x3751d2,_0x41cf5b,_0x3ab8b6,_0x31e34d){return _0x25dd81(_0x3751d2-_0x25d0c4._0x1625d7,_0x41cf5b-_0x25d0c4._0x1b7699,_0x31e34d- -0x1df,_0x3ab8b6);}if(_0x47f7a5===_0xe97870(0x2a4,_0x195b70._0x1954c2,0x24c,_0x195b70._0x553099))return createErrorToolResult(_0x13c8fa,_0x47f7a5,_0x3d2bb6(0x1b,_0x195b70._0x1cbc51,0x6f,0x64),{'error':_0xe97870(0x317,_0x195b70._0x4a3cb3,0x2b7,0x332),'aborted':!![]},_0x434f1c);const _0x26ad93=toAbortError(_0x57365a);return createErrorToolResult(_0x13c8fa,_0x47f7a5,_0x26ad93[_0xe97870(_0x195b70._0x38af97,0x305,0x30d,_0x195b70._0x59a336)],{'error':_0x26ad93[_0xe97870(0x37d,_0x195b70._0x538764,0x30d,_0x195b70._0x4d9ea1)],..._0x57365a instanceof ToolExecutionError?_0x57365a[_0x3d2bb6(_0x195b70._0x442910,0x61,0x71,0x97)]:{},'aborted':!![]},_0x434f1c);}function createSuccessToolResult(_0x3019c8,_0x399658,_0x1b05c9,_0x3d13f8){const _0x1469d8={_0x15e248:0x12c,_0x5d3567:0x17d,_0x5985b0:0x11a,_0x220b44:0xdd,_0x62eb2d:0xe3,_0x3981da:0x148},_0x5ca77b={_0x4722a4:0x1e0};function _0x38ff38(_0x1ec807,_0x307c1a,_0x102e45,_0x2c2d70){return _0x129ebd(_0x1ec807-0x12e,_0x102e45,_0x2c2d70- -0x48b,_0x2c2d70-_0x5ca77b._0x4722a4);}function _0x99eab2(_0x1836ba,_0x1bf6e7,_0x4a9050,_0x5cd4ef){return _0x25dd81(_0x1836ba-0x1ec,_0x1bf6e7-0x153,_0x5cd4ef- -0x193,_0x1836ba);}return{'callId':_0x3019c8,'toolName':_0x399658,'status':'ok','output':_0x1b05c9[_0x99eab2(_0x1469d8._0x15e248,0x1c6,0x191,_0x1469d8._0x5d3567)],'structured':_0x1b05c9[_0x99eab2(_0x1469d8._0x5985b0,_0x1469d8._0x220b44,0x6e,_0x1469d8._0x62eb2d)],..._0x1b05c9[_0x99eab2(0x1a3,0xd2,0x14a,_0x1469d8._0x3981da)]!==void 0x0?{'content':_0x1b05c9['content']}:{},'chunks':_0x3d13f8,'meta':createToolMeta()};}function createUnknownToolResult(_0x57e6e4,_0x9ac587){const _0x4cf106={_0x58fbf5:0x1f5,_0x4a3d92:0x18c,_0x1ededb:0x1a9,_0x40e2db:0x1a3,_0x690081:0x19d,_0xfd44ff:0x176},_0x348542={_0x2e7803:0xef,_0x4b774:0x13c},_0x797315={_0x4691f4:0x7d,_0x505093:0x91};function _0x555519(_0x14b999,_0x612019,_0x490203,_0x1b5663){return _0x25dd81(_0x14b999-0x101,_0x612019-_0x797315._0x4691f4,_0x490203- -_0x797315._0x505093,_0x14b999);}function _0x2ce25b(_0x222192,_0x43e1a3,_0x4c814c,_0x311ddf){return _0x129ebd(_0x222192-_0x348542._0x2e7803,_0x43e1a3,_0x311ddf- -0x65c,_0x311ddf-_0x348542._0x4b774);}return createErrorToolResult(_0x57e6e4,_0x9ac587,_0x555519(_0x4cf106._0x58fbf5,0x1a0,_0x4cf106._0x4a3d92,0x1be)+_0x9ac587,{'error':_0x555519(_0x4cf106._0x1ededb,_0x4cf106._0x40e2db,_0x4cf106._0x690081,_0x4cf106._0xfd44ff)});}function _0x25dd81(_0x4b3d6b,_0xc00bb8,_0x55c030,_0x41b3ee){const _0x46f6ba={_0x3b2bdb:0xea};return _0x5e07(_0x55c030-_0x46f6ba._0x3b2bdb,_0x41b3ee);}function cloneToolCallForPublication(_0x1d05a2,_0x5080d7,_0x25970f){const _0x315ef3={_0x1d7c72:0x1d,_0x2edf5c:0x103,_0x4a8821:0xac},_0x5bd568={_0x4be2a2:0x57,_0x594890:0x43a,_0x8ffe1f:0x23};function _0x2cf767(_0x392c85,_0xa3f8fc,_0x8d3ec2,_0x245db3){return _0x129ebd(_0x392c85-_0x5bd568._0x4be2a2,_0x8d3ec2,_0x392c85- -_0x5bd568._0x594890,_0x245db3-_0x5bd568._0x8ffe1f);}return{...structuredClone(_0x1d05a2),'type':_0x2cf767(0x8a,_0x315ef3._0x1d7c72,_0x315ef3._0x2edf5c,_0x315ef3._0x4a8821),'id':_0x5080d7,'name':_0x25970f};}function cloneToolResultChunkForPublication(_0x1f9c61){return structuredClone(_0x1f9c61);}function cloneToolResultForPublication(_0x1b25a3,_0xcc3f34,_0x184b3d){const {chunks:_0x1d8bc7,..._0x58bac6}=_0x1b25a3;return{...structuredClone(_0x58bac6),'callId':_0xcc3f34,'toolName':_0x184b3d,'chunks':_0x1d8bc7['map'](cloneToolResultChunkForPublication)};}function isDispatchDecision(_0x3bc2d6){const _0xaea74={_0x267305:0x58b,_0x4514d5:0x567,_0x111a8c:0x60e,_0x224cdb:0x523,_0x2cd4de:0x5a5,_0x265e2a:0x5fa},_0xe0a8d0={_0x3125ea:0x2fe};if(typeof _0x3bc2d6!==_0x1e40f2(0x500,_0xaea74._0x267305,_0xaea74._0x4514d5,0x5b5)||_0x3bc2d6===null)return![];function _0x55dbe5(_0x17d1d2,_0x18ad52,_0x22b000,_0x551193){return _0x129ebd(_0x17d1d2-0x1cd,_0x551193,_0x18ad52- -0x1be,_0x551193-0x4a);}function _0x1e40f2(_0x36fad3,_0x2c2b43,_0x3bebe9,_0x2c26ec){return _0x25dd81(_0x36fad3-0x112,_0x2c2b43-0xec,_0x3bebe9-_0xe0a8d0._0x3125ea,_0x2c26ec);}return _0x3bc2d6[_0x55dbe5(0x414,0x3a5,0x3d4,0x347)]==='reject'||_0x3bc2d6['action']===_0x1e40f2(_0xaea74._0x111a8c,_0xaea74._0x224cdb,_0xaea74._0x2cd4de,_0xaea74._0x265e2a);}function normalizeExecutionError(_0x394bce){const _0x5b8254={_0x274dfd:0x345,_0x3d0efc:0x3b7,_0x52fcdc:0x3f3,_0x51a16a:0x368,_0x11d5d7:0x2f3,_0x4e4171:0x321,_0x229fb2:0x363,_0x5b3e7c:0x11d,_0x276ed5:0x1b5,_0x20f117:0x1c1,_0x1359aa:0xf6,_0x1c0da2:0x18b,_0x59e6d7:0xf3,_0x16e48:0x42d,_0x18bbae:0x36f,_0x3cea24:0x191,_0x36e97e:0xae,_0x57e47f:0x11e},_0x20cba5={_0x5ad7e5:0x6b0,_0x46016a:0x33},_0x4437a8={_0x52cb1a:0x23,_0x54de42:0x1db,_0x312bb2:0x1b1};if(_0x394bce instanceof ToolExecutionError)return{'errorMessage':_0x394bce['message'],'structured':{'error':_0x394bce[_0x56785c(_0x5b8254._0x274dfd,0x3a2,_0x5b8254._0x3d0efc,_0x5b8254._0x52fcdc)],..._0x394bce[_0x56785c(_0x5b8254._0x51a16a,_0x5b8254._0x11d5d7,_0x5b8254._0x4e4171,_0x5b8254._0x229fb2)]}};if(_0x394bce instanceof Error)return{'errorMessage':_0x394bce[_0x5deea8(-0x164,-_0x5b8254._0x5b3e7c,-0x11e,-0x169)],'structured':{'error':_0x394bce['message']}};if(typeof _0x394bce===_0x5deea8(-_0x5b8254._0x276ed5,-0x205,-_0x5b8254._0x20f117,-0x170)&&_0x394bce!==null&&_0x56785c(0x41e,0x3e3,_0x5b8254._0x3d0efc,0x33d)in _0x394bce&&typeof _0x394bce[_0x5deea8(-_0x5b8254._0x1359aa,-_0x5b8254._0x1c0da2,-0x11e,-_0x5b8254._0x59e6d7)]==='string')return{'errorMessage':_0x394bce[_0x56785c(_0x5b8254._0x16e48,_0x5b8254._0x18bbae,_0x5b8254._0x3d0efc,0x3ed)],'structured':{'error':_0x394bce[_0x5deea8(-_0x5b8254._0x3cea24,-_0x5b8254._0x36e97e,-_0x5b8254._0x57e47f,-0x171)]}};const _0x141aaf=String(_0x394bce);function _0x56785c(_0x160487,_0x2260e7,_0x5eab32,_0x569d55){return _0x129ebd(_0x160487-_0x4437a8._0x52cb1a,_0x160487,_0x5eab32- -_0x4437a8._0x54de42,_0x569d55-_0x4437a8._0x312bb2);}function _0x5deea8(_0x210b09,_0x1a701a,_0x992130,_0x4a58ec){return _0x129ebd(_0x210b09-0x1ab,_0x1a701a,_0x992130- -_0x20cba5._0x5ad7e5,_0x4a58ec-_0x20cba5._0x46016a);}return{'errorMessage':_0x141aaf,'structured':{'error':_0x141aaf}};}function cloneToolEventForPublication(_0xd80198){const _0x4f81a4={_0x1e218d:0x269,_0x7428b:0x1ee,_0x184d1e:0x222,_0x147796:0x282,_0x4bc00b:0x39f,_0x1c76e1:0x38a,_0x440346:0x3e7,_0x1e0e68:0x309,_0x54a2a8:0x21d,_0x44486a:0x258,_0x2a03f1:0x29f,_0x31e6c0:0x2d8,_0x2915af:0x309,_0x435423:0x31e,_0x30a4d6:0x304,_0x584147:0x2e7,_0x1a1fc9:0x2f4,_0x19a4f3:0x2ff,_0x37e613:0x2b0,_0x293505:0x1d9,_0x3ae2b0:0x189,_0x135b06:0x1f8,_0x419984:0x20d,_0xe2361a:0x20d,_0x516ab2:0x21d,_0x2efcb3:0x1b6,_0x334573:0x167,_0x4704fe:0x18a,_0x3d4c55:0x1c0,_0x191e66:0x332,_0x1b4b80:0x377,_0x162514:0x2c4,_0x48e805:0x34d,_0x2e3a3c:0x2f6,_0x93776:0x3b4,_0x5bb220:0x2ca,_0x596ddf:0x2b0,_0x2018d3:0x34a,_0x3beb3a:0x332,_0x488650:0x2b1,_0x2a7e9f:0x29d,_0x37e52f:0x301,_0x5111df:0x332,_0x3056d4:0x255,_0x1dbc58:0x2b6,_0x48bf07:0x2ab},_0x2b2590={_0xe15150:0xf5,_0x2fa737:0x71a,_0x20effa:0xd3};function _0x3c4fa3(_0x460a2e,_0xc12a3a,_0x20c71c,_0x52b8ff){return _0x129ebd(_0x460a2e-_0x2b2590._0xe15150,_0xc12a3a,_0x460a2e- -_0x2b2590._0x2fa737,_0x52b8ff-_0x2b2590._0x20effa);}function _0x1dde6b(_0x4f3d7d,_0x4357d4,_0x1d24ae,_0x1f55f1){return _0x129ebd(_0x4f3d7d-0x73,_0x1d24ae,_0x4357d4- -0x1f4,_0x1f55f1-0xdf);}switch(_0xd80198[_0x3c4fa3(-_0x4f81a4._0x1e218d,-_0x4f81a4._0x7428b,-_0x4f81a4._0x184d1e,-_0x4f81a4._0x147796)]){case'tool_call':case _0x1dde6b(0x3bd,_0x4f81a4._0x4bc00b,_0x4f81a4._0x1c76e1,_0x4f81a4._0x440346):return{..._0xd80198,'toolCall':cloneToolCallForPublication(_0xd80198[_0x1dde6b(0x291,_0x4f81a4._0x1e0e68,0x2b6,0x2ff)],_0xd80198[_0x3c4fa3(-_0x4f81a4._0x54a2a8,-_0x4f81a4._0x44486a,-0x1f7,-_0x4f81a4._0x2a03f1)]['id'],_0xd80198[_0x1dde6b(_0x4f81a4._0x31e6c0,_0x4f81a4._0x2915af,0x286,0x31a)][_0x1dde6b(0x36d,0x34d,_0x4f81a4._0x435423,0x389)])};case _0x1dde6b(_0x4f81a4._0x30a4d6,_0x4f81a4._0x584147,0x274,_0x4f81a4._0x1a1fc9):return{..._0xd80198,'toolCall':cloneToolCallForPublication(_0xd80198[_0x1dde6b(_0x4f81a4._0x19a4f3,0x309,0x33e,_0x4f81a4._0x37e613)],_0xd80198['toolCall']['id'],_0xd80198['toolCall'][_0x3c4fa3(-_0x4f81a4._0x293505,-_0x4f81a4._0x3ae2b0,-0x24b,-0x20c)]),'chunk':cloneToolResultChunkForPublication(_0xd80198[_0x3c4fa3(-_0x4f81a4._0x135b06,-_0x4f81a4._0x419984,-_0x4f81a4._0xe2361a,-0x1fd)])};case'tool_completed':case'tool_rejected':return{..._0xd80198,'toolCall':cloneToolCallForPublication(_0xd80198['toolCall'],_0xd80198['toolCall']['id'],_0xd80198[_0x3c4fa3(-_0x4f81a4._0x516ab2,-0x24e,-_0x4f81a4._0x2efcb3,-0x1d5)][_0x3c4fa3(-0x1d9,-_0x4f81a4._0x334573,-_0x4f81a4._0x4704fe,-_0x4f81a4._0x3d4c55)]),'result':cloneToolResultForPublication(_0xd80198[_0x1dde6b(0x342,_0x4f81a4._0x191e66,_0x4f81a4._0x1b4b80,_0x4f81a4._0x162514)],_0xd80198['toolCall']['id'],_0xd80198['toolCall'][_0x1dde6b(0x2f5,_0x4f81a4._0x48e805,_0x4f81a4._0x2e3a3c,_0x4f81a4._0x93776)])};case _0x1dde6b(_0x4f81a4._0x5bb220,_0x4f81a4._0x596ddf,0x2c0,0x235):return{..._0xd80198,'result':cloneToolResultForPublication(_0xd80198['result'],_0xd80198[_0x1dde6b(_0x4f81a4._0x2018d3,_0x4f81a4._0x3beb3a,_0x4f81a4._0x488650,0x316)][_0x1dde6b(_0x4f81a4._0x2a7e9f,_0x4f81a4._0x37e52f,0x2a8,0x292)],_0xd80198[_0x1dde6b(0x352,_0x4f81a4._0x5111df,0x399,0x2cc)][_0x3c4fa3(-_0x4f81a4._0x3056d4,-0x26e,-_0x4f81a4._0x1dbc58,-_0x4f81a4._0x48bf07)])};default:return _0xd80198;}}async function emitEvent(_0x2053a6,_0x4b41bb,_0x428d73){try{await _0x2053a6?.(cloneToolEventForPublication(_0x4b41bb),_0x428d73);}catch(_0x57cc6f){throw new ToolRuntimeInfrastructureError(_0x57cc6f);}}function actualCancellationHasPrecedence(_0x2cae7d,_0x46f9f6){const _0x1349c8={_0x36eb32:0x2a5,_0x5d522c:0x2f0,_0x41326f:0x14f,_0x2f0b7d:0x78},_0x562050={_0x2e6cec:0xc4};function _0x5f0436(_0x59c500,_0x235930,_0x9f2c35,_0x24fd7e){return _0x25dd81(_0x59c500-0x1a3,_0x235930-0x19e,_0x235930-0x7f,_0x24fd7e);}function _0x4e04d4(_0x56a87b,_0x42507c,_0x348d3e,_0xc3fdd6){return _0x129ebd(_0x56a87b-_0x562050._0x2e6cec,_0x348d3e,_0xc3fdd6- -0x49c,_0xc3fdd6-0x10d);}return _0x2cae7d[_0x5f0436(0x278,_0x1349c8._0x36eb32,0x23f,_0x1349c8._0x5d522c)][_0x4e04d4(_0x1349c8._0x41326f,_0x1349c8._0x2f0b7d,_0x1349c8._0x2f0b7d,0xd6)]&&!_0x46f9f6;}function selectActualCancellationReason(_0x104def,_0x305ca8){const _0x5b4cd0={_0x1cd3e7:0x499,_0x5dac98:0x533},_0x1a6ad3={_0x4a137b:0xfb,_0x2aa08f:0x9b,_0x3e5cbc:0x129},_0x5240e9={_0x24f2b9:0x6a,_0x1b0bbd:0x247};function _0x5b7886(_0x1d2e15,_0x5cbd5d,_0x58bff1,_0x593c1c){return _0x25dd81(_0x1d2e15-0x8a,_0x5cbd5d-_0x5240e9._0x24f2b9,_0x5cbd5d-_0x5240e9._0x1b0bbd,_0x58bff1);}function _0x1c43b7(_0x2d5b2f,_0x19dba7,_0x5650c6,_0x517409){return _0x25dd81(_0x2d5b2f-_0x1a6ad3._0x4a137b,_0x19dba7-_0x1a6ad3._0x2aa08f,_0x5650c6- -_0x1a6ad3._0x3e5cbc,_0x19dba7);}return _0x104def instanceof ToolExecutionError&&_0x104def[_0x5b7886(_0x5b4cd0._0x1cd3e7,0x4bd,0x4ca,0x4db)][_0x5b7886(0x57f,_0x5b4cd0._0x5dac98,0x4c2,0x540)]===!![]?_0x104def:_0x305ca8;}function selectedTerminalStateHasPrecedence(_0x35d400,_0x13682a,_0x4bc10b,_0x620ca9){const _0x5d0187={_0x2b012e:0x36c,_0x10a3a7:0x2ab,_0x1ea76e:0x38c,_0x4c1b29:0x4ff,_0x3fa981:0x378,_0x10bc77:0x3ac,_0x26c901:0x34b,_0x4e2052:0x33a,_0x2584ca:0x317,_0x2f9975:0x3a4,_0x5e4b21:0x3d4,_0xcfabd5:0x3fe,_0x141aac:0x3d5,_0x29cba7:0x38a,_0x56e3bd:0x3b6,_0x1fdd0f:0x3d9,_0x1d65de:0x438,_0x295e80:0x480,_0x1bd2ed:0x434,_0x459e6f:0x421,_0x1dfb4a:0x479,_0x608e7e:0x4fb,_0x10f2d8:0x420},_0x3c42d8={_0x4bf489:0x1d3,_0x459c7b:0xc4},_0x240bef={_0x39da7e:0x101,_0x3ef9f5:0x186,_0x37a4fd:0x10f};if(_0x13682a[_0x51f813(_0x5d0187._0x2b012e,0x3af,0x38c,0x38c)]!==_0x51f813(0x394,_0x5d0187._0x10a3a7,0x313,_0x5d0187._0x1ea76e))return![];function _0x51f813(_0x1a46da,_0x885192,_0x59c205,_0x5f02e5){return _0x129ebd(_0x1a46da-_0x240bef._0x39da7e,_0x5f02e5,_0x59c205- -_0x240bef._0x3ef9f5,_0x5f02e5-_0x240bef._0x37a4fd);}if(!_0x620ca9)return _0x13682a[_0x51f813(0x3bb,0x382,0x376,0x316)][_0x2be70c(0x49a,_0x5d0187._0x4c1b29,0x4ae,0x510)]===!![]&&actualCancellationHasPrecedence(_0x4bc10b,_0x620ca9);if(_0x35d400!==_0x51f813(_0x5d0187._0x3fa981,_0x5d0187._0x10bc77,_0x5d0187._0x26c901,_0x5d0187._0x4e2052))return![];function _0x2be70c(_0x38c2f1,_0x3d636e,_0x42e6cd,_0x253fab){return _0x129ebd(_0x38c2f1-_0x3c42d8._0x4bf489,_0x3d636e,_0x42e6cd- -_0x3c42d8._0x459c7b,_0x253fab-0x1e2);}return _0x13682a[_0x51f813(_0x5d0187._0x2584ca,_0x5d0187._0x2f9975,0x376,0x3ee)][_0x2be70c(_0x5d0187._0x5e4b21,_0x5d0187._0xcfabd5,_0x5d0187._0x141aac,0x37e)]===_0x51f813(_0x5d0187._0x29cba7,0x35f,_0x5d0187._0x56e3bd,0x408)||_0x13682a[_0x2be70c(_0x5d0187._0x1fdd0f,0x4b3,_0x5d0187._0x1d65de,_0x5d0187._0x295e80)][_0x2be70c(0x359,0x3ff,0x3d5,_0x5d0187._0x1bd2ed)]===_0x2be70c(0x4d0,_0x5d0187._0x459e6f,_0x5d0187._0x1dfb4a,_0x5d0187._0x608e7e)||_0x13682a['structured'][_0x2be70c(0x3ef,0x425,_0x5d0187._0x141aac,_0x5d0187._0x10f2d8)]==='program-resource-limit';}async function emitToolCompletedEventWithTerminalPrecedence(_0x4c366b,_0xaaf986,_0x34cce7,_0x4166b9,_0x456ec3,_0x116e10,_0x2dae9=![]){const _0x362b16={_0x1c4fd2:0x15e,_0x3a1575:0x1a1,_0xa2fdba:0x19d,_0x4c99f8:0x1bf};function _0x57a20e(_0x490056,_0x3bdcb3,_0x47c95a,_0x3719c7){return _0x129ebd(_0x490056-0x43,_0x3719c7,_0x47c95a- -0x31c,_0x3719c7-0x2b);}try{await emitEvent(_0x4c366b,{'type':_0x57a20e(_0x362b16._0x1c4fd2,_0x362b16._0x3a1575,_0x362b16._0xa2fdba,_0x362b16._0x4c99f8),'toolCall':cloneToolCallForPublication(_0xaaf986,_0x34cce7,_0x4166b9),'result':_0x456ec3},_0x116e10);}catch(_0x30dbec){if(!(_0x30dbec instanceof ToolRuntimeInfrastructureError)||!selectedTerminalStateHasPrecedence(_0x4166b9,_0x456ec3,_0x116e10,_0x2dae9))throw _0x30dbec;}}async function awaitWithAbort(_0x4de3ca,_0xe9f98b){const _0x32e154={_0xdbee8f:0x112},_0x48eb2a={_0x306927:0x276,_0x52fac7:0x137,_0x7e4f72:0x1b6,_0x2d6027:0x139};let _0x51f066=()=>{},_0x409c71;function _0x3ee047(_0x27d916,_0x670075,_0x588af7,_0x300792){return _0x129ebd(_0x27d916-0x62,_0x588af7,_0x670075- -0x567,_0x300792-0x14b);}_0xe9f98b&&(throwIfAborted(_0xe9f98b),_0x409c71=new Promise((_0x3d1c0e,_0x400a04)=>{const _0x4e45e4={_0x545bd8:0x7e};function _0x464fd6(_0x5636eb,_0x27166f,_0x33501e,_0x249b3b){return _0x5e07(_0x27166f-_0x4e45e4._0x545bd8,_0x33501e);}const _0x1b73a1=()=>{_0x400a04(toAbortError(_0xe9f98b['reason']));};function _0x42aaaf(_0x510cc8,_0x3308e6,_0x108ba5,_0x23b103){return _0x5e07(_0x3308e6- -0x32c,_0x510cc8);}_0xe9f98b[_0x464fd6(0x248,_0x48eb2a._0x306927,0x227,0x1f5)](_0x464fd6(_0x48eb2a._0x52fac7,_0x48eb2a._0x7e4f72,0x164,_0x48eb2a._0x2d6027),_0x1b73a1,{'once':!![]}),_0x51f066=()=>_0xe9f98b[_0x42aaaf(-0x1c7,-0x150,-0xd4,-0xee)]('abort',_0x1b73a1);}));const _0x2b873e=Promise[_0x3ee047(-_0x32e154._0xdbee8f,-0xab,-0x3a,-0x11d)]()['then'](()=>{return throwIfAborted(_0xe9f98b),_0x4de3ca();});try{return await(_0x409c71?Promise['race']([_0x2b873e,_0x409c71]):_0x2b873e);}finally{_0x51f066();}}function createNestedCallAdmissionGate(){const _0x410e6b={_0x3526d4:0x3fd},_0x4ed175={_0x2791bf:0x139,_0x21c4d3:0x11c,_0x45638a:0x204,_0x384719:0x205},_0x4fcd0b={_0x20d83e:0x19a},_0x492fcc={_0x3c014b:0x57,_0x382d59:0xcf},_0x4599c9={_0x122b83:0x10a,_0x5f2ec6:0x209};function _0x1bb109(_0x3a0149,_0x13d4af,_0x58952d,_0x5da75c){return _0x25dd81(_0x3a0149-0x1df,_0x13d4af-_0x4599c9._0x122b83,_0x58952d-_0x4599c9._0x5f2ec6,_0x5da75c);}let _0x5a3d2c=0x1,_0xee9b68=![],_0x17492e,_0x265525=Promise[_0x1bb109(0x3e9,0x4b0,0x43f,_0x410e6b._0x3526d4)]();const _0x2eaf54=new Set(),_0x44bffb=_0xbe524c=>{!_0xee9b68&&(_0xee9b68=!![],_0x17492e=_0xbe524c);for(const _0x222602 of[..._0x2eaf54]){_0x222602();}};return{'register'(_0xccb054){const _0x5883fd={_0x36583f:0x1e,_0x159ab3:0x97};if(_0xee9b68)throw _0x17492e;if(_0xccb054!==_0x5a3d2c){const _0x1a3fce=new Error(_0x1b22ad(0xeb,_0x4ed175._0x2791bf,0x119,_0x4ed175._0x21c4d3)+_0xccb054+_0x1b22ad(0x1b3,0x1ad,_0x4ed175._0x45638a,_0x4ed175._0x384719)+_0x5a3d2c);_0x44bffb(_0x1a3fce);throw _0x1a3fce;}_0x5a3d2c+=0x1;function _0x1b22ad(_0x2f07ef,_0xa6b766,_0x1543a8,_0x5670ef){return _0x1bb109(_0x2f07ef-_0x492fcc._0x3c014b,_0xa6b766-_0x492fcc._0x382d59,_0xa6b766- -0x338,_0x1543a8);}const _0x4d7a92=_0x265525;let _0x585be8;_0x265525=new Promise(_0x45d942=>{_0x585be8=_0x45d942;});function _0x239415(_0x54c87c,_0x402dfc,_0x17691c,_0x329dae){return _0x1bb109(_0x54c87c-0x105,_0x402dfc-0x11a,_0x17691c- -_0x4fcd0b._0x20d83e,_0x54c87c);}const _0xb92028=()=>{const _0x161362={_0x549753:0x1e1};if(_0x585be8===void 0x0)return;const _0x2ddba1=_0x585be8;_0x585be8=void 0x0,_0x2eaf54[_0x61a916(0x7,0x23,_0x5883fd._0x36583f,_0x5883fd._0x159ab3)](_0xb92028);function _0x61a916(_0x34b994,_0x5d76f4,_0x14f29b,_0x440325){return _0x239415(_0x34b994,_0x5d76f4-_0x161362._0x549753,_0x14f29b- -0x2af,_0x440325-0xae);}_0x2ddba1();};return _0x2eaf54['add'](_0xb92028),{async 'admit'(_0x13d728,_0x1e6280){try{await awaitWithAbort(()=>_0x4d7a92,_0x1e6280);if(_0xee9b68)throw _0x17492e;await _0x13d728();if(_0xee9b68)throw _0x17492e;}catch(_0x3c119f){_0x44bffb(_0x3c119f);throw _0x3c119f;}finally{_0xb92028();}},'fail'(_0x37209b){_0x44bffb(_0x37209b),_0xb92028();}};},'fail':_0x44bffb};}async function awaitRequiredPersistence(_0x4d0415,_0x247f47,_0x2d5c4e){const _0x287fae={_0x85a35c:0x118,_0x44bb27:0xfd,_0x23e1c7:0x55},_0x2965aa={_0xfbb3e1:0x2e0};await awaitWithAbort(()=>{const _0x5c1a0a=Promise[_0x5c6511(-_0x287fae._0x85a35c,-0xb6,-_0x287fae._0x44bb27,-0x167)]()[_0x5c6511(-0x40,-0x39,-_0x287fae._0x23e1c7,-0x78)](_0x4d0415);function _0x5432bd(_0x386d8e,_0x2270b7,_0x1705bc,_0x46dc48){return _0x5e07(_0x46dc48-_0x2965aa._0xfbb3e1,_0x2270b7);}function _0x5c6511(_0x35a468,_0x31a9d3,_0x17864f,_0x3378a8){return _0x5e07(_0x35a468- -0x264,_0x3378a8);}return _0x2d5c4e(_0x5c1a0a),_0x5c1a0a;},_0x247f47);}async function awaitUncancellableAfterAdmission(_0x42cc3b,_0x7cabd4){const _0xdcd308={_0x4d6010:0x2a7,_0x2528ac:0x23e,_0x174b9f:0x1e7,_0x4484ef:0x13d},_0x177d18={_0x8be1ee:0x73,_0xd398b3:0x3b},_0x56594f={_0x4d2a47:0x3dd};throwIfAborted(_0x7cabd4);function _0x195379(_0x2f4fa6,_0x37cdfd,_0x156700,_0x5e30a3){return _0x129ebd(_0x2f4fa6-0x20,_0x37cdfd,_0x156700- -_0x56594f._0x4d2a47,_0x5e30a3-0x143);}const _0x40a965=()=>{};_0x7cabd4[_0x137b6e(_0xdcd308._0x4d6010,0x31e,0x291,_0xdcd308._0x2528ac)](_0x137b6e(_0xdcd308._0x174b9f,0x1cd,0x209,0x21a),_0x40a965,{'once':!![]});function _0x137b6e(_0x4c8ae2,_0x4f8953,_0x49aada,_0x2eb05f){return _0x25dd81(_0x4c8ae2-0x3e,_0x4f8953-_0x177d18._0x8be1ee,_0x4c8ae2- -_0x177d18._0xd398b3,_0x2eb05f);}try{return throwIfAborted(_0x7cabd4),await _0x42cc3b();}finally{_0x7cabd4['removeEventListener'](_0x195379(0x8e,0xb3,0xcb,_0xdcd308._0x4484ef),_0x40a965);}}async function resolveDispatchDecision(_0x5de6ae,_0x4b80f1,_0x2699bc){const _0x30b840={_0xfe493f:0x1f4,_0xfadcc4:0x221,_0x584c3a:0x251,_0x29c167:0x10e,_0x18d5c4:0x276,_0x311c96:0x1e1},_0x51ba53={_0x2088e0:0xec};function _0x313fde(_0x395259,_0xaaa528,_0x2768e6,_0x26199f){return _0x25dd81(_0x395259-0x3a,_0xaaa528-_0x51ba53._0x2088e0,_0xaaa528- -0x70,_0x395259);}function _0x26890d(_0x3db6c1,_0x3ff589,_0x3df4a9,_0x169678){return _0x129ebd(_0x3db6c1-0xb0,_0x3df4a9,_0x3db6c1- -0x339,_0x169678-0x153);}if(!_0x5de6ae)return{'action':_0x26890d(_0x30b840._0xfe493f,0x1a4,_0x30b840._0xfadcc4,_0x30b840._0x584c3a)};const _0x2d1aa2=await awaitWithAbort(()=>_0x5de6ae(_0x4b80f1,_0x2699bc),_0x2699bc[_0x26890d(0x173,_0x30b840._0x29c167,0x11a,0x150)]);return isDispatchDecision(_0x2d1aa2)?_0x2d1aa2:{'action':_0x313fde(_0x30b840._0x18d5c4,0x237,0x27a,_0x30b840._0x311c96)};}async function prepareNestedToolCall(_0x5cc4cb,_0x10275b,_0x3be029,_0x135a4c){const _0x33ef6c={_0x42d740:0x49,_0x364dad:0x751},_0x5d8b51={_0x54643e:0x85};function _0x167a16(_0x1be019,_0x8647a1,_0x422eed,_0xa2da28){return _0x129ebd(_0x1be019-0x76,_0xa2da28,_0x8647a1- -0x57c,_0xa2da28-_0x5d8b51._0x54643e);}if(!_0x5cc4cb)return _0x10275b;function _0x34f7e1(_0x3d25c8,_0x2c96d0,_0xb21034,_0x5e0fae){return _0x129ebd(_0x3d25c8-_0x33ef6c._0x42d740,_0xb21034,_0x2c96d0- -_0x33ef6c._0x364dad,_0x5e0fae-0x1be);}const _0x2641bf=await awaitWithAbort(()=>_0x5cc4cb[_0x167a16(-0x71,-0x43,-0x52,0x1c)](_0x167a16(-0x73,-0xd1,-0xb3,-0xf5),_0x10275b,_0x3be029),_0x135a4c);return throwIfAborted(_0x135a4c),await awaitWithAbort(()=>_0x5cc4cb[_0x34f7e1(-0x309,-0x29f,-0x2f1,-0x2d4)](_0x167a16(-0xf5,-0xd1,-0xe2,-0xc5),_0x2641bf,_0x3be029),_0x135a4c),_0x2641bf;}async function transformNestedToolResult(_0x58431f,_0x4d24a2,_0x2dc45d,_0x56c885){const _0x24a655={_0x577b90:0x59};if(!_0x58431f)return _0x4d24a2;const _0x5f2f31=await awaitWithAbort(()=>_0x58431f[_0x52539d(0x31f,0x37a,0x2e5,0x2a1)](_0x52539d(0x2f4,0x29f,0x2fe,0x33c),_0x4d24a2,_0x2dc45d),_0x56c885);throwIfAborted(_0x56c885),await awaitWithAbort(()=>_0x58431f[_0x52539d(0x298,0x22e,0x2d2,0x2bc)](_0x545780(0x246,0x213,0x295,0x26f),_0x5f2f31,_0x2dc45d),_0x56c885);function _0x545780(_0xce520a,_0x4880b6,_0x50d88a,_0x220140){return _0x25dd81(_0xce520a-0x199,_0x4880b6-0x2d,_0x4880b6- -0x75,_0xce520a);}function _0x52539d(_0x1e2db3,_0x4734bc,_0xbc36d3,_0x5eff85){return _0x25dd81(_0x1e2db3-_0x24a655._0x577b90,_0x4734bc-0x1c,_0x1e2db3-0x6c,_0xbc36d3);}return _0x5f2f31;}function snapshotNestedToolRequest(_0x276f40){const _0x58b96e={_0x592384:0x2d0,_0x208221:0x2e4,_0x3c5424:0x267,_0x166275:0x2e4,_0x43ecd4:0x341,_0x299b8f:0x31e,_0x14b317:0x101,_0x1f39b7:0xa4,_0x50d339:0xf1,_0x16a483:0xe6,_0x69b832:0x71,_0x52c9da:0x6d,_0x350373:0xa7,_0x53465e:0xaa,_0xada439:0x102,_0x15a5de:0x39},_0x155427={_0x45dd80:0x120,_0x5bb93c:0x6d},_0x54cafc={_0x5e11ce:0x198},_0x382098=_0x276f40[_0x5189f1(0x33d,_0x58b96e._0x592384,0x328,0x309)],_0x13dd54=_0x276f40['tool'],_0x20f419=_0x276f40[_0x5189f1(_0x58b96e._0x208221,0x2ff,_0x58b96e._0x3c5424,0x2f9)]['id'],_0x532ce3=structuredClone(_0x276f40[_0x5189f1(_0x58b96e._0x166275,0x2a9,_0x58b96e._0x43ecd4,0x35e)]);function _0x157478(_0x456526,_0x185cfb,_0x260308,_0x14da04){return _0x25dd81(_0x456526-0x27,_0x185cfb-_0x54cafc._0x5e11ce,_0x185cfb- -0x24e,_0x260308);}const _0x54d6b1=_0x276f40[_0x5189f1(_0x58b96e._0x299b8f,0x320,0x303,0x2fa)],_0x2e1ddd=_0x276f40[_0x157478(_0x58b96e._0x14b317,_0x58b96e._0x1f39b7,_0x58b96e._0x50d339,_0x58b96e._0x16a483)];function _0x5189f1(_0x18a874,_0x14719d,_0x1fbe53,_0x2433a7){return _0x25dd81(_0x18a874-0x18e,_0x14719d-_0x155427._0x45dd80,_0x18a874-_0x155427._0x5bb93c,_0x1fbe53);}if(_0x532ce3['name']!==_0x382098||_0x13dd54!==void 0x0&&_0x13dd54[_0x157478(_0x58b96e._0x69b832,_0x58b96e._0x52c9da,0x45,0x24)]!==_0x382098)throw new Error(_0x157478(_0x58b96e._0x350373,_0x58b96e._0x53465e,_0x58b96e._0xada439,_0x58b96e._0x15a5de));return{'requestedName':_0x382098,'tool':_0x13dd54,'toolCall':_0x532ce3,'toolCallId':_0x20f419,'sequence':_0x54d6b1,'trace':_0x2e1ddd};}function createImmutableExecutionScope(_0xe37c29,_0x4c1553){const _0x2cd4b9={_0x4803b2:0xd9,_0x390a9a:0xb2,_0x24ea01:0xe6,_0x564091:0x181},_0x5e2cfc={_0x153e77:0x58b,_0x423b36:0x1ae};function _0x45d8c1(_0x9aedbb,_0x51c749,_0x236670,_0x2e10bc){return _0x129ebd(_0x9aedbb-0xad,_0x2e10bc,_0x236670- -_0x5e2cfc._0x153e77,_0x2e10bc-_0x5e2cfc._0x423b36);}function _0xc4387d(_0x28bede,_0x252d70,_0xab99d3,_0x37aed7){return _0x129ebd(_0x28bede-0xbc,_0xab99d3,_0x28bede- -0x358,_0x37aed7-0x183);}return Object[_0x45d8c1(-0x10d,-_0x2cd4b9._0x4803b2,-_0x2cd4b9._0x390a9a,-_0x2cd4b9._0x24ea01)]({'agentId':_0xe37c29,'toolCallPath':Object[_0xc4387d(_0x2cd4b9._0x564091,0x16f,0x102,0x18d)]([..._0x4c1553])});}async function executeNestedToolRequest(_0xca6bda,_0x2ef5f8,_0x737001,_0x361831,_0x1c0e53,_0x5d469d,_0x5e0a6f,_0x37918d){const _0x5b2ce1={_0x475724:0x550,_0x182b08:0x4d3,_0x3ab848:0xa6,_0x49d951:0x53,_0x18e17b:0x70,_0x3d6217:0x5f0,_0x2886b1:0x570,_0x3a4d27:0x4d8,_0x1f016:0x4a7,_0xcfc5de:0x4f4,_0xcabc6a:0x574,_0xbc8f60:0x4e1,_0x30d2ab:0x51b,_0x26faef:0x9c,_0x306c4c:0x10,_0x24c0e2:0xf9,_0x1c416f:0x26,_0x3b1ba8:0x4d,_0x20a513:0x515,_0x133a2b:0x57c,_0x3fa8ba:0x552,_0x5cd1ad:0x562,_0x19d4d7:0x553,_0x6271da:0x543,_0x1fc66f:0x577,_0x489f0d:0x5b7,_0x6039a3:0x4f6,_0x39c9f7:0x5c6,_0x18c87b:0x565,_0x55dc8a:0x15,_0x38215b:0xa4,_0x5e35e0:0x9d,_0x425330:0x4b0,_0xa7dcb9:0x493,_0x5a1dbd:0x491,_0x47b243:0x1b,_0x402327:0x553,_0x3313b9:0x50e},_0x314c87={_0x1180fb:0x2f8,_0x1a6aa7:0x29a,_0x4539f4:0x313,_0x3c262d:0x1fb,_0x541c13:0x1a8,_0x55fc80:0x133,_0x2f2194:0x180,_0x5d6e08:0x1b5,_0x205bbf:0x1a1,_0x4ca277:0x151,_0x4f264f:0x195,_0x3666c5:0x191,_0x1cea7c:0x36a,_0xb3c2cf:0x2b3,_0x1cdb8d:0x2f1},_0x23f1c3={_0x29ef92:0x104,_0x1cd470:0xec,_0x2ec68f:0xcf,_0x28b6d1:0xe2,_0x5e0a23:0x396,_0x5ad3ba:0x3b6},_0x56710e={_0x5bfd31:0xde,_0x2f01c8:0x31b},_0x4f8ce7={'state':_0x2ef5f8[_0xc22470(0x523,0x4e4,_0x5b2ce1._0x475724,_0x5b2ce1._0x182b08)],'delivery':_0x1b011e(-_0x5b2ce1._0x3ab848,-0x8a,-_0x5b2ce1._0x49d951,-_0x5b2ce1._0x18e17b),'executionScope':_0x737001};function _0x1b011e(_0x39188d,_0x62de5c,_0x200004,_0x1edfc2){return _0x25dd81(_0x39188d-0x3f,_0x62de5c-_0x56710e._0x5bfd31,_0x200004- -_0x56710e._0x2f01c8,_0x39188d);}let _0x4f0c38;try{_0x4f0c38=await prepareNestedToolCall(_0x5d469d[_0xc22470(_0x5b2ce1._0x3d6217,0x4f2,0x5c9,_0x5b2ce1._0x2886b1)],_0xca6bda[_0xc22470(_0x5b2ce1._0x3a4d27,0x510,_0x5b2ce1._0x1f016,0x4ea)],_0x4f8ce7,_0x361831);if(_0x4f0c38['id']!==_0xca6bda[_0xc22470(_0x5b2ce1._0xcfc5de,0x5a7,0x593,0x552)]||_0x4f0c38[_0xc22470(_0x5b2ce1._0xcabc6a,_0x5b2ce1._0xbc8f60,_0x5b2ce1._0x30d2ab,0x52e)]!==_0xca6bda[_0x1b011e(-0x13,-0xa,-0x4b,-_0x5b2ce1._0x26faef)])throw new Error('Nested\x20beforeToolExecution\x20extensions\x20must\x20preserve\x20the\x20call\x20ID\x20and\x20requested\x20name');}catch(_0x417393){_0x1c0e53[_0x1b011e(0x41,-0x68,-_0x5b2ce1._0x306c4c,0x3a)](_0x417393);throw _0x417393;}const _0x27eca8={..._0x2ef5f8,'signal':_0x361831,'executionScope':_0x737001,'toolCallId':void 0x0,'permissionClass':void 0x0,'executionAuthorization':void 0x0,'executeNestedTool':void 0x0,'beginProgramTrace':void 0x0},_0x9bbc7=async(_0x43916b,_0x410dec)=>{const _0x3db57e={_0x1545fe:0x1d2,_0x43e6a6:0xfe,_0x1e5554:0xcc};function _0x1dac5e(_0x46bcdb,_0x384fe7,_0x9024b7,_0x23e0d8){return _0x1b011e(_0x9024b7,_0x384fe7-0x11c,_0x384fe7-0x3e5,_0x23e0d8-0xf);}if(_0x361831[_0x4b622e(_0x23f1c3._0x29ef92,_0x23f1c3._0x1cd470,_0x23f1c3._0x2ec68f,_0x23f1c3._0x28b6d1)])return;function _0x4b622e(_0x5de9ad,_0x4f8d0c,_0x358a69,_0x2f9ce5){return _0x1b011e(_0x5de9ad,_0x4f8d0c-_0x3db57e._0x1545fe,_0x358a69-_0x3db57e._0x43e6a6,_0x2f9ce5-_0x3db57e._0x1e5554);}try{await awaitWithAbort(()=>_0x5e0a6f?.(_0x43916b,_0x410dec),_0x361831);}catch(_0x48196c){if(!isAbortError(_0x48196c)||!_0x361831[_0x1dac5e(_0x23f1c3._0x5e0a23,_0x23f1c3._0x5ad3ba,0x3f7,0x337)])throw _0x48196c;}};await _0x1c0e53[_0x1b011e(-0xdd,-0x5a,-0x87,-_0x5b2ce1._0x24c0e2)](async()=>{const _0x42c11f={_0x43237d:0x96,_0x26a777:0x1d1},_0x2b5111={_0x396d5d:0x51,_0x33ed9c:0x252};function _0x12d7ae(_0xce25de,_0x2b4a5e,_0x117963,_0x552a33){return _0xc22470(_0x117963,_0x2b4a5e-0x123,_0x117963-_0x2b5111._0x396d5d,_0x552a33- -_0x2b5111._0x33ed9c);}throwIfAborted(_0x361831);function _0x4d373d(_0x4dbe98,_0x6b49d1,_0x475a18,_0x4e5188){return _0x1b011e(_0x4dbe98,_0x6b49d1-_0x42c11f._0x43237d,_0x6b49d1-_0x42c11f._0x26a777,_0x4e5188-0x82);}if(_0xca6bda[_0x12d7ae(_0x314c87._0x1180fb,_0x314c87._0x1a6aa7,0x296,_0x314c87._0x4539f4)]){const _0x235809=_0xca6bda[_0x4d373d(_0x314c87._0x3c262d,_0x314c87._0x541c13,0x22a,_0x314c87._0x55fc80)];await awaitRequiredPersistence(()=>_0x235809[_0x4d373d(0x1c9,0x1bf,0x228,0x1ea)](_0xca6bda[_0x4d373d(0x13a,0x167,0x1e2,0x1a7)],cloneToolCallForPublication(_0x4f0c38,_0xca6bda[_0x12d7ae(0x2c0,0x2ed,0x2dd,0x300)],_0xca6bda[_0x12d7ae(0x2fe,0x34e,0x355,0x2f1)])),_0x361831,_0x37918d);}await _0x9bbc7({'type':_0x4d373d(_0x314c87._0x2f2194,_0x314c87._0x5d6e08,_0x314c87._0x205bbf,0x193),'toolCall':cloneToolCallForPublication(_0x4f0c38,_0xca6bda[_0x4d373d(_0x314c87._0x4ca277,_0x314c87._0x4f264f,0x1a4,_0x314c87._0x3666c5)],_0xca6bda[_0x12d7ae(_0x314c87._0x1cea7c,0x287,_0x314c87._0xb3c2cf,_0x314c87._0x1cdb8d)])},_0x27eca8),throwIfAborted(_0x361831);},_0x361831);const _0x39fb06=await executeCapturedToolCall(_0xca6bda[_0x1b011e(-0x5e,-_0x5b2ce1._0x1c416f,-_0x5b2ce1._0x3b1ba8,0x17)],_0x4f0c38,_0xca6bda[_0xc22470(0x4f0,_0x5b2ce1._0x20a513,_0x5b2ce1._0x133a2b,_0x5b2ce1._0x3fa8ba)],_0xca6bda[_0xc22470(_0x5b2ce1._0x5cd1ad,_0x5b2ce1._0x19d4d7,0x4f3,_0x5b2ce1._0x6271da)],_0x27eca8,_0x5d469d,_0x9bbc7);throwIfAborted(_0x361831);const _0x1afc5c=await transformNestedToolResult(_0x5d469d[_0xc22470(0x51f,_0x5b2ce1._0x1fc66f,_0x5b2ce1._0x489f0d,_0x5b2ce1._0x2886b1)],_0x39fb06,_0x4f8ce7,_0x361831),_0x41e2ac=cloneToolResultForPublication(_0x1afc5c,_0xca6bda[_0xc22470(_0x5b2ce1._0x30d2ab,0x5d0,_0x5b2ce1._0x6039a3,0x552)],_0xca6bda[_0xc22470(0x4ce,0x4f1,0x56c,0x543)]);throwIfAborted(_0x361831);function _0xc22470(_0x4113a5,_0x900c75,_0x33a96e,_0x11527b){return _0x129ebd(_0x4113a5-0xa,_0x4113a5,_0x11527b- -0x13,_0x11527b-0x120);}if(_0xca6bda[_0xc22470(_0x5b2ce1._0x39c9f7,0x53e,0x55f,_0x5b2ce1._0x18c87b)]){const _0x3deebd=_0xca6bda[_0x1b011e(_0x5b2ce1._0x55dc8a,-_0x5b2ce1._0x38215b,-0x29,-_0x5b2ce1._0x5e35e0)];await awaitRequiredPersistence(()=>_0x3deebd['recordToolResult'](_0xca6bda[_0xc22470(0x58a,0x540,0x4b2,0x524)],cloneToolResultForPublication(_0x41e2ac,_0xca6bda[_0xc22470(0x505,0x51d,0x5d5,0x552)],_0xca6bda[_0x1b011e(-0x40,-0x32,-0x4b,-0x52)])),_0x361831,_0x37918d);}return await _0x9bbc7({'type':_0xc22470(_0x5b2ce1._0x425330,0x482,_0x5b2ce1._0xa7dcb9,_0x5b2ce1._0x5a1dbd),'result':cloneToolResultForPublication(_0x41e2ac,_0xca6bda[_0x1b011e(_0x5b2ce1._0x47b243,-0x13,-0x3c,-0x97)],_0xca6bda[_0xc22470(_0x5b2ce1._0x402327,0x4e7,_0x5b2ce1._0x3313b9,_0x5b2ce1._0x6271da)])},_0x27eca8),throwIfAborted(_0x361831),_0x41e2ac;}function createBoundToolExecutionControl(_0x230e26,_0x193e29,_0x536e2a,_0x4e1c21){const _0x98b260={_0x1a863a:0x4f2,_0x130c13:0x1c2,_0x3999ac:0xef,_0x5bbd7d:0x128,_0x41a73f:0x125,_0x540837:0x1c5,_0x68d55:0x208,_0x483217:0x1b7,_0x1ec2ab:0x19a,_0x125437:0x5b7,_0x532f6d:0x575,_0x30272b:0x5de},_0x1bbb36={_0x159586:0x121},_0x2e4917={_0x56c3af:0x198,_0x3f09d0:0x1e2},_0x5e8410={_0x444aa2:0x19c},_0x436142={_0xdcc784:0x457,_0x50e505:0x3df,_0x4b0c1a:0x1aa,_0xc6376f:0x247,_0x4d9059:0x218,_0x43ff97:0x29e,_0x2f0dce:0x2bf,_0x5a25b8:0x28d,_0x1ee7a0:0x226,_0x6e53ef:0x425,_0x49b713:0x3ff,_0x34812e:0x46c,_0x2b6c1e:0x460,_0x493937:0x3bc,_0x990955:0x3bf,_0x3d09c2:0x2a4,_0x33a4b7:0x2a3,_0x163c4c:0x232,_0x334e91:0x372,_0x5988d0:0x387,_0x210536:0x358,_0x48fb12:0x35d},_0x3a3bd4={_0x536521:0xfb},_0x7ee0a8={_0x1c8707:0x2e8,_0x2ad481:0x2db,_0x4d8e2e:0x4bb,_0x3fcd39:0x46c,_0x41eb15:0x4c8},_0x4c03f1={_0x43616b:0x137,_0x413e67:0x13c,_0x1107f3:0x6b,_0x2e1a7b:0x96},_0x40f365={_0x2c1ae5:0x92,_0x469b7a:0x9e,_0x1da046:0xc1},_0x547c7d={_0x559b85:0x24,_0x26999b:0x247},_0x2a08e7={_0x298d22:0xf1,_0x5a3644:0x7c},_0x118cf5={_0x2ba79a:0x202,_0x5aa3e5:0x156},_0x204fc4={_0x407629:0x25},_0x43b5fb={_0xdc605:0x2d3},_0x276569=createImmutableExecutionScope(_0x193e29[_0x21dcf3(_0x98b260._0x1a863a,0x510,0x530,0x4ff)][_0x3431f9(0x1ad,_0x98b260._0x130c13,0x23a,0x1e1)],_0x193e29[_0x3431f9(_0x98b260._0x3999ac,_0x98b260._0x5bbd7d,_0x98b260._0x41a73f,0xf6)][_0x3431f9(_0x98b260._0x540837,0x1a4,0x1cc,_0x98b260._0x68d55)]),_0x11aefe=new Set(),_0x487006=new Set(),_0x597822=new AbortController(),_0x4edb9c=createNestedCallAdmissionGate();function _0x21dcf3(_0x7b34b2,_0x423811,_0x577908,_0x189582){return _0x25dd81(_0x7b34b2-0x60,_0x423811-0x9e,_0x577908-_0x43b5fb._0xdc605,_0x189582);}let _0x591fed=![],_0x3290ee=![],_0x330a50,_0x4a0652=![],_0x16be1d=()=>{};const _0x4f0152=_0x1d36c0=>{const _0x533a79={_0x2f62e3:0x19b,_0x6f38e4:0x13e};function _0x52d180(_0x1b88fb,_0x4d5828,_0x235a4f,_0x59e4c9){return _0x21dcf3(_0x1b88fb-_0x533a79._0x2f62e3,_0x4d5828-_0x533a79._0x6f38e4,_0x1b88fb- -0x791,_0x4d5828);}if(_0x591fed)return;_0x591fed=!![];const _0x6c3e0b=toAbortError(_0x1d36c0??PARENT_TOOL_SETTLED_MESSAGE);_0x4edb9c[_0x11f4fb(0x261,0x26e,0x2d7,_0x118cf5._0x2ba79a)](_0x6c3e0b);function _0x11f4fb(_0x270208,_0x4235a6,_0x46a986,_0x23f1ee){return _0x21dcf3(_0x270208-0x63,_0x4235a6-_0x204fc4._0x407629,_0x270208- -0x37d,_0x23f1ee);}_0x597822['abort'](_0x6c3e0b);for(const _0x221835 of _0x11aefe){_0x221835[_0x11f4fb(0x178,0x126,0x157,_0x118cf5._0x5aa3e5)](_0x6c3e0b);}_0x16be1d();};_0x16be1d=addAbortListener(_0x193e29['signal'],()=>{const _0x5a7aae={_0x2cbed7:0x138};function _0x4a2788(_0x5d5d76,_0x3eb8a5,_0x3a3d14,_0x33a2fc){return _0x21dcf3(_0x5d5d76-_0x5a7aae._0x2cbed7,_0x3eb8a5-0x190,_0x3a3d14- -0x5de,_0x5d5d76);}_0x4f0152(_0x193e29['signal'][_0x4a2788(-0xb4,-_0x2a08e7._0x298d22,-_0x2a08e7._0x5a3644,-0xd0)]);});const _0x1a591e=_0x54bb2c=>{const _0x4fd267={_0x88c97b:0x677};_0x487006[_0x4b4c0e(-_0x4c03f1._0x43616b,-_0x4c03f1._0x413e67,-0x12b,-0x12b)](_0x54bb2c);function _0x4b4c0e(_0x42bf4b,_0x3cf15e,_0x2bff65,_0x2808fb){return _0x3431f9(_0x42bf4b-_0x547c7d._0x559b85,_0x3cf15e- -_0x547c7d._0x26999b,_0x2bff65-0x1d7,_0x2808fb);}const _0x4103cc=()=>{const _0x976c89={_0x3e0a55:0x125,_0x2beb05:0x8c,_0x2d3365:0x177};function _0x15645c(_0x5adabd,_0x4e18e1,_0x553fd6,_0x29d4d4){return _0x4b4c0e(_0x5adabd-_0x976c89._0x3e0a55,_0x5adabd-_0x976c89._0x2beb05,_0x553fd6-_0x976c89._0x2d3365,_0x553fd6);}_0x487006[_0x15645c(-_0x40f365._0x2c1ae5,-_0x40f365._0x469b7a,-_0x40f365._0x1da046,-0xb6)](_0x54bb2c);},_0xfa068b=_0x440020=>{!_0x3290ee&&(_0x3290ee=!![],_0x330a50=_0x440020),_0x4103cc();};function _0x5053ba(_0x410f4a,_0x213f83,_0x89cf98,_0x57190d){return _0x21dcf3(_0x410f4a-0x126,_0x213f83-0x137,_0x57190d- -_0x4fd267._0x88c97b,_0x213f83);}void _0x54bb2c[_0x5053ba(-0x34,-_0x4c03f1._0x1107f3,-0x117,-_0x4c03f1._0x2e1a7b)](_0x4103cc,_0xfa068b);},_0x4cf144=async()=>{const _0x321393={_0x3a9dd:0x72},_0x2540cd={_0x5d030f:0x141};function _0x1a6980(_0xf24be8,_0x24d8fb,_0x492544,_0x110320){return _0x3431f9(_0xf24be8-0xa0,_0xf24be8-0xf2,_0x492544-_0x2540cd._0x5d030f,_0x24d8fb);}function _0x1ed55d(_0x42bf01,_0x134d3b,_0x1a6eb4,_0x1d7cb4){return _0x21dcf3(_0x42bf01-_0x321393._0x3a9dd,_0x134d3b-0x18b,_0x134d3b- -0xf4,_0x42bf01);}while(_0x487006[_0x1a6980(0x26d,0x229,_0x7ee0a8._0x1c8707,_0x7ee0a8._0x2ad481)]>0x0){await Promise[_0x1ed55d(_0x7ee0a8._0x4d8e2e,_0x7ee0a8._0x3fcd39,_0x7ee0a8._0x41eb15,0x454)]([..._0x487006]);}if(_0x3290ee)throw _0x330a50;},_0x2dcd8a=async _0x3d7fbc=>{const _0x27d92b={_0x5218d6:0x23f,_0x1b2e26:0x218,_0x1a6e58:0x28d,_0x1b96ea:0x20c},_0xf43026={_0xd83737:0xf3,_0x491d92:0x281};if(_0x591fed)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);let _0x319c31;function _0x45ee73(_0x51b376,_0x85784a,_0x371a7d,_0x49eda6){return _0x21dcf3(_0x51b376-_0x3a3bd4._0x536521,_0x85784a-0x1e9,_0x85784a- -0x33d,_0x49eda6);}try{_0x319c31=snapshotNestedToolRequest(_0x3d7fbc);}catch(_0x5b473a){_0x4edb9c[_0x54f655(_0x436142._0xdcc784,0x41b,0x4aa,_0x436142._0x50e505)](_0x5b473a);throw _0x5b473a;}const _0x2556e2=_0x4edb9c[_0x45ee73(0x278,0x217,_0x436142._0x4b0c1a,0x1d9)](_0x319c31[_0x45ee73(0x269,_0x436142._0xc6376f,_0x436142._0x4d9059,_0x436142._0x43ff97)]),_0x5190f7=createImmutableExecutionScope(_0x276569[_0x45ee73(_0x436142._0x2f0dce,_0x436142._0x5a25b8,_0x436142._0x1ee7a0,0x2ad)],[..._0x276569[_0x54f655(_0x436142._0x6e53ef,_0x436142._0x49b713,_0x436142._0x34812e,_0x436142._0x2b6c1e)],_0x230e26]),_0x33b2e2=new AbortController();_0x11aefe['add'](_0x33b2e2);function _0x54f655(_0x2e8fc0,_0x1a6158,_0x3ccd04,_0x2d1d4b){return _0x3431f9(_0x2e8fc0-_0xf43026._0xd83737,_0x2e8fc0-_0xf43026._0x491d92,_0x3ccd04-0x13a,_0x1a6158);}_0x591fed&&_0x33b2e2[_0x54f655(0x36e,0x3d7,_0x436142._0x493937,_0x436142._0x990955)](toAbortError(PARENT_TOOL_SETTLED_MESSAGE));const _0x1eff7f=executeNestedToolRequest(_0x319c31,_0x193e29,_0x5190f7,_0x33b2e2[_0x45ee73(0x153,0x1bc,0x234,0x213)],_0x2556e2,_0x536e2a,_0x4e1c21,_0x1a591e),_0x786dcc=()=>{function _0x323b12(_0x46d4fa,_0x4a696d,_0x2aaf9a,_0x4b0919){return _0x54f655(_0x4a696d- -0x5c2,_0x46d4fa,_0x2aaf9a-0x1a,_0x4b0919-0xa5);}_0x11aefe[_0x323b12(-_0x27d92b._0x5218d6,-_0x27d92b._0x1b2e26,-_0x27d92b._0x1a6e58,-_0x27d92b._0x1b96ea)](_0x33b2e2);};return void _0x1eff7f[_0x45ee73(0x2cd,_0x436142._0x3d09c2,_0x436142._0x33a4b7,_0x436142._0x163c4c)](_0x786dcc,_0x786dcc),await awaitWithAbort(()=>_0x1eff7f,_0x597822[_0x54f655(_0x436142._0x334e91,_0x436142._0x5988d0,_0x436142._0x210536,_0x436142._0x48fb12)]);},_0x112636={'executeNestedTool':_0x2dcd8a},_0x4d0c02=_0x536e2a[_0x3431f9(_0x98b260._0x483217,_0x98b260._0x1ec2ab,0x1cb,0x21b)];_0x4d0c02&&(_0x112636[_0x21dcf3(_0x98b260._0x125437,0x553,0x5a2,0x5d4)]=async()=>{function _0xe9dd90(_0x1f7cee,_0x23d32a,_0x52ae86,_0xbf3198){return _0x21dcf3(_0x1f7cee-0x17c,_0x23d32a-0x2f,_0xbf3198- -0x65b,_0x1f7cee);}function _0x545b3c(_0x4af15d,_0x3f841b,_0x384f33,_0x21bb38){return _0x3431f9(_0x4af15d-_0x5e8410._0x444aa2,_0x21bb38-0x7c,_0x384f33-0x8e,_0x3f841b);}if(_0x591fed)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);return await awaitUncancellableAfterAdmission(()=>_0x4d0c02({'executionScope':createImmutableExecutionScope(_0x276569[_0x545b3c(0x281,0x26f,0x279,0x23e)],_0x276569[_0x545b3c(0x1fa,0x271,0x1e7,0x220)]),'programToolCallId':_0x230e26}),_0x597822[_0x545b3c(_0x2e4917._0x56c3af,0x185,_0x2e4917._0x3f09d0,0x16d)]);});const _0x320554=()=>{_0x4a0652=!![],_0x4f0152();},_0x2ef1ab=()=>_0x4a0652,_0x5002df={'capabilities':_0x112636,'close':_0x4f0152,'commitTerminalState':_0x320554,'drainPersistence':_0x4cf144,'isTerminalStateCommitted':_0x2ef1ab};boundNestedExecutionControls[_0x21dcf3(0x588,0x5e0,_0x98b260._0x532f6d,_0x98b260._0x30272b)](_0x2dcd8a,_0x5002df);function _0x3431f9(_0x2a881d,_0xc05b29,_0x2dd696,_0x3aed7f){return _0x25dd81(_0x2a881d-_0x1bbb36._0x159586,_0xc05b29-0x8b,_0xc05b29- -0x135,_0x3aed7f);}return _0x5002df;}async function executeCapturedToolCall(_0xb32f5c,_0x528b16,_0x5c1def,_0x318529,_0x55c1e0,_0xb73688,_0x333863=_0xb73688[_0x129ebd(0x4b3,0x4a9,0x4c7,0x4c3)]){const _0x24a181={_0x8c7c08:0x30c,_0x25ac1d:0x350,_0x598cfe:0x400,_0x21a0be:0x39d,_0x5a40c6:0x375,_0x48b1bb:0x345,_0x43febc:0x2cd},_0x2c2796={_0x113440:0xa4,_0x2d1fb7:0x9,_0x3910ff:0xe6},_0x2ea510={_0x55eb39:0x1a5,_0x8b1cef:0x2d0},_0x56fed9={..._0x55c1e0,'toolCallId':_0x5c1def,'permissionClass':resolveToolPermissionClass(_0xb32f5c),'executionAuthorization':void 0x0};function _0x39f77f(_0x23fe8e,_0x5cf4a8,_0x3925f0,_0x26a3b7){return _0x129ebd(_0x23fe8e-_0x2ea510._0x55eb39,_0x23fe8e,_0x3925f0- -_0x2ea510._0x8b1cef,_0x26a3b7-0x132);}function _0x3b86ae(_0x12ebd6,_0x37846c,_0x305254,_0xe7a9c3){return _0x25dd81(_0x12ebd6-_0x2c2796._0x113440,_0x37846c-_0x2c2796._0x2d1fb7,_0x37846c-_0x2c2796._0x3910ff,_0x12ebd6);}if(_0x56fed9[_0x3b86ae(0x2a3,_0x24a181._0x8c7c08,0x31f,_0x24a181._0x25ac1d)][_0x3b86ae(0x408,0x3d2,_0x24a181._0x598cfe,0x3bf)]){const _0x4a18b4=createAbortedToolResult(_0x5c1def,_0x318529,_0x56fed9['signal'][_0x3b86ae(_0x24a181._0x21a0be,_0x24a181._0x5a40c6,0x325,_0x24a181._0x48b1bb)]);return await emitToolCompletedEventWithTerminalPrecedence(_0x333863,_0x528b16,_0x5c1def,_0x318529,_0x4a18b4,_0x56fed9),_0x4a18b4;}let _0x410cc6;try{_0x410cc6=_0xb32f5c?.['internalLifecycle']?.[_0x39f77f(0x28e,0x26d,0x24c,_0x24a181._0x43febc)]();}catch(_0x1a90a5){const _0x49ac78=isAbortError(_0x1a90a5);let _0x1cb041;if(_0x49ac78)_0x1cb041=createAbortedToolResult(_0x5c1def,_0x318529,_0x1a90a5);else{const {errorMessage:_0x5dab8d,structured:_0x31175e}=normalizeExecutionError(_0x1a90a5);_0x1cb041=createErrorToolResult(_0x5c1def,_0x318529,_0x5dab8d,_0x31175e);}return _0x49ac78?await emitToolCompletedEventWithTerminalPrecedence(_0x333863,_0x528b16,_0x5c1def,_0x318529,_0x1cb041,_0x56fed9):await emitEvent(_0x333863,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x528b16,_0x5c1def,_0x318529),'result':_0x1cb041},_0x56fed9),_0x1cb041;}try{return await executeAcquiredToolCall(_0xb32f5c,_0x528b16,_0x5c1def,_0x318529,_0x55c1e0,_0xb73688,_0x333863);}finally{_0x410cc6?.();}}async function executeAcquiredToolCall(_0x12c571,_0x2c4fb3,_0x58df85,_0x3a3941,_0x1baa41,_0x30fc6a,_0x6222c2){const _0x1fab3d={_0x524fe4:0x179,_0x44f545:0x1b4,_0x53aa9d:0x16a,_0x2335e4:0x88,_0x5c2b93:0x56,_0x151064:0x37,_0x296e36:0x179,_0x20f512:0x1aa,_0x3741ba:0xd3,_0x5edb65:0x1ce,_0x5463fa:0xb5,_0x11fd09:0x4a,_0x31161d:0xfa,_0x5e33b4:0x114,_0x1e5360:0x12d,_0x4f2a60:0x177,_0x10098d:0xc0,_0x1763e8:0x67,_0x4a5d23:0xd7,_0x192e68:0x12f,_0x2e3f2a:0x12f,_0x4c7fcb:0x180,_0x12de41:0xbe,_0x5e68a5:0x1b,_0x46a4d4:0x4a,_0x26c2ac:0x6e,_0x1f0894:0x6d,_0x33601b:0xce,_0x555ae7:0x40,_0x4e71ef:0x16b,_0x350996:0x11f,_0x11df9e:0x139,_0x5a18c6:0x121,_0x4f34a9:0xbe,_0x3d0ef0:0xe3,_0x54d82b:0x193,_0x2e9fe4:0x1a0,_0x10fb91:0x134,_0x3a8d78:0x109,_0x3179d2:0x162,_0x1e0cea:0xf0,_0x5a8ed6:0x133,_0x506678:0xb3,_0x27b6d3:0x107,_0x1c3b78:0x189,_0x426567:0xdf,_0x324a88:0x12f,_0x5c4d03:0x185,_0x312455:0x159,_0x115b97:0x1a4,_0x802eb:0x13a,_0x262cb2:0x157,_0x5c2a95:0x13b,_0x17e1ae:0x156,_0x1953ce:0xd8,_0x301260:0xe2,_0x5e0895:0x198,_0x4acea6:0x140,_0x3f072a:0x9a,_0x5d24ef:0x100,_0x53abda:0x86,_0x148094:0x81,_0x4c6f4a:0x136,_0x528044:0xde,_0x5f2b9c:0x98,_0x3ac459:0x151,_0x14ddf7:0xc6,_0x34d935:0x191,_0x10fada:0xf6,_0x2aef7b:0xfb,_0x2d0cc0:0xd2},_0x4ff006={_0x87f146:0x93,_0x2e1acb:0xd2,_0x3d8840:0x67},_0x4d280d={_0x29c795:0xfe,_0x5b12c0:0xcb},_0x286134={_0x426e26:0x1d,_0x2e3e64:0x111,_0x309fd4:0x26},_0x5adb0b={_0x34f30f:0x84,_0x245a87:0x1da},_0x3b4ce2={..._0x1baa41,'toolCallId':_0x58df85,'permissionClass':resolveToolPermissionClass(_0x12c571),'executionAuthorization':void 0x0};throwIfAborted(_0x3b4ce2[_0x2699ba(-0x18c,-_0x1fab3d._0x524fe4,-_0x1fab3d._0x44f545,-_0x1fab3d._0x53aa9d)]);let _0x3193d2;function _0x381cac(_0x492ee4,_0x5d6869,_0x32d0dd,_0x3a2af9){return _0x129ebd(_0x492ee4-0x1d6,_0x5d6869,_0x492ee4- -0x5db,_0x3a2af9-0xe8);}try{_0x3193d2=await resolveDispatchDecision(_0x30fc6a[_0x381cac(-_0x1fab3d._0x2335e4,-_0x1fab3d._0x5c2b93,-_0x1fab3d._0x151064,-0xa5)],_0x2c4fb3,_0x3b4ce2);}catch(_0xeed070){if(isAbortError(_0xeed070)){const _0x47755b=createAbortedToolResult(_0x58df85,_0x3a3941,_0xeed070);return await emitToolCompletedEventWithTerminalPrecedence(_0x6222c2,_0x2c4fb3,_0x58df85,_0x3a3941,_0x47755b,_0x3b4ce2),_0x47755b;}const {errorMessage:_0x3977a2,structured:_0x246634}=normalizeExecutionError(_0xeed070),_0x4da8fb=createErrorToolResult(_0x58df85,_0x3a3941,_0x3977a2,_0x246634);return await emitEvent(_0x6222c2,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'result':_0x4da8fb},_0x3b4ce2),_0x4da8fb;}throwIfAborted(_0x3b4ce2[_0x2699ba(-0x19b,-_0x1fab3d._0x296e36,-0x19d,-_0x1fab3d._0x20f512)]);if(_0x3193d2['action']==='reject'){const _0x21c60a=createRejectedToolResult(_0x58df85,_0x3a3941,_0x3193d2[_0x381cac(-0xc6,-0x9a,-_0x1fab3d._0x3741ba,-0x122)]);return await emitEvent(_0x6222c2,{'type':_0x2699ba(-0x1b4,-0x167,-_0x1fab3d._0x5edb65,-0x172),'toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'result':_0x21c60a},_0x3b4ce2),_0x21c60a;}if(!_0x12c571){const _0x1f2835=createUnknownToolResult(_0x58df85,_0x3a3941);return await emitEvent(_0x6222c2,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'result':_0x1f2835},_0x3b4ce2),_0x1f2835;}const _0x75553c=createBoundToolExecutionControl(_0x58df85,_0x3b4ce2,_0x30fc6a,_0x6222c2),_0x59a99a={..._0x3b4ce2,'executionAuthorization':_0x3193d2[_0x2699ba(-0x114,-_0x1fab3d._0x5463fa,-_0x1fab3d._0x11fd09,-0xa0)],..._0x75553c[_0x381cac(-_0x1fab3d._0x31161d,-0x77,-_0x1fab3d._0x5e33b4,-_0x1fab3d._0x1e5360)]};throwIfAborted(_0x59a99a[_0x381cac(-0x12f,-0xb1,-0x10c,-_0x1fab3d._0x4f2a60)]);try{await emitEvent(_0x6222c2,{'type':_0x381cac(-0x48,-0x5,-0x76,-_0x1fab3d._0x10098d),'toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941)},_0x59a99a);}catch(_0xf17396){const _0x115d16=_0x75553c[_0x381cac(-0x98,-_0x1fab3d._0x1763e8,-_0x1fab3d._0x4a5d23,-0xaa)]();if(actualCancellationHasPrecedence(_0x59a99a,_0x115d16)){const _0x2f72d6=selectActualCancellationReason(_0xf17396,_0x59a99a[_0x381cac(-_0x1fab3d._0x192e68,-0x177,-0xe5,-0x14d)][_0x2699ba(-0xa8,-0x110,-0xac,-0x15d)]),_0xe28984=createAbortedToolResult(_0x58df85,_0x3a3941,_0x2f72d6);return _0x75553c['close'](_0x2f72d6),await emitToolCompletedEventWithTerminalPrecedence(_0x6222c2,_0x2c4fb3,_0x58df85,_0x3a3941,_0xe28984,_0x59a99a,_0x115d16),_0xe28984;}_0x75553c['close'](_0xf17396);throw _0xf17396;}function _0x2699ba(_0x190ddb,_0x33e4d5,_0x312a63,_0xf1dfd3){return _0x129ebd(_0x190ddb-_0x5adb0b._0x34f30f,_0xf1dfd3,_0x33e4d5- -0x625,_0xf1dfd3-_0x5adb0b._0x245a87);}try{throwIfAborted(_0x59a99a[_0x381cac(-_0x1fab3d._0x2e3f2a,-_0x1fab3d._0x4c7fcb,-0x159,-_0x1fab3d._0x12de41)]);const _0x4e363c=validateToolInput(_0x2c4fb3[_0x381cac(-0x95,-_0x1fab3d._0x5e68a5,-_0x1fab3d._0x46a4d4,-_0x1fab3d._0x26c2ac)],_0x12c571[_0x381cac(-_0x1fab3d._0x1f0894,-0x3f,-_0x1fab3d._0x33601b,-_0x1fab3d._0x555ae7)]),_0xa2f3e7=await _0x12c571['execute'](_0x4e363c,_0x59a99a),_0x35606c=[],_0x512981=addAbortListener(_0x59a99a[_0x381cac(-_0x1fab3d._0x192e68,-_0x1fab3d._0x4e71ef,-_0x1fab3d._0x350996,-_0x1fab3d._0x11df9e)],()=>{function _0x12adb3(_0x3327ab,_0x17e179,_0x3e6c32,_0x57185f){return _0x381cac(_0x57185f- -_0x286134._0x426e26,_0x17e179,_0x3e6c32-_0x286134._0x2e3e64,_0x57185f-_0x286134._0x309fd4);}function _0x4175a4(_0x13556a,_0x4e6cc6,_0x16a4ea,_0x35b740){return _0x381cac(_0x4e6cc6- -0x5,_0x13556a,_0x16a4ea-_0x4d280d._0x29c795,_0x35b740-_0x4d280d._0x5b12c0);}!_0x75553c['isTerminalStateCommitted']()&&void _0xa2f3e7[_0x4175a4(-0x5b,-_0x4ff006._0x87f146,-_0x4ff006._0x2e1acb,-_0x4ff006._0x3d8840)](void 0x0)[_0x4175a4(-0x57,-0xab,-0x123,-0xb1)](()=>{});});try{throwIfAborted(_0x59a99a['signal']);let _0x10c700=await _0xa2f3e7[_0x381cac(-_0x1fab3d._0x5a18c6,-_0x1fab3d._0x4f34a9,-_0x1fab3d._0x3d0ef0,-0x18f)]();while(!_0x10c700['done']){throwIfAborted(_0x59a99a[_0x381cac(-0x12f,-_0x1fab3d._0x54d82b,-_0x1fab3d._0x2e9fe4,-_0x1fab3d._0x10fb91)]);const _0x1de628=normalizeToolOutputValue(_0x10c700[_0x2699ba(-_0x1fab3d._0x3a8d78,-0x125,-0x127,-_0x1fab3d._0x3179d2)]);_0x35606c[_0x2699ba(-_0x1fab3d._0x1e0cea,-_0x1fab3d._0x5a8ed6,-0xe7,-_0x1fab3d._0x506678)](_0x1de628),await emitEvent(_0x6222c2,{'type':_0x2699ba(-0x16a,-0x14a,-_0x1fab3d._0x27b6d3,-0x143),'toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'chunk':_0x1de628},_0x59a99a),throwIfAborted(_0x59a99a[_0x2699ba(-_0x1fab3d._0x1c3b78,-0x179,-0x11d,-0x139)]),_0x10c700=await _0xa2f3e7['next']();}!_0x75553c[_0x381cac(-0x98,-0x96,-0x94,-_0x1fab3d._0x426567)]()&&throwIfAborted(_0x59a99a[_0x381cac(-_0x1fab3d._0x324a88,-_0x1fab3d._0x5c4d03,-0xb3,-_0x1fab3d._0x312455)]);const _0x12be49=_0x10c700[_0x2699ba(-_0x1fab3d._0x115b97,-0x125,-_0x1fab3d._0x802eb,-_0x1fab3d._0x262cb2)]===void 0x0?deriveFinalToolOutput(_0x35606c):normalizeToolOutputValue(_0x10c700['value']),_0xd6c33d=createSuccessToolResult(_0x58df85,_0x3a3941,_0x12be49,_0x35606c);return _0x75553c[_0x2699ba(-0x187,-0x140,-_0x1fab3d._0x5c2a95,-_0x1fab3d._0x17e1ae)](),await emitEvent(_0x6222c2,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'result':_0xd6c33d},_0x59a99a),_0xd6c33d;}catch(_0x4ba9a3){const _0x571d5c=_0x75553c[_0x2699ba(-_0x1fab3d._0x1953ce,-_0x1fab3d._0x301260,-0xfc,-0x11e)](),_0x38b5bc=actualCancellationHasPrecedence(_0x59a99a,_0x571d5c);if(_0x38b5bc||isAbortError(_0x4ba9a3)){const _0x12dac7=_0x38b5bc?selectActualCancellationReason(_0x4ba9a3,_0x59a99a[_0x381cac(-0x12f,-_0x1fab3d._0x5e0895,-0x10f,-_0x1fab3d._0x4acea6)][_0x381cac(-0xc6,-_0x1fab3d._0x3f072a,-_0x1fab3d._0x5d24ef,-_0x1fab3d._0x1e5360)]):_0x4ba9a3,_0x29d481=createAbortedToolResult(_0x58df85,_0x3a3941,_0x12dac7,_0x35606c);return _0x75553c[_0x381cac(-0xf6,-0x74,-_0x1fab3d._0x53abda,-_0x1fab3d._0x148094)](_0x12dac7),await emitToolCompletedEventWithTerminalPrecedence(_0x6222c2,_0x2c4fb3,_0x58df85,_0x3a3941,_0x29d481,_0x59a99a,_0x571d5c),_0x29d481;}if(_0x4ba9a3 instanceof ToolRuntimeInfrastructureError)throw _0x4ba9a3;const {errorMessage:_0x1f4124,structured:_0x2fbdea}=normalizeExecutionError(_0x4ba9a3),_0x135bec=createErrorToolResult(_0x58df85,_0x3a3941,_0x1f4124,_0x2fbdea,_0x35606c);return _0x75553c['close'](_0x4ba9a3),await emitToolCompletedEventWithTerminalPrecedence(_0x6222c2,_0x2c4fb3,_0x58df85,_0x3a3941,_0x135bec,_0x59a99a,_0x75553c[_0x2699ba(-0x95,-_0x1fab3d._0x301260,-_0x1fab3d._0x4c6f4a,-_0x1fab3d._0x528044)]()),_0x135bec;}finally{_0x512981();}}catch(_0x34a56e){const _0x1cd740=_0x75553c[_0x381cac(-_0x1fab3d._0x5f2b9c,-_0x1fab3d._0x5e33b4,-0xb0,-0x1b)](),_0x5ed114=actualCancellationHasPrecedence(_0x59a99a,_0x1cd740);if(_0x5ed114||isAbortError(_0x34a56e)){const _0x1e5fe1=_0x5ed114?selectActualCancellationReason(_0x34a56e,_0x59a99a[_0x2699ba(-0x1ed,-_0x1fab3d._0x296e36,-_0x1fab3d._0x3ac459,-0x1f4)][_0x381cac(-_0x1fab3d._0x14ddf7,-0xa0,-0x11c,-0x10f)]):_0x34a56e,_0x5b0ba8=createAbortedToolResult(_0x58df85,_0x3a3941,_0x1e5fe1);return _0x75553c[_0x2699ba(-0xd3,-0x140,-0x1ba,-_0x1fab3d._0x34d935)](_0x1e5fe1),await emitToolCompletedEventWithTerminalPrecedence(_0x6222c2,_0x2c4fb3,_0x58df85,_0x3a3941,_0x5b0ba8,_0x59a99a,_0x1cd740),_0x5b0ba8;}if(_0x34a56e instanceof ToolRuntimeInfrastructureError)throw _0x34a56e;const {errorMessage:_0x413e7f,structured:_0xa806a0}=normalizeExecutionError(_0x34a56e),_0x425159=createErrorToolResult(_0x58df85,_0x3a3941,_0x413e7f,_0xa806a0);return _0x75553c[_0x381cac(-_0x1fab3d._0x10fada,-0x7f,-_0x1fab3d._0x2aef7b,-0x16a)](_0x34a56e),await emitEvent(_0x6222c2,{'type':_0x381cac(-0x122,-0xc3,-_0x1fab3d._0x2d0cc0,-0x155),'toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'result':_0x425159},_0x59a99a),_0x425159;}finally{_0x75553c['close']();}}async function executeRegisteredToolCall(_0x4d1abc,_0x28cc51,_0x1a1419,_0x261e27){const _0x1df148={_0x51ed3d:0x5,_0x2dea2c:0x26,_0x379484:0x2d,_0x3de507:0x46},_0x1d946e={_0x3e71c6:0x1b3,_0x30e0ed:0x2e5},_0x2f3b2c={_0x50ed40:0x1ce,_0x409553:0x2e1},_0x339b7e=_0x28cc51['id'],_0x417f2a=_0x28cc51[_0x1e70f1(_0x1df148._0x51ed3d,-_0x1df148._0x2dea2c,_0x1df148._0x379484,-_0x1df148._0x3de507)];function _0x1e70f1(_0x26f0ce,_0x360e94,_0x304d6f,_0x471a6f){return _0x25dd81(_0x26f0ce-0x185,_0x360e94-_0x2f3b2c._0x50ed40,_0x360e94- -_0x2f3b2c._0x409553,_0x26f0ce);}function _0x5c9b01(_0x137d14,_0x8d5bbe,_0x31ddc1,_0x411447){return _0x25dd81(_0x137d14-0x6d,_0x8d5bbe-_0x1d946e._0x3e71c6,_0x137d14- -_0x1d946e._0x30e0ed,_0x8d5bbe);}const _0x31128d=_0x4d1abc[_0x5c9b01(-0xbd,-0xd8,-0xe0,-0x123)](_0x417f2a);return await executeCapturedToolCall(_0x31128d,_0x28cc51,_0x339b7e,_0x417f2a,_0x1a1419,_0x261e27);}function createInternalToolRuntime(_0x907967=[],_0x77ac8e={}){const _0x157f03={_0x4ef944:0x44,_0x19209d:0x132},_0x6e14bb={_0x315c90:0x22a},_0x2b6a43={_0x714519:0x160,_0x36a8cb:0x19e,_0x5bca85:0x128,_0x4a8b14:0x1f},_0x5eccbd={_0x39b6a9:0x44c},_0x1d6396={_0x1d709b:0x259};let _0x2da756=new ToolRegistry(_0x907967);return{'listToolSchemas'(){function _0x1915cd(_0x2066c9,_0xcb4e28,_0xe7223d,_0x256ef8){return _0x5e07(_0x2066c9-_0x1d6396._0x1d709b,_0xcb4e28);}return _0x2da756[_0x1915cd(0x3e1,0x3ef,_0x5eccbd._0x39b6a9,0x41e)]();},'setTools'(_0x26d689){_0x2da756=new ToolRegistry(_0x26d689);},async 'executeCalls'(_0x50deca,_0x3869e0){function _0x4eba2a(_0x21adfb,_0x114b23,_0x2dacba,_0x4f3364){return _0x5e07(_0x4f3364- -0x17c,_0x2dacba);}function _0x4352d3(_0x55de83,_0x105417,_0x1a6e5a,_0xa1264f){return _0x5e07(_0x55de83- -0x2c6,_0x105417);}return await Promise[_0x4352d3(-_0x2b6a43._0x714519,-_0x2b6a43._0x36a8cb,-_0x2b6a43._0x5bca85,-0x18e)](_0x50deca[_0x4eba2a(_0x2b6a43._0x4a8b14,0x5a,-0x2,0x58)](async _0x524861=>{return await executeRegisteredToolCall(_0x2da756,_0x524861,_0x3869e0,_0x77ac8e);}));},async 'execute'(_0x817094,_0x5bd6ab){function _0x835302(_0x229eae,_0xb3278b,_0x51462a,_0x1c2e8c){return _0x5e07(_0x1c2e8c- -_0x6e14bb._0x315c90,_0x51462a);}const [_0x39cc07]=await this[_0x835302(-_0x157f03._0x4ef944,-0x98,-_0x157f03._0x19209d,-0xba)]([_0x817094],_0x5bd6ab);return _0x39cc07;}};}function getOrderedObserverExtensions(_0x3d8487,_0x589c49){const _0x22fc67={_0x1ee94a:0xe4,_0x8f9018:0xcb,_0x8609d0:0x188},_0x2eaef1={_0x53551e:0x10f,_0x2734e0:0x148,_0x3c49f3:0x1e0,_0xf3fa94:0x17b,_0x503cd6:0x128,_0x5d2c57:0x77,_0x9cdbad:0x122,_0x1dd5be:0x51,_0x18dca4:0x33,_0x5263ac:0xac},_0x56d25e={_0x479605:0x385},_0x58ce77={_0x253d76:0x417,_0x1d547d:0x474,_0x2d49ee:0x573,_0x50f9fd:0x3f3,_0x1412bd:0x3f4,_0x525d19:0x479},_0x47e5d6={_0x2dc018:0x295},_0x38ad05={_0x139e68:0x1d6,_0x3a78f4:0x28e,_0x3abf41:0xf5};function _0xfe21f8(_0x23d63a,_0x7efe61,_0x328eb0,_0xe90607){return _0x129ebd(_0x23d63a-_0x38ad05._0x139e68,_0x23d63a,_0x7efe61- -_0x38ad05._0x3a78f4,_0xe90607-_0x38ad05._0x3abf41);}function _0xd180da(_0x34c53b,_0x5e1787,_0x1d62a3,_0x31cc82){return _0x129ebd(_0x34c53b-0x16f,_0x31cc82,_0x5e1787- -0x394,_0x31cc82-0x1e8);}return _0x3d8487[_0xd180da(_0x22fc67._0x1ee94a,0x12d,_0x22fc67._0x8f9018,0x1a6)](_0x31d112=>{function _0x56d7c5(_0x4991c5,_0x134819,_0x528da3,_0x477f6d){return _0xd180da(_0x4991c5-0xc7,_0x134819-0x35d,_0x528da3-0x176,_0x477f6d);}function _0x5a8ed1(_0x5ca224,_0xc6162f,_0x460038,_0x38eb7f){return _0xd180da(_0x5ca224-0x17,_0xc6162f-_0x47e5d6._0x2dc018,_0x460038-0x145,_0x5ca224);}return _0x31d112[_0x5a8ed1(_0x58ce77._0x253d76,0x40b,_0x58ce77._0x1d547d,0x48b)]!==![]&&_0x31d112[_0x56d7c5(0x53b,0x561,0x4eb,_0x58ce77._0x2d49ee)]===_0x589c49&&_0x31d112['kind']===_0x56d7c5(_0x58ce77._0x50f9fd,0x460,_0x58ce77._0x1412bd,_0x58ce77._0x525d19);})[_0xd180da(_0x22fc67._0x8609d0,0x175,0x1dc,0x1cd)]((_0x3af3c4,_0xce9fb0)=>{if(_0x3af3c4[_0x30e412(-0x1bc,-0x19e,-_0x2eaef1._0x53551e,-_0x2eaef1._0x2734e0)]===!![]&&_0xce9fb0[_0x5862f3(-0x114,-_0x2eaef1._0x3c49f3,-_0x2eaef1._0xf3fa94,-0x13b)]!==!![])return 0x1;if(_0x3af3c4['terminal']!==!![]&&_0xce9fb0[_0x30e412(-0x101,-0x194,-_0x2eaef1._0x503cd6,-0x148)]===!![])return-0x1;function _0x30e412(_0x52a89b,_0xd7099a,_0x21d461,_0x406c80){return _0xd180da(_0x52a89b-0xf0,_0x406c80- -0x24c,_0x21d461-0x6c,_0x52a89b);}function _0x5862f3(_0x2f944b,_0x2771c7,_0x27fe8c,_0x2323a3){return _0xfe21f8(_0x2771c7,_0x27fe8c- -_0x56d25e._0x479605,_0x27fe8c-0xb8,_0x2323a3-0x95);}return _0x3af3c4[_0x30e412(-_0x2eaef1._0x5d2c57,-_0x2eaef1._0x9cdbad,-_0x2eaef1._0x1dd5be,-0xac)]-_0xce9fb0[_0x30e412(-_0x2eaef1._0x18dca4,-0x3f,-0x119,-_0x2eaef1._0x5263ac)];});}function getOrderedTransformerExtensions(_0x1f203d,_0x412470){const _0x2645c9={_0x19e0cb:0x264,_0x2dcdc3:0x208,_0x6d1f68:0x212},_0x528da4={_0x12a6a0:0x59d,_0x14ea53:0x5d5,_0x1b8d6a:0x6,_0xa1c6ab:0x39,_0x29b8fa:0x54b,_0x9d5fdc:0x120,_0x32ad14:0x11e},_0x496f5a={_0x144c5b:0xf9},_0x674043={_0xa7c6bf:0xed,_0x2eec33:0x33};function _0x3b688a(_0x301223,_0x351323,_0x1caa75,_0x3a45ce){return _0x25dd81(_0x301223-0x8d,_0x351323-_0x674043._0xa7c6bf,_0x1caa75- -_0x674043._0x2eec33,_0x301223);}function _0x46300b(_0x1b7e1a,_0x10da82,_0xcdc774,_0x305757){return _0x25dd81(_0x1b7e1a-_0x496f5a._0x144c5b,_0x10da82-0x1aa,_0x305757- -0x393,_0x10da82);}return _0x1f203d[_0x3b688a(0x1c4,_0x2645c9._0x19e0cb,_0x2645c9._0x2dcdc3,_0x2645c9._0x6d1f68)](_0x48c238=>{const _0x3a068c={_0x32ccf8:0x18d,_0x270a0f:0x318,_0x2a6edc:0x54},_0x51b3be={_0x4adf24:0xac};function _0x4d9403(_0x282fab,_0x4dcbb9,_0x1d378,_0x1bdc45){return _0x3b688a(_0x4dcbb9,_0x4dcbb9-0x1d,_0x282fab- -0x33a,_0x1bdc45-_0x51b3be._0x4adf24);}function _0x321ddc(_0x16653b,_0x39fdc5,_0x5a5fd5,_0x30d911){return _0x3b688a(_0x16653b,_0x39fdc5-_0x3a068c._0x32ccf8,_0x30d911-_0x3a068c._0x270a0f,_0x30d911-_0x3a068c._0x2a6edc);}return _0x48c238[_0x321ddc(_0x528da4._0x12a6a0,0x5a5,_0x528da4._0x14ea53,0x569)]!==![]&&_0x48c238[_0x4d9403(-0x5b,-0x99,-_0x528da4._0x1b8d6a,-_0x528da4._0xa1c6ab)]===_0x412470&&_0x48c238[_0x321ddc(0x515,_0x528da4._0x29b8fa,0x4fa,0x4fa)]===_0x4d9403(-_0x528da4._0x9d5fdc,-_0x528da4._0x32ad14,-0xc3,-0xe5);})['sort']((_0x1a9634,_0x3802a0)=>_0x1a9634[_0x3b688a(0x2da,0x2e8,0x27b,0x24f)]-_0x3802a0[_0x3b688a(0x213,0x2dd,0x27b,0x291)]);}function createExtensionRegistry(){const _0x368e67={_0x518543:0x14e,_0x51ab1d:0xf8},_0xd5e929={_0x580ae9:0x337,_0x1dd07f:0x102,_0x1a0fce:0x190,_0x7107c:0x1ab,_0x3ecc8f:0x180,_0xffe997:0x10c,_0x598aa5:0x14e,_0x4286ff:0x273,_0x380ca7:0x3f7,_0x1bd715:0x3c5,_0x35fc50:0x149,_0xc2042d:0x1ff,_0x4bfbf7:0x13b,_0x410af8:0x157,_0x3851a3:0x394,_0x40063e:0x3c6,_0x1df00f:0x31d,_0x5d7536:0x380,_0x2564bf:0x33d},_0x7a7cf1=[];return{'register'(_0x340773){const _0x2751a0={_0x27f7d6:0x6d};if(_0x340773[_0x2350e9(0x359,0x2a1,0x2ec,_0xd5e929._0x580ae9)]===_0x333e2a(_0xd5e929._0x1dd07f,0xba,0x102,0xf8)&&_0x340773[_0x333e2a(_0xd5e929._0x1a0fce,0x12d,_0xd5e929._0x7107c,0xab)]!==![]&&_0x340773['terminal']===!![]){const _0x151672=_0x7a7cf1[_0x333e2a(_0xd5e929._0x3ecc8f,0x162,_0xd5e929._0xffe997,_0xd5e929._0x598aa5)](_0x1d7b6e=>_0x1d7b6e['kind']===_0x2350e9(0x2c8,0x2dd,0x2e8,0x357)&&_0x1d7b6e['enabled']!==![]&&_0x1d7b6e[_0x333e2a(0x14a,0x1bb,0x17c,0x19f)]===_0x340773[_0x333e2a(0x160,0x1bb,0x15f,0x21d)]&&_0x1d7b6e['terminal']===!![]);if(_0x151672)throw new Error(_0x2350e9(0x2ac,_0xd5e929._0x4286ff,0x2e7,0x321)+_0x340773['id']+_0x2350e9(_0xd5e929._0x380ca7,0x3c4,_0xd5e929._0x1bd715,0x3f9)+_0x340773[_0x333e2a(_0xd5e929._0x35fc50,0x1bb,0x20f,_0xd5e929._0xc2042d)]+_0x333e2a(0x157,_0xd5e929._0x4bfbf7,_0xd5e929._0x410af8,0xcd)+_0x151672['id']+_0x2350e9(0x3d9,_0xd5e929._0x3851a3,_0xd5e929._0x40063e,0x380));}function _0x2350e9(_0x3adbea,_0x34f200,_0x54ed3b,_0x4073c6){return _0x5e07(_0x54ed3b-0x1c1,_0x34f200);}function _0x333e2a(_0xba3931,_0x76dfb3,_0x2e5132,_0x272ac6){return _0x5e07(_0x76dfb3- -_0x2751a0._0x27f7d6,_0xba3931);}_0x7a7cf1[_0x2350e9(_0xd5e929._0x1df00f,_0xd5e929._0x5d7536,0x343,_0xd5e929._0x2564bf)]({..._0x340773});},async 'runTransformers'(_0x4dcbc3,_0xcce059,_0x1b8e3c){let _0x34297d=_0xcce059;for(const _0x523884 of getOrderedTransformerExtensions(_0x7a7cf1,_0x4dcbc3)){_0x34297d=await _0x523884['run'](_0x34297d,_0x1b8e3c);}return _0x34297d;},async 'runObservers'(_0x59a44f,_0x24ce8d,_0x4e5988){const _0x41baff={_0x98fe0d:0x85};function _0x41848f(_0x4df577,_0x21e1a8,_0x3fa967,_0x3fe88e){return _0x5e07(_0x3fa967- -_0x41baff._0x98fe0d,_0x3fe88e);}for(const _0x55d6cc of getOrderedObserverExtensions(_0x7a7cf1,_0x59a44f)){await _0x55d6cc[_0x41848f(_0x368e67._0x518543,_0x368e67._0x51ab1d,0x138,0x138)](_0x24ce8d,_0x4e5988);}}};}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(_0x47404e,_0x5edfe6){const _0x2e8c43={_0x241f13:0x41,_0x283376:0x14,_0x246262:0xa7,_0x5118a6:0x47,_0x19c7c3:0x247,_0xfbc9d4:0x20c,_0x523816:0x76,_0xe20933:0x5b,_0x42c65d:0x12,_0x2f7401:0x243,_0x3f7699:0x2be,_0x5ce981:0x243,_0x18e86c:0x217,_0x24c603:0x1ad,_0x42149c:0x238,_0x3a2c00:0x29a,_0x157da3:0x277,_0xbe168c:0x26c,_0x4f76a7:0x2fb,_0x657d2d:0x202,_0x104f8d:0x1fa,_0x39f9d1:0x254,_0x42a56e:0x22f,_0x1f61ab:0x24b,_0x1bd565:0x38,_0x3df1ba:0x2bf,_0x27a3c3:0x2f4,_0x25bf82:0x28a,_0x437cd8:0xd2,_0x9320e0:0x68,_0x485406:0x1c5,_0x5ab3b6:0x35,_0x401523:0x15,_0x4623fb:0x18,_0x215acc:0x1e2,_0xdd58f5:0x24c,_0x261d2b:0x27,_0x530f0b:0x36},_0x4e7b10={_0x564b94:0x51f},_0x52c2db={_0x4f7d1c:0xc5};function _0x52d365(_0x513958,_0x2e1c51,_0xd006fe,_0x507f92){return _0x129ebd(_0x513958-_0x52c2db._0x4f7d1c,_0xd006fe,_0x513958- -0x2c8,_0x507f92-0xd9);}const _0x449ed8=_0x5edfe6[_0x7d479a(_0x2e8c43._0x241f13,-_0x2e8c43._0x283376,0x59,0x38)],_0x1a6bb3=_0x449ed8[_0x7d479a(-_0x2e8c43._0x246262,-0x3b,-0x67,-_0x2e8c43._0x5118a6)],_0x16ed2c=_0x449ed8[_0x52d365(0x266,_0x2e8c43._0x19c7c3,_0x2e8c43._0xfbc9d4,0x2dd)],_0x1d1046=_0x449ed8[_0x7d479a(-_0x2e8c43._0x523816,-0x4a,_0x2e8c43._0xe20933,-_0x2e8c43._0x42c65d)]??0x0;function _0x7d479a(_0x3b6f45,_0x1c005d,_0x5509c5,_0x4a9476){return _0x129ebd(_0x3b6f45-0x1ed,_0x5509c5,_0x4a9476- -_0x4e7b10._0x564b94,_0x4a9476-0x35);}const _0x394225=_0x1a6bb3+_0x16ed2c,_0x468219=_0x449ed8['reportedCost']?.[_0x52d365(_0x2e8c43._0x2f7401,0x26e,_0x2e8c43._0x3f7699,0x1df)],_0x46b569=_0x449ed8['estimatedCost']?.[_0x52d365(_0x2e8c43._0x5ce981,0x29f,0x286,0x227)],_0x43be5f=_0x468219??_0x46b569,{currentReportedCostUsdTicks:_0x34beba,currentEstimatedCostUsdTicks:_0x4e0484,..._0x566802}=_0x47404e;return{..._0x566802,'totalTokens':_0x566802['totalTokens']+_0x394225,'totalInputTokens':_0x566802['totalInputTokens']+_0x1a6bb3,'totalOutputTokens':_0x566802[_0x52d365(0x207,_0x2e8c43._0x18e86c,_0x2e8c43._0x24c603,_0x2e8c43._0x42149c)]+_0x16ed2c,'totalReasoningTokens':_0x566802[_0x52d365(0x2c5,_0x2e8c43._0x3a2c00,_0x2e8c43._0x157da3,0x24e)]+_0x1d1046,'modelCallCount':_0x566802['modelCallCount']+0x1,'totalModelTimeMs':_0x566802[_0x52d365(0x2d1,0x26a,_0x2e8c43._0xbe168c,_0x2e8c43._0x4f76a7)]+_0x5edfe6['modelTimeMs'],'currentTokens':_0x394225,'currentInputTokens':_0x1a6bb3,'currentOutputTokens':_0x16ed2c,'currentReasoningTokens':_0x1d1046,'currentModelTimeMs':_0x5edfe6[_0x52d365(_0x2e8c43._0x657d2d,0x23e,0x1e3,_0x2e8c43._0x104f8d)],..._0x566802[_0x52d365(0x288,_0x2e8c43._0x39f9d1,_0x2e8c43._0x42a56e,_0x2e8c43._0x1f61ab)]&&_0x394225>0x0?{'contextWindowUsage':_0x394225/_0x566802[_0x7d479a(-_0x2e8c43._0x1bd565,-0x2c,-0x43,0x31)]}:{},'totalCostUsdTicks':_0x43be5f===void 0x0?_0x566802[_0x52d365(_0x2e8c43._0x3df1ba,_0x2e8c43._0x27a3c3,0x2b8,_0x2e8c43._0x25bf82)]:_0x566802[_0x7d479a(0x43,_0x2e8c43._0x437cd8,0x82,_0x2e8c43._0x9320e0)]+_0x43be5f,'totalReportedCostUsdTicks':_0x468219===void 0x0?_0x566802[_0x52d365(0x237,0x2a5,_0x2e8c43._0x485406,0x20f)]:_0x566802['totalReportedCostUsdTicks']+_0x468219,'totalEstimatedCostUsdTicks':_0x46b569===void 0x0?_0x566802[_0x7d479a(-_0x2e8c43._0x5ab3b6,_0x2e8c43._0x401523,0x67,0x14)]:_0x566802[_0x7d479a(-0x2b,-_0x2e8c43._0x4623fb,0x6f,0x14)]+_0x46b569,'reportedCostCallCount':_0x468219===void 0x0?_0x566802['reportedCostCallCount']:_0x566802[_0x52d365(_0x2e8c43._0x215acc,_0x2e8c43._0xdd58f5,0x1eb,0x235)]+0x1,'estimatedCostCallCount':_0x46b569===void 0x0?_0x566802[_0x7d479a(-0x40,-0x10,-_0x2e8c43._0x261d2b,-_0x2e8c43._0x530f0b)]:_0x566802[_0x7d479a(-0x30,-0xa0,0x44,-0x36)]+0x1,'unpricedModelCallCount':_0x468219===void 0x0&&_0x46b569===void 0x0?_0x566802['unpricedModelCallCount']+0x1:_0x566802['unpricedModelCallCount'],..._0x468219!==void 0x0?{'currentReportedCostUsdTicks':_0x468219}:{},..._0x46b569!==void 0x0?{'currentEstimatedCostUsdTicks':_0x46b569}:{}};}function createAgentMetrics(_0x26b489={}){const _0x12220f={_0x3b4a71:0x86},_0x29f991={_0x402d34:0xa5},_0x618721={_0x538334:0x2b3,_0x59ceae:0x2b9,_0x1d1939:0x3ef,_0x2c565:0x471,_0x6c9df3:0x3fc,_0x2a57bb:0x42c,_0x17e2d9:0x279,_0x6faeda:0x205,_0x58ec0b:0x28d,_0x2266d6:0x266,_0x4406b5:0x24a,_0xb7247d:0x279,_0x27a29b:0x2d3,_0x24b446:0x280,_0x2be83d:0x303,_0x566f64:0x2dc,_0x5f36c0:0x2f4,_0x38f18c:0x299},_0x31b2a9={_0x139890:0x1c5,_0x12bcab:0x1a5,_0x329744:0x1a9,_0x18be7d:0x1e8,_0x5f4692:0x117,_0x5e6d2f:0x175,_0x1dda14:0x17a,_0x17dbf9:0x23f,_0xad4d8:0x194,_0x4c9d43:0x22c,_0x4a92a4:0x1a4,_0x249727:0x211,_0x409930:0xfb,_0x10aae4:0xbd,_0xba3a3c:0x251,_0x1135cc:0x169,_0x145d00:0x54d,_0x25368c:0x54d,_0x35ca33:0x4c0,_0x1f7589:0x4d5,_0x131264:0x514},_0x22be33={_0x13e00e:0x37c};let _0x389d71=createEmptySnapshot();const _0xc98207=new Set();let _0x57bf3f;const _0x19b2ef=()=>{const _0x2bdac1={..._0x389d71};for(const _0x467a44 of _0xc98207)_0x467a44(_0x2bdac1);};return{'getSnapshot'(){return{..._0x389d71};},'recordEvent'(_0x1e12cc){const _0x23e69f={_0xec7dff:0x329};if(_0x1e12cc[_0x43044c(-_0x31b2a9._0x139890,-0x1e8,-0x23f,-0x18b)]===_0x4ce4cd(0x4ed,0x4f0,0x4f9,0x537)){_0x57bf3f=Date['now']();const _0x31772b=_0x26b489[_0x43044c(-0x1bd,-0x18d,-_0x31b2a9._0x12bcab,-_0x31b2a9._0x329744)]?.(_0x1e12cc['request']);_0x31772b!==void 0x0&&(_0x389d71={..._0x389d71,'contextWindowLimit':_0x31772b},_0x19b2ef());return;}function _0x43044c(_0x51836a,_0x54b23c,_0x2116b8,_0x2b1aee){return _0x5e07(_0x54b23c- -_0x23e69f._0xec7dff,_0x2b1aee);}if(_0x1e12cc[_0x43044c(-_0x31b2a9._0x329744,-_0x31b2a9._0x18be7d,-0x1c8,-0x1ac)]==='model_response'){const _0x838b50=_0x57bf3f===void 0x0?0x0:Date[_0x43044c(-_0x31b2a9._0x5f4692,-0x10f,-0xfc,-_0x31b2a9._0x5e6d2f)]()-_0x57bf3f;_0x57bf3f=void 0x0,_0x389d71=applyModelCall(_0x389d71,{'usage':_0x1e12cc['response']['usage'],'modelTimeMs':_0x1e12cc[_0x43044c(-_0x31b2a9._0x1dda14,-0x1cf,-_0x31b2a9._0x17dbf9,-_0x31b2a9._0xad4d8)]??_0x838b50}),_0x19b2ef();return;}if(_0x1e12cc[_0x43044c(-_0x31b2a9._0x4c9d43,-0x1e8,-_0x31b2a9._0x4a92a4,-_0x31b2a9._0x249727)]==='tool_call'){_0x389d71={..._0x389d71,'toolCallCount':_0x389d71[_0x43044c(-_0x31b2a9._0x409930,-0x13b,-0x16b,-_0x31b2a9._0x10aae4)]+0x1},_0x19b2ef();return;}function _0x4ce4cd(_0x6ff6d5,_0x5a0904,_0x15d9d0,_0x821ada){return _0x5e07(_0x821ada-_0x22be33._0x13e00e,_0x5a0904);}_0x1e12cc[_0x43044c(-0x244,-_0x31b2a9._0x18be7d,-_0x31b2a9._0xba3a3c,-_0x31b2a9._0x1135cc)]===_0x4ce4cd(_0x31b2a9._0x145d00,_0x31b2a9._0x25368c,0x5a7,0x597)&&(_0x389d71={..._0x389d71,'requestCount':_0x389d71[_0x4ce4cd(_0x31b2a9._0x35ca33,0x4b5,_0x31b2a9._0x1f7589,_0x31b2a9._0x131264)]+0x1},_0x19b2ef());},'reset'(){_0x389d71=createEmptySnapshot(),_0x57bf3f=void 0x0,_0x19b2ef();},'restore'(_0xb16ba2){let _0x37a7e4=createEmptySnapshot();function _0x456793(_0x4b8fad,_0x3dc191,_0x2d4cab,_0x307a3a){return _0x5e07(_0x2d4cab-0x215,_0x307a3a);}for(const _0x523b1a of _0xb16ba2[_0x1cbf5a(0x326,_0x618721._0x538334,0x2ef,_0x618721._0x59ceae)]){_0x37a7e4=applyModelCall(_0x37a7e4,{'usage':_0x523b1a[_0x456793(_0x618721._0x1d1939,_0x618721._0x2c565,_0x618721._0x6c9df3,_0x618721._0x2a57bb)],'modelTimeMs':_0x523b1a['modelTimeMs']});}function _0x1cbf5a(_0x3cdc3a,_0x3e7d85,_0x4313e7,_0x467863){return _0x5e07(_0x467863-0x115,_0x3cdc3a);}_0x389d71={..._0x37a7e4,'requestCount':_0xb16ba2[_0x1cbf5a(_0x618721._0x17e2d9,0x323,0x339,0x2b9)][_0x1cbf5a(_0x618721._0x6faeda,0x2e7,_0x618721._0x58ec0b,_0x618721._0x2266d6)](_0x2ee17d=>_0x2ee17d[_0x1cbf5a(0x307,0x329,0x26f,0x2c9)])[_0x1cbf5a(0x293,_0x618721._0x4406b5,0x273,_0x618721._0xb7247d)],'toolCallCount':_0xb16ba2[_0x1cbf5a(0x286,_0x618721._0x27a29b,_0x618721._0x24b446,_0x618721._0x2be83d)],'historicalMetricsComplete':_0xb16ba2[_0x1cbf5a(0x2c0,0x302,_0x618721._0x566f64,_0x618721._0x5f36c0)]===0x0,'missingHistoricalModelCallCount':_0xb16ba2[_0x1cbf5a(_0x618721._0x38f18c,0x2c4,0x32e,0x2f4)]},_0x57bf3f=void 0x0,_0x19b2ef();},'subscribe'(_0x140324){_0xc98207[_0x2a5271(-0x93,-0x68,-_0x12220f._0x3b4a71,-0xb8)](_0x140324);function _0x2a5271(_0x55b875,_0x2db9b9,_0x8b6e9e,_0x4efb34){return _0x5e07(_0x8b6e9e- -0x1dc,_0x55b875);}return()=>{const _0x1c6ad5={_0x25a873:0x161};function _0x555533(_0x3c00ea,_0x2c948a,_0x1998c4,_0x25fef9){return _0x2a5271(_0x2c948a,_0x2c948a-_0x1c6ad5._0x25a873,_0x25fef9-0x146,_0x25fef9-0x1a6);}_0xc98207[_0x555533(0x12c,0x14c,_0x29f991._0x402d34,0xde)](_0x140324);};}};}function normalizeExecutionScope(_0x6b0a0c){const _0xb43dd5={_0xbdf502:0x9d,_0x859b10:0xea,_0x388c4b:0x89},_0x3a3480={_0xddea10:0x125,_0x1573d9:0x4a1,_0x22cd43:0x4a};function _0x2c4173(_0x54679e,_0x50337a,_0x25ddf2,_0x318092){return _0x129ebd(_0x54679e-_0x3a3480._0xddea10,_0x318092,_0x25ddf2- -_0x3a3480._0x1573d9,_0x318092-_0x3a3480._0x22cd43);}function _0x21d9c(_0x561fea,_0x51a711,_0x43504e,_0x17239d){return _0x129ebd(_0x561fea-0x7e,_0x51a711,_0x561fea- -0x649,_0x17239d-0x12c);}return{'agentId':_0x6b0a0c?.['agentId']??_0x2c4173(0x1c,0xb5,_0xb43dd5._0xbdf502,0x5a),'toolCallPath':[..._0x6b0a0c?.[_0x21d9c(-_0xb43dd5._0x859b10,-0x7d,-0x110,-_0xb43dd5._0x388c4b)]??[]]};}function makeExtensionContext(_0xb32857,_0xe914e0){const _0x3ec087={_0x4556e0:0x280,_0x44567b:0x292};function _0x207c34(_0x52deb3,_0x411bbb,_0x5deb64,_0x3dfebb){return _0x129ebd(_0x52deb3-0x195,_0x52deb3,_0x5deb64- -0x74d,_0x3dfebb-0x4b);}return{'state':_0xb32857,'delivery':_0x207c34(-_0x3ec087._0x4556e0,-_0x3ec087._0x44567b,-0x256,-0x295),'executionScope':_0xe914e0};}async function runStage(_0x149846,_0x344a4f,_0x4bc850,_0x30639f){const _0x425152={_0xdda243:0x331,_0x50d2b6:0x343},_0x1f6fab={_0x29a2f4:0x213,_0x5b9566:0x2d},_0x22d8ba=await _0x149846[_0x50cd4e(_0x425152._0xdda243,_0x425152._0x50d2b6,0x326,0x2c0)](_0x344a4f,_0x4bc850,_0x30639f);function _0x50cd4e(_0xdba174,_0x3442c3,_0x40132f,_0x15f51b){return _0x129ebd(_0xdba174-0x142,_0x15f51b,_0x40132f- -_0x1f6fab._0x29a2f4,_0x15f51b-_0x1f6fab._0x5b9566);}return await _0x149846['runObservers'](_0x344a4f,_0x22d8ba,_0x30639f),_0x22d8ba;}async function emitEvent2(_0x1ae13a,_0x509a23,_0x427dc5){await _0x1ae13a?.(_0x509a23,_0x427dc5);}function replaceToolUseBlocks(_0x5604e8,_0x5a67ad){const _0x2dcd20={_0x1e6e16:0x1c3,_0x10ae63:0x271,_0x446934:0x267,_0x32eb6b:0x288,_0xc91518:0x271},_0x10d097={_0x30a5dc:0x160,_0x163eea:0x151,_0x56a2fa:0x1b9,_0x45d33e:0x36},_0x9104af={_0x37f680:0x195,_0x59ddd1:0x9a},_0x3d2e95={_0x228275:0x105,_0x21f598:0x1cc},_0x13bfa7={_0x3fedfa:0x1a7,_0x2dea06:0x1c7,_0x4a6fcd:0xd2};function _0x4f4825(_0x123ce6,_0x3a1fc0,_0x48fa00,_0x36ce03){return _0x129ebd(_0x123ce6-_0x13bfa7._0x3fedfa,_0x48fa00,_0x3a1fc0- -_0x13bfa7._0x2dea06,_0x36ce03-_0x13bfa7._0x4a6fcd);}function _0x4460a8(_0x458a0a,_0x27345a,_0x59873f,_0x3431a8){return _0x25dd81(_0x458a0a-_0x3d2e95._0x228275,_0x27345a-_0x3d2e95._0x21f598,_0x458a0a- -0x9b,_0x3431a8);}let _0x6ce20c=0x0;return{..._0x5604e8,'content':_0x5604e8[_0x4460a8(0x240,_0x2dcd20._0x1e6e16,_0x2dcd20._0x10ae63,_0x2dcd20._0x446934)][_0x4460a8(0x223,0x25c,_0x2dcd20._0x32eb6b,_0x2dcd20._0xc91518)](_0x383e7b=>{const _0x317be5={_0x9edc27:0x189};if(_0x383e7b[_0x2abddf(_0x10d097._0x30a5dc,_0x10d097._0x163eea,0x155,_0x10d097._0x56a2fa)]!==_0x472ce0(-_0x10d097._0x45d33e,0xb2,0x8e,0x46))return _0x383e7b;const _0x27dd2d=_0x5a67ad[_0x6ce20c];function _0x472ce0(_0xb3ea5a,_0x5cc461,_0x20f9b1,_0x47ecab){return _0x4460a8(_0x47ecab- -0x15d,_0x5cc461-_0x317be5._0x9edc27,_0x20f9b1-0x92,_0xb3ea5a);}_0x6ce20c+=0x1;function _0x2abddf(_0x37e146,_0x19e06c,_0x3d4ccd,_0x9fe36c){return _0x4f4825(_0x37e146-0x151,_0x3d4ccd- -_0x9104af._0x37f680,_0x19e06c,_0x9fe36c-_0x9104af._0x59ddd1);}return structuredClone(_0x27dd2d);})};}function createAssistantMessageId(_0x4abf75,_0x573f78){const _0xb0ff6a={_0x187045:0x21e},_0x5be8fe={_0x5e6e97:0x245};function _0x1b5e9b(_0x275f5f,_0x4ff9f3,_0x5738d3,_0x594eff){return _0x129ebd(_0x275f5f-0x1a0,_0x5738d3,_0x275f5f- -_0x5be8fe._0x5e6e97,_0x594eff-0x199);}return _0x4abf75+_0x1b5e9b(0x25c,0x23a,_0xb0ff6a._0x187045,0x2b4)+_0x573f78;}function createReasoningMessageId(_0x487acf){const _0x3703b0={_0x278228:0x361,_0x4dcbea:0x387,_0x29f3b9:0x33a,_0x304649:0x2c6};function _0x5893bf(_0x43a1cb,_0x3d56ee,_0x51e872,_0x178351){return _0x129ebd(_0x43a1cb-0x81,_0x43a1cb,_0x51e872- -0x22f,_0x178351-0x1b7);}return _0x487acf+_0x5893bf(_0x3703b0._0x278228,_0x3703b0._0x4dcbea,_0x3703b0._0x29f3b9,_0x3703b0._0x304649);}function withMessageId(_0x3badf2,_0xed1db7){if(_0x3badf2['id']===_0xed1db7)return _0x3badf2;return{..._0x3badf2,'id':_0xed1db7};}function createAssistantChunkEvent(_0x45c81b,_0x3f2ec8){const _0x31ca47={_0x469cc9:0x82,_0x9b5d63:0xe5,_0x1bf072:0x97,_0x3385d1:0x4b,_0xcb7403:0xa8,_0x17549c:0x27,_0x3a0deb:0xa,_0x3493f5:0x35c,_0x5eb5cb:0x2db,_0x316b30:0x33e,_0x501702:0x1,_0x4f5777:0x121,_0x3c8ff2:0x3e,_0x420a82:0xa8,_0x34d6aa:0x3ea,_0x38f410:0x312,_0x2f3014:0x392,_0x4d96e0:0x33f},_0x5bc55b={_0x30bfa0:0xc1,_0xaf21c4:0x548,_0x48ec19:0x58},_0x15cdc6={_0x4b4f59:0x31,_0x334246:0x1c7};if(_0x45c81b[_0x36c432(-_0x31ca47._0x469cc9,-_0x31ca47._0x9b5d63,-0xa6,-_0x31ca47._0x1bf072)]!==_0x36c432(-0x109,-_0x31ca47._0x3385d1,-0x8e,-_0x31ca47._0xcb7403))return void 0x0;if(_0x45c81b[_0x36c432(-0x15,-_0x31ca47._0x17549c,-_0x31ca47._0x3a0deb,-0x42)]===void 0x0)return void 0x0;function _0x1aec32(_0xb4c2f3,_0x344fc3,_0x35fd84,_0x29fed0){return _0x129ebd(_0xb4c2f3-_0x15cdc6._0x4b4f59,_0x344fc3,_0x29fed0- -_0x15cdc6._0x334246,_0x29fed0-0xb2);}function _0x36c432(_0x25706c,_0x343aa8,_0x4692f6,_0x1fc1b0){return _0x129ebd(_0x25706c-_0x5bc55b._0x30bfa0,_0x25706c,_0x1fc1b0- -_0x5bc55b._0xaf21c4,_0x1fc1b0-_0x5bc55b._0x48ec19);}return{'type':_0x1aec32(0x324,_0x31ca47._0x3493f5,_0x31ca47._0x5eb5cb,_0x31ca47._0x316b30),'index':_0x45c81b[_0x36c432(-_0x31ca47._0x501702,0x12,-0x50,0x11)]??0x0,'messageId':_0x3f2ec8,'chunk':{'type':_0x36c432(-_0x31ca47._0x4f5777,-0x38,-_0x31ca47._0x3c8ff2,-_0x31ca47._0x420a82),'index':_0x45c81b[_0x1aec32(0x396,_0x31ca47._0x34d6aa,_0x31ca47._0x38f410,_0x31ca47._0x2f3014)]??0x0,'text':_0x45c81b[_0x1aec32(0x324,0x374,0x38d,_0x31ca47._0x4d96e0)]}};}function createToolUseChunkEvent(_0x4e3870,_0x52155b){const _0x1e72a2={_0x531d6a:0x117,_0x1bc362:0xe0,_0x4a1c5f:0x9e,_0x5dbc72:0xce,_0x227e93:0xc4,_0x72e1f9:0x8c,_0x1b52ad:0xeb,_0x2630df:0x45,_0x2e1751:0x6f,_0x370ee2:0xe,_0xcd03bd:0x12,_0x16fb93:0x7b,_0x2f417d:0x6d,_0x49f392:0xee,_0x5c25b3:0x80,_0x23bfd1:0x8f,_0x170c26:0xbe,_0x20b150:0xe4},_0x2b8ef4={_0x3b54b3:0x5c8,_0xd489ce:0x17c},_0x4cb9f5={_0xfdacac:0x11e,_0x33c9bf:0x328};if(_0x4e3870[_0x131579(-_0x1e72a2._0x531d6a,-_0x1e72a2._0x1bc362,-_0x1e72a2._0x4a1c5f,-_0x1e72a2._0x5dbc72)]!==_0x1058b3(-_0x1e72a2._0x227e93,-0x13e,-0x118,-_0x1e72a2._0x72e1f9))return void 0x0;function _0x1058b3(_0x1d5942,_0x54b5e3,_0x56a353,_0x3082de){return _0x25dd81(_0x1d5942-_0x4cb9f5._0xfdacac,_0x54b5e3-0x90,_0x1d5942- -_0x4cb9f5._0x33c9bf,_0x56a353);}function _0x131579(_0x1f69ae,_0x352707,_0x34b90a,_0x32d772){return _0x129ebd(_0x1f69ae-0x9a,_0x352707,_0x1f69ae- -_0x2b8ef4._0x3b54b3,_0x32d772-_0x2b8ef4._0xd489ce);}return{'type':'tool_use_chunk','index':_0x4e3870['index']??0x0,'messageId':_0x52155b,'chunk':{'type':_0x1058b3(-0xc4,-_0x1e72a2._0x1b52ad,-_0x1e72a2._0x2630df,-0x101),'id':_0x4e3870['id']??'','index':_0x4e3870[_0x131579(-_0x1e72a2._0x2e1751,-_0x1e72a2._0x370ee2,-0x81,-0x23)]??0x0,..._0x4e3870[_0x131579(-0x87,-_0x1e72a2._0xcd03bd,-_0x1e72a2._0x16fb93,-0xd4)]!==void 0x0?{'name':_0x4e3870[_0x1058b3(-_0x1e72a2._0x2f417d,-_0x1e72a2._0x49f392,-0x67,0x12)]}:{},..._0x4e3870[_0x131579(-_0x1e72a2._0x5c25b3,-_0x1e72a2._0x23bfd1,-_0x1e72a2._0x170c26,-0x19)]!==void 0x0?{'inputDelta':_0x4e3870[_0x1058b3(-0x66,-0x2e,-_0x1e72a2._0x20b150,-0xd4)]}:{}}};}function createReasoningChunkEvent(_0x36ca62,_0x555264){const _0x277a79={_0x5efa89:0x24e,_0x32362b:0x1dd,_0x41b0d2:0x198,_0x21ae1d:0x2d8,_0x571f54:0x290,_0xe75360:0x229,_0x455dfc:0x2a6,_0x2f8bee:0x257,_0x558732:0x167,_0x521cbf:0x19c,_0x946a15:0x160,_0x24933:0x1d9,_0x2132e0:0x17a,_0x4e87b3:0x158,_0x4661f7:0x19a,_0x2447e9:0x196,_0x4de456:0x1c4,_0xc7131e:0x244,_0x72ba5a:0x1d2,_0x50dcfc:0x15e,_0x530a95:0x173,_0x428fd2:0x1dc,_0x3603d9:0x1fb,_0xc67434:0x232,_0x3c1c9d:0x202,_0x26ce67:0x1f0,_0x17e036:0x116,_0x1f7b75:0x247,_0x5cf9cd:0x20d,_0x42c73e:0x265,_0x2b4be0:0x27d,_0x203ac1:0x217,_0x329221:0x248,_0x31a8f3:0x1c4},_0x3cf7af={_0x4b5a0d:0x32c,_0x2eb4b9:0x24},_0x5233d5={_0x15d588:0x17f,_0x12415b:0x7c,_0xb32ea0:0x43};function _0x4aa84f(_0x56f74e,_0x4dfada,_0x408c0,_0x377099){return _0x25dd81(_0x56f74e-_0x5233d5._0x15d588,_0x4dfada-_0x5233d5._0x12415b,_0x377099- -_0x5233d5._0xb32ea0,_0x56f74e);}function _0x5160c7(_0x187002,_0x2c809a,_0x2459ea,_0x27d222){return _0x129ebd(_0x187002-0x89,_0x2c809a,_0x187002- -_0x3cf7af._0x4b5a0d,_0x27d222-_0x3cf7af._0x2eb4b9);}switch(_0x36ca62['type']){case _0x4aa84f(0x221,0x28f,0x227,_0x277a79._0x5efa89):return{'type':_0x4aa84f(0x1c6,0x1e5,0x1b5,_0x277a79._0x32362b),'index':_0x36ca62[_0x4aa84f(0x257,0x2eb,0x2ed,0x290)],'messageId':_0x555264,'chunk':{'type':_0x5160c7(0x1eb,0x197,0x261,_0x277a79._0x41b0d2),'index':_0x36ca62[_0x4aa84f(_0x277a79._0x21ae1d,_0x277a79._0x571f54,_0x277a79._0xe75360,_0x277a79._0x571f54)]??0x0,'thinking':_0x36ca62[_0x5160c7(0x1f4,0x20f,0x198,0x18f)]??''},'text':_0x36ca62[_0x4aa84f(_0x277a79._0x455dfc,0x22f,0x261,_0x277a79._0x2f8bee)]??''};case _0x4aa84f(_0x277a79._0x558732,_0x277a79._0x521cbf,_0x277a79._0x946a15,_0x277a79._0x24933):return{'type':_0x5160c7(_0x277a79._0x2132e0,0x16c,_0x277a79._0x4e87b3,0x1c6),'index':_0x36ca62[_0x5160c7(0x216,_0x277a79._0x4661f7,0x261,_0x277a79._0x2447e9)],'messageId':_0x555264,'chunk':{'type':'openai_reasoning_delta','contentIndex':_0x36ca62['contentIndex']??0x0,'delta':_0x36ca62[_0x5160c7(_0x277a79._0x4de456,_0x277a79._0xc7131e,_0x277a79._0x72ba5a,0x163)]??'','itemId':_0x36ca62[_0x5160c7(0x1bb,_0x277a79._0x50dcfc,_0x277a79._0x530a95,0x177)]??'','outputIndex':_0x36ca62[_0x5160c7(0x204,_0x277a79._0x428fd2,_0x277a79._0x3603d9,0x223)]??0x0},'text':_0x36ca62[_0x5160c7(0x1c4,_0x277a79._0xc67434,_0x277a79._0x3c1c9d,0x195)]??''};case _0x4aa84f(0x229,0x249,_0x277a79._0x26ce67,0x211):return{'type':_0x5160c7(0x17a,0xf8,_0x277a79._0x17e036,0x1b2),'index':_0x36ca62[_0x5160c7(_0x277a79._0x1f7b75,0x265,_0x277a79._0x5cf9cd,_0x277a79._0x42c73e)],'messageId':_0x555264,'chunk':{'type':_0x4aa84f(_0x277a79._0x2b4be0,_0x277a79._0x203ac1,_0x277a79._0x329221,0x211),'delta':_0x36ca62[_0x4aa84f(0x245,0x27b,_0x277a79._0x31a8f3,0x227)]??'','itemId':_0x36ca62['itemId']??'','outputIndex':_0x36ca62['outputIndex']??0x0,'summaryIndex':_0x36ca62['summaryIndex']??0x0},'text':_0x36ca62['delta']??''};default:return void 0x0;}}function cloneToolResultChunkForPublication2(_0x395713){return structuredClone(_0x395713);}function cloneToolResultForPublication2(_0x155563){const _0xf44b27={_0x5e450f:0x4d6,_0x2d1d95:0x4b0},_0x10d7d4={_0x5518fa:0x15,_0x123bfe:0x16a},_0xce6c50=_0x155563['callId'],_0x483b22=_0x155563['toolName'],{chunks:_0x42bb37,..._0x331d0d}=_0x155563;function _0x1e3e3b(_0x202870,_0x5ccdc0,_0x5b25a2,_0x4276e5){return _0x129ebd(_0x202870-0x15c,_0x5ccdc0,_0x4276e5- -_0x10d7d4._0x5518fa,_0x4276e5-_0x10d7d4._0x123bfe);}return{...structuredClone(_0x331d0d),'callId':_0xce6c50,'toolName':_0x483b22,'chunks':_0x42bb37[_0x1e3e3b(_0xf44b27._0x5e450f,0x55f,_0xf44b27._0x2d1d95,0x52f)](cloneToolResultChunkForPublication2)};}function isAbortedToolResult(_0x3c5959){const _0x51dada={_0x20dc18:0x2a6,_0x457a04:0x218,_0x4b09af:0x2eb,_0x4fc70d:0x291,_0x3e0c7e:0x1f0,_0x5db561:0x1f4,_0x41da42:0x218,_0x24ae61:0x2ea,_0xf8db3b:0x27b,_0x4fd932:0x35f},_0x507c47={_0xcde01d:0x2},_0x5ef3ff={_0x29320e:0x19,_0x2a71ae:0x43,_0x33a27b:0x38b};function _0x433b18(_0x242e2b,_0x30cb49,_0x4cb358,_0x1926b8){return _0x25dd81(_0x242e2b-_0x5ef3ff._0x29320e,_0x30cb49-_0x5ef3ff._0x2a71ae,_0x30cb49- -_0x5ef3ff._0x33a27b,_0x242e2b);}function _0x8a8f57(_0x548150,_0x247c3e,_0x2872ee,_0x178611){return _0x25dd81(_0x548150-0x76,_0x247c3e-_0x507c47._0xcde01d,_0x178611-0x5,_0x247c3e);}return _0x3c5959[_0x8a8f57(_0x51dada._0x20dc18,_0x51dada._0x457a04,_0x51dada._0x4b09af,_0x51dada._0x4fc70d)]===_0x8a8f57(_0x51dada._0x3e0c7e,_0x51dada._0x5db561,0x23a,_0x51dada._0x41da42)&&_0x3c5959[_0x8a8f57(_0x51dada._0x24ae61,0x20c,0x2b9,_0x51dada._0xf8db3b)][_0x8a8f57(_0x51dada._0x4fd932,0x2de,0x2a1,0x2f1)]===!![];}async function executeModelRequest(_0x3f8b7a,_0x5e067c,_0x2f2601,_0x31b7e5,_0x4697f5,_0x2138ea){const _0x1c6323={_0x4a2aa6:0xa2,_0x3d5fab:0x1de,_0x4f6960:0x13f,_0x2c6b11:0x14c,_0x5234cd:0x4a,_0x30b382:0x84,_0x28601b:0x1,_0x302608:0x3f,_0x19c3e1:0x7a,_0xe8b243:0x1e5,_0x2e07a1:0x25e,_0x5d4370:0x1d0,_0xbd81d4:0x253,_0x1d3738:0x7f,_0x1dceba:0x3a,_0x15ecab:0xe,_0x570c11:0x5d,_0x1b5cd2:0x5b,_0x358a9c:0x93,_0x34f112:0x28,_0x33de3d:0x184,_0x14b154:0x205,_0x3504df:0x1b0,_0x29caaf:0x70,_0x3b5002:0x8e,_0x29d1e4:0x6f,_0xbfc730:0x4c,_0x1d7234:0x1,_0x556776:0x30,_0x4ac543:0xa0,_0x27f902:0x8d,_0x8e8adc:0x2c,_0x214e55:0xf,_0x2ddfa5:0x162,_0x40d52f:0x19a,_0x3bf35a:0x10e,_0x39db20:0x143,_0x40f02a:0x17f,_0x59a534:0x1e,_0x237adc:0x1cc,_0x501705:0x200,_0x704cbb:0x248,_0x4d9f82:0x1db,_0x49418f:0x16d,_0x56588e:0x238,_0xd948a9:0x21e,_0x360eaf:0x1fc,_0x37cb4f:0x18e,_0x23dd7b:0x180,_0x564e4e:0xbc,_0xf1ce9:0x112,_0x1bc637:0xe4,_0x15293d:0x6,_0x117f4d:0xa0,_0x1094bb:0x14f,_0x3d1cce:0x1f8,_0x5e92d0:0x149,_0x3b6725:0x1cc,_0x3f9c31:0x1a0,_0x30a2a1:0x234,_0x147901:0xd6,_0xe87fd6:0xde,_0x3b8a2e:0x89,_0x364aef:0x31,_0x521b64:0x5e,_0xf9cd48:0xa3,_0x1b97ce:0x169,_0x4b9d28:0x5b,_0x340035:0x9,_0x180107:0x1e7,_0x560b0b:0x1d5,_0x136236:0x19b,_0x6a7ad6:0x57,_0x235ca8:0x86,_0x2554e9:0x7f},_0x144050={_0x49fdfc:0x13b,_0x505f11:0x69c,_0x4a9092:0x19d};throwIfAborted(_0x5e067c[_0x225353(-0x5e,-0x83,-_0x1c6323._0x4a2aa6,-0x1)]);if(!_0x5e067c[_0x493d68(-_0x1c6323._0x3d5fab,-0x177,-_0x1c6323._0x4f6960,-_0x1c6323._0x2c6b11)]||!_0x2f2601[_0x225353(0x15,0x93,-_0x1c6323._0x5234cd,_0x1c6323._0x30b382)])return await _0x2f2601['complete'](_0x3f8b7a,{'signal':_0x5e067c[_0x225353(-0x5e,-_0x1c6323._0x28601b,-_0x1c6323._0x302608,-0xbf)]});let _0x596f80;function _0x493d68(_0x59d654,_0x410489,_0x2cb857,_0x138958){return _0x129ebd(_0x59d654-_0x144050._0x49fdfc,_0x138958,_0x410489- -_0x144050._0x505f11,_0x138958-_0x144050._0x4a9092);}for await(const _0x5ce508 of _0x2f2601['stream'](_0x3f8b7a,{'signal':_0x5e067c[_0x225353(-0x5e,-0xa2,-_0x1c6323._0x19c3e1,-0x2d)]})){throwIfAborted(_0x5e067c[_0x493d68(-_0x1c6323._0xe8b243,-0x1f0,-0x1e2,-_0x1c6323._0x2e07a1)]);if(_0x5ce508[_0x493d68(-_0x1c6323._0x5d4370,-0x1eb,-_0x1c6323._0xbd81d4,-0x211)]===_0x225353(0x48,0xc1,0xb2,_0x1c6323._0x1d3738)){_0x2138ea[_0x225353(-_0x1c6323._0x1dceba,-0x9c,_0x1c6323._0x15ecab,-_0x1c6323._0x570c11)][_0x225353(-_0x1c6323._0x1b5cd2,-_0x1c6323._0x358a9c,-_0x1c6323._0x34f112,-0xc4)]!==void 0x0&&_0x2138ea[_0x493d68(-_0x1c6323._0x33de3d,-0x1cc,-_0x1c6323._0x14b154,-_0x1c6323._0x3504df)][_0x225353(_0x1c6323._0x29caaf,_0x1c6323._0x3b5002,_0x1c6323._0x29d1e4,_0x1c6323._0xbfc730)]===void 0x0&&(_0x2138ea['meta'][_0x225353(0x70,_0x1c6323._0x1d7234,0x72,0xcc)]=Date[_0x225353(0x80,_0x1c6323._0x556776,_0x1c6323._0x4ac543,0x102)]());_0x596f80=_0x5ce508[_0x225353(_0x1c6323._0x27f902,_0x1c6323._0x8e8adc,0x11,_0x1c6323._0x214e55)];continue;}if(_0x5ce508['type']===_0x493d68(-_0x1c6323._0x2ddfa5,-_0x1c6323._0x4f6960,-0x185,-0xca)){await emitEvent2(_0x31b7e5['onEvent'],{'type':_0x493d68(-_0x1c6323._0x40d52f,-_0x1c6323._0x4f6960,-_0x1c6323._0x3bf35a,-0x16d),'assistantMessageId':_0x2138ea[_0x493d68(-_0x1c6323._0x39db20,-_0x1c6323._0x40f02a,-0x12f,-0x1f6)],'reasoningMessageId':_0x2138ea[_0x225353(-0x3c,0x41,_0x1c6323._0x59a534,0x15)]},_0x4697f5),delete _0x2138ea[_0x493d68(-0x1ca,-_0x1c6323._0x237adc,-0x24f,-0x1da)][_0x493d68(-0x216,-0x1ed,-0x19a,-0x21e)],delete _0x2138ea['meta']['reasoningCompletedAt'];continue;}if(_0x5ce508[_0x493d68(-_0x1c6323._0x501705,-0x1eb,-0x170,-_0x1c6323._0x704cbb)]==='provider_retry'){await emitEvent2(_0x31b7e5['onEvent'],{..._0x5ce508,'assistantMessageId':_0x2138ea['assistantMessageId']},_0x4697f5);continue;}const _0x499d4f=createReasoningChunkEvent(_0x5ce508,_0x2138ea[_0x493d68(-_0x1c6323._0x3d5fab,-0x1ce,-0x1b1,-0x227)]);if(_0x499d4f&&_0x499d4f[_0x493d68(-_0x1c6323._0x4d9f82,-0x1eb,-_0x1c6323._0x49418f,-0x221)]===_0x493d68(-_0x1c6323._0x56588e,-0x1f6,-0x224,-_0x1c6323._0xd948a9)&&_0x499d4f[_0x493d68(-_0x1c6323._0x49418f,-0x196,-_0x1c6323._0x360eaf,-0x161)]['length']>0x0){_0x2138ea[_0x493d68(-_0x1c6323._0x37cb4f,-0x1cc,-0x16e,-0x198)][_0x225353(-0x5b,-0x7b,0x19,-0x38)]===void 0x0&&(_0x2138ea[_0x493d68(-_0x1c6323._0x23dd7b,-_0x1c6323._0x237adc,-0x189,-0x22e)]['reasoningStartedAt']=Date[_0x493d68(-_0x1c6323._0x564e4e,-_0x1c6323._0xf1ce9,-0x98,-_0x1c6323._0x1bc637)]());await emitEvent2(_0x31b7e5[_0x225353(-0x43,-_0x1c6323._0x15293d,-_0x1c6323._0x117f4d,-0x56)],_0x499d4f,_0x4697f5);continue;}const _0x290045=createAssistantChunkEvent(_0x5ce508,_0x2138ea[_0x493d68(-_0x1c6323._0x1094bb,-0x17f,-_0x1c6323._0x3d1cce,-0x162)]);if(_0x290045){_0x2138ea[_0x493d68(-0x1d4,-_0x1c6323._0x237adc,-0x15d,-_0x1c6323._0x5e92d0)][_0x493d68(-0x1a6,-0x1ed,-0x206,-0x258)]!==void 0x0&&_0x2138ea[_0x493d68(-0x18b,-_0x1c6323._0x3b6725,-_0x1c6323._0x3f9c31,-_0x1c6323._0x30a2a1)][_0x225353(0x70,_0x1c6323._0x147901,_0x1c6323._0xe87fd6,_0x1c6323._0x3b8a2e)]===void 0x0&&(_0x2138ea[_0x225353(-0x3a,_0x1c6323._0x364aef,-_0x1c6323._0x521b64,-_0x1c6323._0xf9cd48)][_0x493d68(-0x15d,-0x122,-_0x1c6323._0x1b97ce,-0x185)]=Date[_0x225353(0x80,0x9e,0x22,_0x1c6323._0x4b9d28)]());await emitEvent2(_0x31b7e5[_0x225353(-0x43,-0xa,-0x89,-_0x1c6323._0x340035)],_0x290045,_0x4697f5);continue;}const _0x3ec638=createToolUseChunkEvent(_0x5ce508,_0x2138ea['assistantMessageId']);_0x3ec638&&await emitEvent2(_0x31b7e5[_0x493d68(-_0x1c6323._0x180107,-_0x1c6323._0x560b0b,-0x1ea,-_0x1c6323._0x136236)],_0x3ec638,_0x4697f5);}if(!_0x596f80)throw new Error(_0x225353(-_0x1c6323._0x6a7ad6,0x20,-_0x1c6323._0x235ca8,-_0x1c6323._0x2554e9));function _0x225353(_0x40f740,_0x10cc80,_0x190760,_0x96330a){return _0x129ebd(_0x40f740-0x130,_0x96330a,_0x40f740- -0x50a,_0x96330a-0x40);}return _0x596f80;}function makeTurnGuards(_0x5a1e8b,_0x534698,_0x288040,_0x2981f7,_0x5bbedd){return{async 'stage'(_0x1823fa,_0x565082){return throwIfAborted(_0x5a1e8b),await runStage(_0x534698,_0x1823fa,_0x565082,_0x2981f7);},async 'emit'(_0x5a738c){throwIfAborted(_0x5a1e8b),await emitEvent2(_0x288040,_0x5a738c,_0x5bbedd);},async 'stageUnchecked'(_0x4641bb,_0x32469e){return await runStage(_0x534698,_0x4641bb,_0x32469e,_0x2981f7);},async 'emitUnchecked'(_0xe6296f){await emitEvent2(_0x288040,_0xe6296f,_0x5bbedd);}};}async function runTurn(_0x18776e,_0x24936f){const _0x5b1f0d={_0x241ea5:0x17,_0x55d307:0x97,_0x579ee4:0x27a,_0x221fab:0x29e,_0x308a37:0x26d,_0x362d74:0x89,_0x17ca12:0xe1,_0x2945c0:0xe3,_0x487571:0xe4,_0xd1724e:0x1f5,_0x116854:0x23d,_0x16902b:0x21f,_0x39c48d:0x202,_0x1ad482:0x277,_0x50b06e:0x18e,_0x3c5307:0xa8,_0x534f06:0xb0,_0x22790c:0xc7,_0x334f1a:0xf7,_0x2241df:0x137,_0x2589f5:0x131,_0x41bc9d:0x146,_0x4dc458:0x170,_0x276c31:0x145,_0x277081:0xd6,_0x380a7a:0x27,_0x40b4ab:0x32,_0x3199cb:0x102,_0x3dab80:0x3d,_0x113562:0xd5,_0x1febe9:0x196,_0x3f75ad:0xe1,_0x1f432f:0xb7,_0x194358:0x142,_0x13f573:0x1b3,_0x304c1a:0x176,_0x55da27:0x71,_0x3758db:0xcb,_0x16a10c:0x71,_0x549d8d:0xc1,_0x1a6cac:0x37,_0x9d39db:0x20,_0x42ec84:0xa7,_0x5d3c5c:0x10e,_0x139f67:0x25a,_0x42874f:0x9d,_0x2c1dd7:0x67,_0x26e600:0xd1,_0x323630:0x169,_0x18bf21:0x13f,_0x3a0a07:0x194,_0x5a65f5:0x9e,_0x276b8a:0xb7,_0x26c46b:0x125,_0x50de43:0x16c,_0x40c3e3:0x220,_0x5051ae:0x9f,_0x4c5c70:0x98,_0x4823ec:0x17e,_0x43601e:0x1ed,_0x3bba14:0x1e5,_0xeb91a0:0x1e0,_0x51dd92:0x217,_0x2f7967:0x181,_0x2fd0c0:0xa8,_0x4c9b01:0x124,_0x4a72a6:0xb3,_0x2a50ab:0xaf,_0x447147:0xe8,_0x4e8f67:0xbe,_0x408563:0xb6,_0x5d2459:0xea,_0x2ede9c:0x86,_0x268f5f:0x23b,_0x32e324:0x19c,_0x5c3565:0x1a9,_0x18ec44:0x15d,_0x12f281:0xc9,_0x28f781:0xab,_0x4df3dc:0xfd,_0x13f56f:0x135,_0x35ac82:0xdc,_0x5162a4:0x107,_0x3b82ce:0x104,_0x4e953a:0x17c,_0x243e31:0x111,_0x15ff1d:0x119,_0xc95334:0x172,_0x35da19:0xa3,_0x19214b:0x174,_0xd94544:0x109,_0x77ad8c:0x1e4,_0x232e30:0x174,_0x1bea2a:0x185,_0xb05315:0x1f3,_0x3bf44d:0x1da,_0x9aa176:0x7a,_0x93e3a6:0x6d,_0x5c5829:0xa,_0x256530:0x108,_0x96c0a2:0xd9,_0x512698:0xd2,_0x16bfeb:0x222,_0x3e627e:0x21e,_0x29afa6:0xe1,_0x33341a:0x105,_0x1fb68e:0x1b6,_0x4a77e6:0x24d,_0x1c52cf:0x58,_0x2db1eb:0x193,_0x2ecba0:0x1b8,_0x2d2b3f:0x1fb,_0x5a6ec8:0xae,_0x137a9a:0xe2,_0x41e647:0x15,_0x1d0ebc:0x187,_0x3b3720:0xea,_0x3c9417:0xe9,_0xdd8cb3:0x114,_0x304042:0xd1,_0x36747c:0x100,_0x1e676d:0x145,_0x1d5129:0xe7,_0x1bbd71:0x223,_0x2303a6:0x1e9,_0x3d5380:0x1dd,_0xe302a1:0x271,_0x3637bf:0x1c9,_0xbd2aaf:0x25f},_0x45e764={_0x5d3f16:0x275,_0x574716:0x20f,_0x3ff6b7:0x1be,_0x3a97bd:0x1ce,_0xefb308:0x237,_0x53100a:0x2f0,_0x194648:0x2bd,_0x52418d:0x268,_0x39da9d:0x28d},_0x4c135a={_0x8c3cb:0x8c,_0x43851f:0x14d},_0x5c3b65={_0x26f530:0x11e,_0x5d5235:0x136,_0x12fbce:0x108,_0x263f90:0xd3},_0x14095f={_0x38b017:0x1b1},_0x50e1f8={_0x494cfd:0x1c5,_0x5142bf:0x233,_0xfb058e:0x2b1,_0x39e738:0x24b,_0x321cd1:0x28f},_0x2aacef={_0x3e0e6c:0x18d},_0xdc4c1c={_0x93df66:0x179,_0x405815:0x45a},_0x1cd0cb=_0x24936f[_0x142051(0x5b,0x4c,0xad,0x1d)],_0x5982b0=_0x18776e['signal']??new AbortController()['signal'],_0x1e2fde=normalizeExecutionScope(_0x24936f[_0x142051(0x89,_0x5b1f0d._0x241ea5,_0x5b1f0d._0x55d307,0x4f)]);function _0x142051(_0x3f6aed,_0x4926bf,_0x5f7f4d,_0x1b7c9b){return _0x129ebd(_0x3f6aed-_0xdc4c1c._0x93df66,_0x1b7c9b,_0x3f6aed- -_0xdc4c1c._0x405815,_0x1b7c9b-0x14);}const _0x1d4c19={'sessionId':_0x18776e['sessionId'],'turnId':_0x18776e[_0x285283(0x220,_0x5b1f0d._0x579ee4,_0x5b1f0d._0x221fab,_0x5b1f0d._0x308a37)],'system':normalizeSystem(_0x18776e[_0x142051(0x5e,_0x5b1f0d._0x362d74,0x4a,0x57)]),'messages':(_0x18776e[_0x142051(_0x5b1f0d._0x17ca12,_0x5b1f0d._0x2945c0,0xa1,_0x5b1f0d._0x487571)]??[])[_0x285283(_0x5b1f0d._0xd1724e,_0x5b1f0d._0x116854,0x24b,_0x5b1f0d._0x16902b)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x24936f[_0x285283(_0x5b1f0d._0x39c48d,_0x5b1f0d._0x1ad482,0x274,_0x5b1f0d._0x50b06e)]===_0x142051(0xf0,_0x5b1f0d._0x3c5307,0x10a,_0x5b1f0d._0x534f06)?_0x24936f[_0x142051(0xf7,0x115,0xa7,_0x5b1f0d._0x22790c)]():_0x24936f[_0x142051(_0x5b1f0d._0x334f1a,_0x5b1f0d._0x2241df,0x98,_0x5b1f0d._0x2589f5)]};function _0x285283(_0x46ed7a,_0x3007e0,_0x206b1e,_0x19e2b0){return _0x129ebd(_0x46ed7a-0x1e8,_0x19e2b0,_0x46ed7a- -0x34f,_0x19e2b0-_0x2aacef._0x3e0e6c);}const _0x267c2a=makeExtensionContext(_0x1d4c19,_0x1e2fde),_0x3ca280={'sessionId':_0x1d4c19[_0x285283(_0x5b1f0d._0x41bc9d,_0x5b1f0d._0x4dc458,0x13b,0xef)],'turnId':_0x1d4c19[_0x142051(0x115,_0x5b1f0d._0x276c31,0x141,_0x5b1f0d._0x277081)],'state':_0x1d4c19,'executionScope':_0x1e2fde,'signal':_0x5982b0,..._0x24936f[_0x142051(0x9f,_0x5b1f0d._0x380a7a,0x33,0xb6)]?{'askUser':_0x24936f[_0x142051(0x9f,_0x5b1f0d._0x40b4ab,_0x5b1f0d._0x3199cb,_0x5b1f0d._0x3dab80)]}:{},..._0x24936f[_0x142051(0x10c,0x18f,0xf7,0x8c)]?{'setTopic':_0x24936f['setTopic']}:{}},{stage:_0x1787fb,emit:_0x1d7476,stageUnchecked:_0x4368a8,emitUnchecked:_0x1b2b95}=makeTurnGuards(_0x5982b0,_0x24936f[_0x142051(0x129,_0x5b1f0d._0x113562,_0x5b1f0d._0x1febe9,0x12d)],_0x24936f['onEvent'],_0x267c2a,_0x3ca280),_0x3c2bf8=async(_0x5430b7,_0x4f788e)=>{const _0xc761f5={_0x3223ad:0xa0,_0x287a38:0x50};function _0x5d1c1d(_0x456d79,_0x1b81bd,_0x5e0eb9,_0x4f0d8c){return _0x285283(_0x5e0eb9- -0x396,_0x1b81bd-_0xc761f5._0x3223ad,_0x5e0eb9-_0xc761f5._0x287a38,_0x456d79);}const _0x524023=_0x4f788e?{..._0x267c2a,'turnMeta':_0x4f788e}:_0x267c2a;function _0x491c64(_0x54049e,_0x581a1c,_0xd3631a,_0x39292f){return _0x142051(_0x39292f-0x2f7,_0x581a1c-0x141,_0xd3631a-0x3b,_0xd3631a);}await _0x24936f[_0x5d1c1d(-0x1de,-0x14c,-0x162,-0x1ae)][_0x5d1c1d(-_0x50e1f8._0x494cfd,-0x1e1,-_0x50e1f8._0x5142bf,-0x2b4)](_0x5d1c1d(-0x1ef,-_0x50e1f8._0xfb058e,-_0x50e1f8._0x39e738,-_0x50e1f8._0x321cd1),structuredClone(_0x5430b7),_0x524023);},_0x5f2455=_0x3cff7a=>{function _0x315bcc(_0x4530d8,_0x305a9d,_0x407c0e,_0x23f73d){return _0x285283(_0x407c0e-0x36e,_0x305a9d-0x1ee,_0x407c0e-0x104,_0x23f73d);}function _0x3d6aaf(_0x183c22,_0x5ef60c,_0x433b92,_0x4c5ad0){return _0x285283(_0x433b92- -0xff,_0x5ef60c-0x1,_0x433b92-_0x14095f._0x38b017,_0x4c5ad0);}if(_0x3cff7a?.['origin']===_0x3d6aaf(_0x5c3b65._0x26f530,0xcc,_0x5c3b65._0x5d5235,_0x5c3b65._0x12fbce))return{'submissionOrigin':_0x3d6aaf(0xd2,_0x5c3b65._0x263f90,_0x5c3b65._0x5d5235,0x185)};if(_0x3cff7a?.['origin']===_0x3d6aaf(0x121,0x13e,0xd0,0xa6))return{'submissionOrigin':'agent','senderAgentId':_0x3cff7a['senderAgentId']};return void 0x0;},_0x67837f=_0x3a3a74=>_0x3a3a74?.[_0x142051(0x106,0x9a,0xe4,0xbf)]===_0x142051(0xc4,0xa6,0x97,0x48)?{'senderAgentId':_0x3a3a74['senderAgentId']}:void 0x0,_0x2bbcd3=_0x413a22=>typeof _0x413a22==='object'&&_0x413a22!==null&&_0x285283(0x1f7,0x1f1,0x19e,0x25c)in _0x413a22&&_0x142051(0x71,0xb4,0x9,0x57)in _0x413a22,_0xa7d7c3=async _0x3b9d0c=>{const _0x824622={_0x220b1f:0x1a};function _0x58a14f(_0x5b8074,_0x4eced6,_0x4f71d8,_0x19bf9f){return _0x285283(_0x4f71d8-_0x4c135a._0x8c3cb,_0x4eced6-_0x4c135a._0x43851f,_0x4f71d8-0x1c3,_0x4eced6);}if(!_0x18776e['drainSteering'])return 0x0;const _0x5bd819=await _0x18776e['drainSteering']();throwIfAborted(_0x5982b0);if(_0x5bd819[_0x2dc1d2(-0x20f,-0x2b0,-0x1fc,-0x22e)]===0x0)return 0x0;await _0x3b9d0c?.();for(const _0xe5dbcc of _0x5bd819){const _0x10f08e=_0x2bbcd3(_0xe5dbcc)?_0xe5dbcc[_0x58a14f(0x23b,_0x45e764._0x5d3f16,0x283,_0x45e764._0x574716)]:_0xe5dbcc,_0x2e28bd=_0x2bbcd3(_0xe5dbcc)?_0xe5dbcc[_0x2dc1d2(-0x294,-_0x45e764._0x3ff6b7,-_0x45e764._0x3a97bd,-_0x45e764._0xefb308)]:void 0x0,_0x5471b7=await _0x1787fb(_0x58a14f(0x2c5,_0x45e764._0x53100a,_0x45e764._0x194648,_0x45e764._0x52418d),normalizeMessage(_0x10f08e));throwIfAborted(_0x5982b0),_0x1d4c19['messages']['push'](_0x5471b7),await _0x3c2bf8(_0x5471b7,_0x5f2455(_0x2e28bd)),await _0x1d7476({'type':'user_message','message':_0x5471b7,..._0x67837f(_0x2e28bd)});}function _0x2dc1d2(_0x49ef10,_0x35c198,_0x330d81,_0x24ec95){return _0x142051(_0x24ec95- -0x2a8,_0x35c198-_0x824622._0x220b1f,_0x330d81-0x16,_0x49ef10);}return _0x5bd819[_0x58a14f(_0x45e764._0x39da9d,0x1cf,0x211,0x274)];};let _0x409b72=0x0;try{const _0x4e5d63=await _0x1787fb('onUserMessage',normalizeMessage(_0x18776e['message']));_0x1d4c19[_0x142051(_0x5b1f0d._0x3f75ad,0x10b,_0x5b1f0d._0x1f432f,_0x5b1f0d._0x194358)][_0x285283(0x1a3,_0x5b1f0d._0x13f573,_0x5b1f0d._0x304c1a,0x130)](_0x4e5d63),await _0x3c2bf8(_0x4e5d63,_0x5f2455(_0x18776e[_0x142051(_0x5b1f0d._0x55da27,0x63,0xc,_0x5b1f0d._0x3758db)])),await _0x1d7476({'type':'user_message','message':_0x4e5d63,..._0x67837f(_0x18776e[_0x142051(_0x5b1f0d._0x16a10c,_0x5b1f0d._0x549d8d,_0x5b1f0d._0x1a6cac,_0x5b1f0d._0x9d39db)])});while(!![]){throwIfAborted(_0x5982b0),_0x409b72+=0x1;const _0x1facbc=createAssistantMessageId(_0x1d4c19['turnId'],_0x409b72),_0xd6854c=createReasoningMessageId(_0x1facbc),_0x4294a6={'model':_0x1cd0cb['model'],'modelIdentity':_0x1cd0cb[_0x142051(_0x5b1f0d._0x42ec84,_0x5b1f0d._0x5d3c5c,0x11c,0x6c)],..._0x1cd0cb[_0x142051(0x134,_0x5b1f0d._0x3199cb,0x175,0xcf)]?{'provider':_0x1cd0cb[_0x285283(0x23f,0x21e,_0x5b1f0d._0x139f67,0x1fa)]}:{}};let _0x368c77={'model':_0x1cd0cb[_0x142051(_0x5b1f0d._0x42874f,_0x5b1f0d._0x2c1dd7,_0x5b1f0d._0x26e600,0x91)],..._0x1cd0cb['maxTokens']!==void 0x0?{'maxTokens':_0x1cd0cb['maxTokens']}:{},'system':structuredClone(_0x1d4c19[_0x285283(_0x5b1f0d._0x323630,0x1ca,0x17f,_0x5b1f0d._0x18bf21)]),'messages':structuredClone(_0x1d4c19[_0x142051(_0x5b1f0d._0x3f75ad,0xe3,0xb7,0xf1)]),'tools':_0x24936f[_0x285283(0x1f1,0x22a,0x21e,_0x5b1f0d._0x3a0a07)][_0x142051(_0x5b1f0d._0x5a65f5,0xea,0xd8,_0x5b1f0d._0x276b8a)](),'metadata':{'sessionId':_0x1d4c19[_0x285283(_0x5b1f0d._0x41bc9d,0x14a,_0x5b1f0d._0x26c46b,_0x5b1f0d._0x50de43)],'turnId':_0x1d4c19[_0x285283(_0x5b1f0d._0x40c3e3,0x27d,0x1ac,_0x5b1f0d._0x39c48d)],'modelIdentity':_0x1cd0cb[_0x142051(_0x5b1f0d._0x42ec84,0x25,_0x5b1f0d._0x5051ae,_0x5b1f0d._0x4c5c70)],..._0x1cd0cb['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x1cd0cb['pricingProviderId']}:{}},..._0x24936f[_0x285283(_0x5b1f0d._0x4823ec,0x1e9,_0x5b1f0d._0x43601e,0x1ae)]?{'outputFormat':_0x24936f[_0x285283(_0x5b1f0d._0x4823ec,_0x5b1f0d._0x3bba14,0x179,0x10c)]}:{}};_0x368c77=await _0x1787fb(_0x285283(0x21e,0x288,0x247,_0x5b1f0d._0xeb91a0),_0x368c77);{const {pricingProviderId:_0x40cb11,..._0x14c561}=_0x368c77[_0x285283(0x1ac,_0x5b1f0d._0x51dd92,0x1df,0x1f4)];_0x368c77={..._0x368c77,'metadata':{..._0x14c561,..._0x1cd0cb[_0x285283(0x1b3,0x1ff,_0x5b1f0d._0x2f7967,0x1b7)]!==void 0x0?{'pricingProviderId':_0x1cd0cb[_0x142051(_0x5b1f0d._0x2fd0c0,_0x5b1f0d._0x4c9b01,_0x5b1f0d._0x4a72a6,0x111)]}:{}}};}await _0x1d7476({'type':'model_request','request':_0x368c77});const _0x3e5826=Date[_0x142051(0x130,_0x5b1f0d._0x2a50ab,_0x5b1f0d._0x447147,_0x5b1f0d._0x4e8f67)]();_0x4294a6[_0x142051(_0x5b1f0d._0x408563,_0x5b1f0d._0x5d2459,0x50,_0x5b1f0d._0x2ede9c)]=_0x3e5826;let _0x12a969=await executeModelRequest(_0x368c77,_0x18776e,_0x1cd0cb,_0x24936f,_0x3ca280,{'assistantMessageId':_0x1facbc,'reasoningMessageId':_0xd6854c,'meta':_0x4294a6});const _0x2339c0=Date[_0x285283(_0x5b1f0d._0x268f5f,0x2bd,0x28f,0x2b3)]();_0x4294a6['turnCompletedAt']=_0x2339c0,_0x12a969=await _0x1787fb(_0x285283(_0x5b1f0d._0x32e324,_0x5b1f0d._0x5c3565,_0x5b1f0d._0x18ec44,0x15a),_0x12a969);_0x12a969[_0x142051(_0x5b1f0d._0x12f281,_0x5b1f0d._0x4e8f67,0xad,0x67)]&&(_0x12a969={..._0x12a969,'providerState':{..._0x12a969['providerState'],'originModelIdentity':_0x1cd0cb['modelIdentity']}});_0x12a969=withEstimatedModelCost(_0x368c77,_0x12a969);const _0x5f40a=Math[_0x142051(0xa4,0xdf,0xa6,_0x5b1f0d._0x28f781)](0x0,_0x2339c0-_0x3e5826),_0x4a0bee={'version':0x1,'usage':structuredClone(_0x12a969[_0x142051(_0x5b1f0d._0x4df3dc,_0x5b1f0d._0x13f56f,_0x5b1f0d._0x35ac82,0x140)]),'modelTimeMs':_0x5f40a},_0xce8c26=_0x4d91f4=>({..._0x4294a6,'metrics':{..._0x4a0bee,'usage':structuredClone(_0x4a0bee[_0x285283(0x208,0x1b8,0x209,0x1ae)]),'completesRequest':_0x4d91f4}});await _0x1d7476({'type':'model_response','response':_0x12a969,'modelTimeMs':_0x5f40a}),_0x1d4c19['lastResponse']=_0x12a969;let _0x3276fb=await _0x1787fb(_0x142051(0xc1,_0x5b1f0d._0x5162a4,0x9c,_0x5b1f0d._0x3b82ce),withMessageId(responseToAssistantMessage(_0x12a969),_0x1facbc));_0x3276fb=withMessageId(_0x3276fb,_0x1facbc);const _0x56ef0e=getToolUseBlocks(_0x3276fb),_0x55500e=await Promise[_0x285283(0x187,0x12e,_0x5b1f0d._0x4e953a,0x13c)](_0x56ef0e[_0x142051(0xea,0xa8,0xf6,0xf6)](_0x342b07=>_0x1787fb(_0x142051(0x51,0x70,-0x1,0x9),_0x342b07)));_0x55500e['length']>0x0&&(_0x3276fb=replaceToolUseBlocks(_0x3276fb,_0x55500e));const _0x3273d4=withMessageId(_0x3276fb,_0x1facbc);_0x3276fb=_0x3273d4;const _0x1274f5=createReasoningMessage(_0x3276fb),_0x346543=createAssistantTextMessage(_0x3276fb),_0x250768=createToolUseMessage(_0x3276fb);_0x1274f5&&await _0x1d7476({'type':_0x142051(_0x5b1f0d._0x243e31,_0x5b1f0d._0x15ff1d,_0x5b1f0d._0xc95334,_0x5b1f0d._0x35da19),'message':withMessageId(_0x1274f5,_0xd6854c)});_0x346543&&await _0x1d7476({'type':'assistant_message','message':withMessageId(_0x346543,_0x1facbc)});_0x250768&&await _0x1d7476({'type':_0x285283(_0x5b1f0d._0x19214b,_0x5b1f0d._0xd94544,0x176,0x181),'message':withMessageId(_0x250768,_0x1facbc)});_0x1d4c19[_0x285283(0x1ec,0x22d,_0x5b1f0d._0x77ad8c,_0x5b1f0d._0x232e30)]['push'](_0x3273d4);_0x55500e[_0x285283(_0x5b1f0d._0x1bea2a,0x1e5,_0x5b1f0d._0xb05315,_0x5b1f0d._0x3bf44d)]>0x0&&await _0x3c2bf8(_0x3273d4,_0xce8c26(![]));for(const _0x29ca49 of _0x55500e){await _0x1d7476({'type':_0x142051(0x12b,0x15a,0x18d,0x18e),'toolCall':structuredClone(_0x29ca49)});}if(_0x55500e[_0x142051(_0x5b1f0d._0x9aa176,_0x5b1f0d._0x93e3a6,_0x5b1f0d._0x5c5829,0xb0)]===0x0){const _0x11e2e2=await _0xa7d7c3(async()=>{await _0x3c2bf8(_0x3273d4,_0xce8c26(![]));});if(_0x11e2e2>0x0)continue;const _0x36263e=await _0x1787fb(_0x285283(0x14e,_0x5b1f0d._0x256530,_0x5b1f0d._0x96c0a2,_0x5b1f0d._0x512698),_0x3276fb),_0x3a2bc4=withMessageId(_0x36263e,_0x1facbc);return _0x1d4c19[_0x285283(_0x5b1f0d._0x16bfeb,0x290,0x246,_0x5b1f0d._0x3e627e)]=_0x3a2bc4,_0x1d4c19[_0x142051(_0x5b1f0d._0x29afa6,0x7d,_0x5b1f0d._0x33341a,_0x5b1f0d._0x16a10c)][_0x1d4c19[_0x285283(0x1ec,0x1f5,0x214,_0x5b1f0d._0x1fb68e)]['length']-0x1]=_0x3a2bc4,await _0x3c2bf8(_0x3a2bc4,_0xce8c26(!![])),await _0x1b2b95({'type':_0x285283(0x23c,_0x5b1f0d._0x4a77e6,0x247,0x233),'message':_0x3a2bc4}),throwIfAborted(_0x5982b0),await _0x24936f['registry'][_0x142051(_0x5b1f0d._0x1c52cf,0x8b,0x6,-0x11)](_0x285283(_0x5b1f0d._0x2db1eb,_0x5b1f0d._0x2ecba0,0x12d,0x186),_0x1d4c19,_0x267c2a),await _0x1d7476({'type':_0x142051(0xa9,0x67,_0x5b1f0d._0x2a50ab,0x110),'state':_0x1d4c19}),{'status':'completed','finalMessage':_0x3a2bc4,'state':_0x1d4c19};}let _0x35b532=await _0x24936f[_0x285283(0x1f1,0x224,_0x5b1f0d._0x2d2b3f,0x16e)][_0x142051(0x86,0x89,_0x5b1f0d._0x5a6ec8,0xd3)](_0x55500e,_0x3ca280);const _0x31137e=_0x35b532[_0x142051(0x68,_0x5b1f0d._0x137a9a,_0x5b1f0d._0x41e647,0x8d)](isAbortedToolResult),_0xec299=_0x31137e?_0x4368a8:_0x1787fb,_0x5d8980=_0x31137e?_0x1b2b95:_0x1d7476;_0x35b532=await Promise[_0x285283(_0x5b1f0d._0x1d0ebc,_0x5b1f0d._0x194358,0x19d,0x157)](_0x35b532[_0x142051(_0x5b1f0d._0x3b3720,0xc5,_0x5b1f0d._0x3c9417,0xae)](_0x4907b=>_0xec299(_0x285283(0x1bf,0x1ec,0x1af,0x23a),_0x4907b))),_0x1d4c19[_0x142051(0xcf,_0x5b1f0d._0xdd8cb3,0xf8,_0x5b1f0d._0x304042)]['push'](..._0x35b532);for(const _0x5c71c3 of _0x35b532){await _0x5d8980({'type':'tool_result','result':cloneToolResultForPublication2(_0x5c71c3)});}const _0x2bf6bb=await _0xec299(_0x142051(0x136,0x139,0x177,_0x5b1f0d._0x36747c),createToolResultUserMessage(_0x35b532));await _0x5d8980({'type':_0x285283(0x161,0x131,0x1a3,_0x5b1f0d._0x1e676d),'message':_0x2bf6bb}),_0x1d4c19['messages'][_0x142051(0x98,0x8b,0xb2,_0x5b1f0d._0x1d5129)](_0x2bf6bb),await _0x3c2bf8(_0x2bf6bb);if(_0x31137e)return{'status':_0x285283(0x223,0x25f,0x1b7,0x258),'state':_0x1d4c19};await _0xa7d7c3();}}catch(_0x129f31){if(!_0x5982b0[_0x285283(_0x5b1f0d._0x1bbd71,0x22d,_0x5b1f0d._0x2303a6,_0x5b1f0d._0x3d5380)])throw new TurnFailedError(_0x129f31,_0x1d4c19);return{'status':_0x285283(0x223,_0x5b1f0d._0xe302a1,_0x5b1f0d._0x3637bf,_0x5b1f0d._0xbd2aaf),'state':_0x1d4c19};}}function createSessionId(){const _0x4df53b={_0xc4cf87:0x180,_0x4744e3:0x175,_0x585f1b:0xd4,_0x119620:0xe2,_0x2f293b:0x103,_0xebc8ef:0x137};function _0x1da7a3(_0x113484,_0x42d056,_0x212c62,_0x481cdf){return _0x25dd81(_0x113484-0xff,_0x42d056-0xe4,_0x42d056- -0x219,_0x113484);}function _0x3c73fb(_0x27a6a7,_0x2ffbc3,_0x4c8bc2,_0x3f34d9){return _0x25dd81(_0x27a6a7-0x86,_0x2ffbc3-0x37,_0x2ffbc3- -0x18f,_0x4c8bc2);}return _0x3c73fb(0x190,_0x4df53b._0xc4cf87,0x200,0x109)+Date[_0x3c73fb(0xf7,_0x4df53b._0x4744e3,0x1d8,0x178)]()+'-'+Math[_0x1da7a3(0x7e,0xbc,0x11d,_0x4df53b._0x585f1b)]()[_0x1da7a3(0xf0,_0x4df53b._0x119620,_0x4df53b._0x2f293b,_0x4df53b._0xebc8ef)](0x10)['slice'](0x2,0xa);}function createTurnId(_0x4d7667){const _0x189a13={_0x5f1f0f:0x41c},_0x2d1da6={_0x4ab416:0x17e};function _0x4fdb1b(_0x2c2a02,_0xdf3872,_0x2d1394,_0x24e5f5){return _0x129ebd(_0x2c2a02-_0x2d1da6._0x4ab416,_0x2d1394,_0x24e5f5- -0x14e,_0x24e5f5-0x3b);}return _0x4fdb1b(_0x189a13._0x5f1f0f,0x43e,0x415,0x3e4)+_0x4d7667;}function createDefaultMessage(_0x310e76){if(_0x310e76===void 0x0)return void 0x0;return normalizeUserInput(_0x310e76);}function normalizeUserInput(_0x129256){const _0x362d55={_0x5d04a6:0x4c2,_0x59f9e9:0x436},_0x487ace={_0x37086e:0x12d};function _0x12c709(_0x3d59d1,_0x2c40d0,_0x2f70e5,_0x1345ed){return _0x25dd81(_0x3d59d1-0x8f,_0x2c40d0-0x2c,_0x2c40d0-0x128,_0x2f70e5);}if(typeof _0x129256===_0x563b95(0x447,_0x362d55._0x5d04a6,0x48d,0x478))return{'role':_0x12c709(0x477,0x42a,0x410,_0x362d55._0x59f9e9),'content':[{'type':'text','text':_0x129256}]};function _0x563b95(_0x432144,_0x45d888,_0x439332,_0x51d55d){return _0x25dd81(_0x432144-_0x487ace._0x37086e,_0x45d888-0xc8,_0x432144-0x1be,_0x439332);}return normalizeMessage(_0x129256);}function isTaggedSteeringInput(_0x2e1e85){const _0x44b710={_0x4bc5df:0xb4,_0x4d1848:0x79,_0xfe1845:0xb6,_0x138021:0x22,_0x5a5f90:0x54,_0x2a1f63:0x3ee,_0x190fd1:0x3f7,_0x5a10fe:0x442},_0xc7275b={_0xe03991:0x18d},_0x2c23b9={_0x4d3806:0xb3,_0x397054:0xdc,_0x4e8ce9:0x2e2};function _0x25105d(_0x4a5e09,_0x4058ac,_0x1f8332,_0xe2a1f){return _0x25dd81(_0x4a5e09-_0x2c23b9._0x4d3806,_0x4058ac-_0x2c23b9._0x397054,_0x1f8332- -_0x2c23b9._0x4e8ce9,_0x4a5e09);}function _0x3ab1(_0xa10caa,_0x483757,_0x49501b,_0x4df75a){return _0x25dd81(_0xa10caa-0x1d8,_0x483757-_0xc7275b._0xe03991,_0x483757-0x1b2,_0xa10caa);}return typeof _0x2e1e85===_0x25105d(-_0x44b710._0x4bc5df,-0xd,-_0x44b710._0x4d1848,-_0x44b710._0xfe1845)&&_0x2e1e85!==null&&_0x25105d(0x4a,-0xa1,-_0x44b710._0x138021,_0x44b710._0x5a5f90)in _0x2e1e85&&_0x3ab1(_0x44b710._0x2a1f63,_0x44b710._0x190fd1,0x43a,_0x44b710._0x5a10fe)in _0x2e1e85;}function resolveChatModel(_0xb68725){const _0x16b5e9={_0x5d5a49:0x1c7,_0x16edf2:0x1a6,_0x423267:0x2e,_0x43e148:0xe,_0x4478a5:0x65},_0x282dc2={_0x8603e6:0x1ab,_0x57b954:0x24},_0x2ae251={_0x58508f:0xfe};function _0x10732e(_0x1565cf,_0x3b0c0d,_0x2a5cfd,_0x46d0ec){return _0x25dd81(_0x1565cf-0x18f,_0x3b0c0d-0x1b5,_0x46d0ec- -_0x2ae251._0x58508f,_0x3b0c0d);}function _0x125bc1(_0x4d7c75,_0x346009,_0x1150aa,_0x2567e1){return _0x25dd81(_0x4d7c75-_0x282dc2._0x8603e6,_0x346009-_0x282dc2._0x57b954,_0x346009- -0x201,_0x1150aa);}if(!_0xb68725['chatModel'])throw new Error(_0x10732e(0x1df,0x17f,_0x16b5e9._0x5d5a49,_0x16b5e9._0x16edf2));return _0xb68725[_0x125bc1(0x16,_0x16b5e9._0x423267,-_0x16b5e9._0x43e148,_0x16b5e9._0x4478a5)];}function normalizeExecutionScope2(_0x594a21){const _0x13f578={_0x2364f7:0x312,_0x277c8b:0x365,_0x26e266:0x3e1,_0x253e18:0x34f},_0x130436={_0x216774:0x1d1},_0x570717={_0x19f8c3:0x1d9};function _0x234e2c(_0x4255a2,_0x28cade,_0x5405c7,_0x3f5963){return _0x129ebd(_0x4255a2-0x1e7,_0x3f5963,_0x5405c7- -_0x570717._0x19f8c3,_0x3f5963-0x21);}function _0x3a41fd(_0x48a135,_0x4beac3,_0x77b3f2,_0x1bf59d){return _0x25dd81(_0x48a135-_0x130436._0x216774,_0x4beac3-0xd8,_0x48a135- -0xf2,_0x1bf59d);}return{'agentId':_0x594a21?.['agentId']??_0x234e2c(0x305,_0x13f578._0x2364f7,_0x13f578._0x277c8b,_0x13f578._0x26e266),'toolCallPath':[..._0x594a21?.[_0x234e2c(0x3fd,_0x13f578._0x253e18,0x386,0x407)]??[]]};}function createRegistry(_0x1c5336){const _0x3133b3={_0xddded2:0x1cf,_0x5883f6:0x16b,_0x2eb011:0x173,_0x4171e8:0x1ad,_0x2d1791:0x294,_0x26a4be:0x2d2,_0x5ee42a:0x250},_0x38dd56={_0x2e020:0x468};function _0x152f77(_0x47196f,_0x201850,_0x385ef8,_0x5a8b5f){return _0x25dd81(_0x47196f-0x197,_0x201850-0x194,_0x5a8b5f- -_0x38dd56._0x2e020,_0x385ef8);}function _0x313062(_0x2e6d12,_0x13346c,_0xbc8b5c,_0x1f88a3){return _0x25dd81(_0x2e6d12-0x8e,_0x13346c-0x1,_0x2e6d12- -0x18a,_0xbc8b5c);}if(_0x1c5336[_0x152f77(-_0x3133b3._0xddded2,-0x12d,-0x107,-_0x3133b3._0x5883f6)])return _0x1c5336[_0x313062(_0x3133b3._0x2eb011,_0x3133b3._0x4171e8,0x14a,0x169)];const _0x5745a3=createExtensionRegistry(),_0x35b66e=_0x1c5336[_0x152f77(-_0x3133b3._0x2d1791,-_0x3133b3._0x26a4be,-0x26e,-_0x3133b3._0x5ee42a)]??[];for(const _0x7dbf4b of _0x35b66e){_0x5745a3[_0x152f77(-_0x3133b3._0x5883f6,-0x1f6,-0x25a,-0x1e7)](_0x7dbf4b);}return _0x5745a3;}var Agent=class{[_0x25dd81(0x2a9,0x1f5,0x239,0x1f1)];[_0x129ebd(0x50a,0x525,0x4ed,0x472)];[_0x25dd81(0x27a,0x24b,0x293,0x2c9)];[_0x25dd81(0x1de,0x251,0x20f,0x243)];['messages'];[_0x25dd81(0x287,0x24d,0x2c3,0x33d)];['turnIndex'];constructor(_0x482924={}){const _0x5a7a04={_0x2b7094:0x26f,_0x5aa095:0x249,_0x450edd:0x200,_0x1505fe:0x1ba,_0x1ad12d:0x211,_0x4e958e:0x1a2,_0x2fd0f4:0x4ca,_0x5de7c4:0x4bc,_0x3dd26f:0x40a,_0x1337ab:0x16d,_0x538a56:0x185,_0x10a9c8:0x13c,_0x23fb33:0x17d,_0x48729c:0x15d,_0x15971c:0xda,_0x5ac890:0xf1,_0x5ac58e:0x114,_0x5c3ef6:0x4a3,_0x2d1d8f:0x49a,_0x57edac:0x4d8,_0x4ebb07:0x4d5,_0x29f27d:0x4cb,_0x184284:0x15f,_0x3aa33d:0x1c0,_0x1336c2:0x205,_0x29cd0e:0x1df,_0x4d4b7d:0x4c2,_0x1ddf4a:0x4ac,_0x53cc21:0x4a9,_0x2a8695:0x1c8,_0x406fb2:0x59e,_0x5572cf:0x581,_0x12f57b:0x196,_0x3f640b:0x155,_0x5b22d5:0x252,_0x5a0ed3:0x1f1,_0x5441d3:0x42d,_0x1b513d:0x45d,_0x3f92e6:0x4e8,_0x39abfb:0x588,_0xead44e:0x576},_0x58ec38={_0x3b4f37:0x192,_0x299ce3:0x1aa},_0x5e0a80={_0x5dc669:0x125};function _0x516595(_0xe884c,_0x38ed09,_0x522d74,_0x3a8e46){return _0x25dd81(_0xe884c-_0x5e0a80._0x5dc669,_0x38ed09-0x4c,_0x3a8e46- -0x420,_0x38ed09);}function _0xce8d26(_0x541dac,_0x5a7167,_0x3e35d8,_0x9ca6f9){return _0x129ebd(_0x541dac-0x17a,_0x9ca6f9,_0x3e35d8- -0x41,_0x9ca6f9-0x190);}this[_0x516595(-_0x5a7a04._0x2b7094,-0x1cb,-0x198,-0x211)]=_0x482924[_0x516595(-_0x5a7a04._0x5aa095,-_0x5a7a04._0x450edd,-_0x5a7a04._0x1505fe,-_0x5a7a04._0x1ad12d)]??createSessionId(),this[_0x516595(-0x116,-_0x5a7a04._0x4e958e,-0x107,-0x127)]=0x0,this[_0xce8d26(_0x5a7a04._0x2fd0f4,_0x5a7a04._0x5de7c4,0x47e,_0x5a7a04._0x3dd26f)]=_0x482924['systemPrompt']??'',this['messages']=(_0x482924[_0x516595(-_0x5a7a04._0x1337ab,-_0x5a7a04._0x538a56,-_0x5a7a04._0x10a9c8,-0x16b)]??[])['map'](normalizeMessage),this[_0x516595(-0x19e,-0x187,-_0x5a7a04._0x23fb33,-_0x5a7a04._0x48729c)]=createDefaultMessage(_0x482924[_0x516595(-_0x5a7a04._0x15971c,-_0x5a7a04._0x5ac890,-0x139,-_0x5a7a04._0x5ac58e)]),this[_0xce8d26(_0x5a7a04._0x5c3ef6,_0x5a7a04._0x2d1d8f,_0x5a7a04._0x57edac,0x4be)]=createAgentMetrics({'getContextWindowLimit':_0x482924[_0xce8d26(_0x5a7a04._0x4ebb07,0x54c,_0x5a7a04._0x29f27d,0x54c)]});const _0x523f1e=_0x482924[_0x516595(-_0x5a7a04._0x184284,-_0x5a7a04._0x3aa33d,-_0x5a7a04._0x1336c2,-_0x5a7a04._0x29cd0e)],_0x3f903c=async(_0x1c03ea,_0x5ad34f)=>{function _0x28baa7(_0x337f33,_0x29aca7,_0x11ee9a,_0x308987){return _0xce8d26(_0x337f33-0x179,_0x29aca7-0x39,_0x11ee9a- -0x347,_0x308987);}this[_0x28baa7(0x1a1,0x16c,0x191,0x1e8)][_0x1378c3(-_0x58ec38._0x3b4f37,-_0x58ec38._0x299ce3,-0x140,-0x1a4)](_0x1c03ea);function _0x1378c3(_0x2c6583,_0x2f3e3b,_0x3cbcc7,_0x2cbe04){return _0xce8d26(_0x2c6583-0x1b5,_0x2f3e3b-0xc,_0x2cbe04- -0x69d,_0x2f3e3b);}await _0x523f1e?.(_0x1c03ea,_0x5ad34f);},_0x48feab=createRegistry(_0x482924),_0x4170e0=createInternalToolRuntime(_0x482924['tools']??[],{'onEvent':_0x3f903c,'onToolCall':_0x482924['onToolCall'],'registry':_0x48feab,'beginProgramTrace':_0x482924['beginProgramTrace']});this[_0xce8d26(0x4d7,_0x5a7a04._0x4d4b7d,_0x5a7a04._0x1ddf4a,_0x5a7a04._0x53cc21)]={'registry':_0x48feab,'chatModel':resolveChatModel(_0x482924),'toolRuntime':_0x4170e0,'askUser':_0x482924[_0x516595(-_0x5a7a04._0x2a8695,-_0x5a7a04._0x1505fe,-0x15b,-0x1ad)],'setTopic':_0x482924[_0xce8d26(_0x5a7a04._0x406fb2,_0x5a7a04._0x5572cf,0x525,0x53f)],'onEvent':_0x3f903c,'sessionDir':_0x482924[_0x516595(-_0x5a7a04._0x12f57b,-0xd7,-0xfc,-_0x5a7a04._0x3f640b)],'outputFormat':_0x482924[_0x516595(-_0x5a7a04._0x5b22d5,-_0x5a7a04._0x5a0ed3,-0x189,-0x1d9)],'executionScope':normalizeExecutionScope2(_0x482924[_0xce8d26(_0x5a7a04._0x5441d3,_0x5a7a04._0x1b513d,0x4a2,_0x5a7a04._0x3f92e6)]),'beginProgramTrace':_0x482924[_0xce8d26(_0x5a7a04._0x39abfb,_0x5a7a04._0xead44e,0x514,0x49b)]};}get[_0x129ebd(0x460,0x50f,0x4a9,0x4dd)](){return this['_systemPrompt'];}[_0x129ebd(0x565,0x509,0x582,0x5bc)](_0x331681=[]){const _0xc9202={_0x5da796:0x21d,_0x503e9f:0x24a,_0x1dcef6:0x1f4,_0x1509a5:0x1e3,_0x2ec996:0x215},_0x3b5d80={_0x181093:0xb2},_0x322da7={_0x463b20:0x16f};function _0x5c66f3(_0x20ba3b,_0x4d26bc,_0x5d42c3,_0x4ac4e7){return _0x129ebd(_0x20ba3b-_0x322da7._0x463b20,_0x4d26bc,_0x5d42c3- -0x737,_0x4ac4e7-0x92);}function _0xe6a254(_0xae0a89,_0x448678,_0x3875e3,_0x41f1a){return _0x25dd81(_0xae0a89-0x1a3,_0x448678-_0x3b5d80._0x181093,_0x3875e3- -0xc6,_0x448678);}this[_0x5c66f3(-0x1ed,-_0xc9202._0x5da796,-_0xc9202._0x503e9f,-_0xc9202._0x1dcef6)][_0x5c66f3(-0x1b5,-_0xc9202._0x1509a5,-0x1f7,-_0xc9202._0x2ec996)][_0x5c66f3(-_0xc9202._0x2ec996,-0x1fd,-0x1b5,-0x14a)](_0x331681);}[_0x129ebd(0x460,0x4b3,0x49c,0x4fd)](){const _0x31a843={_0x57149f:0xd1,_0x17fa7d:0x123,_0x1325cb:0x178,_0x1b64af:0x537},_0x4e66b8={_0x33bb79:0x5b,_0x4a97d3:0x38a},_0x3322f8={_0xb97fb:0x49};function _0x5eb22f(_0x49ec05,_0x5d4f64,_0x1b5b3c,_0x29d9e9){return _0x129ebd(_0x49ec05-0x9,_0x5d4f64,_0x49ec05-0x60,_0x29d9e9-_0x3322f8._0xb97fb);}function _0x3b7581(_0x348d84,_0xf47f9b,_0x2df86b,_0x599db5){return _0x25dd81(_0x348d84-_0x4e66b8._0x33bb79,_0xf47f9b-0xb9,_0x2df86b- -_0x4e66b8._0x4a97d3,_0x348d84);}return this[_0x3b7581(-_0x31a843._0x57149f,-0xbf,-_0x31a843._0x17fa7d,-_0x31a843._0x1325cb)][_0x5eb22f(0x5a0,_0x31a843._0x1b64af,0x549,0x56a)]['listToolSchemas']();}[_0x25dd81(0x212,0x202,0x26e,0x1eb)](_0x3f4742,_0x4164ed={}){const _0x484886={_0x519e3f:0x19f,_0x4e46aa:0x189,_0x7bb54a:0x11c},_0x152dab={_0x5b9a7c:0x2e},_0x2d8ca1={_0x23d0ba:0x14c};function _0x5ab660(_0x215b61,_0xc42325,_0x2a2e18,_0x2ff709){return _0x25dd81(_0x215b61-0x6b,_0xc42325-0xeb,_0x215b61-_0x2d8ca1._0x23d0ba,_0xc42325);}this['_systemPrompt']=_0x3f4742;function _0x3203cf(_0xc23f2a,_0x9351b4,_0x3e0401,_0x2e35b3){return _0x129ebd(_0xc23f2a-0x43,_0x9351b4,_0x3e0401- -0x708,_0x2e35b3-_0x152dab._0x5b9a7c);}_0x4164ed[_0x3203cf(-0x1fd,-0x1d2,-0x192,-0x1e9)]===!![]&&(this['messages']=[],this[_0x3203cf(-0x179,-_0x484886._0x519e3f,-_0x484886._0x4e46aa,-_0x484886._0x7bb54a)]=0x0);}[_0x129ebd(0x5af,0x4f7,0x55a,0x576)](_0x1daa6a){const _0x53bf4c={_0x177719:0x7,_0x5efe4c:0x1d},_0x3cf9c3={_0x88a3fa:0x6e,_0x3234d5:0x4b2,_0x4674b4:0x1cf};function _0x2ecdfe(_0x5e2b99,_0x2288a5,_0x4a31c5,_0xf6e8d){return _0x129ebd(_0x5e2b99-_0x3cf9c3._0x88a3fa,_0x5e2b99,_0xf6e8d- -_0x3cf9c3._0x3234d5,_0xf6e8d-_0x3cf9c3._0x4674b4);}this[_0x2ecdfe(0x63,0x0,-_0x53bf4c._0x177719,-_0x53bf4c._0x5efe4c)]=_0x1daa6a;}[_0x25dd81(0x269,0x20c,0x259,0x28f)](_0xf738c1){const _0x439c9e={_0x4431e2:0x162,_0x25df73:0xe6,_0x38b5df:0x147};function _0x3a07a7(_0x5dece5,_0x315c02,_0x3aa0f9,_0x1487aa){return _0x25dd81(_0x5dece5-0x25,_0x315c02-0xfc,_0x315c02- -0x34d,_0x3aa0f9);}this[_0x3a07a7(-_0x439c9e._0x4431e2,-_0x439c9e._0x25df73,-0x74,-_0x439c9e._0x38b5df)]['chatModel']=_0xf738c1;}async[_0x25dd81(0x1cf,0x222,0x231,0x207)](_0xebbd40=this[_0x129ebd(0x4e2,0x590,0x549,0x59c)],_0x321a83={}){const _0x5d9dc7={_0x5dddc4:0x348,_0xa421d9:0x342,_0x568011:0xc1,_0xc5954c:0xee,_0x18eddb:0x1b,_0x237fcd:0x58,_0x1cf5f0:0x25,_0x50e1e0:0x2bb,_0x495b2b:0x41a,_0x1645e2:0x3ca,_0x274305:0x3b3,_0x2b60a2:0x71,_0x5c6979:0x8c,_0x1c6ca4:0x44,_0x58bbb6:0x29,_0x178db9:0x3d6,_0x5cb832:0x3b6,_0x302f32:0x447,_0x1d31d6:0x6a,_0x4326b7:0x0,_0x5a290d:0x55,_0x21eb5b:0x7,_0x46b56c:0x5e,_0x378f5a:0x43c,_0x1551b1:0x443,_0x5d75f2:0x448,_0x1ba12d:0x3de,_0x536a74:0x44c,_0x2ca866:0x18,_0x4a44a8:0x4,_0x3c0aba:0x350,_0x2220ae:0x387,_0x1db766:0x3d6,_0x590df7:0xb8};function _0xb5dc3a(_0x47be09,_0x44064f,_0x2b6d5c,_0x28b968){return _0x25dd81(_0x47be09-0x1b4,_0x44064f-0x18f,_0x44064f- -0x267,_0x2b6d5c);}if(!_0xebbd40)throw new Error(_0x248cc6(0x395,_0x5d9dc7._0x5dddc4,_0x5d9dc7._0xa421d9,0x32c));function _0x248cc6(_0x52b6b4,_0x32a909,_0x3f6d9a,_0x475ed5){return _0x129ebd(_0x52b6b4-0x145,_0x3f6d9a,_0x52b6b4- -0x165,_0x475ed5-0x1cc);}this[_0xb5dc3a(0xd2,0x92,_0x5d9dc7._0x568011,_0x5d9dc7._0xc5954c)]+=0x1;const _0x50b020=_0x321a83[_0xb5dc3a(_0x5d9dc7._0x18eddb,_0x5d9dc7._0x237fcd,_0x5d9dc7._0x1cf5f0,0xbc)];try{const _0x6f7193=await runTurn({'sessionId':this[_0x248cc6(0x330,_0x5d9dc7._0x50e1e0,0x375,0x36c)],'turnId':createTurnId(this[_0x248cc6(_0x5d9dc7._0x495b2b,_0x5d9dc7._0x1645e2,_0x5d9dc7._0x274305,0x456)]),'streaming':_0x321a83['streaming'],'signal':_0x321a83[_0xb5dc3a(-_0x5d9dc7._0x2b60a2,-0x41,-0x14,-_0x5d9dc7._0x5c6979)],'system':this[_0xb5dc3a(-0x54,-_0x5d9dc7._0x1c6ca4,_0x5d9dc7._0x58bbb6,-0x90)],'messages':this[_0x248cc6(_0x5d9dc7._0x178db9,_0x5d9dc7._0x5cb832,_0x5d9dc7._0x302f32,0x3aa)],'message':normalizeUserInput(_0xebbd40),..._0x321a83['submission']===void 0x0?{}:{'submission':_0x321a83[_0xb5dc3a(-0x71,-0x22,-0x5a,-_0x5d9dc7._0x1d31d6)]},..._0x50b020?{'drainSteering':async()=>(await _0x50b020())[_0xb5dc3a(0x6,0x57,0xcf,0x4)](_0x55e6ef=>isTaggedSteeringInput(_0x55e6ef)?{'input':normalizeUserInput(_0x55e6ef['input']),'submission':_0x55e6ef[_0xb5dc3a(-0x1c,-0x22,0x7,-0x46)]}:normalizeUserInput(_0x55e6ef))}:{}},this[_0xb5dc3a(0x64,_0x5d9dc7._0x4326b7,0x56,_0x5d9dc7._0x5a290d)]);return this['messages']=_0x6f7193[_0xb5dc3a(-0xf,-_0x5d9dc7._0x21eb5b,-0x21,-_0x5d9dc7._0x46b56c)][_0x248cc6(0x3d6,_0x5d9dc7._0x378f5a,_0x5d9dc7._0x1551b1,_0x5d9dc7._0x5d75f2)][_0x248cc6(0x3df,_0x5d9dc7._0x1ba12d,_0x5d9dc7._0x536a74,0x379)](normalizeMessage),_0x6f7193;}catch(_0x3f63ef){if(_0x3f63ef instanceof TurnFailedError){this[_0xb5dc3a(_0x5d9dc7._0x2ca866,0x4e,0xb1,_0x5d9dc7._0x4a44a8)]=synthesizeMissingToolResults(_0x3f63ef[_0x248cc6(0x381,_0x5d9dc7._0x3c0aba,_0x5d9dc7._0x2220ae,0x3b2)][_0x248cc6(_0x5d9dc7._0x1db766,0x38b,0x3ef,0x3c9)][_0xb5dc3a(0xab,0x57,_0x5d9dc7._0x590df7,0x76)](normalizeMessage));throw _0x3f63ef[_0x248cc6(0x363,0x3ba,0x2ef,0x315)];}throw _0x3f63ef;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,closeBoundNestedToolExecution,drainBoundNestedToolPersistence,commitBoundToolExecutionTerminalState,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
|