@nuvin/agent-core 0.0.0-rc.1 → 0.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +13 -3
- package/dist/agent/index.js +1 -1
- package/dist/chunk-G2FR4UGO.js +1 -0
- package/dist/chunk-LXQDGX4K.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-VFTQW5WK.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +2 -2
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-F0kn75gb.d.ts → provider-adapters-Cb5hUJoD.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +28 -21
- package/dist/tools/index.js +1 -1
- package/dist/{types-D11KxtW1.d.ts → types-QPBW5jHO.d.ts} +22 -3
- package/package.json +3 -2
- package/dist/chunk-C6OLKGP6.js +0 -1
- package/dist/chunk-U2BLX7Y5.js +0 -1
- package/dist/chunk-WVVWOCQ5.js +0 -1
package/dist/models/index.js
CHANGED
|
@@ -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(_0x4538b7,_0x47a6cf){const _0x4855af={_0x6e6d6f:0xfa,_0x312215:0x1af,_0x2add5b:0x199,_0x7b1de3:0x15d,_0x54a770:0xeb,_0x269675:0x9a,_0x4eefce:0xd1,_0x390a5e:0xb7,_0x40f0a7:0xbc,_0x2a1379:0x118,_0x3665bb:0xb1,_0x478a58:0x17,_0x4003ee:0x6b,_0x3ff48b:0xe8,_0x2e0c0b:0xbd,_0x4daa48:0x27,_0x3a3c40:0xd7,_0x70d1aa:0x5c,_0x387c01:0x63,_0x1c5a73:0x1c,_0x523d39:0xd2,_0x10d6a6:0x30,_0x503480:0x1d,_0x52e176:0x97,_0x1961e8:0xae,_0x4e49ba:0x38,_0x5051d1:0x4e},_0x24b096={_0x2a6b05:0x259};function _0x656686(_0x5c5963,_0x213a15,_0x3fbedd,_0x212152){return _0x25f1(_0x5c5963- -_0x24b096._0x2a6b05,_0x212152);}function _0x1a2c88(_0x8872b8,_0x50cbcc,_0x33b9b4,_0x9f47c){return _0x25f1(_0x50cbcc- -0x267,_0x9f47c);}const _0x39323a=_0x4538b7();while(!![]){try{const _0x2e5541=parseInt(_0x656686(-_0x4855af._0x6e6d6f,-0x13a,-0x72,-_0x4855af._0x312215))/0x1*(-parseInt(_0x1a2c88(-_0x4855af._0x2add5b,-0x107,-0x156,-0x13a))/0x2)+parseInt(_0x1a2c88(-_0x4855af._0x7b1de3,-0xc5,-_0x4855af._0x54a770,-0xca))/0x3*(parseInt(_0x1a2c88(-_0x4855af._0x269675,-_0x4855af._0x4eefce,-_0x4855af._0x390a5e,-_0x4855af._0x40f0a7))/0x4)+-parseInt(_0x1a2c88(-0x36,-0xe4,-_0x4855af._0x2a1379,-_0x4855af._0x3665bb))/0x5*(parseInt(_0x656686(_0x4855af._0x478a58,0x5,_0x4855af._0x4003ee,0x5b))/0x6)+parseInt(_0x1a2c88(-0x16d,-_0x4855af._0x3ff48b,-_0x4855af._0x2e0c0b,-_0x4855af._0x4daa48))/0x7*(-parseInt(_0x1a2c88(_0x4855af._0x3a3c40,0x2f,-0x36,-_0x4855af._0x269675))/0x8)+-parseInt(_0x656686(-_0x4855af._0x70d1aa,_0x4855af._0x387c01,-0x4,-0xee))/0x9*(parseInt(_0x656686(-0x8c,_0x4855af._0x1c5a73,0xd,-0x7c))/0xa)+-parseInt(_0x1a2c88(-0x6e,-0x1f,-_0x4855af._0x523d39,-_0x4855af._0x10d6a6))/0xb+-parseInt(_0x656686(-_0x4855af._0x503480,-0x21,_0x4855af._0x52e176,-_0x4855af._0x1961e8))/0xc*(-parseInt(_0x1a2c88(-_0x4855af._0x4e49ba,0x1d,0xa5,_0x4855af._0x5051d1))/0xd);if(_0x2e5541===_0x47a6cf)break;else _0x39323a['push'](_0x39323a['shift']());}catch(_0x24eb97){_0x39323a['push'](_0x39323a['shift']());}}}(_0x35dd,0xb8971));import{toOpenAiResponsesRequest}from'../chunk-LXQDGX4K.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ANTHROPIC_MESSAGES_SURFACE=_0x2b6123(0x28b,0x35b,0x2b7,0x22c),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x2b6123(0x1d5,0x1b7,0x239,0x245);function parseToolInput(_0x59edd8){try{return JSON['parse'](_0x59edd8);}catch{return _0x59edd8;}}function resolveReasoningVisibility(_0x19c802){const _0x37a579={_0x4caea3:0x2ca,_0x255b63:0x381,_0x5076cd:0x3c4},_0x5f185f={_0x208bd5:0x14e,_0x106891:0x76},_0x3d3e8c={_0x5cba3c:0x1cd,_0x543a28:0x9f,_0x3c3978:0x71};function _0x3533b0(_0x9cfff0,_0x4700cb,_0x4278d2,_0x24408c){return _0x2b6123(_0x9cfff0,_0x4700cb-_0x3d3e8c._0x5cba3c,_0x4278d2- -_0x3d3e8c._0x543a28,_0x24408c-_0x3d3e8c._0x3c3978);}function _0x56eec5(_0x195ede,_0x24b2c8,_0x297908,_0x1dac19){return _0x2b6123(_0x1dac19,_0x24b2c8-_0x5f185f._0x208bd5,_0x297908-0x86,_0x1dac19-_0x5f185f._0x106891);}return _0x19c802[_0x3533b0(0x2e0,0x2fc,_0x37a579._0x4caea3,_0x37a579._0x255b63)]?.[_0x56eec5(_0x37a579._0x5076cd,0x3ea,0x373,0x2f5)]??'user-visible';}function isUserVisibleThinking(_0x436f18){const _0x34e238={_0x475d89:0x253,_0x5a1475:0x19d,_0x7d10ee:0xb,_0x1809d9:0x37,_0x182477:0x32},_0x2d9917={_0xbfd783:0x1ee},_0x1febf0={_0x2dda8d:0x13c};function _0x453a1e(_0x18830e,_0x2280b7,_0x4e2942,_0x3f81e0){return _0x2b6123(_0x18830e,_0x2280b7-_0x1febf0._0x2dda8d,_0x2280b7- -0x2a9,_0x3f81e0-0x9d);}const _0x2e3f26=resolveAnthropicThinkingConfig(_0x436f18['reasoning']);function _0x2fa5c3(_0x133f0e,_0x2e2e39,_0x578672,_0x592b6d){return _0x2b6123(_0x2e2e39,_0x2e2e39-0x132,_0x133f0e- -0x4ba,_0x592b6d-_0x2d9917._0xbfd783);}return _0x2e3f26!==void 0x0&&_0x2e3f26[_0x2fa5c3(-0x1fb,-0x282,-_0x34e238._0x475d89,-_0x34e238._0x5a1475)]!=='disabled'&&resolveReasoningVisibility(_0x436f18)===_0x453a1e(-_0x34e238._0x7d10ee,0x2d,-_0x34e238._0x1809d9,-_0x34e238._0x182477);}function createAnthropicThinkingBody(_0x1ffc19){const _0x2b8257={_0x102cc2:0x200,_0x4607d9:0x1d5,_0x32fdd0:0x188,_0xe7cf63:0x10d,_0x24e76b:0x60,_0xf7d6ee:0x189,_0x422672:0xec,_0x18fc6d:0x173,_0x5c1960:0x11c,_0xfc9943:0x1eb,_0x3ec95a:0x125,_0x205618:0x10c,_0x6832b4:0x18c,_0x54d168:0x118,_0x223489:0x1c6,_0x2ab71b:0x1e0,_0x3f8818:0x200,_0x28dba1:0x1da,_0x1d3b6f:0x1a0,_0x27618a:0x143,_0x186cb9:0xc9,_0x261b63:0x23e,_0x27d00d:0x1f0,_0x333d2f:0x1ff,_0x453be5:0x246,_0x536334:0xb6,_0x30e910:0x9d,_0x59689f:0x118},_0x57153e={_0x35eff2:0xcc,_0x431d62:0x5ef,_0x7732c6:0x9a},_0x2dcd3={_0x26db6e:0x197};function _0x3debaf(_0x4611f3,_0x391cd1,_0x5135a9,_0x52455c){return _0x2b6123(_0x5135a9,_0x391cd1-0x15b,_0x391cd1- -0x1dc,_0x52455c-_0x2dcd3._0x26db6e);}function _0x131355(_0x358c2c,_0x338a67,_0x2648f0,_0x17970f){return _0x38c793(_0x2648f0,_0x338a67-_0x57153e._0x35eff2,_0x17970f- -_0x57153e._0x431d62,_0x17970f-_0x57153e._0x7732c6);}const _0xa1db61=resolveAnthropicThinkingConfig(_0x1ffc19[_0x3debaf(0x1bc,0x18d,0x111,0x118)]);if(!_0xa1db61||_0xa1db61[_0x131355(-0x1f9,-0x235,-0x29a,-_0x2b8257._0x102cc2)]===_0x3debaf(0x22d,_0x2b8257._0x4607d9,_0x2b8257._0x32fdd0,0x139))return{};const _0x37f518=_0xa1db61[_0x3debaf(0xfd,_0x2b8257._0xe7cf63,0x42,_0x2b8257._0x24e76b)]??(isUserVisibleThinking(_0x1ffc19)?_0x131355(-_0x2b8257._0xf7d6ee,-_0x2b8257._0x422672,-_0x2b8257._0x18fc6d,-_0x2b8257._0x5c1960):_0x3debaf(0xc7,0x160,0x1e3,_0x2b8257._0xfc9943)),_0x3d797a=_0xa1db61[_0x3debaf(_0x2b8257._0x3ec95a,_0x2b8257._0x205618,0x154,_0x2b8257._0x6832b4)]?{'anthropic-beta':_0x131355(-_0x2b8257._0x54d168,-0x287,-_0x2b8257._0x223489,-_0x2b8257._0x2ab71b)}:void 0x0;if(_0xa1db61[_0x131355(-0x183,-0x254,-0x19a,-_0x2b8257._0x3f8818)]===_0x131355(-0x18e,-0x15d,-_0x2b8257._0x28dba1,-_0x2b8257._0x1d3b6f))return{..._0x3d797a?{'headers':_0x3d797a}:{},'thinking':{'type':_0x3debaf(0x152,_0x2b8257._0x27618a,_0x2b8257._0x186cb9,0xd4),'budget_tokens':_0xa1db61[_0x3debaf(0x1e4,0x173,_0x2b8257._0x261b63,0x197)],'display':_0x37f518}};return{..._0x3d797a?{'headers':_0x3d797a}:{},'thinking':{'type':'adaptive',..._0xa1db61[_0x131355(-_0x2b8257._0x27d00d,-0x2f5,-_0x2b8257._0x333d2f,-_0x2b8257._0x453be5)]?{'effort':_0xa1db61[_0x3debaf(_0x2b8257._0x536334,_0x2b8257._0x30e910,_0x2b8257._0x59689f,0x150)]}:{},'display':_0x37f518}};}function toAnthropicRequestContent(_0x37f43b){const _0x4b2409={_0x3f6a27:0x694,_0x3d0948:0x699,_0x99fe26:0x52a,_0x56b0d8:0x505,_0x2e2ad9:0x4e6,_0x594f55:0x487,_0x504043:0x57c,_0xfa2b32:0x3df,_0x1d9612:0x47d,_0x55108c:0x430,_0x265166:0x3f0,_0x3892db:0x3ed,_0x17d05c:0x440,_0x56ba92:0x4ad,_0x4cb6dd:0x49b,_0x2e51bf:0x435,_0x98140:0x491,_0x4f8301:0x3a0,_0x26c3a3:0x46b,_0x44d2d6:0x31c,_0x4bb8f3:0x5f5,_0x194a33:0x5dc,_0x1d2aae:0x5b6,_0x564e3c:0x4cc,_0x14c1a6:0x4e0,_0x15d006:0x4bb,_0x37951c:0x499,_0xa82966:0x46b,_0x44d1c6:0x4cb,_0xaf6b86:0x5f4,_0x1a280f:0x4bb,_0x15ce00:0x568,_0x487d7c:0x5b9,_0x326630:0x4f5},_0x389a1e={_0x308038:0x10f};if(_0x37f43b['role']===_0x55b63f(_0x4b2409._0x3f6a27,0x636,_0x4b2409._0x3d0948,0x682)&&_0x37f43b[_0x1ab11a(_0x4b2409._0x99fe26,_0x4b2409._0x56b0d8,_0x4b2409._0x2e2ad9,0x487)]?.['anthropicAssistantContent'])return structuredClone(_0x37f43b[_0x1ab11a(0x47f,0x505,_0x4b2409._0x594f55,_0x4b2409._0x504043)][_0x1ab11a(_0x4b2409._0xfa2b32,_0x4b2409._0x1d9612,_0x4b2409._0x55108c,_0x4b2409._0x265166)]);function _0x55b63f(_0x315e0e,_0x1a0f38,_0x28ff20,_0x4f3808){return _0x2b6123(_0x4f3808,_0x1a0f38-0x117,_0x1a0f38-0x2c8,_0x4f3808-0xbd);}const _0x1d6b53=[];function _0x1ab11a(_0x44306d,_0xfe052d,_0x596ef7,_0x3ec3fd){return _0x38c793(_0x3ec3fd,_0xfe052d-_0x389a1e._0x308038,_0xfe052d-0x35,_0x3ec3fd-0x18d);}for(const _0x5c771c of normalizeContent(_0x37f43b[_0x1ab11a(_0x4b2409._0x3892db,_0x4b2409._0x17d05c,_0x4b2409._0x56ba92,0x3f3)])){if(_0x5c771c['type']===_0x1ab11a(_0x4b2409._0x4cb6dd,_0x4b2409._0x2e51bf,0x3e8,_0x4b2409._0x98140))continue;if(_0x5c771c['type']===_0x1ab11a(0x373,_0x4b2409._0x4f8301,_0x4b2409._0x26c3a3,_0x4b2409._0x44d2d6)){_0x1d6b53[_0x55b63f(_0x4b2409._0x4bb8f3,_0x4b2409._0x194a33,0x593,_0x4b2409._0x1d2aae)]({'type':_0x1ab11a(0x572,_0x4b2409._0x564e3c,_0x4b2409._0x14c1a6,0x593),'thinking':_0x5c771c['thinking'],'signature':_0x5c771c[_0x1ab11a(0x443,_0x4b2409._0x15d006,_0x4b2409._0x37951c,_0x4b2409._0xa82966)]});continue;}if(_0x5c771c[_0x55b63f(_0x4b2409._0x44d1c6,0x587,0x572,_0x4b2409._0xaf6b86)]===_0x55b63f(_0x4b2409._0x1a280f,_0x4b2409._0x15ce00,_0x4b2409._0x487d7c,0x5ca)){_0x1d6b53['push']({'type':'redacted_thinking','data':_0x5c771c['data']});continue;}_0x1d6b53[_0x1ab11a(0x51c,0x479,_0x4b2409._0x326630,0x41d)](structuredClone(_0x5c771c));}return _0x1d6b53;}function createAnthropicRequest(_0x5f15c9,_0x51e727){const _0x428363={_0x20dfd0:0x6c,_0x306262:0x73,_0x5c0a1f:0xef,_0x53877d:0x3a,_0x2f0216:0xf,_0x3caf6f:0xc1,_0x11a5dd:0x89,_0x6996e6:0x8e,_0x3b9524:0xd,_0x521bb0:0x8d,_0x5b058b:0x11,_0x23c68c:0x9a},_0x140147={_0x5d0313:0x4f2,_0x1bea98:0x4e4,_0x456d64:0x58c},_0x2cd9b8={_0x124f1b:0x4a9},_0x1e0ba5={_0xba0747:0x12b},_0xafc13e={_0x1c5334:0x46},_0xb676d0=toProviderModelRequest(_0x5f15c9);function _0x53f91a(_0x80de,_0x3cbb48,_0x3533ee,_0x58cef8){return _0x2b6123(_0x80de,_0x3cbb48-_0xafc13e._0x1c5334,_0x3533ee- -0x29b,_0x58cef8-0xd9);}const _0x4d6e17=createAnthropicThinkingBody(_0x5f15c9);function _0x229293(_0x43579a,_0x1940b9,_0xf5812c,_0x220e89){return _0x2b6123(_0x220e89,_0x1940b9-0x4a,_0xf5812c- -0x2d9,_0x220e89-_0x1e0ba5._0xba0747);}return{'accept':_0x51e727?_0x229293(-0x4d,_0x428363._0x20dfd0,_0x428363._0x306262,0x117):_0x53f91a(-0x69,0xab,-0x1a,-0xa2),'body':{..._0xb676d0,'messages':_0x5f15c9[_0x229293(-_0x428363._0x5c0a1f,-0xc3,-_0x428363._0x53877d,-0x20)]['map'](_0x1632ae=>{function _0x1a47d7(_0x1fa77b,_0x12db7d,_0x23029f,_0x180def){return _0x53f91a(_0x1fa77b,_0x12db7d-0xcd,_0x12db7d-_0x2cd9b8._0x124f1b,_0x180def-0x93);}return{'role':_0x1632ae[_0x1a47d7(_0x140147._0x5d0313,0x529,_0x140147._0x1bea98,_0x140147._0x456d64)],'content':toAnthropicRequestContent(_0x1632ae)};}),..._0x4d6e17[_0x229293(_0x428363._0x2f0216,0x44,0x8e,0x7a)]?{'thinking':_0x4d6e17[_0x229293(_0x428363._0x3caf6f,_0x428363._0x11a5dd,_0x428363._0x6996e6,0x100)]}:{},..._0x51e727?{'stream':!![]}:{}},..._0x4d6e17[_0x53f91a(_0x428363._0x3b9524,0x5e,-0x27,-_0x428363._0x521bb0)]?{'headers':_0x4d6e17['headers']}:{},'path':_0x229293(_0x428363._0x5b058b,0x11,0x9b,_0x428363._0x23c68c)};}function parseAnthropicResponse(_0x32e2f3,_0x2dfa0c){const _0x32f391={_0x459466:0x458,_0x463edc:0x49f,_0x1e1b66:0x3d1,_0x52a003:0x4ff,_0x121369:0x39e,_0x2c9dfc:0x448,_0x53887c:0x507,_0x55d3b6:0x41b,_0x4e8b5d:0x433,_0x2ac84e:0x421,_0x5add9f:0x46a,_0x12cd44:0x434,_0x4b7cfc:0x434,_0x45b796:0x451,_0x2e4f84:0x3d4,_0x1f7dbf:0x3ff,_0x1edc32:0x370,_0x5e4f6b:0x37c,_0x27b647:0x414,_0x522fba:0x3b8,_0xe0b40c:0x446,_0x34ca2e:0x4f9,_0x32f461:0x3d0,_0x4f2724:0x4f4,_0x3cae2e:0x38d,_0x1a215c:0x3c7,_0x5e8255:0x4a5,_0x21fdb4:0x4d4,_0x45a1da:0x4a2,_0x5ab588:0x397,_0x49784f:0x423,_0x359bae:0x373,_0x3bb63d:0x407,_0x4c931c:0x3d0,_0x24ca21:0x4b3,_0x22eadb:0x469,_0xf5a0c6:0x3ea,_0x2a5d98:0x380,_0xd8d982:0x436,_0x4ba89e:0x364,_0x360f1a:0x44f,_0x30e362:0x3c6,_0xfa47c7:0x34e,_0x32b3a8:0x339,_0x54d6a1:0x394},_0x959459={_0x22cb45:0x134,_0x3ce950:0x1f2},_0x82dcc2={_0x34d8e5:0x1a3},_0x1bc717=[];function _0x5d5296(_0x52ee2c,_0x1427f2,_0x30354f,_0x2c25f0){return _0x2b6123(_0x30354f,_0x1427f2-_0x82dcc2._0x34d8e5,_0x2c25f0-0x1e0,_0x2c25f0-0x1af);}const _0x2fd9d4=_0x32e2f3['content']??[];let _0x331cc7=![];function _0x429ade(_0x454524,_0x51c609,_0x18a10d,_0x1d993e){return _0x2b6123(_0x454524,_0x51c609-0xdc,_0x51c609-_0x959459._0x22cb45,_0x1d993e-_0x959459._0x3ce950);}for(const _0x2c3b05 of _0x2fd9d4){if(_0x2c3b05[_0x5d5296(0x43e,0x4bd,_0x32f391._0x459466,_0x32f391._0x463edc)]===_0x429ade(_0x32f391._0x1e1b66,0x49b,_0x32f391._0x52a003,0x433)){_0x331cc7=!![];isUserVisibleThinking(_0x2dfa0c)&&_0x1bc717[_0x429ade(_0x32f391._0x121369,_0x32f391._0x2c9dfc,0x3c5,_0x32f391._0x53887c)]({'type':_0x5d5296(0x3ee,0x3ae,0x3ad,_0x32f391._0x55d3b6),'thinking':_0x2c3b05['thinking'],'signature':_0x2c3b05[_0x429ade(_0x32f391._0x4e8b5d,0x48a,_0x32f391._0x2ac84e,_0x32f391._0x5add9f)]});continue;}if(_0x2c3b05['type']===_0x5d5296(0x382,_0x32f391._0x12cd44,0x398,_0x32f391._0x4b7cfc)){_0x331cc7=!![];isUserVisibleThinking(_0x2dfa0c)&&_0x1bc717[_0x429ade(0x42b,0x448,0x3d2,_0x32f391._0x45b796)]({'type':_0x429ade(0x38c,_0x32f391._0x2e4f84,0x3bc,_0x32f391._0x1f7dbf),'data':_0x2c3b05[_0x429ade(0x34d,0x3a4,_0x32f391._0x1edc32,_0x32f391._0x5e4f6b)]});continue;}if(_0x2c3b05[_0x5d5296(_0x32f391._0x27b647,0x4b0,0x55a,_0x32f391._0x463edc)]===_0x429ade(_0x32f391._0x522fba,_0x32f391._0xe0b40c,_0x32f391._0x34ca2e,_0x32f391._0x32f461)){_0x2c3b05[_0x429ade(0x497,0x446,0x3b9,0x49c)][_0x5d5296(0x4f9,_0x32f391._0x522fba,0x4e3,0x47b)]>0x0&&_0x1bc717[_0x5d5296(0x47f,0x44d,0x545,_0x32f391._0x4f2724)](structuredClone(_0x2c3b05));continue;}_0x1bc717[_0x429ade(0x388,0x448,_0x32f391._0x3cae2e,_0x32f391._0x1a215c)](structuredClone(_0x2c3b05));}return{'id':_0x32e2f3['id']??_0x429ade(0x487,0x40e,_0x32f391._0x5e8255,0x42d)+Date[_0x5d5296(_0x32f391._0x4b7cfc,0x428,0x4ea,_0x32f391._0x21fdb4)](),'content':_0x1bc717,'stopReason':_0x1bc717[_0x5d5296(0x61d,0x577,_0x32f391._0x45a1da,0x55d)](_0xf6f270=>_0xf6f270[_0x429ade(0x335,0x3f3,0x393,0x3f5)]==='tool_use')?'tool_use':_0x32e2f3[_0x429ade(0x2ed,_0x32f391._0x5ab588,_0x32f391._0x49784f,_0x32f391._0x359bae)]===_0x429ade(0x46c,_0x32f391._0x3bb63d,_0x32f391._0x4c931c,0x4d0)?_0x5d5296(0x546,0x433,0x4f6,_0x32f391._0x24ca21):_0x5d5296(_0x32f391._0x22eadb,_0x32f391._0xf5a0c6,_0x32f391._0x2a5d98,_0x32f391._0xd8d982),'usage':{'inputTokens':_0x32e2f3[_0x429ade(0x317,_0x32f391._0x4ba89e,0x3e4,0x2e7)]?.[_0x429ade(_0x32f391._0x360f1a,_0x32f391._0x30e362,_0x32f391._0xfa47c7,_0x32f391._0x32b3a8)]??0x0,'outputTokens':_0x32e2f3[_0x5d5296(0x3ef,0x3f0,_0x32f391._0x54d6a1,0x410)]?.['output_tokens']??0x0},..._0x331cc7?{'providerState':{'anthropicAssistantContent':structuredClone(_0x2fd9d4)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x2b6123(0x267,0x1e3,0x2a6,0x2b0)]=new Map();[_0x38c793(0x4e5,0x50d,0x49a,0x3f4)]=0x0;[_0x2b6123(0x46b,0x3ca,0x3b9,0x42a)]=_0x38c793(0x3df,0x3f8,0x40a,0x3b6)+Date[_0x2b6123(0x287,0x234,0x2f4,0x25e)]();[_0x38c793(0x30e,0x390,0x36a,0x323)]=0x0;[_0x38c793(0x415,0x328,0x3dd,0x3ac)];[_0x2b6123(0x1ec,0x2d0,0x25a,0x1cb)]=_0x2b6123(0x293,0x1f3,0x256,0x2a5);constructor(_0x5150dc){const _0x10580c={_0x3c69aa:0x45e,_0x1d82c3:0x3fd},_0x387d08={_0x3d652a:0x1e6,_0x35cd09:0x126};function _0x121364(_0x2913a7,_0x42536,_0x17a6a6,_0x2a5aef){return _0x2b6123(_0x17a6a6,_0x42536-_0x387d08._0x3d652a,_0x2913a7-0x1b1,_0x2a5aef-_0x387d08._0x35cd09);}this[_0x121364(_0x10580c._0x3c69aa,0x4a9,_0x10580c._0x1d82c3,0x4ef)]=_0x5150dc;}[_0x2b6123(0x2b3,0x1e1,0x29c,0x20b)](_0x8788ff){const _0x3b432d={_0x1cd60b:0x385,_0x15470b:0x4f8,_0x2b1bc1:0x39d,_0xcc60f0:0x4ad,_0x420dbd:0x50d,_0x420d23:0x36f,_0x4984e7:0x436,_0x47c155:0x30b,_0x18abe7:0x3d2,_0x387e8d:0x4b3,_0x64de64:0x33d,_0x33ae0a:0x339,_0x5c3536:0x2b8,_0xc459bb:0x32b,_0x257b0d:0x357,_0x2000a6:0x2d1,_0x15090c:0x333,_0x289013:0x43d,_0x4f16ce:0x452,_0x3855a9:0x3d0,_0x119802:0x317,_0x4b1d3c:0x348,_0x410bde:0x431,_0x317126:0x4e4,_0x8a685f:0x4ea,_0x519faa:0x414,_0x42cd94:0x36c,_0x191632:0x46e,_0x1f98db:0x453,_0x5199e3:0x469,_0x37f3f0:0x401,_0x2ec1fd:0x3e1,_0x549a92:0x3a9,_0x237e0b:0x405,_0x446fcf:0x435,_0x44e7c2:0x3a0,_0x415dc2:0x3ec,_0x336467:0x315,_0x3e4556:0x3e7,_0x5377af:0x41f,_0x405935:0x42f,_0x838ed9:0x364,_0x40d7e1:0x453,_0x3ae5c3:0x491,_0x2e37dd:0x2ec,_0x4d8854:0x53e,_0x3edfe8:0x53e,_0x8e52e4:0x3a5,_0x3cc5ea:0x4ea,_0x91f65c:0x5ad,_0x55feba:0x3d7,_0x59f769:0x476,_0x482ae5:0x390,_0x43c062:0x409,_0x1769b7:0x36a,_0xc1e766:0x4bf,_0x2f74df:0x4fb,_0x44b4ec:0x4ce,_0x2ce060:0x4c8,_0x547f91:0x504,_0x4d2e62:0x3c8,_0x12d1f8:0x515,_0x269924:0x45f,_0x3afe78:0x480,_0xa07d4d:0x48f,_0x5c8f36:0x404,_0x51e520:0x3fa,_0xabddd4:0x43a,_0x11cfbf:0x416,_0x26ddfb:0x48c,_0x2489c9:0x448,_0x5db4ca:0x46b,_0x1153c3:0x4e8,_0x250e19:0x415,_0x11e08b:0x3d1,_0x40dd9c:0x3b2,_0x1b85ab:0x415,_0x122bec:0x464,_0x3c2164:0x408,_0x42edcd:0x42b,_0x344a31:0x420,_0x750f5f:0x4c2,_0x371e66:0x399,_0x4d9bb5:0x43f,_0x4694ee:0x4a6,_0x2b88d0:0x4fd,_0x663990:0x445,_0x534fa6:0x4bf,_0x65da1e:0x3af,_0x4cc2ec:0x444,_0x11e565:0x3bc,_0x319418:0x2ef,_0xd3b99a:0x431,_0x40fb69:0x48a,_0x150195:0x305,_0x564f9e:0x2d4,_0x10d27d:0x3ff,_0x222421:0x4cb,_0x3fec4d:0x49e,_0x29f776:0x410,_0x1838f2:0x408,_0x2deb89:0x444,_0x22abc3:0x376,_0x14dd27:0x494,_0x49fd71:0x493,_0x4a4efb:0x440,_0x19dc71:0x48e,_0x181c2b:0x46c,_0x4a162f:0x2ba,_0x57e671:0x43e,_0x43480d:0x433,_0x5d2ed6:0x3d4,_0x3b9cc2:0x460,_0x324fbf:0x42c,_0x60534d:0x37d,_0xf75e84:0x544,_0x1f3178:0x470,_0x3f395d:0x4bc,_0x220ff3:0x4fb,_0x52a7ba:0x3f4,_0x56c7b4:0x46c,_0x5b36fb:0x3df,_0x57c4b6:0x560,_0x54114c:0x54c,_0x10d5fb:0x4ea,_0x3e1233:0x457,_0x9484c4:0x4d1,_0xe7a4e1:0x3b0,_0x4077c8:0x48d,_0x7b44ef:0x50b,_0x3ba544:0x441,_0x571736:0x499,_0x48cd36:0x436,_0x255915:0x491,_0x4be047:0x472,_0x4b15c3:0x496,_0x29959c:0x31a,_0x2729f:0x3c4,_0xcbb877:0x377,_0x25e2c5:0x32c,_0x228765:0x3c8,_0x50579f:0x478,_0x5437a1:0x505,_0x3b84cd:0x44a,_0x5bbb80:0x412,_0x614c9f:0x365,_0x1979d0:0x32e,_0x39dd75:0x3dd,_0xc1f8b:0x3fd,_0x8cf38e:0x590,_0x11e30f:0x534,_0x59f83c:0x570,_0x536746:0x4d6,_0x17679a:0x497,_0xfd8106:0x3b8,_0x25d97b:0x46f,_0xc7f383:0x318},_0x1f0521={_0x8d8f8b:0x16c,_0x529b82:0x1c7},_0x3f1bcf={_0x35c9ae:0x6b,_0x2653fc:0x8};function _0x40119f(_0x3f4192,_0x4442ac,_0x178cf2,_0x4974c7){return _0x38c793(_0x4974c7,_0x4442ac-0x1db,_0x3f4192- -_0x3f1bcf._0x35c9ae,_0x4974c7-_0x3f1bcf._0x2653fc);}const _0x32e976=_0x8788ff[_0x40119f(0x3d2,0x446,_0x3b432d._0x1cd60b,0x37b)]('\x0a'),_0x924b9e=_0x32e976[_0x40119f(0x462,_0x3b432d._0x15470b,_0x3b432d._0x2b1bc1,0x406)](_0xf674dd=>_0xf674dd[_0x40119f(0x3b5,0x446,0x33e,0x43b)](_0x40119f(0x44e,0x4d8,0x420,0x384)))?.['slice'](0x6)['trim'](),_0x34ff7f=_0x32e976['filter'](_0x4a6361=>_0x4a6361['startsWith'](_0x40119f(0x33f,0x2f1,0x3dc,0x3a1)))[_0x20a203(0x522,0x516,_0x3b432d._0xcc60f0,_0x3b432d._0x420dbd)](_0x52cc48=>_0x52cc48[_0x20a203(0x4f5,0x463,0x3e5,0x4f3)](0x5)['trimStart']())['join']('\x0a')[_0x20a203(_0x3b432d._0x420d23,_0x3b432d._0x4984e7,0x3da,0x3b2)]();if(_0x34ff7f[_0x40119f(0x360,0x39d,0x2d2,_0x3b432d._0x47c155)]===0x0||_0x34ff7f==='[DONE]')return[];const _0x44b5d8=JSON[_0x20a203(_0x3b432d._0x18abe7,0x48b,0x430,_0x3b432d._0x387e8d)](_0x34ff7f);switch(_0x924b9e){case _0x40119f(_0x3b432d._0x64de64,0x34f,_0x3b432d._0x33ae0a,_0x3b432d._0x5c3536):{const _0x440e8f=_0x44b5d8['message'];this['messageId']=_0x440e8f?.['id']??this['messageId'],this['inputTokens']=_0x440e8f?.[_0x40119f(0x2f5,_0x3b432d._0xc459bb,0x236,0x2e9)]?.[_0x40119f(_0x3b432d._0x257b0d,_0x3b432d._0x2000a6,_0x3b432d._0x15090c,0x3cd)]??this[_0x40119f(0x42f,_0x3b432d._0x289013,0x3d7,_0x3b432d._0x4f16ce)];break;}case _0x40119f(_0x3b432d._0x3855a9,_0x3b432d._0x119802,_0x3b432d._0x4b1d3c,_0x3b432d._0x410bde):{const _0x4d4bb4=typeof _0x44b5d8[_0x20a203(0x54a,_0x3b432d._0x317126,_0x3b432d._0x8a685f,0x517)]===_0x20a203(0x3b3,_0x3b432d._0x519faa,_0x3b432d._0x42cd94,_0x3b432d._0x191632)?_0x44b5d8['index']:0x0,_0x352970=_0x44b5d8['content_block'];if(_0x352970?.[_0x20a203(0x494,_0x3b432d._0x1f98db,0x4c7,_0x3b432d._0x5199e3)]==='tool_use'&&_0x352970['id']&&_0x352970[_0x20a203(_0x3b432d._0x37f3f0,_0x3b432d._0x2ec1fd,_0x3b432d._0x549a92,_0x3b432d._0x237e0b)])return this['blocks'][_0x40119f(_0x3b432d._0x446fcf,0x488,0x3d8,_0x3b432d._0x44e7c2)](_0x4d4bb4,{'id':_0x352970['id'],'index':_0x4d4bb4,'inputJson':JSON[_0x20a203(_0x3b432d._0x415dc2,0x3d1,_0x3b432d._0x336467,_0x3b432d._0x3e4556)](_0x352970[_0x40119f(_0x3b432d._0x5377af,0x406,0x4ae,_0x3b432d._0x405935)]??{}),'kind':'tool_use','name':_0x352970['name']}),[{'type':'tool_use_delta','id':_0x352970['id'],'index':_0x4d4bb4,'name':_0x352970[_0x40119f(0x312,0x3cf,0x322,_0x3b432d._0x838ed9)]}];if(_0x352970?.[_0x20a203(0x48f,_0x3b432d._0x40d7e1,0x41a,0x4cb)]===_0x40119f(0x42c,_0x3b432d._0x3ae5c3,0x39b,0x481)){this[_0x40119f(0x36b,0x3fb,_0x3b432d._0x2e37dd,0x3b1)][_0x20a203(0x500,0x504,0x446,0x572)](_0x4d4bb4,{'index':_0x4d4bb4,'kind':'thinking','signature':typeof _0x352970[_0x20a203(_0x3b432d._0x4d8854,0x4ea,0x436,_0x3b432d._0x3edfe8)]===_0x40119f(0x390,0x3da,_0x3b432d._0x8e52e4,0x315)?_0x352970[_0x20a203(0x4eb,_0x3b432d._0x3cc5ea,0x4a9,_0x3b432d._0x91f65c)]:'','thinking':typeof _0x352970[_0x40119f(_0x3b432d._0x55feba,0x39b,_0x3b432d._0x59f769,0x43f)]===_0x40119f(_0x3b432d._0x482ae5,_0x3b432d._0x43c062,_0x3b432d._0x1769b7,0x34a)?_0x352970['text']:typeof _0x352970[_0x20a203(0x472,0x4fb,0x4ca,0x4be)]===_0x40119f(_0x3b432d._0x482ae5,0x3d6,0x3e9,0x32a)?String(_0x352970[_0x20a203(_0x3b432d._0xc1e766,_0x3b432d._0x2f74df,_0x3b432d._0x44b4ec,0x5b6)]):''});break;}if(_0x352970?.[_0x20a203(0x3a7,0x453,0x3fc,0x492)]==='redacted_thinking'){this[_0x40119f(0x36b,0x2a3,0x37e,0x400)][_0x20a203(_0x3b432d._0x2ce060,_0x3b432d._0x547f91,0x44e,0x47c)](_0x4d4bb4,{'index':_0x4d4bb4,'kind':_0x20a203(_0x3b432d._0x4d2e62,0x3e8,0x3c4,0x331),'data':typeof _0x352970['data']===_0x20a203(_0x3b432d._0x12d1f8,_0x3b432d._0x269924,_0x3b432d._0x3afe78,0x3fb)?String(_0x352970[_0x20a203(_0x3b432d._0xa07d4d,_0x3b432d._0x5c8f36,_0x3b432d._0x51e520,0x3d2)]):''});break;}this[_0x20a203(0x498,_0x3b432d._0xabddd4,_0x3b432d._0x11cfbf,0x425)]['set'](_0x4d4bb4,{'index':_0x4d4bb4,'kind':'text','text':_0x352970?.[_0x40119f(0x3d7,_0x3b432d._0x26ddfb,0x3ae,0x322)]??''});break;}case _0x40119f(_0x3b432d._0x2489c9,_0x3b432d._0x5db4ca,0x404,_0x3b432d._0x1153c3):{const _0xc2cff=typeof _0x44b5d8[_0x40119f(_0x3b432d._0x250e19,0x36e,_0x3b432d._0x11e08b,0x38e)]===_0x20a203(0x42a,0x414,_0x3b432d._0x40dd9c,0x483)?_0x44b5d8[_0x40119f(_0x3b432d._0x1b85ab,_0x3b432d._0x122bec,_0x3b432d._0x3c2164,0x4c4)]:0x0,_0x399b6a=this['blocks']['get'](_0xc2cff),_0x1be16a=_0x44b5d8['delta'];if(!_0x399b6a||!_0x1be16a?.['type'])break;if(_0x1be16a[_0x20a203(_0x3b432d._0x42edcd,0x453,0x47f,_0x3b432d._0x344a31)]===_0x40119f(0x3fb,_0x3b432d._0x750f5f,_0x3b432d._0x371e66,0x4bd)&&_0x399b6a['kind']==='text'&&typeof _0x1be16a[_0x20a203(_0x3b432d._0x4d9bb5,_0x3b432d._0x4694ee,_0x3b432d._0x2b88d0,_0x3b432d._0x663990)]===_0x20a203(_0x3b432d._0x534fa6,_0x3b432d._0x269924,_0x3b432d._0x65da1e,0x3dd))return _0x399b6a[_0x40119f(0x3d7,0x373,_0x3b432d._0x4cc2ec,_0x3b432d._0x11e565)]+=_0x1be16a[_0x20a203(0x56d,0x4a6,0x4de,0x414)],[{'type':'content_delta','index':_0xc2cff,'text':_0x1be16a['text']}];if(_0x1be16a[_0x40119f(0x384,0x411,_0x3b432d._0x319418,_0x3b432d._0xd3b99a)]===_0x40119f(0x3f9,_0x3b432d._0x40fb69,0x3e4,0x43f)&&_0x399b6a[_0x40119f(_0x3b432d._0x150195,_0x3b432d._0x564f9e,0x30e,0x282)]===_0x20a203(_0x3b432d._0x10d27d,0x467,0x488,_0x3b432d._0x222421)&&typeof _0x1be16a[_0x20a203(0x407,_0x3b432d._0x3fec4d,0x3f6,0x528)]==='string')return _0x399b6a[_0x40119f(_0x3b432d._0x29f776,0x364,_0x3b432d._0x1838f2,0x43e)]==='{}'&&(_0x399b6a[_0x20a203(0x452,0x4df,_0x3b432d._0x2deb89,0x473)]=''),_0x399b6a[_0x40119f(_0x3b432d._0x29f776,0x3cc,_0x3b432d._0x22abc3,_0x3b432d._0x1cd60b)]+=_0x1be16a[_0x20a203(0x502,0x49e,_0x3b432d._0x14dd27,0x47d)],[{'type':_0x20a203(0x4cd,0x476,_0x3b432d._0x49fd71,0x52f),'id':_0x399b6a['id'],'index':_0xc2cff,'inputDelta':_0x1be16a[_0x40119f(0x3cf,_0x3b432d._0x4a4efb,_0x3b432d._0x19dc71,_0x3b432d._0x181c2b)]}];if(_0x1be16a[_0x40119f(0x384,_0x3b432d._0x4a162f,0x3d2,_0x3b432d._0x57e671)]===_0x40119f(0x47a,0x3e7,0x4e0,_0x3b432d._0x43480d)&&_0x399b6a[_0x20a203(0x45e,_0x3b432d._0x5d2ed6,_0x3b432d._0x3b9cc2,0x321)]===_0x40119f(_0x3b432d._0x324fbf,0x38c,0x4af,_0x3b432d._0x60534d)){const _0x41e4a8=typeof _0x1be16a[_0x20a203(0x5a5,_0x3b432d._0x2f74df,_0x3b432d._0xf75e84,0x55a)]===_0x20a203(0x39f,_0x3b432d._0x269924,_0x3b432d._0x1f3178,0x441)?String(_0x1be16a[_0x20a203(_0x3b432d._0x3f395d,_0x3b432d._0x220ff3,0x555,0x467)]):'';if(_0x41e4a8[_0x20a203(_0x3b432d._0x181c2b,0x42f,0x3a0,_0x3b432d._0x52a7ba)]>0x0){_0x399b6a['thinking']+=_0x41e4a8;if(isUserVisibleThinking(this['request']))return[{'type':_0x40119f(0x3cd,0x39d,0x477,_0x3b432d._0x56c7b4),'index':_0xc2cff,'thinking':_0x41e4a8}];}}if(_0x1be16a['type']===_0x40119f(0x425,_0x3b432d._0x5b36fb,0x472,0x427)&&_0x399b6a['kind']===_0x20a203(_0x3b432d._0x57c4b6,0x4fb,_0x3b432d._0x54114c,0x5bf)){const _0x1d85f9=typeof _0x1be16a[_0x20a203(0x446,_0x3b432d._0x10d5fb,0x599,_0x3b432d._0x3e1233)]===_0x20a203(_0x3b432d._0x9484c4,0x45f,_0x3b432d._0xe7a4e1,_0x3b432d._0x750f5f)?String(_0x1be16a[_0x20a203(0x4e1,0x4ea,0x571,_0x3b432d._0x4077c8)]):'';if(_0x1d85f9['length']>0x0){_0x399b6a[_0x20a203(0x423,_0x3b432d._0x3cc5ea,0x436,0x423)]=_0x1d85f9;if(isUserVisibleThinking(this[_0x20a203(_0x3b432d._0x7b44ef,_0x3b432d._0x3ba544,0x4e4,0x41f)]))return[{'type':_0x20a203(_0x3b432d._0x4694ee,0x50f,0x4df,_0x3b432d._0x571736),'index':_0xc2cff,'signature':_0x1d85f9}];}}break;}case _0x20a203(_0x3b432d._0x48cd36,_0x3b432d._0x255915,_0x3b432d._0x4be047,_0x3b432d._0x4b15c3):{const _0x3a64e2=_0x44b5d8['delta'],_0x26ae5f=_0x44b5d8[_0x20a203(_0x3b432d._0x29959c,_0x3b432d._0x2729f,0x34a,_0x3b432d._0xcbb877)];this[_0x40119f(0x2ff,_0x3b432d._0x25e2c5,_0x3b432d._0x228765,0x2be)]=_0x26ae5f?.[_0x40119f(_0x3b432d._0x50579f,0x3e3,_0x3b432d._0x5437a1,_0x3b432d._0x3b84cd)]??this[_0x20a203(_0x3b432d._0x5bbb80,0x3ce,0x3e2,_0x3b432d._0x614c9f)],this['stopReason']=_0x3a64e2?.[_0x40119f(0x328,_0x3b432d._0x1979d0,0x301,0x34a)]===_0x20a203(0x4bc,0x467,0x4c8,_0x3b432d._0x40d7e1)?_0x20a203(_0x3b432d._0x39dd75,0x467,_0x3b432d._0xc1f8b,0x46a):'end_turn';break;}case _0x20a203(0x488,0x4d6,_0x3b432d._0x8cf38e,_0x3b432d._0x11e30f):{const _0x18a613=_0x44b5d8[_0x20a203(_0x3b432d._0x59f83c,_0x3b432d._0x536746,_0x3b432d._0x17679a,0x411)];throw new Error(_0x18a613?.['message']??_0x40119f(_0x3b432d._0xfd8106,_0x3b432d._0x25d97b,_0x3b432d._0xc7f383,0x403));}}function _0x20a203(_0x49517e,_0x2f05f6,_0x1b50e9,_0x5e5c8e){return _0x38c793(_0x49517e,_0x2f05f6-_0x1f0521._0x8d8f8b,_0x2f05f6-0x64,_0x5e5c8e-_0x1f0521._0x529b82);}return[];}[_0x2b6123(0x3c7,0x360,0x38e,0x458)](){const _0x4ac3a0={_0x351178:0x3b3,_0x676f32:0x468,_0x167d5b:0x3f9,_0x886451:0x4f7,_0x484c7c:0x4c3,_0x1b349b:0x4e1,_0x3a61f5:0x118,_0x18cd06:0xe1,_0x2cbe06:0x159,_0x115000:0x16d,_0x410b97:0x240,_0x44bced:0x468,_0x407c36:0x4f7,_0x21d02e:0x426,_0x50c67a:0x4e2,_0x3cba0e:0x45d,_0x258c79:0x44b,_0x2925e9:0x1b5,_0x5ef27c:0x1c5,_0x3f6670:0x12a,_0x11ad7a:0x16f,_0x2ac202:0x157,_0x30e1a6:0x390,_0x1b0261:0x36d,_0x59477e:0x402,_0x1cb3e5:0x4ca,_0x90b063:0x55f,_0x547e54:0x59d,_0x215bd3:0x520,_0x5e9589:0x58d,_0x34a2bc:0x449,_0x20af11:0x465,_0x26458b:0x1a0,_0x1bb4bb:0x208,_0x1e6dfe:0x2a1,_0xef927a:0x518,_0x329a9c:0x5cc,_0x2312e4:0x3a0,_0x52d162:0x3a2,_0x1b299f:0x3ab,_0x3233fb:0x416,_0x6a1ca:0x172,_0x59eabc:0x1b5,_0x7fad18:0x203,_0x1f6000:0x1fa,_0x499946:0x1f0,_0x2ad857:0x155,_0x334120:0x142,_0x13af06:0xd6,_0x59a3e0:0x63,_0x582ace:0x50d,_0x45f931:0x4b1,_0x2126f9:0x528,_0x13d68f:0x198,_0x317876:0x1d8,_0x9e227e:0x290,_0x1edb4a:0x42c,_0x85bbc3:0x4be,_0x37a412:0x42d,_0x3b98c2:0x43d,_0x4ae560:0x3fc,_0xdf40f0:0x431},_0x3a6827={_0x41ddf9:0x59,_0x1a7b3c:0xd1},_0x2cc983={_0xfb7e7:0x14b,_0x3e094a:0x168};function _0x58a84e(_0x426c11,_0x4f9d14,_0xb958fa,_0x27711c){return _0x2b6123(_0x426c11,_0x4f9d14-_0x2cc983._0xfb7e7,_0xb958fa-0x1c2,_0x27711c-_0x2cc983._0x3e094a);}const _0x2c2f83=Array['from'](this[_0x58a84e(0x4b3,_0x4ac3a0._0x351178,_0x4ac3a0._0x676f32,0x51e)][_0x58a84e(_0x4ac3a0._0x167d5b,0x416,0x4a9,_0x4ac3a0._0x886451)]())[_0x58a84e(0x421,0x486,_0x4ac3a0._0x484c7c,_0x4ac3a0._0x1b349b)]((_0x55e008,_0x41cd79)=>_0x55e008[_0x3eee00(0x284,0x1f1,0x13d,0x177)]-_0x41cd79[_0x3eee00(0x12c,0x1f1,0x221,0x143)]),_0x287d4c=[];function _0x3eee00(_0x23b092,_0x4b9c85,_0x180998,_0x5a70d5){return _0x38c793(_0x180998,_0x4b9c85-_0x3a6827._0x41ddf9,_0x4b9c85- -0x28f,_0x5a70d5-_0x3a6827._0x1a7b3c);}for(const _0x3d043c of _0x2c2f83){if(_0x3d043c[_0x3eee00(_0x4ac3a0._0x3a61f5,_0x4ac3a0._0x18cd06,_0x4ac3a0._0x2cbe06,0x144)]===_0x3eee00(0x22f,0x1b3,_0x4ac3a0._0x115000,_0x4ac3a0._0x410b97)){_0x3d043c[_0x58a84e(_0x4ac3a0._0x44bced,_0x4ac3a0._0x407c36,0x4d4,_0x4ac3a0._0x21d02e)][_0x58a84e(_0x4ac3a0._0x50c67a,0x49b,_0x4ac3a0._0x3cba0e,_0x4ac3a0._0x258c79)]>0x0&&_0x287d4c[_0x3eee00(0x1be,_0x4ac3a0._0x2925e9,_0x4ac3a0._0x5ef27c,0x25b)]({'type':_0x3eee00(_0x4ac3a0._0x3f6670,0x1b3,_0x4ac3a0._0x11ad7a,_0x4ac3a0._0x2ac202),'text':_0x3d043c['text']});continue;}if(_0x3d043c[_0x58a84e(_0x4ac3a0._0x30e1a6,_0x4ac3a0._0x1b0261,_0x4ac3a0._0x59477e,_0x4ac3a0._0x1cb3e5)]===_0x58a84e(_0x4ac3a0._0x90b063,_0x4ac3a0._0x547e54,0x529,_0x4ac3a0._0x215bd3)){_0x287d4c[_0x58a84e(_0x4ac3a0._0x5e9589,_0x4ac3a0._0x34a2bc,0x4d6,_0x4ac3a0._0x20af11)]({'type':'thinking','thinking':_0x3d043c[_0x3eee00(_0x4ac3a0._0x26458b,_0x4ac3a0._0x1bb4bb,_0x4ac3a0._0x1e6dfe,0x205)],'signature':_0x3d043c[_0x58a84e(0x5ba,0x46a,_0x4ac3a0._0xef927a,_0x4ac3a0._0x329a9c)]});continue;}if(_0x3d043c[_0x58a84e(_0x4ac3a0._0x2312e4,_0x4ac3a0._0x52d162,0x402,_0x4ac3a0._0x1b299f)]===_0x58a84e(0x435,0x3e9,_0x4ac3a0._0x3233fb,0x397)){_0x287d4c[_0x3eee00(_0x4ac3a0._0x6a1ca,_0x4ac3a0._0x59eabc,_0x4ac3a0._0x7fad18,0x270)]({'type':'redacted_thinking','data':_0x3d043c['data']});continue;}_0x287d4c[_0x3eee00(_0x4ac3a0._0x1f6000,0x1b5,_0x4ac3a0._0x499946,_0x4ac3a0._0x2ad857)]({'type':'tool_use','id':_0x3d043c['id'],'name':_0x3d043c[_0x3eee00(_0x4ac3a0._0x334120,0xee,_0x4ac3a0._0x13af06,_0x4ac3a0._0x59a3e0)],'input':parseToolInput(_0x3d043c[_0x58a84e(0x45b,0x570,_0x4ac3a0._0x582ace,0x571)][_0x58a84e(0x4ac,_0x4ac3a0._0x45f931,0x45d,_0x4ac3a0._0x2126f9)]>0x0?_0x3d043c['inputJson']:'{}')});}return parseAnthropicResponse({'id':this[_0x3eee00(_0x4ac3a0._0x13d68f,0x25a,_0x4ac3a0._0x317876,_0x4ac3a0._0x9e227e)],'type':_0x58a84e(_0x4ac3a0._0x1edb4a,0x3b6,0x474,_0x4ac3a0._0x85bbc3),'role':'assistant','content':_0x287d4c,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x58a84e(_0x4ac3a0._0x37a412,_0x4ac3a0._0x3b98c2,_0x4ac3a0._0x4ae560,_0x4ac3a0._0xdf40f0)]}},this['request']);}};function createAnthropicSurfaces(){const _0x1d6734={_0x17af88:0x36b,_0x424342:0xdf,_0x47f907:0xc4,_0x4eb062:0x7},_0x504f82={_0x444cf1:0x77};function _0x42194e(_0x55fd64,_0x26de0c,_0x2c187a,_0x301389){return _0x38c793(_0x301389,_0x26de0c-0x1b7,_0x2c187a- -0x29e,_0x301389-0x104);}function _0x5f42aa(_0x2fa778,_0x33568f,_0x2b3847,_0x3aa9ef){return _0x2b6123(_0x33568f,_0x33568f-0x2e,_0x2b3847-_0x504f82._0x444cf1,_0x3aa9ef-0x1d4);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x5f42aa(0x32a,0x2a2,0x2d0,_0x1d6734._0x17af88),'createRequest'(_0x2fa7d3){return createAnthropicRequest(_0x2fa7d3,![]);},'parseResponse'(_0xe8a2aa,_0x4782d8){return parseAnthropicResponse(_0xe8a2aa,_0x4782d8);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x42194e(_0x1d6734._0x424342,0x1a,_0x1d6734._0x47f907,_0x1d6734._0x4eb062),'createRequest'(_0xe120f2){return createAnthropicRequest(_0xe120f2,!![]);},'createStreamParser'(_0x1640d7){return new AnthropicMessagesStreamParser(_0x1640d7);}}];}var StaticModelSurfaceRouter=class{[_0x38c793(0x398,0x473,0x3eb,0x416)];[_0x38c793(0x2ef,0x2c6,0x35f,0x39d)];constructor(_0x53e5cc){const _0x647e9c={_0x2ccfac:0x5f8,_0x3ffca5:0x5f6,_0x130f20:0x66f,_0x463b80:0x5a4},_0x54984e={_0x1e3650:0x51};this[_0x33bcaa(0x568,_0x647e9c._0x2ccfac,0x4b9,0x5a7)]=_0x53e5cc['complete'];function _0x33bcaa(_0x2ff4ac,_0x5c5f7a,_0x5a85d7,_0x2820cb){return _0x38c793(_0x5a85d7,_0x5c5f7a-0xbb,_0x2ff4ac-0x17d,_0x2820cb-0x1b8);}function _0x5d75d2(_0x33ac4d,_0x251116,_0x4fc27a,_0x148ed5){return _0x2b6123(_0x33ac4d,_0x251116-0x7,_0x148ed5-_0x54984e._0x1e3650,_0x148ed5-0x12a);}this['streamSurface']=_0x53e5cc[_0x33bcaa(_0x647e9c._0x3ffca5,0x66c,_0x647e9c._0x130f20,_0x647e9c._0x463b80)];}['selectSurface'](_0x4d1c72,_0x5a4c1c){const _0x53d5f5={_0x3a0a93:0x265,_0x5c354a:0x1bb,_0x28958e:0x1f,_0xebfc40:0x170,_0xe11813:0x24e,_0x449d2d:0x22e},_0x546571={_0x5bd093:0x1f4};function _0x5069dd(_0xcc3702,_0x2708d9,_0x1a4941,_0xbe63bc){return _0x38c793(_0x1a4941,_0x2708d9-0x121,_0xcc3702- -0x5ac,_0xbe63bc-_0x546571._0x5bd093);}function _0x3a7b2(_0x1c2657,_0x2c4686,_0x14c0d7,_0x492520){return _0x38c793(_0x14c0d7,_0x2c4686-0x1c5,_0x2c4686- -0x410,_0x492520-0xf4);}return _0x5a4c1c[_0x5069dd(-0x1e9,-_0x53d5f5._0x3a0a93,-_0x53d5f5._0x5c354a,-0x14a)]===_0x3a7b2(-_0x53d5f5._0x28958e,0x69,0x90,0x3f)?this['streamSurface']:this[_0x5069dd(-0x1c1,-_0x53d5f5._0xebfc40,-_0x53d5f5._0xe11813,-_0x53d5f5._0x449d2d)];}};function trimTrailingSlashes(_0x48058d){const _0x272144={_0x5cf57e:0x343,_0x183e6c:0x364,_0x53fbf5:0x32a},_0x49414f={_0x25808b:0x8b,_0x3d6a1b:0x186,_0x5a08ff:0xd};function _0x22c12e(_0x584a1e,_0x100529,_0x1338f3,_0x58a2d9){return _0x38c793(_0x1338f3,_0x100529-_0x49414f._0x25808b,_0x584a1e- -_0x49414f._0x3d6a1b,_0x58a2d9-_0x49414f._0x5a08ff);}return _0x48058d[_0x22c12e(0x2da,_0x272144._0x5cf57e,_0x272144._0x183e6c,_0x272144._0x53fbf5)](/\/+$/,'');}function resolveApiCredential(_0x6bf615,_0x35b43e){const _0x395a16={_0xeefdb7:0x4cc,_0x2a4a7c:0x15d,_0x1956de:0x1c0},_0x2d6b04={_0x425961:0x98},_0x430e41={_0x34465b:0x1c8,_0x52dfcd:0x130};function _0x2e5dd0(_0x26d9ea,_0x406301,_0x32738e,_0x31a3a5){return _0x2b6123(_0x406301,_0x406301-0x134,_0x32738e- -_0x430e41._0x34465b,_0x31a3a5-_0x430e41._0x52dfcd);}if(_0x35b43e?.[_0x3c8b4d(0x359,0x41c,0x4dc,_0x395a16._0xeefdb7)])return _0x35b43e[_0x3c8b4d(0x3a7,0x41c,0x48c,0x4d7)];function _0x3c8b4d(_0x2fddbd,_0x7699be,_0x423607,_0x5aeaea){return _0x38c793(_0x5aeaea,_0x7699be-0x133,_0x7699be- -_0x2d6b04._0x425961,_0x5aeaea-0x13d);}if(!_0x6bf615)return void 0x0;return{'kind':_0x2e5dd0(_0x395a16._0x2a4a7c,0x19c,_0x395a16._0x1956de,0x238),'value':_0x6bf615};}function resolveSessionBaseUrl(_0x101d46,_0x4e3258){const _0x437532={_0x2d6ea8:0xf,_0xd76074:0x6f,_0x2ba3d3:0xe1,_0x26c003:0x35},_0x5e0c7d={_0x30338b:0x3d2,_0x4e32fa:0xb1};function _0x51cb52(_0x1d9159,_0x5d8673,_0x55bc9f,_0x16cb95){return _0x38c793(_0x16cb95,_0x5d8673-0x168,_0x5d8673-0x26,_0x16cb95-0x4d);}function _0x1d9438(_0x4a230d,_0x3b5e2a,_0x3a16ba,_0x5b772c){return _0x38c793(_0x3a16ba,_0x3b5e2a-0xd5,_0x3b5e2a- -_0x5e0c7d._0x30338b,_0x5b772c-_0x5e0c7d._0x4e32fa);}return trimTrailingSlashes(_0x4e3258?.[_0x1d9438(-_0x437532._0x2d6ea8,_0x437532._0xd76074,-0x26,_0x437532._0x2ba3d3)]?.[_0x1d9438(0xb8,_0x437532._0x26c003,0x14,0xe5)]??_0x101d46);}function toErrorMessage(_0x356af5){const _0x3670da={_0x2460a2:0x3a4,_0x113c82:0x3d,_0x40e59e:0x55,_0x4ed865:0x88,_0x407317:0x7e,_0x23478e:0x19},_0x3257ee={_0x482972:0x319,_0x38190e:0x3f},_0x496a13={_0x1f556c:0x193,_0x358d7c:0xf2,_0x1b8ae2:0xd3};function _0x87d7c0(_0x4491b5,_0x4de173,_0x5a6fd0,_0x53e808){return _0x2b6123(_0x5a6fd0,_0x4de173-_0x496a13._0x1f556c,_0x4de173-_0x496a13._0x358d7c,_0x53e808-_0x496a13._0x1b8ae2);}function _0x18af36(_0x591f5a,_0x3e1576,_0x14fff3,_0x52c302){return _0x2b6123(_0x3e1576,_0x3e1576-0x160,_0x52c302- -_0x3257ee._0x482972,_0x52c302-_0x3257ee._0x38190e);}if(_0x356af5 instanceof Error&&_0x356af5[_0x87d7c0(0x431,_0x3670da._0x2460a2,0x3dc,0x330)][_0x18af36(-_0x3670da._0x113c82,-_0x3670da._0x40e59e,-_0x3670da._0x4ed865,-_0x3670da._0x407317)]>0x0)return _0x356af5['message'];return _0x18af36(0x98,0x29,0x81,_0x3670da._0x23478e);}function createDefaultWebSocketFactory(){const _0x235696={_0x7593d4:0x4af,_0x14aa57:0x480,_0xaddc2b:0x45a},_0x3400ae={_0x23632a:0x1f1};return({headers:_0xd88590,url:_0x2b7cec})=>{const _0x4f9906=globalThis[_0x4c2e6a(_0x235696._0x7593d4,0x55b,_0x235696._0x14aa57,_0x235696._0xaddc2b)];function _0x4c2e6a(_0x43ae71,_0xa6c685,_0x48cab8,_0x247a25){return _0x25f1(_0x43ae71-_0x3400ae._0x23632a,_0x48cab8);}return new _0x4f9906(_0x2b7cec,{'headers':_0xd88590,'protocols':[]});};}async function*iterateSseEvents(_0x13b3a7,_0x187dde){const _0x4a8a2a={_0x4b17cb:0x57,_0x10fd0d:0x277,_0x1fcf8c:0x1f1,_0x26da05:0xe3,_0x413f96:0x75,_0x50b235:0x106,_0xadf783:0x164,_0x5c35f0:0x1d8,_0x33f92e:0x82,_0x22484a:0x115,_0x28fcba:0x61,_0x1b14a8:0x24d,_0x1cfacf:0x2f2},_0x509e2b={_0x1f9742:0x168,_0x1faae3:0xc3,_0x5ee7c6:0xab,_0x5a07f5:0x3b},_0x3a0d90={_0x1c87da:0x17a,_0x479ccf:0x17,_0x4ec713:0x73},_0x2f2a1d={_0x372101:0x384},_0x76a1c5={_0x2dc4e4:0x29b};function _0x53b4b9(_0x3a4e37,_0x3083cd,_0x26eb83,_0x5a2d45){return _0x38c793(_0x26eb83,_0x3083cd-0x190,_0x3083cd- -_0x76a1c5._0x2dc4e4,_0x5a2d45-0x1cd);}const _0x566e91=_0x13b3a7[_0x53b4b9(0xec,0xd4,_0x4a8a2a._0x4b17cb,0x166)]?.[_0x53b4b9(_0x4a8a2a._0x10fd0d,_0x4a8a2a._0x1fcf8c,0x245,0x24b)]();if(!_0x566e91)return;function _0x545560(_0x52c75c,_0x54776d,_0x303d09,_0x4317bb){return _0x2b6123(_0x303d09,_0x54776d-0x1c7,_0x54776d- -_0x2f2a1d._0x372101,_0x4317bb-0x2a);}const _0x4ed76b=new TextDecoder('utf-8');let _0x4f239f='';const _0x86df66=addAbortListener(_0x187dde,()=>{const _0x5b8628={_0x5bd472:0x12b,_0x1aeae4:0x5b9};function _0x4791b8(_0x56e68f,_0x3eb37e,_0x58df0b,_0x469b36){return _0x545560(_0x56e68f-_0x5b8628._0x5bd472,_0x58df0b-_0x5b8628._0x1aeae4,_0x56e68f,_0x469b36-0x71);}function _0x393533(_0x398cca,_0x44f15e,_0x57b318,_0x13475a){return _0x545560(_0x398cca-_0x3a0d90._0x1c87da,_0x13475a-_0x3a0d90._0x479ccf,_0x398cca,_0x13475a-_0x3a0d90._0x4ec713);}void _0x566e91[_0x393533(-0x127,-_0x509e2b._0x1f9742,-0xfe,-_0x509e2b._0x1faae3)](toAbortError(_0x187dde?.[_0x393533(-0x29,_0x509e2b._0x5ee7c6,0x2f,_0x509e2b._0x5a07f5)]))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x187dde);const {value:_0x3adf1e,done:_0xec4b1a}=await _0x566e91['read']();throwIfAborted(_0x187dde);if(_0xec4b1a)break;_0x4f239f+=_0x4ed76b[_0x53b4b9(0x24b,0x24d,0x1a6,0x1bb)](_0x3adf1e,{'stream':!![]});while(!![]){const _0x1c5bd0=_0x4f239f[_0x545560(-_0x4a8a2a._0x26da05,-_0x4a8a2a._0x413f96,0x34,-_0x4a8a2a._0x50b235)]('\x0a\x0a');if(_0x1c5bd0===-0x1)break;const _0x24671a=_0x4f239f['slice'](0x0,_0x1c5bd0);_0x4f239f=_0x4f239f[_0x53b4b9(0x1f3,_0x4a8a2a._0xadf783,0x12b,0x13a)](_0x1c5bd0+0x2),_0x24671a[_0x53b4b9(_0x4a8a2a._0x5c35f0,0x137,_0x4a8a2a._0x33f92e,_0x4a8a2a._0x22484a)]()[_0x545560(-0x59,-0xe9,-_0x4a8a2a._0x28fcba,-0x24)]>0x0&&(yield _0x24671a);}}_0x4f239f+=_0x4ed76b[_0x53b4b9(0x29e,_0x4a8a2a._0x1b14a8,_0x4a8a2a._0x1cfacf,0x27d)](),throwIfAborted(_0x187dde),_0x4f239f['trim']()['length']>0x0&&(yield _0x4f239f);}finally{_0x86df66();}}async function waitForWebSocketOpen(_0x57d6e3,_0x3f93fc){const _0x1aa18f={_0x16b49e:0x24b,_0x51a5ae:0x35a,_0x5cefd9:0x35f,_0x3fab36:0x2c6,_0x5a1fff:0x23a,_0x85f8e6:0x1f9,_0x5c25ce:0x337},_0x33d5e6={_0x463d13:0xcc},_0x1f198e={_0x1b23bd:0x1de,_0x523fc6:0x138,_0x32030f:0xf0,_0x482da4:0xb2},_0x59e497={_0x418814:0x2cb};if(_0x57d6e3['readyState']===WebSocket['OPEN']){throwIfAborted(_0x3f93fc);return;}throwIfAborted(_0x3f93fc),await new Promise((_0x41af25,_0x44d26a)=>{const _0x14b1ad={_0x1e8335:0x106},_0x54cdd3={_0x1a1043:0x4ef,_0x54227d:0x551,_0x25a59f:0x527,_0x5ecfbf:0x276,_0xcfc670:0x2a9,_0x59b53a:0x321,_0x5af63b:0x2cc,_0x564722:0x274,_0x581f91:0x2ba,_0x40271b:0x2a3},_0x403706={_0xac61ea:0x29b},_0x15f24d={_0x529fcd:0x62},_0x1790dd={_0x213fb3:0x3af,_0x3ce66f:0x309},_0x377d84=()=>{_0x3648c7(),_0x41af25();},_0x5bac92=_0x2dad3f=>{const _0x53d47a={_0xf8720c:0x82};_0x3648c7();function _0x55c697(_0x5e32e8,_0x1f19db,_0x3f69ea,_0x37a54e){return _0x25f1(_0x3f69ea-_0x53d47a._0xf8720c,_0x1f19db);}_0x44d26a(new Error(_0x2dad3f['message']||_0x55c697(0x33b,0x22f,_0x59e497._0x418814,0x381)));},_0x21f341=_0x1983d3=>{const _0xc39286={_0xe82ee9:0x44};_0x3648c7();function _0x2e5946(_0xd63987,_0xdb78b4,_0x243062,_0x474b6e){return _0x25f1(_0xdb78b4-_0xc39286._0xe82ee9,_0xd63987);}const _0x24f0ba=_0x1983d3;_0x44d26a(new Error(_0x24f0ba[_0x2e5946(_0x1790dd._0x213fb3,0x303,_0x1790dd._0x3ce66f,0x388)]||'WebSocket\x20closed\x20before\x20opening'));},_0x283d20=()=>{_0x3648c7();function _0xaedc23(_0x1f6e20,_0x43744b,_0x409dc7,_0x231f86){return _0x25f1(_0x231f86- -0x391,_0x1f6e20);}_0x57d6e3[_0x1d4996(_0x1f198e._0x1b23bd,0x22d,0x29c,0x1d9)]===WebSocket[_0xaedc23(-_0x1f198e._0x523fc6,-0xea,-0x39,-_0x1f198e._0x32030f)]&&_0x57d6e3['close'](0x3e8,_0xaedc23(-0x15,-_0x1f198e._0x482da4,-0x13e,-0xc0));function _0x1d4996(_0x5ca1a5,_0x4fdded,_0x3bfc86,_0x199290){return _0x25f1(_0x4fdded-_0x15f24d._0x529fcd,_0x5ca1a5);}_0x44d26a(toAbortError(_0x3f93fc?.['reason']));},_0x3648c7=()=>{const _0x28a71d={_0x14b1a9:0x1d};function _0x2c269f(_0x3bcfee,_0x4aa065,_0x5c2b05,_0x23cd76){return _0x25f1(_0x3bcfee-_0x28a71d._0x14b1a9,_0x5c2b05);}_0x57d6e3['removeEventListener'](_0x33d03f(0x56c,_0x54cdd3._0x1a1043,_0x54cdd3._0x54227d,0x512),_0x377d84);function _0x33d03f(_0x460287,_0x2a26fd,_0x3fcdfb,_0x3a0d0b){return _0x25f1(_0x2a26fd-_0x403706._0xac61ea,_0x3a0d0b);}_0x57d6e3[_0x33d03f(0x4be,_0x54cdd3._0x25a59f,0x55a,0x4bc)](_0x2c269f(_0x54cdd3._0x5ecfbf,0x2b0,0x256,0x249),_0x5bac92),_0x57d6e3['removeEventListener'](_0x2c269f(0x209,0x216,0x14d,0x2b0),_0x21f341),_0x3f93fc?.[_0x2c269f(_0x54cdd3._0xcfc670,0x33b,_0x54cdd3._0x59b53a,_0x54cdd3._0x5af63b)](_0x2c269f(_0x54cdd3._0x564722,_0x54cdd3._0x581f91,0x1e3,_0x54cdd3._0x40271b),_0x283d20);};_0x57d6e3[_0x5e3142(0x2c5,0x346,_0x1aa18f._0x16b49e,0x342)](_0x5e3142(_0x1aa18f._0x51a5ae,0x2ef,0x391,0x34a),_0x377d84);function _0x4da2b4(_0x27b363,_0x3fa21b,_0xa5f9c6,_0xf2f290){return _0x25f1(_0xa5f9c6-_0x33d5e6._0x463d13,_0x27b363);}function _0x5e3142(_0x216379,_0x1c0838,_0x29880d,_0x252b40){return _0x25f1(_0x216379-_0x14b1ad._0x1e8335,_0x252b40);}_0x57d6e3['addEventListener'](_0x5e3142(_0x1aa18f._0x5cefd9,0x409,0x3e7,_0x1aa18f._0x3fab36),_0x5bac92),_0x57d6e3[_0x5e3142(0x2c5,0x2e9,0x220,0x2f0)]('close',_0x21f341),_0x3f93fc?.[_0x4da2b4(_0x1aa18f._0x5a1fff,_0x1aa18f._0x85f8e6,0x28b,_0x1aa18f._0x5c25ce)]('abort',_0x283d20,{'once':!![]});});}function iterateWebSocketMessages(_0x3cd1c2,_0x3c4c46){const _0x198e25={_0x4569d1:0x9,_0x1a04b3:0xd0,_0x56b28a:0x1,_0x5303b1:0x62,_0x52af88:0x11,_0x21804a:0xc6,_0x56b9de:0x1ad,_0x13c4d4:0x188,_0x51e1ea:0x5b,_0x13afff:0xee,_0x4379b0:0x73,_0x25a9bc:0xd9,_0x1001fd:0x7,_0x24930f:0x59,_0x5f20d2:0x29,_0xf0321f:0x2a,_0x1e3848:0x6a},_0x5cf113={_0x4e0192:0x5be,_0x5fdd27:0x56e,_0x1b4f4a:0x524,_0x3e1a38:0x6d6,_0x53c6f9:0x41d,_0x595573:0x3cd,_0x1b94c7:0x625,_0xa86424:0x5a7,_0x135feb:0x5d7,_0x2a9f69:0x585},_0x3edcc4={_0x4c68eb:0x152,_0x18703b:0xdf},_0x17feea={_0x32de48:0x25e,_0x26ee65:0x2c2,_0x314322:0x242,_0xd34d3e:0x1a4,_0x19d99e:0x17d,_0x33be60:0x42,_0x1bdab8:0xac,_0x535983:0x2b,_0x2a3234:0x6c,_0xfaacfb:0x29c,_0x216c70:0x92,_0x1d799d:0x7},_0x356495={_0x94ee79:0x5f7,_0x1380c1:0x612,_0x580c03:0x47d},_0x2edb29={_0x3cd5f7:0x130},_0x2c877a={_0x4955f4:0x4c2,_0x32d13e:0x54a,_0x167b65:0x403,_0x227522:0x608,_0x572a52:0x5cc,_0x20ad5f:0x637},_0x529f77={_0x59c3ec:0x2f9},_0x49f1f5={_0x193599:0x383},_0x529f15={_0x4c4ad6:0x157,_0x8eb20d:0x9b},_0x1ebe02={_0x79ff6c:0x3f2,_0x4a3d85:0x46c,_0x2c15a5:0x534,_0x49553d:0x3d7,_0x223bdb:0x241,_0x97eaf4:0x2c3},_0x2408ea=[];let _0x50e148=![],_0x29c96d,_0x31d18f;const _0x1adc22=_0x4231db=>{const _0x1b8682={_0x1dfa77:0x19};function _0x5d93d4(_0xb40def,_0x2649f8,_0x494698,_0x213359){return _0x25f1(_0x2649f8-0x25e,_0x494698);}function _0xb8186d(_0x463487,_0x12bd7b,_0x4c0e29,_0x44e4d5){return _0x25f1(_0x463487- -_0x1b8682._0x1dfa77,_0x12bd7b);}const _0x19b31d=_0x4231db;try{_0x2408ea[_0x5d93d4(0x471,0x489,_0x1ebe02._0x79ff6c,0x4ef)](JSON[_0x5d93d4(0x45b,_0x1ebe02._0x4a3d85,_0x1ebe02._0x2c15a5,_0x1ebe02._0x49553d)](String(_0x19b31d['data']))),_0x31d18f?.(),_0x31d18f=void 0x0;}catch(_0x95b4eb){_0x29c96d=new Error(_0xb8186d(_0x1ebe02._0x223bdb,0x218,0x225,_0x1ebe02._0x97eaf4)+toErrorMessage(_0x95b4eb)),_0x31d18f?.(),_0x31d18f=void 0x0;}};function _0x245c8e(_0x5ea19b,_0x453553,_0x27e652,_0x40b826){return _0x2b6123(_0x5ea19b,_0x453553-_0x529f15._0x4c4ad6,_0x27e652- -0x430,_0x40b826-_0x529f15._0x8eb20d);}const _0x2248cd=_0x3cc835=>{const _0x492735=_0x3cc835;function _0xa84928(_0x432e88,_0x475a49,_0x41412f,_0x425ed4){return _0x25f1(_0x475a49-_0x49f1f5._0x193599,_0x432e88);}function _0x4b33d0(_0x557402,_0x68c1fc,_0x299210,_0x1d4ebb){return _0x25f1(_0x557402-_0x529f77._0x59c3ec,_0x1d4ebb);}_0x29c96d=new Error(_0x492735[_0x4b33d0(_0x2c877a._0x4955f4,_0x2c877a._0x32d13e,0x534,_0x2c877a._0x167b65)]||_0xa84928(_0x2c877a._0x227522,_0x2c877a._0x572a52,_0x2c877a._0x20ad5f,0x5ab)),_0x31d18f?.(),_0x31d18f=void 0x0;},_0x27e5bc=_0x413fbf=>{function _0x3c1a65(_0x121e6e,_0x48d6e9,_0xebd8ff,_0x1866cf){return _0x25f1(_0xebd8ff-_0x2edb29._0x3cd5f7,_0x121e6e);}const _0x124ba8=_0x413fbf;function _0x2eaf45(_0x2e4dc7,_0x4575a8,_0x15b901,_0x12e5b9){return _0x25f1(_0x2e4dc7-0x322,_0x15b901);}!_0x50e148&&_0x124ba8[_0x2eaf45(_0x356495._0x94ee79,0x68b,_0x356495._0x1380c1,0x581)]!==0x3e8&&!_0x29c96d&&(_0x29c96d=new Error(_0x124ba8['reason']||_0x3c1a65(_0x356495._0x580c03,0x381,0x3dd,0x3b4)+_0x124ba8[_0x2eaf45(0x5f7,0x695,0x6bd,0x543)])),_0x50e148=!![],_0x31d18f?.(),_0x31d18f=void 0x0;},_0x4eab76=addAbortListener(_0x3c4c46,()=>{_0x29c96d=toAbortError(_0x3c4c46?.[_0x201f19(_0x17feea._0x32de48,0x312,_0x17feea._0x26ee65,_0x17feea._0x314322)]);_0x3cd1c2[_0x55b2f1(-_0x17feea._0xd34d3e,-0x101,-_0x17feea._0x19d99e,-_0x17feea._0x33be60)]===WebSocket[_0x55b2f1(-_0x17feea._0x1bdab8,-_0x17feea._0x535983,0x1a,_0x17feea._0x2a3234)]&&_0x3cd1c2[_0x201f19(0x157,_0x17feea._0xfaacfb,0x1ef,0x1da)](0x3e8,_0x55b2f1(0x21,0x5,-_0x17feea._0x216c70,-_0x17feea._0x1d799d));_0x31d18f?.();function _0x201f19(_0x54f810,_0x21f022,_0x3ccfc8,_0x1f25d4){return _0x25f1(_0x3ccfc8-0x3,_0x1f25d4);}function _0x55b2f1(_0x16ac19,_0x18e1df,_0x20c6ae,_0x46a48d){return _0x25f1(_0x18e1df- -0x2cc,_0x20c6ae);}_0x31d18f=void 0x0;});_0x3cd1c2[_0x20c087(-_0x198e25._0x4569d1,-_0x198e25._0x1a04b3,0x8e,-0x29)](_0x20c087(_0x198e25._0x56b28a,_0x198e25._0x5303b1,_0x198e25._0x52af88,_0x198e25._0x21804a),_0x1adc22),_0x3cd1c2[_0x245c8e(-0x251,-_0x198e25._0x56b9de,-_0x198e25._0x13c4d4,-0x1c3)](_0x245c8e(-_0x198e25._0x51e1ea,-0x1a5,-_0x198e25._0x13afff,-_0x198e25._0x4379b0),_0x2248cd),_0x3cd1c2['addEventListener'](_0x20c087(0x24,_0x198e25._0x25a9bc,_0x198e25._0x1001fd,-_0x198e25._0x24930f),_0x27e5bc);function _0x20c087(_0x1e6a58,_0x353729,_0x276def,_0x1a688d){return _0x2b6123(_0x353729,_0x353729-0x154,_0x1e6a58- -0x2b1,_0x1a688d-0x1c7);}return{async*[Symbol[_0x20c087(_0x198e25._0x4569d1,-_0x198e25._0x5f20d2,-_0x198e25._0xf0321f,_0x198e25._0x1e3848)]](){const _0x5c5606={_0x1cb42a:0xd6};function _0x2f46be(_0x54d86a,_0xfc8bb1,_0x3f9af9,_0x430c37){return _0x20c087(_0x3f9af9-0x561,_0x54d86a,_0x3f9af9-_0x5c5606._0x1cb42a,_0x430c37-0x186);}function _0x129571(_0x206ed1,_0x372aa0,_0xc48a41,_0x47ee5a){return _0x245c8e(_0xc48a41,_0x372aa0-_0x3edcc4._0x4c68eb,_0x372aa0-0x5f8,_0x47ee5a-_0x3edcc4._0x18703b);}try{while(!![]){if(_0x29c96d)throw _0x29c96d;if(_0x2408ea['length']>0x0){yield _0x2408ea[_0x2f46be(0x607,_0x5cf113._0x4e0192,_0x5cf113._0x5fdd27,_0x5cf113._0x1b4f4a)]();continue;}if(_0x50e148)break;await new Promise(_0x107779=>{_0x31d18f=_0x107779;});}}finally{_0x3cd1c2[_0x2f46be(_0x5cf113._0x3e1a38,0x67c,0x625,0x5c1)](_0x129571(_0x5cf113._0x53c6f9,0x47a,0x43a,_0x5cf113._0x595573),_0x1adc22),_0x3cd1c2[_0x2f46be(0x5ae,0x5ce,_0x5cf113._0x1b94c7,0x6ea)](_0x2f46be(0x565,0x568,0x5f2,_0x5cf113._0xa86424),_0x2248cd),_0x3cd1c2['removeEventListener'](_0x2f46be(_0x5cf113._0x135feb,0x5ac,_0x5cf113._0x2a9f69,0x586),_0x27e5bc),_0x4eab76();}}};}function toWebSocketUrl(_0x308e1c,_0x6eca10){const _0x3e76ef={_0x5ebdde:0x492,_0x264cb6:0x4ce,_0x34bc2e:0x460,_0x1aa2ad:0x479,_0xf80d83:0x537,_0x5c9e05:0x516,_0x4f18cf:0x3cb},_0x3a7b53={_0x372599:0x64,_0x4a7289:0xa},_0xba05f={_0x3e7193:0x47f},_0x337799=new URL(_0x6eca10,_0x308e1c);function _0x4961d5(_0x42e698,_0x83529e,_0x26881b,_0x2c9aaf){return _0x2b6123(_0x83529e,_0x83529e-0x48,_0x42e698- -_0xba05f._0x3e7193,_0x2c9aaf-0x1aa);}function _0x54046a(_0x21a8c3,_0x99c35d,_0x947033,_0x3a7e23){return _0x2b6123(_0x99c35d,_0x99c35d-_0x3a7b53._0x372599,_0x21a8c3-0x1e5,_0x3a7e23-_0x3a7b53._0x4a7289);}return _0x337799['protocol']=_0x337799['protocol']===_0x54046a(0x40e,_0x3e76ef._0x5ebdde,0x368,0x450)?_0x54046a(0x48c,0x4ba,0x519,_0x3e76ef._0x264cb6):_0x54046a(0x437,0x3a9,_0x3e76ef._0x34bc2e,0x47d),_0x337799[_0x54046a(_0x3e76ef._0x1aa2ad,_0x3e76ef._0xf80d83,_0x3e76ef._0x5c9e05,_0x3e76ef._0x4f18cf)]();}var ProviderSessionManager=class{[_0x2b6123(0x403,0x289,0x341,0x32a)];[_0x38c793(0x482,0x4ed,0x494,0x53a)];constructor(_0x6e3947){const _0x1ac21a={_0x1c3465:0x1c6,_0x203279:0x140},_0x4b12d4={_0x12cd61:0xe2,_0x1d3577:0x16b};function _0x423bc2(_0x489a2c,_0x2f4a25,_0x3f65d5,_0x337db5){return _0x2b6123(_0x2f4a25,_0x2f4a25-_0x4b12d4._0x12cd61,_0x337db5- -0x481,_0x337db5-_0x4b12d4._0x1d3577);}this[_0x423bc2(-0x179,-0x193,-_0x1ac21a._0x1c3465,-_0x1ac21a._0x203279)]=_0x6e3947;}async['resolve'](_0x124ea8){const _0x59eeb1={_0x52948d:0x248,_0x2277e5:0x2d4,_0x565a38:0x183,_0x3648d9:0x1ae,_0x2eedb9:0x1c0},_0x51fb7a={_0x31304a:0x11b};function _0x4cd285(_0x13647e,_0xcf8308,_0x2d5175,_0x3352bb){return _0x38c793(_0x2d5175,_0xcf8308-0x126,_0x13647e- -0x236,_0x3352bb-0x8f);}!this[_0x4cd285(0x25e,_0x59eeb1._0x52948d,_0x59eeb1._0x2277e5,0x296)]&&(this[_0x3e107b(-0xd3,-0x106,-0x154,-0x37)]=this[_0x3e107b(-0xf6,-_0x59eeb1._0x565a38,-_0x59eeb1._0x3648d9,-_0x59eeb1._0x2eedb9)][_0x3e107b(-0x96,-0x2a,0x4,-0x118)](_0x124ea8));function _0x3e107b(_0x15ff98,_0x40904d,_0x5821bd,_0x4292b7){return _0x38c793(_0x5821bd,_0x40904d-0x2,_0x15ff98- -0x567,_0x4292b7-_0x51fb7a._0x31304a);}return structuredClone(await this['cached']);}['invalidate'](){const _0x335087={_0x4f9bb0:0xe4,_0x2a4821:0x3c},_0x46a80b={_0xbc6a2f:0x40,_0x481c1d:0x3cd};function _0x45bd1f(_0x532b17,_0x8cfad7,_0x4d9a25,_0x722975){return _0x2b6123(_0x532b17,_0x8cfad7-_0x46a80b._0xbc6a2f,_0x4d9a25- -_0x46a80b._0x481c1d,_0x722975-0xe6);}this[_0x45bd1f(-_0x335087._0x4f9bb0,-0xb7,-0x69,-_0x335087._0x2a4821)]=void 0x0;}};async function prepareProviderRequest(_0x53895f,_0x1b44dd={}){const _0x1e1523={_0x125094:0x2a3,_0x30ad18:0x1f0,_0x3852f3:0x225,_0x3b8fb3:0x21c,_0x239046:0x146,_0x1384ae:0x160,_0x5a2f72:0x196,_0x3aba3e:0xbd,_0x33fc12:0x158},_0x4b691e={_0x25b34c:0x82};function _0x4dcc2c(_0x1ca7e5,_0x42142e,_0x24eb5e,_0x174936){return _0x2b6123(_0x1ca7e5,_0x42142e-0x196,_0x24eb5e- -0x1c4,_0x174936-0x18);}function _0x475da2(_0x29cc66,_0x1e1494,_0x2ce258,_0x2600df){return _0x38c793(_0x1e1494,_0x1e1494-0xd6,_0x2600df- -0x2ee,_0x2600df-_0x4b691e._0x25b34c);}let _0x242b0c={'request':structuredClone(_0x53895f),'session':_0x1b44dd[_0x4dcc2c(0x1ce,_0x1e1523._0x125094,_0x1e1523._0x30ad18,_0x1e1523._0x3852f3)]?await _0x1b44dd[_0x4dcc2c(_0x1e1523._0x3b8fb3,_0x1e1523._0x239046,0x1f0,0x21f)]['resolve'](_0x1b44dd['signal']):void 0x0};for(const _0x2a3763 of _0x1b44dd[_0x475da2(_0x1e1523._0x1384ae,_0x1e1523._0x5a2f72,_0x1e1523._0x3aba3e,_0x1e1523._0x33fc12)]??[]){_0x242b0c=await _0x2a3763(_0x242b0c);}return _0x242b0c;}var RoutedModel=class{[_0x38c793(0x51c,0x4a9,0x4ac,0x4e2)];[_0x2b6123(0x1e9,0x1b0,0x26f,0x312)];[_0x38c793(0x498,0x3f2,0x499,0x524)];['apiKey'];[_0x2b6123(0x37a,0x356,0x399,0x463)];['fetchImpl'];[_0x38c793(0x32f,0x2e4,0x36e,0x3b7)];['requestMutators'];[_0x2b6123(0x1ef,0x262,0x27d,0x1dc)];[_0x2b6123(0x360,0x314,0x3b4,0x458)];[_0x2b6123(0x3a6,0x36d,0x3ab,0x3a6)];[_0x2b6123(0x345,0x319,0x2fb,0x3a5)]=new Map();constructor(_0x4284b0){const _0x1f43d6={_0x2238d:0x471,_0x54ac0c:0x417,_0x5ee0ec:0x3f8,_0xc11dd6:0x3f2,_0x38f177:0x425,_0x525a93:0x314,_0x2d47b2:0x200,_0x607f35:0x45e,_0x1ac183:0x442,_0x2fddcf:0x43b,_0x56f231:0x38e,_0x5b8c4e:0x48e,_0x1f9478:0x544,_0x1cbfdf:0x4fc,_0x2a203e:0x2ab,_0x2c3bab:0x452,_0x5952bb:0x3ad,_0x533bcc:0x4c2,_0x18dd2e:0x210,_0xaa497a:0x1c0,_0x43f198:0xf1,_0xb866c1:0x123,_0x1e75a8:0x40b,_0x340d9c:0x4bb,_0x5485e8:0x482,_0xcf7f6f:0x385,_0x37472b:0x360,_0x4602cc:0x2b6,_0x9f7141:0x331,_0x3fe097:0x3cf,_0x2b0011:0x130,_0x13cffa:0x189,_0x11ad19:0x9f,_0x175280:0x267,_0x5dcedc:0x343,_0x92257c:0x3a0,_0x5e6619:0x4a0,_0x509339:0x47a,_0x514980:0x25e,_0x1f6897:0x3f0,_0x3285b0:0x3ee},_0x2f4853={_0x17e8c9:0x3d,_0x22898e:0x5f},_0x3eaf1e={_0x33e9a7:0x111,_0x5022db:0xf5,_0x1b73e4:0xd};this['model']=_0x4284b0[_0x5e0b74(_0x1f43d6._0x2238d,0x513,_0x1f43d6._0x54ac0c,_0x1f43d6._0x5ee0ec)],this[_0x5e0b74(0x364,_0x1f43d6._0xc11dd6,0x3ee,_0x1f43d6._0x38f177)]=_0x4284b0[_0x5e0b74(0x364,0x3dd,0x2af,_0x1f43d6._0x525a93)]??0x4000,this[_0x5e7bea(0x21c,0x15f,_0x1f43d6._0x2d47b2,0x282)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x607f35,0x49a,0x3c1,_0x1f43d6._0x1ac183)]?structuredClone(_0x4284b0[_0x5e0b74(0x45e,0x3e4,0x4ae,_0x1f43d6._0x2fddcf)]):void 0x0,this[_0x5e0b74(0x3fc,0x364,_0x1f43d6._0x56f231,0x3ee)]=_0x4284b0['apiKey'],this['baseUrl']=_0x4284b0[_0x5e0b74(_0x1f43d6._0x5b8c4e,0x50b,_0x1f43d6._0x1f9478,_0x1f43d6._0x1cbfdf)],this[_0x5e0b74(0x35e,0x3e4,_0x1f43d6._0x2a203e,0x3b9)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x2c3bab,_0x1f43d6._0x5952bb,_0x1f43d6._0x533bcc,0x480)]??globalThis[_0x5e7bea(_0x1f43d6._0x18dd2e,_0x1f43d6._0xaa497a,0x2d5,0x146)],this['providerAdapter']=_0x4284b0[_0x5e7bea(_0x1f43d6._0x43f198,0x107,0xd6,_0x1f43d6._0xb866c1)],this[_0x5e0b74(_0x1f43d6._0x1e75a8,0x3a7,_0x1f43d6._0x340d9c,_0x1f43d6._0x5485e8)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x1e75a8,_0x1f43d6._0xcf7f6f,0x4ad,_0x1f43d6._0x37472b)]??[];function _0x5e0b74(_0x535fca,_0x401755,_0x33f63b,_0xb8402c){return _0x2b6123(_0xb8402c,_0x401755-_0x3eaf1e._0x33e9a7,_0x535fca-_0x3eaf1e._0x5022db,_0xb8402c-_0x3eaf1e._0x1b73e4);}this[_0x5e0b74(0x372,_0x1f43d6._0x4602cc,_0x1f43d6._0x9f7141,_0x1f43d6._0x3fe097)]=_0x4284b0[_0x5e7bea(_0x1f43d6._0x2b0011,_0x1f43d6._0x13cffa,0x14e,_0x1f43d6._0x11ad19)];function _0x5e7bea(_0x52b375,_0x55b01f,_0xdd10e3,_0x4e7295){return _0x2b6123(_0x55b01f,_0x55b01f-_0x2f4853._0x17e8c9,_0x52b375- -0x14d,_0x4e7295-_0x2f4853._0x22898e);}this[_0x5e7bea(_0x1f43d6._0x175280,0x2de,0x241,0x1d8)]=_0x4284b0['sessionManager']??(_0x4284b0[_0x5e0b74(_0x1f43d6._0x5dcedc,0x3d6,0x3fc,0x343)]?new ProviderSessionManager(_0x4284b0[_0x5e0b74(_0x1f43d6._0x5dcedc,0x2a6,0x3e3,_0x1f43d6._0x92257c)]):void 0x0),this[_0x5e0b74(_0x1f43d6._0x5e6619,_0x1f43d6._0x509339,0x3f1,0x4ee)]=_0x4284b0[_0x5e7bea(_0x1f43d6._0x514980,0x1b4,0x217,0x230)]??createDefaultWebSocketFactory();for(const _0x15d392 of _0x4284b0['surfaces']){this[_0x5e0b74(_0x1f43d6._0x1f6897,0x4a2,_0x1f43d6._0x3285b0,0x36c)]['set'](_0x15d392['id'],_0x15d392);}}['complete'](_0x2557d7,_0x48c980){const _0x52f91a={_0x2d1981:0x14d,_0x6d850d:0x79};function _0x5f1954(_0x5a5b95,_0x5c49d4,_0x2a4af5,_0x23057f){return _0x38c793(_0x2a4af5,_0x5c49d4-_0x52f91a._0x2d1981,_0x5a5b95-_0x52f91a._0x6d850d,_0x23057f-0x115);}return this[_0x5f1954(0x441,0x39b,0x3f7,0x484)](_0x2557d7,_0x48c980);}[_0x38c793(0x3fd,0x43b,0x479,0x4d4)](_0x240da8,_0x25ca27){const _0x146497={_0x1fa415:0x5df,_0x50ad4c:0x5ad,_0x5d6ae3:0x53b};function _0xe857d7(_0x3a17f7,_0x314e2d,_0x135e57,_0x4e6941){return _0x2b6123(_0x4e6941,_0x314e2d-0x175,_0x135e57-0x191,_0x4e6941-0xf5);}return this[_0xe857d7(_0x146497._0x1fa415,_0x146497._0x50ad4c,_0x146497._0x5d6ae3,0x5b0)](_0x240da8,_0x25ca27);}async['completeViaRouter'](_0x3dc059,_0x32b93b){const _0x2b8fef={_0x51b4ce:0x9e,_0x32941d:0x77,_0x1dcf5b:0x97,_0x5619a3:0x66,_0x95271b:0xd8,_0x511fa6:0x127,_0x4efbe5:0x33,_0x2bc98a:0x9c,_0x17ead0:0x148,_0x4640b1:0x2d},_0xea8b5={_0x5ae274:0x152,_0x1fde71:0x1d0,_0x7b822:0x16d},_0x1c0660={_0x2644c1:0x3ac,_0x56c197:0x176};function _0x1a91a1(_0x1f1d1a,_0x1f51e2,_0xab9140,_0x4cd6b1){return _0x2b6123(_0x1f1d1a,_0x1f51e2-0x1a0,_0x4cd6b1- -_0x1c0660._0x2644c1,_0x4cd6b1-_0x1c0660._0x56c197);}const _0x235b78=this[_0x1a91a1(0x16,-_0x2b8fef._0x51b4ce,0x4d,-_0x2b8fef._0x32941d)](_0x3dc059),_0x49f103=await this[_0x7ad778(0xad,_0x2b8fef._0x1dcf5b,_0x2b8fef._0x5619a3,_0x2b8fef._0x95271b)][_0x7ad778(0xdf,_0x2b8fef._0x511fa6,_0x2b8fef._0x4efbe5,_0x2b8fef._0x2bc98a)](_0x235b78,{'mode':_0x1a91a1(-0x43,-_0x2b8fef._0x17ead0,_0x2b8fef._0x4640b1,-_0x2b8fef._0x1dcf5b)});function _0x7ad778(_0x30cb9b,_0x283971,_0xb6cc7c,_0x3f3a4d){return _0x2b6123(_0x3f3a4d,_0x283971-_0xea8b5._0x5ae274,_0x30cb9b- -_0xea8b5._0x1fde71,_0x3f3a4d-_0xea8b5._0x7b822);}return this[_0x1a91a1(-0x10f,-0xaf,0x16,-0x5b)](_0x235b78,_0x49f103,_0x32b93b);}async*[_0x2b6123(0x3fb,0x36a,0x3aa,0x30b)](_0x1367e3,_0x20f9b0){const _0x42c4c7={_0x24c209:0x343,_0x307f9d:0xcc,_0x1c9e0e:0xdb,_0xd4332b:0x82,_0x45a1f4:0x234,_0x3efddc:0x225,_0x40ecc3:0x249,_0x24e3e8:0x2ce,_0x154a8b:0x1d6},_0x52a281={_0x1c9d9c:0x6c,_0x39a571:0x2ea,_0x212770:0x190},_0x425a21=this[_0x22ea9f(0x2ba,0x239,0x2b4,_0x42c4c7._0x24c209)](_0x1367e3);function _0x3217aa(_0x214472,_0x98f310,_0x5e70ed,_0x5ae0fb){return _0x2b6123(_0x5e70ed,_0x98f310-_0x52a281._0x1c9d9c,_0x5ae0fb- -_0x52a281._0x39a571,_0x5ae0fb-_0x52a281._0x212770);}function _0x22ea9f(_0xbb8f70,_0x329cf9,_0x4a9d47,_0x3ea1bf){return _0x2b6123(_0x3ea1bf,_0x329cf9-0xea,_0xbb8f70- -0x7b,_0x3ea1bf-0x5d);}const _0x29f5de=await this[_0x3217aa(-_0x42c4c7._0x307f9d,-_0x42c4c7._0x1c9e0e,-_0x42c4c7._0xd4332b,-0x6d)][_0x22ea9f(_0x42c4c7._0x45a1f4,_0x42c4c7._0x3efddc,_0x42c4c7._0x40ecc3,0x1a3)](_0x425a21,{'mode':_0x22ea9f(_0x42c4c7._0x24e3e8,0x28d,0x30e,0x32e)});yield*this[_0x22ea9f(_0x42c4c7._0x154a8b,0x18d,0x23a,0x197)](_0x425a21,_0x29f5de,_0x20f9b0);}async['completeViaSurface'](_0x45b43e,_0x3ca22b,_0x552583){const _0x1f6a80={_0x40f8f6:0x132,_0x18a6b8:0x204,_0x33cf12:0x135,_0x35aee8:0x185,_0x5d2495:0x7d,_0x453ab2:0x246,_0x2fa936:0x204,_0x48a730:0x1dc,_0x3ee904:0x155,_0x1e94b3:0xd4,_0x3c2e24:0x176,_0x62f61b:0x1a7,_0x4652da:0x189,_0x163a80:0x1ed,_0x257115:0x14e,_0x14acad:0xe9,_0x4f012d:0xb,_0x23fbe6:0x64,_0x16fee9:0x17a,_0x3a360b:0x183,_0x88b211:0x1d4,_0x2b87e7:0x1bf,_0x2a6766:0x169,_0x354911:0x1c2,_0x375f1f:0x1ac,_0x310a51:0x9c,_0x1b8ecb:0x1f3,_0x1d32c5:0x16d,_0x544b3c:0xbe,_0x514dfa:0x218,_0x23067e:0x22f,_0xe18477:0x1eb,_0x261e8e:0x1e3},_0x188590={_0x57f49f:0x12d,_0x3a58a9:0x45d,_0x1f917c:0xaf},_0x45a8c9={_0x54a9a6:0x14f,_0x5b1793:0x140};function _0x31c880(_0x30efb4,_0x2171dc,_0x1c7060,_0x1bacc3){return _0x38c793(_0x2171dc,_0x2171dc-_0x45a8c9._0x54a9a6,_0x30efb4- -0x2b4,_0x1bacc3-_0x45a8c9._0x5b1793);}function _0x547b16(_0x3c83ae,_0x194b46,_0x39a2a3,_0x1b132a){return _0x2b6123(_0x1b132a,_0x194b46-_0x188590._0x57f49f,_0x39a2a3- -_0x188590._0x3a58a9,_0x1b132a-_0x188590._0x1f917c);}const _0x34ff21=this[_0x31c880(0x1b1,_0x1f6a80._0x40f8f6,_0x1f6a80._0x18a6b8,0x11e)](_0x45b43e),_0x16fffb=this['getSurface'](_0x3ca22b);if(_0x16fffb[_0x31c880(_0x1f6a80._0x33cf12,0x19b,_0x1f6a80._0x35aee8,_0x1f6a80._0x5d2495)]===_0x547b16(-_0x1f6a80._0x453ab2,-0x2cc,-_0x1f6a80._0x2fa936,-_0x1f6a80._0x48a730)){const _0x2f622d=await this['sendHttpSurfaceRequest'](_0x34ff21,_0x16fffb,![],_0x552583?.[_0x31c880(_0x1f6a80._0x3ee904,0x143,_0x1f6a80._0x1e94b3,_0x1f6a80._0x3c2e24)]);if(!_0x2f622d['ok'])throw await this[_0x547b16(-_0x1f6a80._0x62f61b,-_0x1f6a80._0x4652da,-0x105,-0x189)](_0x2f622d);if(!_0x16fffb[_0x31c880(0x1e7,_0x1f6a80._0x163a80,0x178,0x11e)])throw new Error(_0x547b16(-_0x1f6a80._0x257115,-0xd,-0xc1,-0x39)+_0x3ca22b+_0x547b16(-_0x1f6a80._0x14acad,_0x1f6a80._0x4f012d,-0xb7,-0x14a));return _0x16fffb[_0x547b16(-0x44,-0xdf,-0xf2,-_0x1f6a80._0x23fbe6)](await _0x2f622d[_0x547b16(-_0x1f6a80._0x16fee9,-_0x1f6a80._0x3a360b,-_0x1f6a80._0x88b211,-0x15b)](),_0x34ff21);}let _0x15ebce;for await(const _0x30a447 of this[_0x547b16(-_0x1f6a80._0x2b87e7,-_0x1f6a80._0x2a6766,-0x20c,-_0x1f6a80._0x354911)](_0x34ff21,_0x3ca22b,_0x552583)){_0x30a447[_0x31c880(0x13b,_0x1f6a80._0x375f1f,_0x1f6a80._0x310a51,_0x1f6a80._0x1b8ecb)]===_0x31c880(_0x1f6a80._0x1d32c5,0x1a3,_0x1f6a80._0x544b3c,0x233)&&(_0x15ebce=_0x30a447['response']);}if(!_0x15ebce)throw new Error(_0x31c880(_0x1f6a80._0x514dfa,_0x1f6a80._0x23067e,0x162,0x24e)+_0x3ca22b+_0x31c880(_0x1f6a80._0xe18477,0x270,_0x1f6a80._0x261e8e,0x1eb));return _0x15ebce;}async*[_0x2b6123(0x1c6,0x286,0x251,0x288)](_0x30b49e,_0x1686d8,_0x264f71){const _0x1f9288={_0x14a003:0x28,_0x558bb4:0x25,_0x20db06:0x1b0,_0x5555ba:0xc0,_0x4e583c:0xeb,_0x24c962:0xdd,_0x4aa98f:0x148,_0x4fe27d:0x11e,_0x1ae7ea:0x139,_0x4ca8c5:0x18b,_0x30c69a:0x1f7,_0x43d560:0x69,_0x38e714:0x11b,_0xa3d149:0xcf,_0x45f978:0x128,_0x406307:0x160,_0x1b5381:0xa1,_0xe53e25:0x172,_0x41f701:0xbe,_0x135c6e:0x67,_0xad1b1e:0xb7},_0x2d24bc={_0x37c918:0x4c6,_0x3f33f2:0x1c1},_0x4bca05={_0xddb3b7:0x114};function _0x342a67(_0x32418d,_0x3aa56a,_0x2aaf54,_0x958fe3){return _0x38c793(_0x32418d,_0x3aa56a-_0x4bca05._0xddb3b7,_0x958fe3- -0x2c1,_0x958fe3-0x168);}const _0x10014f=this[_0x1be058(-_0x1f9288._0x14a003,0x53,-_0x1f9288._0x558bb4,-0x61)](_0x30b49e);function _0x1be058(_0x3bb915,_0x4cfe12,_0x36b702,_0x12d0d2){return _0x38c793(_0x3bb915,_0x4cfe12-0x7e,_0x12d0d2- -_0x2d24bc._0x37c918,_0x12d0d2-_0x2d24bc._0x3f33f2);}const _0x5dfddb=this[_0x342a67(0x27d,_0x1f9288._0x20db06,0x279,0x202)](_0x1686d8);if(_0x5dfddb[_0x1be058(-_0x1f9288._0x5555ba,-0x118,-_0x1f9288._0x4e583c,-_0x1f9288._0x24c962)]===_0x342a67(_0x1f9288._0x4aa98f,_0x1f9288._0x4fe27d,_0x1f9288._0x1ae7ea,0xc8)){yield{'type':_0x342a67(_0x1f9288._0x4ca8c5,0xfc,_0x1f9288._0x30c69a,0x160),'response':await this[_0x1be058(_0x1f9288._0x43d560,0x2a,0x2e,-0x45)](_0x10014f,_0x1686d8,_0x264f71)};return;}if(_0x5dfddb[_0x342a67(0xa4,_0x1f9288._0x38e714,_0x1f9288._0xa3d149,_0x1f9288._0x45f978)]===_0x342a67(0x110,0x64,_0x1f9288._0x406307,_0x1f9288._0x1b5381)){yield*this[_0x342a67(_0x1f9288._0xe53e25,0x250,0x1a5,0x1ef)](_0x10014f,_0x5dfddb,_0x264f71?.[_0x342a67(0x1c7,_0x1f9288._0x41f701,_0x1f9288._0x20db06,0x148)]);return;}yield*this[_0x1be058(0x29,0x62,_0x1f9288._0x135c6e,-_0x1f9288._0x558bb4)](_0x10014f,_0x5dfddb,_0x264f71?.[_0x1be058(-_0x1f9288._0xad1b1e,-0x130,-0x1f,-0xbd)]);}async[_0x38c793(0x36b,0x3b0,0x40d,0x4c7)](_0x2c3cc8){const _0xf210b3={_0xf4b146:0x3bf,_0x3ca674:0x4fa,_0x18c904:0x1c2,_0x47d154:0x227,_0x2b4715:0x30f},_0x11c3ae={_0x581b70:0x4a9,_0x5f5dde:0x49b,_0x38a36c:0x390,_0x4b49b8:0x3fd,_0x517cbe:0x39c,_0x446a76:0x394,_0xc460fe:0xfb,_0x2cc7a2:0x111,_0x134593:0xd6,_0x1bd035:0xb9,_0x5c38b8:0xde,_0x5ab02e:0x1a7,_0x54f293:0x1a1,_0x20bee8:0x196,_0x42973a:0x1c2,_0x2c421e:0x151,_0x31e18c:0x2d3,_0x282b35:0x242,_0x2e324c:0x279,_0x4b0140:0x205,_0x2bf8c2:0x440,_0x4cdbc7:0x468,_0x2af937:0x353,_0x4ff975:0x31b,_0x1b436b:0x493,_0x541103:0x489,_0x161bd7:0xb7,_0x2cb2c0:0x6a,_0x520f90:0x101,_0x5f1f23:0x153,_0x357269:0x1e2},_0x57e024={_0x51be6b:0x91,_0xaaa869:0x23c,_0x4005c0:0xbd};function _0x24a7be(_0x294a46,_0x3c8909,_0x3275e3,_0x4b7d48){return _0x2b6123(_0x4b7d48,_0x3c8909-_0x57e024._0x51be6b,_0x3275e3- -_0x57e024._0xaaa869,_0x4b7d48-_0x57e024._0x4005c0);}const _0x512b29=async()=>{const _0x42567d=this[_0x5b5674(0x418,0x3f1,_0x11c3ae._0x581b70,0x483)]?await this[_0x5b5674(_0x11c3ae._0x5f5dde,0x3d6,0x483,0x483)]['resolve'](_0x2c3cc8[_0x5b5674(0x388,_0x11c3ae._0x38a36c,_0x11c3ae._0x4b49b8,0x3a8)]):void 0x0,_0x2f2345=this[_0x5b5674(_0x11c3ae._0x517cbe,0x2ac,0x2db,0x30d)]['resolveCredential'](this['apiKey'],_0x42567d);if(!_0x2f2345)throw this[_0x5b5674(0x458,0x347,0x2d3,_0x11c3ae._0x446a76)]();const _0x12c64f=await this[_0x45a066(0xdf,_0x11c3ae._0xc460fe,_0x11c3ae._0x2cc7a2,_0x11c3ae._0x134593)]({'body':_0x2c3cc8[_0x45a066(_0x11c3ae._0x1bd035,0x8f,-0xc,_0x11c3ae._0x5c38b8)],'credential':_0x2f2345,'session':_0x42567d,'stream':![]},{'accept':_0x2c3cc8[_0x45a066(0x19a,0x1fd,_0x11c3ae._0x5ab02e,_0x11c3ae._0x54f293)]??'application/json','includeContentType':_0x2c3cc8[_0x5b5674(0x3d4,_0x11c3ae._0x517cbe,0x411,0x3c9)]===_0x45a066(_0x11c3ae._0x20bee8,0x246,_0x11c3ae._0x42973a,_0x11c3ae._0x2c421e)});function _0x5b5674(_0x3b43d2,_0x5411e3,_0x5945b7,_0x397e0e){return _0x25f1(_0x397e0e-0x1b8,_0x3b43d2);}function _0x45a066(_0x5a2103,_0x11a151,_0x23d839,_0x4dcb02){return _0x25f1(_0x5a2103- -0x9d,_0x23d839);}return this[_0x5b5674(0x292,0x3ca,_0x11c3ae._0x31e18c,0x338)](''+this[_0x5b5674(0x390,_0x11c3ae._0x282b35,_0x11c3ae._0x2e324c,0x30d)][_0x45a066(_0x11c3ae._0x4b0140,0x1e4,0x171,0x27b)](this[_0x5b5674(0x469,0x418,_0x11c3ae._0x2bf8c2,_0x11c3ae._0x4cdbc7)],_0x42567d)+_0x2c3cc8[_0x5b5674(_0x11c3ae._0x2af937,0x2be,0x344,_0x11c3ae._0x4ff975)],{'method':_0x2c3cc8[_0x5b5674(0x370,_0x11c3ae._0x1b436b,_0x11c3ae._0x541103,0x3c9)],'headers':_0x12c64f,..._0x2c3cc8['body']!==void 0x0?{'body':JSON[_0x45a066(_0x11c3ae._0x161bd7,0x16,0x173,_0x11c3ae._0x2cb2c0)](_0x2c3cc8[_0x45a066(_0x11c3ae._0x1bd035,0xf7,_0x11c3ae._0x520f90,0x11c)])}:{},'signal':_0x2c3cc8[_0x45a066(_0x11c3ae._0x5f1f23,0x1cf,_0x11c3ae._0x357269,0xc6)]});},_0x9ef7ff=await _0x512b29();if(_0x9ef7ff[_0x134fbf(_0xf210b3._0xf4b146,0x339,0x370,0x31c)]!==0x191||!this[_0x134fbf(0x51b,_0xf210b3._0x3ca674,0x480,0x3ee)])return _0x9ef7ff;this[_0x24a7be(_0xf210b3._0x18c904,_0xf210b3._0x47d154,0x178,0x243)][_0x134fbf(0x38d,_0xf210b3._0x2b4715,0x362,0x41e)]();function _0x134fbf(_0x4ab0fb,_0x52694b,_0x142075,_0x3fed2c){return _0x2b6123(_0x4ab0fb,_0x52694b-0x145,_0x142075-0xcc,_0x3fed2c-0x108);}return _0x512b29();}['createMissingCredentialError'](){const _0x126407={_0x30ca8b:0x86,_0x5683fa:0x33,_0x42837a:0xba},_0x157f9f={_0x566475:0x5ce},_0x248f97={_0x2070d1:0xa7};function _0x4dd26b(_0xbf0f28,_0x3a5411,_0x2183f7,_0x18e77f){return _0x2b6123(_0x3a5411,_0x3a5411-_0x248f97._0x2070d1,_0x2183f7- -0x1e9,_0x18e77f-0x4e);}function _0x2a718c(_0x18d422,_0x591011,_0x4edc3d,_0x1a4c3b){return _0x38c793(_0x1a4c3b,_0x591011-0x3a,_0x4edc3d- -_0x157f9f._0x566475,_0x1a4c3b-0x1a2);}return this[_0x4dd26b(_0x126407._0x30ca8b,-_0x126407._0x5683fa,0x55,_0x126407._0x42837a)][_0x4dd26b(0x16c,0x52,0xdc,0x12d)]();}async[_0x38c793(0x40b,0x322,0x395,0x315)](_0x588fee,_0x40d391){const _0x441b78={_0xa30260:0x23e,_0x1188d5:0xb5,_0x257d4a:0x102},_0x474655={_0x7b87a7:0x148,_0x2c3e1e:0xec};function _0x57cac4(_0x323bb3,_0x3e7a16,_0x2b2cfa,_0x466f41){return _0x38c793(_0x3e7a16,_0x3e7a16-0x192,_0x2b2cfa- -0x2e0,_0x466f41-0x157);}function _0x42c7c4(_0x297b71,_0x5ee099,_0x20d4d9,_0x26d651){return _0x38c793(_0x297b71,_0x5ee099-_0x474655._0x7b87a7,_0x5ee099- -0xf1,_0x26d651-_0x474655._0x2c3e1e);}return await this[_0x42c7c4(0x327,0x27d,_0x441b78._0xa30260,0x2e0)][_0x57cac4(0xcb,0x66,_0x441b78._0x1188d5,_0x441b78._0x257d4a)](_0x588fee,_0x40d391);}[_0x2b6123(0x215,0x1da,0x287,0x1d0)](_0x4db71a){const _0xc46189={_0xaaa3f7:0x160,_0x1182be:0x16e,_0x205661:0xf7},_0x32ae70={_0x2c9ebb:0x163,_0x55be8d:0x4ae},_0x42c285={_0x4839fb:0x331};function _0x5cb309(_0x11a0ca,_0x4d6b4f,_0x521c0d,_0x151cd5){return _0x2b6123(_0x521c0d,_0x4d6b4f-0x70,_0x4d6b4f- -_0x42c285._0x4839fb,_0x151cd5-0x193);}function _0x28f5e5(_0x41c651,_0xf0d8bd,_0x495739,_0x3c598c){return _0x38c793(_0x495739,_0xf0d8bd-_0x32ae70._0x2c9ebb,_0x3c598c- -_0x32ae70._0x55be8d,_0x3c598c-0x9d);}return this[_0x28f5e5(-_0xc46189._0xaaa3f7,-_0xc46189._0x1182be,-0xb2,-0x140)][_0x28f5e5(-0xe8,-0xba,-0x14a,-_0xc46189._0x205661)](_0x4db71a);}async[_0x2b6123(0x30c,0x358,0x358,0x3a4)](_0x867dce){const _0x387ed4={_0x4b5652:0x8e},_0x375f5f={_0x17e28d:0x24f},_0x42bb6b={_0xcb3179:0x85};function _0x1fd827(_0x2d3f9d,_0x53de3c,_0x2a374c,_0x5401f8){return _0x2b6123(_0x53de3c,_0x53de3c-0x39,_0x2a374c- -0x4c7,_0x5401f8-_0x42bb6b._0xcb3179);}function _0x2ba130(_0x1da873,_0x22944b,_0x31946b,_0x4013b5){return _0x2b6123(_0x22944b,_0x22944b-0xf3,_0x31946b- -_0x375f5f._0x17e28d,_0x4013b5-0x1d0);}return await this[_0x2ba130(-0xb0,-0x89,-0x11,0x61)][_0x2ba130(_0x387ed4._0x4b5652,0x194,0x109,0x6a)](_0x867dce);}[_0x2b6123(0x303,0x38b,0x393,0x437)](_0x312189){const _0x3254cd={_0x235ca2:0x25e,_0x5b2561:0x2fa},_0x59a3ad={_0x541fdb:0x162,_0x21f4b5:0x14c},_0x2d28e8={_0x217cf2:0x271,_0x3f3170:0x10b};function _0x1c3509(_0x470bec,_0x48ead0,_0x13445f,_0x4bb00e){return _0x2b6123(_0x4bb00e,_0x48ead0-0x112,_0x13445f-_0x2d28e8._0x217cf2,_0x4bb00e-_0x2d28e8._0x3f3170);}function _0x28c35d(_0x26f3fc,_0x4ea732,_0xbc343f,_0x9e6e0b){return _0x38c793(_0x26f3fc,_0x4ea732-_0x59a3ad._0x541fdb,_0xbc343f- -0xba,_0x9e6e0b-_0x59a3ad._0x21f4b5);}const _0x2a980e=this[_0x28c35d(0x2b1,0x2be,0x371,0x2bb)][_0x28c35d(0x2ee,_0x3254cd._0x235ca2,_0x3254cd._0x5b2561,0x2e5)](_0x312189);if(!_0x2a980e)throw new Error('Unknown\x20model\x20surface:\x20'+_0x312189);return _0x2a980e;}async[_0x38c793(0x2eb,0x341,0x373,0x2fe)](_0x297b36,_0x346993){const _0x31d684={_0x16ead1:0x5fa,_0x532edf:0x5ea,_0x492a13:0x56a,_0x3cc3b6:0x522,_0x37b306:0x4e3,_0x1841a5:0x5da,_0xf8be54:0x597,_0x4002bd:0x59c,_0x2b6ec6:0x5be,_0x538423:0x5eb,_0x86bdbc:0x54a,_0x78b328:0x55d,_0x462782:0x3f7,_0x888ab6:0x393,_0x2a85c1:0x430,_0x50a7ed:0x3f6,_0x1b687f:0x5a9,_0xc3d43a:0x311,_0x1af92a:0x3e5,_0x2f6b2e:0x462,_0xce993:0x3f7},_0x53a5fe={_0x58afc5:0x190},_0x461829={_0x2a7c64:0x177},_0x46631f=toModelRequest(_0x297b36),_0x370397=await prepareProviderRequest(_0x46631f,{'sessionManager':this['sessionManager'],'requestMutators':this[_0xc83df6(0x583,_0x31d684._0x16ead1,0x55a,_0x31d684._0x532edf)],'signal':_0x346993}),_0x1f3d76=toChatRequest(_0x370397['request']);function _0xc83df6(_0x2ada3f,_0x1807b5,_0x4bf656,_0xde74d){return _0x38c793(_0xde74d,_0x1807b5-0x1bb,_0x1807b5-0x1b4,_0xde74d-_0x461829._0x2a7c64);}const _0x47773c=this[_0xc83df6(_0x31d684._0x492a13,_0x31d684._0x3cc3b6,0x499,_0x31d684._0x37b306)][_0xc83df6(_0x31d684._0x1841a5,_0x31d684._0xf8be54,0x4d2,_0x31d684._0x4002bd)](this[_0xc83df6(_0x31d684._0x2b6ec6,_0x31d684._0x538423,_0x31d684._0x86bdbc,_0x31d684._0x78b328)],_0x370397[_0x3b0bf4(_0x31d684._0x462782,_0x31d684._0x888ab6,_0x31d684._0x2a85c1,_0x31d684._0x50a7ed)]);if(!_0x47773c)throw this[_0xc83df6(0x660,_0x31d684._0x1b687f,0x502,0x61c)]();function _0x3b0bf4(_0x2e6052,_0x38c3cb,_0x16693f,_0x107d4b){return _0x2b6123(_0x16693f,_0x38c3cb-_0x53a5fe._0x58afc5,_0x2e6052-0x6b,_0x107d4b-0x1c0);}return{'baseUrl':this[_0x3b0bf4(0x2a9,0x346,0x2b7,_0x31d684._0xc3d43a)][_0x3b0bf4(_0x31d684._0x50a7ed,0x3e0,0x447,_0x31d684._0x1af92a)](this['baseUrl'],_0x370397[_0x3b0bf4(0x3f7,_0x31d684._0x2f6b2e,0x413,0x374)]),'credential':_0x47773c,'request':_0x1f3d76,'session':_0x370397[_0x3b0bf4(_0x31d684._0xce993,0x3a1,0x34e,0x3c0)]};}['applyModelDefaults'](_0x18b2d1){const _0x757c02={_0x5e8946:0x2cf,_0x31bc08:0x288,_0x33b4d2:0x2ad,_0x183ba7:0x212},_0x180bd5={_0x2d868d:0x75,_0x24b7b3:0x439,_0x30f2b9:0x88},_0x536bea={_0x5791cc:0x63};function _0x56c740(_0x3bac85,_0x479714,_0x15a10e,_0x22bc67){return _0x2b6123(_0x22bc67,_0x479714-_0x536bea._0x5791cc,_0x15a10e- -0xe1,_0x22bc67-0x57);}function _0x376725(_0x541de4,_0x185e6c,_0x411ad9,_0x3f9e38){return _0x2b6123(_0x411ad9,_0x185e6c-_0x180bd5._0x2d868d,_0x3f9e38- -_0x180bd5._0x24b7b3,_0x3f9e38-_0x180bd5._0x30f2b9);}return{...structuredClone(_0x18b2d1),..._0x18b2d1['reasoning']===void 0x0&&this[_0x56c740(_0x757c02._0x5e8946,0x258,_0x757c02._0x31bc08,_0x757c02._0x33b4d2)]!==void 0x0?{'reasoning':structuredClone(this[_0x56c740(0x30b,0x2ac,0x288,_0x757c02._0x183ba7)])}:{}};}async[_0x2b6123(0x27d,0x326,0x329,0x26e)](_0x4dcf8e,_0x154638,_0x2bf90a,_0x391731){const _0x38e6c8={_0x110df7:0x11f,_0x177cb5:0xef,_0x1bb070:0x42d,_0xcc6704:0x489,_0x3c7547:0x48d,_0x4314e5:0x1b8,_0x219805:0x30f,_0xd617a1:0x2ec},_0x54e684={_0x23dc47:0xe3},_0x313d9e={_0x504c93:0x56,_0x2601d9:0x38,_0x513a47:0x6a,_0x37d69a:0x153,_0x50ca8a:0x207,_0x4edf02:0x20a,_0x43a7e2:0x21b,_0x27bddf:0x1d9,_0x4248ca:0x27c,_0x2f4f84:0x125,_0x547017:0x18,_0x152255:0x2e,_0x231a23:0x14d,_0x901abc:0x144,_0x569950:0x263,_0x21ea7c:0x1fb,_0x5f4660:0xaa,_0x485a6a:0x1eb,_0x3a3149:0x94,_0x54f2f1:0x12f,_0x48679f:0xe,_0x324d71:0x349,_0x5ddd8b:0x1d7,_0x373d69:0x289,_0x17bbef:0xf4,_0x40651e:0xd5,_0x543201:0x28c,_0x494290:0x254,_0x13310d:0x2f4,_0x30fddd:0x13f,_0x3afcca:0x162,_0x444105:0x166,_0x55fb95:0x202,_0x2d7e64:0x207,_0xa854c5:0x33d,_0x3cf5c9:0x2de,_0x55f41b:0x2db,_0x4d17f3:0x52,_0x4c9f9e:0x42,_0xa7eb31:0xdd},_0x46a2fa={_0x10ac22:0xca};function _0x505c03(_0x248e7b,_0xb1c76a,_0x30b0b9,_0xa4ddd3){return _0x2b6123(_0xa4ddd3,_0xb1c76a-0x181,_0xb1c76a-0x79,_0xa4ddd3-_0x46a2fa._0x10ac22);}const _0x502d6f=async()=>{const _0x35926e=await this[_0x496438(_0x313d9e._0x504c93,_0x313d9e._0x2601d9,0x107,-_0x313d9e._0x513a47)](_0x4dcf8e,_0x391731),_0x5f0446=_0x154638[_0x32df09(-_0x313d9e._0x37d69a,-0xba,-0x152,-_0x313d9e._0x50ca8a)](_0x35926e[_0x32df09(-0x187,-_0x313d9e._0x4edf02,-_0x313d9e._0x43a7e2,-_0x313d9e._0x27bddf)]);if(!_0x5f0446[_0x32df09(-0x221,-0x1fe,-_0x313d9e._0x4248ca,-0x310)])throw new Error(_0x496438(0x1af,0x205,_0x313d9e._0x2f4f84,0x189)+_0x154638['id']+_0x496438(0x9b,_0x313d9e._0x547017,0xc,_0x313d9e._0x152255));function _0x496438(_0x580c85,_0x54c564,_0x92e547,_0x577075){return _0x25f1(_0x580c85- -0x104,_0x92e547);}const _0x2c99eb=await this['createHeaders']({'request':_0x35926e['request'],'body':_0x5f0446['body'],'credential':_0x35926e[_0x32df09(-0x145,-_0x313d9e._0x231a23,-_0x313d9e._0x901abc,-0x1c9)],'session':_0x35926e[_0x496438(0x19f,_0x313d9e._0x569950,0xdd,0x12a)],'stream':_0x2bf90a},{'accept':_0x5f0446[_0x32df09(-0x269,-0x197,-0x1a8,-_0x313d9e._0x21ea7c)]??(_0x2bf90a?_0x496438(0x15f,0x1b6,_0x313d9e._0x5f4660,_0x313d9e._0x485a6a):_0x496438(_0x313d9e._0x3a3149,_0x313d9e._0x54f2f1,0x72,_0x313d9e._0x48679f)),'includeContentType':_0x5f0446[_0x32df09(-_0x313d9e._0x324d71,-_0x313d9e._0x5ddd8b,-_0x313d9e._0x373d69,-0x1ef)]!==void 0x0});function _0x32df09(_0x2b037c,_0x3e67c9,_0x1e214f,_0x1b0cc7){return _0x25f1(_0x1e214f- -0x3df,_0x3e67c9);}for(const [_0x2aa417,_0x349fd1]of Object[_0x496438(_0x313d9e._0x17bbef,_0x313d9e._0x40651e,0x85,0x60)](_0x5f0446[_0x32df09(-_0x313d9e._0x543201,-0x1ec,-_0x313d9e._0x494290,-0x242)]??{})){_0x2c99eb['set'](_0x2aa417,_0x349fd1);}return this[_0x32df09(-_0x313d9e._0x13310d,-0x1a7,-0x25f,-0x283)](''+_0x35926e[_0x32df09(-_0x313d9e._0x30fddd,-_0x313d9e._0x3afcca,-0x12f,-_0x313d9e._0x444105)]+_0x5f0446['path'],{'method':_0x32df09(-_0x313d9e._0x55fb95,-0x257,-0x1ac,-_0x313d9e._0x2d7e64),'headers':_0x2c99eb,..._0x5f0446[_0x32df09(-0x27f,-_0x313d9e._0xa854c5,-0x289,-0x238)]!==void 0x0?{'body':JSON[_0x32df09(-_0x313d9e._0x3cf5c9,-_0x313d9e._0x55f41b,-0x28b,-0x2e8)](_0x5f0446[_0x496438(_0x313d9e._0x4d17f3,-_0x313d9e._0x4c9f9e,_0x313d9e._0xa7eb31,0x0)])}:{},'signal':_0x391731});},_0xef568d=await _0x502d6f();if(_0xef568d[_0x51fc80(_0x38e6c8._0x110df7,_0x38e6c8._0x177cb5,0xa8,0x104)]!==0x191||!this[_0x505c03(0x38c,_0x38e6c8._0x1bb070,_0x38e6c8._0xcc6704,_0x38e6c8._0x3c7547)])return _0xef568d;function _0x51fc80(_0x2e0bd4,_0x36ec73,_0xd1878c,_0xc4ed34){return _0x38c793(_0x2e0bd4,_0x36ec73-_0x54e684._0x23dc47,_0xd1878c- -0x32c,_0xc4ed34-0x1c7);}return this[_0x51fc80(0x223,0x223,_0x38e6c8._0x4314e5,0x26a)][_0x505c03(0x37f,_0x38e6c8._0x219805,0x2e9,_0x38e6c8._0xd617a1)](),_0x502d6f();}async*[_0x2b6123(0x2ce,0x3a8,0x380,0x3d7)](_0x3c3690,_0xdc790f,_0x7a1ea1){const _0x1109ea={_0x27114e:0x16b,_0xe7612a:0xbf,_0x1ae754:0x144,_0x50ed78:0x13a,_0x452a1d:0xfd,_0x47a9c8:0x5b,_0x4e3196:0x31,_0x394480:0xe6,_0x15192b:0x38,_0x514255:0x1aa,_0x254d01:0x200,_0x26e8c1:0xdf,_0x1371b9:0xbb,_0x39eafc:0xe4,_0x255148:0xa9,_0x2ee6d:0x10e},_0x4f8c69={_0x1dcacb:0x1a},_0x95cb76={_0xe28fd:0x105,_0x1a1ec6:0x49c},_0x32b1eb=await this['sendHttpSurfaceRequest'](_0x3c3690,_0xdc790f,!![],_0x7a1ea1);function _0x42e3d9(_0x19b526,_0x3a8601,_0x5b0ade,_0x16d984){return _0x2b6123(_0x5b0ade,_0x3a8601-_0x95cb76._0xe28fd,_0x16d984- -_0x95cb76._0x1a1ec6,_0x16d984-0x28);}if(!_0x32b1eb['ok'])throw await this[_0x42e3d9(-0x1d3,-_0x1109ea._0x27114e,-_0x1109ea._0xe7612a,-_0x1109ea._0x1ae754)](_0x32b1eb);const _0x111a66=_0xdc790f[_0x5c4128(0xce,_0x1109ea._0x50ed78,0x17b,0xf0)]?.(_0x3c3690);if(!_0x111a66?.['consumeSseEvent'])throw new Error(_0x5c4128(0x18a,0x12d,_0x1109ea._0x452a1d,0xf2)+_0xdc790f['id']+_0x5c4128(_0x1109ea._0x47a9c8,-_0x1109ea._0x4e3196,_0x1109ea._0x394480,_0x1109ea._0x15192b));function _0x5c4128(_0x2672e2,_0x2abc97,_0x5530dd,_0x3bc47c){return _0x38c793(_0x3bc47c,_0x2abc97-_0x4f8c69._0x1dcacb,_0x2672e2- -0x342,_0x3bc47c-0x1a);}for await(const _0x3ffb56 of iterateSseEvents(_0x32b1eb,_0x7a1ea1)){yield*_0x111a66[_0x42e3d9(-0x182,-_0x1109ea._0x514255,-0x1a4,-_0x1109ea._0x254d01)](_0x3ffb56);}yield{'type':_0x5c4128(_0x1109ea._0x26e8c1,_0x1109ea._0x1371b9,0x28,0xd7),'response':_0x111a66[_0x42e3d9(-0x1d0,-_0x1109ea._0x39eafc,-_0x1109ea._0x255148,-_0x1109ea._0x2ee6d)]()};}async*['streamWebSocketSurface'](_0x1047d9,_0x2e6332,_0x113345){const _0x5d152e={_0x57f589:0x14,_0x310e34:0x92,_0x1d97b0:0x146,_0x1bd7c8:0x14a,_0x450094:0x110,_0x597f74:0x7d,_0x3c2c53:0xf2,_0xe256de:0x267,_0x46e1f3:0x2e8,_0x15984e:0x250,_0x2584f0:0x273,_0x34e4e3:0x14a,_0x54a14c:0x183,_0x37fb25:0x8a,_0x2f9407:0x17d,_0x1012d6:0x7c,_0x27245d:0x169,_0x3122cd:0xa0,_0xb42fa1:0x15b,_0x39385a:0x100,_0x539d70:0xb1,_0x7b49ec:0x111,_0x27f4ef:0x22,_0x5622fb:0x6c,_0x297c46:0x227,_0x2f3d4c:0x11b,_0x166137:0x18b,_0x2c1f67:0x35,_0x4fdf2a:0xf3,_0x4015b7:0xcb,_0x3e3c44:0xc9,_0x2bf3d6:0x121,_0x1cce94:0x1ab,_0x4eae08:0x184,_0x2983da:0x90,_0x3d0c8a:0x1df,_0x30796c:0x263,_0xa28855:0xc,_0x211e02:0x116,_0x1d6875:0x6e,_0x14d13c:0x44,_0x4bb54d:0x7e,_0x51e91c:0x4a,_0x40fa8c:0x202,_0x3d6222:0x247,_0x1ebf5d:0xe0,_0x22fdbf:0x151,_0x3b2408:0xf0,_0x3ac3fe:0xbe,_0x545aca:0x2b,_0x1406f8:0x1b5,_0x2655d5:0xb3,_0x4ce76a:0x8e,_0x4b0893:0xb1,_0x2bb58f:0xf3,_0x26c899:0x2c,_0x23856f:0x1b1,_0x32abb7:0x264,_0x1f95d4:0xde,_0x3bec79:0x217,_0x2a4809:0x3,_0x158906:0x55,_0x158df0:0xaa,_0x244b29:0x5e,_0xdd00e3:0x120,_0x4d6aaf:0x28,_0x33c6f0:0x167,_0x27201c:0x12f,_0x5936f5:0x15e,_0x131d46:0xbb,_0x32f9d0:0x1fc,_0x2762bc:0x2f3,_0x32e387:0x261,_0x520861:0x170,_0x354dc5:0x272,_0x3ac9c3:0x244,_0x4d758a:0x1ac,_0x16dd65:0x79,_0x4d99d8:0xe7,_0x118764:0xef},_0x53b691={_0xa06e0a:0x19a,_0x554206:0x230},_0x12a640=await this[_0x2342cd(0x13,-_0x5d152e._0x57f589,-_0x5d152e._0x310e34,0x3f)](_0x1047d9,_0x113345),_0x34f2ca=_0x2e6332[_0x2342cd(_0x5d152e._0x1d97b0,0x110,_0x5d152e._0x1bd7c8,_0x5d152e._0x450094)](_0x12a640[_0x2342cd(_0x5d152e._0x597f74,0x92,-0x3f,0x10d)]),_0x5255cd=_0x2e6332[_0x17948f(_0x5d152e._0x3c2c53,_0x5d152e._0xe256de,0x238,0x1b7)]?.(_0x1047d9);if(!_0x5255cd?.['consumeWebSocketEvent'])throw new Error(_0x17948f(_0x5d152e._0x46e1f3,_0x5d152e._0x15984e,0x266,_0x5d152e._0x2584f0)+_0x2e6332['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x2675c1=_0x34f2ca[_0x2342cd(_0x5d152e._0x34e4e3,_0x5d152e._0x54a14c,_0x5d152e._0x37fb25,_0x5d152e._0x2f9407)]??(_0x34f2ca[_0x17948f(0xfa,_0x5d152e._0x1012d6,0xea,0x123)]?(''+_0x12a640[_0x2342cd(_0x5d152e._0x27245d,_0x5d152e._0x3122cd,0x1c7,0x1c0)]+_0x34f2ca[_0x17948f(0x6d,_0x5d152e._0xb42fa1,0xdf,0x123)])[_0x2342cd(_0x5d152e._0x39385a,_0x5d152e._0x539d70,0x74,_0x5d152e._0x7b49ec)](/^http:/,_0x2342cd(_0x5d152e._0x27f4ef,0xc4,0x5f,_0x5d152e._0x5622fb))[_0x17948f(0x2af,0x20e,0x1dc,0x207)](/^https:/,_0x17948f(0x23a,0x15e,_0x5d152e._0x297c46,0x17e)):void 0x0);function _0x17948f(_0x256fa3,_0x1f605b,_0x509bb3,_0x242472){return _0x38c793(_0x509bb3,_0x1f605b-0x1eb,_0x242472- -0x259,_0x242472-0x199);}if(!_0x2675c1)throw new Error(_0x2342cd(0x16c,0x223,_0x5d152e._0x2f3d4c,_0x5d152e._0x166137)+_0x2e6332['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x517a28=await this[_0x2342cd(_0x5d152e._0x2c1f67,_0x5d152e._0x4fdf2a,_0x5d152e._0x4015b7,_0x5d152e._0x3e3c44)]({'request':_0x12a640[_0x17948f(0x1d9,_0x5d152e._0x2bf3d6,_0x5d152e._0x1cce94,_0x5d152e._0x4eae08)],'body':_0x34f2ca[_0x17948f(_0x5d152e._0x2983da,0x142,0x160,0x14e)],'credential':_0x12a640['credential'],'session':_0x12a640[_0x17948f(0x1a5,_0x5d152e._0x3d0c8a,0x27b,_0x5d152e._0x30796c)],'stream':!![]},{'accept':_0x34f2ca['accept']??_0x2342cd(0x51,0xd1,_0x5d152e._0xa28855,-0x58),'includeContentType':![]});for(const [_0x4fc9c5,_0x29d5c7]of Object[_0x2342cd(0xb1,_0x5d152e._0x211e02,_0x5d152e._0x1d6875,0xad)](_0x34f2ca[_0x2342cd(_0x5d152e._0x14d13c,0x46,-_0x5d152e._0x4bb54d,_0x5d152e._0x51e91c)]??{})){_0x517a28[_0x17948f(0x22e,_0x5d152e._0x40fa8c,0x1fd,_0x5d152e._0x3d6222)](_0x4fc9c5,_0x29d5c7);}function _0x2342cd(_0x533024,_0xa0ee6c,_0x164730,_0x455d67){return _0x2b6123(_0x455d67,_0xa0ee6c-_0x53b691._0xa06e0a,_0x533024- -_0x53b691._0x554206,_0x455d67-0x170);}_0x517a28[_0x2342cd(_0x5d152e._0x1ebf5d,_0x5d152e._0xb42fa1,_0x5d152e._0x22fdbf,0x17)](_0x2342cd(_0x5d152e._0x3b2408,_0x5d152e._0x3ac3fe,_0x5d152e._0x545aca,0x7e));const _0x181c40=this['webSocketFactory']({'headers':Object[_0x2342cd(0x12b,_0x5d152e._0x1406f8,_0x5d152e._0x2655d5,_0x5d152e._0x4ce76a)](_0x517a28[_0x2342cd(_0x5d152e._0x4b0893,-0x15,_0x5d152e._0x2bb58f,_0x5d152e._0x26c899)]()),'url':_0x2675c1});try{throwIfAborted(_0x113345);_0x181c40['readyState']!==WebSocket[_0x17948f(_0x5d152e._0x23856f,_0x5d152e._0x32abb7,0x223,0x261)]&&await waitForWebSocketOpen(_0x181c40,_0x113345);throwIfAborted(_0x113345);_0x34f2ca['initialEvent']!==void 0x0&&_0x181c40['send'](JSON[_0x17948f(0x1d8,_0x5d152e._0x4eae08,_0x5d152e._0x1f95d4,0x114)](_0x34f2ca[_0x17948f(0x136,0x92,_0x5d152e._0x3bec79,0x14e)]));for await(const _0x216511 of iterateWebSocketMessages(_0x181c40,_0x113345)){yield*_0x5255cd[_0x2342cd(-_0x5d152e._0x2a4809,-_0x5d152e._0x158906,-_0x5d152e._0x158df0,-0xad)](_0x216511);if(_0x5255cd[_0x2342cd(_0x5d152e._0x244b29,-0x2c,_0x5d152e._0xdd00e3,-_0x5d152e._0x4d6aaf)]?.())break;}yield{'type':_0x17948f(_0x5d152e._0x33c6f0,_0x5d152e._0x27201c,0x263,0x1c8),'response':_0x5255cd[_0x2342cd(_0x5d152e._0x5936f5,_0x5d152e._0x131d46,0x104,0x171)]()};}finally{_0x181c40[_0x2342cd(0x84,-0x1d,0x64,-0x24)]===WebSocket[_0x17948f(_0x5d152e._0x32f9d0,_0x5d152e._0x2762bc,0x1a7,_0x5d152e._0x32e387)]&&_0x181c40[_0x17948f(_0x5d152e._0x520861,_0x5d152e._0x354dc5,_0x5d152e._0x3ac9c3,_0x5d152e._0x4d758a)](0x3e8,_0x113345?.['aborted']?'aborted':_0x2342cd(_0x5d152e._0x16dd65,0x144,_0x5d152e._0x4d99d8,_0x5d152e._0x118764));}}};async function createHttpError(_0x448db0){const _0x39f9e6={_0x1a4976:0x426,_0x4b9ef8:0x479,_0x46c42b:0x4ba,_0x5c9408:0x522,_0x358e5c:0x4e0,_0x11d1ac:0x469,_0x3d24d6:0x447,_0x592836:0x482,_0x3d5e55:0x363,_0x573338:0x40d},_0xc90ef2={_0x21f8c9:0x75,_0x1ad54b:0x174},_0x32dc1f=await _0x448db0[_0x1085c5(_0x39f9e6._0x1a4976,_0x39f9e6._0x4b9ef8,_0x39f9e6._0x46c42b,_0x39f9e6._0x5c9408)]();function _0x25ff55(_0xdfb45f,_0x50e9e3,_0x182aa6,_0x1d1d03){return _0x38c793(_0xdfb45f,_0x50e9e3-_0xc90ef2._0x21f8c9,_0x182aa6-0x1c,_0x1d1d03-_0xc90ef2._0x1ad54b);}const _0x1ebaed=_0x32dc1f['trim']()||_0x448db0[_0x25ff55(0x4f6,_0x39f9e6._0x358e5c,_0x39f9e6._0x11d1ac,_0x39f9e6._0x3d24d6)]||'Unknown\x20provider\x20error';function _0x1085c5(_0x53f6b8,_0x5681a6,_0x15195c,_0x1f7ba2){return _0x38c793(_0x53f6b8,_0x5681a6-0x11b,_0x15195c-0x78,_0x1f7ba2-0x11c);}return new Error(_0x25ff55(_0x39f9e6._0x592836,_0x39f9e6._0x3d5e55,_0x39f9e6._0x573338,0x3ad)+_0x448db0[_0x1085c5(0x3d5,0x39e,0x44c,0x485)]+':\x20'+_0x1ebaed);}var AnthropicProviderAdapter=class{['authScheme'];[_0x38c793(0x412,0x4bb,0x474,0x52b)];[_0x38c793(0x3f6,0x3be,0x487,0x4dd)];constructor(_0x1e3487){const _0x5ca8b5={_0x2839a2:0x269,_0x272a63:0x20f,_0x1600b2:0x1cc,_0x34fa7e:0x5b3,_0x3617e0:0x5b8,_0x14dba9:0x626,_0x55acc6:0xa8,_0x5d2f3e:0x16c,_0x7f4e33:0x1ae},_0x1cfb0d={_0x1853c1:0xb1,_0x5b8a0a:0xfe},_0x9b9856={_0x5804c6:0xe1};this[_0x1c34c5(_0x5ca8b5._0x2839a2,_0x5ca8b5._0x272a63,_0x5ca8b5._0x1600b2,0x18b)]=_0x1e3487[_0x1d5e6f(0x650,_0x5ca8b5._0x34fa7e,0x5fd,0x66f)];function _0x1c34c5(_0x216437,_0x21e94f,_0x2b326c,_0x1f0dc4){return _0x2b6123(_0x216437,_0x21e94f-_0x9b9856._0x5804c6,_0x2b326c- -0x1eb,_0x1f0dc4-0x19e);}function _0x1d5e6f(_0x464d4b,_0x1a16fb,_0x2df29b,_0x527921){return _0x2b6123(_0x1a16fb,_0x1a16fb-_0x1cfb0d._0x1853c1,_0x527921-0x2b8,_0x527921-_0x1cfb0d._0x5b8a0a);}this['headerResolver']=_0x1e3487[_0x1d5e6f(0x632,_0x5ca8b5._0x3617e0,_0x5ca8b5._0x14dba9,0x5fc)],this[_0x1c34c5(0xc8,_0x5ca8b5._0x55acc6,_0x5ca8b5._0x5d2f3e,_0x5ca8b5._0x7f4e33)]=_0x1e3487['protocolVersion'];}[_0x38c793(0x439,0x48a,0x3f5,0x400)](){const _0x58eb3f={_0x144f63:0x205,_0x2682ce:0x209};function _0x26826(_0x25b356,_0x55de83,_0x334fcd,_0x577c19){return _0x2b6123(_0x25b356,_0x55de83-0x1ef,_0x55de83- -0xf3,_0x577c19-0x13b);}return new Error(_0x26826(0x167,_0x58eb3f._0x144f63,0x1e2,_0x58eb3f._0x2682ce));}async[_0x38c793(0x402,0x420,0x395,0x2ff)](_0xfe70cd,_0x10af7d){const _0xe4a0b1={_0x330e1f:0x36e,_0x2fef9e:0x391,_0x5da239:0x3ba,_0x46d9e0:0xd8,_0x511bd3:0x33,_0xcaa43d:0x362,_0x1e5e23:0x31a,_0x261031:0x3fe,_0xdc8bb6:0x3a7,_0x4689fa:0x307,_0x435076:0xaa,_0x2b3f1c:0x14f,_0x3e574a:0x5a,_0x49b544:0x129,_0x546f50:0x22a,_0x39eadc:0x28d,_0xe3fa66:0x325,_0x58e0d6:0x38b,_0x38d123:0x2d4,_0x5738d8:0x2f7,_0x5ea53c:0x258,_0xdcbab1:0x24a,_0x3d816c:0x2fa,_0x2507cb:0x38c,_0x243c33:0x0,_0x9ceea2:0xb8,_0x33b51a:0x31a,_0x2567ec:0x339,_0x5aaeb9:0x379,_0x16068b:0x354,_0x19ad3a:0x2a0,_0x37ee84:0x2eb,_0x5312f6:0x326,_0x32a8c6:0x3,_0x18fa31:0xa,_0x1c50a2:0x197,_0x4dcd9a:0x2dd,_0x2640e5:0xc9,_0x2cf25e:0x45,_0x1e93b4:0x2b,_0x5068bd:0xc,_0x517806:0x41},_0x4d1059={_0xe8279a:0x154},_0x487c27={_0x199cbc:0x98,_0x1030c4:0x32b},_0x3a68a6=new Headers();_0x3a68a6['set']('accept',_0x10af7d[_0x4ad90a(0x255,0x2d5,_0xe4a0b1._0x330e1f,0x36c)]),_0x3a68a6[_0x4ad90a(_0xe4a0b1._0x2fef9e,0x325,0x2d9,_0xe4a0b1._0x5da239)](_0x4233e5(-0x73,-_0xe4a0b1._0x46d9e0,-0x79,_0xe4a0b1._0x511bd3),this[_0x4ad90a(0x2d2,0x30c,_0xe4a0b1._0xcaa43d,_0xe4a0b1._0x1e5e23)]);_0x10af7d[_0x4ad90a(_0xe4a0b1._0x261031,0x35a,0x362,_0xe4a0b1._0xdc8bb6)]!==![]&&_0x3a68a6['set'](_0x4ad90a(0x2c1,0x275,0x1e7,_0xe4a0b1._0x4689fa),_0x4233e5(-_0xe4a0b1._0x435076,-_0xe4a0b1._0x2b3f1c,-0xad,-0xa1));this[_0x4233e5(0x8c,_0xe4a0b1._0x3e574a,_0xe4a0b1._0x49b544,0xef)]===_0x4ad90a(_0xe4a0b1._0x546f50,0x2cf,_0xe4a0b1._0x39eadc,0x283)?_0x3a68a6[_0x4ad90a(0x3ce,_0xe4a0b1._0xe3fa66,_0xe4a0b1._0x58e0d6,0x333)](_0x4ad90a(_0xe4a0b1._0x38d123,0x359,0x2a5,_0xe4a0b1._0x5738d8),_0x4ad90a(_0xe4a0b1._0x5ea53c,_0xe4a0b1._0xdcbab1,0x302,_0xe4a0b1._0x3d816c)+_0xfe70cd[_0x4ad90a(0x298,0x339,0x35d,0x2f7)]['value']):_0x3a68a6[_0x4ad90a(_0xe4a0b1._0x2507cb,0x325,0x354,0x2ac)](_0x4233e5(_0xe4a0b1._0x243c33,-0x2c,-_0xe4a0b1._0x9ceea2,0xa3),_0xfe70cd[_0x4ad90a(_0xe4a0b1._0x33b51a,_0xe4a0b1._0x2567ec,_0xe4a0b1._0x5aaeb9,0x2c3)][_0x4ad90a(_0xe4a0b1._0x16068b,_0xe4a0b1._0x19ad3a,_0xe4a0b1._0x37ee84,_0xe4a0b1._0x5312f6)]);function _0x4233e5(_0x51fb36,_0x241175,_0x186e31,_0x45ae75){return _0x2b6123(_0x241175,_0x241175-_0x487c27._0x199cbc,_0x51fb36- -_0x487c27._0x1030c4,_0x45ae75-0xae);}function _0x4ad90a(_0x1ba5ca,_0xba0649,_0x381592,_0xb5dcb0){return _0x38c793(_0x381592,_0xba0649-_0x4d1059._0xe8279a,_0xba0649- -0x17b,_0xb5dcb0-0xf1);}const _0x2bd026=await this[_0x4233e5(0x19,-_0xe4a0b1._0x32a8c6,-0x77,_0xe4a0b1._0x18fa31)]?.({'body':_0xfe70cd[_0x4233e5(-0xec,-0x2f,-0x72,-0x75)],'credential':_0xfe70cd['credential'],'request':_0xfe70cd[_0x4ad90a(0x1d9,0x262,_0xe4a0b1._0x1c50a2,_0xe4a0b1._0x4dcd9a)],'session':_0xfe70cd['session'],'stream':_0xfe70cd[_0x4233e5(0x1e,-0x89,0xc1,_0xe4a0b1._0x2640e5)]});for(const [_0x3fa223,_0x568597]of Object['entries'](_0x2bd026??{})){_0x3a68a6[_0x4233e5(_0xe4a0b1._0x2cf25e,-_0xe4a0b1._0x1e93b4,-_0xe4a0b1._0x5068bd,-_0xe4a0b1._0x517806)](_0x3fa223,_0x568597);}return _0x3a68a6;}['mapApiError'](_0xcc4177){return _0xcc4177;}[_0x38c793(0x4c6,0x55c,0x4bb,0x3ff)](_0x1b6e50,_0x2fea13){return resolveSessionBaseUrl(_0x1b6e50,_0x2fea13);}[_0x38c793(0x42f,0x44e,0x3e3,0x41f)](_0x1f9754,_0x554e63){return resolveApiCredential(_0x1f9754,_0x554e63);}async[_0x38c793(0x47d,0x43f,0x488,0x4be)](_0x51c491){return await createHttpError(_0x51c491);}},AnthropicModel=class extends RoutedModel{constructor(_0x21e2c0={}){const _0x1263f2={_0xa8785b:0x2ea,_0x239b05:0x2ad,_0x144f8e:0x283,_0x587f29:0x2c3,_0xf95298:0x35c,_0x4172fd:0x26b,_0x368343:0x2ca,_0xbe423c:0x373,_0x40b8ee:0x215,_0xe97e51:0x2da,_0x5937e6:0x177,_0x224481:0x37d,_0x200525:0x318,_0x4eca8c:0x2d6,_0x2e3aa0:0x26f,_0x111033:0x2d1,_0x4daa2b:0x24d,_0x19a3b5:0x332,_0x47417f:0x389,_0x4ae48c:0x201,_0xb7be7:0x1d0,_0x42905e:0x1f4,_0x404e87:0x1e2,_0x79e424:0x285,_0x26df2d:0x2e2,_0x524537:0x224},_0x402cdd={_0x466eb6:0x1a,_0x3492c6:0x11b},_0x5186d2={_0x34da5e:0x93,_0x184503:0x9a};function _0x23e85f(_0x403e67,_0xf306af,_0x43b4d0,_0x185731){return _0x2b6123(_0xf306af,_0xf306af-0x192,_0x43b4d0- -_0x5186d2._0x34da5e,_0x185731-_0x5186d2._0x184503);}function _0x444adc(_0x5d7854,_0x12402f,_0x58bf7b,_0x3d628e){return _0x38c793(_0x3d628e,_0x12402f-_0x402cdd._0x466eb6,_0x12402f- -0x18a,_0x3d628e-_0x402cdd._0x3492c6);}super({'apiKey':_0x21e2c0[_0x444adc(_0x1263f2._0xa8785b,_0x1263f2._0x239b05,_0x1263f2._0x144f8e,0x34b)],'baseUrl':trimTrailingSlashes(_0x21e2c0[_0x23e85f(0x346,0x3a7,0x306,_0x1263f2._0x587f29)]??_0x23e85f(0x139,0x1f4,0x1c5,0x290)),'fetch':_0x21e2c0[_0x23e85f(_0x1263f2._0xf95298,_0x1263f2._0x4172fd,_0x1263f2._0x368343,_0x1263f2._0xbe423c)],'maxTokens':_0x21e2c0[_0x444adc(0x20c,_0x1263f2._0x40b8ee,_0x1263f2._0xe97e51,_0x1263f2._0x5937e6)]??0x4000,'model':_0x21e2c0['model']??_0x444adc(0x24e,0x2fa,0x344,0x3a4),'reasoning':_0x21e2c0[_0x23e85f(_0x1263f2._0x224481,_0x1263f2._0x200525,_0x1263f2._0x4eca8c,0x26f)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x21e2c0[_0x23e85f(0x377,0x333,0x324,_0x1263f2._0x2e3aa0)]??_0x444adc(0x2ee,_0x1263f2._0x111033,0x2ae,0x342),'headerResolver':_0x21e2c0[_0x444adc(_0x1263f2._0x4daa2b,_0x1263f2._0xa8785b,0x30d,_0x1263f2._0x19a3b5)],'protocolVersion':_0x21e2c0[_0x23e85f(_0x1263f2._0x47417f,_0x1263f2._0x4ae48c,0x2c4,0x249)]??'2023-06-01'}),'providerSessionResolver':_0x21e2c0[_0x444adc(_0x1263f2._0xb7be7,_0x1263f2._0x42905e,_0x1263f2._0x404e87,0x13e)],'requestMutators':_0x21e2c0[_0x23e85f(_0x1263f2._0x79e424,_0x1263f2._0x26df2d,0x283,_0x1263f2._0x524537)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}['complete'](_0x30d0e5,_0x52d988){const _0x34680e={_0x42d0e6:0x622},_0x351382={_0x489629:0x177,_0x410256:0x2d1,_0x2d0dd4:0x13c};function _0x10eb34(_0x5b6c12,_0x5f1bab,_0x3f28b2,_0x429ac0){return _0x2b6123(_0x5b6c12,_0x5f1bab-_0x351382._0x489629,_0x429ac0-_0x351382._0x410256,_0x429ac0-_0x351382._0x2d0dd4);}return this[_0x10eb34(0x648,0x5b6,0x69f,_0x34680e._0x42d0e6)](_0x30d0e5,ANTHROPIC_MESSAGES_SURFACE,_0x52d988);}[_0x38c793(0x521,0x4ea,0x479,0x467)](_0x2b54e6,_0x3e1ba0){const _0x250b3e={_0x8724fa:0x429,_0xc304cb:0x364};function _0xae550b(_0x5a65fd,_0x56c4b2,_0x49147b,_0x1fc85e){return _0x2b6123(_0x49147b,_0x56c4b2-0xd1,_0x1fc85e-0x113,_0x1fc85e-0x121);}return this[_0xae550b(0x32e,0x2a8,_0x250b3e._0x8724fa,_0x250b3e._0xc304cb)](_0x2b54e6,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x3e1ba0);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x38c793(0x2af,0x2ca,0x374,0x2ce),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x2b6123(0x35c,0x34a,0x321,0x2ab),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x2b6123(0x235,0x284,0x28f,0x242),OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0x2b6123(0x361,0x24f,0x2a4,0x33f)];[_0x38c793(0x3f5,0x3c3,0x36f,0x3cd)];constructor(_0x4f2d0c,_0x10602b,_0x585067){const _0x44e696={_0x34b671:0xb9,_0x3adc09:0x49,_0x2b1fc7:0x62,_0x1c4f9:0x78,_0x3720e1:0x33,_0x3e8501:0xf6,_0x388f8e:0x417,_0x38365d:0x458},_0x28ef55={_0x4e388b:0x1ed,_0x64a81e:0x194},_0x3a4c82={_0x1baf5a:0x185,_0x3b7df3:0x1bc};function _0x599701(_0x424a01,_0x387e4d,_0x59b65b,_0x65ce00){return _0x38c793(_0x387e4d,_0x387e4d-_0x3a4c82._0x1baf5a,_0x59b65b-0xe9,_0x65ce00-_0x3a4c82._0x3b7df3);}super(_0x585067),this[_0x4268d6(-_0x44e696._0x34b671,-_0x44e696._0x3adc09,-0xba,-0xbb)]='OpenAiApiError';function _0x4268d6(_0x533ce4,_0x41792c,_0x1defff,_0xfcbb5a){return _0x38c793(_0xfcbb5a,_0x41792c-_0x28ef55._0x4e388b,_0x533ce4- -0x436,_0xfcbb5a-_0x28ef55._0x64a81e);}this[_0x4268d6(-_0x44e696._0x2b1fc7,-_0x44e696._0x1c4f9,-_0x44e696._0x3720e1,-_0x44e696._0x3e8501)]=_0x4f2d0c,this[_0x599701(0x462,_0x44e696._0x388f8e,_0x44e696._0x38365d,0x3c9)]=_0x10602b;}},OpenAiResponsesStreamError=class extends Error{['code'];[_0x2b6123(0x222,0x36f,0x2a4,0x280)];constructor(_0x3d47fc,_0x16ec8c={}){const _0x55cfb2={_0x238265:0x64,_0x31bed0:0xd9,_0x2877c3:0x3b2,_0x36dcb3:0x3e6,_0x30f181:0x231,_0x147f2e:0x239,_0x28423b:0x25e,_0x18fd54:0x39b},_0x90c825={_0x3e14a3:0x131,_0x4f24fb:0x8},_0x20b51c={_0x37fdf5:0x119,_0x361911:0x174,_0x30faea:0x1e8};super(_0x3d47fc),this[_0x20fa4b(_0x55cfb2._0x238265,_0x55cfb2._0x31bed0,0x15e,0x114)]=_0x2ef86d(_0x55cfb2._0x2877c3,0x491,_0x55cfb2._0x36dcb3,0x3f3),this[_0x20fa4b(0x243,0x24a,_0x55cfb2._0x30f181,_0x55cfb2._0x147f2e)]=_0x16ec8c[_0x20fa4b(0x242,0x24a,0x1b4,_0x55cfb2._0x28423b)];function _0x20fa4b(_0x583e11,_0x140c14,_0xc8c8dc,_0x3c1a8a){return _0x2b6123(_0x3c1a8a,_0x140c14-_0x20b51c._0x37fdf5,_0x140c14- -_0x20b51c._0x361911,_0x3c1a8a-_0x20b51c._0x30faea);}function _0x2ef86d(_0x218031,_0x2bed3d,_0x1aeab1,_0x2c2461){return _0x2b6123(_0x2bed3d,_0x2bed3d-_0x90c825._0x3e14a3,_0x1aeab1-0xf7,_0x2c2461-_0x90c825._0x4f24fb);}this[_0x2ef86d(0x301,0x3e1,_0x55cfb2._0x18fd54,0x415)]=_0x16ec8c['status'];}};function stringifySystem(_0x38c19e){const _0x490ae5={_0x390dcf:0x48,_0x40ba9d:0x6e,_0x551289:0x50,_0x2b3c88:0x8e},_0x438018={_0x2cf64e:0x19c},_0x589133={_0x4ed838:0x90,_0x566350:0x199};function _0x2d1734(_0x10a94d,_0x17781b,_0x3dd0f7,_0x12f9d3){return _0x38c793(_0x10a94d,_0x17781b-_0x589133._0x4ed838,_0x3dd0f7- -0x4f2,_0x12f9d3-_0x589133._0x566350);}function _0xa5e079(_0x2e4107,_0x3f4d6f,_0x12efd5,_0x529b2d){return _0x38c793(_0x12efd5,_0x3f4d6f-0x1a7,_0x3f4d6f- -0x4fa,_0x529b2d-_0x438018._0x2cf64e);}return _0x38c19e[_0xa5e079(0x37,-_0x490ae5._0x390dcf,-_0x490ae5._0x40ba9d,-0xff)](_0xab20a9=>_0xab20a9[_0xa5e079(-0x1b,-0xb8,-0x152,-0x154)])[_0x2d1734(-_0x490ae5._0x551289,-0xa6,-0xee,-_0x490ae5._0x2b3c88)]('\x0a\x0a');}function _0x35dd(){const _0x3c23b4=['B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Bw9KzwXfBMrWB2LUDenHy2HL','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','rgLYzwn0igfUC3DLCJOG','Dgv4Dej5sw5KzxG','D2vIC29JA2v0','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','C3rYAw5N','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','CMvZCg9UC2vjza','ChjVEhK','C2XPy2u','B3bLBMfPx3jLyxnVBMLUzW','CMvZCg9UC2vtB2nRzxrtDhjLyw0','B3v0Chv0x3rLEhq','Dg9VBf91C2u','AM9PBG','y2XVC2u','DxnLCI12AxnPyMXL','yxbP','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','C2LNBMfS','BxnNlq','y29UDgvUDa','y2HHDfn0CMvHBq','C2vUzfjHD1jLCxvLC3q','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','y3jLyxrLu3rYzwfTugfYC2vY','zw50CMLLCW','Dg9VBf91C2vFzgvSDge','DgHLBG','BwvKAwfFDhLWzq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','nJKXnte1uwvAtMvN','DMfSDwvZ','Aw50zxjSzwf2zwq','zgLZCgXHEq','qMfZAa','DMfSDwu','zNjVBq','DMLZAwjPBgL0Eq','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','t3bLBKfPuMvZCg9UC2vZu3rYzwfTrxjYB3i','C3rHCNrZv2L0Aa','zg9Uzq','y2HHDenVBxbSzxrPB25Zugf0Aa','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','BM93','DxnLCG','Dg9VBhm','CgfYC2u','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','Bwv0Ag9K','C3vYzMfJzxm','DNnJB2rLlZeUmta0lJi','BwvZC2fNzv9KzwX0yq','DhjPBvn0yxj0','y2HHDenVBxbSzxrL','B3bLBMfPlxjLC3bVBNnLCY13CW','C29YDa','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','CMvZCg9UC2vZugf0Aa','r0vu','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','Aw5JBhvKzxm','yxbPs2v5','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','CgfYDgLHBf9QC29U','y29UDgvUDf9IBg9JA19ZDgfYDa','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','C3bSAxq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Aw5KzxHpzG','zgvSzxrL','zw5KCg9PBNrZ','Dgv4Da','Dg9VBenHBgXpCMrLCG','ChvZAa','y29TCgXLDgu','CMvXDwvZDe11Dgf0B3jZ','zMLSDgvY','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Dg9VBfvZzvn0yxj0rw1PDhrLza','yMvHCMvY','CM9Szq','ue9tva','C3rHDhvZvgv4Da','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','zw5HyMXLza','ywnJzxb0','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','CMvHC29UAw5Nx3rVA2vUCW','y2fWywjSzv9LBMrWB2LUDhm','Dg9Rzw4','nJbwq0r2uhK','zMLUywXszxnWB25Zzq','CMvHC29UAw5NugfYDhm','y29UDgvUDf9PBMrLEa','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','C3vWCg9YDgvKx2vUzhbVAw50CW','Ec1HCgKTA2v5','CMvZCg9UC2vtB2nRzxq','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','B2f1DgGTDg9Rzw4','y29UBMvJDf9MywLSzwq','CMvWBgfJzq','mJK4otu4uvzqwwzj','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','zM9Yy2vgDwXSuMvWBgf5','Aw5WDxrFANnVBL9KzwX0yq','yxbWBhLnB2rLBerLzMf1BhrZ','Dgv4Df9KzwX0yq','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','CMvMDxnHBa','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Dg9VBf9JywXSCW','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B21PDhrLza','B3bLBG','l2nOyxqVy29TCgXLDgLVBNm','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','ywjVCNq','CMvZB2X2zxi','zxjYB3i','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','AgvHzgvYuMvZB2X2zxi','BgfZDfjLC3bVBNnLswq','AgfZ','CMvZCg9UC2u','CMvZCg9UC2vtDhjLyw0','C3rYzwfT','C3vTBwfYEuj5sw5KzxG','Aw5WDxrkC29U','Dgv4Dc9LDMvUDc1ZDhjLyw0','Dg9VBf91C2vFAwq','zMXHDe1HCa','yNvKz2v0vg9Rzw5Z','Aw5KzxG','y29TCgXLDgvwAwftDxjMywnL','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','yNvPBgrqyxj0AwfSt3v0Chv0','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Dgv4DfbHCNrZ','C2LNBMf0DxjL','ChjVDg9JB2XwzxjZAw9U','Dg9bCgLfCNjVCG','nJeWodK3mNDSDer5tW','Aw5WDxq','zNjVBuvUDhjPzxm','z2v0uMvHzgvY','zMv0y2G','o2jHC2u2ncW','Aw5WDxrFDgv4Da','C2LNBMf0DxjLx2rLBhrH','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','B3v0Chv0sw5KzxG','zw5JCNLWDgvKq29UDgvUDa','y2fJAgvK','Dg9VBf9Yzxn1Bhq','CMvXDwvZDhm','DgHPBMTPBMC','y2fWywjPBgL0AwvZ','CMvHC29UAw5N','Aw5WDxruB2TLBNm','CgfYC2vszxnWB25Zzq','sw52ywXPzcbYzxf1zxn0oIa','mZKWotG5m21oExzNsG','yxnZAxn0yw50','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','C2v0','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','C3vTBwfYEv90zxH0','C291CMnL','l3yXl21LC3nHz2vZ','CMvTB3zLrxzLBNrmAxn0zw5LCG','y3jLyxrLuMvXDwvZDa','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','CMvZCg9UC2uUzMfPBgvK','Aw5WDxrFC2nOzw1H','DxjS','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','Bw9KzwW','C29Tzq','DNnJB2rLlZeUmta2lJe','nJGZmJy0rwzhwKLU','C3rYzwfTshr0Cfn1CMzHy2u','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','BwfW','y29UDgvUDf9IBg9JA19KzwX0yq','y3jLzgvUDgLHBa','l3jLC3bVBNnLCW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','C2L6zq','yxbPlwTLEq','zxzLBNq6','t1bftG','CMvZB2X2zujHC2vvCMW','C2vZC2LVBG','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','zMLUAxnO','CgvUzgLUzW','C3vTBwfYEv9PBMrLEa','zgvSDge','z3b0ltrV','z2v0u3vYzMfJzq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','oNjLyxnVBMLUzZOW','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','yMfZzvvYBa','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','u3vYzMfJzsa','zMLUza','y29UC3vTzuv2zw50','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','ChjVDMLKzxjtDgf0zq','CMvZB2X2zq','DgvZDa','C3vTBwfYAxPLza','yxv0Ag9YAxPHDgLVBG','Aw5JBhvKzunVBNrLBNruExbL','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','v2vIu29JA2v0','CMvHC29U','CMvZCg9UC2vuzxH0ugfYDhm','C3rYzwfTvMLHuM91DgvY','D2vIu29JA2v0rMfJDg9YEq','ywDLBNq','y2HHDgnTCgW','Dg9VBenHBgXZqNLjBMrLEa','CMvHC29UAw5Nx2nVBNrLBNq','B3bLBKfPrgvSzwDHDgu','zgLZywjSzwq','AxnbCNjHEq','B3v0Chv0x3rVA2vUCW','C2vZC2LVBK1HBMfNzxi','DgHPBMTPBMDFzgvSDge','Dg9VBc1JywXSlq','yxv0AfnJAgvTzq','zgvJB2rL','BwvZC2fNzuLK','ywjVCNrLza','Bwv0ywrHDge','z2L0AhvIqxbPvxjS','ywnJzxnZvg9Rzw4','y29Kzq','Ahr0Chm6','zNvUy3rPB25Fy2fSBa','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','yMfZzty0','y29UC3vTzvDLyLnVy2TLDev2zw50','mJaYns0Xmc0Wmq','C3rYzwfTu3vYzMfJzq','DxnHz2u','y2HVAwnLCW','Ahr0Cc1ZC2u','C3vTBwfYEq','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','B3v0Chv0','y2HHDgnTCgWT','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','zgvZy3jPChrPB24','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','B3v0Chv0vg9Rzw5Z','yw50AhjVCgLJx3rOAw5RAw5N','C3vYzMfJzq','C3rYAw5NAwz5','ChjVDMLKzxjbzgfWDgvY','yM9KEq','A2LUza','Aw1Hz2u','CMvZCg9UC2uUy29TCgXLDgvK','ChjLCgfYzunOyxrszxf1zxn0','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','l21VzgvSCW','yxjNDw1LBNrZ','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','otC0m2zqshrIrG','nZrPA0jotxa','y2fSBeLKvg9pDxrWDxrjBMrLEa','z2v0qw50AhjVCgLJrgvSzwDHDgu','Cgf0Aa','BMfTzq','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','zwrPDg9YugX1z2LUvMvYC2LVBG','ywrK','C3rYzwfTvMLHu3vYzMfJzq','D3m6','CMvZCg9UC2uUy3jLyxrL','CMvKywn0zwrFDgHPBMTPBMC','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','zw5Kx3r1CM4','Bw9JAW','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','Ahr0Cc1QC29U','C3rVCfjLyxnVBG','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','C2vZC2LVBKLK','DgvSzw1LDhj5','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','C3rVCf9YzwfZB24','CMvHC29UAw5NsxrLBxm','y3jLyxrLsgvHzgvYCW','B2jQzwn0','Aw1Hz2vFDxjS','ntzKsxr3whK','zMv0y2HjBxbS','zNvUy3rPB24','AxrLBq','nvvgvxbdDG','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Bwf4vg9Rzw5Z','zgf0yq','zw5JCNLWDgvKx2nVBNrLBNq','y2fSBf9Pza','C29JA2v0','AgvHzgvYCW','Dg9VBenHBgXZ','AxrLBv9Pza','Aw5PDgLHBev2zw50','BwvZC2fNzv9ZDgfYDa','zwzMB3j0','zgf0ytO','y29WAwXVDc1JAgf0lZaUmZeUmW','y29TCgXLDgLVBL90B2TLBNm','CM91DgvY','C3vWCg9YDgvKrw5KCg9PBNrZ','mZi4nfP3B25hEa','BNvTyMvY','yxbWBgLJyxrPB24VANnVBG','yw50AhjVCgLJrgvSzwDHDgu','B3v0Chv0x2LUzgv4','z2v0','z2v0t3bLBKfPrgvSzwDHDgu','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','BwfWqxbPrxjYB3i','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','ANnVBG','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','ntq2m1PywMzTAG','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','B3v0Chv0sw5KzxHuB0nHBgXjza','AxneB25L','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','CMvHC29UAw5Nx3rLEhq','y29UBMvJDgLUzW','Aw5WDxrFDg9Rzw5Z','Bw9Kzq','Dg9tDhjPBMC','qMvHCMvYia','Aw52ywXPzgf0zq','w0rptKvD','y29TCgXLDgvwAwfsB3v0zxi','B3bLBMfPlxjLC3bVBNnLCW','DxnLC1jLC3bVBNnLC0fWAq','BgvUz3rO','y29UC3vTzvnZzuv2zw50','y29UDgvUDf9KzwX0yq','y2f0y2G','BwvZC2fNzxm','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','DhjPBq','ChjLDMLVDxnszxnWB25ZzuLK','C3rHDhvZ','C3LZDgvT','yMXVy2TZ','D3nZoG','ywrKrxzLBNrmAxn0zw5LCG','y29TCgXLDgvK','y2fUy2vS','B3jPz2LUlxrYywnRzxi','C2vUza','CMvXDwvZDa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','C2vSzwn0u3vYzMfJzq','BwvZC2fNzuLUzgv4','C3bSAwnL','BwvZC2fNzq','CMvZB2X2zunYzwrLBNrPywW','CMvHzhLtDgf0zq','CMvZCc0','mJbhvMnMuKq','yw50AhjVCgLJlw1LC3nHz2vZ','yw50AhjVCgLJlxzLCNnPB24','DhjHBNnWB3j0','yxn5BMnjDgvYyxrVCG','y29TCgXLDgvtDxjMywnL','yxnZAxn0yw50lq','yxv0BW','C2HPzNq','DhLWzq','y29UDgvUDc10ExbL','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','zwrPDg9YvMvYC2LVBG'];_0x35dd=function(){return _0x3c23b4;};return _0x35dd();}function createToolDefinitions(_0x1ce47c){const _0x497502={_0x80ae00:0xb8,_0x293b74:0xb1,_0x358df9:0xee,_0x42fec3:0xab,_0x5a445f:0x1a0},_0x89a742={_0x868b30:0x1d,_0x4e903c:0xe,_0x4827d7:0x145,_0x2df046:0x1e3},_0x4bfb35={_0x3e74a0:0x60},_0x590930={_0x2ddf3b:0x8e,_0x2a96be:0x294,_0x21a7ac:0x3f},_0x2eda89={_0x24493c:0x4ba};function _0x19d2f9(_0x4b7284,_0x1bff1c,_0x1a0140,_0x4bb1a1){return _0x2b6123(_0x1a0140,_0x1bff1c-0xc,_0x4bb1a1- -_0x2eda89._0x24493c,_0x4bb1a1-0x1c7);}function _0x4f7e0d(_0x52e3b0,_0x31297e,_0x5c4bc7,_0x4675df){return _0x2b6123(_0x31297e,_0x31297e-_0x590930._0x2ddf3b,_0x52e3b0- -_0x590930._0x2a96be,_0x4675df-_0x590930._0x21a7ac);}if(_0x1ce47c[_0x4f7e0d(0x7,0x2f,_0x497502._0x80ae00,_0x497502._0x293b74)]===0x0)return void 0x0;return _0x1ce47c[_0x4f7e0d(_0x497502._0x358df9,_0x497502._0x42fec3,_0x497502._0x5a445f,0x79)](_0x223b19=>{const _0xd0df35={_0x148254:0x274};function _0x101eca(_0x360c3e,_0x1257d6,_0x40a732,_0x8db4a3){return _0x4f7e0d(_0x40a732-_0x4bfb35._0x3e74a0,_0x360c3e,_0x40a732-0xba,_0x8db4a3-0x28);}function _0x511d95(_0x370b42,_0x2b8f56,_0x57b7e9,_0x3c020b){return _0x19d2f9(_0x370b42-0x166,_0x2b8f56-0x20,_0x370b42,_0x57b7e9-_0xd0df35._0x148254);}return{'type':'function','function':{'name':_0x223b19[_0x101eca(0x2c,0xc9,0x19,-0x57)],'description':_0x223b19[_0x511d95(-_0x89a742._0x868b30,0xa5,-_0x89a742._0x4e903c,-0x52)],'parameters':_0x223b19[_0x101eca(0x143,0x1ad,_0x89a742._0x4827d7,_0x89a742._0x2df046)]}};});}function isImageToolResultBlock(_0x4fde29){const _0x564163={_0x2870bd:0x28,_0x354f3d:0x10f,_0xac4aed:0x8,_0x28ae62:0x96,_0x3f2862:0x99,_0x1438c5:0x8b,_0x327f29:0x10d,_0x594c40:0x86,_0x2a1132:0x1f2,_0x7ffbe0:0xd6,_0x56e709:0x12a,_0x13a809:0xba,_0x5d4c21:0x90,_0x3e357c:0xf,_0x5258cb:0x148,_0x125650:0x13d,_0x25f0a1:0x257,_0x1dbff0:0x1a3},_0x25898f={_0x1e55ba:0x1ba,_0x3673ff:0x2da,_0x754718:0x53},_0x388d95={_0x3b6dcd:0x0,_0x14c408:0x91};function _0x3ff62b(_0x1a1563,_0x37cae6,_0x820b31,_0x38ffd4){return _0x38c793(_0x37cae6,_0x37cae6-_0x388d95._0x3b6dcd,_0x820b31- -0x5b0,_0x38ffd4-_0x388d95._0x14c408);}if(typeof _0x4fde29!==_0x3bcf5b(_0x564163._0x2870bd,-0x40,-_0x564163._0x354f3d,-0x74)||_0x4fde29===null||Array['isArray'](_0x4fde29))return![];function _0x3bcf5b(_0x54c706,_0x703b39,_0x134850,_0xeb428){return _0x2b6123(_0x54c706,_0x703b39-_0x25898f._0x1e55ba,_0xeb428- -_0x25898f._0x3673ff,_0xeb428-_0x25898f._0x754718);}const _0x3d898f=_0x4fde29;return _0x3d898f[_0x3bcf5b(-0x6e,-_0x564163._0xac4aed,-0x4f,-0x1b)]===_0x3bcf5b(-_0x564163._0x28ae62,-0x14e,-0x25,-_0x564163._0x3f2862)&&_0x3d898f[_0x3ff62b(-_0x564163._0x1438c5,-0xf4,-_0x564163._0x327f29,-_0x564163._0x594c40)]?.[_0x3ff62b(-0x12f,-_0x564163._0x2a1132,-0x1c1,-0x14b)]===_0x3bcf5b(-_0x564163._0x7ffbe0,-_0x564163._0x56e709,-0xcc,-0xae)&&typeof _0x3d898f['source'][_0x3bcf5b(-_0x564163._0x13a809,-0x87,-0x57,0xa)]===_0x3bcf5b(-0xa0,0x99,-_0x564163._0x5d4c21,-_0x564163._0x3e357c)&&typeof _0x3d898f[_0x3ff62b(-0xdf,-_0x564163._0x5258cb,-0x10d,-0x10f)]['data']===_0x3ff62b(-_0x564163._0x125650,-_0x564163._0x25f0a1,-0x1b5,-_0x564163._0x1dbff0);}function getToolResultText(_0x370fb7){const _0x4b7efb={_0x476eb0:0x3be,_0x1b3bbe:0x146,_0x2f2ec0:0xa5,_0xe6cc9c:0x11d,_0xf789a5:0x31,_0x4a8e28:0x33b,_0x432800:0x375,_0x4e7311:0x367,_0x58df3a:0x3e6},_0x263a10={_0xed28b0:0xfc,_0x2f8904:0x141,_0x308b:0x11f},_0x4f30fc={_0x2e23b7:0x24c,_0x3d74d4:0x308,_0x14de29:0x31b,_0x4284ec:0x2d5,_0x440929:0x2d9,_0x2bc1c6:0x2cf,_0x5c3c13:0x27f,_0x24da0f:0x328},_0x52c7b6={_0x38a907:0x27,_0x1df4e3:0x53,_0x463289:0x1e0},_0x158353={_0x21484c:0x95,_0x3ce4f0:0x138};function _0x3bca5c(_0x2cdbd1,_0x55366b,_0x33c461,_0x4ed98d){return _0x2b6123(_0x55366b,_0x55366b-_0x158353._0x21484c,_0x33c461- -0x1b7,_0x4ed98d-_0x158353._0x3ce4f0);}if(typeof _0x370fb7===_0x591d73(0x370,0x2ba,0x29f,0x36a))return _0x370fb7;const _0xaf5711=_0x370fb7[_0x591d73(0x2df,0x306,0x314,_0x4b7efb._0x476eb0)](_0x387dfe=>{const _0x109502={_0x155bf2:0x16d,_0x2cc917:0x139};function _0x3a26be(_0x576b25,_0x5bc281,_0x241f02,_0x1a78b6){return _0x591d73(_0x5bc281,_0x1a78b6-_0x52c7b6._0x38a907,_0x241f02-_0x52c7b6._0x1df4e3,_0x1a78b6-_0x52c7b6._0x463289);}function _0x42c909(_0x23d822,_0x35c7db,_0x2f7ac3,_0x3bce41){return _0x3bca5c(_0x23d822-_0x109502._0x155bf2,_0x3bce41,_0x23d822-0x28,_0x3bce41-_0x109502._0x2cc917);}return typeof _0x387dfe===_0x3a26be(_0x4f30fc._0x2e23b7,0x1eb,_0x4f30fc._0x3d74d4,0x27c)&&_0x387dfe!==null&&_0x387dfe[_0x3a26be(0x39a,_0x4f30fc._0x14de29,0x339,_0x4f30fc._0x4284ec)]===_0x3a26be(_0x4f30fc._0x440929,_0x4f30fc._0x2bc1c6,_0x4f30fc._0x5c3c13,_0x4f30fc._0x24da0f);})['map'](_0x2c8d54=>_0x2c8d54[_0x591d73(0x3af,0x301,0x371,0x33e)])[_0x3bca5c(_0x4b7efb._0x1b3bbe,_0x4b7efb._0x2f2ec0,_0x4b7efb._0xe6cc9c,0xf0)]('\x0a\x0a')['trim']();function _0x591d73(_0x3d98be,_0x2469c4,_0x19f9aa,_0x23ea77){return _0x38c793(_0x3d98be,_0x2469c4-_0x263a10._0xed28b0,_0x2469c4- -_0x263a10._0x2f8904,_0x23ea77-_0x263a10._0x308b);}return _0xaf5711[_0x3bca5c(0xfe,_0x4b7efb._0xf789a5,0xe4,0xfb)]>0x0?_0xaf5711:_0x591d73(_0x4b7efb._0x4a8e28,_0x4b7efb._0x432800,_0x4b7efb._0x4e7311,_0x4b7efb._0x58df3a);}function getToolResultImages(_0x17040e){const _0x26c076={_0x2cd91f:0x5a8,_0x37800b:0x4b0,_0x288ec3:0x4ea,_0xead0f7:0xf1,_0x4298f0:0x23a},_0x831c67={_0x2d99aa:0x7d,_0x29fd41:0x40},_0x4bade5={_0x1ba476:0x5dd,_0x5a2f26:0x29};function _0x54f616(_0x155a74,_0x1e2632,_0x32b797,_0x2a860b){return _0x38c793(_0x155a74,_0x1e2632-0x21,_0x1e2632- -_0x4bade5._0x1ba476,_0x2a860b-_0x4bade5._0x5a2f26);}function _0x5dff45(_0x2a7642,_0x170486,_0x5850f8,_0x4a7575){return _0x38c793(_0x5850f8,_0x170486-_0x831c67._0x2d99aa,_0x2a7642-_0x831c67._0x29fd41,_0x4a7575-0x4);}return Array[_0x5dff45(0x522,_0x26c076._0x2cd91f,_0x26c076._0x37800b,_0x26c076._0x288ec3)](_0x17040e)?_0x17040e[_0x54f616(-_0x26c076._0xead0f7,-0x196,-0x169,-_0x26c076._0x4298f0)](isImageToolResultBlock):[];}function parseToolInput2(_0x16cd84){const _0x30fd35={_0x151336:0x369,_0x2774ae:0x434,_0x82e724:0x43a},_0x4934fb={_0x5eb286:0x127};function _0x3c4ec(_0x45e4d0,_0x4bf228,_0x3c471e,_0x212d09){return _0x38c793(_0x4bf228,_0x4bf228-_0x4934fb._0x5eb286,_0x45e4d0-0x61,_0x212d09-0x15a);}if(_0x16cd84[_0x3c4ec(0x42c,_0x30fd35._0x151336,_0x30fd35._0x2774ae,_0x30fd35._0x82e724)]===0x0)return{};try{return JSON['parse'](_0x16cd84);}catch{return _0x16cd84;}}function isResponsesReasoningItem(_0x276ca6){const _0x3fb770={_0x37a27e:0x4e3,_0x4432b4:0x472},_0x89efab={_0x466425:0x9f,_0x20d912:0x27d,_0x386f78:0x1ae};function _0xfe7334(_0x200986,_0x239d46,_0x7ce83d,_0x454eb3){return _0x2b6123(_0x239d46,_0x239d46-_0x89efab._0x466425,_0x200986-_0x89efab._0x20d912,_0x454eb3-_0x89efab._0x386f78);}return typeof _0x276ca6===_0xfe7334(_0x3fb770._0x37a27e,0x5ae,_0x3fb770._0x4432b4,0x477)&&_0x276ca6!==null&&'type'in _0x276ca6&&_0x276ca6['type']==='reasoning';}function isResponsesMessageItem(_0x15c239){const _0x453b19={_0x1748d2:0x13f,_0x3d22bd:0x1de,_0x55fc9a:0x184,_0x308899:0x104,_0x4398b7:0xf8,_0x37c7e2:0x177,_0x2191ab:0x12e},_0x4f0329={_0x2b91d8:0x1a4},_0x3e5351={_0x558fb9:0x26b,_0x196b52:0x1bd};function _0x5e93b5(_0x44a352,_0x13c68f,_0x39de7a,_0x3cd0f6){return _0x38c793(_0x44a352,_0x13c68f-0x195,_0x13c68f- -_0x3e5351._0x558fb9,_0x3cd0f6-_0x3e5351._0x196b52);}function _0x54a383(_0x1b79d0,_0x4bf2e0,_0x2a9a1e,_0x2bd6dc){return _0x38c793(_0x1b79d0,_0x4bf2e0-0xca,_0x2bd6dc- -0x520,_0x2bd6dc-_0x4f0329._0x2b91d8);}return typeof _0x15c239===_0x5e93b5(0x1da,0x12b,_0x453b19._0x1748d2,0x1ae)&&_0x15c239!==null&&'type'in _0x15c239&&_0x15c239[_0x5e93b5(_0x453b19._0x3d22bd,_0x453b19._0x55fc9a,_0x453b19._0x308899,_0x453b19._0x4398b7)]===_0x5e93b5(0x148,_0x453b19._0x37c7e2,_0x453b19._0x2191ab,0x13d);}function isResponsesFunctionCallItem(_0x1d8ce0){const _0x161a4a={_0x59fbc4:0x114,_0x186450:0xe1,_0x137975:0xf4,_0xa2512a:0x1d2},_0x4058b3={_0x2c8652:0xcb,_0x5cf8e4:0x2b5,_0x4f9520:0xab},_0x571a58={_0x3646c1:0x68,_0x419259:0x45,_0xb0eb99:0x1ec};function _0x56cfe9(_0x3cfd8f,_0x1c210c,_0xf15d79,_0x414c6e){return _0x2b6123(_0x414c6e,_0x1c210c-_0x571a58._0x3646c1,_0x3cfd8f- -_0x571a58._0x419259,_0x414c6e-_0x571a58._0xb0eb99);}function _0x16b09c(_0x31783d,_0x30981d,_0xb7f96c,_0x573910){return _0x38c793(_0x31783d,_0x30981d-_0x4058b3._0x2c8652,_0xb7f96c- -_0x4058b3._0x5cf8e4,_0x573910-_0x4058b3._0x4f9520);}return typeof _0x1d8ce0===_0x16b09c(_0x161a4a._0x59fbc4,0x11a,_0x161a4a._0x186450,0x1d)&&_0x1d8ce0!==null&&'type'in _0x1d8ce0&&_0x1d8ce0[_0x16b09c(_0x161a4a._0x137975,_0x161a4a._0xa2512a,0x13a,0x1b3)]==='function_call';}function createContentBlocks(_0x12c416,_0x2c54a4,_0x244a8f){const _0x31bde0={_0x4eed4a:0x5cf,_0x3241b0:0x47a,_0x415d34:0x61c,_0x7bf0d1:0x61f,_0x3dc540:0x500,_0x42b3b3:0x560,_0x39bf74:0x5eb,_0x34a3ae:0x4d1,_0x2d9db7:0x541,_0x15a339:0x55f,_0x4c914d:0x585,_0x36b899:0x5d6,_0x4e568e:0x514,_0x468365:0x4c6,_0x46eeb7:0x532,_0x173a62:0x46d,_0x2f7023:0x604,_0xc3fd03:0x542,_0x4cd3b4:0x495,_0x2bdbcc:0x436,_0x1f061b:0x566,_0x743139:0x566,_0x1d6b30:0x5a4,_0x4f2680:0x597,_0x4f91c3:0x556,_0x251012:0x654,_0x2a6629:0x4fa,_0x29f924:0x52e,_0x14b612:0x591,_0x408851:0x58b,_0x5514e0:0x504},_0x868451={_0x33e090:0x290,_0x27f39b:0x173},_0x32f6a8={_0x4be0ab:0x183,_0x4239ec:0xf6},_0x686479=[];_0x244a8f&&_0x244a8f[_0x515410(_0x31bde0._0x4eed4a,0x52b,_0x31bde0._0x3241b0,0x557)]>0x0&&_0x686479[_0x3c3edf(0x5d8,0x632,_0x31bde0._0x415d34,_0x31bde0._0x7bf0d1)]({'type':_0x515410(_0x31bde0._0x3dc540,_0x31bde0._0x42b3b3,0x5f8,_0x31bde0._0x39bf74),'summary':[],'text':_0x244a8f});function _0x3c3edf(_0x5d6911,_0x570f55,_0xa4c3b1,_0x5c3b50){return _0x38c793(_0xa4c3b1,_0x570f55-_0x32f6a8._0x4be0ab,_0x5d6911-0x194,_0x5c3b50-_0x32f6a8._0x4239ec);}_0x12c416[_0x515410(_0x31bde0._0x34a3ae,0x52b,_0x31bde0._0x2d9db7,_0x31bde0._0x15a339)]>0x0&&_0x686479[_0x515410(0x528,0x5a4,_0x31bde0._0x4c914d,0x521)]({'type':_0x3c3edf(_0x31bde0._0x36b899,_0x31bde0._0x4e568e,0x52f,0x53a),'text':_0x12c416});for(const _0x336832 of _0x2c54a4){if(_0x336832['id'][_0x515410(_0x31bde0._0x468365,_0x31bde0._0x46eeb7,0x5fa,_0x31bde0._0x173a62)]()[_0x3c3edf(_0x31bde0._0x15a339,0x4bb,_0x31bde0._0x2f7023,_0x31bde0._0xc3fd03)]===0x0||_0x336832[_0x3c3edf(0x52e,_0x31bde0._0x4cd3b4,0x487,0x4f4)][_0x515410(0x4dd,0x4dd,_0x31bde0._0x2bdbcc,0x53f)][_0x3c3edf(_0x31bde0._0x1f061b,_0x31bde0._0x743139,0x621,0x59c)]()['length']===0x0)continue;_0x686479[_0x515410(0x5bd,_0x31bde0._0x1d6b30,0x627,0x5fb)]({'type':_0x3c3edf(_0x31bde0._0x4f2680,_0x31bde0._0x4f91c3,0x52f,_0x31bde0._0x251012),'id':_0x336832['id'],'name':_0x336832[_0x515410(0x4bf,_0x31bde0._0x2a6629,0x4db,0x44c)]['name'],'input':parseToolInput2(_0x336832[_0x3c3edf(_0x31bde0._0x29f924,0x5e1,0x594,0x4c0)][_0x3c3edf(0x50a,_0x31bde0._0x14b612,_0x31bde0._0x408851,_0x31bde0._0x5514e0)])});}function _0x515410(_0x366bdb,_0x3fa656,_0x32a183,_0x4e790a){return _0x2b6123(_0x4e790a,_0x3fa656-0xb,_0x3fa656-_0x868451._0x33e090,_0x4e790a-_0x868451._0x27f39b);}return _0x686479;}function createUsage(_0x3b2c55){const _0xb3b542={_0x4db31d:0x2c8,_0x5be6ee:0x364,_0x43cea9:0x249,_0x1afdaa:0x367,_0x42cfaa:0x363,_0xf56a7f:0x2e3,_0x58100b:0x390},_0x57d603={_0x46c44a:0x1a0,_0x42146e:0x1d4},_0x18517b={_0x4791db:0x114};function _0x3dcd72(_0x56f547,_0x7e288f,_0x17b8d4,_0x398be8){return _0x2b6123(_0x398be8,_0x7e288f-_0x18517b._0x4791db,_0x56f547-0x41,_0x398be8-0xc7);}function _0x492e02(_0x308246,_0x2680da,_0x3ad168,_0x13408f){return _0x38c793(_0x13408f,_0x2680da-0x72,_0x2680da-_0x57d603._0x46c44a,_0x13408f-_0x57d603._0x42146e);}return{'inputTokens':_0x3b2c55?.['prompt_tokens']??0x0,'outputTokens':_0x3b2c55?.[_0x3dcd72(0x2bd,0x21f,0x2fd,0x332)]??0x0,..._0x3b2c55?.[_0x3dcd72(0x29d,_0xb3b542._0x4db31d,_0xb3b542._0x5be6ee,_0xb3b542._0x43cea9)]?.[_0x3dcd72(0x363,0x3ce,0x37b,0x317)]!==void 0x0?{'reasoningTokens':_0x3b2c55[_0x3dcd72(0x29d,_0xb3b542._0x1afdaa,0x339,0x27f)][_0x3dcd72(_0xb3b542._0x42cfaa,0x317,_0xb3b542._0xf56a7f,_0xb3b542._0x58100b)]}:{}};}function resolveReasoningVisibility2(_0x57b39d){const _0x36ad29={_0x16176f:0x77,_0x5a6a0e:0x32,_0x244be9:0x6a,_0x4833f2:0x3d,_0x138351:0x125,_0x2742d4:0xe6,_0x5d981e:0x195},_0x11054c={_0x4966e1:0x164,_0x1b1739:0x503},_0x18dcbc={_0x3312ad:0x13d,_0x554168:0x4b3};function _0x169a14(_0x457406,_0x133d05,_0x53a0a2,_0x141d08){return _0x38c793(_0x141d08,_0x133d05-_0x18dcbc._0x3312ad,_0x133d05- -_0x18dcbc._0x554168,_0x141d08-0xc9);}function _0x5cca0d(_0x225926,_0x593105,_0x33ba2f,_0x31893c){return _0x38c793(_0x225926,_0x593105-_0x11054c._0x4966e1,_0x33ba2f- -_0x11054c._0x1b1739,_0x31893c-0x177);}return _0x57b39d[_0x5cca0d(-_0x36ad29._0x16176f,_0x36ad29._0x5a6a0e,-_0x36ad29._0x244be9,-_0x36ad29._0x4833f2)]?.[_0x5cca0d(-0x133,-_0x36ad29._0x138351,-_0x36ad29._0x2742d4,-_0x36ad29._0x5d981e)]??'user-visible';}function isUserVisibleReasoning(_0x35d60a){const _0xc4f1ed={_0x393ead:0x544,_0x5ac841:0x568,_0x492dd4:0x4e3},_0x461ac2={_0x59dfb3:0x2b};function _0x392233(_0x3e102b,_0x5955a8,_0xd211f7,_0x36376b){return _0x2b6123(_0x5955a8,_0x5955a8-0xb5,_0xd211f7-0x1ff,_0x36376b-_0x461ac2._0x59dfb3);}return resolveOpenAiReasoningConfig(_0x35d60a[_0x392233(0x4e1,_0xc4f1ed._0x393ead,_0xc4f1ed._0x5ac841,_0xc4f1ed._0x492dd4)])!==void 0x0&&resolveReasoningVisibility2(_0x35d60a)==='user-visible';}function createChatRequestBody(_0x52989b,_0x195646){const _0x239f57={_0xa1066e:0x267,_0x24c608:0x1d1,_0x126f87:0xfe,_0x230f97:0x25e,_0x2b183c:0x240,_0x2cac0c:0x1fc,_0x5aa912:0x13a,_0x23a067:0x193,_0x1a2522:0x21f,_0x341011:0x117,_0xf82b85:0x10f,_0x2f9b50:0x11b,_0x2e23fd:0xba,_0x360795:0x16d,_0x560ad0:0x14b,_0x235407:0x28,_0x2a9fa4:0x2df,_0x53b581:0x234,_0x230999:0x240,_0x3f529e:0x2ea,_0x2be2ad:0x2ca,_0x1bcb26:0x291,_0xe82030:0x69,_0x13040b:0x133,_0x3cafb8:0xf3,_0x40fd96:0x78,_0x579268:0xee,_0x4f0aad:0xbc,_0x59f321:0x239,_0x4409d5:0x207,_0xe2ee5b:0x1cd,_0x538bc5:0x14d,_0x3f2ad9:0x1c7,_0x222e32:0x1be,_0x14ba58:0x2ea,_0x38752d:0x23e,_0x30dfd6:0x234,_0xd13189:0x303,_0x44211d:0x279,_0xec8f61:0x336,_0x539280:0x1e2,_0x106d40:0x15f,_0x1f1313:0x1e1,_0x3ce9b1:0xf1,_0x47f97b:0x155,_0x276665:0x23e,_0x4d04b1:0x1a5,_0x21edb2:0x1a7,_0x33f5ce:0x222,_0x521a29:0x2a2,_0x5cbe06:0x97,_0x25f2b9:0x112},_0x3cb694={_0x2b2814:0x3ce,_0x1dce66:0x90},_0x212e99={_0x335c1b:0x3a1,_0x4169af:0x52,_0x10b672:0x1,_0x1d580e:0x1b,_0x4f47e0:0x473,_0x4bdaad:0x3d8,_0x32a3bd:0x3b7,_0x29d379:0xa3,_0x5758c0:0x11f,_0x47bd74:0x1d,_0x4bee3f:0x42a,_0x468b05:0x3d6,_0x80225c:0x3b7,_0x511eb0:0x48,_0x573b9e:0x12b,_0x3824b4:0x18,_0x14faf1:0x34e,_0x21184b:0x3b7,_0x3691fc:0x3c,_0x57630f:0x77,_0x428edb:0x38,_0xbf8235:0x407,_0x5d1ce8:0x41d,_0x1fb716:0xea,_0x2af52b:0x120,_0x60e925:0xb6},_0x9f9f7b={_0x519fb5:0xd4,_0x2cc2de:0x5b},_0x1dca2a=[];function _0x301824(_0x322c37,_0x2cbc17,_0x12f304,_0x17892e){return _0x2b6123(_0x2cbc17,_0x2cbc17-0x22,_0x12f304- -_0x9f9f7b._0x519fb5,_0x17892e-_0x9f9f7b._0x2cc2de);}const _0x4c2a32=stringifySystem(_0x52989b[_0x301824(0x29a,_0x239f57._0xa1066e,_0x239f57._0x24c608,0x172)]);_0x4c2a32[_0x301824(_0x239f57._0x126f87,0x1bd,0x1c7,_0x239f57._0x230f97)]>0x0&&_0x1dca2a[_0x301824(0x193,0x17b,_0x239f57._0x2b183c,0x246)]({'role':_0x301824(_0x239f57._0x2cac0c,_0x239f57._0x5aa912,_0x239f57._0x24c608,_0x239f57._0x23a067),'content':_0x4c2a32});for(const _0x965ea7 of _0x52989b['messages']){const _0x3a2e0f=[],_0x1be829=[],_0x3bfae9=()=>{const _0x3f50f6={_0x15c03a:0x159,_0x155f82:0x5},_0x119094={_0x5cfb6c:0x4ea};function _0x4a7cf5(_0x1e658a,_0x45b1ee,_0x27275c,_0x23a49b){return _0x5897ac(_0x45b1ee,_0x45b1ee-0xf8,_0x23a49b-_0x119094._0x5cfb6c,_0x23a49b-0x9b);}function _0x558b99(_0x27f5db,_0x3fb917,_0xf06fc5,_0x3332e6){return _0x301824(_0x27f5db-_0x3f50f6._0x15c03a,_0xf06fc5,_0x27f5db- -0x15d,_0x3332e6-_0x3f50f6._0x155f82);}if(_0x965ea7[_0x4a7cf5(_0x212e99._0x335c1b,0x407,0x482,0x437)]===_0x558b99(0x13d,0x163,0x1d2,0xdc)){if(_0x3a2e0f[_0x558b99(0x6a,_0x212e99._0x4169af,-_0x212e99._0x10b672,_0x212e99._0x1d580e)]===0x0&&_0x1be829['length']===0x0)return;_0x1dca2a[_0x558b99(0xe3,0x6b,0x38,0x1a2)]({'role':'assistant','content':_0x3a2e0f[_0x4a7cf5(_0x212e99._0x4f47e0,_0x212e99._0x4bdaad,0x3fe,_0x212e99._0x32a3bd)]>0x0?_0x3a2e0f[_0x558b99(_0x212e99._0x29d379,_0x212e99._0x5758c0,_0x212e99._0x47bd74,0x9f)]('\x0a\x0a'):null,..._0x1be829[_0x4a7cf5(_0x212e99._0x4bee3f,_0x212e99._0x468b05,0x36d,_0x212e99._0x80225c)]>0x0?{'tool_calls':_0x1be829[_0x558b99(0x80,-_0x212e99._0x511eb0,_0x212e99._0x573b9e,-_0x212e99._0x3824b4)](0x0)}:{}}),_0x3a2e0f[_0x4a7cf5(0x406,_0x212e99._0x14faf1,0x306,_0x212e99._0x21184b)]=0x0;return;}if(_0x3a2e0f[_0x558b99(0x6a,_0x212e99._0x3691fc,_0x212e99._0x57630f,_0x212e99._0x428edb)]===0x0)return;_0x1dca2a[_0x4a7cf5(_0x212e99._0xbf8235,_0x212e99._0x5d1ce8,0x3f9,0x430)]({'role':_0x965ea7[_0x558b99(_0x212e99._0x1fb716,_0x212e99._0x2af52b,0x68,_0x212e99._0x60e925)],'content':_0x3a2e0f['join']('\x0a\x0a')}),_0x3a2e0f[_0x4a7cf5(0x392,0x34e,0x411,_0x212e99._0x80225c)]=0x0;};for(const _0xc2eea5 of normalizeContent(_0x965ea7[_0x301824(0x1d4,_0x239f57._0x1a2522,0x207,0x1c5)])){if(_0xc2eea5[_0x5897ac(-_0x239f57._0x341011,-0x1d3,-_0x239f57._0xf82b85,-_0x239f57._0x2f9b50)]==='text'){_0x3a2e0f[_0x5897ac(-0x9c,-0x57,-_0x239f57._0x2e23fd,-_0x239f57._0x360795)](_0xc2eea5[_0x5897ac(-0xc3,-_0x239f57._0x560ad0,-0xbc,-_0x239f57._0x235407)]);continue;}if(_0xc2eea5[_0x301824(0x298,0x2a4,0x1eb,0x19e)]==='tool_use'){_0x1be829[_0x301824(_0x239f57._0x2a9fa4,_0x239f57._0x53b581,_0x239f57._0x230999,0x18d)]({'id':_0xc2eea5['id'],'type':'function','function':{'name':_0xc2eea5['name'],'arguments':JSON['stringify'](_0xc2eea5[_0x301824(_0x239f57._0x3f529e,0x30e,0x286,0x1f5)]??{})}});continue;}if(_0xc2eea5['type']!==_0x301824(_0x239f57._0x2be2ad,0x2df,_0x239f57._0x1bcb26,0x20e))continue;_0x3bfae9(),_0x1dca2a['push']({'role':'tool','content':getToolResultText(_0xc2eea5[_0x5897ac(-_0x239f57._0xe82030,-_0x239f57._0x13040b,-_0x239f57._0x3cafb8,-0x15d)]),'tool_call_id':_0xc2eea5[_0x5897ac(-_0x239f57._0x40fd96,-_0x239f57._0x579268,-0x81,-_0x239f57._0x4f0aad)]});const _0x67688a=getToolResultImages(_0xc2eea5[_0x301824(0x163,_0x239f57._0x59f321,_0x239f57._0x4409d5,_0x239f57._0x560ad0)]);_0x67688a[_0x301824(_0x239f57._0xe2ee5b,_0x239f57._0x538bc5,_0x239f57._0x3f2ad9,_0x239f57._0x222e32)]>0x0&&_0x1dca2a['push']({'role':_0x301824(0x291,_0x239f57._0x14ba58,0x221,0x2de),'content':[{'type':_0x301824(0x25d,0x190,_0x239f57._0x38752d,_0x239f57._0x30dfd6),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0xc2eea5[_0x301824(_0x239f57._0xd13189,0x21a,_0x239f57._0x44211d,_0x239f57._0xec8f61)]+'.'},..._0x67688a['map'](_0x420993=>({'type':_0x5897ac(-0x1f2,-0x137,-0x167,-0x1e9),'image_url':{'url':'data:'+_0x420993[_0x301824(0x2c7,0x216,0x29f,0x347)][_0x5897ac(-0x9d,-0x26,-0xea,-0x157)]+_0x5897ac(0x18,0x6,-0x70,-0xe5)+_0x420993[_0x301824(0x35d,0x2a8,0x29f,0x232)][_0x301824(0x17d,0x226,0x19c,0x149)]}}))]});}_0x3bfae9();}const _0x185be0=resolveOpenAiReasoningConfig(_0x52989b['reasoning']);function _0x5897ac(_0x2a729c,_0x270b6a,_0x199189,_0x119407){return _0x2b6123(_0x2a729c,_0x270b6a-0xe,_0x199189- -_0x3cb694._0x2b2814,_0x119407-_0x3cb694._0x1dce66);}return{'model':_0x52989b['model'],'messages':_0x1dca2a,'stream':_0x195646,..._0x185be0?{'max_completion_tokens':_0x52989b['maxTokens']}:{'max_tokens':_0x52989b[_0x5897ac(-_0x239f57._0x539280,-0x1ce,-_0x239f57._0x106d40,-0x1d2)]},..._0x185be0?.[_0x5897ac(-_0x239f57._0x1f1313,-_0x239f57._0x3ce9b1,-_0x239f57._0x47f97b,-0x106)]?{'reasoning_effort':_0x185be0[_0x301824(0x24b,_0x239f57._0x276665,_0x239f57._0x4d04b1,_0x239f57._0x21edb2)]}:{},...createToolDefinitions(_0x52989b[_0x301824(0x249,0x1dc,_0x239f57._0x33f5ce,_0x239f57._0x521a29)])?{'tools':createToolDefinitions(_0x52989b[_0x5897ac(-0x3f,-_0x239f57._0x5cbe06,-0xd8,-_0x239f57._0x25f2b9)])}:{}};}function createResponsesRequestBody(_0x5c53fe,_0x4b7fe3){return{...toOpenAiResponsesRequest(_0x5c53fe),..._0x4b7fe3?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3e2204,_0x21dfb4={}){const _0x4ad6d0={_0x3b0319:0x1e2,_0x2ab3d9:0x31,_0x3c015a:0xdb,_0x3431f7:0x1a7,_0x4e2a35:0x137,_0xbe27b5:0x148},_0x4f0d28={_0x1b58ef:0x565},_0x37658e={_0x4b929b:0x5f,_0xeec54:0x1b3};function _0x208b0e(_0x51946c,_0x36fc66,_0x49a016,_0x4ac939){return _0x2b6123(_0x4ac939,_0x36fc66-_0x37658e._0x4b929b,_0x36fc66- -_0x37658e._0xeec54,_0x4ac939-0x15c);}const _0x4f4dd2=toOpenAiResponsesRequest(_0x3e2204);function _0x4cf849(_0x218cbd,_0xfc625b,_0x23b4cd,_0x5c947c){return _0x38c793(_0x23b4cd,_0xfc625b-0x149,_0x5c947c- -_0x4f0d28._0x1b58ef,_0x5c947c-0x1b3);}return{'type':_0x4cf849(-0x13b,-0x230,-0x23a,-_0x4ad6d0._0x3b0319),..._0x4f4dd2,..._0x21dfb4[_0x4cf849(-0x144,-_0x4ad6d0._0x2ab3d9,-0xd4,-_0x4ad6d0._0x3c015a)]?{'input':_0x21dfb4[_0x208b0e(0x14f,_0x4ad6d0._0x3431f7,0x157,_0x4ad6d0._0x4e2a35)]}:{},..._0x21dfb4['previousResponseId']?{'previous_response_id':_0x21dfb4[_0x208b0e(_0x4ad6d0._0xbe27b5,0xf0,0x154,0x42)]}:{},'store':![]};}function normalizeAssistantContent(_0x2273a7){const _0x835e7e={_0x53a761:0x1ab,_0x1ed018:0x260,_0x29b976:0x1ff,_0x35b7a5:0x458,_0x5b93aa:0x4b5,_0x4dda9e:0x3aa},_0x2f2d7c={_0x116ec3:0x146,_0x8f50be:0x16a,_0x457bff:0x91,_0x51801a:0x165},_0x11c049={_0x4388e1:0x1b7,_0x1ad317:0x4db};if(typeof _0x2273a7===_0x132d81(-0x253,-_0x835e7e._0x53a761,-_0x835e7e._0x1ed018,-_0x835e7e._0x29b976))return _0x2273a7;function _0x132d81(_0x4aba98,_0x37ad49,_0x5b7693,_0x4074f7){return _0x2b6123(_0x5b7693,_0x37ad49-0x123,_0x37ad49- -0x476,_0x4074f7-0xbd);}function _0x3693e6(_0x1995ba,_0x58cec0,_0x221482,_0x3e1ea6){return _0x2b6123(_0x221482,_0x58cec0-0xba,_0x58cec0-0xd6,_0x3e1ea6-0x1b0);}if(!Array['isArray'](_0x2273a7))return'';return _0x2273a7[_0x3693e6(0x47d,_0x835e7e._0x35b7a5,0x4f8,_0x835e7e._0x5b93aa)](_0x49088c=>{function _0x1637dc(_0x3d5d5e,_0x34a531,_0x5cc678,_0x12b93f){return _0x3693e6(_0x3d5d5e-_0x11c049._0x4388e1,_0x3d5d5e- -_0x11c049._0x1ad317,_0x12b93f,_0x12b93f-0xad);}return _0x49088c[_0x1637dc(-_0x2f2d7c._0x116ec3,-_0x2f2d7c._0x8f50be,-_0x2f2d7c._0x457bff,-_0x2f2d7c._0x51801a)]==='text'?_0x49088c['text']:_0x49088c['refusal'];})[_0x3693e6(0x3fa,_0x835e7e._0x4dda9e,0x37f,0x34c)]('');}function normalizeResponsesMessageContent(_0x37310c){const _0x716e4b={_0x14e073:0x6f0,_0x2d1518:0x5e8,_0x19bb00:0x719},_0xb75fff={_0x1211bb:0x133,_0x38f143:0x151,_0x3b03da:0x1be,_0x38e823:0x4c5,_0x33ee3b:0x495,_0x5ef18b:0x516,_0x259cd8:0x166,_0x1d10a9:0x113,_0x1d85a3:0xb,_0x475d71:0x466,_0x13bed5:0x492,_0x47cd70:0x4f2,_0x11c695:0x462,_0x76fc21:0x4c3,_0x350f67:0x61,_0x2892ee:0x28,_0x3f10b2:0x48,_0xd206b5:0x53c,_0x38a49b:0x479,_0x5125a9:0x508},_0x42d270={_0x1cfa2d:0xcd,_0x1c7f4b:0x1c9},_0x7d3b2e={_0x24f3c7:0xc5,_0x1d6e97:0x122};function _0x31cf68(_0x4c036d,_0x354955,_0x12f5a0,_0x3cc1ca){return _0x2b6123(_0x3cc1ca,_0x354955-0x79,_0x12f5a0-_0x7d3b2e._0x24f3c7,_0x3cc1ca-_0x7d3b2e._0x1d6e97);}function _0x3ba102(_0xbc59ab,_0x55ec52,_0x356ab1,_0x589b30){return _0x38c793(_0x55ec52,_0x55ec52-_0x42d270._0x1cfa2d,_0x589b30-0x1c8,_0x589b30-_0x42d270._0x1c7f4b);}if(!Array[_0x3ba102(_0x716e4b._0x14e073,0x612,_0x716e4b._0x2d1518,0x6aa)](_0x37310c))return'';return _0x37310c[_0x3ba102(0x668,_0x716e4b._0x19bb00,0x680,0x67a)](_0x4708fc=>{const _0x24354a={_0x10f855:0x27,_0x4f920f:0x119},_0x3876de={_0x6abdd3:0x41,_0x4a95bc:0x691};function _0x134f5e(_0x2bf28d,_0x31b371,_0x7b3bb2,_0x3c8936){return _0x3ba102(_0x2bf28d-_0x3876de._0x6abdd3,_0x3c8936,_0x7b3bb2-0x64,_0x31b371- -_0x3876de._0x4a95bc);}function _0x5ee43e(_0x1ce4bf,_0x50355d,_0x16bf36,_0x13070d){return _0x3ba102(_0x1ce4bf-_0x24354a._0x10f855,_0x50355d,_0x16bf36-_0x24354a._0x4f920f,_0x13070d- -0xf4);}if(!_0x4708fc||typeof _0x4708fc!==_0x134f5e(-0x1ae,-_0xb75fff._0x1211bb,-_0xb75fff._0x38f143,-_0xb75fff._0x3b03da))return'';const _0xcda266=_0x4708fc;if(_0xcda266['type']===_0x134f5e(-0x186,-0xc7,-0x12c,-0x179)&&typeof _0xcda266[_0x5ee43e(_0xb75fff._0x38e823,0x592,_0xb75fff._0x33ee3b,_0xb75fff._0x5ef18b)]===_0x134f5e(-_0xb75fff._0x259cd8,-0xce,-_0xb75fff._0x1d10a9,-_0xb75fff._0x1d85a3))return _0xcda266[_0x5ee43e(_0xb75fff._0x475d71,_0xb75fff._0x13bed5,0x5c8,0x516)];if(_0xcda266[_0x5ee43e(0x43e,_0xb75fff._0x47cd70,_0xb75fff._0x11c695,_0xb75fff._0x76fc21)]===_0x134f5e(-0x4b,-_0xb75fff._0x350f67,_0xb75fff._0x2892ee,-_0xb75fff._0x3f10b2)&&typeof _0xcda266[_0x5ee43e(0x55f,0x47f,0x497,_0xb75fff._0xd206b5)]==='string')return _0xcda266[_0x5ee43e(_0xb75fff._0x38a49b,_0xb75fff._0x5125a9,0x548,_0xb75fff._0xd206b5)];return'';})['join']('');}function extractOpenAiReasoningText(_0x4f8f79){const _0x3329c7={_0x2a93b0:0x11,_0x197f21:0x12,_0x2f954d:0x6f,_0x57b0bb:0x109,_0x30bcbf:0x78,_0x160906:0xa0,_0x35f0cb:0x47,_0x126f5e:0x547,_0x18a780:0x466,_0x4db679:0xee,_0x46e883:0x23,_0x386cdb:0x563,_0x519ada:0x4af,_0x4ca9f1:0x49e,_0x5927c2:0x4b5,_0x3288f2:0x508},_0x42c896={_0xd6bd4c:0x92,_0x3a9871:0x1bc},_0x1af2d4={_0x48c97f:0xdf,_0x297b0d:0x41};if(typeof _0x4f8f79[_0x461394(0x7,-0x28,_0x3329c7._0x2a93b0,_0x3329c7._0x197f21)]===_0x461394(-0xaa,-_0x3329c7._0x2f954d,-0x9,-0x125))return _0x4f8f79['text'];if(!Array[_0x461394(_0x3329c7._0x57b0bb,_0x3329c7._0x30bcbf,_0x3329c7._0x160906,-_0x3329c7._0x35f0cb)](_0x4f8f79[_0x100b86(0x4bc,0x42d,_0x3329c7._0x126f5e,_0x3329c7._0x18a780)]))return'';function _0x100b86(_0x45aaab,_0x52c889,_0x488d91,_0x17fae5){return _0x38c793(_0x52c889,_0x52c889-_0x1af2d4._0x48c97f,_0x45aaab-0xb1,_0x17fae5-_0x1af2d4._0x297b0d);}function _0x461394(_0x7bc080,_0x5472b2,_0x53ad51,_0x57d9bb){return _0x38c793(_0x53ad51,_0x5472b2-_0x42c896._0xd6bd4c,_0x5472b2- -0x46a,_0x57d9bb-_0x42c896._0x3a9871);}return _0x4f8f79['content'][_0x461394(-_0x3329c7._0x4db679,-_0x3329c7._0x46e883,-0x4d,-0x33)](_0x373075=>_0x373075['type']===_0x461394(-0x134,-0xaa,-0x158,-0x13f)&&typeof _0x373075[_0x461394(-0x86,-0x28,0x6e,0x5e)]===_0x461394(-0x6,-0x6f,-0x4b,0x3c))[_0x100b86(_0x3329c7._0x386cdb,_0x3329c7._0x519ada,_0x3329c7._0x4ca9f1,0x4ef)](_0x78f591=>_0x78f591[_0x461394(-0x13,-0x28,-0x9f,-0x41)]??'')[_0x100b86(_0x3329c7._0x5927c2,0x50e,0x56d,_0x3329c7._0x3288f2)]('');}function createOpenAiReasoningBlock(_0x14dcdc){const _0x4f6365={_0x1686bf:0x1b3,_0x14f4ae:0x1ca,_0x11562a:0x1f4,_0x576065:0x159,_0x3a90c0:0x215,_0x1ac145:0x104,_0x8df1fe:0x149,_0x576ce2:0x1c0},_0x1da0d1={_0x259d9d:0x13e,_0x484c68:0x5ca,_0x4da978:0x134},_0x4086e9={_0x12ee98:0x113,_0x452878:0x14a};function _0x488db1(_0x5c9f5c,_0x35fbf9,_0x5d0b9c,_0x2b4dee){return _0x2b6123(_0x5d0b9c,_0x35fbf9-_0x4086e9._0x12ee98,_0x5c9f5c- -0x3ca,_0x2b4dee-_0x4086e9._0x452878);}function _0x1014d4(_0xa2b495,_0x496c80,_0x8ceb7b,_0x492f21){return _0x38c793(_0x8ceb7b,_0x496c80-_0x1da0d1._0x259d9d,_0x496c80- -_0x1da0d1._0x484c68,_0x492f21-_0x1da0d1._0x4da978);}const _0x439047=extractOpenAiReasoningText(_0x14dcdc);return{'type':_0x1014d4(-_0x4f6365._0x1686bf,-_0x4f6365._0x14f4ae,-0x28e,-_0x4f6365._0x11562a),'summary':structuredClone(_0x14dcdc['summary']??[]),..._0x14dcdc['id']?{'id':_0x14dcdc['id']}:{},..._0x14dcdc[_0x488db1(-_0x4f6365._0x576065,-_0x4f6365._0x3a90c0,-_0x4f6365._0x1ac145,-0x129)]?{'encryptedContent':_0x14dcdc['encrypted_content']}:{},..._0x439047[_0x488db1(-0x12f,-_0x4f6365._0x8df1fe,-0xd8,-_0x4f6365._0x576ce2)]>0x0?{'text':_0x439047}:{}};}function hasVisibleOpenAiReasoning(_0x30739d){const _0x496f7f={_0x43acb3:0x144,_0x18ebaf:0x200,_0x7c61c4:0x1b0,_0x2fccde:0x257,_0x266517:0x207,_0x4e094a:0xf8},_0x215b54={_0x3e9626:0x21b},_0x15b6ad={_0x25d420:0x1};function _0x104a7b(_0x28b1c6,_0x5d1140,_0x550969,_0xea4343){return _0x2b6123(_0x5d1140,_0x5d1140-0x14d,_0x550969- -0x3a5,_0xea4343-_0x15b6ad._0x25d420);}function _0x382cf0(_0x2d1273,_0x37cbb6,_0x2a29d5,_0x2a1674){return _0x38c793(_0x2d1273,_0x37cbb6-0x137,_0x2a1674- -_0x215b54._0x3e9626,_0x2a1674-0x129);}return _0x30739d['summary'][_0x382cf0(0x239,_0x496f7f._0x43acb3,_0x496f7f._0x18ebaf,_0x496f7f._0x7c61c4)]>0x0||typeof _0x30739d[_0x382cf0(_0x496f7f._0x2fccde,0x282,_0x496f7f._0x266517,0x227)]===_0x104a7b(-0x180,-0x92,-0xda,-_0x496f7f._0x4e094a);}function parseChatCompletionResponse(_0x571879){const _0x3eca13={_0x35f007:0x1c8,_0x5f42d7:0x129,_0x2f343c:0x51c,_0x428d40:0x1a0,_0x49db4e:0x1c4,_0x4451d8:0x649,_0x54f990:0x5f1,_0x82d2c6:0x556,_0x4d0ea7:0x60e,_0xa7c5f1:0xe4,_0x213249:0xda,_0x5267c7:0x14b,_0x1ca9a6:0x5d4,_0x512bfd:0x5d9,_0x1df7ba:0x520,_0x59e368:0x658,_0x37f565:0x1e6,_0x4b5773:0x220},_0x207160={_0x439e32:0x127,_0x4ebe1a:0x54e},_0xde3ba7={_0x407459:0x10a,_0x4ed8af:0x174},_0x233cd4=[],_0x471882=[];let _0x1eab62=_0x363fd8(-_0x3eca13._0x35f007,-0x251,-0x237,-_0x3eca13._0x5f42d7);function _0xd667bb(_0x3bed8e,_0x3cac01,_0x59586d,_0x4a38fc){return _0x2b6123(_0x3cac01,_0x3cac01-_0xde3ba7._0x407459,_0x3bed8e-0x2dd,_0x4a38fc-_0xde3ba7._0x4ed8af);}function _0x363fd8(_0x23d17d,_0x3a21ea,_0x38341d,_0x3109c3){return _0x38c793(_0x3a21ea,_0x3a21ea-_0x207160._0x439e32,_0x23d17d- -_0x207160._0x4ebe1a,_0x3109c3-0x3e);}for(const _0x3aac3f of _0x571879[_0xd667bb(0x50e,0x5c5,0x53e,_0x3eca13._0x2f343c)]??[]){const _0x255dfa=_0x3aac3f[_0x363fd8(-0x16c,-0x211,-0x15e,-0x1a2)],_0x48cf4d=normalizeAssistantContent(_0x255dfa?.[_0x363fd8(-0x143,-_0x3eca13._0x428d40,-0x10c,-_0x3eca13._0x49db4e)]);_0x48cf4d['length']>0x0&&_0x233cd4[_0xd667bb(0x5f1,0x697,0x56e,_0x3eca13._0x4451d8)](_0x48cf4d),_0x255dfa?.['tool_calls']&&_0x471882[_0xd667bb(_0x3eca13._0x54f990,_0x3eca13._0x82d2c6,_0x3eca13._0x4d0ea7,0x5bd)](..._0x255dfa['tool_calls']),_0x3aac3f['finish_reason']===_0x363fd8(-_0x3eca13._0xa7c5f1,-0x109,-_0x3eca13._0x213249,-0xcf)&&(_0x1eab62=_0xd667bb(0x5b0,0x540,0x55a,0x57f));}return _0x471882['length']>0x0&&(_0x1eab62=_0x363fd8(-_0x3eca13._0x5267c7,-0x161,-0xae,-0x121)),{'id':_0x571879['id']??_0xd667bb(0x513,0x541,_0x3eca13._0x1ca9a6,_0x3eca13._0x512bfd)+Date[_0xd667bb(0x5d1,0x672,_0x3eca13._0x1df7ba,0x606)](),'content':createContentBlocks(_0x233cd4[_0xd667bb(0x5b1,0x53d,_0x3eca13._0x59e368,0x4e7)](''),_0x471882),'stopReason':_0x1eab62,'usage':createUsage(_0x571879[_0x363fd8(-0x1ee,-_0x3eca13._0x37f565,-_0x3eca13._0x4b5773,-0x1d0)])};}function parseResponsesResponse(_0x35dbaa,_0x169821){const _0x4f55ca={_0x3081e3:0x6a,_0x1aeada:0x70,_0x41f058:0x17,_0xf7dac5:0x2b,_0x5e2bc2:0x5a,_0x1d00d0:0x100,_0x1d0e88:0xc7,_0x485b8a:0x186,_0x2a5470:0xfe,_0x49327d:0x152,_0x5eb2c1:0xce,_0x5f04ae:0xfc,_0x2fc2ee:0x3a,_0x2e2f2c:0xff,_0x27a6db:0x8e,_0x36d599:0x9b,_0x216fdf:0x8d,_0x3e8080:0x87,_0x4fcc48:0x97,_0x1eb410:0xe,_0xa846a0:0x68,_0x11c6ae:0xb7,_0x171f67:0x12a,_0x3edd56:0xfd,_0x388bdf:0x0,_0x7e5330:0xc2,_0x390983:0x1c6,_0x6de3ef:0x13f,_0x471f09:0x16d,_0x872d3a:0x130,_0x43ae15:0x9b,_0x414856:0x39,_0x184b0f:0x2c,_0x579ac9:0x212,_0x1226b6:0xa2,_0x28016b:0x169,_0x30776b:0xab,_0x12a0c5:0x14e,_0x1e4cd0:0xbd,_0x31f0af:0xbe,_0x47a439:0x3b,_0x3cdb87:0xc1,_0x25d1be:0x19f,_0x5ed4d3:0x2a,_0x29d41f:0x9a,_0x41a5fa:0xa7,_0x38d0d1:0x78,_0x11be8f:0xcd,_0x1b4231:0x131,_0x449127:0x16e,_0x3654e4:0x6b,_0x271b32:0x96,_0x5b2ba5:0x23d,_0x25414c:0x17a,_0x3788d0:0x1b7,_0x263c8a:0xd2,_0x1b1bc8:0x25,_0x31619b:0xe5,_0x21d160:0xaf,_0x1d996d:0x17,_0x5f09f9:0x1bf,_0x19613e:0x10e,_0x3ee42b:0x8f,_0x55e32f:0xa1,_0x33e32d:0x21,_0x409983:0xd4},_0x58dd85={_0x32ddf5:0xa6},_0x486941={_0x1b0490:0x214},_0x5b7295=[];function _0x14986d(_0x2f38c3,_0x55bc87,_0x773cd3,_0x1c1a4d){return _0x2b6123(_0x55bc87,_0x55bc87-0xb9,_0x773cd3- -_0x486941._0x1b0490,_0x1c1a4d-0x15a);}function _0xc88042(_0x44730f,_0x2050b4,_0x3e50a1,_0x4d212c){return _0x2b6123(_0x3e50a1,_0x2050b4-_0x58dd85._0x32ddf5,_0x44730f- -0x2fd,_0x4d212c-0x1bd);}for(const _0x339852 of _0x35dbaa[_0x14986d(-_0x4f55ca._0x3081e3,0xb,0x21,_0x4f55ca._0x1aeada)]??[]){if(isResponsesReasoningItem(_0x339852)){if(isUserVisibleReasoning(_0x169821)){const _0x14b8d0=createOpenAiReasoningBlock(_0x339852);hasVisibleOpenAiReasoning(_0x14b8d0)&&_0x5b7295[_0xc88042(_0x4f55ca._0x41f058,0x36,_0x4f55ca._0xf7dac5,-_0x4f55ca._0x5e2bc2)](_0x14b8d0);}continue;}if(isResponsesMessageItem(_0x339852)){const _0x32844a=normalizeResponsesMessageContent(_0x339852[_0x14986d(0x55,_0x4f55ca._0x1d00d0,_0x4f55ca._0x1d0e88,_0x4f55ca._0x485b8a)]);_0x32844a['length']>0x0&&_0x5b7295['push']({'type':_0x14986d(0x17a,0x1b4,_0x4f55ca._0x2a5470,0xd2),'text':_0x32844a});continue;}if(!isResponsesFunctionCallItem(_0x339852)||typeof _0x339852[_0xc88042(-0x8b,-0x109,-_0x4f55ca._0x49327d,-_0x4f55ca._0x5eb2c1)]!==_0x14986d(0x65,0x16c,0xb7,_0x4f55ca._0x5f04ae)||_0x339852['call_id'][_0x14986d(-_0x4f55ca._0x2fc2ee,_0x4f55ca._0x2e2f2c,_0x4f55ca._0x27a6db,0x118)]()[_0x14986d(_0x4f55ca._0x36d599,_0x4f55ca._0x216fdf,0x87,_0x4f55ca._0x3e8080)]===0x0||typeof _0x339852['name']!==_0xc88042(-0x32,-0x67,-_0x4f55ca._0x4fcc48,_0x4f55ca._0x1eb410)||_0x339852['name'][_0xc88042(-0x5b,-0x4d,-0xaa,-0x99)]()[_0xc88042(-0x62,0x45,_0x4f55ca._0xa846a0,-0xbc)]===0x0||typeof _0x339852[_0xc88042(-_0x4f55ca._0x11c6ae,-_0x4f55ca._0x171f67,-_0x4f55ca._0x3edd56,_0x4f55ca._0x388bdf)]!==_0xc88042(-0x32,-_0x4f55ca._0x7e5330,-0x32,0x3b))continue;_0x5b7295[_0x14986d(_0x4f55ca._0x390983,_0x4f55ca._0x6de3ef,0x100,0xca)]({'type':_0x14986d(0x116,_0x4f55ca._0x471f09,0xbf,_0x4f55ca._0x872d3a),'id':_0x339852[_0x14986d(_0x4f55ca._0x43ae15,0xe8,0x5e,-0x27)],'name':_0x339852[_0x14986d(0x92,-0x52,_0x4f55ca._0x414856,_0x4f55ca._0x184b0f)],'input':parseToolInput2(_0x339852['arguments'])});}return!_0x5b7295[_0x14986d(_0x4f55ca._0x579ac9,_0x4f55ca._0x1226b6,_0x4f55ca._0x28016b,_0x4f55ca._0x30776b)](_0xf3061=>_0xf3061[_0xc88042(-0x3e,0x6,-0xa9,-0xb5)]===_0x14986d(0x37,0x16d,0xfe,0x7a))&&_0x35dbaa[_0x14986d(_0x4f55ca._0x12a0c5,_0x4f55ca._0x1e4cd0,_0x4f55ca._0x31f0af,_0x4f55ca._0x47a439)]&&_0x5b7295[_0x14986d(_0x4f55ca._0x3cdb87,_0x4f55ca._0x25d1be,0x100,0xb9)]({'type':'text','text':_0x35dbaa[_0x14986d(0x9d,0x106,_0x4f55ca._0x31f0af,0x154)]}),{'id':_0x35dbaa['id'],'content':_0x5b7295,'stopReason':_0x5b7295['some'](_0x2ca048=>_0x2ca048[_0xc88042(-0x3e,0x2d,0xe,-0xf3)]===_0xc88042(-0x2a,-0x97,-0x9d,-0x79))?_0xc88042(-_0x4f55ca._0x5ed4d3,_0x4f55ca._0x29d41f,0x23,-0x61):_0xc88042(-_0x4f55ca._0x41a5fa,0x1d,-0xf1,-_0x4f55ca._0x38d0d1),'usage':{'inputTokens':_0x35dbaa[_0xc88042(-_0x4f55ca._0x11be8f,-0x50,-_0x4f55ca._0x1b4231,-_0x4f55ca._0x449127)]?.[_0xc88042(-_0x4f55ca._0x3654e4,-0x108,-0x102,-0x60)]??0x0,'outputTokens':_0x35dbaa[_0x14986d(-_0x4f55ca._0x5ed4d3,-0x22,0x1c,_0x4f55ca._0x271b32)]?.[_0x14986d(_0x4f55ca._0x5b2ba5,_0x4f55ca._0x25414c,0x19f,_0x4f55ca._0x3788d0)]??0x0,..._0x35dbaa['usage']?.[_0xc88042(-_0x4f55ca._0x263c8a,-_0x4f55ca._0x31f0af,-0x5f,-0x189)]?.[_0xc88042(_0x4f55ca._0x1b1bc8,_0x4f55ca._0x31619b,0x31,0xb4)]!==void 0x0?{'reasoningTokens':_0x35dbaa['usage'][_0x14986d(-_0x4f55ca._0x21d160,0xca,_0x4f55ca._0x1d996d,-0x32)][_0x14986d(_0x4f55ca._0x5f09f9,0x1b9,_0x4f55ca._0x19613e,0x159)]}:{}},..._0x35dbaa[_0xc88042(-0xc8,-0x135,-0xbc,-0xdf)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x35dbaa[_0x14986d(-_0x4f55ca._0x3ee42b,-_0x4f55ca._0x55e32f,_0x4f55ca._0x33e32d,_0x4f55ca._0x409983)]),'openaiResponsesResponseId':_0x35dbaa['id']}}:{}};}function extractErrorMessage(_0x312449){const _0x24077f={_0x4bbf37:0xe2,_0x4ae2c1:0x73,_0x168d48:0x41d,_0xb0cbc2:0x49b,_0x4430a8:0x43f,_0x22914f:0x3fc,_0x459fa6:0x3af,_0xb02520:0x4d1,_0x187094:0x541,_0x5f5ac0:0x3d5,_0x3f07de:0x5a,_0x15470f:0x3f9,_0xe8ebc5:0x4ae,_0x2201c8:0x43,_0x433c81:0x48,_0x48d950:0x43,_0x421e55:0xfe,_0x48c780:0x4b9,_0x4e05fe:0x46a,_0x97743b:0x3f3,_0x47521f:0x4a0,_0x17bc98:0x3cb,_0x2c4c14:0x381,_0x36ad21:0x431,_0x159a21:0x54,_0x1c5b14:0xac,_0x422fff:0xb6,_0x3395a7:0x74,_0x4c6765:0xf,_0x3c8eb6:0x43,_0x2a5ad4:0x3f4},_0x587de2={_0x543202:0xc8,_0x409b11:0x107},_0x4695a6={_0x51e85d:0x29,_0x42b19f:0x1ea};if(_0x312449[_0x1bf87b(0xee,_0x24077f._0x4bbf37,0x43,-_0x24077f._0x4ae2c1)]===0x0)return'';function _0x1299d2(_0x387b41,_0x4df939,_0x4bd34f,_0x197c94){return _0x38c793(_0x4bd34f,_0x4df939-0x14d,_0x4df939-_0x4695a6._0x51e85d,_0x197c94-_0x4695a6._0x42b19f);}try{const _0x1f83c2=JSON[_0x1299d2(0x4c6,0x450,_0x24077f._0x168d48,0x449)](_0x312449);if(typeof _0x1f83c2[_0x1299d2(0x500,_0x24077f._0xb0cbc2,_0x24077f._0x4430a8,_0x24077f._0x22914f)]?.['message']===_0x1299d2(_0x24077f._0x459fa6,0x424,_0x24077f._0xb02520,0x3ad)&&_0x1f83c2[_0x1299d2(_0x24077f._0x187094,_0x24077f._0xb0cbc2,_0x24077f._0x5f5ac0,0x40e)][_0x1bf87b(0x36,0x11d,_0x24077f._0x3f07de,0xfe)][_0x1299d2(0x33a,0x3fb,_0x24077f._0x15470f,_0x24077f._0xe8ebc5)]()[_0x1bf87b(0x86,0xb6,_0x24077f._0x2201c8,_0x24077f._0x433c81)]>0x0)return _0x1f83c2['error'][_0x1bf87b(-_0x24077f._0x48d950,0xac,0x5a,_0x24077f._0x421e55)][_0x1299d2(_0x24077f._0x48c780,0x3fb,_0x24077f._0x4e05fe,_0x24077f._0x97743b)]();if(typeof _0x1f83c2[_0x1299d2(_0x24077f._0x47521f,0x40b,_0x24077f._0x17bc98,0x3c5)]===_0x1299d2(0x4bf,0x424,_0x24077f._0x2c4c14,_0x24077f._0x36ad21)&&_0x1f83c2[_0x1bf87b(0x69,_0x24077f._0x159a21,0x5a,_0x24077f._0x1c5b14)][_0x1bf87b(_0x24077f._0x422fff,-_0x24077f._0x3395a7,0x4a,-_0x24077f._0x4c6765)]()[_0x1bf87b(0x36,0x78,_0x24077f._0x3c8eb6,0x1c)]>0x0)return _0x1f83c2[_0x1299d2(0x40f,0x40b,0x3f3,_0x24077f._0x2a5ad4)]['trim']();}catch{return _0x312449;}function _0x1bf87b(_0x37db6b,_0x5b4389,_0x4a31b0,_0x5742a8){return _0x2b6123(_0x5b4389,_0x5b4389-_0x587de2._0x543202,_0x4a31b0- -0x258,_0x5742a8-_0x587de2._0x409b11);}return _0x312449;}async function createOpenAiApiError(_0x5599af){const _0x2a8ad={_0x32a6eb:0x1dd,_0x4c2982:0x115,_0x1f8f55:0x10a,_0x4e79d4:0x30,_0x33edcc:0x9,_0x4ba309:0x51,_0x583eca:0x42,_0x350df7:0x1c3,_0x469e7a:0x1ce,_0x586b45:0x161,_0x5d3c80:0x18b},_0x591a8a={_0x1b9fbe:0x1b4},_0x5199a3={_0x34b600:0x2ec},_0x143d11=(await _0x5599af[_0x44df7c(_0x2a8ad._0x32a6eb,_0x2a8ad._0x4c2982,_0x2a8ad._0x1f8f55,0x156)]())[_0x214f70(_0x2a8ad._0x4e79d4,_0x2a8ad._0x33edcc,-_0x2a8ad._0x4ba309,_0x2a8ad._0x583eca)]();function _0x44df7c(_0x22bffc,_0x2cbb07,_0x5dffc2,_0x3c76de){return _0x38c793(_0x22bffc,_0x2cbb07-0xb5,_0x3c76de- -_0x5199a3._0x34b600,_0x3c76de-0x1d5);}const _0xe29de4=extractErrorMessage(_0x143d11)||_0x5599af[_0x44df7c(_0x2a8ad._0x350df7,_0x2a8ad._0x469e7a,0x101,_0x2a8ad._0x586b45)]||'OpenAI\x20API\x20error\x20'+_0x5599af[_0x44df7c(0x174,_0x2a8ad._0x5d3c80,0x100,0xe8)];function _0x214f70(_0x2d8514,_0x5b1658,_0x3208c4,_0x111ec3){return _0x2b6123(_0x5b1658,_0x5b1658-0x21,_0x3208c4- -0x2f3,_0x111ec3-_0x591a8a._0x1b9fbe);}return new OpenAiApiError(_0x5599af['status'],_0x143d11,_0xe29de4);}function readSseData(_0x5d010c){const _0x45ee08={_0x5c49df:0x407,_0xe36405:0x3ea,_0x3eeebe:0x470,_0x44b26f:0x34d,_0x2a9285:0x498,_0x5cd729:0x4fc,_0x2ff4e9:0x4e3},_0x351722={_0x2db968:0x119},_0x5668b4={_0x11e485:0xc0};function _0x4fbb9b(_0x43c155,_0x5f0f2c,_0x5ebc4a,_0x5b8a89){return _0x2b6123(_0x5b8a89,_0x5f0f2c-0x3d,_0x5ebc4a-_0x5668b4._0x11e485,_0x5b8a89-0x51);}function _0x29e356(_0x2b7748,_0x552d34,_0x701c37,_0x54b5e8){return _0x38c793(_0x701c37,_0x552d34-0x30,_0x2b7748-0x111,_0x54b5e8-_0x351722._0x2db968);}return _0x5d010c[_0x4fbb9b(0x469,_0x45ee08._0x5c49df,0x3cd,_0x45ee08._0xe36405)]('\x0a')[_0x4fbb9b(_0x45ee08._0x3eeebe,0x37d,0x3d7,_0x45ee08._0x44b26f)](_0x5e8625=>_0x5e8625['startsWith']('data:'))[_0x4fbb9b(_0x45ee08._0x2a9285,_0x45ee08._0x5cd729,0x442,0x499)](_0x80f892=>_0x80f892[_0x29e356(0x510,0x516,0x568,0x520)](0x5)[_0x4fbb9b(0x464,0x45b,0x3be,0x3dd)]())['join']('\x0a')[_0x29e356(_0x45ee08._0x2ff4e9,0x42a,0x5aa,0x4ed)]();}function readString(_0x2ea2ba){const _0x4d8120={_0x531e16:0x16c,_0x18ad1f:0x1fe,_0x366b28:0x19f,_0xb744f5:0x1a9};function _0x233064(_0xcfba68,_0x15fdec,_0x2bedb7,_0x2c141e){return _0x2b6123(_0x2c141e,_0x15fdec-0x11,_0x15fdec- -0x499,_0x2c141e-0x199);}return typeof _0x2ea2ba==='string'&&_0x2ea2ba[_0x233064(-_0x4d8120._0x531e16,-_0x4d8120._0x18ad1f,-_0x4d8120._0x366b28,-_0x4d8120._0xb744f5)]>0x0?_0x2ea2ba:void 0x0;}function extractReasoningDetails(_0x4aa2b7){const _0x275543={_0x4d618a:0x2b0,_0x417e69:0x3be,_0x10b750:0x35c,_0x46fcbb:0x1da,_0x2c868b:0x29b,_0xce6f00:0x1a1,_0x177dd6:0x1ba},_0x2b6651={_0xd6ed18:0x25d,_0xe3211f:0x283,_0x138343:0x378,_0x2f7dc7:0x309,_0xa62bbf:0x48,_0x34bfe5:0xe5,_0x51fc89:0x27,_0x1dbd68:0x6e,_0x238f46:0x1cd,_0x2eecad:0x25b,_0x39eedc:0x204,_0x34c39b:0x372,_0x27344e:0x2cf},_0x136f65={_0x5d00b4:0x119,_0x2fc314:0x19b},_0x3a363c={_0x30bb6e:0xc7},_0x113a07={_0xb7fbe4:0xe},_0x585790={_0x2ccf0a:0x113};function _0x31e728(_0x26cf95,_0x56a63a,_0x32304c,_0x17a5be){return _0x2b6123(_0x17a5be,_0x56a63a-_0x585790._0x2ccf0a,_0x32304c- -0x475,_0x17a5be-0x1ee);}if(!Array['isArray'](_0x4aa2b7))return void 0x0;function _0x3ddddf(_0xb50611,_0x5a91a3,_0x4317d3,_0x1d3e19){return _0x2b6123(_0xb50611,_0x5a91a3-0x103,_0x1d3e19-_0x113a07._0xb7fbe4,_0x1d3e19-0x181);}const _0x353e32=_0x4aa2b7[_0x3ddddf(0x2da,_0x275543._0x4d618a,_0x275543._0x417e69,_0x275543._0x10b750)](_0x238d3f=>{if(!_0x238d3f||typeof _0x238d3f!==_0x1ecfc9(0x1b5,0x198,_0x2b6651._0xd6ed18,_0x2b6651._0xe3211f))return[];const _0x4c7fd0=_0x238d3f;if(typeof _0x4c7fd0[_0x1ecfc9(_0x2b6651._0x138343,0x23f,_0x2b6651._0x2f7dc7,0x248)]===_0x34d6ac(-_0x2b6651._0xa62bbf,_0x2b6651._0x34bfe5,-0x78,_0x2b6651._0x51fc89))return[_0x4c7fd0[_0x34d6ac(0xdf,0x9,0x8c,_0x2b6651._0x1dbd68)]];if(typeof _0x4c7fd0[_0x1ecfc9(_0x2b6651._0x238f46,_0x2b6651._0x2eecad,0x22a,_0x2b6651._0x39eedc)]===_0x1ecfc9(0x286,0x23e,0x2c2,_0x2b6651._0x34c39b))return[_0x4c7fd0[_0x1ecfc9(0x2c3,_0x2b6651._0x27344e,0x22a,0x279)]];function _0x34d6ac(_0x17d2ee,_0xcb5d41,_0x1f820c,_0x210f3d){return _0x3ddddf(_0x1f820c,_0xcb5d41-_0x3a363c._0x30bb6e,_0x1f820c-0xdf,_0x210f3d- -0x2b2);}function _0x1ecfc9(_0x3d773f,_0x1306e4,_0x530fbe,_0x306def){return _0x3ddddf(_0x306def,_0x1306e4-_0x136f65._0x5d00b4,_0x530fbe-_0x136f65._0x2fc314,_0x530fbe- -0x17);}return[];});return _0x353e32[_0x31e728(-0x182,-0x22e,-_0x275543._0x46fcbb,-_0x275543._0x2c868b)]>0x0?_0x353e32[_0x31e728(-0x24a,-0x1c7,-_0x275543._0xce6f00,-_0x275543._0x177dd6)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x34c420){const _0x850fc5={_0x28e041:0x16,_0x5a6e29:0xa3,_0x4726c3:0xda,_0x38f307:0x178,_0x91be26:0x13d,_0x139275:0x8c,_0x498dc2:0x36},_0x26aff8={_0x3d2b97:0x1cb},_0x5adcf3={_0x55a952:0x2c6,_0x283e0c:0xf0};function _0x2fc4d0(_0x388e5a,_0xb0e674,_0x5d1ed1,_0x50228e){return _0x2b6123(_0x50228e,_0xb0e674-0xe1,_0x5d1ed1- -_0x5adcf3._0x55a952,_0x50228e-_0x5adcf3._0x283e0c);}function _0xb2f9be(_0x103f2f,_0x4c79d8,_0x169c12,_0x2ea4fa){return _0x2b6123(_0x4c79d8,_0x4c79d8-0x163,_0x169c12- -0x272,_0x2ea4fa-_0x26aff8._0x3d2b97);}return extractReasoningDetails(_0x34c420?.['reasoning_details'])??readString(_0x34c420?.[_0x2fc4d0(-_0x850fc5._0x28e041,0x1a,_0x850fc5._0x5a6e29,-0x20)])??readString(_0x34c420?.[_0xb2f9be(_0x850fc5._0x4726c3,_0x850fc5._0x38f307,_0x850fc5._0x91be26,0x1ab)])??readString(_0x34c420?.[_0x2fc4d0(-_0x850fc5._0x139275,0x3f,-_0x850fc5._0x498dc2,-0x5c)])??'';}function _0x25f1(_0x247a07,_0x2b54d5){_0x247a07=_0x247a07-0x140;const _0x35ddb6=_0x35dd();let _0x25f1d4=_0x35ddb6[_0x247a07];if(_0x25f1['ijOKSH']===undefined){var _0x1bf14b=function(_0x3e671e){const _0x50591d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x59edd8='',_0x19c802='';for(let _0x436f18=0x0,_0x2e3f26,_0x1ffc19,_0xa1db61=0x0;_0x1ffc19=_0x3e671e['charAt'](_0xa1db61++);~_0x1ffc19&&(_0x2e3f26=_0x436f18%0x4?_0x2e3f26*0x40+_0x1ffc19:_0x1ffc19,_0x436f18++%0x4)?_0x59edd8+=String['fromCharCode'](0xff&_0x2e3f26>>(-0x2*_0x436f18&0x6)):0x0){_0x1ffc19=_0x50591d['indexOf'](_0x1ffc19);}for(let _0x37f518=0x0,_0x3d797a=_0x59edd8['length'];_0x37f518<_0x3d797a;_0x37f518++){_0x19c802+='%'+('00'+_0x59edd8['charCodeAt'](_0x37f518)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x19c802);};_0x25f1['PHOqdS']=_0x1bf14b,_0x25f1['Chuqvm']={},_0x25f1['ijOKSH']=!![];}const _0x427d33=_0x35ddb6[0x0],_0x4a3c51=_0x247a07+_0x427d33,_0x39b9da=_0x25f1['Chuqvm'][_0x4a3c51];return!_0x39b9da?(_0x25f1d4=_0x25f1['PHOqdS'](_0x25f1d4),_0x25f1['Chuqvm'][_0x4a3c51]=_0x25f1d4):_0x25f1d4=_0x39b9da,_0x25f1d4;}var OpenAiChatCompletionsStreamParser=class{[_0x2b6123(0x2f0,0x2dc,0x327,0x3a9)]=[];['request'];['textParts']=[];[_0x38c793(0x49d,0x41e,0x4de,0x55f)]=new Map();[_0x2b6123(0x365,0x2cf,0x313,0x343)]=[];[_0x2b6123(0x332,0x28e,0x319,0x33f)]=new Set();['responseId']='';[_0x2b6123(0x225,0x1dd,0x25a,0x2b2)]='end_turn';[_0x2b6123(0x22b,0x29c,0x230,0x247)];constructor(_0x31ef78){const _0x4622c6={_0x215ae9:0x7b,_0x288030:0x175},_0x1cbdb2={_0x1b8621:0x13a,_0x1f096e:0x4d5};function _0x249d46(_0xb070fe,_0x591a55,_0xdcc63d,_0x358ec9){return _0x38c793(_0x358ec9,_0x591a55-_0x1cbdb2._0x1b8621,_0xb070fe- -_0x1cbdb2._0x1f096e,_0x358ec9-0x122);}this[_0x249d46(-0xf8,-0x11e,-_0x4622c6._0x215ae9,-_0x4622c6._0x288030)]=_0x31ef78;}[_0x38c793(0x397,0x3ec,0x3cc,0x43d)](_0x28d9fa){const _0x3f97e5={_0x2645c6:0x9,_0x5cbc2a:0x3f,_0xda7851:0x4ad,_0x38e1cd:0x450,_0x19eebc:0x469,_0x29d056:0x3b,_0x41871d:0x80,_0x1e397c:0xb,_0x284bc5:0x35a,_0x5bc9ac:0x3e9,_0x59143c:0x618,_0x4dc15b:0x5e0},_0x241580={_0x59bcdc:0x1b8},_0x5d2db6={_0x51eb20:0x89},_0x12f1b2=readSseData(_0x28d9fa);if(_0x12f1b2[_0x34d222(-0x57,_0x3f97e5._0x2645c6,_0x3f97e5._0x5cbc2a,0x12)]===0x0||_0x12f1b2===_0x56aeec(0x43e,_0x3f97e5._0xda7851,_0x3f97e5._0x38e1cd,0x41a))return[];function _0x56aeec(_0x1c9614,_0xb4856d,_0x45e155,_0x5dfbd6){return _0x38c793(_0xb4856d,_0xb4856d-0x1a3,_0x45e155-_0x5d2db6._0x51eb20,_0x5dfbd6-0x7b);}const _0x31cbc4=JSON[_0x56aeec(0x521,0x4b1,0x4b0,_0x3f97e5._0x19eebc)](_0x12f1b2);this['responseId']=_0x31cbc4['id']??this[_0x34d222(-0x23,_0x3f97e5._0x29d056,-_0x3f97e5._0x41871d,-_0x3f97e5._0x1e397c)];function _0x34d222(_0x16c1b7,_0x48ba6f,_0x4ab316,_0x5dfa17){return _0x38c793(_0x5dfa17,_0x48ba6f-0xf6,_0x48ba6f- -0x3c2,_0x5dfa17-_0x241580._0x59bcdc);}return this[_0x34d222(-0xff,-0x62,0x40,-0x70)]=_0x31cbc4['usage']??this[_0x56aeec(_0x3f97e5._0x284bc5,0x3c8,_0x3f97e5._0x5bc9ac,0x3ae)],this[_0x56aeec(_0x3f97e5._0x59143c,_0x3f97e5._0x4dc15b,0x557,0x51a)](_0x31cbc4);}[_0x2b6123(0x305,0x2e0,0x38e,0x312)](){const _0x4dc124={_0x3e0ff9:0x25b,_0x9e4672:0x1f1,_0x5ea676:0x255,_0x43acf3:0x129,_0x2ec83c:0x1a6,_0x29df14:0x138,_0x18668b:0x1b1,_0x51bd2b:0x251,_0x5b112e:0x18b,_0x33ba30:0xae,_0x3bbea6:0xb0,_0x144465:0x8f,_0x5353c5:0x186,_0x38334f:0x1da,_0x3840a1:0x1a1,_0x2514fa:0x1b2,_0x3821fe:0x24a,_0x143303:0x1f9,_0x59a523:0x82,_0x518adb:0x131,_0x3d018d:0x6f,_0x4557bf:0x127,_0x41db48:0x1b2,_0x3585bf:0x247},_0x16e660={_0x5c7e2f:0x3d7},_0x34e9f6={_0x4dd81a:0x14f};function _0x45215c(_0x157c2d,_0x5cc362,_0x26dea1,_0x4a1ef1){return _0x2b6123(_0x4a1ef1,_0x5cc362-0x1f2,_0x26dea1- -0x122,_0x4a1ef1-_0x34e9f6._0x4dd81a);}this[_0x45215c(0x2ae,_0x4dc124._0x3e0ff9,_0x4dc124._0x9e4672,_0x4dc124._0x5ea676)]['length']>0x0&&(this[_0x45215c(_0x4dc124._0x43acf3,_0x4dc124._0x2ec83c,_0x4dc124._0x29df14,0x1b2)]=_0x45215c(0x176,0x13a,_0x4dc124._0x18668b,_0x4dc124._0x51bd2b));const _0x1aa028=isUserVisibleReasoning(this[_0x45215c(0xeb,0x238,_0x4dc124._0x5b112e,0x1b4)])?this[_0x5cd25c(-_0x4dc124._0x33ba30,-_0x4dc124._0x3bbea6,-_0x4dc124._0x144465,-0x98)]['join'](''):void 0x0;function _0x5cd25c(_0x364101,_0x2b0b3d,_0x4394a7,_0x36eb7a){return _0x2b6123(_0x364101,_0x2b0b3d-0xb,_0x2b0b3d- -_0x16e660._0x5c7e2f,_0x36eb7a-0x106);}return{'id':this[_0x45215c(_0x4dc124._0x5353c5,0x1e0,0x1ab,_0x4dc124._0x38334f)]||_0x5cd25c(-0x13c,-_0x4dc124._0x3840a1,-_0x4dc124._0x2514fa,-_0x4dc124._0x3821fe)+Date[_0x45215c(0x10d,_0x4dc124._0x143303,0x1d2,0x18c)](),'content':createContentBlocks(this[_0x5cd25c(-0x10c,-_0x4dc124._0x59a523,-_0x4dc124._0x518adb,-_0x4dc124._0x3d018d)][_0x45215c(_0x4dc124._0x4557bf,0xfd,_0x4dc124._0x41db48,_0x4dc124._0x3585bf)](''),this['toolCallOrder'],_0x1aa028),'stopReason':this['stopReason'],'usage':createUsage(this[_0x5cd25c(-0xf5,-0x1a7,-0xea,-0xf8)])};}[_0x2b6123(0x458,0x36d,0x39e,0x331)](_0xc361ae){const _0xfd0424={_0x508e3f:0x21,_0x402ae7:0xfa,_0x3d3229:0x173,_0x575f3d:0x1c9,_0x21d304:0x18c,_0x18e80f:0x360,_0x21fb7f:0x4c3,_0x4650b0:0x410,_0x22f09a:0x485,_0x4db54a:0x375,_0x378d8e:0x307,_0x1d0bf3:0x34e,_0x36fc3d:0x5b,_0x391a2b:0x11e,_0x449ae6:0x2f6,_0x30bc61:0x2fe,_0x4be6d9:0x2ee,_0xbb66c6:0x409,_0x517374:0x425,_0x1c8807:0x3ec,_0x5c27c1:0x2af,_0x3fc1be:0x8a,_0x435fd8:0x9f,_0x8b6346:0x3d,_0x54c149:0x2,_0x13f258:0x95,_0x7241fb:0x35,_0x121c4a:0xe9,_0xa20fe6:0x10d,_0x1b1134:0x181,_0x4123b4:0x20c,_0x52d9bd:0x2d9,_0x16bd04:0x200,_0x271bac:0x492,_0xfebb80:0x474,_0x53d392:0x35e,_0x456f96:0x2b8,_0x51ba0b:0x376,_0x2aca35:0x31f,_0x9eedc2:0x174,_0x354bf0:0x12e,_0x54b6f4:0x150,_0x3eab29:0x38b,_0x3d120c:0x2a0,_0x2c0d9f:0x2fd,_0x39c3fa:0x2c7,_0x25f592:0x37c,_0xd82281:0x381,_0x2cc985:0x170,_0x4b5a92:0x181,_0x5be8fa:0x352,_0x1fc883:0x343,_0x41d221:0x256,_0xd06250:0x14a,_0x16feea:0x144,_0x516912:0x126,_0x1bcdbf:0x32d,_0x3930ae:0x345,_0x5a23df:0x3ff,_0x5bf0ca:0x2b0,_0x2868dc:0x2bf,_0x286411:0x10f,_0x280748:0xd2,_0xee2514:0x5a,_0x3dddea:0x1e1,_0x29b966:0x19b,_0x261ca2:0x1a5,_0x2a2eab:0x254,_0x49c338:0x150,_0x984694:0x211,_0xd1e54c:0x329,_0x897a6d:0x2a9,_0x46732c:0x2d3,_0x2d2fda:0x25a,_0xaa9422:0xfb,_0x1aa769:0x191,_0x37743a:0x2bc,_0x4c5fb1:0x25d,_0x1627ed:0x38e,_0xf4928:0x336,_0x231472:0x377},_0x1c2d35={_0x3614e3:0x51b},_0x5990df=[];function _0x5c7f0f(_0xbb71ee,_0x5551ed,_0x5b679e,_0x123129){return _0x38c793(_0x123129,_0x5551ed-0x17f,_0x5551ed- -0xcd,_0x123129-0x93);}function _0x5e0a03(_0x3a1f9e,_0x287d63,_0x197e0d,_0x47a525){return _0x38c793(_0x287d63,_0x287d63-0x19c,_0x197e0d- -_0x1c2d35._0x3614e3,_0x47a525-0xb);}for(const _0x4d8129 of _0xc361ae['choices']??[]){const _0x12c09c=_0x4d8129[_0x5e0a03(0x4f,0x26,-0x5a,-_0xfd0424._0x508e3f)],_0x52a61f=extractChatCompletionReasoningDelta(_0x12c09c);_0x52a61f['length']>0x0&&(this[_0x5c7f0f(0x3d2,0x38a,0x3e0,0x301)][_0x5e0a03(-_0xfd0424._0x402ae7,-_0xfd0424._0x3d3229,-0xd7,-0x10e)](_0x52a61f),isUserVisibleReasoning(this[_0x5e0a03(-0x130,-_0xfd0424._0x575f3d,-0x13e,-_0xfd0424._0x21d304)])&&_0x5990df['push']({'type':'openai_reasoning_delta','contentIndex':0x0,'delta':_0x52a61f,'itemId':(this[_0x5c7f0f(0x2fc,0x330,0x306,_0xfd0424._0x18e80f)]||_0x5c7f0f(_0xfd0424._0x21fb7f,_0xfd0424._0x4650b0,0x3bb,_0xfd0424._0x22f09a))+_0x5c7f0f(_0xfd0424._0x4db54a,0x3f8,0x414,0x4b6),'outputIndex':0x0}));const _0x407f63=typeof _0x12c09c?.[_0x5c7f0f(_0xfd0424._0x378d8e,0x33e,0x401,_0xfd0424._0x1d0bf3)]==='string'?_0x12c09c['content']:typeof _0x12c09c?.['refusal']===_0x5e0a03(-0x133,-_0xfd0424._0x36fc3d,-0x120,-_0xfd0424._0x391a2b)?_0x12c09c['refusal']:'';_0x407f63[_0x5c7f0f(_0xfd0424._0x449ae6,_0xfd0424._0x30bc61,0x2e6,_0xfd0424._0x4be6d9)]>0x0&&(this[_0x5c7f0f(_0xfd0424._0xbb66c6,0x3b8,_0xfd0424._0x517374,0x47a)][_0x5c7f0f(0x2c3,0x377,_0xfd0424._0x1c8807,0x368)](_0x407f63),_0x5990df['push']({'type':_0x5c7f0f(0x2a4,0x300,_0xfd0424._0x5c27c1,0x365),'index':0x0,'text':_0x407f63}));for(const _0x447e3c of _0x12c09c?.['tool_calls']??[]){const _0x2c8bbb=_0x447e3c[_0x5e0a03(-_0xfd0424._0x3fc1be,-_0xfd0424._0x435fd8,-0x9b,-0x161)]??0x0;let _0x5efb3b=this[_0x5e0a03(0x27,0xb,-_0xfd0424._0x8b6346,-_0xfd0424._0x54c149)]['get'](_0x2c8bbb);!_0x5efb3b&&(_0x5efb3b={'id':_0x447e3c['id']??_0x5e0a03(_0xfd0424._0x13f258,-0x26,-_0xfd0424._0x7241fb,-0x1)+_0x2c8bbb,'type':'function','function':{'name':_0x447e3c[_0x5e0a03(-_0xfd0424._0x121c4a,-_0xfd0424._0xa20fe6,-_0xfd0424._0x1b1134,-0x123)]?.[_0x5c7f0f(_0xfd0424._0x4123b4,0x2b0,_0xfd0424._0x52d9bd,_0xfd0424._0x16bd04)]??'','arguments':''}},this[_0x5c7f0f(_0xfd0424._0x271bac,0x411,_0xfd0424._0xfebb80,0x4cb)][_0x5c7f0f(_0xfd0424._0x53d392,0x3d3,0x35b,0x3f4)](_0x2c8bbb,_0x5efb3b),this[_0x5c7f0f(_0xfd0424._0x456f96,_0xfd0424._0x51ba0b,0x3b5,_0xfd0424._0x2aca35)][_0x5e0a03(-0x145,-_0xfd0424._0x9eedc2,-0xd7,-0x7e)](_0x5efb3b));_0x447e3c['id']&&(_0x5efb3b['id']=_0x447e3c['id']);_0x447e3c[_0x5e0a03(-_0xfd0424._0x354bf0,-0x155,-0x181,-_0xfd0424._0x54b6f4)]?.['name']&&(_0x5efb3b[_0x5c7f0f(_0xfd0424._0x3eab29,0x2cd,_0xfd0424._0x3d120c,_0xfd0424._0x2c0d9f)]['name']=_0x447e3c['function']['name']);!this[_0x5c7f0f(_0xfd0424._0x39c3fa,_0xfd0424._0x25f592,0x33a,0x349)][_0x5c7f0f(_0xfd0424._0xd82281,0x3a9,0x3fd,0x33b)](_0x2c8bbb)&&_0x5efb3b[_0x5e0a03(-0x17c,-_0xfd0424._0x2cc985,-_0xfd0424._0x4b5a92,-0x15d)][_0x5c7f0f(_0xfd0424._0x5be8fa,0x2b0,_0xfd0424._0x1fc883,_0xfd0424._0x41d221)][_0x5e0a03(-_0xfd0424._0xd06250,-0x95,-0x149,-_0xfd0424._0x16feea)]()['length']>0x0&&(_0x5990df[_0x5e0a03(-_0xfd0424._0x516912,-0x46,-0xd7,-0xac)]({'type':_0x5c7f0f(_0xfd0424._0x1bcdbf,_0xfd0424._0x3930ae,0x3fc,_0xfd0424._0x5a23df),'id':_0x5efb3b['id'],'index':_0x2c8bbb,'name':_0x5efb3b['function'][_0x5c7f0f(0x225,_0xfd0424._0x5bf0ca,_0xfd0424._0x2868dc,0x2a6)]}),this[_0x5e0a03(-_0xfd0424._0x286411,-0x70,-_0xfd0424._0x280748,-_0xfd0424._0xee2514)][_0x5e0a03(-_0xfd0424._0x3dddea,-0x243,-_0xfd0424._0x29b966,-0x1db)](_0x2c8bbb));const _0xe3fa18=_0x447e3c['function']?.[_0x5e0a03(-0x1f5,-0x1e9,-_0xfd0424._0x261ca2,-_0xfd0424._0x2a2eab)]??'';_0xe3fa18[_0x5e0a03(-0xb3,-0x18d,-_0xfd0424._0x49c338,-0xe2)]>0x0&&(_0x5efb3b[_0x5c7f0f(0x373,0x2cd,_0xfd0424._0x984694,_0xfd0424._0xd1e54c)][_0x5c7f0f(0x257,_0xfd0424._0x897a6d,_0xfd0424._0x46732c,_0xfd0424._0x2d2fda)]+=_0xe3fa18,_0x5990df['push']({'type':_0x5e0a03(-_0xfd0424._0xaa9422,-0xc7,-0x109,-_0xfd0424._0x1aa769),'id':_0x5efb3b['id'],'index':_0x2c8bbb,'inputDelta':_0xe3fa18}));}_0x4d8129['finish_reason']==='tool_calls'&&(this[_0x5c7f0f(_0xfd0424._0x37743a,0x2bd,_0xfd0424._0x4c5fb1,0x380)]=_0x5c7f0f(_0xfd0424._0x1627ed,_0xfd0424._0xf4928,0x297,_0xfd0424._0x231472));}return _0x5990df;}},OpenAiResponsesStreamParser=class{['callIdToOutputIndex']=new Map();[_0x38c793(0x3ff,0x3d5,0x456,0x40d)];[_0x2b6123(0x32e,0x234,0x28d,0x32f)]=new Map();[_0x2b6123(0x35c,0x388,0x2e5,0x230)]=new Map();[_0x38c793(0x3bd,0x318,0x394,0x426)]=new Map();['request'];[_0x2b6123(0x38e,0x3aa,0x3a9,0x3af)]=new Map();[_0x38c793(0x367,0x2fa,0x3a5,0x3ac)]=new Map();constructor(_0x21cd5e){this['request']=_0x21cd5e;}[_0x2b6123(0x2c7,0x34d,0x29c,0x284)](_0x437d43){const _0x454abb={_0x5124af:0x49e,_0x304721:0x54a,_0x425e2d:0x658,_0x2612ad:0x5da,_0x2b2902:0x648,_0x44bb3f:0xe3,_0x3f39f8:0x9a,_0x199024:0xbd,_0x2d0e82:0xd1,_0x4e69d6:0x26,_0x4d7437:0x1d9,_0x287685:0x18f,_0x1e4a81:0x5bf,_0x4658f2:0x48b,_0x10b9a0:0x14,_0x25325e:0x11c,_0x548299:0x3d,_0x5ac0e3:0x2e,_0x5ae575:0x66,_0x2f5dc8:0x640,_0xb773b:0x600,_0x1ab550:0x5db,_0x233374:0x699},_0x109c64={_0x26373e:0x231,_0x342e66:0x13f},_0x26f618={_0x126d99:0x38},_0x2a931b=_0x437d43[_0x2d332c(0x4fe,_0x454abb._0x5124af,_0x454abb._0x304721,0x593)]('\x0a'),_0x73c4f4=_0x2a931b[_0x2d332c(0x541,_0x454abb._0x425e2d,_0x454abb._0x2612ad,_0x454abb._0x2b2902)](_0x43d493=>_0x43d493[_0x26560c(0x176,0xbf,0xf7,0x121)](_0x26560c(0xd8,0x158,0x1a3,0x10a)))?.[_0x26560c(0x48,0x9e,_0x454abb._0x44bb3f,_0x454abb._0x3f39f8)](0x6)[_0x26560c(_0x454abb._0x199024,0x71,_0x454abb._0x2d0e82,_0x454abb._0x4e69d6)]();function _0x2d332c(_0x1e738e,_0x5962f5,_0x2e6b8f,_0x46c880){return _0x38c793(_0x1e738e,_0x5962f5-_0x26f618._0x126d99,_0x2e6b8f-0x10d,_0x46c880-0x114);}function _0x26560c(_0x43e87a,_0x2b6bd1,_0x2be8d7,_0x5c6fb0){return _0x2b6123(_0x43e87a,_0x2b6bd1-0x1b1,_0x2b6bd1- -_0x109c64._0x26373e,_0x5c6fb0-_0x109c64._0x342e66);}const _0xa3a3df=_0x2a931b['filter'](_0x397f1c=>_0x397f1c['startsWith'](_0x2d332c(0x3ff,0x4d2,0x4b7,0x424)))[_0x26560c(_0x454abb._0x4d7437,0x151,0x17d,_0x454abb._0x287685)](_0xc1621e=>_0xc1621e[_0x26560c(0x94,0x9e,-0x29,0x18)](0x5)['trimStart']())[_0x2d332c(_0x454abb._0x1e4a81,_0x454abb._0x4658f2,0x511,0x46b)]('\x0a')[_0x26560c(_0x454abb._0x10b9a0,0x71,_0x454abb._0x25325e,0x12d)]();if(_0xa3a3df[_0x26560c(_0x454abb._0x548299,0x6a,0x6f,-_0x454abb._0x5ac0e3)]===0x0||_0xa3a3df===_0x26560c(0x35,_0x454abb._0x5ae575,0x67,0x27))return[];const _0x2c4148=JSON[_0x26560c(0x150,0xc6,0xc9,0xbb)](_0xa3a3df);return this[_0x2d332c(_0x454abb._0x2f5dc8,_0x454abb._0xb773b,_0x454abb._0x1ab550,_0x454abb._0x233374)](_0x73c4f4??String(_0x2c4148['type']??''),_0x2c4148);}['consumeWebSocketEvent'](_0x47fa0d){const _0x442615={_0x1dac96:0x595,_0x197b7a:0x52c},_0x4d626c={_0x3267f9:0xfc,_0x2fccea:0x5e};function _0x4af727(_0x1bca0b,_0x39edc4,_0x104186,_0x28abae){return _0x38c793(_0x39edc4,_0x39edc4-_0x4d626c._0x3267f9,_0x28abae-_0x4d626c._0x2fccea,_0x28abae-0x34);}return this[_0x4af727(0x5f2,_0x442615._0x1dac96,0x598,_0x442615._0x197b7a)](String(_0x47fa0d['type']??''),_0x47fa0d);}[_0x2b6123(0x2cc,0x2dc,0x38e,0x2d0)](){const _0x2a1cbf={_0x5e4f8f:0x227,_0x3603d7:0x297,_0x1f22a1:0x364,_0x16f0a5:0x389,_0x4c354c:0x213,_0x28fc51:0x3fa,_0x1abb24:0x270,_0x33c450:0x20f,_0x152015:0x370,_0x3f4473:0x1d1},_0x3aacfe={_0x272209:0x6d,_0x4cbb74:0x22f},_0x11f986={_0x31a16a:0x53};function _0x5aea52(_0x131282,_0x5467b1,_0xf4dafa,_0x761026){return _0x38c793(_0xf4dafa,_0x5467b1-_0x11f986._0x31a16a,_0x761026- -0x5c,_0x761026-0xdd);}function _0xc58daf(_0x28ddc1,_0x49da99,_0x1ac5c8,_0x15578c){return _0x38c793(_0x1ac5c8,_0x49da99-_0x3aacfe._0x272209,_0x49da99- -_0x3aacfe._0x4cbb74,_0x15578c-0x14d);}const _0x587edd=this[_0xc58daf(0x1ce,_0x2a1cbf._0x5e4f8f,_0x2a1cbf._0x3603d7,0x298)]??{'id':_0x5aea52(0x32d,_0x2a1cbf._0x1f22a1,0x2f3,_0x2a1cbf._0x16f0a5)+Date[_0xc58daf(0x16d,0x1f5,0x177,_0x2a1cbf._0x4c354c)](),'object':_0x5aea52(_0x2a1cbf._0x28fc51,0x4d3,0x4a2,0x41b),'status':_0xc58daf(_0x2a1cbf._0x1abb24,0x1aa,_0x2a1cbf._0x33c450,0x252),'output':this[_0x5aea52(0x385,0x414,_0x2a1cbf._0x152015,0x427)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x587edd,this[_0xc58daf(0x105,0x1ae,_0x2a1cbf._0x3f4473,0x1dd)]);}['isDone'](){const _0x320c2f={_0x49831d:0x120,_0x298e92:0x2b,_0x2aef31:0xe9},_0x22b041={_0x10aa82:0x5b};function _0x3c11c4(_0x400144,_0x38955f,_0x2d920f,_0x31b15d){return _0x38c793(_0x2d920f,_0x38955f-_0x22b041._0x10aa82,_0x31b15d- -0x53f,_0x31b15d-0x97);}return this[_0x3c11c4(-_0x320c2f._0x49831d,-_0x320c2f._0x298e92,-0x4a,-_0x320c2f._0x2aef31)]!==void 0x0;}[_0x38c793(0x540,0x450,0x4ce,0x46c)](_0x1da4e7,_0x554399){const _0x4864c3={_0x8298b6:0x18e,_0x106429:0x15f,_0x4ed2db:0x18b,_0x181a04:0x151,_0x3e448a:0x249,_0x2194e1:0x232,_0x5c0d97:0x21d,_0x11250a:0x5fa,_0x44d356:0x5d5,_0x2bcf0f:0x53f,_0x776a2b:0x521,_0x5168dc:0x1b9,_0x5f55de:0x145,_0x3b5fb5:0x1f2,_0x4e0a12:0x558,_0x4f1ba5:0x277,_0x1fd7fc:0x27b,_0x319b20:0x1b6,_0x21f527:0x4e1,_0x3a0303:0x18e,_0x3d0c27:0x254,_0x5cadd6:0x15e,_0x75ceed:0x105,_0x33f5f6:0x3e4,_0x1ac284:0x462,_0x3fd12c:0x511,_0x38d86e:0x503,_0x4300a8:0x595,_0x4b1abb:0x135,_0x43b157:0x141,_0x5dcabf:0x55a,_0x5077bf:0x4f6,_0x1ef33d:0x50b,_0x1f0af4:0x4d1,_0x4bb2ae:0xd8,_0x35e988:0x5b4,_0x58905d:0x4a3,_0x48f657:0x4b6,_0x517acf:0x57f,_0x6ca76c:0x3ed,_0x38efb8:0x4ae,_0x252008:0x424,_0x5eb052:0x4b7,_0x1e253d:0x1e3,_0x36d1c6:0x1b5,_0x3deaaa:0x403,_0x1f5540:0x55c,_0x2b5ad9:0x258,_0x4423e1:0x282,_0x100ea0:0xed,_0x5262ef:0x233,_0x2ffb9d:0x2a5,_0x39fcc3:0x17d,_0x65e200:0x1a2,_0x439d51:0x218,_0x56c7d1:0x170,_0x40fa58:0x158,_0x42c0a0:0xce,_0x4b116c:0xbe,_0x476f01:0x1ca,_0x23883e:0x1b1,_0x439c5d:0x26e,_0x4eb562:0x58c,_0x28e056:0x5bb,_0xb3ff25:0x166,_0x444c26:0xbd,_0x20c1fb:0x1a2,_0x57ff51:0x27b,_0x250d9c:0x327,_0x196479:0x256,_0x3ad1c4:0x1ac,_0x395943:0x129,_0x490d82:0x5a3,_0x36fe12:0x50f,_0x5f42c8:0x466,_0x5afecc:0x210,_0x5e4636:0x1df,_0x18a514:0x4c7,_0x3f0c2d:0x4fd,_0x315a01:0x18b,_0x2a1024:0x108,_0x1bc63d:0x177,_0x1a245d:0x16a,_0x5074ca:0x626,_0x495c48:0x5d5,_0x7d1795:0x564,_0x6b99dd:0x67e,_0x5d08a4:0x1d6,_0x549877:0x264,_0x3ac01b:0x5fd,_0x2e9842:0x603,_0x77da7c:0x42b,_0x18eb26:0x4d3,_0x5bea31:0x54f,_0x5e5c10:0x175,_0x286b2b:0x164,_0x30e552:0xff,_0x5d9edc:0x1a4,_0x57d42d:0x201,_0x167dba:0x521,_0x2701db:0x48e,_0x7e19aa:0x4e7,_0x474520:0x4c8,_0x59d65d:0x578,_0x11007e:0xd1,_0x1cd8ab:0x203,_0x342e3c:0x142,_0x1f6d53:0x131,_0x37cc2a:0x17d,_0x1be275:0xeb,_0x8fdc0c:0x201,_0x9fb219:0x5cd,_0x21f93c:0x559,_0x417630:0x46a,_0x556991:0x472,_0x5b23b8:0x1d4,_0xf6e0b3:0x109,_0x3eac7e:0x18b,_0x47314d:0x111,_0x4478db:0x15d,_0x1f9308:0x58c,_0x37c979:0x4c7,_0x2a21e3:0x50e,_0x235345:0x4b4,_0x1b0de2:0x58a,_0x4e8f99:0x3de,_0x50201e:0x26d,_0x56cf64:0x1b3,_0x372064:0x225,_0x4d1921:0x151,_0x195346:0x95,_0x578cc1:0x178,_0x2b5f8e:0x287,_0x372b07:0x17c,_0x598651:0x4c7,_0x2970ad:0x4cf,_0x266754:0x56f,_0x42f6fb:0x184,_0x53a29d:0x15e,_0x52d4fd:0x475,_0x20e763:0x12c,_0x30608c:0x16f,_0x4176fe:0x546,_0x454e0e:0x48a,_0x3a7094:0x3c7,_0x4df4a8:0x3ca,_0x116a8f:0x116,_0x50cdc0:0x119,_0x248d53:0x544,_0x38808c:0x5ad,_0x1d9df8:0x615,_0x588c06:0x500,_0x810085:0x49f,_0x4fc6b4:0x3e5,_0x1c74d0:0x1d6,_0x587d3e:0x1cd,_0x3f0cb1:0x169,_0x4ee902:0x13e,_0x2dbcde:0x152,_0xa538f8:0x1a6,_0x1a5bc0:0x427,_0x74cf0f:0x477,_0x2deb10:0x3db,_0x370d5e:0x128,_0x572dfe:0x215,_0x413e58:0x580,_0x5440a6:0x255,_0x3b67fc:0x21d,_0x26284e:0x270,_0x275d07:0x263,_0x3af64b:0x1ce,_0x3f8b88:0x1dc,_0x272abc:0x556,_0x1240c2:0x5db,_0x2f3008:0x4e3,_0x51a215:0x3c8,_0x5620f8:0x58a,_0x460ccb:0x638,_0x3f112f:0x1a5,_0x5addb4:0x148,_0x33bae3:0xfc,_0x2a171e:0x55e,_0x227fdd:0x4b1,_0x130506:0x160,_0x18f142:0x4e2,_0x4c6510:0x529,_0x50a841:0x519,_0x2085c4:0x52c,_0x36c2eb:0x18b,_0x386109:0x251,_0x583d63:0x156,_0x3b67ae:0xcb,_0x2be03b:0x161,_0x4e29bd:0x120,_0x3c6220:0x232,_0xac05a1:0x104,_0x5bb2f4:0x101,_0x517e06:0x51a,_0x185d19:0x3fb,_0x2a5da0:0x255,_0x3413c7:0x5b4,_0x400b71:0x5d7,_0x35b290:0x197,_0x5826a8:0x1f3,_0x23447e:0x22d,_0x11b421:0x1d1,_0x2d2a82:0x50f,_0x18f953:0x509,_0x1c7ff6:0x1c2,_0x302c23:0x189,_0x2bd10c:0x572,_0x4e5f78:0x1f0,_0x17248b:0x1e6,_0x2d74c7:0x2a8,_0x36ea10:0x567,_0x3ab7a9:0x4c7,_0x58f5ac:0x49e,_0x25fd90:0x426,_0x5a2cf6:0x52b,_0x4f95ab:0x293,_0x515d63:0x214,_0x208abb:0x5a3,_0x3036bf:0x1bb,_0x23474c:0xa6,_0x1c2eb7:0x1a7,_0x51c7bc:0x295,_0x1c9d93:0x1c1,_0x43522b:0x544,_0x43f8ae:0x11a,_0x401d1b:0x616,_0x4b369f:0x4ba,_0x49091c:0x4dc,_0x202f91:0x581,_0x14eb44:0x5c3,_0x5eba7c:0x4c4,_0x257805:0x534,_0x753287:0x529,_0x3d9154:0x4bf,_0x35b7a2:0x555,_0x3085de:0x461,_0x422b08:0xe5,_0x850de6:0x1b6,_0x1e7e35:0x4ce,_0x473d3b:0x52e,_0x220fe0:0x1a8,_0x5e8829:0x211,_0x3f54aa:0x4f8,_0x486619:0x1a6,_0x4a3382:0x16b,_0x9d06c4:0x51a,_0x10d616:0x1b8,_0x18a88b:0x507,_0x2f72bc:0x539,_0x5445da:0x1dc,_0x1698be:0xdd,_0x311197:0x172,_0x41d0d0:0x5b5,_0x39c5f3:0x4c4,_0xd247fe:0x508,_0x153990:0x195,_0x2bd826:0x4f2,_0x4e25af:0x56c,_0x4438f9:0x5d2,_0x175a87:0x259,_0x2b90b7:0x3e9,_0x3217e7:0x448,_0xc1db98:0x4ba,_0x4bfa64:0x60e,_0x3a3ba7:0x5b4,_0xc20d23:0x53a,_0x341706:0x4fd,_0x1535f5:0x486,_0x59c0d7:0x523,_0x24540d:0x426,_0x338797:0x552,_0x318d8b:0x5fd,_0x1c403f:0x283,_0xa0c143:0x259,_0x475f68:0x30e,_0x279a15:0x5f4,_0x2aa031:0x586,_0x2f961c:0x52f,_0xf37147:0x110,_0x40ed12:0x150,_0x2cf92a:0x29b,_0x42d9e6:0x5f6,_0x340cf0:0x553,_0x119142:0x46b,_0x4cf9fa:0x60b,_0x235fe0:0x65a,_0x5a0e4b:0x602,_0x551e04:0x59a,_0x5be1ff:0x228,_0x461d53:0x1fe,_0x12ab98:0x4e8,_0x5d171e:0x4cb},_0x456949={_0x1cf73c:0xa0},_0x546804={_0x85df5e:0x111,_0x22e578:0x52};function _0x5057a2(_0x16f623,_0x5b6388,_0x1e4e3e,_0x4940fc){return _0x38c793(_0x4940fc,_0x5b6388-_0x546804._0x85df5e,_0x16f623- -0x225,_0x4940fc-_0x546804._0x22e578);}function _0x136a6f(_0x4b52a5,_0xb2b6f4,_0x1bc94b,_0x199e4f){return _0x38c793(_0x4b52a5,_0xb2b6f4-_0x456949._0x1cf73c,_0xb2b6f4-0x114,_0x199e4f-0xc0);}switch(_0x1da4e7){case'response.output_text.delta':{const _0x17397b=typeof _0x554399[_0x5057a2(_0x4864c3._0x8298b6,_0x4864c3._0x106429,0x1ef,0x19d)]===_0x5057a2(_0x4864c3._0x4ed2db,_0x4864c3._0x181a04,0x140,_0x4864c3._0x3e448a)?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x2194e1,0xde,0xd5)]:0x0,_0x5db512=typeof _0x554399['delta']===_0x5057a2(0x1d6,0x120,_0x4864c3._0x5c0d97,0x26f)?_0x554399[_0x136a6f(_0x4864c3._0x11250a,_0x4864c3._0x44d356,_0x4864c3._0x2bcf0f,_0x4864c3._0x776a2b)]:'';if(_0x5db512[_0x5057a2(0x1a6,_0x4864c3._0x5168dc,0x14c,_0x4864c3._0x5f55de)]>0x0){const _0xf15d9e=this[_0x5057a2(0x2b4,0x279,_0x4864c3._0x3b5fb5,0x234)]['get'](_0x17397b)??[];return _0xf15d9e[_0x136a6f(0x519,_0x4864c3._0x4e0a12,0x5f9,0x4ec)](_0x5db512),this[_0x5057a2(0x2b4,0x1f5,0x2b6,_0x4864c3._0x4f1ba5)][_0x5057a2(_0x4864c3._0x1fd7fc,_0x4864c3._0x319b20,0x1db,0x228)](_0x17397b,_0xf15d9e),[{'type':_0x136a6f(0x49e,_0x4864c3._0x21f527,0x446,0x579),'index':_0x17397b,'text':_0x5db512}];}break;}case _0x136a6f(0x4f1,0x549,0x51f,0x4ab):{const _0x2e87cb=typeof _0x554399[_0x5057a2(_0x4864c3._0x3a0303,_0x4864c3._0x3d0c27,0x1cf,_0x4864c3._0x5cadd6)]==='number'?_0x554399[_0x5057a2(_0x4864c3._0x8298b6,0x16f,_0x4864c3._0x75ceed,0x220)]:void 0x0,_0x143730=_0x554399[_0x136a6f(_0x4864c3._0x33f5f6,0x4af,_0x4864c3._0x1ac284,_0x4864c3._0x3fd12c)];if(_0x143730?.[_0x136a6f(0x51b,_0x4864c3._0x38d86e,_0x4864c3._0x4300a8,0x5ca)]===_0x5057a2(_0x4864c3._0x4b1abb,_0x4864c3._0x43b157,0x1ed,0x17c)&&_0x143730[_0x136a6f(0x3ef,0x4b6,_0x4864c3._0x5dcabf,_0x4864c3._0x5077bf)]&&_0x143730[_0x136a6f(0x4fe,0x491,_0x4864c3._0x1ef33d,_0x4864c3._0x1f0af4)])return this[_0x5057a2(0x180,_0x4864c3._0x4bb2ae,0x149,0x16d)][_0x136a6f(0x642,_0x4864c3._0x35e988,0x63e,0x551)](_0x143730['call_id'],{'id':_0x143730[_0x136a6f(_0x4864c3._0x58905d,_0x4864c3._0x48f657,_0x4864c3._0x517acf,0x489)],'type':_0x136a6f(_0x4864c3._0x6ca76c,_0x4864c3._0x38efb8,0x542,_0x4864c3._0x252008),'function':{'name':_0x143730[_0x136a6f(_0x4864c3._0x5eb052,0x491,0x4e2,0x3d9)],'arguments':''}}),_0x2e87cb!==void 0x0&&(this[_0x5057a2(0x198,0x166,_0x4864c3._0x1e253d,_0x4864c3._0x36d1c6)]['set'](_0x2e87cb,_0x143730[_0x136a6f(_0x4864c3._0x3deaaa,0x4b6,_0x4864c3._0x1f5540,0x426)]),this['callIdToOutputIndex'][_0x5057a2(0x27b,_0x4864c3._0x2b5ad9,_0x4864c3._0x4423e1,0x1da)](_0x143730[_0x5057a2(0x17d,_0x4864c3._0x100ea0,0x10f,0x221)],_0x2e87cb)),[{'type':_0x5057a2(0x1ed,_0x4864c3._0x5262ef,0x146,_0x4864c3._0x2ffb9d),'id':_0x143730[_0x5057a2(_0x4864c3._0x39fcc3,_0x4864c3._0x65e200,_0x4864c3._0x439d51,_0x4864c3._0x56c7d1)],'index':_0x2e87cb??0x0,'name':_0x143730[_0x5057a2(_0x4864c3._0x40fa58,_0x4864c3._0x42c0a0,_0x4864c3._0x4b116c,0x21f)]}];if(_0x143730?.[_0x5057a2(_0x4864c3._0x476f01,_0x4864c3._0x23883e,0x1df,_0x4864c3._0x439c5d)]===_0x136a6f(_0x4864c3._0x4eb562,0x5ad,_0x4864c3._0x28e056,0x639)&&_0x143730['id']){const _0x1cd229=this[_0x5057a2(_0x4864c3._0xb3ff25,_0x4864c3._0x444c26,_0x4864c3._0x20c1fb,0x1e3)](_0x143730['id'],_0x2e87cb);_0x2e87cb!==void 0x0&&this['outputIndexToReasoningId'][_0x5057a2(_0x4864c3._0x57ff51,_0x4864c3._0x250d9c,_0x4864c3._0x196479,0x2c3)](_0x2e87cb,_0x1cd229['id']);}break;}case _0x5057a2(_0x4864c3._0x3ad1c4,0x106,0x11c,_0x4864c3._0x395943):{const _0x47f477=typeof _0x554399['call_id']===_0x136a6f(_0x4864c3._0x490d82,_0x4864c3._0x36fe12,_0x4864c3._0x5f42c8,0x514)?_0x554399[_0x5057a2(0x17d,_0x4864c3._0x5afecc,0x113,_0x4864c3._0x5e4636)]:typeof _0x554399[_0x136a6f(0x587,_0x4864c3._0x18a514,_0x4864c3._0x3f0c2d,0x4ac)]===_0x5057a2(_0x4864c3._0x315a01,_0x4864c3._0x2a1024,0x23d,0x232)?this['outputIndexToCallId']['get'](_0x554399[_0x5057a2(0x18e,0x204,_0x4864c3._0x1bc63d,_0x4864c3._0x1a245d)]):void 0x0,_0x2bb5d4=typeof _0x554399[_0x136a6f(_0x4864c3._0x5074ca,_0x4864c3._0x495c48,_0x4864c3._0x7d1795,_0x4864c3._0x6b99dd)]===_0x5057a2(_0x4864c3._0x5d08a4,_0x4864c3._0x549877,0x13c,0x25b)?_0x554399[_0x136a6f(0x63f,_0x4864c3._0x495c48,_0x4864c3._0x3ac01b,_0x4864c3._0x2e9842)]:'',_0x89695c=_0x47f477?this[_0x136a6f(0x46d,0x4b9,_0x4864c3._0x77da7c,_0x4864c3._0x18eb26)][_0x136a6f(_0x4864c3._0x5bea31,0x4c8,0x484,0x4eb)](_0x47f477):void 0x0;if(_0x89695c&&_0x2bb5d4['length']>0x0)return _0x89695c[_0x5057a2(_0x4864c3._0x5e5c10,_0x4864c3._0x286b2b,_0x4864c3._0x30e552,_0x4864c3._0x5d9edc)]['arguments']+=_0x2bb5d4,[{'type':_0x5057a2(0x1ed,0x1e7,_0x4864c3._0x57d42d,0x268),'id':_0x89695c['id'],'index':this[_0x136a6f(_0x4864c3._0x167dba,_0x4864c3._0x2701db,0x41c,0x4db)][_0x136a6f(_0x4864c3._0x7e19aa,_0x4864c3._0x474520,_0x4864c3._0x59d65d,0x4f7)](_0x89695c['id'])??(typeof _0x554399[_0x5057a2(_0x4864c3._0x3a0303,_0x4864c3._0x11007e,0x1ef,0x1c6)]===_0x5057a2(0x18b,_0x4864c3._0x1cd8ab,0x130,_0x4864c3._0x395943)?_0x554399[_0x136a6f(0x4e6,_0x4864c3._0x18a514,0x422,0x577)]:0x0),'inputDelta':_0x2bb5d4}];break;}case _0x5057a2(_0x4864c3._0x342e3c,_0x4864c3._0x1f6d53,0xf5,0xbf):{const _0xd8aa84=typeof _0x554399[_0x5057a2(_0x4864c3._0x37cc2a,_0x4864c3._0x1be275,0x1e7,_0x4864c3._0x8fdc0c)]===_0x136a6f(_0x4864c3._0x9fb219,0x50f,0x470,_0x4864c3._0x21f93c)?_0x554399[_0x136a6f(_0x4864c3._0x417630,_0x4864c3._0x48f657,_0x4864c3._0x556991,0x3ed)]:typeof _0x554399[_0x5057a2(_0x4864c3._0x8298b6,_0x4864c3._0x5b23b8,_0x4864c3._0xf6e0b3,0xe9)]===_0x5057a2(_0x4864c3._0x3eac7e,_0x4864c3._0x47314d,_0x4864c3._0x4478db,0x22d)?this['outputIndexToCallId']['get'](_0x554399[_0x136a6f(_0x4864c3._0x1f9308,_0x4864c3._0x37c979,0x54f,_0x4864c3._0x2a21e3)]):void 0x0,_0x457eda=_0xd8aa84?this[_0x5057a2(0x180,0x162,0x216,0x1b0)][_0x136a6f(_0x4864c3._0x235345,0x4c8,_0x4864c3._0x1b0de2,0x4fc)](_0xd8aa84):void 0x0;_0x457eda&&typeof _0x554399[_0x136a6f(0x422,0x48a,0x47e,_0x4864c3._0x4e8f99)]===_0x5057a2(0x1d6,0x183,0x218,_0x4864c3._0x50201e)&&(_0x457eda[_0x5057a2(_0x4864c3._0x5e5c10,0x1b3,_0x4864c3._0x56cf64,_0x4864c3._0x372064)][_0x5057a2(_0x4864c3._0x4d1921,0x111,_0x4864c3._0x195346,_0x4864c3._0x578cc1)]=_0x554399['arguments']);break;}case _0x5057a2(0x2a2,_0x4864c3._0x2b5f8e,0x1e4,0x2cf):{const _0x16ecbf=typeof _0x554399[_0x5057a2(0x18e,0x22f,0x1f5,_0x4864c3._0x372b07)]==='number'?_0x554399[_0x136a6f(0x4ee,_0x4864c3._0x598651,_0x4864c3._0x2970ad,_0x4864c3._0x266754)]:void 0x0,_0x1c6aa5=_0x554399[_0x5057a2(0x176,0x178,_0x4864c3._0x42f6fb,0x195)];if(_0x1c6aa5?.[_0x5057a2(_0x4864c3._0x476f01,0x1b3,0x10a,_0x4864c3._0x53a29d)]===_0x5057a2(0x135,0x12f,0x122,0x10d)){const _0x3d777a=_0x1c6aa5['call_id']??(_0x16ecbf!==void 0x0?this['outputIndexToCallId']['get'](_0x16ecbf):void 0x0),_0xdeea8f=_0x3d777a?this['toolCalls']['get'](_0x3d777a):void 0x0;_0xdeea8f&&typeof _0x1c6aa5[_0x136a6f(0x532,0x48a,_0x4864c3._0x52d4fd,_0x4864c3._0x21f527)]==='string'&&(_0xdeea8f['function'][_0x5057a2(_0x4864c3._0x181a04,_0x4864c3._0x20e763,0x1f5,_0x4864c3._0x30608c)]=_0x1c6aa5[_0x136a6f(_0x4864c3._0x4176fe,_0x4864c3._0x454e0e,_0x4864c3._0x3a7094,_0x4864c3._0x4df4a8)]);break;}if(_0x1c6aa5?.[_0x5057a2(0x1ca,_0x4864c3._0x116a8f,_0x4864c3._0x50cdc0,0x214)]===_0x136a6f(_0x4864c3._0x248d53,_0x4864c3._0x38808c,0x581,_0x4864c3._0x1d9df8)&&_0x1c6aa5['id']){const _0x59c162=this[_0x136a6f(_0x4864c3._0x588c06,_0x4864c3._0x810085,0x4ac,_0x4864c3._0x4fc6b4)](_0x1c6aa5['id'],_0x16ecbf);typeof _0x1c6aa5['encrypted_content']===_0x5057a2(_0x4864c3._0x1c74d0,0x24d,0x201,_0x4864c3._0x587d3e)&&(_0x59c162['encryptedContent']=_0x1c6aa5[_0x5057a2(0x17c,0x17a,0x1ac,_0x4864c3._0x3f0cb1)]);if(Array['isArray'](_0x1c6aa5[_0x5057a2(_0x4864c3._0x4ee902,0x192,0x9e,_0x4864c3._0x2dbcde)]))for(let _0x39cc99=0x0;_0x39cc99<_0x1c6aa5[_0x5057a2(0x13e,_0x4864c3._0x30e552,0xba,_0x4864c3._0x3eac7e)][_0x5057a2(_0x4864c3._0xa538f8,0x25b,0x21f,0x1ff)];_0x39cc99+=0x1){const _0xf245c=_0x1c6aa5[_0x136a6f(_0x4864c3._0x1a5bc0,_0x4864c3._0x74cf0f,0x424,_0x4864c3._0x2deb10)][_0x39cc99];_0xf245c[_0x5057a2(_0x4864c3._0x476f01,0x1c1,_0x4864c3._0x370d5e,_0x4864c3._0x572dfe)]===_0x136a6f(0x540,0x5b6,_0x4864c3._0x413e58,0x5f5)&&typeof _0xf245c['text']===_0x5057a2(_0x4864c3._0x1c74d0,0x139,0x123,0x1f0)&&_0x59c162[_0x5057a2(_0x4864c3._0x5440a6,_0x4864c3._0x3b67fc,_0x4864c3._0x26284e,0x293)]['set'](_0x39cc99,_0xf245c[_0x5057a2(_0x4864c3._0x3b67fc,_0x4864c3._0x275d07,_0x4864c3._0x3af64b,_0x4864c3._0x3f8b88)]);}typeof _0x1c6aa5['text']===_0x136a6f(0x5da,0x50f,0x48f,0x5ab)&&_0x59c162[_0x136a6f(0x547,0x50c,0x449,0x582)][_0x5057a2(0x27b,0x212,0x337,0x2a5)](0x0,_0x1c6aa5[_0x136a6f(0x5ee,_0x4864c3._0x272abc,_0x4864c3._0x1240c2,0x51a)]);}break;}case _0x136a6f(0x454,0x478,_0x4864c3._0x2f3008,_0x4864c3._0x51a215):{const _0x50f27e=typeof _0x554399[_0x136a6f(0x5eb,0x5d5,_0x4864c3._0x5620f8,0x551)]==='string'?_0x554399[_0x136a6f(0x60e,0x5d5,0x639,_0x4864c3._0x460ccb)]:'',_0x5104f3=typeof _0x554399[_0x5057a2(0x181,_0x4864c3._0x3f112f,_0x4864c3._0x5addb4,_0x4864c3._0x33bae3)]==='string'?_0x554399['item_id']:typeof _0x554399[_0x136a6f(_0x4864c3._0x2a171e,0x4c7,_0x4864c3._0x227fdd,0x4ea)]===_0x5057a2(0x18b,_0x4864c3._0x587d3e,0x20e,_0x4864c3._0x130506)?this[_0x136a6f(_0x4864c3._0x18f142,_0x4864c3._0x4c6510,_0x4864c3._0x18f142,_0x4864c3._0x50a841)][_0x5057a2(0x18f,0x1ad,0x1a2,0x120)](_0x554399['output_index']):void 0x0,_0x37a4ea=typeof _0x554399[_0x136a6f(0x518,0x4c7,_0x4864c3._0x2085c4,0x475)]===_0x5057a2(_0x4864c3._0x36c2eb,_0x4864c3._0x386109,_0x4864c3._0x583d63,0x142)?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x3b67ae,_0x4864c3._0x2be03b,0x114)]:0x0,_0x12861f=typeof _0x554399['summary_index']===_0x5057a2(0x18b,0xca,_0x4864c3._0x4e29bd,_0x4864c3._0x3c6220)?_0x554399['summary_index']:0x0;if(_0x5104f3&&_0x50f27e[_0x5057a2(_0x4864c3._0xa538f8,_0x4864c3._0xac05a1,_0x4864c3._0x286b2b,_0x4864c3._0x5bb2f4)]>0x0){const _0x59681b=this[_0x136a6f(_0x4864c3._0x517e06,_0x4864c3._0x810085,_0x4864c3._0x185d19,0x55f)](_0x5104f3,_0x37a4ea);_0x59681b[_0x5057a2(_0x4864c3._0x2a5da0,0x2d7,0x282,0x2d5)][_0x136a6f(0x5f1,_0x4864c3._0x3413c7,_0x4864c3._0x400b71,0x544)](_0x12861f,''+(_0x59681b[_0x5057a2(0x255,_0x4864c3._0x35b290,0x252,_0x4864c3._0x5826a8)][_0x5057a2(0x18f,0x1e6,_0x4864c3._0x23447e,0xd8)](_0x12861f)??'')+_0x50f27e);if(isUserVisibleReasoning(this['request']))return[{'type':'openai_reasoning_summary_delta','delta':_0x50f27e,'itemId':_0x5104f3,'outputIndex':_0x37a4ea,'summaryIndex':_0x12861f}];}break;}case _0x5057a2(_0x4864c3._0x11b421,0x181,0x255,0x140):{const _0x4282b7=typeof _0x554399['item_id']===_0x136a6f(0x44a,_0x4864c3._0x2d2a82,0x499,0x495)?_0x554399[_0x136a6f(0x4ef,0x4ba,0x578,_0x4864c3._0x18f953)]:typeof _0x554399[_0x5057a2(0x18e,_0x4864c3._0x1c7ff6,_0x4864c3._0x302c23,0xda)]===_0x136a6f(0x4cd,0x4c4,_0x4864c3._0x2bd10c,0x53b)?this[_0x5057a2(_0x4864c3._0x4e5f78,0x151,_0x4864c3._0x17248b,_0x4864c3._0x2d74c7)][_0x5057a2(0x18f,0x1ea,0x141,_0x4864c3._0x342e3c)](_0x554399['output_index']):void 0x0,_0x1219a9=typeof _0x554399[_0x136a6f(_0x4864c3._0x36ea10,_0x4864c3._0x3ab7a9,_0x4864c3._0x58f5ac,_0x4864c3._0x25fd90)]==='number'?_0x554399['output_index']:0x0,_0x1e93e5=typeof _0x554399[_0x136a6f(0x65e,0x5d4,_0x4864c3._0x5a2cf6,0x670)]===_0x5057a2(0x18b,0xd2,0x213,0x255)?_0x554399[_0x5057a2(0x29b,_0x4864c3._0x4f95ab,_0x4864c3._0x515d63,0x2c6)]:0x0,_0x331cd7=typeof _0x554399[_0x136a6f(_0x4864c3._0x208abb,0x556,0x4b1,0x50c)]==='string'?_0x554399[_0x5057a2(0x21d,0x17d,_0x4864c3._0x3036bf,0x1cf)]:'';_0x4282b7&&this[_0x5057a2(0x166,_0x4864c3._0x23474c,_0x4864c3._0x1c2eb7,0xc1)](_0x4282b7,_0x1219a9)[_0x5057a2(0x255,_0x4864c3._0x51c7bc,0x26c,_0x4864c3._0x1c9d93)][_0x136a6f(0x523,_0x4864c3._0x35e988,_0x4864c3._0x43522b,0x4ea)](_0x1e93e5,_0x331cd7);break;}case _0x5057a2(0x1e3,_0x4864c3._0x43f8ae,0x169,0x27e):{const _0x18da21=typeof _0x554399['delta']==='string'?_0x554399[_0x136a6f(0x5e7,_0x4864c3._0x495c48,0x52a,_0x4864c3._0x401d1b)]:'',_0x1ee1cf=typeof _0x554399[_0x136a6f(0x54a,_0x4864c3._0x4b369f,0x45f,_0x4864c3._0x49091c)]===_0x136a6f(_0x4864c3._0x202f91,_0x4864c3._0x2d2a82,0x50f,_0x4864c3._0x14eb44)?_0x554399['item_id']:typeof _0x554399['output_index']===_0x136a6f(0x571,_0x4864c3._0x5eba7c,_0x4864c3._0x257805,0x4d2)?this[_0x136a6f(0x5a6,_0x4864c3._0x753287,0x4c7,0x465)][_0x136a6f(_0x4864c3._0x3d9154,0x4c8,_0x4864c3._0x35b7a2,0x400)](_0x554399[_0x136a6f(0x458,0x4c7,_0x4864c3._0x3085de,0x519)]):void 0x0,_0x42c92e=typeof _0x554399['output_index']==='number'?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x422b08,0x1ce,_0x4864c3._0x850de6)]:0x0,_0x410d9c=typeof _0x554399[_0x136a6f(_0x4864c3._0x1e7e35,0x56c,0x59f,_0x4864c3._0x473d3b)]===_0x5057a2(0x18b,_0x4864c3._0x220fe0,_0x4864c3._0x5e8829,0x161)?_0x554399[_0x136a6f(_0x4864c3._0x2bcf0f,0x56c,0x52d,_0x4864c3._0x3f54aa)]:0x0;if(_0x1ee1cf&&_0x18da21[_0x5057a2(_0x4864c3._0x486619,0x252,0x25c,0x17f)]>0x0){const _0x29e04c=this[_0x5057a2(0x166,0x10a,0x167,0x14e)](_0x1ee1cf,_0x42c92e);_0x29e04c[_0x5057a2(0x1d3,0x210,0x25d,_0x4864c3._0x4a3382)][_0x136a6f(0x4f4,_0x4864c3._0x3413c7,0x505,_0x4864c3._0x9d06c4)](_0x410d9c,''+(_0x29e04c[_0x136a6f(0x56c,0x50c,0x49b,0x5ac)]['get'](_0x410d9c)??'')+_0x18da21);if(isUserVisibleReasoning(this[_0x5057a2(_0x4864c3._0x10d616,_0x4864c3._0x3e448a,0x13c,0x1c9)]))return[{'type':_0x136a6f(0x464,_0x4864c3._0x18a88b,0x509,_0x4864c3._0x2f72bc),'contentIndex':_0x410d9c,'delta':_0x18da21,'itemId':_0x1ee1cf,'outputIndex':_0x42c92e}];}break;}case'response.reasoning_text.done':{const _0x555296=typeof _0x554399[_0x5057a2(0x181,_0x4864c3._0x5445da,0x186,_0x4864c3._0x1698be)]==='string'?_0x554399['item_id']:typeof _0x554399['output_index']===_0x5057a2(0x18b,0x1a2,0x1b2,_0x4864c3._0x311197)?this[_0x136a6f(0x59d,0x529,_0x4864c3._0x41d0d0,0x5cd)][_0x136a6f(_0x4864c3._0x39c5f3,0x4c8,0x4ea,_0x4864c3._0xd247fe)](_0x554399['output_index']):void 0x0,_0x54e4d8=typeof _0x554399[_0x5057a2(0x18e,0xd0,0xfc,0x133)]==='number'?_0x554399[_0x136a6f(0x4fa,0x4c7,_0x4864c3._0x3f0c2d,0x444)]:0x0,_0x50c23c=typeof _0x554399[_0x5057a2(0x233,_0x4864c3._0x153990,0x291,0x1db)]==='number'?_0x554399[_0x136a6f(_0x4864c3._0x2bd826,_0x4864c3._0x4e25af,0x603,_0x4864c3._0x4438f9)]:0x0,_0x5240cd=typeof _0x554399[_0x5057a2(0x21d,0x1b8,0x20a,_0x4864c3._0x175a87)]===_0x136a6f(0x56a,0x50f,0x545,0x571)?_0x554399['text']:'';_0x555296&&this[_0x136a6f(_0x4864c3._0x2bd826,0x49f,0x3ed,_0x4864c3._0x2b90b7)](_0x555296,_0x54e4d8)[_0x136a6f(0x584,0x50c,_0x4864c3._0x3217e7,_0x4864c3._0xc1db98)][_0x136a6f(_0x4864c3._0x4bfa64,_0x4864c3._0x3a3ba7,_0x4864c3._0xc20d23,_0x4864c3._0x4c6510)](_0x50c23c,_0x5240cd);break;}case _0x136a6f(_0x4864c3._0x341706,_0x4864c3._0x1535f5,_0x4864c3._0x59c0d7,_0x4864c3._0x24540d):{this[_0x136a6f(_0x4864c3._0x2a21e3,0x56a,0x4e3,_0x4864c3._0x338797)]=_0x554399[_0x136a6f(_0x4864c3._0x318d8b,0x58b,0x555,0x53f)];break;}case _0x5057a2(_0x4864c3._0x1c403f,_0x4864c3._0xa0c143,_0x4864c3._0x475f68,0x2e0):{const _0x363c1f=_0x554399['response'];throw new OpenAiResponsesStreamError(_0x363c1f?.[_0x136a6f(_0x4864c3._0x279a15,_0x4864c3._0x2aa031,_0x4864c3._0x2f961c,0x4f6)]?.[_0x5057a2(0x1bd,_0x4864c3._0xf37147,0x100,_0x4864c3._0x40ed12)]??'Responses\x20stream\x20failed',{'code':_0x363c1f?.['error']?.[_0x5057a2(0x2c9,_0x4864c3._0x2cf92a,0x243,0x24e)]});}case'error':{const _0x2a81c4=_0x554399[_0x136a6f(0x4e3,0x586,_0x4864c3._0x42d9e6,_0x4864c3._0x340cf0)];throw new OpenAiResponsesStreamError(_0x2a81c4?.[_0x136a6f(0x554,_0x4864c3._0x5077bf,_0x4864c3._0x119142,0x57b)]??_0x136a6f(0x554,0x562,0x51e,_0x4864c3._0x4cf9fa),{'code':_0x2a81c4?.[_0x136a6f(_0x4864c3._0x235fe0,_0x4864c3._0x5a0e4b,0x6bc,_0x4864c3._0x551e04)],'status':typeof _0x554399[_0x5057a2(0x1af,0x264,_0x4864c3._0x5be1ff,_0x4864c3._0x461d53)]==='number'?_0x554399[_0x136a6f(0x568,_0x4864c3._0x12ab98,0x437,_0x4864c3._0x5d171e)]:void 0x0});}}return[];}[_0x2b6123(0x2df,0x2c6,0x353,0x2b8)](){const _0x346931={_0x56518a:0x3a0,_0x41e5ad:0x3c6,_0x563f79:0x445,_0x1ed017:0x1c3,_0x2df147:0x14e,_0x694b88:0x137,_0x2a4c1f:0x108,_0x215884:0xc7,_0x14432c:0x13f,_0xfed7d:0xab,_0x1d8418:0x158,_0x4e7ef5:0x31,_0x44bb47:0x39e,_0x47573c:0x331,_0x318d91:0x37f,_0x5a115b:0x3ae,_0x2fed92:0x365,_0x53a127:0x318,_0x30e4e7:0x1d6,_0x2bae59:0x252,_0x3b5854:0x389,_0x45ec93:0x134,_0x5c6ece:0x24e,_0x1bed9c:0x452,_0x512e03:0xf7,_0x5912f3:0x1b7,_0x55bace:0x199,_0x2815dd:0x108,_0xcf5815:0x148,_0x153aea:0x1da,_0x21b1da:0xcf,_0x5dbe10:0x17c,_0x6371c0:0x2c8,_0x229141:0x2bd,_0x4376d3:0x1f4,_0x15120e:0x145,_0x297fb2:0x191,_0x2d83d3:0x159,_0x3250bb:0x1b0,_0xba73eb:0xe5,_0x42bd77:0x135,_0x4441ed:0xa3,_0x41150e:0x17a,_0x46eafd:0x16e,_0x772d6:0x1be,_0x43c3cb:0x2f1,_0x125998:0x241,_0x2a5abe:0x35d,_0x501d6f:0x1e8,_0x50ad55:0x1ce,_0xa50f55:0xc8,_0x2f0e58:0x178,_0x328cbf:0x106,_0x37cda2:0xfd,_0x4c2909:0x129,_0x431f13:0xf1,_0x16d1f0:0x13a,_0x13ce7e:0x7c,_0x26c46f:0x97,_0x2306c0:0x145,_0x46a8ef:0x1d3,_0x30f785:0x2ae,_0xbd95c1:0x26a,_0x400ea0:0x2e2,_0x29e16a:0x2e7,_0x2e4739:0x225,_0xcc70c0:0x177},_0x4573c6={_0x5bcafa:0x8c},_0x8ccb8={_0x269c50:0x12f,_0x22727e:0x1c3},_0x410680={_0x3b4875:0x113,_0x489163:0x19d},_0x3605b1=[];for(const [_0x43cbd0,_0x232859]of this[_0x1e8af0(_0x346931._0x56518a,_0x346931._0x41e5ad,_0x346931._0x563f79,0x382)][_0xdfd622(_0x346931._0x1ed017,0x14a,_0x346931._0x2df147,0xe8)]()){const _0x1d59cf=_0x232859['join']('');if(_0x1d59cf[_0xdfd622(_0x346931._0x694b88,0x6f,_0x346931._0x2a4c1f,0x15e)]===0x0)continue;_0x3605b1['push']({'index':_0x43cbd0,'item':{'type':_0x1e8af0(0x344,0x2cf,0x267,0x353),'role':'assistant','content':[{'type':_0xdfd622(_0x346931._0x215884,0x13e,_0x346931._0x14432c,_0x346931._0xfed7d),'text':_0x1d59cf}]}});}function _0xdfd622(_0x40e42c,_0x1c7f4c,_0x1cb0e3,_0x2fce15){return _0x2b6123(_0x1c7f4c,_0x1c7f4c-_0x410680._0x3b4875,_0x1cb0e3- -0x193,_0x2fce15-_0x410680._0x489163);}for(const _0x3e8a4d of this[_0xdfd622(_0x346931._0x1d8418,_0x346931._0x4e7ef5,0xd1,0x2a)]['values']()){_0x3605b1[_0x1e8af0(_0x346931._0x44bb47,_0x346931._0x47573c,0x2ed,0x32c)]({'index':_0x3e8a4d[_0x1e8af0(0x37d,_0x346931._0x318d91,_0x346931._0x5a115b,0x43b)]??_0x3605b1[_0x1e8af0(_0x346931._0x2fed92,0x2b8,_0x346931._0x53a127,0x233)],'item':{'type':_0xdfd622(0x254,0x250,_0x346931._0x30e4e7,_0x346931._0x2bae59),'id':_0x3e8a4d['id'],..._0x3e8a4d[_0x1e8af0(0x332,0x380,0x2cc,_0x346931._0x3b5854)]?{'encrypted_content':_0x3e8a4d['encryptedContent']}:{},..._0x3e8a4d[_0xdfd622(_0x346931._0x45ec93,0x1f7,0x1b7,_0x346931._0x5c6ece)][_0x1e8af0(0x354,0x3a4,_0x346931._0x53a127,_0x346931._0x1bed9c)]>0x0?{'summary':Array['from'](_0x3e8a4d[_0xdfd622(_0x346931._0x512e03,0x18f,_0x346931._0x5912f3,_0x346931._0x55bace)][_0xdfd622(_0x346931._0x2815dd,0x92,0x14e,_0x346931._0xcf5815)]())[_0xdfd622(_0x346931._0x153aea,_0x346931._0x21b1da,0x16e,_0x346931._0x5dbe10)]((_0x57fa41,_0x3d2c7e)=>_0x57fa41[0x0]-_0x3d2c7e[0x0])['map'](([,_0x36a0a4])=>{const _0x292a72={_0xbb199e:0x291,_0x42cfd8:0x1,_0x195a44:0x125};function _0xdc7223(_0x270d66,_0x296500,_0x1ccca1,_0x235532){return _0x1e8af0(_0x235532,_0x270d66- -_0x292a72._0xbb199e,_0x1ccca1-_0x292a72._0x42cfd8,_0x235532-_0x292a72._0x195a44);}return{'type':_0xdc7223(0xfe,_0x8ccb8._0x269c50,_0x8ccb8._0x22727e,0x19b),'text':_0x36a0a4};})}:{},..._0x3e8a4d[_0x1e8af0(0x24d,0x2e5,0x25f,_0x346931._0x6371c0)][_0xdfd622(_0x346931._0x229141,0x2a7,_0x346931._0x4376d3,_0x346931._0x15120e)]>0x0?{'text':Array[_0xdfd622(_0x346931._0x297fb2,0x95,_0x346931._0x2d83d3,_0x346931._0x3250bb)](_0x3e8a4d[_0xdfd622(0x9d,_0x346931._0xba73eb,_0x346931._0x42bd77,_0x346931._0x4441ed)]['entries']())[_0xdfd622(_0x346931._0x41150e,0x1ca,_0x346931._0x46eafd,_0x346931._0x772d6)]((_0x240f61,_0x132f71)=>_0x240f61[0x0]-_0x132f71[0x0])['map'](([,_0x2acb60])=>_0x2acb60)[_0x1e8af0(0x2b5,_0x346931._0x43c3cb,_0x346931._0x125998,_0x346931._0x2a5abe)]('')}:{}}});}function _0x1e8af0(_0x2b32cc,_0xf792bc,_0x9def45,_0x1532e7){return _0x2b6123(_0x2b32cc,_0xf792bc-0xaa,_0xf792bc-0x1d,_0x1532e7-_0x4573c6._0x5bcafa);}for(const _0x73920e of this[_0x1e8af0(0x2f5,0x292,_0x346931._0x501d6f,_0x346931._0x50ad55)][_0xdfd622(_0x346931._0xa50f55,_0x346931._0x2f0e58,0x154,_0x346931._0x328cbf)]()){_0x3605b1[_0xdfd622(_0x346931._0x37cda2,_0x346931._0x4c2909,0x181,0x109)]({'index':this[_0xdfd622(0x4e,0x8f,0xb7,0x4c)][_0xdfd622(0xaa,0x176,_0x346931._0x431f13,0x148)](_0x73920e['id'])??_0x3605b1[_0xdfd622(_0x346931._0x4441ed,_0x346931._0x16d1f0,_0x346931._0x2815dd,_0x346931._0xfed7d)],'item':{'type':_0xdfd622(_0x346931._0x13ce7e,0x41,_0x346931._0x26c46f,_0x346931._0x2306c0),'call_id':_0x73920e['id'],'name':_0x73920e[_0x1e8af0(_0x346931._0x46a8ef,0x287,0x29a,0x317)][_0x1e8af0(_0x346931._0x30f785,_0x346931._0xbd95c1,_0x346931._0x400ea0,0x23c)],'arguments':_0x73920e[_0x1e8af0(_0x346931._0x29e16a,0x287,_0x346931._0x2e4739,0x254)]['arguments']}});}return _0x3605b1[_0xdfd622(0x12a,0x226,0x16e,_0x346931._0xcc70c0)]((_0x446a36,_0x35b744)=>_0x446a36[_0x1e8af0(0x359,0x36d,0x407,0x390)]-_0x35b744[_0x1e8af0(0x301,0x36d,0x36e,0x35c)])['map'](_0x13d35c=>_0x13d35c['item']);}['getOrCreateReasoningItem'](_0x55c07d,_0x2c486d){const _0x28deed={_0x892112:0x237,_0x23c5dd:0x201,_0x82c4e3:0x2ab,_0x1d53e1:0x262,_0x3f1ad0:0x3f8,_0x5a1e35:0x28b,_0x4577d2:0x3c5,_0x5638a4:0x47e,_0x5be61a:0x1bc,_0x3ec2cc:0x205,_0x179fa2:0x473,_0x2b879b:0x444,_0x5e4188:0x4d1},_0x4f9d69={_0x39890e:0x16e},_0x2d75e6={_0x4f085d:0x140,_0x4b6da0:0xdd},_0x445bf0=this[_0x59c83c(_0x28deed._0x892112,_0x28deed._0x23c5dd,_0x28deed._0x82c4e3,_0x28deed._0x1d53e1)]['get'](_0x55c07d);function _0x5c276a(_0x386658,_0x2f17f9,_0x1e5ebd,_0x43cf93){return _0x38c793(_0x386658,_0x2f17f9-_0x2d75e6._0x4f085d,_0x43cf93- -0x22,_0x43cf93-_0x2d75e6._0x4b6da0);}if(_0x445bf0)return _0x2c486d!==void 0x0&&(_0x445bf0[_0x5c276a(_0x28deed._0x3f1ad0,0x41a,0x458,0x470)]=_0x2c486d,this[_0x59c83c(0x330,_0x28deed._0x5a1e35,0x345,0x2e3)][_0x5c276a(_0x28deed._0x4577d2,0x4c7,0x3ee,_0x28deed._0x5638a4)](_0x2c486d,_0x55c07d)),_0x445bf0;const _0x59be7a={'id':_0x55c07d,'outputIndex':_0x2c486d,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x59c83c(_0x28deed._0x5be61a,0x2ce,_0x28deed._0x3ec2cc,0x262)][_0x5c276a(_0x28deed._0x179fa2,_0x28deed._0x2b879b,_0x28deed._0x5e4188,0x47e)](_0x55c07d,_0x59be7a);function _0x59c83c(_0x406e20,_0x24d5ae,_0x5d608a,_0xc793e6){return _0x38c793(_0x406e20,_0x24d5ae-_0x4f9d69._0x39890e,_0xc793e6- -0x132,_0xc793e6-0x100);}return _0x2c486d!==void 0x0&&this['outputIndexToReasoningId']['set'](_0x2c486d,_0x55c07d),_0x59be7a;}};function createOpenAiResponsesStreamParser(_0x515527){return new OpenAiResponsesStreamParser(_0x515527);}function createOpenAiSurfaces(_0x4fd07a={}){const _0x654cb7={_0x3e6932:0x53,_0x41100d:0x391,_0x12f859:0x43b,_0x2cb8ff:0x35a,_0x3be82f:0x356,_0x2acd0d:0x3cd,_0x8a25e2:0x2f6,_0x42c945:0x3d8,_0x52a478:0x465,_0x44ca38:0x300,_0x394592:0x278,_0x571acd:0x2ac,_0x17dcfa:0x28e,_0x9eac25:0x2a,_0x57e519:0x8e},_0xdd2230={_0x410567:0x11e,_0x53e1bb:0xd1,_0x3c1ce5:0xba},_0x310f0d={_0x102227:0x1a1,_0x2a3602:0x15d},_0x4ca949={_0x342806:0x27c,_0x42e72a:0x320},_0x148292={_0x1351f4:0xf5,_0x3b366f:0x27},_0xb08a6c={_0x2dc34d:0x6f};function _0x1a0959(_0xb3a86e,_0x152b8e,_0x3920af,_0x44c88){return _0x2b6123(_0x152b8e,_0x152b8e-0x166,_0xb3a86e-0x53,_0x44c88-_0xb08a6c._0x2dc34d);}const _0x2ed729=_0x4fd07a[_0x561caa(_0x654cb7._0x3e6932,0xcf,-0x15,0x5c)]??_0x1a0959(_0x654cb7._0x41100d,_0x654cb7._0x12f859,_0x654cb7._0x2cb8ff,0x3da);function _0x561caa(_0x61ceaa,_0x445e15,_0x7a765f,_0x37c777){return _0x38c793(_0x445e15,_0x445e15-_0x148292._0x1351f4,_0x61ceaa- -0x3cf,_0x37c777-_0x148292._0x3b366f);}const _0x33c0a3=_0x4fd07a[_0x1a0959(_0x654cb7._0x3be82f,0x2fa,_0x654cb7._0x2acd0d,_0x654cb7._0x8a25e2)]??_0x1a0959(_0x654cb7._0x42c945,_0x654cb7._0x52a478,0x377,0x446);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x1a0959(0x2ac,_0x654cb7._0x44ca38,_0x654cb7._0x394592,0x2d3),'createRequest'(_0x32a0f0){const _0x3aa037={_0x3cc0a3:0xe1};function _0x298c52(_0x4fc307,_0x50d969,_0x5896f4,_0x3a197b){return _0x1a0959(_0x50d969-0x4c,_0x4fc307,_0x5896f4-_0x3aa037._0x3cc0a3,_0x3a197b-0x1e1);}return{'accept':_0x298c52(0x3af,0x320,_0x4ca949._0x342806,_0x4ca949._0x42e72a),'body':createChatRequestBody(_0x32a0f0,![]),'path':_0x2ed729};},'parseResponse'(_0x580326){return parseChatCompletionResponse(_0x580326);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x46f637){const _0x35e999={_0x5819ce:0xb0,_0x35092d:0x8b};function _0x191628(_0x13f856,_0x9c712c,_0x354cc2,_0x4a452d){return _0x561caa(_0x4a452d-_0x35e999._0x5819ce,_0x9c712c,_0x354cc2-_0x35e999._0x35092d,_0x4a452d-0x5a);}return{'accept':_0x191628(0x157,0x178,_0x310f0d._0x102227,_0x310f0d._0x2a3602),'body':createChatRequestBody(_0x46f637,!![]),'path':_0x2ed729};},'createStreamParser'(_0x2cc703){return new OpenAiChatCompletionsStreamParser(_0x2cc703);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x1a0959(_0x654cb7._0x571acd,_0x654cb7._0x17dcfa,0x2ea,0x2fb),'createRequest'(_0x978686){return{'accept':'application/json','body':createResponsesRequestBody(_0x978686,![]),'path':_0x33c0a3};},'parseResponse'(_0x2242a9,_0x201c19){return parseResponsesResponse(_0x2242a9,_0x201c19);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0xe23e9b){const _0x4123de={_0x54c623:0xd,_0x1d9dad:0x4a,_0x1639ab:0x110};function _0x29b3cc(_0xb60332,_0x3d96de,_0x3204bb,_0x2e6d57){return _0x561caa(_0x2e6d57-_0x4123de._0x54c623,_0xb60332,_0x3204bb-_0x4123de._0x1d9dad,_0x2e6d57-_0x4123de._0x1639ab);}return{'accept':_0x29b3cc(_0xdd2230._0x410567,0x184,_0xdd2230._0x53e1bb,_0xdd2230._0x3c1ce5),'body':createResponsesRequestBody(_0xe23e9b,!![]),'path':_0x33c0a3};},'createStreamParser'(_0x560d5c){return new OpenAiResponsesStreamParser(_0x560d5c);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x561caa(_0x654cb7._0x9eac25,-0xb,_0x654cb7._0x57e519,0x87),'createRequest'(_0x291040){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x291040),'path':_0x33c0a3};},'createStreamParser'(_0x14299f){return createOpenAiResponsesStreamParser(_0x14299f);}}];}var OpenAiProviderAdapter=class{[_0x38c793(0x499,0x476,0x474,0x46f)];constructor(_0x151945){this['headerResolver']=_0x151945;}['createMissingCredentialError'](){const _0xcce063={_0x573cc8:0x160,_0x58dbc2:0x163};function _0x31690d(_0x164beb,_0x51b1a0,_0x1678ec,_0x4c0cc2){return _0x2b6123(_0x1678ec,_0x51b1a0-0x102,_0x4c0cc2- -0x1da,_0x4c0cc2-0x4b);}return new Error(_0x31690d(_0xcce063._0x573cc8,0x7f,_0xcce063._0x58dbc2,0xac));}async[_0x2b6123(0x205,0x239,0x265,0x249)](_0xac53a6,_0x23fcf1){const _0x4284aa={_0x197c6e:0x486,_0x1d936f:0x3d3,_0x52323d:0x482,_0x4c63cb:0x396,_0x5a94de:0x3b4,_0x3b6748:0x1f3,_0x14d791:0x4a6,_0xb59088:0x4f4,_0xcf8518:0x437,_0x303c64:0x469,_0x1042ed:0x1a2,_0xcdf612:0x1f2,_0x5c11cf:0x1ea,_0x30f730:0x411,_0x5a719a:0x458,_0x5e9ab4:0x1df,_0x4639d5:0x132,_0x5132d0:0x1bf,_0x315378:0xe8,_0x66ba7b:0x18a,_0x1bcd34:0x2cf,_0x2c2dab:0x426,_0x1ed279:0x2dc,_0x5b7918:0x2f7,_0x2ee82e:0x360,_0x5a628f:0x2e0,_0x18760f:0x258,_0x26f63d:0x3d7,_0x451431:0x3fc},_0x39feaa={_0x1afbe9:0xc9},_0x596d10={_0x28aca2:0x68,_0x81aa5e:0x40};function _0x4237c7(_0x20b865,_0x439d6f,_0x4da94b,_0x3179e7){return _0x38c793(_0x4da94b,_0x439d6f-_0x596d10._0x28aca2,_0x3179e7- -0x231,_0x3179e7-_0x596d10._0x81aa5e);}const _0x508b46=new Headers();_0x508b46['set'](_0x5e18ef(_0x4284aa._0x197c6e,0x3cb,_0x4284aa._0x1d936f,0x33d),_0x23fcf1['accept']),_0x508b46[_0x5e18ef(_0x4284aa._0x52323d,_0x4284aa._0x4c63cb,0x423,_0x4284aa._0x5a94de)]('authorization',_0x4237c7(_0x4284aa._0x3b6748,0xd8,0x13f,0x194)+_0xac53a6[_0x5e18ef(_0x4284aa._0x14d791,_0x4284aa._0xb59088,_0x4284aa._0xcf8518,_0x4284aa._0x303c64)][_0x4237c7(0x1f8,_0x4284aa._0x1042ed,_0x4284aa._0xcdf612,_0x4284aa._0x5c11cf)]);function _0x5e18ef(_0x55cef0,_0x164599,_0x463a5a,_0x2ad436){return _0x38c793(_0x2ad436,_0x164599-_0x39feaa._0x1afbe9,_0x463a5a- -0x7d,_0x2ad436-0x8f);}_0x23fcf1[_0x5e18ef(0x46f,_0x4284aa._0x30f730,_0x4284aa._0x5a719a,0x42e)]!==![]&&_0x508b46['set'](_0x4237c7(_0x4284aa._0x5e9ab4,0x159,_0x4284aa._0x4639d5,_0x4284aa._0x5132d0),_0x4237c7(_0x4284aa._0x315378,0x1a1,_0x4284aa._0x66ba7b,0x180));const _0x32c65b=await this['headerResolver']?.({'body':_0xac53a6[_0x5e18ef(_0x4284aa._0x1bcd34,0x2ab,0x2f2,0x2d0)],'credential':_0xac53a6[_0x5e18ef(0x3cb,0x4ee,_0x4284aa._0xcf8518,_0x4284aa._0x2c2dab)],'request':_0xac53a6[_0x5e18ef(_0x4284aa._0x1ed279,_0x4284aa._0x5b7918,_0x4284aa._0x2ee82e,0x40a)],'session':_0xac53a6[_0x4237c7(_0x4284aa._0x5a628f,_0x4284aa._0x18760f,0x24e,0x28b)],'stream':_0xac53a6[_0x5e18ef(0x384,_0x4284aa._0x26f63d,_0x4284aa._0x451431,0x3af)]});for(const [_0x3d3173,_0x454043]of Object['entries'](_0x32c65b??{})){_0x508b46['set'](_0x3d3173,_0x454043);}return _0x508b46;}[_0x38c793(0x3b6,0x42a,0x3b7,0x303)](_0x44c7f2){return _0x44c7f2;}[_0x38c793(0x410,0x3fd,0x4bb,0x473)](_0x2034d6,_0xcfcab8){return resolveSessionBaseUrl(_0x2034d6,_0xcfcab8);}['resolveCredential'](_0x4f838f,_0x206daf){return resolveApiCredential(_0x4f838f,_0x206daf);}async[_0x2b6123(0x325,0x2d4,0x358,0x3f0)](_0x2c759d){return await createOpenAiApiError(_0x2c759d);}};function _0x2b6123(_0x395190,_0x1d019c,_0x26217b,_0x31fc8d){return _0x25f1(_0x26217b-0xe9,_0x395190);}var OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x2b6123(0x20f,0x32d,0x2cc,0x238)]=new Map();[_0x2b6123(0x325,0x285,0x2f2,0x23c)];[_0x38c793(0x43f,0x368,0x433,0x37e)];constructor(_0x4b3b40={}){const _0xc8f903={_0x17a8a3:0xdb,_0x17ffaa:0x117,_0x2ea446:0x268,_0x3dc43a:0x224,_0x59f6f4:0x271,_0xc4c8b3:0x204,_0x97b882:0x2b8,_0x314493:0x24c,_0x4ac590:0x138,_0x5dcc22:0x18c,_0x358450:0x239,_0x52694a:0x225,_0x2d265b:0x25f,_0x17d20c:0x2ae,_0x295e56:0x265,_0xeaab70:0x253,_0xc995a4:0x223,_0x306113:0x2ca,_0x55e89f:0x26d,_0x3f31f7:0x176,_0x1cabd2:0x205,_0x2a39e2:0x1af,_0x4da556:0x2ab},_0x2273c2={_0x31f9e8:0xdd,_0x40f152:0x2f},_0x2263f2={_0x5a250c:0x1de,_0x115835:0x493,_0x3a05ec:0xb8};function _0xe7e8b7(_0x1735c5,_0x216bab,_0x3730e0,_0x28ddae){return _0x2b6123(_0x1735c5,_0x216bab-_0x2263f2._0x5a250c,_0x3730e0- -_0x2263f2._0x115835,_0x28ddae-_0x2263f2._0x3a05ec);}const _0xd553de=_0x4b3b40[_0xe7e8b7(-0xe9,-_0xc8f903._0x17a8a3,-_0xc8f903._0x17ffaa,-0x13f)]??'gpt-4o',_0x2d0d14=_0x4b3b40[_0xe7e8b7(-_0xc8f903._0x2ea446,-0x1dc,-_0xc8f903._0x3dc43a,-0x1b0)]??0x4000,_0x341c55=_0x4b3b40[_0xe7e8b7(-0x120,-0x12b,-0x1a1,-0x13a)]??_0x4e535c(0x240,_0xc8f903._0x59f6f4,0x193,_0xc8f903._0xc4c8b3),_0x19ec13=_0x4b3b40['responsesPath']??_0x4e535c(0x287,0x1d5,_0xc8f903._0x97b882,_0xc8f903._0x314493);super({'apiKey':_0x4b3b40[_0xe7e8b7(-_0xc8f903._0x4ac590,-0x1d2,-_0xc8f903._0x5dcc22,-0x13a)],'baseUrl':trimTrailingSlashes(_0x4b3b40['baseUrl']??_0xe7e8b7(-_0xc8f903._0x358450,-0x22b,-_0xc8f903._0x52694a,-0x20b)),'fetch':_0x4b3b40[_0x4e535c(_0xc8f903._0x2d265b,0x316,0x23e,_0xc8f903._0x17d20c)],'maxTokens':_0x2d0d14,'model':_0xd553de,'reasoning':_0x4b3b40[_0x4e535c(0x26b,_0xc8f903._0x295e56,_0xc8f903._0xeaab70,_0xc8f903._0xc995a4)],'providerAdapter':new OpenAiProviderAdapter(_0x4b3b40[_0x4e535c(0x246,0x200,0x2f7,_0xc8f903._0x306113)]),'providerSessionResolver':_0x4b3b40['providerSessionResolver'],'requestMutators':_0x4b3b40['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x4b3b40[_0xe7e8b7(-0x65,-0x159,-0xdf,-0x146)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x341c55,'responsesPath':_0x19ec13}),'webSocketFactory':_0x4b3b40[_0x4e535c(0x2ad,0x216,_0xc8f903._0x55e89f,0x306)]});function _0x4e535c(_0xc6c3e9,_0x417fbd,_0x459e9e,_0x61ebf3){return _0x2b6123(_0x417fbd,_0x417fbd-_0x2273c2._0x31f9e8,_0xc6c3e9- -0xfe,_0x61ebf3-_0x2273c2._0x40f152);}this[_0xe7e8b7(-_0xc8f903._0x3f31f7,-0x24d,-0x1a1,-0x14b)]=_0x341c55,this[_0x4e535c(_0xc8f903._0x1cabd2,_0xc8f903._0x2a39e2,_0xc8f903._0x4da556,0x2a8)]=_0x19ec13;}[_0x38c793(0x57c,0x551,0x4cb,0x567)](_0xb723e0,_0x139b0a){const _0x37399c={_0x611291:0x157,_0x1f98fc:0xf0},_0x291e37={_0x163048:0x4a8};function _0x110691(_0xe3c446,_0x476d03,_0x3403a4,_0x14b5b1){return _0x2b6123(_0x476d03,_0x476d03-0x3,_0xe3c446- -_0x291e37._0x163048,_0x14b5b1-0x1e1);}return this[_0x110691(-_0x37399c._0x611291,-_0x37399c._0x1f98fc,-0x178,-0xff)](_0xb723e0,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x139b0a);}[_0x38c793(0x4a6,0x495,0x46f,0x478)](_0x49aba9,_0xc796d4){const _0x2e3d2e={_0x1659e7:0x35c,_0x550b0f:0x244,_0x46a0ec:0x392},_0x654f69={_0x403279:0x48,_0x596f96:0x1b7,_0x175b1f:0xfc};function _0xada564(_0x5b81fe,_0x4994dd,_0x3aff27,_0x5cbfd6){return _0x38c793(_0x5cbfd6,_0x4994dd-_0x654f69._0x403279,_0x5b81fe- -_0x654f69._0x596f96,_0x5cbfd6-_0x654f69._0x175b1f);}return this[_0xada564(0x2ca,_0x2e3d2e._0x1659e7,_0x2e3d2e._0x550b0f,_0x2e3d2e._0x46a0ec)](_0x49aba9,OPENAI_RESPONSES_SURFACE,_0xc796d4);}['completeViaResponsesWebSocketSurface'](_0x4486de,_0x442d64){return this['completeViaSurface'](_0x4486de,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x442d64);}[_0x2b6123(0x325,0x2ae,0x309,0x39f)](_0x258328,_0x39bcc7){return this['streamViaSurface'](_0x258328,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x39bcc7);}[_0x38c793(0x4ee,0x420,0x432,0x3d5)](_0xa513e3,_0x58ee6c){const _0xf8a483={_0x4f4a66:0x1db,_0x378947:0x149};function _0x487bff(_0x1ed1d4,_0x44cf8f,_0x401638,_0x350be5){return _0x38c793(_0x44cf8f,_0x44cf8f-_0xf8a483._0x4f4a66,_0x350be5- -_0xf8a483._0x378947,_0x350be5-0x1a2);}return this[_0x487bff(0x210,0x2b5,0x19f,0x238)](_0xa513e3,OPENAI_RESPONSES_STREAM_SURFACE,_0x58ee6c);}[_0x2b6123(0x364,0x345,0x398,0x2fb)](_0x24cd44,_0x2abce7){const _0x340a87={_0x48f9cf:0xbc,_0x36daa3:0x119,_0x3c20fd:0xe5},_0x13053f={_0x5c3b0b:0x268};function _0x34567e(_0x556834,_0x2e5226,_0x12e9ce,_0x5a646f){return _0x38c793(_0x2e5226,_0x2e5226-0x134,_0x12e9ce- -_0x13053f._0x5c3b0b,_0x5a646f-0xa6);}return this[_0x34567e(0xdd,_0x340a87._0x48f9cf,_0x340a87._0x36daa3,_0x340a87._0x3c20fd)](_0x24cd44,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x2abce7);}async[_0x38c793(0x4bf,0x4ea,0x42f,0x44c)](_0x27afcc,_0x2d9d27){const _0x1add38={_0x56f91c:0x8,_0x17b372:0x32},_0x4e0fc3={_0x5648eb:0x70,_0x5b67cf:0x13f};function _0xa32c05(_0x2c62a0,_0x387ad3,_0x43fbb1,_0x28b1d3){return _0x2b6123(_0x2c62a0,_0x387ad3-_0x4e0fc3._0x5648eb,_0x43fbb1- -0x2b9,_0x28b1d3-_0x4e0fc3._0x5b67cf);}try{return await this['completeViaChatCompletionsSurface'](_0x27afcc,_0x2d9d27);}catch(_0x2e1525){if(_0x2e1525 instanceof OpenAiApiError)throw this[_0xa32c05(-0xe7,_0x1add38._0x56f91c,-_0x1add38._0x17b372,0x77)](_0x2e1525);throw _0x2e1525;}}async['response'](_0x146ba1,_0x2b4961){const _0x552d27={_0x5b861b:0x16a,_0x40f28b:0xc2,_0x352f98:0x19e,_0x23d668:0x1fa},_0x1effaf={_0x1ce0e0:0x122},_0x55b4a5={_0x198963:0x4a9,_0x1eef01:0x31};function _0x4005bd(_0x58899f,_0x438e52,_0x3a061d,_0x2526a5){return _0x2b6123(_0x58899f,_0x438e52-0xdc,_0x438e52- -_0x55b4a5._0x198963,_0x2526a5-_0x55b4a5._0x1eef01);}function _0x5017eb(_0x154b91,_0xaf0c41,_0x1ccd62,_0x4e01d6){return _0x38c793(_0x4e01d6,_0xaf0c41-0xb3,_0x154b91- -0x266,_0x4e01d6-_0x1effaf._0x1ce0e0);}try{return await this[_0x4005bd(-0x22c,-_0x552d27._0x5b861b,-_0x552d27._0x40f28b,-0x129)](_0x146ba1,_0x2b4961);}catch(_0x11ee0a){if(_0x11ee0a instanceof OpenAiApiError)throw this[_0x4005bd(-_0x552d27._0x352f98,-0x222,-_0x552d27._0x23d668,-0x2b7)](_0x11ee0a);throw _0x11ee0a;}}async[_0x2b6123(0x29f,0x3eb,0x32c,0x3ea)](_0x2c8891,_0x470f0e){const _0xb1b118={_0x55840a:0x347,_0xb61f2b:0x2f8,_0x3a6da6:0x34f,_0x2d241d:0x33d,_0x5bd141:0x3f9,_0x67aa35:0x430,_0x4d9b2c:0x2f5,_0x317ef8:0x36f,_0x1a43df:0x2c6,_0x54f61b:0x219,_0x260075:0x232,_0x1a3c7e:0x3b9,_0x262d9e:0x25c,_0x28849e:0x36d,_0x5b5c64:0x287},_0xea3dad={_0x4bea7b:0x1a6};function _0x17f3b3(_0x56de9b,_0x5700bb,_0x46cd81,_0x2a06d1){return _0x2b6123(_0x2a06d1,_0x5700bb-_0xea3dad._0x4bea7b,_0x5700bb- -0x12e,_0x2a06d1-0x1c2);}function _0x25d4d7(_0x81adb5,_0x7072c7,_0x1d84a7,_0x3b8088){return _0x38c793(_0x81adb5,_0x7072c7-0x118,_0x1d84a7- -0xb2,_0x3b8088-0x127);}try{let _0x4aef20;for await(const _0x2cb0f5 of this[_0x25d4d7(_0xb1b118._0x55840a,_0xb1b118._0xb61f2b,_0xb1b118._0x3a6da6,0x359)](_0x2c8891,_0x470f0e)){_0x2cb0f5[_0x25d4d7(0x369,0x3a7,_0xb1b118._0x2d241d,_0xb1b118._0x5bd141)]===_0x25d4d7(_0xb1b118._0x67aa35,_0xb1b118._0x4d9b2c,_0xb1b118._0x317ef8,0x2fc)&&(_0x4aef20=_0x2cb0f5[_0x17f3b3(_0xb1b118._0x1a43df,_0xb1b118._0x54f61b,0x2dd,_0xb1b118._0x260075)]);}if(!_0x4aef20)throw new Error(_0x25d4d7(0x37d,0x440,_0xb1b118._0x1a3c7e,0x2ef));return _0x4aef20;}catch(_0x4809b8){if(_0x4809b8 instanceof OpenAiApiError)throw this[_0x25d4d7(_0xb1b118._0x262d9e,_0xb1b118._0x28849e,0x305,_0xb1b118._0x5b5c64)](_0x4809b8);throw _0x4809b8;}}async*[_0x38c793(0x34e,0x4a9,0x40c,0x44c)](_0x3194b8,_0x501c19){const _0xcf3e97={_0x107c3d:0x517,_0xfc39ea:0x5aa},_0x57fcc6={_0x1f62b3:0x100},_0x243149={_0x21c5c3:0xe4,_0x35f296:0x7f};function _0x2f3f9e(_0x568393,_0x12d0d8,_0x25b268,_0x10c55e){return _0x38c793(_0x10c55e,_0x12d0d8-_0x243149._0x21c5c3,_0x25b268-0x9a,_0x10c55e-_0x243149._0x35f296);}function _0x236d0b(_0x2de424,_0x311a8c,_0x23a566,_0x575fdd){return _0x2b6123(_0x2de424,_0x311a8c-_0x57fcc6._0x1f62b3,_0x575fdd-0x2ea,_0x575fdd-0x1f2);}try{yield*this[_0x2f3f9e(0x58f,_0xcf3e97._0x107c3d,0x4d3,0x44c)](_0x3194b8,_0x501c19);}catch(_0x3ff703){if(_0x3ff703 instanceof OpenAiApiError)throw this[_0x236d0b(0x541,_0xcf3e97._0xfc39ea,0x5d9,0x571)](_0x3ff703);throw _0x3ff703;}}async*['responseStream'](_0x13ed08,_0x26353b){const _0x65dc1c={_0x56ece3:0x396,_0x222242:0x3cb,_0x236e87:0x416,_0x1fe26a:0x2f1,_0x45b7b6:0x298,_0x5aad7a:0x350},_0x4de0ec={_0x1087a9:0x123,_0x263e5f:0xc9},_0x52d20a={_0x413517:0x102};function _0x35e6b3(_0x267b98,_0x45034b,_0x6109b4,_0x33d415){return _0x38c793(_0x6109b4,_0x45034b-0x135,_0x45034b- -0x474,_0x33d415-_0x52d20a._0x413517);}function _0xee52d8(_0x2c1e54,_0x4bfa34,_0x46b501,_0x307928){return _0x2b6123(_0x46b501,_0x4bfa34-_0x4de0ec._0x1087a9,_0x307928-_0x4de0ec._0x263e5f,_0x307928-0x191);}try{yield*this[_0xee52d8(0x380,0x3e6,_0x65dc1c._0x56ece3,_0x65dc1c._0x222242)](_0x13ed08,_0x26353b);}catch(_0x55943d){if(_0x55943d instanceof OpenAiApiError)throw this[_0xee52d8(_0x65dc1c._0x236e87,_0x65dc1c._0x1fe26a,_0x65dc1c._0x45b7b6,_0x65dc1c._0x5aad7a)](_0x55943d);throw _0x55943d;}}async*[_0x38c793(0x3d6,0x353,0x401,0x42e)](_0x4ade3e,_0x342aad){const _0x589e59={_0x14fb85:0x108},_0x19a5fe={_0x16e3af:0x10};function _0x4abf6f(_0x4ce74d,_0x337523,_0x941321,_0x18c251){return _0x2b6123(_0x4ce74d,_0x337523-_0x19a5fe._0x16e3af,_0x941321- -0x3ff,_0x18c251-0x12d);}try{yield*this[_0x4abf6f(0x1a,-_0x589e59._0x14fb85,-0x7e,-0x134)](_0x4ade3e,_0x342aad);}catch(_0x5e01d1){if(_0x5e01d1 instanceof OpenAiApiError)throw this['mapApiError'](_0x5e01d1);throw _0x5e01d1;}}[_0x2b6123(0x347,0x2e2,0x315,0x2d4)](_0x550485,_0xb25c68){const _0x18c503={_0x5c5edc:0x11a,_0x1089a4:0x16d,_0x2d593a:0x126},_0x295bb6={_0x33f879:0xad,_0x1415a9:0x419};function _0x2892e6(_0x2667d7,_0x27fde9,_0x210eec,_0x373836){return _0x2b6123(_0x210eec,_0x27fde9-_0x295bb6._0x33f879,_0x27fde9- -_0x295bb6._0x1415a9,_0x373836-0x2a);}return this[_0x2892e6(-0x95,-_0x18c503._0x5c5edc,-_0x18c503._0x1089a4,-_0x18c503._0x2d593a)](_0x550485,_0xb25c68);}['stream'](_0x3ba7e0,_0x4a60a6){return this['chatStream'](_0x3ba7e0,_0x4a60a6);}['getResponsesSocketSessionState'](_0x2bf737){const _0x3251ea={_0x5a444a:0x411,_0x71d8bb:0x454,_0x5e80f1:0x50f,_0x6df0b5:0x456,_0x13a449:0x4c3,_0xfe81a4:0x44,_0x9a39b4:0x1a,_0x4d1a41:0xfb,_0x16b86e:0x506,_0x58ada7:0x598,_0x5e45ac:0xbf},_0x558ac6={_0x51cebd:0xb0,_0x3dcdbe:0x3f8},_0x482925={_0x567cfd:0xc5,_0x18f402:0x1f7,_0x210b23:0xf6},_0x376a33=this[_0x5d1919(_0x3251ea._0x5a444a,0x4fb,0x3ad,_0x3251ea._0x71d8bb)](_0x2bf737);function _0x5d1919(_0x4266e8,_0x3721f9,_0x5a0f16,_0x10fdfd){return _0x2b6123(_0x3721f9,_0x3721f9-_0x482925._0x567cfd,_0x10fdfd-_0x482925._0x18f402,_0x10fdfd-_0x482925._0x210b23);}let _0x1c7803=_OpenAiModel[_0x5d1919(0x46e,_0x3251ea._0x5e80f1,_0x3251ea._0x6df0b5,_0x3251ea._0x13a449)][_0x420d38(0x35,-_0x3251ea._0xfe81a4,-_0x3251ea._0x9a39b4,-_0x3251ea._0x4d1a41)](_0x376a33);!_0x1c7803&&(_0x1c7803={'pending':Promise[_0x5d1919(0x640,_0x3251ea._0x16b86e,0x4f5,_0x3251ea._0x58ada7)]()},_OpenAiModel[_0x420d38(-_0x3251ea._0x5e45ac,0x4,-0xc,-0x23)]['set'](_0x376a33,_0x1c7803));function _0x420d38(_0x29a535,_0x356cda,_0x5dcc40,_0x4fe03c){return _0x38c793(_0x29a535,_0x356cda-_0x558ac6._0x51cebd,_0x356cda- -_0x558ac6._0x3dcdbe,_0x4fe03c-0x30);}return _0x1c7803;}['getResponsesSocketSessionKey'](_0x2d414b){const _0x32f594={_0x467629:0x1d7,_0x56efe9:0x1a6},_0x271ff6={_0x2663b2:0x154,_0x410537:0x1c2},_0x31c64f={_0x74716d:0xfc};function _0x10d889(_0x166df4,_0x357a4a,_0x2ca025,_0x2b2fb3){return _0x2b6123(_0x357a4a,_0x357a4a-0x1df,_0x2ca025- -0x2e9,_0x2b2fb3-_0x31c64f._0x74716d);}function _0x3e97b6(_0x6bdb44,_0x38aba1,_0x597f4e,_0x30a105){return _0x2b6123(_0x30a105,_0x38aba1-_0x271ff6._0x2663b2,_0x38aba1- -_0x271ff6._0x410537,_0x30a105-0x38);}return''+trimTrailingSlashes(this[_0x3e97b6(0x127,_0x32f594._0x467629,0x210,_0x32f594._0x56efe9)])+this[_0x3e97b6(0x198,0x141,0x12b,0x1ca)]+'::'+_0x2d414b;}async[_0x2b6123(0x3e8,0x351,0x337,0x31e)](_0x274863){const _0x3667fc={_0x586f48:0x196,_0x90712c:0xa8,_0x563a46:0x71,_0x3625b4:0x21,_0x42a1d6:0x3c,_0x5b7950:0xd0,_0xc7eba7:0xad,_0x5e1b2c:0x2df,_0x5bed4b:0x28b},_0x197f76={_0x2e72d4:0x2e},_0x5b5515={_0xe49f4e:0x58,_0x386fb5:0x167},_0x19cd03=_0x274863[_0x1f4151(_0x3667fc._0x586f48,0x172,0xd0,0x10e)][_0x1f4151(_0x3667fc._0x90712c,-_0x3667fc._0x563a46,-_0x3667fc._0x3625b4,0x44)](()=>{});let _0x4e681a;function _0x1b33ac(_0x615459,_0x19398b,_0x5b5d03,_0x4c62b3){return _0x2b6123(_0x615459,_0x19398b-0x1a3,_0x5b5d03- -_0x5b5515._0xe49f4e,_0x4c62b3-_0x5b5515._0x386fb5);}function _0x1f4151(_0x355864,_0x3caf2c,_0x3b7b79,_0x3db1fe){return _0x2b6123(_0x3caf2c,_0x3caf2c-_0x197f76._0x2e72d4,_0x3b7b79- -0x2bf,_0x3db1fe-0x1f1);}const _0xff8d20=new Promise(_0x3f8630=>{_0x4e681a=_0x3f8630;});return _0x274863[_0x1f4151(0xfd,_0x3667fc._0x42a1d6,_0x3667fc._0x5b7950,_0x3667fc._0xc7eba7)]=_0x19cd03[_0x1b33ac(_0x3667fc._0x5e1b2c,0x2f7,_0x3667fc._0x5bed4b,0x2e8)](()=>_0xff8d20),await _0x19cd03,()=>{_0x4e681a?.();};}async[_0x2b6123(0x32d,0x234,0x28c,0x248)](_0x2c9084,_0x33402d){const _0x3ed171={_0x42d5ce:0x9b,_0x7c8315:0xfd,_0xea056d:0x1b7,_0x1a9f6c:0x2eb,_0x54903a:0x30d,_0x3be3bb:0x212,_0x192b33:0x185,_0x2faf77:0x104,_0x209b9b:0x117,_0x2dfc47:0x13f,_0xa68bff:0x1f4,_0x4fb14f:0x250,_0x148a7e:0x263,_0x18abaf:0x23d,_0x4b2947:0x23e,_0x1b35a4:0x34,_0x761769:0xf0,_0x3c3f94:0x19e,_0x265317:0x13f,_0x42f715:0x1d9,_0x5cb984:0xd0,_0x502d21:0xd4,_0x318fa7:0x152,_0x33e0c3:0xa6},_0x192ee3={_0x36815f:0x1d2},_0x237bea={_0x27fe17:0x432,_0x433558:0x156},_0x38456e=this[_0x51dbec(-_0x3ed171._0x42d5ce,-_0x3ed171._0x7c8315,-_0x3ed171._0xea056d,-0x16d)](_0x2c9084);function _0x51dbec(_0xcf8b0f,_0x49e083,_0x4e2490,_0x120081){return _0x2b6123(_0x4e2490,_0x49e083-0x1b0,_0x49e083- -_0x237bea._0x27fe17,_0x120081-_0x237bea._0x433558);}const _0x18cb16=toModelRequest(_0x38456e),_0x4d4cf6=await prepareProviderRequest(_0x18cb16,{'sessionManager':this[_0x226b10(0x37c,0x327,0x2a9,_0x3ed171._0x1a9f6c)],'requestMutators':this[_0x226b10(_0x3ed171._0x54903a,_0x3ed171._0x3be3bb,0x199,0x24d)],'signal':_0x33402d}),_0x11b805=toChatRequest(_0x4d4cf6[_0x51dbec(-0xdb,-_0x3ed171._0x192b33,-_0x3ed171._0x2faf77,-_0x3ed171._0x209b9b)]),_0x270163=this[_0x51dbec(-_0x3ed171._0x2dfc47,-_0x3ed171._0xa68bff,-0x15f,-0x1ff)]['resolveCredential'](this[_0x226b10(_0x3ed171._0x4fb14f,_0x3ed171._0x148a7e,_0x3ed171._0x18abaf,_0x3ed171._0x4b2947)],_0x4d4cf6[_0x51dbec(-0xcd,-0xa6,-_0x3ed171._0x1b35a4,-_0x3ed171._0x761769)]);if(!_0x270163)throw this['createMissingCredentialError']();function _0x226b10(_0x36f4bf,_0x3c2157,_0x25ea36,_0x142893){return _0x2b6123(_0x36f4bf,_0x3c2157-_0x192ee3._0x36815f,_0x142893- -0xc9,_0x142893-0x9);}return{'baseUrl':this[_0x51dbec(-_0x3ed171._0x3c3f94,-0x1f4,-_0x3ed171._0x265317,-_0x3ed171._0x42f715)][_0x226b10(0x213,0x366,0x2ed,0x2c2)](this['baseUrl'],_0x4d4cf6[_0x51dbec(-_0x3ed171._0x5cb984,-0xa6,-0x54,-_0x3ed171._0x502d21)]),'credential':_0x270163,'request':_0x11b805,'session':_0x4d4cf6[_0x51dbec(-_0x3ed171._0x318fa7,-_0x3ed171._0x33e0c3,-0x37,-0xa0)]};}['buildResponsesSocketEvent'](_0x17a737,_0xe88407,_0x2fa0f6={}){const _0x4f6ab3={_0x916cc2:0x1d6,_0x1bfd2b:0x13e,_0x5eb868:0xf3,_0x5e15c2:0xc6,_0xe80708:0x10e,_0x3dcf2a:0x98,_0xab362d:0xa9,_0x585e1a:0x51,_0x10b5ca:0x589,_0x781224:0x4f8},_0x67d597={_0x1837d7:0x48},_0x1ed7df={_0xae459a:0x115,_0xb82045:0x17e};function _0x5245b1(_0x48b0dd,_0x2865f1,_0x5a35f8,_0x1a7746){return _0x38c793(_0x5a35f8,_0x2865f1-_0x1ed7df._0xae459a,_0x2865f1-0x18c,_0x1a7746-_0x1ed7df._0xb82045);}function _0x34c736(_0x2443e9,_0x539070,_0x156f29,_0x112a41){return _0x2b6123(_0x2443e9,_0x539070-_0x67d597._0x1837d7,_0x156f29- -0x207,_0x112a41-0x40);}if(!_0x2fa0f6[_0x34c736(0x1cc,_0x4f6ab3._0x916cc2,0x12c,0x104)]){const _0x899aef=this['findResponsesSocketCheckpoint'](_0x17a737);if(_0x899aef&&_0xe88407[_0x34c736(0xe1,0xc9,_0x4f6ab3._0x1bfd2b,0xd2)]&&_0x899aef[_0x34c736(_0x4f6ab3._0x5eb868,0xb0,_0x4f6ab3._0x5e15c2,0x47)]===_0xe88407[_0x34c736(_0x4f6ab3._0xe80708,_0x4f6ab3._0x3dcf2a,_0x4f6ab3._0x1bfd2b,0xc9)]){const _0x4c9bd9=toOpenAiResponsesRequest({..._0x17a737,'messages':_0x17a737['messages']['slice'](_0x899aef[_0x34c736(0x1e,-0x8,_0x4f6ab3._0xab362d,_0x4f6ab3._0x585e1a)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x17a737,{'input':_0x4c9bd9,'previousResponseId':_0x899aef[_0x5245b1(0x5eb,_0x4f6ab3._0x10b5ca,0x502,_0x4f6ab3._0x781224)]}),'previousResponseId':_0x899aef['responseId']};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x17a737)};}['findResponsesSocketCheckpoint'](_0x2d2408){const _0x155e4a={_0x48c7d8:0x579,_0x417c40:0x50d,_0x1406d2:0x179,_0xd1d598:0x1d,_0x4ae022:0xb7,_0x5329c2:0x12e,_0x21787f:0x60a,_0x2a322d:0x6a8,_0x4cbd39:0x648,_0xeeacf1:0x108,_0x4fc7df:0x12,_0x42d6b8:0x66},_0x581ecc={_0x3975a6:0xfd,_0x3c09dc:0x1e8},_0x58420b={_0x176421:0x196,_0x4679a6:0x2da,_0x5c49ea:0x1dd};function _0x4d3f1f(_0xc0cb94,_0xe4a832,_0x1861ad,_0x37cab5){return _0x2b6123(_0xe4a832,_0xe4a832-_0x58420b._0x176421,_0x1861ad-_0x58420b._0x4679a6,_0x37cab5-_0x58420b._0x5c49ea);}for(let _0x31c155=_0x2d2408[_0x4d3f1f(0x5a3,0x58e,_0x155e4a._0x48c7d8,_0x155e4a._0x417c40)][_0x2b163f(0x110,0xb3,_0x155e4a._0x1406d2,0x157)]-0x1;_0x31c155>=0x0;_0x31c155-=0x1){const _0x5035d2=_0x2d2408[_0x2b163f(_0x155e4a._0xd1d598,_0x155e4a._0x4ae022,_0x155e4a._0x5329c2,0xf6)][_0x31c155],_0x11f471=_0x5035d2[_0x4d3f1f(0x640,_0x155e4a._0x21787f,0x5f5,0x581)]===_0x4d3f1f(_0x155e4a._0x2a322d,0x623,_0x155e4a._0x4cbd39,0x6b1)?_0x5035d2[_0x4d3f1f(0x621,0x6cc,0x67a,0x6a6)]?.[_0x2b163f(_0x155e4a._0xeeacf1,0x7a,_0x155e4a._0x4fc7df,_0x155e4a._0x42d6b8)]:void 0x0;if(_0x11f471)return{'messageIndex':_0x31c155,'responseId':_0x11f471};}function _0x2b163f(_0x343dc7,_0x4c65f1,_0x17f92a,_0x319976){return _0x2b6123(_0x319976,_0x4c65f1-_0x581ecc._0x3975a6,_0x4c65f1- -_0x581ecc._0x3c09dc,_0x319976-0x67);}return void 0x0;}[_0x2b6123(0x30b,0x306,0x25e,0x1ee)](_0x743ffc){const _0x360730={_0x3de556:0x43e,_0x135adb:0x458,_0x5c5598:0x4bb,_0x4b0f24:0x40b,_0x292c36:0x415,_0x4c8e3d:0x379,_0x51898c:0x41a,_0x1f9d33:0x4dc,_0x4ed48d:0x458},_0xead5d7={_0x42e203:0xc3,_0x19ecf1:0xb7},_0x512958={_0x182f44:0xb0};function _0x2a493e(_0x5258ae,_0x30f73b,_0x584804,_0xb4fbd1){return _0x38c793(_0x584804,_0x30f73b-0x3d,_0x5258ae- -_0x512958._0x182f44,_0xb4fbd1-0x11c);}function _0x4fa5d7(_0x4b8be4,_0x1dfede,_0x3cec30,_0x30dd43){return _0x38c793(_0x1dfede,_0x1dfede-0xed,_0x30dd43- -_0xead5d7._0x42e203,_0x30dd43-_0xead5d7._0x19ecf1);}return _0x743ffc instanceof OpenAiResponsesStreamError&&(_0x743ffc[_0x2a493e(_0x360730._0x3de556,_0x360730._0x135adb,_0x360730._0x5c5598,0x441)]===_0x4fa5d7(_0x360730._0x4b0f24,_0x360730._0x292c36,0x3f7,_0x360730._0x4c8e3d)||_0x743ffc['code']===_0x2a493e(_0x360730._0x51898c,0x46b,_0x360730._0x1f9d33,_0x360730._0x4ed48d));}[_0x2b6123(0x3b7,0x2e2,0x339,0x2d9)](_0x228260){const _0x3e9a2c={_0x57555d:0x396,_0x5095e5:0x374,_0x2b1ce8:0x395,_0x1bf09a:0x392,_0x44c387:0x143,_0x29c009:0x18e,_0x1a74a6:0x65,_0x1e736f:0x135,_0x44f3c6:0x8b,_0x276008:0x4c5,_0x554683:0x54f,_0x5562c6:0x3b8,_0x3d9617:0x335,_0x519a1b:0x3ed},_0x5cd15f=_0x228260[_0x1d6758(0x11f,0x71,0x58,0x1d)];_0x228260[_0x15aa62(0x439,0x38a,_0x3e9a2c._0x57555d,_0x3e9a2c._0x5095e5)]=void 0x0,_0x228260[_0x15aa62(_0x3e9a2c._0x2b1ce8,0x3f3,0x360,_0x3e9a2c._0x1bf09a)]=void 0x0,_0x228260[_0x1d6758(0x1d6,_0x3e9a2c._0x44c387,0x17a,_0x3e9a2c._0x29c009)]=void 0x0;function _0x15aa62(_0x22dee8,_0x130b2d,_0x5e005f,_0xfdecf6){return _0x38c793(_0x130b2d,_0x130b2d-0x20,_0xfdecf6- -0x2f,_0xfdecf6-0x15f);}function _0x1d6758(_0x5a7894,_0x5c90a4,_0x8789ca,_0x344f13){return _0x38c793(_0x8789ca,_0x5c90a4-0x143,_0x5c90a4- -0x332,_0x344f13-0xba);}_0x5cd15f?.[_0x1d6758(_0x3e9a2c._0x1a74a6,0xb2,_0x3e9a2c._0x1e736f,_0x3e9a2c._0x44f3c6)]===WebSocket[_0x15aa62(_0x3e9a2c._0x276008,0x405,_0x3e9a2c._0x554683,0x48b)]&&_0x5cd15f[_0x15aa62(_0x3e9a2c._0x5562c6,_0x3e9a2c._0x3d9617,_0x3e9a2c._0x519a1b,0x3d6)](0x3e8,'reset');}async[_0x2b6123(0x334,0x2e0,0x394,0x3f3)](_0x355c22,_0x2a626a,_0x300f4a,_0x164712,_0xd182d1){const _0x2453c6={_0x22aeea:0x116,_0x3f76f2:0xec,_0x5b156f:0xcc,_0x5d823e:0x33,_0x2e8dca:0x60,_0x1756d1:0x15,_0x3d4556:0x92,_0x5034bd:0x1c5,_0x2903b9:0x16b,_0x5012d3:0x1e5,_0x1d9b26:0x78,_0x116b47:0x11,_0x5abda2:0xc3,_0x40a723:0x114,_0x6172b3:0x288},_0x27ffb3={_0x3df91c:0x1a5,_0x3b38c1:0x107,_0x1a606b:0x110,_0x5c7902:0x1e,_0x212de6:0x4a,_0x2e3fb6:0x207,_0x3ef11e:0x2c4,_0x4e74b8:0x3e,_0x1ea86c:0x40,_0xdc62a1:0x19,_0x48999a:0xc7,_0x31647f:0xbd,_0x5f5b97:0x101,_0x527068:0x64,_0x2adaa1:0x36e,_0x42c4dd:0x2af,_0x2dc7c6:0x1eb,_0xd09ef5:0x1cd,_0x17fd8f:0x36,_0x5b7749:0x4f,_0x3a54ed:0x276,_0x469223:0x215,_0x1c7f30:0x1b5,_0x17b645:0x1fd,_0x535f4a:0x22c,_0x3466e5:0x2ca,_0x3b110c:0x260,_0x283b0c:0x393,_0x5369a0:0x29,_0x8ee6c8:0x233,_0x4dfe1b:0x5c},_0xb703dc={_0x151b8a:0x1ed,_0x1eb0da:0x31},_0x5b3746={_0x4e6a01:0x1c5,_0x471dbf:0x206,_0xe36390:0x1f0,_0x2ae086:0x1dd},_0x5679fa={_0x5e5567:0x456,_0x4f3b62:0x11},_0x62c2b={_0x20fe68:0x47,_0x1b0d64:0x6f};function _0x2be7d6(_0x202bbe,_0x5a6123,_0x56fd63,_0x189fc6){return _0x2b6123(_0x189fc6,_0x5a6123-_0x62c2b._0x20fe68,_0x56fd63- -0x280,_0x189fc6-_0x62c2b._0x1b0d64);}if(_0x2a626a['socket']?.[_0x2f1ca8(-0x107,-0x1cb,-0x1a2,-_0x2453c6._0x22aeea)]===WebSocket[_0x2f1ca8(-_0x2453c6._0x3f76f2,-0x9c,-_0x2453c6._0x5b156f,-_0x2453c6._0x5d823e)])return _0x2a626a[_0x2be7d6(-_0x2453c6._0x2e8dca,0x2,-0xd,-_0x2453c6._0x1756d1)];if(_0x2a626a[_0x2be7d6(-0xb2,_0x2453c6._0x3d4556,0x11,0x12)])return await _0x2a626a[_0x2f1ca8(-0x1f7,-0x145,-_0x2453c6._0x5034bd,-0x1dc)];function _0x2f1ca8(_0x3d28d9,_0x47bac8,_0x5d12db,_0x2e7e97){return _0x2b6123(_0x3d28d9,_0x47bac8-0x1d4,_0x5d12db- -_0x5679fa._0x5e5567,_0x2e7e97-_0x5679fa._0x4f3b62);}_0x2a626a[_0x2f1ca8(-_0x2453c6._0x2903b9,-0x1b5,-0x1c5,-_0x2453c6._0x5012d3)]=((async()=>{const _0x2f3fc3={_0x4329f6:0x378,_0x2c73c9:0x13c},_0x6410f4={_0x5ba6b1:0x125,_0x1cc35f:0x1ae,_0x1be542:0x1c0},_0x29f6f0=await this[_0x240efe(0x248,_0x27ffb3._0x3df91c,0x235,0x26a)]({'request':_0x300f4a[_0x39371e(-_0x27ffb3._0x3b38c1,-_0x27ffb3._0x1a606b,_0x27ffb3._0x5c7902,-_0x27ffb3._0x212de6)],'body':_0x164712,'credential':_0x300f4a[_0x240efe(_0x27ffb3._0x2e3fb6,_0x27ffb3._0x3ef11e,0x384,0x23e)],'session':_0x300f4a['session'],'stream':!![]},{'accept':'application/json','includeContentType':![]});_0x29f6f0[_0x39371e(-0xa,-_0x27ffb3._0x4e74b8,_0x27ffb3._0x1ea86c,_0x27ffb3._0xdc62a1)](_0x39371e(-0x38,_0x27ffb3._0x48999a,_0x27ffb3._0x31647f,0x29));const _0x6137de=this['webSocketFactory']({'headers':Object[_0x39371e(0x18,_0x27ffb3._0x5f5b97,0xfb,_0x27ffb3._0x527068)](_0x29f6f0['entries']()),'url':(''+_0x300f4a[_0x240efe(0x36e,0x2d9,0x277,_0x27ffb3._0x2adaa1)]+this['responsesPath'])['replace'](/^http:/,'ws:')[_0x240efe(_0x27ffb3._0x42c4dd,0x270,_0x27ffb3._0x2dc7c6,_0x27ffb3._0xd09ef5)](/^https:/,'wss:')});function _0x240efe(_0x5f1de0,_0x1e8b52,_0x1058e6,_0x4ca565){return _0x2be7d6(_0x5f1de0-_0x6410f4._0x5ba6b1,_0x1e8b52-_0x6410f4._0x1cc35f,_0x1e8b52-_0x6410f4._0x1be542,_0x4ca565);}const _0x37e1ca=()=>{const _0x16dc02={_0x1284fd:0xd7};function _0x3ff33c(_0x4dd804,_0x285df2,_0x2388d6,_0x4cb91d){return _0x39371e(_0x2388d6,_0x285df2-_0x16dc02._0x1284fd,_0x2388d6-0x105,_0x4cb91d-0x8c);}function _0x3a2e35(_0x537e5b,_0x5d81b6,_0x32b1de,_0x34d9da){return _0x240efe(_0x537e5b-0x147,_0x5d81b6- -_0x2f3fc3._0x4329f6,_0x32b1de-_0x2f3fc3._0x2c73c9,_0x32b1de);}_0x2a626a[_0x3a2e35(-0x230,-_0x5b3746._0x4e6a01,-_0x5b3746._0x471dbf,-0x19b)]===_0x6137de&&(_0x2a626a[_0x3a2e35(-_0x5b3746._0xe36390,-_0x5b3746._0x4e6a01,-0x1ec,-_0x5b3746._0x2ae086)]=void 0x0,_0x2a626a['lastResponseId']=void 0x0);};_0x6137de[_0x39371e(0x3c,_0x27ffb3._0x17fd8f,-0x8,-_0x27ffb3._0x5b7749)](_0x240efe(_0x27ffb3._0x3a54ed,_0x27ffb3._0x469223,_0x27ffb3._0x1c7f30,_0x27ffb3._0x17b645),_0x37e1ca);function _0x39371e(_0x51b182,_0x499816,_0x5296c0,_0x687a28){return _0x2be7d6(_0x51b182-_0xb703dc._0x151b8a,_0x499816-_0xb703dc._0x1eb0da,_0x687a28- -0x77,_0x51b182);}try{return throwIfAborted(_0xd182d1),_0x6137de['readyState']!==WebSocket[_0x240efe(_0x27ffb3._0x535f4a,_0x27ffb3._0x3466e5,_0x27ffb3._0x3b110c,_0x27ffb3._0x283b0c)]&&await waitForWebSocketOpen(_0x6137de,_0xd182d1),throwIfAborted(_0xd182d1),_0x2a626a[_0x39371e(0x47,-0x117,_0x27ffb3._0x5369a0,-0x84)]=_0x6137de,_0x6137de;}catch(_0x2bac16){_0x37e1ca();_0x6137de[_0x240efe(0x224,0x1f4,0x273,0x155)]===WebSocket[_0x240efe(_0x27ffb3._0x8ee6c8,0x2ca,0x312,0x292)]&&_0x6137de['close'](0x3e8,_0x39371e(-0x8c,0x18,_0x27ffb3._0x4dfe1b,0x38));throw _0x2bac16;}})());try{return await _0x2a626a[_0x2be7d6(0x3e,_0x2453c6._0x1d9b26,_0x2453c6._0x116b47,_0x2453c6._0x5abda2)];}finally{_0x2a626a[_0x2f1ca8(-_0x2453c6._0x40a723,-_0x2453c6._0x6172b3,-0x1c5,-0x256)]=void 0x0;}}async*[_0x2b6123(0x329,0x348,0x381,0x2fe)](_0x4e6134,_0x45fd0d){const _0xffe19d={_0x581014:0x113,_0x4a2689:0x2e,_0x2a98b0:0xa,_0x58a764:0x2d,_0x2da71d:0x42,_0x489d91:0x45,_0x46e6f7:0xc9,_0x2e27c1:0x202,_0x482e63:0x274,_0x128b31:0x3bc,_0x1f3907:0x2e,_0x30c48e:0x4,_0x3f6649:0x2c6,_0xde146:0x14c,_0x5a7c39:0x7b,_0x5de4f5:0x311,_0x1bec1f:0x274,_0x512c7b:0x1ad,_0x5daa0e:0x2ee,_0xcf0af6:0x262,_0x1f900e:0x273,_0x4f65aa:0x2e6,_0x17ab6b:0x36b,_0x3c7558:0x34e,_0x3aa07a:0x37d,_0x37bb46:0x392,_0xfaca53:0x81,_0x1a1863:0xd8,_0x53a2f2:0x323,_0x122df5:0x103,_0x3d28f5:0x129,_0x49793a:0x21,_0x4b1296:0x10,_0xa9db21:0x56},_0xb670d6={_0x3d23c5:0x5,_0x455d8a:0x15e},_0x55ee9a={_0xe6190c:0x10d,_0x40d546:0x2b8};function _0x265ec1(_0x3fc16e,_0x3d9913,_0x170980,_0x3c74b){return _0x2b6123(_0x170980,_0x3d9913-_0x55ee9a._0xe6190c,_0x3fc16e- -_0x55ee9a._0x40d546,_0x3c74b-0x16b);}const _0x1d8b0a=this[_0x265ec1(0x7d,_0xffe19d._0x581014,0x78,-_0xffe19d._0x4a2689)](_0x4e6134);function _0x310c5a(_0x1057bc,_0x3d9c29,_0x224eba,_0x115fd6){return _0x2b6123(_0x224eba,_0x3d9c29-_0xb670d6._0x3d23c5,_0x3d9c29-0x15,_0x115fd6-_0xb670d6._0x455d8a);}const _0x1d3924=this[_0x265ec1(-_0xffe19d._0x2a98b0,0x66,_0xffe19d._0x58a764,-_0xffe19d._0x2da71d)](_0x1d8b0a[_0x265ec1(0x103,_0xffe19d._0x489d91,0xde,_0xffe19d._0x46e6f7)][_0x310c5a(_0xffe19d._0x2e27c1,_0xffe19d._0x482e63,0x330,0x1c5)]),_0x4f3766=await this[_0x310c5a(0x39b,0x34c,0x301,_0xffe19d._0x128b31)](_0x1d3924);try{const _0x4292e7=this[_0x265ec1(-_0xffe19d._0x1f3907,-0x78,0x4f,_0xffe19d._0x30c48e)](_0x1d8b0a,_0x1d3924);try{yield*this[_0x310c5a(0x264,0x323,0x30a,_0xffe19d._0x3f6649)](_0x1d8b0a[_0x265ec1(0x103,_0xffe19d._0xde146,0x181,_0xffe19d._0x5a7c39)][_0x310c5a(_0xffe19d._0x5de4f5,_0xffe19d._0x1bec1f,_0xffe19d._0x512c7b,0x298)],_0x1d3924,_0x1d8b0a,_0x4292e7['event'],_0x45fd0d?.[_0x310c5a(0x329,_0xffe19d._0x5daa0e,0x35d,_0xffe19d._0xcf0af6)]);return;}catch(_0x8b6663){if(!_0x4292e7['previousResponseId']||!this[_0x310c5a(0x30f,_0xffe19d._0x1f900e,_0xffe19d._0x4f65aa,0x2cc)](_0x8b6663)){this[_0x310c5a(_0xffe19d._0x17ab6b,_0xffe19d._0x3c7558,_0xffe19d._0x3aa07a,_0xffe19d._0x37bb46)](_0x1d3924);throw _0x8b6663;}}this[_0x265ec1(_0xffe19d._0xfaca53,0x71,_0xffe19d._0x1a1863,0x10f)](_0x1d3924);const _0x2f5a47=this[_0x265ec1(-0x2e,0x3,0x90,-0x61)](_0x1d8b0a,_0x1d3924,{'forceFullReplay':!![]});yield*this[_0x310c5a(0x2c1,_0xffe19d._0x53a2f2,0x3a3,0x2ea)](_0x1d8b0a[_0x265ec1(_0xffe19d._0x122df5,_0xffe19d._0x3d28f5,0x105,0x12f)]['sessionId'],_0x1d3924,_0x1d8b0a,_0x2f5a47['event'],_0x45fd0d?.[_0x265ec1(_0xffe19d._0x49793a,-_0xffe19d._0x4b1296,-0x60,-_0xffe19d._0xa9db21)]);}finally{_0x4f3766();}}async*['streamViaResponsesSocketAttempt'](_0x4cdd30,_0x128bd2,_0x207285,_0x477492,_0x10aa69){const _0x4f6f34={_0x27cfcc:0x63,_0x2cae42:0x351,_0xc246e4:0x3c3,_0x2c558c:0x85,_0x5c6a3b:0x31,_0x3f5617:0x1c0,_0x55fa79:0x1c6,_0x315c87:0x1ea,_0x3ff53f:0x16a,_0x1a3340:0x24b,_0x22b55b:0x21b,_0x4752ab:0x2ac,_0x504166:0x15e,_0x2fc71d:0x6d,_0x54d817:0xd3,_0x37906f:0x15b,_0x2ee9c8:0x40,_0x36f8b5:0x43,_0x57a673:0x3f,_0x14d0a0:0x46,_0x2f68a1:0x4c,_0x486dbb:0x16c,_0x1a752b:0x12e,_0x79e0aa:0x15,_0x141d8f:0x1c,_0x4272b2:0x2ae,_0x5bfa7b:0x318},_0xc27a93={_0x2b1c88:0x5b},_0x5e0581={_0x3fa491:0x1cb,_0x20ae88:0x361},_0x305327=await this[_0x31f7b2(-0x3c,-0x192,-0xd5,-_0x4f6f34._0x27cfcc)](_0x207285,_0x10aa69),_0x23d12c=await this[_0x29acd4(0x2da,_0x4f6f34._0x2cae42,0x35e,_0x4f6f34._0xc246e4)](_0x4cdd30,_0x128bd2,_0x305327,_0x477492,_0x10aa69);function _0x31f7b2(_0x3f6657,_0x4107b9,_0xcd1f22,_0x36fe8d){return _0x2b6123(_0x36fe8d,_0x4107b9-_0x5e0581._0x3fa491,_0xcd1f22- -_0x5e0581._0x20ae88,_0x36fe8d-0xdb);}const _0xe43159=createOpenAiResponsesStreamParser(_0x207285);throwIfAborted(_0x10aa69),_0x23d12c[_0x31f7b2(-_0x4f6f34._0x2c558c,-_0x4f6f34._0x5c6a3b,-0xb5,-0xc8)](JSON[_0x29acd4(0x1b1,0x1fa,0x254,_0x4f6f34._0x3f5617)](_0x477492));for await(const _0x420e4f of iterateWebSocketMessages(_0x23d12c,_0x10aa69)){const _0x2a0d57=_0xe43159[_0x29acd4(_0x4f6f34._0x55fa79,_0x4f6f34._0x315c87,0x1b7,_0x4f6f34._0x3ff53f)]?.(_0x420e4f)??[];yield*_0x2a0d57;if(_0xe43159[_0x29acd4(0x2b2,_0x4f6f34._0x1a3340,_0x4f6f34._0x22b55b,_0x4f6f34._0x4752ab)]?.())break;}if(!_0xe43159[_0x31f7b2(-_0x4f6f34._0x504166,-_0x4f6f34._0x2fc71d,-_0x4f6f34._0x54d817,-_0x4f6f34._0x37906f)]?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x712e65=_0xe43159[_0x31f7b2(_0x4f6f34._0x2ee9c8,0x2b,0x2d,-0x40)](),_0x1755eb=_0x712e65[_0x31f7b2(0x2e,-_0x4f6f34._0x36f8b5,_0x4f6f34._0x57a673,-_0x4f6f34._0x14d0a0)]?.[_0x31f7b2(-_0x4f6f34._0x2f68a1,-_0x4f6f34._0x486dbb,-0xff,-_0x4f6f34._0x1a752b)]??_0x712e65['id'];_0x1755eb&&(_0x128bd2[_0x31f7b2(-0x57,-_0x4f6f34._0x79e0aa,-_0x4f6f34._0x141d8f,-0x3e)]=_0x1755eb);function _0x29acd4(_0x122a79,_0x115857,_0x53c0d8,_0x33d003){return _0x2b6123(_0x53c0d8,_0x115857-0xbe,_0x115857- -0x43,_0x33d003-_0xc27a93._0x2b1c88);}yield{'type':_0x29acd4(0x23d,_0x4f6f34._0x4272b2,_0x4f6f34._0x5bfa7b,0x35c),'response':_0x712e65};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x38c793(0x3fc,0x38e,0x3e7,0x3c8),'openai-chat-completions','openai-responses',_0x38c793(0x3eb,0x421,0x430,0x394)];function isAnthropicSurface(_0x5a0634){const _0x1576ba={_0x52289a:0x1c8,_0x348327:0x1aa},_0x21459e={_0x15b401:0x100,_0x3c9f0d:0x2c0};function _0x31582e(_0x14c060,_0x273ad4,_0x16fd98,_0x125862){return _0x38c793(_0x273ad4,_0x273ad4-_0x21459e._0x15b401,_0x14c060- -_0x21459e._0x3c9f0d,_0x125862-0x1e4);}return _0x5a0634===_0x31582e(0x127,_0x1576ba._0x52289a,0x1ca,_0x1576ba._0x348327);}function resolveDefaultBaseUrl(_0x1eec09){const _0x1dadf0={_0x95c94a:0x290,_0x95a7d1:0x257},_0x2d207b={_0x2205d2:0x144},_0x129ff0={_0xcefaf7:0x1a0,_0x44cd7a:0x4af,_0x43283c:0x18c};function _0x1002c8(_0x1bde65,_0x1f3cd0,_0x2368f4,_0x12ab64){return _0x38c793(_0x2368f4,_0x1f3cd0-_0x129ff0._0xcefaf7,_0x1f3cd0- -_0x129ff0._0x44cd7a,_0x12ab64-_0x129ff0._0x43283c);}function _0x22e403(_0x18914d,_0x40824b,_0x3cafef,_0x5aae88){return _0x38c793(_0x5aae88,_0x40824b-0xcd,_0x18914d- -_0x2d207b._0x2205d2,_0x5aae88-0x138);}return isAnthropicSurface(_0x1eec09)?_0x22e403(0x244,0x194,0x1ab,_0x1dadf0._0x95c94a):_0x22e403(0x25a,0x211,0x2c0,_0x1dadf0._0x95a7d1);}var ChatModel=class{[_0x38c793(0x515,0x52d,0x4ac,0x3e3)];[_0x38c793(0x34d,0x3ab,0x39f,0x3b6)];[_0x2b6123(0x1ce,0x20d,0x23c,0x1fc)];['anthropicDelegate'];[_0x2b6123(0x330,0x442,0x3b0,0x36f)];constructor(_0x30b71a={}){const _0x1b46d2={_0x5396ce:0x252,_0xf27461:0x2b9,_0x1d8281:0x29c,_0x5342c2:0xe1,_0x233aae:0xbd,_0x235d87:0x156,_0x1715f7:0x59a,_0x515fdc:0x4fe,_0xeac540:0x4fc,_0x3f1693:0x470,_0x47d2f7:0x53c,_0x1e2f21:0x5c4,_0x5ea4ce:0x1cf,_0x5d5c9a:0x211,_0x542232:0x4bd,_0xaccd80:0x4da,_0x57198d:0x1a5,_0x36154d:0x28e,_0x488ce5:0x263,_0xa4d346:0x1e4,_0x3d6f88:0x225,_0x10b082:0x65f,_0x28ed21:0x5c7,_0x17995f:0x5c5,_0x3a46c0:0x646,_0x41f71e:0x60f,_0x240a2c:0x1a1,_0x2985e5:0x91,_0x46035d:0x6ca,_0x3b8319:0x67d,_0x5464b6:0x63c,_0x5c830f:0xb4,_0x18daf7:0x137,_0x47863e:0x5bc,_0x5d39db:0x56e,_0x1aad3b:0x5d6,_0x211e71:0x696,_0x20140f:0x2c5,_0x5b4067:0x248},_0x477f29={_0x209338:0x6,_0xa1eaa3:0x249},_0x3c5c6e={_0x534ea5:0x64,_0x5298c1:0x2c0};this['model']=_0x30b71a[_0x2c9f34(0x2a8,0x1f3,_0x1b46d2._0x5396ce,0x263)]??_0x2c9f34(_0x1b46d2._0xf27461,_0x1b46d2._0x1d8281,0x26b,0x279),this[_0x2c9f34(_0x1b46d2._0x5342c2,0x1a6,_0x1b46d2._0x233aae,_0x1b46d2._0x235d87)]=_0x30b71a[_0x45c0a3(0x4e7,0x51c,0x52f,0x526)]??0x4000;function _0x45c0a3(_0x3d66b9,_0x136af4,_0x27c63f,_0xf2d7ad){return _0x2b6123(_0x136af4,_0x136af4-_0x3c5c6e._0x534ea5,_0x27c63f-_0x3c5c6e._0x5298c1,_0xf2d7ad-0x153);}this[_0x45c0a3(_0x1b46d2._0x1715f7,0x436,0x4fc,0x451)]=_0x30b71a[_0x45c0a3(0x4a5,_0x1b46d2._0x515fdc,_0x1b46d2._0xeac540,_0x1b46d2._0x3f1693)]??_0x45c0a3(_0x1b46d2._0x47d2f7,_0x1b46d2._0x1e2f21,0x504,0x51b);const _0x32cd69=trimTrailingSlashes(_0x30b71a[_0x2c9f34(_0x1b46d2._0x5ea4ce,_0x1b46d2._0x5d5c9a,0x1fa,0x280)]??resolveDefaultBaseUrl(this[_0x45c0a3(_0x1b46d2._0x542232,_0x1b46d2._0xaccd80,0x4fc,0x498)]));if(isAnthropicSurface(this['surface'])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x30b71a['apiKey'],'authScheme':_0x30b71a['authScheme'],'baseUrl':_0x32cd69,'fetch':_0x30b71a[_0x2c9f34(_0x1b46d2._0x57198d,_0x1b46d2._0x36154d,0x288,0x244)],'maxTokens':this['maxTokens'],'model':this[_0x2c9f34(0x1ed,0x31f,0x19c,_0x1b46d2._0x488ce5)],'reasoning':_0x30b71a[_0x2c9f34(0x30b,_0x1b46d2._0xa4d346,_0x1b46d2._0x3d6f88,0x250)],'providerSessionResolver':_0x30b71a['providerSessionResolver'],'requestMutators':_0x30b71a['requestMutators']});return;}function _0x2c9f34(_0x4f2483,_0x4ca95d,_0x1e2d84,_0x34615b){return _0x38c793(_0x4ca95d,_0x4ca95d-_0x477f29._0x209338,_0x34615b- -_0x477f29._0xa1eaa3,_0x34615b-0x74);}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x30b71a[_0x45c0a3(_0x1b46d2._0x10b082,0x60f,_0x1b46d2._0x28ed21,0x52c)],'baseUrl':_0x32cd69,'fetch':_0x30b71a['fetch'],'headerResolver':_0x30b71a[_0x45c0a3(_0x1b46d2._0x17995f,_0x1b46d2._0x3a46c0,0x604,_0x1b46d2._0x41f71e)],'maxTokens':this[_0x2c9f34(_0x1b46d2._0x240a2c,_0x1b46d2._0x2985e5,0x1a9,0x156)],'model':this[_0x45c0a3(_0x1b46d2._0x46035d,_0x1b46d2._0x3b8319,_0x1b46d2._0x5464b6,0x574)],'reasoning':_0x30b71a['reasoning'],'providerSessionResolver':_0x30b71a[_0x2c9f34(_0x1b46d2._0x5c830f,0xc5,_0x1b46d2._0x18daf7,0x135)],'requestMutators':_0x30b71a[_0x45c0a3(_0x1b46d2._0x47863e,_0x1b46d2._0x5d39db,_0x1b46d2._0x1aad3b,_0x1b46d2._0x211e71)],'webSocketFactory':_0x30b71a[_0x2c9f34(_0x1b46d2._0x20140f,_0x1b46d2._0x5b4067,0x2e0,0x292)]});}[_0x38c793(0x324,0x429,0x37b,0x34e)](){const _0x330514={_0x283916:0x2bf,_0x287da2:0x36c,_0x259f16:0x468,_0x19b23c:0x4f6,_0x2ed16d:0x3bd,_0x3200ea:0x3c2,_0x458f2a:0x365,_0x1543e3:0x3a4,_0x28eb4d:0x44e},_0x43ca70={_0x4d58a7:0x160},_0x1117dc={_0x24f5ff:0x93,_0x3a87ad:0x46,_0x5e5ee5:0xa8};function _0x5d7d10(_0x4d921e,_0x24d49d,_0x3301d5,_0x218b03){return _0x38c793(_0x218b03,_0x24d49d-_0x1117dc._0x24f5ff,_0x3301d5- -_0x1117dc._0x3a87ad,_0x218b03-_0x1117dc._0x5e5ee5);}if(!this[_0x5d7d10(_0x330514._0x283916,0x2cc,_0x330514._0x287da2,0x329)])throw new Error(_0x9839b3(0x3ba,_0x330514._0x259f16,_0x330514._0x19b23c,0x4e1)+this[_0x5d7d10(_0x330514._0x2ed16d,_0x330514._0x3200ea,0x326,_0x330514._0x458f2a)]);function _0x9839b3(_0x42f9dd,_0xfcd69,_0x48041b,_0x341050){return _0x38c793(_0x42f9dd,_0xfcd69-0x1e2,_0xfcd69-0xb,_0x341050-_0x43ca70._0x4d58a7);}return this[_0x9839b3(0x478,0x3bd,_0x330514._0x1543e3,_0x330514._0x28eb4d)];}[_0x38c793(0x433,0x46b,0x3b5,0x459)](){const _0x26d9a2={_0x3dfe74:0x95,_0x21f00c:0x3f,_0x36f766:0x585,_0x42a3d3:0x508,_0xf8d1f3:0x2a2,_0x43dd0f:0x285},_0x32f320={_0x4fce47:0x1c5},_0x46dd85={_0x198593:0x59,_0x384327:0x2f0,_0x5263e2:0x18};if(!this['openAiDelegate'])throw new Error(_0x1d711d(0x146,-0x32,_0x26d9a2._0x3dfe74,_0x26d9a2._0x21f00c)+this[_0x170faf(_0x26d9a2._0x36f766,_0x26d9a2._0x42a3d3,0x458,0x5b8)]);function _0x1d711d(_0x1b6b49,_0x59075d,_0x172920,_0x412ef7){return _0x38c793(_0x1b6b49,_0x59075d-_0x46dd85._0x198593,_0x172920- -_0x46dd85._0x384327,_0x412ef7-_0x46dd85._0x5263e2);}function _0x170faf(_0x3d74b,_0x25353e,_0x1e41be,_0x18844a){return _0x2b6123(_0x3d74b,_0x25353e-0x83,_0x25353e-0x2cc,_0x18844a-_0x32f320._0x4fce47);}return this[_0x1d711d(_0x26d9a2._0xf8d1f3,0x241,0x1f0,_0x26d9a2._0x43dd0f)];}[_0x38c793(0x3df,0x468,0x445,0x4ec)](_0x5b20ea,_0x1a264e){const _0x4d7ccd={_0x208c19:0x109,_0x1f6c35:0x16d,_0x5913d4:0x184,_0x31dfd1:0x22f,_0x576af0:0xdd,_0x1af18e:0x118,_0x1c0423:0x1e1,_0x355be3:0x141,_0x433263:0xc9,_0x28b6e3:0x10a,_0x32b839:0x1c6,_0x1e645c:0x209,_0x259a18:0x22c,_0x33a1c8:0x178,_0x444329:0x260,_0x10102b:0x271,_0x23de00:0x25d},_0x394e92={_0x285b8b:0xe3,_0x2ef4bd:0x263},_0x424314={_0x2e7e3c:0x198,_0x22ad13:0x75};function _0xfa815b(_0x32026e,_0x12cade,_0x259ecf,_0xa60215){return _0x2b6123(_0x259ecf,_0x12cade-_0x424314._0x2e7e3c,_0xa60215- -0x188,_0xa60215-_0x424314._0x22ad13);}function _0x400bfd(_0x98618b,_0x1d0a65,_0x3e99bc,_0x3dd0c4){return _0x38c793(_0x1d0a65,_0x1d0a65-_0x394e92._0x285b8b,_0x98618b- -_0x394e92._0x2ef4bd,_0x3dd0c4-0x1c7);}switch(this[_0x400bfd(_0x4d7ccd._0x208c19,0xa4,_0x4d7ccd._0x1f6c35,0x117)]){case _0x400bfd(_0x4d7ccd._0x5913d4,_0x4d7ccd._0x31dfd1,0x1e1,_0x4d7ccd._0x576af0):return this[_0x400bfd(_0x4d7ccd._0x1af18e,_0x4d7ccd._0x1c0423,_0x4d7ccd._0x355be3,_0x4d7ccd._0x433263)]()['complete'](_0x5b20ea,_0x1a264e);case _0x400bfd(0x166,0x132,_0x4d7ccd._0x28b6e3,_0x4d7ccd._0x32b839):return this['getOpenAiDelegate']()[_0x400bfd(0x214,0x268,_0x4d7ccd._0x1e645c,0x248)](_0x5b20ea,_0x1a264e);case _0xfa815b(0x223,0xee,_0x4d7ccd._0x259a18,_0x4d7ccd._0x33a1c8):return this['getOpenAiDelegate']()[_0xfa815b(0x1cd,_0x4d7ccd._0x444329,0x200,0x1a4)](_0x5b20ea,_0x1a264e);default:return this['getOpenAiDelegate']()[_0x400bfd(0x1cc,0x187,_0x4d7ccd._0x10102b,_0x4d7ccd._0x23de00)](_0x5b20ea,_0x1a264e);}}[_0x2b6123(0x406,0x30a,0x349,0x30b)](_0x22e147,_0x1b7902){const _0x28937e={_0x56329f:0x2c7,_0x7492ac:0x2c5,_0x13e2b9:0x338,_0x127417:0x36d,_0x3261ba:0x2fd,_0x4c2966:0x3a5,_0x39d1a7:0x2d6,_0x93234c:0x2ef,_0x5842ee:0x386,_0x11d830:0x14f,_0x4e9fc9:0x324,_0x10de94:0x2cc,_0x57ab9e:0x290,_0x1b21a7:0x381,_0x37d8fa:0x3ac,_0x1a2a33:0x3d3,_0x2d903b:0x48d,_0x59147f:0x356,_0x5277a4:0x250,_0x59d8d9:0x35c,_0x5c7854:0x323,_0x45ee73:0x26,_0x1792d2:0x94,_0x55e731:0x70},_0x3b5938={_0x58f379:0xda,_0x1f04fb:0x165},_0x8c24c={_0xcd107c:0x54};function _0x3762d9(_0x1ff43f,_0x184922,_0x122a74,_0x2b5f99){return _0x2b6123(_0x1ff43f,_0x184922-0x5b,_0x184922- -0x2bb,_0x2b5f99-_0x8c24c._0xcd107c);}function _0x5c27f5(_0xda7c45,_0x22249a,_0x31075b,_0x9d8d99){return _0x2b6123(_0x22249a,_0x22249a-_0x3b5938._0x58f379,_0xda7c45-0x8b,_0x9d8d99-_0x3b5938._0x1f04fb);}switch(this[_0x5c27f5(_0x28937e._0x56329f,_0x28937e._0x7492ac,_0x28937e._0x13e2b9,_0x28937e._0x127417)]){case _0x5c27f5(0x342,_0x28937e._0x3261ba,_0x28937e._0x4c2966,0x381):return this[_0x5c27f5(_0x28937e._0x39d1a7,_0x28937e._0x93234c,0x2f5,_0x28937e._0x5842ee)]()[_0x3762d9(0xad,0x8e,0xe7,_0x28937e._0x11d830)](_0x22e147,_0x1b7902);case _0x5c27f5(_0x28937e._0x4e9fc9,_0x28937e._0x10de94,_0x28937e._0x57ab9e,0x3a7):return this[_0x5c27f5(0x310,_0x28937e._0x1b21a7,0x329,_0x28937e._0x37d8fa)]()[_0x5c27f5(_0x28937e._0x1a2a33,0x382,_0x28937e._0x2d903b,_0x28937e._0x59147f)](_0x22e147,_0x1b7902);case'openai-responses-ws':return this[_0x5c27f5(0x310,0x332,_0x28937e._0x5277a4,0x2fe)]()[_0x5c27f5(_0x28937e._0x59d8d9,_0x28937e._0x5c7854,0x31c,0x3f2)](_0x22e147,_0x1b7902);default:return this[_0x3762d9(-0xfe,-0x36,0x35,-_0x28937e._0x45ee73)]()[_0x3762d9(-0x46,0x21,-_0x28937e._0x1792d2,_0x28937e._0x55e731)](_0x22e147,_0x1b7902);}}};function _0x38c793(_0x68fcce,_0x1f99ae,_0x4add4b,_0x2a7f26){const _0x1aa9fc={_0x2a8692:0x219};return _0x25f1(_0x4add4b-_0x1aa9fc._0x2a8692,_0x68fcce);}import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x38c793(0x56b,0x43d,0x4ed,0x471)];[_0x2b6123(0x32d,0x2d3,0x399,0x432)];[_0x2b6123(0x290,0x23c,0x269,0x255)];[_0x2b6123(0x30f,0x40a,0x3bc,0x314)];['tokenExchangeApiVersion'];constructor(_0x1d1077){const _0x20431e={_0x23b451:0x4fa,_0x2e3a9d:0x56d,_0x5c20d7:0x594,_0xc0b02e:0x15c,_0x2b7d83:0xaa,_0x10466f:0x1d1,_0x44eb65:0x4d6,_0x1ad64c:0x45e,_0x4cbf34:0x2c,_0xe01d96:0x58,_0x5ed3c1:0xcb,_0x3d9ee5:0x43a,_0x410290:0x521,_0x32308a:0x4f9,_0x382214:0x561,_0x3c714a:0x8d,_0x13ea64:0x4a,_0x10a9d1:0x5a,_0x41f4d5:0x9a},_0x2cebe0={_0x5169ba:0x13d,_0x58a3eb:0x177};this[_0x5e9963(_0x20431e._0x23b451,_0x20431e._0x2e3a9d,0x4c1,0x56d)]=_0x1d1077[_0x5e9963(0x4fa,0x43a,0x541,_0x20431e._0x5c20d7)];function _0x5e9963(_0x30bbdb,_0x590cf0,_0x4eece7,_0x5cb3d9){return _0x2b6123(_0x4eece7,_0x590cf0-0xf4,_0x30bbdb-_0x2cebe0._0x5169ba,_0x5cb3d9-_0x2cebe0._0x58a3eb);}this[_0x11c68f(_0x20431e._0xc0b02e,0x158,_0x20431e._0x2b7d83,_0x20431e._0x10466f)]=trimTrailingSlashes2(_0x1d1077[_0x5e9963(_0x20431e._0x44eb65,_0x20431e._0x1ad64c,0x4b3,0x4f2)]),this[_0x11c68f(_0x20431e._0x4cbf34,_0x20431e._0xe01d96,_0x20431e._0x5ed3c1,0xa0)]=_0x1d1077[_0x5e9963(0x49a,0x547,0x497,0x52d)],this[_0x5e9963(0x4f9,_0x20431e._0x3d9ee5,_0x20431e._0x410290,0x57e)]=trimTrailingSlashes2(_0x1d1077[_0x5e9963(_0x20431e._0x32308a,_0x20431e._0x382214,0x4c2,0x4b4)]);function _0x11c68f(_0x49339c,_0x835cbc,_0x4b90bf,_0x2bfa84){return _0x38c793(_0x835cbc,_0x835cbc-0xc6,_0x49339c- -0x36d,_0x2bfa84-0xf2);}this[_0x11c68f(_0x20431e._0x3c714a,_0x20431e._0x13ea64,_0x20431e._0x10a9d1,_0x20431e._0x41f4d5)]=_0x1d1077['tokenExchangeApiVersion'];}async[_0x2b6123(0x43b,0x316,0x3a1,0x440)](_0x462498){const _0x45aec2={_0x1e2767:0x24,_0x2d9dca:0x86,_0x21e954:0x148,_0x3ec7df:0x1cc,_0x150ebd:0xbf,_0x5abd6b:0xfe,_0x4e0536:0x3c,_0x48fc88:0xb0,_0xd7cb39:0x50,_0x1b07e2:0x53,_0x228a4e:0x48,_0x2fb2bf:0x178,_0x112fca:0x1e6,_0x50f128:0x85,_0xc5bef2:0xaa,_0x2e737e:0xda,_0xe5875a:0x2f4,_0x442245:0x2e9,_0x5b6f53:0x33f,_0x3163f0:0x2d4,_0x4810ce:0x234,_0xddc60f:0x2ff,_0x53f7c5:0x190,_0x176ef9:0x277,_0x1aee16:0x23b,_0x5866c7:0x2f0,_0x1b0345:0x24c,_0x2a3b9f:0x2b0,_0x49c545:0x237,_0x4d334b:0x296,_0x1c7576:0x19c,_0x55deaf:0x10b,_0x3db763:0xee,_0x1fa584:0x66,_0x582869:0xb6,_0x2eafc9:0xcc,_0x1d7dde:0x1e,_0x59e747:0xa8,_0x47b973:0x106,_0x1104a3:0x8b,_0x56aaa0:0x104,_0x32c862:0x189,_0x4bca5b:0x222,_0x3149d5:0x177},_0xc0af6d={_0x5b1aa1:0x38,_0x5bbd1b:0xe9},_0x3a1b97={_0x3124bb:0x1dc,_0x575189:0x245};function _0x401a2d(_0x1035ca,_0x422dda,_0x1ec4ee,_0x23e04e){return _0x2b6123(_0x23e04e,_0x422dda-_0x3a1b97._0x3124bb,_0x1035ca- -_0x3a1b97._0x575189,_0x23e04e-0x11c);}const _0x481308=await this[_0x401a2d(_0x45aec2._0x1e2767,0x47,_0x45aec2._0x2d9dca,0xbd)](this['githubApiUrl']+_0x401a2d(_0x45aec2._0x21e954,0xed,0x20a,_0x45aec2._0x3ec7df),{'method':_0x401a2d(_0x45aec2._0x150ebd,0x31,_0x45aec2._0x5abd6b,0xc3),'headers':new Headers({'accept':_0x401a2d(_0x45aec2._0x4e0536,_0x45aec2._0x48fc88,-0x6d,0x4),'authorization':_0x401a2d(_0x45aec2._0xd7cb39,_0x45aec2._0x1b07e2,-_0x45aec2._0x228a4e,-0x2d)+this[_0x401a2d(_0x45aec2._0x2fb2bf,0x1e0,0x14d,0x22b)],'editor-version':_0x401a2d(0x139,0x97,_0x45aec2._0x112fca,0x121),'user-agent':_0x401a2d(0x11c,0x141,0x11d,0xa0),'x-github-api-version':this[_0x401a2d(_0x45aec2._0x50f128,-0x35,_0x45aec2._0xc5bef2,_0x45aec2._0x2e737e)]}),'signal':_0x462498});if(!_0x481308['ok'])return{'credential':{'kind':_0x401a2d(0xe9,0x14b,0x29,0x32),'value':this[_0x13a3a5(_0x45aec2._0xe5875a,_0x45aec2._0x442245,_0x45aec2._0x5b6f53,_0x45aec2._0x3163f0)]},'endpoints':{'api':this[_0x13a3a5(_0x45aec2._0x4810ce,0x29b,_0x45aec2._0xddc60f,0x2b0)]}};const _0x4f37d8=await _0x481308['json']();function _0x13a3a5(_0x36d1e9,_0x1713b9,_0x3bac62,_0x56a5e1){return _0x2b6123(_0x36d1e9,_0x1713b9-_0xc0af6d._0x5b1aa1,_0x56a5e1- -_0xc0af6d._0x5bbd1b,_0x56a5e1-0x1ad);}return{'credential':{'kind':'session-token','value':_0x4f37d8[_0x13a3a5(_0x45aec2._0x53f7c5,_0x45aec2._0x176ef9,0x240,_0x45aec2._0x1aee16)]??this['accessToken']},'endpoints':{'api':_0x4f37d8[_0x13a3a5(_0x45aec2._0x5866c7,_0x45aec2._0x1b0345,_0x45aec2._0x2a3b9f,0x228)]?.[_0x13a3a5(0x148,_0x45aec2._0x49c545,_0x45aec2._0x4d334b,0x1ee)]??this[_0x401a2d(0x154,0x1e3,_0x45aec2._0x1c7576,_0x45aec2._0x55deaf)],'originTracker':_0x4f37d8[_0x401a2d(0xcc,0x40,_0x45aec2._0x3db763,0x193)]?.[_0x401a2d(_0x45aec2._0x1fa584,-0x3c,0x104,_0x45aec2._0x582869)],'proxy':_0x4f37d8[_0x401a2d(_0x45aec2._0x2eafc9,_0x45aec2._0x1d7dde,_0x45aec2._0x59e747,0xac)]?.[_0x401a2d(0x89,_0x45aec2._0x47b973,0x71,_0x45aec2._0x1104a3)],'telemetry':_0x4f37d8[_0x401a2d(0xcc,_0x45aec2._0x56aaa0,0x7c,0x111)]?.[_0x13a3a5(_0x45aec2._0x32c862,_0x45aec2._0x4bca5b,0x17b,_0x45aec2._0x3149d5)]}};}};function trimTrailingSlashes2(_0x3e1d02){const _0x552905={_0x45fdc4:0xe6,_0x338d91:0x4c,_0x49cb09:0x52},_0xf21779={_0x223769:0x73};function _0x3a5605(_0x35bd0b,_0x3a0537,_0x2ab564,_0x33fe2b){return _0x2b6123(_0x33fe2b,_0x3a0537-0x80,_0x2ab564- -0x2de,_0x33fe2b-_0xf21779._0x223769);}return _0x3e1d02[_0x3a5605(_0x552905._0x45fdc4,-_0x552905._0x338d91,_0x552905._0x49cb09,0x78)](/\/+$/,'');}function createModelInfo(_0x5562b6){const _0x551906={_0x59ed8f:0x16d,_0x180976:0x1e1,_0x5a61b4:0x16b,_0x517330:0x6c1,_0x1bf484:0x5f2,_0x5c4961:0x613,_0x128433:0x5aa,_0x123873:0x574,_0x5efe95:0x22f,_0x80228b:0x4d8,_0x3c7428:0x45c,_0x47e6bd:0x4ae},_0x32b694={_0x3d8ce9:0x169},_0x439608={_0x58a05f:0x15,_0x253ed0:0x2bc},_0x45c919=_0x5562b6[_0x49e047(0x12f,_0x551906._0x59ed8f,0x172,0xe8)]??_0x5562b6[_0x49e047(_0x551906._0x180976,0x111,_0x551906._0x5a61b4,0x145)];function _0x1a9f84(_0x39161a,_0x2eeb63,_0x2cdaf6,_0x40bf06){return _0x2b6123(_0x39161a,_0x2eeb63-_0x439608._0x58a05f,_0x2eeb63-_0x439608._0x253ed0,_0x40bf06-0x199);}function _0x49e047(_0x3675ae,_0x456c1d,_0x3ef904,_0x3a16bf){return _0x2b6123(_0x3a16bf,_0x456c1d-_0x32b694._0x3d8ce9,_0x3ef904- -0x1b8,_0x3a16bf-0xaf);}const _0x5ed231=_0x5562b6[_0x1a9f84(_0x551906._0x517330,0x624,_0x551906._0x1bf484,0x640)]?.['limits']?.[_0x1a9f84(_0x551906._0x5c4961,_0x551906._0x128433,0x663,_0x551906._0x123873)],_0x252f81=_0x5562b6[_0x49e047(0x1d4,0x147,0x1b0,_0x551906._0x5efe95)]?.['limits']?.['max_output_tokens'],_0x281289=_0x5ed231!==void 0x0||_0x252f81!==void 0x0?{..._0x5ed231!==void 0x0?{'contextWindow':_0x5ed231}:{},..._0x252f81!==void 0x0?{'maxOutput':_0x252f81}:{}}:void 0x0;return{'id':_0x5562b6['id'],'name':_0x5562b6[_0x1a9f84(_0x551906._0x80228b,0x509,_0x551906._0x3c7428,_0x551906._0x47e6bd)]??_0x5562b6['id'],..._0x281289?{'limits':_0x281289}:{},..._0x45c919?{'supportedEndpoints':_0x45c919}:{}};}function deduplicateModels(_0x281503){const _0x36c8a2={_0x2132ef:0x20,_0x7cd1fa:0x330},_0x4676be={_0x12e1b0:0x183,_0x4cc4b1:0x3cb,_0x957d16:0x105},_0x1539c4={_0x34d694:0x178,_0x26a7e7:0x85},_0x1e8e19=new Map();for(const _0x463c6a of _0x281503){!_0x1e8e19['has'](_0x463c6a['id'])&&_0x1e8e19[_0x4d7596(-0x2,0x4f,-_0x36c8a2._0x2132ef,-0x5b)](_0x463c6a['id'],_0x463c6a);}function _0x2c8b19(_0x365b40,_0x5d594f,_0x4df7c7,_0x15eea4){return _0x2b6123(_0x5d594f,_0x5d594f-_0x1539c4._0x34d694,_0x15eea4- -_0x1539c4._0x26a7e7,_0x15eea4-0x1e5);}function _0x4d7596(_0x3ae5e6,_0x1b729d,_0x218fc2,_0x2066f7){return _0x2b6123(_0x1b729d,_0x1b729d-_0x4676be._0x12e1b0,_0x2066f7- -_0x4676be._0x4cc4b1,_0x2066f7-_0x4676be._0x957d16);}return Array[_0x2c8b19(0x2b7,0x1d1,_0x36c8a2._0x7cd1fa,0x267)](_0x1e8e19['values']());}function hasUserPromptContent(_0x361334){const _0x3b65d3={_0x2a37be:0x48e,_0x3ee49e:0x514,_0x3c3ee3:0x5ac,_0x145434:0xdb,_0x3f335d:0x102,_0x4a1125:0x16e,_0x6e9ec7:0x49,_0x5aa6b0:0x50,_0x3b4731:0x39},_0x53d95f={_0x4afe38:0x44c,_0x22b1db:0x447,_0x487c07:0x156,_0x5b3b55:0x27f,_0x1be28e:0x13c,_0x3ab369:0x87,_0x5e5644:0x14b,_0x5efb75:0x538,_0x5da2ca:0x523,_0x10433c:0x4a0,_0x27d735:0x55e,_0x4bf388:0x4ac},_0x6ad7da={_0x56d42f:0x1a,_0x225294:0xa},_0x356de1={_0x44adf0:0x9d,_0x35b81:0x474};function _0x37678e(_0x29f820,_0x4cbbf5,_0x44a163,_0x9a51e2){return _0x38c793(_0x4cbbf5,_0x4cbbf5-_0x356de1._0x44adf0,_0x9a51e2- -_0x356de1._0x35b81,_0x9a51e2-0x15f);}if(typeof _0x361334===_0x4f60e3(_0x3b65d3._0x2a37be,0x463,_0x3b65d3._0x3ee49e,_0x3b65d3._0x3c3ee3))return _0x361334[_0x37678e(-_0x3b65d3._0x145434,-0x90,-0xc0,-0xa2)]()[_0x37678e(-_0x3b65d3._0x3f335d,-_0x3b65d3._0x4a1125,-0x132,-0xa9)]>0x0;function _0x4f60e3(_0xe0a047,_0x5db5a7,_0xf54e85,_0x52b8e9){return _0x38c793(_0x52b8e9,_0x5db5a7-_0x6ad7da._0x56d42f,_0xf54e85-0x119,_0x52b8e9-_0x6ad7da._0x225294);}if(!Array['isArray'](_0x361334))return![];return _0x361334[_0x37678e(0xb6,-_0x3b65d3._0x6e9ec7,_0x3b65d3._0x5aa6b0,_0x3b65d3._0x3b4731)](_0x6a14e0=>{const _0x57ec37={_0xc37f2:0x28,_0x3a8eea:0x8e,_0x2acfed:0x6f3},_0x137cbb={_0x3faded:0x5c};if(!_0x6a14e0||typeof _0x6a14e0!==_0x32a642(0x4e6,_0x53d95f._0x4afe38,0x3d7,_0x53d95f._0x22b1db))return![];function _0x32a642(_0x138c85,_0x199682,_0x5271ed,_0x2d32c8){return _0x4f60e3(_0x138c85-_0x137cbb._0x3faded,_0x199682-0xe0,_0x2d32c8- -0x68,_0x199682);}function _0x2609fd(_0x5eca01,_0x4b045b,_0xf34500,_0x358efd){return _0x4f60e3(_0x5eca01-_0x57ec37._0xc37f2,_0x4b045b-_0x57ec37._0x3a8eea,_0x4b045b- -_0x57ec37._0x2acfed,_0xf34500);}const _0x448e11=_0x6a14e0;return(_0x448e11[_0x2609fd(-_0x53d95f._0x487c07,-0x1eb,-_0x53d95f._0x5b3b55,-_0x53d95f._0x1be28e)]===_0x2609fd(-_0x53d95f._0x3ab369,-_0x53d95f._0x5e5644,-0x153,-0x1b0)||_0x448e11[_0x32a642(_0x53d95f._0x5efb75,_0x53d95f._0x5da2ca,0x50a,_0x53d95f._0x10433c)]==='text')&&typeof _0x448e11[_0x2609fd(-0x257,-0x198,-0xe7,-0x18e)]===_0x32a642(0x49a,_0x53d95f._0x27d735,0x4ee,_0x53d95f._0x4bf388)&&_0x448e11['text']['trim']()['length']>0x0;});}function isUserPromptEntry(_0xcc3ca0){const _0x5d956b={_0x281fe6:0x1de,_0x473288:0x185,_0x4e216f:0x199,_0x2a09c5:0x163,_0x55d703:0x174,_0x564707:0x1d1,_0x47ab93:0x182,_0x5c42f5:0x32,_0x9b9ed3:0xb7,_0xd0398e:0xfd,_0x1ef3b9:0x138},_0x35eac0={_0xf11deb:0x1ee,_0x38addd:0x1b5},_0x456448={_0x3482d1:0x26d,_0x5ac13e:0xb1};if(!_0xcc3ca0||typeof _0xcc3ca0!=='object')return![];const _0x15c157=_0xcc3ca0;if(_0x15c157[_0x5b8d94(0x26c,0x23d,0x1fc,_0x5d956b._0x281fe6)]!==_0x5b8d94(_0x5d956b._0x473288,_0x5d956b._0x4e216f,_0x5d956b._0x2a09c5,0x1b8))return![];function _0x5b8d94(_0x412a87,_0x2d878f,_0x3d3e47,_0x53547f){return _0x38c793(_0x2d878f,_0x2d878f-0x19c,_0x53547f- -_0x456448._0x3482d1,_0x53547f-_0x456448._0x5ac13e);}if(_0x15c157[_0x571016(0x1c2,0x111,0x10a,0xc3)]!==void 0x0&&_0x15c157[_0x5b8d94(_0x5d956b._0x55d703,_0x5d956b._0x564707,0x13f,_0x5d956b._0x47ab93)]!==_0x571016(_0x5d956b._0x5c42f5,_0x5d956b._0x9b9ed3,_0x5d956b._0xd0398e,_0x5d956b._0x1ef3b9))return![];function _0x571016(_0x5c2804,_0x153a64,_0x5deb0f,_0x1fc48){return _0x2b6123(_0x1fc48,_0x153a64-_0x35eac0._0xf11deb,_0x5deb0f- -_0x35eac0._0x38addd,_0x1fc48-0x1e8);}return hasUserPromptContent(_0x15c157['content']);}function determineInitiator(_0x27b433){const _0x11fbc2={_0x1e8391:0x1eb,_0x59de41:0x2a9,_0x4f419d:0x323,_0x3b4ca7:0x28f,_0x4e3a81:0x25b,_0x49b9a7:0x29c,_0x101bb4:0x312,_0x4ed6b3:0x315,_0x3ddc16:0x2c7,_0x323f38:0x30c,_0x380c2e:0x20f,_0x8b688b:0x1fb,_0x157586:0x259,_0x56ab4d:0x2bb},_0x1c6ef5={_0x1c9050:0x1d0};function _0xa81127(_0x3ef944,_0x37275b,_0x3342ab,_0x274b47){return _0x38c793(_0x37275b,_0x37275b-0xa9,_0x3ef944- -0x167,_0x274b47-0x27);}function _0x536878(_0x365919,_0x189797,_0xce00f6,_0x3d13fe){return _0x38c793(_0x365919,_0x189797-0x12c,_0x3d13fe- -_0x1c6ef5._0x1c9050,_0x3d13fe-0x1f3);}if(!_0x27b433||typeof _0x27b433!=='object')return'agent';const _0x30a271=_0xa81127(0x268,_0x11fbc2._0x1e8391,_0x11fbc2._0x59de41,0x303)in _0x27b433?_0x27b433['messages']:'input'in _0x27b433?_0x27b433[_0xa81127(_0x11fbc2._0x4f419d,0x31b,0x2d6,_0x11fbc2._0x3b4ca7)]:void 0x0;if(!Array[_0x536878(_0x11fbc2._0x4e3a81,0x29c,_0x11fbc2._0x49b9a7,_0x11fbc2._0x101bb4)](_0x30a271)||_0x30a271['length']===0x0)return _0x536878(_0x11fbc2._0x4ed6b3,0x305,_0x11fbc2._0x3ddc16,_0x11fbc2._0x323f38);return isUserPromptEntry(_0x30a271[_0x30a271[_0x536878(_0x11fbc2._0x380c2e,0x1fb,0x161,_0x11fbc2._0x8b688b)]-0x1])?_0xa81127(0x2be,0x32b,_0x11fbc2._0x157586,0x35c):_0x536878(0x249,0x3aa,_0x11fbc2._0x56ab4d,0x30c);}function isUnsupportedApiForModel(_0x2e3c3b){const _0x214058={_0x339643:0x598,_0x2298bb:0x555},_0x23c856={_0x2f15de:0x48,_0x1cd090:0x4};function _0x1094b0(_0x55c235,_0x364881,_0x300d3c,_0x5f2040){return _0x38c793(_0x364881,_0x364881-_0x23c856._0x2f15de,_0x55c235-0x16b,_0x5f2040-_0x23c856._0x1cd090);}return _0x2e3c3b[_0x1094b0(0x5a1,0x5c0,_0x214058._0x339643,_0x214058._0x2298bb)]('unsupported_api_for_model');}function createResponseError(_0x35637a,_0x4cf230){const _0x24e02f={_0x3d9c34:0x22e,_0x4acbd2:0x288,_0x395f67:0x170},_0x382369={_0x45f2f5:0x109},_0x16c3d0={_0xca4e7b:0x127,_0x57a726:0x554,_0x403add:0x170};if(_0x35637a===0x191||_0x35637a===0x193)return new Error(_0x2962dd(0x2e4,_0x24e02f._0x3d9c34,_0x24e02f._0x4acbd2,0x30a));function _0x23d635(_0x2c4528,_0x4792e9,_0xcc96ab,_0x3807cb){return _0x38c793(_0x2c4528,_0x4792e9-_0x16c3d0._0xca4e7b,_0x4792e9- -_0x16c3d0._0x57a726,_0x3807cb-_0x16c3d0._0x403add);}function _0x2962dd(_0x546a80,_0x26fff9,_0x55429b,_0x5e72e6){return _0x38c793(_0x5e72e6,_0x26fff9-0x165,_0x55429b- -_0x382369._0x45f2f5,_0x5e72e6-0x7e);}if(_0x35637a===0x198||_0x35637a===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');if(_0x35637a===0x190)return new Error(_0x23d635(-0x13e,-0xb8,-0x57,-_0x24e02f._0x395f67)+_0x4cf230);return new Error(_0x4cf230||'GitHub\x20API\x20error\x20'+_0x35637a);}var GitHubModel=class extends OpenAiModel{[_0x38c793(0x46a,0x32f,0x3b2,0x3c0)];[_0x2b6123(0x2b0,0x269,0x2c4,0x384)]=new Map();[_0x2b6123(0x276,0x22f,0x23c,0x2a4)];constructor(_0x518f32={}){const _0x254c8c={_0x5bdef4:0x37c,_0x510b26:0x492,_0x3d2b23:0x132,_0x4ad594:0x10b,_0x108a6b:0x1dd,_0x3e7d4d:0x20e,_0x20c7d8:0x254,_0x51026e:0x2a0,_0x1b54cc:0x1db,_0x5632fc:0x182,_0x52c7e5:0x25c,_0x186684:0xba,_0x3a54a6:0x3a0,_0x343db6:0x405,_0x66d4af:0x1e0,_0x3bb0e9:0x168,_0x31d9a8:0x1bf,_0x2600fe:0x3e2,_0x1abdab:0x481,_0x4ac1f0:0x34d,_0x17a4f4:0x297,_0x2a0872:0x2c4,_0x370d88:0x32e,_0x1ffbf7:0x1e5,_0x377ccf:0x260,_0x12b795:0x28d,_0x256fef:0x231,_0x339b9a:0x24d,_0x3a9fff:0x328,_0x55e764:0x2b9,_0x231e95:0x255,_0x138f19:0x31a,_0x400ae4:0x34f,_0x5b51af:0x2af,_0x40ed63:0x296,_0x56337a:0x2b8,_0x4bcade:0x246,_0x57b16f:0x1eb,_0x23f7b7:0x1fa,_0x16d3bf:0x3f8,_0x3ebb7c:0x3bc,_0x52cfdd:0x4a3,_0x156bf6:0x176,_0x56d6d2:0x153,_0x214cd5:0xda,_0x31a713:0x206,_0x5406a3:0x447,_0x4061b5:0x4fd,_0x25c43b:0x3f9,_0xb958ed:0x3f4,_0x52024a:0x4a9,_0x19e166:0x44d},_0x357daa={_0x5544f8:0x173},_0x21b783=trimTrailingSlashes2(_0x518f32['baseUrl']??'https://api.individual.githubcopilot.com');function _0x352f7e(_0x1f00ea,_0x584811,_0x121b74,_0xd3f326){return _0x2b6123(_0xd3f326,_0x584811-_0x357daa._0x5544f8,_0x584811- -0x11c,_0xd3f326-0x155);}const _0x26b541=_0x518f32[_0x25f471(0x43b,_0x254c8c._0x5bdef4,0x433,_0x254c8c._0x510b26)]??globalThis['fetch'],_0xe2391f=_0x518f32[_0x352f7e(0x7b,_0x254c8c._0x3d2b23,0x7a,_0x254c8c._0x4ad594)]??(_0x518f32[_0x352f7e(0x2f6,0x2a1,_0x254c8c._0x108a6b,_0x254c8c._0x3e7d4d)]?new GitHubAccessTokenResolver({'accessToken':_0x518f32['accessToken'],'baseUrl':_0x21b783,'fetch':_0x26b541,'githubApiUrl':_0x518f32[_0x352f7e(_0x254c8c._0x20c7d8,_0x254c8c._0x51026e,_0x254c8c._0x1b54cc,0x20e)]??'https://api.github.com','tokenExchangeApiVersion':_0x518f32[_0x352f7e(0x116,0x1ae,_0x254c8c._0x5632fc,_0x254c8c._0x52c7e5)]??_0x352f7e(0x161,0x112,_0x254c8c._0x186684,0x66)}):void 0x0),_0x19dfba=_0x518f32[_0x25f471(_0x254c8c._0x3a54a6,0x43f,0x410,_0x254c8c._0x343db6)]??_0x352f7e(0x22b,_0x254c8c._0x66d4af,_0x254c8c._0x3bb0e9,0x1d7),_0x5c08bd=_0x518f32[_0x352f7e(0x188,0x133,_0x254c8c._0x31d9a8,0x112)]??_0x25f471(0x359,_0x254c8c._0x2600fe,0x359,0x368),_0x13a5ab=({body:_0x450449})=>{return{'editor-plugin-version':_0x5c08bd,'editor-version':_0x19dfba,'x-initiator':determineInitiator(_0x450449),'x-request-id':randomUUID()};},_0x375dd0={'apiKey':_0x518f32[_0x25f471(0x3e5,0x466,_0x254c8c._0x1abdab,0x46c)],'baseUrl':_0x21b783,'fetch':_0x26b541,'maxTokens':_0x518f32[_0x25f471(_0x254c8c._0x4ac1f0,_0x254c8c._0x17a4f4,_0x254c8c._0x2a0872,_0x254c8c._0x370d88)],'model':_0x518f32[_0x352f7e(_0x254c8c._0x1ffbf7,_0x254c8c._0x377ccf,_0x254c8c._0x12b795,_0x254c8c._0x256fef)],'reasoning':_0x518f32[_0x352f7e(0x1cc,_0x254c8c._0x339b9a,0x27c,0x298)],'providerSessionResolver':_0xe2391f,'requestMutators':_0x518f32['requestMutators'],'headerResolver':_0x13a5ab};super(_0x375dd0),this[_0x25f471(0x31a,_0x254c8c._0x3a9fff,_0x254c8c._0x55e764,_0x254c8c._0x231e95)]=_0x518f32[_0x25f471(_0x254c8c._0x138f19,_0x254c8c._0x400ae4,_0x254c8c._0x5b51af,0x2cb)]??_0x25f471(0x39b,0x38e,0x41f,0x341);function _0x25f471(_0x508f1f,_0x426970,_0x33d1d2,_0x45fe00){return _0x2b6123(_0x426970,_0x426970-0x1da,_0x508f1f-0xde,_0x45fe00-0x152);}this[_0x25f471(0x360,_0x254c8c._0x40ed63,0x3ba,_0x254c8c._0x56337a)]=new AnthropicModel({'apiKey':_0x518f32[_0x352f7e(_0x254c8c._0x4bcade,_0x254c8c._0x57b16f,_0x254c8c._0x23f7b7,0x1f8)],'authScheme':_0x25f471(_0x254c8c._0x16d3bf,_0x254c8c._0x3ebb7c,0x33d,_0x254c8c._0x52cfdd),'baseUrl':_0x21b783,'fetch':_0x26b541,'headerResolver':_0x13a5ab,'maxTokens':_0x518f32[_0x352f7e(_0x254c8c._0x156bf6,_0x254c8c._0x56d6d2,_0x254c8c._0x214cd5,_0x254c8c._0x31a713)],'model':_0x518f32['model'],'reasoning':_0x518f32[_0x25f471(_0x254c8c._0x5406a3,0x394,_0x254c8c._0x4061b5,_0x254c8c._0x25c43b)],'providerSessionResolver':_0xe2391f,'requestMutators':_0x518f32[_0x25f471(_0x254c8c._0xb958ed,_0x254c8c._0x52024a,_0x254c8c._0x19e166,0x4a3)]});}['createMissingCredentialError'](){const _0x40b6d6={_0x2a043d:0x1d,_0x515d31:0x38,_0xd4bfbc:0xb},_0x15b7a0={_0xe834d8:0x1c7,_0x46d9ec:0x3d6,_0x225772:0xe8};function _0x506916(_0x550a53,_0x28f058,_0x335fea,_0x1561a7){return _0x38c793(_0x550a53,_0x28f058-_0x15b7a0._0xe834d8,_0x335fea- -_0x15b7a0._0x46d9ec,_0x1561a7-_0x15b7a0._0x225772);}return new Error(_0x506916(0x8f,_0x40b6d6._0x2a043d,_0x40b6d6._0x515d31,-_0x40b6d6._0xd4bfbc));}[_0x38c793(0x325,0x36a,0x3ca,0x3a1)](_0x3fc891){const _0x56926d={_0x24f001:0x254,_0x203a1d:0x2de,_0x32709f:0x1cb,_0x1462a8:0x45,_0x4b8dab:0x5e,_0x493aac:0x14b,_0x7fd9f:0xa,_0x258636:0x73,_0x1d5cb4:0xdc,_0x20c1fd:0xee,_0x42c760:0xe6},_0x1716b6={_0x3ddc12:0x157,_0x367a46:0x4f,_0x13a50e:0x1ea},_0x269ce6={_0x3fd3ed:0x62,_0x319c7b:0x195};function _0x5801c7(_0x5d62f9,_0x577206,_0x586e9b,_0x16ae56){return _0x38c793(_0x586e9b,_0x577206-_0x269ce6._0x3fd3ed,_0x16ae56- -0x3cf,_0x16ae56-_0x269ce6._0x319c7b);}const _0x42c48b=this[_0x566733(_0x56926d._0x24f001,0x275,_0x56926d._0x203a1d,_0x56926d._0x32709f)]['get'](_0x3fc891);if(!_0x42c48b)return![];function _0x566733(_0x36993e,_0xeb0803,_0xd7be47,_0x2e654c){return _0x2b6123(_0xd7be47,_0xeb0803-_0x1716b6._0x3ddc12,_0xeb0803- -_0x1716b6._0x367a46,_0x2e654c-_0x1716b6._0x13a50e);}return!_0x42c48b[_0x5801c7(-0x4d,0x70,-_0x56926d._0x1462a8,0x67)](_0x5801c7(_0x56926d._0x4b8dab,_0x56926d._0x493aac,-_0x56926d._0x7fd9f,0x9f))&&_0x42c48b[_0x5801c7(0x105,_0x56926d._0x258636,0x76,0x67)](_0x5801c7(_0x56926d._0x1d5cb4,_0x56926d._0x20c1fd,0x12f,_0x56926d._0x42c760));}[_0x38c793(0x510,0x436,0x482,0x4fb)](_0x3848dc){const _0x204aee={_0x56af13:0x2fd,_0x311a31:0x2f4,_0x382e4c:0x32a,_0x3ef89a:0x74,_0x8ca822:0x60,_0x53f686:0x24,_0x2a9875:0x14e,_0x6df9f:0x115,_0x36fa0a:0x13d,_0x326de1:0x12c,_0x1b4687:0x109,_0x25e1f5:0x3a9,_0xfaa0d3:0x345,_0x3cef49:0x3bc,_0x3bfe29:0x18b,_0x4dd750:0x100,_0x1e995f:0x2e2,_0x8f51f6:0x2d3,_0x4bb4fd:0x249,_0x4d2e3d:0x448,_0x26286b:0x358},_0x2ffba7={_0x3d429b:0x1ba,_0x2eac5d:0xf7,_0x48f526:0x1a3},_0x1a7346={_0x3791aa:0x260,_0x2ab422:0x5f};function _0x4416b0(_0x38628c,_0x2f7f39,_0x1e0dbf,_0x50f573){return _0x2b6123(_0x1e0dbf,_0x2f7f39-0x2e,_0x50f573- -_0x1a7346._0x3791aa,_0x50f573-_0x1a7346._0x2ab422);}const _0x4c3c2b=this[_0x2b4acc(0x2b1,_0x204aee._0x56af13,_0x204aee._0x311a31,_0x204aee._0x382e4c)][_0x4416b0(_0x204aee._0x3ef89a,-0x8,-_0x204aee._0x8ca822,_0x204aee._0x53f686)](_0x3848dc[_0x4416b0(_0x204aee._0x2a9875,_0x204aee._0x6df9f,_0x204aee._0x36fa0a,0x11c)]);if(!_0x4c3c2b)return![];function _0x2b4acc(_0x432180,_0x299cb1,_0x272332,_0x281c35){return _0x38c793(_0x281c35,_0x299cb1-_0x2ffba7._0x3d429b,_0x299cb1- -_0x2ffba7._0x2eac5d,_0x281c35-_0x2ffba7._0x48f526);}if(resolveOpenAiReasoningConfig(_0x3848dc[_0x4416b0(_0x204aee._0x326de1,0x197,0x82,_0x204aee._0x1b4687)]))return _0x4c3c2b[_0x2b4acc(_0x204aee._0x25e1f5,0x33f,_0x204aee._0xfaa0d3,_0x204aee._0x3cef49)](_0x4416b0(_0x204aee._0x3bfe29,_0x204aee._0x4dd750,0xfc,0x125));return this[_0x2b4acc(_0x204aee._0x1e995f,_0x204aee._0x8f51f6,_0x204aee._0x4bb4fd,0x24b)](_0x3848dc[_0x2b4acc(0x3a6,0x3b5,_0x204aee._0x4d2e3d,_0x204aee._0x26286b)]);}[_0x2b6123(0x3be,0x2e8,0x39f,0x30f)](_0x438f0d){const _0xb6be1a={_0x565f28:0x1d2,_0x49f662:0x1fd},_0x4e914f={_0x2221b5:0x16b,_0x4a9a85:0x496,_0x4cd059:0xa8};function _0x335081(_0x42b81f,_0x1f6dca,_0x40fc96,_0x421aee){return _0x2b6123(_0x421aee,_0x1f6dca-_0x4e914f._0x2221b5,_0x1f6dca- -_0x4e914f._0x4a9a85,_0x421aee-_0x4e914f._0x4cd059);}this[_0x335081(-0x243,-_0xb6be1a._0x565f28,-0x1c7,-_0xb6be1a._0x49f662)]['set'](_0x438f0d,['/responses']);}[_0x2b6123(0x1ee,0x1d3,0x287,0x265)](_0x592004){const _0x259a12={_0x58cfdb:0x5a,_0x2dd487:0x37d,_0x1d8898:0x70};if(_0x592004 instanceof OpenAiApiError)return createResponseError(_0x592004['status'],_0x592004[_0x211244(-0x117,-0xd5,-0x13e,-0x93)]||_0x592004['message']);function _0x211244(_0xef9109,_0x366591,_0xccf802,_0x52a19f){return _0x2b6123(_0x52a19f,_0x366591-_0x259a12._0x58cfdb,_0xccf802- -_0x259a12._0x2dd487,_0x52a19f-_0x259a12._0x1d8898);}return _0x592004;}[_0x38c793(0x4b0,0x4b5,0x4a7,0x53a)](_0x3fe7fc,_0x15c54f){const _0x144b9b={_0x4816ec:0x33,_0x40e51a:0x5d,_0x303ec8:0x5,_0x2ab9df:0x43,_0x4cf943:0x4a,_0x360957:0x56,_0x45a2f4:0xf8,_0x508a52:0x41,_0x5e6c08:0xbd,_0x47bc6e:0x155,_0x40fa93:0x4c,_0x4c0206:0xed,_0x4e43f0:0x6f,_0x334d66:0x8e,_0x1024fa:0x57,_0x2988a3:0x46,_0x5626b1:0x83,_0x3833b5:0x11a,_0x320df1:0x27,_0x166bb3:0xd2,_0x1dfad8:0x3a,_0x22dc5f:0x62,_0x3113f3:0xbc,_0x6e1159:0x9f},_0x1eee70={_0x109c7d:0x120,_0x425b21:0x379,_0x3dd235:0x1e9},_0x3e1554={_0x5c5cb2:0x121,_0x196616:0x3d9,_0x43bc9f:0x1b4};function _0x16dbd9(_0x898b7a,_0x234d03,_0x2532fb,_0x1d6ef1){return _0x38c793(_0x898b7a,_0x234d03-_0x3e1554._0x5c5cb2,_0x1d6ef1- -_0x3e1554._0x196616,_0x1d6ef1-_0x3e1554._0x43bc9f);}switch(this['surface']){case _0x16dbd9(-0x8c,0x9e,-_0x144b9b._0x4816ec,0xe):return this['anthropicDelegate']['complete'](_0x3fe7fc,_0x15c54f);case _0x4e3961(-0x39,-0xa,_0x144b9b._0x40e51a,-_0x144b9b._0x303ec8):return this[_0x16dbd9(_0x144b9b._0x2ab9df,-_0x144b9b._0x4cf943,0x9f,_0x144b9b._0x360957)](_0x3fe7fc,_0x15c54f);case _0x4e3961(_0x144b9b._0x45a2f4,_0x144b9b._0x508a52,_0x144b9b._0x5e6c08,0x50):return this[_0x16dbd9(_0x144b9b._0x47bc6e,_0x144b9b._0x40fa93,0x95,0x9e)](_0x3fe7fc,_0x15c54f);case _0x16dbd9(_0x144b9b._0x4c0206,_0x144b9b._0x4e43f0,_0x144b9b._0x334d66,_0x144b9b._0x1024fa):return this[_0x16dbd9(0x80,_0x144b9b._0x2988a3,0x11d,_0x144b9b._0x5626b1)](_0x3fe7fc,_0x15c54f);case'auto':return this[_0x16dbd9(_0x144b9b._0x3833b5,_0x144b9b._0x320df1,_0x144b9b._0x166bb3,0x6c)](_0x3fe7fc,_0x15c54f);}function _0x4e3961(_0x54bb7c,_0x33306d,_0x9fff89,_0x16b956){return _0x38c793(_0x33306d,_0x33306d-_0x1eee70._0x109c7d,_0x16b956- -_0x1eee70._0x425b21,_0x16b956-_0x1eee70._0x3dd235);}throw new Error(_0x16dbd9(_0x144b9b._0x1dfad8,-0xae,0x3b,-_0x144b9b._0x22dc5f)+String(this[_0x16dbd9(-_0x144b9b._0x3113f3,-0xac,-_0x144b9b._0x6e1159,-0x6d)]));}['streamViaConfiguredSurface'](_0xd8da7f,_0x248b0e){const _0x2facff={_0x1a0012:0x84,_0x512a4a:0x39,_0x5b579d:0x8,_0x330f34:0x8b,_0x2447b5:0xc,_0x47bbc3:0x100,_0x45878b:0x199,_0x50eb3c:0x1a7,_0x20c9d8:0x5,_0x2b7dd7:0x9d,_0x581ae8:0x74,_0x43227d:0x122,_0x5bde47:0xfc,_0x584204:0x17e,_0x203deb:0xb,_0x3cf076:0x3a,_0x512fb6:0xb3,_0x5c8227:0xfb,_0x4a4fad:0x1a,_0x50ebfc:0x1f,_0x293967:0x7a},_0x2d4aa9={_0x10d7a3:0xa0},_0x551806={_0xc831d9:0x5f,_0x3bed33:0x379};function _0xe957fa(_0x3b8a9a,_0x38f7a4,_0xca963,_0x1edf6e){return _0x38c793(_0x1edf6e,_0x38f7a4-_0x551806._0xc831d9,_0x3b8a9a- -_0x551806._0x3bed33,_0x1edf6e-0x46);}switch(this[_0xe957fa(-0xd,-0x15,-0x13,-_0x2facff._0x1a0012)]){case'anthropic-messages':return this[_0xe957fa(_0x2facff._0x512a4a,_0x2facff._0x5b579d,-_0x2facff._0x330f34,_0x2facff._0x2447b5)][_0xe957fa(_0x2facff._0x47bbc3,0x13f,_0x2facff._0x45878b,_0x2facff._0x50eb3c)](_0xd8da7f,_0x248b0e);case _0xe957fa(-_0x2facff._0x20c9d8,0x12,-_0x2facff._0x2b7dd7,_0x2facff._0x581ae8):return this[_0x208bff(_0x2facff._0x43227d,_0x2facff._0x5bde47,_0x2facff._0x584204,0x11a)](_0xd8da7f,_0x248b0e);case _0xe957fa(0x50,0xb4,_0x2facff._0x203deb,0x52):return this['responseStream'](_0xd8da7f,_0x248b0e);case'openai-responses-ws':return this[_0xe957fa(0x88,0xec,0xc3,_0x2facff._0x3cf076)](_0xd8da7f,_0x248b0e);case _0x208bff(0x11a,0x30,_0x2facff._0x512fb6,_0x2facff._0x5c8227):return this['stream'](_0xd8da7f,_0x248b0e);}function _0x208bff(_0x42fc21,_0x579704,_0x4be8f4,_0x1b80a1){return _0x38c793(_0x42fc21,_0x579704-_0x2d4aa9._0x10d7a3,_0x1b80a1- -0x2f2,_0x1b80a1-0xfc);}throw new Error(_0xe957fa(-0x2,-_0x2facff._0x4a4fad,0x70,-_0x2facff._0x50ebfc)+String(this[_0x208bff(0x11,0x2b,0x6f,_0x2facff._0x293967)]));}async[_0x38c793(0x4a5,0x3f4,0x445,0x440)](_0x2f9792,_0x5ef527){const _0x469451={_0x5abd9a:0x9d,_0x574e53:0x30f,_0x1e5b3a:0x14c,_0x206b9c:0x157,_0x32152f:0x115,_0x3f19b3:0x21,_0x313ce1:0x102,_0xbfe971:0x34,_0x42e928:0x3d,_0x2fe981:0x1ee,_0x704287:0x193,_0x287756:0x68,_0x113d93:0x386,_0x2f19fc:0x3f3,_0x4ce2b3:0x121,_0x41bd10:0x11c,_0x33c2e3:0x106,_0x43908b:0x8b,_0x5f53a2:0x13f,_0x50cbe6:0x14b},_0x4f08e6={_0x3a2cfc:0x1c,_0x2b0ca7:0x3d2,_0x35c997:0x83},_0x31850b={_0x1bc608:0x6e};function _0x57b644(_0x54c8e5,_0x3405f4,_0x4b04f0,_0x37bc70){return _0x38c793(_0x37bc70,_0x3405f4-_0x31850b._0x1bc608,_0x54c8e5- -0x10b,_0x37bc70-0x51);}const _0x4e5dbe=this[_0x3fdeb4(-0x13a,-0x54,-0x124,-_0x469451._0x5abd9a)](_0x2f9792);function _0x3fdeb4(_0x3b00b4,_0x3b8cf9,_0x2e56b7,_0x4f364f){return _0x2b6123(_0x3b00b4,_0x3b8cf9-_0x4f08e6._0x3a2cfc,_0x4f364f- -_0x4f08e6._0x2b0ca7,_0x4f364f-_0x4f08e6._0x35c997);}if(this[_0x57b644(0x261,0x2c1,0x29c,_0x469451._0x574e53)]!==_0x3fdeb4(-0x11d,-_0x469451._0x1e5b3a,-_0x469451._0x206b9c,-_0x469451._0x32152f))return this[_0x3fdeb4(-_0x469451._0x3f19b3,-_0x469451._0x313ce1,-0x73,-0x5b)](_0x4e5dbe,_0x5ef527);if(this[_0x3fdeb4(-0x83,-_0x469451._0xbfe971,-_0x469451._0x42e928,-0x80)](_0x4e5dbe))return this['response'](_0x4e5dbe,_0x5ef527);try{return await this['completeViaChatCompletionsSurface'](_0x4e5dbe,_0x5ef527);}catch(_0x3de9c5){if(_0x3de9c5 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x3de9c5[_0x3fdeb4(-0x118,-0x110,-_0x469451._0x2fe981,-_0x469451._0x704287)]))return this[_0x3fdeb4(_0x469451._0x287756,-0xc2,-0x4f,-0x33)](_0x4e5dbe[_0x57b644(0x3a1,_0x469451._0x113d93,_0x469451._0x2f19fc,0x308)]),this[_0x3fdeb4(-_0x469451._0x4ce2b3,-_0x469451._0x41bd10,-_0x469451._0x33c2e3,-_0x469451._0x43908b)](_0x4e5dbe,_0x5ef527);throw this[_0x3fdeb4(-0x190,-0x16b,-_0x469451._0x5f53a2,-_0x469451._0x50cbe6)](_0x3de9c5);}throw _0x3de9c5;}}async*[_0x38c793(0x3af,0x4e1,0x479,0x411)](_0x1744a9,_0x2e0ee1){const _0x312e27={_0x5868b1:0x5c0,_0x1f1f9b:0x59e,_0x30e5e6:0x36c,_0x14b3fd:0x3d8,_0x1704ea:0x41d,_0x23afa7:0x48f,_0x3d5e35:0x50c,_0x5a4bb2:0x675,_0x283ded:0x3f9,_0x3a62fd:0x51e,_0x3a2e5e:0x4a8,_0x1533ae:0x648,_0x56977d:0x549,_0x43a332:0x641,_0x56a837:0x4c3,_0x5835ce:0x3d0,_0x1fb68c:0x4b9},_0x2aa26d={_0x55d946:0x2d,_0x4f8842:0xe2},_0x1cedff={_0x511354:0x13e,_0x1962f2:0x139},_0xa663cf=this[_0x53f282(0x5cd,0x60c,_0x312e27._0x5868b1,_0x312e27._0x1f1f9b)](_0x1744a9);function _0x53f282(_0x2613f5,_0x3730a3,_0x2989f9,_0x501fa3){return _0x38c793(_0x3730a3,_0x3730a3-_0x1cedff._0x511354,_0x501fa3-_0x1cedff._0x1962f2,_0x501fa3-0x1bd);}if(this[_0x5bb931(_0x312e27._0x30e5e6,0x467,_0x312e27._0x14b3fd,0x331)]!==_0x5bb931(0x3f8,_0x312e27._0x1704ea,0x459,_0x312e27._0x23afa7)){yield*this[_0x53f282(0x4a6,_0x312e27._0x3d5e35,0x4cb,0x562)](_0xa663cf,_0x2e0ee1);return;}function _0x5bb931(_0x428054,_0x40dcbb,_0x20fdfe,_0x8fcd2d){return _0x2b6123(_0x8fcd2d,_0x40dcbb-_0x2aa26d._0x55d946,_0x20fdfe-0x19c,_0x8fcd2d-_0x2aa26d._0x4f8842);}if(this[_0x53f282(_0x312e27._0x3d5e35,0x5c1,_0x312e27._0x5a4bb2,0x5bb)](_0xa663cf)){yield*this[_0x53f282(0x54a,0x4f3,0x592,0x5b1)](_0xa663cf,_0x2e0ee1);return;}try{yield*this['streamViaChatCompletionsSurface'](_0xa663cf,_0x2e0ee1);}catch(_0x36cb34){if(_0x36cb34 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x36cb34[_0x53f282(0x567,_0x312e27._0x283ded,_0x312e27._0x3a62fd,_0x312e27._0x3a2e5e)])){this[_0x53f282(_0x312e27._0x1533ae,_0x312e27._0x56977d,_0x312e27._0x43a332,0x608)](_0xa663cf[_0x5bb931(0x5af,0x51e,0x518,0x4c2)]),yield*this[_0x5bb931(_0x312e27._0x56a837,0x548,0x4e4,0x4ac)](_0xa663cf,_0x2e0ee1);return;}throw this[_0x5bb931(_0x312e27._0x5835ce,0x393,0x423,_0x312e27._0x1fb68c)](_0x36cb34);}throw _0x36cb34;}}async['getModels'](_0x3c65e0){const _0x561246={_0x22cc5f:0x3af,_0x3d1066:0x2fd,_0x1581b2:0x320,_0x41d3df:0x4c4,_0x2b80b2:0x492,_0x47f8e5:0x446,_0x4a5177:0x385,_0x40d0ce:0x31e,_0x1620fb:0x3cd,_0x45beb4:0x2ba,_0x20f858:0x366,_0x12219e:0x3f3,_0x351bac:0x3fd},_0xd7fcd1={_0x4c12b7:0x3f},_0x1b0d6c={_0x3c7d48:0x73,_0x44d809:0x2a,_0x177a60:0x618,_0xdd1254:0x526},_0x525042=await this['sendRawRequest']({'path':_0x2e182e(0x33b,_0x561246._0x22cc5f,_0x561246._0x3d1066,_0x561246._0x1581b2),'method':_0x2e182e(0x3fa,0x3fb,_0x561246._0x41d3df,_0x561246._0x2b80b2),'signal':_0x3c65e0});if(!_0x525042['ok'])throw this[_0x5d1bb3(0x43f,0x3ce,_0x561246._0x47f8e5,_0x561246._0x4a5177)](await this['toApiError'](_0x525042));const _0x2c0420=await _0x525042[_0x2e182e(0x37f,_0x561246._0x40d0ce,_0x561246._0x1620fb,_0x561246._0x45beb4)](),_0x5ae229=(_0x2c0420[_0x2e182e(_0x561246._0x20f858,_0x561246._0x12219e,_0x561246._0x351bac,0x3d1)]??[])['map'](_0x1009ba=>{const _0x3e44a0={_0xde6ec4:0xf0,_0x5f111b:0x1a7};function _0x598168(_0x3773fc,_0x23239a,_0x14236a,_0x57a6a6){return _0x5d1bb3(_0x57a6a6-_0x3e44a0._0xde6ec4,_0x23239a-0x17c,_0x3773fc,_0x57a6a6-_0x3e44a0._0x5f111b);}const _0x5a20e6=createModelInfo(_0x1009ba);function _0x217198(_0x3b48a9,_0x568920,_0x16a63b,_0x2bb2b9){return _0x2e182e(_0x2bb2b9- -0x39e,_0x568920-0x12f,_0x568920,_0x2bb2b9-0x8b);}return _0x5a20e6[_0x217198(_0x1b0d6c._0x3c7d48,0x2a,-0x68,-_0x1b0d6c._0x44d809)]&&this[_0x598168(0x4a7,0x556,0x53e,0x56c)][_0x598168(0x682,0x692,0x69d,_0x1b0d6c._0x177a60)](_0x5a20e6['id'],_0x5a20e6[_0x598168(0x4ed,0x551,0x536,_0x1b0d6c._0xdd1254)]),_0x5a20e6;});function _0x5d1bb3(_0x2e0765,_0x505155,_0x5c8051,_0x3c28ac){return _0x2b6123(_0x5c8051,_0x505155-_0xd7fcd1._0x4c12b7,_0x2e0765-0x1b8,_0x3c28ac-0x146);}function _0x2e182e(_0x22b3d9,_0x34e164,_0x4dec92,_0x4d7028){return _0x38c793(_0x4dec92,_0x34e164-0x13e,_0x22b3d9- -0x3a,_0x4d7028-0x5e);}return deduplicateModels(_0x5ae229);}};function createHeaders(_0x506a3f){const _0x1c1cbc={_0x5c547e:0x271,_0x52a389:0x48e},_0x54ac6b={_0x4306ef:0x184},_0x468f93={_0x1b7d2a:0x108};function _0xbdb15d(_0x1b73a2,_0x4e7035,_0x268f95,_0x33c108){return _0x2b6123(_0x33c108,_0x4e7035-0x1f4,_0x4e7035-_0x468f93._0x1b7d2a,_0x33c108-0x133);}function _0xbe0f8c(_0x12547e,_0x3638e9,_0x494034,_0x5e295f){return _0x38c793(_0x494034,_0x3638e9-0x96,_0x3638e9- -0xd6,_0x5e295f-_0x54ac6b._0x4306ef);}const _0xdf6e9c=new Headers();for(const [_0x2e9ba3,_0x464b7b]of Object[_0xbe0f8c(_0x1c1cbc._0x5c547e,0x33b,0x36c,0x347)](_0x506a3f)){_0xdf6e9c[_0xbdb15d(0x484,0x478,0x48f,_0x1c1cbc._0x52a389)](_0x2e9ba3,_0x464b7b);}return _0xdf6e9c;}async function fetchRawResponse(_0x34211d){const _0x53e461={_0x2c9455:0xbc,_0x58c334:0x50a,_0x57b1b5:0x538,_0x5a212b:0x1f,_0x501f98:0x92,_0x5209ed:0x7d,_0x75d043:0xb9,_0x23888d:0xee,_0x4544d2:0x158,_0x4b1f4e:0x43f,_0x42139d:0x3fd,_0xb24930:0x4a8},_0x598344={_0x3d2cc8:0x426},_0xc00e87={_0x24722d:0x3,_0xc87979:0x1be,_0x555f08:0x14f};function _0xffed6d(_0x180ec3,_0x1a2ba2,_0x38f460,_0x19727b){return _0x2b6123(_0x1a2ba2,_0x1a2ba2-_0xc00e87._0x24722d,_0x38f460-_0xc00e87._0xc87979,_0x19727b-_0xc00e87._0x555f08);}const _0x4709e0=_0x34211d[_0x479743(_0x53e461._0x2c9455,0x67,0x30,0x84)]??globalThis[_0xffed6d(0x4b9,0x47a,0x51b,0x52e)];function _0x479743(_0x3e133e,_0x332d22,_0x164341,_0x4e6200){return _0x38c793(_0x164341,_0x332d22-0xa7,_0x332d22- -_0x598344._0x3d2cc8,_0x4e6200-0x8f);}return _0x4709e0(_0x34211d[_0xffed6d(0x5b7,_0x53e461._0x58c334,_0x53e461._0x57b1b5,0x53e)],{'method':'POST','headers':createHeaders(_0x34211d[_0x479743(_0x53e461._0x5a212b,-0x82,-0x1c,-_0x53e461._0x501f98)]),'body':JSON[_0x479743(-_0x53e461._0x5209ed,-_0x53e461._0x75d043,-_0x53e461._0x23888d,-_0x53e461._0x4544d2)](_0x34211d[_0xffed6d(_0x53e461._0x4b1f4e,0x4ac,_0x53e461._0x42139d,0x430)]),'signal':_0x34211d[_0xffed6d(_0x53e461._0xb24930,0x4b8,0x497,0x48d)]});}async function fetchJsonResponse(_0x582e06){const _0x1608cf={_0x41057a:0x3c1,_0x523a74:0x307,_0x5785b1:0x43c,_0x170376:0x3eb,_0x594b1b:0x250,_0x5c2abc:0x13c,_0x2e2a2a:0x1aa,_0x165434:0x22a,_0x5cb4b6:0x230,_0x53bfef:0x31c},_0x4848cb={_0x2784f4:0x133,_0x2ee9dc:0xe3},_0x5dfba9={_0x100617:0x17c,_0x364191:0x225,_0x4c156c:0x1e4};function _0x2543d4(_0x4a45d4,_0x5426e1,_0x4165a4,_0x54e763){return _0x38c793(_0x54e763,_0x5426e1-_0x5dfba9._0x100617,_0x4a45d4- -_0x5dfba9._0x364191,_0x54e763-_0x5dfba9._0x4c156c);}function _0x54ce74(_0x23eca1,_0x18efa0,_0x4914cb,_0x552cb9){return _0x2b6123(_0x4914cb,_0x18efa0-_0x4848cb._0x2784f4,_0x23eca1-0x11f,_0x552cb9-_0x4848cb._0x2ee9dc);}const _0x1cdf4e=await fetchRawResponse(_0x582e06);if(!_0x1cdf4e['ok']){const _0x52dd87=await _0x1cdf4e['text'](),_0x4ca4c0=_0x52dd87[_0x54ce74(_0x1608cf._0x41057a,0x42e,0x422,_0x1608cf._0x523a74)]()||_0x1cdf4e[_0x54ce74(_0x1608cf._0x5785b1,0x464,_0x1608cf._0x170376,0x4ef)]||'Unknown\x20provider\x20error';throw new Error(_0x2543d4(0x1cc,_0x1608cf._0x594b1b,0x142,_0x1608cf._0x5c2abc)+_0x1cdf4e[_0x2543d4(0x1af,_0x1608cf._0x2e2a2a,_0x1608cf._0x165434,_0x1608cf._0x5cb4b6)]+':\x20'+_0x4ca4c0);}return await _0x1cdf4e[_0x54ce74(0x3a8,0x392,_0x1608cf._0x53bfef,0x2de)]();}function findLastMessage(_0x38c82a,_0x4d053b){const _0x55098={_0x2b8bc6:0x438,_0x550016:0x4cd,_0xd61306:0x4d2,_0x531214:0x4b8,_0x31447c:0x46f,_0x45cfc3:0x4bf,_0xc9d915:0x4aa},_0x3da8b3={_0xea2b10:0xe1};for(let _0x17beab=_0x38c82a[_0x595067(_0x55098._0x2b8bc6,_0x55098._0x550016,_0x55098._0xd61306,0x463)]-0x1;_0x17beab>=0x0;_0x17beab-=0x1){if(_0x38c82a[_0x17beab][_0x595067(_0x55098._0x531214,_0x55098._0x31447c,_0x55098._0x45cfc3,_0x55098._0xc9d915)]===_0x4d053b)return _0x38c82a[_0x17beab];}function _0x39eedf(_0x5b9f11,_0x9b8223,_0x3f85d4,_0x529995){return _0x2b6123(_0x3f85d4,_0x9b8223-0x130,_0x5b9f11-0x3b,_0x529995-_0x3da8b3._0xea2b10);}function _0x595067(_0x120f40,_0x2f846e,_0x2a4bee,_0xbc8931){return _0x2b6123(_0xbc8931,_0x2f846e-0xb6,_0x120f40-0x19d,_0xbc8931-0x138);}return void 0x0;}function hasTool(_0x2c7c8f,_0x4e2315){const _0x44c21f={_0x33022b:0x526,_0x4f4825:0x47f,_0x196b23:0x5e4},_0x546542={_0x5821f2:0x15a,_0x3601ff:0x190};function _0x794a32(_0x595b3c,_0x2a92f1,_0xeb76b6,_0x1e72cd){return _0x2b6123(_0x595b3c,_0x2a92f1-0x1d4,_0x2a92f1-0x21e,_0x1e72cd-0xd8);}function _0x5b2aa0(_0x5e61ea,_0x240621,_0x4aa3e1,_0x12b9cd){return _0x2b6123(_0x4aa3e1,_0x240621-_0x546542._0x5821f2,_0x5e61ea-0x230,_0x12b9cd-_0x546542._0x3601ff);}return _0x2c7c8f[_0x5b2aa0(_0x44c21f._0x33022b,_0x44c21f._0x4f4825,0x4f4,_0x44c21f._0x196b23)]['some'](_0x37e2c6=>_0x37e2c6[_0x5b2aa0(0x47d,0x44e,0x4cf,0x445)]===_0x4e2315);}function createMockResponse(_0x4e6e6a,_0x322ebc,_0x12979e,_0x50dd60){return{'id':_0x4e6e6a,'content':_0x322ebc,'stopReason':_0x12979e,'usage':_0x50dd60};}var MockModel=class{['model'];[_0x38c793(0x32c,0x34c,0x39f,0x3c9)];[_0x2b6123(0x2d0,0x2c5,0x366,0x2f6)]=[];[_0x2b6123(0x3f5,0x2ea,0x369,0x33f)];constructor(_0x3cb54a={}){const _0x586dec={_0x195783:0x11d,_0x234a4b:0x7,_0x5192b8:0x31,_0x5ef5ae:0x227,_0xd37e95:0x204,_0x212791:0x1df,_0x55ce63:0x1a1,_0x34069f:0x8f,_0x5a3d30:0x87,_0x2d9662:0x86},_0x1fe9b4={_0x5edc1b:0x47e},_0x5a1ae3={_0x13f63e:0xdf,_0x595cd1:0x410};function _0xb97ee6(_0x58cd88,_0x44e8dc,_0x39fb7a,_0x3140d5){return _0x2b6123(_0x39fb7a,_0x44e8dc-_0x5a1ae3._0x13f63e,_0x3140d5- -_0x5a1ae3._0x595cd1,_0x3140d5-0x4);}function _0x17e9a3(_0x1e9855,_0x267b4a,_0x5d5356,_0x18149a){return _0x2b6123(_0x5d5356,_0x267b4a-0x10d,_0x267b4a- -_0x1fe9b4._0x5edc1b,_0x18149a-0xbf);}this['model']=_0x3cb54a[_0xb97ee6(-_0x586dec._0x195783,_0x586dec._0x234a4b,-_0x586dec._0x5192b8,-0x94)]??_0x17e9a3(-0x170,-_0x586dec._0x5ef5ae,-0x2a7,-0x2b2),this[_0x17e9a3(-0x245,-0x20f,-0x1a5,-_0x586dec._0xd37e95)]=_0x3cb54a[_0xb97ee6(-0x1ae,-_0x586dec._0x212791,-0x1e3,-_0x586dec._0x55ce63)]??0x4000,this[_0xb97ee6(-_0x586dec._0x34069f,-0x10a,-0x147,-0xa7)]=_0x3cb54a[_0x17e9a3(-_0x586dec._0x5a3d30,-0x115,-_0x586dec._0x2d9662,-0x167)]?structuredClone(_0x3cb54a['reasoning']):void 0x0;}async['complete'](_0x5257af,_0x22391e){const _0x58feb6={_0x4c87af:0x76,_0x549404:0x58,_0x32612c:0xcd,_0x2ba100:0x60,_0x2d42be:0x1bd,_0x4edaa6:0x266,_0x5c376e:0x21d,_0x2832f9:0x8c,_0x2a3000:0xa4,_0xbbd10c:0x113,_0x2d2eb9:0x197,_0x33ec82:0x77,_0x45f756:0x22,_0x160b43:0x36,_0x29d11b:0x10,_0x498f67:0x41,_0x13edd2:0x88,_0x37a218:0xad,_0x428181:0x44,_0x56f358:0x2,_0x25297e:0xc4,_0x42f3ff:0x20d,_0x3d8c8d:0x1ff,_0x2d89e0:0x1a4,_0x40a381:0x105,_0x2e18f6:0x128,_0x2ba873:0x1cb,_0x77e888:0x104,_0x38441e:0x3d,_0x26e0fb:0xac,_0x479109:0x41,_0x5e679d:0x56,_0x299ce3:0x1e5,_0xfaf48a:0x152,_0x383493:0x48,_0x1af64a:0x7c},_0x4b7b99={_0x3a2d12:0x1a9,_0x1d70ba:0x1cd},_0x5161ac={_0x5f0796:0xdb,_0x164bad:0x401,_0x365f2a:0x29},_0x35dbe9={...structuredClone(_0x5257af),..._0x5257af[_0x52e888(0x144,0x40,0x98,0x45)]===void 0x0&&this[_0x52e888(_0x58feb6._0x4c87af,_0x58feb6._0x549404,0x98,0xad)]!==void 0x0?{'reasoning':structuredClone(this[_0x52e888(_0x58feb6._0x32612c,0x140,0x98,_0x58feb6._0x2ba100)])}:{}};this[_0x59d541(_0x58feb6._0x2d42be,0x1fe,_0x58feb6._0x4edaa6,_0x58feb6._0x5c376e)]['push'](_0x35dbe9);const _0x5be058=findLastMessage(_0x35dbe9['messages'],_0x52e888(_0x58feb6._0x2832f9,_0x58feb6._0x2a3000,0x24,0x9d)),_0x3cb0eb=getToolResultBlocks(_0x5be058),_0x31c110=_0x59d541(_0x58feb6._0xbbd10c,0x96,0x92,_0x58feb6._0x2d2eb9)+this['requests']['length'];if(_0x3cb0eb[_0x52e888(-_0x58feb6._0x33ec82,-_0x58feb6._0x45f756,-_0x58feb6._0x160b43,_0x58feb6._0x29d11b)]>0x0)return createMockResponse(_0x31c110,[{'type':_0x52e888(0xfe,0x13,_0x58feb6._0x498f67,-_0x58feb6._0x13edd2),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x3cb0eb[0x0]['content']}],_0x59d541(_0x58feb6._0x37a218,0x7b,0x1,0xa2),{'inputTokens':0x78,'outputTokens':0x28});const _0x467182=getTextFromMessage(_0x5be058);function _0x52e888(_0x4bde6f,_0x2eb7aa,_0x5df2e8,_0x273fa2){return _0x38c793(_0x4bde6f,_0x2eb7aa-_0x5161ac._0x5f0796,_0x5df2e8- -_0x5161ac._0x164bad,_0x273fa2-_0x5161ac._0x365f2a);}function _0x59d541(_0x456fa8,_0xd0b08a,_0x153c28,_0x6f22cc){return _0x2b6123(_0x153c28,_0xd0b08a-0x19b,_0x456fa8- -_0x4b7b99._0x3a2d12,_0x6f22cc-_0x4b7b99._0x1d70ba);}if(/list .*files|workspace/i[_0x52e888(0xb4,0x7,0xd1,0x26)](_0x467182)&&hasTool(_0x35dbe9,'Bash'))return createMockResponse(_0x31c110,[{'type':_0x52e888(-_0x58feb6._0x428181,0x21,_0x58feb6._0x56f358,_0x58feb6._0x25297e),'id':_0x59d541(_0x58feb6._0x42f3ff,_0x58feb6._0x3d8c8d,0x23d,_0x58feb6._0x2d89e0)+this[_0x59d541(_0x58feb6._0x2d42be,0x287,_0x58feb6._0x40a381,_0x58feb6._0x2e18f6)]['length'],'name':_0x59d541(0x141,_0x58feb6._0x2ba873,0x126,_0x58feb6._0x77e888),'input':{'command':'ls\x20-la'}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x31c110,[{'type':_0x52e888(_0x58feb6._0x38441e,_0x58feb6._0x26e0fb,_0x58feb6._0x479109,_0x58feb6._0x5e679d),'text':_0x59d541(0x11e,_0x58feb6._0x299ce3,_0x58feb6._0xfaf48a,0x182)+_0x467182}],_0x52e888(_0x58feb6._0x383493,-_0x58feb6._0x1af64a,-0x7b,0x33),{'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};
|