@nuvin/agent-core 0.3.1-rc.0 → 0.3.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvin/agent-core",
3
- "version": "0.3.1-rc.0",
3
+ "version": "0.3.1-rc.2",
4
4
  "private": false,
5
5
  "description": "Core agent, model, format, and tool primitives for Nuvin",
6
6
  "license": "Apache-2.0",
@@ -56,7 +56,7 @@
56
56
  "tsup": "^8.5.1",
57
57
  "typescript": "^6.0.2",
58
58
  "vitest": "^4.1.2",
59
- "@nuvin/config": "0.4.0"
59
+ "@nuvin/config": "0.4.1-rc.1"
60
60
  },
61
61
  "dependencies": {
62
62
  "@anthropic-ai/sdk": "^0.82.0",
@@ -1 +0,0 @@
1
- (function(_0x5c5612,_0x3397f5){const _0x16ad12={_0x124b67:0x18c,_0x4254b3:0x3e1,_0xd25000:0x3c0,_0x7b4595:0x377,_0x3e378f:0x3f6,_0x171a61:0x85,_0x465a0f:0x3ca,_0x1b52f2:0x4ab,_0x47fc97:0x440,_0x390ffd:0x45f,_0x4d958c:0x3de,_0x455815:0x410,_0x381b73:0x12e,_0x17812e:0x55,_0x1d6c81:0xd3,_0x248b5c:0x3d4,_0xe226f7:0x3ab,_0x5a8ebc:0x33f,_0x28263a:0x413,_0x496733:0x42a,_0x13c639:0x104,_0x588353:0x40,_0xdb219:0x190,_0x1eb7ca:0x155,_0x484085:0x141,_0x2a028e:0x415,_0x5a5c54:0x368,_0x8460bc:0x469,_0xfa50ec:0x403},_0x478254={_0x16f55f:0x1d5},_0x4a43de=_0x5c5612();function _0x3cdab6(_0x5d5cc6,_0x2d1dae,_0x299756,_0x21a437){return _0x37f7(_0x21a437-0x2e1,_0x5d5cc6);}function _0x30292f(_0x49ffb0,_0x392e75,_0x1d81e6,_0x4b6b20){return _0x37f7(_0x4b6b20- -_0x478254._0x16f55f,_0x1d81e6);}while(!![]){try{const _0x52cf02=parseInt(_0x30292f(-0xe7,-0x176,-_0x16ad12._0x124b67,-0x131))/0x1*(parseInt(_0x3cdab6(_0x16ad12._0x4254b3,_0x16ad12._0xd25000,_0x16ad12._0x7b4595,_0x16ad12._0x3e378f))/0x2)+parseInt(_0x30292f(-0x63,-0x93,-0x1c,-_0x16ad12._0x171a61))/0x3*(-parseInt(_0x3cdab6(_0x16ad12._0x465a0f,_0x16ad12._0x1b52f2,0x4b3,_0x16ad12._0x47fc97))/0x4)+parseInt(_0x3cdab6(0x3f6,0x486,_0x16ad12._0x390ffd,0x448))/0x5*(-parseInt(_0x3cdab6(0x40e,_0x16ad12._0x4d958c,_0x16ad12._0x455815,0x38d))/0x6)+-parseInt(_0x30292f(-0x61,-_0x16ad12._0x381b73,-_0x16ad12._0x17812e,-_0x16ad12._0x1d6c81))/0x7*(parseInt(_0x3cdab6(_0x16ad12._0x248b5c,_0x16ad12._0xe226f7,_0x16ad12._0x5a8ebc,0x38a))/0x8)+-parseInt(_0x3cdab6(_0x16ad12._0x28263a,_0x16ad12._0x496733,0x3f8,0x443))/0x9+parseInt(_0x30292f(-_0x16ad12._0x13c639,-_0x16ad12._0x588353,-0x5a,-0x8b))/0xa*(parseInt(_0x30292f(-_0x16ad12._0xdb219,-_0x16ad12._0x1eb7ca,-_0x16ad12._0x484085,-0x114))/0xb)+parseInt(_0x3cdab6(_0x16ad12._0x2a028e,0x40e,_0x16ad12._0x5a5c54,0x3dc))/0xc*(parseInt(_0x3cdab6(_0x16ad12._0x8460bc,0x3bb,0x388,_0x16ad12._0xfa50ec))/0xd);if(_0x52cf02===_0x3397f5)break;else _0x4a43de['push'](_0x4a43de['shift']());}catch(_0xefd85d){_0x4a43de['push'](_0x4a43de['shift']());}}}(_0x22cd,0x9d92c));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(_0x5c29b0){const _0x3a4902={_0x28c9a9:0x16b,_0x46aad1:0x118,_0x2850e3:0x186,_0x1e0a65:0x1a2,_0xa190a6:0x138},_0x54fb69={_0x451beb:0x1ef};function _0x3eef1a(_0x24533a,_0x4c9e57,_0x310ab3,_0xbe9696){return _0x37f7(_0xbe9696- -_0x54fb69._0x451beb,_0x24533a);}function _0x59d433(_0x33edb1,_0x4dc24a,_0x3db368,_0x30eafc){return _0x37f7(_0x30eafc- -0x37f,_0x33edb1);}return typeof _0x5c29b0===_0x3eef1a(-_0x3a4902._0x28c9a9,-0x198,-0x164,-_0x3a4902._0x46aad1)&&_0x5c29b0!==null&&!Array[_0x3eef1a(-0xb3,-_0x3a4902._0x2850e3,-_0x3a4902._0x1e0a65,-_0x3a4902._0xa190a6)](_0x5c29b0);}function isToolOutputEnvelope(_0x4247ed){const _0x50c8f2={_0x36268a:0x1e9,_0x378d07:0x1fe,_0x21732b:0x2ce,_0x1d9f11:0x2c7},_0x4aa3a5={_0x1c9ebe:0x1ac};function _0x24e6f3(_0x597edc,_0x293961,_0x42170f,_0x3a28d1){return _0x37f7(_0x293961-_0x4aa3a5._0x1c9ebe,_0x597edc);}function _0x18ff1e(_0x502637,_0x52dbdc,_0x532c2e,_0xac5a24){return _0x37f7(_0xac5a24-0x1b9,_0x502637);}if(typeof _0x4247ed!=='object'||_0x4247ed===null||Array[_0x24e6f3(0x1f0,0x263,_0x50c8f2._0x36268a,_0x50c8f2._0x378d07)](_0x4247ed))return![];if(typeof _0x4247ed['output']!==_0x24e6f3(_0x50c8f2._0x21732b,0x334,0x327,_0x50c8f2._0x1d9f11))return![];const _0xb21b39=_0x4247ed['structured'];return _0xb21b39===void 0x0||isJsonObject(_0xb21b39);}function validateAgainstSchema(_0x35972,_0x59a37c,_0xe04848){const _0x4e4c49={_0xd132e0:0x363,_0x5c617a:0x378,_0x2c3180:0x2fe,_0xed4d69:0x3e8,_0x30a0c1:0x30c,_0x470345:0x3d0,_0x22ae27:0x39d,_0x430b7a:0x380,_0x184b81:0x358,_0x541591:0x3e2,_0x16d068:0x3e6,_0x2e27d3:0x321,_0x3a81a1:0x36e,_0x302b5a:0x3a2,_0x147110:0x2d3,_0x51fcba:0x3e6,_0x45735c:0x314,_0x3d7d6c:0x36d,_0x41c565:0x2c4,_0x4eca33:0x33c,_0x6d2c49:0x387,_0xa0daef:0x245,_0x465c17:0x329,_0x222ef3:0x34f,_0x4ff57f:0x297,_0x51e741:0x2bf,_0x135341:0x280,_0x5a7e20:0x2e5,_0x2670d0:0x2cf,_0x39c178:0x363,_0x2b991e:0x3f1,_0x225df3:0x35c,_0xf00459:0x2fb,_0x3d2a8a:0x386,_0x408794:0x33f,_0x464be9:0x324,_0x4aaa5:0x2ed,_0x623abd:0x2af,_0x11dc21:0x316,_0x3d9a8f:0x3b3,_0x19042a:0x42b,_0x2b056c:0x395,_0x321b82:0x27c,_0x5067f6:0x326,_0x2463f2:0x353,_0x2d1508:0x300,_0xe7ab0b:0x337,_0x41a08d:0x3a6,_0x7bf51b:0x3b5,_0x13e0d5:0x2e7,_0x233f1c:0x2fc,_0x2009c4:0x33f,_0x55f188:0x337,_0x4836d1:0x371,_0x46e6c0:0x376,_0x4e9257:0x346,_0x3ef9c1:0x29e,_0x38b774:0x3b5,_0xc46fcc:0x391,_0xc22855:0x34a,_0xca6f61:0x2e5,_0x3c4a27:0x356,_0x5c2263:0x33d,_0x10ce12:0x3a5,_0x45a8f6:0x33d,_0xdbcd9d:0x2e1},_0x556f24={_0x36fade:0x1f8},_0x4b5e56={_0x12655d:0x247};function _0x4f03c9(_0x96998e,_0x12d3fc,_0x2fb294,_0x35d0ff){return _0x37f7(_0x35d0ff-_0x4b5e56._0x12655d,_0x2fb294);}function _0x2ed360(_0x3de40a,_0x2856b3,_0x4b8759,_0x20f167){return _0x37f7(_0x3de40a-_0x556f24._0x36fade,_0x2856b3);}if(_0x2ed360(_0x4e4c49._0xd132e0,_0x4e4c49._0x5c617a,_0x4e4c49._0x2c3180,0x2fd)in _0xe04848){const _0x484311=_0xe04848[_0x4f03c9(_0x4e4c49._0xed4d69,0x43d,0x3b6,0x3b2)][_0x4f03c9(0x32c,_0x4e4c49._0x30a0c1,0x343,0x337)](_0x14cdd2=>{try{return validateAgainstSchema(_0x35972,_0x59a37c,_0x14cdd2),!![];}catch{return![];}});if(!_0x484311)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x35972+':\x20expected\x20value\x20matching\x20anyOf\x20schema');return;}switch(_0xe04848[_0x4f03c9(0x3b3,0x414,_0x4e4c49._0x470345,_0x4e4c49._0x22ae27)]){case _0x2ed360(_0x4e4c49._0x430b7a,0x33f,_0x4e4c49._0x184b81,_0x4e4c49._0x541591):if(typeof _0x59a37c!==_0x2ed360(0x380,0x2ff,0x2fa,0x34a))throw new Error(_0x4f03c9(0x2eb,_0x4e4c49._0x16d068,_0x4e4c49._0x2e27d3,0x366)+_0x35972+_0x4f03c9(_0x4e4c49._0x3a81a1,0x3d9,0x388,_0x4e4c49._0x302b5a));if(_0xe04848['enum']!==void 0x0&&!_0xe04848[_0x2ed360(0x279,_0x4e4c49._0x147110,0x254,0x241)][_0x4f03c9(_0x4e4c49._0x51fcba,_0x4e4c49._0x45735c,_0x4e4c49._0x3d7d6c,0x385)](_0x59a37c))throw new Error(_0x2ed360(0x317,_0x4e4c49._0x41c565,0x2f1,_0x4e4c49._0x4eca33)+_0x35972+_0x2ed360(0x35e,_0x4e4c49._0x6d2c49,0x3ab,0x33c)+_0xe04848[_0x4f03c9(0x2ea,_0x4e4c49._0xa0daef,_0x4e4c49._0x465c17,0x2c8)][_0x2ed360(0x312,0x305,_0x4e4c49._0x222ef3,_0x4e4c49._0x4ff57f)](',\x20'));return;case _0x2ed360(0x280,0x248,_0x4e4c49._0x51e741,0x24c):if(typeof _0x59a37c!==_0x2ed360(_0x4e4c49._0x135341,_0x4e4c49._0x5a7e20,_0x4e4c49._0x2670d0,0x24c))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x35972+_0x4f03c9(_0x4e4c49._0x39c178,_0x4e4c49._0x2b991e,_0x4e4c49._0x225df3,0x396));return;case'boolean':if(typeof _0x59a37c!==_0x2ed360(_0x4e4c49._0xf00459,_0x4e4c49._0x3d2a8a,_0x4e4c49._0x408794,0x2f4))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x35972+_0x2ed360(_0x4e4c49._0x464be9,_0x4e4c49._0x4aaa5,_0x4e4c49._0x623abd,_0x4e4c49._0x11dc21));return;case _0x4f03c9(_0x4e4c49._0x3d9a8f,_0x4e4c49._0x19042a,_0x4e4c49._0x2b056c,0x3b6):if(!Array[_0x2ed360(_0x4e4c49._0x623abd,_0x4e4c49._0x321b82,0x329,0x286)](_0x59a37c))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x35972+_0x2ed360(0x2e4,0x270,_0x4e4c49._0x5067f6,_0x4e4c49._0x2463f2));_0x59a37c[_0x2ed360(_0x4e4c49._0x2d1508,_0x4e4c49._0x45735c,0x370,_0x4e4c49._0xe7ab0b)]((_0x3aa72a,_0x10035e)=>{validateAgainstSchema(_0x35972+'['+_0x10035e+']',_0x3aa72a,_0xe04848['items']);});return;case'object':if(!isJsonObject(_0x59a37c))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x35972+_0x4f03c9(_0x4e4c49._0x41a08d,_0x4e4c49._0x7bf51b,0x2ed,0x34c));for(const _0x5f2cb8 of _0xe04848[_0x2ed360(_0x4e4c49._0x13e0d5,0x331,_0x4e4c49._0x233f1c,_0x4e4c49._0x2009c4)]??[]){if(!Object[_0x4f03c9(_0x4e4c49._0x55f188,0x37c,_0x4e4c49._0x4836d1,_0x4e4c49._0x46e6c0)](_0x59a37c,_0x5f2cb8))throw new Error(_0x2ed360(0x317,_0x4e4c49._0x4e9257,0x2d9,_0x4e4c49._0x3ef9c1)+_0x35972+':\x20missing\x20required\x20field\x20\x22'+_0x5f2cb8+'\x22');}if(_0xe04848[_0x4f03c9(_0x4e4c49._0x38b774,_0x4e4c49._0xc46fcc,0x3a3,_0x4e4c49._0x430b7a)]===![]){const _0x48f12b=Object['keys'](_0x59a37c)['find'](_0x2fa91f=>!Object[_0x4f03c9(0x3ba,0x326,0x324,0x376)](_0xe04848['properties'],_0x2fa91f));if(_0x48f12b!==void 0x0)throw new Error(_0x4f03c9(0x3d6,_0x4e4c49._0xc22855,_0x4e4c49._0xca6f61,0x366)+_0x35972+':\x20unexpected\x20field\x20\x22'+_0x48f12b+'\x22');}for(const [_0x584617,_0x5bb306]of Object['entries'](_0xe04848[_0x4f03c9(0x380,_0x4e4c49._0x3c4a27,_0x4e4c49._0x5c2263,_0x4e4c49._0x10ce12)])){Object[_0x2ed360(0x327,_0x4e4c49._0x45a8f6,_0x4e4c49._0xdbcd9d,0x2cc)](_0x59a37c,_0x584617)&&validateAgainstSchema(_0x35972+'.'+_0x584617,_0x59a37c[_0x584617],_0x5bb306);}}}function normalizeToolOutputValue(_0xe390ce){const _0x1cfb09={_0x1e8fde:0x1a8,_0x3c403e:0x220,_0x46fa16:0x1c0,_0x1000e2:0x14f,_0x4e172e:0x1d0,_0x4657f7:0xf7,_0x510ef5:0x178,_0x27388d:0x7e,_0xf7fb0c:0x9f,_0x4b9695:0x29,_0x420333:0x11a,_0x4d1e50:0x9a,_0xeb9102:0x94,_0x12df60:0x174,_0x4441c0:0x62,_0x1e6a0f:0x49},_0x356a7a={_0x2ee15f:0xc1};if(isToolOutputEnvelope(_0xe390ce))return{'output':_0xe390ce[_0x1e80a9(-_0x1cfb09._0x1e8fde,-0x18f,-_0x1cfb09._0x3c403e,-_0x1cfb09._0x46fa16)],'structured':_0xe390ce['structured']??{'value':_0xe390ce[_0x1e80a9(-0x1a8,-0x14b,-_0x1cfb09._0x1000e2,-_0x1cfb09._0x4e172e)]},..._0xe390ce[_0x1e80a9(-_0x1cfb09._0x4657f7,-_0x1cfb09._0x510ef5,-_0x1cfb09._0x27388d,-0x15f)]!==void 0x0?{'content':_0xe390ce[_0x537325(0x15,0x93,_0x1cfb09._0xf7fb0c,_0x1cfb09._0x4b9695)]}:{}};function _0x1e80a9(_0x121e0e,_0x5761c2,_0x5abdc6,_0x26728e){return _0x37f7(_0x121e0e- -0x24b,_0x26728e);}if(typeof _0xe390ce===_0x537325(_0x1cfb09._0x420333,0xc7,_0x1cfb09._0x4d1e50,_0x1cfb09._0xeb9102))return{'output':_0xe390ce,'structured':{'value':_0xe390ce}};if(typeof _0xe390ce===_0x1e80a9(-_0x1cfb09._0x12df60,-0x141,-_0x1cfb09._0x420333,-0x1c7)&&_0xe390ce!==null&&!Array[_0x537325(-0x7e,-0xa,0x80,-0x49)](_0xe390ce))return{'output':JSON[_0x537325(0x8,-0x22,_0x1cfb09._0x4441c0,-_0x1cfb09._0x1e6a0f)](_0xe390ce,null,0x2),'structured':_0xe390ce};function _0x537325(_0x54d110,_0x3d0fe3,_0x466202,_0x1d7c13){return _0x37f7(_0x3d0fe3- -_0x356a7a._0x2ee15f,_0x466202);}return{'output':JSON['stringify'](_0xe390ce,null,0x2),'structured':{'value':_0xe390ce}};}function createToolOutput(_0x222e8e,_0x1c808d={'value':_0x222e8e},_0x2d8b89){return{'output':_0x222e8e,'structured':_0x1c808d,..._0x2d8b89!==void 0x0?{'content':_0x2d8b89}:{}};}var ToolExecutionError=class extends Error{[_0x58fa56(0x39d,0x3e6,0x3b4,0x439)];constructor(_0x73eb34,_0x48dc59={}){const _0xf27f8e={_0x2569d8:0x195,_0x5c46a8:0x1d2,_0x340788:0xf5,_0x3ceee4:0x17c,_0x3d2a80:0x192,_0x3a9811:0x10a,_0xcdecdd:0x5c},_0x252e0d={_0x429578:0x4b0,_0x408277:0x160};super(_0x73eb34),this[_0x5d6539(-_0xf27f8e._0x2569d8,-_0xf27f8e._0x5c46a8,-_0xf27f8e._0x340788,-_0xf27f8e._0x3ceee4)]=_0x5d6539(-_0xf27f8e._0x3d2a80,-0x136,-_0xf27f8e._0x3a9811,-0x114);function _0x5d6539(_0x128dda,_0x281358,_0x1a51b1,_0x1e2c4b){return _0x58fa56(_0x128dda-0x66,_0x1e2c4b- -_0x252e0d._0x429578,_0x1a51b1-_0x252e0d._0x408277,_0x1a51b1);}function _0x18b222(_0x28df18,_0x311bb2,_0x2bc39f,_0x4bbe2f){return _0x58fa56(_0x28df18-0x12d,_0x28df18- -0x347,_0x2bc39f-0x6e,_0x2bc39f);}this[_0x5d6539(-0xd8,-0x83,-_0xf27f8e._0xcdecdd,-0xca)]=_0x48dc59;}};function defineTool(_0x4b2e59){return _0x4b2e59;}function resolveToolPermissionClass(_0x232e09){const _0x1cbd3e={_0x115447:0x16a,_0x24c0cd:0x1fe,_0x57495e:0x1d6,_0x17c9ad:0xf0,_0x543549:0x14c,_0x29dd35:0x17e,_0x392334:0x121,_0x4ce289:0x10c,_0x5c485f:0x98,_0x54027e:0xf6},_0x586299={_0x340bb4:0x190},_0x408ba1={_0x4cb1b9:0x1de},_0x5b772f=_0x232e09?.[_0x2d5e45(0x1bc,0x15f,_0x1cbd3e._0x115447,_0x1cbd3e._0x24c0cd)];function _0x2d5e45(_0x2a2d1f,_0x58a647,_0x394d45,_0x10ee76){return _0x58fa56(_0x2a2d1f-0x13e,_0x2a2d1f- -_0x408ba1._0x4cb1b9,_0x394d45-0x7c,_0x394d45);}if(_0x5b772f===_0x2d5e45(0x16c,_0x1cbd3e._0x57495e,_0x1cbd3e._0x17c9ad,0x11d)||_0x5b772f===_0x119d05(_0x1cbd3e._0x543549,_0x1cbd3e._0x29dd35,_0x1cbd3e._0x392334,0x1c6)||_0x5b772f===_0x119d05(0xf6,_0x1cbd3e._0x4ce289,0x114,_0x1cbd3e._0x5c485f))return _0x5b772f;function _0x119d05(_0xfd4c5c,_0xdd2084,_0x356655,_0x2408f8){return _0x58fa56(_0xfd4c5c-_0x586299._0x340bb4,_0xfd4c5c- -0x24c,_0x356655-0x15b,_0x2408f8);}return _0x119d05(_0x1cbd3e._0x54027e,0x105,0x15b,0xdc);}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x3ca267=[]){const _0x19d1dd={_0x5a7944:0x367,_0x3b8cda:0x460,_0x50293f:0x3e8},_0x1f6d84={_0x5a28ea:0x4c,_0x5d1005:0x11c};function _0x1b4c38(_0x3df7d,_0x37a4f5,_0x161565,_0x3f4465){return _0x58fa56(_0x3df7d-_0x1f6d84._0x5a28ea,_0x3f4465-0xae,_0x161565-_0x1f6d84._0x5d1005,_0x161565);}for(const _0x1c58a5 of _0x3ca267){this[_0x1b4c38(0x46b,_0x19d1dd._0x5a7944,_0x19d1dd._0x3b8cda,_0x19d1dd._0x50293f)](_0x1c58a5);}}['register'](_0x593dc3){const _0x50fefa={_0x137f03:0x15a,_0x40fbea:0x1cc,_0x45d08b:0x205},_0x1d10b9={_0x52b05c:0x9d,_0x567438:0x179};function _0x60b836(_0x26179b,_0x4a7216,_0x264763,_0x14f542){return _0x58fa56(_0x26179b-0x40,_0x26179b- -0x466,_0x264763-0x1a7,_0x264763);}function _0xa35075(_0x9ccda6,_0x3094a3,_0x421d2e,_0xac8d39){return _0x58fa56(_0x9ccda6-_0x1d10b9._0x52b05c,_0x3094a3- -0x19e,_0x421d2e-_0x1d10b9._0x567438,_0x421d2e);}this[_0xa35075(0x1ac,_0x50fefa._0x137f03,_0x50fefa._0x40fbea,0x1ae)]['set'](_0x593dc3[_0xa35075(0x160,0x196,0x15d,_0x50fefa._0x45d08b)],_0x593dc3);}[_0x22e785(0x42c,0x3b1,0x3ec,0x37a)](_0x4bdadb){const _0x362739={_0x6a4f32:0x319,_0x5b5899:0x2ee,_0x411920:0x175,_0x31b9ea:0x1cb,_0x23e468:0x1e8},_0xe11dc0={_0x3c2d96:0x363},_0x5d58fa={_0x5ba7f4:0x5e6};function _0xa455fa(_0x527c3e,_0x572bc0,_0x1dd67e,_0x36d632){return _0x58fa56(_0x527c3e-0x1c7,_0x36d632- -_0x5d58fa._0x5ba7f4,_0x1dd67e-0x119,_0x572bc0);}function _0x20478e(_0x553f6f,_0xe18c03,_0x26dc18,_0x364e73){return _0x58fa56(_0x553f6f-0xf2,_0x364e73- -_0xe11dc0._0x3c2d96,_0x26dc18-0x57,_0x26dc18);}return this[_0xa455fa(-_0x362739._0x6a4f32,-0x27d,-0x305,-_0x362739._0x5b5899)][_0xa455fa(-0x261,-_0x362739._0x411920,-_0x362739._0x31b9ea,-_0x362739._0x23e468)](_0x4bdadb);}['list'](){const _0x1a3acb={_0x55d6a4:0x2bc,_0x364e6c:0x274},_0x136edf={_0xeb98d2:0x17,_0x25b7e7:0x5bc};function _0x2509be(_0x434c62,_0x5c43d8,_0x594fea,_0x1fe2c6){return _0x22e785(_0x434c62-0x1d8,_0x5c43d8-_0x136edf._0xeb98d2,_0x594fea- -_0x136edf._0x25b7e7,_0x5c43d8);}return[...this['toolsByName'][_0x2509be(-_0x1a3acb._0x55d6a4,-_0x1a3acb._0x364e6c,-0x25d,-0x27a)]()];}[_0x22e785(0x3d8,0x3f1,0x39c,0x375)](){const _0x4e4dee={_0x1c2931:0xb5},_0x4de0e0={_0x4c249a:0x250,_0x216ef3:0x29d,_0x84927a:0x205,_0x597332:0x2c6,_0x23d407:0x1e3,_0x15ab16:0x258},_0x1dd8d3={_0x36556b:0x2c5},_0x501b66={_0x4154e9:0xfc};function _0x4a753a(_0x504fb6,_0x1e224a,_0x165679,_0x4bd065){return _0x58fa56(_0x504fb6-_0x501b66._0x4154e9,_0x4bd065- -0x2bf,_0x165679-0x1e2,_0x504fb6);}return this['list']()[_0x4a753a(_0x4e4dee._0x1c2931,0xa2,0x17b,0x10b)](_0x22d0ca=>{const _0x2600d3={_0x1455d3:0x70,_0x30073c:0x1ea};function _0x221735(_0x5d7a26,_0x527190,_0x8408a2,_0x4d71c2){return _0x4a753a(_0x8408a2,_0x527190-0x18b,_0x8408a2-0x11c,_0x5d7a26- -_0x1dd8d3._0x36556b);}function _0x307cb3(_0x2ff059,_0x102ad6,_0x14e9de,_0x16316f){return _0x4a753a(_0x14e9de,_0x102ad6-0x145,_0x14e9de-_0x2600d3._0x1455d3,_0x102ad6- -_0x2600d3._0x30073c);}return{'name':_0x22d0ca[_0x221735(-_0x4de0e0._0x4c249a,-0x270,-_0x4de0e0._0x216ef3,-_0x4de0e0._0x84927a)],'description':_0x22d0ca[_0x221735(-0x26b,-_0x4de0e0._0x597332,-_0x4de0e0._0x23d407,-_0x4de0e0._0x15ab16)],'input_schema':_0x22d0ca['inputSchema']};});}};function validateToolInput(_0x13e785,_0x1a2107){const _0x2f566c={_0x1d4873:0x1ad};function _0x2d66c1(_0x246b0e,_0x15ab6a,_0x4f705d,_0x1dc854){return _0x22e785(_0x246b0e-0x6d,_0x15ab6a-_0x2f566c._0x1d4873,_0x15ab6a- -0x397,_0x1dc854);}return validateAgainstSchema(_0x2d66c1(-0x37,-0x68,-0x18,-0xc1),_0x13e785,_0x1a2107),_0x13e785;}function deriveFinalToolOutput(_0x58102e){const _0x22fbf9={_0x1f7b00:0x375,_0x180263:0x329,_0x23b724:0x3ab,_0xc014aa:0x38b,_0x2e421e:0x33d,_0x2ac870:0x37d,_0x4e6877:0x27f,_0x250550:0x1f1,_0x33ec24:0x25c,_0x304a75:0x431,_0x4e7e52:0x3ee,_0x6e3eb1:0x218,_0xa656de:0x212,_0x53a7fa:0x20c,_0x2e798b:0x23d,_0x411c59:0x2d7,_0x20401f:0x2bd,_0x398bb5:0x256,_0x4e4e54:0x29f,_0x2b64f3:0x25e,_0x3e899c:0x2d0},_0x37a39b={_0x1cbfae:0x1cd},_0x1a5db6={_0x4fea9b:0xad,_0x1401b1:0x162};if(_0x58102e[_0x106544(0x43a,0x393,_0x22fbf9._0x1f7b00,0x3d5)]===0x0)return{'output':'','structured':{}};function _0x1a4ddc(_0x7572d,_0x4b69c1,_0x250472,_0x473135){return _0x22e785(_0x7572d-0x70,_0x4b69c1-_0x1a5db6._0x4fea9b,_0x473135- -_0x1a5db6._0x1401b1,_0x250472);}if(_0x58102e[_0x1a4ddc(0x1fc,0x1d8,0x2bf,0x243)]===0x1)return{'output':_0x58102e[0x0][_0x106544(_0x22fbf9._0x180263,_0x22fbf9._0x23b724,_0x22fbf9._0xc014aa,_0x22fbf9._0x2e421e)],'structured':_0x58102e[0x0][_0x106544(0x430,0x460,_0x22fbf9._0x2ac870,0x404)],..._0x58102e[0x0][_0x1a4ddc(0x1f6,_0x22fbf9._0x4e6877,_0x22fbf9._0x250550,_0x22fbf9._0x33ec24)]!==void 0x0?{'content':_0x58102e[0x0][_0x106544(_0x22fbf9._0x304a75,0x3aa,0x44d,_0x22fbf9._0x4e7e52)]}:{}};function _0x106544(_0x1e1c05,_0x3e57ca,_0x39a8be,_0x82f4c3){return _0x58fa56(_0x1e1c05-_0x37a39b._0x1cbfae,_0x82f4c3-0x1e,_0x39a8be-0x11,_0x39a8be);}const _0x15f292=_0x58102e[_0x1a4ddc(_0x22fbf9._0x6e3eb1,_0x22fbf9._0xa656de,_0x22fbf9._0x53a7fa,_0x22fbf9._0x2e798b)](_0x588f9b=>_0x588f9b['content']!==void 0x0);return{'output':_0x58102e[_0x1a4ddc(0x1f9,_0x22fbf9._0x411c59,_0x22fbf9._0x20401f,_0x22fbf9._0x398bb5)](_0x1c8e0d=>_0x1c8e0d['output'])['join'](''),'structured':{'chunks':_0x58102e['map'](_0x185caf=>_0x185caf['structured'])},..._0x15f292['length']===0x1?{'content':_0x15f292[0x0][_0x1a4ddc(_0x22fbf9._0x4e4e54,_0x22fbf9._0x2b64f3,_0x22fbf9._0x3e899c,0x25c)]}:{}};}var ToolRuntimeInfrastructureError=class extends Error{constructor(_0x1fa980){const _0x18344b={_0x49ed2a:0xa4},_0x444beb={_0x12ec48:0x31,_0x1fbe90:0x5e,_0x4ed6ee:0x2be};super('Tool\x20runtime\x20event\x20publication\x20failed',{'cause':_0x1fa980});function _0x3ed94b(_0x377e62,_0x3c91c6,_0x1b3dd0,_0x261b0c){return _0x22e785(_0x377e62-_0x444beb._0x12ec48,_0x3c91c6-_0x444beb._0x1fbe90,_0x261b0c- -_0x444beb._0x4ed6ee,_0x1b3dd0);}this['name']=_0x3ed94b(0x16d,0xb7,_0x18344b._0x49ed2a,0xf7);}},boundNestedExecutionControls=new WeakMap();function closeBoundNestedToolExecution(_0xfb295f,_0x5cc342){_0xfb295f&&boundNestedExecutionControls['get'](_0xfb295f)?.['close'](_0x5cc342);}async function drainBoundNestedToolPersistence(_0x3e15bd){const _0x1481b8={_0x35de65:0x434,_0xc0fb04:0x44a,_0x5d3cda:0x45d},_0x599e21={_0x56557:0x46};function _0x5b487f(_0x14168d,_0x5880db,_0x39910a,_0x5ddb05){return _0x58fa56(_0x14168d-_0x599e21._0x56557,_0x39910a- -0x1e,_0x39910a-0x42,_0x14168d);}function _0x4d9aaf(_0x56f312,_0x31621d,_0x248de0,_0x43113d){return _0x22e785(_0x56f312-0xfe,_0x31621d-0x164,_0x31621d-0x141,_0x43113d);}_0x3e15bd&&await boundNestedExecutionControls[_0x5b487f(0x408,_0x1481b8._0x35de65,0x3e0,0x38e)](_0x3e15bd)?.[_0x4d9aaf(_0x1481b8._0xc0fb04,_0x1481b8._0x5d3cda,0x450,0x49b)]();}function commitBoundToolExecutionTerminalState(_0x4b671c){const _0x5a1f15={_0x5cde65:0x4cc,_0x2742a1:0x472},_0x2725ab={_0x2f48c1:0x11c,_0x1c8ea3:0x1ba};function _0xc83e9e(_0x2ab2ef,_0x154898,_0x205331,_0x2c3c7e){return _0x58fa56(_0x2ab2ef-0x1,_0x154898-_0x2725ab._0x2f48c1,_0x205331-_0x2725ab._0x1c8ea3,_0x2ab2ef);}_0x4b671c&&boundNestedExecutionControls['get'](_0x4b671c)?.[_0xc83e9e(0x48a,_0x5a1f15._0x5cde65,0x4ba,_0x5a1f15._0x2742a1)]();}var PARENT_TOOL_SETTLED_MESSAGE=_0x22e785(0x441,0x3fc,0x3f3,0x39d);function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x946779,_0x35dc5e,_0x1a8c83,_0x15ffcf,_0xcdf328=[]){const _0x1400c4={_0x43dcf1:0x105,_0x4e03c0:0xe6},_0x2b15f8={_0x1501db:0x98,_0x3ee298:0xed};function _0x4a306c(_0x3ab165,_0x445e1a,_0x2074fb,_0x44e3b6){return _0x58fa56(_0x3ab165-_0x2b15f8._0x1501db,_0x445e1a- -0x202,_0x2074fb-_0x2b15f8._0x3ee298,_0x3ab165);}return{'callId':_0x946779,'toolName':_0x35dc5e,'status':_0x4a306c(0x7b,_0x1400c4._0x43dcf1,_0x1400c4._0x4e03c0,0xb2),'output':_0x1a8c83,'structured':_0x15ffcf,'chunks':_0xcdf328,'meta':createToolMeta()};}function createRejectedToolResult(_0x173388,_0x45d5a1,_0x5fc90d){const _0x192864={_0x238285:0x298,_0x50e711:0x262,_0x5294f5:0x262,_0x47b7e8:0x263,_0x270591:0x50,_0xd942f4:0x72,_0x4c7f79:0x49,_0x870590:0x46,_0x63c604:0x6b,_0x375d55:0x79,_0x2342cf:0x85},_0x1f2f59={_0x40ebc1:0x32},_0x270425={_0x57d404:0xeb,_0x28cd0:0x106},_0x36f7bf=_0x5fc90d?.[_0x10c9c0(-0x2fd,-0x210,-_0x192864._0x238285,-0x2d8)]()[_0x10c9c0(-_0x192864._0x50e711,-_0x192864._0x5294f5,-0x251,-_0x192864._0x47b7e8)]?_0x5fc90d:_0x4273e0(_0x192864._0x270591,0x6e,0xb,_0x192864._0xd942f4)+_0x45d5a1;function _0x10c9c0(_0x2fa177,_0x54b7a8,_0x105107,_0x445bfb){return _0x58fa56(_0x2fa177-_0x270425._0x57d404,_0x105107- -0x608,_0x105107-_0x270425._0x28cd0,_0x54b7a8);}function _0x4273e0(_0x566144,_0x2f2c07,_0x40b672,_0x17033a){return _0x58fa56(_0x566144-0x1bf,_0x2f2c07- -0x327,_0x40b672-_0x1f2f59._0x40ebc1,_0x17033a);}return createErrorToolResult(_0x173388,_0x45d5a1,_0x36f7bf,{'error':'tool_rejected',..._0x5fc90d?.[_0x4273e0(-0x2a,_0x192864._0x4c7f79,_0x192864._0x870590,0x16)]()[_0x4273e0(_0x192864._0x63c604,0x90,_0x192864._0x375d55,_0x192864._0x2342cf)]?{'reason':_0x5fc90d}:{}});}function createAbortedToolResult(_0x2c71d6,_0x43fbbc,_0x491c20,_0x1b10e5=[]){const _0x241924={_0x33bab5:0x136,_0xf9c4e7:0x10a,_0xd18153:0x145,_0x1eca2d:0xa3,_0x50c381:0x115,_0x5ea43d:0xc8,_0xf9fd13:0x13c,_0x5df7f4:0x2e,_0x5610a7:0x9e},_0x1f5163={_0x2bf36a:0x1bd,_0x3481a2:0x447,_0x4b94f3:0xb8},_0x49e560={_0x4afc97:0x131,_0x16ef64:0x503};if(_0x43fbbc===_0xdf9e14(-_0x241924._0x33bab5,-0x185,-_0x241924._0xf9c4e7,-_0x241924._0xd18153))return createErrorToolResult(_0x2c71d6,_0x43fbbc,_0xdf9e14(-0x4a,-_0x241924._0x1eca2d,-0xd5,-0x2a),{'error':_0xdf9e14(-0xde,-0xdd,-_0x241924._0x50c381,-0x63),'aborted':!![]},_0x1b10e5);const _0x10d0e1=toAbortError(_0x491c20);function _0xe44fdd(_0x1c095f,_0x582552,_0x5d999f,_0x5ecbd7){return _0x22e785(_0x1c095f-0x165,_0x582552-_0x49e560._0x4afc97,_0x5d999f- -_0x49e560._0x16ef64,_0x5ecbd7);}function _0xdf9e14(_0x1205ba,_0x578f41,_0x5c07b2,_0x52a97e){return _0x58fa56(_0x1205ba-_0x1f5163._0x2bf36a,_0x1205ba- -_0x1f5163._0x3481a2,_0x5c07b2-_0x1f5163._0x4b94f3,_0x5c07b2);}return createErrorToolResult(_0x2c71d6,_0x43fbbc,_0x10d0e1[_0xdf9e14(-0x110,-0xfb,-_0x241924._0x5ea43d,-_0x241924._0xf9fd13)],{'error':_0x10d0e1['message'],..._0x491c20 instanceof ToolExecutionError?_0x491c20[_0xdf9e14(-0x61,-_0x241924._0x5df7f4,-_0x241924._0x5610a7,-0x1)]:{},'aborted':!![]},_0x1b10e5);}function createSuccessToolResult(_0x2293f7,_0x1c2556,_0x4a16f0,_0x3a8d0d){const _0x579ce0={_0x4bd612:0x4d0,_0x3dfcf2:0x4d5,_0x3f34ca:0x4ed,_0x17f0e5:0x7,_0x54d1c1:0x53e,_0xf8f5d4:0x560,_0x576fe4:0x4d7},_0x54a9d1={_0x22ca8e:0x119};function _0x3f8a1b(_0x2d0f5f,_0x254962,_0x5a9b99,_0x16e409){return _0x22e785(_0x2d0f5f-0x121,_0x254962-0x1b8,_0x5a9b99- -0x356,_0x2d0f5f);}function _0x3ead33(_0x270c48,_0x47de2f,_0x56f1b8,_0x5daa28){return _0x22e785(_0x270c48-0xe9,_0x47de2f-0x1b,_0x56f1b8-_0x54a9d1._0x22ca8e,_0x5daa28);}return{'callId':_0x2293f7,'toolName':_0x1c2556,'status':'ok','output':_0x4a16f0['output'],'structured':_0x4a16f0[_0x3ead33(_0x579ce0._0x4bd612,_0x579ce0._0x3dfcf2,_0x579ce0._0x3f34ca,0x517)],..._0x4a16f0[_0x3f8a1b(0x8d,-_0x579ce0._0x17f0e5,0x68,-0x1f)]!==void 0x0?{'content':_0x4a16f0[_0x3ead33(_0x579ce0._0x54d1c1,_0x579ce0._0xf8f5d4,_0x579ce0._0x576fe4,0x46d)]}:{},'chunks':_0x3a8d0d,'meta':createToolMeta()};}function createUnknownToolResult(_0x35931f,_0x53147a){const _0xc55e7f={_0x52b53a:0x28a,_0x49b8ab:0x9b,_0x327394:0x155},_0x2eb7c5={_0x33a2ff:0xd0};function _0x3606b2(_0x1fa949,_0x396a0f,_0x1382fe,_0xe37d9b){return _0x58fa56(_0x1fa949-_0x2eb7c5._0x33a2ff,_0x396a0f- -0x25,_0x1382fe-0xdb,_0x1382fe);}function _0x3b7520(_0x5cec4e,_0x5d2fc4,_0x367ad3,_0x201e39){return _0x22e785(_0x5cec4e-0x103,_0x5d2fc4-0x1c1,_0x367ad3- -0x2b0,_0x5d2fc4);}return createErrorToolResult(_0x35931f,_0x53147a,_0x3606b2(_0xc55e7f._0x52b53a,0x310,0x34d,0x34f)+_0x53147a,{'error':_0x3b7520(_0xc55e7f._0x49b8ab,0x8f,0x10b,_0xc55e7f._0x327394)});}function cloneToolCallForPublication(_0x4f5d58,_0x200424,_0x325539){const _0x4458dc={_0x534f73:0x105,_0x205cb9:0x1d},_0x7e7a3e={_0x59606d:0xf4,_0x1816db:0xf1,_0x1d0a32:0x34e};function _0xa13554(_0x1c0926,_0x548f4d,_0x2e42c5,_0x128176){return _0x22e785(_0x1c0926-_0x7e7a3e._0x59606d,_0x548f4d-_0x7e7a3e._0x1816db,_0x128176- -_0x7e7a3e._0x1d0a32,_0x2e42c5);}return{...structuredClone(_0x4f5d58),'type':_0xa13554(0x50,_0x4458dc._0x534f73,_0x4458dc._0x205cb9,0x97),'id':_0x200424,'name':_0x325539};}function cloneToolResultChunkForPublication(_0x380b8c){return structuredClone(_0x380b8c);}function cloneToolResultForPublication(_0x2b1b1e,_0xee39f5,_0xd18aa6){const _0x5d4d2f={_0x57ada8:0xf1},{chunks:_0x129a96,..._0xd1ed46}=_0x2b1b1e;function _0x423d73(_0x2a0c5e,_0x4a5437,_0x5d261c,_0x429efd){return _0x22e785(_0x2a0c5e-0x77,_0x4a5437-0x1a5,_0x5d261c- -_0x5d4d2f._0x57ada8,_0x429efd);}return{...structuredClone(_0xd1ed46),'callId':_0xee39f5,'toolName':_0xd18aa6,'chunks':_0x129a96[_0x423d73(0x251,0x31f,0x2c7,0x322)](cloneToolResultChunkForPublication)};}function isDispatchDecision(_0x43b9f6){const _0x121712={_0x5ef490:0x184,_0x467033:0x1c8,_0x114489:0x3b6,_0x199540:0x342,_0x23284:0x152,_0x43becd:0x17e,_0x2afad6:0x71},_0x3a7875={_0x3b126e:0x9c,_0x158812:0x13b},_0x90ded3={_0x14903e:0x112};function _0x3b3568(_0x50cf77,_0xa540ab,_0x24a947,_0x242a3c){return _0x22e785(_0x50cf77-0xea,_0xa540ab-_0x90ded3._0x14903e,_0x242a3c- -0x89,_0xa540ab);}function _0x4105de(_0x37820d,_0x13719e,_0x461e9e,_0x2a3eb1){return _0x22e785(_0x37820d-_0x3a7875._0x3b126e,_0x13719e-_0x3a7875._0x158812,_0x13719e- -0x4c5,_0x461e9e);}if(typeof _0x43b9f6!==_0x4105de(-0x1a7,-_0x121712._0x5ef490,-_0x121712._0x467033,-0x14f)||_0x43b9f6===null)return![];return _0x43b9f6[_0x3b3568(0x2f0,_0x121712._0x114489,0x3c8,_0x121712._0x199540)]===_0x3b3568(0x3ae,0x367,0x301,0x360)||_0x43b9f6[_0x4105de(-0x110,-0xfa,-_0x121712._0x23284,-_0x121712._0x43becd)]===_0x4105de(-0x104,-0xe4,-_0x121712._0x2afad6,-0xc7);}function _0x58fa56(_0x36b7e6,_0x7b4a34,_0x1fb664,_0x264fc0){const _0x104185={_0x28d423:0x27c};return _0x37f7(_0x7b4a34-_0x104185._0x28d423,_0x264fc0);}function normalizeExecutionError(_0x174b56){const _0x21b606={_0x1bd7a1:0x311,_0x27890e:0x2cb,_0x33373a:0x258,_0x5e774a:0x270,_0x263897:0xc5,_0x4e8d75:0xe7,_0x2a4e17:0xae,_0x51f841:0x32a,_0x2f08d2:0x32d,_0x4924f5:0x1a2,_0x526ccf:0x1f0,_0x59d923:0x1d2,_0x4a4f6f:0x13a},_0x5d024b={_0x1586f5:0x6c,_0x2b7cea:0x140},_0x11e3bd={_0x48d01d:0x232,_0x4c7764:0xb8};if(_0x174b56 instanceof ToolExecutionError)return{'errorMessage':_0x174b56['message'],'structured':{'error':_0x174b56[_0xd41b3a(0x355,0x2ba,_0x21b606._0x1bd7a1,_0x21b606._0x27890e)],..._0x174b56['structured']}};if(_0x174b56 instanceof Error)return{'errorMessage':_0x174b56[_0xd41b3a(0x2d6,0x257,0x309,0x2cb)],'structured':{'error':_0x174b56[_0xd41b3a(0x284,_0x21b606._0x33373a,_0x21b606._0x5e774a,0x2cb)]}};function _0x450ed9(_0x59c82e,_0x1d8994,_0x599a07,_0x334d32){return _0x58fa56(_0x59c82e-0x17c,_0x334d32- -_0x11e3bd._0x48d01d,_0x599a07-_0x11e3bd._0x4c7764,_0x59c82e);}if(typeof _0x174b56===_0x450ed9(_0x21b606._0x263897,_0x21b606._0x4e8d75,_0x21b606._0x2a4e17,0x121)&&_0x174b56!==null&&_0xd41b3a(_0x21b606._0x51f841,0x2ee,_0x21b606._0x2f08d2,0x2cb)in _0x174b56&&typeof _0x174b56['message']===_0x450ed9(_0x21b606._0x4924f5,_0x21b606._0x526ccf,0x1ab,_0x21b606._0x59d923))return{'errorMessage':_0x174b56['message'],'structured':{'error':_0x174b56[_0x450ed9(0x85,0x136,_0x21b606._0x4a4f6f,0x105)]}};function _0xd41b3a(_0x3ab69c,_0x5a408,_0x3cb0b3,_0x1526c8){return _0x58fa56(_0x3ab69c-0xd,_0x1526c8- -_0x5d024b._0x1586f5,_0x3cb0b3-_0x5d024b._0x2b7cea,_0x3ab69c);}const _0x57b225=String(_0x174b56);return{'errorMessage':_0x57b225,'structured':{'error':_0x57b225}};}function cloneToolEventForPublication(_0x54ef61){const _0x5b93eb={_0x459d7f:0x2f6,_0x5da8d6:0x200,_0x5591f0:0x27c,_0x9ddad1:0x1f4,_0x4f13ef:0x2d5,_0x451fe6:0x308,_0xaf1685:0x2ac,_0x53b05e:0x26f,_0x15eb60:0x213,_0xf39eaa:0x210,_0x2d20bb:0x22e,_0x2ed7a3:0x241,_0x7ff282:0x235,_0x3e59ff:0x22f,_0x57cf1e:0x231,_0x41e4e7:0x2c4,_0x122059:0x2ac,_0x2592b2:0x31e,_0x4ed63c:0x331,_0x196606:0x1e5,_0x17619e:0x29f,_0x474ce6:0x216,_0xaf23fa:0x2fd,_0x23a358:0x26f,_0x3e99c4:0x2ac,_0x4daa41:0x245,_0x32f033:0x23c,_0x5c606c:0x225,_0x3cc1e5:0x23c,_0x245aa7:0x1ea,_0x533474:0x302,_0x5bea5e:0x2ee},_0x41c9b1={_0x4aa403:0x1cc,_0x20f0cc:0x101},_0x5cc26c={_0x5df807:0x194,_0x3bad17:0x106,_0x1e56dd:0x18d};function _0x4d2b38(_0x41cf0f,_0x2409d6,_0x433b8b,_0x5238f4){return _0x58fa56(_0x41cf0f-_0x5cc26c._0x5df807,_0x5238f4- -_0x5cc26c._0x3bad17,_0x433b8b-_0x5cc26c._0x1e56dd,_0x433b8b);}function _0x299438(_0xd1594a,_0x243893,_0x2ef13b,_0x2abccd){return _0x22e785(_0xd1594a-0x161,_0x243893-_0x41c9b1._0x4aa403,_0xd1594a- -_0x41c9b1._0x20f0cc,_0x243893);}switch(_0x54ef61[_0x299438(0x2bf,0x2eb,_0x5b93eb._0x459d7f,0x27a)]){case _0x299438(_0x5b93eb._0x5da8d6,_0x5b93eb._0x5591f0,_0x5b93eb._0x9ddad1,0x213):case'tool_started':return{..._0x54ef61,'toolCall':cloneToolCallForPublication(_0x54ef61[_0x4d2b38(0x243,_0x5b93eb._0x4f13ef,_0x5b93eb._0x451fe6,_0x5b93eb._0xaf1685)],_0x54ef61['toolCall']['id'],_0x54ef61[_0x4d2b38(0x26c,_0x5b93eb._0x53b05e,0x229,_0x5b93eb._0xaf1685)][_0x4d2b38(0x285,_0x5b93eb._0x15eb60,_0x5b93eb._0xf39eaa,_0x5b93eb._0x2d20bb)])};case _0x4d2b38(0x1e6,_0x5b93eb._0x2ed7a3,0x1f9,_0x5b93eb._0x7ff282):return{..._0x54ef61,'toolCall':cloneToolCallForPublication(_0x54ef61[_0x4d2b38(0x313,0x305,0x222,_0x5b93eb._0xaf1685)],_0x54ef61[_0x4d2b38(0x23f,_0x5b93eb._0x3e59ff,0x239,0x2ac)]['id'],_0x54ef61[_0x4d2b38(_0x5b93eb._0x57cf1e,_0x5b93eb._0x41e4e7,0x2de,_0x5b93eb._0x122059)]['name']),'chunk':cloneToolResultChunkForPublication(_0x54ef61[_0x4d2b38(_0x5b93eb._0x2592b2,_0x5b93eb._0x4ed63c,0x2c1,0x2ec)])};case'tool_completed':case _0x299438(0x238,0x200,0x264,_0x5b93eb._0x196606):return{..._0x54ef61,'toolCall':cloneToolCallForPublication(_0x54ef61[_0x299438(_0x5b93eb._0x17619e,_0x5b93eb._0x474ce6,_0x5b93eb._0xaf23fa,0x260)],_0x54ef61[_0x4d2b38(0x29d,0x2b9,_0x5b93eb._0x23a358,_0x5b93eb._0x3e99c4)]['id'],_0x54ef61[_0x4d2b38(_0x5b93eb._0x4daa41,0x335,0x2f4,_0x5b93eb._0x122059)][_0x299438(0x221,0x24b,0x1f5,0x199)]),'result':cloneToolResultForPublication(_0x54ef61[_0x299438(_0x5b93eb._0x32f033,_0x5b93eb._0x5c606c,0x1f3,0x232)],_0x54ef61['toolCall']['id'],_0x54ef61[_0x4d2b38(0x319,0x256,0x2ec,_0x5b93eb._0x3e99c4)]['name'])};case'tool_result':return{..._0x54ef61,'result':cloneToolResultForPublication(_0x54ef61['result'],_0x54ef61['result']['callId'],_0x54ef61[_0x299438(_0x5b93eb._0x3cc1e5,0x24e,_0x5b93eb._0x245aa7,0x2bf)][_0x4d2b38(_0x5b93eb._0x533474,_0x5b93eb._0x5bea5e,0x324,_0x5b93eb._0x5bea5e)])};default:return _0x54ef61;}}async function emitEvent(_0x1e7efb,_0x19c5ca,_0x5869cf){try{await _0x1e7efb?.(cloneToolEventForPublication(_0x19c5ca),_0x5869cf);}catch(_0x22d466){throw new ToolRuntimeInfrastructureError(_0x22d466);}}function actualCancellationHasPrecedence(_0x41e943,_0x9cc2c6){const _0x514759={_0x2e68a0:0x89,_0x558131:0xe0};function _0x57ccfc(_0x5a095d,_0x8f9458,_0xf95cc3,_0x344a79){return _0x22e785(_0x5a095d-_0x514759._0x2e68a0,_0x8f9458-0x56,_0x8f9458- -_0x514759._0x558131,_0x5a095d);}return _0x41e943[_0x57ccfc(0x2d7,0x2ce,0x333,0x312)]['aborted']&&!_0x9cc2c6;}function selectActualCancellationReason(_0x2d82c2,_0x519e6f){const _0x24a093={_0x2d289c:0x7e,_0x1fb7a3:0x124,_0x43282e:0x120,_0x46ea5d:0xa2},_0x4b4971={_0x17e57d:0xdb,_0x446f5a:0x4bb},_0x2e2a04={_0x3dbde2:0x1cb,_0x24ff1d:0x103};function _0x3c6f90(_0x1fe0c2,_0x29a33a,_0x8b5de0,_0xd90676){return _0x58fa56(_0x1fe0c2-_0x2e2a04._0x3dbde2,_0x8b5de0- -0x614,_0x8b5de0-_0x2e2a04._0x24ff1d,_0x1fe0c2);}function _0x56756e(_0x19e16b,_0x5e6fb5,_0x259cba,_0x37062f){return _0x58fa56(_0x19e16b-_0x4b4971._0x17e57d,_0x37062f- -_0x4b4971._0x446f5a,_0x259cba-0x15e,_0x259cba);}return _0x2d82c2 instanceof ToolExecutionError&&_0x2d82c2[_0x56756e(-_0x24a093._0x2d289c,-0x10b,-_0x24a093._0x1fb7a3,-0xd5)][_0x56756e(-_0x24a093._0x43282e,-_0x24a093._0x46ea5d,-0x141,-0xd6)]===!![]?_0x2d82c2:_0x519e6f;}function selectedTerminalStateHasPrecedence(_0x5f2e2d,_0x18d5fb,_0x3615ed,_0xccd1fe){const _0x413edc={_0x4d07ce:0x278,_0x45014b:0x2c3,_0x491ae1:0x25a,_0x49597e:0x252,_0x481f96:0x20e,_0x3b0852:0x192,_0x4db4bf:0x11a,_0x46327d:0x261,_0x2da023:0x28c,_0x52bdcd:0x267,_0x3e9a8c:0x27b,_0x161cb8:0x233,_0x5c1eaa:0x271,_0x62172c:0x1ef,_0x170ca9:0x1cd,_0x5dc573:0x192,_0x6b590:0x2ed,_0x3eb4da:0x271,_0x2972f5:0x2ce,_0x432d6c:0x1a6,_0x5db00e:0x165,_0x26ce22:0x173,_0x1c8536:0x2bd,_0x3ff0bc:0x232,_0xf248f9:0x252,_0x58dc4d:0x24d,_0x82af7:0x1e0,_0x2059da:0x251},_0x3b3f63={_0x339e22:0x159,_0x20a7ef:0xa9,_0x241a9b:0x547},_0x1ec6ab={_0x352b4a:0x162,_0x2707fb:0x148,_0x5ec7ad:0x566};if(_0x18d5fb[_0x1db7da(-0x2cc,-_0x413edc._0x4d07ce,-0x25b,-_0x413edc._0x45014b)]!==_0x21b88f(-0x20b,-0x1e0,-_0x413edc._0x491ae1,-_0x413edc._0x49597e))return![];if(!_0xccd1fe)return _0x18d5fb[_0x1db7da(-0x1cb,-_0x413edc._0x481f96,-_0x413edc._0x3b0852,-_0x413edc._0x4db4bf)]['aborted']===!![]&&actualCancellationHasPrecedence(_0x3615ed,_0xccd1fe);if(_0x5f2e2d!==_0x1db7da(-_0x413edc._0x46327d,-_0x413edc._0x2da023,-_0x413edc._0x52bdcd,-_0x413edc._0x3e9a8c))return![];function _0x1db7da(_0x14ff55,_0x5b4d4d,_0x237fcd,_0x3358d9){return _0x22e785(_0x14ff55-_0x1ec6ab._0x352b4a,_0x5b4d4d-_0x1ec6ab._0x2707fb,_0x237fcd- -_0x1ec6ab._0x5ec7ad,_0x3358d9);}function _0x21b88f(_0x156d7b,_0x1b54da,_0x5d1c15,_0x17dcd0){return _0x22e785(_0x156d7b-_0x3b3f63._0x339e22,_0x1b54da-_0x3b3f63._0x20a7ef,_0x17dcd0- -_0x3b3f63._0x241a9b,_0x1b54da);}return _0x18d5fb['structured'][_0x1db7da(-0x212,-_0x413edc._0x161cb8,-_0x413edc._0x5c1eaa,-_0x413edc._0x62172c)]==='program-aborted'||_0x18d5fb[_0x1db7da(-0x139,-_0x413edc._0x170ca9,-_0x413edc._0x5dc573,-0x1dd)][_0x1db7da(-_0x413edc._0x6b590,-0x2d7,-_0x413edc._0x3eb4da,-_0x413edc._0x2972f5)]==='program-timeout'||_0x18d5fb[_0x21b88f(-0x1fc,-_0x413edc._0x432d6c,-_0x413edc._0x5db00e,-_0x413edc._0x26ce22)][_0x21b88f(-_0x413edc._0x1c8536,-_0x413edc._0x3ff0bc,-0x21e,-_0x413edc._0xf248f9)]===_0x1db7da(-_0x413edc._0x58dc4d,-_0x413edc._0x82af7,-_0x413edc._0x2059da,-0x1ee);}async function emitToolCompletedEventWithTerminalPrecedence(_0x573943,_0x28d39c,_0x1eaa94,_0x14dcc6,_0x45e77f,_0x3cd3f2,_0x191749=![]){const _0x3f4b44={_0xd6b0bb:0x1f,_0x1c7fc1:0x4f,_0x10f9e2:0xbb},_0xdbef7={_0x44bcdd:0x8a};function _0x540788(_0x507a54,_0x5c02fc,_0x1701a3,_0x50e7b7){return _0x22e785(_0x507a54-_0xdbef7._0x44bcdd,_0x5c02fc-0x14a,_0x1701a3- -0x34f,_0x5c02fc);}try{await emitEvent(_0x573943,{'type':_0x540788(_0x3f4b44._0xd6b0bb,-0x94,-_0x3f4b44._0x1c7fc1,-_0x3f4b44._0x10f9e2),'toolCall':cloneToolCallForPublication(_0x28d39c,_0x1eaa94,_0x14dcc6),'result':_0x45e77f},_0x3cd3f2);}catch(_0x3e3994){if(!(_0x3e3994 instanceof ToolRuntimeInfrastructureError)||!selectedTerminalStateHasPrecedence(_0x14dcc6,_0x45e77f,_0x3cd3f2,_0x191749))throw _0x3e3994;}}async function awaitWithAbort(_0x55640d,_0x34e3f5){const _0xd76d30={_0x36657c:0x25b,_0x1b32a9:0x214},_0x2e56a6={_0x53de41:0x13a,_0x31d49e:0xa6,_0xdcfd3b:0xe1},_0x59df19={_0x428404:0xb6},_0x2ad60f={_0x424d9b:0x249,_0x2e86d6:0x26d},_0x1064d1={_0x23bf14:0xbd,_0x19602e:0x174};let _0xbb4443=()=>{},_0x4d338a;function _0x593b6f(_0x528f94,_0x312a30,_0x227b79,_0x38a45c){return _0x22e785(_0x528f94-_0x1064d1._0x23bf14,_0x312a30-_0x1064d1._0x19602e,_0x528f94- -0x54a,_0x38a45c);}_0x34e3f5&&(throwIfAborted(_0x34e3f5),_0x4d338a=new Promise((_0x13a74f,_0x32765b)=>{const _0x5978aa=()=>{function _0x5017c8(_0x3dedcd,_0x335e1a,_0x74e49a,_0x5e231c){return _0x37f7(_0x335e1a-0x1cb,_0x3dedcd);}_0x32765b(toAbortError(_0x34e3f5[_0x5017c8(0x2b2,_0x2ad60f._0x424d9b,_0x2ad60f._0x2e86d6,0x297)]));};function _0x326d7c(_0x24b3c5,_0x290026,_0x43dd2c,_0x5d91d4){return _0x37f7(_0x24b3c5- -_0x59df19._0x428404,_0x290026);}_0x34e3f5[_0xb776c8(_0x2e56a6._0x53de41,0x115,_0x2e56a6._0x31d49e,0xbe)](_0xb776c8(0x65,_0x2e56a6._0xdcfd3b,0x7b,0x6e),_0x5978aa,{'once':!![]});function _0xb776c8(_0x13d381,_0x1f5002,_0x4e731f,_0x2156bd){return _0x37f7(_0x1f5002-0x53,_0x2156bd);}_0xbb4443=()=>_0x34e3f5[_0x326d7c(0x93,0x7e,0x3d,0x116)](_0x326d7c(-0x28,-0x5f,-0x11,-0x25),_0x5978aa);}));const _0x161ab7=Promise['resolve']()[_0x593b6f(-_0xd76d30._0x36657c,-_0xd76d30._0x1b32a9,-0x1e6,-0x249)](()=>{return throwIfAborted(_0x34e3f5),_0x55640d();});try{return await(_0x4d338a?Promise['race']([_0x161ab7,_0x4d338a]):_0x161ab7);}finally{_0xbb4443();}}function createNestedCallAdmissionGate(){const _0x437ccb={_0x1612fa:0x5c,_0x481e53:0x15},_0x491656={_0x379171:0x51,_0x298106:0xd4,_0x1f9373:0x67,_0x2fcec2:0x7b,_0x18d73e:0x41,_0x4ad695:0x58,_0x20c23e:0xd9,_0x2a4669:0xda},_0x1cfbc9={_0x50550b:0xb3,_0x347844:0x42},_0x590419={_0x3b26f9:0x178,_0x31074e:0x48},_0x1921a8={_0x20f101:0xb6};let _0x13d2d0=0x1,_0x5968fc=![],_0x26967a,_0x50f66c=Promise[_0x2291ce(0x2c,_0x437ccb._0x1612fa,-_0x437ccb._0x481e53,-0x4a)]();const _0x3ce0ad=new Set();function _0x2291ce(_0x3771fa,_0x25824f,_0x53f72d,_0x3bc4d7){return _0x22e785(_0x3771fa-0x4e,_0x25824f-_0x1921a8._0x20f101,_0x53f72d- -0x33b,_0x3bc4d7);}const _0x40290c=_0x49426b=>{!_0x5968fc&&(_0x5968fc=!![],_0x26967a=_0x49426b);for(const _0x5cb63b of[..._0x3ce0ad]){_0x5cb63b();}};return{'register'(_0xb804e0){const _0x2311ec={_0x209515:0x371};function _0x320ced(_0x51cf64,_0x1783fb,_0x112b84,_0x4678e3){return _0x2291ce(_0x51cf64-_0x590419._0x3b26f9,_0x1783fb-0x79,_0x4678e3-_0x590419._0x31074e,_0x1783fb);}function _0x3c369c(_0x100e68,_0x312acb,_0x4a345f,_0x16bcb9){return _0x2291ce(_0x100e68-0xb8,_0x312acb-_0x1cfbc9._0x50550b,_0x100e68-_0x1cfbc9._0x347844,_0x312acb);}if(_0x5968fc)throw _0x26967a;if(_0xb804e0!==_0x13d2d0){const _0x4f721c=new Error(_0x3c369c(_0x491656._0x379171,-0x30,_0x491656._0x298106,_0x491656._0x1f9373)+_0xb804e0+_0x320ced(0x6e,-0x44,_0x491656._0x2fcec2,_0x491656._0x18d73e)+_0x13d2d0);_0x40290c(_0x4f721c);throw _0x4f721c;}_0x13d2d0+=0x1;const _0x1a007a=_0x50f66c;let _0x2852f6;_0x50f66c=new Promise(_0x6f8ef=>{_0x2852f6=_0x6f8ef;});const _0x29fc0e=()=>{if(_0x2852f6===void 0x0)return;function _0x2a893b(_0x1b066b,_0x4f7a5d,_0x29b10c,_0x681943){return _0x320ced(_0x1b066b-0x1b,_0x1b066b,_0x29b10c-0xd9,_0x681943-_0x2311ec._0x209515);}const _0xe07dd4=_0x2852f6;_0x2852f6=void 0x0,_0x3ce0ad[_0x2a893b(0x412,0x3c8,0x396,0x41f)](_0x29fc0e),_0xe07dd4();};return _0x3ce0ad[_0x3c369c(_0x491656._0x4ad695,_0x491656._0x20c23e,_0x491656._0x2a4669,0x67)](_0x29fc0e),{async 'admit'(_0xe0fe06,_0x4c41ff){try{await awaitWithAbort(()=>_0x1a007a,_0x4c41ff);if(_0x5968fc)throw _0x26967a;await _0xe0fe06();if(_0x5968fc)throw _0x26967a;}catch(_0x3e4ba2){_0x40290c(_0x3e4ba2);throw _0x3e4ba2;}finally{_0x29fc0e();}},'fail'(_0x4383e4){_0x40290c(_0x4383e4),_0x29fc0e();}};},'fail':_0x40290c};}async function awaitRequiredPersistence(_0x1434e9,_0x12f916,_0x484309){const _0x4ea19f={_0x25b695:0x16b,_0x1d5dd8:0x15a,_0x170dd6:0x1dc};await awaitWithAbort(()=>{function _0x263c58(_0x2a3e50,_0x5a392d,_0x39a571,_0x1b761b){return _0x37f7(_0x1b761b-0x120,_0x39a571);}const _0x3bc9cc=Promise[_0x263c58(_0x4ea19f._0x25b695,0x20b,_0x4ea19f._0x1d5dd8,_0x4ea19f._0x170dd6)]()['then'](_0x1434e9);return _0x484309(_0x3bc9cc),_0x3bc9cc;},_0x12f916);}function _0x37f7(_0x39e8ae,_0x366993){_0x39e8ae=_0x39e8ae-0x7a;const _0x22cdba=_0x22cd();let _0x37f7de=_0x22cdba[_0x39e8ae];if(_0x37f7['yeajIM']===undefined){var _0x7fc888=function(_0x2bd3cd){const _0x4ab9b2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5c29b0='',_0x4247ed='';for(let _0xb21b39=0x0,_0x35972,_0x59a37c,_0xe04848=0x0;_0x59a37c=_0x2bd3cd['charAt'](_0xe04848++);~_0x59a37c&&(_0x35972=_0xb21b39%0x4?_0x35972*0x40+_0x59a37c:_0x59a37c,_0xb21b39++%0x4)?_0x5c29b0+=String['fromCharCode'](0xff&_0x35972>>(-0x2*_0xb21b39&0x6)):0x0){_0x59a37c=_0x4ab9b2['indexOf'](_0x59a37c);}for(let _0x484311=0x0,_0x14cdd2=_0x5c29b0['length'];_0x484311<_0x14cdd2;_0x484311++){_0x4247ed+='%'+('00'+_0x5c29b0['charCodeAt'](_0x484311)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4247ed);};_0x37f7['YDYJpR']=_0x7fc888,_0x37f7['ASyeNI']={},_0x37f7['yeajIM']=!![];}const _0x3d367c=_0x22cdba[0x0],_0x76d0be=_0x39e8ae+_0x3d367c,_0x23b23e=_0x37f7['ASyeNI'][_0x76d0be];return!_0x23b23e?(_0x37f7de=_0x37f7['YDYJpR'](_0x37f7de),_0x37f7['ASyeNI'][_0x76d0be]=_0x37f7de):_0x37f7de=_0x23b23e,_0x37f7de;}async function awaitUncancellableAfterAdmission(_0x13f355,_0x256e83){const _0x28ea0d={_0xac5a26:0x3d1,_0x25b1dc:0x453,_0x440ea8:0x446,_0x3157b6:0x3b4,_0x3bc40a:0x3d3,_0x152287:0x48b,_0x267f7a:0x42c},_0x274109={_0x2dd345:0x6f,_0x4f7dee:0x93,_0x55b3c0:0x2f},_0x4eac38={_0x22a520:0xcb};function _0x41956d(_0x16456b,_0x8e5603,_0x18a5e5,_0x385066){return _0x58fa56(_0x16456b-_0x4eac38._0x22a520,_0x385066- -0x172,_0x18a5e5-0xe8,_0x16456b);}function _0x4d91a9(_0x4871e7,_0x253464,_0x2f7238,_0x4eaf6c){return _0x58fa56(_0x4871e7-_0x274109._0x2dd345,_0x4871e7-_0x274109._0x4f7dee,_0x2f7238-_0x274109._0x55b3c0,_0x253464);}throwIfAborted(_0x256e83);const _0x56715b=()=>{};_0x256e83[_0x4d91a9(_0x28ea0d._0xac5a26,0x391,_0x28ea0d._0x25b1dc,_0x28ea0d._0x440ea8)](_0x4d91a9(0x39d,_0x28ea0d._0x3157b6,_0x28ea0d._0x3bc40a,0x406),_0x56715b,{'once':!![]});try{return throwIfAborted(_0x256e83),await _0x13f355();}finally{_0x256e83[_0x4d91a9(0x458,_0x28ea0d._0x152287,0x3fa,_0x28ea0d._0x267f7a)]('abort',_0x56715b);}}async function resolveDispatchDecision(_0x5e5afa,_0x38102b,_0x2a6eb8){if(!_0x5e5afa)return{'action':'run'};const _0x33d3d8=await awaitWithAbort(()=>_0x5e5afa(_0x38102b,_0x2a6eb8),_0x2a6eb8['signal']);return isDispatchDecision(_0x33d3d8)?_0x33d3d8:{'action':'run'};}async function prepareNestedToolCall(_0x11ebaf,_0xcc452a,_0x12878c,_0x2e5998){const _0x3125d9={_0x561e3c:0x46},_0x4b22b5={_0x55426b:0xb1,_0xe97ecb:0x11b};if(!_0x11ebaf)return _0xcc452a;const _0x439862=await awaitWithAbort(()=>_0x11ebaf[_0x354e98(0x3a9,0x362,0x39a,0x374)](_0x2438ea(-0x1ff,-0x2ba,-0x269,-0x29a),_0xcc452a,_0x12878c),_0x2e5998);throwIfAborted(_0x2e5998),await awaitWithAbort(()=>_0x11ebaf['runObservers']('beforeToolExecution',_0x439862,_0x12878c),_0x2e5998);function _0x354e98(_0x36d0cb,_0x4eac0a,_0x34d1b3,_0x238d18){return _0x58fa56(_0x36d0cb-_0x4b22b5._0x55426b,_0x36d0cb-0x93,_0x34d1b3-_0x4b22b5._0xe97ecb,_0x4eac0a);}function _0x2438ea(_0x31a506,_0x21d0a2,_0x167957,_0x3e11a6){return _0x58fa56(_0x31a506-_0x3125d9._0x561e3c,_0x167957- -0x649,_0x167957-0x53,_0x31a506);}return _0x439862;}async function transformNestedToolResult(_0x513243,_0x43f4f7,_0x3852e5,_0x1521cd){const _0x17b002={_0x5501d6:0x10f};if(!_0x513243)return _0x43f4f7;function _0x573b85(_0x538c22,_0x345efc,_0xab9276,_0x587223){return _0x58fa56(_0x538c22-_0x17b002._0x5501d6,_0xab9276- -0x61d,_0xab9276-0x7b,_0x587223);}const _0x54e16d=await awaitWithAbort(()=>_0x513243[_0x573b85(-0x370,-0x35b,-0x307,-0x31f)](_0x573b85(-0x19f,-0x1d0,-0x221,-0x20f),_0x43f4f7,_0x3852e5),_0x1521cd);throwIfAborted(_0x1521cd);function _0x5afff6(_0xb45eb8,_0x4af135,_0x37d6c5,_0x32ea33){return _0x58fa56(_0xb45eb8-0x170,_0x4af135- -0x28,_0x37d6c5-0x1d7,_0x32ea33);}return await awaitWithAbort(()=>_0x513243[_0x5afff6(0x2e5,0x2fc,0x320,0x368)](_0x573b85(-0x1ae,-0x26e,-0x221,-0x1fe),_0x54e16d,_0x3852e5),_0x1521cd),_0x54e16d;}function snapshotNestedToolRequest(_0x173e4b){const _0x2ab69b={_0x4a6208:0x425,_0x4d54b7:0x3fc,_0x4314ea:0x3de,_0xb56077:0x28e,_0x5b0ec2:0x25c,_0xf251b:0x252,_0x3d314d:0x2cc,_0x4a432c:0x237,_0x2daeed:0x226,_0x3baeaa:0x3ed,_0x56d2b6:0x36a,_0x121074:0x476,_0x235236:0x20e,_0x1fefeb:0x1e2,_0x346019:0x210,_0x2e35e6:0x298,_0x508ea8:0x1c9,_0x5be77d:0x44a,_0x569dd9:0x472,_0xd0c9a7:0x399},_0x55130e={_0x1c8b5f:0x188,_0x100a5f:0x124,_0xa3b1c3:0x36},_0x4c3ab8={_0x477cbf:0x83},_0x3facf1=_0x173e4b[_0x35bc14(0x39c,_0x2ab69b._0x4a6208,0x3e6,0x311)],_0x1559d0=_0x173e4b[_0x35bc14(0x425,_0x2ab69b._0x4d54b7,_0x2ab69b._0x4314ea,0x404)];function _0x35bc14(_0x524ddd,_0x2dea39,_0x59781b,_0x3182c2){return _0x22e785(_0x524ddd-0x1b2,_0x2dea39-0x158,_0x524ddd-_0x4c3ab8._0x477cbf,_0x2dea39);}const _0x36bf3c=_0x173e4b[_0x3a4c9a(_0x2ab69b._0xb56077,_0x2ab69b._0x5b0ec2,_0x2ab69b._0xf251b,_0x2ab69b._0x3d314d)]['id'],_0x530ecb=structuredClone(_0x173e4b[_0x3a4c9a(_0x2ab69b._0xb56077,0x22f,_0x2ab69b._0x4a432c,_0x2ab69b._0x2daeed)]),_0x1ea66b=_0x173e4b[_0x35bc14(_0x2ab69b._0x3baeaa,_0x2ab69b._0x56d2b6,_0x2ab69b._0x121074,0x451)],_0xcf3e8b=_0x173e4b[_0x3a4c9a(_0x2ab69b._0x235236,0x1f9,_0x2ab69b._0xb56077,_0x2ab69b._0x1fefeb)];function _0x3a4c9a(_0x201732,_0x2d844e,_0x4829f3,_0x2cf986){return _0x58fa56(_0x201732-_0x55130e._0x1c8b5f,_0x201732- -_0x55130e._0x100a5f,_0x4829f3-_0x55130e._0xa3b1c3,_0x2cf986);}if(_0x530ecb[_0x3a4c9a(_0x2ab69b._0x346019,0x28d,0x268,0x20f)]!==_0x3facf1||_0x1559d0!==void 0x0&&_0x1559d0[_0x3a4c9a(0x210,0x28f,_0x2ab69b._0x2e35e6,_0x2ab69b._0x508ea8)]!==_0x3facf1)throw new Error(_0x35bc14(0x3f3,_0x2ab69b._0x5be77d,_0x2ab69b._0x569dd9,_0x2ab69b._0xd0c9a7));return{'requestedName':_0x3facf1,'tool':_0x1559d0,'toolCall':_0x530ecb,'toolCallId':_0x36bf3c,'sequence':_0x1ea66b,'trace':_0xcf3e8b};}function createImmutableExecutionScope(_0x539726,_0x39c4b3){const _0x1f9eef={_0x547ef3:0xe2},_0x1e3e0f={_0x2f8383:0x275};function _0x289273(_0x54cac0,_0x57f3a7,_0x296617,_0x2ec14f){return _0x58fa56(_0x54cac0-0x178,_0x54cac0- -_0x1e3e0f._0x2f8383,_0x296617-0x19,_0x2ec14f);}return Object['freeze']({'agentId':_0x539726,'toolCallPath':Object[_0x289273(0x86,0x6f,0x1a,_0x1f9eef._0x547ef3)]([..._0x39c4b3])});}async function executeNestedToolRequest(_0x572ac9,_0x1f0431,_0x3e1cdb,_0x2246c5,_0x1ccd4f,_0x229bf2,_0x5861a8,_0x572865){const _0x237350={_0x572476:0x42a,_0x49dde7:0x3d1,_0x1a4ac3:0x328,_0x682ed6:0x2b5,_0x204265:0x48f,_0x19e54c:0x3ef,_0x246152:0x41f,_0x370685:0x353,_0x4181d7:0x347,_0x293a7e:0x3b2,_0x55acf7:0x3d0,_0x4ea774:0x2f1,_0x349636:0x2c7,_0x18a04a:0x356,_0x535b11:0x38b,_0xd4b1c4:0x355,_0x21012b:0x2e4,_0x997d73:0x2f0,_0x13387b:0x339,_0x5c0fb3:0x3d6,_0x21f5c4:0x38b,_0x5c7fed:0x321,_0x22c7c8:0x366,_0xd07f36:0x49f,_0x4d8cfb:0x29a,_0x2cb3f1:0x29f,_0x4f2d49:0x2cc,_0x4d1eec:0x2a0,_0x47331c:0x34d,_0x4f3f9f:0x2f3,_0x3347a9:0x34b,_0x4619dc:0x379,_0xcdc74a:0x35d,_0x1abcae:0x304,_0x532149:0x3a2,_0x2732af:0x3c4},_0x1c47f8={_0x24a5b9:0x17f,_0x57b03d:0x103,_0x3c594e:0x236,_0x1c2446:0x17e,_0x336e82:0x226,_0x2e81ed:0x20c},_0x185f93={_0x428d6d:0x125,_0x35a3cc:0x115},_0x3e8c57={_0x40ba7f:0x64},_0x1563bb={_0x5d93c4:0x18b,_0x4bfbdb:0x4d},_0x37b7e7={_0x1b8826:0x6a,_0x599ad5:0x134,_0x3d5314:0x12f},_0x2be55d={_0x9df774:0xb8,_0x253bfb:0x4d},_0x36f84d={'state':_0x1f0431[_0x41186b(0x3d4,_0x237350._0x572476,0x3cd,_0x237350._0x49dde7)],'delivery':_0x4a2dc2(_0x237350._0x1a4ac3,0x351,_0x237350._0x682ed6,0x2f5),'executionScope':_0x3e1cdb};function _0x4a2dc2(_0xd0f417,_0x177a0f,_0x1b3f16,_0x4073f5){return _0x22e785(_0xd0f417-0xf,_0x177a0f-_0x2be55d._0x9df774,_0xd0f417- -_0x2be55d._0x253bfb,_0x1b3f16);}let _0x593517;try{_0x593517=await prepareNestedToolCall(_0x229bf2[_0x41186b(_0x237350._0x204265,_0x237350._0x19e54c,_0x237350._0x246152,0x47e)],_0x572ac9[_0x4a2dc2(_0x237350._0x370685,_0x237350._0x4181d7,_0x237350._0x293a7e,_0x237350._0x55acf7)],_0x36f84d,_0x2246c5);if(_0x593517['id']!==_0x572ac9[_0x4a2dc2(_0x237350._0x4ea774,0x320,0x32c,_0x237350._0x349636)]||_0x593517[_0x4a2dc2(0x2d5,0x312,0x28a,_0x237350._0x18a04a)]!==_0x572ac9[_0x41186b(0x3c4,0x31e,0x366,_0x237350._0x535b11)])throw new Error('Nested\x20beforeToolExecution\x20extensions\x20must\x20preserve\x20the\x20call\x20ID\x20and\x20requested\x20name');}catch(_0x44abc8){_0x1ccd4f['fail'](_0x44abc8);throw _0x44abc8;}const _0x4de3de={..._0x1f0431,'signal':_0x2246c5,'executionScope':_0x3e1cdb,'toolCallId':void 0x0,'permissionClass':void 0x0,'executionAuthorization':void 0x0,'executeNestedTool':void 0x0,'beginProgramTrace':void 0x0},_0x18ff10=async(_0x12956b,_0x329177)=>{const _0xe234ee={_0x406865:0x16d,_0x3da804:0xe3},_0x4119e0={_0x5b3642:0xc5};function _0x48277b(_0x351e26,_0x12d479,_0x69c003,_0xf56ec6){return _0x41186b(_0x351e26-_0x4119e0._0x5b3642,_0x12d479-0x35,_0x69c003- -0x2f1,_0x12d479);}function _0x72348b(_0x2293a5,_0xa81786,_0x3652df,_0x1daf0d){return _0x41186b(_0x2293a5-_0xe234ee._0x406865,_0xa81786-_0xe234ee._0x3da804,_0x2293a5- -0x427,_0xa81786);}if(_0x2246c5[_0x72348b(-0x7,-_0x37b7e7._0x1b8826,-0x7d,-0x48)])return;try{await awaitWithAbort(()=>_0x5861a8?.(_0x12956b,_0x329177),_0x2246c5);}catch(_0x18a9b8){if(!isAbortError(_0x18a9b8)||!_0x2246c5[_0x48277b(0xe4,_0x37b7e7._0x599ad5,_0x37b7e7._0x3d5314,0x15d)])throw _0x18a9b8;}};function _0x41186b(_0x112e29,_0x5913a3,_0x38e0a0,_0x4577c6){return _0x22e785(_0x112e29-_0x1563bb._0x5d93c4,_0x5913a3-0xad,_0x38e0a0-_0x1563bb._0x4bfbdb,_0x4577c6);}await _0x1ccd4f['admit'](async()=>{throwIfAborted(_0x2246c5);function _0x16e88f(_0x1020a7,_0x128920,_0x2170af,_0x5b99f4){return _0x4a2dc2(_0x2170af- -0x1d0,_0x128920-0xed,_0x128920,_0x5b99f4-_0x3e8c57._0x40ba7f);}if(_0x572ac9[_0x16e88f(_0x1c47f8._0x24a5b9,0xc8,_0x1c47f8._0x57b03d,0x12b)]){const _0x4622ae=_0x572ac9[_0x7f84c7(0x12e,_0x1c47f8._0x3c594e,0x22a,0x1ae)];await awaitRequiredPersistence(()=>_0x4622ae['recordToolCall'](_0x572ac9[_0x7f84c7(0x1d2,0x17e,0x270,0x1f8)],cloneToolCallForPublication(_0x593517,_0x572ac9['toolCallId'],_0x572ac9['requestedName'])),_0x2246c5,_0x572865);}await _0x18ff10({'type':_0x7f84c7(0x163,0x1cc,_0x1c47f8._0x1c2446,0x18f),'toolCall':cloneToolCallForPublication(_0x593517,_0x572ac9[_0x7f84c7(0x16a,0x1dc,_0x1c47f8._0x336e82,0x1cc)],_0x572ac9[_0x7f84c7(0x134,0x13f,_0x1c47f8._0x2e81ed,0x1a7)])},_0x4de3de);function _0x7f84c7(_0x5cc987,_0x5135a1,_0xdeaeb7,_0x3a9c3a){return _0x4a2dc2(_0x3a9c3a- -_0x185f93._0x428d6d,_0x5135a1-_0x185f93._0x35a3cc,_0x5cc987,_0x3a9c3a-0x1bb);}throwIfAborted(_0x2246c5);},_0x2246c5);const _0x443741=await executeCapturedToolCall(_0x572ac9[_0x4a2dc2(_0x237350._0xd4b1c4,0x3a2,_0x237350._0x21012b,_0x237350._0x997d73)],_0x593517,_0x572ac9[_0x41186b(_0x237350._0x13387b,_0x237350._0x5c0fb3,_0x237350._0x21f5c4,_0x237350._0x5c7fed)],_0x572ac9[_0x41186b(0x35b,0x3f0,_0x237350._0x22c7c8,0x342)],_0x4de3de,_0x229bf2,_0x18ff10);throwIfAborted(_0x2246c5);const _0x2726ee=await transformNestedToolResult(_0x229bf2[_0x41186b(0x3f5,_0x237350._0xd07f36,0x41f,0x4a2)],_0x443741,_0x36f84d,_0x2246c5),_0xf31e4b=cloneToolResultForPublication(_0x2726ee,_0x572ac9[_0x4a2dc2(0x2f1,_0x237350._0x4d8cfb,_0x237350._0x2cb3f1,0x363)],_0x572ac9[_0x4a2dc2(_0x237350._0x4f2d49,_0x237350._0x4d1eec,_0x237350._0x47331c,_0x237350._0x4f3f9f)]);throwIfAborted(_0x2246c5);if(_0x572ac9['trace']){const _0x437403=_0x572ac9['trace'];await awaitRequiredPersistence(()=>_0x437403['recordToolResult'](_0x572ac9[_0x41186b(0x3fa,0x334,0x3b7,0x417)],cloneToolResultForPublication(_0xf31e4b,_0x572ac9[_0x4a2dc2(0x2f1,0x2e7,0x291,0x296)],_0x572ac9[_0x41186b(0x35d,0x2fb,0x366,0x32b)])),_0x2246c5,_0x572865);}return await _0x18ff10({'type':_0x41186b(0x3b4,0x36a,_0x237350._0x3347a9,0x38f),'result':cloneToolResultForPublication(_0xf31e4b,_0x572ac9[_0x4a2dc2(0x2f1,_0x237350._0x4619dc,_0x237350._0xcdc74a,_0x237350._0x1abcae)],_0x572ac9[_0x41186b(_0x237350._0x532149,0x31b,0x366,_0x237350._0x2732af)])},_0x4de3de),throwIfAborted(_0x2246c5),_0xf31e4b;}function createBoundToolExecutionControl(_0x1a943d,_0x357226,_0x2ce2ba,_0x55fb1f){const _0xe52c2={_0x52b1c9:0xe5,_0x3c22b2:0x77,_0xed7f16:0xd,_0x140cde:0x6a,_0x20479c:0xdb,_0x337790:0x97,_0x1235fc:0xff,_0x499412:0x9a,_0x4101c8:0xba,_0x1ebc4b:0x104},_0x143cca={_0x42b798:0xae,_0x1c6d03:0x7},_0x5dcc0b={_0x3038ba:0x13f},_0x22e508={_0x2d3c31:0x135},_0x16acc2={_0x214112:0x22,_0x86469e:0x317},_0x46d6b8={_0x50459d:0x175,_0x272c48:0x158,_0x1bf561:0x195,_0x2d5002:0x1b0,_0x27914f:0x121,_0x4d79f1:0x153,_0x4e9fd7:0x12f,_0x5bd6df:0xfe,_0x37b7e9:0x126,_0x16ac58:0x156,_0x3cde34:0x16f,_0x2d1fac:0x14a,_0x4025e0:0x80,_0x5e176b:0x11d,_0x3aee16:0x5b},_0xb57177={_0x19da70:0xe,_0x4b5fd3:0x4a,_0x199559:0x60,_0x3f8938:0x166,_0x440000:0x144,_0x3d3b03:0x161},_0x385bcf={_0x524294:0x1d2,_0x27fb43:0x1bd,_0x41cc30:0x234},_0x46252f={_0x55b8e2:0xdc},_0x22185c={_0x2e6b04:0x191,_0x17f7a8:0x142,_0x2a5cb9:0x15d},_0x4a0d68={_0x1b6270:0x111},_0x44fdcf={_0x2e9714:0x55,_0x531987:0x5b,_0x4a6a71:0xb9,_0x487891:0x17e,_0x20e7ff:0x27,_0x55b3c7:0x6d,_0x518009:0x4f,_0x405897:0x44},_0x2d5c42={_0x4e6a97:0x27,_0x2fe5c8:0xa9},_0x37f33c=createImmutableExecutionScope(_0x357226[_0x503472(-0xb7,-_0xe52c2._0x52b1c9,-_0xe52c2._0x3c22b2,-0x42)]['agentId'],_0x357226['executionScope'][_0x26eee7(_0xe52c2._0x3c22b2,_0xe52c2._0xed7f16,_0xe52c2._0x140cde,_0xe52c2._0x20479c)]),_0xa4abb3=new Set(),_0x2484b7=new Set(),_0x36ce12=new AbortController(),_0x4c9d5b=createNestedCallAdmissionGate();let _0x1e5b2b=![],_0x11e650=![],_0x528623,_0x4f86e6=![],_0x555f69=()=>{};const _0xcedac0=_0x9d680f=>{const _0x212a33={_0x73ba11:0x10b,_0x1b5de3:0x1ef};if(_0x1e5b2b)return;function _0x4691b1(_0x20d951,_0x481795,_0x44fa4c,_0x12bff4){return _0x503472(_0x12bff4- -_0x2d5c42._0x4e6a97,_0x20d951,_0x44fa4c-_0x2d5c42._0x2fe5c8,_0x12bff4-0x191);}_0x1e5b2b=!![];const _0x5c02d6=toAbortError(_0x9d680f??PARENT_TOOL_SETTLED_MESSAGE);function _0x2412b2(_0x487a18,_0x290266,_0x4713c1,_0xc28e08){return _0x503472(_0xc28e08-_0x212a33._0x73ba11,_0x487a18,_0x4713c1-_0x212a33._0x1b5de3,_0xc28e08-0x1ca);}_0x4c9d5b[_0x2412b2(0xc1,_0x44fdcf._0x2e9714,_0x44fdcf._0x531987,_0x44fdcf._0x4a6a71)](_0x5c02d6),_0x36ce12[_0x4691b1(-0x194,-0x16b,-_0x44fdcf._0x487891,-0x176)](_0x5c02d6);for(const _0x266e0e of _0xa4abb3){_0x266e0e[_0x2412b2(-_0x44fdcf._0x20e7ff,-_0x44fdcf._0x55b3c7,-_0x44fdcf._0x518009,-_0x44fdcf._0x405897)](_0x5c02d6);}_0x555f69();};_0x555f69=addAbortListener(_0x357226[_0x26eee7(_0xe52c2._0x337790,_0xe52c2._0x1235fc,_0xe52c2._0x499412,0xf9)],()=>{function _0x36e859(_0x389344,_0x3ba7bb,_0x27ea48,_0x27a09a){return _0x503472(_0x27ea48-0x21a,_0x27a09a,_0x27ea48-0x1bc,_0x27a09a-_0x4a0d68._0x1b6270);}_0xcedac0(_0x357226[_0x36e859(_0x22185c._0x2e6b04,_0x22185c._0x17f7a8,0x181,_0x22185c._0x2a5cb9)]['reason']);});const _0x347d67=_0x2cfc33=>{const _0x5711a0={_0x14dbf0:0x582,_0x1cb962:0x577,_0x547600:0x500},_0x740681={_0x20af8d:0x17c};function _0x3e0aa2(_0x45d4a9,_0x15a9bb,_0x1cd39a,_0x141893){return _0x26eee7(_0x1cd39a-_0x740681._0x20af8d,_0x15a9bb-0x13e,_0x1cd39a-0x1ab,_0x141893);}_0x2484b7[_0x5c23d3(-0x16e,-0x1f9,-_0x385bcf._0x524294,-_0x385bcf._0x27fb43)](_0x2cfc33);function _0x5c23d3(_0x56e251,_0x57c254,_0x5a9106,_0x52e655){return _0x503472(_0x5a9106- -_0x46252f._0x55b8e2,_0x57c254,_0x5a9106-0x23,_0x52e655-0x13f);}const _0x3d1273=()=>{const _0xd54899={_0x555aa9:0x69f,_0x4140ed:0x6f};function _0x1418e4(_0x56814a,_0x43a602,_0x245e90,_0x7ad1c1){return _0x5c23d3(_0x56814a-0x2d,_0x245e90,_0x7ad1c1-_0xd54899._0x555aa9,_0x7ad1c1-_0xd54899._0x4140ed);}_0x2484b7[_0x1418e4(_0x5711a0._0x14dbf0,_0x5711a0._0x1cb962,_0x5711a0._0x547600,0x51d)](_0x2cfc33);},_0x102d93=_0x320181=>{!_0x11e650&&(_0x11e650=!![],_0x528623=_0x320181),_0x3d1273();};void _0x2cfc33[_0x5c23d3(-0x1ed,-0x1d7,-_0x385bcf._0x41cc30,-0x269)](_0x3d1273,_0x102d93);},_0x3532b9=async()=>{const _0x142c95={_0x1e306c:0x11c};function _0x19031b(_0xddf5ba,_0x581b17,_0x4f176f,_0x5beeb3){return _0x26eee7(_0x5beeb3- -0x147,_0x581b17-0x1f4,_0x4f176f-0x90,_0x4f176f);}while(_0x2484b7[_0xe9870f(_0xb57177._0x19da70,-_0xb57177._0x4b5fd3,-_0xb57177._0x199559,-0x2d)]>0x0){await Promise[_0x19031b(-0x176,-_0xb57177._0x3f8938,-_0xb57177._0x440000,-_0xb57177._0x3d3b03)]([..._0x2484b7]);}function _0xe9870f(_0x555a50,_0x4b43a7,_0x3d3ef7,_0x7e5a5a){return _0x26eee7(_0x3d3ef7- -0x124,_0x4b43a7-_0x142c95._0x1e306c,_0x3d3ef7-0x98,_0x4b43a7);}if(_0x11e650)throw _0x528623;},_0x519517=async _0x4278a2=>{const _0x40266c={_0x38d05f:0x1c7,_0x2ef3ac:0x1b9},_0x5d33de={_0x1a0b97:0x50},_0x1bb9a0={_0x1a9d10:0x22a,_0x23464e:0x106,_0x197c93:0xc2};if(_0x1e5b2b)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);let _0x4cf8da;function _0x18c30a(_0x451041,_0x3a2cc7,_0x1ef445,_0x4a2df7){return _0x503472(_0x4a2df7-_0x1bb9a0._0x1a9d10,_0x3a2cc7,_0x1ef445-_0x1bb9a0._0x23464e,_0x4a2df7-_0x1bb9a0._0x197c93);}try{_0x4cf8da=snapshotNestedToolRequest(_0x4278a2);}catch(_0x107479){_0x4c9d5b[_0x18c30a(0x1ee,0x15e,_0x46d6b8._0x50459d,0x1d8)](_0x107479);throw _0x107479;}const _0x4e8ac7=_0x4c9d5b[_0x777ed6(-0x1b1,-_0x46d6b8._0x272c48,-_0x46d6b8._0x1bf561,-_0x46d6b8._0x2d5002)](_0x4cf8da[_0x777ed6(-_0x46d6b8._0x27914f,-0x110,-_0x46d6b8._0x4d79f1,-0x126)]),_0x39d279=createImmutableExecutionScope(_0x37f33c['agentId'],[..._0x37f33c[_0x777ed6(-0x19f,-0xf9,-_0x46d6b8._0x4e9fd7,-_0x46d6b8._0x5bd6df)],_0x1a943d]),_0x5e9bc3=new AbortController();_0xa4abb3[_0x18c30a(0x153,_0x46d6b8._0x37b7e9,_0x46d6b8._0x16ac58,0x134)](_0x5e9bc3);function _0x777ed6(_0x5efd06,_0x335408,_0x21bc13,_0x5a6c3c){return _0x503472(_0x21bc13- -0x76,_0x5a6c3c,_0x21bc13-_0x5d33de._0x1a0b97,_0x5a6c3c-0xa5);}_0x1e5b2b&&_0x5e9bc3['abort'](toAbortError(PARENT_TOOL_SETTLED_MESSAGE));const _0x19078c=executeNestedToolRequest(_0x4cf8da,_0x357226,_0x39d279,_0x5e9bc3[_0x777ed6(-_0x46d6b8._0x3cde34,-_0x46d6b8._0x272c48,-0x10f,-_0x46d6b8._0x2d1fac)],_0x4e8ac7,_0x2ce2ba,_0x55fb1f,_0x347d67),_0x260d0a=()=>{const _0x16a058={_0x2a834a:0x31c};function _0x5b6726(_0x1d1515,_0x1cf210,_0x443fa4,_0x205f4f){return _0x777ed6(_0x1d1515-0x5a,_0x1cf210-0xdd,_0x205f4f-_0x16a058._0x2a834a,_0x1cf210);}_0xa4abb3[_0x5b6726(0x1f2,_0x40266c._0x38d05f,_0x40266c._0x2ef3ac,0x200)](_0x5e9bc3);};return void _0x19078c[_0x18c30a(_0x46d6b8._0x4025e0,_0x46d6b8._0x5e176b,_0x46d6b8._0x3aee16,0xd2)](_0x260d0a,_0x260d0a),await awaitWithAbort(()=>_0x19078c,_0x36ce12['signal']);},_0x57405d={'executeNestedTool':_0x519517},_0x877c7=_0x2ce2ba[_0x503472(-0x10b,-0x16e,-0x11a,-_0xe52c2._0x4101c8)];function _0x26eee7(_0x27d07d,_0x16253d,_0x39db18,_0x3076cc){return _0x22e785(_0x27d07d-_0x16acc2._0x214112,_0x16253d-0x1af,_0x27d07d- -_0x16acc2._0x86469e,_0x3076cc);}function _0x503472(_0x1e26ff,_0x1dd4ca,_0x4c68fa,_0x11c86e){return _0x58fa56(_0x1e26ff-0x73,_0x1e26ff- -0x459,_0x4c68fa-_0x22e508._0x2d3c31,_0x1dd4ca);}_0x877c7&&(_0x57405d['beginProgramTrace']=async()=>{if(_0x1e5b2b)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);function _0x344f62(_0x4a37e6,_0x31aed7,_0x23293e,_0x5c89d2){return _0x26eee7(_0x31aed7- -0x112,_0x31aed7-0x1ef,_0x23293e-_0x5dcc0b._0x3038ba,_0x5c89d2);}function _0x2d5af4(_0x3f0a24,_0x3707ec,_0x2f6b3c,_0x2b324e){return _0x503472(_0x3707ec-0x3d8,_0x2b324e,_0x2f6b3c-0xb7,_0x2b324e-0x10f);}return await awaitUncancellableAfterAdmission(()=>_0x877c7({'executionScope':createImmutableExecutionScope(_0x37f33c['agentId'],_0x37f33c[_0x344f62(-0x9d,-0x9b,-0x49,-0xa6)]),'programToolCallId':_0x1a943d}),_0x36ce12[_0x344f62(-_0x143cca._0x42b798,-0x7b,-0x8f,_0x143cca._0x1c6d03)]);});const _0xf2d157=()=>{_0x4f86e6=!![],_0xcedac0();},_0x299afb=()=>_0x4f86e6,_0x480312={'capabilities':_0x57405d,'close':_0xcedac0,'commitTerminalState':_0xf2d157,'drainPersistence':_0x3532b9,'isTerminalStateCommitted':_0x299afb};return boundNestedExecutionControls[_0x26eee7(0x7b,0x39,_0xe52c2._0x1ebc4b,0xff)](_0x519517,_0x480312),_0x480312;}async function executeCapturedToolCall(_0x4cf571,_0x317327,_0x47d197,_0x3ad930,_0x35b49a,_0x5d061d,_0x332ae4=_0x5d061d[_0x58fa56(0x340,0x390,0x3a8,0x32c)]){const _0x1cf6f0={_0x14f7cf:0x28d,_0x4fe761:0x1c7,_0x3d59ef:0x1bf,_0xd52d:0x322,_0x334016:0x2cc},_0x52b33c={_0x3fb424:0x14a};function _0x39deff(_0x1d2dbe,_0x59d656,_0x4d7ea3,_0x53f910){return _0x58fa56(_0x1d2dbe-_0x52b33c._0x3fb424,_0x4d7ea3- -0x201,_0x4d7ea3-0xfd,_0x59d656);}const _0x269ade={..._0x35b49a,'toolCallId':_0x47d197,'permissionClass':resolveToolPermissionClass(_0x4cf571),'executionAuthorization':void 0x0};if(_0x269ade[_0x625bfd(-0x293,-0x23a,-0x21e,-_0x1cf6f0._0x14f7cf)][_0x39deff(0x17c,0x250,0x1e4,_0x1cf6f0._0x4fe761)]){const _0x9fd65=createAbortedToolResult(_0x47d197,_0x3ad930,_0x269ade[_0x39deff(0x215,0x193,_0x1cf6f0._0x3d59ef,0x1f7)][_0x39deff(0x17e,0x80,0xf9,0x17f)]);return await emitToolCompletedEventWithTerminalPrecedence(_0x332ae4,_0x317327,_0x47d197,_0x3ad930,_0x9fd65,_0x269ade),_0x9fd65;}let _0x552c16;function _0x625bfd(_0x1018de,_0x221180,_0x198ff9,_0x377f08){return _0x58fa56(_0x1018de-0x10c,_0x198ff9- -0x5de,_0x198ff9-0x79,_0x221180);}try{_0x552c16=_0x4cf571?.['internalLifecycle']?.['acquire']();}catch(_0x4ad758){const _0x1961e7=isAbortError(_0x4ad758);let _0x3474f2;if(_0x1961e7)_0x3474f2=createAbortedToolResult(_0x47d197,_0x3ad930,_0x4ad758);else{const {errorMessage:_0x39e867,structured:_0x58b0b7}=normalizeExecutionError(_0x4ad758);_0x3474f2=createErrorToolResult(_0x47d197,_0x3ad930,_0x39e867,_0x58b0b7);}return _0x1961e7?await emitToolCompletedEventWithTerminalPrecedence(_0x332ae4,_0x317327,_0x47d197,_0x3ad930,_0x3474f2,_0x269ade):await emitEvent(_0x332ae4,{'type':_0x625bfd(-_0x1cf6f0._0xd52d,-0x351,-_0x1cf6f0._0x334016,-0x2d0),'toolCall':cloneToolCallForPublication(_0x317327,_0x47d197,_0x3ad930),'result':_0x3474f2},_0x269ade),_0x3474f2;}try{return await executeAcquiredToolCall(_0x4cf571,_0x317327,_0x47d197,_0x3ad930,_0x35b49a,_0x5d061d,_0x332ae4);}finally{_0x552c16?.();}}async function executeAcquiredToolCall(_0x6c7767,_0x371840,_0x6547c7,_0x4122a8,_0x4c3219,_0x3e2d80,_0x5da714){const _0x97cb8a={_0x460efb:0x1b6,_0x23c473:0x22d,_0x110e9f:0x1ab,_0x14e035:0x4ce,_0x50b844:0x4ee,_0x271323:0x29b,_0x36f810:0x24a,_0x5ebb2f:0x2c9,_0xdb0f0a:0x1f0,_0x3f1417:0x29d,_0x4f365c:0x4f3,_0x49f168:0x567,_0x3e7d9e:0x4a9,_0x2cf6e0:0x4b0,_0x3675fc:0x51a,_0x458039:0x518,_0x13f3c2:0x578,_0x176df1:0x4c2,_0xe0841:0x4f9,_0x1e2db9:0x52e,_0x5a1c51:0x4de,_0x4480ca:0x545,_0x27d7e1:0x4af,_0x1d4c42:0x51a,_0x33587b:0x54f,_0x151d12:0x54b,_0x16410d:0x233,_0x5efe45:0x1a2,_0x54488c:0x55e,_0x2ddd24:0x51a,_0x5e0537:0x4d7,_0x3651d9:0x52b,_0x29eb3d:0x516,_0x57f0cf:0x4d9,_0xf2e6e2:0x41b,_0x37f92b:0x496,_0x4239ba:0x4e2,_0x5ddacf:0x1d8,_0x2544f9:0x1d5,_0x5cb5ed:0x1fe,_0x2de348:0x449,_0x3575a2:0x496,_0x57d4b7:0x283,_0xa8e951:0x21e,_0x4bf904:0x543,_0x69f7d7:0x501,_0x409a25:0x1b5,_0x219051:0x454,_0x688258:0x1f6,_0x1ea9de:0x192,_0x3686be:0x266,_0x41b926:0x16f,_0xefd8ff:0x232,_0x2335bd:0x29b,_0x550b2e:0x240,_0x53398e:0x267,_0x5ddb40:0x479},_0x668292={_0x5a1870:0x563,_0x5a707d:0x472,_0x412896:0x494},_0x499ff6={_0x5938d0:0x62d,_0x157fbb:0x9a},_0x2f4d78={_0x3e3566:0x7f,_0x5916e0:0x31},_0x18c97e={_0x59df03:0x9e,_0x5a2039:0x1ca,_0x478797:0x16c},_0x4bff70={_0x1d41a9:0xb,_0x197c76:0x117,_0x501753:0x583},_0x5d4738={..._0x4c3219,'toolCallId':_0x6547c7,'permissionClass':resolveToolPermissionClass(_0x6c7767),'executionAuthorization':void 0x0};throwIfAborted(_0x5d4738['signal']);let _0x456125;try{_0x456125=await resolveDispatchDecision(_0x3e2d80[_0x234c55(-_0x97cb8a._0x460efb,-_0x97cb8a._0x23c473,-0x219,-_0x97cb8a._0x110e9f)],_0x371840,_0x5d4738);}catch(_0x28a707){if(isAbortError(_0x28a707)){const _0x2b6155=createAbortedToolResult(_0x6547c7,_0x4122a8,_0x28a707);return await emitToolCompletedEventWithTerminalPrecedence(_0x5da714,_0x371840,_0x6547c7,_0x4122a8,_0x2b6155,_0x5d4738),_0x2b6155;}const {errorMessage:_0x30a021,structured:_0x3c5e37}=normalizeExecutionError(_0x28a707),_0x5a8d0f=createErrorToolResult(_0x6547c7,_0x4122a8,_0x30a021,_0x3c5e37);return await emitEvent(_0x5da714,{'type':_0x234c55(-0x283,-0x2ea,-0x30b,-0x20d),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'result':_0x5a8d0f},_0x5d4738),_0x5a8d0f;}throwIfAborted(_0x5d4738[_0x5b6030(0x53a,0x51a,_0x97cb8a._0x14e035,0x53c)]);function _0x234c55(_0x56f029,_0x1947b5,_0x196f15,_0x5e712b){return _0x22e785(_0x56f029-_0x4bff70._0x1d41a9,_0x1947b5-_0x4bff70._0x197c76,_0x56f029- -_0x4bff70._0x501753,_0x5e712b);}if(_0x456125['action']===_0x5b6030(0x4fa,0x555,0x52e,_0x97cb8a._0x50b844)){const _0x3f22ef=createRejectedToolResult(_0x6547c7,_0x4122a8,_0x456125[_0x234c55(-_0x97cb8a._0x271323,-0x2a7,-0x214,-0x23f)]);return await emitEvent(_0x5da714,{'type':_0x234c55(-_0x97cb8a._0x36f810,-_0x97cb8a._0x5ebb2f,-_0x97cb8a._0xdb0f0a,-0x219),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'result':_0x3f22ef},_0x5d4738),_0x3f22ef;}if(!_0x6c7767){const _0x3e4470=createUnknownToolResult(_0x6547c7,_0x4122a8);return await emitEvent(_0x5da714,{'type':_0x234c55(-0x283,-0x2ce,-0x303,-_0x97cb8a._0x3f1417),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'result':_0x3e4470},_0x5d4738),_0x3e4470;}function _0x5b6030(_0x159a73,_0x53e95a,_0x391bdc,_0x17274d){return _0x22e785(_0x159a73-_0x18c97e._0x59df03,_0x53e95a-_0x18c97e._0x5a2039,_0x53e95a-_0x18c97e._0x478797,_0x17274d);}const _0x351456=createBoundToolExecutionControl(_0x6547c7,_0x5d4738,_0x3e2d80,_0x5da714),_0x1c459b={..._0x5d4738,'executionAuthorization':_0x456125[_0x234c55(-0x18d,-0x1ee,-0x175,-0x103)],..._0x351456[_0x5b6030(0x536,_0x97cb8a._0x4f365c,_0x97cb8a._0x49f168,_0x97cb8a._0x3e7d9e)]};throwIfAborted(_0x1c459b[_0x5b6030(_0x97cb8a._0x2cf6e0,_0x97cb8a._0x3675fc,0x563,0x4a2)]);try{await emitEvent(_0x5da714,{'type':_0x5b6030(0x4fa,0x553,0x5a0,_0x97cb8a._0x458039),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8)},_0x1c459b);}catch(_0x5a4697){const _0x1f664f=_0x351456[_0x5b6030(0x4aa,0x513,_0x97cb8a._0x13f3c2,0x52b)]();if(actualCancellationHasPrecedence(_0x1c459b,_0x1f664f)){const _0x47820c=selectActualCancellationReason(_0x5a4697,_0x1c459b[_0x5b6030(_0x97cb8a._0x176df1,_0x97cb8a._0x3675fc,_0x97cb8a._0xe0841,_0x97cb8a._0x1e2db9)]['reason']),_0x462f08=createAbortedToolResult(_0x6547c7,_0x4122a8,_0x47820c);return _0x351456[_0x5b6030(_0x97cb8a._0x5a1c51,_0x97cb8a._0xe0841,0x561,0x523)](_0x47820c),await emitToolCompletedEventWithTerminalPrecedence(_0x5da714,_0x371840,_0x6547c7,_0x4122a8,_0x462f08,_0x1c459b,_0x1f664f),_0x462f08;}_0x351456[_0x5b6030(_0x97cb8a._0x4480ca,0x4f9,0x4fa,_0x97cb8a._0x4480ca)](_0x5a4697);throw _0x5a4697;}try{throwIfAborted(_0x1c459b[_0x5b6030(_0x97cb8a._0x27d7e1,_0x97cb8a._0x1d4c42,0x564,0x491)]);const _0xecdc06=validateToolInput(_0x371840['input'],_0x6c7767['inputSchema']),_0x1748e0=await _0x6c7767[_0x5b6030(0x561,_0x97cb8a._0x33587b,_0x97cb8a._0x151d12,0x5c4)](_0xecdc06,_0x1c459b),_0x7f427e=[],_0xa933b5=addAbortListener(_0x1c459b[_0x234c55(-0x1d5,-_0x97cb8a._0x16410d,-0x180,-_0x97cb8a._0x5efe45)],()=>{function _0x31d100(_0x11c4c9,_0x349340,_0x256760,_0x59eb8d){return _0x5b6030(_0x11c4c9-_0x2f4d78._0x3e3566,_0x256760- -_0x2f4d78._0x5916e0,_0x256760-0x42,_0x349340);}function _0x55c210(_0x350cb2,_0x45f067,_0x5ceb9c,_0x2d842d){return _0x234c55(_0x2d842d-_0x499ff6._0x5938d0,_0x45f067-_0x499ff6._0x157fbb,_0x5ceb9c-0x5c,_0x45f067);}!_0x351456[_0x31d100(0x4dd,_0x668292._0x5a1870,0x4e2,_0x668292._0x5a707d)]()&&void _0x1748e0['return'](void 0x0)[_0x55c210(0x4ab,0x4c8,_0x668292._0x412896,0x444)](()=>{});});try{throwIfAborted(_0x1c459b[_0x5b6030(_0x97cb8a._0x54488c,_0x97cb8a._0x2ddd24,0x4a3,0x4c3)]);let _0x3c6f4a=await _0x1748e0[_0x5b6030(_0x97cb8a._0x5e0537,_0x97cb8a._0x3651d9,_0x97cb8a._0x29eb3d,_0x97cb8a._0x57f0cf)]();while(!_0x3c6f4a['done']){throwIfAborted(_0x1c459b['signal']);const _0x26939f=normalizeToolOutputValue(_0x3c6f4a[_0x5b6030(_0x97cb8a._0xf2e6e2,_0x97cb8a._0x37f92b,0x429,0x47a)]);_0x7f427e['push'](_0x26939f),await emitEvent(_0x5da714,{'type':_0x5b6030(_0x97cb8a._0x4239ba,0x495,0x494,0x46c),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'chunk':_0x26939f},_0x1c459b),throwIfAborted(_0x1c459b[_0x234c55(-0x1d5,-0x196,-0x24b,-0x22e)]),_0x3c6f4a=await _0x1748e0[_0x234c55(-0x1c4,-_0x97cb8a._0x5ddacf,-_0x97cb8a._0x2544f9,-_0x97cb8a._0x5cb5ed)]();}!_0x351456[_0x234c55(-0x1dc,-0x1de,-0x24a,-0x248)]()&&throwIfAborted(_0x1c459b['signal']);const _0x2d9b4f=_0x3c6f4a['value']===void 0x0?deriveFinalToolOutput(_0x7f427e):normalizeToolOutputValue(_0x3c6f4a[_0x5b6030(_0x97cb8a._0x2de348,_0x97cb8a._0x3575a2,0x4b9,0x438)]),_0x4f3cbc=createSuccessToolResult(_0x6547c7,_0x4122a8,_0x2d9b4f,_0x7f427e);return _0x351456['close'](),await emitEvent(_0x5da714,{'type':_0x234c55(-_0x97cb8a._0x57d4b7,-0x283,-0x23f,-_0x97cb8a._0xa8e951),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'result':_0x4f3cbc},_0x1c459b),_0x4f3cbc;}catch(_0x3b9a54){const _0x5889aa=_0x351456[_0x5b6030(_0x97cb8a._0x4bf904,0x513,_0x97cb8a._0x69f7d7,0x57d)](),_0xaf6896=actualCancellationHasPrecedence(_0x1c459b,_0x5889aa);if(_0xaf6896||isAbortError(_0x3b9a54)){const _0x52c335=_0xaf6896?selectActualCancellationReason(_0x3b9a54,_0x1c459b[_0x234c55(-_0x97cb8a._0x2544f9,-0x1c1,-_0x97cb8a._0x409a25,-0x16e)][_0x5b6030(0x4cc,_0x97cb8a._0x219051,0x45b,0x478)]):_0x3b9a54,_0x43ccbc=createAbortedToolResult(_0x6547c7,_0x4122a8,_0x52c335,_0x7f427e);return _0x351456[_0x234c55(-_0x97cb8a._0x688258,-0x19b,-_0x97cb8a._0x1ea9de,-_0x97cb8a._0x3686be)](_0x52c335),await emitToolCompletedEventWithTerminalPrecedence(_0x5da714,_0x371840,_0x6547c7,_0x4122a8,_0x43ccbc,_0x1c459b,_0x5889aa),_0x43ccbc;}if(_0x3b9a54 instanceof ToolRuntimeInfrastructureError)throw _0x3b9a54;const {errorMessage:_0x3ca6ed,structured:_0x27770f}=normalizeExecutionError(_0x3b9a54),_0xb40e46=createErrorToolResult(_0x6547c7,_0x4122a8,_0x3ca6ed,_0x27770f,_0x7f427e);return _0x351456['close'](_0x3b9a54),await emitToolCompletedEventWithTerminalPrecedence(_0x5da714,_0x371840,_0x6547c7,_0x4122a8,_0xb40e46,_0x1c459b,_0x351456[_0x234c55(-0x1dc,-0x1eb,-_0x97cb8a._0x41b926,-_0x97cb8a._0xefd8ff)]()),_0xb40e46;}finally{_0xa933b5();}}catch(_0x2f3660){const _0x2174e6=_0x351456[_0x234c55(-0x1dc,-0x206,-0x158,-0x1a2)](),_0x129dda=actualCancellationHasPrecedence(_0x1c459b,_0x2174e6);if(_0x129dda||isAbortError(_0x2f3660)){const _0x5c2f13=_0x129dda?selectActualCancellationReason(_0x2f3660,_0x1c459b[_0x234c55(-_0x97cb8a._0x2544f9,-0x17e,-0x169,-0x1f6)][_0x234c55(-_0x97cb8a._0x2335bd,-0x244,-0x2c5,-0x2f1)]):_0x2f3660,_0xd3e06c=createAbortedToolResult(_0x6547c7,_0x4122a8,_0x5c2f13);return _0x351456[_0x234c55(-0x1f6,-_0x97cb8a._0x550b2e,-_0x97cb8a._0x53398e,-0x210)](_0x5c2f13),await emitToolCompletedEventWithTerminalPrecedence(_0x5da714,_0x371840,_0x6547c7,_0x4122a8,_0xd3e06c,_0x1c459b,_0x2174e6),_0xd3e06c;}if(_0x2f3660 instanceof ToolRuntimeInfrastructureError)throw _0x2f3660;const {errorMessage:_0x231831,structured:_0x37edc3}=normalizeExecutionError(_0x2f3660),_0x450917=createErrorToolResult(_0x6547c7,_0x4122a8,_0x231831,_0x37edc3);return _0x351456['close'](_0x2f3660),await emitEvent(_0x5da714,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'result':_0x450917},_0x1c459b),_0x450917;}finally{_0x351456[_0x5b6030(_0x97cb8a._0x5ddb40,0x4f9,0x4cd,0x47b)]();}}async function executeRegisteredToolCall(_0x1b7e26,_0x356dc7,_0x1e6a88,_0x2ede41){const _0x480a70={_0x46012d:0x187,_0x2a0fd2:0x16a},_0x3f75b5={_0xe9076b:0xe8},_0x1a1d7e=_0x356dc7['id'],_0x4b8cc5=_0x356dc7[_0x4706d4(-_0x480a70._0x46012d,-0x130,-0x119,-_0x480a70._0x2a0fd2)],_0x32ddf1=_0x1b7e26['get'](_0x4b8cc5);function _0x4706d4(_0x40d6da,_0x30e07b,_0x5572e1,_0x31176e){return _0x22e785(_0x40d6da-_0x3f75b5._0xe9076b,_0x30e07b-0x164,_0x31176e- -0x48c,_0x5572e1);}return await executeCapturedToolCall(_0x32ddf1,_0x356dc7,_0x1a1d7e,_0x4b8cc5,_0x1e6a88,_0x2ede41);}function createInternalToolRuntime(_0x43173a=[],_0xacaf61={}){const _0x516779={_0x536868:0x24f,_0x137068:0x2b5},_0x4b5bd0={_0x55fa52:0x1e1},_0xeeffc4={_0x422ab7:0x327,_0x3a393a:0x299};let _0x328f48=new ToolRegistry(_0x43173a);return{'listToolSchemas'(){function _0x29ca95(_0x6ad01d,_0x10ed1c,_0x5076eb,_0x57d623){return _0x37f7(_0x5076eb-0x1c7,_0x6ad01d);}return _0x328f48[_0x29ca95(_0xeeffc4._0x422ab7,0x37a,0x2f9,_0xeeffc4._0x3a393a)]();},'setTools'(_0x40609a){_0x328f48=new ToolRegistry(_0x40609a);},async 'executeCalls'(_0x4386d0,_0x2f103e){const _0x3bc6e3={_0x5dbfe9:0x53};function _0x41f9e1(_0x34fb59,_0x29be93,_0x219936,_0x51d5e8){return _0x37f7(_0x29be93-0x58,_0x34fb59);}function _0x37c57e(_0xac8e77,_0x138d2f,_0x494a20,_0x1282a7){return _0x37f7(_0x138d2f- -_0x3bc6e3._0x5dbfe9,_0xac8e77);}return await Promise[_0x41f9e1(0x19b,0x129,0x165,0x160)](_0x4386d0[_0x41f9e1(_0x4b5bd0._0x55fa52,0x1a6,0x179,0x22f)](async _0x2fa935=>{return await executeRegisteredToolCall(_0x328f48,_0x2fa935,_0x2f103e,_0xacaf61);}));},async 'execute'(_0x2032b5,_0x4a3d81){const [_0x384498]=await this[_0x4f12cb(-0x331,-_0x516779._0x536868,-_0x516779._0x137068,-0x2c6)]([_0x2032b5],_0x4a3d81);function _0x4f12cb(_0x3388c5,_0x19b477,_0x5d01d4,_0x4c4276){return _0x37f7(_0x5d01d4- -0x3c5,_0x3388c5);}return _0x384498;}};}function getOrderedObserverExtensions(_0x3a5bda,_0x28729f){const _0x5dca9f={_0x1b05c5:0x1b0,_0x5c37bf:0x227,_0x362525:0x54,_0x3f76af:0x27},_0x444ab9={_0x29ad88:0x345,_0x2a0d6b:0x2b4,_0x412942:0x341},_0x317ceb={_0x1483aa:0x1eb},_0x2bcab4={_0xde749a:0xa3};function _0x48c0bf(_0x4752ea,_0x32637f,_0x47ee1c,_0x8f0f68){return _0x22e785(_0x4752ea-_0x2bcab4._0xde749a,_0x32637f-0xee,_0x4752ea- -0x62b,_0x47ee1c);}return _0x3a5bda['filter'](_0x4bed28=>{function _0x50e619(_0xa522e7,_0x3bb027,_0x289452,_0x17e2cc){return _0x37f7(_0xa522e7-_0x317ceb._0x1483aa,_0x17e2cc);}function _0x53ee09(_0x1fc069,_0x1c1753,_0x106820,_0x3a11ad){return _0x37f7(_0x106820- -0x3b2,_0x1c1753);}return _0x4bed28['enabled']!==![]&&_0x4bed28['stage']===_0x28729f&&_0x4bed28[_0x53ee09(-0x31d,-0x2ac,-0x329,-_0x444ab9._0x29ad88)]===_0x50e619(0x330,_0x444ab9._0x2a0d6b,_0x444ab9._0x412942,0x2b4);})[_0x48c0bf(-0x325,-0x2e1,-0x31b,-0x2ad)]((_0x57c9fa,_0x558ec4)=>{const _0x40bb80={_0x29f56f:0x2ec},_0x113e3e={_0x33a2c7:0x19,_0x573104:0x45};function _0x590768(_0x4b93e2,_0x599437,_0x15727a,_0x53f7e1){return _0x48c0bf(_0x53f7e1-0x404,_0x599437-_0x113e3e._0x33a2c7,_0x15727a,_0x53f7e1-_0x113e3e._0x573104);}if(_0x57c9fa[_0x590768(0x217,0x164,0x17d,_0x5dca9f._0x1b05c5)]===!![]&&_0x558ec4['terminal']!==!![])return 0x1;if(_0x57c9fa['terminal']!==!![]&&_0x558ec4[_0x590768(0x192,_0x5dca9f._0x5c37bf,0x149,0x1b0)]===!![])return-0x1;function _0x443220(_0x4714d0,_0x429bb1,_0x2ebb43,_0x3d5328){return _0x48c0bf(_0x429bb1-_0x40bb80._0x29f56f,_0x429bb1-0x152,_0x3d5328,_0x3d5328-0x1cc);}return _0x57c9fa[_0x443220(-_0x5dca9f._0x362525,0xd,0x96,-_0x5dca9f._0x3f76af)]-_0x558ec4['order'];});}function getOrderedTransformerExtensions(_0x443a35,_0x82ed66){const _0xe3f081={_0x2b6a23:0x201,_0x49c4a0:0x25f,_0x45e7ae:0x293,_0x198c1f:0x1e3,_0x541b5a:0x2b0,_0x2ba563:0x2a1,_0x25c9bb:0x33b,_0x458360:0x384,_0x6991b4:0x333,_0x147128:0x2ca,_0x4a76dc:0x38b,_0x9de8af:0x312},_0x5073ab={_0xd7c5bc:0x622},_0x149692={_0x4c198b:0x1a7},_0x1a3541={_0x28ff58:0xb7};function _0x26bff6(_0x111e48,_0x1f8d11,_0x44a534,_0x42eb3c){return _0x58fa56(_0x111e48-_0x1a3541._0x28ff58,_0x44a534- -0x16,_0x44a534-0x131,_0x42eb3c);}function _0x32ddf9(_0x126cd1,_0x1e0e5b,_0x106dde,_0x4e56b0){return _0x58fa56(_0x126cd1-0x169,_0x4e56b0- -_0x149692._0x4c198b,_0x106dde-0x1a1,_0x106dde);}return _0x443a35[_0x26bff6(0x3bb,0x3e8,0x39b,0x357)](_0x246205=>{const _0xd9a4de={_0xf44b98:0xcd,_0x272d57:0x294};function _0x38ffc0(_0x53aa11,_0x116764,_0x1c8e38,_0x4f1f42){return _0x26bff6(_0x53aa11-0x176,_0x116764-0x143,_0x116764- -_0x5073ab._0xd7c5bc,_0x4f1f42);}function _0x473c6f(_0x2f013f,_0x2e7340,_0x3fc384,_0x1e23a3){return _0x26bff6(_0x2f013f-0x135,_0x2e7340-_0xd9a4de._0xf44b98,_0x2f013f- -_0xd9a4de._0x272d57,_0x1e23a3);}return _0x246205[_0x38ffc0(-_0xe3f081._0x2b6a23,-_0xe3f081._0x49c4a0,-_0xe3f081._0x45e7ae,-_0xe3f081._0x198c1f)]!==![]&&_0x246205[_0x38ffc0(-_0xe3f081._0x541b5a,-0x2e4,-_0xe3f081._0x2ba563,-_0xe3f081._0x25c9bb)]===_0x82ed66&&_0x246205[_0x38ffc0(-_0xe3f081._0x458360,-_0xe3f081._0x6991b4,-0x2d6,-_0xe3f081._0x147128)]===_0x38ffc0(-_0xe3f081._0x4a76dc,-_0xe3f081._0x9de8af,-0x385,-0x38f);})[_0x26bff6(0x323,0x289,0x302,0x2b2)]((_0x420042,_0x4f3adc)=>_0x420042[_0x32ddf9(0x1bc,0x21f,0x186,0x1b7)]-_0x4f3adc[_0x26bff6(0x2c8,0x2c6,0x348,0x34e)]);}function createExtensionRegistry(){const _0x12de96={_0x5bb7b2:0x2bc,_0x3c9209:0x2d2},_0xdaf14b={_0x14499e:0x171,_0x2bf6cb:0x1d8,_0xfcd199:0x13e,_0x48b310:0x178,_0x39ad07:0x103,_0x50427c:0x199,_0x469850:0x35e,_0x5290a1:0x304,_0x33d246:0x148,_0x4c2f7b:0xe0,_0x19af41:0x163},_0x414974=[];return{'register'(_0x5a900d){function _0x21f837(_0x5004dd,_0x2f3061,_0x3113,_0x5bd7b8){return _0x37f7(_0x5004dd-0x29e,_0x5bd7b8);}if(_0x5a900d[_0x68272c(-0x187,-_0xdaf14b._0x14499e,-_0xdaf14b._0x2bf6cb,-_0xdaf14b._0xfcd199)]==='observer'&&_0x5a900d['enabled']!==![]&&_0x5a900d['terminal']===!![]){const _0x204480=_0x414974[_0x68272c(-0x96,-0x92,-0xbc,-0xe1)](_0x3a4450=>_0x3a4450[_0x68272c(-0x187,-0x177,-0x100,-0x11f)]===_0x68272c(-0xcb,-0xc9,-0x97,-0x155)&&_0x3a4450['enabled']!==![]&&_0x3a4450[_0x21f837(0x376,0x3a2,0x342,0x33f)]===_0x5a900d[_0x68272c(-0x138,-0x16c,-0x186,-0x122)]&&_0x3a4450[_0x68272c(-0xa3,-0x11f,-0x107,-0x3f)]===!![]);if(_0x204480)throw new Error(_0x68272c(-_0xdaf14b._0x48b310,-_0xdaf14b._0x39ad07,-0x137,-_0xdaf14b._0x50427c)+_0x5a900d['id']+'\x22\x20for\x20'+_0x5a900d[_0x21f837(0x376,_0xdaf14b._0x469850,0x308,_0xdaf14b._0x5290a1)]+_0x68272c(-_0xdaf14b._0x33d246,-_0xdaf14b._0x4c2f7b,-_0xdaf14b._0x19af41,-0xcc)+_0x204480['id']+'\x22\x20is\x20already\x20enabled');}function _0x68272c(_0x499fcb,_0x4c294e,_0x354bf7,_0xdc46e2){return _0x37f7(_0x499fcb- -0x210,_0x4c294e);}_0x414974['push']({..._0x5a900d});},async 'runTransformers'(_0x2a75ed,_0xa8800a,_0x2b9e6b){function _0x536603(_0x61721b,_0x376814,_0x4daf1d,_0x1ba05e){return _0x37f7(_0x61721b-0x145,_0x4daf1d);}let _0xd46eb9=_0xa8800a;for(const _0x21841d of getOrderedTransformerExtensions(_0x414974,_0x2a75ed)){_0xd46eb9=await _0x21841d[_0x536603(_0x12de96._0x5bb7b2,0x313,0x31c,_0x12de96._0x3c9209)](_0xd46eb9,_0x2b9e6b);}return _0xd46eb9;},async 'runObservers'(_0x476a3b,_0x10dc60,_0x44e6ab){for(const _0x1ae2e2 of getOrderedObserverExtensions(_0x414974,_0x476a3b)){await _0x1ae2e2['run'](_0x10dc60,_0x44e6ab);}}};}var MODEL_USAGE_TOTAL_KEYS=[_0x58fa56(0x44d,0x403,0x3c2,0x3a9),_0x22e785(0x395,0x412,0x3ca,0x396),_0x22e785(0x3cc,0x347,0x371,0x39a),'totalReasoningTokens',_0x22e785(0x3fa,0x358,0x3cf,0x3ff),'modelCallCount','totalModelTimeMs','totalCostUsdTicks',_0x22e785(0x2b6,0x2b8,0x2ed,0x28f),_0x58fa56(0x3a1,0x3d8,0x375,0x424),_0x22e785(0x389,0x452,0x3f4,0x42c),'estimatedCostCallCount',_0x22e785(0x2e0,0x2a2,0x310,0x319),_0x58fa56(0x2db,0x34c,0x326,0x391),_0x58fa56(0x3ad,0x340,0x330,0x3b6)],SUBAGENT_REPORT_META_KEYS=[_0x22e785(0x2b4,0x2b6,0x2f1,0x35c),'runId',_0x58fa56(0x333,0x2fe,0x336,0x380),_0x58fa56(0x2f1,0x31d,0x39f,0x383),'turnUsage','cumulativeUsage'],ModelUsageOverflowError=class extends RangeError{[_0x58fa56(0x346,0x334,0x3a4,0x2d2)]='ModelUsageOverflowError';};function hasExactKeys(_0x592cbd,_0x37bc2f){const _0x23cec5={_0x4cf3dc:0x93,_0x16eb71:0xa9,_0x5e99d3:0x4b,_0x2d38db:0x11a,_0x1d4921:0x5f,_0x23f8c5:0xbf},_0x54b323={_0x26cfb0:0xcc,_0x4137:0x336},_0x546a2f={_0x29e107:0xf3,_0x118082:0xf2,_0x1c77cd:0x2af};if(typeof _0x592cbd!==_0x1fc343(_0x23cec5._0x4cf3dc,0xaf,_0x23cec5._0x16eb71,0x92)||_0x592cbd===null||Array[_0x5b1f44(-0x65,_0x23cec5._0x5e99d3,-0x15,-0x98)](_0x592cbd))return![];function _0x1fc343(_0x32fbaa,_0xe6d030,_0x2846be,_0x524a9b){return _0x22e785(_0x32fbaa-_0x546a2f._0x29e107,_0xe6d030-_0x546a2f._0x118082,_0x524a9b- -_0x546a2f._0x1c77cd,_0xe6d030);}function _0x5b1f44(_0x39f0e1,_0x5370d0,_0x18cef1,_0x41c7d4){return _0x22e785(_0x39f0e1-_0x54b323._0x26cfb0,_0x5370d0-0x96,_0x18cef1- -_0x54b323._0x4137,_0x5370d0);}const _0x1f298b=Object['keys'](_0x592cbd);return _0x1f298b['length']===_0x37bc2f[_0x1fc343(0x113,0x131,_0x23cec5._0x2d38db,0xf6)]&&_0x1f298b[_0x5b1f44(-0x15,0xe7,_0x23cec5._0x1d4921,_0x23cec5._0x23f8c5)](_0x219a56=>_0x37bc2f['includes'](_0x219a56));}function isNonNegativeSafeInteger(_0x1d5ab7){const _0x44afd5={_0x34868c:0x201,_0xbd010f:0x25f,_0x39e7cc:0x20b},_0x49fda6={_0x3a44de:0x31,_0x5e37ee:0x4fd};function _0x5f3757(_0xaffae3,_0x2d1ec3,_0x5a2e2c,_0x1c5521){return _0x22e785(_0xaffae3-_0x49fda6._0x3a44de,_0x2d1ec3-0x1dc,_0x1c5521- -_0x49fda6._0x5e37ee,_0x2d1ec3);}return typeof _0x1d5ab7===_0x5f3757(-0x277,-_0x44afd5._0x34868c,-_0x44afd5._0xbd010f,-_0x44afd5._0x39e7cc)&&Number['isSafeInteger'](_0x1d5ab7)&&_0x1d5ab7>=0x0;}function requireModelUsageInteger(_0x47b5b7){if(!isNonNegativeSafeInteger(_0x47b5b7))throw new ModelUsageOverflowError('Model\x20usage\x20total\x20overflow');return _0x47b5b7;}function addModelUsageInteger(_0x465de0,_0x146028){return requireModelUsageInteger(_0x465de0+_0x146028);}function _0x22e785(_0x3fc6f6,_0x22ef07,_0x384caa,_0x40da49){const _0x5cd831={_0xfe1476:0x26a};return _0x37f7(_0x384caa-_0x5cd831._0xfe1476,_0x40da49);}function emptyModelUsageTotals(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'totalModelTimeMs':0x0,'totalCostUsdTicks':0x0,'totalReportedCostUsdTicks':0x0,'totalEstimatedCostUsdTicks':0x0,'reportedCostCallCount':0x0,'estimatedCostCallCount':0x0,'unpricedModelCallCount':0x0,'historicalMetricsComplete':!![],'missingHistoricalModelCallCount':0x0};}function isModelUsageTotals(_0x17bfe3){const _0x5a479a={_0x4331fd:0x1f2,_0x27da5e:0x2ec,_0xa3b163:0x2c0,_0x56b5d2:0x245,_0x4c711b:0x2b1,_0x12a085:0x2ac,_0x42cac9:0x235,_0x554897:0x2a5,_0x4a2194:0x122,_0x34c91b:0x1a6,_0x559405:0x1bb,_0x100cf6:0x280,_0x3aba79:0x182,_0x29b017:0x1ff,_0x3c1ef0:0x1a1,_0x6fbdeb:0x1b6,_0x103c19:0x1b4,_0x177e15:0x20d,_0x5ba296:0x1b6,_0x77e559:0x1ae,_0x3fbbc8:0x1e6,_0x5262ce:0x209,_0x27dac1:0x1e6,_0x39c6c8:0x1a1,_0x59d68f:0x1fe,_0x17a0d5:0x286,_0x37e47f:0x279,_0x20a87e:0x260,_0xe872ac:0x1d2,_0x43ebc8:0x236},_0x4faf4d={_0x3e614f:0x16c,_0xbc8505:0x67},_0x3b4389={_0x1b665f:0x101,_0x2c7ffc:0x5b4};if(!hasExactKeys(_0x17bfe3,MODEL_USAGE_TOTAL_KEYS))return![];for(const _0x502c20 of MODEL_USAGE_TOTAL_KEYS){if(_0x502c20===_0x58160b(-_0x5a479a._0x4331fd,-0x268,-_0x5a479a._0x27da5e,-_0x5a479a._0xa3b163))continue;if(!isNonNegativeSafeInteger(_0x17bfe3[_0x502c20]))return![];}function _0x58160b(_0x240b5f,_0x316a78,_0x5aa8b0,_0x2660ce){return _0x58fa56(_0x240b5f-_0x3b4389._0x1b665f,_0x316a78- -_0x3b4389._0x2c7ffc,_0x5aa8b0-0xcf,_0x2660ce);}if(typeof _0x17bfe3[_0x249c82(-_0x5a479a._0x56b5d2,-_0x5a479a._0x4c711b,-0x265,-0x236)]!==_0x58160b(-_0x5a479a._0x12a085,-_0x5a479a._0x42cac9,-_0x5a479a._0x554897,-0x202))return![];const _0x497537=_0x17bfe3;function _0x249c82(_0xc0ede3,_0x4eaf6b,_0x52fea5,_0x3ab372){return _0x22e785(_0xc0ede3-_0x4faf4d._0x3e614f,_0x4eaf6b-_0x4faf4d._0xbc8505,_0x3ab372- -0x570,_0x52fea5);}return _0x497537['totalTokens']===_0x497537[_0x249c82(-0x1dc,-_0x5a479a._0x4a2194,-0x22e,-_0x5a479a._0x34c91b)]+_0x497537['totalOutputTokens']&&_0x497537['totalReasoningTokens']<=_0x497537[_0x249c82(-_0x5a479a._0x559405,-_0x5a479a._0x100cf6,-_0x5a479a._0x3aba79,-_0x5a479a._0x29b017)]&&_0x497537[_0x249c82(-0x138,-0x1e2,-0x1d2,-_0x5a479a._0x3c1ef0)]<=_0x497537[_0x249c82(-_0x5a479a._0x6fbdeb,-_0x5a479a._0x103c19,-_0x5a479a._0x177e15,-_0x5a479a._0x103c19)]&&_0x497537[_0x58160b(-_0x5a479a._0x5ba296,-_0x5a479a._0x77e559,-0x1f1,-0x1b3)]<=_0x497537[_0x58160b(-0x17a,-_0x5a479a._0x3fbbc8,-0x239,-0x1dd)]&&_0x497537['estimatedCostCallCount']<=_0x497537[_0x58160b(-_0x5a479a._0x5262ce,-_0x5a479a._0x27dac1,-_0x5a479a._0x39c6c8,-_0x5a479a._0x59d68f)]&&_0x497537[_0x249c82(-0x286,-_0x5a479a._0x17a0d5,-_0x5a479a._0x37e47f,-_0x5a479a._0x20a87e)]<=_0x497537['modelCallCount']&&_0x497537['historicalMetricsComplete']===(_0x497537[_0x249c82(-_0x5a479a._0xe872ac,-0x219,-_0x5a479a._0x43ebc8,-0x242)]===0x0);}function isSubagentReportMeta(_0x1c4b68){const _0x635932={_0x575288:0x19d,_0x333ce5:0x1a4,_0x13db1b:0x3bb,_0x18d26f:0x3d9,_0x5870fc:0x426,_0x344c8b:0x1bb,_0x5ea60d:0x3a2,_0xdbaa8b:0x44f,_0x33be79:0x21e,_0x34de5a:0x1fe,_0x25790e:0x356,_0x5baf59:0x225,_0x21efad:0x238,_0x4b7619:0x208,_0x15a5a6:0x19b,_0x4eefa0:0x380,_0x6a5f1d:0x35b,_0x420e6a:0x388,_0xfbee98:0x442,_0x5cd401:0x38e,_0x3ac5fc:0x419,_0x49fd32:0x3dc,_0xff4b55:0x18c,_0x43af21:0x26f,_0xd6b32:0x170,_0x509df6:0x168},_0x325983={_0x1d16dc:0x22,_0x262696:0x1dc},_0x1c6296={_0x53966f:0xe8,_0x47faf6:0x1a9};function _0xcebcd5(_0x50f906,_0x3ec3cb,_0x4c7fd0,_0x5c003f){return _0x22e785(_0x50f906-_0x1c6296._0x53966f,_0x3ec3cb-0x153,_0x5c003f- -_0x1c6296._0x47faf6,_0x50f906);}if(!hasExactKeys(_0x1c4b68,SUBAGENT_REPORT_META_KEYS))return![];if(typeof _0x1c4b68[_0xcebcd5(_0x635932._0x575288,_0x635932._0x333ce5,0x182,0x148)]!=='string'||_0x1c4b68['agentId'][_0x232b99(_0x635932._0x13db1b,0x36c,0x3f6,_0x635932._0x18d26f)]===0x0)return![];if(typeof _0x1c4b68['runId']!==_0x232b99(0x4a0,0x4ab,0x3fe,_0x635932._0x5870fc)||_0x1c4b68[_0xcebcd5(0x17e,_0x635932._0x344c8b,0x192,0x1ee)][_0x232b99(0x396,_0x635932._0x5ea60d,_0x635932._0xdbaa8b,0x3d9)]===0x0)return![];if(typeof _0x1c4b68['turnId']!==_0xcebcd5(0x25e,_0x635932._0x33be79,_0x635932._0x34de5a,0x249)||_0x1c4b68[_0x232b99(0x363,_0x635932._0x25790e,0x3a3,0x320)]['length']===0x0)return![];function _0x232b99(_0xd8312c,_0x4edaed,_0x13e582,_0x26aeee){return _0x58fa56(_0xd8312c-0xf0,_0x26aeee-_0x325983._0x1d16dc,_0x13e582-_0x325983._0x262696,_0x13e582);}if(_0x1c4b68['status']!==_0xcebcd5(_0x635932._0x5baf59,0x1d6,_0x635932._0x21efad,0x1d3)&&_0x1c4b68['status']!==_0xcebcd5(_0x635932._0x4b7619,0x1d4,0x138,_0x635932._0x15a5a6)&&_0x1c4b68[_0x232b99(0x30e,0x2ff,_0x635932._0x4eefa0,0x33f)]!=='aborted')return![];if(!isModelUsageTotals(_0x1c4b68[_0xcebcd5(0x279,0x219,0x20d,0x1f2)]))return![];if(!isModelUsageTotals(_0x1c4b68[_0x232b99(0x3e6,_0x635932._0x6a5f1d,0x391,_0x635932._0x420e6a)]))return![];return _0x1c4b68[_0x232b99(_0x635932._0xfbee98,_0x635932._0x5cd401,_0x635932._0x3ac5fc,0x3cf)][_0x232b99(_0x635932._0x49fd32,0x3f5,0x391,0x36e)]&&_0x1c4b68[_0xcebcd5(0x20a,_0x635932._0xff4b55,_0x635932._0x43af21,0x1f2)][_0xcebcd5(_0x635932._0xd6b32,_0x635932._0x509df6,0x179,0x185)]===0x0;}function addModelUsageTotals(_0x188a81,_0x41488e){const _0x1b6588={_0x49d959:0x2d6,_0x240209:0x522,_0x596064:0x4aa,_0x19087b:0x523,_0x415a06:0x513,_0x6b0e4b:0x4ba,_0x24901b:0x532,_0x1c82f9:0x4ba,_0x5235f8:0x27b,_0x74d2f:0x21e,_0x22a878:0x4c9,_0x5c6fc9:0x49b,_0x196b68:0x499,_0x280d73:0x567,_0x545f15:0x505,_0x16629e:0x271,_0x236be7:0x20d,_0x46c2c0:0x191,_0x1cadfa:0x4ae,_0x387ac8:0x52b,_0x21c5ff:0x1c7,_0x225f9a:0x539,_0x1eca28:0x4df,_0x1eac1f:0x53d,_0x37e2a8:0x45e,_0x25ff6a:0x459,_0x152f4e:0x259},_0x40e41d={_0x109ea4:0x117,_0x4723a6:0x138};function _0x1bad59(_0x16d68b,_0x43dd38,_0x4fe091,_0x419624){return _0x58fa56(_0x16d68b-_0x40e41d._0x109ea4,_0x43dd38- -_0x40e41d._0x4723a6,_0x4fe091-0x99,_0x4fe091);}function _0x43dfd7(_0x5d7f52,_0x446eb2,_0x3088b8,_0x4168d6){return _0x22e785(_0x5d7f52-0xe4,_0x446eb2-0x146,_0x4168d6-0x149,_0x5d7f52);}return{'totalTokens':addModelUsageInteger(_0x188a81[_0x1bad59(0x327,0x2cb,0x324,0x2e9)],_0x41488e[_0x1bad59(0x324,0x2cb,_0x1b6588._0x49d959,0x257)]),'totalInputTokens':addModelUsageInteger(_0x188a81[_0x43dfd7(0x53a,_0x1b6588._0x240209,0x57f,0x513)],_0x41488e[_0x43dfd7(0x4d6,_0x1b6588._0x596064,_0x1b6588._0x19087b,_0x1b6588._0x415a06)]),'totalOutputTokens':addModelUsageInteger(_0x188a81[_0x43dfd7(0x494,0x542,0x504,_0x1b6588._0x6b0e4b)],_0x41488e[_0x43dfd7(_0x1b6588._0x24901b,0x446,0x490,_0x1b6588._0x1c82f9)]),'totalReasoningTokens':addModelUsageInteger(_0x188a81[_0x1bad59(_0x1b6588._0x5235f8,0x22c,_0x1b6588._0x74d2f,0x21a)],_0x41488e[_0x43dfd7(_0x1b6588._0x22a878,0x4b9,0x506,_0x1b6588._0x5c6fc9)]),'requestCount':addModelUsageInteger(_0x188a81['requestCount'],_0x41488e[_0x43dfd7(0x49b,_0x1b6588._0x196b68,0x48f,0x518)]),'modelCallCount':addModelUsageInteger(_0x188a81['modelCallCount'],_0x41488e[_0x43dfd7(_0x1b6588._0x280d73,0x49d,0x558,_0x1b6588._0x545f15)]),'totalModelTimeMs':addModelUsageInteger(_0x188a81['totalModelTimeMs'],_0x41488e[_0x1bad59(_0x1b6588._0x16629e,_0x1b6588._0x236be7,0x1d1,_0x1b6588._0x46c2c0)]),'totalCostUsdTicks':addModelUsageInteger(_0x188a81[_0x43dfd7(0x57f,_0x1b6588._0x1cadfa,_0x1b6588._0x387ac8,0x531)],_0x41488e['totalCostUsdTicks']),'totalReportedCostUsdTicks':addModelUsageInteger(_0x188a81[_0x1bad59(0x151,_0x1b6588._0x21c5ff,0x152,0x170)],_0x41488e['totalReportedCostUsdTicks']),'totalEstimatedCostUsdTicks':addModelUsageInteger(_0x188a81[_0x1bad59(0x228,0x2a0,0x2ac,0x282)],_0x41488e['totalEstimatedCostUsdTicks']),'reportedCostCallCount':addModelUsageInteger(_0x188a81['reportedCostCallCount'],_0x41488e[_0x43dfd7(_0x1b6588._0x225f9a,_0x1b6588._0x1eca28,0x598,_0x1b6588._0x1eac1f)]),'estimatedCostCallCount':addModelUsageInteger(_0x188a81['estimatedCostCallCount'],_0x41488e['estimatedCostCallCount']),'unpricedModelCallCount':addModelUsageInteger(_0x188a81['unpricedModelCallCount'],_0x41488e[_0x43dfd7(0x4bd,_0x1b6588._0x37e2a8,0x45c,_0x1b6588._0x25ff6a)]),'historicalMetricsComplete':_0x188a81[_0x1bad59(_0x1b6588._0x152f4e,0x214,0x1c1,0x1fe)]&&_0x41488e['historicalMetricsComplete'],'missingHistoricalModelCallCount':addModelUsageInteger(_0x188a81['missingHistoricalModelCallCount'],_0x41488e['missingHistoricalModelCallCount'])};}function modelUsageTotalsEqual(_0x21e46e,_0x412aef){const _0x5e64f3={_0x26b61b:0x278,_0x2e4720:0x2ca},_0x1ea2f2={_0x89ec01:0x25,_0xbe2fdf:0xd};function _0x2bad79(_0x38b696,_0x22202c,_0x25dfce,_0x5ae409){return _0x22e785(_0x38b696-_0x1ea2f2._0x89ec01,_0x22202c-_0x1ea2f2._0xbe2fdf,_0x38b696- -0x60d,_0x25dfce);}return MODEL_USAGE_TOTAL_KEYS[_0x2bad79(-_0x5e64f3._0x26b61b,-0x267,-0x21b,-_0x5e64f3._0x2e4720)](_0x2ba3f9=>_0x21e46e[_0x2ba3f9]===_0x412aef[_0x2ba3f9]);}function modelUsageTotalsFromSnapshot(_0x348986){const _0x3e851e={_0x58fb20:0x38,_0x5116e1:0xb4,_0x1b0f5a:0xdc,_0x339dd3:0xa7,_0x3dfbd3:0x17b,_0x276bcd:0x1bd,_0x3ab076:0x1a6,_0x4e7037:0x4e,_0x289d5e:0x2e,_0x4d0f6c:0x93,_0x7029bb:0x27,_0x129699:0x143,_0x159adc:0x182,_0x3e3c01:0x237,_0x1f1525:0x1af,_0xe3d2d2:0xd,_0x308924:0x1bf,_0x1f5025:0x1db,_0xb066cb:0x173,_0x1b1d87:0x50,_0x3c528f:0x1e7,_0x152ed4:0x1b9,_0x5c8f16:0x1da,_0x53b5a3:0x1fc,_0x3a9b3c:0x254,_0x106620:0xcd,_0x1d473e:0x11b,_0x3769dd:0x57,_0xf4b887:0x3,_0x49f454:0x7f,_0x150826:0x128,_0x307427:0x12d},_0x2c3e20={_0x5d9e93:0x191},_0x5cc4b8={_0x2d7ee9:0xae},_0x5260c9={'totalTokens':_0x348986[_0x5c5110(_0x3e851e._0x58fb20,_0x3e851e._0x5116e1,_0x3e851e._0x1b0f5a,_0x3e851e._0x339dd3)],'totalInputTokens':_0x348986[_0x436258(_0x3e851e._0x3dfbd3,_0x3e851e._0x276bcd,0x18a,_0x3e851e._0x3ab076)],'totalOutputTokens':_0x348986[_0x5c5110(-0x4d,0x34,_0x3e851e._0x4e7037,_0x3e851e._0x289d5e)],'totalReasoningTokens':_0x348986[_0x5c5110(_0x3e851e._0x4d0f6c,0x15,-0xd,-_0x3e851e._0x7029bb)],'requestCount':_0x348986[_0x436258(0x1ed,0x1c2,_0x3e851e._0x129699,_0x3e851e._0x159adc)],'modelCallCount':_0x348986[_0x436258(_0x3e851e._0x3e3c01,_0x3e851e._0x1f1525,0x174,0x1f3)],'totalModelTimeMs':_0x348986[_0x5c5110(_0x3e851e._0xe3d2d2,-0xa,0x65,0x3e)],'totalCostUsdTicks':_0x348986[_0x436258(_0x3e851e._0x308924,_0x3e851e._0x1f5025,0x1b7,_0x3e851e._0xb066cb)],'totalReportedCostUsdTicks':_0x348986[_0x5c5110(-0x99,-_0x3e851e._0x1b1d87,-0x54,-0x56)],'totalEstimatedCostUsdTicks':_0x348986[_0x436258(_0x3e851e._0x3c528f,_0x3e851e._0x152ed4,_0x3e851e._0x5c8f16,0x1c1)],'reportedCostCallCount':_0x348986[_0x436258(_0x3e851e._0x53b5a3,_0x3e851e._0x3c528f,0x26b,_0x3e851e._0x3a9b3c)],'estimatedCostCallCount':_0x348986['estimatedCostCallCount'],'unpricedModelCallCount':_0x348986[_0x436258(0x117,0x103,_0x3e851e._0x106620,_0x3e851e._0x1d473e)],'historicalMetricsComplete':_0x348986[_0x5c5110(_0x3e851e._0x3769dd,-_0x3e851e._0xf4b887,0x4f,-_0x3e851e._0x49f454)],'missingHistoricalModelCallCount':_0x348986['missingHistoricalModelCallCount']};for(const _0x114ae6 of MODEL_USAGE_TOTAL_KEYS){if(_0x114ae6===_0x436258(_0x3e851e._0x150826,_0x3e851e._0x307427,0x1ae,0xdd))continue;requireModelUsageInteger(_0x5260c9[_0x114ae6]);}function _0x5c5110(_0x5388ec,_0x355584,_0x5ba6ff,_0x3910cf){return _0x58fa56(_0x5388ec-_0x5cc4b8._0x2d7ee9,_0x355584- -0x34f,_0x5ba6ff-0x1be,_0x3910cf);}function _0x436258(_0x49eb9e,_0x356a95,_0x5bb60a,_0x332e63){return _0x22e785(_0x49eb9e-_0x2c3e20._0x5d9e93,_0x356a95-0x30,_0x356a95- -0x20d,_0x49eb9e);}return _0x5260c9;}function modelUsageTotalsFromCall(_0x78922d){const _0x37e09b={_0x4b59b1:0x1aa,_0x58ecb8:0x174,_0x3670a4:0x1ad,_0x51cfb6:0x1ad,_0xcdb218:0x1fc,_0x2ce6ef:0x17d,_0x448c34:0xb9,_0x129af9:0x85,_0x1ae8aa:0xf8,_0x44e7d7:0xc4,_0x3180ea:0x125,_0x39ba40:0x1a6,_0x508eb9:0x150,_0x312fc7:0x73,_0x11bfc1:0xd7},_0x45d1b8={_0x35846f:0x14b,_0x15fedf:0x1ee},_0xa8ff26={_0x595c48:0x16f},_0x230c77=_0x78922d[_0x3b8518(0x189,0x152,_0x37e09b._0x4b59b1,0x17c)],_0xd90401=requireModelUsageInteger(_0x230c77[_0x3b8518(0x197,0x1f4,_0x37e09b._0x58ecb8,_0x37e09b._0x3670a4)]),_0x1fa190=requireModelUsageInteger(_0x230c77[_0x2c8057(0x1e0,_0x37e09b._0x51cfb6,0x220,0x21a)]),_0x2a8f32=requireModelUsageInteger(_0x230c77[_0x2c8057(0x157,0x1c5,0x17e,0x196)]??0x0),_0x30242c=requireModelUsageInteger(_0x78922d[_0x2c8057(0x222,_0x37e09b._0xcdb218,0x1c1,_0x37e09b._0x2ce6ef)]);function _0x2c8057(_0x379208,_0x4698a4,_0x152a1e,_0x9c2525){return _0x58fa56(_0x379208-0x115,_0x4698a4- -0x20e,_0x152a1e-_0xa8ff26._0x595c48,_0x152a1e);}const _0x4779e8=addModelUsageInteger(_0xd90401,_0x1fa190),_0x189897=_0x230c77[_0x2c8057(_0x37e09b._0x448c34,0x10e,0xc6,_0x37e09b._0x129af9)]?.['amountUsdTicks'],_0x3f9ddf=_0x230c77[_0x2c8057(0x88,_0x37e09b._0x1ae8aa,_0x37e09b._0x44e7d7,_0x37e09b._0x3180ea)]?.[_0x3b8518(0x201,0x1a1,0x1d1,_0x37e09b._0x39ba40)],_0x570ed3=_0x189897===void 0x0?void 0x0:requireModelUsageInteger(_0x189897),_0x22b96a=_0x3f9ddf===void 0x0?void 0x0:requireModelUsageInteger(_0x3f9ddf),_0x45f4e6=_0x570ed3??_0x22b96a,_0xae420b={...emptyModelUsageTotals(),'totalTokens':_0x4779e8,'totalInputTokens':_0xd90401,'totalOutputTokens':_0x1fa190,'totalReasoningTokens':_0x2a8f32,'requestCount':_0x78922d[_0x3b8518(0x19a,_0x37e09b._0x508eb9,0x1dd,0x1ab)]?0x1:0x0,'modelCallCount':0x1,'totalModelTimeMs':_0x30242c,'totalCostUsdTicks':_0x45f4e6??0x0,'totalReportedCostUsdTicks':_0x570ed3??0x0,'totalEstimatedCostUsdTicks':_0x22b96a??0x0,'reportedCostCallCount':_0x570ed3===void 0x0?0x0:0x1,'estimatedCostCallCount':_0x22b96a===void 0x0?0x0:0x1,'unpricedModelCallCount':_0x570ed3===void 0x0&&_0x22b96a===void 0x0?0x1:0x0};function _0x3b8518(_0x52533e,_0x3ec84f,_0x36ee72,_0x45c12a){return _0x58fa56(_0x52533e-_0x45d1b8._0x35846f,_0x45c12a- -0x229,_0x36ee72-_0x45d1b8._0x15fedf,_0x52533e);}if(!isModelUsageTotals(_0xae420b))throw new ModelUsageOverflowError(_0x3b8518(0x149,0x150,_0x37e09b._0x312fc7,_0x37e09b._0x11bfc1));return _0xae420b;}function modelUsageTotalsFromHistory(_0x43481c,_0x2a6551){const _0x5a161c={_0x790b32:0x316,_0x37b8e9:0x290,_0x58a599:0x2a0},_0x4d5303={_0x1eab8e:0x56},_0x22d5a1={_0x5717b6:0xe4,_0x1baa6f:0x77};function _0x77cf07(_0x24ea9c,_0x4d2c0b,_0x368dda,_0x11d15c){return _0x58fa56(_0x24ea9c-0x12a,_0x368dda- -_0x22d5a1._0x5717b6,_0x368dda-_0x22d5a1._0x1baa6f,_0x24ea9c);}let _0x36b41c=emptyModelUsageTotals();function _0x190144(_0x475e86,_0x4d6224,_0x3b6403,_0x421a3c){return _0x22e785(_0x475e86-0xa6,_0x4d6224-_0x4d5303._0x1eab8e,_0x475e86- -0xe2,_0x421a3c);}for(const _0x561d3a of _0x43481c){_0x36b41c=addModelUsageTotals(_0x36b41c,modelUsageTotalsFromCall({'usage':_0x561d3a['usage'],'modelTimeMs':_0x561d3a[_0x190144(_0x5a161c._0x790b32,_0x5a161c._0x37b8e9,0x2ab,_0x5a161c._0x58a599)],'completesRequest':_0x561d3a[_0x190144(0x2e0,0x368,0x2a5,0x2aa)]}));}const _0x3d8515=requireModelUsageInteger(_0x2a6551);return{..._0x36b41c,'historicalMetricsComplete':_0x3d8515===0x0,'missingHistoricalModelCallCount':_0x3d8515};}function createEmptySnapshot(){return{...emptyModelUsageTotals(),'toolCallCount':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function applyModelCall(_0x17cc11,_0xeb063){const _0x43927d={_0x57c9ae:0x92,_0x1dad28:0x9f,_0x367433:0xfc,_0x70d28:0x142,_0x64437c:0x153,_0x2bdd4c:0x229,_0x1ab329:0x1cb,_0x596746:0xc9,_0x7094f3:0x6b,_0xf5d79c:0x38,_0x283f50:0x0,_0x41d71e:0x66,_0x4e81e9:0xb,_0x1abcca:0x34,_0x45049:0x6b,_0x3027b7:0xcd,_0x16a4e8:0x35,_0x297ef5:0x55,_0x4dacab:0x92,_0x327cd5:0x1d3,_0xfc5b59:0x1b2,_0x54f63f:0x165},_0x310f21={_0x2bbeba:0x1db,_0x2c8dca:0x162,_0x571729:0x3bd},_0x3ad813={_0x1391d5:0x19b,_0x48f228:0x1c8};function _0x89d761(_0x48fd9a,_0x457746,_0x3f9669,_0x302758){return _0x22e785(_0x48fd9a-0x1d5,_0x457746-_0x3ad813._0x1391d5,_0x302758- -_0x3ad813._0x48f228,_0x457746);}const _0x2ffa8e=modelUsageTotalsFromCall(_0xeb063),_0x423781=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x17cc11),_0x2ffa8e),_0x1e595f=_0xeb063[_0x89709e(-_0x43927d._0x57c9ae,0x3e,-0x2a,-_0x43927d._0x1dad28)][_0x89d761(0x19d,_0x43927d._0x367433,0x187,_0x43927d._0x70d28)]?.[_0x89d761(0x174,0x1ac,0x16f,0x1f5)];function _0x89709e(_0x440ebe,_0x5d1c94,_0x3e307a,_0x11daff){return _0x22e785(_0x440ebe-_0x310f21._0x2bbeba,_0x5d1c94-_0x310f21._0x2c8dca,_0x3e307a- -_0x310f21._0x571729,_0x5d1c94);}const _0x4352f4=_0xeb063[_0x89d761(0x19a,_0x43927d._0x64437c,_0x43927d._0x2bdd4c,_0x43927d._0x1ab329)][_0x89709e(-0x116,-0xa6,-_0x43927d._0x596746,-0x80)]?.[_0x89709e(-_0x43927d._0x7094f3,_0x43927d._0xf5d79c,_0x43927d._0x283f50,-_0x43927d._0x41d71e)],{currentReportedCostUsdTicks:_0x35eb5d,currentEstimatedCostUsdTicks:_0x2e8556,..._0x204192}=_0x17cc11;return{..._0x204192,..._0x423781,'currentTokens':_0x2ffa8e[_0x89709e(_0x43927d._0x4e81e9,-0x26,_0x43927d._0x1abcca,0xad)],'currentInputTokens':_0x2ffa8e['totalInputTokens'],'currentOutputTokens':_0x2ffa8e['totalOutputTokens'],'currentReasoningTokens':_0x2ffa8e[_0x89709e(0xb,-0x3f,-_0x43927d._0x45049,-0x95)],'currentModelTimeMs':_0x2ffa8e[_0x89709e(-0xb4,-0x101,-0x8a,-_0x43927d._0x3027b7)],..._0x204192[_0x89709e(_0x43927d._0x16a4e8,-_0x43927d._0x297ef5,-0x29,-_0x43927d._0x4dacab)]&&_0x2ffa8e['totalTokens']>0x0?{'contextWindowUsage':_0x2ffa8e['totalTokens']/_0x204192[_0x89d761(_0x43927d._0x327cd5,_0x43927d._0xfc5b59,_0x43927d._0x54f63f,0x1cc)]}:{},..._0x1e595f!==void 0x0?{'currentReportedCostUsdTicks':_0x1e595f}:{},..._0x4352f4!==void 0x0?{'currentEstimatedCostUsdTicks':_0x4352f4}:{}};}function mergeExternalUsage(_0x415f40,_0xc97037){const _0x72f59c={_0x29521d:0xd7,_0x18a444:0x13c,_0x3a1130:0x10a},_0x248596={_0x428acc:0xc8,_0x41e028:0x431};function _0x37e7b3(_0x9de78a,_0x2e7031,_0x56b1b4,_0x342671){return _0x22e785(_0x9de78a-_0x248596._0x428acc,_0x2e7031-0x1a5,_0x342671- -_0x248596._0x41e028,_0x56b1b4);}if(!isModelUsageTotals(_0xc97037))throw new TypeError(_0x37e7b3(-0x150,-_0x72f59c._0x29521d,-_0x72f59c._0x18a444,-_0x72f59c._0x3a1130));const _0x483f25=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x415f40),_0xc97037);return{..._0x415f40,..._0x483f25};}function createAgentMetrics(_0x121ac7={}){const _0x327960={_0x1483b7:0x1f6},_0x554dc0={_0x2d8a44:0x208,_0x44b077:0x24c,_0x41179c:0x21e},_0x571fca={_0x5c0679:0x1f4,_0x506273:0x189,_0xb443dd:0xf4,_0x1dcd61:0x15f,_0x24d38c:0x131,_0x43d93c:0x17b,_0x23af2c:0x12e,_0x321c84:0x1b6,_0x9a91fb:0x1e5},_0xe359d={_0x5b87c1:0x11d,_0x25079c:0x1fd,_0xb7d295:0x314,_0x1c620f:0x349,_0x509ef1:0x2f2,_0x3d235c:0x265,_0x4e8510:0x2a1,_0xdd23a6:0x1de,_0x1041df:0x18c,_0xaba41e:0x30c,_0x5d713e:0x345,_0x4bfa30:0x349,_0x19bcac:0x2f9,_0x1b3447:0x28a,_0x3432c8:0x2b4,_0x41c92a:0x287,_0xa35513:0x104,_0x5b4382:0x32a,_0x5ddb73:0x34f,_0x267bf0:0x377,_0x3ed763:0x397,_0x125b26:0xb8,_0x2636f3:0x92,_0x119aba:0x127,_0x134d1a:0xa5,_0x5bfa6c:0xec,_0xb67412:0x1a6,_0x197a13:0x17c,_0x41057f:0x1ae,_0x3b3fec:0x187},_0x4b8eb9={_0x15d3f2:0x41};let _0x2bde15=createEmptySnapshot();const _0x5027ec=new Set();let _0x4226d0;const _0x5289df=()=>{const _0x18ecf1={..._0x2bde15};for(const _0x3dc194 of _0x5027ec)_0x3dc194(_0x18ecf1);};return{'getSnapshot'(){return{..._0x2bde15};},'recordEvent'(_0x514513){const _0x15ceef={_0x9cbb5d:0x1ef};function _0x2f994b(_0x5a98d6,_0x38a066,_0xab21cf,_0x19763b){return _0x37f7(_0x38a066-_0x15ceef._0x9cbb5d,_0x5a98d6);}if(_0x514513[_0x2ec468(0x197,_0xe359d._0x5b87c1,0x1dd,_0xe359d._0x25079c)]===_0x2f994b(0x34d,_0xe359d._0xb7d295,_0xe359d._0x1c620f,0x2ef)){_0x4226d0=Date[_0x2f994b(_0xe359d._0x509ef1,0x2e1,_0xe359d._0x3d235c,_0xe359d._0x4e8510)]();const _0x152ab9=_0x121ac7['getContextWindowLimit']?.(_0x514513[_0x2ec468(0x16f,_0xe359d._0xdd23a6,0x1d2,_0xe359d._0x1041df)]);_0x152ab9!==void 0x0&&(_0x2bde15={..._0x2bde15,'contextWindowLimit':_0x152ab9},_0x5289df());return;}function _0x2ec468(_0x41fc83,_0x1af67b,_0x49a28d,_0xe5a154){return _0x37f7(_0x41fc83-_0x4b8eb9._0x15d3f2,_0x1af67b);}if(_0x514513[_0x2f994b(_0xe359d._0xaba41e,_0xe359d._0x5d713e,_0xe359d._0x4bfa30,0x3bd)]===_0x2f994b(_0xe359d._0x19bcac,0x2fc,0x2ea,_0xe359d._0x1b3447)){const _0x3c0101=_0x4226d0===void 0x0?0x0:Date[_0x2f994b(_0xe359d._0x3432c8,0x2e1,0x2da,_0xe359d._0x41c92a)]()-_0x4226d0;_0x4226d0=void 0x0,_0x2bde15=applyModelCall(_0x2bde15,{'usage':_0x514513[_0x2ec468(0x174,_0xe359d._0xa35513,0x1fb,0x197)]['usage'],'modelTimeMs':_0x514513[_0x2f994b(0x397,0x37d,_0xe359d._0x5b4382,_0xe359d._0x5ddb73)]??_0x3c0101}),_0x5289df();return;}if(_0x514513[_0x2f994b(_0xe359d._0x267bf0,0x345,_0xe359d._0x3ed763,0x328)]===_0x2ec468(0xd8,0x8b,_0xe359d._0x125b26,_0xe359d._0x2636f3)){_0x2bde15={..._0x2bde15,'toolCallCount':_0x2bde15[_0x2ec468(_0xe359d._0x119aba,_0xe359d._0x134d1a,_0xe359d._0x5bfa6c,0x122)]+0x1},_0x5289df();return;}_0x514513['type']==='final_message'&&(_0x2bde15={..._0x2bde15,'requestCount':addModelUsageInteger(_0x2bde15[_0x2ec468(_0xe359d._0xb67412,_0xe359d._0x197a13,_0xe359d._0x41057f,_0xe359d._0x3b3fec)],0x1)},_0x5289df());},'recordExternalUsage'(_0x52d437){const _0x33771a=mergeExternalUsage(_0x2bde15,_0x52d437);_0x2bde15=_0x33771a,_0x5289df();},'reset'(){_0x2bde15=createEmptySnapshot(),_0x4226d0=void 0x0,_0x5289df();},'restore'(_0x28d5de){let _0x1a4212=createEmptySnapshot();function _0x5e0215(_0x2d99dc,_0x208898,_0x5c1598,_0x2e29dd){return _0x37f7(_0x2e29dd- -0x1d0,_0x208898);}for(const _0x23bd05 of _0x28d5de['modelCalls']){_0x1a4212=applyModelCall(_0x1a4212,{'usage':_0x23bd05[_0x34d2ef(-_0x571fca._0x5c0679,-0x207,-_0x571fca._0x506273,-0x202)],'modelTimeMs':_0x23bd05[_0x34d2ef(-_0x571fca._0xb443dd,-_0x571fca._0x1dcd61,-0x124,-_0x571fca._0x24d38c)],'completesRequest':_0x23bd05['completesRequest']});}const _0x53c3e2=requireModelUsageInteger(_0x28d5de[_0x5e0215(-0xda,-0x1a8,-_0x571fca._0x43d93c,-_0x571fca._0x23af2c)]);_0x1a4212={..._0x1a4212,'toolCallCount':_0x28d5de['toolCallCount'],'historicalMetricsComplete':_0x53c3e2===0x0,'missingHistoricalModelCallCount':_0x53c3e2};let _0x11bbad=_0x1a4212;function _0x34d2ef(_0x2656b9,_0x2a6d11,_0x1d5a5d,_0x60b31d){return _0x37f7(_0x1d5a5d- -0x2b2,_0x2656b9);}if(_0x28d5de[_0x34d2ef(-_0x571fca._0x321c84,-_0x571fca._0x9a91fb,-0x202,-0x22b)]!==void 0x0)try{_0x11bbad=mergeExternalUsage(_0x1a4212,_0x28d5de['externalUsage']);}catch(_0x5918d7){if(!(_0x5918d7 instanceof ModelUsageOverflowError))throw _0x5918d7;}_0x2bde15=_0x11bbad,_0x4226d0=void 0x0,_0x5289df();},'subscribe'(_0x36e6a7){const _0x3d2b27={_0x509fe4:0xb1};_0x5027ec[_0x2287f4(_0x327960._0x1483b7,0x1eb,0x1b1,0x17e)](_0x36e6a7);function _0x2287f4(_0x474e07,_0x574afa,_0x5de379,_0x19ee19){return _0x37f7(_0x474e07-0x10f,_0x19ee19);}return()=>{function _0x96e677(_0x2ed0b3,_0x5b5875,_0x4612fc,_0x14a95c){return _0x2287f4(_0x2ed0b3- -0x3e,_0x5b5875-0x185,_0x4612fc-_0x3d2b27._0x509fe4,_0x4612fc);}_0x5027ec[_0x96e677(_0x554dc0._0x2d8a44,_0x554dc0._0x44b077,_0x554dc0._0x41179c,0x287)](_0x36e6a7);};}};}function normalizeExecutionScope(_0x5da27d){const _0x94611b={_0x2caed1:0x27e,_0x797ed3:0x2d8,_0x55e1b5:0x223,_0x55ec18:0x3c4},_0x151dbc={_0x377ac9:0x2b},_0x21bb9c={_0x15a8f8:0x60};function _0x30ef0b(_0x14f4e9,_0x17bbee,_0x500bb0,_0x1f4e5a){return _0x58fa56(_0x14f4e9-0x101,_0x1f4e5a- -_0x21bb9c._0x15a8f8,_0x500bb0-0xcd,_0x17bbee);}function _0x2299a4(_0x426a5c,_0x368559,_0x534244,_0x2e475c){return _0x58fa56(_0x426a5c-0x17b,_0x534244- -_0x151dbc._0x377ac9,_0x534244-0x183,_0x368559);}return{'agentId':_0x5da27d?.[_0x2299a4(0x262,_0x94611b._0x2caed1,_0x94611b._0x797ed3,0x28d)]??_0x30ef0b(0x32e,_0x94611b._0x55e1b5,0x2bc,0x2a8),'toolCallPath':[..._0x5da27d?.[_0x2299a4(_0x94611b._0x55ec18,0x345,0x375,0x30f)]??[]]};}function makeExtensionContext(_0x26297a,_0x416738){const _0x3a142f={_0x3d3bca:0xd0,_0x19a254:0x83,_0x41f275:0xf1},_0x2fbc63={_0x572233:0x14b,_0x304021:0xe7,_0x23217f:0x2ec};function _0x403513(_0xa81847,_0xfa207e,_0x3729a5,_0x5e534e){return _0x22e785(_0xa81847-_0x2fbc63._0x572233,_0xfa207e-_0x2fbc63._0x304021,_0x5e534e- -_0x2fbc63._0x23217f,_0xa81847);}return{'state':_0x26297a,'delivery':_0x403513(_0x3a142f._0x3d3bca,_0x3a142f._0x19a254,0x80,_0x3a142f._0x41f275),'executionScope':_0x416738};}async function runStage(_0x1f8b6c,_0x42404c,_0x1cf912,_0x5b8c30){const _0x59692e={_0x4c4599:0x3d3,_0x2f0f20:0x3fe,_0x2c64f5:0x35b},_0x17519a={_0x3208b5:0xaf,_0x3f397d:0x172},_0x1140ad=await _0x1f8b6c['runTransformers'](_0x42404c,_0x1cf912,_0x5b8c30);function _0x23b211(_0x3432fe,_0xb5b33d,_0x3a4fa7,_0x2ce5f1){return _0x58fa56(_0x3432fe-0xf9,_0xb5b33d-_0x17519a._0x3208b5,_0x3a4fa7-_0x17519a._0x3f397d,_0x2ce5f1);}return await _0x1f8b6c[_0x23b211(0x45c,_0x59692e._0x4c4599,_0x59692e._0x2f0f20,_0x59692e._0x2c64f5)](_0x42404c,_0x1140ad,_0x5b8c30),_0x1140ad;}async function emitEvent2(_0x27f3f9,_0x13a5ee,_0x2444b6){await _0x27f3f9?.(_0x13a5ee,_0x2444b6);}function replaceToolUseBlocks(_0x32a129,_0x52da5a){const _0x32e981={_0x398757:0x48e,_0x5826a8:0x557,_0xb9e119:0x4e6},_0x174b4f={_0x3d0350:0x62,_0x366154:0xaa},_0x192f13={_0x270ea8:0x450};function _0x51283a(_0x57369d,_0x512d05,_0x1bb7d7,_0x310f71){return _0x22e785(_0x57369d-0x48,_0x512d05-0x6d,_0x1bb7d7- -_0x192f13._0x270ea8,_0x57369d);}let _0x54bdbd=0x0;return{..._0x32a129,'content':_0x32a129[_0x51283a(-0x109,-0x84,-0x92,-0x88)]['map'](_0x230afd=>{function _0x1190f4(_0x41c624,_0x38e707,_0xce85c1,_0xa96b9d){return _0x51283a(_0x41c624,_0x38e707-0x141,_0xce85c1-0x550,_0xa96b9d-0xd6);}function _0x4ae08e(_0x203134,_0x594819,_0x1af294,_0x36c50d){return _0x51283a(_0x1af294,_0x594819-_0x174b4f._0x3d0350,_0x594819-0x5c2,_0x36c50d-_0x174b4f._0x366154);}if(_0x230afd[_0x1190f4(_0x32e981._0x398757,0x484,0x4c0,0x50e)]!==_0x4ae08e(0x546,_0x32e981._0x5826a8,0x53a,_0x32e981._0xb9e119))return _0x230afd;const _0x39416f=_0x52da5a[_0x54bdbd];return _0x54bdbd+=0x1,structuredClone(_0x39416f);})};}function createAssistantMessageId(_0x32acd4,_0x42920f){const _0x1c2379={_0x3f1a87:0x191};function _0x3d49dc(_0x5ddfff,_0x4fc70f,_0x26a736,_0x3b5380){return _0x22e785(_0x5ddfff-0x16e,_0x4fc70f-0x1b3,_0x4fc70f- -0x4a3,_0x3b5380);}return _0x32acd4+_0x3d49dc(-0x223,-0x1b3,-0x145,-_0x1c2379._0x3f1a87)+_0x42920f;}function createReasoningMessageId(_0x301700){const _0x2d61b3={_0x132fb9:0x3b2,_0x17641c:0x360,_0x184831:0x303};function _0x293508(_0x4a710c,_0x1b8919,_0xc99ecf,_0x26c772){return _0x22e785(_0x4a710c-0x38,_0x1b8919-0x17c,_0x1b8919- -0x44,_0xc99ecf);}return _0x301700+_0x293508(_0x2d61b3._0x132fb9,_0x2d61b3._0x17641c,0x349,_0x2d61b3._0x184831);}function withMessageId(_0x477ce0,_0x3f1a6e){if(_0x477ce0['id']===_0x3f1a6e)return _0x477ce0;return{..._0x477ce0,'id':_0x3f1a6e};}function createAssistantChunkEvent(_0x5e779e,_0x483494){const _0x13938a={_0x24f04c:0x253,_0x26fc02:0x21b,_0x48e810:0x178,_0x36fb96:0x2a9,_0x431e26:0x281,_0x3206e3:0x279,_0x163568:0x1d3,_0xf5438c:0x20d,_0x4b2722:0x16f,_0x20c129:0x1e5,_0x1d81ff:0x207,_0x4f5e1c:0x23c,_0x15b75c:0x245,_0x2679df:0x211,_0x14397d:0x1ee,_0xfa1102:0x1f2,_0x390f78:0x1ca,_0x2802b9:0xed,_0x2753e3:0x178},_0x57554c={_0x48d78c:0x5ed},_0x2ec767={_0x6b69a9:0x194,_0x14a9d5:0x9f};function _0xcd8631(_0x3e687c,_0x5ab440,_0x2aacfd,_0x7e2dc5){return _0x22e785(_0x3e687c-_0x2ec767._0x6b69a9,_0x5ab440-_0x2ec767._0x14a9d5,_0x7e2dc5- -0x1cb,_0x2aacfd);}if(_0x5e779e[_0x3454ca(-0x237,-0x1a8,-_0x13938a._0x24f04c,-_0x13938a._0x26fc02)]!=='content_delta')return void 0x0;if(_0x5e779e[_0xcd8631(0x13a,0x14a,0x1f6,_0x13938a._0x48e810)]===void 0x0)return void 0x0;function _0x3454ca(_0x56ac2b,_0x48a75c,_0x20f98,_0x152ecb){return _0x58fa56(_0x56ac2b-0xb5,_0x152ecb- -_0x57554c._0x48d78c,_0x20f98-0x1d5,_0x48a75c);}return{'type':_0x3454ca(-_0x13938a._0x36fb96,-_0x13938a._0x431e26,-0x228,-_0x13938a._0x3206e3),'index':_0x5e779e[_0xcd8631(_0x13938a._0x163568,_0x13938a._0xf5438c,_0x13938a._0x4b2722,_0x13938a._0x20c129)]??0x0,'messageId':_0x483494,'chunk':{'type':_0xcd8631(_0x13938a._0x1d81ff,_0x13938a._0x4f5e1c,_0x13938a._0x15b75c,_0x13938a._0x2679df),'index':_0x5e779e[_0x3454ca(-_0x13938a._0x14397d,-_0x13938a._0xfa1102,-_0x13938a._0x390f78,-0x22b)]??0x0,'text':_0x5e779e[_0xcd8631(0x179,0x1bb,_0x13938a._0x2802b9,_0x13938a._0x2753e3)]}};}function createToolUseChunkEvent(_0x59302b,_0x2d5b3f){const _0x5a10e5={_0x25703c:0x255,_0x47d0be:0x2ba,_0x3de90c:0x136,_0x58d246:0x1a3,_0x29e487:0x210,_0x395234:0x2ad,_0x3cfa36:0x310,_0x57e356:0x170,_0x40e1fb:0x194,_0x54b984:0x222,_0x39c897:0x240,_0xbcb08f:0x250},_0x4e4d06={_0xa898f9:0x1ed,_0x47f595:0x16b};function _0xf00e64(_0x2481f5,_0x9fdab,_0x16911e,_0x3809e7){return _0x58fa56(_0x2481f5-0x55,_0x3809e7- -0x1a0,_0x16911e-0x3,_0x16911e);}if(_0x59302b['type']!==_0x5d17d6(-0x2f8,-0x2a7,-_0x5a10e5._0x25703c,-_0x5a10e5._0x47d0be))return void 0x0;function _0x5d17d6(_0x127e39,_0x1c37f6,_0xcbdaf9,_0x3d28dc){return _0x58fa56(_0x127e39-_0x4e4d06._0xa898f9,_0x3d28dc- -0x5fd,_0xcbdaf9-_0x4e4d06._0x47f595,_0x1c37f6);}return{'type':_0x5d17d6(-0x329,-0x34f,-0x34e,-0x2e3),'index':_0x59302b['index']??0x0,'messageId':_0x2d5b3f,'chunk':{'type':_0xf00e64(0x21a,0x185,_0x5a10e5._0x3de90c,_0x5a10e5._0x58d246),'id':_0x59302b['id']??'','index':_0x59302b[_0x5d17d6(-0x1ef,-0x25c,-_0x5a10e5._0x29e487,-0x23b)]??0x0,..._0x59302b[_0x5d17d6(-0x2e3,-_0x5a10e5._0x395234,-_0x5a10e5._0x3cfa36,-0x2c9)]!==void 0x0?{'name':_0x59302b[_0xf00e64(_0x5a10e5._0x57e356,0x181,0x12f,_0x5a10e5._0x40e1fb)]}:{},..._0x59302b[_0xf00e64(_0x5a10e5._0x54b984,0x216,_0x5a10e5._0x39c897,_0x5a10e5._0xbcb08f)]!==void 0x0?{'inputDelta':_0x59302b[_0xf00e64(0x1d9,0x2ae,0x286,0x250)]}:{}}};}function createReasoningChunkEvent(_0x28f47a,_0xa307a0){const _0xd7493b={_0x5453ec:0x45a,_0x23dc61:0x52d,_0xc18bae:0x4a9,_0x5acd38:0x3a3,_0x356441:0x3d3,_0x21f397:0x420,_0x16de10:0x238,_0x4fae0e:0x4f2,_0x57288b:0x513,_0x4a8f6f:0x3c9,_0x22e8b8:0x42e,_0x133728:0x3c9,_0x3a0768:0x199,_0x4f7f92:0x150,_0x20af9b:0x137,_0x88908b:0x434,_0x5542bd:0x4b2,_0x146f2a:0x481,_0x34b673:0x409,_0x29adfd:0x3b5,_0x476f2a:0x4a6,_0x4e2e24:0x43c,_0x1d0ea0:0x1e1,_0x20a0e0:0x1cb,_0x23cb09:0x412,_0x4a1e6f:0x3dc,_0xb359d8:0x446,_0x393162:0x37c,_0x36296e:0x1e1,_0x6d0713:0x3ee,_0x1af660:0x3fa,_0x16069b:0x465,_0x2d49ab:0x49a,_0x22bc63:0x459,_0x427dd0:0x40e,_0x3d75b5:0x445,_0x438e88:0x464,_0x2647e0:0x4b3,_0xca6262:0x222,_0xd0243b:0x18b,_0x176c46:0x3b2},_0x2649c5={_0x63512:0x11a,_0x2dbd19:0x1c2,_0x490e19:0xd6},_0x53c15e={_0x1a53b5:0x96,_0x52a143:0x142,_0x4c1b5b:0xe9};function _0x5e22b0(_0x279804,_0x277f74,_0x3740a5,_0x525b1f){return _0x22e785(_0x279804-_0x53c15e._0x1a53b5,_0x277f74-_0x53c15e._0x52a143,_0x525b1f-_0x53c15e._0x4c1b5b,_0x279804);}function _0x25e8d8(_0x3d7acb,_0x5230a2,_0x5ac226,_0x151714){return _0x58fa56(_0x3d7acb-_0x2649c5._0x63512,_0x5ac226- -_0x2649c5._0x2dbd19,_0x5ac226-_0x2649c5._0x490e19,_0x151714);}switch(_0x28f47a[_0x5e22b0(_0xd7493b._0x5453ec,_0xd7493b._0x23dc61,0x4ff,_0xd7493b._0xc18bae)]){case _0x5e22b0(_0xd7493b._0x5acd38,_0xd7493b._0x356441,_0xd7493b._0x21f397,0x42e):return{'type':_0x25e8d8(0x203,0x1ef,0x1bb,_0xd7493b._0x16de10),'index':_0x28f47a[_0x5e22b0(_0xd7493b._0x4fae0e,_0xd7493b._0x57288b,0x430,0x499)],'messageId':_0xa307a0,'chunk':{'type':_0x5e22b0(_0xd7493b._0xc18bae,_0xd7493b._0x4a8f6f,0x4a8,_0xd7493b._0x22e8b8),'index':_0x28f47a[_0x5e22b0(0x499,0x41a,0x41a,0x499)]??0x0,'thinking':_0x28f47a[_0x5e22b0(_0xd7493b._0x133728,0x450,0x40d,0x3d0)]??''},'text':_0x28f47a[_0x25e8d8(_0xd7493b._0x3a0768,_0xd7493b._0x4f7f92,_0xd7493b._0x20af9b,0x1a7)]??''};case'openai_reasoning_delta':return{'type':_0x5e22b0(_0xd7493b._0x88908b,_0xd7493b._0x5542bd,_0xd7493b._0x146f2a,0x454),'index':_0x28f47a[_0x5e22b0(_0xd7493b._0x34b673,0x3ea,_0xd7493b._0x29adfd,0x43c)],'messageId':_0xa307a0,'chunk':{'type':_0x5e22b0(0x3ed,0x429,0x3ec,0x3fa),'contentIndex':_0x28f47a[_0x5e22b0(_0xd7493b._0x476f2a,0x41e,0x4ba,_0xd7493b._0x4e2e24)]??0x0,'delta':_0x28f47a['delta']??'','itemId':_0x28f47a[_0x25e8d8(0x1a2,_0xd7493b._0x1d0ea0,_0xd7493b._0x20a0e0,0x1c5)]??'','outputIndex':_0x28f47a[_0x5e22b0(_0xd7493b._0x23cb09,0x42a,_0xd7493b._0x4a1e6f,_0xd7493b._0xb359d8)]??0x0},'text':_0x28f47a[_0x5e22b0(0x3a1,_0xd7493b._0x393162,0x409,0x3ee)]??''};case _0x25e8d8(0x259,0x25c,_0xd7493b._0x36296e,0x1de):return{'type':_0x5e22b0(_0xd7493b._0x6d0713,_0xd7493b._0x1af660,_0xd7493b._0x16069b,0x454),'index':_0x28f47a[_0x5e22b0(_0xd7493b._0x2d49ab,0x454,0x474,0x431)],'messageId':_0xa307a0,'chunk':{'type':'openai_reasoning_summary_delta','delta':_0x28f47a[_0x5e22b0(_0xd7493b._0x22bc63,_0xd7493b._0x427dd0,0x444,0x3ee)]??'','itemId':_0x28f47a[_0x5e22b0(0x3fd,0x3e7,_0xd7493b._0x3d75b5,_0xd7493b._0x438e88)]??'','outputIndex':_0x28f47a[_0x5e22b0(_0xd7493b._0x2647e0,0x404,0x3f6,0x446)]??0x0,'summaryIndex':_0x28f47a[_0x25e8d8(_0xd7493b._0xca6262,0x20a,0x198,_0xd7493b._0xd0243b)]??0x0},'text':_0x28f47a[_0x5e22b0(_0xd7493b._0x176c46,0x3aa,0x439,0x3ee)]??''};default:return void 0x0;}}function cloneToolResultChunkForPublication2(_0x35cc80){return structuredClone(_0x35cc80);}function cloneToolResultForPublication2(_0x25ec12){const _0x2a8858={_0x39f96b:0x139,_0x1bfeac:0x1a2,_0x233f2c:0xd3,_0x2f71e4:0xe6,_0x253bf2:0xd7,_0x3a4f78:0xed,_0x25bebf:0xac,_0x233c7f:0xad,_0x288c08:0x85},_0x29caf3={_0x1b60d0:0x447,_0x59d9e7:0xc8},_0x23ef48={_0x1118ba:0x49};function _0x3e9b56(_0xb55856,_0x200aa1,_0x5be515,_0x426f0e){return _0x22e785(_0xb55856-_0x23ef48._0x1118ba,_0x200aa1-0x42,_0x200aa1- -0x30b,_0x426f0e);}const _0x140b73=_0x25ec12[_0x591582(-_0x2a8858._0x39f96b,-_0x2a8858._0x1bfeac,-_0x2a8858._0x233f2c,-_0x2a8858._0x2f71e4)],_0x590833=_0x25ec12[_0x3e9b56(0xea,_0x2a8858._0x253bf2,0xc7,_0x2a8858._0x3a4f78)];function _0x591582(_0x4f2487,_0x1c25aa,_0x3e3065,_0x21e2c0){return _0x58fa56(_0x4f2487-0x121,_0x4f2487- -_0x29caf3._0x1b60d0,_0x3e3065-_0x29caf3._0x59d9e7,_0x3e3065);}const {chunks:_0x3f5875,..._0x3b8e11}=_0x25ec12;return{...structuredClone(_0x3b8e11),'callId':_0x140b73,'toolName':_0x590833,'chunks':_0x3f5875[_0x3e9b56(_0x2a8858._0x25bebf,_0x2a8858._0x233c7f,_0x2a8858._0x288c08,0xa9)](cloneToolResultChunkForPublication2)};}function isAbortedToolResult(_0x1575dc){const _0x4989ea={_0x617be2:0x33e,_0x37399e:0x36b,_0x82b3cf:0x3ae,_0xa6e7a6:0x525,_0x307848:0x478,_0x533c32:0x567},_0x583659={_0x380a1c:0x178},_0x5c8ba7={_0x368853:0x12f,_0x133853:0x31};function _0x499fb9(_0x31ac41,_0x50939d,_0x41ce28,_0x412526){return _0x22e785(_0x31ac41-_0x5c8ba7._0x368853,_0x50939d-_0x5c8ba7._0x133853,_0x41ce28-0x124,_0x50939d);}function _0x4ad65b(_0xa2a45c,_0x1b7c26,_0x101bcd,_0x3e3fdd){return _0x22e785(_0xa2a45c-_0x583659._0x380a1c,_0x1b7c26-0x94,_0x3e3fdd-0xb9,_0x101bcd);}return _0x1575dc['status']===_0x4ad65b(0x36f,_0x4989ea._0x617be2,_0x4989ea._0x37399e,_0x4989ea._0x82b3cf)&&_0x1575dc['structured'][_0x499fb9(_0x4989ea._0xa6e7a6,_0x4989ea._0x307848,0x4f7,_0x4989ea._0x533c32)]===!![];}async function executeModelRequest(_0x302e46,_0x15f3a1,_0x4d39b9,_0x586944,_0x3279f3,_0x1fcac1){const _0x345c2c={_0x2551f9:0x17e,_0x306ab6:0x14e,_0x389054:0x1c3,_0x382778:0x214,_0x461033:0x177,_0x1128eb:0x1d5,_0x3bf67a:0x15f,_0x24a361:0x8a,_0x373db0:0x43,_0x29a5c9:0x108,_0xd350eb:0xb0,_0x1be6a2:0x7f,_0x19cd18:0x11d,_0x2759d2:0x50,_0x247185:0xcb,_0xa61673:0xcd,_0x555d2d:0x140,_0x2e249a:0x193,_0x5bdb53:0x1eb,_0x4d7d89:0x187,_0x310beb:0x92,_0x56fd63:0xb5,_0x4a1699:0x90,_0x2d2ea1:0xde,_0x570635:0x163,_0x19899d:0xf3,_0x77f086:0x4b,_0x39a66c:0x1c2,_0x24f6c4:0x16d,_0x52791b:0xec,_0x3de7c3:0x6e,_0x405dc8:0xdc,_0x20b551:0x50,_0x3a6f97:0x26,_0x419bc2:0x184,_0x1b26f4:0x158,_0x520a5f:0x1ba,_0x1a7cfd:0x1e3,_0x44ece0:0x8f,_0x55a80a:0x6f,_0x3a9a76:0x9c,_0x5f3492:0xf4,_0x2ee2c5:0x188,_0x310b67:0x40,_0x5e6f0c:0x8,_0x29538d:0x192,_0x4d76a0:0x1aa,_0x5d3f04:0x171,_0x502406:0x1c6,_0x79d6ab:0x16e,_0x3de8c3:0x130,_0x192b5c:0x1a9,_0x4af31c:0x1c6,_0x199668:0x245,_0x3c1ab0:0x20a,_0x4ef080:0x116,_0x4f58be:0x1be,_0x1d0ae6:0xe8,_0x2a8c9b:0x206,_0x4ff33f:0x1dc,_0x3cc14e:0x1cf,_0x4c764e:0x1e8},_0xb25ddc={_0x44fe44:0xd};throwIfAborted(_0x15f3a1[_0x2a0f11(0x1c3,0x1e6,0x1fd,0x1ab)]);if(!_0x15f3a1[_0x53799e(0xc0,0x13f,0xf2,0xa2)]||!_0x4d39b9[_0x2a0f11(_0x345c2c._0x2551f9,0x19c,_0x345c2c._0x306ab6,0x1a6)])return await _0x4d39b9['complete'](_0x302e46,{'signal':_0x15f3a1[_0x2a0f11(_0x345c2c._0x389054,_0x345c2c._0x306ab6,_0x345c2c._0x382778,_0x345c2c._0x461033)]});let _0x4415d5;for await(const _0x20f809 of _0x4d39b9['stream'](_0x302e46,{'signal':_0x15f3a1[_0x2a0f11(0x1c3,0x166,0x24b,0x1e4)]})){throwIfAborted(_0x15f3a1['signal']);if(_0x20f809[_0x2a0f11(_0x345c2c._0x1128eb,0x1f8,0x1c0,_0x345c2c._0x3bf67a)]==='done'){_0x1fcac1[_0x2a0f11(0x1c6,0x247,0x22f,_0x345c2c._0x382778)][_0x2a0f11(0x124,0x18a,0xd9,0xad)]!==void 0x0&&_0x1fcac1['meta'][_0x53799e(0x9a,0x8a,0x87,_0x345c2c._0x24a361)]===void 0x0&&(_0x1fcac1[_0x2a0f11(0x1c6,0x16f,0x148,0x1bd)]['reasoningCompletedAt']=Date['now']());_0x4415d5=_0x20f809[_0x53799e(_0x345c2c._0x373db0,_0x345c2c._0x29a5c9,_0x345c2c._0xd350eb,_0x345c2c._0x1be6a2)];continue;}if(_0x20f809[_0x53799e(_0x345c2c._0x19cd18,0x57,0xd3,_0x345c2c._0x2759d2)]===_0x53799e(_0x345c2c._0x247185,_0x345c2c._0xa61673,0xbe,_0x345c2c._0x555d2d)){await emitEvent2(_0x586944[_0x2a0f11(_0x345c2c._0x2e249a,_0x345c2c._0x5bdb53,_0x345c2c._0x4d7d89,0x145)],{'type':'provider_stream_reset','assistantMessageId':_0x1fcac1[_0x53799e(_0x345c2c._0x310beb,_0x345c2c._0x56fd63,_0x345c2c._0x4a1699,_0x345c2c._0x2d2ea1)],'reasoningMessageId':_0x1fcac1[_0x2a0f11(0x17b,_0x345c2c._0x1128eb,_0x345c2c._0x570635,_0x345c2c._0x19899d)]},_0x3279f3),delete _0x1fcac1['meta'][_0x53799e(-_0x345c2c._0x77f086,-0x12,0x22,0x92)],delete _0x1fcac1[_0x2a0f11(0x1c6,_0x345c2c._0x39a66c,_0x345c2c._0x24f6c4,0x1ea)][_0x53799e(_0x345c2c._0x52791b,0xf0,0x87,_0x345c2c._0x3de7c3)];continue;}if(_0x20f809[_0x53799e(_0x345c2c._0x405dc8,0xfd,0xd3,_0x345c2c._0x20b551)]==='provider_retry'){await emitEvent2(_0x586944['onEvent'],{..._0x20f809,'assistantMessageId':_0x1fcac1[_0x53799e(0xe7,0x1b,0x90,_0x345c2c._0x3a6f97)]},_0x3279f3);continue;}const _0x1a7897=createReasoningChunkEvent(_0x20f809,_0x1fcac1[_0x2a0f11(0x17b,0x204,_0x345c2c._0x419bc2,0x157)]);if(_0x1a7897&&_0x1a7897['type']==='reasoning_chunk'&&_0x1a7897[_0x2a0f11(_0x345c2c._0x1b26f4,0x107,0x182,0x1ba)][_0x2a0f11(_0x345c2c._0x520a5f,0x1bb,_0x345c2c._0x1a7cfd,_0x345c2c._0x461033)]>0x0){_0x1fcac1['meta'][_0x53799e(0x51,_0x345c2c._0x44ece0,0x22,0x3e)]===void 0x0&&(_0x1fcac1[_0x53799e(_0x345c2c._0x55a80a,_0x345c2c._0x3a9a76,0xc4,0xe2)]['reasoningStartedAt']=Date[_0x2a0f11(0x171,_0x345c2c._0x5f3492,_0x345c2c._0x39a66c,_0x345c2c._0x2ee2c5)]());await emitEvent2(_0x586944[_0x53799e(0xca,_0x345c2c._0x310b67,0x91,_0x345c2c._0x5e6f0c)],_0x1a7897,_0x3279f3);continue;}const _0x11a726=createAssistantChunkEvent(_0x20f809,_0x1fcac1[_0x2a0f11(_0x345c2c._0x29538d,_0x345c2c._0x4d76a0,0x123,_0x345c2c._0x5d3f04)]);if(_0x11a726){_0x1fcac1[_0x2a0f11(_0x345c2c._0x502406,_0x345c2c._0x5d3f04,0x1ef,_0x345c2c._0x79d6ab)][_0x2a0f11(0x124,_0x345c2c._0x3de8c3,0x19b,0x163)]!==void 0x0&&_0x1fcac1['meta'][_0x2a0f11(0x189,0x141,_0x345c2c._0x192b5c,0x134)]===void 0x0&&(_0x1fcac1[_0x2a0f11(_0x345c2c._0x4af31c,_0x345c2c._0x199668,0x143,_0x345c2c._0x3c1ab0)][_0x2a0f11(0x189,_0x345c2c._0x4ef080,0x1ed,0x1e0)]=Date[_0x2a0f11(0x171,_0x345c2c._0x4f58be,_0x345c2c._0x1d0ae6,0x1d6)]());await emitEvent2(_0x586944[_0x2a0f11(_0x345c2c._0x2e249a,_0x345c2c._0x2a8c9b,_0x345c2c._0x4ff33f,_0x345c2c._0x3cc14e)],_0x11a726,_0x3279f3);continue;}const _0x1efa9c=createToolUseChunkEvent(_0x20f809,_0x1fcac1['assistantMessageId']);_0x1efa9c&&await emitEvent2(_0x586944['onEvent'],_0x1efa9c,_0x3279f3);}if(!_0x4415d5)throw new Error(_0x2a0f11(0x1c2,_0x345c2c._0x4c764e,0x22e,0x1df));function _0x2a0f11(_0x5be56b,_0x4f5626,_0x5c109e,_0x3a6239){return _0x58fa56(_0x5be56b-0x23,_0x5be56b- -0x1fd,_0x5c109e-_0xb25ddc._0x44fe44,_0x3a6239);}function _0x53799e(_0x464e91,_0x34f485,_0x2073e7,_0x4c9236){return _0x58fa56(_0x464e91-0xb,_0x2073e7- -0x2ff,_0x2073e7-0xbe,_0x4c9236);}return _0x4415d5;}function makeTurnGuards(_0x3e8aa3,_0x2b6232,_0xba38a2,_0x4c966a,_0x2b1121){return{async 'stage'(_0x5a80ca,_0xb53c62){return throwIfAborted(_0x3e8aa3),await runStage(_0x2b6232,_0x5a80ca,_0xb53c62,_0x4c966a);},async 'emit'(_0x443e34){throwIfAborted(_0x3e8aa3),await emitEvent2(_0xba38a2,_0x443e34,_0x2b1121);},async 'stageUnchecked'(_0x2f6de6,_0x4cbe9b){return await runStage(_0x2b6232,_0x2f6de6,_0x4cbe9b,_0x4c966a);},async 'emitUnchecked'(_0x42d4a4){await emitEvent2(_0xba38a2,_0x42d4a4,_0x2b1121);}};}async function runTurn(_0x3bcded,_0x356688){const _0x3d0706={_0x4ea545:0xe7,_0x530277:0x10d,_0x20ebd2:0x3ce,_0x527f17:0x157,_0x2cbf69:0xbb,_0x37ff14:0x422,_0x34e51d:0x3af,_0x210bfc:0x402,_0x1181ee:0x35a,_0x2872c8:0x361,_0x6b0b37:0x123,_0x46395d:0x40a,_0x45d5b3:0x1c7,_0x1eb394:0x24e,_0x24ea97:0x3d0,_0x361dd5:0x3ce,_0x1a3093:0x22a,_0x4f713:0x182,_0x2d66f1:0x176,_0x992e39:0x141,_0x4087ce:0x198,_0x249156:0xd2,_0x2f225d:0xf8,_0xb2943f:0xd7,_0x1e5fe2:0x425,_0x59132e:0x441,_0xd55ed4:0x48c,_0x362c4b:0x13a,_0x17db80:0xe6,_0x34a6a9:0x143,_0x3b0c42:0xf8,_0x4b27a9:0x39f,_0x33105b:0x197,_0x1e78d3:0xd4,_0x3b235d:0x90,_0x342f37:0x3f0,_0x33bada:0x41e,_0x377fb2:0x415,_0x254603:0x399,_0x3f0c7b:0x3e1,_0x2123a2:0x330,_0x5e2bf1:0x3d0,_0x111f8e:0x37f,_0x535f8c:0x2e8,_0x57e2ea:0x32e,_0x2c751e:0x33e,_0x14e2be:0x30d,_0x27a639:0xae,_0x1b6192:0x149,_0x3e1bc5:0x15d,_0x26352c:0x16e,_0x2b75fd:0x155,_0x46b19b:0x14b,_0x5529e5:0x1a8,_0x36f362:0xe4,_0x8ff4bc:0x178,_0x55db36:0x19e,_0x54437a:0x3c4,_0x800643:0x322,_0x39e476:0x172,_0x1082a7:0x3f6,_0x2f3793:0x3fe,_0x23f903:0x31d,_0x5cc257:0x167,_0x5b1b1a:0x199,_0x431f88:0x153,_0x38aac9:0x3ca,_0x1ecc37:0x389,_0x46c6f4:0x34d,_0x3c285b:0x1a9,_0x2d9e75:0x1d9,_0x1d18bc:0x379,_0x15f319:0x395,_0x4c3c8d:0x349,_0x2fd948:0x3cd,_0x15d3ef:0x338,_0x36f71c:0x365,_0x4437b4:0x3a5,_0x34e507:0x34e,_0x4538a1:0x132,_0x402685:0x19f,_0x205cca:0xea,_0x472b03:0x1aa,_0x224f02:0x124,_0xf892bf:0x340,_0x39cbc1:0x3ae,_0x23263e:0x397,_0x10e8ef:0x392,_0x3d0cda:0x184,_0x3b8e73:0x44b,_0x49ec4e:0x3f8,_0x24542a:0x11b,_0x575ca1:0x18c,_0x2a9c6b:0x146,_0x15db14:0x39b,_0x5dfc74:0x440,_0x4483a2:0x3c9,_0x46288b:0x3be,_0x6cf565:0x1dc,_0x819412:0x173,_0xb0d8ab:0x38c,_0x4cc512:0x371,_0x36d44a:0x373,_0x4131db:0x17e,_0x591ce4:0x128,_0x51f7d0:0xbf,_0x535d39:0x3aa,_0x224121:0x427,_0x3caaca:0x174,_0x3f3dcf:0x20a,_0xfd5e27:0x1ac,_0xb3d8a4:0x3fd,_0xde6925:0x43f,_0x22bea9:0x3d9,_0x2e2434:0x31b,_0x1e06c8:0x11c,_0x1e80ae:0x142,_0x34c0fc:0x1c8,_0x2f1f01:0x18a,_0x3146fd:0x242,_0xb75d08:0x3ec,_0x3c8135:0x357,_0x5b6de6:0x3cf,_0x586aca:0x3a1,_0x2d85e3:0x368,_0x1170ce:0x394,_0x16c86a:0x3a1,_0x2c9a57:0x3f4,_0x48bd8b:0x3f7,_0x118540:0x37c,_0x12c7f4:0x466,_0x1eeea4:0x421,_0x51f4a8:0x424,_0x39fe84:0x39d,_0x553183:0x14e,_0x168302:0x18f,_0x51e1f3:0x1a0,_0xe3fcbf:0x402,_0x101f26:0x3ee,_0x3ed6a1:0x3fe,_0x53387a:0x47e,_0xc48699:0x382,_0x580973:0x339,_0x130767:0x38d,_0x49aec2:0x450,_0x11ee3c:0x402,_0x3c8cb9:0x236,_0x89254f:0x1a1,_0x134d24:0x18f,_0x46cfa9:0x42c,_0x59b65d:0x3ba,_0x4c0aca:0x3a1,_0x20ccca:0x3b8,_0x16dd15:0x4b9,_0x1e4fcb:0x403,_0x5c2a88:0x93,_0x2e4f58:0xd3,_0xb9553e:0x46a,_0xc6b8fe:0x40a},_0xf253a8={_0x5569ff:0x3e,_0x3c6e13:0x8f,_0x34dce8:0x6f,_0x3a0de1:0x252,_0x491cda:0x289,_0x444fc9:0x174,_0x38641b:0x3b,_0x4e1eb5:0x47,_0x147c7e:0x10,_0xab4582:0xd0},_0x13fc21={_0x63b99a:0x1ad,_0x2e58b8:0xa0},_0x161e1c={_0x5416a0:0xf5,_0x57d79c:0x35},_0x1c4486={_0xbf63ab:0x287,_0x21e0ae:0x39c,_0x4d015b:0x312,_0x1b557a:0x36c,_0x4515ef:0x3b1,_0x4d8170:0x3a5,_0x1ab92f:0x17c,_0x5ed0a5:0x1d8,_0x1b58ec:0x18e,_0x55d9c1:0x2f6,_0x3f6152:0x34b,_0x1f99b4:0x1be,_0x3a14bd:0x214,_0x4eaebd:0x21e,_0x57a08b:0x28d,_0x2eafec:0x1a2,_0x1a1e88:0x273,_0x53fda2:0x345,_0x229d6a:0x38a,_0x2e2f4e:0x384},_0x2395c1={_0x43261d:0x8b},_0x400293={_0xe36eba:0x5c5},_0x5dc27f={_0x3c51f3:0x37,_0x30f249:0xe6,_0x43743e:0xfc,_0x33bef8:0x10d},_0x91261={_0x2bda65:0xa2,_0x582881:0x183},_0x5f307c=_0x356688[_0x102afd(-_0x3d0706._0x4ea545,-0x10d,-0x7f,-_0x3d0706._0x530277)],_0x1f54b3=_0x3bcded[_0x420d27(0x3c6,0x458,0x400,_0x3d0706._0x20ebd2)]??new AbortController()[_0x102afd(-0x113,-_0x3d0706._0x527f17,-0x12b,-_0x3d0706._0x2cbf69)],_0x5290c9=normalizeExecutionScope(_0x356688[_0x420d27(0x448,0x39e,0x3e2,0x39d)]),_0x5e06ad={'sessionId':_0x3bcded[_0x420d27(0x38a,_0x3d0706._0x37ff14,0x39d,_0x3d0706._0x34e51d)],'turnId':_0x3bcded[_0x102afd(-0x1d5,-0x1fb,-0x15d,-0x174)],'system':normalizeSystem(_0x3bcded[_0x420d27(_0x3d0706._0x210bfc,_0x3d0706._0x1181ee,0x39b,_0x3d0706._0x2872c8)]),'messages':(_0x3bcded[_0x102afd(-0x172,-_0x3d0706._0x6b0b37,-0x1fb,-0x174)]??[])[_0x420d27(0x393,0x438,_0x3d0706._0x46395d,0x39d)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x356688[_0x102afd(-_0x3d0706._0x45d5b3,-_0x3d0706._0x1eb394,-0x153,-0x1af)]===_0x420d27(_0x3d0706._0x24ea97,_0x3d0706._0x361dd5,0x440,0x3f2)?_0x356688[_0x102afd(-0x1c7,-0x1f8,-0x18a,-_0x3d0706._0x1a3093)]():_0x356688[_0x102afd(-_0x3d0706._0x45d5b3,-0x232,-0x176,-_0x3d0706._0x4f713)]},_0x1dde8b=makeExtensionContext(_0x5e06ad,_0x5290c9),_0x13f83d={'sessionId':_0x5e06ad[_0x102afd(-_0x3d0706._0x2d66f1,-_0x3d0706._0x992e39,-0x195,-_0x3d0706._0x4087ce)],'turnId':_0x5e06ad[_0x102afd(-0x1d5,-0x229,-0x231,-0x16d)],'state':_0x5e06ad,'executionScope':_0x5290c9,'signal':_0x1f54b3,..._0x356688[_0x102afd(-_0x3d0706._0x249156,-0xc3,-_0x3d0706._0x2f225d,-_0x3d0706._0xb2943f)]?{'askUser':_0x356688[_0x420d27(_0x3d0706._0x1e5fe2,0x445,_0x3d0706._0x59132e,_0x3d0706._0xd55ed4)]}:{}},{stage:_0x147d80,emit:_0x227a44,stageUnchecked:_0x24de35,emitUnchecked:_0x2b5895}=makeTurnGuards(_0x1f54b3,_0x356688[_0x102afd(-0xef,-_0x3d0706._0x362c4b,-_0x3d0706._0x17db80,-0x10d)],_0x356688[_0x102afd(-_0x3d0706._0x34a6a9,-_0x3d0706._0x3b0c42,-0x10c,-0x14f)],_0x1dde8b,_0x13f83d),_0x2be1fe=async(_0x1c21a9,_0x14fe65)=>{const _0x2cc084={_0x243e5b:0x62,_0x4635cf:0xd1};function _0x13210c(_0x529caa,_0x4801d7,_0x30dc22,_0xd487f5){return _0x102afd(_0xd487f5-_0x91261._0x2bda65,_0x4801d7-0xff,_0x4801d7,_0xd487f5-_0x91261._0x582881);}function _0xfe4852(_0x4dd790,_0x427b37,_0x26d3bf,_0x1f8c06){return _0x420d27(_0x4dd790-_0x2cc084._0x243e5b,_0x427b37-_0x2cc084._0x4635cf,_0x1f8c06-0xbb,_0x4dd790);}const _0x5ec1cd=_0x14fe65?{..._0x1dde8b,'turnMeta':_0x14fe65}:_0x1dde8b;await _0x356688[_0x13210c(-0x3a,-0x97,-_0x5dc27f._0x3c51f3,-0x4d)][_0x13210c(-_0x5dc27f._0x30f249,-0x195,-_0x5dc27f._0x43743e,-_0x5dc27f._0x33bef8)]('afterMessageAppend',structuredClone(_0x1c21a9),_0x5ec1cd);};function _0x420d27(_0x3fe3df,_0x7292ab,_0x346652,_0x15f45d){return _0x22e785(_0x3fe3df-0xe1,_0x7292ab-0x171,_0x346652-0x52,_0x15f45d);}const _0xf47038=_0x44798d=>{if(_0x44798d?.[_0x3721fc(_0x1c4486._0xbf63ab,_0x1c4486._0x21e0ae,_0x1c4486._0x4d015b,_0x1c4486._0x1b557a)]===_0x3721fc(_0x1c4486._0x4515ef,0x3fa,_0x1c4486._0x4d8170,0x410))return{'submissionOrigin':_0x2b7c8f(-_0x1c4486._0x1ab92f,-_0x1c4486._0x5ed0a5,-_0x1c4486._0x1b58ec,-0x190),..._0x44798d[_0x3721fc(_0x1c4486._0x55d9c1,0x3b2,0x364,_0x1c4486._0x3f6152)]===void 0x0?{}:{'subagentReport':structuredClone(_0x44798d['subagentReport'])}};function _0x2b7c8f(_0x338614,_0x51577a,_0x1c1ebb,_0x5b4041){return _0x420d27(_0x338614-0x179,_0x51577a-0x122,_0x338614- -_0x400293._0xe36eba,_0x5b4041);}if(_0x44798d?.['origin']===_0x2b7c8f(-0x21e,-_0x1c4486._0x1f99b4,-0x290,-_0x1c4486._0x3a14bd))return{'submissionOrigin':_0x2b7c8f(-_0x1c4486._0x4eaebd,-_0x1c4486._0x57a08b,-_0x1c4486._0x2eafec,-_0x1c4486._0x1a1e88),'senderAgentId':_0x44798d[_0x3721fc(_0x1c4486._0x53fda2,_0x1c4486._0x229d6a,_0x1c4486._0x2e2f4e,0x339)]};function _0x3721fc(_0x58dd6e,_0x1bdcf5,_0x1ce673,_0x35bc76){return _0x420d27(_0x58dd6e-0xae,_0x1bdcf5-_0x2395c1._0x43261d,_0x1ce673- -0xa4,_0x35bc76);}return void 0x0;},_0x2afdab=_0x156d16=>_0x156d16?.['origin']===_0x420d27(0x34b,0x321,0x3a7,0x36b)?{'senderAgentId':_0x156d16['senderAgentId']}:void 0x0;function _0x102afd(_0x599d46,_0x132fb6,_0x10975d,_0x137c3d){return _0x22e785(_0x599d46-0x50,_0x132fb6-0xe0,_0x599d46- -0x4c1,_0x10975d);}const _0x27f8c4=_0x5131a7=>typeof _0x5131a7===_0x102afd(-0x180,-0x1b7,-0x1fb,-0x112)&&_0x5131a7!==null&&_0x102afd(-0x192,-0x205,-0x1a0,-0x15a)in _0x5131a7&&_0x420d27(0x2f4,0x3a6,0x36f,0x349)in _0x5131a7,_0x126037=async _0x4c1ca2=>{if(!_0x3bcded['drainSteering'])return 0x0;const _0x95129e=await _0x3bcded[_0x437c14(0x12,-_0xf253a8._0x5569ff,_0xf253a8._0x3c6e13,_0xf253a8._0x34dce8)]();throwIfAborted(_0x1f54b3);if(_0x95129e[_0x9b75d4(0x2b7,_0xf253a8._0x3a0de1,0x212,_0xf253a8._0x491cda)]===0x0)return 0x0;await _0x4c1ca2?.();function _0x437c14(_0xf6c954,_0x102eb5,_0x450b3c,_0x14fa05){return _0x102afd(_0xf6c954-0x1af,_0x102eb5-_0x161e1c._0x5416a0,_0x450b3c,_0x14fa05-_0x161e1c._0x57d79c);}function _0x9b75d4(_0x392a4f,_0x566ace,_0x55aeb5,_0x4383ad){return _0x420d27(_0x392a4f-_0x13fc21._0x63b99a,_0x566ace-_0x13fc21._0x2e58b8,_0x566ace- -0x1a5,_0x392a4f);}for(const _0x20a879 of _0x95129e){const _0x35902a=_0x27f8c4(_0x20a879)?_0x20a879[_0x9b75d4(_0xf253a8._0x444fc9,0x1dc,0x173,0x207)]:_0x20a879,_0x30fc79=_0x27f8c4(_0x20a879)?_0x20a879['submission']:void 0x0,_0x232795=await _0x147d80(_0x437c14(_0xf253a8._0x38641b,-_0xf253a8._0x4e1eb5,_0xf253a8._0x147c7e,0x11),normalizeMessage(_0x35902a));throwIfAborted(_0x1f54b3),_0x5e06ad['messages'][_0x437c14(0xdb,0xa6,_0xf253a8._0xab4582,0x52)](_0x232795),await _0x2be1fe(_0x232795,_0xf47038(_0x30fc79)),await _0x227a44({'type':'user_message','message':_0x232795,..._0x2afdab(_0x30fc79)});}return _0x95129e['length'];};let _0x9d2b75=0x0;try{const _0x9efc2b=await _0x147d80(_0x420d27(0x37c,0x369,_0x3d0706._0x4b27a9,0x3e0),normalizeMessage(_0x3bcded['message']));_0x5e06ad[_0x102afd(-0x172,-0x145,-_0x3d0706._0x33105b,-0xfa)][_0x102afd(-_0x3d0706._0x1e78d3,-_0x3d0706._0x3b235d,-0xb7,-0x6a)](_0x9efc2b);_0x3bcded[_0x420d27(_0x3d0706._0x342f37,_0x3d0706._0x33bada,_0x3d0706._0x377fb2,_0x3d0706._0x254603)]!==!![]&&await _0x2be1fe(_0x9efc2b,_0xf47038(_0x3bcded[_0x420d27(0x306,_0x3d0706._0x3f0c7b,0x36f,_0x3d0706._0x2123a2)]));await _0x227a44({'type':_0x420d27(_0x3d0706._0x5e2bf1,0x3e9,_0x3d0706._0x111f8e,0x3b2),'message':_0x9efc2b,..._0x2afdab(_0x3bcded[_0x102afd(-0x1a4,-0x22c,-0x16c,-0x22d)])});while(!![]){throwIfAborted(_0x1f54b3),_0x9d2b75+=0x1;const _0x507ac4=createAssistantMessageId(_0x5e06ad[_0x420d27(_0x3d0706._0x535f8c,_0x3d0706._0x57e2ea,_0x3d0706._0x2c751e,_0x3d0706._0x14e2be)],_0x9d2b75),_0x23462a=createReasoningMessageId(_0x507ac4),_0xb37756={'model':_0x5f307c[_0x102afd(-0xe4,-_0x3d0706._0x27a639,-0x160,-0xe0)],'modelIdentity':_0x5f307c[_0x102afd(-_0x3d0706._0x1b6192,-_0x3d0706._0x3e1bc5,-_0x3d0706._0x26352c,-_0x3d0706._0x2b75fd)],..._0x5f307c[_0x102afd(-_0x3d0706._0x46b19b,-0x1b1,-_0x3d0706._0x5529e5,-_0x3d0706._0x36f362)]?{'provider':_0x5f307c[_0x102afd(-0x14b,-_0x3d0706._0x8ff4bc,-_0x3d0706._0x55db36,-0xf3)]}:{}};let _0x44fcae={'model':_0x5f307c['model'],..._0x5f307c[_0x420d27(0x381,0x33d,0x36d,0x380)]!==void 0x0?{'maxTokens':_0x5f307c[_0x420d27(0x355,_0x3d0706._0x54437a,0x36d,_0x3d0706._0x800643)]}:{},'system':structuredClone(_0x5e06ad['system']),'messages':structuredClone(_0x5e06ad[_0x102afd(-_0x3d0706._0x39e476,-0x116,-0x1ab,-0x124)]),'tools':_0x356688[_0x420d27(_0x3d0706._0x1082a7,0x40c,_0x3d0706._0x2f3793,0x448)][_0x102afd(-0x125,-0x11c,-0x1a3,-0xe6)](),'metadata':{'sessionId':_0x5e06ad[_0x420d27(0x347,_0x3d0706._0x23f903,0x39d,0x418)],'turnId':_0x5e06ad[_0x102afd(-0x1d5,-_0x3d0706._0x5cc257,-_0x3d0706._0x5b1b1a,-_0x3d0706._0x431f88)],'modelIdentity':_0x5f307c[_0x420d27(0x404,0x3ab,_0x3d0706._0x38aac9,0x430)],..._0x5f307c[_0x420d27(0x38a,0x357,_0x3d0706._0x1ecc37,0x3e9)]!==void 0x0?{'pricingProviderId':_0x5f307c[_0x420d27(_0x3d0706._0x46c6f4,0x3c6,0x389,0x359)]}:{}},..._0x356688[_0x102afd(-_0x3d0706._0x3c285b,-_0x3d0706._0x45d5b3,-_0x3d0706._0x2d9e75,-0x1ad)]?{'outputFormat':_0x356688[_0x420d27(0x326,_0x3d0706._0x1d18bc,0x36a,0x356)]}:{}};_0x44fcae=await _0x147d80(_0x420d27(_0x3d0706._0x15f319,0x33d,_0x3d0706._0x4c3c8d,_0x3d0706._0x2fd948),_0x44fcae);{const {pricingProviderId:_0x42eca4,..._0x34577b}=_0x44fcae[_0x102afd(-0x18c,-0x12d,-0x18c,-0x18f)];_0x44fcae={..._0x44fcae,'metadata':{..._0x34577b,..._0x5f307c[_0x420d27(0x3d8,_0x3d0706._0x15d3ef,0x389,_0x3d0706._0x36f71c)]!==void 0x0?{'pricingProviderId':_0x5f307c[_0x420d27(_0x3d0706._0x4437b4,0x40d,_0x3d0706._0x1ecc37,_0x3d0706._0x34e507)]}:{}}};}await _0x227a44({'type':_0x102afd(-_0x3d0706._0x4538a1,-_0x3d0706._0x402685,-_0x3d0706._0x205cca,-0xe2),'request':_0x44fcae});const _0x5caa2b=Date[_0x420d27(0x3df,0x336,0x3ae,0x387)]();_0xb37756[_0x102afd(-_0x3d0706._0x472b03,-0x1f7,-_0x3d0706._0x224f02,-0x177)]=_0x5caa2b;let _0x17e638=await executeModelRequest(_0x44fcae,_0x3bcded,_0x5f307c,_0x356688,_0x13f83d,{'assistantMessageId':_0x507ac4,'reasoningMessageId':_0x23462a,'meta':_0xb37756});const _0x66255e=Date[_0x420d27(0x3b6,_0x3d0706._0xf892bf,_0x3d0706._0x39cbc1,_0x3d0706._0x23263e)]();_0xb37756[_0x420d27(0x34f,0x315,_0x3d0706._0x10e8ef,0x35c)]=_0x66255e,_0x17e638=await _0x147d80(_0x102afd(-0x1c6,-0x206,-_0x3d0706._0x3d0cda,-0x15b),_0x17e638);_0x17e638[_0x420d27(0x3c3,_0x3d0706._0x3b8e73,_0x3d0706._0x49ec4e,0x3f8)]&&(_0x17e638={..._0x17e638,'providerState':{..._0x17e638[_0x102afd(-_0x3d0706._0x24542a,-0xce,-0x11e,-0x151)],'originModelIdentity':_0x5f307c['modelIdentity']}});_0x17e638=withEstimatedModelCost(_0x44fcae,_0x17e638);const _0x2e997d=Math[_0x102afd(-0x161,-0x127,-_0x3d0706._0x17db80,-_0x3d0706._0x575ca1)](0x0,_0x66255e-_0x5caa2b),_0x156a58={'version':0x1,'usage':structuredClone(_0x17e638[_0x102afd(-0x12e,-_0x3d0706._0x2a9c6b,-0xcf,-0xe7)]),'modelTimeMs':_0x2e997d},_0x29df61=_0x38a88e=>({..._0xb37756,'metrics':{..._0x156a58,'usage':structuredClone(_0x156a58['usage']),'completesRequest':_0x38a88e}});await _0x227a44({'type':_0x420d27(_0x3d0706._0x15db14,_0x3d0706._0x5dfc74,_0x3d0706._0x4483a2,_0x3d0706._0x46288b),'response':_0x17e638,'modelTimeMs':_0x2e997d}),_0x5e06ad[_0x102afd(-_0x3d0706._0x6cf565,-0x21d,-_0x3d0706._0x819412,-0x25b)]=_0x17e638;let _0x1088ad=await _0x147d80(_0x420d27(_0x3d0706._0xb0d8ab,0x38f,_0x3d0706._0x4cc512,_0x3d0706._0x36d44a),withMessageId(responseToAssistantMessage(_0x17e638),_0x507ac4));_0x1088ad=withMessageId(_0x1088ad,_0x507ac4);const _0x3e6942=getToolUseBlocks(_0x1088ad),_0x5ed2dc=await Promise[_0x102afd(-0x186,-0x16c,-_0x3d0706._0x4131db,-0x1b8)](_0x3e6942[_0x420d27(0x40b,0x3fd,_0x3d0706._0x46395d,0x383)](_0x5419a8=>_0x147d80(_0x102afd(-0xf3,-0xc1,-0x74,-0x10a),_0x5419a8)));_0x5ed2dc['length']>0x0&&(_0x1088ad=replaceToolUseBlocks(_0x1088ad,_0x5ed2dc));const _0x291b46=withMessageId(_0x1088ad,_0x507ac4);_0x1088ad=_0x291b46;const _0xceaa4b=createReasoningMessage(_0x1088ad),_0x472c69=createAssistantTextMessage(_0x1088ad),_0x29ee92=createToolUseMessage(_0x1088ad);_0xceaa4b&&await _0x227a44({'type':_0x102afd(-0xdb,-0x110,-_0x3d0706._0x591ce4,-_0x3d0706._0x51f7d0),'message':withMessageId(_0xceaa4b,_0x23462a)});_0x472c69&&await _0x227a44({'type':_0x420d27(0x3b4,0x3c2,_0x3d0706._0x535d39,_0x3d0706._0x224121),'message':withMessageId(_0x472c69,_0x507ac4)});_0x29ee92&&await _0x227a44({'type':_0x102afd(-0x1dd,-_0x3d0706._0x3caaca,-_0x3d0706._0x3f3dcf,-_0x3d0706._0xfd5e27),'message':withMessageId(_0x29ee92,_0x507ac4)});_0x5e06ad['messages'][_0x420d27(_0x3d0706._0xb3d8a4,0x3dc,_0x3d0706._0xde6925,0x42d)](_0x291b46);_0x5ed2dc['length']>0x0&&await _0x2be1fe(_0x291b46,_0x29df61(![]));for(const _0x4fa68c of _0x5ed2dc){await _0x227a44({'type':_0x420d27(_0x3d0706._0x22bea9,_0x3d0706._0x2e2434,0x353,0x338),'toolCall':structuredClone(_0x4fa68c)});}if(_0x5ed2dc[_0x102afd(-_0x3d0706._0x1e06c8,-0x130,-_0x3d0706._0x1e80ae,-0xf1)]===0x0){const _0x22f01b=await _0x126037(async()=>{await _0x2be1fe(_0x291b46,_0x29df61(![]));});if(_0x22f01b>0x0)continue;const _0x2d702c=await _0x147d80(_0x102afd(-_0x3d0706._0x34c0fc,-0x1ea,-_0x3d0706._0x2f1f01,-_0x3d0706._0x3146fd),_0x1088ad),_0x2289bb=withMessageId(_0x2d702c,_0x507ac4);return _0x5e06ad[_0x420d27(_0x3d0706._0xb75d08,_0x3d0706._0x3c8135,0x3ad,_0x3d0706._0x2123a2)]=_0x2289bb,_0x5e06ad[_0x420d27(0x353,_0x3d0706._0x5b6de6,_0x3d0706._0x586aca,_0x3d0706._0x2d85e3)][_0x5e06ad[_0x420d27(_0x3d0706._0x1170ce,0x3cc,_0x3d0706._0x16c86a,_0x3d0706._0x2c9a57)][_0x420d27(_0x3d0706._0x48bd8b,_0x3d0706._0x118540,0x3f7,_0x3d0706._0x1d18bc)]-0x1]=_0x2289bb,await _0x2be1fe(_0x2289bb,_0x29df61(!![])),await _0x2b5895({'type':'final_message','message':_0x2289bb}),throwIfAborted(_0x1f54b3),await _0x356688[_0x420d27(_0x3d0706._0x12c7f4,_0x3d0706._0x1eeea4,_0x3d0706._0x51f4a8,0x3c1)]['runObservers'](_0x420d27(0x355,_0x3d0706._0x39fe84,0x399,0x335),_0x5e06ad,_0x1dde8b),await _0x227a44({'type':_0x102afd(-_0x3d0706._0x553183,-_0x3d0706._0x168302,-0x15d,-_0x3d0706._0x51e1f3),'state':_0x5e06ad}),{'status':_0x420d27(_0x3d0706._0xe3fcbf,_0x3d0706._0x101f26,0x3ce,0x3c0),'finalMessage':_0x2289bb,'state':_0x5e06ad};}let _0x8379=await _0x356688[_0x420d27(0x44d,0x434,_0x3d0706._0x3ed6a1,_0x3d0706._0x53387a)]['executeCalls'](_0x5ed2dc,_0x13f83d);const _0x4a94ef=_0x8379[_0x420d27(_0x3d0706._0xc48699,_0x3d0706._0x1170ce,0x3ac,0x356)](isAbortedToolResult),_0x20d6af=_0x4a94ef?_0x24de35:_0x147d80,_0x1646ff=_0x4a94ef?_0x2b5895:_0x227a44;_0x8379=await Promise[_0x420d27(_0x3d0706._0x580973,0x3e4,_0x3d0706._0x130767,0x3c8)](_0x8379['map'](_0x28e54c=>_0x20d6af(_0x420d27(0x41a,0x3b5,0x43c,0x48a),_0x28e54c))),_0x5e06ad[_0x420d27(_0x3d0706._0x49aec2,_0x3d0706._0x11ee3c,0x409,0x3b1)]['push'](..._0x8379);for(const _0x7e9054 of _0x8379){await _0x1646ff({'type':_0x102afd(-0x1c3,-_0x3d0706._0x3c8cb9,-_0x3d0706._0x89254f,-0x1ea),'result':cloneToolResultForPublication2(_0x7e9054)});}const _0x1b9fc2=await _0x20d6af(_0x102afd(-0x15a,-0x109,-_0x3d0706._0x134d24,-0x105),createToolResultUserMessage(_0x8379));await _0x1646ff({'type':_0x420d27(_0x3d0706._0x46cfa9,0x35a,_0x3d0706._0x59b65d,0x3bd),'message':_0x1b9fc2}),_0x5e06ad[_0x420d27(0x3bc,0x3b5,_0x3d0706._0x4c0aca,0x420)][_0x420d27(_0x3d0706._0x20ccca,_0x3d0706._0x16dd15,_0x3d0706._0xde6925,_0x3d0706._0x1e4fcb)](_0x1b9fc2),await _0x2be1fe(_0x1b9fc2);if(_0x4a94ef)return{'status':'aborted','state':_0x5e06ad};await _0x126037();}}catch(_0x2d385c){if(!_0x1f54b3[_0x102afd(-0xee,-0xe2,-_0x3d0706._0x5c2a88,-_0x3d0706._0x2e4f58)])throw new TurnFailedError(_0x2d385c,_0x5e06ad);return{'status':_0x420d27(_0x3d0706._0xb9553e,0x465,0x425,_0x3d0706._0xc6b8fe),'state':_0x5e06ad};}}function createSessionId(){const _0x2f346f={_0x2b63e5:0x1d0,_0x377c2d:0x1f6,_0x267757:0x187,_0x35743a:0x19b,_0x226272:0x20d,_0xe8364f:0x96},_0x2b312a={_0x2ab1af:0x1df,_0x4f59d:0x9c,_0x156610:0x1af},_0x1c5674={_0x338b66:0x18};function _0x4928a2(_0x263350,_0x46490d,_0x1fd793,_0x74749b){return _0x58fa56(_0x263350-_0x1c5674._0x338b66,_0x46490d- -0x442,_0x1fd793-0x11f,_0x74749b);}function _0x26f739(_0x5b74c4,_0x146917,_0x144cf6,_0x25be11){return _0x22e785(_0x5b74c4-_0x2b312a._0x2ab1af,_0x146917-_0x2b312a._0x4f59d,_0x25be11- -_0x2b312a._0x156610,_0x5b74c4);}return _0x26f739(_0x2f346f._0x2b63e5,0x1e3,_0x2f346f._0x377c2d,_0x2f346f._0x267757)+Date[_0x26f739(0x1f7,_0x2f346f._0x35743a,_0x2f346f._0x226272,0x1ad)]()+'-'+Math[_0x4928a2(-0xe6,-0x86,-0x7c,-_0x2f346f._0xe8364f)]()['toString'](0x10)['slice'](0x2,0xa);}function createTurnId(_0x185f53){const _0x207a3a={_0x1595f6:0x18e,_0xe17ea6:0x147,_0x1eeb7f:0x12f},_0x1bb51c={_0x1572c4:0x44a};function _0x24b3e7(_0x5b2dba,_0x1a55d0,_0x34ed7f,_0xb21d77){return _0x22e785(_0x5b2dba-0x152,_0x1a55d0-0xc7,_0x34ed7f- -_0x1bb51c._0x1572c4,_0xb21d77);}return _0x24b3e7(-0xf4,-_0x207a3a._0x1595f6,-_0x207a3a._0xe17ea6,-_0x207a3a._0x1eeb7f)+_0x185f53;}function createDefaultMessage(_0x99e4ca){if(_0x99e4ca===void 0x0)return void 0x0;return normalizeUserInput(_0x99e4ca);}function normalizeUserInput(_0x1254e6){const _0x20dd46={_0x38cb69:0x5c9,_0x3f33e5:0x4bb,_0x36f257:0x4a6,_0x2d1254:0x49f},_0x4e95b0={_0x57dae9:0x6a},_0x2dbd4b={_0x50393d:0x5a,_0x1cbaa4:0x12a};function _0x47f01b(_0x10ca16,_0x492366,_0x4f33da,_0x302d90){return _0x22e785(_0x10ca16-_0x2dbd4b._0x50393d,_0x492366-_0x2dbd4b._0x1cbaa4,_0x10ca16-0x14f,_0x4f33da);}function _0x5b120c(_0x23e8f5,_0x3b4de9,_0x2f0a2b,_0x5aaaea){return _0x22e785(_0x23e8f5-_0x4e95b0._0x57dae9,_0x3b4de9-0x1f2,_0x23e8f5- -0x485,_0x5aaaea);}if(typeof _0x1254e6===_0x47f01b(0x541,0x4d9,_0x20dd46._0x38cb69,0x4c6))return{'role':'user','content':[{'type':_0x47f01b(0x492,_0x20dd46._0x3f33e5,_0x20dd46._0x36f257,_0x20dd46._0x2d1254),'text':_0x1254e6}]};return normalizeMessage(_0x1254e6);}function isTaggedSteeringInput(_0x5f1c40){const _0x53a57e={_0xec1de2:0x42d,_0x58c0b9:0x3f2,_0x97bba5:0x40a,_0x3aff40:0x354,_0x329f0e:0x3e1},_0x2a3221={_0x485c1d:0xaf},_0x38a842={_0x1a7d2f:0x125};function _0x15317f(_0x2e6989,_0xdb501d,_0x27cb4b,_0x421580){return _0x58fa56(_0x2e6989-0x1c7,_0x2e6989- -_0x38a842._0x1a7d2f,_0x27cb4b-0xec,_0x421580);}function _0x34f71e(_0x413ac7,_0x5b0d86,_0x3afc6c,_0x4ba9c6){return _0x22e785(_0x413ac7-0x103,_0x5b0d86-0x1a6,_0x413ac7-_0x2a3221._0x485c1d,_0x5b0d86);}return typeof _0x5f1c40==='object'&&_0x5f1c40!==null&&_0x34f71e(0x3de,_0x53a57e._0xec1de2,0x452,_0x53a57e._0x58c0b9)in _0x5f1c40&&_0x34f71e(0x3cc,_0x53a57e._0x97bba5,_0x53a57e._0x3aff40,_0x53a57e._0x329f0e)in _0x5f1c40;}function resolveChatModel(_0x395fe9){const _0x4128b5={_0x30707c:0xad,_0x37c0ac:0x46,_0x54c0b8:0x28,_0x373467:0x1c7,_0x326c2c:0x1f4,_0x4d02af:0x264,_0x4d7810:0x17b,_0x463e2f:0x1e1},_0x463c56={_0x8265b8:0x28,_0x328249:0x3a6},_0xeca469={_0x212cbd:0x12b};if(!_0x395fe9[_0x4172ad(0xd,_0x4128b5._0x30707c,_0x4128b5._0x37c0ac,-_0x4128b5._0x54c0b8)])throw new Error(_0x4669a6(-_0x4128b5._0x373467,-_0x4128b5._0x326c2c,-_0x4128b5._0x4d02af,-0x18b));function _0x4669a6(_0x2fd38f,_0x4320b0,_0x3a04a9,_0x1980f2){return _0x58fa56(_0x2fd38f-_0xeca469._0x212cbd,_0x4320b0- -0x567,_0x3a04a9-0x9c,_0x2fd38f);}function _0x4172ad(_0x4756d1,_0x41185a,_0x2f8a1b,_0x45a503){return _0x58fa56(_0x4756d1-_0x463c56._0x8265b8,_0x2f8a1b- -_0x463c56._0x328249,_0x2f8a1b-0x6d,_0x4756d1);}return _0x395fe9[_0x4669a6(-0x188,-_0x4128b5._0x4d7810,-_0x4128b5._0x463e2f,-0x18a)];}function normalizeExecutionScope2(_0x432634){const _0x4509aa={_0x53a3c9:0x292,_0x44da6d:0x26f,_0x5ab27f:0x2a},_0x33306b={_0x5f158d:0x128};function _0x44074e(_0xe7cb87,_0xc470e0,_0x3425dc,_0x46ab8d){return _0x58fa56(_0xe7cb87-0x14f,_0x46ab8d- -0x433,_0x3425dc-0xb7,_0xe7cb87);}function _0x1d6ee9(_0x38a299,_0x2d8783,_0x5d7f85,_0x50a89b){return _0x22e785(_0x38a299-_0x33306b._0x5f158d,_0x2d8783-0x1c1,_0x38a299- -0x5f,_0x2d8783);}return{'agentId':_0x432634?.[_0x1d6ee9(_0x4509aa._0x53a3c9,0x2a9,0x308,_0x4509aa._0x44da6d)]??'assistant','toolCallPath':[..._0x432634?.[_0x44074e(-0x6a,-_0x4509aa._0x5ab27f,-0xc7,-0x93)]??[]]};}function createRegistry(_0x3b268b){const _0x4f38c1={_0x577a9f:0x138,_0x36bdb0:0x482,_0x4560c3:0x440,_0x576837:0x421},_0x1fb008={_0x2fc3c4:0x1ae,_0x4799e8:0x13b},_0x176996={_0x4e2c1:0x2c8,_0x194587:0x1d8};function _0x472d2e(_0x51ec36,_0x167a6f,_0x305e39,_0x2a0f6b){return _0x58fa56(_0x51ec36-0x16b,_0x305e39- -_0x176996._0x4e2c1,_0x305e39-_0x176996._0x194587,_0x2a0f6b);}function _0x1e0a6c(_0x55a2dc,_0x3f02e1,_0x1a084a,_0x20c258){return _0x22e785(_0x55a2dc-_0x1fb008._0x2fc3c4,_0x3f02e1-_0x1fb008._0x4799e8,_0x20c258-0xa8,_0x55a2dc);}if(_0x3b268b[_0x472d2e(_0x4f38c1._0x577a9f,0x11e,0x11c,0x19f)])return _0x3b268b[_0x1e0a6c(0x4f8,0x4a4,0x4a3,0x47a)];const _0x4d229f=createExtensionRegistry(),_0x3905c5=_0x3b268b[_0x1e0a6c(0x3fd,_0x4f38c1._0x36bdb0,_0x4f38c1._0x4560c3,_0x4f38c1._0x576837)]??[];for(const _0x7af288 of _0x3905c5){_0x4d229f['register'](_0x7af288);}return _0x4d229f;}var Agent=class{[_0x58fa56(0x396,0x3ea,0x394,0x425)];[_0x58fa56(0x420,0x397,0x3f4,0x330)];[_0x58fa56(0x3a2,0x394,0x316,0x32f)];[_0x22e785(0x342,0x2c6,0x34b,0x372)];[_0x58fa56(0x3a4,0x361,0x3b8,0x36c)];[_0x58fa56(0x41a,0x402,0x380,0x48a)];['turnIndex'];constructor(_0x12ad2f={}){const _0x164774={_0x367c91:0x29a,_0x168127:0x2f4,_0x43098f:0xb5,_0x5f4cfc:0x2c,_0x3cec0f:0x147,_0x2b044a:0x296,_0x32ef8a:0x258,_0xc6eccf:0x22d,_0x233126:0x1d2,_0x574e8d:0x1f5,_0x2a5fe1:0x212,_0xcb1ebc:0x123,_0x142bf8:0xa8,_0x542282:0xd4,_0x1e026b:0x267,_0x3f3cbe:0x30f,_0x51335b:0x2a9,_0x50b915:0x23c},_0x48c259={_0x1a3553:0x42e},_0x22cd0a={_0x325683:0x189},_0x489294={_0x21150b:0x56},_0x411dad={_0x1584cf:0x75,_0x4af4b8:0x0,_0x105756:0x5e5};function _0x43c93e(_0x2f5c85,_0x48eee2,_0x606125,_0x38336e){return _0x22e785(_0x2f5c85-_0x411dad._0x1584cf,_0x48eee2-_0x411dad._0x4af4b8,_0x48eee2- -_0x411dad._0x105756,_0x2f5c85);}this[_0x43c93e(-0x28c,-_0x164774._0x367c91,-0x240,-_0x164774._0x168127)]=_0x12ad2f['sessionId']??createSessionId(),this['turnIndex']=0x0,this[_0x214436(-_0x164774._0x43098f,-0x56,_0x164774._0x5f4cfc,-0x71)]=_0x12ad2f[_0x43c93e(-0x2f4,-0x2a6,-0x2c9,-0x253)]??'',this[_0x214436(-_0x164774._0x3cec0f,-0xdf,-0x102,-0x8a)]=(_0x12ad2f[_0x43c93e(-0x2ea,-_0x164774._0x2b044a,-0x226,-0x31f)]??[])[_0x43c93e(-_0x164774._0x32ef8a,-_0x164774._0xc6eccf,-0x200,-_0x164774._0x233126)](normalizeMessage),this[_0x43c93e(-0x1d8,-_0x164774._0x574e8d,-0x1cb,-_0x164774._0x2a5fe1)]=createDefaultMessage(_0x12ad2f['message']),this[_0x214436(-_0x164774._0xcb1ebc,-0xac,-_0x164774._0x142bf8,-_0x164774._0x542282)]=createAgentMetrics({'getContextWindowLimit':_0x12ad2f[_0x43c93e(-0x1f3,-0x277,-0x257,-0x2e8)]});const _0x400a32=_0x12ad2f[_0x43c93e(-0x2b8,-_0x164774._0x1e026b,-0x240,-0x28f)],_0x15cca2=async(_0x215d53,_0x4f0ef7)=>{const _0x92c1e2={_0x353bc5:0x58d};function _0x4a9b1a(_0x456cc8,_0x3973cd,_0x4b5c29,_0x6fab33){return _0x43c93e(_0x4b5c29,_0x456cc8-0x146,_0x4b5c29-_0x489294._0x21150b,_0x6fab33-0x120);}function _0x468741(_0x432099,_0x4e38d0,_0x344627,_0x144313){return _0x214436(_0x144313,_0x432099-_0x92c1e2._0x353bc5,_0x344627-0xfe,_0x144313-0x177);}this[_0x4a9b1a(-0x11d,-0x110,-0x14b,-_0x22cd0a._0x325683)][_0x468741(0x4ad,0x4d7,0x4e0,0x435)](_0x215d53),await _0x400a32?.(_0x215d53,_0x4f0ef7);},_0x3bdd4f=createRegistry(_0x12ad2f),_0x1a3663=createInternalToolRuntime(_0x12ad2f['tools']??[],{'onEvent':_0x15cca2,'onToolCall':_0x12ad2f['onToolCall'],'registry':_0x3bdd4f,'beginProgramTrace':_0x12ad2f[_0x43c93e(-0x31c,-0x2a9,-0x291,-_0x164774._0x3f3cbe)]});function _0x214436(_0x327bbf,_0x271ead,_0x30683a,_0x4bbcc3){return _0x22e785(_0x327bbf-0x95,_0x271ead-0x121,_0x271ead- -_0x48c259._0x1a3553,_0x327bbf);}this['deps']={'registry':_0x3bdd4f,'chatModel':resolveChatModel(_0x12ad2f),'toolRuntime':_0x1a3663,'askUser':_0x12ad2f['askUser'],'onEvent':_0x15cca2,'sessionDir':_0x12ad2f['sessionDir'],'outputFormat':_0x12ad2f['outputFormat'],'executionScope':normalizeExecutionScope2(_0x12ad2f['executionScope']),'beginProgramTrace':_0x12ad2f[_0x43c93e(-0x229,-_0x164774._0x51335b,-_0x164774._0x50b915,-0x2e0)]};}get[_0x22e785(0x328,0x360,0x33f,0x2fb)](){return this['_systemPrompt'];}[_0x22e785(0x357,0x433,0x3b2,0x439)](_0x54a901=[]){const _0x357dce={_0x2581aa:0x27,_0x537d96:0x39,_0x3d9f6b:0x166},_0x30e61d={_0x19f968:0x13e,_0x2b220e:0x258},_0x398e2c={_0x2f80b9:0x18c,_0x141383:0x34c};function _0x1f0f49(_0x1ec10c,_0x41a062,_0x198d04,_0x337384){return _0x22e785(_0x1ec10c-_0x398e2c._0x2f80b9,_0x41a062-0x168,_0x337384- -_0x398e2c._0x141383,_0x41a062);}function _0x30d2c6(_0x2d2422,_0xe23cf6,_0x1dd525,_0xe59a4e){return _0x58fa56(_0x2d2422-_0x30e61d._0x19f968,_0xe59a4e- -_0x30e61d._0x2b220e,_0x1dd525-0x1e0,_0x2d2422);}this[_0x1f0f49(_0x357dce._0x2581aa,_0x357dce._0x537d96,0x9e,0x39)]['toolRuntime'][_0x30d2c6(0x159,0x1ca,_0x357dce._0x3d9f6b,0x16c)](_0x54a901);}[_0x22e785(0x2db,0x307,0x346,0x2fa)](){const _0x5c9330={_0x1575ea:0x278,_0x528c19:0x3f8,_0x48500f:0x439},_0x5c9e88={_0x3412a6:0xa0},_0x1e6952={_0x27bca1:0x12f};function _0x28ed73(_0x1be4c9,_0x4eccf8,_0x1fb204,_0x4cc443){return _0x22e785(_0x1be4c9-_0x1e6952._0x27bca1,_0x4eccf8-0x1eb,_0x1fb204- -0xe8,_0x4eccf8);}function _0x2fd62a(_0x1f5e58,_0x71b628,_0x147a88,_0x4ee8f8){return _0x58fa56(_0x1f5e58-0x15e,_0x71b628-_0x5c9e88._0x3412a6,_0x147a88-0x3a,_0x147a88);}return this['deps'][_0x28ed73(0x27d,_0x5c9330._0x1575ea,0x2c4,0x2a2)][_0x2fd62a(_0x5c9330._0x528c19,0x44e,0x458,_0x5c9330._0x48500f)]();}[_0x58fa56(0x33c,0x375,0x302,0x2f7)](_0x16eec8,_0xc17200={}){const _0x3734c1={_0x10720e:0x37,_0x445163:0xd,_0x4b7802:0x27f,_0x18ad25:0x272,_0x45f160:0x1f5},_0x19f679={_0xbc2b26:0x559},_0x5143b7={_0x15a2ec:0x1c8};function _0x3c8c2e(_0xfd65d3,_0x340016,_0x231a67,_0x2a60f0){return _0x58fa56(_0xfd65d3-0x60,_0x340016- -0x421,_0x231a67-_0x5143b7._0x15a2ec,_0xfd65d3);}function _0x14f8e4(_0x18bb9e,_0x1ead3d,_0x58e332,_0x51ecac){return _0x58fa56(_0x18bb9e-0x23,_0x51ecac- -_0x19f679._0xbc2b26,_0x58e332-0x18a,_0x1ead3d);}this[_0x3c8c2e(-0x5a,-_0x3734c1._0x10720e,_0x3734c1._0x445163,-0xb3)]=_0x16eec8,_0xc17200['resetMessages']===!![]&&(this[_0x14f8e4(-0x222,-_0x3734c1._0x4b7802,-0x1a2,-0x1f8)]=[],this[_0x14f8e4(-_0x3734c1._0x18ad25,-0x268,-_0x3734c1._0x45f160,-0x25d)]=0x0);}['setSessionId'](_0x3449a4){this['sessionId']=_0x3449a4;}[_0x58fa56(0x32a,0x39d,0x374,0x3e5)](_0x337dfa){const _0x190281={_0x433686:0x1cc,_0x18f8dc:0x1be,_0x2bedf6:0x19f},_0x5f0016={_0x26b0af:0x1bf,_0x4828fb:0x555};function _0xd199bc(_0x41fb1e,_0x57e4cc,_0x3add68,_0x3d32ab){return _0x58fa56(_0x41fb1e-_0x5f0016._0x26b0af,_0x3add68- -_0x5f0016._0x4828fb,_0x3add68-0x118,_0x41fb1e);}this[_0xd199bc(-_0x190281._0x433686,-0x1d4,-_0x190281._0x18f8dc,-_0x190281._0x2bedf6)]['chatModel']=_0x337dfa;}async['send'](_0x303199=this['defaultMessage'],_0x42bd08={}){const _0x47032b={_0x22da0e:0x149,_0x309603:0x11f,_0x4ede75:0x181,_0x27b62d:0x221,_0x541a27:0x1b8,_0x18d3b8:0x14f,_0x2997d0:0x165,_0x3485e6:0x16c,_0x3ac4e2:0x15d,_0x3df07b:0xf9,_0x3699c9:0x16e,_0x41d476:0x1cc,_0x31ccdb:0x234,_0x3ca182:0x22a,_0x39cc9b:0x235,_0xb29fdb:0x1bc,_0x38934b:0x17e,_0x5442f2:0x22d,_0x5b7f2f:0x1b0,_0x286871:0x160,_0x254574:0x142,_0x41d40e:0x1a9,_0x582e35:0x1db,_0xe40c:0x266,_0x4ae27e:0x1a3,_0x5ea5d2:0x154,_0x252410:0x1e8,_0x2a0988:0x18b,_0x269f2c:0x1dc,_0xf387ee:0x153,_0x17a658:0xd9,_0xd53db:0x12e,_0x18356f:0x1ac,_0x15cc10:0x1f9,_0x8a7f9e:0x198},_0x56debc={_0x5a6b98:0x7c},_0x25f3ef={_0x2409d8:0x1e7};function _0x2ffef9(_0x12c83f,_0x228c2b,_0x307e7b,_0x4e9dac){return _0x58fa56(_0x12c83f-0xe,_0x12c83f- -_0x25f3ef._0x2409d8,_0x307e7b-0x27,_0x4e9dac);}if(!_0x303199)throw new Error(_0x2ffef9(_0x47032b._0x22da0e,_0x47032b._0x309603,_0x47032b._0x4ede75,0x1ba));this[_0x5f4d74(-_0x47032b._0x27b62d,-0x1b7,-_0x47032b._0x541a27,-0x1bc)]+=0x1;const _0x2eb1b3=_0x42bd08[_0x2ffef9(_0x47032b._0x18d3b8,0x1a4,0x1bd,_0x47032b._0x2997d0)];function _0x5f4d74(_0x20d4e6,_0x3b2c20,_0x4c6c96,_0xa930bc){return _0x22e785(_0x20d4e6-0x3f,_0x3b2c20-_0x56debc._0x5a6b98,_0x20d4e6- -0x50b,_0x3b2c20);}try{const _0x222659=await runTurn({'sessionId':this['sessionId'],'turnId':createTurnId(this['turnIndex']),'streaming':_0x42bd08[_0x5f4d74(-0x12c,-0xc0,-0xc8,-_0x47032b._0x3485e6)],'signal':_0x42bd08[_0x5f4d74(-_0x47032b._0x3ac4e2,-_0x47032b._0x3df07b,-0x1e1,-_0x47032b._0x3699c9)],'system':this[_0x5f4d74(-_0x47032b._0x41d476,-_0x47032b._0x31ccdb,-_0x47032b._0x3ca182,-_0x47032b._0x39cc9b)],'messages':this[_0x5f4d74(-_0x47032b._0xb29fdb,-_0x47032b._0x38934b,-_0x47032b._0x5442f2,-0x245)],'message':normalizeUserInput(_0x303199),..._0x42bd08['transientInput']===!![]?{'transientInput':!![]}:{},..._0x42bd08['submission']===void 0x0?{}:{'submission':_0x42bd08['submission']},..._0x2eb1b3?{'drainSteering':async()=>(await _0x2eb1b3())[_0x2ffef9(0x1e3,0x244,0x161,0x259)](_0x2cf6f4=>isTaggedSteeringInput(_0x2cf6f4)?{'input':normalizeUserInput(_0x2cf6f4[_0x5f4d74(-0x1dc,-0x1f6,-0x1fa,-0x196)]),'submission':_0x2cf6f4[_0x5f4d74(-0x1ee,-0x1c9,-0x1ff,-0x1d8)]}:normalizeUserInput(_0x2cf6f4))}:{}},this[_0x2ffef9(_0x47032b._0x5b7f2f,_0x47032b._0x286871,_0x47032b._0x254574,0x1e9)]);return this['messages']=_0x222659[_0x5f4d74(-0x18b,-0x173,-_0x47032b._0x41d40e,-0x14e)]['messages'][_0x2ffef9(0x1e3,0x21d,_0x47032b._0x582e35,_0x47032b._0xe40c)](normalizeMessage),_0x222659;}catch(_0x4f0bbc){if(_0x4f0bbc instanceof TurnFailedError){this[_0x2ffef9(0x17a,_0x47032b._0x4ae27e,_0x47032b._0x5ea5d2,_0x47032b._0x252410)]=synthesizeMissingToolResults(_0x4f0bbc[_0x5f4d74(-_0x47032b._0x2a0988,-0x1fd,-_0x47032b._0x309603,-_0x47032b._0x269f2c)]['messages'][_0x5f4d74(-_0x47032b._0xf387ee,-_0x47032b._0x17a658,-_0x47032b._0xd53db,-0x15c)](normalizeMessage));throw _0x4f0bbc[_0x2ffef9(_0x47032b._0x18356f,_0x47032b._0x15cc10,0x17c,_0x47032b._0x8a7f9e)];}throw _0x4f0bbc;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,closeBoundNestedToolExecution,drainBoundNestedToolPersistence,commitBoundToolExecutionTerminalState,createInternalToolRuntime,createExtensionRegistry,ModelUsageOverflowError,emptyModelUsageTotals,isModelUsageTotals,isSubagentReportMeta,addModelUsageTotals,modelUsageTotalsEqual,modelUsageTotalsFromSnapshot,modelUsageTotalsFromHistory,createAgentMetrics,runTurn,Agent};function _0x22cd(){const _0x51f2c1=['mJu3odCZngHcz2XwvW','DhvYBLn0yxj0zwrbDa','B3v0Chv0rM9YBwf0','CMvXDwvZDgvKtMfTzq','zxH0zxjUywXvC2fNzq','Bwf4vg9Rzw5Z','zhjHAw5qzxjZAxn0zw5Jzq','C3vIBwLZC2LVBG','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','yMvMB3jLqxnZAxn0yw50qxbWzw5K','DhjHy2u','AxnbCNjHEq','BMfTzq','vw5RBM93BIb0B29SoIa','zhjHAw5tDgvLCMLUzW','BwvZC2fNzq','CMvZB2X2zq','sw52ywXPzcbLEhrLCM5HBcbTB2rLBcb1C2fNzsb0B3rHBhm','CMvNAxn0zxi','Dg9VBf9VDxrWDxrFy2H1BMS','DMfSDwu','ntvLCxLmt2y','ywrKrxzLBNrmAxn0zw5LCG','DxnLCL9TzxnZywDL','BwLZC2LUz0HPC3rVCMLJywXnB2rLBenHBgXdB3vUDa','Aw5WDxq','ywX3yxLZlwnVBMzPCM0','Dg9VBf91C2vFzgvSDge','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','Dg90ywXnB2rLBfrPBwvnCW','igLZig91DcbVzIbVCMrLCJSGzxHWzwn0zwqG','Bwv0ywrHDge','C2vZC2LVBI0','ChjPy2LUz1bYB3zPzgvYswq','CMvHza','Dg9VBf9YzwPLy3rLza','AgLZDg9YAwnHBe1LDhjPy3ndB21WBgv0zq','ywXS','yMvNAw5qCM9NCMfTvhjHy2u','CMvZDwX0','Dg9VBenHBgXjza','C3LZDgvTuhjVBxb0','DhvYBKnVBxbSzxrLzef0','B2jQzwn0','C3rHz2u','Dgv4Da','zMfPBgvK','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','z2v0vg9VBhm','ywz0zxjuDxjUq29TCgXLDgu','C3vTBwfYEuLUzgv4','C3LZDgvT','tMvZDgvKihrVB2WGy2fSBcbZzxf1zw5Jzsa','C2vZC2LVBKLK','B3jKzxi','B25vC2vYtwvZC2fNzq','CMvJB3jKrxzLBNq','BwvZC2fNzxm','Dg9VBenHBgXdB3vUDa','ywrK','Dg90ywXszwfZB25PBMDuB2TLBNm','y29UDgvUDeLUzgv4','y3vTDwXHDgL2zvvZywDL','ywDLBNq','oIbLEhbLy3rLzcbHCNjHEq','ChjVz3jHBs1HyM9YDgvK','yxnZAxn0yw50x21LC3nHz2u','CMvXDwLYzwq','C29Tzq','zMLUywXnzxnZywDL','BM93','B3v0Chv0sw5KzxG','DhjPBq','DMfSDwvZ','Bwf4','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','yxnZAxn0yw50x2nODw5R','C2v0u3LZDgvTuhjVBxb0','B3jPz2LU','mtjiq3DSwvq','CMvHC29UAw5NtwvZC2fNzuLK','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','C3rYzwfT','C2vXDwvUy2u','CMvHC29UAw5Nx2nODw5R','ndLxre9OAfC','yM9VBgvHBG','z2v0q29UDgv4DfDPBMrVD0XPBwL0','oIbLEhbLy3rLzcbVyMPLy3q','tMvZDgvKihrVB2WGy2fSBcbHBMqGzgvMAw5PDgLVBIbUyw1LCYbTDxn0ig1HDgnOihrOzsbYzxf1zxn0zwqGBMfTzq','Dg90ywXpDxrWDxruB2TLBNm','zM9YrwfJAa','DhvYBL9JB21WBgv0zq','CMvHC29UAw5Nq29TCgXLDgvKqxq','ChjVz3jHBs1PBNrLCM1LzgLHDgu','ChjVDMLKzxi','Bw9KzwXFCMvZCg9UC2u','Bw9KzwXjzgvUDgL0Eq','zxH0zw5ZAw9UCW','zxHLy3v0zunHBgXZ','AxrLBuLK','y29TCgXLDgvK','yxnZAxn0yw50twvZC2fNzuLK','B25fDMvUDa','mJi3nte4Dev2ze5o','C3rHDgu','y2f1C2u','Bwv0CMLJCW','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','AM9PBG','zgvWCW','D3jPDgu','y2fWywjPBgL0AwvZ','CgvYBwLZC2LVBKnSyxnZ','sw52ywXPzcb0B29SigLUChv0igf0ia','vg9VBev4zwn1DgLVBKvYCM9Y','C2v0q2HHDe1VzgvS','mJu2odG4mdz3z09pzwG','y2XVC2u','Dg9VBenHBgXqyxrO','Bw9KzwXFCMvXDwvZDa','zxHLy3v0Aw9Uu2nVCgu','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','C2v0','DxnHz2u','y29UDgv4DfDPBMrVD0XPBwL0','zxzLCNK','oIbLEhbLy3rLzcbIB29SzwfU','CNvUswq','CMvXDwvZDa','AgfZt3DU','y2f0y2G','DhvYBLvZywDL','BgLZDfrVB2Xty2HLBwfZ','CMvZCg9UC2u','y29TBwL0vgvYBwLUywXtDgf0zq','zMLSDgvY','Dg9VBenHBgW','zgvSzxrL','Dg9VBa','ywrKAxrPB25HBfbYB3bLCNrPzxm','oNjLyxnVBMLUzW','BgvUz3rO','ChjVDMLKzxjtDgf0zq','AxnuzxjTAw5HBfn0yxrLq29TBwL0DgvK','Aw5JBhvKzxm','B3v0Chv0vg9Rzw5Z','CMfUzg9T','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','Dg9VBfj1BNrPBwu','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','C2LNBMfS','B2jZzxj2zxi','Aw5KzxG','Bwv0yq','C2v0vg9VBhm','CMvTB3zLrxzLBNrmAxn0zw5LCG','mtKWotqYmhrTz3DYCq','vg9VBfj1BNrPBwvjBMzYyxn0CNvJDhvYzuvYCM9Y','C3vIywDLBNrszxbVCNq','Dg9VBfjLC3vSDhm','BwfW','oIbLEhbLy3rLzcbUDw1Izxi','nZCWmZmXu3HMAvnu','Dw5RBM93BL90B29S','Bw9KzwXdywXSq291BNq','yw1VDw50vxnKvgLJA3m','y29UDgvUDa','BMv4Da','DhLWzq','CMvHC29UAw5Nvg9Rzw5Z','y29TCgXLDgvZuMvXDwvZDa','DhjHBNnPzw50sw5WDxq','Aw5WDxruB2TLBNm','oIbLEhbLy3rLzcbZDhjPBMC','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','zw5HyMXLza','ChjVCgvYDgLLCW','mtjlzgTbEeG','Dg90ywXjBNb1DfrVA2vUCW','ywn0Aw9U','nJGZnJG1DwT2B1zX','B25uB29Sq2fSBa','yMvMB3jLvg9VBev4zwn1DgLVBG','CMvXDwvZDenVDw50','oIbLEhbLy3rLzcbVBMuGB2yG','mtbSDhnAq3e','CMvNAxn0CNK','ywjVCNrLza','C3rYDwn0DxjLza','yw55t2y','C2vUzgvYqwDLBNrjza','DgvYBwLUywW','x3n5C3rLBvbYB21WDa','yxjYyxK','y2HHDe1VzgvS','C2L6zq','y29UDgvUDf9KzwX0yq','Bw9KzwW','Aw5WDxrezwX0yq','C3rYzwfTAw5N','y2H1BMS','CNvU','Dg9VBe5HBwu','zxHLy3v0zq','zMLUza','Dg9VBf91C2u','CMvHC29UAw5Nx21LC3nHz2u','Dg9VBf9ZDgfYDgvK','Dg90ywXdB3n0vxnKvgLJA3m','CMvQzwn0','ywz0zxjuB29SuMvZDwX0','ChjVz3jHBsbLEgvJDxrPB24GD2fZigfIB3j0zwq','z2v0','ChvZAa','zNvUy3rPB24','yxnRvxnLCG','zgvMyxvSDe1LC3nHz2u','Dg90ywXuB2TLBNm','C3rYAw5N','ugfYzw50ihrVB2WGzxHLy3v0Aw9UihnLDhrSzwq','CMvWB3j0zwrdB3n0q2fSBenVDw50','zMfPBa','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','y29VCMrPBMf0B3i','Bw9KzwXuAw1Ltxm','Dg9VBf91C2vFBwvZC2fNzq','BgfZDfjLC3bVBNnL','Dg9VBhncEu5HBwu','DgHPBMTPBMC','CMvHC29U','zNjLzxPL','DhvYBKLUzgv4','zw51Bq','DhvYBKLK','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','tw9KzwWGDxnHz2uGDg90ywWGB3zLCMzSB3C','DgHLBG','oMfZC2LZDgfUDdO','ywDLBNrjza','BNvTyMvY','A2LUza','zxn0Aw1HDgvKq29ZDa','zxjYB3i','yxnZAxn0yw50','yMvMB3jLtw9KzwXszxf1zxn0','ywjVCNq','yMvMB3jLrMLUywXpDxrWDxq','C2vZC2LVBKrPCG','ywz0zxjnB2rLBfjLC3bVBNnL','y2fSBeLK','ywXSu2v0DgXLza','Dg9VBf9Yzxn1Bhq','uhjVz3jHBq','Dg9VBf9JB21WBgv0zwq','Dg9VBf9JywXS','q2fUBM90ihjLz2LZDgvYihrLCM1PBMfSig9IC2vYDMvYici','DhvYBI0','CNvUvhjHBNnMB3jTzxjZ','zgvSDge','C29YDa','zgvZy3jPChrPB24','Dg9VBf91C2vFy2H1BMS','C3rYAw5NAwz5','CMvWB3j0zwrdB3n0','C3rHDhvZ','BwLZC2LUz01VzgvSq2fSBenVDw50','B3v0Chv0','nujgt1vPva','CMvHC29UAw5Nu3rHCNrLzef0','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','CNvUt2jZzxj2zxjZ','mtmXmJmXmKfnBNnyDG','DhjHBNnMB3jTzxi','ChjVz3jHBs1YzxnVDxjJzs1SAw1PDa'];_0x22cd=function(){return _0x51f2c1;};return _0x22cd();}