@nuvin/agent-core 0.0.0-rc.1 → 0.0.0-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x577caa,_0xbd6c48){const _0xbe9bca={_0x2a9c64:0x1de,_0x8f2e8d:0x19b,_0x334e5c:0x169,_0x3b16bf:0xcc,_0x4266a7:0xa6,_0xf34f54:0x342,_0x321a6a:0x36c,_0x205a27:0x277,_0x39819d:0x253,_0x360a6f:0x4d,_0x4bc086:0x10e,_0x197a0b:0x16f,_0x27c6f0:0x38a,_0x3e6665:0x3b3},_0x1b603b={_0xc73f8d:0x11},_0x23f295={_0x10a783:0x1b8},_0x5006e2=_0x577caa();function _0x524ec2(_0x13db8b,_0xa55f55,_0x3b4347,_0x414e97){return _0x3920(_0x414e97-_0x23f295._0x10a783,_0xa55f55);}function _0x3853a8(_0x1ffba1,_0x3e62c8,_0x5e4054,_0x8de3f6){return _0x3920(_0x5e4054- -_0x1b603b._0xc73f8d,_0x8de3f6);}while(!![]){try{const _0x35e580=parseInt(_0x3853a8(0x1bb,_0xbe9bca._0x2a9c64,_0xbe9bca._0x8f2e8d,_0xbe9bca._0x334e5c))/0x1*(-parseInt(_0x3853a8(0xfb,_0xbe9bca._0x3b16bf,0x146,0x1c4))/0x2)+parseInt(_0x3853a8(-0x2,0x10,_0xbe9bca._0x4266a7,0x168))/0x3+parseInt(_0x524ec2(0x28c,0x3cd,_0xbe9bca._0xf34f54,0x327))/0x4+-parseInt(_0x524ec2(0x3c6,_0xbe9bca._0x321a6a,0x3bb,0x32e))/0x5+-parseInt(_0x524ec2(0x1c7,_0xbe9bca._0x205a27,_0xbe9bca._0x39819d,0x253))/0x6+-parseInt(_0x3853a8(0x1a8,_0xbe9bca._0x360a6f,_0xbe9bca._0x4bc086,_0xbe9bca._0x197a0b))/0x7+parseInt(_0x524ec2(0x443,0x384,_0xbe9bca._0x27c6f0,_0xbe9bca._0x3e6665))/0x8;if(_0x35e580===_0xbd6c48)break;else _0x5006e2['push'](_0x5006e2['shift']());}catch(_0x2dbafa){_0x5006e2['push'](_0x5006e2['shift']());}}}(_0xb3ca,0x5a118));import{toOpenAiResponsesRequest}from'../chunk-U2BLX7Y5.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-C6OLKGP6.js';import{addAbortListener,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE='anthropic-messages-stream';function parseToolInput(_0x4a0030){const _0x405dc3={_0x2e5e88:0x44e,_0xe9196f:0x443};function _0x3df144(_0x51e660,_0x59ad13,_0x2576ed,_0x47168c){return _0x3920(_0x59ad13-0x2eb,_0x2576ed);}try{return JSON[_0x3df144(0x3f2,_0x405dc3._0x2e5e88,_0x405dc3._0xe9196f,0x3a1)](_0x4a0030);}catch{return _0x4a0030;}}function resolveReasoningVisibility(_0x187dc8){const _0x122583={_0x56b8e0:0x8d,_0x23af57:0x136,_0x55372d:0xab,_0x46b398:0x90,_0x3cb5d7:0x44},_0x3d6545={_0x39cfce:0xb7};function _0x1c0850(_0x75d43f,_0x45d21c,_0x380614,_0x2a3aef){return _0x3920(_0x2a3aef- -0x1a3,_0x380614);}function _0x517e95(_0xd9fa58,_0x4fb76d,_0x48a4fb,_0x8e34f2){return _0x3920(_0x8e34f2- -_0x3d6545._0x39cfce,_0x48a4fb);}return _0x187dc8[_0x1c0850(_0x122583._0x56b8e0,0x28,0xbe,0x4d)]?.[_0x1c0850(0xe,-_0x122583._0x23af57,-0x3e,-_0x122583._0x55372d)]??_0x1c0850(0x5e,-0xb,_0x122583._0x46b398,_0x122583._0x3cb5d7);}function isUserVisibleThinking(_0x28f6fa){const _0x125f14={_0xc1cc21:0x40,_0x53f03c:0x171,_0x2f949b:0x21c,_0x45f31e:0x28d},_0x54fe43={_0x38af7c:0x164};function _0x2dfdf4(_0x5cc831,_0x557f16,_0xb8c2a6,_0x233534){return _0x3920(_0x5cc831-_0x54fe43._0x38af7c,_0xb8c2a6);}const _0xc631e2=resolveAnthropicThinkingConfig(_0x28f6fa[_0x4e3228(-_0x125f14._0xc1cc21,-0xc2,-0x9,-_0x125f14._0x53f03c)]);function _0x4e3228(_0x1fdf2e,_0x1b6062,_0x25684d,_0x1f391c){return _0x3920(_0x1b6062- -0x2b2,_0x25684d);}return _0xc631e2!==void 0x0&&_0xc631e2[_0x2dfdf4(0x266,0x21d,_0x125f14._0x2f949b,_0x125f14._0x45f31e)]!=='disabled'&&resolveReasoningVisibility(_0x28f6fa)==='user-visible';}function createAnthropicThinkingBody(_0x61bc8d){const _0x3e215f={_0x54526c:0x3ad,_0x167d35:0x25e,_0x3ee4d0:0x2bf,_0x5809fe:0x4b,_0x193cb6:0x1c,_0x3023c6:0x24e,_0x251dac:0x44,_0x153c74:0x3d,_0x2e6ac2:0x248,_0xc5a6aa:0x13f,_0x31f9ae:0xc0,_0x1896c6:0x1d,_0x5471d3:0x8d,_0x477418:0x41,_0x1d04c4:0x281,_0x1e442a:0x21b,_0x1ebe7a:0x352,_0x183fec:0x70,_0x1befd3:0x104,_0x392612:0x14e,_0x45fbff:0x28b,_0x573f48:0x2ec},_0x2d9cfa={_0x1b06d0:0xc1},_0x27595e=resolveAnthropicThinkingConfig(_0x61bc8d[_0x3d3021(0x464,0x302,_0x3e215f._0x54526c,0x2fd)]);function _0x3d3021(_0x37c44f,_0x53db77,_0x21d153,_0x4c5f59){return _0x3920(_0x21d153-0x1bd,_0x4c5f59);}if(!_0x27595e||_0x27595e[_0x3d3021(0x24c,_0x3e215f._0x167d35,_0x3e215f._0x3ee4d0,0x317)]===_0x2e811c(0xca,0x7c,_0x3e215f._0x5809fe,-_0x3e215f._0x193cb6))return{};const _0x1a51ed=_0x27595e[_0x3d3021(0x2f4,0x202,_0x3e215f._0x3023c6,0x1eb)]??(isUserVisibleThinking(_0x61bc8d)?_0x2e811c(-_0x3e215f._0x251dac,_0x3e215f._0x153c74,-0x9,-0x93):'omitted'),_0x18f512=_0x27595e[_0x3d3021(0x232,0x2f8,_0x3e215f._0x2e6ac2,0x1e2)]?{'anthropic-beta':_0x2e811c(_0x3e215f._0xc5a6aa,0xbe,_0x3e215f._0x31f9ae,0x8b)}:void 0x0;if(_0x27595e[_0x2e811c(_0x3e215f._0x1896c6,_0x3e215f._0x5471d3,_0x3e215f._0x477418,0x38)]===_0x3d3021(0x223,0x313,_0x3e215f._0x1d04c4,0x245))return{..._0x18f512?{'headers':_0x18f512}:{},'thinking':{'type':_0x3d3021(0x229,0x2c4,_0x3e215f._0x1d04c4,_0x3e215f._0x1e442a),'budget_tokens':_0x27595e[_0x3d3021(0x26d,0x28c,0x2a4,_0x3e215f._0x1ebe7a)],'display':_0x1a51ed}};function _0x2e811c(_0x1de073,_0x4426a9,_0x168c88,_0x1dec97){return _0x3920(_0x168c88- -_0x2d9cfa._0x1b06d0,_0x4426a9);}return{..._0x18f512?{'headers':_0x18f512}:{},'thinking':{'type':_0x2e811c(_0x3e215f._0x183fec,0x64,_0x3e215f._0x1befd3,_0x3e215f._0x392612),..._0x27595e[_0x3d3021(0x2c0,0x36d,0x2ec,_0x3e215f._0x45fbff)]?{'effort':_0x27595e[_0x3d3021(0x378,0x275,_0x3e215f._0x573f48,0x24c)]}:{},'display':_0x1a51ed}};}function toAnthropicRequestContent(_0x24889a){const _0x963811={_0x4316df:0x48c,_0x11ab76:0x53f,_0x3ca957:0x489,_0x5f27d9:0x464,_0x31df0a:0x4fb,_0xbefa51:0x530,_0x25d5aa:0x548,_0x1ea7b5:0x2b0,_0x3dedbb:0x1b6,_0x1986aa:0x1b1,_0x347e61:0x4e8,_0x259fdc:0x4a5,_0x3f63f4:0x525,_0xe6eace:0x5dd,_0x5d64ba:0x447,_0x276d20:0x471,_0x188554:0x476,_0x154ca1:0x1ee,_0x568ea0:0x225,_0xe6624c:0x1f9,_0x19faae:0x1c7,_0x405c1b:0x56e,_0x305677:0x52d,_0x16810a:0x64f,_0x344419:0x5d1,_0x269f68:0x115,_0x50c305:0x1c8};function _0x471c35(_0x202a2a,_0x1cbd19,_0x3a12fc,_0x1064b){return _0x3920(_0x1cbd19-0x132,_0x202a2a);}if(_0x24889a[_0x471c35(0x33c,0x285,0x311,0x269)]==='assistant'&&_0x24889a[_0x44ea8a(_0x963811._0x4316df,_0x963811._0x11ab76,0x3ed,_0x963811._0x3ca957)]?.[_0x44ea8a(_0x963811._0x5f27d9,0x585,0x4cd,_0x963811._0x31df0a)])return structuredClone(_0x24889a[_0x44ea8a(_0x963811._0xbefa51,0x45f,_0x963811._0x25d5aa,0x489)][_0x471c35(_0x963811._0x1ea7b5,0x24d,0x1a3,_0x963811._0x3dedbb)]);const _0x5ca368=[];for(const _0x5432a1 of normalizeContent(_0x24889a[_0x471c35(_0x963811._0x1986aa,0x1e3,0x1ad,0x1fb)])){if(_0x5432a1['type']===_0x44ea8a(0x50e,_0x963811._0x347e61,0x584,0x502))continue;if(_0x5432a1[_0x44ea8a(_0x963811._0x259fdc,0x4d4,0x4d6,0x4e2)]===_0x44ea8a(0x541,0x660,_0x963811._0x3f63f4,_0x963811._0xe6eace)){_0x5ca368[_0x44ea8a(0x4a3,_0x963811._0x5d64ba,_0x963811._0x276d20,_0x963811._0x188554)]({'type':_0x471c35(_0x963811._0x154ca1,_0x963811._0x568ea0,0x201,_0x963811._0xe6624c),'thinking':_0x5432a1[_0x471c35(0x1c9,0x225,0x299,_0x963811._0x19faae)],'signature':_0x5432a1[_0x44ea8a(_0x963811._0x405c1b,0x4da,0x50c,_0x963811._0x305677)]});continue;}if(_0x5432a1['type']===_0x44ea8a(0x5ca,0x556,_0x963811._0x16810a,_0x963811._0x344419)){_0x5ca368[_0x471c35(_0x963811._0x269f68,_0x963811._0x50c305,0x285,0x1d1)]({'type':'redacted_thinking','data':_0x5432a1['data']});continue;}_0x5ca368['push'](structuredClone(_0x5432a1));}function _0x44ea8a(_0x236079,_0x1f176c,_0x2dd654,_0x3b56e2){return _0x3920(_0x3b56e2-0x3e0,_0x1f176c);}return _0x5ca368;}function createAnthropicRequest(_0x38e6ee,_0x442cd2){const _0x63fb1={_0x24ce27:0x44e,_0x20bb89:0x3cc,_0x5b7310:0x130,_0x322192:0x310,_0x18a517:0x3d5,_0x272550:0x35d,_0xb1ad39:0x324,_0xb83b6:0x3de},_0x2dd259={_0x4073f3:0x28c,_0x4d3359:0x25f,_0x2c8334:0x316},_0x1107c6={_0x4bfc93:0x16c,_0x2d587c:0x53},_0x3122e1=toProviderModelRequest(_0x38e6ee),_0x483483=createAnthropicThinkingBody(_0x38e6ee);function _0xc778ad(_0x1fe495,_0x5b29e6,_0x589761,_0x1fca1d){return _0x3920(_0x5b29e6-0x231,_0x1fca1d);}function _0x5b44c3(_0x350943,_0x161bb9,_0x245a1e,_0x4fd1c8){return _0x3920(_0x245a1e- -0x246,_0x350943);}return{'accept':_0x442cd2?'text/event-stream':_0xc778ad(0x42a,0x392,_0x63fb1._0x24ce27,_0x63fb1._0x20bb89),'body':{..._0x3122e1,'messages':_0x38e6ee[_0x5b44c3(-0xf4,-0x138,-_0x63fb1._0x5b7310,-0xd8)][_0xc778ad(_0x63fb1._0x322192,0x36c,_0x63fb1._0x18a517,_0x63fb1._0x272550)](_0x29969e=>{function _0x49f6c7(_0x515932,_0x3964c6,_0x3da86e,_0x5ac198){return _0x5b44c3(_0x5ac198,_0x3964c6-0x155,_0x3964c6- -_0x1107c6._0x4bfc93,_0x5ac198-_0x1107c6._0x2d587c);}return{'role':_0x29969e[_0x49f6c7(-_0x2dd259._0x4073f3,-_0x2dd259._0x4d3359,-_0x2dd259._0x2c8334,-0x2b2)],'content':toAnthropicRequestContent(_0x29969e)};}),..._0x483483['thinking']?{'thinking':_0x483483[_0xc778ad(0x315,_0x63fb1._0xb1ad39,0x2ef,_0x63fb1._0xb83b6)]}:{},..._0x442cd2?{'stream':!![]}:{}},..._0x483483['headers']?{'headers':_0x483483['headers']}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x4c7d9a,_0x2fe7d4){const _0xbef6e1={_0x12fa64:0xa2,_0x3e7b63:0x13e,_0x2584db:0x7,_0x297ef3:0x308,_0x11f019:0x30e,_0x3a8d07:0x380,_0x26fa62:0x3da,_0x3d0b57:0x53,_0x2bd7f5:0x58,_0x4d87c8:0x4d,_0x58a0b4:0x1e,_0x465e29:0x481,_0x245438:0x52b,_0x5dd326:0x92,_0x1cec90:0x120,_0x2ccc0d:0x5a,_0x4e5ccc:0x13c,_0x250ad7:0xaa,_0x2d851e:0x43d,_0x5c8501:0x345,_0x5cb559:0x3f9,_0x59dc5a:0x7c,_0x143a25:0x144,_0x534072:0x10e,_0x4df477:0x4e,_0x5ade95:0x142,_0x1bf2e4:0x492,_0x17e7b4:0x71,_0x4a5493:0x8a,_0x2e0b1a:0x54,_0x10c27c:0x344,_0x1cae8b:0x3b2,_0x215977:0x326,_0x8cfcf5:0x2bd,_0x116824:0x36b,_0x23faa3:0x10b,_0x17583c:0xa4,_0x385e47:0x78,_0x15b215:0x1b8,_0x3a41cb:0x3a0,_0x246315:0x406,_0x1f0fe2:0x44b,_0x3094ea:0x1c,_0x139acb:0x6,_0xb2d531:0x3d7,_0x159eab:0x43b},_0x21c413={_0x5a5934:0x1a4},_0x7d06ba=[],_0x498556=_0x4c7d9a['content']??[];let _0x4cadac=![];function _0x50fc98(_0x29ca00,_0x17727c,_0x3ecdd9,_0x1ec10a){return _0x3920(_0x3ecdd9-0x28d,_0x29ca00);}for(const _0xd2d348 of _0x498556){if(_0xd2d348[_0x4f5ef0(-_0xbef6e1._0x12fa64,-0x10c,-_0xbef6e1._0x3e7b63,_0xbef6e1._0x2584db)]==='thinking'){_0x4cadac=!![];isUserVisibleThinking(_0x2fe7d4)&&_0x7d06ba['push']({'type':'anthropic_thinking','thinking':_0xd2d348[_0x50fc98(_0xbef6e1._0x297ef3,_0xbef6e1._0x11f019,_0xbef6e1._0x3a8d07,0x313)],'signature':_0xd2d348[_0x50fc98(0x3fe,0x3c2,_0xbef6e1._0x26fa62,0x37f)]});continue;}if(_0xd2d348['type']===_0x4f5ef0(-_0xbef6e1._0x3d0b57,0x22,-0x33,-0x113)){_0x4cadac=!![];isUserVisibleThinking(_0x2fe7d4)&&_0x7d06ba[_0x4f5ef0(-0x10e,-0x146,-_0xbef6e1._0x2bd7f5,-0xf9)]({'type':_0x4f5ef0(_0xbef6e1._0x4d87c8,0x34,-_0xbef6e1._0x58a0b4,0xbe),'data':_0xd2d348[_0x50fc98(0x438,0x444,_0xbef6e1._0x465e29,_0xbef6e1._0x245438)]});continue;}if(_0xd2d348[_0x4f5ef0(-_0xbef6e1._0x12fa64,-_0xbef6e1._0x5dd326,-_0xbef6e1._0x1cec90,-0xfd)]===_0x4f5ef0(-0x86,-_0xbef6e1._0x2ccc0d,-_0xbef6e1._0x4e5ccc,-_0xbef6e1._0x250ad7)){_0xd2d348[_0x50fc98(0x378,0x428,0x3ab,0x2f5)][_0x50fc98(_0xbef6e1._0x2d851e,_0xbef6e1._0x5c8501,_0xbef6e1._0x5cb559,0x3a4)]>0x0&&_0x7d06ba[_0x4f5ef0(-0x10e,-0x63,-_0xbef6e1._0x59dc5a,-_0xbef6e1._0x143a25)](structuredClone(_0xd2d348));continue;}_0x7d06ba[_0x4f5ef0(-_0xbef6e1._0x534072,-0xe6,-_0xbef6e1._0x4df477,-_0xbef6e1._0x5ade95)](structuredClone(_0xd2d348));}function _0x4f5ef0(_0x5557ad,_0xc3253f,_0x81aabd,_0x4be465){return _0x3920(_0x5557ad- -_0x21c413._0x5a5934,_0xc3253f);}return{'id':_0x4c7d9a['id']??_0x50fc98(0x4a2,_0xbef6e1._0x1bf2e4,0x454,0x3c2)+Date[_0x4f5ef0(-0x4b,_0xbef6e1._0x17e7b4,-_0xbef6e1._0x4a5493,-_0xbef6e1._0x2e0b1a)](),'content':_0x7d06ba,'stopReason':_0x7d06ba['some'](_0x5b2f66=>_0x5b2f66[_0x50fc98(0x43a,0x449,0x38f,0x425)]===_0x50fc98(0x2d8,0x2e0,0x326,0x2fc))?_0x50fc98(_0xbef6e1._0x10c27c,_0xbef6e1._0x1cae8b,_0xbef6e1._0x215977,0x373):_0x4c7d9a['stop_reason']===_0x50fc98(_0xbef6e1._0x8cfcf5,_0xbef6e1._0x116824,0x326,0x34f)?_0x4f5ef0(-_0xbef6e1._0x23faa3,-_0xbef6e1._0x17583c,-_0xbef6e1._0x385e47,-_0xbef6e1._0x15b215):'end_turn','usage':{'inputTokens':_0x4c7d9a[_0x50fc98(_0xbef6e1._0x3a41cb,_0xbef6e1._0x246315,_0xbef6e1._0x1f0fe2,0x3f4)]?.[_0x4f5ef0(-_0xbef6e1._0x3094ea,-_0xbef6e1._0x4df477,0x2f,-_0xbef6e1._0x139acb)]??0x0,'outputTokens':_0x4c7d9a[_0x4f5ef0(0x1a,-0x14,-0xa2,0x95)]?.[_0x50fc98(0x475,0x444,_0xbef6e1._0xb2d531,_0xbef6e1._0x159eab)]??0x0},..._0x4cadac?{'providerState':{'anthropicAssistantContent':structuredClone(_0x498556)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x55f0a4(-0x13b,-0x221,-0x17f,-0x1ad)]=new Map();[_0x55f0a4(-0x356,-0x268,-0x325,-0x2dc)]=0x0;['messageId']='msg-'+Date[_0x2e041c(-0xb3,-0x65,-0x76,-0xff)]();['outputTokens']=0x0;[_0x2e041c(-0x72,-0x23,0x13,0x17)];[_0x2e041c(0x6d,0x12,0x23,0x44)]='end_turn';constructor(_0x1b49e5){const _0x50301b={_0x3e46f2:0xba,_0x5ebc7d:0x436};function _0x299d18(_0x5676a2,_0x14fd24,_0x59413c,_0x5a1dd1){return _0x55f0a4(_0x5676a2-_0x50301b._0x3e46f2,_0x14fd24-0xc0,_0x14fd24,_0x59413c-_0x50301b._0x5ebc7d);}this[_0x299d18(0x276,0x2e0,0x29c,0x331)]=_0x1b49e5;}[_0x2e041c(-0x112,-0x17,-0x5c,-0x6d)](_0x4f987d){const _0x1a85e1={_0x50f122:0x14c,_0x4e9f45:0x11b,_0x59c9d2:0x238,_0x34e03b:0x1ee,_0x24d808:0x1b9,_0x1e7d69:0x3a,_0x229f08:0xc0,_0x1d9ef3:0x47,_0x5cf4ea:0x6a,_0x1f32e1:0x285,_0x4ca7a5:0x43,_0xb593f0:0x4d,_0x198083:0x1bd,_0x1fc686:0x1ff,_0x4bcd94:0x181,_0x3331f4:0x1fd,_0x1d323e:0x178,_0x45f524:0x23,_0xc1f3aa:0x1d5,_0x5867f6:0x1b2,_0x16e664:0x252,_0x2996f3:0x1cb,_0x2c0aac:0x199,_0x518020:0x183,_0x53f6c2:0x1b1,_0x49c68d:0x20d,_0x9b266:0x27a,_0xa6b832:0xdc,_0x404851:0x1d2,_0x15fc6d:0x153,_0xbc2062:0x211,_0x198676:0x84,_0x5e0be7:0xde,_0x4bcc64:0x1ad,_0x5493ea:0x7a,_0x3024e4:0x87,_0x2801bf:0xb1,_0xd267f8:0xf8,_0x9c9b95:0x102,_0x1ca469:0x21,_0x38f3ec:0x9b,_0x1889ce:0x4f,_0xa82568:0xd5,_0x8f4200:0xbd,_0x230b7c:0x34,_0x34919d:0x1,_0x2b137b:0x119,_0x19d3b6:0x185,_0x563705:0x100,_0x50e0af:0x195,_0x302aeb:0xa6,_0x1817d1:0x8c,_0x4842ea:0xed,_0xf21f74:0x109,_0x801e04:0xf1,_0xbcc53f:0x1d9,_0x1fc50d:0x247,_0x351e62:0x1e8,_0x5439f7:0x1f5,_0x1a5dce:0x141,_0x4b02a8:0x1c1,_0x4de02e:0x13,_0x169ec4:0x22,_0x349bfd:0x151,_0x2c4d59:0x256,_0x3175b2:0x137,_0x5143d2:0x227,_0x4d3c4d:0x8d,_0x3ce8ec:0x20,_0x36f482:0x81,_0x203803:0x188,_0x4b2392:0x18a,_0x5b0491:0x59,_0x3c09b4:0x38,_0x4c8aad:0xbb,_0x1aca97:0x21a,_0x443424:0x1b8,_0x15daad:0x1f,_0x25ea67:0x67,_0x233b17:0x93,_0x51e4c7:0x62,_0x432279:0x31,_0x5256eb:0x110,_0x38c464:0xce,_0x59c2cb:0x158,_0x1f01e2:0x27f,_0x2d296a:0x1df,_0xbedd1e:0x8a,_0x2bf233:0x13a,_0x4b8e0b:0x9b,_0x54a6e8:0x17c,_0x1a7a3a:0x120,_0x2ae9f5:0x1d0,_0x18ce3c:0xe9,_0x2d6c9d:0x11e,_0xff13c7:0xf1,_0x1a5005:0x106,_0x48f4e0:0x7d,_0x4b59ed:0x4,_0x2d8879:0x7d,_0x299cb0:0xe5,_0x2f60e0:0x16e,_0x1f9ea7:0x14d,_0x3cbb4d:0x193,_0x23c41b:0x22a,_0x2f1192:0x15b,_0x380611:0xd3,_0x3ec88b:0x41,_0x39ceda:0x102,_0x45a537:0x15c,_0x1586be:0xf9,_0x4d2a33:0x0,_0x13e306:0x6b,_0x11dbe0:0x5e,_0x5cc897:0x24,_0x1657f1:0x13f,_0x2528a2:0x199,_0x512b57:0x241,_0x3e3eeb:0x164,_0x134659:0x272,_0x1dfb40:0x1d9,_0x5e2d87:0x80,_0x9a86e4:0x4b,_0x1e7f57:0xd,_0x300bd8:0x1bf,_0x4c35df:0x29f,_0x16ab7a:0x4e,_0x2c7f63:0x1d4,_0x54bade:0x2b9,_0x23274d:0x24c,_0x479559:0x4e,_0x1fa611:0x140,_0xefbe07:0x18e,_0xaa64a:0x218,_0x10e550:0x57,_0x4ebfdb:0xf9,_0x15a6cb:0x70,_0x1c0dd0:0x136,_0x59a226:0x9d,_0x1a9d92:0x121,_0x331844:0x7d,_0x4b70da:0x189,_0x474744:0x133,_0x5bc59a:0x238,_0x25974d:0x1b5,_0xbacd28:0x16f,_0x6bb19e:0x102,_0x2db67d:0xac,_0x36192f:0x99,_0x2b18ac:0x44,_0x355fe3:0x115,_0x147852:0xb0,_0x296819:0x11e,_0x2471e3:0x24f,_0x1d7bae:0x1f8,_0x36082c:0xa9,_0x2bbc1e:0x31},_0x3b2436={_0x2accae:0x124,_0x3b2856:0x2a},_0x3e3eaf={_0x8756a6:0x34};function _0x59b8e3(_0x2eeeb3,_0x3c9740,_0x205703,_0x3de982){return _0x2e041c(_0x2eeeb3-0x1a6,_0x3c9740-0xcd,_0x3de982-_0x3e3eaf._0x8756a6,_0x2eeeb3);}const _0x1f92b7=_0x4f987d[_0x22b394(-0x151,-_0x1a85e1._0x50f122,-0x136,-_0x1a85e1._0x4e9f45)]('\x0a'),_0x3b5ce6=_0x1f92b7[_0x22b394(-_0x1a85e1._0x59c9d2,-0x1c1,-_0x1a85e1._0x34e03b,-_0x1a85e1._0x24d808)](_0x11a30d=>_0x11a30d[_0x22b394(-0x141,-0x15e,-0x185,-0x1b2)]('event:'))?.[_0x22b394(-0x1b2,-0x19b,-0x206,-0x156)](0x6)['trim'](),_0x43b41a=_0x1f92b7['filter'](_0x48509f=>_0x48509f[_0x22b394(-0x13a,-0x1a8,-0x185,-0xdf)](_0x22b394(-0x222,-0x2de,-0x248,-0x1a5)))[_0x59b8e3(-0xff,_0x1a85e1._0x1e7d69,-_0x1a85e1._0x229f08,-0x60)](_0x45a125=>_0x45a125['slice'](0x5)[_0x59b8e3(-0x9c,-0x2f,-0x29,-0x31)]())[_0x59b8e3(_0x1a85e1._0x1d9ef3,-0xb6,-0xa,-_0x1a85e1._0x5cf4ea)]('\x0a')[_0x22b394(-0x2ab,-_0x1a85e1._0x1f32e1,-_0x1a85e1._0x59c9d2,-0x268)]();if(_0x43b41a[_0x59b8e3(-0x8b,-_0x1a85e1._0x4ca7a5,_0x1a85e1._0xb593f0,-0x2f)]===0x0||_0x43b41a===_0x22b394(-_0x1a85e1._0x198083,-0x298,-_0x1a85e1._0x1fc686,-0x22f))return[];function _0x22b394(_0x54cb37,_0x1f0aa3,_0x1d16da,_0x335806){return _0x2e041c(_0x54cb37-_0x3b2436._0x2accae,_0x1f0aa3-_0x3b2436._0x3b2856,_0x1d16da- -0x10c,_0x1f0aa3);}const _0x1feed7=JSON[_0x22b394(-_0x1a85e1._0x4bcd94,-_0x1a85e1._0x3331f4,-_0x1a85e1._0x1d323e,-0x1e6)](_0x43b41a);switch(_0x3b5ce6){case _0x59b8e3(0x2a,0x28,-_0x1a85e1._0x45f524,-0x2):{const _0x2ac626=_0x1feed7[_0x22b394(-_0x1a85e1._0xc1f3aa,-0x20b,-_0x1a85e1._0x5867f6,-0x260)];this[_0x22b394(-0x1e6,-_0x1a85e1._0x16e664,-_0x1a85e1._0x2996f3,-0x21f)]=_0x2ac626?.['id']??this[_0x22b394(-_0x1a85e1._0x2c0aac,-0x278,-0x1cb,-_0x1a85e1._0x518020)],this[_0x22b394(-_0x1a85e1._0x53f6c2,-_0x1a85e1._0x49c68d,-0x23b,-_0x1a85e1._0x9b266)]=_0x2ac626?.['usage']?.[_0x22b394(-_0x1a85e1._0xa6b832,-_0x1a85e1._0x404851,-_0x1a85e1._0x15fc6d,-0x1d4)]??this[_0x22b394(-_0x1a85e1._0xbc2062,-0x29d,-0x23b,-0x2dc)];break;}case _0x22b394(-_0x1a85e1._0x198676,-_0x1a85e1._0x5e0be7,-0x110,-0x10f):{const _0x19741a=typeof _0x1feed7['index']===_0x22b394(-0x176,-0x1bb,-0x1df,-_0x1a85e1._0x4bcc64)?_0x1feed7['index']:0x0,_0x1f3852=_0x1feed7[_0x59b8e3(-_0x1a85e1._0x5493ea,-0x10b,-0x134,-_0x1a85e1._0x3024e4)];if(_0x1f3852?.['type']===_0x59b8e3(-0x141,-_0x1a85e1._0x2801bf,-_0x1a85e1._0xd267f8,-_0x1a85e1._0x9c9b95)&&_0x1f3852['id']&&_0x1f3852[_0x59b8e3(_0x1a85e1._0x1ca469,-0x25,_0x1a85e1._0x38f3ec,_0x1a85e1._0x1889ce)])return this[_0x22b394(-0x12a,-0x116,-0x10c,-_0x1a85e1._0xa82568)][_0x59b8e3(-_0x1a85e1._0x8f4200,_0x1a85e1._0x230b7c,0x16,-_0x1a85e1._0x34919d)](_0x19741a,{'id':_0x1f3852['id'],'index':_0x19741a,'inputJson':JSON['stringify'](_0x1f3852[_0x22b394(-_0x1a85e1._0x2b137b,-_0x1a85e1._0x19d3b6,-0x111,-_0x1a85e1._0x563705)]??{}),'kind':_0x59b8e3(-0x94,-_0x1a85e1._0x50e0af,-0x7d,-0x102),'name':_0x1f3852[_0x59b8e3(_0x1a85e1._0x302aeb,_0x1a85e1._0x1817d1,0x8b,_0x1a85e1._0x1889ce)]}),[{'type':_0x59b8e3(-_0x1a85e1._0x4842ea,-0x190,-0xe9,-0x101),'id':_0x1f3852['id'],'index':_0x19741a,'name':_0x1f3852[_0x22b394(-0x58,-_0x1a85e1._0xf21f74,-_0x1a85e1._0x801e04,-_0x1a85e1._0x5493ea)]}];if(_0x1f3852?.[_0x22b394(-0x20b,-0x12c,-_0x1a85e1._0xbcc53f,-_0x1a85e1._0x1fc50d)]===_0x22b394(-0x237,-0x14e,-_0x1a85e1._0x351e62,-0x1e1)){this['blocks'][_0x22b394(-_0x1a85e1._0x5439f7,-0x10c,-_0x1a85e1._0x1a5dce,-0x1b3)](_0x19741a,{'index':_0x19741a,'kind':_0x22b394(-0x149,-0x134,-_0x1a85e1._0x351e62,-_0x1a85e1._0x4b02a8),'signature':typeof _0x1f3852['signature']===_0x59b8e3(-_0x1a85e1._0x4de02e,0xa2,-0x18,_0x1a85e1._0x169ec4)?_0x1f3852[_0x22b394(-0x133,-0x1d9,-0x18e,-0xd0)]:'','thinking':typeof _0x1f3852[_0x59b8e3(_0x1a85e1._0x4ca7a5,-0x125,-0x112,-0x7d)]==='string'?_0x1f3852['text']:typeof _0x1f3852[_0x59b8e3(-0x92,-0x116,-0x13e,-0xa8)]===_0x59b8e3(0x8c,0x6a,-0x95,_0x1a85e1._0x169ec4)?String(_0x1f3852[_0x22b394(-0x190,-_0x1a85e1._0x349bfd,-0x1e8,-0x23a)]):''});break;}if(_0x1f3852?.[_0x22b394(-0x120,-0x1fa,-0x1d9,-_0x1a85e1._0x2c4d59)]===_0x22b394(-_0x1a85e1._0x3175b2,-_0x1a85e1._0x5143d2,-0x18a,-0x151)){this[_0x59b8e3(_0x1a85e1._0x4d3c4d,_0x1a85e1._0x3ce8ec,-0x10,0x34)][_0x22b394(-_0x1a85e1._0x36f482,-0x13f,-0x141,-0xe6)](_0x19741a,{'index':_0x19741a,'kind':_0x22b394(-_0x1a85e1._0x203803,-0x1c5,-_0x1a85e1._0x4b2392,-0x144),'data':typeof _0x1f3852[_0x59b8e3(0x102,0xa1,0x100,_0x1a85e1._0x5b0491)]==='string'?String(_0x1f3852[_0x22b394(-0xef,-0xb9,-0xe7,-0xb4)]):''});break;}this[_0x59b8e3(_0x1a85e1._0x3c09b4,0x39,0x4,0x34)][_0x59b8e3(_0x1a85e1._0x4c8aad,0x9b,_0x1a85e1._0x1e7d69,-_0x1a85e1._0x34919d)](_0x19741a,{'index':_0x19741a,'kind':_0x22b394(-_0x1a85e1._0x1aca97,-_0x1a85e1._0x443424,-0x1bd,-0x13e),'text':_0x1f3852?.[_0x59b8e3(_0x1a85e1._0x15daad,-_0x1a85e1._0x25ea67,-_0x1a85e1._0x233b17,-0x7d)]??''});break;}case _0x59b8e3(-0x170,-_0x1a85e1._0x51e4c7,-_0x1a85e1._0x432279,-0xdc):{const _0x523a03=typeof _0x1feed7[_0x22b394(-_0x1a85e1._0x5256eb,-_0x1a85e1._0x38c464,-_0x1a85e1._0x59c2cb,-0x1b8)]===_0x22b394(-_0x1a85e1._0x1f01e2,-0x188,-_0x1a85e1._0x2d296a,-0x193)?_0x1feed7['index']:0x0,_0xae0650=this['blocks'][_0x22b394(-_0x1a85e1._0x3024e4,-_0x1a85e1._0xbedd1e,-_0x1a85e1._0x2bf233,-_0x1a85e1._0x4b8e0b)](_0x523a03),_0x284f5c=_0x1feed7['delta'];if(!_0xae0650||!_0x284f5c?.[_0x22b394(-_0x1a85e1._0x54a6e8,-0x14f,-0x1d9,-_0x1a85e1._0x15fc6d)])break;if(_0x284f5c[_0x59b8e3(0x17,-_0x1a85e1._0x1a7a3a,-0x10,-0x99)]===_0x22b394(-_0x1a85e1._0x2ae9f5,-0x1e1,-0x144,-_0x1a85e1._0x18ce3c)&&_0xae0650[_0x22b394(-0x22c,-0x17b,-0x1fd,-0x13c)]==='text'&&typeof _0x284f5c['text']===_0x22b394(-0xd9,-0x77,-_0x1a85e1._0x2d6c9d,-0x85))return _0xae0650[_0x59b8e3(-_0x1a85e1._0xff13c7,-_0x1a85e1._0x1a5005,-0x12e,-_0x1a85e1._0x48f4e0)]+=_0x284f5c[_0x59b8e3(0x1,-_0x1a85e1._0x4b59ed,-0xc3,-_0x1a85e1._0x2d8879)],[{'type':_0x59b8e3(-0x52,_0x1a85e1._0x299cb0,0x72,0x3b),'index':_0x523a03,'text':_0x284f5c[_0x22b394(-0x211,-0x1ca,-0x1bd,-_0x1a85e1._0x2f60e0)]}];if(_0x284f5c[_0x59b8e3(-0x12f,-_0x1a85e1._0x1f9ea7,-0xa9,-0x99)]===_0x22b394(-0x294,-_0x1a85e1._0x3cbb4d,-0x23d,-_0x1a85e1._0x23c41b)&&_0xae0650[_0x22b394(-_0x1a85e1._0x2f1192,-0x2a3,-0x1fd,-0x15c)]===_0x59b8e3(-_0x1a85e1._0x380611,-_0x1a85e1._0x3ec88b,-0x96,-_0x1a85e1._0x39ceda)&&typeof _0x284f5c['partial_json']===_0x22b394(-_0x1a85e1._0x45a537,-0xb6,-_0x1a85e1._0x2d6c9d,-_0x1a85e1._0x1586be))return _0xae0650[_0x59b8e3(_0x1a85e1._0x4d2a33,_0x1a85e1._0x13e306,0x117,_0x1a85e1._0x11dbe0)]==='{}'&&(_0xae0650[_0x22b394(-_0x1a85e1._0x5cc897,-_0x1a85e1._0x1657f1,-0xe2,-0xe5)]=''),_0xae0650['inputJson']+=_0x284f5c['partial_json'],[{'type':_0x22b394(-0x1d4,-_0x1a85e1._0x2528a2,-_0x1a85e1._0x512b57,-0x29e),'id':_0xae0650['id'],'index':_0x523a03,'inputDelta':_0x284f5c['partial_json']}];if(_0x284f5c[_0x22b394(-_0x1a85e1._0x3e3eeb,-_0x1a85e1._0x134659,-_0x1a85e1._0x1dfb40,-0x217)]===_0x59b8e3(0xb5,_0x1a85e1._0x5e2d87,-0x2d,_0x1a85e1._0x9a86e4)&&_0xae0650['kind']===_0x59b8e3(-_0x1a85e1._0x1e7f57,-_0x1a85e1._0xbedd1e,-0x13c,-0xa8)){const _0x4183e6=typeof _0x284f5c[_0x22b394(-0x20d,-_0x1a85e1._0x300bd8,-0x1e8,-_0x1a85e1._0x4c35df)]===_0x59b8e3(_0x1a85e1._0x16ab7a,-0x11,-0x78,_0x1a85e1._0x169ec4)?String(_0x284f5c[_0x22b394(-0x1c5,-0x243,-0x1e8,-_0x1a85e1._0x349bfd)]):'';if(_0x4183e6['length']>0x0){_0xae0650[_0x22b394(-_0x1a85e1._0x2c7f63,-0x1a3,-0x1e8,-_0x1a85e1._0x512b57)]+=_0x4183e6;if(isUserVisibleThinking(this[_0x59b8e3(-0x62,-0x48,0x102,_0x1a85e1._0x1d9ef3)]))return[{'type':'anthropic_thinking_delta','index':_0x523a03,'thinking':_0x4183e6}];}}if(_0x284f5c[_0x59b8e3(-0x15b,_0x1a85e1._0x3ce8ec,-0x2c,-0x99)]===_0x22b394(-0x1d9,-_0x1a85e1._0x54bade,-0x24f,-_0x1a85e1._0x23274d)&&_0xae0650[_0x22b394(-0x255,-0x1d1,-0x1fd,-0x193)]==='thinking'){const _0x374d17=typeof _0x284f5c[_0x59b8e3(-0x4d,-0xff,-0xd7,-_0x1a85e1._0x479559)]==='string'?String(_0x284f5c[_0x22b394(-_0x1a85e1._0x1fa611,-0x1e9,-_0x1a85e1._0xefbe07,-_0x1a85e1._0xaa64a)]):'';if(_0x374d17['length']>0x0){_0xae0650[_0x22b394(-0x103,-0x1f5,-0x18e,-0x119)]=_0x374d17;if(isUserVisibleThinking(this[_0x22b394(-_0x1a85e1._0x10e550,-0xb2,-_0x1a85e1._0x4ebfdb,-0x4e)]))return[{'type':_0x22b394(-0xba,-_0x1a85e1._0x15a6cb,-0xef,-0x7d),'index':_0x523a03,'signature':_0x374d17}];}}break;}case _0x22b394(-_0x1a85e1._0x1c0dd0,-_0x1a85e1._0x59a226,-_0x1a85e1._0x1a9d92,-_0x1a85e1._0x331844):{const _0xd29b42=_0x1feed7['delta'],_0x5f41f7=_0x1feed7[_0x22b394(-0x1d7,-0xd6,-0x11d,-0x14b)];this['outputTokens']=_0x5f41f7?.['output_tokens']??this[_0x22b394(-_0x1a85e1._0x4b70da,-0x1d5,-0x170,-_0x1a85e1._0x474744)],this['stopReason']=_0xd29b42?.[_0x22b394(-0x1af,-_0x1a85e1._0x5bc59a,-0x176,-_0x1a85e1._0x25974d)]===_0x59b8e3(-_0x1a85e1._0xbacd28,-_0x1a85e1._0x518020,-0x9d,-_0x1a85e1._0x6bb19e)?_0x59b8e3(-_0x1a85e1._0x2db67d,-_0x1a85e1._0x203803,-0xde,-0x102):_0x59b8e3(-_0x1a85e1._0x36192f,0x47,-_0x1a85e1._0x2b18ac,-0x6d);break;}case _0x59b8e3(-_0x1a85e1._0x355fe3,-_0x1a85e1._0x147852,-_0x1a85e1._0x296819,-0xd0):{const _0x2cb1f1=_0x1feed7[_0x22b394(-0x221,-_0x1a85e1._0x2471e3,-0x210,-_0x1a85e1._0x1d7bae)];throw new Error(_0x2cb1f1?.[_0x59b8e3(-0xfd,-_0x1a85e1._0x36082c,-0xe8,-0x72)]??_0x59b8e3(0x8c,-0xf,_0x1a85e1._0x2bbc1e,-0x14));}}return[];}[_0x55f0a4(-0x1e4,-0x18f,-0xeb,-0x1a8)](){const _0x24a519={_0x477022:0x279,_0x51fd7c:0x1e3,_0x9b2b16:0x223,_0x1d0ecd:0x23d,_0x8fda4f:0x319,_0xc0fdd2:0x3d7,_0x5b88c0:0x3af,_0x558549:0x38b,_0x319d44:0x357,_0x435b18:0x2b8,_0xe10fc4:0x1e4,_0x9dd0a1:0x238,_0x2af204:0x2c0,_0x4895b0:0x312,_0x5997f4:0x2ec,_0x3456af:0x2c3,_0x71157c:0x295,_0x520948:0x2eb,_0x478b1c:0x2f6,_0x2abfc3:0x360,_0x5e3224:0x3e4,_0x36a6fb:0x304,_0x1beee6:0x34e,_0x405c0d:0x2f3,_0x5f3ec6:0x3be,_0x3c7893:0x3cb,_0x5a8c42:0x453,_0x28d618:0x461,_0x30b0a7:0x4e7,_0x342b6e:0x412,_0x593daa:0x1a4,_0x19c63c:0x236,_0x10d2df:0x238,_0x3cdfbf:0x1e7,_0x52956e:0x457,_0x4a09c2:0x3c6,_0x516cfa:0x41b,_0x969087:0x3ce,_0x3c3e94:0x3d9,_0x236c80:0x427,_0x1f3fbb:0x3ad,_0x579f19:0x425,_0x5de1bd:0x396,_0x3d41aa:0x2f5,_0x92ad18:0x325,_0x28963f:0x30d,_0x28fa1a:0x358,_0x55b2a4:0x3fe,_0x1a1c51:0x34a,_0x30bab0:0x384},_0x4869d5={_0x405efa:0xee,_0x519b49:0x43c},_0x32b181=Array[_0x40399a(_0x24a519._0x477022,_0x24a519._0x51fd7c,_0x24a519._0x9b2b16,_0x24a519._0x1d0ecd)](this['blocks'][_0x1d20b3(_0x24a519._0x8fda4f,0x3ac,0x332,0x2fa)]())['sort']((_0x128d71,_0x3d4d94)=>_0x128d71[_0x40399a(0x283,0x3a3,0x325,0x379)]-_0x3d4d94[_0x1d20b3(0x36a,0x3f0,0x484,0x375)]);function _0x1d20b3(_0x4d54ca,_0x7c4abc,_0x21538d,_0x33d88d){return _0x2e041c(_0x4d54ca-_0x4869d5._0x405efa,_0x7c4abc-0x109,_0x7c4abc-_0x4869d5._0x519b49,_0x33d88d);}const _0x4b1861=[];for(const _0x1c8648 of _0x32b181){if(_0x1c8648[_0x1d20b3(0x36f,0x34b,_0x24a519._0xc0fdd2,0x2b7)]===_0x1d20b3(_0x24a519._0x5b88c0,_0x24a519._0x558549,0x371,_0x24a519._0x319d44)){_0x1c8648['text']['length']>0x0&&_0x4b1861[_0x40399a(_0x24a519._0x435b18,_0x24a519._0xe10fc4,_0x24a519._0x9dd0a1,0x2f1)]({'type':'text','text':_0x1c8648[_0x40399a(0x343,0x236,_0x24a519._0x2af204,0x30e)]});continue;}if(_0x1c8648[_0x40399a(0x229,_0x24a519._0x4895b0,0x280,_0x24a519._0x5997f4)]===_0x40399a(_0x24a519._0x3456af,0x2d0,_0x24a519._0x71157c,_0x24a519._0x520948)){_0x4b1861['push']({'type':_0x40399a(0x34c,0x1e6,0x295,0x1d3),'thinking':_0x1c8648[_0x1d20b3(_0x24a519._0x478b1c,_0x24a519._0x2abfc3,_0x24a519._0x5e3224,0x3af)],'signature':_0x1c8648[_0x1d20b3(_0x24a519._0x36a6fb,0x3ba,_0x24a519._0x1beee6,0x3b0)]});continue;}if(_0x1c8648['kind']===_0x40399a(0x2a4,0x2fd,_0x24a519._0x405c0d,0x3b3)){_0x4b1861['push']({'type':_0x1d20b3(0x384,_0x24a519._0x5f3ec6,0x44f,_0x24a519._0x3c7893),'data':_0x1c8648[_0x1d20b3(_0x24a519._0x5a8c42,_0x24a519._0x28d618,_0x24a519._0x30b0a7,_0x24a519._0x342b6e)]});continue;}_0x4b1861[_0x40399a(_0x24a519._0x593daa,_0x24a519._0x19c63c,_0x24a519._0x10d2df,_0x24a519._0x3cdfbf)]({'type':'tool_use','id':_0x1c8648['id'],'name':_0x1c8648[_0x1d20b3(0x4a4,_0x24a519._0x52956e,0x39d,0x4b9)],'input':parseToolInput(_0x1c8648[_0x1d20b3(_0x24a519._0x4a09c2,0x466,0x446,_0x24a519._0x516cfa)][_0x1d20b3(_0x24a519._0x969087,_0x24a519._0x3c3e94,_0x24a519._0x236c80,_0x24a519._0x1f3fbb)]>0x0?_0x1c8648['inputJson']:'{}')});}function _0x40399a(_0x5b7982,_0x347ca0,_0xc85d49,_0x15f607){return _0x55f0a4(_0x5b7982-0x39,_0x347ca0-0x11a,_0x347ca0,_0xc85d49-0x51e);}return parseAnthropicResponse({'id':this['messageId'],'type':_0x1d20b3(_0x24a519._0x579f19,_0x24a519._0x5de1bd,0x2de,0x2d9),'role':'assistant','content':_0x4b1861,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x40399a(_0x24a519._0x3d41aa,_0x24a519._0x92ad18,_0x24a519._0x28963f,_0x24a519._0x28fa1a)]}},this[_0x40399a(_0x24a519._0x55b2a4,_0x24a519._0x1a1c51,_0x24a519._0x30bab0,0x405)]);}};function createAnthropicSurfaces(){const _0x15d5dc={_0x1875a2:0x4f6,_0x938d38:0x438},_0x33be1e={_0x2f527b:0x92,_0x5ac260:0x20,_0x575ff5:0x634};function _0x3c964b(_0x539385,_0x1e873d,_0x3623e3,_0x57c39e){return _0x55f0a4(_0x539385-_0x33be1e._0x2f527b,_0x1e873d-_0x33be1e._0x5ac260,_0x57c39e,_0x3623e3-_0x33be1e._0x575ff5);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x3c964b(0x3cf,_0x15d5dc._0x1875a2,_0x15d5dc._0x938d38,0x456),'createRequest'(_0x1eece1){return createAnthropicRequest(_0x1eece1,![]);},'parseResponse'(_0x1946e9,_0x279c5b){return parseAnthropicResponse(_0x1946e9,_0x279c5b);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x14a656){return createAnthropicRequest(_0x14a656,!![]);},'createStreamParser'(_0x354c67){return new AnthropicMessagesStreamParser(_0x354c67);}}];}var StaticModelSurfaceRouter=class{[_0x2e041c(-0x123,-0xa1,-0xf7,-0x135)];[_0x2e041c(-0xa4,-0x6d,-0xe,0x79)];constructor(_0xf8ca03){const _0x49cf8c={_0x459ae9:0x17,_0x2ccaa8:0x24a,_0x300a7c:0x25c,_0x4e530c:0x223,_0xcebee9:0x1da,_0x352613:0x28b},_0x41fc7d={_0x454dbc:0x11b,_0x506f8e:0x2e0},_0x523ca9={_0x1cd92b:0x16e,_0x40d44d:0x1ec,_0x43b018:0x1d5};function _0x4f7758(_0x22d175,_0x2d5b83,_0x59a27c,_0x3ee757){return _0x55f0a4(_0x22d175-_0x523ca9._0x1cd92b,_0x2d5b83-_0x523ca9._0x40d44d,_0x3ee757,_0x59a27c-_0x523ca9._0x43b018);}this[_0x4f7758(-0xe7,-0x183,-0xcf,-_0x49cf8c._0x459ae9)]=_0xf8ca03[_0x94df6e(_0x49cf8c._0x2ccaa8,0x29c,_0x49cf8c._0x300a7c,_0x49cf8c._0x4e530c)];function _0x94df6e(_0x26c4fd,_0x340c3f,_0x3f0b58,_0x3bcbc7){return _0x2e041c(_0x26c4fd-0x155,_0x340c3f-_0x41fc7d._0x454dbc,_0x3bcbc7-_0x41fc7d._0x506f8e,_0x3f0b58);}this['streamSurface']=_0xf8ca03[_0x94df6e(0x312,0x334,_0x49cf8c._0xcebee9,_0x49cf8c._0x352613)];}[_0x2e041c(-0x4e,-0x50,-0x25,0x28)](_0x2d633e,_0x272cbb){const _0x4e2a5b={_0x49c30e:0x3aa,_0x1729f9:0x367},_0x1477e7={_0x20710f:0x28,_0x507153:0xa0},_0x4a1ee1={_0x15d37a:0x139,_0xb6653d:0x2d7};function _0x50dba4(_0x2f0f13,_0x7942f,_0x160c92,_0x33c7dd){return _0x2e041c(_0x2f0f13-_0x4a1ee1._0x15d37a,_0x7942f-0x99,_0x2f0f13-_0x4a1ee1._0xb6653d,_0x33c7dd);}function _0x1e4790(_0x2687e1,_0xff4e10,_0x143053,_0x587f4c){return _0x2e041c(_0x2687e1-_0x1477e7._0x20710f,_0xff4e10-_0x1477e7._0x507153,_0x143053-0x46c,_0xff4e10);}return _0x272cbb[_0x1e4790(_0x4e2a5b._0x49c30e,0x31f,0x353,_0x4e2a5b._0x1729f9)]===_0x50dba4(0x282,0x1e6,0x321,0x1cc)?this['streamSurface']:this['completeSurface'];}};function trimTrailingSlashes(_0xa418bd){const _0x17411b={_0x5cfba2:0x4dd,_0x2f77ea:0x467},_0x35a71f={_0x2a6665:0xe3,_0x2dda48:0x1f2,_0x7b068:0x6da};function _0x1197b2(_0x37e0f8,_0x183321,_0x119273,_0x4d4946){return _0x55f0a4(_0x37e0f8-_0x35a71f._0x2a6665,_0x183321-_0x35a71f._0x2dda48,_0x37e0f8,_0x183321-_0x35a71f._0x7b068);}return _0xa418bd[_0x1197b2(0x49c,_0x17411b._0x5cfba2,_0x17411b._0x2f77ea,0x580)](/\/+$/,'');}function resolveApiCredential(_0x35301a,_0x1a711){const _0x55384b={_0x1bb598:0x18f,_0x156c90:0x7d,_0x16edbd:0x45,_0x3cfd79:0x1ec,_0x25f18d:0x20c},_0x252564={_0x156a6e:0x136,_0x4cba13:0x120,_0x2fd142:0x0},_0x16f18c={_0x5a77a6:0x11f};function _0x2e613e(_0x5273e4,_0x5620d6,_0x3bbde2,_0x4c9743){return _0x2e041c(_0x5273e4-0x18a,_0x5620d6-_0x16f18c._0x5a77a6,_0x3bbde2-0xe5,_0x5620d6);}if(_0x1a711?.[_0x51b74f(-0x285,-0x277,-0x215,-_0x55384b._0x1bb598)])return _0x1a711[_0x2e613e(0xc9,-0x20,_0x55384b._0x156c90,_0x55384b._0x16edbd)];if(!_0x35301a)return void 0x0;function _0x51b74f(_0x3ec046,_0x97ddc2,_0x27a65d,_0x4dbe66){return _0x55f0a4(_0x3ec046-_0x252564._0x156a6e,_0x97ddc2-_0x252564._0x4cba13,_0x4dbe66,_0x27a65d-_0x252564._0x2fd142);}return{'kind':_0x51b74f(-0x193,-_0x55384b._0x3cfd79,-0x1ae,-_0x55384b._0x25f18d),'value':_0x35301a};}function resolveSessionBaseUrl(_0x42d755,_0x1b8955){const _0x5aafad={_0x1d452b:0x31c,_0x20c8fa:0x3c2},_0x177d41={_0x3fad28:0x1df};function _0x1c7ed7(_0x5c4ba4,_0x868ad8,_0x438929,_0x1d859d){return _0x55f0a4(_0x5c4ba4-0x1c,_0x868ad8-_0x177d41._0x3fad28,_0x1d859d,_0x5c4ba4-0x50d);}return trimTrailingSlashes(_0x1b8955?.[_0x1c7ed7(0x302,0x357,_0x5aafad._0x1d452b,_0x5aafad._0x20c8fa)]?.['api']??_0x42d755);}function toErrorMessage(_0x1c9785){const _0x4a5a55={_0x28b5ba:0xc8,_0x1a4cc1:0xf4,_0x56f200:0x44,_0x32c5f8:0x45b,_0x3dd702:0x496,_0x142462:0x137,_0x1564dd:0xf4,_0x21eb16:0x408},_0x21ff3e={_0x32bc65:0x1a8};function _0x2b8a86(_0x5e0718,_0x40b731,_0x343ebf,_0x53b6fa){return _0x2e041c(_0x5e0718-0xb,_0x40b731-0x16e,_0x40b731-0x19a,_0x343ebf);}if(_0x1c9785 instanceof Error&&_0x1c9785[_0x2b8a86(_0x4a5a55._0x28b5ba,_0x4a5a55._0x1a4cc1,_0x4a5a55._0x56f200,0x11d)][_0x53d954(_0x4a5a55._0x32c5f8,0x424,0x474,_0x4a5a55._0x3dd702)]>0x0)return _0x1c9785[_0x2b8a86(_0x4a5a55._0x142462,_0x4a5a55._0x1564dd,0x117,0x40)];function _0x53d954(_0x1022fa,_0x55dd87,_0x52e377,_0x3fabfe){return _0x55f0a4(_0x1022fa-_0x21ff3e._0x32bc65,_0x55dd87-0x10d,_0x52e377,_0x55dd87-0x634);}return _0x53d954(_0x4a5a55._0x21eb16,0x467,0x479,0x4a7);}function createDefaultWebSocketFactory(){return({headers:_0x201b9a,url:_0x32c990})=>{const _0x539a04=globalThis['WebSocket'];return new _0x539a04(_0x32c990,{'headers':_0x201b9a,'protocols':[]});};}async function*iterateSseEvents(_0x135c51,_0x574cd6){const _0x8245dc={_0x2a9f5c:0x7d,_0x555125:0x43,_0x25d62c:0x66,_0x2a1053:0xea,_0x378f09:0x291,_0x4dd1b0:0x1f7,_0x415d32:0x177,_0x3c5ee3:0xe9,_0xd401ee:0xf,_0x4184c5:0x35,_0x4e5d61:0x26,_0x1cf69c:0x2f3,_0xf71c1d:0xa1,_0x5dccdc:0x3e,_0x350b70:0x80,_0x475455:0x26,_0x545503:0xa1,_0x4dd080:0xf8,_0x46c919:0x2a,_0x2dd083:0x1d6,_0x2cac09:0x2e1,_0x42df64:0x25c,_0x158ff7:0x1ca},_0x86f010={_0x16a0f5:0x215,_0x44ab9e:0x200,_0x4cefa0:0x178},_0x5ba638={_0x27e0dd:0xd8,_0x56ada9:0x238},_0x526e2c={_0xb5ef1b:0x131,_0x454301:0x10c,_0x13df63:0x1f9};function _0x7ce4b4(_0x49f1e0,_0x3e4038,_0x343d7b,_0x5b38f1){return _0x2e041c(_0x49f1e0-_0x526e2c._0xb5ef1b,_0x3e4038-_0x526e2c._0x454301,_0x343d7b- -_0x526e2c._0x13df63,_0x5b38f1);}const _0x4bc79f=_0x135c51[_0x4d1f3f(-_0x8245dc._0x2a9f5c,-_0x8245dc._0x555125,_0x8245dc._0x25d62c,-_0x8245dc._0x2a1053)]?.[_0x7ce4b4(-0x131,-0x206,-0x1eb,-_0x8245dc._0x378f09)]();if(!_0x4bc79f)return;function _0x4d1f3f(_0xb2a5e1,_0xf21730,_0x295c40,_0x4f91d7){return _0x55f0a4(_0xb2a5e1-_0x5ba638._0x27e0dd,_0xf21730-0x1c9,_0xb2a5e1,_0xf21730-_0x5ba638._0x56ada9);}const _0x52bfb0=new TextDecoder(_0x7ce4b4(-0x1bc,-0x1d4,-_0x8245dc._0x4dd1b0,-_0x8245dc._0x415d32));let _0x17c918='';const _0x26251c=addAbortListener(_0x574cd6,()=>{const _0x47ae74={_0x1b846e:0x1a6,_0x157369:0x132,_0x43cec1:0x41d};function _0x1c5241(_0x8dae0f,_0x3bc6a1,_0x273e30,_0x123ce5){return _0x7ce4b4(_0x8dae0f-_0x47ae74._0x1b846e,_0x3bc6a1-_0x47ae74._0x157369,_0x123ce5-_0x47ae74._0x43cec1,_0x273e30);}void _0x4bc79f['cancel'](toAbortError(_0x574cd6?.[_0x1c5241(_0x86f010._0x16a0f5,_0x86f010._0x44ab9e,0xc2,_0x86f010._0x4cefa0)]))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x574cd6);const {value:_0x5b4518,done:_0x4097e7}=await _0x4bc79f[_0x4d1f3f(-0x39,-0x86,-_0x8245dc._0x3c5ee3,_0x8245dc._0xd401ee)]();throwIfAborted(_0x574cd6);if(_0x4097e7)break;_0x17c918+=_0x52bfb0['decode'](_0x5b4518,{'stream':!![]});while(!![]){const _0x155c30=_0x17c918[_0x4d1f3f(-0x5c,-_0x8245dc._0x4184c5,_0x8245dc._0x4e5d61,-0xf2)]('\x0a\x0a');if(_0x155c30===-0x1)break;const _0x2c4940=_0x17c918['slice'](0x0,_0x155c30);_0x17c918=_0x17c918[_0x7ce4b4(-0x270,-0x313,-_0x8245dc._0x1cf69c,-0x2ee)](_0x155c30+0x2),_0x2c4940[_0x4d1f3f(-0x138,-_0x8245dc._0xf71c1d,-0x10c,-_0x8245dc._0x5dccdc)]()['length']>0x0&&(yield _0x2c4940);}}_0x17c918+=_0x52bfb0[_0x4d1f3f(_0x8245dc._0x350b70,-0x28,-_0x8245dc._0x475455,-0xaa)](),throwIfAborted(_0x574cd6),_0x17c918[_0x4d1f3f(0xe,-_0x8245dc._0x545503,-_0x8245dc._0x4dd080,-_0x8245dc._0x46c919)]()[_0x7ce4b4(-_0x8245dc._0x2dd083,-_0x8245dc._0x2cac09,-_0x8245dc._0x42df64,-_0x8245dc._0x158ff7)]>0x0&&(yield _0x17c918);}finally{_0x26251c();}}async function waitForWebSocketOpen(_0x1baa98,_0x417cb5){const _0x4fb753={_0x318a33:0x19b,_0xf222e8:0x6a,_0x1a9f36:0xfe,_0x61177a:0x8d},_0x29e5d3={_0x1cdba9:0x6d,_0x581de5:0xca,_0x419417:0x40,_0x59cb25:0x7a,_0x6604f3:0x9,_0x25d916:0x74,_0x883f8b:0x80,_0x50c3e8:0x5a,_0x232996:0x9f,_0x2af315:0xcb,_0x2c4819:0x3e,_0x2fcca1:0x9,_0x1e5a08:0xab,_0x2b2f53:0x31,_0x249a6f:0xc5,_0x3f82a1:0x134,_0x474641:0x1d3,_0x5dfffd:0x14f,_0x2a56f3:0xa3},_0x1882dc={_0x449172:0xff,_0x4bf69e:0x7d},_0x2e95f7={_0x576faf:0x293,_0xbe5c81:0x29b,_0x4c1bb9:0x1fd,_0x5a3ad7:0x210,_0x446111:0x297,_0x244442:0x243,_0x1f1a04:0x2de},_0x760487={_0x54a856:0xdb,_0xddb752:0x22c},_0x220389={_0x589174:0x4a};if(_0x1baa98[_0x12fb8f(-_0x4fb753._0x318a33,-0x19a,-_0x4fb753._0xf222e8,-_0x4fb753._0x1a9f36)]===WebSocket[_0x545d70(0x7c,-0x29,-0xe2,_0x4fb753._0x61177a)]){throwIfAborted(_0x417cb5);return;}throwIfAborted(_0x417cb5);function _0x12fb8f(_0x4159d9,_0x302cf7,_0x3427cd,_0x5c204c){return _0x2e041c(_0x4159d9-0x1c7,_0x302cf7-_0x220389._0x589174,_0x5c204c- -0x6b,_0x302cf7);}function _0x545d70(_0x3f3367,_0x24df15,_0x1cf389,_0x2e7ea1){return _0x55f0a4(_0x3f3367-0x7c,_0x24df15-_0x760487._0x54a856,_0x3f3367,_0x24df15-_0x760487._0xddb752);}await new Promise((_0x200f0c,_0x9be043)=>{const _0x527f3c={_0x12115a:0x358,_0x10101c:0x255,_0x153c99:0x3a1,_0x240cd1:0x456,_0x4ddf4d:0x487,_0x147cc5:0x3c7,_0x5328fc:0x260,_0x28e742:0x3ae},_0x391eb5={_0x22176e:0x290},_0x2694bb={_0x10477f:0x85,_0x51147d:0x1d0},_0xeea006={_0x3159f4:0x3ba},_0x4df673={_0x1e798a:0x51},_0x17f825={_0x529398:0xd9,_0x3280cc:0x1e},_0xe16172={_0x4f5a4b:0x226},_0x1fe956=()=>{_0x41dc90(),_0x200f0c();},_0x5a46b3=_0x5e2b34=>{function _0x5747c1(_0x58b326,_0x586d0f,_0x1687cf,_0x507330){return _0x3920(_0x507330- -_0xe16172._0x4f5a4b,_0x586d0f);}_0x41dc90(),_0x9be043(new Error(_0x5e2b34['message']||_0x5747c1(0x3e,-_0x17f825._0x529398,_0x17f825._0x3280cc,-0x77)));},_0x330263=_0x58df8a=>{const _0x11d6e3={_0x5ac48f:0x174};_0x41dc90();const _0x308240=_0x58df8a;function _0x41c608(_0x29cad4,_0x58860e,_0x38c981,_0xe5be9b){return _0x3920(_0x38c981- -_0x11d6e3._0x5ac48f,_0x29cad4);}_0x9be043(new Error(_0x308240[_0x41c608(-0x50,-0x3f,-_0x4df673._0x1e798a,0x2d)]||'WebSocket\x20closed\x20before\x20opening'));},_0x23da68=()=>{function _0x7fbc59(_0x48f72f,_0x5204c7,_0x4c308c,_0x42a00c){return _0x3920(_0x48f72f- -0x12,_0x42a00c);}function _0x22106d(_0x4188f0,_0xc60a12,_0x2d06f3,_0x14655b){return _0x3920(_0x4188f0- -_0xeea006._0x3159f4,_0x14655b);}_0x41dc90(),_0x1baa98['readyState']===WebSocket[_0x22106d(-_0x2e95f7._0x576faf,-_0x2e95f7._0xbe5c81,-0x21a,-0x1f5)]&&_0x1baa98[_0x22106d(-0x1f4,-_0x2e95f7._0x4c1bb9,-_0x2e95f7._0x5a3ad7,-0x1cd)](0x3e8,'aborted'),_0x9be043(toAbortError(_0x417cb5?.[_0x22106d(-_0x2e95f7._0x446111,-_0x2e95f7._0x244442,-0x29b,-_0x2e95f7._0x1f1a04)]));};function _0x42d78c(_0x451855,_0x9f493a,_0x3fa683,_0x4228e8){return _0x12fb8f(_0x451855-_0x2694bb._0x10477f,_0x3fa683,_0x3fa683-0x8c,_0x4228e8-_0x2694bb._0x51147d);}const _0x41dc90=()=>{_0x1baa98['removeEventListener'](_0x2d59df(0x2d5,_0x527f3c._0x12115a,0x2ea,0x3ef),_0x1fe956),_0x1baa98[_0x2d59df(0x50f,0x487,0x464,0x43b)](_0x1e652d(0x2c9,0x349,0x23a,_0x527f3c._0x10101c),_0x5a46b3),_0x1baa98['removeEventListener'](_0x2d59df(_0x527f3c._0x153c99,_0x527f3c._0x240cd1,0x44e,0x4d3),_0x330263);function _0x1e652d(_0x3f9d92,_0x1a32f9,_0xc01f06,_0x5293d2){return _0x3920(_0x3f9d92-0x1fe,_0x5293d2);}function _0x2d59df(_0x369d48,_0x566d7e,_0x509cb0,_0x5e2f72){return _0x3920(_0x566d7e-_0x391eb5._0x22176e,_0x5e2f72);}_0x417cb5?.[_0x2d59df(0x4a4,_0x527f3c._0x4ddf4d,0x500,_0x527f3c._0x147cc5)](_0x2d59df(0x3a9,0x319,_0x527f3c._0x5328fc,_0x527f3c._0x28e742),_0x23da68);};_0x1baa98[_0x2fd185(-_0x29e5d3._0x1cdba9,-_0x29e5d3._0x581de5,-0x9,-0x61)](_0x42d78c(_0x29e5d3._0x419417,_0x29e5d3._0x59cb25,-0x50,0x5e),_0x1fe956);function _0x2fd185(_0x14559f,_0x363c30,_0x557073,_0x38b958){return _0x12fb8f(_0x14559f-_0x1882dc._0x449172,_0x557073,_0x557073-0x1a3,_0x14559f-_0x1882dc._0x4bf69e);}_0x1baa98[_0x2fd185(-_0x29e5d3._0x1cdba9,-_0x29e5d3._0x6604f3,-0x54,-_0x29e5d3._0x25d916)](_0x42d78c(0x93,_0x29e5d3._0x883f8b,_0x29e5d3._0x50c3e8,0x61),_0x5a46b3),_0x1baa98[_0x2fd185(-0x6d,-_0x29e5d3._0x232996,-_0x29e5d3._0x2af315,_0x29e5d3._0x2c4819)](_0x2fd185(_0x29e5d3._0x2fcca1,-0x1c,_0x29e5d3._0x1e5a08,0xbe),_0x330263),_0x417cb5?.[_0x2fd185(-0x6d,_0x29e5d3._0x2b2f53,-_0x29e5d3._0x249a6f,-0x9c)](_0x2fd185(-_0x29e5d3._0x3f82a1,-_0x29e5d3._0x474641,-_0x29e5d3._0x5dfffd,-_0x29e5d3._0x2a56f3),_0x23da68,{'once':!![]});});}function iterateWebSocketMessages(_0x215ea7,_0xb9b646){const _0x3c3a89={_0x1121be:0x89,_0x4b32ac:0xa6,_0x5e9fc6:0x49b,_0x28877c:0x465,_0x1ff0c1:0x3bc,_0x4a1b10:0x89,_0x1b3f2f:0x1d,_0x4acce6:0x548,_0x5e1c60:0x57f,_0x45b22a:0x470},_0xa4b470={_0x411e0a:0x11b,_0xe15c92:0x60,_0x5537f1:0x37,_0x3aebaa:0x2b1,_0x1004de:0x1e3,_0xf2f9db:0x2ff,_0x51816a:0x131,_0x1110e3:0x185},_0x53affc={_0x2949db:0xb6,_0x197992:0x7a},_0x3871f5={_0x858704:0x58,_0x4a2455:0xbd},_0x20c7a1={_0xee6360:0x7c,_0x1db8f1:0x3d,_0x531d95:0xbc,_0x4ef088:0x37f,_0x2f1efe:0x287,_0x43fc47:0x78,_0x419593:0x9a,_0x10968e:0x34,_0x234f48:0x44,_0x16137a:0x398,_0x46c5d9:0x424,_0x24b261:0x2ee,_0x28717b:0x3c7,_0x2f0e4e:0x2d},_0x4c9d79={_0xb560e3:0xb9,_0x23ea2e:0x176,_0x4f4bad:0xd5,_0x186871:0xef,_0x19b7a9:0x136,_0x2b7cd2:0x16,_0x382f2e:0x8a},_0x19f54c={_0x189356:0x337,_0x158cc9:0x29a,_0x1a8000:0x306},_0x3cce65={_0x57e77d:0x406,_0x43d477:0x394,_0x4abdb8:0x394,_0x46afc7:0x461,_0x3a5c8b:0x3a0,_0x2f7fbf:0x5c,_0x3736b3:0x16,_0x21dfd6:0x81,_0x269580:0x50c},_0x532d28={_0x4942a7:0xea,_0x5ac453:0x1b2,_0x2fdc81:0x551},_0x53fffb=[];let _0x55c275=![],_0x586d57;function _0xa4504a(_0x41846e,_0x49eb7a,_0x51a2d3,_0x2830d4){return _0x2e041c(_0x41846e-_0x532d28._0x4942a7,_0x49eb7a-_0x532d28._0x5ac453,_0x41846e-_0x532d28._0x2fdc81,_0x2830d4);}let _0x378515;const _0x339fcf=_0x5b9056=>{function _0x320936(_0x38bf0e,_0x1061f6,_0x8eb093,_0x31813f){return _0x3920(_0x8eb093-0x2fe,_0x31813f);}function _0x52d954(_0x56bf9a,_0x479602,_0x2502d7,_0x2d9a4d){return _0x3920(_0x479602- -0x1de,_0x56bf9a);}const _0x1b5def=_0x5b9056;try{_0x53fffb[_0x320936(0x3e1,_0x3cce65._0x57e77d,_0x3cce65._0x43d477,_0x3cce65._0x4abdb8)](JSON[_0x320936(0x434,0x4f9,_0x3cce65._0x46afc7,_0x3cce65._0x3a5c8b)](String(_0x1b5def[_0x52d954(-_0x3cce65._0x2f7fbf,_0x3cce65._0x3736b3,-0x5c,-_0x3cce65._0x21dfd6)]))),_0x378515?.(),_0x378515=void 0x0;}catch(_0x3b4e46){_0x586d57=new Error(_0x320936(0x3c2,_0x3cce65._0x269580,0x44d,0x48f)+toErrorMessage(_0x3b4e46)),_0x378515?.(),_0x378515=void 0x0;}},_0x33afd6=_0x3d507e=>{const _0x352bd0={_0xa8fc96:0x157};function _0x16e1f4(_0x78fea9,_0x24b31b,_0x1f3d2f,_0x1c62d7){return _0x3920(_0x1c62d7-0x3c1,_0x1f3d2f);}const _0x259cac=_0x3d507e;_0x586d57=new Error(_0x259cac[_0x5d8b2a(_0x19f54c._0x189356,0x1cc,_0x19f54c._0x158cc9,0x280)]||_0x5d8b2a(0x37f,0x2e3,0x30d,_0x19f54c._0x1a8000));function _0x5d8b2a(_0x5d5a8f,_0x1a4a08,_0x6a43aa,_0x517869){return _0x3920(_0x517869-_0x352bd0._0xa8fc96,_0x6a43aa);}_0x378515?.(),_0x378515=void 0x0;},_0x2841e2=_0x36f3db=>{const _0x584f22=_0x36f3db;!_0x55c275&&_0x584f22[_0x401353(-_0x4c9d79._0xb560e3,-_0x4c9d79._0x23ea2e,-_0x4c9d79._0x4f4bad,-_0x4c9d79._0x186871)]!==0x3e8&&!_0x586d57&&(_0x586d57=new Error(_0x584f22[_0x401353(-0xf9,-0x129,-0x8d,-0x1e0)]||_0x547db8(0xff,0xc0,_0x4c9d79._0x19b7a9,0x132)+_0x584f22[_0x547db8(_0x4c9d79._0x2b7cd2,0x7e,_0x4c9d79._0x382f2e,0xb4)]));_0x55c275=!![],_0x378515?.();function _0x401353(_0x1b5d0f,_0x1e7b33,_0x1e4a51,_0x5c93ef){return _0x3920(_0x1e7b33- -0x24c,_0x1b5d0f);}function _0x547db8(_0x25befa,_0x4ed7cd,_0x501a0e,_0x147973){return _0x3920(_0x25befa- -0xc0,_0x501a0e);}_0x378515=void 0x0;},_0x5bb33b=addAbortListener(_0xb9b646,()=>{function _0x42077a(_0x9f1e34,_0xfd3d9,_0x4bc628,_0x5059cc){return _0x3920(_0x9f1e34- -0x19f,_0x4bc628);}_0x586d57=toAbortError(_0xb9b646?.[_0x42077a(-_0x20c7a1._0xee6360,-0x5c,-_0x20c7a1._0x1db8f1,-_0x20c7a1._0x531d95)]);function _0x16c005(_0x174bad,_0x292cec,_0x321363,_0x384398){return _0x3920(_0x174bad-0x1d2,_0x292cec);}_0x215ea7[_0x16c005(0x30e,0x264,_0x20c7a1._0x4ef088,_0x20c7a1._0x2f1efe)]===WebSocket[_0x42077a(-_0x20c7a1._0x43fc47,-_0x20c7a1._0x419593,-_0x20c7a1._0x10968e,-_0x20c7a1._0x234f48)]&&_0x215ea7[_0x16c005(_0x20c7a1._0x16137a,_0x20c7a1._0x46c5d9,_0x20c7a1._0x24b261,_0x20c7a1._0x28717b)](0x3e8,_0x42077a(_0x20c7a1._0x2f0e4e,0x3c,-0x2,0x96)),_0x378515?.(),_0x378515=void 0x0;});_0x215ea7[_0x1e92ca(_0x3c3a89._0x1121be,0xe0,0x4c,0xb2)](_0x1e92ca(0x62,_0x3c3a89._0x4b32ac,0x61,0xaf),_0x339fcf),_0x215ea7['addEventListener'](_0xa4504a(0x44d,_0x3c3a89._0x5e9fc6,_0x3c3a89._0x28877c,_0x3c3a89._0x1ff0c1),_0x33afd6);function _0x1e92ca(_0x1b0e73,_0x5b5f71,_0x2c03c5,_0x1b429d){return _0x55f0a4(_0x1b0e73-_0x3871f5._0x858704,_0x5b5f71-_0x3871f5._0x4a2455,_0x1b429d,_0x1b0e73-0x2b5);}return _0x215ea7[_0x1e92ca(_0x3c3a89._0x4a1b10,0x98,0x42,_0x3c3a89._0x1b3f2f)](_0xa4504a(_0x3c3a89._0x4acce6,_0x3c3a89._0x5e1c60,0x4bf,0x54c),_0x2841e2),{async*[Symbol[_0xa4504a(0x43b,0x4a7,_0x3c3a89._0x45b22a,0x409)]](){const _0x54683e={_0x1263cd:0x76};function _0x59fd6d(_0x340806,_0x4845e3,_0x427431,_0x49dc69){return _0x1e92ca(_0x340806-_0x54683e._0x1263cd,_0x4845e3-0x1d8,_0x427431-0xf5,_0x427431);}function _0x30c523(_0x8d1cf0,_0x21381e,_0x2a5f9a,_0x647da7){return _0x1e92ca(_0x21381e-0x181,_0x21381e-_0x53affc._0x2949db,_0x2a5f9a-_0x53affc._0x197992,_0x8d1cf0);}try{while(!![]){if(_0x586d57)throw _0x586d57;if(_0x53fffb[_0x59fd6d(_0xa4b470._0x411e0a,_0xa4b470._0xe15c92,0x1be,0x164)]>0x0){yield _0x53fffb[_0x59fd6d(0xe9,0xe9,0x143,_0xa4b470._0x5537f1)]();continue;}if(_0x55c275)break;await new Promise(_0x49381f=>{_0x378515=_0x49381f;});}}finally{_0x215ea7[_0x30c523(0x328,_0xa4b470._0x3aebaa,0x2f4,0x2c0)](_0x30c523(0x259,_0xa4b470._0x1004de,0x15c,0x25b),_0x339fcf),_0x215ea7[_0x30c523(_0xa4b470._0xf2f9db,0x2b1,0x30b,0x35b)](_0x30c523(_0xa4b470._0x51816a,0x185,0x1db,0x1c0),_0x33afd6),_0x215ea7['removeEventListener'](_0x59fd6d(0x175,0xf8,0x1df,_0xa4b470._0x1110e3),_0x2841e2),_0x5bb33b();}}};}function toWebSocketUrl(_0x129f9e,_0x5aa104){const _0x2c581c={_0x430b35:0x53,_0x1a39ce:0x113,_0x348ed9:0x5f,_0x5ab282:0x126,_0x412933:0xc5,_0xd60830:0x1aa,_0x49a9f6:0x41,_0x2c11a3:0xf8},_0x2b2d8e={_0xbefe77:0x114},_0x3951e3={_0x247013:0x17f,_0x3b140c:0x31a};function _0x4df4b3(_0xb112bb,_0x4a24a3,_0x220296,_0x179f47){return _0x55f0a4(_0xb112bb-0x144,_0x4a24a3-_0x3951e3._0x247013,_0xb112bb,_0x179f47-_0x3951e3._0x3b140c);}const _0x5e2185=new URL(_0x5aa104,_0x129f9e);function _0x129b9f(_0x5e8752,_0x2c2cd9,_0x52feb2,_0x1bd245){return _0x2e041c(_0x5e8752-_0x2b2d8e._0xbefe77,_0x2c2cd9-0x128,_0x52feb2-0x1d8,_0x5e8752);}return _0x5e2185['protocol']=_0x5e2185['protocol']===_0x129b9f(0x8b,_0x2c581c._0x430b35,_0x2c581c._0x1a39ce,_0x2c581c._0x348ed9)?'wss:':_0x129b9f(_0x2c581c._0x5ab282,0x179,_0x2c581c._0x412933,0x150),_0x5e2185[_0x129b9f(_0x2c581c._0xd60830,_0x2c581c._0x49a9f6,_0x2c581c._0x2c11a3,0x45)]();}var ProviderSessionManager=class{[_0x55f0a4(-0x240,-0x220,-0x281,-0x28a)];[_0x55f0a4(-0x213,-0x1e7,-0x25c,-0x1e9)];constructor(_0x3d962f){const _0x2dd529={_0x36883f:0x120,_0x51647e:0x175,_0x15ea74:0x5e},_0x5441be={_0x5aaf03:0x1c,_0x1ff360:0x1dc};function _0x27b9ce(_0x3723b2,_0x57a31f,_0x153a04,_0x3cd0be){return _0x2e041c(_0x3723b2-0x1b2,_0x57a31f-_0x5441be._0x5aaf03,_0x3cd0be-_0x5441be._0x1ff360,_0x3723b2);}this[_0x27b9ce(_0x2dd529._0x36883f,_0x2dd529._0x51647e,_0x2dd529._0x15ea74,0xff)]=_0x3d962f;}async[_0x2e041c(-0x197,-0x1f2,-0x14b,-0xc8)](_0x1c60d3){const _0x2db970={_0x1c2da9:0x35c,_0x340823:0x42,_0x3352fe:0xcd,_0x205925:0x58},_0xa68abf={_0x113b97:0x4e9};function _0x57d26f(_0x51082a,_0x2b4706,_0x4221d2,_0x27428e){return _0x2e041c(_0x51082a-0x17f,_0x2b4706-0xfc,_0x51082a-0x109,_0x2b4706);}!this['cached']&&(this['cached']=this[_0x36587f(_0x2db970._0x1c2da9,0x40c,0x429,0x393)][_0x57d26f(-_0x2db970._0x340823,0x0,-0x102,-0x24)](_0x1c60d3));function _0x36587f(_0x49d3d5,_0x348fee,_0x4b2ca3,_0x40c4df){return _0x2e041c(_0x49d3d5-0xe7,_0x348fee-0x155,_0x348fee-_0xa68abf._0x113b97,_0x49d3d5);}return structuredClone(await this[_0x57d26f(_0x2db970._0x3352fe,0xcf,_0x2db970._0x205925,0x78)]);}[_0x2e041c(-0x42,-0x29,-0xbe,-0x4a)](){this['cached']=void 0x0;}};function _0xb3ca(){const _0x364397=['igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','l2nOyxqVy29TCgXLDgLVBNm','Bw9Kzq','mtGZnJK0mKnjsKzcva','C3vTBwfYAxPLza','yxn5BMnjDgvYyxrVCG','y2fSBf9Pza','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','D3m6','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','CMvHza','y29UDgvUDf9IBg9JA19KzwX0yq','B2jQzwn0','DNnJB2rLlZeUmta2lJe','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','B3v0Chv0','zw5HyMXLza','CMvZB2X2zunYzwrLBNrPywW','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','CMvZCg9UC2vZugf0Aa','B3bLBG','t3bLBKfPuMvZCg9UC2vZu3rYzwfTrxjYB3i','D3nZoG','zxjYB3i','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','C3rYzwfTshr0Cfn1CMzHy2u','zg9Uzq','yxbP','Bw9KzwW','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','CMvZCg9UC2vtB2nRzxrtDhjLyw0','C3LZDgvT','C3rHDhvZ','C2XPy2u','y29Kzq','CMvZCg9UC2uUy3jLyxrL','y29TCgXLDgvtDxjMywnL','BgLTAxrZ','DxnLCG','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','w0rptKvD','zMLUAxnOx3jLyxnVBG','A2LUza','C3vTBwfYEv9PBMrLEa','z2v0u3vYzMfJzq','zMLSDgvY','DxnLC1jLC3bVBNnLC0fWAq','ANnVBG','Dg9VBenHBgXpCMrLCG','z2v0tw9KzwXZ','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','yNvKz2v0vg9Rzw5Z','yxjNDw1LBNrZ','Aw5JBhvKzunVBNrLBNruExbL','zgvSDge','y2HVAwnLCW','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','zMLUza','z2L0AhvIqxbPvxjS','Dg9tDhjPBMC','zwrPDg9YvMvYC2LVBG','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','CMvZB2X2zxi','DgHPBMTPBMC','y2fWywjPBgL0AwvZ','CMvZCg9UC2vuzxH0ugfYDhm','ChjVDg9JB2XwzxjZAw9U','DgvZDa','DMLZAwjPBgL0Eq','r2L0shvIiefqssbLCNjVCIa','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','BNvTyMvY','ChjLCgfYzunOyxrszxf1zxn0','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','ywnJzxnZvg9Rzw4','AxrLBv9Pza','yM9KEq','DhLWzq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','AgvHzgvYuMvZB2X2zxi','l3jLC3bVBNnLCW','C3rYzwfTvMLHu3vYzMfJzq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','AxrLBq','ywDLBNq','Ahr0Chm6','BwfWqxbPrxjYB3i','zgLZywjSzwq','y29UDgvUDc10ExbL','yxv0BW','Aw5KzxHpzG','BwvZC2fNzuLK','Aw52ywXPzgf0zq','y29TCgXLDgu','yxv0Ag9YAxPHDgLVBG','y29UDgvUDf9IBg9JAW','B3v0Chv0sw5KzxHuB0nHBgXjza','BwvZC2fNzxm','Bwf4x291Dhb1Df90B2TLBNm','Dg9VBf91C2vFAwq','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','AxneB25L','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','zgvJB2rL','Cgf0Aa','Dgv4Da','mJy1mtu1murzsgn4Aq','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','C3vWCg9YDgvKx2vUzhbVAw50CW','B3bLBMfPx3jLyxnVBMLUzW','CMvHC29U','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','zxzLBNq','C3vYzMfJzq','t1bftG','y3jLyxrLsgvHzgvYCW','BwvZC2fNzq','yxbPs2v5','ue9tva','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','yxv0AfnJAgvTzq','zw5Kx3r1CM4','zwzMB3j0','Dg9VBc1JywXSlq','AM9PBG','CMvZCg9UC2vjza','zMLUywXszxnWB25Zzq','D2vIu29JA2v0rMfJDg9YEq','Bwv0Ag9K','Dgv4Dej5sw5KzxG','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','yNvPBgrqyxj0AwfSt3v0Chv0','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','C2HPzNq','BwfW','CMvHzhLtDgf0zq','t3bLBKfjiefqssbLCNjVCIa','yMfZzvvYBa','DMfSDwvZ','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','CMvHC29UAw5NsxrLBxm','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','AgfZ','y2HHDenVBxbSzxrPB25Zugf0Aa','B3bLBMfPlxjLC3bVBNnLCW','Ec1HCgKTA2v5','yMvHCMvY','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','CMvHC29UAw5Nx3rVA2vUCW','B3v0Chv0x3rVA2vUCW','qMvHCMvYia','l21VzgvSCW','C2LNBMf0DxjL','ChjVDMLKzxjbzgfWDgvY','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','ywrKrxzLBNrmAxn0zw5LCG','CMvKywn0zwrFDgHPBMTPBMC','Dgv4DfbHCNrZ','CM9Szq','y2HHDenVBxbSzxrL','C3vWCg9YDgvKrw5KCg9PBNrZ','C3rHCNrZv2L0Aa','mte4mtG2nK1RAhzLrW','B3v0Chv0x3rLEhq','BM93','Bwv0ywrHDge','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','BwvZC2fNzuLUzgv4','Dg9VBhm','C2vZC2LVBKLK','DxjS','mJaYns0Xmc0Wmq','yxbWBgLJyxrPB24VANnVBG','C3rHDhvZvgv4Da','CgfYC2u','y2f0y2G','C3rVCf9YzwfZB24','CMvZCg9UC2u','y3jLzgvUDgLHBa','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','DhjPBvn0yxj0','B3v0Chv0vg9Rzw5Z','BgvUz3rO','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','Bw9KzwXfBMrWB2LUDenHy2HL','nJq4mZmYsuLREwfp','CgfYC2vszxnWB25Zzq','zw5KCg9PBNrZ','Ahr0Cc1ZC2u','y29UC3vTzvnZzuv2zw50','ChjVBxb0x3rVA2vUCW','C29JA2v0','mZaXmtuYnvDKq0rNAq','C3vTBwfYEv90zxH0','r0vu','Dg9VBfvZzvn0yxj0rw1PDhrLza','C3rYzwfT','Aw5PDgLHBev2zw50','z2v0t3bLBKfPrgvSzwDHDgu','Aw5JBhvKzxm','yxbWBhLnB2rLBerLzMf1BhrZ','CMvWBgfJzq','Ahr0Cc1QC29U','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','Aw5KzxG','DgHLBG','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','Aw5WDxrFDg9Rzw5Z','CgvUzgLUzW','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','yxnZAxn0yw50','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','CM91DgvY','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','y29UC3vTzvDLyLnVy2TLDev2zw50','y29TCgXLDgvwAwfsB3v0zxi','y29UC3vTzuv2zw50','qMfZAa','y2fJAgvK','y29TCgXLDgvwAwftDxjMywnL','C3rYzwfTvMLHuM91DgvY','C3bSAwnL','Dgv4Df9KzwX0yq','zNvUy3rPB25Fy2fSBa','BwvZC2fNzv9ZDgfYDa','C2v0','C2vZC2LVBK1HBMfNzxi','DNnJB2rLlZeUmta0lJi','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','zNjVBuvUDhjPzxm','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','z2v0','y29UBMvJDf9MywLSzwq','y29WAwXVDc1JAgf0lZaUmZeUmW','CMvXDwvZDe11Dgf0B3jZ','C3bSAxq','CMvZCg9UC2vtB2nRzxq','AgvHzgvYCW','BhmGlwXH','u3vYzMfJzsa','C2vSzwn0u3vYzMfJzq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','mwHszuPxBG','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','yw50AhjVCgLJlxzLCNnPB24','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','CMvZCg9UC2uUzMfPBgvK','y2fWywjSzv9LBMrWB2LUDhm','Dg9bCgLfCNjVCG','rgLYzwn0igfUC3DLCJOG','Aw5WDxrFC2nOzw1H','C29YDa','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','CMvZCg9UC2vtDhjLyw0','y29UBMvJDgLUzW','BwvZC2fNzv9KzwX0yq','C3vTBwfYEuj5sw5KzxG','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','C3rYAw5N','DxnHz2u','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','CMvZB2X2zujHC2vvCMW','C3rYzwfTu3vYzMfJzq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','y2HHDgnTCgWT','ywrHChrPDMu','y2XVC2u','BxnNlq','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','Aw5WDxq','y29UDgvUDf9IBg9JA19ZDgfYDa','ywjVCNrLza','B3v0Chv0sw5KzxG','yxbPlwTLEq','yMXVy2TZ','zw50CMLLCW','DxrMltG','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','DhjHBNnWB3j0','zMLUAxnO','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','y29UDgvUDf9KzwX0yq','zwrPDg9YugX1z2LUvMvYC2LVBG','z3b0ltrV','zgvSzxrL','C2vUza','y3jLyxrLu3rYzwfTugfYC2vY','C29Tzq','z2v0uMvHzgvY','zw5JCNLWDgvKx2nVBNrLBNq','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','zMv0y2HjBxbS','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','CMvXDwvZDa','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','ChjLDMLVDxnszxnWB25ZzuLK','C3vTBwfYEq','DgHPBMTPBMDFzgvSDge','DxnLCI12AxnPyMXL','y29UDgvUDf9PBMrLEa','yw50AhjVCgLJrgvSzwDHDgu','BMfTzq','C2vZC2LVBI10B2TLBG','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','CMvZCg9UC2uUy29TCgXLDgvK','CMvHC29UAw5N','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C3rVCfjLyxnVBG','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','zgf0yq','ywnJzxb0','Dg9Rzw4','CMvTB3zLrxzLBNrmAxn0zw5LCG','Dg9VBa','Aw5WDxrkC29U','Dg9VBf9Yzxn1Bhq','mteWmJGWndburvrfzMy','zw5JCNLWDgvKq29UDgvUDa','yw50AhjVCgLJx3rOAw5RAw5N','AxnbCNjHEq','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','zNvUy3rPB24','y2fSBeLKvg9pDxrWDxrjBMrLEa','Dg9VBenHBgXZqNLjBMrLEa','yw50AhjVCgLJlw1LC3nHz2vZ','CMvZzxq','zNjVBq','CMvMDxnHBa','B3v0Chv0x2LUzgv4','CMvZB2X2zq','C3rYAw5NAwz5','Dg9VBf9JywXSCW','CMvXDwvZDhm','Dg9VBenHBgXZ','ywjVCNq','DMfSDwu','Aw50zxjSzwf2zwq','C2LNBMf0DxjLx2rLBhrH','z2v0qw50AhjVCgLJrgvSzwDHDgu','CMvHC29UAw5Nx3rLEhq','zgvZy3jPChrPB24','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','zgLZCgXHEq','zMv0y2G','zgf0ytO','y29TCgXLDgvK','y3jLyxrLuMvXDwvZDa','ChvZAa','Dgv4Dc9LDMvUDc1ZDhjLyw0','y29TCgXLDgLVBL90B2TLBNm','Dg9VBf91C2u','Dg9VBf91C2vFzgvSDge','mti3mtCWnMLJDKHvqq','B3jPz2LUlxrYywnRzxi','C2L6zq','Aw5WDxrFANnVBL9KzwX0yq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','Aw5WDxruB2TLBNm','BgfZDfjLC3bVBNnLswq','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','DhjPBq','yxnZAxn0yw50lq','C2vZC2LVBG','B3bLBMfPlxjLC3bVBNnLCY13CW','C3vYzMfJzxm','sw52ywXPzcbYzxf1zxn0oIa','ChjVDMLKzxjtDgf0zq','C2LNBMfS','ChjVEhK','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','y2HHDfn0CMvHBq','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B3bLBKfPrgvSzwDHDgu','y29UDgvUDa','Bwf4vg9Rzw5Z'];_0xb3ca=function(){return _0x364397;};return _0xb3ca();}async function prepareProviderRequest(_0x97214f,_0x4bdb35={}){const _0x2154df={_0x34a029:0xd9,_0x382cb7:0x80,_0x5a43ac:0x101,_0x27a901:0x6c,_0x71e508:0x6a},_0x39d59a={_0x3a8c9c:0x3b};function _0x463ee3(_0x2b54f0,_0x458779,_0x4a739f,_0x1417c0){return _0x55f0a4(_0x2b54f0-0x13b,_0x458779-_0x39d59a._0x3a8c9c,_0x2b54f0,_0x4a739f-0x50d);}let _0x55ff69={'request':structuredClone(_0x97214f),'session':_0x4bdb35[_0x4f86b8(_0x2154df._0x34a029,_0x2154df._0x382cb7,_0x2154df._0x5a43ac,0x1b)]?await _0x4bdb35[_0x4f86b8(0xd9,_0x2154df._0x27a901,0x4f,0xe2)]['resolve'](_0x4bdb35['signal']):void 0x0};function _0x4f86b8(_0x2c4a26,_0x17bd61,_0x4cd6f7,_0x4e0dc9){return _0x55f0a4(_0x2c4a26-0xb8,_0x17bd61-0x129,_0x17bd61,_0x2c4a26-0x2ba);}for(const _0x1d67ae of _0x4bdb35[_0x4f86b8(0xe2,0x91,_0x2154df._0x71e508,0x75)]??[]){_0x55ff69=await _0x1d67ae(_0x55ff69);}return _0x55ff69;}var RoutedModel=class{[_0x55f0a4(-0x358,-0x32e,-0x22d,-0x2ac)];[_0x55f0a4(-0x24a,-0x318,-0x273,-0x2ca)];['reasoning'];['apiKey'];[_0x2e041c(0x19,0x26,-0x91,-0x124)];[_0x2e041c(0x88,0x82,0x11,-0x1b)];['providerAdapter'];['requestMutators'];[_0x2e041c(-0x7c,-0xc1,-0x42,-0xc1)];[_0x55f0a4(-0x134,-0x20c,-0x12a,-0x1e1)];[_0x55f0a4(-0x299,-0x1eb,-0x1e3,-0x248)];[_0x55f0a4(-0x34d,-0x2a1,-0x303,-0x2d5)]=new Map();constructor(_0xf0b697){const _0x243592={_0x380e96:0x147,_0x40b778:0x135,_0x48537d:0x165,_0x355e64:0xac,_0xca2a9d:0xa8,_0x1ca0ce:0x488,_0x3d00c0:0x418,_0x269a0a:0x3f8,_0x408c2d:0x4e6,_0x58499a:0x4c0,_0x39bad3:0x433,_0x298590:0x3f9,_0x334ef5:0x3ce,_0x2bef62:0xed,_0x5a0d55:0x66,_0x2df027:0x478,_0x2a9357:0x4e5,_0x4d86c7:0x2f6,_0x63b453:0x2f1,_0x415c9b:0x185,_0x57795c:0x243,_0x422bad:0x74,_0x4b7325:0x73,_0x2f7391:0x2c,_0xaf97fb:0x73,_0x16ed74:0x127,_0x3fda36:0x2f,_0x303506:0x425,_0x352b9e:0x3c4,_0x54cea0:0x383,_0x255607:0x1f,_0x272305:0x1f,_0x2f180b:0x392,_0x9e1800:0x376,_0x1b7a4c:0x3a7,_0x4573fc:0x3b3,_0x28fee6:0x3cc,_0x46af0a:0x403,_0x2d0945:0xe3,_0x2d3ea0:0x11f,_0x294bdf:0x159,_0x2251b4:0x170,_0x181e0e:0x181},_0x14e0dd={_0x1370d5:0x1c9,_0x59e4f9:0x48},_0x537595={_0x21987d:0x12b,_0x4db338:0x614};this['model']=_0xf0b697[_0x2bcda7(-_0x243592._0x380e96,-0x1c8,-_0x243592._0x40b778,-0xfd)],this['maxTokens']=_0xf0b697[_0x2bcda7(-_0x243592._0x48537d,-_0x243592._0x355e64,-_0x243592._0xca2a9d,-0x216)]??0x4000;function _0x596c3b(_0x2b992d,_0x411fef,_0x1e0af6,_0xa1f2de){return _0x55f0a4(_0x2b992d-0xcd,_0x411fef-_0x537595._0x21987d,_0x411fef,_0x2b992d-_0x537595._0x4db338);}this[_0x596c3b(_0x243592._0x1ca0ce,_0x243592._0x3d00c0,_0x243592._0x269a0a,_0x243592._0x408c2d)]=_0xf0b697[_0x596c3b(_0x243592._0x1ca0ce,_0x243592._0x58499a,_0x243592._0x39bad3,0x4fa)]?structuredClone(_0xf0b697[_0x596c3b(0x488,_0x243592._0x298590,_0x243592._0x334ef5,0x3cf)]):void 0x0,this['apiKey']=_0xf0b697[_0x2bcda7(-_0x243592._0x2bef62,-0x53,-_0x243592._0x5a0d55,-0x154)],this['baseUrl']=_0xf0b697[_0x596c3b(0x3d6,0x3da,0x46e,0x3bf)],this[_0x596c3b(_0x243592._0x2df027,0x3d8,0x462,_0x243592._0x2a9357)]=_0xf0b697[_0x596c3b(0x32a,0x392,_0x243592._0x4d86c7,_0x243592._0x63b453)]??globalThis[_0x2bcda7(-_0x243592._0x415c9b,-0x183,-0x240,-_0x243592._0x57795c)];function _0x2bcda7(_0x168570,_0x3866ac,_0x10c573,_0x399a82){return _0x2e041c(_0x168570-_0x14e0dd._0x1370d5,_0x3866ac-0xaa,_0x168570- -_0x14e0dd._0x59e4f9,_0x3866ac);}this['providerAdapter']=_0xf0b697[_0x2bcda7(-0xc9,-0x5d,-0x7,-_0x243592._0x422bad)],this[_0x2bcda7(-_0x243592._0x4b7325,-0xbd,-_0x243592._0x2f7391,-0x9c)]=_0xf0b697[_0x2bcda7(-_0x243592._0xaf97fb,-_0x243592._0x16ed74,0x18,-0xe1)]??[],this[_0x2bcda7(-0x8a,-0x101,0x29,_0x243592._0x3fda36)]=_0xf0b697[_0x596c3b(_0x243592._0x303506,0x39a,_0x243592._0x352b9e,_0x243592._0x54cea0)],this['sessionManager']=_0xf0b697[_0x2bcda7(-0x7c,-_0x243592._0x255607,-0xd8,_0x243592._0x272305)]??(_0xf0b697[_0x596c3b(_0x243592._0x2f180b,0x2d1,0x39f,_0x243592._0x9e1800)]?new ProviderSessionManager(_0xf0b697[_0x596c3b(0x392,_0x243592._0x1b7a4c,0x30e,_0x243592._0x4573fc)]):void 0x0),this[_0x596c3b(_0x243592._0x28fee6,0x3db,_0x243592._0x46af0a,0x486)]=_0xf0b697[_0x2bcda7(-_0x243592._0x2d0945,-0x145,-_0x243592._0x2d3ea0,-_0x243592._0x294bdf)]??createDefaultWebSocketFactory();for(const _0x1fed6c of _0xf0b697[_0x2bcda7(-_0x243592._0x2251b4,-0x135,-0x166,-_0x243592._0x181e0e)]){this['surfaces']['set'](_0x1fed6c['id'],_0x1fed6c);}}[_0x55f0a4(-0x20b,-0x21f,-0x317,-0x26a)](_0x1218bc,_0x18e408){const _0x2ec5e9={_0x5c8127:0x385,_0x177bf4:0x311},_0x5f1209={_0xb6b41a:0xac};function _0x26b47e(_0x1d2941,_0x1e6bee,_0xb4f5fb,_0x229eca){return _0x55f0a4(_0x1d2941-0x164,_0x1e6bee-_0x5f1209._0xb6b41a,_0xb4f5fb,_0x1d2941-0x59c);}return this[_0x26b47e(0x3b0,0x3a7,_0x2ec5e9._0x5c8127,_0x2ec5e9._0x177bf4)](_0x1218bc,_0x18e408);}[_0x55f0a4(-0x22f,-0x15e,-0x204,-0x202)](_0x58ea08,_0xc82304){return this['streamViaRouter'](_0x58ea08,_0xc82304);}async[_0x55f0a4(-0x17b,-0x23e,-0x21f,-0x1ec)](_0x10179b,_0x497447){const _0x48c597=this['applyModelDefaults'](_0x10179b),_0x53723e=await this['router']['selectSurface'](_0x48c597,{'mode':'complete'});return this['completeViaSurface'](_0x48c597,_0x53723e,_0x497447);}async*[_0x2e041c(-0x64,-0x9f,-0x3a,0x78)](_0xa8bf08,_0x394ef3){const _0xe6ea8e={_0x8cfb12:0x17b,_0x564596:0x8,_0x4ef910:0xc1,_0x28f9f1:0x22,_0x391899:0x227,_0x208f8f:0x207,_0x56708c:0x222},_0xf7a889={_0x780740:0x77},_0x47d316={_0x523039:0x1e7};function _0x57e460(_0x3079bb,_0x37de55,_0x224c2c,_0x2e442a){return _0x55f0a4(_0x3079bb-0x6f,_0x37de55-0x1a4,_0x2e442a,_0x3079bb-_0x47d316._0x523039);}function _0x3e3a93(_0x3b3c7e,_0x4a780f,_0x1cbf11,_0x1efb38){return _0x55f0a4(_0x3b3c7e-0x141,_0x4a780f-_0xf7a889._0x780740,_0x1cbf11,_0x1efb38-0x379);}const _0x1c0e0b=this[_0x3e3a93(0x14d,0xd2,0x22f,_0xe6ea8e._0x8cfb12)](_0xa8bf08),_0x4f3e61=await this[_0x57e460(-_0xe6ea8e._0x564596,-_0xe6ea8e._0x4ef910,-0x98,_0xe6ea8e._0x28f9f1)][_0x3e3a93(_0xe6ea8e._0x391899,_0xe6ea8e._0x208f8f,_0xe6ea8e._0x56708c,0x1a7)](_0x1c0e0b,{'mode':'stream'});yield*this['streamViaSurface'](_0x1c0e0b,_0x4f3e61,_0x394ef3);}async[_0x55f0a4(-0x198,-0x279,-0x26d,-0x1e8)](_0x382470,_0x203855,_0xbd2efe){const _0x3f0016={_0x2f31c2:0x44e,_0x2f1bb6:0x3ef,_0x550bcf:0x541,_0x5bfa5e:0x1e2,_0x233911:0x5e1,_0x1ad248:0x1f2,_0x34fe7c:0x291,_0x4c8839:0x1ef,_0x4e3b11:0x4de,_0x3d8a32:0x521,_0x3c8065:0x281,_0x1e7775:0x234,_0x362356:0x3be,_0x5ec038:0x3f3,_0x36f4f9:0x1fc,_0x5cb938:0x567,_0x513655:0x30e},_0x41174={_0x936231:0xc8},_0x25ca66={_0x2e540d:0x161,_0x574bb6:0xba,_0x34619e:0x6ea},_0x46b165=this['applyModelDefaults'](_0x382470),_0x584d46=this[_0x4f2e6a(_0x3f0016._0x2f31c2,0x4b3,_0x3f0016._0x2f1bb6,0x3c5)](_0x203855);if(_0x584d46[_0x4f2e6a(_0x3f0016._0x550bcf,0x577,0x58a,0x4a4)]===_0x2640d0(-_0x3f0016._0x5bfa5e,-0x1c9,-0x221,-0x1c8)){const _0x484dcd=await this['sendHttpSurfaceRequest'](_0x46b165,_0x584d46,![],_0xbd2efe?.['signal']);if(!_0x484dcd['ok'])throw await this[_0x4f2e6a(0x521,0x4dd,_0x3f0016._0x233911,0x47b)](_0x484dcd);if(!_0x584d46[_0x2640d0(-_0x3f0016._0x1ad248,-_0x3f0016._0x34fe7c,-0x24a,-_0x3f0016._0x4c8839)])throw new Error('Surface\x20'+_0x203855+'\x20does\x20not\x20support\x20non-streaming\x20responses');return _0x584d46[_0x4f2e6a(_0x3f0016._0x4e3b11,0x5a0,_0x3f0016._0x3d8a32,0x53f)](await _0x484dcd[_0x2640d0(-0x27f,-0x2c0,-_0x3f0016._0x3c8065,-_0x3f0016._0x1e7775)](),_0x46b165);}let _0x26df68;function _0x4f2e6a(_0x43cebe,_0x2f8337,_0x3243c2,_0x5cfdfa){return _0x55f0a4(_0x43cebe-_0x25ca66._0x2e540d,_0x2f8337-_0x25ca66._0x574bb6,_0x2f8337,_0x43cebe-_0x25ca66._0x34619e);}function _0x2640d0(_0x32ab69,_0x1fdd3e,_0x23aa56,_0x535fbd){return _0x2e041c(_0x32ab69-0xe8,_0x1fdd3e-_0x41174._0x936231,_0x32ab69- -0x193,_0x1fdd3e);}for await(const _0x253be6 of this[_0x4f2e6a(0x474,_0x3f0016._0x362356,0x41b,_0x3f0016._0x5ec038)](_0x46b165,_0x203855,_0xbd2efe)){_0x253be6['type']==='done'&&(_0x26df68=_0x253be6[_0x2640d0(-_0x3f0016._0x36f4f9,-0x1d2,-0x1af,-0x21c)]);}if(!_0x26df68)throw new Error(_0x4f2e6a(0x517,_0x3f0016._0x5cb938,0x529,0x55a)+_0x203855+_0x2640d0(-0x2b3,-0x306,-0x2fc,-_0x3f0016._0x513655));return _0x26df68;}async*[_0x55f0a4(-0x2e8,-0x2e9,-0x28d,-0x276)](_0x68ed7e,_0x54562b,_0x3e79eb){const _0x4f3e29={_0x2a8f74:0x22c,_0x569dc2:0x286,_0x93b4f3:0x260,_0x34b47f:0x27b,_0x4e7a54:0x76,_0x3d947a:0x1b,_0x2f1ad3:0x7e,_0x3dd5ad:0xd2,_0x5d2aa7:0x1ca,_0x8fdd13:0x23,_0x53a709:0x25,_0x1e877d:0x197,_0x1b3795:0x174,_0x7a5e15:0x112,_0x231028:0x16b},_0x591aaf={_0x3e5495:0x20},_0x1b2b8a={_0x29c3ac:0x107,_0x3b1f72:0x16},_0x56f000=this[_0x33b416(0x1fd,0x248,_0x4f3e29._0x2a8f74,0x2ca)](_0x68ed7e),_0x5b5ef7=this[_0x33b416(0x250,0x1aa,0x240,0x23b)](_0x54562b);if(_0x5b5ef7[_0x33b416(_0x4f3e29._0x569dc2,0x29d,_0x4f3e29._0x93b4f3,_0x4f3e29._0x34b47f)]===_0x5d5a38(-_0x4f3e29._0x4e7a54,-_0x4f3e29._0x3d947a,-_0x4f3e29._0x2f1ad3,-0xda)){yield{'type':_0x5d5a38(-0x128,-0x1ea,-_0x4f3e29._0x3dd5ad,-_0x4f3e29._0x5d2aa7),'response':await this['completeViaSurface'](_0x56f000,_0x54562b,_0x3e79eb)};return;}if(_0x5b5ef7[_0x5d5a38(-_0x4f3e29._0x8fdd13,-0x2b,-_0x4f3e29._0x53a709,0x1)]==='http-sse'){yield*this[_0x33b416(0x216,_0x4f3e29._0x1e877d,0xec,0x228)](_0x56f000,_0x5b5ef7,_0x3e79eb?.[_0x33b416(_0x4f3e29._0x1b3795,0x174,0x186,0xd5)]);return;}function _0x5d5a38(_0x3d41c1,_0x3ebf90,_0x2a00d8,_0x1272be){return _0x55f0a4(_0x3d41c1-_0x1b2b8a._0x29c3ac,_0x3ebf90-_0x1b2b8a._0x3b1f72,_0x1272be,_0x3d41c1-0x186);}function _0x33b416(_0x53435b,_0x5993de,_0x11af6c,_0x5e144f){return _0x2e041c(_0x53435b-_0x591aaf._0x3e5495,_0x5993de-0x32,_0x5993de-0x299,_0x53435b);}yield*this[_0x5d5a38(-0xf8,-_0x4f3e29._0x7a5e15,-0xa2,-_0x4f3e29._0x231028)](_0x56f000,_0x5b5ef7,_0x3e79eb?.['signal']);}async['sendRawRequest'](_0x484d7c){const _0x4fde14={_0x19187b:0x12e,_0x64e4ad:0xdf,_0x515163:0x56,_0x87715e:0x449,_0x854420:0x3ee,_0x84a548:0x3e9,_0x3d5b21:0x408,_0x13fbfa:0xf8,_0x198272:0x11c,_0x272385:0x11a},_0x55948a={_0xb88414:0x3a},_0x134137={_0x2d6293:0x91,_0x572681:0x244,_0x32a8b1:0xf5,_0x2879f0:0x197,_0x5c6a41:0x22e,_0x264569:0xf4,_0x4dc9cb:0x182,_0x5f0245:0x291,_0x3a87b3:0x265,_0x251a4f:0x12f,_0x57c4b5:0xf6,_0x4662c8:0x80,_0x32ca37:0x37,_0x11b2e8:0x215,_0x14baa6:0x28f,_0x17b296:0x219,_0x1e997f:0x248,_0x349b95:0x10d,_0x517b17:0x171,_0x4ef951:0x252,_0x4495ee:0x249,_0x21ab54:0x25a,_0x3f6d36:0x1a3},_0xbda1c3={_0x5cea72:0x34a},_0x5d5a83={_0x2a3c14:0x22c},_0x227fc6=async()=>{const _0x9493f4=this[_0x4006d4(-0x93,-0x46,-0x144,-_0x134137._0x2d6293)]?await this[_0x1f0d02(-0x1af,-0x1cf,-0x124,-_0x134137._0x572681)][_0x4006d4(-_0x134137._0x32a8b1,-0x13f,-_0x134137._0x2879f0,-0x1a8)](_0x484d7c[_0x4006d4(-0x23c,-_0x134137._0x5c6a41,-_0x134137._0x264569,-_0x134137._0x4dc9cb)]):void 0x0;function _0x4006d4(_0x2ac111,_0x3604bb,_0x42fb5c,_0x5eceb0){return _0x3920(_0x5eceb0- -_0x5d5a83._0x2a3c14,_0x42fb5c);}const _0x233786=this['providerAdapter'][_0x1f0d02(-0x285,-_0x134137._0x5f0245,-0x2e1,-_0x134137._0x3a87b3)](this['apiKey'],_0x9493f4);if(!_0x233786)throw this[_0x4006d4(-_0x134137._0x251a4f,-0xbc,-0x1fc,-0x160)]();const _0x3aaffe=await this['createHeaders']({'body':_0x484d7c[_0x4006d4(-_0x134137._0x57c4b5,-0x1cf,-0x18f,-0x12b)],'credential':_0x233786,'session':_0x9493f4,'stream':![]},{'accept':_0x484d7c[_0x4006d4(-_0x134137._0x4662c8,-0x3b,-0x7c,-0x37)]??_0x4006d4(-0x27,-_0x134137._0x32ca37,-0x122,-0xcb),'includeContentType':_0x484d7c[_0x1f0d02(-_0x134137._0x11b2e8,-0x23b,-0x2ad,-0x2c9)]===_0x1f0d02(-0x21f,-_0x134137._0x14baa6,-_0x134137._0x17b296,-_0x134137._0x1e997f)});function _0x1f0d02(_0x3c42fb,_0x46cc80,_0x3e6678,_0x1e2aaf){return _0x3920(_0x3c42fb- -_0xbda1c3._0x5cea72,_0x3e6678);}return this[_0x1f0d02(-0x16a,-0x1cc,-0xed,-_0x134137._0x349b95)](''+this['providerAdapter'][_0x1f0d02(-0x18a,-0xcc,-0x139,-0x12d)](this['baseUrl'],_0x9493f4)+_0x484d7c[_0x1f0d02(-0x22d,-0x200,-0x1ab,-_0x134137._0x517b17)],{'method':_0x484d7c[_0x4006d4(-0x1a0,-0x6a,-0x120,-0xf7)],'headers':_0x3aaffe,..._0x484d7c['body']!==void 0x0?{'body':JSON[_0x1f0d02(-0x2c5,-_0x134137._0x4ef951,-0x240,-0x29e)](_0x484d7c[_0x1f0d02(-_0x134137._0x4495ee,-0x222,-_0x134137._0x21ab54,-0x1ae)])}:{},'signal':_0x484d7c[_0x4006d4(-_0x134137._0x3f6d36,-0x199,-0x176,-0x182)]});},_0xe64cdf=await _0x227fc6();if(_0xe64cdf[_0x3f3a77(_0x4fde14._0x19187b,_0x4fde14._0x64e4ad,_0x4fde14._0x515163,0xc0)]!==0x191||!this[_0x2b86a1(0x3ba,_0x4fde14._0x87715e,_0x4fde14._0x854420,0x3f5)])return _0xe64cdf;function _0x3f3a77(_0x4b8f2d,_0x5933ad,_0x12292b,_0x41b452){return _0x2e041c(_0x4b8f2d-0x18f,_0x5933ad-0x151,_0x5933ad-0x1da,_0x4b8f2d);}function _0x2b86a1(_0x3f9c73,_0x1dffa6,_0x5a649f,_0x4a24f6){return _0x55f0a4(_0x3f9c73-_0x55948a._0xb88414,_0x1dffa6-0x10e,_0x1dffa6,_0x5a649f-0x5cf);}return this[_0x2b86a1(_0x4fde14._0x84a548,_0x4fde14._0x3d5b21,0x3ee,0x39c)][_0x3f3a77(_0x4fde14._0x13fbfa,_0x4fde14._0x198272,_0x4fde14._0x272385,0x1a5)](),_0x227fc6();}[_0x2e041c(-0x1b7,-0x138,-0x103,-0x13d)](){const _0x95f40={_0x2ab9e6:0x48d,_0x323a2b:0x424,_0x5e490c:0x3ca,_0x139102:0x32c},_0x3951d2={_0x864044:0x11a},_0x214626={_0x1bdd8d:0xe3,_0x31cbf9:0x56a};function _0x253b4e(_0x5315b7,_0x136d33,_0x1f5609,_0x34b503){return _0x2e041c(_0x5315b7-_0x214626._0x1bdd8d,_0x136d33-0x1b0,_0x1f5609-_0x214626._0x31cbf9,_0x34b503);}function _0x2052f5(_0x5062c0,_0x3e3439,_0x17a7f0,_0x17431c){return _0x2e041c(_0x5062c0-0x16,_0x3e3439-_0x3951d2._0x864044,_0x3e3439-0x4cd,_0x17431c);}return this[_0x2052f5(_0x95f40._0x2ab9e6,0x44c,_0x95f40._0x323a2b,0x4ef)][_0x2052f5(0x3f5,_0x95f40._0x5e490c,0x3ae,_0x95f40._0x139102)]();}async[_0x55f0a4(-0x298,-0x1b1,-0x2f4,-0x254)](_0x1e3c41,_0x4f50ce){const _0x3e918a={_0xfba73e:0xb9},_0x16d634={_0x437fe1:0x2b,_0x3c02f9:0x28};function _0x1cc629(_0x4784b1,_0x3e3b1d,_0x12f1c6,_0x473860){return _0x2e041c(_0x4784b1-_0x16d634._0x437fe1,_0x3e3b1d-_0x16d634._0x3c02f9,_0x4784b1-0x145,_0x473860);}return await this[_0x1cc629(0xc4,0x127,0x16b,_0x3e918a._0xfba73e)]['createHeaders'](_0x1e3c41,_0x4f50ce);}['mapApiError'](_0xf8b0ad){const _0x280826={_0x16a25e:0xab,_0x35212e:0xab},_0x2e8b3d={_0x470721:0x27},_0x72c49e={_0x1df0d3:0x15b,_0x3dee8c:0x13e};function _0x3b00ba(_0x4a3652,_0x53807e,_0x2d8354,_0x599ce5){return _0x55f0a4(_0x4a3652-_0x72c49e._0x1df0d3,_0x53807e-_0x72c49e._0x3dee8c,_0x2d8354,_0x4a3652-0x1c6);}function _0x3f52dc(_0x4f0076,_0xf9aeee,_0x5b088b,_0x13eb4e){return _0x2e041c(_0x4f0076-0x1d2,_0xf9aeee-_0x2e8b3d._0x470721,_0x4f0076-0x216,_0x13eb4e);}return this[_0x3f52dc(0x195,0x1b0,0x199,0xe2)][_0x3b00ba(-_0x280826._0x16a25e,0xb,-_0x280826._0x35212e,-0x1e)](_0xf8b0ad);}async['toApiError'](_0x3f580a){const _0x2efb33={_0x42b3a3:0xf5,_0x28de1b:0x52,_0x4d4456:0x3f0},_0x36be1d={_0x33f9bf:0x1,_0x5ebf6d:0x1ed},_0x512b8f={_0x1236ed:0x6d,_0x2131ff:0x431};function _0xdd1b77(_0x17b299,_0x4f9156,_0x275b72,_0x3ffc64){return _0x2e041c(_0x17b299-0x3,_0x4f9156-_0x512b8f._0x1236ed,_0x4f9156-_0x512b8f._0x2131ff,_0x17b299);}function _0x4f8407(_0x4dc6bf,_0x3e0ecd,_0x471b46,_0x2f6c3b){return _0x2e041c(_0x4dc6bf-_0x36be1d._0x33f9bf,_0x3e0ecd-_0x36be1d._0x5ebf6d,_0x2f6c3b-0x2f,_0x471b46);}return await this[_0x4f8407(0x2d,0x11,-_0x2efb33._0x42b3a3,-_0x2efb33._0x28de1b)][_0xdd1b77(0x3b4,0x415,0x426,_0x2efb33._0x4d4456)](_0x3f580a);}[_0x55f0a4(-0x2f1,-0x33e,-0x319,-0x29c)](_0x58d100){const _0x4e8004={_0x5a9cc1:0x380,_0xda2579:0x462,_0x2c186b:0x4a0,_0x253259:0x3ad},_0x2026b8={_0x4cc68c:0x77},_0xfcb641={_0x1e2217:0x4},_0x32fdae=this[_0x4a6243(0x2ea,0x37a,_0x4e8004._0x5a9cc1,0x356)][_0x4a6243(_0x4e8004._0xda2579,_0x4e8004._0x2c186b,0x47a,0x4d6)](_0x58d100);function _0x4a6243(_0x1b8e33,_0x56c294,_0x5e36c,_0x3fe9a5){return _0x55f0a4(_0x1b8e33-0x87,_0x56c294-_0xfcb641._0x1e2217,_0x56c294,_0x5e36c-0x655);}function _0x556390(_0x465ec7,_0x5db428,_0xa6a63a,_0xa9a89a){return _0x2e041c(_0x465ec7-_0x2026b8._0x4cc68c,_0x5db428-0x104,_0x465ec7-0x242,_0xa6a63a);}if(!_0x32fdae)throw new Error(_0x4a6243(0x3f3,_0x4e8004._0x253259,0x465,0x4e3)+_0x58d100);return _0x32fdae;}async[_0x55f0a4(-0x2d6,-0x2f8,-0x24c,-0x27f)](_0x44c5fa,_0x452916){const _0x2ff464={_0x21f68b:0x2,_0x1809bb:0xbf,_0x6c5d9d:0x4cc,_0x2f9303:0x528,_0x1d39c0:0x4b9,_0x51cb8c:0x10c,_0x54ab17:0xbf,_0x2e17fb:0x78,_0x5f395b:0x10c,_0x2920d4:0x13d,_0xd5706c:0x137,_0x42a7b2:0x128,_0x39ece0:0xe1,_0x2b63d5:0x195,_0x5af383:0x202,_0x33b15c:0x256,_0x38fe2b:0x1b5,_0x387347:0x1b7,_0x3c91ed:0x18e,_0x4f1bcc:0x7a,_0x2c0a74:0x10c,_0x171b1f:0x589,_0x52edba:0x4a7,_0x48817e:0x4f5,_0x102149:0x4d5,_0x5d39e2:0x276,_0x3d7e19:0x17b,_0x2b76a5:0x11e,_0x5566c1:0x1b5},_0x402f99={_0x444d2f:0x178,_0xb495a0:0x111,_0x1cc7f2:0x122},_0x567a1c={_0x2844dc:0x103};function _0x48e10c(_0x70ea66,_0x49561e,_0x158ea4,_0x503aec){return _0x2e041c(_0x70ea66-0x1a3,_0x49561e-_0x567a1c._0x2844dc,_0x503aec-0x4e4,_0x49561e);}function _0x286a2f(_0x3e8a0c,_0x2cfb51,_0x54af44,_0xed7fd7){return _0x55f0a4(_0x3e8a0c-_0x402f99._0x444d2f,_0x2cfb51-_0x402f99._0xb495a0,_0x3e8a0c,_0xed7fd7-_0x402f99._0x1cc7f2);}const _0xb77486=toModelRequest(_0x44c5fa),_0x34a434=await prepareProviderRequest(_0xb77486,{'sessionManager':this[_0x286a2f(-0x119,-_0x2ff464._0x21f68b,-0x172,-_0x2ff464._0x1809bb)],'requestMutators':this[_0x48e10c(_0x2ff464._0x6c5d9d,0x438,_0x2ff464._0x2f9303,_0x2ff464._0x1d39c0)],'signal':_0x452916}),_0x3c2e55=toChatRequest(_0x34a434[_0x286a2f(-_0x2ff464._0x51cb8c,-0x63,-_0x2ff464._0x54ab17,-_0x2ff464._0x2e17fb)]),_0x31a504=this[_0x286a2f(-_0x2ff464._0x5f395b,-0x1a8,-_0x2ff464._0x2920d4,-0x10c)][_0x286a2f(-_0x2ff464._0xd5706c,-_0x2ff464._0x42a7b2,-_0x2ff464._0x39ece0,-_0x2ff464._0x2b63d5)](this['apiKey'],_0x34a434[_0x286a2f(-_0x2ff464._0x5af383,-_0x2ff464._0x33b15c,-0xff,-_0x2ff464._0x38fe2b)]);if(!_0x31a504)throw this[_0x286a2f(-0x1fe,-_0x2ff464._0x387347,-0x245,-_0x2ff464._0x3c91ed)]();return{'baseUrl':this[_0x286a2f(-0x99,-_0x2ff464._0x4f1bcc,-0x11d,-_0x2ff464._0x2c0a74)][_0x48e10c(_0x2ff464._0x171b1f,_0x2ff464._0x52edba,_0x2ff464._0x48817e,_0x2ff464._0x102149)](this['baseUrl'],_0x34a434[_0x286a2f(-_0x2ff464._0x5d39e2,-_0x2ff464._0x3d7e19,-_0x2ff464._0x2b76a5,-_0x2ff464._0x5566c1)]),'credential':_0x31a504,'request':_0x3c2e55,'session':_0x34a434['session']};}[_0x2e041c(-0x3b,-0xaa,-0x51,0x24)](_0x40232d){const _0x1509d2={_0x3f5fac:0x4fa,_0x55620e:0x560,_0x299c9d:0x57f},_0x918d5e={_0x4951ab:0x89,_0x548b31:0x145,_0x3bc15a:0x6d7},_0x58f0e7={_0x26c29f:0x118};function _0xd64bdb(_0x164a6f,_0x309bad,_0xfa526c,_0x3d427f){return _0x55f0a4(_0x164a6f-0x8e,_0x309bad-_0x58f0e7._0x26c29f,_0x309bad,_0x3d427f-0x737);}function _0x2e520b(_0x57d75b,_0x23e29f,_0x1109ee,_0x59f896){return _0x55f0a4(_0x57d75b-_0x918d5e._0x4951ab,_0x23e29f-_0x918d5e._0x548b31,_0x57d75b,_0x1109ee-_0x918d5e._0x3bc15a);}return{...structuredClone(_0x40232d),..._0x40232d[_0x2e520b(_0x1509d2._0x3f5fac,0x579,0x54b,_0x1509d2._0x55620e)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x2e520b(_0x1509d2._0x299c9d,0x5ed,0x54b,0x52f)])}:{}};}async['sendHttpSurfaceRequest'](_0x4fcaa4,_0xfe5b87,_0x310510,_0x420afd){const _0x12024c={_0x2b4c09:0x1b4,_0x15a834:0x1c3,_0x70fc86:0x1e3},_0x19c4a5={_0x1db073:0x1c7,_0x551e79:0x41},_0x4c6cb8={_0x3d2a56:0x49,_0x1db745:0x18f},_0x3c7f62={_0x3d6a1b:0x269,_0x41dbfe:0x275,_0x1dce22:0x440,_0x15c562:0x424,_0xa237fa:0x407,_0x5ab058:0xe0,_0x57ec3d:0x2b3,_0x4f3357:0x251,_0x3ce19b:0x491,_0x23216a:0x4b7,_0x5403fe:0x609,_0x17b6a4:0x296,_0x24c029:0x299,_0x3f2c09:0x19c,_0x4d1cf2:0x169,_0xdbd2c7:0x449,_0x219d56:0x434,_0x12653e:0x45d,_0xcb57b4:0xb9,_0x592113:0x402,_0x29414a:0x426,_0x48e529:0x381,_0x51fe1f:0x43c,_0x754c5e:0x146,_0x46a1ed:0x529,_0x77b2af:0x50b,_0x511bd6:0x16d,_0x28b830:0x190,_0x15c944:0x153,_0x4bb075:0x48b,_0x15c49c:0x249,_0x4dc168:0x2b5,_0x3c2933:0x18b,_0x4a9047:0x23a,_0x14b982:0x278,_0x4abda0:0x2e4,_0x365c89:0x2aa,_0x4d52a6:0x265,_0xae853e:0x24c,_0x4551f3:0x229,_0x571176:0x282,_0x46179f:0x2e1,_0x31e9bd:0x2f0},_0x383061=async()=>{const _0x1442ca=await this[_0x196e64(-_0x3c7f62._0x3d6a1b,-_0x3c7f62._0x41dbfe,-0x2c1,-0x2df)](_0x4fcaa4,_0x420afd);function _0x196e64(_0x178adf,_0x48e0a,_0x559a59,_0x586892){return _0x3920(_0x178adf- -0x366,_0x559a59);}const _0x167812=_0xfe5b87[_0x5cc810(_0x3c7f62._0x1dce22,_0x3c7f62._0x15c562,_0x3c7f62._0xa237fa,0x4e0)](_0x1442ca[_0x196e64(-0x184,-0x188,-_0x3c7f62._0x5ab058,-0x1e1)]);if(!_0x167812['path'])throw new Error('Surface\x20'+_0xfe5b87['id']+_0x196e64(-_0x3c7f62._0x57ec3d,-0x272,-0x23a,-_0x3c7f62._0x4f3357));function _0x5cc810(_0x431d3b,_0x44efca,_0xa5cdb,_0x3583f1){return _0x3920(_0x44efca-0x38f,_0xa5cdb);}const _0x3ef983=await this[_0x5cc810(_0x3c7f62._0x3ce19b,_0x3c7f62._0x23216a,0x489,0x3fa)]({'request':_0x1442ca[_0x5cc810(_0x3c7f62._0x5403fe,0x571,0x501,0x631)],'body':_0x167812[_0x196e64(-0x265,-0x25f,-0x1aa,-_0x3c7f62._0x17b6a4)],'credential':_0x1442ca[_0x196e64(-0x1ff,-_0x3c7f62._0x24c029,-_0x3c7f62._0x3f2c09,-_0x3c7f62._0x4d1cf2)],'session':_0x1442ca[_0x5cc810(_0x3c7f62._0xdbd2c7,_0x3c7f62._0x219d56,0x4a0,_0x3c7f62._0x12653e)],'stream':_0x310510},{'accept':_0x167812[_0x196e64(-0x171,-0x1de,-0x158,-_0x3c7f62._0xcb57b4)]??(_0x310510?_0x5cc810(_0x3c7f62._0x592113,_0x3c7f62._0x29414a,_0x3c7f62._0x48e529,0x3ac):_0x5cc810(0x4b2,0x4f0,_0x3c7f62._0x51fe1f,0x522)),'includeContentType':_0x167812['body']!==void 0x0});for(const [_0x2ba0d4,_0x19590a]of Object[_0x196e64(-0x196,-0x218,-0x216,-_0x3c7f62._0x754c5e)](_0x167812[_0x5cc810(0x5c6,0x536,0x495,0x508)]??{})){_0x3ef983[_0x5cc810(0x49a,_0x3c7f62._0x46a1ed,_0x3c7f62._0x77b2af,0x531)](_0x2ba0d4,_0x19590a);}return this[_0x196e64(-0x186,-_0x3c7f62._0x511bd6,-_0x3c7f62._0x28b830,-_0x3c7f62._0x15c944)](''+_0x1442ca[_0x5cc810(0x48c,0x4cd,0x414,_0x3c7f62._0x4bb075)]+_0x167812[_0x196e64(-_0x3c7f62._0x15c49c,-_0x3c7f62._0x4dc168,-_0x3c7f62._0x3c2933,-_0x3c7f62._0x4a9047)],{'method':_0x196e64(-0x23b,-_0x3c7f62._0x14b982,-_0x3c7f62._0x4abda0,-_0x3c7f62._0x365c89),'headers':_0x3ef983,..._0x167812[_0x196e64(-_0x3c7f62._0x4d52a6,-_0x3c7f62._0xae853e,-_0x3c7f62._0x4551f3,-_0x3c7f62._0x571176)]!==void 0x0?{'body':JSON[_0x196e64(-_0x3c7f62._0x46179f,-0x338,-_0x3c7f62._0x31e9bd,-0x250)](_0x167812['body'])}:{},'signal':_0x420afd});};function _0x5ccba8(_0x41354c,_0xe73ac9,_0x5821ae,_0xb2a4b6){return _0x2e041c(_0x41354c-_0x4c6cb8._0x3d2a56,_0xe73ac9-0xe5,_0x5821ae- -_0x4c6cb8._0x1db745,_0xe73ac9);}function _0x5bd503(_0x695cd7,_0x219e69,_0x3af37d,_0xb6dc97){return _0x2e041c(_0x695cd7-0x14d,_0x219e69-_0x19c4a5._0x1db073,_0x219e69- -_0x19c4a5._0x551e79,_0x3af37d);}const _0x577fab=await _0x383061();if(_0x577fab['status']!==0x191||!this[_0x5ccba8(-0x1c3,-_0x12024c._0x2b4c09,-_0x12024c._0x15a834,-0x13f)])return _0x577fab;return this[_0x5ccba8(-0x1ff,-0x1de,-0x1c3,-_0x12024c._0x70fc86)][_0x5ccba8(-0x2db,-0x251,-0x24d,-0x2ee)](),_0x383061();}async*[_0x2e041c(-0x182,-0x17d,-0x102,-0x10b)](_0x73355a,_0x1a119b,_0x42604d){const _0x16713e={_0x422ff2:0x4ab,_0x5952d4:0x4ed,_0x2ac979:0x52a,_0x564d6b:0x4c3,_0x278f7d:0x55f,_0x35bb57:0x55f,_0xe1ecbb:0x4fe,_0x1657fc:0x48e,_0x59e458:0x429,_0x26d5fc:0x413,_0x2272b1:0x462,_0x25ce95:0x47c,_0x216ced:0x590,_0x45e9e7:0x422,_0x49dbf8:0x397,_0x164ac4:0x463},_0x39a2f2={_0x3de614:0x158,_0x47a11d:0xea,_0x4605ad:0x4d5},_0x59e3da={_0x138850:0x700},_0x198c9a=await this[_0x7d7a92(0x4da,_0x16713e._0x422ff2,_0x16713e._0x5952d4,_0x16713e._0x2ac979)](_0x73355a,_0x1a119b,!![],_0x42604d);function _0x7d7a92(_0x1634d,_0x56091d,_0x49afe0,_0x410ae9){return _0x55f0a4(_0x1634d-0x3c,_0x56091d-0x148,_0x1634d,_0x49afe0-_0x59e3da._0x138850);}if(!_0x198c9a['ok'])throw await this['toApiError'](_0x198c9a);const _0x4c98bf=_0x1a119b[_0x7d7a92(0x4c3,_0x16713e._0x564d6b,_0x16713e._0x278f7d,_0x16713e._0x35bb57)]?.(_0x73355a);function _0x5772c4(_0x51da16,_0x28b274,_0x4f5452,_0x40130b){return _0x2e041c(_0x51da16-_0x39a2f2._0x3de614,_0x28b274-_0x39a2f2._0x47a11d,_0x40130b-_0x39a2f2._0x4605ad,_0x51da16);}if(!_0x4c98bf?.['consumeSseEvent'])throw new Error(_0x7d7a92(0x523,_0x16713e._0xe1ecbb,0x52d,_0x16713e._0x1657fc)+_0x1a119b['id']+_0x7d7a92(_0x16713e._0x59e458,0x4f7,0x4b0,_0x16713e._0x26d5fc));for await(const _0x2bfb9b of iterateSseEvents(_0x198c9a,_0x42604d)){yield*_0x4c98bf[_0x7d7a92(_0x16713e._0x2272b1,_0x16713e._0x25ce95,0x4f7,_0x16713e._0x216ced)](_0x2bfb9b);}yield{'type':_0x7d7a92(_0x16713e._0x45e9e7,0x4d0,0x452,_0x16713e._0x49dbf8),'response':_0x4c98bf[_0x5772c4(_0x16713e._0x164ac4,0x578,0x48c,0x4da)]()};}async*['streamWebSocketSurface'](_0x51078c,_0x1b60fd,_0x5b1bd6){const _0x4567ad={_0x279ad9:0x3cb,_0x1b393c:0x382,_0x39310c:0x2e5,_0x10f72f:0x3a5,_0x47dab2:0x31a,_0x54fea2:0x467,_0x34fbcc:0x3e0,_0x208cb9:0x499,_0x27301e:0x2b5,_0x145565:0x43d,_0x32f857:0x414,_0x26540b:0x313,_0x3d52f2:0x25c,_0x39cfee:0x27a,_0x3445e1:0x268,_0x5f3c3d:0x317,_0x1eb7f9:0x327,_0x15575e:0x400,_0x4417e5:0x3c3,_0x43d76a:0x47e,_0x1c5352:0x404,_0x1edf4c:0x46b,_0x3d4646:0x479,_0x4f1d73:0x284,_0x44495c:0x341,_0x500146:0x322,_0xa84157:0x326,_0x576a26:0x292,_0x141976:0x34f,_0x11ad93:0x283,_0x247f2e:0x23f,_0x3e99d6:0x320,_0x53c1f0:0x194,_0x1ba9be:0x2b4,_0x29982a:0x368,_0x104c9c:0x329,_0x196dfd:0x311,_0x5dbcb3:0x3d2,_0x4f0823:0x3ec,_0x484fdd:0x44c,_0x2bc93d:0x384,_0x4371d6:0x17f,_0x1b7dc2:0xd6,_0x385297:0xe9,_0x299bff:0x48f,_0xfd15cf:0x475,_0x2da1b1:0x390,_0x1ac552:0x3b9,_0x5c7a3f:0x4eb,_0x29ed15:0x434,_0x289b9d:0x274,_0x928dc3:0x260,_0x5357ef:0x2b3,_0x2908d7:0x230,_0x54239b:0x29c,_0x24b9c6:0x214,_0x1aa4c4:0x244,_0x364db4:0x333,_0xfb2860:0x377,_0xd47026:0x278,_0x1e566e:0x2fb,_0x3f7d01:0x20f,_0x5ad561:0x2b4,_0x4cb5c8:0x4a3,_0x5f57ad:0x49a,_0x4d4646:0x470,_0x2bcb35:0x41e,_0x3b7e89:0x400,_0x4c6a6a:0x3fd,_0x506dbd:0x2ee,_0x2b8c24:0x2d7,_0x57ee25:0x2e3,_0x1e1517:0x2ae,_0x2ed44a:0x20e,_0x27f069:0x216,_0x4e53a8:0x179,_0x37293f:0x261,_0x25fe98:0x3ac,_0x302c9d:0x3a8,_0x249287:0x42f,_0x27ff75:0x39e,_0x8ede11:0x1f1,_0x538743:0x437,_0x3f50f4:0x451,_0xd8d2ef:0x1e0,_0x5c7c1a:0x104,_0x50c23b:0x189},_0x1fa0e0={_0x510eed:0xe3,_0xe04c0b:0x141,_0x556314:0x454},_0x30157d=await this[_0x3aaa74(_0x4567ad._0x279ad9,_0x4567ad._0x1b393c,_0x4567ad._0x39310c,0x3b4)](_0x51078c,_0x5b1bd6);function _0x1e0665(_0x2c3a82,_0x38d1ff,_0x1e3d21,_0x3d8d8a){return _0x2e041c(_0x2c3a82-0x1cf,_0x38d1ff-0x10c,_0x2c3a82-0x2a9,_0x1e3d21);}const _0x26ae41=_0x1b60fd[_0x3aaa74(_0x4567ad._0x10f72f,_0x4567ad._0x47dab2,0x30c,0x37b)](_0x30157d[_0x3aaa74(0x3be,_0x4567ad._0x54fea2,_0x4567ad._0x34fbcc,_0x4567ad._0x208cb9)]),_0x2f9fe4=_0x1b60fd[_0x1e0665(_0x4567ad._0x27301e,0x2d0,0x29a,0x34b)]?.(_0x51078c);if(!_0x2f9fe4?.[_0x3aaa74(_0x4567ad._0x145565,_0x4567ad._0x32f857,0x4cc,0x401)])throw new Error(_0x1e0665(0x283,_0x4567ad._0x26540b,_0x4567ad._0x3d52f2,_0x4567ad._0x39cfee)+_0x1b60fd['id']+_0x1e0665(_0x4567ad._0x3445e1,0x1b4,_0x4567ad._0x5f3c3d,0x2cd));const _0x37d854=_0x26ae41[_0x3aaa74(0x38e,0x3e4,_0x4567ad._0x1eb7f9,_0x4567ad._0x15575e)]??(_0x26ae41['path']?(''+_0x30157d[_0x3aaa74(0x405,_0x4567ad._0x4417e5,0x419,0x36b)]+_0x26ae41['path'])[_0x3aaa74(_0x4567ad._0x43d76a,_0x4567ad._0x1c5352,_0x4567ad._0x1edf4c,_0x4567ad._0x3d4646)](/^http:/,_0x3aaa74(_0x4567ad._0x4f1d73,_0x4567ad._0x44495c,_0x4567ad._0x500146,_0x4567ad._0xa84157))[_0x3aaa74(0x436,0x404,0x3a9,0x476)](/^https:/,_0x3aaa74(_0x4567ad._0x576a26,_0x4567ad._0x141976,0x3b7,0x341)):void 0x0);if(!_0x37d854)throw new Error(_0x1e0665(_0x4567ad._0x11ad93,0x255,_0x4567ad._0x247f2e,_0x4567ad._0x3e99d6)+_0x1b60fd['id']+_0x1e0665(0x1fe,0x14c,_0x4567ad._0x53c1f0,_0x4567ad._0x1ba9be));const _0x21e332=await this[_0x3aaa74(_0x4567ad._0x29982a,0x3ad,0x438,0x3f3)]({'request':_0x30157d[_0x1e0665(0x2bc,_0x4567ad._0x104c9c,0x2fa,_0x4567ad._0x196dfd)],'body':_0x26ae41[_0x3aaa74(0x38d,0x400,0x43d,0x42d)],'credential':_0x30157d[_0x3aaa74(_0x4567ad._0x5dbcb3,_0x4567ad._0x4f0823,_0x4567ad._0x484fdd,_0x4567ad._0x2bc93d)],'session':_0x30157d[_0x1e0665(_0x4567ad._0x4371d6,0x178,_0x4567ad._0x1b7dc2,_0x4567ad._0x385297)],'stream':!![]},{'accept':_0x26ae41[_0x3aaa74(_0x4567ad._0x299bff,0x47a,0x423,0x3dc)]??_0x3aaa74(_0x4567ad._0xfd15cf,0x3e6,0x40c,_0x4567ad._0x2da1b1),'includeContentType':![]});function _0x3aaa74(_0x2b72b5,_0x2dd07d,_0x3ed8a2,_0x928d12){return _0x2e041c(_0x2b72b5-_0x1fa0e0._0x510eed,_0x2dd07d-_0x1fa0e0._0xe04c0b,_0x2dd07d-_0x1fa0e0._0x556314,_0x3ed8a2);}for(const [_0x18e17f,_0x288096]of Object[_0x3aaa74(_0x4567ad._0x1ac552,0x455,0x4da,0x501)](_0x26ae41[_0x3aaa74(0x3a3,0x42c,_0x4567ad._0x5c7a3f,_0x4567ad._0x29ed15)]??{})){_0x21e332[_0x1e0665(_0x4567ad._0x289b9d,_0x4567ad._0x928dc3,0x243,0x297)](_0x18e17f,_0x288096);}_0x21e332[_0x1e0665(_0x4567ad._0x5357ef,_0x4567ad._0x2908d7,_0x4567ad._0x54239b,_0x4567ad._0x24b9c6)](_0x1e0665(0x2cf,_0x4567ad._0x1aa4c4,_0x4567ad._0x364db4,_0x4567ad._0xfb2860));const _0x3c64c0=this[_0x3aaa74(0x31a,0x3b9,0x3e8,0x45b)]({'headers':Object[_0x1e0665(_0x4567ad._0xd47026,_0x4567ad._0x1e566e,_0x4567ad._0x3f7d01,0x289)](_0x21e332[_0x3aaa74(0x4d8,0x455,0x508,0x4e7)]()),'url':_0x37d854});try{throwIfAborted(_0x5b1bd6);_0x3c64c0['readyState']!==WebSocket[_0x1e0665(0x201,0x29f,0x153,_0x4567ad._0x5ad561)]&&await waitForWebSocketOpen(_0x3c64c0,_0x5b1bd6);throwIfAborted(_0x5b1bd6);_0x26ae41[_0x3aaa74(_0x4567ad._0x4cb5c8,_0x4567ad._0x15575e,_0x4567ad._0x5f57ad,_0x4567ad._0x4d4646)]!==void 0x0&&_0x3c64c0['send'](JSON['stringify'](_0x26ae41[_0x3aaa74(_0x4567ad._0x2bcb35,_0x4567ad._0x3b7e89,_0x4567ad._0x4c6a6a,0x36d)]));for await(const _0x5d6dab of iterateWebSocketMessages(_0x3c64c0,_0x5b1bd6)){yield*_0x2f9fe4[_0x1e0665(0x269,_0x4567ad._0x506dbd,0x1dd,_0x4567ad._0x2b8c24)](_0x5d6dab);if(_0x2f9fe4[_0x3aaa74(_0x4567ad._0x57ee25,0x39f,0x40c,0x452)]?.())break;}yield{'type':'done','response':_0x2f9fe4[_0x1e0665(_0x4567ad._0x1e1517,_0x4567ad._0x2ed44a,0x302,0x2f1)]()};}finally{_0x3c64c0[_0x1e0665(_0x4567ad._0x27f069,_0x4567ad._0x4e53a8,_0x4567ad._0x37293f,0x2c0)]===WebSocket[_0x3aaa74(_0x4567ad._0x34fbcc,_0x4567ad._0x25fe98,_0x4567ad._0x302c9d,_0x4567ad._0x249287)]&&_0x3c64c0[_0x3aaa74(_0x4567ad._0x27ff75,0x44b,0x4fd,0x4d4)](0x3e8,_0x5b1bd6?.[_0x1e0665(0x2a6,0x282,_0x4567ad._0x8ede11,0x2a8)]?_0x3aaa74(_0x4567ad._0x538743,_0x4567ad._0x3f50f4,0x489,0x44c):_0x1e0665(0x16e,_0x4567ad._0xd8d2ef,_0x4567ad._0x5c7c1a,_0x4567ad._0x50c23b));}}};function _0x2e041c(_0x3081f4,_0x3ed828,_0x40f213,_0x332589){return _0x3920(_0x40f213- -0x1cf,_0x332589);}async function createHttpError(_0x1f9941){const _0x430500={_0x2c21c0:0x50,_0x4a4f79:0x4ac,_0x456d93:0x44f,_0x29d7eb:0x3da,_0x18488f:0x458,_0x39e73f:0x49e,_0x418f09:0x4b1,_0x50eaa8:0xf0,_0x8045fe:0xcb,_0x4221a7:0x130,_0x543475:0x4e8,_0x148db0:0x5c1,_0x5e7c67:0x29,_0x6f8fad:0xdd,_0x8d9bdf:0xe2},_0x450d2c={_0x63a300:0x17a};function _0x3a7277(_0xc73dcb,_0x40dd27,_0x33e9ac,_0x24b87f){return _0x55f0a4(_0xc73dcb-0x8a,_0x40dd27-0x1a,_0x33e9ac,_0x40dd27-0x728);}const _0x2af4d6=await _0x1f9941[_0x56adff(0x21,-_0x430500._0x2c21c0,0x58,-0x60)](),_0x11ed88=_0x2af4d6[_0x3a7277(_0x430500._0x4a4f79,_0x430500._0x456d93,_0x430500._0x29d7eb,_0x430500._0x18488f)]()||_0x1f9941[_0x3a7277(_0x430500._0x39e73f,0x50e,_0x430500._0x418f09,0x536)]||_0x56adff(_0x430500._0x50eaa8,0x103,_0x430500._0x8045fe,_0x430500._0x4221a7);function _0x56adff(_0x4bb8d3,_0x325e53,_0x22cd3a,_0x7ea793){return _0x2e041c(_0x4bb8d3-0x33,_0x325e53-_0x450d2c._0x63a300,_0x4bb8d3-0xd2,_0x7ea793);}return new Error(_0x3a7277(_0x430500._0x543475,0x54c,_0x430500._0x148db0,0x5f8)+_0x1f9941[_0x56adff(-_0x430500._0x5e7c67,-0x78,-_0x430500._0x6f8fad,-_0x430500._0x8d9bdf)]+':\x20'+_0x11ed88);}var AnthropicProviderAdapter=class{[_0x2e041c(0x1b,-0x13a,-0xa2,-0xf1)];[_0x2e041c(-0x112,-0xeb,-0xcb,-0xc1)];[_0x2e041c(-0x7d,-0xe8,-0xd9,-0xd6)];constructor(_0x278b7d){const _0x8578f2={_0x22e8be:0x251,_0x37c1ed:0x215,_0x5599f1:0x28e,_0x5cb6c6:0x2e8,_0x538ff5:0x338,_0x5d6851:0x223,_0x23916f:0x24e,_0x59a7fc:0x326},_0x13ab8c={_0xff5a30:0x12f},_0x576433={_0x15c00f:0x182,_0x8f3153:0xa2,_0x59f211:0x16};function _0x388435(_0x43e6f3,_0x48acf5,_0x5f4b10,_0x2dfdee){return _0x55f0a4(_0x43e6f3-_0x576433._0x15c00f,_0x48acf5-_0x576433._0x8f3153,_0x48acf5,_0x2dfdee- -_0x576433._0x59f211);}function _0x16e99f(_0x5187fb,_0x3bf927,_0x48c326,_0x41043a){return _0x2e041c(_0x5187fb-0x6,_0x3bf927-0x1,_0x3bf927- -_0x13ab8c._0xff5a30,_0x48c326);}this['authScheme']=_0x278b7d['authScheme'],this[_0x388435(-0x1f6,-_0x8578f2._0x22e8be,-_0x8578f2._0x37c1ed,-_0x8578f2._0x5599f1)]=_0x278b7d[_0x388435(-0x300,-_0x8578f2._0x5cb6c6,-_0x8578f2._0x538ff5,-_0x8578f2._0x5599f1)],this[_0x388435(-_0x8578f2._0x5d6851,-_0x8578f2._0x23916f,-_0x8578f2._0x59a7fc,-0x29c)]=_0x278b7d['protocolVersion'];}[_0x2e041c(-0x91,-0x18f,-0x103,-0x7a)](){const _0x41dbdc={_0x5d26fd:0x1ff,_0x347d70:0x2b1,_0x5da845:0x2f8},_0x315776={_0x1b30ef:0x6d,_0x1fe03d:0x19d};function _0x577d8d(_0x542bf1,_0x54f488,_0x5daaf7,_0x4b730c){return _0x2e041c(_0x542bf1-_0x315776._0x1b30ef,_0x54f488-0x5,_0x5daaf7- -_0x315776._0x1fe03d,_0x4b730c);}return new Error(_0x577d8d(-_0x41dbdc._0x5d26fd,-0x30c,-_0x41dbdc._0x347d70,-_0x41dbdc._0x5da845));}async[_0x2e041c(-0x105,-0xa0,-0xa7,-0x11b)](_0xc7f162,_0x44e8dd){const _0x3a32cc={_0x1dfdbc:0xa5,_0x6b04c2:0x221,_0x491db6:0x3f5,_0x3b09db:0xb4,_0x15cee7:0xc3,_0x424b6e:0x117,_0x47842a:0x346,_0x561589:0x412,_0x28b4cc:0x38c,_0x1ec4cd:0x16f,_0x44a9de:0x1a2,_0x49be57:0x164,_0x3642ac:0x33f,_0xa9ce14:0x3ec,_0x143593:0x325,_0x14beee:0x2f0,_0x554bdf:0x2ed,_0x568c35:0x1ae,_0x485e5f:0x1b3,_0x202411:0x18e,_0x212b8a:0x392,_0x4e6167:0x3e4,_0x21cca3:0x268,_0x1d60fc:0x2e1,_0x4375e5:0x261,_0x5c51fe:0x1fb,_0x5a8d18:0x24c,_0x49ac33:0xf6,_0x59c091:0x197,_0x1b6aa9:0x233,_0x2e2775:0x223,_0x131f54:0x22a,_0x4eebff:0x1fd,_0x3ba864:0x1fa,_0x23fa21:0x1fd,_0x1e4731:0x1d5,_0x283690:0x11c,_0x55ef3b:0x288,_0x4ace40:0x1ab,_0x3c1a20:0x184,_0x490cfe:0x21a,_0x2f4bf7:0x378,_0x43481:0x325},_0x445f80={_0x530668:0xad,_0x199e52:0x19a,_0xa86c4e:0x3ad},_0x511fa8=new Headers();function _0x39c748(_0x3552c5,_0x70bdb4,_0x81cd66,_0xf6bb6d){return _0x55f0a4(_0x3552c5-0x9e,_0x70bdb4-0x70,_0xf6bb6d,_0x81cd66-0x7e);}_0x511fa8[_0x39c748(-_0x3a32cc._0x1dfdbc,-_0x3a32cc._0x6b04c2,-0x164,-0x147)](_0x12ae5f(0x3d3,_0x3a32cc._0x491db6,0x418,0x3a4),_0x44e8dd[_0x39c748(-_0x3a32cc._0x3b09db,-_0x3a32cc._0x15cee7,-0x109,-_0x3a32cc._0x424b6e)]),_0x511fa8[_0x12ae5f(0x378,_0x3a32cc._0x47842a,0x301,_0x3a32cc._0x561589)](_0x12ae5f(_0x3a32cc._0x28b4cc,0x3d3,0x352,0x3c7),this[_0x39c748(-0x196,-_0x3a32cc._0x1ec4cd,-0x208,-_0x3a32cc._0x44a9de)]);_0x44e8dd['includeContentType']!==![]&&_0x511fa8[_0x39c748(-0x1e2,-0x192,-_0x3a32cc._0x49be57,-0xd1)]('content-type',_0x12ae5f(_0x3a32cc._0x3642ac,0x289,0x2a7,_0x3a32cc._0xa9ce14));this['authScheme']===_0x12ae5f(_0x3a32cc._0x143593,0x296,_0x3a32cc._0x14beee,_0x3a32cc._0x554bdf)?_0x511fa8[_0x12ae5f(0x378,0x424,0x381,0x2e6)]('authorization',_0x39c748(-0x23d,-_0x3a32cc._0x568c35,-_0x3a32cc._0x485e5f,-_0x3a32cc._0x202411)+_0xc7f162[_0x12ae5f(0x345,0x379,_0x3a32cc._0x212b8a,_0x3a32cc._0x4e6167)][_0x12ae5f(_0x3a32cc._0x21cca3,_0x3a32cc._0x1d60fc,_0x3a32cc._0x4375e5,_0x3a32cc._0x5c51fe)]):_0x511fa8['set'](_0x39c748(-0x12d,-_0x3a32cc._0x5a8d18,-0x1b8,-_0x3a32cc._0x49ac33),_0xc7f162[_0x39c748(-0x130,-0x108,-_0x3a32cc._0x59c091,-_0x3a32cc._0x1b6aa9)][_0x12ae5f(0x268,0x2e9,_0x3a32cc._0x14beee,_0x3a32cc._0x2e2775)]);const _0xa57a33=await this[_0x39c748(-_0x3a32cc._0x131f54,-_0x3a32cc._0x4eebff,-_0x3a32cc._0x3ba864,-0x252)]?.({'body':_0xc7f162[_0x39c748(-0x170,-0x205,-_0x3a32cc._0x23fa21,-0x22a)],'credential':_0xc7f162[_0x39c748(-0x182,-0x243,-0x197,-0x248)],'request':_0xc7f162[_0x39c748(-0xb1,-_0x3a32cc._0x1e4731,-_0x3a32cc._0x283690,-0x10f)],'session':_0xc7f162[_0x39c748(-_0x3a32cc._0x55ef3b,-0x300,-0x259,-0x2d4)],'stream':_0xc7f162[_0x39c748(-0x222,-_0x3a32cc._0x4ace40,-_0x3a32cc._0x3c1a20,-_0x3a32cc._0x490cfe)]});function _0x12ae5f(_0x19dc09,_0xfafe6a,_0x424117,_0x5da2ee){return _0x2e041c(_0x19dc09-_0x445f80._0x530668,_0xfafe6a-_0x445f80._0x199e52,_0x19dc09-_0x445f80._0xa86c4e,_0xfafe6a);}for(const [_0x2589df,_0x450681]of Object[_0x39c748(-0x162,-0x1bf,-0x12e,-0x1c9)](_0xa57a33??{})){_0x511fa8[_0x12ae5f(_0x3a32cc._0x2f4bf7,0x42e,0x2dc,_0x3a32cc._0x43481)](_0x2589df,_0x450681);}return _0x511fa8;}[_0x2e041c(-0xe5,-0x16f,-0xc4,-0x7f)](_0x12389f){return _0x12389f;}['resolveBaseUrl'](_0x2eaa36,_0x35aacb){return resolveSessionBaseUrl(_0x2eaa36,_0x35aacb);}[_0x55f0a4(-0x33c,-0x2e1,-0x242,-0x2b7)](_0x1b74c3,_0x20a526){return resolveApiCredential(_0x1b74c3,_0x20a526);}async['toApiError'](_0x36c0c4){return await createHttpError(_0x36c0c4);}},AnthropicModel=class extends RoutedModel{constructor(_0x393ea6={}){const _0x1e92e7={_0x34d9c3:0x59,_0x4926d5:0x101,_0x5b7a34:0x5f,_0x3b8715:0x25,_0x51144b:0x5d,_0x370d1d:0x100,_0xa4d14e:0x1b8,_0x18f2bb:0xbe,_0x29986a:0x1d6,_0x87b24d:0x162,_0x5ad78f:0x52,_0x4eeb70:0x24,_0x1bf89d:0x7d,_0x4e2a90:0x13e,_0x3c4f0e:0x12f,_0x3210a8:0x4e,_0x21958b:0x47,_0x17df4c:0x1b,_0x32c39e:0x1b,_0x2ac197:0x52},_0x592a52={_0x122292:0xdd,_0x48ce56:0x29d},_0x101bcf={_0x5c4e13:0x18f,_0x5ac79b:0x193};function _0x4f3f7d(_0x3a5ad3,_0x18d6da,_0x3edb7e,_0x4c21c4){return _0x55f0a4(_0x3a5ad3-0x40,_0x18d6da-_0x101bcf._0x5c4e13,_0x18d6da,_0x3edb7e-_0x101bcf._0x5ac79b);}function _0x21137b(_0xa0b903,_0x13b4b7,_0x23a7c2,_0x23d55e){return _0x55f0a4(_0xa0b903-_0x592a52._0x122292,_0x13b4b7-0x33,_0x23d55e,_0xa0b903-_0x592a52._0x48ce56);}super({'apiKey':_0x393ea6[_0x21137b(0x4b,0xd0,-_0x1e92e7._0x34d9c3,_0x1e92e7._0x4926d5)],'baseUrl':trimTrailingSlashes(_0x393ea6[_0x21137b(_0x1e92e7._0x5b7a34,-0x26,-_0x1e92e7._0x3b8715,_0x1e92e7._0x51144b)]??_0x4f3f7d(-_0x1e92e7._0x370d1d,-_0x1e92e7._0xa4d14e,-0x123,-_0x1e92e7._0x18f2bb)),'fetch':_0x393ea6[_0x4f3f7d(-0xed,-_0x1e92e7._0x29986a,-0x157,-_0x1e92e7._0x87b24d)],'maxTokens':_0x393ea6[_0x21137b(-0x2d,-0x2d,0x40,_0x1e92e7._0x5ad78f)]??0x4000,'model':_0x393ea6[_0x21137b(-0xf,_0x1e92e7._0x4eeb70,-_0x1e92e7._0x1bf89d,-0xa2)]??_0x21137b(0xf3,_0x1e92e7._0x4e2a90,_0x1e92e7._0x3c4f0e,0x12f),'reasoning':_0x393ea6['reasoning'],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x393ea6[_0x21137b(_0x1e92e7._0x3210a8,0x63,_0x1e92e7._0x21958b,_0x1e92e7._0x17df4c)]??'x-api-key','headerResolver':_0x393ea6['headerResolver'],'protocolVersion':_0x393ea6['protocolVersion']??'2023-06-01'}),'providerSessionResolver':_0x393ea6[_0x21137b(_0x1e92e7._0x32c39e,0x6c,_0x1e92e7._0x2ac197,-0x3e)],'requestMutators':_0x393ea6[_0x4f3f7d(-0x43,-0xf4,-0x45,0x3c)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x55f0a4(-0x25b,-0x207,-0x2ee,-0x26a)](_0x116dd7,_0x58ce35){const _0x3d4316={_0x22130f:0x3b9,_0x22baa8:0x3d9},_0x354aa8={_0x3f13f1:0x126,_0x273fd6:0x355};function _0x580acd(_0x2a8a8b,_0x1ecffd,_0x19b01c,_0x3b0cb8){return _0x2e041c(_0x2a8a8b-0x1c8,_0x1ecffd-_0x354aa8._0x3f13f1,_0x2a8a8b-_0x354aa8._0x273fd6,_0x3b0cb8);}return this[_0x580acd(0x31a,0x38f,_0x3d4316._0x22130f,_0x3d4316._0x22baa8)](_0x116dd7,ANTHROPIC_MESSAGES_SURFACE,_0x58ce35);}['stream'](_0x3afc69,_0x6aa703){const _0x2a82e8={_0xb38a80:0x1ad},_0x401c9d={_0x3ebbe8:0x15e};function _0x1f78cc(_0x4ad73e,_0xb1d3a5,_0x2000dd,_0x58e61c){return _0x2e041c(_0x4ad73e-0x153,_0xb1d3a5-0x70,_0x4ad73e- -_0x401c9d._0x3ebbe8,_0x58e61c);}return this[_0x1f78cc(-0x227,-0x1a0,-0x1c6,-_0x2a82e8._0xb38a80)](_0x3afc69,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x6aa703);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x2e041c(0x8,0x70,-0xd,0x50),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x55f0a4(-0x20f,-0x257,-0x2d6,-0x279),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x2e041c(0x49,-0x5c,0x24,0xb8),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x2e041c(-0xef,-0xf2,-0x129,-0x74),OpenAiApiError=class extends Error{[_0x55f0a4(-0x34e,-0x233,-0x299,-0x2a8)];['body'];constructor(_0x734067,_0x6a59fe,_0x22aef0){const _0x5059ad={_0x568172:0x1e0,_0x12414b:0x208,_0x32cfaf:0x2b2,_0x208e8a:0x1d6,_0x50dcb2:0x247,_0x10b5b9:0x1cc},_0x331e27={_0x45fffa:0xfc};super(_0x22aef0),this['name']='OpenAiApiError',this[_0x291bf5(-_0x5059ad._0x568172,-_0x5059ad._0x12414b,-0x1f9,-_0x5059ad._0x32cfaf)]=_0x734067;function _0xae14bc(_0x348854,_0x523c80,_0x1a8656,_0x337a45){return _0x55f0a4(_0x348854-0x3c,_0x523c80-0x141,_0x337a45,_0x1a8656-0x26f);}function _0x291bf5(_0x31082c,_0x1428a7,_0x1304f7,_0x557114){return _0x2e041c(_0x31082c-_0x331e27._0x45fffa,_0x1428a7-0x50,_0x1304f7- -0xfe,_0x557114);}this[_0x291bf5(-_0x5059ad._0x208e8a,-_0x5059ad._0x50dcb2,-_0x5059ad._0x10b5b9,-0x22d)]=_0x6a59fe;}},OpenAiResponsesStreamError=class extends Error{['code'];[_0x2e041c(-0x8e,-0x106,-0xfb,-0x1b5)];constructor(_0x3ba4e7,_0x1b076f={}){const _0x23227b={_0x4abae8:0x13,_0x3f8cf5:0x48,_0x287faf:0x89,_0x5ca8fc:0x134,_0x2f2eb7:0x1e1,_0x5d7e8e:0x1a9,_0x26999d:0x10c,_0x5dbf7b:0x1a3,_0x3749fb:0x8f,_0x5e94a1:0x19f,_0x3aa964:0x12b,_0x120bfe:0xed,_0x301ad9:0x4bc,_0x443f10:0x49f,_0x3d6c82:0x489,_0xc2969c:0x506},_0x4b117a={_0x429ca8:0x9a},_0x245b00={_0x166c7c:0x178,_0x5bca4d:0x1b4};function _0x9d4375(_0x152a66,_0x13d2b0,_0x26dc20,_0xf49904){return _0x55f0a4(_0x152a66-_0x245b00._0x166c7c,_0x13d2b0-_0x245b00._0x5bca4d,_0x152a66,_0x13d2b0-0x731);}super(_0x3ba4e7),this[_0x5cfadb(-_0x23227b._0x4abae8,0x91,_0x23227b._0x3f8cf5,-_0x23227b._0x287faf)]=_0x5cfadb(-_0x23227b._0x5ca8fc,-_0x23227b._0x2f2eb7,-_0x23227b._0x5d7e8e,-_0x23227b._0x26999d);function _0x5cfadb(_0x25e1f2,_0x3a1601,_0x33f680,_0x19b4cb){return _0x55f0a4(_0x25e1f2-0xe7,_0x3a1601-_0x4b117a._0x429ca8,_0x19b4cb,_0x25e1f2-0x17f);}this[_0x5cfadb(-0x127,-_0x23227b._0x5dbf7b,-_0x23227b._0x3749fb,-_0x23227b._0x5e94a1)]=_0x1b076f[_0x5cfadb(-0x127,-0x156,-_0x23227b._0x3aa964,-_0x23227b._0x120bfe)],this[_0x9d4375(0x452,0x489,_0x23227b._0x301ad9,0x4b9)]=_0x1b076f[_0x9d4375(_0x23227b._0x443f10,_0x23227b._0x3d6c82,_0x23227b._0xc2969c,0x51a)];}};function stringifySystem(_0x45a999){const _0x12e907={_0x108e99:0x2e7,_0x43a80d:0x22b,_0x7d982b:0x31b,_0x4bd866:0x309,_0x219ed0:0x24e},_0x45e29f={_0x49f3a2:0x107},_0x3fc9d4={_0x3670f6:0x175,_0x64aeaa:0x1c1,_0x4cffc1:0x6b5};function _0x292e31(_0x40562b,_0xf9af6d,_0x5bffc4,_0x2ac1e3){return _0x55f0a4(_0x40562b-_0x3fc9d4._0x3670f6,_0xf9af6d-_0x3fc9d4._0x64aeaa,_0x2ac1e3,_0xf9af6d-_0x3fc9d4._0x4cffc1);}function _0x2843f7(_0xba0602,_0x22acc2,_0x45918c,_0x639f1c){return _0x2e041c(_0xba0602-0xf4,_0x22acc2-_0x45e29f._0x49f3a2,_0x22acc2-0x30d,_0x45918c);}return _0x45a999[_0x2843f7(_0x12e907._0x108e99,0x279,0x20b,_0x12e907._0x43a80d)](_0x5a9748=>_0x5a9748['text'])[_0x2843f7(_0x12e907._0x7d982b,0x26f,_0x12e907._0x4bd866,_0x12e907._0x219ed0)]('\x0a\x0a');}function createToolDefinitions(_0xc78a41){const _0x22218e={_0x3b1ab0:0x570,_0x23719a:0x515},_0xd8256a={_0x235d7c:0xde,_0x135e57:0x205,_0x7df886:0x36b,_0x42246e:0x380,_0x26ef85:0x2f1,_0x5c67bf:0x1fe},_0x353db6={_0xbe8874:0x42,_0x45e9ef:0x14f};if(_0xc78a41['length']===0x0)return void 0x0;function _0x21e05b(_0x57def2,_0x1ac32c,_0x42ccc2,_0x63f894){return _0x55f0a4(_0x57def2-_0x353db6._0xbe8874,_0x1ac32c-_0x353db6._0x45e9ef,_0x63f894,_0x42ccc2-0x756);}return _0xc78a41[_0x21e05b(_0x22218e._0x3b1ab0,0x550,_0x22218e._0x23719a,0x4f1)](_0x3c938c=>{const _0x23c499={_0x53b945:0x113,_0x32334c:0x6,_0x31719f:0x2a6},_0x27a443={_0x5ba666:0x75a};function _0x188205(_0x54ec95,_0x4bbb7c,_0xbb5344,_0x5be477){return _0x21e05b(_0x54ec95-0x9d,_0x4bbb7c-0x1ab,_0x5be477- -_0x27a443._0x5ba666,_0xbb5344);}function _0x38dbbc(_0x5cc0f0,_0x20b759,_0x6508c7,_0x58f22d){return _0x21e05b(_0x5cc0f0-_0x23c499._0x53b945,_0x20b759-_0x23c499._0x32334c,_0x5cc0f0- -_0x23c499._0x31719f,_0x20b759);}return{'type':'function','function':{'name':_0x3c938c[_0x188205(-_0xd8256a._0x235d7c,-0x13d,-_0xd8256a._0x135e57,-0x196)],'description':_0x3c938c[_0x188205(-_0xd8256a._0x7df886,-_0xd8256a._0x42246e,-0x399,-_0xd8256a._0x26ef85)],'parameters':_0x3c938c[_0x188205(-_0xd8256a._0x5c67bf,-0x163,-0x1b3,-0x1cb)]}};});}function stringifyValue(_0x2c3289){const _0x475ac2={_0x569c3c:0x1b2,_0x5ab6ff:0x189,_0x2382cd:0x127,_0x3a218d:0x283,_0x1bbb9b:0x317},_0x177cf9={_0x17e5fa:0x2d2},_0x4da420={_0x1d50a6:0x60,_0x94411e:0x170};function _0x146184(_0x3aa353,_0x1e4e8d,_0xe0ec6a,_0x1f8a03){return _0x2e041c(_0x3aa353-_0x4da420._0x1d50a6,_0x1e4e8d-_0x4da420._0x94411e,_0xe0ec6a-0x3ab,_0x1e4e8d);}function _0x44ac53(_0x28e71f,_0x2df090,_0x1b9fdf,_0x29ae08){return _0x55f0a4(_0x28e71f-0x5c,_0x2df090-0x122,_0x28e71f,_0x1b9fdf-_0x177cf9._0x17e5fa);}return typeof _0x2c3289===_0x44ac53(_0x475ac2._0x569c3c,_0x475ac2._0x5ab6ff,0x113,_0x475ac2._0x2382cd)?_0x2c3289:JSON[_0x146184(0x254,_0x475ac2._0x3a218d,0x261,_0x475ac2._0x1bbb9b)](_0x2c3289);}function parseToolInput2(_0x4e72df){const _0x18b430={_0x562b36:0xd2,_0x2e799e:0x110};function _0x27beec(_0x47a1b1,_0xd9e6ab,_0x3ebec3,_0xc56118){return _0x55f0a4(_0x47a1b1-0xb1,_0xd9e6ab-0xa,_0xc56118,_0xd9e6ab-0x147);}try{return JSON[_0x27beec(-0xe9,-_0x18b430._0x562b36,-_0x18b430._0x2e799e,-0xda)](_0x4e72df);}catch{return _0x4e72df;}}function isResponsesReasoningItem(_0x34ccbd){const _0x26cb32={_0x5158d8:0x3fc,_0x49fb50:0x35c,_0x4821af:0x3b6,_0x390c7b:0x376,_0x2c335f:0x2c5},_0x3dd144={_0x2a69e0:0x1ec,_0x46243c:0xd4,_0x318bc5:0x5f0},_0x182f45={_0x4bfb27:0x6a6};function _0x593176(_0x501ce0,_0x2ddacf,_0x885ff8,_0xe8da8c){return _0x55f0a4(_0x501ce0-0x1f3,_0x2ddacf-0xb6,_0x885ff8,_0xe8da8c-_0x182f45._0x4bfb27);}function _0x21772d(_0x2c35d8,_0x59ab00,_0xd7c9b8,_0x4f98a8){return _0x55f0a4(_0x2c35d8-_0x3dd144._0x2a69e0,_0x59ab00-_0x3dd144._0x46243c,_0x59ab00,_0x2c35d8-_0x3dd144._0x318bc5);}return typeof _0x34ccbd===_0x593176(0x364,_0x26cb32._0x5158d8,_0x26cb32._0x49fb50,0x3ea)&&_0x34ccbd!==null&&_0x21772d(0x376,0x41f,_0x26cb32._0x4821af,0x3be)in _0x34ccbd&&_0x34ccbd[_0x21772d(_0x26cb32._0x390c7b,0x400,_0x26cb32._0x2c335f,0x2c0)]==='reasoning';}function isResponsesMessageItem(_0x39a874){const _0x12e1c1={_0x33725b:0x85,_0x15773c:0x13,_0x486f23:0x305,_0xc264f6:0x2f9,_0x417497:0x295},_0x4581aa={_0x4407d8:0x1f4},_0xe1d301={_0xcb116b:0x15,_0x26b899:0x4f2};function _0xfa1127(_0x11b724,_0x38b509,_0x26da05,_0x10ceb0){return _0x55f0a4(_0x11b724-_0xe1d301._0xcb116b,_0x38b509-0x131,_0x38b509,_0x10ceb0-_0xe1d301._0x26b899);}function _0x211b0b(_0x5a6293,_0x738b42,_0x3dba5b,_0x2a70d1){return _0x2e041c(_0x5a6293-_0x4581aa._0x4407d8,_0x738b42-0xdf,_0x5a6293-0x194,_0x738b42);}return typeof _0x39a874===_0x211b0b(_0x12e1c1._0x33725b,0x11c,0x44,-_0x12e1c1._0x15773c)&&_0x39a874!==null&&_0xfa1127(0x1fe,_0x12e1c1._0x486f23,0x1bf,0x278)in _0x39a874&&_0x39a874[_0xfa1127(_0x12e1c1._0xc264f6,0x2b4,_0x12e1c1._0x417497,0x278)]===_0xfa1127(0x285,0x1fe,0x208,0x29f);}function isResponsesFunctionCallItem(_0x761fc0){const _0x44d763={_0x158208:0x3af,_0x46fd29:0x3fa,_0xf5f965:0x3a9,_0x3f66b6:0x39e,_0x593497:0x332,_0x59814a:0x37d,_0x5b0e6d:0x38d,_0x41e1e9:0x413},_0x1deab7={_0x414c16:0x74,_0x2948a3:0x1e3},_0x387961={_0x4c4d1a:0x4c,_0x559759:0x44a};function _0x17f30e(_0x2be5f3,_0x440683,_0x3bf3dd,_0x53d3bb){return _0x2e041c(_0x2be5f3-_0x387961._0x4c4d1a,_0x440683-0xd7,_0x53d3bb-_0x387961._0x559759,_0x2be5f3);}function _0x1357a2(_0x2cbc71,_0xbcd4e9,_0x167d1f,_0x5655ab){return _0x2e041c(_0x2cbc71-_0x1deab7._0x414c16,_0xbcd4e9-_0x1deab7._0x2948a3,_0x5655ab-0x114,_0x2cbc71);}return typeof _0x761fc0==='object'&&_0x761fc0!==null&&_0x17f30e(0x355,_0x44d763._0x158208,_0x44d763._0x46fd29,0x37d)in _0x761fc0&&_0x761fc0[_0x17f30e(_0x44d763._0xf5f965,_0x44d763._0x3f66b6,_0x44d763._0x593497,_0x44d763._0x59814a)]===_0x17f30e(0x392,_0x44d763._0x5b0e6d,0x35f,_0x44d763._0x41e1e9);}function createContentBlocks(_0x3751e6,_0x1b93af){const _0x52c3ce={_0x5b1f39:0x25b,_0x16bce6:0x1b2,_0x4230e8:0x5c,_0x2690e2:0x20d,_0x34b647:0x1d5,_0x2c3b22:0x120,_0xef25b6:0x1b8,_0x46cdb2:0x1e7,_0x340837:0xa4,_0x161fb8:0x25b,_0x490272:0xca,_0x3ddf13:0x10d,_0x5d56d3:0x311,_0x486ff8:0x2ef,_0xb66b65:0x339,_0x199d1c:0x36f,_0x552432:0x181},_0x17756c={_0x2be744:0x166,_0x172cc6:0x65},_0x540a5d={_0x20a228:0x51};function _0x4d497a(_0x5e9112,_0x56f39f,_0x59b1e0,_0x4a41ab){return _0x55f0a4(_0x5e9112-0x130,_0x56f39f-_0x540a5d._0x20a228,_0x59b1e0,_0x56f39f-0x46b);}function _0x39af8b(_0x297cca,_0x43e896,_0x26ecbb,_0x1ba5e3){return _0x2e041c(_0x297cca-_0x17756c._0x2be744,_0x43e896-_0x17756c._0x172cc6,_0x297cca-0x1d0,_0x43e896);}const _0x23972a=[];_0x3751e6[_0x4d497a(0x303,_0x52c3ce._0x5b1f39,0x1ea,_0x52c3ce._0x16bce6)]>0x0&&_0x23972a[_0x39af8b(0x97,_0x52c3ce._0x4230e8,0x137,0xd3)]({'type':_0x4d497a(0x251,_0x52c3ce._0x2690e2,0x15c,0x168),'text':_0x3751e6});for(const _0x9d548b of _0x1b93af){if(_0x9d548b['id'][_0x4d497a(_0x52c3ce._0x34b647,0x192,0x234,0x1d9)]()[_0x39af8b(0x16d,_0x52c3ce._0x2c3b22,_0x52c3ce._0xef25b6,_0x52c3ce._0x46cdb2)]===0x0||_0x9d548b['function']['name'][_0x39af8b(_0x52c3ce._0x340837,0xdf,0x6a,0x1)]()[_0x4d497a(0x1a8,_0x52c3ce._0x161fb8,0x2cf,0x1fe)]===0x0)continue;_0x23972a[_0x4d497a(0xd4,0x185,_0x52c3ce._0x490272,_0x52c3ce._0x3ddf13)]({'type':'tool_use','id':_0x9d548b['id'],'name':_0x9d548b[_0x4d497a(_0x52c3ce._0x5d56d3,_0x52c3ce._0x486ff8,_0x52c3ce._0xb66b65,_0x52c3ce._0x199d1c)][_0x39af8b(0x1eb,0x15f,_0x52c3ce._0x552432,0x1b2)],'input':parseToolInput2(_0x9d548b['function']['arguments'])});}return _0x23972a;}function createUsage(_0x644f05){const _0x526261={_0x50e1ad:0x30e,_0x11e9a9:0x350,_0x411013:0x436,_0x54d5c2:0x27f,_0xa43fbf:0x203,_0x33dca0:0x401,_0x5b9c5d:0x39f,_0x1a896c:0x446},_0x32c359={_0x27421d:0x1ce,_0x1b355e:0x160},_0x4fc089={_0x2c041d:0x16,_0x886f7d:0x89,_0xe6e1ea:0x5b7};function _0x47ec8f(_0x479f47,_0x5372dd,_0x54e9e4,_0x2e16d4){return _0x55f0a4(_0x479f47-_0x4fc089._0x2c041d,_0x5372dd-_0x4fc089._0x886f7d,_0x54e9e4,_0x5372dd-_0x4fc089._0xe6e1ea);}function _0x1b64b4(_0x5e7b9a,_0x3ae4be,_0x5bfca1,_0x381a3d){return _0x2e041c(_0x5e7b9a-_0x32c359._0x27421d,_0x3ae4be-0x15,_0x5bfca1- -_0x32c359._0x1b355e,_0x5e7b9a);}return{'inputTokens':_0x644f05?.[_0x47ec8f(_0x526261._0x50e1ad,0x3af,_0x526261._0x11e9a9,_0x526261._0x411013)]??0x0,'outputTokens':_0x644f05?.[_0x1b64b4(-0x285,-_0x526261._0x54d5c2,-0x297,-_0x526261._0xa43fbf)]??0x0,..._0x644f05?.['completion_tokens_details']?.[_0x47ec8f(0x3ba,0x384,_0x526261._0x33dca0,0x365)]!==void 0x0?{'reasoningTokens':_0x644f05['completion_tokens_details'][_0x47ec8f(0x2fd,0x384,_0x526261._0x5b9c5d,_0x526261._0x1a896c)]}:{}};}function resolveReasoningVisibility2(_0xbc1720){const _0x45995f={_0x2b0ca2:0x2a1,_0x3818e9:0x27e,_0xdd32e8:0x28f,_0x1ea63e:0x143,_0x5b7908:0x122},_0x3bee31={_0x7e92a8:0xf7,_0x2d5463:0x14a},_0x5c7257={_0x28b4ee:0xf,_0x19fd13:0x13a};function _0x972138(_0x4d76da,_0x1a1372,_0x2aa4ed,_0x268a18){return _0x2e041c(_0x4d76da-0x5e,_0x1a1372-_0x5c7257._0x28b4ee,_0x1a1372- -_0x5c7257._0x19fd13,_0x268a18);}function _0x4adf9d(_0x4224e0,_0x59ddbc,_0x277c18,_0x12cd5e){return _0x55f0a4(_0x4224e0-_0x3bee31._0x7e92a8,_0x59ddbc-_0x3bee31._0x2d5463,_0x59ddbc,_0x12cd5e-0x1fe);}return _0xbc1720[_0x4adf9d(-0x14,0x49,0x8c,0x72)]?.[_0x972138(-_0x45995f._0x2b0ca2,-0x211,-_0x45995f._0x3818e9,-_0x45995f._0xdd32e8)]??_0x972138(-_0x45995f._0x1ea63e,-_0x45995f._0x5b7908,-0x148,-0x1ce);}function isUserVisibleReasoning(_0x1c6b00){const _0x32c8d1={_0x3fb230:0x209,_0x294411:0x2ad,_0x2898f6:0x237,_0x10c218:0x29d},_0x1b65f4={_0x94f38a:0x357},_0x4d1c10={_0x2a0c3b:0x1d4,_0x274992:0x28c};function _0x3cc447(_0x3e0b0f,_0xf7b1a2,_0x4a1360,_0x400b49){return _0x2e041c(_0x3e0b0f-0x1e9,_0xf7b1a2-_0x4d1c10._0x2a0c3b,_0x4a1360-_0x4d1c10._0x274992,_0x3e0b0f);}function _0x2329c7(_0x5f22f1,_0x1d9c72,_0x2265d1,_0x4814a9){return _0x2e041c(_0x5f22f1-0x94,_0x1d9c72-0x60,_0x1d9c72-_0x1b65f4._0x94f38a,_0x5f22f1);}return resolveOpenAiReasoningConfig(_0x1c6b00[_0x3cc447(_0x32c8d1._0x3fb230,0x2ee,_0x32c8d1._0x294411,0x354)])!==void 0x0&&resolveReasoningVisibility2(_0x1c6b00)===_0x3cc447(0x346,_0x32c8d1._0x2898f6,0x2a4,_0x32c8d1._0x10c218);}function createChatRequestBody(_0x3488d8,_0x2c8990){const _0x386945={_0x8a2fac:0x2c4,_0x4a1cd5:0x223,_0x25f3ce:0x49b,_0x22234a:0x45c,_0x1387d3:0x298,_0x579235:0x26d,_0x4b9fb6:0x30a,_0x54bd29:0x19e,_0x176b76:0x23e,_0x1613ee:0x3f9,_0xb727df:0x3ff,_0x35baed:0x272,_0x5e947b:0x287,_0x286884:0x19c,_0x1b756a:0x27f,_0x2e650d:0x4c3,_0x4a39d3:0x40f,_0x56c879:0x579,_0x58ebe8:0x524,_0x142539:0x563,_0x11c952:0x4b7,_0x1ba8d5:0x5e9,_0x33cbdc:0x515,_0x6ea36e:0x387,_0x4edc3a:0x3a0,_0x32bac4:0x459,_0x147e4a:0x355,_0x24c126:0x385,_0x17c895:0x19b,_0x2c5bbc:0x260,_0x3b7691:0x23e,_0x59d86b:0x2af,_0x2d3c5f:0x2b7,_0x52f80e:0x2a5,_0x3bf8d7:0x1f9,_0x42fce1:0x25d,_0x23faf3:0x340,_0x100e2c:0x317,_0x2935b9:0x360,_0x4dffd2:0x534,_0x23c7ae:0x4af},_0x156b89={_0x35dc14:0x19f},_0x22a3bb={_0x1e6883:0x106},_0x232df4={_0x2e3087:0x1cb,_0x4c6540:0x1dc,_0x43605c:0x25f,_0x2db651:0x26b,_0x4e6e2b:0x265,_0x1cdbfa:0x235,_0x503029:0x2d8,_0x48db20:0xc8,_0x184c7a:0x19e,_0x154808:0x2e1,_0x29ba37:0x26e,_0x4d7183:0x211,_0x260efb:0x18b,_0x3246e5:0x24c,_0x2f8802:0x351,_0x1d07eb:0x2a2,_0x534978:0x236,_0x1b974c:0x2ed,_0x216181:0x231,_0x48c2fd:0x24c,_0x5db4b4:0x1cf,_0x14b43e:0x244,_0x3f804a:0x1e6,_0x2cc5ab:0x233,_0x593a8e:0x27f,_0x1b50d1:0x229,_0x1efa5e:0x28f,_0x37cf3a:0x1de,_0x5a72ad:0x194,_0x4308df:0x306,_0x5304b9:0x278},_0x37f260={_0x57a812:0x299},_0x582441=[],_0x47ba87=stringifySystem(_0x3488d8['system']);_0x47ba87['length']>0x0&&_0x582441[_0x324054(_0x386945._0x8a2fac,0x192,_0x386945._0x4a1cd5,0x2b1)]({'role':_0x3ccec8(_0x386945._0x25f3ce,0x44c,_0x386945._0x22234a,0x4fc),'content':_0x47ba87});for(const _0x3fbe04 of _0x3488d8[_0x324054(_0x386945._0x1387d3,_0x386945._0x579235,0x2a3,_0x386945._0x4b9fb6)]){const _0x3933d3=[],_0x309cc3=[],_0x443ba0=()=>{const _0x193d6a={_0x367c72:0xb};if(_0x3fbe04[_0x8b74c9(_0x232df4._0x2e3087,0x26d,_0x232df4._0x4c6540,_0x232df4._0x43605c)]===_0x6ea9a7(_0x232df4._0x2db651,_0x232df4._0x4e6e2b,_0x232df4._0x1cdbfa,_0x232df4._0x503029)){if(_0x3933d3['length']===0x0&&_0x309cc3['length']===0x0)return;_0x582441[_0x6ea9a7(0x176,_0x232df4._0x48db20,0x16f,_0x232df4._0x184c7a)]({'role':'assistant','content':_0x3933d3[_0x8b74c9(0x260,_0x232df4._0x154808,_0x232df4._0x29ba37,0x278)]>0x0?_0x3933d3[_0x6ea9a7(_0x232df4._0x4d7183,0x1d5,0x2c9,_0x232df4._0x260efb)]('\x0a\x0a'):null,..._0x309cc3[_0x6ea9a7(_0x232df4._0x3246e5,0x22a,0x21b,0x2fa)]>0x0?{'tool_calls':_0x309cc3[_0x8b74c9(_0x232df4._0x2f8802,0x221,0x338,_0x232df4._0x1d07eb)](0x0)}:{}}),_0x3933d3[_0x6ea9a7(_0x232df4._0x3246e5,_0x232df4._0x534978,_0x232df4._0x1b974c,_0x232df4._0x216181)]=0x0;return;}if(_0x3933d3[_0x6ea9a7(_0x232df4._0x48c2fd,_0x232df4._0x5db4b4,0x215,0x265)]===0x0)return;function _0x8b74c9(_0x503c52,_0x1c1f1f,_0x3c83c1,_0x2da079){return _0x3ccec8(_0x3c83c1,_0x2da079- -0x26d,_0x3c83c1-_0x193d6a._0x367c72,_0x2da079-0x27);}function _0x6ea9a7(_0x3a58b7,_0x358f1c,_0x1888dd,_0x48fbe2){return _0x3ccec8(_0x48fbe2,_0x3a58b7- -_0x37f260._0x57a812,_0x1888dd-0x186,_0x48fbe2-0x2);}_0x582441[_0x8b74c9(_0x232df4._0x14b43e,_0x232df4._0x4d7183,_0x232df4._0x3f804a,0x1a2)]({'role':_0x3fbe04[_0x6ea9a7(_0x232df4._0x2cc5ab,0x21b,_0x232df4._0x593a8e,_0x232df4._0x1b50d1)],'content':_0x3933d3[_0x6ea9a7(0x211,_0x232df4._0x1efa5e,_0x232df4._0x37cf3a,_0x232df4._0x5a72ad)]('\x0a\x0a')}),_0x3933d3[_0x8b74c9(0x234,0x1c4,_0x232df4._0x4308df,_0x232df4._0x5304b9)]=0x0;};for(const _0x5ae62b of normalizeContent(_0x3fbe04[_0x324054(_0x386945._0x54bd29,0x196,_0x386945._0x176b76,0x2f5)])){if(_0x5ae62b[_0x3ccec8(0x4b0,0x47b,_0x386945._0x1613ee,0x3da)]==='text'){_0x3933d3[_0x3ccec8(0x4af,0x40f,_0x386945._0xb727df,0x48a)](_0x5ae62b[_0x3ccec8(0x4b3,0x497,0x3ed,0x51a)]);continue;}if(_0x5ae62b[_0x324054(_0x386945._0x35baed,_0x386945._0x5e947b,0x28f,0x211)]===_0x324054(0x1a9,_0x386945._0x286884,0x226,_0x386945._0x1b756a)){_0x309cc3[_0x3ccec8(_0x386945._0x2e650d,_0x386945._0x4a39d3,0x3ad,0x4a4)]({'id':_0x5ae62b['id'],'type':_0x3ccec8(0x5fa,_0x386945._0x56c879,0x596,0x610),'function':{'name':_0x5ae62b[_0x3ccec8(_0x386945._0x58ebe8,_0x386945._0x142539,_0x386945._0x11c952,_0x386945._0x1ba8d5)],'arguments':JSON['stringify'](_0x5ae62b['input']??{})}});continue;}if(_0x5ae62b[_0x3ccec8(0x42f,0x47b,_0x386945._0x33cbdc,0x4ea)]!==_0x324054(0x33b,0x339,_0x386945._0x6ea36e,_0x386945._0x4edc3a))continue;_0x443ba0(),_0x582441[_0x3ccec8(_0x386945._0x32bac4,0x40f,0x416,0x45e)]({'role':_0x324054(_0x386945._0x147e4a,0x3c3,_0x386945._0x24c126,0x423),'content':stringifyValue(_0x5ae62b[_0x324054(_0x386945._0x17c895,_0x386945._0x2c5bbc,_0x386945._0x3b7691,_0x386945._0x59d86b)]),'tool_call_id':_0x5ae62b[_0x324054(_0x386945._0x2d3c5f,0x230,_0x386945._0x52f80e,0x343)]});}_0x443ba0();}function _0x3ccec8(_0x158005,_0x11b5be,_0x2e092f,_0x18ddf2){return _0x55f0a4(_0x158005-0x56,_0x11b5be-_0x22a3bb._0x1e6883,_0x158005,_0x11b5be-0x6f5);}function _0x324054(_0x20927e,_0x2af84d,_0x3d63b5,_0x12fdfd){return _0x55f0a4(_0x20927e-0x131,_0x2af84d-_0x156b89._0x35dc14,_0x20927e,_0x3d63b5-0x509);}const _0x52dd6e=resolveOpenAiReasoningConfig(_0x3488d8['reasoning']);return{'model':_0x3488d8[_0x324054(0x27f,_0x386945._0x3bf8d7,_0x386945._0x42fce1,0x1c9)],'messages':_0x582441,'stream':_0x2c8990,..._0x52dd6e?{'max_completion_tokens':_0x3488d8[_0x3ccec8(0x426,0x42b,0x44f,0x3c0)]}:{'max_tokens':_0x3488d8[_0x3ccec8(0x4b7,0x42b,0x392,0x3e5)]},..._0x52dd6e?.[_0x324054(_0x386945._0x23faf3,_0x386945._0x100e2c,0x2bc,_0x386945._0x2935b9)]?{'reasoning_effort':_0x52dd6e[_0x3ccec8(0x47c,0x4a8,0x426,0x518)]}:{},...createToolDefinitions(_0x3488d8['tools'])?{'tools':createToolDefinitions(_0x3488d8[_0x3ccec8(_0x386945._0x4dffd2,0x4d6,_0x386945._0x23c7ae,0x47a)])}:{}};}function createResponsesRequestBody(_0x2d0b4c,_0x377199){return{...toOpenAiResponsesRequest(_0x2d0b4c),..._0x377199?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x4c2212,_0x2098f2={}){const _0x39e3ea={_0x488e6f:0x3ef,_0x169eac:0x5b9,_0x5c3e24:0x4b1,_0xf51727:0x51f,_0x10027d:0x52f},_0x59dc70={_0x5aa35b:0x13d},_0x2404d1={_0xf2d42d:0x6f3};function _0x30c9bd(_0xdb2c20,_0x41636d,_0x236961,_0x607bdd){return _0x55f0a4(_0xdb2c20-0x82,_0x41636d-0x8,_0xdb2c20,_0x41636d-_0x2404d1._0xf2d42d);}function _0x51cfb5(_0x182abc,_0x50b680,_0x38706a,_0x549bf7){return _0x2e041c(_0x182abc-0x1d3,_0x50b680-_0x59dc70._0x5aa35b,_0x38706a-0x52e,_0x50b680);}const _0x7094c8=toOpenAiResponsesRequest(_0x4c2212);return{'type':_0x30c9bd(0x4b5,0x44e,_0x39e3ea._0x488e6f,0x423),..._0x7094c8,..._0x2098f2['input']?{'input':_0x2098f2[_0x51cfb5(_0x39e3ea._0x169eac,0x5a0,0x529,0x5e4)]}:{},..._0x2098f2['previousResponseId']?{'previous_response_id':_0x2098f2[_0x30c9bd(_0x39e3ea._0x5c3e24,0x55b,_0x39e3ea._0xf51727,_0x39e3ea._0x10027d)]}:{},'store':![]};}function normalizeAssistantContent(_0x56fb79){const _0x29aa51={_0x17e80f:0x11a,_0x4c1a55:0x6e,_0x370a1a:0x1f1,_0x4221a5:0x11d,_0x645ef1:0x1e},_0x5073c2={_0x55dc17:0x18d,_0x8cc4ae:0x243,_0x54114d:0x2b3,_0x582778:0x178,_0x7e507b:0x18b,_0x5d1abd:0x210},_0x5dfe34={_0x4c3a12:0x15b,_0x57aadf:0x145},_0x21c96d={_0x75e534:0x1c8},_0x402437={_0x1a6318:0x11e};function _0x4f4e8a(_0x1cc767,_0x5d94aa,_0x5e1a59,_0x40902f){return _0x2e041c(_0x1cc767-0x10d,_0x5d94aa-_0x402437._0x1a6318,_0x5e1a59- -0x188,_0x5d94aa);}function _0x547704(_0x2d2f61,_0x1ace8a,_0x2b3f43,_0x557aee){return _0x2e041c(_0x2d2f61-0x25,_0x1ace8a-0x97,_0x2b3f43-0x80,_0x1ace8a);}if(typeof _0x56fb79===_0x547704(_0x29aa51._0x17e80f,0x12e,_0x29aa51._0x4c1a55,-0x47))return _0x56fb79;if(!Array[_0x4f4e8a(-_0x29aa51._0x370a1a,-0xff,-0x159,-_0x29aa51._0x4221a5)](_0x56fb79))return'';return _0x56fb79[_0x547704(-0xc0,-0x54,-0x14,-0xad)](_0x4b8b6e=>{function _0xad728a(_0x4c9443,_0x4f2155,_0x453192,_0x442995){return _0x4f4e8a(_0x4c9443-0x54,_0x442995,_0x4c9443-0x3b4,_0x442995-_0x21c96d._0x75e534);}function _0x39eb33(_0x30bf65,_0x1b1594,_0xe050db,_0x2d062a){return _0x547704(_0x30bf65-_0x5dfe34._0x4c3a12,_0x30bf65,_0xe050db-0x290,_0x2d062a-_0x5dfe34._0x57aadf);}return _0x4b8b6e[_0x39eb33(0x2b7,_0x5073c2._0x55dc17,_0x5073c2._0x8cc4ae,_0x5073c2._0x54114d)]===_0xad728a(0x17b,0x1fc,0x212,_0x5073c2._0x582778)?_0x4b8b6e['text']:_0x4b8b6e[_0x39eb33(_0x5073c2._0x7e507b,0x11f,0x1c3,_0x5073c2._0x5d1abd)];})[_0x547704(-0x2c,0x11,-_0x29aa51._0x645ef1,-0x1)]('');}function normalizeResponsesMessageContent(_0x3fe7c9){const _0x31e18d={_0x5bdc93:0x140,_0x2ca95a:0x1e8,_0x553601:0x10d,_0x42b479:0x62,_0x197478:0x1d,_0x20e3de:0x74,_0x51e4a8:0xb1},_0x341653={_0x49b773:0xf9,_0x596c48:0x10c,_0x3571e0:0x1bd,_0x4a8134:0x121,_0x13c532:0x145,_0x402f98:0x223,_0x10f68a:0x1a1,_0x27104a:0x1ae,_0x2690c2:0x185,_0x219c4d:0xe0,_0x1146e0:0x77,_0x2cc3bc:0xef,_0x529720:0x106,_0x4d9aad:0x2c8,_0x469417:0x23d,_0x2ae390:0x2ca},_0x53c9ec={_0x5b6ed9:0xf3},_0x122625={_0x532a90:0xaa,_0x45aa76:0x1d3,_0x4744e5:0x5e},_0x376b12={_0x181914:0x166,_0x23ffe5:0x2fc},_0xcfc5a9={_0x20a255:0x116};function _0x339db4(_0x3fa0da,_0xa772ad,_0x2fef51,_0x360240){return _0x2e041c(_0x3fa0da-0x12,_0xa772ad-_0xcfc5a9._0x20a255,_0xa772ad- -0x185,_0x360240);}if(!Array[_0x2788ce(_0x31e18d._0x5bdc93,_0x31e18d._0x2ca95a,_0x31e18d._0x553601,0x17e)](_0x3fe7c9))return'';function _0x2788ce(_0x4d240a,_0x338dd6,_0x149cec,_0x431101){return _0x55f0a4(_0x4d240a-_0x376b12._0x181914,_0x338dd6-0x5d,_0x338dd6,_0x431101-_0x376b12._0x23ffe5);}return _0x3fe7c9[_0x2788ce(0x144,_0x31e18d._0x42b479,_0x31e18d._0x197478,0xbb)](_0x5840e1=>{if(!_0x5840e1||typeof _0x5840e1!==_0x25e154(_0x341653._0x49b773,_0x341653._0x596c48,0x9e,-0x1a))return'';function _0x25e154(_0x558124,_0x3a0721,_0x3a98bf,_0x2a7c72){return _0x2788ce(_0x558124-_0x122625._0x532a90,_0x558124,_0x3a98bf-_0x122625._0x45aa76,_0x3a98bf-_0x122625._0x4744e5);}const _0x3c308a=_0x5840e1;if(_0x3c308a[_0x5c4bf0(-0x21f,-0x134,-_0x341653._0x3571e0,-0x1dc)]===_0x25e154(0x164,_0x341653._0x4a8134,0x136,0x1bc)&&typeof _0x3c308a[_0x25e154(_0x341653._0x13c532,0x50,0xfc,0xd8)]==='string')return _0x3c308a[_0x5c4bf0(-_0x341653._0x402f98,-0x1a8,-_0x341653._0x10f68a,-_0x341653._0x27104a)];if(_0x3c308a[_0x25e154(0x54,_0x341653._0x2690c2,_0x341653._0x219c4d,_0x341653._0x1146e0)]===_0x25e154(0x70,_0x341653._0x2cc3bc,0x60,_0x341653._0x529720)&&typeof _0x3c308a[_0x25e154(0xf8,0xd6,0x60,0xbb)]==='string')return _0x3c308a[_0x5c4bf0(-_0x341653._0x4d9aad,-0x283,-_0x341653._0x469417,-_0x341653._0x2ae390)];function _0x5c4bf0(_0x33efd6,_0x544ef7,_0x3659f4,_0x53d7da){return _0x339db4(_0x33efd6-_0x53c9ec._0x5b6ed9,_0x3659f4-0x95,_0x3659f4-0x1ee,_0x544ef7);}return'';})[_0x2788ce(0x132,0x11b,_0x31e18d._0x20e3de,_0x31e18d._0x51e4a8)]('');}function extractOpenAiReasoningText(_0x486fe3){const _0x46dd72={_0x1e8174:0x2f3,_0x8f5b5:0x2d5,_0x5abc8d:0x3b3,_0x182fe2:0x34b,_0x116f5b:0x38c,_0x5e4d2d:0x392,_0x2d70b5:0x27d,_0xc3ce29:0x26f,_0x1308af:0x1b3,_0x286a27:0x202,_0x35571b:0x1a3,_0x2b2d0d:0x1c7},_0x55ab36={_0x7540a4:0x171,_0x166658:0x1c8};if(typeof _0x486fe3[_0x54678b(0x2b4,0x2ac,_0x46dd72._0x1e8174,_0x46dd72._0x8f5b5)]===_0x54678b(_0x46dd72._0x5abc8d,_0x46dd72._0x182fe2,0x2ef,0x2f5))return _0x486fe3['text'];function _0x54678b(_0x296d08,_0x3c9e8e,_0x255713,_0x4694fd){return _0x55f0a4(_0x296d08-0x53,_0x3c9e8e-0x14,_0x4694fd,_0x3c9e8e-0x50a);}function _0x4f6938(_0x1af8f8,_0x103b05,_0x3a84b3,_0x32bf4e){return _0x2e041c(_0x1af8f8-_0x55ab36._0x7540a4,_0x103b05-_0x55ab36._0x166658,_0x1af8f8- -0x188,_0x103b05);}if(!Array[_0x54678b(0x2e9,_0x46dd72._0x116f5b,_0x46dd72._0x5e4d2d,0x3b0)](_0x486fe3[_0x4f6938(-0x2a6,-0x242,-_0x46dd72._0x2d70b5,-0x250)]))return'';return _0x486fe3['content'][_0x54678b(0x1b4,_0x46dd72._0xc3ce29,_0x46dd72._0x1308af,_0x46dd72._0x286a27)](_0x5447ac=>_0x5447ac[_0x54678b(0x318,0x290,0x335,0x2d0)]===_0x54678b(0x2d1,0x21c,0x164,0x1d5)&&typeof _0x5447ac['text']===_0x54678b(0x349,0x34b,0x2dd,0x2f7))[_0x4f6938(-0x21c,-0x2b7,-_0x46dd72._0x35571b,-_0x46dd72._0x2b2d0d)](_0x3c7d9f=>_0x3c7d9f[_0x4f6938(-0x239,-0x278,-0x19b,-0x29d)]??'')['join']('');}function createOpenAiReasoningBlock(_0x4eeb56){const _0x2b5e68={_0x32baca:0x41,_0x8d849:0x90,_0x134842:0x237,_0x756909:0x1ab},_0x399bae={_0x32c49e:0x34},_0x2b88c5={_0x78cca4:0x1f0,_0x2d7c80:0x1bc};function _0x5c78da(_0xcf7146,_0x6a4ec7,_0x17223a,_0x7690dc){return _0x2e041c(_0xcf7146-_0x2b88c5._0x78cca4,_0x6a4ec7-_0x2b88c5._0x2d7c80,_0x6a4ec7- -0x1d4,_0xcf7146);}const _0x5b43d6=extractOpenAiReasoningText(_0x4eeb56);function _0x555e16(_0xb6f822,_0x5a0600,_0x23dc4a,_0x57f1a9){return _0x55f0a4(_0xb6f822-0x19a,_0x5a0600-_0x399bae._0x32c49e,_0x5a0600,_0x23dc4a-0x278);}return{'type':'openai_reasoning','summary':structuredClone(_0x4eeb56['summary']??[]),..._0x4eeb56['id']?{'id':_0x4eeb56['id']}:{},..._0x4eeb56['encrypted_content']?{'encryptedContent':_0x4eeb56[_0x555e16(_0x2b5e68._0x32baca,_0x2b5e68._0x8d849,0xda,0x17a)]}:{},..._0x5b43d6[_0x5c78da(-0x29b,-_0x2b5e68._0x134842,-0x234,-_0x2b5e68._0x756909)]>0x0?{'text':_0x5b43d6}:{}};}function hasVisibleOpenAiReasoning(_0x3e3926){const _0x5eb9df={_0x5c54cb:0x145,_0x59e8f8:0x27c,_0x4625ec:0x1d3,_0x41ac30:0x20b,_0x1ae21e:0x1e8,_0x14ae82:0x16c},_0x2a45da={_0xbb51c9:0xd,_0x18e1b3:0x9a,_0x4888d4:0x392},_0x322b6f={_0x5ca06b:0x1d8};function _0x51814c(_0x392a8e,_0x401562,_0x339227,_0x849e92){return _0x2e041c(_0x392a8e-0x18c,_0x401562-0xd3,_0x392a8e- -_0x322b6f._0x5ca06b,_0x339227);}function _0x15c42c(_0x542428,_0xc40bf4,_0x1e9428,_0x53863b){return _0x55f0a4(_0x542428-_0x2a45da._0xbb51c9,_0xc40bf4-_0x2a45da._0x18e1b3,_0xc40bf4,_0x542428-_0x2a45da._0x4888d4);}return _0x3e3926[_0x15c42c(0x1fb,_0x5eb9df._0x5c54cb,_0x5eb9df._0x59e8f8,0x194)]['length']>0x0||typeof _0x3e3926['text']===_0x15c42c(_0x5eb9df._0x4625ec,_0x5eb9df._0x41ac30,_0x5eb9df._0x1ae21e,_0x5eb9df._0x14ae82);}function parseChatCompletionResponse(_0x292ae6){const _0x329bc7={_0x483e9e:0xf3,_0x5b7060:0x126,_0x3dabe6:0x16a,_0x8f49c:0x1d5,_0x2f8d81:0xac,_0x399c10:0x121,_0x320a09:0xde,_0x350d06:0xaf,_0x22adea:0x53,_0xea1ac2:0xa9,_0x15bce4:0x16,_0x3b0bc9:0xa,_0x3e4500:0x99,_0x28542a:0xb2,_0x168fef:0x138,_0x487663:0x1e6,_0x1a0cc5:0x158,_0x160188:0xb6,_0x273798:0xe2,_0x5f8e8c:0x25d,_0x17ef8a:0xe6,_0x3296f0:0x11f,_0x6a79d9:0x17,_0x423a11:0xd4,_0x11e42e:0xf4,_0x11a8c2:0xbe,_0x1ff73c:0x136},_0x266188={_0x271e5c:0x11e,_0x309bbd:0x374},_0x5a92b7={_0x2ddd5e:0xad};function _0x39999d(_0xad5ada,_0x379ab6,_0x3ffac8,_0x4534b3){return _0x2e041c(_0xad5ada-0x144,_0x379ab6-0xaa,_0xad5ada- -_0x5a92b7._0x2ddd5e,_0x3ffac8);}const _0x3a89a7=[],_0x436bfc=[];let _0x390bf0=_0x5d8fbe(_0x329bc7._0x483e9e,_0x329bc7._0x5b7060,_0x329bc7._0x3dabe6,_0x329bc7._0x8f49c);for(const _0x28d18b of _0x292ae6[_0x5d8fbe(_0x329bc7._0x2f8d81,0xe3,0x156,_0x329bc7._0x399c10)]??[]){const _0x106596=_0x28d18b[_0x5d8fbe(0x1ca,0x121,_0x329bc7._0x320a09,_0x329bc7._0x350d06)],_0x91cd1=normalizeAssistantContent(_0x106596?.[_0x5d8fbe(_0x329bc7._0x22adea,_0x329bc7._0xea1ac2,_0x329bc7._0x15bce4,-_0x329bc7._0x3b0bc9)]);_0x91cd1[_0x39999d(-0x110,-_0x329bc7._0x3e4500,-_0x329bc7._0x28542a,-_0x329bc7._0x168fef)]>0x0&&_0x3a89a7[_0x39999d(-_0x329bc7._0x487663,-_0x329bc7._0x1a0cc5,-0x22f,-0x1f2)](_0x91cd1),_0x106596?.[_0x5d8fbe(_0x329bc7._0x160188,0x7e,_0x329bc7._0x273798,0x123)]&&_0x436bfc['push'](..._0x106596['tool_calls']),_0x28d18b['finish_reason']===_0x39999d(-0x1f6,-0x13c,-0x149,-_0x329bc7._0x5f8e8c)&&(_0x390bf0=_0x5d8fbe(_0x329bc7._0x17ef8a,0x91,_0x329bc7._0x3296f0,_0x329bc7._0x6a79d9));}function _0x5d8fbe(_0x30664c,_0x25674c,_0x1d67c9,_0x2a96d3){return _0x55f0a4(_0x30664c-_0x266188._0x271e5c,_0x25674c-0xd5,_0x30664c,_0x25674c-_0x266188._0x309bbd);}return _0x436bfc['length']>0x0&&(_0x390bf0=_0x5d8fbe(0x15,0x91,0x4b,_0x329bc7._0x423a11)),{'id':_0x292ae6['id']??_0x39999d(-0xb8,-0xe4,-_0x329bc7._0x11e42e,-0x88)+Date['now'](),'content':createContentBlocks(_0x3a89a7[_0x5d8fbe(0xb8,0x129,0x78,0x11c)](''),_0x436bfc),'stopReason':_0x390bf0,'usage':createUsage(_0x292ae6[_0x39999d(-_0x329bc7._0x11a8c2,-_0x329bc7._0x1ff73c,-0x4c,-0x5e)])};}function parseResponsesResponse(_0x3a5b33,_0x3d1f6b){const _0x490b00={_0x29c1c6:0x295,_0x5178a0:0x327,_0x15ca9a:0x2d6,_0x3ff86c:0x29a,_0x554ec9:0x2b1,_0x3e424e:0x2a9,_0x2f55a8:0x16,_0x464142:0x6e,_0x322958:0x213,_0x2c35bc:0x237,_0x1ffba0:0x3e2,_0x11da4b:0x34f,_0x47e467:0x2cf,_0x2b90de:0x331,_0x242b83:0x60,_0x238e49:0x3d0,_0x358e8c:0x2d4,_0xc4667b:0x376,_0xa5d7b:0x49,_0x28dccd:0x3b0,_0x3705a0:0x37f,_0x1c4de0:0x122,_0x1d6874:0x244,_0x24d1c3:0x2b6,_0x16e99b:0x2b2,_0x248ee0:0x39c,_0x488c6b:0x2fb,_0x2fc1a2:0x480,_0x2ce72b:0x45d,_0x32a942:0x3d0,_0x4411f8:0x369,_0x406455:0x1f1,_0x59a8de:0x2fa,_0x10c5d5:0x24e,_0x3c6218:0x1cc,_0x57b259:0x303,_0x11f11a:0x2d2,_0x311285:0x70,_0x4b0d26:0x56,_0x2fdef7:0x83,_0x3fc046:0xc4,_0x5dc8cd:0x8,_0x45110a:0x141,_0x464ca1:0x102,_0x2823a3:0x3f2,_0x2847f4:0x39b,_0x4363d0:0x40c,_0x11e139:0x123,_0x445199:0x3b6,_0x19b8b0:0x388,_0xa5dfbe:0x34a,_0x1ada87:0x313,_0xcbfd99:0x472,_0x9cdc0e:0x3b2,_0x185495:0x3d1,_0x39bedd:0x317,_0xaf0c5f:0x2aa,_0x202146:0x2d6,_0x4bffe2:0x28,_0x4eff96:0xc5,_0x21a43d:0xbe,_0x1836f1:0x6d},_0x570425={_0x413ba0:0x93,_0x3ff2b2:0xd3,_0x3f0c7a:0x3e2},_0x5e4437={_0x55b0db:0x69};function _0x446c48(_0x2bc925,_0x1926cb,_0x52851d,_0x78f183){return _0x55f0a4(_0x2bc925-0x167,_0x1926cb-_0x5e4437._0x55b0db,_0x52851d,_0x2bc925-0x2e1);}const _0x2e5408=[];function _0x473c64(_0x49dc80,_0x2a3bf5,_0x105f0b,_0x13eeea){return _0x2e041c(_0x49dc80-_0x570425._0x413ba0,_0x2a3bf5-_0x570425._0x3ff2b2,_0x13eeea-_0x570425._0x3f0c7a,_0x105f0b);}for(const _0x2c2f7c of _0x3a5b33[_0x473c64(_0x490b00._0x29c1c6,0x2f0,_0x490b00._0x5178a0,_0x490b00._0x15ca9a)]??[]){if(isResponsesReasoningItem(_0x2c2f7c)){if(isUserVisibleReasoning(_0x3d1f6b)){const _0x270877=createOpenAiReasoningBlock(_0x2c2f7c);hasVisibleOpenAiReasoning(_0x270877)&&_0x2e5408[_0x473c64(_0x490b00._0x3ff86c,_0x490b00._0x554ec9,0x2f7,_0x490b00._0x3e424e)](_0x270877);}continue;}if(isResponsesMessageItem(_0x2c2f7c)){const _0x224694=normalizeResponsesMessageContent(_0x2c2f7c[_0x446c48(_0x490b00._0x2f55a8,_0x490b00._0x464142,0x36,0x1d)]);_0x224694[_0x473c64(0x42a,0x3a5,0x324,0x37f)]>0x0&&_0x2e5408[_0x473c64(_0x490b00._0x322958,_0x490b00._0x2c35bc,0x26a,0x2a9)]({'type':_0x473c64(_0x490b00._0x1ffba0,_0x490b00._0x11da4b,_0x490b00._0x47e467,_0x490b00._0x2b90de),'text':_0x224694});continue;}if(!isResponsesFunctionCallItem(_0x2c2f7c)||typeof _0x2c2f7c[_0x446c48(0x1f,0x77,_0x490b00._0x242b83,0x23)]!==_0x473c64(0x3b0,0x378,0x47a,_0x490b00._0x238e49)||_0x2c2f7c[_0x473c64(0x253,_0x490b00._0x358e8c,_0x490b00._0xc4667b,0x2cd)][_0x446c48(0x8,-0x9d,0x35,_0x490b00._0xa5d7b)]()[_0x473c64(0x34a,0x3d1,_0x490b00._0x28dccd,_0x490b00._0x3705a0)]===0x0||typeof _0x2c2f7c['name']!==_0x446c48(_0x490b00._0x1c4de0,0x101,0x1d7,0xab)||_0x2c2f7c['name'][_0x473c64(0x207,_0x490b00._0x1d6874,0x34d,_0x490b00._0x24d1c3)]()['length']===0x0||typeof _0x2c2f7c[_0x473c64(0x269,_0x490b00._0x16e99b,_0x490b00._0x248ee0,_0x490b00._0x488c6b)]!==_0x473c64(0x3da,_0x490b00._0x2fc1a2,_0x490b00._0x2ce72b,_0x490b00._0x32a942))continue;_0x2e5408[_0x473c64(0x32b,_0x490b00._0x4411f8,0x353,0x2a9)]({'type':_0x473c64(0x2cf,0x31e,_0x490b00._0x406455,0x2ac),'id':_0x2c2f7c['call_id'],'name':_0x2c2f7c['name'],'input':parseToolInput2(_0x2c2f7c[_0x473c64(_0x490b00._0x59a8de,0x2f8,_0x490b00._0x10c5d5,0x2fb)])});}return!_0x2e5408[_0x446c48(0x141,0x169,_0x490b00._0x3c6218,0x163)](_0x23b0af=>_0x23b0af[_0x446c48(0x67,0xab,0x40,0x86)]===_0x446c48(0x83,0x82,0x94,0xa8))&&_0x3a5b33[_0x473c64(_0x490b00._0x57b259,_0x490b00._0x11f11a,0x39a,0x36b)]&&_0x2e5408[_0x446c48(-0x5,-_0x490b00._0x311285,-_0x490b00._0x4b0d26,0x2b)]({'type':_0x446c48(_0x490b00._0x2fdef7,0xb3,_0x490b00._0x3fc046,_0x490b00._0x5dc8cd),'text':_0x3a5b33[_0x446c48(0xbd,0x128,0x177,0x32)]}),{'id':_0x3a5b33['id'],'content':_0x2e5408,'stopReason':_0x2e5408[_0x446c48(_0x490b00._0x45110a,0x129,0x175,0x18b)](_0x2dfa9f=>_0x2dfa9f[_0x446c48(0x67,-0x1,0x3d,0x88)]===_0x473c64(0x234,0x358,0x201,0x2ac))?'tool_use':'end_turn','usage':{'inputTokens':_0x3a5b33[_0x446c48(0x123,0xb7,0xc4,_0x490b00._0x464ca1)]?.[_0x473c64(0x410,0x3fb,_0x490b00._0x2823a3,_0x490b00._0x2847f4)]??0x0,'outputTokens':_0x3a5b33[_0x473c64(_0x490b00._0x4363d0,0x335,0x418,0x3d1)]?.['output_tokens']??0x0,..._0x3a5b33[_0x446c48(_0x490b00._0x11e139,0x157,0xf7,0x164)]?.[_0x473c64(0x359,_0x490b00._0x445199,_0x490b00._0x19b8b0,_0x490b00._0xa5dfbe)]?.[_0x473c64(_0x490b00._0x1ada87,0x37a,0x363,0x35c)]!==void 0x0?{'reasoningTokens':_0x3a5b33[_0x473c64(_0x490b00._0xcbfd99,_0x490b00._0x9cdc0e,0x45b,_0x490b00._0x185495)][_0x473c64(0x3a6,_0x490b00._0x39bedd,0x395,0x34a)]['reasoning_tokens']}:{}},..._0x3a5b33[_0x473c64(_0x490b00._0xaf0c5f,0x2eb,0x258,_0x490b00._0x202146)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x3a5b33[_0x446c48(_0x490b00._0x4bffe2,_0x490b00._0x4eff96,_0x490b00._0x21a43d,_0x490b00._0x1836f1)]),'openaiResponsesResponseId':_0x3a5b33['id']}}:{}};}function extractErrorMessage(_0x391d42){const _0x1b03bc={_0x355814:0x4b,_0x276650:0x1a2,_0x322e02:0x178,_0x874230:0x1c2,_0x28d6ff:0x162,_0x433c53:0x223,_0xb71b5c:0x14f,_0x393a87:0xd0,_0x21f8d3:0xab,_0x230e5c:0x141,_0x4ae92d:0x202,_0x341e59:0x164,_0x32ae7a:0x14c,_0x236c5f:0x19d,_0x44fbe5:0x201,_0x1653f6:0x198,_0x1b64f6:0x218,_0x34dfa4:0x19e,_0x41db76:0x1ba,_0x166481:0x1f6,_0x56124e:0x79,_0x2cffea:0xcf,_0x43cd72:0x161,_0x55b569:0x187,_0x4c3d5f:0x21a},_0x4f3c15={_0x1bd9cc:0x176,_0x342789:0x141};function _0x27bff3(_0x4972d5,_0x449e7a,_0x359cbc,_0x1f569c){return _0x2e041c(_0x4972d5-0xc6,_0x449e7a-0x170,_0x449e7a- -0xbe,_0x4972d5);}if(_0x391d42[_0xd7aeff(-0x4f,-0xcf,-_0x1b03bc._0x355814,-0x6d)]===0x0)return'';try{const _0xae99b1=JSON[_0x27bff3(-0x16a,-0x12a,-_0x1b03bc._0x276650,-0x1c6)](_0x391d42);if(typeof _0xae99b1[_0x27bff3(-_0x1b03bc._0x322e02,-_0x1b03bc._0x874230,-0x122,-_0x1b03bc._0x28d6ff)]?.[_0x27bff3(-_0x1b03bc._0x433c53,-0x164,-0x17c,-0x223)]===_0x27bff3(-_0x1b03bc._0xb71b5c,-_0x1b03bc._0x393a87,-_0x1b03bc._0x21f8d3,-_0x1b03bc._0x230e5c)&&_0xae99b1[_0xd7aeff(-0x18c,-0x170,-_0x1b03bc._0x4ae92d,-0x1a5)][_0x27bff3(-0x20a,-_0x1b03bc._0x341e59,-0x113,-0x13b)][_0xd7aeff(-0x124,-0x198,-0x1fb,-_0x1b03bc._0x32ae7a)]()['length']>0x0)return _0xae99b1['error'][_0x27bff3(-_0x1b03bc._0x236c5f,-_0x1b03bc._0x341e59,-_0x1b03bc._0x44fbe5,-0xe2)][_0xd7aeff(-0x146,-_0x1b03bc._0x1653f6,-0x11f,-0x147)]();if(typeof _0xae99b1[_0x27bff3(-0xbb,-_0x1b03bc._0x341e59,-_0x1b03bc._0x1b64f6,-_0x1b03bc._0x34dfa4)]==='string'&&_0xae99b1[_0x27bff3(-0x1e3,-0x164,-_0x1b03bc._0x41db76,-0xc8)][_0xd7aeff(-0x178,-0x198,-0x1b1,-_0x1b03bc._0x166481)]()[_0xd7aeff(-_0x1b03bc._0x56124e,-_0x1b03bc._0x2cffea,-_0x1b03bc._0x43cd72,-0x59)]>0x0)return _0xae99b1[_0x27bff3(-_0x1b03bc._0x55b569,-0x164,-0x1d1,-_0x1b03bc._0x4c3d5f)]['trim']();}catch{return _0x391d42;}function _0xd7aeff(_0x50d64a,_0x2b2598,_0x12634d,_0x4153bd){return _0x55f0a4(_0x50d64a-0x131,_0x2b2598-_0x4f3c15._0x1bd9cc,_0x4153bd,_0x2b2598-_0x4f3c15._0x342789);}return _0x391d42;}async function createOpenAiApiError(_0x4338fe){const _0x391ef5={_0x2e3111:0xe8,_0x5d00b8:0x1a3,_0x247f00:0x123,_0x373020:0x1bd,_0x389351:0x1db,_0x59268f:0x131,_0x4bcd6c:0xa7},_0x354d2b={_0x56d9d2:0x117,_0x55f753:0xeb},_0x4233e2={_0x4327f3:0x183};function _0x376f45(_0x403f0b,_0x3d5b8c,_0x430b06,_0x57ee75){return _0x2e041c(_0x403f0b-_0x4233e2._0x4327f3,_0x3d5b8c-0x175,_0x3d5b8c-0x1a2,_0x57ee75);}const _0x18fbe9=(await _0x4338fe[_0x4bcca9(-_0x391ef5._0x2e3111,-0x173,-0x212,-0x15e)]())['trim']();function _0x4bcca9(_0x51bc22,_0x34c70a,_0x48a174,_0x595799){return _0x55f0a4(_0x51bc22-0x125,_0x34c70a-_0x354d2b._0x56d9d2,_0x51bc22,_0x34c70a-_0x354d2b._0x55f753);}const _0x57044b=extractErrorMessage(_0x18fbe9)||_0x4338fe['statusText']||_0x4bcca9(-_0x391ef5._0x5d00b8,-0x154,-_0x391ef5._0x247f00,-0x1cc)+_0x4338fe[_0x4bcca9(-0x15b,-_0x391ef5._0x373020,-_0x391ef5._0x389351,-_0x391ef5._0x59268f)];return new OpenAiApiError(_0x4338fe[_0x376f45(0xfb,_0x391ef5._0x4bcd6c,0x15,0x116)],_0x18fbe9,_0x57044b);}function readSseData(_0x20a36a){const _0x119b92={_0x57e3d5:0x14f,_0x50f03e:0x285,_0x3335ef:0x1e0,_0x5c9ba9:0x25a,_0x5044ad:0x2f1,_0x88ba11:0x2a4,_0x2b9ae0:0x307,_0x34b2fa:0x136,_0x3877cd:0x1ed,_0x47d3b4:0x216,_0x4fb6d1:0x24c};function _0x4c7070(_0x20a94d,_0x4ee834,_0x39e8d4,_0x5c6fb0){return _0x2e041c(_0x20a94d-0x6c,_0x4ee834-0x1de,_0x5c6fb0- -0x159,_0x20a94d);}function _0x335179(_0x482951,_0x4f3782,_0x23d9b6,_0x57ec8d){return _0x55f0a4(_0x482951-0x1bb,_0x4f3782-0xd4,_0x57ec8d,_0x23d9b6- -0x9);}return _0x20a36a[_0x335179(-_0x119b92._0x57e3d5,-_0x119b92._0x50f03e,-_0x119b92._0x3335ef,-_0x119b92._0x5c9ba9)]('\x0a')[_0x335179(-_0x119b92._0x5044ad,-0x252,-_0x119b92._0x88ba11,-_0x119b92._0x2b9ae0)](_0x4af879=>_0x4af879[_0x4c7070(-0x12e,-0x28d,-0x1c8,-0x1d2)]('data:'))[_0x4c7070(-0x245,-0x29f,-_0x119b92._0x34b2fa,-_0x119b92._0x3877cd)](_0x508208=>_0x508208[_0x335179(-0x24f,-0x31b,-0x2b0,-0x2c6)](0x5)[_0x4c7070(-0x1ab,-0x207,-0x13b,-0x1be)]())['join']('\x0a')[_0x4c7070(-_0x119b92._0x47d3b4,-_0x119b92._0x4fb6d1,-0x33c,-0x285)]();}var OpenAiChatCompletionsStreamParser=class{[_0x2e041c(-0xed,-0x9c,-0x7d,-0x6b)]=[];[_0x2e041c(-0x181,-0x1d6,-0x151,-0xdf)]=new Map();['toolCallOrder']=[];['toolUseStartEmitted']=new Set();[_0x55f0a4(-0x19e,-0x222,-0x2e6,-0x24a)]='';[_0x55f0a4(-0x12d,-0x19a,-0x137,-0x18a)]='end_turn';['usage'];[_0x2e041c(-0xb3,-0x9b,-0x5c,-0x4e)](_0x8beac2){const _0x3ee415={_0x4530cb:0x2,_0x2b6312:0xa8,_0x2b7e07:0xfa,_0x591815:0x146,_0x3c45c3:0x8f,_0x5ea6f1:0x27a,_0x1f6ae9:0x21c,_0xfaa2a8:0x255},_0x4d4632={_0x3cdb38:0xf8},_0x2188ed={_0x6d6551:0x180,_0x9519d1:0x63},_0x37bca6=readSseData(_0x8beac2);if(_0x37bca6['length']===0x0||_0x37bca6==='[DONE]')return[];const _0x3fc229=JSON[_0x36d050(_0x3ee415._0x4530cb,-_0x3ee415._0x2b6312,-_0x3ee415._0x2b7e07,-0x65)](_0x37bca6);this[_0x36d050(-0x196,-0xd9,-_0x3ee415._0x591815,-0xdb)]=_0x3fc229['id']??this['responseId'];function _0x1db3fe(_0xe5345a,_0x374493,_0x4f15b0,_0x34b35b){return _0x55f0a4(_0xe5345a-0x1a9,_0x374493-_0x2188ed._0x6d6551,_0x34b35b,_0x4f15b0- -_0x2188ed._0x9519d1);}function _0x36d050(_0x176888,_0x406972,_0x1c412b,_0x289484){return _0x2e041c(_0x176888-_0x4d4632._0x3cdb38,_0x406972-0x1c8,_0x406972- -0x3c,_0x1c412b);}return this[_0x36d050(-_0x3ee415._0x3c45c3,-0x4d,-0x8c,-0x88)]=_0x3fc229[_0x1db3fe(-_0x3ee415._0x5ea6f1,-_0x3ee415._0x1f6ae9,-0x221,-_0x3ee415._0xfaa2a8)]??this['usage'],this['consumeEvent'](_0x3fc229);}['finish'](){const _0x4075f4={_0x2ef2b3:0x41,_0x450ef0:0x12b,_0x172719:0x77,_0x3be83f:0x1,_0x60725a:0x1f,_0x54e13a:0xad,_0xd01d94:0x362,_0x9ff0a7:0x328,_0x32dbf0:0x139},_0x1d1381={_0x10d7ff:0x45},_0x523f2b={_0x48c754:0xf2,_0x45d369:0x22};function _0x321c4c(_0xda0560,_0x5f0ada,_0x18e5ae,_0x45a88){return _0x55f0a4(_0xda0560-_0x523f2b._0x48c754,_0x5f0ada-_0x523f2b._0x45d369,_0x5f0ada,_0x18e5ae-0x5ad);}function _0x2a24e5(_0x257df8,_0x1c86e5,_0x1ed46f,_0x5760b3){return _0x2e041c(_0x257df8-_0x1d1381._0x10d7ff,_0x1c86e5-0x12a,_0x1ed46f-0xbf,_0x5760b3);}return this[_0x2a24e5(0xa,-0x50,-0x2c,0x45)]['length']>0x0&&(this['stopReason']=_0x2a24e5(-_0x4075f4._0x2ef2b3,-_0x4075f4._0x450ef0,-_0x4075f4._0x172719,-0xc9)),{'id':this[_0x2a24e5(-0x50,-_0x4075f4._0x3be83f,0x22,0xba)]||'chatcmpl-'+Date['now'](),'content':createContentBlocks(this[_0x2a24e5(-_0x4075f4._0x60725a,0xcd,0x42,_0x4075f4._0x54e13a)][_0x321c4c(0x3ea,0x320,_0x4075f4._0xd01d94,_0x4075f4._0x9ff0a7)](''),this[_0x321c4c(0x39f,0x297,0x315,0x254)]),'stopReason':this['stopReason'],'usage':createUsage(this[_0x2a24e5(_0x4075f4._0x32dbf0,0x10f,0xae,0x70)])};}['consumeEvent'](_0x274ac3){const _0x13fee6={_0x4fc219:0x12e,_0x38b300:0x9a,_0x2dd933:0x195,_0x84f596:0x5b,_0x1586ad:0xc6,_0x5a8d30:0x2,_0x7e5c4f:0x273,_0x2dfa3f:0x1b0,_0x4d8ee9:0x1e3,_0x32c55e:0x21f,_0x5184da:0xc6,_0x2f5edf:0xda,_0x1c0749:0x314,_0x55e3fe:0x28a,_0x4d723c:0x29b,_0x7182b2:0x197,_0x48d33e:0x1df,_0x241868:0x1f7,_0x36e3f0:0x2d0,_0x47af27:0x3a5,_0x4c742c:0x15f,_0x364d01:0x194,_0x3af41c:0x1f4,_0x123b5b:0x23d,_0xc2d3d:0x2ed,_0x5cc8a1:0xcf,_0x1f0fe1:0x1dc,_0x5c092b:0x2e,_0x286586:0xbc,_0x1a461d:0x51,_0x53c6c7:0x7e,_0x191cd2:0x6c,_0x153528:0x4,_0x2d6feb:0x37,_0x974eb7:0x28e,_0x3b4da:0x1fa,_0x1cc714:0x270,_0x3a764c:0x358,_0x3ee12f:0x329,_0x2cd9cc:0x16d,_0xb2084:0x1d4,_0x388b88:0xd1,_0x5af8bb:0xea,_0x4884ff:0x1e0,_0x1378fd:0x183,_0x592192:0xe6,_0x73ec39:0x2e,_0x2c7ecd:0x49,_0x4384ac:0x158,_0x375bb0:0x14b,_0x17dda4:0x110,_0x2c07aa:0x2ca,_0x3a0a54:0x360,_0x325a3b:0x248,_0x808c4f:0x343,_0x3b5609:0x371,_0x43eb71:0x15d,_0x2dfded:0x1b3,_0x4fb92a:0xf6,_0x1f77b7:0x1f4,_0x325b8c:0x26b,_0x1f27e9:0x95,_0x2d2e4f:0x2e,_0x357919:0xa6,_0x123038:0x155,_0x176dd1:0x201,_0x10b6df:0x1a9,_0x8134dd:0x26d,_0x365981:0x147,_0x511052:0x363,_0x5dfeea:0x314,_0x11e667:0x2d3,_0x5fa07b:0x2d7,_0x49254d:0x271,_0x18c544:0x107,_0x24c82c:0x218},_0x2b3c7e={_0x120930:0x0,_0x44b48a:0x164},_0x56488d={_0x49724b:0x1eb},_0x31dcbc=[];function _0x34992c(_0x45dd2e,_0x367ad5,_0x5bb213,_0x4abff9){return _0x2e041c(_0x45dd2e-0x1d5,_0x367ad5-_0x56488d._0x49724b,_0x45dd2e- -0x19e,_0x4abff9);}function _0x48ae03(_0x3ff4a9,_0x51a39a,_0x667988,_0x2c5e66){return _0x55f0a4(_0x3ff4a9-0x14b,_0x51a39a-_0x2b3c7e._0x120930,_0x51a39a,_0x3ff4a9-_0x2b3c7e._0x44b48a);}for(const _0x1be3b9 of _0x274ac3['choices']??[]){const _0xa1cad=_0x1be3b9[_0x48ae03(-_0x13fee6._0x4fc219,-_0x13fee6._0x38b300,-0x1ba,-_0x13fee6._0x2dd933)],_0xdf6b20=typeof _0xa1cad?.['content']===_0x48ae03(-_0x13fee6._0x84f596,-_0x13fee6._0x1586ad,-0x17,_0x13fee6._0x5a8d30)?_0xa1cad['content']:typeof _0xa1cad?.[_0x34992c(-0x2eb,-0x3a0,-_0x13fee6._0x7e5c4f,-0x30b)]===_0x34992c(-_0x13fee6._0x2dfa3f,-_0x13fee6._0x4d8ee9,-_0x13fee6._0x32c55e,-0x1df)?_0xa1cad['refusal']:'';_0xdf6b20['length']>0x0&&(this[_0x48ae03(-_0x13fee6._0x5184da,-_0x13fee6._0x2f5edf,-0x12e,-0x132)][_0x34992c(-0x2d7,-_0x13fee6._0x1c0749,-0x2f1,-0x33e)](_0xdf6b20),_0x31dcbc[_0x34992c(-0x2d7,-0x362,-_0x13fee6._0x55e3fe,-_0x13fee6._0x4d723c)]({'type':_0x34992c(-_0x13fee6._0x7182b2,-_0x13fee6._0x48d33e,-_0x13fee6._0x241868,-0x148),'index':0x0,'text':_0xdf6b20}));for(const _0x14c7d3 of _0xa1cad?.[_0x34992c(-0x2e7,-0x35b,-_0x13fee6._0x36e3f0,-_0x13fee6._0x47af27)]??[]){const _0x3d781d=_0x14c7d3['index']??0x0;let _0x1401d8=this[_0x48ae03(-0x19a,-_0x13fee6._0x4c742c,-_0x13fee6._0x364d01,-0x19b)][_0x34992c(-0x1cc,-0x1fa,-_0x13fee6._0x3af41c,-0x25a)](_0x3d781d);!_0x1401d8&&(_0x1401d8={'id':_0x14c7d3['id']??_0x34992c(-_0x13fee6._0x123b5b,-_0x13fee6._0xc2d3d,-0x216,-0x219)+_0x3d781d,'type':'function','function':{'name':_0x14c7d3[_0x34992c(-0x16d,-0x15a,-_0x13fee6._0x5cc8a1,-_0x13fee6._0x1f0fe1)]?.[_0x48ae03(-_0x13fee6._0x5c092b,-_0x13fee6._0x286586,-_0x13fee6._0x1a461d,-0x9e)]??'','arguments':''}},this['toolCallsByIndex'][_0x48ae03(-_0x13fee6._0x53c6c7,-_0x13fee6._0x191cd2,-_0x13fee6._0x153528,_0x13fee6._0x2d6feb)](_0x3d781d,_0x1401d8),this[_0x34992c(-0x289,-0x2f7,-_0x13fee6._0x974eb7,-_0x13fee6._0x3b4da)][_0x34992c(-0x2d7,-_0x13fee6._0x1cc714,-_0x13fee6._0x3a764c,-_0x13fee6._0x3ee12f)](_0x1401d8));_0x14c7d3['id']&&(_0x1401d8['id']=_0x14c7d3['id']);_0x14c7d3[_0x34992c(-_0x13fee6._0x2cd9cc,-0x1fc,-0xac,-_0x13fee6._0xb2084)]?.[_0x34992c(-0x183,-_0x13fee6._0x388b88,-_0x13fee6._0x5af8bb,-0x16d)]&&(_0x1401d8[_0x34992c(-0x16d,-0x20f,-0x134,-_0x13fee6._0x4884ff)][_0x34992c(-_0x13fee6._0x1378fd,-0x181,-_0x13fee6._0x592192,-0x112)]=_0x14c7d3['function'][_0x48ae03(-_0x13fee6._0x73ec39,-_0x13fee6._0x2c7ecd,0x32,-0x6b)]);!this[_0x34992c(-0x1f4,-0x1a0,-0x1a6,-_0x13fee6._0x4384ac)]['has'](_0x3d781d)&&_0x1401d8[_0x34992c(-0x16d,-0x198,-0xca,-0x174)][_0x34992c(-0x183,-0xd6,-_0x13fee6._0x375bb0,-_0x13fee6._0x17dda4)][_0x34992c(-_0x13fee6._0x2c07aa,-0x38b,-_0x13fee6._0x3a0a54,-_0x13fee6._0x325a3b)]()['length']>0x0&&(_0x31dcbc[_0x34992c(-0x2d7,-_0x13fee6._0x808c4f,-_0x13fee6._0x3b5609,-0x271)]({'type':_0x48ae03(-0x17e,-_0x13fee6._0x43eb71,-0x1a5,-0x101),'id':_0x1401d8['id'],'index':_0x3d781d,'name':_0x1401d8['function'][_0x34992c(-0x183,-0x20f,-_0x13fee6._0x2dfded,-_0x13fee6._0x4fb92a)]}),this[_0x34992c(-_0x13fee6._0x1f77b7,-0x18d,-_0x13fee6._0x325b8c,-_0x13fee6._0x364d01)]['add'](_0x3d781d));const _0x4b8f86=_0x14c7d3[_0x48ae03(-0x18,-_0x13fee6._0x1f27e9,-_0x13fee6._0x2d2e4f,-0x7a)]?.[_0x48ae03(-0x130,-0x15d,-_0x13fee6._0x357919,-_0x13fee6._0x123038)]??'';_0x4b8f86[_0x34992c(-_0x13fee6._0x176dd1,-_0x13fee6._0x10b6df,-_0x13fee6._0x8134dd,-_0x13fee6._0x365981)]>0x0&&(_0x1401d8['function']['arguments']+=_0x4b8f86,_0x31dcbc[_0x34992c(-0x2d7,-_0x13fee6._0x511052,-0x28e,-_0x13fee6._0x5dfeea)]({'type':_0x34992c(-_0x13fee6._0x11e667,-0x317,-0x214,-0x24e),'id':_0x1401d8['id'],'index':_0x3d781d,'inputDelta':_0x4b8f86}));}_0x1be3b9[_0x34992c(-0x290,-_0x13fee6._0x5fa07b,-0x266,-_0x13fee6._0x49254d)]===_0x48ae03(-0x192,-_0x13fee6._0x18c544,-_0x13fee6._0x24c82c,-0x1bf)&&(this['stopReason']='tool_use');}return _0x31dcbc;}},OpenAiResponsesStreamParser=class{[_0x2e041c(-0x125,-0xb1,-0x152,-0xad)]=new Map();[_0x2e041c(0x15,-0x37,-0x9c,0x0)];[_0x2e041c(-0x96,-0xa7,-0xba,-0x4d)]=new Map();[_0x2e041c(-0xe5,0x87,-0x24,0x14)]=new Map();['reasoningItems']=new Map();[_0x55f0a4(-0x1ae,-0x188,-0xda,-0x19a)];[_0x55f0a4(-0x207,-0x263,-0x239,-0x287)]=new Map();[_0x55f0a4(-0x27e,-0x2f7,-0x27d,-0x2f4)]=new Map();constructor(_0x51d0f4){const _0x31cf17={_0x58d19a:0x4dc,_0x107624:0x506},_0x1ffe18={_0xcdc119:0x15b};function _0x6718bf(_0x15b34b,_0x2b6ec7,_0x1a0524,_0x2710ae){return _0x2e041c(_0x15b34b-0x11a,_0x2b6ec7-_0x1ffe18._0xcdc119,_0x2710ae-0x4f3,_0x2b6ec7);}this[_0x6718bf(0x4ee,0x54e,_0x31cf17._0x58d19a,_0x31cf17._0x107624)]=_0x51d0f4;}[_0x2e041c(-0x98,-0x43,-0x5c,0x5a)](_0x2f4fe3){const _0x114940={_0x1c3e8a:0x15a,_0x1ff222:0x1ec,_0x11919c:0x265,_0x4ed232:0x1e9,_0x5bbaa3:0x2b5,_0x56e541:0x27d,_0x5ce497:0x30a,_0x450a5c:0x1f5,_0x5643b8:0x239,_0x585310:0x306,_0x5e71ba:0x260,_0x4f30a2:0x2d3,_0x4676e0:0x2be,_0x2fe359:0x21d,_0x161652:0x276,_0x3e4def:0x2a2,_0x3c3039:0x22e,_0x513133:0x2e4,_0x657edb:0x237,_0x3cc8af:0x200,_0x4dd823:0x188,_0x562fb5:0x250,_0x33499b:0x24d,_0x39257a:0x1ea},_0x3e8e41={_0x2c5dc9:0xf1,_0x590546:0x2a},_0x264e68=_0x2f4fe3[_0x1cf9b2(-_0x114940._0x1c3e8a,-_0x114940._0x1ff222,-0x29e,-0x143)]('\x0a');function _0x4a2c8c(_0x256534,_0x239e2a,_0x224cff,_0xcc73e2){return _0x55f0a4(_0x256534-_0x3e8e41._0x2c5dc9,_0x239e2a-0x1e2,_0x256534,_0x239e2a-_0x3e8e41._0x590546);}const _0x4e62a6=_0x264e68[_0x4a2c8c(-0x1de,-_0x114940._0x11919c,-_0x114940._0x4ed232,-0x1a4)](_0x18985f=>_0x18985f[_0x4a2c8c(-0x172,-0x1fc,-0x1f0,-0x1a9)]('event:'))?.[_0x4a2c8c(-_0x114940._0x5bbaa3,-_0x114940._0x56e541,-_0x114940._0x5ce497,-_0x114940._0x450a5c)](0x6)[_0x1cf9b2(-0x3ae,-0x2ee,-_0x114940._0x5643b8,-_0x114940._0x585310)](),_0x232504=_0x264e68[_0x1cf9b2(-0x319,-0x2b0,-0x238,-0x2af)](_0x1b0355=>_0x1b0355[_0x4a2c8c(-0x186,-0x1fc,-0x255,-0x210)](_0x4a2c8c(-0x31c,-0x2bf,-0x37b,-0x253)))[_0x4a2c8c(-0x2bf,-0x217,-0x18e,-0x28e)](_0x4f3390=>_0x4f3390[_0x4a2c8c(-0x2f2,-0x27d,-0x310,-0x224)](0x5)[_0x4a2c8c(-0x196,-0x1e8,-0x28b,-0x248)]())[_0x1cf9b2(-0x1d1,-_0x114940._0x5e71ba,-0x23f,-0x204)]('\x0a')['trim']();function _0x1cf9b2(_0x46da29,_0x372cf3,_0x109956,_0x41c4d8){return _0x2e041c(_0x46da29-0x15f,_0x372cf3-0x158,_0x372cf3- -0x1c2,_0x41c4d8);}if(_0x232504[_0x1cf9b2(-_0x114940._0x4f30a2,-0x225,-_0x114940._0x4676e0,-0x288)]===0x0||_0x232504===_0x4a2c8c(-_0x114940._0x2fe359,-_0x114940._0x161652,-_0x114940._0x3e4def,-0x2b7))return[];const _0x4a3221=JSON[_0x1cf9b2(-0x2d5,-_0x114940._0x3c3039,-_0x114940._0x513133,-0x1f8)](_0x232504);return this[_0x1cf9b2(-_0x114940._0x657edb,-_0x114940._0x3cc8af,-0x286,-_0x114940._0x4dd823)](_0x4e62a6??String(_0x4a3221[_0x4a2c8c(-0x21d,-_0x114940._0x562fb5,-_0x114940._0x33499b,-_0x114940._0x39257a)]??''),_0x4a3221);}[_0x55f0a4(-0x22b,-0x1c0,-0x1fd,-0x1ed)](_0x557220){const _0x549872={_0x2561da:0x1a3},_0x209a6e={_0x37f207:0x15c,_0xce012f:0x308};function _0x5500d5(_0xe63f45,_0x403f26,_0x578865,_0x59c486){return _0x55f0a4(_0xe63f45-0xba,_0x403f26-_0x209a6e._0x37f207,_0x59c486,_0xe63f45-_0x209a6e._0xce012f);}return this[_0x5500d5(0x11d,0x14a,0x107,_0x549872._0x2561da)](String(_0x557220['type']??''),_0x557220);}['finish'](){const _0x5d277a={_0x54dd49:0x4e6,_0x555711:0x4aa,_0x5117de:0x4f9,_0x1d55b6:0x4e7,_0xba9ba8:0x498,_0x2c0bac:0x447,_0x5779f5:0x3a9,_0x177164:0x4eb,_0x33c513:0x58d,_0x5f0dfa:0x563},_0x27540a={_0x12c36b:0x72f},_0x1aad67=this[_0x326953(0x5a3,_0x5d277a._0x54dd49,0x58c,0x582)]??{'id':'resp-'+Date['now'](),'object':_0x2b9051(_0x5d277a._0x555711,_0x5d277a._0x5117de,_0x5d277a._0x1d55b6,0x4a1),'status':_0x326953(_0x5d277a._0xba9ba8,_0x5d277a._0x2c0bac,0x4a4,_0x5d277a._0x5779f5),'output':this[_0x326953(0x4df,_0x5d277a._0x177164,0x533,_0x5d277a._0x33c513)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x326953(_0xab9d8d,_0x1b2876,_0x134233,_0x6ce45d){return _0x55f0a4(_0xab9d8d-0x6c,_0x1b2876-0x10c,_0x134233,_0x1b2876-_0x27540a._0x12c36b);}function _0x2b9051(_0x246f67,_0x18be7b,_0x48c2c8,_0x1ffc5b){return _0x2e041c(_0x246f67-0x1f0,_0x18be7b-0x1ee,_0x48c2c8-0x550,_0x18be7b);}return parseResponsesResponse(_0x1aad67,this[_0x2b9051(0x580,0x4a9,_0x5d277a._0x5f0dfa,0x5bb)]);}[_0x55f0a4(-0x22a,-0x222,-0x314,-0x262)](){return this['finalResponse']!==void 0x0;}['consumeEvent'](_0x982a5a,_0x26a19d){const _0x544f92={_0x1557d6:0x359,_0x3e6e72:0x2c7,_0x271b02:0x1eb,_0x3916c4:0x2a2,_0x4a6140:0x265,_0x5664d8:0x4db,_0x370084:0x344,_0x4b3d53:0x34a,_0x5a1a9d:0x270,_0x255038:0x3c2,_0x2e2ac6:0x2f2,_0x49ac2b:0x2a0,_0x435082:0x373,_0x5dbf0b:0x35b,_0x531c7e:0x42a,_0x4b8501:0x4a6,_0x1a81e3:0x2b3,_0x52e2e6:0x2d0,_0x5aae1a:0x229,_0x542225:0x222,_0x5c3dfd:0x360,_0x60c282:0x269,_0x505b8c:0x2ba,_0x465c62:0x2a1,_0x2894da:0x3fc,_0x2f8cad:0x227,_0x5dc178:0x27b,_0x563a60:0x339,_0x267c4d:0x29b,_0x12eb16:0x2fa,_0x40f94b:0x3c3,_0x5eb4ad:0x389,_0x33473c:0x418,_0x3ba300:0x3e1,_0x319b97:0x4a3,_0x41b1fd:0x1c7,_0xe60107:0x261,_0x377cac:0x219,_0x51951a:0x313,_0x2c2617:0x3a7,_0xb97c9e:0x2de,_0x19c1a6:0x2b2,_0x2cc977:0x259,_0x27d9b9:0x259,_0x4c8408:0x45f,_0x3953cf:0x3c8,_0x5248bc:0x45d,_0x333118:0x46a,_0x31a854:0x369,_0x2cf6fa:0x368,_0x8f5bfb:0x38c,_0x19e6f9:0x24f,_0x4ef9de:0x301,_0x1a41e6:0x30c,_0xc161ae:0x37a,_0x21a9ec:0x39f,_0x3a9b0b:0x393,_0x5a4420:0x3ca,_0x5a13fa:0x395,_0x7faa72:0x291,_0x51a2b3:0x20c,_0x280b64:0x214,_0x44fd06:0x2d6,_0x24af57:0x35c,_0x1609f4:0x2dc,_0x41f91b:0x2fe,_0x252de7:0x3b2,_0x5a737b:0x3ba,_0xdf27ee:0x47e,_0x4ff776:0x48e,_0x5c6a79:0x1e8,_0x578d4d:0x283,_0x563285:0x209,_0x31a6e2:0x287,_0x3456bd:0x2cb,_0x589de0:0x23a,_0xbc41ec:0x2af,_0x1aba52:0x27a,_0x2ca34b:0x21c,_0x37c6b7:0x215,_0x25976c:0x333,_0x8b437d:0x363,_0x140db0:0x3c6,_0x509179:0x483,_0x207ad5:0x1a0,_0x31642b:0x376,_0x2b3057:0x3a6,_0x522537:0x39b,_0x3e5a7a:0x338,_0x289e60:0x278,_0x10cbba:0x399,_0x598e9b:0x28e,_0x455b05:0x2fe,_0x26db50:0x302,_0x2bfefc:0x301,_0x1c3b9f:0x27e,_0x18d7ca:0x3f2,_0x3d2a55:0x506,_0x32df38:0x316,_0xa7cb46:0x287,_0x572314:0x3c0,_0x4ec115:0x309,_0x173187:0x2c4,_0x321d69:0x2d0,_0x56db4e:0x2a1,_0x2ffc63:0x294,_0x2a72e9:0x2fc,_0x3662ba:0x2e5,_0x2e13a0:0x259,_0x2fe1fd:0x35f,_0x2bc981:0x2ae,_0x352b3a:0x23f,_0x5deb06:0x3d6,_0xf7e520:0x37e,_0x2c564d:0x34d,_0x6eda9:0x373,_0x1718bd:0x2e7,_0x1849be:0x238,_0x3b6a4a:0x315,_0x4be3ae:0x50f,_0x5f1af6:0x43b,_0x1f02bb:0x41e,_0x54ddc6:0x4d9,_0x33d7d3:0x465,_0x7d651e:0x3f0,_0x55b478:0x323,_0x584c8a:0x437,_0x19baf0:0x463,_0x552790:0x50c,_0x34486f:0x424,_0x3aa4fe:0x4d1,_0xca75f4:0x3ea,_0x1b3322:0x4a0,_0x54b820:0x36e,_0xa80b02:0x4ab,_0x2226e6:0x3b3,_0xc5f37d:0x398,_0xeebfcc:0x2e7,_0x2e09e3:0x2d4,_0x159a6b:0x316,_0x372d68:0x2f5,_0x1d00b9:0x33e,_0x429f82:0x41d,_0x4b4e49:0x4ba,_0x20f030:0x2e3,_0xa2ba6:0x39e,_0x1be1a2:0x4fc,_0x3a9dc5:0x2db,_0x145e94:0x225,_0x26e013:0x2d5,_0x4e097a:0x2c5,_0x45de2f:0x2a9,_0x1546ad:0x38c,_0x28dcfe:0x415,_0x3e63b5:0x421,_0x44230a:0x2b0,_0x4bb737:0x1d9,_0x54a5a1:0x289,_0xad0fd1:0x33b,_0x265c8f:0x327,_0x516a68:0x2d3,_0x309064:0x29f,_0xd89bcc:0x28f,_0x1d08e5:0x1e9,_0x53ab6f:0x222,_0x43bff3:0x2ec,_0x1aad34:0x29b,_0x3cc173:0x464,_0x4edb03:0x41f,_0xa4443a:0x376,_0x5ecf17:0x31b,_0xf750b3:0x1de,_0x303090:0x222,_0x709c17:0x370,_0x35adbf:0x1f1,_0x3b37d8:0x1be,_0x441cac:0x33c,_0x11c47d:0x32f,_0x5cff0c:0x43a,_0x3158c6:0x3ab,_0x3083c8:0x30d,_0x2adf33:0x380,_0x2990ba:0x314,_0x4403bb:0x35a,_0x9bc850:0x339,_0x3abe47:0x2a8,_0x12ddd9:0x340,_0x2f4911:0x460,_0x44b507:0x439,_0x2031ab:0x237,_0x573574:0x24e,_0x1dad8a:0x28b,_0x549a1b:0x2b6,_0x474603:0x20d,_0x5d01a5:0x2fa,_0x88bb97:0x31c,_0x3a7b09:0x438,_0xddf15c:0x429,_0x563b10:0x4e7,_0x25c673:0x3d5,_0x5c7c76:0x367,_0x19e79d:0x301,_0x4c2bbd:0x3bb,_0x59da1f:0x2ff,_0x12220a:0x202,_0x39bdd2:0x35d,_0x2f1e1a:0x394,_0x2d6fcf:0x39a,_0x208b9c:0x327,_0x508465:0x311,_0x237fde:0x338,_0xf536d0:0x42e,_0x3a41ec:0x466,_0x9a5e1d:0x3c9,_0x3f5b49:0x3e6,_0x5015a3:0x3a5,_0x59adde:0x4fb,_0x4c017d:0x32d,_0xb0cb98:0x2f0,_0x57fd45:0x289,_0x1e3634:0x37e,_0x3cb909:0x37b,_0x26459b:0x33d,_0x31bfea:0x321,_0x5cfc6d:0x429,_0x33cd12:0x292,_0x2c2cee:0x2f5,_0x45ef52:0x4d0,_0x11926c:0x48f,_0x33889b:0x372,_0x5b53b7:0x36b,_0x206df7:0x37a,_0x4ba554:0x355,_0x30db8a:0x33e,_0x2954e4:0x2d9,_0x3e0896:0x30b,_0x4d8de8:0x338,_0x580795:0x2e4,_0x38a851:0x21f,_0x2f26b9:0x25c,_0x5cefd5:0x21e,_0x1ec9a6:0x366,_0x32ef92:0x31e,_0x20427f:0x381,_0x23c8b4:0x354,_0x2f91f5:0x300,_0x18ecc8:0x32d,_0x380087:0x43b,_0x5930d5:0x3f8,_0x22c0f1:0x37e,_0x3e38ce:0x3ec,_0x1d67db:0x339,_0x10b4e6:0x2c6,_0x51daa3:0x362,_0x308210:0x270,_0x5023b6:0x37a,_0x251e9e:0x2da,_0x52fc09:0x2eb,_0x10bdb5:0x450,_0x3258c7:0x3ca,_0x7014fc:0x4ad,_0x5278d1:0x39c,_0x112f71:0x44b,_0x251d24:0x43b,_0x34dcf5:0x440,_0x466a56:0x459,_0x1d2e2e:0x4a9,_0x14c720:0x335,_0x283d67:0x28d,_0x4fecdc:0x339,_0x166a84:0x4a2,_0x1307b3:0x342,_0x2b6066:0x3c6,_0x38a05d:0x398,_0x2b8be5:0x304,_0x4153ff:0x2d6,_0x522a08:0x409,_0x4b5325:0x2ed,_0x26889f:0x2e2,_0x3b2eee:0x275,_0x3ccac8:0x349,_0x4811e5:0x2c8,_0x3a7651:0x1f0,_0x4ac7f8:0x20b,_0x499659:0x2f3,_0x2c84de:0x24a,_0x3dd951:0x212,_0x6541dd:0x2b4,_0x5853ac:0x22f,_0x3f899f:0x352,_0x3069dd:0x40c},_0x4b06a9={_0x2c8174:0xc7,_0x298e78:0x51b},_0xf0978={_0xb60a67:0x10f};function _0xf613aa(_0x25f5eb,_0x4a9e12,_0x3f3f83,_0x580672){return _0x55f0a4(_0x25f5eb-0x1e9,_0x4a9e12-_0xf0978._0xb60a67,_0x4a9e12,_0x25f5eb-0x5fa);}switch(_0x982a5a){case _0xf613aa(_0x544f92._0x1557d6,0x2a8,_0x544f92._0x3e6e72,0x373):{const _0x2e38b1=typeof _0x26a19d[_0x627e01(_0x544f92._0x271b02,0x2ab,0x27f,0x222)]===_0x627e01(_0x544f92._0x3916c4,0x1f9,_0x544f92._0x4a6140,0x29b)?_0x26a19d[_0x627e01(0x239,0x296,0x1fb,0x222)]:0x0,_0x4ff231=typeof _0x26a19d['delta']===_0xf613aa(0x43b,0x45c,_0x544f92._0x5664d8,0x4b1)?_0x26a19d[_0x627e01(_0x544f92._0x370084,0x2ec,0x33a,0x289)]:'';if(_0x4ff231[_0x627e01(_0x544f92._0x4b3d53,0x2e4,_0x544f92._0x5a1a9d,0x30b)]>0x0){const _0x565cc1=this[_0xf613aa(0x373,0x3ed,0x2cb,_0x544f92._0x255038)]['get'](_0x2e38b1)??[];return _0x565cc1[_0x627e01(_0x544f92._0x2e2ac6,_0x544f92._0x49ac2b,0x277,0x235)](_0x4ff231),this[_0xf613aa(_0x544f92._0x435082,0x3e4,0x355,_0x544f92._0x5dbf0b)][_0xf613aa(0x418,_0x544f92._0x531c7e,0x454,_0x544f92._0x4b8501)](_0x2e38b1,_0x565cc1),[{'type':'content_delta','index':_0x2e38b1,'text':_0x4ff231}];}break;}case'response.output_item.added':{const _0x30db6a=typeof _0x26a19d[_0x627e01(_0x544f92._0x1a81e3,_0x544f92._0x52e2e6,_0x544f92._0x5aae1a,_0x544f92._0x542225)]==='number'?_0x26a19d[_0xf613aa(0x301,_0x544f92._0x5c3dfd,0x39f,0x349)]:void 0x0,_0x5178fb=_0x26a19d['item'];if(_0x5178fb?.[_0x627e01(_0x544f92._0x60c282,_0x544f92._0x505b8c,0x2b3,_0x544f92._0x465c62)]==='function_call'&&_0x5178fb['call_id']&&_0x5178fb[_0x627e01(0x33e,0x35b,_0x544f92._0x2894da,0x389)])return this[_0x627e01(0x2e4,0x280,0x1eb,_0x544f92._0x2f8cad)][_0x627e01(_0x544f92._0x5dc178,0x332,0x3f3,_0x544f92._0x563a60)](_0x5178fb[_0x627e01(_0x544f92._0x267c4d,0x2c2,_0x544f92._0x12eb16,0x259)],{'id':_0x5178fb['call_id'],'type':_0xf613aa(0x47e,0x3f9,0x518,_0x544f92._0x40f94b),'function':{'name':_0x5178fb[_0x627e01(0x355,0x31d,0x2cc,_0x544f92._0x5eb4ad)],'arguments':''}}),_0x30db6a!==void 0x0&&(this['outputIndexToCallId'][_0xf613aa(_0x544f92._0x33473c,0x412,_0x544f92._0x3ba300,_0x544f92._0x319b97)](_0x30db6a,_0x5178fb[_0x627e01(_0x544f92._0x41b1fd,_0x544f92._0xe60107,_0x544f92._0x377cac,0x259)]),this[_0xf613aa(0x2fb,_0x544f92._0x51951a,0x31c,_0x544f92._0x51951a)][_0x627e01(0x3b1,_0x544f92._0x2c2617,0x33f,0x339)](_0x5178fb[_0x627e01(0x228,_0x544f92._0xb97c9e,_0x544f92._0x19c1a6,_0x544f92._0x2cc977)],_0x30db6a)),[{'type':_0x627e01(_0x544f92._0x27d9b9,0x2a8,0x1b7,0x239),'id':_0x5178fb['call_id'],'index':_0x30db6a??0x0,'name':_0x5178fb[_0x627e01(0x354,_0x544f92._0x370084,0x43e,_0x544f92._0x5eb4ad)]}];if(_0x5178fb?.['type']==='reasoning'&&_0x5178fb['id']){const _0x5251e0=this[_0xf613aa(_0x544f92._0x4c8408,0x4e2,_0x544f92._0x3953cf,_0x544f92._0x5248bc)](_0x5178fb['id'],_0x30db6a);_0x30db6a!==void 0x0&&this[_0xf613aa(0x429,_0x544f92._0x333118,_0x544f92._0x31a854,0x425)][_0x627e01(0x2e4,0x2dd,0x329,0x339)](_0x30db6a,_0x5251e0['id']);}break;}case _0xf613aa(0x3d9,0x38f,_0x544f92._0x2cf6fa,0x345):{const _0x2c0848=typeof _0x26a19d[_0xf613aa(0x338,_0x544f92._0x8f5bfb,0x35e,0x3a3)]===_0xf613aa(0x43b,0x40c,0x410,0x465)?_0x26a19d[_0x627e01(0x2a0,0x267,_0x544f92._0x19e6f9,0x259)]:typeof _0x26a19d[_0xf613aa(_0x544f92._0x4ef9de,_0x544f92._0x1a41e6,_0x544f92._0xc161ae,0x390)]===_0xf613aa(_0x544f92._0xc161ae,0x3f9,0x3da,_0x544f92._0x21a9ec)?this[_0xf613aa(_0x544f92._0x3a9b0b,0x3ce,0x307,_0x544f92._0x5a4420)][_0x627e01(_0x544f92._0x5a13fa,_0x544f92._0x7faa72,0x2c8,0x340)](_0x26a19d['output_index']):void 0x0,_0xea1cb9=typeof _0x26a19d[_0x627e01(_0x544f92._0x51a2b3,0x230,_0x544f92._0x280b64,0x289)]===_0x627e01(0x3df,_0x544f92._0x44fd06,0x3f5,_0x544f92._0x24af57)?_0x26a19d[_0xf613aa(0x368,_0x544f92._0x1609f4,_0x544f92._0x41f91b,0x3d5)]:'',_0x33164b=_0x2c0848?this[_0xf613aa(0x306,0x2b1,0x250,_0x544f92._0x252de7)]['get'](_0x2c0848):void 0x0;if(_0x33164b&&_0xea1cb9[_0x627e01(0x315,0x312,_0x544f92._0x5a737b,0x30b)]>0x0)return _0x33164b[_0xf613aa(_0x544f92._0xdf27ee,0x3ea,_0x544f92._0x4ff776,0x3fa)][_0x627e01(_0x544f92._0x5c6a79,_0x544f92._0x578d4d,_0x544f92._0x563285,_0x544f92._0x31a6e2)]+=_0xea1cb9,[{'type':_0x627e01(_0x544f92._0x3456bd,0x196,_0x544f92._0x589de0,0x239),'id':_0x33164b['id'],'index':this[_0x627e01(0x221,_0x544f92._0xbc41ec,_0x544f92._0x1aba52,_0x544f92._0x2ca34b)][_0x627e01(0x383,0x299,0x37d,0x340)](_0x33164b['id'])??(typeof _0x26a19d[_0x627e01(0x1e4,0x1b4,_0x544f92._0x37c6b7,0x222)]==='number'?_0x26a19d[_0xf613aa(_0x544f92._0x4ef9de,_0x544f92._0x25976c,_0x544f92._0x8b437d,0x37a)]:0x0),'inputDelta':_0xea1cb9}];break;}case _0xf613aa(_0x544f92._0x140db0,0x3ab,_0x544f92._0x509179,0x46c):{const _0x347f0b=typeof _0x26a19d[_0x627e01(_0x544f92._0x207ad5,0x26a,0x2c5,_0x544f92._0x27d9b9)]===_0x627e01(_0x544f92._0x31642b,_0x544f92._0x2b3057,_0x544f92._0x522537,_0x544f92._0x24af57)?_0x26a19d[_0xf613aa(_0x544f92._0x3e5a7a,_0x544f92._0x289e60,0x2a8,0x3b0)]:typeof _0x26a19d[_0xf613aa(0x301,_0x544f92._0x10cbba,_0x544f92._0x598e9b,_0x544f92._0x455b05)]==='number'?this[_0x627e01(_0x544f92._0x26db50,0x2ce,0x2c2,0x2b4)]['get'](_0x26a19d[_0xf613aa(_0x544f92._0x2bfefc,_0x544f92._0x1c3b9f,0x33b,0x3bc)]):void 0x0,_0x5ed2ec=_0x347f0b?this[_0xf613aa(0x306,0x2c3,0x2a1,0x331)][_0x627e01(_0x544f92._0x18d7ca,0x3ea,0x286,0x340)](_0x347f0b):void 0x0;_0x5ed2ec&&typeof _0x26a19d['arguments']==='string'&&(_0x5ed2ec[_0xf613aa(0x47e,0x495,0x461,_0x544f92._0x3d2a55)]['arguments']=_0x26a19d[_0x627e01(0x27f,0x1c7,_0x544f92._0x32df38,_0x544f92._0xa7cb46)]);break;}case _0xf613aa(_0x544f92._0x572314,0x35e,_0x544f92._0x4ec115,0x3a6):{const _0x3f519e=typeof _0x26a19d['output_index']==='number'?_0x26a19d['output_index']:void 0x0,_0x3d373a=_0x26a19d['item'];if(_0x3d373a?.[_0x627e01(_0x544f92._0x173187,0x22b,_0x544f92._0x321d69,_0x544f92._0x56db4e)]===_0x627e01(0x3b0,0x3db,_0x544f92._0x2ffc63,0x337)){const _0x5a6eaf=_0x3d373a[_0x627e01(_0x544f92._0x2a72e9,_0x544f92._0x3662ba,0x204,_0x544f92._0x2e13a0)]??(_0x3f519e!==void 0x0?this[_0xf613aa(0x393,_0x544f92._0x2fe1fd,0x303,0x3d1)]['get'](_0x3f519e):void 0x0),_0x1c47de=_0x5a6eaf?this[_0x627e01(_0x544f92._0x2bc981,_0x544f92._0x352b3a,0x1ba,_0x544f92._0x2f8cad)]['get'](_0x5a6eaf):void 0x0;_0x1c47de&&typeof _0x3d373a[_0xf613aa(0x366,0x40d,_0x544f92._0x5deb06,0x401)]==='string'&&(_0x1c47de['function']['arguments']=_0x3d373a[_0xf613aa(0x366,_0x544f92._0xf7e520,_0x544f92._0x2c564d,_0x544f92._0x6eda9)]);break;}if(_0x3d373a?.[_0x627e01(_0x544f92._0x1718bd,0x2c0,_0x544f92._0x1849be,_0x544f92._0x56db4e)]==='reasoning'&&_0x3d373a['id']){const _0xbb9630=this[_0x627e01(_0x544f92._0x5eb4ad,_0x544f92._0x3b6a4a,0x2c3,0x380)](_0x3d373a['id'],_0x3f519e);typeof _0x3d373a[_0xf613aa(0x45c,0x499,_0x544f92._0x4be3ae,0x439)]===_0xf613aa(_0x544f92._0x5f1af6,_0x544f92._0x1f02bb,_0x544f92._0x54ddc6,_0x544f92._0x33d7d3)&&(_0xbb9630[_0xf613aa(0x47a,_0x544f92._0x7d651e,0x3f7,0x408)]=_0x3d373a['encrypted_content']);if(Array[_0x627e01(_0x544f92._0x55b478,_0x544f92._0x584c8a,_0x544f92._0x5a4420,0x39d)](_0x3d373a[_0xf613aa(_0x544f92._0x19baf0,_0x544f92._0x5248bc,_0x544f92._0x552790,_0x544f92._0x34486f)]))for(let _0x4a0f07=0x0;_0x4a0f07<_0x3d373a[_0xf613aa(0x463,_0x544f92._0x3aa4fe,0x519,0x3b2)][_0xf613aa(_0x544f92._0xca75f4,_0x544f92._0x1b3322,_0x544f92._0x54b820,_0x544f92._0xa80b02)];_0x4a0f07+=0x1){const _0x1f6d2e=_0x3d373a[_0xf613aa(0x463,_0x544f92._0x2226e6,0x475,0x466)][_0x4a0f07];_0x1f6d2e[_0xf613aa(0x380,0x34a,_0x544f92._0xc5f37d,_0x544f92._0xeebfcc)]===_0x627e01(_0x544f92._0x2e09e3,0x37a,0x2d4,_0x544f92._0x159a6b)&&typeof _0x1f6d2e[_0x627e01(_0x544f92._0x372d68,_0x544f92._0x1d00b9,0x333,0x2bd)]==='string'&&_0xbb9630['summaryByIndex'][_0xf613aa(_0x544f92._0x33473c,_0x544f92._0x429f82,_0x544f92._0x4b4e49,_0x544f92._0x40f94b)](_0x4a0f07,_0x1f6d2e[_0x627e01(0x318,_0x544f92._0x435082,_0x544f92._0x20f030,0x2bd)]);}typeof _0x3d373a[_0x627e01(0x32a,0x22c,0x298,0x2bd)]===_0xf613aa(_0x544f92._0x5f1af6,_0x544f92._0xa2ba6,_0x544f92._0x1be1a2,0x481)&&_0xbb9630[_0x627e01(0x328,_0x544f92._0x3a9dc5,_0x544f92._0x145e94,_0x544f92._0x26e013)][_0x627e01(_0x544f92._0x4e097a,_0x544f92._0x45de2f,_0x544f92._0x1546ad,0x339)](0x0,_0x3d373a[_0xf613aa(0x39c,0x305,_0x544f92._0x28dcfe,_0x544f92._0x3e63b5)]);}break;}case'response.reasoning_summary_text.delta':{const _0x5e0e07=typeof _0x26a19d[_0x627e01(_0x544f92._0x44230a,0x2f3,0x218,0x289)]===_0xf613aa(0x43b,0x472,0x49a,0x399)?_0x26a19d[_0x627e01(0x1c8,_0x544f92._0x4bb737,0x2b7,_0x544f92._0x54a5a1)]:'',_0xc3f16=typeof _0x26a19d[_0xf613aa(0x37e,0x2fd,0x322,_0x544f92._0xad0fd1)]===_0x627e01(0x3ab,_0x544f92._0x265c8f,0x2a8,_0x544f92._0x24af57)?_0x26a19d[_0x627e01(_0x544f92._0x516a68,0x1e2,0x1f9,_0x544f92._0x309064)]:typeof _0x26a19d[_0x627e01(_0x544f92._0xd89bcc,_0x544f92._0x1d08e5,0x26c,_0x544f92._0x53ab6f)]===_0x627e01(0x30d,0x290,_0x544f92._0x43bff3,_0x544f92._0x1aad34)?this[_0xf613aa(0x429,0x39f,0x3e2,_0x544f92._0x3cc173)][_0xf613aa(_0x544f92._0x4edb03,_0x544f92._0xa4443a,0x3a7,0x3dc)](_0x26a19d['output_index']):void 0x0,_0x41c349=typeof _0x26a19d[_0xf613aa(0x301,0x2b8,0x243,_0x544f92._0x5ecf17)]===_0x627e01(0x2c1,_0x544f92._0xe60107,0x26a,0x29b)?_0x26a19d[_0x627e01(0x241,_0x544f92._0xf750b3,0x2e2,_0x544f92._0x303090)]:0x0,_0x4014cc=typeof _0x26a19d[_0xf613aa(0x35d,_0x544f92._0x709c17,0x29d,0x317)]===_0x627e01(0x33d,0x232,_0x544f92._0x35adbf,_0x544f92._0x267c4d)?_0x26a19d[_0x627e01(_0x544f92._0x3b37d8,0x2e3,0x28d,0x27e)]:0x0;if(_0xc3f16&&_0x5e0e07[_0x627e01(_0x544f92._0x441cac,_0x544f92._0x11c47d,_0x544f92._0xe60107,0x30b)]>0x0){const _0x3e07d7=this[_0x627e01(_0x544f92._0x5cff0c,_0x544f92._0x3158c6,_0x544f92._0x3083c8,_0x544f92._0x2adf33)](_0xc3f16,_0x41c349);_0x3e07d7[_0x627e01(0x3a0,_0x544f92._0x2990ba,0x332,_0x544f92._0x4403bb)][_0x627e01(0x3d6,0x3c0,0x2d7,_0x544f92._0x9bc850)](_0x4014cc,''+(_0x3e07d7['summaryByIndex'][_0x627e01(0x2a9,_0x544f92._0x3abe47,0x342,_0x544f92._0x12ddd9)](_0x4014cc)??'')+_0x5e0e07);if(isUserVisibleReasoning(this[_0xf613aa(_0x544f92._0x2f4911,_0x544f92._0x44b507,0x3cf,0x4b4)]))return[{'type':'openai_reasoning_summary_delta','delta':_0x5e0e07,'itemId':_0xc3f16,'outputIndex':_0x41c349,'summaryIndex':_0x4014cc}];}break;}case _0x627e01(0x2e2,_0x544f92._0x2031ab,_0x544f92._0x573574,_0x544f92._0x1dad8a):{const _0x35e0b5=typeof _0x26a19d[_0x627e01(_0x544f92._0x549a1b,0x213,_0x544f92._0x474603,0x29f)]===_0x627e01(_0x544f92._0x5d01a5,0x3bb,0x2e0,0x35c)?_0x26a19d['item_id']:typeof _0x26a19d['output_index']===_0xf613aa(_0x544f92._0xc161ae,0x32c,_0x544f92._0x88bb97,_0x544f92._0x3a7b09)?this[_0xf613aa(_0x544f92._0xddf15c,_0x544f92._0x563b10,0x41f,_0x544f92._0x25c673)][_0xf613aa(0x41f,0x43e,_0x544f92._0x5c7c76,0x3ae)](_0x26a19d[_0x627e01(0x174,0x1a9,0x2be,0x222)]):void 0x0,_0x506655=typeof _0x26a19d[_0xf613aa(_0x544f92._0x19e79d,0x338,0x3bb,_0x544f92._0x4c2bbd)]===_0x627e01(_0x544f92._0x59da1f,_0x544f92._0x12220a,0x33d,0x29b)?_0x26a19d[_0x627e01(0x1a4,0x229,0x1b2,_0x544f92._0x53ab6f)]:0x0,_0x3ad3a0=typeof _0x26a19d[_0xf613aa(_0x544f92._0x39bdd2,_0x544f92._0x2f1e1a,_0x544f92._0x2d6fcf,_0x544f92._0x25976c)]==='number'?_0x26a19d['summary_index']:0x0,_0x56f28e=typeof _0x26a19d[_0x627e01(0x205,_0x544f92._0x208b9c,0x225,0x2bd)]==='string'?_0x26a19d['text']:'';_0x35e0b5&&this['getOrCreateReasoningItem'](_0x35e0b5,_0x506655)[_0x627e01(_0x544f92._0x508465,_0x544f92._0x237fde,0x2ea,0x35a)]['set'](_0x3ad3a0,_0x56f28e);break;}case _0xf613aa(_0x544f92._0xf536d0,_0x544f92._0x3a41ec,_0x544f92._0x9a5e1d,_0x544f92._0x3f5b49):{const _0x2c03c1=typeof _0x26a19d[_0xf613aa(0x368,0x3ad,0x420,_0x544f92._0x5015a3)]===_0xf613aa(0x43b,0x39d,_0x544f92._0x59adde,0x4d4)?_0x26a19d[_0x627e01(_0x544f92._0x4c017d,_0x544f92._0xb0cb98,0x1eb,_0x544f92._0x57fd45)]:'',_0x50d01f=typeof _0x26a19d[_0xf613aa(_0x544f92._0x1e3634,_0x544f92._0x3cb909,_0x544f92._0x26459b,_0x544f92._0x31bfea)]===_0xf613aa(_0x544f92._0x5f1af6,_0x544f92._0x5cfc6d,0x410,0x441)?_0x26a19d['item_id']:typeof _0x26a19d['output_index']===_0x627e01(0x2a9,0x1e3,_0x544f92._0x33cd12,0x29b)?this[_0x627e01(_0x544f92._0x2c2cee,0x308,0x33a,0x34a)][_0xf613aa(_0x544f92._0x4edb03,0x4dd,_0x544f92._0x45ef52,_0x544f92._0x11926c)](_0x26a19d[_0xf613aa(_0x544f92._0x4ef9de,_0x544f92._0x33889b,_0x544f92._0x4c2bbd,0x3a0)]):void 0x0,_0x2fb0a0=typeof _0x26a19d[_0xf613aa(0x301,_0x544f92._0x5b53b7,_0x544f92._0x12ddd9,0x324)]===_0xf613aa(_0x544f92._0x206df7,_0x544f92._0x4ba554,0x3c7,0x2b8)?_0x26a19d['output_index']:0x0,_0x3cdef4=typeof _0x26a19d['content_index']==='number'?_0x26a19d[_0x627e01(0x419,0x352,0x442,0x387)]:0x0;if(_0x50d01f&&_0x2c03c1[_0x627e01(0x2ca,_0x544f92._0x30db8a,_0x544f92._0x2954e4,_0x544f92._0x3e0896)]>0x0){const _0x442565=this[_0x627e01(_0x544f92._0x4d8de8,0x3ec,_0x544f92._0x580795,0x380)](_0x50d01f,_0x2fb0a0);_0x442565[_0x627e01(_0x544f92._0x38a851,_0x544f92._0x2f26b9,_0x544f92._0x5cefd5,_0x544f92._0x26e013)]['set'](_0x3cdef4,''+(_0x442565[_0xf613aa(0x3b4,0x383,_0x544f92._0x2a72e9,0x3de)][_0xf613aa(0x41f,0x38b,0x496,0x3ab)](_0x3cdef4)??'')+_0x2c03c1);if(isUserVisibleReasoning(this[_0x627e01(0x359,_0x544f92._0x1ec9a6,_0x544f92._0x32ef92,_0x544f92._0x20427f)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x3cdef4,'delta':_0x2c03c1,'itemId':_0x50d01f,'outputIndex':_0x2fb0a0}];}break;}case'response.reasoning_text.done':{const _0x230fd5=typeof _0x26a19d[_0xf613aa(0x37e,_0x544f92._0x23c8b4,_0x544f92._0x2f91f5,_0x544f92._0x18ecc8)]===_0xf613aa(_0x544f92._0x380087,0x3d0,_0x544f92._0x5930d5,0x4f0)?_0x26a19d[_0xf613aa(_0x544f92._0x22c0f1,0x32e,0x34c,_0x544f92._0x3e38ce)]:typeof _0x26a19d[_0x627e01(0x16d,_0x544f92._0x4a6140,0x253,0x222)]==='number'?this[_0x627e01(0x2b0,0x304,_0x544f92._0x1d67db,0x34a)][_0x627e01(0x2bc,0x362,0x29e,0x340)](_0x26a19d['output_index']):void 0x0,_0x5a63db=typeof _0x26a19d[_0xf613aa(0x301,_0x544f92._0x10b4e6,_0x544f92._0x51daa3,_0x544f92._0x308210)]==='number'?_0x26a19d[_0x627e01(0x1e2,0x2d1,0x2d1,0x222)]:0x0,_0x327689=typeof _0x26a19d['content_index']===_0xf613aa(_0x544f92._0x5023b6,_0x544f92._0x251e9e,_0x544f92._0x52fc09,0x36e)?_0x26a19d[_0xf613aa(_0x544f92._0x3a41ec,_0x544f92._0x10bdb5,_0x544f92._0x3258c7,_0x544f92._0x7014fc)]:0x0,_0x1a8a3a=typeof _0x26a19d[_0xf613aa(_0x544f92._0x5278d1,0x36a,_0x544f92._0x112f71,_0x544f92._0x25c673)]===_0xf613aa(_0x544f92._0x251d24,0x4e8,_0x544f92._0x255038,0x4fa)?_0x26a19d[_0xf613aa(0x39c,0x341,_0x544f92._0x34dcf5,0x393)]:'';_0x230fd5&&this[_0xf613aa(0x45f,_0x544f92._0x466a56,_0x544f92._0x1d2e2e,0x481)](_0x230fd5,_0x5a63db)['textByIndex'][_0x627e01(_0x544f92._0x14c720,_0x544f92._0x51daa3,_0x544f92._0x283d67,_0x544f92._0x4fecdc)](_0x327689,_0x1a8a3a);break;}case _0xf613aa(0x46d,_0x544f92._0x166a84,0x515,0x41f):{this['finalResponse']=_0x26a19d[_0xf613aa(0x3e4,0x3c3,0x46f,_0x544f92._0x1307b3)];break;}case _0xf613aa(0x42f,0x444,0x446,0x3f9):{const _0x2591d1=_0x26a19d['response'];throw new OpenAiResponsesStreamError(_0x2591d1?.[_0xf613aa(0x349,_0x544f92._0x2b6066,_0x544f92._0x21a9ec,_0x544f92._0x38a05d)]?.['message']??'Responses\x20stream\x20failed',{'code':_0x2591d1?.[_0xf613aa(0x349,_0x544f92._0x2b8be5,_0x544f92._0x4153ff,_0x544f92._0x522a08)]?.[_0x627e01(0x2b3,_0x544f92._0x4b5325,_0x544f92._0x26889f,_0x544f92._0x3b2eee)]});}case _0xf613aa(_0x544f92._0x3ccac8,0x33b,0x2bd,0x2bc):{const _0x36365d=_0x26a19d[_0x627e01(_0x544f92._0x3a9dc5,0x241,0x26d,0x26a)];throw new OpenAiResponsesStreamError(_0x36365d?.[_0x627e01(0x258,0x253,0x30b,_0x544f92._0x4811e5)]??'Responses\x20stream\x20failed',{'code':_0x36365d?.[_0x627e01(_0x544f92._0x3a7651,_0x544f92._0x4ac7f8,_0x544f92._0x499659,0x275)],'status':typeof _0x26a19d[_0x627e01(_0x544f92._0x2c84de,_0x544f92._0x3dd951,_0x544f92._0x6541dd,0x273)]===_0x627e01(0x218,0x33b,_0x544f92._0x5853ac,_0x544f92._0x1aad34)?_0x26a19d[_0xf613aa(_0x544f92._0x3f899f,0x389,_0x544f92._0x3069dd,0x32c)]:void 0x0});}}function _0x627e01(_0x111866,_0x36b702,_0x563817,_0x1ecd09){return _0x55f0a4(_0x111866-0xdf,_0x36b702-_0x4b06a9._0x2c8174,_0x563817,_0x1ecd09-_0x4b06a9._0x298e78);}return[];}[_0x55f0a4(-0x1e8,-0x284,-0x1fd,-0x244)](){const _0x5f047c={_0x2ee5a7:0x2a5,_0xabeb10:0x3f8,_0x470c5b:0x439,_0x42fd2c:0x3a5,_0x49c4ac:0x393,_0x562ffd:0x328,_0x33b35a:0x391,_0x499664:0x372,_0x22bb3a:0x3ad,_0xf95334:0x31f,_0x835cfb:0x23a,_0x53c6b4:0x252,_0x3795d7:0x35e,_0x2b67e4:0x336,_0x111b50:0x3fc,_0xe48e75:0x347,_0x1ea61b:0x32c,_0x2b4225:0x3a8,_0x3f39f9:0x322,_0x57b989:0x493,_0x925ed9:0x35b,_0x2a04fe:0x341,_0x51be37:0x428,_0x513dd0:0x3b9,_0x19eeb2:0x413,_0x4477f:0x3c1,_0x1be0fc:0x307,_0x3cacdf:0x2a3,_0x1ccfdb:0x277,_0x1778fe:0x256,_0x15f8ab:0x1fe,_0x595541:0x39b,_0x3d95f5:0x3c0,_0x1c3e3a:0x36e,_0x50e981:0x393,_0x28f197:0x2c4,_0x2c6459:0x3ab,_0x15aa46:0x33c,_0x2092a2:0x323,_0x3ac5c3:0x2d9,_0x11f782:0x2b9,_0xb11751:0x3e9,_0x4f61ab:0x2d0,_0x3124b3:0x3a0,_0x9667e0:0x2e8,_0x58c1fe:0x310,_0x527d8d:0x2e8,_0x5b72de:0x306,_0x1c316e:0x34b,_0xd4d0b5:0x314,_0x565623:0x314,_0x242158:0x20a,_0x40eae0:0x376,_0x2e01a8:0x331,_0x190c0e:0x376,_0x674bbc:0x3c2,_0x17231d:0x2de,_0x4b6525:0x39e,_0x5005f1:0x36d,_0x26dbed:0x3d5,_0x55a370:0x313,_0x472634:0x371,_0x4d4e4b:0x3d5,_0x44042b:0x30f,_0xc6390d:0x2bd,_0x5830cd:0x3bc,_0x330417:0x36d,_0x5be1ed:0x2a0,_0x34061e:0x341},_0x5c1dcb={_0x328e0a:0x582},_0x5461b9={_0x54c75f:0xca,_0x34a1c0:0xb},_0xccda9e=[];for(const [_0x4186fb,_0x1fcf1c]of this[_0x39bfcd(0x2c6,_0x5f047c._0x2ee5a7,0x2ca,0x27c)][_0x39bfcd(_0x5f047c._0xabeb10,_0x5f047c._0x470c5b,_0x5f047c._0x42fd2c,_0x5f047c._0x49c4ac)]()){const _0x2fe1b6=_0x1fcf1c[_0x57eea8(_0x5f047c._0x562ffd,_0x5f047c._0x33b35a,0x337,0x32e)]('');if(_0x2fe1b6[_0x57eea8(0x36f,0x355,_0x5f047c._0x499664,_0x5f047c._0x22bb3a)]===0x0)continue;_0xccda9e[_0x39bfcd(_0x5f047c._0xf95334,_0x5f047c._0x835cfb,0x26b,_0x5f047c._0x53c6b4)]({'index':_0x4186fb,'item':{'type':'message','role':'assistant','content':[{'type':_0x57eea8(0x3ce,0x2fd,_0x5f047c._0x3795d7,_0x5f047c._0x2b67e4),'text':_0x2fe1b6}]}});}for(const _0x3cae41 of this[_0x57eea8(_0x5f047c._0x111b50,0x3d0,_0x5f047c._0xe48e75,_0x5f047c._0x1ea61b)][_0x39bfcd(0x3b6,0x292,0x314,_0x5f047c._0x2b4225)]()){_0xccda9e['push']({'index':_0x3cae41['outputIndex']??_0xccda9e[_0x57eea8(0x2ec,0x2e0,0x372,_0x5f047c._0x3f39f9)],'item':{'type':_0x57eea8(_0x5f047c._0x57b989,0x489,0x3f6,_0x5f047c._0x925ed9),'id':_0x3cae41['id'],..._0x3cae41[_0x57eea8(_0x5f047c._0x2a04fe,_0x5f047c._0x51be37,0x402,0x3c6)]?{'encrypted_content':_0x3cae41[_0x39bfcd(_0x5f047c._0x513dd0,0x41f,0x3d1,0x318)]}:{},..._0x3cae41[_0x57eea8(_0x5f047c._0x111b50,_0x5f047c._0x19eeb2,_0x5f047c._0x4477f,0x421)][_0x57eea8(0x2c1,_0x5f047c._0x1be0fc,_0x5f047c._0x3cacdf,0x231)]>0x0?{'summary':Array[_0x39bfcd(0x258,_0x5f047c._0x1ccfdb,_0x5f047c._0x1778fe,_0x5f047c._0x15f8ab)](_0x3cae41[_0x39bfcd(_0x5f047c._0x595541,0x324,0x390,_0x5f047c._0x3d95f5)]['entries']())[_0x39bfcd(0x2d8,_0x5f047c._0x1c3e3a,0x38b,0x401)]((_0x1831cb,_0x2bbd51)=>_0x1831cb[0x0]-_0x2bbd51[0x0])[_0x39bfcd(0x27f,_0x5f047c._0x50e981,0x310,_0x5f047c._0x28f197)](([,_0x47940c])=>{return{'type':'summary_text','text':_0x47940c};})}:{},..._0x3cae41[_0x57eea8(0x2de,_0x5f047c._0x2c6459,_0x5f047c._0x15aa46,0x33f)][_0x57eea8(0x208,_0x5f047c._0x2092a2,_0x5f047c._0x3cacdf,_0x5f047c._0x3ac5c3)]>0x0?{'text':Array[_0x57eea8(0x1db,0x289,0x287,_0x5f047c._0x11f782)](_0x3cae41['textByIndex']['entries']())[_0x39bfcd(_0x5f047c._0xb11751,0x416,0x38b,_0x5f047c._0x4f61ab)]((_0x13ed8b,_0x2a3890)=>_0x13ed8b[0x0]-_0x2a3890[0x0])[_0x39bfcd(_0x5f047c._0x3124b3,_0x5f047c._0x9667e0,_0x5f047c._0x58c1fe,_0x5f047c._0x527d8d)](([,_0x10340b])=>_0x10340b)[_0x39bfcd(0x253,0x36b,_0x5f047c._0x5b72de,0x253)]('')}:{}}});}function _0x39bfcd(_0x40c2e9,_0x43ef75,_0x5771e9,_0x31c0ea){return _0x2e041c(_0x40c2e9-_0x5461b9._0x54c75f,_0x43ef75-_0x5461b9._0x34a1c0,_0x5771e9-0x3a4,_0x40c2e9);}function _0x57eea8(_0x35a345,_0x4fe7d3,_0x30d3f5,_0x35cd33){return _0x55f0a4(_0x35a345-0xe,_0x4fe7d3-0x50,_0x35cd33,_0x30d3f5-_0x5c1dcb._0x328e0a);}for(const _0x4f56b8 of this['toolCalls'][_0x39bfcd(0x2ac,_0x5f047c._0x1c316e,_0x5f047c._0xd4d0b5,0x37b)]()){_0xccda9e['push']({'index':this[_0x39bfcd(0x195,_0x5f047c._0x565623,0x252,_0x5f047c._0x242158)][_0x39bfcd(0x2ef,0x3d4,_0x5f047c._0x40eae0,0x3e0)](_0x4f56b8['id'])??_0xccda9e[_0x57eea8(_0x5f047c._0x2e01a8,_0x5f047c._0x190c0e,_0x5f047c._0x499664,0x3cd)],'item':{'type':_0x57eea8(_0x5f047c._0x674bbc,_0x5f047c._0x17231d,_0x5f047c._0x4b6525,_0x5f047c._0x5005f1),'call_id':_0x4f56b8['id'],'name':_0x4f56b8[_0x39bfcd(0x365,0x3a1,_0x5f047c._0x26dbed,0x425)][_0x57eea8(0x43b,0x43f,0x3f0,0x343)],'arguments':_0x4f56b8[_0x39bfcd(_0x5f047c._0x55a370,_0x5f047c._0x472634,_0x5f047c._0x4d4e4b,0x3ae)][_0x39bfcd(0x31e,_0x5f047c._0x44042b,_0x5f047c._0xc6390d,0x34f)]}});}return _0xccda9e[_0x57eea8(0x3a6,0x367,_0x5f047c._0x5830cd,0x3e5)]((_0x293fb4,_0x4814a3)=>_0x293fb4[_0x39bfcd(0x36d,0x336,0x358,0x3ef)]-_0x4814a3[_0x57eea8(0x3e7,0x30e,0x389,0x395)])[_0x57eea8(_0x5f047c._0x330417,_0x5f047c._0x5be1ed,_0x5f047c._0x34061e,0x2e2)](_0x280d60=>_0x280d60[_0x57eea8(0x3ad,0x332,0x30e,0x3aa)]);}[_0x55f0a4(-0xe8,-0x225,-0x24c,-0x19b)](_0x5b82db,_0x1ccfc0){const _0x4a9994={_0x136636:0xbf,_0x154532:0xb5,_0x5a12bd:0xd5,_0x5d922d:0x78,_0x1bc308:0xc8,_0xcaca88:0x8e,_0x5300d8:0x7f,_0x408ec8:0x91,_0x3ba4d7:0x14,_0x51a0cb:0x74,_0x228e61:0x29,_0x15923a:0x63,_0xe45a01:0xaa,_0xc73550:0xa,_0x57bcec:0x9,_0x574626:0x13,_0x4c63e1:0x9f},_0x3aa248={_0xfb9642:0x1d7,_0x43b0cf:0x9,_0x20efc2:0x245},_0x2dd241={_0x23942a:0x1af,_0x2c3a81:0x82,_0x84020:0x16};function _0x299c34(_0xe38f1c,_0x185462,_0x458280,_0x36445d){return _0x2e041c(_0xe38f1c-_0x2dd241._0x23942a,_0x185462-_0x2dd241._0x2c3a81,_0x36445d-_0x2dd241._0x84020,_0x458280);}const _0x467cfc=this[_0x299c34(-_0x4a9994._0x136636,-_0x4a9994._0x154532,-_0x4a9994._0x5a12bd,-_0x4a9994._0x5d922d)][_0x299c34(-0xb9,-_0x4a9994._0x1bc308,_0x4a9994._0xcaca88,-0x18)](_0x5b82db);if(_0x467cfc)return _0x1ccfc0!==void 0x0&&(_0x467cfc[_0x299c34(0x14,-_0x4a9994._0x5300d8,_0x4a9994._0x408ec8,_0x4a9994._0x3ba4d7)]=_0x1ccfc0,this[_0x16a259(0x1,_0x4a9994._0x51a0cb,_0x4a9994._0x228e61,0x117)][_0x16a259(0x101,_0x4a9994._0x15923a,0x87,_0x4a9994._0xe45a01)](_0x1ccfc0,_0x5b82db)),_0x467cfc;const _0x24e6e2={'id':_0x5b82db,'outputIndex':_0x1ccfc0,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x16a259(-0x7e,_0x4a9994._0xc73550,_0x4a9994._0x57bcec,-0x9)][_0x16a259(_0x4a9994._0x574626,0x63,0x11c,_0x4a9994._0x4c63e1)](_0x5b82db,_0x24e6e2);function _0x16a259(_0x53edbf,_0x52e6dc,_0x5c14f3,_0x3107ac){return _0x55f0a4(_0x53edbf-_0x3aa248._0xfb9642,_0x52e6dc-_0x3aa248._0x43b0cf,_0x3107ac,_0x52e6dc-_0x3aa248._0x20efc2);}return _0x1ccfc0!==void 0x0&&this['outputIndexToReasoningId'][_0x16a259(-_0x4a9994._0x57bcec,0x63,0xce,0xea)](_0x1ccfc0,_0x5b82db),_0x24e6e2;}};function createOpenAiResponsesStreamParser(_0x4af040){return new OpenAiResponsesStreamParser(_0x4af040);}function createOpenAiSurfaces(_0x3dff38={}){const _0x9d0f53={_0x4615ea:0x7e,_0x5df3d9:0x17c,_0x4a5869:0xcf,_0x51402c:0x2c,_0x554922:0x31,_0x115acd:0x40,_0x2155e4:0x231,_0x4f00a2:0x18b,_0x11a0cd:0x182,_0x3925da:0x19c,_0x2ad146:0x1b7,_0x4657d8:0x125,_0x7edda5:0xb8,_0x5267e3:0x1f5,_0x7995d0:0x14a,_0x6899dd:0xd0,_0x29ffdf:0x152,_0x3116f2:0xc2,_0x3f6bd5:0x1fe},_0x1f298c={_0x55db7b:0x17b,_0xa7f692:0x1f9},_0x4c982f={_0x1057c5:0x13a},_0x237c6c={_0x164511:0x3e9,_0x714287:0x479},_0x361770={_0xc3cc87:0x73,_0x36455f:0x15a},_0x508682={_0x3ac662:0x1da,_0x17d5de:0x7f},_0x22c69e=_0x3dff38[_0xaffba2(_0x9d0f53._0x4615ea,_0x9d0f53._0x5df3d9,0x9e,_0x9d0f53._0x4a5869)]??_0xaffba2(0xfd,_0x9d0f53._0x51402c,-_0x9d0f53._0x554922,_0x9d0f53._0x115acd);function _0xc9427a(_0x2dcc1d,_0x16176d,_0x59f1f6,_0x4ab8af){return _0x55f0a4(_0x2dcc1d-_0x508682._0x3ac662,_0x16176d-_0x508682._0x17d5de,_0x2dcc1d,_0x59f1f6-0xc0);}function _0xaffba2(_0x1c64e3,_0xef827b,_0xe2acef,_0x4c31fb){return _0x2e041c(_0x1c64e3-_0x361770._0xc3cc87,_0xef827b-0x12b,_0x4c31fb-_0x361770._0x36455f,_0x1c64e3);}const _0x207f45=_0x3dff38[_0xc9427a(-_0x9d0f53._0x2155e4,-_0x9d0f53._0x4f00a2,-0x1f5,-_0x9d0f53._0x11a0cd)]??_0xc9427a(-_0x9d0f53._0x3925da,-0x25e,-_0x9d0f53._0x2ad146,-0x25c);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0xaffba2(_0x9d0f53._0x4657d8,0x93,_0x9d0f53._0x7edda5,0x10b),'createRequest'(_0x3f1300){return{'accept':'application/json','body':createChatRequestBody(_0x3f1300,![]),'path':_0x22c69e};},'parseResponse'(_0xba861f){return parseChatCompletionResponse(_0xba861f);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0xc9427a(-_0x9d0f53._0x5267e3,-0xcd,-_0x9d0f53._0x7995d0,-_0x9d0f53._0x6899dd),'createRequest'(_0x1f9468){return{'accept':'text/event-stream','body':createChatRequestBody(_0x1f9468,!![]),'path':_0x22c69e};},'createStreamParser'(){return new OpenAiChatCompletionsStreamParser();}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0xc9427a(-_0x9d0f53._0x29ffdf,-_0x9d0f53._0x3116f2,-0x13c,-_0x9d0f53._0x3f6bd5),'createRequest'(_0x523040){function _0xe64a56(_0x3db84e,_0x21baaa,_0x13dec5,_0xdb4361){return _0xc9427a(_0xdb4361,_0x21baaa-0x1d,_0x13dec5-0x583,_0xdb4361-0xf0);}return{'accept':_0xe64a56(0x449,_0x237c6c._0x164511,0x428,_0x237c6c._0x714287),'body':createResponsesRequestBody(_0x523040,![]),'path':_0x207f45};},'parseResponse'(_0xbaab85,_0x506d4c){return parseResponsesResponse(_0xbaab85,_0x506d4c);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x302826){function _0x17cfd9(_0x1496b5,_0x4fd5f7,_0x496e9a,_0xff5a01){return _0xc9427a(_0x1496b5,_0x4fd5f7-0x2f,_0x4fd5f7-0x59,_0xff5a01-_0x4c982f._0x1057c5);}return{'accept':_0x17cfd9(-_0x1f298c._0x55db7b,-0x1cc,-_0x1f298c._0xa7f692,-0x25b),'body':createResponsesRequestBody(_0x302826,!![]),'path':_0x207f45};},'createStreamParser'(_0x1da7e6){return new OpenAiResponsesStreamParser(_0x1da7e6);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':'websocket','createRequest'(_0x1199c7){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x1199c7),'path':_0x207f45};},'createStreamParser'(_0x59cbf8){return createOpenAiResponsesStreamParser(_0x59cbf8);}}];}var OpenAiProviderAdapter=class{[_0x2e041c(-0xbd,-0xbf,-0xcb,-0xc4)];constructor(_0x49c0ff){const _0x1c3feb={_0x4c5ed0:0x1bf,_0x1a03be:0x1c6,_0x58f379:0x266},_0x55686e={_0x1e3f14:0x12d,_0x1d207d:0x4b};function _0x1fcf28(_0x437884,_0x35d6bc,_0x539f6f,_0xb47eb8){return _0x55f0a4(_0x437884-_0x55686e._0x1e3f14,_0x35d6bc-_0x55686e._0x1d207d,_0x35d6bc,_0xb47eb8-0x4de);}this[_0x1fcf28(_0x1c3feb._0x4c5ed0,_0x1c3feb._0x1a03be,0x261,_0x1c3feb._0x58f379)]=_0x49c0ff;}[_0x55f0a4(-0x24d,-0x24e,-0x283,-0x2b0)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x55f0a4(-0x311,-0x215,-0x1d7,-0x254)](_0x1988f7,_0x4c7627){const _0x4b12e1={_0x4ceb48:0x3cd,_0xf349ea:0x450,_0x591c6c:0x3de,_0x52fb63:0x29f,_0x2b1879:0x327,_0x130889:0x1e0,_0xcf634a:0x2fb,_0x4e9683:0x3f4,_0x4f6967:0x38f,_0x440a1d:0x3cb,_0x372681:0x216,_0x2a2e79:0x1e8,_0x120137:0x20d,_0x5c8f8c:0x275,_0x3c6893:0x2b6,_0x500ac5:0x310,_0x5186cf:0x2ed,_0x52c4ae:0x351,_0xbd07aa:0x2a3,_0x4f4667:0x300,_0x333cda:0x3c7,_0x540c2b:0x3a5,_0x57db19:0x2e3,_0x405261:0x292,_0x5827cf:0x36e,_0x1c1ddf:0x378,_0x7c3614:0x3d7},_0xe8099c={_0x2e41ab:0x0,_0x11b0eb:0x508},_0x5ea744={_0x5bd035:0x1d6,_0x596cce:0x89},_0x546388=new Headers();function _0xdbe538(_0x1dd4f0,_0x26fcd9,_0x52eaf7,_0x50ea1a){return _0x55f0a4(_0x1dd4f0-_0x5ea744._0x5bd035,_0x26fcd9-_0x5ea744._0x596cce,_0x26fcd9,_0x52eaf7-0x5c0);}_0x546388[_0xdbe538(_0x4b12e1._0x4ceb48,_0x4b12e1._0xf349ea,_0x4b12e1._0x591c6c,0x3bc)]('accept',_0x4c7627['accept']);function _0x55bc4a(_0xc72e4c,_0x109013,_0x257f6d,_0x201b96){return _0x55f0a4(_0xc72e4c-_0xe8099c._0x2e41ab,_0x109013-0x113,_0x257f6d,_0xc72e4c-_0xe8099c._0x11b0eb);}_0x546388['set'](_0x55bc4a(_0x4b12e1._0x52fb63,_0x4b12e1._0x2b1879,_0x4b12e1._0x130889,_0x4b12e1._0xcf634a),_0xdbe538(0x418,_0x4b12e1._0x4e9683,_0x4b12e1._0x4f6967,_0x4b12e1._0x440a1d)+_0x1988f7['credential'][_0x55bc4a(_0x4b12e1._0x372681,0x1d0,_0x4b12e1._0x2a2e79,_0x4b12e1._0x120137)]);_0x4c7627[_0x55bc4a(_0x4b12e1._0x5c8f8c,0x2ec,_0x4b12e1._0x3c6893,_0x4b12e1._0x500ac5)]!==![]&&_0x546388[_0xdbe538(0x3f5,0x357,0x3de,_0x4b12e1._0x591c6c)](_0xdbe538(0x38e,_0x4b12e1._0x5186cf,_0x4b12e1._0x52c4ae,_0x4b12e1._0xbd07aa),_0xdbe538(_0x4b12e1._0x4f4667,_0x4b12e1._0x333cda,_0x4b12e1._0x540c2b,_0x4b12e1._0x57db19));const _0x2e8227=await this['headerResolver']?.({'body':_0x1988f7[_0x55bc4a(0x28d,0x27b,0x280,_0x4b12e1._0x405261)],'credential':_0x1988f7['credential'],'request':_0x1988f7[_0x55bc4a(_0x4b12e1._0x5827cf,0x376,_0x4b12e1._0x1c1ddf,0x357)],'session':_0x1988f7['session'],'stream':_0x1988f7[_0xdbe538(_0x4b12e1._0x7c3614,0x478,0x3be,0x303)]});for(const [_0x115afb,_0x349f66]of Object['entries'](_0x2e8227??{})){_0x546388['set'](_0x115afb,_0x349f66);}return _0x546388;}[_0x55f0a4(-0x284,-0x240,-0x25e,-0x271)](_0x353897){return _0x353897;}[_0x55f0a4(-0x251,-0x201,-0x11a,-0x1bc)](_0x16ab2f,_0x5ceed2){return resolveSessionBaseUrl(_0x16ab2f,_0x5ceed2);}[_0x55f0a4(-0x22e,-0x2ef,-0x2e9,-0x2b7)](_0x3fd928,_0x2ba429){return resolveApiCredential(_0x3fd928,_0x2ba429);}async[_0x2e041c(-0xc7,-0xba,-0x1c,0x9e)](_0x15a25b){return await createOpenAiApiError(_0x15a25b);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x2e041c(0x4e,-0x8,-0x6,-0x28)]=new Map();['chatCompletionsPath'];[_0x55f0a4(-0x2fc,-0x365,-0x2d8,-0x2b5)];constructor(_0x321f72={}){const _0x5b0d54={_0x1ca77a:0x110,_0x4753e8:0xe5,_0x102ea9:0xfd,_0x31755e:0x1a2,_0x49c5f6:0x1b3,_0x39ef23:0x56,_0x45206f:0xdf,_0xb26ee6:0x77,_0x5c7663:0x52,_0xb55104:0x11e,_0x2c46f9:0x28,_0x25cef5:0x69,_0x2f909c:0x6d,_0x3ab4ec:0xa8,_0x1e5535:0x1a3,_0x34361b:0x6c,_0x1a2b03:0xac,_0x194a35:0x8e,_0x5df3f8:0x9d,_0x52c005:0x63,_0x3d6db2:0x53,_0x49331a:0x17,_0x2ece99:0xd1,_0x2601a5:0xce,_0x171306:0x7a},_0x1a529c={_0x537703:0x7e,_0x51cd44:0x1e5},_0x3097c0={_0x4b6c48:0x1a9},_0x374027=_0x321f72[_0x52ef6d(_0x5b0d54._0x1ca77a,0x139,-0x1d,0x83)]??'gpt-4o';function _0x52ef6d(_0x5397eb,_0xd6b68a,_0x4a142e,_0x68281a){return _0x2e041c(_0x5397eb-_0x3097c0._0x4b6c48,_0xd6b68a-0xd8,_0x68281a-0x182,_0x5397eb);}const _0x42067a=_0x321f72[_0xecd6e1(-0x109,-0x65,-_0x5b0d54._0x4753e8,-_0x5b0d54._0x102ea9)]??0x4000;function _0xecd6e1(_0x445aba,_0x55052d,_0x258d03,_0x1d8f9f){return _0x55f0a4(_0x445aba-_0x1a529c._0x537703,_0x55052d-0x1aa,_0x445aba,_0x258d03-_0x1a529c._0x51cd44);}const _0x14c77e=_0x321f72[_0x52ef6d(_0x5b0d54._0x31755e,_0x5b0d54._0x49c5f6,0x78,0xf7)]??_0x52ef6d(-0x17,0xdd,_0x5b0d54._0x39ef23,0x68),_0x4669de=_0x321f72[_0xecd6e1(-_0x5b0d54._0x45206f,-_0x5b0d54._0xb26ee6,-0xd0,-0x77)]??_0x52ef6d(_0x5b0d54._0x5c7663,_0x5b0d54._0xb55104,_0x5b0d54._0x2c46f9,0xb8);super({'apiKey':_0x321f72[_0xecd6e1(-_0x5b0d54._0x25cef5,-0xba,-_0x5b0d54._0x2f909c,-_0x5b0d54._0x3ab4ec)],'baseUrl':trimTrailingSlashes(_0x321f72['baseUrl']??_0xecd6e1(-0x1e,0xa9,-0x11,0xb1)),'fetch':_0x321f72['fetch'],'maxTokens':_0x42067a,'model':_0x374027,'reasoning':_0x321f72[_0x52ef6d(0x1d9,0x188,0x1cc,_0x5b0d54._0x1e5535)],'providerAdapter':new OpenAiProviderAdapter(_0x321f72[_0xecd6e1(0xc,_0x5b0d54._0x2c46f9,-0x93,-_0x5b0d54._0x34361b)]),'providerSessionResolver':_0x321f72[_0xecd6e1(-_0x5b0d54._0x1a2b03,-_0x5b0d54._0x194a35,-_0x5b0d54._0x5df3f8,-0xd3)],'requestMutators':_0x321f72['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x321f72['sessionManager'],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x14c77e,'responsesPath':_0x4669de}),'webSocketFactory':_0x321f72[_0xecd6e1(0x26,0x43,-_0x5b0d54._0x52c005,0x18)]}),this[_0xecd6e1(0x3a,-0x78,-_0x5b0d54._0x3d6db2,_0x5b0d54._0x49331a)]=_0x14c77e,this[_0x52ef6d(_0x5b0d54._0x2ece99,_0x5b0d54._0x2601a5,0xe,_0x5b0d54._0x171306)]=_0x4669de;}['completeViaChatCompletionsSurface'](_0xc624e3,_0x43f4e9){const _0x21a16d={_0x36a8fd:0x10c,_0xb068da:0x63},_0x3a4d8a={_0x49f059:0xef,_0x9658c:0x2f4};function _0x4a8df4(_0x21aab9,_0x251260,_0x5d7c47,_0x22a89b){return _0x55f0a4(_0x21aab9-_0x3a4d8a._0x49f059,_0x251260-0x1d4,_0x22a89b,_0x251260-_0x3a4d8a._0x9658c);}return this[_0x4a8df4(0xc5,_0x21a16d._0x36a8fd,0x1b4,_0x21a16d._0xb068da)](_0xc624e3,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x43f4e9);}[_0x55f0a4(-0x2db,-0x328,-0x37c,-0x2da)](_0x4bca2d,_0x5294d8){const _0x41e631={_0x875029:0xd5};function _0x552994(_0x127d8e,_0x413227,_0x2c2187,_0x30389d){return _0x2e041c(_0x127d8e-0xef,_0x413227-0x8e,_0x127d8e- -0x9a,_0x30389d);}return this[_0x552994(-_0x41e631._0x875029,-0xf3,-0x55,-0x75)](_0x4bca2d,OPENAI_RESPONSES_SURFACE,_0x5294d8);}[_0x55f0a4(-0x1d6,-0xec,-0xc7,-0x17d)](_0xc00003,_0x14ca02){const _0x50f961={_0x212e47:0x191},_0x2aa837={_0x4f0caf:0x95,_0x260b2e:0x8c,_0x5739b0:0x379};function _0xe43afd(_0x28f1e4,_0x5d2f62,_0xaad6e6,_0x57b021){return _0x55f0a4(_0x28f1e4-_0x2aa837._0x4f0caf,_0x5d2f62-_0x2aa837._0x260b2e,_0x57b021,_0x28f1e4-_0x2aa837._0x5739b0);}return this[_0xe43afd(_0x50f961._0x212e47,0x23b,0x135,0xd7)](_0xc00003,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x14ca02);}['streamViaChatCompletionsSurface'](_0x169bd0,_0x566b2e){return this['streamViaSurface'](_0x169bd0,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x566b2e);}[_0x2e041c(0x69,0x3a,-0x7,-0x15)](_0x33b3f6,_0x2d57c2){const _0x146ade={_0x22bfe3:0x13b,_0x23223a:0x12b},_0x156f3b={_0x424fe7:0xd0,_0x1ccd8c:0x3b1};function _0x290137(_0x32f5d9,_0x34eb5f,_0x577af8,_0x3fe01f){return _0x55f0a4(_0x32f5d9-0x3f,_0x34eb5f-_0x156f3b._0x424fe7,_0x577af8,_0x32f5d9-_0x156f3b._0x1ccd8c);}return this[_0x290137(_0x146ade._0x22bfe3,0x1dd,_0x146ade._0x23223a,0x10e)](_0x33b3f6,OPENAI_RESPONSES_STREAM_SURFACE,_0x2d57c2);}[_0x55f0a4(-0x1c6,-0x1e8,-0x250,-0x1dd)](_0x108345,_0x1874a4){const _0x282d48={_0x2b8efe:0x6a,_0x1264d0:0x6c},_0x405768={_0x28d0ce:0x44,_0x308f1d:0xb3};function _0x110463(_0xaabe57,_0x95de52,_0x30ed14,_0x40cf18){return _0x2e041c(_0xaabe57-_0x405768._0x28d0ce,_0x95de52-0x1ab,_0x40cf18-_0x405768._0x308f1d,_0x30ed14);}return this[_0x110463(_0x282d48._0x2b8efe,-_0x282d48._0x1264d0,0x63,-0x16)](_0x108345,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x1874a4);}async[_0x2e041c(-0x1c,-0x124,-0x7b,-0x36)](_0x581ea6,_0x4de56a){const _0x72574b={_0x56efb6:0x1be},_0x2a474a={_0x2fd38:0x5c};function _0x2fda7a(_0x4fa3c8,_0x41616f,_0x1010ea,_0xc364d7){return _0x2e041c(_0x4fa3c8-_0x2a474a._0x2fd38,_0x41616f-0x12b,_0x1010ea-0x205,_0xc364d7);}try{return await this[_0x2fda7a(_0x72574b._0x56efb6,0x155,0x1c0,0x147)](_0x581ea6,_0x4de56a);}catch(_0x4c2188){if(_0x4c2188 instanceof OpenAiApiError)throw this['mapApiError'](_0x4c2188);throw _0x4c2188;}}async[_0x2e041c(-0x81,-0x53,-0x69,-0xe)](_0x3114c1,_0x234222){const _0x1360c3={_0x5af913:0x398,_0x2a8e43:0x308,_0x143473:0x48},_0x253133={_0x3764f1:0x9e,_0x3da07b:0x156,_0x148af0:0x1be},_0x23a438={_0x3f0b23:0x215};function _0x3ba47e(_0x1ccc7e,_0x36da2c,_0x11f1d2,_0x54e3e2){return _0x55f0a4(_0x1ccc7e-0xce,_0x36da2c-0x166,_0x1ccc7e,_0x54e3e2-_0x23a438._0x3f0b23);}function _0xc9a932(_0x9325fc,_0x240436,_0x39fcfa,_0x2079ed){return _0x2e041c(_0x9325fc-_0x253133._0x3764f1,_0x240436-_0x253133._0x3da07b,_0x9325fc- -_0x253133._0x148af0,_0x240436);}try{return await this[_0xc9a932(-0x2eb,-_0x1360c3._0x5af913,-0x2eb,-_0x1360c3._0x2a8e43)](_0x3114c1,_0x234222);}catch(_0x3fc5be){if(_0x3fc5be instanceof OpenAiApiError)throw this[_0x3ba47e(-0x94,_0x1360c3._0x143473,-0xce,-0x5c)](_0x3fc5be);throw _0x3fc5be;}}async[_0x55f0a4(-0x218,-0x139,-0x288,-0x1d6)](_0x3c985b,_0x58dd01){const _0x1580e3={_0x35c221:0xb0,_0x3d521a:0x98,_0x24efdc:0xb4,_0xcf9e2c:0x7,_0x4201bb:0xa2,_0x1be0f4:0x8c,_0xc221ca:0x5e,_0x4a56e2:0x8,_0x1e3018:0x82,_0x4596be:0x50},_0x4a3917={_0x57e626:0xe0,_0x32d5e9:0x10a,_0x2ed4b3:0x51};function _0x2f7d0c(_0x5c19f6,_0x3351df,_0x887fcb,_0x2aefbe){return _0x2e041c(_0x5c19f6-_0x4a3917._0x57e626,_0x3351df-_0x4a3917._0x32d5e9,_0x5c19f6-_0x4a3917._0x2ed4b3,_0x3351df);}function _0x24d063(_0x44d015,_0x47bbc6,_0x1adc14,_0x4b9ca9){return _0x55f0a4(_0x44d015-0xde,_0x47bbc6-0x199,_0x1adc14,_0x4b9ca9-0x2c1);}try{let _0x5a7313;for await(const _0x59a98c of this['responseSocketStream'](_0x3c985b,_0x58dd01)){_0x59a98c['type']===_0x2f7d0c(-_0x1580e3._0x35c221,-_0x1580e3._0x3d521a,-0x14f,-0x34)&&(_0x5a7313=_0x59a98c[_0x2f7d0c(-0x18,-0x5f,-_0x1580e3._0x24efdc,_0x1580e3._0xcf9e2c)]);}if(!_0x5a7313)throw new Error(_0x24d063(-0x1f,_0x1580e3._0x4201bb,_0x1580e3._0x1be0f4,_0x1580e3._0xc221ca));return _0x5a7313;}catch(_0x51fe0e){if(_0x51fe0e instanceof OpenAiApiError)throw this[_0x24d063(-_0x1580e3._0x4a56e2,_0x1580e3._0x1e3018,0x7a,_0x1580e3._0x4596be)](_0x51fe0e);throw _0x51fe0e;}}async*[_0x55f0a4(-0x354,-0x269,-0x323,-0x2cf)](_0x53cb61,_0x1a9ff1){const _0x440a4e={_0x1ee2c9:0x2be,_0x4d2060:0x344,_0x28ebb8:0x1c2,_0x3e1032:0x1bd},_0x5ca860={_0x1d5b23:0x149},_0x3d0a35={_0x54cd62:0xf9};function _0x21bb25(_0x44badd,_0x1eb237,_0x2468db,_0x2056ff){return _0x2e041c(_0x44badd-0x18b,_0x1eb237-0xdc,_0x2468db- -_0x3d0a35._0x54cd62,_0x44badd);}function _0x212685(_0x3c6e01,_0x18ef1d,_0x2659d9,_0x4498db){return _0x2e041c(_0x3c6e01-_0x5ca860._0x1d5b23,_0x18ef1d-0x18b,_0x18ef1d-0x2b8,_0x2659d9);}try{yield*this[_0x212685(0x351,_0x440a4e._0x1ee2c9,0x20f,_0x440a4e._0x4d2060)](_0x53cb61,_0x1a9ff1);}catch(_0x4f1893){if(_0x4f1893 instanceof OpenAiApiError)throw this[_0x21bb25(-_0x440a4e._0x28ebb8,-0x1dd,-_0x440a4e._0x3e1032,-0x1c8)](_0x4f1893);throw _0x4f1893;}}async*[_0x55f0a4(-0x1da,-0x20b,-0x1e5,-0x1c4)](_0x2862b8,_0x20f118){const _0x167eea={_0x1b52af:0x2f,_0x4184c9:0x93,_0x4f036a:0x45,_0xbeed46:0x419,_0x372a7f:0x4a5},_0x35e705={_0x1fad52:0x6b5},_0x5f1e9f={_0x2f793f:0x1cf,_0x26a47d:0x36};function _0x727098(_0x2e2ce7,_0x2e7afd,_0x2f537d,_0x265c06){return _0x2e041c(_0x2e2ce7-0x167,_0x2e7afd-_0x5f1e9f._0x2f793f,_0x2e2ce7-_0x5f1e9f._0x26a47d,_0x265c06);}function _0x558457(_0x3b4dc5,_0x4d3936,_0x58f406,_0x4fb2cd){return _0x55f0a4(_0x3b4dc5-0x10e,_0x4d3936-0xb8,_0x4d3936,_0x3b4dc5-_0x35e705._0x1fad52);}try{yield*this[_0x727098(_0x167eea._0x1b52af,-0x2b,_0x167eea._0x4184c9,-_0x167eea._0x4f036a)](_0x2862b8,_0x20f118);}catch(_0x266121){if(_0x266121 instanceof OpenAiApiError)throw this[_0x558457(0x444,_0x167eea._0xbeed46,0x382,_0x167eea._0x372a7f)](_0x266121);throw _0x266121;}}async*['responseSocketStream'](_0x2f0281,_0x2996c8){const _0xc64db9={_0x332ce2:0x126,_0x34db5a:0x1bb,_0x2328d6:0x1b1,_0x535ce3:0x261,_0x5bd16e:0x34a,_0x2c43be:0x2b5,_0x40ebb2:0x2a8},_0x28bedf={_0x180bf2:0x7c,_0x4690b9:0x14},_0x3a6ceb={_0x5ebe8d:0x3b,_0x58885d:0x111,_0x3d07f3:0x1f1};function _0x5c8a2c(_0x175a51,_0x5ccf24,_0x904487,_0x3b4d1c){return _0x2e041c(_0x175a51-_0x3a6ceb._0x5ebe8d,_0x5ccf24-_0x3a6ceb._0x58885d,_0x904487- -_0x3a6ceb._0x3d07f3,_0x5ccf24);}function _0x469ce0(_0x5a508f,_0x30cc78,_0x410e86,_0x4d4354){return _0x55f0a4(_0x5a508f-0x6f,_0x30cc78-_0x28bedf._0x180bf2,_0x410e86,_0x4d4354- -_0x28bedf._0x4690b9);}try{yield*this[_0x469ce0(-_0xc64db9._0x332ce2,-0x18e,-_0xc64db9._0x34db5a,-_0xc64db9._0x2328d6)](_0x2f0281,_0x2996c8);}catch(_0x57f998){if(_0x57f998 instanceof OpenAiApiError)throw this[_0x5c8a2c(-_0xc64db9._0x535ce3,-_0xc64db9._0x5bd16e,-_0xc64db9._0x2c43be,-_0xc64db9._0x40ebb2)](_0x57f998);throw _0x57f998;}}['complete'](_0xfda35e,_0x3b5868){const _0x55ba4f={_0x7a2db6:0xa1,_0x4e9a80:0x15,_0x5c552a:0x92,_0x3bb8fa:0x115},_0x13d46a={_0x5d3d43:0x122,_0x58ee19:0x10f,_0x1f3519:0x26};function _0x99d3e1(_0x1d5854,_0x399edc,_0x3c798f,_0x1f5b6f){return _0x2e041c(_0x1d5854-_0x13d46a._0x5d3d43,_0x399edc-_0x13d46a._0x58ee19,_0x1d5854- -_0x13d46a._0x1f3519,_0x1f5b6f);}return this[_0x99d3e1(-_0x55ba4f._0x7a2db6,_0x55ba4f._0x4e9a80,-_0x55ba4f._0x5c552a,-_0x55ba4f._0x3bb8fa)](_0xfda35e,_0x3b5868);}['stream'](_0x1a8f58,_0x1e6d2b){const _0x4efbf5={_0x597ccd:0x20,_0x477d3c:0x5},_0x4ec472={_0x3d18c3:0x5b,_0xb25138:0x18c,_0x38b984:0x2ca};function _0x122b47(_0x11193f,_0x3993c6,_0x46baff,_0x386b8b){return _0x55f0a4(_0x11193f-_0x4ec472._0x3d18c3,_0x3993c6-_0x4ec472._0xb25138,_0x386b8b,_0x46baff-_0x4ec472._0x38b984);}return this[_0x122b47(-0x6f,_0x4efbf5._0x597ccd,-_0x4efbf5._0x477d3c,0x20)](_0x1a8f58,_0x1e6d2b);}[_0x2e041c(-0x1d2,-0x137,-0x112,-0xa3)](_0x585726){const _0x2aae63={_0x488340:0x14,_0xa09b74:0x9c,_0xe8f2ce:0xbe,_0x1827c2:0x122,_0x2fd5c1:0xb3,_0x21913a:0x65,_0x1504bf:0xf3},_0x157f7c={_0x459f78:0x11,_0xc855e6:0x2d5};function _0x339968(_0x3dd742,_0x24eb1d,_0x551a9b,_0xdd8616){return _0x55f0a4(_0x3dd742-0x123,_0x24eb1d-_0x157f7c._0x459f78,_0x24eb1d,_0x551a9b-_0x157f7c._0xc855e6);}const _0x54f49e=this[_0x16594e(0x2a,_0x2aae63._0x488340,_0x2aae63._0xa09b74,0x3a)](_0x585726);let _0x1188e9=_OpenAiModel[_0x339968(0xbe,_0x2aae63._0xe8f2ce,_0x2aae63._0x1827c2,0x1a4)]['get'](_0x54f49e);function _0x16594e(_0x1d30e9,_0x523277,_0x40996c,_0xfeb71a){return _0x55f0a4(_0x1d30e9-0x101,_0x523277-0xd5,_0x1d30e9,_0xfeb71a-0x2e5);}return!_0x1188e9&&(_0x1188e9={'pending':Promise[_0x16594e(-_0x2aae63._0x2fd5c1,0x46,0x97,-0x13)]()},_OpenAiModel[_0x16594e(0xf0,0x189,0x160,0x132)][_0x339968(0xbc,_0x2aae63._0x21913a,_0x2aae63._0x1504bf,0x3d)](_0x54f49e,_0x1188e9)),_0x1188e9;}[_0x55f0a4(-0x2af,-0x328,-0x2cd,-0x2ab)](_0x589ef0){const _0x407370={_0x1853ec:0x194,_0x381a50:0x3d9,_0x3cce0b:0x479},_0x40dd29={_0x514211:0xa,_0x156935:0x1bb,_0x26e742:0x52d};function _0x5a1d3a(_0x245afa,_0x22ff41,_0x2f6e46,_0xe7db02){return _0x2e041c(_0x245afa-_0x40dd29._0x514211,_0x22ff41-_0x40dd29._0x156935,_0x2f6e46-_0x40dd29._0x26e742,_0x245afa);}function _0x3d687a(_0x5cc779,_0x1f67b3,_0x56979c,_0x5abfae){return _0x55f0a4(_0x5cc779-0x18,_0x1f67b3-0x68,_0x5abfae,_0x5cc779-0x483);}return''+trimTrailingSlashes(this[_0x3d687a(0x245,0x192,_0x407370._0x1853ec,0x298)])+this[_0x5a1d3a(_0x407370._0x381a50,0x452,0x425,_0x407370._0x3cce0b)]+'::'+_0x589ef0;}async[_0x2e041c(-0xf9,-0xef,-0x4a,0x46)](_0x843cea){const _0x33d268={_0x2fd1f1:0x3d5,_0x52685c:0x328,_0x106abd:0x9e,_0x3626f4:0x82,_0x4750e2:0x5f,_0x8ca2d8:0x26,_0x568480:0x9e,_0x35a7c7:0x47},_0x406943={_0x1defdf:0x570};function _0x314d01(_0x20bab9,_0x2e6931,_0x233306,_0x2ece8b){return _0x55f0a4(_0x20bab9-0x5d,_0x2e6931-0xd4,_0x20bab9,_0x2ece8b-0x23f);}const _0x48225a=_0x843cea[_0x11b989(_0x33d268._0x2fd1f1,_0x33d268._0x52685c,0x37d,0x2fd)][_0x314d01(_0x33d268._0x106abd,0x9d,-0x43,0x27)](()=>{});let _0x270e44;const _0x4831e8=new Promise(_0x5edec0=>{_0x270e44=_0x5edec0;});_0x843cea[_0x314d01(_0x33d268._0x3626f4,-_0x33d268._0x4750e2,-0x3d,0x4c)]=_0x48225a[_0x314d01(-_0x33d268._0x8ca2d8,0xdc,_0x33d268._0x568480,_0x33d268._0x35a7c7)](()=>_0x4831e8),await _0x48225a;function _0x11b989(_0x1b24d3,_0x3b6baf,_0x303f52,_0x1e9591){return _0x55f0a4(_0x1b24d3-0xc5,_0x3b6baf-0xa7,_0x3b6baf,_0x303f52-_0x406943._0x1defdf);}return()=>{_0x270e44?.();};}async[_0x55f0a4(-0x2b4,-0x256,-0x285,-0x2d0)](_0x172c37,_0x220cb6){const _0x4a0451={_0x10f9ae:0x163,_0x440557:0x1a5,_0x2f5484:0x146,_0x131e15:0x157,_0x41c82d:0xcd,_0x426ae2:0x48,_0x3720f0:0xe5,_0x39623f:0x1ee,_0x302fcd:0x21c,_0x2b80c7:0x1b5,_0x18348d:0x220,_0x23b83f:0x1b7,_0x31fc65:0x23a,_0xcdf15f:0x215,_0x70693d:0x1c4,_0x3fad99:0x430,_0x48547c:0x3cd,_0x5c87b5:0x47b,_0x23bb35:0x459,_0x27a426:0x112,_0x3f79c6:0xf5,_0x272985:0x1dd,_0x3ce1d6:0x268,_0x2cee13:0x1e3,_0x5d625f:0x1b9},_0x3bd817={_0x2b3b74:0xaf,_0x444b68:0x1ce,_0x32dac1:0x4da},_0x395e64={_0x28ec6f:0x12e,_0x39c12f:0x1dd,_0x5708ab:0x9b};function _0x1e81bc(_0x4f63f2,_0x246b70,_0x1afcdf,_0x8e4492){return _0x55f0a4(_0x4f63f2-_0x395e64._0x28ec6f,_0x246b70-_0x395e64._0x39c12f,_0x1afcdf,_0x246b70-_0x395e64._0x5708ab);}const _0x22e5dc=this[_0x1e81bc(-0x1c1,-_0x4a0451._0x10f9ae,-0x11c,-0xa1)](_0x172c37),_0xf3fd54=toModelRequest(_0x22e5dc);function _0x343b40(_0x25be9b,_0xe29042,_0x40c454,_0x48f66c){return _0x2e041c(_0x25be9b-_0x3bd817._0x2b3b74,_0xe29042-_0x3bd817._0x444b68,_0x48f66c-_0x3bd817._0x32dac1,_0xe29042);}const _0x63c413=await prepareProviderRequest(_0xf3fd54,{'sessionManager':this[_0x1e81bc(-_0x4a0451._0x440557,-_0x4a0451._0x2f5484,-_0x4a0451._0x131e15,-_0x4a0451._0x41c82d)],'requestMutators':this[_0x1e81bc(-0x1b7,-0x13d,-0x136,-0x1c2)],'signal':_0x220cb6}),_0x534721=toChatRequest(_0x63c413[_0x1e81bc(-0x121,-0xff,-_0x4a0451._0x426ae2,-_0x4a0451._0x3720f0)]),_0x4fbf66=this['providerAdapter'][_0x1e81bc(-_0x4a0451._0x39623f,-_0x4a0451._0x302fcd,-0x170,-_0x4a0451._0x2b80c7)](this[_0x1e81bc(-_0x4a0451._0x18348d,-_0x4a0451._0x23b83f,-_0x4a0451._0x31fc65,-0x1b8)],_0x63c413['session']);if(!_0x4fbf66)throw this[_0x1e81bc(-0x154,-_0x4a0451._0xcdf15f,-_0x4a0451._0x70693d,-0x208)]();return{'baseUrl':this[_0x343b40(_0x4a0451._0x3fad99,_0x4a0451._0x48547c,_0x4a0451._0x5c87b5,_0x4a0451._0x23bb35)]['resolveBaseUrl'](this[_0x1e81bc(-_0x4a0451._0x27a426,-0x1a3,-_0x4a0451._0x3f79c6,-_0x4a0451._0x272985)],_0x63c413['session']),'credential':_0x4fbf66,'request':_0x534721,'session':_0x63c413[_0x1e81bc(-_0x4a0451._0x3ce1d6,-0x23c,-_0x4a0451._0x2cee13,-_0x4a0451._0x5d625f)]};}['buildResponsesSocketEvent'](_0x5c805e,_0x2467be,_0x2456c1={}){const _0x39a0fc={_0x35ad9f:0x12e,_0x4e0aa3:0xc9,_0x42632d:0x1fc,_0x216e79:0x319,_0x5345bd:0x175,_0xf55e6f:0x1c1,_0x49ec14:0xa8,_0x5c5037:0x130,_0x2350a0:0x306,_0x4779e1:0x3bf,_0x1169e2:0x3b5,_0x1426c1:0x2c8,_0x3d3577:0x1c1,_0x18790d:0x105},_0x205605={_0x1c2538:0x192},_0x10bc90={_0x395741:0x3bf};function _0x3fe73c(_0x19a0e5,_0x36bdf8,_0xdcca65,_0x13ad19){return _0x2e041c(_0x19a0e5-0xfd,_0x36bdf8-0x136,_0x36bdf8-_0x10bc90._0x395741,_0xdcca65);}function _0x3ea1fd(_0x19c3cb,_0x2f3d92,_0x306b64,_0x5a6557){return _0x2e041c(_0x19c3cb-0x43,_0x2f3d92-_0x205605._0x1c2538,_0x2f3d92-0x25e,_0x5a6557);}if(!_0x2456c1['forceFullReplay']){const _0x59f102=this[_0x3ea1fd(0x1cc,_0x39a0fc._0x35ad9f,_0x39a0fc._0x4e0aa3,0xd1)](_0x5c805e);if(_0x59f102&&_0x2467be[_0x3fe73c(_0x39a0fc._0x42632d,0x291,0x1f5,_0x39a0fc._0x216e79)]&&_0x59f102[_0x3ea1fd(_0x39a0fc._0x5345bd,_0x39a0fc._0xf55e6f,0x14d,0x1a5)]===_0x2467be[_0x3ea1fd(_0x39a0fc._0x49ec14,_0x39a0fc._0x5c5037,0x18c,0x8a)]){const _0x2fed31=toOpenAiResponsesRequest({..._0x5c805e,'messages':_0x5c805e[_0x3fe73c(0x303,_0x39a0fc._0x2350a0,_0x39a0fc._0x4779e1,0x36c)]['slice'](_0x59f102[_0x3fe73c(0x390,0x34c,0x36d,_0x39a0fc._0x1169e2)]+0x1)})[_0x3ea1fd(_0x39a0fc._0x1426c1,0x259,0x1f7,0x2ec)];return{'event':createOpenAiResponsesWebSocketEvent(_0x5c805e,{'input':_0x2fed31,'previousResponseId':_0x59f102['responseId']}),'previousResponseId':_0x59f102[_0x3ea1fd(0x255,_0x39a0fc._0x3d3577,0x1dd,_0x39a0fc._0x18790d)]};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x5c805e)};}[_0x55f0a4(-0x299,-0x2bc,-0x275,-0x2dd)](_0x40b486){const _0x275bd1={_0x39cc58:0x15c,_0x37728a:0x204,_0x41dd40:0x1f5,_0x165da2:0x1ba,_0x24e33e:0xc1,_0x93852e:0x11e,_0x410cee:0xef,_0x4ad12c:0x142},_0x25a0b1={_0x9b9f10:0xbd,_0x2d75fa:0x267},_0x4a70bd={_0x58d877:0x4a};for(let _0x31d008=_0x40b486[_0x84507d(0x1c4,0xda,_0x275bd1._0x39cc58,0x1aa)][_0x1729e3(_0x275bd1._0x37728a,0x24a,0x172,_0x275bd1._0x41dd40)]-0x1;_0x31d008>=0x0;_0x31d008-=0x1){const _0x793b91=_0x40b486[_0x84507d(_0x275bd1._0x165da2,0xfc,0x15c,0xfe)][_0x31d008],_0x2178a9=_0x793b91['role']==='assistant'?_0x793b91[_0x84507d(_0x275bd1._0x24e33e,_0x275bd1._0x93852e,_0x275bd1._0x410cee,_0x275bd1._0x4ad12c)]?.['openaiResponsesResponseId']:void 0x0;if(_0x2178a9)return{'messageIndex':_0x31d008,'responseId':_0x2178a9};}function _0x84507d(_0x541285,_0x462386,_0x40b1be,_0x45406b){return _0x55f0a4(_0x541285-_0x4a70bd._0x58d877,_0x462386-0x18d,_0x45406b,_0x40b1be-0x3c2);}function _0x1729e3(_0x53f91a,_0x26d0ba,_0x4bcd83,_0x26fa09){return _0x2e041c(_0x53f91a-0x134,_0x26d0ba-_0x25a0b1._0x9b9f10,_0x53f91a-_0x25a0b1._0x2d75fa,_0x26fa09);}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x5ede2f){const _0x81475f={_0x5d341d:0x303},_0x1dd759={_0x159499:0x7a},_0x21dd68={_0x3e42a5:0x18b,_0x13f66f:0x1ac,_0x182dbb:0x3c7};function _0x5964e3(_0x1d2fc1,_0x4ce5a9,_0x4d6acc,_0x4600fe){return _0x2e041c(_0x1d2fc1-_0x21dd68._0x3e42a5,_0x4ce5a9-_0x21dd68._0x13f66f,_0x4600fe-_0x21dd68._0x182dbb,_0x4ce5a9);}function _0x15c0eb(_0x2f36b7,_0x15e7bb,_0x23188f,_0x4655f8){return _0x2e041c(_0x2f36b7-_0x1dd759._0x159499,_0x15e7bb-0x32,_0x2f36b7-0x172,_0x4655f8);}return _0x5ede2f instanceof OpenAiResponsesStreamError&&(_0x5ede2f['code']==='previous_response_not_found'||_0x5ede2f[_0x5964e3(0x28f,_0x81475f._0x5d341d,0x2f8,0x2ce)]===_0x15c0eb(0xdc,0xa7,0xcb,0x18c));}[_0x55f0a4(-0x2a0,-0x336,-0x255,-0x2ce)](_0x32299d){const _0xa3661f={_0x44956f:0xe3,_0x442da5:0xc3,_0x44dbda:0xf6,_0x3676ff:0x198,_0x5f0a00:0x155,_0x1be28c:0x20f,_0x9c4137:0x179,_0x22531e:0x1b9,_0xd792cf:0xcb,_0x4be78e:0x194,_0x2c3246:0x89,_0x35612d:0x36},_0xca5b98={_0x5367c8:0x1be},_0x34fc6c={_0x42b40f:0x1f,_0x4b5fb3:0x126},_0xd289af=_0x32299d[_0x30810d(-0x16c,-0x180,-_0xa3661f._0x44956f,-_0xa3661f._0x442da5)];function _0x30810d(_0x382663,_0x42e049,_0x2e0a45,_0x35f1c3){return _0x2e041c(_0x382663-_0x34fc6c._0x42b40f,_0x42e049-0x1df,_0x42e049- -_0x34fc6c._0x4b5fb3,_0x2e0a45);}_0x32299d[_0x30810d(-_0xa3661f._0x44dbda,-0x180,-_0xa3661f._0x3676ff,-0xe2)]=void 0x0,_0x32299d[_0x234c3f(_0xa3661f._0x5f0a00,0x192,0x1a8,0x1ab)]=void 0x0;function _0x234c3f(_0x477f9e,_0x39a9ee,_0x1a734b,_0x304183){return _0x2e041c(_0x477f9e-0x73,_0x39a9ee-0x156,_0x1a734b-_0xca5b98._0x5367c8,_0x39a9ee);}_0x32299d[_0x30810d(-0x1d4,-0x254,-0x2ea,-_0xa3661f._0x1be28c)]=void 0x0,_0xd289af?.[_0x30810d(-_0xa3661f._0x9c4137,-_0xa3661f._0x22531e,-0x175,-0x198)]===WebSocket['OPEN']&&_0xd289af[_0x30810d(-_0xa3661f._0xd792cf,-0x12f,-0xe8,-_0xa3661f._0x4be78e)](0x3e8,_0x234c3f(_0xa3661f._0x2c3246,0x5e,0x6f,-_0xa3661f._0x35612d));}async[_0x2e041c(-0x34,-0xce,-0xc8,-0x16)](_0x34d1af,_0x4fac4b,_0x5e5738,_0xbe91ea,_0x24ad53){const _0x1ccb6e={_0x55f493:0x8d,_0x30b3f1:0x84,_0x493973:0x2f,_0xd76d52:0x91,_0x3f57c4:0x9e,_0x45a80c:0xb2,_0x45e43e:0x9c,_0x17f423:0x1ec,_0x28f4a4:0x12e,_0x56bae5:0x38,_0x2cd15f:0x12d,_0x1fc141:0x8d},_0x1f64ab={_0x39ba5f:0x12a,_0x4c1efa:0x3fa,_0x26884e:0x47e,_0x28ca42:0x3d9,_0x4a5eb4:0x477,_0x31bd37:0x468,_0x43b168:0xf1,_0x5e97bd:0xd6,_0x2951ae:0xd0,_0x523058:0x1f,_0x859021:0x5d,_0x2c1298:0x468,_0x436c41:0x3b6,_0x1c7f21:0x10f,_0x45b172:0xb4,_0x41b50b:0x154,_0x201017:0x21e,_0x151b10:0x258,_0x1f1c27:0x196,_0x29dad3:0x231,_0x12659a:0xd3,_0x3e7c83:0xa8,_0x294ab1:0x4ec,_0x69d87b:0x522,_0x8d1118:0x3c8,_0x4b42cb:0x4fa,_0xdaaa23:0x47a,_0x3fdd5c:0x537,_0x5e11e4:0x16e,_0x2c6ae0:0x4a9,_0x2ea13c:0x45b,_0x5000b5:0xa5,_0x365f3e:0x170,_0x38df08:0xb0},_0x2a790b={_0x5e191e:0x17b,_0x166231:0x166,_0x5e9b01:0x2f0};if(_0x4fac4b['socket']?.[_0x242e2c(-0x1a,0x91,_0x1ccb6e._0x55f493,_0x1ccb6e._0x30b3f1)]===WebSocket[_0x242e2c(-_0x1ccb6e._0x493973,_0x1ccb6e._0xd76d52,-_0x1ccb6e._0x3f57c4,0x61)])return _0x4fac4b[_0x585538(0xe9,_0x1ccb6e._0x45a80c,_0x1ccb6e._0x45e43e,0x17e)];function _0x585538(_0x2c4f36,_0x3411b6,_0x4e3069,_0x2090d8){return _0x55f0a4(_0x2c4f36-_0x2a790b._0x5e191e,_0x3411b6-_0x2a790b._0x166231,_0x4e3069,_0x2c4f36-_0x2a790b._0x5e9b01);}if(_0x4fac4b[_0x585538(0x12d,_0x1ccb6e._0x17f423,0x18f,0x148)])return await _0x4fac4b[_0x585538(0x12d,0x1a0,0x1d9,_0x1ccb6e._0x28f4a4)];function _0x242e2c(_0xa4bdad,_0x5a9762,_0x4cbde2,_0x3feba2){return _0x2e041c(_0xa4bdad-0xbf,_0x5a9762-0x12c,_0xa4bdad-0x79,_0x5a9762);}_0x4fac4b['connecting']=((async()=>{const _0x3d2e6f={_0x18422f:0x1ea,_0x511bfa:0x24b,_0xf77c10:0x1fb,_0x1d7287:0x3bc,_0x141707:0x34c},_0x3a0530={_0x40eb86:0x3c0},_0x54746b=await this[_0x57bd61(-0xa4,-0x111,-_0x1f64ab._0x39ba5f,-0x19f)]({'request':_0x5e5738['request'],'body':_0xbe91ea,'credential':_0x5e5738[_0x141a04(0x49b,_0x1f64ab._0x4c1efa,_0x1f64ab._0x26884e,0x429)],'session':_0x5e5738[_0x141a04(_0x1f64ab._0x28ca42,_0x1f64ab._0x4a5eb4,0x3cf,_0x1f64ab._0x31bd37)],'stream':!![]},{'accept':_0x57bd61(-0x99,-0x1a1,-_0x1f64ab._0x43b168,-0x164),'includeContentType':![]});function _0x141a04(_0x3b5bed,_0xdcc9f4,_0x36092b,_0x328f79){return _0x585538(_0x3b5bed-_0x3a0530._0x40eb86,_0xdcc9f4-0x102,_0x328f79,_0x328f79-0x137);}_0x54746b[_0x57bd61(-_0x1f64ab._0x5e97bd,-_0x1f64ab._0x2951ae,-0x79,-_0x1f64ab._0x523058)](_0x57bd61(-0x73,-0xb4,-_0x1f64ab._0x859021,0x19));const _0x2d0c21=this[_0x141a04(_0x1f64ab._0x2c1298,_0x1f64ab._0x436c41,0x443,0x44a)]({'headers':Object[_0x57bd61(-_0x1f64ab._0x1c7f21,-0x81,-_0x1f64ab._0x45b172,-_0x1f64ab._0x41b50b)](_0x54746b[_0x141a04(0x504,0x49e,0x479,0x474)]()),'url':(''+_0x5e5738['baseUrl']+this['responsesPath'])[_0x141a04(0x4b3,0x4f4,0x42a,0x558)](/^http:/,_0x57bd61(-_0x1f64ab._0x201017,-_0x1f64ab._0x151b10,-_0x1f64ab._0x1f1c27,-_0x1f64ab._0x29dad3))[_0x57bd61(-0x97,-0x75,-_0x1f64ab._0x12659a,-_0x1f64ab._0x3e7c83)](/^https:/,'wss:')});function _0x57bd61(_0x5084a3,_0x40d66a,_0x24c4ea,_0x15dd1f){return _0x242e2c(_0x24c4ea- -0xfc,_0x15dd1f,_0x24c4ea-0x16e,_0x15dd1f-0xc4);}const _0x2059b1=()=>{const _0x407672={_0x571098:0x46,_0x16793e:0x19d},_0x15eb59={_0x48339b:0x18b};function _0x495901(_0x13941c,_0x219bd4,_0x445d63,_0x99965){return _0x141a04(_0x99965- -0x66,_0x219bd4-_0x15eb59._0x48339b,_0x445d63-0x1a3,_0x219bd4);}function _0xda1e6c(_0x4adf3e,_0x3aef66,_0x256583,_0x118113){return _0x141a04(_0x256583- -0x25e,_0x3aef66-_0x407672._0x571098,_0x256583-_0x407672._0x16793e,_0x4adf3e);}_0x4fac4b[_0xda1e6c(0x2d2,0x18e,0x24b,_0x3d2e6f._0x18422f)]===_0x2d0c21&&(_0x4fac4b[_0xda1e6c(0x297,0x221,_0x3d2e6f._0x511bfa,_0x3d2e6f._0xf77c10)]=void 0x0,_0x4fac4b[_0x495901(_0x3d2e6f._0x1d7287,_0x3d2e6f._0x141707,0x306,0x36f)]=void 0x0);};_0x2d0c21[_0x141a04(0x484,_0x1f64ab._0x294ab1,_0x1f64ab._0x69d87b,_0x1f64ab._0x8d1118)](_0x141a04(_0x1f64ab._0x4b42cb,_0x1f64ab._0xdaaa23,0x4c2,_0x1f64ab._0x3fdd5c),_0x2059b1);try{return throwIfAborted(_0x24ad53),_0x2d0c21[_0x57bd61(-0xae,-_0x1f64ab._0x5e11e4,-0x116,-0x133)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x2d0c21,_0x24ad53),throwIfAborted(_0x24ad53),_0x4fac4b[_0x141a04(_0x1f64ab._0x2c6ae0,0x56b,0x3fe,0x511)]=_0x2d0c21,_0x2d0c21;}catch(_0x472584){_0x2059b1();_0x2d0c21['readyState']===WebSocket[_0x141a04(_0x1f64ab._0x2ea13c,0x457,0x3d7,0x3dc)]&&_0x2d0c21[_0x141a04(_0x1f64ab._0x4b42cb,0x4eb,0x464,0x485)](0x3e8,_0x57bd61(-_0x1f64ab._0x5000b5,-_0x1f64ab._0x365f3e,-_0x1f64ab._0x38df08,-0x87));throw _0x472584;}})());try{return await _0x4fac4b[_0x242e2c(0x63,-0xd,-_0x1ccb6e._0x56bae5,0x26)];}finally{_0x4fac4b[_0x585538(_0x1ccb6e._0x2cd15f,0x142,_0x1ccb6e._0x1fc141,0xba)]=void 0x0;}}async*[_0x55f0a4(-0x245,-0x1c1,-0x1b7,-0x19d)](_0x18bb23,_0x50dea4){const _0x298680={_0x503c0d:0x19c,_0x135694:0x1e4,_0x2726eb:0x1ca,_0x368c0b:0x3bd,_0x2f46c2:0x45e,_0x320124:0x45a,_0xfe934:0x50c,_0x10db4c:0x45f,_0x2b090f:0x4f5,_0x5a7759:0x28a,_0xb40756:0x1c4,_0x41e156:0x1c3,_0x5b25a4:0x304,_0x131b63:0x1be,_0xd34df1:0x1ee,_0x2e9e32:0x181,_0xc919f1:0x3aa,_0x292cfe:0x3d4,_0x252679:0x1f8,_0x39ca62:0x3ae,_0xd0f26d:0x41e,_0x827842:0x26c,_0x22d5e5:0x30d,_0x46e34d:0x473,_0x270ca6:0x168,_0x59fe54:0x207,_0x51d1f4:0x3f9},_0x51a8fc={_0xcf0d3e:0x1a5,_0x10d32c:0x42,_0x527729:0x67c},_0x2e485a=this[_0x4d2dd5(-0x224,-_0x298680._0x503c0d,-_0x298680._0x135694,-_0x298680._0x2726eb)](_0x18bb23);function _0x4d2dd5(_0x194c6e,_0x1adf72,_0x6dbc7e,_0x10fadb){return _0x55f0a4(_0x194c6e-0x17c,_0x1adf72-0x1ac,_0x194c6e,_0x10fadb-0x34);}const _0x19524b=this[_0x5f5569(_0x298680._0x368c0b,_0x298680._0x2f46c2,0x396,0x46f)](_0x2e485a[_0x5f5569(_0x298680._0x320124,_0x298680._0xfe934,_0x298680._0x10db4c,_0x298680._0x2b090f)][_0x4d2dd5(-_0x298680._0x5a7759,-0x178,-_0x298680._0xb40756,-0x1ea)]),_0x5901d9=await this[_0x4d2dd5(-0x230,-0x1de,-0x258,-_0x298680._0x41e156)](_0x19524b);function _0x5f5569(_0x22cec2,_0x3bf37d,_0x202799,_0x16df87){return _0x55f0a4(_0x22cec2-_0x51a8fc._0xcf0d3e,_0x3bf37d-_0x51a8fc._0x10d32c,_0x202799,_0x22cec2-_0x51a8fc._0x527729);}try{const _0x19a1b1=this['buildResponsesSocketEvent'](_0x2e485a,_0x19524b);try{yield*this[_0x4d2dd5(-0x1aa,-_0x298680._0x5b25a4,-0x1de,-0x24d)](_0x2e485a[_0x4d2dd5(-0x272,-0x1fe,-_0x298680._0x131b63,-_0x298680._0xd34df1)]['sessionId'],_0x19524b,_0x2e485a,_0x19a1b1[_0x4d2dd5(-0x194,-_0x298680._0x2e9e32,-0x1b0,-0x223)],_0x50dea4?.[_0x5f5569(_0x298680._0xc919f1,0x465,0x464,_0x298680._0x292cfe)]);return;}catch(_0x26de17){if(!_0x19a1b1['previousResponseId']||!this[_0x4d2dd5(-0x12a,-0x202,-_0x298680._0x252679,-0x185)](_0x26de17)){this[_0x5f5569(_0x298680._0x39ca62,_0x298680._0xd0f26d,0x336,0x30b)](_0x19524b);throw _0x26de17;}}this[_0x4d2dd5(-0x34f,-_0x298680._0x827842,-0x2b0,-0x29a)](_0x19524b);const _0x3606b2=this[_0x5f5569(0x3c2,_0x298680._0x22d5e5,0x418,_0x298680._0x46e34d)](_0x2e485a,_0x19524b,{'forceFullReplay':!![]});yield*this[_0x4d2dd5(-0x2c5,-0x287,-0x18f,-0x24d)](_0x2e485a[_0x4d2dd5(-0x1e0,-_0x298680._0x270ca6,-_0x298680._0x59fe54,-_0x298680._0xd34df1)][_0x5f5569(_0x298680._0x2f46c2,_0x298680._0x51d1f4,0x43c,0x461)],_0x19524b,_0x2e485a,_0x3606b2[_0x4d2dd5(-0x2c2,-0x19c,-0x1a7,-0x223)],_0x50dea4?.['signal']);}finally{_0x5901d9();}}async*['streamViaResponsesSocketAttempt'](_0x2da20e,_0x3732c2,_0x5ca903,_0xc729db,_0x1a7502){const _0x30105d={_0x1b45a7:0x2d1,_0x1e1f80:0x262,_0x3476c3:0x28e,_0x456a58:0x242,_0x3c472e:0x385,_0x3f8b38:0x315,_0xf0f1fb:0x223,_0x10ead2:0x1e0,_0x3d3444:0x1c0,_0x100399:0x209,_0x2e4c84:0x27e,_0x23dc70:0x340,_0x42b4d5:0x27e,_0x2349ea:0x32b,_0x49f354:0x2d5,_0x46526b:0x35c,_0x2e45a4:0x1f8,_0x3effa5:0x3b5,_0x5b889a:0x390,_0x9af28c:0x209},_0x26a1ec={_0x31bbe1:0xf1},_0x1db65b=await this[_0x17c4f0(-0x2ec,-_0x30105d._0x1b45a7,-0x240,-_0x30105d._0x1e1f80)](_0x5ca903,_0x1a7502),_0x14d33c=await this[_0x46e69b(_0x30105d._0x3476c3,0x264,0x2f2,_0x30105d._0x456a58)](_0x2da20e,_0x3732c2,_0x1db65b,_0xc729db,_0x1a7502),_0xd255c8=createOpenAiResponsesStreamParser(_0x5ca903);throwIfAborted(_0x1a7502),_0x14d33c[_0x46e69b(0x3a4,_0x30105d._0x3c472e,0x3ba,_0x30105d._0x3f8b38)](JSON[_0x46e69b(0x171,_0x30105d._0xf0f1fb,_0x30105d._0x10ead2,_0x30105d._0x3d3444)](_0xc729db));function _0x17c4f0(_0x5993cd,_0x66521b,_0x4e2714,_0xd01e0d){return _0x2e041c(_0x5993cd-0x6a,_0x66521b-_0x26a1ec._0x31bbe1,_0x5993cd- -0x1c9,_0x4e2714);}for await(const _0x31debd of iterateWebSocketMessages(_0x14d33c,_0x1a7502)){const _0x5f0665=_0xd255c8[_0x17c4f0(-_0x30105d._0x100399,-0x283,-0x177,-0x218)]?.(_0x31debd)??[];yield*_0x5f0665;if(_0xd255c8[_0x17c4f0(-_0x30105d._0x2e4c84,-_0x30105d._0x23dc70,-0x30b,-0x2e3)]?.())break;}if(!_0xd255c8[_0x17c4f0(-_0x30105d._0x42b4d5,-0x305,-_0x30105d._0x2349ea,-0x233)]?.())throw new Error(_0x17c4f0(-0x258,-0x2cf,-0x2d6,-_0x30105d._0x49f354));const _0x55aacf=_0xd255c8[_0x46e69b(0x338,_0x30105d._0x46526b,0x3a4,0x30f)](),_0x144ab4=_0x55aacf[_0x46e69b(0x1c2,0x1da,0x294,0x1e4)]?.[_0x17c4f0(-0x230,-0x19c,-_0x30105d._0x2e45a4,-0x18e)]??_0x55aacf['id'];_0x144ab4&&(_0x3732c2[_0x17c4f0(-0x2f7,-0x3b1,-_0x30105d._0x3effa5,-_0x30105d._0x5b889a)]=_0x144ab4);function _0x46e69b(_0x4123a2,_0x387943,_0x8e9c2,_0x21cf21){return _0x2e041c(_0x4123a2-0x168,_0x387943-0x11a,_0x21cf21-0x30a,_0x8e9c2);}yield{'type':_0x46e69b(0x19a,0x1b7,0x204,_0x30105d._0x9af28c),'response':_0x55aacf};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x2e041c(-0xa2,-0x123,-0x150,-0x1ff),_0x2e041c(0x76,-0x7f,-0xd,-0x68),_0x2e041c(-0xef,-0x34,-0x8a,-0x110),'openai-responses-ws'];function isAnthropicSurface(_0x4a13da){const _0x223724={_0x225efb:0x6c,_0x599fa7:0x97,_0x19c2a7:0x15,_0x409c7c:0x32},_0x5c7a04={_0x348968:0xd1};function _0x30dab0(_0x7df7a1,_0x39aca2,_0x5ab55a,_0x3b9c31){return _0x2e041c(_0x7df7a1-_0x5c7a04._0x348968,_0x39aca2-0x12b,_0x5ab55a-0x13b,_0x3b9c31);}return _0x4a13da===_0x30dab0(_0x223724._0x225efb,-_0x223724._0x599fa7,-_0x223724._0x19c2a7,_0x223724._0x409c7c);}function resolveDefaultBaseUrl(_0x293ecd){const _0x3fa59a={_0x19c185:0x493,_0xce1918:0x455,_0x468ac4:0x47b},_0x5cc911={_0x116bd1:0xbe};function _0x53709d(_0x5b0b64,_0x23ff95,_0x4ff94c,_0x70c954){return _0x2e041c(_0x5b0b64-_0x5cc911._0x116bd1,_0x23ff95-0xde,_0x70c954-0x4ec,_0x4ff94c);}return isAnthropicSurface(_0x293ecd)?_0x53709d(_0x3fa59a._0x19c185,_0x3fa59a._0xce1918,_0x3fa59a._0x468ac4,0x3e3):'https://api.openai.com/v1';}var ChatModel=class{[_0x55f0a4(-0x2d5,-0x279,-0x255,-0x2ac)];[_0x2e041c(-0x1c3,-0x15e,-0x11d,-0xff)];[_0x2e041c(-0x15b,-0x93,-0xa9,-0x85)];['anthropicDelegate'];['openAiDelegate'];constructor(_0x45d866={}){const _0x20facb={_0x447502:0x35,_0x48b573:0xf1,_0x77e085:0x16f,_0x283bbd:0x34a,_0x1f6cb5:0x337,_0x4ab3a2:0x3ab,_0x4bfc8f:0x3c1,_0x1aa4a7:0x3a0,_0x26dc40:0x40a,_0x349012:0x4e,_0x4c72b:0x1c,_0x5410bd:0x3ab,_0x3f0971:0x14e,_0x40800e:0x2fb,_0x1bd7b2:0x3af,_0x44e014:0x417,_0x38d214:0x36f,_0xa8c0d:0x3b2,_0x5e987a:0x9,_0x3d047b:0x2fc,_0x280e93:0x27b,_0x3edf0b:0x2bb,_0x19eadf:0x337,_0x478449:0x5f,_0x41eba5:0x66,_0x20a344:0x1a,_0x10f1b0:0x1ac,_0x2f948e:0x98,_0x25f7b0:0x1,_0x7f9f50:0x8f,_0x207a85:0x80,_0x2346f1:0x3c,_0x244bed:0x6b,_0x3cc551:0x17,_0x2c0d99:0xbc,_0x2cfab9:0x109,_0x5c8cce:0x3aa},_0x5bc30f={_0x4e8328:0x141,_0x63f0e4:0x169,_0x3706c9:0x454},_0x4e25af={_0x1cc929:0xf5,_0xf65b9f:0x1b2};function _0x43794b(_0x30e7b9,_0x28d8ca,_0x122dad,_0x35e95a){return _0x2e041c(_0x30e7b9-_0x4e25af._0x1cc929,_0x28d8ca-_0x4e25af._0xf65b9f,_0x30e7b9-0x134,_0x28d8ca);}function _0x5b6894(_0x4d45b4,_0x45194f,_0x3c3b81,_0x195b66){return _0x2e041c(_0x4d45b4-_0x5bc30f._0x4e8328,_0x45194f-_0x5bc30f._0x63f0e4,_0x195b66-_0x5bc30f._0x3706c9,_0x4d45b4);}this[_0x43794b(_0x20facb._0x447502,-0x8a,-0x6,0x97)]=_0x45d866['model']??_0x43794b(0x13d,0xa3,_0x20facb._0x48b573,_0x20facb._0x77e085),this['maxTokens']=_0x45d866[_0x5b6894(_0x20facb._0x283bbd,0x3f5,0x3da,_0x20facb._0x1f6cb5)]??0x4000,this[_0x5b6894(0x348,0x41c,0x32c,_0x20facb._0x4ab3a2)]=_0x45d866['surface']??_0x5b6894(_0x20facb._0x4bfc8f,_0x20facb._0x1aa4a7,_0x20facb._0x26dc40,0x447);const _0x3a9c53=trimTrailingSlashes(_0x45d866[_0x43794b(0xa3,_0x20facb._0x349012,-_0x20facb._0x4c72b,0xdf)]??resolveDefaultBaseUrl(this[_0x5b6894(0x2f9,0x318,0x357,_0x20facb._0x5410bd)]));if(isAnthropicSurface(this['surface'])){this[_0x43794b(_0x20facb._0x3f0971,0x16d,0x1ff,0x14c)]=new AnthropicModel({'apiKey':_0x45d866[_0x5b6894(0x3aa,0x335,_0x20facb._0x40800e,_0x20facb._0x1bd7b2)],'authScheme':_0x45d866[_0x5b6894(0x383,_0x20facb._0x44e014,_0x20facb._0x38d214,_0x20facb._0xa8c0d)],'baseUrl':_0x3a9c53,'fetch':_0x45d866[_0x43794b(-_0x20facb._0x5e987a,-0x60,-0x41,0xa6)],'maxTokens':this[_0x5b6894(_0x20facb._0x3d047b,_0x20facb._0x280e93,_0x20facb._0x3edf0b,_0x20facb._0x19eadf)],'model':this['model'],'reasoning':_0x45d866['reasoning'],'providerSessionResolver':_0x45d866[_0x43794b(_0x20facb._0x478449,0x92,_0x20facb._0x41eba5,_0x20facb._0x20a344)],'requestMutators':_0x45d866[_0x43794b(0x109,0x134,_0x20facb._0x10f1b0,0x69)]});return;}this[_0x43794b(0x15,_0x20facb._0x2f948e,0x9c,_0x20facb._0x25f7b0)]=new OpenAiModel({'apiKey':_0x45d866[_0x43794b(_0x20facb._0x7f9f50,_0x20facb._0x207a85,0x146,_0x20facb._0x2346f1)],'baseUrl':_0x3a9c53,'fetch':_0x45d866['fetch'],'headerResolver':_0x45d866[_0x43794b(0x69,_0x20facb._0x244bed,-0x42,0x59)],'maxTokens':this[_0x43794b(_0x20facb._0x3cc551,_0x20facb._0x2c0d99,0x39,-0x30)],'model':this['model'],'reasoning':_0x45d866['reasoning'],'providerSessionResolver':_0x45d866[_0x43794b(0x5f,0xd6,0x66,0x3a)],'requestMutators':_0x45d866[_0x43794b(_0x20facb._0x2cfab9,0x110,0x178,0x13c)],'webSocketFactory':_0x45d866[_0x5b6894(_0x20facb._0x5c8cce,0x302,0x448,0x3b9)]});}[_0x2e041c(-0x19b,-0x179,-0x142,-0x169)](){const _0x1df945={_0x2379fa:0x223,_0x364817:0x1fd,_0x424a3e:0x259,_0xb748e:0x4a1,_0x15d5ec:0x4ab,_0x2a18a6:0x465},_0x3e27cf={_0x129ab7:0x102},_0x38cdcf={_0x1fb631:0x56,_0x11e7d1:0x554};function _0x58fb03(_0x47e9b8,_0x191c8a,_0x23d2e6,_0x482c1d){return _0x2e041c(_0x47e9b8-0x38,_0x191c8a-_0x38cdcf._0x1fb631,_0x191c8a-_0x38cdcf._0x11e7d1,_0x47e9b8);}if(!this[_0xcac8ae(_0x1df945._0x2379fa,_0x1df945._0x364817,_0x1df945._0x424a3e,0x1cb)])throw new Error('Anthropic\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x58fb03(_0x1df945._0xb748e,_0x1df945._0x15d5ec,_0x1df945._0x2a18a6,0x4a4)]);function _0xcac8ae(_0x2b30a4,_0x56e7db,_0x46e01d,_0x31135f){return _0x55f0a4(_0x2b30a4-0x156,_0x56e7db-_0x3e27cf._0x129ab7,_0x46e01d,_0x31135f-0x35e);}return this[_0xcac8ae(0x1ab,0x18d,0x263,0x1cb)];}['getOpenAiDelegate'](){const _0x2d637c={_0x114a54:0x456,_0x295cf5:0x482,_0x37f52c:0x437,_0x522c0a:0x1e2,_0x4809af:0x149},_0x4e949a={_0x2a6638:0x37,_0x390e29:0x136},_0x1846af={_0x5b440d:0xc4};function _0x514cca(_0x5b9acc,_0x9daa9d,_0x2413e4,_0x56d53d){return _0x55f0a4(_0x5b9acc-_0x1846af._0x5b440d,_0x9daa9d-0x3f,_0x2413e4,_0x5b9acc-0x74);}if(!this['openAiDelegate'])throw new Error(_0x5bd93b(_0x2d637c._0x114a54,_0x2d637c._0x295cf5,0x44a,_0x2d637c._0x37f52c)+this[_0x514cca(-_0x2d637c._0x522c0a,-0x26b,-0x15a,-_0x2d637c._0x4809af)]);function _0x5bd93b(_0x35496d,_0x10c712,_0x3e56f9,_0x1a53d1){return _0x2e041c(_0x35496d-_0x4e949a._0x2a6638,_0x10c712-_0x4e949a._0x390e29,_0x10c712-0x4a4,_0x3e56f9);}return this['openAiDelegate'];}['complete'](_0x546a45,_0x59f04d){const _0x3b908f={_0x55989b:0x1c6,_0x358303:0x180,_0x5183e7:0x195,_0x3a7b3b:0xe6,_0x89bc37:0x1fe,_0x214ce9:0x23c,_0x40be37:0x2fa,_0x309051:0x294,_0x1c29f8:0x221,_0x482713:0x216,_0x47e7fb:0x1a9,_0x120633:0x186,_0x760f98:0x339,_0x189910:0x3ef,_0x22d5ce:0x13f,_0x24cc0a:0x1ba,_0x59533b:0x115,_0x275943:0x81},_0x28e1a9={_0x1445df:0x1e5,_0x327458:0xec};function _0x32a1cf(_0x3291f8,_0x4dd38a,_0x1a39e9,_0x50429f){return _0x2e041c(_0x3291f8-_0x28e1a9._0x1445df,_0x4dd38a-0x1d2,_0x1a39e9- -_0x28e1a9._0x327458,_0x4dd38a);}function _0x315ab6(_0x510b1c,_0x5f5a66,_0x5c3bb5,_0x479f2e){return _0x55f0a4(_0x510b1c-0x17e,_0x5f5a66-0xcb,_0x479f2e,_0x5f5a66-0x583);}switch(this[_0x32a1cf(-_0x3b908f._0x55989b,-_0x3b908f._0x358303,-_0x3b908f._0x5183e7,-_0x3b908f._0x3a7b3b)]){case _0x32a1cf(-_0x3b908f._0x89bc37,-0x1b9,-_0x3b908f._0x214ce9,-0x293):return this[_0x315ab6(_0x3b908f._0x40be37,_0x3b908f._0x309051,_0x3b908f._0x1c29f8,_0x3b908f._0x482713)]()[_0x32a1cf(-0x269,-0x150,-_0x3b908f._0x47e7fb,-_0x3b908f._0x120633)](_0x546a45,_0x59f04d);case _0x315ab6(_0x3b908f._0x760f98,0x34c,0x399,_0x3b908f._0x189910):return this[_0x32a1cf(-0x1e4,-0xe1,-_0x3b908f._0x22d5ce,-0xbe)]()['response'](_0x546a45,_0x59f04d);case'openai-responses-ws':return this['getOpenAiDelegate']()[_0x32a1cf(-0xf4,-_0x3b908f._0x24cc0a,-_0x3b908f._0x59533b,-_0x3b908f._0x275943)](_0x546a45,_0x59f04d);default:return this['getOpenAiDelegate']()['chatComplete'](_0x546a45,_0x59f04d);}}['stream'](_0x4a7b91,_0x35796f){const _0x5c0e63={_0x1c5c15:0x2ca,_0x20b4d2:0x354,_0x3cf187:0x2a1,_0x2ff0bc:0x12a,_0x579f1f:0xdd,_0x45932e:0x1e0,_0x11e916:0x208,_0x3ba1f2:0x76,_0x58fbff:0x51,_0x40cbd0:0xa,_0x5659b1:0x171,_0x53338b:0x2dc,_0x3b9802:0x238,_0x525e2d:0x221,_0x37d273:0xc5,_0x2d3a54:0xa7,_0x16d15c:0x4f,_0x15e0e0:0x21,_0x1cf3a0:0x103,_0xae092d:0x79,_0x13d955:0x59,_0x22f07f:0x49},_0x13b32b={_0x50834f:0x13,_0x3d7f56:0x21},_0x499774={_0x2d6d31:0xc8};function _0x4f9521(_0xdb481e,_0x333ab2,_0x1cc3dc,_0x1ee55c){return _0x55f0a4(_0xdb481e-0xc7,_0x333ab2-_0x499774._0x2d6d31,_0xdb481e,_0x1cc3dc-0x276);}function _0x5202ed(_0x3c3ec8,_0x5cb24b,_0x5065b8,_0x47fa19){return _0x2e041c(_0x3c3ec8-_0x13b32b._0x50834f,_0x5cb24b-_0x13b32b._0x3d7f56,_0x47fa19-0x34a,_0x5cb24b);}switch(this[_0x5202ed(_0x5c0e63._0x1c5c15,0x203,_0x5c0e63._0x20b4d2,_0x5c0e63._0x3cf187)]){case _0x4f9521(-_0x5c0e63._0x2ff0bc,-0x13b,-0x87,-_0x5c0e63._0x579f1f):return this[_0x5202ed(_0x5c0e63._0x45932e,0x240,_0x5c0e63._0x45932e,_0x5c0e63._0x11e916)]()['stream'](_0x4a7b91,_0x35796f);case'openai-responses':return this[_0x4f9521(0x91,0xed,_0x5c0e63._0x3ba1f2,_0x5c0e63._0x58fbff)]()[_0x4f9521(_0x5c0e63._0x40cbd0,_0x5c0e63._0x5659b1,0xb2,0x129)](_0x4a7b91,_0x35796f);case _0x5202ed(_0x5c0e63._0x53338b,_0x5c0e63._0x3b9802,0x270,_0x5c0e63._0x525e2d):return this[_0x4f9521(-0x2f,_0x5c0e63._0x37d273,0x76,0x65)]()[_0x4f9521(-_0x5c0e63._0x2d3a54,_0x5c0e63._0x16d15c,-0x34,-_0x5c0e63._0x15e0e0)](_0x4a7b91,_0x35796f);default:return this['getOpenAiDelegate']()[_0x4f9521(-_0x5c0e63._0x1cf3a0,-_0x5c0e63._0xae092d,-_0x5c0e63._0x13d955,-_0x5c0e63._0x22f07f)](_0x4a7b91,_0x35796f);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x2e041c(-0x25,-0xd3,-0xd0,-0x4a)];[_0x2e041c(-0x93,-0x135,-0x91,0x1d)];[_0x2e041c(0x98,0x9f,0x11,-0x15)];[_0x2e041c(-0x14a,-0xb5,-0xe1,-0x45)];[_0x2e041c(-0xb7,0x68,-0x4d,0x63)];constructor(_0x5f1a1d){const _0x561b92={_0x5f5a35:0x10f,_0xa3ce43:0x10d,_0x567ae2:0x1ca,_0x5963c9:0x15e,_0x49ff17:0x163,_0x4d4da8:0x1f2,_0x308224:0x213,_0x3e859d:0x1f0,_0x52e25e:0x1c1,_0xb53a8f:0x26,_0x2aab6e:0xa2,_0x4f6c53:0x1d4,_0x69d63b:0x150,_0x271fbb:0x10b,_0x2d4245:0xfe,_0x1172aa:0x12d,_0x54cdf4:0x192,_0x301fc3:0x20b},_0x15f67c={_0x3fca35:0x83,_0x4c50c4:0x1df},_0x9309dc={_0x210075:0x3ef};this[_0x31e22d(0xdc,0xa2,_0x561b92._0x5f5a35,_0x561b92._0xa3ce43)]=_0x5f1a1d['accessToken'],this[_0x56d49a(_0x561b92._0x567ae2,0x15c,_0x561b92._0x5963c9,0x1b1)]=trimTrailingSlashes2(_0x5f1a1d[_0x31e22d(0x177,_0x561b92._0x49ff17,0x14e,_0x561b92._0x4d4da8)]),this[_0x31e22d(_0x561b92._0x308224,0x18e,_0x561b92._0x3e859d,_0x561b92._0x52e25e)]=_0x5f1a1d[_0x31e22d(-0x11,_0x561b92._0xb53a8f,_0x561b92._0x2aab6e,0xfd)],this[_0x56d49a(_0x561b92._0x4f6c53,0x16d,_0x561b92._0x69d63b,0x161)]=trimTrailingSlashes2(_0x5f1a1d[_0x31e22d(0xc3,_0x561b92._0x271fbb,_0x561b92._0x2d4245,0x14e)]);function _0x56d49a(_0x29839c,_0x49a5f3,_0x1ae4e9,_0x2f80a2){return _0x55f0a4(_0x29839c-0xe5,_0x49a5f3-0x8,_0x29839c,_0x2f80a2-_0x9309dc._0x210075);}function _0x31e22d(_0xe35b25,_0x17391c,_0x1d4661,_0x4d9d3b){return _0x2e041c(_0xe35b25-0x1b1,_0x17391c-_0x15f67c._0x3fca35,_0x1d4661-_0x15f67c._0x4c50c4,_0x4d9d3b);}this['tokenExchangeApiVersion']=_0x5f1a1d[_0x31e22d(_0x561b92._0x1172aa,0xef,_0x561b92._0x54cdf4,_0x561b92._0x301fc3)];}async[_0x55f0a4(-0x2d3,-0x2f1,-0x392,-0x2f8)](_0x45f79f){const _0x5c7584={_0x1f814b:0x59a,_0x11c66b:0x4ff,_0x5443fa:0x502,_0x27b3af:0x52d,_0x531481:0x4ab,_0x2fdc2d:0x4c9,_0x2609b7:0x532,_0x59fbbd:0x580,_0xbd347d:0x53c,_0x4e1e8d:0x3b6,_0x2d6ea8:0x476,_0x1ddd3a:0x505,_0x5bf6cf:0x4fb,_0x4fbeba:0x36b,_0xa65fc0:0x2ba,_0x4f0f87:0x5a8,_0x3a5dab:0x4ed,_0x182441:0x375,_0xebc6f9:0x32b,_0x1073d7:0x419,_0x24d473:0x39a,_0x5bb5d:0x2da,_0x221794:0x435,_0x633b9c:0x4cd,_0x15082d:0x482,_0x4f2595:0x395,_0x56ea0b:0x45b,_0x4e387a:0x452,_0x139d46:0x462,_0x3599f6:0x3cd,_0x45ddea:0x40e,_0x31fca7:0x32b,_0x28dc89:0x272,_0x1d58cd:0x2d2,_0x1ef24a:0x4f8,_0x2eadf4:0x4b3,_0x3e7b71:0x2f8,_0xcb31d0:0x37b,_0x3d7759:0x23c,_0x4f7f04:0x465,_0xd3d885:0x50b,_0xda0a:0x3cd,_0x47714b:0x3fc},_0x36f77b={_0x5e1097:0x89,_0x389689:0xd7,_0x2a0239:0x736},_0x4f5ad0={_0x2f3ac8:0x1df,_0x1da934:0x42b};function _0x5aed76(_0x272cc0,_0x532a19,_0x563deb,_0xf18fc4){return _0x2e041c(_0x272cc0-_0x4f5ad0._0x2f3ac8,_0x532a19-0x163,_0x272cc0-_0x4f5ad0._0x1da934,_0x563deb);}const _0x5882ed=await this[_0x3d1c8b(_0x5c7584._0x1f814b,_0x5c7584._0x11c66b,0x5d8,_0x5c7584._0x5443fa)](this[_0x3d1c8b(0x4a8,0x4a7,0x4a3,_0x5c7584._0x27b3af)]+_0x3d1c8b(_0x5c7584._0x531481,_0x5c7584._0x2fdc2d,0x56d,0x4db),{'method':_0x3d1c8b(_0x5c7584._0x2609b7,_0x5c7584._0x59fbbd,_0x5c7584._0xbd347d,0x532),'headers':new Headers({'accept':_0x5aed76(0x3bd,_0x5c7584._0x4e1e8d,_0x5c7584._0x2d6ea8,0x368),'authorization':_0x3d1c8b(_0x5c7584._0x1ddd3a,0x59e,0x509,_0x5c7584._0x5bf6cf)+this[_0x5aed76(0x35b,0x310,_0x5c7584._0x4fbeba,0x379)],'editor-version':_0x5aed76(0x31d,0x39e,0x33b,_0x5c7584._0xa65fc0),'user-agent':_0x3d1c8b(_0x5c7584._0x4f0f87,_0x5c7584._0x3a5dab,0x5e5,0x60e),'x-github-api-version':this[_0x5aed76(0x3de,_0x5c7584._0x182441,_0x5c7584._0xebc6f9,_0x5c7584._0x1073d7)]}),'signal':_0x45f79f});if(!_0x5882ed['ok'])return{'credential':{'kind':'oauth-token','value':this['accessToken']},'endpoints':{'api':this[_0x5aed76(_0x5c7584._0x24d473,_0x5c7584._0x5bb5d,0x3a0,0x427)]}};function _0x3d1c8b(_0x986ae9,_0x4d6329,_0x47b2cd,_0x4378b2){return _0x55f0a4(_0x986ae9-_0x36f77b._0x5e1097,_0x4d6329-_0x36f77b._0x389689,_0x47b2cd,_0x986ae9-_0x36f77b._0x2a0239);}const _0x51ec13=await _0x5882ed[_0x3d1c8b(0x49d,_0x5c7584._0x221794,0x4df,_0x5c7584._0x633b9c)]();return{'credential':{'kind':_0x5aed76(0x447,_0x5c7584._0x15082d,_0x5c7584._0x4f2595,_0x5c7584._0x56ea0b),'value':_0x51ec13[_0x5aed76(_0x5c7584._0x4e387a,0x3e9,_0x5c7584._0x139d46,0x47b)]??this['accessToken']},'endpoints':{'api':_0x51ec13[_0x5aed76(_0x5c7584._0x3599f6,0x3c2,_0x5c7584._0x45ddea,0x3b7)]?.[_0x5aed76(_0x5c7584._0x31fca7,_0x5c7584._0x28dc89,0x302,_0x5c7584._0x1d58cd)]??this[_0x3d1c8b(_0x5c7584._0x1ef24a,0x44b,_0x5c7584._0x2eadf4,0x502)],'originTracker':_0x51ec13['endpoints']?.[_0x5aed76(_0x5c7584._0x3e7b71,_0x5c7584._0xcb31d0,0x241,_0x5c7584._0x3d7759)],'proxy':_0x51ec13[_0x3d1c8b(0x52b,0x5ab,0x489,0x5ae)]?.[_0x3d1c8b(_0x5c7584._0x4f7f04,0x3f3,0x3c8,_0x5c7584._0xd3d885)],'telemetry':_0x51ec13[_0x5aed76(_0x5c7584._0xda0a,_0x5c7584._0x47714b,0x40f,0x44a)]?.['telemetry']}};}};function trimTrailingSlashes2(_0x4ad303){return _0x4ad303['replace'](/\/+$/,'');}function createModelInfo(_0x56e9d4){const _0x219378={_0x6c5729:0x459,_0x1ff764:0xdb,_0x393908:0x6d,_0x207af5:0x16b,_0x42c38d:0x12b,_0x5a9845:0x463,_0x252256:0x503,_0x29e470:0x5a0,_0xba7bdb:0x526,_0x24ec41:0x400,_0x21e4ca:0x3ec,_0x5ee488:0x448,_0xd8b330:0x396,_0x358c99:0x486,_0x6e9bc1:0x49d},_0x3742b3={_0x36324d:0xca,_0x5cb1a3:0xe2};function _0x2d8358(_0x118ffe,_0x474141,_0x39486a,_0x514510){return _0x2e041c(_0x118ffe-0x17c,_0x474141-0xea,_0x474141-0x53e,_0x39486a);}const _0x3baea1=_0x56e9d4[_0x2d8358(0x463,0x490,_0x219378._0x6c5729,0x519)]??_0x56e9d4[_0x17c99a(-_0x219378._0x1ff764,-_0x219378._0x393908,-_0x219378._0x207af5,-_0x219378._0x42c38d)];function _0x17c99a(_0x475a4b,_0x4e49c2,_0x22b534,_0x369842){return _0x55f0a4(_0x475a4b-_0x3742b3._0x36324d,_0x4e49c2-_0x3742b3._0x5cb1a3,_0x4e49c2,_0x475a4b-0xef);}const _0x15b441=_0x56e9d4[_0x2d8358(0x3b4,_0x219378._0x5a9845,0x42b,_0x219378._0x252256)]?.['limits']?.[_0x2d8358(_0x219378._0x29e470,_0x219378._0xba7bdb,0x583,0x4bd)],_0x1e540c=_0x56e9d4[_0x2d8358(0x495,0x463,_0x219378._0x24ec41,0x3d1)]?.[_0x2d8358(_0x219378._0x21e4ca,_0x219378._0x5ee488,_0x219378._0xd8b330,0x509)]?.[_0x2d8358(0x515,_0x219378._0x358c99,0x514,_0x219378._0x6e9bc1)],_0x595cef=_0x15b441!==void 0x0||_0x1e540c!==void 0x0?{..._0x15b441!==void 0x0?{'contextWindow':_0x15b441}:{},..._0x1e540c!==void 0x0?{'maxOutput':_0x1e540c}:{}}:void 0x0;return{'id':_0x56e9d4['id'],'name':_0x56e9d4['name']??_0x56e9d4['id'],..._0x595cef?{'limits':_0x595cef}:{},..._0x3baea1?{'supportedEndpoints':_0x3baea1}:{}};}function deduplicateModels(_0x40f69a){const _0x438b97={_0x4b7012:0x288,_0xc4dfa0:0x2c9,_0x2ec079:0x301,_0x3a0d72:0x204,_0x357b46:0x36b,_0x2e6c23:0x2a1},_0x25c522={_0x215015:0xb5,_0x49cdfa:0xf2,_0x4b5f23:0x355},_0x209d45={_0x4568a6:0xb9};function _0x6df925(_0x49002c,_0x5e3ec2,_0x12785a,_0x178611){return _0x2e041c(_0x49002c-0x167,_0x5e3ec2-_0x209d45._0x4568a6,_0x178611- -0x18d,_0x5e3ec2);}const _0x983f3f=new Map();function _0x714e4f(_0xffcbe7,_0xdca873,_0x5285b9,_0x4fdd3e){return _0x2e041c(_0xffcbe7-_0x25c522._0x215015,_0xdca873-_0x25c522._0x49cdfa,_0x4fdd3e-_0x25c522._0x4b5f23,_0xdca873);}for(const _0x360136 of _0x40f69a){!_0x983f3f[_0x714e4f(_0x438b97._0x4b7012,0x367,0x355,_0x438b97._0xc4dfa0)](_0x360136['id'])&&_0x983f3f[_0x714e4f(0x26f,0x3c4,0x330,0x320)](_0x360136['id'],_0x360136);}return Array[_0x6df925(-_0x438b97._0x2ec079,-0x27e,-0x266,-0x2db)](_0x983f3f[_0x714e4f(_0x438b97._0x3a0d72,_0x438b97._0x357b46,_0x438b97._0x2e6c23,0x2c5)]());}function _0x3920(_0x390f00,_0x47763d){_0x390f00=_0x390f00-0x7d;const _0xb3ca3d=_0xb3ca();let _0x392005=_0xb3ca3d[_0x390f00];if(_0x3920['RAARJp']===undefined){var _0x3b698e=function(_0xff2b0b){const _0x152159='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4a0030='',_0x187dc8='';for(let _0x28f6fa=0x0,_0xc631e2,_0x61bc8d,_0x27595e=0x0;_0x61bc8d=_0xff2b0b['charAt'](_0x27595e++);~_0x61bc8d&&(_0xc631e2=_0x28f6fa%0x4?_0xc631e2*0x40+_0x61bc8d:_0x61bc8d,_0x28f6fa++%0x4)?_0x4a0030+=String['fromCharCode'](0xff&_0xc631e2>>(-0x2*_0x28f6fa&0x6)):0x0){_0x61bc8d=_0x152159['indexOf'](_0x61bc8d);}for(let _0x1a51ed=0x0,_0x18f512=_0x4a0030['length'];_0x1a51ed<_0x18f512;_0x1a51ed++){_0x187dc8+='%'+('00'+_0x4a0030['charCodeAt'](_0x1a51ed)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x187dc8);};_0x3920['RPauKz']=_0x3b698e,_0x3920['PBfgmm']={},_0x3920['RAARJp']=!![];}const _0x1dab79=_0xb3ca3d[0x0],_0x385ee8=_0x390f00+_0x1dab79,_0x30e923=_0x3920['PBfgmm'][_0x385ee8];return!_0x30e923?(_0x392005=_0x3920['RPauKz'](_0x392005),_0x3920['PBfgmm'][_0x385ee8]=_0x392005):_0x392005=_0x30e923,_0x392005;}function hasUserPromptContent(_0x5c0870){const _0x143c18={_0x6ae552:0x475,_0x50ab99:0x41f,_0x485749:0x4b9,_0x4ed1d5:0x2f9,_0x318219:0x328},_0x191797={_0x21ba9f:0x24d,_0x255d3a:0x190,_0x5db7d:0x16f,_0x1192e2:0x14e,_0x5c9910:0x1f6,_0x3892ec:0xd,_0xc9d260:0x77,_0x4f047d:0x35,_0x514072:0x11f,_0x2b27c7:0x1bd,_0x55ed41:0x132,_0x610a9e:0x72,_0x2c3e70:0x1c1,_0x2896c4:0x132,_0x10a45c:0x186,_0x217f0b:0x97,_0x177b20:0x60,_0xa33b2c:0x9f,_0x51b130:0x155,_0x5a55c8:0x162},_0x16978f={_0x4dd03d:0x28,_0x1a5d5b:0x54},_0xd3fc96={_0x63c6ae:0x171},_0x3ad96a={_0x29b250:0xa9},_0x30b451={_0x37f713:0x487};function _0x39d174(_0x3fa740,_0x1b73e5,_0x15987d,_0x3bde19){return _0x2e041c(_0x3fa740-0xf7,_0x1b73e5-0x64,_0x3fa740-_0x30b451._0x37f713,_0x15987d);}if(typeof _0x5c0870===_0x39d174(_0x143c18._0x6ae552,0x43e,_0x143c18._0x50ab99,_0x143c18._0x485749))return _0x5c0870[_0x39d174(0x35b,0x3b6,_0x143c18._0x4ed1d5,_0x143c18._0x318219)]()['length']>0x0;function _0x25cdd2(_0x3c0740,_0x5816b9,_0x4df77e,_0x556626){return _0x2e041c(_0x3c0740-0xac,_0x5816b9-_0x3ad96a._0x29b250,_0x5816b9-0x2a,_0x4df77e);}if(!Array['isArray'](_0x5c0870))return![];return _0x5c0870[_0x25cdd2(0xe3,0x37,0xb5,0xf8)](_0x2870f0=>{function _0x15d188(_0x34d1e0,_0x5df779,_0x11fb25,_0x39a18b){return _0x25cdd2(_0x34d1e0-_0xd3fc96._0x63c6ae,_0x5df779-0x11a,_0x11fb25,_0x39a18b-0x51);}if(!_0x2870f0||typeof _0x2870f0!==_0x57e951(-0xce,-_0x191797._0x21ba9f,-_0x191797._0x255d3a,-_0x191797._0x5db7d))return![];const _0x5268df=_0x2870f0;function _0x57e951(_0x5425d2,_0x33e833,_0x9ae777,_0x29e801){return _0x25cdd2(_0x5425d2-_0x16978f._0x4dd03d,_0x9ae777- -0xab,_0x33e833,_0x29e801-_0x16978f._0x1a5d5b);}return(_0x5268df[_0x57e951(-0xd7,-0xfb,-_0x191797._0x1192e2,-_0x191797._0x5c9910)]==='input_text'||_0x5268df[_0x15d188(-_0x191797._0x3892ec,_0x191797._0xc9d260,-_0x191797._0x4f047d,0x7f)]===_0x57e951(-_0x191797._0x514072,-0x9c,-0x132,-0x8b))&&typeof _0x5268df[_0x15d188(0x29,0x93,0x140,0x9b)]===_0x15d188(_0x191797._0x2b27c7,_0x191797._0x55ed41,_0x191797._0x610a9e,0x1c4)&&_0x5268df[_0x57e951(-0xbe,-_0x191797._0x2c3e70,-_0x191797._0x2896c4,-_0x191797._0x10a45c)][_0x15d188(0xc,0x18,-_0x191797._0x217f0b,-_0x191797._0x177b20)]()[_0x15d188(_0x191797._0xa33b2c,0xe1,_0x191797._0x51b130,_0x191797._0x5a55c8)]>0x0;});}function isUserPromptEntry(_0x2d8a93){const _0x5b6807={_0x42b6ba:0x41e,_0x4c02a2:0x382,_0x1a3134:0x407,_0x23ca7e:0x469,_0x1f8649:0x4b1,_0x3f48b1:0x158,_0x444db0:0x18c,_0x1ea3eb:0x118,_0x316ae5:0x18f,_0x398804:0x1a1,_0x331b8b:0x460,_0x11f9d8:0x3f1,_0x15550b:0x115,_0x3ef8d5:0x1bc,_0x65d1a0:0x141},_0x5c1ed7={_0x9cf075:0x7b};function _0x334207(_0x398ff3,_0x3e8ba7,_0x3ab95d,_0x5a8465){return _0x2e041c(_0x398ff3-0xd9,_0x3e8ba7-0xfa,_0x5a8465- -0x23,_0x3ab95d);}if(!_0x2d8a93||typeof _0x2d8a93!==_0x40bbec(0x3a3,0x424,_0x5b6807._0x42b6ba,_0x5b6807._0x4c02a2))return![];const _0x45233e=_0x2d8a93;if(_0x45233e[_0x40bbec(_0x5b6807._0x1a3134,_0x5b6807._0x23ca7e,_0x5b6807._0x1f8649,0x3f3)]!==_0x334207(-0x81,-_0x5b6807._0x3f48b1,-_0x5b6807._0x444db0,-_0x5b6807._0x1ea3eb))return![];function _0x40bbec(_0x40c894,_0x1beda2,_0x46caaf,_0x20b942){return _0x2e041c(_0x40c894-0x38,_0x1beda2-_0x5c1ed7._0x9cf075,_0x46caaf-0x52d,_0x1beda2);}if(_0x45233e[_0x334207(-_0x5b6807._0x316ae5,-_0x5b6807._0x398804,-0x8f,-0xf0)]!==void 0x0&&_0x45233e[_0x40bbec(0x520,0x462,_0x5b6807._0x331b8b,0x515)]!==_0x40bbec(0x44c,_0x5b6807._0x11f9d8,0x487,0x410))return![];return hasUserPromptContent(_0x45233e[_0x334207(-_0x5b6807._0x15550b,-_0x5b6807._0x3ef8d5,-0x82,-_0x5b6807._0x65d1a0)]);}function determineInitiator(_0x128d0d){const _0x12330c={_0x30f32b:0x182,_0x188e7b:0x131,_0x2fad83:0x142,_0x2543a3:0x151,_0x3f9307:0x45,_0x19f115:0xdb,_0x57259a:0xa3,_0x596959:0xdb,_0x2bc850:0xbc,_0x49e002:0xd,_0x2c9011:0x27,_0x164fa9:0xad,_0x267f0b:0x43,_0x2e06be:0x3e,_0x3d0a0c:0x18c,_0x49b159:0x1ee,_0x4df393:0x1de,_0x532248:0x106,_0x5e68fe:0x5f,_0x37dda2:0x119,_0x428b4a:0x85,_0x59c39a:0x11c,_0xda0e84:0x166,_0x482df7:0x11f,_0x4d8180:0x14c},_0x548047={_0x1b9ba5:0x1c,_0x3d754e:0x52},_0x4c469b={_0x28e852:0x22};if(!_0x128d0d||typeof _0x128d0d!==_0x5e968d(-0x1d3,-_0x12330c._0x30f32b,-_0x12330c._0x188e7b,-_0x12330c._0x2fad83))return _0x5e968d(-_0x12330c._0x2543a3,-_0x12330c._0x3f9307,-0xe8,-0xbc);const _0x4f9bed=_0x5e968d(-0x161,-0xa4,-_0x12330c._0x19f115,-_0x12330c._0x57259a)in _0x128d0d?_0x128d0d[_0x5e968d(-0xff,-0x10a,-_0x12330c._0x596959,-_0x12330c._0x2bc850)]:_0x5e968d(0x7f,_0x12330c._0x49e002,-_0x12330c._0x2c9011,-_0x12330c._0x164fa9)in _0x128d0d?_0x128d0d[_0x5e968d(0x91,0xb,-0x27,_0x12330c._0x267f0b)]:void 0x0;if(!Array[_0x5e968d(-_0x12330c._0x2e06be,0x36,0xd,0x13)](_0x4f9bed)||_0x4f9bed[_0x2496f5(_0x12330c._0x3d0a0c,_0x12330c._0x49b159,0x15f,_0x12330c._0x4df393)]===0x0)return _0x5e968d(-0xa8,-_0x12330c._0x532248,-0xe8,-_0x12330c._0x5e68fe);function _0x5e968d(_0x57306d,_0x142302,_0x1220ea,_0x2432fc){return _0x2e041c(_0x57306d-0x95,_0x142302-0xf5,_0x1220ea- -_0x4c469b._0x28e852,_0x2432fc);}function _0x2496f5(_0x11f240,_0xc4b041,_0x479c12,_0x12618f){return _0x2e041c(_0x11f240-_0x548047._0x1b9ba5,_0xc4b041-_0x548047._0x3d754e,_0x12618f-0x241,_0x11f240);}return isUserPromptEntry(_0x4f9bed[_0x4f9bed[_0x5e968d(-_0x12330c._0x37dda2,-0x5c,-_0x12330c._0x428b4a,-_0x12330c._0x59c39a)]-0x1])?_0x2496f5(_0x12330c._0xda0e84,0x1cf,_0x12330c._0x482df7,_0x12330c._0x4d8180):'agent';}function isUnsupportedApiForModel(_0x561367){const _0x4c9dae={_0x325a2c:0xcb,_0x46fec7:0xee,_0x177816:0x152,_0xde7202:0x197},_0x4bd4f5={_0x23d54d:0x196,_0x2e06c4:0xad};function _0x1ce601(_0x420f02,_0x2fc587,_0x32d3a0,_0x4c6b9b){return _0x55f0a4(_0x420f02-0xa1,_0x2fc587-_0x4bd4f5._0x23d54d,_0x420f02,_0x32d3a0-_0x4bd4f5._0x2e06c4);}return _0x561367[_0x1ce601(-_0x4c9dae._0x325a2c,-_0x4c9dae._0x46fec7,-_0x4c9dae._0x177816,-_0x4c9dae._0xde7202)]('unsupported_api_for_model');}function createResponseError(_0xf88351,_0x17f5ca){const _0x5801f2={_0x4baf5c:0x218,_0x778410:0x2e0},_0x40d373={_0x47cb7f:0x5d};if(_0xf88351===0x191||_0xf88351===0x193)return new Error(_0x2450d8(-0x301,-0x264,-0x26c,-_0x5801f2._0x4baf5c));if(_0xf88351===0x198||_0xf88351===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');function _0x2450d8(_0x352c78,_0x2ed4b7,_0x59edfc,_0x38b66e){return _0x55f0a4(_0x352c78-0x129,_0x2ed4b7-0x9a,_0x38b66e,_0x59edfc- -_0x40d373._0x47cb7f);}if(_0xf88351===0x190)return new Error(_0x3cea95(-0x74,-0x9b,-0xe3,-0xd0)+_0x17f5ca);function _0x3cea95(_0x4aa1fb,_0x53ca1c,_0x16c21f,_0x50d0dd){return _0x55f0a4(_0x4aa1fb-0x164,_0x53ca1c-0x6a,_0x16c21f,_0x50d0dd-0x204);}return new Error(_0x17f5ca||_0x2450d8(-0x31f,-0x22a,-_0x5801f2._0x778410,-0x236)+_0xf88351);}var GitHubModel=class extends OpenAiModel{[_0x55f0a4(-0x244,-0x169,-0x1b6,-0x193)];[_0x2e041c(-0xcf,0x50,-0x61,-0xa2)]=new Map();[_0x2e041c(-0x40,-0x1f,-0xa9,-0x87)];constructor(_0x5afc06={}){const _0x245195={_0x245c7e:0x132,_0x14e5fa:0xd7,_0x109c60:0x42,_0x13be76:0x400,_0x479678:0x332,_0x2c8111:0x34a,_0x7f798c:0x105,_0x395b1a:0xe2,_0x8d8f5e:0x3bc,_0x20e9a1:0x3bb,_0x28195b:0x315,_0x54b8da:0x3a6,_0x135a24:0x44a,_0x35f7f7:0x49d,_0x3d62e4:0x43a,_0x1cb99f:0x36e,_0x8394ad:0x466,_0xf9ff62:0x3ba,_0x1a105e:0x3a8,_0xc7ed6c:0x41e,_0x364465:0x3c6,_0x471781:0x6c,_0x130db0:0x76,_0x241f21:0x346,_0x6c781d:0x42a,_0xf095fe:0x388,_0xf2396:0x189,_0x4931cc:0xfb,_0x59447d:0x398,_0x29606a:0x3de,_0x350fa7:0x105,_0x53f127:0xa4,_0x4627fa:0xbf,_0x58725f:0x1,_0x415586:0x167,_0x315fad:0xa7,_0x2bc6ff:0x32d,_0x4e69cc:0x3e2,_0x456120:0x112,_0x38e8a7:0x31,_0x2b506a:0xe0,_0x140de0:0xc0,_0x4f8872:0x4ba},_0x4b4ed0={_0x225b0c:0x199},_0x2f19c1={_0xeec20f:0x1df,_0x2a3cf0:0x315},_0x5020f2=trimTrailingSlashes2(_0x5afc06[_0x3c3320(0x34,0x178,_0x245195._0x245c7e,_0x245195._0x14e5fa)]??_0x3c3320(0xfd,0x166,0xe0,0x17c)),_0x1c2faf=_0x5afc06[_0x3c3320(-0x8b,-0x58,_0x245195._0x109c60,0x2b)]??globalThis[_0x7c66da(_0x245195._0x13be76,0x384,_0x245195._0x479678,_0x245195._0x2c8111)];function _0x3c3320(_0x31796f,_0x5185e6,_0x386dcb,_0x4253fa){return _0x55f0a4(_0x31796f-0x194,_0x5185e6-_0x2f19c1._0xeec20f,_0x31796f,_0x4253fa-_0x2f19c1._0x2a3cf0);}const _0x158353=_0x5afc06[_0x3c3320(_0x245195._0x7f798c,0x100,0x38,0x93)]??(_0x5afc06[_0x3c3320(-0x26,_0x245195._0x395b1a,0xe9,0x98)]?new GitHubAccessTokenResolver({'accessToken':_0x5afc06[_0x7c66da(_0x245195._0x8d8f5e,_0x245195._0x20e9a1,0x45d,0x3b7)],'baseUrl':_0x5020f2,'fetch':_0x1c2faf,'githubApiUrl':_0x5afc06[_0x7c66da(0x410,0x350,_0x245195._0x28195b,_0x245195._0x54b8da)]??'https://api.github.com','tokenExchangeApiVersion':_0x5afc06[_0x7c66da(0x454,_0x245195._0x135a24,_0x245195._0x35f7f7,_0x245195._0x3d62e4)]??_0x7c66da(0x398,0x46b,_0x245195._0x1cb99f,0x418)}):void 0x0);function _0x7c66da(_0xbf573f,_0x318177,_0x32769f,_0x511d0d){return _0x55f0a4(_0xbf573f-_0x4b4ed0._0x225b0c,_0x318177-0x89,_0x318177,_0x511d0d-0x634);}const _0x23e1a0=_0x5afc06[_0x7c66da(0x374,_0x245195._0x8394ad,_0x245195._0xf9ff62,_0x245195._0x1a105e)]??_0x3c3320(0x125,0xe8,0xc9,0x135),_0x2d7476=_0x5afc06[_0x3c3320(0xb5,0x22b,0x17f,0x170)]??_0x7c66da(0x46c,_0x245195._0xc7ed6c,0x455,0x45b),_0x176cb4=({body:_0x6e1102})=>{return{'editor-plugin-version':_0x2d7476,'editor-version':_0x23e1a0,'x-initiator':determineInitiator(_0x6e1102),'x-request-id':randomUUID()};},_0x42a7f0={'apiKey':_0x5afc06[_0x7c66da(0x461,0x46b,_0x245195._0x364465,0x3e2)],'baseUrl':_0x5020f2,'fetch':_0x1c2faf,'maxTokens':_0x5afc06[_0x3c3320(-_0x245195._0x471781,0x48,_0x245195._0x130db0,0x4b)],'model':_0x5afc06[_0x7c66da(_0x245195._0x241f21,_0x245195._0x6c781d,0x313,_0x245195._0xf095fe)],'reasoning':_0x5afc06[_0x3c3320(0x115,0x157,0xec,_0x245195._0xf2396)],'providerSessionResolver':_0x158353,'requestMutators':_0x5afc06[_0x3c3320(0xde,0xe4,_0x245195._0x4931cc,0x13d)],'headerResolver':_0x176cb4};super(_0x42a7f0),this[_0x7c66da(0x3de,_0x245195._0x59447d,0x408,_0x245195._0x29606a)]=_0x5afc06[_0x3c3320(_0x245195._0x350fa7,_0x245195._0x7f798c,_0x245195._0x53f127,_0x245195._0x4627fa)]??_0x3c3320(_0x245195._0x58725f,0x6b,_0x245195._0x415586,_0x245195._0x315fad),this[_0x7c66da(0x4c0,0x506,0x547,0x4a1)]=new AnthropicModel({'apiKey':_0x5afc06[_0x7c66da(0x446,_0x245195._0x2bc6ff,0x3ca,_0x245195._0x4e69cc)],'authScheme':_0x3c3320(_0x245195._0x456120,0xa9,_0x245195._0x38e8a7,_0x245195._0x2b506a),'baseUrl':_0x5020f2,'fetch':_0x1c2faf,'headerResolver':_0x176cb4,'maxTokens':_0x5afc06['maxTokens'],'model':_0x5afc06[_0x3c3320(_0x245195._0x140de0,-0x3e,0xc4,0x69)],'reasoning':_0x5afc06['reasoning'],'providerSessionResolver':_0x158353,'requestMutators':_0x5afc06[_0x7c66da(0x3c8,_0x245195._0x4f8872,0x4f1,0x45c)]});}[_0x55f0a4(-0x356,-0x2b7,-0x261,-0x2b0)](){const _0x2f0032={_0x5f742:0x6d},_0x263c75={_0x511d48:0x155,_0x366eea:0x188};function _0x4ee92b(_0x2e407b,_0x1d4a73,_0x39b19a,_0x333f9c){return _0x2e041c(_0x2e407b-0x130,_0x1d4a73-_0x263c75._0x511d48,_0x1d4a73-_0x263c75._0x366eea,_0x2e407b);}return new Error(_0x4ee92b(0x45,_0x2f0032._0x5f742,0xe1,0x118));}[_0x55f0a4(-0x2b3,-0x31b,-0x307,-0x29a)](_0x2de223){const _0x376a11={_0x42e5f0:0x175,_0x3cd826:0x230,_0x47d7e2:0x1d4,_0x3ccce4:0x100,_0x1a878f:0xe3,_0x4adc72:0xca,_0x33fffc:0x66,_0x3de9ab:0xb7,_0x116343:0x10c,_0xfc854:0x7a},_0x378d9b={_0x13500f:0x56,_0x1b63f3:0x157},_0x2eb186=this[_0x1ca199(0x103,0x1cc,_0x376a11._0x42e5f0,0x217)][_0x1ca199(_0x376a11._0x3cd826,0x1a5,0x1a8,_0x376a11._0x47d7e2)](_0x2de223);if(!_0x2eb186)return![];function _0x1ca199(_0x1f759b,_0xaeb268,_0x79d8a2,_0x3867d9){return _0x55f0a4(_0x1f759b-0x10e,_0xaeb268-0x1bc,_0x3867d9,_0x79d8a2-0x383);}function _0x38f496(_0x93f9ad,_0x48fa2f,_0x51eaa2,_0x23f3cb){return _0x2e041c(_0x93f9ad-0x61,_0x48fa2f-_0x378d9b._0x13500f,_0x51eaa2-_0x378d9b._0x1b63f3,_0x48fa2f);}return!_0x2eb186[_0x38f496(_0x376a11._0x3ccce4,0xda,0x105,_0x376a11._0x1a878f)]('/chat/completions')&&_0x2eb186[_0x1ca199(_0x376a11._0x4adc72,0xff,0x184,0xf7)](_0x1ca199(_0x376a11._0x33fffc,_0x376a11._0x3de9ab,_0x376a11._0x116343,_0x376a11._0xfc854));}['shouldPreferResponsesApi'](_0x2488f2){const _0x522c2c={_0x1962ff:0x446,_0x42d772:0x395,_0x3a8435:0x3a1,_0x49b0b6:0x1c7,_0xd461d:0x37,_0x5b9195:0xb,_0x1aab27:0x415,_0x18d9a3:0x369,_0x280a5e:0x263,_0x3f680a:0x2e2,_0xe051cd:0x23b},_0x23f865={_0xcc516e:0x16},_0x2285fd={_0x2e3c68:0x1c1,_0x487fcc:0x57c},_0x3f60b3=this['modelEndpointCache'][_0x1c45a5(0x41d,_0x522c2c._0x1962ff,_0x522c2c._0x42d772,_0x522c2c._0x3a8435)](_0x2488f2[_0x4e7ab9(-0xcc,-0x83,-_0x522c2c._0x49b0b6,-0x115)]);if(!_0x3f60b3)return![];if(resolveOpenAiReasoningConfig(_0x2488f2[_0x4e7ab9(-0x1f,-_0x522c2c._0xd461d,0x11,_0x522c2c._0x5b9195)]))return _0x3f60b3[_0x1c45a5(0x2eb,_0x522c2c._0x1aab27,0x40e,0x37d)]('/responses');function _0x1c45a5(_0x5e8c33,_0x218980,_0x3a120f,_0x54278d){return _0x55f0a4(_0x5e8c33-0x8d,_0x218980-_0x2285fd._0x2e3c68,_0x218980,_0x54278d-_0x2285fd._0x487fcc);}function _0x4e7ab9(_0x24431,_0xa6d67,_0x292f8d,_0x378f0b){return _0x2e041c(_0x24431-0x4a,_0xa6d67-0x6f,_0x378f0b- -_0x23f865._0xcc516e,_0x24431);}return this[_0x1c45a5(0x31e,_0x522c2c._0x18d9a3,_0x522c2c._0x280a5e,_0x522c2c._0x3f680a)](_0x2488f2[_0x1c45a5(_0x522c2c._0xe051cd,0x371,0x372,0x2d0)]);}[_0x55f0a4(-0x32e,-0x286,-0x1fe,-0x296)](_0x5c12d0){const _0x57c9f8={_0x393bc0:0xa7,_0x8e8c8e:0x10e,_0x4e66ca:0x119},_0x413cf8={_0x29cfba:0xa8,_0x4e48db:0xd4};function _0x187e62(_0x42c8b8,_0x2e29bf,_0x4b7d6f,_0x4019b8){return _0x55f0a4(_0x42c8b8-_0x413cf8._0x29cfba,_0x2e29bf-0x13b,_0x4019b8,_0x4b7d6f-_0x413cf8._0x4e48db);}this['modelEndpointCache'][_0x187e62(-0x89,-_0x57c9f8._0x393bc0,-_0x57c9f8._0x8e8c8e,-_0x57c9f8._0x4e66ca)](_0x5c12d0,['/responses']);}['mapApiError'](_0x55e7f7){const _0x277b37={_0x43c80c:0x123,_0x43dfc2:0x171,_0x248d5f:0x150,_0x22d44a:0xf2,_0x11a3f2:0x73,_0x340b6c:0x2e,_0x456ac3:0x9b,_0x8e43a8:0x9},_0x523ec4={_0x32a3ca:0x13b,_0x188948:0x84},_0x3b2e73={_0x11637e:0x1b2,_0x5be6a4:0x2c6};if(_0x55e7f7 instanceof OpenAiApiError)return createResponseError(_0x55e7f7[_0x46cf54(0x171,_0x277b37._0x43c80c,0xba,0x1c0)],_0x55e7f7[_0x46cf54(_0x277b37._0x43dfc2,_0x277b37._0x248d5f,0xa0,_0x277b37._0x22d44a)]||_0x55e7f7[_0x2c1243(_0x277b37._0x11a3f2,_0x277b37._0x340b6c,_0x277b37._0x456ac3,-_0x277b37._0x8e43a8)]);function _0x2c1243(_0x2e1e72,_0x30280c,_0x3f26c0,_0x336be6){return _0x55f0a4(_0x2e1e72-_0x3b2e73._0x11637e,_0x30280c-0x1df,_0x336be6,_0x2e1e72-_0x3b2e73._0x5be6a4);}function _0x46cf54(_0x3a2786,_0x381378,_0x2e72d6,_0x1e4561){return _0x2e041c(_0x3a2786-_0x523ec4._0x32a3ca,_0x381378-_0x523ec4._0x188948,_0x381378-0x21e,_0x1e4561);}return _0x55e7f7;}[_0x55f0a4(-0x352,-0x389,-0x23b,-0x2ec)](_0x1ce060,_0x1d9c6e){const _0x109857={_0x49300d:0x120,_0x45390c:0x4a7,_0x1aa162:0x3ad,_0x4dda2d:0x49d,_0xf6a67a:0x204,_0x100997:0x201,_0x565228:0xd7,_0x4ba364:0x41f,_0x65f98f:0xc7,_0x2c401f:0x8c,_0x37a652:0x283,_0x7817f4:0x1c7,_0x3ea82f:0x16f,_0xb84921:0x47b,_0x5c0893:0x3c7,_0x420cf8:0x1ac,_0x50448c:0x163,_0x5c4f29:0x91,_0x498c77:0x475},_0x54999e={_0x1cdf17:0x1af},_0x14d7cf={_0x3c77c4:0x635};switch(this[_0x2e64a3(0x86,_0x109857._0x49300d,0x147,0x1eb)]){case'anthropic-messages':return this['anthropicDelegate'][_0x2e64a3(0xce,0x188,0x133,0x1ae)](_0x1ce060,_0x1d9c6e);case _0x264969(0x4ef,0x3e9,0x47b,_0x109857._0x45390c):return this[_0x264969(_0x109857._0x1aa162,0x431,0x40d,_0x109857._0x4dda2d)](_0x1ce060,_0x1d9c6e);case _0x2e64a3(_0x109857._0xf6a67a,_0x109857._0x100997,0x166,_0x109857._0x565228):return this[_0x264969(0x4db,0x3b9,_0x109857._0x4ba364,0x44a)](_0x1ce060,_0x1d9c6e);case _0x2e64a3(0x72,0x12e,_0x109857._0x65f98f,_0x109857._0x2c401f):return this[_0x2e64a3(0x1e4,_0x109857._0x37a652,_0x109857._0x7817f4,_0x109857._0x3ea82f)](_0x1ce060,_0x1d9c6e);case _0x264969(0x32c,_0x109857._0xb84921,_0x109857._0x5c0893,0x317):return this[_0x2e64a3(_0x109857._0x420cf8,_0x109857._0x50448c,0x133,_0x109857._0x5c4f29)](_0x1ce060,_0x1d9c6e);}function _0x264969(_0x1eb80a,_0xd249cc,_0x1b236,_0x42a95d){return _0x55f0a4(_0x1eb80a-0x19d,_0xd249cc-0x3a,_0x42a95d,_0x1b236-_0x14d7cf._0x3c77c4);}function _0x2e64a3(_0x561114,_0x43d3a1,_0x55d7c8,_0x5be636){return _0x55f0a4(_0x561114-_0x54999e._0x1cdf17,_0x43d3a1-0x18c,_0x561114,_0x55d7c8-0x39d);}throw new Error(_0x264969(0x4b9,0x4a4,_0x109857._0x498c77,_0x109857._0x4dda2d)+String(this['surface']));}[_0x2e041c(-0xdc,0x8a,-0x32,0x6c)](_0x3a8731,_0x130d8a){const _0x2a9ae4={_0x2b6d86:0x11b,_0xe36865:0x16b,_0x37567b:0x1e1,_0x3e4da2:0x29a,_0x2adbf2:0x33b,_0x945e73:0x1fa,_0x53e309:0x1c3,_0x761faf:0x25a,_0x25ab0a:0x164,_0x101be3:0x1d1,_0x9e382f:0x42c,_0x3d4522:0x377,_0x42cea8:0x3dd,_0x10013a:0x429,_0xaa1285:0x2c8,_0x4ccc96:0x325,_0x146a84:0x3cc,_0xe22571:0x326,_0x2251bf:0x360,_0x4abd20:0x3d3,_0x369ff7:0x423,_0x2e4d68:0x134,_0x430e71:0x2ee,_0x1788a0:0x319,_0x1507fe:0x3ba,_0x1827a2:0x3d6,_0x339fd7:0x37f,_0x2a6bd5:0x3e2},_0x5493a7={_0x5466eb:0x3ea},_0x2f1d58={_0x5ccde5:0x7};function _0x48827a(_0xc09b1f,_0x61bf8f,_0x45fbfe,_0x1d469f){return _0x2e041c(_0xc09b1f-0x100,_0x61bf8f-_0x2f1d58._0x5ccde5,_0x61bf8f-0x20e,_0xc09b1f);}function _0x472f03(_0x5e479b,_0x473024,_0x46698c,_0x5c96ff){return _0x2e041c(_0x5e479b-0x6e,_0x473024-0x152,_0x46698c-_0x5493a7._0x5466eb,_0x5e479b);}switch(this[_0x48827a(_0x2a9ae4._0x2b6d86,0x165,0x100,_0x2a9ae4._0xe36865)]){case _0x472f03(_0x2a9ae4._0x37567b,0x2ec,_0x2a9ae4._0x3e4da2,_0x2a9ae4._0x2adbf2):return this[_0x48827a(_0x2a9ae4._0x945e73,0x228,_0x2a9ae4._0x53e309,_0x2a9ae4._0x761faf)][_0x48827a(0x184,0x1b9,_0x2a9ae4._0x25ab0a,_0x2a9ae4._0x101be3)](_0x3a8731,_0x130d8a);case _0x472f03(_0x2a9ae4._0x9e382f,_0x2a9ae4._0x3d4522,_0x2a9ae4._0x42cea8,_0x2a9ae4._0x10013a):return this[_0x472f03(0x239,0x216,_0x2a9ae4._0xaa1285,_0x2a9ae4._0x4ccc96)](_0x3a8731,_0x130d8a);case _0x472f03(_0x2a9ae4._0x146a84,_0x2a9ae4._0xe22571,_0x2a9ae4._0x2251bf,0x364):return this[_0x472f03(0x40c,0x329,_0x2a9ae4._0x4abd20,_0x2a9ae4._0x369ff7)](_0x3a8731,_0x130d8a);case _0x48827a(0x57,0xe5,0x89,_0x2a9ae4._0x2e4d68):return this[_0x472f03(0x330,0x381,0x2ed,_0x2a9ae4._0x430e71)](_0x3a8731,_0x130d8a);case _0x472f03(_0x2a9ae4._0x1788a0,_0x2a9ae4._0x1507fe,0x329,0x354):return this[_0x472f03(_0x2a9ae4._0x1827a2,_0x2a9ae4._0x339fd7,0x395,_0x2a9ae4._0x2a6bd5)](_0x3a8731,_0x130d8a);}throw new Error(_0x48827a(0x174,0x1fb,0x16a,0x1cc)+String(this['surface']));}async['complete'](_0x26832a,_0x35c1ed){const _0x289dab={_0x1c33ed:0x473,_0x235065:0x41a,_0x5095e1:0x47e,_0x37d05e:0x3c2,_0x30e498:0x381,_0x487dfa:0x3aa,_0x57749a:0x31e,_0x57943f:0x2d8,_0x29fa2b:0x2fd,_0x4e9f1e:0x343,_0x71f685:0x368,_0x32b3a8:0x34a,_0x4bc3de:0x345,_0x19c580:0x346,_0x4be02d:0x384,_0x3a96e1:0x367,_0x550ca7:0x286,_0x2c36c3:0x385,_0x543c6c:0x3fd,_0x34bb89:0x3a7},_0x596a1b={_0x10a43f:0xa2},_0xeb3404={_0x25a7ce:0x18,_0x668635:0x5c4};function _0x23a5ee(_0x178945,_0x327216,_0xc0ba5a,_0x59969e){return _0x55f0a4(_0x178945-_0xeb3404._0x25a7ce,_0x327216-0xda,_0x59969e,_0x327216-_0xeb3404._0x668635);}const _0x25ed7b=this[_0x2a0aad(0x4c6,_0x289dab._0x1c33ed,_0x289dab._0x235065,0x3d6)](_0x26832a);if(this[_0x2a0aad(0x42a,_0x289dab._0x5095e1,_0x289dab._0x37d05e,_0x289dab._0x30e498)]!==_0x2a0aad(0x3ac,0x367,_0x289dab._0x487dfa,_0x289dab._0x57749a))return this[_0x23a5ee(0x269,_0x289dab._0x57943f,0x328,_0x289dab._0x29fa2b)](_0x25ed7b,_0x35c1ed);function _0x2a0aad(_0x12ff83,_0x1dd0d6,_0x22ef28,_0x3e473e){return _0x55f0a4(_0x12ff83-0x1e1,_0x1dd0d6-_0x596a1b._0x10a43f,_0x1dd0d6,_0x22ef28-0x618);}if(this[_0x23a5ee(_0x289dab._0x4e9f1e,_0x289dab._0x71f685,0x3b0,0x30f)](_0x25ed7b))return this['response'](_0x25ed7b,_0x35c1ed);try{return await this[_0x23a5ee(_0x289dab._0x32b3a8,0x3d2,_0x289dab._0x4bc3de,_0x289dab._0x19c580)](_0x25ed7b,_0x35c1ed);}catch(_0x512340){if(_0x512340 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x512340['body']))return this[_0x2a0aad(_0x289dab._0x4be02d,_0x289dab._0x3a96e1,0x382,0x2c1)](_0x25ed7b[_0x23a5ee(0x33a,0x318,_0x289dab._0x550ca7,_0x289dab._0x2c36c3)]),this['response'](_0x25ed7b,_0x35c1ed);throw this[_0x2a0aad(_0x289dab._0x543c6c,_0x289dab._0x235065,_0x289dab._0x34bb89,0x2f6)](_0x512340);}throw _0x512340;}}async*[_0x55f0a4(-0x166,-0x1cd,-0x209,-0x202)](_0x33630a,_0x938e6b){const _0x4a2730={_0x1a589f:0x160,_0x52dd21:0xd4,_0x1a17c5:0x93,_0x4667b0:0xf0,_0x22591c:0x44,_0x1f2be9:0xbd,_0x509cab:0xb9,_0x52ad01:0x178,_0x5e752f:0x11a,_0x268023:0x21b,_0x36349d:0x14d,_0x2ce35d:0x18d,_0x3e2cca:0x183,_0x2d7bda:0x178,_0x151254:0x171,_0x2ea404:0x1b2,_0x2eaa5f:0xbe},_0x4a6d1c={_0x1f476f:0x12c,_0x145418:0x18f},_0x28a02f={_0x3b4a12:0x18b};function _0x33e2cb(_0x4e3930,_0x4b2100,_0x2216f4,_0x50c286){return _0x55f0a4(_0x4e3930-0x1d6,_0x4b2100-_0x28a02f._0x3b4a12,_0x4e3930,_0x2216f4-0x29c);}const _0x57a40f=this[_0x52a221(0x112,0x13e,_0x4a2730._0x1a589f,_0x4a2730._0x52dd21)](_0x33630a);if(this[_0x33e2cb(-0x7,0x48,0x46,-0x62)]!==_0x52a221(0x176,0xce,_0x4a2730._0x1a17c5,_0x4a2730._0x4667b0)){yield*this[_0x33e2cb(0x84,_0x4a2730._0x22591c,_0x4a2730._0x1f2be9,_0x4a2730._0x509cab)](_0x57a40f,_0x938e6b);return;}if(this['shouldPreferResponsesApi'](_0x57a40f)){yield*this[_0x52a221(0xb7,_0x4a2730._0x52ad01,_0x4a2730._0x5e752f,_0x4a2730._0x268023)](_0x57a40f,_0x938e6b);return;}function _0x52a221(_0x42fade,_0x425fcd,_0x23f72d,_0x1f4db0){return _0x2e041c(_0x42fade-_0x4a6d1c._0x1f476f,_0x425fcd-0x96,_0x425fcd-_0x4a6d1c._0x145418,_0x23f72d);}try{yield*this[_0x33e2cb(_0x4a2730._0x36349d,0x97,0xf5,_0x4a2730._0x2ce35d)](_0x57a40f,_0x938e6b);}catch(_0x14478f){if(_0x14478f instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x14478f['body'])){this['markModelAsResponsesOnly'](_0x57a40f[_0x33e2cb(0x6e,-0x1c,-0x10,0x2d)]),yield*this[_0x52a221(_0x4a2730._0x3e2cca,_0x4a2730._0x2d7bda,_0x4a2730._0x151254,_0x4a2730._0x2ea404)](_0x57a40f,_0x938e6b);return;}throw this[_0x52a221(0x112,0xcb,_0x4a2730._0x2eaa5f,0xd6)](_0x14478f);}throw _0x14478f;}}async[_0x55f0a4(-0x242,-0x2a3,-0x2d6,-0x297)](_0x3cacdd){const _0x2f53b5={_0x33b293:0xaf,_0x2d7325:0x144,_0x2cac10:0xaa,_0x178a72:0x56,_0x183dc8:0x9d,_0xb2167f:0xf3,_0x9b3575:0x15b,_0x267fc7:0x252},_0x44a521={_0x27330a:0x1ed,_0x5267c4:0x17a},_0x291bcf={_0x491b0e:0x1e7,_0x588072:0x28f,_0x1cd136:0x256,_0x5ea653:0x219,_0x859ca6:0x1c4,_0x382767:0x13d},_0x37e81a={_0x528da7:0x0},_0x530140={_0x21a692:0x6b,_0x4e95ea:0x1d5,_0x46d0e5:0x374},_0x42c8f=await this['sendRawRequest']({'path':_0x5bb7c4(0x99,_0x2f53b5._0x33b293,_0x2f53b5._0x2d7325,_0x2f53b5._0x2cac10),'method':'GET','signal':_0x3cacdd});if(!_0x42c8f['ok'])throw this[_0x33d622(_0x2f53b5._0x178a72,0x10c,_0x2f53b5._0x183dc8,_0x2f53b5._0xb2167f)](await this['toApiError'](_0x42c8f));const _0x453b2c=await _0x42c8f['json']();function _0x5bb7c4(_0x540581,_0x595592,_0x5cce2e,_0x4060a1){return _0x55f0a4(_0x540581-_0x530140._0x21a692,_0x595592-_0x530140._0x4e95ea,_0x4060a1,_0x5cce2e-_0x530140._0x46d0e5);}const _0x4c59cc=(_0x453b2c[_0x5bb7c4(_0x2f53b5._0x9b3575,0x16a,0x1ec,_0x2f53b5._0x267fc7)]??[])['map'](_0x5d5b70=>{const _0x344117={_0x4c81c9:0x9a},_0x3325b6=createModelInfo(_0x5d5b70);function _0x24bb8e(_0x2c0925,_0x353399,_0xc193c4,_0x559191){return _0x5bb7c4(_0x2c0925-0xda,_0x353399-0x1dc,_0xc193c4-_0x344117._0x4c81c9,_0x2c0925);}_0x3325b6[_0x24bb8e(0x28e,0x16a,_0x291bcf._0x491b0e,_0x291bcf._0x588072)]&&this['modelEndpointCache'][_0x513cb4(0x202,0x21b,0x209,_0x291bcf._0x1cd136)](_0x3325b6['id'],_0x3325b6[_0x513cb4(_0x291bcf._0x5ea653,0x248,_0x291bcf._0x859ca6,_0x291bcf._0x382767)]);function _0x513cb4(_0x216787,_0x355076,_0x270361,_0x1e7937){return _0x5bb7c4(_0x216787-_0x37e81a._0x528da7,_0x355076-0x8b,_0x270361-0x77,_0x216787);}return _0x3325b6;});function _0x33d622(_0xed5bd0,_0x154b01,_0x523528,_0x6a9087){return _0x2e041c(_0xed5bd0-_0x44a521._0x27330a,_0x154b01-_0x44a521._0x5267c4,_0x6a9087-0x1b7,_0x523528);}return deduplicateModels(_0x4c59cc);}};function createHeaders(_0x456083){const _0x34b7b5={_0x3b133d:0x263,_0x524859:0x201,_0x3576e0:0x22d,_0x274f10:0x1dd,_0x35fbd0:0x255,_0x4feb65:0x260},_0x2335c9={_0x5c9682:0x136},_0x434215={_0xed0740:0x94};function _0x1a13a6(_0x3a7830,_0x5d4278,_0x1fc7ca,_0x12f836){return _0x55f0a4(_0x3a7830-_0x434215._0xed0740,_0x5d4278-0xd3,_0x3a7830,_0x12f836-0x5f3);}function _0x537026(_0x9d0475,_0x176953,_0x3ed0e2,_0x3d0ac5){return _0x55f0a4(_0x9d0475-0x12f,_0x176953-_0x2335c9._0x5c9682,_0x3d0ac5,_0x9d0475-0x40f);}const _0x11d905=new Headers();for(const [_0x4ae346,_0xc50af9]of Object[_0x537026(_0x34b7b5._0x3b133d,0x2c0,0x20e,_0x34b7b5._0x524859)](_0x456083)){_0x11d905[_0x537026(_0x34b7b5._0x3576e0,_0x34b7b5._0x274f10,_0x34b7b5._0x35fbd0,_0x34b7b5._0x4feb65)](_0x4ae346,_0xc50af9);}return _0x11d905;}async function fetchRawResponse(_0x136097){const _0x1f2819={_0x16a318:0xda,_0x426703:0x1d5,_0x2eefee:0x269,_0x5abd01:0x1ec,_0x378294:0x2a2,_0x173b6c:0x284,_0x246314:0x2db,_0x2b1a2f:0x282,_0x358b55:0x26e,_0xcf2dee:0x25e,_0x171b7a:0xa7,_0x6b3300:0x60,_0xe95640:0x203,_0x228a77:0x13a,_0x177f0c:0x2be,_0x46e5fd:0x244,_0x2e0341:0x1c9,_0x4bc78a:0x189},_0x3a78d6={_0x532543:0x13c},_0x48a4b3={_0x35345c:0x135,_0x388ada:0xad,_0x1828ff:0x312};function _0x4efed3(_0x459334,_0x1e2fc8,_0x4d1279,_0x199364){return _0x2e041c(_0x459334-_0x48a4b3._0x35345c,_0x1e2fc8-_0x48a4b3._0x388ada,_0x1e2fc8-_0x48a4b3._0x1828ff,_0x459334);}const _0x568ddd=_0x136097[_0x2dbda9(-_0x1f2819._0x16a318,-0x143,-0x175,-0x13d)]??globalThis[_0x4efed3(0x160,_0x1f2819._0x426703,_0x1f2819._0x2eefee,_0x1f2819._0x5abd01)];function _0x2dbda9(_0x226f8a,_0x373230,_0x3b2c65,_0x32576c){return _0x55f0a4(_0x226f8a-_0x3a78d6._0x532543,_0x373230-0x2a,_0x32576c,_0x3b2c65-0x175);}return _0x568ddd(_0x136097[_0x4efed3(0x298,_0x1f2819._0x378294,_0x1f2819._0x173b6c,_0x1f2819._0x246314)],{'method':_0x4efed3(_0x1f2819._0x2b1a2f,_0x1f2819._0x358b55,_0x1f2819._0xcf2dee,0x1ae),'headers':createHeaders(_0x136097[_0x2dbda9(-0x105,-_0x1f2819._0x171b7a,-_0x1f2819._0x6b3300,-0x80)]),'body':JSON[_0x2dbda9(-_0x1f2819._0xe95640,-0x22b,-0x182,-_0x1f2819._0x228a77)](_0x136097[_0x4efed3(_0x1f2819._0x177f0c,_0x1f2819._0x46e5fd,_0x1f2819._0x2e0341,0x1ff)]),'signal':_0x136097[_0x4efed3(0x24a,0x1ed,_0x1f2819._0x4bc78a,0x181)]});}async function fetchJsonResponse(_0x30ea66){const _0x3ad840={_0x57c8ad:0x417,_0x263ec5:0x4a2,_0x46dcb3:0x297,_0x4d19ad:0x266,_0x1388a7:0x2f9,_0x1552b5:0x2e5},_0x42b930={_0x296b29:0x182},_0x5a4a88={_0x5e4502:0x1ea};function _0x4c905a(_0x42aa0d,_0x5ce6cd,_0x56b78f,_0x4905c0){return _0x2e041c(_0x42aa0d-0x1ba,_0x5ce6cd-0x108,_0x4905c0- -_0x5a4a88._0x5e4502,_0x5ce6cd);}const _0x5bc293=await fetchRawResponse(_0x30ea66);if(!_0x5bc293['ok']){const _0x3cfc41=await _0x5bc293[_0x444be2(0x4c7,0x503,0x468,0x4e3)](),_0x26e557=_0x3cfc41[_0x444be2(_0x3ad840._0x57c8ad,0x476,0x3ed,_0x3ad840._0x263ec5)]()||_0x5bc293['statusText']||_0x4c905a(-0x13e,-0x200,-0x1d7,-0x1cc);throw new Error(_0x4c905a(-_0x3ad840._0x46dcb3,-0x24a,-0x2b0,-0x219)+_0x5bc293[_0x4c905a(-_0x3ad840._0x4d19ad,-0x2a2,-_0x3ad840._0x1388a7,-_0x3ad840._0x1552b5)]+':\x20'+_0x26e557);}function _0x444be2(_0x51929a,_0x3d5f44,_0x4a0880,_0x43bc0e){return _0x2e041c(_0x51929a-0x23,_0x3d5f44-_0x42b930._0x296b29,_0x4a0880-0x519,_0x43bc0e);}return await _0x5bc293['json']();}function findLastMessage(_0x4c59cb,_0x2a33ba){const _0x2e5f71={_0x13dc01:0x154,_0x3112cb:0x123,_0x3676d1:0x15e,_0x4ef2f4:0x1aa,_0x11fe0f:0x10f,_0x49b041:0x12a},_0xfd5f8e={_0x4c0179:0xe8};function _0x5be83c(_0x411d74,_0x566db4,_0x3e6d2d,_0x3d31c9){return _0x55f0a4(_0x411d74-0x111,_0x566db4-0x125,_0x566db4,_0x3d31c9-0x280);}for(let _0x29a738=_0x4c59cb[_0x584b54(0x1c3,_0x2e5f71._0x13dc01,_0x2e5f71._0x3112cb,_0x2e5f71._0x3676d1)]-0x1;_0x29a738>=0x0;_0x29a738-=0x1){if(_0x4c59cb[_0x29a738][_0x584b54(_0x2e5f71._0x4ef2f4,_0x2e5f71._0x11fe0f,_0x2e5f71._0x49b041,0x1ea)]===_0x2a33ba)return _0x4c59cb[_0x29a738];}function _0x584b54(_0x191bf7,_0x1e6c87,_0x540544,_0x4fbecc){return _0x55f0a4(_0x191bf7-_0xfd5f8e._0x4c0179,_0x1e6c87-0x192,_0x1e6c87,_0x191bf7-0x3d3);}return void 0x0;}function hasTool(_0xef5bf4,_0x23d300){const _0xc66b8d={_0x209d71:0x132,_0x4e6c41:0xcb},_0x13cef0={_0x27b1da:0x17a,_0x2fcc3e:0x79},_0x21cede={_0x52d976:0x11b,_0x5599bd:0x2ea};function _0x4cedc2(_0x3931ad,_0x580f66,_0xf6aa63,_0x15b812){return _0x55f0a4(_0x3931ad-0x172,_0x580f66-_0x21cede._0x52d976,_0x3931ad,_0x15b812-_0x21cede._0x5599bd);}function _0x14896c(_0x549e58,_0x20e159,_0x39759f,_0x3bd60a){return _0x2e041c(_0x549e58-_0x13cef0._0x27b1da,_0x20e159-0x60,_0x20e159- -_0x13cef0._0x2fcc3e,_0x39759f);}return _0xef5bf4[_0x4cedc2(_0xc66b8d._0x209d71,0x153,0x175,_0xc66b8d._0x4e6c41)]['some'](_0x276692=>_0x276692[_0x4cedc2(0x211,0x1cb,0x192,0x158)]===_0x23d300);}function createMockResponse(_0x4b831f,_0x31e293,_0x851dc7,_0x48d0e5){return{'id':_0x4b831f,'content':_0x31e293,'stopReason':_0x851dc7,'usage':_0x48d0e5};}function _0x55f0a4(_0x396e30,_0x412d42,_0x4cc489,_0x923e24){return _0x3920(_0x923e24- -0x37c,_0x4cc489);}var MockModel=class{[_0x55f0a4(-0x27a,-0x2ab,-0x21c,-0x2ac)];[_0x55f0a4(-0x2f3,-0x317,-0x272,-0x2ca)];[_0x2e041c(-0x154,-0x1c5,-0x148,-0x9b)]=[];[_0x55f0a4(-0x1d9,-0x1bf,-0x1ba,-0x18c)];constructor(_0x571357={}){const _0x566f55={_0x25d875:0x318,_0x4aa157:0x34d,_0x3176be:0x30e,_0x57852b:0x1d9,_0x34fae9:0x1bd,_0x5c5ae0:0x152},_0x2f3d72={_0x54f97b:0x19b},_0x12355a={_0xfef192:0xcd};function _0x5f0d99(_0x530fbd,_0x894eb,_0x12aa16,_0x2477e0){return _0x2e041c(_0x530fbd-0x55,_0x894eb-_0x12355a._0xfef192,_0x530fbd- -0x1fa,_0x12aa16);}this[_0x5f0d99(-0x2f9,-0x291,-_0x566f55._0x25d875,-0x343)]=_0x571357[_0x5f0d99(-0x2f9,-0x3ba,-0x288,-0x368)]??'mock',this[_0x5f0d99(-0x317,-0x31c,-_0x566f55._0x4aa157,-_0x566f55._0x3176be)]=_0x571357['maxTokens']??0x4000;function _0x412377(_0x53fbb3,_0x49919f,_0xdfe5f6,_0x22a41d){return _0x2e041c(_0x53fbb3-0x1,_0x49919f-0x49,_0xdfe5f6- -_0x2f3d72._0x54f97b,_0x53fbb3);}this[_0x5f0d99(-_0x566f55._0x57852b,-0x229,-0x194,-0x154)]=_0x571357[_0x5f0d99(-0x1d9,-_0x566f55._0x34fae9,-0x20a,-_0x566f55._0x5c5ae0)]?structuredClone(_0x571357['reasoning']):void 0x0;}async[_0x55f0a4(-0x24e,-0x264,-0x22e,-0x26a)](_0xd49851,_0x36bab9){const _0x33087f={_0x27e209:0x3f5,_0x33b875:0x4f5,_0x477032:0x337,_0x51f466:0x222,_0x4fbb5f:0x385,_0x429ef4:0x2be,_0x293617:0x282,_0x2f7c74:0x229,_0x4fe3e2:0x2f2,_0xec02da:0x2a9,_0x5e89ff:0x2b8,_0x20fdce:0x20d,_0x2cb866:0x4ac,_0xb09f4c:0x400,_0x3c53e5:0x170,_0x4f8bb1:0x1b7,_0x3f7c64:0x2c0,_0x1d712c:0x20b,_0x114455:0x263,_0x21f3f6:0x2ab,_0x4e438d:0x215,_0x289f2f:0x30e,_0x23982f:0x1ca,_0x55246c:0x2a7,_0x28f65c:0x32d,_0x110fd7:0x3b9,_0x448d2d:0x49e,_0xd1abbd:0x45f,_0x147b26:0x2a3,_0x1cc477:0x35c,_0x3f7eba:0x370,_0x3282fd:0x3b2,_0x5098cb:0x1a8,_0x454711:0x1d1,_0x4dd02d:0x2b2,_0x5c4e8a:0x198},_0x449b96={_0x3d0d31:0x1eb},_0x2ab67f={_0x5f4ec5:0x149,_0x10bd83:0x1a,_0xd7677b:0x463},_0x307f8e={...structuredClone(_0xd49851),..._0xd49851[_0x3ca06a(_0x33087f._0x27e209,0x418,_0x33087f._0x33b875,0x484)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};this['requests'][_0x280bb4(-_0x33087f._0x477032,-0x2c6,-_0x33087f._0x51f466,-_0x33087f._0x4fbb5f)](_0x307f8e);const _0x182b66=findLastMessage(_0x307f8e['messages'],_0x280bb4(-_0x33087f._0x429ef4,-_0x33087f._0x293617,-_0x33087f._0x2f7c74,-_0x33087f._0x4fe3e2)),_0x5cad60=getToolResultBlocks(_0x182b66),_0x4c4975=_0x280bb4(-_0x33087f._0xec02da,-_0x33087f._0x5e89ff,-_0x33087f._0x20fdce,-0x36c)+this['requests'][_0x3ca06a(_0x33087f._0x2cb866,0x3b6,0x40c,_0x33087f._0xb09f4c)];function _0x3ca06a(_0x23f4ab,_0x46e7c1,_0x1e05c3,_0x251d9b){return _0x2e041c(_0x23f4ab-_0x2ab67f._0x5f4ec5,_0x46e7c1-_0x2ab67f._0x10bd83,_0x251d9b-_0x2ab67f._0xd7677b,_0x1e05c3);}if(_0x5cad60[_0x280bb4(-_0x33087f._0x3c53e5,-0x1f0,-0x276,-_0x33087f._0x4f8bb1)]>0x0)return createMockResponse(_0x4c4975,[{'type':_0x280bb4(-_0x33087f._0x3f7c64,-0x23e,-_0x33087f._0x1d712c,-_0x33087f._0x114455),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x5cad60[0x0][_0x280bb4(-0x334,-_0x33087f._0x21f3f6,-0x280,-_0x33087f._0x4e438d)]}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});const _0x996b20=getTextFromMessage(_0x182b66);function _0x280bb4(_0x191b94,_0x4829a6,_0x3bab54,_0xe3efb5){return _0x2e041c(_0x191b94-0x1dd,_0x4829a6-_0x449b96._0x3d0d31,_0x4829a6- -0x18d,_0x191b94);}if(/list .*files|workspace/i[_0x3ca06a(0x392,_0x33087f._0x289f2f,0x431,0x38b)](_0x996b20)&&hasTool(_0x307f8e,_0x280bb4(-0x123,-_0x33087f._0x23982f,-0x243,-0x199)))return createMockResponse(_0x4c4975,[{'type':_0x3ca06a(0x33f,_0x33087f._0x55246c,0x279,_0x33087f._0x28f65c),'id':'tool-call-'+this['requests']['length'],'name':_0x3ca06a(_0x33087f._0x110fd7,0x3c7,_0x33087f._0x448d2d,0x426),'input':{'command':_0x3ca06a(0x407,_0x33087f._0xd1abbd,0x427,0x43c)}}],_0x280bb4(-_0x33087f._0x147b26,-0x2c3,-0x287,-0x31b),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x4c4975,[{'type':_0x3ca06a(0x3a4,_0x33087f._0x1cc477,_0x33087f._0x3f7eba,_0x33087f._0x3282fd),'text':_0x280bb4(-0x14a,-_0x33087f._0x5098cb,-_0x33087f._0x454711,-0x1fa)+_0x996b20}],_0x280bb4(-_0x33087f._0x4dd02d,-0x22e,-_0x33087f._0x5c4e8a,-0x2a5),{'inputTokens':0x50,'outputTokens':0x12});}};export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,OpenAiResponsesStreamError,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
1
+ (function(_0x2ac063,_0x153871){const _0x23478a={_0x169610:0xd,_0xc9b04:0x30f,_0x2c1c4d:0x2b6,_0x33bf5a:0xaa,_0x55358f:0x18,_0x482ba3:0x294,_0x28d6e9:0xcc,_0x1d9073:0x6c,_0x37ebdb:0x108,_0x35209f:0x225,_0x5cc0e5:0x1aa,_0x5d9261:0x1ba,_0x98bd9c:0x11,_0xcb20e3:0x2c4,_0x909bbf:0x322};function _0x129c34(_0x9ec110,_0x4d0cb7,_0x502e30,_0x1a2b63){return _0x1d50(_0x502e30- -0x246,_0x9ec110);}function _0x6bf900(_0x1b8790,_0x17fcf8,_0x2313ff,_0x5ea21e){return _0x1d50(_0x17fcf8-0x9b,_0x5ea21e);}const _0x12d478=_0x2ac063();while(!![]){try{const _0xf47115=parseInt(_0x129c34(-0x2a,-_0x23478a._0x169610,-0xbd,-0x170))/0x1+parseInt(_0x6bf900(0x2e4,0x2a1,0x368,_0x23478a._0xc9b04))/0x2+-parseInt(_0x6bf900(0x1f1,0x1fc,0x2b4,_0x23478a._0x2c1c4d))/0x3+-parseInt(_0x129c34(-_0x23478a._0x33bf5a,-_0x23478a._0x55358f,-0xce,-0x61))/0x4*(-parseInt(_0x6bf900(_0x23478a._0x482ba3,0x203,0x221,0x279))/0x5)+parseInt(_0x129c34(-_0x23478a._0x28d6e9,-_0x23478a._0x1d9073,-_0x23478a._0x37ebdb,-0x49))/0x6+parseInt(_0x6bf900(_0x23478a._0x35209f,0x261,_0x23478a._0x5cc0e5,_0x23478a._0x5d9261))/0x7*(-parseInt(_0x129c34(-_0x23478a._0x98bd9c,-0x15c,-0xab,-0xd7))/0x8)+parseInt(_0x6bf900(_0x23478a._0xcb20e3,0x28c,0x1f0,_0x23478a._0x909bbf))/0x9;if(_0xf47115===_0x153871)break;else _0x12d478['push'](_0x12d478['shift']());}catch(_0x5e5d64){_0x12d478['push'](_0x12d478['shift']());}}}(_0x1ce2,0x37402));function _0x1d50(_0x3cf73f,_0xc2514f){_0x3cf73f=_0x3cf73f-0x126;const _0x1ce212=_0x1ce2();let _0x1d50aa=_0x1ce212[_0x3cf73f];if(_0x1d50['eeymwj']===undefined){var _0x3f6192=function(_0x3edd48){const _0x219b82='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x14bf09='',_0x1418c3='';for(let _0xef4261=0x0,_0x4181c1,_0x32425f,_0x532d47=0x0;_0x32425f=_0x3edd48['charAt'](_0x532d47++);~_0x32425f&&(_0x4181c1=_0xef4261%0x4?_0x4181c1*0x40+_0x32425f:_0x32425f,_0xef4261++%0x4)?_0x14bf09+=String['fromCharCode'](0xff&_0x4181c1>>(-0x2*_0xef4261&0x6)):0x0){_0x32425f=_0x219b82['indexOf'](_0x32425f);}for(let _0x476c52=0x0,_0x241d92=_0x14bf09['length'];_0x476c52<_0x241d92;_0x476c52++){_0x1418c3+='%'+('00'+_0x14bf09['charCodeAt'](_0x476c52)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1418c3);};_0x1d50['TURNZK']=_0x3f6192,_0x1d50['YuthSi']={},_0x1d50['eeymwj']=!![];}const _0x318d86=_0x1ce212[0x0],_0x38e55c=_0x3cf73f+_0x318d86,_0x41c8be=_0x1d50['YuthSi'][_0x38e55c];return!_0x41c8be?(_0x1d50aa=_0x1d50['TURNZK'](_0x1d50aa),_0x1d50['YuthSi'][_0x38e55c]=_0x1d50aa):_0x1d50aa=_0x41c8be,_0x1d50aa;}import{toOpenAiResponsesRequest}from'../chunk-4DNIDCX7.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x14bf09){const _0x458297={_0x2e3246:0x79,_0x5a5891:0x76,_0x29006f:0x3e};function _0x188a05(_0x51b0b5,_0x378f42,_0x20e946,_0x2f2d50){return _0x1d50(_0x20e946- -0x210,_0x2f2d50);}super(_0x14bf09),this[_0x188a05(-_0x458297._0x2e3246,_0x458297._0x5a5891,-0x3b,_0x458297._0x29006f)]='ProviderRequestConstructionError';}},ProviderStreamEventError=class extends Error{[_0x2e5e46(0x4c3,0x43d,0x5b0,0x507)];['retryable'];['status'];constructor(_0x1418c3,_0xef4261={}){const _0xb4cf40={_0xe3db2c:0x44a,_0x313cef:0x480,_0x298e30:0x51a,_0xaf3ce:0x468,_0x105873:0x3b0,_0x4c3c8b:0x380,_0x4e0002:0x47e,_0x3cd34d:0x4fe,_0x375212:0x5d5,_0x46036f:0x4cd,_0x2e8e0f:0x4f9,_0x43235a:0x405,_0x160df3:0x498},_0x27ac7e={_0x5bb47f:0x1c4},_0x496a9c={_0x46e3a2:0x54};function _0x276444(_0x3976ab,_0x7cdbfc,_0x36ac6f,_0x45df75){return _0x2e5e46(_0x3976ab-0x1cc,_0x7cdbfc,_0x36ac6f-_0x496a9c._0x46e3a2,_0x3976ab- -0x23);}super(_0x1418c3),this[_0x2492d8(0x4d6,0x3bb,_0xb4cf40._0xe3db2c,_0xb4cf40._0x313cef)]=_0x2492d8(_0xb4cf40._0x298e30,0x4c7,0x50a,0x519),this[_0x276444(0x4e4,0x510,0x480,_0xb4cf40._0xaf3ce)]=_0xef4261[_0x2492d8(_0xb4cf40._0x105873,_0xb4cf40._0x4c3c8b,_0xb4cf40._0x4e0002,0x3ec)];function _0x2492d8(_0x27ed0e,_0x10c76c,_0x871a53,_0x25428d){return _0x2e5e46(_0x27ed0e-_0x27ac7e._0x5bb47f,_0x27ed0e,_0x871a53-0x10b,_0x25428d- -0x11b);}this[_0x276444(0x595,0x5a8,_0xb4cf40._0x3cd34d,_0xb4cf40._0x375212)]=_0xef4261['retryable']??!![],this[_0x276444(0x590,_0xb4cf40._0x46036f,_0xb4cf40._0x2e8e0f,0x5b8)]=_0xef4261[_0x2492d8(_0xb4cf40._0x43235a,0x422,0x552,_0xb4cf40._0x160df3)];}};function isRetryableProviderStreamEventError(_0x4181c1){return _0x4181c1 instanceof ProviderStreamEventError&&_0x4181c1['retryable'];}var ANTHROPIC_MESSAGES_SURFACE=_0x4784b8(-0x6f,-0x19,-0xd2,-0x76),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x4784b8(-0xf4,-0x76,0x8,-0xb2);function parseToolInput(_0x32425f){try{return JSON['parse'](_0x32425f);}catch{return _0x32425f;}}function resolveReasoningVisibility(_0x532d47){const _0x383823={_0x3baa99:0x1f8,_0x5b6a73:0x174,_0x4f935c:0x145,_0x53321b:0x1af},_0x442992={_0x3da65f:0x38,_0x467099:0xdd,_0x307470:0x11},_0x51d23e={_0x1d4565:0x160};function _0x6fec28(_0x2f3449,_0x33065e,_0x5d50e0,_0x17a633){return _0x2e5e46(_0x2f3449-0x1cd,_0x2f3449,_0x5d50e0-0x80,_0x33065e- -_0x51d23e._0x1d4565);}function _0x2ae1af(_0x55ee33,_0x4090b2,_0x12944c,_0x2a2a05){return _0x4784b8(_0x55ee33-_0x442992._0x3da65f,_0x4090b2-_0x442992._0x467099,_0x4090b2,_0x2a2a05- -_0x442992._0x307470);}return _0x532d47[_0x2ae1af(-_0x383823._0x3baa99,-0x15e,-_0x383823._0x5b6a73,-_0x383823._0x4f935c)]?.[_0x2ae1af(-0x18b,-0x156,-_0x383823._0x53321b,-0x1a7)]??_0x6fec28(0x50b,0x4b6,0x50c,0x554);}function isUserVisibleThinking(_0x476c52){const _0x23c97a={_0x39189c:0x3d7,_0xe95ceb:0x454,_0x46d04a:0x3ab,_0x19214f:0x46a,_0x3d8b34:0x3c0},_0x27162b={_0x15d15f:0x10,_0x17dd09:0x5f4},_0x5ef83d={_0x3001fb:0x34,_0x2beabc:0x4df},_0x241d92=resolveAnthropicThinkingConfig(_0x476c52[_0x1a55e0(0x41f,_0x23c97a._0x39189c,_0x23c97a._0xe95ceb,_0x23c97a._0x46d04a)]);function _0x1a55e0(_0x41956f,_0x4ceb57,_0x57bc7b,_0x5b5ec6){return _0x4784b8(_0x41956f-0x28,_0x4ceb57-_0x5ef83d._0x3001fb,_0x41956f,_0x5b5ec6-_0x5ef83d._0x2beabc);}function _0x1e3412(_0xcbd92,_0x9ca28e,_0x24a9f6,_0x1e3874){return _0x4784b8(_0xcbd92-_0x27162b._0x15d15f,_0x9ca28e-0x14f,_0x1e3874,_0xcbd92-_0x27162b._0x17dd09);}return _0x241d92!==void 0x0&&_0x241d92[_0x1a55e0(_0x23c97a._0x19214f,0x418,0x32d,_0x23c97a._0x3d8b34)]!=='disabled'&&resolveReasoningVisibility(_0x476c52)==='user-visible';}function createAnthropicThinkingBody(_0x4dd41b){const _0x4664d2={_0x2fe456:0x251,_0x33e902:0x28d,_0xb99b18:0x357,_0x322093:0x2d5,_0x15ba21:0x339,_0x2eae14:0x2f9,_0x99be7d:0x29d,_0x48b4db:0x380,_0x191eaa:0x25b,_0x1642de:0x338,_0x4a4dec:0x31b,_0x38c567:0x29e,_0x21f979:0x156,_0x1626f9:0x219,_0x9b5ff2:0x273,_0x3fa02e:0x207},_0x380d24={_0x34cb3d:0x1ad,_0x43b048:0x2f6},_0x1c2865={_0x22a21c:0x10f},_0xc5dbc1=resolveAnthropicThinkingConfig(_0x4dd41b['reasoning']);function _0x47f039(_0x542ada,_0xe83fa3,_0x43879e,_0x157212){return _0x2e5e46(_0x542ada-_0x1c2865._0x22a21c,_0x542ada,_0x43879e-0xd9,_0x43879e- -0x328);}function _0x52c0c3(_0x338a0f,_0x4e8e20,_0x1332a3,_0x36cc86){return _0x2e5e46(_0x338a0f-0x1e4,_0x4e8e20,_0x1332a3-_0x380d24._0x34cb3d,_0x36cc86- -_0x380d24._0x43b048);}if(!_0xc5dbc1||_0xc5dbc1[_0x52c0c3(0x30d,0x1c0,_0x4664d2._0x2fe456,_0x4664d2._0x33e902)]==='disabled')return{};const _0xa8ef20=_0xc5dbc1['display']??(isUserVisibleThinking(_0x4dd41b)?_0x52c0c3(_0x4664d2._0xb99b18,0x28a,0x2eb,_0x4664d2._0x322093):'omitted'),_0x1afa97=_0xc5dbc1[_0x47f039(_0x4664d2._0x15ba21,0x3ca,_0x4664d2._0x2eae14,0x357)]?{'anthropic-beta':_0x52c0c3(0x290,_0x4664d2._0x99be7d,_0x4664d2._0x48b4db,0x323)}:void 0x0;if(_0xc5dbc1[_0x47f039(0x2ec,0x2df,_0x4664d2._0x191eaa,0x1a6)]==='enabled')return{..._0x1afa97?{'headers':_0x1afa97}:{},'thinking':{'type':_0x47f039(_0x4664d2._0x1642de,0x3b1,0x353,0x300),'budget_tokens':_0xc5dbc1[_0x52c0c3(0x1fa,0x242,_0x4664d2._0x4a4dec,_0x4664d2._0x38c567)],'display':_0xa8ef20}};return{..._0x1afa97?{'headers':_0x1afa97}:{},'thinking':{'type':'adaptive',..._0xc5dbc1[_0x52c0c3(_0x4664d2._0x21f979,0x1dd,0x1e3,0x207)]?{'effort':_0xc5dbc1[_0x52c0c3(_0x4664d2._0x1626f9,_0x4664d2._0x9b5ff2,0x21d,_0x4664d2._0x3fa02e)]}:{},'display':_0xa8ef20}};}function toAnthropicRequestContent(_0x24f435){const _0x157d41={_0x1c5ced:0xde,_0x3e7e18:0x49f,_0x5f59f7:0x473,_0x952e59:0x4e5,_0x2a8074:0x4e2,_0x443077:0x3cd,_0x325d88:0x486,_0x29bce5:0x59b,_0x339cd0:0x564,_0x249739:0x146,_0x2a058d:0x62,_0x1b2553:0x152,_0x444a1e:0x37,_0x4d7312:0xd,_0x1c1471:0x36,_0x29daa8:0x3de,_0x31829c:0x483,_0x59155d:0x5df,_0x53b55b:0x542,_0x1590be:0x4b9,_0x33ea57:0x562,_0x475efb:0x4a2,_0x26adc6:0x10c,_0x5d64b0:0xbe,_0x453561:0x99,_0x564b94:0x1,_0x3487c1:0x41,_0x177409:0xd0,_0x1ec5a3:0x11c,_0x368a00:0x187,_0x12a404:0x163},_0x40b063={_0x4516c8:0x130},_0x197934={_0x2a7366:0x5e};function _0x115faa(_0x533bbe,_0x5f403e,_0x6a4c05,_0x43ac52){return _0x4784b8(_0x533bbe-0x8c,_0x5f403e-0xed,_0x6a4c05,_0x533bbe-_0x197934._0x2a7366);}if(_0x24f435[_0x115faa(-_0x157d41._0x1c5ced,-0x13c,-0x16d,-0x112)]===_0x1ec2ff(0x45d,0x477,_0x157d41._0x3e7e18,0x46f)&&_0x24f435[_0x1ec2ff(0x558,_0x157d41._0x5f59f7,0x59a,_0x157d41._0x952e59)]?.[_0x1ec2ff(0x42c,_0x157d41._0x2a8074,_0x157d41._0x443077,0x420)])return structuredClone(_0x24f435[_0x1ec2ff(_0x157d41._0x325d88,_0x157d41._0x29bce5,_0x157d41._0x339cd0,0x4e5)][_0x115faa(-0xf4,-0x149,-0x9b,-_0x157d41._0x249739)]);const _0x665b57=[];for(const _0x21f5d2 of normalizeContent(_0x24f435['content'])){if(_0x21f5d2[_0x115faa(-0xc1,-_0x157d41._0x2a058d,-_0x157d41._0x1b2553,-0x50)]===_0x115faa(-_0x157d41._0x444a1e,-_0x157d41._0x4d7312,-_0x157d41._0x1c1471,0x47))continue;if(_0x21f5d2['type']===_0x1ec2ff(0x3d6,0x45c,0x337,_0x157d41._0x29daa8)){_0x665b57[_0x1ec2ff(_0x157d41._0x31829c,0x53b,_0x157d41._0x59155d,_0x157d41._0x53b55b)]({'type':_0x1ec2ff(0x476,0x557,_0x157d41._0x1590be,0x533),'thinking':_0x21f5d2[_0x1ec2ff(_0x157d41._0x33ea57,_0x157d41._0x475efb,0x477,0x533)],'signature':_0x21f5d2[_0x115faa(-_0x157d41._0x26adc6,-_0x157d41._0x5d64b0,-0x6f,-_0x157d41._0x453561)]});continue;}if(_0x21f5d2[_0x115faa(-0xc1,-_0x157d41._0x564b94,-0x10a,-0x161)]===_0x115faa(-_0x157d41._0x3487c1,-0x33,0x5a,-_0x157d41._0x177409)){_0x665b57['push']({'type':'redacted_thinking','data':_0x21f5d2[_0x115faa(-_0x157d41._0x1ec5a3,-_0x157d41._0x368a00,-0x1bc,-_0x157d41._0x12a404)]});continue;}_0x665b57['push'](structuredClone(_0x21f5d2));}function _0x1ec2ff(_0x269d66,_0x475c52,_0x3a20f8,_0x2dfb00){return _0x2e5e46(_0x269d66-0x94,_0x475c52,_0x3a20f8-0xba,_0x2dfb00- -_0x40b063._0x4516c8);}return _0x665b57;}function createAnthropicRequest(_0xb258bb,_0x332789){const _0x318433={_0xdba203:0xc0,_0x1dfafc:0x6b,_0x3b3cfc:0x19,_0x5e1447:0x3f2,_0x8d0968:0x366,_0x2badcc:0x4c8,_0x21b893:0x415,_0x541f26:0x224,_0x3e92b6:0x1b0,_0x4c76e5:0x29c,_0x447dd3:0x52a,_0x85e417:0x4d4,_0x261b6e:0x18d,_0x41e7bc:0x41e,_0x4120cb:0x428},_0xecdbe7={_0x595f58:0x300,_0x4a42f2:0x35c,_0x5a69bb:0x32d},_0x401d2b={_0x300a11:0x32,_0xd41152:0x573},_0x2ff037={_0x309751:0x35};function _0x1f6a70(_0x1cf8e3,_0xbb10bb,_0x3dab62,_0x3e4913){return _0x4784b8(_0x1cf8e3-0xf7,_0xbb10bb-_0x2ff037._0x309751,_0x3dab62,_0x1cf8e3-0x263);}const _0x33acd5=toProviderModelRequest(_0xb258bb);function _0x32b3d4(_0x55bd45,_0x1a3a08,_0x27e541,_0x1cfe58){return _0x4784b8(_0x55bd45-_0x401d2b._0x300a11,_0x1a3a08-0xdc,_0x55bd45,_0x1cfe58-_0x401d2b._0xd41152);}const _0x549e47=createAnthropicThinkingBody(_0xb258bb);return{'accept':_0x332789?_0x1f6a70(_0x318433._0xdba203,_0x318433._0x1dfafc,0x105,_0x318433._0x3b3cfc):_0x32b3d4(_0x318433._0x5e1447,_0x318433._0x8d0968,_0x318433._0x2badcc,_0x318433._0x21b893),'body':{..._0x33acd5,'messages':_0xb258bb['messages']['map'](_0x209556=>{const _0x508b8f={_0x35e711:0x1d9,_0x204e44:0x1ed,_0x402c51:0xeb};function _0x230fc1(_0x5b6ace,_0x1e5a32,_0x5c9e02,_0x2ca83f){return _0x1f6a70(_0x5b6ace-_0x508b8f._0x35e711,_0x1e5a32-_0x508b8f._0x204e44,_0x1e5a32,_0x2ca83f-_0x508b8f._0x402c51);}return{'role':_0x209556[_0x230fc1(_0xecdbe7._0x595f58,0x33b,_0xecdbe7._0x4a42f2,_0xecdbe7._0x5a69bb)],'content':toAnthropicRequestContent(_0x209556)};}),..._0x549e47[_0x1f6a70(_0x318433._0x541f26,0x1c1,0x19c,0x1f2)]?{'thinking':_0x549e47[_0x1f6a70(0x224,_0x318433._0x3e92b6,0x25a,_0x318433._0x4c76e5)]}:{},..._0x332789?{'stream':!![]}:{}},..._0x549e47[_0x32b3d4(0x474,_0x318433._0x447dd3,_0x318433._0x85e417,0x53a)]?{'headers':_0x549e47[_0x1f6a70(0x22a,_0x318433._0x261b6e,0x2be,0x1c6)]}:{},'path':_0x32b3d4(_0x318433._0x41e7bc,0x3d0,_0x318433._0x4120cb,0x492)};}function parseAnthropicResponse(_0x25dcb1,_0xce6d7e){const _0x455a17={_0x5e9216:0x2fe,_0x47b7ef:0x1a6,_0x434cf1:0x13b,_0x2de68b:0xe3,_0xf9a678:0x185,_0x618fa1:0x188,_0xd8eba0:0x125,_0x372d15:0xb5,_0x5e7fbb:0x244,_0x52b7fd:0x257,_0x5b7440:0x25c,_0x31015a:0x310,_0x16426e:0x3b3,_0x1cb67b:0x28b,_0x4cafc8:0x2ab,_0x4661b9:0x348,_0x316268:0x3a1,_0x2acbfe:0x247,_0x57348e:0x3bb,_0x1f81e3:0x338,_0x5c0e77:0x27a,_0x443e2c:0x243,_0x53821c:0x30a,_0x13df5a:0x1f8,_0x3daab9:0x151,_0x2c4333:0x173,_0x24a55c:0x130,_0x182020:0x137,_0x19ed85:0xab,_0x56ba63:0x35e,_0x34835e:0xf8,_0x2b9985:0x25,_0x3242e8:0x26c,_0x55fbf5:0x201,_0x3c7e3c:0x166,_0x2cbd33:0x235,_0x20a78f:0x281,_0x3db515:0x335,_0x52ea5c:0x42e,_0x57ae28:0xf4,_0x100579:0xee,_0x1fc616:0x308,_0x4896d0:0x274,_0x396022:0x1f2,_0x20ce7e:0x199,_0x4e0331:0x424,_0x4e58e8:0x373,_0x591c25:0x34a,_0x1fe512:0x235,_0x43a4f0:0x2de,_0xb786b1:0x1ce,_0x46693a:0x166,_0x51711e:0x29c,_0x21f8f3:0x2e1,_0x3c5afa:0x2e1,_0x2cb9db:0x373},_0x570de={_0x5cd422:0x1e7},_0x1f1a03={_0x34bf84:0xfd},_0xc61bbf=[],_0x327feb=_0x25dcb1[_0x12718e(0x2cb,0x313,0x2dd,_0x455a17._0x5e9216)]??[];function _0x2e6843(_0x449a56,_0x27d06c,_0x47dbc4,_0x56325a){return _0x4784b8(_0x449a56-0x13b,_0x27d06c-_0x1f1a03._0x34bf84,_0x56325a,_0x47dbc4-0x1c4);}let _0x20c59d=![];function _0x12718e(_0x38a6c4,_0x435a98,_0x2ae430,_0x4e5705){return _0x4784b8(_0x38a6c4-_0x570de._0x5cd422,_0x435a98-0x1aa,_0x38a6c4,_0x2ae430-0x3d1);}for(const _0x169195 of _0x327feb){if(_0x169195['type']===_0x2e6843(0x179,0x182,0x185,_0x455a17._0x47b7ef)){_0x20c59d=!![];isUserVisibleThinking(_0xce6d7e)&&_0xc61bbf[_0x2e6843(0xea,0x169,0x194,_0x455a17._0x434cf1)]({'type':'anthropic_thinking','thinking':_0x169195[_0x2e6843(0x220,_0x455a17._0x2de68b,_0x455a17._0xf9a678,_0x455a17._0x618fa1)],'signature':_0x169195['signature']});continue;}if(_0x169195[_0x12718e(0x2a6,0x20c,0x2b2,0x36e)]==='redacted_thinking'){_0x20c59d=!![];isUserVisibleThinking(_0xce6d7e)&&_0xc61bbf['push']({'type':_0x2e6843(0x13d,0x92,_0x455a17._0xd8eba0,_0x455a17._0x372d15),'data':_0x169195[_0x12718e(_0x455a17._0x5e7fbb,0x2cc,_0x455a17._0x52b7fd,0x289)]});continue;}if(_0x169195['type']===_0x12718e(0x28d,_0x455a17._0x5b7440,_0x455a17._0x31015a,_0x455a17._0x16426e)){_0x169195[_0x12718e(_0x455a17._0x1cb67b,_0x455a17._0x4cafc8,0x310,_0x455a17._0x4661b9)][_0x12718e(0x367,0x3b0,0x36a,0x435)]>0x0&&_0xc61bbf[_0x12718e(0x319,0x324,_0x455a17._0x316268,0x3c2)](structuredClone(_0x169195));continue;}_0xc61bbf[_0x2e6843(0x19f,_0x455a17._0x2acbfe,0x194,0x1f5)](structuredClone(_0x169195));}return{'id':_0x25dcb1['id']??_0x12718e(0x3d7,_0x455a17._0x57348e,0x36b,_0x455a17._0x1f81e3)+Date['now'](),'content':_0xc61bbf,'stopReason':_0xc61bbf[_0x12718e(_0x455a17._0x5c0e77,0x198,_0x455a17._0x443e2c,_0x455a17._0x53821c)](_0x3f69da=>_0x3f69da[_0x2e6843(0x30,0x148,0xa5,0x64)]==='tool_use')?_0x2e6843(_0x455a17._0x13df5a,0x209,_0x455a17._0x3daab9,_0x455a17._0x2c4333):_0x25dcb1[_0x2e6843(_0x455a17._0x24a55c,0x230,0x16a,_0x455a17._0x182020)]===_0x2e6843(0x1dc,0x19f,0x151,_0x455a17._0x19ed85)?_0x12718e(0x3e3,0x3d1,_0x455a17._0x56ba63,0x316):_0x2e6843(_0x455a17._0x34835e,0x27,_0x455a17._0x2b9985,-0x70),'usage':{'inputTokens':(_0x25dcb1['usage']?.[_0x12718e(0x22f,_0x455a17._0x3242e8,0x263,0x22e)]??0x0)+(_0x25dcb1[_0x2e6843(0xd6,_0x455a17._0x55fbf5,_0x455a17._0x3c7e3c,0x1b0)]?.[_0x12718e(0x27b,0x1a3,_0x455a17._0x2cbd33,_0x455a17._0x20a78f)]??0x0)+(_0x25dcb1[_0x12718e(_0x455a17._0x3db515,0x3af,0x373,_0x455a17._0x52ea5c)]?.[_0x2e6843(_0x455a17._0x57ae28,0x7f,0xd4,_0x455a17._0x100579)]??0x0),'outputTokens':_0x25dcb1[_0x12718e(0x3ea,0x2bb,0x373,0x38c)]?.[_0x12718e(_0x455a17._0x1fc616,0x21f,0x271,_0x455a17._0x4896d0)]??0x0,..._0x25dcb1['usage']?.[_0x12718e(0x1d7,_0x455a17._0x396022,0x235,_0x455a17._0x20ce7e)]?{'cacheReadInputTokens':_0x25dcb1[_0x12718e(0x41a,_0x455a17._0x4e0331,_0x455a17._0x4e58e8,_0x455a17._0x591c25)][_0x12718e(0x246,0x1aa,_0x455a17._0x1fe512,_0x455a17._0x43a4f0)]}:{},..._0x25dcb1[_0x2e6843(0x20c,_0x455a17._0xb786b1,_0x455a17._0x46693a,0x20f)]?.[_0x12718e(0x216,_0x455a17._0x51711e,_0x455a17._0x21f8f3,0x210)]?{'cacheCreationInputTokens':_0x25dcb1['usage'][_0x12718e(0x369,0x272,_0x455a17._0x3c5afa,_0x455a17._0x2cb9db)]}:{}},..._0x20c59d?{'providerState':{'anthropicAssistantContent':structuredClone(_0x327feb)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x4784b8(-0xbb,0x8e,-0x17,-0x2d)]=new Map();[_0x4784b8(-0x133,-0xfa,-0x36,-0x84)]=0x0;[_0x4784b8(-0x166,-0x153,-0x1ef,-0x13b)]=0x0;[_0x2e5e46(0x65c,0x5f5,0x557,0x622)]=0x0;[_0x2e5e46(0x561,0x4ab,0x4b8,0x540)]=_0x2e5e46(0x6b8,0x67b,0x692,0x63c)+Date[_0x4784b8(-0x6d,-0x9c,-0x18e,-0x115)]();[_0x2e5e46(0x5ba,0x542,0x6d0,0x60b)]=0x0;[_0x4784b8(-0xb3,-0x18f,-0x6b,-0x11a)];[_0x4784b8(-0x98,-0x103,-0xc0,-0x5b)]=_0x4784b8(-0x1f8,-0x14a,-0x13f,-0x19f);constructor(_0xea86c9){const _0x325eae={_0x166780:0x2a2,_0x4c193b:0x1e3},_0x5267b6={_0x5204df:0x1b8,_0x1a933a:0x3a5};function _0x5a6601(_0x116abf,_0x4aab63,_0x189fac,_0x3d3966){return _0x2e5e46(_0x116abf-0x185,_0x4aab63,_0x189fac-_0x5267b6._0x5204df,_0x3d3966- -_0x5267b6._0x1a933a);}this[_0x5a6601(0x13c,0x152,_0x325eae._0x166780,_0x325eae._0x4c193b)]=_0xea86c9;}[_0x4784b8(-0x14b,-0xf5,-0xfc,-0x10d)](_0x16d92e){const _0x3a1d97={_0x1023c5:0x76,_0x10606a:0x107,_0x5b8f33:0x568,_0x67a988:0x59,_0x5b423a:0xda,_0x386273:0xe6,_0x583e2f:0xb,_0x7e3c45:0x6,_0x108ebe:0x4ba,_0x34f6e9:0x8,_0x39acac:0x52,_0x2e2d7d:0x13,_0x35117c:0x539,_0x549677:0x70,_0x2dbdcf:0x139,_0x2bcd96:0x5a5,_0x403c8d:0x58d,_0x32ba29:0x5ba,_0x126e2f:0x66b,_0x5caf17:0x567,_0x338465:0x59d,_0xfec7d1:0x1bc,_0x2857ca:0xf4,_0x5a88b1:0x5e,_0x1fa5f1:0x619,_0x37b2e9:0x50c,_0x3cba0d:0x25,_0x4368b1:0x1c,_0x3fe1b5:0x5cf,_0x4e2f99:0xa,_0x5db952:0x549,_0x3a90ea:0x5f4,_0xd503c:0x628,_0x2fbadc:0x469,_0xd9d44c:0x536,_0x3b88f0:0x4d1,_0x48e1b0:0xe5,_0x454a47:0x4bf,_0x34d2f3:0x432,_0x3beba2:0x89,_0x182965:0x504,_0x174185:0x540,_0x47d9b2:0x4fb,_0x4d3dbd:0x499,_0x39460b:0x7f,_0x59a764:0xa5,_0x21a11a:0x12a,_0x49f600:0x61a,_0x107ce6:0x126,_0x5c2ee1:0x6c7,_0x3be871:0x6d3,_0x248b5f:0x58b,_0x17f920:0x2d,_0x5f222c:0xb1,_0xc5ad27:0xb4,_0x1b5290:0xc9,_0x8a176b:0x7d,_0x189d5e:0x558,_0x342859:0x608,_0x1137e6:0x59b,_0xf8a9e:0xf0,_0x1bcb64:0x9d,_0x1d0b47:0xe6,_0x5a94d8:0xdb,_0x3769ed:0x55c,_0xf064ad:0x673,_0x403607:0x6ad,_0x1df41f:0x4a7,_0x146a42:0x537,_0x33ca47:0xd,_0x4aba89:0x100,_0x1d8bbc:0x4a,_0xafa197:0x1a0,_0x787e57:0x13f,_0x5c7caf:0x6b,_0x5360d4:0x4d,_0x2877c7:0x4a7,_0x34d20c:0x476,_0x43ff56:0x4e0,_0x5ce045:0x3e2,_0xf450f2:0x4a6,_0x5925d1:0x511,_0x5a097c:0x442,_0x44aa0c:0x581,_0x379a08:0x106,_0x343ccb:0x113,_0x4a2dfd:0x97,_0x197b4d:0x5f4,_0x33acf0:0x68a,_0x3927c4:0x670,_0x3b8350:0x625,_0x4d0287:0x573,_0x563684:0x5a7,_0x24e464:0x612,_0x155f45:0x5df,_0x109b65:0x14,_0x45c1fa:0x537,_0x32ba0d:0x586,_0x583943:0x89,_0x14e171:0x119,_0x11806d:0x47,_0x15acdf:0x24,_0x23c27b:0x5f,_0x4c8c24:0xdf,_0x1b6a5d:0xd3,_0x194e01:0x594,_0x1dce53:0x586,_0xc546e5:0x5a2,_0x516564:0x51b,_0x1b2363:0x47c,_0x548b0d:0x6bc,_0x4232a1:0x2b,_0x530de7:0x5b,_0x554abe:0x580,_0x8bca13:0x4c5,_0x4c5821:0x529,_0x33b46d:0xef,_0x408a8d:0x112,_0x1bf53b:0x172,_0x164b6c:0x487,_0x315031:0x528,_0x5f3311:0x525,_0x45788a:0x46d,_0xa57fa5:0x15,_0x5d917b:0x2,_0x244d03:0x37,_0x1104d5:0x61,_0x1bd014:0x2e,_0x473c22:0xb4,_0x60cfeb:0x69f,_0x12c456:0x608,_0xcb7aaf:0xb3,_0x4d498d:0x4b,_0x11c7f0:0x2f,_0x5208b2:0xd1,_0x211a1f:0xa0,_0x5230e4:0x493,_0x1a1113:0x5cd,_0x99d215:0x5d2,_0x54ad0e:0x474,_0x846de2:0x4e,_0x8f2e08:0x3b,_0x1d069c:0x44e,_0x18a7ac:0x54f,_0x37f331:0x552,_0x29a7c0:0x5d7,_0x214c1c:0x523,_0x459d70:0x5a4,_0x572c13:0x4dd,_0x1ab3a3:0x548,_0x49259f:0x5e0,_0x3f87d4:0x5ea,_0x3ce662:0x4dd,_0x4de3ba:0x491,_0x35db9b:0x418,_0x23e40c:0x4f0,_0x37233f:0x48a,_0x3b40e3:0x117,_0x157f9f:0x7d,_0x36aa68:0x2d,_0x4d42b3:0x54c,_0x3fc35e:0x415,_0x21013c:0x518,_0x5e8ae9:0xc1,_0x18cd3d:0x1ec,_0x6a3218:0x44a,_0xbbdc40:0x647,_0x4b050c:0x626,_0x2f6cef:0x5c3,_0x3c6a90:0x62c,_0x32e4c0:0x8d,_0xa635fc:0x5c,_0x5b5cd0:0x1d,_0xbcd26d:0x648,_0x1ad430:0x91,_0x427f5a:0x7,_0x2b3198:0x3a,_0x16ada7:0x683,_0x3703b8:0x50d,_0x58a506:0x3f8,_0x17bd4c:0x46a,_0x23a72f:0x6c,_0x45ff5a:0xb5,_0x203257:0x179,_0x13ebf0:0xfd,_0xd25de5:0x90,_0x2dd2cd:0x63},_0x3871b9={_0x4bc0a5:0x8d},_0x174c72=_0x16d92e[_0x317e30(-0x40,-_0x3a1d97._0x1023c5,-0x42,-_0x3a1d97._0x10606a)]('\x0a'),_0x1a06b6=_0x174c72[_0x43fe0b(0x4e9,0x51e,_0x3a1d97._0x5b8f33,0x459)](_0x5cdf91=>_0x5cdf91[_0x43fe0b(0x543,0x573,0x553,0x59d)](_0x43fe0b(0x499,0x55a,0x596,0x5b4)))?.[_0x317e30(-_0x3a1d97._0x67a988,-0x110,-_0x3a1d97._0x5b423a,-0xc6)](0x6)[_0x317e30(-_0x3a1d97._0x386273,-0x11c,-0xff,-0xd9)](),_0x115c43=_0x174c72[_0x317e30(0xce,-_0x3a1d97._0x583e2f,_0x3a1d97._0x7e3c45,0x11)](_0x5df32d=>_0x5df32d[_0x43fe0b(0x5eb,0x573,0x4ea,0x5dd)]('data:'))['map'](_0x3c3bf5=>_0x3c3bf5[_0x317e30(-0xcf,-0x188,-0xda,-0x26)](0x5)['trimStart']())[_0x43fe0b(0x5d3,0x5cc,0x577,0x5b0)]('\x0a')[_0x43fe0b(0x438,0x4ce,_0x3a1d97._0x108ebe,0x4b2)]();if(_0x115c43[_0x317e30(-_0x3a1d97._0x34f6e9,-_0x3a1d97._0x39acac,_0x3a1d97._0x2e2d7d,-0x8a)]===0x0||_0x115c43==='[DONE]')return[];function _0x317e30(_0x26e45e,_0x13e68a,_0x559275,_0x2fcc56){return _0x2e5e46(_0x26e45e-_0x3871b9._0x4bc0a5,_0x13e68a,_0x559275-0x1f,_0x559275- -0x628);}const _0x44a694=JSON[_0x43fe0b(_0x3a1d97._0x35117c,0x589,0x4d5,0x5bb)](_0x115c43);switch(_0x1a06b6){case _0x317e30(0xa8,_0x3a1d97._0x549677,0x8,-0x38):{const _0xf3bfa0=_0x44a694[_0x317e30(-0x8d,-0x11e,-_0x3a1d97._0x2dbdcf,-0x91)];this['messageId']=_0xf3bfa0?.['id']??this[_0x43fe0b(0x465,0x4e5,_0x3a1d97._0x2bcd96,0x44e)],this[_0x43fe0b(_0x3a1d97._0x403c8d,0x5c7,_0x3a1d97._0x32ba29,_0x3a1d97._0x126e2f)]=_0xf3bfa0?.[_0x43fe0b(0x577,0x5e9,_0x3a1d97._0x5caf17,_0x3a1d97._0x338465)]?.[_0x317e30(-0x123,-_0x3a1d97._0xfec7d1,-_0x3a1d97._0x2857ca,-_0x3a1d97._0x5a88b1)]??this[_0x43fe0b(0x53f,0x5c7,0x505,_0x3a1d97._0x1fa5f1)],this[_0x43fe0b(0x561,_0x3a1d97._0x37b2e9,0x447,0x466)]=_0xf3bfa0?.[_0x317e30(-0x5,-_0x3a1d97._0x3cba0d,_0x3a1d97._0x4368b1,0xa8)]?.['cache_read_input_tokens']??this['cacheReadInputTokens'],this[_0x43fe0b(_0x3a1d97._0x3fe1b5,0x5c3,0x523,0x666)]=_0xf3bfa0?.['usage']?.['cache_creation_input_tokens']??this[_0x317e30(0x4e,-0xcd,-_0x3a1d97._0x4e2f99,0x57)];break;}case _0x43fe0b(_0x3a1d97._0x5db952,0x53f,0x538,0x47e):{const _0x17b02b=typeof _0x44a694[_0x43fe0b(0x54a,_0x3a1d97._0x3a90ea,_0x3a1d97._0xd503c,0x6b7)]===_0x43fe0b(_0x3a1d97._0x2fbadc,_0x3a1d97._0xd9d44c,_0x3a1d97._0x3b88f0,0x541)?_0x44a694['index']:0x0,_0x17a410=_0x44a694['content_block'];if(_0x17a410?.[_0x317e30(-0x94,-_0x3a1d97._0x48e1b0,-0xa5,-0x17)]==='tool_use'&&_0x17a410['id']&&_0x17a410['name'])return this['blocks']['set'](_0x17b02b,{'id':_0x17a410['id'],'index':_0x17b02b,'inputJson':JSON[_0x317e30(-0x85,-0xbd,-0xf6,-0xdd)](_0x17a410[_0x43fe0b(0x549,_0x3a1d97._0x454a47,0x4ed,_0x3a1d97._0x34d2f3)]??{}),'kind':_0x317e30(0xc4,-0x41,0x7,-_0x3a1d97._0x3beba2),'name':_0x17a410[_0x43fe0b(_0x3a1d97._0x182965,_0x3a1d97._0x174185,0x5ca,_0x3a1d97._0x47d9b2)]}),[{'type':'tool_use_delta','id':_0x17a410['id'],'index':_0x17b02b,'name':_0x17a410[_0x43fe0b(0x5d7,0x540,0x57d,_0x3a1d97._0x4d3dbd)]}];if(_0x17a410?.[_0x317e30(-0x8e,-_0x3a1d97._0x39460b,-_0x3a1d97._0x59a764,-_0x3a1d97._0x21a11a)]===_0x317e30(0x5e,-0x8c,0x3b,-0x8d)){this[_0x43fe0b(0x57a,_0x3a1d97._0x49f600,0x56f,0x5a7)][_0x317e30(-0x193,-0x103,-_0x3a1d97._0x107ce6,-0x189)](_0x17b02b,{'index':_0x17b02b,'kind':_0x43fe0b(_0x3a1d97._0x5c2ee1,0x608,_0x3a1d97._0x3be871,0x5e0),'signature':typeof _0x17a410[_0x43fe0b(0x52a,0x4dd,0x4cf,_0x3a1d97._0x248b5f)]===_0x317e30(-0x7b,-_0x3a1d97._0x17f920,0xa,0xdc)?_0x17a410['signature']:'','thinking':typeof _0x17a410[_0x317e30(0x9,-_0x3a1d97._0x5f222c,-0x47,-_0x3a1d97._0xc5ad27)]===_0x317e30(-_0x3a1d97._0x1b5290,-_0x3a1d97._0x8a176b,_0x3a1d97._0x4e2f99,0x22)?_0x17a410['text']:typeof _0x17a410[_0x43fe0b(_0x3a1d97._0x189d5e,_0x3a1d97._0x342859,_0x3a1d97._0x1137e6,0x5ff)]==='string'?String(_0x17a410[_0x317e30(_0x3a1d97._0xf8a9e,-0x13,0x3b,_0x3a1d97._0x1bcb64)]):''});break;}if(_0x17a410?.[_0x317e30(-_0x3a1d97._0x1d0b47,-0xd4,-_0x3a1d97._0x59a764,-_0x3a1d97._0x5a94d8)]==='redacted_thinking'){this[_0x43fe0b(_0x3a1d97._0x3769ed,0x61a,_0x3a1d97._0xf064ad,_0x3a1d97._0x403607)][_0x43fe0b(0x526,_0x3a1d97._0x1df41f,_0x3a1d97._0x146a42,0x459)](_0x17b02b,{'index':_0x17b02b,'kind':_0x317e30(-0x71,0x64,_0x3a1d97._0x33ca47,-0x78),'data':typeof _0x17a410[_0x317e30(-0x194,-0xf6,-_0x3a1d97._0x4aba89,-0x4d)]==='string'?String(_0x17a410[_0x317e30(-_0x3a1d97._0x1d8bbc,-_0x3a1d97._0xafa197,-0x100,-_0x3a1d97._0x787e57)]):''});break;}this[_0x317e30(_0x3a1d97._0x5c7caf,-0x22,_0x3a1d97._0x5360d4,-0x7a)][_0x43fe0b(0x528,_0x3a1d97._0x2877c7,0x3d6,_0x3a1d97._0x34d20c)](_0x17b02b,{'index':_0x17b02b,'kind':_0x43fe0b(0x50f,0x586,_0x3a1d97._0x43ff56,0x4ed),'text':_0x17a410?.['text']??''});break;}case _0x43fe0b(_0x3a1d97._0x5ce045,_0x3a1d97._0xf450f2,_0x3a1d97._0x5925d1,_0x3a1d97._0x5a097c):{const _0x45b644=typeof _0x44a694[_0x43fe0b(_0x3a1d97._0x44aa0c,0x5f4,0x5dc,0x5a4)]===_0x317e30(-_0x3a1d97._0x379a08,-_0x3a1d97._0x343ccb,-_0x3a1d97._0x4a2dfd,-0x6b)?_0x44a694[_0x43fe0b(0x657,_0x3a1d97._0x197b4d,0x65a,_0x3a1d97._0x33acf0)]:0x0,_0xd7a4ad=this[_0x43fe0b(_0x3a1d97._0x3927c4,0x61a,_0x3a1d97._0x3b8350,_0x3a1d97._0x1fa5f1)][_0x43fe0b(_0x3a1d97._0x4d0287,_0x3a1d97._0x563684,_0x3a1d97._0x24e464,_0x3a1d97._0x155f45)](_0x45b644),_0x141952=_0x44a694['delta'];if(!_0xd7a4ad||!_0x141952?.[_0x317e30(-0x10a,_0x3a1d97._0x109b65,-0xa5,-0x9f)])break;if(_0x141952['type']===_0x43fe0b(_0x3a1d97._0x45c1fa,0x4b6,0x521,0x440)&&_0xd7a4ad['kind']===_0x43fe0b(0x5b4,_0x3a1d97._0x32ba0d,0x585,0x5b5)&&typeof _0x141952[_0x317e30(-_0x3a1d97._0x583943,-_0x3a1d97._0x14e171,-_0x3a1d97._0x11806d,0x3c)]===_0x317e30(0xb9,-_0x3a1d97._0x15acdf,0xa,-0x10))return _0xd7a4ad[_0x317e30(0x89,-_0x3a1d97._0x23c27b,-0x47,-_0x3a1d97._0x4c8c24)]+=_0x141952['text'],[{'type':_0x317e30(-0x14c,-0xd2,-0x138,-_0x3a1d97._0x1b6a5d),'index':_0x45b644,'text':_0x141952[_0x43fe0b(_0x3a1d97._0x194e01,_0x3a1d97._0x1dce53,0x4b4,0x4d3)]}];if(_0x141952[_0x317e30(-_0x3a1d97._0x4e2f99,-0xa4,-0xa5,-0xc)]===_0x43fe0b(_0x3a1d97._0xc546e5,_0x3a1d97._0x516564,0x5d4,0x521)&&_0xd7a4ad[_0x317e30(0xc,0xc0,0x61,-0x1d)]==='tool_use'&&typeof _0x141952[_0x43fe0b(_0x3a1d97._0x1b2363,0x4c5,0x572,0x41b)]==='string')return _0xd7a4ad[_0x43fe0b(0x6f8,0x628,_0x3a1d97._0x548b0d,0x5d8)]==='{}'&&(_0xd7a4ad[_0x317e30(-_0x3a1d97._0x4232a1,0xf4,_0x3a1d97._0x530de7,0x102)]=''),_0xd7a4ad['inputJson']+=_0x141952[_0x43fe0b(_0x3a1d97._0x554abe,_0x3a1d97._0x8bca13,_0x3a1d97._0x4c5821,0x4d7)],[{'type':_0x317e30(-_0x3a1d97._0x33b46d,-0x13f,-_0x3a1d97._0x408a8d,-_0x3a1d97._0x1bf53b),'id':_0xd7a4ad['id'],'index':_0x45b644,'inputDelta':_0x141952['partial_json']}];if(_0x141952[_0x43fe0b(_0x3a1d97._0x164b6c,_0x3a1d97._0x315031,_0x3a1d97._0x5f3311,_0x3a1d97._0x45788a)]===_0x317e30(-0x15,-0x86,-0xb3,-_0x3a1d97._0xa57fa5)&&_0xd7a4ad[_0x317e30(_0x3a1d97._0x5d917b,-_0x3a1d97._0x244d03,_0x3a1d97._0x1104d5,-_0x3a1d97._0x1bd014)]==='thinking'){const _0x587948=typeof _0x141952['thinking']===_0x317e30(0x32,-0x87,_0x3a1d97._0x4e2f99,_0x3a1d97._0x473c22)?String(_0x141952[_0x43fe0b(_0x3a1d97._0x60cfeb,_0x3a1d97._0x12c456,0x68d,0x6d5)]):'';if(_0x587948[_0x317e30(0x9e,-0xab,0x13,-_0x3a1d97._0xcb7aaf)]>0x0){_0xd7a4ad[_0x317e30(-0x24,-_0x3a1d97._0x4d498d,0x3b,-0x58)]+=_0x587948;if(isUserVisibleThinking(this[_0x317e30(-_0x3a1d97._0x11c7f0,-_0x3a1d97._0x5208b2,-_0x3a1d97._0x211a1f,-_0x3a1d97._0x5c7caf)]))return[{'type':_0x43fe0b(0x4cd,0x527,_0x3a1d97._0x5230e4,_0x3a1d97._0x1a1113),'index':_0x45b644,'thinking':_0x587948}];}}if(_0x141952[_0x43fe0b(_0x3a1d97._0x99d215,0x528,0x5dd,_0x3a1d97._0x54ad0e)]==='signature_delta'&&_0xd7a4ad[_0x317e30(_0x3a1d97._0x846de2,0x29,0x61,0xc1)]===_0x317e30(0xb4,0x9b,_0x3a1d97._0x8f2e08,-0x26)){const _0x17dbca=typeof _0x141952[_0x43fe0b(0x52a,0x4dd,_0x3a1d97._0x1d069c,_0x3a1d97._0x18a7ac)]===_0x43fe0b(_0x3a1d97._0x37f331,_0x3a1d97._0x29a7c0,_0x3a1d97._0x214c1c,0x54c)?String(_0x141952[_0x43fe0b(_0x3a1d97._0x459d70,_0x3a1d97._0x572c13,_0x3a1d97._0x1ab3a3,_0x3a1d97._0x32ba0d)]):'';if(_0x17dbca[_0x43fe0b(0x5ad,_0x3a1d97._0x49259f,0x553,_0x3a1d97._0x3f87d4)]>0x0){_0xd7a4ad[_0x43fe0b(0x54b,_0x3a1d97._0x3ce662,_0x3a1d97._0x4de3ba,_0x3a1d97._0x35db9b)]=_0x17dbca;if(isUserVisibleThinking(this['request']))return[{'type':'anthropic_signature_delta','index':_0x45b644,'signature':_0x17dbca}];}}break;}case _0x43fe0b(_0x3a1d97._0x23e40c,0x4f6,_0x3a1d97._0x37233f,0x551):{const _0x1d5c8d=_0x44a694[_0x317e30(-0xe,-_0x3a1d97._0x3b40e3,-_0x3a1d97._0x157f9f,-_0x3a1d97._0x36aa68)],_0x171830=_0x44a694[_0x43fe0b(0x51c,0x5e9,_0x3a1d97._0x4d42b3,0x590)];this['inputTokens']=_0x171830?.[_0x43fe0b(_0x3a1d97._0x3fc35e,0x4d9,0x57f,_0x3a1d97._0x21013c)]??this[_0x317e30(_0x3a1d97._0x5e8ae9,_0x3a1d97._0x244d03,-0x6,-0x41)],this['cacheReadInputTokens']=_0x171830?.[_0x317e30(-0x1de,-_0x3a1d97._0x18cd3d,-0x122,-_0x3a1d97._0x5208b2)]??this[_0x43fe0b(_0x3a1d97._0x6a3218,0x50c,0x4e8,0x4e6)],this[_0x43fe0b(_0x3a1d97._0xbbdc40,0x5c3,0x4f3,0x527)]=_0x171830?.['cache_creation_input_tokens']??this[_0x43fe0b(_0x3a1d97._0x4b050c,_0x3a1d97._0x2f6cef,_0x3a1d97._0x3c6a90,0x637)],this[_0x317e30(-_0x3a1d97._0x32e4c0,-_0x3a1d97._0xa635fc,-_0x3a1d97._0x5b5cd0,-0xd6)]=_0x171830?.[_0x317e30(-_0x3a1d97._0x583943,-0x5f,-_0x3a1d97._0x1d0b47,-0xaa)]??this[_0x317e30(-_0x3a1d97._0x17f920,-0xd4,-0x1d,0x30)],this['stopReason']=_0x1d5c8d?.[_0x43fe0b(_0x3a1d97._0xbcd26d,0x5ed,0x54d,0x631)]===_0x317e30(_0x3a1d97._0x1ad430,-0x2f,_0x3a1d97._0x427f5a,_0x3a1d97._0x2b3198)?_0x43fe0b(0x67d,0x5d4,0x5aa,_0x3a1d97._0x16ada7):_0x43fe0b(_0x3a1d97._0x3703b8,0x4a8,_0x3a1d97._0x58a506,_0x3a1d97._0x17bd4c);break;}case _0x317e30(-0x12c,-_0x3a1d97._0x583e2f,-0xb5,-_0x3a1d97._0x23a72f):{const _0x36b6d7=_0x44a694[_0x317e30(-0x14,-0x70,-_0x3a1d97._0x45ff5a,-0x151)];throw new ProviderStreamEventError(_0x36b6d7?.[_0x317e30(-_0x3a1d97._0x203257,-_0x3a1d97._0x13ebf0,-0x139,-_0x3a1d97._0xd25de5)]??_0x317e30(-_0x3a1d97._0x2dd2cd,-0x87,-0x8c,-0x4b),{'code':_0x36b6d7?.['type'],'retryable':!![]});}}function _0x43fe0b(_0x20c047,_0xb9a174,_0x13de85,_0x2231e0){return _0x2e5e46(_0x20c047-0x56,_0x2231e0,_0x13de85-0x1a7,_0xb9a174- -0x5b);}return[];}[_0x4784b8(-0x1d8,-0x10d,-0x99,-0x137)](){const _0x2804fc={_0x3223b7:0x30f,_0x136671:0x32a,_0x54b562:0x249,_0x4e840c:0x2e8,_0x2e6360:0x2c4,_0x1a7d9e:0x22c,_0x5009d4:0x1fb,_0x201f8e:0x2fc,_0x32ae04:0x37f,_0x136f9e:0x2de,_0x46773c:0x3c3,_0x3ca076:0x2e5,_0x5530fa:0x2c7,_0x183253:0x28a,_0x294ff4:0x334,_0x416ea2:0x39e,_0x2dfe45:0x366,_0x47bd36:0x20c,_0x27aca4:0x39c,_0x2efd15:0x2da,_0x31bb54:0x2d6,_0xbf40b2:0x3d1,_0x1f3eff:0x310,_0x43a73c:0x2c5,_0x27175d:0x2fc,_0x24e002:0x244,_0x1d9f7d:0x442,_0x31eb38:0x3d5,_0x52936c:0x3b2,_0x2bb700:0x328,_0xeee21f:0x327,_0x214cd4:0x29d,_0x3161f5:0x2a8,_0x53e2e3:0x326,_0x101cda:0x198,_0x5e45a3:0x3a8,_0x24890f:0x45f,_0x5d1c95:0x396,_0x5467e6:0x264,_0x174455:0x35c,_0x21203a:0x317,_0x4dc7f7:0x3b6,_0x329fa0:0x275,_0x2d938c:0x301,_0x42a97e:0xd9,_0x1f3da4:0x17c,_0xa46fef:0x162,_0x58a570:0x29f,_0x38b5b2:0x21d,_0x4c6f14:0x3c5,_0x58d8f6:0x22d,_0x4b904b:0x2f8,_0x4cd6ac:0x27e,_0x1f5fe1:0x253,_0x334f80:0x2bd,_0x22b1fd:0x362,_0x512aff:0x3aa,_0x4ff39c:0x2b8,_0x1d162a:0x35e,_0x549eaa:0x3e7,_0x2808c6:0x281,_0x1d8b07:0x1fb,_0x2730e8:0x228},_0x2de448={_0x4bdad4:0x51},_0x270021={_0x14feeb:0x1a4,_0x291547:0x3e2},_0x25de3e=Array[_0x2b7873(0x311,_0x2804fc._0x3223b7,0x262,_0x2804fc._0x136671)](this[_0x1ddb55(0x398,_0x2804fc._0x54b562,_0x2804fc._0x4e840c,0x359)][_0x2b7873(_0x2804fc._0x2e6360,0x19f,_0x2804fc._0x1a7d9e,0x1bb)]())[_0x2b7873(0x27e,0x32f,0x2a9,_0x2804fc._0x5009d4)]((_0x2cdf8b,_0x531a83)=>_0x2cdf8b['index']-_0x531a83['index']),_0x39f63c=[];function _0x2b7873(_0x576b7a,_0x55b3cd,_0x423f1b,_0x29030d){return _0x4784b8(_0x576b7a-0x138,_0x55b3cd-_0x270021._0x14feeb,_0x55b3cd,_0x423f1b-_0x270021._0x291547);}function _0x1ddb55(_0x24dda4,_0x42ac70,_0x3e0d3e,_0x3312f7){return _0x2e5e46(_0x24dda4-_0x2de448._0x4bdad4,_0x3312f7,_0x3e0d3e-0x59,_0x3e0d3e- -0x38d);}for(const _0x3accde of _0x25de3e){if(_0x3accde[_0x1ddb55(0x2f1,0x326,_0x2804fc._0x201f8e,0x315)]===_0x2b7873(_0x2804fc._0x32ae04,_0x2804fc._0x136f9e,0x321,_0x2804fc._0x46773c)){_0x3accde['text']['length']>0x0&&_0x39f63c[_0x1ddb55(0x29a,0x2f8,_0x2804fc._0x3ca076,0x22b)]({'type':_0x1ddb55(0x245,_0x2804fc._0x5530fa,0x254,0x30b),'text':_0x3accde[_0x2b7873(0x2fb,_0x2804fc._0x183253,0x321,_0x2804fc._0x294ff4)]});continue;}if(_0x3accde[_0x2b7873(0x389,0x417,0x3c9,_0x2804fc._0x416ea2)]===_0x1ddb55(_0x2804fc._0x2dfe45,0x350,0x2d6,_0x2804fc._0x47bd36)){_0x39f63c['push']({'type':_0x1ddb55(_0x2804fc._0x27aca4,_0x2804fc._0x2efd15,_0x2804fc._0x31bb54,0x23f),'thinking':_0x3accde[_0x2b7873(_0x2804fc._0xbf40b2,0x416,0x3a3,0x3a1)],'signature':_0x3accde['signature']});continue;}if(_0x3accde[_0x1ddb55(_0x2804fc._0x1f3eff,_0x2804fc._0x43a73c,_0x2804fc._0x27175d,_0x2804fc._0x24e002)]===_0x2b7873(_0x2804fc._0x1d9f7d,0x431,0x375,0x2d8)){_0x39f63c[_0x2b7873(_0x2804fc._0x31eb38,0x415,_0x2804fc._0x52936c,_0x2804fc._0x2bb700)]({'type':_0x1ddb55(_0x2804fc._0xeee21f,_0x2804fc._0x214cd4,_0x2804fc._0x3161f5,_0x2804fc._0x53e2e3),'data':_0x3accde[_0x2b7873(0x1d4,_0x2804fc._0x101cda,0x268,0x19e)]});continue;}_0x39f63c[_0x2b7873(_0x2804fc._0x5e45a3,_0x2804fc._0x24890f,0x3b2,_0x2804fc._0x5d1c95)]({'type':_0x1ddb55(_0x2804fc._0x5467e6,_0x2804fc._0x174455,0x2a2,0x293),'id':_0x3accde['id'],'name':_0x3accde['name'],'input':parseToolInput(_0x3accde[_0x1ddb55(0x366,_0x2804fc._0x21203a,0x2f6,_0x2804fc._0x4dc7f7)]['length']>0x0?_0x3accde['inputJson']:'{}')});}return parseAnthropicResponse({'id':this[_0x2b7873(_0x2804fc._0x329fa0,0x26a,0x280,_0x2804fc._0x2d938c)],'type':_0x1ddb55(_0x2804fc._0x42a97e,_0x2804fc._0x1f3da4,_0x2804fc._0xa46fef,0xab),'role':_0x2b7873(0x30d,_0x2804fc._0x58a570,0x2df,_0x2804fc._0x38b5b2),'content':_0x39f63c,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x2b7873(0x2fc,0x354,0x362,_0x2804fc._0x4c6f14)],'output_tokens':this[_0x1ddb55(_0x2804fc._0x58d8f6,_0x2804fc._0x4b904b,_0x2804fc._0x4cd6ac,0x2ab)],'cache_read_input_tokens':this[_0x2b7873(_0x2804fc._0x1f5fe1,_0x2804fc._0x334f80,0x2a7,_0x2804fc._0x22b1fd)],'cache_creation_input_tokens':this[_0x2b7873(_0x2804fc._0x512aff,_0x2804fc._0x4ff39c,_0x2804fc._0x1d162a,_0x2804fc._0x549eaa)]}},this[_0x1ddb55(_0x2804fc._0x2808c6,0x189,_0x2804fc._0x1d8b07,_0x2804fc._0x2730e8)]);}};function createAnthropicSurfaces(){const _0x19ddb2={_0x55d2a1:0x56b,_0x2b191b:0x513,_0x32bcdb:0x42f,_0x1b510e:0x4f8},_0xea625f={_0x4ae3be:0x5a5},_0x14815e={_0xc652fa:0x127,_0x5cdf5b:0x6dd};function _0x2d1e19(_0x151cd2,_0x2dca13,_0x328d4d,_0x46a46e){return _0x2e5e46(_0x151cd2-_0x14815e._0xc652fa,_0x151cd2,_0x328d4d-0x1d5,_0x2dca13- -_0x14815e._0x5cdf5b);}function _0x43652e(_0x37fbe1,_0x4a27ae,_0x161d64,_0x35529e){return _0x4784b8(_0x37fbe1-0x3a,_0x4a27ae-0xc6,_0x37fbe1,_0x161d64-_0xea625f._0x4ae3be);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x43652e(_0x19ddb2._0x55d2a1,0x4c8,_0x19ddb2._0x2b191b,0x4b6),'createRequest'(_0x15b876){return createAnthropicRequest(_0x15b876,![]);},'parseResponse'(_0x1f672b,_0x554c0f){return parseAnthropicResponse(_0x1f672b,_0x554c0f);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x43652e(_0x19ddb2._0x32bcdb,0x498,_0x19ddb2._0x1b510e,0x4f4),'createRequest'(_0x2ff401){return createAnthropicRequest(_0x2ff401,!![]);},'createStreamParser'(_0x592ef7){return new AnthropicMessagesStreamParser(_0x592ef7);}}];}var StaticModelSurfaceRouter=class{[_0x4784b8(-0x13a,-0x1c5,-0x12b,-0x101)];[_0x4784b8(-0x68,-0xc0,-0x1cd,-0x100)];constructor(_0xba4ab7){const _0x399d07={_0x41dd40:0x13c,_0x410f06:0x0},_0x34a193={_0x5d529a:0x65,_0x5a983d:0x63,_0x3916e6:0x53b};this['completeSurface']=_0xba4ab7[_0x28033d(0x6e,_0x399d07._0x41dd40,0x7f,_0x399d07._0x410f06)];function _0x28033d(_0x3629b6,_0x5bdfb8,_0x409819,_0x40c81b){return _0x2e5e46(_0x3629b6-_0x34a193._0x5d529a,_0x409819,_0x409819-_0x34a193._0x5a983d,_0x3629b6- -_0x34a193._0x3916e6);}this['streamSurface']=_0xba4ab7['stream'];}[_0x4784b8(-0x1c3,-0x185,-0xbc,-0x145)](_0xe4e57e,_0x99fe06){const _0x3b6932={_0x5996a7:0x22c,_0x144c04:0x259,_0x4f7e8:0x27a,_0x5a717f:0xdf},_0x2bdb8d={_0x4ac9bf:0x8a},_0x38076e={_0x16b162:0x124,_0x23ed6a:0x3db};function _0x34c5e0(_0x623c8d,_0x3c778e,_0x2a73d4,_0x50fd91){return _0x4784b8(_0x623c8d-0xce,_0x3c778e-_0x38076e._0x16b162,_0x623c8d,_0x3c778e-_0x38076e._0x23ed6a);}function _0x9beed7(_0x536512,_0x4c5703,_0x402c47,_0x341ab4){return _0x4784b8(_0x536512-_0x2bdb8d._0x4ac9bf,_0x4c5703-0x10d,_0x4c5703,_0x402c47-0x179);}return _0x99fe06[_0x34c5e0(0x25d,_0x3b6932._0x5996a7,0x1b7,_0x3b6932._0x144c04)]===_0x34c5e0(_0x3b6932._0x4f7e8,0x27c,0x1b9,0x1ec)?this[_0x9beed7(0x11a,_0x3b6932._0x5a717f,0x79,0xa2)]:this['completeSurface'];}};function trimTrailingSlashes(_0x288814){return _0x288814['replace'](/\/+$/,'');}function resolveApiCredential(_0xa89409,_0x36b3cb){const _0x37d25a={_0x494098:0x12b,_0x41d9a5:0x103};if(_0x36b3cb?.[_0x51d6e4(-_0x37d25a._0x494098,-0x12b,-0x1d5,-_0x37d25a._0x41d9a5)])return _0x36b3cb['credential'];function _0x51d6e4(_0x4caeed,_0x1cd6e3,_0x5ab9ac,_0x501f51){return _0x2e5e46(_0x4caeed-0x37,_0x1cd6e3,_0x5ab9ac-0x169,_0x501f51- -0x5ff);}if(!_0xa89409)return void 0x0;return{'kind':'api-key','value':_0xa89409};}function resolveSessionBaseUrl(_0x593f8e,_0x214715){const _0x45d387={_0x1931ab:0x614,_0x211e7b:0x526,_0xdeee40:0x5cd},_0x1c11dc={_0x3911f8:0x184,_0x3f47e0:0xb8};function _0x1dbbe7(_0x14ada3,_0x5b6ff0,_0x1e92db,_0x157678){return _0x2e5e46(_0x14ada3-_0x1c11dc._0x3911f8,_0x14ada3,_0x1e92db-_0x1c11dc._0x3f47e0,_0x157678- -0x63);}return trimTrailingSlashes(_0x214715?.[_0x1dbbe7(_0x45d387._0x1931ab,_0x45d387._0x211e7b,_0x45d387._0xdeee40,0x5d3)]?.['api']??_0x593f8e);}function toErrorMessage(_0x45192d){const _0x1bd1be={_0x1a276c:0x237,_0x141ed0:0x3d8,_0x1e393a:0x249,_0x4a49b1:0x301,_0x2b4f9f:0x258,_0xce5bb2:0x3b0,_0x17b855:0x353,_0x3a4126:0x45f},_0x2fbd9e={_0x5e9006:0x4f1},_0x3eb74f={_0x51034e:0x1a3};function _0x3003be(_0x2a6a11,_0x5caa03,_0x836e9,_0x55c0f0){return _0x4784b8(_0x2a6a11-_0x3eb74f._0x51034e,_0x5caa03-0x1a,_0x836e9,_0x2a6a11-0x3f9);}function _0x2d27f1(_0x2572f0,_0x47ae1a,_0x4615f4,_0x1bdfe8){return _0x4784b8(_0x2572f0-0xa1,_0x47ae1a-0x109,_0x47ae1a,_0x2572f0-_0x2fbd9e._0x5e9006);}if(_0x45192d instanceof Error&&_0x45192d[_0x3003be(0x246,0x1ab,0x2ae,_0x1bd1be._0x1a276c)][_0x3003be(0x392,_0x1bd1be._0x141ed0,0x33a,0x310)]>0x0)return _0x45192d[_0x3003be(0x246,_0x1bd1be._0x1e393a,_0x1bd1be._0x4a49b1,_0x1bd1be._0x2b4f9f)];return _0x2d27f1(0x3b4,_0x1bd1be._0xce5bb2,_0x1bd1be._0x17b855,_0x1bd1be._0x3a4126);}function createDefaultWebSocketFactory(){const _0x1f7ac7={_0x4a49b8:0x3a8};return({headers:_0x41881a,url:_0x4c7548})=>{const _0x55222d=globalThis[_0x2491d3(0x336,0x3c1,0x42e,_0x1f7ac7._0x4a49b8)];function _0x2491d3(_0x264cbe,_0x19fc85,_0x81ec16,_0x541cbf){return _0x1d50(_0x541cbf-0x14f,_0x81ec16);}return new _0x55222d(_0x4c7548,{'headers':_0x41881a,'protocols':[]});};}async function*iterateSseEvents(_0x289913,_0x507bd4){const _0x4fea75={_0x521e27:0x3a7,_0x34b6dd:0x3b2,_0x42d97c:0x3e4,_0x1ec3ea:0xa5,_0x2ebc27:0x100,_0x10e1a1:0x4a,_0xfa47a2:0xb1,_0xa37c87:0x444,_0x11ae99:0x38a,_0x1d7e80:0x420,_0x2e62bd:0x365},_0x479ecc={_0x26cb07:0x60,_0x8b64a0:0xea,_0x515be0:0x52,_0x308862:0x5ba,_0x45e1fe:0x661},_0x18959a={_0x387610:0x4c},_0x137b5e={_0x46553b:0xb9,_0x516857:0xf6},_0x1910b9={_0x4f86e7:0x19f,_0x1880d3:0x1a9};function _0x304cd0(_0x49cf38,_0x373f56,_0x525ff9,_0x20e41b){return _0x4784b8(_0x49cf38-_0x1910b9._0x4f86e7,_0x373f56-_0x1910b9._0x1880d3,_0x49cf38,_0x20e41b-0x4de);}function _0x54a9a7(_0x3226a1,_0x535f60,_0x113877,_0x1a6222){return _0x4784b8(_0x3226a1-_0x137b5e._0x46553b,_0x535f60-0x169,_0x3226a1,_0x1a6222-_0x137b5e._0x516857);}const _0x3efd3e=_0x289913[_0x304cd0(0x4e8,0x43d,0x511,0x444)]?.['getReader']();if(!_0x3efd3e)return;const _0x4f795f=new TextDecoder('utf-8');let _0x22bede='';const _0x27cd9d=addAbortListener(_0x507bd4,()=>{const _0x566b78={_0x3033ab:0x7d,_0x30297d:0x33,_0x2bcb67:0x1e6};function _0x4aef64(_0x46bf6d,_0x10287e,_0x3ad54b,_0x15998b){return _0x304cd0(_0x15998b,_0x10287e-_0x566b78._0x3033ab,_0x3ad54b-_0x566b78._0x30297d,_0x46bf6d-_0x566b78._0x2bcb67);}function _0x584f5b(_0x332b83,_0x121a12,_0x2e0582,_0xd2ea1e){return _0x304cd0(_0x121a12,_0x121a12-0x196,_0x2e0582-_0x18959a._0x387610,_0x2e0582- -0x4de);}void _0x3efd3e['cancel'](toAbortError(_0x507bd4?.[_0x584f5b(_0x479ecc._0x26cb07,-_0x479ecc._0x8b64a0,-_0x479ecc._0x515be0,-0x99)]))[_0x4aef64(_0x479ecc._0x308862,0x53a,0x686,_0x479ecc._0x45e1fe)](()=>{});});try{while(!![]){throwIfAborted(_0x507bd4);const {value:_0x36332d,done:_0x5cc09d}=await _0x3efd3e['read']();throwIfAborted(_0x507bd4);if(_0x5cc09d)break;_0x22bede+=_0x4f795f[_0x304cd0(_0x4fea75._0x521e27,0x438,_0x4fea75._0x34b6dd,_0x4fea75._0x42d97c)](_0x36332d,{'stream':!![]});while(!![]){const _0x4fa9f1=_0x22bede[_0x54a9a7(-_0x4fea75._0x1ec3ea,-_0x4fea75._0x2ebc27,-_0x4fea75._0x10e1a1,-_0x4fea75._0xfa47a2)]('\x0a\x0a');if(_0x4fa9f1===-0x1)break;const _0x5f3b36=_0x22bede['slice'](0x0,_0x4fa9f1);_0x22bede=_0x22bede[_0x304cd0(0x312,0x429,_0x4fea75._0xa37c87,_0x4fea75._0x11ae99)](_0x4fa9f1+0x2),_0x5f3b36['trim']()['length']>0x0&&(yield _0x5f3b36);}}_0x22bede+=_0x4f795f['decode'](),throwIfAborted(_0x507bd4),_0x22bede[_0x304cd0(0x35d,_0x4fea75._0x1d7e80,_0x4fea75._0x11ae99,_0x4fea75._0x2e62bd)]()['length']>0x0&&(yield _0x22bede);}finally{_0x27cd9d();}}async function waitForWebSocketOpen(_0x573708,_0x33078b){const _0x5948bf={_0x49d32b:0x8c,_0x256840:0x109},_0x336141={_0xe084e:0xa3,_0x130ba4:0x61,_0x33222f:0x9b,_0x474f94:0xf1,_0x56d8d6:0x5b,_0x3d9f0a:0x42,_0x26b273:0x9e,_0x438832:0x83,_0x1074f6:0xbf,_0x354d69:0x5,_0xe71d0d:0x55,_0x2adf18:0x4c,_0x2a808d:0x4f,_0x557a6c:0x95},_0x1391bf={_0x298970:0x346,_0x2ff8e3:0x34a,_0x39b184:0x4a9,_0x4aff19:0x4ec,_0x5435fd:0x408,_0x3dd06a:0x3c2,_0x3be3ea:0x475,_0x6c9402:0x3d3,_0x118927:0x35a,_0x5d58d1:0x3dd,_0x450f8e:0x2b8},_0x49b5f5={_0x1c52ff:0x32f,_0x5e1bb6:0x3dd},_0x19cab5={_0x5b06eb:0xe1,_0x38dfac:0x32,_0x1f0ddf:0xe1,_0x3ebe91:0x16f,_0x1c2da8:0x1b6,_0x2ce84d:0x113},_0x25a2c1={_0x3e990d:0x168,_0x64879c:0x192,_0x56fc1b:0x29};if(_0x573708['readyState']===WebSocket[_0x128e72(0x17,-_0x5948bf._0x49d32b,-0x5a,-_0x5948bf._0x256840)]){throwIfAborted(_0x33078b);return;}function _0x128e72(_0x179d0b,_0x1406f2,_0x350798,_0x5c52ef){return _0x4784b8(_0x179d0b-_0x25a2c1._0x3e990d,_0x1406f2-_0x25a2c1._0x64879c,_0x5c52ef,_0x1406f2- -_0x25a2c1._0x56fc1b);}throwIfAborted(_0x33078b),await new Promise((_0x545ec9,_0x5bc571)=>{const _0x5ddc30={_0x541775:0xba},_0x42421d={_0x2fa84a:0x15a},_0x4917e1={_0x16ee98:0x1b6},_0x32a5e7={_0x21006d:0x1ef,_0x328965:0x127,_0x4abf48:0x256,_0x1fa9df:0x304,_0x204740:0x321,_0x387302:0x254},_0x2001c4={_0x365109:0x250},_0x1c5714=()=>{_0x79d8d9(),_0x545ec9();},_0x433469=_0x532f63=>{function _0x48aafc(_0x90c618,_0x3185ac,_0x14ad91,_0xc446bd){return _0x1d50(_0x90c618-0xb7,_0x3185ac);}function _0x4b5c72(_0x3ca855,_0x4c2c33,_0x2acd57,_0xbeedff){return _0x1d50(_0xbeedff- -_0x2001c4._0x365109,_0x4c2c33);}_0x79d8d9(),_0x5bc571(new Error(_0x532f63[_0x4b5c72(-0x1ca,-0x7d,-_0x32a5e7._0x21006d,-_0x32a5e7._0x328965)]||_0x48aafc(_0x32a5e7._0x4abf48,_0x32a5e7._0x1fa9df,_0x32a5e7._0x204740,_0x32a5e7._0x387302)));},_0x148001=_0x20f8d0=>{function _0x512b2b(_0x35b258,_0x1bc96c,_0x1c498c,_0x474d21){return _0x1d50(_0x35b258-0x391,_0x1c498c);}function _0x5d8092(_0x5c8f31,_0x3500ec,_0x59f9c5,_0x55a9a1){return _0x1d50(_0x5c8f31- -0x36b,_0x3500ec);}_0x79d8d9();const _0x255f39=_0x20f8d0;_0x5bc571(new Error(_0x255f39[_0x5d8092(-_0x19cab5._0x5b06eb,-0x9a,-_0x19cab5._0x38dfac,-_0x19cab5._0x1f0ddf)]||_0x5d8092(-_0x19cab5._0x3ebe91,-_0x19cab5._0x1c2da8,-0x189,-_0x19cab5._0x2ce84d)));},_0x3eea6b=()=>{function _0x6070ee(_0x447f86,_0x11bd61,_0x12383f,_0x1384ef){return _0x1d50(_0x447f86-_0x4917e1._0x16ee98,_0x1384ef);}_0x79d8d9();function _0x4551b0(_0x3ca249,_0x1564cb,_0x2e2806,_0x5dadbc){return _0x1d50(_0x5dadbc- -0x20b,_0x1564cb);}_0x573708['readyState']===WebSocket[_0x6070ee(0x42f,0x4a0,0x380,0x4ab)]&&_0x573708[_0x6070ee(_0x49b5f5._0x1c52ff,_0x49b5f5._0x5e1bb6,0x2ad,0x2ad)](0x3e8,'aborted'),_0x5bc571(toAbortError(_0x33078b?.[_0x4551b0(0xc,0x58,-0x2a,0x7f)]));},_0x79d8d9=()=>{const _0xb53194={_0x3bd296:0x20b};_0x573708[_0x2429b7(0x2cd,0x35a,_0x1391bf._0x298970,_0x1391bf._0x2ff8e3)](_0x5a306d(_0x1391bf._0x39b184,0x569,_0x1391bf._0x4aff19,0x402),_0x1c5714),_0x573708[_0x5a306d(_0x1391bf._0x5435fd,0x3ce,_0x1391bf._0x3dd06a,_0x1391bf._0x3be3ea)](_0x5a306d(0x466,0x52b,0x3cf,0x4d7),_0x433469),_0x573708[_0x2429b7(_0x1391bf._0x6c9402,_0x1391bf._0x118927,0x385,_0x1391bf._0x5d58d1)](_0x2429b7(_0x1391bf._0x450f8e,0x384,0x315,0x3d6),_0x148001);function _0x2429b7(_0x3b6737,_0x258838,_0x573490,_0x7baf42){return _0x1d50(_0x258838-_0xb53194._0x3bd296,_0x3b6737);}function _0x5a306d(_0x4d233e,_0xfae6a3,_0x155897,_0x544863){return _0x1d50(_0x4d233e-0x2b9,_0xfae6a3);}_0x33078b?.['removeEventListener']('abort',_0x3eea6b);};function _0x7068e1(_0x25687a,_0x4788d8,_0x4fcdc1,_0x5b1cd0){return _0x128e72(_0x25687a-0xdd,_0x4788d8-_0x42421d._0x2fa84a,_0x4fcdc1-0x126,_0x25687a);}_0x573708[_0x7068e1(_0x336141._0xe084e,_0x336141._0x130ba4,-0x63,0xca)](_0x2dec10(-_0x336141._0x33222f,-_0x336141._0x474f94,-_0x336141._0x56d8d6,-_0x336141._0x3d9f0a),_0x1c5714),_0x573708['addEventListener'](_0x2dec10(-0x13b,-0x83,-_0x336141._0x26b273,-_0x336141._0x438832),_0x433469);function _0x2dec10(_0x121c67,_0x4fd859,_0x2186da,_0x4fcdbd){return _0x128e72(_0x121c67-0x1cd,_0x2186da-_0x5ddc30._0x541775,_0x2186da-0x67,_0x121c67);}_0x573708[_0x2dec10(-0x1c,-0x107,-0x3f,-0x84)](_0x7068e1(-_0x336141._0x1074f6,-0x32,_0x336141._0x354d69,-0xe5),_0x148001),_0x33078b?.[_0x7068e1(_0x336141._0xe71d0d,0x61,_0x336141._0x2adf18,-0x7)](_0x7068e1(-_0x336141._0x2a808d,0x7,0x6,_0x336141._0x557a6c),_0x3eea6b,{'once':!![]});});}function iterateWebSocketMessages(_0x54ac3d,_0x281f67){const _0x2b9af9={_0x74c0e6:0x3ec,_0x4e64f5:0x2e7,_0x367429:0x36f,_0x385993:0x28d,_0x2875bd:0x2de,_0x26dbc9:0x257,_0x22c642:0x370,_0x41445d:0x41d,_0x4dc275:0xf5,_0x146393:0x17e,_0x5818fa:0x144,_0x544580:0x318,_0x37ef34:0x377},_0x1cc304={_0x388fb9:0x6a,_0x2c318d:0xfc,_0x2a0909:0x5c,_0x1446cf:0x9,_0x4de6d3:0x214,_0x5e9823:0x295,_0x374357:0x2f3,_0xbb5036:0x96,_0x25c16d:0x1d,_0x416e31:0x329,_0x10a899:0x30d,_0x11ad36:0x2bf,_0x55544a:0x383},_0x5ededb={_0x350c8e:0x44,_0x3f4f7b:0xee,_0x250205:0x72,_0x297d1e:0x17,_0x2f5daa:0xac,_0x3162b1:0x6f,_0x23b1c2:0xf6,_0x5ec08b:0xc3,_0x3a671f:0x19,_0x4c8b7c:0x24,_0x21f55b:0x8,_0x31c2b9:0x67},_0x4b6336={_0x46f915:0x218},_0x526e46={_0x47391c:0x13},_0x1acac7={_0x39d2bc:0x233,_0x9ea5b9:0x4fb,_0xedcc2:0x4e9,_0x17895d:0xe7,_0x3be4dd:0xbd},_0xbf068={_0x376791:0x1e7,_0x1949cf:0x116,_0x71097c:0x120,_0x304a3f:0x22f,_0x735914:0x155},_0x267fc1={_0x104b99:0x26e,_0x168064:0x30a,_0x46285c:0x405,_0x547dcf:0x420,_0x3336f0:0x3d7,_0x3f713c:0x2e5,_0x53c6a1:0x1d8,_0x368606:0x261,_0x3d6353:0x2b9},_0x517b15={_0xb385e2:0x90},_0x5a2fd7=[];function _0x13b432(_0x2d4e28,_0x29be4e,_0x10dc6b,_0x37c703){return _0x4784b8(_0x2d4e28-0x16c,_0x29be4e-0x65,_0x10dc6b,_0x2d4e28- -_0x517b15._0xb385e2);}let _0x12d183=![],_0x4672c1,_0xbd14d2;const _0xe1801f=_0x567eb3=>{const _0x32de3b={_0xbabe7b:0x275};function _0x310191(_0x1dd355,_0x561ea7,_0x53b7b3,_0x1908cf){return _0x1d50(_0x53b7b3-0x50,_0x1908cf);}const _0x57d087=_0x567eb3;function _0x33b807(_0x5df2c9,_0x329572,_0x3e8f2e,_0x141840){return _0x1d50(_0x141840-_0x32de3b._0xbabe7b,_0x5df2c9);}try{_0x5a2fd7[_0x310191(0x293,0x245,0x2fc,0x2c2)](JSON[_0x310191(0x29a,0x2ca,_0x267fc1._0x104b99,_0x267fc1._0x168064)](String(_0x57d087[_0x33b807(0x38c,_0x267fc1._0x46285c,_0x267fc1._0x547dcf,_0x267fc1._0x3336f0)]))),_0xbd14d2?.(),_0xbd14d2=void 0x0;}catch(_0x5d9ba0){_0x4672c1=new Error(_0x310191(_0x267fc1._0x3f713c,_0x267fc1._0x53c6a1,_0x267fc1._0x368606,_0x267fc1._0x3d6353)+toErrorMessage(_0x5d9ba0)),_0xbd14d2?.(),_0xbd14d2=void 0x0;}},_0x1f4fe0=_0x2f042b=>{const _0x2c6ba2=_0x2f042b;_0x4672c1=new Error(_0x2c6ba2[_0x5ea706(-0x164,-_0xbf068._0x376791,-0x198,-_0xbf068._0x1949cf)]||_0x5ea706(-_0xbf068._0x71097c,-0x171,-_0xbf068._0x304a3f,-_0xbf068._0x735914)),_0xbd14d2?.();function _0x35ee00(_0x2a2aaf,_0x1b0bb7,_0x5b3be6,_0x5f1d32){return _0x1d50(_0x1b0bb7-0x3,_0x5f1d32);}function _0x5ea706(_0xc219d9,_0x396efd,_0x32fde9,_0x5d224d){return _0x1d50(_0x396efd- -0x310,_0xc219d9);}_0xbd14d2=void 0x0;},_0x7c4a44=_0x4f3f9f=>{const _0x136e18={_0x1f547a:0x385},_0x31816f=_0x4f3f9f;!_0x12d183&&_0x31816f[_0x3c351c(-_0x1acac7._0x39d2bc,-0x2e0,-0x214,-0x244)]!==0x3e8&&!_0x4672c1&&(_0x4672c1=new Error(_0x31816f[_0x17e43b(_0x1acac7._0x9ea5b9,_0x1acac7._0xedcc2,0x43e,0x50f)]||_0x3c351c(-0xd2,-_0x1acac7._0x17895d,-0x15f,-_0x1acac7._0x3be4dd)+_0x31816f['code']));function _0x3c351c(_0x4dea38,_0x46c4db,_0x563759,_0xcde8d){return _0x1d50(_0xcde8d- -_0x136e18._0x1f547a,_0x46c4db);}_0x12d183=!![],_0xbd14d2?.();function _0x17e43b(_0x1f178d,_0xd85683,_0x371a51,_0x52a332){return _0x1d50(_0x371a51-0x1b4,_0xd85683);}_0xbd14d2=void 0x0;};function _0x417b9b(_0x5211a3,_0x699002,_0x3e788d,_0x39e3dd){return _0x2e5e46(_0x5211a3-0x26,_0x39e3dd,_0x3e788d-_0x526e46._0x47391c,_0x5211a3- -0x262);}const _0x32b598=addAbortListener(_0x281f67,()=>{_0x4672c1=toAbortError(_0x281f67?.[_0x2ac14c(-_0x5ededb._0x350c8e,_0x5ededb._0x3f4f7b,_0x5ededb._0x250205,-_0x5ededb._0x297d1e)]);_0x54ac3d[_0x146661(0xa2,_0x5ededb._0x2f5daa,0x145,0x81)]===WebSocket[_0x146661(0x144,0xea,_0x5ededb._0x3162b1,_0x5ededb._0x23b1c2)]&&_0x54ac3d[_0x146661(-_0x5ededb._0x5ec08b,_0x5ededb._0x3a671f,_0x5ededb._0x4c8b7c,-0xa)](0x3e8,_0x2ac14c(-_0x5ededb._0x21f55b,0xd0,0x5a,-_0x5ededb._0x31c2b9));function _0x2ac14c(_0x4070cc,_0x31ce22,_0x1debcf,_0x471f77){return _0x1d50(_0x1debcf- -_0x4b6336._0x46f915,_0x471f77);}_0xbd14d2?.();function _0x146661(_0x4394f4,_0x32996d,_0x198ef0,_0x284534){return _0x1d50(_0x284534- -0x183,_0x4394f4);}_0xbd14d2=void 0x0;});return _0x54ac3d[_0x417b9b(0x370,_0x2b9af9._0x74c0e6,_0x2b9af9._0x4e64f5,_0x2b9af9._0x367429)](_0x417b9b(_0x2b9af9._0x385993,_0x2b9af9._0x2875bd,0x2c7,_0x2b9af9._0x26dbc9),_0xe1801f),_0x54ac3d[_0x417b9b(_0x2b9af9._0x22c642,_0x2b9af9._0x41445d,0x2e4,0x40d)](_0x13b432(-0x1bf,-_0x2b9af9._0x4dc275,-_0x2b9af9._0x146393,-0x247),_0x1f4fe0),_0x54ac3d[_0x13b432(-0x160,-_0x2b9af9._0x5818fa,-0xd9,-0xfc)](_0x417b9b(0x2dd,_0x2b9af9._0x544580,0x2e3,0x36b),_0x7c4a44),{async*[Symbol[_0x417b9b(_0x2b9af9._0x37ef34,0x322,0x374,0x443)]](){const _0x5a2bd2={_0x1837a0:0x1f3,_0x70e89a:0x2f};function _0x355069(_0x5631ad,_0x1a0856,_0x1ec4a6,_0x537a08){return _0x417b9b(_0x1ec4a6- -0x1e,_0x1a0856-0xa5,_0x1ec4a6-0x1b0,_0x537a08);}function _0x14724d(_0x49a49c,_0x159ba3,_0x4fdfed,_0x5a92b8){return _0x13b432(_0x4fdfed-_0x5a2bd2._0x1837a0,_0x159ba3-_0x5a2bd2._0x70e89a,_0x159ba3,_0x5a92b8-0x1f);}try{while(!![]){if(_0x4672c1)throw _0x4672c1;if(_0x5a2fd7[_0x14724d(_0x1cc304._0x388fb9,0x16b,_0x1cc304._0x2c318d,0xb5)]>0x0){yield _0x5a2fd7[_0x355069(0x1fc,0x218,0x289,0x2d5)]();continue;}if(_0x12d183)break;await new Promise(_0x1e0d7b=>{_0xbd14d2=_0x1e0d7b;});}}finally{_0x54ac3d['removeEventListener'](_0x14724d(-0x25,_0x1cc304._0x2a0909,-0x50,_0x1cc304._0x1446cf),_0xe1801f),_0x54ac3d[_0x355069(_0x1cc304._0x4de6d3,0x2d7,_0x1cc304._0x5e9823,0x35a)](_0x355069(0x269,0x37b,_0x1cc304._0x374357,0x25e),_0x1f4fe0),_0x54ac3d[_0x14724d(-_0x1cc304._0xbb5036,-_0x1cc304._0x25c16d,-0x2a,0x5e)](_0x355069(_0x1cc304._0x416e31,_0x1cc304._0x10a899,_0x1cc304._0x11ad36,_0x1cc304._0x55544a),_0x7c4a44),_0x32b598();}}};}function toWebSocketUrl(_0x454512,_0x254e12){const _0x229407={_0x3fa56b:0xc,_0x3bcc7e:0x29,_0xbf4d4:0x39c,_0x11d712:0x376,_0x15fa3d:0x397,_0x468cbf:0x21,_0x1b9930:0x106,_0x3f1d18:0x205,_0x39b666:0x286,_0x51378d:0x207,_0x49dd1f:0x25a,_0x7bc023:0x2b8},_0x154a6a={_0x3e57e4:0xca,_0x270c5d:0x178},_0x47522c={_0x239284:0x1c},_0x15c6d4=new URL(_0x254e12,_0x454512);_0x15c6d4[_0x26e339(_0x229407._0x3fa56b,_0x229407._0x3bcc7e,-0x4c,0xde)]=_0x15c6d4[_0x3fba6c(_0x229407._0xbf4d4,_0x229407._0x11d712,_0x229407._0x15fa3d,0x2bd)]==='https:'?_0x26e339(_0x229407._0x468cbf,0x4f,_0x229407._0x1b9930,0x18):_0x3fba6c(_0x229407._0x3f1d18,_0x229407._0x39b666,_0x229407._0x51378d,0x1f2);function _0x26e339(_0x1c7e80,_0x1228e3,_0x363166,_0x464113){return _0x4784b8(_0x1c7e80-0xc9,_0x1228e3-_0x47522c._0x239284,_0x464113,_0x1228e3-0x69);}function _0x3fba6c(_0x43c12d,_0x13f059,_0x146690,_0x447f10){return _0x2e5e46(_0x43c12d-_0x154a6a._0x3e57e4,_0x146690,_0x146690-_0x154a6a._0x270c5d,_0x13f059- -0x2ec);}return _0x15c6d4[_0x3fba6c(_0x229407._0x49dd1f,_0x229407._0x7bc023,0x360,0x228)]();}var ProviderSessionManager=class{[_0x2e5e46(0x5c1,0x5b1,0x62c,0x625)];[_0x2e5e46(0x6be,0x679,0x56e,0x639)];constructor(_0x591464){const _0xa3c5c7={_0x2121fe:0x542,_0x3062c7:0x51d},_0x50e00e={_0x3f6e35:0x135};function _0x4d6375(_0x3fea13,_0x1ed8e6,_0x5eb538,_0xaa6bca){return _0x2e5e46(_0x3fea13-0x2,_0x5eb538,_0x5eb538-_0x50e00e._0x3f6e35,_0x3fea13- -0xa6);}this[_0x4d6375(0x57f,_0xa3c5c7._0x2121fe,0x642,_0xa3c5c7._0x3062c7)]=_0x591464;}async[_0x2e5e46(0x671,0x62b,0x6e1,0x62a)](_0x36f84c){const _0x10e74f={_0x1cd024:0x134,_0x29d748:0xb3,_0x17b474:0xf8,_0x32e2c7:0x9f,_0x546126:0x156,_0x3be15f:0xe9,_0x3bcfe3:0x7e,_0x50e0b1:0x63,_0x200648:0xf1,_0x239a57:0x18},_0x5711cb={_0x264a66:0x586};function _0x19935b(_0x329084,_0x5e5bc1,_0xeaed1f,_0x3f01ac){return _0x2e5e46(_0x329084-0x18b,_0x3f01ac,_0xeaed1f-0x73,_0xeaed1f- -_0x5711cb._0x264a66);}function _0x40584d(_0x586f7f,_0x4d3aac,_0x112572,_0x8d9584){return _0x2e5e46(_0x586f7f-0x156,_0x112572,_0x112572-0x1ec,_0x586f7f- -0x71e);}return!this[_0x19935b(_0x10e74f._0x1cd024,0x103,_0x10e74f._0x29d748,0x62)]&&(this[_0x40584d(-0xe5,-0x57,-0x130,-0x67)]=this[_0x19935b(_0x10e74f._0x17b474,_0x10e74f._0x32e2c7,0x9f,_0x10e74f._0x546126)][_0x19935b(_0x10e74f._0x3be15f,_0x10e74f._0x3bcfe3,0xa4,_0x10e74f._0x50e0b1)](_0x36f84c)),structuredClone(await this[_0x19935b(_0x10e74f._0x200648,0xb2,_0x10e74f._0x29d748,_0x10e74f._0x239a57)]);}[_0x2e5e46(0x610,0x51a,0x5e6,0x589)](){const _0x47934d={_0x55c7b4:0x41c,_0x4bd7be:0x4e7,_0x2ec6f9:0x418},_0x2dae54={_0x246cbd:0x6b,_0x1671e6:0x152};function _0x34b20a(_0x545023,_0x4f9770,_0x2e289c,_0x3768a3){return _0x2e5e46(_0x545023-0x52,_0x3768a3,_0x2e289c-_0x2dae54._0x246cbd,_0x2e289c- -_0x2dae54._0x1671e6);}this[_0x34b20a(_0x47934d._0x55c7b4,0x4f8,_0x47934d._0x4bd7be,_0x47934d._0x2ec6f9)]=void 0x0;}};async function prepareProviderRequest(_0x115460,_0x2faadf={}){const _0x8617b0={_0x3d1cfe:0x173,_0x2568ce:0x14d,_0x591108:0x197,_0x969185:0x1ec,_0x4252ed:0x16b,_0xfe44a2:0x175},_0x48c5fa={_0x1de30e:0x1ce},_0x39c982={_0x30bbac:0x1f4,_0x4cbdb0:0xbd};let _0x243238={'request':structuredClone(_0x115460),'session':_0x2faadf[_0x3c81ee(_0x8617b0._0x3d1cfe,_0x8617b0._0x2568ce,_0x8617b0._0x591108,0x1c8)]?await _0x2faadf['sessionManager']['resolve'](_0x2faadf[_0x14293c(0x136,_0x8617b0._0x969185,_0x8617b0._0x4252ed,_0x8617b0._0xfe44a2)]):void 0x0};function _0x3c81ee(_0x887acb,_0x586864,_0xd51fc7,_0xe5ce9b){return _0x4784b8(_0x887acb-_0x39c982._0x30bbac,_0x586864-_0x39c982._0x4cbdb0,_0xd51fc7,_0x887acb-0x1ba);}for(const _0x367f2f of _0x2faadf['requestMutators']??[]){_0x243238=await _0x367f2f(_0x243238);}function _0x14293c(_0x5ced58,_0x35c420,_0x396ac2,_0x3db802){return _0x4784b8(_0x5ced58-_0x48c5fa._0x1de30e,_0x35c420-0x1ea,_0x3db802,_0x35c420-0x2da);}return _0x243238;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0x2e5e46(0x592,0x657,0x59b,0x585)];[_0x2e5e46(0x4b6,0x4ca,0x5c5,0x53c)];[_0x4784b8(-0x135,-0x18f,-0x139,-0x134)];[_0x4784b8(-0x15f,-0x6b,-0x18a,-0x127)];[_0x2e5e46(0x55e,0x5ea,0x5d9,0x545)];[_0x2e5e46(0x689,0x52f,0x550,0x5f7)];[_0x4784b8(-0x2a,-0x3c,0x3d,-0x3b)];[_0x2e5e46(0x555,0x4c1,0x4bb,0x526)];['router'];[_0x4784b8(-0x73,-0x83,-0xaf,-0x47)];[_0x2e5e46(0x655,0x6b9,0x708,0x66f)];[_0x2e5e46(0x51e,0x524,0x569,0x541)]=new Map();constructor(_0x4bda98){const _0x339fff={_0xc8745f:0x1b8,_0x22e108:0x20d,_0x32d84d:0x14f,_0x31eb7f:0x141,_0x5e3aac:0x217,_0x5a437d:0x1c4,_0x47cea6:0x1e8,_0x283805:0x277,_0x44c905:0x1a3,_0x4c7339:0x1f6,_0x397a38:0x2bb,_0x5614cc:0x12f,_0x5b8a08:0x1db,_0x5c6a46:0x11a,_0x2b5d3c:0x299,_0x373196:0x1cd,_0x52e141:0x178,_0x3b9eba:0x288,_0x5aaa95:0x1ac,_0x154bb1:0x6b,_0x55f838:0xa6,_0x3a4a96:0x130,_0x32d594:0x2ef,_0x5db098:0x390,_0x5e542f:0x3ab,_0x318681:0xd9,_0x40967e:0x136,_0x23ea92:0x52,_0x16ee89:0x1d5,_0x3ea419:0x205,_0x482cd5:0x22e,_0x388173:0x1c1,_0x4bf0bc:0x130,_0x513cb1:0x13d,_0x183e6c:0x190,_0x449553:0x39b,_0xaca2ec:0x278,_0x216c23:0x267,_0x2b2d00:0x1b4,_0x35503d:0x24f,_0x48688b:0x20b,_0x2524b8:0x1a4,_0x3325f9:0x195,_0x2a4f60:0x29b,_0x42269f:0x274,_0x42b57d:0xf0,_0x58d1bf:0x143,_0x2fc280:0x7e,_0x1ddb2d:0x107,_0x524a6e:0x107},_0x4bec45={_0x545bd6:0x1c,_0x2b71c1:0xdb,_0x155cbd:0x32a};this[_0x31d2fd(_0x339fff._0xc8745f,_0x339fff._0x22e108,_0x339fff._0x32d84d,_0x339fff._0x31eb7f)]=_0x4bda98['model'],this[_0x31d2fd(_0x339fff._0x5e3aac,_0x339fff._0x5a437d,0x110,_0x339fff._0x47cea6)]=_0x4bda98[_0x31d2fd(0x1e0,0x1c4,0x1a6,_0x339fff._0x283805)]??0x4000,this[_0x31d2fd(_0x339fff._0x44c905,_0x339fff._0x4c7339,0x2af,0x176)]=_0x4bda98[_0x31d2fd(_0x339fff._0x397a38,0x1f6,0x1b2,_0x339fff._0x5614cc)]?structuredClone(_0x4bda98[_0x2176bd(0x121,_0x339fff._0x5b8a08,_0x339fff._0x5c6a46,0x142)]):void 0x0,this['apiKey']=_0x4bda98['apiKey'];function _0x2176bd(_0x161689,_0x36cc42,_0x149b67,_0x2f5190){return _0x4784b8(_0x161689-0x8d,_0x36cc42-0xfd,_0x149b67,_0x161689-0x255);}this[_0x31d2fd(_0x339fff._0x2b5d3c,_0x339fff._0x373196,0x1ad,_0x339fff._0x52e141)]=_0x4bda98[_0x31d2fd(_0x339fff._0x3b9eba,_0x339fff._0x373196,0x203,0x142)],this['fetchImpl']=_0x4bda98[_0x2176bd(0x120,_0x339fff._0x5aaa95,_0x339fff._0x154bb1,_0x339fff._0x55f838)]??globalThis[_0x2176bd(0x120,0x82,0x81,_0x339fff._0x3a4a96)],this[_0x31d2fd(0x2e2,_0x339fff._0x32d594,0x361,_0x339fff._0x5db098)]=_0x4bda98[_0x31d2fd(0x2ce,0x2ef,0x363,_0x339fff._0x5e542f)],this[_0x2176bd(_0x339fff._0x318681,_0x339fff._0x40967e,_0x339fff._0x23ea92,0x4b)]=_0x4bda98['requestMutators']??[],this[_0x31d2fd(_0x339fff._0x16ee89,_0x339fff._0x3ea419,_0x339fff._0x482cd5,_0x339fff._0x388173)]=_0x4bda98[_0x2176bd(_0x339fff._0x4bf0bc,_0x339fff._0x513cb1,_0x339fff._0x183e6c,0xc7)],this[_0x31d2fd(_0x339fff._0x449553,0x2e3,0x362,_0x339fff._0xaca2ec)]=_0x4bda98[_0x2176bd(0x20e,_0x339fff._0x216c23,0x1e3,0x23f)]??(_0x4bda98[_0x31d2fd(0x100,_0x339fff._0x2b2d00,_0x339fff._0x35503d,_0x339fff._0x48688b)]?new ProviderSessionManager(_0x4bda98[_0x31d2fd(0x271,0x1b4,_0x339fff._0x2524b8,_0x339fff._0x3325f9)]):void 0x0),this[_0x2176bd(0x222,0x2e5,_0x339fff._0x2a4f60,0x211)]=_0x4bda98[_0x2176bd(0x222,_0x339fff._0x42269f,0x26a,0x19f)]??createDefaultWebSocketFactory();function _0x31d2fd(_0x27fd9a,_0x558f38,_0x1d8a47,_0x54b102){return _0x4784b8(_0x27fd9a-_0x4bec45._0x545bd6,_0x558f38-_0x4bec45._0x2b71c1,_0x1d8a47,_0x558f38-_0x4bec45._0x155cbd);}for(const _0x1e91cb of _0x4bda98[_0x2176bd(0xf4,_0x339fff._0x42b57d,_0x339fff._0x58d1bf,0x4f)]){this[_0x2176bd(0xf4,_0x339fff._0x2fc280,_0x339fff._0x1ddb2d,_0x339fff._0x524a6e)]['set'](_0x1e91cb['id'],_0x1e91cb);}}['complete'](_0x4e2dfe,_0x78b2a3){const _0x1db300={_0x10b6ed:0x21d,_0xcc6e68:0x22c},_0x34b9b7={_0x2f1b77:0x4c,_0x4e43a6:0x26b};function _0x73b605(_0x4af08d,_0x1f4223,_0x3bb0df,_0x5211fa){return _0x4784b8(_0x4af08d-_0x34b9b7._0x2f1b77,_0x1f4223-0x3e,_0x5211fa,_0x3bb0df-_0x34b9b7._0x4e43a6);}return this[_0x73b605(0x19b,_0x1db300._0x10b6ed,0x198,_0x1db300._0xcc6e68)](_0x4e2dfe,_0x78b2a3);}[_0x4784b8(-0x1fe,-0x1b2,-0x15c,-0x15f)](_0x4b23f6,_0x582135){const _0x255228={_0x1a8dd6:0x1a5,_0x3bf3e2:0x185,_0x1550f1:0x2d0};function _0x1b8ecd(_0x2c2156,_0x5aa562,_0x161a45,_0x498c38){return _0x2e5e46(_0x2c2156-_0x255228._0x1a8dd6,_0x5aa562,_0x161a45-_0x255228._0x3bf3e2,_0x161a45- -_0x255228._0x1550f1);}return this[_0x1b8ecd(0x30e,0x2e9,0x2cd,0x2e6)](_0x4b23f6,_0x582135);}async[_0x4784b8(-0xf7,-0xe8,-0xd3,-0xd3)](_0x37cb57,_0x500a2c){const _0x401bc2={_0x149ef0:0x1a9,_0x2676c4:0x10a,_0x47175a:0x10b,_0x495027:0xca,_0x533c93:0x15e,_0x43f8e8:0xc4,_0x2bde1f:0x12b,_0x11d434:0x61,_0x3e3ca3:0x2b3,_0x2ef750:0x25e,_0x302906:0x24f,_0x40edc5:0x18,_0x40d859:0x78,_0x44d9c6:0xe7,_0x140090:0x36},_0x370a50={_0x2cc437:0x357},_0x20d089={_0x228790:0xe5,_0x42dea2:0x1a};function _0x15c568(_0x5c05ea,_0x54ee1b,_0x780fa4,_0xfbd08b){return _0x4784b8(_0x5c05ea-_0x20d089._0x228790,_0x54ee1b-0x17b,_0x54ee1b,_0x5c05ea-_0x20d089._0x42dea2);}function _0x1b25b8(_0x4872a6,_0x10685b,_0x177a81,_0x491a03){return _0x4784b8(_0x4872a6-0x141,_0x10685b-0x9c,_0x491a03,_0x177a81-_0x370a50._0x2cc437);}const _0x851e9c=this[_0x15c568(-0xfa,-_0x401bc2._0x149ef0,-_0x401bc2._0x2676c4,-0x18a)](_0x37cb57),_0x46f44e=await this[_0x15c568(-_0x401bc2._0x47175a,-_0x401bc2._0x495027,-_0x401bc2._0x533c93,-_0x401bc2._0x43f8e8)][_0x15c568(-_0x401bc2._0x2bde1f,-_0x401bc2._0x11d434,-0xa9,-0x8b)](_0x851e9c,{'mode':_0x1b25b8(0x314,_0x401bc2._0x3e3ca3,_0x401bc2._0x2ef750,_0x401bc2._0x302906)});return this[_0x15c568(-_0x401bc2._0x40edc5,-_0x401bc2._0x40d859,-_0x401bc2._0x44d9c6,_0x401bc2._0x140090)](_0x851e9c,_0x46f44e,_0x500a2c);}async*[_0x4784b8(-0x159,-0xfd,-0xa4,-0x105)](_0x4c5c8b,_0x4a70d6){const _0x38809b={_0x486940:0x13f,_0x4f7f00:0x1b0,_0x36ec87:0xdb,_0x1b4e31:0x1da,_0x563183:0x128,_0x22836e:0xae,_0x4240bf:0x1e0,_0x4e655c:0x1f5,_0x5ad80b:0x225},_0x2f7167={_0x1f4150:0xe3},_0x22d7e7={_0x469320:0x179,_0x509691:0x6f},_0x7795fb=this['applyModelDefaults'](_0x4c5c8b),_0x1002bb=await this[_0x5cec41(0x129,0x16c,_0x38809b._0x486940,_0x38809b._0x4f7f00)][_0x5cec41(_0x38809b._0x36ec87,_0x38809b._0x1b4e31,_0x38809b._0x563183,0x190)](_0x7795fb,{'mode':_0x5cec41(_0x38809b._0x22836e,0x1c2,0x213,0x176)});function _0x9feb9(_0x2226d2,_0x5ed49e,_0x24a759,_0x3ceae7){return _0x4784b8(_0x2226d2-_0x22d7e7._0x469320,_0x5ed49e-_0x22d7e7._0x509691,_0x2226d2,_0x3ceae7-0x364);}function _0x5cec41(_0x1569a3,_0x36368b,_0xfc8743,_0x2636b2){return _0x4784b8(_0x1569a3-_0x2f7167._0x1f4150,_0x36368b-0x78,_0xfc8743,_0x2636b2-0x2d5);}yield*this[_0x9feb9(_0x38809b._0x4240bf,_0x38809b._0x4e655c,0x1d9,_0x38809b._0x5ad80b)](_0x7795fb,_0x1002bb,_0x4a70d6);}async[_0x4784b8(-0xdb,-0x96,-0xbf,-0x32)](_0x1f24d8,_0x4c4c55,_0x435ff5){const _0x1e5df1={_0x18ed3d:0x2a4,_0x357cb0:0x3b9,_0x53850d:0x141,_0x469758:0x166,_0x43d432:0x1c3,_0x67f5c4:0x23c,_0x1f1cda:0x1cd,_0x4d2543:0x3f2,_0x310fee:0x312,_0x430088:0x362,_0x510afe:0x313,_0xbe60f7:0x398,_0x37f840:0x1f9,_0x1e7704:0x179,_0x16c28f:0xe8,_0x2c62ac:0x337,_0x31c143:0x2d9,_0x24ad0c:0x21a,_0x40fa70:0x1f3,_0x3c3611:0x2aa,_0x5e383d:0x2bf,_0x20f939:0x391,_0x2c7cc8:0x20b,_0x4cc5a4:0x1f7,_0x3650e9:0x215},_0x16b2f0={_0xcd738b:0x1b9},_0x53f266={_0x9ea22:0xe9,_0x1bd37c:0x776};function _0x30edd3(_0x38a654,_0x63e1c3,_0x1432ab,_0x5248c8){return _0x2e5e46(_0x38a654-0x43,_0x38a654,_0x1432ab-_0x53f266._0x9ea22,_0x63e1c3- -_0x53f266._0x1bd37c);}const _0x2d5238=this[_0x30edd3(-0x247,-0x1e8,-0x29c,-_0x1e5df1._0x18ed3d)](_0x1f24d8);function _0x7d9976(_0x12a567,_0xe0f444,_0x4e9959,_0x2aa18f){return _0x4784b8(_0x12a567-0x149,_0xe0f444-_0x16b2f0._0xcd738b,_0x2aa18f,_0xe0f444-0x425);}const _0x1b10ab=this['getSurface'](_0x4c4c55);if(_0x1b10ab[_0x7d9976(0x2a8,0x329,_0x1e5df1._0x357cb0,0x262)]===_0x30edd3(-_0x1e5df1._0x53850d,-_0x1e5df1._0x469758,-_0x1e5df1._0x43d432,-0xc6)){const _0x329f21=await this[_0x30edd3(-_0x1e5df1._0x67f5c4,-0x1bb,-0x1b5,-_0x1e5df1._0x1f1cda)](_0x2d5238,_0x1b10ab,![],_0x435ff5);if(!_0x329f21['ok'])throw await this[_0x7d9976(0x335,0x3ae,0x2fe,0x417)](_0x329f21);if(!_0x1b10ab[_0x7d9976(0x340,0x380,_0x1e5df1._0x4d2543,_0x1e5df1._0x310fee)])throw new Error('Surface\x20'+_0x4c4c55+_0x7d9976(_0x1e5df1._0x430088,_0x1e5df1._0x510afe,_0x1e5df1._0xbe60f7,0x2c2));return _0x1b10ab[_0x30edd3(-_0x1e5df1._0x37f840,-_0x1e5df1._0x1e7704,-0x17c,-_0x1e5df1._0x16c28f)](await _0x329f21['json'](),_0x2d5238);}let _0x500d2f;for await(const _0x21a906 of this[_0x7d9976(0x223,0x2e6,_0x1e5df1._0x2c62ac,_0x1e5df1._0x31c143)](_0x2d5238,_0x4c4c55,_0x435ff5)){_0x21a906[_0x30edd3(-_0x1e5df1._0x24ad0c,-_0x1e5df1._0x40fa70,-0x127,-_0x1e5df1._0x3c3611)]===_0x7d9976(_0x1e5df1._0x5e383d,_0x1e5df1._0x20f939,0x3a8,0x453)&&(_0x500d2f=_0x21a906['response']);}if(!_0x500d2f)throw new Error(_0x30edd3(-0x24c,-0x194,-0x23f,-_0x1e5df1._0x2c7cc8)+_0x4c4c55+_0x30edd3(-0x28c,-_0x1e5df1._0x4cc5a4,-_0x1e5df1._0x3650e9,-0x13c));return _0x500d2f;}async*['streamViaSurface'](_0x1022bf,_0x3c1209,_0x4b3ecc){const _0x5409c9={_0x465d28:0x4e5,_0x24fa47:0x487,_0x1cd2ee:0x47a,_0x2f88dd:0x476,_0x679f2d:0x5b9,_0x55c1c3:0x5bf,_0x642c20:0x5fe,_0x2e62bf:0x5cb,_0x3def10:0x55d,_0x2048f3:0x592,_0x8cb7ba:0x4f5,_0xcba235:0x53a,_0x3a355d:0x56e,_0x118cc8:0x349,_0xa466d3:0x469},_0x1680c8={_0x256e74:0x69,_0x4bf0a9:0x1f2},_0x3205db={_0x427c3d:0xb1};function _0x5b3bde(_0x307b44,_0x36c3b3,_0x2894e8,_0x2b1445){return _0x2e5e46(_0x307b44-0xb7,_0x307b44,_0x2894e8-0x1d4,_0x2b1445- -_0x3205db._0x427c3d);}const _0x5e7b4e=this['applyModelDefaults'](_0x1022bf),_0x40bca4=this[_0x5b3bde(_0x5409c9._0x465d28,_0x5409c9._0x24fa47,0x530,_0x5409c9._0x1cd2ee)](_0x3c1209);if(_0x40bca4[_0x3190b0(0x544,0x403,0x3c8,_0x5409c9._0x2f88dd)]==='http-json'){const _0x5b32db=await this[_0x5b3bde(_0x5409c9._0x679f2d,0x52a,0x5a0,_0x5409c9._0x55c1c3)](_0x5e7b4e,_0x3c1209,_0x4b3ecc);yield{'type':_0x5b3bde(_0x5409c9._0x642c20,0x555,_0x5409c9._0x2e62bf,_0x5409c9._0x3def10),'response':_0x5b32db};return;}function _0x3190b0(_0x56e87a,_0x3ca45b,_0x29a575,_0x59be8a){return _0x4784b8(_0x56e87a-_0x1680c8._0x256e74,_0x3ca45b-_0x1680c8._0x4bf0a9,_0x56e87a,_0x59be8a-0x572);}if(_0x40bca4[_0x5b3bde(_0x5409c9._0x2048f3,0x50f,0x508,_0x5409c9._0x8cb7ba)]===_0x5b3bde(_0x5409c9._0xcba235,0x5a3,_0x5409c9._0x3a355d,0x544)){yield*this[_0x5b3bde(0x636,0x5a5,0x63a,0x5d1)](_0x5e7b4e,_0x40bca4,_0x4b3ecc);return;}yield*this[_0x3190b0(_0x5409c9._0x118cc8,0x3c3,_0x5409c9._0xa466d3,0x3e9)](_0x5e7b4e,_0x40bca4,_0x4b3ecc?.['signal']);}async[_0x4784b8(-0x91,-0xed,-0x1a8,-0x156)](_0x2cd175){const _0x311e15={_0x38294a:0x204,_0x39beaa:0x265},_0x1c8ae2={_0x13ffee:0x40c},_0x55a900={_0x161ff1:0x54b,_0x2df424:0xb9,_0x413330:0x139,_0x2c021c:0x61d,_0x331b2b:0x517,_0x101b6c:0x540,_0x20ec8c:0x5c7,_0x5a2990:0x17f,_0x2c6b51:0x23e,_0x236323:0x12a,_0x20fecb:0x1aa,_0x4f366b:0x1a0,_0x2da051:0x181,_0x333bec:0x230,_0x41808a:0x330,_0x2357b1:0x1d3,_0x87b6f4:0x27f,_0x22853a:0x1af,_0x314766:0xfd,_0xa05c5:0x675,_0x41d0a7:0x5ce,_0x3fa17d:0x61d,_0x4fae9e:0x5f2,_0x3bb382:0x57d,_0x36d4d2:0x4eb,_0x44777d:0x510,_0x1a61c5:0x435,_0x182ff0:0x1f7,_0x6e7237:0x137,_0x4bb94a:0x178,_0x1f352a:0x26f,_0x60cecf:0x1a0,_0x3592a0:0x118},_0x1d4ba6=async()=>{const _0x550c92={_0x5716ff:0x37c};function _0x118885(_0x56832d,_0x5954ec,_0xb016d,_0x4d446c){return _0x1d50(_0x5954ec- -0x3e2,_0xb016d);}const _0x309ab8=this['sessionManager']?await this[_0x23be19(0x567,0x611,0x6c0,_0x55a900._0x161ff1)][_0x118885(-0x188,-0x17e,-_0x55a900._0x2df424,-_0x55a900._0x413330)](_0x2cd175['signal']):void 0x0;function _0x23be19(_0x28013f,_0x36b552,_0x386975,_0x3e2365){return _0x1d50(_0x36b552-_0x550c92._0x5716ff,_0x3e2365);}const _0x52273c=this[_0x23be19(0x59d,_0x55a900._0x2c021c,0x658,0x673)]['resolveCredential'](this[_0x23be19(_0x55a900._0x331b2b,0x531,_0x55a900._0x101b6c,_0x55a900._0x20ec8c)],_0x309ab8);if(!_0x52273c)throw this[_0x118885(-_0x55a900._0x5a2990,-_0x55a900._0x2c6b51,-0x1d7,-0x204)]();const _0x23eb1c=await this[_0x118885(-_0x55a900._0x236323,-_0x55a900._0x20fecb,-0x1d7,-0x18d)]({'body':_0x2cd175[_0x118885(-0x1bb,-_0x55a900._0x4f366b,-_0x55a900._0x2da051,-_0x55a900._0x333bec)],'credential':_0x52273c,'session':_0x309ab8,'stream':![]},{'accept':_0x2cd175['accept']??_0x118885(-0x237,-0x264,-_0x55a900._0x41808a,-_0x55a900._0x2357b1),'includeContentType':_0x2cd175[_0x23be19(0x4db,0x5a8,0x5c6,0x5bb)]===_0x118885(-_0x55a900._0x87b6f4,-_0x55a900._0x22853a,-_0x55a900._0x314766,-0x131)});return this[_0x23be19(_0x55a900._0xa05c5,0x5ad,0x578,_0x55a900._0x41d0a7)](''+this[_0x23be19(0x63f,_0x55a900._0x3fa17d,_0x55a900._0x4fae9e,_0x55a900._0x3bb382)][_0x23be19(0x52f,_0x55a900._0x36d4d2,_0x55a900._0x44777d,_0x55a900._0x1a61c5)](this['baseUrl'],_0x309ab8)+_0x2cd175[_0x118885(-0x2d1,-0x248,-_0x55a900._0x182ff0,-0x1cd)],{'method':_0x2cd175[_0x118885(-_0x55a900._0x6e7237,-0x1b6,-0xfb,-_0x55a900._0x4bb94a)],'headers':_0x23eb1c,..._0x2cd175[_0x118885(-_0x55a900._0x1f352a,-_0x55a900._0x60cecf,-0x1db,-_0x55a900._0x3592a0)]!==void 0x0?{'body':JSON['stringify'](_0x2cd175['body'])}:{},'signal':_0x2cd175['signal']});};function _0x3d1c82(_0x9ff3d6,_0x10f3d5,_0x1dd345,_0x4c7b77){return _0x2e5e46(_0x9ff3d6-0x16e,_0x4c7b77,_0x1dd345-0xaa,_0x1dd345- -_0x1c8ae2._0x13ffee);}return await this[_0x3d1c82(_0x311e15._0x38294a,0x2f5,0x270,_0x311e15._0x39beaa)](_0x1d4ba6,_0x2cd175);}[_0x2e5e46(0x65c,0x5bf,0x6ea,0x65f)](_0x2e4ae4,_0xb386f0){const _0x18390a={_0x36b86c:0x2f6,_0x1f2240:0x294,_0xb3b050:0x423,_0x1259bc:0x328,_0x154881:0x316,_0xdd60ff:0x26a,_0x4721fa:0x2e8,_0x450b5f:0x349,_0x4150f2:0x233,_0x267b76:0x1eb,_0x351303:0x169},_0x43c000={_0x21dd87:0x1f4,_0x27f562:0x3f4},_0x2d32fd={_0x22cf9a:0x196};function _0x5579aa(_0x2f9dae,_0x5d4205,_0x2d3912,_0x52c91a){return _0x2e5e46(_0x2f9dae-0xc6,_0x5d4205,_0x2d3912-_0x2d32fd._0x22cf9a,_0x52c91a- -0x401);}const _0x408c0c=_0x2e4ae4?.['headers'][_0x3b40b5(0x354,_0x18390a._0x36b86c,_0x18390a._0x1f2240,_0x18390a._0xb3b050)](_0x3b40b5(_0x18390a._0x1259bc,0x2b2,_0x18390a._0x154881,_0x18390a._0xdd60ff));if(_0x408c0c){const _0x40061f=Number(_0x408c0c);if(Number['isFinite'](_0x40061f)&&_0x40061f>=0x0)return _0x40061f*0x3e8;const _0x47aeb8=Date[_0x3b40b5(0x336,_0x18390a._0x4721fa,_0x18390a._0x450b5f,0x313)](_0x408c0c);if(Number[_0x5579aa(0x1fb,_0x18390a._0x4150f2,0x30e,0x24d)](_0x47aeb8))return Math['max'](0x0,_0x47aeb8-Date[_0x5579aa(0xe3,_0x18390a._0x267b76,_0x18390a._0x351303,0x18c)]());}const _0x149037=DEFAULT_RETRY_DELAY_MS*0x2**_0xb386f0;function _0x3b40b5(_0x40df0f,_0x33be63,_0x160e67,_0x1f9e0e){return _0x4784b8(_0x40df0f-_0x43c000._0x21dd87,_0x33be63-0x10a,_0x160e67,_0x40df0f-_0x43c000._0x27f562);}if(_0x149037<RETRY_DELAY_STEP_CAP_MS)return _0x149037;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0xb386f0-0x5);}[_0x2e5e46(0x695,0x52a,0x56a,0x5dd)](_0x87f08d){const _0x39db6d={_0x4f7fe5:0x64a,_0x1ed84b:0x6f2,_0x23cb23:0x5fc},_0x24eed5={_0x171677:0x1e0};function _0x398c24(_0x1375e4,_0x382dc1,_0x40eac0,_0x53216f){return _0x2e5e46(_0x1375e4-_0x24eed5._0x171677,_0x40eac0,_0x40eac0-0x1c6,_0x1375e4- -0x34);}return RETRYABLE_HTTP_STATUSES[_0x398c24(_0x39db6d._0x4f7fe5,_0x39db6d._0x1ed84b,_0x39db6d._0x23cb23,0x69f)](_0x87f08d['status']);}[_0x4784b8(-0xfe,-0x2c,-0x185,-0xde)](_0x456547){return!isAbortError(_0x456547)&&_0x456547 instanceof TypeError;}['shouldRetryStreamAttemptError'](_0x36712e){const _0x1e7dcb={_0x5aee15:0x3b,_0x6201c5:0x18e,_0x34f055:0x5f6};function _0x21b9a1(_0x31dce5,_0x281078,_0x7337,_0x5610f8){return _0x4784b8(_0x31dce5-_0x1e7dcb._0x5aee15,_0x281078-_0x1e7dcb._0x6201c5,_0x281078,_0x31dce5-_0x1e7dcb._0x34f055);}return this[_0x21b9a1(0x518,0x5de,0x4cf,0x5a1)](_0x36712e)||isRetryableProviderStreamEventError(_0x36712e);}async[_0x2e5e46(0x587,0x6a2,0x64e,0x5e0)](_0x545fb5,_0x3c2f84){throwIfAborted(_0x3c2f84),await new Promise((_0x1fe7e7,_0x3c4546)=>{const _0x3d07a3={_0x47fabe:0x100,_0xb0ca9a:0x81},_0x183f48={_0x14e90a:0x18a};let _0x98a50e=![];const _0x3fa106=addAbortListener(_0x3c2f84,()=>{function _0x25b6b0(_0x51ed03,_0x415531,_0x157f80,_0x330a4){return _0x1d50(_0x51ed03- -_0x183f48._0x14e90a,_0x330a4);}if(_0x98a50e)return;_0x98a50e=!![],clearTimeout(_0x34b592),_0x3c4546(toAbortError(_0x3c2f84?.[_0x25b6b0(_0x3d07a3._0x47fabe,0x193,0x175,_0x3d07a3._0xb0ca9a)]));}),_0x34b592=setTimeout(()=>{_0x98a50e=!![],_0x3fa106(),_0x1fe7e7();},_0x545fb5);}),throwIfAborted(_0x3c2f84);}async['sendWithRetries'](_0x556418,_0x27f94c={}){const _0x29db6d={_0x414700:0x377,_0x55df5a:0x5f2,_0x2fde9c:0x56d,_0x1e3189:0x5e8,_0x252de3:0x611,_0x22de58:0x4f3,_0x33dfc7:0x514,_0x4161d1:0x569,_0x43c8d9:0x575,_0x22136d:0x544,_0x5d523b:0x5cb,_0x450849:0x619,_0x320eda:0x3bb,_0x50057f:0x3bf,_0x23447a:0x60b,_0x563fda:0x4bd,_0x24fd08:0x30f,_0x358b68:0x3d7,_0x23233b:0x49f,_0x4340b2:0x2f5},_0x4c6f8f={_0x3b43e0:0x38};function _0xb69ad0(_0x60b91e,_0x16dc81,_0x5112ce,_0x4c67cd){return _0x2e5e46(_0x60b91e-0x1f1,_0x16dc81,_0x5112ce-0x181,_0x60b91e- -0xea);}const {signal:_0xe0346c}=_0x27f94c;let _0x34389b=![];function _0x9b059e(_0x587425,_0x38f580,_0x5cbef8,_0x24ad6a){return _0x4784b8(_0x587425-_0x4c6f8f._0x3b43e0,_0x38f580-0x1e4,_0x5cbef8,_0x38f580-0x499);}for(let _0x2709a8=0x0;_0x2709a8<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x2709a8+=0x1){throwIfAborted(_0xe0346c);try{const _0x5bb459=await _0x556418();if(_0x5bb459[_0x9b059e(_0x29db6d._0x414700,0x3aa,0x428,0x376)]===0x191&&this[_0xb69ad0(0x571,_0x29db6d._0x55df5a,_0x29db6d._0x2fde9c,0x612)]&&!_0x34389b){_0x34389b=!![],this[_0xb69ad0(0x571,_0x29db6d._0x1e3189,_0x29db6d._0x252de3,0x523)]['invalidate']();continue;}if(!this[_0xb69ad0(_0x29db6d._0x22de58,0x47f,_0x29db6d._0x33dfc7,_0x29db6d._0x4161d1)](_0x5bb459)||_0x2709a8===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x5bb459;const _0x593ed2=this[_0xb69ad0(_0x29db6d._0x43c8d9,_0x29db6d._0x22136d,_0x29db6d._0x5d523b,_0x29db6d._0x450849)](_0x5bb459,_0x2709a8);await this['waitForRetry'](_0x593ed2,_0xe0346c);}catch(_0x18f4a7){if(!this[_0x9b059e(0x2fe,_0x29db6d._0x320eda,_0x29db6d._0x50057f,0x344)](_0x18f4a7)||_0x2709a8===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x18f4a7;const _0x96e8a4=this[_0xb69ad0(0x575,_0x29db6d._0x55df5a,_0x29db6d._0x23447a,_0x29db6d._0x563fda)](void 0x0,_0x2709a8);await this[_0x9b059e(_0x29db6d._0x24fd08,_0x29db6d._0x358b68,_0x29db6d._0x23233b,0x354)](_0x96e8a4,_0xe0346c);}}throw new Error(_0x9b059e(0x2a3,_0x29db6d._0x4340b2,0x2a6,0x37f));}['createMissingCredentialError'](){function _0x401123(_0x525b77,_0x44e1c3,_0x633aa8,_0x250d29){return _0x4784b8(_0x525b77-0x1e8,_0x44e1c3-0x1f,_0x44e1c3,_0x525b77-0x33d);}return this['providerAdapter'][_0x401123(0x205,0x1c6,0x285,0x171)]();}async[_0x2e5e46(0x68c,0x5bc,0x54e,0x5fe)](_0x4869a8,_0x2c982b){return await this['providerAdapter']['createHeaders'](_0x4869a8,_0x2c982b);}['mapApiError'](_0x469c3d){const _0x4961fc={_0x1436a7:0x1c3,_0x3499cc:0x354};function _0xb44af6(_0x133d60,_0x642438,_0x46b2ab,_0x4315a8){return _0x4784b8(_0x133d60-_0x4961fc._0x1436a7,_0x642438-0x71,_0x642438,_0x4315a8-_0x4961fc._0x3499cc);}return this['providerAdapter'][_0xb44af6(0x20c,0x29a,0x2da,0x21a)](_0x469c3d);}async[_0x4784b8(-0x37,0x1b,-0xc3,-0x77)](_0x4676e8){const _0x40bc3a={_0x11f471:0x3e1,_0x1bcb80:0x295};function _0xc0c6f2(_0x10b4bd,_0x3a7895,_0x45d591,_0x2e511f){return _0x2e5e46(_0x10b4bd-0x15a,_0x2e511f,_0x45d591-0x5a,_0x10b4bd- -0x2df);}return await this['providerAdapter'][_0xc0c6f2(0x34c,0x418,_0x40bc3a._0x11f471,_0x40bc3a._0x1bcb80)](_0x4676e8);}[_0x2e5e46(0x4b8,0x59d,0x54c,0x52b)](_0x3af2d6){const _0x38c499={_0x3d11b4:0x48c,_0x20b861:0x4cc},_0x562c4a={_0x4da2b0:0x6b,_0x4be99d:0x1be},_0x250dfb=this['surfaces']['get'](_0x3af2d6);if(!_0x250dfb)throw new Error(_0x288eec(0x3ff,_0x38c499._0x3d11b4,_0x38c499._0x20b861,0x4b9)+_0x3af2d6);function _0x288eec(_0x48da55,_0x4e2e68,_0x4cf518,_0x18f726){return _0x2e5e46(_0x48da55-0x1eb,_0x18f726,_0x4cf518-_0x562c4a._0x4da2b0,_0x4e2e68- -_0x562c4a._0x4be99d);}return _0x250dfb;}async[_0x2e5e46(0x606,0x69d,0x62f,0x653)](_0x3e1e84,_0x530aa2){const _0xa7582={_0x417637:0xd0,_0x40e77b:0x145,_0x501c1f:0x14d,_0x11850d:0x114,_0x217758:0x1a9,_0x91b172:0xe0,_0x29d673:0x3e,_0x184722:0x232,_0x6e3a5d:0x283,_0xabf52c:0x294,_0x3072cd:0x291,_0x5dda77:0x1dd,_0x4fc5fa:0x1a3,_0x8a9c13:0x148,_0x183980:0x172,_0x489f3c:0x10c,_0x19243a:0x136},_0x367964={_0xeb41bd:0x112,_0x15cfef:0x3a},_0x294fcd={_0x4eda71:0x20};function _0x26b5fd(_0x583db8,_0x85847,_0x14ef19,_0x44a058){return _0x2e5e46(_0x583db8-_0x294fcd._0x4eda71,_0x583db8,_0x14ef19-0x4c,_0x14ef19- -0x3d3);}const _0x33873c=toModelRequest(_0x3e1e84),_0x2ec0f7=await prepareProviderRequest(_0x33873c,{'sessionManager':this[_0x138429(0x2c,-0xd,-0x21,-_0xa7582._0x417637)],'requestMutators':this[_0x138429(-0xca,-0x142,-0x18f,-_0xa7582._0x40e77b)],'signal':_0x530aa2}),_0x203b4c=toChatRequest(_0x2ec0f7[_0x138429(-_0xa7582._0x501c1f,-0xe0,-_0xa7582._0x11850d,-0x136)]),_0x1e6390=this['providerAdapter']['resolveCredential'](this[_0x26b5fd(_0xa7582._0x217758,0x218,0x1a8,0x243)],_0x2ec0f7[_0x138429(-_0xa7582._0x91b172,-0x80,-_0xa7582._0x29d673,-0x89)]);if(!_0x1e6390)throw this['createMissingCredentialError']();function _0x138429(_0x2c0bc0,_0x492ed9,_0xb6aaea,_0x35f109){return _0x4784b8(_0x2c0bc0-0x185,_0x492ed9-_0x367964._0xeb41bd,_0xb6aaea,_0x492ed9-_0x367964._0x15cfef);}return{'baseUrl':this[_0x26b5fd(_0xa7582._0x184722,_0xa7582._0x6e3a5d,_0xa7582._0xabf52c,_0xa7582._0x3072cd)][_0x26b5fd(_0xa7582._0x5dda77,_0xa7582._0x4fc5fa,0x162,_0xa7582._0x8a9c13)](this[_0x26b5fd(0xa3,0xa7,_0xa7582._0x183980,0x234)],_0x2ec0f7[_0x138429(-_0xa7582._0x489f3c,-0x80,-_0xa7582._0x19243a,0x50)]),'credential':_0x1e6390,'request':_0x203b4c,'session':_0x2ec0f7['session']};}['applyModelDefaults'](_0x1c6a4e){const _0x16ae7e={_0x3950e0:0x207,_0xbde9b2:0x12a,_0x4b032c:0x115},_0x5d08c1={_0x5ba405:0x74,_0x2fdf46:0x2f5};function _0x12f074(_0x5181c3,_0x145f19,_0x350b3e,_0xbc93a9){return _0x4784b8(_0x5181c3-0x1c8,_0x145f19-0x156,_0xbc93a9,_0x5181c3-0x82);}function _0x57c48c(_0x497bd9,_0x27b3e5,_0x18e37f,_0x5cda67){return _0x4784b8(_0x497bd9-_0x5d08c1._0x5ba405,_0x27b3e5-0xdc,_0x27b3e5,_0x18e37f-_0x5d08c1._0x2fdf46);}return{...structuredClone(_0x1c6a4e),..._0x1c6a4e[_0x57c48c(0x1b0,_0x16ae7e._0x3950e0,0x1c1,_0x16ae7e._0xbde9b2)]===void 0x0&&this[_0x12f074(-0xb2,-0xc9,-_0x16ae7e._0x4b032c,-0x45)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};}async[_0x4784b8(-0xdc,-0xc0,-0x19a,-0xe7)](_0x1bc2fe,_0x316555,_0x3d1f41,_0x18851d={},_0x5c7489=!![]){const _0x494824={_0x2623ea:0x542,_0x2e7847:0x45a,_0x3ce79:0x4cc},_0x4cd8ed={_0x1c37d8:0xfa,_0x28dee7:0x100,_0x5d832f:0x8b,_0x57e91f:0x1c4,_0x131520:0x26a,_0x42ab66:0x9c,_0xc92273:0x7d,_0x11a6db:0xe,_0x14698c:0x2,_0xdd47d5:0x8a,_0x2d92f6:0x170,_0x50fde5:0xc4,_0x5d7973:0x1ca,_0x4e8719:0x11e,_0x11172c:0x1ce,_0x36c36f:0x21b,_0x84e2a9:0x19b,_0x5cc6a0:0x115,_0x2ce0f7:0x4e,_0x1e3c89:0x12b,_0x327d82:0x143,_0x217164:0xd5,_0x23d8ce:0x97,_0x249b43:0xd6,_0x40db45:0x90,_0x2f288e:0xca,_0x3847a4:0x10f,_0x195c30:0x148,_0x5b6b05:0x45,_0x287291:0x62,_0x197049:0xd0,_0x556f93:0x9d,_0x1fa3ec:0xa,_0x166e1e:0x8d,_0x1bd9ba:0x3e,_0x33872e:0x23,_0xa1e762:0x29,_0x3eed85:0x89,_0x435603:0xd5,_0x502a9e:0x1de,_0x1739cd:0x8,_0x40a90c:0xa2,_0x1a1f15:0xda},_0x4f4f8c={_0x545932:0x351},_0x53e67e={_0x1d4290:0x1b0};function _0xeae75d(_0xe748ad,_0x1f6a27,_0x551dce,_0x16f53f){return _0x2e5e46(_0xe748ad-0x9f,_0x1f6a27,_0x551dce-0x88,_0x16f53f- -_0x53e67e._0x1d4290);}const {signal:_0x3a2990}=_0x18851d,_0x4f41bc=async()=>{const _0x47e34b={_0x4c66f3:0x20e},_0x262ebf=await this['prepareChatRequest'](_0x1bc2fe,_0x3a2990);let _0x2cad41;try{_0x2cad41=_0x316555[_0x5027eb(-_0x4cd8ed._0x1c37d8,-_0x4cd8ed._0x28dee7,-_0x4cd8ed._0x5d832f,-0x68)](_0x262ebf['request']);}catch(_0x34d266){if(_0x34d266 instanceof Error)throw new ProviderRequestConstructionError(_0x34d266[_0x5027eb(-_0x4cd8ed._0x57e91f,-0x1ba,-0x228,-_0x4cd8ed._0x131520)]);throw _0x34d266;}if(!_0x2cad41['path'])throw new ProviderRequestConstructionError(_0x217fcf(-_0x4cd8ed._0x42ab66,_0x4cd8ed._0xc92273,_0x4cd8ed._0x11a6db,-0x37)+_0x316555['id']+_0x217fcf(0x43,-_0x4cd8ed._0x14698c,-0x4d,-0xe7));function _0x217fcf(_0x4bc5f9,_0x45ee65,_0x1feb6a,_0x557238){return _0x1d50(_0x1feb6a- -_0x47e34b._0x4c66f3,_0x557238);}function _0x5027eb(_0x55f1e2,_0x19d318,_0x1259b6,_0x1b3d5f){return _0x1d50(_0x1259b6- -_0x4f4f8c._0x545932,_0x55f1e2);}const _0x26fc78=await this[_0x5027eb(-_0x4cd8ed._0xdd47d5,-0x93,-0x119,-0x1d3)]({'request':_0x262ebf[_0x5027eb(-_0x4cd8ed._0x2d92f6,-_0x4cd8ed._0x50fde5,-0x18f,-_0x4cd8ed._0x5d7973)],'body':_0x2cad41[_0x5027eb(-_0x4cd8ed._0x4e8719,-0x154,-0x10f,-0x65)],'credential':_0x262ebf[_0x5027eb(-_0x4cd8ed._0x11172c,-0x284,-_0x4cd8ed._0x36c36f,-0x1d8)],'session':_0x262ebf[_0x5027eb(-_0x4cd8ed._0x84e2a9,-0x77,-0x12f,-_0x4cd8ed._0x5cc6a0)],'stream':_0x3d1f41},{'accept':_0x2cad41[_0x217fcf(_0x4cd8ed._0x2ce0f7,-0x82,-0x60,-_0x4cd8ed._0x1e3c89)]??(_0x3d1f41?_0x217fcf(-0x1d,-_0x4cd8ed._0x327d82,-_0x4cd8ed._0x217164,-_0x4cd8ed._0x23d8ce):_0x217fcf(-_0x4cd8ed._0x249b43,-0x10a,-_0x4cd8ed._0x40db45,0x2)),'includeContentType':_0x2cad41[_0x5027eb(-_0x4cd8ed._0x2f288e,-0x188,-_0x4cd8ed._0x3847a4,-_0x4cd8ed._0x195c30)]!==void 0x0});for(const [_0x5ee83b,_0x249692]of Object[_0x217fcf(0x3,_0x4cd8ed._0x5b6b05,0x86,_0x4cd8ed._0x287291)](_0x2cad41[_0x5027eb(-_0x4cd8ed._0x197049,-_0x4cd8ed._0x556f93,-0xae,_0x4cd8ed._0x1fa3ec)]??{})){_0x26fc78['set'](_0x5ee83b,_0x249692);}return this[_0x217fcf(-_0x4cd8ed._0x166e1e,-_0x4cd8ed._0x1bd9ba,_0x4cd8ed._0x33872e,-_0x4cd8ed._0xa1e762)](''+_0x262ebf[_0x217fcf(0x18,-_0x4cd8ed._0x3eed85,-0x8f,-0x158)]+_0x2cad41[_0x217fcf(-_0x4cd8ed._0x435603,-0xf5,-0x74,0x40)],{'method':_0x5027eb(-0xcb,-0x84,-0x11e,-_0x4cd8ed._0x502a9e),'headers':_0x26fc78,..._0x2cad41[_0x217fcf(-0x7,-0x24,0x34,0xab)]!==void 0x0?{'body':JSON[_0x217fcf(-0x45,-_0x4cd8ed._0x1739cd,-_0x4cd8ed._0x40a90c,-_0x4cd8ed._0x1a1f15)](_0x2cad41['body'])}:{},'signal':_0x3a2990});};return _0x5c7489?await this[_0xeae75d(_0x494824._0x2623ea,_0x494824._0x2e7847,0x418,_0x494824._0x3ce79)](_0x4f41bc,_0x18851d):await _0x4f41bc();}async*[_0x4784b8(-0x56,-0x34,0x50,-0x20)](_0x61113f,_0x151c14,_0x248a94={}){const _0x5c59d9={_0x32eb2e:0x61,_0x46b158:0x50,_0x185260:0x9b,_0x653296:0x363,_0x26af6e:0x234,_0x4d2f0e:0x2e9,_0x170089:0x335,_0x215b0f:0x450,_0x47a5fc:0x38f,_0x5147b7:0x472,_0x527743:0x443,_0x12b37b:0x2f2,_0x2e0d44:0x290,_0x16b7da:0x2e3,_0xc50b55:0x346,_0x4f6297:0x315,_0x27cb6f:0x50,_0x3fdbcd:0x24,_0x13006f:0x8,_0x59ecf1:0x237,_0x1b3b55:0x2f6,_0x2a49a4:0xfc,_0x39c7c6:0x41,_0x180235:0x1b,_0x4461f4:0x74,_0x1b7fb0:0x7b,_0x55f357:0xaf,_0x4bf07a:0x82,_0x4c0fe8:0x290,_0x18a63b:0x339,_0xd0af8d:0x344},_0x48f28c={_0x5a6447:0x6f,_0x76b3c0:0x32,_0x5433bb:0x13f},_0x15e809={_0x7ed7d2:0x110,_0x48d401:0x115,_0x2212e9:0x406},{signal:_0x1dfca9}=_0x248a94;function _0x38ffa3(_0x129f61,_0x5db666,_0x212c72,_0x1a07fe){return _0x4784b8(_0x129f61-_0x15e809._0x7ed7d2,_0x5db666-_0x15e809._0x48d401,_0x129f61,_0x1a07fe-_0x15e809._0x2212e9);}let _0x6b406c=![];function _0x389813(_0x2d9a75,_0x585748,_0x159719,_0x14f737){return _0x4784b8(_0x2d9a75-_0x48f28c._0x5a6447,_0x585748-_0x48f28c._0x76b3c0,_0x2d9a75,_0x159719-_0x48f28c._0x5433bb);}for(let _0x53af47=0x0;_0x53af47<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x53af47+=0x1){let _0x38744b=![];try{const _0x3d13a4=await this['sendHttpSurfaceRequest'](_0x61113f,_0x151c14,!![],_0x248a94,![]);if(_0x3d13a4[_0x389813(-_0x5c59d9._0x32eb2e,0x109,_0x5c59d9._0x46b158,_0x5c59d9._0x185260)]===0x191&&this['sessionManager']&&!_0x6b406c){_0x6b406c=!![],this[_0x38ffa3(0x302,0x347,_0x5c59d9._0x653296,0x3bf)][_0x38ffa3(_0x5c59d9._0x26af6e,_0x5c59d9._0x4d2f0e,_0x5c59d9._0x170089,0x2ed)]();continue;}if(!_0x3d13a4['ok'])throw await this[_0x38ffa3(_0x5c59d9._0x215b0f,0x390,0x458,_0x5c59d9._0x47a5fc)](_0x3d13a4);const _0x22e733=_0x151c14[_0x38ffa3(0x419,_0x5c59d9._0x5147b7,_0x5c59d9._0x527743,0x3eb)]?.(_0x61113f);if(!_0x22e733?.[_0x38ffa3(_0x5c59d9._0x12b37b,_0x5c59d9._0x2e0d44,0x36a,0x2f9)])throw new Error(_0x38ffa3(0x38f,0x291,_0x5c59d9._0x16b7da,_0x5c59d9._0xc50b55)+_0x151c14['id']+_0x38ffa3(_0x5c59d9._0x4f6297,0x3e0,0x337,0x3b1));for await(const _0xda7dc4 of iterateSseEvents(_0x3d13a4,_0x1dfca9)){const _0x3b656f=_0x22e733['consumeSseEvent'](_0xda7dc4);for(const _0x443f15 of _0x3b656f){_0x38744b=!![],yield _0x443f15;}}yield{'type':'done','response':_0x22e733[_0x389813(_0x5c59d9._0x27cb6f,_0x5c59d9._0x3fdbcd,_0x5c59d9._0x13006f,-0xc5)]()};return;}catch(_0x3f436e){if(_0x38744b||!this[_0x38ffa3(0x2ce,_0x5c59d9._0x59ecf1,0x2f6,_0x5c59d9._0x1b3b55)](_0x3f436e)||_0x53af47===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x3f436e;const _0x303df3=this[_0x389813(0x130,0x17d,_0x5c59d9._0x2a49a4,_0x5c59d9._0x39c7c6)](void 0x0,_0x53af47),_0x1c5b7f={'type':_0x389813(-0x8b,-0x36,_0x5c59d9._0x180235,-0x57),'attempt':_0x53af47+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x3f436e instanceof Error?_0x3f436e[_0x389813(-0x135,-0xcc,-_0x5c59d9._0x4461f4,-_0x5c59d9._0x1b7fb0)]:String(_0x3f436e),'delayMs':_0x303df3,'reason':this['shouldRetryRequestError'](_0x3f436e)?_0x389813(-_0x5c59d9._0x55f357,_0x5c59d9._0x4bf07a,-0x3e,0x9):'stream_error'};yield _0x1c5b7f,await this[_0x38ffa3(_0x5c59d9._0x4c0fe8,0x286,_0x5c59d9._0x18a63b,_0x5c59d9._0xd0af8d)](_0x303df3,_0x1dfca9);}}}async*[_0x4784b8(-0x19c,-0x12d,-0x22b,-0x189)](_0x3b236b,_0x3a2467,_0xf42a2c){const _0x508f11={_0x91f2d8:0x2bc,_0x388285:0x2ed,_0x3ec56e:0x286,_0x341ded:0x182,_0xe5bd78:0x144,_0x3a2949:0x15e,_0x15b2b3:0x8e,_0x3348b3:0xbd,_0x503f41:0xbf,_0x58faae:0x1c4,_0x8cdad2:0x267,_0x812ed7:0x278,_0x568d35:0x260,_0x4a9258:0x6b,_0x43cad9:0x29,_0x4ef4da:0x15a,_0x490690:0x8d,_0x2db391:0x129,_0x3a2037:0x273,_0xa68ddc:0x24f,_0x264a05:0x25a,_0x306962:0x202,_0x2e318e:0x151,_0x558b74:0x258,_0x19f25c:0x27f,_0xef3fbd:0x2b0,_0x165833:0x13b,_0x5f823d:0xbb,_0x499b4c:0xc7,_0x44607a:0x184,_0x49afdf:0x78,_0x308954:0x16b,_0x3bd3dd:0x13c,_0x5a3389:0xf6,_0x4322b5:0xfc,_0x57d11f:0x1c7,_0x1f124b:0x1e2,_0x393b81:0x214,_0xa6bef4:0x1d1,_0x1928b4:0x160,_0x313fb2:0x226,_0x51b949:0x22a,_0x450380:0x1cb,_0xbc606d:0x79,_0xc69f28:0x2,_0x20180b:0x23e,_0x259971:0x249,_0x47ef92:0x261,_0x552edb:0x244,_0x506744:0x286,_0x5e5369:0x12b,_0x42961f:0xa9,_0x2ae31b:0xf,_0x32b52e:0x4,_0x17ced6:0x41,_0x223c93:0x5,_0x3a7b0b:0x5,_0xb45854:0x52,_0x49235a:0x11a,_0x1766f2:0xe1,_0x46ac52:0x141,_0x184f23:0x1bf,_0x2b6b34:0x1e9,_0xe675fb:0x2c0,_0x39dbd4:0x208,_0x3eeec9:0x27b,_0x27e5d0:0x122,_0x3462a3:0x3e,_0x274e8f:0x7e,_0x4aef12:0x58,_0x35c6cc:0x30,_0x2095db:0x197,_0x67b9f4:0x171,_0x2852ca:0x1e7},_0x48995b={_0x41aa0f:0x89,_0x29a475:0x13,_0x506767:0x29c},_0x2bc385={_0x41b716:0x6a},_0x4c1455=await this[_0x331b65(_0x508f11._0x91f2d8,0x1fd,0x24d,0x2c4)](_0x3b236b,_0xf42a2c),_0x14855b=_0x3a2467[_0x331b65(0x2ac,_0x508f11._0x388285,_0x508f11._0x3ec56e,0x2e3)](_0x4c1455[_0x331b65(0x202,0x22c,_0x508f11._0x341ded,0x201)]),_0x38bd12=_0x3a2467[_0x5956bb(_0x508f11._0xe5bd78,0x1dd,_0x508f11._0x3a2949,0x150)]?.(_0x3b236b);if(!_0x38bd12?.[_0x5956bb(0x15f,_0x508f11._0x15b2b3,_0x508f11._0x3348b3,_0x508f11._0x503f41)])throw new Error(_0x5956bb(-0x27,0x4f,0x22,0xab)+_0x3a2467['id']+_0x331b65(0x29f,_0x508f11._0x58faae,0x1f2,_0x508f11._0x8cdad2));const _0x31a93f=_0x14855b[_0x331b65(0x2c3,_0x508f11._0x812ed7,0x258,_0x508f11._0x568d35)]??(_0x14855b[_0x5956bb(0x69,-0x96,-_0x508f11._0x4a9258,_0x508f11._0x43cad9)]?(''+_0x4c1455['baseUrl']+_0x14855b[_0x331b65(0x1a6,0x151,_0x508f11._0x4ef4da,0x146)])[_0x5956bb(0x12b,0xad,_0x508f11._0x490690,_0x508f11._0x2db391)](/^http:/,'ws:')[_0x331b65(_0x508f11._0x3a2037,_0x508f11._0xa68ddc,_0x508f11._0x264a05,0x1a7)](/^https:/,_0x5956bb(0x146,_0x508f11._0x306962,0x100,_0x508f11._0x2e318e)):void 0x0);if(!_0x31a93f)throw new ProviderRequestConstructionError('Surface\x20'+_0x3a2467['id']+_0x331b65(_0x508f11._0x558b74,0x2de,_0x508f11._0x19f25c,_0x508f11._0xef3fbd));const _0x43648b=await this[_0x5956bb(_0x508f11._0x165833,_0x508f11._0x5f823d,0x9c,_0x508f11._0x499b4c)]({'request':_0x4c1455['request'],'body':_0x14855b[_0x5956bb(_0x508f11._0x44607a,0x6f,_0x508f11._0x49afdf,0xe1)],'credential':_0x4c1455[_0x331b65(_0x508f11._0x308954,_0x508f11._0x3bd3dd,_0x508f11._0x5a3389,_0x508f11._0x4322b5)],'session':_0x4c1455[_0x331b65(_0x508f11._0x57d11f,0x1bf,_0x508f11._0x1f124b,_0x508f11._0x393b81)],'stream':!![]},{'accept':_0x14855b[_0x331b65(_0x508f11._0xa6bef4,_0x508f11._0x1928b4,0x16e,0x187)]??'application/json','includeContentType':![]});function _0x5956bb(_0xdb4175,_0x1924c3,_0x2c6118,_0x2e68ca){return _0x4784b8(_0xdb4175-0x169,_0x1924c3-_0x2bc385._0x41b716,_0x2c6118,_0x2e68ca-0x16b);}function _0x331b65(_0x4523ba,_0x17cde6,_0x561828,_0x218a6d){return _0x4784b8(_0x4523ba-_0x48995b._0x41aa0f,_0x17cde6-_0x48995b._0x29a475,_0x218a6d,_0x561828-_0x48995b._0x506767);}for(const [_0xac114,_0x202b91]of Object[_0x331b65(_0x508f11._0x313fb2,0x29c,0x254,0x1e5)](_0x14855b[_0x331b65(_0x508f11._0x51b949,0x331,0x263,0x325)]??{})){_0x43648b[_0x331b65(0x15d,_0x508f11._0x450380,_0x508f11._0x4322b5,_0x508f11._0xbc606d)](_0xac114,_0x202b91);}_0x43648b['delete'](_0x5956bb(0xf2,_0x508f11._0xc69f28,-0x10,0x3d));const _0x1de98a=this[_0x331b65(_0x508f11._0x20180b,0x321,0x269,_0x508f11._0x259971)]({'headers':Object['fromEntries'](_0x43648b[_0x331b65(_0x508f11._0x47ef92,0x254,0x254,_0x508f11._0x552edb)]()),'url':_0x31a93f});try{throwIfAborted(_0xf42a2c);_0x1de98a[_0x331b65(_0x508f11._0x506744,0x1c4,0x1c4,0x126)]!==WebSocket[_0x5956bb(_0x508f11._0x5e5369,0x1ba,0x16e,0x108)]&&await waitForWebSocketOpen(_0x1de98a,_0xf42a2c);throwIfAborted(_0xf42a2c);_0x14855b['initialEvent']!==void 0x0&&_0x1de98a[_0x5956bb(_0x508f11._0x42961f,0xab,-_0x508f11._0x2ae31b,_0x508f11._0x32b52e)](JSON[_0x5956bb(-_0x508f11._0x17ced6,_0x508f11._0x223c93,-0xb7,-_0x508f11._0x3a7b0b)](_0x14855b[_0x5956bb(_0x508f11._0xb45854,_0x508f11._0x49235a,0x1a3,_0x508f11._0x1766f2)]));for await(const _0x28d091 of iterateWebSocketMessages(_0x1de98a,_0xf42a2c)){yield*_0x38bd12[_0x5956bb(_0x508f11._0x46ac52,0x9e,-0x4,_0x508f11._0x503f41)](_0x28d091);if(_0x38bd12[_0x331b65(0x1b3,_0x508f11._0x306962,_0x508f11._0x184f23,_0x508f11._0x2b6b34)]?.())break;}yield{'type':_0x331b65(0x183,_0x508f11._0xe675fb,_0x508f11._0x39dbd4,_0x508f11._0x3eeec9),'response':_0x38bd12[_0x5956bb(-0x94,0x21,0xd9,0x34)]()};}finally{_0x1de98a[_0x5956bb(0x6,0xc9,_0x508f11._0x27e5d0,0x93)]===WebSocket['OPEN']&&_0x1de98a[_0x5956bb(-_0x508f11._0x3462a3,_0x508f11._0x274e8f,_0x508f11._0x4aef12,0x8)](0x3e8,_0xf42a2c?.['aborted']?_0x5956bb(_0x508f11._0x35c6cc,_0x508f11._0x2095db,0x11b,0x101):_0x331b65(0x281,_0x508f11._0x67b9f4,_0x508f11._0x2852ca,0x177));}}};async function createHttpError(_0xb15f89){const _0x55ff8f={_0x291c5b:0x341,_0x5148f7:0x3f7,_0x1b05c6:0x2e2,_0xa60424:0x1db,_0x46b951:0x3a2,_0x5a84c9:0x519,_0x2aa80c:0x31a,_0x4853e5:0x39f,_0x40b5b8:0x3ba},_0x577e9b={_0x3b4160:0x9f},_0x17fd11={_0x395673:0x86,_0x5a19b4:0x402};function _0x2b469c(_0x37c11e,_0x303902,_0xf2f097,_0xea7105){return _0x4784b8(_0x37c11e-0xe9,_0x303902-_0x17fd11._0x395673,_0x303902,_0x37c11e-_0x17fd11._0x5a19b4);}const _0x2a21bc=await _0xb15f89[_0x2b469c(_0x55ff8f._0x291c5b,0x2b5,_0x55ff8f._0x5148f7,0x2f1)]();function _0x587340(_0x3f491c,_0x434ea0,_0x6113a7,_0x4c9d60){return _0x2e5e46(_0x3f491c-_0x577e9b._0x3b4160,_0x4c9d60,_0x6113a7-0xe1,_0x434ea0-0x2);}const _0xe5d1a9=_0x2a21bc[_0x2b469c(0x289,_0x55ff8f._0x1b05c6,_0x55ff8f._0xa60424,0x1b8)]()||_0xb15f89[_0x2b469c(_0x55ff8f._0x46b951,0x3a9,0x3f8,0x32e)]||_0x587340(0x650,0x5a5,0x5fa,_0x55ff8f._0x5a84c9);return new Error(_0x2b469c(_0x55ff8f._0x2aa80c,0x334,_0x55ff8f._0x4853e5,0x279)+_0xb15f89[_0x2b469c(0x313,_0x55ff8f._0x40b5b8,0x2f3,0x26e)]+':\x20'+_0xe5d1a9);}var AnthropicProviderAdapter=class{[_0x4784b8(-0xaa,-0x24,-0x28,-0x68)];[_0x2e5e46(0x70b,0x6a8,0x6dd,0x643)];[_0x4784b8(-0x16d,-0x1f5,-0x18e,-0x19a)];constructor(_0x3b6121){const _0xb4fc9f={_0x5b1816:0x29,_0x26702e:0x161},_0x1f97a3={_0x3217fe:0x61a},_0x298a32={_0x161d45:0x187};this['authScheme']=_0x3b6121[_0x3319df(0x20,-0x2f,0xc0,0x65)];function _0x23c351(_0x304d83,_0xae0689,_0x582841,_0x320df3){return _0x4784b8(_0x304d83-0x5c,_0xae0689-0x67,_0x582841,_0x320df3-_0x298a32._0x161d45);}this[_0x3319df(_0xb4fc9f._0x5b1816,0xee,0x10,0x9b)]=_0x3b6121['headerResolver'];function _0x3319df(_0x459280,_0x3623eb,_0x4b4405,_0x2ee044){return _0x2e5e46(_0x459280-0xb9,_0x4b4405,_0x4b4405-0x69,_0x459280- -_0x1f97a3._0x3217fe);}this[_0x3319df(-0x112,-0x70,-_0xb4fc9f._0x26702e,-0x146)]=_0x3b6121['protocolVersion'];}['createMissingCredentialError'](){const _0x4ede9b={_0x505b68:0x116,_0x6f96e4:0x9};function _0xbef55c(_0x432391,_0x54b25d,_0x50174f,_0x407003){return _0x2e5e46(_0x432391-_0x4ede9b._0x505b68,_0x432391,_0x50174f-_0x4ede9b._0x6f96e4,_0x407003- -0x552);}return new Error(_0xbef55c(0x53,0xf7,0x180,0xc5));}async['createHeaders'](_0x46f01b,_0x53d735){const _0x528fb2={_0x3409cd:0x171,_0x125b89:0x17f,_0x149616:0x54,_0x2e5bc9:0x135,_0x1f0ddb:0x87,_0xb0a569:0xae,_0x1d2aff:0x15e,_0x58000a:0x217,_0x2b22be:0xdc,_0x50d1bb:0x171,_0xc5876b:0x73,_0x41e172:0x17a,_0x22c17f:0x2ae,_0x3f219:0x294,_0x3c48fe:0x2aa,_0x40a878:0x196,_0x1f6cd0:0x175,_0x1e4e48:0x48,_0x440071:0xd1,_0x5c0541:0x89,_0x4916a9:0x43,_0x2951fc:0x7,_0x3abbe8:0x2f,_0x1e30a6:0x19e,_0x154559:0x204,_0x262869:0x21e,_0x4461c6:0x22b,_0x2bac78:0x89,_0x393019:0x19,_0x23f2c7:0x69,_0x488fe6:0x122,_0x5a6212:0xe1,_0x4ef114:0xad},_0x785f1e={_0x47b183:0xca,_0x3c218e:0x673},_0x33c9e2={_0x4b2e0e:0x7a6},_0x3f3452=new Headers();_0x3f3452[_0x35162a(-0x172,-0xc7,-_0x528fb2._0x3409cd,-0x11e)]('accept',_0x53d735['accept']);function _0x553614(_0x4dc8b5,_0x37532b,_0x3c8867,_0x5e9978){return _0x2e5e46(_0x4dc8b5-0x1a4,_0x3c8867,_0x3c8867-0x44,_0x4dc8b5- -_0x33c9e2._0x4b2e0e);}_0x3f3452[_0x35162a(-0xfb,-_0x528fb2._0x125b89,-_0x528fb2._0x3409cd,-0x175)](_0x35162a(-_0x528fb2._0x149616,-_0x528fb2._0x2e5bc9,-_0x528fb2._0x1f0ddb,-_0x528fb2._0xb0a569),this[_0x35162a(-0x1ac,-_0x528fb2._0x1d2aff,-0x16b,-_0x528fb2._0x58000a)]);_0x53d735['includeContentType']!==![]&&_0x3f3452[_0x35162a(-0x13c,-_0x528fb2._0x2b22be,-_0x528fb2._0x50d1bb,-0x1cd)](_0x35162a(_0x528fb2._0xc5876b,-0x47,-0x5,0x6e),'application/json');this['authScheme']===_0x35162a(-0x132,-0x4a,-0xc6,-_0x528fb2._0x41e172)?_0x3f3452[_0x35162a(-0x135,-0xbb,-0x171,-0x184)]('authorization',_0x553614(-0x27c,-_0x528fb2._0x22c17f,-0x1f2,-_0x528fb2._0x3f219)+_0x46f01b[_0x553614(-_0x528fb2._0x3c48fe,-0x2f9,-0x32b,-0x280)][_0x35162a(-0x15e,-0x52,-0xd5,-0x18d)]):_0x3f3452[_0x35162a(-0x1c4,-_0x528fb2._0x40a878,-0x171,-_0x528fb2._0x1f6cd0)](_0x35162a(_0x528fb2._0x1e4e48,-_0x528fb2._0x440071,-_0x528fb2._0x5c0541,-_0x528fb2._0x4916a9),_0x46f01b['credential']['value']);function _0x35162a(_0x32f3b1,_0x180598,_0x25b855,_0x5a657f){return _0x2e5e46(_0x32f3b1-_0x785f1e._0x47b183,_0x5a657f,_0x25b855-0xef,_0x25b855- -_0x785f1e._0x3c218e);}const _0x2f9c5e=await this[_0x35162a(_0x528fb2._0x2951fc,-0x9b,-0x30,-_0x528fb2._0x3abbe8)]?.({'body':_0x46f01b[_0x553614(-_0x528fb2._0x1e30a6,-0xe2,-0xdc,-_0x528fb2._0x154559)],'credential':_0x46f01b['credential'],'request':_0x46f01b[_0x553614(-_0x528fb2._0x262869,-_0x528fb2._0x4461c6,-0x1a5,-0x29b)],'session':_0x46f01b['session'],'stream':_0x46f01b[_0x35162a(-0x145,-0x8a,-0x130,-0x1d4)]});for(const [_0x32ec2b,_0x27b311]of Object[_0x35162a(-_0x528fb2._0x2bac78,0x8d,-_0x528fb2._0x393019,_0x528fb2._0x23f2c7)](_0x2f9c5e??{})){_0x3f3452[_0x35162a(-_0x528fb2._0x488fe6,-_0x528fb2._0x5a6212,-0x171,-_0x528fb2._0x4ef114)](_0x32ec2b,_0x27b311);}return _0x3f3452;}[_0x4784b8(-0x1bb,-0x158,-0x97,-0x13a)](_0x81ac61){return _0x81ac61;}[_0x2e5e46(0x482,0x5c4,0x5cd,0x535)](_0x4c2032,_0x253d24){return resolveSessionBaseUrl(_0x4c2032,_0x253d24);}[_0x2e5e46(0x666,0x59b,0x61d,0x5ee)](_0x398041,_0x993a4b){return resolveApiCredential(_0x398041,_0x993a4b);}async[_0x4784b8(0x0,-0xaa,0x1f,-0x77)](_0x220abb){return await createHttpError(_0x220abb);}},AnthropicModel=class extends RoutedModel{constructor(_0x53e75c={}){const _0x34cb7c={_0x4e8f55:0x276,_0x18b8d5:0x30f,_0x451759:0x315,_0x5e64ed:0x34e,_0x1a9a54:0x39c,_0x1da18c:0x1fb,_0x59acfe:0x28b,_0x43fe84:0x26e,_0x2125dd:0x212,_0x38a5fd:0x278,_0x1749bc:0x304,_0x3bfdbe:0x361,_0x42694e:0x3be,_0x37adec:0x395,_0x383de6:0x3b9,_0x529574:0x2fb,_0x33424b:0x3c0,_0x1ee7e9:0x34b,_0x40382b:0x31f,_0x36f0ba:0x25c,_0x5e512d:0x1df},_0x52d458={_0x51f24c:0x1b,_0x2b3719:0x495},_0x5333a5={_0x5ad72d:0x17e,_0x428caa:0x395};function _0x1ab85c(_0x492ed5,_0xf60513,_0x45f47e,_0x1cccd0){return _0x4784b8(_0x492ed5-_0x5333a5._0x5ad72d,_0xf60513-0x162,_0x45f47e,_0x1cccd0-_0x5333a5._0x428caa);}function _0x4a5f71(_0x5ec3d0,_0xa61670,_0x4df4a2,_0x49fec8){return _0x4784b8(_0x5ec3d0-_0x52d458._0x51f24c,_0xa61670-0x1aa,_0x5ec3d0,_0x4df4a2-_0x52d458._0x2b3719);}super({'apiKey':_0x53e75c[_0x1ab85c(_0x34cb7c._0x4e8f55,_0x34cb7c._0x18b8d5,0x1af,0x26e)],'baseUrl':trimTrailingSlashes(_0x53e75c[_0x4a5f71(0x397,0x32c,0x338,_0x34cb7c._0x451759)]??'https://api.anthropic.com'),'fetch':_0x53e75c[_0x4a5f71(_0x34cb7c._0x5e64ed,_0x34cb7c._0x1a9a54,0x360,0x397)],'maxTokens':_0x53e75c[_0x1ab85c(_0x34cb7c._0x1da18c,0x2f5,0x185,0x22f)]??0x4000,'model':_0x53e75c[_0x1ab85c(_0x34cb7c._0x59acfe,_0x34cb7c._0x43fe84,_0x34cb7c._0x2125dd,_0x34cb7c._0x38a5fd)]??_0x1ab85c(_0x34cb7c._0x1749bc,0x39b,0x29a,0x359),'reasoning':_0x53e75c[_0x4a5f71(0x2d4,0x3f8,_0x34cb7c._0x3bfdbe,_0x34cb7c._0x42694e)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x53e75c['authScheme']??'x-api-key','headerResolver':_0x53e75c[_0x1ab85c(_0x34cb7c._0x37adec,_0x34cb7c._0x383de6,0x2a9,0x336)],'protocolVersion':_0x53e75c[_0x4a5f71(0x3a1,0x3bf,_0x34cb7c._0x529574,0x336)]??_0x4a5f71(0x362,0x3ed,_0x34cb7c._0x33424b,_0x34cb7c._0x1a9a54)}),'providerSessionResolver':_0x53e75c[_0x4a5f71(_0x34cb7c._0x1ee7e9,0x3b9,_0x34cb7c._0x40382b,_0x34cb7c._0x36f0ba)],'requestMutators':_0x53e75c[_0x1ab85c(0x200,0x29b,_0x34cb7c._0x5e512d,0x219)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x2e5e46(0x5b4,0x5a5,0x56f,0x5a9)](_0x39405f,_0x1ef1e0){function _0x43a77e(_0x5e92bc,_0x269b51,_0x918ebb,_0x5f4fb7){return _0x2e5e46(_0x5e92bc-0x152,_0x5f4fb7,_0x918ebb-0xa2,_0x269b51- -0x3c7);}return this[_0x43a77e(0x1e5,0x2a9,0x250,0x35d)](_0x39405f,ANTHROPIC_MESSAGES_SURFACE,_0x1ef1e0);}[_0x2e5e46(0x4f3,0x479,0x591,0x543)](_0x13e814,_0x136344){return this['streamViaSurface'](_0x13e814,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x136344);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x4784b8(-0x1bd,-0x108,-0x118,-0x1ac),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x2e5e46(0x563,0x4f8,0x5b6,0x556),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x2e5e46(0x5b9,0x5e3,0x5d5,0x537),OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{['status'];[_0x2e5e46(0x541,0x5a5,0x6d2,0x608)];constructor(_0x583f40,_0x36f15c,_0xd56179){const _0x2662e6={_0x5959a4:0x238,_0x17c32d:0x291,_0x5a03f8:0x18f,_0x1befc1:0x217,_0x4a6dd7:0x234,_0x13ee1f:0x2a1},_0x29b27d={_0x166c2e:0x1cc},_0x348ee0={_0x47012a:0x11f};super(_0xd56179),this[_0x39d2ee(0x245,_0x2662e6._0x5959a4,_0x2662e6._0x17c32d,0x28e)]=_0x39d2ee(_0x2662e6._0x5a03f8,_0x2662e6._0x1befc1,0x26c,_0x2662e6._0x4a6dd7);function _0x39d2ee(_0x1d93c8,_0x10924a,_0xd27da7,_0x10ca93){return _0x4784b8(_0x1d93c8-0x8d,_0x10924a-_0x348ee0._0x47012a,_0x1d93c8,_0x10924a-0x33f);}function _0x3330ac(_0x5adab4,_0x4c4473,_0x3ac09e,_0x565e7d){return _0x2e5e46(_0x5adab4-_0x29b27d._0x166c2e,_0x4c4473,_0x3ac09e-0x9b,_0x3ac09e- -0x408);}this['status']=_0x583f40,this[_0x39d2ee(0x1d9,0x2a5,0x28a,_0x2662e6._0x13ee1f)]=_0x36f15c;}};function stringifySystem(_0x567481){const _0x250f78={_0x4931b4:0x181,_0x422d76:0x82},_0x115b5c={_0x1cb2d3:0x64,_0x24c697:0x2ac},_0x3fa2f8={_0x5abea8:0xcd};function _0x4021cd(_0x38d762,_0x3ced35,_0x41b08,_0x258ec4){return _0x4784b8(_0x38d762-0xa9,_0x3ced35-0x127,_0x38d762,_0x41b08- -_0x3fa2f8._0x5abea8);}function _0x1406de(_0x2f6edf,_0x5f1829,_0x1fbd70,_0x5cf32f){return _0x2e5e46(_0x2f6edf-0xf5,_0x5f1829,_0x1fbd70-_0x115b5c._0x1cb2d3,_0x1fbd70- -_0x115b5c._0x24c697);}return _0x567481[_0x4021cd(-0x243,-0x229,-0x1a6,-0x263)](_0x44a5f8=>_0x44a5f8[_0x1406de(0x403,0x2c1,0x335,0x33f)])[_0x4021cd(-0xcd,-_0x250f78._0x4931b4,-0x148,-_0x250f78._0x422d76)]('\x0a\x0a');}function createToolDefinitions(_0x1583cf){const _0x1db298={_0x13a132:0x192,_0x4efe3d:0x39},_0x1c6f68={_0x8bffcc:0x4f};function _0x21dfc8(_0x269ece,_0xe741d5,_0x3b356a,_0x3ccbbd){return _0x2e5e46(_0x269ece-0x47,_0x269ece,_0x3b356a-_0x1c6f68._0x8bffcc,_0xe741d5- -0x699);}if(_0x1583cf['length']===0x0)return void 0x0;return _0x1583cf[_0x21dfc8(-_0x1db298._0x13a132,-0xd0,-_0x1db298._0x4efe3d,-0x14b)](_0x51f49b=>{return{'type':'function','function':{'name':_0x51f49b['name'],'description':_0x51f49b['description'],'parameters':_0x51f49b['input_schema']}};});}function isImageToolResultBlock(_0x10f0fa){const _0x2fb674={_0x34a2d4:0x192,_0x5a5440:0x1d5,_0x559580:0x171,_0x570754:0xbf,_0x413b25:0xed,_0x32c32e:0x1bd,_0x10b241:0x19b,_0x12311c:0x25c,_0x1cde33:0xd6,_0x56bc60:0xcf,_0x320742:0xa8,_0x2b7d76:0x219,_0x762d52:0xe6,_0x5d4b97:0x11c,_0x5c393b:0x19c,_0xe316d4:0x17f,_0x3e3fdd:0x19b,_0x29bf45:0x26d,_0x298565:0xa7,_0x2f916:0xcb,_0x558661:0xc1},_0x15b7bb={_0xe2e741:0x11,_0x551d0b:0xd3},_0x2979aa={_0x51cd30:0x130};function _0x592406(_0x5f56ca,_0x1dc12e,_0x39516e,_0x199913){return _0x2e5e46(_0x5f56ca-0x107,_0x1dc12e,_0x39516e-_0x2979aa._0x51cd30,_0x5f56ca- -0x496);}if(typeof _0x10f0fa!==_0x2f5495(-_0x2fb674._0x34a2d4,-_0x2fb674._0x5a5440,-0xca,-_0x2fb674._0x559580)||_0x10f0fa===null||Array[_0x592406(0x184,0x131,0x227,_0x2fb674._0x570754)](_0x10f0fa))return![];function _0x2f5495(_0x3c3475,_0x23e2a0,_0x8adbee,_0x2e4c46){return _0x4784b8(_0x3c3475-_0x15b7bb._0xe2e741,_0x23e2a0-_0x15b7bb._0x551d0b,_0x8adbee,_0x3c3475- -0x37);}const _0x5d79cb=_0x10f0fa;return _0x5d79cb[_0x592406(_0x2fb674._0x413b25,0x13d,0xf4,_0x2fb674._0x32c32e)]===_0x2f5495(-0x15d,-0x1cb,-0x166,-0x1f2)&&_0x5d79cb[_0x592406(_0x2fb674._0x10b241,0xdf,_0x2fb674._0x12311c,0xe9)]?.[_0x2f5495(-0x156,-0x1c6,-0x138,-_0x2fb674._0x1cde33)]===_0x592406(0x89,_0x2fb674._0x56bc60,0x118,_0x2fb674._0x320742)&&typeof _0x5d79cb[_0x592406(_0x2fb674._0x10b241,0x181,_0x2fb674._0x2b7d76,_0x2fb674._0x762d52)][_0x2f5495(-0x4a,-0x10a,-0x2d,-_0x2fb674._0x5d4b97)]===_0x592406(_0x2fb674._0x5c393b,_0x2fb674._0xe316d4,_0x2fb674._0x3e3fdd,_0x2fb674._0x29bf45)&&typeof _0x5d79cb['source']['data']===_0x2f5495(-_0x2fb674._0x298565,-_0x2fb674._0x2f916,-_0x2fb674._0x558661,-0x9a);}function getToolResultText(_0xad9133){const _0x134bbc={_0x133f24:0x18c,_0x43ea56:0xe7,_0x303b7c:0x212,_0x4a2c61:0x1e6,_0x28835f:0x190,_0xd6780f:0x5ff,_0x4aaad5:0x5fc},_0x205c1e={_0x404378:0x319,_0x538693:0x3ba,_0x42d07b:0x387,_0x58a73d:0x454,_0x319ccf:0x3f6},_0x1ab95e={_0x43f82e:0x12f},_0x3d7723={_0x4c9c32:0x1e6,_0x451800:0x7b,_0x4fe1cf:0x53},_0x247545={_0x3b34e0:0xa4};function _0x8dcdb6(_0x578d86,_0x1d27b5,_0x3caed1,_0x39e453){return _0x4784b8(_0x578d86-_0x247545._0x3b34e0,_0x1d27b5-0x4,_0x1d27b5,_0x3caed1-0x20b);}if(typeof _0xad9133===_0x8dcdb6(_0x134bbc._0x133f24,_0x134bbc._0x43ea56,0x19b,_0x134bbc._0x303b7c))return _0xad9133;function _0x4103f9(_0xa395c6,_0x1771f8,_0x141121,_0x411e3d){return _0x2e5e46(_0xa395c6-_0x3d7723._0x4c9c32,_0x141121,_0x141121-_0x3d7723._0x451800,_0xa395c6- -_0x3d7723._0x4fe1cf);}const _0x5c8d45=_0xad9133['filter'](_0x436ce6=>{const _0x591c46={_0x69bf95:0x14a};function _0x40d7e7(_0x4d8ae5,_0x4ea288,_0xc24bcc,_0x58255f){return _0x8dcdb6(_0x4d8ae5-0x142,_0x4ea288,_0x58255f-0x30a,_0x58255f-_0x1ab95e._0x43f82e);}function _0x31b9e4(_0x587c8c,_0x3ca605,_0x55583d,_0x1ebda4){return _0x8dcdb6(_0x587c8c-0x64,_0x3ca605,_0x587c8c-_0x591c46._0x69bf95,_0x1ebda4-0x15d);}return typeof _0x436ce6===_0x40d7e7(_0x205c1e._0x404378,0x37e,0x41d,_0x205c1e._0x538693)&&_0x436ce6!==null&&_0x436ce6[_0x40d7e7(_0x205c1e._0x42d07b,_0x205c1e._0x58a73d,0x442,_0x205c1e._0x319ccf)]===_0x40d7e7(0x465,_0x205c1e._0x58a73d,0x415,0x454);})['map'](_0x6d0f9c=>_0x6d0f9c[_0x4103f9(0x58e,0x4be,0x657,0x4d7)])[_0x8dcdb6(_0x134bbc._0x4a2c61,0x231,_0x134bbc._0x28835f,0x15d)]('\x0a\x0a')['trim']();return _0x5c8d45[_0x4103f9(0x5e8,_0x134bbc._0xd6780f,_0x134bbc._0x4aaad5,0x53d)]>0x0?_0x5c8d45:'Tool\x20returned\x20image\x20content.';}function getToolResultImages(_0x372d95){const _0xeb4557={_0x19fea0:0x102,_0x1f7239:0xf,_0x80f949:0x62,_0x48ce54:0x86,_0x359b13:0x7f},_0x5ee5ad={_0x5b099d:0xad,_0x17f18d:0x190,_0xc7b22c:0x12},_0x4d35bf={_0x404083:0x3a,_0x49f316:0xbc};function _0x8fc2f5(_0x1e485e,_0x7f303a,_0x5ea4a0,_0x323e11){return _0x4784b8(_0x1e485e-_0x4d35bf._0x404083,_0x7f303a-_0x4d35bf._0x49f316,_0x323e11,_0x5ea4a0-0x50a);}function _0x1b97d2(_0x58c89d,_0x4b4890,_0x5a5d71,_0x4a4fd8){return _0x4784b8(_0x58c89d-_0x5ee5ad._0x5b099d,_0x4b4890-_0x5ee5ad._0x17f18d,_0x4b4890,_0x5a5d71- -_0x5ee5ad._0xc7b22c);}return Array[_0x1b97d2(-0x145,-_0xeb4557._0x19fea0,-0x9a,-_0xeb4557._0x1f7239)](_0x372d95)?_0x372d95[_0x1b97d2(-0x73,-_0xeb4557._0x80f949,-_0xeb4557._0x48ce54,-_0xeb4557._0x359b13)](isImageToolResultBlock):[];}function parseToolInput2(_0x885d6b){const _0x5b6419={_0x19cf14:0x53d,_0x5e963a:0x4bc,_0x3201f6:0x4dc,_0x14b94b:0x496},_0x2744f5={_0x38a47f:0x1e9},_0x8871ba={_0x1c1e52:0xd8};function _0x435850(_0x37a9ab,_0x3a6f65,_0x39b5ee,_0x1842bc){return _0x2e5e46(_0x37a9ab-0x1a0,_0x3a6f65,_0x39b5ee-0x15b,_0x37a9ab- -_0x8871ba._0x1c1e52);}function _0x2a6f66(_0x55f03b,_0x253be9,_0x3899a6,_0x10680c){return _0x4784b8(_0x55f03b-_0x2744f5._0x38a47f,_0x253be9-0x12a,_0x3899a6,_0x10680c-0x523);}if(_0x885d6b[_0x2a6f66(0x46c,_0x5b6419._0x19cf14,0x498,_0x5b6419._0x5e963a)]===0x0)return{};try{return JSON[_0x2a6f66(0x3b5,_0x5b6419._0x3201f6,_0x5b6419._0x14b94b,0x465)](_0x885d6b);}catch{return _0x885d6b;}}function isResponsesReasoningItem(_0x2ae0b7){const _0x35be16={_0x30d7c3:0x3ad,_0x3d92f3:0x35a,_0x123ea7:0x342},_0x5078c1={_0x29a5ce:0x1d3};function _0x2364ab(_0x134d2c,_0x47dbbd,_0x4b888c,_0x29cc1e){return _0x2e5e46(_0x134d2c-0x12f,_0x4b888c,_0x4b888c-0xac,_0x134d2c- -0x716);}function _0x21b162(_0x145a3c,_0x4bd2f1,_0x5dcf16,_0x2eaf27){return _0x4784b8(_0x145a3c-_0x5078c1._0x29a5ce,_0x4bd2f1-0xa,_0x145a3c,_0x2eaf27-0x4cc);}return typeof _0x2ae0b7==='object'&&_0x2ae0b7!==null&&_0x21b162(0x408,0x3b8,0x2e9,_0x35be16._0x30d7c3)in _0x2ae0b7&&_0x2ae0b7['type']===_0x21b162(0x456,_0x35be16._0x3d92f3,_0x35be16._0x123ea7,0x398);}function isResponsesMessageItem(_0x228e14){const _0x1b91d8={_0x1b29b3:0xa0,_0xa66328:0xd1,_0x4d3472:0xd0,_0x52004e:0x20,_0x2e929c:0x62,_0x237c5c:0x62},_0x286241={_0x2c0bb9:0x141,_0x1d4078:0x151},_0x54638f={_0x13d3f6:0x1d5,_0x1103e8:0x1db};function _0x3d826c(_0x60dd22,_0x4699a9,_0x341711,_0xf0a761){return _0x2e5e46(_0x60dd22-_0x54638f._0x13d3f6,_0x4699a9,_0x341711-_0x54638f._0x1103e8,_0xf0a761- -0x661);}function _0x3a64e4(_0x59032b,_0x185561,_0x55f190,_0x5c8401){return _0x4784b8(_0x59032b-_0x286241._0x2c0bb9,_0x185561-_0x286241._0x1d4078,_0x59032b,_0x5c8401-0xbd);}return typeof _0x228e14===_0x3d826c(-0x182,-_0x1b91d8._0x1b29b3,-_0x1b91d8._0xa66328,-0x11a)&&_0x228e14!==null&&_0x3a64e4(-_0x1b91d8._0x4d3472,-_0x1b91d8._0x52004e,0x5c,-_0x1b91d8._0x2e929c)in _0x228e14&&_0x228e14[_0x3a64e4(-0x12e,-0x110,-0xeb,-_0x1b91d8._0x237c5c)]==='message';}function isResponsesFunctionCallItem(_0x5c7288){const _0x3ad83b={_0x226b78:0x495,_0x29dc73:0x45b,_0x8be622:0xf1,_0x3c4155:0xa3,_0x3ebb2f:0x51,_0x3dd954:0x4cb,_0x53e72a:0x48d,_0x3d95f4:0x3e3,_0xff6426:0x382},_0x421971={_0x9db2ac:0xd7},_0x5b34a7={_0x37667f:0x16c,_0x18c005:0x7c};function _0x4d4ccb(_0xf4b991,_0x1e0d8e,_0x3e29fa,_0x2d7eb7){return _0x4784b8(_0xf4b991-0xe5,_0x1e0d8e-_0x5b34a7._0x37667f,_0xf4b991,_0x3e29fa-_0x5b34a7._0x18c005);}function _0x2b85e6(_0x23f92b,_0x46da1c,_0x49e22a,_0x52f99d){return _0x2e5e46(_0x23f92b-_0x421971._0x9db2ac,_0x46da1c,_0x49e22a-0xcc,_0x52f99d- -0xf6);}return typeof _0x5c7288===_0x2b85e6(0x380,_0x3ad83b._0x226b78,_0x3ad83b._0x29dc73,0x451)&&_0x5c7288!==null&&_0x4d4ccb(-_0x3ad83b._0x8be622,-0xf5,-_0x3ad83b._0x3c4155,-_0x3ad83b._0x3ebb2f)in _0x5c7288&&_0x5c7288[_0x2b85e6(0x504,0x4ba,_0x3ad83b._0x3dd954,_0x3ad83b._0x53e72a)]===_0x2b85e6(0x45a,_0x3ad83b._0x3d95f4,_0x3ad83b._0xff6426,0x425);}function createContentBlocks(_0x56f1ec,_0x14e78d,_0x47440d){const _0x4afb0f={_0x22917b:0x1a3,_0x554b9e:0x218,_0x4432d9:0x13f,_0x53cf5d:0x14c,_0x33a6d2:0x1c2,_0x5408dd:0x188,_0x5c7dcb:0x17,_0x5bf19b:0xc3,_0x34bcf9:0xbb,_0x42aa50:0x174,_0x2d689a:0x208,_0x1df393:0x226,_0x34366c:0x24b,_0x7319f4:0x185,_0x2da8c9:0x128,_0x23af82:0x19f,_0x368002:0x67,_0x56b827:0x75,_0xca572a:0x1b7,_0x3281d5:0x10d,_0x103262:0x148,_0x3e609b:0x1b8,_0x21c7e0:0x19e,_0x345ca1:0x19d,_0x2b6770:0x192,_0x301f5c:0x14c,_0x3b25f2:0x11d,_0x420246:0x180,_0xe2328b:0x86,_0x2bf405:0x196,_0x44498e:0x1da,_0x3e6088:0x35,_0x5723a7:0xbf},_0x43994e={_0x2eb8ea:0x19,_0x42603d:0x17c},_0x3138da={_0x49ba60:0x731};function _0xbd2161(_0x42e376,_0x222b09,_0x7751bb,_0x4438fe){return _0x2e5e46(_0x42e376-0x13a,_0x7751bb,_0x7751bb-0xe4,_0x222b09- -_0x3138da._0x49ba60);}function _0x91802d(_0x7cc624,_0x1bd778,_0x251570,_0x267990){return _0x4784b8(_0x7cc624-0x41,_0x1bd778-_0x43994e._0x2eb8ea,_0x1bd778,_0x267990-_0x43994e._0x42603d);}const _0x1766fa=[];_0x47440d&&_0x47440d['length']>0x0&&_0x1766fa[_0x91802d(_0x4afb0f._0x22917b,_0x4afb0f._0x554b9e,_0x4afb0f._0x4432d9,_0x4afb0f._0x53cf5d)]({'type':_0xbd2161(-_0x4afb0f._0x33a6d2,-0x124,-_0x4afb0f._0x5408dd,-0xd2),'summary':[],'text':_0x47440d});_0x56f1ec['length']>0x0&&_0x1766fa['push']({'type':_0x91802d(0xda,_0x4afb0f._0x5c7dcb,_0x4afb0f._0x5bf19b,_0x4afb0f._0x34bcf9),'text':_0x56f1ec});for(const _0x57d890 of _0x14e78d){if(_0x57d890['id'][_0xbd2161(-_0x4afb0f._0x42aa50,-_0x4afb0f._0x2d689a,-_0x4afb0f._0x1df393,-0x1f9)]()['length']===0x0||_0x57d890[_0xbd2161(-_0x4afb0f._0x34366c,-_0x4afb0f._0x7319f4,-_0x4afb0f._0x2da8c9,-_0x4afb0f._0x23af82)][_0x91802d(_0x4afb0f._0x368002,0x10f,0x7e,_0x4afb0f._0x56b827)][_0xbd2161(-_0x4afb0f._0xca572a,-_0x4afb0f._0x2d689a,-0x23d,-_0x4afb0f._0x1df393)]()[_0x91802d(_0x4afb0f._0x3281d5,_0x4afb0f._0x103262,_0x4afb0f._0x3e609b,0x115)]===0x0)continue;_0x1766fa[_0x91802d(_0x4afb0f._0x21c7e0,_0x4afb0f._0x345ca1,_0x4afb0f._0x2b6770,_0x4afb0f._0x301f5c)]({'type':_0xbd2161(-_0x4afb0f._0x3b25f2,-0x102,-0x50,-_0x4afb0f._0x420246),'id':_0x57d890['id'],'name':_0x57d890[_0x91802d(0x2f,0x119,0x2a,_0x4afb0f._0xe2328b)][_0xbd2161(-0x1f5,-_0x4afb0f._0x2bf405,-_0x4afb0f._0x44498e,-0x1f1)],'input':parseToolInput2(_0x57d890['function'][_0x91802d(0x15c,_0x4afb0f._0x3e6088,0x161,_0x4afb0f._0x5723a7)])});}return _0x1766fa;}function createUsage(_0x11967c){const _0x3c38c7={_0x493e53:0x9a,_0x3046f1:0x16,_0x520ad9:0x6e,_0x515fa8:0x16c,_0x175b16:0xe1,_0x316088:0xc0,_0x25a9bd:0x142,_0x5e12f5:0x96,_0x9fc5c9:0x76,_0x2f06a7:0x51,_0x137502:0xcf,_0x48877e:0x3c},_0x5daedd={_0x16e54d:0x5d2},_0x4ecbf0={_0x42d90f:0x78};function _0x3cd643(_0x39c5bc,_0x32be4e,_0x262a2a,_0x34a0e4){return _0x2e5e46(_0x39c5bc-_0x4ecbf0._0x42d90f,_0x34a0e4,_0x262a2a-0xb,_0x32be4e- -0x697);}function _0x4f5ac2(_0x1b93cf,_0x7806cb,_0x132b17,_0x1653f1){return _0x2e5e46(_0x1b93cf-0x1c2,_0x7806cb,_0x132b17-0x16e,_0x1653f1- -_0x5daedd._0x16e54d);}return{'inputTokens':_0x11967c?.[_0x4f5ac2(-_0x3c38c7._0x493e53,0xaa,0x89,-_0x3c38c7._0x3046f1)]??0x0,'outputTokens':_0x11967c?.[_0x4f5ac2(-_0x3c38c7._0x520ad9,-_0x3c38c7._0x515fa8,-_0x3c38c7._0x175b16,-_0x3c38c7._0x316088)]??0x0,..._0x11967c?.['completion_tokens_details']?.[_0x3cd643(-_0x3c38c7._0x25a9bd,-0xc7,-_0x3c38c7._0x5e12f5,-0x60)]!==void 0x0?{'reasoningTokens':_0x11967c[_0x4f5ac2(_0x3c38c7._0x9fc5c9,_0x3c38c7._0x2f06a7,-_0x3c38c7._0x137502,-_0x3c38c7._0x48877e)]['reasoning_tokens']}:{}};}function resolveReasoningVisibility2(_0x360447){const _0x36407b={_0x42699f:0x21d,_0x279a7b:0x1a6,_0x42b726:0x151,_0x46d1f5:0x2c5,_0x4d36d7:0x31e},_0x5c5757={_0x5675bb:0x66},_0x24c129={_0x4084f0:0x40,_0x233b7d:0x294};function _0x486bdb(_0x3c9385,_0x51cf00,_0x333c76,_0x48e524){return _0x4784b8(_0x3c9385-_0x24c129._0x4084f0,_0x51cf00-0x127,_0x48e524,_0x333c76-_0x24c129._0x233b7d);}function _0x50e417(_0x49fe1e,_0x253cd8,_0x1af754,_0xe16c7d){return _0x4784b8(_0x49fe1e-0x7b,_0x253cd8-_0x5c5757._0x5675bb,_0x49fe1e,_0x253cd8-0x351);}return _0x360447[_0x50e417(0x22b,_0x36407b._0x42699f,0x26d,0x20f)]?.[_0x486bdb(_0x36407b._0x279a7b,_0x36407b._0x42b726,0xfe,0x1be)]??_0x50e417(0x277,_0x36407b._0x46d1f5,_0x36407b._0x4d36d7,0x365);}function isUserVisibleReasoning(_0x50a62e){const _0x357483={_0x2e3cf8:0x46f,_0x4dfe8f:0x4ee},_0x77fa3b={_0x26bde6:0x177};function _0x1e10ba(_0x38ec44,_0x3e378e,_0x5eb67a,_0x5281c5){return _0x4784b8(_0x38ec44-0x60,_0x3e378e-_0x77fa3b._0x26bde6,_0x5eb67a,_0x5281c5-0x622);}return resolveOpenAiReasoningConfig(_0x50a62e[_0x1e10ba(0x429,_0x357483._0x2e3cf8,0x4bc,_0x357483._0x4dfe8f)])!==void 0x0&&resolveReasoningVisibility2(_0x50a62e)==='user-visible';}function createChatRequestBody(_0x14d624,_0x3368aa){const _0x5d9381={_0x1885e6:0x5e,_0x119312:0xa0,_0x267ae1:0x50,_0x3c0d20:0xae,_0x445a7d:0x5aa,_0x31e41a:0x59d,_0x3820d2:0x5e,_0x479b70:0xd4,_0x5800df:0x48,_0x139f96:0x4ff,_0x1db3fd:0x4e6,_0x458384:0x4c2,_0x6d68a2:0x108,_0x3e1c7c:0x130,_0x2b668c:0x5d2,_0x5688e3:0x516,_0x22cf00:0x448,_0x238798:0x5f0,_0x289ab1:0x4dc,_0x2d1965:0xaa,_0x2e1c68:0x3a,_0xa17bab:0x49,_0x32a20a:0x50f,_0x2ee925:0x519,_0x38eec7:0x38,_0x300296:0x19,_0x286590:0x2d,_0x71ca3d:0x7b,_0x37dea5:0x578,_0x2da0b4:0x618,_0x4bcc71:0x502,_0x1a77b2:0x5a5,_0x89b700:0x538,_0x55ad49:0x528,_0x510cdc:0x576,_0x479944:0x4,_0x5814d5:0x4e0,_0x17c21f:0x55b,_0xa49d5f:0x562,_0x25ab2c:0x62,_0x4a7b19:0x1a,_0x2284a8:0x460,_0x4dd0b4:0x4ea,_0x457dd1:0x43f,_0x27e08a:0x4bb,_0xed4da0:0x477,_0x5c5bf2:0x3f8,_0x4d2fab:0xd,_0x4de842:0x581,_0x2ffdfc:0x5aa,_0x2fcd84:0x644,_0x218652:0xdf,_0x1ef800:0xd7,_0x4d5a2a:0xb2,_0x41f6c2:0xf0,_0x48192d:0xac,_0x36ffa2:0x14e,_0x561657:0x515,_0x6e8c42:0x46b,_0x23f365:0x452,_0x23bcad:0x42d,_0x501381:0x5c5,_0x57829e:0x5a3,_0x55d862:0x586,_0xa579a8:0x58,_0x5c52d0:0xc9,_0x1c308d:0x24,_0x9ebb9a:0x4f6,_0x4c890d:0xdd,_0x8a3716:0x97,_0x446df5:0xdd,_0x43fff3:0x66,_0x1b48f5:0x19e,_0x388743:0x19,_0x2665fa:0x63,_0x1d4aaf:0xad,_0x556c75:0x64,_0x2a09b1:0xa9,_0x20577e:0x494,_0x16bdc5:0x52c,_0x9c26fd:0x11d,_0x4f4fed:0x100,_0x25d7ef:0x1b7,_0x3178c9:0x4b9,_0x46f6cc:0x455,_0x2c9cf7:0x474,_0x4a529e:0x3c7,_0x309113:0x51b},_0x4b7e83={_0x374a25:0x20a,_0x30c0e9:0x29b,_0x2c287f:0x340,_0x4ab220:0x202,_0x3390e1:0x34c,_0x1e510d:0x35f,_0x3f45f8:0x383,_0x1576b4:0x2bd,_0x84942a:0x370,_0x4aa669:0x2d3,_0x12a71f:0x2c8,_0x528eea:0x375,_0xe9e71e:0x47c,_0x2f10de:0x41a,_0x7a58aa:0x35f,_0x2773b0:0x380,_0x59795d:0x2c5,_0x488c82:0x3a1,_0x4f6378:0x3bd,_0x26b422:0x476,_0x440cf3:0x43b,_0x5751bc:0x27c,_0x52e8cf:0x327,_0x5900be:0x182,_0x2019fa:0x249,_0xeac5bd:0x233,_0x580b2b:0x4de,_0x1dd92a:0x432,_0x45b1c4:0x483,_0x57fd0b:0x39e,_0x352aef:0x399,_0x5bf322:0x32b,_0x12a513:0x45c,_0x1f2b5f:0x41b,_0x1ae93c:0x3ee,_0x23fe40:0x49f,_0x45ff6d:0x389,_0x3be5f7:0x350,_0x349cc2:0x389,_0x19976a:0x3bb,_0x1c60fb:0x38c,_0x308898:0x379,_0x76c42c:0x46e,_0x24343f:0x3a2,_0x33e40d:0x326,_0x14d49e:0x3e7,_0x393c98:0x425,_0x3bcf20:0x47d,_0x132c1d:0x31e,_0x3ef844:0x370},_0x2c3db9={_0x255ac1:0xe5},_0x16d87c={_0x214691:0x68b},_0x422dd2={_0x428d04:0x69};function _0x184250(_0x5e5fc2,_0x4e58fc,_0x27d2cd,_0x40787b){return _0x2e5e46(_0x5e5fc2-_0x422dd2._0x428d04,_0x27d2cd,_0x27d2cd-0x191,_0x4e58fc- -0xc8);}const _0x1dd6ac=[];function _0x3b6170(_0x21ae32,_0x2b4008,_0x199cdd,_0x252bef){return _0x2e5e46(_0x21ae32-0x110,_0x252bef,_0x199cdd-0x1d6,_0x21ae32- -_0x16d87c._0x214691);}const _0x59c8fa=stringifySystem(_0x14d624[_0x3b6170(-_0x5d9381._0x1885e6,0x6a,-_0x5d9381._0x119312,-0x38)]);_0x59c8fa[_0x3b6170(-_0x5d9381._0x267ae1,-0x8b,-0x10d,-_0x5d9381._0x3c0d20)]>0x0&&_0x1dd6ac[_0x184250(0x566,_0x5d9381._0x445a7d,0x4fe,_0x5d9381._0x31e41a)]({'role':_0x3b6170(-_0x5d9381._0x3820d2,-_0x5d9381._0x479b70,_0x5d9381._0x5800df,-0x11b),'content':_0x59c8fa});for(const _0x5b84f4 of _0x14d624['messages']){const _0x2588de=[],_0x1508c0=[],_0x761479=[],_0x52eecd=()=>{if(_0x5b84f4[_0x28eb74(_0x4b7e83._0x374a25,_0x4b7e83._0x30c0e9,_0x4b7e83._0x2c287f,_0x4b7e83._0x4ab220)]===_0x15a8ac(_0x4b7e83._0x3390e1,_0x4b7e83._0x1e510d,_0x4b7e83._0x3f45f8,0x307)){if(_0x2588de[_0x28eb74(_0x4b7e83._0x1576b4,_0x4b7e83._0x84942a,_0x4b7e83._0x4aa669,_0x4b7e83._0x12a71f)]===0x0&&_0x1508c0['length']===0x0)return;_0x1dd6ac[_0x15a8ac(_0x4b7e83._0x528eea,0x432,_0x4b7e83._0xe9e71e,0x418)]({'role':_0x15a8ac(_0x4b7e83._0x2f10de,_0x4b7e83._0x7a58aa,_0x4b7e83._0x2773b0,_0x4b7e83._0x59795d),'content':_0x2588de[_0x28eb74(0x2f9,0x370,_0x4b7e83._0x488c82,0x2ca)]>0x0?_0x2588de['join']('\x0a\x0a'):null,..._0x1508c0[_0x28eb74(0x3a1,0x370,_0x4b7e83._0x84942a,0x35c)]>0x0?{'tool_calls':_0x1508c0[_0x15a8ac(0x4c4,0x424,_0x4b7e83._0x4f6378,0x366)](0x0)}:{}}),_0x2588de[_0x15a8ac(_0x4b7e83._0x26b422,0x3fb,_0x4b7e83._0x440cf3,0x41c)]=0x0;return;}if(_0x5b84f4[_0x28eb74(_0x4b7e83._0x5751bc,0x29b,_0x4b7e83._0x52e8cf,0x214)]==='user'){if(_0x761479['length']===0x0)return;const _0x4c4829=_0x761479[_0x28eb74(_0x4b7e83._0x5900be,_0x4b7e83._0x2019fa,0x318,_0x4b7e83._0xeac5bd)](_0x261eae=>_0x261eae[_0x15a8ac(0x27b,0x343,0x3db,0x317)]===_0x15a8ac(0x483,0x400,0x4c7,0x4af));_0x1dd6ac[_0x15a8ac(_0x4b7e83._0x580b2b,_0x4b7e83._0x1dd92a,_0x4b7e83._0x45b1c4,0x3e0)]({'role':_0x15a8ac(0x2d5,_0x4b7e83._0x57fd0b,0x387,0x450),'content':_0x4c4829?_0x761479[_0x28eb74(0x42f,_0x4b7e83._0x352aef,_0x4b7e83._0x5bf322,0x36e)](0x0):_0x761479[_0x15a8ac(_0x4b7e83._0x12a513,0x424,_0x4b7e83._0x1f2b5f,0x4b7)](0x0)[_0x15a8ac(0x3b5,_0x4b7e83._0x1ae93c,_0x4b7e83._0x23fe40,0x47d)](_0x22d49d=>_0x22d49d['type']===_0x15a8ac(0x392,0x3a1,0x3fd,0x418))[_0x15a8ac(0x3c3,_0x4b7e83._0x45ff6d,_0x4b7e83._0x3be5f7,0x308)](_0x115e33=>_0x115e33['text'])[_0x15a8ac(_0x4b7e83._0x3f45f8,0x3e7,_0x4b7e83._0x349cc2,_0x4b7e83._0x19976a)]('\x0a\x0a')});return;}function _0x28eb74(_0x57d74a,_0x4d97e9,_0x37b6b4,_0x32fbbb){return _0x3b6170(_0x4d97e9-0x3c0,_0x4d97e9-_0x2c3db9._0x255ac1,_0x37b6b4-0x1c0,_0x32fbbb);}if(_0x2588de[_0x28eb74(_0x4b7e83._0x1c60fb,_0x4b7e83._0x84942a,0x3f7,_0x4b7e83._0x308898)]===0x0)return;function _0x15a8ac(_0x3d7d9e,_0x4aaf8c,_0x1b8769,_0x495319){return _0x184250(_0x3d7d9e-0x1ec,_0x4aaf8c- -0x178,_0x1b8769,_0x495319-0xd);}_0x1dd6ac[_0x28eb74(_0x4b7e83._0x7a58aa,0x3a7,0x300,_0x4b7e83._0x76c42c)]({'role':_0x5b84f4[_0x15a8ac(_0x4b7e83._0x24343f,_0x4b7e83._0x33e40d,0x2e7,0x37c)],'content':_0x2588de[_0x15a8ac(0x352,_0x4b7e83._0x14d49e,_0x4b7e83._0x393c98,_0x4b7e83._0x3bcf20)]('\x0a\x0a')}),_0x2588de[_0x28eb74(_0x4b7e83._0x132c1d,_0x4b7e83._0x3ef844,0x3e5,0x42e)]=0x0;};for(const _0x310961 of normalizeContent(_0x5b84f4[_0x184250(_0x5d9381._0x139f96,_0x5d9381._0x1db3fd,0x4fa,_0x5d9381._0x458384)])){if(_0x310961[_0x3b6170(-_0x5d9381._0x6d68a2,-0x38,-0xbb,-_0x5d9381._0x3e1c7c)]==='text'){_0x5b84f4['role']===_0x184250(_0x5d9381._0x2b668c,_0x5d9381._0x5688e3,0x50f,_0x5d9381._0x22cf00)?_0x761479[_0x184250(0x5bb,_0x5d9381._0x445a7d,_0x5d9381._0x238798,_0x5d9381._0x289ab1)]({'type':_0x3b6170(-_0x5d9381._0x2d1965,-_0x5d9381._0x2e1c68,0x0,-_0x5d9381._0xa17bab),'text':_0x310961[_0x184250(_0x5d9381._0x32a20a,_0x5d9381._0x2ee925,0x5e9,0x4bb)]}):_0x2588de[_0x3b6170(-0x19,-0x56,0x7e,_0x5d9381._0x38eec7)](_0x310961['text']);continue;}if(_0x5b84f4[_0x184250(0x4a7,0x49e,0x536,0x3d3)]===_0x184250(0x5df,_0x5d9381._0x5688e3,0x543,0x445)&&_0x310961['type']===_0x184250(0x491,0x4b4,0x557,_0x5d9381._0x289ab1)){_0x761479[_0x3b6170(-_0x5d9381._0x300296,-0xca,-_0x5d9381._0x286590,_0x5d9381._0x71ca3d)]({'type':_0x184250(0x4fd,_0x5d9381._0x37dea5,0x5cc,_0x5d9381._0x2da0b4),'image_url':{'url':_0x184250(_0x5d9381._0x4bcc71,_0x5d9381._0x1a77b2,0x5d4,_0x5d9381._0x89b700)+_0x310961[_0x184250(_0x5d9381._0x55ad49,0x569,0x615,_0x5d9381._0x510cdc)][_0x3b6170(_0x5d9381._0x479944,-0x9c,-0x9c,0x46)]+_0x184250(_0x5d9381._0x5814d5,_0x5d9381._0x17c21f,_0x5d9381._0x5814d5,_0x5d9381._0xa49d5f)+_0x310961[_0x3b6170(-0x5a,-0x106,_0x5d9381._0x25ab2c,-_0x5d9381._0x4a7b19)][_0x184250(0x43d,_0x5d9381._0x2284a8,_0x5d9381._0x4dd0b4,0x3eb)]}});continue;}if(_0x310961[_0x184250(_0x5d9381._0x457dd1,_0x5d9381._0x27e08a,_0x5d9381._0xed4da0,_0x5d9381._0x5c5bf2)]===_0x3b6170(-0x5c,-0xce,-0x8f,_0x5d9381._0x4d2fab)){_0x1508c0[_0x184250(_0x5d9381._0x4de842,_0x5d9381._0x2ffdfc,_0x5d9381._0x2fcd84,0x60c)]({'id':_0x310961['id'],'type':_0x3b6170(-_0x5d9381._0x218652,-_0x5d9381._0x1ef800,-_0x5d9381._0x4d5a2a,-0x174),'function':{'name':_0x310961[_0x3b6170(-_0x5d9381._0x41f6c2,-0x100,-_0x5d9381._0x48192d,-_0x5d9381._0x36ffa2)],'arguments':JSON[_0x184250(0x4e4,0x46a,_0x5d9381._0x561657,_0x5d9381._0x6e8c42)](_0x310961[_0x184250(0x4c8,_0x5d9381._0x23f365,_0x5d9381._0x23bcad,0x453)]??{})}});continue;}if(_0x310961['type']!==_0x184250(_0x5d9381._0x501381,_0x5d9381._0x57829e,_0x5d9381._0x55d862,0x507))continue;_0x52eecd(),_0x1dd6ac[_0x3b6170(-0x19,_0x5d9381._0xa579a8,-_0x5d9381._0x5c52d0,_0x5d9381._0x1c308d)]({'role':_0x184250(0x451,_0x5d9381._0x9ebb9a,0x42a,0x490),'content':getToolResultText(_0x310961[_0x3b6170(-_0x5d9381._0x4c890d,-0x7c,-0x9a,-0x152)]),'tool_call_id':_0x310961[_0x3b6170(-_0x5d9381._0x8a3716,-0x109,-0xaa,-0x22)]});const _0x308534=getToolResultImages(_0x310961[_0x3b6170(-_0x5d9381._0x446df5,-0xfb,-_0x5d9381._0x43fff3,-_0x5d9381._0x1b48f5)]);_0x308534['length']>0x0&&_0x1dd6ac[_0x3b6170(-_0x5d9381._0x388743,-0xa1,-_0x5d9381._0x2665fa,-0xbf)]({'role':_0x3b6170(-_0x5d9381._0x1d4aaf,-_0x5d9381._0x556c75,-0x125,-0x80),'content':[{'type':_0x3b6170(-0xaa,-0x40,-_0x5d9381._0x2a09b1,-0xa7),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x310961[_0x184250(_0x5d9381._0x20577e,_0x5d9381._0x16bdc5,0x554,0x5bd)]+'.'},..._0x308534[_0x3b6170(-0xc2,-0x92,-0x79,-0xdf)](_0x173004=>({'type':_0x184250(0x4d2,0x578,0x4e0,0x51a),'image_url':{'url':_0x3b6170(-0x1e,-0x5,0x7a,-0xd0)+_0x173004[_0x184250(0x49e,0x569,0x55a,0x502)][_0x184250(0x4fd,0x5c7,0x585,0x5c2)]+_0x3b6170(-0x68,-0x99,-0x90,0x69)+_0x173004['source']['data']}}))]});}_0x52eecd();}const _0x436a55=resolveOpenAiReasoningConfig(_0x14d624[_0x3b6170(-_0x5d9381._0x9c26fd,-_0x5d9381._0x4f4fed,-_0x5d9381._0x25d7ef,-0x17c)]);return{'model':_0x14d624[_0x184250(_0x5d9381._0x3178c9,0x4bd,0x51d,0x420)],'messages':_0x1dd6ac,'stream':_0x3368aa,..._0x436a55?{'max_completion_tokens':_0x14d624[_0x184250(_0x5d9381._0x46f6cc,_0x5d9381._0x2c9cf7,_0x5d9381._0x4a529e,0x451)]}:{'max_tokens':_0x14d624['maxTokens']},..._0x436a55?.['effort']?{'reasoning_effort':_0x436a55['effort']}:{},...createToolDefinitions(_0x14d624['tools'])?{'tools':createToolDefinitions(_0x14d624[_0x184250(0x509,0x549,_0x5d9381._0x309113,0x4b3)])}:{}};}function createResponsesRequestBody(_0x4c11df,_0x48fa15){return{...toOpenAiResponsesRequest(_0x4c11df),..._0x48fa15?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0xa33d37,_0x34f1c8={}){const _0x4496c8={_0x2e3d93:0x34d,_0x20d836:0x494,_0x12d87f:0x3bc,_0x13796f:0x4b1,_0x4838ff:0x4c2,_0x5bcc4a:0x4ae,_0x57c8c1:0x4ba},_0x2552f7={_0x4f586a:0x1ee,_0x26cbfb:0x160},_0x457827={_0x163526:0x5ac},_0x238148=toOpenAiResponsesRequest(_0xa33d37);function _0x5eb509(_0x5a27c2,_0x1e656a,_0x1d7130,_0x5eb58b){return _0x4784b8(_0x5a27c2-0x23,_0x1e656a-0x9c,_0x1d7130,_0x1e656a-_0x457827._0x163526);}function _0x5a823c(_0x3eae1a,_0x42246c,_0x2c8ae3,_0x2a885e){return _0x4784b8(_0x3eae1a-_0x2552f7._0x4f586a,_0x42246c-_0x2552f7._0x26cbfb,_0x2a885e,_0x2c8ae3-0x55a);}return{'type':'response.create',..._0x238148,..._0x34f1c8[_0x5a823c(0x393,_0x4496c8._0x2e3d93,0x3d2,0x4a1)]?{'input':_0x34f1c8[_0x5eb509(_0x4496c8._0x20d836,0x424,0x402,_0x4496c8._0x12d87f)]}:{},..._0x34f1c8[_0x5a823c(_0x4496c8._0x13796f,_0x4496c8._0x4838ff,0x4c1,_0x4496c8._0x5bcc4a)]?{'previous_response_id':_0x34f1c8[_0x5a823c(_0x4496c8._0x57c8c1,0x526,0x4c1,0x589)]}:{},'store':![]};}function normalizeAssistantContent(_0x3fd610){const _0x4dcbf2={_0x5b97ee:0x2f9,_0x253d1b:0x347,_0x5efb14:0x358,_0x1230bc:0x310,_0x3c2217:0x3d9},_0x5f3208={_0x35e81e:0x7c,_0xf8c158:0x2c,_0x4be1d4:0x6b,_0xa5b613:0x2b},_0x2b06ea={_0x53e839:0x145},_0x3e1f1b={_0x178467:0x7c};function _0x5de1df(_0x2c0802,_0xc708f4,_0x30bd45,_0x35d6e7){return _0x2e5e46(_0x2c0802-_0x3e1f1b._0x178467,_0xc708f4,_0x30bd45-0x1e1,_0x2c0802- -0x339);}if(typeof _0x3fd610===_0x5de1df(_0x4dcbf2._0x5b97ee,0x333,_0x4dcbf2._0x253d1b,_0x4dcbf2._0x5efb14))return _0x3fd610;function _0x2c751c(_0x4543ba,_0xd05d8d,_0x329003,_0xc1b388){return _0x4784b8(_0x4543ba-_0x2b06ea._0x53e839,_0xd05d8d-0x9c,_0xc1b388,_0x4543ba-0x469);}if(!Array['isArray'](_0x3fd610))return'';return _0x3fd610[_0x5de1df(0x290,0x21a,0x357,_0x4dcbf2._0x1230bc)](_0x18cfdc=>{const _0x2eb9fd={_0x1aa73b:0x88};function _0x6f6cf0(_0x2f0fde,_0xa8c043,_0x2b20df,_0xfe7161){return _0x5de1df(_0x2b20df- -0x2d3,_0xa8c043,_0x2b20df-0xb6,_0xfe7161-0x15a);}function _0xb7dc3b(_0x93b154,_0x10b3d1,_0x15a386,_0x3491c5){return _0x5de1df(_0x15a386- -_0x2eb9fd._0x1aa73b,_0x3491c5,_0x15a386-0x136,_0x3491c5-0x134);}return _0x18cfdc[_0x6f6cf0(-_0x5f3208._0x35e81e,-_0x5f3208._0xf8c158,-0x89,-0x85)]===_0x6f6cf0(0x6c,0x83,-0x2b,-0x44)?_0x18cfdc[_0x6f6cf0(_0x5f3208._0x4be1d4,0x93,-_0x5f3208._0xa5b613,-0x46)]:_0x18cfdc['refusal'];})[_0x2c751c(0x3ee,0x3a4,0x362,_0x4dcbf2._0x3c2217)]('');}function normalizeResponsesMessageContent(_0x264820){const _0x5f13b1={_0x40bc3e:0x56d,_0x43188a:0x434,_0xb3acd5:0x4e4,_0xc5fa26:0x53a,_0xdfd7fb:0x407,_0xd1f117:0x493,_0x59924b:0x4cb,_0x258128:0x4f1},_0x11a0f0={_0x20b1e3:0x27c,_0x2ec303:0x206,_0x232e73:0x26f,_0x4590d6:0x26d,_0x147e4f:0x39b,_0x38eb08:0x367,_0x3ac585:0x2b2,_0x473e31:0x404,_0x287bdf:0x4c6,_0x742ffb:0x55f,_0x244a40:0x2b8,_0x305e01:0x235,_0x349f12:0x35a,_0xe17a6a:0x387,_0x59d0b5:0x3a1,_0x332749:0x376,_0x15f03f:0x40b,_0x632ebd:0x37b,_0x10c31a:0x424,_0x206b0d:0x426,_0x4cd8b9:0x2c4,_0x50341a:0x2ef,_0x2aa181:0x3e4},_0x592133={_0x1ed39f:0x218,_0x2e820d:0x109},_0x1e9c10={_0x58b273:0x88},_0x3e38fd={_0xf83840:0x136};function _0x309210(_0x2cef86,_0x28935c,_0x10c445,_0x2e15fe){return _0x2e5e46(_0x2cef86-0xff,_0x2cef86,_0x10c445-0xb9,_0x2e15fe- -_0x3e38fd._0xf83840);}if(!Array[_0x309210(0x4d5,_0x5f13b1._0x40bc3e,_0x5f13b1._0x43188a,_0x5f13b1._0xb3acd5)](_0x264820))return'';function _0x5bec19(_0x3e41d2,_0x2c8b1b,_0x2125e8,_0x28d630){return _0x2e5e46(_0x3e41d2-0x8d,_0x2125e8,_0x2125e8-_0x1e9c10._0x58b273,_0x2c8b1b- -0x4e3);}return _0x264820[_0x309210(_0x5f13b1._0xc5fa26,_0x5f13b1._0xdfd7fb,0x532,_0x5f13b1._0xd1f117)](_0x5ca3ea=>{const _0x1e5922={_0x41ad5e:0x3c8,_0x5c9cd2:0x15c};if(!_0x5ca3ea||typeof _0x5ca3ea!==_0x38a0d5(0x289,_0x11a0f0._0x20b1e3,0x31b,_0x11a0f0._0x2ec303))return'';function _0x2faafd(_0x2c22f6,_0x55af9a,_0x48524a,_0x26ab3f){return _0x5bec19(_0x2c22f6-0x197,_0x55af9a-_0x1e5922._0x41ad5e,_0x26ab3f,_0x26ab3f-_0x1e5922._0x5c9cd2);}const _0x47bb18=_0x5ca3ea;if(_0x47bb18['type']==='output_text'&&typeof _0x47bb18[_0x38a0d5(0x3e6,0x316,_0x11a0f0._0x232e73,_0x11a0f0._0x4590d6)]===_0x38a0d5(_0x11a0f0._0x147e4f,_0x11a0f0._0x38eb08,0x35c,_0x11a0f0._0x3ac585))return _0x47bb18[_0x2faafd(_0x11a0f0._0x473e31,_0x11a0f0._0x287bdf,0x57f,_0x11a0f0._0x742ffb)];function _0x38a0d5(_0x29c691,_0x5b4e8e,_0x527702,_0x521569){return _0x5bec19(_0x29c691-0xe8,_0x5b4e8e-_0x592133._0x1ed39f,_0x521569,_0x521569-_0x592133._0x2e820d);}if(_0x47bb18[_0x38a0d5(0x205,_0x11a0f0._0x244a40,_0x11a0f0._0x305e01,_0x11a0f0._0x349f12)]===_0x38a0d5(_0x11a0f0._0xe17a6a,0x37b,_0x11a0f0._0x59d0b5,_0x11a0f0._0x332749)&&typeof _0x47bb18[_0x38a0d5(_0x11a0f0._0x15f03f,_0x11a0f0._0x632ebd,_0x11a0f0._0x10c31a,0x2e1)]===_0x38a0d5(_0x11a0f0._0x206b0d,_0x11a0f0._0x38eb08,0x38d,0x2e4))return _0x47bb18[_0x38a0d5(_0x11a0f0._0x4cd8b9,0x37b,_0x11a0f0._0x50341a,_0x11a0f0._0x2aa181)];return'';})[_0x309210(_0x5f13b1._0x59924b,0x4be,0x482,_0x5f13b1._0x258128)]('');}function extractOpenAiReasoningText(_0x7d3a35){const _0x1f8573={_0x4a4f69:0x5ea,_0x389f44:0x564,_0x386abf:0x6e6,_0xb5fd69:0x5ea,_0x409d22:0x5a4,_0x5a6016:0x6e2,_0x1526be:0xe6,_0x9ac8f0:0x6b,_0x40aee5:0x67,_0x340ddc:0x84,_0x51c822:0x182,_0x2e30b7:0xcf,_0x24e4de:0x6ea,_0x29a259:0x637,_0x2d2e45:0x6be,_0x1d849b:0x69f,_0x4017ad:0x639},_0xa9859e={_0x138603:0x1b,_0x5f04da:0x6ab};if(typeof _0x7d3a35[_0x19ac2e(0x5e8,_0x1f8573._0x4a4f69,_0x1f8573._0x389f44,0x6b4)]===_0x19ac2e(0x5ea,0x63b,0x626,_0x1f8573._0x386abf))return _0x7d3a35[_0x19ac2e(0x5bd,_0x1f8573._0xb5fd69,_0x1f8573._0x409d22,0x535)];if(!Array[_0x19ac2e(0x582,0x623,0x631,_0x1f8573._0x5a6016)](_0x7d3a35[_0x434c05(-_0x1f8573._0x1526be,-_0x1f8573._0x9ac8f0,-0xcf,-_0x1f8573._0x40aee5)]))return'';function _0x434c05(_0x44cb9b,_0x176374,_0x10f045,_0x289ed8){return _0x2e5e46(_0x44cb9b-0xae,_0x176374,_0x10f045-0xfc,_0x10f045- -0x67d);}function _0x19ac2e(_0x45bd0b,_0x4372df,_0x117f0e,_0x4d7f3c){return _0x4784b8(_0x45bd0b-0x1b2,_0x4372df-_0xa9859e._0x138603,_0x4d7f3c,_0x4372df-_0xa9859e._0x5f04da);}return _0x7d3a35[_0x434c05(-_0x1f8573._0x340ddc,-_0x1f8573._0x51c822,-_0x1f8573._0x2e30b7,-0xf5)][_0x19ac2e(_0x1f8573._0x24e4de,_0x1f8573._0x29a259,_0x1f8573._0x2d2e45,0x61c)](_0x42f4f4=>_0x42f4f4[_0x19ac2e(0x62d,0x58c,0x646,0x642)]===_0x19ac2e(0x67e,0x604,0x53f,0x586)&&typeof _0x42f4f4[_0x434c05(-0x3b,-0xac,-0x9c,0x13)]===_0x19ac2e(0x615,0x63b,0x69d,0x640))[_0x19ac2e(0x69d,0x5d2,_0x1f8573._0x1d849b,_0x1f8573._0x4017ad)](_0x29f583=>_0x29f583['text']??'')['join']('');}function createOpenAiReasoningBlock(_0x1b1939){const _0x295d00={_0x51330c:0x28f,_0x58e8e5:0x27f,_0x5d8d8e:0x29f,_0x4e2194:0x2aa,_0x3cf107:0x302,_0x3fe6e9:0x2ce},_0x4447d3={_0x437571:0x13b,_0x3ae9b6:0x2e5},_0x3848f6={_0x2895bf:0x1e9,_0x3754a8:0x37e};function _0x5c3717(_0x2b1401,_0xd86075,_0x28322e,_0x39f80c){return _0x2e5e46(_0x2b1401-0x16c,_0x28322e,_0x28322e-_0x3848f6._0x2895bf,_0xd86075- -_0x3848f6._0x3754a8);}function _0x48ab51(_0x1befe5,_0x1b1a6d,_0x5cda15,_0x290a6c){return _0x4784b8(_0x1befe5-_0x4447d3._0x437571,_0x1b1a6d-0x103,_0x1b1a6d,_0x5cda15-_0x4447d3._0x3ae9b6);}const _0x322734=extractOpenAiReasoningText(_0x1b1939);return{'type':_0x5c3717(0x2dc,_0x295d00._0x51330c,_0x295d00._0x58e8e5,0x209),'summary':structuredClone(_0x1b1939[_0x48ab51(0x30c,0x20b,_0x295d00._0x5d8d8e,0x2e3)]??[]),..._0x1b1939['id']?{'id':_0x1b1939['id']}:{},..._0x1b1939[_0x5c3717(0x38b,0x30d,0x336,_0x295d00._0x4e2194)]?{'encryptedContent':_0x1b1939[_0x48ab51(0x378,_0x295d00._0x3cf107,_0x295d00._0x3fe6e9,0x223)]}:{},..._0x322734['length']>0x0?{'text':_0x322734}:{}};}function hasVisibleOpenAiReasoning(_0x36358d){const _0x4d79b4={_0x2b85b2:0x2ff,_0x250ee5:0x3b6,_0x1f064a:0x2a5},_0x334d11={_0x5509f5:0x17b,_0x406365:0x3a,_0x1017d3:0x366};function _0x12cf3b(_0x2a822e,_0xcddced,_0x15a68c,_0x288796){return _0x4784b8(_0x2a822e-0x130,_0xcddced-0x85,_0xcddced,_0x288796- -0xa3);}function _0x1bdc0b(_0x513274,_0xee62e4,_0x455ce2,_0x5bd350){return _0x4784b8(_0x513274-_0x334d11._0x5509f5,_0xee62e4-_0x334d11._0x406365,_0x5bd350,_0xee62e4-_0x334d11._0x1017d3);}return _0x36358d['summary'][_0x1bdc0b(0x391,_0x4d79b4._0x2b85b2,0x314,_0x4d79b4._0x250ee5)]>0x0||typeof _0x36358d[_0x1bdc0b(0x31c,_0x4d79b4._0x1f064a,0x1e5,0x1fc)]==='string';}function parseChatCompletionResponse(_0xfb30ea){const _0x8b480e={_0x35e774:0x121,_0x1d0e15:0x259,_0x297458:0x16f,_0x13fa6d:0x1ac,_0x3baf44:0x107,_0xf7d2b1:0x222,_0x3c268a:0x2f8,_0x46fee3:0x2c2,_0x62632a:0x3e1,_0x1e70b8:0x32f,_0x5e4fea:0x3c5,_0x3795f1:0x294,_0x533014:0x2c1,_0x2ddd63:0x1f6,_0x5825eb:0x2ea,_0x106d72:0x13d,_0x238f9e:0x28b,_0x634b84:0x32f,_0x3d4813:0x284,_0x37df3e:0x355,_0x3db8bc:0x3da,_0x300f46:0x2b3,_0x55690a:0x1f9,_0x1024b5:0x287,_0x6768ba:0x3b3,_0x4c264c:0x370,_0x2ec956:0x3b6,_0x40e5a5:0x41c},_0x27f25a={_0x14e956:0x255},_0x3e8052={_0x1294ec:0xb2,_0xf8dbec:0x343};function _0x34301d(_0x51ef9b,_0x571d9a,_0x5e1ff1,_0x7a463c){return _0x2e5e46(_0x51ef9b-0xcb,_0x7a463c,_0x5e1ff1-_0x3e8052._0x1294ec,_0x51ef9b- -_0x3e8052._0xf8dbec);}const _0x4ebb63=[],_0x1cef90=[];function _0x5906f7(_0x298e05,_0x5c5114,_0x127489,_0x32d9af){return _0x2e5e46(_0x298e05-0xa8,_0x298e05,_0x127489-0x1b0,_0x32d9af- -_0x27f25a._0x14e956);}let _0x1ad2ee=_0x34301d(0x1c0,_0x8b480e._0x35e774,_0x8b480e._0x1d0e15,_0x8b480e._0x297458);for(const _0x3346d8 of _0xfb30ea['choices']??[]){const _0x37804f=_0x3346d8[_0x34301d(_0x8b480e._0x13fa6d,0x1bd,_0x8b480e._0x3baf44,_0x8b480e._0xf7d2b1)],_0x4b440a=normalizeAssistantContent(_0x37804f?.['content']);_0x4b440a[_0x34301d(_0x8b480e._0x3c268a,_0x8b480e._0x46fee3,0x32d,0x290)]>0x0&&_0x4ebb63[_0x34301d(0x32f,0x3bf,_0x8b480e._0x62632a,0x36c)](_0x4b440a),_0x37804f?.['tool_calls']&&_0x1cef90[_0x34301d(_0x8b480e._0x1e70b8,0x334,0x365,_0x8b480e._0x5e4fea)](..._0x37804f[_0x34301d(0x1f3,_0x8b480e._0x3795f1,0x1df,0x177)]),_0x3346d8[_0x34301d(_0x8b480e._0x533014,0x343,_0x8b480e._0x2ddd63,_0x8b480e._0x5825eb)]===_0x34301d(0x1f3,_0x8b480e._0x106d72,_0x8b480e._0x238f9e,0x122)&&(_0x1ad2ee=_0x5906f7(0x49b,_0x8b480e._0x634b84,0x388,0x3da));}return _0x1cef90[_0x34301d(_0x8b480e._0x3c268a,_0x8b480e._0x3d4813,0x2ba,_0x8b480e._0x37df3e)]>0x0&&(_0x1ad2ee=_0x5906f7(0x432,0x34f,0x407,_0x8b480e._0x3db8bc)),{'id':_0xfb30ea['id']??'chatcmpl-'+Date[_0x34301d(0x24a,_0x8b480e._0x300f46,_0x8b480e._0x55690a,0x2fd)](),'content':createContentBlocks(_0x4ebb63[_0x34301d(0x2e4,_0x8b480e._0x1024b5,_0x8b480e._0x6768ba,_0x8b480e._0x4c264c)](''),_0x1cef90),'stopReason':_0x1ad2ee,'usage':createUsage(_0xfb30ea[_0x5906f7(0x411,_0x8b480e._0x2ec956,_0x8b480e._0x40e5a5,0x3ef)])};}function _0x1ce2(){const _0x26222e=['C3vTBwfYAxPLza','mZe1mtq2EwTMruvp','mJaYmY0WnI0Wmq','C3rHCNrZv2L0Aa','y29TCgXLDgvwAwfsB3v0zxi','CMvHC29UAw5Nx3rVA2vUCW','Bwf4x291Dhb1Df90B2TLBNm','ywrKrxzLBNrmAxn0zw5LCG','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','CMv0CNKTywz0zxi','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','yxn5BMnjDgvYyxrVCG','DgvSzw1LDhj5','zMXHDe1HCa','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','C2HVDwXKuMv0CNLszxnWB25Zzq','DxnLCG','C29JA2v0','D2fPDezVCLjLDhj5','Dgv4Da','u3vYzMfJzsa','y2fSBf9Pza','CgfYC2u','yxjNDw1LBNrZ','C3bSAxq','Dgv4DfbHCNrZ','C2vZC2LVBG','CMvZCg9UC2uUzMfPBgvK','Ec1HCgKTA2v5','D2vIC29JA2v0','yw50AhjVCgLJlxzLCNnPB24','y29TCgXLDgvK','CMvZB2X2zunYzwrLBNrPywW','C2L6zq','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','Bwv0Ag9K','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','Dg9VBf91C2vFAwq','Ahr0Cc1ZC2u','y29UC3vTzvDLyLnVy2TLDev2zw50','zMv0y2HjBxbS','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','ue9tva','C3vYzMfJzq','CMvHC29UAw5Nx3rLEhq','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','CgfYC2vszxnWB25Zzq','y3jLyxrLsgvHzgvYCW','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Dg9VBc1JywXSlq','yxnZAxn0yw50lq','z2v0','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','zMLUAxnOx3jLyxnVBG','B3bLBMfPlxjLC3bVBNnLCY13CW','Aw5WDxrFDgv4Da','DNnJB2rLlZeUmta0lJi','yM9KEq','ChjLDMLVDxnszxnWB25ZzuLK','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','B3v0Chv0vg9Rzw5Z','CMvHC29UAw5NugfYDhm','B3bLBMfPx3jLyxnVBMLUzW','zg9Uzq','ywrK','Ahr0Cc1QC29U','Dg9VBhm','y2HHDfn0CMvHBq','l21VzgvSCW','DhjPBvn0yxj0','ChjVDMLKzxjtDgf0zq','DxnLCI12AxnPyMXL','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','Aw5PDgLHBev2zw50','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','AxnbCNjHEq','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','Dg9mB3DLCKnHC2u','B3v0Chv0x2LUzgv4','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','v2vIu29JA2v0','BhmGlwXH','Aw50zxjSzwf2zwq','Aw5WDxruB2TLBNm','o2jHC2u2ncW','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','CMvZB2X2zxi','BwvZC2fNzxm','AM9PBG','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Dg9Rzw4','CMvZB2X2zq','Dg9bCgLfCNjVCG','yw50AhjVCgLJlw1LC3nHz2vZ','C3LZDgvT','zMLSDgvY','Dg9VBf91C2u','BwvZC2fNzv9ZDgfYDa','C291CMnL','C3rYAw5N','Bw9JAW','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','CMvKywn0zwrFDgHPBMTPBMC','zw5KCg9PBNrZ','B3v0Chv0','ywjVCNrLza','y2fJAgvK','yxv0AfnJAgvTzq','BgvUz3rO','BxnNlq','zwrPDg9YvMvYC2LVBG','AxrLBq','t1bftG','Aw1Hz2vFDxjS','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','C3rHDhvZvgv4Da','AgvHzgvYuMvZB2X2zxi','DxnHz2u','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','CMvMDxnHBa','C3rVCfjLyxnVBG','C3rVCf9YzwfZB24','Dg9VBenHBgXZ','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','C3vTBwfYEv90zxH0','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','AxngAw5PDgu','Aw5KzxG','CMvHC29U','B2f1DgGTDg9Rzw4','r2L0shvIiefqssbLCNjVCIa','ChjLCgfYzunOyxrszxf1zxn0','BwvZC2fNzuLUzgv4','y2HHDgnTCgWT','CgvUzgLUzW','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','y2fWywjSzv9LBMrWB2LUDhm','z3b0ltrV','zw50CMLLCW','C2vZC2LVBK1HBMfNzxi','C3vTBwfYEq','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','DxjS','z2v0uMv0CNLezwXHEu1Z','CMvWBgfJzq','y29UC3vTzuv2zw50','ChjVDg9JB2W','DgHPBMTPBMC','C3bSAwnL','l2nOyxqVy29TCgXLDgLVBNm','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','ChjVDMLKzxjbzgfWDgvY','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','AgvHzgvYCW','CMvHC29UAw5Nx2rLDgfPBhm','Dg9VBf9Yzxn1Bhq','zMLUywXszxnWB25Zzq','zgf0ytO','y29UDgvUDc10ExbL','D2vIu29JA2v0rMfJDg9YEq','y29TCgXLDgvwAwftDxjMywnL','AxrLBv9Pza','ChvZAa','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','C3vTBwfYEuj5sw5KzxG','yMXVy2TZ','BgLTAxrZ','y2HHDgnTCgW','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','y29UDgv4DfDPBMrVDW','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','zw5HyMXLza','C2vUzfDPDgHszxrYAwvZ','ANnVBG','AgfZ','yxv0BW','CMvZCg9UC2vZugf0Aa','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','C3rYzwfTshr0Cfn1CMzHy2u','Aw5WDxrkC29U','z2L0AhvI','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','y3jLyxrLu3rYzwfTugfYC2vY','D3nZoG','A2LUza','C3vTBwfYEv9PBMrLEa','zw5JCNLWDgvKx2nVBNrLBNq','y3jLyxrLuMvXDwvZDa','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','BwvKAwfFDhLWzq','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','DMfSDwvZ','oNjLyxnVBMLUzZOW','Aw5JBhvKzunVBNrLBNruExbL','BwvZC2fNzq','y29UDgvUDf9KzwX0yq','Dg9Wx3bYB3zPzgvY','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Bw9Kzq','yxbP','CMvZCg9UC2u','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','yxv0Ag9YAxPHDgLVBG','ywDLBNq','y29UBMvJDgLUzW','z2L0AhvIqxbPvxjS','Aw5KzxHpzG','y3jLzgvUDgLHBa','zwzMB3j0','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','Dgv4Dc9LDMvUDc1ZDhjLyw0','C3vWCg9YDgvKx2vUzhbVAw50CW','y29UDgvUDf9IBg9JA19KzwX0yq','C2v0','zw5Kx3r1CM4','mtqXmtu2nNDNz2XXAW','CMvXDwvZDhm','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','y29Kzq','ChjVDg9JB2XwzxjZAw9U','C2HPzNq','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','yw50AhjVCgLJrgvSzwDHDgu','DMLZAwjPBgL0Eq','z2v0t3bLBKfPrgvSzwDHDgu','yw50AhjVCgLJx3rOAw5RAw5N','Bwf4t3v0Chv0','B3bLBMfPlxjLC3bVBNnLCW','Dgv4Df9KzwX0yq','y29TCgXLDgLVBL90B2TLBNm','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','C29Tzq','CMvTB3zLrxzLBNrmAxn0zw5LCG','Dg9VBf91C2vFzgvSDge','CMvZCg9UC2vtB2nRzxq','rgLYzwn0igfUC3DLCJOG','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','Aw5WDxq','zNvUy3rPB25Fy2fSBa','Bwf4x3rVA2vUCW','CMvZCg9UC2vjza','CMvHC29UAw5NsxrLBxm','yMfZzty0','CgfYDgLHBf9QC29U','CMvHC29UAw5Nx2nVBNrLBNq','zNjVBq','Dgv4Dej5sw5KzxG','zxzLBNq','DhjHBNnWB3j0x2vYCM9Y','CMvXDwvZDe11Dgf0B3jZ','mte3nJqYnK91zur1Ba','zgf0yq','DhjPBq','qMvHCMvYia','z2v0u3vYzMfJzq','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','ndu3mtm1s3HVAKPH','B3bLBKfPrgvSzwDHDgu','CMvZCg9UC2vuzxH0ugfYDhm','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','C3rYAw5NAwz5','ywnJzxnZvg9Rzw4','Aw5WDxrFDg9Rzw5Z','CMvZB2X2zujHC2vvCMW','Dg9VBf9JywXSCW','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','C2LNBMf0DxjL','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','DxnLC1jLC3bVBNnLC0fWAq','C2vUza','Bwf4vg9Rzw5Z','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','mtjnuvjvEKu','y2XVC2u','BwvZC2fNzuLK','C3vYzMfJzxm','B3v0Chv0x3rVA2vUCW','C3rYzwfT','yxbWBgLJyxrPB24VANnVBG','yMfZzvvYBa','BgfZDfjLC3bVBNnLswq','B2jQzwn0','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','t3bLBKfjiefqssbLCNjVCIa','B3v0Chv0sw5KzxG','C2vUzfjHD1jLCxvLC3q','zw5JCNLWDgvKq29UDgvUDa','C2XPy2u','mJC2ntu1DLLrELzY','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','BwvZC2fNzv9KzwX0yq','CMvZCg9UC2vtB2nRzxrtDhjLyw0','y29UDgvUDf9PBMrLEa','y2HHDenVBxbSzxrL','Bw9KzwXfBMrWB2LUDenHy2HL','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','Dg9VBenHBgXpCMrLCG','y2fWywjPBgL0AwvZ','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','y2fSBeLKvg9pDxrWDxrjBMrLEa','y29WAwXVDc1JAgf0lZaUmZeUmW','C2vSzwn0u3vYzMfJzq','Dg9VBenHBgXZqNLjBMrLEa','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','Cgf0Aa','mZq1ntqWoevhvM1OBa','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','C3rYzwfTvMLHu3vYzMfJzq','zgvSzxrL','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','CM9Szq','y2fJAgvszwfKsw5WDxruB2TLBNm','BwfWqxbPrxjYB3i','C29YDa','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','zMLUAxnO','yNvPBgrqyxj0AwfSt3v0Chv0','zMv0y2G','CMvHC29UAw5N','y29UBMvJDf9MywLSzwq','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','ChjVEhK','D3m6','zxjYB3i','ywnJzxb0','DgHPBMTPBMDFzgvSDge','Aw5WDxrFANnVBL9KzwX0yq','l3jLC3bVBNnLCW','ywjVCNq','zMLUza','t3bLBKfPqxbPrxjYB3i','yxbPs2v5','Aw1Hz2u','CM91DgvY','ChjVDMLKzxjFCMv0CNK','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','Aw5JBhvKzxm','sw52ywXPzcbYzxf1zxn0oIa','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','DhLWzq','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','Bw9KzwW','z2v0tw9KzwXZ','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','CMvXDwvZDa','Aw52ywXPzgf0zq','y2HHDenVBxbSzxrPB25Zugf0Aa','CMvZzxq','n1LzEK9kqq','BM93','yxbWBhLnB2rLBerLzMf1BhrZ','w0rptKvD','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','BNvTyMvY','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','CMvZCg9UC2vtDhjLyw0','yNvKz2v0vg9Rzw5Z','y29UC3vTzvnZzuv2zw50','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','y2f0y2G','mJaYns0Xmc0Wmq','y29UDgvUDf9IBg9JA19ZDgfYDa','BMfTzq','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','C3rYzwfTvMLHuM91DgvY','DMfSDwu','yxnZAxn0yw50','qMfZAa','y29TCgXLDgvtDxjMywnL','C3rYzwfTu3vYzMfJzq','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','Dg9tDhjPBMC','z2v0qw50AhjVCgLJrgvSzwDHDgu','DhjHBNnWB3j0','DNnJB2rLlZeUmta2lJe','zgvJB2rL','y29TCgXLDgu','B3v0Chv0x3rLEhq','zgvSDge','zNvUy3rPB24','yMvHCMvY','y29UDgvUDa','C3vWCg9YDgvKrw5KCg9PBNrZ','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','C3rHDhvZ','C2LNBMfS','zxzLBNq6','B3bLBG','otyWmZm2EMPRBujl','CMv0CNLHyMXL','r0vu','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','ChjVBxb0x3rVA2vUCW','B3v0Chv0sw5KzxHuB0nHBgXjza','Dg9VBa','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','l3yXl21LC3nHz2vZ','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','AxneB25L','Bwv0ywrHDge','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','y29UDgv4Df9Szw5NDgG','BwfW','CMvHzhLtDgf0zq'];_0x1ce2=function(){return _0x26222e;};return _0x1ce2();}function parseResponsesResponse(_0x5f1faa,_0x52d6ab){const _0xe72236={_0x5a6c5d:0x6f,_0x4924ae:0x11d,_0x342e31:0x101,_0x27e41c:0xd1,_0x125dbe:0x22d,_0x213e29:0x1a6,_0x387d44:0x220,_0x344bfd:0x154,_0x101d83:0x124,_0x7f859c:0xef,_0xc90448:0x100,_0x23d611:0x1ff,_0x2c1784:0x20e,_0x120ef0:0x22b,_0x2b7c08:0x206,_0x117898:0x227,_0x41a7a2:0x199,_0x3b3e12:0xe5,_0x941893:0x1c1,_0x36e0fc:0x15d,_0x5a8950:0xe4,_0x13e9e1:0x91,_0x509948:0xf1,_0x1f9285:0x119,_0x21e46f:0xee,_0x5ad26c:0x82,_0x4b12f0:0x122,_0x5ce355:0x151,_0x2a071d:0x115,_0x386daa:0xbb,_0x122213:0x140,_0x386ceb:0x133,_0x31ceab:0x16f,_0x3cb2c1:0x16d,_0x75d476:0x1ae,_0x11c6a3:0x223,_0x4b4d82:0x28a,_0x12b7e8:0x1ce,_0x3462bf:0x13c,_0x112322:0x269,_0x389de8:0x298,_0x151f09:0x262,_0x19b287:0xf4,_0x4b8317:0x25b,_0x19db46:0x22a,_0x25ccaf:0xea,_0x3d1f7d:0x14d,_0x3be45d:0x30d,_0x28d66e:0x45,_0x2d6dd2:0x43,_0x53aed9:0x110,_0x59ae31:0x1da,_0x827268:0x144,_0x1a2772:0x1ba,_0x19883e:0x18c,_0x471e9e:0x1bf,_0x547248:0x170,_0x490532:0x21e,_0x499ef0:0x14b,_0xfd2e06:0xdf,_0x472e74:0x17f,_0x5e99bb:0x51},_0x2f0035={_0x224592:0x60},_0x319391={_0x17e843:0x3a},_0x3dba32=[];function _0x81e053(_0x4848fa,_0x149767,_0x5ca43d,_0x19d89e){return _0x2e5e46(_0x4848fa-_0x319391._0x17e843,_0x5ca43d,_0x5ca43d-0x183,_0x19d89e- -0x754);}function _0x44a46b(_0x3964e8,_0x544c5e,_0x7029be,_0x49a4c6){return _0x4784b8(_0x3964e8-_0x2f0035._0x224592,_0x544c5e-0x83,_0x544c5e,_0x7029be- -0xed);}for(const _0x15bf5c of _0x5f1faa[_0x81e053(-_0xe72236._0x5a6c5d,-0x12f,-0x143,-_0xe72236._0x4924ae)]??[]){if(isResponsesReasoningItem(_0x15bf5c)){if(isUserVisibleReasoning(_0x52d6ab)){const _0x29322c=createOpenAiReasoningBlock(_0x15bf5c);hasVisibleOpenAiReasoning(_0x29322c)&&_0x3dba32[_0x44a46b(-_0xe72236._0x342e31,-0x120,-_0xe72236._0x4924ae,-_0xe72236._0x27e41c)](_0x29322c);}continue;}if(isResponsesMessageItem(_0x15bf5c)){const _0x8c1d44=normalizeResponsesMessageContent(_0x15bf5c[_0x81e053(-0x11b,-_0xe72236._0x125dbe,-0x129,-_0xe72236._0x213e29)]);_0x8c1d44[_0x44a46b(-0x150,-_0xe72236._0x387d44,-_0xe72236._0x344bfd,-0xbd)]>0x0&&_0x3dba32[_0x81e053(-0xbb,-_0xe72236._0x101d83,-_0xe72236._0x7f859c,-0xe2)]({'type':_0x81e053(-_0xe72236._0xc90448,-_0xe72236._0x23d611,-0x186,-0x173),'text':_0x8c1d44});continue;}if(!isResponsesFunctionCallItem(_0x15bf5c)||typeof _0x15bf5c['call_id']!=='string'||_0x15bf5c['call_id'][_0x81e053(-0x262,-_0xe72236._0x2c1784,-0x22d,-_0xe72236._0x120ef0)]()[_0x44a46b(-0x86,-_0xe72236._0x2b7c08,-0x154,-_0xe72236._0x117898)]===0x0||typeof _0x15bf5c[_0x44a46b(-_0xe72236._0x41a7a2,-0x1c9,-0x1f4,-0x224)]!==_0x44a46b(-_0xe72236._0x3b3e12,-_0xe72236._0x941893,-_0xe72236._0x36e0fc,-0xb0)||_0x15bf5c['name']['trim']()[_0x81e053(-_0xe72236._0x5a8950,-_0xe72236._0x13e9e1,-_0xe72236._0x509948,-_0xe72236._0x1f9285)]===0x0||typeof _0x15bf5c['arguments']!==_0x81e053(-0x190,-_0xe72236._0x21e46f,-_0xe72236._0x5ad26c,-_0xe72236._0x4b12f0))continue;_0x3dba32[_0x81e053(-_0xe72236._0x13e9e1,-0x30,-0xdb,-0xe2)]({'type':_0x44a46b(-0x155,-0xe7,-0x160,-_0xe72236._0x5ce355),'id':_0x15bf5c['call_id'],'name':_0x15bf5c[_0x81e053(-0x103,-0x182,-_0xe72236._0x2a071d,-0x1b9)],'input':parseToolInput2(_0x15bf5c[_0x81e053(-_0xe72236._0x386daa,-_0xe72236._0x122213,-_0xe72236._0x386ceb,-_0xe72236._0x31ceab)])});}return!_0x3dba32['some'](_0x5f424c=>_0x5f424c[_0x44a46b(-0x1c5,-0x292,-0x20c,-0x167)]===_0x81e053(-0xce,-0x166,-0x23a,-0x173))&&_0x5f1faa['output_text']&&_0x3dba32['push']({'type':_0x44a46b(-0x130,-_0xe72236._0x3cb2c1,-_0xe72236._0x75d476,-_0xe72236._0x11c6a3),'text':_0x5f1faa['output_text']}),{'id':_0x5f1faa['id'],'content':_0x3dba32,'stopReason':_0x3dba32[_0x81e053(-_0xe72236._0x4b4d82,-0x292,-_0xe72236._0x12b7e8,-0x240)](_0x6e95eb=>_0x6e95eb[_0x81e053(-0x1f0,-0x245,-0x22d,-0x1d1)]===_0x81e053(-0x165,-0xda,-0xb2,-0x125))?_0x81e053(-0x9f,-0x116,-_0xe72236._0x3462bf,-0x125):_0x81e053(-_0xe72236._0x112322,-_0xe72236._0x389de8,-_0xe72236._0x151f09,-0x251),'usage':{'inputTokens':_0x5f1faa[_0x81e053(-0x1ad,-0x169,-_0xe72236._0x19b287,-0x110)]?.[_0x44a46b(-0x31e,-0x320,-_0xe72236._0x4b8317,-_0xe72236._0x19db46)]??0x0,'outputTokens':_0x5f1faa[_0x81e053(-_0xe72236._0x25ccaf,-0x1c2,-_0xe72236._0x3d1f7d,-0x110)]?.[_0x44a46b(-0x22f,-0x1d5,-0x24d,-_0xe72236._0x3be45d)]??0x0,..._0x5f1faa[_0x81e053(-_0xe72236._0x28d66e,-_0xe72236._0x2d6dd2,-0xa7,-_0xe72236._0x53aed9)]?.[_0x44a46b(-_0xe72236._0x59ae31,-_0xe72236._0x827268,-_0xe72236._0x1a2772,-_0xe72236._0x19883e)]?.[_0x44a46b(-0x1e2,-0x18a,-_0xe72236._0x471e9e,-_0xe72236._0x31ceab)]!==void 0x0?{'reasoningTokens':_0x5f1faa[_0x44a46b(-_0xe72236._0x547248,-_0xe72236._0x490532,-_0xe72236._0x499ef0,-_0xe72236._0xfd2e06)][_0x81e053(-0x20b,-0x1bc,-0x249,-_0xe72236._0x472e74)]['reasoning_tokens']}:{}},..._0x5f1faa[_0x81e053(-0x8a,-_0xe72236._0x5e99bb,-0x1bc,-_0xe72236._0x4924ae)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x5f1faa['output']),'openaiResponsesResponseId':_0x5f1faa['id']}}:{}};}function extractErrorMessage(_0x300a18){const _0x43083c={_0x467851:0x1a2,_0x3af459:0x129,_0x2912b0:0xb9,_0x535840:0x1b0,_0x3d60d3:0x17e,_0x133314:0x52a,_0x208ef5:0x4f3,_0x2b22ab:0x5aa,_0x20ccd5:0x5e9,_0x307b3d:0x589,_0x5ee729:0x648,_0x4bf659:0x4d4,_0xcc336a:0x52a,_0x3cece9:0x20c,_0x5ae57c:0x19f,_0x392844:0x239,_0x4a610c:0x227,_0x5523ea:0x1cf,_0x2274ac:0x565,_0xc31dcd:0x136,_0x262afc:0xbf,_0x48c553:0x41f,_0x3e3c06:0x4a6,_0x148294:0x2bc,_0x5c3795:0x181,_0xd4b493:0x16b,_0x4bc60d:0x127,_0x51b576:0x421},_0x28a91c={_0x2a3178:0xde},_0x4106d8={_0x7112bd:0x1a};function _0x276801(_0x8cd6d3,_0x4ffedf,_0x189b6e,_0x3f5e02){return _0x2e5e46(_0x8cd6d3-_0x4106d8._0x7112bd,_0x8cd6d3,_0x189b6e-0x181,_0x4ffedf- -0x49);}if(_0x300a18[_0x2d73f1(-0x159,-_0x43083c._0x467851,-_0x43083c._0x3af459,-0x127)]===0x0)return'';function _0x2d73f1(_0x21e449,_0x17c7e2,_0xeb8d60,_0x1ea43c){return _0x2e5e46(_0x21e449-_0x28a91c._0x2a3178,_0xeb8d60,_0xeb8d60-0x177,_0x1ea43c- -0x762);}try{const _0x948e21=JSON[_0x2d73f1(-0x226,-_0x43083c._0x2912b0,-_0x43083c._0x535840,-_0x43083c._0x3d60d3)](_0x300a18);if(typeof _0x948e21[_0x276801(0x4d0,_0x43083c._0x133314,0x4c5,_0x43083c._0x208ef5)]?.['message']===_0x276801(_0x43083c._0x2b22ab,_0x43083c._0x20ccd5,_0x43083c._0x307b3d,_0x43083c._0x5ee729)&&_0x948e21[_0x276801(_0x43083c._0x4bf659,_0x43083c._0xcc336a,0x554,0x5b6)][_0x276801(0x4b3,0x4a6,0x3ee,0x472)][_0x2d73f1(-0x1fe,-_0x43083c._0x3cece9,-_0x43083c._0x5ae57c,-_0x43083c._0x392844)]()[_0x276801(0x540,0x5f2,0x55c,0x61d)]>0x0)return _0x948e21[_0x2d73f1(-_0x43083c._0x4a610c,-0x1b6,-_0x43083c._0x5523ea,-0x1ef)][_0x276801(0x4e4,0x4a6,_0x43083c._0x2274ac,0x4b3)]['trim']();if(typeof _0x948e21['message']===_0x2d73f1(-_0x43083c._0xc31dcd,-0x99,-_0x43083c._0x262afc,-0x130)&&_0x948e21[_0x276801(_0x43083c._0x48c553,_0x43083c._0x3e3c06,0x45c,0x575)][_0x2d73f1(-0x277,-_0x43083c._0x148294,-_0x43083c._0x5c3795,-0x239)]()[_0x2d73f1(-0xa6,-_0x43083c._0xd4b493,-0x7c,-_0x43083c._0x4bc60d)]>0x0)return _0x948e21[_0x276801(0x49a,0x4a6,_0x43083c._0x51b576,0x3e2)]['trim']();}catch{return _0x300a18;}return _0x300a18;}async function createOpenAiApiError(_0x38885d){const _0x29ff0a={_0xd8fd92:0x1b9,_0x1a24ea:0xa9,_0x321618:0x37a,_0x1a3598:0x3be,_0x253051:0x8d,_0x44a91b:0x8b,_0x4cae04:0x105,_0x533ea7:0x23e,_0x20cef4:0x1ec,_0x2cdecd:0x11c,_0x3b5882:0x6f,_0x25e5c0:0x404,_0x3cecea:0x371,_0x4c2bc3:0x47c},_0x102d63={_0x589b1a:0x1af},_0x5752c5={_0x49a4fa:0x6cf},_0xa48e07=(await _0x38885d[_0x2da0ef(-0x184,-_0x29ff0a._0xd8fd92,-0xee,-_0x29ff0a._0x1a24ea)]())[_0x3e3e5b(0x359,_0x29ff0a._0x321618,0x368,_0x29ff0a._0x1a3598)]();function _0x2da0ef(_0x520fab,_0x37136c,_0xa3bb29,_0x884930){return _0x2e5e46(_0x520fab-0x68,_0x520fab,_0xa3bb29-0x1,_0xa3bb29- -_0x5752c5._0x49a4fa);}function _0x3e3e5b(_0x3e8606,_0x152bb1,_0x272456,_0x24a289){return _0x2e5e46(_0x3e8606-0x169,_0x24a289,_0x272456-0x48,_0x152bb1- -_0x102d63._0x589b1a);}const _0x4e987f=extractErrorMessage(_0xa48e07)||_0x38885d[_0x2da0ef(-0x7e,-0x41,-_0x29ff0a._0x253051,-_0x29ff0a._0x44a91b)]||_0x2da0ef(-_0x29ff0a._0x4cae04,-_0x29ff0a._0x533ea7,-0x185,-0x222)+_0x38885d[_0x2da0ef(-0x170,-_0x29ff0a._0x20cef4,-_0x29ff0a._0x2cdecd,-_0x29ff0a._0x3b5882)];return new OpenAiApiError(_0x38885d[_0x3e3e5b(0x361,_0x29ff0a._0x25e5c0,_0x29ff0a._0x3cecea,_0x29ff0a._0x4c2bc3)],_0xa48e07,_0x4e987f);}function readSseData(_0x49819c){const _0x5d1551={_0x3d63f7:0x203,_0x17aecb:0x231,_0x4e42ba:0x143,_0x4e18e5:0x209,_0x16d9d4:0x1da,_0x2d9e5d:0xa1,_0x40434d:0x173},_0x36f8c3={_0x2899d7:0x6b,_0x410481:0x69c};function _0x3a1ec1(_0x24328c,_0xcf6cff,_0x103563,_0x5ba3a9){return _0x2e5e46(_0x24328c-0x15e,_0xcf6cff,_0x103563-_0x36f8c3._0x2899d7,_0x103563- -_0x36f8c3._0x410481);}function _0x40c26f(_0x32dc07,_0x541aae,_0x208d30,_0x3041ca){return _0x4784b8(_0x32dc07-0x136,_0x541aae-0x187,_0x541aae,_0x208d30-0x284);}return _0x49819c[_0x40c26f(_0x5d1551._0x3d63f7,0x293,0x1c8,0x104)]('\x0a')['filter'](_0x38c0ab=>_0x38c0ab[_0x3a1ec1(-0x37,-0x13b,-0xce,-0xf)](_0x40c26f(0x204,0x1ab,0x24f,0x200)))[_0x40c26f(0x16e,0x271,0x1ab,0x136)](_0xfe59e9=>_0xfe59e9['slice'](0x5)[_0x40c26f(0x28f,0x1b2,0x1f6,0x251)]())[_0x40c26f(_0x5d1551._0x17aecb,_0x5d1551._0x4e42ba,_0x5d1551._0x4e18e5,0x25f)]('\x0a')[_0x3a1ec1(-_0x5d1551._0x16d9d4,-_0x5d1551._0x2d9e5d,-_0x5d1551._0x40434d,-0x11e)]();}function readString(_0xbf6795){const _0x1d0b55={_0x49e8e8:0x4a2,_0x498424:0x42e,_0x256408:0x4c6,_0x55254c:0x346,_0x47895a:0x344},_0xedbe05={_0xdd6b1c:0x1b4,_0x3c89a7:0x38c},_0x5372e4={_0x2b82b8:0x1ae,_0x409115:0x50,_0x25f24d:0x1c3};function _0x54acac(_0x3c3437,_0x16d9bb,_0x248af3,_0x11adf1){return _0x2e5e46(_0x3c3437-_0x5372e4._0x2b82b8,_0x16d9bb,_0x248af3-_0x5372e4._0x409115,_0x248af3- -_0x5372e4._0x25f24d);}function _0x1149f2(_0x36ac96,_0x4b2a1a,_0x59ff46,_0x115a05){return _0x2e5e46(_0x36ac96-0x16f,_0x4b2a1a,_0x59ff46-_0xedbe05._0xdd6b1c,_0x59ff46- -_0xedbe05._0x3c89a7);}return typeof _0xbf6795===_0x54acac(_0x1d0b55._0x49e8e8,_0x1d0b55._0x498424,0x46f,_0x1d0b55._0x256408)&&_0xbf6795[_0x1149f2(0x2e9,_0x1d0b55._0x55254c,0x2af,_0x1d0b55._0x47895a)]>0x0?_0xbf6795:void 0x0;}function extractReasoningDetails(_0x4c61fd){const _0x41a404={_0x35e1e4:0x181,_0x21544e:0x70,_0x546219:0xd1,_0x351af2:0x6f,_0x507de3:0x1d6,_0xe2b178:0x1d9,_0x323c2f:0x8e,_0x588f9d:0x12b,_0x516d21:0x6},_0x115b64={_0x4cc608:0x43e,_0x2cbaab:0x36e,_0x388e59:0x80,_0xe0715a:0xf,_0x2af42c:0x41,_0x2d275d:0x30,_0x462140:0x27,_0x2dfceb:0x532},_0x2c8fbb={_0x140f67:0x1c9},_0x54aa82={_0x32b273:0x5f},_0x4c0f6d={_0x442916:0xa9};function _0x5d75ee(_0x136b46,_0xff1dd,_0xc8bf0a,_0x1e37c8){return _0x4784b8(_0x136b46-0xbd,_0xff1dd-_0x4c0f6d._0x442916,_0x136b46,_0xc8bf0a- -0x49);}function _0x319e01(_0x57ec6a,_0xa15c65,_0x3ac5b,_0x4f63e3){return _0x2e5e46(_0x57ec6a-0x179,_0x57ec6a,_0x3ac5b-_0x54aa82._0x32b273,_0x3ac5b- -0x82);}if(!Array[_0x5d75ee(-_0x41a404._0x35e1e4,-_0x41a404._0x21544e,-_0x41a404._0x546219,-_0x41a404._0x351af2)](_0x4c61fd))return void 0x0;const _0x5753f9=_0x4c61fd[_0x5d75ee(-0x5b,-_0x41a404._0x507de3,-0x110,-_0x41a404._0xe2b178)](_0x424d7d=>{const _0x2d40d8={_0x2aec18:0x14f};if(!_0x424d7d||typeof _0x424d7d!==_0xb73e73(_0x115b64._0x4cc608,0x4e8,0x41d,_0x115b64._0x2cbaab))return[];function _0x33fe49(_0x2d8e1e,_0x4afad1,_0x4b8310,_0x21eb0f){return _0x5d75ee(_0x4afad1,_0x4afad1-_0x2d40d8._0x2aec18,_0x2d8e1e-0x39,_0x21eb0f-0x171);}const _0xc48eab=_0x424d7d;if(typeof _0xc48eab['text']===_0x33fe49(-_0x115b64._0x388e59,_0x115b64._0xe0715a,_0x115b64._0x2af42c,-0xbd))return[_0xc48eab[_0x33fe49(-0xd1,-_0x115b64._0x2d275d,-_0x115b64._0x462140,-0x5f)]];if(typeof _0xc48eab[_0xb73e73(0x5ff,0x4e3,_0x115b64._0x2dfceb,0x466)]==='string')return[_0xc48eab['summary']];function _0xb73e73(_0x5f1b91,_0x1f0fbc,_0x3e87bc,_0x365d6a){return _0x319e01(_0x5f1b91,_0x1f0fbc-_0x2c8fbb._0x140f67,_0x3e87bc- -0xa8,_0x365d6a-0x1ab);}return[];});return _0x5753f9[_0x5d75ee(-0x150,-0x151,-0xb0,-_0x41a404._0x323c2f)]>0x0?_0x5753f9[_0x5d75ee(-_0x41a404._0x588f9d,_0x41a404._0x516d21,-0xc4,-0xf1)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x2b0bd0){const _0x2b4082={_0x321f69:0x4a,_0x483912:0xa3,_0x270d50:0x4fa,_0x5a777f:0x487,_0x5bc894:0x69},_0x6a7bd9={_0x2fceeb:0xdb,_0x15742a:0x1a,_0x505c82:0x72};function _0x35eca4(_0x8d7a2f,_0x34dede,_0x54e4bd,_0x27730b){return _0x4784b8(_0x8d7a2f-_0x6a7bd9._0x2fceeb,_0x34dede-_0x6a7bd9._0x15742a,_0x54e4bd,_0x27730b-_0x6a7bd9._0x505c82);}function _0x475c3e(_0x1cb049,_0xfe729b,_0x3bec3d,_0x2c7fe4){return _0x4784b8(_0x1cb049-0x87,_0xfe729b-0xf4,_0x3bec3d,_0x2c7fe4-0x6ae);}return extractReasoningDetails(_0x2b0bd0?.[_0x35eca4(0xe8,_0x2b4082._0x321f69,0x2d,0x3a)])??readString(_0x2b0bd0?.[_0x35eca4(-_0x2b4082._0x483912,-0x4,-0x18a,-0xc2)])??readString(_0x2b0bd0?.[_0x475c3e(_0x2b4082._0x270d50,_0x2b4082._0x5a777f,0x492,0x52d)])??readString(_0x2b0bd0?.[_0x35eca4(_0x2b4082._0x5bc894,-0x73,-0x6b,-0x35)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x4784b8(-0xdd,-0x7,-0x12e,-0x96)]=[];[_0x2e5e46(0x642,0x5f3,0x574,0x588)];[_0x4784b8(-0x80,0x15,-0x102,-0xbb)]=[];[_0x2e5e46(0x62d,0x5d1,0x59f,0x55e)]=new Map();[_0x4784b8(-0xe8,-0x107,-0xe1,-0x14a)]=[];['toolUseStartEmitted']=new Set();[_0x2e5e46(0x50c,0x45a,0x49b,0x51d)]='';['stopReason']=_0x4784b8(-0x172,-0x1d2,-0x173,-0x19f);['usage'];constructor(_0xe0ae41){this['request']=_0xe0ae41;}['consumeSseEvent'](_0x11f035){const _0x8a1f1b={_0x37e4ad:0x17b,_0x265abf:0xcb,_0x13b187:0x11c,_0x3a77f9:0x5d1,_0x313f4c:0x4d,_0x4a8cdc:0x74,_0x5eeaca:0x41,_0x520737:0x6c4,_0x46d610:0x747},_0x48cdd6={_0x1d1da4:0x76,_0x801871:0x191},_0x203e85=readSseData(_0x11f035);function _0xe40312(_0x12d99f,_0x2c5182,_0xff7150,_0x3f58a5){return _0x4784b8(_0x12d99f-0x1a1,_0x2c5182-0x1e8,_0x3f58a5,_0xff7150-0x6be);}if(_0x203e85[_0xae37e5(0x15d,_0x8a1f1b._0x37e4ad,_0x8a1f1b._0x265abf,_0x8a1f1b._0x13b187)]===0x0||_0x203e85===_0xe40312(_0x8a1f1b._0x3a77f9,0x5f5,0x5ab,0x5fc))return[];const _0x3896ff=JSON[_0xae37e5(-_0x8a1f1b._0x313f4c,0x2,_0x8a1f1b._0x4a8cdc,0x135)](_0x203e85);this[_0xae37e5(-0x42,0x40,-0x53,_0x8a1f1b._0x5eeaca)]=_0x3896ff['id']??this['responseId'],this['usage']=_0x3896ff['usage']??this[_0xae37e5(0xb6,0x161,0xd4,0xb6)];function _0xae37e5(_0x4f0d58,_0x3b1012,_0x2f4761,_0x4e1c66){return _0x4784b8(_0x4f0d58-_0x48cdd6._0x1d1da4,_0x3b1012-_0x48cdd6._0x801871,_0x4e1c66,_0x2f4761-0x132);}return this[_0xe40312(_0x8a1f1b._0x520737,_0x8a1f1b._0x46d610,0x67d,0x63f)](_0x3896ff);}[_0x2e5e46(0x50e,0x629,0x49b,0x56b)](){const _0xe216ae={_0xd28509:0x42,_0x1717d8:0x7f,_0x288fd6:0x85,_0x5f4ead:0x107,_0x39e766:0x186,_0x1a7b22:0xe1,_0x35e327:0x56b,_0x2f9bee:0x54c,_0x3a1067:0x557,_0x4dcf7e:0x55,_0x5185b6:0x4ec,_0x122ae9:0x188,_0x58d3d6:0x96,_0x5e0131:0x117,_0x301bdd:0x21c,_0x4aac32:0x155,_0x38b69e:0x1b8,_0x46e263:0x183,_0x262b80:0x129,_0x4608fb:0x647,_0x30d698:0x63a,_0x5659ab:0x626,_0x68c88b:0x6b5},_0x18c5f3={_0x389df3:0x116,_0x42cc64:0xb4,_0x319f51:0x6e},_0x5ca821={_0x2c7c28:0x36,_0x2b2d6b:0x31};function _0x116295(_0x2f7e25,_0x31cd1a,_0x3fde6c,_0x187936){return _0x2e5e46(_0x2f7e25-0x93,_0x3fde6c,_0x3fde6c-_0x5ca821._0x2c7c28,_0x187936- -_0x5ca821._0x2b2d6b);}this['toolCallOrder']['length']>0x0&&(this[_0x21df88(-_0xe216ae._0xd28509,-_0xe216ae._0x1717d8,-0xa2,-0xc9)]=_0x21df88(-_0xe216ae._0x288fd6,-_0xe216ae._0x5f4ead,-_0xe216ae._0x39e766,-_0xe216ae._0x1a7b22));function _0x21df88(_0x18ff46,_0x561cb8,_0x36f4b9,_0x1c22a6){return _0x4784b8(_0x18ff46-_0x18c5f3._0x389df3,_0x561cb8-_0x18c5f3._0x42cc64,_0x18ff46,_0x1c22a6- -_0x18c5f3._0x319f51);}const _0x174fd9=isUserVisibleReasoning(this[_0x116295(_0xe216ae._0x35e327,0x512,_0xe216ae._0x2f9bee,_0xe216ae._0x3a1067)])?this[_0x21df88(-0x123,-0x1af,-_0xe216ae._0x4dcf7e,-0x104)]['join'](''):void 0x0;return{'id':this[_0x116295(0x564,0x470,0x434,_0xe216ae._0x5185b6)]||_0x21df88(-_0xe216ae._0x122ae9,-_0xe216ae._0x58d3d6,-_0xe216ae._0x5e0131,-0xbb)+Date[_0x21df88(-_0xe216ae._0x301bdd,-_0xe216ae._0x4aac32,-_0xe216ae._0x38b69e,-_0xe216ae._0x46e263)](),'content':createContentBlocks(this[_0x21df88(-0x7f,-0x177,-0x7b,-_0xe216ae._0x262b80)][_0x116295(_0xe216ae._0x4608fb,0x5b0,_0xe216ae._0x30d698,0x5f6)](''),this['toolCallOrder'],_0x174fd9),'stopReason':this['stopReason'],'usage':createUsage(this[_0x116295(0x589,_0xe216ae._0x5659ab,_0xe216ae._0x68c88b,0x613)])};}[_0x2e5e46(0x672,0x60b,0x6da,0x661)](_0x34aa91){const _0x169faf={_0x425c42:0x2ee,_0x35b23a:0x304,_0x327794:0x27d,_0x56d43a:0xad,_0x535b80:0x61,_0x5a7454:0x3fb,_0x330a41:0x2cb,_0x243200:0x28e,_0x51e0ef:0x289,_0x59ed9a:0x1ff,_0x10d758:0x3ba,_0x4493aa:0x3dc,_0x287984:0x418,_0x454041:0x1f6,_0x7d75e7:0x3a8,_0x567f57:0x375,_0xba14bb:0x443,_0x19afcd:0x39b,_0x4c09d5:0x14,_0x3fde20:0x1e,_0x3cca20:0xaa,_0x3b8798:0xe4,_0x42a31b:0x70,_0x1ace54:0x1d,_0x3f6ec6:0x279,_0x5bf447:0x1b4,_0x54a28e:0x13,_0x3c6033:0x70,_0x7c60b2:0x2a1,_0x3c8eda:0x322,_0x55e222:0x300,_0x2692b4:0x360,_0x4446a2:0xbb,_0x258d10:0xed,_0xc63c13:0x23e,_0x4e9c0d:0x165,_0x5ed366:0xe2,_0x4d8959:0x38d,_0x7aa78b:0x2de,_0x2d4ea1:0x382,_0x4d9281:0x30e,_0x4fca7a:0x346,_0xde65ae:0xd,_0xb81088:0x5,_0x1e4731:0x58,_0x42a3d2:0x2ef,_0x1c9b84:0x28f,_0x3be0fb:0xf5,_0x341b67:0x305,_0x4c1aaa:0x34e,_0x17fd36:0x2de,_0x3fd975:0x336,_0x33ae46:0x31d,_0x428429:0x3b5,_0x50033c:0x339,_0x2878f1:0xe3,_0x496797:0xd7,_0x230c8c:0x9a,_0x1341b4:0x287,_0xfb9df4:0x290,_0x4905be:0x81,_0x3acf2a:0xf2,_0x63611a:0x14d,_0x4f8136:0x2ef,_0x5c7342:0x358,_0x372082:0x328,_0xff4b14:0x358,_0x270c9b:0x308,_0x2fa546:0xba,_0xdac7a0:0x2,_0x49af42:0xd1,_0xd447f1:0xaf,_0x5edd67:0x19,_0x43bef6:0x69,_0x4b43bc:0x76,_0x3e898b:0x3c,_0x187ccd:0x74,_0x57b8b1:0x5f,_0x482577:0x38a,_0x462128:0x357,_0x285bac:0x30b,_0x2938f3:0xa1,_0x19f1db:0x88},_0x5bed71={_0xe97656:0x157,_0x25e141:0x3e5},_0xb2e0ea={_0x126b34:0x58e},_0x33aea9=[];function _0x368dea(_0x499c4e,_0x22d5d6,_0x5b09a3,_0x2abe07){return _0x2e5e46(_0x499c4e-0x13f,_0x2abe07,_0x5b09a3-0x164,_0x499c4e- -_0xb2e0ea._0x126b34);}function _0x11d9d1(_0x17f400,_0x10ccfc,_0x275596,_0x40d8b4){return _0x4784b8(_0x17f400-_0x5bed71._0xe97656,_0x10ccfc-0x197,_0x10ccfc,_0x17f400-_0x5bed71._0x25e141);}for(const _0x5b861f of _0x34aa91['choices']??[]){const _0x1ddb34=_0x5b861f[_0x11d9d1(_0x169faf._0x425c42,_0x169faf._0x35b23a,0x278,_0x169faf._0x327794)],_0x8f935a=extractChatCompletionReasoningDelta(_0x1ddb34);_0x8f935a[_0x368dea(_0x169faf._0x56d43a,_0x169faf._0x535b80,0x81,0x46)]>0x0&&(this[_0x11d9d1(0x34f,0x2a9,0x285,_0x169faf._0x5a7454)]['push'](_0x8f935a),isUserVisibleReasoning(this[_0x11d9d1(_0x169faf._0x330a41,0x2e8,0x2a9,0x2c3)])&&_0x33aea9[_0x368dea(0xe4,0x71,0xf9,0x145)]({'type':_0x11d9d1(0x235,_0x169faf._0x243200,_0x169faf._0x51e0ef,_0x169faf._0x59ed9a),'contentIndex':0x0,'delta':_0x8f935a,'itemId':(this['responseId']||_0x11d9d1(_0x169faf._0x10d758,_0x169faf._0x4493aa,_0x169faf._0x287984,0x32a))+_0x11d9d1(0x230,0x206,_0x169faf._0x454041,0x2d3),'outputIndex':0x0}));const _0x2785e0=typeof _0x1ddb34?.[_0x11d9d1(0x2f1,_0x169faf._0x7d75e7,0x2dc,0x266)]==='string'?_0x1ddb34['content']:typeof _0x1ddb34?.['refusal']===_0x11d9d1(_0x169faf._0x567f57,_0x169faf._0xba14bb,_0x169faf._0x19afcd,0x32a)?_0x1ddb34['refusal']:'';_0x2785e0[_0x368dea(0xad,0x169,_0x169faf._0x4c09d5,_0x169faf._0x3fde20)]>0x0&&(this[_0x368dea(0x59,_0x169faf._0x3cca20,-0x27,0x85)][_0x368dea(_0x169faf._0x3b8798,0x198,0x155,_0x169faf._0x42a31b)](_0x2785e0),_0x33aea9['push']({'type':_0x368dea(-0x9e,-0x16d,_0x169faf._0x1ace54,0x2e),'index':0x0,'text':_0x2785e0}));for(const _0x1ded82 of _0x1ddb34?.[_0x11d9d1(_0x169faf._0x3f6ec6,_0x169faf._0x5bf447,0x25b,0x293)]??[]){const _0x5e40e6=_0x1ded82[_0x368dea(0xc1,_0x169faf._0x54a28e,0x17f,_0x169faf._0x3c6033)]??0x0;let _0x43211b=this[_0x11d9d1(_0x169faf._0x7c60b2,_0x169faf._0x3c8eda,_0x169faf._0x55e222,_0x169faf._0x2692b4)]['get'](_0x5e40e6);!_0x43211b&&(_0x43211b={'id':_0x1ded82['id']??'tool-call-'+_0x5e40e6,'type':'function','function':{'name':_0x1ded82[_0x368dea(0x1e,0xed,_0x169faf._0x4446a2,_0x169faf._0x258d10)]?.[_0x368dea(0xd,0x14,-0xa6,-0x8b)]??'','arguments':''}},this[_0x11d9d1(0x2a1,0x273,_0x169faf._0xc63c13,0x2d7)]['set'](_0x5e40e6,_0x43211b),this['toolCallOrder'][_0x368dea(0xe4,_0x169faf._0x4e9c0d,0x16d,_0x169faf._0x5ed366)](_0x43211b));_0x1ded82['id']&&(_0x43211b['id']=_0x1ded82['id']);_0x1ded82[_0x11d9d1(0x2ef,0x2b9,_0x169faf._0x4d8959,0x2fa)]?.[_0x11d9d1(_0x169faf._0x7aa78b,_0x169faf._0x2d4ea1,_0x169faf._0x4d9281,_0x169faf._0x4fca7a)]&&(_0x43211b['function'][_0x368dea(_0x169faf._0xde65ae,_0x169faf._0xb81088,-_0x169faf._0x1e4731,-0x80)]=_0x1ded82[_0x11d9d1(_0x169faf._0x42a3d2,_0x169faf._0x1c9b84,0x322,0x328)]['name']);!this['toolUseStartEmitted'][_0x368dea(0xf0,0x145,_0x169faf._0x3be0fb,0xce)](_0x5e40e6)&&_0x43211b[_0x11d9d1(0x2ef,0x267,_0x169faf._0x341b67,_0x169faf._0x4c1aaa)][_0x11d9d1(_0x169faf._0x17fd36,_0x169faf._0x3fd975,0x257,_0x169faf._0x33ae46)]['trim']()['length']>0x0&&(_0x33aea9[_0x11d9d1(_0x169faf._0x428429,_0x169faf._0x50033c,0x386,0x45f)]({'type':_0x368dea(-0x78,-0x24,-0x16,-_0x169faf._0x2878f1),'id':_0x43211b['id'],'index':_0x5e40e6,'name':_0x43211b[_0x368dea(0x1e,_0x169faf._0x496797,_0x169faf._0x230c8c,-0x3e)][_0x11d9d1(_0x169faf._0x7aa78b,0x26d,_0x169faf._0x1341b4,_0x169faf._0xfb9df4)]}),this['toolUseStartEmitted'][_0x368dea(_0x169faf._0x4905be,_0x169faf._0x3acf2a,0x10e,_0x169faf._0x63611a)](_0x5e40e6));const _0x34814b=_0x1ded82[_0x11d9d1(_0x169faf._0x4f8136,0x345,0x257,_0x169faf._0x5c7342)]?.[_0x11d9d1(_0x169faf._0x372082,_0x169faf._0xff4b14,_0x169faf._0x270c9b,0x3a3)]??'';_0x34814b[_0x368dea(_0x169faf._0x56d43a,_0x169faf._0x2fa546,_0x169faf._0xdac7a0,_0x169faf._0x49af42)]>0x0&&(_0x43211b[_0x368dea(_0x169faf._0x3fde20,-0x86,_0x169faf._0xd447f1,-0x52)][_0x368dea(0x57,_0x169faf._0x5edd67,-_0x169faf._0xb81088,0x8e)]+=_0x34814b,_0x33aea9[_0x368dea(_0x169faf._0x3b8798,0x12f,0x193,_0x169faf._0x43bef6)]({'type':_0x368dea(-0x78,-0x12f,-0x8e,0x21),'id':_0x43211b['id'],'index':_0x5e40e6,'inputDelta':_0x34814b}));}_0x5b861f[_0x368dea(_0x169faf._0x4b43bc,_0x169faf._0x3e898b,_0x169faf._0x187ccd,_0x169faf._0x57b8b1)]===_0x368dea(-0x58,0x36,-0x112,-0x7d)&&(this[_0x11d9d1(_0x169faf._0x482577,_0x169faf._0x462128,_0x169faf._0x285bac,0x324)]=_0x368dea(_0x169faf._0x2938f3,0x139,0x152,_0x169faf._0x19f1db));}return _0x33aea9;}},OpenAiResponsesStreamParser=class{[_0x2e5e46(0x572,0x626,0x4dd,0x55b)]=new Map();[_0x2e5e46(0x6dd,0x6be,0x67a,0x66c)];[_0x4784b8(-0x3b,-0x105,-0x15,-0xe5)]=new Map();['outputIndexToReasoningId']=new Map();['reasoningItems']=new Map();[_0x2e5e46(0x597,0x54b,0x620,0x588)];['responseTextParts']=new Map();[_0x2e5e46(0x70c,0x6f6,0x6a4,0x649)]=new Map();constructor(_0x5b93ba){const _0x480864={_0x475eb1:0x4bc,_0x1495a1:0x423},_0x4413ba={_0x24b0ab:0xf9,_0x25a97b:0x127};function _0x24df4e(_0x5d37eb,_0x53a153,_0x16c172,_0x1a1b6e){return _0x4784b8(_0x5d37eb-_0x4413ba._0x24b0ab,_0x53a153-_0x4413ba._0x25a97b,_0x16c172,_0x53a153-0x5d6);}this[_0x24df4e(0x4d0,_0x480864._0x475eb1,0x43c,_0x480864._0x1495a1)]=_0x5b93ba;}[_0x2e5e46(0x5e8,0x5e7,0x5f9,0x595)](_0x50b35d){const _0x5994c5={_0x36e7f4:0x166,_0x4b963b:0x41,_0x5a25ee:0x68,_0x40d101:0xf3,_0x42aab2:0x34c,_0x38a164:0x464,_0x25f6d1:0x3ec,_0x3bc58f:0x3ae,_0x500bc2:0x374,_0x13de38:0x395,_0x434b9a:0x349,_0x2e212:0x452,_0xedd092:0x35b,_0x2185cc:0x451,_0x3c8241:0x17b,_0x3806f0:0x18f,_0x3dced1:0x16f,_0x6eaed1:0x330,_0x30a3d0:0x303},_0x45c279={_0x402797:0xb3},_0x18a443={_0x31b393:0x33,_0x421b18:0x148},_0x4a3fdc=_0x50b35d[_0x10b8c5(0x100,_0x5994c5._0x36e7f4,_0x5994c5._0x4b963b,0x46)]('\x0a'),_0x1887b5=_0x4a3fdc['find'](_0x2735c0=>_0x2735c0['startsWith'](_0x5ced5e(0x390,0x290,0x280,0x335)))?.[_0x10b8c5(_0x5994c5._0x5a25ee,-0x35,-0x2c,-0x22)](0x6)[_0x10b8c5(0x43,0x88,-0x5d,_0x5994c5._0x40d101)](),_0x2fe425=_0x4a3fdc[_0x5ced5e(_0x5994c5._0x42aab2,_0x5994c5._0x38a164,_0x5994c5._0x25f6d1,_0x5994c5._0x3bc58f)](_0x3f8441=>_0x3f8441[_0x10b8c5(0xe8,0x7b,0xbc,0x115)]('data:'))[_0x5ced5e(_0x5994c5._0x500bc2,_0x5994c5._0x13de38,0x2b8,_0x5994c5._0x434b9a)](_0x4f7d17=>_0x4f7d17['slice'](0x5)[_0x5ced5e(0x35a,0x413,0x41d,0x394)]())['join']('\x0a')['trim']();if(_0x2fe425[_0x5ced5e(_0x5994c5._0x2e212,_0x5994c5._0xedd092,_0x5994c5._0x2185cc,0x3bb)]===0x0||_0x2fe425==='[DONE]')return[];function _0x10b8c5(_0x23019d,_0x24df29,_0x8bb7ca,_0x4a6269){return _0x2e5e46(_0x23019d-_0x18a443._0x31b393,_0x8bb7ca,_0x8bb7ca-_0x18a443._0x421b18,_0x23019d- -0x4e6);}function _0x5ced5e(_0x50e8d8,_0x17232c,_0x4eee78,_0x48dd81){return _0x4784b8(_0x50e8d8-0x142,_0x17232c-_0x45c279._0x402797,_0x50e8d8,_0x48dd81-0x422);}const _0x3efb83=JSON['parse'](_0x2fe425);return this[_0x10b8c5(_0x5994c5._0x3c8241,_0x5994c5._0x3806f0,_0x5994c5._0x3dced1,0x169)](_0x1887b5??String(_0x3efb83[_0x5ced5e(0x2de,0x315,_0x5994c5._0x6eaed1,_0x5994c5._0x30a3d0)]??''),_0x3efb83);}[_0x2e5e46(0x53e,0x69d,0x5aa,0x5f6)](_0x2d0420){const _0x3368e9={_0x8a3cfc:0x514,_0x3037ee:0x559},_0x53c23a={_0x15e45f:0x12f,_0xfa44c8:0x555};function _0x4857d7(_0x3d4ce7,_0x5e8bb3,_0x4d0454,_0x1b9350){return _0x4784b8(_0x3d4ce7-0x66,_0x5e8bb3-_0x53c23a._0x15e45f,_0x4d0454,_0x5e8bb3-_0x53c23a._0xfa44c8);}return this[_0x4857d7(0x5b6,_0x3368e9._0x8a3cfc,_0x3368e9._0x3037ee,0x501)](String(_0x2d0420['type']??''),_0x2d0420);}['finish'](){const _0x37e455={_0x24a77c:0x1f1,_0x2ca1cc:0x2ab,_0x498c0c:0x36b,_0x10ad37:0x2c8,_0x51a5ab:0x258,_0x2de9f1:0x302,_0x29e319:0x206,_0x5cfdfe:0x1cb,_0x5f31d3:0x5d9,_0x5946e2:0x568},_0x3026a3={_0x462c98:0x1a7,_0x5eb24a:0xbf},_0x11d762={_0xa7643f:0x42};function _0x576962(_0x2bdbf6,_0x36d249,_0x15b350,_0x2456ba){return _0x2e5e46(_0x2bdbf6-_0x11d762._0xa7643f,_0x36d249,_0x15b350-0x7,_0x2bdbf6- -0x28);}function _0x3c618d(_0x59ce6e,_0x3ec0a2,_0x17c30d,_0x1385a1){return _0x2e5e46(_0x59ce6e-_0x3026a3._0x462c98,_0x1385a1,_0x17c30d-_0x3026a3._0x5eb24a,_0x59ce6e- -0x314);}const _0x14fb49=this['finalResponse']??{'id':'resp-'+Date['now'](),'object':_0x3c618d(0x1e1,0x1c3,0x23e,_0x37e455._0x24a77c),'status':_0x3c618d(0x2d9,_0x37e455._0x2ca1cc,_0x37e455._0x498c0c,_0x37e455._0x10ad37),'output':this[_0x3c618d(_0x37e455._0x51a5ab,_0x37e455._0x2de9f1,_0x37e455._0x29e319,_0x37e455._0x5cfdfe)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x14fb49,this[_0x576962(0x560,_0x37e455._0x5f31d3,0x584,_0x37e455._0x5946e2)]);}[_0x2e5e46(0x520,0x5d1,0x63e,0x5c5)](){return this['finalResponse']!==void 0x0;}[_0x2e5e46(0x700,0x6fe,0x606,0x661)](_0x4c2b43,_0x8ee964){const _0x40df6f={_0x3650e8:0x111,_0x38bdb8:0x10,_0x34470a:0xcc,_0x530629:0x2,_0x272f18:0x132,_0x2c9fc6:0x8e,_0x1b6e57:0xc8,_0x3493d7:0xb2,_0x22c386:0xa1,_0x4e07c8:0x11,_0x3da18e:0xd3,_0x14a3dd:0x80,_0x16f8e6:0x6b,_0x35a664:0x91,_0xc2e7e7:0x1c,_0x572916:0x1d,_0x554751:0x8f,_0x571e40:0x1bd,_0x367515:0xaa,_0x2c8005:0xef,_0x58a899:0x4a,_0x11e87f:0x13f,_0x8cd05d:0xac,_0x259a69:0x12f,_0x313833:0x3b,_0x1ed15b:0xd6,_0x2202f0:0x58,_0x4d55a8:0x3b,_0x180be0:0x2,_0xef0a65:0x13c,_0x98bd60:0x2a,_0x558caa:0x68,_0xc80afe:0x31,_0x2a07c6:0x21,_0xc764b:0x16,_0x426cb8:0x7d,_0x31204a:0x97,_0x3c7d49:0xe8,_0x20381a:0x17,_0x4e3997:0x3f,_0x32c3d7:0x60,_0x2af71a:0xb4,_0x38487a:0x62,_0x4224af:0xd1,_0x383c8d:0xf,_0x3a8ea9:0x4d,_0x588745:0x184,_0x32cffb:0x67,_0x11b0cf:0xdb,_0x436aaa:0x3e,_0x41d398:0x14c,_0x3d8943:0x84,_0x17c7ee:0x127,_0x5c1dd7:0x39,_0x2161d1:0xbe,_0x2cddf7:0xbd,_0x54cacb:0x13,_0x5cb90d:0xbf,_0x1f5dd0:0x1a,_0x549461:0x24,_0x5d22b4:0x49,_0x53c2fd:0x31,_0x3cf02d:0x39,_0x413208:0x71,_0x5e5eff:0xe,_0x2e01b4:0x22,_0x343a19:0x3d,_0x4bb160:0x8d,_0x1b26e5:0xa3,_0x2ee094:0xc2,_0x337d03:0x99,_0x315fa6:0x13d,_0x3cd471:0x13a,_0x5eb4e7:0xe6,_0xfe72a4:0x1d,_0x579ec8:0xac,_0x2a6095:0x8d,_0x42a172:0x167,_0x2acc7b:0x36,_0x34da76:0x42,_0x3cb379:0x14f,_0x28c642:0x36,_0x14e220:0x1d,_0x3ae383:0x57,_0x37ce1a:0x25,_0x4c95e0:0x10d,_0x16e7ad:0x8d,_0x16478a:0x8a,_0x4f0c9c:0xee,_0x5d75de:0x46,_0x410cbe:0x59,_0x8f2402:0x8f,_0x11aaa2:0x79,_0xa6cf7c:0x15d,_0x586e5c:0xe1,_0x257187:0xd1,_0x329a5f:0x2,_0x269837:0x5,_0x24c6f9:0xe9,_0x4675d5:0xe7,_0x5d2c24:0x3b,_0x2d853e:0x96,_0x291eca:0x41,_0x4f3d70:0x3a,_0x393055:0x22,_0x1ae84d:0xde,_0x99ef22:0x60,_0x454037:0x9e,_0x42210f:0x101,_0x1b5fc5:0x1aa,_0x2777a9:0xda,_0x59d266:0x7f,_0xe142c0:0x16a,_0xeb7dc1:0xf5,_0x494ff3:0x114,_0x339710:0x23,_0x2a09c2:0xfc,_0x88e1b2:0xb6,_0xabf3e6:0x116,_0x1771ef:0x162,_0x7d3fe3:0x1b3,_0x16e0ed:0x62,_0x217ff4:0x3a,_0x1f5cd8:0x110,_0x2c3699:0x105,_0x47eeb5:0x32,_0x53eea3:0xa4,_0x3ff719:0x1f,_0x21784e:0x150,_0x4d893c:0x9,_0x4a790a:0x37,_0x675345:0xad,_0x253341:0x144,_0x32d523:0x1e8,_0x1f9e22:0x2c,_0x1d824d:0x61,_0x522237:0x73,_0x542909:0x48,_0x580564:0x31,_0x52c1bd:0x1d,_0x5b2c47:0xcb,_0x51ecb0:0x4f,_0x1f5757:0x0,_0x5df3d9:0x165,_0x560195:0x95,_0x3ae88d:0x128,_0x1e8eb3:0x18b,_0x37fa05:0x197,_0x18acb2:0x139,_0x1204cf:0x82,_0x2e59c6:0x11d,_0x1bef9f:0x7e,_0x269c34:0x103,_0x4a1e5b:0x3,_0x235d00:0x26,_0x108aa3:0x78,_0x1b5ecb:0x29,_0x1ee61d:0x102,_0x3cd86b:0x184,_0xf684:0x6c,_0x37a698:0x11d,_0x2fcb85:0x6d,_0x3c68c0:0x117,_0x1dbb89:0x9b,_0x16281e:0x19a,_0x4407ac:0x94,_0x49e559:0x168,_0x491706:0xef,_0x3d5be6:0xd9,_0x5205c4:0xba,_0x16c48c:0xf4,_0x4c992a:0xae,_0x569a6b:0x21,_0x1f7d24:0xeb,_0x8099e7:0x33,_0x4eec4e:0x18d,_0x4f58c4:0x10,_0x4e190d:0xa,_0x3eb7ff:0x55,_0xfd48a7:0x8b,_0x2da848:0x17d,_0x2f58c6:0x128,_0xf62832:0x2f,_0x3c1675:0xad,_0x2f6895:0x118,_0x2077bd:0x5b,_0xc9fac9:0xdd,_0x4384b9:0x52,_0x4889ae:0xaa,_0x5bfc2b:0x14,_0x87177d:0x1e,_0x2c9db5:0x6e,_0xb03d80:0xb6,_0x30d20a:0xc9,_0x39ba22:0x7a,_0x354cd3:0x45,_0x3631ac:0x126,_0x1c5d06:0x18c,_0x1b1723:0xd1,_0x1e4dc7:0x3c,_0x2a6c25:0x41,_0x2ad9ae:0x8e,_0x5d90fa:0x8f,_0x32262c:0xb3,_0x2863eb:0xe,_0x93d314:0xa2,_0x310a84:0x214,_0x2c1987:0x3c,_0x3673b0:0x55,_0x35d790:0xf5,_0x1ca9b1:0xbb,_0x3f94c9:0x161,_0x214bec:0x23,_0xb3f278:0x2d,_0x4c6657:0x1,_0x4dcb52:0x5c,_0x4a5917:0x11b,_0xff6ba7:0x125,_0x116e7e:0xf5,_0x38bea0:0x15c,_0x277b4f:0x4,_0x4ba831:0x7,_0x4cbf2c:0x95,_0xa3c773:0xdb,_0x5c7a6d:0x1c,_0x2b25e1:0x1ca,_0x2aa745:0xfc,_0x4a0283:0xf6,_0x22f995:0xed,_0x16f41d:0xc,_0x59d000:0x160,_0x33fe86:0xd,_0x4e4cc4:0x44,_0x406852:0x3f,_0x105e15:0xd2,_0x22de6c:0x120,_0x2ab565:0x5a,_0x3173c3:0x6,_0x27415e:0xa,_0xa8e285:0x16d,_0x310e40:0x41,_0x380692:0x87,_0x43f6cd:0x8a,_0x303aea:0xb9,_0x5bf4a3:0x13,_0x406566:0xe0,_0x1707cb:0x17a,_0xcc9b42:0x144,_0x1a4107:0x9c,_0x3b4b7e:0x35,_0x18e15a:0x4a,_0x3e5e65:0x12a,_0x3219fe:0x13e,_0x31031f:0xac,_0x11db49:0x9,_0xded110:0x7,_0x59eb44:0xed,_0x1bccda:0xf0,_0x4bef6b:0xf2,_0x16b3f9:0x45,_0x496f60:0x5,_0x1ce7dd:0x2f,_0x9227c5:0x1,_0x392450:0x67},_0x35021d={_0x3e9a80:0x11f,_0x3abb57:0x112,_0x2c2820:0x61f};function _0x2c5a7b(_0x21479c,_0x20776f,_0x59683a,_0x3f0047){return _0x2e5e46(_0x21479c-0xdc,_0x20776f,_0x59683a-0x7f,_0x59683a- -0x54c);}function _0x4dc311(_0x6bce4c,_0x3d3007,_0x184983,_0x2ffeff){return _0x2e5e46(_0x6bce4c-_0x35021d._0x3e9a80,_0x184983,_0x184983-_0x35021d._0x3abb57,_0x2ffeff- -_0x35021d._0x2c2820);}switch(_0x4c2b43){case _0x2c5a7b(0x84,0x192,_0x40df6f._0x3650e8,0x13d):{const _0x53456e=typeof _0x8ee964[_0x4dc311(_0x40df6f._0x38bdb8,-_0x40df6f._0x34470a,0xa5,-_0x40df6f._0x530629)]===_0x4dc311(-0x28,-_0x40df6f._0x272f18,-0x4c,-_0x40df6f._0x2c9fc6)?_0x8ee964[_0x4dc311(-_0x40df6f._0x1b6e57,-0x8a,-_0x40df6f._0x3493d7,-0x2)]:0x0,_0x2a6c3d=typeof _0x8ee964['delta']===_0x4dc311(0x82,-0x15,-_0x40df6f._0x22c386,0x13)?_0x8ee964[_0x2c5a7b(-0x52,_0x40df6f._0x4e07c8,0x5f,_0x40df6f._0x3da18e)]:'';if(_0x2a6c3d[_0x4dc311(-_0x40df6f._0x14a3dd,_0x40df6f._0x16f8e6,-_0x40df6f._0x35a664,_0x40df6f._0xc2e7e7)]>0x0){const _0x3cbb77=this['responseTextParts'][_0x4dc311(0x3,0x86,-0x11,-_0x40df6f._0x572916)](_0x53456e)??[];return _0x3cbb77['push'](_0x2a6c3d),this[_0x4dc311(-_0x40df6f._0x554751,-_0x40df6f._0x571e40,-_0x40df6f._0x367515,-_0x40df6f._0x2c8005)][_0x2c5a7b(-0x7d,0x1,-_0x40df6f._0x58a899,-0xe2)](_0x53456e,_0x3cbb77),[{'type':_0x4dc311(-_0x40df6f._0x11e87f,-_0x40df6f._0x8cd05d,-0x1ac,-_0x40df6f._0x259a69),'index':_0x53456e,'text':_0x2a6c3d}];}break;}case _0x4dc311(-0xd5,-_0x40df6f._0x313833,-0xe2,-_0x40df6f._0x1ed15b):{const _0x2072d6=typeof _0x8ee964[_0x4dc311(-_0x40df6f._0x2202f0,_0x40df6f._0x4d55a8,0x4d,-_0x40df6f._0x180be0)]==='number'?_0x8ee964[_0x2c5a7b(0x7,0x12e,0xd1,0x127)]:void 0x0,_0x3f5f12=_0x8ee964['item'];if(_0x3f5f12?.[_0x4dc311(-_0x40df6f._0xef0a65,0x15,_0x40df6f._0x98bd60,-0x9c)]===_0x2c5a7b(-_0x40df6f._0x558caa,-0x51,-_0x40df6f._0xc80afe,-0xc4)&&_0x3f5f12['call_id']&&_0x3f5f12['name'])return this['toolCalls'][_0x2c5a7b(-_0x40df6f._0x2a07c6,-0xd0,-_0x40df6f._0x58a899,_0x40df6f._0xc764b)](_0x3f5f12[_0x2c5a7b(_0x40df6f._0x426cb8,0x11,_0x40df6f._0x31204a,_0x40df6f._0x3c7d49)],{'id':_0x3f5f12[_0x4dc311(_0x40df6f._0x20381a,_0x40df6f._0x4e3997,-0x32,-0x3c)],'type':_0x2c5a7b(-0x4f,0xf8,_0x40df6f._0x32c3d7,0x61),'function':{'name':_0x3f5f12['name'],'arguments':''}}),_0x2072d6!==void 0x0&&(this[_0x4dc311(-0x11,-_0x40df6f._0x2af71a,0xe,-_0x40df6f._0x38487a)]['set'](_0x2072d6,_0x3f5f12['call_id']),this[_0x2c5a7b(_0x40df6f._0x4224af,-0x48,_0x40df6f._0x383c8d,0xbe)]['set'](_0x3f5f12[_0x2c5a7b(0x71,_0x40df6f._0x3a8ea9,_0x40df6f._0x31204a,0xf1)],_0x2072d6)),[{'type':_0x4dc311(-_0x40df6f._0x588745,-0x13a,-_0x40df6f._0x32cffb,-0x109),'id':_0x3f5f12[_0x2c5a7b(_0x40df6f._0x11b0cf,_0x40df6f._0x436aaa,_0x40df6f._0x31204a,_0x40df6f._0x41d398)],'index':_0x2072d6??0x0,'name':_0x3f5f12[_0x4dc311(-_0x40df6f._0xc2e7e7,0x41,-0x2e,-_0x40df6f._0x3d8943)]}];if(_0x3f5f12?.['type']==='reasoning'&&_0x3f5f12['id']){const _0x5a89bc=this[_0x4dc311(-0x3,_0x40df6f._0x17c7ee,0x136,0x71)](_0x3f5f12['id'],_0x2072d6);_0x2072d6!==void 0x0&&this[_0x2c5a7b(0x131,_0x40df6f._0x5c1dd7,_0x40df6f._0x2161d1,0x172)]['set'](_0x2072d6,_0x5a89bc['id']);}break;}case _0x2c5a7b(0xe,_0x40df6f._0x2cddf7,-_0x40df6f._0x54cacb,_0x40df6f._0x5cb90d):{const _0x13dccf=typeof _0x8ee964['call_id']===_0x4dc311(0xd,-_0x40df6f._0x1f5dd0,_0x40df6f._0x549461,0x13)?_0x8ee964[_0x4dc311(_0x40df6f._0x5d22b4,-0x9b,-_0x40df6f._0x53c2fd,-0x3c)]:typeof _0x8ee964[_0x2c5a7b(_0x40df6f._0x3cf02d,0xac,0xd1,0x49)]==='number'?this[_0x2c5a7b(0x67,0x104,_0x40df6f._0x413208,-_0x40df6f._0x5e5eff)][_0x4dc311(_0x40df6f._0x2e01b4,-_0x40df6f._0x343a19,-0x47,-_0x40df6f._0x572916)](_0x8ee964[_0x4dc311(-_0x40df6f._0x4bb160,-0x5c,_0x40df6f._0x1b26e5,-_0x40df6f._0x530629)]):void 0x0,_0xe27f44=typeof _0x8ee964[_0x4dc311(0x5c,-_0x40df6f._0x2ee094,-_0x40df6f._0x337d03,-0x74)]===_0x2c5a7b(_0x40df6f._0x315fa6,_0x40df6f._0x3cd471,_0x40df6f._0x5eb4e7,0x195)?_0x8ee964['delta']:'',_0x47323f=_0x13dccf?this['toolCalls'][_0x4dc311(-0xc7,-0xcd,0x17,-_0x40df6f._0xfe72a4)](_0x13dccf):void 0x0;if(_0x47323f&&_0xe27f44['length']>0x0)return _0x47323f[_0x4dc311(-_0x40df6f._0x579ec8,-_0x40df6f._0x2a6095,-_0x40df6f._0x1b6e57,-0x73)][_0x2c5a7b(_0x40df6f._0x42a172,0x11b,0x99,0x2a)]+=_0xe27f44,[{'type':_0x2c5a7b(-0x50,-0x69,-_0x40df6f._0x2acc7b,-_0x40df6f._0x34da76),'id':_0x47323f['id'],'index':this[_0x4dc311(-_0x40df6f._0x180be0,-_0x40df6f._0x3cb379,-0x78,-0xc4)][_0x4dc311(-0xa4,-0x45,_0x40df6f._0x28c642,-_0x40df6f._0x14e220)](_0x47323f['id'])??(typeof _0x8ee964['output_index']===_0x4dc311(-_0x40df6f._0x3ae383,-_0x40df6f._0x37ce1a,-_0x40df6f._0x4c95e0,-0x8e)?_0x8ee964[_0x4dc311(0x6c,0x8a,0x60,-0x2)]:0x0),'inputDelta':_0xe27f44}];break;}case _0x4dc311(-_0x40df6f._0x16e7ad,-_0x40df6f._0x1f5dd0,-_0x40df6f._0x16478a,-0x58):{const _0x3113dc=typeof _0x8ee964[_0x4dc311(-_0x40df6f._0x4f0c9c,-_0x40df6f._0x5d75de,_0x40df6f._0x410cbe,-0x3c)]===_0x4dc311(-_0x40df6f._0x8f2402,_0x40df6f._0x11aaa2,-0xb2,0x13)?_0x8ee964[_0x2c5a7b(_0x40df6f._0xa6cf7c,_0x40df6f._0x586e5c,0x97,0xba)]:typeof _0x8ee964[_0x4dc311(-0x5c,-_0x40df6f._0x257187,-0x30,-_0x40df6f._0x329a5f)]==='number'?this[_0x2c5a7b(-0x1e,-_0x40df6f._0x269837,0x71,_0x40df6f._0x24c6f9)][_0x4dc311(-0x25,-_0x40df6f._0x4675d5,-0xa2,-0x1d)](_0x8ee964[_0x2c5a7b(0x166,0x19b,_0x40df6f._0x257187,_0x40df6f._0x5d2c24)]):void 0x0,_0x3e8472=_0x3113dc?this['toolCalls'][_0x4dc311(-_0x40df6f._0x2d853e,0x94,-0x70,-0x1d)](_0x3113dc):void 0x0;_0x3e8472&&typeof _0x8ee964[_0x4dc311(-_0x40df6f._0x291eca,-0xdd,-0xc3,-_0x40df6f._0x4f3d70)]==='string'&&(_0x3e8472[_0x2c5a7b(-_0x40df6f._0x393055,_0x40df6f._0x1ae84d,_0x40df6f._0x99ef22,_0x40df6f._0x454037)]['arguments']=_0x8ee964[_0x2c5a7b(0x70,-0x37,0x99,0xc5)]);break;}case _0x2c5a7b(_0x40df6f._0x42210f,_0x40df6f._0x1b5fc5,0x135,_0x40df6f._0x2777a9):{const _0x119b6b=typeof _0x8ee964[_0x2c5a7b(_0x40df6f._0x4224af,_0x40df6f._0x59d266,0xd1,0xa6)]==='number'?_0x8ee964[_0x2c5a7b(_0x40df6f._0xe142c0,_0x40df6f._0xeb7dc1,0xd1,0x63)]:void 0x0,_0x489717=_0x8ee964[_0x2c5a7b(0x8d,0x18a,0xf2,_0x40df6f._0x494ff3)];if(_0x489717?.[_0x4dc311(-_0x40df6f._0x339710,-_0x40df6f._0x2a09c2,-0x138,-0x9c)]==='function_call'){const _0x5046d9=_0x489717[_0x2c5a7b(_0x40df6f._0x2c8005,0xc2,0x97,0x12e)]??(_0x119b6b!==void 0x0?this['outputIndexToCallId'][_0x2c5a7b(0x175,_0x40df6f._0x3650e8,_0x40df6f._0x88e1b2,_0x40df6f._0xabf3e6)](_0x119b6b):void 0x0),_0x1fc768=_0x5046d9?this[_0x2c5a7b(0x174,_0x40df6f._0x1771ef,0xfd,_0x40df6f._0x7d3fe3)][_0x4dc311(0x63,0x5e,-_0x40df6f._0x35a664,-0x1d)](_0x5046d9):void 0x0;_0x1fc768&&typeof _0x489717[_0x4dc311(_0x40df6f._0x16e0ed,-_0x40df6f._0xeb7dc1,_0x40df6f._0x3d8943,-_0x40df6f._0x217ff4)]===_0x2c5a7b(_0x40df6f._0x1f5cd8,_0x40df6f._0x2c3699,_0x40df6f._0x5eb4e7,0xdc)&&(_0x1fc768[_0x4dc311(-0x85,-0xd1,_0x40df6f._0x47eeb5,-0x73)][_0x2c5a7b(_0x40df6f._0x53eea3,-_0x40df6f._0x3ff719,_0x40df6f._0x337d03,_0x40df6f._0x21784e)]=_0x489717['arguments']);break;}if(_0x489717?.[_0x2c5a7b(-0x66,_0x40df6f._0x4d893c,_0x40df6f._0x4a790a,_0x40df6f._0x675345)]===_0x2c5a7b(0xaa,-0x8d,0x22,-0x34)&&_0x489717['id']){const _0x2f1d57=this[_0x2c5a7b(0x184,0x142,_0x40df6f._0x253341,0x212)](_0x489717['id'],_0x119b6b);typeof _0x489717[_0x2c5a7b(0x1a8,_0x40df6f._0x32d523,0x13f,0x1b0)]===_0x4dc311(-_0x40df6f._0x1f9e22,0x7c,-_0x40df6f._0x1d824d,0x13)&&(_0x2f1d57[_0x2c5a7b(_0x40df6f._0x522237,-_0x40df6f._0x14a3dd,0x1,_0x40df6f._0x3493d7)]=_0x489717[_0x4dc311(_0x40df6f._0x542909,0xbd,-0x53,0x6c)]);if(Array[_0x4dc311(-_0x40df6f._0x580564,-0x19,_0x40df6f._0x52c1bd,-0x5)](_0x489717['summary']))for(let _0x39c423=0x0;_0x39c423<_0x489717[_0x4dc311(0x10c,_0x40df6f._0x4a790a,_0x40df6f._0x5b2c47,_0x40df6f._0x343a19)][_0x2c5a7b(0x5f,0x17a,0xef,_0x40df6f._0x2161d1)];_0x39c423+=0x1){const _0x273099=_0x489717[_0x4dc311(-_0x40df6f._0x51ecb0,_0x40df6f._0x1f5757,-0x4d,_0x40df6f._0x343a19)][_0x39c423];_0x273099['type']===_0x4dc311(0x68,0x59,0x63,0x2d)&&typeof _0x273099[_0x2c5a7b(0x129,_0x40df6f._0x5df3d9,_0x40df6f._0x560195,_0x40df6f._0x3493d7)]===_0x2c5a7b(0x1a7,0x18e,0xe6,0x14)&&_0x2f1d57[_0x2c5a7b(0x86,0x1f3,_0x40df6f._0x3ae88d,_0x40df6f._0x1e8eb3)][_0x4dc311(-_0x40df6f._0x37fa05,-_0x40df6f._0x18acb2,-_0x40df6f._0x1204cf,-_0x40df6f._0x2e59c6)](_0x39c423,_0x273099[_0x2c5a7b(0x5d,0x73,0x95,0xcc)]);}typeof _0x489717[_0x4dc311(_0x40df6f._0x1bef9f,-_0x40df6f._0x269c34,-_0x40df6f._0x4a1e5b,-0x3e)]===_0x2c5a7b(_0x40df6f._0x235d00,0x16e,_0x40df6f._0x5eb4e7,0x5e)&&_0x2f1d57[_0x2c5a7b(-_0x40df6f._0x108aa3,-0x33,-_0x40df6f._0x1b5ecb,0x19)][_0x4dc311(-_0x40df6f._0x1ee61d,-_0x40df6f._0x3cd86b,-_0x40df6f._0xf684,-_0x40df6f._0x37a698)](0x0,_0x489717['text']);}break;}case'response.reasoning_summary_text.delta':{const _0x189669=typeof _0x8ee964[_0x2c5a7b(0x88,0x125,0x5f,_0x40df6f._0x2fcb85)]===_0x4dc311(0x81,-_0x40df6f._0x3ae383,-0xb5,0x13)?_0x8ee964['delta']:'',_0x1d2f73=typeof _0x8ee964[_0x4dc311(0xf8,_0x40df6f._0x3c68c0,_0x40df6f._0x1dbb89,0x52)]===_0x2c5a7b(0xcc,_0x40df6f._0x16281e,0xe6,_0x40df6f._0x4407ac)?_0x8ee964[_0x2c5a7b(_0x40df6f._0x3493d7,_0x40df6f._0x49e559,0x125,0xf0)]:typeof _0x8ee964[_0x2c5a7b(_0x40df6f._0x491706,_0x40df6f._0x3d5be6,_0x40df6f._0x257187,0x130)]==='number'?this[_0x2c5a7b(_0x40df6f._0x5205c4,0x18d,0xbe,0x73)][_0x2c5a7b(0x177,0x8a,_0x40df6f._0x88e1b2,0x11b)](_0x8ee964['output_index']):void 0x0,_0x268551=typeof _0x8ee964['output_index']===_0x2c5a7b(_0x40df6f._0x16c48c,0x8e,0x45,0x68)?_0x8ee964['output_index']:0x0,_0x3f2e35=typeof _0x8ee964['summary_index']===_0x4dc311(-0x105,-_0x40df6f._0x4c992a,-_0x40df6f._0x569a6b,-0x8e)?_0x8ee964[_0x4dc311(0x98,0x36,0x124,0x6b)]:0x0;if(_0x1d2f73&&_0x189669[_0x4dc311(-0x53,_0x40df6f._0x1f7d24,_0x40df6f._0x8099e7,0x1c)]>0x0){const _0x427800=this[_0x2c5a7b(0xa6,0xaf,0x144,_0x40df6f._0x4eec4e)](_0x1d2f73,_0x268551);_0x427800[_0x4dc311(_0x40df6f._0x4f58c4,-_0x40df6f._0x4e190d,0x5e,_0x40df6f._0x3eb7ff)][_0x4dc311(-0x172,-_0x40df6f._0xfd48a7,-0x1b8,-0x11d)](_0x3f2e35,''+(_0x427800[_0x2c5a7b(0x1dd,_0x40df6f._0x2da848,_0x40df6f._0x2f58c6,0x170)][_0x4dc311(-0x95,0x8f,0x4e,-0x1d)](_0x3f2e35)??'')+_0x189669);if(isUserVisibleReasoning(this[_0x2c5a7b(0xe3,-0x2d,0x3c,-_0x40df6f._0xf62832)]))return[{'type':_0x4dc311(-0x9f,-0x119,-_0x40df6f._0x3c1675,-0xc5),'delta':_0x189669,'itemId':_0x1d2f73,'outputIndex':_0x268551,'summaryIndex':_0x3f2e35}];}break;}case'response.reasoning_summary_text.done':{const _0x5b2e5e=typeof _0x8ee964[_0x4dc311(0x119,0xb1,_0x40df6f._0x2f6895,0x52)]==='string'?_0x8ee964[_0x4dc311(-0x3f,_0x40df6f._0x2077bd,_0x40df6f._0xc9fac9,_0x40df6f._0x4384b9)]:typeof _0x8ee964[_0x4dc311(-0x48,0x6c,-_0x40df6f._0x4889ae,-0x2)]==='number'?this[_0x4dc311(0x9,-_0x40df6f._0x560195,-_0x40df6f._0x5bfc2b,-0x15)][_0x2c5a7b(_0x40df6f._0x87177d,_0x40df6f._0x2c9db5,_0x40df6f._0xb03d80,0x130)](_0x8ee964[_0x4dc311(0x6c,_0x40df6f._0x30d20a,_0x40df6f._0x39ba22,-0x2)]):void 0x0,_0x5cc55c=typeof _0x8ee964[_0x2c5a7b(0x105,0x132,_0x40df6f._0x4224af,0xf3)]===_0x2c5a7b(-0x7a,-0x8e,_0x40df6f._0x354cd3,0x9f)?_0x8ee964[_0x2c5a7b(_0x40df6f._0x3631ac,_0x40df6f._0x1c5d06,_0x40df6f._0x1b1723,0x167)]:0x0,_0x10fffa=typeof _0x8ee964[_0x4dc311(_0x40df6f._0x1e4dc7,0x8b,-0x31,0x6b)]===_0x4dc311(-0xc9,_0x40df6f._0x5e5eff,-_0x40df6f._0x2a6c25,-_0x40df6f._0x2ad9ae)?_0x8ee964[_0x4dc311(_0x40df6f._0x4c992a,_0x40df6f._0x5d90fa,_0x40df6f._0x32262c,_0x40df6f._0x16f8e6)]:0x0,_0xeef27f=typeof _0x8ee964[_0x4dc311(-0x38,_0x40df6f._0x2863eb,0x48,-0x3e)]==='string'?_0x8ee964[_0x2c5a7b(_0x40df6f._0x93d314,0xf1,_0x40df6f._0x560195,0xb8)]:'';_0x5b2e5e&&this[_0x2c5a7b(0x1bf,0x1de,0x144,_0x40df6f._0x310a84)](_0x5b2e5e,_0x5cc55c)[_0x4dc311(-_0x40df6f._0x2c1987,-0x5a,0xc2,_0x40df6f._0x3673b0)][_0x2c5a7b(-0x9a,-0x70,-0x4a,-_0x40df6f._0x5c1dd7)](_0x10fffa,_0xeef27f);break;}case _0x2c5a7b(0xb3,0x182,_0x40df6f._0x35d790,0x11d):{const _0x3578c0=typeof _0x8ee964['delta']===_0x2c5a7b(_0x40df6f._0x1ca9b1,0x97,_0x40df6f._0x5eb4e7,_0x40df6f._0x3f94c9)?_0x8ee964[_0x2c5a7b(-_0x40df6f._0x214bec,-_0x40df6f._0xb3f278,0x5f,_0x40df6f._0x214bec)]:'',_0x1eb35d=typeof _0x8ee964[_0x4dc311(0x1c,-_0x40df6f._0x4c6657,-_0x40df6f._0x4dcb52,0x52)]==='string'?_0x8ee964[_0x2c5a7b(_0x40df6f._0x4a5917,0x18d,_0x40df6f._0xff6ba7,0x70)]:typeof _0x8ee964['output_index']===_0x2c5a7b(_0x40df6f._0x1ed15b,_0x40df6f._0x116e7e,_0x40df6f._0x354cd3,0xa5)?this['outputIndexToReasoningId']['get'](_0x8ee964['output_index']):void 0x0,_0x3578d3=typeof _0x8ee964['output_index']===_0x4dc311(-_0x40df6f._0x38bea0,-0xeb,-_0x40df6f._0x277b4f,-_0x40df6f._0x2ad9ae)?_0x8ee964['output_index']:0x0,_0x48d651=typeof _0x8ee964[_0x2c5a7b(-0xcb,0x42,_0x40df6f._0x4ba831,_0x40df6f._0x4cbf2c)]==='number'?_0x8ee964[_0x4dc311(-0x84,-_0x40df6f._0x31204a,-0x144,-0xcc)]:0x0;if(_0x1eb35d&&_0x3578c0[_0x4dc311(-0x82,-0x64,_0x40df6f._0xa3c773,_0x40df6f._0x5c7a6d)]>0x0){const _0x34d7f9=this[_0x4dc311(-0x4d,0x13d,0x15,0x71)](_0x1eb35d,_0x3578d3);_0x34d7f9[_0x4dc311(-0x9a,-_0x40df6f._0x3cb379,-_0x40df6f._0x2b25e1,-_0x40df6f._0x2aa745)][_0x4dc311(-0x109,-_0x40df6f._0x4a0283,-0xab,-0x11d)](_0x48d651,''+(_0x34d7f9[_0x2c5a7b(-_0x40df6f._0x4d55a8,-_0x40df6f._0x22f995,-_0x40df6f._0x1b5ecb,-_0x40df6f._0x16f41d)][_0x2c5a7b(_0x40df6f._0x59d000,0x105,0xb6,0x21)](_0x48d651)??'')+_0x3578c0);if(isUserVisibleReasoning(this[_0x2c5a7b(0xf2,-_0x40df6f._0x33fe86,0x3c,0x8a)]))return[{'type':_0x2c5a7b(-0x90,_0x40df6f._0x4e4cc4,-0x5a,-_0x40df6f._0x406852),'contentIndex':_0x48d651,'delta':_0x3578c0,'itemId':_0x1eb35d,'outputIndex':_0x3578d3}];}break;}case'response.reasoning_text.done':{const _0x400883=typeof _0x8ee964[_0x4dc311(_0x40df6f._0x105e15,0x14,0x109,0x52)]==='string'?_0x8ee964[_0x2c5a7b(0xa9,0x131,_0x40df6f._0xff6ba7,_0x40df6f._0x22de6c)]:typeof _0x8ee964[_0x4dc311(_0x40df6f._0x2ab565,0x78,-0x1b,-_0x40df6f._0x530629)]===_0x2c5a7b(_0x40df6f._0x5205c4,0x108,0x45,-_0x40df6f._0x3173c3)?this[_0x4dc311(-0x53,-_0x40df6f._0x27415e,-0x3b,-0x15)][_0x2c5a7b(_0x40df6f._0xa8e285,-0x2,0xb6,_0x40df6f._0x1b26e5)](_0x8ee964['output_index']):void 0x0,_0x20fdc8=typeof _0x8ee964['output_index']===_0x4dc311(-0x1f,-0x60,-0x104,-_0x40df6f._0x2c9fc6)?_0x8ee964['output_index']:0x0,_0x2a95fe=typeof _0x8ee964['content_index']==='number'?_0x8ee964[_0x2c5a7b(-_0x40df6f._0x310e40,0x69,0x7,_0x40df6f._0x380692)]:0x0,_0x2e4f70=typeof _0x8ee964[_0x2c5a7b(0xb4,0x152,0x95,-_0x40df6f._0x436aaa)]===_0x4dc311(0x12,-_0x40df6f._0x43f6cd,_0x40df6f._0x303aea,_0x40df6f._0x5bf4a3)?_0x8ee964[_0x4dc311(-_0x40df6f._0x1d824d,-0x6c,-0x73,-0x3e)]:'';_0x400883&&this[_0x2c5a7b(_0x40df6f._0x406566,_0x40df6f._0x1707cb,_0x40df6f._0xcc9b42,0x7d)](_0x400883,_0x20fdc8)[_0x4dc311(-_0x40df6f._0x1a4107,-_0x40df6f._0x1d824d,-_0x40df6f._0x3b4b7e,-0xfc)][_0x2c5a7b(-_0x40df6f._0x2161d1,-0x4d,-_0x40df6f._0x18e15a,0x3a)](_0x2a95fe,_0x2e4f70);break;}case'response.completed':{this['finalResponse']=_0x8ee964[_0x4dc311(-0x6c,-0x13f,-0x11c,-_0x40df6f._0x3e5e65)];break;}case _0x4dc311(-0xc8,_0x40df6f._0xc2e7e7,0x6f,-0x36):{const _0x58fb9a=_0x8ee964['response'];throw new ProviderStreamEventError(_0x58fb9a?.[_0x4dc311(-0xd5,-_0x40df6f._0x3219fe,-0xf9,-_0x40df6f._0x31031f)]?.[_0x2c5a7b(-0x127,-0x23,-0x5d,0x25)]??_0x2c5a7b(0x9c,-0x95,-0x1b,-0xa),{'code':_0x58fb9a?.['error']?.[_0x2c5a7b(-_0x40df6f._0x11db49,-0xed,-_0x40df6f._0x354cd3,-0x31)],'retryable':!![]});}case'error':{const _0xb44f0=_0x8ee964[_0x2c5a7b(-_0x40df6f._0xded110,-_0x40df6f._0x1b26e5,0x27,0xa)];throw new ProviderStreamEventError(_0xb44f0?.[_0x2c5a7b(0x68,-0x1d,-0x5d,-_0x40df6f._0x413208)]??_0x4dc311(-_0x40df6f._0x59eb44,-0xa6,-_0x40df6f._0x1bccda,-0xee),{'code':_0xb44f0?.[_0x2c5a7b(-_0x40df6f._0x4bef6b,-0x75,-_0x40df6f._0x16b3f9,_0x40df6f._0x496f60)],'retryable':!![],'status':typeof _0x8ee964[_0x2c5a7b(0x46,0x6f,0x67,0xf8)]===_0x2c5a7b(_0x40df6f._0x1ce7dd,_0x40df6f._0x9227c5,0x45,-0x36)?_0x8ee964[_0x2c5a7b(0xb2,-0x37,_0x40df6f._0x392450,-0x26)]:void 0x0});}}return[];}['buildPartialOutput'](){const _0x3b48e2={_0x3c5ced:0x499,_0x5341bf:0x438,_0x3a3635:0x3b9,_0x2c3507:0x373,_0xe46c3f:0x49b,_0x44c308:0x36a,_0x123134:0x416,_0x5e33fb:0x1ca,_0x588665:0x124,_0xedb38f:0x2a6,_0x5d001b:0x2b7,_0x1f5520:0x27a,_0x57311d:0x300,_0x2bb6cf:0x246,_0x3fc2c0:0x2df,_0x6b5bf2:0x3ab,_0x30d255:0x2ba,_0x3d5d3b:0x406,_0x18da7e:0x44a,_0x3c1c2f:0xdf,_0x108338:0x179,_0x1e0b3b:0x1cb,_0x3d4947:0x44b,_0x3e4f5f:0x3ec,_0x2b240f:0x323,_0x4943db:0x491,_0x4d640f:0x2fb,_0x40e939:0x23e,_0x3f4835:0x258,_0x3ce8f2:0x1bf,_0x3c3b39:0x1ab,_0xe9e064:0x124,_0x2460ca:0x2ce,_0x2cceb2:0x183,_0x358384:0x1b0,_0x2bb508:0x33e,_0x4d0e95:0x3f,_0x2bad9a:0x320,_0x2a34ca:0x3db,_0x3fea24:0x3c2,_0x2cc341:0x45e,_0x47db33:0x22d,_0x4639b6:0x24e,_0x35f509:0x1e2,_0x141459:0x404,_0x4c0ce9:0x84,_0x20d1ee:0x88,_0x25821f:0x93,_0x1b2d7c:0xf4,_0x1fd700:0xc4,_0x301bd6:0x286,_0x2d2ba4:0x173,_0x172e6b:0x18e,_0x10b625:0xc0,_0x323a44:0x71},_0x1fe62b={_0x1ff569:0x35,_0xf49d16:0x1e6},_0x385859={_0x367e79:0xd9},_0x4293cd={_0x49509b:0x26c,_0x231dd7:0x283},_0x526aab=[];for(const [_0x197f1b,_0x21d134]of this['responseTextParts'][_0xb2d268(0x3ec,0x386,_0x3b48e2._0x3c5ced,_0x3b48e2._0x5341bf)]()){const _0x59cd3a=_0x21d134[_0xb2d268(_0x3b48e2._0x3a3635,0x3c4,0x2f7,_0x3b48e2._0x2c3507)]('');if(_0x59cd3a['length']===0x0)continue;_0x526aab[_0xb2d268(0x404,_0x3b48e2._0xe46c3f,_0x3b48e2._0x44c308,_0x3b48e2._0x123134)]({'index':_0x197f1b,'item':{'type':'message','role':'assistant','content':[{'type':_0x3c6e6a(-0xee,-_0x3b48e2._0x5e33fb,-0x19a,-_0x3b48e2._0x588665),'text':_0x59cd3a}]}});}for(const _0xfd0727 of this['reasoningItems'][_0x3c6e6a(-_0x3b48e2._0xedb38f,-0x11b,-0x1bd,-0x1e2)]()){_0x526aab['push']({'index':_0xfd0727[_0xb2d268(0x2dd,_0x3b48e2._0x5d001b,0x27a,_0x3b48e2._0x1f5520)]??_0x526aab['length'],'item':{'type':_0xb2d268(_0x3b48e2._0x57311d,0x34e,0x38d,_0x3b48e2._0x2bb6cf),'id':_0xfd0727['id'],..._0xfd0727['encryptedContent']?{'encrypted_content':_0xfd0727[_0xb2d268(_0x3b48e2._0x3fc2c0,0x2d8,_0x3b48e2._0x6b5bf2,_0x3b48e2._0x30d255)]}:{},..._0xfd0727[_0xb2d268(_0x3b48e2._0x3d5d3b,0x44f,_0x3b48e2._0x18da7e,_0x3b48e2._0x18da7e)][_0x3c6e6a(-0x162,-0xe3,-0xb9,-_0x3b48e2._0x3c1c2f)]>0x0?{'summary':Array[_0x3c6e6a(-0x16f,-_0x3b48e2._0x108338,-_0x3b48e2._0x1e0b3b,-0x1ac)](_0xfd0727[_0xb2d268(0x406,0x3e6,0x3bf,_0x3b48e2._0x3d4947)][_0xb2d268(_0x3b48e2._0x3e4f5f,_0x3b48e2._0x2b240f,_0x3b48e2._0x4943db,0x44d)]())[_0xb2d268(_0x3b48e2._0x4d640f,_0x3b48e2._0x40e939,0x2f6,0x28a)]((_0x563172,_0x17e4ba)=>_0x563172[0x0]-_0x17e4ba[0x0])['map'](([,_0x1f9f7a])=>{function _0x5a7cf7(_0x6f91b4,_0x1d03c8,_0x231ff5,_0x4b3a68){return _0x3c6e6a(_0x1d03c8,_0x1d03c8-0x137,_0x231ff5-0x12d,_0x4b3a68-0x348);}return{'type':_0x5a7cf7(_0x4293cd._0x49509b,_0x4293cd._0x231dd7,0x2c5,0x2c6),'text':_0x1f9f7a};})}:{},..._0xfd0727[_0x3c6e6a(-_0x3b48e2._0x3f4835,-_0x3b48e2._0x3ce8f2,-0x207,-_0x3b48e2._0x3c3b39)][_0x3c6e6a(-0x20,-_0x3b48e2._0xe9e064,-0xf2,-0xdf)]>0x0?{'text':Array[_0xb2d268(0x2b4,0x311,_0x3b48e2._0x2460ca,0x250)](_0xfd0727[_0x3c6e6a(-_0x3b48e2._0x2cceb2,-0x170,-_0x3b48e2._0x358384,-0x1ab)][_0xb2d268(_0x3b48e2._0x3e4f5f,0x3d9,_0x3b48e2._0x2bb508,0x3a9)]())['sort']((_0x3f6c24,_0x5d6945)=>_0x3f6c24[0x0]-_0x5d6945[0x0])[_0x3c6e6a(-0xa5,-_0x3b48e2._0x4d0e95,-0x1c0,-0x105)](([,_0x41ec0d])=>_0x41ec0d)[_0xb2d268(_0x3b48e2._0x3a3635,0x376,_0x3b48e2._0x2bad9a,0x3a8)]('')}:{}}});}function _0xb2d268(_0x4cfdec,_0x439fe9,_0x55c07c,_0xab896){return _0x2e5e46(_0x4cfdec-0x11f,_0xab896,_0x55c07c-_0x385859._0x367e79,_0x4cfdec- -0x26e);}function _0x3c6e6a(_0x252314,_0x4107e6,_0x2fa096,_0x4911fc){return _0x2e5e46(_0x252314-_0x1fe62b._0x1ff569,_0x252314,_0x2fa096-_0x1fe62b._0xf49d16,_0x4911fc- -0x6ce);}for(const _0x109a9d of this[_0xb2d268(_0x3b48e2._0x2a34ca,_0x3b48e2._0x3fea24,0x3aa,_0x3b48e2._0x2cc341)][_0x3c6e6a(-0x24d,-_0x3b48e2._0x47db33,-_0x3b48e2._0x4639b6,-_0x3b48e2._0x35f509)]()){_0x526aab[_0xb2d268(_0x3b48e2._0x141459,0x3a0,0x38a,0x388)]({'index':this['callIdToOutputIndex']['get'](_0x109a9d['id'])??_0x526aab[_0x3c6e6a(-0x155,-_0x3b48e2._0x4c0ce9,-_0x3b48e2._0x20d1ee,-_0x3b48e2._0x25821f)],'item':{'type':_0x3c6e6a(-0x271,-_0x3b48e2._0x1b2d7c,-0x1a5,-0x1b3),'call_id':_0x109a9d['id'],'name':_0x109a9d[_0x3c6e6a(-0x15e,-0xa6,-_0x3b48e2._0x1fd700,-0x122)]['name'],'arguments':_0x109a9d[_0xb2d268(_0x3b48e2._0x2bb508,0x308,0x382,_0x3b48e2._0x301bd6)][_0x3c6e6a(-_0x3b48e2._0x2d2ba4,-0x8c,-_0x3b48e2._0x172e6b,-0xe9)]}});}return _0x526aab['sort']((_0x340ea6,_0x5a11d5)=>_0x340ea6[_0xb2d268(0x3e1,0x3ea,0x451,0x494)]-_0x5a11d5['index'])[_0x3c6e6a(-0x142,-_0x3b48e2._0x10b625,-_0x3b48e2._0x323a44,-0x105)](_0x5a2e25=>_0x5a2e25[_0x3c6e6a(-0x44,-0x140,-0x12e,-0x90)]);}[_0x4784b8(0x8e,-0x5d,-0xd9,-0x12)](_0x5babd6,_0x33b31d){const _0x22a766={_0x28aa93:0x2a1,_0x2cc692:0x35f,_0x4e8c5f:0x3ab,_0x53e0fd:0x199,_0x1ca012:0x312,_0xf9db32:0x37e,_0x332f67:0x3d0,_0x5b50cd:0x200,_0x3036d1:0x258,_0x2bc6ee:0x1ca,_0x2cf247:0x2ab,_0xfd2315:0x3a2,_0x5e1f32:0x328,_0x5042b3:0x362},_0x2bf36f={_0x3a449c:0x15f,_0x4fd7ff:0x1d6,_0x339cb3:0x302};function _0x41480f(_0x38c650,_0x32d728,_0x2b87b9,_0x383de1){return _0x2e5e46(_0x38c650-0x186,_0x38c650,_0x2b87b9-0x150,_0x2b87b9- -0x1a0);}const _0x18731a=this[_0x48b78e(0x21c,0x184,0x230,_0x22a766._0x28aa93)]['get'](_0x5babd6);if(_0x18731a)return _0x33b31d!==void 0x0&&(_0x18731a[_0x41480f(_0x22a766._0x2cc692,0x31d,_0x22a766._0x4e8c5f,0x322)]=_0x33b31d,this['outputIndexToReasoningId'][_0x48b78e(0x200,0x12e,0x175,_0x22a766._0x53e0fd)](_0x33b31d,_0x5babd6)),_0x18731a;function _0x48b78e(_0x4f947d,_0x2196a8,_0x5c8551,_0x15cad3){return _0x2e5e46(_0x4f947d-_0x2bf36f._0x3a449c,_0x5c8551,_0x5c8551-_0x2bf36f._0x4fd7ff,_0x4f947d- -_0x2bf36f._0x339cb3);}const _0x22d128={'id':_0x5babd6,'outputIndex':_0x33b31d,'summaryByIndex':new Map(),'textByIndex':new Map()};return this[_0x41480f(_0x22a766._0x1ca012,0x3d7,_0x22a766._0xf9db32,_0x22a766._0x332f67)][_0x48b78e(_0x22a766._0x5b50cd,_0x22a766._0x3036d1,_0x22a766._0x2bc6ee,_0x22a766._0x2cf247)](_0x5babd6,_0x22d128),_0x33b31d!==void 0x0&&this[_0x41480f(0x3c0,_0x22a766._0xfd2315,0x46a,0x511)][_0x41480f(0x2ae,_0x22a766._0x5e1f32,_0x22a766._0x5042b3,0x2c8)](_0x33b31d,_0x5babd6),_0x22d128;}};function createOpenAiResponsesStreamParser(_0x5933eb){return new OpenAiResponsesStreamParser(_0x5933eb);}function createOpenAiSurfaces(_0x4062de={}){const _0x3c3c64={_0x50f589:0x2e,_0x350139:0x4a,_0x416023:0x54,_0x1c9e56:0xdd,_0x579977:0x15f,_0x1a7b70:0x13,_0xbc1dce:0x5d,_0x42ae07:0xb8,_0x27a646:0x19,_0x2a4edf:0x1f,_0x1426da:0x5c,_0x147a09:0x408,_0x39dc3a:0x3ac,_0x521e75:0x487,_0x7e2a1b:0x19,_0x338a3e:0x44,_0x3cb733:0x473,_0x36946f:0x425},_0x3af180={_0x1944eb:0x3c4},_0x3f01aa={_0x42c462:0x219,_0x4ec92c:0x14c},_0x4786f7={_0xb98978:0x56},_0x265a8a={_0x5a7db0:0xf1,_0x4ca7c0:0x6e,_0x546c70:0x12e},_0x10a125={_0x156d30:0x8c,_0x180757:0x1f4},_0x707382={_0x581dba:0x5e,_0x4c7e41:0x4dc};function _0x50d312(_0x4c0b43,_0xe0150d,_0x296ad0,_0x29654b){return _0x4784b8(_0x4c0b43-_0x707382._0x581dba,_0xe0150d-0x1af,_0xe0150d,_0x29654b-_0x707382._0x4c7e41);}function _0x4d14e9(_0x3d4e3e,_0xdd5b7e,_0x562e10,_0x47f60a){return _0x2e5e46(_0x3d4e3e-_0x10a125._0x156d30,_0x3d4e3e,_0x562e10-_0x10a125._0x180757,_0xdd5b7e- -0x60e);}const _0x48cbf2=_0x4062de[_0x4d14e9(-_0x3c3c64._0x50f589,-0x84,-_0x3c3c64._0x350139,-_0x3c3c64._0x416023)]??'/chat/completions',_0x4b1644=_0x4062de['responsesPath']??_0x4d14e9(-0x100,-0x97,-_0x3c3c64._0x1c9e56,-_0x3c3c64._0x579977);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x4d14e9(-0x24,0x2,_0x3c3c64._0x1a7b70,-_0x3c3c64._0xbc1dce),'createRequest'(_0x30951e){function _0x4c0d85(_0x1d0839,_0x56d2ae,_0x1b1bfa,_0x45eb79){return _0x4d14e9(_0x1d0839,_0x1b1bfa- -0x64,_0x1b1bfa-0x155,_0x45eb79-0xe4);}return{'accept':_0x4c0d85(-_0x265a8a._0x5a7db0,-_0x265a8a._0x4ca7c0,-_0x265a8a._0x546c70,-0xf2),'body':createChatRequestBody(_0x30951e,![]),'path':_0x48cbf2};},'parseResponse'(_0x162478){return parseChatCompletionResponse(_0x162478);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x4d14e9(-_0x3c3c64._0x42ae07,-_0x3c3c64._0x27a646,-_0x3c3c64._0x2a4edf,_0x3c3c64._0x1426da),'createRequest'(_0x25cd3f){function _0x1017c1(_0x220a55,_0x7f34bb,_0x539197,_0x24789f){return _0x4d14e9(_0x7f34bb,_0x220a55-0x25b,_0x539197-_0x4786f7._0xb98978,_0x24789f-0x136);}return{'accept':_0x1017c1(0x14c,0xdf,_0x3f01aa._0x42c462,_0x3f01aa._0x4ec92c),'body':createChatRequestBody(_0x25cd3f,!![]),'path':_0x48cbf2};},'createStreamParser'(_0x5b32bd){return new OpenAiChatCompletionsStreamParser(_0x5b32bd);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x50d312(_0x3c3c64._0x147a09,_0x3c3c64._0x39dc3a,_0x3c3c64._0x521e75,0x44a),'createRequest'(_0x5e8700){function _0x509841(_0x1415f7,_0x16e871,_0x1815f7,_0x627e3a){return _0x50d312(_0x1415f7-0x51,_0x16e871,_0x1815f7-0x1b5,_0x1815f7-0xac);}return{'accept':_0x509841(_0x3af180._0x1944eb,0x492,0x42a,0x453),'body':createResponsesRequestBody(_0x5e8700,![]),'path':_0x4b1644};},'parseResponse'(_0x5be1ae,_0x549b63){return parseResponsesResponse(_0x5be1ae,_0x549b63);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x4d14e9(-0x8d,-_0x3c3c64._0x7e2a1b,0x11,-_0x3c3c64._0x338a3e),'createRequest'(_0x1b44ad){return{'accept':'text/event-stream','body':createResponsesRequestBody(_0x1b44ad,!![]),'path':_0x4b1644};},'createStreamParser'(_0x53b6bb){return new OpenAiResponsesStreamParser(_0x53b6bb);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x50d312(_0x3c3c64._0x3cb733,0x483,0x3d1,_0x3c3c64._0x36946f),'createRequest'(_0x4ae6d1){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x4ae6d1),'path':_0x4b1644};},'createStreamParser'(_0x3feac0){return createOpenAiResponsesStreamParser(_0x3feac0);}}];}var OpenAiProviderAdapter=class{[_0x4784b8(0x31,-0x63,-0xdf,-0x5f)];constructor(_0x1d6dc3){this['headerResolver']=_0x1d6dc3;}[_0x2e5e46(0x554,0x63b,0x569,0x56a)](){const _0x45468f={_0x392a4a:0x433,_0x10f03c:0x45b,_0x415796:0x3e5},_0x483df0={_0xe362ce:0x1cd,_0x5a1d2d:0x4b1};function _0xa7b7ef(_0x17a972,_0x289f0b,_0x594291,_0x5a4d66){return _0x4784b8(_0x17a972-_0x483df0._0xe362ce,_0x289f0b-0x1,_0x5a4d66,_0x17a972-_0x483df0._0x5a1d2d);}return new Error(_0xa7b7ef(_0x45468f._0x392a4a,0x470,_0x45468f._0x10f03c,_0x45468f._0x415796));}async['createHeaders'](_0x2167a0,_0xb98073){const _0x4a1a84={_0x5d7694:0xbf,_0x3c7f64:0x45,_0xda1f31:0x28,_0x2297b1:0x135,_0x1a969a:0x70,_0x2f3b3b:0x18,_0x4a05f0:0x4b,_0x32bbe1:0x58,_0x87dd3d:0x93,_0x88e432:0x5e,_0x2580ec:0x133,_0x3507f7:0x48,_0x121f6d:0x50,_0x10808f:0xe,_0x214f73:0x89,_0x5bdcb4:0x22,_0x391adc:0x89,_0x3d10da:0xbb,_0x2fc865:0xc4,_0xc381be:0x194,_0x4e1ac3:0x173,_0x1c828f:0x10f,_0x5a5b3b:0x228,_0x24075a:0x15,_0x1c5b2a:0x68,_0x31afc4:0x212,_0x4f69d4:0xae,_0x5d044d:0xf5},_0x300a30={_0xc82f06:0xfe,_0x5ee0cc:0x1ab},_0x21d02f={_0x5d828d:0x20d},_0x433f8e=new Headers();_0x433f8e[_0x3e534b(_0x4a1a84._0x5d7694,0x4d,-_0x4a1a84._0x3c7f64,_0x4a1a84._0xda1f31)](_0x2412ba(_0x4a1a84._0x2297b1,0xdf,0x138,_0x4a1a84._0x1a969a),_0xb98073[_0x3e534b(-_0x4a1a84._0x2f3b3b,_0x4a1a84._0x4a05f0,0x143,0x9a)]);function _0x2412ba(_0x3a1e57,_0x17a789,_0x56b787,_0x374c77){return _0x4784b8(_0x3a1e57-0x160,_0x17a789-0x135,_0x56b787,_0x17a789-_0x21d02f._0x5d828d);}_0x433f8e[_0x3e534b(0x97,-_0x4a1a84._0x32bbe1,_0x4a1a84._0x87dd3d,0x28)](_0x2412ba(0x2f,0x62,-_0x4a1a84._0x88e432,_0x4a1a84._0x2580ec),_0x3e534b(_0x4a1a84._0x3507f7,-0x3d,0xc4,_0x4a1a84._0x121f6d)+_0x2167a0[_0x3e534b(_0x4a1a84._0x10808f,0xb6,_0x4a1a84._0x214f73,_0x4a1a84._0x5bdcb4)]['value']);_0xb98073[_0x2412ba(0x27,0x59,_0x4a1a84._0x391adc,0x12b)]!==![]&&_0x433f8e[_0x3e534b(_0x4a1a84._0x3d10da,-0x2,_0x4a1a84._0x2fc865,_0x4a1a84._0xda1f31)](_0x3e534b(0xcc,0x201,0x1bb,_0x4a1a84._0xc381be),'application/json');const _0x5202e9=await this['headerResolver']?.({'body':_0x2167a0[_0x2412ba(0x1d7,_0x4a1a84._0x4e1ac3,_0x4a1a84._0x1c828f,_0x4a1a84._0x5a5b3b)],'credential':_0x2167a0[_0x3e534b(-_0x4a1a84._0x24075a,_0x4a1a84._0x1c5b2a,-0x64,_0x4a1a84._0x5bdcb4)],'request':_0x2167a0['request'],'session':_0x2167a0[_0x2412ba(0x84,0x153,0x15b,_0x4a1a84._0x31afc4)],'stream':_0x2167a0[_0x2412ba(0x167,_0x4a1a84._0x4f69d4,_0x4a1a84._0x5d044d,-0xe)]});for(const [_0x278c51,_0x611d71]of Object['entries'](_0x5202e9??{})){_0x433f8e['set'](_0x278c51,_0x611d71);}function _0x3e534b(_0x2a22fb,_0x4fbda2,_0x3b7e51,_0x4eb8f6){return _0x4784b8(_0x2a22fb-_0x300a30._0xc82f06,_0x4fbda2-_0x300a30._0x5ee0cc,_0x2a22fb,_0x4eb8f6-0x1c8);}return _0x433f8e;}[_0x2e5e46(0x5e1,0x4a9,0x60b,0x568)](_0x5a04c8){return _0x5a04c8;}[_0x4784b8(-0xce,-0x9f,-0x1fa,-0x16d)](_0x229c7d,_0xaa84d5){return resolveSessionBaseUrl(_0x229c7d,_0xaa84d5);}['resolveCredential'](_0x3f407e,_0x588728){return resolveApiCredential(_0x3f407e,_0x588728);}async['toApiError'](_0x82f14c){return await createOpenAiApiError(_0x82f14c);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x4784b8(-0x174,-0x96,-0x71,-0xc6)]=new Map();[_0x4784b8(-0x115,-0x15c,-0x166,-0x118)];[_0x2e5e46(0x730,0x5ec,0x6a8,0x680)];constructor(_0x3a933a={}){const _0x54f0dd={_0x3399d6:0x139,_0x374b1f:0xa6,_0x58e2aa:0x173,_0x345dac:0x3f5,_0x3973cc:0x419,_0x3ce8cd:0x42c,_0x390885:0x5b6,_0x2068c7:0x5c5,_0x45813a:0xeb,_0x1fe90d:0x7a,_0x4390b2:0xb0,_0x5ed1f7:0x22,_0x372ad0:0x19e,_0x1bf28f:0x66,_0x59e7ed:0x49b,_0x489db1:0x5,_0x3aeab9:0xfd,_0x19fafb:0x68,_0x2abe06:0x18,_0x3ce0f0:0x42b,_0x452a00:0x36,_0x4b6d5b:0x30,_0x3bf882:0xa1,_0x1b12a9:0x7f,_0x52a575:0x105},_0x40a53e={_0x11159a:0x140},_0x159119={_0x1ee7f9:0x147,_0xe91c2b:0xf,_0x597fd0:0x5d8},_0x428986=_0x3a933a[_0x7f2706(-_0x54f0dd._0x3399d6,-_0x54f0dd._0x374b1f,-0x109,-_0x54f0dd._0x58e2aa)]??'gpt-4o',_0x2b0103=_0x3a933a[_0x32a8d2(0x472,_0x54f0dd._0x345dac,_0x54f0dd._0x3973cc,_0x54f0dd._0x3ce8cd)]??0x4000;function _0x32a8d2(_0x283f9e,_0x29a295,_0x480984,_0x20371c){return _0x4784b8(_0x283f9e-_0x159119._0x1ee7f9,_0x29a295-_0x159119._0xe91c2b,_0x480984,_0x283f9e-_0x159119._0x597fd0);}const _0x149804=_0x3a933a['chatCompletionsPath']??'/chat/completions',_0x4f1e32=_0x3a933a[_0x32a8d2(_0x54f0dd._0x390885,0x543,0x5a2,_0x54f0dd._0x2068c7)]??_0x7f2706(-_0x54f0dd._0x45813a,-0xb4,-_0x54f0dd._0x1fe90d,-0xf6);super({'apiKey':_0x3a933a[_0x7f2706(-0x103,-_0x54f0dd._0x4390b2,-0xa2,_0x54f0dd._0x5ed1f7)],'baseUrl':trimTrailingSlashes(_0x3a933a[_0x7f2706(-0x18d,-0xe6,-_0x54f0dd._0x372ad0,-_0x54f0dd._0x1bf28f)]??'https://api.openai.com/v1'),'fetch':_0x3a933a[_0x32a8d2(0x4a3,_0x54f0dd._0x59e7ed,0x539,0x4bf)],'maxTokens':_0x2b0103,'model':_0x428986,'reasoning':_0x3a933a[_0x7f2706(_0x54f0dd._0x489db1,-0xbd,-_0x54f0dd._0x3aeab9,-_0x54f0dd._0x19fafb)],'providerAdapter':new OpenAiProviderAdapter(_0x3a933a[_0x7f2706(0x9,_0x54f0dd._0x2abe06,-0x77,0xdd)]),'providerSessionResolver':_0x3a933a[_0x32a8d2(0x462,0x3b6,0x3d5,_0x54f0dd._0x3ce0f0)],'requestMutators':_0x3a933a[_0x32a8d2(0x45c,0x3bd,0x4fc,0x3c7)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x3a933a[_0x7f2706(_0x54f0dd._0x452a00,_0x54f0dd._0x4b6d5b,0xe9,-0x12)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x149804,'responsesPath':_0x4f1e32}),'webSocketFactory':_0x3a933a['webSocketFactory']});function _0x7f2706(_0x138055,_0x7f2da0,_0x13c126,_0x53a159){return _0x4784b8(_0x138055-_0x40a53e._0x11159a,_0x7f2da0-0xeb,_0x138055,_0x7f2da0-0x77);}this[_0x7f2706(-0x35,-_0x54f0dd._0x3bf882,-_0x54f0dd._0x1b12a9,-_0x54f0dd._0x52a575)]=_0x149804,this['responsesPath']=_0x4f1e32;}[_0x4784b8(-0x18f,-0x167,-0x16c,-0x18f)](_0x2362a8,_0x1d5297){const _0x40adb5={_0xc252d9:0x2d8},_0x2fb005={_0x22a7b2:0x199,_0x2101dc:0x3a6};function _0x349806(_0x593f90,_0x523b08,_0x312218,_0x598330){return _0x4784b8(_0x593f90-_0x2fb005._0x22a7b2,_0x523b08-0x88,_0x523b08,_0x312218-_0x2fb005._0x2101dc);}return this[_0x349806(0x2f4,0x2bf,0x374,_0x40adb5._0xc252d9)](_0x2362a8,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x1d5297);}[_0x2e5e46(0x506,0x598,0x616,0x5d8)](_0x1a57e6,_0x43e2ab){const _0x598a9d={_0x240e29:0x73,_0x4c57cd:0x35,_0x4e3e1b:0x21},_0x144945={_0x3792c5:0x14b};function _0x198a0d(_0x5bd1b8,_0x142147,_0x2a0383,_0x2d6851){return _0x4784b8(_0x5bd1b8-_0x144945._0x3792c5,_0x142147-0x64,_0x5bd1b8,_0x142147- -0x41);}return this[_0x198a0d(-0xf7,-_0x598a9d._0x240e29,_0x598a9d._0x4c57cd,_0x598a9d._0x4e3e1b)](_0x1a57e6,OPENAI_RESPONSES_SURFACE,_0x43e2ab);}[_0x2e5e46(0x6ba,0x6fc,0x706,0x678)](_0x11111b,_0x4fd5f2){const _0x2ab69d={_0x54f109:0xd0,_0x2cf1f1:0x118},_0x4c3a99={_0x5a222b:0x1e5,_0x864847:0x79d};function _0x44265f(_0x413233,_0x36d38c,_0x3d106a,_0x2c8ca7){return _0x2e5e46(_0x413233-0xc0,_0x3d106a,_0x3d106a-_0x4c3a99._0x5a222b,_0x413233- -_0x4c3a99._0x864847);}return this[_0x44265f(-0x12d,-_0x2ab69d._0x54f109,-_0x2ab69d._0x2cf1f1,-0x112)](_0x11111b,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x4fd5f2);}[_0x2e5e46(0x551,0x5bb,0x592,0x50a)](_0x298049,_0x421df4){const _0x43306f={_0x3b9b7c:0x334,_0x473425:0x316},_0x5aca69={_0x5368e8:0x1be};function _0x9974ea(_0x97981a,_0x5c05b6,_0x3de16a,_0x164d63){return _0x4784b8(_0x97981a-_0x5aca69._0x5368e8,_0x5c05b6-0x1a9,_0x164d63,_0x97981a-0x45d);}return this[_0x9974ea(0x31e,_0x43306f._0x3b9b7c,_0x43306f._0x473425,0x251)](_0x298049,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x421df4);}[_0x4784b8(-0x86,-0x63,-0x15,-0xdf)](_0x5a5b0a,_0x1b56e5){const _0x1c6e8b={_0x46eb74:0x1af,_0x41fc26:0x25e,_0x2aa0fe:0x238},_0x2d5cc2={_0x1dbb1b:0x5b};function _0x11788b(_0x4b1a91,_0x5f24ad,_0x52424a,_0x297f99){return _0x4784b8(_0x4b1a91-_0x2d5cc2._0x1dbb1b,_0x5f24ad-0x180,_0x297f99,_0x4b1a91- -0x70);}return this[_0x11788b(-_0x1c6e8b._0x46eb74,-_0x1c6e8b._0x41fc26,-0x24f,-_0x1c6e8b._0x2aa0fe)](_0x5a5b0a,OPENAI_RESPONSES_STREAM_SURFACE,_0x1b56e5);}[_0x2e5e46(0x53e,0x60d,0x563,0x570)](_0x593ff2,_0x23cd8c){const _0x57305f={_0x487ada:0x59,_0x1f6972:0xce,_0x1c8b02:0x18},_0x38ffd8={_0x50c9f9:0x198};function _0x4dc498(_0x17967d,_0x37c486,_0x2c5fdd,_0xef484a){return _0x4784b8(_0x17967d-0x1a8,_0x37c486-0xd3,_0xef484a,_0x17967d-_0x38ffd8._0x50c9f9);}return this[_0x4dc498(_0x57305f._0x487ada,_0x57305f._0x1f6972,-_0x57305f._0x1c8b02,0x9)](_0x593ff2,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x23cd8c);}async[_0x2e5e46(0x585,0x4de,0x4cc,0x554)](_0x22b41a,_0x165c1e){const _0x4e3423={_0x8a8256:0x1d5,_0x169da0:0x120},_0x504818={_0x92814b:0xea,_0x410f6d:0x558},_0x166a25={_0xe1562f:0x2a,_0x4a44ab:0x46};function _0x304267(_0x353f6c,_0x3393f2,_0xa863dc,_0x1b2b18){return _0x4784b8(_0x353f6c-0x2e,_0x3393f2-_0x166a25._0xe1562f,_0x1b2b18,_0xa863dc- -_0x166a25._0x4a44ab);}function _0x534bb3(_0x23ba95,_0x3d4cac,_0x2e761f,_0x37fed6){return _0x2e5e46(_0x23ba95-0x95,_0x3d4cac,_0x2e761f-_0x504818._0x92814b,_0x2e761f- -_0x504818._0x410f6d);}try{return await this[_0x304267(-0x200,-0x205,-_0x4e3423._0x8a8256,-_0x4e3423._0x169da0)](_0x22b41a,_0x165c1e);}catch(_0x11cbb4){if(_0x11cbb4 instanceof OpenAiApiError)throw this[_0x534bb3(-0x43,-0x7f,0x10,-0xb1)](_0x11cbb4);throw _0x11cbb4;}}async['response'](_0x40b2a7,_0x312d5a){const _0x393595={_0x2f3001:0x1cc,_0x49529b:0x187,_0x13bd64:0x17e,_0x3b2520:0x144},_0x501ddb={_0x8ecd7c:0x4d},_0x35cbba={_0x5493e6:0x4de};function _0x4ddd31(_0x288cbc,_0x25adb1,_0x4c612b,_0x5ac39b){return _0x4784b8(_0x288cbc-0x18a,_0x25adb1-0x174,_0x4c612b,_0x25adb1-_0x35cbba._0x5493e6);}function _0x1f168b(_0x19ffee,_0x2fae70,_0x490790,_0x59304b){return _0x4784b8(_0x19ffee-0x83,_0x2fae70-0x71,_0x490790,_0x2fae70- -_0x501ddb._0x8ecd7c);}try{return await this[_0x1f168b(-0x157,-0x117,-0x143,-0x1c6)](_0x40b2a7,_0x312d5a);}catch(_0x2e4009){if(_0x2e4009 instanceof OpenAiApiError)throw this[_0x1f168b(-_0x393595._0x2f3001,-_0x393595._0x49529b,-_0x393595._0x13bd64,-_0x393595._0x3b2520)](_0x2e4009);throw _0x2e4009;}}async['responseSocket'](_0xfe2663,_0x477bc0){const _0x2aa891={_0x37f096:0x2ec,_0xc00f3:0x24a,_0x3cebe1:0x269,_0x5c6350:0x1bb,_0x3b28e4:0x234},_0x61ecb5={_0x1cf73a:0x1a1,_0x3a8f5a:0x79c};function _0x528120(_0xcd2953,_0x155bdf,_0x273115,_0x37b9d2){return _0x4784b8(_0xcd2953-0x133,_0x155bdf-0x1cb,_0x155bdf,_0x37b9d2-0x2e9);}function _0x4494dc(_0x5a4082,_0x2a689e,_0x1d72ae,_0x1d77fc){return _0x2e5e46(_0x5a4082-0x56,_0x5a4082,_0x1d72ae-_0x61ecb5._0x1cf73a,_0x2a689e- -_0x61ecb5._0x3a8f5a);}try{let _0xb203e2;for await(const _0x37afa4 of this[_0x4494dc(-_0x2aa891._0x37f096,-_0x2aa891._0xc00f3,-0x1b6,-_0x2aa891._0x3cebe1)](_0xfe2663,_0x477bc0)){_0x37afa4[_0x4494dc(-0x296,-0x219,-_0x2aa891._0x5c6350,-0x165)]==='done'&&(_0xb203e2=_0x37afa4[_0x528120(0x151,0xdf,0x1ba,0x13c)]);}if(!_0xb203e2)throw new Error('Responses\x20WebSocket\x20request\x20did\x20not\x20produce\x20a\x20final\x20response');return _0xb203e2;}catch(_0x165fd5){if(_0x165fd5 instanceof OpenAiApiError)throw this[_0x4494dc(-0x2da,-_0x2aa891._0x3b28e4,-0x2b4,-0x24e)](_0x165fd5);throw _0x165fd5;}}async*[_0x4784b8(-0x11a,-0xee,-0x2e,-0x90)](_0x585dc0,_0x4548f2){const _0x40915e={_0x5267e6:0x3c,_0x177972:0x6f,_0x403117:0xc2,_0x5123c5:0x14f,_0x18e410:0x1bc},_0x1d5ce3={_0x45518d:0x494};function _0x10de34(_0x5e9eb2,_0x57ffd4,_0x28dabb,_0x2d4a2f){return _0x2e5e46(_0x5e9eb2-0x1b3,_0x5e9eb2,_0x28dabb-0x3c,_0x28dabb- -0x419);}function _0x339af1(_0x56129d,_0x15782b,_0x50157f,_0x3fbcfb){return _0x4784b8(_0x56129d-0x1dd,_0x15782b-0xfb,_0x50157f,_0x3fbcfb-_0x1d5ce3._0x45518d);}try{yield*this[_0x10de34(_0x40915e._0x5267e6,_0x40915e._0x177972,0xf1,0x17b)](_0x585dc0,_0x4548f2);}catch(_0x456dfe){if(_0x456dfe instanceof OpenAiApiError)throw this[_0x10de34(0x1e7,_0x40915e._0x403117,_0x40915e._0x5123c5,_0x40915e._0x18e410)](_0x456dfe);throw _0x456dfe;}}async*['responseStream'](_0x5adad2,_0x2dc12c){const _0x1e589d={_0x50c71a:0x8a,_0x386402:0x6b,_0x26e9dc:0x2c};function _0x50b7e0(_0x56cfb7,_0x56557e,_0x3c0a7d,_0x16978f){return _0x4784b8(_0x56cfb7-0x86,_0x56557e-0x16b,_0x16978f,_0x3c0a7d-0xcf);}try{yield*this['streamViaResponsesSurface'](_0x5adad2,_0x2dc12c);}catch(_0x3628fe){if(_0x3628fe instanceof OpenAiApiError)throw this[_0x50b7e0(-0x11a,-_0x1e589d._0x50c71a,-_0x1e589d._0x386402,-_0x1e589d._0x26e9dc)](_0x3628fe);throw _0x3628fe;}}async*[_0x4784b8(-0x16d,-0x8c,-0x18f,-0x150)](_0x2ebba8,_0x59d2b2){const _0x587843={_0x4a122d:0xf9,_0x201e9f:0x188,_0x1eb15:0xdc},_0x26831a={_0x1fe9f9:0x32,_0x24c3d8:0x8a};function _0x2ea9e8(_0x5e00d3,_0x55500f,_0x4a4c11,_0x1a968b){return _0x4784b8(_0x5e00d3-_0x26831a._0x1fe9f9,_0x55500f-_0x26831a._0x24c3d8,_0x1a968b,_0x55500f- -0x4e);}try{yield*this['streamViaPersistentResponsesSocket'](_0x2ebba8,_0x59d2b2);}catch(_0x132414){if(_0x132414 instanceof OpenAiApiError)throw this[_0x2ea9e8(-_0x587843._0x4a122d,-_0x587843._0x201e9f,-0x169,-_0x587843._0x1eb15)](_0x132414);throw _0x132414;}}[_0x2e5e46(0x53e,0x5f9,0x4ed,0x5a9)](_0x483268,_0x1d2b3d){return this['chatComplete'](_0x483268,_0x1d2b3d);}[_0x4784b8(-0x125,-0x1ff,-0x12a,-0x15f)](_0x500f00,_0x236485){const _0x6eab3a={_0x47670b:0x114,_0x4541bd:0xdf};function _0x44aaa9(_0x169505,_0x29fee1,_0x4aeae5,_0x233b2c){return _0x4784b8(_0x169505-0x17b,_0x29fee1-0xde,_0x169505,_0x233b2c- -0x4f);}return this[_0x44aaa9(-0x137,-_0x6eab3a._0x47670b,-0x13,-_0x6eab3a._0x4541bd)](_0x500f00,_0x236485);}[_0x2e5e46(0x5cd,0x50d,0x4f9,0x52d)](_0x488f2a){const _0x241c1a={_0x39be59:0x317,_0x3816f3:0x35f,_0x82d3aa:0x3a7,_0x1eb68d:0x33d,_0x36d3a5:0x36c,_0x2206e4:0x39c,_0x359ae5:0x28d},_0x2f48aa={_0x141e76:0x1df,_0x11bfe3:0x27d},_0x5f072d={_0x2821ed:0x168,_0x42e6e1:0x202};function _0x16fc8a(_0xb1668,_0x7434b3,_0x2b968a,_0x749db0){return _0x2e5e46(_0xb1668-_0x5f072d._0x2821ed,_0xb1668,_0x2b968a-0xb1,_0x2b968a- -_0x5f072d._0x42e6e1);}const _0x575b01=this[_0x16fc8a(0x44a,_0x241c1a._0x39be59,0x3ae,0x454)](_0x488f2a);function _0x4fe903(_0x3c70a0,_0x33c2dc,_0x22437f,_0x5d5830){return _0x2e5e46(_0x3c70a0-_0x2f48aa._0x141e76,_0x33c2dc,_0x22437f-0x179,_0x3c70a0- -_0x2f48aa._0x11bfe3);}let _0x3c90bb=_OpenAiModel[_0x4fe903(_0x241c1a._0x3816f3,_0x241c1a._0x82d3aa,_0x241c1a._0x1eb68d,_0x241c1a._0x36d3a5)]['get'](_0x575b01);return!_0x3c90bb&&(_0x3c90bb={'pending':Promise['resolve']()},_OpenAiModel['sharedResponsesSocketSessions'][_0x16fc8a(_0x241c1a._0x2206e4,0x275,0x300,_0x241c1a._0x359ae5)](_0x575b01,_0x3c90bb)),_0x3c90bb;}['getResponsesSocketSessionKey'](_0x4e009d){const _0x40ff0e={_0x17af26:0xdb,_0x42e9d2:0x44},_0x45a617={_0x4df80e:0x13,_0x4bf3e8:0x119};function _0x28a9eb(_0x214777,_0x202f81,_0x2247ab,_0xd311c7){return _0x4784b8(_0x214777-_0x45a617._0x4df80e,_0x202f81-0xd7,_0x202f81,_0xd311c7-_0x45a617._0x4bf3e8);}return''+trimTrailingSlashes(this[_0x28a9eb(-_0x40ff0e._0x17af26,0x87,-0x8f,-_0x40ff0e._0x42e9d2)])+this['responsesPath']+'::'+_0x4e009d;}async['acquireResponsesSocketLock'](_0x2f1ada){const _0xfbbd2b={_0x20d6ed:0x57,_0x5b4fa0:0x5d},_0x44c1c0={_0x2c2b22:0x13},_0x23a8bf=_0x2f1ada[_0x227a49(0x62,0x115,0x11b,0x121)][_0x227a49(0xe6,_0xfbbd2b._0x20d6ed,_0xfbbd2b._0x5b4fa0,-0xd)](()=>{});let _0x1de624;const _0x2679c4=new Promise(_0x35f6a5=>{_0x1de624=_0x35f6a5;});function _0x227a49(_0x57547d,_0x274766,_0x55d011,_0xfd6a19){return _0x4784b8(_0x57547d-0x6e,_0x274766-_0x44c1c0._0x2c2b22,_0x55d011,_0x274766-0x161);}function _0x6045aa(_0x14fc39,_0x3d9a16,_0x2f1cfd,_0x4a8c99){return _0x4784b8(_0x14fc39-0x41,_0x3d9a16-0x107,_0x2f1cfd,_0x3d9a16-0x108);}return _0x2f1ada['pending']=_0x23a8bf['then'](()=>_0x2679c4),await _0x23a8bf,()=>{_0x1de624?.();};}async[_0x2e5e46(0x697,0x673,0x5fe,0x67a)](_0xb21b52,_0x84ebf7){const _0x42ced8={_0xbd728d:0x31f,_0x269bf0:0x402,_0x147a4f:0x1b6,_0x594186:0xea,_0x12b2c1:0x3e9,_0x51ad0e:0x351,_0x34e030:0x3d0,_0x65aec7:0x40f,_0x3861cb:0x3a5,_0x4fd927:0x370,_0x3e9f19:0x3d2,_0x45264b:0x35c,_0x2c5955:0x332,_0x2b60f0:0x29c,_0x1dc44d:0x6d,_0x82b860:0x28,_0x11e6ef:0x321,_0x1f3232:0x3a5,_0x3762f6:0x47e,_0x3692d1:0x4a7,_0x3c5fb8:0x2ec,_0x4f47ef:0x288,_0x351ed7:0x39f},_0x4a0d8f={_0x711538:0x1ae,_0x2c9676:0xaf},_0x39c056={_0x22ada0:0x249},_0x2ae203=this[_0x3a8a41(_0x42ced8._0xbd728d,0x345,_0x42ced8._0x269bf0,0x2ee)](_0xb21b52),_0x3d7029=toModelRequest(_0x2ae203),_0x25a3e0=await prepareProviderRequest(_0x3d7029,{'sessionManager':this['sessionManager'],'requestMutators':this[_0x2ee5ad(-0x170,-_0x42ced8._0x147a4f,-0x35,-_0x42ced8._0x594186)],'signal':_0x84ebf7});function _0x3a8a41(_0x2361d2,_0xa7d4f,_0x30cfc7,_0x89923a){return _0x2e5e46(_0x2361d2-0x19c,_0x30cfc7,_0x30cfc7-0x116,_0xa7d4f- -_0x39c056._0x22ada0);}function _0x2ee5ad(_0x1b0a9c,_0x5cf306,_0x55bb10,_0x11645f){return _0x4784b8(_0x1b0a9c-_0x4a0d8f._0x711538,_0x5cf306-_0x4a0d8f._0x2c9676,_0x5cf306,_0x11645f-0x92);}const _0x53fe47=toChatRequest(_0x25a3e0['request']),_0x39d00d=this[_0x3a8a41(_0x42ced8._0x12b2c1,0x41e,_0x42ced8._0x51ad0e,_0x42ced8._0x34e030)][_0x3a8a41(_0x42ced8._0x65aec7,_0x42ced8._0x3861cb,_0x42ced8._0x4fd927,_0x42ced8._0x3e9f19)](this[_0x3a8a41(_0x42ced8._0x45264b,_0x42ced8._0x2c5955,_0x42ced8._0x2b60f0,0x3d9)],_0x25a3e0[_0x2ee5ad(0x35,-0x71,-_0x42ced8._0x1dc44d,-_0x42ced8._0x82b860)]);if(!_0x39d00d)throw this[_0x3a8a41(0x2d1,_0x42ced8._0x11e6ef,0x336,_0x42ced8._0x1f3232)]();return{'baseUrl':this[_0x3a8a41(_0x42ced8._0x3762f6,0x41e,0x428,_0x42ced8._0x3692d1)][_0x3a8a41(0x3bf,0x2ec,0x25a,_0x42ced8._0x3c5fb8)](this[_0x3a8a41(0x327,0x2fc,_0x42ced8._0x4f47ef,0x372)],_0x25a3e0[_0x3a8a41(0x433,0x39f,0x3ed,0x3bc)]),'credential':_0x39d00d,'request':_0x53fe47,'session':_0x25a3e0[_0x3a8a41(0x3fd,_0x42ced8._0x351ed7,0x349,0x352)]};}[_0x4784b8(-0x46,-0x62,-0x13f,-0xf1)](_0x1fe5a6,_0x1e0366,_0xf64671={}){const _0x4ecb9d={_0x1a0cfb:0x595,_0x1f6258:0x517,_0x2d96c8:0x23e,_0x1b1cf2:0xc2,_0x280d06:0x1e8,_0x5dcf6a:0x195,_0x4f3359:0x50e,_0x37c40f:0x5c7,_0xa10748:0x55e,_0x18f737:0x2b4,_0xd0698a:0x37f,_0x2b4218:0x2ba,_0x254804:0x2a7},_0x28f274={_0x1b1e44:0x163},_0x2d19b5={_0x4b56f4:0xff};if(!_0xf64671['forceFullReplay']){const _0x355a19=this[_0x4867dc(0x522,_0x4ecb9d._0x1a0cfb,0x50e,_0x4ecb9d._0x1f6258)](_0x1fe5a6);if(_0x355a19&&_0x1e0366[_0x4867dc(0x506,0x45f,0x4e4,0x4e6)]&&_0x355a19[_0x451417(0x17d,_0x4ecb9d._0x2d96c8,0x138,_0x4ecb9d._0x1b1cf2)]===_0x1e0366[_0x451417(0x1a6,0x124,_0x4ecb9d._0x280d06,_0x4ecb9d._0x5dcf6a)]){const _0xd3c5cf=toOpenAiResponsesRequest({..._0x1fe5a6,'messages':_0x1fe5a6['messages'][_0x4867dc(_0x4ecb9d._0x4f3359,_0x4ecb9d._0x37c40f,0x5bc,_0x4ecb9d._0xa10748)](_0x355a19[_0x451417(_0x4ecb9d._0x18f737,_0x4ecb9d._0xd0698a,_0x4ecb9d._0x2b4218,_0x4ecb9d._0x254804)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x1fe5a6,{'input':_0xd3c5cf,'previousResponseId':_0x355a19['responseId']}),'previousResponseId':_0x355a19['responseId']};}}function _0x451417(_0x3198b5,_0xfa2420,_0x438a71,_0x5935c7){return _0x2e5e46(_0x3198b5-0x14a,_0x5935c7,_0x438a71-_0x2d19b5._0x4b56f4,_0x3198b5- -0x3a0);}function _0x4867dc(_0x1365b3,_0x18958b,_0x191bcd,_0x512759){return _0x4784b8(_0x1365b3-_0x28f274._0x1b1e44,_0x18958b-0xcd,_0x191bcd,_0x1365b3-0x662);}return{'event':createOpenAiResponsesWebSocketEvent(_0x1fe5a6)};}['findResponsesSocketCheckpoint'](_0x48491d){const _0x4b5d8c={_0x2dd3a1:0xc0,_0x596342:0x6a9,_0x3181cf:0x651,_0x1970f9:0x676,_0x29de0a:0x577,_0x1f74ee:0x625,_0x1ab66c:0x198,_0x2c19fa:0x22a,_0x1ba1cf:0x1d9},_0x5ed4a4={_0x48e062:0xe},_0x21fe1b={_0x1ed438:0x1e1,_0x4e75a7:0x65c};function _0xe21a68(_0xb2c98c,_0x1153c4,_0x130528,_0x42c307){return _0x4784b8(_0xb2c98c-_0x21fe1b._0x1ed438,_0x1153c4-0x7,_0x1153c4,_0x42c307-_0x21fe1b._0x4e75a7);}function _0xc83752(_0x376451,_0x42878e,_0xb7201e,_0x3dfb57){return _0x2e5e46(_0x376451-0xb3,_0x42878e,_0xb7201e-_0x5ed4a4._0x48e062,_0x3dfb57- -0x716);}for(let _0x42b1d4=_0x48491d['messages'][_0xc83752(-0xd,-_0x4b5d8c._0x2dd3a1,-0xbf,-0xdb)]-0x1;_0x42b1d4>=0x0;_0x42b1d4-=0x1){const _0x4462e2=_0x48491d[_0xe21a68(_0x4b5d8c._0x596342,_0x4b5d8c._0x3181cf,0x623,0x5e0)][_0x42b1d4],_0x267433=_0x4462e2['role']==='assistant'?_0x4462e2[_0xe21a68(_0x4b5d8c._0x1970f9,_0x4b5d8c._0x29de0a,_0x4b5d8c._0x1f74ee,0x5cf)]?.[_0xc83752(-0x1c4,-_0x4b5d8c._0x1ab66c,-_0x4b5d8c._0x2c19fa,-_0x4b5d8c._0x1ba1cf)]:void 0x0;if(_0x267433)return{'messageIndex':_0x42b1d4,'responseId':_0x267433};}return void 0x0;}[_0x4784b8(-0x160,-0x67,-0xbd,-0xb1)](_0x4cb3e9){const _0x4a64b7={_0x116112:0x4d,_0x8f32f:0x12c,_0x3e419b:0x98,_0x14b347:0x9d,_0x27cf26:0x111,_0x256c38:0x2db,_0x14d33d:0x216,_0x1baf3e:0x262},_0x2694cd={_0x301d27:0x194},_0x52ee0b={_0x539fcb:0x4a,_0x42f2e8:0x4c};function _0x3f12e5(_0x19f925,_0x23aaee,_0x14b3c9,_0x25ce88){return _0x4784b8(_0x19f925-_0x52ee0b._0x539fcb,_0x23aaee-_0x52ee0b._0x42f2e8,_0x19f925,_0x25ce88-0x1f8);}function _0x4e4720(_0x349d46,_0x10700d,_0x1c263f,_0x56ff71){return _0x2e5e46(_0x349d46-_0x2694cd._0x301d27,_0x349d46,_0x1c263f-0x1db,_0x10700d- -0x71d);}return _0x4cb3e9 instanceof ProviderStreamEventError&&(_0x4cb3e9[_0x3f12e5(-0x29,-_0x4a64b7._0x116112,_0x4a64b7._0x8f32f,0x5d)]===_0x3f12e5(_0x4a64b7._0x3e419b,_0x4a64b7._0x14b347,_0x4a64b7._0x27cf26,0xed)||_0x4cb3e9[_0x4e4720(-_0x4a64b7._0x256c38,-_0x4a64b7._0x14d33d,-0x2d3,-_0x4a64b7._0x1baf3e)]==='websocket_connection_limit_reached');}[_0x2e5e46(0x586,0x54b,0x689,0x5ff)](_0x5cd135){const _0xe8899a={_0x15fd45:0x3c1,_0x42e78a:0x407,_0x20c743:0x313,_0x5bf0af:0x11,_0x54f1dd:0x261,_0x5a75c9:0x2a9,_0x53ee56:0x2d2,_0x5b560e:0xaa,_0x3ac2b6:0xe5,_0x20c713:0xe,_0x3b4ff1:0xf7,_0x352fe5:0x5a,_0x411f55:0x3ef,_0x19eebf:0x4d8,_0x179b95:0xb1,_0x40786a:0x69,_0x1c1a0a:0xc9,_0x518e79:0x364},_0x463df7={_0x5a9a32:0x47b},_0x3f5b37={_0x238118:0x111,_0x18485b:0x92,_0x453560:0x5f0};function _0x5c2829(_0x22795a,_0x242015,_0x228fd4,_0x8f9ee8){return _0x2e5e46(_0x22795a-_0x3f5b37._0x238118,_0x242015,_0x228fd4-_0x3f5b37._0x18485b,_0x22795a- -_0x3f5b37._0x453560);}const _0x3dc097=_0x5cd135[_0x2e9624(_0xe8899a._0x15fd45,_0xe8899a._0x42e78a,_0xe8899a._0x20c743,0x3b8)];_0x5cd135[_0x5c2829(-_0xe8899a._0x5bf0af,0xb2,-0xcb,-0x34)]=void 0x0,_0x5cd135[_0x2e9624(_0xe8899a._0x54f1dd,0x2b9,_0xe8899a._0x5a75c9,_0xe8899a._0x53ee56)]=void 0x0,_0x5cd135[_0x5c2829(-_0xe8899a._0x5b560e,-0x173,-_0xe8899a._0x3ac2b6,-_0xe8899a._0x20c713)]=void 0x0;function _0x2e9624(_0xb4bf5,_0x482bcc,_0x27dd8c,_0x2e0486){return _0x4784b8(_0xb4bf5-0x17d,_0x482bcc-0x193,_0x482bcc,_0x2e0486-_0x463df7._0x5a9a32);}_0x3dc097?.[_0x5c2829(-0x26,0x9b,-_0xe8899a._0x3b4ff1,_0xe8899a._0x352fe5)]===WebSocket[_0x2e9624(0x410,_0xe8899a._0x411f55,_0xe8899a._0x19eebf,0x418)]&&_0x3dc097[_0x5c2829(-_0xe8899a._0x179b95,-_0xe8899a._0x40786a,-0xf0,-_0xe8899a._0x1c1a0a)](0x3e8,_0x2e9624(0x42f,0x33b,0x373,_0xe8899a._0x518e79));}async[_0x4784b8(-0x37,-0x60,-0x12f,-0xe3)](_0x4fd7cf,_0x3b35e2,_0x36e1af,_0x1460f9,_0x417a1e){const _0xc61449={_0x49164a:0xc,_0x66ddc7:0x15d,_0x16390e:0x80,_0x176dc1:0x50,_0x4e530f:0x14,_0x77c2c3:0x88,_0x27d545:0xb3,_0x429f26:0x297,_0x419c9d:0x243,_0x2b2858:0x25e,_0x3496a0:0x31a,_0x4081ed:0x2a4,_0xd42722:0x1ed,_0x441076:0xfd,_0x115e63:0x28c,_0x4cdd5b:0x129,_0x3c5dd0:0x223},_0x32fd65={_0x1ca766:0x488,_0x260d12:0x442,_0x3e84ce:0x4ba,_0x2ec70f:0x402,_0x379602:0x468,_0x29d894:0x4e7,_0x7aebdb:0x30,_0xed070a:0x90,_0x4db054:0x3b4,_0x506fc1:0x45e,_0x5e9c6b:0x424,_0xaed9f6:0x41c,_0xbcae74:0xdf,_0x29e88f:0x98,_0x273279:0x1a,_0x3547fa:0x112,_0x48fe29:0x11,_0x41d617:0xa8,_0x3a218e:0x4ea,_0x41e6b2:0x54f,_0x32459c:0x559,_0x3676bc:0x53a,_0xdaf559:0x5e0,_0x420178:0x425,_0x3663f1:0x4b3,_0x45188e:0x560,_0x1a187d:0x384,_0x1bb681:0x41e,_0x51ac1a:0x452,_0x30f263:0x56f,_0x2f1ee1:0x74,_0x59b159:0x73,_0x5ad93e:0x1aa,_0x36fa6d:0xfe,_0x2f3edb:0x4b9,_0x1db77d:0x56d},_0x5d8f05={_0xa24e2c:0x19e,_0xcb430b:0x2c4,_0x200ea4:0x9d},_0xe6d2fb={_0x4f90f2:0x547,_0x217060:0x16f},_0x393e93={_0x188d8b:0x50,_0x567762:0x667},_0x5467be={_0x3b0785:0xed,_0x26e0e1:0xee};if(_0x3b35e2[_0x505c3a(-0x88,0x33,-_0xc61449._0x49164a,-0xce)]?.[_0x505c3a(-0x9d,-0x9f,-0xb,-_0xc61449._0x66ddc7)]===WebSocket[_0x505c3a(-0x28,-_0xc61449._0x16390e,-_0xc61449._0x176dc1,_0xc61449._0x4e530f)])return _0x3b35e2[_0x505c3a(-_0xc61449._0x77c2c3,0x46,-_0xc61449._0x27d545,-0x10d)];function _0x23f6fb(_0x51d371,_0x12b4aa,_0x1c059e,_0x4ffd8a){return _0x4784b8(_0x51d371-_0x5467be._0x3b0785,_0x12b4aa-0x1db,_0x4ffd8a,_0x12b4aa- -_0x5467be._0x26e0e1);}if(_0x3b35e2[_0x23f6fb(-0x303,-_0xc61449._0x429f26,-_0xc61449._0x419c9d,-_0xc61449._0x2b2858)])return await _0x3b35e2[_0x23f6fb(-_0xc61449._0x3496a0,-0x297,-0x2ee,-_0xc61449._0x4081ed)];function _0x505c3a(_0x5f1598,_0x16557e,_0x15c759,_0x21d7e9){return _0x2e5e46(_0x5f1598-0x169,_0x15c759,_0x15c759-_0x393e93._0x188d8b,_0x5f1598- -_0x393e93._0x567762);}_0x3b35e2[_0x505c3a(-0x16e,-_0xc61449._0xd42722,-_0xc61449._0x441076,-0x106)]=((async()=>{const _0x598f9a={_0x56aa92:0x38b,_0x401444:0x41d,_0x578814:0x303,_0x479af9:0x2dc,_0x2bd241:0x1db},_0x526a37={_0x59b8b9:0x1ce,_0x516c57:0x24b,_0x422ba5:0x125};function _0xdb74f8(_0x18c4b9,_0x14fda1,_0x10b794,_0x239cb4){return _0x505c3a(_0x10b794-_0xe6d2fb._0x4f90f2,_0x14fda1-0x158,_0x18c4b9,_0x239cb4-_0xe6d2fb._0x217060);}const _0x577c21=await this[_0xdb74f8(_0x32fd65._0x1ca766,_0x32fd65._0x260d12,0x4de,_0x32fd65._0x3e84ce)]({'request':_0x36e1af[_0xdb74f8(_0x32fd65._0x2ec70f,0x45c,_0x32fd65._0x379602,_0x32fd65._0x29d894)],'body':_0x1460f9,'credential':_0x36e1af[_0x1d2a4d(-0x99,0xaf,_0x32fd65._0x7aebdb,_0x32fd65._0xed070a)],'session':_0x36e1af[_0xdb74f8(0x45b,0x40f,0x4c8,0x4e0)],'stream':!![]},{'accept':_0xdb74f8(_0x32fd65._0x4db054,_0x32fd65._0x506fc1,_0x32fd65._0x5e9c6b,_0x32fd65._0xaed9f6),'includeContentType':![]});_0x577c21[_0x1d2a4d(0xea,_0x32fd65._0xbcae74,_0x32fd65._0x29e88f,_0x32fd65._0x273279)](_0x1d2a4d(_0x32fd65._0x3547fa,-_0x32fd65._0x48fe29,_0x32fd65._0x41d617,0x135));const _0x178ff4=this[_0xdb74f8(_0x32fd65._0x3a218e,0x4b7,_0x32fd65._0x41e6b2,0x52a)]({'headers':Object['fromEntries'](_0x577c21[_0xdb74f8(0x525,_0x32fd65._0x32459c,_0x32fd65._0x3676bc,_0x32fd65._0xdaf559)]()),'url':(''+_0x36e1af[_0xdb74f8(0x486,0x362,_0x32fd65._0x420178,_0x32fd65._0x3663f1)]+this[_0xdb74f8(0x56c,0x4d8,_0x32fd65._0x45188e,0x5d5)])['replace'](/^http:/,_0xdb74f8(_0x32fd65._0x1a187d,_0x32fd65._0x1bb681,_0x32fd65._0x51ac1a,0x484))['replace'](/^https:/,_0x1d2a4d(0x1f9,0x1db,0x1bc,0x1a1))}),_0x38f772=()=>{function _0x5b7c6a(_0x4d3d80,_0x156a90,_0x197d1d,_0x5c4078){return _0xdb74f8(_0x197d1d,_0x156a90-_0x526a37._0x59b8b9,_0x156a90- -_0x526a37._0x516c57,_0x5c4078-_0x526a37._0x422ba5);}function _0x44f368(_0x4b7a9c,_0x166f06,_0x326ade,_0x2d460c){return _0xdb74f8(_0x4b7a9c,_0x166f06-0x65,_0x166f06- -0x136,_0x2d460c-0x192);}_0x3b35e2[_0x44f368(_0x598f9a._0x56aa92,0x389,_0x598f9a._0x401444,0x392)]===_0x178ff4&&(_0x3b35e2[_0x44f368(_0x598f9a._0x578814,0x389,_0x598f9a._0x479af9,0x44f)]=void 0x0,_0x3b35e2[_0x5b7c6a(0x1f3,_0x598f9a._0x2bd241,0x14d,0x17c)]=void 0x0);};_0x178ff4[_0xdb74f8(0x492,_0x32fd65._0x30f263,0x4b2,0x4fc)](_0x1d2a4d(0x25,_0x32fd65._0x2f1ee1,_0x32fd65._0x59b159,0x131),_0x38f772);function _0x1d2a4d(_0x59d675,_0x175b5a,_0x41ddc5,_0xc01afe){return _0x23f6fb(_0x59d675-_0x5d8f05._0xa24e2c,_0x41ddc5-_0x5d8f05._0xcb430b,_0x41ddc5-_0x5d8f05._0x200ea4,_0x59d675);}try{return throwIfAborted(_0x417a1e),_0x178ff4[_0x1d2a4d(_0x32fd65._0x5ad93e,0x130,_0x32fd65._0x36fa6d,0xe4)]!==WebSocket[_0xdb74f8(_0x32fd65._0x2f3edb,_0x32fd65._0x1db77d,0x51f,0x58f)]&&await waitForWebSocketOpen(_0x178ff4,_0x417a1e),throwIfAborted(_0x417a1e),_0x3b35e2[_0x1d2a4d(0x1b5,0xfe,0x113,0xe1)]=_0x178ff4,_0x178ff4;}catch(_0x29c60a){_0x38f772();_0x178ff4['readyState']===WebSocket['OPEN']&&_0x178ff4['close'](0x3e8,_0x1d2a4d(0x5,0x142,0xa3,-0x25));throw _0x29c60a;}})());try{return await _0x3b35e2[_0x23f6fb(-0x241,-0x297,-_0xc61449._0x115e63,-0x1ee)];}finally{_0x3b35e2[_0x505c3a(-0x16e,-_0xc61449._0x4cdd5b,-0x164,-_0xc61449._0x3c5dd0)]=void 0x0;}}async*[_0x2e5e46(0x4ad,0x616,0x47e,0x548)](_0x6598b6,_0x571f67){const _0x4b1288={_0x5061e3:0x466,_0x23b546:0x487,_0x14efdb:0x28a,_0x25f238:0x21a,_0x5a1d85:0x310,_0x1ccac2:0x54f,_0x40b518:0x520,_0x4d3917:0x55e,_0x334dac:0x4f4,_0x3bf96f:0x204,_0x59b209:0x2c5,_0x52fd2e:0x20b,_0x2fe591:0x502,_0x22d553:0x563,_0xf6340e:0x51b,_0x388d92:0x54b,_0x3fbcda:0x3b0,_0x4b1413:0x390,_0x3af8b2:0x303,_0x3e12d0:0x49d,_0x42ac75:0x50b,_0x37bdf6:0x5bc,_0x1eb4af:0x622,_0x108448:0x564,_0x30452c:0x521,_0x5a830d:0x217,_0x19ed56:0x26a,_0x217c29:0x250},_0x238cbf={_0x34041e:0x37,_0x4e11f1:0x1f1},_0x4aeceb={_0x124567:0x55,_0x32a68d:0xf4},_0x502284=this['applyModelDefaults'](_0x6598b6),_0x17ef01=this[_0x2019df(_0x4b1288._0x5061e3,_0x4b1288._0x23b546,0x3f3,0x4a5)](_0x502284[_0x397b9c(0x2b9,_0x4b1288._0x14efdb,_0x4b1288._0x25f238,0x296)]['sessionId']);function _0x2019df(_0x426889,_0x2cb4ed,_0x4c35c4,_0x34ed37){return _0x4784b8(_0x426889-_0x4aeceb._0x124567,_0x2cb4ed-_0x4aeceb._0x32a68d,_0x426889,_0x2cb4ed-0x5fc);}function _0x397b9c(_0x36c8e3,_0x24e2f3,_0x5b3ce9,_0x2221ce){return _0x2e5e46(_0x36c8e3-_0x238cbf._0x34041e,_0x2221ce,_0x5b3ce9-_0x238cbf._0x4e11f1,_0x36c8e3- -0x30d);}const _0x1ea27f=await this['acquireResponsesSocketLock'](_0x17ef01);try{const _0x22cebf=this['buildResponsesSocketEvent'](_0x502284,_0x17ef01);try{yield*this[_0x397b9c(0x34a,0x3af,_0x4b1288._0x5a1d85,0x3a3)](_0x502284[_0x2019df(_0x4b1288._0x1ccac2,_0x4b1288._0x40b518,_0x4b1288._0x4d3917,_0x4b1288._0x334dac)]['sessionId'],_0x17ef01,_0x502284,_0x22cebf[_0x397b9c(0x217,0x1c7,_0x4b1288._0x3bf96f,_0x4b1288._0x59b209)],_0x571f67?.[_0x397b9c(0x2a7,_0x4b1288._0x52fd2e,0x242,0x2ee)]);return;}catch(_0x30646e){if(!_0x22cebf[_0x2019df(_0x4b1288._0x2fe591,_0x4b1288._0x22d553,0x4d9,_0x4b1288._0xf6340e)]||!this[_0x2019df(0x607,_0x4b1288._0x388d92,0x52c,0x4bd)](_0x30646e)){this[_0x397b9c(0x2f2,_0x4b1288._0x3fbcda,0x37b,0x398)](_0x17ef01);throw _0x30646e;}}this[_0x397b9c(0x2f2,0x285,_0x4b1288._0x4b1413,_0x4b1288._0x3af8b2)](_0x17ef01);const _0x655c8b=this[_0x2019df(_0x4b1288._0x3e12d0,_0x4b1288._0x42ac75,_0x4b1288._0x37bdf6,0x5c0)](_0x502284,_0x17ef01,{'forceFullReplay':!![]});yield*this[_0x2019df(_0x4b1288._0x1eb4af,0x5b1,_0x4b1288._0x108448,0x55e)](_0x502284[_0x2019df(_0x4b1288._0x30452c,_0x4b1288._0x40b518,0x4fa,0x45a)]['sessionId'],_0x17ef01,_0x502284,_0x655c8b[_0x397b9c(_0x4b1288._0x5a830d,0x21b,_0x4b1288._0x19ed56,_0x4b1288._0x217c29)],_0x571f67?.['signal']);}finally{_0x1ea27f();}}async*['streamViaResponsesSocketAttempt'](_0x5f33c1,_0x501456,_0x12d5da,_0x5228be,_0x53f809){const _0x192ce2={_0x56ca11:0x447,_0x392738:0x4f5,_0x2fb347:0x3ae,_0x5d6294:0x3e7,_0x290bfe:0x58e,_0x203158:0xf8,_0x47bbfb:0x148,_0x49da0d:0x477,_0x37158e:0x443,_0x453c7c:0xc8,_0xfcc633:0x109,_0x1dd03d:0x6e,_0x14aadf:0x271,_0x5e350d:0x1e1,_0x2234b1:0x1e5,_0x32f250:0x242,_0xb3cc8b:0x29a},_0x5d929b={_0x2b9e06:0x1e9,_0x499edc:0x9f},_0x132214=await this['prepareResponsesSocketRequest'](_0x12d5da,_0x53f809),_0x5892c7=await this['getOrCreateResponsesSocket'](_0x5f33c1,_0x501456,_0x132214,_0x5228be,_0x53f809);function _0x4314e7(_0x4439d5,_0x40a706,_0x184a22,_0x135fcb){return _0x2e5e46(_0x4439d5-_0x5d929b._0x2b9e06,_0x40a706,_0x184a22-_0x5d929b._0x499edc,_0x184a22- -0xf4);}const _0x4bfd80=createOpenAiResponsesStreamParser(_0x12d5da);throwIfAborted(_0x53f809),_0x5892c7[_0x4314e7(0x3b5,0x44a,_0x192ce2._0x56ca11,_0x192ce2._0x392738)](JSON[_0x4314e7(0x442,_0x192ce2._0x2fb347,0x43e,_0x192ce2._0x5d6294)](_0x5228be));for await(const _0x4cc480 of iterateWebSocketMessages(_0x5892c7,_0x53f809)){const _0x4baa7f=_0x4bfd80['consumeWebSocketEvent']?.(_0x4cc480)??[];yield*_0x4baa7f;if(_0x4bfd80[_0x4314e7(_0x192ce2._0x290bfe,0x436,0x4d1,0x518)]?.())break;}function _0x327195(_0x673708,_0x556300,_0x19c7cb,_0x13c865){return _0x2e5e46(_0x673708-0x1a1,_0x13c865,_0x19c7cb-0x132,_0x19c7cb- -0x71e);}if(!_0x4bfd80[_0x327195(-_0x192ce2._0x203158,-0x1bf,-0x159,-_0x192ce2._0x47bbfb)]?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x3c0adf=_0x4bfd80[_0x4314e7(0x4d3,0x3f1,_0x192ce2._0x49da0d,_0x192ce2._0x37158e)](),_0x384e06=_0x3c0adf[_0x327195(-_0x192ce2._0x453c7c,-0x1d1,-_0x192ce2._0xfcc633,-_0x192ce2._0x1dd03d)]?.[_0x327195(-0x139,-_0x192ce2._0x14aadf,-_0x192ce2._0x5e350d,-0x176)]??_0x3c0adf['id'];_0x384e06&&(_0x501456[_0x327195(-_0x192ce2._0x2234b1,-_0x192ce2._0x32f250,-0x1d8,-_0x192ce2._0xb3cc8b)]=_0x384e06),yield{'type':_0x4314e7(0x46a,0x58c,0x51a,0x588),'response':_0x3c0adf};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x4784b8(-0x9e,0x2e,-0xeb,-0x76),_0x2e5e46(0x5b4,0x522,0x507,0x4f6),_0x4784b8(-0x240,-0x1f1,-0x204,-0x192),_0x2e5e46(0x536,0x636,0x663,0x605)];function isAnthropicSurface(_0x3aef2d){const _0x2584c3={_0x4dc8fd:0x689};function _0x1df07a(_0x1308b1,_0x231f87,_0x5ec9d2,_0x1effad){return _0x4784b8(_0x1308b1-0x1c7,_0x231f87-0xff,_0x231f87,_0x5ec9d2-_0x2584c3._0x4dc8fd);}return _0x3aef2d===_0x1df07a(0x59d,0x5e2,0x613,0x5cc);}function resolveDefaultBaseUrl(_0x1d2c2e){const _0x3fd0e0={_0x511a63:0x162,_0x1d5efa:0x1eb,_0x111954:0x10d},_0x27debb={_0x144c43:0xe8};function _0x5dbf43(_0x50f1a6,_0x418762,_0x4c24fa,_0x18d200){return _0x4784b8(_0x50f1a6-0xda,_0x418762-0x3d,_0x18d200,_0x50f1a6- -_0x27debb._0x144c43);}return isAnthropicSurface(_0x1d2c2e)?'https://api.anthropic.com':_0x5dbf43(-_0x3fd0e0._0x511a63,-_0x3fd0e0._0x1d5efa,-0x1f1,-_0x3fd0e0._0x111954);}var ChatModel=class{[_0x4784b8(-0x1c3,-0x6c,-0x1a5,-0x11d)];['maxTokens'];['surface'];[_0x4784b8(-0x126,-0x12c,-0x260,-0x197)];['openAiDelegate'];constructor(_0x396d6f={}){const _0x361cc6={_0x12302f:0x75,_0x42b2c3:0x111,_0x56e0be:0x3d,_0x4d6bb7:0x16,_0x3635bf:0x15a,_0x3fc269:0x183,_0x513d26:0x9c,_0x45f87b:0xc,_0x1da8a4:0x34,_0x5073ee:0x196,_0x25c1d7:0x122,_0x4df0cd:0x2fc,_0xaced4e:0x185,_0x19cb0b:0x9c,_0x15c582:0x123,_0x4c1250:0x21,_0x31f55f:0x15e,_0x12bed8:0x285,_0xf82a51:0x2d7,_0x365d9a:0x1b9,_0x9749ca:0x28f,_0x5ef543:0x11b,_0x29984b:0x63,_0x3b7da3:0x118,_0x421158:0x223,_0x8abcfe:0x1f2,_0x3cfa25:0x1ae,_0x3b2dd0:0x254,_0xa7109a:0x1f4,_0x2da85d:0x261,_0x226967:0xe4,_0x25f705:0x128,_0x2090a1:0x1a6,_0x14d55d:0xe8,_0x4dd07d:0x101,_0x398cf6:0x167,_0x46702a:0x177,_0x33d884:0x162,_0x386d5f:0x1b1,_0xbb4cf2:0x215,_0x18cd64:0x1bf,_0x135eaa:0x53,_0x896aeb:0x11a,_0x5d6c73:0x2f,_0x2b5e55:0xbd,_0x20c046:0x1b4,_0x54405d:0x158},_0x15f962={_0x132426:0x48,_0x1a7dbb:0x696},_0xe4fd2e={_0x6a5a41:0x19e};this[_0x2f4d82(-0x111,-0x9e,-_0x361cc6._0x12302f,-0x1cd)]=_0x396d6f[_0x2f4d82(-_0x361cc6._0x42b2c3,-0x1c5,-0x154,-0xca)]??_0x2f4d82(-_0x361cc6._0x56e0be,-0xfd,_0x361cc6._0x4d6bb7,-0xe2);function _0x35970c(_0x13aac8,_0x4a96ea,_0x55cfbd,_0x5c5720){return _0x4784b8(_0x13aac8-0x2c,_0x4a96ea-_0xe4fd2e._0x6a5a41,_0x4a96ea,_0x13aac8- -0xee);}this['maxTokens']=_0x396d6f[_0x2f4d82(-_0x361cc6._0x3635bf,-0x10e,-_0x361cc6._0x3fc269,-0x1f6)]??0x4000,this[_0x2f4d82(-_0x361cc6._0x513d26,_0x361cc6._0x45f87b,-_0x361cc6._0x1da8a4,-0xca)]=_0x396d6f[_0x35970c(-_0x361cc6._0x5073ee,-0x267,-0x14e,-_0x361cc6._0x25c1d7)]??_0x35970c(-0x29a,-0x35e,-0x334,-_0x361cc6._0x4df0cd);function _0x2f4d82(_0x3dc078,_0x2d1786,_0x5f214a,_0x2372b1){return _0x2e5e46(_0x3dc078-0x152,_0x2d1786,_0x5f214a-_0x15f962._0x132426,_0x3dc078- -_0x15f962._0x1a7dbb);}const _0x3ce253=trimTrailingSlashes(_0x396d6f[_0x2f4d82(-0x151,-0xac,-_0x361cc6._0xaced4e,-0x1e2)]??resolveDefaultBaseUrl(this['surface']));if(isAnthropicSurface(this[_0x2f4d82(-_0x361cc6._0x19cb0b,-_0x361cc6._0x15c582,_0x361cc6._0x4c1250,-_0x361cc6._0x31f55f)])){this[_0x35970c(-_0x361cc6._0x12bed8,-_0x361cc6._0xf82a51,-_0x361cc6._0x365d9a,-_0x361cc6._0x9749ca)]=new AnthropicModel({'apiKey':_0x396d6f[_0x2f4d82(-_0x361cc6._0x5ef543,-_0x361cc6._0x29984b,-_0x361cc6._0x3b7da3,-0x16e)],'authScheme':_0x396d6f['authScheme'],'baseUrl':_0x3ce253,'fetch':_0x396d6f[_0x35970c(-_0x361cc6._0x421158,-_0x361cc6._0x8abcfe,-0x2e4,-_0x361cc6._0x3cfa25)],'maxTokens':this[_0x35970c(-_0x361cc6._0x3b2dd0,-0x20b,-_0x361cc6._0xa7109a,-_0x361cc6._0x2da85d)],'model':this[_0x2f4d82(-_0x361cc6._0x42b2c3,-_0x361cc6._0x226967,-0x1d6,-0x13f)],'reasoning':_0x396d6f[_0x2f4d82(-_0x361cc6._0x25f705,-_0x361cc6._0x2090a1,-_0x361cc6._0x14d55d,-_0x361cc6._0x4dd07d)],'providerSessionResolver':_0x396d6f['providerSessionResolver'],'requestMutators':_0x396d6f['requestMutators']});return;}this[_0x2f4d82(-_0x361cc6._0x398cf6,-_0x361cc6._0x46702a,-_0x361cc6._0x33d884,-_0x361cc6._0x386d5f)]=new OpenAiModel({'apiKey':_0x396d6f[_0x35970c(-_0x361cc6._0xbb4cf2,-0x1d4,-0x1fa,-_0x361cc6._0x18cd64)],'baseUrl':_0x3ce253,'fetch':_0x396d6f['fetch'],'headerResolver':_0x396d6f[_0x2f4d82(-_0x361cc6._0x135eaa,-0x81,-_0x361cc6._0x896aeb,-_0x361cc6._0x5d6c73)],'maxTokens':this['maxTokens'],'model':this[_0x2f4d82(-0x111,-0x18a,-0x13d,-_0x361cc6._0x2b5e55)],'reasoning':_0x396d6f[_0x2f4d82(-_0x361cc6._0x25f705,-_0x361cc6._0x20c046,-0xfd,-0x8f)],'providerSessionResolver':_0x396d6f['providerSessionResolver'],'requestMutators':_0x396d6f[_0x2f4d82(-0x170,-0x21d,-_0x361cc6._0x54405d,-0x227)],'webSocketFactory':_0x396d6f['webSocketFactory']});}[_0x2e5e46(0x611,0x666,0x61a,0x5a5)](){const _0x576304={_0x23e5ff:0x245,_0x52ba6c:0x2f0,_0x5e94a8:0x34f,_0x3f3e59:0x281,_0x46dd0e:0x476,_0x4f10dd:0x3dd,_0x107e29:0x373,_0x4fc2dd:0x2f7,_0x944318:0x2b9,_0x54a5b8:0x308},_0x562a36={_0x4680b1:0x185},_0x4de0b2={_0x4f5703:0x46d};function _0x4c62a0(_0x470f6b,_0x39df73,_0x3237b3,_0x30295f){return _0x4784b8(_0x470f6b-0x144,_0x39df73-0x1bd,_0x39df73,_0x470f6b-_0x4de0b2._0x4f5703);}if(!this[_0x4c62a0(0x2d6,0x382,_0x576304._0x23e5ff,_0x576304._0x52ba6c)])throw new Error(_0x4c62a0(_0x576304._0x5e94a8,0x33b,0x371,_0x576304._0x3f3e59)+this[_0x95bef4(_0x576304._0x46dd0e,_0x576304._0x4f10dd,0x3f7,_0x576304._0x107e29)]);function _0x95bef4(_0x42d21b,_0x583e05,_0x5e1202,_0x577e10){return _0x2e5e46(_0x42d21b-0x9e,_0x577e10,_0x5e1202-_0x562a36._0x4680b1,_0x5e1202- -0x203);}return this[_0x95bef4(_0x576304._0x4fc2dd,_0x576304._0x944318,_0x576304._0x54a5b8,0x2af)];}[_0x4784b8(-0x13f,-0x1a9,-0xcd,-0x195)](){const _0x55e8b8={_0x164326:0x229,_0x1b0e6b:0x21c,_0x2ed356:0x350,_0x4ccecd:0x487,_0x2ea940:0x3e4,_0x25a722:0x400,_0x12da9d:0x3ff,_0x56a14d:0x1fa,_0x13e519:0x2b9,_0x338a02:0x21f,_0x25f81f:0x274},_0x4bbbc4={_0x3d3a8c:0x1e1,_0x740b9e:0x76,_0x506ce6:0x42e},_0x1046ed={_0x28d923:0x4e,_0x537841:0x42c};function _0x2780c8(_0x521d38,_0x59b018,_0xb4857c,_0x3cc32d){return _0x4784b8(_0x521d38-_0x1046ed._0x28d923,_0x59b018-0x19c,_0xb4857c,_0x59b018-_0x1046ed._0x537841);}if(!this[_0x2780c8(_0x55e8b8._0x164326,0x2b9,_0x55e8b8._0x1b0e6b,_0x55e8b8._0x2ed356)])throw new Error(_0x41acaa(_0x55e8b8._0x4ccecd,_0x55e8b8._0x2ea940,0x3d1,_0x55e8b8._0x25a722)+this[_0x41acaa(0x418,0x33c,0x386,_0x55e8b8._0x12da9d)]);function _0x41acaa(_0x379eb9,_0x13ff80,_0x3ac4f8,_0x53b524){return _0x4784b8(_0x379eb9-_0x4bbbc4._0x3d3a8c,_0x13ff80-_0x4bbbc4._0x740b9e,_0x379eb9,_0x3ac4f8-_0x4bbbc4._0x506ce6);}return this[_0x2780c8(_0x55e8b8._0x56a14d,_0x55e8b8._0x13e519,_0x55e8b8._0x338a02,_0x55e8b8._0x25f81f)];}[_0x2e5e46(0x675,0x58f,0x530,0x5a9)](_0xb16ba2,_0x17dde3){const _0x54f215={_0x149b18:0x3c,_0x5de384:0xcc,_0x5333c3:0x19,_0x21a56b:0x34,_0x26cf02:0x5d,_0x4497cf:0x23,_0x4acb6a:0xae,_0x52bc07:0x3f6,_0x31aa3c:0x519,_0x3ef82f:0x49e,_0xbf864a:0x4be,_0x4f04c3:0xb1},_0x47c7d8={_0x34f43e:0x64b},_0x38b79a={_0x19613f:0x27,_0x3da940:0x76};function _0x9473bf(_0x4038de,_0x28d611,_0x241543,_0x14e68e){return _0x2e5e46(_0x4038de-_0x38b79a._0x19613f,_0x4038de,_0x241543-_0x38b79a._0x3da940,_0x28d611- -0x5be);}function _0x1b560e(_0x1c78a1,_0x401205,_0x2575ef,_0x698218){return _0x4784b8(_0x1c78a1-0x9d,_0x401205-0x1d2,_0x401205,_0x1c78a1-_0x47c7d8._0x34f43e);}switch(this[_0x9473bf(0xfa,_0x54f215._0x149b18,-0x8e,-0x6)]){case _0x9473bf(0x11d,0x6e,0x4e,_0x54f215._0x5de384):return this[_0x9473bf(0x89,-_0x54f215._0x5333c3,-_0x54f215._0x21a56b,-0x91)]()[_0x9473bf(0xb0,-0x15,-0x72,_0x54f215._0x26cf02)](_0xb16ba2,_0x17dde3);case _0x9473bf(_0x54f215._0x4497cf,-_0x54f215._0x4acb6a,-0x4f,-0xa1):return this[_0x1b560e(0x4b6,_0x54f215._0x52bc07,_0x54f215._0x31aa3c,0x531)]()[_0x1b560e(_0x54f215._0x3ef82f,0x4ee,0x3df,_0x54f215._0xbf864a)](_0xb16ba2,_0x17dde3);case'openai-responses-ws':return this[_0x9473bf(-0x167,-_0x54f215._0x4f04c3,-0x59,-0x12b)]()[_0x1b560e(0x4c0,0x496,0x50b,0x500)](_0xb16ba2,_0x17dde3);default:return this['getOpenAiDelegate']()['chatComplete'](_0xb16ba2,_0x17dde3);}}['stream'](_0xffbada,_0x4f91d7){const _0x792600={_0x536983:0x45e,_0x51daf1:0x3e6,_0x10ad2e:0x38a,_0x537ebb:0x38f,_0x26351d:0x3b6,_0x2b01c6:0x2c4,_0x2499d6:0x39b,_0x3f5d54:0x391,_0xb687ab:0x2a6,_0x45ec00:0x2a2,_0x520b10:0x332,_0x276968:0x33e,_0x265263:0x46e,_0x3e81ab:0x3f1,_0x13b1cb:0x3f1,_0x2f00d1:0x28e,_0x2f17b2:0x33e,_0x221deb:0x3ca,_0x54a553:0x37f,_0x5b3672:0x29b,_0x239260:0x2f9,_0x20b1a4:0x4be},_0x306fd4={_0x210cf8:0xd3},_0x208ebb={_0x144ac5:0x141,_0x174323:0x43};function _0x50c934(_0x331043,_0x3891bb,_0x1e9a87,_0x48e32d){return _0x4784b8(_0x331043-_0x208ebb._0x144ac5,_0x3891bb-_0x208ebb._0x174323,_0x3891bb,_0x331043-0x405);}function _0xa9fdd8(_0x56bf3d,_0x3cf215,_0x24bdf0,_0x460c3d){return _0x4784b8(_0x56bf3d-0x178,_0x3cf215-_0x306fd4._0x210cf8,_0x3cf215,_0x24bdf0-0x48e);}switch(this[_0xa9fdd8(_0x792600._0x536983,0x45e,_0x792600._0x51daf1,_0x792600._0x10ad2e)]){case _0x50c934(_0x792600._0x537ebb,_0x792600._0x26351d,0x3c8,_0x792600._0x2b01c6):return this[_0xa9fdd8(0x40a,_0x792600._0x2499d6,_0x792600._0x3f5d54,0x34f)]()[_0x50c934(_0x792600._0xb687ab,_0x792600._0x45ec00,_0x792600._0x520b10,0x1d4)](_0xffbada,_0x4f91d7);case'openai-responses':return this['getOpenAiDelegate']()[_0xa9fdd8(0x387,_0x792600._0x276968,0x37f,0x40d)](_0xffbada,_0x4f91d7);case _0xa9fdd8(_0x792600._0x265263,0x330,_0x792600._0x3e81ab,0x478):return this[_0xa9fdd8(0x2b5,0x370,0x2f9,0x361)]()[_0xa9fdd8(_0x792600._0x13b1cb,_0x792600._0x2f00d1,_0x792600._0x2f17b2,_0x792600._0x221deb)](_0xffbada,_0x4f91d7);default:return this[_0xa9fdd8(_0x792600._0x54a553,_0x792600._0x5b3672,_0x792600._0x239260,0x2f8)]()[_0xa9fdd8(_0x792600._0x20b1a4,0x3ae,0x3fe,0x434)](_0xffbada,_0x4f91d7);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x2e5e46(0x531,0x5ff,0x57d,0x533)];[_0x4784b8(-0x1ab,-0x188,-0x94,-0x15d)];[_0x4784b8(-0xee,-0xdb,-0x9a,-0xab)];[_0x4784b8(-0xde,-0x20d,-0x16b,-0x1a8)];[_0x4784b8(-0x165,-0xc5,-0xf3,-0xe2)];constructor(_0x43c0bf){const _0x3e2645={_0x2b78c4:0x1ce,_0x9a62ef:0x1ce,_0x12e470:0x2ac,_0x18cf0a:0x1b5,_0xca86a4:0x215,_0x4d5e40:0x1dd,_0x127f55:0x1ad,_0x4a80f2:0x193,_0x434634:0x27a,_0x1d34f9:0x2db},_0x3dc825={_0x31cb44:0x1d7,_0x39cbdc:0xb1},_0x2927a6={_0x503cde:0x125,_0x9922a0:0x85};this[_0x267f5d(-0x2c6,-0x1e5,-_0x3e2645._0x2b78c4,-0x220)]=_0x43c0bf['accessToken'];function _0x703475(_0x3d42dd,_0x4470e2,_0x4a74f6,_0x35e332){return _0x2e5e46(_0x3d42dd-_0x2927a6._0x503cde,_0x4470e2,_0x4a74f6-_0x2927a6._0x9922a0,_0x4a74f6- -0x2e5);}this['baseUrl']=trimTrailingSlashes2(_0x43c0bf['baseUrl']);function _0x267f5d(_0x265547,_0x47957c,_0x3a8ff0,_0x4e029f){return _0x4784b8(_0x265547-_0x3dc825._0x31cb44,_0x47957c-0x8c,_0x265547,_0x4e029f- -_0x3dc825._0x39cbdc);}this['fetchImpl']=_0x43c0bf[_0x267f5d(-_0x3e2645._0x9a62ef,-_0x3e2645._0x12e470,-0x1f6,-0x1e6)],this[_0x703475(_0x3e2645._0x18cf0a,0x29b,_0x3e2645._0xca86a4,_0x3e2645._0x4d5e40)]=trimTrailingSlashes2(_0x43c0bf['githubApiUrl']),this[_0x267f5d(-_0x3e2645._0x127f55,-0xc6,-0x11b,-_0x3e2645._0x4a80f2)]=_0x43c0bf[_0x703475(0x35e,_0x3e2645._0x434634,_0x3e2645._0x1d34f9,0x37c)];}async[_0x4784b8(-0x34,0x45,-0x103,-0x78)](_0x3a18aa){const _0x2c2c13={_0x38c04f:0x169,_0x2c3839:0xf0,_0x5b4915:0x419,_0x53d6b5:0x4b4,_0x1f9cea:0x573,_0x3f85e4:0x4bd,_0x29bb09:0x12d,_0x3f759d:0x60,_0x5b9ca8:0x578,_0x3c5d8d:0x5db,_0x2379a2:0x582,_0x1a45ee:0x1c8,_0x4ac07d:0x21f,_0x5d1c96:0x598,_0x4251e1:0x423,_0x52e40c:0x4cf,_0x21dc8d:0x3fe,_0x3a70f9:0x5b3,_0x185e57:0x5b6,_0x2c4be9:0x172,_0x6f26e1:0xe0,_0x1cca0b:0x683,_0x5b5c45:0x286,_0x853ef7:0x10d,_0x20c2e0:0x117,_0x4b0b7b:0x2a,_0x30096d:0x11b,_0x275a5c:0x152,_0x442ed7:0x51e,_0x4fde7c:0x559,_0x2f3ae6:0x5c0,_0x2e6804:0x5be},_0xa2a633={_0x11c99f:0x6a9},_0x1105b9={_0x41d940:0xc6},_0xa91c8f=await this['fetchImpl'](this['githubApiUrl']+'/copilot_internal/v2/token',{'method':_0x136cee(-_0x2c2c13._0x38c04f,-0x9b,-0xd5,-_0x2c2c13._0x2c3839),'headers':new Headers({'accept':'application/json','authorization':_0x209b9c(_0x2c2c13._0x5b4915,0x400,_0x2c2c13._0x53d6b5,_0x2c2c13._0x1f9cea)+this[_0x209b9c(0x42d,0x46a,_0x2c2c13._0x3f85e4,0x442)],'editor-version':_0x136cee(-0x142,-_0x2c2c13._0x29bb09,-_0x2c2c13._0x3f759d,-0x102),'user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this[_0x209b9c(0x612,0x4eb,0x54a,0x557)]}),'signal':_0x3a18aa});function _0x209b9c(_0xf45fc1,_0x3824dd,_0x51450c,_0x1c0825){return _0x2e5e46(_0xf45fc1-0xea,_0x1c0825,_0x51450c-_0x1105b9._0x41d940,_0x51450c- -0x76);}if(!_0xa91c8f['ok'])return{'credential':{'kind':_0x209b9c(_0x2c2c13._0x5b9ca8,0x566,_0x2c2c13._0x3c5d8d,_0x2c2c13._0x2379a2),'value':this[_0x136cee(-0x1a3,-_0x2c2c13._0x1a45ee,-_0x2c2c13._0x4ac07d,-0x176)]},'endpoints':{'api':this[_0x209b9c(_0x2c2c13._0x5d1c96,_0x2c2c13._0x4251e1,_0x2c2c13._0x52e40c,_0x2c2c13._0x21dc8d)]}};const _0xd6bb98=await _0xa91c8f['json']();function _0x136cee(_0x58ea4d,_0x7a5f,_0x364afd,_0x31c585){return _0x2e5e46(_0x58ea4d-0x190,_0x364afd,_0x364afd-0x68,_0x31c585- -_0xa2a633._0x11c99f);}return{'credential':{'kind':'session-token','value':_0xd6bb98[_0x209b9c(0x4ee,0x5b3,_0x2c2c13._0x3a70f9,_0x2c2c13._0x185e57)]??this[_0x136cee(-_0x2c2c13._0x2c4be9,-0x1e0,-_0x2c2c13._0x6f26e1,-0x176)]},'endpoints':{'api':_0xd6bb98[_0x209b9c(0x5ea,0x60e,0x5c0,_0x2c2c13._0x1cca0b)]?.[_0x136cee(-0x136,-0x1c1,-_0x2c2c13._0x5b5c45,-0x1b5)]??this['baseUrl'],'originTracker':_0xd6bb98[_0x136cee(-_0x2c2c13._0x853ef7,-_0x2c2c13._0x20c2e0,-_0x2c2c13._0x4b0b7b,-0x73)]?.['origin-tracker'],'proxy':_0xd6bb98['endpoints']?.[_0x136cee(-_0x2c2c13._0x30096d,-_0x2c2c13._0x275a5c,-0x109,-0x138)],'telemetry':_0xd6bb98[_0x209b9c(_0x2c2c13._0x442ed7,_0x2c2c13._0x4fde7c,_0x2c2c13._0x2f3ae6,0x673)]?.[_0x209b9c(0x518,_0x2c2c13._0x2e6804,0x564,0x59c)]}};}};function trimTrailingSlashes2(_0x25ec84){const _0x41b27e={_0x262f55:0x1d,_0x481c7b:0x83,_0xcaa513:0x33},_0x3106e={_0x517469:0x1ab,_0x394ba3:0x5dd};function _0x33363e(_0x371ed0,_0x5cbfbe,_0x4cbe42,_0x4edd75){return _0x2e5e46(_0x371ed0-0x33,_0x371ed0,_0x4cbe42-_0x3106e._0x517469,_0x5cbfbe- -_0x3106e._0x394ba3);}return _0x25ec84[_0x33363e(_0x41b27e._0x262f55,_0x41b27e._0x481c7b,0x12c,_0x41b27e._0xcaa513)](/\/+$/,'');}function createModelInfo(_0x333379){const _0x2d6a18={_0xa4065c:0x239,_0x53bd89:0x24d,_0x396dea:0x2c1,_0x497377:0x1e0,_0x2e1d74:0x21c,_0x423a50:0x186,_0x452f23:0x222,_0x3228d7:0x167,_0x1fe2cc:0x1e0,_0x5142d7:0x1b3,_0x41aca6:0x3cf,_0x372c17:0x339,_0x4ed98f:0x272};function _0x28f01d(_0x42ec8f,_0x557f3c,_0x4ce828,_0x5b0c2e){return _0x2e5e46(_0x42ec8f-0xee,_0x4ce828,_0x4ce828-0x4f,_0x557f3c- -0x739);}const _0x29486f=_0x333379[_0x28f01d(-0x2fa,-_0x2d6a18._0xa4065c,-0x284,-0x1c9)]??_0x333379[_0x253597(_0x2d6a18._0x53bd89,0x31b,0x28e,_0x2d6a18._0x396dea)],_0xfb56cd=_0x333379[_0x28f01d(-0x1e1,-_0x2d6a18._0x497377,-_0x2d6a18._0x2e1d74,-0x1ef)]?.['limits']?.[_0x253597(_0x2d6a18._0x423a50,_0x2d6a18._0x452f23,_0x2d6a18._0x3228d7,0x17f)];function _0x253597(_0x486174,_0xf9136e,_0x43100d,_0x3909f1){return _0x2e5e46(_0x486174-0x30,_0x43100d,_0x43100d-0x17d,_0xf9136e- -0x33d);}const _0xa3a466=_0x333379[_0x28f01d(-0x221,-_0x2d6a18._0x1fe2cc,-0x2a5,-_0x2d6a18._0x5142d7)]?.[_0x253597(_0x2d6a18._0x41aca6,_0x2d6a18._0x372c17,_0x2d6a18._0x4ed98f,0x324)]?.[_0x253597(0x266,0x294,0x28f,0x26f)],_0x39b82e=_0xfb56cd!==void 0x0||_0xa3a466!==void 0x0?{..._0xfb56cd!==void 0x0?{'contextWindow':_0xfb56cd}:{},..._0xa3a466!==void 0x0?{'maxOutput':_0xa3a466}:{}}:void 0x0;return{'id':_0x333379['id'],'name':_0x333379['name']??_0x333379['id'],..._0x39b82e?{'limits':_0x39b82e}:{},..._0x29486f?{'supportedEndpoints':_0x29486f}:{}};}function deduplicateModels(_0x267545){const _0x2561d5={_0x21ac79:0x33f,_0x2dd1b5:0x254,_0x2f7002:0x3f8,_0xb79029:0x4e0,_0x95564b:0x157,_0x2f8bf2:0x252,_0x1c623d:0x19c,_0x2bf6a2:0x166},_0x2727f4={_0x3b3162:0x31c},_0x502f6d={_0x2b3f96:0x1f1,_0x268f5c:0x65a};function _0xb053c(_0x26a472,_0x19410b,_0x1cb8b4,_0x14f488){return _0x4784b8(_0x26a472-0x13e,_0x19410b-_0x502f6d._0x2b3f96,_0x26a472,_0x14f488-_0x502f6d._0x268f5c);}const _0x5dff72=new Map();for(const _0x3c9450 of _0x267545){!_0x5dff72[_0x24a708(_0x2561d5._0x21ac79,_0x2561d5._0x2dd1b5,0x309,0x2f8)](_0x3c9450['id'])&&_0x5dff72[_0xb053c(_0x2561d5._0x2f7002,_0x2561d5._0xb79029,0x55e,0x4ba)](_0x3c9450['id'],_0x3c9450);}function _0x24a708(_0x465ba3,_0x45249d,_0x2901ad,_0x4d2779){return _0x4784b8(_0x465ba3-0x1c3,_0x45249d-0xb6,_0x2901ad,_0x4d2779-_0x2727f4._0x3b3162);}return Array[_0x24a708(0x160,_0x2561d5._0x95564b,_0x2561d5._0x2f8bf2,_0x2561d5._0x1c623d)](_0x5dff72[_0x24a708(0x11a,0x160,0x161,_0x2561d5._0x2bf6a2)]());}function hasUserPromptContent(_0x48f273){const _0x3724dd={_0x5c37ea:0x48,_0x565140:0x17,_0x2e3336:0x13,_0xcdb7c7:0xc2,_0x441e1f:0xe,_0x5b9bc5:0x4f7,_0x408c38:0x4d1,_0x3c644b:0x4bc,_0x15df01:0x4ec,_0x29243b:0x89,_0x172b4f:0x11a,_0x44b3f4:0xc1},_0x3d5390={_0x29e486:0x53,_0x44d0cd:0xed,_0x2a785e:0x1b0,_0x2f6d37:0x45,_0x34eb8b:0x5bb,_0x5a6df3:0x69f,_0x28b4ef:0x5f9,_0x1e6050:0x69d,_0x34298d:0x5a2,_0x15c839:0x552,_0x198d90:0x187,_0x3a0649:0x205,_0x2f6d53:0x10e,_0x429a66:0x55c,_0x4e2f23:0x538,_0x30b099:0x22f,_0x1138fc:0x1d8,_0x36ecd4:0x274,_0x13f817:0x583,_0x29e9f9:0x5d4},_0x2bc55d={_0x53cde0:0x15b},_0x1290ae={_0x35b9b:0xb4,_0x2f9507:0x20,_0x47905f:0x57f};if(typeof _0x48f273===_0x6165e0(-0x2a,_0x3724dd._0x5c37ea,-_0x3724dd._0x565140,-_0x3724dd._0x2e3336))return _0x48f273['trim']()[_0x6165e0(_0x3724dd._0xcdb7c7,0xbe,-_0x3724dd._0x441e1f,-0x66)]>0x0;if(!Array[_0x29a27c(_0x3724dd._0x5b9bc5,_0x3724dd._0x408c38,_0x3724dd._0x3c644b,_0x3724dd._0x15df01)](_0x48f273))return![];function _0x29a27c(_0x425e35,_0xa304c1,_0x573fa3,_0x357f45){return _0x4784b8(_0x425e35-_0x1290ae._0x35b9b,_0xa304c1-_0x1290ae._0x2f9507,_0xa304c1,_0x425e35-_0x1290ae._0x47905f);}function _0x6165e0(_0x9aa6d7,_0x276e83,_0x1c823e,_0x3f9298){return _0x4784b8(_0x9aa6d7-0x16a,_0x276e83-0x3c,_0x9aa6d7,_0x1c823e-0x59);}return _0x48f273[_0x6165e0(-_0x3724dd._0x29243b,-_0x3724dd._0x172b4f,-0x135,-_0x3724dd._0x44b3f4)](_0xeef976=>{const _0x2c1bf6={_0x448868:0xb7,_0x2b6457:0x63c};if(!_0xeef976||typeof _0xeef976!==_0x165575(_0x3d5390._0x29e486,_0x3d5390._0x44d0cd,_0x3d5390._0x2a785e,_0x3d5390._0x2f6d37))return![];function _0x165575(_0x22bc8d,_0x56a4ba,_0x43879a,_0x4f691a){return _0x6165e0(_0x22bc8d,_0x56a4ba-_0x2bc55d._0x53cde0,_0x56a4ba-0x1ef,_0x4f691a-0x110);}function _0x1c3bd7(_0x244a27,_0x218784,_0x11b1d4,_0x383c9b){return _0x6165e0(_0x383c9b,_0x218784-_0x2c1bf6._0x448868,_0x218784-_0x2c1bf6._0x2b6457,_0x383c9b-0x2b);}const _0x56baf1=_0xeef976;return(_0x56baf1[_0x1c3bd7(_0x3d5390._0x34eb8b,0x576,0x5e5,0x598)]===_0x1c3bd7(_0x3d5390._0x5a6df3,_0x3d5390._0x28b4ef,_0x3d5390._0x1e6050,0x633)||_0x56baf1[_0x1c3bd7(_0x3d5390._0x34298d,0x576,0x5bc,_0x3d5390._0x15c839)]===_0x165575(0xb9,_0x3d5390._0x198d90,_0x3d5390._0x3a0649,_0x3d5390._0x2f6d53))&&typeof _0x56baf1[_0x1c3bd7(_0x3d5390._0x429a66,0x5d4,_0x3d5390._0x4e2f23,0x5bf)]===_0x165575(_0x3d5390._0x30b099,_0x3d5390._0x1138fc,0x21f,_0x3d5390._0x36ecd4)&&_0x56baf1[_0x1c3bd7(_0x3d5390._0x13f817,_0x3d5390._0x29e9f9,0x5b4,0x679)]['trim']()['length']>0x0;});}function _isUserPromptEntry(_0x29b44d){const _0x179396={_0x17df38:0x159,_0x5d8d3d:0x10c,_0x2de821:0x1b9,_0x2bf3b9:0x2ba,_0x4c3b68:0x207,_0x42c3b3:0x2d4,_0x1c8a23:0x1b4,_0x36b423:0x219,_0x41fe1d:0x15e,_0x4488b8:0x190,_0x53f228:0x102,_0x5dad88:0x1c4,_0x9272d3:0x152,_0x105ba7:0x220},_0x5a8daf={_0x13180c:0x126,_0x371512:0x171,_0x5b4dc1:0x343},_0xc82f13={_0x3580d0:0x199};if(!_0x29b44d||typeof _0x29b44d!==_0x136c0e(0x20b,_0x179396._0x17df38,_0x179396._0x5d8d3d,_0x179396._0x2de821))return![];function _0x136c0e(_0x1bfb31,_0x5b2ed5,_0x3b03c7,_0x7baf66){return _0x2e5e46(_0x1bfb31-_0xc82f13._0x3580d0,_0x5b2ed5,_0x3b03c7-0x4,_0x7baf66- -0x38e);}function _0x34a8a8(_0x5929ca,_0x11c7bb,_0xcf7653,_0x3d0e19){return _0x4784b8(_0x5929ca-_0x5a8daf._0x13180c,_0x11c7bb-_0x5a8daf._0x371512,_0x5929ca,_0x11c7bb-_0x5a8daf._0x5b4dc1);}const _0x46828d=_0x29b44d;if(_0x46828d[_0x34a8a8(_0x179396._0x2bf3b9,_0x179396._0x4c3b68,_0x179396._0x42c3b3,0x23a)]!=='user')return![];if(_0x46828d[_0x34a8a8(0x182,0x224,_0x179396._0x1c8a23,0x270)]!==void 0x0&&_0x46828d[_0x34a8a8(_0x179396._0x36b423,0x224,_0x179396._0x41fe1d,0x276)]!==_0x34a8a8(0x131,_0x179396._0x4488b8,_0x179396._0x53f228,_0x179396._0x5dad88))return![];return hasUserPromptContent(_0x46828d[_0x136c0e(0x2d9,0x154,_0x179396._0x9272d3,_0x179396._0x105ba7)]);}function determineInitiator(_0x2be293){const _0x454892={_0x27c533:0x469,_0x19eb7e:0xec,_0x1097f8:0x12,_0x1fc955:0x42,_0x585372:0xd8,_0x26ec0e:0x42,_0x3a6df9:0x48b,_0x18fdb7:0x13d,_0x1ccb60:0x613,_0x3ac3ca:0x550,_0x2005a1:0x508,_0x17661d:0x467,_0x4d3d75:0x4cf},_0x40f5cd={_0x3d6834:0x7d};if(!_0x2be293||typeof _0x2be293!=='object')return _0x5795ac(_0x454892._0x27c533,0x3da,0x4e3,0x44f);const _0x5a6650=_0x5815b8(_0x454892._0x19eb7e,-_0x454892._0x1097f8,-0x54,_0x454892._0x1fc955)in _0x2be293?_0x2be293[_0x5815b8(0xec,_0x454892._0x585372,0x39,_0x454892._0x26ec0e)]:_0x5795ac(_0x454892._0x3a6df9,0x50f,0x502,0x3fc)in _0x2be293?_0x2be293[_0x5815b8(-0xb6,-_0x454892._0x18fdb7,-0x198,-0xca)]:void 0x0;if(!Array[_0x5795ac(0x58b,0x5cb,_0x454892._0x1ccb60,_0x454892._0x3ac3ca)](_0x5a6650)||_0x5a6650['length']===0x0)return _0x5795ac(0x469,_0x454892._0x2005a1,_0x454892._0x17661d,_0x454892._0x4d3d75);function _0x5795ac(_0x10ec2d,_0xe1e617,_0x3f1a15,_0x1ef102){return _0x4784b8(_0x10ec2d-_0x40f5cd._0x3d6834,_0xe1e617-0xcf,_0x1ef102,_0x10ec2d-0x613);}function _0x5815b8(_0x26363e,_0xd4988f,_0x5c7cc3,_0x2bc47f){return _0x4784b8(_0x26363e-0xf7,_0xd4988f-0x1e6,_0x5c7cc3,_0x2bc47f-0xbe);}return _isUserPromptEntry(_0x5a6650[_0x5a6650['length']-0x1])?'user':'agent';}function isUnsupportedApiForModel(_0x45b720){const _0xc93185={_0xe94d0c:0x592},_0x2e80d7={_0xd87969:0x1b1,_0xbf19b7:0xf8,_0x3d13a0:0x9};function _0x74aff2(_0x2c385b,_0x21376d,_0x20d1f4,_0x452b75){return _0x2e5e46(_0x2c385b-_0x2e80d7._0xd87969,_0x452b75,_0x20d1f4-_0x2e80d7._0xbf19b7,_0x2c385b- -_0x2e80d7._0x3d13a0);}return _0x45b720['includes'](_0x74aff2(0x5f3,0x62a,0x614,_0xc93185._0xe94d0c));}function createResponseError(_0x26fbb8,_0x288af5){const _0x349cfb={_0x4d6f0f:0x152,_0x343c10:0x218,_0x36ae3:0x1e6,_0x25ed0c:0xe4,_0xc03c84:0x18a,_0x3fcba7:0x38},_0x34f3a3={_0x18f03b:0x128,_0x3bc948:0x94},_0x37e830={_0x501606:0x51,_0x1877f9:0x307};function _0x5cc00d(_0x208ca0,_0x2eb1a5,_0x528ea9,_0x2baac9){return _0x4784b8(_0x208ca0-0x146,_0x2eb1a5-_0x37e830._0x501606,_0x208ca0,_0x2baac9-_0x37e830._0x1877f9);}if(_0x26fbb8===0x191||_0x26fbb8===0x193)return new Error(_0xebd768(-0xeb,-0xfa,-_0x349cfb._0x4d6f0f,-0x1b5));if(_0x26fbb8===0x198||_0x26fbb8===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');if(_0x26fbb8===0x190)return new Error(_0x5cc00d(0x18f,0x176,_0x349cfb._0x343c10,_0x349cfb._0x36ae3)+_0x288af5);function _0xebd768(_0x76445c,_0x43a276,_0x4c6e53,_0x3a7b12){return _0x4784b8(_0x76445c-_0x34f3a3._0x18f03b,_0x43a276-0xf7,_0x4c6e53,_0x76445c- -_0x34f3a3._0x3bc948);}return new Error(_0x288af5||_0xebd768(-_0x349cfb._0x25ed0c,-_0x349cfb._0xc03c84,-0xec,-_0x349cfb._0x3fcba7)+_0x26fbb8);}function _0x2e5e46(_0x23396c,_0x4cc2e2,_0x29bcf0,_0x167157){return _0x1d50(_0x167157-0x3c6,_0x4cc2e2);}var GitHubModel=class extends OpenAiModel{[_0x2e5e46(0x5b2,0x4cc,0x45f,0x50b)];[_0x4784b8(-0x137,-0xdb,-0x1ec,-0x14d)]=new Map();[_0x4784b8(-0x3b,-0x14,0x1f,-0xa8)];constructor(_0x1c8475={}){const _0x390bd1={_0x5da8b3:0x60c,_0x3d7bf2:0x5df,_0x5b42ae:0x496,_0x423e6a:0x4fe,_0x1a5b97:0x50c,_0x3c5843:0x205,_0xbc61e8:0x448,_0x125ddb:0x1c8,_0x306f25:0x288,_0x5edbe8:0x445,_0x11433e:0x593,_0xe1aa60:0x511,_0x4df056:0x499,_0x4298b5:0x1bb,_0x47d580:0x1bf,_0x17dda7:0x1ca,_0x2a3a5b:0x22e,_0x47b003:0x166,_0x1c27b0:0x1cf,_0x3a4735:0x558,_0x56cff2:0x677,_0x19d2c7:0x643,_0x1177bc:0x670,_0x3db5c6:0x1f1,_0x5967cf:0x17b,_0x495c38:0x179,_0x1710c2:0x1e2,_0x53eb69:0x1b6,_0x49e624:0x461,_0x3e6519:0x187,_0x2ba7bb:0x253,_0x35da65:0x286,_0x16e02b:0x2d3,_0x36e256:0x536,_0xb01d56:0x56b,_0x880181:0x491,_0x40dbe2:0x51a,_0x5b2096:0x512,_0x537917:0x4f8,_0x431330:0x48f,_0x331c5c:0x54c,_0x4720e5:0x535,_0x54d5f0:0x524,_0x2f45a7:0x203,_0x2e038d:0x19c,_0x251282:0x1bb},_0x4ccb54={_0xe37f7b:0x8b},_0x3fbdf7={_0x532b60:0x12a,_0x2edad5:0x141},_0x3d727c=trimTrailingSlashes2(_0x1c8475['baseUrl']??_0x24f57f(_0x390bd1._0x5da8b3,0x59d,_0x390bd1._0x3d7bf2,0x572)),_0x140ad4=_0x1c8475[_0x24f57f(_0x390bd1._0x5b42ae,0x43e,_0x390bd1._0x423e6a,_0x390bd1._0x1a5b97)]??globalThis[_0x326e1f(0x202,_0x390bd1._0x3c5843,0x2bb,0x25a)],_0x2cf049=_0x1c8475[_0x24f57f(0x46a,_0x390bd1._0xbc61e8,0x58c,0x4cb)]??(_0x1c8475[_0x326e1f(_0x390bd1._0x125ddb,_0x390bd1._0x306f25,0x1b1,0x158)]?new GitHubAccessTokenResolver({'accessToken':_0x1c8475[_0x24f57f(_0x390bd1._0x5edbe8,0x4b8,_0x390bd1._0x11433e,0x4d2)],'baseUrl':_0x3d727c,'fetch':_0x140ad4,'githubApiUrl':_0x1c8475[_0x24f57f(0x557,0x45a,_0x390bd1._0xe1aa60,_0x390bd1._0x4df056)]??_0x326e1f(0x288,0x1f3,0x2ad,0x211),'tokenExchangeApiVersion':_0x1c8475[_0x326e1f(0x255,_0x390bd1._0x4298b5,_0x390bd1._0x47d580,_0x390bd1._0x17dda7)]??_0x326e1f(_0x390bd1._0x2a3a5b,_0x390bd1._0x47b003,0x1db,_0x390bd1._0x1c27b0)}):void 0x0),_0x19c14b=_0x1c8475[_0x24f57f(_0x390bd1._0x3a4735,_0x390bd1._0x56cff2,0x608,0x5dc)]??_0x24f57f(_0x390bd1._0x19d2c7,_0x390bd1._0x1177bc,0x5cb,0x5a6),_0x1f6000=_0x1c8475['editorPluginVersion']??_0x326e1f(_0x390bd1._0x3db5c6,_0x390bd1._0x5967cf,_0x390bd1._0x495c38,0x180),_0x50484a=({body:_0x33f8ed})=>{return{'editor-plugin-version':_0x1f6000,'editor-version':_0x19c14b,'x-initiator':determineInitiator(_0x33f8ed),'x-request-id':randomUUID()};};function _0x326e1f(_0x5df9bd,_0x403326,_0x202de3,_0x339592){return _0x4784b8(_0x5df9bd-_0x3fbdf7._0x532b60,_0x403326-_0x3fbdf7._0x2edad5,_0x339592,_0x5df9bd-0x337);}const _0x386775={'apiKey':_0x1c8475[_0x326e1f(0x210,_0x390bd1._0x1710c2,0x22b,_0x390bd1._0x53eb69)],'baseUrl':_0x3d727c,'fetch':_0x140ad4,'maxTokens':_0x1c8475['maxTokens'],'model':_0x1c8475[_0x24f57f(0x478,_0x390bd1._0x49e624,0x5e1,0x524)],'reasoning':_0x1c8475[_0x326e1f(0x203,0x155,_0x390bd1._0x3e6519,_0x390bd1._0x2ba7bb)],'providerSessionResolver':_0x2cf049,'requestMutators':_0x1c8475[_0x326e1f(_0x390bd1._0x4298b5,0x172,0x24e,0x17d)],'headerResolver':_0x50484a};super(_0x386775);function _0x24f57f(_0x31406c,_0x14a00b,_0x4246a3,_0x140748){return _0x4784b8(_0x31406c-_0x4ccb54._0xe37f7b,_0x14a00b-0x11f,_0x14a00b,_0x140748-0x641);}this['surface']=_0x1c8475[_0x326e1f(0x28f,_0x390bd1._0x35da65,0x220,_0x390bd1._0x16e02b)]??'auto',this[_0x24f57f(_0x390bd1._0x36e256,0x4f3,_0x390bd1._0xb01d56,0x4aa)]=new AnthropicModel({'apiKey':_0x1c8475[_0x24f57f(_0x390bd1._0x880181,0x5dd,0x5da,_0x390bd1._0x40dbe2)],'authScheme':_0x24f57f(_0x390bd1._0x5b2096,_0x390bd1._0x537917,_0x390bd1._0x431330,_0x390bd1._0x331c5c),'baseUrl':_0x3d727c,'fetch':_0x140ad4,'headerResolver':_0x50484a,'maxTokens':_0x1c8475['maxTokens'],'model':_0x1c8475[_0x24f57f(0x5a4,_0x390bd1._0x4720e5,0x543,_0x390bd1._0x54d5f0)],'reasoning':_0x1c8475[_0x326e1f(_0x390bd1._0x2f45a7,0x157,_0x390bd1._0x2e038d,0x230)],'providerSessionResolver':_0x2cf049,'requestMutators':_0x1c8475[_0x326e1f(_0x390bd1._0x251282,0x260,0x15f,0x117)]});}[_0x2e5e46(0x563,0x4aa,0x4cc,0x56a)](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}[_0x2e5e46(0x574,0x5e2,0x53b,0x53a)](_0x5d749f){const _0x592e0e={_0xa3446d:0x1a6,_0x31bf36:0x1e5,_0x2ef514:0x1ad,_0x631ce6:0x1a1,_0x1f3b75:0x144,_0x2435e0:0x2d5,_0x46832b:0x2d2,_0x1fb666:0x36c,_0x26c58a:0x5f,_0x2103f6:0xd5,_0x43dd3a:0xbf,_0x346092:0x166,_0x179825:0x1f1,_0x7cac32:0x20f,_0x245868:0x235,_0x2e1290:0x1c3,_0x5f5cac:0x1dd},_0x5cc8c4={_0x293a70:0x38},_0x41516c={_0x1e8a5c:0xd3},_0x311cf6=this[_0x1dd580(-_0x592e0e._0xa3446d,-0x221,-_0x592e0e._0x31bf36,-0x285)][_0x1dd580(-_0x592e0e._0x2ef514,-_0x592e0e._0x631ce6,-0x138,-_0x592e0e._0x1f3b75)](_0x5d749f);if(!_0x311cf6)return![];function _0x1dd580(_0x1ac0c2,_0x187272,_0x13feb8,_0x123b9a){return _0x4784b8(_0x1ac0c2-0x150,_0x187272-_0x41516c._0x1e8a5c,_0x123b9a,_0x13feb8- -0x98);}function _0x235176(_0x4cdc7e,_0x369c50,_0x86d10e,_0x28e1f1){return _0x4784b8(_0x4cdc7e-_0x5cc8c4._0x293a70,_0x369c50-0x19a,_0x369c50,_0x28e1f1-0x3e1);}return!_0x311cf6[_0x235176(_0x592e0e._0x2435e0,_0x592e0e._0x46832b,_0x592e0e._0x1fb666,0x2bf)](_0x1dd580(-0x2a,-_0x592e0e._0x26c58a,-_0x592e0e._0x2103f6,-_0x592e0e._0x43dd3a))&&_0x311cf6[_0x1dd580(-_0x592e0e._0x346092,-_0x592e0e._0x179825,-0x1ba,-_0x592e0e._0x7cac32)](_0x1dd580(-0x184,-_0x592e0e._0x245868,-_0x592e0e._0x2e1290,-_0x592e0e._0x5f5cac));}[_0x4784b8(-0xe9,-0x142,-0x9e,-0x87)](_0x4351c9){const _0x1fffcf={_0x2ef642:0xd0,_0x27a7da:0x1b,_0x4e6b76:0x13a,_0x2a79ec:0x27f,_0xc5467c:0x3a3,_0x56d23a:0x3b1,_0x22f998:0x57,_0x209af5:0x5c,_0x3e142c:0x53,_0x426909:0x1f,_0x2516fb:0x15},_0x434b6b={_0x3dd8ff:0x8a},_0x56250f={_0x20b1e2:0x71,_0xc848ea:0x28c},_0x16b484=this['modelEndpointCache'][_0x4b47a3(_0x1fffcf._0x2ef642,_0x1fffcf._0x27a7da,_0x1fffcf._0x4e6b76,0x8d)](_0x4351c9[_0x5f3707(0x26f,_0x1fffcf._0x2a79ec,_0x1fffcf._0xc5467c,0x2f9)]);if(!_0x16b484)return![];function _0x5f3707(_0x3c75ae,_0x2bfe32,_0x2e3116,_0x4e7b93){return _0x2e5e46(_0x3c75ae-0x18c,_0x2e3116,_0x2e3116-_0x56250f._0x20b1e2,_0x4e7b93- -_0x56250f._0xc848ea);}if(resolveOpenAiReasoningConfig(_0x4351c9['reasoning']))return _0x16b484['includes'](_0x5f3707(0x2d8,0x393,_0x1fffcf._0x56d23a,0x2eb));function _0x4b47a3(_0x1fb39c,_0x1e7966,_0x489cc8,_0x623c7a){return _0x2e5e46(_0x1fb39c-0x1a4,_0x1e7966,_0x489cc8-_0x434b6b._0x3dd8ff,_0x1fb39c- -0x532);}return this[_0x4b47a3(0x8,_0x1fffcf._0x22f998,0xbc,_0x1fffcf._0x209af5)](_0x4351c9[_0x4b47a3(_0x1fffcf._0x3e142c,_0x1fffcf._0x426909,0x11,_0x1fffcf._0x2516fb)]);}[_0x2e5e46(0x728,0x611,0x6cb,0x68d)](_0x39a251){const _0x5a6652={_0x4c74c9:0x5b3,_0x5aebbd:0x188,_0x25cd49:0x173},_0x4da387={_0x30d485:0x15c},_0x531ed0={_0x5cca3b:0xde};function _0x17bfdf(_0x145a7f,_0x21f452,_0x57b024,_0x443b68){return _0x2e5e46(_0x145a7f-_0x531ed0._0x5cca3b,_0x21f452,_0x57b024-0x1a7,_0x57b024- -0x2d);}function _0xeb2c8a(_0xaaa117,_0x3ab65c,_0x43025d,_0x6acfc0){return _0x4784b8(_0xaaa117-_0x4da387._0x30d485,_0x3ab65c-0xa0,_0x6acfc0,_0x3ab65c- -0x48);}this[_0x17bfdf(_0x5a6652._0x4c74c9,0x556,0x528,0x5a2)][_0xeb2c8a(-_0x5a6652._0x5aebbd,-0x1e8,-0x1a6,-0x187)](_0x39a251,[_0xeb2c8a(-0xc8,-_0x5a6652._0x25cd49,-0x18c,-0xa8)]);}[_0x2e5e46(0x5d5,0x611,0x5dc,0x568)](_0x140d8f){const _0x45b634={_0x13b5b0:0xc9,_0x469c31:0xd4,_0x2e6125:0xf7,_0x235639:0x1f9,_0x3bbad9:0x1e1},_0x27722f={_0x11ee15:0xa,_0x4c91f4:0x1bb},_0x19b7d7={_0x20a259:0x2e};if(_0x140d8f instanceof OpenAiApiError)return createResponseError(_0x140d8f[_0x5a12db(0xd6,_0x45b634._0x13b5b0,_0x45b634._0x469c31,0xcc)],_0x140d8f[_0x21da3f(-0x186,-_0x45b634._0x2e6125,-0xfe,-0xc8)]||_0x140d8f[_0x21da3f(-_0x45b634._0x235639,-0x277,-0x200,-_0x45b634._0x3bbad9)]);function _0x21da3f(_0x1eddef,_0x2001ee,_0x20fed3,_0x1fcdce){return _0x4784b8(_0x1eddef-0x1d9,_0x2001ee-0x159,_0x20fed3,_0x1fcdce- -_0x19b7d7._0x20a259);}function _0x5a12db(_0x1953b3,_0x3b341f,_0x45d074,_0x1108fc){return _0x4784b8(_0x1953b3-0x127,_0x3b341f-_0x27722f._0x11ee15,_0x45d074,_0x1108fc-_0x27722f._0x4c91f4);}return _0x140d8f;}[_0x2e5e46(0x6e4,0x5b2,0x62b,0x668)](_0x4c57db,_0x56882a){const _0x2b5c07={_0x45199c:0x31c,_0x763f01:0x248,_0x28cdc3:0x2d4,_0x43b294:0x87,_0x5eb8f0:0xc,_0x2be0e9:0x106,_0x3dd2e0:0x13c,_0x27efb2:0x5d,_0x423ad9:0x1e,_0x358516:0x11c,_0x1d98af:0x273,_0xb62302:0x1cc,_0x3e3b96:0x21e,_0x18555d:0x18c,_0x1468b8:0x117,_0x10c4ee:0x14d,_0x98ab:0x35,_0x1be77d:0xf8,_0x54a456:0x1ed,_0x50f380:0x283,_0x1e9d50:0x2c6,_0x42603a:0x55,_0x3c6c26:0x6b},_0x1671d1={_0x1256de:0x38},_0x362e11={_0x17d533:0xfd};switch(this[_0x3724e2(0x29a,_0x2b5c07._0x45199c,_0x2b5c07._0x763f01,_0x2b5c07._0x28cdc3)]){case _0x4641f7(_0x2b5c07._0x43b294,0x85,-_0x2b5c07._0x5eb8f0,0xad):return this[_0x4641f7(-0x9a,-_0x2b5c07._0x2be0e9,-0xe1,-_0x2b5c07._0x3dd2e0)]['complete'](_0x4c57db,_0x56882a);case'openai-chat-completions':return this[_0x4641f7(-0x51,-0x49,-_0x2b5c07._0x27efb2,_0x2b5c07._0x423ad9)](_0x4c57db,_0x56882a);case _0x3724e2(_0x2b5c07._0x358516,_0x2b5c07._0x1d98af,_0x2b5c07._0xb62302,0x1ea):return this[_0x3724e2(0x1b0,_0x2b5c07._0x3e3b96,_0x2b5c07._0x18555d,0x1cf)](_0x4c57db,_0x56882a);case _0x4641f7(0x60,0x6e,0x51,0x44):return this[_0x4641f7(-0x8e,-_0x2b5c07._0x1468b8,-_0x2b5c07._0x10c4ee,_0x2b5c07._0x98ab)](_0x4c57db,_0x56882a);case _0x4641f7(0xda,_0x2b5c07._0x1be77d,0x35,0x9c):return this[_0x3724e2(0x2c0,_0x2b5c07._0x54a456,0x26b,_0x2b5c07._0x50f380)](_0x4c57db,_0x56882a);}function _0x4641f7(_0x17cb7e,_0x154074,_0xf81acc,_0x170d7b){return _0x4784b8(_0x17cb7e-0x74,_0x154074-0x115,_0x154074,_0x17cb7e-_0x362e11._0x17d533);}function _0x3724e2(_0x5dc8a3,_0x49ab76,_0x3668fc,_0x5c93a4){return _0x2e5e46(_0x5dc8a3-0x58,_0x5dc8a3,_0x3668fc-_0x1671d1._0x1256de,_0x5c93a4- -0x326);}throw new Error(_0x3724e2(0x17c,0x229,_0x2b5c07._0x1e9d50,0x231)+String(this[_0x4641f7(_0x2b5c07._0x42603a,-_0x2b5c07._0x3c6c26,0xcd,0x71)]));}[_0x2e5e46(0x660,0x676,0x615,0x5d4)](_0x474b5f,_0x464d3b){const _0x214888={_0x609052:0x442,_0x119a9e:0x452,_0xefc493:0x3a,_0x17ae42:0x29,_0x17e34c:0xa5,_0x58f64e:0xbc,_0x337328:0x1b,_0x1dfbd0:0x4c6,_0x4bb499:0x44d,_0x2dfec8:0x3dd,_0x176399:0x4db,_0x3d4799:0x43f,_0x16069b:0x488,_0x5b7d0c:0x4bc,_0x64d963:0x2d7,_0x16a6e4:0x38b,_0x5ace58:0x422,_0x4eeceb:0x3d7,_0x39bb12:0x442,_0x405a89:0x48c},_0x50da9b={_0x256c77:0xa9,_0x42d3b5:0x51,_0x16fcbc:0x4ea};function _0x4703f1(_0x20ada6,_0x217a45,_0x37872d,_0x2e9f89){return _0x2e5e46(_0x20ada6-0x0,_0x37872d,_0x37872d-0xed,_0x2e9f89- -0x557);}function _0x4a66dc(_0x5e9117,_0x1a7131,_0x253a55,_0x1543ac){return _0x4784b8(_0x5e9117-_0x50da9b._0x256c77,_0x1a7131-_0x50da9b._0x42d3b5,_0x253a55,_0x1a7131-_0x50da9b._0x16fcbc);}switch(this[_0x4a66dc(0x473,_0x214888._0x609052,0x3f8,0x4c4)]){case _0x4a66dc(_0x214888._0x119a9e,0x474,0x3e6,0x3cd):return this['anthropicDelegate'][_0x4a66dc(0x3ef,0x38b,0x424,0x44b)](_0x474b5f,_0x464d3b);case _0x4703f1(0x57,_0x214888._0xefc493,_0x214888._0x17ae42,-0x61):return this[_0x4703f1(_0x214888._0x17e34c,0x42,_0x214888._0x58f64e,0xbb)](_0x474b5f,_0x464d3b);case _0x4703f1(0x16,-0x2e,-_0x214888._0x337328,-0x47):return this['responseStream'](_0x474b5f,_0x464d3b);case _0x4a66dc(_0x214888._0x1dfbd0,_0x214888._0x4bb499,_0x214888._0x2dfec8,_0x214888._0x176399):return this['responseSocketStream'](_0x474b5f,_0x464d3b);case _0x4a66dc(_0x214888._0x3d4799,0x4c7,_0x214888._0x16069b,_0x214888._0x5b7d0c):return this[_0x4a66dc(_0x214888._0x64d963,_0x214888._0x16a6e4,_0x214888._0x5ace58,0x31e)](_0x474b5f,_0x464d3b);}throw new Error(_0x4a66dc(0x3e7,0x39f,_0x214888._0x4eeceb,0x324)+String(this[_0x4a66dc(0x46d,_0x214888._0x39bb12,_0x214888._0x405a89,0x48b)]));}async[_0x2e5e46(0x55d,0x5b7,0x56b,0x5a9)](_0x52a565,_0x556a11){const _0x242c87={_0x3dd352:0x154,_0x40b79d:0x102,_0x34752e:0x148,_0x10be21:0x204,_0x21346e:0x385,_0xb52af2:0x332,_0x4a41ad:0xad,_0x3f71b0:0x88,_0x2a70c1:0xbb,_0x47b606:0xa5,_0x5262da:0x1d5,_0x4d3867:0x300,_0x4f0367:0x2f3,_0x34ed13:0x49,_0x39ec9a:0xdd,_0x576167:0x151,_0xa48f9b:0x232,_0xd80bfe:0x206,_0x23b904:0x1bc},_0x517971={_0x2dea22:0x15,_0x24dda2:0x17c,_0x283938:0x33e},_0x222034={_0x49ef39:0x17c},_0xe958fc=this[_0x46ca50(-_0x242c87._0x3dd352,-_0x242c87._0x40b79d,-_0x242c87._0x34752e,-_0x242c87._0x10be21)](_0x52a565);function _0x46ca50(_0x565949,_0x24c5e8,_0x3c3f85,_0x2f995e){return _0x4784b8(_0x565949-_0x222034._0x49ef39,_0x24c5e8-0x49,_0x24c5e8,_0x3c3f85- -0x34);}if(this[_0x220e84(0x37e,0x2bc,_0x242c87._0x21346e,0x20f)]!=='auto')return this[_0x220e84(_0x242c87._0xb52af2,0x32a,0x2e8,0x334)](_0xe958fc,_0x556a11);function _0x220e84(_0x462f4a,_0x3f15f3,_0x3f527d,_0x3797bb){return _0x2e5e46(_0x462f4a-_0x517971._0x2dea22,_0x3f527d,_0x3f527d-_0x517971._0x24dda2,_0x3f15f3- -_0x517971._0x283938);}if(this[_0x46ca50(-_0x242c87._0x4a41ad,-_0x242c87._0x3f71b0,-_0x242c87._0x2a70c1,-_0x242c87._0x47b606)](_0xe958fc))return this[_0x46ca50(-0x27e,-0x213,-0x1e1,-0x134)](_0xe958fc,_0x556a11);try{return await this[_0x220e84(0x27c,_0x242c87._0x5262da,0x272,0x1e7)](_0xe958fc,_0x556a11);}catch(_0x27aaf3){if(_0x27aaf3 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x27aaf3[_0x220e84(0x2c4,0x2ca,_0x242c87._0x4d3867,_0x242c87._0x4f0367)]))return this[_0x46ca50(0x55,0x77,-_0x242c87._0x34ed13,-0x6e)](_0xe958fc[_0x46ca50(-_0x242c87._0x39ec9a,-0x1ae,-_0x242c87._0x576167,-0xc6)]),this['response'](_0xe958fc,_0x556a11);throw this[_0x220e84(_0x242c87._0xa48f9b,0x22a,_0x242c87._0xd80bfe,_0x242c87._0x23b904)](_0x27aaf3);}throw _0x27aaf3;}}async*[_0x2e5e46(0x5ce,0x4e6,0x569,0x543)](_0x1d19f6,_0x1141d4){const _0x19dff5={_0x2d40e4:0x384,_0x2b48f9:0x2ee,_0x27af24:0x352,_0x3c7725:0x16b,_0x420318:0x191,_0x191785:0x46,_0x3761e4:0x67,_0x58cdaf:0x1d2,_0x19a551:0x12,_0x588f77:0x11b,_0x540636:0x15a,_0x1a14bf:0x1ce,_0x233a1f:0x2c3,_0x9c5dd6:0x347,_0x3d5663:0x1ee,_0x2301ce:0x279,_0x2449f3:0x12b},_0x5f1be6={_0x23cef4:0x17b,_0x3db090:0x1b5},_0x50ab78={_0x2550d0:0x39,_0x359a70:0x396},_0x245b69=this['applyModelDefaults'](_0x1d19f6);function _0x8caeea(_0x123dc7,_0x762cfb,_0x957f87,_0x5c849e){return _0x4784b8(_0x123dc7-_0x50ab78._0x2550d0,_0x762cfb-0x86,_0x762cfb,_0x957f87-_0x50ab78._0x359a70);}if(this[_0x8caeea(_0x19dff5._0x2d40e4,0x280,_0x19dff5._0x2b48f9,_0x19dff5._0x27af24)]!==_0x52415f(0x192,0xf0,0x207,_0x19dff5._0x3c7725)){yield*this[_0x52415f(0xe7,_0x19dff5._0x420318,_0x19dff5._0x191785,_0x19dff5._0x3761e4)](_0x245b69,_0x1141d4);return;}function _0x52415f(_0x3d9a48,_0x8ab1e8,_0x397bcd,_0x53da0b){return _0x4784b8(_0x3d9a48-_0x5f1be6._0x23cef4,_0x8ab1e8-0x100,_0x397bcd,_0x3d9a48-_0x5f1be6._0x3db090);}if(this[_0x52415f(0x12e,0xe9,0x1f6,_0x19dff5._0x58cdaf)](_0x245b69)){yield*this['responseStream'](_0x245b69,_0x1141d4);return;}try{yield*this[_0x52415f(0x1d,-0x13,-_0x19dff5._0x19a551,0x5d)](_0x245b69,_0x1141d4);}catch(_0x55bbc8){if(_0x55bbc8 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x55bbc8[_0x52415f(_0x19dff5._0x588f77,_0x19dff5._0x540636,_0x19dff5._0x1a14bf,0x120)])){this[_0x8caeea(_0x19dff5._0x233a1f,0x32d,0x381,0x380)](_0x245b69[_0x8caeea(_0x19dff5._0x9c5dd6,_0x19dff5._0x3d5663,_0x19dff5._0x2301ce,0x1cb)]),yield*this[_0x52415f(0xa6,0x179,_0x19dff5._0x2449f3,0x128)](_0x245b69,_0x1141d4);return;}throw this[_0x8caeea(0x271,0x2ce,0x25c,0x1a0)](_0x55bbc8);}throw _0x55bbc8;}}async[_0x2e5e46(0x4f5,0x5ac,0x633,0x586)](_0x4a055d){const _0x28fd91={_0x23676e:0x145,_0x10c357:0x209,_0x405fcb:0xa0,_0x3955a7:0x187,_0xcd69de:0x29,_0x348945:0xf,_0x5eba29:0x22d,_0x101820:0x222,_0x4f7660:0x52,_0x30f828:0x13e,_0x366e2c:0x3c},_0x147101={_0x833a01:0x133,_0x4732bd:0x80,_0x89524c:0x56e},_0x2c4cc8={_0x2842b2:0xa5},_0x453e7a={_0x5cbec1:0x1,_0x4f83b6:0xfd,_0x2f78fa:0x611},_0x414be2=await this['sendRawRequest']({'path':_0x52b931(_0x28fd91._0x23676e,_0x28fd91._0x10c357,_0x28fd91._0x405fcb,_0x28fd91._0x3955a7),'method':'GET','signal':_0x4a055d});function _0x52b931(_0x14221a,_0x3ef71b,_0x26de4f,_0x915d9e){return _0x2e5e46(_0x14221a-0x1af,_0x26de4f,_0x26de4f-0x1e9,_0x14221a- -0x4ce);}function _0x4fe846(_0x9d1c7c,_0x33f603,_0x5b35b8,_0x41719f){return _0x2e5e46(_0x9d1c7c-_0x453e7a._0x5cbec1,_0x9d1c7c,_0x5b35b8-_0x453e7a._0x4f83b6,_0x33f603- -_0x453e7a._0x2f78fa);}if(!_0x414be2['ok'])throw this[_0x52b931(0x9a,0xc4,_0x28fd91._0xcd69de,_0x28fd91._0x348945)](await this[_0x52b931(0x15d,_0x28fd91._0x5eba29,_0x28fd91._0x101820,0xe9)](_0x414be2));const _0x2e1b50=await _0x414be2[_0x4fe846(-_0x28fd91._0x4f7660,0x6c,0x135,-0x4d)](),_0xff8f77=(_0x2e1b50['data']??[])[_0x52b931(0xfb,_0x28fd91._0x30f828,_0x28fd91._0x366e2c,0x1b4)](_0x4d15a8=>{const _0x559f96={_0x420c69:0x67,_0x332819:0x20},_0x4a114d=createModelInfo(_0x4d15a8);function _0x27a18c(_0xb30334,_0x3538ec,_0x3db938,_0x582d64){return _0x52b931(_0x3538ec- -0x214,_0x3538ec-_0x559f96._0x420c69,_0x582d64,_0x582d64-_0x559f96._0x332819);}function _0x2c8a0c(_0x150367,_0x34f73a,_0x22b14e,_0x4145a8){return _0x52b931(_0x34f73a-0x4e7,_0x34f73a-_0x2c4cc8._0x2842b2,_0x150367,_0x4145a8-0x81);}return _0x4a114d[_0x27a18c(-0x1e1,-_0x147101._0x833a01,-_0x147101._0x4732bd,-0x7d)]&&this[_0x2c8a0c(0x4d7,_0x147101._0x89524c,0x52d,0x5ee)]['set'](_0x4a114d['id'],_0x4a114d[_0x2c8a0c(0x584,0x5c8,0x64f,0x621)]),_0x4a114d;});return deduplicateModels(_0xff8f77);}};function createHeaders(_0xc39d64){const _0x5cbe01={_0x31828a:0xad,_0x2fd207:0x6f,_0x551732:0x457,_0x58be53:0x527},_0x54b0a7={_0x43bb9b:0x165,_0x5a0a25:0xab},_0x47bc8f={_0x1a5940:0x1a1};function _0x45e0fc(_0x5584ac,_0x239ec1,_0x5e278e,_0x470264){return _0x4784b8(_0x5584ac-_0x47bc8f._0x1a5940,_0x239ec1-0x15c,_0x470264,_0x5e278e-0x123);}const _0x5282b0=new Headers();for(const [_0x30fce9,_0x557fa5]of Object[_0x45e0fc(_0x5cbe01._0x31828a,0xdc,0xdb,_0x5cbe01._0x2fd207)](_0xc39d64)){_0x5282b0[_0x54048c(_0x5cbe01._0x551732,0x4e1,_0x5cbe01._0x58be53,0x3eb)](_0x30fce9,_0x557fa5);}function _0x54048c(_0x49ea20,_0x485e90,_0x1c904a,_0x485cde){return _0x2e5e46(_0x49ea20-0x2a,_0x485cde,_0x1c904a-_0x54b0a7._0x43bb9b,_0x49ea20- -_0x54b0a7._0x5a0a25);}return _0x5282b0;}async function fetchRawResponse(_0x378faa){const _0x200551={_0x8e1f30:0x13c,_0x47b9ae:0x1eb,_0x5c1b46:0x109,_0x1c5f25:0x23d,_0x24cc96:0xe8,_0xec8afe:0x4b,_0x4a15a7:0x101,_0x5d72ba:0x64,_0x4f3ea0:0x124},_0x48dfa4={_0x1a6a1d:0x2d,_0x2c08b9:0x173},_0x20a654={_0x5e379f:0x198,_0x341e33:0x38,_0x1a1478:0x431};function _0xa69d22(_0x2ddcfc,_0x5379d2,_0x54946c,_0xdbbe5f){return _0x2e5e46(_0x2ddcfc-_0x20a654._0x5e379f,_0x54946c,_0x54946c-_0x20a654._0x341e33,_0x2ddcfc- -_0x20a654._0x1a1478);}const _0x256815=_0x378faa[_0xa69d22(_0x200551._0x8e1f30,_0x200551._0x47b9ae,_0x200551._0x5c1b46,0x159)]??globalThis['fetch'];function _0x85a765(_0x150f9f,_0x3c7487,_0x2b1125,_0xb1dcaf){return _0x2e5e46(_0x150f9f-_0x48dfa4._0x1a6a1d,_0x2b1125,_0x2b1125-_0x48dfa4._0x2c08b9,_0x3c7487- -0x751);}return _0x256815(_0x378faa['url'],{'method':_0xa69d22(0x1c8,_0x200551._0x1c5f25,_0x200551._0x1c5f25,0x108),'headers':createHeaders(_0x378faa[_0x85a765(-0x23,-_0x200551._0x24cc96,-_0x200551._0xec8afe,-0x195)]),'body':JSON[_0xa69d22(_0x200551._0x4a15a7,0xc1,0xd1,_0x200551._0x5d72ba)](_0x378faa['body']),'signal':_0x378faa[_0x85a765(-_0x200551._0x4f3ea0,-0x19d,-0x128,-0x128)]});}async function fetchJsonResponse(_0x13bff3){const _0x23c439={_0xa9c387:0x3ba,_0xc42cc1:0x2f4,_0x3b7aff:0x366,_0x31de0f:0x3da,_0x522aac:0x49e,_0x2c1302:0x47f,_0x1757c6:0x38e,_0x33b8fa:0x48d,_0x238e2d:0x37d,_0x4329f6:0x3f0},_0x158aca={_0x4aecfc:0x2b,_0x52811a:0x6d8},_0x2d0677={_0x584a39:0xb6,_0x4cdcc3:0x1c3},_0x357590=await fetchRawResponse(_0x13bff3);if(!_0x357590['ok']){const _0x49d9aa=await _0x357590['text'](),_0x27cf36=_0x49d9aa[_0x5042da(0x299,_0x23c439._0xa9c387,_0x23c439._0xc42cc1,_0x23c439._0x3b7aff)]()||_0x357590[_0x5042da(_0x23c439._0x31de0f,0x49d,_0x23c439._0x522aac,_0x23c439._0x2c1302)]||'Unknown\x20provider\x20error';throw new Error(_0x5042da(0x3b1,_0x23c439._0x1757c6,0x43c,0x3f7)+_0x357590[_0x5042da(0x420,_0x23c439._0x33b8fa,_0x23c439._0x238e2d,_0x23c439._0x4329f6)]+':\x20'+_0x27cf36);}function _0x5042da(_0x462ec5,_0x5d62e7,_0x34a8e7,_0x335083){return _0x2e5e46(_0x462ec5-0x1ac,_0x34a8e7,_0x34a8e7-_0x2d0677._0x584a39,_0x335083- -_0x2d0677._0x4cdcc3);}function _0x873fe4(_0x3e835d,_0x5833a0,_0x3a7495,_0x3e1c4e){return _0x2e5e46(_0x3e835d-_0x158aca._0x4aecfc,_0x3e835d,_0x3a7495-0xe6,_0x5833a0- -_0x158aca._0x52811a);}return await _0x357590[_0x873fe4(-0x125,-0x5b,-0x13,-0x91)]();}function findLastMessage(_0x131c7d,_0x57bd51){const _0x210b51={_0x2700d1:0x1e3,_0x1f523c:0x2b3,_0x5721e5:0x26c},_0x2d78aa={_0xc2c846:0x42,_0x27053b:0x101},_0x463a81={_0x1975a6:0x19a,_0x2e1fd5:0x11c,_0xb91fc6:0x383};function _0x52eee6(_0x1dd7f9,_0x1e1aef,_0x38d105,_0x3571e7){return _0x2e5e46(_0x1dd7f9-_0x463a81._0x1975a6,_0x1e1aef,_0x38d105-_0x463a81._0x2e1fd5,_0x1dd7f9- -_0x463a81._0xb91fc6);}function _0x356c0c(_0xf3c627,_0x55f7e1,_0x560cce,_0x4774de){return _0x4784b8(_0xf3c627-_0x2d78aa._0xc2c846,_0x55f7e1-0x84,_0x4774de,_0x55f7e1-_0x2d78aa._0x27053b);}for(let _0x22ee15=_0x131c7d[_0x356c0c(0x164,0x9a,0x145,0x141)]-0x1;_0x22ee15>=0x0;_0x22ee15-=0x1){if(_0x131c7d[_0x22ee15][_0x52eee6(_0x210b51._0x2700d1,_0x210b51._0x1f523c,0x254,_0x210b51._0x5721e5)]===_0x57bd51)return _0x131c7d[_0x22ee15];}return void 0x0;}function hasTool(_0xc61ba2,_0x4ae250){const _0x1503e4={_0x10ae6d:0x128,_0x24b2b0:0x39},_0x1e6f2b={_0x4765d4:0x10},_0x7d3184={_0x438f8b:0x396};function _0x525d2c(_0x15c520,_0x25c290,_0x44ca4a,_0x1894e2){return _0x4784b8(_0x15c520-0x4,_0x25c290-0x10,_0x15c520,_0x25c290-_0x7d3184._0x438f8b);}function _0x397196(_0x379b97,_0xc9eafe,_0xb05d34,_0x10825d){return _0x4784b8(_0x379b97-0x73,_0xc9eafe-0x55,_0xc9eafe,_0xb05d34-_0x1e6f2b._0x4765d4);}return _0xc61ba2[_0x397196(-_0x1503e4._0x10ae6d,-0x117,-0x81,-_0x1503e4._0x24b2b0)]['some'](_0x35b3f4=>_0x35b3f4[_0x525d2c(0x2b4,0x28f,0x2b8,0x310)]===_0x4ae250);}function createMockResponse(_0x19147f,_0x2563a5,_0x358fb0,_0x366df0){return{'id':_0x19147f,'content':_0x2563a5,'stopReason':_0x358fb0,'usage':_0x366df0};}var MockModel=class{[_0x2e5e46(0x535,0x550,0x620,0x585)];[_0x2e5e46(0x564,0x495,0x5b8,0x53c)];['requests']=[];[_0x4784b8(-0x182,-0x1f7,-0x109,-0x134)];constructor(_0x12c970={}){const _0x1ec6e4={_0x4b8a0a:0x238,_0x3a715f:0x2ae,_0x129f58:0x3c2,_0x435cc6:0x2ef,_0xad9127:0x2a5,_0x45e37d:0x1e2,_0x1874ef:0x25e,_0x128b06:0x3a7,_0x53d83d:0x338,_0x3a82a5:0x326},_0x4d2823={_0x51d921:0x63,_0x19ed9a:0x45a},_0x4ce84c={_0x2db0ed:0xbe,_0x1969de:0x38c};this[_0x293d11(0x1f9,0x1d1,0x199,_0x1ec6e4._0x4b8a0a)]=_0x12c970['model']??_0x293d11(0x2a7,0x204,0x32d,_0x1ec6e4._0x3a715f);function _0x293d11(_0x44364b,_0x3681c5,_0x28631c,_0x45a63b){return _0x2e5e46(_0x44364b-0xea,_0x45a63b,_0x28631c-_0x4ce84c._0x2db0ed,_0x44364b- -_0x4ce84c._0x1969de);}function _0x3a3713(_0x31a78a,_0x369a63,_0x17b9c5,_0x245305){return _0x4784b8(_0x31a78a-_0x4d2823._0x51d921,_0x369a63-0x1bb,_0x245305,_0x369a63-_0x4d2823._0x19ed9a);}this['maxTokens']=_0x12c970[_0x3a3713(_0x1ec6e4._0x129f58,0x2f4,_0x1ec6e4._0x435cc6,_0x1ec6e4._0xad9127)]??0x4000,this[_0x293d11(_0x1ec6e4._0x45e37d,0x244,_0x1ec6e4._0x1874ef,0x133)]=_0x12c970[_0x3a3713(0x2af,0x326,0x381,_0x1ec6e4._0x128b06)]?structuredClone(_0x12c970[_0x3a3713(_0x1ec6e4._0x53d83d,_0x1ec6e4._0x3a82a5,0x342,0x2df)]):void 0x0;}async[_0x4784b8(-0xae,-0x181,-0x191,-0xf9)](_0x56684b,_0x2a1708){const _0x8e2c00={_0x4ecc1d:0xad,_0x42788d:0x117,_0xce06d8:0x53,_0x6d5f18:0x485,_0x8902ef:0x3fc,_0x849ae:0x158,_0x38312e:0x165,_0x3d6548:0x6c,_0x4f4b25:0xdd,_0x228945:0x44f,_0xe07166:0x44e,_0x1dd0d5:0x366,_0x2b13a3:0x3ed,_0x4c1a11:0x422,_0x160d32:0x437,_0x2f2061:0x33,_0x19ad5e:0x3b3,_0x570c5e:0x478,_0x5ea940:0x3b5,_0x24a2df:0x413,_0x58db6f:0x357,_0x5e68d5:0x413,_0x1f1299:0x36,_0x491914:0x30,_0x3be665:0x4dd,_0x12730b:0x51e,_0x19f766:0x433,_0x545dc2:0x464,_0x59a500:0x4a0,_0x50779b:0x402,_0x435975:0x2d4,_0x336293:0x34c},_0x1b9f7b={_0x39dce5:0x1ab,_0x2dd7c1:0xc8,_0x17531d:0x4c1},_0x332bf8={_0x1b564d:0x1a6,_0x1abe0a:0x4b5};function _0x4f0061(_0x289291,_0x455cf4,_0x1449d0,_0x4a2deb){return _0x4784b8(_0x289291-0x1df,_0x455cf4-_0x332bf8._0x1b564d,_0x289291,_0x455cf4-_0x332bf8._0x1abe0a);}const _0x3facf7={...structuredClone(_0x56684b),..._0x56684b['reasoning']===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x44dd96(0xbf,0xcb,_0x8e2c00._0x4ecc1d,_0x8e2c00._0x42788d)])}:{}};this[_0x44dd96(0x6b,_0x8e2c00._0xce06d8,0x44,0xf7)][_0x4f0061(0x42f,_0x8e2c00._0x6d5f18,0x4df,_0x8e2c00._0x8902ef)](_0x3facf7);const _0x5a4335=findLastMessage(_0x3facf7[_0x44dd96(0x177,_0x8e2c00._0x849ae,_0x8e2c00._0x38312e,0xe2)],'user'),_0x4e2e81=getToolResultBlocks(_0x5a4335),_0x109814=_0x44dd96(0xb5,0xeb,0x140,0x1df)+this[_0x44dd96(-0x47,_0x8e2c00._0x3d6548,0x44,_0x8e2c00._0x4f4b25)]['length'];if(_0x4e2e81[_0x4f0061(_0x8e2c00._0x228945,_0x8e2c00._0xe07166,0x40f,0x403)]>0x0)return createMockResponse(_0x109814,[{'type':_0x4f0061(0x3a7,0x3f4,_0x8e2c00._0x1dd0d5,0x4bd),'text':_0x4f0061(_0x8e2c00._0x2b13a3,0x486,_0x8e2c00._0x4c1a11,_0x8e2c00._0x160d32)+_0x4e2e81[0x0]['content']}],_0x44dd96(-0xe,0xa3,0x42,_0x8e2c00._0x2f2061),{'inputTokens':0x78,'outputTokens':0x28});const _0x46412b=getTextFromMessage(_0x5a4335);if(/list .*files|workspace/i['test'](_0x46412b)&&hasTool(_0x3facf7,_0x4f0061(0x3a4,_0x8e2c00._0x19ad5e,0x412,_0x8e2c00._0x570c5e)))return createMockResponse(_0x109814,[{'type':'tool_use','id':_0x4f0061(_0x8e2c00._0x5ea940,_0x8e2c00._0x24a2df,_0x8e2c00._0x58db6f,_0x8e2c00._0x5e68d5)+this[_0x44dd96(-_0x8e2c00._0x1f1299,-_0x8e2c00._0x491914,0x44,0x10b)][_0x4f0061(_0x8e2c00._0x3be665,0x44e,0x4f2,_0x8e2c00._0x12730b)],'name':'Bash','input':{'command':_0x4f0061(0x37c,_0x8e2c00._0x19f766,0x3ee,_0x8e2c00._0x545dc2)}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});function _0x44dd96(_0x460d18,_0x503d13,_0x44e5e0,_0x334f3d){return _0x2e5e46(_0x460d18-_0x1b9f7b._0x39dce5,_0x460d18,_0x44e5e0-_0x1b9f7b._0x2dd7c1,_0x44e5e0- -_0x1b9f7b._0x17531d);}return createMockResponse(_0x109814,[{'type':_0x4f0061(_0x8e2c00._0x59a500,0x3f4,0x383,_0x8e2c00._0x50779b),'text':_0x4f0061(_0x8e2c00._0x435975,0x32b,0x29d,_0x8e2c00._0x336293)+_0x46412b}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}},FALLBACK_LIMITS={'zai':{'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}},'openrouter':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}},'github':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}},'minimax':{'MiniMax-M2.1':{'contextWindow':0xf4240,'maxOutput':0x13880}},'anthropic':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}},'deepseek':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}};function getFallbackModelLimits(_0xf8d636,_0x41aca8){const _0x9f6c50={_0x2cce9f:0x238},_0x4799f6={_0x40e6da:0x190,_0x1e150c:0x1bb};function _0x3ad504(_0x404233,_0x4d6f7c,_0x1c03c6,_0x24337b){return _0x2e5e46(_0x404233-_0x4799f6._0x40e6da,_0x404233,_0x1c03c6-_0x4799f6._0x1e150c,_0x1c03c6- -0x42c);}return FALLBACK_LIMITS[_0xf8d636[_0x3ad504(_0x9f6c50._0x2cce9f,0x225,0x1f0,0x17d)]()]?.[_0x41aca8];}function normalizeModelInfo(_0x5e0ba7,_0x39a84b){const _0x238a64={_0x118a56:0x516,_0x36d562:0x507,_0xbec80c:0x4f0,_0x164bb8:0x599,_0x2a55c0:0x42d,_0x317576:0xa3,_0x1145da:0x24,_0x50a636:0x1,_0x427445:0x2d,_0x3197a2:0x12e,_0x592697:0x144,_0x38cb74:0x1fb,_0x4c6443:0x26c,_0x4d0870:0x1d6,_0x1a602b:0x15c},_0x556ce2={_0x323fc6:0x99,_0x410342:0x71},_0x4da54a={_0x592a5b:0x1a5,_0xfac96a:0x245};function _0x227ec7(_0x3a7d08,_0x31fdb5,_0xd3ed2b,_0x40c575){return _0x4784b8(_0x3a7d08-0x34,_0x31fdb5-_0x4da54a._0x592a5b,_0x40c575,_0x3a7d08-_0x4da54a._0xfac96a);}const _0x98ae0d=typeof _0x39a84b['id']===_0x1e1e71(_0x238a64._0x118a56,0x5e4,0x4b6,0x494)?_0x39a84b['id']:'';function _0x1e1e71(_0x11496f,_0x598401,_0x3ef980,_0x26ac2a){return _0x2e5e46(_0x11496f-_0x556ce2._0x323fc6,_0x598401,_0x3ef980-_0x556ce2._0x410342,_0x11496f- -0x11c);}const _0x1d08dd=typeof _0x39a84b['name']===_0x1e1e71(0x516,_0x238a64._0x36d562,_0x238a64._0xbec80c,0x5dd)?_0x39a84b['name']:_0x98ae0d,_0x1e2f5d=normalizeModelLimits(_0x5e0ba7,_0x39a84b)??getFallbackModelLimits(_0x5e0ba7,_0x98ae0d),_0x2be2d4=Array[_0x1e1e71(0x4fe,_0x238a64._0x164bb8,0x454,_0x238a64._0x2a55c0)](_0x39a84b[_0x227ec7(_0x238a64._0x317576,0xa9,0xa7,_0x238a64._0x1145da)])?_0x39a84b[_0x227ec7(0xa3,-_0x238a64._0x50a636,_0x238a64._0x427445,_0x238a64._0x3197a2)]['filter'](_0x1e3fba=>typeof _0x1e3fba===_0x227ec7(0x1d5,0x1c8,0x19a,0x174)):Array[_0x227ec7(0x1bd,0x231,_0x238a64._0x592697,0xf8)](_0x39a84b[_0x227ec7(_0x238a64._0x38cb74,0x2c0,_0x238a64._0x4c6443,0x2b6)])?_0x39a84b[_0x227ec7(0x1fb,_0x238a64._0x4d0870,_0x238a64._0x1a602b,0x224)]['filter'](_0x4aacac=>typeof _0x4aacac===_0x227ec7(0x1d5,0x207,0x1d8,0x174)):void 0x0;return{'id':_0x98ae0d,'name':_0x1d08dd,..._0x1e2f5d?{'limits':_0x1e2f5d}:{},..._0x2be2d4?{'supportedEndpoints':_0x2be2d4}:{}};}function _0x4784b8(_0x209a46,_0x4054ba,_0xb5aba0,_0x7efb5a){const _0x598540={_0x244af3:0x2dc};return _0x1d50(_0x7efb5a- -_0x598540._0x244af3,_0xb5aba0);}function normalizeModelLimits(_0x4d5e32,_0x160008){const _0x40ca35={_0x14c173:0x2b2,_0x12a3f9:0x33a,_0x3c792f:0x3e0,_0x530750:0x41e,_0x51ed44:0x50f,_0x5abb14:0x4a3,_0x19cbe5:0x4a9,_0x3f2c43:0x36f,_0x3c5cb1:0x384,_0xd2c9d5:0x400,_0x2b271a:0x427,_0x1a1c32:0x293,_0x294550:0x222,_0x3cf7f4:0x29c,_0x5e2f47:0x3a8,_0x24a3af:0x302,_0xbdb55f:0x4b5,_0x132dfd:0x413,_0x5f5c3e:0x4bf,_0x179dcc:0x462,_0x3d0fc3:0x581,_0x2c1699:0x1cd,_0x272d61:0x32c,_0x44114a:0x42a,_0xfe3f2d:0x3f8,_0x58baff:0x349,_0x2fd48a:0x2dc,_0xab3586:0x2d1,_0x4d1711:0x38a,_0x1a1190:0x37c,_0x190a06:0x2c6,_0x5663c1:0x375,_0x25765:0x461,_0x1be1d2:0x394,_0x4b5c2a:0x48c,_0xbba4b1:0x4db,_0xedb685:0x406,_0x672b8f:0x445,_0x5ab15a:0x279,_0x5a8eea:0x461,_0x1ea769:0x503,_0x54114d:0x46b,_0x4dfdfb:0x3f2,_0x1aff34:0x2d9,_0x1f1102:0x2ea,_0x15b63e:0x2d3,_0xbdc313:0x2f1,_0x23d700:0x1ff,_0x21feea:0x2b5,_0x3cf335:0x26e,_0x18eec0:0x22c,_0x22c4d7:0x241,_0x4ba99f:0x234,_0x495182:0x15c,_0x57b375:0x227,_0x2527f4:0x409,_0x310972:0x2db,_0x525ef8:0x458,_0x1bc75c:0x5a1},_0x2eeb1d={_0x2da7cd:0x122,_0x3e5ffb:0x3ad};if(_0x160008[_0x18e258(0x50f,0x447,0x505,0x5ae)]&&typeof _0x160008[_0x3e1130(0x3fb,_0x40ca35._0x14c173,_0x40ca35._0x12a3f9,0x381)]===_0x18e258(_0x40ca35._0x3c792f,0x335,_0x40ca35._0x530750,0x380)){const _0x1d44d1=_0x160008[_0x18e258(_0x40ca35._0x51ed44,0x458,_0x40ca35._0x5abb14,_0x40ca35._0x19cbe5)];if(typeof _0x1d44d1[_0x3e1130(0x3df,0x30d,_0x40ca35._0x3f2c43,_0x40ca35._0x3c5cb1)]==='number')return{'contextWindow':_0x1d44d1[_0x3e1130(_0x40ca35._0xd2c9d5,0x347,_0x40ca35._0x2b271a,_0x40ca35._0x3c5cb1)],...typeof _0x1d44d1['maxOutput']===_0x3e1130(0x2ab,_0x40ca35._0x1a1c32,_0x40ca35._0x294550,_0x40ca35._0x3cf7f4)?{'maxOutput':_0x1d44d1[_0x18e258(_0x40ca35._0x5e2f47,0x3ba,_0x40ca35._0x24a3af,0x37e)]}:{}};}if(_0x4d5e32[_0x18e258(_0x40ca35._0xbdb55f,0x3f2,0x561,_0x40ca35._0x132dfd)]()===_0x18e258(0x51d,_0x40ca35._0x5f5c3e,_0x40ca35._0xbdb55f,0x52a)){const _0x4856ff=_0x160008[_0x18e258(0x3f2,0x4ac,0x350,0x34a)],_0x281b67=_0x4856ff?.[_0x18e258(0x50f,_0x40ca35._0x179dcc,0x5ab,_0x40ca35._0x3d0fc3)];if(typeof _0x281b67?.[_0x3e1130(_0x40ca35._0x2c1699,0x2c5,_0x40ca35._0x272d61,0x26a)]===_0x18e258(_0x40ca35._0x44114a,0x4b2,0x417,0x4fc))return{'contextWindow':_0x281b67[_0x18e258(_0x40ca35._0xfe3f2d,0x351,0x3c3,0x4a6)],...typeof _0x281b67[_0x3e1130(0x260,0x2e1,_0x40ca35._0x58baff,_0x40ca35._0x2fd48a)]===_0x3e1130(0x23f,0x310,0x2ec,0x29c)?{'maxOutput':_0x281b67['max_output_tokens']}:{}};}const _0x1c17c1=_0x160008[_0x3e1130(0x310,0x376,0x318,_0x40ca35._0xab3586)],_0x41369e=_0x160008[_0x18e258(_0x40ca35._0x4d1711,_0x40ca35._0x1a1190,_0x40ca35._0x190a06,_0x40ca35._0x5663c1)],_0xab15d7=typeof _0x160008[_0x18e258(_0x40ca35._0x25765,_0x40ca35._0x1be1d2,_0x40ca35._0x4b5c2a,_0x40ca35._0xbba4b1)]==='number'?_0x160008[_0x18e258(0x461,0x4d8,_0x40ca35._0xedb685,_0x40ca35._0x672b8f)]:typeof _0x1c17c1?.[_0x18e258(_0x40ca35._0x25765,0x414,0x491,0x47a)]===_0x3e1130(_0x40ca35._0x5ab15a,0x29d,0x1f7,0x29c)?_0x1c17c1[_0x18e258(_0x40ca35._0x5a8eea,_0x40ca35._0x1ea769,_0x40ca35._0x54114d,_0x40ca35._0x4dfdfb)]:typeof _0x41369e?.[_0x3e1130(0x366,_0x40ca35._0x1aff34,_0x40ca35._0x1f1102,_0x40ca35._0x15b63e)]===_0x3e1130(_0x40ca35._0xbdc313,_0x40ca35._0x23d700,_0x40ca35._0x21feea,0x29c)?_0x41369e[_0x3e1130(_0x40ca35._0x3cf335,_0x40ca35._0x18eec0,0x378,_0x40ca35._0x15b63e)]:void 0x0;function _0x3e1130(_0x56cd79,_0x40c908,_0x1bca87,_0x50a6a4){return _0x4784b8(_0x56cd79-_0x2eeb1d._0x2da7cd,_0x40c908-0x145,_0x1bca87,_0x50a6a4-_0x2eeb1d._0x3e5ffb);}if(_0xab15d7===void 0x0)return void 0x0;function _0x18e258(_0x4e8209,_0x55f232,_0x1459f3,_0x5b9c75){return _0x2e5e46(_0x4e8209-0x135,_0x5b9c75,_0x1459f3-0x1d,_0x4e8209- -0x167);}return{'contextWindow':_0xab15d7,...typeof _0x1c17c1?.[_0x3e1130(0x159,0x2e6,_0x40ca35._0x22c4d7,0x227)]==='number'?{'maxOutput':_0x1c17c1[_0x3e1130(_0x40ca35._0x4ba99f,_0x40ca35._0x495182,0x1fa,_0x40ca35._0x57b375)]}:typeof _0x41369e?.[_0x3e1130(0x36d,_0x40ca35._0x2527f4,0x336,0x391)]===_0x3e1130(0x32f,0x307,_0x40ca35._0x310972,0x29c)?{'maxOutput':_0x41369e[_0x18e258(0x51f,_0x40ca35._0x525ef8,_0x40ca35._0x1bc75c,0x460)]}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getFallbackModelLimits,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};