@nuvin/agent-core 0.2.0 → 0.2.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- function _0x6c34(_0x545ba0,_0x557e67){_0x545ba0=_0x545ba0-0x1ea;var _0xd5493d=_0xd549();var _0x6c3492=_0xd5493d[_0x545ba0];if(_0x6c34['uQZRpE']===undefined){var _0x3f0cb6=function(_0x233977){var _0x3177b6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x473ad6='',_0x5a2fc5='';for(var _0x2d2aa4=0x0,_0x51fc42,_0x221efa,_0x3c7055=0x0;_0x221efa=_0x233977['charAt'](_0x3c7055++);~_0x221efa&&(_0x51fc42=_0x2d2aa4%0x4?_0x51fc42*0x40+_0x221efa:_0x221efa,_0x2d2aa4++%0x4)?_0x473ad6+=String['fromCharCode'](0xff&_0x51fc42>>(-0x2*_0x2d2aa4&0x6)):0x0){_0x221efa=_0x3177b6['indexOf'](_0x221efa);}for(var _0x30f0ba=0x0,_0x31caad=_0x473ad6['length'];_0x30f0ba<_0x31caad;_0x30f0ba++){_0x5a2fc5+='%'+('00'+_0x473ad6['charCodeAt'](_0x30f0ba)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a2fc5);};_0x6c34['pSAkrZ']=_0x3f0cb6,_0x6c34['uKaGhC']={},_0x6c34['uQZRpE']=!![];}var _0x285483=_0xd5493d[0x0],_0xd703de=_0x545ba0+_0x285483,_0x2b53c8=_0x6c34['uKaGhC'][_0xd703de];return!_0x2b53c8?(_0x6c3492=_0x6c34['pSAkrZ'](_0x6c3492),_0x6c34['uKaGhC'][_0xd703de]=_0x6c3492):_0x6c3492=_0x2b53c8,_0x6c3492;}function _0xd549(){var _0x402084=['B3bLBMfP','mty1nZKYshLUqKzi','yw50AhjVCgLJ','mJi0wxDqEwjd','mLnvtuTSDq','mtqWnZe2mgDWqxfYza','mte2mdzttvfLwvi','odK4nda3rxnkDvzh','mtHJu2zpEM0','mtuXodC5mhrSugvMBW','nfvKCMXQsa','mtjhDe1YzMy','y29KzxG','nZu3mdiXCuLJsNv0','nJq5nJyWmfjhCfzoCq'];_0xd549=function(){return _0x402084;};return _0xd549();}(function(_0x29685c,_0x300a99){var _0x5c928e={_0x4c7d33:0x2f8,_0x2028fc:0x2f3,_0x2c5096:0x484,_0x745e17:0x482,_0x2e5f26:0x486,_0xa40bb7:0x480,_0xa19346:0x489,_0x34e9af:0x488,_0xe3170b:0x483,_0x5f5794:0x2fa,_0x5ad97b:0x481,_0x2a5243:0x47e,_0x1ada53:0x48c,_0x1a08c8:0x489,_0x132c50:0x2fc,_0xe6c010:0x300,_0x419ecd:0x2fe,_0x366812:0x304};function _0xea9175(_0x4fea47,_0x2b4a92,_0x11cc92,_0x365bb1){return _0x6c34(_0x4fea47-0x293,_0x2b4a92);}function _0xd20c72(_0x1302eb,_0x4c456e,_0x27d9b7,_0x27d070){return _0x6c34(_0x4c456e-0x109,_0x27d9b7);}var _0x923e2e=_0x29685c();while(!![]){try{var _0xd60396=parseInt(_0xd20c72(_0x5c928e._0x4c7d33,_0x5c928e._0x2028fc,0x2f7,0x2f3))/0x1+-parseInt(_0xea9175(0x483,_0x5c928e._0x2c5096,_0x5c928e._0x745e17,_0x5c928e._0x2e5f26))/0x2*(parseInt(_0xea9175(0x486,0x48c,0x484,_0x5c928e._0xa40bb7))/0x3)+-parseInt(_0xea9175(_0x5c928e._0xa19346,_0x5c928e._0x34e9af,0x483,_0x5c928e._0xe3170b))/0x4*(-parseInt(_0xd20c72(0x2f4,0x2fa,_0x5c928e._0x5f5794,0x2fb))/0x5)+parseInt(_0xea9175(_0x5c928e._0xa40bb7,0x486,_0x5c928e._0x5ad97b,0x47f))/0x6+-parseInt(_0xea9175(0x485,_0x5c928e._0xa19346,0x488,0x484))/0x7*(-parseInt(_0xea9175(_0x5c928e._0x745e17,_0x5c928e._0x2a5243,0x47f,0x47c))/0x8)+parseInt(_0xea9175(0x487,0x480,_0x5c928e._0x1ada53,_0x5c928e._0x1a08c8))/0x9*(parseInt(_0xea9175(0x488,_0x5c928e._0x5ad97b,_0x5c928e._0x1ada53,0x487))/0xa)+parseInt(_0xd20c72(0x2ef,0x2f4,0x2fc,_0x5c928e._0x132c50))/0xb*(-parseInt(_0xd20c72(_0x5c928e._0x132c50,_0x5c928e._0xe6c010,_0x5c928e._0x419ecd,_0x5c928e._0x366812))/0xc);if(_0xd60396===_0x300a99)break;else _0x923e2e['push'](_0x923e2e['shift']());}catch(_0x3f5285){_0x923e2e['push'](_0x923e2e['shift']());}}}(_0xd549,0x80776));function resolveAnthropicReasoningConfig(_0x473ad6){var _0x146a55={_0x3f128b:0x31};function _0x49d5e2(_0x5522f0,_0x808430,_0x2fc3e1,_0x441450){return _0x6c34(_0x808430- -0x1bd,_0x2fc3e1);}function _0x899369(_0x59ce6c,_0x3c7d3a,_0xd035b9,_0x24e2db){return _0x6c34(_0x3c7d3a- -0x2f1,_0x59ce6c);}return _0x473ad6?.[_0x49d5e2(0x2d,_0x146a55._0x3f128b,0x2a,0x36)]?structuredClone(_0x473ad6[_0x899369(-0xfc,-0x103,-0xfd,-0xfe)]):void 0x0;}function resolveOpenAiReasoningConfig(_0x5a2fc5){var _0x29233f={_0xecfecf:0x2fa,_0x2bdc01:0x2f4,_0x1878f8:0x2c8,_0x32164d:0x2ce,_0x1b346a:0x2c9},_0x52b53c={_0x2216fb:0xe0},_0x4922c3={_0x34e9f4:0x104};function _0xeaa214(_0x1abe12,_0x4f7729,_0xd0ed66,_0x58d782){return _0x6c34(_0xd0ed66-_0x4922c3._0x34e9f4,_0x1abe12);}if(_0x5a2fc5?.['codex'])return structuredClone(_0x5a2fc5[_0xeaa214(_0x29233f._0xecfecf,0x302,0x2fc,_0x29233f._0x2bdc01)]);function _0x31d697(_0x483a37,_0x544720,_0xad721d,_0x5c4996){return _0x6c34(_0x483a37-_0x52b53c._0x2216fb,_0xad721d);}return _0x5a2fc5?.[_0x31d697(0x2cc,_0x29233f._0x1878f8,_0x29233f._0x32164d,_0x29233f._0x1b346a)]?structuredClone(_0x5a2fc5['openai']):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
1
+ (function(_0x2aaf13,_0x4b9bab){var _0x10711b={_0x4f40e0:0x74,_0x2dd308:0x7c,_0x4a2405:0x28e,_0x577ad2:0x289,_0x5ae16f:0x284,_0x4559fb:0x28d,_0x2d911a:0x283,_0x596cec:0x85,_0x4a0fd4:0x79,_0xb3dc4a:0x7a,_0x319989:0x28a,_0x5eb41d:0x28b,_0x277c70:0x70,_0xd6dced:0x72,_0x20dc55:0x7c,_0x543e7a:0x288,_0x37b205:0x280,_0x527006:0x282,_0x2adf8a:0x285,_0x481764:0x77,_0x9d171d:0x78,_0x543654:0x7f};function _0x2d29ff(_0x2a45c2,_0x3749af,_0x416cc2,_0x2d55d3){return _0x576e(_0x2d55d3-0xd2,_0x3749af);}function _0x31999a(_0xa273b9,_0x443b09,_0x1410e3,_0x5ee92c){return _0x576e(_0xa273b9- -0x22f,_0x443b09);}var _0x3bbeaa=_0x2aaf13();while(!![]){try{var _0x1fcfa5=-parseInt(_0x31999a(-0x78,-_0x10711b._0x4f40e0,-0x73,-_0x10711b._0x2dd308))/0x1+parseInt(_0x2d29ff(0x295,0x28e,0x293,_0x10711b._0x4a2405))/0x2+parseInt(_0x2d29ff(_0x10711b._0x577ad2,0x287,0x286,_0x10711b._0x5ae16f))/0x3*(parseInt(_0x2d29ff(_0x10711b._0x4559fb,0x28a,_0x10711b._0x2d911a,0x287))/0x4)+-parseInt(_0x31999a(-0x7f,-_0x10711b._0x596cec,-0x80,-0x79))/0x5*(parseInt(_0x31999a(-0x80,-_0x10711b._0x4a0fd4,-_0x10711b._0xb3dc4a,-0x7d))/0x6)+-parseInt(_0x2d29ff(0x28e,_0x10711b._0x319989,_0x10711b._0x5eb41d,0x28d))/0x7*(-parseInt(_0x31999a(-0x77,-_0x10711b._0x277c70,-_0x10711b._0xd6dced,-_0x10711b._0x20dc55))/0x8)+parseInt(_0x2d29ff(_0x10711b._0x543e7a,_0x10711b._0x37b205,_0x10711b._0x527006,_0x10711b._0x2adf8a))/0x9*(parseInt(_0x31999a(-0x75,-_0x10711b._0x481764,-_0x10711b._0x4a0fd4,-_0x10711b._0x9d171d))/0xa)+-parseInt(_0x31999a(-0x7b,-0x7d,-0x7e,-_0x10711b._0x543654))/0xb;if(_0x1fcfa5===_0x4b9bab)break;else _0x3bbeaa['push'](_0x3bbeaa['shift']());}catch(_0x299f30){_0x3bbeaa['push'](_0x3bbeaa['shift']());}}}(_0x29cd,0xa23a4));function _0x29cd(){var _0x4cf292=['yw50AhjVCgLJ','ota5mZeXDKXRufLI','nZjSBvrHBuy','y29KzxG','ndqYmZGWAMXdy2XN','ntCXntC4y1DlsxnH','mJa4ndm4ohDuAgrTtG','mtK0otK4mNPsC3jxvq','nxfqshbgza','B3bLBMfP','m29XsMfjuG','mJDXt0f5tvy','mtq1mJmZmeLoqvrNtq','ndG0mteYqNDhsxzJ'];_0x29cd=function(){return _0x4cf292;};return _0x29cd();}function _0x576e(_0x26692b,_0x14ca63){_0x26692b=_0x26692b-0x1af;var _0x29cdc2=_0x29cd();var _0x576eb7=_0x29cdc2[_0x26692b];if(_0x576e['wRNhec']===undefined){var _0x2233bb=function(_0x25825a){var _0x97b929='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4f8b15='',_0x237fc0='';for(var _0x3bd182=0x0,_0xf10c10,_0x551433,_0x3407d2=0x0;_0x551433=_0x25825a['charAt'](_0x3407d2++);~_0x551433&&(_0xf10c10=_0x3bd182%0x4?_0xf10c10*0x40+_0x551433:_0x551433,_0x3bd182++%0x4)?_0x4f8b15+=String['fromCharCode'](0xff&_0xf10c10>>(-0x2*_0x3bd182&0x6)):0x0){_0x551433=_0x97b929['indexOf'](_0x551433);}for(var _0x240757=0x0,_0x4a0dc2=_0x4f8b15['length'];_0x240757<_0x4a0dc2;_0x240757++){_0x237fc0+='%'+('00'+_0x4f8b15['charCodeAt'](_0x240757)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x237fc0);};_0x576e['rhafZG']=_0x2233bb,_0x576e['wYFKgZ']={},_0x576e['wRNhec']=!![];}var _0x14332f=_0x29cdc2[0x0],_0x16f155=_0x26692b+_0x14332f,_0x4d7a81=_0x576e['wYFKgZ'][_0x16f155];return!_0x4d7a81?(_0x576eb7=_0x576e['rhafZG'](_0x576eb7),_0x576e['wYFKgZ'][_0x16f155]=_0x576eb7):_0x576eb7=_0x4d7a81,_0x576eb7;}function resolveAnthropicReasoningConfig(_0x4f8b15){var _0x217205={_0x9c6aa:0x145,_0x5a7e89:0x140,_0x2fafe2:0x143,_0x294faa:0x145},_0x2375bc={_0x1cfc8e:0x71},_0x139df6={_0x58aacb:0x37a};function _0xfb9f4e(_0x433795,_0x214183,_0x5a1b0e,_0x477d2b){return _0x576e(_0x477d2b- -_0x139df6._0x58aacb,_0x433795);}function _0x5295c0(_0x450c03,_0x2777d2,_0x771e0e,_0x2a209b){return _0x576e(_0x450c03- -_0x2375bc._0x1cfc8e,_0x2777d2);}return _0x4f8b15?.[_0x5295c0(_0x217205._0x9c6aa,_0x217205._0x5a7e89,_0x217205._0x2fafe2,0x142)]?structuredClone(_0x4f8b15[_0x5295c0(_0x217205._0x9c6aa,0x13e,_0x217205._0x294faa,0x13f)]):void 0x0;}function resolveOpenAiReasoningConfig(_0x237fc0){var _0x26ef97={_0x2ba116:0x44e,_0x8493a2:0x450,_0x20eb33:0x44c,_0xa8e375:0x442,_0x48ad32:0x446,_0x5e22ad:0x444,_0x575bf9:0x441,_0x5f3e51:0x443},_0x58a0fa={_0x562302:0x295};if(_0x237fc0?.[_0x373003(0x450,_0x26ef97._0x2ba116,0x44d,0x44f)])return structuredClone(_0x237fc0[_0x373003(_0x26ef97._0x8493a2,0x44e,0x44e,_0x26ef97._0x20eb33)]);function _0x23351f(_0x4d1276,_0x33da9c,_0x2cd861,_0x3a8f08){return _0x576e(_0x3a8f08- -0x2e8,_0x2cd861);}function _0x373003(_0x581d03,_0x45fea7,_0x246983,_0x384a2f){return _0x576e(_0x45fea7-_0x58a0fa._0x562302,_0x581d03);}return _0x237fc0?.[_0x373003(_0x26ef97._0xa8e375,_0x26ef97._0x48ad32,_0x26ef97._0x5e22ad,_0x26ef97._0x575bf9)]?structuredClone(_0x237fc0[_0x373003(0x44d,0x446,_0x26ef97._0x5f3e51,_0x26ef97._0x48ad32)]):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
@@ -1 +1 @@
1
- (function(_0x1e9df5,_0x1a9484){const _0x36adc8={_0x64942c:0x89,_0x5da503:0x40,_0x2810c1:0xa,_0x8dada:0x57,_0x1fc475:0x1fa,_0x302518:0x228,_0xbd9d03:0x23c,_0x43ba5f:0x163,_0x11bcf9:0x21e,_0x11b5a3:0x1ef,_0x11211d:0x232,_0x3c30f8:0x14d,_0x57b0a0:0x148,_0x213ea6:0x287,_0x51363e:0x222,_0x559745:0x21f,_0x2b2bb7:0x104,_0x589f74:0xb1},_0x3880dd={_0x246e8a:0x162};function _0x27e0bd(_0x49a719,_0x1ad0c1,_0x300040,_0x18d0eb){return _0x7d44(_0x18d0eb- -_0x3880dd._0x246e8a,_0x49a719);}const _0x3545e9=_0x1e9df5();function _0x47db36(_0x43d55f,_0x20314b,_0x2f1f42,_0x19c9ca){return _0x7d44(_0x20314b- -0x1e,_0x43d55f);}while(!![]){try{const _0x39f229=parseInt(_0x27e0bd(_0x36adc8._0x64942c,_0x36adc8._0x5da503,-_0x36adc8._0x2810c1,0x48))/0x1+-parseInt(_0x27e0bd(0x27,0xd,_0x36adc8._0x8dada,0x3f))/0x2+-parseInt(_0x27e0bd(0x10b,0xa0,0x139,0xea))/0x3+parseInt(_0x47db36(_0x36adc8._0x1fc475,_0x36adc8._0x302518,0x253,_0x36adc8._0xbd9d03))/0x4*(-parseInt(_0x47db36(0x1ce,0x191,0x17f,_0x36adc8._0x43ba5f))/0x5)+-parseInt(_0x47db36(_0x36adc8._0x11bcf9,_0x36adc8._0x11b5a3,0x1cb,_0x36adc8._0x11211d))/0x6+parseInt(_0x47db36(_0x36adc8._0x3c30f8,0x18d,0x138,_0x36adc8._0x57b0a0))/0x7*(-parseInt(_0x47db36(0x1d6,0x1b3,0x1e9,0x1a4))/0x8)+-parseInt(_0x47db36(_0x36adc8._0x213ea6,_0x36adc8._0x51363e,0x1c0,_0x36adc8._0x559745))/0x9*(-parseInt(_0x27e0bd(_0x36adc8._0x2b2bb7,0xa9,0xdd,_0x36adc8._0x589f74))/0xa);if(_0x39f229===_0x1a9484)break;else _0x3545e9['push'](_0x3545e9['shift']());}catch(_0x399635){_0x3545e9['push'](_0x3545e9['shift']());}}}(_0x24dd,0xde5a2));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(_0x996118){const _0x45f56b={_0x15744a:0x2ab},_0x46c6bb={_0x43f860:0xfb};function _0x46bc0e(_0x131f3d,_0x16040d,_0x1b0485,_0x33f61f){return _0x7d44(_0x33f61f-0x29b,_0x16040d);}function _0x251b8c(_0xbddcce,_0x1bb03b,_0x3caf60,_0x118802){return _0x7d44(_0x1bb03b-_0x46c6bb._0x43f860,_0xbddcce);}return typeof _0x996118===_0x251b8c(0x2de,0x2e0,0x318,_0x45f56b._0x15744a)&&_0x996118!==null&&!Array[_0x46bc0e(0x487,0x400,0x45b,0x44c)](_0x996118);}function isToolOutputEnvelope(_0x18f3b6){const _0x20251e={_0x17a610:0x4db,_0x268616:0x4b5,_0x2f7706:0x509,_0x2b5fce:0x25d,_0x23b365:0x1c1,_0x58845c:0x21b,_0xd472bd:0x240},_0x3dbdc3={_0x234f8c:0x2f6};if(typeof _0x18f3b6!==_0x55e64f(_0x20251e._0x17a610,_0x20251e._0x268616,_0x20251e._0x2f7706,0x4b9)||_0x18f3b6===null||Array[_0x55e64f(0x4a7,0x4a8,0x4fb,0x4ea)](_0x18f3b6))return![];function _0x3c2b05(_0xa21cd9,_0x42d9ca,_0x586be8,_0xff6497){return _0x7d44(_0x42d9ca- -0x3cb,_0xff6497);}if(typeof _0x18f3b6['output']!==_0x3c2b05(-_0x20251e._0x2b5fce,-0x214,-_0x20251e._0x23b365,-_0x20251e._0x58845c))return![];const _0x2b815a=_0x18f3b6[_0x3c2b05(-_0x20251e._0xd472bd,-0x242,-0x29c,-0x253)];function _0x55e64f(_0x526b84,_0x22d897,_0xb72465,_0x189eff){return _0x7d44(_0x526b84-_0x3dbdc3._0x234f8c,_0x189eff);}return _0x2b815a===void 0x0||isJsonObject(_0x2b815a);}function validateAgainstSchema(_0x46abc8,_0x17ced6,_0x489314){const _0x3813d7={_0x11527d:0x49f,_0x44c578:0x463,_0x29e5e3:0x52,_0x182867:0xad,_0x2b4113:0x55,_0x4ba51:0x46d,_0x55cc2d:0x4af,_0x56450f:0x4bd,_0x357fd2:0x51f,_0x1d28e7:0x3f1,_0x5c8ae3:0xb6,_0x533e3d:0x52,_0x3835b6:0x2,_0x246dae:0x3ba,_0x13447d:0x413,_0x2c3c9b:0x3ac,_0x184837:0xb2,_0x12c6ce:0xb5,_0x3ecba0:0x441,_0x3d6965:0x457,_0x3df0bd:0x442,_0x1986ed:0xa6,_0x2ebdfa:0xff,_0x5c50c1:0xda,_0x47267d:0x73,_0x5f051f:0x4d,_0x1d4f9e:0x52,_0x58f411:0x91,_0x2bd863:0x4b2,_0x703880:0x4c5,_0x1d43c9:0x3a,_0x5aadd9:0x26,_0x1760cd:0x42c,_0x301ab7:0x406,_0x156ae4:0x496,_0x5dec02:0x426,_0x4681e5:0x1e,_0x5240c:0x44e,_0x1c33ff:0x4e0,_0x2347ce:0x4d1,_0x207e1b:0x408,_0x2bf3e4:0x495,_0x168c19:0x445,_0x125b70:0x49b,_0x263555:0x44b,_0x28f658:0x430,_0x156464:0x79,_0xa1368:0x52,_0x44dab2:0x16,_0x43f5cc:0x5c,_0x37114a:0x4d4,_0x45d40b:0x50b,_0x5a49fd:0x10,_0x4d531c:0xa8,_0x4bf640:0x56,_0x4e18da:0x95,_0x5306c9:0x49d,_0x4152b8:0x4e0,_0x43a479:0x49b,_0x28d86c:0x4b4,_0x5ecddf:0xc0},_0x3cf43d={_0x5b3715:0x78,_0x4d2818:0xa5,_0x165eb8:0x20},_0x1f6fe2={_0x5e8051:0x26d};function _0x21ca1f(_0x53dc64,_0x3c8bd0,_0x4b96e8,_0x321624){return _0x7d44(_0x4b96e8-0x27b,_0x321624);}if(_0x21ca1f(0x4b2,_0x3813d7._0x11527d,_0x3813d7._0x44c578,0x444)in _0x489314){const _0x582e0e=_0x489314['anyOf']['some'](_0x2fa7d=>{try{return validateAgainstSchema(_0x46abc8,_0x17ced6,_0x2fa7d),!![];}catch{return![];}});if(!_0x582e0e)throw new Error(_0x22486b(0xc,-_0x3813d7._0x29e5e3,-_0x3813d7._0x182867,-0x24)+_0x46abc8+_0x22486b(-0x1f,-_0x3813d7._0x2b4113,-0x57,-0x7e));return;}function _0x22486b(_0x50061b,_0x571d4,_0x500cf3,_0x463f1f){return _0x7d44(_0x571d4- -_0x1f6fe2._0x5e8051,_0x500cf3);}switch(_0x489314[_0x21ca1f(_0x3813d7._0x4ba51,_0x3813d7._0x55cc2d,_0x3813d7._0x56450f,_0x3813d7._0x357fd2)]){case _0x21ca1f(0x3eb,_0x3813d7._0x1d28e7,0x432,0x3e4):if(typeof _0x17ced6!==_0x22486b(-0xaa,-_0x3813d7._0x5c8ae3,-0xcc,-0xf3))throw new Error(_0x22486b(-0xae,-_0x3813d7._0x533e3d,-_0x3813d7._0x3835b6,0x9)+_0x46abc8+':\x20expected\x20string');if(_0x489314[_0x21ca1f(_0x3813d7._0x246dae,0x427,_0x3813d7._0x13447d,_0x3813d7._0x2c3c9b)]!==void 0x0&&!_0x489314['enum'][_0x22486b(-_0x3813d7._0x184837,-0x92,-0xbe,-_0x3813d7._0x12c6ce)](_0x17ced6))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x46abc8+':\x20expected\x20one\x20of\x20'+_0x489314[_0x21ca1f(0x3b2,_0x3813d7._0x3ecba0,_0x3813d7._0x13447d,0x3d5)]['join'](',\x20'));return;case _0x21ca1f(_0x3813d7._0x3d6965,0x4a7,_0x3813d7._0x3df0bd,0x49d):if(typeof _0x17ced6!==_0x22486b(-0xa8,-_0x3813d7._0x1986ed,-0x62,-_0x3813d7._0x2ebdfa))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x46abc8+_0x21ca1f(0x458,0x3f1,0x436,0x41f));return;case _0x22486b(-_0x3813d7._0x5c50c1,-_0x3813d7._0x47267d,-0x2f,-0x9d):if(typeof _0x17ced6!=='boolean')throw new Error(_0x22486b(-_0x3813d7._0x5f051f,-_0x3813d7._0x1d4f9e,-_0x3813d7._0x58f411,-0x7b)+_0x46abc8+_0x21ca1f(0x4be,_0x3813d7._0x2bd863,_0x3813d7._0x703880,0x48e));return;case _0x22486b(0x13,-_0x3813d7._0x1d43c9,_0x3813d7._0x5aadd9,_0x3813d7._0x3835b6):if(!Array[_0x21ca1f(0x481,0x406,_0x3813d7._0x1760cd,_0x3813d7._0x301ab7)](_0x17ced6))throw new Error(_0x21ca1f(0x4ff,0x4c2,_0x3813d7._0x156ae4,0x485)+_0x46abc8+_0x21ca1f(0x424,_0x3813d7._0x5dec02,0x473,0x40f));_0x17ced6[_0x22486b(0x30,-_0x3813d7._0x4681e5,0x11,0x11)]((_0x404444,_0x5af9b1)=>{const _0x55c62c={_0x2c70bb:0x146};function _0x34c466(_0x548d4c,_0x41f908,_0x54570f,_0x431f47){return _0x21ca1f(_0x548d4c-_0x55c62c._0x2c70bb,_0x41f908-0x18b,_0x54570f- -0x3c4,_0x431f47);}validateAgainstSchema(_0x46abc8+'['+_0x5af9b1+']',_0x404444,_0x489314[_0x34c466(_0x3cf43d._0x5b3715,_0x3cf43d._0x4d2818,0x46,_0x3cf43d._0x165eb8)]);});return;case _0x21ca1f(_0x3813d7._0x5240c,0x444,0x460,0x40d):if(!isJsonObject(_0x17ced6))throw new Error(_0x21ca1f(0x4d2,_0x3813d7._0x1c33ff,_0x3813d7._0x156ae4,_0x3813d7._0x2347ce)+_0x46abc8+_0x21ca1f(_0x3813d7._0x207e1b,_0x3813d7._0x2bf3e4,_0x3813d7._0x168c19,0x416));for(const _0x1b1fe4 of _0x489314[_0x21ca1f(_0x3813d7._0x125b70,_0x3813d7._0x263555,_0x3813d7._0x28f658,0x3f2)]??[]){if(!Object[_0x22486b(-0x10,-0x5b,-0x7d,-_0x3813d7._0x156464)](_0x17ced6,_0x1b1fe4))throw new Error(_0x22486b(-0xc,-_0x3813d7._0xa1368,-0xbb,_0x3813d7._0x44dab2)+_0x46abc8+_0x22486b(-0xf6,-0x93,-0xc0,-_0x3813d7._0x43f5cc)+_0x1b1fe4+'\x22');}if(_0x489314[_0x22486b(-0xf7,-0xa1,-0x96,-0xac)]===![]){const _0x236ec9=Object[_0x21ca1f(_0x3813d7._0x37114a,0x46c,0x4ab,_0x3813d7._0x45d40b)](_0x17ced6)['find'](_0x46c203=>!Object[_0x21ca1f(0x4ae,0x4a6,0x48d,0x499)](_0x489314[_0x22486b(-0x96,-0x4d,-0xa6,-0x62)],_0x46c203));if(_0x236ec9!==void 0x0)throw new Error(_0x22486b(0x11,-0x52,-_0x3813d7._0x5a49fd,-_0x3813d7._0x4d531c)+_0x46abc8+_0x22486b(-0x23,-_0x3813d7._0x4bf640,-_0x3813d7._0x4e18da,-0x96)+_0x236ec9+'\x22');}for(const [_0xcc52e5,_0x37a60d]of Object[_0x21ca1f(0x4be,_0x3813d7._0x5306c9,0x481,_0x3813d7._0x4152b8)](_0x489314[_0x21ca1f(0x4d5,0x444,_0x3813d7._0x43a479,_0x3813d7._0x28d86c)])){Object[_0x22486b(-0x52,-0x5b,-0x45,-_0x3813d7._0x5ecddf)](_0x17ced6,_0xcc52e5)&&validateAgainstSchema(_0x46abc8+'.'+_0xcc52e5,_0x17ced6[_0xcc52e5],_0x37a60d);}}}function normalizeToolOutputValue(_0x44086b){const _0x246ccb={_0x3d1781:0x150,_0x73525:0x13a,_0x3b4876:0xe6,_0x33e98d:0xf2,_0x3fc50a:0x10f,_0x19ed27:0x134,_0x4aed5a:0x10c,_0x2a8647:0x1a1,_0x4758fc:0xfd,_0x58a254:0x131,_0x5d87da:0xfe},_0x3e93f0={_0x4c2b8a:0x2d8};if(isToolOutputEnvelope(_0x44086b))return{'output':_0x44086b[_0x6748bb(-0x113,-_0x246ccb._0x3d1781,-0x19d,-_0x246ccb._0x73525)],'structured':_0x44086b['structured']??{'value':_0x44086b[_0x6748bb(-_0x246ccb._0x3b4876,-0x150,-0xeb,-0x17e)]},..._0x44086b[_0x55bb41(-_0x246ccb._0x33e98d,-0x82,-0xdf,-0xa1)]!==void 0x0?{'content':_0x44086b[_0x55bb41(-_0x246ccb._0x3fc50a,-0xe5,-0xdf,-_0x246ccb._0x19ed27)]}:{}};function _0x6748bb(_0x3c6a41,_0x298c5d,_0x24ee3d,_0x401067){return _0x7d44(_0x298c5d- -_0x3e93f0._0x4c2b8a,_0x3c6a41);}if(typeof _0x44086b==='string')return{'output':_0x44086b,'structured':{'value':_0x44086b}};function _0x55bb41(_0x3f4efc,_0x4c5e65,_0x2a318b,_0x9f29f1){return _0x7d44(_0x2a318b- -0x2b6,_0x3f4efc);}if(typeof _0x44086b===_0x6748bb(-0xe5,-0xf3,-_0x246ccb._0x4aed5a,-0xe5)&&_0x44086b!==null&&!Array[_0x55bb41(-0xa0,-0xc1,-0x105,-0xf3)](_0x44086b))return{'output':JSON[_0x6748bb(-0xf4,-0x14a,-_0x246ccb._0x2a8647,-_0x246ccb._0x4758fc)](_0x44086b,null,0x2),'structured':_0x44086b};return{'output':JSON[_0x6748bb(-_0x246ccb._0x58a254,-0x14a,-0x17b,-_0x246ccb._0x5d87da)](_0x44086b,null,0x2),'structured':{'value':_0x44086b}};}function createToolOutput(_0x362efc,_0x4723ab={'value':_0x362efc},_0x19d0ce){return{'output':_0x362efc,'structured':_0x4723ab,..._0x19d0ce!==void 0x0?{'content':_0x19d0ce}:{}};}function _0x7d44(_0x1c126c,_0x46a4ff){_0x1c126c=_0x1c126c-0x179;const _0x24ddda=_0x24dd();let _0x7d4447=_0x24ddda[_0x1c126c];if(_0x7d44['rfEvVL']===undefined){var _0x5e90a3=function(_0x3f851f){const _0x521240='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x996118='',_0x18f3b6='';for(let _0x2b815a=0x0,_0x46abc8,_0x17ced6,_0x489314=0x0;_0x17ced6=_0x3f851f['charAt'](_0x489314++);~_0x17ced6&&(_0x46abc8=_0x2b815a%0x4?_0x46abc8*0x40+_0x17ced6:_0x17ced6,_0x2b815a++%0x4)?_0x996118+=String['fromCharCode'](0xff&_0x46abc8>>(-0x2*_0x2b815a&0x6)):0x0){_0x17ced6=_0x521240['indexOf'](_0x17ced6);}for(let _0x582e0e=0x0,_0x2fa7d=_0x996118['length'];_0x582e0e<_0x2fa7d;_0x582e0e++){_0x18f3b6+='%'+('00'+_0x996118['charCodeAt'](_0x582e0e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x18f3b6);};_0x7d44['QhhsVu']=_0x5e90a3,_0x7d44['jlADNH']={},_0x7d44['rfEvVL']=!![];}const _0x524eb6=_0x24ddda[0x0],_0x360d51=_0x1c126c+_0x524eb6,_0x366699=_0x7d44['jlADNH'][_0x360d51];return!_0x366699?(_0x7d4447=_0x7d44['QhhsVu'](_0x7d4447),_0x7d44['jlADNH'][_0x360d51]=_0x7d4447):_0x7d4447=_0x366699,_0x7d4447;}var ToolExecutionError=class extends Error{['structured'];constructor(_0x347b7a,_0x44066e={}){const _0x47067c={_0x1fd97d:0x221,_0x5cb073:0x27f,_0x1aa4bf:0x22f,_0x5ab878:0x271,_0x180a90:0x27a,_0xfd729f:0x206,_0x26e4be:0x19c},_0x48d007={_0x4c3bf4:0x57},_0x56d5b2={_0x2def0c:0x325};super(_0x347b7a),this[_0x414532(_0x47067c._0x1fd97d,_0x47067c._0x5cb073,0x249,0x297)]=_0x414532(0x227,_0x47067c._0x1aa4bf,_0x47067c._0x5ab878,_0x47067c._0x180a90);function _0x1d9267(_0x21b65e,_0x4a590b,_0x40c1c2,_0x34d765){return _0x7d44(_0x34d765- -_0x56d5b2._0x2def0c,_0x21b65e);}function _0x414532(_0x794723,_0x473f20,_0x501313,_0x423d97){return _0x7d44(_0x501313-_0x48d007._0x4c3bf4,_0x794723);}this[_0x1d9267(-0x191,-_0x47067c._0xfd729f,-0x169,-_0x47067c._0x26e4be)]=_0x44066e;}};function defineTool(_0x2cb77a){return _0x2cb77a;}function resolveToolPermissionClass(_0x11ef46){const _0x2f7312={_0x2f38f6:0x359,_0x5c468a:0x363,_0x487d37:0x39e,_0x3f5dfa:0x355,_0x223421:0x356,_0x3ca418:0x317,_0x2cc397:0x2f1,_0x46e6a1:0x30e,_0x4b6a0b:0x323,_0xb93f7d:0x27b,_0x424950:0x2e6},_0x1f3833={_0x2c1d42:0x21e},_0x626f8=_0x11ef46?.['permissionClass'];if(_0x626f8===_0x2a3db4(_0x2f7312._0x2f38f6,_0x2f7312._0x5c468a,_0x2f7312._0x487d37,_0x2f7312._0x3f5dfa)||_0x626f8===_0x2a3db4(_0x2f7312._0x223421,_0x2f7312._0x3ca418,_0x2f7312._0x2cc397,_0x2f7312._0x46e6a1)||_0x626f8===_0x2a3db4(0x29a,_0x2f7312._0x4b6a0b,_0x2f7312._0xb93f7d,_0x2f7312._0x424950))return _0x626f8;function _0x1cd565(_0x550f05,_0x352086,_0x4dd13d,_0x3c932a){return _0x7d44(_0x4dd13d-_0x1f3833._0x2c1d42,_0x550f05);}function _0x2a3db4(_0x3af034,_0x511b89,_0x324f49,_0x3e4a3c){return _0x7d44(_0x3e4a3c-0x124,_0x3af034);}return'always-confirm';}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x493210=[]){const _0x394b8a={_0x3bbb41:0xda,_0x161e53:0xff,_0x14053d:0x7e},_0x113af4={_0x3a8185:0x2a2};function _0x87c17e(_0x9a806b,_0x321699,_0x249be6,_0x223a52){return _0x7d44(_0x321699- -_0x113af4._0x3a8185,_0x9a806b);}for(const _0xd8b054 of _0x493210){this[_0x87c17e(-0xc4,-_0x394b8a._0x3bbb41,-_0x394b8a._0x161e53,-_0x394b8a._0x14053d)](_0xd8b054);}}[_0x39cbe5(0x22,0x3,0x5,0x27)](_0x7ad8a){const _0x5b6a3f={_0x25c860:0x3fa,_0x479390:0x465,_0x2bf5e2:0x3fc,_0x615f68:0x3d1,_0x4103e4:0x44e},_0x427bc1={_0x563849:0x17d},_0x57591a={_0x5ab63e:0xf6,_0x21fedf:0x448};function _0x55f0df(_0x505a19,_0x1129f1,_0xbff286,_0x38feea){return _0x39cbe5(_0x505a19-0x1b4,_0x1129f1-_0x57591a._0x5ab63e,_0x1129f1-_0x57591a._0x21fedf,_0x38feea);}function _0x187fe5(_0x5743ed,_0x5470ec,_0x69a69e,_0x1dfc9f){return _0x39cbe5(_0x5743ed-0x8,_0x5470ec-0x5,_0x5743ed-_0x427bc1._0x563849,_0x1dfc9f);}this[_0x55f0df(_0x5b6a3f._0x25c860,0x41e,_0x5b6a3f._0x479390,_0x5b6a3f._0x2bf5e2)][_0x55f0df(_0x5b6a3f._0x615f68,0x437,_0x5b6a3f._0x4103e4,0x436)](_0x7ad8a['name'],_0x7ad8a);}[_0x39cbe5(0x11,-0xc,-0x29,0x41)](_0x54a17e){const _0x4076e8={_0x2c75e4:0x17d,_0xe39cc4:0x142,_0x1ba814:0x197,_0x4295af:0x17e,_0x2346f0:0x112,_0x27f936:0x123},_0x3f1824={_0x58d42c:0x171,_0x50f688:0x7b};function _0x3b61f4(_0x5048e1,_0x286b9e,_0x5ae1a4,_0x37a692){return _0x33f0a3(_0x5ae1a4,_0x286b9e-0x155,_0x5ae1a4-0x5,_0x286b9e-0xf5);}function _0x3bb151(_0x55279f,_0x4114d2,_0x319f2f,_0x212656){return _0x33f0a3(_0x55279f,_0x4114d2-_0x3f1824._0x58d42c,_0x319f2f-0x22,_0x4114d2- -_0x3f1824._0x50f688);}return this[_0x3b61f4(0x143,_0x4076e8._0x2c75e4,_0x4076e8._0xe39cc4,_0x4076e8._0x1ba814)][_0x3b61f4(0x156,_0x4076e8._0x4295af,_0x4076e8._0x2346f0,_0x4076e8._0x27f936)](_0x54a17e);}['list'](){const _0x53de18={_0x1b7c25:0xd6,_0x3fcff0:0x98},_0x13e413={_0x2c3287:0x27},_0x4e515e={_0x3b5807:0x9c,_0x11a109:0x373};function _0xc448a1(_0x3497a5,_0x163e02,_0x38f14e,_0xad23ad){return _0x39cbe5(_0x3497a5-_0x4e515e._0x3b5807,_0x163e02-0x4d,_0x3497a5-_0x4e515e._0x11a109,_0x163e02);}function _0x4e116e(_0x312eae,_0x43366c,_0x357109,_0x3244b9){return _0x33f0a3(_0x43366c,_0x43366c-_0x13e413._0x2c3287,_0x357109-0x29,_0x3244b9- -0x120);}return[...this[_0x4e116e(-0xa2,-0x67,-_0x53de18._0x1b7c25,-_0x53de18._0x3fcff0)][_0xc448a1(0x3b3,0x39c,0x396,0x374)]()];}['listToolSchemas'](){const _0x101d9e={_0x597de9:0x46,_0x53b016:0x5a,_0x1ac580:0x9a},_0x11f805={_0x343bfa:0x179,_0x2f48c4:0x188,_0x2de40b:0x164},_0x472e05={_0x2bb397:0x1c,_0x1d1584:0x5e},_0x1c391c={_0x561c61:0x92};function _0x13b5f6(_0x36d23e,_0xcbb7a6,_0x4a73e4,_0x18d0ac){return _0x33f0a3(_0x18d0ac,_0xcbb7a6-0x10c,_0x4a73e4-0x125,_0x36d23e- -_0x1c391c._0x561c61);}return this['list']()[_0x13b5f6(_0x101d9e._0x597de9,_0x101d9e._0x53b016,_0x101d9e._0x1ac580,0x71)](_0x58df0f=>{function _0x5a269b(_0xe6eed1,_0x55d801,_0x21330a,_0x551bd3){return _0x13b5f6(_0xe6eed1- -0x217,_0x55d801-0xd9,_0x21330a-0x11f,_0x21330a);}function _0x103a15(_0x5595e0,_0xf95f51,_0x56c9a1,_0x346e07){return _0x13b5f6(_0xf95f51-0x550,_0xf95f51-_0x472e05._0x2bb397,_0x56c9a1-_0x472e05._0x1d1584,_0x56c9a1);}return{'name':_0x58df0f[_0x5a269b(-0x1c8,-_0x11f805._0x343bfa,-_0x11f805._0x2f48c4,-_0x11f805._0x2de40b)],'description':_0x58df0f['description'],'input_schema':_0x58df0f[_0x5a269b(-0x1be,-0x1db,-0x219,-0x1f6)]};});}};function validateToolInput(_0x1788a5,_0x44ccfd){return validateAgainstSchema('input',_0x1788a5,_0x44ccfd),_0x1788a5;}function deriveFinalToolOutput(_0x3edd2a){const _0x7759da={_0x593985:0x40c,_0x35e097:0x40b,_0x1beb52:0x85,_0x5b3a7c:0x3a2,_0x31acbf:0x44f,_0x583e39:0x45c,_0x1be7e0:0x107,_0x1889cd:0x10a,_0x2d58a0:0x126,_0x5e7f88:0xec,_0x1c1280:0xc5,_0x32d3cc:0x451,_0x2fcb8d:0x41b,_0x1d7793:0x119,_0x423e3d:0x11c,_0x4cf794:0xba,_0x1778a9:0xc7,_0x2ccfa4:0x115,_0xaccff1:0x7b,_0x3ab8f5:0xc8,_0x57971c:0xf6},_0x4a23f4={_0xed8827:0x1e3,_0x5b818b:0x46},_0x5a2e93={_0x3d7d1d:0xa3,_0x3cae1c:0x42b};function _0x67d29(_0x3311e0,_0x4462fe,_0xe25621,_0x1e2035){return _0x39cbe5(_0x3311e0-_0x5a2e93._0x3d7d1d,_0x4462fe-0x16b,_0xe25621-_0x5a2e93._0x3cae1c,_0x4462fe);}function _0x18bda9(_0x5a8285,_0x5dd77e,_0x560650,_0x485a45){return _0x39cbe5(_0x5a8285-_0x4a23f4._0xed8827,_0x5dd77e-_0x4a23f4._0x5b818b,_0x5a8285-0xf3,_0x5dd77e);}if(_0x3edd2a[_0x67d29(0x437,_0x7759da._0x593985,_0x7759da._0x35e097,0x417)]===0x0)return{'output':'','structured':{}};if(_0x3edd2a[_0x18bda9(0xd3,0x13c,_0x7759da._0x1beb52,0x120)]===0x1)return{'output':_0x3edd2a[0x0][_0x67d29(_0x7759da._0x5b3a7c,_0x7759da._0x31acbf,0x3f0,_0x7759da._0x583e39)],'structured':_0x3edd2a[0x0]['structured'],..._0x3edd2a[0x0][_0x18bda9(_0x7759da._0x1be7e0,_0x7759da._0x1889cd,0xac,_0x7759da._0x2d58a0)]!==void 0x0?{'content':_0x3edd2a[0x0]['content']}:{}};const _0x4d31e5=_0x3edd2a[_0x18bda9(_0x7759da._0x5e7f88,0x115,_0x7759da._0x1c1280,0x106)](_0x268796=>_0x268796[_0x18bda9(0x107,0xd8,0xdb,0xa6)]!==void 0x0);return{'output':_0x3edd2a[_0x67d29(0x437,0x422,_0x7759da._0x32d3cc,_0x7759da._0x2fcb8d)](_0x5402d0=>_0x5402d0[_0x67d29(0x430,0x3b4,0x3f0,0x435)])['join'](''),'structured':{'chunks':_0x3edd2a[_0x18bda9(_0x7759da._0x1d7793,0xd0,_0x7759da._0x423e3d,_0x7759da._0x4cf794)](_0x325604=>_0x325604['structured'])},..._0x4d31e5[_0x18bda9(0xd3,_0x7759da._0x1778a9,_0x7759da._0x2ccfa4,_0x7759da._0xaccff1)]===0x1?{'content':_0x4d31e5[0x0][_0x18bda9(0x107,0x15d,_0x7759da._0x3ab8f5,_0x7759da._0x57971c)]}:{}};}function _0x24dd(){const _0x231023=['oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','B25vC2vYtwvZC2fNzq','vg9VBev4zwn1DgLVBKvYCM9Y','sw52ywXPzcb0B29SigLUChv0igf0ia','iIbPCYbHBhjLywr5igvUywjSzwq','C2v0u2vZC2LVBKLK','BM93','yxnZAxn0yw50twvZC2fNzuLK','ChjVCgvYDgLLCW','zMLUza','y29TCgXLDgvK','zgvSDge','iIbMB3iG','Dg9VBf9VDxrWDxrFy2H1BMS','DMfSDwu','DgHLBG','B2jZzxj2zxi','ChjVDMLKzxjtDgf0zq','CMvHC29UAw5Nx21LC3nHz2u','zgvMyxvSDe1LC3nHz2u','Dgv4Da','C29YDa','Dg9tDhjPBMC','zw5HyMXLza','A2v5CW','CMvHza','y2f0y2G','yxjYyxK','CMvNAxn0CNK','C3vTBwfYEuLUzgv4','BgLZDfrVB2Xty2HLBwfZ','ChvZAa','BwvZC2fNzxm','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','C3rYzwfTAw5N','CMvHC29UAw5Nu3rHCNrLzef0','CNvU','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','Aw5WDxruB2TLBNm','Dg9VBf9JywXS','nJnQD3DYA3i','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','DhLWzq','DhvYBLn0yxj0zwrbDa','Bw9KzwW','DgvYBwLUywW','ofb5vKriEG','ChjPy2LUz1bYB3zPzgvYswq','CMvWB3j0zwrdB3n0q2fSBenVDw50','Dg90ywXjBNb1DfrVA2vUCW','oIbLEhbLy3rLzcbIB29SzwfU','ywjVCNrLza','mZC2mJy5meT2qLzWqW','ChjVDMLKzxi','zxn0Aw1HDgvKq29ZDa','zM9YrwfJAa','Bw9KzwXdywXSCW','y2f1C2u','ywrKrxzLBNrmAxn0zw5LCG','Dg9VBf91C2vFy2H1BMS','Bwf4vg9Rzw5Z','Aw5WDxq','Bwv0CMLJCW','ywjVCNq','Bw9KzwXjzgvUDgL0Eq','BgfZDfjLC3bVBNnL','C29Tzq','y29UDgvUDf9KzwX0yq','Dw5RBM93BL90B29S','DhvYBI0','C2vZC2LVBI0','y29UDgv4DfDPBMrVD0XPBwL0','B3v0Chv0','C3rYDwn0DxjLza','Bw9KzwXuAw1Ltxm','y29UDgvUDeLUzgv4','Dg9VBf9JB21WBgv0zwq','BwvZC2fNzq','C3rYAw5NAwz5','AxrLBxm','DhvYBL9JB21WBgv0zq','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','ywz0zxjnzxnZywDLqxbWzw5K','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','Dg90ywXszwfZB25PBMDuB2TLBNm','yxnZAxn0yw50x2nODw5R','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','CMfJzq','zw51Bq','Dg9VBhncEu5HBwu','z2v0','Bwf4','Dg9VBf9ZDgfYDgvK','Bw9KzwXFCMvXDwvZDa','C3LZDgvT','y29TCgXLDgu','ywrK','otyYnJG0wKPpAwLg','CMvZzxrnzxnZywDLCW','BgvUz3rO','zxHLy3v0zunHBgXZ','zxjYB3i','Dg9VBfjLC3vSDhm','C2vZC2LVBKLK','zMLUywXFBwvZC2fNzq','B3v0Chv0sw5KzxG','mte4mtK0nMfzDxrAEa','mJffDw5dAg8','ywn0Aw9U','DgHPBMTPBMC','B3jKzxi','otu3otb5D25HB04','CMvWB3j0zwrdB3n0','AxnbCNjHEq','C2v0','Aw5KzxG','Dg9VBf9YzwPLy3rLza','CMvXDwLYzwq','zgvWCW','C3rYAw5N','Dg9VBf91C2vFzgvSDge','Aw50zxjUywXmAwzLy3LJBgu','Dg90ywXpDxrWDxruB2TLBNm','oIbLEhbLy3rLzcbUDw1Izxi','zMLSDgvY','Dg9VBf9Yzxn1Bhq','C3rHDhvZ','C2v0vg9VBhm','Bwv0yq','zhjHAw5tDgvLCMLUzW','ywX3yxLZlwnVBMzPCM0','DhjPBq','DhvYBKLUzgv4','DxnHz2u','B3v0Chv0rM9YBwf0','BNvTyMvY','CMvNAxn0zxi','CMfUzg9T','oIbLEhbLy3rLzcbVyMPLy3q','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','ywrKAxrPB25HBfbYB3bLCNrPzxm','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','y29TCgXLDgvZuMvXDwvZDa','CMvZB2X2zq','Dg9VBf91C2u','mZGZotK4nhbfEunSta','CMvTB3zLrxzLBNrmAxn0zw5LCG','BwLZC2LUz01VzgvSq2fSBenVDw50','ywz0zxjnB2rLBfjLC3bVBNnL','CMvHC29UAw5Nx2nODw5R','CMv0DxjU','y29UDgvUDa','zgvSzxrL','zxH0zw5ZAw9UCW','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','Aw5JBhvKzxm','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','ywXS','DxnLCL9TzxnZywDL','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','ywz0zxjuDxjUq29TCgXLDgu','C2LNBMfS','x3n5C3rLBvbYB21WDa','CMvQzwn0','Dg9VBfj1BNrPBwu','B2jQzwn0','yw1VDw50vxnKvgLJA3m','zg9Uzq','yw55t2y','BwfW','D3jPDgu','DhvYBKLK','ywnXDwLYzq','A2LUza','CMvHC29UAw5Nvg9Rzw5Z','CNvUt2jZzxj2zxjZ','C2XPy2u','CNvUvhjHBNnMB3jTzxjZ','BMfTzq','Bw9KzwXFCMvZCg9UC2u','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','y2HHDe1VzgvS','C2vZC2LVBKrPCG','ChjVDMLKzxjFCMv0CNK','oIbLEhbLy3rLzcbHCNjHEq','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','yM9VBgvHBG','zMLUywXnzxnZywDL','Aw5WDxrty2HLBwe','C3rHz2u','C3rYzwfT','BMv4Da','CMvZCg9UC2u','CMvXDwvZDenVDw50','B25fDMvUDa','DMfSDwvZ','Aw5WDxrezwX0yq','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','zw50CMLLCW','DhjHBNnMB3jTzxi','AxrLBuLK','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','Bwv0ywrHDge','yxnRvxnLCG','z2v0vg9VBhm','oda4nte5ogH3suz2qq','C2v0vg9WAwm','DhvYBKnVBxbSzxrLzef0','C3rHDgu','C2v0q2HHDe1VzgvS','AgfZt3DU','nJeYodG5mg5sEKjztq','CMvHC29UAw5Nq29TCgXLDgvKqxq','C3LZDgvTuhjVBxb0','yMvMB3jLrMLUywXpDxrWDxq','oIb1BMv4CgvJDgvKigzPzwXKici'];_0x24dd=function(){return _0x231023;};return _0x24dd();}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x3ae689,_0x105ab5,_0x38d45a,_0x322916=[]){const _0x1c7a07={_0x168940:0x3e8,_0x317ecc:0x3b1,_0x35bd4f:0x3eb},_0x3b30df={_0x2a5264:0x74},_0x21593d={_0x4becc3:0x4d};function _0x1bc070(_0x3b4c36,_0x4d6520,_0x2e4a6b,_0x5dbb81){return _0x33f0a3(_0x2e4a6b,_0x4d6520-0x1b0,_0x2e4a6b-_0x21593d._0x4becc3,_0x4d6520-0x31d);}function _0x329d5d(_0x1efc47,_0x5c9fe5,_0x5a0f18,_0x1fbcef){return _0x33f0a3(_0x1efc47,_0x5c9fe5-_0x3b30df._0x2a5264,_0x5a0f18-0x173,_0x5c9fe5- -0x20d);}return{'callId':_0x3ae689['id'],'toolName':_0x3ae689[_0x1bc070(0x402,0x3fe,_0x1c7a07._0x168940,0x42a)],'status':_0x1bc070(0x3a7,_0x1c7a07._0x317ecc,_0x1c7a07._0x317ecc,_0x1c7a07._0x35bd4f),'output':_0x105ab5,'structured':_0x38d45a,'chunks':_0x322916,'meta':createToolMeta()};}function _0x39cbe5(_0x457d76,_0x259f45,_0x49dc83,_0x8de0d3){const _0x3081c3={_0x55742d:0x1c3};return _0x7d44(_0x49dc83- -_0x3081c3._0x55742d,_0x8de0d3);}function createRejectedToolResult(_0x51aeb3,_0x341785){const _0x381ed5={_0x550a32:0x430,_0x117ba1:0x55c,_0x3443d6:0x584,_0x2a1c48:0x56d,_0x18e87f:0x5bb,_0x556283:0x669,_0x220d42:0x43e,_0x10c347:0x530,_0x2c5aff:0x595,_0x3d9673:0x5b0,_0x5f0342:0x402,_0x57dbfd:0x40f,_0x4676c6:0x3b7,_0x38d84a:0x57e,_0x115289:0x584},_0x260b12=_0x341785?.[_0x259cf8(_0x381ed5._0x550a32,0x40f,0x3be,0x3b4)]()[_0x251ffa(_0x381ed5._0x117ba1,_0x381ed5._0x3443d6,_0x381ed5._0x2a1c48,0x571)]?_0x341785:_0x251ffa(0x66a,0x622,_0x381ed5._0x18e87f,_0x381ed5._0x556283)+_0x51aeb3[_0x259cf8(0x40c,_0x381ed5._0x220d42,0x480,0x471)];function _0x251ffa(_0x35e629,_0x46e68f,_0xc273c2,_0x19ef92){return _0x39cbe5(_0x35e629-0x17b,_0x46e68f-0x1e3,_0x46e68f-0x5a4,_0x19ef92);}function _0x259cf8(_0x296266,_0x14ef5c,_0x7fd20b,_0x46f3e0){return _0x33f0a3(_0x7fd20b,_0x14ef5c-0x1ba,_0x7fd20b-0xd8,_0x14ef5c-0x35d);}return createErrorToolResult(_0x51aeb3,_0x260b12,{'error':_0x251ffa(_0x381ed5._0x10c347,_0x381ed5._0x2c5aff,0x56b,_0x381ed5._0x3d9673),..._0x341785?.[_0x259cf8(_0x381ed5._0x5f0342,_0x381ed5._0x57dbfd,_0x381ed5._0x4676c6,0x3ec)]()[_0x251ffa(_0x381ed5._0x38d84a,_0x381ed5._0x115289,0x5bb,0x51b)]?{'reason':_0x341785}:{}});}function createAbortedToolResult(_0x23a159,_0x5b4cf1,_0x1a168c=[]){const _0x11972a=toAbortError(_0x5b4cf1);return createErrorToolResult(_0x23a159,_0x11972a['message'],{'error':_0x11972a['message'],'aborted':!![]},_0x1a168c);}function createSuccessToolResult(_0x5074b9,_0x26b3fb,_0x576766){const _0x3b2421={_0x12b7c7:0x6,_0x2d16cd:0xb8,_0x36901a:0x52,_0x324b9d:0x1f6},_0x4aa0a6={_0x279bb9:0xd8},_0x30f456={_0x2a7e8e:0xce,_0x6fead5:0x24e};function _0x2296f1(_0x555281,_0x2aaf07,_0x192cc7,_0x60c398){return _0x39cbe5(_0x555281-_0x30f456._0x2a7e8e,_0x2aaf07-0xdf,_0x192cc7-_0x30f456._0x6fead5,_0x2aaf07);}function _0x353e98(_0xf3eb05,_0x4541e7,_0x290755,_0x5b9b6c){return _0x33f0a3(_0xf3eb05,_0x4541e7-0x15c,_0x290755-_0x4aa0a6._0x279bb9,_0x290755- -0x12f);}return{'callId':_0x5074b9['id'],'toolName':_0x5074b9[_0x353e98(-0x5,-0x5a,-0x4e,-_0x3b2421._0x12b7c7)],'status':'ok','output':_0x26b3fb[_0x353e98(-0xb5,-0x8b,-_0x3b2421._0x2d16cd,-_0x3b2421._0x36901a)],'structured':_0x26b3fb['structured'],..._0x26b3fb[_0x2296f1(0x262,_0x3b2421._0x324b9d,0x262,0x2af)]!==void 0x0?{'content':_0x26b3fb['content']}:{},'chunks':_0x576766,'meta':createToolMeta()};}function createUnknownToolResult(_0x32fc67){const _0x2e1f8d={_0x13ce06:0x89,_0x31a105:0x1e,_0x278d1d:0x24a},_0x401666={_0x4bdda6:0xef};function _0x1113b8(_0x441429,_0x9a4322,_0x1fbd6e,_0x1a123c){return _0x33f0a3(_0x441429,_0x9a4322-0x1f4,_0x1fbd6e-_0x401666._0x4bdda6,_0x1a123c-0x1b3);}function _0xaeea05(_0x3b998b,_0x5319c4,_0x4c4053,_0x39abf2){return _0x39cbe5(_0x3b998b-0x55,_0x5319c4-0xcb,_0x3b998b- -0x7c,_0x39abf2);}return createErrorToolResult(_0x32fc67,'Unknown\x20tool:\x20'+_0x32fc67[_0xaeea05(-0x4d,-_0x2e1f8d._0x13ce06,-0x52,_0x2e1f8d._0x31a105)],{'error':_0x1113b8(0x205,0x1d0,_0x2e1f8d._0x278d1d,0x226)});}function isDispatchDecision(_0x2100cf){const _0x5105a2={_0x452f90:0x3,_0x21d095:0x3e,_0x5d4fa6:0xb3,_0x5ab2f2:0x45,_0x468211:0x5b,_0x5b838e:0x93,_0x418c82:0x5c,_0x54dd19:0xa6,_0x3e499b:0xc0,_0x1f6299:0x5a,_0x8d579a:0x25,_0x653e29:0x2d,_0x1e089b:0xa},_0xc7928c={_0x2a6759:0x3,_0x555f4e:0x55,_0x581bf8:0x1e3};function _0x2f95b9(_0x542b36,_0x41cfff,_0x474e24,_0x256994){return _0x39cbe5(_0x542b36-_0xc7928c._0x2a6759,_0x41cfff-_0xc7928c._0x555f4e,_0x474e24-_0xc7928c._0x581bf8,_0x41cfff);}if(typeof _0x2100cf!==_0x134809(_0x5105a2._0x452f90,0x5e,_0x5105a2._0x21d095,_0x5105a2._0x5d4fa6)||_0x2100cf===null)return![];function _0x134809(_0xb7591c,_0x50a242,_0x34b6cf,_0x3d4756){return _0x39cbe5(_0xb7591c-0x82,_0x50a242-0x26,_0x50a242-0x3c,_0xb7591c);}return _0x2100cf[_0x134809(-_0x5105a2._0x5ab2f2,0x25,_0x5105a2._0x468211,0x16)]===_0x134809(_0x5105a2._0x5b838e,_0x5105a2._0x418c82,_0x5105a2._0x54dd19,_0x5105a2._0x3e499b)||_0x2100cf[_0x134809(_0x5105a2._0x1f6299,_0x5105a2._0x8d579a,_0x5105a2._0x653e29,-_0x5105a2._0x1e089b)]==='run';}function normalizeExecutionError(_0x13cda5){const _0x45ddf6={_0x463458:0x3e8,_0x30028d:0x43c,_0x369b71:0x440,_0x5764f5:0x3ea,_0x570edf:0x409,_0x4ecc9f:0x428,_0x439fc6:0x18a,_0x1b999a:0x1b7,_0x1945dc:0x1d2,_0x4ae554:0x1c7,_0x9ecdd6:0x46a,_0x23fb66:0x48f,_0x295c9e:0x492,_0xcdfc0f:0x414},_0x5685f4={_0x59d8f2:0x49,_0x41c073:0x3a,_0x174db7:0x3c4},_0x390241={_0x216841:0x7a,_0x44c8d7:0x1c7};if(_0x13cda5 instanceof ToolExecutionError)return{'errorMessage':_0x13cda5['message'],'structured':{'error':_0x13cda5['message'],..._0x13cda5[_0x213373(_0x45ddf6._0x463458,_0x45ddf6._0x30028d,0x469,0x486)]}};if(_0x13cda5 instanceof Error)return{'errorMessage':_0x13cda5[_0x213373(0x494,_0x45ddf6._0x369b71,_0x45ddf6._0x5764f5,_0x45ddf6._0x570edf)],'structured':{'error':_0x13cda5[_0x213373(_0x45ddf6._0x4ecc9f,0x440,0x415,0x45e)]}};if(typeof _0x13cda5===_0x481b31(_0x45ddf6._0x439fc6,_0x45ddf6._0x1b999a,0x1ac,0x1e9)&&_0x13cda5!==null&&'message'in _0x13cda5&&typeof _0x13cda5[_0x481b31(0x17d,_0x45ddf6._0x1945dc,_0x45ddf6._0x4ae554,0x191)]===_0x213373(0x4c4,_0x45ddf6._0x9ecdd6,_0x45ddf6._0x23fb66,0x45c))return{'errorMessage':_0x13cda5['message'],'structured':{'error':_0x13cda5[_0x213373(_0x45ddf6._0x295c9e,_0x45ddf6._0x369b71,0x451,_0x45ddf6._0xcdfc0f)]}};const _0x15f433=String(_0x13cda5);function _0x481b31(_0x12da8d,_0xd2c0c1,_0xe1930c,_0xf96ad0){return _0x39cbe5(_0x12da8d-0x15e,_0xd2c0c1-_0x390241._0x216841,_0xf96ad0-_0x390241._0x44c8d7,_0xe1930c);}function _0x213373(_0x420715,_0x55c13f,_0xe1c4b2,_0x446108){return _0x33f0a3(_0xe1c4b2,_0x55c13f-_0x5685f4._0x59d8f2,_0xe1c4b2-_0x5685f4._0x41c073,_0x55c13f-_0x5685f4._0x174db7);}return{'errorMessage':_0x15f433,'structured':{'error':_0x15f433}};}async function emitEvent(_0x271cce,_0x24ada6,_0x8671a1){await _0x271cce?.(_0x24ada6,_0x8671a1);}async function resolveDispatchDecision(_0x1dd45e,_0x13782b,_0x56b477){const _0x18d140={_0x32fd15:0x5d1,_0x2ed473:0x5ff,_0x1b4b92:0x266,_0x197214:0x21e,_0x2e82fc:0x261,_0xbdcff4:0x20e,_0x3285da:0x276,_0x1f5239:0x2c2,_0x1a99eb:0x248,_0x1d658b:0x1c6,_0x130a29:0x28e,_0x3cd59d:0x28b,_0x3f0ea7:0x2b5,_0x44ba2e:0x191,_0x5262c1:0x1e6,_0x1b8b2a:0x251,_0x208b77:0x5f5},_0x29ecff={_0x4bca1f:0x8e,_0x41cde7:0x586},_0x581ca7={_0x371ccc:0x201,_0x4c4b49:0x23b},_0x10505f={_0x5b7538:0x212};function _0x5acb48(_0x28469f,_0x58deb9,_0x41eb2e,_0x1a7346){return _0x39cbe5(_0x28469f-0x1ec,_0x58deb9-0xd6,_0x58deb9-_0x10505f._0x5b7538,_0x41eb2e);}if(!_0x1dd45e)return{'action':_0x40750e(0x636,0x64c,_0x18d140._0x32fd15,_0x18d140._0x2ed473)};const _0x563b32=Promise[_0x5acb48(_0x18d140._0x1b4b92,_0x18d140._0x197214,_0x18d140._0x2e82fc,_0x18d140._0xbdcff4)]()[_0x5acb48(0x29c,_0x18d140._0x3285da,_0x18d140._0x1f5239,_0x18d140._0x1a99eb)](()=>_0x1dd45e(_0x13782b,_0x56b477));if(!_0x56b477[_0x5acb48(0x242,0x230,_0x18d140._0x1d658b,0x288)]){const _0x23ff67=await _0x563b32;return isDispatchDecision(_0x23ff67)?_0x23ff67:{'action':_0x5acb48(_0x18d140._0x130a29,_0x18d140._0x3cd59d,0x2ea,_0x18d140._0x3f0ea7)};}const _0x2bdadd=new Promise((_0x5a5e55,_0xf887f2)=>{const _0x363b7c={_0x5ce206:0x2af,_0x32b717:0x1a0},_0x240f03={_0x3a1d27:0x22c},_0xec07d8={_0x47234d:0xf2,_0xa16456:0x434,_0x3c97ce:0xb0};function _0x55a804(_0x34a663,_0x208b04,_0x557adf,_0x575415){return _0x5acb48(_0x34a663-_0xec07d8._0x47234d,_0x557adf- -_0xec07d8._0xa16456,_0x34a663,_0x575415-_0xec07d8._0x3c97ce);}const _0x5274d4=()=>{_0x56b477['signal']?.[_0x5b4da6(0x18a,_0x240f03._0x3a1d27,0x1ae,0x1d3)]('abort',_0x5274d4);function _0x5b4da6(_0x219f1,_0x17037e,_0x4c8221,_0x523dee){return _0x7d44(_0x523dee-0x1,_0x4c8221);}_0xf887f2(toAbortError(_0x56b477['signal']?.['reason']));};function _0x3cf3a0(_0x58ef23,_0x5d246c,_0x53ee35,_0x48b186){return _0x5acb48(_0x58ef23-0x8a,_0x5d246c- -_0x363b7c._0x5ce206,_0x48b186,_0x48b186-_0x363b7c._0x32b717);}if(_0x56b477[_0x55a804(-0x23e,-0x25e,-0x204,-0x1b3)]?.[_0x55a804(-0x172,-0x16f,-0x19a,-0x200)]){_0xf887f2(toAbortError(_0x56b477[_0x55a804(-0x1f5,-0x1b2,-0x204,-0x253)]['reason']));return;}_0x56b477['signal']?.[_0x55a804(-0x282,-0x272,-0x26b,-_0x581ca7._0x371ccc)](_0x55a804(-0x2c8,-_0x581ca7._0x4c4b49,-0x266,-0x2a8),_0x5274d4,{'once':!![]});});function _0x40750e(_0x4562ca,_0x1d07c5,_0x485c23,_0x3eb43c){return _0x39cbe5(_0x4562ca-0xac,_0x1d07c5-_0x29ecff._0x4bca1f,_0x3eb43c-_0x29ecff._0x41cde7,_0x1d07c5);}const _0x1f34c8=await Promise[_0x5acb48(_0x18d140._0x44ba2e,_0x18d140._0x5262c1,_0x18d140._0x1b8b2a,0x24e)]([_0x563b32,_0x2bdadd]);return isDispatchDecision(_0x1f34c8)?_0x1f34c8:{'action':_0x40750e(_0x18d140._0x208b77,0x5a0,0x606,0x5ff)};}async function executeCapturedToolCall(_0x2cdf6c,_0x3ad190,_0x21381c,_0xea7b0,_0x1d0674){const _0x48ce5f={_0x5d77e2:0x3f0,_0x1b654a:0x3f3,_0xdd1cb7:0x42b,_0x1d918e:0x39b,_0x512019:0x37b,_0x45ca3f:0x335,_0x5e040d:0x156,_0x1e2e82:0x12f,_0x202211:0x1b5,_0x56d4e9:0x1c9,_0x22c713:0x17e,_0x2022bb:0x169,_0x4e7436:0x1a6,_0x329bb9:0x1ab,_0x889b83:0x3f1,_0x30c4c6:0x43a,_0x1aa044:0x464,_0x10bf49:0x3ef,_0x596ae8:0x38d,_0x57df74:0x192,_0x202f45:0x147,_0x502f64:0x1c6,_0x2bb2ca:0x1be,_0x4a6281:0x1ab,_0x460295:0x1e4,_0x2bfb66:0x40d,_0x15e7ca:0x3fe,_0x51217c:0x399,_0xe111b7:0x446,_0x3f0315:0x43e,_0x12cb89:0x42a,_0xe9b11:0x3ee,_0x362031:0x46e,_0xab79a1:0x456,_0x332a8d:0x206,_0x1a1c5b:0x1c9,_0x2b345a:0x1a9,_0x153b1d:0x43c,_0x131ed9:0x3e4,_0x58ce31:0x422,_0x5e6727:0x3dd,_0x70c6bd:0x412,_0x14a36d:0x253,_0x1be8c0:0x25b,_0x34a5d8:0x39b,_0x2489a2:0x354,_0x3e8623:0x11b,_0x468952:0x16b,_0x5438ca:0x156,_0x51ee30:0xf8,_0x5aefc2:0x3ec,_0x775658:0x3b2,_0x9600ed:0x14f,_0x471e75:0x149,_0x1ff169:0x374,_0x593899:0x361},_0x12f60b={_0x5f49bf:0x6a,_0x3988ad:0x7},_0x2ce18e={_0x5509e8:0x1ee},_0x1e3e56={_0x449df1:0x124},_0x2b15b2={_0x77db35:0x127,_0x2b63ba:0xf0},_0x4452a5={..._0x21381c,'toolCallId':_0x3ad190['id'],'permissionClass':resolveToolPermissionClass(_0x2cdf6c),'executionAuthorization':void 0x0};throwIfAborted(_0x4452a5[_0x2ea34f(_0x48ce5f._0x5d77e2,_0x48ce5f._0x1b654a,_0x48ce5f._0xdd1cb7,0x3f4)]);let _0x3c6d35;try{_0x3c6d35=await resolveDispatchDecision(_0xea7b0,_0x3ad190,_0x4452a5);}catch(_0x108728){if(isAbortError(_0x108728)){const _0x42a9a5=createAbortedToolResult(_0x3ad190,_0x108728);return await emitEvent(_0x1d0674,{'type':_0x2ea34f(_0x48ce5f._0x1d918e,_0x48ce5f._0x512019,_0x48ce5f._0x45ca3f,0x331),'toolCall':_0x3ad190,'result':_0x42a9a5},_0x4452a5),_0x42a9a5;}const {errorMessage:_0x1b27d0,structured:_0x542e37}=normalizeExecutionError(_0x108728),_0x360d89=createErrorToolResult(_0x3ad190,_0x1b27d0,_0x542e37);return await emitEvent(_0x1d0674,{'type':_0x3787c0(0x129,0x169,_0x48ce5f._0x5e040d,0x1ab),'toolCall':_0x3ad190,'result':_0x360d89},_0x4452a5),_0x360d89;}throwIfAborted(_0x4452a5['signal']);if(_0x3c6d35[_0x3787c0(0x199,_0x48ce5f._0x1e2e82,0x176,_0x48ce5f._0x202211)]===_0x2ea34f(0x3f2,0x3e3,0x453,0x38f)){const _0x1ce77c=createRejectedToolResult(_0x3ad190,_0x3c6d35['reason']);return await emitEvent(_0x1d0674,{'type':_0x3787c0(0x166,_0x48ce5f._0x56d4e9,_0x48ce5f._0x22c713,_0x48ce5f._0x2022bb),'toolCall':_0x3ad190,'result':_0x1ce77c},_0x4452a5),_0x1ce77c;}function _0x3787c0(_0x17fb57,_0x14bb99,_0x129b50,_0x4ef8b3){return _0x39cbe5(_0x17fb57-_0x2b15b2._0x77db35,_0x14bb99-_0x2b15b2._0x2b63ba,_0x129b50-0x18d,_0x17fb57);}if(!_0x2cdf6c){const _0x4b8255=createUnknownToolResult(_0x3ad190);return await emitEvent(_0x1d0674,{'type':_0x3787c0(_0x48ce5f._0x4e7436,_0x48ce5f._0x329bb9,0x156,0x14b),'toolCall':_0x3ad190,'result':_0x4b8255},_0x4452a5),_0x4b8255;}const _0x5792c6={..._0x4452a5,'executionAuthorization':_0x3c6d35[_0x2ea34f(0x403,_0x48ce5f._0x889b83,_0x48ce5f._0x30c4c6,_0x48ce5f._0x1aa044)]};throwIfAborted(_0x5792c6[_0x2ea34f(_0x48ce5f._0x5d77e2,_0x48ce5f._0x10bf49,_0x48ce5f._0x596ae8,0x3c4)]),await emitEvent(_0x1d0674,{'type':_0x2ea34f(0x3ab,0x40f,0x416,0x407),'toolCall':_0x3ad190},_0x5792c6);function _0x2ea34f(_0x496b08,_0x5ed6ac,_0x4ba937,_0x5e9809){return _0x39cbe5(_0x496b08-0xe8,_0x5ed6ac-_0x1e3e56._0x449df1,_0x496b08-0x3d2,_0x4ba937);}try{throwIfAborted(_0x5792c6['signal']);const _0x17de5d=validateToolInput(_0x3ad190[_0x3787c0(_0x48ce5f._0x57df74,0x15d,_0x48ce5f._0x202f45,0x114)],_0x2cdf6c[_0x3787c0(0x16d,0x1b8,_0x48ce5f._0x502f64,0x179)]),_0x16c062=await _0x2cdf6c['execute'](_0x17de5d,_0x5792c6),_0x5f048b=[],_0x36b432=addAbortListener(_0x5792c6['signal'],()=>{const _0x2fe766={_0x1575a8:0x128};function _0x34181e(_0x10d520,_0x52e754,_0x138188,_0x3bf78b){return _0x2ea34f(_0x3bf78b- -0x353,_0x52e754-_0x2ce18e._0x5509e8,_0x10d520,_0x3bf78b-0x139);}function _0x5221f7(_0x5c4345,_0x16aeac,_0x2e2b68,_0x556b4a){return _0x3787c0(_0x5c4345,_0x16aeac-_0x2fe766._0x1575a8,_0x16aeac- -0x1a5,_0x556b4a-0xf);}void _0x16c062[_0x34181e(0x69,0xf7,0xca,0x92)](void 0x0)[_0x5221f7(0x52,0x57,_0x12f60b._0x5f49bf,_0x12f60b._0x3988ad)](()=>{});});try{throwIfAborted(_0x5792c6[_0x3787c0(0x1a5,_0x48ce5f._0x2bb2ca,_0x48ce5f._0x4a6281,_0x48ce5f._0x460295)]);let _0xcdd0b7=await _0x16c062[_0x2ea34f(0x40e,0x433,0x475,_0x48ce5f._0x2bfb66)]();while(!_0xcdd0b7['done']){throwIfAborted(_0x5792c6[_0x2ea34f(_0x48ce5f._0x5d77e2,_0x48ce5f._0x15e7ca,0x437,_0x48ce5f._0x51217c)]);const _0x3c87ac=normalizeToolOutputValue(_0xcdd0b7[_0x2ea34f(0x435,0x426,0x497,0x3cc)]);_0x5f048b[_0x2ea34f(_0x48ce5f._0xe111b7,_0x48ce5f._0x3f0315,_0x48ce5f._0x12cb89,_0x48ce5f._0xe9b11)](_0x3c87ac),await emitEvent(_0x1d0674,{'type':_0x2ea34f(0x434,0x3fe,_0x48ce5f._0x362031,_0x48ce5f._0xab79a1),'toolCall':_0x3ad190,'chunk':_0x3c87ac},_0x5792c6),throwIfAborted(_0x5792c6[_0x3787c0(_0x48ce5f._0x332a8d,0x196,0x1ab,0x14f)]),_0xcdd0b7=await _0x16c062[_0x3787c0(0x218,0x175,_0x48ce5f._0x1a1c5b,_0x48ce5f._0x2b345a)]();}throwIfAborted(_0x5792c6[_0x2ea34f(0x3f0,_0x48ce5f._0x153b1d,_0x48ce5f._0x131ed9,0x433)]);const _0x47422e=_0xcdd0b7[_0x2ea34f(0x435,_0x48ce5f._0x58ce31,_0x48ce5f._0x5e6727,_0x48ce5f._0x70c6bd)]===void 0x0?deriveFinalToolOutput(_0x5f048b):normalizeToolOutputValue(_0xcdd0b7[_0x3787c0(_0x48ce5f._0x14a36d,0x1fd,0x1f0,_0x48ce5f._0x1be8c0)]),_0x997834=createSuccessToolResult(_0x3ad190,_0x47422e,_0x5f048b);return await emitEvent(_0x1d0674,{'type':_0x2ea34f(_0x48ce5f._0x34a5d8,0x382,_0x48ce5f._0x2489a2,0x39b),'toolCall':_0x3ad190,'result':_0x997834},_0x5792c6),_0x997834;}catch(_0x190d1b){if(isAbortError(_0x190d1b)){const _0x20b22b=createAbortedToolResult(_0x3ad190,_0x190d1b,_0x5f048b);return await emitEvent(_0x1d0674,{'type':_0x3787c0(_0x48ce5f._0x3e8623,_0x48ce5f._0x468952,_0x48ce5f._0x5438ca,_0x48ce5f._0x51ee30),'toolCall':_0x3ad190,'result':_0x20b22b},_0x5792c6),_0x20b22b;}const {errorMessage:_0x2dbeb8,structured:_0x1e5866}=normalizeExecutionError(_0x190d1b),_0x58c2f0=createErrorToolResult(_0x3ad190,_0x2dbeb8,_0x1e5866,_0x5f048b);return await emitEvent(_0x1d0674,{'type':_0x2ea34f(_0x48ce5f._0x1d918e,_0x48ce5f._0x5aefc2,_0x48ce5f._0x775658,0x347),'toolCall':_0x3ad190,'result':_0x58c2f0},_0x5792c6),_0x58c2f0;}finally{_0x36b432();}}catch(_0x170a43){if(isAbortError(_0x170a43)){const _0x3ebf92=createAbortedToolResult(_0x3ad190,_0x170a43);return await emitEvent(_0x1d0674,{'type':_0x3787c0(_0x48ce5f._0x9600ed,0x13e,0x156,_0x48ce5f._0x471e75),'toolCall':_0x3ad190,'result':_0x3ebf92},_0x5792c6),_0x3ebf92;}const {errorMessage:_0x236da4,structured:_0x14aaae}=normalizeExecutionError(_0x170a43),_0x568fa6=createErrorToolResult(_0x3ad190,_0x236da4,_0x14aaae);return await emitEvent(_0x1d0674,{'type':_0x2ea34f(0x39b,0x34a,_0x48ce5f._0x1ff169,_0x48ce5f._0x593899),'toolCall':_0x3ad190,'result':_0x568fa6},_0x5792c6),_0x568fa6;}}async function executeToolCall(_0x1d6316,_0x17799f,_0x500c07,_0x329987,_0x2a3cc8){const _0x187f2b={_0x533bc4:0x119,_0x577e55:0x101,_0x48c561:0xfc,_0x3bf4cc:0x14f,_0x5d06cf:0xac,_0x46b627:0x1b1,_0x95921f:0x210,_0x1df3f2:0x201,_0x3b8265:0x102,_0x5efa6f:0xf1},_0x5f1288={_0x593a43:0x114,_0x553603:0x12b};function _0x301336(_0x239206,_0x2c2cfd,_0x4133d1,_0x104182){return _0x39cbe5(_0x239206-_0x5f1288._0x593a43,_0x2c2cfd-0x52,_0x2c2cfd- -_0x5f1288._0x553603,_0x4133d1);}const _0x34a4b7=_0x1d6316[_0x301336(-_0x187f2b._0x533bc4,-0x154,-0x187,-_0x187f2b._0x577e55)](_0x17799f[_0x301336(-_0x187f2b._0x48c561,-_0x187f2b._0x48c561,-_0x187f2b._0x3bf4cc,-_0x187f2b._0x5d06cf)]),_0x501006=_0x34a4b7?.[_0x25bfd4(-0x1f2,-_0x187f2b._0x46b627,-_0x187f2b._0x95921f,-_0x187f2b._0x1df3f2)]?.[_0x301336(-0x103,-_0x187f2b._0x3b8265,-0x130,-_0x187f2b._0x5efa6f)]();function _0x25bfd4(_0x213411,_0x1b2905,_0x169ec,_0xed1cb7){return _0x39cbe5(_0x213411-0xc0,_0x1b2905-0x8c,_0xed1cb7- -0x1f7,_0x213411);}try{return await executeCapturedToolCall(_0x34a4b7,_0x17799f,_0x500c07,_0x329987,_0x2a3cc8);}finally{_0x501006?.();}}function _0x33f0a3(_0x4ef091,_0x3d59cf,_0x3eb3a4,_0x3e0cde){const _0x47786f={_0x2d171c:0x111};return _0x7d44(_0x3e0cde- -_0x47786f._0x2d171c,_0x4ef091);}function createInternalToolRuntime(_0x6bcf3d=[],_0x3c87cd={}){const _0x293229={_0x15cc89:0x146,_0x145d4a:0xdd},_0x432d4b={_0x3912b9:0x314,_0x14b4f5:0x38b,_0x201170:0x412,_0x369bf1:0x3ea},_0x36ea83={_0x23f6c1:0x5ad,_0x3f39b4:0x526},_0x58a485={_0x3fa25e:0x31f,_0x1f9cac:0x2d3},_0x349eee={_0x4bf4f8:0xe9};let _0x2fd430=new ToolRegistry(_0x6bcf3d);return{'listToolSchemas'(){function _0x40449b(_0x477a05,_0x30a78c,_0x1e0dda,_0xff4753){return _0x7d44(_0x477a05-_0x349eee._0x4bf4f8,_0x1e0dda);}return _0x2fd430[_0x40449b(_0x58a485._0x3fa25e,0x343,0x33f,_0x58a485._0x1f9cac)]();},'setTools'(_0x51163e){_0x2fd430=new ToolRegistry(_0x51163e);},async 'executeCalls'(_0xfed45e,_0x35d3ad){const _0x1fcf4b={_0x15cda7:0x192};function _0x121aa7(_0x3e5ba8,_0xaca32c,_0x2bf659,_0x48af4e){return _0x7d44(_0x3e5ba8-_0x1fcf4b._0x15cda7,_0x2bf659);}function _0x39ae63(_0x29a95f,_0x2b74e3,_0x48067a,_0x651884){return _0x7d44(_0x2b74e3-0x201,_0x29a95f);}return await Promise[_0x121aa7(0x36f,_0x432d4b._0x3912b9,0x397,_0x432d4b._0x14b4f5)](_0xfed45e[_0x39ae63(_0x432d4b._0x201170,_0x432d4b._0x369bf1,0x3f6,0x3b4)](async _0x2ed654=>{const _0x4ec83d={_0x4a8b41:0x158,_0x39a16f:0x1bd};function _0x24092a(_0x1bfbb4,_0x1bc93d,_0x10a283,_0x11015d){return _0x121aa7(_0x1bfbb4-0x1b4,_0x1bc93d-_0x4ec83d._0x4a8b41,_0x1bc93d,_0x11015d-_0x4ec83d._0x39a16f);}return await executeToolCall(_0x2fd430,_0x2ed654,_0x35d3ad,_0x3c87cd['onToolCall'],_0x3c87cd[_0x24092a(0x548,_0x36ea83._0x23f6c1,_0x36ea83._0x3f39b4,0x4f8)]);}));},async 'execute'(_0x32e0ea,_0x2457d2){function _0x188707(_0x5e90c4,_0x73715c,_0xe187c5,_0x2e38b4){return _0x7d44(_0x73715c- -0xc7,_0x5e90c4);}const [_0x2c4242]=await this[_0x188707(_0x293229._0x15cc89,_0x293229._0x145d4a,0x141,0xbe)]([_0x32e0ea],_0x2457d2);return _0x2c4242;}};}function getOrderedObserverExtensions(_0x4a05cf,_0x2aaa04){const _0x1a1138={_0x279476:0x254,_0x41a7ee:0x285},_0x4a6a1b={_0x103e47:0x5a3,_0x14fc65:0x58e,_0x45d0f4:0x5f5,_0x4e8e23:0x531,_0x3d59a9:0x58e,_0x1c2dfa:0x45b,_0x368545:0x413,_0x4c60cd:0x523,_0x4120f6:0x5c3,_0x1ce871:0x5ce,_0x2d0328:0x3c4,_0x2c976e:0x3b5,_0x121bd4:0x419},_0x561d4f={_0x374eb6:0x48b,_0x363ced:0x485,_0x4590ed:0x47a,_0x4670f4:0x47d,_0x5c9647:0x447,_0x16a2a6:0x443,_0x330ef3:0x46d,_0x49ae93:0x47e,_0x3cd01e:0x461,_0x5299ae:0x4ca},_0x524300={_0x2c572d:0x2f5},_0x1476d8={_0x43ce44:0x184,_0x1d2a9a:0x68},_0x107fe3={_0x274607:0x198,_0x3f9b7b:0x295};function _0x3c5ea0(_0x2b6cb9,_0x4ec67b,_0x365ba3,_0x40ca47){return _0x39cbe5(_0x2b6cb9-0x196,_0x4ec67b-_0x107fe3._0x274607,_0x2b6cb9-_0x107fe3._0x3f9b7b,_0x365ba3);}return _0x4a05cf[_0x3c5ea0(0x28e,0x283,_0x1a1138._0x279476,_0x1a1138._0x41a7ee)](_0x2bdfc6=>{function _0x61f4e1(_0x10eead,_0x48630b,_0x5bba89,_0x16a7cf){return _0x3c5ea0(_0x48630b-_0x1476d8._0x43ce44,_0x48630b-0x182,_0x16a7cf,_0x16a7cf-_0x1476d8._0x1d2a9a);}function _0x6acb63(_0x10a253,_0xdd1ff8,_0x8fd17c,_0x5b1b46){return _0x3c5ea0(_0x8fd17c- -_0x524300._0x2c572d,_0xdd1ff8-0x70,_0x10a253,_0x5b1b46-0xdb);}return _0x2bdfc6[_0x61f4e1(_0x561d4f._0x374eb6,_0x561d4f._0x363ced,0x4d6,0x488)]!==![]&&_0x2bdfc6[_0x61f4e1(_0x561d4f._0x4590ed,0x453,_0x561d4f._0x4670f4,0x4a8)]===_0x2aaa04&&_0x2bdfc6[_0x61f4e1(_0x561d4f._0x5c9647,_0x561d4f._0x16a2a6,0x49a,_0x561d4f._0x330ef3)]===_0x61f4e1(0x465,_0x561d4f._0x49ae93,_0x561d4f._0x3cd01e,_0x561d4f._0x5299ae);})['sort']((_0x136394,_0x2df5ea)=>{const _0x57d6cb={_0x1b15fa:0x277,_0x3008db:0xaa};if(_0x136394[_0x2dfb7b(_0x4a6a1b._0x103e47,_0x4a6a1b._0x14fc65,_0x4a6a1b._0x45d0f4,0x56e)]===!![]&&_0x2df5ea[_0x2dfb7b(_0x4a6a1b._0x4e8e23,_0x4a6a1b._0x3d59a9,0x52e,0x52f)]!==!![])return 0x1;function _0x5000f6(_0x427406,_0x4e0fe1,_0x28e354,_0x58ae76){return _0x3c5ea0(_0x427406-0x144,_0x4e0fe1-0x131,_0x28e354,_0x58ae76-0x95);}if(_0x136394[_0x5000f6(_0x4a6a1b._0x1c2dfa,0x41e,0x42c,_0x4a6a1b._0x368545)]!==!![]&&_0x2df5ea[_0x2dfb7b(_0x4a6a1b._0x4c60cd,0x58e,_0x4a6a1b._0x4120f6,_0x4a6a1b._0x1ce871)]===!![])return-0x1;function _0x2dfb7b(_0x4c6922,_0x20744d,_0x3bdb78,_0x1d2650){return _0x3c5ea0(_0x20744d-_0x57d6cb._0x1b15fa,_0x20744d-0x164,_0x3bdb78,_0x1d2650-_0x57d6cb._0x3008db);}return _0x136394[_0x5000f6(_0x4a6a1b._0x2d0328,_0x4a6a1b._0x2c976e,_0x4a6a1b._0x121bd4,0x3ca)]-_0x2df5ea['order'];});}function getOrderedTransformerExtensions(_0x553975,_0x51c936){const _0x2500b2={_0x4b7d85:0x132,_0x32fa73:0x13e,_0x2a1c05:0x18d,_0x5ee6b4:0x6c},_0x2780b4={_0x20a6f6:0x17c,_0x377e53:0x143,_0x42bf44:0xf8,_0x40e7d8:0x13d,_0x59fceb:0x101,_0x331492:0xe8,_0x90b560:0x16a,_0x2924ad:0x11b},_0x213fe3={_0x57700a:0x188},_0x5b0d5b={_0x1d9c3d:0xd7};function _0x2ef596(_0x25c597,_0xd778bc,_0x2b116c,_0x56edc0){return _0x33f0a3(_0x25c597,_0xd778bc-_0x5b0d5b._0x1d9c3d,_0x2b116c-0x35,_0xd778bc-0x93);}function _0x742215(_0x35cb76,_0xc1b1e0,_0x3d8b77,_0x38c40a){return _0x33f0a3(_0x38c40a,_0xc1b1e0-0x80,_0x3d8b77-0x12e,_0x35cb76- -_0x213fe3._0x57700a);}return _0x553975[_0x2ef596(_0x2500b2._0x4b7d85,_0x2500b2._0x32fa73,0x171,_0x2500b2._0x2a1c05)](_0x5202ba=>{const _0x839622={_0x24b4ae:0x2a5,_0x53681e:0xd2},_0x20a2cd={_0x529dac:0x6e,_0x55bdde:0x48};function _0x184830(_0x19fa39,_0x162234,_0x135ecb,_0x44057c){return _0x2ef596(_0x162234,_0x44057c- -_0x20a2cd._0x529dac,_0x135ecb-_0x20a2cd._0x55bdde,_0x44057c-0x132);}function _0x87307(_0x3e7a1b,_0x61b18c,_0xa98099,_0x40a5fa){return _0x2ef596(_0x3e7a1b,_0x61b18c-_0x839622._0x24b4ae,_0xa98099-0x10d,_0x40a5fa-_0x839622._0x53681e);}return _0x5202ba[_0x184830(0x14a,_0x2780b4._0x20a6f6,0x161,_0x2780b4._0x377e53)]!==![]&&_0x5202ba['stage']===_0x51c936&&_0x5202ba[_0x184830(_0x2780b4._0x42bf44,_0x2780b4._0x40e7d8,0xb0,_0x2780b4._0x59fceb)]===_0x184830(_0x2780b4._0x331492,_0x2780b4._0x90b560,0x131,_0x2780b4._0x2924ad);})[_0x742215(-_0x2500b2._0x5ee6b4,-0x46,-0x4b,-0x73)]((_0x54edb3,_0x48810c)=>_0x54edb3['order']-_0x48810c['order']);}function createExtensionRegistry(){const _0x2db422={_0x3f16dd:0x144},_0xed3ce1={_0x3736b2:0x4e5,_0x4bf5b9:0x4b7},_0x48c595={_0x3567e5:0x468,_0x159493:0x44a,_0x2d2c24:0xcb,_0x25fffd:0x5c,_0x20b18f:0xab,_0x7892bc:0x8b,_0x5ec59c:0xa4,_0x291b36:0xab,_0x2beb9a:0x98,_0x416b97:0xb2,_0x4a23bf:0x87,_0x121022:0x43,_0x91a443:0x40c,_0x9b3d79:0x9d,_0x38f494:0xce,_0x4215c1:0xe2,_0x260470:0x417,_0x12790e:0xdf,_0x3ca23e:0x9c},_0x141a64={_0x5ce3b8:0x25d},_0x1cf18a=[];return{'register'(_0x15c34d){function _0x55c1d1(_0x1b734c,_0x23ca13,_0x255309,_0x9e1ffb){return _0x7d44(_0x255309-_0x141a64._0x5ce3b8,_0x23ca13);}if(_0x15c34d[_0x55c1d1(_0x48c595._0x3567e5,0x47d,_0x48c595._0x159493,0x3de)]===_0x4dc6d1(-_0x48c595._0x2d2c24,-_0x48c595._0x25fffd,-_0x48c595._0x20b18f,-0xc1)&&_0x15c34d[_0x4dc6d1(-0x3c,-_0x48c595._0x7892bc,-_0x48c595._0x5ec59c,-_0x48c595._0x291b36)]!==![]&&_0x15c34d['terminal']===!![]){const _0x50c62e=_0x1cf18a[_0x4dc6d1(-0xd6,-_0x48c595._0x2beb9a,-_0x48c595._0x416b97,-_0x48c595._0x4a23bf)](_0x16fb5b=>_0x16fb5b[_0x55c1d1(0x41a,0x46c,0x44a,0x408)]===_0x55c1d1(0x479,0x45b,0x485,0x45e)&&_0x16fb5b[_0x55c1d1(0x4e5,0x4db,0x48c,0x493)]!==![]&&_0x16fb5b[_0x4dc6d1(-0x106,-0xf6,-0xd6,-0x6e)]===_0x15c34d[_0x55c1d1(0x494,0x495,0x45a,0x49d)]&&_0x16fb5b[_0x4dc6d1(-0x66,-0x27,-0x8e,-0x3b)]===!![]);if(_0x50c62e)throw new Error('Cannot\x20register\x20terminal\x20observer\x20\x22'+_0x15c34d['id']+_0x4dc6d1(-0x91,-0x43,-0xaf,-_0x48c595._0x121022)+_0x15c34d[_0x55c1d1(0x457,0x47a,0x45a,_0x48c595._0x91a443)]+_0x4dc6d1(-_0x48c595._0x9b3d79,-0xfd,-_0x48c595._0x38f494,-_0x48c595._0x4215c1)+_0x50c62e['id']+_0x55c1d1(0x44a,_0x48c595._0x260470,0x479,0x4c1));}function _0x4dc6d1(_0x52bb9f,_0x349e38,_0x217294,_0x2bf6a0){return _0x7d44(_0x217294- -0x2d3,_0x52bb9f);}_0x1cf18a[_0x4dc6d1(-_0x48c595._0x12790e,-0x62,-_0x48c595._0x3ca23e,-_0x48c595._0x291b36)]({..._0x15c34d});},async 'runTransformers'(_0x6c10ac,_0x447021,_0x379609){let _0x2391aa=_0x447021;for(const _0x834552 of getOrderedTransformerExtensions(_0x1cf18a,_0x6c10ac)){_0x2391aa=await _0x834552[_0x2ea461(_0xed3ce1._0x3736b2,0x4f6,_0xed3ce1._0x4bf5b9,0x4c7)](_0x2391aa,_0x379609);}function _0x2ea461(_0x49b0e0,_0x1681cc,_0x925b3e,_0x238697){return _0x7d44(_0x1681cc-0x2ba,_0x925b3e);}return _0x2391aa;},async 'runObservers'(_0x50dc4b,_0x396c01,_0x431de2){function _0x4e401a(_0x3a2f6e,_0x30d97e,_0x2ef4b6,_0x22475a){return _0x7d44(_0x30d97e- -_0x2db422._0x3f16dd,_0x22475a);}for(const _0x490596 of getOrderedObserverExtensions(_0x1cf18a,_0x50dc4b)){await _0x490596[_0x4e401a(0xcd,0xf8,0x106,0x10a)](_0x396c01,_0x431de2);}}};}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(_0x2ca733,_0x2cb9d8){const _0x348208={_0x3ba098:0x95,_0x5ed76d:0xd4,_0x530edf:0xf8,_0x59f275:0xe3,_0xd4364a:0x55d,_0x2a9919:0x69,_0x1a741:0xa3,_0x5c5aa1:0x5bf,_0x3b845a:0x5f5,_0x2cb631:0x5e0,_0x4429c8:0x2e,_0x77b216:0x585,_0x164a17:0x5bc,_0x257959:0x96,_0x14c485:0x52,_0x17b471:0x4e0,_0x537cb9:0x4e7,_0xf34f7c:0x51c,_0x51f505:0x54c,_0x10c31d:0x4cf,_0xfb8ba6:0x14,_0x123815:0x101,_0x290ec3:0xde,_0x2b26ff:0x4f5,_0x1898e7:0x55f,_0x425a74:0x62f,_0x2463d5:0x5cc,_0x2d65fa:0x5c5,_0x33458e:0x59b,_0x54e383:0x598,_0x2aa78a:0x5a1,_0x13b9d3:0x583,_0x1e8040:0x58b},_0x2d0398={_0x154319:0x13d},_0x378b25={_0x2724b6:0x5d,_0x10b2ec:0x56,_0x909707:0x4a},_0x2c306b=_0x2cb9d8[_0xb98628(0x1c,0xcb,_0x348208._0x3ba098,0x6a)],_0x43fc12=_0x2c306b[_0xb98628(0xfe,_0x348208._0x5ed76d,_0x348208._0x530edf,_0x348208._0x59f275)],_0x2d5deb=_0x2c306b['outputTokens'],_0x1f09ce=_0x2c306b[_0x438166(0x55e,_0x348208._0xd4364a,0x5b7,0x580)]??0x0,_0x3e9c8e=_0x43fc12+_0x2d5deb,_0x318f24=_0x2c306b[_0xb98628(_0x348208._0x2a9919,-0x17,_0x348208._0x1a741,0x55)]?.['amountUsdTicks'],_0x236f9e=_0x2c306b[_0x438166(_0x348208._0x5c5aa1,_0x348208._0x3b845a,0x601,_0x348208._0x2cb631)]?.[_0xb98628(0x60,_0x348208._0x4429c8,0x23,0x8b)];function _0xb98628(_0xd0894b,_0xef78fd,_0x3cced3,_0x38c25f){return _0x33f0a3(_0xef78fd,_0xef78fd-_0x378b25._0x2724b6,_0x3cced3-_0x378b25._0x10b2ec,_0x38c25f- -_0x378b25._0x909707);}function _0x438166(_0x445b18,_0x1afaed,_0x2a819f,_0x3dee5f){return _0x39cbe5(_0x445b18-0xde,_0x1afaed-_0x2d0398._0x154319,_0x3dee5f-0x555,_0x1afaed);}const _0x5826b7=_0x318f24??_0x236f9e,{currentReportedCostUsdTicks:_0x2f5ea0,currentEstimatedCostUsdTicks:_0xf67e8c,..._0x3504e1}=_0x2ca733;return{..._0x3504e1,'totalTokens':_0x3504e1['totalTokens']+_0x3e9c8e,'totalInputTokens':_0x3504e1[_0x438166(0x5ce,_0x348208._0x77b216,_0x348208._0x164a17,0x5db)]+_0x43fc12,'totalOutputTokens':_0x3504e1[_0xb98628(_0x348208._0x257959,0x3a,_0x348208._0x14c485,0x5f)]+_0x2d5deb,'totalReasoningTokens':_0x3504e1[_0x438166(0x51c,0x514,_0x348208._0x17b471,0x526)]+_0x1f09ce,'modelCallCount':_0x3504e1['modelCallCount']+0x1,'totalModelTimeMs':_0x3504e1['totalModelTimeMs']+_0x2cb9d8[_0x438166(_0x348208._0x537cb9,0x54f,0x56e,_0x348208._0xf34f7c)],'currentTokens':_0x3e9c8e,'currentInputTokens':_0x43fc12,'currentOutputTokens':_0x2d5deb,'currentReasoningTokens':_0x1f09ce,'currentModelTimeMs':_0x2cb9d8['modelTimeMs'],..._0x3504e1[_0x438166(0x578,_0x348208._0x51f505,_0x348208._0x10c31d,0x519)]&&_0x3e9c8e>0x0?{'contextWindowUsage':_0x3e9c8e/_0x3504e1[_0xb98628(0x1b,-_0x348208._0xfb8ba6,0x2d,0x2c)]}:{},'totalCostUsdTicks':_0x5826b7===void 0x0?_0x3504e1['totalCostUsdTicks']:_0x3504e1['totalCostUsdTicks']+_0x5826b7,'totalReportedCostUsdTicks':_0x318f24===void 0x0?_0x3504e1[_0xb98628(0x85,_0x348208._0x123815,0xea,_0x348208._0x290ec3)]:_0x3504e1['totalReportedCostUsdTicks']+_0x318f24,'totalEstimatedCostUsdTicks':_0x236f9e===void 0x0?_0x3504e1['totalEstimatedCostUsdTicks']:_0x3504e1[_0x438166(_0x348208._0x2b26ff,0x53e,0x512,_0x348208._0x1898e7)]+_0x236f9e,'reportedCostCallCount':_0x318f24===void 0x0?_0x3504e1[_0x438166(_0x348208._0x425a74,0x640,_0x348208._0x2463d5,0x5da)]:_0x3504e1[_0x438166(0x577,0x591,_0x348208._0x2d65fa,0x5da)]+0x1,'estimatedCostCallCount':_0x236f9e===void 0x0?_0x3504e1[_0x438166(0x582,0x577,0x5f0,_0x348208._0x33458e)]:_0x3504e1[_0x438166(0x542,_0x348208._0x54e383,_0x348208._0x2aa78a,0x59b)]+0x1,'unpricedModelCallCount':_0x318f24===void 0x0&&_0x236f9e===void 0x0?_0x3504e1[_0x438166(_0x348208._0xd4364a,0x5e5,_0x348208._0x13b9d3,_0x348208._0x1e8040)]+0x1:_0x3504e1['unpricedModelCallCount'],..._0x318f24!==void 0x0?{'currentReportedCostUsdTicks':_0x318f24}:{},..._0x236f9e!==void 0x0?{'currentEstimatedCostUsdTicks':_0x236f9e}:{}};}function createAgentMetrics(_0x4dbd9a={}){const _0x170e44={_0x5aee92:0x5b},_0x46a0f3={_0x22b620:0x9d,_0x657e4c:0xda,_0x191cb7:0x39b,_0x3fbc04:0x451,_0x4daa22:0x419,_0x1c5280:0x397},_0x1e1ba9={_0x16c46e:0x31a,_0x1ea8b4:0x2f8,_0x4bd1da:0x323,_0x667269:0x31c,_0xbf8c:0x2cd,_0x1c7e8f:0x9a,_0x46ac28:0x47,_0x4cda9:0x98,_0x30601b:0x2ab,_0x24cf56:0x2c2,_0x2e9bd3:0xd,_0x2f1431:0x4e,_0x3fc493:0x27,_0x52036a:0x5a,_0xab27ce:0x5,_0x3a09fb:0x9,_0xd05f15:0x2e,_0x18ae4a:0x2d5,_0x454031:0x2c9,_0x5e4af0:0x236,_0x50f949:0x2a0,_0x1151f2:0x315,_0x284b65:0x2db};let _0x24261c=createEmptySnapshot();const _0x38aa74=new Set();let _0x15d1ec;const _0x8383f3=()=>{const _0x2e9db9={..._0x24261c};for(const _0x8a4581 of _0x38aa74)_0x8a4581(_0x2e9db9);};return{'getSnapshot'(){return{..._0x24261c};},'recordEvent'(_0xd0eb21){const _0x58b5f2={_0x3a54ec:0x247};function _0x5d045c(_0x44b6ab,_0x515148,_0x614f1f,_0x1de979){return _0x7d44(_0x515148- -_0x58b5f2._0x3a54ec,_0x1de979);}if(_0xd0eb21['type']==='model_request'){_0x15d1ec=Date[_0x1ad549(0x2c7,_0x1e1ba9._0x16c46e,0x2b3,_0x1e1ba9._0x1ea8b4)]();const _0x213408=_0x4dbd9a['getContextWindowLimit']?.(_0xd0eb21['request']);_0x213408!==void 0x0&&(_0x24261c={..._0x24261c,'contextWindowLimit':_0x213408},_0x8383f3());return;}if(_0xd0eb21[_0x1ad549(0x2d6,_0x1e1ba9._0x4bd1da,0x34d,_0x1e1ba9._0x667269)]===_0x1ad549(0x336,0x29c,0x306,_0x1e1ba9._0xbf8c)){const _0x5f5976=_0x15d1ec===void 0x0?0x0:Date['now']()-_0x15d1ec;_0x15d1ec=void 0x0,_0x24261c=applyModelCall(_0x24261c,{'usage':_0xd0eb21[_0x5d045c(-_0x1e1ba9._0x1c7e8f,-_0x1e1ba9._0x46ac28,-0x75,-_0x1e1ba9._0x4cda9)][_0x1ad549(0x2d5,_0x1e1ba9._0x30601b,0x26e,0x29f)],'modelTimeMs':_0xd0eb21['modelTimeMs']??_0x5f5976}),_0x8383f3();return;}if(_0xd0eb21[_0x1ad549(0x325,_0x1e1ba9._0x24cf56,0x337,0x31c)]===_0x5d045c(-_0x1e1ba9._0x2e9bd3,-0x8,-_0x1e1ba9._0x2f1431,_0x1e1ba9._0x3fc493)){_0x24261c={..._0x24261c,'toolCallCount':_0x24261c['toolCallCount']+0x1},_0x8383f3();return;}function _0x1ad549(_0x276215,_0x4024d7,_0x3cf9a2,_0x23a35f){return _0x7d44(_0x23a35f-0xda,_0x4024d7);}_0xd0eb21[_0x5d045c(-_0x1e1ba9._0x52036a,-_0x1e1ba9._0xab27ce,_0x1e1ba9._0x3a09fb,_0x1e1ba9._0xd05f15)]===_0x1ad549(_0x1e1ba9._0x18ae4a,_0x1e1ba9._0x454031,_0x1e1ba9._0x5e4af0,0x282)&&(_0x24261c={..._0x24261c,'requestCount':_0x24261c[_0x1ad549(_0x1e1ba9._0x50f949,0x282,_0x1e1ba9._0x1151f2,_0x1e1ba9._0x284b65)]+0x1},_0x8383f3());},'reset'(){_0x24261c=createEmptySnapshot(),_0x15d1ec=void 0x0,_0x8383f3();},'restore'(_0x4f6efd){function _0x5122e6(_0x562264,_0x328021,_0x22d13c,_0x42286b){return _0x7d44(_0x328021-0x1c9,_0x562264);}function _0x23059e(_0x2aacab,_0x34095f,_0x241517,_0x3c176f){return _0x7d44(_0x241517- -0x246,_0x3c176f);}let _0x546bdd=createEmptySnapshot();for(const _0x3a0895 of _0x4f6efd['modelCalls']){_0x546bdd=applyModelCall(_0x546bdd,{'usage':_0x3a0895[_0x23059e(-_0x46a0f3._0x22b620,-0x84,-0x81,-_0x46a0f3._0x657e4c)],'modelTimeMs':_0x3a0895[_0x5122e6(0x307,0x353,_0x46a0f3._0x191cb7,0x397)]});}_0x24261c={..._0x546bdd,'requestCount':_0x4f6efd[_0x5122e6(_0x46a0f3._0x3fbc04,_0x46a0f3._0x4daa22,0x3d9,0x3dc)]['filter'](_0x2fbe32=>_0x2fbe32[_0x23059e(-0x4a,-0x17,-0x78,-0xa6)])['length'],'toolCallCount':_0x4f6efd['toolCallCount'],'historicalMetricsComplete':_0x4f6efd[_0x5122e6(0x33f,0x39c,0x340,_0x46a0f3._0x1c5280)]===0x0,'missingHistoricalModelCallCount':_0x4f6efd['missingModelCallCount']},_0x15d1ec=void 0x0,_0x8383f3();},'subscribe'(_0x1fc13d){const _0x318ec2={_0x5a507a:0x5b2,_0x2a343f:0x52d};function _0x533b6b(_0x32559d,_0x95ee3e,_0xfc01c3,_0x162489){return _0x7d44(_0x162489- -0x251,_0x32559d);}return _0x38aa74[_0x533b6b(-0x57,-0x104,-_0x170e44._0x5aee92,-0xb1)](_0x1fc13d),()=>{function _0x230cd0(_0x1d270e,_0x18aff0,_0x26f43c,_0x1f5abd){return _0x533b6b(_0x1f5abd,_0x18aff0-0x178,_0x26f43c-0x110,_0x1d270e-0x5d5);}_0x38aa74[_0x230cd0(0x55c,_0x318ec2._0x5a507a,0x51a,_0x318ec2._0x2a343f)](_0x1fc13d);};}};}function makeExtensionContext(_0x2b6846){return{'state':_0x2b6846};}async function runStage(_0x1b11f0,_0x2bb423,_0x540fcf,_0x11bd7c){const _0x3cd07d={_0x461212:0x5d9,_0x3b5858:0x5c6,_0x48b863:0x616,_0x262abf:0x57c},_0x5f3677={_0x228349:0x162,_0x50c7d6:0x178},_0xd918fe={_0x2cfe75:0x111,_0x2a42da:0x9a,_0x52da1f:0x1ea};function _0x21e53f(_0x9f04f5,_0x1a2c5b,_0x450e2c,_0x16883f){return _0x39cbe5(_0x9f04f5-_0xd918fe._0x2cfe75,_0x1a2c5b-_0xd918fe._0x2a42da,_0x450e2c-_0xd918fe._0x52da1f,_0x1a2c5b);}const _0xda207b=await _0x1b11f0[_0x19baab(_0x3cd07d._0x461212,0x588,_0x3cd07d._0x3b5858,0x5fe)](_0x2bb423,_0x540fcf,_0x11bd7c);await _0x1b11f0[_0x19baab(0x5d7,0x5fc,_0x3cd07d._0x48b863,_0x3cd07d._0x262abf)](_0x2bb423,_0xda207b,_0x11bd7c);function _0x19baab(_0x5440a0,_0x4e0951,_0x37b282,_0x28a1cd){return _0x39cbe5(_0x5440a0-_0x5f3677._0x228349,_0x4e0951-_0x5f3677._0x50c7d6,_0x5440a0-0x5ab,_0x28a1cd);}return _0xda207b;}async function emitEvent2(_0x5acb6f,_0x522a38,_0x577f0d){await _0x5acb6f?.(_0x522a38,_0x577f0d);}function replaceToolUseBlocks(_0x5e919e,_0x488840){const _0x2c399={_0x237ecf:0x12,_0x4619dd:0x19},_0x5bfaf6={_0x4fc78:0x1b8,_0x21c0ae:0x1e1,_0x5b608e:0x183,_0x1b460e:0x194},_0x11703d={_0x546c30:0x26,_0x5be74a:0xa3};function _0x4941bb(_0x1ba44c,_0x1bad47,_0x6bbddf,_0x4ecc45){return _0x33f0a3(_0x1ba44c,_0x1bad47-_0x11703d._0x546c30,_0x6bbddf-0x3e,_0x1bad47- -_0x11703d._0x5be74a);}let _0x4e1e7b=0x0;return{..._0x5e919e,'content':_0x5e919e['content'][_0x4941bb(_0x2c399._0x237ecf,0x35,0x2c,_0x2c399._0x4619dd)](_0x33c8d5=>{function _0x346bf5(_0x5b87ce,_0x22706,_0x5b664f,_0x83eb72){return _0x4941bb(_0x5b87ce,_0x22706-0x1c5,_0x5b664f-0xa1,_0x83eb72-0x12e);}if(_0x33c8d5['type']!==_0x346bf5(_0x5bfaf6._0x4fc78,_0x5bfaf6._0x21c0ae,_0x5bfaf6._0x5b608e,_0x5bfaf6._0x1b460e))return _0x33c8d5;const _0x4b0c6d=_0x488840[_0x4e1e7b];return _0x4e1e7b+=0x1,structuredClone(_0x4b0c6d);})};}function createAssistantMessageId(_0x35ca70,_0x5958b6){return _0x35ca70+':assistant:'+_0x5958b6;}function createReasoningMessageId(_0x27d444){return _0x27d444+':reasoning';}function withMessageId(_0x5a95c2,_0x3c37e1){if(_0x5a95c2['id']===_0x3c37e1)return _0x5a95c2;return{..._0x5a95c2,'id':_0x3c37e1};}function createAssistantChunkEvent(_0x19d2d5,_0x3f21e7){const _0x18300f={_0x2b9908:0x1c4,_0x42787b:0x1af,_0x51bf83:0x182,_0x42cfbc:0x1be,_0x46df2c:0x65,_0x1612ad:0x7f,_0x317054:0x198,_0x22a1fb:0x1ec,_0x4a58cb:0x2a0,_0x10bf7c:0x26c,_0xef588f:0x10,_0x3c8d13:0x5,_0x2e06b6:0x33},_0x20d12c={_0x30206a:0x1c1,_0x35ff37:0x6f},_0x2b1254={_0xc9109b:0x33};if(_0x19d2d5[_0x3438fb(-_0x18300f._0x2b9908,-_0x18300f._0x42787b,-_0x18300f._0x51bf83,-_0x18300f._0x42cfbc)]!==_0x26f2af(-0xa1,-_0x18300f._0x46df2c,-0x5b,-_0x18300f._0x1612ad))return void 0x0;function _0x3438fb(_0x7b4d98,_0x3cd904,_0x4010ef,_0x4e8169){return _0x39cbe5(_0x7b4d98-_0x2b1254._0xc9109b,_0x3cd904-0xa4,_0x4010ef- -0x201,_0x4e8169);}if(_0x19d2d5[_0x3438fb(-0x1ed,-0x162,-_0x18300f._0x317054,-0x1b6)]===void 0x0)return void 0x0;function _0x26f2af(_0x18c030,_0x21d8ff,_0x32862b,_0x46c8ec){return _0x33f0a3(_0x46c8ec,_0x21d8ff-_0x20d12c._0x30206a,_0x32862b-_0x20d12c._0x35ff37,_0x32862b- -0xcd);}return{'type':_0x3438fb(-0x285,-_0x18300f._0x22a1fb,-0x22f,-0x1f0),'index':_0x19d2d5['index']??0x0,'messageId':_0x3f21e7,'chunk':{'type':_0x3438fb(-_0x18300f._0x4a58cb,-_0x18300f._0x10bf7c,-0x241,-0x289),'index':_0x19d2d5[_0x26f2af(_0x18300f._0xef588f,-_0x18300f._0x3c8d13,-0x2b,-_0x18300f._0x2e06b6)]??0x0,'text':_0x19d2d5['text']}};}function createToolUseChunkEvent(_0x59d1da,_0x20eca2){const _0xc69c56={_0x340044:0x167,_0x8b7593:0x171,_0x574e32:0x97,_0x587d8b:0xb5,_0x257477:0x86,_0x3b82ea:0x16c,_0x4707ce:0x54,_0x5a8974:0x41,_0x21fb5f:0x131,_0x2a0bd2:0x31,_0x58d15e:0x61,_0x2ef481:0x1f},_0x3475b7={_0xe1ceba:0xd2,_0x301943:0x44},_0x5761df={_0x44fbd2:0x1ab,_0x3eef54:0xf0};function _0x1041c6(_0x597573,_0x288d6c,_0x31caac,_0x33893c){return _0x33f0a3(_0x33893c,_0x288d6c-0xf3,_0x31caac-_0x5761df._0x44fbd2,_0x31caac- -_0x5761df._0x3eef54);}if(_0x59d1da['type']!==_0x7f4ac(-0xfc,-0x19d,-_0xc69c56._0x340044,-_0xc69c56._0x8b7593))return void 0x0;function _0x7f4ac(_0x502891,_0x4c3de1,_0x128872,_0x5e89d6){return _0x33f0a3(_0x4c3de1,_0x4c3de1-_0x3475b7._0xe1ceba,_0x128872-_0x3475b7._0x301943,_0x128872- -0x20e);}return{'type':_0x1041c6(-_0xc69c56._0x574e32,-_0xc69c56._0x587d8b,-_0xc69c56._0x257477,-0x6b),'index':_0x59d1da[_0x7f4ac(-0x174,-0x1c5,-_0xc69c56._0x3b82ea,-0x1b3)]??0x0,'messageId':_0x20eca2,'chunk':{'type':_0x1041c6(-_0xc69c56._0x4707ce,-_0xc69c56._0x5a8974,-0x49,-0x33),'id':_0x59d1da['id']??'','index':_0x59d1da['index']??0x0,..._0x59d1da[_0x7f4ac(-_0xc69c56._0x21fb5f,-0x148,-0x12d,-0x179)]!==void 0x0?{'name':_0x59d1da[_0x1041c6(_0xc69c56._0x2a0bd2,-_0xc69c56._0x58d15e,-0xf,-_0xc69c56._0x2ef481)]}:{},..._0x59d1da[_0x1041c6(-0x46,-0x28,0x3,-0x1a)]!==void 0x0?{'inputDelta':_0x59d1da['inputDelta']}:{}}};}function createReasoningChunkEvent(_0xb9fc3d,_0x474b27){const _0x15980e={_0x51d905:0x82,_0x51eb51:0x96,_0x29211b:0xad,_0x1f5f51:0x8c,_0x3dcc7a:0x77,_0x132c89:0x86,_0x52d72b:0xd,_0x5e10dd:0x3f,_0x4973b8:0x26,_0x5da76e:0x9f,_0x1663d1:0x7e,_0x4b115a:0x31,_0x4c6f57:0x60,_0x5855c7:0x43,_0x336b86:0xc,_0x59463d:0xb9,_0x2133d0:0xa,_0x30b392:0x65,_0x18e1d7:0x54,_0x377833:0x29,_0x4d2714:0xa9,_0x2945b1:0x1f,_0x1b5566:0x7e,_0x8ecdc8:0xb,_0x1efe60:0x24,_0x9e39c6:0x35,_0x53b165:0x4b,_0x3a9c09:0x36,_0x1493d0:0x61,_0x2c61fb:0xda,_0x48dddb:0xa8,_0x485e38:0x3e,_0x59c7f5:0x8f,_0x2ecff6:0x84,_0x475adc:0xde,_0x1316e8:0x77,_0x1b09a3:0x5b,_0x1c1b82:0x9e,_0x1bf6ef:0x7c,_0x4dc0dc:0x38,_0x426cb1:0x54,_0x49367f:0x1c,_0x58a9e8:0x3e,_0x1ec585:0x4c,_0x6047b9:0x17,_0x4808ba:0x11,_0x580265:0x63,_0x38113e:0xc8},_0x26bcd3={_0x3cf31a:0x166,_0x46f24c:0xa1};function _0x46787c(_0x41cc26,_0x4df7d3,_0x286f18,_0x22a5ed){return _0x39cbe5(_0x41cc26-0xe5,_0x4df7d3-0x1e9,_0x41cc26-0x3,_0x22a5ed);}function _0x511c56(_0x58687c,_0x2852c2,_0x159ba6,_0x4fb350){return _0x33f0a3(_0x4fb350,_0x2852c2-_0x26bcd3._0x3cf31a,_0x159ba6-_0x26bcd3._0x46f24c,_0x159ba6- -0x4d);}switch(_0xb9fc3d[_0x46787c(_0x15980e._0x51d905,0x53,_0x15980e._0x51eb51,_0x15980e._0x29211b)]){case'anthropic_thinking_delta':return{'type':_0x511c56(0xcb,_0x15980e._0x1f5f51,_0x15980e._0x3dcc7a,_0x15980e._0x132c89),'index':_0xb9fc3d[_0x46787c(-_0x15980e._0x52d72b,_0x15980e._0x5e10dd,-_0x15980e._0x4973b8,-0x24)],'messageId':_0x474b27,'chunk':{'type':_0x511c56(_0x15980e._0x5da76e,0x36,_0x15980e._0x1663d1,0xba),'index':_0xb9fc3d[_0x46787c(-0xd,-0x73,-0x62,_0x15980e._0x4b115a)]??0x0,'thinking':_0xb9fc3d[_0x46787c(-0x13,-_0x15980e._0x4c6f57,-_0x15980e._0x5855c7,_0x15980e._0x336b86)]??''},'text':_0xb9fc3d[_0x511c56(_0x15980e._0x59463d,_0x15980e._0x2133d0,0x4f,_0x15980e._0x30b392)]??''};case _0x511c56(_0x15980e._0x18e1d7,0x84,0x6d,_0x15980e._0x377833):return{'type':_0x511c56(_0x15980e._0x4d2714,_0x15980e._0x2945b1,0x77,0x7d),'index':_0xb9fc3d[_0x46787c(-0x35,0x0,-_0x15980e._0x1b5566,-0x81)],'messageId':_0x474b27,'chunk':{'type':_0x46787c(_0x15980e._0x8ecdc8,0x3a,_0x15980e._0x1efe60,0x60),'contentIndex':_0xb9fc3d[_0x46787c(-_0x15980e._0x9e39c6,-_0x15980e._0x53b165,_0x15980e._0x3a9c09,-_0x15980e._0x1493d0)]??0x0,'delta':_0xb9fc3d['delta']??'','itemId':_0xb9fc3d[_0x511c56(_0x15980e._0x2c61fb,_0x15980e._0x48dddb,0xaa,0xb3)]??'','outputIndex':_0xb9fc3d[_0x511c56(_0x15980e._0x485e38,_0x15980e._0x59c7f5,0x4b,_0x15980e._0x2ecff6)]??0x0},'text':_0xb9fc3d[_0x511c56(0xcc,0x9a,0xc5,_0x15980e._0x475adc)]??''};case'openai_reasoning_summary_delta':return{'type':_0x511c56(0xce,0x4f,_0x15980e._0x1316e8,_0x15980e._0x1b09a3),'index':_0xb9fc3d[_0x46787c(0x75,_0x15980e._0x1c1b82,_0x15980e._0x1bf6ef,0x63)],'messageId':_0x474b27,'chunk':{'type':_0x46787c(-0x2a,-_0x15980e._0x4dc0dc,-_0x15980e._0x426cb1,-_0x15980e._0x49367f),'delta':_0xb9fc3d['delta']??'','itemId':_0xb9fc3d[_0x511c56(_0x15980e._0x58a9e8,_0x15980e._0x1ec585,0xaa,0x5a)]??'','outputIndex':_0xb9fc3d[_0x46787c(-_0x15980e._0x6047b9,-0x44,-_0x15980e._0x4808ba,0x19)]??0x0,'summaryIndex':_0xb9fc3d['summaryIndex']??0x0},'text':_0xb9fc3d[_0x46787c(_0x15980e._0x580265,_0x15980e._0x38113e,0x4e,0x89)]??''};default:return void 0x0;}}function isAbortedToolResult(_0x339044){const _0x5144dd={_0x29ee31:0x132,_0x535d42:0x105,_0xd5d033:0xd7,_0x44e142:0xf8,_0x29f7ed:0x1cb,_0x42eae1:0x171,_0x647508:0xa5,_0x1633d3:0x7f},_0x50e57c={_0x2ef94b:0xae},_0xceb7b1={_0x16b6f1:0xf4,_0x5b341d:0x1df};function _0x2c30e0(_0x5a593b,_0x255e2e,_0x2a3f5b,_0x3f7bd6){return _0x33f0a3(_0x255e2e,_0x255e2e-0x2,_0x2a3f5b-_0xceb7b1._0x16b6f1,_0x5a593b- -_0xceb7b1._0x5b341d);}function _0xe6059a(_0x3ee39c,_0x42f750,_0x42a8ec,_0x462a1a){return _0x33f0a3(_0x462a1a,_0x42f750-0x13f,_0x42a8ec-_0x50e57c._0x2ef94b,_0x42f750- -0x227);}return _0x339044[_0x2c30e0(-_0x5144dd._0x29ee31,-_0x5144dd._0x535d42,-0x148,-_0x5144dd._0xd5d033)]===_0x2c30e0(-0x14b,-_0x5144dd._0x44e142,-0x169,-0x128)&&_0x339044[_0x2c30e0(-0x167,-_0x5144dd._0x29f7ed,-0x1b6,-_0x5144dd._0x42eae1)][_0x2c30e0(-_0x5144dd._0x647508,-_0x5144dd._0x1633d3,-0xa8,-0x4d)]===!![];}async function executeModelRequest(_0x2cf08d,_0x3aa5ec,_0x421d4d,_0x17ed5c,_0x184b85,_0x5a37d0){const _0x30e1d9={_0x50ecf8:0x187,_0x1505ec:0x195,_0x4b6065:0x171,_0x5438e0:0x1f3,_0x290689:0x267,_0x1dc2a2:0x23b,_0x305be5:0x220,_0x1322fd:0x241,_0x4f418d:0x1b1,_0x927a4:0x1ee,_0x103f1e:0x239,_0x185ece:0x215,_0x22600c:0x1c5,_0xd22d8c:0x1f9,_0x2f5b0d:0x242,_0x54f80d:0x22e,_0x571d61:0x1c3,_0x10de8a:0x1e2,_0x298037:0x259,_0x5022f9:0x243,_0x449e16:0x273,_0xe3169c:0x207,_0xf4d428:0x234,_0x43c68c:0x164,_0x1c08bd:0x1fb,_0x5ee45b:0x272,_0xa185e3:0x20f,_0x4077e0:0x1dd,_0x637a6a:0x1c6,_0x2e44ca:0x164,_0x45200f:0x18d,_0x980f5d:0x167,_0x3940d9:0x23c,_0x7753b5:0x1e0,_0x116a59:0x239,_0x455cb3:0x1cd,_0x203289:0x1a8,_0x5c245d:0x281,_0x24abd8:0x27f,_0xfdf109:0x15a,_0x1c62ab:0x194,_0x582114:0x198,_0x33ba38:0x1ce,_0x379e76:0x130,_0x4d4b26:0x178,_0x404a1d:0x171,_0xe61c3c:0x193,_0x6d64dd:0x198,_0x6b3c69:0x1c0,_0x2f7658:0x169,_0x3c9c0a:0x247,_0x58745b:0x1d5,_0x4fa281:0x1fa,_0x3ebec6:0x1c7,_0x1f46c7:0x27c,_0x635bf8:0x1dc,_0x4e2d97:0x27a,_0x2ffb41:0x171,_0x530d98:0x152,_0x3c1227:0x19e,_0x4d836d:0x208,_0x5e6974:0x195,_0x46a3ba:0x19b,_0x149030:0x176,_0x17ba91:0x21a,_0x619a44:0x197,_0xd6bfbb:0x1c6,_0x1d0b0a:0x1d8,_0x5efae6:0x1c8,_0x2f3b2b:0x1ba},_0x55c6a3={_0x9bc915:0x105,_0x4b05ec:0x2be},_0x4c151b={_0x11a837:0x1f2};throwIfAborted(_0x3aa5ec['signal']);function _0x12c452(_0x19d0bc,_0x5bf38d,_0x4a6d56,_0x44f624){return _0x39cbe5(_0x19d0bc-0x93,_0x5bf38d-_0x4c151b._0x11a837,_0x5bf38d- -0x217,_0x4a6d56);}if(!_0x3aa5ec[_0x41b8d8(-_0x30e1d9._0x50ecf8,-0x159,-_0x30e1d9._0x1505ec,-_0x30e1d9._0x4b6065)]||!_0x421d4d[_0x41b8d8(-_0x30e1d9._0x5438e0,-0x170,-0x1d1,-0x1dd)])return await _0x421d4d[_0x12c452(-_0x30e1d9._0x290689,-_0x30e1d9._0x1dc2a2,-_0x30e1d9._0x305be5,-_0x30e1d9._0x1322fd)](_0x2cf08d,{'signal':_0x3aa5ec[_0x41b8d8(-0x19c,-_0x30e1d9._0x4f418d,-_0x30e1d9._0x927a4,-_0x30e1d9._0x103f1e)]});function _0x41b8d8(_0x38853c,_0x1a2bb9,_0x19b7b2,_0x17ca41){return _0x33f0a3(_0x17ca41,_0x1a2bb9-0x151,_0x19b7b2-_0x55c6a3._0x9bc915,_0x19b7b2- -_0x55c6a3._0x4b05ec);}let _0x16ada1;for await(const _0x27a6e7 of _0x421d4d[_0x41b8d8(-0x183,-_0x30e1d9._0x185ece,-0x1d1,-0x194)](_0x2cf08d,{'signal':_0x3aa5ec[_0x12c452(-_0x30e1d9._0x22600c,-_0x30e1d9._0xd22d8c,-_0x30e1d9._0x2f5b0d,-_0x30e1d9._0x54f80d)]})){throwIfAborted(_0x3aa5ec[_0x41b8d8(-_0x30e1d9._0x571d61,-_0x30e1d9._0x10de8a,-_0x30e1d9._0x927a4,-_0x30e1d9._0x298037)]);if(_0x27a6e7['type']===_0x41b8d8(-0x1fa,-0x222,-0x1e8,-_0x30e1d9._0x5022f9)){_0x5a37d0[_0x12c452(-_0x30e1d9._0x449e16,-0x21a,-_0x30e1d9._0xe3169c,-_0x30e1d9._0xf4d428)][_0x41b8d8(-0x139,-0x137,-0x194,-0x172)]!==void 0x0&&_0x5a37d0['meta'][_0x12c452(-_0x30e1d9._0x43c68c,-0x1c6,-_0x30e1d9._0x1c08bd,-0x1b6)]===void 0x0&&(_0x5a37d0[_0x41b8d8(-0x1e6,-_0x30e1d9._0x5ee45b,-_0x30e1d9._0xa185e3,-_0x30e1d9._0x4077e0)][_0x12c452(-_0x30e1d9._0x927a4,-_0x30e1d9._0x637a6a,-0x1fc,-_0x30e1d9._0x54f80d)]=Date['now']());_0x16ada1=_0x27a6e7['response'];continue;}if(_0x27a6e7[_0x41b8d8(-0x12f,-_0x30e1d9._0x2e44ca,-_0x30e1d9._0x45200f,-_0x30e1d9._0x980f5d)]===_0x41b8d8(-0x239,-_0x30e1d9._0x5022f9,-_0x30e1d9._0x3940d9,-_0x30e1d9._0x7753b5)){await emitEvent2(_0x17ed5c[_0x41b8d8(-0x185,-_0x30e1d9._0x116a59,-_0x30e1d9._0x455cb3,-_0x30e1d9._0x203289)],{'type':_0x41b8d8(-0x1ed,-_0x30e1d9._0x5c245d,-_0x30e1d9._0x3940d9,-_0x30e1d9._0x24abd8),'assistantMessageId':_0x5a37d0['assistantMessageId'],'reasoningMessageId':_0x5a37d0['reasoningMessageId']},_0x184b85),delete _0x5a37d0['meta'][_0x41b8d8(-_0x30e1d9._0xfdf109,-0x12c,-_0x30e1d9._0x1c62ab,-0x140)],delete _0x5a37d0['meta']['reasoningCompletedAt'];continue;}if(_0x27a6e7[_0x12c452(-_0x30e1d9._0x45200f,-_0x30e1d9._0x582114,-_0x30e1d9._0x33ba38,-_0x30e1d9._0x379e76)]===_0x12c452(-0x18b,-0x1e3,-0x1e0,-_0x30e1d9._0x4d4b26)){await emitEvent2(_0x17ed5c['onEvent'],{..._0x27a6e7,'assistantMessageId':_0x5a37d0[_0x41b8d8(-_0x30e1d9._0x404a1d,-_0x30e1d9._0xe61c3c,-0x1b0,-0x19c)]},_0x184b85);continue;}const _0x38b6ab=createReasoningChunkEvent(_0x27a6e7,_0x5a37d0['reasoningMessageId']);if(_0x38b6ab&&_0x38b6ab[_0x12c452(-0x1ed,-_0x30e1d9._0x6d64dd,-_0x30e1d9._0x6b3c69,-_0x30e1d9._0x2f7658)]===_0x41b8d8(-_0x30e1d9._0x3c9c0a,-_0x30e1d9._0x58745b,-_0x30e1d9._0x4fa281,-0x22e)&&_0x38b6ab[_0x41b8d8(-_0x30e1d9._0x3ebec6,-0x13f,-0x1a3,-0x1dd)][_0x41b8d8(-_0x30e1d9._0x1f46c7,-_0x30e1d9._0x635bf8,-0x22c,-0x1c0)]>0x0){_0x5a37d0[_0x12c452(-_0x30e1d9._0x4e2d97,-0x21a,-0x272,-0x1c4)]['reasoningStartedAt']===void 0x0&&(_0x5a37d0['meta'][_0x41b8d8(-_0x30e1d9._0x2ffb41,-_0x30e1d9._0x43c68c,-0x194,-_0x30e1d9._0x530d98)]=Date[_0x41b8d8(-0x1f1,-0x183,-_0x30e1d9._0x4f418d,-0x155)]());await emitEvent2(_0x17ed5c[_0x12c452(-0x244,-0x1d8,-_0x30e1d9._0x3c1227,-0x1ea)],_0x38b6ab,_0x184b85);continue;}const _0x4a9f26=createAssistantChunkEvent(_0x27a6e7,_0x5a37d0[_0x41b8d8(-_0x30e1d9._0x4d836d,-0x1aa,-0x1b0,-_0x30e1d9._0x5e6974)]);if(_0x4a9f26){_0x5a37d0[_0x12c452(-0x204,-0x21a,-_0x30e1d9._0x298037,-0x1c4)][_0x12c452(-_0x30e1d9._0x46a3ba,-0x19f,-0x152,-_0x30e1d9._0x149030)]!==void 0x0&&_0x5a37d0[_0x12c452(-0x280,-0x21a,-0x1c5,-0x242)]['reasoningCompletedAt']===void 0x0&&(_0x5a37d0[_0x12c452(-0x282,-_0x30e1d9._0x17ba91,-_0x30e1d9._0x7753b5,-_0x30e1d9._0x103f1e)][_0x12c452(-_0x30e1d9._0x619a44,-_0x30e1d9._0xd6bfbb,-0x15d,-0x195)]=Date[_0x41b8d8(-0x1f5,-0x1e0,-0x1b1,-0x1d3)]());await emitEvent2(_0x17ed5c[_0x12c452(-0x215,-_0x30e1d9._0x1d0b0a,-0x199,-_0x30e1d9._0x5efae6)],_0x4a9f26,_0x184b85);continue;}const _0x2a2716=createToolUseChunkEvent(_0x27a6e7,_0x5a37d0[_0x12c452(-0x1d3,-0x1bb,-0x176,-_0x30e1d9._0x2f3b2b)]);_0x2a2716&&await emitEvent2(_0x17ed5c[_0x41b8d8(-0x169,-0x211,-0x1cd,-0x20e)],_0x2a2716,_0x184b85);}if(!_0x16ada1)throw new Error('Model\x20stream\x20ended\x20without\x20a\x20final\x20response');return _0x16ada1;}function makeTurnGuards(_0x30a325,_0x403c72,_0x1fb0fa,_0x10447b,_0x5cb5e0){return{async 'stage'(_0x5099fb,_0x528cde){return throwIfAborted(_0x30a325),await runStage(_0x403c72,_0x5099fb,_0x528cde,_0x10447b);},async 'emit'(_0x5e10a6){throwIfAborted(_0x30a325),await emitEvent2(_0x1fb0fa,_0x5e10a6,_0x5cb5e0);},async 'stageUnchecked'(_0x1e4231,_0x548240){return await runStage(_0x403c72,_0x1e4231,_0x548240,_0x10447b);},async 'emitUnchecked'(_0x5d3767){await emitEvent2(_0x1fb0fa,_0x5d3767,_0x5cb5e0);}};}async function runTurn(_0x463942,_0x21b5be){const _0xe48838={_0x2c39a2:0x52b,_0x34cc80:0x514,_0x42b633:0x47a,_0x17c4e8:0x4df,_0x887eba:0x4c5,_0x8eda54:0x48e,_0x308d1d:0x4a5,_0x4fb19d:0x549,_0x2aee06:0x53f,_0x222f26:0x4f3,_0xdd80d5:0x4bd,_0xdb88dd:0x50a,_0x335cd8:0x508,_0x4e4ac1:0x4f2,_0xefce3d:0x492,_0x292c2f:0x4f4,_0x1279d0:0x4e9,_0x632f3c:0x4c1,_0x451c00:0x4a9,_0x1bba6c:0x541,_0x1e4cad:0x56b,_0x506359:0x509,_0x1d3b26:0x52d,_0x184e9b:0x588,_0x36659a:0x50c,_0xd4115f:0x4f5,_0x4c8154:0x556,_0x3c6359:0x4b8,_0x16faa5:0x4ee,_0x158319:0x538,_0x1bae37:0x545,_0x3f3682:0x4ac,_0x5006fc:0x450,_0x217e51:0x535,_0x4511a0:0x542,_0x49f2e4:0x58e,_0x3af99c:0x46f,_0xea566f:0x49f,_0x25056b:0x4c9,_0x363542:0x5bf,_0x2fb99a:0x56c,_0x4db787:0x5c8,_0x4899f6:0x5bd,_0x4f2984:0x494,_0x56faf4:0x544,_0x4c7698:0x536,_0x434fcf:0x512,_0x3f5cd6:0x54a,_0x49081a:0x514,_0x20fee8:0x4a5,_0x5a0629:0x548,_0x85e81e:0x4e9,_0x11663b:0x4b4,_0x5f5dd0:0x4a7,_0x585575:0x4a6,_0x241729:0x566,_0x52aaa3:0x50e,_0x5e26d6:0x5cf,_0x19f738:0x53b,_0x4481a6:0x567,_0x59a2b6:0x59d,_0x471b70:0x47b,_0x424856:0x520,_0x45ef90:0x4fb,_0x108ba8:0x4a0,_0x1c3539:0x57b,_0x5b1157:0x5c7,_0xfeec3:0x470,_0x3fe605:0x4bc,_0x4f114a:0x4af,_0xb7156e:0x531,_0x1aa6f3:0x52f,_0x16033c:0x562,_0x51910e:0x53d,_0x2f08d2:0x547,_0x2d8cab:0x507,_0x758ac6:0x4b3,_0x24fd69:0x50d,_0x3f3571:0x4d7,_0x251981:0x4d0,_0x172572:0x525,_0x260f7b:0x511,_0x5df246:0x4dd,_0x5499ce:0x48a,_0x5a4672:0x496,_0x69fee0:0x499,_0x221595:0x44a,_0x1fc0f3:0x488,_0x536034:0x527,_0x6d9102:0x4ba,_0x2afacb:0x53a,_0x591c83:0x49e,_0x552f10:0x47f,_0x155a8b:0x43a,_0x4ee598:0x4d4,_0x14dd80:0x540,_0x2a06c1:0x4db,_0x14b3f1:0x51d,_0x1bd177:0x4f8,_0x1d1b62:0x546,_0x12f991:0x4b8,_0x386735:0x58b,_0x3404ed:0x557,_0x258c3d:0x4eb,_0x2e6076:0x560,_0x4a8b76:0x553,_0x165129:0x4c2,_0x10263e:0x576,_0x275258:0x4b0,_0x1276c2:0x493,_0x2ce892:0x517,_0x2506ca:0x53e,_0x4ce0d3:0x4c2,_0x3dbaef:0x45c,_0x2d5681:0x4a6,_0x22def3:0x526,_0x6b8e9a:0x4a3,_0x21e673:0x50e,_0x1b45bb:0x54f,_0x418810:0x4bb,_0x4cec35:0x4de,_0x1060aa:0x4be,_0x290fe6:0x4ce,_0x31ec40:0x45e,_0xc57d94:0x4a2,_0x4b5bc9:0x45a,_0xbcbde:0x4d6,_0x5836f4:0x4b4,_0x3645dc:0x4d8,_0x5eda28:0x485,_0x18d30e:0x522,_0x5bc23e:0x50b,_0x2066c3:0x485,_0xb4181d:0x4b0,_0xa98793:0x4ed,_0x47ed59:0x501,_0x189674:0x57a,_0x3720e9:0x5a3,_0x38e1c4:0x5a7},_0xf5d9f6={_0xb0e7ab:0x439,_0x3a9c02:0x400,_0x4a7647:0x260,_0x5de838:0x25e,_0xd32985:0x422,_0x17c4de:0x4a6,_0x10bdc6:0x405,_0x2bfa35:0x458,_0x5a59d9:0x41d,_0x16a4e3:0x224,_0x51ee6b:0x1df},_0x6fdf16={_0xee42b2:0x1d5},_0x28b51e={_0x16f22b:0x559,_0x543427:0xcc,_0x20db50:0x51c},_0x57db99={_0xb187f8:0xac,_0x5bab4d:0x5e5,_0x43fd37:0x73},_0x11b7eb={_0x5c94a7:0xe1},_0xbdb6d3={_0x156e8e:0x6,_0x2e6782:0x4c1};function _0x4b6ea1(_0x52f184,_0xd6ce66,_0x5403e1,_0x6df2dd){return _0x39cbe5(_0x52f184-0x3b,_0xd6ce66-_0xbdb6d3._0x156e8e,_0x5403e1-_0xbdb6d3._0x2e6782,_0x52f184);}const _0x2bfb37=_0x21b5be[_0xc210e(_0xe48838._0x2c39a2,_0xe48838._0x34cc80,0x4b0,0x57e)],_0x3a96e1=_0x463942['signal']??new AbortController()[_0x4b6ea1(_0xe48838._0x42b633,0x4e8,_0xe48838._0x17c4e8,_0xe48838._0x887eba)];function _0xc210e(_0x99838d,_0x526764,_0x32a3d6,_0x94aae3){return _0x33f0a3(_0x94aae3,_0x526764-0xf9,_0x32a3d6-_0x11b7eb._0x5c94a7,_0x526764-0x430);}const _0x1f76a3={'sessionId':_0x463942[_0x4b6ea1(_0xe48838._0x8eda54,0x4c6,_0xe48838._0x308d1d,0x474)],'turnId':_0x463942[_0x4b6ea1(_0xe48838._0x4fb19d,_0xe48838._0x2aee06,0x4e9,_0xe48838._0x222f26)],'system':normalizeSystem(_0x463942[_0xc210e(0x4e9,_0xe48838._0xdd80d5,0x50f,_0xe48838._0xdb88dd)]),'messages':(_0x463942['messages']??[])[_0xc210e(0x523,_0xe48838._0x335cd8,_0xe48838._0x4e4ac1,0x4ec)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x21b5be[_0xc210e(0x50c,0x515,0x544,0x4db)]==='function'?_0x21b5be[_0x4b6ea1(0x4da,_0xe48838._0xefce3d,_0xe48838._0x292c2f,0x4d0)]():_0x21b5be[_0x4b6ea1(_0xe48838._0x335cd8,0x55d,_0xe48838._0x292c2f,0x4ac)]},_0x4a2435=makeExtensionContext(_0x1f76a3),_0x18d9c9={'sessionId':_0x1f76a3[_0x4b6ea1(0x44e,0x477,0x4a5,_0xe48838._0x1279d0)],'turnId':_0x1f76a3[_0xc210e(_0xe48838._0x632f3c,_0xe48838._0xdb88dd,_0xe48838._0x451c00,_0xe48838._0x1bba6c)],'state':_0x1f76a3,'signal':_0x3a96e1,..._0x21b5be['askUser']?{'askUser':_0x21b5be[_0x4b6ea1(0x534,_0xe48838._0x1e4cad,_0xe48838._0x506359,0x523)]}:{},..._0x21b5be[_0xc210e(0x522,_0xe48838._0x1d3b26,0x583,_0xe48838._0x184e9b)]?{'setTopic':_0x21b5be[_0x4b6ea1(0x51e,0x510,_0xe48838._0x36659a,_0xe48838._0xd4115f)]}:{}},{stage:_0x5ae6b1,emit:_0x37f1ad,stageUnchecked:_0x9911f8,emitUnchecked:_0x524dfa}=makeTurnGuards(_0x3a96e1,_0x21b5be[_0xc210e(0x52a,0x553,_0xe48838._0x2c39a2,_0xe48838._0x4c8154)],_0x21b5be[_0xc210e(_0xe48838._0x3c6359,0x521,0x522,_0xe48838._0x16faa5)],_0x4a2435,_0x18d9c9),_0x3a3cca=async(_0x587198,_0x47de08)=>{const _0xe5e5e7={_0x2c5fec:0x1b2,_0x3a9f98:0x6b,_0x85d314:0x66},_0x181c1a=_0x47de08?{..._0x4a2435,'turnMeta':_0x47de08}:_0x4a2435;function _0x2aec49(_0x596d05,_0xf3b3df,_0x5ee565,_0x39d382){return _0xc210e(_0x596d05-_0x57db99._0xb187f8,_0x39d382- -_0x57db99._0x5bab4d,_0x5ee565-_0x57db99._0x43fd37,_0x596d05);}function _0x51d3b1(_0x2d14db,_0x491d7f,_0x5823fa,_0x24e970){return _0xc210e(_0x2d14db-_0xe5e5e7._0x2c5fec,_0x491d7f-_0xe5e5e7._0x3a9f98,_0x5823fa-_0xe5e5e7._0x85d314,_0x5823fa);}await _0x21b5be[_0x51d3b1(0x5f4,0x5be,0x601,_0x28b51e._0x16f22b)][_0x2aec49(-0x10d,-0x139,-_0x28b51e._0x543427,-0xd7)](_0x51d3b1(0x4ec,_0x28b51e._0x20db50,0x4b6,0x53c),structuredClone(_0x587198),_0x181c1a);},_0x5763c8=async _0x528d5a=>{const _0x506eed={_0x59d9c1:0x17e,_0x26b942:0xca};if(!_0x463942[_0x4eef84(_0xf5d9f6._0xb0e7ab,0x3d2,0x39f,_0xf5d9f6._0x3a9c02)])return 0x0;const _0x3cff85=await _0x463942[_0x5b9875(-0x248,-0x206,-_0xf5d9f6._0x4a7647,-_0xf5d9f6._0x5de838)]();throwIfAborted(_0x3a96e1);function _0x5b9875(_0x217b9e,_0xd5b56d,_0x4061e0,_0x191f9b){return _0xc210e(_0x217b9e-0x10e,_0xd5b56d- -0x6e6,_0x4061e0-_0x6fdf16._0xee42b2,_0x217b9e);}if(_0x3cff85[_0x4eef84(_0xf5d9f6._0xd32985,0x44c,0x3fe,0x3e2)]===0x0)return 0x0;await _0x528d5a?.();function _0x4eef84(_0x486925,_0x5cd145,_0x203774,_0x5aa859){return _0x4b6ea1(_0x5cd145,_0x5cd145-_0x506eed._0x59d9c1,_0x5aa859- -0xbf,_0x5aa859-_0x506eed._0x26b942);}for(const _0x4600ad of _0x3cff85){const _0x16b80a=await _0x5ae6b1(_0x4eef84(_0xf5d9f6._0x17c4de,0x3fd,_0xf5d9f6._0x10bdc6,_0xf5d9f6._0x2bfa35),normalizeMessage(_0x4600ad));throwIfAborted(_0x3a96e1),_0x1f76a3['messages'][_0x4eef84(0x4b6,0x4cd,0x469,0x476)](_0x16b80a),await _0x3a3cca(_0x16b80a),await _0x37f1ad({'type':_0x4eef84(0x449,0x400,0x44e,_0xf5d9f6._0x5a59d9),'message':_0x16b80a});}return _0x3cff85[_0x5b9875(-0x214,-_0xf5d9f6._0x16a4e3,-_0xf5d9f6._0x51ee6b,-0x27a)];};let _0x341567=0x0;try{const _0x5d92d5=await _0x5ae6b1(_0xc210e(0x5a3,_0xe48838._0x158319,_0xe48838._0x1bae37,0x50c),normalizeMessage(_0x463942[_0xc210e(0x4bd,_0xe48838._0x3f3682,_0xe48838._0x5006fc,0x49f)]));_0x1f76a3['messages'][_0x4b6ea1(0x56c,_0xe48838._0x1e4cad,_0xe48838._0x217e51,0x4d3)](_0x5d92d5),await _0x3a3cca(_0x5d92d5),await _0x37f1ad({'type':'user_message','message':_0x5d92d5});while(!![]){throwIfAborted(_0x3a96e1),_0x341567+=0x1;const _0x11665a=createAssistantMessageId(_0x1f76a3[_0x4b6ea1(0x554,0x51b,0x4e9,0x53e)],_0x341567),_0x1b535f=createReasoningMessageId(_0x11665a),_0x573914={'model':_0x2bfb37[_0x4b6ea1(0x510,0x521,_0xe48838._0x4511a0,_0xe48838._0x49f2e4)],'modelIdentity':_0x2bfb37[_0xc210e(_0xe48838._0x3af99c,_0xe48838._0xea566f,_0xe48838._0x25056b,0x4d8)],..._0x2bfb37['provider']?{'provider':_0x2bfb37[_0xc210e(_0xe48838._0x363542,_0xe48838._0x2fb99a,0x554,_0xe48838._0x184e9b)]}:{}};let _0x420363={'model':_0x2bfb37[_0xc210e(0x5cf,0x563,_0xe48838._0x4db787,_0xe48838._0x4899f6)],..._0x2bfb37['maxTokens']!==void 0x0?{'maxTokens':_0x2bfb37[_0x4b6ea1(_0xe48838._0x4f2984,0x4c0,0x47a,0x424)]}:{},'system':structuredClone(_0x1f76a3['system']),'messages':structuredClone(_0x1f76a3[_0x4b6ea1(0x575,_0xe48838._0x56faf4,_0xe48838._0x4c7698,_0xe48838._0x434fcf)]),'tools':_0x21b5be[_0x4b6ea1(0x53c,_0xe48838._0x3f5cd6,0x4e2,_0xe48838._0x49081a)]['listToolSchemas'](),'metadata':{'sessionId':_0x1f76a3[_0x4b6ea1(0x445,0x450,_0xe48838._0x20fee8,0x4f6)],'turnId':_0x1f76a3[_0x4b6ea1(_0xe48838._0x5a0629,0x525,_0xe48838._0x85e81e,0x4e8)],'modelIdentity':_0x2bfb37[_0xc210e(_0xe48838._0x11663b,0x49f,_0xe48838._0x5f5dd0,_0xe48838._0x585575)],..._0x2bfb37[_0xc210e(0x515,_0xe48838._0x241729,_0xe48838._0x52aaa3,_0xe48838._0x5e26d6)]!==void 0x0?{'pricingProviderId':_0x2bfb37[_0x4b6ea1(_0xe48838._0x19f738,_0xe48838._0x4481a6,0x545,_0xe48838._0x59a2b6)]}:{}},..._0x21b5be[_0x4b6ea1(0x51b,_0xe48838._0x471b70,0x4c4,_0xe48838._0x424856)]?{'outputFormat':_0x21b5be[_0xc210e(_0xe48838._0x45ef90,0x4e5,_0xe48838._0x506359,_0xe48838._0x108ba8)]}:{}};_0x420363=await _0x5ae6b1('beforeModelRequest',_0x420363);{const {pricingProviderId:_0x5d7c07,..._0x38931c}=_0x420363[_0xc210e(0x55c,0x529,_0xe48838._0x1c3539,0x4e0)];_0x420363={..._0x420363,'metadata':{..._0x38931c,..._0x2bfb37[_0xc210e(0x50b,_0xe48838._0x241729,_0xe48838._0x5b1157,_0xe48838._0x5b1157)]!==void 0x0?{'pricingProviderId':_0x2bfb37['pricingProviderId']}:{}}};}await _0x37f1ad({'type':_0xc210e(_0xe48838._0xfeec3,_0xe48838._0x3fe605,0x510,_0xe48838._0x4f114a),'request':_0x420363});const _0x4a94ac=Date['now']();_0x573914[_0x4b6ea1(_0xe48838._0xb7156e,0x5a6,_0xe48838._0x1bba6c,_0xe48838._0x1aa6f3)]=_0x4a94ac;let _0x5c3069=await executeModelRequest(_0x420363,_0x463942,_0x2bfb37,_0x21b5be,_0x18d9c9,{'assistantMessageId':_0x11665a,'reasoningMessageId':_0x1b535f,'meta':_0x573914});const _0x303444=Date[_0xc210e(_0xe48838._0x16033c,_0xe48838._0x51910e,_0xe48838._0x2f08d2,_0xe48838._0x2d8cab)]();_0x573914[_0x4b6ea1(_0xe48838._0x758ac6,0x530,_0xe48838._0x24fd69,_0xe48838._0x3f3571)]=_0x303444,_0x5c3069=await _0x5ae6b1(_0xc210e(0x4bb,0x4f3,_0xe48838._0x251981,0x4cd),_0x5c3069);_0x5c3069[_0xc210e(0x4dc,0x548,0x57e,_0xe48838._0x172572)]&&(_0x5c3069={..._0x5c3069,'providerState':{..._0x5c3069[_0x4b6ea1(_0xe48838._0x260f7b,0x584,0x527,_0xe48838._0x5df246)],'originModelIdentity':_0x2bfb37[_0x4b6ea1(0x463,_0xe48838._0x5499ce,0x47e,_0xe48838._0x5a4672)]}});_0x5c3069=withEstimatedModelCost(_0x420363,_0x5c3069);const _0x4c200c=Math[_0x4b6ea1(0x4e9,0x49d,_0xe48838._0x69fee0,_0xe48838._0x221595)](0x0,_0x303444-_0x4a94ac),_0x5d2567={'version':0x1,'usage':structuredClone(_0x5c3069[_0xc210e(0x52f,0x4e4,_0xe48838._0x1fc0f3,_0xe48838._0x536034)]),'modelTimeMs':_0x4c200c},_0x4fb285=_0x22a283=>({..._0x573914,'metrics':{..._0x5d2567,'usage':structuredClone(_0x5d2567['usage']),'completesRequest':_0x22a283}});await _0x37f1ad({'type':_0x4b6ea1(0x4df,_0xe48838._0x6d9102,0x4f1,_0xe48838._0x2afacb),'response':_0x5c3069,'modelTimeMs':_0x4c200c}),_0x1f76a3[_0x4b6ea1(_0xe48838._0x591c83,0x42b,_0xe48838._0x552f10,_0xe48838._0x155a8b)]=_0x5c3069;let _0x21a727=await _0x5ae6b1('beforeAssistantAppend',withMessageId(responseToAssistantMessage(_0x5c3069),_0x11665a));_0x21a727=withMessageId(_0x21a727,_0x11665a);const _0x2f7c9f=getToolUseBlocks(_0x21a727),_0x5d5b16=await Promise[_0x4b6ea1(_0xe48838._0x4ee598,_0xe48838._0x14dd80,_0xe48838._0x2a06c1,_0xe48838._0x14b3f1)](_0x2f7c9f[_0xc210e(_0xe48838._0x1bd177,0x508,0x529,_0xe48838._0x1d1b62)](_0x1752f9=>_0x5ae6b1('beforeToolExecution',_0x1752f9)));_0x5d5b16[_0x4b6ea1(0x4ed,_0xe48838._0x12f991,0x4a1,0x4ec)]>0x0&&(_0x21a727=replaceToolUseBlocks(_0x21a727,_0x5d5b16));const _0x354295=withMessageId(_0x21a727,_0x11665a);_0x21a727=_0x354295;const _0x5b7c1e=createReasoningMessage(_0x21a727),_0x20b249=createAssistantTextMessage(_0x21a727),_0x260410=createToolUseMessage(_0x21a727);_0x5b7c1e&&await _0x37f1ad({'type':_0x4b6ea1(0x4f7,_0xe48838._0x386735,0x528,0x566),'message':withMessageId(_0x5b7c1e,_0x1b535f)});_0x20b249&&await _0x37f1ad({'type':'assistant_message','message':withMessageId(_0x20b249,_0x11665a)});_0x260410&&await _0x37f1ad({'type':'tool_use_message','message':withMessageId(_0x260410,_0x11665a)});_0x1f76a3[_0xc210e(0x56f,_0xe48838._0x3404ed,_0xe48838._0x258c3d,_0xe48838._0x2e6076)][_0xc210e(0x4f0,_0xe48838._0x4c8154,0x4fd,_0xe48838._0x4a8b76)](_0x354295);_0x5d5b16[_0xc210e(0x4b7,_0xe48838._0x165129,0x4cf,0x524)]>0x0&&await _0x3a3cca(_0x354295,_0x4fb285(![]));for(const _0x1215ad of _0x5d5b16){await _0x37f1ad({'type':_0x4b6ea1(_0xe48838._0x10263e,0x4f2,0x53d,0x4f3),'toolCall':_0x1215ad});}if(_0x5d5b16[_0x4b6ea1(0x4de,_0xe48838._0x275258,0x4a1,_0xe48838._0x585575)]===0x0){const _0x42b17f=await _0x5763c8(async()=>{await _0x3a3cca(_0x354295,_0x4fb285(![]));});if(_0x42b17f>0x0)continue;const _0x1199f7=await _0x5ae6b1(_0xc210e(0x56f,0x535,0x567,0x5a0),_0x21a727),_0x311975=withMessageId(_0x1199f7,_0x11665a);return _0x1f76a3[_0x4b6ea1(0x532,_0xe48838._0x1276c2,0x4f9,0x4e0)]=_0x311975,_0x1f76a3['messages'][_0x1f76a3[_0x4b6ea1(_0xe48838._0x2ce892,_0xe48838._0xb7156e,0x536,_0xe48838._0x2506ca)][_0xc210e(0x488,_0xe48838._0x4ce0d3,0x4d1,0x4ae)]-0x1]=_0x311975,await _0x3a3cca(_0x311975,_0x4fb285(!![])),await _0x524dfa({'type':_0x4b6ea1(0x481,_0xe48838._0x3dbaef,_0xe48838._0x2d5681,0x4b6),'message':_0x311975}),throwIfAborted(_0x3a96e1),await _0x21b5be[_0xc210e(_0xe48838._0x22def3,0x553,0x587,0x504)][_0xc210e(_0xe48838._0x6b8e9a,_0xe48838._0x21e673,0x52d,_0xe48838._0x1b45bb)](_0x4b6ea1(0x478,_0xe48838._0x418810,_0xe48838._0x4cec35,_0xe48838._0x1060aa),_0x1f76a3,_0x4a2435),await _0x37f1ad({'type':_0x4b6ea1(_0xe48838._0x290fe6,_0xe48838._0x31ec40,0x48e,0x431),'state':_0x1f76a3}),{'status':_0xc210e(0x587,0x541,0x582,0x512),'finalMessage':_0x311975,'state':_0x1f76a3};}let _0xed4fd9=await _0x21b5be['toolRuntime'][_0x4b6ea1(0x4a0,0x461,_0xe48838._0xc57d94,_0xe48838._0xefce3d)](_0x5d5b16,_0x18d9c9);const _0x51c14e=_0xed4fd9[_0x4b6ea1(_0xe48838._0x4b5bc9,0x4c5,0x480,0x433)](isAbortedToolResult),_0x11a026=_0x51c14e?_0x9911f8:_0x5ae6b1,_0x3932c9=_0x51c14e?_0x524dfa:_0x37f1ad;_0xed4fd9=await Promise[_0xc210e(_0xe48838._0xbcbde,0x4fc,0x55f,_0xe48838._0x5836f4)](_0xed4fd9[_0xc210e(_0xe48838._0x3645dc,0x508,_0xe48838._0xdd80d5,0x4b7)](_0x2850ad=>_0x11a026('afterToolResult',_0x2850ad))),_0x1f76a3[_0xc210e(_0xe48838._0x5eda28,0x4c5,_0xe48838._0x18d30e,0x4ce)][_0xc210e(0x4f4,0x556,0x565,0x540)](..._0xed4fd9);for(const _0x377ff3 of _0xed4fd9){await _0x3932c9({'type':_0xc210e(0x48b,0x4dc,0x513,_0xe48838._0x5bc23e),'result':_0x377ff3});}const _0x19060e=await _0x11a026(_0x4b6ea1(0x53e,0x57a,0x53b,0x55d),createToolResultUserMessage(_0xed4fd9));await _0x3932c9({'type':_0xc210e(_0xe48838._0x2066c3,_0xe48838._0xb4181d,0x49d,0x4ee),'message':_0x19060e}),_0x1f76a3[_0xc210e(_0xe48838._0xa98793,0x557,_0xe48838._0x47ed59,0x5ad)][_0xc210e(_0xe48838._0x189674,0x556,0x591,0x56d)](_0x19060e),await _0x3a3cca(_0x19060e);if(_0x51c14e)return{'status':_0x4b6ea1(0x561,_0xe48838._0x3720e9,_0xe48838._0x4fb19d,0x597),'state':_0x1f76a3};await _0x5763c8();}}catch(_0x3cb4c6){if(!_0x3a96e1['aborted'])throw new TurnFailedError(_0x3cb4c6,_0x1f76a3);return{'status':_0xc210e(_0xe48838._0x38e1c4,0x56a,0x51c,0x507),'state':_0x1f76a3};}}function createSessionId(){const _0x3b069e={_0x4d9038:0x181,_0x140a45:0x17b,_0x144bdf:0x14b,_0x7c2de1:0x1b4,_0x1e2c00:0x16b,_0x3c4241:0x19a,_0x945c2:0x164,_0x47e308:0x15d},_0x3ac0d4={_0x4abdf2:0x1c7},_0x1feaa0={_0x5f1e28:0x1d6};function _0x4d1571(_0x3a9cec,_0x10a848,_0x39498c,_0x326770){return _0x39cbe5(_0x3a9cec-0x196,_0x10a848-0x98,_0x10a848- -_0x1feaa0._0x5f1e28,_0x3a9cec);}function _0x4eb567(_0x209b68,_0x348328,_0x33304f,_0x4b376e){return _0x33f0a3(_0x209b68,_0x348328-0x114,_0x33304f-_0x3ac0d4._0x4abdf2,_0x348328-0xc3);}return _0x4eb567(_0x3b069e._0x4d9038,0x138,0x19a,0x124)+Date[_0x4d1571(-0x1c4,-_0x3b069e._0x140a45,-0x160,-0x1da)]()+'-'+Math[_0x4eb567(0x134,0x17b,_0x3b069e._0x144bdf,_0x3b069e._0x7c2de1)]()[_0x4d1571(-0x163,-_0x3b069e._0x1e2c00,-0x101,-_0x3b069e._0x3c4241)](0x10)[_0x4d1571(-_0x3b069e._0x945c2,-0x1a9,-_0x3b069e._0x47e308,-0x1ce)](0x2,0xa);}function createTurnId(_0x1d8e35){const _0xd7b8f5={_0x20da5f:0x1ef,_0x3c7281:0x217,_0x559747:0x198},_0x2bdd63={_0x3963ba:0x197};function _0x70146(_0x1b8280,_0x1b88e5,_0x4762dd,_0x407c69){return _0x33f0a3(_0x407c69,_0x1b88e5-_0x2bdd63._0x3963ba,_0x4762dd-0x1b,_0x1b8280- -0x263);}return _0x70146(-_0xd7b8f5._0x20da5f,-0x1ef,-_0xd7b8f5._0x3c7281,-_0xd7b8f5._0x559747)+_0x1d8e35;}function createDefaultMessage(_0x229768){if(_0x229768===void 0x0)return void 0x0;return normalizeUserInput(_0x229768);}function normalizeUserInput(_0x706f0){const _0x402bb7={_0x22b18a:0x410,_0x3fac2f:0x431,_0x465f3c:0x3cf,_0x5d6e3d:0x337,_0x35305a:0x302,_0x215548:0x318},_0x5cfe76={_0x5d8c6c:0x2b,_0x4cf9a7:0x131};function _0xa18806(_0xb7e3e,_0x3419fc,_0x54d8de,_0xe550d9){return _0x39cbe5(_0xb7e3e-0x2d,_0x3419fc-0x22,_0x54d8de-0x43d,_0x3419fc);}function _0x5d53e3(_0x46bd9c,_0x1e7bc9,_0x41cc40,_0x51ff38){return _0x33f0a3(_0x46bd9c,_0x1e7bc9-_0x5cfe76._0x5d8c6c,_0x41cc40-_0x5cfe76._0x4cf9a7,_0x41cc40-0x1b4);}if(typeof _0x706f0===_0xa18806(0x428,_0x402bb7._0x22b18a,_0x402bb7._0x3fac2f,_0x402bb7._0x465f3c))return{'role':'user','content':[{'type':_0x5d53e3(_0x402bb7._0x5d6e3d,_0x402bb7._0x35305a,0x2cf,_0x402bb7._0x215548),'text':_0x706f0}]};return normalizeMessage(_0x706f0);}function resolveChatModel(_0x362c06){const _0x2c7a36={_0x283bb9:0x94,_0x2dd146:0xc3,_0x2ae767:0x58,_0x361e96:0xaa,_0xcf35ef:0x78,_0x495c7b:0x5d2,_0x2f5861:0x5ed,_0x5ece3c:0x633},_0x5dbe53={_0x3ec37d:0x73};function _0x314e8a(_0x334de0,_0x469ce9,_0x38beed,_0x5479b1){return _0x39cbe5(_0x334de0-0x1eb,_0x469ce9-0x67,_0x469ce9- -0xc6,_0x38beed);}function _0x1fb4cf(_0x42b892,_0x354dcb,_0x4ca761,_0x31668e){return _0x33f0a3(_0x31668e,_0x354dcb-_0x5dbe53._0x3ec37d,_0x4ca761-0x197,_0x42b892-0x4ee);}if(!_0x362c06[_0x314e8a(-0x9f,-_0x2c7a36._0x283bb9,-0xaa,-_0x2c7a36._0x2dd146)])throw new Error(_0x314e8a(-_0x2c7a36._0x2ae767,-_0x2c7a36._0x361e96,-0xb6,-_0x2c7a36._0xcf35ef));return _0x362c06[_0x1fb4cf(_0x2c7a36._0x495c7b,0x579,_0x2c7a36._0x2f5861,_0x2c7a36._0x5ece3c)];}function createRegistry(_0x41b901){const _0x3ce67a={_0x67610f:0x489,_0x39985c:0x43b,_0x14b469:0x478},_0x245c53={_0x31db2f:0x24,_0x5b9a85:0x199,_0xf3a060:0x577},_0x4ff0f4={_0x563e3a:0x12b,_0x1f089d:0x35};if(_0x41b901['registry'])return _0x41b901['registry'];function _0x2bea4f(_0x143005,_0xc2383c,_0x3cca68,_0x2ffe4c){return _0x33f0a3(_0x2ffe4c,_0xc2383c-_0x4ff0f4._0x563e3a,_0x3cca68-_0x4ff0f4._0x1f089d,_0x3cca68-0x3c1);}const _0x2810a7=createExtensionRegistry();function _0x5461ec(_0x19ca1a,_0x4f4adf,_0xe6c7f5,_0x5049fa){return _0x39cbe5(_0x19ca1a-_0x245c53._0x31db2f,_0x4f4adf-_0x245c53._0x5b9a85,_0x4f4adf-_0x245c53._0xf3a060,_0x5049fa);}const _0x5cea9a=_0x41b901[_0x2bea4f(0x432,0x4cb,_0x3ce67a._0x67610f,0x4e3)]??[];for(const _0xb02d94 of _0x5cea9a){_0x2810a7[_0x2bea4f(_0x3ce67a._0x39985c,0x461,_0x3ce67a._0x14b469,0x464)](_0xb02d94);}return _0x2810a7;}var Agent=class{[_0x39cbe5(-0x11,0x19,0x1f,0x6)];[_0x33f0a3(0x60,0xf4,0xda,0xa5)];[_0x33f0a3(0xcc,0x54,0x54,0x6d)];[_0x39cbe5(0x4d,0x10,-0x1c,-0x36)];['messages'];[_0x33f0a3(0x17e,0x174,0x101,0x11a)];[_0x39cbe5(-0x57,-0x4b,0x1,0x0)];constructor(_0x1bd097={}){const _0x121c7a={_0x1d6b82:0xeb,_0x100bf5:0x111,_0x3151f3:0xd3,_0x2cbe94:0xe3,_0x594bac:0xc8,_0x54bebe:0x103,_0x754845:0xd7,_0x2af688:0x52,_0x4aa543:0x8a,_0x334408:0x5ac,_0x18c0f3:0x586,_0xbbcb63:0xd4,_0xaa34f5:0x56,_0x435e63:0x7d,_0x26956b:0x90,_0x17425f:0x52,_0x16ef51:0x111,_0x1568db:0x10c,_0x3c73af:0x88,_0x1ee3dc:0x4c4,_0x52a816:0x5e0,_0x2c2673:0x536,_0xf9e61b:0x9e,_0x11258b:0x596},_0x3b4ecd={_0x52f688:0x15b},_0x2b5613={_0x21efcb:0x203,_0x189165:0x238},_0x31a8bd={_0x70e4d0:0x1},_0x45cb3a={_0x595880:0xc7};this[_0x33b14f(-0x7c,-_0x121c7a._0x1d6b82,-0xe3,-_0x121c7a._0x100bf5)]=_0x1bd097[_0x33b14f(-0x9a,-_0x121c7a._0x3151f3,-_0x121c7a._0x2cbe94,-_0x121c7a._0x594bac)]??createSessionId(),this['turnIndex']=0x0,this[_0x33b14f(-0x44,-_0x121c7a._0x54bebe,-0xa8,-_0x121c7a._0x754845)]=_0x1bd097['systemPrompt']??'';function _0x33b14f(_0x407da8,_0x213ab9,_0x2defda,_0x446895){return _0x39cbe5(_0x407da8-0x18f,_0x213ab9-0xde,_0x2defda- -_0x45cb3a._0x595880,_0x407da8);}this[_0x33b14f(0x9,-0x65,-_0x121c7a._0x2af688,-_0x121c7a._0x4aa543)]=(_0x1bd097[_0x31c023(0x5a1,0x612,_0x121c7a._0x334408,_0x121c7a._0x18c0f3)]??[])[_0x33b14f(-_0x121c7a._0xbbcb63,-0xa0,-0xa1,-_0x121c7a._0xaa34f5)](normalizeMessage),this[_0x33b14f(-_0x121c7a._0x435e63,-_0x121c7a._0x26956b,-0x5f,-_0x121c7a._0x17425f)]=createDefaultMessage(_0x1bd097['message']),this[_0x33b14f(-0xe5,-_0x121c7a._0x16ef51,-_0x121c7a._0x1568db,-0xe5)]=createAgentMetrics({'getContextWindowLimit':_0x1bd097['getContextWindowLimit']});const _0x576861=_0x1bd097[_0x33b14f(-0x34,-0xed,-_0x121c7a._0x3c73af,-0x67)],_0x3a6183=async(_0x2b7e25,_0x27bb9b)=>{function _0x1cfae3(_0x1268b0,_0x1f8dbf,_0xdeeb1a,_0x33d0d0){return _0x31c023(_0x1268b0-0xb,_0x1f8dbf-_0x31a8bd._0x70e4d0,_0x33d0d0- -0x2ba,_0xdeeb1a);}this[_0x1cfae3(0x212,_0x2b5613._0x21efcb,0x1db,_0x2b5613._0x189165)]['recordEvent'](_0x2b7e25),await _0x576861?.(_0x2b7e25,_0x27bb9b);},_0x1707f6=createInternalToolRuntime(_0x1bd097['tools']??[],{'onEvent':_0x3a6183,'onToolCall':_0x1bd097['onToolCall']});function _0x31c023(_0xc72975,_0x42dc47,_0x45768c,_0x533fdb){return _0x39cbe5(_0xc72975-0x10d,_0x42dc47-_0x3b4ecd._0x52f688,_0x45768c-0x537,_0x533fdb);}this[_0x31c023(_0x121c7a._0x1ee3dc,0x52a,0x52a,0x543)]={'registry':createRegistry(_0x1bd097),'chatModel':resolveChatModel(_0x1bd097),'toolRuntime':_0x1707f6,'askUser':_0x1bd097[_0x31c023(_0x121c7a._0x52a816,0x58d,0x57f,_0x121c7a._0x2c2673)],'setTopic':_0x1bd097['setTopic'],'onEvent':_0x3a6183,'sessionDir':_0x1bd097[_0x33b14f(-0x97,-0xea,-0x94,-_0x121c7a._0xf9e61b)],'outputFormat':_0x1bd097[_0x31c023(_0x121c7a._0x11258b,0x4e5,0x53a,0x4dd)]};}get[_0x39cbe5(0x27,0x7c,0x52,0x1f)](){const _0x4a7e99={_0x1894b2:0x11a},_0x56f3e5={_0x385ecc:0x10f};function _0x382c93(_0x39122b,_0x2974d1,_0x560f69,_0x4cd23a){return _0x39cbe5(_0x39122b-0x1d0,_0x2974d1-0x153,_0x39122b- -_0x56f3e5._0x385ecc,_0x560f69);}return this[_0x382c93(-0xf0,-0x15c,-0x12e,-_0x4a7e99._0x1894b2)];}['setTools'](_0x499756=[]){const _0x283e91={_0x4b48a2:0x438,_0x333e0e:0x53e,_0x50de2d:0x558,_0x500428:0x55a,_0x44da33:0x587,_0x39ede0:0x43d,_0x29397c:0x423,_0x3583c2:0x402},_0x1d2cee={_0x4a9394:0x1d0,_0x5867ab:0x4e,_0x4867e9:0x51d};function _0x54ac46(_0x175487,_0x45bdd6,_0x1f7efc,_0x1c1935){return _0x39cbe5(_0x175487-_0x1d2cee._0x4a9394,_0x45bdd6-_0x1d2cee._0x5867ab,_0x175487-_0x1d2cee._0x4867e9,_0x1f7efc);}function _0x22490a(_0x558048,_0x2ce4e7,_0x2bfb06,_0x3e148d){return _0x33f0a3(_0x2ce4e7,_0x2ce4e7-0x193,_0x2bfb06-0x16,_0x3e148d-0x354);}this[_0x22490a(_0x283e91._0x4b48a2,0x3d0,0x40e,0x3f9)][_0x54ac46(_0x283e91._0x333e0e,_0x283e91._0x50de2d,_0x283e91._0x500428,_0x283e91._0x44da33)][_0x22490a(0x3b9,_0x283e91._0x39ede0,_0x283e91._0x29397c,_0x283e91._0x3583c2)](_0x499756);}[_0x33f0a3(0xf9,0x9e,0xdb,0xfb)](){const _0x58da2e={_0x2c00df:0x63,_0x329723:0xb1},_0x190380={_0x980b59:0x7b},_0x2deb55={_0x1ad1b0:0x90,_0x454b5d:0x1b9};function _0x51a103(_0x2f7055,_0x11a356,_0x3f96dc,_0x5b7256){return _0x33f0a3(_0x3f96dc,_0x11a356-_0x2deb55._0x1ad1b0,_0x3f96dc-_0x2deb55._0x454b5d,_0x2f7055-0x173);}function _0x55be91(_0x2cc268,_0x507885,_0x6b2fc3,_0x114cfa){return _0x33f0a3(_0x2cc268,_0x507885-_0x190380._0x980b59,_0x6b2fc3-0x179,_0x507885- -0x14b);}return this[_0x51a103(0x218,0x24d,0x1d6,0x1d7)][_0x55be91(-0x7d,-0x78,-_0x58da2e._0x2c00df,-_0x58da2e._0x329723)]['listToolSchemas']();}['setSystemPrompt'](_0x303c43,_0x4c301f={}){const _0x2df634={_0x13008d:0x405,_0x999ac7:0x41b,_0x434129:0x471,_0x3e158a:0x4fb,_0x282acb:0x573,_0x5c1f2a:0x507},_0x5c6608={_0x2f4743:0x1b7,_0x39b9dc:0x3e0},_0x270d92={_0x452815:0x9f,_0x9f2c97:0x402};function _0x5d1bc7(_0x554124,_0x393ba1,_0x694019,_0x10f7e9){return _0x33f0a3(_0x10f7e9,_0x393ba1-0x110,_0x694019-_0x270d92._0x452815,_0x554124-_0x270d92._0x9f2c97);}function _0x4333d3(_0x305f63,_0x7a4206,_0x18e483,_0x3fac98){return _0x33f0a3(_0x305f63,_0x7a4206-_0x5c6608._0x2f4743,_0x18e483-0x145,_0x3fac98-_0x5c6608._0x39b9dc);}this['_systemPrompt']=_0x303c43,_0x4c301f[_0x4333d3(0x4a7,_0x2df634._0x13008d,_0x2df634._0x999ac7,_0x2df634._0x434129)]===!![]&&(this[_0x4333d3(_0x2df634._0x3e158a,0x4b9,_0x2df634._0x282acb,_0x2df634._0x5c1f2a)]=[],this['turnIndex']=0x0);}[_0x39cbe5(0x14,0x7,0x5a,0x9f)](_0x15a867){const _0x4eb4b6={_0x21368a:0x1e3,_0x20442a:0x22e,_0x59f597:0x1ec},_0x235e1c={_0x7d78f4:0xbb,_0x11fe33:0x24a};function _0x5ab62b(_0x3ff67a,_0x498e19,_0x588d23,_0xcd764e){return _0x39cbe5(_0x3ff67a-_0x235e1c._0x7d78f4,_0x498e19-0x168,_0x588d23-_0x235e1c._0x11fe33,_0x3ff67a);}this[_0x5ab62b(0x266,_0x4eb4b6._0x21368a,_0x4eb4b6._0x20442a,_0x4eb4b6._0x59f597)]=_0x15a867;}[_0x39cbe5(0x74,-0x10,0x4e,-0xe)](_0x676e97){this['deps']['chatModel']=_0x676e97;}async['send'](_0x57fce4=this['defaultMessage'],_0x3f4583={}){const _0x15d541={_0x44d92d:0x79,_0x130d4f:0x64,_0x3507a9:0x1cb,_0x4f4bc6:0x1ca,_0x5e55e8:0x266,_0x478716:0x1c8,_0xa6b31e:0x200,_0x50a6aa:0x1f4,_0x2e456d:0xc6,_0x2b581d:0x75,_0x1a87ff:0x5c,_0x380bcb:0x5,_0x360a6e:0x42,_0x4a2cab:0x2d,_0x4973c7:0x23b,_0x29963d:0x1da,_0x47b6c0:0x21e,_0x57083c:0x1fe,_0x2c55be:0x20c,_0x2a000c:0x9,_0x17be5f:0x1f,_0xc62e2d:0x1c5,_0x568ab0:0x1fe,_0x4552ec:0x19c,_0xacf889:0x12f,_0x194ea1:0x116,_0x4da4ae:0x12d},_0x419db8={_0x549fbf:0x1b5,_0x1eb8e9:0x12c},_0x58b07c={_0x4d283a:0x5};if(!_0x57fce4)throw new Error('Agent.send\x20requires\x20a\x20message\x20when\x20no\x20default\x20message\x20is\x20configured');function _0x45bd78(_0x36b0e2,_0x616f1a,_0x4392ad,_0x2d081a){return _0x33f0a3(_0x4392ad,_0x616f1a-_0x58b07c._0x4d283a,_0x4392ad-0xce,_0x2d081a-0xd7);}this[_0x442152(-0xbf,-_0x15d541._0x44d92d,-_0x15d541._0x130d4f,-0x23)]+=0x1;function _0x442152(_0x21d6da,_0x2cab07,_0x5dd795,_0x375ad7){return _0x33f0a3(_0x375ad7,_0x2cab07-0x2d,_0x5dd795-_0x419db8._0x549fbf,_0x2cab07- -_0x419db8._0x1eb8e9);}const _0x419f10=_0x3f4583[_0x45bd78(0x181,_0x15d541._0x3507a9,0x1a3,0x187)];try{const _0x4349e7=await runTurn({'sessionId':this['sessionId'],'turnId':createTurnId(this['turnIndex']),'streaming':_0x3f4583[_0x45bd78(_0x15d541._0x4f4bc6,_0x15d541._0x5e55e8,_0x15d541._0x478716,_0x15d541._0xa6b31e)],'signal':_0x3f4583['signal'],'system':this['systemPrompt'],'messages':this[_0x45bd78(_0x15d541._0x50a6aa,0x1f8,0x1b4,0x1fe)],'message':normalizeUserInput(_0x57fce4),..._0x419f10?{'drainSteering':async()=>(await _0x419f10())['map'](normalizeUserInput)}:{}},this[_0x442152(-_0x15d541._0x2e456d,-0x87,-_0x15d541._0x2b581d,-0xdb)]);return this[_0x442152(-_0x15d541._0x1a87ff,-_0x15d541._0x380bcb,-0x57,0x4a)]=_0x4349e7[_0x442152(-_0x15d541._0x360a6e,-_0x15d541._0x4a2cab,-0x3a,0x35)][_0x45bd78(_0x15d541._0x4973c7,_0x15d541._0x29963d,_0x15d541._0x47b6c0,_0x15d541._0x57083c)][_0x442152(-0x2e,-0x54,-0x3b,-0x13)](normalizeMessage),_0x4349e7;}catch(_0x519c7f){if(_0x519c7f instanceof TurnFailedError){this[_0x45bd78(_0x15d541._0x2c55be,0x1ca,0x232,0x1fe)]=synthesizeMissingToolResults(_0x519c7f[_0x442152(-_0x15d541._0x2a000c,-_0x15d541._0x4a2cab,-0x74,_0x15d541._0x17be5f)][_0x45bd78(0x246,_0x15d541._0xc62e2d,0x1e9,_0x15d541._0x568ab0)][_0x45bd78(0x211,_0x15d541._0x4552ec,0x1f1,0x1af)](normalizeMessage));throw _0x519c7f[_0x45bd78(_0x15d541._0xacf889,_0x15d541._0x194ea1,_0x15d541._0x4da4ae,0x13f)];}throw _0x519c7f;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
1
+ (function(_0xb6caea,_0x4d8493){const _0x1180d0={_0x4d1280:0x3a6,_0x597edb:0x2f5,_0x1d9a7e:0x190,_0x98aba:0x137,_0x1bbebc:0x19d,_0x257fb6:0xe8,_0x268bf4:0x105,_0x1adb88:0xda,_0x2e73d1:0x88,_0x142116:0x1ed,_0x32c6c7:0x143,_0x5e3a7a:0x112,_0x5524ee:0x117,_0x320edf:0x187,_0x4b9873:0x13e,_0xeb5b02:0x1e1,_0x397646:0x205,_0x30d3a7:0x322,_0x156adf:0x2f4,_0x36ef94:0xa2},_0x2a7197={_0x85b282:0x22a};function _0x36aea1(_0x38410b,_0x236946,_0x71ede1,_0x57468a){return _0x314c(_0x71ede1- -_0x2a7197._0x85b282,_0x236946);}const _0x1c7586=_0xb6caea();function _0x14f59d(_0x508a10,_0x501744,_0x50becf,_0x1eb6fe){return _0x314c(_0x50becf-0x21e,_0x1eb6fe);}while(!![]){try{const _0x5f2fd7=-parseInt(_0x14f59d(_0x1180d0._0x4d1280,0x343,0x343,_0x1180d0._0x597edb))/0x1+parseInt(_0x36aea1(-0x143,-_0x1180d0._0x1d9a7e,-0x149,-_0x1180d0._0x98aba))/0x2*(parseInt(_0x36aea1(-0x194,-_0x1180d0._0x1bbebc,-0x14b,-0xff))/0x3)+-parseInt(_0x36aea1(-0xc6,-_0x1180d0._0x257fb6,-0xe7,-_0x1180d0._0x268bf4))/0x4*(parseInt(_0x36aea1(-0x136,-_0x1180d0._0x1adb88,-0xe4,-_0x1180d0._0x2e73d1))/0x5)+-parseInt(_0x36aea1(-0x1df,-0x1d8,-0x19a,-_0x1180d0._0x142116))/0x6+-parseInt(_0x36aea1(-_0x1180d0._0x32c6c7,-0xad,-0xda,-_0x1180d0._0x5e3a7a))/0x7+-parseInt(_0x36aea1(-_0x1180d0._0x5524ee,-_0x1180d0._0x320edf,-_0x1180d0._0x4b9873,-0x192))/0x8*(parseInt(_0x36aea1(-_0x1180d0._0xeb5b02,-0x1f0,-0x1a5,-_0x1180d0._0x397646))/0x9)+-parseInt(_0x14f59d(_0x1180d0._0x30d3a7,_0x1180d0._0x156adf,0x2ec,0x2e7))/0xa*(-parseInt(_0x36aea1(-_0x1180d0._0x36ef94,-_0x1180d0._0x2e73d1,-0xd8,-0xd4))/0xb);if(_0x5f2fd7===_0x4d8493)break;else _0x1c7586['push'](_0x1c7586['shift']());}catch(_0x67a3d0){_0x1c7586['push'](_0x1c7586['shift']());}}}(_0x5982,0xb9f56));import{withEstimatedModelCost}from'./chunk-GAZGO6N7.js';function _0x4845a1(_0xa1512a,_0x5e7314,_0x1269eb,_0x13199e){return _0x314c(_0x13199e-0x33e,_0xa1512a);}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(_0x424468){const _0x424130={_0x57bfa6:0x1e2,_0x3c76a7:0x190};function _0x3004b3(_0x5b9301,_0x3d4fc3,_0x3da2d6,_0x33c98a){return _0x314c(_0x5b9301- -0x2a7,_0x33c98a);}return typeof _0x424468===_0x3004b3(-_0x424130._0x57bfa6,-0x204,-_0x424130._0x3c76a7,-0x1b6)&&_0x424468!==null&&!Array['isArray'](_0x424468);}function isToolOutputEnvelope(_0x4eadb8){const _0x32597a={_0x10f913:0x57,_0xe2076c:0x5b,_0x4da847:0x98},_0x59a725={_0x42a03f:0xcf};if(typeof _0x4eadb8!==_0x1f368f(-0xa,0x58,_0x32597a._0x10f913,_0x32597a._0xe2076c)||_0x4eadb8===null||Array['isArray'](_0x4eadb8))return![];if(typeof _0x4eadb8['output']!==_0x2c3877(_0x32597a._0x4da847,0x32,0x87,0xcd))return![];function _0x1f368f(_0x92c08b,_0x21c52c,_0x1f5c47,_0x52b65e){return _0x314c(_0x92c08b- -_0x59a725._0x42a03f,_0x21c52c);}const _0x346b66=_0x4eadb8['structured'];function _0x2c3877(_0x3bf7fe,_0x2abd29,_0x5772b3,_0x483296){return _0x314c(_0x3bf7fe- -0x1e,_0x5772b3);}return _0x346b66===void 0x0||isJsonObject(_0x346b66);}function validateAgainstSchema(_0x1eefd9,_0x19e09e,_0x5e81a8){const _0x5dc9b7={_0x4d6714:0xed,_0x2c8d9a:0x291,_0x148e5e:0x2e3,_0x18681d:0x263,_0x573ab6:0x27a,_0x5379fb:0x24f,_0x39a9e5:0x2be,_0xbbf6f9:0x27f,_0x59eac5:0x220,_0x21a511:0x1c6,_0x4317cf:0x176,_0x317759:0x123,_0x558f7d:0xee,_0x5b97f1:0xf9,_0x2ae01c:0x1d8,_0x2d43e3:0x1dd,_0x97cba:0xe8,_0x13eb62:0x255,_0x1ab0b3:0x258,_0x498154:0x28e,_0x56ccdd:0x24c,_0x31d63c:0x25d,_0x18a5d8:0x1b8,_0x4d9c18:0x1dd,_0xbba20a:0x1fc,_0x56a426:0x1c0,_0x477b5c:0xd3,_0x60a409:0xef,_0x2a00f3:0xdd,_0x257c14:0x209,_0x3d2eab:0x21c,_0x2659cb:0x17c,_0x51d21c:0x1eb,_0x1deb09:0x58,_0x4001a9:0xae,_0x229ff4:0x1a8,_0x317589:0x150,_0x1e8c6b:0x163,_0x3de5ac:0x20a,_0x305f8d:0x287,_0xe23770:0x257,_0x4bfc0d:0x22c,_0x441eaa:0x1ef,_0x1deaba:0x283,_0x1c38f3:0x25c,_0x15bc32:0x107,_0x263268:0x1bc,_0x32596f:0x98,_0x340861:0xf4,_0x1bb40c:0x96,_0x4dce6d:0xd3,_0x5496e6:0x247,_0x5f11bd:0x17e,_0x40afc8:0x1c8,_0x4d9d54:0x180,_0x228183:0x1f1,_0x521eff:0x218,_0x1b7228:0x300,_0x61562f:0x29b,_0x487db5:0x21f,_0x5157ab:0x1bd},_0x53f479={_0x2af517:0x302,_0x34a0be:0x252},_0x4efe8c={_0x4c99c7:0x321};function _0xc4ea1d(_0x2ff487,_0x2e5ee3,_0xe59160,_0x4e523a){return _0x314c(_0x4e523a-0x1f,_0xe59160);}function _0x196eb3(_0x2e2fd2,_0x241993,_0x5c9539,_0x1caf5b){return _0x314c(_0x1caf5b- -_0x4efe8c._0x4c99c7,_0x2e2fd2);}if(_0xc4ea1d(0x71,_0x5dc9b7._0x4d6714,0x7d,0xc6)in _0x5e81a8){const _0x5a7d0e=_0x5e81a8[_0x196eb3(-_0x5dc9b7._0x2c8d9a,-_0x5dc9b7._0x148e5e,-_0x5dc9b7._0x18681d,-_0x5dc9b7._0x573ab6)][_0x196eb3(-0x2cb,-_0x5dc9b7._0x5379fb,-_0x5dc9b7._0x39a9e5,-0x28d)](_0x378698=>{try{return validateAgainstSchema(_0x1eefd9,_0x19e09e,_0x378698),!![];}catch{return![];}});if(!_0x5a7d0e)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1eefd9+_0x196eb3(-0x272,-_0x5dc9b7._0xbbf6f9,-0x1ef,-_0x5dc9b7._0x59eac5));return;}switch(_0x5e81a8[_0xc4ea1d(_0x5dc9b7._0x21a511,0x187,_0x5dc9b7._0x4317cf,0x173)]){case _0xc4ea1d(0x118,_0x5dc9b7._0x317759,0x104,0xd5):if(typeof _0x19e09e!==_0xc4ea1d(_0x5dc9b7._0x558f7d,_0x5dc9b7._0x5b97f1,0xf6,0xd5))throw new Error(_0x196eb3(-0x19e,-0x19e,-_0x5dc9b7._0x2ae01c,-_0x5dc9b7._0x2d43e3)+_0x1eefd9+':\x20expected\x20string');if(_0x5e81a8[_0xc4ea1d(0x149,0xfb,0xc1,_0x5dc9b7._0x97cba)]!==void 0x0&&!_0x5e81a8[_0x196eb3(-0x222,-_0x5dc9b7._0x13eb62,-0x263,-_0x5dc9b7._0x1ab0b3)][_0x196eb3(-_0x5dc9b7._0x498154,-0x224,-_0x5dc9b7._0x56ccdd,-_0x5dc9b7._0x31d63c)](_0x19e09e))throw new Error(_0x196eb3(-_0x5dc9b7._0x18a5d8,-0x232,-0x1f3,-_0x5dc9b7._0x4d9c18)+_0x1eefd9+_0x196eb3(-0x205,-_0x5dc9b7._0xbba20a,-0x27a,-0x24b)+_0x5e81a8['enum'][_0x196eb3(-0x19e,-0x197,-0x188,-_0x5dc9b7._0x56a426)](',\x20'));return;case'number':if(typeof _0x19e09e!=='number')throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1eefd9+':\x20expected\x20number');return;case _0xc4ea1d(0x125,_0x5dc9b7._0x477b5c,_0x5dc9b7._0x60a409,_0x5dc9b7._0x2a00f3):if(typeof _0x19e09e!=='boolean')throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1eefd9+_0x196eb3(-0x211,-0x21f,-0x260,-_0x5dc9b7._0x257c14));return;case _0x196eb3(-_0x5dc9b7._0x3d2eab,-_0x5dc9b7._0x2659cb,-0x220,-_0x5dc9b7._0x51d21c):if(!Array[_0xc4ea1d(0xc4,0x42,_0x5dc9b7._0x1deb09,_0x5dc9b7._0x4001a9)](_0x19e09e))throw new Error(_0xc4ea1d(0x171,_0x5dc9b7._0x229ff4,_0x5dc9b7._0x317589,_0x5dc9b7._0x1e8c6b)+_0x1eefd9+_0x196eb3(-_0x5dc9b7._0x3de5ac,-_0x5dc9b7._0x305f8d,-_0x5dc9b7._0xe23770,-_0x5dc9b7._0x4bfc0d));_0x19e09e['forEach']((_0x38bf80,_0x59b60b)=>{function _0x491f61(_0x343365,_0x1ac863,_0x4ec6da,_0x59d3f7){return _0x196eb3(_0x1ac863,_0x1ac863-0x139,_0x4ec6da-0xbe,_0x59d3f7-0x51f);}validateAgainstSchema(_0x1eefd9+'['+_0x59b60b+']',_0x38bf80,_0x5e81a8[_0x491f61(0x29c,_0x53f479._0x2af517,_0x53f479._0x34a0be,0x2a9)]);});return;case _0x196eb3(-_0x5dc9b7._0x441eaa,-_0x5dc9b7._0x1deaba,-0x234,-_0x5dc9b7._0x1c38f3):if(!isJsonObject(_0x19e09e))throw new Error(_0xc4ea1d(0x162,_0x5dc9b7._0x15bc32,_0x5dc9b7._0x263268,_0x5dc9b7._0x1e8c6b)+_0x1eefd9+_0xc4ea1d(0x6d,0xec,_0x5dc9b7._0x32596f,0xce));for(const _0x25442d of _0x5e81a8[_0xc4ea1d(0xcc,0xfe,0x111,_0x5dc9b7._0x340861)]??[]){if(!Object[_0xc4ea1d(0x128,_0x5dc9b7._0x1bb40c,0x118,_0x5dc9b7._0x4dce6d)](_0x19e09e,_0x25442d))throw new Error(_0x196eb3(-0x187,-0x214,-_0x5dc9b7._0x5496e6,-_0x5dc9b7._0x4d9c18)+_0x1eefd9+_0x196eb3(-_0x5dc9b7._0x5f11bd,-_0x5dc9b7._0x40afc8,-_0x5dc9b7._0x4d9d54,-_0x5dc9b7._0x228183)+_0x25442d+'\x22');}if(_0x5e81a8['additionalProperties']===![]){const _0x35e450=Object[_0x196eb3(-0x202,-0x26b,-_0x5dc9b7._0x229ff4,-_0x5dc9b7._0x521eff)](_0x19e09e)[_0x196eb3(-0x274,-_0x5dc9b7._0x1b7228,-_0x5dc9b7._0x61562f,-0x29a)](_0xbe953d=>!Object[_0x196eb3(-0x221,-0x263,-0x2cb,-0x26d)](_0x5e81a8[_0x196eb3(-0x21b,-0x1b5,-0x270,-0x203)],_0xbe953d));if(_0x35e450!==void 0x0)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1eefd9+_0x196eb3(-0x228,-0x2b1,-0x211,-0x25e)+_0x35e450+'\x22');}for(const [_0x31ddb3,_0x1f7f84]of Object[_0x196eb3(-0x1b3,-_0x5dc9b7._0x487db5,-0x230,-_0x5dc9b7._0x5157ab)](_0x5e81a8['properties'])){Object['hasOwn'](_0x19e09e,_0x31ddb3)&&validateAgainstSchema(_0x1eefd9+'.'+_0x31ddb3,_0x19e09e[_0x31ddb3],_0x1f7f84);}}}function normalizeToolOutputValue(_0x12a26e){const _0x124d86={_0x4a66b8:0x179,_0x56d880:0x145,_0x216bcd:0x318,_0x5611f6:0x10b,_0x58676e:0x1f3,_0x5edbef:0x174,_0x28efd1:0x15e,_0x2f44cf:0x155,_0xf01b24:0x17c,_0x992faf:0x392,_0x3c5df2:0x377,_0x309478:0x300,_0x3a4c44:0x352},_0x18868f={_0x108c67:0x20b},_0x292ef4={_0x3db19b:0x272};if(isToolOutputEnvelope(_0x12a26e))return{'output':_0x12a26e['output'],'structured':_0x12a26e['structured']??{'value':_0x12a26e[_0x4a91ff(-_0x124d86._0x4a66b8,-0x180,-_0x124d86._0x56d880,-0x167)]},..._0x12a26e[_0x143a40(0x3b2,0x3a4,_0x124d86._0x216bcd,0x372)]!==void 0x0?{'content':_0x12a26e[_0x4a91ff(-0xeb,-_0x124d86._0x5611f6,-0xf0,-0x17f)]}:{}};function _0x4a91ff(_0x1b873c,_0x155bdb,_0x933590,_0x163706){return _0x314c(_0x155bdb- -_0x292ef4._0x3db19b,_0x163706);}if(typeof _0x12a26e===_0x4a91ff(-_0x124d86._0x58676e,-0x1bc,-_0x124d86._0x5edbef,-_0x124d86._0x28efd1))return{'output':_0x12a26e,'structured':{'value':_0x12a26e}};if(typeof _0x12a26e===_0x4a91ff(-0x207,-0x1ad,-_0x124d86._0x2f44cf,-0x1d0)&&_0x12a26e!==null&&!Array['isArray'](_0x12a26e))return{'output':JSON[_0x4a91ff(-0x185,-0x12b,-_0x124d86._0xf01b24,-0xdc)](_0x12a26e,null,0x2),'structured':_0x12a26e};function _0x143a40(_0x26ea56,_0x2c8605,_0x2cf6c6,_0x493bce){return _0x314c(_0x493bce-_0x18868f._0x108c67,_0x2c8605);}return{'output':JSON[_0x143a40(_0x124d86._0x992faf,_0x124d86._0x3c5df2,_0x124d86._0x309478,_0x124d86._0x3a4c44)](_0x12a26e,null,0x2),'structured':{'value':_0x12a26e}};}function createToolOutput(_0x38cf2a,_0x3bab69={'value':_0x38cf2a},_0x121c9f){return{'output':_0x38cf2a,'structured':_0x3bab69,..._0x121c9f!==void 0x0?{'content':_0x121c9f}:{}};}var ToolExecutionError=class extends Error{[_0xec6dab(0x3af,0x3b2,0x3bb,0x378)];constructor(_0x21f9fa,_0x4554ff={}){const _0x4e6b7e={_0x475a97:0x233,_0x147b20:0x178,_0x48ab55:0x1da,_0x5fc27c:0x1fb},_0x2a2924={_0x11a390:0x1ba},_0x47d442={_0x518672:0x197,_0x446996:0x40f};super(_0x21f9fa);function _0x42b01f(_0x5ea079,_0x933d5d,_0x5d2550,_0x1b9757){return _0xec6dab(_0x5ea079-_0x47d442._0x518672,_0x933d5d-0xc5,_0x5ea079- -_0x47d442._0x446996,_0x933d5d);}this['name']=_0xdf560c(-0x1c2,-0x1fa,-_0x4e6b7e._0x475a97,-_0x4e6b7e._0x147b20);function _0xdf560c(_0x17214e,_0x374acc,_0x3d8fd9,_0x2214d8){return _0xec6dab(_0x17214e-_0x2a2924._0x11a390,_0x374acc-0x131,_0x17214e- -0x545,_0x3d8fd9);}this[_0xdf560c(-0x18a,-0x121,-_0x4e6b7e._0x48ab55,-_0x4e6b7e._0x5fc27c)]=_0x4554ff;}};function defineTool(_0x17f0e2){return _0x17f0e2;}function resolveToolPermissionClass(_0x33d5d1){const _0x1def0c={_0x2bd4c2:0xa9,_0x2e12ae:0xed,_0x284477:0xfb,_0x2f80dc:0xa3,_0x2fd2f3:0x24e,_0x27f6e5:0x258,_0x48313f:0x248,_0x334dd6:0x34e,_0x414720:0x302,_0x55660f:0x279,_0x42b6db:0x10c,_0xd873ef:0x132,_0x30ad97:0x152},_0x1466a4={_0x3e621d:0x1a9,_0x29355d:0x1da},_0x356ad3={_0x5e1262:0x159,_0x55e7b5:0x5b,_0x143cb3:0x697};function _0x559d6d(_0x3c36f8,_0x55ad2a,_0x2b7aab,_0x156805){return _0xec6dab(_0x3c36f8-_0x356ad3._0x5e1262,_0x55ad2a-_0x356ad3._0x55e7b5,_0x3c36f8- -_0x356ad3._0x143cb3,_0x2b7aab);}function _0x401d3d(_0x2dbbea,_0x316e50,_0x214526,_0x3e4b4e){return _0xec6dab(_0x2dbbea-_0x1466a4._0x3e621d,_0x316e50-_0x1466a4._0x29355d,_0x214526- -0x29d,_0x3e4b4e);}const _0x3cd591=_0x33d5d1?.[_0x401d3d(_0x1def0c._0x2bd4c2,_0x1def0c._0x2e12ae,_0x1def0c._0x284477,_0x1def0c._0x2f80dc)];if(_0x3cd591===_0x559d6d(-0x293,-_0x1def0c._0x2fd2f3,-_0x1def0c._0x27f6e5,-_0x1def0c._0x48313f)||_0x3cd591===_0x559d6d(-0x2e6,-_0x1def0c._0x334dd6,-_0x1def0c._0x414720,-_0x1def0c._0x55660f)||_0x3cd591==='always-confirm')return _0x3cd591;return _0x401d3d(_0x1def0c._0x42b6db,_0x1def0c._0xd873ef,_0x1def0c._0x30ad97,0x191);}var ToolRegistry=class{[_0x4845a1(0x46c,0x3ec,0x451,0x404)]=new Map();constructor(_0xa51394=[]){const _0x1276f0={_0x3d3a65:0x378,_0x75624:0x38a,_0x23bac5:0x393},_0x408bfe={_0xfd529a:0x12d,_0x58052d:0x50};function _0x591f5b(_0x58d52f,_0x1f7b0e,_0x3e6b59,_0x5a41cb){return _0xec6dab(_0x58d52f-0x16,_0x1f7b0e-_0x408bfe._0xfd529a,_0x1f7b0e-_0x408bfe._0x58052d,_0x3e6b59);}for(const _0x1aeac9 of _0xa51394){this[_0x591f5b(_0x1276f0._0x3d3a65,0x3a0,_0x1276f0._0x75624,_0x1276f0._0x23bac5)](_0x1aeac9);}}['register'](_0x561a76){const _0x5a3293={_0x26f734:0x456,_0x396860:0x48d,_0x2bf2b7:0x4bf,_0xaaafd:0x409},_0x2c7786={_0x1f2a7f:0x192,_0x23ce01:0xdb};function _0x12cc86(_0x54b586,_0x285c91,_0x4101c5,_0x14a014){return _0xec6dab(_0x54b586-0xb8,_0x285c91-0x1,_0x4101c5- -0x367,_0x285c91);}function _0x27897e(_0x3ba99f,_0x2f24b2,_0x4477dd,_0x26def0){return _0xec6dab(_0x3ba99f-_0x2c7786._0x1f2a7f,_0x2f24b2-0x187,_0x26def0-_0x2c7786._0x23ce01,_0x2f24b2);}this['toolsByName'][_0x27897e(_0x5a3293._0x26f734,0x527,_0x5a3293._0x396860,_0x5a3293._0x2bf2b7)](_0x561a76[_0x27897e(_0x5a3293._0xaaafd,0x49b,0x463,0x463)],_0x561a76);}[_0xec6dab(0x36f,0x35e,0x38f,0x3c3)](_0x492662){const _0x236e96={_0x3e2401:0x300,_0xba0731:0x316,_0x2c3d04:0x2f5},_0x23da63={_0x378038:0x1b6};function _0xffd302(_0x416402,_0x5b3c53,_0x5b229f,_0xd1e2b6){return _0x4845a1(_0x416402,_0x5b3c53-0x1e4,_0x5b229f-_0x23da63._0x378038,_0x5b229f- -0x6f9);}return this[_0xffd302(-_0x236e96._0x3e2401,-_0x236e96._0xba0731,-_0x236e96._0x2c3d04,-0x2d3)]['get'](_0x492662);}[_0xec6dab(0x365,0x372,0x389,0x378)](){const _0x3704d0={_0x8f05a3:0x379,_0x1eee24:0x37b},_0x5fdb93={_0x19aacb:0x1bf};function _0x44d76c(_0x2161df,_0x52cd2d,_0x594045,_0x5e88dc){return _0xec6dab(_0x2161df-0xa5,_0x52cd2d-_0x5fdb93._0x19aacb,_0x2161df- -0x14,_0x5e88dc);}function _0x4ce939(_0x524608,_0x38c6ff,_0x55ebe2,_0x476966){return _0xec6dab(_0x524608-0x18,_0x38c6ff-0xa4,_0x38c6ff- -0x594,_0x476966);}return[...this[_0x44d76c(_0x3704d0._0x8f05a3,0x3d1,0x3c7,0x31a)][_0x44d76c(0x3a3,_0x3704d0._0x1eee24,0x3db,0x38d)]()];}[_0x4845a1(0x3b2,0x37d,0x41e,0x3d5)](){const _0x202667={_0x21d523:0x15c,_0x4b53e5:0x2b6,_0x59da26:0x222},_0x41bc9f={_0x150656:0x252,_0x32c21d:0x274,_0x4a5350:0x494,_0x1f0339:0x3d0},_0x439085={_0x539e43:0x6d2,_0xefc0b1:0x75},_0x43e6ca={_0x4c174a:0x13d,_0x4aa5c4:0x92},_0x53a0f0={_0x37e9be:0xd1,_0x1d5a49:0x163};function _0x57e0e4(_0x9f5ea1,_0x519f0d,_0x191fb1,_0x4bc618){return _0xec6dab(_0x9f5ea1-_0x53a0f0._0x37e9be,_0x519f0d-_0x53a0f0._0x1d5a49,_0x9f5ea1- -0x636,_0x4bc618);}function _0x24e582(_0x37206d,_0x348059,_0x5c7b0f,_0x437f27){return _0xec6dab(_0x37206d-_0x43e6ca._0x4c174a,_0x348059-_0x43e6ca._0x4aa5c4,_0x5c7b0f- -0x263,_0x37206d);}return this[_0x24e582(0xde,_0x202667._0x21d523,0x126,0x10d)]()[_0x57e0e4(-0x24d,-_0x202667._0x4b53e5,-_0x202667._0x4b53e5,-_0x202667._0x59da26)](_0x3ab8d9=>{const _0x25db23={_0x118ac3:0x59};function _0x542cae(_0xbd78fb,_0x3e4af3,_0x31014e,_0x12817a){return _0x57e0e4(_0x31014e-_0x439085._0x539e43,_0x3e4af3-_0x439085._0xefc0b1,_0x31014e-0xc2,_0xbd78fb);}function _0x56d941(_0x53eae9,_0x2ec085,_0x4dc5f4,_0x392336){return _0x24e582(_0x392336,_0x2ec085-_0x25db23._0x118ac3,_0x2ec085- -0x377,_0x392336-0x53);}return{'name':_0x3ab8d9[_0x56d941(-0x255,-_0x41bc9f._0x150656,-_0x41bc9f._0x32c21d,-0x1dc)],'description':_0x3ab8d9[_0x542cae(_0x41bc9f._0x4a5350,0x459,0x448,0x445)],'input_schema':_0x3ab8d9[_0x542cae(0x3d8,_0x41bc9f._0x1f0339,0x3ee,0x404)]};});}};function validateToolInput(_0x35ccd0,_0x259225){const _0x493011={_0x290cce:0x3eb},_0x2c20be={_0x3c0562:0x1a2};validateAgainstSchema(_0xdfef94(_0x493011._0x290cce,0x3f4,0x3a3,0x41c),_0x35ccd0,_0x259225);function _0xdfef94(_0x451e34,_0x5f1387,_0x3aee5d,_0xe23735){return _0x4845a1(_0x3aee5d,_0x5f1387-0x56,_0x3aee5d-_0x2c20be._0x3c0562,_0x5f1387- -0x89);}return _0x35ccd0;}function deriveFinalToolOutput(_0x5b6c83){const _0x93e8ab={_0x4674d3:0x2df,_0x19c211:0x2c6,_0x525069:0xb8,_0x113c51:0xbf,_0x1cd59d:0x208,_0x30ec2e:0x260,_0x15695b:0x251,_0x58b832:0x13b,_0x807364:0xf0,_0x49382d:0x12e,_0x4670d7:0x280,_0xa4f062:0x243},_0x3a553b={_0x12ecda:0xd2,_0x535698:0xda,_0x4b8bcc:0x67f},_0x115684={_0x2c71cb:0x1a6,_0x498820:0x1f4,_0x39673e:0x343};function _0x109788(_0x4f9551,_0x190472,_0x14a97e,_0x48f562){return _0x4845a1(_0x14a97e,_0x190472-_0x115684._0x2c71cb,_0x14a97e-_0x115684._0x498820,_0x4f9551- -_0x115684._0x39673e);}function _0x975d6f(_0x3e0b85,_0x287b33,_0x2cb78f,_0x44f611){return _0xec6dab(_0x3e0b85-_0x3a553b._0x12ecda,_0x287b33-_0x3a553b._0x535698,_0x44f611- -_0x3a553b._0x4b8bcc,_0x3e0b85);}if(_0x5b6c83[_0x975d6f(-_0x93e8ab._0x4674d3,-0x27a,-0x245,-0x26c)]===0x0)return{'output':'','structured':{}};if(_0x5b6c83['length']===0x1)return{'output':_0x5b6c83[0x0][_0x975d6f(-0x273,-0x30a,-0x2e6,-_0x93e8ab._0x19c211)],'structured':_0x5b6c83[0x0][_0x109788(0xef,_0x93e8ab._0x525069,0x95,_0x93e8ab._0x113c51)],..._0x5b6c83[0x0][_0x975d6f(-_0x93e8ab._0x1cd59d,-0x26f,-_0x93e8ab._0x30ec2e,-0x251)]!==void 0x0?{'content':_0x5b6c83[0x0][_0x975d6f(-0x253,-0x220,-0x239,-_0x93e8ab._0x15695b)]}:{}};const _0x2deb9a=_0x5b6c83['filter'](_0x55ad49=>_0x55ad49[_0x109788(0x162,0xfd,0x113,0x10b)]!==void 0x0);return{'output':_0x5b6c83[_0x109788(0x11d,_0x93e8ab._0x58b832,_0x93e8ab._0x807364,_0x93e8ab._0x49382d)](_0x5e2da1=>_0x5e2da1[_0x109788(0xed,0xf3,0xfb,0xa7)])[_0x975d6f(-_0x93e8ab._0x4670d7,-_0x93e8ab._0xa4f062,-0x217,-0x257)](''),'structured':{'chunks':_0x5b6c83['map'](_0x71abba=>_0x71abba[_0x109788(0xef,0xec,0xc7,0x121)])},..._0x2deb9a['length']===0x1?{'content':_0x2deb9a[0x0]['content']}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x1df502,_0x50dae1,_0x34fe36,_0x11498a=[]){const _0x4ed1e4={_0x383448:0x25,_0x1f9e3d:0xd3,_0x37bf97:0x3f,_0x5e80f1:0x6f,_0x543527:0x53,_0xe52b6a:0xd,_0x5118cb:0x3a},_0x316ce4={_0x20162d:0x1e5,_0x2396aa:0x573};function _0x32b474(_0x401157,_0x2074ff,_0x16d3af,_0x54fb6a){return _0x4845a1(_0x401157,_0x2074ff-_0x316ce4._0x20162d,_0x16d3af-0x7f,_0x16d3af- -_0x316ce4._0x2396aa);}function _0x44e97e(_0x360004,_0x5de3f6,_0x24d379,_0x43d4a4){return _0xec6dab(_0x360004-0xce,_0x5de3f6-0x18f,_0x360004- -0x305,_0x43d4a4);}return{'callId':_0x1df502['id'],'toolName':_0x1df502[_0x44e97e(0x83,_0x4ed1e4._0x383448,_0x4ed1e4._0x1f9e3d,_0x4ed1e4._0x37bf97)],'status':_0x44e97e(_0x4ed1e4._0x5e80f1,_0x4ed1e4._0x543527,_0x4ed1e4._0xe52b6a,_0x4ed1e4._0x5118cb),'output':_0x50dae1,'structured':_0x34fe36,'chunks':_0x11498a,'meta':createToolMeta()};}function createRejectedToolResult(_0x42c711,_0x1dfc71){const _0x24e0ac={_0x56d42a:0x3,_0x51e53f:0x47e,_0x19049c:0x6a,_0xc09db4:0x17,_0x1b4bc9:0x3f,_0x2b0302:0xd1,_0x343854:0x7,_0x4fcc21:0x22,_0x35919d:0x7c,_0x41220b:0x57,_0x290053:0x7f,_0x206a09:0x5d},_0x4dea4e={_0x3da611:0x2e};function _0x446dcd(_0x2b906b,_0x5a2e74,_0x478a7c,_0x5e0097){return _0x4845a1(_0x478a7c,_0x5a2e74-0x14b,_0x478a7c-0xd6,_0x5e0097- -0x43e);}function _0x2b862d(_0x2447bb,_0x5c15b2,_0x2a2f29,_0x3b6ace){return _0x4845a1(_0x2447bb,_0x5c15b2-_0x4dea4e._0x3da611,_0x2a2f29-0x171,_0x3b6ace- -0x35);}const _0x235181=_0x1dfc71?.[_0x446dcd(0x58,0xc3,-_0x24e0ac._0x56d42a,0x5d)]()[_0x2b862d(0x3e2,0x493,_0x24e0ac._0x51e53f,0x455)]?_0x1dfc71:_0x446dcd(0x28,0x17,-_0x24e0ac._0x19049c,-_0x24e0ac._0xc09db4)+_0x42c711[_0x446dcd(-0x6a,-0x59,-0x19,-_0x24e0ac._0x1b4bc9)];return createErrorToolResult(_0x42c711,_0x235181,{'error':_0x446dcd(-_0x24e0ac._0x2b0302,-_0x24e0ac._0x343854,-_0x24e0ac._0x4fcc21,-_0x24e0ac._0x35919d),..._0x1dfc71?.[_0x446dcd(_0x24e0ac._0x41220b,0x55,_0x24e0ac._0x290053,_0x24e0ac._0x206a09)]()['length']?{'reason':_0x1dfc71}:{}});}function _0xec6dab(_0x4e894f,_0x2caa9a,_0xf6e043,_0x5a6c6c){const _0x4a0b82={_0x40af7f:0x2c7};return _0x314c(_0xf6e043-_0x4a0b82._0x40af7f,_0x5a6c6c);}function createAbortedToolResult(_0x38b4f3,_0x25e765,_0x1d0cac=[]){const _0x9190ac={_0x4859f2:0xff,_0x17bd17:0xe2,_0x2bdda2:0xae},_0x181de6=toAbortError(_0x25e765);function _0x1d6e07(_0x3b7726,_0xf5a0ed,_0x18f09d,_0x2c374){return _0x4845a1(_0xf5a0ed,_0xf5a0ed-0x15c,_0x18f09d-0x79,_0x2c374- -0x3bc);}return createErrorToolResult(_0x38b4f3,_0x181de6['message'],{'error':_0x181de6[_0x1d6e07(_0x9190ac._0x4859f2,_0x9190ac._0x17bd17,0xba,_0x9190ac._0x2bdda2)],'aborted':!![]},_0x1d0cac);}function _0x5982(){const _0x15ca1b=['Aw5KzxG','CMv0DxjU','mtHYthj2DvC','zMLSDgvY','ndiZmJK4wvj2BePJ','CNvUvhjHBNnMB3jTzxjZ','y29TCgXLDgu','C3rYzwfT','zgvZy3jPChrPB24','zhjHAw5tDgvLCMLUzW','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','zMLUywXFBwvZC2fNzq','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','D3jPDgu','ywjVCNq','mtGWmdmYDMLduufO','Bwv0CMLJCW','C3rHz2u','Aw5WDxruB2TLBNm','DMfSDwvZ','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','B3v0Chv0','BM93','C3rYDwn0DxjLza','oIbLEhbLy3rLzcbHCNjHEq','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','Dg90ywXnB2rLBfrPBwvnCW','DxnLCL9TzxnZywDL','CMfUzg9T','BMv4Da','DhvYBL9JB21WBgv0zq','zxHLy3v0zq','Dg9VBf91C2vFy2H1BMS','Aw50zxjUywXmAwzLy3LJBgu','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','ChjVDMLKzxjtDgf0zq','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','A2LUza','ywz0zxjuDxjUq29TCgXLDgu','CMvNAxn0CNK','yxnZAxn0yw50x2nODw5R','ywz0zxjnB2rLBfjLC3bVBNnL','Bw9KzwXFCMvZCg9UC2u','C3LZDgvT','A2v5CW','C2v0q2HHDe1VzgvS','Dg90ywXuB2TLBNm','B3v0Chv0rM9YBwf0','Dg9VBhm','DgHLBG','C3rYzwfTAw5N','Dg9VBf91C2vFzgvSDge','CNvU','C3LZDgvTuhjVBxb0','Dg90ywXdB3n0vxnKvgLJA3m','C2v0u2vZC2LVBKLK','Bw9KzwXuAw1Ltxm','Dg9VBf9Yzxn1Bhq','CMvWB3j0zwrdB3n0','oIbLEhbLy3rLzcbIB29SzwfU','CMvQzwn0','DhvYBKnVBxbSzxrLzef0','DxnLCG','yMvMB3jLtw9KzwXszxf1zxn0','C2v0','ChjVCgvYDgLLCW','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','zg9Uzq','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','BwfW','ywXS','B3jKzxi','mte4mtq1n1beBvzLsG','yxnRvxnLCG','Dg90ywXjBNb1DfrVA2vUCW','ywX3yxLZlwnVBMzPCM0','iIbMB3iG','Bw9KzwXjzgvUDgL0Eq','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','BwvZC2fNzq','Dg9VBf9ZDgfYDgvK','BwLZC2LUz01VzgvSq2fSBenVDw50','zxHLy3v0zunHBgXZ','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','B25vC2vYtwvZC2fNzq','CMvTB3zLrxzLBNrmAxn0zw5LCG','C2vUza','Dg90ywXszwfZB25PBMDuB2TLBNm','zgvWCW','yxjYyxK','C3vTBwfYEuLUzgv4','CMvWB3j0zwrdB3n0q2fSBenVDw50','Bwv0yq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','zMLUywXnzxnZywDL','Dg9tDhjPBMC','CMvHza','Dg9VBf9JywXS','Aw5WDxq','yMvMB3jLvg9VBev4zwn1DgLVBG','B3v0Chv0vg9Rzw5Z','DhvYBKLUzgv4','mtyYmZC4ofjMwMf5sG','sw52ywXPzcb0B29SigLUChv0igf0ia','y29TCgXLDgvZuMvXDwvZDa','nw5xq2nTza','C3rYAw5NAwz5','x3n5C3rLBvbYB21WDa','CMfJzq','CMvXDwvZDa','yMvMB3jLrMLUywXpDxrWDxq','BgvUz3rO','y29TCgXLDgvK','CMvXDwvZDenVDw50','zNvUy3rPB24','mta0mJmYotrzCuLOExy','C2v0vg9WAwm','nte0ndqYmtDMANLWvvG','y29UDgvUDf9KzwX0yq','DhLWzq','CMvZzxrnzxnZywDLCW','Bw9KzwXdywXSCW','Aw5WDxrezwX0yq','y29UDgv4DfDPBMrVD0XPBwL0','yw1VDw50vxnKvgLJA3m','DhvYBKLK','z2v0vg9VBhm','Bw9KzwXFCMvXDwvZDa','DhjPBq','Dg9VBfj1BNrPBwu','C2XPy2u','oNjLyxnVBMLUzW','AM9PBG','vw5RBM93BIb0B29SoIa','yMvMB3jLqxnZAxn0yw50qxbWzw5K','zw50CMLLCW','C2v0u3LZDgvTuhjVBxb0','y2f1C2u','y29UDgvUDa','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','C29YDa','ywrK','zw5HyMXLza','y29UDgvUDeLUzgv4','CMvHC29UAw5Nu3rHCNrLzef0','ChjVDMLKzxjFCMv0CNK','Dg9VBf9YzwPLy3rLza','mJyXtKzyAe1o','CMvZB2X2zq','zMLUza','CMvHC29UAw5Nq29TCgXLDgvKqxq','CMvNAxn0zxi','ywjVCNrLza','Aw5WDxrty2HLBwe','Dgv4Da','CMvZCg9UC2u','C2vZC2LVBI0','AxnbCNjHEq','odCZntm1ofnfuLfgqW','Dg90ywXpDxrWDxruB2TLBNm','CMvHC29UAw5NtwvZC2fNzuLK','q2fUBM90ihjLz2LZDgvYihrLCM1PBMfSig9IC2vYDMvYici','C29Tzq','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','ywn0Aw9U','BgLZDfrVB2Xty2HLBwfZ','iIbPCYbHBhjLywr5igvUywjSzwq','yxnZAxn0yw50x21LC3nHz2u','B25fDMvUDa','CMvHC29U','C2LNBMfS','B3v0Chv0sw5KzxG','zgvSDge','C2vZC2LVBKrPCG','oMfZC2LZDgfUDdO','CNvUt2jZzxj2zxjZ','BwvZC2fNzxm','Dg9VBf9JB21WBgv0zwq','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','y2HHDe1VzgvS','DgvYBwLUywW','yw55t2y','ChvZAa','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','ywz0zxjuB29SuMvZDwX0','AxrLBxm','ywnXDwLYzq','zxjYB3i','Bw9KzwXdywXSq291BNq','oIbLEhbLy3rLzcbVyMPLy3q','C3rHDhvZ','DgHPBMTPBMC','CMvHC29UAw5Nx2nODw5R','DhvYBI0','AgfZt3DU','Dg9VBf9VDxrWDxrFy2H1BMS','C3rYAw5N','ChjVDMLKzxi','Dg9VBf91C2u','CMvJB3jKrxzLBNq','zgvMyxvSDe1LC3nHz2u','C2v0vg9VBhm','vg9VBev4zwn1DgLVBKvYCM9Y','Dg9VBfjLC3vSDhm','yM9VBgvHBG','B25uB29Sq2fSBa','C2vZC2LVBKLK','BMfTzq','BgLZDa','oIb1BMv4CgvJDgvKigzPzwXKici','Aw5JBhvKzxm','B2jQzwn0','Dg9VBhncEu5HBwu','ywrKrxzLBNrmAxn0zw5LCG','z2v0','zw51Bq','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','zxH0zw5ZAw9UCW','DMfSDwu','C3rHDgu','mtbSBhr5Bxa','DhjHBNnMB3jTzxi','DxnHz2u','CgvYBwLZC2LVBKnSyxnZ','z2v0q29UDgv4DfDPBMrVD0XPBwL0','Bwf4','Dg9VBenHBgXdB3vUDa','CMvXDwLYzwq','oIbLEhbLy3rLzcbVBMuGB2yG','ChjPy2LUz1bYB3zPzgvYswq','CMvHC29UAw5Nvg9Rzw5Z','Bwf4vg9Rzw5Z','Bwv0ywrHDge','DhvYBLn0yxj0zwrbDa','yxnZAxn0yw50twvZC2fNzuLK'];_0x5982=function(){return _0x15ca1b;};return _0x5982();}function createSuccessToolResult(_0x17c491,_0x5ddcfd,_0x52f419){const _0x2b0538={_0x18484b:0x49f,_0x22cf08:0x541,_0x8f4b86:0x4d7,_0x4ea689:0x509,_0x176580:0x4a9,_0x507836:0x4d9,_0x5d687f:0x3b2,_0x24ae7d:0x33f,_0x2b16ee:0x3b2},_0x428cdb={_0x7416d9:0x1a4,_0x261565:0x21,_0x3f03ba:0x11e},_0x5875f3={_0x2e024f:0x7c};function _0x3ffaad(_0x4d5f45,_0x356927,_0x335525,_0x20d4c9){return _0xec6dab(_0x4d5f45-0x150,_0x356927-0x38,_0x20d4c9- -_0x5875f3._0x2e024f,_0x335525);}function _0x2ba128(_0x2348b7,_0x3f1cc9,_0x44fd92,_0x275e45){return _0xec6dab(_0x2348b7-_0x428cdb._0x7416d9,_0x3f1cc9-_0x428cdb._0x261565,_0x275e45-_0x428cdb._0x3f03ba,_0x44fd92);}return{'callId':_0x17c491['id'],'toolName':_0x17c491[_0x2ba128(_0x2b0538._0x18484b,0x47b,0x4c2,0x4a6)],'status':'ok','output':_0x5ddcfd[_0x2ba128(0x4d1,0x507,_0x2b0538._0x22cf08,_0x2b0538._0x8f4b86)],'structured':_0x5ddcfd[_0x2ba128(_0x2b0538._0x4ea689,_0x2b0538._0x176580,0x515,_0x2b0538._0x507836)],..._0x5ddcfd[_0x3ffaad(0x3a3,0x3d1,0x363,_0x2b0538._0x5d687f)]!==void 0x0?{'content':_0x5ddcfd[_0x3ffaad(0x3ff,_0x2b0538._0x24ae7d,0x38c,_0x2b0538._0x2b16ee)]}:{},'chunks':_0x52f419,'meta':createToolMeta()};}function createUnknownToolResult(_0x2b6a70){const _0x24c899={_0x44ec29:0xe8,_0x59ef15:0xc2,_0x540328:0xcb},_0x14c291={_0x39da2d:0x76};function _0x258a23(_0x5b5fd3,_0x5bf602,_0x7ed20b,_0x102e15){return _0xec6dab(_0x5b5fd3-0x18f,_0x5bf602-_0x14c291._0x39da2d,_0x5bf602- -0x2fc,_0x102e15);}function _0x4d6c0(_0x43ebdf,_0x42ac88,_0x2e5f81,_0x4e94ae){return _0xec6dab(_0x43ebdf-0x5,_0x42ac88-0x182,_0x4e94ae- -0x73,_0x42ac88);}return createErrorToolResult(_0x2b6a70,_0x258a23(_0x24c899._0x44ec29,0x12d,_0x24c899._0x59ef15,_0x24c899._0x540328)+_0x2b6a70[_0x258a23(0xb9,0x8c,0xa9,0x2b)],{'error':'unknown_tool'});}function isDispatchDecision(_0x4e13b4){const _0xa280f1={_0x1c4252:0x2a6,_0xafcf25:0x2ec,_0x24e59c:0x212,_0x1ebcd6:0x20c,_0x519170:0x365,_0x536b41:0x37c,_0x5f1cdb:0x302,_0x3b7845:0x350},_0x17b40f={_0x374273:0x12f,_0x504e38:0x6ad},_0x5483f2={_0xa0ac4:0x1bc,_0x4fa8ae:0x41,_0x581e54:0xe6};function _0x32a123(_0x16517f,_0x3c2e56,_0x10b076,_0x48c8df){return _0xec6dab(_0x16517f-_0x5483f2._0xa0ac4,_0x3c2e56-_0x5483f2._0x4fa8ae,_0x3c2e56- -_0x5483f2._0x581e54,_0x48c8df);}if(typeof _0x4e13b4!==_0x32a123(0x30f,_0xa280f1._0x1c4252,_0xa280f1._0xafcf25,0x2b0)||_0x4e13b4===null)return![];function _0xb44db9(_0x5893c9,_0x203d32,_0xec5eb7,_0x434b89){return _0xec6dab(_0x5893c9-_0x17b40f._0x374273,_0x203d32-0x1a5,_0x434b89- -_0x17b40f._0x504e38,_0x5893c9);}return _0x4e13b4[_0x32a123(_0xa280f1._0x24e59c,0x277,_0xa280f1._0x1ebcd6,0x275)]===_0x32a123(0x356,0x2fa,0x2c0,_0xa280f1._0x519170)||_0x4e13b4[_0xb44db9(-0x343,-_0xa280f1._0x536b41,-_0xa280f1._0x5f1cdb,-_0xa280f1._0x3b7845)]==='run';}function normalizeExecutionError(_0x597a4b){const _0x4acc0e={_0x184d3c:0x287,_0x2d9e81:0xed,_0x5d7d52:0x94,_0x19d1ee:0x125,_0x4cbc6c:0x295,_0x32997d:0x231,_0x202a4d:0x279,_0x405723:0x154,_0x3d6781:0x16c,_0x428689:0x246,_0x4c8e7b:0x291},_0x1ed7b5={_0x3773f7:0xad},_0x5c0fa3={_0x2d8728:0xdb};function _0x2f434e(_0x5e6c24,_0x7e3b1e,_0x5dcc0e,_0x5bcb8e){return _0x4845a1(_0x5bcb8e,_0x7e3b1e-_0x5c0fa3._0x2d8728,_0x5dcc0e-0x13c,_0x7e3b1e- -0x239);}if(_0x597a4b instanceof ToolExecutionError)return{'errorMessage':_0x597a4b[_0x2f434e(0x255,0x231,0x1f4,_0x4acc0e._0x184d3c)],'structured':{'error':_0x597a4b[_0x1576be(-0xe8,-0x12b,-_0x4acc0e._0x2d9e81,-_0x4acc0e._0x5d7d52)],..._0x597a4b[_0x1576be(-0x120,-0x163,-_0x4acc0e._0x19d1ee,-0x103)]}};if(_0x597a4b instanceof Error)return{'errorMessage':_0x597a4b[_0x2f434e(_0x4acc0e._0x4cbc6c,_0x4acc0e._0x32997d,_0x4acc0e._0x202a4d,0x217)],'structured':{'error':_0x597a4b['message']}};if(typeof _0x597a4b===_0x1576be(-0x196,-0xfb,-_0x4acc0e._0x405723,-_0x4acc0e._0x3d6781)&&_0x597a4b!==null&&'message'in _0x597a4b&&typeof _0x597a4b['message']==='string')return{'errorMessage':_0x597a4b[_0x2f434e(0x244,_0x4acc0e._0x32997d,_0x4acc0e._0x428689,0x1ce)],'structured':{'error':_0x597a4b[_0x2f434e(0x24b,_0x4acc0e._0x32997d,0x1bb,_0x4acc0e._0x4c8e7b)]}};function _0x1576be(_0x2e237a,_0x12503e,_0x29339f,_0x1053f4){return _0xec6dab(_0x2e237a-_0x1ed7b5._0x3773f7,_0x12503e-0x15,_0x29339f- -0x4e0,_0x12503e);}const _0x171efe=String(_0x597a4b);return{'errorMessage':_0x171efe,'structured':{'error':_0x171efe}};}async function emitEvent(_0x1e1255,_0x5be111,_0x2766b6){await _0x1e1255?.(_0x5be111,_0x2766b6);}async function resolveDispatchDecision(_0x532d02,_0x27c505,_0x53e34b){const _0xa662d7={_0x29ea9c:0x13b,_0x3008f5:0x1c0,_0x39a796:0x168,_0x2bf8dd:0x129,_0x1b72aa:0x326,_0x3f5df9:0x2f9,_0x59efad:0x27c,_0xedb343:0x2b5,_0x560955:0x26c,_0xa3590b:0x242,_0x3bfe9c:0x13a,_0x24e977:0xdd,_0x282d8c:0x29f,_0x163b1e:0x310,_0x4408a4:0x8b,_0x4162f7:0xd5},_0x527b90={_0x169517:0x4b5},_0x6d1549={_0x56e308:0x341,_0x35aa21:0x3f2,_0x19d317:0x3a3,_0x5a9c2c:0x3e1,_0x152e6f:0x3b5,_0x272803:0x417,_0x16daf8:0x447,_0xbcea02:0x3d4,_0x1951e5:0x3e0,_0x4ab898:0xb6,_0x47e1fe:0x6f,_0x355094:0xbc},_0x53f89f={_0x3e9962:0x100},_0x5f0d4e={_0x4f1330:0x128,_0x4db92e:0xaa};if(!_0x532d02)return{'action':_0x2c2564(-_0xa662d7._0x29ea9c,-0x123,-0xdd,-0x147)};const _0x591913=Promise[_0x2c2564(-0x1d7,-_0xa662d7._0x3008f5,-_0xa662d7._0x39a796,-_0xa662d7._0x2bf8dd)]()[_0x13f21e(_0xa662d7._0x1b72aa,_0xa662d7._0x3f5df9,_0xa662d7._0x59efad,0x2b4)](()=>_0x532d02(_0x27c505,_0x53e34b));function _0x13f21e(_0xfce20b,_0x3d5ce3,_0x4ea6bd,_0x865989){return _0x4845a1(_0xfce20b,_0x3d5ce3-_0x5f0d4e._0x4f1330,_0x4ea6bd-_0x5f0d4e._0x4db92e,_0x865989- -0x198);}if(!_0x53e34b[_0x13f21e(_0xa662d7._0xedb343,_0xa662d7._0x560955,0x214,_0xa662d7._0xa3590b)]){const _0x5a9f98=await _0x591913;return isDispatchDecision(_0x5a9f98)?_0x5a9f98:{'action':_0x2c2564(-0x124,-_0xa662d7._0x3bfe9c,-_0xa662d7._0x24e977,-0x10a)};}const _0x2591fb=new Promise((_0x2ae709,_0x6331d0)=>{const _0x5be2ec={_0x3f235e:0xad},_0x37f081={_0x23d238:0x41c,_0x481825:0x3ad,_0xf7a609:0x443,_0x2f8cb7:0x42e,_0x49a2cd:0x3f7,_0xae17f9:0x3ad,_0x208c2f:0x350,_0x42dfc9:0x34e,_0x1be8f9:0x121},_0x7cebf7=()=>{const _0x3debb4={_0x239a8e:0x311};_0x53e34b[_0x47a5a4(_0x37f081._0x23d238,_0x37f081._0x481825,0x33d,0x41e)]?.[_0x47a5a4(0x444,_0x37f081._0xf7a609,0x4af,_0x37f081._0x2f8cb7)]('abort',_0x7cebf7);function _0x57d23c(_0x2f6555,_0x4a5fa0,_0x4c091d,_0x358552){return _0x314c(_0x4c091d- -0x1ef,_0x2f6555);}function _0x47a5a4(_0xbef41a,_0x1e2326,_0x16643f,_0x225ce1){return _0x314c(_0x1e2326-_0x3debb4._0x239a8e,_0x16643f);}_0x6331d0(toAbortError(_0x53e34b[_0x47a5a4(_0x37f081._0x49a2cd,_0x37f081._0xae17f9,_0x37f081._0x208c2f,_0x37f081._0x42dfc9)]?.[_0x57d23c(-0x1a9,-_0x37f081._0x1be8f9,-0x154,-0x15a)]));};function _0x366810(_0x359c80,_0x4d1ca7,_0x378435,_0x28ddbe){return _0x13f21e(_0x4d1ca7,_0x4d1ca7-0x159,_0x378435-_0x53f89f._0x3e9962,_0x28ddbe-0x173);}if(_0x53e34b['signal']?.[_0x366810(_0x6d1549._0x56e308,_0x6d1549._0x35aa21,0x3fc,_0x6d1549._0x19d317)]){_0x6331d0(toAbortError(_0x53e34b[_0x366810(_0x6d1549._0x5a9c2c,0x39b,0x374,_0x6d1549._0x152e6f)][_0x366810(0x3ce,0x420,0x391,0x3b4)]));return;}function _0x48a114(_0x5257bf,_0x3531d5,_0x205556,_0x53fb29){return _0x13f21e(_0x205556,_0x3531d5-_0x5be2ec._0x3f235e,_0x205556-0x12b,_0x5257bf- -0x1db);}_0x53e34b['signal']?.[_0x366810(_0x6d1549._0x272803,_0x6d1549._0x16daf8,_0x6d1549._0xbcea02,_0x6d1549._0x1951e5)](_0x48a114(_0x6d1549._0x4ab898,0x112,_0x6d1549._0x47e1fe,_0x6d1549._0x355094),_0x7cebf7,{'once':!![]});});function _0x2c2564(_0x891cbf,_0x1f4540,_0x407e5e,_0x40bea3){return _0xec6dab(_0x891cbf-0xb7,_0x1f4540-0x145,_0x407e5e- -_0x527b90._0x169517,_0x40bea3);}const _0x467c9c=await Promise[_0x13f21e(_0xa662d7._0x282d8c,_0xa662d7._0x163b1e,0x2a1,0x2ef)]([_0x591913,_0x2591fb]);return isDispatchDecision(_0x467c9c)?_0x467c9c:{'action':_0x2c2564(-_0xa662d7._0x4408a4,-_0xa662d7._0x4162f7,-0xdd,-0x13b)};}async function executeCapturedToolCall(_0x5437c1,_0x13c247,_0x3ecb85,_0x14593f,_0xfebefb){const _0x868310={_0x4b8bdf:0x67,_0x4b9615:0x8a,_0x2f7493:0xc5,_0x42d0bb:0x7,_0xb065df:0x181,_0x1365ea:0x175,_0xdddbf0:0x181,_0x4a36b8:0x1b1,_0x3cdbde:0x124,_0x30f117:0x189,_0x56b387:0x7f,_0x54037f:0x44,_0x44b65c:0x9a,_0x1cd16f:0x103,_0x127a41:0x191,_0x24f5fe:0x188,_0x5e0c08:0x157,_0x469e3b:0x10f,_0x2bdb53:0x8c,_0x40c06a:0x139,_0x89c60e:0x127,_0x1afd5e:0x128,_0x6207d5:0x119,_0x359c6d:0x1d4,_0xc97ae5:0x113,_0x560d81:0x1e5,_0x560479:0x1f8,_0x4dd6db:0xe,_0x228e00:0x8,_0x23b9fa:0x12e,_0x425c08:0x158,_0x89b640:0x5b,_0x216eab:0x81,_0x1a90e8:0x13,_0x31b402:0x1d,_0x226e18:0x6f,_0x5b7d50:0xa8,_0x49ab74:0x18b,_0x1e8c4b:0x181,_0xec20bf:0x138,_0x11957a:0x1d6},_0x2e30ac={_0x26e1bf:0xa3},_0x837007={_0x4ee765:0x3ca},_0x17681b={..._0x3ecb85,'toolCallId':_0x13c247['id'],'permissionClass':resolveToolPermissionClass(_0x5437c1),'executionAuthorization':void 0x0};function _0x593727(_0x4bb4e7,_0x430c60,_0x5e8d82,_0x2a1c9e){return _0x4845a1(_0x5e8d82,_0x430c60-0x3,_0x5e8d82-0xcc,_0x430c60- -0x562);}throwIfAborted(_0x17681b[_0x1e0f5c(-_0x868310._0x4b8bdf,-_0x868310._0x4b9615,-_0x868310._0x2f7493,-_0x868310._0x42d0bb)]);let _0x198d01;try{_0x198d01=await resolveDispatchDecision(_0x14593f,_0x13c247,_0x17681b);}catch(_0x224b68){if(isAbortError(_0x224b68)){const _0x3b33ad=createAbortedToolResult(_0x13c247,_0x224b68);return await emitEvent(_0xfebefb,{'type':_0x593727(-0x1cc,-_0x868310._0xb065df,-_0x868310._0x1365ea,-0x1e5),'toolCall':_0x13c247,'result':_0x3b33ad},_0x17681b),_0x3b33ad;}const {errorMessage:_0x4ead7f,structured:_0x1cbc90}=normalizeExecutionError(_0x224b68),_0x5f4449=createErrorToolResult(_0x13c247,_0x4ead7f,_0x1cbc90);return await emitEvent(_0xfebefb,{'type':_0x593727(-0x125,-_0x868310._0xdddbf0,-0x1a8,-0x130),'toolCall':_0x13c247,'result':_0x5f4449},_0x17681b),_0x5f4449;}throwIfAborted(_0x17681b['signal']);if(_0x198d01[_0x593727(-_0x868310._0x4a36b8,-0x18e,-0x15e,-0x15c)]==='reject'){const _0x3332d0=createRejectedToolResult(_0x13c247,_0x198d01[_0x593727(-_0x868310._0x3cdbde,-_0x868310._0x30f117,-0x14d,-0x19c)]);return await emitEvent(_0xfebefb,{'type':_0x1e0f5c(-_0x868310._0x56b387,-0x52,-_0x868310._0x54037f,-_0x868310._0x44b65c),'toolCall':_0x13c247,'result':_0x3332d0},_0x17681b),_0x3332d0;}if(!_0x5437c1){const _0x211fcc=createUnknownToolResult(_0x13c247);return await emitEvent(_0xfebefb,{'type':'tool_completed','toolCall':_0x13c247,'result':_0x211fcc},_0x17681b),_0x211fcc;}const _0x298476={..._0x17681b,'executionAuthorization':_0x198d01[_0x593727(-0xbf,-_0x868310._0x1cd16f,-0xa9,-0xeb)]};throwIfAborted(_0x298476[_0x1e0f5c(-0x67,-0x96,0x8,-0x69)]);function _0x1e0f5c(_0x250577,_0x21e40d,_0x371215,_0x2ff381){return _0xec6dab(_0x250577-0xa0,_0x21e40d-0xf7,_0x250577- -_0x837007._0x4ee765,_0x21e40d);}await emitEvent(_0xfebefb,{'type':_0x593727(-0xd0,-0xf7,-0x14a,-0xb0),'toolCall':_0x13c247},_0x298476);try{throwIfAborted(_0x298476[_0x593727(-_0x868310._0x127a41,-_0x868310._0x24f5fe,-_0x868310._0x5e0c08,-0x146)]);const _0xccd6d6=validateToolInput(_0x13c247[_0x593727(-0xc1,-0xe5,-_0x868310._0x469e3b,-_0x868310._0x2bdb53)],_0x5437c1[_0x593727(-0x207,-0x199,-_0x868310._0x40c06a,-0x17a)]),_0x2de15a=await _0x5437c1[_0x593727(-_0x868310._0x89c60e,-_0x868310._0x1afd5e,-0x13e,-_0x868310._0x6207d5)](_0xccd6d6,_0x298476),_0xee37c0=[],_0x18dda6=addAbortListener(_0x298476[_0x593727(-0x1cb,-0x188,-_0x868310._0x359c6d,-_0x868310._0xc97ae5)],()=>{function _0x55c8b6(_0x16834b,_0x7d7265,_0xa45af9,_0xbca72d){return _0x593727(_0x16834b-0x3d,_0x16834b-0x217,_0x7d7265,_0xbca72d-0x1a7);}void _0x2de15a[_0x55c8b6(0xd1,0x92,0xf7,_0x2e30ac._0x26e1bf)](void 0x0)['catch'](()=>{});});try{throwIfAborted(_0x298476[_0x593727(-_0x868310._0x560d81,-0x188,-_0x868310._0x560479,-0x1fc)]);let _0x4a2fa6=await _0x2de15a[_0x1e0f5c(-0x9,-_0x868310._0x4dd6db,0x16,-_0x868310._0x228e00)]();while(!_0x4a2fa6['done']){throwIfAborted(_0x298476[_0x593727(-_0x868310._0x23b9fa,-0x188,-0x157,-0x1fd)]);const _0x29179b=normalizeToolOutputValue(_0x4a2fa6[_0x593727(-0x1cc,-_0x868310._0x425c08,-0x146,-0x1c3)]);_0xee37c0[_0x1e0f5c(-_0x868310._0x89b640,-0xc,-_0x868310._0x216eab,-_0x868310._0x1a90e8)](_0x29179b),await emitEvent(_0xfebefb,{'type':_0x1e0f5c(-0x4e,-_0x868310._0x31b402,-0x8f,-_0x868310._0x226e18),'toolCall':_0x13c247,'chunk':_0x29179b},_0x298476),throwIfAborted(_0x298476['signal']),_0x4a2fa6=await _0x2de15a['next']();}throwIfAborted(_0x298476[_0x1e0f5c(-_0x868310._0x4b8bdf,-0x5f,0x6,-_0x868310._0x5b7d50)]);const _0x108229=_0x4a2fa6['value']===void 0x0?deriveFinalToolOutput(_0xee37c0):normalizeToolOutputValue(_0x4a2fa6[_0x593727(-0x101,-0x158,-0x164,-0x101)]),_0x5ed451=createSuccessToolResult(_0x13c247,_0x108229,_0xee37c0);return await emitEvent(_0xfebefb,{'type':'tool_completed','toolCall':_0x13c247,'result':_0x5ed451},_0x298476),_0x5ed451;}catch(_0x19ea38){if(isAbortError(_0x19ea38)){const _0x469d5d=createAbortedToolResult(_0x13c247,_0x19ea38,_0xee37c0);return await emitEvent(_0xfebefb,{'type':_0x593727(-_0x868310._0x49ab74,-_0x868310._0x1e8c4b,-_0x868310._0xec20bf,-0x11b),'toolCall':_0x13c247,'result':_0x469d5d},_0x298476),_0x469d5d;}const {errorMessage:_0x396227,structured:_0x4903ad}=normalizeExecutionError(_0x19ea38),_0x1204b4=createErrorToolResult(_0x13c247,_0x396227,_0x4903ad,_0xee37c0);return await emitEvent(_0xfebefb,{'type':_0x1e0f5c(-0x60,-0x17,-0xac,-0x34),'toolCall':_0x13c247,'result':_0x1204b4},_0x298476),_0x1204b4;}finally{_0x18dda6();}}catch(_0x96dbe2){if(isAbortError(_0x96dbe2)){const _0x3274f3=createAbortedToolResult(_0x13c247,_0x96dbe2);return await emitEvent(_0xfebefb,{'type':'tool_completed','toolCall':_0x13c247,'result':_0x3274f3},_0x298476),_0x3274f3;}const {errorMessage:_0x12e8ca,structured:_0x246179}=normalizeExecutionError(_0x96dbe2),_0x5428c6=createErrorToolResult(_0x13c247,_0x12e8ca,_0x246179);return await emitEvent(_0xfebefb,{'type':_0x593727(-0x117,-0x181,-0x153,-_0x868310._0x11957a),'toolCall':_0x13c247,'result':_0x5428c6},_0x298476),_0x5428c6;}}async function executeToolCall(_0x17b829,_0x12fd3b,_0x559acc,_0x485535,_0x12d7a4){const _0x515a82={_0x14b115:0x70,_0x33dc93:0x108,_0x56ac84:0xef,_0x57e826:0xd9,_0xe756cc:0xf9,_0x3a4a86:0xd4,_0x26fa6e:0x173,_0x33c169:0x16c},_0x53a486={_0x154469:0x15b,_0xbc6460:0x105},_0x2c9cfa={_0x4ec95d:0x1f0,_0x3befb0:0x352};function _0x25e2f2(_0x2df8d1,_0x66dbc,_0x57f9dc,_0x4d286a){return _0x4845a1(_0x57f9dc,_0x66dbc-0x5d,_0x57f9dc-_0x2c9cfa._0x4ec95d,_0x4d286a- -_0x2c9cfa._0x3befb0);}const _0x1ee382=_0x17b829[_0x25e2f2(_0x515a82._0x14b115,_0x515a82._0x33dc93,0x129,0xb4)](_0x12fd3b[_0xf2dc25(-_0x515a82._0x56ac84,-_0x515a82._0x57e826,-0x111,-_0x515a82._0xe756cc)]);function _0xf2dc25(_0x501296,_0x562239,_0x50d17f,_0x5c28aa){return _0xec6dab(_0x501296-_0x53a486._0x154469,_0x562239-_0x53a486._0xbc6460,_0x50d17f- -0x499,_0x5c28aa);}const _0x7acfe0=_0x1ee382?.[_0xf2dc25(-0x8a,-0xf4,-_0x515a82._0x3a4a86,-0x132)]?.[_0xf2dc25(-_0x515a82._0x26fa6e,-0x17d,-0x126,-_0x515a82._0x33c169)]();try{return await executeCapturedToolCall(_0x1ee382,_0x12fd3b,_0x559acc,_0x485535,_0x12d7a4);}finally{_0x7acfe0?.();}}function createInternalToolRuntime(_0x392311=[],_0x3b6d54={}){const _0x332192={_0x116e75:0x120,_0x48a7d5:0x94};let _0x441e85=new ToolRegistry(_0x392311);return{'listToolSchemas'(){function _0x320b6d(_0x4b9f01,_0x1f830a,_0x4d19c9,_0xe6d727){return _0x314c(_0xe6d727- -0x150,_0x1f830a);}return _0x441e85[_0x320b6d(-_0x332192._0x116e75,-0x114,-_0x332192._0x48a7d5,-0xb9)]();},'setTools'(_0x5ec359){_0x441e85=new ToolRegistry(_0x5ec359);},async 'executeCalls'(_0x3d01c2,_0x5ec29e){const _0x4cb3e8={_0x426390:0x64,_0x7b7f51:0xed,_0x577da6:0x73,_0x4ab4a4:0x1a1,_0x60d2db:0x1f2},_0x1f6604={_0x34aa22:0xbe,_0x1bc5a4:0x79,_0x45fd9d:0x609};function _0x5db830(_0x574cd9,_0x57e4f3,_0x444f64,_0x40a790){return _0x314c(_0x40a790-0x3ce,_0x57e4f3);}return await Promise['all'](_0x3d01c2[_0x5db830(0x52b,0x51e,0x494,0x4f0)](async _0x327b6f=>{const _0xa8a42a={_0x36f71b:0x1d2,_0x44568d:0x17a,_0x313986:0x51d};function _0x3d8f1b(_0x1c8f0b,_0x24b4ee,_0x3842fd,_0x28a135){return _0x5db830(_0x1c8f0b-_0xa8a42a._0x36f71b,_0x28a135,_0x3842fd-_0xa8a42a._0x44568d,_0x1c8f0b- -_0xa8a42a._0x313986);}function _0x218c03(_0x20f603,_0x2269b6,_0x1f649c,_0x8b2541){return _0x5db830(_0x20f603-_0x1f6604._0x34aa22,_0x20f603,_0x1f649c-_0x1f6604._0x1bc5a4,_0x2269b6- -_0x1f6604._0x45fd9d);}return await executeToolCall(_0x441e85,_0x327b6f,_0x5ec29e,_0x3b6d54[_0x3d8f1b(-0x90,-_0x4cb3e8._0x426390,-_0x4cb3e8._0x7b7f51,-_0x4cb3e8._0x577da6)],_0x3b6d54[_0x218c03(-0x171,-_0x4cb3e8._0x4ab4a4,-0x189,-_0x4cb3e8._0x60d2db)]);}));},async 'execute'(_0x375631,_0xd71084){const [_0x5440cc]=await this['executeCalls']([_0x375631],_0xd71084);return _0x5440cc;}};}function getOrderedObserverExtensions(_0x274f54,_0x5007fd){const _0x2b9680={_0x3f201c:0x324,_0x355e94:0x2f9,_0x5d226c:0x2ce},_0x456298={_0x5b319d:0x23,_0x19eea2:0x1a,_0x5b3e16:0x6e,_0x5b92bf:0x22d,_0x2a30e2:0x297,_0x2b1fa4:0x2ee,_0x154146:0x2e0,_0x22f5a4:0x2e6,_0x462b7e:0x118,_0x41321b:0xd6,_0x38791c:0x87},_0x45c3c0={_0x36cb0d:0xc2,_0x14632c:0x5b,_0x5051c0:0x33f,_0x1e6b85:0x34a,_0x586730:0x384},_0xac6356={_0x9a5042:0x12d},_0x41615e={_0x1934c6:0x160,_0x37ce82:0x1cf,_0x2d28bc:0xfa};function _0x31118c(_0x4e2097,_0xc22d9c,_0x3334ef,_0x43fde0){return _0x4845a1(_0x3334ef,_0xc22d9c-_0x41615e._0x1934c6,_0x3334ef-_0x41615e._0x37ce82,_0x4e2097- -_0x41615e._0x2d28bc);}return _0x274f54[_0x31118c(_0x2b9680._0x3f201c,_0x2b9680._0x355e94,0x2e7,_0x2b9680._0x5d226c)](_0x3d1003=>{const _0x2a6d3d={_0x1ca071:0x18,_0x558a8e:0x17d,_0x300a2f:0x1c0};function _0x234b13(_0x344a13,_0x488f0f,_0x97689f,_0x326281){return _0x31118c(_0x97689f-_0x2a6d3d._0x1ca071,_0x488f0f-_0x2a6d3d._0x558a8e,_0x326281,_0x326281-_0x2a6d3d._0x300a2f);}function _0xaa7b01(_0x5e2683,_0x4f431b,_0x2bf86d,_0x516600){return _0x31118c(_0x4f431b- -0x276,_0x4f431b-_0xac6356._0x9a5042,_0x516600,_0x516600-0x17e);}return _0x3d1003[_0xaa7b01(_0x45c3c0._0x36cb0d,0x4e,_0x45c3c0._0x14632c,-0x10)]!==![]&&_0x3d1003[_0x234b13(0x3a6,_0x45c3c0._0x5051c0,_0x45c3c0._0x1e6b85,_0x45c3c0._0x586730)]===_0x5007fd&&_0x3d1003[_0x234b13(0x2e8,0x372,0x35e,0x325)]==='observer';})['sort']((_0x882cc3,_0x51c682)=>{const _0x2dd774={_0x5a73ee:0x52};function _0x4c1a74(_0x3821ea,_0x4496a6,_0x2a2ca5,_0x108aaf){return _0x31118c(_0x2a2ca5- -0x27c,_0x4496a6-0x20,_0x108aaf,_0x108aaf-0x1a0);}if(_0x882cc3[_0x4c1a74(_0x456298._0x5b319d,_0x456298._0x19eea2,_0x456298._0x5b3e16,0x1d)]===!![]&&_0x51c682['terminal']!==!![])return 0x1;function _0xbbf630(_0x4536dd,_0x5ae680,_0x155b19,_0x30a5af){return _0x31118c(_0x30a5af- -0x82,_0x5ae680-0x1d,_0x155b19,_0x30a5af-_0x2dd774._0x5a73ee);}if(_0x882cc3[_0xbbf630(_0x456298._0x5b92bf,_0x456298._0x2a30e2,0x288,0x268)]!==!![]&&_0x51c682['terminal']===!![])return-0x1;return _0x882cc3[_0xbbf630(_0x456298._0x2b1fa4,0x2e2,_0x456298._0x154146,_0x456298._0x22f5a4)]-_0x51c682[_0x4c1a74(_0x456298._0x462b7e,_0x456298._0x41321b,0xec,_0x456298._0x38791c)];});}function getOrderedTransformerExtensions(_0x2d09ce,_0x326d48){const _0x6815b1={_0x4ab737:0x2bb,_0xf03d6f:0x188,_0x46d5d9:0x198},_0x5b2d11={_0x5a6410:0x2b7,_0x3afb0c:0x241,_0x316624:0x278,_0x1706be:0x3,_0x2870fc:0x323,_0x1ef970:0x37a},_0x12971c={_0x35bf87:0x28,_0x102b16:0x5c},_0x3d32b7={_0x13c48d:0x105},_0x404727={_0x98699d:0x1d5,_0x4b0da2:0xed,_0x56214e:0x163};function _0x54d739(_0x4ebd75,_0x15313b,_0x429993,_0x37548f){return _0x4845a1(_0x4ebd75,_0x15313b-_0x404727._0x98699d,_0x429993-_0x404727._0x4b0da2,_0x37548f- -_0x404727._0x56214e);}function _0x55d22f(_0x519db6,_0x18c90f,_0x17fc56,_0x2a2837){return _0x4845a1(_0x2a2837,_0x18c90f-0x8e,_0x17fc56-_0x3d32b7._0x13c48d,_0x18c90f- -0x27f);}return _0x2d09ce[_0x54d739(0x330,0x265,0x247,_0x6815b1._0x4ab737)](_0x16e1ee=>{const _0x12d480={_0x353501:0x2c6};function _0x42ad54(_0x14e164,_0x4f9824,_0x8551d2,_0x465129){return _0x54d739(_0x14e164,_0x4f9824-0x11d,_0x8551d2-0x11a,_0x8551d2- -_0x12d480._0x353501);}function _0x237d4f(_0x111f5a,_0x3d64a2,_0x4109f4,_0x5872b5){return _0x54d739(_0x3d64a2,_0x3d64a2-0x8d,_0x4109f4-_0x12971c._0x35bf87,_0x111f5a-_0x12971c._0x102b16);}return _0x16e1ee[_0x237d4f(_0x5b2d11._0x5a6410,_0x5b2d11._0x3afb0c,_0x5b2d11._0x316624,0x2a9)]!==![]&&_0x16e1ee[_0x42ad54(0xc,0x23,_0x5b2d11._0x1706be,0x0)]===_0x326d48&&_0x16e1ee[_0x42ad54(-0x5c,-0x16,0x17,0x50)]===_0x237d4f(0x306,_0x5b2d11._0x2870fc,_0x5b2d11._0x1ef970,0x2af);})[_0x55d22f(_0x6815b1._0xf03d6f,0x13d,_0x6815b1._0x46d5d9,0xf0)]((_0x1dfa7a,_0x297c1f)=>_0x1dfa7a[_0x55d22f(0x1e8,0x1e3,0x24c,0x244)]-_0x297c1f[_0x54d739(0x343,0x2e0,0x2b8,0x2ff)]);}function createExtensionRegistry(){const _0x853efb={_0xdbb89c:0xcb,_0x520357:0x72},_0x22a382={_0x4b4953:0x12e,_0x5f4ea0:0x87,_0x2f7a70:0xa9,_0xc9e007:0x6,_0x53bc7b:0x57,_0x5e16f3:0x6f,_0x5df3c7:0x23,_0x4947ef:0x88,_0x4d703a:0x23,_0x151d22:0xa3,_0x1f5f3e:0x5e,_0xc67f84:0x7b,_0x45e674:0xc},_0x43e37d=[];return{'register'(_0x13f895){function _0x23750f(_0xd9a5a8,_0x4959f0,_0x3437d1,_0xb8daa5){return _0x314c(_0xd9a5a8- -0x106,_0x4959f0);}function _0x54a411(_0x2a7130,_0x1a1ca7,_0x48439d,_0x2e85a9){return _0x314c(_0x1a1ca7- -0x42,_0x2a7130);}if(_0x13f895[_0x54a411(0x5e,0xc0,0x111,_0x22a382._0x4b4953)]==='observer'&&_0x13f895['enabled']!==![]&&_0x13f895[_0x54a411(-0xb,0x64,0x80,_0x22a382._0x5f4ea0)]===!![]){const _0x50e913=_0x43e37d[_0x54a411(_0x22a382._0x2f7a70,0x45,0x61,0x25)](_0x5e3a63=>_0x5e3a63['kind']==='observer'&&_0x5e3a63[_0x23750f(-0x86,-0x1f,-0xd9,-0x3c)]!==![]&&_0x5e3a63[_0x23750f(-0x18,-0x3e,-0x39,-0x5d)]===_0x13f895[_0x23750f(-0x18,-0x52,-0x69,0x4a)]&&_0x5e3a63['terminal']===!![]);if(_0x50e913)throw new Error(_0x54a411(_0x22a382._0xc9e007,0x51,_0x22a382._0x53bc7b,_0x22a382._0x5e16f3)+_0x13f895['id']+_0x23750f(_0x22a382._0x5df3c7,0x40,_0x22a382._0x4947ef,0x42)+_0x13f895[_0x23750f(-0x18,0x2c,-0x3c,-_0x22a382._0x4d703a)]+':\x20terminal\x20observer\x20\x22'+_0x50e913['id']+_0x23750f(-0x6e,-0xda,-_0x22a382._0x151d22,-0x17));}_0x43e37d[_0x23750f(-_0x22a382._0x1f5f3e,-_0x22a382._0xc67f84,_0x22a382._0x45e674,-0x19)]({..._0x13f895});},async 'runTransformers'(_0x3e9935,_0x1d3392,_0x59a520){let _0x367b47=_0x1d3392;function _0x3d8fa1(_0x3f2382,_0x2d0d05,_0x63f261,_0x377f26){return _0x314c(_0x2d0d05- -0x7c,_0x377f26);}for(const _0x2e7673 of getOrderedTransformerExtensions(_0x43e37d,_0x3e9935)){_0x367b47=await _0x2e7673[_0x3d8fa1(0x2e,0x95,_0x853efb._0xdbb89c,_0x853efb._0x520357)](_0x367b47,_0x59a520);}return _0x367b47;},async 'runObservers'(_0x153d49,_0x329201,_0xb550ee){for(const _0x485111 of getOrderedObserverExtensions(_0x43e37d,_0x153d49)){await _0x485111['run'](_0x329201,_0xb550ee);}}};}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(_0x52b109,_0x18be6e){const _0x441c12={_0x119535:0x26b,_0x58364f:0x9,_0x37e8d6:0x25,_0x293ca2:0x307,_0x311b17:0x24d,_0x580bb9:0x5c,_0x4789a4:0x5,_0x26696b:0x51,_0x566384:0x24a,_0x3cd6ea:0x287,_0x5d2403:0x233,_0x41dd84:0x28b,_0x18fe04:0x228,_0x203136:0x265,_0x71ac09:0xcc,_0x325f03:0x61,_0x2108cd:0x18,_0x3f17d8:0x34a,_0x3f9c0e:0x243,_0x987b5d:0x7,_0x4fe7d4:0x20a,_0x1f289f:0x234,_0x46b78c:0x31,_0x2f50f6:0x77,_0x6081c6:0x48,_0x248a7e:0x57,_0x2a8639:0x2f5,_0x4709ee:0x324,_0x3c2670:0x2f7,_0x37a548:0x2c6,_0x205098:0x2d2,_0x16d351:0x37,_0x14ede5:0xa7,_0xca1258:0x1c,_0x184c5e:0x291,_0x3eabca:0x214,_0x5ada25:0x254,_0x3161fa:0x11,_0x4589cb:0x34,_0x553463:0x201,_0x314579:0x261,_0x2bfcd2:0x50,_0x995a95:0x26,_0xfe61bd:0xa},_0x55e5e8=_0x18be6e['usage'],_0x2f3d0b=_0x55e5e8[_0x59aac8(-0x2c2,-0x308,-_0x441c12._0x119535,-0x29d)];function _0x2641a5(_0x240c4f,_0x33628e,_0xc2a051,_0x1e98d0){return _0xec6dab(_0x240c4f-0xec,_0x33628e-0x117,_0xc2a051- -0x3e3,_0x33628e);}const _0x35befa=_0x55e5e8[_0x2641a5(0x64,_0x441c12._0x58364f,_0x441c12._0x37e8d6,0x58)],_0x5a810d=_0x55e5e8[_0x59aac8(-0x30c,-_0x441c12._0x293ca2,-_0x441c12._0x311b17,-0x2b4)]??0x0,_0x59c672=_0x2f3d0b+_0x35befa,_0x12e812=_0x55e5e8[_0x2641a5(0x19,_0x441c12._0x580bb9,-_0x441c12._0x4789a4,-0x7)]?.[_0x2641a5(-0x16,_0x441c12._0x26696b,0x3d,0x69)],_0x3096b3=_0x55e5e8['estimatedCost']?.[_0x59aac8(-_0x441c12._0x566384,-_0x441c12._0x3cd6ea,-0x21d,-_0x441c12._0x5d2403)],_0x4cf44d=_0x12e812??_0x3096b3;function _0x59aac8(_0x471a13,_0x5a8da9,_0xb34c57,_0x130dd5){return _0x4845a1(_0x5a8da9,_0x5a8da9-0xf7,_0xb34c57-0xcf,_0x130dd5- -0x6ca);}const {currentReportedCostUsdTicks:_0x1f02b3,currentEstimatedCostUsdTicks:_0x616571,..._0x192f60}=_0x52b109;return{..._0x192f60,'totalTokens':_0x192f60[_0x2641a5(-0x25,0x12,-0x11,0x2a)]+_0x59c672,'totalInputTokens':_0x192f60[_0x59aac8(-0x287,-_0x441c12._0x41dd84,-_0x441c12._0x18fe04,-_0x441c12._0x203136)]+_0x2f3d0b,'totalOutputTokens':_0x192f60[_0x2641a5(-0xa2,-0xac,-0x8b,-_0x441c12._0x71ac09)]+_0x35befa,'totalReasoningTokens':_0x192f60[_0x2641a5(_0x441c12._0x325f03,0x32,_0x441c12._0x2108cd,-0x33)]+_0x5a810d,'modelCallCount':_0x192f60[_0x59aac8(-_0x441c12._0x3f17d8,-0x2c5,-0x339,-0x2de)]+0x1,'totalModelTimeMs':_0x192f60[_0x59aac8(-0x290,-0x2f6,-_0x441c12._0x3f9c0e,-0x295)]+_0x18be6e['modelTimeMs'],'currentTokens':_0x59c672,'currentInputTokens':_0x2f3d0b,'currentOutputTokens':_0x35befa,'currentReasoningTokens':_0x5a810d,'currentModelTimeMs':_0x18be6e[_0x2641a5(0x3a,-0x42,-_0x441c12._0x987b5d,0x3e)],..._0x192f60[_0x59aac8(-0x286,-0x23b,-0x22d,-0x234)]&&_0x59c672>0x0?{'contextWindowUsage':_0x59c672/_0x192f60[_0x59aac8(-_0x441c12._0x4fe7d4,-0x201,-0x2a5,-_0x441c12._0x1f289f)]}:{},'totalCostUsdTicks':_0x4cf44d===void 0x0?_0x192f60[_0x2641a5(-0x57,0x5c,-0x9,-_0x441c12._0x46b78c)]:_0x192f60[_0x2641a5(-_0x441c12._0x2f50f6,_0x441c12._0x6081c6,-0x9,_0x441c12._0x248a7e)]+_0x4cf44d,'totalReportedCostUsdTicks':_0x12e812===void 0x0?_0x192f60[_0x59aac8(-_0x441c12._0x2a8639,-0x28f,-_0x441c12._0x4709ee,-_0x441c12._0x3c2670)]:_0x192f60[_0x59aac8(-_0x441c12._0x37a548,-0x2d2,-_0x441c12._0x205098,-0x2f7)]+_0x12e812,'totalEstimatedCostUsdTicks':_0x3096b3===void 0x0?_0x192f60[_0x2641a5(-0xa1,-_0x441c12._0x16d351,-0x78,-_0x441c12._0x14ede5)]:_0x192f60['totalEstimatedCostUsdTicks']+_0x3096b3,'reportedCostCallCount':_0x12e812===void 0x0?_0x192f60[_0x2641a5(0x7e,0x5,_0x441c12._0xca1258,0x1e)]:_0x192f60[_0x59aac8(-_0x441c12._0x184c5e,-_0x441c12._0x3eabca,-0x1f3,-_0x441c12._0x5ada25)]+0x1,'estimatedCostCallCount':_0x3096b3===void 0x0?_0x192f60[_0x2641a5(-_0x441c12._0x3161fa,_0x441c12._0x4589cb,0xf,-0x1)]:_0x192f60[_0x59aac8(-_0x441c12._0x553463,-0x2b4,-_0x441c12._0x314579,-0x261)]+0x1,'unpricedModelCallCount':_0x12e812===void 0x0&&_0x3096b3===void 0x0?_0x192f60[_0x2641a5(-0x74,-_0x441c12._0x2bfcd2,-_0x441c12._0x995a95,-_0x441c12._0xfe61bd)]+0x1:_0x192f60['unpricedModelCallCount'],..._0x12e812!==void 0x0?{'currentReportedCostUsdTicks':_0x12e812}:{},..._0x3096b3!==void 0x0?{'currentEstimatedCostUsdTicks':_0x3096b3}:{}};}function createAgentMetrics(_0x4883bd={}){const _0x4db4e4={_0x22fa78:0x2a0,_0x4b9318:0x271,_0xfea442:0x22f},_0x142758={_0x3f5b8d:0x221},_0x5412af={_0x941bc3:0x9c,_0x1f7744:0xf3,_0x2183e5:0xa5,_0x4e817e:0xb2,_0x14d017:0x252,_0x5e9e34:0x20a,_0x366b9a:0x289,_0x46f95f:0x234,_0x109c5f:0x2b0,_0x302c64:0xca,_0x22ad97:0x57,_0x9edad0:0x22c,_0x47f552:0x2f,_0x4c4afd:0xf,_0x282cc8:0x47,_0x5d8725:0xb3,_0x3fc9d5:0x24},_0xfaa37f={_0x31a569:0x175},_0x4bcbfa={_0x5e267c:0x375,_0x2c414b:0x321,_0xfc3b08:0x361,_0x7d5828:0x34f,_0x2c3f5f:0x31d,_0x4c3a66:0x363,_0x2e29fc:0x349,_0x59d044:0x2cf,_0x3c8196:0x2f3,_0x75258f:0x332,_0x3a9e23:0x35f,_0x5eee65:0x37b,_0x2c199f:0x2f9,_0x2b99ab:0x242,_0x56ef9f:0x23f,_0x3cbeec:0x37,_0xf3fc1f:0xb7,_0x36a7f9:0x59,_0x571b7e:0x351,_0x4340fa:0x31a,_0x57b6f1:0xb,_0x466d4c:0xa9,_0x4607f5:0x96,_0x27c5e4:0x4e,_0x2a4538:0x7f,_0x1c3f95:0x0,_0xb689ab:0x26,_0x4bc0d5:0x92,_0x1432ee:0x36f,_0x17b546:0x373};let _0x2e2b86=createEmptySnapshot();const _0x2149bc=new Set();let _0x527f7b;const _0x216092=()=>{const _0x5f44e4={..._0x2e2b86};for(const _0x1cf2f8 of _0x2149bc)_0x1cf2f8(_0x5f44e4);};return{'getSnapshot'(){return{..._0x2e2b86};},'recordEvent'(_0x5548d5){const _0x441dde={_0x2b3e3e:0x9d};function _0x3fba89(_0x120b37,_0x306e52,_0x2b558e,_0x7264c){return _0x314c(_0x306e52-0x221,_0x120b37);}function _0x97093a(_0x159a28,_0x498f21,_0x57a078,_0x1748b7){return _0x314c(_0x159a28- -_0x441dde._0x2b3e3e,_0x57a078);}if(_0x5548d5[_0x3fba89(0x379,_0x4bcbfa._0x5e267c,_0x4bcbfa._0x2c414b,_0x4bcbfa._0xfc3b08)]===_0x3fba89(_0x4bcbfa._0x7d5828,0x37d,0x329,_0x4bcbfa._0x2c3f5f)){_0x527f7b=Date[_0x3fba89(_0x4bcbfa._0x4c3a66,0x314,_0x4bcbfa._0x2e29fc,_0x4bcbfa._0x59d044)]();const _0x2930bf=_0x4883bd[_0x3fba89(0x29c,_0x4bcbfa._0x3c8196,0x320,_0x4bcbfa._0x75258f)]?.(_0x5548d5[_0x3fba89(0x38b,0x36b,_0x4bcbfa._0x3a9e23,0x3c3)]);_0x2930bf!==void 0x0&&(_0x2e2b86={..._0x2e2b86,'contextWindowLimit':_0x2930bf},_0x216092());return;}if(_0x5548d5[_0x3fba89(_0x4bcbfa._0x5eee65,0x375,0x34b,0x32a)]==='model_response'){const _0x13f510=_0x527f7b===void 0x0?0x0:Date['now']()-_0x527f7b;_0x527f7b=void 0x0,_0x2e2b86=applyModelCall(_0x2e2b86,{'usage':_0x5548d5[_0x3fba89(_0x4bcbfa._0x2c199f,0x2ae,_0x4bcbfa._0x2b99ab,_0x4bcbfa._0x56ef9f)][_0x97093a(0x33,0x74,0x7,_0x4bcbfa._0x3cbeec)],'modelTimeMs':_0x5548d5['modelTimeMs']??_0x13f510}),_0x216092();return;}if(_0x5548d5[_0x97093a(_0x4bcbfa._0xf3fc1f,0xa6,_0x4bcbfa._0x36a7f9,0xb6)]===_0x3fba89(_0x4bcbfa._0x571b7e,0x35f,_0x4bcbfa._0x4340fa,0x395)){_0x2e2b86={..._0x2e2b86,'toolCallCount':_0x2e2b86[_0x97093a(_0x4bcbfa._0x3cbeec,-_0x4bcbfa._0x57b6f1,_0x4bcbfa._0x466d4c,_0x4bcbfa._0x4607f5)]+0x1},_0x216092();return;}_0x5548d5[_0x97093a(0xb7,_0x4bcbfa._0x27c5e4,0xbc,_0x4bcbfa._0x2a4538)]===_0x97093a(0x4b,_0x4bcbfa._0x1c3f95,_0x4bcbfa._0xb689ab,_0x4bcbfa._0x4bc0d5)&&(_0x2e2b86={..._0x2e2b86,'requestCount':_0x2e2b86[_0x3fba89(0x344,_0x4bcbfa._0x1432ee,_0x4bcbfa._0x17b546,0x3dc)]+0x1},_0x216092());},'reset'(){_0x2e2b86=createEmptySnapshot(),_0x527f7b=void 0x0,_0x216092();},'restore'(_0x52b25f){let _0x4fe13f=createEmptySnapshot();for(const _0x1b99f5 of _0x52b25f['modelCalls']){_0x4fe13f=applyModelCall(_0x4fe13f,{'usage':_0x1b99f5[_0x310cdb(-_0x5412af._0x941bc3,-_0x5412af._0x1f7744,-_0x5412af._0x2183e5,-_0x5412af._0x4e817e)],'modelTimeMs':_0x1b99f5[_0x134a84(_0x5412af._0x14d017,_0x5412af._0x5e9e34,0x1b4,0x1d0)]});}_0x2e2b86={..._0x4fe13f,'requestCount':_0x52b25f[_0x134a84(_0x5412af._0x366b9a,0x24b,_0x5412af._0x46f95f,_0x5412af._0x109c5f)][_0x310cdb(-_0x5412af._0x302c64,-0x8c,-0x95,-_0x5412af._0x22ad97)](_0x1f3fab=>_0x1f3fab[_0x310cdb(-0x84,-0x7e,-0x30,-0x2b)])['length'],'toolCallCount':_0x52b25f[_0x134a84(_0x5412af._0x9edad0,0x1c9,0x20e,0x15c)],'historicalMetricsComplete':_0x52b25f[_0x310cdb(-_0x5412af._0x47f552,_0x5412af._0x4c4afd,-_0x5412af._0x282cc8,0xa)]===0x0,'missingHistoricalModelCallCount':_0x52b25f[_0x310cdb(-0x15,-_0x5412af._0x5d8725,-0x47,_0x5412af._0x3fc9d5)]};function _0x134a84(_0x2433b7,_0x12028f,_0x539a62,_0x2ef371){return _0x314c(_0x12028f-0xf5,_0x2ef371);}function _0x310cdb(_0x37417a,_0xa466db,_0x5383b5,_0x42b73c){return _0x314c(_0x5383b5- -_0xfaa37f._0x31a569,_0xa466db);}_0x527f7b=void 0x0,_0x216092();},'subscribe'(_0x280e1a){_0x2149bc[_0x30775e(_0x4db4e4._0x22fa78,_0x4db4e4._0x4b9318,_0x4db4e4._0xfea442,0x304)](_0x280e1a);function _0x30775e(_0x5930ec,_0x1e0065,_0x37f16d,_0x333857){return _0x314c(_0x5930ec-_0x142758._0x3f5b8d,_0x1e0065);}return()=>{_0x2149bc['delete'](_0x280e1a);};}};}function makeExtensionContext(_0x5629cf){return{'state':_0x5629cf};}async function runStage(_0x100884,_0x240566,_0x152f57,_0x311f43){const _0x137800={_0x245eee:0x4b7,_0x3e048b:0x46e,_0x3214a6:0x40f,_0x3fad0e:0x47e,_0x15a200:0x3b4,_0x53ee24:0x37c},_0x3d2727={_0x3fe132:0x92,_0x5c3137:0x11f,_0x382985:0x4e},_0x16b5ba={_0x1d2782:0x2b},_0x319836=await _0x100884[_0x513bd5(_0x137800._0x245eee,_0x137800._0x3e048b,_0x137800._0x3214a6,_0x137800._0x3fad0e)](_0x240566,_0x152f57,_0x311f43);await _0x100884[_0x1fb32f(0x3d8,_0x137800._0x15a200,_0x137800._0x53ee24,0x418)](_0x240566,_0x319836,_0x311f43);function _0x1fb32f(_0x2773d0,_0x5ee57a,_0x1dc945,_0x52debc){return _0x4845a1(_0x1dc945,_0x5ee57a-0x94,_0x1dc945-0x28,_0x5ee57a- -_0x16b5ba._0x1d2782);}function _0x513bd5(_0x1c4bca,_0x4ad9d7,_0x30042c,_0x3ddb0b){return _0x4845a1(_0x1c4bca,_0x4ad9d7-_0x3d2727._0x3fe132,_0x30042c-_0x3d2727._0x5c3137,_0x4ad9d7-_0x3d2727._0x382985);}return _0x319836;}async function emitEvent2(_0x409bd6,_0x42aa97,_0x2b7038){await _0x409bd6?.(_0x42aa97,_0x2b7038);}function replaceToolUseBlocks(_0x25d79d,_0x1f6f05){const _0xf5b7f5={_0x800120:0x1dc,_0x5a42ed:0x1bb},_0x5eca42={_0x57d319:0x38b,_0x4f8f7d:0x3a4},_0x4256fc={_0xe1f0d5:0x1,_0x24330c:0x5db},_0x5cd44={_0xf213b3:0x5a7},_0x172dbb={_0x229171:0xb5};function _0x2baa4f(_0x20717e,_0x4bd55e,_0x48f93d,_0x4f3eda){return _0xec6dab(_0x20717e-0x1d2,_0x4bd55e-_0x172dbb._0x229171,_0x48f93d- -0x5a4,_0x4f3eda);}let _0x2bf9a2=0x0;return{..._0x25d79d,'content':_0x25d79d['content'][_0x2baa4f(-0x173,-_0xf5b7f5._0x800120,-_0xf5b7f5._0x5a42ed,-0x16d)](_0x28379d=>{function _0x498930(_0x22f2f3,_0x31698e,_0x16cb1d,_0x15e30d){return _0x2baa4f(_0x22f2f3-0xc9,_0x31698e-0x2,_0x16cb1d-_0x5cd44._0xf213b3,_0x31698e);}if(_0x28379d[_0x996ea1(0x46c,0x452,0x41a,0x434)]!==_0x498930(_0x5eca42._0x57d319,_0x5eca42._0x4f8f7d,0x382,0x39c))return _0x28379d;function _0x996ea1(_0xf14010,_0x2574ec,_0x38f109,_0x22d1d9){return _0x2baa4f(_0xf14010-0x7c,_0x2574ec-_0x4256fc._0xe1f0d5,_0x2574ec-_0x4256fc._0x24330c,_0x38f109);}const _0x1abc27=_0x1f6f05[_0x2bf9a2];return _0x2bf9a2+=0x1,structuredClone(_0x1abc27);})};}function createAssistantMessageId(_0xf7aa49,_0x13989e){const _0xd218f0={_0x13e9ac:0x1e8,_0x1710c9:0x194},_0x27b3c5={_0x325bf4:0x1d3};function _0x521161(_0x459e94,_0x25479e,_0xc8cf1e,_0x401ae4){return _0xec6dab(_0x459e94-0x13,_0x25479e-0x113,_0x401ae4- -_0x27b3c5._0x325bf4,_0x459e94);}return _0xf7aa49+_0x521161(0x1e6,0x1fa,_0xd218f0._0x13e9ac,_0xd218f0._0x1710c9)+_0x13989e;}function _0x314c(_0x3ddd64,_0x5e0116){_0x3ddd64=_0x3ddd64-0x7d;const _0x59822d=_0x5982();let _0x314cf0=_0x59822d[_0x3ddd64];if(_0x314c['pBKdop']===undefined){var _0x7a008f=function(_0x304873){const _0xc02e7b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x424468='',_0x4eadb8='';for(let _0x346b66=0x0,_0x1eefd9,_0x19e09e,_0x5e81a8=0x0;_0x19e09e=_0x304873['charAt'](_0x5e81a8++);~_0x19e09e&&(_0x1eefd9=_0x346b66%0x4?_0x1eefd9*0x40+_0x19e09e:_0x19e09e,_0x346b66++%0x4)?_0x424468+=String['fromCharCode'](0xff&_0x1eefd9>>(-0x2*_0x346b66&0x6)):0x0){_0x19e09e=_0xc02e7b['indexOf'](_0x19e09e);}for(let _0x5a7d0e=0x0,_0x378698=_0x424468['length'];_0x5a7d0e<_0x378698;_0x5a7d0e++){_0x4eadb8+='%'+('00'+_0x424468['charCodeAt'](_0x5a7d0e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4eadb8);};_0x314c['ETTDwR']=_0x7a008f,_0x314c['OOyykN']={},_0x314c['pBKdop']=!![];}const _0x1c78ae=_0x59822d[0x0],_0x291848=_0x3ddd64+_0x1c78ae,_0x32edae=_0x314c['OOyykN'][_0x291848];return!_0x32edae?(_0x314cf0=_0x314c['ETTDwR'](_0x314cf0),_0x314c['OOyykN'][_0x291848]=_0x314cf0):_0x314cf0=_0x32edae,_0x314cf0;}function createReasoningMessageId(_0x3a0513){const _0x578d61={_0x39edfe:0x61,_0x2f5284:0x118},_0x25787d={_0x5582a5:0x3a,_0x5bad92:0x353};function _0x34ee2f(_0x153892,_0x2dd91d,_0x5ee368,_0x3c70d8){return _0xec6dab(_0x153892-0x7a,_0x2dd91d-_0x25787d._0x5582a5,_0x3c70d8- -_0x25787d._0x5bad92,_0x5ee368);}return _0x3a0513+_0x34ee2f(_0x578d61._0x39edfe,_0x578d61._0x2f5284,0x65,0xd4);}function withMessageId(_0x5502c3,_0x5cdd98){if(_0x5502c3['id']===_0x5cdd98)return _0x5502c3;return{..._0x5502c3,'id':_0x5cdd98};}function createAssistantChunkEvent(_0x6b9160,_0x1d8ff2){const _0x123fc1={_0x29786b:0x16f,_0x108292:0x1fc,_0x89876b:0x1a9,_0xfb8884:0x29d,_0x5b9da8:0x346,_0x46e6f2:0x398,_0x761289:0x3b8,_0x3bc173:0x231,_0x168cda:0x1d1},_0x18c352={_0x16dc23:0x5ec};if(_0x6b9160[_0x4513e3(-_0x123fc1._0x29786b,-0x183,-0x1c0,-0x15a)]!=='content_delta')return void 0x0;if(_0x6b9160['text']===void 0x0)return void 0x0;function _0x4513e3(_0x3c1805,_0x2bf9dd,_0x16b283,_0x21359d){return _0x4845a1(_0x16b283,_0x2bf9dd-0x8f,_0x16b283-0x19d,_0x21359d- -_0x18c352._0x16dc23);}function _0x55ab74(_0x2ba6d1,_0x2b13eb,_0xe680ef,_0x5c1a2e){return _0xec6dab(_0x2ba6d1-0x5f,_0x2b13eb-0x12d,_0xe680ef- -0xcc,_0x2b13eb);}return{'type':_0x4513e3(-0x172,-0x1c8,-_0x123fc1._0x108292,-_0x123fc1._0x89876b),'index':_0x6b9160[_0x55ab74(_0x123fc1._0xfb8884,_0x123fc1._0x5b9da8,0x2d8,0x31f)]??0x0,'messageId':_0x1d8ff2,'chunk':{'type':_0x55ab74(_0x123fc1._0x46e6f2,_0x123fc1._0x761289,0x34e,0x2d9),'index':_0x6b9160[_0x4513e3(-0x18f,-_0x123fc1._0x3bc173,-0x1fd,-_0x123fc1._0x168cda)]??0x0,'text':_0x6b9160['text']}};}function createToolUseChunkEvent(_0x80b467,_0x34a665){const _0x56d20f={_0x126b27:0x25,_0x58b150:0x2c,_0x1a00c3:0x45,_0x223c5c:0x346,_0x3972a2:0x3d2,_0x22dc30:0x356,_0x496fff:0x2fb,_0x44df1b:0xfd,_0x59899c:0x38,_0x57dff7:0x31,_0x501d78:0xae,_0x5d6bf2:0x89,_0x303d08:0xf1,_0x5ea07c:0x4e,_0x4598d8:0x3bb,_0x417c84:0x404,_0x20b0d3:0x418},_0xb7de51={_0x2895f1:0x8c,_0x1630f7:0x447},_0x565cea={_0x39991d:0x78,_0x58a21f:0x1da,_0xec7ec0:0xda};function _0x568f4a(_0x5b4aa5,_0x5e9592,_0x571978,_0x515861){return _0x4845a1(_0x515861,_0x5e9592-_0x565cea._0x39991d,_0x571978-_0x565cea._0x58a21f,_0x5b4aa5- -_0x565cea._0xec7ec0);}if(_0x80b467[_0x146b83(_0x56d20f._0x126b27,-_0x56d20f._0x58b150,-0x4b,-_0x56d20f._0x1a00c3)]!==_0x568f4a(0x374,_0x56d20f._0x223c5c,_0x56d20f._0x3972a2,_0x56d20f._0x22dc30))return void 0x0;function _0x146b83(_0x55a20c,_0x2a73fd,_0x25dadc,_0x196acd){return _0xec6dab(_0x55a20c-0xe7,_0x2a73fd-_0xb7de51._0x2895f1,_0x2a73fd- -_0xb7de51._0x1630f7,_0x196acd);}return{'type':_0x568f4a(0x361,_0x56d20f._0x496fff,0x3b7,0x2fa),'index':_0x80b467[_0x146b83(-0x84,-0xa3,-0x5c,-_0x56d20f._0x44df1b)]??0x0,'messageId':_0x34a665,'chunk':{'type':_0x146b83(-_0x56d20f._0x59899c,-0x70,-_0x56d20f._0x57dff7,-0x33),'id':_0x80b467['id']??'','index':_0x80b467['index']??0x0,..._0x80b467[_0x146b83(-0x55,-0xbf,-_0x56d20f._0x501d78,-_0x56d20f._0x5d6bf2)]!==void 0x0?{'name':_0x80b467[_0x146b83(-0x8f,-0xbf,-0x124,-_0x56d20f._0x303d08)]}:{},..._0x80b467[_0x146b83(-0x72,-0x29,-_0x56d20f._0x5ea07c,0x2f)]!==void 0x0?{'inputDelta':_0x80b467[_0x568f4a(_0x56d20f._0x4598d8,0x381,_0x56d20f._0x417c84,_0x56d20f._0x20b0d3)]}:{}}};}function createReasoningChunkEvent(_0x282a36,_0x9d8de3){const _0x329a28={_0x1e0b77:0x37f,_0x5bb99c:0x34b,_0x1d0a9f:0x150,_0x122834:0x370,_0x353306:0x393,_0x16c8f8:0x133,_0x5e76a7:0x36b,_0x58c011:0x3f4,_0x2575f9:0x395,_0x5ba101:0x105,_0x1fc6aa:0x192,_0x4b88ed:0x12c,_0x5e02d1:0x2c9,_0x167f0a:0x104,_0x1117ba:0x34a,_0x11430b:0x388,_0x5f31be:0x32d,_0x5e36e5:0x419,_0x193a09:0x36c,_0x26f8c2:0x75,_0x5a223a:0x73,_0x19667b:0x34f,_0x4ce87b:0x334,_0x57c729:0x42,_0xbc9f29:0x5a,_0x4e6117:0x76},_0xa2c1e4={_0x29f0b6:0x2c,_0xbb1baa:0x124},_0x1ba3fc={_0x39a68d:0x49,_0x111011:0xa8};function _0x15e260(_0x8ed6b0,_0x3671b2,_0x4d5861,_0x55fd7f){return _0x4845a1(_0x4d5861,_0x3671b2-_0x1ba3fc._0x39a68d,_0x4d5861-0x196,_0x55fd7f- -_0x1ba3fc._0x111011);}function _0x1c7c80(_0x3921d7,_0x482485,_0x452162,_0x7d1f55){return _0x4845a1(_0x3921d7,_0x482485-_0xa2c1e4._0x29f0b6,_0x452162-_0xa2c1e4._0xbb1baa,_0x7d1f55- -0x4eb);}switch(_0x282a36['type']){case _0x15e260(_0x329a28._0x1e0b77,0x3b2,_0x329a28._0x5bb99c,0x387):return{'type':_0x1c7c80(-_0x329a28._0x1d0a9f,-0x13d,-0x169,-0xfb),'index':_0x282a36[_0x1c7c80(-0xa8,-0xe5,-0xb1,-0xd0)],'messageId':_0x9d8de3,'chunk':{'type':_0x15e260(_0x329a28._0x122834,0x324,_0x329a28._0x353306,0x387),'index':_0x282a36['index']??0x0,'thinking':_0x282a36[_0x1c7c80(-_0x329a28._0x16c8f8,-0xcf,-0x12d,-0xfc)]??''},'text':_0x282a36['thinking']??''};case'openai_reasoning_delta':return{'type':'reasoning_chunk','index':_0x282a36[_0x15e260(0x305,0x2f0,_0x329a28._0x5e76a7,0x317)],'messageId':_0x9d8de3,'chunk':{'type':_0x15e260(0x380,0x327,_0x329a28._0x58c011,_0x329a28._0x2575f9),'contentIndex':_0x282a36[_0x1c7c80(-0x14f,-_0x329a28._0x5ba101,-_0x329a28._0x1fc6aa,-_0x329a28._0x4b88ed)]??0x0,'delta':_0x282a36[_0x15e260(0x2f7,_0x329a28._0x5e02d1,0x31e,0x334)]??'','itemId':_0x282a36['itemId']??'','outputIndex':_0x282a36[_0x1c7c80(-_0x329a28._0x167f0a,-0xa9,-0x114,-0x110)]??0x0},'text':_0x282a36[_0x15e260(_0x329a28._0x1117ba,_0x329a28._0x11430b,_0x329a28._0x5f31be,0x334)]??''};case _0x15e260(0x3cb,_0x329a28._0x5e36e5,_0x329a28._0x193a09,0x3d0):return{'type':'reasoning_chunk','index':_0x282a36['summaryIndex'],'messageId':_0x9d8de3,'chunk':{'type':_0x1c7c80(-_0x329a28._0x26f8c2,-0xe0,-0x6b,-_0x329a28._0x5a223a),'delta':_0x282a36[_0x15e260(0x333,_0x329a28._0x19667b,0x34d,_0x329a28._0x4ce87b)]??'','itemId':_0x282a36['itemId']??'','outputIndex':_0x282a36['outputIndex']??0x0,'summaryIndex':_0x282a36[_0x1c7c80(-0xb7,-_0x329a28._0x57c729,-_0x329a28._0xbc9f29,-_0x329a28._0x4e6117)]??0x0},'text':_0x282a36['delta']??''};default:return void 0x0;}}function isAbortedToolResult(_0x5eeacb){const _0x13278f={_0xf4f87d:0x345,_0x152737:0x379,_0x486021:0x3a5,_0x90604d:0x37f,_0x2aec71:0x2d9,_0x922a1f:0x2d7,_0x4f25aa:0x2eb},_0x5e9528={_0x18c3a1:0x10,_0x29d424:0x628};function _0x47c4fc(_0x56e283,_0x2da872,_0x55b78c,_0x20ccbc){return _0xec6dab(_0x56e283-0xeb,_0x2da872-0x32,_0x55b78c-0x31,_0x20ccbc);}function _0x4a49cb(_0x3c2f18,_0xe175b5,_0x1a5e7a,_0x4ba2dc){return _0xec6dab(_0x3c2f18-_0x5e9528._0x18c3a1,_0xe175b5-0x17b,_0x1a5e7a- -_0x5e9528._0x29d424,_0x3c2f18);}return _0x5eeacb[_0x47c4fc(_0x13278f._0xf4f87d,0x41c,0x3a8,0x3d0)]===_0x47c4fc(0x400,_0x13278f._0x152737,_0x13278f._0x486021,_0x13278f._0x90604d)&&_0x5eeacb[_0x47c4fc(0x3da,0x41c,0x3ec,0x3d8)][_0x4a49cb(-_0x13278f._0x2aec71,-0x296,-_0x13278f._0x922a1f,-_0x13278f._0x4f25aa)]===!![];}async function executeModelRequest(_0x5089a2,_0x22e090,_0x33b889,_0xf46d9f,_0x2162ec,_0x15ddfa){const _0x342062={_0x5f5788:0x39d,_0x44cbdb:0x389,_0x2502f1:0x3de,_0x5a34f6:0x33a,_0x5b2900:0x343,_0x20f9d6:0x38f,_0x3df7ce:0x33e,_0x26843a:0x37d,_0x17191a:0x371,_0x573ea5:0x3d7,_0x2dacf6:0x3f6,_0x4c8647:0x1a0,_0x539c18:0x109,_0x26fbf0:0x14e,_0x5a8028:0x1b9,_0x46ac0a:0x10e,_0x12c61b:0x354,_0x450fa8:0x110,_0x5f32c5:0x9d,_0x475de3:0xd9,_0x1c041c:0x2f7,_0x55c2b2:0x322,_0x27a76a:0x32f,_0x52017c:0x33c,_0x36e0e6:0x2e0,_0x46a123:0x34b,_0x150f2e:0x93,_0x308075:0x85,_0x3a054d:0x3d7,_0x255fd9:0x3db,_0x59956d:0x97,_0x8233f8:0x39,_0x554508:0xd4,_0x1b94e7:0x13c,_0x144814:0x188,_0x2b379b:0x2e6,_0x4b75a2:0xaf,_0xc9b237:0xc1,_0x4d064f:0x107,_0xbe75df:0x4f,_0x497d3e:0x37e,_0x3dc13c:0x308,_0x90db98:0x30b,_0x5e786e:0x334,_0x435d0a:0x2ce,_0x2cf8c5:0x32e,_0x40daf2:0x19c,_0x863049:0x36b,_0x316a60:0x324,_0x17c40b:0x108,_0xea6250:0xab,_0x5db9c0:0x39f,_0x127bc8:0xda,_0x121c57:0x153,_0x1a14a7:0x3d2,_0x406353:0x44b,_0x5cd1ef:0x3ca,_0x297cb2:0xc3,_0x9eeb:0xa6,_0x596565:0x108,_0xb246b2:0x123,_0x600943:0x163,_0x1bbd92:0x166,_0x4f17ba:0x331,_0x57f4c5:0x64,_0x5afdc2:0x3b0,_0x45f211:0x352,_0x4c804b:0x36c},_0x4db0fc={_0x1df33a:0x9c,_0x5628cf:0x193,_0xd5842e:0x329},_0x1deaac={_0x58ae1d:0xf3,_0x55868:0x107,_0x39998b:0x9c};function _0x392245(_0x18c2cc,_0x21ee12,_0x1dfcdc,_0x18a8d6){return _0x4845a1(_0x1dfcdc,_0x21ee12-_0x1deaac._0x58ae1d,_0x1dfcdc-_0x1deaac._0x55868,_0x18a8d6- -_0x1deaac._0x39998b);}throwIfAborted(_0x22e090['signal']);if(!_0x22e090['streaming']||!_0x33b889[_0x392245(_0x342062._0x5f5788,0x36d,_0x342062._0x44cbdb,0x386)])return await _0x33b889[_0x392245(_0x342062._0x2502f1,_0x342062._0x5a34f6,0x38f,0x385)](_0x5089a2,{'signal':_0x22e090[_0x392245(0x333,_0x342062._0x5b2900,_0x342062._0x20f9d6,_0x342062._0x3df7ce)]});let _0x5a1ac0;for await(const _0x4b1a7c of _0x33b889['stream'](_0x5089a2,{'signal':_0x22e090[_0x392245(0x30f,0x328,0x2ca,_0x342062._0x3df7ce)]})){throwIfAborted(_0x22e090[_0x392245(0x375,_0x342062._0x26843a,_0x342062._0x17191a,0x33e)]);if(_0x4b1a7c[_0x392245(0x3a1,_0x342062._0x573ea5,0x386,_0x342062._0x2dacf6)]===_0x7ade(0x135,0x11b,_0x342062._0x4c8647,_0x342062._0x539c18)){_0x15ddfa['meta'][_0x7ade(0x97,0x35,0x51,0x23)]!==void 0x0&&_0x15ddfa[_0x7ade(_0x342062._0x26fbf0,_0x342062._0x5a8028,_0x342062._0x46ac0a,0x1b2)][_0x392245(_0x342062._0x12c61b,0x391,0x31c,0x32a)]===void 0x0&&(_0x15ddfa[_0x7ade(0x14e,_0x342062._0x450fa8,0x175,0x198)][_0x7ade(_0x342062._0x5f32c5,_0x342062._0x475de3,0x9e,0x6c)]=Date['now']());_0x5a1ac0=_0x4b1a7c[_0x392245(_0x342062._0x1c041c,0x2be,_0x342062._0x55c2b2,_0x342062._0x27a76a)];continue;}if(_0x4b1a7c['type']===_0x7ade(0xbe,0xef,0xf9,0x12f)){await emitEvent2(_0xf46d9f[_0x392245(0x332,0x3b1,0x2f1,_0x342062._0x52017c)],{'type':_0x392245(0x2f9,_0x342062._0x36e0e6,0x346,_0x342062._0x46a123),'assistantMessageId':_0x15ddfa[_0x7ade(0xf1,0x96,_0x342062._0x150f2e,_0x342062._0x308075)],'reasoningMessageId':_0x15ddfa['reasoningMessageId']},_0x2162ec),delete _0x15ddfa[_0x392245(0x3a3,_0x342062._0x3a054d,0x3bb,_0x342062._0x255fd9)][_0x7ade(_0x342062._0x59956d,_0x342062._0x8233f8,0xea,_0x342062._0x554508)],delete _0x15ddfa['meta']['reasoningCompletedAt'];continue;}if(_0x4b1a7c[_0x7ade(0x169,_0x342062._0x1b94e7,0x1c5,_0x342062._0x144814)]===_0x392245(0x360,_0x342062._0x2b379b,0x338,0x325)){await emitEvent2(_0xf46d9f[_0x7ade(_0x342062._0x4b75a2,_0x342062._0xc9b237,_0x342062._0x4d064f,_0x342062._0xbe75df)],{..._0x4b1a7c,'assistantMessageId':_0x15ddfa[_0x392245(0x3e8,0x3de,0x398,_0x342062._0x497d3e)]},_0x2162ec);continue;}const _0x52070e=createReasoningChunkEvent(_0x4b1a7c,_0x15ddfa[_0x392245(0x2cb,_0x342062._0x3dc13c,_0x342062._0x90db98,_0x342062._0x5e786e)]);if(_0x52070e&&_0x52070e['type']==='reasoning_chunk'&&_0x52070e[_0x392245(_0x342062._0x435d0a,_0x342062._0x52017c,0x37b,_0x342062._0x2cf8c5)]['length']>0x0){_0x15ddfa['meta']['reasoningStartedAt']===void 0x0&&(_0x15ddfa[_0x7ade(0x14e,_0x342062._0x40daf2,0x109,0x185)][_0x392245(0x388,0x303,_0x342062._0x863049,_0x342062._0x316a60)]=Date[_0x7ade(_0x342062._0x17c40b,_0x342062._0x539c18,0x11a,_0x342062._0xea6250)]());await emitEvent2(_0xf46d9f[_0x392245(0x355,_0x342062._0x5db9c0,0x354,_0x342062._0x52017c)],_0x52070e,_0x2162ec);continue;}const _0x3a6cf4=createAssistantChunkEvent(_0x4b1a7c,_0x15ddfa[_0x7ade(0xf1,0x147,0xcf,0x86)]);if(_0x3a6cf4){_0x15ddfa[_0x7ade(0x14e,0x112,_0x342062._0x127bc8,_0x342062._0x121c57)]['reasoningStartedAt']!==void 0x0&&_0x15ddfa['meta']['reasoningCompletedAt']===void 0x0&&(_0x15ddfa[_0x392245(_0x342062._0x1a14a7,_0x342062._0x406353,_0x342062._0x5cd1ef,_0x342062._0x255fd9)][_0x7ade(_0x342062._0x5f32c5,_0x342062._0x297cb2,_0x342062._0x9eeb,0xb6)]=Date[_0x7ade(_0x342062._0x596565,_0x342062._0xb246b2,_0x342062._0x600943,_0x342062._0x1bbd92)]());await emitEvent2(_0xf46d9f['onEvent'],_0x3a6cf4,_0x2162ec);continue;}const _0x2b0ce8=createToolUseChunkEvent(_0x4b1a7c,_0x15ddfa[_0x392245(_0x342062._0x4f17ba,0x33a,0x323,0x37e)]);_0x2b0ce8&&await emitEvent2(_0xf46d9f[_0x7ade(0xaf,0xac,_0x342062._0xb246b2,_0x342062._0x57f4c5)],_0x2b0ce8,_0x2162ec);}function _0x7ade(_0x23fa48,_0x55005c,_0x529c4b,_0x527dc9){return _0x4845a1(_0x527dc9,_0x55005c-_0x4db0fc._0x1df33a,_0x529c4b-_0x4db0fc._0x5628cf,_0x23fa48- -_0x4db0fc._0xd5842e);}if(!_0x5a1ac0)throw new Error(_0x392245(_0x342062._0x5afdc2,_0x342062._0x3df7ce,_0x342062._0x45f211,_0x342062._0x4c804b));return _0x5a1ac0;}function makeTurnGuards(_0x8bcf0c,_0x277db5,_0x23903c,_0x5bee0b,_0x57f986){return{async 'stage'(_0xafa171,_0x13c4ff){return throwIfAborted(_0x8bcf0c),await runStage(_0x277db5,_0xafa171,_0x13c4ff,_0x5bee0b);},async 'emit'(_0x19399e){throwIfAborted(_0x8bcf0c),await emitEvent2(_0x23903c,_0x19399e,_0x57f986);},async 'stageUnchecked'(_0x2f8360,_0x3e2d65){return await runStage(_0x277db5,_0x2f8360,_0x3e2d65,_0x5bee0b);},async 'emitUnchecked'(_0x57cc6c){await emitEvent2(_0x23903c,_0x57cc6c,_0x57f986);}};}async function runTurn(_0x587fca,_0x5f5561){const _0x3105eb={_0x438fe9:0xe4,_0x5cccba:0x65,_0x21d4df:0x195,_0x40fbe1:0xeb,_0x95374e:0xa9,_0xbbde89:0x13e,_0x53076d:0x10d,_0x23ea1e:0x3cc,_0xfe7b85:0x48d,_0x380854:0x437,_0x1f9888:0x105,_0x1c899c:0xf2,_0x52f6de:0x12e,_0x26d781:0x4e7,_0x3c824e:0x4f4,_0xc6889f:0x4db,_0x12ba8d:0x82,_0x55d649:0xc6,_0x1acc4d:0x46b,_0x1123c0:0x49d,_0x86fd7d:0xa3,_0xdf0354:0xd8,_0x79850a:0xc2,_0x32ffa8:0x527,_0x62b370:0x463,_0x38f441:0x4b2,_0x449bf7:0x134,_0x2d5391:0x481,_0x4a8398:0x426,_0xfea1a2:0x119,_0x23f000:0xcb,_0x53d480:0xcf,_0x1f6f2b:0x40c,_0x325c4a:0x405,_0x51efb6:0x434,_0x4741f8:0x4b6,_0x515a07:0x9a,_0x393fe4:0x403,_0x10f987:0x465,_0x1ed2e9:0x85,_0x2a1672:0x4f,_0x4eb7c8:0x141,_0x2e4671:0x12c,_0x1600f5:0xdb,_0x569347:0x3bb,_0xdf3e51:0x3b9,_0x59cf60:0x423,_0x3f429b:0x44b,_0x5c3c88:0x44c,_0x2ddae6:0x13d,_0x37f3b3:0xba,_0x26497e:0x90,_0x4fd253:0xef,_0x51a8c0:0x10f,_0x4413c5:0x93,_0xe7e1e1:0xef,_0x4913f5:0xab,_0xeb0342:0xbd,_0x3f0e23:0x6c,_0x3c8292:0x126,_0xd65128:0x12f,_0x2283d8:0x48e,_0x5d2abe:0x463,_0x2a2013:0xd6,_0x5ddf08:0xa5,_0x17635d:0xad,_0x5369d8:0x7f,_0x48999d:0xaa,_0x3a8bad:0x4ff,_0x123781:0x484,_0x4d0e61:0x4a6,_0x3be0d6:0x498,_0x51775e:0x4b8,_0x4dd43d:0x46c,_0x59ddee:0x492,_0xab2e38:0xe3,_0x6fc811:0x8c,_0x3300f8:0x103,_0x533b6b:0x4fb,_0x5307ed:0x463,_0x37fceb:0x48c,_0x2480fc:0x46a,_0x57b984:0x525,_0x32e959:0x4a3,_0x219f9c:0xea,_0x59be40:0x9a,_0x4b91a9:0xae,_0x45b88d:0x15d,_0x486cf9:0x146,_0x31063e:0x1ab,_0x2da6f8:0x133,_0x198b4c:0x105,_0x4b9772:0x146,_0x14515e:0x15d,_0x5b6400:0x3d6,_0x6785b9:0x425,_0x293991:0x471,_0x338c2b:0x12f,_0x3d67de:0xdf,_0x5abf0b:0xd7,_0x2c1d81:0x135,_0x10f086:0xfd,_0x1d6364:0x495,_0x1866c2:0x42e,_0x585542:0xcb,_0x5733d4:0xe6,_0x3d362d:0xc1,_0x15c8cb:0xe7,_0x5a2692:0x479,_0x331ea4:0x499,_0x65f053:0x48f,_0x167d85:0xdd,_0x1789fb:0x9c,_0x3cab32:0x498,_0x295a4a:0x4b2,_0x234a49:0x4ef,_0xa4179b:0x4bb,_0x4390e5:0x3e3,_0x56aba5:0x106,_0x3d55ee:0x105,_0xab4c6e:0xbf,_0x337feb:0x4a2,_0x373723:0x3d8,_0x34a9a2:0xf9,_0x4ab862:0xa3,_0x1bcdc5:0x102,_0x30ea2c:0xbc,_0x2a17a3:0x4ca,_0x48eade:0x4e6,_0x36c194:0x463,_0x1e713f:0x3cb,_0x615b54:0x434,_0x2c55e8:0x6d,_0x26e2f5:0x8e,_0x4967b7:0xcc,_0x2515c2:0xd0,_0x161c7b:0x3},_0x1d16e0={_0x1ae382:0x29,_0x42824e:0x4e},_0x198e06={_0x31d10c:0xb6,_0x54eea2:0xc5,_0x495f15:0x11c,_0xa9eb3c:0x14a,_0x4d84fe:0xcf,_0x11dd67:0x126,_0x25b23a:0x101,_0x58644e:0x14,_0xa8406f:0x72,_0x7be8c7:0xa4,_0x242af5:0x7c,_0x2c9cf9:0xc8,_0x2a04ca:0xd5},_0x4143bf={_0x7501dc:0x1a5,_0x27873c:0x17c,_0x5dba70:0x1a9,_0x19331b:0x10f,_0x419a5b:0x19a},_0x29d9c6={_0x1fed9f:0x18f,_0x8ee9a8:0x35b},_0x147f18=_0x5f5561['chatModel'],_0xfcecd1=_0x587fca['signal']??new AbortController()[_0x98cc29(0x7f,_0x3105eb._0x438fe9,_0x3105eb._0x5cccba,0xa2)],_0x5a7b1c={'sessionId':_0x587fca[_0x1494ba(0x3dd,0x41c,0x3e0,0x44c)],'turnId':_0x587fca[_0x98cc29(0x13d,_0x3105eb._0x21d4df,0xfc,0x12e)],'system':normalizeSystem(_0x587fca[_0x98cc29(_0x3105eb._0x40fbe1,_0x3105eb._0x95374e,_0x3105eb._0xbbde89,_0x3105eb._0x53076d)]),'messages':(_0x587fca[_0x1494ba(_0x3105eb._0x23ea1e,_0x3105eb._0xfe7b85,_0x3105eb._0x380854,0x42e)]??[])[_0x98cc29(_0x3105eb._0x1f9888,_0x3105eb._0x1c899c,0x143,_0x3105eb._0x52f6de)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x5f5561['sessionDir']===_0x1494ba(_0x3105eb._0x26d781,0x523,_0x3105eb._0x3c824e,_0x3105eb._0xc6889f)?_0x5f5561[_0x98cc29(_0x3105eb._0x12ba8d,0x4f,_0x3105eb._0x55d649,0x19)]():_0x5f5561[_0x1494ba(_0x3105eb._0x1acc4d,_0x3105eb._0x1123c0,0x3ed,0x42b)]},_0x22c721=makeExtensionContext(_0x5a7b1c),_0x537353={'sessionId':_0x5a7b1c[_0x98cc29(_0x3105eb._0x86fd7d,_0x3105eb._0xdf0354,_0x3105eb._0x79850a,0x71)],'turnId':_0x5a7b1c['turnId'],'state':_0x5a7b1c,'signal':_0xfcecd1,..._0x5f5561[_0x1494ba(_0x3105eb._0x32ffa8,_0x3105eb._0x62b370,0x4d2,_0x3105eb._0x38f441)]?{'askUser':_0x5f5561['askUser']}:{},..._0x5f5561[_0x98cc29(_0x3105eb._0x449bf7,0x142,0x12c,0x176)]?{'setTopic':_0x5f5561['setTopic']}:{}},{stage:_0x5fcbbc,emit:_0x17c8c7,stageUnchecked:_0x184537,emitUnchecked:_0x5b2333}=makeTurnGuards(_0xfcecd1,_0x5f5561['registry'],_0x5f5561[_0x1494ba(0x3e1,0x421,_0x3105eb._0x2d5391,_0x3105eb._0x4a8398)],_0x22c721,_0x537353);function _0x98cc29(_0x3c6cf6,_0x192d88,_0x51e4f4,_0x5daecf){return _0x4845a1(_0x51e4f4,_0x192d88-_0x29d9c6._0x1fed9f,_0x51e4f4-0xf5,_0x3c6cf6- -_0x29d9c6._0x8ee9a8);}const _0x284453=async(_0xd376da,_0x44b6f5)=>{const _0x4ad403={_0x2e6526:0x15c},_0x4a5f0a={_0x830a75:0xee,_0x45ffe5:0x2e7};function _0x1335b2(_0x2d623e,_0x5116bc,_0x21b191,_0xbb9b80){return _0x1494ba(_0x2d623e,_0x5116bc-0x182,_0x21b191-_0x4a5f0a._0x830a75,_0xbb9b80- -_0x4a5f0a._0x45ffe5);}function _0x433146(_0x8d156d,_0x5ef9e5,_0x4d0a77,_0x41e5ec){return _0x1494ba(_0x8d156d,_0x5ef9e5-_0x4ad403._0x2e6526,_0x4d0a77-0x1e0,_0x4d0a77- -0x2c3);}const _0x29bd99=_0x44b6f5?{..._0x22c721,'turnMeta':_0x44b6f5}:_0x22c721;await _0x5f5561[_0x1335b2(0x1c7,_0x4143bf._0x7501dc,_0x4143bf._0x27873c,_0x4143bf._0x5dba70)][_0x433146(0x16b,_0x4143bf._0x19331b,0x16a,_0x4143bf._0x419a5b)]('afterMessageAppend',structuredClone(_0xd376da),_0x29bd99);},_0x9260f1=async _0x1f79f9=>{const _0x107d0d={_0x8880f6:0x17d},_0x1482ee={_0x4fbbef:0x150,_0x2ae6bb:0x14d,_0x547849:0x2d};if(!_0x587fca[_0xc7f100(0x108,_0x198e06._0x31d10c,0xbc,0xcb)])return 0x0;const _0x29fd3b=await _0x587fca['drainSteering']();throwIfAborted(_0xfcecd1);if(_0x29fd3b[_0xc7f100(_0x198e06._0x54eea2,_0x198e06._0x495f15,_0x198e06._0xa9eb3c,_0x198e06._0x4d84fe)]===0x0)return 0x0;await _0x1f79f9?.();function _0x5e2ac3(_0x3462db,_0x18d715,_0x54bdf9,_0x12e96e){return _0x1494ba(_0x54bdf9,_0x18d715-_0x1482ee._0x4fbbef,_0x54bdf9-_0x1482ee._0x2ae6bb,_0x18d715-_0x1482ee._0x547849);}for(const _0x5cc0ac of _0x29fd3b){const _0x5b0455=await _0x5fcbbc(_0xc7f100(_0x198e06._0x11dd67,_0x198e06._0x25b23a,0x128,0x177),normalizeMessage(_0x5cc0ac));throwIfAborted(_0xfcecd1),_0x5a7b1c[_0xc7f100(_0x198e06._0x58644e,_0x198e06._0xa8406f,_0x198e06._0x7be8c7,0x82)]['push'](_0x5b0455),await _0x284453(_0x5b0455),await _0x17c8c7({'type':_0xc7f100(_0x198e06._0x242af5,_0x198e06._0x2c9cf9,0x114,_0x198e06._0x2a04ca),'message':_0x5b0455});}function _0xc7f100(_0x4fc1dd,_0x5118f1,_0x5226d9,_0x44f123){return _0x98cc29(_0x5118f1- -0x13,_0x5118f1-0x144,_0x4fc1dd,_0x44f123-_0x107d0d._0x8880f6);}return _0x29fd3b['length'];};let _0x206acb=0x0;function _0x1494ba(_0x8adb02,_0x2c9d85,_0x5ccef4,_0x25f865){return _0x4845a1(_0x8adb02,_0x2c9d85-_0x1d16e0._0x1ae382,_0x5ccef4-0xe2,_0x25f865-_0x1d16e0._0x42824e);}try{const _0xccd051=await _0x5fcbbc(_0x98cc29(0x114,_0x3105eb._0xfea1a2,0x172,_0x3105eb._0x23f000),normalizeMessage(_0x587fca['message']));_0x5a7b1c[_0x98cc29(0x85,0x3f,0x33,_0x3105eb._0x53d480)][_0x1494ba(_0x3105eb._0x1f6f2b,0x406,_0x3105eb._0x325c4a,_0x3105eb._0x51efb6)](_0xccd051),await _0x284453(_0xccd051),await _0x17c8c7({'type':_0x1494ba(0x455,0x487,0x42d,0x484),'message':_0xccd051});while(!![]){throwIfAborted(_0xfcecd1),_0x206acb+=0x1;const _0x2ac4c7=createAssistantMessageId(_0x5a7b1c['turnId'],_0x206acb),_0x52d73f=createReasoningMessageId(_0x2ac4c7),_0x3e883b={'model':_0x147f18['model'],'modelIdentity':_0x147f18[_0x1494ba(0x4a1,0x529,0x4a6,_0x3105eb._0x4741f8)],..._0x147f18[_0x98cc29(_0x3105eb._0x515a07,0xc0,0xe5,0x45)]?{'provider':_0x147f18[_0x98cc29(0x9a,0xb6,0x48,0xf5)]}:{}};let _0x3b73e4={'model':_0x147f18['model'],..._0x147f18['maxTokens']!==void 0x0?{'maxTokens':_0x147f18[_0x1494ba(_0x3105eb._0x393fe4,0x44d,0x471,_0x3105eb._0x10f987)]}:{},'system':structuredClone(_0x5a7b1c['system']),'messages':structuredClone(_0x5a7b1c[_0x98cc29(_0x3105eb._0x1ed2e9,0x28,_0x3105eb._0x2a1672,0xc7)]),'tools':_0x5f5561[_0x98cc29(_0x3105eb._0x4eb7c8,_0x3105eb._0x2e4671,0x107,_0x3105eb._0x1600f5)][_0x1494ba(_0x3105eb._0x569347,_0x3105eb._0xdf3e51,0x413,_0x3105eb._0x59cf60)](),'metadata':{'sessionId':_0x5a7b1c[_0x1494ba(_0x3105eb._0x3f429b,0x416,0x3fc,_0x3105eb._0x5c3c88)],'turnId':_0x5a7b1c[_0x98cc29(_0x3105eb._0x2ddae6,0x1a2,0x116,0x126)],'modelIdentity':_0x147f18['modelIdentity'],..._0x147f18['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x147f18[_0x98cc29(_0x3105eb._0x37f3b3,0x10f,0x98,_0x3105eb._0x26497e)]}:{}},..._0x5f5561[_0x98cc29(_0x3105eb._0x4fd253,0x10b,_0x3105eb._0x51a8c0,_0x3105eb._0x4413c5)]?{'outputFormat':_0x5f5561[_0x98cc29(_0x3105eb._0xe7e1e1,0x15f,0x115,_0x3105eb._0x4913f5)]}:{}};_0x3b73e4=await _0x5fcbbc(_0x98cc29(0xff,0xdc,_0x3105eb._0x55d649,0x111),_0x3b73e4);{const {pricingProviderId:_0x2b60d6,..._0x148a52}=_0x3b73e4[_0x98cc29(_0x3105eb._0xeb0342,_0x3105eb._0x3f0e23,_0x3105eb._0x3c8292,_0x3105eb._0xd65128)];_0x3b73e4={..._0x3b73e4,'metadata':{..._0x148a52,..._0x147f18[_0x98cc29(0xba,0x4d,0x9e,0x52)]!==void 0x0?{'pricingProviderId':_0x147f18[_0x1494ba(_0x3105eb._0x2283d8,0x4b4,0x44e,_0x3105eb._0x5d2abe)]}:{}}};}await _0x17c8c7({'type':'model_request','request':_0x3b73e4});const _0x537cf6=Date[_0x98cc29(_0x3105eb._0x2a2013,_0x3105eb._0x5ddf08,0xb8,0x11f)]();_0x3e883b[_0x98cc29(0xbe,_0x3105eb._0x17635d,_0x3105eb._0x5369d8,0x82)]=_0x537cf6;let _0x2e255c=await executeModelRequest(_0x3b73e4,_0x587fca,_0x147f18,_0x5f5561,_0x537353,{'assistantMessageId':_0x2ac4c7,'reasoningMessageId':_0x52d73f,'meta':_0x3e883b});const _0x5b53b4=Date[_0x98cc29(0xd6,0x6a,_0x3105eb._0x48999d,0x68)]();_0x3e883b[_0x1494ba(_0x3105eb._0x3a8bad,0x518,_0x3105eb._0x123781,_0x3105eb._0x4d0e61)]=_0x5b53b4,_0x2e255c=await _0x5fcbbc(_0x1494ba(_0x3105eb._0x3be0d6,_0x3105eb._0x51775e,_0x3105eb._0x4dd43d,_0x3105eb._0x59ddee),_0x2e255c);_0x2e255c[_0x98cc29(_0x3105eb._0xab2e38,0xb6,_0x3105eb._0x6fc811,_0x3105eb._0x3300f8)]&&(_0x2e255c={..._0x2e255c,'providerState':{..._0x2e255c[_0x1494ba(0x44e,_0x3105eb._0x533b6b,_0x3105eb._0x5307ed,_0x3105eb._0x37fceb)],'originModelIdentity':_0x147f18[_0x1494ba(_0x3105eb._0x2480fc,_0x3105eb._0x57b984,0x4c2,0x4b6)]}});_0x2e255c=withEstimatedModelCost(_0x3b73e4,_0x2e255c);const _0x159e74=Math[_0x1494ba(0x448,0x400,_0x3105eb._0x32e959,0x45f)](0x0,_0x5b53b4-_0x537cf6),_0x2ab986={'version':0x1,'usage':structuredClone(_0x2e255c['usage']),'modelTimeMs':_0x159e74},_0x494344=_0x118e87=>({..._0x3e883b,'metrics':{..._0x2ab986,'usage':structuredClone(_0x2ab986[_0x98cc29(0xb3,0x8a,0x6d,0xe6)]),'completesRequest':_0x118e87}});await _0x17c8c7({'type':_0x98cc29(_0x3105eb._0x219f9c,_0x3105eb._0x59be40,_0x3105eb._0x4b91a9,_0x3105eb._0x45b88d),'response':_0x2e255c,'modelTimeMs':_0x159e74}),_0x5a7b1c['lastResponse']=_0x2e255c;let _0x32c433=await _0x5fcbbc(_0x98cc29(_0x3105eb._0x486cf9,_0x3105eb._0x31063e,0x10f,_0x3105eb._0x2da6f8),withMessageId(responseToAssistantMessage(_0x2e255c),_0x2ac4c7));_0x32c433=withMessageId(_0x32c433,_0x2ac4c7);const _0x36636f=getToolUseBlocks(_0x32c433),_0x171339=await Promise['all'](_0x36636f[_0x98cc29(_0x3105eb._0x198b4c,_0x3105eb._0x4b9772,_0x3105eb._0x14515e,0x13b)](_0x991bee=>_0x5fcbbc(_0x1494ba(0x48d,0x460,0x485,0x4cc),_0x991bee)));_0x171339[_0x1494ba(0x543,0x497,0x4fa,0x4d8)]>0x0&&(_0x32c433=replaceToolUseBlocks(_0x32c433,_0x171339));const _0x5ade38=withMessageId(_0x32c433,_0x2ac4c7);_0x32c433=_0x5ade38;const _0x28a450=createReasoningMessage(_0x32c433),_0x3b9af1=createAssistantTextMessage(_0x32c433),_0x322070=createToolUseMessage(_0x32c433);_0x28a450&&await _0x17c8c7({'type':'reasoning_message','message':withMessageId(_0x28a450,_0x52d73f)});_0x3b9af1&&await _0x17c8c7({'type':_0x1494ba(0x42c,_0x3105eb._0x5b6400,0x419,_0x3105eb._0x6785b9),'message':withMessageId(_0x3b9af1,_0x2ac4c7)});_0x322070&&await _0x17c8c7({'type':'tool_use_message','message':withMessageId(_0x322070,_0x2ac4c7)});_0x5a7b1c[_0x1494ba(0x425,_0x3105eb._0x293991,0x3d8,0x42e)]['push'](_0x5ade38);_0x171339[_0x98cc29(_0x3105eb._0x338c2b,_0x3105eb._0x3d67de,0xe9,0x152)]>0x0&&await _0x284453(_0x5ade38,_0x494344(![]));for(const _0x2ace0c of _0x171339){await _0x17c8c7({'type':'tool_call','toolCall':_0x2ace0c});}if(_0x171339['length']===0x0){const _0x35a9d9=await _0x9260f1(async()=>{await _0x284453(_0x5ade38,_0x494344(![]));});if(_0x35a9d9>0x0)continue;const _0x31ece9=await _0x5fcbbc(_0x98cc29(0x12e,_0x3105eb._0x5abf0b,_0x3105eb._0x2c1d81,_0x3105eb._0x10f086),_0x32c433),_0x5d1c46=withMessageId(_0x31ece9,_0x2ac4c7);return _0x5a7b1c[_0x98cc29(0x11e,0x18d,0x162,0x17c)]=_0x5d1c46,_0x5a7b1c['messages'][_0x5a7b1c[_0x1494ba(_0x3105eb._0x1d6364,0x456,0x499,_0x3105eb._0x1866c2)]['length']-0x1]=_0x5d1c46,await _0x284453(_0x5d1c46,_0x494344(!![])),await _0x5b2333({'type':_0x98cc29(_0x3105eb._0x585542,_0x3105eb._0x5733d4,0x80,_0x3105eb._0x3d362d),'message':_0x5d1c46}),throwIfAborted(_0xfcecd1),await _0x5f5561[_0x98cc29(_0x3105eb._0x15c8cb,0x73,0x140,0xb0)]['runObservers'](_0x1494ba(_0x3105eb._0x5a2692,_0x3105eb._0x331ea4,0x4c3,_0x3105eb._0x65f053),_0x5a7b1c,_0x22c721),await _0x17c8c7({'type':_0x98cc29(0xde,_0x3105eb._0x167d85,_0x3105eb._0x1789fb,0xe5),'state':_0x5a7b1c}),{'status':_0x1494ba(0x4a1,_0x3105eb._0x3cab32,_0x3105eb._0x295a4a,0x4d9),'finalMessage':_0x5d1c46,'state':_0x5a7b1c};}let _0x4f28af=await _0x5f5561['toolRuntime'][_0x1494ba(0x4dc,0x44c,_0x3105eb._0x234a49,_0x3105eb._0xa4179b)](_0x171339,_0x537353);const _0x3729ca=_0x4f28af[_0x1494ba(0x464,_0x3105eb._0x4390e5,0x40c,0x420)](isAbortedToolResult),_0x4bbf94=_0x3729ca?_0x184537:_0x5fcbbc,_0x532884=_0x3729ca?_0x5b2333:_0x17c8c7;_0x4f28af=await Promise[_0x98cc29(_0x3105eb._0x56aba5,0xd5,0x16e,0x108)](_0x4f28af[_0x98cc29(_0x3105eb._0x3d55ee,0xff,0x126,_0x3105eb._0xab4c6e)](_0x167f11=>_0x4bbf94(_0x1494ba(0x3dd,0x42e,0x472,0x436),_0x167f11))),_0x5a7b1c[_0x1494ba(0x4b0,_0x3105eb._0x337feb,_0x3105eb._0x373723,0x449)][_0x1494ba(0x476,0x3d7,0x405,0x434)](..._0x4f28af);for(const _0x54c61c of _0x4f28af){await _0x532884({'type':_0x98cc29(_0x3105eb._0x34a9a2,0xbc,_0x3105eb._0x4ab862,0xc0),'result':_0x54c61c});}const _0x294336=await _0x4bbf94(_0x98cc29(_0x3105eb._0x1bcdc5,_0x3105eb._0x30ea2c,0xd4,0x171),createToolResultUserMessage(_0x4f28af));await _0x532884({'type':_0x1494ba(_0x3105eb._0x2a17a3,_0x3105eb._0x48eade,_0x3105eb._0x36c194,0x473),'message':_0x294336}),_0x5a7b1c['messages'][_0x1494ba(0x475,_0x3105eb._0x1e713f,0x3d7,_0x3105eb._0x615b54)](_0x294336),await _0x284453(_0x294336);if(_0x3729ca)return{'status':_0x98cc29(_0x3105eb._0x2c55e8,_0x3105eb._0x26e2f5,_0x3105eb._0x4967b7,_0x3105eb._0x2515c2),'state':_0x5a7b1c};await _0x9260f1();}}catch(_0x281cfc){if(!_0xfcecd1['aborted'])throw new TurnFailedError(_0x281cfc,_0x5a7b1c);return{'status':_0x98cc29(0x6d,-0x6,0x9a,-_0x3105eb._0x161c7b),'state':_0x5a7b1c};}}function createSessionId(){const _0xb58e37={_0x4c0164:0x449,_0x1c8361:0xf3,_0x2d44dc:0x80,_0x499c07:0x4a6},_0x2fa981={_0x1887cd:0x20,_0x2cf2ef:0x344};function _0x5984b4(_0x3f3c6e,_0x4b8e88,_0xa13eb9,_0x59ca53){return _0x4845a1(_0x59ca53,_0x4b8e88-_0x2fa981._0x1887cd,_0xa13eb9-0xaa,_0x3f3c6e- -_0x2fa981._0x2cf2ef);}function _0x51cf04(_0x226ae0,_0x713288,_0xe325ee,_0x65d505){return _0x4845a1(_0xe325ee,_0x713288-0xa8,_0xe325ee-0xc4,_0x65d505-0x9);}return _0x51cf04(0x387,0x3dc,_0xb58e37._0x4c0164,0x3d5)+Date['now']()+'-'+Math[_0x5984b4(_0xb58e37._0x1c8361,0xd8,0xf7,_0xb58e37._0x2d44dc)]()[_0x5984b4(0x136,0x117,0x12e,0x10a)](0x10)[_0x51cf04(0x4c7,0x49d,0x4da,_0xb58e37._0x499c07)](0x2,0xa);}function createTurnId(_0x27603f){const _0x503f5b={_0x17ab14:0xc5,_0x27f592:0xec},_0xac303c={_0x199288:0xb8};function _0x491346(_0x286df6,_0x632d5c,_0x50d6e8,_0x507a22){return _0x4845a1(_0x507a22,_0x632d5c-_0xac303c._0x199288,_0x50d6e8-0x90,_0x50d6e8- -0x46e);}return _0x491346(-0xe0,-_0x503f5b._0x17ab14,-0x7d,-_0x503f5b._0x27f592)+_0x27603f;}function createDefaultMessage(_0x35b92a){if(_0x35b92a===void 0x0)return void 0x0;return normalizeUserInput(_0x35b92a);}function normalizeUserInput(_0x474542){const _0x2cf791={_0x5af50b:0x3a0,_0x2fa408:0x418,_0x540b05:0x468,_0x593980:0x17,_0x64e066:0x5e},_0x411a54={_0x20bc1d:0xf5,_0xb289fa:0x18e,_0x536c0b:0x3b3},_0x35b7a7={_0x1ce161:0x19d,_0x496851:0x55,_0x336102:0x59};if(typeof _0x474542===_0x187063(0x3d6,0x430,_0x2cf791._0x5af50b,0x385))return{'role':_0x187063(0x43b,_0x2cf791._0x2fa408,0x43b,_0x2cf791._0x540b05),'content':[{'type':_0x5b1ac7(_0x2cf791._0x593980,-0x18,_0x2cf791._0x64e066,0x5c),'text':_0x474542}]};function _0x187063(_0x1c80cf,_0xaf2ffc,_0x5cacdb,_0x2613cd){return _0xec6dab(_0x1c80cf-_0x35b7a7._0x1ce161,_0xaf2ffc-_0x35b7a7._0x496851,_0x1c80cf-_0x35b7a7._0x336102,_0x5cacdb);}function _0x5b1ac7(_0x345131,_0x28fe09,_0x56eb29,_0x26330e){return _0x4845a1(_0x56eb29,_0x28fe09-_0x411a54._0x20bc1d,_0x56eb29-_0x411a54._0xb289fa,_0x345131- -_0x411a54._0x536c0b);}return normalizeMessage(_0x474542);}function resolveChatModel(_0x42c690){const _0x38a06c={_0x572ae7:0x3cd,_0x4bdcb:0x38a,_0x48b8df:0x3b3},_0x18865d={_0x570198:0xd0};if(!_0x42c690[_0x2bea89(_0x38a06c._0x572ae7,_0x38a06c._0x4bdcb,_0x38a06c._0x48b8df,0x38d)])throw new Error('Agent\x20requires\x20a\x20chatModel');function _0x2bea89(_0xea6dfd,_0x5c4fa0,_0x294622,_0x57ac2a){return _0xec6dab(_0xea6dfd-_0x18865d._0x570198,_0x5c4fa0-0x1d3,_0x294622-0x47,_0xea6dfd);}return _0x42c690['chatModel'];}function createRegistry(_0x157020){const _0x4c954b={_0x1ccd1b:0x32e,_0x22de14:0x262,_0x197b85:0x2c5,_0x533b18:0x39,_0xe8d7c7:0x76,_0x197532:0xa4,_0x394a7b:0xa5,_0x4aae4b:0x4,_0x4fa122:0xa7,_0x373b27:0x55},_0xbc5ed4={_0xc9ae8d:0xf4,_0x4c5a16:0x45},_0x598b10={_0x38f788:0x28,_0x52e23a:0x66};if(_0x157020[_0x5724ed(-_0x4c954b._0x1ccd1b,-0x291,-_0x4c954b._0x22de14,-_0x4c954b._0x197b85)])return _0x157020[_0x1f5c17(_0x4c954b._0x533b18,_0x4c954b._0xe8d7c7,_0x4c954b._0x197532,_0x4c954b._0x394a7b)];const _0x322e04=createExtensionRegistry();function _0x5724ed(_0x317288,_0x49c4b1,_0x4bfa85,_0x50df44){return _0xec6dab(_0x317288-_0x598b10._0x38f788,_0x49c4b1-_0x598b10._0x52e23a,_0x50df44- -0x690,_0x49c4b1);}function _0x1f5c17(_0x38a033,_0x2d303c,_0xccf913,_0x40edfa){return _0x4845a1(_0x40edfa,_0x2d303c-_0xbc5ed4._0xc9ae8d,_0xccf913-_0xbc5ed4._0x4c5a16,_0x2d303c- -0x3cc);}const _0x4f9c7f=_0x157020[_0x1f5c17(-_0x4c954b._0x4aae4b,0x3d,_0x4c954b._0x4fa122,_0x4c954b._0x373b27)]??[];for(const _0x2030b4 of _0x4f9c7f){_0x322e04['register'](_0x2030b4);}return _0x322e04;}var Agent=class{[_0x4845a1(0x46c,0x4d0,0x493,0x486)];[_0x4845a1(0x4e4,0x4cd,0x45e,0x473)];['metrics'];[_0x4845a1(0x3c7,0x439,0x3f4,0x3fe)];[_0xec6dab(0x38a,0x382,0x369,0x35c)];[_0xec6dab(0x329,0x35c,0x381,0x331)];[_0x4845a1(0x4d3,0x455,0x432,0x480)];constructor(_0x186b20={}){const _0xc947c={_0x10bbfa:0x10e,_0x181a30:0xc8,_0x2859a7:0x11a,_0x1151ed:0x50,_0x455ab0:0x31,_0x2c8e5d:0x64,_0x4b4b89:0x40,_0x21feb2:0x41,_0x24cd5b:0x23,_0x4b12a0:0x44,_0x4aaea3:0x80,_0x35248a:0xe6,_0x3a2d46:0x152,_0x102af2:0xb4,_0x584a65:0x10d,_0x111fa8:0xf6,_0x2fc597:0x5c,_0x3260fa:0x71,_0x36cad6:0xb6,_0x1db1da:0x42,_0x58575c:0x78,_0x175d69:0xa3,_0x5e233f:0x94,_0x3814e4:0xf1,_0x1f9d93:0x76,_0x157b0d:0x69},_0x3e4c82={_0xe26a16:0x3,_0xc98066:0x4c6},_0x396762={_0x3ca78a:0x46,_0x3dc5d4:0x337,_0x58be64:0x2f3},_0x1c305e={_0x53925a:0x72},_0x4d3642={_0x314ab8:0x14a},_0x4fcd88={_0x507609:0x1ab,_0x1e8ed1:0xd};this['sessionId']=_0x186b20[_0x278220(-_0xc947c._0x10bbfa,-_0xc947c._0x181a30,-0x56,-_0xc947c._0x2859a7)]??createSessionId(),this[_0x278220(-_0xc947c._0x1151ed,-0x46,-_0xc947c._0x455ab0,-_0xc947c._0x2c8e5d)]=0x0,this[_0x278220(0x2b,-_0xc947c._0x4b4b89,-_0xc947c._0x21feb2,-_0xc947c._0x24cd5b)]=_0x186b20[_0x278220(-_0xc947c._0x4b12a0,-0x76,-0x77,-_0xc947c._0x4aaea3)]??'',this[_0x278220(-0x14c,-_0xc947c._0x35248a,-0xe5,-_0xc947c._0x3a2d46)]=(_0x186b20[_0x278220(-_0xc947c._0x102af2,-0xe6,-0xec,-0x13b)]??[])['map'](normalizeMessage),this[_0x1831ae(-0xc6,-_0xc947c._0x584a65,-_0xc947c._0x111fa8,-0xe1)]=createDefaultMessage(_0x186b20[_0x278220(0xe,-_0xc947c._0x2fc597,-_0xc947c._0x3260fa,0x12)]);function _0x1831ae(_0x1e65d9,_0x45bcf4,_0x478c99,_0x40971b){return _0x4845a1(_0x45bcf4,_0x45bcf4-_0x4fcd88._0x507609,_0x478c99-_0x4fcd88._0x1e8ed1,_0x478c99- -0x4ee);}this[_0x278220(-0xe5,-0x9b,-0x8e,-0x96)]=createAgentMetrics({'getContextWindowLimit':_0x186b20[_0x278220(-0x54,-_0xc947c._0x36cad6,-_0xc947c._0x1db1da,-0x73)]});const _0x598aeb=_0x186b20['onEvent'],_0xb15a29=async(_0x48bb58,_0x336762)=>{function _0x1669aa(_0xade2b2,_0x2707fb,_0x5517d,_0x573f3f){return _0x1831ae(_0xade2b2-_0x4d3642._0x314ab8,_0x2707fb,_0x573f3f-0xc,_0x573f3f-0x1bb);}this[_0x1669aa(-0x96,-_0x396762._0x3ca78a,-0x57,-0xb7)][_0x57a5a2(-0x2d7,-_0x396762._0x3dc5d4,-0x2a8,-_0x396762._0x58be64)](_0x48bb58);function _0x57a5a2(_0x527177,_0x21d5c4,_0x106772,_0x3ebea6){return _0x278220(_0x527177-_0x1c305e._0x53925a,_0x527177- -0x208,_0x106772-0x90,_0x106772);}await _0x598aeb?.(_0x48bb58,_0x336762);},_0x43939c=createInternalToolRuntime(_0x186b20[_0x1831ae(-_0xc947c._0x58575c,-0xbc,-_0xc947c._0x175d69,-_0xc947c._0x5e233f)]??[],{'onEvent':_0xb15a29,'onToolCall':_0x186b20[_0x1831ae(-0xfe,-0x14e,-_0xc947c._0x3814e4,-0x12e)]});function _0x278220(_0x2499cf,_0x2c268f,_0x1bb595,_0x5c7c6d){return _0x4845a1(_0x5c7c6d,_0x2c268f-0x178,_0x1bb595-_0x3e4c82._0xe26a16,_0x2c268f- -_0x3e4c82._0xc98066);}this[_0x1831ae(-_0xc947c._0x1f9d93,-0x98,-0x7b,-0x48)]={'registry':createRegistry(_0x186b20),'chatModel':resolveChatModel(_0x186b20),'toolRuntime':_0x43939c,'askUser':_0x186b20[_0x1831ae(-0xac,-0xd2,-0x8a,-0x7b)],'setTopic':_0x186b20[_0x278220(-0x77,-0x37,-0x50,-_0xc947c._0x157b0d)],'onEvent':_0xb15a29,'sessionDir':_0x186b20['sessionDir'],'outputFormat':_0x186b20['outputFormat']};}get['systemPrompt'](){const _0x33694b={_0x145135:0x4fe,_0x2b0261:0x4ac,_0x4216d5:0x48a,_0x1cbf58:0x4ca};function _0x3b402c(_0x56c175,_0x3de6ca,_0x161a73,_0x43a708){return _0x4845a1(_0x3de6ca,_0x3de6ca-0x75,_0x161a73-0x160,_0x43a708-0x44);}return this[_0x3b402c(_0x33694b._0x145135,_0x33694b._0x2b0261,_0x33694b._0x4216d5,_0x33694b._0x1cbf58)];}[_0xec6dab(0x376,0x37a,0x382,0x394)](_0x3727c4=[]){const _0x209564={_0x13c457:0xa,_0x2eba22:0x3c4,_0x1debff:0x408,_0x3ded38:0x462,_0x1797b9:0x423,_0x25d702:0x365,_0x2de1ce:0x33d},_0x830a41={_0x21ebb8:0xd9,_0x4d270a:0x16a};function _0x57bd3(_0x29a573,_0x28e798,_0xa30a79,_0x10bdd0){return _0xec6dab(_0x29a573-_0x830a41._0x21ebb8,_0x28e798-_0x830a41._0x4d270a,_0x10bdd0- -0x431,_0xa30a79);}function _0x138d78(_0x50f684,_0x2b4526,_0x4bcdd8,_0x51ad0e){return _0xec6dab(_0x50f684-0xf3,_0x2b4526-0x43,_0x2b4526- -0x1d,_0x50f684);}this[_0x57bd3(_0x209564._0x13c457,-0x43,-0x3d,-0x35)][_0x138d78(_0x209564._0x2eba22,_0x209564._0x1debff,_0x209564._0x3ded38,_0x209564._0x1797b9)][_0x138d78(0x32b,_0x209564._0x25d702,0x356,_0x209564._0x2de1ce)](_0x3727c4);}[_0xec6dab(0x45e,0x41a,0x422,0x3c5)](){const _0x1547a4={_0x204126:0x136,_0x4b0a90:0x158,_0x13dce5:0x168,_0xdcf63d:0x13f,_0x3b67fb:0x181},_0x17eedf={_0x5aa745:0x1,_0x56e387:0x162},_0x4b861a={_0x4587b7:0x2a4};function _0xb08bcf(_0x482c35,_0x471b0c,_0x5f456b,_0x22ad73){return _0xec6dab(_0x482c35-0x2b,_0x471b0c-0x173,_0x5f456b- -_0x4b861a._0x4587b7,_0x482c35);}function _0x4c6b91(_0x3fef9e,_0x2e2b88,_0x543b90,_0x353fbe){return _0x4845a1(_0x3fef9e,_0x2e2b88-0x24,_0x543b90-_0x17eedf._0x5aa745,_0x353fbe- -_0x17eedf._0x56e387);}return this[_0xb08bcf(0xf5,_0x1547a4._0x204126,_0x1547a4._0x4b0a90,0x1c5)][_0xb08bcf(_0x1547a4._0x13dce5,_0x1547a4._0xdcf63d,_0x1547a4._0x3b67fb,0x1f1)]['listToolSchemas']();}[_0x4845a1(0x4ca,0x4bf,0x449,0x4a3)](_0x268272,_0x592a12={}){const _0x344492={_0x480ce2:0x1cf,_0x39791c:0x199,_0xa6ddc6:0x20b,_0x368d7e:0xa4,_0x5d3734:0x8d,_0xceaa3:0xf9,_0x33ca0d:0x143},_0x3d0f75={_0x17a635:0x5b},_0x26c683={_0x34a573:0xfb,_0x3e5a78:0x5a9};function _0x5f4e53(_0x37a120,_0x16f6a6,_0x484595,_0xb89751){return _0xec6dab(_0x37a120-0xb3,_0x16f6a6-_0x26c683._0x34a573,_0x484595- -_0x26c683._0x3e5a78,_0x16f6a6);}this[_0x5f4e53(-0x17e,-_0x344492._0x480ce2,-0x19a,-0x1eb)]=_0x268272;function _0x57e821(_0x2a605d,_0x550f6f,_0x5a249b,_0x25d15d){return _0xec6dab(_0x2a605d-_0x3d0f75._0x17a635,_0x550f6f-0x12f,_0x5a249b- -0x502,_0x25d15d);}_0x592a12[_0x5f4e53(-0x15f,-0x12a,-0x18d,-0x12c)]===!![]&&(this[_0x57e821(-0x1b1,-0x1c4,-_0x344492._0x39791c,-_0x344492._0xa6ddc6)]=[],this[_0x57e821(-_0x344492._0x368d7e,-_0x344492._0x5d3734,-_0x344492._0xceaa3,-_0x344492._0x33ca0d)]=0x0);}[_0x4845a1(0x413,0x489,0x485,0x452)](_0x211849){const _0x414427={_0xb25646:0x196,_0x29f303:0x17c,_0x3667a0:0x1c8},_0x4e89ac={_0x2e0921:0x1ce,_0x14851a:0xe0,_0x5af5f2:0x1bf};function _0x3cf3da(_0x306bae,_0x2a616c,_0x8625b5,_0x184d11){return _0xec6dab(_0x306bae-_0x4e89ac._0x2e0921,_0x2a616c-_0x4e89ac._0x14851a,_0x8625b5- -_0x4e89ac._0x5af5f2,_0x306bae);}this[_0x3cf3da(_0x414427._0xb25646,_0x414427._0x29f303,_0x414427._0x3667a0,0x1a5)]=_0x211849;}[_0xec6dab(0x430,0x36b,0x3d1,0x39e)](_0x514030){const _0x29816d={_0x52f44d:0x55,_0xaa9253:0x8e,_0x3a78e2:0x11e,_0x54bec5:0x12c,_0x4e5779:0xd0},_0x4d0e27={_0x498afe:0xc7,_0x53bfba:0x91};function _0x2621c0(_0x5f3f55,_0x195538,_0xe88663,_0x53b0dc){return _0x4845a1(_0x53b0dc,_0x195538-_0x4d0e27._0x498afe,_0xe88663-0xfb,_0x195538- -_0x4d0e27._0x53bfba);}function _0x3c5d8d(_0x22c127,_0x4f432b,_0x3bea5f,_0xbd676e){return _0x4845a1(_0x22c127,_0x4f432b-0x1e3,_0x3bea5f-0x9e,_0x4f432b- -0x501);}this[_0x3c5d8d(-_0x29816d._0x52f44d,-_0x29816d._0xaa9253,-0x74,-0xf1)][_0x3c5d8d(-0xe7,-_0x29816d._0x3a78e2,-_0x29816d._0x54bec5,-_0x29816d._0x4e5779)]=_0x514030;}async[_0x4845a1(0x467,0x434,0x433,0x471)](_0x442b0b=this[_0xec6dab(0x33b,0x367,0x381,0x3aa)],_0xd78377={}){const _0x33d194={_0x3d1ae7:0x101,_0x5de3c0:0xe1,_0x23bbf4:0x10e,_0x536f82:0x72,_0x22b85a:0x124,_0xd1b5dd:0x17a,_0x2f6acd:0x1a6,_0xd0efd3:0x21c,_0x4271e8:0x40,_0x149a09:0x176,_0x1653b3:0x199,_0x84b808:0x10d,_0x4f4f15:0x35,_0x5b8c7e:0x13b,_0x3b7774:0x106,_0x301a9d:0x17,_0x55a720:0x6d,_0x450850:0x186,_0x326bee:0x19f,_0x21463b:0x1f0,_0x56cbf8:0x152,_0x4c354f:0xbf,_0x4eaeb8:0x1f6,_0x29d0a5:0xb1,_0x9f937e:0x97},_0x5f1f66={_0x351dc3:0x396},_0x4df6eb={_0x4cc779:0x166,_0x1c4243:0x15b};if(!_0x442b0b)throw new Error(_0x7115c6(_0x33d194._0x3d1ae7,_0x33d194._0x5de3c0,_0x33d194._0x23bbf4,0xb9));this[_0x36dee0(_0x33d194._0x536f82,0x91,0xbd,0x73)]+=0x1;function _0x7115c6(_0x19457c,_0xa5cb63,_0x465332,_0x35e6a1){return _0xec6dab(_0x19457c-_0x4df6eb._0x4cc779,_0xa5cb63-_0x4df6eb._0x1c4243,_0xa5cb63- -0x263,_0x35e6a1);}const _0x19c57e=_0xd78377['drainSteering'];function _0x36dee0(_0x4fd112,_0x34443e,_0x44ccc6,_0x155bce){return _0xec6dab(_0x4fd112-0x19c,_0x34443e-0x109,_0x155bce- -_0x5f1f66._0x351dc3,_0x4fd112);}try{const _0x311ed9=await runTurn({'sessionId':this[_0x7115c6(0x16d,_0x33d194._0x22b85a,0xc3,_0x33d194._0x23bbf4)],'turnId':createTurnId(this[_0x7115c6(_0x33d194._0xd1b5dd,_0x33d194._0x2f6acd,0x1f2,_0x33d194._0xd0efd3)]),'streaming':_0xd78377[_0x36dee0(0x97,0x2,-0x1,_0x33d194._0x4271e8)],'signal':_0xd78377['signal'],'system':this[_0x7115c6(0x1b4,_0x33d194._0x149a09,_0x33d194._0x1653b3,_0x33d194._0x84b808)],'messages':this[_0x36dee0(0x16,0x3e,-_0x33d194._0x4f4f15,-0x2d)],'message':normalizeUserInput(_0x442b0b),..._0x19c57e?{'drainSteering':async()=>(await _0x19c57e())['map'](normalizeUserInput)}:{}},this[_0x7115c6(0x1fd,0x199,0x1e5,0x1f4)]);return this[_0x7115c6(_0x33d194._0x5b8c7e,_0x33d194._0x3b7774,0x10c,0xac)]=_0x311ed9['state'][_0x36dee0(_0x33d194._0x301a9d,-0x78,-_0x33d194._0x55a720,-0x2d)][_0x7115c6(0x1b1,_0x33d194._0x450850,_0x33d194._0x326bee,_0x33d194._0x21463b)](normalizeMessage),_0x311ed9;}catch(_0x49cc4f){if(_0x49cc4f instanceof TurnFailedError){this['messages']=synthesizeMissingToolResults(_0x49cc4f[_0x7115c6(0xcf,0x131,0x149,0x17e)][_0x7115c6(0xc0,0x106,_0x33d194._0x56cbf8,_0x33d194._0x4c354f)][_0x7115c6(0x181,0x186,_0x33d194._0x4eaeb8,0x190)](normalizeMessage));throw _0x49cc4f[_0x36dee0(0x3e,_0x33d194._0x29d0a5,0x9b,_0x33d194._0x9f937e)];}throw _0x49cc4f;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};