@nuvin/agent-core 0.0.0-rc.7 → 0.0.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x4e286f,_0x5ba517){const _0x401c4d={_0x338a80:0x26e,_0x268b5d:0x395,_0x3b660c:0x277,_0x35ee0b:0x266,_0x56ab7f:0x3d3,_0x567664:0x204,_0x26f8ac:0x368,_0x487ccc:0x379,_0x41c1b1:0x272,_0x420053:0x451,_0xbf3c65:0x3fd,_0x2ea1d6:0x1a4,_0x33f76d:0x222,_0x2101d8:0x25f,_0x328296:0x115,_0x146935:0x1b7,_0x32f043:0x290,_0x1e615d:0x1b2,_0x39812a:0x16a,_0x727162:0x1ef,_0x1fbeab:0x2f1},_0x4d97b4={_0x11bd61:0x1a0};function _0x1763f2(_0x4c8c68,_0x3c33bd,_0x15869e,_0x37a2f8){return _0x5b07(_0x4c8c68-0x7e,_0x15869e);}function _0x3025ac(_0x4d1599,_0x2da338,_0x38b1e3,_0x34a8dd){return _0x5b07(_0x38b1e3-_0x4d97b4._0x11bd61,_0x34a8dd);}const _0x795a75=_0x4e286f();while(!![]){try{const _0x3c8b63=-parseInt(_0x3025ac(_0x401c4d._0x338a80,_0x401c4d._0x268b5d,0x2eb,_0x401c4d._0x3b660c))/0x1+-parseInt(_0x1763f2(0x271,_0x401c4d._0x35ee0b,0x272,0x24e))/0x2*(parseInt(_0x3025ac(0x3a9,0x292,0x315,_0x401c4d._0x56ab7f))/0x3)+-parseInt(_0x3025ac(0x2fa,0x29e,0x2b0,_0x401c4d._0x567664))/0x4*(parseInt(_0x3025ac(_0x401c4d._0x26f8ac,_0x401c4d._0x487ccc,0x312,_0x401c4d._0x41c1b1))/0x5)+-parseInt(_0x3025ac(_0x401c4d._0x420053,0x367,0x38c,_0x401c4d._0xbf3c65))/0x6+parseInt(_0x3025ac(_0x401c4d._0x338a80,0x2c2,0x2ef,0x310))/0x7*(-parseInt(_0x1763f2(_0x401c4d._0x2ea1d6,_0x401c4d._0x33f76d,_0x401c4d._0x2101d8,_0x401c4d._0x328296))/0x8)+-parseInt(_0x1763f2(0x238,_0x401c4d._0x146935,_0x401c4d._0x32f043,_0x401c4d._0x1e615d))/0x9*(-parseInt(_0x1763f2(0x149,_0x401c4d._0x39812a,_0x401c4d._0x727162,0x14f))/0xa)+-parseInt(_0x3025ac(0x29a,0x31c,0x2f5,_0x401c4d._0x1fbeab))/0xb*(-parseInt(_0x3025ac(0x21f,0x22b,0x282,0x1fd))/0xc);if(_0x3c8b63===_0x5ba517)break;else _0x795a75['push'](_0x795a75['shift']());}catch(_0x452605){_0x795a75['push'](_0x795a75['shift']());}}}(_0xb5a6,0xb79ad));import{toOpenAiResponsesRequest}from'../chunk-4DNIDCX7.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x4e3624){const _0x408a04={_0x4e43b9:0x44f,_0x475c59:0xec};super(_0x4e3624);function _0x4d6e4b(_0x362f41,_0x176780,_0x35c852,_0xae18f4){return _0x5b07(_0xae18f4- -0x3b,_0x35c852);}function _0x79ceac(_0x48a82d,_0xce00ca,_0x4823db,_0x545cfc){return _0x5b07(_0x48a82d-0x36f,_0x4823db);}this[_0x79ceac(_0x408a04._0x4e43b9,0x4b2,0x4b1,0x3bb)]=_0x4d6e4b(_0x408a04._0x475c59,0x10b,0x146,0xe8);}},ProviderStreamEventError=class extends Error{[_0x5e5ba4(0x4c1,0x4d4,0x4d8,0x444)];[_0x5e5ba4(0x514,0x4fc,0x471,0x49b)];[_0x42ffe3(-0xde,-0xf6,-0x1d,-0x145)];constructor(_0xd9b894,_0x476bec={}){const _0x522b12={_0x2eadd1:0x388,_0x2fff82:0x444,_0x31b7c5:0xf5,_0x4f8866:0x15c,_0xdf2c3b:0x17b,_0x3c517a:0xc6,_0x5be2e0:0x15e,_0x2af289:0x346,_0x2402d7:0x39a},_0x394385={_0x1d4662:0x104},_0x1afc17={_0x553b1c:0x539};super(_0xd9b894);function _0x42a66c(_0x2b8690,_0x66158,_0x2cb9d8,_0x3c6e40){return _0x5e5ba4(_0x2b8690-0x7f,_0x3c6e40,_0x2cb9d8-0xc7,_0x66158- -_0x1afc17._0x553b1c);}function _0x277002(_0xded7f3,_0x354355,_0x5d47e4,_0x212ac4){return _0x42ffe3(_0x354355-0x424,_0x354355-_0x394385._0x1d4662,_0x5d47e4,_0x212ac4-0xe5);}this[_0x277002(0x440,_0x522b12._0x2eadd1,0x341,_0x522b12._0x2fff82)]='ProviderStreamEventError',this[_0x42a66c(-0xe9,-_0x522b12._0x31b7c5,-_0x522b12._0x4f8866,-_0x522b12._0xdf2c3b)]=_0x476bec[_0x42a66c(-_0x522b12._0x3c517a,-0xf5,-0x176,-_0x522b12._0x5be2e0)],this['retryable']=_0x476bec['retryable']??!![],this[_0x277002(0x3e5,0x346,0x37a,0x3c5)]=_0x476bec[_0x277002(0x279,_0x522b12._0x2af289,_0x522b12._0x2402d7,0x3cc)];}};function isRetryableProviderStreamEventError(_0x159ee4){return _0x159ee4 instanceof ProviderStreamEventError&&_0x159ee4['retryable'];}var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x42ffe3(-0x35,0x2c,-0x42,-0x67);function parseToolInput(_0x3a1afa){const _0x38a288={_0x39955b:0x1c5,_0x182579:0x27a},_0x373156={_0x56dc19:0x5f,_0x3ac5b5:0xa7};function _0x3558eb(_0x444d6d,_0x1fe5a5,_0xd38c17,_0x1fab23){return _0x5e5ba4(_0x444d6d-_0x373156._0x56dc19,_0xd38c17,_0xd38c17-_0x373156._0x3ac5b5,_0x1fab23- -0x30a);}try{return JSON[_0x3558eb(_0x38a288._0x39955b,0x2d7,0x302,_0x38a288._0x182579)](_0x3a1afa);}catch{return _0x3a1afa;}}function resolveReasoningVisibility(_0x24e163){const _0x5d743b={_0x3390ad:0x227,_0x170c3d:0x22e,_0x3dfced:0x1f9},_0x4e8601={_0x3d285b:0x38,_0x4f9fc0:0x56e},_0x21c39c={_0x3ef57b:0x2c,_0xb4740d:0x72d};function _0x30c3c8(_0x31494e,_0x18340c,_0x2e959d,_0x31aa27){return _0x5e5ba4(_0x31494e-0x12f,_0x31aa27,_0x2e959d-_0x21c39c._0x3ef57b,_0x18340c- -_0x21c39c._0xb4740d);}function _0x5df1b3(_0x1e8b41,_0x36f8cc,_0x37dc64,_0x34afd4){return _0x5e5ba4(_0x1e8b41-0x1d0,_0x1e8b41,_0x37dc64-_0x4e8601._0x3d285b,_0x37dc64- -_0x4e8601._0x4f9fc0);}return _0x24e163[_0x30c3c8(-0x1a9,-0x1fa,-0x19b,-_0x5d743b._0x3390ad)]?.[_0x30c3c8(-_0x5d743b._0x170c3d,-_0x5d743b._0x3dfced,-0x172,-0x27a)]??'user-visible';}function isUserVisibleThinking(_0xf0c6de){const _0x2c418f={_0x116731:0x54d,_0x3194ee:0x484,_0x207fe6:0x478,_0x4d5f76:0x46d,_0x2e1bc7:0x248,_0x4713dc:0x2de,_0x3dd633:0x23d,_0x2ecb9a:0x333,_0x4d18b0:0x2b3},_0x5ba4b1={_0x1fe9c:0x132},_0x45a4f1={_0x5e8d44:0x1b7};function _0x257089(_0x3b2623,_0x5b9c9f,_0x1671b0,_0x1debac){return _0x5e5ba4(_0x3b2623-_0x45a4f1._0x5e8d44,_0x1671b0,_0x1671b0-0x6b,_0x5b9c9f- -0xc7);}const _0x74cf96=resolveAnthropicThinkingConfig(_0xf0c6de[_0x257089(0x50a,0x46c,0x52f,0x461)]);function _0x5e3ea9(_0x5f017b,_0x4a3156,_0xdadeb2,_0x2efba8){return _0x42ffe3(_0xdadeb2-0x37d,_0x4a3156-_0x5ba4b1._0x1fe9c,_0x5f017b,_0x2efba8-0x1ce);}return _0x74cf96!==void 0x0&&_0x74cf96[_0x257089(_0x2c418f._0x116731,_0x2c418f._0x3194ee,_0x2c418f._0x207fe6,_0x2c418f._0x4d5f76)]!==_0x5e3ea9(_0x2c418f._0x2e1bc7,0x394,_0x2c418f._0x4713dc,_0x2c418f._0x3dd633)&&resolveReasoningVisibility(_0xf0c6de)===_0x5e3ea9(_0x2c418f._0x2ecb9a,0x266,_0x2c418f._0x4d18b0,0x212);}function createAnthropicThinkingBody(_0xd130ad){const _0x44c077={_0x535747:0x489,_0x44564e:0x433,_0x1afe87:0x3f,_0x2a0abc:0x68,_0x49ec96:0xe2,_0x1a59b7:0x5a,_0x53e0ec:0x5f8,_0x3b6f42:0x5d2,_0x4f9bf0:0x540,_0x13e5d3:0x13,_0x3acb11:0xb0,_0x9cbbb1:0xc0,_0x3b7348:0x84,_0x48aa4b:0x35,_0x2ee920:0x521,_0x478e9b:0x687,_0x42a2ab:0x5b2,_0x42a044:0x5a1,_0x586b08:0x430,_0x3499bb:0x56b},_0x186876={_0x5f037f:0xef,_0x19470d:0xe6},_0x4b789a={_0x5a9226:0x20},_0x87c3d1=resolveAnthropicThinkingConfig(_0xd130ad['reasoning']);if(!_0x87c3d1||_0x87c3d1['type']===_0x39aae7(0x532,0x3bd,0x3cf,_0x44c077._0x535747))return{};const _0x27f669=_0x87c3d1[_0x39aae7(0x536,0x47a,_0x44c077._0x44564e,0x4b6)]??(isUserVisibleThinking(_0xd130ad)?'summarized':_0x1b43f8(-0x11,0x56,_0x44c077._0x1afe87,-_0x44c077._0x2a0abc)),_0x11f0ec=_0x87c3d1['interleaved']?{'anthropic-beta':_0x1b43f8(-0x69,_0x44c077._0x49ec96,0x5c,-_0x44c077._0x1a59b7)}:void 0x0;function _0x39aae7(_0x17acfb,_0x455273,_0x19859c,_0x3c9a6e){return _0x42ffe3(_0x3c9a6e-0x528,_0x455273-0x60,_0x17acfb,_0x3c9a6e-_0x4b789a._0x5a9226);}if(_0x87c3d1[_0x39aae7(_0x44c077._0x53e0ec,0x581,_0x44c077._0x3b6f42,_0x44c077._0x4f9bf0)]==='enabled')return{..._0x11f0ec?{'headers':_0x11f0ec}:{},'thinking':{'type':_0x1b43f8(-_0x44c077._0x13e5d3,-_0x44c077._0x3acb11,-_0x44c077._0x9cbbb1,-_0x44c077._0x3b7348),'budget_tokens':_0x87c3d1[_0x1b43f8(-0x3d,0xb0,-0xd,_0x44c077._0x48aa4b)],'display':_0x27f669}};function _0x1b43f8(_0x512876,_0x14f2b3,_0x121ba4,_0x23ea91){return _0x5e5ba4(_0x512876-_0x186876._0x5f037f,_0x14f2b3,_0x121ba4-_0x186876._0x19470d,_0x121ba4- -0x4f2);}return{..._0x11f0ec?{'headers':_0x11f0ec}:{},'thinking':{'type':_0x39aae7(_0x44c077._0x2ee920,0x655,_0x44c077._0x478e9b,_0x44c077._0x42a2ab),..._0x87c3d1[_0x39aae7(_0x44c077._0x42a044,_0x44c077._0x586b08,_0x44c077._0x3499bb,0x4f0)]?{'effort':_0x87c3d1['effort']}:{},'display':_0x27f669}};}function toAnthropicRequestContent(_0x3dae7e){const _0x5091fb={_0x2bcc1c:0x499,_0x4b2a3b:0x3f7,_0x396a5a:0xe0,_0x5a3907:0x4ab,_0x58cf8e:0x472,_0x3d6033:0x3cf,_0x188f4f:0x350,_0x55c9ac:0x372,_0x5a9391:0x15c,_0x2f44b2:0x41,_0x3d1512:0xd5,_0x5814ad:0x1a4,_0x2ed64a:0xae,_0x2589df:0x75,_0x1c06a8:0x139,_0x378c4f:0x2b4,_0x52fbe1:0x255,_0x3689b8:0x48b,_0x1a2a49:0x84,_0x25beb2:0x5e,_0x48b63b:0x5,_0x302eb8:0x17e,_0x4d875a:0x135,_0x34ad43:0x156,_0x43deac:0x407,_0x8d1310:0x3f7,_0x8ca972:0x114,_0x3c2356:0xd3,_0x2fd996:0x16e,_0x4108f8:0x464},_0x4dccc2={_0x2268c6:0x435,_0x18784f:0x159,_0x5bd938:0x1e5},_0x4de2f3={_0x2b10bc:0x1c7};if(_0x3dae7e[_0x4cdc3c(_0x5091fb._0x2bcc1c,0x4bb,0x49f,_0x5091fb._0x4b2a3b)]===_0x3aa3ff(-0x265,-0x199,-_0x5091fb._0x396a5a,-0x123)&&_0x3dae7e['providerState']?.[_0x4cdc3c(0x4b6,_0x5091fb._0x5a3907,0x3e1,_0x5091fb._0x58cf8e)])return structuredClone(_0x3dae7e[_0x4cdc3c(0x411,_0x5091fb._0x3d6033,_0x5091fb._0x188f4f,_0x5091fb._0x55c9ac)][_0x3aa3ff(-0x139,-0x141,-0x20e,-_0x5091fb._0x5a9391)]);function _0x3aa3ff(_0x516d15,_0x210748,_0x880f1c,_0x2d2ffc){return _0x5e5ba4(_0x516d15-_0x4de2f3._0x2b10bc,_0x2d2ffc,_0x880f1c-0x35,_0x210748- -0x620);}function _0x4cdc3c(_0x1ccb88,_0x3136aa,_0x2df379,_0x27db95){return _0x42ffe3(_0x2df379-_0x4dccc2._0x2268c6,_0x3136aa-_0x4dccc2._0x18784f,_0x3136aa,_0x27db95-_0x4dccc2._0x5bd938);}const _0x2aee37=[];for(const _0x4a6d4e of normalizeContent(_0x3dae7e['content'])){if(_0x4a6d4e[_0x3aa3ff(-_0x5091fb._0x2f44b2,-_0x5091fb._0x3d1512,-_0x5091fb._0x5814ad,-0x17)]===_0x3aa3ff(-_0x5091fb._0x2ed64a,-0xae,-_0x5091fb._0x2589df,-_0x5091fb._0x1c06a8))continue;if(_0x4a6d4e['type']===_0x3aa3ff(-_0x5091fb._0x378c4f,-0x1e2,-_0x5091fb._0x52fbe1,-0x292)){_0x2aee37[_0x3aa3ff(-0x106,-0xd3,-0x58,-0x7d)]({'type':_0x4cdc3c(0x4fd,0x58b,0x4c4,_0x5091fb._0x3689b8),'thinking':_0x4a6d4e[_0x3aa3ff(-_0x5091fb._0x1a2a49,-_0x5091fb._0x25beb2,_0x5091fb._0x48b63b,-0x6c)],'signature':_0x4a6d4e[_0x3aa3ff(-0x15b,-_0x5091fb._0x302eb8,-_0x5091fb._0x4d875a,-_0x5091fb._0x34ad43)]});continue;}if(_0x4a6d4e['type']===_0x4cdc3c(_0x5091fb._0x43deac,0x2ad,0x345,_0x5091fb._0x8d1310)){_0x2aee37[_0x3aa3ff(-_0x5091fb._0x8ca972,-_0x5091fb._0x3c2356,-0x12d,-_0x5091fb._0x2fd996)]({'type':'redacted_thinking','data':_0x4a6d4e['data']});continue;}_0x2aee37[_0x4cdc3c(_0x5091fb._0x4108f8,0x4c1,0x44f,0x3b6)](structuredClone(_0x4a6d4e));}return _0x2aee37;}function createAnthropicRequest(_0x5926f3,_0x23b9d2){const _0x5247e4={_0x3b71fc:0x403,_0x51829f:0x444,_0x34662e:0x43e,_0x301435:0x422,_0x2dde83:0x43b,_0x1b1d4c:0xc2,_0x3a8bab:0x2f,_0xd4f912:0x158,_0x34e308:0xdb,_0x5eda3d:0x159,_0x22a087:0x26d,_0x21fd74:0x1e5,_0x583b7a:0x2dd,_0x448ea3:0x492,_0x2f97dd:0x4af,_0x24e44a:0x381},_0x67840=toProviderModelRequest(_0x5926f3);function _0x32f996(_0x3b42cb,_0x3e5e56,_0x1a71df,_0x2a8c32){return _0x42ffe3(_0x1a71df-0x518,_0x3e5e56-0x1d5,_0x3b42cb,_0x2a8c32-0x1b);}function _0x9caf62(_0x53f106,_0x5ac2d7,_0x267768,_0x580b4f){return _0x5e5ba4(_0x53f106-0x1ee,_0x267768,_0x267768-0x18d,_0x53f106- -0x39d);}const _0x545121=createAnthropicThinkingBody(_0x5926f3);return{'accept':_0x23b9d2?_0x32f996(_0x5247e4._0x3b71fc,0x4cf,0x41d,_0x5247e4._0x51829f):_0x32f996(_0x5247e4._0x34662e,0x416,_0x5247e4._0x301435,_0x5247e4._0x2dde83),'body':{..._0x67840,'messages':_0x5926f3[_0x9caf62(_0x5247e4._0x1b1d4c,_0x5247e4._0x3a8bab,_0x5247e4._0xd4f912,_0x5247e4._0x34e308)]['map'](_0x4e9370=>{return{'role':_0x4e9370['role'],'content':toAnthropicRequestContent(_0x4e9370)};}),..._0x545121[_0x9caf62(0x225,_0x5247e4._0x5eda3d,0x236,_0x5247e4._0x22a087)]?{'thinking':_0x545121[_0x9caf62(0x225,_0x5247e4._0x21fd74,_0x5247e4._0x583b7a,0x2aa)]}:{},..._0x23b9d2?{'stream':!![]}:{}},..._0x545121['headers']?{'headers':_0x545121[_0x32f996(_0x5247e4._0x448ea3,_0x5247e4._0x2f97dd,0x41e,_0x5247e4._0x24e44a)]}:{},'path':_0x9caf62(0x21f,0x2e1,0x25a,0x27e)};}function parseAnthropicResponse(_0xc2e2a1,_0x52a86e){const _0x3d6c10={_0x359bb4:0x5,_0x523a66:0xe1,_0x5f0c64:0x7a,_0x145fbe:0x1d2,_0x2dce59:0x1e5,_0x46a498:0x17d,_0x51d2b8:0x102,_0x392355:0xcc,_0x1324e6:0x26,_0x319e7d:0x6c,_0x595862:0xe8,_0x50b1c3:0x57,_0x116910:0x16,_0x58bc25:0xad,_0x3d0f21:0xdd,_0x52c506:0x2c,_0x5cd08a:0x23,_0x28b8df:0x16e,_0x47e0f3:0x77,_0x18777b:0xef,_0x3c7a28:0x19d,_0x1f3458:0x2bf,_0x480fb9:0x8f,_0x347c40:0xa6,_0x4554e3:0x1a,_0xa3e2aa:0x57,_0x1000ce:0x9,_0x32f647:0x23d,_0x16a87b:0x4c,_0x76cba6:0x75,_0x56049:0x8a,_0x3d4cea:0x205,_0x3410f8:0x1a4,_0x2f2d62:0x106,_0x1b15ff:0x228,_0x5ad67f:0x5f,_0x3da7c4:0x49,_0x1ab81c:0xcb,_0x3ad967:0x1,_0x355bd0:0xca,_0x4071b9:0x8b,_0x2df370:0x26d,_0x41d427:0xc1,_0x2a916d:0x1e,_0x381ac5:0x6f,_0x4b5b27:0x1a7,_0x32ffaa:0x245,_0x1d9ff9:0x249,_0x247218:0x33,_0x5ce98b:0x46,_0x58f34e:0x28b,_0x5ce358:0x40,_0x316210:0x1b,_0x4d9f6d:0x7c,_0x53e9b0:0x3e},_0x223c0d={_0x4eab78:0x1ea,_0x6e77e8:0x1a5},_0x63db2a={_0x3ff809:0x3d,_0x33bb4f:0xc8};function _0x4f1f99(_0x2b8276,_0x548690,_0x232ea9,_0x3bcbbe){return _0x42ffe3(_0x232ea9-_0x63db2a._0x3ff809,_0x548690-_0x63db2a._0x33bb4f,_0x3bcbbe,_0x3bcbbe-0x1c9);}const _0x104088=[],_0x5036b5=_0xc2e2a1[_0x4f1f99(-_0x3d6c10._0x359bb4,-_0x3d6c10._0x523a66,-0x33,_0x3d6c10._0x5f0c64)]??[];let _0x2b2dcb=![];function _0x179cb1(_0x530c75,_0x406e38,_0x541f87,_0x35c660){return _0x42ffe3(_0x530c75- -_0x223c0d._0x4eab78,_0x406e38-_0x223c0d._0x6e77e8,_0x406e38,_0x35c660-0xca);}for(const _0x345ede of _0x5036b5){if(_0x345ede[_0x179cb1(-_0x3d6c10._0x145fbe,-_0x3d6c10._0x2dce59,-_0x3d6c10._0x46a498,-0x1f1)]===_0x4f1f99(_0x3d6c10._0x51d2b8,0xcd,_0x3d6c10._0x392355,_0x3d6c10._0x1324e6)){_0x2b2dcb=!![];isUserVisibleThinking(_0x52a86e)&&_0x104088[_0x4f1f99(_0x3d6c10._0x319e7d,_0x3d6c10._0x595862,_0x3d6c10._0x50b1c3,0xfc)]({'type':'anthropic_thinking','thinking':_0x345ede['thinking'],'signature':_0x345ede[_0x179cb1(-0x27b,-0x254,-0x1b5,-0x33e)]});continue;}if(_0x345ede[_0x4f1f99(-_0x3d6c10._0x116910,0xe8,0x55,0xd7)]===_0x4f1f99(_0x3d6c10._0x58bc25,_0x3d6c10._0x3d0f21,_0x3d6c10._0x52c506,-0x82)){_0x2b2dcb=!![];isUserVisibleThinking(_0x52a86e)&&_0x104088[_0x4f1f99(_0x3d6c10._0x5cd08a,0x6b,0x57,0xf2)]({'type':_0x4f1f99(-_0x3d6c10._0x28b8df,-_0x3d6c10._0x47e0f3,-0xb3,-_0x3d6c10._0x18777b),'data':_0x345ede['data']});continue;}if(_0x345ede[_0x179cb1(-_0x3d6c10._0x145fbe,-0x1b0,-0x205,-_0x3d6c10._0x3c7a28)]===_0x179cb1(-0x237,-0x1b9,-0x1dd,-_0x3d6c10._0x1f3458)){_0x345ede[_0x179cb1(-0x237,-0x1f9,-0x303,-0x170)][_0x4f1f99(-_0x3d6c10._0x480fb9,-_0x3d6c10._0x347c40,-0x14,0xae)]>0x0&&_0x104088[_0x4f1f99(0x4a,-_0x3d6c10._0x4554e3,_0x3d6c10._0xa3e2aa,-0x71)](structuredClone(_0x345ede));continue;}_0x104088['push'](structuredClone(_0x345ede));}return{'id':_0xc2e2a1['id']??'msg-'+Date[_0x4f1f99(-0x4,_0x3d6c10._0x1000ce,0x56,0x7f)](),'content':_0x104088,'stopReason':_0x104088[_0x179cb1(-0x1e8,-0x195,-0x1cc,-_0x3d6c10._0x32f647)](_0x29116c=>_0x29116c[_0x179cb1(-0x1d2,-0x201,-0x259,-0x233)]===_0x4f1f99(-0x86,0x107,0x4c,0xf5))?_0x4f1f99(-0x1a,0x30,_0x3d6c10._0x16a87b,-0x88):_0xc2e2a1[_0x4f1f99(_0x3d6c10._0x76cba6,_0x3d6c10._0x56049,-0x4b,-0xaa)]===_0x179cb1(-0x1db,-_0x3d6c10._0x3d4cea,-_0x3d6c10._0x3410f8,-0x1bc)?_0x179cb1(-0x1db,-_0x3d6c10._0x2f2d62,-_0x3d6c10._0x1b15ff,-0x1ec):_0x4f1f99(_0x3d6c10._0x5ad67f,_0x3d6c10._0x3da7c4,_0x3d6c10._0x1ab81c,_0x3d6c10._0x3ad967),'usage':{'inputTokens':(_0xc2e2a1[_0x4f1f99(0x41,-_0x3d6c10._0x355bd0,-0x46,-_0x3d6c10._0x4071b9)]?.['input_tokens']??0x0)+(_0xc2e2a1[_0x179cb1(-_0x3d6c10._0x2df370,-0x264,-0x330,-0x1cc)]?.[_0x4f1f99(0x30,-_0x3d6c10._0x41d427,-_0x3d6c10._0x2a916d,_0x3d6c10._0x381ac5)]??0x0)+(_0xc2e2a1[_0x179cb1(-0x26d,-0x216,-_0x3d6c10._0x4b5b27,-0x2e6)]?.['cache_creation_input_tokens']??0x0),'outputTokens':_0xc2e2a1['usage']?.['output_tokens']??0x0,..._0xc2e2a1['usage']?.[_0x179cb1(-_0x3d6c10._0x32ffaa,-0x2b8,-0x261,-_0x3d6c10._0x1d9ff9)]?{'cacheReadInputTokens':_0xc2e2a1[_0x4f1f99(_0x3d6c10._0x247218,-0x91,-_0x3d6c10._0x5ce98b,-0x12)][_0x179cb1(-0x245,-0x1c3,-0x18b,-_0x3d6c10._0x58f34e)]}:{},..._0xc2e2a1[_0x4f1f99(0x23,_0x3d6c10._0x5ce358,-0x46,-0x90)]?.[_0x179cb1(-0x26a,-0x21b,-0x219,-0x301)]?{'cacheCreationInputTokens':_0xc2e2a1['usage'][_0x4f1f99(-_0x3d6c10._0x316210,-_0x3d6c10._0x4d9f6d,-0x43,_0x3d6c10._0x53e9b0)]}:{}},..._0x2b2dcb?{'providerState':{'anthropicAssistantContent':structuredClone(_0x5036b5)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();[_0x5e5ba4(0x527,0x506,0x45d,0x471)]=0x0;[_0x5e5ba4(0x443,0x4af,0x4fc,0x436)]=0x0;[_0x42ffe3(0x6f,0xc7,0xd0,-0xb)]=0x0;[_0x42ffe3(0x36,0x59,-0x38,-0x59)]='msg-'+Date['now']();['outputTokens']=0x0;[_0x5e5ba4(0x41b,0x44c,0x4d7,0x4c5)];[_0x5e5ba4(0x51c,0x5bd,0x5d6,0x501)]=_0x5e5ba4(0x662,0x5ec,0x56e,0x5c1);constructor(_0x42437f){this['request']=_0x42437f;}[_0x42ffe3(-0xc9,-0xa5,-0x8,0xb)](_0x27a2c3){const _0x4e4325={_0x1834b5:0x261,_0x3622d3:0xad,_0x884c2:0x95,_0x3445cd:0x1e7,_0x105fa5:0x200,_0x39c8d3:0x2a1,_0x3d42a8:0x28e,_0x1f1e1a:0x12b,_0x1270c0:0xab,_0x1af644:0xc0,_0x45dd59:0x2ca,_0x590669:0x1c9,_0x35537b:0x2d8,_0x50839c:0x43,_0x5bab83:0x10b,_0x24b58d:0x14a,_0x36d078:0x188,_0x1b9988:0xf7,_0x29ee39:0x148,_0x2f70d0:0x143,_0x53e2f6:0x22c,_0x583baf:0x2a7,_0x5a96af:0x123,_0x4e7295:0x1cf,_0x5da96e:0x19a,_0x1f8808:0x13b,_0x4f1ef8:0x176,_0x4daac1:0x1be,_0x2fe122:0x151,_0x35564b:0x25e,_0x45b77c:0x2d2,_0x9bbd6f:0x15e,_0x51d30e:0x208,_0x2fc15e:0x373,_0x424406:0x282,_0x244b7c:0x294,_0x1abeeb:0x160,_0x163ac7:0x13e,_0x39d1da:0x141,_0x4b7926:0x301,_0x8bbb6f:0x2cc,_0x26e0ac:0x2b0,_0x510f6a:0x28a,_0x3a6165:0x209,_0x485a21:0x30c,_0x46e42d:0x2ad,_0x546d2d:0x27c,_0x48b290:0x1e8,_0x42724e:0x120,_0x857345:0x1e2,_0x1e9e7d:0x21b,_0x53c83d:0x186,_0x15e220:0x16f,_0x4386b8:0xff,_0x52de31:0x136,_0x549655:0x305,_0x434e34:0x2c9,_0x37efe3:0x222,_0x411017:0x390,_0x243c06:0x1d5,_0x2620a7:0x261,_0x2cb397:0x21c,_0x2f2beb:0x1a4,_0x4730ec:0x168,_0x51f99f:0x1dd,_0x467564:0x1e4,_0x514980:0x19e,_0x36f2a9:0xec,_0xb44c26:0x1b1,_0x366c07:0x14d,_0x5b3f47:0x1cd,_0x4bd158:0x2d7,_0x5d8a83:0x28f,_0x4087a6:0x18c,_0x5ba658:0x2ab,_0x3ed5cc:0x2be,_0x43be93:0x246,_0x55bcf4:0x30a,_0x2c9fed:0x324,_0x120e29:0x27a,_0x420063:0xbc,_0x589907:0x293,_0x46eef7:0x27a,_0x355029:0x265,_0x2094c4:0x11f,_0x5eb67c:0x10c,_0x325173:0x134,_0x3452ad:0x19b,_0x26b5c4:0x206,_0x507386:0x2fd,_0x3d5820:0x1af,_0x46098e:0x91,_0x3f6e31:0xb9,_0x2d969f:0x3,_0x1bd279:0x235,_0x3166d4:0x376,_0x16fa3a:0xb5,_0x1f4092:0xb9,_0x5c6206:0x8a,_0xb5de93:0x119,_0x176df6:0x14d,_0x5f59ce:0x191,_0x3c4018:0x175,_0x3e4108:0x12b,_0x21a8f2:0x164,_0x32d5ba:0x27a,_0x788d99:0x32a,_0x364828:0x1b6,_0x53d34c:0x231,_0x3a1434:0x1e0,_0x3a741d:0x220,_0x14a08a:0x262,_0x2d407e:0xa3,_0x7a9063:0x172,_0x1891a9:0x13a,_0x192d83:0x245,_0xe29169:0x1b1,_0xd97443:0x111,_0x1dcd0b:0x100,_0x3006db:0x215,_0x27a0a0:0x1ed,_0x89fa9c:0x194,_0x51638f:0x271,_0x2d35b7:0x2d4,_0x195a89:0x2a4,_0x194f07:0x2e9,_0x31c7f1:0x27a,_0x126f4f:0x266,_0x16d569:0x29c,_0x31d0e9:0x315,_0xafbcd6:0x18c,_0x2e1f9a:0x215,_0x471d30:0x16c,_0x50476b:0x1a8,_0x372afe:0x268,_0x491cea:0x1ec,_0x4a8ac9:0x263,_0x5b0419:0x1ae,_0x19a0ff:0x33c,_0x50818d:0x2a0,_0x60a1f9:0x1f8,_0x292fed:0x341,_0x508175:0x2a3,_0x5093be:0x1f5,_0x2b9746:0x207,_0x1bf950:0x27e,_0x9fd31a:0x23a,_0x2a81ce:0x20f,_0xed8ef3:0x1b9,_0x338477:0x1bb,_0x31d00b:0x3a5,_0x35a26c:0x30a,_0xccad7:0x358,_0x4e48dd:0x19e,_0xb0df29:0x148,_0x3a18e7:0x9a,_0x5afc36:0xa5,_0x5918a3:0x31,_0x286e29:0x1f3,_0x1b12ce:0x20d,_0x50f0e4:0x11b,_0x10258b:0x1fa,_0x3cce5d:0xbc,_0x22fb50:0x357,_0x59f80d:0x314,_0x3699ab:0x1f0,_0x4f1a08:0x18f,_0x7c4655:0x13e,_0x447b23:0xfb,_0x24ac39:0x289,_0x5c57f9:0x2c1,_0x6245c5:0x2dc,_0x10af70:0x1a2,_0x5bb777:0x1d0,_0x2df735:0x347,_0x31ca97:0x2b0,_0xfcf522:0x9c,_0x540e77:0x89,_0x38fb89:0x1e6,_0x4924c3:0x32a,_0x337cdb:0x2a7,_0x39dcd5:0x2ef,_0x318b99:0x237,_0x2d8f3a:0x362,_0x5c3b43:0x381,_0x2e9f87:0x15d,_0xd7fd57:0x112,_0x5c1ddf:0x1ac,_0x1a97dd:0x1c5,_0x1b3416:0x190,_0x1d1cf8:0x26d,_0x2a1f0e:0x2c6,_0x205c70:0xf6,_0x2e0aba:0x2e8,_0x3825ac:0x227,_0x2ec306:0x24e,_0x2202ce:0x326,_0xed919:0x154,_0x57d71e:0x1c6,_0x5f4b7c:0x1b1,_0x2b8880:0x105},_0x57a824={_0x3742fd:0x135},_0x2bb67b=_0x27a2c3[_0x49b77a(0x20f,0x1a0,0x23d,_0x4e4325._0x1834b5)]('\x0a'),_0x52e015=_0x2bb67b[_0x49b77a(_0x4e4325._0x3622d3,_0x4e4325._0x884c2,0x7,0xa7)](_0x55ab4e=>_0x55ab4e[_0x4d8499(-0x32c,-0x310,-0x39f,-0x3b6)](_0x49b77a(0x14a,0x16e,0x1fd,0x13b)))?.[_0x4d8499(-0x1a0,-_0x4e4325._0x3445cd,-_0x4e4325._0x105fa5,-0x176)](0x6)[_0x4d8499(-_0x4e4325._0x39c8d3,-0x27c,-_0x4e4325._0x3d42a8,-0x294)](),_0x54f45b=_0x2bb67b[_0x49b77a(_0x4e4325._0x1f1e1a,_0x4e4325._0x1270c0,0x37,_0x4e4325._0x1af644)](_0x3e486f=>_0x3e486f[_0x49b77a(0x165,0xb6,0xc,0x4e)](_0x49b77a(0x15a,0x21c,0x17c,0x230)))[_0x4d8499(-_0x4e4325._0x45dd59,-0x284,-_0x4e4325._0x590669,-_0x4e4325._0x35537b)](_0x365153=>_0x365153[_0x4d8499(-0x296,-0x1e7,-0x2ad,-0x12c)](0x5)[_0x4d8499(-0x1bf,-0x1cf,-0x1e8,-0x18a)]())[_0x49b77a(_0x4e4325._0x50839c,_0x4e4325._0x5bab83,0xe2,0x120)]('\x0a')[_0x49b77a(0x1da,_0x4e4325._0x24b58d,0x11d,_0x4e4325._0x36d078)]();if(_0x54f45b[_0x49b77a(_0x4e4325._0x1b9988,_0x4e4325._0x29ee39,_0x4e4325._0x2f70d0,0x20a)]===0x0||_0x54f45b==='[DONE]')return[];const _0x195118=JSON[_0x4d8499(-_0x4e4325._0x53e2f6,-0x1dc,-_0x4e4325._0x583baf,-_0x4e4325._0x24b58d)](_0x54f45b);switch(_0x52e015){case _0x4d8499(-0x275,-0x2f9,-0x322,-0x2e4):{const _0x41db88=_0x195118['message'];this[_0x49b77a(_0x4e4325._0x5a96af,_0x4e4325._0x4e7295,_0x4e4325._0x5da96e,0x10e)]=_0x41db88?.['id']??this[_0x4d8499(-_0x4e4325._0x1f8808,-0x1f7,-_0x4e4325._0x4f1ef8,-0x12f)],this[_0x4d8499(-0x103,-_0x4e4325._0x4daac1,-0x18f,-_0x4e4325._0x2fe122)]=_0x41db88?.['usage']?.[_0x4d8499(-_0x4e4325._0x35564b,-_0x4e4325._0x45b77c,-0x391,-0x340)]??this[_0x49b77a(_0x4e4325._0x9bbd6f,_0x4e4325._0x51d30e,0x14c,0x2a8)],this[_0x4d8499(-0x292,-0x32a,-_0x4e4325._0x2fc15e,-_0x4e4325._0x424406)]=_0x41db88?.[_0x4d8499(-0x1dc,-0x2b0,-0x288,-_0x4e4325._0x244b7c)]?.[_0x49b77a(_0x4e4325._0x1abeeb,_0x4e4325._0x163ac7,_0x4e4325._0x39d1da,0x7f)]??this[_0x4d8499(-0x3cf,-0x32a,-_0x4e4325._0x4b7926,-_0x4e4325._0x8bbb6f)],this[_0x4d8499(-0x360,-0x2ef,-0x294,-0x36d)]=_0x41db88?.[_0x4d8499(-0x1ee,-_0x4e4325._0x26e0ac,-_0x4e4325._0x510f6a,-_0x4e4325._0x3a6165)]?.[_0x4d8499(-_0x4e4325._0x485a21,-_0x4e4325._0x46e42d,-_0x4e4325._0x546d2d,-_0x4e4325._0x48b290)]??this[_0x4d8499(-0x35c,-0x2ef,-0x29b,-0x2c4)];break;}case'content_block_start':{const _0xfd452e=typeof _0x195118[_0x49b77a(0xf6,0x97,_0x4e4325._0x42724e,0xcd)]==='number'?_0x195118['index']:0x0,_0x37684d=_0x195118[_0x49b77a(0x166,_0x4e4325._0x857345,0x26e,0x231)];if(_0x37684d?.[_0x4d8499(-_0x4e4325._0x1e9e7d,-0x215,-_0x4e4325._0x53c83d,-_0x4e4325._0x15e220)]===_0x49b77a(_0x4e4325._0x4386b8,0x1a8,_0x4e4325._0x52de31,0xd6)&&_0x37684d['id']&&_0x37684d[_0x4d8499(-_0x4e4325._0x549655,-_0x4e4325._0x434e34,-_0x4e4325._0x37efe3,-_0x4e4325._0x411017)])return this['blocks'][_0x49b77a(0x1f7,_0x4e4325._0x243c06,0x1aa,0x196)](_0xfd452e,{'id':_0x37684d['id'],'index':_0xfd452e,'inputJson':JSON[_0x4d8499(-0x272,-_0x4e4325._0x2620a7,-_0x4e4325._0x2cb397,-_0x4e4325._0x2f2beb)](_0x37684d[_0x49b77a(0x100,0x1af,0x1d2,0x137)]??{}),'kind':'tool_use','name':_0x37684d[_0x49b77a(0x45,0xfd,0xe4,_0x4e4325._0x4730ec)]}),[{'type':_0x4d8499(-_0x4e4325._0x51f99f,-0x2a3,-_0x4e4325._0x467564,-0x31f),'id':_0x37684d['id'],'index':_0xfd452e,'name':_0x37684d[_0x49b77a(0x10c,0xfd,0x14b,0x60)]}];if(_0x37684d?.['type']===_0x4d8499(-_0x4e4325._0x163ac7,-_0x4e4325._0x514980,-_0x4e4325._0x36f2a9,-_0x4e4325._0xb44c26)){this[_0x49b77a(0x1a9,_0x4e4325._0x366c07,0xec,_0x4e4325._0x5b3f47)]['set'](_0xfd452e,{'index':_0xfd452e,'kind':_0x49b77a(_0x4e4325._0x4bd158,0x228,_0x4e4325._0x5d8a83,_0x4e4325._0x4087a6),'signature':typeof _0x37684d[_0x4d8499(-_0x4e4325._0x5ba658,-_0x4e4325._0x3ed5cc,-0x37b,-0x379)]===_0x4d8499(-_0x4e4325._0x43be93,-_0x4e4325._0x55bcf4,-0x355,-0x2b6)?_0x37684d[_0x4d8499(-0x279,-0x2be,-_0x4e4325._0x2c9fed,-0x202)]:'','thinking':typeof _0x37684d[_0x4d8499(-0x2b2,-_0x4e4325._0x120e29,-0x2ee,-0x2cc)]===_0x49b77a(0x126,_0x4e4325._0x420063,0x158,0x157)?_0x37684d[_0x4d8499(-_0x4e4325._0x589907,-_0x4e4325._0x46eef7,-_0x4e4325._0x355029,-0x277)]:typeof _0x37684d[_0x4d8499(-_0x4e4325._0x2094c4,-0x19e,-0x1ac,-0x1a3)]==='string'?String(_0x37684d['thinking']):''});break;}if(_0x37684d?.[_0x49b77a(_0x4e4325._0x5eb67c,_0x4e4325._0xb44c26,0x10e,_0x4e4325._0x325173)]===_0x4d8499(-0x246,-0x23e,-_0x4e4325._0x3452ad,-_0x4e4325._0x26b5c4)){this[_0x4d8499(-0x1f7,-0x279,-_0x4e4325._0x507386,-0x241)]['set'](_0xfd452e,{'index':_0xfd452e,'kind':_0x49b77a(_0x4e4325._0x3d5820,_0x4e4325._0x36d078,0x18c,0x132),'data':typeof _0x37684d[_0x49b77a(_0x4e4325._0x46098e,_0x4e4325._0x3f6e31,-_0x4e4325._0x2d969f,0x142)]===_0x4d8499(-_0x4e4325._0x1bd279,-0x30a,-_0x4e4325._0x3166d4,-0x3a6)?String(_0x37684d[_0x49b77a(_0x4e4325._0x16fa3a,_0x4e4325._0x1f4092,_0x4e4325._0x5c6206,_0x4e4325._0xb5de93)]):''});break;}this[_0x49b77a(0xb9,_0x4e4325._0x176df6,_0x4e4325._0x5f59ce,_0x4e4325._0x3c4018)]['set'](_0xfd452e,{'index':_0xfd452e,'kind':_0x49b77a(_0x4e4325._0x3e4108,0x14c,_0x4e4325._0x21a8f2,0xa1),'text':_0x37684d?.[_0x4d8499(-0x2de,-_0x4e4325._0x32d5ba,-_0x4e4325._0x788d99,-_0x4e4325._0x364828)]??''});break;}case _0x49b77a(_0x4e4325._0x53d34c,0x1ca,_0x4e4325._0x3a1434,_0x4e4325._0x3a741d):{const _0xf45ebb=typeof _0x195118[_0x4d8499(-0x25a,-0x32f,-0x393,-_0x4e4325._0x14a08a)]==='number'?_0x195118['index']:0x0,_0x59a5d8=this[_0x49b77a(0x10e,_0x4e4325._0x366c07,_0x4e4325._0x2d407e,0x11b)][_0x49b77a(0x139,_0x4e4325._0x15e220,_0x4e4325._0x7a9063,0x22e)](_0xf45ebb),_0x170d4b=_0x195118[_0x4d8499(-0x26a,-0x1f6,-_0x4e4325._0x1891a9,-_0x4e4325._0x192d83)];if(!_0x59a5d8||!_0x170d4b?.[_0x49b77a(_0x4e4325._0x163ac7,_0x4e4325._0xe29169,_0x4e4325._0xd97443,_0x4e4325._0x1dcd0b)])break;if(_0x170d4b[_0x4d8499(-0x1b7,-_0x4e4325._0x3006db,-_0x4e4325._0x27a0a0,-0x1f3)]===_0x49b77a(0x1bd,0x204,_0x4e4325._0x89fa9c,0x1ec)&&_0x59a5d8[_0x49b77a(_0x4e4325._0x51638f,0x20d,0x230,_0x4e4325._0x3a6165)]===_0x4d8499(-_0x4e4325._0x2d35b7,-0x27a,-0x34f,-_0x4e4325._0x195a89)&&typeof _0x170d4b['text']==='string')return _0x59a5d8['text']+=_0x170d4b[_0x4d8499(-_0x4e4325._0x194f07,-_0x4e4325._0x31c7f1,-_0x4e4325._0x126f4f,-_0x4e4325._0x16d569)],[{'type':'content_delta','index':_0xf45ebb,'text':_0x170d4b[_0x4d8499(-_0x4e4325._0x31d0e9,-_0x4e4325._0x120e29,-0x248,-0x348)]}];if(_0x170d4b[_0x4d8499(-_0x4e4325._0xafbcd6,-_0x4e4325._0x2e1f9a,-_0x4e4325._0x471d30,-0x214)]===_0x4d8499(-0x1e4,-0x1ed,-0x1b1,-0x183)&&_0x59a5d8['kind']===_0x49b77a(_0x4e4325._0xafbcd6,_0x4e4325._0x50476b,0x239,0x17c)&&typeof _0x170d4b['partial_json']===_0x4d8499(-0x27f,-_0x4e4325._0x55bcf4,-_0x4e4325._0x372afe,-0x37c))return _0x59a5d8['inputJson']==='{}'&&(_0x59a5d8[_0x4d8499(-_0x4e4325._0x491cea,-0x20b,-_0x4e4325._0x4a8ac9,-_0x4e4325._0x5b0419)]=''),_0x59a5d8['inputJson']+=_0x170d4b[_0x4d8499(-_0x4e4325._0x19a0ff,-_0x4e4325._0x50818d,-_0x4e4325._0x60a1f9,-_0x4e4325._0x292fed)],[{'type':_0x4d8499(-_0x4e4325._0x4a8ac9,-_0x4e4325._0x508175,-_0x4e4325._0x5093be,-_0x4e4325._0x2b9746),'id':_0x59a5d8['id'],'index':_0xf45ebb,'inputDelta':_0x170d4b['partial_json']}];if(_0x170d4b['type']===_0x4d8499(-_0x4e4325._0x1bf950,-_0x4e4325._0x9fd31a,-_0x4e4325._0x2a81ce,-0x297)&&_0x59a5d8[_0x4d8499(-0x1cd,-_0x4e4325._0xed8ef3,-0xee,-_0x4e4325._0x338477)]==='thinking'){const _0x4a9089=typeof _0x170d4b['thinking']===_0x4d8499(-_0x4e4325._0x31d00b,-_0x4e4325._0x35a26c,-0x3cb,-_0x4e4325._0xccad7)?String(_0x170d4b[_0x4d8499(-0x265,-_0x4e4325._0x4e48dd,-0x12b,-0x20e)]):'';if(_0x4a9089[_0x49b77a(0x153,_0x4e4325._0xb0df29,_0x4e4325._0x3a18e7,0x1a5)]>0x0){_0x59a5d8['thinking']+=_0x4a9089;if(isUserVisibleThinking(this[_0x49b77a(0x71,0x12b,_0x4e4325._0x5afc36,0x59)]))return[{'type':_0x49b77a(_0x4e4325._0x5918a3,0xef,_0x4e4325._0x7a9063,0x146),'index':_0xf45ebb,'thinking':_0x4a9089}];}}if(_0x170d4b[_0x49b77a(_0x4e4325._0x286e29,_0x4e4325._0xe29169,_0x4e4325._0x1b12ce,0x173)]===_0x49b77a(0x232,0x18d,0x133,_0x4e4325._0x50f0e4)&&_0x59a5d8[_0x49b77a(0x2b9,0x20d,0x14d,_0x4e4325._0x10258b)]==='thinking'){const _0x4df78f=typeof _0x170d4b['signature']===_0x49b77a(0x15a,_0x4e4325._0x3cce5d,0x13b,0x48)?String(_0x170d4b[_0x4d8499(-0x323,-0x2be,-0x304,-0x237)]):'';if(_0x4df78f['length']>0x0){_0x59a5d8[_0x4d8499(-_0x4e4325._0x22fb50,-_0x4e4325._0x3ed5cc,-_0x4e4325._0x59f80d,-0x2aa)]=_0x4df78f;if(isUserVisibleThinking(this[_0x49b77a(_0x4e4325._0x3699ab,0x12b,0x94,0x186)]))return[{'type':_0x4d8499(-0x261,-_0x4e4325._0x4f1a08,-_0x4e4325._0x7c4655,-_0x4e4325._0x447b23),'index':_0xf45ebb,'signature':_0x4df78f}];}}break;}case _0x49b77a(_0x4e4325._0x24ac39,0x233,_0x4e4325._0x5c57f9,_0x4e4325._0x6245c5):{const _0x2a0a5b=_0x195118[_0x49b77a(_0x4e4325._0x10af70,_0x4e4325._0x5bb777,0x1ca,0x209)],_0x1f0745=_0x195118[_0x4d8499(-_0x4e4325._0x2df735,-_0x4e4325._0x31ca97,-_0x4e4325._0x31ca97,-0x2eb)];this[_0x4d8499(-0x23d,-0x1be,-0x27a,-0x1e2)]=_0x1f0745?.[_0x4d8499(-0x357,-_0x4e4325._0x45b77c,-0x244,-_0x4e4325._0x589907)]??this['inputTokens'],this[_0x49b77a(0x58,_0x4e4325._0xfcf522,0x67,_0x4e4325._0x540e77)]=_0x1f0745?.[_0x4d8499(-0x1cb,-0x288,-_0x4e4325._0x38fb89,-_0x4e4325._0x46e42d)]??this[_0x4d8499(-0x337,-_0x4e4325._0x4924c3,-0x2ba,-_0x4e4325._0x337cdb)],this[_0x4d8499(-0x249,-_0x4e4325._0x39dcd5,-_0x4e4325._0x318b99,-_0x4e4325._0x2d8f3a)]=_0x1f0745?.[_0x4d8499(-0x1e5,-0x2ad,-_0x4e4325._0x424406,-0x20c)]??this[_0x4d8499(-_0x4e4325._0x5c3b43,-0x2ef,-0x382,-0x353)],this[_0x49b77a(_0x4e4325._0x4e7295,_0x4e4325._0x2e9f87,_0x4e4325._0x89fa9c,_0x4e4325._0xd7fd57)]=_0x1f0745?.[_0x4d8499(-_0x4e4325._0x5c1ddf,-_0x4e4325._0x1a97dd,-0x154,-0x169)]??this['outputTokens'],this[_0x4d8499(-0x315,-0x25f,-_0x4e4325._0x1b3416,-_0x4e4325._0x1d1cf8)]=_0x2a0a5b?.[_0x4d8499(-0x2f0,-0x2b5,-_0x4e4325._0x2a1f0e,-0x351)]===_0x49b77a(0x1a0,0x1a8,_0x4e4325._0x2e1f9a,_0x4e4325._0x205c70)?'tool_use':_0x49b77a(_0x4e4325._0x2e0aba,_0x4e4325._0x3825ac,0x1f0,_0x4e4325._0x2ec306);break;}case'error':{const _0x5ae034=_0x195118['error'];throw new ProviderStreamEventError(_0x5ae034?.[_0x4d8499(-0x2a3,-0x277,-_0x4e4325._0x2202ce,-0x25f)]??_0x49b77a(_0x4e4325._0xed919,_0x4e4325._0x57d71e,0x291,0x209),{'code':_0x5ae034?.[_0x49b77a(0x1b0,_0x4e4325._0x5f4b7c,_0x4e4325._0x2b8880,0x1fe)],'retryable':!![]});}}function _0x4d8499(_0x26c1ff,_0x2c0a61,_0x51a2d0,_0x77f9c){return _0x5e5ba4(_0x26c1ff-_0x57a824._0x3742fd,_0x51a2d0,_0x51a2d0-0x11d,_0x2c0a61- -0x760);}function _0x49b77a(_0x46e3b1,_0x5bb9ce,_0x46b1ef,_0x1618bb){return _0x5e5ba4(_0x46e3b1-0xa1,_0x46b1ef,_0x46b1ef-0x2d,_0x5bb9ce- -0x39a);}return[];}[_0x42ffe3(-0xbd,-0xc,-0x67,-0xdd)](){const _0x37bb4e={_0x5adefe:0xde,_0x5c7df0:0xfb,_0x1d0225:0x19c,_0x1145ce:0x19c,_0x2995f3:0x14e,_0x121b06:0x163,_0x4391eb:0x1d7,_0x3a3371:0xc9,_0x51ea88:0x1eb,_0x564944:0x124,_0x1bf259:0xca,_0x49364b:0x164,_0x115b2b:0xf8,_0x35304b:0x11e,_0x155506:0xa3,_0x44fab1:0x161,_0x57ac7b:0x1d1,_0x45ec8d:0x1e6,_0x33e1c8:0x1a8,_0x23a8d8:0xc2,_0x29d4a8:0x144,_0x2ba828:0xa9,_0x35ec94:0x125,_0x59ec3e:0x16f,_0x2554e4:0x1da,_0xc56935:0x128,_0x48a077:0x1df,_0x1aa476:0x177,_0x515367:0x249,_0x26dfda:0x1b1,_0x27722b:0x137,_0x2c9a76:0x170,_0x1b98e7:0xf5,_0x313712:0x95,_0x5ccab6:0x195,_0x21e900:0xf3,_0x5c9c1a:0x20f,_0x38f788:0x161,_0x120058:0xc7,_0x168b91:0x25,_0x239016:0x93},_0x4a2ad7={_0x8520ce:0xd0},_0x4e5def={_0x15e8a0:0x162,_0x198a0f:0x15b,_0x2f3389:0x64a};function _0x5dd750(_0x20767e,_0x2cee55,_0x369761,_0x4c8296){return _0x5e5ba4(_0x20767e-_0x4e5def._0x15e8a0,_0x369761,_0x369761-_0x4e5def._0x198a0f,_0x4c8296- -_0x4e5def._0x2f3389);}const _0xea2468=Array[_0x42f02e(0x96,_0x37bb4e._0x5adefe,_0x37bb4e._0x5c7df0,_0x37bb4e._0x1d0225)](this[_0x5dd750(-_0x37bb4e._0x1145ce,-_0x37bb4e._0x2995f3,-0x1d1,-_0x37bb4e._0x121b06)][_0x5dd750(-0x1b7,-_0x37bb4e._0x4391eb,-0x108,-0x10b)]())[_0x5dd750(-_0x37bb4e._0x3a3371,-0x1a5,-_0x37bb4e._0x51ea88,-0x12f)]((_0x5c5e2a,_0x316a0f)=>_0x5c5e2a[_0x5dd750(-0x247,-0x266,-0x1ba,-0x219)]-_0x316a0f[_0x5dd750(-0x166,-0x1f9,-0x26e,-0x219)]),_0x55d125=[];function _0x42f02e(_0x90440,_0x10de4a,_0x1ed88e,_0x26ed8e){return _0x5e5ba4(_0x90440-0x18,_0x90440,_0x1ed88e-_0x4a2ad7._0x8520ce,_0x1ed88e- -0x3de);}for(const _0x45c0cf of _0xea2468){if(_0x45c0cf['kind']===_0x5dd750(-0xb5,-0x120,-0x20a,-0x164)){_0x45c0cf[_0x5dd750(-_0x37bb4e._0x564944,-0x12a,-_0x37bb4e._0x1bf259,-_0x37bb4e._0x49364b)]['length']>0x0&&_0x55d125['push']({'type':'text','text':_0x45c0cf[_0x42f02e(0xaa,0x1d8,0x108,0x1ab)]});continue;}if(_0x45c0cf[_0x5dd750(-0x23,-_0x37bb4e._0x115b2b,-_0x37bb4e._0x35304b,-_0x37bb4e._0x155506)]==='thinking'){_0x55d125['push']({'type':_0x42f02e(0x165,_0x37bb4e._0x44fab1,0x1e4,_0x37bb4e._0x57ac7b),'thinking':_0x45c0cf['thinking'],'signature':_0x45c0cf[_0x5dd750(-0xdd,-0x130,-_0x37bb4e._0x45ec8d,-_0x37bb4e._0x33e1c8)]});continue;}if(_0x45c0cf['kind']===_0x42f02e(0x1bb,_0x37bb4e._0x23a8d8,_0x37bb4e._0x29d4a8,_0x37bb4e._0x2ba828)){_0x55d125[_0x42f02e(_0x37bb4e._0x35ec94,0x1ae,_0x37bb4e._0x59ec3e,_0x37bb4e._0x2554e4)]({'type':_0x5dd750(-0x10a,-0x114,-0x1df,-_0x37bb4e._0xc56935),'data':_0x45c0cf['data']});continue;}_0x55d125['push']({'type':'tool_use','id':_0x45c0cf['id'],'name':_0x45c0cf['name'],'input':parseToolInput(_0x45c0cf[_0x42f02e(_0x37bb4e._0x48a077,0x1bd,_0x37bb4e._0x1aa476,_0x37bb4e._0x515367)][_0x42f02e(0x11d,_0x37bb4e._0x26dfda,0x104,_0x37bb4e._0x27722b)]>0x0?_0x45c0cf[_0x5dd750(-_0x37bb4e._0x2c9a76,-0x1a7,-0x53,-_0x37bb4e._0x1b98e7)]:'{}')});}return parseAnthropicResponse({'id':this[_0x5dd750(-_0x37bb4e._0x313712,-0x16f,-_0x37bb4e._0x5ccab6,-0xe1)],'type':_0x5dd750(-_0x37bb4e._0x21e900,-_0x37bb4e._0x5c9c1a,-0x135,-_0x37bb4e._0x38f788),'role':'assistant','content':_0x55d125,'stop_reason':this[_0x5dd750(-0xf4,-0x1a9,-_0x37bb4e._0x5ccab6,-0x149)],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x5dd750(-_0x37bb4e._0x120058,-0x185,-0x226,-0x153)],'cache_read_input_tokens':this['cacheReadInputTokens'],'cache_creation_input_tokens':this[_0x42f02e(_0x37bb4e._0x168b91,0x69,_0x37bb4e._0x239016,-0x40)]}},this['request']);}};function createAnthropicSurfaces(){const _0x1a11b6={_0x3c9b47:0x7b};function _0x22484f(_0x1655ea,_0x184d54,_0x218821,_0x435a1d){return _0x5e5ba4(_0x1655ea-0x8a,_0x218821,_0x218821-_0x1a11b6._0x3c9b47,_0x184d54- -0x6dd);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':'http-json','createRequest'(_0x170719){return createAnthropicRequest(_0x170719,![]);},'parseResponse'(_0x138e36,_0x21fafe){return parseAnthropicResponse(_0x138e36,_0x21fafe);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x22484f(-0x1f8,-0x15e,-0x10d,-0x15f),'createRequest'(_0x5514b7){return createAnthropicRequest(_0x5514b7,!![]);},'createStreamParser'(_0x89eb){return new AnthropicMessagesStreamParser(_0x89eb);}}];}var StaticModelSurfaceRouter=class{[_0x5e5ba4(0x5e8,0x556,0x5df,0x5b7)];[_0x42ffe3(-0xcd,-0x63,-0x138,-0xf5)];constructor(_0x13a81f){const _0x3fbb27={_0x4efcf1:0x306,_0x1f5a11:0x32c,_0x47d56f:0x337,_0x339ae0:0x395,_0x337a9b:0x385,_0x45c201:0x2e7,_0x169c49:0x35e,_0x97ccdc:0x4e4,_0x1cadb4:0x5a2,_0x5973e7:0x518},_0x3dccd4={_0x14ca43:0x462};this[_0x5df965(0x2c8,_0x3fbb27._0x4efcf1,0x332,_0x3fbb27._0x1f5a11)]=_0x13a81f[_0x4ec9fb(0x3a7,_0x3fbb27._0x47d56f,0x32f,0x430)];function _0x5df965(_0x7496bf,_0x217864,_0x1d7a28,_0x29ae7c){return _0x5e5ba4(_0x7496bf-0x1ab,_0x1d7a28,_0x1d7a28-0x24,_0x217864- -0x2b1);}function _0x4ec9fb(_0x2aa97d,_0x2d4704,_0x17ef77,_0x397154){return _0x42ffe3(_0x2aa97d-_0x3dccd4._0x14ca43,_0x2d4704-0xe1,_0x397154,_0x397154-0x1db);}this[_0x4ec9fb(_0x3fbb27._0x339ae0,_0x3fbb27._0x337a9b,_0x3fbb27._0x45c201,_0x3fbb27._0x169c49)]=_0x13a81f[_0x4ec9fb(_0x3fbb27._0x97ccdc,_0x3fbb27._0x1cadb4,0x545,_0x3fbb27._0x5973e7)];}[_0x42ffe3(0x43,0xc0,0x61,0x46)](_0x43a1c6,_0x2bbba9){const _0x5628b0={_0x21ff36:0x246,_0x47d58e:0x290,_0x5457c0:0x6b,_0x5c55ee:0xff,_0x476f03:0x89},_0x105f47={_0xe0cba6:0x11e},_0x3a7706={_0x3966a0:0x10c};function _0x94f53a(_0x551cc4,_0x4caafb,_0x12d80a,_0x5c379c){return _0x5e5ba4(_0x551cc4-_0x3a7706._0x3966a0,_0x5c379c,_0x12d80a-0x1aa,_0x551cc4- -0x620);}function _0x3c7604(_0x302975,_0x35bda2,_0x363b64,_0xf5bad6){return _0x42ffe3(_0x302975- -0x148,_0x35bda2-_0x105f47._0xe0cba6,_0xf5bad6,_0xf5bad6-0x17d);}return _0x2bbba9[_0x3c7604(-_0x5628b0._0x21ff36,-_0x5628b0._0x47d58e,-0x280,-0x2f0)]===_0x94f53a(-_0x5628b0._0x5457c0,0x37,-0x3b,-_0x5628b0._0x5c55ee)?this['streamSurface']:this[_0x94f53a(-0x69,-0x122,-_0x5628b0._0x476f03,-0xf9)];}};function trimTrailingSlashes(_0x544d92){return _0x544d92['replace'](/\/+$/,'');}function resolveApiCredential(_0x3e4418,_0x402ae){const _0xaf3aec={_0x1aaf2c:0x156,_0x495c58:0x17,_0x55c3ad:0x30,_0x109447:0xde,_0x3b252b:0x6c},_0x57e64d={_0x1ec5fb:0x179},_0x155b9c={_0x5b2ccb:0x9b};function _0x4d1a4d(_0x25f14b,_0x514e58,_0x5e51f2,_0x5c5e03){return _0x42ffe3(_0x514e58- -0x128,_0x514e58-0x1ba,_0x25f14b,_0x5c5e03-_0x155b9c._0x5b2ccb);}if(_0x402ae?.[_0x4d1a4d(-_0xaf3aec._0x1aaf2c,-0x125,-0x1be,-0x125)])return _0x402ae[_0x31249c(-_0xaf3aec._0x495c58,-_0xaf3aec._0x55c3ad,_0xaf3aec._0x109447,_0xaf3aec._0x3b252b)];if(!_0x3e4418)return void 0x0;function _0x31249c(_0x38fdcd,_0x242fcd,_0x48a143,_0x1bcf62){return _0x42ffe3(_0x1bcf62-0x69,_0x242fcd-0x107,_0x242fcd,_0x1bcf62-_0x57e64d._0x1ec5fb);}return{'kind':'api-key','value':_0x3e4418};}function resolveSessionBaseUrl(_0xa7a4f3,_0x10f902){const _0x4a6bd7={_0xf3d2cf:0x4bd,_0x3308a0:0x41b,_0x56594e:0x4f0},_0x536648={_0x3f955e:0x158,_0x3b33a2:0x18},_0x181217={_0xa21a99:0x101,_0x4d5aad:0x75f};function _0x5ea25d(_0x30a0b1,_0x64d463,_0x110213,_0x20157e){return _0x5e5ba4(_0x30a0b1-_0x181217._0xa21a99,_0x20157e,_0x110213-0x154,_0x30a0b1- -_0x181217._0x4d5aad);}function _0x5727ba(_0x4e8ac4,_0x89decd,_0xff8cbd,_0x41ab46){return _0x5e5ba4(_0x4e8ac4-0x4f,_0x4e8ac4,_0xff8cbd-_0x536648._0x3f955e,_0xff8cbd- -_0x536648._0x3b33a2);}return trimTrailingSlashes(_0x10f902?.[_0x5727ba(_0x4a6bd7._0xf3d2cf,0x3cc,_0x4a6bd7._0x3308a0,_0x4a6bd7._0x56594e)]?.[_0x5727ba(0x474,0x455,0x4b0,0x4cc)]??_0xa7a4f3);}function toErrorMessage(_0x3da2a1){const _0x38d7e4={_0x1c26b3:0x2b7,_0x2b0439:0x18d,_0x785b2:0x288,_0x7ad90a:0x280,_0x4061e0:0x222},_0x5e30c5={_0x1cabbc:0x236,_0x5defa2:0x91};if(_0x3da2a1 instanceof Error&&_0x3da2a1[_0x3c9a7d(0x226,0x237,_0x38d7e4._0x1c26b3,_0x38d7e4._0x2b0439)][_0x3c9a7d(0x21f,0x1bd,0x2ea,0x2aa)]>0x0)return _0x3da2a1[_0x465028(-0x1e5,-_0x38d7e4._0x785b2,-_0x38d7e4._0x7ad90a,-_0x38d7e4._0x4061e0)];function _0x465028(_0x4a15b9,_0xc33a6c,_0x4f8364,_0x778763){return _0x42ffe3(_0x4f8364- -_0x5e30c5._0x1cabbc,_0xc33a6c-_0x5e30c5._0x5defa2,_0x4a15b9,_0x778763-0x178);}function _0x3c9a7d(_0x5c1546,_0x1ffaf7,_0x28f091,_0x3808b4){return _0x5e5ba4(_0x5c1546-0xa,_0x1ffaf7,_0x28f091-0x14d,_0x5c1546- -0x2c3);}return _0x465028(-0x220,-0x201,-0x1a2,-0x12a);}function createDefaultWebSocketFactory(){return({headers:_0x415428,url:_0x173609})=>{const _0x28ea49=globalThis['WebSocket'];return new _0x28ea49(_0x173609,{'headers':_0x415428,'protocols':[]});};}function _0x5b07(_0xeb066,_0x57a865){_0xeb066=_0xeb066-0x73;const _0xb5a6b0=_0xb5a6();let _0x5b0771=_0xb5a6b0[_0xeb066];if(_0x5b07['irNYjs']===undefined){var _0x407559=function(_0x283204){const _0x5bb8c6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e3624='',_0xd9b894='';for(let _0x476bec=0x0,_0x159ee4,_0x3a1afa,_0x24e163=0x0;_0x3a1afa=_0x283204['charAt'](_0x24e163++);~_0x3a1afa&&(_0x159ee4=_0x476bec%0x4?_0x159ee4*0x40+_0x3a1afa:_0x3a1afa,_0x476bec++%0x4)?_0x4e3624+=String['fromCharCode'](0xff&_0x159ee4>>(-0x2*_0x476bec&0x6)):0x0){_0x3a1afa=_0x5bb8c6['indexOf'](_0x3a1afa);}for(let _0xf0c6de=0x0,_0x74cf96=_0x4e3624['length'];_0xf0c6de<_0x74cf96;_0xf0c6de++){_0xd9b894+='%'+('00'+_0x4e3624['charCodeAt'](_0xf0c6de)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xd9b894);};_0x5b07['EDadhG']=_0x407559,_0x5b07['oBaXBf']={},_0x5b07['irNYjs']=!![];}const _0x3380d4=_0xb5a6b0[0x0],_0x2f9ffe=_0xeb066+_0x3380d4,_0x4f5a78=_0x5b07['oBaXBf'][_0x2f9ffe];return!_0x4f5a78?(_0x5b0771=_0x5b07['EDadhG'](_0x5b0771),_0x5b07['oBaXBf'][_0x2f9ffe]=_0x5b0771):_0x5b0771=_0x4f5a78,_0x5b0771;}async function*iterateSseEvents(_0x506fef,_0x2b277e){const _0x49e6bf={_0x5b9a66:0x152,_0x4128b5:0xf2,_0x5093cf:0x7a,_0x437915:0x20c,_0x4eb24c:0x190,_0x14da35:0x125,_0x91c5b4:0x1d7,_0x533ac4:0x189,_0x35533c:0x21e,_0x20ec5b:0x1e5,_0x3f0b1a:0xf8,_0x4205a8:0x17d,_0x335296:0xdd,_0x892ab3:0x30d,_0x204535:0x270,_0x44e03b:0x32f,_0x428199:0x159,_0x11ca40:0x203,_0x511721:0x137,_0x53a24a:0x1ad,_0x210b56:0x137,_0x4a478b:0x20f,_0xd88da:0x233},_0xf634a9={_0x508fd3:0x1c5,_0x1d51df:0x26,_0x20734b:0x692},_0x5a2195={_0x5962ae:0x1cf,_0x216a7b:0xd2},_0x1804b9=_0x506fef['body']?.[_0x3f05af(-_0x49e6bf._0x5b9a66,-0x137,-_0x49e6bf._0x4128b5,-_0x49e6bf._0x5093cf)]();if(!_0x1804b9)return;function _0x2b9abf(_0x47ba80,_0x4febee,_0x8d3b24,_0x56e3cf){return _0x42ffe3(_0x4febee-0x2c9,_0x4febee-_0x5a2195._0x5962ae,_0x56e3cf,_0x56e3cf-_0x5a2195._0x216a7b);}const _0x1cd000=new TextDecoder(_0x3f05af(-_0x49e6bf._0x437915,-0x199,-_0x49e6bf._0x4eb24c,-0x256));let _0xeaa6ec='';const _0x28f1b2=addAbortListener(_0x2b277e,()=>{void _0x1804b9['cancel'](toAbortError(_0x2b277e?.['reason']))['catch'](()=>{});});function _0x3f05af(_0x151c97,_0x4fbc71,_0x4a01c5,_0x2e0180){return _0x5e5ba4(_0x151c97-_0xf634a9._0x508fd3,_0x151c97,_0x4a01c5-_0xf634a9._0x1d51df,_0x4fbc71- -_0xf634a9._0x20734b);}try{while(!![]){throwIfAborted(_0x2b277e);const {value:_0xe07dcc,done:_0xa18c0d}=await _0x1804b9[_0x2b9abf(_0x49e6bf._0x14da35,_0x49e6bf._0x91c5b4,_0x49e6bf._0x533ac4,_0x49e6bf._0x35533c)]();throwIfAborted(_0x2b277e);if(_0xa18c0d)break;_0xeaa6ec+=_0x1cd000[_0x2b9abf(0x1c3,0x203,_0x49e6bf._0x20ec5b,0x171)](_0xe07dcc,{'stream':!![]});while(!![]){const _0x57bef0=_0xeaa6ec[_0x3f05af(-_0x49e6bf._0x3f0b1a,-0x180,-_0x49e6bf._0x4205a8,-0x253)]('\x0a\x0a');if(_0x57bef0===-0x1)break;const _0x2dcaf8=_0xeaa6ec[_0x3f05af(-_0x49e6bf._0x335296,-0x119,-0x15c,-0x10a)](0x0,_0x57bef0);_0xeaa6ec=_0xeaa6ec['slice'](_0x57bef0+0x2),_0x2dcaf8[_0x2b9abf(_0x49e6bf._0x892ab3,0x27a,_0x49e6bf._0x204535,_0x49e6bf._0x44e03b)]()['length']>0x0&&(yield _0x2dcaf8);}}_0xeaa6ec+=_0x1cd000[_0x2b9abf(_0x49e6bf._0x428199,_0x49e6bf._0x11ca40,_0x49e6bf._0x511721,0x298)](),throwIfAborted(_0x2b277e),_0xeaa6ec[_0x3f05af(-0x13c,-0x1ae,-_0x49e6bf._0x53a24a,-0x126)]()[_0x3f05af(-_0x49e6bf._0x210b56,-0x1b0,-_0x49e6bf._0x4a478b,-_0x49e6bf._0xd88da)]>0x0&&(yield _0xeaa6ec);}finally{_0x28f1b2();}}async function waitForWebSocketOpen(_0x2a4cef,_0x5a1e6a){const _0x5c04f9={_0x5040b8:0x8d,_0x21760c:0x19f,_0xd2acef:0x143,_0x2ab6e7:0x28e,_0x39c42e:0x27d,_0x22ad50:0x2ba},_0x3260bd={_0x2bd243:0x4b7,_0x3e2162:0x3fb,_0x46e9f6:0x2c8,_0x3af3ce:0x360,_0x23d854:0x38e,_0x25c9b3:0x15c,_0x44ee11:0x1ff,_0x46970b:0x26c,_0x5fd75:0x364,_0x1b27da:0x3b8,_0x7e6867:0x4f7,_0x5c3f55:0x464},_0x947bd8={_0x381297:0x4bf,_0x1b706e:0x15a},_0x42c0d7={_0x3e24bd:0x167,_0x29a30a:0x134,_0x2102b4:0x102,_0x4887f7:0x4a9,_0x47435e:0x480,_0x5d1646:0x450,_0x50d821:0x2cc,_0x762bb0:0x281,_0x50c0a0:0x31c,_0x59fe55:0x1b},_0x21d9fe={_0x1322a4:0x96,_0xfb9d75:0x1e0,_0x433d6d:0xde},_0x3f450d={_0x42fed0:0x108,_0x4cca79:0x5e9};function _0x5e322f(_0x11a9b3,_0x4a395b,_0x1cab97,_0x22372e){return _0x5e5ba4(_0x11a9b3-_0x3f450d._0x42fed0,_0x4a395b,_0x1cab97-0xde,_0x1cab97- -_0x3f450d._0x4cca79);}if(_0x2a4cef[_0x152074(0x156,_0x5c04f9._0x5040b8,_0x5c04f9._0x21760c,_0x5c04f9._0xd2acef)]===WebSocket[_0x152074(_0x5c04f9._0x2ab6e7,0x23d,_0x5c04f9._0x39c42e,_0x5c04f9._0x22ad50)]){throwIfAborted(_0x5a1e6a);return;}throwIfAborted(_0x5a1e6a);function _0x152074(_0x531736,_0x3d09ca,_0x340ad9,_0x847251){return _0x5e5ba4(_0x531736-0x1d1,_0x531736,_0x340ad9-0x114,_0x847251- -0x2ff);}await new Promise((_0x404d3f,_0x202dd7)=>{const _0x1d7713={_0x178370:0x75,_0x5b97f0:0x1b6},_0xac59fd={_0x50f8fd:0x29,_0x578216:0x1c9,_0xf6157e:0x15e,_0x41d6b3:0x1f1,_0x15a96a:0x1a5},_0x2a9e6a={_0x5c9a6f:0x11c},_0x2dde47={_0x80af56:0x287},_0x109a38={_0x535ae9:0x29d},_0x593fa4={_0x47f27b:0x167,_0x20390b:0xa5,_0x48b344:0xd6,_0x68b4cd:0x12c,_0x409deb:0x337,_0x10cbef:0x330,_0x30f884:0x2c3},_0x230ac3={_0x291897:0x8d},_0x44b962=()=>{_0x207126(),_0x404d3f();},_0x5195aa=_0x2b0cae=>{function _0x4e28fa(_0x137e1d,_0x70162a,_0x1b5bae,_0x537cd9){return _0x5b07(_0x70162a- -_0x230ac3._0x291897,_0x1b5bae);}function _0x7ab63c(_0x114ec6,_0x9a7813,_0x179cc3,_0xfba0ba){return _0x5b07(_0x114ec6-0xac,_0x179cc3);}_0x207126(),_0x202dd7(new Error(_0x2b0cae[_0x4e28fa(_0x593fa4._0x47f27b,_0x593fa4._0x20390b,_0x593fa4._0x48b344,_0x593fa4._0x68b4cd)]||_0x7ab63c(0x2bc,_0x593fa4._0x409deb,_0x593fa4._0x10cbef,_0x593fa4._0x30f884)));},_0x54f5ba=_0x102270=>{function _0x48a630(_0x433741,_0x116bf2,_0x1a1d09,_0x3370d3){return _0x5b07(_0x1a1d09- -_0x109a38._0x535ae9,_0x433741);}function _0x2b2adb(_0x337ac1,_0x596f03,_0x4972b6,_0x1a9916){return _0x5b07(_0x596f03- -_0x2dde47._0x80af56,_0x1a9916);}_0x207126();const _0x5513bd=_0x102270;_0x202dd7(new Error(_0x5513bd[_0x48a630(-_0x21d9fe._0x1322a4,-0x15d,-0xb0,-0xd0)]||_0x48a630(-_0x21d9fe._0xfb9d75,-0x252,-0x182,-_0x21d9fe._0x433d6d)));},_0x212aac=()=>{function _0x5520ef(_0x15b2cb,_0x5e4cc2,_0x5d7bf9,_0x24bacc){return _0x5b07(_0x15b2cb- -_0x2a9e6a._0x5c9a6f,_0x5e4cc2);}_0x207126();_0x2a4cef[_0x5520ef(-0x91,-0xa1,-_0xac59fd._0x50f8fd,-0x77)]===WebSocket['OPEN']&&_0x2a4cef[_0xa8c188(_0xac59fd._0x578216,_0xac59fd._0xf6157e,_0xac59fd._0x41d6b3,0x22f)](0x3e8,'aborted');function _0xa8c188(_0x22d79b,_0x19b07c,_0x549723,_0x53b99c){return _0x5b07(_0x549723-0x16d,_0x19b07c);}_0x202dd7(toAbortError(_0x5a1e6a?.[_0x5520ef(0xd1,_0xac59fd._0x15a96a,0xfb,0x108)]));},_0x207126=()=>{const _0xd26ab7={_0x4c2ab6:0x1d};function _0x5b9c21(_0x135b4d,_0x1e0685,_0x1b91bb,_0x53de9d){return _0x5b07(_0x1b91bb-0x261,_0x1e0685);}_0x2a4cef['removeEventListener'](_0x292a48(_0x42c0d7._0x3e24bd,_0x42c0d7._0x29a30a,_0x42c0d7._0x2102b4,0xfc),_0x44b962);function _0x292a48(_0x9c578d,_0x44567c,_0x484251,_0x144c6a){return _0x5b07(_0x484251-_0xd26ab7._0x4c2ab6,_0x144c6a);}_0x2a4cef[_0x5b9c21(_0x42c0d7._0x4887f7,_0x42c0d7._0x47435e,_0x42c0d7._0x5d1646,0x521)](_0x5b9c21(_0x42c0d7._0x50d821,_0x42c0d7._0x762bb0,0x2e9,_0x42c0d7._0x50c0a0),_0x5195aa),_0x2a4cef[_0x5b9c21(0x38c,0x506,0x450,0x4b5)](_0x292a48(0x155,0x11e,0xa1,_0x42c0d7._0x59fe55),_0x54f5ba),_0x5a1e6a?.['removeEventListener']('abort',_0x212aac);};function _0x3839bd(_0x29075b,_0x1953fc,_0x5d5ebd,_0x392127){return _0x5e322f(_0x29075b-_0x1d7713._0x178370,_0x5d5ebd,_0x1953fc- -_0x1d7713._0x5b97f0,_0x392127-0x175);}_0x2a4cef[_0x1a3c2c(_0x3260bd._0x2bd243,_0x3260bd._0x3e2162,0x46c,0x476)]('open',_0x44b962),_0x2a4cef['addEventListener'](_0x3839bd(-_0x3260bd._0x46e9f6,-_0x3260bd._0x3af3ce,-0x3c4,-_0x3260bd._0x23d854),_0x5195aa);function _0x1a3c2c(_0x4d7d85,_0x3f5ca8,_0x2a841b,_0x3d5fda){return _0x5e322f(_0x4d7d85-0xc7,_0x4d7d85,_0x3d5fda-_0x947bd8._0x381297,_0x3d5fda-_0x947bd8._0x1b706e);}_0x2a4cef[_0x3839bd(-_0x3260bd._0x25c9b3,-_0x3260bd._0x44ee11,-_0x3260bd._0x46970b,-0x195)](_0x3839bd(-0x32c,-_0x3260bd._0x5fd75,-0x2f8,-0x2d5),_0x54f5ba),_0x5a1e6a?.[_0x1a3c2c(0x4e7,_0x3260bd._0x1b27da,_0x3260bd._0x7e6867,0x476)](_0x1a3c2c(0x3b3,0x3ec,0x3c2,_0x3260bd._0x5c3f55),_0x212aac,{'once':!![]});});}function iterateWebSocketMessages(_0x3edec9,_0x3954b4){const _0x5c4535={_0x4a6d64:0x3f0,_0x4ec6d6:0x34b,_0x14ed2a:0x495,_0xea1183:0x361,_0x412799:0x20c,_0x5785e2:0x210,_0x245c1f:0x329,_0x3f59ca:0x312,_0x2bae57:0x375,_0x57b3d1:0x28b,_0x4c8a72:0x1ed},_0x434d81={_0x13f52b:0x38b,_0x522e6a:0x35c,_0x2ca962:0x2db,_0x3d35af:0x339,_0x103cfa:0x2b6,_0x152657:0x2d4,_0x1fd9a2:0x43c,_0x25a785:0x586,_0x356399:0x467,_0x185965:0x4e9,_0xeca5ed:0x3c2,_0x78676c:0x42c,_0x4a7ee7:0x5a7,_0x572d17:0x2b7,_0x2f235b:0x454,_0x600825:0x54d},_0xdb0bd1={_0x4a7cf6:0xa1},_0xad95b1={_0x575e66:0x24d,_0x3cab2e:0x28f,_0xe5d253:0x1ac,_0x423213:0x161,_0x40f136:0x201,_0x571df6:0x1cb},_0x29d1e1={_0x594b30:0x2f,_0x1ba6fd:0x16a,_0x3983d0:0x22b},_0x302948={_0x485d92:0x383,_0xadc974:0x1e},_0x5f2c3c={_0x378fd0:0x194,_0x81e1ab:0xc1,_0x394ec8:0x34,_0x32b459:0xaa,_0x54b7f1:0x6b},_0x549dbf={_0x491b79:0x58b},_0x45a447={_0x4c76e8:0x276,_0x3be44e:0x2a0,_0x64dc25:0x273,_0x50bd67:0x293,_0x302588:0x298,_0x482be7:0x429,_0x3c5ed4:0x468},_0x4df22f=[];let _0x20f31d=![],_0x2b6059,_0xd60877;const _0x97197d=_0x4637ed=>{function _0x16ffb2(_0x3384ec,_0x245e79,_0xa10a49,_0x2dc36f){return _0x5b07(_0x2dc36f-0x289,_0x3384ec);}const _0x4a513a=_0x4637ed;function _0x3d113b(_0x1b6768,_0x563cca,_0x15e8c6,_0x26d32b){return _0x5b07(_0x26d32b-0x11a,_0x15e8c6);}try{_0x4df22f['push'](JSON[_0x3d113b(_0x45a447._0x4c76e8,0x292,_0x45a447._0x3be44e,0x2e7)](String(_0x4a513a[_0x16ffb2(_0x45a447._0x64dc25,_0x45a447._0x50bd67,_0x45a447._0x302588,0x325)]))),_0xd60877?.(),_0xd60877=void 0x0;}catch(_0x3ef1bb){_0x2b6059=new Error(_0x16ffb2(_0x45a447._0x482be7,0x46f,_0x45a447._0x3c5ed4,0x3e7)+toErrorMessage(_0x3ef1bb)),_0xd60877?.(),_0xd60877=void 0x0;}},_0x1ca78a=_0x5d1d1e=>{const _0x1f99cc=_0x5d1d1e;function _0x5317c4(_0x2fb254,_0x11c29b,_0x2dc4df,_0x917a2c){return _0x5b07(_0x2dc4df-0x37b,_0x2fb254);}_0x2b6059=new Error(_0x1f99cc['message']||_0x5317c4(0x623,0x579,_0x549dbf._0x491b79,0x637)),_0xd60877?.(),_0xd60877=void 0x0;},_0x9e8a7=_0xf7349c=>{const _0x308b94=_0xf7349c;!_0x20f31d&&_0x308b94['code']!==0x3e8&&!_0x2b6059&&(_0x2b6059=new Error(_0x308b94[_0x3e542f(_0x5f2c3c._0x378fd0,0x22c,0x14f,_0x5f2c3c._0x81e1ab)]||'WebSocket\x20closed\x20with\x20code\x20'+_0x308b94[_0x3e542f(_0x5f2c3c._0x394ec8,_0x5f2c3c._0x32b459,_0x5f2c3c._0x54b7f1,0x21)]));_0x20f31d=!![],_0xd60877?.();function _0x3e542f(_0x2fa7d8,_0x483092,_0x2c544c,_0x1691b4){return _0x5b07(_0x2fa7d8- -0x59,_0x483092);}function _0x2b5ade(_0x3aea21,_0x1a6494,_0x449270,_0x244230){return _0x5b07(_0x449270- -0x1f0,_0x244230);}_0xd60877=void 0x0;};function _0xe9f762(_0x1a79bf,_0x3919c7,_0x4d1798,_0x55c86e){return _0x42ffe3(_0x1a79bf-_0x302948._0x485d92,_0x3919c7-0x119,_0x55c86e,_0x55c86e-_0x302948._0xadc974);}function _0x118c29(_0x4918f5,_0x3d29ad,_0x3f4958,_0x5a7eb6){return _0x5e5ba4(_0x4918f5-_0x29d1e1._0x594b30,_0x3d29ad,_0x3f4958-_0x29d1e1._0x1ba6fd,_0x3f4958- -_0x29d1e1._0x3983d0);}const _0x198361=addAbortListener(_0x3954b4,()=>{function _0x10d434(_0x40ea19,_0x124f0f,_0x2a3a6e,_0x28b2b6){return _0x5b07(_0x124f0f-0xdd,_0x40ea19);}_0x2b6059=toAbortError(_0x3954b4?.[_0x59633b(_0xad95b1._0x575e66,_0xad95b1._0x3cab2e,0x180,0x210)]);function _0x59633b(_0x35d3ed,_0x8b25d3,_0x3751fa,_0x155fbd){return _0x5b07(_0x155fbd-0x23,_0x8b25d3);}_0x3edec9['readyState']===WebSocket[_0x59633b(0x263,0x266,_0xad95b1._0xe5d253,0x225)]&&_0x3edec9[_0x10d434(0x22c,_0xad95b1._0x423213,0x113,_0xad95b1._0x40f136)](0x3e8,_0x59633b(0x117,_0xad95b1._0x571df6,0x1b6,0x11e)),_0xd60877?.(),_0xd60877=void 0x0;});return _0x3edec9[_0xe9f762(_0x5c4535._0x4a6d64,_0x5c4535._0x4ec6d6,_0x5c4535._0x14ed2a,_0x5c4535._0xea1183)](_0x118c29(_0x5c4535._0x412799,0x24a,0x2be,_0x5c4535._0x5785e2),_0x97197d),_0x3edec9[_0x118c29(_0x5c4535._0x245c1f,0x33d,0x375,0x2a7)]('error',_0x1ca78a),_0x3edec9[_0x118c29(0x2ef,_0x5c4535._0x3f59ca,_0x5c4535._0x2bae57,0x2ca)](_0xe9f762(_0x5c4535._0x57b3d1,0x1bc,_0x5c4535._0x4c8a72,0x285),_0x9e8a7),{async*[Symbol['asyncIterator']](){const _0x542ce1={_0x208a78:0xd1};function _0x3c12eb(_0xa988bb,_0x5880b9,_0x1194bc,_0x23941d){return _0xe9f762(_0x5880b9-0x2a,_0x5880b9-0x5,_0x1194bc-_0x542ce1._0x208a78,_0x23941d);}function _0x849d7e(_0x44d767,_0x486444,_0x2ee3e4,_0x1aa976){return _0x118c29(_0x44d767-_0xdb0bd1._0x4a7cf6,_0x486444,_0x1aa976-0x16e,_0x1aa976-0x1e2);}try{while(!![]){if(_0x2b6059)throw _0x2b6059;if(_0x4df22f[_0x3c12eb(_0x434d81._0x13f52b,_0x434d81._0x522e6a,_0x434d81._0x2ca962,0x3c1)]>0x0){yield _0x4df22f[_0x3c12eb(_0x434d81._0x3d35af,_0x434d81._0x103cfa,0x268,_0x434d81._0x152657)]();continue;}if(_0x20f31d)break;await new Promise(_0x3754fb=>{_0xd60877=_0x3754fb;});}}finally{_0x3edec9[_0x849d7e(_0x434d81._0x1fd9a2,_0x434d81._0x25a785,_0x434d81._0x356399,_0x434d81._0x185965)](_0x849d7e(0x49d,_0x434d81._0xeca5ed,0x4a3,_0x434d81._0x78676c),_0x97197d),_0x3edec9[_0x849d7e(0x53f,_0x434d81._0x4a7ee7,0x543,0x4e9)](_0x3c12eb(_0x434d81._0x572d17,0x2b9,0x22a,0x271),_0x1ca78a),_0x3edec9[_0x849d7e(0x424,_0x434d81._0x2f235b,_0x434d81._0x600825,0x4e9)]('close',_0x9e8a7),_0x198361();}}};}function toWebSocketUrl(_0x3f3cf0,_0x5db188){const _0xb975c7={_0x16ce7d:0x305,_0x5c2bc4:0x308,_0x5161bd:0x2d1,_0x2155a0:0x31f,_0x5a1489:0x22a,_0x109ba2:0x2a6,_0x248684:0x32c,_0x43e2d7:0x263,_0x31a02a:0x320,_0x511c98:0x253,_0x2f883f:0x1e4,_0x4df42e:0x1c5,_0x1f9e08:0x2e3},_0x147794={_0x438cd9:0xce,_0x5a049c:0x133,_0x21a143:0x207},_0x1d16d9={_0x404bc3:0x9},_0x5e18c9=new URL(_0x5db188,_0x3f3cf0);_0x5e18c9[_0x2dff62(_0xb975c7._0x16ce7d,_0xb975c7._0x5c2bc4,_0xb975c7._0x5161bd,0x2cb)]=_0x5e18c9[_0x2dff62(0x387,_0xb975c7._0x5c2bc4,_0xb975c7._0x2155a0,0x2cf)]===_0x2dff62(0x321,0x2e1,_0xb975c7._0x5a1489,_0xb975c7._0x109ba2)?_0x2dff62(_0xb975c7._0x248684,_0xb975c7._0x43e2d7,0x1a3,0x1e7):_0x2dff62(0x334,_0xb975c7._0x31a02a,0x2b7,_0xb975c7._0x511c98);function _0x2dff62(_0x24019a,_0x886390,_0x431299,_0x369006){return _0x42ffe3(_0x886390-0x304,_0x886390-0x1ce,_0x431299,_0x369006-_0x1d16d9._0x404bc3);}function _0x4453eb(_0x489760,_0xf761a2,_0xcc042a,_0x3bbb0b){return _0x5e5ba4(_0x489760-_0x147794._0x438cd9,_0xf761a2,_0xcc042a-_0x147794._0x5a049c,_0xcc042a- -_0x147794._0x21a143);}return _0x5e18c9[_0x2dff62(_0xb975c7._0x2f883f,0x26b,_0xb975c7._0x4df42e,_0xb975c7._0x1f9e08)]();}var ProviderSessionManager=class{['resolver'];[_0x5e5ba4(0x546,0x51f,0x598,0x5ad)];constructor(_0x36e5bb){this['resolver']=_0x36e5bb;}async[_0x42ffe3(0x2a,0xd2,-0x55,0x2f)](_0x5b7991){const _0x278fc3={_0x72cc62:0x135,_0x21f5c1:0x251,_0x398bb5:0xd7,_0x1a3393:0x2bd,_0x425d49:0x2ec,_0x495054:0x29c,_0x5c2aa9:0x249},_0x2ed13f={_0x48ce0f:0x759},_0x5c160d={_0x562dae:0x17e,_0x2bf8bc:0x4a};function _0x2163dc(_0x118269,_0x23d4f0,_0x552298,_0x20daf0){return _0x5e5ba4(_0x118269-_0x5c160d._0x562dae,_0x23d4f0,_0x552298-_0x5c160d._0x2bf8bc,_0x118269- -0x2a0);}!this[_0x394cf2(-0x1bd,-0x1ac,-_0x278fc3._0x72cc62,-0x1b1)]&&(this[_0x394cf2(-0x168,-0x1ac,-_0x278fc3._0x21f5c1,-_0x278fc3._0x398bb5)]=this['resolver'][_0x2163dc(_0x278fc3._0x1a3393,_0x278fc3._0x425d49,_0x278fc3._0x495054,_0x278fc3._0x5c2aa9)](_0x5b7991));function _0x394cf2(_0x21f7d8,_0x836d2b,_0xe0dbe9,_0x187a33){return _0x5e5ba4(_0x21f7d8-0x22,_0x187a33,_0xe0dbe9-0x12d,_0x836d2b- -_0x2ed13f._0x48ce0f);}return structuredClone(await this['cached']);}['invalidate'](){this['cached']=void 0x0;}};async function prepareProviderRequest(_0x33a733,_0x1fc41c={}){const _0x4e0462={_0x385463:0x84,_0x4e2a8b:0x147,_0x2a9f6d:0x2f4,_0x69a31a:0x278,_0x2ff1f3:0x1d5,_0x161834:0x187,_0x18deed:0x18b,_0x265044:0x226,_0x2e9f1e:0x236,_0x2d4fbe:0x254,_0x342080:0x275,_0x1d1f1c:0x23f},_0x3cf521={_0x58e382:0x18f};function _0x5ba6ca(_0x387816,_0x11ab80,_0xf9ccfc,_0x247870){return _0x42ffe3(_0x387816- -0x1b1,_0x11ab80-0xd3,_0xf9ccfc,_0x247870-0x196);}let _0x3ed291={'request':structuredClone(_0x33a733),'session':_0x1fc41c[_0x5ba6ca(-0x150,-0x161,-_0x4e0462._0x385463,-_0x4e0462._0x4e2a8b)]?await _0x1fc41c[_0x169423(_0x4e0462._0x2a9f6d,0x1b4,_0x4e0462._0x69a31a,_0x4e0462._0x2ff1f3)][_0x5ba6ca(-_0x4e0462._0x161834,-_0x4e0462._0x18deed,-_0x4e0462._0x265044,-_0x4e0462._0x2e9f1e)](_0x1fc41c[_0x169423(0x33a,0x33b,0x2af,_0x4e0462._0x2d4fbe)]):void 0x0};for(const _0x3a7fdf of _0x1fc41c[_0x5ba6ca(-0x24e,-_0x4e0462._0x342080,-_0x4e0462._0x1d1f1c,-0x1e2)]??[]){_0x3ed291=await _0x3a7fdf(_0x3ed291);}function _0x169423(_0x30fd60,_0x58aef9,_0x4f5e7e,_0x34879e){return _0x42ffe3(_0x4f5e7e-0x217,_0x58aef9-0x150,_0x58aef9,_0x34879e-_0x3cf521._0x58e382);}return _0x3ed291;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0x5e5ba4(0x4b8,0x45e,0x5d8,0x50a)];['maxTokens'];[_0x42ffe3(0x0,-0x20,0x8b,-0x32)];[_0x5e5ba4(0x60b,0x49a,0x4a9,0x55e)];['baseUrl'];[_0x42ffe3(-0x52,-0xdc,-0x24,-0x11e)];['providerAdapter'];[_0x5e5ba4(0x567,0x419,0x49e,0x496)];[_0x5e5ba4(0x46c,0x4f5,0x4aa,0x521)];['sessionManager'];['webSocketFactory'];[_0x42ffe3(-0x85,-0x14b,-0x106,-0xfa)]=new Map();constructor(_0x41e519){const _0x40965e={_0x2b6f6c:0xec,_0x23c035:0x153,_0x3a4394:0x268,_0x5a7c79:0x15c,_0x2d2601:0xd2,_0x1c5cde:0x5,_0x1df5e3:0x144,_0x19712b:0x223,_0x46e266:0x328,_0x52f238:0x25a,_0x53e660:0x1cf,_0x7ca1f0:0x25a,_0x48a126:0x17c,_0x561bef:0x11b,_0x5e4b67:0x1b8,_0x21c2ee:0xc6,_0x4ae0cd:0x1c9,_0xfa0a8e:0x208,_0x3b43f4:0x14e,_0x12ef43:0x1a6,_0x3bc731:0x1a9,_0x3959a3:0x20c,_0x291d76:0x179,_0x484449:0x2da,_0x2caa16:0x159,_0x395608:0x215,_0x1eb428:0x1b3,_0xcea794:0x128,_0x5745ef:0x238,_0x782176:0x1f4,_0x2ec09c:0x19d},_0x3b6fd0={_0x4204aa:0x13b,_0x51eaae:0x145,_0x5b4d9a:0x5e1},_0x1f8be7={_0x140cf6:0x16f};this[_0x3af7a5(-_0x40965e._0x2b6f6c,-_0x40965e._0x23c035,-_0x40965e._0x3a4394,-0x198)]=_0x41e519['model'],this['maxTokens']=_0x41e519[_0x3af7a5(-0x193,-0x49,-_0x40965e._0x5a7c79,-_0x40965e._0x2d2601)]??0x4000,this['reasoning']=_0x41e519['reasoning']?structuredClone(_0x41e519[_0x2cffda(-0xae,-0x2,-0xaa,-_0x40965e._0x1c5cde)]):void 0x0,this['apiKey']=_0x41e519[_0x3af7a5(-0x211,-0x1c2,-0x1a8,-_0x40965e._0x1df5e3)],this[_0x3af7a5(-_0x40965e._0x19712b,-0x1b7,-_0x40965e._0x46e266,-_0x40965e._0x52f238)]=_0x41e519[_0x3af7a5(-_0x40965e._0x53e660,-0x1ed,-0x23f,-_0x40965e._0x7ca1f0)],this[_0x2cffda(-0x100,-_0x40965e._0x48a126,-0x1cb,-_0x40965e._0x561bef)]=_0x41e519[_0x3af7a5(-0x1ba,-_0x40965e._0x5e4b67,-_0x40965e._0x21c2ee,-0x14b)]??globalThis['fetch'],this[_0x3af7a5(-0xc7,-_0x40965e._0x4ae0cd,-_0x40965e._0xfa0a8e,-_0x40965e._0x3b43f4)]=_0x41e519[_0x3af7a5(-0x1af,-0x192,-0x21e,-0x14e)];function _0x3af7a5(_0x57126a,_0x4eb97c,_0x1e63c4,_0x535ba3){return _0x42ffe3(_0x535ba3- -_0x1f8be7._0x140cf6,_0x4eb97c-0x11f,_0x1e63c4,_0x535ba3-0x157);}this[_0x2cffda(-0x14b,-_0x40965e._0x12ef43,-0xd7,-_0x40965e._0x3bc731)]=_0x41e519[_0x3af7a5(-0x147,-0x27c,-0x2d5,-_0x40965e._0x3959a3)]??[],this[_0x3af7a5(-0x1ec,-0x1e0,-0xb8,-0x181)]=_0x41e519['router'],this['sessionManager']=_0x41e519['sessionManager']??(_0x41e519[_0x2cffda(-0x162,-0x160,-_0x40965e._0x291d76,-0xca)]?new ProviderSessionManager(_0x41e519[_0x2cffda(-0x162,-0xc6,-0x1f0,-0x165)]):void 0x0);function _0x2cffda(_0x2ae723,_0x277b66,_0x373359,_0xec8ac5){return _0x5e5ba4(_0x2ae723-_0x3b6fd0._0x4204aa,_0x373359,_0x373359-_0x3b6fd0._0x51eaae,_0x2ae723- -_0x3b6fd0._0x5b4d9a);}this[_0x3af7a5(-_0x40965e._0x484449,-0x2cc,-_0x40965e._0x2caa16,-_0x40965e._0x395608)]=_0x41e519['webSocketFactory']??createDefaultWebSocketFactory();for(const _0x179f55 of _0x41e519[_0x3af7a5(-_0x40965e._0x1eb428,-_0x40965e._0xcea794,-_0x40965e._0x5745ef,-_0x40965e._0x782176)]){this[_0x2cffda(-0x133,-0xde,-_0x40965e._0x2ec09c,-0x6a)][_0x3af7a5(-0x6c,-0x199,-0x194,-0x133)](_0x179f55['id'],_0x179f55);}}[_0x42ffe3(-0xbb,-0x142,-0xc1,-0xcb)](_0x2b3232,_0x4eed8e){return this['completeViaRouter'](_0x2b3232,_0x4eed8e);}[_0x5e5ba4(0x64d,0x514,0x534,0x5b5)](_0x4b6077,_0x46d54f){const _0x2d3dfc={_0x831d25:0x67,_0x1ee2f1:0x11f,_0x6bf3f4:0x8},_0x33e0ff={_0x317899:0x1f4};function _0x356f43(_0x5dc2ec,_0x10db11,_0x5d4d2c,_0x449c92){return _0x5e5ba4(_0x5dc2ec-0x93,_0x10db11,_0x5d4d2c-_0x33e0ff._0x317899,_0x5dc2ec- -0x4d9);}return this[_0x356f43(_0x2d3dfc._0x831d25,_0x2d3dfc._0x1ee2f1,-_0x2d3dfc._0x6bf3f4,0x7)](_0x4b6077,_0x46d54f);}async['completeViaRouter'](_0x594ba9,_0x33d7e9){const _0x32c93f={_0x5686b3:0x4b8,_0x4ae394:0x48a,_0x524783:0x139,_0x50befc:0x439,_0x4f7aa5:0x441,_0x34e723:0x172,_0x4d4e8e:0x1b1},_0x514ae5={_0x159e02:0xb9,_0x2c7e35:0x65a},_0x362130=this[_0x2a79b0(0x42f,_0x32c93f._0x5686b3,0x4db,_0x32c93f._0x4ae394)](_0x594ba9);function _0x2a79b0(_0x2eb544,_0x8a1b78,_0x517ae3,_0x28e115){return _0x42ffe3(_0x2eb544-0x3d7,_0x8a1b78-0x25,_0x517ae3,_0x28e115-0xc1);}const _0x47780a=await this[_0x513cb3(-_0x32c93f._0x524783,-0x9f,-0x1b8,-0x17f)][_0x2a79b0(0x41a,0x4ed,_0x32c93f._0x50befc,_0x32c93f._0x4f7aa5)](_0x362130,{'mode':'complete'});function _0x513cb3(_0x4098ea,_0x1dfb9e,_0x1b2e8c,_0x1191dc){return _0x5e5ba4(_0x4098ea-_0x514ae5._0x159e02,_0x1191dc,_0x1b2e8c-0x11c,_0x4098ea- -_0x514ae5._0x2c7e35);}return this[_0x513cb3(-_0x32c93f._0x34e723,-0x115,-_0x32c93f._0x4d4e8e,-0x215)](_0x362130,_0x47780a,_0x33d7e9);}async*[_0x42ffe3(0xd,0xbd,0x1,-0x1c)](_0x3918a7,_0x4af78a){const _0x1acc6a={_0xd1f08c:0x8,_0xacae4d:0x67,_0x191728:0x80,_0x1b27a8:0x62,_0x566e5c:0x4,_0x3aef6b:0x1b,_0x4c15e2:0x9b,_0x53bd24:0x190,_0x57e912:0x1a7,_0x1908b8:0x109,_0x4e7240:0x127},_0x39cbb0={_0x516ff0:0x50,_0x492c8c:0x19e},_0x194bf1=this[_0x51a23c(-0xc1,-0x14,_0x1acc6a._0xd1f08c,-_0x1acc6a._0xacae4d)](_0x3918a7),_0x62f230=await this[_0x51a23c(-0x11d,-_0x1acc6a._0x191728,-_0x1acc6a._0x1b27a8,-_0x1acc6a._0x566e5c)][_0x27e42e(_0x1acc6a._0x3aef6b,_0x1acc6a._0x4c15e2,0xe6,0x174)](_0x194bf1,{'mode':_0x27e42e(0x107,_0x1acc6a._0x53bd24,0x125,0x102)});function _0x27e42e(_0x336376,_0x2025ec,_0xd7bb7d,_0x2cb7e8){return _0x5e5ba4(_0x336376-0xf8,_0x2cb7e8,_0xd7bb7d-0x4d,_0xd7bb7d- -0x490);}function _0x51a23c(_0x5306ac,_0x34e942,_0x96c66c,_0x3cc580){return _0x42ffe3(_0x96c66c- -_0x39cbb0._0x516ff0,_0x34e942-0x42,_0x3cc580,_0x3cc580-_0x39cbb0._0x492c8c);}yield*this[_0x51a23c(-_0x1acc6a._0x57e912,-0xa1,-_0x1acc6a._0x1908b8,-_0x1acc6a._0x4e7240)](_0x194bf1,_0x62f230,_0x4af78a);}async[_0x5e5ba4(0x427,0x4a7,0x5aa,0x4e8)](_0x41a98b,_0x308d3c,_0x10d6cc){const _0x3f2237={_0xb04dea:0x19b,_0x26c2de:0xe8,_0x2efa9e:0xf9,_0xbf6033:0x11f,_0x564535:0x13b,_0x115089:0x1e0,_0x45308f:0xbb,_0x6a9403:0x162,_0x5218c7:0x178,_0x28686e:0x199,_0xacd69c:0xc5,_0x2baca1:0x142,_0x2adf8b:0x502,_0x168d89:0x469,_0xfbdf68:0x516,_0x2d5de5:0x3fb,_0x38d310:0x9a,_0x5e3901:0x1df,_0x4085e1:0x3c9,_0x5740fb:0x38a,_0x218a67:0x48c,_0x4a1e52:0x4d7,_0x49da58:0x427,_0x239490:0x4fb,_0xb1d452:0x48e,_0x1d4579:0x4a7},_0x514ae9={_0x3364cc:0x179,_0x407bed:0xc0},_0x2dec81={_0x3b23c5:0x143,_0x16781c:0x163},_0x4efa1c=this[_0xde68e0(0x21e,0x1b2,0x222,_0x3f2237._0xb04dea)](_0x41a98b),_0x5e1ddb=this[_0xde68e0(_0x3f2237._0x26c2de,0x1c1,_0x3f2237._0x2efa9e,_0x3f2237._0xbf6033)](_0x308d3c);if(_0x5e1ddb['transport']===_0xde68e0(_0x3f2237._0x564535,0x13e,_0x3f2237._0x115089,0x14b)){const _0x2ad2a1=await this[_0xde68e0(_0x3f2237._0x45308f,0x18a,0xb0,_0x3f2237._0x6a9403)](_0x4efa1c,_0x5e1ddb,![],_0x10d6cc);if(!_0x2ad2a1['ok'])throw await this[_0xde68e0(_0x3f2237._0x5218c7,_0x3f2237._0x28686e,_0x3f2237._0xacd69c,_0x3f2237._0x2baca1)](_0x2ad2a1);if(!_0x5e1ddb['parseResponse'])throw new Error(_0xf8f79a(_0x3f2237._0x2adf8b,_0x3f2237._0x168d89,0x4a7,_0x3f2237._0xfbdf68)+_0x308d3c+'\x20does\x20not\x20support\x20non-streaming\x20responses');return _0x5e1ddb[_0xf8f79a(0x3b3,0x33c,0x37a,_0x3f2237._0x2d5de5)](await _0x2ad2a1[_0xde68e0(0xa7,_0x3f2237._0x38d310,_0x3f2237._0x5e3901,0x140)](),_0x4efa1c);}let _0x1391d6;function _0xde68e0(_0x481914,_0x30f851,_0x2268fc,_0x3bba1b){return _0x42ffe3(_0x3bba1b-_0x2dec81._0x3b23c5,_0x30f851-_0x2dec81._0x16781c,_0x481914,_0x3bba1b-0x42);}function _0xf8f79a(_0x5804c8,_0x29b319,_0x3e7f6e,_0x5eb581){return _0x5e5ba4(_0x5804c8-_0x514ae9._0x3364cc,_0x5804c8,_0x3e7f6e-0x19e,_0x3e7f6e- -_0x514ae9._0x407bed);}for await(const _0x4e42d9 of this[_0xf8f79a(0x3ff,_0x3f2237._0x4085e1,0x3ba,_0x3f2237._0x5740fb)](_0x4efa1c,_0x308d3c,_0x10d6cc)){_0x4e42d9[_0xf8f79a(0x551,_0x3f2237._0x218a67,0x48b,_0x3f2237._0x4a1e52)]===_0xf8f79a(_0x3f2237._0x49da58,0x57e,_0x3f2237._0x239490,0x497)&&(_0x1391d6=_0x4e42d9['response']);}if(!_0x1391d6)throw new Error(_0xf8f79a(_0x3f2237._0xb1d452,0x4d8,_0x3f2237._0x1d4579,0x4c6)+_0x308d3c+'\x20did\x20not\x20produce\x20a\x20final\x20response');return _0x1391d6;}async*[_0x5e5ba4(0x3c4,0x507,0x43e,0x47a)](_0x10e213,_0x4243c2,_0x39b633){const _0x3bdf43={_0xc76d81:0x28d,_0x25a7e7:0x237,_0x569548:0x263,_0x69a889:0x30f,_0x29a76f:0x1c9,_0xd8c86:0x293,_0x3a3d7f:0x283,_0x55828d:0x2a9,_0x28924d:0x2b5,_0x2d78b5:0x305,_0x2af5fb:0x2da,_0x356acb:0x36a,_0x183452:0x395,_0x40f65a:0x204,_0x248dfb:0x1b7,_0x1074e9:0x151,_0x3e916f:0xe3,_0x50ef17:0x3b6,_0x33f84a:0x3ae,_0xe6f674:0x366,_0x3b7661:0x3e6},_0x1c4dab={_0x183ddf:0x463},_0x301f89={_0x5412fc:0x120,_0x2eac81:0x72},_0x1ab02b={_0x518696:0x177},_0x3e9fb9=this[_0x395185(0x2df,0x22b,_0x3bdf43._0xc76d81,_0x3bdf43._0x25a7e7)](_0x10e213);function _0x28d090(_0x3bf8c6,_0x33e864,_0x258655,_0x3f1677){return _0x5e5ba4(_0x3bf8c6-0x88,_0x3f1677,_0x258655-_0x1ab02b._0x518696,_0x258655- -0x265);}const _0x46dc6f=this[_0x395185(_0x3bdf43._0x569548,0x2db,_0x3bdf43._0x69a889,0x339)](_0x4243c2);function _0x395185(_0x9d093b,_0x4d9d37,_0x54dd42,_0x1527e5){return _0x5e5ba4(_0x9d093b-0x124,_0x4d9d37,_0x54dd42-0x85,_0x9d093b- -0x2ac);}if(_0x46dc6f[_0x395185(0x323,0x2dd,0x3ee,0x25b)]===_0x395185(0x28f,_0x3bdf43._0x29a76f,_0x3bdf43._0xd8c86,0x1f8)){const _0x265172=[],_0x33524b=await this[_0x28d090(0x30f,0x25d,_0x3bdf43._0x3a3d7f,_0x3bdf43._0x55828d)](_0x3e9fb9,_0x4243c2,{..._0x39b633,'onProviderRetry':async _0x57b595=>{function _0x32e063(_0x5974e5,_0x301312,_0xf78575,_0x1ad64e){return _0x395185(_0x301312-_0x301f89._0x5412fc,_0x5974e5,_0xf78575-_0x301f89._0x2eac81,_0x1ad64e-0xc7);}_0x265172[_0x32e063(_0x1c4dab._0x183ddf,0x3c1,0x3ee,0x3de)](_0x57b595),await _0x39b633?.['onProviderRetry']?.(_0x57b595);}});for(const _0x341ae7 of _0x265172){yield _0x341ae7;}yield{'type':_0x395185(0x30f,_0x3bdf43._0x28924d,0x385,_0x3bdf43._0x2d78b5),'response':_0x33524b};return;}if(_0x46dc6f[_0x28d090(_0x3bdf43._0x2af5fb,0x38a,_0x3bdf43._0x356acb,_0x3bdf43._0x183452)]===_0x395185(0x2d3,0x291,_0x3bdf43._0x40f65a,0x383)){yield*this[_0x395185(_0x3bdf43._0x248dfb,0x1a9,0xe3,0x187)](_0x3e9fb9,_0x46dc6f,_0x39b633);return;}yield*this[_0x395185(0x1a6,_0x3bdf43._0x1074e9,0x14f,_0x3bdf43._0x3e916f)](_0x3e9fb9,_0x46dc6f,_0x39b633?.[_0x28d090(_0x3bdf43._0x50ef17,_0x3bdf43._0x33f84a,_0x3bdf43._0xe6f674,_0x3bdf43._0x3b7661)]);}async[_0x5e5ba4(0x50e,0x5cf,0x567,0x589)](_0x2990c0){const _0x19582d={_0x37d727:0x116,_0x28fd4c:0x17f,_0x55e2fe:0x180,_0x4073e5:0x23c},_0x4b06d3={_0x33d214:0x66,_0x162c0e:0x2f,_0x24ce9c:0x2e6,_0x4b0254:0x288,_0x172f40:0x2c4,_0x3af694:0x250,_0x58f694:0x9,_0x1e50fa:0x49,_0x5e28c0:0x18,_0x8c2049:0x245,_0x11892f:0x27d,_0x42af14:0x283,_0x2b31f9:0x24f,_0xc83530:0xe0,_0x147678:0x47,_0x797223:0x304,_0x5fcf26:0x2ea,_0x42c740:0x268,_0x58aabd:0x271,_0x9a4f2c:0xce,_0x383c5f:0x18b,_0x4e4928:0x1d1,_0x53bc70:0x21b,_0x4fbe54:0x275,_0x55edb9:0x21d,_0x4cf99e:0x44,_0x3b4f08:0x307,_0x5fd662:0x278,_0x551000:0x23b,_0x5cb74f:0x33f,_0x57f9ad:0x20e,_0x27d44a:0x2be},_0x15cb46={_0x4f382f:0x1f8},_0x7f2f30={_0x4161c0:0x19c};function _0x54f80b(_0x4b8b85,_0x5ce54e,_0x48917a,_0x356555){return _0x42ffe3(_0x5ce54e-0x145,_0x5ce54e-0x1b4,_0x48917a,_0x356555-_0x7f2f30._0x4161c0);}const _0x25b34e=async()=>{function _0x3803f9(_0x13771c,_0x3c4bbb,_0x1ec0e1,_0x2fd36b){return _0x5b07(_0x2fd36b-0xaa,_0x1ec0e1);}const _0x22d800=this[_0x20cc23(-0xae,_0x4b06d3._0x33d214,_0x4b06d3._0x162c0e,-0x1b)]?await this['sessionManager'][_0x3803f9(_0x4b06d3._0x24ce9c,_0x4b06d3._0x4b0254,_0x4b06d3._0x172f40,_0x4b06d3._0x3af694)](_0x2990c0[_0x20cc23(0x1e,0x34,_0x4b06d3._0x33d214,0x1c)]):void 0x0,_0x50937f=this[_0x20cc23(_0x4b06d3._0x58f694,_0x4b06d3._0x1e50fa,-_0x4b06d3._0x5e28c0,-0x5b)][_0x3803f9(0x232,_0x4b06d3._0x8c2049,0x1f0,_0x4b06d3._0x11892f)](this[_0x3803f9(0x254,0x297,_0x4b06d3._0x42af14,0x251)],_0x22d800);function _0x20cc23(_0x91fe03,_0x432fef,_0x18251c,_0x44c0b0){return _0x5b07(_0x44c0b0- -_0x15cb46._0x4f382f,_0x91fe03);}if(!_0x50937f)throw this['createMissingCredentialError']();const _0x2956dc=await this[_0x3803f9(0x23a,0x1b4,_0x4b06d3._0x2b31f9,0x1b2)]({'body':_0x2990c0['body'],'credential':_0x50937f,'session':_0x22d800,'stream':![]},{'accept':_0x2990c0['accept']??_0x3803f9(_0x4b06d3._0xc83530,0x104,0x146,0x130),'includeContentType':_0x2990c0[_0x20cc23(-0x62,0x3a,-_0x4b06d3._0x147678,-0x85)]===_0x3803f9(_0x4b06d3._0x797223,_0x4b06d3._0x5fcf26,_0x4b06d3._0x42c740,_0x4b06d3._0x58aabd)});return this[_0x20cc23(-0x49,-0xa3,-0x28,-_0x4b06d3._0x9a4f2c)](''+this[_0x3803f9(0x2e0,0x1b2,0x27a,0x247)][_0x20cc23(-0x13f,-_0x4b06d3._0x383c5f,-0x12e,-0x15e)](this['baseUrl'],_0x22d800)+_0x2990c0[_0x3803f9(_0x4b06d3._0x4e4928,0x29e,_0x4b06d3._0x53bc70,0x23b)],{'method':_0x2990c0[_0x3803f9(0x2e0,0x1f0,_0x4b06d3._0x4fbe54,_0x4b06d3._0x55edb9)],'headers':_0x2956dc,..._0x2990c0[_0x20cc23(0x10,_0x4b06d3._0x4cf99e,0x51,-0x2a)]!==void 0x0?{'body':JSON['stringify'](_0x2990c0[_0x3803f9(_0x4b06d3._0x3b4f08,0x310,0x297,_0x4b06d3._0x5fd662)])}:{},'signal':_0x2990c0[_0x3803f9(_0x4b06d3._0x551000,_0x4b06d3._0x5cb74f,_0x4b06d3._0x57f9ad,_0x4b06d3._0x27d44a)]});};return await this[_0x54f80b(_0x19582d._0x37d727,_0x19582d._0x28fd4c,_0x19582d._0x55e2fe,_0x19582d._0x4073e5)](_0x25b34e,_0x2990c0);}['getRetryDelayMs'](_0x50f458,_0x1c9dbb){const _0x4378da={_0x3776ca:0x2d7,_0x3282e1:0x209,_0x2cd509:0x28e,_0x19bb22:0xf7,_0x515d4e:0x1c9,_0x368f77:0x1be,_0x365b85:0x23a,_0x1a093e:0x18c,_0xc85309:0x138,_0x34e398:0x1ad,_0x92839f:0x1c5,_0x34a8bc:0xac,_0x1ed9c6:0x1cb},_0x21144a={_0x2cc641:0x3a4},_0x229d95=_0x50f458?.[_0x19902c(-_0x4378da._0x3776ca,-_0x4378da._0x3282e1,-_0x4378da._0x2cd509,-0x29b)][_0x19902c(-_0x4378da._0x19bb22,-_0x4378da._0x515d4e,-_0x4378da._0x368f77,-_0x4378da._0x365b85)](_0x19902c(-0x75,-_0x4378da._0x1a093e,-_0x4378da._0xc85309,-0x144));if(_0x229d95){const _0x5b0032=Number(_0x229d95);if(Number[_0x19902c(-0x25c,-_0x4378da._0x34e398,-0x236,-0x202)](_0x5b0032)&&_0x5b0032>=0x0)return _0x5b0032*0x3e8;const _0x302a41=Date['parse'](_0x229d95);if(Number['isFinite'](_0x302a41))return Math[_0x19902c(-0x26f,-0x1f5,-0x246,-0x1d6)](0x0,_0x302a41-Date[_0x19902c(-_0x4378da._0x92839f,-_0x4378da._0x34a8bc,-0x17b,-_0x4378da._0x1ed9c6)]());}function _0x19902c(_0x49b24e,_0x5b0caa,_0x59795f,_0x50e35a){return _0x5e5ba4(_0x49b24e-0x3b,_0x5b0caa,_0x59795f-0x65,_0x59795f- -0x6c7);}const _0x2ecdb0=DEFAULT_RETRY_DELAY_MS*0x2**_0x1c9dbb;if(_0x2ecdb0<RETRY_DELAY_STEP_CAP_MS)return _0x2ecdb0;function _0x125f6b(_0x538bcf,_0x5603ce,_0x179dd3,_0x13afa6){return _0x42ffe3(_0x179dd3-_0x21144a._0x2cc641,_0x5603ce-0xb1,_0x13afa6,_0x13afa6-0x19);}return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x1c9dbb-0x5);}[_0x42ffe3(-0xff,-0x1ab,-0x174,-0x84)](_0x2c7ac3){const _0x449041={_0x1ff233:0x498,_0x5e6aa8:0x415,_0x2e5455:0x497},_0x40986c={_0x209476:0x4ce};function _0x57f5f6(_0x6374f4,_0x1eeb26,_0x67c3d8,_0x2219f9){return _0x42ffe3(_0x2219f9-_0x40986c._0x209476,_0x1eeb26-0x155,_0x6374f4,_0x2219f9-0x1bc);}return RETRYABLE_HTTP_STATUSES[_0x57f5f6(_0x449041._0x1ff233,0x49d,_0x449041._0x5e6aa8,_0x449041._0x2e5455)](_0x2c7ac3['status']);}['shouldRetryRequestError'](_0x5136e9){return!isAbortError(_0x5136e9)&&_0x5136e9 instanceof TypeError;}['shouldRetryStreamAttemptError'](_0x2e7ce5){const _0x361a2c={_0x4e4792:0x19c,_0x54c8c2:0x1f3};function _0x51e261(_0x2b9c7e,_0x346c28,_0x41537f,_0x422ced){return _0x42ffe3(_0x2b9c7e- -0x1a1,_0x346c28-0x1df,_0x422ced,_0x422ced-0x60);}return this[_0x51e261(-_0x361a2c._0x4e4792,-0x267,-_0x361a2c._0x54c8c2,-0xe9)](_0x2e7ce5)||isRetryableProviderStreamEventError(_0x2e7ce5);}async[_0x5e5ba4(0x43d,0x395,0x4c7,0x454)](_0x371c70,_0x12fdb6){const _0xe9872d={_0x29dad4:0x14b,_0x354d93:0x112};throwIfAborted(_0x12fdb6),await new Promise((_0x131703,_0x36772e)=>{let _0x40b86d=![];const _0x474d94=addAbortListener(_0x12fdb6,()=>{const _0x452cf9={_0x2f45b4:0x386};function _0x7d52f(_0x102a86,_0x5efcf2,_0x3e959e,_0x4433f5){return _0x5b07(_0x3e959e- -_0x452cf9._0x2f45b4,_0x102a86);}if(_0x40b86d)return;_0x40b86d=!![],clearTimeout(_0x380e46),_0x36772e(toAbortError(_0x12fdb6?.[_0x7d52f(-_0xe9872d._0x29dad4,-0xca,-0x199,-_0xe9872d._0x354d93)]));}),_0x380e46=setTimeout(()=>{_0x40b86d=!![],_0x474d94(),_0x131703();},_0x371c70);}),throwIfAborted(_0x12fdb6);}async[_0x42ffe3(0x3a,0x37,0x59,-0x43)](_0x8833a4,_0x3d45a5={}){const _0x1a7c32={_0x5512b9:0xea,_0x228b69:0xf1,_0x13329e:0x2f0,_0x2c2208:0x327,_0x44cafb:0x22f,_0x552893:0x1ca,_0x469658:0x1b6,_0x293a94:0x1ad,_0x1232d0:0xf6,_0x416568:0x14b,_0x212df7:0x1cb,_0x28502b:0x27f,_0x3b51c5:0x152,_0x1c8e5f:0x1ba,_0x2541d5:0xf9,_0xf8daa1:0x2b0,_0x20aaec:0x2cf,_0x33a1b5:0x30a,_0x11ec81:0x1ec,_0x239425:0x222,_0xc0df18:0x2f8,_0x595962:0x298,_0x48c161:0x1b6,_0x56bd4c:0x120,_0x63dfe0:0x1c7,_0x522260:0xfa,_0x22995e:0x126,_0x216abb:0x82,_0x3a2bc7:0x1aa,_0x567935:0x68,_0x53f83d:0x14c,_0x3ced01:0x37e,_0x1e256a:0x2d0,_0x300dc5:0x23f,_0x21083f:0x333,_0x941335:0x26a,_0x229ccd:0x329,_0x31d0c9:0x2ac},_0x31f5d4={_0x5fc2d9:0x5e},_0x33ddfe={_0x3eaf52:0x414};function _0x2beea8(_0x429700,_0x26dbe7,_0x55fae9,_0xff4e98){return _0x5e5ba4(_0x429700-0x4e,_0xff4e98,_0x55fae9-0x1b2,_0x429700- -_0x33ddfe._0x3eaf52);}const {signal:_0x5f4196}=_0x3d45a5;let _0xa531b0=![];function _0x20c896(_0x555e1f,_0x5b77e4,_0x4e2c1d,_0x39c0c4){return _0x42ffe3(_0x5b77e4- -0x1f1,_0x5b77e4-0xac,_0x555e1f,_0x39c0c4-_0x31f5d4._0x5fc2d9);}for(let _0xb198b9=0x0;_0xb198b9<MAX_PROVIDER_REQUEST_ATTEMPTS;_0xb198b9+=0x1){throwIfAborted(_0x5f4196);try{const _0x55b675=await _0x8833a4();if(_0x55b675['status']===0x191&&this[_0x2beea8(0x180,_0x1a7c32._0x5512b9,_0x1a7c32._0x228b69,0x1d8)]&&!_0xa531b0){_0xa531b0=!![],this[_0x2beea8(0x180,0xca,0xd4,0x1fb)]['invalidate']();continue;}if(!this[_0x20c896(-0x243,-_0x1a7c32._0x13329e,-_0x1a7c32._0x2c2208,-_0x1a7c32._0x44cafb)](_0x55b675)||_0xb198b9===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x55b675;const _0x285d26=this[_0x20c896(-0x2c7,-0x298,-0x33d,-_0x1a7c32._0x552893)](_0x55b675,_0xb198b9);await _0x3d45a5[_0x2beea8(_0x1a7c32._0x469658,0x209,_0x1a7c32._0x293a94,_0x1a7c32._0x1232d0)]?.({'type':_0x20c896(-_0x1a7c32._0x416568,-_0x1a7c32._0x212df7,-_0x1a7c32._0x28502b,-_0x1a7c32._0x3b51c5),'attempt':_0xb198b9+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x20c896(-_0x1a7c32._0x1c8e5f,-0x150,-_0x1a7c32._0x2541d5,-0xbd)+_0x55b675[_0x20c896(-0x266,-0x2cf,-0x2ed,-_0x1a7c32._0xf8daa1)],'delayMs':_0x285d26,'reason':'http_status','status':_0x55b675[_0x20c896(-0x2a8,-_0x1a7c32._0x20aaec,-_0x1a7c32._0x33a1b5,-0x2a3)]}),await this['waitForRetry'](_0x285d26,_0x5f4196);}catch(_0x3c055c){if(!this[_0x20c896(-0x116,-_0x1a7c32._0x11ec81,-_0x1a7c32._0x239425,-0x11b)](_0x3c055c)||_0xb198b9===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x3c055c;const _0x288b78=this[_0x20c896(-_0x1a7c32._0xc0df18,-_0x1a7c32._0x595962,-0x225,-0x318)](void 0x0,_0xb198b9);await _0x3d45a5[_0x2beea8(_0x1a7c32._0x48c161,_0x1a7c32._0x56bd4c,_0x1a7c32._0x63dfe0,0x1b6)]?.({'type':_0x20c896(-0x28c,-0x1cb,-_0x1a7c32._0x522260,-_0x1a7c32._0x22995e),'attempt':_0xb198b9+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x3c055c instanceof Error?_0x3c055c[_0x2beea8(0xd5,0x58,_0x1a7c32._0x216abb,_0x1a7c32._0x3a2bc7)]:String(_0x3c055c),'delayMs':_0x288b78,'reason':_0x2beea8(0x12a,0xf9,_0x1a7c32._0x567935,_0x1a7c32._0x53f83d)}),await this[_0x20c896(-_0x1a7c32._0x3ced01,-_0x1a7c32._0x1e256a,-0x38e,-_0x1a7c32._0x300dc5)](_0x288b78,_0x5f4196);}}throw new Error(_0x20c896(-_0x1a7c32._0x21083f,-_0x1a7c32._0x941335,-_0x1a7c32._0x229ccd,-_0x1a7c32._0x31d0c9));}['createMissingCredentialError'](){const _0x29bd3a={_0x43934b:0x392,_0xe9d4aa:0x2b2,_0x873e82:0x2ae},_0x98c3d4={_0x4f1307:0x143};function _0x442846(_0x54c9dd,_0x2bd0e5,_0x61c999,_0x7963ec){return _0x42ffe3(_0x61c999-0x357,_0x2bd0e5-_0x98c3d4._0x4f1307,_0x7963ec,_0x7963ec-0x1);}return this[_0x442846(_0x29bd3a._0x43934b,_0x29bd3a._0xe9d4aa,0x378,_0x29bd3a._0x873e82)]['createMissingCredentialError']();}async[_0x5e5ba4(0x565,0x4ef,0x3f9,0x4bf)](_0x54ced4,_0x46568f){const _0x1c3183={_0x4dad92:0x2d2},_0x273a98={_0x32c0d3:0xce,_0x4ace13:0xfb,_0x54e62d:0x2fb};function _0x61cf76(_0x1c1151,_0x274ccb,_0x546ec0,_0x4f9dc4){return _0x5e5ba4(_0x1c1151-_0x273a98._0x32c0d3,_0x274ccb,_0x546ec0-_0x273a98._0x4ace13,_0x4f9dc4- -_0x273a98._0x54e62d);}return await this[_0x61cf76(0x2bf,_0x1c3183._0x4dad92,0x1d2,0x259)]['createHeaders'](_0x54ced4,_0x46568f);}[_0x5e5ba4(0x547,0x507,0x45c,0x50b)](_0x47bb3e){const _0x4181bd={_0x23dd5a:0xe0,_0x174593:0x99,_0x11f1f0:0xe0},_0x23f7bd={_0x3d2f41:0xeb};function _0x757902(_0x308488,_0x132c14,_0x5beb83,_0x15435f){return _0x5e5ba4(_0x308488-_0x23f7bd._0x3d2f41,_0x132c14,_0x5beb83-0x109,_0x15435f- -0x474);}return this[_0x757902(_0x4181bd._0x23dd5a,_0x4181bd._0x174593,0xdb,_0x4181bd._0x11f1f0)]['mapApiError'](_0x47bb3e);}async['toApiError'](_0x4b1437){const _0x21a27a={_0xca2c41:0x2ca,_0x288c54:0x384,_0xad2840:0x35f},_0xd64180={_0xe5f366:0x350,_0x1d1fe8:0x1be};function _0x3907d6(_0x4d3c5a,_0x1e0da2,_0x5c9d76,_0x5ed703){return _0x42ffe3(_0x1e0da2-_0xd64180._0xe5f366,_0x1e0da2-_0xd64180._0x1d1fe8,_0x5c9d76,_0x5ed703-0x54);}return await this['providerAdapter'][_0x3907d6(_0x21a27a._0xca2c41,0x34f,_0x21a27a._0x288c54,_0x21a27a._0xad2840)](_0x4b1437);}[_0x42ffe3(-0x24,0x53,-0x4b,0x8f)](_0x2712ec){const _0x19c2e7={_0x21a767:0x247,_0x5cfe07:0x19d,_0x2bd6e5:0x108,_0x57b1ca:0xd6,_0x1dfdae:0x18c},_0xca5c51={_0x171114:0x2},_0x566935={_0x59be80:0xd,_0x148c37:0x86,_0x5b3ee3:0x657},_0x25e4e3=this[_0x48b6e0(-0x1a9,-0x180,-_0x19c2e7._0x21a767,-_0x19c2e7._0x5cfe07)][_0x48b6e0(-0x14e,-_0x19c2e7._0x2bd6e5,-0x8a,-_0x19c2e7._0x57b1ca)](_0x2712ec);function _0x48b6e0(_0x46f21f,_0x568500,_0x17c658,_0x2c6eb1){return _0x5e5ba4(_0x46f21f-_0x566935._0x59be80,_0x17c658,_0x17c658-_0x566935._0x148c37,_0x46f21f- -_0x566935._0x5b3ee3);}function _0x397c3e(_0x424d36,_0xa2b8bc,_0x28f68c,_0x28c060){return _0x42ffe3(_0xa2b8bc-0x505,_0xa2b8bc-_0xca5c51._0x171114,_0x28f68c,_0x28c060-0x109);}if(!_0x25e4e3)throw new Error(_0x48b6e0(-_0x19c2e7._0x1dfdae,-0xf2,-0x154,-0x25d)+_0x2712ec);return _0x25e4e3;}async[_0x5e5ba4(0x401,0x516,0x44c,0x4a9)](_0x104fc2,_0x220882){const _0x5877b5={_0x4e83c0:0x218,_0xd295fc:0x50,_0x2698e9:0x14c,_0x1d8b4e:0xb5,_0x8742d0:0x182,_0x2d7177:0x249,_0x298f2b:0x163,_0x426960:0x156,_0x29b6e0:0x198,_0x51ea43:0x66,_0x3ba04e:0x8a,_0x7e6956:0x79,_0x4f3af8:0xaf,_0x5c0701:0x16,_0x42b6fc:0xf7,_0x380299:0x56,_0x11ffec:0xc9,_0x2d5c50:0x49,_0x91465d:0x1a,_0x487401:0x68,_0x3c2545:0x40,_0x5b5563:0x6e,_0x38a030:0x6a,_0x25bcdb:0x41},_0x5d68d1={_0xb478e5:0x197,_0x366bbf:0xa9},_0x2c6b6a={_0x3a16e5:0x12b,_0x542ac9:0x1e6},_0x2dde61=toModelRequest(_0x104fc2),_0x2e5ee9=await prepareProviderRequest(_0x2dde61,{'sessionManager':this[_0x4bb672(0x203,0x190,0x18c,_0x5877b5._0x4e83c0)],'requestMutators':this[_0x4bb672(0x6f,0x8e,0x8e,_0x5877b5._0xd295fc)],'signal':_0x220882}),_0x127a3e=toChatRequest(_0x2e5ee9['request']),_0x3bcb07=this[_0x4bb672(0x10f,0x118,_0x5877b5._0x2698e9,0x13e)][_0x4bb672(0x115,_0x5877b5._0x1d8b4e,_0x5877b5._0x8742d0,_0x5877b5._0x2d7177)](this[_0x4bb672(0xe7,_0x5877b5._0x298f2b,_0x5877b5._0x426960,0xc6)],_0x2e5ee9[_0x18528c(-_0x5877b5._0x29b6e0,-0x129,-_0x5877b5._0x51ea43,-0x120)]);function _0x4bb672(_0x515223,_0x39fb33,_0x2fde8b,_0x532721){return _0x42ffe3(_0x2fde8b-_0x2c6b6a._0x3a16e5,_0x39fb33-0x126,_0x515223,_0x532721-_0x2c6b6a._0x542ac9);}if(!_0x3bcb07)throw this[_0x18528c(_0x5877b5._0x3ba04e,-_0x5877b5._0x7e6956,-_0x5877b5._0x4f3af8,_0x5877b5._0x5c0701)]();function _0x18528c(_0x29f9d4,_0x10f678,_0x549351,_0x4e8432){return _0x42ffe3(_0x4e8432- -0x77,_0x10f678-_0x5d68d1._0xb478e5,_0x549351,_0x4e8432-_0x5d68d1._0x366bbf);}return{'baseUrl':this[_0x18528c(-_0x5877b5._0x42b6fc,0x3f,-0xdb,-_0x5877b5._0x380299)][_0x4bb672(_0x5877b5._0x11ffec,0x21,_0x5877b5._0x2d5c50,_0x5877b5._0x91465d)](this[_0x4bb672(0xaa,-_0x5877b5._0x487401,_0x5877b5._0x3c2545,-_0x5877b5._0x5b5563)],_0x2e5ee9[_0x4bb672(_0x5877b5._0x38a030,-0x1d,0x82,-_0x5877b5._0x25bcdb)]),'credential':_0x3bcb07,'request':_0x127a3e,'session':_0x2e5ee9['session']};}[_0x42ffe3(0x58,0x55,0xd,-0x61)](_0x1ef207){const _0x54f0ae={_0x123687:0x5f4,_0x13d2ce:0x493,_0x5638d2:0x1d9,_0x275f53:0x1cb},_0x34498c={_0x585259:0x121};function _0xd72ced(_0x48713a,_0x5b8b0e,_0x2eb92a,_0x966cfd){return _0x42ffe3(_0x5b8b0e- -_0x34498c._0x585259,_0x5b8b0e-0x1db,_0x48713a,_0x966cfd-0x44);}function _0x25777a(_0x35e8c9,_0x4575b8,_0x49225a,_0x3497e0){return _0x5e5ba4(_0x35e8c9-0x95,_0x35e8c9,_0x49225a-0x1b3,_0x4575b8- -0x5);}return{...structuredClone(_0x1ef207),..._0x1ef207[_0x25777a(_0x54f0ae._0x123687,0x52e,0x5af,_0x54f0ae._0x13d2ce)]===void 0x0&&this[_0xd72ced(-_0x54f0ae._0x5638d2,-0x121,-0xa0,-_0x54f0ae._0x275f53)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};}async[_0x42ffe3(0x1f,-0x48,-0x76,0x3f)](_0x3be565,_0x2f0863,_0x289bee,_0x35f6ed={},_0x18c3ce=!![]){const _0x140b64={_0x5ef470:0x93,_0x841d64:0x2b7,_0x4de597:0x2e9,_0x35bb8a:0x22a,_0x2a18ad:0x2c,_0x44a60b:0xa4,_0x5287d3:0xe4,_0x3e89fb:0x7a,_0x375dff:0x3e,_0x20a314:0x2e1,_0x365116:0x262,_0x1034ad:0x300,_0x47babe:0x258,_0x23d4a3:0x1c5,_0x223a5d:0x28e,_0x29316b:0x1f0,_0x45b1bb:0x25e,_0x40deee:0x2b2,_0x8fea33:0x274,_0x39ea14:0x223,_0x3ea531:0x2a1,_0x34e1db:0x13b,_0xb7efae:0x5e,_0x3fb41d:0x260,_0x20a63d:0x21d,_0x10fdcd:0x29c,_0x922349:0x1d2,_0x34e0c1:0x308,_0x1c8ddc:0x37e,_0x30990a:0x1fe,_0x14dfe7:0x1e1,_0x4bd159:0x2b0,_0x4a915c:0x4d,_0x43010f:0x6b,_0x1e8847:0x6b,_0x449609:0x5e},{signal:_0x1d9c34}=_0x35f6ed,_0x19ed29=async()=>{const _0x39ec0a={_0x952a66:0x170},_0x305467=await this[_0x194a9f(-0xb4,-0x11f,-_0x140b64._0x5ef470,-0x7e)](_0x3be565,_0x1d9c34);let _0x5da21d;try{_0x5da21d=_0x2f0863[_0xb82c4f(_0x140b64._0x841d64,_0x140b64._0x4de597,0x307,_0x140b64._0x35bb8a)](_0x305467[_0x194a9f(0x55,-_0x140b64._0x2a18ad,-_0x140b64._0x44a60b,-0x62)]);}catch(_0x18ec72){if(_0x18ec72 instanceof Error)throw new ProviderRequestConstructionError(_0x18ec72[_0x194a9f(0x80,-_0x140b64._0x5287d3,_0x140b64._0x3e89fb,-_0x140b64._0x375dff)]);throw _0x18ec72;}function _0xb82c4f(_0x42c841,_0x469db8,_0x1e13ef,_0x8b3129){return _0x5b07(_0x469db8-0x150,_0x1e13ef);}if(!_0x5da21d[_0xb82c4f(0x258,_0x140b64._0x20a314,0x3b1,0x317)])throw new ProviderRequestConstructionError(_0xb82c4f(_0x140b64._0x365116,_0x140b64._0x1034ad,0x237,0x2d1)+_0x2f0863['id']+'\x20did\x20not\x20provide\x20an\x20HTTP\x20path');const _0x27578a=await this[_0xb82c4f(0x25c,_0x140b64._0x47babe,_0x140b64._0x23d4a3,_0x140b64._0x223a5d)]({'request':_0x305467[_0xb82c4f(_0x140b64._0x29316b,_0x140b64._0x45b1bb,_0x140b64._0x40deee,0x1e6)],'body':_0x5da21d['body'],'credential':_0x305467['credential'],'session':_0x305467[_0xb82c4f(_0x140b64._0x8fea33,_0x140b64._0x39ea14,0x29c,0x1c9)],'stream':_0x289bee},{'accept':_0x5da21d['accept']??(_0x289bee?_0xb82c4f(0x12e,0x1d1,_0x140b64._0x3ea531,_0x140b64._0x34e1db):'application/json'),'includeContentType':_0x5da21d[_0x194a9f(0x3,0x103,0x128,_0x140b64._0xb7efae)]!==void 0x0});function _0x194a9f(_0x4283c1,_0x25eeb7,_0x4a2b89,_0x3276f9){return _0x5b07(_0x3276f9- -_0x39ec0a._0x952a66,_0x25eeb7);}for(const [_0x4b9d80,_0x351b0c]of Object[_0xb82c4f(_0x140b64._0x3fb41d,_0x140b64._0x20a63d,0x2c8,0x21a)](_0x5da21d[_0xb82c4f(_0x140b64._0x10fdcd,_0x140b64._0x922349,0x144,0x1f5)]??{})){_0x27578a[_0xb82c4f(0x26f,_0x140b64._0x34e0c1,_0x140b64._0x1c8ddc,0x3b3)](_0x4b9d80,_0x351b0c);}return this[_0xb82c4f(0x21f,0x27a,0x247,0x1d1)](''+_0x305467[_0xb82c4f(_0x140b64._0x30990a,_0x140b64._0x14dfe7,0x119,_0x140b64._0x4bd159)]+_0x5da21d[_0x194a9f(0x81,-0x4d,_0x140b64._0x4a915c,0x21)],{'method':_0xb82c4f(0x335,0x317,0x37a,0x2fc),'headers':_0x27578a,..._0x5da21d['body']!==void 0x0?{'body':JSON['stringify'](_0x5da21d[_0x194a9f(0x10,_0x140b64._0x43010f,-_0x140b64._0x1e8847,_0x140b64._0x449609)])}:{},'signal':_0x1d9c34});};function _0x447df3(_0x5a2579,_0x574640,_0x23f14b,_0x1d88c4){return _0x5e5ba4(_0x5a2579-0x13d,_0x5a2579,_0x23f14b-0x36,_0x23f14b- -0x6c2);}return _0x18c3ce?await this[_0x447df3(-0x21c,-0x112,-0x155,-0x1ce)](_0x19ed29,_0x35f6ed):await _0x19ed29();}async*[_0x5e5ba4(0x498,0x41d,0x4db,0x463)](_0x473e45,_0x57fc64,_0x3c9569={}){const _0x5201fb={_0x3edb83:0x53f,_0x3c95c8:0x404,_0x45d94c:0x474,_0x21d591:0x30d,_0x1b1991:0x38c,_0x195553:0xc6,_0xf11d41:0x177,_0x4ffce7:0x528,_0x5aad35:0x4a8,_0x272657:0x20b,_0x1321ea:0x2a6,_0x28e909:0x293,_0x5b11b1:0x490,_0xe8f1a0:0x43d,_0x2e414b:0x4dd,_0x1e66e5:0x32b,_0x53005b:0x35b,_0x2c37e6:0x46d,_0x30878c:0x4f9,_0x4ac087:0x47b,_0x4e700c:0x435,_0x561ced:0x448,_0x1ff2f6:0x421,_0x3e3389:0x10d,_0x1ee33e:0x196},_0x3cab0b={_0x2427b8:0x152,_0x5b9e7a:0x90},_0x45f4c7={_0x39f5d0:0x1e7,_0x175e78:0x57,_0x499dd5:0x675},{signal:_0x3149c3}=_0x3c9569;function _0xad3006(_0x4f296d,_0x3b9755,_0x461738,_0x288f5b){return _0x5e5ba4(_0x4f296d-_0x45f4c7._0x39f5d0,_0x461738,_0x461738-_0x45f4c7._0x175e78,_0x3b9755- -_0x45f4c7._0x499dd5);}function _0x3406b5(_0x4b5736,_0x3ca30f,_0x21a52f,_0x4f970d){return _0x42ffe3(_0x21a52f-0x455,_0x3ca30f-_0x3cab0b._0x2427b8,_0x4f970d,_0x4f970d-_0x3cab0b._0x5b9e7a);}for(let _0x12a3ba=0x0;_0x12a3ba<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x12a3ba+=0x1){let _0x1cce32=![];try{const _0x363f9e=await this[_0x3406b5(_0x5201fb._0x3edb83,_0x5201fb._0x3c95c8,_0x5201fb._0x45d94c,0x499)](_0x473e45,_0x57fc64,!![],_0x3c9569,![]);if(!_0x363f9e['ok'])throw await this['toApiError'](_0x363f9e);const _0x1dc387=_0x57fc64[_0x3406b5(0x45f,0x467,0x3cf,0x42b)]?.(_0x473e45);if(!_0x1dc387?.[_0x3406b5(0x2e6,_0x5201fb._0x21d591,_0x5201fb._0x1b1991,0x3e7)])throw new Error(_0xad3006(-_0x5201fb._0x195553,-0x10e,-0x177,-_0x5201fb._0xf11d41)+_0x57fc64['id']+_0x3406b5(_0x5201fb._0x4ffce7,0x4b1,_0x5201fb._0x5aad35,0x578));for await(const _0xd7ae06 of iterateSseEvents(_0x363f9e,_0x3149c3)){const _0x1cd2fa=_0x1dc387[_0xad3006(-0x135,-_0x5201fb._0x272657,-_0x5201fb._0x1321ea,-_0x5201fb._0x28e909)](_0xd7ae06);for(const _0x55e72b of _0x1cd2fa){_0x1cce32=!![],yield _0x55e72b;}}yield{'type':_0x3406b5(_0x5201fb._0x5b11b1,_0x5201fb._0xe8f1a0,_0x5201fb._0x2e414b,0x4b0),'response':_0x1dc387['finish']()};return;}catch(_0x300e98){if(_0x1cce32||!this['shouldRetryStreamAttemptError'](_0x300e98)||_0x12a3ba===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x300e98;const _0x2769d3=this[_0x3406b5(_0x5201fb._0x1e66e5,_0x5201fb._0x53005b,0x3ae,_0x5201fb._0x2c37e6)](void 0x0,_0x12a3ba),_0x382a40={'type':_0x3406b5(_0x5201fb._0x30878c,0x527,_0x5201fb._0x4ac087,_0x5201fb._0x4e700c),'attempt':_0x12a3ba+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x300e98 instanceof Error?_0x300e98[_0x3406b5(0x4cd,_0x5201fb._0x561ced,0x40b,_0x5201fb._0x1ff2f6)]:String(_0x300e98),'delayMs':_0x2769d3,'reason':this[_0xad3006(-_0x5201fb._0x3e3389,-0x13d,-0xbc,-0x127)](_0x300e98)?'transport_error':_0xad3006(-_0x5201fb._0x1ee33e,-0x247,-0x308,-0x2f8)};yield _0x382a40,await this['waitForRetry'](_0x2769d3,_0x3149c3);}}}async*[_0x5e5ba4(0x393,0x41f,0x475,0x452)](_0x53a4ce,_0x5dd487,_0x26e88c){const _0x1743bb={_0x22de98:0xe0,_0x196b2b:0x151,_0x144630:0x576,_0x1e2987:0x53c,_0xd43e0d:0x519,_0x18e75d:0x621,_0x3050bc:0x548,_0x421406:0x1a8,_0x3b2613:0x1dd,_0x1ad9f4:0x231,_0x166e1b:0x202,_0x52b77a:0x1ee,_0x135024:0x14b,_0x2903ba:0x25f,_0x1ea73a:0x1f0,_0x40cd44:0x118,_0x5aff5f:0x197,_0x21e6c3:0x587,_0x4a8537:0x49b,_0x436ea4:0x1e0,_0xf35b86:0xd0,_0x56064f:0x69,_0x490301:0x5c,_0x5df773:0x113,_0x4079d7:0x44d,_0x278812:0x5a3,_0x144657:0x648,_0xf3beea:0x14f,_0xd321c8:0x1ed,_0x1fa172:0x1d0,_0x2dca81:0x136,_0x1e6fa7:0x1b7,_0xa691a8:0xef,_0x10425e:0x9c,_0x27db66:0x199,_0x5bc339:0x132,_0x4a3148:0x5e,_0x8ee0d2:0x1b1,_0x3018f2:0xce,_0x36cbbc:0xe1,_0xa9b9fd:0x117,_0x3b0998:0x140,_0x396549:0x137,_0x40640d:0x4eb,_0xa0ab9c:0x40e,_0x2cd579:0x40f,_0x3aea2f:0x4ba,_0x4f9061:0x1a9,_0x41e759:0x18d,_0x543f1f:0x11c,_0x5422a1:0x111,_0x1c0a91:0x14c,_0x2d862f:0x468,_0x2d4bad:0x532,_0x43fc1c:0x4c3,_0xe40ed3:0x4ea,_0x20a97a:0x2b1,_0x49e06c:0x261,_0x61866:0xd2,_0x5aad56:0xef,_0x50b10f:0x13a,_0xd8efb1:0x19b,_0x90ee19:0x5bd,_0xcf8e0e:0x507,_0x51ffdc:0x172,_0x2c9390:0x5b7,_0x2d3002:0x1e8,_0x175eca:0x2b5,_0x1a8d2d:0x263,_0x17d8b6:0x140,_0x4b3fd9:0x11e,_0x4f6eae:0xb6,_0x4bdfbf:0x4e2,_0x409084:0x421,_0x4460ef:0x590,_0x212c30:0x590,_0x3fa865:0x104,_0x351c:0x1ee,_0x1177a7:0x1a9},_0x302a5e={_0x44584c:0x559,_0x3b23d6:0x63},_0x3a7efc=await this[_0x24d650(_0x1743bb._0x22de98,0x209,0x1af,_0x1743bb._0x196b2b)](_0x53a4ce,_0x26e88c);function _0x4d4cc4(_0x5d4507,_0xfd6a9c,_0x521ef0,_0x2c44b6){return _0x42ffe3(_0x5d4507-_0x302a5e._0x44584c,_0xfd6a9c-_0x302a5e._0x3b23d6,_0x521ef0,_0x2c44b6-0x1ab);}const _0x229072=_0x5dd487[_0x4d4cc4(_0x1743bb._0x144630,_0x1743bb._0x1e2987,_0x1743bb._0xd43e0d,_0x1743bb._0x18e75d)](_0x3a7efc['request']),_0xd98ff3=_0x5dd487['createStreamParser']?.(_0x53a4ce);if(!_0xd98ff3?.[_0x4d4cc4(0x5a9,_0x1743bb._0x3050bc,0x597,0x659)])throw new Error(_0x24d650(_0x1743bb._0x421406,_0x1743bb._0x3b2613,0x26a,0x20f)+_0x5dd487['id']+_0x24d650(_0x1743bb._0x1ad9f4,_0x1743bb._0x166e1b,_0x1743bb._0x52b77a,0x1ee));const _0x55eaa0=_0x229072['url']??(_0x229072[_0x24d650(_0x1743bb._0x135024,_0x1743bb._0x2903ba,0x132,_0x1743bb._0x1ea73a)]?(''+_0x3a7efc[_0x24d650(_0x1743bb._0x40cd44,0x18f,_0x1743bb._0x5aff5f,0xf0)]+_0x229072[_0x4d4cc4(0x56e,_0x1743bb._0x21e6c3,_0x1743bb._0x4a8537,0x62a)])[_0x24d650(_0x1743bb._0x436ea4,_0x1743bb._0xf35b86,_0x1743bb._0x56064f,0x113)](/^http:/,'ws:')[_0x24d650(0xbc,0x44,_0x1743bb._0x490301,_0x1743bb._0x5df773)](/^https:/,_0x4d4cc4(0x4b8,0x45b,_0x1743bb._0x1e2987,_0x1743bb._0x4079d7)):void 0x0);if(!_0x55eaa0)throw new ProviderRequestConstructionError(_0x4d4cc4(0x58d,_0x1743bb._0x278812,0x4d9,_0x1743bb._0x144657)+_0x5dd487['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x2fa044=await this[_0x4d4cc4(0x4e5,0x438,0x544,0x57b)]({'request':_0x3a7efc[_0x24d650(_0x1743bb._0xf3beea,_0x1743bb._0xd321c8,_0x1743bb._0x1fa172,0x16d)],'body':_0x229072[_0x24d650(0x64,_0x1743bb._0x2dca81,_0x1743bb._0x1e6fa7,_0x1743bb._0xa691a8)],'credential':_0x3a7efc['credential'],'session':_0x3a7efc[_0x24d650(_0x1743bb._0x10425e,_0x1743bb._0x27db66,0xad,_0x1743bb._0x5bc339)],'stream':!![]},{'accept':_0x229072[_0x24d650(_0x1743bb._0x4a3148,0x1a9,_0x1743bb._0x8ee0d2,0x104)]??'application/json','includeContentType':![]});function _0x24d650(_0x38fdce,_0x317126,_0x179a8c,_0x5c81b1){return _0x5e5ba4(_0x38fdce-0x14a,_0x179a8c,_0x179a8c-0xb3,_0x5c81b1- -0x358);}for(const [_0x506cf5,_0x50d9ad]of Object['entries'](_0x229072[_0x24d650(0x3b,_0x1743bb._0x3018f2,0xb7,_0x1743bb._0x36cbbc)]??{})){_0x2fa044['set'](_0x506cf5,_0x50d9ad);}_0x2fa044[_0x24d650(_0x1743bb._0xa9b9fd,_0x1743bb._0x3b0998,0xf5,_0x1743bb._0x396549)](_0x4d4cc4(0x482,_0x1743bb._0x40640d,_0x1743bb._0xa0ab9c,_0x1743bb._0x2cd579));const _0x583db1=this[_0x4d4cc4(0x4b3,_0x1743bb._0x3aea2f,0x4f1,0x4fa)]({'headers':Object[_0x24d650(_0x1743bb._0x4f9061,0x8e,_0x1743bb._0x41e759,_0x1743bb._0x543f1f)](_0x2fa044[_0x24d650(0x16b,_0x1743bb._0x5422a1,_0x1743bb._0x1c0a91,0x12c)]()),'url':_0x55eaa0});try{throwIfAborted(_0x26e88c);_0x583db1[_0x4d4cc4(_0x1743bb._0x2d862f,_0x1743bb._0x2d4bad,_0x1743bb._0x43fc1c,_0x1743bb._0xe40ed3)]!==WebSocket[_0x24d650(0x1e5,0x215,_0x1743bb._0x20a97a,_0x1743bb._0x49e06c)]&&await waitForWebSocketOpen(_0x583db1,_0x26e88c);throwIfAborted(_0x26e88c);_0x229072[_0x24d650(0x1ab,0x5e,_0x1743bb._0x61866,_0x1743bb._0x5aad56)]!==void 0x0&&_0x583db1[_0x24d650(_0x1743bb._0x50b10f,0x24a,0x143,_0x1743bb._0xd8efb1)](JSON[_0x4d4cc4(0x525,0x4b3,_0x1743bb._0x90ee19,_0x1743bb._0xcf8e0e)](_0x229072[_0x24d650(_0x1743bb._0x10425e,0x114,_0x1743bb._0x51ffdc,_0x1743bb._0x5aad56)]));for await(const _0x1e5011 of iterateWebSocketMessages(_0x583db1,_0x26e88c)){yield*_0xd98ff3['consumeWebSocketEvent'](_0x1e5011);if(_0xd98ff3[_0x4d4cc4(0x4e4,0x462,0x4d9,_0x1743bb._0x2c9390)]?.())break;}yield{'type':_0x24d650(0x2fd,_0x1743bb._0x2d3002,_0x1743bb._0x175eca,_0x1743bb._0x1a8d2d),'response':_0xd98ff3[_0x24d650(_0x1743bb._0x17d8b6,0xa1,0x12a,_0x1743bb._0x4b3fd9)]()};}finally{_0x583db1[_0x24d650(_0x1743bb._0x4f6eae,0x18c,0x118,0xea)]===WebSocket['OPEN']&&_0x583db1[_0x4d4cc4(0x461,0x472,0x470,_0x1743bb._0x4bdfbf)](0x3e8,_0x26e88c?.[_0x4d4cc4(0x4d8,_0x1743bb._0x409084,_0x1743bb._0x4460ef,_0x1743bb._0x212c30)]?_0x24d650(_0x1743bb._0x3fa865,_0x1743bb._0x351c,_0x1743bb._0x1177a7,0x15a):'completed');}}};async function createHttpError(_0x1ee76a){const _0x4d6371={_0x3157dc:0x2eb,_0xc5ea85:0x3b1,_0xe8db7d:0x3c9,_0x566cb6:0x3af,_0x13a8a6:0x3a7,_0x2f200a:0x4a3,_0x3542e0:0x47d,_0x50aeaa:0x300},_0x338b2f={_0x1e5d03:0xb6},_0x59c689=await _0x1ee76a[_0xb8e782(_0x4d6371._0x3157dc,_0x4d6371._0xc5ea85,_0x4d6371._0xe8db7d,0x379)]();function _0x42dcfb(_0x35aa07,_0x450bd9,_0x31027e,_0x5ac4e9){return _0x5e5ba4(_0x35aa07-0x10e,_0x31027e,_0x31027e-0x22,_0x35aa07- -0x19);}const _0x5954a1=_0x59c689[_0xb8e782(0x446,_0x4d6371._0x566cb6,0x390,_0x4d6371._0x13a8a6)]()||_0x1ee76a[_0x42dcfb(_0x4d6371._0x2f200a,0x532,0x53a,0x432)]||'Unknown\x20provider\x20error';function _0xb8e782(_0x141c79,_0x52f275,_0x28fcab,_0xfc1ed9){return _0x5e5ba4(_0x141c79-0x105,_0x28fcab,_0x28fcab-_0x338b2f._0x1e5d03,_0x52f275- -0x135);}return new Error(_0xb8e782(0x46b,_0x4d6371._0x3542e0,0x4d5,0x441)+_0x1ee76a[_0xb8e782(0x35d,0x320,_0x4d6371._0x50aeaa,0x250)]+':\x20'+_0x5954a1);}var AnthropicProviderAdapter=class{['authScheme'];['headerResolver'];['protocolVersion'];constructor(_0x5a5840){const _0x52c32f={_0x372c4b:0x24b,_0x558390:0xe0,_0x49fc28:0xfd,_0x4f025c:0x192,_0x2a6e1e:0x1d3,_0x44b61a:0x286,_0x34e88c:0x292,_0x16fd56:0x2e8,_0x48903e:0x24c,_0x578584:0x2b6,_0x3863b1:0x25e,_0x54d8c2:0x1f4,_0x3797f4:0x205,_0x201363:0x1e1,_0x20aa4f:0x2c8},_0x4b1ffd={_0x1cf7d2:0x18e,_0x2d12a6:0x2cf},_0x11eae0={_0xa61a66:0x6e};function _0x393562(_0x11e34c,_0x56f93f,_0x3520e9,_0x536a0a){return _0x5e5ba4(_0x11e34c-_0x11eae0._0xa61a66,_0x11e34c,_0x3520e9-0x6f,_0x56f93f- -0x734);}this[_0x345914(0x2b9,0x38e,0x2cf,_0x52c32f._0x372c4b)]=_0x5a5840[_0x393562(-_0x52c32f._0x558390,-0x1ac,-_0x52c32f._0x49fc28,-_0x52c32f._0x4f025c)];function _0x345914(_0x107852,_0x4ecff4,_0x36d22a,_0xf66d3e){return _0x5e5ba4(_0x107852-_0x4b1ffd._0x1cf7d2,_0x4ecff4,_0x36d22a-0xcf,_0x107852- -_0x4b1ffd._0x2d12a6);}this[_0x393562(-0x11a,-_0x52c32f._0x2a6e1e,-_0x52c32f._0x44b61a,-0x17e)]=_0x5a5840[_0x345914(_0x52c32f._0x34e88c,_0x52c32f._0x16fd56,_0x52c32f._0x48903e,0x254)],this[_0x393562(-_0x52c32f._0x578584,-0x205,-0x27a,-_0x52c32f._0x3863b1)]=_0x5a5840[_0x393562(-_0x52c32f._0x54d8c2,-_0x52c32f._0x3797f4,-_0x52c32f._0x201363,-_0x52c32f._0x20aa4f)];}[_0x5e5ba4(0x511,0x5b5,0x613,0x5c0)](){return new Error('AnthropicModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x5e5ba4(0x51c,0x415,0x55a,0x4bf)](_0x2709ca,_0x113594){const _0x14725e={_0x3e35ec:0x108,_0x1f772d:0xd5,_0x1d733f:0x154,_0x1f7948:0x21b,_0x52379a:0x11e,_0x4eabb4:0x55,_0x582c1e:0xe1,_0x38799f:0xf7,_0x30c165:0x156,_0x3c0369:0x91,_0x45d1e4:0xf1,_0x150042:0x15d,_0x77eb61:0x3c3,_0x5f2540:0x3bf,_0x13383b:0x108,_0x4ee8e0:0x183,_0xe28960:0x118,_0x616040:0x462,_0x1c4e14:0x3e5,_0x167d3b:0x189,_0x251296:0x1d1,_0x553b2a:0x102,_0x3c6669:0x89,_0x5d040d:0x11f,_0x2197bf:0x395,_0x18b50c:0x4b0,_0x518c9f:0x4cd,_0x54e2b3:0xa3,_0x46c523:0x12a,_0x58ccd2:0x44f,_0x1a60bd:0x441,_0x459fb1:0x1f3,_0x50ce08:0x1ed,_0x31a52e:0x148},_0x2cbc3c={_0x545408:0x88},_0x34edfb={_0x563ff3:0x1d8,_0x45f11c:0x677},_0x58b4c9=new Headers();_0x58b4c9[_0x1362c6(-_0x14725e._0x3e35ec,-_0x14725e._0x1f772d,-_0x14725e._0x1d733f,-0xfd)]('accept',_0x113594[_0x1362c6(-_0x14725e._0x1f7948,-0x2e8,-0x2b5,-0x1f8)]),_0x58b4c9[_0x1362c6(-_0x14725e._0x3e35ec,-0xed,-_0x14725e._0x52379a,-_0x14725e._0x4eabb4)](_0x1362c6(-_0x14725e._0x582c1e,-0x142,-0x32,-_0x14725e._0x38799f),this[_0x1362c6(-0x148,-0x21a,-_0x14725e._0x30c165,-_0x14725e._0x3c0369)]);_0x113594['includeContentType']!==![]&&_0x58b4c9['set'](_0x1362c6(-0x212,-0x19d,-0x292,-0x258),'application/json');this[_0x1362c6(-0xef,-_0x14725e._0x45d1e4,-0x141,-_0x14725e._0x150042)]===_0x13d58a(_0x14725e._0x77eb61,0x492,_0x14725e._0x5f2540,0x3fb)?_0x58b4c9[_0x1362c6(-_0x14725e._0x13383b,-_0x14725e._0x4ee8e0,-_0x14725e._0xe28960,-0xcc)](_0x13d58a(0x45c,_0x14725e._0x616040,0x4c0,_0x14725e._0x1c4e14),_0x1362c6(-_0x14725e._0x167d3b,-0x18f,-_0x14725e._0x251296,-_0x14725e._0x553b2a)+_0x2709ca[_0x1362c6(-0x141,-0xd0,-_0x14725e._0x3c6669,-_0x14725e._0x5d040d)][_0x13d58a(_0x14725e._0x2197bf,0x3f8,_0x14725e._0x18b50c,0x4c7)]):_0x58b4c9[_0x13d58a(0x504,0x4c4,0x42c,_0x14725e._0x518c9f)]('x-api-key',_0x2709ca['credential']['value']);const _0x2e4900=await this[_0x1362c6(-0x116,-_0x14725e._0x54e2b3,-0xf3,-_0x14725e._0x46c523)]?.({'body':_0x2709ca[_0x13d58a(_0x14725e._0x58ccd2,0x4da,0x45a,_0x14725e._0x1a60bd)],'credential':_0x2709ca[_0x1362c6(-0x141,-_0x14725e._0x459fb1,-0x1e8,-0x176)],'request':_0x2709ca['request'],'session':_0x2709ca[_0x1362c6(-_0x14725e._0x50ce08,-0x1a2,-0x1ae,-0x215)],'stream':_0x2709ca['stream']});for(const [_0x32fb61,_0x1e5780]of Object['entries'](_0x2e4900??{})){_0x58b4c9[_0x1362c6(-0x108,-0x131,-_0x14725e._0x31a52e,-0xdb)](_0x32fb61,_0x1e5780);}function _0x1362c6(_0x4ab3df,_0x3393ac,_0x2b47a3,_0x34f4b9){return _0x5e5ba4(_0x4ab3df-_0x34edfb._0x563ff3,_0x3393ac,_0x2b47a3-0x11,_0x4ab3df- -_0x34edfb._0x45f11c);}function _0x13d58a(_0x4438f7,_0x58876a,_0x4ae2a9,_0x1e771e){return _0x42ffe3(_0x58876a-0x488,_0x58876a-0x126,_0x1e771e,_0x1e771e-_0x2cbc3c._0x545408);}return _0x58b4c9;}[_0x5e5ba4(0x469,0x500,0x598,0x50b)](_0x25ad3d){return _0x25ad3d;}[_0x5e5ba4(0x43b,0x483,0x4ba,0x451)](_0x300ef8,_0x392d74){return resolveSessionBaseUrl(_0x300ef8,_0x392d74);}[_0x42ffe3(0x57,0x7,0x6c,0x16)](_0x37c498,_0x2710eb){return resolveApiCredential(_0x37c498,_0x2710eb);}async[_0x5e5ba4(0x5bb,0x53b,0x56f,0x532)](_0xd9a202){return await createHttpError(_0xd9a202);}},AnthropicModel=class extends RoutedModel{constructor(_0x2e965a={}){const _0x1a6e47={_0xd129b9:0x5e,_0x440515:0x11f,_0xebd9f3:0x150,_0x44fd7a:0x17c,_0x2d89d8:0x186,_0x9fa786:0xee,_0x2d9ad4:0x60,_0x2d15af:0x110,_0x532ecc:0x136,_0x464b49:0x84,_0x28e07b:0x11c,_0x272b08:0x1a3,_0x360112:0x14e,_0xc24a9f:0x106,_0x5c1da4:0x18e,_0x3ae1a9:0x159,_0x217f78:0x167,_0x1669de:0x15,_0x38042d:0xba,_0x488360:0x1,_0x404d32:0x82,_0x28551c:0xb9,_0x1c85ad:0x12d,_0x206bb1:0xbc,_0x1badd6:0x9c},_0x55d552={_0x240590:0x39,_0x157a6b:0x16c,_0x6e358a:0x480},_0x15e9cb={_0x5c6727:0x139};function _0x2455e5(_0x1dc8f2,_0x177a47,_0x86e70c,_0x369d9a){return _0x42ffe3(_0x369d9a-_0x15e9cb._0x5c6727,_0x177a47-0x184,_0x86e70c,_0x369d9a-0xb6);}function _0x18a5e3(_0x5b2345,_0x329c0c,_0x26f8d7,_0x5f5a30){return _0x5e5ba4(_0x5b2345-_0x55d552._0x240590,_0x26f8d7,_0x26f8d7-_0x55d552._0x157a6b,_0x5b2345- -_0x55d552._0x6e358a);}super({'apiKey':_0x2e965a['apiKey'],'baseUrl':trimTrailingSlashes(_0x2e965a['baseUrl']??_0x2455e5(0x105,0x186,0xce,0x198)),'fetch':_0x2e965a[_0x18a5e3(0xd7,0x2c,_0x1a6e47._0xd129b9,_0x1a6e47._0x440515)],'maxTokens':_0x2e965a[_0x18a5e3(_0x1a6e47._0xebd9f3,_0x1a6e47._0x44fd7a,_0x1a6e47._0x2d89d8,_0x1a6e47._0x9fa786)]??0x4000,'model':_0x2e965a[_0x2455e5(0x1d5,0x189,_0x1a6e47._0x2d9ad4,_0x1a6e47._0x2d15af)]??_0x2455e5(0x49,_0x1a6e47._0x532ecc,_0x1a6e47._0x464b49,_0x1a6e47._0x28e07b),'reasoning':_0x2e965a['reasoning'],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x2e965a[_0x2455e5(_0x1a6e47._0x272b08,_0x1a6e47._0x360112,_0x1a6e47._0xc24a9f,_0x1a6e47._0x5c1da4)]??_0x2455e5(-0x41,0x52,-0x37,0x84),'headerResolver':_0x2e965a[_0x2455e5(_0x1a6e47._0x3ae1a9,0x21e,0x22d,_0x1a6e47._0x217f78)],'protocolVersion':_0x2e965a['protocolVersion']??_0x2455e5(0xb1,_0x1a6e47._0x1669de,0x53,_0x1a6e47._0x38042d)}),'providerSessionResolver':_0x2e965a[_0x18a5e3(-_0x1a6e47._0x488360,-_0x1a6e47._0x404d32,-_0x1a6e47._0x28551c,0x1f)],'requestMutators':_0x2e965a[_0x2455e5(_0x1a6e47._0x1c85ad,_0x1a6e47._0x206bb1,0x10f,_0x1a6e47._0x1badd6)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x42ffe3(-0xbb,0x13,0x4,-0x4b)](_0x4b3da5,_0x3e5ae7){const _0x5462a9={_0x2a3c18:0x16d,_0x31d62b:0xfc},_0x5b1b11={_0x5ab993:0x1b8,_0x1e2a59:0xb9,_0x15a0af:0xc2};function _0x1c05ad(_0x4e1a04,_0x4914c5,_0x5c3d3d,_0x3abe4d){return _0x42ffe3(_0x4914c5-_0x5b1b11._0x5ab993,_0x4914c5-_0x5b1b11._0x1e2a59,_0x4e1a04,_0x3abe4d-_0x5b1b11._0x15a0af);}return this[_0x1c05ad(0x9a,_0x5462a9._0x2a3c18,_0x5462a9._0x31d62b,0x1ed)](_0x4b3da5,ANTHROPIC_MESSAGES_SURFACE,_0x3e5ae7);}[_0x5e5ba4(0x5f0,0x66b,0x5a1,0x5b5)](_0x56187f,_0x2557e5){const _0x26550c={_0x1c0821:0x217},_0x581629={_0x25407b:0x157};function _0xc7f0c3(_0x5e3cc4,_0x1c03d4,_0x3c804c,_0x40a1b1){return _0x5e5ba4(_0x5e3cc4-_0x581629._0x25407b,_0x1c03d4,_0x3c804c-0xa1,_0x5e3cc4- -0x5d7);}return this[_0xc7f0c3(-0x15d,-_0x26550c._0x1c0821,-0x1f7,-0xd5)](_0x56187f,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x2557e5);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x5e5ba4(0x5a4,0x4ab,0x4d9,0x4f1),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x42ffe3(-0x109,-0xac,-0xa7,-0x7c),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x5e5ba4(0x49c,0x5bc,0x51d,0x525),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x42ffe3(-0x82,-0x12b,-0xbd,-0x116),OpenAiApiError=class extends Error{[_0x42ffe3(-0xde,-0xc2,-0xa5,-0x154)];[_0x5e5ba4(0x4bf,0x4b2,0x640,0x585)];constructor(_0x3a5113,_0x4abd4d,_0x560c1b){const _0x38397c={_0x38ead2:0x254,_0x192ba5:0x19f,_0x34fece:0x1ae},_0x149b4e={_0x50edd1:0xc1};super(_0x560c1b),this['name']='OpenAiApiError',this[_0x20128e(-_0x38397c._0x38ead2,-_0x38397c._0x192ba5,-_0x38397c._0x34fece,-0x25e)]=_0x3a5113;function _0x20128e(_0x17b4ab,_0x162fe8,_0x1e0218,_0x27b76f){return _0x42ffe3(_0x162fe8- -_0x149b4e._0x50edd1,_0x162fe8-0x30,_0x27b76f,_0x27b76f-0x9);}this['body']=_0x4abd4d;}};function stringifySystem(_0x2f1917){const _0x28dbf4={_0x27dcd4:0x1a};function _0x38e04e(_0xa1d7f1,_0x27a17e,_0x28eb5e,_0x105cc5){return _0x5e5ba4(_0xa1d7f1-_0x28dbf4._0x27dcd4,_0xa1d7f1,_0x28eb5e-0xaf,_0x105cc5- -0x41);}return _0x2f1917['map'](_0x28615c=>_0x28615c[_0x38e04e(0x436,0x40a,0x4dd,0x4a5)])['join']('\x0a\x0a');}function createToolDefinitions(_0x2ab589){const _0x368c3a={_0x385dd4:0x198,_0x5cea7e:0x16a},_0x2cf073={_0x328b38:0x24b,_0x2d6133:0x435,_0x307ce4:0x486,_0x49210a:0x4dc,_0x205b24:0x22},_0x40c4d9={_0x33f50a:0x4},_0x1bb281={_0x36d055:0x101,_0xabeffa:0x64c};function _0x137805(_0x399c46,_0x17ef84,_0x14e6b2,_0x42b310){return _0x42ffe3(_0x14e6b2-0x27d,_0x17ef84-0x156,_0x399c46,_0x42b310-0x4c);}if(_0x2ab589[_0xb7f7fb(-_0x368c3a._0x385dd4,-0x1cd,-0x1e2,-_0x368c3a._0x5cea7e)]===0x0)return void 0x0;function _0xb7f7fb(_0x32e18a,_0x200535,_0x1dad06,_0x567906){return _0x5e5ba4(_0x32e18a-0x6c,_0x32e18a,_0x1dad06-_0x1bb281._0x36d055,_0x567906- -_0x1bb281._0xabeffa);}return _0x2ab589[_0x137805(0x160,0x219,0x226,0x2f9)](_0x530af6=>{const _0x4670ba={_0xfa9bf2:0x63b};function _0x3ee920(_0x3d95ab,_0x5aaa35,_0x503a93,_0x14ad04){return _0x137805(_0x5aaa35,_0x5aaa35-_0x40c4d9._0x33f50a,_0x14ad04- -0x176,_0x14ad04-0x1c9);}function _0x1ad0f2(_0x160144,_0x1f45f5,_0x23a835,_0x17b617){return _0xb7f7fb(_0x160144,_0x1f45f5-0x8e,_0x23a835-0x143,_0x1f45f5-_0x4670ba._0xfa9bf2);}return{'type':_0x3ee920(_0x2cf073._0x328b38,0x177,0x211,0x17c),'function':{'name':_0x530af6[_0x1ad0f2(_0x2cf073._0x2d6133,_0x2cf073._0x307ce4,_0x2cf073._0x49210a,0x535)],'description':_0x530af6[_0x3ee920(-_0x2cf073._0x205b24,0xa0,0x5c,0x9a)],'parameters':_0x530af6['input_schema']}};});}function isImageToolResultBlock(_0x184597){const _0x3166cc={_0x2aa13d:0x613,_0x4443b1:0x49f,_0x57d888:0x4cb,_0x3d2f7b:0x46d,_0x20c629:0x562,_0x492038:0x4c0,_0x4f3941:0x5a1,_0x5365db:0x5a7,_0x143b8b:0x4ca,_0x3ab0e4:0x57c,_0x5c3adb:0x344,_0x3a4d85:0x298,_0x2b3e75:0x3a2,_0x282b27:0x54d,_0x53a78b:0x542,_0x4ab65a:0x599,_0x481247:0x5de,_0x1fae6a:0x475,_0x4fa663:0x43e,_0x41e1dd:0x50c,_0x216f38:0x441},_0x5cd1e4={_0x52b60d:0x11c,_0xe091bb:0x233},_0x3325e9={_0x455951:0x179};function _0x39b206(_0x4ab66b,_0x319670,_0x323768,_0x55bd49){return _0x42ffe3(_0x323768-0x555,_0x319670-0x15c,_0x4ab66b,_0x55bd49-_0x3325e9._0x455951);}if(typeof _0x184597!==_0x39b206(0x624,0x611,0x57e,_0x3166cc._0x2aa13d)||_0x184597===null||Array[_0x39b206(0x574,0x405,_0x3166cc._0x4443b1,_0x3166cc._0x57d888)](_0x184597))return![];function _0x58f060(_0x5778b2,_0x34f563,_0x259b61,_0x3f1ad6){return _0x5e5ba4(_0x5778b2-0x94,_0x5778b2,_0x259b61-_0x5cd1e4._0x52b60d,_0x34f563- -_0x5cd1e4._0xe091bb);}const _0x2730bd=_0x184597;return _0x2730bd['type']===_0x39b206(_0x3166cc._0x3d2f7b,_0x3166cc._0x20c629,_0x3166cc._0x492038,0x43e)&&_0x2730bd[_0x39b206(0x526,_0x3166cc._0x4f3941,0x599,_0x3166cc._0x5365db)]?.[_0x39b206(_0x3166cc._0x143b8b,0x4b1,0x56d,_0x3166cc._0x3ab0e4)]==='base64'&&typeof _0x2730bd[_0x58f060(0x296,_0x3166cc._0x5c3adb,_0x3166cc._0x3a4d85,_0x3166cc._0x2b3e75)]['media_type']===_0x39b206(0x478,0x3c2,0x478,0x53a)&&typeof _0x2730bd[_0x39b206(_0x3166cc._0x282b27,_0x3166cc._0x53a78b,_0x3166cc._0x4ab65a,_0x3166cc._0x481247)][_0x39b206(0x419,0x3a6,_0x3166cc._0x1fae6a,0x499)]===_0x39b206(_0x3166cc._0x4fa663,_0x3166cc._0x41e1dd,0x478,_0x3166cc._0x216f38);}function getToolResultText(_0x2ccc24){const _0x563836={_0x530377:0x36c,_0x1d476a:0x2d2,_0x4155fa:0x357,_0x55516c:0xba,_0xa8e051:0x77,_0x45eba5:0x332,_0x4af8e2:0xd1,_0x2fea6e:0x194,_0x344ce2:0x2b1,_0x376fc6:0x36f,_0xea0907:0x3a9,_0x213160:0x405,_0xad48e3:0x37d},_0x112bc5={_0x2aa945:0x3c0,_0x2838ee:0x58},_0x2efcce={_0x299382:0x1f,_0x224b4b:0x14d,_0xad60ce:0x98,_0x16cd69:0x33,_0x479ea9:0x73},_0xe7cc86={_0x3f4291:0x1e2};function _0x14d8a5(_0x338a0c,_0x1050b4,_0x1758be,_0x8c1e5){return _0x42ffe3(_0x338a0c-0x111,_0x1050b4-0x18,_0x8c1e5,_0x8c1e5-_0xe7cc86._0x3f4291);}if(typeof _0x2ccc24===_0x3440b7(0x311,0x2e3,_0x563836._0x530377,0x274))return _0x2ccc24;const _0x10aa3a=_0x2ccc24[_0x3440b7(0x376,_0x563836._0x1d476a,0x303,_0x563836._0x4155fa)](_0x2b9bb7=>{const _0x25a237={_0x213ea6:0x1f2,_0x3ca2fc:0x192,_0x1f45d2:0x12e},_0x105750={_0x5c53b9:0x173,_0x46fca9:0xe8};function _0x1bd7d9(_0x592138,_0x4e84ee,_0x36dccd,_0x2fcaf4){return _0x14d8a5(_0x36dccd- -0x91,_0x4e84ee-_0x105750._0x5c53b9,_0x36dccd-_0x105750._0x46fca9,_0x2fcaf4);}function _0x128a16(_0x13dbc1,_0x18efb8,_0x47ffc1,_0x6f8cd6){return _0x3440b7(_0x18efb8,_0x13dbc1- -_0x25a237._0x213ea6,_0x47ffc1-_0x25a237._0x3ca2fc,_0x6f8cd6-_0x25a237._0x1f45d2);}return typeof _0x2b9bb7===_0x1bd7d9(-_0x2efcce._0x299382,-0x14,0xa9,0x143)&&_0x2b9bb7!==null&&_0x2b9bb7[_0x1bd7d9(_0x2efcce._0x224b4b,0x58,_0x2efcce._0xad60ce,0x160)]===_0x1bd7d9(0x3f,0x7,_0x2efcce._0x16cd69,-_0x2efcce._0x479ea9);})[_0x14d8a5(_0x563836._0x55516c,0x8f,0x97,_0x563836._0xa8e051)](_0x48060c=>_0x48060c[_0x14d8a5(0xc4,0xdb,0x18d,0x139)])[_0x3440b7(0x349,_0x563836._0x45eba5,0x392,0x263)]('\x0a\x0a')[_0x14d8a5(0xc2,0x7e,_0x563836._0x4af8e2,_0x563836._0x2fea6e)]();function _0x3440b7(_0x4ced5d,_0x1b7bed,_0x393f87,_0x547463){return _0x42ffe3(_0x1b7bed-_0x112bc5._0x2aa945,_0x1b7bed-0x6a,_0x4ced5d,_0x547463-_0x112bc5._0x2838ee);}return _0x10aa3a[_0x3440b7(_0x563836._0x344ce2,_0x563836._0x376fc6,_0x563836._0xea0907,0x347)]>0x0?_0x10aa3a:_0x3440b7(_0x563836._0x45eba5,_0x563836._0x213160,_0x563836._0xad48e3,0x454);}function getToolResultImages(_0x5dd47a){const _0x4d4f72={_0x54bff0:0x23d,_0x22a9af:0x1da,_0x26486:0x1f2},_0x4a85b0={_0xe3083a:0x159};function _0x2aad32(_0x2a549f,_0x5da285,_0x110fa9,_0x4d3998){return _0x42ffe3(_0x4d3998-0x2e0,_0x5da285-0x13f,_0x5da285,_0x4d3998-_0x4a85b0._0xe3083a);}return Array['isArray'](_0x5dd47a)?_0x5dd47a[_0x2aad32(0x1d4,_0x4d4f72._0x54bff0,_0x4d4f72._0x22a9af,_0x4d4f72._0x26486)](isImageToolResultBlock):[];}function parseToolInput2(_0x13f3a9){const _0x836bd={_0x49eca6:0x476,_0x1a5323:0x4e7,_0x51185e:0x4c4,_0x25a32d:0x49e},_0x56d384={_0x3193e1:0xe6};if(_0x13f3a9[_0x536245(0x3ce,0x3a5,_0x836bd._0x49eca6,_0x836bd._0x1a5323)]===0x0)return{};function _0x536245(_0x167338,_0x332ca1,_0x4e05a6,_0x12f8a){return _0x42ffe3(_0x4e05a6-0x4c7,_0x332ca1-0x10e,_0x12f8a,_0x12f8a-0xa7);}function _0x399f8d(_0x40ed98,_0x462898,_0x2f9463,_0x32daee){return _0x5e5ba4(_0x40ed98-0x5d,_0x2f9463,_0x2f9463-0x110,_0x462898- -_0x56d384._0x3193e1);}try{return JSON[_0x399f8d(_0x836bd._0x51185e,_0x836bd._0x25a32d,0x505,0x471)](_0x13f3a9);}catch{return _0x13f3a9;}}function isResponsesReasoningItem(_0xed229b){const _0x1a1a84={_0xf9beb4:0x411,_0x3e4505:0x4ac,_0x5ef3ad:0x411,_0x3e094a:0x380,_0x599a69:0x462},_0x382f53={_0x1f7783:0x193},_0x192f4c={_0x436d62:0x3f9,_0x49d01e:0xec};function _0x5e6bb3(_0x1de260,_0x55b9d9,_0x41105d,_0x4583d2){return _0x42ffe3(_0x4583d2-_0x192f4c._0x436d62,_0x55b9d9-0x1c4,_0x1de260,_0x4583d2-_0x192f4c._0x49d01e);}function _0x134a97(_0x3edd74,_0x40f3e2,_0x1555b4,_0x156732){return _0x5e5ba4(_0x3edd74-0x4c,_0x3edd74,_0x1555b4-_0x382f53._0x1f7783,_0x1555b4- -0x408);}return typeof _0xed229b==='object'&&_0xed229b!==null&&_0x5e6bb3(_0x1a1a84._0xf9beb4,_0x1a1a84._0x3e4505,0x37c,_0x1a1a84._0x5ef3ad)in _0xed229b&&_0xed229b[_0x5e6bb3(0x40f,_0x1a1a84._0x3e094a,_0x1a1a84._0x599a69,0x411)]==='reasoning';}function isResponsesMessageItem(_0x2aef35){const _0x36ad8d={_0x4925ea:0x10a,_0x2afd8c:0x15,_0x139db1:0x153,_0xba5839:0x107,_0x28b311:0xa8},_0x27cb83={_0x563547:0x33,_0x19e64d:0x152},_0x47a5c2={_0x4e611b:0x299,_0x1dd261:0x7f};function _0x15bce1(_0x2eda7b,_0x19f62c,_0x20dc05,_0x5d4892){return _0x42ffe3(_0x19f62c-_0x47a5c2._0x4e611b,_0x19f62c-0x122,_0x2eda7b,_0x5d4892-_0x47a5c2._0x1dd261);}function _0x1e15f9(_0x121d1b,_0x5df541,_0x397815,_0x35be03){return _0x42ffe3(_0x121d1b- -0x9a,_0x5df541-_0x27cb83._0x563547,_0x5df541,_0x35be03-_0x27cb83._0x19e64d);}return typeof _0x2aef35==='object'&&_0x2aef35!==null&&_0x1e15f9(-0x82,-_0x36ad8d._0x4925ea,-0xc7,0x1e)in _0x2aef35&&_0x2aef35[_0x1e15f9(-0x82,_0x36ad8d._0x2afd8c,-_0x36ad8d._0x139db1,-_0x36ad8d._0xba5839)]===_0x1e15f9(-0xe4,-0x1a8,-0xc3,-_0x36ad8d._0x28b311);}function isResponsesFunctionCallItem(_0x194e56){const _0x501cd8={_0x5d6366:0x4c8,_0x4f2418:0x513,_0xc5cd71:0x49e,_0x4d1952:0x15f,_0x36f36e:0x23e,_0x599292:0x2f9,_0x45fde7:0x1dc},_0x21e933={_0x5a4b3a:0xad},_0x1be6cc={_0x2d456f:0x6aa};function _0x18c458(_0x2ff86d,_0x35c6c5,_0x4e0acf,_0x5efdad){return _0x5e5ba4(_0x2ff86d-0x134,_0x5efdad,_0x4e0acf-0x1a0,_0x2ff86d- -_0x1be6cc._0x2d456f);}function _0x18243e(_0x1ca08a,_0x30410,_0x57ad85,_0x3b8637){return _0x5e5ba4(_0x1ca08a-0x109,_0x1ca08a,_0x57ad85-0x54,_0x3b8637- -_0x21e933._0x5a4b3a);}return typeof _0x194e56==='object'&&_0x194e56!==null&&_0x18243e(_0x501cd8._0x5d6366,0x403,_0x501cd8._0x4f2418,_0x501cd8._0xc5cd71)in _0x194e56&&_0x194e56[_0x18c458(-_0x501cd8._0x4d1952,-0xad,-0x173,-0x20a)]===_0x18c458(-_0x501cd8._0x36f36e,-_0x501cd8._0x599292,-0x1af,-_0x501cd8._0x45fde7);}function createContentBlocks(_0x35d2d3,_0x28ed36,_0x42ff07){const _0x3f7937={_0x486f27:0x9,_0x52c7c2:0xad,_0x6aefc8:0x9f,_0xd418b7:0x123,_0x19d0c6:0xdd,_0x314597:0x144,_0x35dfb8:0xcf,_0x19293e:0x16e,_0x3f8944:0xdb,_0x3974af:0x1af,_0x1bd58d:0x50,_0x586261:0xd3,_0x47b133:0x146,_0x4cbcaa:0x137,_0x399ccf:0x127,_0x3e6ece:0x148,_0x1ba2fc:0x89,_0x2f916b:0x38,_0x1299d7:0xe8,_0x4eefc2:0x44,_0x1d4ca6:0x25,_0x58a53e:0x1d,_0x2a6081:0x10f},_0x42faf5={_0x161d5d:0x1b0,_0x3ffe5d:0x146},_0x2f22f2={_0x9d5145:0xa0,_0x258de7:0x62a},_0x2d6bde=[];function _0x1f8159(_0x52ea7a,_0x2fd267,_0x56ea61,_0x761fbf){return _0x5e5ba4(_0x52ea7a-_0x2f22f2._0x9d5145,_0x761fbf,_0x56ea61-0xe5,_0x52ea7a- -_0x2f22f2._0x258de7);}_0x42ff07&&_0x42ff07[_0x1d8c77(-0xaa,-0xdb,-_0x3f7937._0x486f27,-_0x3f7937._0x52c7c2)]>0x0&&_0x2d6bde['push']({'type':'openai_reasoning','summary':[],'text':_0x42ff07});function _0x1d8c77(_0x57834c,_0xd96ea1,_0x4f2563,_0x414ea3){return _0x5e5ba4(_0x57834c-_0x42faf5._0x161d5d,_0x4f2563,_0x4f2563-_0x42faf5._0x3ffe5d,_0xd96ea1- -0x5bd);}_0x35d2d3[_0x1d8c77(-_0x3f7937._0x6aefc8,-0xdb,-_0x3f7937._0xd418b7,-0x77)]>0x0&&_0x2d6bde[_0x1f8159(-_0x3f7937._0x19d0c6,-0xb5,-0x132,-0x199)]({'type':_0x1f8159(-_0x3f7937._0x314597,-_0x3f7937._0x35dfb8,-0x1fe,-0xb3),'text':_0x35d2d3});for(const _0xb8fbc2 of _0x28ed36){if(_0xb8fbc2['id']['trim']()[_0x1d8c77(-_0x3f7937._0x19293e,-_0x3f7937._0x3f8944,-_0x3f7937._0x3974af,-0x6f)]===0x0||_0xb8fbc2[_0x1f8159(-0x82,-0xc,_0x3f7937._0x1bd58d,-0x133)][_0x1f8159(-0x193,-_0x3f7937._0x586261,-0x1a2,-0x234)][_0x1f8159(-_0x3f7937._0x47b133,-0x18b,-0x165,-_0x3f7937._0x4cbcaa)]()[_0x1d8c77(-_0x3f7937._0x399ccf,-0xdb,-0x180,-_0x3f7937._0x3e6ece)]===0x0)continue;_0x2d6bde[_0x1d8c77(-_0x3f7937._0x1ba2fc,-0x70,-_0x3f7937._0x2f916b,0x52)]({'type':_0x1f8159(-_0x3f7937._0x1299d7,-_0x3f7937._0x4eefc2,-0x189,-0x1b5),'id':_0xb8fbc2['id'],'name':_0xb8fbc2[_0x1f8159(-0x82,-_0x3f7937._0x1d4ca6,-0xf6,-_0x3f7937._0x58a53e)]['name'],'input':parseToolInput2(_0xb8fbc2[_0x1f8159(-0x82,-0xc0,-_0x3f7937._0x2a6081,0x1f)]['arguments'])});}return _0x2d6bde;}function createUsage(_0xf6e6fc){const _0x18ded7={_0xcbd1e9:0x24f,_0x2d82fe:0x235,_0x351d91:0x40a,_0x4441ab:0x3c1,_0xaafa95:0x452,_0x27ac6c:0x35f},_0x283d0e={_0x2c3098:0x1e8,_0x68f730:0x2ab},_0x22c344={_0x235bc6:0x429,_0x4e8cd5:0x97,_0x5900a5:0x1cf};function _0x2d5334(_0x4b20ff,_0xd3dd1f,_0xb64bf2,_0x27a2e2){return _0x42ffe3(_0x4b20ff-_0x22c344._0x235bc6,_0xd3dd1f-_0x22c344._0x4e8cd5,_0x27a2e2,_0x27a2e2-_0x22c344._0x5900a5);}function _0x550c5a(_0x48731d,_0x40f0c3,_0x17ecc3,_0x465cfa){return _0x5e5ba4(_0x48731d-_0x283d0e._0x2c3098,_0x48731d,_0x17ecc3-0x167,_0x465cfa- -_0x283d0e._0x68f730);}return{'inputTokens':_0xf6e6fc?.['prompt_tokens']??0x0,'outputTokens':_0xf6e6fc?.['completion_tokens']??0x0,..._0xf6e6fc?.[_0x550c5a(_0x18ded7._0xcbd1e9,0x1f5,0x241,_0x18ded7._0x2d82fe)]?.[_0x2d5334(_0x18ded7._0x351d91,_0x18ded7._0x4441ab,_0x18ded7._0xaafa95,_0x18ded7._0x27ac6c)]!==void 0x0?{'reasoningTokens':_0xf6e6fc['completion_tokens_details']['reasoning_tokens']}:{}};}function resolveReasoningVisibility2(_0x3183e6){const _0x1664f8={_0x115e0f:0x1be,_0x18496f:0x21c},_0x68d8a1={_0x3256f6:0x288,_0x26fcc8:0x33};function _0x337350(_0x575549,_0x13781a,_0x2dd145,_0x5be659){return _0x42ffe3(_0x13781a-_0x68d8a1._0x3256f6,_0x13781a-_0x68d8a1._0x26fcc8,_0x2dd145,_0x5be659-0x10b);}return _0x3183e6['reasoning']?.['visibility']??_0x337350(0x182,_0x1664f8._0x115e0f,_0x1664f8._0x18496f,0x13c);}function isUserVisibleReasoning(_0x59f833){const _0xb07edb={_0x1815c5:0x325,_0x55fb14:0x41a,_0x31957e:0x35d},_0x4b29c1={_0x146a5f:0xc6},_0x588796={_0x2deebb:0x194};function _0x5e04da(_0x15010d,_0x11378e,_0x51e071,_0x1bcb57){return _0x42ffe3(_0x15010d-0x2d9,_0x11378e-0x128,_0x51e071,_0x1bcb57-_0x588796._0x2deebb);}function _0x3cf317(_0x260a93,_0x37d0f5,_0x3f1c62,_0x26e151){return _0x5e5ba4(_0x260a93-0x8f,_0x260a93,_0x3f1c62-0xb9,_0x37d0f5- -_0x4b29c1._0x146a5f);}return resolveOpenAiReasoningConfig(_0x59f833[_0x5e04da(0x2d9,_0xb07edb._0x1815c5,0x370,0x295)])!==void 0x0&&resolveReasoningVisibility2(_0x59f833)===_0x3cf317(_0xb07edb._0x55fb14,0x3a3,0x3ae,_0xb07edb._0x31957e);}function createChatRequestBody(_0x174236,_0xb7f77e){const _0x13b106={_0xc26cbb:0x1c9,_0x53807d:0x255,_0x56ea07:0x1ec,_0x1b1150:0x110,_0xbd4118:0x259,_0x18bf8a:0x147,_0x2d74b0:0x189,_0x16ecc7:0x2a3,_0x4997e0:0x2a3,_0x2a017b:0x322,_0x1cce05:0x2a9,_0xf002d6:0x293,_0x2263af:0x280,_0x24bb5e:0x2be,_0x382059:0x334,_0xe1587:0x1ec,_0x4a1931:0x229,_0x896135:0x19b,_0xa1a5e6:0x1e4,_0x4994a3:0x133,_0x17080f:0x1f1,_0xb40378:0xf5,_0x22587e:0x1fe,_0x1c826d:0x29b,_0x4ee10b:0xd4,_0x47b15f:0x18d,_0x27887d:0x1a5,_0x95e531:0x234,_0x1d9f55:0x250,_0xa49157:0x25b,_0x2f541e:0x298,_0x234ce2:0x2c8,_0x458e10:0x167,_0x22e07d:0x2e3,_0x1c3046:0x395,_0x133aad:0x123,_0x553564:0x4b,_0x5b3121:0x31f,_0x44cdf3:0x25d,_0x42e3b7:0x23e,_0x233ede:0x1de,_0x1ba203:0x37a,_0x44be69:0x236,_0x27c010:0x168,_0xc6e42b:0x234,_0x27c1d7:0x195,_0x6154f4:0x2ea,_0x1d8713:0x1aa,_0x2e614d:0x1a6,_0x5c5f91:0x30d,_0x4e6d51:0x23d,_0xfe5af4:0x279,_0xb823da:0x2eb,_0x330b27:0x26c,_0xa79e5f:0x289,_0x555a09:0x22a,_0x4df225:0x370,_0x38b13b:0x20b,_0x5e31f4:0x22e,_0x24dad5:0x22c,_0x15ff83:0x189,_0x4b5bfe:0x255,_0x53f2a6:0x17d,_0x3ec23a:0x13a,_0x3a779f:0x2ef,_0x52bb0e:0x2d0,_0x5b6a09:0x1d6,_0x14b3b5:0x2b1,_0x17d698:0x1bc,_0x436182:0x266,_0x336faf:0x2a5,_0x5aa77f:0x23d,_0x43424f:0x16c,_0x340da0:0x277,_0x5d1058:0x18c,_0x43b92e:0x234,_0x2773b2:0x1fe,_0x11acb0:0x314,_0x1082a2:0x250},_0xec4dcf={_0x2b9b9b:0x253,_0x10c6ef:0x244,_0x5340ae:0x12d,_0x4557bf:0x158,_0x1cd0ab:0x15c,_0x1ed306:0x9c,_0x39a214:0x1ba,_0x2e4748:0x244,_0x10f895:0x10f,_0x4ece3b:0x72,_0x1f71dd:0x3c,_0x245100:0xd2,_0x48d28f:0xbd,_0x1dfa55:0x168,_0x3c3fd0:0x114,_0x304f9a:0x242,_0x16164b:0x27b,_0x2f4289:0x10f,_0x5a1f65:0x109,_0x2e8541:0x2ff,_0x5a5754:0x293,_0x4eb40b:0xc0,_0x2d17a7:0x94,_0x50f211:0x280,_0x500979:0x17d,_0x51e620:0x172,_0xc1e79b:0x190,_0x5b5259:0x217,_0xebd4f2:0x22c,_0x27081d:0x1e9,_0x4ac6de:0x1ab,_0x3765b4:0x244,_0x4011bb:0x62,_0x2f2c98:0x4d,_0x3b4b46:0x1d9,_0x583e1f:0x194,_0x2fe326:0x8b,_0xba8fe7:0xf2,_0x229763:0x136,_0x4f1407:0xef,_0x9ea2f:0x241,_0x532aa1:0x216,_0x1bc780:0x294,_0x3d00ff:0x5,_0x235ef6:0x100,_0x580eba:0x1c9,_0x34e7c8:0x1bc,_0x283f74:0x8e},_0x32804f={_0x548345:0x16a,_0x17e266:0x3ae,_0x5b6b0d:0xc9},_0x913407={_0x6bd272:0x1da},_0x3a485d=[];function _0x3688e2(_0x28dd8d,_0x662ce0,_0x5abaca,_0x12eaa6){return _0x42ffe3(_0x12eaa6-_0x913407._0x6bd272,_0x662ce0-0x7b,_0x662ce0,_0x12eaa6-0x5e);}function _0x581b75(_0x595bb2,_0x13f92b,_0x559c9b,_0x583b63){return _0x5e5ba4(_0x595bb2-0x152,_0x583b63,_0x559c9b-0x74,_0x13f92b- -0x781);}const _0x2a88a7=stringifySystem(_0x174236[_0x581b75(-_0x13b106._0xc26cbb,-0x1c7,-_0x13b106._0x53807d,-_0x13b106._0x56ea07)]);_0x2a88a7[_0x3688e2(_0x13b106._0x1b1150,_0x13b106._0xbd4118,_0x13b106._0x18bf8a,_0x13b106._0x2d74b0)]>0x0&&_0x3a485d[_0x3688e2(_0x13b106._0x16ecc7,0x238,0x163,0x1f4)]({'role':_0x3688e2(0x249,0x329,0x32c,0x261),'content':_0x2a88a7});for(const _0xce2456 of _0x174236[_0x581b75(-_0x13b106._0x4997e0,-_0x13b106._0x2a017b,-_0x13b106._0x1cce05,-_0x13b106._0xf002d6)]){const _0x3a963f=[],_0x88f40e=[],_0x499dc6=[],_0x467860=()=>{function _0x218506(_0x4a6742,_0x1c8436,_0x5d0c6a,_0x262f48){return _0x581b75(_0x4a6742-_0x32804f._0x548345,_0x4a6742-_0x32804f._0x17e266,_0x5d0c6a-_0x32804f._0x5b6b0d,_0x5d0c6a);}if(_0xce2456[_0x53e5fe(_0xec4dcf._0x2b9b9b,0x1bf,_0xec4dcf._0x10c6ef,0x294)]===_0x53e5fe(0x115,_0xec4dcf._0x5340ae,_0xec4dcf._0x4557bf,0x17e)){if(_0x3a963f[_0x218506(0x10f,_0xec4dcf._0x1cd0ab,0x5f,_0xec4dcf._0x1ed306)]===0x0&&_0x88f40e[_0x53e5fe(_0xec4dcf._0x39a214,0x165,0x23a,0x1d9)]===0x0)return;_0x3a485d[_0x53e5fe(0x1d5,0x19f,0x20a,_0xec4dcf._0x2e4748)]({'role':'assistant','content':_0x3a963f[_0x218506(_0xec4dcf._0x10f895,_0xec4dcf._0x4ece3b,_0xec4dcf._0x1f71dd,0x174)]>0x0?_0x3a963f[_0x218506(_0xec4dcf._0x245100,_0xec4dcf._0x48d28f,0xd9,_0xec4dcf._0x1dfa55)]('\x0a\x0a'):null,..._0x88f40e['length']>0x0?{'tool_calls':_0x88f40e[_0x218506(0x1d9,_0xec4dcf._0x3c3fd0,_0xec4dcf._0x304f9a,_0xec4dcf._0x16164b)](0x0)}:{}}),_0x3a963f[_0x218506(_0xec4dcf._0x2f4289,_0xec4dcf._0x5a1f65,0x1c5,0xc0)]=0x0;return;}if(_0xce2456[_0x53e5fe(_0xec4dcf._0x2e8541,_0xec4dcf._0x5a5754,0x2f0,0x294)]===_0x218506(_0xec4dcf._0x4eb40b,0x8d,0x115,_0xec4dcf._0x2d17a7)){if(_0x499dc6[_0x53e5fe(_0xec4dcf._0x50f211,_0xec4dcf._0x500979,_0xec4dcf._0x51e620,0x1d9)]===0x0)return;const _0x15a2c3=_0x499dc6[_0x53e5fe(0x203,_0xec4dcf._0xc1e79b,_0xec4dcf._0x5b5259,_0xec4dcf._0xebd4f2)](_0x5390d9=>_0x5390d9[_0x218506(0x178,0x1b1,0x145,0x21f)]===_0x53e5fe(0x8d,0x9f,0xce,0x151));_0x3a485d[_0x53e5fe(_0xec4dcf._0x27081d,_0xec4dcf._0x4ac6de,0x281,_0xec4dcf._0x3765b4)]({'role':_0x218506(0xc0,0x93,_0xec4dcf._0x4011bb,_0xec4dcf._0x2f2c98),'content':_0x15a2c3?_0x499dc6[_0x218506(0x1d9,0x227,0x107,0x1ac)](0x0):_0x499dc6[_0x218506(_0xec4dcf._0x3b4b46,0x1a0,_0xec4dcf._0x583e1f,0x298)](0x0)[_0x218506(0x72,0x137,_0xec4dcf._0x2fe326,_0xec4dcf._0xba8fe7)](_0x4d5b6b=>_0x4d5b6b['type']===_0x53e5fe(0x107,0x17f,0x26d,0x1dd))['map'](_0x23c45e=>_0x23c45e[_0x53e5fe(0x221,0x1c6,0x176,0x1dd)])[_0x218506(0xd2,0x27,_0xec4dcf._0x229763,_0xec4dcf._0x4f1407)]('\x0a\x0a')});return;}if(_0x3a963f['length']===0x0)return;function _0x53e5fe(_0xd2eac9,_0x5115fe,_0x3f8360,_0x60c9f2){return _0x581b75(_0xd2eac9-0x1b8,_0x60c9f2-0x478,_0x3f8360-0x1c4,_0x3f8360);}_0x3a485d[_0x218506(0x17a,0x110,_0xec4dcf._0x9ea2f,0x175)]({'role':_0xce2456[_0x53e5fe(0x301,_0xec4dcf._0x532aa1,0x337,_0xec4dcf._0x1bc780)],'content':_0x3a963f[_0x218506(0xd2,0x13c,_0xec4dcf._0x3d00ff,_0xec4dcf._0x235ef6)]('\x0a\x0a')}),_0x3a963f[_0x218506(0x10f,_0xec4dcf._0x580eba,_0xec4dcf._0x34e7c8,_0xec4dcf._0x283f74)]=0x0;};for(const _0x9b9d0b of normalizeContent(_0xce2456[_0x581b75(-_0x13b106._0x2263af,-_0x13b106._0x24bb5e,-_0x13b106._0x382059,-0x353)])){if(_0x9b9d0b[_0x581b75(-_0x13b106._0xe1587,-0x236,-0x238,-_0x13b106._0x4a1931)]==='text'){_0xce2456[_0x581b75(-_0x13b106._0x896135,-_0x13b106._0xa1a5e6,-_0x13b106._0x4994a3,-_0x13b106._0x17080f)]===_0x3688e2(0x68,_0x13b106._0xb40378,_0x13b106._0x22587e,0x13a)?_0x499dc6['push']({'type':_0x581b75(-0x26a,-_0x13b106._0x1c826d,-0x315,-0x250),'text':_0x9b9d0b[_0x3688e2(_0x13b106._0x4ee10b,0xfd,0x140,_0x13b106._0x47b15f)]}):_0x3a963f[_0x581b75(-_0x13b106._0x27887d,-_0x13b106._0x95e531,-0x226,-0x29d)](_0x9b9d0b[_0x581b75(-0x282,-0x29b,-_0x13b106._0x1d9f55,-_0x13b106._0xa49157)]);continue;}if(_0xce2456[_0x3688e2(0x1f9,0x1de,_0x13b106._0x2f541e,0x244)]===_0x3688e2(0xa9,0x1cc,0x202,0x13a)&&_0x9b9d0b[_0x3688e2(_0x13b106._0x234ce2,0x26b,_0x13b106._0x458e10,0x1f2)]===_0x581b75(-0x26b,-_0x13b106._0x22e07d,-_0x13b106._0x1c3046,-0x23e)){_0x499dc6['push']({'type':_0x3688e2(_0x13b106._0x133aad,0x1b2,_0x13b106._0x553564,0x101),'image_url':{'url':_0x3688e2(_0x13b106._0x5b3121,0x29d,0x27f,_0x13b106._0x44cdf3)+_0x9b9d0b['source']['media_type']+_0x3688e2(_0x13b106._0x42e3b7,0x21c,_0x13b106._0x233ede,0x19c)+_0x9b9d0b[_0x3688e2(0x227,0x1ef,0x2ed,0x21e)][_0x581b75(-0x35d,-0x32e,-0x35d,-_0x13b106._0x1ba203)]}});continue;}if(_0x9b9d0b[_0x581b75(-0x24a,-_0x13b106._0x44be69,-0x160,-0x2ca)]==='tool_use'){_0x88f40e[_0x581b75(-_0x13b106._0x27c010,-_0x13b106._0xc6e42b,-0x1de,-0x2b7)]({'id':_0x9b9d0b['id'],'type':_0x581b75(-0x225,-0x1d9,-_0x13b106._0x27c1d7,-0x29c),'function':{'name':_0x9b9d0b[_0x581b75(-0x225,-_0x13b106._0x6154f4,-0x24e,-0x2eb)],'arguments':JSON[_0x3688e2(_0x13b106._0x1d8713,0x1e1,0x15f,_0x13b106._0x2e614d)](_0x9b9d0b[_0x3688e2(0x142,0x20b,0x2ae,0x1f0)]??{})}});continue;}if(_0x9b9d0b['type']!=='tool_result')continue;_0x467860(),_0x3a485d[_0x3688e2(0x14b,0x26a,0x237,0x1f4)]({'role':_0x3688e2(_0x13b106._0x5c5f91,_0x13b106._0x4e6d51,0x2cf,_0x13b106._0xfe5af4),'content':getToolResultText(_0x9b9d0b['content']),'tool_call_id':_0x9b9d0b[_0x3688e2(0x2e2,0x1a3,_0x13b106._0xb823da,_0x13b106._0x330b27)]});const _0x33aabb=getToolResultImages(_0x9b9d0b[_0x581b75(-_0x13b106._0xa79e5f,-_0x13b106._0x24bb5e,-_0x13b106._0x555a09,-_0x13b106._0x4df225)]);_0x33aabb[_0x3688e2(_0x13b106._0x38b13b,_0x13b106._0x5e31f4,_0x13b106._0x24dad5,_0x13b106._0x15ff83)]>0x0&&_0x3a485d[_0x581b75(-_0x13b106._0x4b5bfe,-_0x13b106._0x95e531,-_0x13b106._0x53f2a6,-0x17e)]({'role':_0x3688e2(0x142,0x192,0xa0,_0x13b106._0x3ec23a),'content':[{'type':_0x581b75(-_0x13b106._0x3a779f,-_0x13b106._0x1c826d,-_0x13b106._0x52bb0e,-_0x13b106._0x5b6a09),'text':_0x3688e2(0x264,0x236,_0x13b106._0x14b3b5,0x1eb)+_0x9b9d0b[_0x581b75(-0xf1,-_0x13b106._0x17d698,-0x167,-0x14b)]+'.'},..._0x33aabb[_0x581b75(-_0x13b106._0x436182,-_0x13b106._0x336faf,-0x291,-0x290)](_0x4c1f33=>({'type':_0x3688e2(0xad,0x1a5,0x10a,0x101),'image_url':{'url':_0x3688e2(0x25b,0x20c,0x2a1,0x25d)+_0x4c1f33[_0x3688e2(0x196,0x152,0x2da,0x21e)]['media_type']+_0x581b75(-0x26f,-0x28c,-0x278,-0x35a)+_0x4c1f33[_0x581b75(-0x285,-0x20a,-0x27a,-0x2c7)][_0x581b75(-0x37c,-0x32e,-0x35e,-0x34e)]}}))]});}_0x467860();}const _0x3f6a4f=resolveOpenAiReasoningConfig(_0x174236[_0x3688e2(0x203,0x29b,_0x13b106._0x5aa77f,0x1da)]);return{'model':_0x174236[_0x3688e2(0x11c,_0x13b106._0x43424f,0x1b5,0x1b1)],'messages':_0x3a485d,'stream':_0xb7f77e,..._0x3f6a4f?{'max_completion_tokens':_0x174236[_0x3688e2(0x2ae,0x30f,0x271,_0x13b106._0x340da0)]}:{'max_tokens':_0x174236[_0x581b75(-_0x13b106._0x5d1058,-0x1b1,-_0x13b106._0x43b92e,-0x1aa)]},..._0x3f6a4f?.[_0x3688e2(0x151,0x130,0x1f2,0x1a2)]?{'reasoning_effort':_0x3f6a4f[_0x581b75(-0x2c0,-0x286,-0x222,-0x1dc)]}:{},...createToolDefinitions(_0x174236[_0x3688e2(_0x13b106._0x2773b2,0x1e0,_0x13b106._0x11acb0,_0x13b106._0x1082a2)])?{'tools':createToolDefinitions(_0x174236['tools'])}:{}};}function createResponsesRequestBody(_0xd34323,_0x27e23c){return{...toOpenAiResponsesRequest(_0xd34323),..._0x27e23c?{'stream':!![]}:{},'store':![]};}function _0x42ffe3(_0x476d0c,_0x4dfbc6,_0x2ce882,_0x7f5924){return _0x5b07(_0x476d0c- -0x17c,_0x2ce882);}function createOpenAiResponsesWebSocketEvent(_0x23a683,_0x5d32be={}){const _0x1479ee={_0x2a5303:0xac,_0x27cc32:0x65,_0xef3a88:0x129,_0x13ec7c:0x81,_0x2f1446:0x1eb,_0x26b4ad:0x12a,_0x110f38:0x251,_0x4cae5a:0x1e4,_0x11044c:0x227,_0xa1ade3:0x257,_0x5dfe64:0x1f3},_0x56cd2a={_0x2451e4:0x140};function _0x2aaf44(_0x45f73a,_0x20d719,_0x130ed9,_0x406db8){return _0x42ffe3(_0x130ed9- -_0x56cd2a._0x2451e4,_0x20d719-0x5d,_0x406db8,_0x406db8-0x1bf);}const _0x4e0502=toOpenAiResponsesRequest(_0x23a683);function _0x33fdc9(_0x483a7e,_0x3ab47d,_0x16625f,_0x41fc56){return _0x42ffe3(_0x483a7e-0x31c,_0x3ab47d-0xa5,_0x3ab47d,_0x41fc56-0x11d);}return{'type':'response.create',..._0x4e0502,..._0x5d32be[_0x2aaf44(-_0x1479ee._0x2a5303,-_0x1479ee._0x27cc32,-0x12a,-_0x1479ee._0xef3a88)]?{'input':_0x5d32be[_0x2aaf44(-_0x1479ee._0x13ec7c,-_0x1479ee._0x2f1446,-_0x1479ee._0x26b4ad,-0x1ef)]}:{},..._0x5d32be[_0x33fdc9(0x269,_0x1479ee._0x110f38,_0x1479ee._0x4cae5a,0x232)]?{'previous_response_id':_0x5d32be[_0x2aaf44(-_0x1479ee._0x11044c,-_0x1479ee._0xa1ade3,-_0x1479ee._0x5dfe64,-0x238)]}:{},'store':![]};}function normalizeAssistantContent(_0xba1eeb){const _0x4c0975={_0x1621bd:0x26b,_0x212572:0x24d,_0x1cc48f:0x297,_0x355bc9:0x30e,_0xf1ba6:0x245,_0x399f8b:0x1f9,_0x431771:0x266},_0x4a6548={_0x436e8d:0x4,_0x5dedc5:0x17,_0x2a142e:0x46,_0x242518:0x2e},_0x4aacdc={_0x135897:0x263,_0x1c8628:0x1e1},_0x5faf8={_0x19dbf5:0x141,_0x76128a:0x30,_0x1ed93d:0x73c},_0xeb6707={_0x5f4d9b:0x240,_0x500dc4:0x1e3,_0x52b1b5:0x16e};if(typeof _0xba1eeb==='string')return _0xba1eeb;function _0x4c683d(_0x37e530,_0x1d6066,_0x23b2c,_0x37475c){return _0x42ffe3(_0x37e530- -_0xeb6707._0x5f4d9b,_0x1d6066-_0xeb6707._0x500dc4,_0x37475c,_0x37475c-_0xeb6707._0x52b1b5);}function _0x48e1bf(_0x199a37,_0x3fadb7,_0x117673,_0x36f9af){return _0x5e5ba4(_0x199a37-_0x5faf8._0x19dbf5,_0x199a37,_0x117673-_0x5faf8._0x76128a,_0x3fadb7- -_0x5faf8._0x1ed93d);}if(!Array[_0x4c683d(-0x2f6,-0x388,-_0x4c0975._0x1621bd,-_0x4c0975._0x212572)](_0xba1eeb))return'';return _0xba1eeb[_0x4c683d(-_0x4c0975._0x1cc48f,-_0x4c0975._0x355bc9,-_0x4c0975._0xf1ba6,-_0x4c0975._0x399f8b)](_0x2d3787=>{function _0x39dc4b(_0x227e52,_0x5d9432,_0x30a7ff,_0x52d820){return _0x4c683d(_0x5d9432-_0x4aacdc._0x135897,_0x5d9432-0x137,_0x30a7ff-_0x4aacdc._0x1c8628,_0x30a7ff);}function _0xc573f5(_0x29e4e6,_0x437284,_0x16dedf,_0xa06a73){return _0x48e1bf(_0x29e4e6,_0xa06a73-0x29c,_0x16dedf-0xac,_0xa06a73-0xdf);}return _0x2d3787['type']===_0xc573f5(-_0x4a6548._0x436e8d,-0x5c,_0x4a6548._0x5dedc5,_0x4a6548._0x2a142e)?_0x2d3787['text']:_0x2d3787[_0x39dc4b(-0x1f,-0x73,_0x4a6548._0x242518,0x57)];})[_0x4c683d(-0x2ce,-_0x4c0975._0x431771,-0x3a1,-0x38e)]('');}function normalizeResponsesMessageContent(_0x4213b0){const _0x4a4acf={_0x529d7a:0x9f,_0x4edb7c:0xbb,_0x3498ff:0x18},_0xeb0277={_0x1e13d0:0xd1,_0x1187b2:0x48c,_0xfaa052:0x547,_0x548508:0x540,_0x4f7e11:0x460,_0x36ca5c:0x492,_0x4a6b02:0x178,_0xb9c6a1:0x147,_0x37132a:0x169,_0x30358e:0x21a,_0x3af9d7:0x124,_0x5f1193:0xf7,_0x2f55c0:0x14e,_0x15c557:0x220,_0x111105:0x1ff,_0x122255:0x454,_0x3b4d01:0x384},_0x5ebedd={_0x412933:0x18b,_0x48428a:0x42},_0x3ada6a={_0x4ba3eb:0x126,_0x45d611:0x1f1,_0xf9b286:0x4cd},_0x5eaa56={_0xc8c9c2:0xcb};function _0x5bbb72(_0x1caa09,_0x58623,_0x59eeb2,_0x965d50){return _0x42ffe3(_0x59eeb2- -0x13c,_0x58623-_0x5eaa56._0xc8c9c2,_0x1caa09,_0x965d50-0xcf);}function _0x5556b4(_0x78847c,_0x16aeb1,_0xf21bc9,_0x12a22a){return _0x5e5ba4(_0x78847c-_0x3ada6a._0x4ba3eb,_0xf21bc9,_0xf21bc9-_0x3ada6a._0x45d611,_0x16aeb1- -_0x3ada6a._0xf9b286);}if(!Array[_0x5556b4(-_0x4a4acf._0x529d7a,-0x50,-0x21,-0x48)](_0x4213b0))return'';return _0x4213b0[_0x5556b4(-0xaf,0xf,_0x4a4acf._0x4edb7c,0x85)](_0x3da110=>{const _0x2f8176={_0x260fda:0x626};if(!_0x3da110||typeof _0x3da110!==_0x7ed9bc(-0x82,-_0xeb0277._0x1e13d0,-0x90,-0x5a))return'';function _0x7ed9bc(_0x1963a5,_0x470bb7,_0x363403,_0x53b7f6){return _0x5bbb72(_0x1963a5,_0x470bb7-_0x5ebedd._0x412933,_0x470bb7-_0x5ebedd._0x48428a,_0x53b7f6-0x88);}const _0x592ecb=_0x3da110;if(_0x592ecb[_0x384cde(0x502,0x555,0x568,_0xeb0277._0x1187b2)]===_0x384cde(0x487,_0xeb0277._0xfaa052,_0xeb0277._0x548508,_0xeb0277._0x4f7e11)&&typeof _0x592ecb[_0x7ed9bc(-0x14e,-0x147,-0x123,-0x1ba)]===_0x384cde(0x40d,0x3e4,_0xeb0277._0x36ca5c,0x468))return _0x592ecb[_0x7ed9bc(-_0xeb0277._0x4a6b02,-_0xeb0277._0xb9c6a1,-0xd1,-_0xeb0277._0x37132a)];function _0x384cde(_0x5682b5,_0x417069,_0x35042c,_0xe26547){return _0x5bbb72(_0xe26547,_0x417069-0x7f,_0x5682b5-_0x2f8176._0x260fda,_0xe26547-0x12a);}if(_0x592ecb[_0x7ed9bc(-0x143,-0xe2,-0xdf,-0xe8)]===_0x7ed9bc(-_0xeb0277._0x4a6b02,-0x190,-_0xeb0277._0x30358e,-_0xeb0277._0x3af9d7)&&typeof _0x592ecb[_0x7ed9bc(-_0xeb0277._0x5f1193,-0x190,-_0xeb0277._0x2f55c0,-0x1f7)]===_0x7ed9bc(-_0xeb0277._0x15c557,-0x1d7,-0x1aa,-_0xeb0277._0x111105))return _0x592ecb[_0x384cde(_0xeb0277._0x122255,_0xeb0277._0x3b4d01,0x451,0x480)];return'';})[_0x5556b4(0xa5,-0x28,-_0x4a4acf._0x3498ff,0xac)]('');}function extractOpenAiReasoningText(_0x51171f){const _0x336631={_0x123933:0x74,_0x127090:0x13a,_0x449036:0x97,_0x45f311:0x20,_0xcfcf85:0x33c},_0x25b48d={_0x535b9e:0x69},_0x1adf1d={_0x56cf30:0x479,_0x1b365a:0x1a0,_0x2723fd:0x1dc};if(typeof _0x51171f['text']===_0x391c6d(-_0x336631._0x123933,-0x50,-0xf6,-_0x336631._0x127090))return _0x51171f[_0x391c6d(0x1c,-_0x336631._0x449036,0xd2,_0x336631._0x45f311)];function _0x2bf711(_0x46d1e8,_0x38f920,_0x5c2439,_0x6cef0e){return _0x42ffe3(_0x46d1e8-_0x1adf1d._0x56cf30,_0x38f920-_0x1adf1d._0x1b365a,_0x6cef0e,_0x6cef0e-_0x1adf1d._0x2723fd);}if(!Array['isArray'](_0x51171f['content']))return'';function _0x391c6d(_0x37cba6,_0x4fc262,_0x48384,_0x366699){return _0x42ffe3(_0x37cba6-_0x25b48d._0x535b9e,_0x4fc262-0xae,_0x366699,_0x366699-0x1a4);}return _0x51171f['content']['filter'](_0x5caad2=>_0x5caad2[_0x2bf711(0x491,0x493,0x402,0x48f)]===_0x2bf711(0x3ec,0x472,0x34e,0x3d9)&&typeof _0x5caad2[_0x391c6d(0x1c,0xd9,0xde,0xc2)]==='string')['map'](_0x43fba8=>_0x43fba8[_0x2bf711(0x42c,0x4c1,0x37d,0x417)]??'')[_0x2bf711(0x3eb,_0x336631._0xcfcf85,0x431,0x320)]('');}function createOpenAiReasoningBlock(_0x5d88c2){const _0x19a7f7={_0x4294d9:0x1ec,_0xe4eb16:0x21d,_0x4ec09a:0x141,_0x2ae5f6:0x1df,_0x261569:0xd,_0xf200ae:0x2a,_0x116957:0xd3},_0x187b97={_0x14c664:0x26,_0x431231:0x4b},_0x250da7={_0x51d6f1:0x224,_0x31d878:0xdf},_0x5e4d14=extractOpenAiReasoningText(_0x5d88c2);function _0x370b4a(_0x111ce2,_0x23d32a,_0x2b8b59,_0x53d33f){return _0x42ffe3(_0x2b8b59- -_0x250da7._0x51d6f1,_0x23d32a-0x142,_0x111ce2,_0x53d33f-_0x250da7._0x31d878);}function _0x50adb3(_0xd5ff4f,_0x4a1803,_0x395f29,_0x4832a6){return _0x42ffe3(_0x4a1803- -_0x187b97._0x14c664,_0x4a1803-0x18e,_0x395f29,_0x4832a6-_0x187b97._0x431231);}return{'type':_0x370b4a(-0x224,-_0x19a7f7._0x4294d9,-0x1e5,-0x2b9),'summary':structuredClone(_0x5d88c2['summary']??[]),..._0x5d88c2['id']?{'id':_0x5d88c2['id']}:{},..._0x5d88c2[_0x370b4a(-_0x19a7f7._0xe4eb16,-_0x19a7f7._0x4ec09a,-0x210,-0x27a)]?{'encryptedContent':_0x5d88c2[_0x370b4a(-_0x19a7f7._0x2ae5f6,-0x263,-0x210,-0x183)]}:{},..._0x5e4d14[_0x50adb3(-_0x19a7f7._0x261569,-0x77,_0x19a7f7._0xf200ae,-_0x19a7f7._0x116957)]>0x0?{'text':_0x5e4d14}:{}};}function hasVisibleOpenAiReasoning(_0x3606ca){const _0x3870a2={_0x190289:0x165,_0x3af717:0x22d,_0x52899b:0x6b,_0x4c888e:0x8a},_0x542b63={_0x17ee6b:0x63a},_0x436fa1={_0x4cb965:0x199};function _0x4d8874(_0x24a081,_0x465bf5,_0x58a781,_0xaa0345){return _0x5e5ba4(_0x24a081-0xa2,_0x24a081,_0x58a781-_0x436fa1._0x4cb965,_0x58a781- -0x45c);}function _0xd3d8c3(_0x33297e,_0x36412c,_0x5834dc,_0x5a762c){return _0x5e5ba4(_0x33297e-0xe1,_0x36412c,_0x5834dc-0x1c7,_0x5a762c- -_0x542b63._0x17ee6b);}return _0x3606ca['summary'][_0xd3d8c3(-0x10c,-_0x3870a2._0x190289,-_0x3870a2._0x3af717,-0x158)]>0x0||typeof _0x3606ca[_0x4d8874(-0x22,_0x3870a2._0x52899b,_0x3870a2._0x4c888e,0x130)]===_0x4d8874(-0x68,0x81,-0x6,-0x67);}function parseChatCompletionResponse(_0xca1d81){const _0x189b3b={_0x211683:0x167,_0x41f9fb:0x85,_0x41a32a:0x3,_0x4b3092:0x1ac,_0x68d869:0x26,_0x34cfbe:0xf3,_0x14e67e:0x1f4,_0x5bbf35:0x1f8,_0x59bb87:0x292,_0x42bf91:0x371,_0x5d1b22:0x1e1,_0x3c9be3:0x1f8,_0x503c6d:0x2be,_0x9e5cf5:0x1bc,_0x4f9ac8:0x3d,_0x38c617:0x6,_0x47c3e5:0x26a,_0x25c76c:0x1f8,_0x12e0cc:0xa2,_0x5cd801:0x6f,_0xac92cd:0xe8,_0x3cc08d:0x7d,_0x49a2ce:0x6b,_0x2744c5:0x88,_0x555452:0x124,_0x33993b:0x41,_0x2eab07:0x1b1,_0x1b79a2:0x311,_0x385f65:0x259,_0x27382a:0x2e3,_0x581223:0x304,_0x4f818b:0x236,_0x42ce1b:0x399,_0x50ad95:0x22,_0x158c06:0x117,_0xc3ef43:0xfa,_0x48fdd3:0x4e},_0x40f1c5={_0x1b4171:0xa7,_0x5921c0:0x172},_0x4e6169=[],_0x2a5e9c=[];let _0x156c6c=_0x5a1e19(0x223,0x190,0xdd,_0x189b3b._0x211683);for(const _0x576559 of _0xca1d81['choices']??[]){const _0x1f2cce=_0x576559['message'],_0x37d393=normalizeAssistantContent(_0x1f2cce?.['content']);_0x37d393[_0x5a1e19(0x93,_0x189b3b._0x41f9fb,_0x189b3b._0x41a32a,0x88)]>0x0&&_0x4e6169[_0x5a1e19(_0x189b3b._0x4b3092,_0x189b3b._0x68d869,0x187,_0x189b3b._0x34cfbe)](_0x37d393),_0x1f2cce?.[_0x27299c(_0x189b3b._0x14e67e,_0x189b3b._0x5bbf35,0x15b,0x242)]&&_0x2a5e9c[_0x27299c(0x315,0x305,_0x189b3b._0x59bb87,_0x189b3b._0x42bf91)](..._0x1f2cce[_0x27299c(_0x189b3b._0x5d1b22,_0x189b3b._0x3c9be3,_0x189b3b._0x503c6d,_0x189b3b._0x9e5cf5)]),_0x576559[_0x5a1e19(_0x189b3b._0x4f9ac8,-0xbb,-0x28,_0x189b3b._0x38c617)]===_0x27299c(_0x189b3b._0x47c3e5,_0x189b3b._0x25c76c,0x13f,0x1a8)&&(_0x156c6c=_0x5a1e19(_0x189b3b._0x12e0cc,_0x189b3b._0x5cd801,0x4f,_0x189b3b._0xac92cd));}function _0x5a1e19(_0x2e4c0a,_0x8304fb,_0x3692d0,_0x28d81e){return _0x5e5ba4(_0x2e4c0a-_0x40f1c5._0x1b4171,_0x2e4c0a,_0x3692d0-_0x40f1c5._0x5921c0,_0x28d81e- -0x45a);}function _0x27299c(_0x13730a,_0x52f745,_0x4441b0,_0x565366){return _0x5e5ba4(_0x13730a-0x8b,_0x565366,_0x4441b0-0x78,_0x52f745- -0x248);}return _0x2a5e9c[_0x5a1e19(_0x189b3b._0x3cc08d,_0x189b3b._0x49a2ce,0xfa,_0x189b3b._0x2744c5)]>0x0&&(_0x156c6c=_0x5a1e19(_0x189b3b._0x555452,_0x189b3b._0x33993b,_0x189b3b._0x2eab07,0xe8)),{'id':_0xca1d81['id']??_0x27299c(_0x189b3b._0x1b79a2,_0x189b3b._0x385f65,0x220,_0x189b3b._0x27382a)+Date[_0x27299c(0x27d,_0x189b3b._0x581223,_0x189b3b._0x4f818b,_0x189b3b._0x42ce1b)](),'content':createContentBlocks(_0x4e6169[_0x5a1e19(_0x189b3b._0x50ad95,0xad,_0x189b3b._0x158c06,0x4b)](''),_0x2a5e9c),'stopReason':_0x156c6c,'usage':createUsage(_0xca1d81[_0x5a1e19(_0x189b3b._0xc3ef43,_0x189b3b._0x48fdd3,0x61,0x56)])};}function parseResponsesResponse(_0x4ce374,_0xcf8f61){const _0x4687dc={_0x5990bc:0x127,_0x26f05b:0x6f,_0x86eb12:0xda,_0x47cda2:0x1a2,_0x1ae940:0x229,_0x2560de:0x178,_0x4b0934:0x6f,_0x1d7686:0xaa,_0x5e4a4d:0xd7,_0x54348d:0xd6,_0x254727:0x136,_0x4f0ec7:0xd8,_0x2a3e6e:0x6b,_0x379532:0xda,_0x586824:0x6e,_0x57e2bd:0x5e,_0x17eaef:0x150,_0x4de049:0x125,_0x8146c6:0x1b2,_0x261164:0x154,_0x51817a:0xa4,_0x427642:0x125,_0x214c56:0x96,_0x437f24:0xd8,_0x214af7:0x188,_0x4dedb8:0x14,_0x236153:0x14f,_0x1a9c53:0x20d,_0x2199cc:0x176,_0x325399:0xef,_0x20f986:0x1c1,_0x3a0936:0xfc,_0x5c1cdc:0xb8,_0x2b6b52:0x161,_0x453b32:0x1d0,_0x5ace00:0x34,_0x2be62e:0x5f,_0xbf0a90:0x14b,_0x6c6462:0x167,_0x248c86:0x161,_0x589492:0x1b5,_0x166aec:0x34,_0x5c0023:0x141,_0x12273c:0x1eb,_0x58d096:0x107,_0x2668c7:0xfe,_0x2cb267:0x2f,_0x184d89:0x21,_0x46c38e:0xbc,_0x23d9aa:0x10c,_0xa8d52a:0xa5,_0x4e17bf:0x296,_0x3e9717:0x1d4,_0x2ba8fa:0x21c,_0x2c3896:0x182,_0x51ec0a:0xaf,_0x1e0281:0xa8,_0x4b4de0:0x145,_0x57e822:0xee,_0xb004a0:0x31},_0x50d45b={_0x358eed:0x6b,_0x4e76ba:0x191},_0x210635=[];for(const _0x22fcc1 of _0x4ce374['output']??[]){if(isResponsesReasoningItem(_0x22fcc1)){if(isUserVisibleReasoning(_0xcf8f61)){const _0x3f5be4=createOpenAiReasoningBlock(_0x22fcc1);hasVisibleOpenAiReasoning(_0x3f5be4)&&_0x210635[_0x484e6e(-_0x4687dc._0x5990bc,-_0x4687dc._0x26f05b,-0x74,-_0x4687dc._0x86eb12)](_0x3f5be4);}continue;}if(isResponsesMessageItem(_0x22fcc1)){const _0x49d889=normalizeResponsesMessageContent(_0x22fcc1[_0x20b2b4(-0x16e,-_0x4687dc._0x47cda2,-0x1ec,-_0x4687dc._0x1ae940)]);_0x49d889[_0x484e6e(-_0x4687dc._0x47cda2,-0xda,-0xaa,-_0x4687dc._0x2560de)]>0x0&&_0x210635[_0x484e6e(0x44,-_0x4687dc._0x4b0934,-_0x4687dc._0x1d7686,0x1b)]({'type':_0x484e6e(-_0x4687dc._0x5e4a4d,-_0x4687dc._0x54348d,-0x176,-_0x4687dc._0x254727),'text':_0x49d889});continue;}if(!isResponsesFunctionCallItem(_0x22fcc1)||typeof _0x22fcc1[_0x20b2b4(-0xec,-0xa9,-0xe5,-0x56)]!=='string'||_0x22fcc1[_0x484e6e(-0x15,-0x77,-0x68,-0xc0)][_0x484e6e(-0xaf,-_0x4687dc._0x4f0ec7,-_0x4687dc._0x2a3e6e,-0x90)]()[_0x484e6e(-0x17d,-_0x4687dc._0x379532,-_0x4687dc._0x586824,-_0x4687dc._0x57e2bd)]===0x0||typeof _0x22fcc1[_0x484e6e(-_0x4687dc._0x17eaef,-_0x4687dc._0x4de049,-_0x4687dc._0x8146c6,-_0x4687dc._0x261164)]!==_0x484e6e(-_0x4687dc._0x51817a,-0x166,-0x9d,-0xec)||_0x22fcc1[_0x484e6e(-0x1c9,-_0x4687dc._0x427642,-_0x4687dc._0x214c56,-0x1d9)][_0x484e6e(-0x186,-_0x4687dc._0x437f24,-_0x4687dc._0x214af7,-_0x4687dc._0x4dedb8)]()[_0x20b2b4(-_0x4687dc._0x236153,-0x1ea,-0x1d1,-_0x4687dc._0x1a9c53)]===0x0||typeof _0x22fcc1[_0x484e6e(-0xa4,-0x9f,-0x152,-0x163)]!==_0x484e6e(-_0x4687dc._0x2199cc,-0x166,-0xe1,-0xfd))continue;_0x210635['push']({'type':_0x20b2b4(-_0x4687dc._0x325399,-0x139,-0xd2,-0x134),'id':_0x22fcc1[_0x20b2b4(-0xec,-_0x4687dc._0x1d7686,-0x13e,-0x101)],'name':_0x22fcc1[_0x20b2b4(-0x19a,-_0x4687dc._0x20f986,-0x1ab,-0xce)],'input':parseToolInput2(_0x22fcc1['arguments'])});}function _0x20b2b4(_0x21a856,_0x1a09e1,_0x2ff1ca,_0x4aca8c){return _0x5e5ba4(_0x21a856-0x170,_0x2ff1ca,_0x2ff1ca-0x72,_0x21a856- -0x631);}function _0x484e6e(_0x38059f,_0x49a5e0,_0x27f633,_0x3642c3){return _0x5e5ba4(_0x38059f-_0x50d45b._0x358eed,_0x38059f,_0x27f633-_0x50d45b._0x4e76ba,_0x49a5e0- -0x5bc);}return!_0x210635[_0x20b2b4(-_0x4687dc._0x3a0936,-0x64,-_0x4687dc._0x5c1cdc,-0x14d)](_0x29af07=>_0x29af07[_0x20b2b4(-0xe6,-0x1ad,-0xa2,-0x144)]==='text')&&_0x4ce374[_0x20b2b4(-_0x4687dc._0x2b6b52,-_0x4687dc._0x453b32,-0x1a7,-0x9b)]&&_0x210635[_0x484e6e(-_0x4687dc._0x5ace00,-0x6f,_0x4687dc._0x2be62e,-0x4a)]({'type':_0x20b2b4(-_0x4687dc._0xbf0a90,-_0x4687dc._0x6c6462,-0x184,-0x1b3),'text':_0x4ce374['output_text']}),{'id':_0x4ce374['id'],'content':_0x210635,'stopReason':_0x210635[_0x20b2b4(-0xfc,-_0x4687dc._0x248c86,-0x8d,-_0x4687dc._0x589492)](_0x55e9e7=>_0x55e9e7['type']===_0x484e6e(-0x2e,-0x7a,-0x110,-0x4c))?_0x484e6e(_0x4687dc._0x166aec,-0x7a,-0x6c,-0x4d):_0x20b2b4(-0x70,-0x65,-0x24,0x12),'usage':{'inputTokens':_0x4ce374[_0x20b2b4(-0x181,-_0x4687dc._0x5c0023,-_0x4687dc._0x12273c,-0x202)]?.[_0x484e6e(-0x9c,-0x12e,-_0x4687dc._0x58d096,-0x1bd)]??0x0,'outputTokens':_0x4ce374[_0x20b2b4(-0x181,-0xea,-_0x4687dc._0x2668c7,-0x12c)]?.[_0x484e6e(-_0x4687dc._0x2cb267,-_0x4687dc._0x184d89,-0x69,-0x5b)]??0x0,..._0x4ce374[_0x484e6e(-_0x4687dc._0x46c38e,-_0x4687dc._0x23d9aa,-_0x4687dc._0xa8d52a,-0x15b)]?.[_0x20b2b4(-0x1d4,-0x174,-_0x4687dc._0x4e17bf,-0x12a)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x4ce374['usage'][_0x20b2b4(-_0x4687dc._0x3e9717,-_0x4687dc._0x2ba8fa,-0x296,-_0x4687dc._0x2c3896)][_0x484e6e(-_0x4687dc._0x51ec0a,-_0x4687dc._0x1e0281,-_0x4687dc._0x4b4de0,-0x147)]}:{}},..._0x4ce374[_0x20b2b4(-_0x4687dc._0x57e822,-_0x4687dc._0xb004a0,-0xd6,-0xc9)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x4ce374['output']),'openaiResponsesResponseId':_0x4ce374['id']}}:{}};}function extractErrorMessage(_0x92a83b){const _0x2a85eb={_0x51ffe:0x1a9,_0x53b9b7:0x1e0,_0x5535dc:0x115,_0x5d2616:0xab,_0x3cefb6:0x10b,_0x70c8d4:0x104,_0x1c1dde:0x1b,_0x2c4dee:0x165,_0x495b78:0x1ad,_0x363698:0xed,_0x58a43f:0x3e,_0x5d3030:0x5f,_0x2b5591:0x89,_0x1914bd:0x78,_0x40ab69:0x21,_0x185ea2:0xe1,_0x590b35:0x99,_0x52abaa:0x11d,_0x3f3d6d:0x1b2,_0x4882a4:0x13e,_0xb24b79:0x1d4,_0x78d462:0x25d,_0x2a9cc3:0x203,_0x2bade5:0x2f,_0x37efda:0x1a,_0x47ed0d:0x82},_0x7d4461={_0x14fcee:0x10d,_0x30eec4:0x102},_0x5d331f={_0x177eb7:0xfc,_0x1348d2:0x339};function _0x329846(_0x41333b,_0x253365,_0x6e8905,_0x1aaf54){return _0x5e5ba4(_0x41333b-0x1f0,_0x1aaf54,_0x6e8905-_0x5d331f._0x177eb7,_0x41333b- -_0x5d331f._0x1348d2);}if(_0x92a83b[_0x329846(_0x2a85eb._0x51ffe,_0x2a85eb._0x53b9b7,0x12a,0x13f)]===0x0)return'';try{const _0x3f3e63=JSON['parse'](_0x92a83b);if(typeof _0x3f3e63[_0x329846(0x106,0x128,_0x2a85eb._0x5535dc,0xb8)]?.[_0x321a89(-0x1,0xcd,0x36,_0x2a85eb._0x5d2616)]==='string'&&_0x3f3e63[_0x321a89(-0xd,-_0x2a85eb._0x3cefb6,-0x74,0x6)][_0x321a89(_0x2a85eb._0x70c8d4,-_0x2a85eb._0x1c1dde,0x36,0x8c)]['trim']()[_0x329846(0x1a9,_0x2a85eb._0x2c4dee,0x111,_0x2a85eb._0x495b78)]>0x0)return _0x3f3e63[_0x321a89(-_0x2a85eb._0x363698,_0x2a85eb._0x58a43f,-0x74,_0x2a85eb._0x5d3030)][_0x321a89(-_0x2a85eb._0x2b5591,-_0x2a85eb._0x1914bd,0x36,_0x2a85eb._0x40ab69)][_0x321a89(0x46,_0x2a85eb._0x185ea2,0x31,_0x2a85eb._0x590b35)]();if(typeof _0x3f3e63['message']===_0x329846(_0x2a85eb._0x52abaa,_0x2a85eb._0x3f3d6d,_0x2a85eb._0x4882a4,_0x2a85eb._0xb24b79)&&_0x3f3e63['message'][_0x329846(0x1ab,_0x2a85eb._0x78d462,0x10b,_0x2a85eb._0x2a9cc3)]()[_0x321a89(0xd3,0x73,_0x2a85eb._0x2bade5,-0xe)]>0x0)return _0x3f3e63[_0x321a89(_0x2a85eb._0x37efda,0xcb,0x36,_0x2a85eb._0x47ed0d)]['trim']();}catch{return _0x92a83b;}function _0x321a89(_0x343e7e,_0x17e4af,_0x566406,_0x1f1626){return _0x5e5ba4(_0x343e7e-_0x7d4461._0x14fcee,_0x17e4af,_0x566406-_0x7d4461._0x30eec4,_0x566406- -0x4b3);}return _0x92a83b;}async function createOpenAiApiError(_0x266985){const _0x5c5cb6={_0x4d3fb2:0x14a,_0x5ad695:0x5b,_0x4344c2:0x7e,_0x3c08b7:0x83,_0x5963d6:0x132,_0x209506:0xa7,_0xbdf4e6:0x91,_0x2ba15a:0x90,_0x23bcda:0xb4,_0x57f5ec:0xea,_0x30ade4:0x190,_0x54904c:0xa6},_0x22a2a4={_0x19b4b2:0x18d},_0x44dede={_0x5f3e93:0x53f};function _0x9884fc(_0x3127a3,_0x1b8868,_0x36d891,_0x53e5f9){return _0x5e5ba4(_0x3127a3-0x1bf,_0x3127a3,_0x36d891-0x9a,_0x1b8868- -_0x44dede._0x5f3e93);}const _0x1eb42b=(await _0x266985[_0x314387(-_0x5c5cb6._0x4d3fb2,-0xd9,-0x7c,0x39)]())[_0x9884fc(0x60,-_0x5c5cb6._0x5ad695,-_0x5c5cb6._0x4344c2,-0x2b)](),_0x4fec7c=extractErrorMessage(_0x1eb42b)||_0x266985[_0x9884fc(-0x80,-_0x5c5cb6._0x3c08b7,-0x116,-0xea)]||_0x9884fc(-_0x5c5cb6._0x5963d6,-_0x5c5cb6._0x209506,-_0x5c5cb6._0xbdf4e6,-_0x5c5cb6._0x2ba15a)+_0x266985[_0x9884fc(-_0x5c5cb6._0x23bcda,-_0x5c5cb6._0x57f5ec,-_0x5c5cb6._0x30ade4,-0x140)];function _0x314387(_0x2917e9,_0x32515a,_0x5b33c1,_0x9404ce){return _0x42ffe3(_0x5b33c1- -0x2f,_0x32515a-_0x22a2a4._0x19b4b2,_0x9404ce,_0x9404ce-0x13a);}return new OpenAiApiError(_0x266985[_0x9884fc(-0xa4,-0xea,-0xd0,-_0x5c5cb6._0x54904c)],_0x1eb42b,_0x4fec7c);}function readSseData(_0x36f6b8){const _0x57436a={_0x37c82d:0x98,_0x165272:0x162,_0x11eb5c:0x1ed,_0x21a75d:0xf3,_0x12d97e:0x151,_0x4f8ff9:0xdd},_0x36688c={_0x2bdb62:0x9f,_0x3898a9:0x133},_0x803edb={_0x24934d:0x8b};function _0x26f061(_0x5cecc1,_0x45eff7,_0x1d6d1b,_0x5a7131){return _0x5e5ba4(_0x5cecc1-0x110,_0x1d6d1b,_0x1d6d1b-_0x803edb._0x24934d,_0x5a7131- -0x3c8);}function _0x3dbe35(_0x23a76a,_0x457836,_0x5950f3,_0x3484c3){return _0x42ffe3(_0x23a76a- -_0x36688c._0x2bdb62,_0x457836-0x1e6,_0x5950f3,_0x3484c3-_0x36688c._0x3898a9);}return _0x36f6b8[_0x3dbe35(-_0x57436a._0x37c82d,-0xb3,-0x109,-_0x57436a._0x165272)]('\x0a')[_0x3dbe35(-0x18d,-0x1e9,-_0x57436a._0x11eb5c,-0x1e4)](_0x398128=>_0x398128[_0x26f061(0x117,-0x20,0x1c,0x88)](_0x3dbe35(-0x1c,-0x8e,0x1d,-0x1)))['map'](_0x51107a=>_0x51107a['slice'](0x5)[_0x26f061(0x178,0x1d4,0x1a3,0x1c9)]())[_0x26f061(_0x57436a._0x21a75d,0x95,_0x57436a._0x12d97e,_0x57436a._0x4f8ff9)]('\x0a')['trim']();}function readString(_0xe29e85){const _0x283c4f={_0x1d9553:0x148,_0x3da63f:0x1d2,_0x3d2412:0x20b,_0xffbfdb:0xbc,_0x4da27b:0xd0},_0x1df40b={_0x34f3aa:0x59e},_0x3ded28={_0x574da5:0x109,_0x3bf2eb:0x87,_0x10e2b8:0x5d7};function _0x4caad5(_0x4fd72b,_0x1edc4a,_0x4307ed,_0xdd4753){return _0x5e5ba4(_0x4fd72b-_0x3ded28._0x574da5,_0x1edc4a,_0x4307ed-_0x3ded28._0x3bf2eb,_0xdd4753- -_0x3ded28._0x10e2b8);}function _0x3b46bd(_0x43581d,_0x2b0991,_0x1d9a48,_0x539628){return _0x5e5ba4(_0x43581d-0x1f3,_0x2b0991,_0x1d9a48-0x179,_0x43581d- -_0x1df40b._0x34f3aa);}return typeof _0xe29e85===_0x3b46bd(-_0x283c4f._0x1d9553,-0x1da,-_0x283c4f._0x3da63f,-_0x283c4f._0x3d2412)&&_0xe29e85[_0x3b46bd(-_0x283c4f._0xffbfdb,-0x161,-_0x283c4f._0x4da27b,-0xd5)]>0x0?_0xe29e85:void 0x0;}function _0xb5a6(){const _0x3b79f6=['BwvZC2fNzv9KzwX0yq','Dg9VBenHBgXpCMrLCG','DhjHBNnWB3j0','Bwf4vg9Rzw5Z','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','Dg9VBa','BgLTAxrZ','sfruuca','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','Aw5JBhvKzunVBNrLBNruExbL','ywrK','Dg9VBenHBgXZqNLjBMrLEa','C3rYzwfTx2vYCM9Y','zMLUza','AxrLBv9Pza','Aw5KzxG','zw5HyMXLza','zw5KCg9PBNrZ','C2HVDwXKuMv0CNLszxnWB25Zzq','Bw9Kzq','y2fJAgvszwfKsw5WDxruB2TLBNm','y2fSBeLKvg9pDxrWDxrjBMrLEa','Dgv4Dc9LDMvUDc1ZDhjLyw0','AgvHzgvYCW','CgfYC2vszxnWB25Zzq','y2XVC2u','C2HPzNq','yxbWBgLJyxrPB24VANnVBG','yw50AhjVCgLJx3rOAw5RAw5N','zxjYB3i','Dg9VBf9JywXSCW','CMvHza','CMvHzhLtDgf0zq','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','y29Kzq','zMLSDgvY','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','Aw5PDgLHBev2zw50','yMfZzvvYBa','y29UC3vTzuv2zw50','y2HHDgnTCgW','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','ChjVDMLKzxjtDgf0zq','yNvPBgrqyxj0AwfSt3v0Chv0','C3rHCNrZv2L0Aa','CMvZB2X2zujHC2vvCMW','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','zgf0yq','D2fPDezVCLjLDhj5','C3rHDhvZ','C3rYAw5N','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','Dgv4DfbHCNrZ','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','Aw1Hz2vFDxjS','yxv0BW','ywnJzxb0','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','C2vZC2LVBKLK','BwvZC2fNzxm','zMLUAxnOx3jLyxnVBG','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','r0vu','C3rYzwfTshr0Cfn1CMzHy2u','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','y29UDgvUDc10ExbL','C3rYzwfTu3vYzMfJzq','BwvZC2fNzv9ZDgfYDa','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','DxnLCI12AxnPyMXL','y29UC3vTzvnZzuv2zw50','CMvWBgfJzq','zNvUy3rPB25Fy2fSBa','zgvJB2rL','CgvUzgLUzW','y29UDgvUDf9PBMrLEa','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','CMvZCg9UC2u','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','zNjVBuvUDhjPzxm','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','zMLUAxnO','Dg9VBenHBgXZ','y29TCgXLDgu','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','C3rYzwfTvMLHu3vYzMfJzq','zw5JCNLWDgvKq29UDgvUDa','yxnZAxn0yw50lq','AxnbCNjHEq','Ec1HCgKTA2v5','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','ChjLDMLVDxnszxnWB25ZzuLK','Bwf4','mZCZmeDYyMr1za','B2f1DgGTDg9Rzw4','zw50CMLLCW','C3vWCg9YDgvKx2vUzhbVAw50CW','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','yxnZAxn0yw50','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C2vZC2LVBG','DgvZDa','z2v0uMv0CNLezwXHEu1Z','D2vIu29JA2v0rMfJDg9YEq','Aw5WDxrFDg9Rzw5Z','zgvSzxrL','y29UDgv4Df9Szw5NDgG','AxngAw5PDgu','D3nZoG','DxnLCG','zgLZywjSzwq','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','CMvXDwvZDe11Dgf0B3jZ','BMfTzq','t3bLBKfjiefqssbLCNjVCIa','mte2mdi4DxLtEKD6','Dg9tDhjPBMC','CMv0CNLHyMXL','B3bLBG','CMvMDxnHBa','Aw1Hz2u','C3vWCg9YDgvKrw5KCg9PBNrZ','Bw9JAW','y2HHDgnTCgWT','C2LNBMf0DxjL','DMfSDwu','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','AM9PBG','CMvHC29UAw5Nx3rLEhq','CMvZCg9UC2vZugf0Aa','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','ChjLCgfYzunOyxrszxf1zxn0','CMvZCg9UC2vtDhjLyw0','C3rVCf9YzwfZB24','BwvZC2fNzuLUzgv4','y3jLyxrLu3rYzwfTugfYC2vY','C3vYzMfJzxm','CMvHC29UAw5Nx2rLDgfPBhm','DxnHz2u','B3bLBMfPlxjLC3bVBNnLCY13CW','ywjVCNrLza','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','mJaYmY0WnI0Wmq','CMvZCg9UC2vtB2nRzxrtDhjLyw0','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','DxjS','CMvZCg9UC2vjza','qMfZAa','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','C3rHDhvZvgv4Da','Dg9VBf91C2vFzgvSDge','AxneB25L','y3jLyxrLsgvHzgvYCW','CgfYDgLHBf9QC29U','zgLZCgXHEq','C3vTBwfYEv90zxH0','y29UDgvUDa','y29UDgv4DfDPBMrVDW','CMvXDwvZDa','zgvZy3jPChrPB24','odu3mZj0zNfqwKm','yxbP','yw50AhjVCgLJlw1LC3nHz2vZ','CMvHC29UAw5NsxrLBxm','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','l2nOyxqVy29TCgXLDgLVBNm','Dg9Rzw4','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','B3v0Chv0x3rLEhq','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','C29JA2v0','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','Bwf4t3v0Chv0','y2HHDenVBxbSzxrL','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','zNjVBq','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','Aw5WDxrFDgv4Da','BwfW','mZjxDeXkquC','l3jLC3bVBNnLCW','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','zMv0y2HjBxbS','BgvUz3rO','B3jPz2LUlxrYywnRzxi','DhjPBq','yNvKz2v0vg9Rzw5Z','Dgv4Da','yMXVy2TZ','y29TCgXLDgvwAwftDxjMywnL','BwvZC2fNzq','Bwf4x291Dhb1Df90B2TLBNm','C3vTBwfYEuj5sw5KzxG','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','C3vTBwfYEq','qMvHCMvYia','D2vIC29JA2v0','CMvZCc0','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','C2vUza','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','o2jHC2u2ncW','w0rptKvD','B3v0Chv0vg9Rzw5Z','C3vTBwfYEv9PBMrLEa','DxrMltG','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','zwzMB3j0','AgfZ','zwrPDg9YvMvYC2LVBG','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','C3rYAw5NAwz5','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','C3rVCfjLyxnVBG','mtaWntqWm0n6DuPuCW','DNnJB2rLlZeUmta0lJi','Aw5JBhvKzxm','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','mJe4nty4BML6rKDh','B3bLBKfPrgvSzwDHDgu','zxzLBNq6','z2v0','Bw9KzwW','BwfWqxbPrxjYB3i','mJmZmMDmtuDfAq','yxv0Ag9YAxPHDgLVBG','sw52ywXPzcbYzxf1zxn0oIa','z2v0u3vYzMfJzq','Ahr0Chm6','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Aw5KzxHpzG','Dg9Wx3bYB3zPzgvY','CMvHC29UAw5Nx3rVA2vUCW','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','zwrPDg9YugX1z2LUvMvYC2LVBG','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','C29YDa','CMvZzxq','yxjNDw1LBNrZ','Bw9KzwXfBMrWB2LUDenHy2HL','y2HHDenVBxbSzxrPB25Zugf0Aa','BgfZDfjLC3bVBNnLswq','CM91DgvY','CMvKywn0zwrFDgHPBMTPBMC','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','DgvSzw1LDhj5','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','DgHPBMTPBMDFzgvSDge','C2LNBMf0DxjLx2rLBhrH','CMvZCg9UC2uUzMfPBgvK','mJa1vNjJq0Hd','Bwv0Ag9K','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','mJmXmdK5BfbxwuvJ','Bwf4x3rVA2vUCW','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','ChjVDg9JB2XwzxjZAw9U','ANnVBG','B21PDhrLza','Dg9bCgLfCNjVCG','CMvHC29UAw5N','DMLZAwjPBgL0Eq','C29Tzq','y3jLzgvUDgLHBa','ChjVDg9JB2W','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','BNvTyMvY','C3bSAxq','Ahr0Cc1QC29U','z2v0t3bLBKfPrgvSzwDHDgu','yMvHCMvY','DhjHBNnWB3j0x2vYCM9Y','DMfSDwvZ','C3rYzwfTvMLHuM91DgvY','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','Dg9VBf91C2u','B3v0Chv0','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','y2fSBf9Pza','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','zw5JCNLWDgvKx2nVBNrLBNq','Cgf0Aa','Aw5WDxq','CMvZCg9UC2vuzxH0ugfYDhm','DhLWzq','BM93','ChvZAa','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','D3m6','y3jLyxrLuMvXDwvZDa','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','ChjVDMLKzxjbzgfWDgvY','Aw5WDxrkC29U','DgHLBG','zMv0y2G','mJaYns0Xmc0Wmq','ChjVDMLKzxjFCMv0CNK','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','z2v0uMvHzgvY','B2jQzwn0','CMvZB2X2zq','yxbPs2v5','AxrLBq','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','AgvHzgvYuMvZB2X2zxi','B3bLBMfPlxjLC3bVBNnLCW','C2L6zq','y29UDgvUDf9IBg9JA19KzwX0yq','CMvHC29UAw5Nx2nVBNrLBNq','B3v0Chv0x2LUzgv4','u3vYzMfJzsa','y2fWywjPBgL0AwvZ','BwvZC2fNzuLK','zgvSDge','l21VzgvSCW','z2L0AhvIqxbPvxjS','C2vUzfDPDgHszxrYAwvZ','z2v0qw50AhjVCgLJrgvSzwDHDgu','C2v0','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','mZm5ndHQwu9KC3i','B3bLBMfPx3jLyxnVBMLUzW','Aw5WDxrFANnVBL9KzwX0yq','ywDLBNq','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','C2vSzwn0u3vYzMfJzq','C291CMnL','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','C2XPy2u','yw50AhjVCgLJrgvSzwDHDgu','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','y29UDgvUDf9IBg9JAW','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','ue9tva','Ahr0Cc1ZC2u','y29UDgvUDf9KzwX0yq','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','oNjLyxnVBMLUzZOW','y29UC3vTzvDLyLnVy2TLDev2zw50','CgfYC2u','yM9KEq','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','yxv0AfnJAgvTzq','C2vUzfjHD1jLCxvLC3q','CMvZB2X2zunYzwrLBNrPywW','yxbWBhLnB2rLBerLzMf1BhrZ','z3b0ltrV','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','ywjVCNq','CMv0CNKTywz0zxi','B3v0Chv0sw5KzxG','DhjPBvn0yxj0','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','y29WAwXVDc1JAgf0lZaUmZeUmW','C2vZC2LVBK1HBMfNzxi','y2HVAwnLCW','yw50AhjVCgLJlxzLCNnPB24','z2L0AhvI','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','y2HHDfn0CMvHBq','zM9Yy2vgDwXSuMvWBgf5','B3v0Chv0x3rVA2vUCW','y2fWywjSzv9LBMrWB2LUDhm','CM9Szq','Dgv4Df9KzwX0yq','Dgv4Dej5sw5KzxG','ywrKrxzLBNrmAxn0zw5LCG','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Aw5WDxruB2TLBNm','mtG2mZeZmMjxufjSEq','CMvHC29U','Bwv0ywrHDge','CMvTB3zLrxzLBNrmAxn0zw5LCG','A2LUza','zNvUy3rPB24','Dg9VBhm','mtbZr3r4Awe','B3v0Chv0sw5KzxHuB0nHBgXjza','C3bSAwnL','y2fJAgvK','Dg9mB3DLCKnHC2u','Dg9VBfvZzvn0yxj0rw1PDhrLza','zMLUywXszxnWB25Zzq','y2f0y2G','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','y29UBMvJDgLUzW','C2vZC2LVBI10B2TLBG','C3rYzwfT','zgf0ytO','y29TCgXLDgvtDxjMywnL','C3vYzMfJzq','t1bftG','C3LZDgvT','zg9Uzq','l3yXl21LC3nHz2vZ','ywrHChrPDMu','Dg9VBc1JywXSlq','DxnLC1jLC3bVBNnLC0fWAq','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','zw5Kx3r1CM4','DgHPBMTPBMC','CMvZCg9UC2vtB2nRzxq','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','Dg9VBf91C2vFAwq','CMvHC29UAw5NugfYDhm','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','ywnJzxnZvg9Rzw4','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','B25qCM92AwrLCLjLDhj5','C2LNBMfS','zxzLBNq'];_0xb5a6=function(){return _0x3b79f6;};return _0xb5a6();}function extractReasoningDetails(_0x3ef3e3){const _0x446a34={_0x8414a9:0x28,_0x27db0b:0x135,_0x205b2b:0xaa,_0x8458c0:0x10f,_0x498836:0x60,_0x330a74:0xe2},_0x2c4a2e={_0x85985f:0x552,_0x1c6b81:0x1b6},_0x53e946={_0x416427:0x234,_0x1344ce:0x154,_0x171487:0x1ba,_0x5a544a:0x145,_0x3b3745:0xf9,_0x5ebce5:0xbf};if(!Array[_0x1b96da(-_0x446a34._0x8414a9,_0x446a34._0x27db0b,_0x446a34._0x205b2b,0xd7)](_0x3ef3e3))return void 0x0;const _0xf6020e=_0x3ef3e3['flatMap'](_0x1bed92=>{const _0x3dd5b7={_0x539912:0x77},_0x4a396c={_0x441a69:0x26};if(!_0x1bed92||typeof _0x1bed92!==_0x4bd3f1(0x1ff,0x2d2,0x228,_0x53e946._0x416427))return[];const _0x1f897e=_0x1bed92;if(typeof _0x1f897e[_0x4bd3f1(0x189,0x140,0x232,0x23b)]===_0x46533e(0x100,0x174,0x12a,0x11b))return[_0x1f897e[_0x46533e(0x17b,_0x53e946._0x1344ce,_0x53e946._0x171487,_0x53e946._0x5a544a)]];function _0x4bd3f1(_0x8bf3a1,_0x589443,_0x41a937,_0x5bd8c4){return _0x1b96da(_0x8bf3a1-0x7e,_0x5bd8c4,_0x8bf3a1-0x76,_0x5bd8c4-_0x4a396c._0x441a69);}if(typeof _0x1f897e['summary']===_0x4bd3f1(_0x53e946._0x3b3745,0x1ad,0x171,_0x53e946._0x5ebce5))return[_0x1f897e['summary']];function _0x46533e(_0x4ad1c0,_0x57070e,_0x17335a,_0x45f4f5){return _0x1b96da(_0x4ad1c0-_0x3dd5b7._0x539912,_0x4ad1c0,_0x17335a-0xa7,_0x45f4f5-0x135);}return[];});function _0x1b96da(_0x2eef1f,_0x25af8e,_0x2417c8,_0x53d830){return _0x5e5ba4(_0x2eef1f-0x1d,_0x25af8e,_0x2417c8-0xb4,_0x2417c8- -0x3d3);}function _0x3d5b46(_0x4d2e75,_0x213cfe,_0x2aed0b,_0x5167bb){return _0x42ffe3(_0x5167bb-_0x2c4a2e._0x85985f,_0x213cfe-0xc2,_0x2aed0b,_0x5167bb-_0x2c4a2e._0x1c6b81);}return _0xf6020e[_0x1b96da(0x50,0x130,_0x446a34._0x8458c0,0x195)]>0x0?_0xf6020e[_0x1b96da(_0x446a34._0x498836,0x19d,0xd2,_0x446a34._0x330a74)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x424df8){const _0x9783d1={_0xfb50dc:0x175,_0xccd1:0x13b},_0x448d15={_0x239ac3:0x1d2},_0x41fd28={_0xca144e:0x62,_0x86f4ec:0xab};function _0x3b2431(_0x10df96,_0x2ebc04,_0x5f0dfa,_0x448f5e){return _0x42ffe3(_0x10df96-0x253,_0x2ebc04-_0x41fd28._0xca144e,_0x5f0dfa,_0x448f5e-_0x41fd28._0x86f4ec);}function _0x7ee1d4(_0x38021a,_0x1fff44,_0x3a5c6e,_0x420220){return _0x5e5ba4(_0x38021a-_0x448d15._0x239ac3,_0x3a5c6e,_0x3a5c6e-0x11b,_0x38021a- -0x4c7);}return extractReasoningDetails(_0x424df8?.[_0x3b2431(0x1cf,0x240,_0x9783d1._0xfb50dc,0x12b)])??readString(_0x424df8?.['reasoning'])??readString(_0x424df8?.[_0x7ee1d4(0x9e,0x11,_0x9783d1._0xccd1,0x1e)])??readString(_0x424df8?.['reasoning_text'])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x5e5ba4(0x594,0x5ae,0x534,0x5c6)]=[];[_0x5e5ba4(0x487,0x43e,0x506,0x4c5)];[_0x5e5ba4(0x430,0x3fd,0x401,0x458)]=[];[_0x42ffe3(-0x106,-0x1a4,-0x164,-0x1d8)]=new Map();['toolCallOrder']=[];[_0x5e5ba4(0x65a,0x520,0x4e4,0x5af)]=new Set();[_0x42ffe3(-0x7b,-0x1b,-0xf8,-0xcd)]='';[_0x42ffe3(-0x32,0x41,-0x87,0x94)]=_0x5e5ba4(0x5f8,0x5eb,0x5cb,0x5c1);['usage'];constructor(_0x4ad8dc){const _0x162874={_0x896bd7:0x2ce,_0x3d4bc8:0x254,_0x24fec4:0x28d};function _0x326a5d(_0x45da81,_0x3183cd,_0x57e517,_0x404219){return _0x42ffe3(_0x57e517- -0x21f,_0x3183cd-0xcf,_0x45da81,_0x404219-0x92);}this[_0x326a5d(-_0x162874._0x896bd7,-_0x162874._0x3d4bc8,-_0x162874._0x24fec4,-0x2fd)]=_0x4ad8dc;}[_0x5e5ba4(0x47f,0x501,0x4d4,0x46a)](_0x51c8f3){const _0x51c09c={_0x53aa54:0x2a4,_0x24b43a:0x210,_0x50901d:0x2e2,_0x28b6b3:0x3a0,_0x14c832:0x34f,_0x4a1709:0x2de,_0x5c3891:0x21b,_0x48900c:0x35c,_0x59ed0e:0x2ea,_0x5d1bb8:0x2d1,_0x5ebe54:0x3b5,_0x4e284d:0x48d,_0x1babd4:0x3c7,_0x579fc8:0x3e0,_0x17f260:0x316,_0x58db00:0x398},_0x1c6006={_0x35062d:0x44a},_0x7eeb6f={_0x33cad2:0x267,_0x517b04:0x18b},_0x548995=readSseData(_0x51c8f3);function _0x56e8e1(_0x29a542,_0x4d832a,_0x2601b7,_0x59dbed){return _0x42ffe3(_0x29a542- -_0x7eeb6f._0x33cad2,_0x4d832a-_0x7eeb6f._0x517b04,_0x2601b7,_0x59dbed-0x86);}if(_0x548995['length']===0x0||_0x548995===_0x56e8e1(-_0x51c09c._0x53aa54,-0x360,-0x27a,-_0x51c09c._0x24b43a))return[];const _0x5a116c=JSON['parse'](_0x548995);this[_0x56e8e1(-_0x51c09c._0x50901d,-_0x51c09c._0x28b6b3,-0x328,-_0x51c09c._0x14c832)]=_0x5a116c['id']??this[_0x56e8e1(-0x2e2,-_0x51c09c._0x4a1709,-_0x51c09c._0x5c3891,-_0x51c09c._0x48900c)],this[_0x56e8e1(-_0x51c09c._0x59ed0e,-_0x51c09c._0x5d1bb8,-0x236,-0x24d)]=_0x5a116c[_0x60c74e(_0x51c09c._0x5ebe54,0x314,_0x51c09c._0x4e284d,_0x51c09c._0x1babd4)]??this[_0x60c74e(0x3d2,_0x51c09c._0x579fc8,0x321,0x3c7)];function _0x60c74e(_0x3c461d,_0x2c7920,_0x2156de,_0x40a016){return _0x42ffe3(_0x40a016-_0x1c6006._0x35062d,_0x2c7920-0x1a8,_0x2156de,_0x40a016-0x157);}return this[_0x56e8e1(-0x351,-_0x51c09c._0x17f260,-_0x51c09c._0x58db00,-0x40a)](_0x5a116c);}[_0x42ffe3(-0xbd,-0x18e,-0x162,-0x90)](){const _0x4ac3b5={_0x5ea311:0x235,_0x304259:0x384,_0x3472f9:0x2e2,_0x439cea:0x28b,_0x4aa69c:0x2ab,_0x3b1c0a:0x27d,_0x57f143:0x24d,_0x20a2b6:0x28b,_0x12b83e:0x358,_0x260fc5:0x1d4,_0xb9e5d6:0x2ef,_0x2d807d:0x19a,_0x1acd72:0x22b,_0x5d867d:0x17d,_0x47e9e0:0x1ff,_0x493dde:0x263,_0xcfdacb:0x285,_0x470627:0x221,_0x25ba5d:0x273,_0x3dd203:0x167,_0x374280:0x203,_0x14a1aa:0x32c,_0x3c2940:0x2a1,_0x2f478e:0x394,_0x18aeab:0x298,_0x381323:0x1e5},_0x3733b4={_0x22297a:0x1,_0x2d293d:0x10e},_0x1d93fe={_0x40a906:0xc0,_0x447240:0x2a2};this['toolCallOrder'][_0x4dd77b(0x2c8,0x34e,0x317,_0x4ac3b5._0x5ea311)]>0x0&&(this[_0x4dd77b(0x2e7,0x248,_0x4ac3b5._0x304259,0x360)]=_0x4dd77b(0x328,_0x4ac3b5._0x3472f9,_0x4ac3b5._0x439cea,0x38b));function _0x37e399(_0x3966bf,_0x27cc65,_0x252175,_0x2e8c13){return _0x5e5ba4(_0x3966bf-0x14d,_0x2e8c13,_0x252175-_0x1d93fe._0x40a906,_0x27cc65- -_0x1d93fe._0x447240);}function _0x4dd77b(_0x5b405e,_0xde9ff9,_0x5b5875,_0x41d7c5){return _0x42ffe3(_0x5b405e-0x319,_0xde9ff9-_0x3733b4._0x22297a,_0x5b5875,_0x41d7c5-_0x3733b4._0x2d293d);}const _0x4ab142=isUserVisibleReasoning(this[_0x4dd77b(_0x4ac3b5._0x4aa69c,_0x4ac3b5._0x3b1c0a,0x319,_0x4ac3b5._0x57f143)])?this[_0x37e399(0x35a,0x324,0x38f,0x292)][_0x4dd77b(_0x4ac3b5._0x20a2b6,_0x4ac3b5._0x12b83e,_0x4ac3b5._0x260fc5,_0x4ac3b5._0xb9e5d6)](''):void 0x0;return{'id':this[_0x37e399(_0x4ac3b5._0x2d807d,0x216,0x2b1,_0x4ac3b5._0x1acd72)]||_0x37e399(_0x4ac3b5._0x5d867d,_0x4ac3b5._0x47e9e0,0x2ab,_0x4ac3b5._0x493dde)+Date[_0x37e399(_0x4ac3b5._0xcfdacb,0x2aa,0x335,_0x4ac3b5._0x470627)](),'content':createContentBlocks(this[_0x37e399(0x264,0x1b6,_0x4ac3b5._0x25ba5d,0xfd)][_0x37e399(_0x4ac3b5._0x3dd203,_0x4ac3b5._0x374280,0x166,0x27d)](''),this[_0x37e399(0x2c4,_0x4ac3b5._0x14a1aa,_0x4ac3b5._0x3c2940,_0x4ac3b5._0x2f478e)],_0x4ab142),'stopReason':this['stopReason'],'usage':createUsage(this[_0x37e399(_0x4ac3b5._0x18aeab,0x20e,0x190,_0x4ac3b5._0x381323)])};}['consumeEvent'](_0x72b631){const _0x57b8c7={_0x34272f:0x3a8,_0x713fbc:0x404,_0xba02f:0x477,_0x6cb9e:0x447,_0x35ef9f:0x3fa,_0x54275a:0x3d2,_0x2cf36f:0x3f3,_0x196af2:0x3bf,_0x2a1faf:0x3f2,_0x15be0c:0x492,_0x29bac7:0x4c8,_0x3c21e3:0x422,_0xc92c60:0x3a2,_0x10660e:0x412,_0x568065:0x379,_0x5c4e11:0x3f9,_0x1221e8:0x333,_0x10287e:0x30b,_0x3fca01:0x327,_0x2633fd:0x48a,_0x17bc3c:0x2fd,_0x22b17d:0x365,_0x41cc9d:0x3a9,_0x52a8c0:0x333,_0x5863ed:0x304,_0x134f67:0x3f6,_0x1e1a55:0x37a,_0x2010e9:0x30e,_0x59737a:0x2bf,_0x44a17b:0x2df,_0xaf4cfe:0x320,_0xeaed45:0x41b,_0x437181:0x308,_0x24646f:0x449,_0x1984af:0x3fb,_0x2c17aa:0x4ba,_0x12bace:0x2d5,_0x3b0455:0x33a,_0x83e59e:0x31d,_0x818539:0x3b2,_0x513f04:0x2be,_0x590b90:0x385,_0x4f573f:0x49b,_0x44bb94:0x44a,_0x230bca:0x3d3,_0x14bca0:0x468,_0x7ddde7:0x542,_0x35a4d5:0x337,_0x38a96b:0x3c5,_0xb2e7ef:0x388,_0x5a94f1:0x30a,_0x45f9b4:0x40c,_0x48539d:0x417,_0x5adeb7:0x38c,_0x57ebca:0x2d4,_0x226824:0x3d4,_0x22fa65:0x425,_0x19ad1a:0x339,_0x582fd4:0x2c3,_0xd37a9b:0x22e,_0x36db24:0x330,_0xc13199:0x2ed,_0x2e1136:0x2a9,_0x5ea424:0x3e6,_0x34364c:0x3d4,_0x236e17:0x48c,_0x4e17b2:0x3ce,_0x5468ac:0x30c,_0x4346c6:0x396,_0x57e37a:0x2c3,_0x4616bb:0x345,_0x49c34f:0x2fe,_0x2ec4e7:0x3c1,_0x33a114:0x439,_0x377cbd:0x384,_0x48d6cf:0x4a4,_0x25dae7:0x45e,_0x297586:0x409,_0x58bf31:0x39a,_0x4b0579:0x2dc,_0x747c6c:0x451,_0x551c2d:0x485,_0xf41bf3:0x374,_0x5af0c4:0x44e,_0x6a8780:0x297,_0x336a25:0x309,_0x577d65:0x37d,_0x117dff:0x2f4,_0xbc60c2:0x435,_0x47cae3:0x40a,_0x162311:0x28c,_0x44ed52:0x1b6,_0x415e2e:0x1d3,_0x5b8e28:0x382,_0x283bd3:0x31d,_0x14858d:0x358,_0x56f81e:0x4a0,_0x1dd27b:0x2ab,_0x41f5ca:0x39e},_0x204a83={_0x20b008:0x7a},_0x458c6b={_0x1ba920:0x123};function _0x5258cc(_0x165e62,_0x43e7c2,_0x5b20a3,_0x52536d){return _0x5e5ba4(_0x165e62-0x19f,_0x52536d,_0x5b20a3-0x62,_0x5b20a3- -_0x458c6b._0x1ba920);}const _0x96f4f6=[];for(const _0x1e8a1b of _0x72b631[_0x16c370(0x3c1,_0x57b8c7._0x34272f,0x420,_0x57b8c7._0x713fbc)]??[]){const _0x43d173=_0x1e8a1b[_0x5258cc(_0x57b8c7._0xba02f,0x469,_0x57b8c7._0x6cb9e,_0x57b8c7._0x35ef9f)],_0x458f0f=extractChatCompletionReasoningDelta(_0x43d173);_0x458f0f[_0x5258cc(_0x57b8c7._0x54275a,_0x57b8c7._0x2cf36f,_0x57b8c7._0x196af2,0x478)]>0x0&&(this[_0x16c370(_0x57b8c7._0x2a1faf,0x44f,_0x57b8c7._0x15be0c,_0x57b8c7._0x29bac7)]['push'](_0x458f0f),isUserVisibleReasoning(this[_0x5258cc(0x397,_0x57b8c7._0x3c21e3,_0x57b8c7._0xc92c60,_0x57b8c7._0x10660e)])&&_0x96f4f6[_0x16c370(_0x57b8c7._0x568065,_0x57b8c7._0x5c4e11,0x2b0,_0x57b8c7._0x1221e8)]({'type':_0x5258cc(0x442,0x431,0x47e,0x490),'contentIndex':0x0,'delta':_0x458f0f,'itemId':(this[_0x16c370(0x2e4,_0x57b8c7._0x10287e,0x396,0x223)]||_0x5258cc(0x353,0x39a,_0x57b8c7._0x3fca01,0x379))+_0x5258cc(_0x57b8c7._0x2633fd,0x52d,0x45f,0x47e),'outputIndex':0x0}));const _0x420075=typeof _0x43d173?.[_0x16c370(0x2ef,0x370,0x3a4,_0x57b8c7._0x17bc3c)]===_0x5258cc(_0x57b8c7._0x22b17d,_0x57b8c7._0x41cc9d,_0x57b8c7._0x52a8c0,_0x57b8c7._0x5863ed)?_0x43d173['content']:typeof _0x43d173?.[_0x5258cc(0x3d4,_0x57b8c7._0x134f67,0x37a,0x3fa)]==='string'?_0x43d173[_0x5258cc(0x2a8,0x44e,_0x57b8c7._0x1e1a55,0x3a6)]:'';_0x420075[_0x16c370(_0x57b8c7._0x2010e9,_0x57b8c7._0x59737a,_0x57b8c7._0x44a17b,_0x57b8c7._0xaf4cfe)]>0x0&&(this['textParts'][_0x16c370(0x379,0x348,0x308,_0x57b8c7._0xeaed45)](_0x420075),_0x96f4f6[_0x16c370(0x379,_0x57b8c7._0x437181,_0x57b8c7._0x24646f,_0x57b8c7._0x1984af)]({'type':_0x5258cc(0x45f,0x42d,0x45d,_0x57b8c7._0x2c17aa),'index':0x0,'text':_0x420075}));for(const _0x27e608 of _0x43d173?.[_0x5258cc(_0x57b8c7._0x12bace,_0x57b8c7._0x3b0455,_0x57b8c7._0x83e59e,_0x57b8c7._0x818539)]??[]){const _0x12a45e=_0x27e608[_0x5258cc(0x266,_0x57b8c7._0x513f04,0x30e,_0x57b8c7._0x590b90)]??0x0;let _0x564f27=this['toolCallsByIndex'][_0x16c370(0x335,0x3ba,0x3c5,0x3d4)](_0x12a45e);!_0x564f27&&(_0x564f27={'id':_0x27e608['id']??_0x5258cc(0x498,0x3d8,_0x57b8c7._0x4f573f,_0x57b8c7._0x44bb94)+_0x12a45e,'type':_0x5258cc(_0x57b8c7._0x230bca,0x502,0x485,_0x57b8c7._0x14bca0),'function':{'name':_0x27e608[_0x5258cc(0x52f,0x3f9,0x485,_0x57b8c7._0x7ddde7)]?.[_0x16c370(0x2c3,0x22d,0x2b5,_0x57b8c7._0x35a4d5)]??'','arguments':''}},this[_0x5258cc(_0x57b8c7._0x38a96b,_0x57b8c7._0xb2e7ef,_0x57b8c7._0x5a94f1,0x362)]['set'](_0x12a45e,_0x564f27),this[_0x16c370(0x3fa,_0x57b8c7._0x45f9b4,0x461,_0x57b8c7._0x48539d)][_0x16c370(0x379,_0x57b8c7._0x5adeb7,_0x57b8c7._0x57ebca,0x2cc)](_0x564f27));_0x27e608['id']&&(_0x564f27['id']=_0x27e608['id']);_0x27e608[_0x16c370(_0x57b8c7._0x226824,_0x57b8c7._0x22fa65,_0x57b8c7._0x35a4d5,_0x57b8c7._0x19ad1a)]?.[_0x16c370(_0x57b8c7._0x582fd4,_0x57b8c7._0xd37a9b,_0x57b8c7._0x36db24,_0x57b8c7._0xc13199)]&&(_0x564f27['function'][_0x5258cc(_0x57b8c7._0x2e1136,0x41f,0x374,_0x57b8c7._0x5ea424)]=_0x27e608[_0x16c370(_0x57b8c7._0x34364c,0x431,0x47b,0x413)]['name']);!this[_0x5258cc(0x422,0x3c7,0x48c,_0x57b8c7._0x236e17)][_0x16c370(0x328,0x3b1,_0x57b8c7._0xc92c60,_0x57b8c7._0x4e17b2)](_0x12a45e)&&_0x564f27[_0x16c370(0x3d4,0x365,_0x57b8c7._0x5468ac,_0x57b8c7._0x4346c6)][_0x16c370(_0x57b8c7._0x57e37a,0x396,0x2ce,_0x57b8c7._0x4616bb)][_0x5258cc(_0x57b8c7._0x49c34f,0x3e6,_0x57b8c7._0x2ec4e7,_0x57b8c7._0x33a114)]()['length']>0x0&&(_0x96f4f6[_0x5258cc(_0x57b8c7._0x377cbd,_0x57b8c7._0x48d6cf,0x42a,_0x57b8c7._0x25dae7)]({'type':_0x5258cc(_0x57b8c7._0x297586,0x406,_0x57b8c7._0x58bf31,_0x57b8c7._0x4b0579),'id':_0x564f27['id'],'index':_0x12a45e,'name':_0x564f27[_0x5258cc(0x4b5,_0x57b8c7._0x747c6c,_0x57b8c7._0x551c2d,0x4b8)][_0x5258cc(0x2c7,0x3e7,_0x57b8c7._0xf41bf3,0x36f)]}),this[_0x16c370(0x3db,_0x57b8c7._0x5af0c4,0x483,0x30b)][_0x16c370(0x258,_0x57b8c7._0x6a8780,0x2e4,_0x57b8c7._0x336a25)](_0x12a45e));const _0x55424d=_0x27e608['function']?.['arguments']??'';_0x55424d[_0x5258cc(_0x57b8c7._0x577d65,_0x57b8c7._0x117dff,_0x57b8c7._0x196af2,_0x57b8c7._0xbc60c2)]>0x0&&(_0x564f27['function']['arguments']+=_0x55424d,_0x96f4f6[_0x16c370(0x379,0x3f6,_0x57b8c7._0x47cae3,0x2a8)]({'type':'tool_use_delta','id':_0x564f27['id'],'index':_0x12a45e,'inputDelta':_0x55424d}));}_0x1e8a1b[_0x16c370(_0x57b8c7._0x162311,_0x57b8c7._0x44ed52,0x1f9,_0x57b8c7._0x415e2e)]===_0x5258cc(0x304,_0x57b8c7._0x5b8e28,_0x57b8c7._0x283bd3,0x395)&&(this[_0x5258cc(_0x57b8c7._0x14858d,0x494,0x3de,_0x57b8c7._0x56f81e)]=_0x16c370(0x36e,_0x57b8c7._0x1dd27b,_0x57b8c7._0x41f5ca,0x355));}function _0x16c370(_0x330bc9,_0x141392,_0x408a99,_0x5ea270){return _0x5e5ba4(_0x330bc9-0x14e,_0x141392,_0x408a99-_0x204a83._0x20b008,_0x330bc9- -0x1d4);}return _0x96f4f6;}},OpenAiResponsesStreamParser=class{[_0x5e5ba4(0x4a1,0x3b5,0x493,0x437)]=new Map();[_0x42ffe3(0x7d,0x7f,0x103,0xb3)];[_0x42ffe3(0x78,0xa2,0x12f,0xbf)]=new Map();[_0x42ffe3(-0x19,0x82,-0xa8,0x14)]=new Map();[_0x5e5ba4(0x4fc,0x406,0x4c0,0x4ca)]=new Map();[_0x42ffe3(-0x6e,-0x6,0x23,-0xdb)];[_0x5e5ba4(0x5d1,0x603,0x616,0x54a)]=new Map();[_0x42ffe3(-0xbc,-0xb9,-0x163,-0xff)]=new Map();constructor(_0x10bc47){const _0x2f482b={_0xd57a44:0x53a,_0x3e1381:0x501},_0x7ad624={_0x34c946:0x515};function _0x7f887f(_0x714cf8,_0x45c61e,_0x5209a4,_0x21dd54){return _0x42ffe3(_0x21dd54-_0x7ad624._0x34c946,_0x45c61e-0xa7,_0x5209a4,_0x21dd54-0xf5);}this[_0x7f887f(_0x2f482b._0xd57a44,_0x2f482b._0x3e1381,0x55c,0x4a7)]=_0x10bc47;}[_0x42ffe3(-0xc9,-0x14a,-0x135,-0x115)](_0x5c5814){const _0x1f8d3d={_0x4e8340:0xd2,_0x27115c:0x1e2,_0x46a798:0x231,_0x4ab19c:0x172,_0x4dd62a:0x70,_0x24df23:0xf1,_0x317b66:0x24c,_0x3d9514:0x1c8,_0x490b43:0x247,_0x414c96:0x178,_0x18211b:0x11a,_0x356057:0x246,_0x3d8be9:0x18e,_0x2d9747:0x1b9,_0x5a007b:0x1c5,_0x5cfdbe:0x221,_0x679860:0xba,_0x265e64:0x186,_0x15d799:0x1ef,_0x4466f2:0x188,_0x4668e7:0x287,_0xe61e93:0x18c,_0x1888db:0x2e7,_0x1cf868:0x358,_0x5926fc:0x3a2,_0x5eaceb:0x11f},_0xc1c784={_0x39dd99:0x6d,_0x31f5a5:0x66a},_0x2d44f9=_0x5c5814[_0x314e35(-_0x1f8d3d._0x4e8340,-_0x1f8d3d._0x27115c,-0x1b3,-0x130)]('\x0a'),_0x2e3806=_0x2d44f9[_0x314e35(-0x292,-0x1ba,-_0x1f8d3d._0x46a798,-0x23b)](_0x569a2a=>_0x569a2a['startsWith']('event:'))?.[_0x314e35(-_0x1f8d3d._0x4ab19c,-_0x1f8d3d._0x4dd62a,-0xe0,-_0x1f8d3d._0x24df23)](0x6)[_0x43c2dc(-_0x1f8d3d._0x317b66,-0x2b1,-0x1f4,-_0x1f8d3d._0x3d9514)](),_0x89fdb4=_0x2d44f9[_0x314e35(-_0x1f8d3d._0x490b43,-0x188,-_0x1f8d3d._0x414c96,-0x225)](_0x583e47=>_0x583e47['startsWith']('data:'))[_0x314e35(-_0x1f8d3d._0x18211b,-0x19e,-_0x1f8d3d._0x356057,-_0x1f8d3d._0x3d8be9)](_0x124428=>_0x124428[_0x314e35(-0x18e,-0xb2,-0x113,-0xf1)](0x5)[_0x314e35(-0x1d,-0x51,-0xa2,-0xd9)]())[_0x314e35(-_0x1f8d3d._0x2d9747,-0x1eb,-0x232,-_0x1f8d3d._0x5a007b)]('\x0a')[_0x314e35(-_0x1f8d3d._0x5cfdbe,-_0x1f8d3d._0x679860,-0x119,-_0x1f8d3d._0x265e64)]();function _0x43c2dc(_0xcdaa96,_0x3c96b,_0x503bdf,_0x72ccac){return _0x42ffe3(_0xcdaa96- -0x1fd,_0x3c96b-0x1d7,_0x72ccac,_0x72ccac-0xe9);}if(_0x89fdb4[_0x314e35(-0x17d,-_0x1f8d3d._0x15d799,-0x121,-_0x1f8d3d._0x4466f2)]===0x0||_0x89fdb4===_0x43c2dc(-0x23a,-0x24b,-_0x1f8d3d._0x4668e7,-_0x1f8d3d._0xe61e93))return[];function _0x314e35(_0x546e6e,_0x250dbd,_0x387382,_0x4b5b22){return _0x5e5ba4(_0x546e6e-0x5e,_0x387382,_0x387382-_0xc1c784._0x39dd99,_0x4b5b22- -_0xc1c784._0x31f5a5);}const _0x18aaf4=JSON['parse'](_0x89fdb4);return this[_0x43c2dc(-_0x1f8d3d._0x1888db,-_0x1f8d3d._0x1cf868,-0x25a,-_0x1f8d3d._0x5926fc)](_0x2e3806??String(_0x18aaf4[_0x314e35(-0x119,-0xf1,-0x89,-_0x1f8d3d._0x5eaceb)]??''),_0x18aaf4);}[_0x5e5ba4(0x53e,0x512,0x614,0x583)](_0x2f68eb){const _0x36b897={_0xf15dd5:0x6e,_0xf07f7d:0x3,_0x4e4575:0x21},_0x1b7046={_0x5aaaf2:0x39,_0x51d740:0xd,_0x401684:0xf0};function _0x33d1b1(_0x2d39a5,_0x29a98e,_0x43bec0,_0x400cac){return _0x42ffe3(_0x400cac- -_0x1b7046._0x5aaaf2,_0x29a98e-_0x1b7046._0x51d740,_0x29a98e,_0x400cac-_0x1b7046._0x401684);}return this['consumeEvent'](String(_0x2f68eb[_0x33d1b1(-0x9f,_0x36b897._0xf15dd5,-_0x36b897._0xf07f7d,-_0x36b897._0x4e4575)]??''),_0x2f68eb);}['finish'](){const _0x31f905={_0x3c862b:0x57b,_0x383b09:0x5f0,_0x21f6ac:0x53b,_0x5ddafc:0x5ac,_0x280de6:0x604,_0x12442b:0x5c7,_0x33c4c5:0x43d,_0x2c512a:0x3a2,_0x54a755:0x3a3,_0xc31dca:0x41a,_0x2835fb:0x3e3,_0x22acdf:0x490,_0x1db87a:0x425,_0x44f66a:0x4db},_0x28efd8={_0xf1d257:0x183},_0x1b6330={_0x18003b:0x1f},_0x56723f=this[_0x120868(_0x31f905._0x3c862b,0x4de,_0x31f905._0x383b09,0x647)]??{'id':_0x27281c(_0x31f905._0x21f6ac,0x4e4,0x566,_0x31f905._0x5ddafc)+Date[_0x27281c(_0x31f905._0x280de6,0x540,_0x31f905._0x12442b,0x528)](),'object':_0x120868(_0x31f905._0x33c4c5,0x4fb,_0x31f905._0x2c512a,_0x31f905._0x54a755),'status':'completed','output':this[_0x120868(_0x31f905._0xc31dca,_0x31f905._0x2835fb,0x48a,0x416)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x120868(_0x30cc4d,_0x5ecb8e,_0xce0139,_0x461613){return _0x42ffe3(_0x30cc4d-0x4fe,_0x5ecb8e-_0x1b6330._0x18003b,_0x5ecb8e,_0x461613-0x48);}function _0x27281c(_0x1fb97b,_0x5a1bb2,_0x3531d0,_0xd6a96e){return _0x42ffe3(_0x5a1bb2-0x527,_0x5a1bb2-_0x28efd8._0xf1d257,_0x3531d0,_0xd6a96e-0x122);}return parseResponsesResponse(_0x56723f,this[_0x120868(_0x31f905._0x22acdf,0x530,_0x31f905._0x1db87a,_0x31f905._0x44f66a)]);}[_0x5e5ba4(0x56f,0x55d,0x42a,0x4be)](){const _0x3eb6ee={_0x2bda35:0x3f5},_0x5d5e22={_0x1b9138:0x1bb};function _0x14e6cf(_0x37256c,_0x15e319,_0x27b330,_0x5b6f58){return _0x5e5ba4(_0x37256c-0x80,_0x15e319,_0x27b330-0xc7,_0x37256c- -_0x5d5e22._0x1b9138);}return this[_0x14e6cf(_0x3eb6ee._0x2bda35,0x4c5,0x450,0x329)]!==void 0x0;}[_0x42ffe3(-0xea,-0xf4,-0x97,-0x42)](_0x1bd831,_0x34c4bd){const _0x45f960={_0x33d545:0x338,_0x1e46e5:0x3c2,_0x3e5370:0x394,_0x1b2477:0x413,_0x5860e3:0x3d1,_0x42598e:0x3ee,_0x3a2751:0x42f,_0x4df03d:0x402,_0x4d488d:0x356,_0x339c88:0x430,_0x3e3268:0x38d,_0x29fa09:0x3e2,_0x476cda:0x36c,_0x4c2c63:0x314,_0x2dae29:0x351,_0xf023c7:0x369,_0xd3d4f8:0x38e,_0x2d091b:0x38b,_0x5dcd03:0x333,_0x2270bb:0x437,_0x80650f:0x3ac,_0x5b0b57:0x3fe,_0x2ac29f:0x492,_0x54f8d4:0x336,_0x4e2bfb:0x3a8,_0x356fa8:0x362,_0x5500e:0x36d,_0x4cf3b3:0x489,_0x226aa2:0x363,_0x493f29:0x364,_0x36c472:0x3e1,_0x4bccb5:0x27e,_0x4ba546:0x2c8,_0x5f20c4:0x248,_0x261bb2:0x38e,_0x205db4:0x425,_0x4c95bb:0x46a,_0x36f74e:0x450,_0x234cc9:0x4a8,_0x5c8713:0x3ba,_0x2f7c03:0x3ca,_0x4c7054:0x3ac,_0x41b757:0x361,_0x4b8c7a:0x3e5,_0x7669e:0x38e,_0x1e2d7d:0x328,_0x166a2d:0x300,_0x356768:0x46d,_0x30ea6b:0x3dd,_0x1847b3:0x3fd,_0x70e090:0x443,_0x3f8074:0x36c,_0x343072:0x2be,_0x26381d:0x2ba,_0x5a5b9a:0x29c,_0x44f92d:0x36a,_0x1b516e:0x2e6,_0x5306a3:0x2e4,_0x36e58e:0x380,_0x49b5b4:0x32f,_0x35e7eb:0x350,_0x2a81ec:0x3a3,_0xb1bd9a:0x31e,_0xd69aa2:0x318,_0x41fcbb:0x4c4,_0x451edc:0x407,_0x12bf90:0x250,_0x595bea:0x30c,_0x508725:0x364,_0x5f0495:0x35c,_0x14ee66:0x256,_0x373b2:0x39b,_0x44108b:0x385,_0x56fd9a:0x3a9,_0x265e76:0x3a2,_0x42547d:0x296,_0x18492d:0x25f,_0x745e59:0x298,_0x290208:0x2cc,_0x4a366f:0x3e8,_0x48be0b:0x3a1,_0x1038f1:0x2a7,_0x4c4fca:0x340,_0xe2b158:0x333,_0x3bf5ad:0x3cb,_0x3fb8d5:0x2e2,_0x4b1c3f:0x31d,_0x948718:0x2cf,_0x191a8c:0x43a,_0x2b2d2e:0x439,_0x5cdda0:0x43b,_0x31fbaa:0x342,_0x50ba92:0x2fa,_0x4c3e0c:0x276,_0x26ffde:0x2d4,_0x12b525:0x399,_0x2be1f2:0x456,_0x2481d0:0x25d,_0x52aa29:0x31f,_0x1c8705:0x40d,_0xc6600f:0x30c,_0xc4af3d:0x26d,_0x191382:0x38a,_0x2221a4:0x36c,_0x22f3fb:0x275,_0x28e490:0x2e0,_0x21e54c:0x41e,_0x5ab5c7:0x440,_0x26ecb0:0x40e,_0xf0511f:0x451,_0xc7d7a1:0x3da,_0x3f161e:0x400,_0x4b7994:0x34f,_0x393381:0x361,_0x112cc1:0x408,_0x373ce3:0x3f2,_0xd8ccbf:0x38c,_0xc96779:0x396,_0x398925:0x3e2,_0x4f5328:0x3fe,_0x93e2b7:0x2a4,_0xa04d98:0x304,_0x4ac535:0x46a,_0x2ef3e4:0x4d8,_0x5db49c:0x381,_0x1fadb3:0x26d,_0x158cc0:0x26f,_0x2782a2:0x1f2,_0x472fa0:0x328,_0x5a2e8b:0x2b6,_0x17ba8b:0x35e,_0x4af82c:0x2ee,_0x3db77e:0x3d1,_0x1f2392:0x401,_0xd0ec75:0x381,_0x23dd66:0x3bc,_0x51178e:0x3b5,_0x38f7b4:0x3ca,_0x85a0a2:0x37c,_0x2134a1:0x2fc,_0x428ffa:0x324,_0x172fd0:0x2c3,_0x50d421:0x348,_0x2dbd71:0x2f9,_0x4a99d1:0x2f3,_0x5d7d22:0x2ad,_0x1fb8e9:0x316,_0x52e3d0:0x340,_0x4c4ade:0x3d7,_0x800eaa:0x3ee,_0x4be508:0x350,_0x3b5d7b:0x25f,_0x12764b:0x315,_0x586fbf:0x404,_0x443d07:0x458,_0x41a5b5:0x30c,_0x9a295f:0x2d8,_0x291947:0x2fc,_0x200afa:0x4b4,_0x275611:0x317,_0x3a3655:0x3ab,_0x32c64c:0x31d,_0x554273:0x323,_0x3c37a1:0x385,_0x11e034:0x275,_0x101b52:0x3ed,_0x55aa5e:0x408,_0x59efc2:0x360,_0x4aa3d1:0x305,_0x44d004:0x230,_0x50c92e:0x3b6,_0x5d71d4:0x2d6,_0x32ed27:0x2ee,_0x12ea3f:0x389,_0x47de6e:0x332,_0x40316d:0x26e,_0x48842a:0x1c3,_0x5c19d7:0x1c4,_0x49f940:0x2c9,_0x361a59:0x2e9,_0x5f222e:0x385,_0x3ced19:0x2ed,_0x55af4c:0x3b7,_0x2af550:0x466,_0x5420f1:0x389,_0x2ea7c0:0x2cf,_0x32f80d:0x2eb,_0x164522:0x3a1,_0x45d3cf:0x453,_0x40fc1a:0x43c,_0x49bffb:0x354,_0x52f743:0x44d,_0x11538a:0x3cf,_0x53cf47:0x390,_0x4cfa2e:0x385,_0x27b5a4:0x32a,_0x5d53b9:0x390,_0x3f592e:0x316,_0x373bdf:0x37a,_0x3cfd3c:0x318,_0x12f849:0x383,_0x285891:0x2d9,_0x1884e5:0x3d4,_0x374507:0x35d,_0x4c0ce0:0x272,_0x2a20c4:0x345,_0x5ad881:0x39d,_0xfc5b78:0x228,_0x3c3f1d:0x445,_0x476560:0x3e9,_0x450cb1:0x39c,_0x4c960a:0x2d6,_0x15e722:0x4c2,_0x19648b:0x32c,_0x25055c:0x41b,_0x7c3329:0x3d1,_0x2003ad:0x317,_0x398f9d:0x375,_0x9ec684:0x371,_0x44035e:0x390,_0x3e2956:0x306,_0x1d7ce2:0x33d,_0x16535b:0x2eb,_0xe050b1:0x42a,_0x63e64:0x3eb,_0x5df11e:0x2a9,_0x3f5dbd:0x302,_0xa5ecc:0x2e5,_0x283d04:0x3cf,_0xab30b6:0x3d4,_0x46a32e:0x33e,_0x175d17:0x2df,_0x329c5a:0x389,_0x56b55a:0x415,_0x12721c:0x24f,_0x11fd79:0x244,_0x5ed93d:0x30c,_0x4fb296:0x4a7,_0xb49fea:0x3fe,_0xe8546b:0x396,_0xf304e4:0x427,_0x59bb98:0x3b2,_0x346fd0:0x36b,_0x198e2d:0x313,_0x160097:0x385,_0x484e0a:0x2c3,_0x2cd3dd:0x2c1,_0x49be8e:0x316,_0x5c1bc9:0x3d1,_0x2333db:0x31d,_0x2342ce:0x3de,_0x1748a3:0x270,_0x3d7ba4:0x3b2,_0x451815:0x28e,_0x3b45d3:0x2d8,_0x44730d:0x23f,_0xf00ff:0x3e3,_0xdf7f9f:0x435,_0x1bcc83:0x39d,_0xa9a066:0x3be,_0x3cbfb6:0x46b,_0x1b5097:0x4dd,_0x5c7b3d:0x450,_0x4224f3:0x331,_0x28c5bd:0x39e,_0x23cb11:0x33b,_0x2d3ebb:0x4f5,_0x28d615:0x468,_0x236378:0x37e,_0x5adc25:0x34a,_0x11097e:0x231,_0x3e81b5:0x1c2,_0x1c4662:0x1ca,_0x523b4f:0x3df,_0x356509:0x42e,_0x53838b:0x388,_0xb93eb3:0x34d,_0x3bb143:0x37f,_0x3ff9f3:0x3fe,_0x514532:0x475,_0x557908:0x358,_0x161df2:0x3d0,_0x52a58c:0x459,_0x2608e7:0x334,_0x1c3446:0x322,_0x40c062:0x256,_0x8cd0e3:0x2df,_0x28fd51:0x1f6,_0x16a24f:0x240,_0xb61aed:0x39d,_0x3c4ea8:0x42a,_0x20daef:0x3cf,_0x425382:0x3e8,_0x4d270a:0x291,_0x5e1f97:0x1e5,_0x2d1c32:0x48b,_0xf1210a:0x3c0,_0x99ce18:0x24b,_0x6065e6:0x30a,_0x398ac2:0x197,_0x432aa0:0x23a,_0x371672:0x299,_0x23d0c8:0x2d1,_0x112eda:0x381,_0x176a65:0x3d8,_0x178552:0x320,_0x8873a:0x2dc,_0x4a9d12:0x203,_0x321da9:0x245,_0x4f2e52:0x2d7,_0x21608f:0x2de,_0x37ba73:0x3b3,_0x379159:0x38c,_0x4b0599:0x320,_0x5c92db:0x4a0,_0x879e61:0x330,_0x56bcf0:0x1f4},_0x3dffd6={_0x51fffb:0xb1},_0x18d6ea={_0x12ce70:0x3cb,_0x493355:0xe8};function _0x55301e(_0x1310ef,_0x10b252,_0x33f695,_0x3dea48){return _0x42ffe3(_0x3dea48-_0x18d6ea._0x12ce70,_0x10b252-_0x18d6ea._0x493355,_0x1310ef,_0x3dea48-0x3d);}function _0x42f28e(_0x54de8c,_0x378059,_0x1c39da,_0x443b61){return _0x42ffe3(_0x54de8c-0x352,_0x378059-_0x3dffd6._0x51fffb,_0x443b61,_0x443b61-0x5f);}switch(_0x1bd831){case _0x42f28e(_0x45f960._0x33d545,0x2c0,0x2ab,_0x45f960._0x1e46e5):{const _0x5ee0fd=typeof _0x34c4bd['output_index']===_0x55301e(_0x45f960._0x3e5370,_0x45f960._0x1b2477,0x3c8,_0x45f960._0x5860e3)?_0x34c4bd['output_index']:0x0,_0x21e81a=typeof _0x34c4bd[_0x55301e(_0x45f960._0x42598e,0x4d5,_0x45f960._0x3a2751,_0x45f960._0x4df03d)]==='string'?_0x34c4bd[_0x55301e(0x469,_0x45f960._0x4d488d,0x462,0x402)]:'';if(_0x21e81a['length']>0x0){const _0x4e547b=this[_0x55301e(_0x45f960._0x339c88,_0x45f960._0x3e3268,0x427,_0x45f960._0x29fa09)]['get'](_0x5ee0fd)??[];return _0x4e547b[_0x42f28e(_0x45f960._0x476cda,_0x45f960._0x4c2c63,0x2a4,_0x45f960._0x2dae29)](_0x21e81a),this[_0x42f28e(_0x45f960._0xf023c7,0x42e,0x33c,0x2e3)][_0x42f28e(_0x45f960._0xd3d4f8,0x40a,_0x45f960._0x2d091b,0x398)](_0x5ee0fd,_0x4e547b),[{'type':_0x42f28e(0x39f,_0x45f960._0x5dcd03,_0x45f960._0x2270bb,0x3ad),'index':_0x5ee0fd,'text':_0x21e81a}];}break;}case _0x42f28e(_0x45f960._0x80650f,0x3ed,_0x45f960._0x4c2c63,0x3e1):{const _0x328077=typeof _0x34c4bd[_0x55301e(0x475,_0x45f960._0x2270bb,0x39c,_0x45f960._0x5b0b57)]===_0x55301e(0x3c3,0x3f2,_0x45f960._0x2ac29f,_0x45f960._0x5860e3)?_0x34c4bd[_0x55301e(_0x45f960._0x54f8d4,_0x45f960._0x4e2bfb,0x48c,0x3fe)]:void 0x0,_0x116936=_0x34c4bd[_0x55301e(0x4b1,_0x45f960._0x356fa8,_0x45f960._0x5500e,0x3f7)];if(_0x116936?.[_0x55301e(_0x45f960._0x4cf3b3,_0x45f960._0x226aa2,0x331,0x3e3)]==='function_call'&&_0x116936[_0x42f28e(_0x45f960._0x493f29,_0x45f960._0x36c472,0x381,0x383)]&&_0x116936[_0x55301e(0x2b0,0x356,_0x45f960._0x4bccb5,0x32f)])return this[_0x42f28e(0x296,0x336,_0x45f960._0x4ba546,_0x45f960._0x5f20c4)][_0x42f28e(_0x45f960._0x261bb2,_0x45f960._0x205db4,0x3c3,0x3ac)](_0x116936[_0x55301e(0x3f2,_0x45f960._0x4c95bb,_0x45f960._0x36f74e,0x3dd)],{'id':_0x116936[_0x55301e(_0x45f960._0x234cc9,0x35b,_0x45f960._0x5c8713,0x3dd)],'type':'function','function':{'name':_0x116936['name'],'arguments':''}}),_0x328077!==void 0x0&&(this[_0x42f28e(_0x45f960._0x2f7c03,_0x45f960._0x4c7054,_0x45f960._0x41b757,_0x45f960._0x4b8c7a)][_0x42f28e(_0x45f960._0x7669e,0x440,_0x45f960._0x1e2d7d,_0x45f960._0x166a2d)](_0x328077,_0x116936[_0x55301e(_0x45f960._0x356768,0x46e,0x3f6,_0x45f960._0x30ea6b)]),this['callIdToOutputIndex'][_0x42f28e(_0x45f960._0xd3d4f8,_0x45f960._0x1847b3,_0x45f960._0x3e3268,0x436)](_0x116936[_0x55301e(0x34a,_0x45f960._0x4c95bb,_0x45f960._0x70e090,_0x45f960._0x30ea6b)],_0x328077)),[{'type':_0x42f28e(0x2dc,0x312,_0x45f960._0x3f8074,_0x45f960._0x343072),'id':_0x116936[_0x42f28e(0x364,_0x45f960._0x26381d,_0x45f960._0x5a5b9a,_0x45f960._0x44f92d)],'index':_0x328077??0x0,'name':_0x116936[_0x55301e(_0x45f960._0x1b516e,_0x45f960._0x5306a3,_0x45f960._0x36e58e,_0x45f960._0x49b5b4)]}];if(_0x116936?.[_0x55301e(0x346,0x312,_0x45f960._0x35e7eb,0x3e3)]==='reasoning'&&_0x116936['id']){const _0x12056d=this[_0x55301e(_0x45f960._0x2a81ec,0x3ac,0x460,0x39d)](_0x116936['id'],_0x328077);_0x328077!==void 0x0&&this[_0x55301e(_0x45f960._0xb1bd9a,0x452,_0x45f960._0xd69aa2,0x3b2)][_0x55301e(0x427,0x387,_0x45f960._0x41fcbb,_0x45f960._0x451edc)](_0x328077,_0x12056d['id']);}break;}case _0x55301e(0x30b,_0x45f960._0x12bf90,_0x45f960._0x595bea,0x2f1):{const _0xf41817=typeof _0x34c4bd[_0x42f28e(_0x45f960._0x508725,_0x45f960._0x5f0495,0x2ea,0x398)]===_0x42f28e(0x275,_0x45f960._0x14ee66,0x318,0x216)?_0x34c4bd[_0x55301e(0x3e9,0x453,0x3df,_0x45f960._0x30ea6b)]:typeof _0x34c4bd[_0x42f28e(0x385,0x3c8,_0x45f960._0x373b2,0x40b)]==='number'?this['outputIndexToCallId']['get'](_0x34c4bd[_0x42f28e(_0x45f960._0x44108b,_0x45f960._0x56fd9a,0x3a5,_0x45f960._0x265e76)]):void 0x0,_0x4c8b74=typeof _0x34c4bd['delta']==='string'?_0x34c4bd['delta']:'',_0x5cf493=_0xf41817?this[_0x42f28e(_0x45f960._0x42547d,_0x45f960._0x18492d,_0x45f960._0x745e59,0x20d)][_0x55301e(0x2cc,_0x45f960._0x290208,_0x45f960._0x4a366f,_0x45f960._0x48be0b)](_0xf41817):void 0x0;if(_0x5cf493&&_0x4c8b74[_0x42f28e(0x301,_0x45f960._0x1038f1,_0x45f960._0x4c4fca,_0x45f960._0xe2b158)]>0x0)return _0x5cf493['function'][_0x55301e(_0x45f960._0x3bf5ad,_0x45f960._0x3fb8d5,0x414,0x3b5)]+=_0x4c8b74,[{'type':'tool_use_delta','id':_0x5cf493['id'],'index':this[_0x55301e(_0x45f960._0x595bea,_0x45f960._0x4b1c3f,0x277,_0x45f960._0x948718)][_0x55301e(0x35c,0x431,_0x45f960._0x191a8c,_0x45f960._0x48be0b)](_0x5cf493['id'])??(typeof _0x34c4bd[_0x42f28e(0x385,0x456,_0x45f960._0x2b2d2e,0x2f9)]===_0x55301e(0x4a2,_0x45f960._0x5cdda0,0x33e,0x3d1)?_0x34c4bd[_0x42f28e(0x385,0x31c,_0x45f960._0x31fbaa,_0x45f960._0x50ba92)]:0x0),'inputDelta':_0x4c8b74}];break;}case _0x42f28e(_0x45f960._0x4c3e0c,_0x45f960._0x26ffde,0x276,0x261):{const _0x1674e3=typeof _0x34c4bd[_0x55301e(_0x45f960._0x12b525,_0x45f960._0x2be1f2,0x38f,0x3dd)]==='string'?_0x34c4bd['call_id']:typeof _0x34c4bd[_0x55301e(0x408,0x44f,0x3fc,0x3fe)]===_0x55301e(_0x45f960._0x2d091b,0x3ff,0x304,0x3d1)?this[_0x55301e(0x491,0x3c3,0x3d4,0x443)][_0x42f28e(_0x45f960._0x1e2d7d,_0x45f960._0x2481d0,_0x45f960._0x7669e,_0x45f960._0x52aa29)](_0x34c4bd[_0x55301e(0x4c2,0x466,_0x45f960._0x1c8705,0x3fe)]):void 0x0,_0x1a0aeb=_0x1674e3?this['toolCalls'][_0x55301e(_0x45f960._0x36f74e,_0x45f960._0xc6600f,0x474,_0x45f960._0x48be0b)](_0x1674e3):void 0x0;_0x1a0aeb&&typeof _0x34c4bd[_0x42f28e(0x33c,_0x45f960._0xc4af3d,_0x45f960._0x191382,_0x45f960._0x2221a4)]===_0x42f28e(_0x45f960._0x22f3fb,0x268,_0x45f960._0x28e490,0x315)&&(_0x1a0aeb[_0x55301e(0x436,_0x45f960._0x21e54c,0x3c0,_0x45f960._0x5ab5c7)][_0x55301e(_0x45f960._0x26ecb0,_0x45f960._0xf0511f,0x3be,0x3b5)]=_0x34c4bd[_0x42f28e(0x33c,0x30f,_0x45f960._0xc7d7a1,_0x45f960._0x3f161e)]);break;}case _0x55301e(0x400,_0x45f960._0x4b7994,_0x45f960._0x393381,_0x45f960._0x112cc1):{const _0x49c731=typeof _0x34c4bd[_0x42f28e(0x385,0x2c2,0x332,_0x45f960._0x373ce3)]===_0x55301e(_0x45f960._0x4b8c7a,_0x45f960._0xd8ccbf,_0x45f960._0xc96779,0x3d1)?_0x34c4bd[_0x55301e(0x361,_0x45f960._0x398925,0x460,_0x45f960._0x4f5328)]:void 0x0,_0x2decb2=_0x34c4bd['item'];if(_0x2decb2?.['type']===_0x55301e(0x2f8,_0x45f960._0x93e2b7,0x39f,_0x45f960._0xa04d98)){const _0x18b9c2=_0x2decb2[_0x55301e(_0x45f960._0x4b8c7a,0x414,_0x45f960._0x4ac535,0x3dd)]??(_0x49c731!==void 0x0?this[_0x55301e(_0x45f960._0x2ef3e4,_0x45f960._0x29fa09,_0x45f960._0x5db49c,_0x45f960._0x70e090)][_0x42f28e(_0x45f960._0x1e2d7d,_0x45f960._0x1fadb3,_0x45f960._0x158cc0,0x37e)](_0x49c731):void 0x0),_0x56a5a6=_0x18b9c2?this[_0x42f28e(0x296,_0x45f960._0x2782a2,0x2be,0x329)][_0x42f28e(_0x45f960._0x472fa0,_0x45f960._0x5a2e8b,_0x45f960._0x42547d,0x326)](_0x18b9c2):void 0x0;_0x56a5a6&&typeof _0x2decb2['arguments']===_0x55301e(_0x45f960._0x17ba8b,0x245,0x342,_0x45f960._0x4af82c)&&(_0x56a5a6[_0x55301e(_0x45f960._0x3db77e,0x432,_0x45f960._0x1f2392,0x440)][_0x55301e(0x374,0x3da,_0x45f960._0xd0ec75,0x3b5)]=_0x2decb2[_0x55301e(_0x45f960._0x23dd66,0x325,0x449,_0x45f960._0x51178e)]);break;}if(_0x2decb2?.[_0x42f28e(_0x45f960._0x44f92d,_0x45f960._0x38f7b4,_0x45f960._0x85a0a2,_0x45f960._0x2134a1)]===_0x42f28e(0x352,_0x45f960._0x4c4fca,0x325,_0x45f960._0x356fa8)&&_0x2decb2['id']){const _0x23e1a2=this[_0x42f28e(_0x45f960._0x428ffa,_0x45f960._0x172fd0,_0x45f960._0x50d421,_0x45f960._0x2dbd71)](_0x2decb2['id'],_0x49c731);typeof _0x2decb2['encrypted_content']===_0x42f28e(0x275,_0x45f960._0x4a99d1,0x317,0x1c5)&&(_0x23e1a2[_0x42f28e(0x29a,_0x45f960._0x5d7d22,_0x45f960._0x1fb8e9,_0x45f960._0x52e3d0)]=_0x2decb2[_0x55301e(_0x45f960._0x4c4ade,_0x45f960._0x800eaa,0x353,0x3df)]);if(Array[_0x55301e(0x3bb,_0x45f960._0x4be508,_0x45f960._0x3b5d7b,_0x45f960._0x12764b)](_0x2decb2['summary']))for(let _0x4f8b3d=0x0;_0x4f8b3d<_0x2decb2[_0x55301e(_0x45f960._0xd3d4f8,_0x45f960._0x586fbf,_0x45f960._0x443d07,0x385)][_0x42f28e(0x301,_0x45f960._0x41a5b5,_0x45f960._0x9a295f,_0x45f960._0x291947)];_0x4f8b3d+=0x1){const _0x2b4d7c=_0x2decb2['summary'][_0x4f8b3d];_0x2b4d7c[_0x55301e(_0x45f960._0x200afa,0x43c,_0x45f960._0x200afa,0x3e3)]===_0x42f28e(0x2e1,_0x45f960._0x275611,_0x45f960._0x3a3655,0x221)&&typeof _0x2b4d7c[_0x55301e(0x424,_0x45f960._0x32c64c,_0x45f960._0x554273,0x37e)]==='string'&&_0x23e1a2[_0x55301e(0x44c,0x357,_0x45f960._0x3c37a1,0x383)]['set'](_0x4f8b3d,_0x2b4d7c['text']);}typeof _0x2decb2['text']===_0x42f28e(_0x45f960._0x11e034,0x1aa,0x2e9,0x233)&&_0x23e1a2[_0x42f28e(0x3be,_0x45f960._0x101b52,0x47f,_0x45f960._0x55aa5e)][_0x55301e(0x4a6,0x372,_0x45f960._0x59efc2,0x407)](0x0,_0x2decb2[_0x42f28e(_0x45f960._0x4aa3d1,_0x45f960._0x44d004,_0x45f960._0x50c92e,0x342)]);}break;}case _0x42f28e(0x2f4,0x2bc,_0x45f960._0x275611,_0x45f960._0x5d71d4):{const _0x5cf229=typeof _0x34c4bd[_0x55301e(0x3d1,0x4b0,0x385,0x402)]===_0x55301e(0x33c,0x30f,0x332,_0x45f960._0x32ed27)?_0x34c4bd[_0x42f28e(_0x45f960._0x12ea3f,0x374,_0x45f960._0x47de6e,0x443)]:'',_0x34260a=typeof _0x34c4bd[_0x55301e(0x315,0x2bc,_0x45f960._0x40316d,0x2c8)]===_0x42f28e(0x275,0x332,_0x45f960._0x48842a,_0x45f960._0x5c19d7)?_0x34c4bd[_0x42f28e(0x24f,_0x45f960._0x49f940,_0x45f960._0x361a59,0x273)]:typeof _0x34c4bd[_0x42f28e(_0x45f960._0x5f222e,_0x45f960._0x3ced19,_0x45f960._0x55af4c,0x32e)]===_0x55301e(_0x45f960._0x2af550,0x3e9,_0x45f960._0x5420f1,0x3d1)?this['outputIndexToReasoningId'][_0x55301e(_0x45f960._0x2ea7c0,0x3bf,_0x45f960._0x32f80d,_0x45f960._0x164522)](_0x34c4bd[_0x42f28e(0x385,0x3ab,0x407,_0x45f960._0x36e58e)]):void 0x0,_0x201c7f=typeof _0x34c4bd[_0x55301e(_0x45f960._0x45d3cf,_0x45f960._0x40fc1a,_0x45f960._0x4ac535,0x3fe)]===_0x55301e(0x484,_0x45f960._0x49bffb,_0x45f960._0x52f743,0x3d1)?_0x34c4bd[_0x55301e(0x3de,0x37b,_0x45f960._0x11538a,0x3fe)]:0x0,_0x2560a8=typeof _0x34c4bd[_0x55301e(0x413,0x3c3,0x329,_0x45f960._0x53cf47)]===_0x55301e(0x422,_0x45f960._0x4cfa2e,0x4a5,0x3d1)?_0x34c4bd[_0x55301e(_0x45f960._0x42598e,0x316,_0x45f960._0x27b5a4,_0x45f960._0x5d53b9)]:0x0;if(_0x34260a&&_0x5cf229[_0x55301e(_0x45f960._0x3f592e,0x382,0x427,_0x45f960._0x373bdf)]>0x0){const _0x837c8=this[_0x42f28e(_0x45f960._0x428ffa,_0x45f960._0x3cfd3c,0x24f,0x2e2)](_0x34260a,_0x201c7f);_0x837c8['summaryByIndex']['set'](_0x2560a8,''+(_0x837c8[_0x55301e(0x3f4,0x393,0x2e5,_0x45f960._0x12f849)][_0x42f28e(_0x45f960._0x472fa0,_0x45f960._0x285891,_0x45f960._0x1884e5,0x3c9)](_0x2560a8)??'')+_0x5cf229);if(isUserVisibleReasoning(this[_0x55301e(0x366,_0x45f960._0x3db77e,0x42c,_0x45f960._0x374507)]))return[{'type':_0x42f28e(0x292,_0x45f960._0x4c0ce0,_0x45f960._0x2a20c4,0x288),'delta':_0x5cf229,'itemId':_0x34260a,'outputIndex':_0x201c7f,'summaryIndex':_0x2560a8}];}break;}case'response.reasoning_summary_text.done':{const _0x219770=typeof _0x34c4bd[_0x55301e(0x2ce,_0x45f960._0x5ad881,_0x45f960._0xfc5b78,0x2c8)]==='string'?_0x34c4bd['item_id']:typeof _0x34c4bd[_0x42f28e(_0x45f960._0x5f222e,_0x45f960._0x3c3f1d,0x315,0x2d9)]===_0x55301e(0x444,_0x45f960._0x476560,_0x45f960._0x450cb1,0x3d1)?this[_0x42f28e(0x339,0x34a,_0x45f960._0x4a366f,0x320)][_0x42f28e(0x328,_0x45f960._0x1847b3,0x2c4,_0x45f960._0x4c960a)](_0x34c4bd[_0x55301e(0x32c,_0x45f960._0x15e722,_0x45f960._0x19648b,_0x45f960._0x5b0b57)]):void 0x0,_0x4366cb=typeof _0x34c4bd['output_index']===_0x55301e(0x3f9,0x447,_0x45f960._0x25055c,_0x45f960._0x7c3329)?_0x34c4bd['output_index']:0x0,_0x15f0e4=typeof _0x34c4bd[_0x42f28e(_0x45f960._0x2003ad,0x259,0x335,0x3d5)]==='number'?_0x34c4bd[_0x55301e(_0x45f960._0x398f9d,_0x45f960._0x9ec684,0x458,_0x45f960._0x44035e)]:0x0,_0x428bfe=typeof _0x34c4bd['text']===_0x55301e(0x320,0x24c,0x25a,_0x45f960._0x4af82c)?_0x34c4bd[_0x55301e(_0x45f960._0x4b8c7a,0x2fc,0x33b,0x37e)]:'';_0x219770&&this[_0x55301e(_0x45f960._0x3e2956,_0x45f960._0x1d7ce2,_0x45f960._0x16535b,0x39d)](_0x219770,_0x4366cb)['summaryByIndex'][_0x55301e(_0x45f960._0xe050b1,0x3cf,_0x45f960._0x63e64,_0x45f960._0x451edc)](_0x15f0e4,_0x428bfe);break;}case _0x55301e(_0x45f960._0x5df11e,0x33f,_0x45f960._0x3f5dbd,_0x45f960._0xa5ecc):{const _0x2a96c4=typeof _0x34c4bd[_0x42f28e(0x389,_0x45f960._0x283d04,_0x45f960._0xab30b6,0x38c)]===_0x55301e(_0x45f960._0x46a32e,_0x45f960._0x398f9d,_0x45f960._0x175d17,0x2ee)?_0x34c4bd[_0x42f28e(_0x45f960._0x329c5a,0x3d6,0x2e6,_0x45f960._0x56b55a)]:'',_0x415f1e=typeof _0x34c4bd[_0x42f28e(_0x45f960._0x12721c,0x20b,0x2dc,0x1c8)]===_0x55301e(_0x45f960._0x11fd79,_0x45f960._0x5ed93d,0x323,0x2ee)?_0x34c4bd[_0x42f28e(0x24f,0x2b5,0x212,_0x45f960._0x4c3e0c)]:typeof _0x34c4bd[_0x55301e(0x44a,_0x45f960._0x4fb296,0x3e1,_0x45f960._0xb49fea)]===_0x55301e(0x302,_0x45f960._0xe8546b,_0x45f960._0xf304e4,0x3d1)?this[_0x55301e(0x42e,0x326,0x3f0,_0x45f960._0x59bb98)][_0x55301e(_0x45f960._0x346fd0,0x454,_0x45f960._0x198e2d,_0x45f960._0x48be0b)](_0x34c4bd[_0x42f28e(_0x45f960._0x160097,_0x45f960._0x484e0a,_0x45f960._0x2cd3dd,_0x45f960._0x49be8e)]):void 0x0,_0x2270a3=typeof _0x34c4bd['output_index']===_0x55301e(_0x45f960._0x450cb1,0x4a5,0x3f8,_0x45f960._0x5c1bc9)?_0x34c4bd[_0x42f28e(0x385,_0x45f960._0x2333db,_0x45f960._0x2342ce,0x340)]:0x0,_0x4e2dea=typeof _0x34c4bd[_0x42f28e(0x28e,_0x45f960._0x17ba8b,_0x45f960._0x1748a3,0x217)]===_0x55301e(_0x45f960._0x3d7ba4,0x3e3,0x3b0,0x3d1)?_0x34c4bd[_0x42f28e(_0x45f960._0x451815,_0x45f960._0x3b45d3,_0x45f960._0x356fa8,_0x45f960._0x44730d)]:0x0;if(_0x415f1e&&_0x2a96c4['length']>0x0){const _0x243c8e=this[_0x55301e(_0x45f960._0xf00ff,0x3ca,_0x45f960._0xdf7f9f,_0x45f960._0x1bcc83)](_0x415f1e,_0x2270a3);_0x243c8e[_0x42f28e(_0x45f960._0xa9a066,_0x45f960._0x112cc1,0x472,0x425)][_0x55301e(_0x45f960._0x3cbfb6,_0x45f960._0x1b5097,_0x45f960._0x5c7b3d,0x407)](_0x4e2dea,''+(_0x243c8e['textByIndex']['get'](_0x4e2dea)??'')+_0x2a96c4);if(isUserVisibleReasoning(this[_0x55301e(_0x45f960._0x4224f3,_0x45f960._0x28c5bd,_0x45f960._0x23cb11,0x35d)]))return[{'type':_0x55301e(_0x45f960._0x2d3ebb,_0x45f960._0x28d615,0x509,0x439),'contentIndex':_0x4e2dea,'delta':_0x2a96c4,'itemId':_0x415f1e,'outputIndex':_0x2270a3}];}break;}case _0x55301e(_0x45f960._0x236378,0x37b,_0x45f960._0x5adc25,0x300):{const _0x1d6a51=typeof _0x34c4bd[_0x42f28e(0x24f,_0x45f960._0x11097e,0x322,_0x45f960._0x3e81b5)]===_0x42f28e(0x275,0x204,_0x45f960._0x1c4662,0x204)?_0x34c4bd[_0x55301e(0x267,0x232,0x36d,0x2c8)]:typeof _0x34c4bd[_0x42f28e(0x385,_0x45f960._0x523b4f,0x2cd,_0x45f960._0x356509)]===_0x55301e(_0x45f960._0x53838b,_0x45f960._0xb93eb3,_0x45f960._0x3bb143,_0x45f960._0x3db77e)?this['outputIndexToReasoningId']['get'](_0x34c4bd[_0x55301e(0x426,0x3dc,0x371,_0x45f960._0x3ff9f3)]):void 0x0,_0x5da6c0=typeof _0x34c4bd[_0x55301e(_0x45f960._0x514532,0x481,0x42d,_0x45f960._0xb49fea)]===_0x42f28e(_0x45f960._0x557908,0x405,_0x45f960._0x161df2,0x39a)?_0x34c4bd[_0x42f28e(_0x45f960._0x160097,_0x45f960._0x52a58c,_0x45f960._0x3a3655,0x2c2)]:0x0,_0x590ce1=typeof _0x34c4bd[_0x55301e(_0x45f960._0x51178e,_0x45f960._0x2608e7,0x237,0x307)]===_0x42f28e(_0x45f960._0x557908,_0x45f960._0x2f7c03,_0x45f960._0x1c3446,0x3a4)?_0x34c4bd[_0x42f28e(0x28e,0x318,0x2f4,_0x45f960._0x40c062)]:0x0,_0x4fa14c=typeof _0x34c4bd['text']===_0x42f28e(0x275,_0x45f960._0x8cd0e3,_0x45f960._0x28fd51,_0x45f960._0x16a24f)?_0x34c4bd['text']:'';_0x1d6a51&&this[_0x42f28e(0x324,0x3e7,_0x45f960._0xb61aed,0x2ad)](_0x1d6a51,_0x5da6c0)['textByIndex'][_0x42f28e(0x38e,_0x45f960._0x175d17,0x2e4,_0x45f960._0x3c4ea8)](_0x590ce1,_0x4fa14c);break;}case'response.completed':{this[_0x42f28e(_0x45f960._0x20daef,0x468,_0x45f960._0x425382,0x3da)]=_0x34c4bd[_0x42f28e(_0x45f960._0x4d270a,_0x45f960._0x5adc25,0x2a8,_0x45f960._0x5e1f97)];break;}case _0x55301e(_0x45f960._0x2d1c32,0x402,0x3e7,_0x45f960._0xf1210a):{const _0x3f280c=_0x34c4bd[_0x55301e(_0x45f960._0x99ce18,_0x45f960._0x285891,_0x45f960._0xb1bd9a,_0x45f960._0x6065e6)];throw new ProviderStreamEventError(_0x3f280c?.[_0x42f28e(0x25e,_0x45f960._0x398ac2,_0x45f960._0x432aa0,_0x45f960._0x371672)]?.[_0x55301e(0x407,0x35c,_0x45f960._0x23d0c8,_0x45f960._0x112eda)]??_0x55301e(0x2a6,0x337,_0x45f960._0x176a65,_0x45f960._0x178552),{'code':_0x3f280c?.['error']?.[_0x55301e(_0x45f960._0x3e2956,0x312,0x3a6,_0x45f960._0x8873a)],'retryable':!![]});}case _0x42f28e(0x25e,_0x45f960._0x4a9d12,0x2a2,_0x45f960._0x321da9):{const _0x465879=_0x34c4bd[_0x55301e(_0x45f960._0x4224f3,0x2ae,0x22d,_0x45f960._0x4f2e52)];throw new ProviderStreamEventError(_0x465879?.[_0x42f28e(0x308,0x364,_0x45f960._0x21608f,_0x45f960._0x37ba73)]??_0x55301e(0x340,_0x45f960._0x379159,_0x45f960._0x373bdf,_0x45f960._0x4b0599),{'code':_0x465879?.['code'],'retryable':!![],'status':typeof _0x34c4bd['status']===_0x55301e(0x4a2,_0x45f960._0x5c92db,0x488,_0x45f960._0x7c3329)?_0x34c4bd[_0x42f28e(0x274,_0x45f960._0x879e61,0x2b7,_0x45f960._0x56bcf0)]:void 0x0});}}return[];}[_0x42ffe3(-0xe4,-0xbd,-0x132,-0xef)](){const _0x299984={_0x39a6b2:0xc4,_0x262253:0x2,_0x5d5e8a:0x4a,_0x19e6cc:0x351,_0x34a177:0x2e9,_0x5674db:0x343,_0x79ce78:0xf8,_0x4acd59:0x73,_0x5118ec:0xc4,_0x14c0e5:0x52,_0x49e25f:0x314,_0x59ea5f:0x335,_0x57dd52:0x285,_0x4fc929:0x112,_0x25a8dc:0xf2,_0x26fd00:0x20,_0x356787:0xf,_0x1bad20:0xd0,_0x360c09:0x2f,_0x23f5e5:0xde,_0x35b565:0x35e,_0x5b2fe9:0x3d4,_0x379755:0x73,_0x38c04b:0xbc,_0xb79dca:0x106,_0x2f4870:0xc4,_0x305c17:0x240,_0x3f1720:0x23c,_0x148a62:0x336,_0x141332:0x164,_0x1a904e:0xcb,_0x2c2fe0:0x138,_0x260ed3:0xf4,_0xe8a91:0x35e,_0x314eb9:0x373,_0x22d8c0:0x3c1,_0x3a6bbf:0x272,_0x528ab7:0x1f6,_0x287243:0x2c8,_0x572f05:0x27a,_0x2ed24c:0xaf,_0x4b46c6:0xe,_0x1e3a09:0x317,_0x470439:0x130,_0x11fd56:0x320,_0x5054cd:0x2fd,_0x32359a:0x1b,_0x16d251:0xc6,_0x3ebb88:0x36,_0x200d24:0x34,_0x4f4e46:0x383,_0x40451d:0x342,_0x134fcc:0x2cb,_0x179a64:0x3c8,_0x41f9dc:0x29e,_0x3f4ed7:0x37f,_0xd708ab:0x34d,_0x246f45:0x355,_0x10e240:0x96,_0xfa087f:0x4b,_0x47139d:0x26,_0x1fc862:0x3,_0x2a206e:0x485},_0x2cd38b={_0x17a17d:0x13},_0x9b5a0e={_0x32c4dd:0x4e,_0x1c85f1:0x165},_0x4c33ef={_0x3ffd80:0x1e2},_0x59ead9={_0x2f7daa:0xfa},_0xf8b361=[];for(const [_0x5baf50,_0x3f02ba]of this[_0x2519a8(0x54,0x94,_0x299984._0x39a6b2,0xdb)][_0x2519a8(_0x299984._0x262253,0x21,_0x299984._0x5d5e8a,0x15)]()){const _0x203c6f=_0x3f02ba[_0x3c8930(_0x299984._0x19e6cc,_0x299984._0x34a177,0x22d,_0x299984._0x5674db)]('');if(_0x203c6f[_0x2519a8(0xd8,0x93,_0x299984._0x79ce78,_0x299984._0x4acd59)]===0x0)continue;_0xf8b361['push']({'index':_0x5baf50,'item':{'type':_0x2519a8(0x14e,0xd6,-0x1a,0x7a),'role':_0x2519a8(-0x70,_0x299984._0x5118ec,_0x299984._0x14c0e5,0x18),'content':[{'type':_0x3c8930(0x3e3,_0x299984._0x49e25f,_0x299984._0x59ea5f,_0x299984._0x57dd52),'text':_0x203c6f}]}});}for(const _0x24ad5b of this[_0x2519a8(_0x299984._0x4fc929,_0x299984._0x25a8dc,_0x299984._0x26fd00,0x5b)][_0x2519a8(0x41,0x2e,_0x299984._0x356787,_0x299984._0x1bad20)]()){_0xf8b361[_0x2519a8(0x6d,_0x299984._0x360c09,0xc1,_0x299984._0x23f5e5)]({'index':_0x24ad5b[_0x3c8930(_0x299984._0x35b565,_0x299984._0x5b2fe9,0x429,0x439)]??_0xf8b361[_0x2519a8(0x109,0x4f,-0x1e,_0x299984._0x379755)],'item':{'type':_0x2519a8(_0x299984._0x38c04b,_0x299984._0xb79dca,0xd9,_0x299984._0x2f4870),'id':_0x24ad5b['id'],..._0x24ad5b[_0x3c8930(_0x299984._0x305c17,0x2bf,0x298,0x35d)]?{'encrypted_content':_0x24ad5b[_0x3c8930(0x208,0x2bf,0x229,_0x299984._0x3f1720)]}:{},..._0x24ad5b[_0x3c8930(0x32b,0x32f,0x2f3,_0x299984._0x148a62)][_0x2519a8(_0x299984._0x141332,_0x299984._0x1a904e,_0x299984._0x2c2fe0,_0x299984._0x260ed3)]>0x0?{'summary':Array[_0x3c8930(_0x299984._0xe8a91,0x31d,0x2b3,_0x299984._0x314eb9)](_0x24ad5b[_0x3c8930(_0x299984._0x22d8c0,0x32f,_0x299984._0x3a6bbf,0x340)][_0x3c8930(_0x299984._0x528ab7,_0x299984._0x287243,_0x299984._0x572f05,0x2e4)]())[_0x2519a8(0x13e,_0x299984._0x2ed24c,_0x299984._0x4b46c6,0xac)]((_0x5d3236,_0x227268)=>_0x5d3236[0x0]-_0x227268[0x0])[_0x3c8930(_0x299984._0x1e3a09,0x320,0x338,0x3f0)](([,_0x3fe4c1])=>{function _0x3a7f46(_0x4489fe,_0x20c1e6,_0x45778b,_0x4450c9){return _0x2519a8(_0x4450c9,_0x20c1e6-_0x59ead9._0x2f7daa,_0x45778b-0x14d,_0x20c1e6-0x215);}return{'type':_0x3a7f46(0x1e6,0x268,0x1e0,_0x4c33ef._0x3ffd80),'text':_0x3fe4c1};})}:{},..._0x24ad5b['textByIndex']['size']>0x0?{'text':Array['from'](_0x24ad5b[_0x2519a8(0x181,0x1e2,0x160,_0x299984._0x470439)][_0x3c8930(0x335,_0x299984._0x287243,0x268,0x28f)]())['sort']((_0x1c7b0f,_0x1f216a)=>_0x1c7b0f[0x0]-_0x1f216a[0x0])[_0x3c8930(0x2fc,_0x299984._0x11fd56,_0x299984._0x5054cd,0x27d)](([,_0x2b32f4])=>_0x2b32f4)[_0x2519a8(-0x5,_0x299984._0x32359a,_0x299984._0x16d251,_0x299984._0x3ebb88)]('')}:{}}});}for(const _0xe023a7 of this[_0x2519a8(-_0x299984._0x200d24,-0x68,0xa3,0x8)][_0x3c8930(0x2ec,_0x299984._0x4f4e46,_0x299984._0x40451d,0x2d7)]()){_0xf8b361[_0x3c8930(_0x299984._0x134fcc,0x391,0x3ba,_0x299984._0x179a64)]({'index':this[_0x3c8930(0x34e,0x27b,_0x299984._0x41f9dc,0x1ad)][_0x3c8930(_0x299984._0x3f4ed7,_0x299984._0xd708ab,_0x299984._0x246f45,0x323)](_0xe023a7['id'])??_0xf8b361[_0x2519a8(_0x299984._0x10e240,0x11d,_0x299984._0xfa087f,_0x299984._0x379755)],'item':{'type':_0x2519a8(-_0x299984._0x47139d,-0x81,-0x60,-_0x299984._0x1fc862),'call_id':_0xe023a7['id'],'name':_0xe023a7['function']['name'],'arguments':_0xe023a7[_0x3c8930(_0x299984._0x2a206e,0x3ec,0x39c,0x426)]['arguments']}});}function _0x2519a8(_0xe2cae0,_0x5a3201,_0x5eb6a1,_0x138aaa){return _0x42ffe3(_0x138aaa-0xc4,_0x5a3201-_0x9b5a0e._0x32c4dd,_0xe2cae0,_0x138aaa-_0x9b5a0e._0x1c85f1);}function _0x3c8930(_0x531514,_0x8f46f8,_0x9eff21,_0xbb1dec){return _0x42ffe3(_0x8f46f8-0x377,_0x8f46f8-_0x2cd38b._0x17a17d,_0x531514,_0xbb1dec-0x1e9);}return _0xf8b361[_0x2519a8(-0x3,0x10b,0xb4,0xac)]((_0x5d4d51,_0x2ba250)=>_0x5d4d51[_0x3c8930(0x266,0x275,0x2ed,0x29e)]-_0x2ba250[_0x2519a8(0x80,0x63,0x68,-0x3e)])['map'](_0x2ff880=>_0x2ff880[_0x2519a8(0x10b,0x24,0x98,0xf0)]);}['getOrCreateReasoningItem'](_0x32896a,_0x403065){const _0x3cc5ff={_0x245d1d:0xb9,_0x3f4200:0x184,_0x369823:0x40,_0x42feb8:0x194,_0x3e825d:0x1a4,_0x412c83:0xf0,_0x4abe77:0xcf,_0x185ca8:0x1cc,_0x2ff648:0x9c,_0x2989b9:0xed},_0x46db13={_0x208282:0x1c3},_0x1d89bd={_0x321b43:0x1e8};function _0x31c6c7(_0x1c804a,_0x585a9f,_0x3cf9eb,_0x31d5c6){return _0x42ffe3(_0x585a9f-0xb1,_0x585a9f-0x50,_0x1c804a,_0x31d5c6-_0x1d89bd._0x321b43);}const _0x5dbc2d=this[_0x31c6c7(0x80,0x48,0x7,_0x3cc5ff._0x245d1d)][_0x17d2a5(0x1e3,_0x3cc5ff._0x3f4200,0x1ee,0x245)](_0x32896a);if(_0x5dbc2d)return _0x403065!==void 0x0&&(_0x5dbc2d[_0x31c6c7(0x177,0x10e,_0x3cc5ff._0x369823,_0x3cc5ff._0x42feb8)]=_0x403065,this['outputIndexToReasoningId'][_0x17d2a5(0x249,0x201,0x1b0,0x312)](_0x403065,_0x32896a)),_0x5dbc2d;function _0x17d2a5(_0x5babd7,_0x4c0241,_0x4bca04,_0x3dc032){return _0x42ffe3(_0x5babd7-0x20d,_0x4c0241-_0x46db13._0x208282,_0x3dc032,_0x3dc032-0x99);}const _0x94af3c={'id':_0x32896a,'outputIndex':_0x403065,'summaryByIndex':new Map(),'textByIndex':new Map()};return this[_0x17d2a5(_0x3cc5ff._0x3e825d,_0x3cc5ff._0x412c83,_0x3cc5ff._0x4abe77,_0x3cc5ff._0x185ca8)]['set'](_0x32896a,_0x94af3c),_0x403065!==void 0x0&&this[_0x17d2a5(0x1f4,0x2ba,0x1be,0x2ba)][_0x31c6c7(_0x3cc5ff._0x2ff648,_0x3cc5ff._0x2989b9,0x13a,0x11d)](_0x403065,_0x32896a),_0x94af3c;}};function createOpenAiResponsesStreamParser(_0x1a268c){return new OpenAiResponsesStreamParser(_0x1a268c);}function createOpenAiSurfaces(_0x2a57fa={}){const _0x19aa0f={_0x3b0296:0xb1,_0x410a4c:0x256,_0x55419f:0x2fc,_0x379c49:0x246,_0x4a3586:0xc5,_0x338b11:0x11e,_0xc53d1:0x291},_0x31c8e2={_0x52b26c:0xac},_0x3741d7={_0x2ffa67:0x7},_0x51308e={_0x1e62d2:0xbe,_0x3f2606:0x107},_0x18d491=_0x2a57fa[_0x143651(0x36,0x77,0xaa,_0x19aa0f._0x3b0296)]??'/chat/completions',_0x2cc599=_0x2a57fa['responsesPath']??_0x24ad64(_0x19aa0f._0x410a4c,0x299,_0x19aa0f._0x55419f,_0x19aa0f._0x379c49);function _0x143651(_0x12cd2a,_0x290d3d,_0x769275,_0x406125){return _0x42ffe3(_0x769275-_0x51308e._0x1e62d2,_0x290d3d-_0x51308e._0x3f2606,_0x406125,_0x406125-0xc1);}function _0x24ad64(_0x5d135a,_0x6e2ff2,_0x3cce07,_0x577251){return _0x5e5ba4(_0x5d135a-0xae,_0x3cce07,_0x3cce07-0x13b,_0x6e2ff2- -0x245);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x143651(0x93,_0x19aa0f._0x4a3586,0xc6,_0x19aa0f._0x338b11),'createRequest'(_0x176313){return{'accept':'application/json','body':createChatRequestBody(_0x176313,![]),'path':_0x18d491};},'parseResponse'(_0x3456c8){return parseChatCompletionResponse(_0x3456c8);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x2fcebc){return{'accept':'text/event-stream','body':createChatRequestBody(_0x2fcebc,!![]),'path':_0x18d491};},'createStreamParser'(_0x450304){return new OpenAiChatCompletionsStreamParser(_0x450304);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':'http-json','createRequest'(_0x583df9){return{'accept':'application/json','body':createResponsesRequestBody(_0x583df9,![]),'path':_0x2cc599};},'parseResponse'(_0x590f59,_0x50174f){return parseResponsesResponse(_0x590f59,_0x50174f);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x7d4c6a){function _0x2d8201(_0x6b0780,_0x4cc990,_0x555e34,_0xe3fe15){return _0x143651(_0x6b0780-0x13f,_0x4cc990-_0x3741d7._0x2ffa67,_0x555e34-0x67,_0xe3fe15);}return{'accept':_0x2d8201(_0x31c8e2._0x52b26c,-0x69,0x2a,0x34),'body':createResponsesRequestBody(_0x7d4c6a,!![]),'path':_0x2cc599};},'createStreamParser'(_0x3a3220){return new OpenAiResponsesStreamParser(_0x3a3220);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x24ad64(0x208,0x2aa,0x2c8,_0x19aa0f._0xc53d1),'createRequest'(_0xeee5ca){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0xeee5ca),'path':_0x2cc599};},'createStreamParser'(_0x40c539){return createOpenAiResponsesStreamParser(_0x40c539);}}];}function _0x5e5ba4(_0x15369a,_0x78d50d,_0x5f51b9,_0x424d35){return _0x5b07(_0x424d35-0x3b7,_0x78d50d);}var OpenAiProviderAdapter=class{[_0x42ffe3(0x2e,0x8c,-0x75,0x4b)];constructor(_0x195b29){const _0x2231fd={_0x2838c7:0xb0,_0x16d4e5:0x173},_0x8b08f7={_0x140240:0x124,_0x3aac80:0xc};function _0x1e4993(_0x5b4e29,_0x5825cd,_0x1573be,_0x4a3545){return _0x42ffe3(_0x1573be-_0x8b08f7._0x140240,_0x5825cd-0xbb,_0x5825cd,_0x4a3545-_0x8b08f7._0x3aac80);}this[_0x1e4993(_0x2231fd._0x2838c7,_0x2231fd._0x16d4e5,0x152,0xe7)]=_0x195b29;}[_0x42ffe3(0x8d,0xca,0x56,0x6b)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x42ffe3(-0x74,-0x133,-0xf5,-0x2e)](_0x19db1a,_0x3f3dab){const _0x4a9095={_0x28ca78:0x241,_0x2fb9d8:0x23d,_0x804bf1:0x341,_0x257049:0x326,_0x259323:0x2c9,_0x2f4959:0x8b,_0x2bbf00:0x6a,_0x89af85:0x2a8,_0x48b261:0x2bc,_0x4a0336:0x46,_0x1e054b:0x147,_0x53d7e8:0xe,_0x3f03c9:0x2,_0x31115a:0x17b,_0x25f72c:0x110,_0x47cbe6:0x87,_0x7c52a2:0x186,_0x4378e9:0xc1,_0xa0a621:0x15b,_0x5063ba:0x50,_0xc2d4e2:0x306,_0x301f05:0x436,_0x374919:0x299,_0x29c1f9:0x2d3,_0x273ff3:0x359},_0x84ddde={_0x7f43f6:0x17f,_0x3ff611:0x118},_0x156fe2={_0x38e078:0x314,_0x4a49d5:0x81},_0x34aea0=new Headers();function _0x45581e(_0x5986ff,_0x1298ab,_0x47c3c1,_0x1b4247){return _0x42ffe3(_0x47c3c1-_0x156fe2._0x38e078,_0x1298ab-_0x156fe2._0x4a49d5,_0x1b4247,_0x1b4247-0xb7);}function _0x524c30(_0x5b4f74,_0x1137f1,_0x262294,_0x454525){return _0x42ffe3(_0x262294-0xbe,_0x1137f1-_0x84ddde._0x7f43f6,_0x5b4f74,_0x454525-_0x84ddde._0x3ff611);}_0x34aea0['set'](_0x45581e(0x208,_0x4a9095._0x28ca78,_0x4a9095._0x2fb9d8,0x16d),_0x3f3dab['accept']),_0x34aea0[_0x45581e(0x315,_0x4a9095._0x804bf1,0x350,0x28d)]('authorization','Bearer\x20'+_0x19db1a[_0x45581e(_0x4a9095._0x257049,0x301,0x317,_0x4a9095._0x259323)][_0x524c30(_0x4a9095._0x2f4959,_0x4a9095._0x2bbf00,0x2e,0xb5)]);_0x3f3dab[_0x45581e(_0x4a9095._0x89af85,_0x4a9095._0x48b261,0x20c,0x1d3)]!==![]&&_0x34aea0[_0x524c30(0x5c,_0x4a9095._0x4a0336,0xfa,_0x4a9095._0x1e054b)](_0x524c30(_0x4a9095._0x53d7e8,-0x25,-0x10,-_0x4a9095._0x3f03c9),'application/json');const _0x48c620=await this[_0x524c30(0x159,0xea,0xec,0xd1)]?.({'body':_0x19db1a[_0x524c30(_0x4a9095._0x31115a,0x68,_0x4a9095._0x25f72c,_0x4a9095._0x47cbe6)],'credential':_0x19db1a[_0x524c30(0xfc,_0x4a9095._0x7c52a2,_0x4a9095._0x4378e9,_0x4a9095._0xa0a621)],'request':_0x19db1a[_0x524c30(-0x64,0x98,_0x4a9095._0x5063ba,-0x80)],'session':_0x19db1a[_0x45581e(0x1de,0x22f,0x26b,0x2f8)],'stream':_0x19db1a[_0x45581e(_0x4a9095._0xc2d4e2,0x31a,0x396,_0x4a9095._0x301f05)]});for(const [_0x14c55e,_0x14641b]of Object['entries'](_0x48c620??{})){_0x34aea0[_0x45581e(_0x4a9095._0x374919,_0x4a9095._0x29c1f9,0x350,_0x4a9095._0x273ff3)](_0x14c55e,_0x14641b);}return _0x34aea0;}[_0x5e5ba4(0x465,0x556,0x540,0x50b)](_0x1adb0a){return _0x1adb0a;}['resolveBaseUrl'](_0x28e415,_0x14f693){return resolveSessionBaseUrl(_0x28e415,_0x14f693);}[_0x5e5ba4(0x561,0x51a,0x4ef,0x58a)](_0x4c6425,_0x9137c1){return resolveApiCredential(_0x4c6425,_0x9137c1);}async[_0x42ffe3(-0x1,-0xb5,0xe,-0x48)](_0x50d5fb){return await createOpenAiApiError(_0x50d5fb);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x5e5ba4(0x4ee,0x4b4,0x623,0x581)]=new Map();['chatCompletionsPath'];[_0x42ffe3(-0x8c,-0x111,-0xc5,-0x8)];constructor(_0x38a597={}){const _0x3572ec={_0x1c9f8d:0x3c1,_0x3015e4:0x43f,_0x3b9243:0x489,_0x4fedbf:0x4c1,_0x26d2a8:0x4da,_0x4b7d2b:0x1b3,_0xe48233:0x2ae,_0x26175e:0x19d,_0x215592:0x2a7,_0x33af04:0x154,_0x48eb42:0x1e9,_0x48a42c:0x1ca,_0x5adc0c:0x194,_0x199817:0x4c9,_0x35abef:0x46d,_0x342e90:0x473,_0x20ab9c:0x2fb,_0xc4a088:0x43b,_0x167032:0x551,_0xfcc38:0x275,_0x4898b1:0x2a3,_0x8a51aa:0x306,_0x1abe8e:0x247,_0x1bfd90:0x224,_0x20d34a:0x202,_0x541191:0x1d8,_0x43177a:0x12d,_0xbf41c2:0x204,_0x2c6d71:0x32b,_0x1803df:0x1bb,_0x4f3086:0x19d},_0x1c10cc={_0xb84f1c:0x275};function _0x1d9298(_0x4f77e2,_0x590285,_0x57717b,_0x58a2f3){return _0x42ffe3(_0x590285-_0x1c10cc._0xb84f1c,_0x590285-0x2d,_0x58a2f3,_0x58a2f3-0x1c9);}const _0x326276=_0x38a597[_0x4da265(0x443,_0x3572ec._0x1c9f8d,_0x3572ec._0x3015e4,_0x3572ec._0x3b9243)]??_0x4da265(0x3f4,0x49c,_0x3572ec._0x4fedbf,_0x3572ec._0x26d2a8),_0x244601=_0x38a597['maxTokens']??0x4000,_0x56a5a3=_0x38a597[_0x1d9298(_0x3572ec._0x4b7d2b,0x261,_0x3572ec._0xe48233,_0x3572ec._0x26175e)]??_0x1d9298(_0x3572ec._0x215592,0x20f,_0x3572ec._0x33af04,0x146),_0x2afdd8=_0x38a597[_0x1d9298(0x13b,_0x3572ec._0x48eb42,_0x3572ec._0x48a42c,_0x3572ec._0x5adc0c)]??_0x4da265(0x4a4,_0x3572ec._0x199817,0x413,_0x3572ec._0x35abef);function _0x4da265(_0x3d8199,_0x6516f7,_0xf7eee7,_0x3995b0){return _0x42ffe3(_0xf7eee7-0x468,_0x6516f7-0x4,_0x6516f7,_0x3995b0-0x1d1);}super({'apiKey':_0x38a597[_0x4da265(0x45d,_0x3572ec._0x342e90,0x493,0x51b)],'baseUrl':trimTrailingSlashes(_0x38a597['baseUrl']??_0x1d9298(0x2e1,0x253,0x217,_0x3572ec._0x20ab9c)),'fetch':_0x38a597[_0x4da265(0x3cb,_0x3572ec._0xc4a088,0x48c,_0x3572ec._0x167032)],'maxTokens':_0x244601,'model':_0x326276,'reasoning':_0x38a597[_0x1d9298(0x2d0,_0x3572ec._0xfcc38,0x281,0x1a1)],'providerAdapter':new OpenAiProviderAdapter(_0x38a597[_0x1d9298(0x35b,_0x3572ec._0x4898b1,_0x3572ec._0x8a51aa,_0x3572ec._0x1abe8e)]),'providerSessionResolver':_0x38a597[_0x1d9298(0x1e4,0x1c1,0x1a2,_0x3572ec._0x1bfd90)],'requestMutators':_0x38a597[_0x1d9298(_0x3572ec._0x20d34a,_0x3572ec._0x541191,_0x3572ec._0x43177a,0x245)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x38a597[_0x1d9298(_0x3572ec._0xbf41c2,0x2d6,0x312,0x38c)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x56a5a3,'responsesPath':_0x2afdd8}),'webSocketFactory':_0x38a597['webSocketFactory']}),this[_0x1d9298(0x2f3,0x261,_0x3572ec._0x2c6d71,0x255)]=_0x56a5a3,this[_0x1d9298(_0x3572ec._0x1803df,_0x3572ec._0x48eb42,0x262,_0x3572ec._0x4f3086)]=_0x2afdd8;}[_0x42ffe3(-0x39,-0xe4,-0x82,-0x103)](_0x3ecbea,_0x2d0724){const _0x1b35a5={_0x341e17:0x14a,_0x591f69:0x125};function _0x2de127(_0x2b32f6,_0xef516,_0x18da0b,_0x29a889){return _0x42ffe3(_0x29a889- -_0x1b35a5._0x341e17,_0xef516-0xfa,_0x18da0b,_0x29a889-_0x1b35a5._0x591f69);}return this[_0x2de127(-0x17c,-0x1fb,-0x118,-0x195)](_0x3ecbea,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x2d0724);}['completeViaResponsesSurface'](_0x4c3a1e,_0x2ee843){const _0x4722bd={_0xfd20b1:0x3,_0x46dc8c:0x91,_0x329383:0x4d},_0x1fbcf9={_0x331e50:0x12a,_0x1da465:0x17b,_0x1f99fd:0x579};function _0x3e8afa(_0x3a2edc,_0x520b15,_0x430fe9,_0x22b1cc){return _0x5e5ba4(_0x3a2edc-_0x1fbcf9._0x331e50,_0x3a2edc,_0x430fe9-_0x1fbcf9._0x1da465,_0x430fe9- -_0x1fbcf9._0x1f99fd);}return this[_0x3e8afa(_0x4722bd._0xfd20b1,-0x3d,-_0x4722bd._0x46dc8c,-_0x4722bd._0x329383)](_0x4c3a1e,OPENAI_RESPONSES_SURFACE,_0x2ee843);}[_0x5e5ba4(0x541,0x527,0x5d6,0x575)](_0x1e21d1,_0x3dc2b3){const _0x2cff38={_0x4e22aa:0x4b0,_0x3fa49e:0x47f},_0x5c9fcf={_0x759f02:0x1cb,_0x4a27ca:0xe};function _0x4eda29(_0x1945c8,_0x5eb2d3,_0x197695,_0xb4d79c){return _0x5e5ba4(_0x1945c8-_0x5c9fcf._0x759f02,_0x1945c8,_0x197695-_0x5c9fcf._0x4a27ca,_0xb4d79c- -0x69);}return this[_0x4eda29(_0x2cff38._0x4e22aa,0x44a,0x452,_0x2cff38._0x3fa49e)](_0x1e21d1,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x3dc2b3);}[_0x5e5ba4(0x3d0,0x557,0x3db,0x486)](_0x1a61bd,_0x1c6160){return this['streamViaSurface'](_0x1a61bd,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x1c6160);}['streamViaResponsesSurface'](_0x56494e,_0x5dd019){return this['streamViaSurface'](_0x56494e,OPENAI_RESPONSES_STREAM_SURFACE,_0x5dd019);}[_0x42ffe3(-0x67,-0x4c,-0x3c,0x22)](_0x21c3fc,_0x4ae5ea){const _0x58aa7a={_0x37feb7:0x395,_0x15ce56:0x2f1,_0x423187:0x22e,_0x4dddfd:0x335},_0x5c8c08={_0xf82bf0:0x238,_0x536efd:0x185,_0x1bb1a8:0x1da};function _0xd274cf(_0x3e6670,_0x27c654,_0x4e577e,_0x1f184b){return _0x42ffe3(_0x27c654- -_0x5c8c08._0xf82bf0,_0x27c654-_0x5c8c08._0x536efd,_0x1f184b,_0x1f184b-_0x5c8c08._0x1bb1a8);}return this[_0xd274cf(-_0x58aa7a._0x37feb7,-_0x58aa7a._0x15ce56,-_0x58aa7a._0x423187,-_0x58aa7a._0x4dddfd)](_0x21c3fc,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x4ae5ea);}async[_0x5e5ba4(0x4a4,0x539,0x59c,0x4d7)](_0x4ace73,_0x8ee7bf){const _0x152bab={_0x3750c6:0x3ca,_0x4c536f:0x3bd},_0x486d3a={_0x32b3e8:0x1bc},_0x39c5f8={_0x4f89d1:0x64,_0x28bed4:0x188};function _0x40f5bf(_0x30daaf,_0x5bfaa8,_0x377ec6,_0x71f6bc){return _0x5e5ba4(_0x30daaf-_0x39c5f8._0x4f89d1,_0x71f6bc,_0x377ec6-0x16,_0x377ec6- -_0x39c5f8._0x28bed4);}function _0x4defe9(_0x26e6ef,_0x258854,_0x3934e8,_0xf3ae7d){return _0x5e5ba4(_0x26e6ef-0x23,_0x258854,_0x3934e8-_0x486d3a._0x32b3e8,_0x3934e8- -0x718);}try{return await this[_0x4defe9(-0x23d,-0x23f,-0x21e,-0x2dc)](_0x4ace73,_0x8ee7bf);}catch(_0x55564f){if(_0x55564f instanceof OpenAiApiError)throw this[_0x40f5bf(0x2ee,_0x152bab._0x3750c6,0x383,_0x152bab._0x4c536f)](_0x55564f);throw _0x55564f;}}async[_0x5e5ba4(0x47d,0x513,0x4ee,0x472)](_0x2e996b,_0x1f7cee){const _0x8d82b={_0x2653d9:0x139,_0x22ee19:0x270,_0x2c90ec:0x2de,_0x360617:0x2c5},_0x39fcb5={_0x180467:0x298,_0x503c79:0x156,_0xec2024:0x9a},_0x40b86f={_0x1dc5bc:0x1e0};function _0xe6cce8(_0x84df4d,_0x509c70,_0x5ccff8,_0x3d9724){return _0x42ffe3(_0x3d9724- -0x22c,_0x509c70-_0x40b86f._0x1dc5bc,_0x5ccff8,_0x3d9724-0x153);}function _0x4b2e85(_0x4f8720,_0x386ffc,_0x2931b4,_0x5ee0bf){return _0x42ffe3(_0x4f8720-_0x39fcb5._0x180467,_0x386ffc-_0x39fcb5._0x503c79,_0x2931b4,_0x5ee0bf-_0x39fcb5._0xec2024);}try{return await this[_0x4b2e85(0x1da,0x111,0x217,_0x8d82b._0x2653d9)](_0x2e996b,_0x1f7cee);}catch(_0x334f8a){if(_0x334f8a instanceof OpenAiApiError)throw this[_0x4b2e85(_0x8d82b._0x22ee19,0x279,_0x8d82b._0x2c90ec,_0x8d82b._0x360617)](_0x334f8a);throw _0x334f8a;}}async[_0x42ffe3(0x90,0x116,0x22,0x7)](_0x32ac6a,_0x12ed1e){const _0x11981e={_0xaf7b84:0x8,_0x569baa:0x148,_0x16a85d:0x70,_0x19afa9:0xec,_0x3bb993:0x19,_0x361373:0x1a,_0x53d8ff:0xcf,_0x3184b9:0x73,_0x1b4c85:0x1e,_0x17254c:0x66,_0x5b5d3d:0xfa,_0x591c57:0x9a},_0x5d67aa={_0x5589aa:0x18,_0x196206:0x13},_0x311807={_0x345940:0x1b0};function _0x342ad5(_0x47d914,_0x79e1f9,_0x392617,_0x4c6aab){return _0x5e5ba4(_0x47d914-_0x311807._0x345940,_0x79e1f9,_0x392617-0x115,_0x4c6aab- -0x55a);}function _0x2ee02d(_0x58aa51,_0x5d40ea,_0x51791d,_0x49ada3){return _0x42ffe3(_0x51791d-0x79,_0x5d40ea-_0x5d67aa._0x5589aa,_0x49ada3,_0x49ada3-_0x5d67aa._0x196206);}try{let _0x23524e;for await(const _0x14a095 of this[_0x342ad5(_0x11981e._0xaf7b84,-0x15a,-0x5f,-0xa5)](_0x32ac6a,_0x12ed1e)){_0x14a095[_0x2ee02d(_0x11981e._0x569baa,-0x5,0x91,_0x11981e._0x16a85d)]===_0x342ad5(_0x11981e._0x19afa9,-0x2b,-_0x11981e._0x3bb993,0x61)&&(_0x23524e=_0x14a095[_0x2ee02d(-0x98,_0x11981e._0x361373,-0x48,-_0x11981e._0x53d8ff)]);}if(!_0x23524e)throw new Error(_0x342ad5(-_0x11981e._0x3184b9,-0x11f,_0x11981e._0x1b4c85,-_0x11981e._0x17254c));return _0x23524e;}catch(_0x4d4b42){if(_0x4d4b42 instanceof OpenAiApiError)throw this[_0x342ad5(-_0x11981e._0x5b5d3d,0x20,-_0x11981e._0x591c57,-0x4f)](_0x4d4b42);throw _0x4d4b42;}}async*[_0x42ffe3(0x66,0xaf,0x8f,0x132)](_0x49249c,_0x16ab9c){try{yield*this['streamViaChatCompletionsSurface'](_0x49249c,_0x16ab9c);}catch(_0x279fb9){if(_0x279fb9 instanceof OpenAiApiError)throw this['mapApiError'](_0x279fb9);throw _0x279fb9;}}async*['responseStream'](_0x5eef34,_0x429528){const _0x178683={_0xeef927:0x138,_0x4548f1:0x387,_0x103d92:0x35b},_0x123631={_0x187515:0x7c,_0x19909:0x1b0},_0x4aef9c={_0x1a3ea5:0x117,_0x21e875:0x76};function _0x54df7c(_0x2b64d5,_0x573536,_0x4ee6de,_0x4d1355){return _0x5e5ba4(_0x2b64d5-_0x4aef9c._0x1a3ea5,_0x573536,_0x4ee6de-_0x4aef9c._0x21e875,_0x4ee6de- -0x312);}function _0x1cb7ee(_0x4ea5eb,_0x41db99,_0x567ea8,_0x23e0b0){return _0x5e5ba4(_0x4ea5eb-0x109,_0x41db99,_0x567ea8-_0x123631._0x187515,_0x567ea8- -_0x123631._0x19909);}try{yield*this[_0x54df7c(0x191,0x1d9,0x205,_0x178683._0xeef927)](_0x5eef34,_0x429528);}catch(_0x1d9ca3){if(_0x1d9ca3 instanceof OpenAiApiError)throw this[_0x1cb7ee(0x31e,_0x178683._0x4548f1,_0x178683._0x103d92,0x316)](_0x1d9ca3);throw _0x1d9ca3;}}async*[_0x42ffe3(-0x7e,0x50,-0xe6,-0x13e)](_0x4ef1de,_0x52f0c7){const _0x56bea9={_0x4a81aa:0x95,_0x1227c6:0x2b,_0x339bb4:0xbd,_0x897656:0x4d,_0x17fc7d:0x58},_0xb7a3bd={_0x3386c6:0x112,_0x286629:0xa9,_0x5316d2:0x4be};function _0x33fca1(_0x151254,_0xb1e5ac,_0xb76915,_0x4c64a1){return _0x42ffe3(_0xb76915-0xc9,_0xb1e5ac-0x155,_0x151254,_0x4c64a1-0x184);}function _0x250ab4(_0x3e95a3,_0x81795c,_0x18d2b5,_0x3bcb68){return _0x5e5ba4(_0x3e95a3-_0xb7a3bd._0x3386c6,_0x3e95a3,_0x18d2b5-_0xb7a3bd._0x286629,_0x81795c- -_0xb7a3bd._0x5316d2);}try{yield*this[_0x250ab4(0xc6,0x9c,_0x56bea9._0x4a81aa,_0x56bea9._0x1227c6)](_0x4ef1de,_0x52f0c7);}catch(_0x1bcefe){if(_0x1bcefe instanceof OpenAiApiError)throw this[_0x250ab4(_0x56bea9._0x339bb4,_0x56bea9._0x897656,-_0x56bea9._0x17fc7d,0xac)](_0x1bcefe);throw _0x1bcefe;}}[_0x5e5ba4(0x515,0x4f3,0x509,0x478)](_0x9a1558,_0x5e1f82){const _0x374fb6={_0x5c4bd1:0x161,_0x49408a:0x18b},_0x5c8632={_0x420dbb:0x26f,_0x440a72:0x1af};function _0x3f4fa1(_0x54430,_0x3b1103,_0x2db3f3,_0x4dd882){return _0x42ffe3(_0x4dd882-_0x5c8632._0x420dbb,_0x3b1103-_0x5c8632._0x440a72,_0x54430,_0x4dd882-0x1a5);}return this[_0x3f4fa1(0x27f,_0x374fb6._0x5c4bd1,_0x374fb6._0x49408a,0x213)](_0x9a1558,_0x5e1f82);}[_0x5e5ba4(0x649,0x62e,0x609,0x5b5)](_0x302d43,_0x578631){return this['chatStream'](_0x302d43,_0x578631);}[_0x5e5ba4(0x538,0x4c0,0x58e,0x52e)](_0x2101b4){const _0x3337d5={_0x1a47fb:0x54,_0x1d0846:0x1,_0x3552e0:0x2ca,_0x19caca:0x334,_0x3ecb3f:0x296,_0x2dd1bb:0x2a6,_0x3eb582:0x29b,_0x3c4498:0x18c,_0x3eb014:0x155,_0x3e24ce:0x205},_0x56bfdb={_0x28e9eb:0x150},_0x38da57={_0x57008a:0x76};function _0x316cd1(_0x36a27e,_0x5d2bf9,_0x2dab08,_0x1242a4){return _0x42ffe3(_0x1242a4-0x24a,_0x5d2bf9-_0x38da57._0x57008a,_0x2dab08,_0x1242a4-0x8d);}function _0x51edd9(_0x123777,_0x1f9f3b,_0xb50e1a,_0x191e6d){return _0x42ffe3(_0x123777-_0x56bfdb._0x28e9eb,_0x1f9f3b-0x1b7,_0xb50e1a,_0x191e6d-0x19b);}const _0x5c12a2=this[_0x51edd9(0x96,0x10b,_0x3337d5._0x1a47fb,_0x3337d5._0x1d0846)](_0x2101b4);let _0x142e29=_OpenAiModel[_0x316cd1(_0x3337d5._0x3552e0,0x290,_0x3337d5._0x19caca,0x298)]['get'](_0x5c12a2);return!_0x142e29&&(_0x142e29={'pending':Promise[_0x316cd1(_0x3337d5._0x3ecb3f,_0x3337d5._0x2dd1bb,0x2bd,0x274)]()},_OpenAiModel[_0x316cd1(0x1d8,0x2ff,_0x3337d5._0x3eb582,0x298)][_0x51edd9(_0x3337d5._0x3c4498,_0x3337d5._0x3eb014,0x1aa,_0x3337d5._0x3e24ce)](_0x5c12a2,_0x142e29)),_0x142e29;}[_0x42ffe3(-0xba,-0x91,-0x138,-0xff)](_0x1524a1){const _0xd15cb8={_0x13aaca:0x218,_0x4ceed8:0x22c,_0xb64099:0x14d},_0x32b48d={_0x491524:0x27a,_0x548a53:0x9d,_0x105de1:0x46};function _0x1e792e(_0x58f254,_0x2288b6,_0x455c34,_0x4fa35b){return _0x42ffe3(_0x2288b6-_0x32b48d._0x491524,_0x2288b6-_0x32b48d._0x548a53,_0x455c34,_0x4fa35b-_0x32b48d._0x105de1);}return''+trimTrailingSlashes(this['baseUrl'])+this[_0x1e792e(_0xd15cb8._0x13aaca,0x1ee,_0xd15cb8._0x4ceed8,_0xd15cb8._0xb64099)]+'::'+_0x1524a1;}async[_0x42ffe3(-0x10,0x24,-0x60,-0x20)](_0x51a6fd){const _0x3f65d8={_0x2f4719:0x14c,_0x3f4f10:0x128,_0x3f9068:0x1c9,_0xa407ef:0x1ee,_0x34ae05:0x1e5,_0x282a94:0x1cb,_0x5ee059:0x290},_0x56c1b7=_0x51a6fd[_0x19f867(0x1f8,0x1f7,_0x3f65d8._0x2f4719,_0x3f65d8._0x3f4f10)][_0x2b4a88(0x166,0x24f,_0x3f65d8._0x3f9068,_0x3f65d8._0xa407ef)](()=>{});let _0x3b840b;const _0x29b0bb=new Promise(_0x1dbefc=>{_0x3b840b=_0x1dbefc;});_0x51a6fd[_0x19f867(_0x3f65d8._0x34ae05,0x169,0x126,_0x3f65d8._0x3f4f10)]=_0x56c1b7[_0x19f867(_0x3f65d8._0x282a94,_0x3f65d8._0x5ee059,0x18b,0x210)](()=>_0x29b0bb);function _0x19f867(_0x448f13,_0x3e13cd,_0x3341e4,_0x577a3a){return _0x42ffe3(_0x577a3a-0x1ed,_0x3e13cd-0x4d,_0x448f13,_0x577a3a-0x195);}function _0x2b4a88(_0x571094,_0x3d6caa,_0x326928,_0x4d2a7b){return _0x42ffe3(_0x326928-0x14b,_0x3d6caa-0xb9,_0x571094,_0x4d2a7b-0x98);}return await _0x56c1b7,()=>{_0x3b840b?.();};}async[_0x5e5ba4(0x62e,0x5e5,0x521,0x57b)](_0x14fa20,_0x5734dd){const _0x4f4e12={_0x3772fd:0xde,_0x364084:0xd8,_0x59517f:0x26,_0x143ddd:0x3,_0x4e0e2f:0x95,_0x4e7c20:0x115,_0x3bfe0e:0x93,_0x39518a:0xdf,_0x1123ae:0xa5,_0x44e6e5:0xba,_0x449515:0x15d,_0x4c6975:0x15e,_0xef5a92:0xa2,_0x28f249:0xa4,_0x8b68fd:0x4e,_0x436f91:0x29,_0x1f6423:0xdd,_0x17064d:0x1df,_0x1880ad:0x199,_0x3c5e2d:0x17f},_0x4a657d={_0x52c630:0x669},_0x1f5528={_0x4a80b5:0x77,_0x17c00b:0x15,_0x4fcf03:0x2c},_0x11c161=this[_0x416920(-_0x4f4e12._0x3772fd,-0x10,-0x61,-0x101)](_0x14fa20),_0x5963d7=toModelRequest(_0x11c161);function _0x251432(_0x242a7b,_0x57da41,_0x476df7,_0x31c0fa){return _0x42ffe3(_0x31c0fa-_0x1f5528._0x4a80b5,_0x57da41-_0x1f5528._0x17c00b,_0x476df7,_0x31c0fa-_0x1f5528._0x4fcf03);}const _0x13f92c=await prepareProviderRequest(_0x5963d7,{'sessionManager':this[_0x251432(0x75,0x121,0xbb,_0x4f4e12._0x364084)],'requestMutators':this[_0x251432(-0x18,0x70,-0xb5,-_0x4f4e12._0x59517f)],'signal':_0x5734dd});function _0x416920(_0x4eec8d,_0x50a97d,_0x49f2bf,_0x2119a4){return _0x5e5ba4(_0x4eec8d-0x1d5,_0x2119a4,_0x49f2bf-0x154,_0x4eec8d- -_0x4a657d._0x52c630);}const _0x4a490b=toChatRequest(_0x13f92c[_0x251432(0x49,_0x4f4e12._0x143ddd,-_0x4f4e12._0x4e0e2f,0x9)]),_0xd99d52=this[_0x416920(-_0x4f4e12._0x4e7c20,-0x104,-0x75,-_0x4f4e12._0x3bfe0e)][_0x416920(-_0x4f4e12._0x39518a,-_0x4f4e12._0x1123ae,-_0x4f4e12._0x44e6e5,-0x10b)](this[_0x251432(_0x4f4e12._0x449515,0x1,_0x4f4e12._0x4c6975,_0x4f4e12._0xef5a92)],_0x13f92c['session']);if(!_0xd99d52)throw this[_0x416920(-0xa9,0x24,-_0x4f4e12._0x28f249,0x17)]();return{'baseUrl':this[_0x251432(0x16b,0x7b,-0x2f,0x98)][_0x251432(0x52,_0x4f4e12._0x8b68fd,-_0x4f4e12._0x436f91,-0x6b)](this[_0x251432(0x11,-0x87,-_0x4f4e12._0x1f6423,-0x74)],_0x13f92c[_0x416920(-_0x4f4e12._0x17064d,-0x153,-_0x4f4e12._0x1880ad,-_0x4f4e12._0x3c5e2d)]),'credential':_0xd99d52,'request':_0x4a490b,'session':_0x13f92c['session']};}[_0x42ffe3(-0xe7,-0x9c,-0x78,-0xa4)](_0xbc3f72,_0x421a0b,_0x529053={}){const _0x5e9198={_0x592cc0:0x1bb,_0x260f43:0x2d9,_0x182520:0x6,_0x37c7cf:0x6d,_0x1d95fa:0x15,_0x4a4e60:0x2e0,_0x1f3df1:0x2f5,_0x1fb873:0x234,_0x44afce:0x1e1,_0x423d38:0x411,_0x381103:0x34e,_0x3bc526:0x3f8,_0x38e2b5:0x2cb,_0x58379a:0xa5,_0x494fcd:0x55,_0x54975c:0x14,_0x1ec009:0x4e,_0x203108:0x63},_0x3a0f6d={_0x9f774f:0x8f},_0x17c7af={_0x58951e:0x1a1};function _0x227a45(_0x244db9,_0x2dfdcc,_0x424748,_0x384b97){return _0x5e5ba4(_0x244db9-0x77,_0x2dfdcc,_0x424748-_0x17c7af._0x58951e,_0x424748- -0x22b);}function _0x5c535d(_0x4e1ec8,_0xb8f759,_0x26739d,_0x37c668){return _0x42ffe3(_0x4e1ec8-_0x3a0f6d._0x9f774f,_0xb8f759-0x13a,_0x26739d,_0x37c668-0x115);}if(!_0x529053[_0x5c535d(0xf6,_0x5e9198._0x592cc0,0xee,0x90)]){const _0x3de264=this['findResponsesSocketCheckpoint'](_0xbc3f72);if(_0x3de264&&_0x421a0b[_0x227a45(_0x5e9198._0x260f43,0x2e8,0x2f5,0x264)]&&_0x3de264[_0x5c535d(0x14,-_0x5e9198._0x182520,-_0x5e9198._0x37c7cf,-_0x5e9198._0x1d95fa)]===_0x421a0b[_0x227a45(_0x5e9198._0x4a4e60,0x3b8,_0x5e9198._0x1f3df1,0x2e7)]){const _0x5e6c64=toOpenAiResponsesRequest({..._0xbc3f72,'messages':_0xbc3f72[_0x227a45(0x180,0x303,_0x5e9198._0x1fb873,_0x5e9198._0x44afce)][_0x227a45(_0x5e9198._0x423d38,0x2af,_0x5e9198._0x381103,_0x5e9198._0x3bc526)](_0x3de264[_0x227a45(0x2f4,0x2cc,0x281,_0x5e9198._0x38e2b5)]+0x1)})[_0x5c535d(_0x5e9198._0x58379a,0x170,_0x5e9198._0x494fcd,-0x31)];return{'event':createOpenAiResponsesWebSocketEvent(_0xbc3f72,{'input':_0x5e6c64,'previousResponseId':_0x3de264[_0x5c535d(_0x5e9198._0x54975c,_0x5e9198._0x1ec009,_0x5e9198._0x203108,0x75)]}),'previousResponseId':_0x3de264['responseId']};}}return{'event':createOpenAiResponsesWebSocketEvent(_0xbc3f72)};}[_0x5e5ba4(0x50b,0x608,0x569,0x541)](_0x37d679){const _0x4ad2fa={_0x448dd6:0x438,_0x441e4b:0x3d3,_0xb1ef54:0x44c,_0x85c56f:0x45f,_0x4d22fe:0x54,_0x49f2fb:0x125,_0x5925e2:0x16a,_0x23663f:0xae,_0x2361ae:0x155,_0x34fba4:0x1a3,_0x48ae2a:0x1f9,_0x40e2df:0x24d,_0x3dac6a:0x1ab,_0x270bef:0x133},_0x1684e5={_0x3ac203:0x181,_0x41cbf3:0x5f1};function _0x12c8d0(_0x191014,_0x4b02e7,_0x35a0ba,_0x325507){return _0x5e5ba4(_0x191014-0x70,_0x35a0ba,_0x35a0ba-0xd4,_0x191014- -0x96);}function _0x1befa4(_0x450c7f,_0x22e74d,_0x2373ef,_0x2db4e6){return _0x5e5ba4(_0x450c7f-0x17a,_0x2373ef,_0x2373ef-_0x1684e5._0x3ac203,_0x22e74d- -_0x1684e5._0x41cbf3);}for(let _0x1b5474=_0x37d679[_0x12c8d0(0x3c9,_0x4ad2fa._0x448dd6,_0x4ad2fa._0x441e4b,0x380)][_0x12c8d0(_0x4ad2fa._0xb1ef54,0x48f,_0x4ad2fa._0x85c56f,0x3fe)]-0x1;_0x1b5474>=0x0;_0x1b5474-=0x1){const _0x97ca9e=_0x37d679['messages'][_0x1b5474],_0x2e1367=_0x97ca9e[_0x1befa4(-0x30,-_0x4ad2fa._0x4d22fe,-0x5e,-_0x4ad2fa._0x49f2fb)]===_0x1befa4(-0x185,-_0x4ad2fa._0x5925e2,-_0x4ad2fa._0x23663f,-_0x4ad2fa._0x2361ae)?_0x97ca9e[_0x1befa4(-0xd6,-_0x4ad2fa._0x34fba4,-_0x4ad2fa._0x48ae2a,-_0x4ad2fa._0x40e2df)]?.[_0x1befa4(-0x112,-_0x4ad2fa._0x3dac6a,-_0x4ad2fa._0x270bef,-0x247)]:void 0x0;if(_0x2e1367)return{'messageIndex':_0x1b5474,'responseId':_0x2e1367};}return void 0x0;}[_0x42ffe3(-0x78,-0x2b,-0x105,-0x55)](_0x15e31b){const _0x570f13={_0x335473:0x1a4,_0x46f254:0x262,_0x222d8a:0x257,_0x417473:0x224,_0x20fdf5:0x286},_0x14fc41={_0x516f3d:0x78,_0x32cdfc:0x72b},_0x2bf839={_0x564d0c:0xfa,_0x3927d6:0x4b6};function _0x256d83(_0x53ac99,_0x3743ff,_0x2b7426,_0x1fd49a){return _0x5e5ba4(_0x53ac99-_0x2bf839._0x564d0c,_0x53ac99,_0x2b7426-0x12b,_0x1fd49a- -_0x2bf839._0x3927d6);}function _0x1839b0(_0x2d5d6f,_0x41e7a8,_0x46498e,_0xbd1c05){return _0x5e5ba4(_0x2d5d6f-0x1d9,_0x46498e,_0x46498e-_0x14fc41._0x516f3d,_0x41e7a8- -_0x14fc41._0x32cdfc);}return _0x15e31b instanceof ProviderStreamEventError&&(_0x15e31b['code']===_0x1839b0(-0x199,-_0x570f13._0x335473,-0x1ef,-_0x570f13._0x46f254)||_0x15e31b['code']===_0x1839b0(-0x265,-_0x570f13._0x222d8a,-_0x570f13._0x417473,-_0x570f13._0x20fdf5));}[_0x5e5ba4(0x57d,0x44d,0x45a,0x4cf)](_0x319682){const _0x2a86c4={_0x563c93:0xd6,_0x1c794f:0x121,_0xe116d8:0x75,_0x468a2e:0x12c,_0x3a421f:0x36,_0x109d1b:0x3e,_0x19c747:0xfe,_0x1a42c3:0x1e,_0x181483:0x28},_0x7277e={_0x5c35e5:0x3fd},_0x2fd1d7={_0x324c2a:0x127,_0x4abb45:0x1c5},_0xa43f9c=_0x319682[_0x1c9cf3(_0x2a86c4._0x563c93,_0x2a86c4._0x1c794f,0x5e,_0x2a86c4._0xe116d8)];_0x319682['socket']=void 0x0,_0x319682[_0x2c39bf(0x13c,0x1a7,0x185,0x1f9)]=void 0x0;function _0x2c39bf(_0x5b1d91,_0x557e5f,_0x17b69f,_0x2de91c){return _0x42ffe3(_0x557e5f-_0x2fd1d7._0x324c2a,_0x557e5f-0x167,_0x17b69f,_0x2de91c-_0x2fd1d7._0x4abb45);}function _0x1c9cf3(_0x47b0b0,_0x367aa7,_0x16dcbb,_0x248b8d){return _0x5e5ba4(_0x47b0b0-0x1f2,_0x16dcbb,_0x16dcbb-0x2f,_0x47b0b0- -_0x7277e._0x5c35e5);}_0x319682[_0x2c39bf(0x86,0x114,0xac,_0x2a86c4._0x468a2e)]=void 0x0,_0xa43f9c?.[_0x2c39bf(-0x2e,_0x2a86c4._0x3a421f,0x41,0x76)]===WebSocket['OPEN']&&_0xa43f9c[_0x1c9cf3(_0x2a86c4._0x109d1b,_0x2a86c4._0x19c747,-_0x2a86c4._0x1a42c3,-_0x2a86c4._0x181483)](0x3e8,_0x2c39bf(0x1a0,0x110,0x80,0x175));}async[_0x5e5ba4(0x472,0x4a0,0x4f2,0x461)](_0x502ddd,_0x486beb,_0xa96c7e,_0x4124c6,_0x358fc7){const _0x1d7533={_0x209ced:0xf6,_0xae0733:0x180,_0x40e865:0x271,_0x4657cd:0x63,_0x452c15:0x1b7,_0x4a7f38:0x11a,_0x1ba083:0x21,_0x34166e:0x4f,_0x8ac411:0x3a,_0x1ce5ab:0x4,_0x581d5a:0x93,_0x57d742:0xc2,_0x4c22a4:0x3a,_0x1545be:0x3a,_0x33a36:0x97,_0x2efe60:0x61,_0x4a439a:0xd0,_0x5ed5a9:0x3a},_0xc8126b={_0x2f1bbd:0x413,_0x1de5eb:0x423,_0x23f5a1:0xfc,_0x45f35a:0x61,_0x2c955a:0x1e7,_0x3a765b:0x184,_0x41670f:0x10e,_0x3929a3:0x3d3,_0x3b3842:0x500,_0x41aa21:0x499,_0x50c93b:0x43d,_0x7673e2:0x3f7,_0x2b8c8e:0x3eb,_0x561ca5:0x440,_0x89d5fd:0x4ae,_0xb5427f:0x55c,_0x79c2df:0x212,_0x39570c:0x179,_0x1cbfac:0xb1,_0x3074ea:0x54,_0x1e1567:0x477,_0x264402:0x3f5,_0x4c34cb:0x12a,_0x1ec561:0x181,_0x52820f:0x1bf,_0xa23660:0x10,_0x77f74c:0x21,_0x528492:0xaf,_0x518f55:0x447,_0x5178fb:0x475,_0xb0bede:0x17f,_0x4c694d:0x1de,_0x4e4472:0x66,_0x5b7946:0x1a1,_0x51783f:0x13d,_0x3ded13:0x408,_0x598164:0x3a7,_0x1d329f:0x4b7,_0x431b2b:0x540,_0x540229:0x513},_0x38bf43={_0x256914:0x34f,_0x22fef2:0x2ba,_0x5e1507:0x303,_0x36aacf:0x242,_0x46888e:0x2a9,_0xa189c6:0x395,_0x3df3b1:0x38e},_0x2dbc99={_0x4e7979:0x14a},_0x167a73={_0x5ed96a:0xf9,_0x497da9:0xfe};function _0x3ffe21(_0x3c8326,_0x2f7d24,_0x3d6b7b,_0xbb2213){return _0x5e5ba4(_0x3c8326-_0x167a73._0x5ed96a,_0xbb2213,_0x3d6b7b-_0x167a73._0x497da9,_0x2f7d24- -0x3a3);}function _0x5c0a08(_0x5e72ba,_0x2bda36,_0x3e1a44,_0x16ad3c){return _0x5e5ba4(_0x5e72ba-_0x2dbc99._0x4e7979,_0x5e72ba,_0x3e1a44-0x17e,_0x16ad3c- -0x5ed);}if(_0x486beb[_0x3ffe21(_0x1d7533._0x209ced,0x130,0x159,_0x1d7533._0xae0733)]?.[_0x5c0a08(-_0x1d7533._0x40e865,-0x1e5,-0x19d,-0x1ab)]===WebSocket['OPEN'])return _0x486beb[_0x5c0a08(-_0x1d7533._0x4657cd,-0xf9,-_0x1d7533._0x452c15,-_0x1d7533._0x4a7f38)];if(_0x486beb[_0x5c0a08(_0x1d7533._0x1ba083,_0x1d7533._0x34166e,-0xcd,-_0x1d7533._0x8ac411)])return await _0x486beb[_0x5c0a08(0x43,-_0x1d7533._0x1ce5ab,0x5f,-0x3a)];_0x486beb[_0x5c0a08(-_0x1d7533._0x581d5a,-0x61,-_0x1d7533._0x57d742,-_0x1d7533._0x4c22a4)]=((async()=>{const _0x496220={_0xcf6b48:0xdd},_0x1d964b={_0x322990:0x22,_0x1e5124:0x2c},_0x23712c={_0x24bf93:0x1c1,_0x25574c:0x17d};function _0x46ea9e(_0x5d12d6,_0x509df2,_0x2a4f4b,_0x272666){return _0x3ffe21(_0x5d12d6-_0x23712c._0x24bf93,_0x5d12d6-0x3af,_0x2a4f4b-_0x23712c._0x25574c,_0x509df2);}const _0x54bee3=await this[_0x46ea9e(0x4cb,0x41b,_0xc8126b._0x2f1bbd,_0xc8126b._0x1de5eb)]({'request':_0xa96c7e[_0x458604(-0x154,-_0xc8126b._0x23f5a1,-_0xc8126b._0x45f35a,-0xbb)],'body':_0x4124c6,'credential':_0xa96c7e[_0x458604(-0x107,-0x8b,-0x93,-0x86)],'session':_0xa96c7e['session'],'stream':!![]},{'accept':_0x458604(-_0xc8126b._0x2c955a,-_0xc8126b._0x3a765b,-_0xc8126b._0x41670f,-0x224),'includeContentType':![]});function _0x458604(_0x486b79,_0x1e963f,_0x1162f1,_0x52eb48){return _0x5c0a08(_0x486b79,_0x1e963f-0x118,_0x1162f1-_0x1d964b._0x322990,_0x1e963f-_0x1d964b._0x1e5124);}_0x54bee3[_0x46ea9e(0x49b,_0xc8126b._0x3929a3,0x4d9,0x4bf)](_0x46ea9e(0x468,0x3e4,0x43a,_0xc8126b._0x3b3842));const _0xc60d04=this[_0x46ea9e(_0xc8126b._0x41aa21,_0xc8126b._0x50c93b,0x3d5,_0xc8126b._0x7673e2)]({'headers':Object[_0x46ea9e(0x480,0x428,_0xc8126b._0x2b8c8e,0x42f)](_0x54bee3[_0x46ea9e(0x490,_0xc8126b._0x561ca5,_0xc8126b._0x89d5fd,_0xc8126b._0xb5427f)]()),'url':(''+_0xa96c7e[_0x458604(-_0xc8126b._0x79c2df,-_0xc8126b._0x39570c,-0x149,-0x1a8)]+this[_0x458604(-_0xc8126b._0x1cbfac,-0x11a,-0x101,-_0xc8126b._0x3074ea)])[_0x46ea9e(_0xc8126b._0x1e1567,0x3ed,0x4dd,_0xc8126b._0x264402)](/^http:/,_0x458604(-_0xc8126b._0x4c34cb,-0x72,-0x76,-0xd5))[_0x458604(-_0xc8126b._0x1ec561,-0x156,-_0xc8126b._0x52820f,-0x1fd)](/^https:/,'wss:')}),_0x54807=()=>{const _0x22b02a={_0x2dc836:0xba,_0x41ea76:0x116};function _0x427fcf(_0xb4a1fe,_0x597b13,_0x552825,_0x552495){return _0x458604(_0x552825,_0x597b13-0x3d6,_0x552825-_0x22b02a._0x2dc836,_0x552495-_0x22b02a._0x41ea76);}function _0x1a8c62(_0x569023,_0x12070e,_0x42ba52,_0x341826){return _0x46ea9e(_0x569023- -0x6a6,_0x341826,_0x42ba52-0x9e,_0x341826-_0x496220._0xcf6b48);}_0x486beb[_0x427fcf(0x352,0x2e8,_0x38bf43._0x256914,_0x38bf43._0x22fef2)]===_0xc60d04&&(_0x486beb[_0x427fcf(_0x38bf43._0x5e1507,0x2e8,0x35c,_0x38bf43._0x36aacf)]=void 0x0,_0x486beb[_0x427fcf(_0x38bf43._0x46888e,0x335,_0x38bf43._0xa189c6,_0x38bf43._0x3df3b1)]=void 0x0);};_0xc60d04[_0x458604(-_0xc8126b._0xa23660,-_0xc8126b._0x77f74c,-0xea,-_0xc8126b._0x528492)](_0x46ea9e(_0xc8126b._0x518f55,_0xc8126b._0x5178fb,0x3e7,0x427),_0x54807);try{return throwIfAborted(_0x358fc7),_0xc60d04[_0x458604(-0x1de,-_0xc8126b._0xb0bede,-0x226,-_0xc8126b._0x4c694d)]!==WebSocket[_0x458604(0x87,-0x8,-_0xc8126b._0x4e4472,0x23)]&&await waitForWebSocketOpen(_0xc60d04,_0x358fc7),throwIfAborted(_0x358fc7),_0x486beb[_0x458604(-_0xc8126b._0x5b7946,-0xee,-_0xc8126b._0x51783f,-0x25)]=_0xc60d04,_0xc60d04;}catch(_0x4bb0ee){_0x54807();_0xc60d04[_0x46ea9e(0x44e,_0xc8126b._0x3ded13,_0xc8126b._0x598164,_0xc8126b._0x1d329f)]===WebSocket[_0x46ea9e(0x5c5,_0xc8126b._0x431b2b,_0xc8126b._0x540229,0x54a)]&&_0xc60d04['close'](0x3e8,'connect_failed');throw _0x4bb0ee;}})());try{return await _0x486beb[_0x5c0a08(-0x58,-0x97,-0x72,-_0x1d7533._0x1545be)];}finally{_0x486beb[_0x5c0a08(-_0x1d7533._0x33a36,_0x1d7533._0x2efe60,-_0x1d7533._0x4a439a,-_0x1d7533._0x5ed5a9)]=void 0x0;}}async*[_0x5e5ba4(0x503,0x51a,0x5ad,0x55a)](_0x36361f,_0x12d3be){const _0x110ad8={_0x520777:0x187,_0x9fe047:0xfa,_0x539c1c:0x119,_0x5e07c7:0x125,_0x2c6abd:0x449,_0x58a0c5:0x332,_0x313b28:0x404,_0x520fb6:0x400,_0x3afa41:0x524,_0x107ca6:0x4ae,_0x1fca33:0xf8,_0x5b9422:0xe3,_0x1682cc:0xb7,_0x4d68e7:0x70,_0x544e77:0x42e,_0x3f989f:0x3c,_0x3a498c:0x12d,_0x46d06d:0x5cc,_0x4696a6:0x584},_0x4fef31={_0x33bbfd:0x12f,_0x19d670:0x7c},_0x5cb573={_0x2ef2ab:0x25,_0x29e73f:0xee};function _0x3228e8(_0x487e8c,_0x5c0f34,_0x33146a,_0x7f2db7){return _0x5e5ba4(_0x487e8c-_0x5cb573._0x2ef2ab,_0x487e8c,_0x33146a-_0x5cb573._0x29e73f,_0x33146a- -0x48);}const _0x51e83d=this[_0x14d1cb(0x15e,_0x110ad8._0x520777,0x155,0xed)](_0x36361f),_0x349249=this['getResponsesSocketSessionState'](_0x51e83d[_0x14d1cb(0x23b,0x1a1,0x17a,_0x110ad8._0x9fe047)][_0x14d1cb(_0x110ad8._0x539c1c,0x5a,_0x110ad8._0x5e07c7,0xe0)]),_0x4beb50=await this[_0x3228e8(0x59e,0x537,0x4db,0x536)](_0x349249);function _0x14d1cb(_0x38015b,_0x28be03,_0x2c1e08,_0xbce412){return _0x42ffe3(_0x28be03-_0x4fef31._0x33bbfd,_0x28be03-_0x4fef31._0x19d670,_0xbce412,_0xbce412-0x129);}try{const _0x34e02f=this[_0x3228e8(_0x110ad8._0x2c6abd,_0x110ad8._0x58a0c5,_0x110ad8._0x313b28,_0x110ad8._0x520fb6)](_0x51e83d,_0x349249);try{yield*this[_0x3228e8(0x48b,_0x110ad8._0x3afa41,0x460,_0x110ad8._0x107ca6)](_0x51e83d[_0x14d1cb(_0x110ad8._0x1fca33,0x1a1,_0x110ad8._0x5b9422,0x106)]['sessionId'],_0x349249,_0x51e83d,_0x34e02f['event'],_0x12d3be?.['signal']);return;}catch(_0x48b995){if(!_0x34e02f['previousResponseId']||!this[_0x14d1cb(0xaf,_0x110ad8._0x1682cc,_0x110ad8._0x4d68e7,0x10d)](_0x48b995)){this['invalidateResponsesSocketSession'](_0x349249);throw _0x48b995;}}this[_0x3228e8(0x45b,0x3ff,0x487,0x40c)](_0x349249);const _0x13929c=this[_0x3228e8(0x450,0x415,0x404,_0x110ad8._0x544e77)](_0x51e83d,_0x349249,{'forceFullReplay':!![]});yield*this[_0x14d1cb(0xf,0xa4,0x3d,_0x110ad8._0x3f989f)](_0x51e83d['metadata'][_0x14d1cb(_0x110ad8._0x3a498c,0x5a,-0x42,-0x8)],_0x349249,_0x51e83d,_0x13929c[_0x3228e8(0x5c6,_0x110ad8._0x46d06d,_0x110ad8._0x4696a6,0x5a5)],_0x12d3be?.['signal']);}finally{_0x4beb50();}}async*[_0x42ffe3(-0x8b,-0xb6,0x2e,-0x13b)](_0x580ca9,_0xf804de,_0x4e7523,_0x2b0292,_0x3f8a3d){const _0x47afbe={_0xb2f20f:0x212,_0x5347f2:0x247,_0x2190f3:0x286,_0x1168be:0x33b,_0x5766dc:0x29a,_0x2d6f5c:0x351,_0x52fd5b:0x34f,_0x50a938:0x28e,_0x1ec343:0x34b,_0xaaa997:0x290,_0x58143b:0x33f,_0x288db8:0x25b,_0x3225c0:0x294,_0x3098d1:0x437,_0x3a05e3:0x4ea,_0x380e25:0x630},_0x1d7c53={_0x272f96:0x11e},_0x1cd201={_0x5ad1b3:0x18},_0x359e30=await this[_0x115b0e(-0x269,-0x240,-_0x47afbe._0xb2f20f,-_0x47afbe._0x5347f2)](_0x4e7523,_0x3f8a3d);function _0x115b0e(_0xa31681,_0x24c421,_0x3ea109,_0x37780a){return _0x42ffe3(_0x3ea109- -0x25a,_0x24c421-_0x1cd201._0x5ad1b3,_0x24c421,_0x37780a-0x1dd);}const _0x470bd6=await this[_0x115b0e(-_0x47afbe._0x2190f3,-_0x47afbe._0x1168be,-0x32c,-0x2b4)](_0x580ca9,_0xf804de,_0x359e30,_0x2b0292,_0x3f8a3d);function _0x4cd662(_0x5f24e7,_0x157e8e,_0x5b819f,_0x4d3141){return _0x5e5ba4(_0x5f24e7-_0x1d7c53._0x272f96,_0x5f24e7,_0x5b819f-0x151,_0x157e8e- -0x17);}const _0x128da7=createOpenAiResponsesStreamParser(_0x4e7523);throwIfAborted(_0x3f8a3d),_0x470bd6[_0x115b0e(-0x1f4,-0x2df,-_0x47afbe._0x5766dc,-0x23b)](JSON[_0x115b0e(-_0x47afbe._0x2d6f5c,-_0x47afbe._0x52fd5b,-_0x47afbe._0x50a938,-_0x47afbe._0x1ec343)](_0x2b0292));for await(const _0x5cee51 of iterateWebSocketMessages(_0x470bd6,_0x3f8a3d)){const _0x1af437=_0x128da7[_0x115b0e(-_0x47afbe._0xaaa997,-0x156,-0x20a,-0x151)]?.(_0x5cee51)??[];yield*_0x1af437;if(_0x128da7['isDone']?.())break;}if(!_0x128da7['isDone']?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x2628a7=_0x128da7[_0x115b0e(-_0x47afbe._0x58143b,-_0x47afbe._0x288db8,-0x317,-_0x47afbe._0x3225c0)](),_0x5d3aef=_0x2628a7[_0x4cd662(0x37c,_0x47afbe._0x3098d1,0x447,_0x47afbe._0x3098d1)]?.['openaiResponsesResponseId']??_0x2628a7['id'];_0x5d3aef&&(_0xf804de[_0x4cd662(_0x47afbe._0x3a05e3,0x509,0x53c,0x498)]=_0x5d3aef),yield{'type':_0x4cd662(0x5b1,0x5a4,0x5f1,_0x47afbe._0x380e25),'response':_0x2628a7};}},AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages',_0x42ffe3(-0x42,-0x22,-0x4c,-0x28),'openai-responses','openai-responses-ws'];function isAnthropicSurface(_0x4588d3){const _0x2971a8={_0xa12bed:0x187,_0x48ca3f:0x20b},_0x362d91={_0x1110f2:0x58,_0x2d2c56:0x151};function _0x2181f1(_0x44c11d,_0x5bdd8d,_0x24771a,_0x21a75a){return _0x42ffe3(_0x5bdd8d- -0x11d,_0x5bdd8d-_0x362d91._0x1110f2,_0x44c11d,_0x21a75a-_0x362d91._0x2d2c56);}return _0x4588d3===_0x2181f1(-0x14f,-_0x2971a8._0xa12bed,-_0x2971a8._0x48ca3f,-0xff);}function resolveDefaultBaseUrl(_0x2becca){const _0x458eae={_0x340d73:0x47,_0xe0cca9:0x3a,_0x31d1af:0x77,_0x31732b:0xda},_0x3a8b29={_0x55af8e:0x12,_0x30b417:0x11c},_0x599583={_0x2a0e3e:0x9c,_0x3ee427:0xc9};function _0x3d03fd(_0x354c94,_0x286fe1,_0x2c4d06,_0x1a34b1){return _0x5e5ba4(_0x354c94-_0x599583._0x2a0e3e,_0x286fe1,_0x2c4d06-_0x599583._0x3ee427,_0x2c4d06- -0x5d9);}function _0x4da320(_0x4e9bd7,_0x993a99,_0x1e5a55,_0x463979){return _0x42ffe3(_0x993a99-0x277,_0x993a99-_0x3a8b29._0x55af8e,_0x1e5a55,_0x463979-_0x3a8b29._0x30b417);}return isAnthropicSurface(_0x2becca)?_0x3d03fd(0x80,-0x70,-_0x458eae._0x340d73,-_0x458eae._0xe0cca9):_0x3d03fd(-0x21,-_0x458eae._0x31d1af,-0xc8,-_0x458eae._0x31732b);}var ChatModel=class{[_0x5e5ba4(0x582,0x525,0x4eb,0x50a)];[_0x42ffe3(0x9d,0x60,0x100,0xb3)];['surface'];[_0x5e5ba4(0x5fe,0x592,0x526,0x57a)];[_0x42ffe3(-0x2c,0xc,-0x6e,0x82)];constructor(_0x29a94d={}){const _0xd483f4={_0x1c12db:0x2d2,_0x1dbcd3:0x26e,_0x368177:0x1bc,_0x213c2e:0x358,_0x1f2314:0x463,_0x42ff87:0x2ae,_0x511425:0x337,_0x1aacbe:0x344,_0x240801:0x35c,_0x2e042b:0x3a2,_0x2526f3:0x31c,_0x21fc2b:0x3b1,_0x3d19fa:0x507,_0x3c75d1:0x48f,_0x1e65e6:0x451,_0x13fde0:0x396,_0x256d93:0x2fa,_0x1466b2:0x2c2,_0x549614:0x3ab,_0x2c1511:0x379,_0x50492f:0x2ec,_0x10be0e:0x26d,_0x5db648:0x424,_0x1b8c88:0x4fe,_0x42e2f1:0x4a7,_0x185f0b:0x4b3,_0x5a5c7c:0x519,_0x12d4a7:0x2c1,_0xffc83:0x12b,_0x1b8aff:0x38d,_0x4a1a18:0x3a2,_0x2caa9c:0x405,_0x10e6e1:0x454,_0x843aae:0x235,_0x26c2a8:0x357,_0x179cbb:0x2dd,_0x3b90e3:0x4e9,_0x1df16c:0x3fb,_0x52c4cc:0x3f2,_0x31630c:0x334,_0x90c40e:0x40a,_0x206de7:0x470,_0x5d7c32:0x3a4,_0x1db15b:0x30a},_0x5629aa={_0x44b3b1:0x40a},_0x1fe393={_0x4a27a8:0x10f};this[_0x2802d7(0x2a7,_0xd483f4._0x1c12db,_0xd483f4._0x1dbcd3,_0xd483f4._0x368177)]=_0x29a94d[_0x595f99(0x332,0x3e1,0x3e4,_0xd483f4._0x213c2e)]??_0x595f99(0x3fc,_0xd483f4._0x1f2314,0x4a0,0x47e),this[_0x2802d7(0x2b5,0x271,0x334,0x3ea)]=_0x29a94d['maxTokens']??0x4000;function _0x2802d7(_0x5a3bf3,_0x17a950,_0x4bae0d,_0x53fbbc){return _0x5e5ba4(_0x5a3bf3-_0x1fe393._0x4a27a8,_0x53fbbc,_0x4bae0d-0x14f,_0x4bae0d- -0x29c);}this[_0x2802d7(_0xd483f4._0x42ff87,_0xd483f4._0x511425,0x31c,_0xd483f4._0x1aacbe)]=_0x29a94d['surface']??_0x2802d7(0x1fb,0x223,0x255,0x2a9);const _0xdd8450=trimTrailingSlashes(_0x29a94d[_0x2802d7(0x17b,0x242,0x1ac,0x131)]??resolveDefaultBaseUrl(this[_0x2802d7(_0xd483f4._0x240801,_0xd483f4._0x2e042b,_0xd483f4._0x2526f3,_0xd483f4._0x21fc2b)]));if(isAnthropicSurface(this[_0x595f99(_0xd483f4._0x3d19fa,_0xd483f4._0x3c75d1,0x477,0x515)])){this[_0x595f99(0x3a3,_0xd483f4._0x1e65e6,0x470,_0xd483f4._0x13fde0)]=new AnthropicModel({'apiKey':_0x29a94d[_0x2802d7(_0xd483f4._0x256d93,0x2af,_0xd483f4._0x1466b2,0x359)],'authScheme':_0x29a94d[_0x2802d7(_0xd483f4._0x549614,_0xd483f4._0x2c1511,_0xd483f4._0x50492f,_0xd483f4._0x10be0e)],'baseUrl':_0xdd8450,'fetch':_0x29a94d[_0x595f99(_0xd483f4._0x5db648,0x42e,0x4ea,_0xd483f4._0x1b8c88)],'maxTokens':this[_0x595f99(0x479,_0xd483f4._0x42e2f1,_0xd483f4._0x185f0b,_0xd483f4._0x5a5c7c)],'model':this[_0x2802d7(0x2f2,_0xd483f4._0x12d4a7,_0xd483f4._0x1dbcd3,0x2f4)],'reasoning':_0x29a94d['reasoning'],'providerSessionResolver':_0x29a94d[_0x2802d7(_0xd483f4._0xffc83,0x1a1,0x1e3,0x18f)],'requestMutators':_0x29a94d['requestMutators']});return;}function _0x595f99(_0x4474a5,_0xa8b8eb,_0x1ebd85,_0x3925a4){return _0x42ffe3(_0xa8b8eb-_0x5629aa._0x44b3b1,_0xa8b8eb-0x1bd,_0x4474a5,_0x3925a4-0x6b);}this[_0x595f99(0x3be,0x3de,_0xd483f4._0x1b8aff,_0xd483f4._0x4a1a18)]=new OpenAiModel({'apiKey':_0x29a94d[_0x595f99(_0xd483f4._0x2caa9c,0x435,_0xd483f4._0x10e6e1,0x4ec)],'baseUrl':_0xdd8450,'fetch':_0x29a94d[_0x2802d7(_0xd483f4._0x843aae,_0xd483f4._0x26c2a8,0x2bb,_0xd483f4._0x179cbb)],'headerResolver':_0x29a94d[_0x595f99(0x3e4,0x438,_0xd483f4._0x3b90e3,_0xd483f4._0x1df16c)],'maxTokens':this[_0x2802d7(0x317,_0xd483f4._0x52c4cc,_0xd483f4._0x31630c,0x2fb)],'model':this[_0x595f99(0x3c0,0x3e1,0x355,0x36e)],'reasoning':_0x29a94d[_0x595f99(0x482,_0xd483f4._0x90c40e,_0xd483f4._0x206de7,0x3b1)],'providerSessionResolver':_0x29a94d['providerSessionResolver'],'requestMutators':_0x29a94d[_0x595f99(_0xd483f4._0x5d7c32,0x36d,_0xd483f4._0x1db15b,0x353)],'webSocketFactory':_0x29a94d['webSocketFactory']});}['getAnthropicDelegate'](){const _0x1ba9e6={_0x32c8e8:0x12e,_0x24c6a5:0x14a,_0x3ea03c:0x1b,_0x5474fa:0x9e,_0x54ad3b:0xf1,_0x301851:0x62},_0x409836={_0x1de739:0xed,_0x55a19f:0x656};if(!this[_0x51372c(0x61,0x7c,_0x1ba9e6._0x32c8e8,_0x1ba9e6._0x24c6a5)])throw new Error('Anthropic\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x165cab(-_0x1ba9e6._0x3ea03c,-_0x1ba9e6._0x5474fa,-0xa7,-_0x1ba9e6._0x54ad3b)]);function _0x165cab(_0x361052,_0x550d4a,_0x26077b,_0xf2f6e9){return _0x5e5ba4(_0x361052-0x150,_0x361052,_0x26077b-_0x409836._0x1de739,_0x550d4a- -_0x409836._0x55a19f);}function _0x51372c(_0x4f02bd,_0x46fabb,_0xd37435,_0x1b08cb){return _0x42ffe3(_0x46fabb-0x35,_0x46fabb-0x1ef,_0xd37435,_0x1b08cb-0x33);}return this[_0x51372c(_0x1ba9e6._0x301851,0x7c,-0x49,0x7d)];}[_0x42ffe3(0x9,0x44,-0x7d,0x8a)](){const _0x5ec9fa={_0x4d44c5:0x40d,_0x3658ef:0x3a6,_0x1ece41:0x45e,_0x32d0ec:0x393,_0x59dbdc:0x4be,_0x3d8963:0x409,_0x5be07b:0x430,_0x4947ea:0x444,_0x2c5c8f:0x2d4,_0x3935c2:0x2f5,_0x2753b2:0x248},_0x4943a6={_0x50b409:0x1cc},_0x4628ef={_0x346848:0x5,_0x4d54cf:0x174};if(!this[_0x1322c3(_0x5ec9fa._0x4d44c5,_0x5ec9fa._0x3658ef,_0x5ec9fa._0x1ece41,_0x5ec9fa._0x32d0ec)])throw new Error(_0x1322c3(0x468,0x3ba,_0x5ec9fa._0x59dbdc,_0x5ec9fa._0x3d8963)+this[_0x1322c3(0x41e,0x3b6,_0x5ec9fa._0x5be07b,_0x5ec9fa._0x4947ea)]);function _0x1322c3(_0x10392d,_0x497028,_0x356d56,_0x3764c8){return _0x5e5ba4(_0x10392d-_0x4628ef._0x346848,_0x10392d,_0x356d56-0xad,_0x3764c8- -_0x4628ef._0x4d54cf);}function _0x21983d(_0x4739e2,_0x4c9927,_0x589ade,_0x2b8051){return _0x42ffe3(_0x2b8051-0x274,_0x4c9927-0x105,_0x4739e2,_0x2b8051-_0x4943a6._0x50b409);}return this[_0x21983d(_0x5ec9fa._0x2c5c8f,0x1a5,_0x5ec9fa._0x3935c2,_0x5ec9fa._0x2753b2)];}[_0x5e5ba4(0x4fd,0x463,0x498,0x478)](_0x28b732,_0x4a661c){const _0x1e1938={_0x46452c:0x2a9,_0x5dd380:0x22c,_0x202741:0x246,_0x289d31:0x2b5,_0x30cc90:0x130,_0x1025a7:0x179,_0x41e10f:0x1f0,_0x44d61a:0x245,_0x44d5e6:0x8d,_0x238059:0xa0,_0x9d259e:0xde,_0x45760b:0xc7,_0x189f14:0xff,_0x1b8e16:0x66,_0x68db1c:0x157,_0x281645:0x175,_0x89906b:0x11d,_0x3d3de8:0x1ca,_0x11e286:0x2fa,_0x29cebf:0x1b8,_0xd60dde:0x3},_0x4ad557={_0xd6da34:0xb0,_0x3255ed:0x119},_0x31951f={_0x428b97:0x1d3,_0x52f53d:0xeb};function _0x1dab8e(_0x7a113b,_0x586735,_0xfde87b,_0x59c78b){return _0x5e5ba4(_0x7a113b-_0x31951f._0x428b97,_0x7a113b,_0xfde87b-_0x31951f._0x52f53d,_0xfde87b- -0x372);}function _0x2651bf(_0x5bbd8d,_0x21cba7,_0x18a057,_0x2b4b6f){return _0x5e5ba4(_0x5bbd8d-_0x4ad557._0xd6da34,_0x18a057,_0x18a057-_0x4ad557._0x3255ed,_0x21cba7- -0x539);}switch(this[_0x1dab8e(_0x1e1938._0x46452c,_0x1e1938._0x5dd380,_0x1e1938._0x202741,_0x1e1938._0x289d31)]){case'anthropic-messages':return this[_0x2651bf(0xdf,0x35,-0x7f,-0x82)]()[_0x1dab8e(0xd8,_0x1e1938._0x30cc90,0x106,0x34)](_0x28b732,_0x4a661c);case _0x1dab8e(0x281,_0x1e1938._0x1025a7,_0x1e1938._0x41e10f,_0x1e1938._0x44d61a):return this[_0x2651bf(-0xa4,0x3,-_0x1e1938._0x44d5e6,-_0x1e1938._0x238059)]()[_0x2651bf(-_0x1e1938._0x9d259e,-_0x1e1938._0x45760b,-_0x1e1938._0x189f14,-0xc0)](_0x28b732,_0x4a661c);case _0x2651bf(-0xef,-0x88,-_0x1e1938._0x1b8e16,-_0x1e1938._0x68db1c):return this[_0x1dab8e(_0x1e1938._0x281645,_0x1e1938._0x89906b,_0x1e1938._0x3d3de8,0x1f4)]()[_0x1dab8e(0x2a7,_0x1e1938._0x11e286,0x251,_0x1e1938._0x29cebf)](_0x28b732,_0x4a661c);default:return this[_0x2651bf(0x82,_0x1e1938._0xd60dde,-0x8e,0x62)]()['chatComplete'](_0x28b732,_0x4a661c);}}[_0x5e5ba4(0x586,0x502,0x5ea,0x5b5)](_0x36628e,_0x3760ef){const _0x35fbc2={_0x4a6779:0x4f0,_0x262549:0x3b4,_0x5464ac:0x570,_0x28b8ae:0x62f,_0x1d312d:0x59a,_0x14f334:0x29a,_0x5d8f14:0x4f9,_0x366d75:0x4f7,_0x3424e8:0x50b,_0x4648ca:0x4e9,_0x2686ac:0x324,_0x3ec4fa:0x554,_0x373dd5:0x5cd,_0x17d7fd:0x530},_0x49532b={_0x21c30e:0x4ee,_0x595d42:0x1e5,_0x374d95:0x4},_0x32f9ec={_0x143b6e:0x9c,_0x1b5d3c:0xa};function _0xc79ae4(_0x138fe6,_0x44d8fc,_0x512c9c,_0x1d6f0e){return _0x42ffe3(_0x1d6f0e- -0x23d,_0x44d8fc-_0x32f9ec._0x143b6e,_0x44d8fc,_0x1d6f0e-_0x32f9ec._0x1b5d3c);}function _0x59de19(_0x2b6050,_0x1fe469,_0x134914,_0x3928a8){return _0x42ffe3(_0x2b6050-_0x49532b._0x21c30e,_0x1fe469-_0x49532b._0x595d42,_0x3928a8,_0x3928a8-_0x49532b._0x374d95);}switch(this['surface']){case _0x59de19(0x484,0x525,_0x35fbc2._0x4a6779,_0x35fbc2._0x262549):return this['getAnthropicDelegate']()[_0x59de19(_0x35fbc2._0x5464ac,_0x35fbc2._0x28b8ae,0x599,_0x35fbc2._0x1d312d)](_0x36628e,_0x3760ef);case'openai-responses':return this[_0xc79ae4(-0x16b,-0x2df,-_0x35fbc2._0x14f334,-0x234)]()[_0x59de19(0x465,0x454,_0x35fbc2._0x5d8f14,0x4f9)](_0x36628e,_0x3760ef);case'openai-responses-ws':return this[_0x59de19(_0x35fbc2._0x366d75,0x570,_0x35fbc2._0x3424e8,_0x35fbc2._0x4648ca)]()[_0xc79ae4(-_0x35fbc2._0x2686ac,-0x305,-0x1e8,-0x2bb)](_0x36628e,_0x3760ef);default:return this['getOpenAiDelegate']()[_0x59de19(_0x35fbc2._0x3ec4fa,_0x35fbc2._0x373dd5,0x4cf,_0x35fbc2._0x17d7fd)](_0x36628e,_0x3760ef);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x42ffe3(0x95,0xaa,0x12d,0x131)];['baseUrl'];[_0x42ffe3(-0x52,-0xbf,-0xfb,0x6e)];[_0x42ffe3(0x39,-0x5e,0x71,0x1a)];[_0x42ffe3(0x96,-0x18,0x20,0x8a)];constructor(_0x212b63){const _0x3fff08={_0x47ef8c:0xa4,_0x313694:0x10b,_0x20e831:0x119,_0x1c93b7:0x6c,_0x55fdda:0x10d,_0x47f6c2:0x31,_0x5380e4:0x1c,_0x2a91d3:0x4b,_0x751f3c:0x158,_0x1006fe:0xc7,_0x154a7f:0x17,_0x4802b9:0x5f,_0x2302ef:0x1b,_0x2c9896:0x5b,_0xbae5ee:0xe,_0x1ee17a:0x196,_0x6b242a:0x44,_0x9f5ca:0xae,_0x284bed:0x1e6},_0x16f1ee={_0x2071d6:0x1f1},_0x4da66d={_0x22b946:0x83,_0x181de2:0x105};this[_0x319fe4(_0x3fff08._0x47ef8c,0x73,-0x7,_0x3fff08._0x313694)]=_0x212b63[_0xf94ef6(0x118,_0x3fff08._0x20e831,0x1d3,0x88)];function _0xf94ef6(_0x538fff,_0x33cc80,_0x4fda29,_0x3d38e5){return _0x42ffe3(_0x538fff-_0x4da66d._0x22b946,_0x33cc80-0x178,_0x4fda29,_0x3d38e5-_0x4da66d._0x181de2);}this[_0xf94ef6(-0x68,_0x3fff08._0x1c93b7,-0x3c,0xf)]=trimTrailingSlashes2(_0x212b63[_0x319fe4(-0x13e,-_0x3fff08._0x55fdda,-0x75,-0x72)]),this[_0xf94ef6(_0x3fff08._0x47f6c2,-_0x3fff08._0x5380e4,-_0x3fff08._0x2a91d3,-0x46)]=_0x212b63[_0xf94ef6(0xa7,_0x3fff08._0x751f3c,0x30,0x9a)],this[_0x319fe4(_0x3fff08._0x1006fe,_0x3fff08._0x154a7f,-_0x3fff08._0x4802b9,-_0x3fff08._0x2302ef)]=trimTrailingSlashes2(_0x212b63[_0x319fe4(0x92,0x17,_0x3fff08._0x2c9896,_0x3fff08._0xbae5ee)]);function _0x319fe4(_0x59d53a,_0xc4aa41,_0xb78844,_0xb0e601){return _0x5e5ba4(_0x59d53a-0x18c,_0xb0e601,_0xb78844-_0x16f1ee._0x2071d6,_0xc4aa41- -0x555);}this[_0xf94ef6(_0x3fff08._0x20e831,_0x3fff08._0x1ee17a,0x91,_0x3fff08._0x6b242a)]=_0x212b63[_0xf94ef6(0x119,_0x3fff08._0x9f5ca,0xd3,_0x3fff08._0x284bed)];}async[_0x42ffe3(0x2a,0x54,0xd9,-0x1e)](_0x3c9f0c){const _0x24ae2e={_0x380242:0x32b,_0x2ec638:0x28e,_0x1f49b3:0x277,_0x394eeb:0x1d0,_0x4f3a27:0x2fd,_0x29c149:0x345,_0x14bb3b:0x388,_0x4b4340:0x304,_0x1e40f8:0x2ff,_0x20ea37:0x23a,_0x1e6a13:0x1a3,_0x32d285:0x30c,_0x33c623:0x24e,_0x5b0230:0x389,_0x3bceff:0x3f2,_0x5ae22c:0x358,_0x586833:0x3c4,_0x792172:0x427,_0x3ab1f4:0x200,_0x22b131:0x2b9,_0x364a04:0x153,_0x19b140:0x222,_0x3ecd68:0x174,_0x571c17:0x274,_0x2ac63d:0x1ae,_0x266279:0x340,_0x34fae0:0x343,_0x25fb5a:0x342,_0x2d2430:0x3e0,_0x2c52cd:0x376,_0x395f24:0x3a7,_0x2e0b43:0x2bf,_0x127cfd:0x2b1,_0x48aa7f:0x2f8,_0x1474ec:0x26e,_0x5542d2:0x30d,_0x560c9b:0x25f,_0x162ab3:0x309,_0x5cf93e:0x2f8,_0x2c23c5:0x247,_0x5c09d3:0x2de,_0x22c47d:0x2f2,_0x5d4860:0x259,_0x140146:0x25f,_0xb74a0f:0x2d0,_0x2cee35:0x2bd,_0x8533b1:0x2e7,_0x254e68:0x309,_0x3ad241:0x18c,_0x3f36be:0x299,_0x47845a:0x218},_0x206f72={_0x33d7c4:0x121,_0x3fdff4:0x73c},_0x66bf10={_0x3f9be6:0x35f,_0x568e6c:0x100,_0x2df759:0x6b};function _0x134077(_0x26112f,_0x35a9f6,_0x535636,_0x47b028){return _0x42ffe3(_0x35a9f6-_0x66bf10._0x3f9be6,_0x35a9f6-_0x66bf10._0x568e6c,_0x535636,_0x47b028-_0x66bf10._0x2df759);}const _0x4f5ecc=await this[_0x37fd6e(-_0x24ae2e._0x380242,-_0x24ae2e._0x2ec638,-0x2d6,-0x25b)](this[_0x37fd6e(-0x25e,-_0x24ae2e._0x1f49b3,-0x23b,-_0x24ae2e._0x394eeb)]+_0x134077(0x2a3,_0x24ae2e._0x4f3a27,_0x24ae2e._0x29c149,_0x24ae2e._0x14bb3b),{'method':'GET','headers':new Headers({'accept':_0x37fd6e(-0x34f,-_0x24ae2e._0x4b4340,-0x3b3,-_0x24ae2e._0x1e40f8),'authorization':_0x37fd6e(-_0x24ae2e._0x20ea37,-_0x24ae2e._0x1e6a13,-_0x24ae2e._0x32d285,-_0x24ae2e._0x33c623)+this[_0x134077(0x482,0x3f4,_0x24ae2e._0x5b0230,_0x24ae2e._0x3bceff)],'editor-version':'vscode/1.106.1','user-agent':_0x134077(_0x24ae2e._0x5ae22c,_0x24ae2e._0x586833,0x344,_0x24ae2e._0x792172),'x-github-api-version':this['tokenExchangeApiVersion']}),'signal':_0x3c9f0c});if(!_0x4f5ecc['ok'])return{'credential':{'kind':_0x37fd6e(-_0x24ae2e._0x3ab1f4,-0x32f,-0x2a9,-_0x24ae2e._0x22b131),'value':this[_0x37fd6e(-_0x24ae2e._0x364a04,-0xf5,-_0x24ae2e._0x19b140,-_0x24ae2e._0x3ecd68)]},'endpoints':{'api':this[_0x134077(0x339,_0x24ae2e._0x571c17,_0x24ae2e._0x2ac63d,0x1c4)]}};function _0x37fd6e(_0x178ddd,_0x120ba3,_0x50681,_0x43982c){return _0x5e5ba4(_0x178ddd-0x129,_0x178ddd,_0x50681-_0x206f72._0x33d7c4,_0x43982c- -_0x206f72._0x3fdff4);}const _0x492be7=await _0x4f5ecc[_0x134077(_0x24ae2e._0x266279,0x35c,_0x24ae2e._0x34fae0,_0x24ae2e._0x25fb5a)]();return{'credential':{'kind':_0x134077(0x414,_0x24ae2e._0x2d2430,_0x24ae2e._0x2c52cd,_0x24ae2e._0x395f24),'value':_0x492be7[_0x37fd6e(-_0x24ae2e._0x2e0b43,-_0x24ae2e._0x127cfd,-_0x24ae2e._0x48aa7f,-_0x24ae2e._0x1474ec)]??this['accessToken']},'endpoints':{'api':_0x492be7[_0x37fd6e(-_0x24ae2e._0x5542d2,-_0x24ae2e._0x560c9b,-0x2a0,-_0x24ae2e._0x162ab3)]?.[_0x37fd6e(-_0x24ae2e._0x5cf93e,-0x2ab,-0x1bb,-0x274)]??this[_0x37fd6e(-_0x24ae2e._0x2c23c5,-_0x24ae2e._0x5c09d3,-0x3a1,-0x2f4)],'originTracker':_0x492be7['endpoints']?.[_0x37fd6e(-0x186,-0x283,-_0x24ae2e._0x22c47d,-_0x24ae2e._0x5d4860)],'proxy':_0x492be7[_0x134077(0x27d,_0x24ae2e._0x140146,0x1a0,_0x24ae2e._0xb74a0f)]?.['proxy'],'telemetry':_0x492be7[_0x37fd6e(-_0x24ae2e._0x2cee35,-0x3d8,-_0x24ae2e._0x8533b1,-_0x24ae2e._0x254e68)]?.[_0x37fd6e(-_0x24ae2e._0x3ad241,-_0x24ae2e._0x3f36be,-0x146,-_0x24ae2e._0x47845a)]}};}};function trimTrailingSlashes2(_0x5232ff){const _0x5616ee={_0x15a7e5:0x329,_0x140286:0x3f1},_0x111ba7={_0x6149a6:0x9,_0x2e08c1:0x794};function _0x5a97de(_0x3e53ef,_0x51a66a,_0x4e06df,_0x4b73c5){return _0x5e5ba4(_0x3e53ef-_0x111ba7._0x6149a6,_0x4e06df,_0x4e06df-0x1ab,_0x3e53ef- -_0x111ba7._0x2e08c1);}return _0x5232ff[_0x5a97de(-_0x5616ee._0x15a7e5,-0x306,-_0x5616ee._0x140286,-0x2ae)](/\/+$/,'');}function createModelInfo(_0x2ec379){const _0x54d63b={_0x3d2c40:0xb,_0x1d5c40:0x63,_0x42132e:0x1ce,_0x22436e:0x1a5,_0x1e7314:0x17a,_0x11e95a:0x205,_0x59951f:0x146,_0x2a2471:0xb6,_0x344101:0xa9,_0x1f7133:0x156,_0x3cf69b:0x17d,_0x3d4f59:0x1b1,_0x4ca2db:0x2c,_0x3d3736:0xda,_0x100674:0x19d},_0x5a09c0={_0x5758ce:0x84},_0x4fafa2={_0x611782:0x3f};function _0x3cb987(_0x53f1de,_0x2af3b7,_0x2e9832,_0x2c80f4){return _0x5e5ba4(_0x53f1de-_0x4fafa2._0x611782,_0x53f1de,_0x2e9832-0x11e,_0x2c80f4- -0x422);}const _0x16b9a3=_0x2ec379[_0x3cb987(0x25,-_0x54d63b._0x3d2c40,0x18,_0x54d63b._0x1d5c40)]??_0x2ec379[_0x3cb987(_0x54d63b._0x42132e,_0x54d63b._0x22436e,0x20f,_0x54d63b._0x1e7314)],_0x4728a6=_0x2ec379[_0x3cb987(0x176,0xd7,_0x54d63b._0x11e95a,_0x54d63b._0x59951f)]?.[_0x3cb987(0x210,0x1ce,0x236,0x1b1)]?.[_0x3cb987(_0x54d63b._0x2a2471,_0x54d63b._0x344101,-0x2f,0x29)],_0x28aa2a=_0x2ec379[_0x3cb987(_0x54d63b._0x1f7133,0x1a4,_0x54d63b._0x3cf69b,0x146)]?.[_0x3cb987(0x18f,0x13c,0x14b,_0x54d63b._0x3d4f59)]?.[_0x41336a(-_0x54d63b._0x4ca2db,-_0x54d63b._0x3d3736,-0xcd,-_0x54d63b._0x100674)];function _0x41336a(_0x1702f7,_0xb90d01,_0x528d0c,_0x2424ae){return _0x42ffe3(_0x528d0c- -_0x5a09c0._0x5758ce,_0xb90d01-0x34,_0x2424ae,_0x2424ae-0x101);}const _0x3dfc62=_0x4728a6!==void 0x0||_0x28aa2a!==void 0x0?{..._0x4728a6!==void 0x0?{'contextWindow':_0x4728a6}:{},..._0x28aa2a!==void 0x0?{'maxOutput':_0x28aa2a}:{}}:void 0x0;return{'id':_0x2ec379['id'],'name':_0x2ec379['name']??_0x2ec379['id'],..._0x3dfc62?{'limits':_0x3dfc62}:{},..._0x16b9a3?{'supportedEndpoints':_0x16b9a3}:{}};}function deduplicateModels(_0x540743){const _0x2ebaed={_0x262f2e:0x3ad,_0x15d949:0x4f4},_0x215d67={_0x117eb0:0x4a},_0x299861={_0xf1f751:0x467};function _0x2b8766(_0x3851f7,_0x2d9832,_0x36e449,_0x25862e){return _0x42ffe3(_0x36e449-_0x299861._0xf1f751,_0x2d9832-0x1ac,_0x2d9832,_0x25862e-0x172);}function _0x2d73a9(_0x12bc5d,_0x3b6d40,_0x24e26a,_0x26cf47){return _0x5e5ba4(_0x12bc5d-_0x215d67._0x117eb0,_0x3b6d40,_0x24e26a-0x26,_0x26cf47- -0x716);}const _0x2c3bfc=new Map();for(const _0x947b1b of _0x540743){!_0x2c3bfc[_0x2b8766(0x3ca,_0x2ebaed._0x262f2e,0x430,0x3b6)](_0x947b1b['id'])&&_0x2c3bfc['set'](_0x947b1b['id'],_0x947b1b);}return Array['from'](_0x2c3bfc[_0x2b8766(_0x2ebaed._0x15d949,0x3dc,0x473,0x45f)]());}function hasUserPromptContent(_0x2b8957){const _0x4df243={_0x4aadb9:0x197,_0x4aed26:0x175,_0x58ff54:0xe4,_0x1a8909:0x115,_0x4220d1:0x44,_0x5e1069:0x6b,_0x120384:0x137,_0x26efe8:0x204},_0x56c14f={_0x5390e7:0x25f,_0x114a73:0x302,_0x1b6f01:0x20f,_0x20f102:0x167,_0x42db42:0x18f,_0x2219b9:0x27,_0x52eb29:0x2d2,_0x4f51a9:0x393,_0x18121a:0x241,_0x27ef2f:0x22a,_0x180b88:0x2f8,_0x588241:0x356,_0x5506e1:0x286,_0x207f0d:0x2f5,_0x3df3b2:0x2cb,_0x205926:0x135,_0x5107fe:0x100,_0x273555:0xfe,_0x19fc04:0x15b},_0x3a6560={_0x30953b:0x111,_0x5d0f7c:0x70},_0x4ef27e={_0x516c90:0x11c},_0x2381f6={_0x44752c:0x1c5};if(typeof _0x2b8957===_0x5d309d(0x146,_0x4df243._0x4aadb9,_0x4df243._0x4aed26,0x190))return _0x2b8957['trim']()[_0x26ae4d(0xde,_0x4df243._0x58ff54,0xa5,0x39)]>0x0;if(!Array[_0x26ae4d(_0x4df243._0x1a8909,0x7f,_0x4df243._0x4220d1,_0x4df243._0x5e1069)](_0x2b8957))return![];function _0x26ae4d(_0x4ebbe5,_0x7841bf,_0x3212c6,_0x19885a){return _0x42ffe3(_0x7841bf-0x135,_0x7841bf-0x82,_0x3212c6,_0x19885a-_0x2381f6._0x44752c);}function _0x5d309d(_0x3b5dab,_0x1bd68f,_0x1a60a9,_0x8a129f){return _0x42ffe3(_0x8a129f-0x26d,_0x1bd68f-_0x4ef27e._0x516c90,_0x1a60a9,_0x8a129f-0x1bc);}return _0x2b8957[_0x26ae4d(0x1d6,_0x4df243._0x120384,0xd8,_0x4df243._0x26efe8)](_0x223413=>{function _0xd35067(_0x2c226c,_0x2e89f8,_0x515b39,_0x5164f7){return _0x26ae4d(_0x2c226c-0x4e,_0x2e89f8-0x1a,_0x515b39,_0x5164f7-0x1dd);}if(!_0x223413||typeof _0x223413!==_0x9e2df8(0x246,_0x56c14f._0x5390e7,_0x56c14f._0x114a73,0x306))return![];function _0x9e2df8(_0x24c7a8,_0xfdd203,_0x400ae4,_0x531267){return _0x5d309d(_0x24c7a8-0x1ab,_0xfdd203-_0x3a6560._0x30953b,_0x400ae4,_0x531267-_0x3a6560._0x5d0f7c);}const _0xb18b9a=_0x223413;return(_0xb18b9a[_0xd35067(_0x56c14f._0x1b6f01,_0x56c14f._0x20f102,0xd8,0xf1)]===_0xd35067(0x59,0xf7,_0x56c14f._0x42db42,_0x56c14f._0x2219b9)||_0xb18b9a[_0x9e2df8(_0x56c14f._0x52eb29,0x3b0,_0x56c14f._0x4f51a9,0x2f5)]===_0x9e2df8(_0x56c14f._0x18121a,0x31d,0x269,0x290))&&typeof _0xb18b9a[_0x9e2df8(_0x56c14f._0x27ef2f,_0x56c14f._0x180b88,_0x56c14f._0x588241,0x290)]==='string'&&_0xb18b9a[_0x9e2df8(_0x56c14f._0x5506e1,_0x56c14f._0x207f0d,_0x56c14f._0x3df3b2,0x290)][_0xd35067(_0x56c14f._0x205926,_0x56c14f._0x5107fe,0x78,0xf8)]()[_0xd35067(0x131,_0x56c14f._0x273555,_0x56c14f._0x19fc04,0x74)]>0x0;});}function isUserPromptEntry(_0x2f5ae1){const _0x200243={_0x23fc81:0x31,_0x25aed0:0x3,_0x1cad2c:0x11,_0x4172da:0x43,_0x7076ae:0x1a,_0x3b1190:0x1b,_0x3ed8e5:0x4,_0x20603d:0x162,_0x266aa8:0x4c,_0xf5bf24:0xfc,_0x21ea40:0x57,_0x1a7e72:0x2f,_0x1c26b5:0x2a},_0x5721ba={_0x58c64e:0x86,_0x183131:0x7c},_0x3362a5={_0x30048b:0x55a};if(!_0x2f5ae1||typeof _0x2f5ae1!==_0x280b86(-_0x200243._0x23fc81,0xcf,-_0x200243._0x25aed0,0x2))return![];const _0x15d53e=_0x2f5ae1;if(_0x15d53e[_0x280b86(0x29,-_0x200243._0x1cad2c,0x17,_0x200243._0x4172da)]!==_0x179459(-_0x200243._0x7076ae,_0x200243._0x3b1190,_0x200243._0x3ed8e5,-0x25))return![];if(_0x15d53e['type']!==void 0x0&&_0x15d53e[_0x179459(0x9e,_0x200243._0x20603d,_0x200243._0x266aa8,_0x200243._0xf5bf24)]!==_0x280b86(-0x2b,-_0x200243._0x21ea40,-0x63,-0x71))return![];function _0x280b86(_0x395cf9,_0x483084,_0x29b1d8,_0xd53fd3){return _0x5e5ba4(_0x395cf9-0x14e,_0x395cf9,_0x29b1d8-0xc,_0xd53fd3- -_0x3362a5._0x30048b);}function _0x179459(_0x520e6b,_0x567ab8,_0x3fb1a7,_0xe67fda){return _0x42ffe3(_0x520e6b-_0x5721ba._0x58c64e,_0x567ab8-0x1e6,_0xe67fda,_0xe67fda-_0x5721ba._0x183131);}return hasUserPromptContent(_0x15d53e[_0x179459(0x16,-0xad,_0x200243._0x1a7e72,-_0x200243._0x1c26b5)]);}function determineInitiator(_0x2df3ff){const _0x11e3ba={_0x1a0ae0:0x27f,_0x9b08be:0x1c6,_0x16bf63:0x2ef,_0x59c814:0x16e,_0x208749:0x1bc,_0x345f69:0x2b3,_0x1a801f:0x258,_0x2d88c8:0x265,_0x1cdacb:0x1e2,_0x586582:0x258,_0x4322c0:0x2eb,_0x34f7ee:0x247,_0x129e62:0x1a0,_0x3f2800:0x177,_0x593875:0x257,_0x4a2944:0x286,_0x5cdfa2:0x333,_0xfdbd23:0x205,_0x1d16b0:0x10b,_0x9f8005:0x2c4},_0x2bd612={_0x23d980:0x182},_0x2d10a1={_0x10c51e:0xee,_0x5c4ea3:0x2f1};if(!_0x2df3ff||typeof _0x2df3ff!==_0x441b0b(_0x11e3ba._0x1a0ae0,0x1c4,_0x11e3ba._0x9b08be,0x2ea))return _0x441b0b(0x297,0x243,_0x11e3ba._0x16bf63,0x1fb);const _0x84aa75=_0x853964(0x108,_0x11e3ba._0x59c814,0x209,_0x11e3ba._0x208749)in _0x2df3ff?_0x2df3ff['messages']:_0x853964(_0x11e3ba._0x345f69,_0x11e3ba._0x1a801f,_0x11e3ba._0x2d88c8,0x245)in _0x2df3ff?_0x2df3ff[_0x853964(_0x11e3ba._0x1cdacb,_0x11e3ba._0x586582,_0x11e3ba._0x4322c0,_0x11e3ba._0x34f7ee)]:void 0x0;function _0x853964(_0x557ddb,_0x9dc8fb,_0x2484be,_0x886d17){return _0x5e5ba4(_0x557ddb-_0x2d10a1._0x10c51e,_0x2484be,_0x2484be-0x154,_0x9dc8fb- -_0x2d10a1._0x5c4ea3);}function _0x441b0b(_0x140329,_0xc82dda,_0x23b3f4,_0x2d12ef){return _0x5e5ba4(_0x140329-0x16e,_0x23b3f4,_0x23b3f4-_0x2bd612._0x23d980,_0x140329- -0x2dd);}if(!Array[_0x441b0b(_0x11e3ba._0x129e62,_0x11e3ba._0x3f2800,0x1c1,0x141)](_0x84aa75)||_0x84aa75[_0x441b0b(0x205,0x2b0,0x203,_0x11e3ba._0x593875)]===0x0)return _0x853964(0x24c,0x283,_0x11e3ba._0x4a2944,_0x11e3ba._0x5cdfa2);return isUserPromptEntry(_0x84aa75[_0x84aa75[_0x441b0b(_0x11e3ba._0xfdbd23,0x1f1,0x1e9,0x1d1)]-0x1])?_0x441b0b(0x1b6,0x11d,0x1d9,_0x11e3ba._0x1d16b0):_0x853964(0x2d8,0x283,_0x11e3ba._0x9f8005,0x321);}function isUnsupportedApiForModel(_0x27c576){const _0x2ad07e={_0xe1bda9:0x2,_0x52ce0c:0x3e,_0x1077ae:0x23};function _0xece6e1(_0x451993,_0x333e00,_0x17ed9b,_0x27f879){return _0x42ffe3(_0x17ed9b-0x85,_0x333e00-0x6,_0x27f879,_0x27f879-0x193);}return _0x27c576['includes'](_0xece6e1(_0x2ad07e._0xe1bda9,0xe2,_0x2ad07e._0x52ce0c,_0x2ad07e._0x1077ae));}function createResponseError(_0x1fad70,_0x37848e){const _0x1eddf9={_0x3deccb:0x343,_0x182d88:0x2f8,_0x2ab35d:0x321,_0x32868d:0x391},_0x3e69c8={_0x2518a3:0x1,_0x3f85fd:0x132},_0x4a6bf9={_0x244d75:0x1b3,_0xfd11ef:0x16};function _0x2d748c(_0x41a7ad,_0x1b21b8,_0x52c04e,_0x3a0dfc){return _0x42ffe3(_0x3a0dfc-_0x4a6bf9._0x244d75,_0x1b21b8-_0x4a6bf9._0xfd11ef,_0x1b21b8,_0x3a0dfc-0x8);}if(_0x1fad70===0x191||_0x1fad70===0x193)return new Error(_0x3eb321(0x363,_0x1eddf9._0x3deccb,0x42e,_0x1eddf9._0x182d88));function _0x3eb321(_0x57a41f,_0x44312a,_0x521ab2,_0x309ef7){return _0x5e5ba4(_0x57a41f-0x13e,_0x44312a,_0x521ab2-_0x3e69c8._0x2518a3,_0x57a41f- -_0x3e69c8._0x3f85fd);}if(_0x1fad70===0x198||_0x1fad70===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');if(_0x1fad70===0x190)return new Error(_0x3eb321(0x3dc,_0x1eddf9._0x2ab35d,_0x1eddf9._0x32868d,0x37d)+_0x37848e);return new Error(_0x37848e||'GitHub\x20API\x20error\x20'+_0x1fad70);}var GitHubModel=class extends OpenAiModel{[_0x5e5ba4(0x5f4,0x52f,0x4ac,0x57a)];[_0x5e5ba4(0x539,0x44c,0x45f,0x51e)]=new Map();[_0x5e5ba4(0x673,0x60a,0x5a6,0x5b8)];constructor(_0x2e055f={}){const _0x4b7aa6={_0x124e1a:0x43c,_0x1d7745:0x4f1,_0x2f0b51:0x4e5,_0x4f525:0x4a0,_0x37420a:0x41d,_0x4b89c7:0x5e9,_0x22b9f1:0x57a,_0x4d65aa:0x4a7,_0x159a78:0x51a,_0xad61ab:0x5be,_0x1f9ce1:0x592,_0x5a9e98:0x574,_0x3445e1:0x598,_0x66ecec:0x650,_0x8bb869:0x4ed,_0x2f6ee4:0x579,_0x11410b:0x49c,_0x2d6144:0x4cc,_0x26422d:0x5ef,_0x15c20d:0x524,_0x5e6caf:0x59c,_0x55b2fc:0x594,_0xadcabe:0x52d,_0x148df2:0x45e,_0x261105:0x57f,_0x264d0f:0x554,_0x59463c:0x48d,_0x529e65:0x544,_0x24eccd:0x3e2,_0x377f42:0x4d1,_0x159358:0x4e4,_0x27e319:0x505,_0x4f00c8:0x670,_0x371b69:0x56a,_0x3eb7ea:0x545,_0x2c782e:0x46b,_0x44e00e:0x47c,_0x2e7b9b:0x3f7,_0x508242:0x4ad,_0x2524a2:0x4f9,_0x546ac3:0x4b7,_0x49a187:0x582,_0x4b1807:0x4d5,_0x3fb4d5:0x4bc,_0x5bbdd6:0x508,_0xeafeee:0x44b,_0x4e671a:0x448,_0x3e085b:0x41c,_0x53181b:0x3ce},_0x11da65={_0x29421f:0xd5},_0xd8a844=trimTrailingSlashes2(_0x2e055f['baseUrl']??'https://api.individual.githubcopilot.com'),_0x1f0d80=_0x2e055f[_0x1f9d58(0x4dc,0x509,0x4c9,_0x4b7aa6._0x124e1a)]??globalThis[_0x1f9d58(0x4e8,0x509,0x506,_0x4b7aa6._0x1d7745)],_0x2886d2=_0x2e055f[_0xa157fd(_0x4b7aa6._0x2f0b51,_0x4b7aa6._0x4f525,_0x4b7aa6._0x37420a,0x498)]??(_0x2e055f[_0xa157fd(0x69c,_0x4b7aa6._0x4b89c7,0x668,0x577)]?new GitHubAccessTokenResolver({'accessToken':_0x2e055f[_0x1f9d58(0x61d,_0x4b7aa6._0x22b9f1,_0x4b7aa6._0x4d65aa,_0x4b7aa6._0x159a78)],'baseUrl':_0xd8a844,'fetch':_0x1f0d80,'githubApiUrl':_0x2e055f[_0x1f9d58(0x5d5,0x51e,_0x4b7aa6._0xad61ab,_0x4b7aa6._0x1f9ce1)]??_0xa157fd(0x551,_0x4b7aa6._0x5a9e98,_0x4b7aa6._0x3445e1,0x5f1),'tokenExchangeApiVersion':_0x2e055f[_0x1f9d58(_0x4b7aa6._0x66ecec,0x57b,0x650,0x4f0)]??_0xa157fd(_0x4b7aa6._0x8bb869,_0x4b7aa6._0x2f6ee4,0x4c4,0x5f1)}):void 0x0),_0x200246=_0x2e055f[_0xa157fd(_0x4b7aa6._0x11410b,0x51e,0x585,_0x4b7aa6._0x2d6144)]??_0xa157fd(_0x4b7aa6._0x26422d,_0x4b7aa6._0x15c20d,0x4d9,0x56e);function _0xa157fd(_0x3bffbd,_0x4a619d,_0x12e31e,_0x45a3f4){return _0x5e5ba4(_0x3bffbd-0x8a,_0x12e31e,_0x12e31e-0x65,_0x4a619d-0x21);}const _0x1e00f9=_0x2e055f[_0x1f9d58(_0x4b7aa6._0x37420a,0x4ca,0x493,0x464)]??_0x1f9d58(0x4e3,0x545,_0x4b7aa6._0x5e6caf,_0x4b7aa6._0x55b2fc),_0x38c76c=({body:_0x394d43})=>{return{'editor-plugin-version':_0x1e00f9,'editor-version':_0x200246,'x-initiator':determineInitiator(_0x394d43),'x-request-id':randomUUID()};};function _0x1f9d58(_0x5f3190,_0x17ec81,_0x1a1011,_0x34ea03){return _0x42ffe3(_0x17ec81-0x4e5,_0x17ec81-_0x11da65._0x29421f,_0x34ea03,_0x34ea03-0x42);}const _0x2f5872={'apiKey':_0x2e055f[_0xa157fd(0x5fd,0x57f,_0x4b7aa6._0xadcabe,0x524)],'baseUrl':_0xd8a844,'fetch':_0x1f0d80,'maxTokens':_0x2e055f['maxTokens'],'model':_0x2e055f[_0x1f9d58(0x477,0x4bc,_0x4b7aa6._0x148df2,_0x4b7aa6._0x4d65aa)],'reasoning':_0x2e055f[_0xa157fd(_0x4b7aa6._0x261105,_0x4b7aa6._0x264d0f,_0x4b7aa6._0x59463c,_0x4b7aa6._0x529e65)],'providerSessionResolver':_0x2886d2,'requestMutators':_0x2e055f[_0x1f9d58(_0x4b7aa6._0x24eccd,0x448,_0x4b7aa6._0x377f42,_0x4b7aa6._0x159358)],'headerResolver':_0x38c76c};super(_0x2f5872),this[_0xa157fd(0x673,0x5d9,_0x4b7aa6._0x27e319,_0x4b7aa6._0x4f00c8)]=_0x2e055f[_0x1f9d58(0x4ac,_0x4b7aa6._0x371b69,_0x4b7aa6._0x3eb7ea,0x53e)]??_0xa157fd(_0x4b7aa6._0x2c782e,_0x4b7aa6._0x44e00e,0x3d1,_0x4b7aa6._0x2e7b9b),this[_0x1f9d58(_0x4b7aa6._0x508242,0x52c,_0x4b7aa6._0x2524a2,0x570)]=new AnthropicModel({'apiKey':_0x2e055f['apiKey'],'authScheme':_0xa157fd(0x59b,0x55e,0x58a,_0x4b7aa6._0x546ac3),'baseUrl':_0xd8a844,'fetch':_0x1f0d80,'headerResolver':_0x38c76c,'maxTokens':_0x2e055f[_0x1f9d58(0x60f,_0x4b7aa6._0x49a187,0x560,0x620)],'model':_0x2e055f[_0x1f9d58(_0x4b7aa6._0x4b1807,_0x4b7aa6._0x3fb4d5,_0x4b7aa6._0x5bbdd6,_0x4b7aa6._0xeafeee)],'reasoning':_0x2e055f['reasoning'],'providerSessionResolver':_0x2886d2,'requestMutators':_0x2e055f[_0x1f9d58(0x4fd,_0x4b7aa6._0x4e671a,_0x4b7aa6._0x3e085b,_0x4b7aa6._0x53181b)]});}[_0x42ffe3(0x8d,0xe8,0xd,0x67)](){const _0x4cb858={_0x3b53d8:0x93},_0x388bcd={_0x576ffa:0x16,_0x5a49a6:0x197};function _0xae059f(_0x38d3c1,_0x5e2c3c,_0x5c70fa,_0x29b326){return _0x42ffe3(_0x5e2c3c- -_0x388bcd._0x576ffa,_0x5e2c3c-_0x388bcd._0x5a49a6,_0x5c70fa,_0x29b326-0x15f);}return new Error(_0xae059f(-0x35,-_0x4cb858._0x3b53d8,-0x152,-0x103));}[_0x42ffe3(0x8c,0x106,-0x2a,-0x48)](_0x15d51e){const _0x319db1={_0xeeb1b3:0x210,_0x1af9f9:0x266,_0x5d620d:0x9c,_0x3e478a:0x15,_0x5a7dca:0x48,_0x4227fc:0x3e,_0x27916d:0x9d,_0x4fd4d7:0x15d,_0x3b0efb:0x27e,_0xce6622:0x2bc,_0x1a4f6a:0x20e,_0x5f40c8:0x33d,_0x3ba47b:0xc7,_0x40b59c:0x15a},_0x35a24c={_0x55f125:0x5a5},_0x14dee3={_0x49baeb:0x2ad,_0x2d46ed:0x103};function _0x49546e(_0x252cfa,_0x5f218f,_0x30aafd,_0x42c91f){return _0x42ffe3(_0x252cfa-_0x14dee3._0x49baeb,_0x5f218f-_0x14dee3._0x2d46ed,_0x5f218f,_0x42c91f-0xab);}const _0x411812=this[_0x49546e(0x298,_0x319db1._0xeeb1b3,0x21b,_0x319db1._0x1af9f9)][_0x2b8524(-_0x319db1._0x5d620d,-_0x319db1._0x3e478a,-_0x319db1._0x5a7dca,-0x9b)](_0x15d51e);if(!_0x411812)return![];function _0x2b8524(_0x5cd26e,_0x427469,_0x236d30,_0x568a6a){return _0x5e5ba4(_0x5cd26e-0xc4,_0x236d30,_0x236d30-0x142,_0x5cd26e- -_0x35a24c._0x55f125);}return!_0x411812[_0x2b8524(-0xa1,-_0x319db1._0x4227fc,-0xd6,0x16)](_0x2b8524(-0xd8,-0x7a,-_0x319db1._0x27916d,-_0x319db1._0x4fd4d7))&&_0x411812[_0x49546e(_0x319db1._0x3b0efb,_0x319db1._0xce6622,_0x319db1._0x1a4f6a,_0x319db1._0x5f40c8)](_0x2b8524(-_0x319db1._0x3ba47b,-0x53,-_0x319db1._0x40b59c,-0x170));}['shouldPreferResponsesApi'](_0x17a146){const _0x161128={_0x230427:0x4e3,_0x5da6a6:0x438,_0xf0c2e6:0x4ad,_0x500692:0x4ed,_0x2d89d9:0x423,_0xa701e9:0x468,_0xb38abd:0x435,_0x575eaa:0x161,_0x242a85:0x478,_0x54e410:0x41e,_0xd27a2c:0x369,_0x40028a:0x186,_0xa5205b:0x5a5,_0x3e8eb0:0x588,_0x2c906b:0x48e,_0x14fe47:0x20c},_0x4814c1={_0x328904:0x124,_0x2f6e58:0xe4},_0x516568={_0x241a38:0x1cd},_0x5f5191=this[_0x39c48c(_0x161128._0x230427,_0x161128._0x5da6a6,_0x161128._0xf0c2e6,0x447)][_0x39c48c(_0x161128._0x500692,_0x161128._0x2d89d9,0x4e0,0x3fe)](_0x17a146[_0x39c48c(0x4f5,0x424,_0x161128._0xa701e9,_0x161128._0xb38abd)]);function _0x2ae16d(_0xba0d94,_0x40d7b9,_0xd69424,_0x4faa48){return _0x5e5ba4(_0xba0d94-0xea,_0xd69424,_0xd69424-_0x516568._0x241a38,_0xba0d94- -0x694);}function _0x39c48c(_0x18734a,_0x5b790a,_0x4ade85,_0x2023ea){return _0x42ffe3(_0x5b790a-0x44d,_0x5b790a-_0x4814c1._0x328904,_0x18734a,_0x2023ea-_0x4814c1._0x2f6e58);}if(!_0x5f5191)return![];if(resolveOpenAiReasoningConfig(_0x17a146[_0x2ae16d(-_0x161128._0x575eaa,-0x145,-0x21b,-0x136)]))return _0x5f5191[_0x39c48c(_0x161128._0x242a85,_0x161128._0x54e410,_0x161128._0xd27a2c,0x4e4)](_0x2ae16d(-0x1b6,-0x14c,-_0x161128._0x40028a,-0x1b0));return this[_0x39c48c(_0x161128._0xa5205b,0x4d9,_0x161128._0x3e8eb0,_0x161128._0x2c906b)](_0x17a146[_0x2ae16d(-0x18a,-_0x161128._0x14fe47,-0x25e,-0x118)]);}[_0x5e5ba4(0x3af,0x43d,0x422,0x464)](_0x4db91c){const _0xdfb4c5={_0x597acd:0x9f,_0x24bff7:0x12b,_0x537d6a:0x59,_0x516088:0x67,_0x7bbc73:0x47,_0x119edc:0xb8,_0x1ab25f:0x94},_0x44e38b={_0x1b7487:0x4c7},_0x454644={_0x34f302:0x516};function _0x335a1c(_0x4497c4,_0x58fe81,_0x102cc5,_0x1f2f81){return _0x5e5ba4(_0x4497c4-0x1a6,_0x102cc5,_0x102cc5-0x1b6,_0x4497c4- -_0x454644._0x34f302);}function _0x38c684(_0x460746,_0x3afc9f,_0x3eed37,_0x4de67f){return _0x5e5ba4(_0x460746-0x1a,_0x3eed37,_0x3eed37-0x19b,_0x460746- -_0x44e38b._0x1b7487);}this[_0x38c684(0x57,_0xdfb4c5._0x597acd,_0xdfb4c5._0x24bff7,-0x60)][_0x335a1c(_0xdfb4c5._0x537d6a,0x74,_0xdfb4c5._0x516088,-_0xdfb4c5._0x7bbc73)](_0x4db91c,[_0x335a1c(-0x38,-0x89,-_0xdfb4c5._0x119edc,_0xdfb4c5._0x1ab25f)]);}[_0x5e5ba4(0x45e,0x58c,0x531,0x50b)](_0x29cc5e){const _0x3165f6={_0x367137:0x1a4,_0x2c37f6:0x133,_0x3440b4:0x4bd,_0x59a16a:0x41b,_0xd06a4d:0x4c9,_0x43c166:0x531},_0x535609={_0x4e4ace:0x85,_0x10f37f:0x588},_0x2208cb={_0x3ac654:0xe1};if(_0x29cc5e instanceof OpenAiApiError)return createResponseError(_0x29cc5e[_0x43fb49(-_0x3165f6._0x367137,-0xb0,-_0x3165f6._0x2c37f6,-0xda)],_0x29cc5e[_0x197968(0x518,0x4b5,0x51f,_0x3165f6._0x3440b4)]||_0x29cc5e[_0x197968(0x47c,_0x3165f6._0x59a16a,_0x3165f6._0xd06a4d,_0x3165f6._0x43c166)]);function _0x197968(_0x2a72a7,_0x2321a4,_0xdfecc2,_0x5c2e2e){return _0x42ffe3(_0x2a72a7-0x4c6,_0x2321a4-0x17f,_0x5c2e2e,_0x5c2e2e-_0x2208cb._0x3ac654);}function _0x43fb49(_0x43d8cd,_0x332daf,_0x300e25,_0x5916ec){return _0x5e5ba4(_0x43d8cd-_0x535609._0x4e4ace,_0x332daf,_0x300e25-0x88,_0x300e25- -_0x535609._0x10f37f);}return _0x29cc5e;}[_0x42ffe3(-0x8,-0x31,-0x17,-0xc9)](_0x3cfc12,_0x40455a){const _0xd09b63={_0x16a554:0x534,_0x11de67:0x549,_0x3f4625:0x493,_0x1819dd:0x359,_0x5affa8:0x320,_0x16fa76:0x219,_0x4161a8:0x141,_0x3ef083:0x3ef,_0x42c6f5:0x2f0,_0x362784:0x365,_0x18c2fa:0x3cc,_0x4bccf0:0x38c,_0x23ea50:0x193,_0x1e4c2a:0x1de,_0x33e415:0xe0,_0x45bd39:0x33e,_0x5b6a8b:0x336,_0x545d6d:0x373,_0x29687a:0x423,_0x18d93f:0x50c,_0x12c55d:0x4b5},_0x125137={_0x3dff54:0x12b},_0x1468ef={_0x1264db:0xbd,_0x4d8111:0x51,_0xf0d366:0x125};function _0x284379(_0x162dbb,_0x3b501d,_0x39f43f,_0x19c74c){return _0x5e5ba4(_0x162dbb-_0x1468ef._0x1264db,_0x162dbb,_0x39f43f-_0x1468ef._0x4d8111,_0x19c74c- -_0x1468ef._0xf0d366);}function _0x206c7f(_0x3df42b,_0x20f2ab,_0x1264c,_0x26255b){return _0x42ffe3(_0x3df42b- -0x223,_0x20f2ab-_0x125137._0x3dff54,_0x20f2ab,_0x26255b-0x5b);}switch(this[_0x284379(_0xd09b63._0x16a554,0x456,_0xd09b63._0x11de67,_0xd09b63._0x3f4625)]){case _0x284379(_0xd09b63._0x1819dd,0x32b,_0xd09b63._0x5affa8,0x3a4):return this[_0x206c7f(-0x1dc,-_0xd09b63._0x16fa76,-0x17f,-_0xd09b63._0x4161a8)][_0x284379(_0xd09b63._0x3ef083,_0xd09b63._0x42c6f5,0x385,0x353)](_0x3cfc12,_0x40455a);case _0x284379(0x360,0x324,_0xd09b63._0x362784,_0xd09b63._0x18c2fa):return this[_0x206c7f(-0x27f,-0x22d,-0x338,-0x2ca)](_0x3cfc12,_0x40455a);case'openai-responses':return this[_0x206c7f(-0x2e4,-0x2f5,-0x3a8,-0x38d)](_0x3cfc12,_0x40455a);case _0x284379(0x33e,0x3f2,0x39b,_0xd09b63._0x4bccf0):return this[_0x206c7f(-_0xd09b63._0x23ea50,-_0xd09b63._0x1e4c2a,-_0xd09b63._0x33e415,-0x1cd)](_0x3cfc12,_0x40455a);case _0x284379(_0xd09b63._0x45bd39,0x28f,0x322,_0xd09b63._0x5b6a8b):return this[_0x206c7f(-0x2de,-0x37f,-0x223,-_0xd09b63._0x545d6d)](_0x3cfc12,_0x40455a);}throw new Error(_0x206c7f(-0x2e6,-0x334,-0x2d5,-0x2d6)+String(this[_0x284379(_0xd09b63._0x29687a,_0xd09b63._0x18d93f,_0xd09b63._0x12c55d,0x493)]));}[_0x42ffe3(0x91,0x12a,-0x6,0x14d)](_0x1c9c56,_0x13272b){const _0x4f56d6={_0x254a62:0x21d,_0x361cf3:0x3c8,_0x4fad21:0xe5,_0x4196d1:0x377,_0x4d64c9:0x2a5,_0x2a824d:0x22c,_0x3bfe3c:0xaa,_0x46032d:0xd7,_0xf4ae1c:0x1ee,_0x4f4955:0x223,_0x33b4d9:0x2a7,_0x2fe970:0x2a6,_0xcf4d58:0x264},_0x1c989d={_0x2ab793:0x15f,_0x3223ee:0x20c},_0x56f01d={_0xa0a70c:0xab};function _0x5b5b0f(_0x53db19,_0x5563b7,_0x366a75,_0x21712d){return _0x5e5ba4(_0x53db19-_0x56f01d._0xa0a70c,_0x21712d,_0x366a75-0x13d,_0x5563b7- -0x392);}function _0x1a94a7(_0x5d52eb,_0x55006e,_0x381adf,_0x2214a8){return _0x5e5ba4(_0x5d52eb-0x18d,_0x381adf,_0x381adf-_0x1c989d._0x2ab793,_0x2214a8- -_0x1c989d._0x3223ee);}switch(this['surface']){case _0x1a94a7(0x36e,0x213,_0x4f56d6._0x254a62,0x2bd):return this['anthropicDelegate']['stream'](_0x1c9c56,_0x13272b);case'openai-chat-completions':return this[_0x1a94a7(0x390,0x2f0,_0x4f56d6._0x361cf3,0x38d)](_0x1c9c56,_0x13272b);case _0x5b5b0f(0x2a2,0x1d0,0x291,0x1ae):return this[_0x5b5b0f(0x128,0x118,0x12e,_0x4f56d6._0x4fad21)](_0x1c9c56,_0x13272b);case _0x1a94a7(0x233,_0x4f56d6._0x4196d1,0x2fd,_0x4f56d6._0x4d64c9):return this[_0x1a94a7(0x2fb,0x2e0,_0x4f56d6._0x2a824d,0x2a9)](_0x1c9c56,_0x13272b);case _0x5b5b0f(_0x4f56d6._0x3bfe3c,0xc9,0x19,_0x4f56d6._0x46032d):return this[_0x5b5b0f(_0x4f56d6._0xf4ae1c,_0x4f56d6._0x4f4955,0x2de,0x1bb)](_0x1c9c56,_0x13272b);}throw new Error(_0x1a94a7(0x2a9,_0x4f56d6._0x33b4d9,_0x4f56d6._0x2fe970,_0x4f56d6._0xcf4d58)+String(this['surface']));}async[_0x42ffe3(-0xbb,-0x12d,0x3,-0x183)](_0x3d1af5,_0x51f6c4){const _0x4ae671={_0x4a37f8:0x118,_0x51d1a8:0x23e,_0x32ae06:0x191,_0x35f177:0x8b,_0x230b35:0x1,_0x227914:0x34,_0x43084a:0x2d,_0x1f86db:0x78,_0x501e03:0xfd,_0x2fd2bd:0x1a,_0xe3532:0x38,_0x3571c5:0xe5,_0x16d61d:0x44,_0x411e2a:0x121,_0x1c7d23:0xd0,_0x54ac04:0x14f,_0x125a45:0xca,_0x572028:0x36,_0x5e6cbe:0x9e,_0x478888:0x16,_0x48a76c:0x1e,_0x2a440:0xd,_0x55e45c:0xfa},_0x303200={_0x107a65:0x105,_0x4c76fc:0xb7,_0x343f6a:0x1e4},_0x256390=this[_0x1e9bf0(0x170,0x159,0x11f,_0x4ae671._0x4a37f8)](_0x3d1af5);if(this[_0x4471e2(_0x4ae671._0x51d1a8,_0x4ae671._0x32ae06,0x1e2,0x18a)]!==_0x4471e2(-_0x4ae671._0x35f177,_0x4ae671._0x230b35,_0x4ae671._0x227914,_0x4ae671._0x43084a))return this[_0x4471e2(_0x4ae671._0x1f86db,0x173,0x191,_0x4ae671._0x501e03)](_0x256390,_0x51f6c4);function _0x1e9bf0(_0x45cc96,_0x192f58,_0x35956e,_0x1d8ae8){return _0x42ffe3(_0x35956e-0xc7,_0x192f58-0x15,_0x1d8ae8,_0x1d8ae8-0x109);}function _0x4471e2(_0x8720f5,_0x597c10,_0x4bbdbb,_0x16a12c){return _0x42ffe3(_0x16a12c-_0x303200._0x107a65,_0x597c10-_0x303200._0x4c76fc,_0x8720f5,_0x16a12c-_0x303200._0x343f6a);}if(this[_0x1e9bf0(0x69,_0x4ae671._0x2fd2bd,_0x4ae671._0xe3532,0x86)](_0x256390))return this[_0x4471e2(_0x4ae671._0x3571c5,-0x7b,0xee,_0x4ae671._0x16d61d)](_0x256390,_0x51f6c4);try{return await this['completeViaChatCompletionsSurface'](_0x256390,_0x51f6c4);}catch(_0x2dba8a){if(_0x2dba8a instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x2dba8a[_0x4471e2(_0x4ae671._0x411e2a,_0x4ae671._0x1c7d23,_0x4ae671._0x54ac04,0x157)]))return this[_0x1e9bf0(_0x4ae671._0x125a45,-0x4c,-0x8,-0xb7)](_0x256390[_0x1e9bf0(-_0x4ae671._0x572028,-_0x4ae671._0x43084a,_0x4ae671._0x5e6cbe,-_0x4ae671._0x478888)]),this['response'](_0x256390,_0x51f6c4);throw this[_0x1e9bf0(_0x4ae671._0x48a76c,-_0x4ae671._0x2a440,0x9f,_0x4ae671._0x55e45c)](_0x2dba8a);}throw _0x2dba8a;}}async*['stream'](_0x218a4a,_0x3156e4){const _0x138274={_0x1b1fa8:0x78,_0x256662:0x7,_0x54f28c:0x6c,_0x1dbf23:0x137,_0x2dd00f:0x133,_0x2a2d1d:0xd7,_0x4c996b:0x10c,_0x2a7c31:0x1a7,_0x2a631f:0x26,_0x546f18:0xd,_0x301899:0x464,_0x34a868:0x472,_0x568eca:0x121,_0x4f9af1:0x88,_0x2a616a:0x5e,_0x5df0db:0x4f,_0x549c56:0x77,_0x42f376:0x87},_0xcd0449={_0x74cf4:0x541},_0x4d861f={_0x1f63fe:0x1d3,_0x3e7378:0x138,_0x47a42a:0x592},_0x5d6ba2=this[_0x53abc6(-0x97,_0x138274._0x1b1fa8,-_0x138274._0x256662,_0x138274._0x54f28c)](_0x218a4a);function _0x53abc6(_0x365317,_0x3c8b7c,_0x34e19d,_0x40424e){return _0x5e5ba4(_0x365317-_0x4d861f._0x1f63fe,_0x3c8b7c,_0x34e19d-_0x4d861f._0x3e7378,_0x34e19d- -_0x4d861f._0x47a42a);}function _0x46e12b(_0x2d3e4a,_0x169a35,_0xc31a3e,_0xed01d3){return _0x42ffe3(_0x169a35-_0xcd0449._0x74cf4,_0x169a35-0xa9,_0xc31a3e,_0xed01d3-0xb9);}if(this['surface']!==_0x53abc6(-0x1fe,-0xf2,-_0x138274._0x1dbf23,-0x153)){yield*this['streamViaConfiguredSurface'](_0x5d6ba2,_0x3156e4);return;}if(this['shouldPreferResponsesApi'](_0x5d6ba2)){yield*this[_0x53abc6(-_0x138274._0x2dd00f,-_0x138274._0x2a2d1d,-0xe8,-0x112)](_0x5d6ba2,_0x3156e4);return;}try{yield*this[_0x53abc6(-0x13d,-0x75,-_0x138274._0x4c996b,-_0x138274._0x2a7c31)](_0x5d6ba2,_0x3156e4);}catch(_0x2e77cf){if(_0x2e77cf instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x2e77cf[_0x53abc6(-0xb3,-_0x138274._0x2a631f,-_0x138274._0x546f18,-0x82)])){this[_0x46e12b(_0x138274._0x301899,_0x138274._0x34a868,0x420,0x469)](_0x5d6ba2[_0x53abc6(-_0x138274._0x568eca,-0xa2,-_0x138274._0x4f9af1,-_0x138274._0x2a616a)]),yield*this[_0x53abc6(-_0x138274._0x5df0db,-_0x138274._0x549c56,-0xe8,-0x17e)](_0x5d6ba2,_0x3156e4);return;}throw this[_0x53abc6(-0x48,-0x159,-_0x138274._0x42f376,-0x6)](_0x2e77cf);}throw _0x2e77cf;}}async['getModels'](_0x20387a){const _0x1f1f62={_0x40e3cf:0x74,_0x1c6869:0x72,_0x1d309a:0x31a,_0x31c121:0x27e,_0x22cc70:0x3ea,_0x5bbb4f:0x31c,_0x142ddb:0x388,_0x53a508:0xc2,_0xeaa59f:0xa6,_0x12f786:0xc5,_0x2fdb5a:0x1d},_0x21c9a2={_0x23cd30:0x3a3,_0x1e0c8f:0x455,_0x252ce3:0x2df,_0x37db86:0x3d5,_0x5353bb:0x3db,_0x41d047:0x3cf,_0x5df1a7:0x400,_0x83bd74:0x3ed,_0x13ee77:0x451,_0x5d59a0:0x325,_0x5cc490:0x381},_0x64df10={_0x425e17:0x117},_0x3432fc={_0x5b873f:0x166},_0x1700f0={_0x1de5cd:0x1eb},_0x4f09a7={_0x2ad1c5:0xc,_0x4da39e:0x120,_0x4af696:0x4f9},_0x8e1a3d=await this['sendRawRequest']({'path':_0x24c7f5(-0x4b,0x40,_0x1f1f62._0x40e3cf,_0x1f1f62._0x1c6869),'method':_0x540cc2(_0x1f1f62._0x1d309a,0x313,0x3a2,_0x1f1f62._0x31c121),'signal':_0x20387a});function _0x24c7f5(_0x559052,_0x3af4f0,_0x2a5581,_0xabcec6){return _0x5e5ba4(_0x559052-_0x4f09a7._0x2ad1c5,_0x2a5581,_0x2a5581-_0x4f09a7._0x4da39e,_0xabcec6- -_0x4f09a7._0x4af696);}if(!_0x8e1a3d['ok'])throw this['mapApiError'](await this[_0x540cc2(_0x1f1f62._0x22cc70,0x400,0x3ef,0x479)](_0x8e1a3d));function _0x540cc2(_0x19e275,_0xad0da9,_0x5e5b1b,_0xa2b3d2){return _0x42ffe3(_0x19e275-0x3eb,_0xad0da9-_0x1700f0._0x1de5cd,_0xa2b3d2,_0xa2b3d2-0x11e);}const _0x2e82ac=await _0x8e1a3d[_0x540cc2(0x3e8,_0x1f1f62._0x5bbb4f,_0x1f1f62._0x142ddb,0x3d8)](),_0x2df134=(_0x2e82ac[_0x24c7f5(-_0x1f1f62._0x53a508,-0x1c,-0x83,-_0x1f1f62._0xeaa59f)]??[])[_0x24c7f5(-_0x1f1f62._0x12f786,0x2e,-0xa5,-_0x1f1f62._0x2fdb5a)](_0x3e60d8=>{function _0x102f28(_0x283357,_0x38506a,_0x5d828e,_0x425f1f){return _0x540cc2(_0x283357- -0x211,_0x38506a-0x11a,_0x5d828e-_0x3432fc._0x5b873f,_0x425f1f);}const _0x281030=createModelInfo(_0x3e60d8);function _0x3558f3(_0x27ea9b,_0x1f1824,_0x295a29,_0x420144){return _0x540cc2(_0x420144-0x2a,_0x1f1824-_0x64df10._0x425e17,_0x295a29-0xa4,_0x27ea9b);}return _0x281030[_0x3558f3(_0x21c9a2._0x23cd30,_0x21c9a2._0x1e0c8f,_0x21c9a2._0x252ce3,0x381)]&&this[_0x3558f3(_0x21c9a2._0x37db86,_0x21c9a2._0x5353bb,_0x21c9a2._0x41d047,_0x21c9a2._0x5df1a7)][_0x3558f3(0x517,0x39a,_0x21c9a2._0x83bd74,_0x21c9a2._0x13ee77)](_0x281030['id'],_0x281030[_0x3558f3(_0x21c9a2._0x5d59a0,0x384,0x44f,_0x21c9a2._0x5cc490)]),_0x281030;});return deduplicateModels(_0x2df134);}};function createHeaders(_0xc45a9c){const _0x10fd00=new Headers();for(const [_0xd7b09f,_0x5153b0]of Object['entries'](_0xc45a9c)){_0x10fd00['set'](_0xd7b09f,_0x5153b0);}return _0x10fd00;}async function fetchRawResponse(_0x5ccf52){const _0x2661bb={_0x248692:0x9,_0x17088d:0xa0,_0x4ee868:0x2c0,_0x40d55c:0x1a6,_0x474559:0x11a,_0x313583:0x4f,_0x25f3ba:0x263,_0x37c5af:0x339,_0x4783ab:0x40c,_0x3e58d8:0x22,_0x134b5c:0x6a,_0x5dafba:0x49},_0x530adf={_0x41bdab:0x2e7,_0x59c39a:0x62},_0x5c419e=_0x5ccf52['fetch']??globalThis[_0xe9f078(0xce,_0x2661bb._0x248692,-0x6f,-_0x2661bb._0x17088d)];function _0x54765c(_0x30605c,_0x134565,_0x22a38b,_0x41b45e){return _0x42ffe3(_0x22a38b-_0x530adf._0x41bdab,_0x134565-_0x530adf._0x59c39a,_0x41b45e,_0x41b45e-0x102);}function _0xe9f078(_0x317a3b,_0x267d4c,_0x265346,_0x2b28a4){return _0x42ffe3(_0x267d4c- -0x1b,_0x267d4c-0x1ac,_0x2b28a4,_0x2b28a4-0x1b0);}return _0x5c419e(_0x5ccf52[_0x54765c(0x19b,0x1e0,0x26b,_0x2661bb._0x4ee868)],{'method':'POST','headers':createHeaders(_0x5ccf52[_0xe9f078(-0x166,-0x115,-_0x2661bb._0x40d55c,-0x1bf)]),'body':JSON[_0xe9f078(-_0x2661bb._0x474559,-_0x2661bb._0x313583,0x51,-0x32)](_0x5ccf52[_0x54765c(0x2cf,_0x2661bb._0x25f3ba,_0x2661bb._0x37c5af,_0x2661bb._0x4783ab)]),'signal':_0x5ccf52[_0xe9f078(-_0x2661bb._0x3e58d8,0x7d,_0x2661bb._0x134b5c,-_0x2661bb._0x5dafba)]});}async function fetchJsonResponse(_0x19e6d5){const _0x550559={_0x285058:0xda,_0x4391d7:0x13f,_0xdf35ec:0x3,_0x528d06:0x14d,_0x27cddf:0x1a6,_0x7e99cd:0x12e,_0x254eb8:0x141,_0x2fd4e8:0x73,_0x3b90ec:0x1b7,_0xe01649:0x196,_0x3189db:0xc6},_0x2532f5={_0x5f0ddb:0x82},_0x47c9b0={_0x17db37:0x424};function _0x21ba3b(_0x2cbec3,_0x9cb77c,_0x3f0603,_0x47d29f){return _0x5e5ba4(_0x2cbec3-0x57,_0x2cbec3,_0x3f0603-0x169,_0x9cb77c- -_0x47c9b0._0x17db37);}function _0x5ae4a1(_0x196114,_0x181193,_0x40792e,_0x572516){return _0x5e5ba4(_0x196114-_0x2532f5._0x5f0ddb,_0x40792e,_0x40792e-0x13e,_0x196114- -0x631);}const _0xdf3d38=await fetchRawResponse(_0x19e6d5);if(!_0xdf3d38['ok']){const _0x691b2d=await _0xdf3d38[_0x21ba3b(_0x550559._0x285058,0xc2,_0x550559._0x4391d7,_0x550559._0xdf35ec)](),_0x32251e=_0x691b2d[_0x5ae4a1(-_0x550559._0x528d06,-_0x550559._0x27cddf,-_0x550559._0x7e99cd,-_0x550559._0x254eb8)]()||_0xdf3d38[_0x21ba3b(0xc,0x98,0xd0,_0x550559._0x2fd4e8)]||_0x21ba3b(_0x550559._0x3b90ec,0x12d,_0x550559._0xe01649,_0x550559._0x3189db);throw new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0xdf3d38['status']+':\x20'+_0x32251e);}return await _0xdf3d38[_0x21ba3b(0x149,0x10c,0x14d,0x7e)]();}function findLastMessage(_0x5380c1,_0x401578){const _0x48c96b={_0x2604b5:0xe6,_0xd097a1:0x101,_0x551f4e:0x10f,_0x54bfe2:0x8f,_0x34c5b2:0x2b},_0x43e744={_0x225749:0x1a7};function _0x25ea0f(_0x384389,_0x3736d9,_0x26526d,_0x1b241d){return _0x42ffe3(_0x26526d- -0xbe,_0x3736d9-0x16b,_0x384389,_0x1b241d-_0x43e744._0x225749);}for(let _0x52fff9=_0x5380c1[_0x25ea0f(-_0x48c96b._0x2604b5,-_0x48c96b._0xd097a1,-_0x48c96b._0x551f4e,-0x85)]-0x1;_0x52fff9>=0x0;_0x52fff9-=0x1){if(_0x5380c1[_0x52fff9][_0x25ea0f(-_0x48c96b._0x54bfe2,_0x48c96b._0x34c5b2,-0x54,0x30)]===_0x401578)return _0x5380c1[_0x52fff9];}function _0x3ab1e4(_0x7383aa,_0x33cc8c,_0x1eb05c,_0x16e44d){return _0x42ffe3(_0x33cc8c- -0x1ee,_0x33cc8c-0xae,_0x1eb05c,_0x16e44d-0x1a9);}return void 0x0;}function hasTool(_0x1b0c1e,_0x45e5c9){const _0x339001={_0x540c17:0x190,_0x1e4c16:0x233,_0x3e6ead:0x261,_0xa23ddb:0x311,_0x3eaa84:0x261,_0x43eeb7:0x292},_0x58e3c0={_0x94744f:0xeb};function _0xdd8823(_0x40e005,_0x350444,_0x29ad49,_0x119aa0){return _0x5e5ba4(_0x40e005-_0x58e3c0._0x94744f,_0x119aa0,_0x29ad49-0x148,_0x350444- -0x796);}function _0x46a22a(_0x1b552a,_0x318f9c,_0x4f69b4,_0x5415a3){return _0x42ffe3(_0x1b552a- -0x1c6,_0x318f9c-0x36,_0x4f69b4,_0x5415a3-0x14f);}return _0x1b0c1e[_0xdd8823(-_0x339001._0x540c17,-0x1ed,-_0x339001._0x1e4c16,-_0x339001._0x3e6ead)][_0xdd8823(-_0x339001._0xa23ddb,-_0x339001._0x3eaa84,-0x23c,-_0x339001._0x43eeb7)](_0x532443=>_0x532443[_0xdd8823(-0x329,-0x2ff,-0x3cb,-0x2bd)]===_0x45e5c9);}function createMockResponse(_0x1531dc,_0x54f331,_0x3a5afe,_0x4e8d6a){return{'id':_0x1531dc,'content':_0x54f331,'stopReason':_0x3a5afe,'usage':_0x4e8d6a};}var MockModel=class{[_0x42ffe3(-0x29,-0xa1,-0x57,0x65)];['maxTokens'];['requests']=[];[_0x5e5ba4(0x515,0x5d5,0x469,0x533)];constructor(_0x1227ce={}){const _0x4bb6cf={_0x1686a7:0x81,_0xcc6012:0x52,_0x7f0c7f:0x7f,_0x5cc5c5:0x137,_0x54c8ba:0xf7,_0x5857b6:0x1e4,_0x54e60a:0x145,_0x392fbe:0xaa,_0x1dbda8:0xa8,_0x4ea0a3:0xe0,_0x55f823:0x86,_0x194091:0xa8,_0x38a209:0x3a,_0x3d6007:0x127,_0x5b2c1d:0xfa},_0x546e06={_0x1d1367:0xa8},_0x10d187={_0x5ad283:0xa4,_0x172c90:0x15b};function _0x294c9a(_0x162a0b,_0x27d5de,_0xf97b64,_0x440538){return _0x42ffe3(_0x162a0b- -_0x10d187._0x5ad283,_0x27d5de-_0x10d187._0x172c90,_0x27d5de,_0x440538-0x11c);}this[_0x294c9a(-0xcd,-0xbb,-0x197,-_0x4bb6cf._0x1686a7)]=_0x1227ce[_0x5d515b(0xe1,_0x4bb6cf._0xcc6012,_0x4bb6cf._0x7f0c7f,0xfa)]??_0x294c9a(-_0x4bb6cf._0x5cc5c5,-0x12c,-0x1a7,-0xda);function _0x5d515b(_0x1f39fa,_0x43e9e0,_0x2a3868,_0x1d07db){return _0x42ffe3(_0x2a3868-_0x546e06._0x1d1367,_0x43e9e0-0x10a,_0x43e9e0,_0x1d07db-0xc3);}this['maxTokens']=_0x1227ce[_0x5d515b(_0x4bb6cf._0x54c8ba,_0x4bb6cf._0x5857b6,_0x4bb6cf._0x54e60a,_0x4bb6cf._0x392fbe)]??0x4000,this[_0x5d515b(0x13f,0x120,_0x4bb6cf._0x1dbda8,0x5d)]=_0x1227ce[_0x5d515b(_0x4bb6cf._0x4ea0a3,_0x4bb6cf._0x55f823,_0x4bb6cf._0x194091,_0x4bb6cf._0x38a209)]?structuredClone(_0x1227ce[_0x5d515b(_0x4bb6cf._0x3d6007,0x7,0xa8,_0x4bb6cf._0x5b2c1d)]):void 0x0;}async['complete'](_0x2613d0,_0x124ec5){const _0x6f7b00={_0x59620a:0x4c,_0x153f12:0x1bc,_0x3c473a:0x76,_0x4248b8:0x18c,_0xf4531d:0x11d,_0x2989ce:0x1f8,_0x3b748c:0x1a4,_0x4df157:0x136,_0x59135e:0x1b6,_0x2309ab:0x166,_0x57515e:0x148,_0x40c039:0xe6,_0x194bcf:0x18,_0xc9131f:0xe0,_0x822bb1:0x171,_0x210b95:0x13e,_0x572025:0x115,_0x41688e:0x40,_0x241975:0xb9,_0x26ad74:0x9c,_0x404fb4:0x127,_0x583035:0xe9,_0x4e67bb:0x185,_0x152650:0x51,_0x4416fa:0x114,_0x1346c8:0xf7,_0x58dd46:0x159,_0x36c580:0x8d,_0x43ff38:0x1c9,_0x24a987:0x1f6,_0x170caa:0x87},_0xb3649e={_0x1aee4c:0x1b9};function _0x1a8dcf(_0x10c66f,_0x424520,_0x2ce778,_0x59420e){return _0x42ffe3(_0x424520- -0x115,_0x424520-0x88,_0x59420e,_0x59420e-0xeb);}const _0x41ee6b={...structuredClone(_0x2613d0),..._0x2613d0[_0x1a8dcf(-_0x6f7b00._0x59620a,-0x115,-0x1d2,-0x1b4)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};this['requests'][_0x1a8dcf(-0xf5,-0xfb,-0x30,-0x12f)](_0x41ee6b);const _0x51518e=findLastMessage(_0x41ee6b['messages'],_0x3a08d0(-_0x6f7b00._0x153f12,-_0x6f7b00._0x3c473a,-_0x6f7b00._0x4248b8,-_0x6f7b00._0xf4531d)),_0x3c539e=getToolResultBlocks(_0x51518e);function _0x3a08d0(_0x2fb91c,_0x5b21f8,_0x1c8ceb,_0x5d7e65){return _0x5e5ba4(_0x2fb91c-_0xb3649e._0x1aee4c,_0x5b21f8,_0x1c8ceb-0xdd,_0x5d7e65- -0x5b0);}const _0x2e2fee=_0x1a8dcf(-_0x6f7b00._0x2989ce,-0x1cc,-_0x6f7b00._0x3b748c,-0x1bf)+this['requests'][_0x1a8dcf(-_0x6f7b00._0x4df157,-0x166,-0x168,-_0x6f7b00._0x59135e)];if(_0x3c539e[_0x1a8dcf(-0x18e,-_0x6f7b00._0x2309ab,-0x18f,-0xa4)]>0x0)return createMockResponse(_0x2e2fee,[{'type':'text','text':_0x1a8dcf(-0x1f7,-_0x6f7b00._0x57515e,-_0x6f7b00._0x40c039,-0xba)+_0x3c539e[0x0][_0x3a08d0(-_0x6f7b00._0x194bcf,-0x135,-0x110,-0xed)]}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});const _0x544552=getTextFromMessage(_0x51518e);if(/list .*files|workspace/i[_0x3a08d0(-_0x6f7b00._0xc9131f,-0x109,-_0x6f7b00._0x822bb1,-0x125)](_0x544552)&&hasTool(_0x41ee6b,_0x1a8dcf(-_0x6f7b00._0x210b95,-0x18f,-0x148,-_0x6f7b00._0x572025)))return createMockResponse(_0x2e2fee,[{'type':_0x3a08d0(-0xf6,_0x6f7b00._0x41688e,-_0x6f7b00._0x241975,-0x6e),'id':_0x1a8dcf(-_0x6f7b00._0x26ad74,-0x8a,-_0x6f7b00._0x404fb4,-_0x6f7b00._0x583035)+this['requests']['length'],'name':_0x3a08d0(-_0x6f7b00._0x4e67bb,-_0x6f7b00._0x152650,-_0x6f7b00._0x4416fa,-_0x6f7b00._0x1346c8),'input':{'command':'ls\x20-la'}}],_0x1a8dcf(-_0x6f7b00._0x58dd46,-0x106,-_0x6f7b00._0x36c580,-_0x6f7b00._0x43ff38),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x2e2fee,[{'type':_0x1a8dcf(-0xf4,-0x162,-0x1ca,-_0x6f7b00._0x24a987),'text':'Direct\x20answer:\x20'+_0x544552}],_0x1a8dcf(-0x6,-_0x6f7b00._0x170caa,0x33,-0xd7),{'inputTokens':0x50,'outputTokens':0x12});}},FALLBACK_LIMITS={'zai':{'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}},'openrouter':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}},'github':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}},'minimax':{'MiniMax-M2.1':{'contextWindow':0xf4240,'maxOutput':0x13880}},'anthropic':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}};function getFallbackModelLimits(_0x19ddb0,_0x20c2b9){const _0x3527aa={_0x1910a4:0x37c,_0x1adcea:0x417,_0x12daa0:0x4a5,_0x1cb54d:0x358},_0x3b7359={_0x8173d5:0xc3,_0x175bbf:0x1c0,_0x1bd7fe:0x197};function _0x40d0df(_0x584f70,_0x43187b,_0xc58341,_0xc06de){return _0x5e5ba4(_0x584f70-_0x3b7359._0x8173d5,_0x584f70,_0xc58341-_0x3b7359._0x175bbf,_0x43187b- -_0x3b7359._0x1bd7fe);}return FALLBACK_LIMITS[_0x19ddb0[_0x40d0df(_0x3527aa._0x1910a4,_0x3527aa._0x1adcea,_0x3527aa._0x12daa0,_0x3527aa._0x1cb54d)]()]?.[_0x20c2b9];}function normalizeModelInfo(_0x5528d4,_0x395e84){const _0x5a2dc6={_0x357c7b:0x5c,_0x3a2a28:0x17,_0x1d3e6b:0xb4,_0x4c1110:0x3c,_0x2fba80:0x18,_0x7ab184:0x53,_0x3e03cf:0xa7,_0x160f2e:0x28,_0x20aab2:0x1a7,_0x44913e:0xd6},_0x564e06={_0x4a62cd:0x8e,_0xa8d4c6:0x17a},_0x19a54f={_0x45557d:0x164},_0x4bc2b2=typeof _0x395e84['id']===_0x1792d2(0x99,0xb1,-_0x5a2dc6._0x357c7b,-_0x5a2dc6._0x3a2a28)?_0x395e84['id']:'';function _0x1792d2(_0x15c82d,_0x4be8e9,_0x39662,_0x370dbb){return _0x5e5ba4(_0x15c82d-_0x19a54f._0x45557d,_0x15c82d,_0x39662-0x184,_0x370dbb- -0x46d);}const _0x2aa8d3=typeof _0x395e84['name']===_0x1792d2(-0x2c,-_0x5a2dc6._0x1d3e6b,0x1f,-0x17)?_0x395e84[_0x12137c(0x2dd,0x45a,0x307,0x39d)]:_0x4bc2b2;function _0x12137c(_0x2f464e,_0x5dc96c,_0x2622d4,_0x1fc828){return _0x5e5ba4(_0x2f464e-_0x564e06._0x4a62cd,_0x2f464e,_0x2622d4-_0x564e06._0xa8d4c6,_0x1fc828- -0xfa);}const _0x5c2c6f=normalizeModelLimits(_0x5528d4,_0x395e84)??getFallbackModelLimits(_0x5528d4,_0x4bc2b2),_0xce0d5c=Array['isArray'](_0x395e84[_0x1792d2(-0x76,_0x5a2dc6._0x4c1110,-0x2d,_0x5a2dc6._0x2fba80)])?_0x395e84['supported_endpoints'][_0x1792d2(_0x5a2dc6._0x7ab184,-_0x5a2dc6._0x3e03cf,0x44,-_0x5a2dc6._0x160f2e)](_0x305938=>typeof _0x305938===_0x12137c(0x308,0x40d,0x3ce,0x35c)):Array['isArray'](_0x395e84['capable_endpoints'])?_0x395e84[_0x1792d2(0x19b,_0x5a2dc6._0x20aab2,_0x5a2dc6._0x44913e,0x12f)]['filter'](_0x37c566=>typeof _0x37c566===_0x1792d2(0x21,0x7f,-0x28,-0x17)):void 0x0;return{'id':_0x4bc2b2,'name':_0x2aa8d3,..._0x5c2c6f?{'limits':_0x5c2c6f}:{},..._0xce0d5c?{'supportedEndpoints':_0xce0d5c}:{}};}function normalizeModelLimits(_0x2cb71a,_0x5b6333){const _0x495ef9={_0x2ac115:0x558,_0x47f7ac:0x564,_0x6b02b9:0x50e,_0x30fbc6:0x14a,_0x213e4b:0xc6,_0x456e8d:0x170,_0x58c1c9:0x445,_0x116cf9:0x12b,_0x282b1d:0x155,_0x5f3fe6:0x1bc,_0x4e3e7a:0x229,_0x4a1f72:0x4f0,_0x496583:0x533,_0x5de430:0x504,_0x392405:0x580,_0x50dcaa:0x496,_0x354058:0x42f,_0x5efb23:0xe1,_0x1b2837:0x159,_0x1f7076:0x247,_0x13fb1e:0x159,_0x1cee36:0x1ef,_0x224313:0x4b4,_0x14ddf3:0x4af,_0x266438:0x565,_0x3700f2:0xce,_0xd52898:0x1f7,_0x1697ee:0x202,_0x5b1086:0x159,_0x2f1d11:0x1f0,_0x4d5d9c:0x2d4,_0x207398:0x202,_0x1df36c:0x2d5,_0x21898b:0x15e,_0xe95af4:0x209,_0x333390:0x199,_0x542a7d:0xd6,_0x1b46fe:0x13e,_0xf8360a:0x102,_0x5384bc:0x52d,_0x2e46bd:0x558,_0x19b7d7:0x1ce,_0x1b967a:0x3bb,_0x27f185:0x48e,_0x489837:0x45a,_0x45dcb3:0x4f8},_0x571e08={_0x56671d:0xde};if(_0x5b6333['limits']&&typeof _0x5b6333[_0x5a8daf(_0x495ef9._0x2ac115,0x56f,_0x495ef9._0x47f7ac,_0x495ef9._0x6b02b9)]===_0x1184ba(-_0x495ef9._0x30fbc6,-0x136,-_0x495ef9._0x213e4b,-_0x495ef9._0x456e8d)){const _0x23d12d=_0x5b6333['limits'];if(typeof _0x23d12d[_0x5a8daf(0x516,0x460,_0x495ef9._0x58c1c9,0x3e4)]==='number')return{'contextWindow':_0x23d12d['contextWindow'],...typeof _0x23d12d['maxOutput']===_0x1184ba(-0x181,-0x159,-_0x495ef9._0x116cf9,-_0x495ef9._0x282b1d)?{'maxOutput':_0x23d12d[_0x1184ba(-0x106,-_0x495ef9._0x5f3fe6,-0xeb,-_0x495ef9._0x4e3e7a)]}:{}};}if(_0x2cb71a['toLowerCase']()===_0x5a8daf(_0x495ef9._0x4a1f72,_0x495ef9._0x496583,_0x495ef9._0x5de430,0x5b9)){const _0x3aedd1=_0x5b6333[_0x5a8daf(_0x495ef9._0x392405,0x504,_0x495ef9._0x50dcaa,0x499)],_0x4fd438=_0x3aedd1?.[_0x5a8daf(0x4d7,0x56f,0x5fd,0x514)];if(typeof _0x4fd438?.[_0x5a8daf(_0x495ef9._0x354058,0x3e7,0x3d5,0x339)]===_0x1184ba(-_0x495ef9._0x5efb23,-_0x495ef9._0x1b2837,-0x226,-0x147))return{'contextWindow':_0x4fd438[_0x1184ba(-0x271,-_0x495ef9._0x1f7076,-0x2c9,-0x2b5)],...typeof _0x4fd438['max_output_tokens']===_0x1184ba(-0x143,-_0x495ef9._0x13fb1e,-_0x495ef9._0x1cee36,-0x13c)?{'maxOutput':_0x4fd438['max_output_tokens']}:{}};}const _0x484fa2=_0x5b6333['metadata'],_0x532199=_0x5b6333[_0x5a8daf(_0x495ef9._0x224313,_0x495ef9._0x14ddf3,_0x495ef9._0x266438,0x43f)],_0xe20573=typeof _0x5b6333['context_length']===_0x1184ba(-0x130,-0x159,-0xc9,-_0x495ef9._0x3700f2)?_0x5b6333['context_length']:typeof _0x484fa2?.[_0x1184ba(-_0x495ef9._0xd52898,-_0x495ef9._0x1697ee,-0x18e,-0x20e)]===_0x1184ba(-0x1e6,-_0x495ef9._0x5b1086,-0xf2,-_0x495ef9._0x2f1d11)?_0x484fa2[_0x1184ba(-_0x495ef9._0x4d5d9c,-_0x495ef9._0x207398,-_0x495ef9._0x1df36c,-0x2d2)]:typeof _0x532199?.['context_length']===_0x1184ba(-0x144,-_0x495ef9._0x1b2837,-0xd9,-_0x495ef9._0x21898b)?_0x532199[_0x1184ba(-0x2c6,-0x202,-0x228,-0x168)]:void 0x0;function _0x5a8daf(_0x287e1d,_0x4a1251,_0xdd8a51,_0x49b966){return _0x5e5ba4(_0x287e1d-_0x571e08._0x56671d,_0x49b966,_0xdd8a51-0xad,_0x4a1251- -0x64);}if(_0xe20573===void 0x0)return void 0x0;function _0x1184ba(_0x15322e,_0x14b676,_0x32edb7,_0x26ca3c){return _0x5e5ba4(_0x15322e-0xe5,_0x32edb7,_0x32edb7-0xaf,_0x14b676- -0x692);}return{'contextWindow':_0xe20573,...typeof _0x484fa2?.[_0x1184ba(-0x1cf,-0x165,-0x177,-_0x495ef9._0xe95af4)]===_0x1184ba(-_0x495ef9._0x333390,-0x159,-_0x495ef9._0x542a7d,-_0x495ef9._0x1b46fe)?{'maxOutput':_0x484fa2[_0x1184ba(-0x134,-0x165,-0x16f,-_0x495ef9._0xf8360a)]}:typeof _0x532199?.[_0x5a8daf(0x3eb,0x48e,_0x495ef9._0x5384bc,_0x495ef9._0x2e46bd)]===_0x1184ba(-0x1e5,-_0x495ef9._0x1b2837,-0xec,-_0x495ef9._0x19b7d7)?{'maxOutput':_0x532199[_0x5a8daf(_0x495ef9._0x1b967a,_0x495ef9._0x27f185,_0x495ef9._0x489837,_0x495ef9._0x45dcb3)]}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getFallbackModelLimits,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
1
+ (function(_0x47ad77,_0x3a2fc2){const _0x4d9462={_0x5086b2:0x14f,_0x5d615e:0x50,_0x525d71:0x32,_0x27132d:0xb5,_0x40e7a3:0x15a,_0x1a3618:0x16c,_0x358690:0xe6,_0x159ec2:0x2b,_0x57a981:0xd1,_0xef298f:0x181,_0x3de3d1:0x1f0,_0x125892:0x17c,_0x4e43ce:0xed,_0x4cb591:0xd0,_0x8524a1:0x66,_0x3f3117:0x4,_0x5b04d9:0xfc,_0x467c32:0x1b7,_0x4b0723:0x121,_0x42efa1:0x1ad,_0x412175:0x1bf,_0x54ac58:0x8d,_0x57eb39:0x61,_0xe289e5:0x181},_0x280b3d={_0x9c73ff:0x25e},_0x56cfd7={_0x1e6302:0x24c},_0x1378a=_0x47ad77();function _0x271f49(_0x348b35,_0x355a5e,_0x4e3d65,_0x30d1fd){return _0x1568(_0x4e3d65- -_0x56cfd7._0x1e6302,_0x355a5e);}function _0x593fed(_0x471a83,_0x490054,_0x37db75,_0x67aad8){return _0x1568(_0x471a83- -_0x280b3d._0x9c73ff,_0x37db75);}while(!![]){try{const _0x1501b7=parseInt(_0x271f49(-_0x4d9462._0x5086b2,-0x152,-0x193,-0xe8))/0x1*(-parseInt(_0x271f49(-_0x4d9462._0x5d615e,-0x12e,-0xdb,-_0x4d9462._0x525d71))/0x2)+-parseInt(_0x593fed(-_0x4d9462._0x27132d,-_0x4d9462._0x40e7a3,-_0x4d9462._0x1a3618,-0x7b))/0x3*(parseInt(_0x593fed(-_0x4d9462._0x358690,-_0x4d9462._0x159ec2,-_0x4d9462._0x57a981,-_0x4d9462._0xef298f))/0x4)+-parseInt(_0x271f49(-0x166,-_0x4d9462._0x3de3d1,-_0x4d9462._0x125892,-0xcf))/0x5+-parseInt(_0x271f49(-_0x4d9462._0x4e43ce,-0xc8,-0x14d,-_0x4d9462._0x4cb591))/0x6*(-parseInt(_0x593fed(-_0x4d9462._0x8524a1,_0x4d9462._0x3f3117,-0x109,-_0x4d9462._0x5b04d9))/0x7)+parseInt(_0x271f49(-_0x4d9462._0x467c32,-_0x4d9462._0x4b0723,-_0x4d9462._0x42efa1,-0x165))/0x8+parseInt(_0x271f49(-_0x4d9462._0x412175,-0x1f4,-0x15d,-0xf3))/0x9*(-parseInt(_0x593fed(-_0x4d9462._0x54ac58,-0x104,-_0x4d9462._0x57eb39,-0xac))/0xa)+parseInt(_0x593fed(-0x71,-0xb9,-0xfa,-0x51))/0xb*(parseInt(_0x593fed(-0x1cb,-0x221,-0x1d7,-_0x4d9462._0xe289e5))/0xc);if(_0x1501b7===_0x3a2fc2)break;else _0x1378a['push'](_0x1378a['shift']());}catch(_0x54c00b){_0x1378a['push'](_0x1378a['shift']());}}}(_0x4b33,0x37bb9));import{toOpenAiResponsesRequest}from'../chunk-4DNIDCX7.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x5d7c56){const _0x33b4cb={_0x380a39:0xf8,_0x297a95:0x176,_0x2ca315:0x1ab},_0x4fd399={_0xaa5097:0x28d};super(_0x5d7c56);function _0x16589c(_0x3858d8,_0x261192,_0x287707,_0x5adb10){return _0x1568(_0x3858d8- -_0x4fd399._0xaa5097,_0x5adb10);}this[_0x16589c(-_0x33b4cb._0x380a39,-0xa4,-_0x33b4cb._0x297a95,-_0x33b4cb._0x2ca315)]='ProviderRequestConstructionError';}},ProviderStreamEventError=class extends Error{[_0x5da579(0x3e8,0x47a,0x426,0x41f)];[_0x5da579(0x3bf,0x34d,0x3ba,0x451)];[_0x5da579(0x38f,0x347,0x3f8,0x2d1)];constructor(_0x2aeec5,_0x56bf08={}){const _0x4723b6={_0x4f1522:0xee,_0x593ac2:0x1,_0x2366e2:0xc5,_0x58e93c:0x3,_0x51fc18:0x209,_0x17d65a:0x4b8,_0x4866e0:0x4ef,_0xfc98eb:0x18a,_0x45482f:0xdb,_0x42635f:0x18b,_0x36f3a1:0x17c,_0x1c2d7a:0x45f,_0x2e4128:0x4a8,_0x20791b:0x46c,_0x40dd02:0x3aa,_0x348846:0x49c},_0x346e22={_0x92b2d7:0x30,_0x2ef4d0:0x3b5},_0x5d45ca={_0x241cd5:0x55};super(_0x2aeec5);function _0xe076ad(_0x3504ba,_0x1baf81,_0x6b1a0,_0x4462b2){return _0x3749d0(_0x3504ba-_0x5d45ca._0x241cd5,_0x1baf81-0x3d,_0x6b1a0-0x1,_0x1baf81);}this[_0xe076ad(_0x4723b6._0x4f1522,_0x4723b6._0x593ac2,_0x4723b6._0x2366e2,-_0x4723b6._0x58e93c)]=_0xe076ad(_0x4723b6._0x51fc18,0x1e0,0x136,0xae),this[_0x33770c(_0x4723b6._0x17d65a,_0x4723b6._0x4866e0,0x53b,0x568)]=_0x56bf08['code'],this[_0xe076ad(0x30,_0x4723b6._0xfc98eb,_0x4723b6._0x45482f,_0x4723b6._0x42635f)]=_0x56bf08[_0xe076ad(0x149,0x106,0xdb,_0x4723b6._0x36f3a1)]??!![];function _0x33770c(_0x222e5d,_0x32ebb0,_0x2867a1,_0x1ec481){return _0x3749d0(_0x222e5d-_0x346e22._0x92b2d7,_0x32ebb0-0xa4,_0x222e5d-_0x346e22._0x2ef4d0,_0x2867a1);}this[_0x33770c(_0x4723b6._0x1c2d7a,0x530,_0x4723b6._0x2e4128,0x469)]=_0x56bf08[_0x33770c(0x45f,_0x4723b6._0x20791b,_0x4723b6._0x40dd02,_0x4723b6._0x348846)];}};function isRetryableProviderStreamEventError(_0x10f08a){const _0x1a7c57={_0x26c17d:0x174,_0x568e3c:0x10b,_0x256d1f:0x1b9,_0x20f662:0xa2},_0x16e3bc={_0x3985bc:0x1bf};function _0x2e3c9a(_0x1669c0,_0x1a7b19,_0x1a2cb,_0x2411e0){return _0x3749d0(_0x1669c0-0x2a,_0x1a7b19-_0x16e3bc._0x3985bc,_0x1669c0-0x9a,_0x1a7b19);}return _0x10f08a instanceof ProviderStreamEventError&&_0x10f08a[_0x2e3c9a(_0x1a7c57._0x26c17d,_0x1a7c57._0x568e3c,_0x1a7c57._0x256d1f,_0x1a7c57._0x20f662)];}var ANTHROPIC_MESSAGES_SURFACE=_0x3749d0(0x106,0x7c,0x56,0x9b),ANTHROPIC_MESSAGES_STREAM_SURFACE='anthropic-messages-stream';function parseToolInput(_0x57c5e7){const _0x4fffa9={_0x469a74:0x16c},_0x44f747={_0xcad912:0xfa,_0x1380b9:0x73,_0x54fedc:0x175};function _0x4d32ba(_0x274d61,_0x532796,_0x41d686,_0x4ec3c1){return _0x3749d0(_0x274d61-_0x44f747._0xcad912,_0x532796-_0x44f747._0x1380b9,_0x41d686-_0x44f747._0x54fedc,_0x4ec3c1);}try{return JSON[_0x4d32ba(0xde,_0x4fffa9._0x469a74,0x13c,0xe2)](_0x57c5e7);}catch{return _0x57c5e7;}}function resolveReasoningVisibility(_0x25d565){const _0x514fb5={_0x2f1070:0x2f0,_0x2f0e03:0x309,_0x541dab:0x331},_0x2d9877={_0x2deff9:0x16a,_0x2c96a0:0x211};function _0x5dd71a(_0xf219fc,_0x288ff0,_0x4611cb,_0x12fec1){return _0x3749d0(_0xf219fc-_0x2d9877._0x2deff9,_0x288ff0-0x18b,_0x4611cb-_0x2d9877._0x2c96a0,_0x12fec1);}return _0x25d565[_0x5dd71a(_0x514fb5._0x2f1070,_0x514fb5._0x2f0e03,0x2ab,_0x514fb5._0x541dab)]?.['visibility']??'user-visible';}function isUserVisibleThinking(_0x357d2e){const _0x1afaca={_0x3c911b:0x24e,_0x3b2a20:0x1c6,_0x5d2060:0x119,_0x25222c:0x235,_0x4704d9:0x27f,_0x1c6af4:0x176,_0x380cff:0x1b1},_0x2c0e29={_0x568189:0x3b,_0x3a690b:0x14c},_0x3d34de={_0x1ab119:0xa1};function _0x34628c(_0x273258,_0x3a0df9,_0x7db5e1,_0x11b139){return _0x5da579(_0x7db5e1- -0x35a,_0x3a0df9-0x8d,_0x7db5e1-_0x3d34de._0x1ab119,_0x273258);}function _0x1a766f(_0x4b8f64,_0x1930ef,_0xc9a719,_0x100d76){return _0x5da579(_0x100d76- -0x1d6,_0x1930ef-_0x2c0e29._0x568189,_0xc9a719-_0x2c0e29._0x3a690b,_0x4b8f64);}const _0x29dbcf=resolveAnthropicThinkingConfig(_0x357d2e[_0x1a766f(0xf7,_0x1afaca._0x3c911b,0xfd,0x1a9)]);return _0x29dbcf!==void 0x0&&_0x29dbcf[_0x1a766f(_0x1afaca._0x3b2a20,0x83,0x93,_0x1afaca._0x5d2060)]!==_0x1a766f(_0x1afaca._0x25222c,0xef,_0x1afaca._0x4704d9,0x1c0)&&resolveReasoningVisibility(_0x357d2e)===_0x1a766f(_0x1afaca._0x1c6af4,0x16f,0x13a,_0x1afaca._0x380cff);}function createAnthropicThinkingBody(_0x2498e4){const _0x4f75d9={_0x4f31d7:0x2fc,_0x15ee8c:0x23e,_0x50a4e9:0x2be,_0x9267e8:0x22c,_0x47beb0:0x2bd,_0x58c480:0x310,_0x3452a8:0x2ce,_0x3da180:0x22e,_0x159c75:0x264,_0x2c565e:0x2cd,_0x25c657:0x279,_0x4921ad:0x217,_0x4653de:0x229,_0x504112:0x232,_0x2a2339:0x28f,_0x4bb2d5:0x18c},_0xc97319={_0x32a0d1:0x3d,_0x433867:0x2ed},_0x3be757={_0x572c45:0x39,_0x146672:0xeb,_0x476b40:0x2d8};function _0x146a2b(_0x17fcb3,_0x3391d4,_0x201bdf,_0x5606c2){return _0x3749d0(_0x17fcb3-_0x3be757._0x572c45,_0x3391d4-_0x3be757._0x146672,_0x5606c2- -_0x3be757._0x476b40,_0x3391d4);}const _0xfd81e6=resolveAnthropicThinkingConfig(_0x2498e4[_0x146a2b(-0x305,-_0x4f75d9._0x4f31d7,-0x1f6,-_0x4f75d9._0x15ee8c)]);if(!_0xfd81e6||_0xfd81e6['type']===_0x146a2b(-_0x4f75d9._0x50a4e9,-0x200,-0x1cc,-0x227))return{};const _0x10e2c1=_0xfd81e6[_0x146a2b(-0x36c,-_0x4f75d9._0x9267e8,-0x200,-_0x4f75d9._0x47beb0)]??(isUserVisibleThinking(_0x2498e4)?'summarized':'omitted'),_0x345436=_0xfd81e6['interleaved']?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;if(_0xfd81e6[_0x146a2b(-0x28d,-_0x4f75d9._0x58c480,-0x200,-_0x4f75d9._0x3452a8)]===_0x146a2b(-0x28e,-_0x4f75d9._0x3da180,-0x28e,-_0x4f75d9._0x159c75))return{..._0x345436?{'headers':_0x345436}:{},'thinking':{'type':_0x346060(-_0x4f75d9._0x2c565e,-_0x4f75d9._0x25c657,-_0x4f75d9._0x4921ad,-_0x4f75d9._0x4653de),'budget_tokens':_0xfd81e6[_0x146a2b(-0x1f7,-0x238,-0x228,-_0x4f75d9._0x504112)],'display':_0x10e2c1}};function _0x346060(_0x3729d0,_0x618b04,_0x43e8b4,_0x2310d2){return _0x3749d0(_0x3729d0-_0xc97319._0x32a0d1,_0x618b04-0x1d3,_0x618b04- -_0xc97319._0x433867,_0x2310d2);}return{..._0x345436?{'headers':_0x345436}:{},'thinking':{'type':'adaptive',..._0xfd81e6[_0x346060(-_0x4f75d9._0x2a2339,-0x1cb,-_0x4f75d9._0x4bb2d5,-0x249)]?{'effort':_0xfd81e6['effort']}:{},'display':_0x10e2c1}};}function toAnthropicRequestContent(_0x59eeb1){const _0x9f792a={_0x57c2d0:0x2a3,_0x4aca1a:0x252,_0xa3ff3d:0x30a,_0x13bd9f:0x1db,_0x5e03f3:0x14f,_0x5f1b3e:0x19a,_0x5869a5:0x120,_0x5adfe2:0x183,_0x21af42:0x209,_0x2ce140:0x2a6,_0x3f5d3e:0x281,_0x52fb37:0x2f0,_0x6cdb6a:0x22c,_0x28da14:0x19f,_0x552976:0x260,_0x5b4b76:0xe3,_0x16c391:0xf4,_0x59e770:0x105,_0x42715c:0x2ed,_0x3e9cb9:0x2f1,_0xae7a38:0x2ff,_0x31fc19:0x309,_0x371715:0x4a,_0x5c59fb:0xa6,_0xe642e7:0x87,_0x289744:0xe6,_0x2b81d6:0x29,_0x27d0db:0x1af,_0x181024:0x398,_0x13515f:0x2ae,_0x2ac0d5:0x346,_0x3f9bb2:0x25e,_0x34a349:0x120,_0x52fe24:0x109,_0x54d29a:0xdc,_0xf0ed6f:0x194,_0x41e2df:0xe8},_0x2b7900={_0x41e6ed:0xc1,_0x46cf96:0x94},_0x4b859a={_0x1fccc0:0x99};if(_0x59eeb1[_0x336df3(-0x30a,-_0x9f792a._0x57c2d0,-_0x9f792a._0x4aca1a,-_0x9f792a._0xa3ff3d)]===_0x2f15da(0x98,_0x9f792a._0x13bd9f,_0x9f792a._0x5e03f3,_0x9f792a._0x5f1b3e)&&_0x59eeb1[_0x2f15da(0x173,_0x9f792a._0x5869a5,_0x9f792a._0x5adfe2,0x146)]?.[_0x336df3(-0x23f,-_0x9f792a._0x21af42,-_0x9f792a._0x2ce140,-_0x9f792a._0x3f5d3e)])return structuredClone(_0x59eeb1['providerState'][_0x336df3(-0x23f,-_0x9f792a._0x52fb37,-_0x9f792a._0x6cdb6a,-0x289)]);const _0x348409=[];function _0x336df3(_0x18cae7,_0x29f2d6,_0x4f308c,_0x1f9c6b){return _0x5da579(_0x18cae7- -0x5dc,_0x29f2d6-_0x4b859a._0x1fccc0,_0x4f308c-0x68,_0x1f9c6b);}function _0x2f15da(_0x186523,_0x343e12,_0x19f941,_0x226e72){return _0x5da579(_0x19f941- -0x241,_0x343e12-_0x2b7900._0x41e6ed,_0x19f941-_0x2b7900._0x46cf96,_0x186523);}for(const _0x336bb3 of normalizeContent(_0x59eeb1[_0x2f15da(_0x9f792a._0x28da14,_0x9f792a._0x552976,0x1a8,0x12b)])){if(_0x336bb3[_0x2f15da(-0x11,0x88,0xae,0xd8)]===_0x2f15da(_0x9f792a._0x5b4b76,_0x9f792a._0x16c391,_0x9f792a._0x59e770,0x99))continue;if(_0x336bb3[_0x336df3(-_0x9f792a._0x42715c,-0x3be,-_0x9f792a._0x3e9cb9,-0x3a8)]===_0x336df3(-_0x9f792a._0xae7a38,-0x31c,-_0x9f792a._0x31fc19,-0x242)){_0x348409[_0x2f15da(0xbf,_0x9f792a._0x371715,0xe8,_0x9f792a._0x5c59fb)]({'type':_0x2f15da(0x149,0x146,_0x9f792a._0xe642e7,_0x9f792a._0x289744),'thinking':_0x336bb3['thinking'],'signature':_0x336bb3[_0x2f15da(_0x9f792a._0x2b81d6,0xc6,0xf6,_0x9f792a._0x27d0db)]});continue;}if(_0x336bb3[_0x336df3(-0x2ed,-0x224,-_0x9f792a._0x181024,-0x233)]===_0x336df3(-_0x9f792a._0x13515f,-_0x9f792a._0x2ac0d5,-0x2cb,-_0x9f792a._0x3f9bb2)){_0x348409[_0x2f15da(_0x9f792a._0x34a349,0x19f,0xe8,0xd6)]({'type':'redacted_thinking','data':_0x336bb3[_0x2f15da(_0x9f792a._0x52fe24,_0x9f792a._0x54d29a,_0x9f792a._0xf0ed6f,_0x9f792a._0x6cdb6a)]});continue;}_0x348409[_0x2f15da(0x83,0xaa,_0x9f792a._0x41e2df,0x195)](structuredClone(_0x336bb3));}return _0x348409;}function createAnthropicRequest(_0x6ae502,_0x4264f4){const _0x33d444={_0x58e19f:0x1e9,_0x413f05:0x13f,_0x49d479:0x1a4,_0x3a1bf7:0x48,_0x4b4c4d:0x36,_0x526744:0x14,_0x1cddec:0x49,_0x2545d9:0x82,_0x53fcc4:0x34,_0x13cbbe:0x101,_0x1ea1ab:0x2c,_0x4ca220:0x57,_0x2534c4:0x131,_0x2c562a:0xed,_0x5c2b4a:0x60},_0x134b58={_0x3f828b:0x11c},_0x3648f3={_0x5b7bf8:0x2f4,_0x2493d5:0x75,_0x57375a:0xf6};function _0x34ed07(_0x38bc2f,_0x4d8388,_0xfda88b,_0xa619ac){return _0x5da579(_0xfda88b- -_0x3648f3._0x5b7bf8,_0x4d8388-_0x3648f3._0x2493d5,_0xfda88b-_0x3648f3._0x57375a,_0xa619ac);}function _0x3121a9(_0x294693,_0x43f781,_0x120c96,_0x2d248e){return _0x5da579(_0x294693- -0x2b8,_0x43f781-0xed,_0x120c96-0x10f,_0x43f781);}const _0xb6f91f=toProviderModelRequest(_0x6ae502),_0x42317d=createAnthropicThinkingBody(_0x6ae502);return{'accept':_0x4264f4?_0x34ed07(_0x33d444._0x58e19f,0x95,_0x33d444._0x413f05,_0x33d444._0x49d479):_0x34ed07(_0x33d444._0x3a1bf7,0x52,_0x33d444._0x4b4c4d,_0x33d444._0x526744),'body':{..._0xb6f91f,'messages':_0x6ae502[_0x34ed07(0x19b,0xa5,0x11d,_0x33d444._0x1cddec)][_0x34ed07(-0x53,0x9d,0x3,0x9f)](_0x4e1c70=>{const _0x3c7fb8={_0x3701c8:0x91,_0xe4f5b8:0x9d};function _0xbcf0ca(_0x20b8c6,_0x83e7a7,_0x52087b,_0x4ccd9c){return _0x3121a9(_0x52087b- -_0x3c7fb8._0x3701c8,_0x20b8c6,_0x52087b-0x176,_0x4ccd9c-_0x3c7fb8._0xe4f5b8);}return{'role':_0x4e1c70[_0xbcf0ca(-0x12d,-0x104,-0x77,-_0x134b58._0x3f828b)],'content':toAnthropicRequestContent(_0x4e1c70)};}),..._0x42317d[_0x3121a9(0x10,_0x33d444._0x2545d9,-0xa4,0xdb)]?{'thinking':_0x42317d[_0x34ed07(-_0x33d444._0x53fcc4,-_0x33d444._0x13cbbe,-_0x33d444._0x1ea1ab,-_0x33d444._0x4ca220)]}:{},..._0x4264f4?{'stream':!![]}:{}},..._0x42317d[_0x3121a9(0x63,_0x33d444._0x2534c4,_0x33d444._0x2c562a,_0x33d444._0x5c2b4a)]?{'headers':_0x42317d['headers']}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x1a5b86,_0x4ae96a){const _0x3d8771={_0x59265d:0x5a,_0x567a7d:0x6e,_0x51fcdd:0x4e,_0x527e04:0xee,_0x2e061a:0x24,_0x4a4771:0x50,_0x349375:0xa9,_0xada383:0x116,_0x257622:0x7f,_0x596808:0x44,_0x5f4b84:0x146,_0x3cda5f:0xc7,_0x31edff:0x4,_0x452f55:0x1e,_0x148676:0x5c,_0x49df18:0x8d,_0x304ca4:0x15a,_0x363c0a:0xa,_0x4de211:0x36,_0x38c9de:0x47,_0x366b4f:0x49,_0x5bc6fc:0xa6,_0x44b74:0xf4,_0x57f7f2:0x62,_0x3d930d:0x1,_0x5ba710:0x62,_0x351ce8:0x2d,_0x260aff:0x73,_0xd41a5d:0x2b,_0x393823:0x44,_0x29a5ba:0xa,_0x4359a2:0x5,_0x1257db:0xdc,_0x373fc6:0xe,_0x2b2686:0xb,_0x421636:0x3e,_0x355a26:0x5b,_0x264022:0xaf,_0x312c9b:0x55,_0x1d1a17:0xa2,_0x3d1015:0xd2,_0x411df9:0x1d,_0x3bc02d:0x10f,_0x4f47d7:0x55,_0x5102cd:0x37,_0x1c54b5:0x55,_0x2e600a:0x4e,_0x3b8e45:0xe7,_0x46fc5f:0xa8,_0x2d9a30:0x46,_0x5a3a7e:0x60,_0x42f7d2:0x55,_0x1f6f7c:0xc,_0x190648:0xa1,_0x557cc3:0x5,_0x357c51:0x142,_0x34426d:0x12a,_0x31e9f8:0x7a,_0x41c49e:0xbc,_0x1476e4:0xc5,_0x230500:0x55,_0x51aa6c:0x123,_0x203a07:0xfc,_0x233110:0xb7,_0x2076ba:0xa8},_0x2f9a7a={_0x2a26e9:0x193,_0x368196:0x11c},_0x1b80a8={_0x544210:0x1bf,_0x229437:0x1bb};function _0x1e7d1b(_0x404c06,_0x501c74,_0x3a33cc,_0x53973b){return _0x5da579(_0x501c74- -0x3e7,_0x501c74-_0x1b80a8._0x544210,_0x3a33cc-_0x1b80a8._0x229437,_0x3a33cc);}const _0x4c7799=[],_0x403b0b=_0x1a5b86[_0x564d79(0x33,-0x3e,_0x3d8771._0x59265d,-_0x3d8771._0x567a7d)]??[];let _0x56cafd=![];for(const _0x200d9f of _0x403b0b){if(_0x200d9f[_0x564d79(-0xc7,-0xef,-_0x3d8771._0x51fcdd,-0x197)]===_0x564d79(-_0x3d8771._0x527e04,-0x9c,-0x79,-_0x3d8771._0x2e061a)){_0x56cafd=!![];isUserVisibleThinking(_0x4ae96a)&&_0x4c7799['push']({'type':_0x564d79(-0xd9,-0x104,-0x58,-_0x3d8771._0x4a4771),'thinking':_0x200d9f[_0x564d79(-0xee,-0x140,-_0x3d8771._0x349375,-_0x3d8771._0xada383)],'signature':_0x200d9f[_0x564d79(-_0x3d8771._0x257622,0x29,_0x3d8771._0x596808,-_0x3d8771._0x5f4b84)]});continue;}if(_0x200d9f[_0x564d79(-_0x3d8771._0x3cda5f,-0xad,-0x28,-0x174)]===_0x1e7d1b(-0x66,_0x3d8771._0x31edff,-_0x3d8771._0x452f55,-_0x3d8771._0x148676)){_0x56cafd=!![];isUserVisibleThinking(_0x4ae96a)&&_0x4c7799[_0x564d79(-_0x3d8771._0x49df18,-0x10d,-_0x3d8771._0x304ca4,_0x3d8771._0x363c0a)]({'type':_0x564d79(-0x88,-0xc9,-_0x3d8771._0x4de211,_0x3d8771._0x38c9de),'data':_0x200d9f[_0x1e7d1b(0x1b,-0x12,-_0x3d8771._0x366b4f,-0xb3)]});continue;}if(_0x200d9f[_0x1e7d1b(-0x117,-0xf8,-_0x3d8771._0x5bc6fc,-0x153)]===_0x1e7d1b(0xc5,0x3e,_0x3d8771._0x44b74,-_0x3d8771._0x57f7f2)){_0x200d9f[_0x1e7d1b(-_0x3d8771._0x3d930d,0x3e,0xee,0x29)]['length']>0x0&&_0x4c7799['push'](structuredClone(_0x200d9f));continue;}_0x4c7799[_0x564d79(-0x8d,0x14,-_0x3d8771._0x5ba710,-0x15)](structuredClone(_0x200d9f));}function _0x564d79(_0xce1a0f,_0x170c42,_0x44cc48,_0x14514f){return _0x3749d0(_0xce1a0f-_0x2f9a7a._0x2a26e9,_0x170c42-_0x2f9a7a._0x368196,_0xce1a0f- -0xd1,_0x170c42);}return{'id':_0x1a5b86['id']??_0x564d79(-0xa4,-_0x3d8771._0x351ce8,-0x6a,-0x14f)+Date[_0x564d79(-_0x3d8771._0x260aff,-0xe9,-_0x3d8771._0xd41a5d,_0x3d8771._0x393823)](),'content':_0x4c7799,'stopReason':_0x4c7799[_0x564d79(-_0x3d8771._0x29a5ba,_0x3d8771._0x4359a2,-_0x3d8771._0x1257db,_0x3d8771._0x373fc6)](_0x16aaf7=>_0x16aaf7[_0x564d79(-0xc7,-0x77,-0x4b,-0x129)]===_0x564d79(0xb,-0x31,-0x7e,0xce))?_0x564d79(_0x3d8771._0x2b2686,-_0x3d8771._0x421636,0x29,-0xbf):_0x1a5b86['stop_reason']==='tool_use'?_0x564d79(0xb,-_0x3d8771._0x355a26,-_0x3d8771._0x264022,0xbc):_0x564d79(-0x3f,0x59,-0xe9,-0x89),'usage':{'inputTokens':(_0x1a5b86[_0x1e7d1b(0x45,_0x3d8771._0x312c9b,_0x3d8771._0x1d1a17,0x37)]?.[_0x564d79(-0x91,-0x119,-_0x3d8771._0x3d1015,-_0x3d8771._0x411df9)]??0x0)+(_0x1a5b86[_0x1e7d1b(_0x3d8771._0x3bc02d,_0x3d8771._0x4f47d7,0x26,_0x3d8771._0x5102cd)]?.[_0x564d79(-0x51,0x29,-0xa2,0x59)]??0x0)+(_0x1a5b86[_0x1e7d1b(0x35,_0x3d8771._0x1c54b5,_0x3d8771._0x2e600a,_0x3d8771._0x3b8e45)]?.['cache_creation_input_tokens']??0x0),'outputTokens':_0x1a5b86[_0x1e7d1b(-0x68,_0x3d8771._0x1c54b5,_0x3d8771._0x46fc5f,-0x3d)]?.[_0x1e7d1b(0x70,0x30,-0x6d,-_0x3d8771._0x2d9a30)]??0x0,..._0x1a5b86[_0x1e7d1b(-_0x3d8771._0x5a3a7e,_0x3d8771._0x42f7d2,-_0x3d8771._0x148676,-_0x3d8771._0x1f6f7c)]?.[_0x564d79(-0x51,-_0x3d8771._0x190648,-_0x3d8771._0x557cc3,-0x3d)]?{'cacheReadInputTokens':_0x1a5b86[_0x564d79(0x86,_0x3d8771._0x357c51,_0x3d8771._0x34426d,_0x3d8771._0x31e9f8)][_0x1e7d1b(-_0x3d8771._0x41c49e,-0x82,0x4e,-_0x3d8771._0x1476e4)]}:{},..._0x1a5b86[_0x1e7d1b(-0x20,_0x3d8771._0x230500,0x1c,_0x3d8771._0x51aa6c)]?.[_0x1e7d1b(-_0x3d8771._0x203a07,-0x14f,-0xa2,-_0x3d8771._0x233110)]?{'cacheCreationInputTokens':_0x1a5b86['usage'][_0x564d79(-0x11e,-0x161,-_0x3d8771._0x2076ba,-0x73)]}:{}},..._0x56cafd?{'providerState':{'anthropicAssistantContent':structuredClone(_0x403b0b)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x3749d0(0x177,0xa2,0xb5,0xa5)]=new Map();['cacheCreationInputTokens']=0x0;[_0x3749d0(-0x52,-0xbe,-0x4a,0x7c)]=0x0;['inputTokens']=0x0;['messageId']='msg-'+Date['now']();[_0x5da579(0x406,0x3b7,0x446,0x3fb)]=0x0;[_0x3749d0(0x57,-0x2e,0x1c,0xdd)];[_0x3749d0(0x76,0x136,0x13c,0x16b)]=_0x3749d0(0xa3,0x2e,0x92,-0x25);constructor(_0x1b3016){this['request']=_0x1b3016;}[_0x5da579(0x391,0x2be,0x34f,0x2d5)](_0xfe4bc8){const _0x3058aa={_0x2aa396:0xe3,_0x3cbd13:0x1c,_0x2898ad:0x284,_0x23a820:0x250,_0x3193ac:0xfa,_0x56893e:0x1b8,_0x9364b3:0x117,_0x36a685:0x1e3,_0x36a083:0x1d5,_0x2ed594:0x25b,_0xd61079:0xd1,_0xb3db7:0x175,_0x4500c8:0x7a,_0x4d97c0:0x8f,_0x3b7fd7:0x10b,_0x19ab68:0x1fd,_0x5cb1d3:0x181,_0xe1d93a:0x21d,_0x441379:0x1ca,_0x35d76d:0x240,_0x32775c:0xc1,_0x2b05af:0x180,_0x369cef:0x313,_0xffc46c:0x23f,_0x12f33d:0x2b8,_0x2ba7c3:0x253,_0x2c01f9:0x280,_0x99a707:0x2c9,_0x5daa82:0xa7,_0x252dca:0x164,_0x5572a8:0x35,_0x27d172:0x223,_0x414ee9:0x27f,_0x3eceeb:0x231,_0xe90ada:0x250,_0x588e18:0x3f,_0x1b2706:0x22b,_0x3c0d6d:0x1dd,_0x13ac00:0xbe,_0x156cc8:0x83,_0x204eac:0x3d,_0x65d84:0x232,_0x172f60:0x19a,_0xc62a8f:0xec,_0x513933:0x148,_0x41a07d:0x18c,_0xc45d81:0x259,_0x35cf00:0x2ba,_0x15f70e:0x185,_0x43d366:0x247,_0x2fe86d:0x260,_0x33b23b:0x1ba,_0x4c3641:0x1bb,_0x201ab5:0x9d,_0x5cb6f0:0x88,_0x11cbd5:0x224,_0x184d69:0x24d,_0x27c9a3:0x26b,_0x28c95b:0x1ff,_0x4df758:0x287,_0x481705:0x22d,_0x59a1a3:0xc2,_0x5e301b:0xed,_0x5b8588:0xc9,_0x3a705f:0x15b,_0x2bfef3:0x22d,_0x312b33:0x238,_0x2d0d07:0x2b7,_0x29b432:0x29c,_0x535ac0:0x6d,_0xd87156:0x343,_0x14fb03:0x9c,_0x50fb1c:0x41,_0x28bead:0x113,_0x41e171:0x111,_0x1faa7c:0x16b,_0x462b9d:0x1ca,_0x20c573:0x23a,_0x2f6912:0x28f,_0x2a28b0:0x32b,_0x4712e8:0x157,_0x72b263:0x120,_0x5d2ed2:0x11b,_0x3282c5:0x113,_0x22d1a5:0x1c8,_0x1bf1fa:0xbb,_0x391010:0xca,_0x4272fe:0x7f,_0xa1ffe9:0x1a6,_0x3503f2:0x13f,_0x405e71:0x1d8,_0x3fda23:0x189,_0x276f84:0x14d,_0x15629f:0x14c,_0x109e27:0x2ca,_0x3d1e77:0x27e,_0x1c3392:0x250,_0xae30a1:0x127,_0x5a446c:0xbb,_0x1aa1a5:0x15b,_0xcc4a67:0x11d,_0x28fb60:0x16a,_0x297127:0x2cf,_0x30db27:0x30e,_0x706a00:0x28a,_0x4cd915:0x25d,_0x5e0d60:0x2b6,_0x12c223:0x323,_0x56e9ac:0x28e,_0x794985:0x275,_0x46f3bd:0x6,_0x13fe08:0x17,_0x9c7d05:0x173,_0x356dc1:0x49,_0x5d4d1f:0x96,_0x14dd7f:0x17d,_0x45685f:0xc6,_0x1d5c48:0x8b,_0x20e3fd:0x12f,_0x23a8ea:0xee,_0x5b365d:0xc2,_0x33091c:0x13f,_0x55290b:0x1eb,_0x792805:0x14d,_0x3e012e:0x23e,_0x11cf0e:0xa0,_0x50b55d:0x13c,_0x778442:0x5d,_0x149ede:0xd,_0x1be0ab:0x10e,_0x495d96:0xe8,_0x388446:0xe9,_0xc11208:0xaf,_0x1c196e:0x75,_0x2dec23:0x15d,_0x285058:0x51,_0x28b807:0x50,_0x19dfeb:0xe0,_0x2b9c12:0x305,_0x2db41d:0x2a7,_0x3b47d6:0x23c,_0x763daa:0x52,_0x1332de:0x170,_0x624aa8:0x267,_0x3b8ea5:0x24b,_0x24c132:0x1bf,_0xa11cc7:0x1cd,_0x41ff82:0x1c3,_0x2a4d30:0x9b,_0x33b075:0x10,_0x128326:0x1a3,_0x4c2d2d:0xdd,_0x1ed0b3:0x2d,_0x5903de:0x1a3,_0xaa702f:0xeb,_0x31db76:0x1cd,_0x32dd78:0x2f0,_0x397e14:0x9c,_0x52f2b8:0x5f,_0x151378:0xf6,_0x398a05:0x1d9,_0x47cc90:0x29b,_0x1e11c0:0x1bd,_0x44b994:0x89,_0x724b1:0x1f6,_0x2b00dd:0x194,_0x308739:0x140,_0x3c79d4:0x128,_0x379f2c:0x4c,_0x187546:0xc2,_0x296276:0x42,_0x3c4259:0x3d,_0x3b3fe6:0xa8,_0x280cf7:0x42,_0x19075b:0xd2,_0x4c535c:0x2bc,_0x167545:0x299,_0x3dc762:0x102,_0x592394:0x103,_0x1ad9e7:0x2ac,_0x3e9abe:0xdf,_0x4a69c5:0x1e0,_0x43dc2c:0x14e,_0xa35152:0x1f7,_0x22a158:0x16f,_0x5cf831:0x6b,_0x2fd06a:0x16,_0x4c9eb8:0x7d,_0x4bdd0a:0x17},_0x38f85e={_0x298afe:0x10a},_0xe7910e={_0x34c6be:0x2d8},_0x1ffff8=_0xfe4bc8[_0x411e03(0x3e,_0x3058aa._0x2aa396,-0x14,_0x3058aa._0x3cbd13)]('\x0a');function _0x411e03(_0x1c9663,_0x185aeb,_0x540677,_0x18b737){return _0x5da579(_0x18b737- -_0xe7910e._0x34c6be,_0x185aeb-0x7f,_0x540677-0x9,_0x185aeb);}const _0x1b4e60=_0x1ffff8[_0x3da037(-0x282,-_0x3058aa._0x2898ad,-0x269,-0x24a)](_0x22116c=>_0x22116c[_0x411e03(0x1a,0x2c,-0x5e,0x1e)](_0x3da037(-0x1a8,-0x286,-0x278,-0x25f)))?.[_0x3da037(-_0x3058aa._0x23a820,-0x2be,-0x272,-0x298)](0x6)[_0x411e03(0x1da,_0x3058aa._0x3193ac,_0x3058aa._0x56893e,_0x3058aa._0x9364b3)](),_0x260b81=_0x1ffff8[_0x3da037(-_0x3058aa._0x36a685,-0x10c,-_0x3058aa._0x36a083,-0x134)](_0x54943f=>_0x54943f[_0x3da037(-0x20c,-0x1d5,-0x1af,-0x26e)](_0x411e03(0x74,0x156,0x4d,0x87)))['map'](_0x5ee72f=>_0x5ee72f[_0x411e03(0xa7,0x49,0x27,-0xc)](0x5)[_0x3da037(-0x202,-0x1c2,-0x294,-0x21a)]())[_0x3da037(-0x224,-0x164,-_0x3058aa._0x2ed594,-0x202)]('\x0a')[_0x3da037(-_0x3058aa._0xd61079,-0x22b,-0x239,-_0x3058aa._0xb3db7)]();function _0x3da037(_0x197dd9,_0x4f3fb2,_0x54bdd9,_0x13d6e5){return _0x5da579(_0x13d6e5- -0x564,_0x4f3fb2-_0x38f85e._0x298afe,_0x54bdd9-0x98,_0x54bdd9);}if(_0x260b81[_0x411e03(-0x48,0x46,_0x3058aa._0x4500c8,-0x22)]===0x0||_0x260b81===_0x411e03(0xa8,-_0x3058aa._0x4d97c0,-0xc4,-0x13))return[];const _0x351a35=JSON['parse'](_0x260b81);switch(_0x1b4e60){case _0x3da037(-0x106,-0x1e8,-0xee,-0x1ba):{const _0x282511=_0x351a35['message'];this[_0x411e03(0x146,0x7d,0x3d,_0x3058aa._0x3b7fd7)]=_0x282511?.['id']??this[_0x3da037(-0xc2,-0xd2,-_0x3058aa._0x19ab68,-_0x3058aa._0x5cb1d3)],this[_0x3da037(-_0x3058aa._0xe1d93a,-_0x3058aa._0x441379,-0x1b7,-_0x3058aa._0x35d76d)]=_0x282511?.[_0x411e03(0x14f,_0x3058aa._0x32775c,0x1fa,0x164)]?.[_0x3da037(-_0x3058aa._0x2b05af,-0x2e8,-_0x3058aa._0x369cef,-_0x3058aa._0xffc46c)]??this['inputTokens'],this[_0x3da037(-_0x3058aa._0x12f33d,-_0x3058aa._0x2ba7c3,-_0x3058aa._0x2c01f9,-_0x3058aa._0x99a707)]=_0x282511?.[_0x411e03(0x22d,0x15e,_0x3058aa._0x5daa82,_0x3058aa._0x252dca)]?.['cache_read_input_tokens']??this['cacheReadInputTokens'],this[_0x411e03(-0xc6,-0xc7,-_0x3058aa._0x5572a8,-0x42)]=_0x282511?.['usage']?.[_0x411e03(0x5b,0x32,-0x8a,-0x40)]??this[_0x3da037(-0x314,-0x362,-_0x3058aa._0x27d172,-0x2ce)];break;}case _0x411e03(0x17f,_0x3058aa._0x2aa396,0xbe,0xda):{const _0x530577=typeof _0x351a35['index']===_0x3da037(-_0x3058aa._0x414ee9,-0x295,-_0x3058aa._0x3eceeb,-_0x3058aa._0xe90ada)?_0x351a35['index']:0x0,_0x4aead1=_0x351a35[_0x411e03(-0xc0,-0xd4,-0x6e,-_0x3058aa._0x588e18)];if(_0x4aead1?.['type']===_0x3da037(-_0x3058aa._0x1b2706,-_0x3058aa._0x3c0d6d,-0x271,-0x1a3)&&_0x4aead1['id']&&_0x4aead1[_0x411e03(_0x3058aa._0x13ac00,_0x3058aa._0x156cc8,_0x3058aa._0x204eac,0xd1)])return this['blocks'][_0x3da037(-0x324,-_0x3058aa._0x65d84,-_0x3058aa._0x172f60,-0x26b)](_0x530577,{'id':_0x4aead1['id'],'index':_0x530577,'inputJson':JSON[_0x3da037(-_0x3058aa._0xc62a8f,-_0x3058aa._0x513933,-0xfb,-_0x3058aa._0x41a07d)](_0x4aead1[_0x3da037(-_0x3058aa._0xc45d81,-0x20e,-0x219,-_0x3058aa._0x35cf00)]??{}),'kind':'tool_use','name':_0x4aead1['name']}),[{'type':_0x3da037(-_0x3058aa._0x15f70e,-0x1d2,-0x27c,-0x1fb),'id':_0x4aead1['id'],'index':_0x530577,'name':_0x4aead1[_0x3da037(-_0x3058aa._0x43d366,-_0x3058aa._0x2fe86d,-_0x3058aa._0x33b23b,-_0x3058aa._0x4c3641)]}];if(_0x4aead1?.['type']===_0x411e03(-_0x3058aa._0x201ab5,-0x79,_0x3058aa._0x5cb6f0,-0x10)){this['blocks'][_0x3da037(-_0x3058aa._0x11cbd5,-0x1ef,-_0x3058aa._0x184d69,-_0x3058aa._0x27c9a3)](_0x530577,{'index':_0x530577,'kind':_0x3da037(-0x2c4,-_0x3058aa._0x28c95b,-_0x3058aa._0x27d172,-0x29c),'signature':typeof _0x4aead1[_0x3da037(-0x1ef,-_0x3058aa._0x4df758,-0x1d6,-_0x3058aa._0x481705)]===_0x411e03(_0x3058aa._0x59a1a3,_0x3058aa._0x5e301b,0x170,_0x3058aa._0x5b8588)?_0x4aead1[_0x3da037(-0x19d,-_0x3058aa._0x3a705f,-0x2ef,-_0x3058aa._0x2bfef3)]:'','thinking':typeof _0x4aead1['text']==='string'?_0x4aead1['text']:typeof _0x4aead1[_0x3da037(-_0x3058aa._0x312b33,-_0x3058aa._0x2d0d07,-0x359,-_0x3058aa._0x29b432)]===_0x3da037(-_0x3058aa._0x2ed594,-0x150,-0x1b8,-0x1c3)?String(_0x4aead1[_0x411e03(-_0x3058aa._0x535ac0,-0x11,-0xc7,-0x10)]):''});break;}if(_0x4aead1?.[_0x3da037(-0x323,-0x1ce,-_0x3058aa._0xd87156,-0x275)]===_0x411e03(_0x3058aa._0x14fb03,_0x3058aa._0x50fb1c,0x9f,_0x3058aa._0x28bead)){this[_0x3da037(-0x21b,-_0x3058aa._0x41e171,-_0x3058aa._0x1faa7c,-_0x3058aa._0x462b9d)][_0x3da037(-_0x3058aa._0x20c573,-_0x3058aa._0x2f6912,-_0x3058aa._0x2a28b0,-0x26b)](_0x530577,{'index':_0x530577,'kind':_0x411e03(_0x3058aa._0x4712e8,_0x3058aa._0x72b263,_0x3058aa._0x5d2ed2,_0x3058aa._0x3282c5),'data':typeof _0x4aead1[_0x411e03(_0x3058aa._0x22d1a5,0x1d0,_0x3058aa._0x1bf1fa,0xfd)]===_0x411e03(_0x3058aa._0x391010,_0x3058aa._0x4272fe,0x3d,0xc9)?String(_0x4aead1['data']):''});break;}this[_0x3da037(-_0x3058aa._0xa1ffe9,-0x1dc,-0x192,-0x1ca)]['set'](_0x530577,{'index':_0x530577,'kind':_0x3da037(-0x99,-0xa9,-0x1d3,-_0x3058aa._0x3503f2),'text':_0x4aead1?.[_0x411e03(_0x3058aa._0x405e71,0x133,_0x3058aa._0x3fda23,_0x3058aa._0x276f84)]??''});break;}case'content_block_delta':{const _0x476791=typeof _0x351a35[_0x3da037(-0x1fe,-0x1ee,-_0x3058aa._0x15629f,-0x15b)]===_0x3da037(-0x209,-_0x3058aa._0x109e27,-_0x3058aa._0x3d1e77,-_0x3058aa._0x1c3392)?_0x351a35[_0x3da037(-_0x3058aa._0xae30a1,-0x175,-_0x3058aa._0x5a446c,-_0x3058aa._0x1aa1a5)]:0x0,_0x3e757d=this[_0x3da037(-_0x3058aa._0xb3db7,-_0x3058aa._0xcc4a67,-_0x3058aa._0x28fb60,-_0x3058aa._0x441379)][_0x3da037(-_0x3058aa._0x297127,-_0x3058aa._0x30db27,-_0x3058aa._0x706a00,-_0x3058aa._0x4cd915)](_0x476791),_0x200a5e=_0x351a35[_0x3da037(-_0x3058aa._0x5e0d60,-_0x3058aa._0x12c223,-0x211,-_0x3058aa._0x56e9ac)];if(!_0x3e757d||!_0x200a5e?.[_0x3da037(-0x2f5,-0x2ca,-0x212,-_0x3058aa._0x794985)])break;if(_0x200a5e[_0x411e03(-0x90,-_0x3058aa._0x46f3bd,0x8,_0x3058aa._0x13fe08)]==='text_delta'&&_0x3e757d[_0x411e03(0x66,_0x3058aa._0x9c7d05,_0x3058aa._0x356dc1,0xbf)]===_0x411e03(0x205,_0x3058aa._0x5d4d1f,_0x3058aa._0x14dd7f,_0x3058aa._0x276f84)&&typeof _0x200a5e[_0x411e03(_0x3058aa._0x45685f,_0x3058aa._0x1d5c48,_0x3058aa._0x20e3fd,0x14d)]===_0x411e03(0x123,0x198,0x6e,0xc9))return _0x3e757d[_0x3da037(-0xc3,-_0x3058aa._0x23a8ea,-_0x3058aa._0x5b365d,-_0x3058aa._0x33091c)]+=_0x200a5e[_0x411e03(0x195,0x1a6,_0x3058aa._0x55290b,_0x3058aa._0x792805)],[{'type':_0x3da037(-0x2d1,-_0x3058aa._0x3e012e,-0x214,-_0x3058aa._0x11cbd5),'index':_0x476791,'text':_0x200a5e[_0x411e03(0x16d,_0x3058aa._0x11cf0e,_0x3058aa._0x50b55d,0x14d)]}];if(_0x200a5e[_0x3da037(-0x2d0,-0x1e0,-0x1e4,-_0x3058aa._0x794985)]===_0x411e03(-0x8b,-0x6e,-_0x3058aa._0x778442,-_0x3058aa._0x149ede)&&_0x3e757d[_0x411e03(0x14c,0x73,0x79,0xbf)]===_0x411e03(_0x3058aa._0x1be0ab,_0x3058aa._0x495d96,0xd8,_0x3058aa._0x388446)&&typeof _0x200a5e[_0x411e03(0x5a,0xe0,_0x3058aa._0xc11208,0x50)]===_0x411e03(0x15d,_0x3058aa._0x1c196e,0xba,0xc9))return _0x3e757d['inputJson']==='{}'&&(_0x3e757d[_0x3da037(-0x7e,-_0x3058aa._0x2dec23,-0x186,-0x133)]=''),_0x3e757d['inputJson']+=_0x200a5e[_0x411e03(0x9d,0x69,-_0x3058aa._0x285058,_0x3058aa._0x28b807)],[{'type':_0x411e03(0x12e,_0x3058aa._0x19dfeb,0xb,0x91),'id':_0x3e757d['id'],'index':_0x476791,'inputDelta':_0x200a5e[_0x3da037(-_0x3058aa._0x2b9c12,-0x308,-_0x3058aa._0x2db41d,-_0x3058aa._0x3b47d6)]}];if(_0x200a5e[_0x411e03(-_0x3058aa._0x763daa,0xd3,0x28,_0x3058aa._0x13fe08)]===_0x411e03(0x110,0x4,_0x3058aa._0x1332de,0x9e)&&_0x3e757d[_0x3da037(-_0x3058aa._0x624aa8,-_0x3058aa._0x3b8ea5,-_0x3058aa._0x24c132,-_0x3058aa._0xa11cc7)]==='thinking'){const _0x2ddf5f=typeof _0x200a5e['thinking']===_0x3da037(-0x193,-0x208,-0x210,-_0x3058aa._0x41ff82)?String(_0x200a5e[_0x411e03(_0x3058aa._0x2a4d30,_0x3058aa._0x763daa,-0x31,-_0x3058aa._0x33b075)]):'';if(_0x2ddf5f['length']>0x0){_0x3e757d[_0x3da037(-0x32b,-0x2d9,-0x2d0,-0x29c)]+=_0x2ddf5f;if(isUserVisibleThinking(this['request']))return[{'type':_0x411e03(_0x3058aa._0x128326,0xf,0xa1,_0x3058aa._0x4c2d2d),'index':_0x476791,'thinking':_0x2ddf5f}];}}if(_0x200a5e[_0x411e03(_0x3058aa._0x1ed0b3,-0x46,-_0x3058aa._0x778442,_0x3058aa._0x13fe08)]===_0x3da037(-_0x3058aa._0x5903de,-_0x3058aa._0xaa702f,-0x179,-0x155)&&_0x3e757d[_0x3da037(-0x196,-0x179,-0x1a7,-_0x3058aa._0x31db76)]===_0x3da037(-_0x3058aa._0x32dd78,-0x253,-0x26b,-0x29c)){const _0x2f72b0=typeof _0x200a5e[_0x411e03(-0x13,0xf3,_0x3058aa._0x397e14,_0x3058aa._0x52f2b8)]===_0x3da037(-0x280,-_0x3058aa._0x151378,-0x116,-0x1c3)?String(_0x200a5e['signature']):'';if(_0x2f72b0[_0x411e03(-0xb8,0x8,-0x71,-0x22)]>0x0){_0x3e757d['signature']=_0x2f72b0;if(isUserVisibleThinking(this[_0x411e03(_0x3058aa._0x391010,0x79,0x58,0x29)]))return[{'type':_0x3da037(-_0x3058aa._0x398a05,-_0x3058aa._0x47cc90,-0x27f,-0x238),'index':_0x476791,'signature':_0x2f72b0}];}}break;}case _0x411e03(0x6b,_0x3058aa._0x1e11c0,_0x3058aa._0x44b994,0x109):{const _0x349b7b=_0x351a35[_0x3da037(-_0x3058aa._0x28c95b,-_0x3058aa._0x724b1,-0x29a,-0x28e)],_0x5d9d5f=_0x351a35[_0x3da037(-_0x3058aa._0x2b00dd,-0xcc,-_0x3058aa._0x308739,-_0x3058aa._0x3c79d4)];this[_0x411e03(0x4b,0xe1,0x9c,_0x3058aa._0x379f2c)]=_0x5d9d5f?.['input_tokens']??this[_0x3da037(-0x1ca,-0x184,-0x1b2,-_0x3058aa._0x35d76d)],this['cacheReadInputTokens']=_0x5d9d5f?.[_0x411e03(-0x38,_0x3058aa._0x187546,_0x3058aa._0x296276,0x8d)]??this[_0x411e03(-0x4b,-_0x3058aa._0x3c4259,-0x9d,-0x3d)],this[_0x411e03(-0xc3,-0xfe,-_0x3058aa._0x3b3fe6,-_0x3058aa._0x280cf7)]=_0x5d9d5f?.[_0x411e03(-_0x3058aa._0x19075b,0x33,-0x71,-0x40)]??this[_0x3da037(-_0x3058aa._0x4c535c,-0x200,-_0x3058aa._0x167545,-0x2ce)],this[_0x411e03(_0x3058aa._0x3dc762,0x146,0x12f,0x12e)]=_0x5d9d5f?.['output_tokens']??this[_0x411e03(0x91,0x5c,0x1c7,0x12e)],this['stopReason']=_0x349b7b?.['stop_reason']===_0x411e03(_0x3058aa._0x592394,_0x3058aa._0x3b3fe6,0x69,0xe9)?'tool_use':_0x3da037(-_0x3058aa._0x1ad9e7,-0x28b,-0x144,-0x1ed);break;}case _0x3da037(-_0x3058aa._0x3e9abe,-_0x3058aa._0x4a69c5,-0x186,-0x137):{const _0x5c0268=_0x351a35[_0x3da037(-_0x3058aa._0x43dc2c,-_0x3058aa._0xa35152,-_0x3058aa._0x22a158,-0x137)];throw new ProviderStreamEventError(_0x5c0268?.['message']??_0x411e03(_0x3058aa._0x4500c8,_0x3058aa._0x5cf831,0x15,0xd6),{'code':_0x5c0268?.[_0x411e03(_0x3058aa._0x2fd06a,-0x98,_0x3058aa._0x4c9eb8,_0x3058aa._0x4bdd0a)],'retryable':!![]});}}return[];}['finish'](){const _0x55ac6d={_0x275cf5:0x1be,_0x2d6646:0x164,_0x20b09b:0x173,_0x104787:0x13f,_0x14f7bb:0x227,_0x33d083:0x193,_0x188b72:0x1ed,_0x3a34a8:0x2b5,_0x449986:0x2e0,_0x17c805:0x2af,_0x5eedf4:0x278,_0x756274:0x218,_0x4c0f74:0x2a5,_0x3ac0ac:0x32a,_0x5ef224:0x1ee,_0x25bd61:0xa5,_0x263c90:0xc9,_0x4fedbd:0x1e4,_0x252d8e:0x1a6,_0x6b474a:0x2e0,_0x297978:0x221,_0x58701b:0x3a1,_0x44cbbc:0x217,_0x20e96f:0x2c9,_0x4b6bd7:0x254,_0x171365:0x2d4,_0xa7bcad:0x19f,_0x4aecda:0x217,_0x369ee2:0x245,_0x1db55d:0x17e,_0xed7e38:0x1bb,_0x42f3a1:0x1f2,_0x2c10a7:0x131,_0x31da9f:0x23c,_0x148e91:0x1c5,_0x75d5ec:0x262,_0x55b078:0x1da,_0x24c80e:0x296,_0x289590:0x2a6,_0x4c6a15:0x228,_0x3e7ad1:0x290,_0x448425:0x2ee,_0x21cd42:0x165,_0x2b4f0c:0x159,_0x56ee40:0x285,_0x3fb6f0:0x2ec,_0x322c1e:0x238,_0x514b24:0x37d,_0x16aa84:0xae,_0x32d774:0x35a,_0x24b365:0x2ea,_0x5f3837:0x156,_0x32826c:0xed,_0xd1b040:0x189,_0x1bcb73:0x2c0,_0x1c44e8:0x18c,_0x2ea5b2:0x1bc,_0x36e8b5:0x1e0},_0xc04fe1={_0x1d3e65:0x145,_0x5ecb2a:0xf0,_0x1e0dc1:0x31},_0x361475={_0x572d69:0x228},_0xa68396=Array['from'](this[_0x4511a2(-_0x55ac6d._0x275cf5,-_0x55ac6d._0x2d6646,-_0x55ac6d._0x20b09b,-_0x55ac6d._0x104787)][_0x4511a2(-_0x55ac6d._0x14f7bb,-0x228,-_0x55ac6d._0x33d083,-0x206)]())[_0x3bf0dd(_0x55ac6d._0x188b72,_0x55ac6d._0x3a34a8,0x26b,0x1a2)]((_0x15cba8,_0x5f33c2)=>_0x15cba8[_0x3bf0dd(0x2c4,0x227,0x31e,0x211)]-_0x5f33c2[_0x3bf0dd(0x2c4,0x38d,0x2b9,0x2e5)]),_0x536be2=[];function _0x4511a2(_0xefae2c,_0x165af0,_0x1f80d9,_0x38774a){return _0x3749d0(_0xefae2c-0x193,_0x165af0-0x108,_0x1f80d9- -_0x361475._0x572d69,_0x38774a);}function _0x3bf0dd(_0x14df19,_0x32bb82,_0xccd9bb,_0x253168){return _0x5da579(_0x14df19- -_0xc04fe1._0x1d3e65,_0x32bb82-_0xc04fe1._0x5ecb2a,_0xccd9bb-_0xc04fe1._0x1e0dc1,_0xccd9bb);}for(const _0x3ffc65 of _0xa68396){if(_0x3ffc65['kind']===_0x3bf0dd(_0x55ac6d._0x449986,_0x55ac6d._0x17c805,_0x55ac6d._0x5eedf4,0x2a7)){_0x3ffc65[_0x3bf0dd(_0x55ac6d._0x449986,_0x55ac6d._0x756274,_0x55ac6d._0x4c0f74,_0x55ac6d._0x3ac0ac)][_0x3bf0dd(0x171,_0x55ac6d._0x5ef224,_0x55ac6d._0x25bd61,_0x55ac6d._0x263c90)]>0x0&&_0x536be2[_0x3bf0dd(_0x55ac6d._0x4fedbd,_0x55ac6d._0x252d8e,0x1aa,0x22b)]({'type':_0x3bf0dd(_0x55ac6d._0x6b474a,_0x55ac6d._0x297978,_0x55ac6d._0x58701b,_0x55ac6d._0x44cbbc),'text':_0x3ffc65[_0x3bf0dd(0x2e0,0x2b1,_0x55ac6d._0x20e96f,0x39e)]});continue;}if(_0x3ffc65[_0x4511a2(-0x249,-0x205,-0x176,-0xf6)]===_0x4511a2(-_0x55ac6d._0x4b6bd7,-_0x55ac6d._0x171365,-0x245,-_0x55ac6d._0xa7bcad)){_0x536be2[_0x3bf0dd(0x1e4,0x13c,_0x55ac6d._0x4aecda,0x168)]({'type':_0x4511a2(-0x1e6,-0x2af,-_0x55ac6d._0x369ee2,-_0x55ac6d._0x1db55d),'thinking':_0x3ffc65[_0x4511a2(-_0x55ac6d._0xed7e38,-0x1de,-0x245,-0x315)],'signature':_0x3ffc65[_0x3bf0dd(_0x55ac6d._0x42f3a1,0x261,_0x55ac6d._0x2c10a7,_0x55ac6d._0x31da9f)]});continue;}if(_0x3ffc65[_0x3bf0dd(0x252,0x18f,_0x55ac6d._0x148e91,0x214)]===_0x4511a2(-0xb7,-0x93,-0x122,-0x8c)){_0x536be2[_0x3bf0dd(_0x55ac6d._0x4fedbd,_0x55ac6d._0x75d5ec,_0x55ac6d._0x55b078,_0x55ac6d._0x24c80e)]({'type':_0x3bf0dd(_0x55ac6d._0x289590,_0x55ac6d._0x4c6a15,0x304,0x27e),'data':_0x3ffc65[_0x3bf0dd(_0x55ac6d._0x3e7ad1,_0x55ac6d._0x448425,0x23a,0x335)]});continue;}_0x536be2[_0x3bf0dd(0x1e4,0x1c0,_0x55ac6d._0x21cd42,_0x55ac6d._0x2b4f0c)]({'type':_0x3bf0dd(0x27c,0x2ed,0x1ab,_0x55ac6d._0x56ee40),'id':_0x3ffc65['id'],'name':_0x3ffc65['name'],'input':parseToolInput(_0x3ffc65[_0x3bf0dd(_0x55ac6d._0x3fb6f0,_0x55ac6d._0x322c1e,_0x55ac6d._0x514b24,0x242)][_0x3bf0dd(0x171,_0x55ac6d._0x16aa84,0x192,0xba)]>0x0?_0x3ffc65[_0x3bf0dd(0x2ec,0x226,0x35e,_0x55ac6d._0x32d774)]:'{}')});}return parseAnthropicResponse({'id':this[_0x3bf0dd(0x29e,0x2a1,_0x55ac6d._0x24b365,0x26a)],'type':_0x4511a2(-0x16e,-0xb7,-0x14a,-0x1b4),'role':'assistant','content':_0x536be2,'stop_reason':this[_0x4511a2(-_0x55ac6d._0x5f3837,-_0x55ac6d._0x32826c,-0xec,-_0x55ac6d._0xd1b040)],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x3bf0dd(0x2c1,0x30c,0x33d,_0x55ac6d._0x1bcb73)],'cache_read_input_tokens':this['cacheReadInputTokens'],'cache_creation_input_tokens':this[_0x3bf0dd(0x151,_0x55ac6d._0x1c44e8,0x219,0x140)]}},this[_0x3bf0dd(_0x55ac6d._0x2ea5b2,0x1de,0x259,_0x55ac6d._0x36e8b5)]);}};function createAnthropicSurfaces(){const _0x32ec9f={_0x17f61d:0x23a,_0xbc3837:0x175,_0x509b20:0x39e},_0x396af3={_0x33f9b2:0x2f},_0x1ca741={_0x2cd98e:0x1db};function _0x1589e3(_0x55f6a2,_0x39d5eb,_0xafd6cf,_0x3aecd3){return _0x5da579(_0x55f6a2- -_0x1ca741._0x2cd98e,_0x39d5eb-0x1a3,_0xafd6cf-0x152,_0x39d5eb);}function _0x545ddb(_0x2fdab5,_0x29656f,_0x329bb1,_0x51d622){return _0x5da579(_0x51d622- -_0x396af3._0x33f9b2,_0x29656f-0x1a0,_0x329bb1-0xd2,_0x329bb1);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x1589e3(_0x32ec9f._0x17f61d,_0x32ec9f._0xbc3837,0x300,0x25a),'createRequest'(_0x4fa917){return createAnthropicRequest(_0x4fa917,![]);},'parseResponse'(_0x4a9a7b,_0x57ef5d){return parseAnthropicResponse(_0x4a9a7b,_0x57ef5d);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x545ddb(0x320,_0x32ec9f._0x509b20,0x307,0x3b5),'createRequest'(_0x2216c1){return createAnthropicRequest(_0x2216c1,!![]);},'createStreamParser'(_0x56fad4){return new AnthropicMessagesStreamParser(_0x56fad4);}}];}var StaticModelSurfaceRouter=class{[_0x5da579(0x2a3,0x205,0x2e6,0x281)];['streamSurface'];constructor(_0x2a7429){const _0x3725c9={_0x590936:0x3a8,_0x530070:0x2d4,_0x3cbcee:0x269,_0x5433f2:0x134,_0x15fd4f:0x13b,_0x3761c2:0x18b},_0x5ac058={_0x22a5c4:0x1de};function _0x5b630e(_0x8df666,_0x4ea3e9,_0x112202,_0x48ec4d){return _0x3749d0(_0x8df666-0x1e2,_0x4ea3e9-0x155,_0x112202- -0x292,_0x8df666);}function _0x7a7175(_0x10d441,_0x1de1c1,_0x274f91,_0x3fe446){return _0x3749d0(_0x10d441-_0x5ac058._0x22a5c4,_0x1de1c1-0x58,_0x1de1c1-0x8e,_0x10d441);}this[_0x5b630e(-_0x3725c9._0x590936,-0x37f,-_0x3725c9._0x530070,-_0x3725c9._0x3cbcee)]=_0x2a7429['complete'],this['streamSurface']=_0x2a7429[_0x7a7175(_0x3725c9._0x5433f2,_0x3725c9._0x15fd4f,0xab,_0x3725c9._0x3761c2)];}[_0x5da579(0x370,0x393,0x415,0x2cf)](_0x535ae7,_0x155f57){const _0x338ab6={_0x44007c:0x48e,_0x4cfd41:0x3b,_0x5632d4:0xdc},_0x5e3172={_0x2589ba:0x1ec,_0x366a55:0x444},_0x5901b8={_0x4fec42:0x37f};function _0x12cdd8(_0x39e652,_0xb683c3,_0x321caf,_0x33b741){return _0x5da579(_0x33b741- -_0x5901b8._0x4fec42,_0xb683c3-0xcd,_0x321caf-0x106,_0x39e652);}function _0x562245(_0x4ec91d,_0x8e5901,_0x2d02f2,_0x598927){return _0x3749d0(_0x4ec91d-_0x5e3172._0x2589ba,_0x8e5901-0x144,_0x598927-_0x5e3172._0x366a55,_0x2d02f2);}return _0x155f57['mode']===_0x562245(0x4a9,_0x338ab6._0x44007c,0x595,0x4f1)?this['streamSurface']:this[_0x12cdd8(-_0x338ab6._0x4cfd41,-0x13b,-0x62,-_0x338ab6._0x5632d4)];}};function trimTrailingSlashes(_0x3ac2ec){const _0x4c08df={_0x1e3603:0x2f8,_0x48a956:0x29e};function _0x97d4d9(_0x44f6f9,_0x23fe25,_0x4a0e0b,_0x47936f){return _0x5da579(_0x4a0e0b- -0x55e,_0x23fe25-0x9b,_0x4a0e0b-0x132,_0x47936f);}return _0x3ac2ec[_0x97d4d9(-_0x4c08df._0x1e3603,-0x329,-_0x4c08df._0x48a956,-0x318)](/\/+$/,'');}function resolveApiCredential(_0x269ebb,_0x166149){const _0x127703={_0xf1655d:0x8,_0x1d5328:0x45,_0x21c9dd:0xbf,_0x6f6674:0x3f,_0x4ed078:0xdf},_0x48fdff={_0xcd54ef:0x58},_0x5a77ac={_0x12e189:0x3ee};if(_0x166149?.[_0x315321(0x34,-0xcd,-0x3f,_0x127703._0xf1655d)])return _0x166149[_0x315321(-_0x127703._0x1d5328,-_0x127703._0x21c9dd,-_0x127703._0x6f6674,-0x56)];function _0x315321(_0x58e528,_0x53a319,_0xace5c3,_0x327a31){return _0x5da579(_0xace5c3- -_0x5a77ac._0x12e189,_0x53a319-0x1de,_0xace5c3-0x188,_0x58e528);}function _0x416ef2(_0x4046dd,_0x504dd0,_0x55d48c,_0x4a8907){return _0x5da579(_0x4046dd-0xc,_0x504dd0-0xb4,_0x55d48c-_0x48fdff._0xcd54ef,_0x4a8907);}if(!_0x269ebb)return void 0x0;return{'kind':_0x315321(-0x101,-0x1e,-_0x127703._0x4ed078,-0x3b),'value':_0x269ebb};}function resolveSessionBaseUrl(_0x42f41b,_0x46baf1){const _0x952ccc={_0x264982:0x2fb,_0x419880:0xfb};function _0x563813(_0x4193a2,_0x363a8e,_0x54cc2d,_0x231e9d){return _0x5da579(_0x363a8e- -_0x952ccc._0x264982,_0x363a8e-0x1c6,_0x54cc2d-_0x952ccc._0x419880,_0x231e9d);}return trimTrailingSlashes(_0x46baf1?.[_0x563813(0x5c,0x127,0x76,0x160)]?.['api']??_0x42f41b);}function toErrorMessage(_0x4d4675){const _0x289cbc={_0x3ba81f:0x97,_0x4028fb:0x83,_0x3d0586:0xc4},_0x14322c={_0x28ba2c:0x1d7,_0x474407:0x2f};function _0x1f7b05(_0x178a87,_0x523e1a,_0x274375,_0x56f7b3){return _0x3749d0(_0x178a87-0x1f3,_0x523e1a-_0x14322c._0x28ba2c,_0x56f7b3- -_0x14322c._0x474407,_0x274375);}if(_0x4d4675 instanceof Error&&_0x4d4675['message']['length']>0x0)return _0x4d4675[_0x1f7b05(_0x289cbc._0x3ba81f,_0x289cbc._0x4028fb,_0x289cbc._0x3d0586,0xaf)];return'WebSocket\x20request\x20failed';}function createDefaultWebSocketFactory(){const _0x533a06={_0x33bd42:0xa8,_0x273e9a:0x6d,_0x464786:0x8d};return({headers:_0x4c280e,url:_0x474c58})=>{const _0x373519={_0x458e87:0x33d},_0x283c14=globalThis[_0x2a9228(-_0x533a06._0x33bd42,-_0x533a06._0x273e9a,-_0x533a06._0x464786,-0x138)];function _0x2a9228(_0x36d54f,_0x429a48,_0x2e772e,_0x150d22){return _0x1568(_0x150d22- -_0x373519._0x458e87,_0x429a48);}return new _0x283c14(_0x474c58,{'headers':_0x4c280e,'protocols':[]});};}function _0x4b33(){const _0x1b6249=['BwfWqxbPrxjYB3i','C3rYzwfTvMLHuM91DgvY','yMfZzvvYBa','zMLUza','AgvHzgvYCW','y2fSBf9Pza','CMvZCg9UC2vZugf0Aa','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','Dg9VBf9Yzxn1Bhq','BgfZDfjLC3bVBNnLswq','y29UDgvUDc10ExbL','B3v0Chv0sw5KzxG','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','Aw5WDxruB2TLBNm','Aw5WDxrFDg9Rzw5Z','y29UDgvUDf9PBMrLEa','CMvZCg9UC2vuzxH0ugfYDhm','CgfYDgLHBf9QC29U','ChvZAa','yxbWBgLJyxrPB24VANnVBG','qMfZAa','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','zNjVBuvUDhjPzxm','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','zxzLBNq','C29YDa','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','D2vIC29JA2v0','B3v0Chv0x2LUzgv4','C2LNBMf0DxjL','Aw5WDxrFDgv4Da','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','yw50AhjVCgLJlw1LC3nHz2vZ','B3bLBMfPlxjLC3bVBNnLCY13CW','z2v0t3bLBKfPrgvSzwDHDgu','Dg9VBf91C2vFAwq','y3jLyxrLsgvHzgvYCW','y29UDgvUDf9KzwX0yq','B3bLBMfPlxjLC3bVBNnLCW','D2vIu29JA2v0rMfJDg9YEq','BM93','D2fPDezVCLjLDhj5','l3jLC3bVBNnLCW','B3bLBMfPx3jLyxnVBMLUzW','zwrPDg9YvMvYC2LVBG','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','z2L0AhvI','DhjPBvn0yxj0','DgvSzw1LDhj5','D3m6','B3bLBKfPrgvSzwDHDgu','CMvHC29UAw5NugfYDhm','y29UBMvJDf9MywLSzwq','Bwf4x291Dhb1Df90B2TLBNm','CMvZCg9UC2vtB2nRzxrtDhjLyw0','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','CMvHC29UAw5NsxrLBxm','Ahr0Cf9ZDgf0Dxm','DNnJB2rLlZeUmta2lJe','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','Bwf4t3v0Chv0','AxnbCNjHEq','zw5HyMXLza','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','ywnJzxb0','y29UDgv4DfDPBMrVDW','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','zgf0ytO','zM9Yy2vgDwXSuMvWBgf5','zgvJB2rL','AM9PBG','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','y29TCgXLDgvwAwfsB3v0zxi','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','zMLUAxnO','z2v0qw50AhjVCgLJrgvSzwDHDgu','CMvXDwvZDhm','Dg9VBf91C2vFzgvSDge','zNvUy3rPB25Fy2fSBa','qMvHCMvYia','C2vZC2LVBI10B2TLBG','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','BhmGlwXH','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','C2vSzwn0u3vYzMfJzq','Dg9VBenHBgXpCMrLCG','BgLTAxrZ','CMvZB2X2zxi','oNjLyxnVBMLUzZOW','y29UBMvJDgLUzW','DgHPBMTPBMDFzgvSDge','zw5Kx3r1CM4','yxjNDw1LBNrZ','u3vYzMfJzsa','DMfSDwvZ','C29JA2v0','Aw52ywXPzgf0zq','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','CMvHC29UAw5N','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','Aw5KzxHpzG','y2XVC2u','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','mJz0ALLSvMS','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','DxnLCI12AxnPyMXL','C3LZDgvT','zw5JCNLWDgvKx2nVBNrLBNq','Aw5PDgLHBev2zw50','yNvKz2v0vg9Rzw5Z','mtuYugvXEKH1','ywnJzxnZvg9Rzw4','CMv0CNKTywz0zxi','C3rHDhvZ','yxnZAxn0yw50','y29UC3vTzvnZzuv2zw50','C3rYzwfT','ChjVEhK','B3v0Chv0','o2jHC2u2ncW','zgLZywjSzwq','A2LUza','CMvHza','DxnLCG','yMXVy2TZ','zMLUAxnOx3jLyxnVBG','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','C2vZC2LVBK1HBMfNzxi','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','Dg9VBf9JywXSCW','C3rYAw5N','Dg9VBenHBgXZqNLjBMrLEa','mJaYmY0WnI0Wmq','y2HHDenVBxbSzxrPB25Zugf0Aa','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','C3rYzwfTshr0Cfn1CMzHy2u','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','DgvZDa','BMfTzq','BwvZC2fNzv9ZDgfYDa','ywrKrxzLBNrmAxn0zw5LCG','C29Tzq','CMvZB2X2zunYzwrLBNrPywW','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','y3jLzgvUDgLHBa','z2v0tw9KzwXZ','CM91DgvY','y29UDgvUDf9IBg9JA19ZDgfYDa','y2HHDfn0CMvHBq','DxnLC1jLC3bVBNnLC0fWAq','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','CMvXDwvZDe11Dgf0B3jZ','yw50AhjVCgLJlxzLCNnPB24','CMvZB2X2zq','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','Dg9VBc1JywXSlq','C3vTBwfYEv9PBMrLEa','mty1mdLtz0jQtLi','C3vWCg9YDgvKrw5KCg9PBNrZ','CMv0CNLHyMXL','ANnVBG','Dg9VBf91C2u','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','BwvZC2fNzq','ChjVDMLKzxjtDgf0zq','y2fWywjSzv9LBMrWB2LUDhm','C2LNBMfS','yxnZAxn0yw50lq','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','ChjLCgfYzunOyxrszxf1zxn0','Aw5JBhvKzunVBNrLBNruExbL','Cgf0Aa','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','CMvZCg9UC2u','CMvHC29U','ChjVDMLKzxjFCMv0CNK','C2L6zq','y29TCgXLDgvwAwftDxjMywnL','r0vu','C2vUza','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','zgf0yq','DNnJB2rLlZeUmta0lJi','AgfZ','C3rYAw5NAwz5','AxngAw5PDgu','DhjHBNnWB3j0','y29UC3vTzuv2zw50','CMvTB3zLrxzLBNrmAxn0zw5LCG','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','z2v0u3vYzMfJzq','Dg9VBfvZzvn0yxj0rw1PDhrLza','BwvZC2fNzv9KzwX0yq','CMvZCg9UC2vtB2nRzxq','BwvZC2fNzuLK','Ahr0Cc1ZC2u','mJm5mhjuvvLqzG','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','y2fUy2vS','y29Kzq','y29UDgvUDa','zNvUy3rPB24','CMvKywn0zwrFDgHPBMTPBMC','Ec1HCgKTA2v5','C2vZC2LVBKLK','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','DhjPBq','rgLYzwn0igfUC3DLCJOG','Bw9KzwW','y2fWywjPBgL0AwvZ','CMvZCg9UC2uUy29TCgXLDgvK','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','CgfYC2vszxnWB25Zzq','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','z3b0ltrV','zMv0y2HjBxbS','t1bftG','C3vTBwfYEv90zxH0','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','C291CMnL','ue9tva','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','BwvKAwfFDhLWzq','Aw1Hz2u','mJjsDurZue8','ChjVDg9JB2W','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C3rHDhvZvgv4Da','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B3v0Chv0vg9Rzw5Z','zwzMB3j0','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','Aw5KzxG','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','nJu2mZLfzxzzChC','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','C2LNBMf0DxjLx2rLBhrH','yMfZzty0','BwvZC2fNzxm','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','C3vWCg9YDgvKx2vUzhbVAw50CW','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','Ahr0Cc1QC29U','DMfSDwu','B3v0Chv0x3rVA2vUCW','CgvUzgLUzW','v2vIu29JA2v0','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','yxv0BW','CMvHzhLtDgf0zq','y2HHDgnTCgWT','yM9KEq','C3bSAwnL','Bwv0ywrHDge','C3rVCfjLyxnVBG','zw5KCg9PBNrZ','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','C3vYzMfJzq','Dgv4Da','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','r2L0shvIiefqssbLCNjVCIa','ywjVCNq','Dg9tDhjPBMC','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','zxjYB3i','Dg9VBhm','C2vZC2LVBG','zMLSDgvY','Aw5WDxrkC29U','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','Dgv4Dc9LDMvUDc1ZDhjLyw0','Aw1Hz2vFDxjS','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','C2vUzfDPDgHszxrYAwvZ','Aw5JBhvKzxm','yMvHCMvY','yxbP','y2fSBeLKvg9pDxrWDxrjBMrLEa','yxbPs2v5','DxnHz2u','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','ChjVDMLKzxjbzgfWDgvY','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','CMvZzxq','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','y29UDgvUDf9IBg9JAW','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','y2fJAgvszwfKsw5WDxruB2TLBNm','AxrLBq','yw50AhjVCgLJrgvSzwDHDgu','Dg9mB3DLCKnHC2u','D3nZoG','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','DxrMltG','zw5JCNLWDgvKq29UDgvUDa','y29TCgXLDgvtDxjMywnL','t3bLBKfjiefqssbLCNjVCIa','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','B3v0Chv0sw5KzxHuB0nHBgXjza','nti1mde4mhfrrezJqW','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','CMvZCc0','Aw5WDxq','y29TCgXLDgvK','CgfYC2u','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','B2jQzwn0','y29TCgXLDgLVBL90B2TLBNm','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','mtuZodqWtgDXEMro','Bwf4x3rVA2vUCW','Dg9VBenHBgXZ','BgvUz3rO','zMv0y2G','CMvZCg9UC2uUy3jLyxrL','AgvHzgvYuMvZB2X2zxi','CMvZCg9UC2vtDhjLyw0','CMvHC29UAw5Nx3rLEhq','y29UC3vTzvDLyLnVy2TLDev2zw50','B3bLBG','yxv0AfnJAgvTzq','y2HHDenVBxbSzxrL','CMvWBgfJzq','ChjLDMLVDxnszxnWB25ZzuLK','ChjVBxb0x3rVA2vUCW','ywjVCNrLza','zg9Uzq','w0rptKvD','CMvMDxnHBa','zMLUywXszxnWB25Zzq','DgHPBMTPBMC','z2v0uMv0CNLezwXHEu1Z','y29UDgv4Df9Szw5NDgG','Aw5WDxrFANnVBL9KzwX0yq','C2XPy2u','nZi1m1rUzwPxvG','yxbWBhLnB2rLBerLzMf1BhrZ','l2nOyxqVy29TCgXLDgLVBNm','Bwf4vg9Rzw5Z','C3rYzwfTq2HHDenVBxbSzxrPB25Zv2L0AfnLC3nPB25szwzYzxnO','CM9Szq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','z2L0AhvIqxbPvxjS','ywDLBNq','zgvSDge','C3vYzMfJzxm','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','BwvZC2fNzuLUzgv4','B2f1DgGTDg9Rzw4','zgvSzxrL','Ahr0Chm6','yw50AhjVCgLJx3rOAw5RAw5N','B25qCM92AwrLCLjLDhj5','y3jLyxrLuMvXDwvZDa','yxv0Ag9YAxPHDgLVBG','DxjS','Bw9KzwXfBMrWB2LUDenHy2HL','l21VzgvSCW','mJeWntm1nxHZqKvLyq','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','CMvZCg9UC2vjza','ChjVDg9JB2XwzxjZAw9U','yNvPBgrqyxj0AwfSt3v0Chv0','y2f0y2G','AxrLBv9Pza','C2HVDwXKuMv0CNLszxnWB25Zzq','Dg9bCgLfCNjVCG','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','zw50CMLLCW','DhLWzq','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','B3v0Chv0x3rLEhq','sw52ywXPzcbYzxf1zxn0oIa','C3rYzwfTvMLHu3vYzMfJzq','C3bSAxq','y2fJAgvK','C3rHCNrZv2L0Aa','BwfW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','C2v0','Dgv4Dej5sw5KzxG','DMLZAwjPBgL0Eq','y2HHDgnTCgW','y3jLyxrLu3rYzwfTugfYC2vY','CMvHC29UAw5Nx3rVA2vUCW','Dgv4DfbHCNrZ','zgLZCgXHEq','CMvXDwvZDa','zwrPDg9YugX1z2LUvMvYC2LVBG','mZq0n09tC3jVqW','y29TCgXLDgu','zxzLBNq6','Bwf4','z2v0','zNjVBq','DgHLBG','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','Bwv0Ag9K','C3vTBwfYEq','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','Aw5WDxrFC2nOzw1H','yxbPlwTLEq','AxneB25L','C3vTBwfYEuj5sw5KzxG','BxnNlq','otzWsufrD28','BNvTyMvY','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','CMvZB2X2zujHC2vvCMW'];_0x4b33=function(){return _0x1b6249;};return _0x4b33();}async function*iterateSseEvents(_0x717510,_0x499920){const _0x536c64={_0x333da2:0xd7,_0x7403e0:0x157,_0x50ffaa:0x11,_0x2a333e:0xad,_0x77b100:0x46,_0x43a496:0x1cf,_0x3b7b07:0x2f3,_0x15301e:0x29b,_0x18f83b:0x2a,_0x47ed31:0x5,_0xf84ba5:0xdb,_0x4f85eb:0xf,_0x422678:0x18f,_0x422409:0x17f,_0x506791:0x1cf,_0x53e2b0:0x1e4,_0x4deb22:0x10,_0x1dc90d:0x23a,_0x24366f:0x3b5,_0x39c013:0x2c1,_0x384090:0x16e,_0x1d247b:0x1d5,_0x2d8ba2:0x1b9},_0x561407={_0x39cdc2:0x398,_0x1f6ce2:0x2c8,_0x3b826a:0x33d,_0x39380c:0x2cd,_0x5791f2:0x22c},_0x2dac42={_0x2f3035:0x1ac,_0x1d2a9b:0x19d},_0x219a10={_0x242546:0xfd},_0x25cef3=_0x717510[_0x1066d0(0x9c,_0x536c64._0x333da2,_0x536c64._0x7403e0,0xc2)]?.['getReader']();if(!_0x25cef3)return;function _0x414e13(_0x5ea070,_0x542c39,_0x4b7269,_0x4d6a61){return _0x5da579(_0x4d6a61- -_0x219a10._0x242546,_0x542c39-0x18c,_0x4b7269-0xab,_0x542c39);}function _0x1066d0(_0x1617f9,_0x41694b,_0x441d64,_0x45980f){return _0x3749d0(_0x1617f9-_0x2dac42._0x2f3035,_0x41694b-_0x2dac42._0x1d2a9b,_0x45980f- -0x77,_0x1617f9);}const _0x7cde89=new TextDecoder(_0x1066d0(_0x536c64._0x50ffaa,-_0x536c64._0x2a333e,-_0x536c64._0x77b100,-0xbb));let _0x3853e3='';const _0x1a317a=addAbortListener(_0x499920,()=>{const _0x36e551={_0x373c8f:0x17a,_0x318fe4:0x462},_0x18f73b={_0x4b1a5f:0x22};function _0x480d88(_0x4269cb,_0x2d3a38,_0x331716,_0x29ce4a){return _0x414e13(_0x4269cb-0x13b,_0x29ce4a,_0x331716-0xa7,_0x2d3a38- -_0x18f73b._0x4b1a5f);}function _0x2283cc(_0x27f97f,_0x125655,_0x40cecf,_0x27d7fc){return _0x414e13(_0x27f97f-_0x36e551._0x373c8f,_0x125655,_0x40cecf-0x45,_0x40cecf- -_0x36e551._0x318fe4);}void _0x25cef3[_0x480d88(_0x561407._0x39cdc2,_0x561407._0x1f6ce2,0x235,0x313)](toAbortError(_0x499920?.[_0x480d88(0x356,0x2af,0x2f7,_0x561407._0x3b826a)]))[_0x2283cc(-_0x561407._0x39380c,-_0x561407._0x5791f2,-0x276,-0x300)](()=>{});});try{while(!![]){throwIfAborted(_0x499920);const {value:_0x5e11c2,done:_0x4eeaf5}=await _0x25cef3[_0x414e13(0x229,_0x536c64._0x43a496,_0x536c64._0x3b7b07,_0x536c64._0x15301e)]();throwIfAborted(_0x499920);if(_0x4eeaf5)break;_0x3853e3+=_0x7cde89[_0x1066d0(0x27,_0x536c64._0x77b100,-_0x536c64._0x18f83b,_0x536c64._0x47ed31)](_0x5e11c2,{'stream':!![]});while(!![]){const _0x5702bd=_0x3853e3[_0x1066d0(0xf2,_0x536c64._0xf84ba5,_0x536c64._0x4f85eb,0x25)]('\x0a\x0a');if(_0x5702bd===-0x1)break;const _0x443b9c=_0x3853e3[_0x414e13(_0x536c64._0x422678,0x13c,_0x536c64._0x422409,_0x536c64._0x506791)](0x0,_0x5702bd);_0x3853e3=_0x3853e3[_0x414e13(_0x536c64._0x53e2b0,0x105,0x255,_0x536c64._0x43a496)](_0x5702bd+0x2),_0x443b9c['trim']()[_0x1066d0(_0x536c64._0x4deb22,-0xa3,-0xa6,-0xa6)]>0x0&&(yield _0x443b9c);}}_0x3853e3+=_0x7cde89['decode'](),throwIfAborted(_0x499920),_0x3853e3[_0x414e13(_0x536c64._0x1dc90d,_0x536c64._0x24366f,_0x536c64._0x39c013,0x2f2)]()[_0x414e13(_0x536c64._0x384090,0x129,_0x536c64._0x1d247b,_0x536c64._0x2d8ba2)]>0x0&&(yield _0x3853e3);}finally{_0x1a317a();}}async function waitForWebSocketOpen(_0x267197,_0x336c30){const _0x141f9e={_0x5b9735:0xb,_0x490115:0x7e,_0x31e30f:0x28},_0x39e9ef={_0x56d155:0xcc,_0x1461bf:0x195,_0x36bd34:0x1ba,_0x38abc8:0x196,_0x562e5d:0x243,_0x32eece:0x73,_0x10d081:0xd5,_0x31f23a:0x2b3,_0x2fce6d:0x31f,_0x5ed87f:0x1eb,_0x327b32:0x1d8,_0x42a457:0x231,_0x2f070e:0x27d,_0x149003:0x229,_0x334d39:0x1,_0x511257:0x76},_0x50ec7c={_0x3cb462:0x156,_0x47f669:0x14a,_0x2968a0:0x10a,_0x37f717:0x127,_0x5e456c:0x45},_0x40f749={_0x52e306:0x73,_0x3b47ee:0xeb},_0x1b30b2={_0x2f8c66:0x58b,_0xfe9ecf:0x5b0,_0x192090:0x521,_0x5df443:0x493,_0x4cc7c1:0x4cb},_0x17e721={_0xf89c13:0x63};function _0x4268db(_0x4d1ec0,_0x7a0798,_0xd0ed09,_0x3eadcf){return _0x3749d0(_0x4d1ec0-0xf6,_0x7a0798-0xca,_0x7a0798- -0x11f,_0x3eadcf);}if(_0x267197['readyState']===WebSocket[_0x4268db(-0x9d,-_0x141f9e._0x5b9735,-_0x141f9e._0x490115,_0x141f9e._0x31e30f)]){throwIfAborted(_0x336c30);return;}throwIfAborted(_0x336c30),await new Promise((_0x40fcc4,_0x193ef8)=>{const _0x155c4d={_0x2052bf:0x177,_0x3c5d2f:0x1b3,_0x203319:0x232,_0x559577:0x26d,_0x307d8f:0x58f,_0x17852e:0x1d8},_0x5070e3={_0xbc0d93:0x3c7},_0x7d459={_0x4046c5:0x27c},_0x5306b9={_0x1bc42:0x36d},_0x473053=()=>{_0x5b2826(),_0x40fcc4();},_0x1922ce=_0x411ae2=>{_0x5b2826(),_0x193ef8(new Error(_0x411ae2['message']||'WebSocket\x20request\x20failed'));};function _0x44f1a2(_0x350f9b,_0x47b14b,_0xd31f89,_0x2d407b){return _0x4268db(_0x350f9b-0x114,_0x47b14b-0x28a,_0xd31f89-_0x17e721._0xf89c13,_0xd31f89);}const _0x49040e=_0x294414=>{const _0x3c02a8={_0x16820f:0x1ea};function _0x1354b2(_0x34c6c8,_0x4436b1,_0x514afb,_0x4b2656){return _0x1568(_0x4b2656-_0x5306b9._0x1bc42,_0x34c6c8);}function _0x3347c8(_0x172737,_0x286675,_0x1a3241,_0x53103e){return _0x1568(_0x172737-_0x3c02a8._0x16820f,_0x53103e);}_0x5b2826();const _0x45aa91=_0x294414;_0x193ef8(new Error(_0x45aa91[_0x1354b2(0x553,_0x1b30b2._0x2f8c66,_0x1b30b2._0xfe9ecf,0x527)]||_0x1354b2(_0x1b30b2._0x192090,_0x1b30b2._0x5df443,_0x1b30b2._0x4cc7c1,0x51b)));};function _0x5ec5b1(_0x25c5fe,_0x465d42,_0x59d094,_0x36bd4a){return _0x4268db(_0x25c5fe-0xa9,_0x25c5fe- -_0x40f749._0x52e306,_0x59d094-_0x40f749._0x3b47ee,_0x36bd4a);}const _0x1e2315=()=>{const _0x6e1361={_0x44ea9d:0x27};function _0x497f8a(_0x3302b6,_0x70b905,_0x5b521a,_0x2fbf27){return _0x1568(_0x2fbf27- -_0x6e1361._0x44ea9d,_0x3302b6);}function _0x426b02(_0x1a7d07,_0x28f676,_0x74b3c8,_0x19cea6){return _0x1568(_0x19cea6- -_0x7d459._0x4046c5,_0x1a7d07);}_0x5b2826(),_0x267197['readyState']===WebSocket[_0x426b02(0x18,-_0x50ec7c._0x3cb462,0x2,-0x97)]&&_0x267197[_0x426b02(-_0x50ec7c._0x47f669,-0xe5,-0x15e,-0x10e)](0x3e8,_0x497f8a(_0x50ec7c._0x2968a0,_0x50ec7c._0x37f717,0xcf,0x88)),_0x193ef8(toAbortError(_0x336c30?.[_0x426b02(-_0x50ec7c._0x5e456c,-0xe6,-0x108,-0xc2)]));},_0x5b2826=()=>{_0x267197[_0x2c222f(0x16f,0x1d1,0x232,_0x155c4d._0x2052bf)](_0x2c222f(0x11b,_0x155c4d._0x3c5d2f,0x113,0x85),_0x473053),_0x267197[_0x2c222f(0x2f3,0x2f5,_0x155c4d._0x203319,_0x155c4d._0x559577)]('error',_0x1922ce);function _0x2c222f(_0xe6e750,_0x5b9095,_0x2f467a,_0x515eac){return _0x1568(_0x2f467a-0x6a,_0xe6e750);}function _0x1a3cd9(_0x128208,_0x553f6e,_0x4174de,_0x35bee2){return _0x1568(_0x553f6e-_0x5070e3._0xbc0d93,_0x128208);}_0x267197[_0x1a3cd9(0x60b,_0x155c4d._0x307d8f,0x527,0x649)](_0x2c222f(0x14e,0x270,_0x155c4d._0x17852e,0x19f),_0x49040e),_0x336c30?.['removeEventListener']('abort',_0x1e2315);};_0x267197[_0x5ec5b1(-_0x39e9ef._0x56d155,-_0x39e9ef._0x1461bf,-0x89,-0x64)](_0x5ec5b1(-_0x39e9ef._0x36bd34,-_0x39e9ef._0x38abc8,-0x104,-_0x39e9ef._0x562e5d),_0x473053),_0x267197[_0x5ec5b1(-0xcc,-_0x39e9ef._0x32eece,-_0x39e9ef._0x10d081,-0x7)](_0x44f1a2(0x387,_0x39e9ef._0x31f23a,_0x39e9ef._0x2fce6d,_0x39e9ef._0x5ed87f),_0x1922ce),_0x267197[_0x44f1a2(_0x39e9ef._0x327b32,_0x39e9ef._0x42a457,_0x39e9ef._0x2f070e,_0x39e9ef._0x149003)]('close',_0x49040e),_0x336c30?.['addEventListener'](_0x5ec5b1(-0x4f,-_0x39e9ef._0x334d39,_0x39e9ef._0x511257,-0x57),_0x1e2315,{'once':!![]});});}function iterateWebSocketMessages(_0x44fb09,_0x383111){const _0x15f264={_0x233a45:0x138,_0x49e662:0x142,_0x41aba8:0x234,_0x521eca:0x1c6,_0x1b3a81:0x1f4,_0x108e85:0x273,_0x1b6ec7:0x14c,_0x1c0b5a:0x16d,_0x4d8eaa:0x1fa},_0x28382f={_0x5691c7:0x15d,_0x21385f:0x21e,_0x3d1b9c:0x218,_0x383b6d:0x217,_0x2f1a01:0x2f0,_0x320cd1:0x234,_0x4ce57d:0x156,_0x5ae8ff:0x206,_0x342313:0x1be},_0x5d2e65={_0x3df1e7:0x1bc},_0x38f634={_0x6eb6b3:0x8b},_0x4a41c6={_0x8e875:0x19c,_0x16e1db:0x19e},_0x56e3c7={_0x5af0b9:0x39,_0x43eb16:0x46,_0x1e9704:0x59,_0x1007b8:0x21,_0x5f3ff0:0x2b},_0x15cab8={_0xec66b6:0x50f,_0x3591f1:0x39b,_0x10915f:0x2af,_0x3f4958:0x369},_0x415ab2={_0x35452c:0x14c},_0x297710={_0x418031:0x76,_0x445f94:0x8,_0xc0d276:0x8},_0x1c1196={_0x5c843b:0x23a,_0x5a814b:0x1bf,_0xefbd60:0x2df,_0x361e4b:0x52f,_0x579b5d:0x4eb},_0x16b719=[];let _0xbee966=![],_0x17a23d,_0x2faf04;const _0x50f113=_0x4ef1bb=>{const _0x36ea88={_0x1509b5:0x34d},_0x19e67b=_0x4ef1bb;function _0x5b53c0(_0x2bebcc,_0x17f609,_0x68d091,_0x4caf92){return _0x1568(_0x2bebcc-_0x36ea88._0x1509b5,_0x68d091);}function _0x4b0429(_0x316261,_0x5f47c9,_0x523f1a,_0x291bd5){return _0x1568(_0x5f47c9-0x1a2,_0x523f1a);}try{_0x16b719['push'](JSON[_0x4b0429(0x205,_0x1c1196._0x5c843b,_0x1c1196._0x5a814b,_0x1c1196._0xefbd60)](String(_0x19e67b[_0x5b53c0(0x50e,_0x1c1196._0x361e4b,_0x1c1196._0x579b5d,0x57a)]))),_0x2faf04?.(),_0x2faf04=void 0x0;}catch(_0x3e0c18){_0x17a23d=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x3e0c18)),_0x2faf04?.(),_0x2faf04=void 0x0;}},_0x3a2dc4=_0x21dde6=>{function _0x29b519(_0x22cca4,_0x7d17f6,_0x4cc55e,_0x12d648){return _0x1568(_0x4cc55e- -0x13b,_0x22cca4);}const _0x3b90a8=_0x21dde6;function _0x4b4648(_0x2f9eec,_0x284c14,_0x7e2822,_0xf8bcfb){return _0x1568(_0x7e2822- -0x202,_0x2f9eec);}_0x17a23d=new Error(_0x3b90a8[_0x4b4648(-0x92,0x68,-0x53,_0x297710._0x418031)]||_0x4b4648(_0x297710._0x445f94,_0x297710._0xc0d276,-0x9,-0xf)),_0x2faf04?.(),_0x2faf04=void 0x0;},_0x5a0176=_0x4a034f=>{const _0x584957=_0x4a034f;function _0x29e85d(_0x51508f,_0x430ec9,_0x4ec11d,_0x1c6cc5){return _0x1568(_0x1c6cc5-_0x415ab2._0x35452c,_0x51508f);}!_0xbee966&&_0x584957[_0x29e85d(0x34b,0x298,0x297,0x320)]!==0x3e8&&!_0x17a23d&&(_0x17a23d=new Error(_0x584957['reason']||_0x165666(_0x15cab8._0xec66b6,_0x15cab8._0x3591f1,0x472,0x43b)+_0x584957[_0x29e85d(_0x15cab8._0x10915f,0x314,_0x15cab8._0x3f4958,0x320)]));function _0x165666(_0xd2ebca,_0x1c920f,_0x42bdc9,_0x45882e){return _0x1568(_0x45882e-0x3a0,_0xd2ebca);}_0xbee966=!![],_0x2faf04?.(),_0x2faf04=void 0x0;},_0xfbbdc1=addAbortListener(_0x383111,()=>{_0x17a23d=toAbortError(_0x383111?.['reason']);_0x44fb09[_0x4d1a3a(_0x56e3c7._0x5af0b9,0xed,-_0x56e3c7._0x43eb16,0x6f)]===WebSocket['OPEN']&&_0x44fb09[_0x4d1a3a(-0xd4,-_0x56e3c7._0x1e9704,_0x56e3c7._0x1007b8,-_0x56e3c7._0x5f3ff0)](0x3e8,'aborted');function _0x4d1a3a(_0x17e584,_0x29ada5,_0x97868c,_0xdc8451){return _0x1568(_0xdc8451- -0x199,_0x17e584);}function _0x2ef126(_0x3dc55f,_0x3c76d4,_0x3bf0cb,_0x1efaf5){return _0x1568(_0x1efaf5- -0x1b4,_0x3c76d4);}_0x2faf04?.(),_0x2faf04=void 0x0;});function _0x469888(_0x478762,_0x2ecbd9,_0xaac898,_0xb1ae02){return _0x5da579(_0x478762- -0x1f9,_0x2ecbd9-_0x4a41c6._0x8e875,_0xaac898-_0x4a41c6._0x16e1db,_0xaac898);}function _0x1e83c2(_0x8cc13e,_0x139e35,_0x2a4cfd,_0x55922e){return _0x5da579(_0x2a4cfd- -0x8,_0x139e35-_0x38f634._0x6eb6b3,_0x2a4cfd-0xbb,_0x139e35);}return _0x44fb09[_0x469888(0x1b2,0x1c7,_0x15f264._0x233a45,_0x15f264._0x49e662)]('message',_0x50f113),_0x44fb09['addEventListener'](_0x469888(_0x15f264._0x41aba8,_0x15f264._0x521eca,_0x15f264._0x1b3a81,_0x15f264._0x108e85),_0x3a2dc4),_0x44fb09[_0x469888(0x1b2,0x176,_0x15f264._0x1b6ec7,_0x15f264._0x1c0b5a)](_0x469888(0x189,_0x15f264._0x4d8eaa,0x1a5,0x1af),_0x5a0176),{async*[Symbol['asyncIterator']](){function _0x1063f7(_0x32dc16,_0x5ca89b,_0xb027db,_0x280192){return _0x1e83c2(_0x32dc16-0x12d,_0x32dc16,_0x280192- -0x187,_0x280192-0x9a);}function _0x379e7d(_0x57a452,_0x5835a2,_0x1f386b,_0x9fa550){return _0x1e83c2(_0x57a452-0x17d,_0x5835a2,_0x9fa550- -_0x5d2e65._0x3df1e7,_0x9fa550-0xc2);}try{while(!![]){if(_0x17a23d)throw _0x17a23d;if(_0x16b719[_0x1063f7(0x13d,_0x28382f._0x5691c7,0x1b1,0x127)]>0x0){yield _0x16b719['shift']();continue;}if(_0xbee966)break;await new Promise(_0x4f840b=>{_0x2faf04=_0x4f840b;});}}finally{_0x44fb09[_0x379e7d(0x258,0x282,_0x28382f._0x21385f,_0x28382f._0x3d1b9c)](_0x1063f7(0x221,_0x28382f._0x383b6d,_0x28382f._0x2f1a01,_0x28382f._0x320cd1),_0x50f113),_0x44fb09['removeEventListener']('error',_0x3a2dc4),_0x44fb09[_0x379e7d(0x1ef,0x211,0x160,0x218)](_0x379e7d(_0x28382f._0x4ce57d,_0x28382f._0x5ae8ff,0x125,_0x28382f._0x342313),_0x5a0176),_0xfbbdc1();}}};}function toWebSocketUrl(_0x118f1e,_0x5ad085){const _0x4deda0={_0x313e32:0x389,_0x4cd8ce:0x2f9,_0x5f0be8:0x2ef,_0x2f253c:0x259,_0x32728f:0x3c0,_0x5d710a:0x306,_0x1b1f8c:0x32d,_0x594c56:0x336,_0x138146:0x434,_0x59b2c6:0x492},_0x4228d1={_0x1c4864:0x29f},_0x22c808={_0x136354:0x4a};function _0xd0cee4(_0xdacff9,_0x47e2e6,_0x1bffa9,_0x348c6b){return _0x5da579(_0x47e2e6- -_0x22c808._0x136354,_0x47e2e6-0xba,_0x1bffa9-0x61,_0x348c6b);}function _0x5afb85(_0x213538,_0x34c2ad,_0x1c32f1,_0xffee30){return _0x3749d0(_0x213538-0x180,_0x34c2ad-0x111,_0x34c2ad-_0x4228d1._0x1c4864,_0x1c32f1);}const _0x17d400=new URL(_0x5ad085,_0x118f1e);return _0x17d400[_0x5afb85(_0x4deda0._0x313e32,0x3bc,_0x4deda0._0x4cd8ce,0x32b)]=_0x17d400['protocol']===_0x5afb85(0x359,0x296,0x2ca,0x1e3)?_0x5afb85(_0x4deda0._0x5f0be8,_0x4deda0._0x2f253c,0x1b8,0x2ab):_0x5afb85(_0x4deda0._0x32728f,_0x4deda0._0x5d710a,_0x4deda0._0x1b1f8c,_0x4deda0._0x594c56),_0x17d400[_0x5afb85(_0x4deda0._0x138146,0x3e3,0x4b4,_0x4deda0._0x59b2c6)]();}var ProviderSessionManager=class{['resolver'];[_0x3749d0(0x9e,0x5f,0x10,-0xb6)];constructor(_0x48f1fc){this['resolver']=_0x48f1fc;}async[_0x3749d0(0x52,0x166,0xd3,0x133)](_0x5d8bd7){const _0x45ab44={_0x2b9b66:0x10,_0x245380:0x0,_0x3c56a8:0x79,_0x24a1c1:0x1a5,_0x5a114f:0x14d,_0x34702a:0x20d,_0x307d10:0x1eb},_0x5be7bc={_0x5a4e94:0x1ec},_0x142ff7={_0x1cebfd:0x50f,_0x3dacd1:0x1d5,_0xef48cd:0x28};function _0x48b8b3(_0x262fd8,_0x138d69,_0x1c510c,_0xa6e1e0){return _0x5da579(_0x1c510c- -_0x142ff7._0x1cebfd,_0x138d69-_0x142ff7._0x3dacd1,_0x1c510c-_0x142ff7._0xef48cd,_0xa6e1e0);}function _0x545c43(_0x3babfc,_0x58caec,_0x59f380,_0x18e21e){return _0x5da579(_0x58caec- -0x2c8,_0x58caec-_0x5be7bc._0x5a4e94,_0x59f380-0x148,_0x59f380);}return!this['cached']&&(this[_0x545c43(0xb0,0x2d,_0x45ab44._0x2b9b66,-0x73)]=this[_0x545c43(_0x45ab44._0x245380,0xab,0x11a,_0x45ab44._0x3c56a8)][_0x545c43(_0x45ab44._0x24a1c1,0xf0,0x1c,_0x45ab44._0x5a114f)](_0x5d8bd7)),structuredClone(await this[_0x48b8b3(-0x289,-_0x45ab44._0x34702a,-0x21a,-_0x45ab44._0x307d10)]);}[_0x3749d0(0x116,-0x3d,0x97,0x28)](){this['cached']=void 0x0;}};async function prepareProviderRequest(_0x30413b,_0x2ddd5f={}){const _0x17d02d={_0x50d3fe:0x226,_0x803b4:0x18f,_0x19a05e:0x294,_0x3fbabe:0x551,_0x1aebd4:0x5ec,_0x3978dc:0x61e,_0x480aa0:0x24e,_0x35c8f8:0x295},_0x3e8bd4={_0x5ccc4a:0x89},_0x3451a2={_0xfe404f:0x178,_0x3e52d2:0x164};function _0x3d2f47(_0x39f981,_0x267983,_0x34084f,_0x2a677b){return _0x5da579(_0x39f981- -_0x3451a2._0xfe404f,_0x267983-0x189,_0x34084f-_0x3451a2._0x3e52d2,_0x267983);}let _0x274b60={'request':structuredClone(_0x30413b),'session':_0x2ddd5f[_0x1eeb7c(0x537,0x4a0,0x499,0x557)]?await _0x2ddd5f[_0x3d2f47(_0x17d02d._0x50d3fe,0x171,_0x17d02d._0x803b4,_0x17d02d._0x19a05e)][_0x1eeb7c(_0x17d02d._0x3fbabe,0x4b2,_0x17d02d._0x1aebd4,_0x17d02d._0x3978dc)](_0x2ddd5f[_0x3d2f47(_0x17d02d._0x480aa0,_0x17d02d._0x35c8f8,0x24a,0x284)]):void 0x0};for(const _0x531156 of _0x2ddd5f['requestMutators']??[]){_0x274b60=await _0x531156(_0x274b60);}function _0x1eeb7c(_0x56c5f2,_0x46ab7a,_0x25cd31,_0x3a54ba){return _0x5da579(_0x56c5f2-0x199,_0x46ab7a-_0x3e8bd4._0x5ccc4a,_0x25cd31-0x94,_0x25cd31);}return _0x274b60;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0x3749d0(0xed,0x46,0x10c,0x139)];[_0x5da579(0x2d0,0x334,0x2b7,0x34f)];[_0x3749d0(0x1a,0x147,0x9a,0x7b)];['apiKey'];[_0x3749d0(0xc,0x76,0x34,-0x66)];[_0x5da579(0x3f8,0x44b,0x471,0x493)];['providerAdapter'];[_0x3749d0(0x198,0x139,0xd1,0x75)];[_0x3749d0(0xca,0xc,0xcc,0x5e)];[_0x3749d0(0x184,-0x1c,0xb9,0x43)];['webSocketFactory'];[_0x5da579(0x2d7,0x345,0x396,0x2da)]=new Map();constructor(_0x17e455){const _0x2c0d20={_0x4b60eb:0x2e,_0x2989db:0x107,_0x3c703c:0xe7,_0x94ec1d:0x1d0,_0x2714e7:0xfe,_0x1ffeae:0x156,_0x413528:0x1ad,_0xfa8259:0x3a,_0x5625f6:0x12e,_0x439737:0xd2,_0x29a961:0xbb,_0x2870b8:0x6c,_0x452064:0x1bd,_0x22822a:0x28b,_0x45d2fd:0xb3,_0x1639db:0x5d,_0x1d2a8f:0xee,_0x46413f:0x2f6,_0x182bee:0x67,_0x48dead:0x121,_0x1766e2:0x61,_0x26975d:0xac,_0x4bab02:0x48,_0x4cee8a:0x2c,_0x56270b:0x94,_0x3bafa1:0x167,_0x5a68b7:0x1ea,_0x14192e:0x18f,_0x21ce0c:0x18a,_0x188cab:0x13c,_0x5bfe80:0x38,_0x264bd0:0x34,_0x20598f:0x22e,_0x45127b:0x33,_0xb7c998:0x5a,_0x3b1bfa:0x204,_0xfb8f0e:0x1df},_0x26dccb={_0x364bdd:0x30a,_0x1166f6:0x1dd,_0x35e617:0xcc},_0x1d139f={_0x5cf2b3:0x9,_0x1274c3:0x115};this[_0x30fa60(0x1a0,0x44,0xe7,_0x2c0d20._0x4b60eb)]=_0x17e455[_0x30fa60(0xb4,_0x2c0d20._0x2989db,_0x2c0d20._0x3c703c,0x6f)],this['maxTokens']=_0x17e455[_0x3a2311(-0x2b1,-0x206,-_0x2c0d20._0x94ec1d,-0x23d)]??0x4000,this[_0x3a2311(-_0x2c0d20._0x2714e7,-_0x2c0d20._0x1ffeae,-_0x2c0d20._0x413528,-0x18e)]=_0x17e455[_0x30fa60(-_0x2c0d20._0xfa8259,0x7d,0x75,0x32)]?structuredClone(_0x17e455[_0x3a2311(-0x1c4,-0x23e,-_0x2c0d20._0x5625f6,-0x18e)]):void 0x0,this[_0x3a2311(-0x32,-0x5e,-0x70,-_0x2c0d20._0x439737)]=_0x17e455[_0x3a2311(-0x104,-0xe8,-0x13e,-0xd2)],this[_0x30fa60(-_0x2c0d20._0x29a961,-0xad,0xf,-_0x2c0d20._0x2870b8)]=_0x17e455[_0x3a2311(-_0x2c0d20._0x452064,-0x1ee,-_0x2c0d20._0x22822a,-0x1f4)],this[_0x30fa60(_0x2c0d20._0x45d2fd,_0x2c0d20._0x1639db,_0x2c0d20._0x1d2a8f,0x19b)]=_0x17e455[_0x3a2311(-_0x2c0d20._0x46413f,-0x2b0,-0x31c,-0x256)]??globalThis['fetch'],this['providerAdapter']=_0x17e455[_0x30fa60(-_0x2c0d20._0x182bee,-_0x2c0d20._0x48dead,-0x75,0x2a)],this[_0x30fa60(0x59,_0x2c0d20._0x1766e2,_0x2c0d20._0x26975d,_0x2c0d20._0x4bab02)]=_0x17e455['requestMutators']??[];function _0x3a2311(_0x26c4b1,_0x39a692,_0x500194,_0x233334){return _0x3749d0(_0x26c4b1-_0x1d139f._0x5cf2b3,_0x39a692-_0x1d139f._0x1274c3,_0x233334- -0x228,_0x500194);}this[_0x30fa60(0x162,0x117,0xa7,0x34)]=_0x17e455[_0x30fa60(_0x2c0d20._0x4cee8a,0x56,0xa7,0xcd)],this['sessionManager']=_0x17e455[_0x30fa60(0x80,-0x14,_0x2c0d20._0x56270b,0xa4)]??(_0x17e455[_0x3a2311(-0x212,-_0x2c0d20._0x3bafa1,-_0x2c0d20._0x5a68b7,-_0x2c0d20._0x14192e)]?new ProviderSessionManager(_0x17e455[_0x3a2311(-_0x2c0d20._0x21ce0c,-0x106,-_0x2c0d20._0x188cab,-_0x2c0d20._0x14192e)]):void 0x0),this[_0x30fa60(_0x2c0d20._0x4b60eb,-0x21,_0x2c0d20._0x5bfe80,0x15)]=_0x17e455[_0x30fa60(0x39,-_0x2c0d20._0x264bd0,0x38,0x40)]??createDefaultWebSocketFactory();function _0x30fa60(_0x21cff4,_0x53b00c,_0x18b98c,_0x545185){return _0x5da579(_0x18b98c- -_0x26dccb._0x364bdd,_0x53b00c-_0x26dccb._0x1166f6,_0x18b98c-_0x26dccb._0x35e617,_0x545185);}for(const _0x1b760f of _0x17e455[_0x3a2311(-_0x2c0d20._0x20598f,-0x2a3,-0x251,-0x236)]){this[_0x30fa60(-0x7e,0x20,-_0x2c0d20._0x45127b,-_0x2c0d20._0xb7c998)][_0x3a2311(-_0x2c0d20._0x3b1bfa,-_0x2c0d20._0xfb8f0e,-0x20f,-0x214)](_0x1b760f['id'],_0x1b760f);}}['complete'](_0x29aa5d,_0x65da6e){return this['completeViaRouter'](_0x29aa5d,_0x65da6e);}['stream'](_0x923413,_0x17a988){const _0x295d5e={_0x42327a:0xa3,_0x3d43fc:0xf},_0x2c3c66={_0x457640:0x1b0,_0x1e3dfa:0x24};function _0x3b7682(_0x60f7a3,_0x5699be,_0x5dbf92,_0x693c02){return _0x3749d0(_0x60f7a3-_0x2c3c66._0x457640,_0x5699be-0xe0,_0x693c02- -_0x2c3c66._0x1e3dfa,_0x60f7a3);}return this[_0x3b7682(-_0x295d5e._0x42327a,0x90,0xdb,_0x295d5e._0x3d43fc)](_0x923413,_0x17a988);}async[_0x3749d0(0x85,0xd2,0x7f,0x26)](_0x4a7cee,_0x31f421){const _0x29ad1f={_0x4e0006:0x234,_0x1b4356:0x3ca,_0xe62695:0x229,_0x5b8298:0x25b,_0x1e7094:0x153,_0x3b4c4c:0x2f0,_0x23c479:0x21a,_0x352709:0x2a6},_0x18a059={_0x30e5f2:0xf5,_0x53c130:0x194,_0x174dc4:0x23f},_0x2e20e4={_0x163fb1:0xe1,_0x2368dc:0x76};function _0x2e1da1(_0x217634,_0x3f6c37,_0xae3277,_0x4611e0){return _0x3749d0(_0x217634-_0x2e20e4._0x163fb1,_0x3f6c37-_0x2e20e4._0x2368dc,_0x3f6c37-0x1fc,_0xae3277);}function _0x4ec431(_0x474bb4,_0x1f6e12,_0x3100ad,_0x2beebf){return _0x3749d0(_0x474bb4-_0x18a059._0x30e5f2,_0x1f6e12-_0x18a059._0x53c130,_0x474bb4-_0x18a059._0x174dc4,_0x3100ad);}const _0x291657=this[_0x4ec431(0x228,0x1b7,0x2f2,_0x29ad1f._0x4e0006)](_0x4a7cee),_0x4a49e9=await this[_0x4ec431(0x30b,0x25c,0x2f2,_0x29ad1f._0x1b4356)][_0x2e1da1(_0x29ad1f._0xe62695,0x287,0x1e7,0x1d2)](_0x291657,{'mode':_0x2e1da1(0x22e,0x21b,_0x29ad1f._0x5b8298,_0x29ad1f._0x1e7094)});return this[_0x2e1da1(_0x29ad1f._0x3b4c4c,0x2e8,_0x29ad1f._0x23c479,_0x29ad1f._0x352709)](_0x291657,_0x4a49e9,_0x31f421);}async*[_0x5da579(0x318,0x33a,0x37c,0x37d)](_0x20dd8f,_0x424d92){const _0x5034e4={_0x1e18de:0x322,_0x498261:0x206,_0x49a1cb:0x2af,_0x2185fe:0x4f,_0x34c744:0x15d,_0x2f12b7:0x1ac,_0x24da52:0x171,_0x1605c6:0x20d,_0x1d9db7:0x75,_0x2f3cac:0xb9,_0x220349:0x28d,_0x3fa6e6:0x25f,_0x4e8b08:0x28a},_0x4c6401={_0x4b0e48:0x131},_0x185d64={_0x4d6f19:0xf6,_0x1d1b19:0x298},_0x1e1f19=this[_0x837d0a(-_0x5034e4._0x1e18de,-_0x5034e4._0x1e18de,-_0x5034e4._0x498261,-_0x5034e4._0x49a1cb)](_0x20dd8f),_0x54f05a=await this[_0x442f3a(_0x5034e4._0x2185fe,0x94,_0x5034e4._0x34c744,-0x31)][_0x837d0a(-_0x5034e4._0x2f12b7,-_0x5034e4._0x24da52,-0x162,-_0x5034e4._0x1605c6)](_0x1e1f19,{'mode':_0x442f3a(0xc6,_0x5034e4._0x1d9db7,_0x5034e4._0x2f3cac,0x2)});function _0x837d0a(_0xa6e7f1,_0x3b5b81,_0x5b27db,_0x6ea693){return _0x3749d0(_0xa6e7f1-_0x185d64._0x4d6f19,_0x3b5b81-0x1f1,_0x6ea693- -_0x185d64._0x1d1b19,_0xa6e7f1);}function _0x442f3a(_0x31d247,_0xd1feab,_0x15a8e5,_0x1d38c3){return _0x3749d0(_0x31d247-_0x4c6401._0x4b0e48,_0xd1feab-0x95,_0xd1feab- -0x38,_0x1d38c3);}yield*this[_0x837d0a(-_0x5034e4._0x220349,-0x2e8,-_0x5034e4._0x3fa6e6,-_0x5034e4._0x4e8b08)](_0x1e1f19,_0x54f05a,_0x424d92);}async[_0x3749d0(0x19b,0x12a,0xec,0x1af)](_0x1da197,_0x1c2900,_0x2a34fd){const _0x3c1b6a={_0x4c930f:0x4d,_0x19751d:0x2c,_0x5da79d:0x88,_0x503c85:0x9,_0x156710:0xa8,_0x3e32a9:0xc7,_0x9170d5:0x51a,_0x230164:0x536,_0x5ec5c3:0x4f7,_0x1f657f:0x468,_0x26491c:0x323,_0x13788b:0x524,_0x3558f7:0x504,_0x37e82a:0x5ce,_0x3943d5:0x65,_0x29942f:0x39,_0x87031a:0xb1,_0x23062e:0x5a0,_0x1e1400:0x49c,_0x411894:0x5f3,_0x27facd:0x546},_0x549300={_0x45802a:0xca,_0x154d2c:0xac},_0x4c13cc={_0x2b4627:0x38d,_0xc4f4bf:0x70},_0x3b4bde=this['applyModelDefaults'](_0x1da197);function _0x143c06(_0x2248ee,_0x2eca3b,_0x541aa1,_0x402e6b){return _0x5da579(_0x2248ee- -_0x4c13cc._0x2b4627,_0x2eca3b-_0x4c13cc._0xc4f4bf,_0x541aa1-0x8f,_0x2eca3b);}const _0x27ed23=this['getSurface'](_0x1c2900);if(_0x27ed23[_0x143c06(_0x3c1b6a._0x4c930f,-0x26,-0x34,_0x3c1b6a._0x19751d)]===_0x143c06(_0x3c1b6a._0x5da79d,-_0x3c1b6a._0x503c85,_0x3c1b6a._0x156710,_0x3c1b6a._0x3e32a9)){const _0x4f95dd=await this['sendHttpSurfaceRequest'](_0x3b4bde,_0x27ed23,![],_0x2a34fd);if(!_0x4f95dd['ok'])throw await this['toApiError'](_0x4f95dd);if(!_0x27ed23[_0x3a7123(0x5e8,_0x3c1b6a._0x9170d5,0x4e6,_0x3c1b6a._0x230164)])throw new Error(_0x3a7123(0x580,_0x3c1b6a._0x5ec5c3,0x541,0x4ba)+_0x1c2900+_0x3a7123(0x3a3,_0x3c1b6a._0x1f657f,_0x3c1b6a._0x26491c,0x3ef));return _0x27ed23[_0x3a7123(_0x3c1b6a._0x13788b,_0x3c1b6a._0x3558f7,_0x3c1b6a._0x37e82a,0x536)](await _0x4f95dd[_0x143c06(0x33,0x8,-_0x3c1b6a._0x3943d5,-_0x3c1b6a._0x29942f)](),_0x3b4bde);}function _0x3a7123(_0x152d08,_0x3fb89b,_0x17965f,_0x1cf419){return _0x5da579(_0x1cf419-0x141,_0x3fb89b-_0x549300._0x45802a,_0x17965f-_0x549300._0x154d2c,_0x3fb89b);}let _0x3ba664;for await(const _0x4e2522 of this[_0x143c06(-0x9a,0x16,-0x5d,-_0x3c1b6a._0x87031a)](_0x3b4bde,_0x1c2900,_0x2a34fd)){_0x4e2522['type']==='done'&&(_0x3ba664=_0x4e2522[_0x3a7123(_0x3c1b6a._0x23062e,0x5aa,_0x3c1b6a._0x1e1400,0x50e)]);}if(!_0x3ba664)throw new Error(_0x3a7123(0x3fb,0x416,0x53c,0x4ba)+_0x1c2900+_0x3a7123(0x4f0,0x5f1,_0x3c1b6a._0x411894,_0x3c1b6a._0x27facd));return _0x3ba664;}async*[_0x5da579(0x2f3,0x299,0x3c7,0x276)](_0x409a58,_0x5f1dac,_0x34dd93){const _0x37b2b1={_0x1c57c2:0x35a,_0x32448e:0x519,_0x4c1394:0x4c6,_0x2d17cf:0x49e,_0x397010:0x47c,_0x471d52:0x162,_0x3eca41:0x98,_0x2b76d5:0xf0,_0x2400c0:0x18f,_0x16b94e:0x171,_0x318ba7:0x1a3,_0x2dd651:0x2b3,_0x158579:0x436,_0x3ff5d7:0x448,_0xf726eb:0x394,_0x46b894:0x4c0,_0x46a1b7:0x468},_0x4db99c={_0x50f08d:0x577,_0x2d2894:0x38},_0x363f9c={_0x2189c6:0x7},_0x5d44fc={_0x4451f0:0x390},_0x5804dd=this[_0x17e3f7(0x31b,0x2bc,_0x37b2b1._0x1c57c2,0x370)](_0x409a58),_0x452dd2=this[_0x17e3f7(_0x37b2b1._0x32448e,0x47b,_0x37b2b1._0x4c1394,0x481)](_0x5f1dac);if(_0x452dd2[_0x17e3f7(0x3cc,_0x37b2b1._0x2d17cf,0x45e,_0x37b2b1._0x397010)]===_0x23cf73(-0x177,-_0x37b2b1._0x471d52,-_0x37b2b1._0x3eca41,-_0x37b2b1._0x2b76d5)){const _0x58affb=[],_0x32aab2=await this[_0x23cf73(-_0x37b2b1._0x2400c0,-0x1a6,-_0x37b2b1._0x16b94e,-_0x37b2b1._0x318ba7)](_0x5804dd,_0x5f1dac,{..._0x34dd93,'onProviderRetry':async _0x5a8a16=>{const _0x1a0e42={_0xe41839:0xb0};function _0x342120(_0x4220ee,_0x38238b,_0x482363,_0x229c28){return _0x23cf73(_0x229c28,_0x38238b-0x629,_0x482363-0x60,_0x229c28-_0x1a0e42._0xe41839);}_0x58affb['push'](_0x5a8a16),await _0x34dd93?.[_0x342120(0x424,_0x5d44fc._0x4451f0,0x3fe,0x2e6)]?.(_0x5a8a16);}});for(const _0x62b1b of _0x58affb){yield _0x62b1b;}yield{'type':_0x23cf73(-0x377,-_0x37b2b1._0x2dd651,-0x335,-0x366),'response':_0x32aab2};return;}if(_0x452dd2['transport']==='http-sse'){yield*this[_0x17e3f7(0x3bb,0x473,_0x37b2b1._0x158579,_0x37b2b1._0x3ff5d7)](_0x5804dd,_0x452dd2,_0x34dd93);return;}function _0x17e3f7(_0x35e6b1,_0x54dff2,_0x537d3c,_0x46b275){return _0x3749d0(_0x35e6b1-0x1ea,_0x54dff2-_0x363f9c._0x2189c6,_0x46b275-0x387,_0x35e6b1);}function _0x23cf73(_0xc2d0be,_0x1b5310,_0x2f307c,_0xc29d0e){return _0x5da579(_0x1b5310- -_0x4db99c._0x50f08d,_0x1b5310-0x1e0,_0x2f307c-_0x4db99c._0x2d2894,_0xc2d0be);}yield*this['streamWebSocketSurface'](_0x5804dd,_0x452dd2,_0x34dd93?.[_0x17e3f7(_0x37b2b1._0xf726eb,_0x37b2b1._0x46b894,0x4fd,_0x37b2b1._0x46a1b7)]);}async['sendRawRequest'](_0x4169e3){const _0x2e860e={_0x4a1761:0x142,_0x1b30be:0x125,_0x4f3e19:0x13c,_0x36ea30:0x20b},_0xf37ccf={_0x1a1c4c:0x118,_0x1645d6:0x188,_0x5b3ef4:0xf8,_0x367bb7:0xfe,_0x5a99ef:0x128,_0x4d50b7:0x134,_0x3007c0:0x147,_0x212019:0x122,_0x5d1882:0x156,_0x4a6dc8:0x182,_0x45a29a:0x17b,_0x325eff:0x10a,_0x3dac93:0x1ce,_0x51ff30:0x19c,_0x20f3ee:0x17d,_0x4ebfa9:0x28c,_0x34991d:0x98,_0xe86260:0x96,_0x272239:0x58,_0x5c39e8:0x278,_0x4114b8:0x23f,_0x5e368c:0x1e3,_0x2f4ff2:0x184,_0xc4581a:0x202,_0x1da9a7:0x24a,_0x46a4a5:0x2a6,_0x54534b:0x9e,_0x32945d:0xde,_0x59ec24:0x1c,_0xf4617b:0x108,_0x1ac348:0x147,_0x27735c:0x208,_0x277f67:0x1ca},_0x42e444={_0x227f4e:0x2f9},_0x20ac54={_0x1c5fa4:0x23};function _0x408b96(_0x21ecad,_0x4d9791,_0x211fd0,_0x254ffc){return _0x3749d0(_0x21ecad-_0x20ac54._0x1c5fa4,_0x4d9791-0x140,_0x21ecad- -0x293,_0x211fd0);}const _0x14ddb8=async()=>{const _0x2adc9e={_0x24fc47:0x2a2},_0x325ce1=this[_0x45ee15(-_0xf37ccf._0x1a1c4c,-0xf5,-_0xf37ccf._0x1645d6,-_0xf37ccf._0x5b3ef4)]?await this['sessionManager'][_0x45ee15(-_0xf37ccf._0x367bb7,-0x65,-_0xf37ccf._0x5a99ef,-_0xf37ccf._0x4d50b7)](_0x4169e3[_0x28eb68(-_0xf37ccf._0x3007c0,-_0xf37ccf._0x212019,-_0xf37ccf._0x5d1882,-0x14b)]):void 0x0,_0x1b7cc7=this['providerAdapter'][_0x45ee15(-0x109,-_0xf37ccf._0x4a6dc8,-0x1c3,-_0xf37ccf._0x45a29a)](this['apiKey'],_0x325ce1);function _0x45ee15(_0x214a7e,_0x41526b,_0x5494e0,_0x5b4cc6){return _0x1568(_0x214a7e- -_0x2adc9e._0x24fc47,_0x5b4cc6);}function _0x28eb68(_0x68171b,_0x3c71f6,_0x366a3f,_0x2a5926){return _0x1568(_0x68171b- -_0x42e444._0x227f4e,_0x3c71f6);}if(!_0x1b7cc7)throw this[_0x28eb68(-0x154,-0x185,-0x18a,-_0xf37ccf._0x325eff)]();const _0x989e36=await this[_0x28eb68(-_0xf37ccf._0x3dac93,-_0xf37ccf._0x51ff30,-_0xf37ccf._0x20f3ee,-_0xf37ccf._0x4ebfa9)]({'body':_0x4169e3[_0x45ee15(-_0xf37ccf._0x34991d,-_0xf37ccf._0xe86260,-_0xf37ccf._0x272239,-0xa6)],'credential':_0x1b7cc7,'session':_0x325ce1,'stream':![]},{'accept':_0x4169e3['accept']??'application/json','includeContentType':_0x4169e3['method']==='POST'});return this['fetchImpl'](''+this[_0x28eb68(-_0xf37ccf._0x5c39e8,-0x216,-_0xf37ccf._0x4114b8,-0x223)][_0x45ee15(-0x1a0,-0xf2,-_0xf37ccf._0x5e368c,-_0xf37ccf._0x2f4ff2)](this['baseUrl'],_0x325ce1)+_0x4169e3['path'],{'method':_0x4169e3[_0x28eb68(-_0xf37ccf._0xc4581a,-_0xf37ccf._0x1da9a7,-_0xf37ccf._0x46a4a5,-0x16f)],'headers':_0x989e36,..._0x4169e3[_0x28eb68(-0xef,-0x161,-0xca,-_0xf37ccf._0x54534b)]!==void 0x0?{'body':JSON[_0x45ee15(-_0xf37ccf._0x32945d,-0xe7,-0x87,-0xd3)](_0x4169e3[_0x45ee15(-_0xf37ccf._0x34991d,-0x135,_0xf37ccf._0x59ec24,-_0xf37ccf._0xf4617b)])}:{},'signal':_0x4169e3[_0x28eb68(-_0xf37ccf._0x1ac348,-_0xf37ccf._0x27735c,-_0xf37ccf._0x277f67,-0x137)]});};return await this[_0x408b96(-_0x2e860e._0x4a1761,-_0x2e860e._0x1b30be,-_0x2e860e._0x4f3e19,-_0x2e860e._0x36ea30)](_0x14ddb8,_0x4169e3);}[_0x5da579(0x2c9,0x342,0x2ed,0x38a)](_0x394c5b,_0xc3e233){const _0x1e576={_0x16a174:0x442,_0x388036:0x52a,_0x571f61:0x51e,_0x415f6b:0x4e1,_0x3bc162:0x60f,_0x113077:0x403,_0x572a47:0x446},_0x26d122=_0x394c5b?.['headers'][_0x5ad3d4(0x4b0,_0x1e576._0x16a174,0x4b5,0x441)](_0x5ad3d4(_0x1e576._0x388036,0x52d,0x53c,0x59c));function _0x5b77de(_0x2733b2,_0x4d1f4e,_0x36ae3b,_0x3c5674){return _0x5da579(_0x36ae3b-0xfd,_0x4d1f4e-0x60,_0x36ae3b-0x1c2,_0x4d1f4e);}if(_0x26d122){const _0x3791fa=Number(_0x26d122);if(Number[_0x5b77de(_0x1e576._0x571f61,0x4c3,0x4d6,_0x1e576._0x415f6b)](_0x3791fa)&&_0x3791fa>=0x0)return _0x3791fa*0x3e8;const _0x264ead=Date[_0x5ad3d4(0x3e1,0x502,0x45a,0x514)](_0x26d122);if(Number[_0x5ad3d4(_0x1e576._0x3bc162,0x547,0x587,0x5a2)](_0x264ead))return Math[_0x5b77de(0x4c2,0x386,_0x1e576._0x113077,_0x1e576._0x572a47)](0x0,_0x264ead-Date['now']());}const _0x87c78a=DEFAULT_RETRY_DELAY_MS*0x2**_0xc3e233;if(_0x87c78a<RETRY_DELAY_STEP_CAP_MS)return _0x87c78a;function _0x5ad3d4(_0x45ef49,_0x145e42,_0x96f468,_0x8946fa){return _0x3749d0(_0x45ef49-0x182,_0x145e42-0x38,_0x96f468-0x493,_0x145e42);}return RETRY_DELAY_STEP_CAP_MS*0x2**(_0xc3e233-0x5);}[_0x3749d0(0xd0,-0x47,0x6,-0x80)](_0x5e2e84){const _0x3e0a0c={_0x5d1f25:0x1ad,_0x10319b:0xab,_0x372803:0x62},_0x47165d={_0x31e2e0:0x161,_0x68feeb:0xab},_0x34058d={_0x5f2a24:0x1b0};function _0xe43270(_0xc51fb7,_0x4071a1,_0x2c0039,_0x335773){return _0x5da579(_0x335773- -0x229,_0x4071a1-0x163,_0x2c0039-_0x34058d._0x5f2a24,_0x4071a1);}function _0x2bc9b2(_0x38c624,_0x84685b,_0x54381d,_0x369915){return _0x5da579(_0x369915- -0x32d,_0x84685b-_0x47165d._0x31e2e0,_0x54381d-_0x47165d._0x68feeb,_0x38c624);}return RETRYABLE_HTTP_STATUSES[_0xe43270(0x24c,_0x3e0a0c._0x5d1f25,0x25f,0x1ae)](_0x5e2e84[_0x2bc9b2(0x13,-0x21,_0x3e0a0c._0x10319b,_0x3e0a0c._0x372803)]);}[_0x5da579(0x414,0x4ae,0x3f0,0x4c2)](_0x2fcbb2){return!isAbortError(_0x2fcbb2)&&_0x2fcbb2 instanceof TypeError;}['shouldRetryStreamAttemptError'](_0x413ac1){return this['shouldRetryRequestError'](_0x413ac1)||isRetryableProviderStreamEventError(_0x413ac1);}async[_0x3749d0(-0x6c,0x2d,0x5f,-0x75)](_0x1c00b9,_0x54e5af){const _0x4bfe44={_0x32285c:0x422,_0x538608:0x45e};throwIfAborted(_0x54e5af),await new Promise((_0x5d62ee,_0x22445d)=>{let _0x34dd49=![];const _0x54caea=addAbortListener(_0x54e5af,()=>{function _0x18c514(_0x59bc82,_0x4a9dcb,_0x37bfaf,_0x3b303e){return _0x1568(_0x37bfaf-0x249,_0x59bc82);}if(_0x34dd49)return;_0x34dd49=!![],clearTimeout(_0x4d4922),_0x22445d(toAbortError(_0x54e5af?.[_0x18c514(_0x4bfe44._0x32285c,_0x4bfe44._0x538608,0x403,0x495)]));}),_0x4d4922=setTimeout(()=>{_0x34dd49=!![],_0x54caea(),_0x5d62ee();},_0x1c00b9);}),throwIfAborted(_0x54e5af);}async[_0x3749d0(0x115,0xda,0x151,0xfc)](_0x20c6c1,_0x5f499d={}){const _0x51a735={_0x10bead:0x16b,_0x17c939:0x162,_0x19f01b:0x72,_0x1e1474:0x6d,_0x4c509f:0xa7,_0x1934f5:0xc0,_0x53b8aa:0x8d,_0x199d26:0x13f,_0x246ea1:0x110,_0x1090e8:0xa2,_0x58b206:0x2d,_0x2652e0:0xa1,_0x351dfa:0x13a,_0x399494:0x137,_0x1151f4:0x76,_0x12e2d4:0x64,_0x13081d:0x41,_0x566d8e:0x1d8,_0x5b49de:0x1b0,_0x2f8fd9:0xf,_0x16bb0a:0x94,_0x51313c:0x9,_0x540f43:0x143,_0x18f785:0xfa,_0x1dc5f4:0x142,_0xcbfb29:0x187,_0x4e79ba:0x5a,_0x1bf8a8:0x38},_0x2a408c={_0x1e740c:0xf3,_0x1c0a31:0x55,_0x519b18:0x10},_0x5d204b={_0xadf75a:0x1,_0x31e3b6:0x93};function _0x30b772(_0x41816a,_0x4ccdfc,_0x38d272,_0x1b1b4a){return _0x3749d0(_0x41816a-_0x5d204b._0xadf75a,_0x4ccdfc-_0x5d204b._0x31e3b6,_0x4ccdfc-0xa9,_0x38d272);}function _0x385f27(_0x37b4d4,_0x32f31d,_0x438c07,_0x507802){return _0x3749d0(_0x37b4d4-_0x2a408c._0x1e740c,_0x32f31d-_0x2a408c._0x1c0a31,_0x32f31d-_0x2a408c._0x519b18,_0x507802);}const {signal:_0x2ce2f7}=_0x5f499d;let _0x24484f=![];for(let _0x132f37=0x0;_0x132f37<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x132f37+=0x1){throwIfAborted(_0x2ce2f7);try{const _0x5b2cb3=await _0x20c6c1();if(_0x5b2cb3['status']===0x191&&this[_0x30b772(_0x51a735._0x10bead,_0x51a735._0x17c939,0x17b,0x1da)]&&!_0x24484f){_0x24484f=!![],this[_0x385f27(0xb0,0xc9,0xe,_0x51a735._0x19f01b)][_0x385f27(_0x51a735._0x1e1474,_0x51a735._0x4c509f,-0x15,_0x51a735._0x1934f5)]();continue;}if(!this['shouldRetryResponse'](_0x5b2cb3)||_0x132f37===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x5b2cb3;const _0x4b149d=this[_0x30b772(-0x21,_0x51a735._0x53b8aa,_0x51a735._0x199d26,_0x51a735._0x246ea1)](_0x5b2cb3,_0x132f37);await _0x5f499d[_0x30b772(0xaa,_0x51a735._0x1090e8,-_0x51a735._0x58b206,_0x51a735._0x2652e0)]?.({'type':_0x30b772(0xf4,0x193,_0x51a735._0x351dfa,0x105),'attempt':_0x132f37+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':'HTTP\x20'+_0x5b2cb3[_0x30b772(0x20c,0x153,0x1a2,0x221)],'delayMs':_0x4b149d,'reason':_0x385f27(_0x51a735._0x399494,0x7f,0x1,_0x51a735._0x1151f4),'status':_0x5b2cb3['status']}),await this[_0x385f27(0xf,0x6f,_0x51a735._0x12e2d4,_0x51a735._0x13081d)](_0x4b149d,_0x2ce2f7);}catch(_0x5d72fd){if(!this[_0x30b772(0x1c7,_0x51a735._0x566d8e,0x1dc,_0x51a735._0x5b49de)](_0x5d72fd)||_0x132f37===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x5d72fd;const _0x1bce96=this[_0x385f27(_0x51a735._0x2f8fd9,-0xc,-_0x51a735._0x1e1474,0x62)](void 0x0,_0x132f37);await _0x5f499d[_0x30b772(_0x51a735._0x16bb0a,0xa2,_0x51a735._0x51313c,_0x51a735._0x540f43)]?.({'type':_0x385f27(0x3a,_0x51a735._0x18f785,0x1ae,_0x51a735._0x1dc5f4),'attempt':_0x132f37+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x5d72fd instanceof Error?_0x5d72fd[_0x30b772(0x14c,_0x51a735._0xcbfb29,0x22e,0x1e6)]:String(_0x5d72fd),'delayMs':_0x1bce96,'reason':'transport_error'}),await this['waitForRetry'](_0x1bce96,_0x2ce2f7);}}throw new Error(_0x385f27(-0x3e,_0x51a735._0x4e79ba,_0x51a735._0x1bf8a8,0x126));}[_0x5da579(0x3b9,0x40c,0x310,0x45d)](){const _0x346883={_0x5c5d07:0x1ad};function _0x22b463(_0x1ba572,_0x498f6f,_0x4ae11a,_0x34a10e){return _0x5da579(_0x1ba572- -0x77,_0x498f6f-0x16a,_0x4ae11a-_0x346883._0x5c5d07,_0x498f6f);}function _0x458517(_0x350b6d,_0x4a3ef8,_0x317bf1,_0x16ed8c){return _0x5da579(_0x317bf1- -0x594,_0x4a3ef8-0x132,_0x317bf1-0x15c,_0x16ed8c);}return this[_0x458517(-0x332,-0x2d1,-0x2ff,-0x2d8)][_0x458517(-0x177,-0x1bd,-0x1db,-0x184)]();}async[_0x5da579(0x33f,0x358,0x26f,0x2ea)](_0x1c33f2,_0x43b1b7){const _0x41367d={_0x2c1aa5:0x53,_0x1974a3:0x55};function _0x11b77b(_0x2eb5f3,_0x3c2b75,_0x558beb,_0xf8fa9){return _0x3749d0(_0x2eb5f3-0x18b,_0x3c2b75-0x112,_0xf8fa9- -0xaf,_0x558beb);}return await this['providerAdapter'][_0x11b77b(0xe,-0x1a,_0x41367d._0x2c1aa5,-_0x41367d._0x1974a3)](_0x1c33f2,_0x43b1b7);}[_0x5da579(0x317,0x3e0,0x2ae,0x392)](_0x5c0508){const _0x2f217d={_0x1d8125:0x8d,_0x5776e1:0x56,_0x1250c1:0x6e,_0x37dc8d:0x426,_0x3901cc:0x466,_0xe74c87:0x4b4},_0x34e695={_0xf3028a:0x3},_0x4af6b8={_0x420988:0x19f,_0x2ec677:0x482};function _0x12642d(_0x15b066,_0x1a2fc4,_0x58f24c,_0x1db301){return _0x3749d0(_0x15b066-_0x4af6b8._0x420988,_0x1a2fc4-0x107,_0x1db301-_0x4af6b8._0x2ec677,_0x58f24c);}function _0x5df7e7(_0x1106ce,_0xd3e8a8,_0xe58787,_0x2b66dd){return _0x3749d0(_0x1106ce-0x15b,_0xd3e8a8-0x0,_0xe58787- -_0x34e695._0xf3028a,_0xd3e8a8);}return this[_0x5df7e7(-_0x2f217d._0x1d8125,-_0x2f217d._0x5776e1,-0x53,-_0x2f217d._0x1250c1)][_0x12642d(0x46b,_0x2f217d._0x37dc8d,_0x2f217d._0x3901cc,_0x2f217d._0xe74c87)](_0x5c0508);}async['toApiError'](_0x1f188){const _0x3cab0c={_0x41b1e0:0xb0,_0x3ce564:0x13d},_0x5b486d={_0x1e86a3:0x138};function _0xf2a5d1(_0x4e66e2,_0x4fcea2,_0x12a6e9,_0x525c1b){return _0x3749d0(_0x4e66e2-0x18d,_0x4fcea2-_0x5b486d._0x1e86a3,_0x4fcea2-0xa9,_0x12a6e9);}return await this['providerAdapter'][_0xf2a5d1(-0x12,_0x3cab0c._0x41b1e0,0x141,_0x3cab0c._0x3ce564)](_0x1f188);}[_0x5da579(0x3df,0x377,0x3fe,0x311)](_0x1918c6){const _0x49a270={_0x563214:0x3ec,_0x762e5c:0x256,_0x727510:0x272,_0x20f94b:0x233,_0x559dc8:0x169,_0x43e829:0x1fa},_0x1cf84e={_0x4c25e8:0x278},_0x3a728d=this[_0x3deeef(_0x49a270._0x563214,0x41a,0x494,0x3a1)][_0x24a032(-_0x49a270._0x762e5c,-_0x49a270._0x727510,-0x2f3,-_0x49a270._0x20f94b)](_0x1918c6);function _0x3deeef(_0x287661,_0x185548,_0x4a0cd1,_0x4e73ce){return _0x5da579(_0x287661-0x115,_0x185548-0x1bc,_0x4a0cd1-0xb4,_0x4a0cd1);}function _0x24a032(_0x94ebcd,_0x32ec7a,_0x571b08,_0x32dda8){return _0x3749d0(_0x94ebcd-0x184,_0x32ec7a-0x193,_0x94ebcd- -_0x1cf84e._0x4c25e8,_0x32ec7a);}if(!_0x3a728d)throw new Error(_0x24a032(-_0x49a270._0x559dc8,-0xd3,-_0x49a270._0x43e829,-0x19c)+_0x1918c6);return _0x3a728d;}async[_0x5da579(0x3c9,0x33a,0x48a,0x45d)](_0xb089c9,_0x2c947f){const _0x1ee419={_0x3bd1f4:0x4a7,_0xfcb67e:0x45a,_0x2f3e70:0x415,_0x20f78e:0x4bf,_0x192110:0x4a6,_0x38da90:0x304,_0x1e73f5:0x2f1,_0x18eb7d:0x42e,_0x21be50:0x484,_0x4c3cc1:0x443,_0x4e9b0d:0xc2,_0x2feab6:0xbd,_0x212986:0x454,_0x45eca1:0x4b9,_0x386f32:0x175,_0x2015a2:0x234,_0x133a83:0x1,_0xfc1c6a:0x9a,_0x518247:0x538,_0xa93311:0x550,_0x1e3cdf:0x5ad},_0x3682b7={_0x486349:0x1cd},_0x2a688e={_0x401a6f:0x187,_0x1664c2:0x47,_0x185eed:0x1e4},_0xd16818=toModelRequest(_0xb089c9);function _0x2abc64(_0x2ec995,_0xc9061,_0x15cbaa,_0x3bf409){return _0x3749d0(_0x2ec995-_0x2a688e._0x401a6f,_0xc9061-_0x2a688e._0x1664c2,_0x3bf409- -_0x2a688e._0x185eed,_0x15cbaa);}function _0x4ad114(_0x594ce9,_0x530447,_0x2e9059,_0x5ca5a6){return _0x3749d0(_0x594ce9-_0x3682b7._0x486349,_0x530447-0x3e,_0x530447-0x3ee,_0x2e9059);}const _0x4cf0ba=await prepareProviderRequest(_0xd16818,{'sessionManager':this[_0x4ad114(0x44f,_0x1ee419._0x3bd1f4,0x485,_0x1ee419._0xfcb67e)],'requestMutators':this[_0x4ad114(_0x1ee419._0x2f3e70,_0x1ee419._0x20f78e,_0x1ee419._0x192110,0x43e)],'signal':_0x2c947f}),_0x2a5ece=toChatRequest(_0x4cf0ba['request']),_0x3d0d79=this[_0x2abc64(-0x2be,-_0x1ee419._0x38da90,-_0x1ee419._0x1e73f5,-0x234)][_0x4ad114(_0x1ee419._0x18eb7d,0x4b6,_0x1ee419._0x21be50,_0x1ee419._0x4c3cc1)](this[_0x4ad114(0x518,0x544,0x5ea,0x5d7)],_0x4cf0ba[_0x2abc64(-_0x1ee419._0x4e9b0d,-_0x1ee419._0x2feab6,-0xe9,-0x9a)]);if(!_0x3d0d79)throw this[_0x4ad114(_0x1ee419._0x212986,0x4c2,_0x1ee419._0x45eca1,0x50d)]();return{'baseUrl':this[_0x2abc64(-_0x1ee419._0x386f32,-0x1d0,-0x23d,-_0x1ee419._0x2015a2)]['resolveBaseUrl'](this['baseUrl'],_0x4cf0ba[_0x2abc64(-0x16c,_0x1ee419._0x133a83,-0x101,-_0x1ee419._0xfc1c6a)]),'credential':_0x3d0d79,'request':_0x2a5ece,'session':_0x4cf0ba[_0x4ad114(0x535,_0x1ee419._0x518247,_0x1ee419._0xa93311,_0x1ee419._0x1e3cdf)]};}[_0x3749d0(-0xc6,0x1,-0x17,-0x68)](_0x4ba948){const _0x574152={_0x56bb1f:0x315,_0x322084:0x2e2,_0x2999a5:0x2e5,_0xbb7fbe:0x275},_0x2fb108={_0x258008:0xb5,_0x5b0289:0xdc,_0x338ce6:0x236},_0x55b22b={_0x3d37f6:0x9d,_0x35b2a3:0x63};function _0x4b68d4(_0x1c890c,_0x28e109,_0x34698b,_0x5ac4d2){return _0x5da579(_0x28e109- -_0x55b22b._0x3d37f6,_0x28e109-_0x55b22b._0x35b2a3,_0x34698b-0x194,_0x5ac4d2);}function _0x13026e(_0xcc67d4,_0x57989e,_0x1a213c,_0x571500){return _0x3749d0(_0xcc67d4-_0x2fb108._0x258008,_0x57989e-_0x2fb108._0x5b0289,_0x1a213c- -_0x2fb108._0x338ce6,_0x57989e);}return{...structuredClone(_0x4ba948),..._0x4ba948[_0x4b68d4(0x2f3,0x2e2,_0x574152._0x56bb1f,0x392)]===void 0x0&&this[_0x4b68d4(0x2b3,_0x574152._0x322084,_0x574152._0x2999a5,_0x574152._0xbb7fbe)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};}async[_0x5da579(0x2ed,0x363,0x339,0x35b)](_0x536014,_0x4c9c09,_0x205494,_0x4f49bf={},_0x2a731c=!![]){const _0x298f16={_0x7c4ae6:0x2ba,_0x2852b4:0x21f,_0x10cae9:0x2b8,_0x28893c:0x1d0,_0x40a47f:0x298,_0x110856:0x232,_0x1e27c3:0x277,_0x4b068f:0x321,_0x541b51:0x34f,_0xd0c046:0x2e3,_0x3f1b7c:0x256,_0x286500:0x2ff,_0x4a6699:0x2d6,_0x504696:0x1fe,_0x4f9209:0x2ca,_0x6e8fcf:0x230,_0xd65293:0x1ef,_0x4cc102:0x18b,_0x2bca39:0x2a8,_0x561419:0x202,_0x383733:0x4af,_0x587a86:0x406,_0x2312c5:0x503,_0x2abe14:0x3c8,_0x4ccdd4:0x3a9,_0x3e7c38:0x3bb,_0x917333:0x30f,_0x2f36aa:0x273,_0x248883:0x2f8,_0x365f7f:0x407,_0x46eab8:0x34e,_0x5e1160:0x2d3,_0x5a6c83:0x2e9,_0x2e90b1:0x340,_0x4e1852:0x28e,_0x882aad:0x2a0,_0x529940:0x20a,_0x567384:0x24f,_0x1b33c2:0x3e2,_0x86de2b:0x3a9,_0x206783:0x438,_0x28c248:0x4b6,_0x1dbf33:0x3f5,_0x3b66f2:0x47e,_0x4b30d1:0x4e8},{signal:_0x26f636}=_0x4f49bf,_0x5cafc3=async()=>{const _0xd112b2={_0x105212:0x274},_0x3a06f9={_0x4cecf9:0x105},_0x33f07d=await this[_0x1fe8f4(_0x298f16._0x7c4ae6,0x249,_0x298f16._0x2852b4,_0x298f16._0x10cae9)](_0x536014,_0x26f636);let _0x14f7c5;try{_0x14f7c5=_0x4c9c09[_0x1fe8f4(_0x298f16._0x28893c,0x296,_0x298f16._0x40a47f,0x277)](_0x33f07d[_0x1fe8f4(0x1f2,_0x298f16._0x110856,0x285,_0x298f16._0x1e27c3)]);}catch(_0x5a2861){if(_0x5a2861 instanceof Error)throw new ProviderRequestConstructionError(_0x5a2861[_0x1fe8f4(0x2b4,_0x298f16._0x4b068f,_0x298f16._0x541b51,_0x298f16._0xd0c046)]);throw _0x5a2861;}if(!_0x14f7c5[_0x1fe8f4(0x2bc,_0x298f16._0x3f1b7c,_0x298f16._0x286500,_0x298f16._0x4a6699)])throw new ProviderRequestConstructionError('Surface\x20'+_0x4c9c09['id']+_0x1fe8f4(_0x298f16._0x504696,_0x298f16._0x4f9209,0x23f,0x1bf));function _0x1fe8f4(_0x1a7d1d,_0x2e4a15,_0x2f4c30,_0x457a29){return _0x1568(_0x1a7d1d-_0x3a06f9._0x4cecf9,_0x2f4c30);}function _0x18d00d(_0x1c0de5,_0x41879d,_0x417f64,_0x173d05){return _0x1568(_0x417f64-_0xd112b2._0x105212,_0x173d05);}const _0x471972=await this[_0x1fe8f4(_0x298f16._0x6e8fcf,0x2a8,_0x298f16._0xd65293,_0x298f16._0x4cc102)]({'request':_0x33f07d[_0x1fe8f4(0x1f2,0x160,_0x298f16._0x2bca39,_0x298f16._0x561419)],'body':_0x14f7c5[_0x18d00d(_0x298f16._0x383733,_0x298f16._0x587a86,0x47e,_0x298f16._0x2312c5)],'credential':_0x33f07d['credential'],'session':_0x33f07d[_0x1fe8f4(0x320,0x3ef,_0x298f16._0x2abe14,0x30b)],'stream':_0x205494},{'accept':_0x14f7c5[_0x18d00d(_0x298f16._0x4ccdd4,0x370,_0x298f16._0x3e7c38,0x340)]??(_0x205494?'text/event-stream':'application/json'),'includeContentType':_0x14f7c5[_0x1fe8f4(_0x298f16._0x917333,0x360,_0x298f16._0x2f36aa,_0x298f16._0x248883)]!==void 0x0});for(const [_0x515647,_0x200b35]of Object[_0x18d00d(0x295,_0x298f16._0x365f7f,_0x298f16._0x46eab8,0x3fe)](_0x14f7c5['headers']??{})){_0x471972[_0x18d00d(_0x298f16._0x5e1160,0x3e7,0x359,0x382)](_0x515647,_0x200b35);}return this[_0x1fe8f4(_0x298f16._0x5a6c83,_0x298f16._0x2e90b1,_0x298f16._0x4e1852,_0x298f16._0x882aad)](''+_0x33f07d[_0x1fe8f4(_0x298f16._0x529940,0x1b5,0x143,_0x298f16._0x567384)]+_0x14f7c5['path'],{'method':'POST','headers':_0x471972,..._0x14f7c5[_0x1fe8f4(0x30f,0x250,_0x298f16._0x1b33c2,0x2b8)]!==void 0x0?{'body':JSON[_0x18d00d(0x502,_0x298f16._0x86de2b,_0x298f16._0x206783,_0x298f16._0x28c248)](_0x14f7c5[_0x18d00d(0x4b1,_0x298f16._0x1dbf33,_0x298f16._0x3b66f2,_0x298f16._0x4b30d1)])}:{},'signal':_0x26f636});};return _0x2a731c?await this['sendWithRetries'](_0x5cafc3,_0x4f49bf):await _0x5cafc3();}async*[_0x5da579(0x3a6,0x3e7,0x3d8,0x360)](_0x312891,_0x105847,_0x3b8ec9={}){const _0x3ca0c1={_0x443f47:0x144,_0x459552:0xfe,_0xb1c078:0x142,_0x2f0eeb:0xcc,_0x3a6b2e:0x2,_0x1978b2:0x1f9,_0x438c38:0x13e,_0x490eee:0x1f,_0x1cffd6:0x4c,_0x13b548:0x96,_0x388de1:0x85,_0x32146b:0xc2,_0x43fe4a:0x180,_0x57c2a5:0x29,_0x430dd3:0xa5,_0x42f229:0x1cc,_0x44be64:0x18c},_0x3659b9={_0x498804:0x3eb,_0x2bd170:0x68};function _0x105d4f(_0x3398b7,_0x37e193,_0x7bd5a1,_0x3a90a0){return _0x3749d0(_0x3398b7-0xd4,_0x37e193-0x1c9,_0x7bd5a1-0xde,_0x37e193);}const {signal:_0xb91f1e}=_0x3b8ec9;function _0xafeb17(_0x1fca77,_0x522cb6,_0x15dd0b,_0x1d30b4){return _0x5da579(_0x522cb6- -_0x3659b9._0x498804,_0x522cb6-_0x3659b9._0x2bd170,_0x15dd0b-0x2a,_0x1d30b4);}for(let _0x31771d=0x0;_0x31771d<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x31771d+=0x1){let _0x59b296=![];try{const _0x14e37a=await this[_0xafeb17(-_0x3ca0c1._0x443f47,-_0x3ca0c1._0x459552,-_0x3ca0c1._0xb1c078,-_0x3ca0c1._0x2f0eeb)](_0x312891,_0x105847,!![],_0x3b8ec9,![]);if(!_0x14e37a['ok'])throw await this['toApiError'](_0x14e37a);const _0x539125=_0x105847['createStreamParser']?.(_0x312891);if(!_0x539125?.[_0xafeb17(0x6,-0x5a,-_0x3ca0c1._0x3a6b2e,-0x6b)])throw new Error('Surface\x20'+_0x105847['id']+_0xafeb17(-_0x3ca0c1._0x1978b2,-_0x3ca0c1._0x438c38,-0x1e7,-0x14c));for await(const _0x5727db of iterateSseEvents(_0x14e37a,_0xb91f1e)){const _0x14e7d7=_0x539125['consumeSseEvent'](_0x5727db);for(const _0x3bf468 of _0x14e7d7){_0x59b296=!![],yield _0x3bf468;}}yield{'type':'done','response':_0x539125[_0xafeb17(-0xf3,-0x85,-0x1d,-0x156)]()};return;}catch(_0x2de27f){if(_0x59b296||!this[_0xafeb17(_0x3ca0c1._0x490eee,-_0x3ca0c1._0x1cffd6,-0x99,-_0x3ca0c1._0x13b548)](_0x2de27f)||_0x31771d===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x2de27f;const _0x26d64c=this[_0x105d4f(_0x3ca0c1._0x388de1,0x13b,_0x3ca0c1._0x32146b,_0x3ca0c1._0x43fe4a)](void 0x0,_0x31771d),_0x22849b={'type':'provider_retry','attempt':_0x31771d+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x2de27f instanceof Error?_0x2de27f['message']:String(_0x2de27f),'delayMs':_0x26d64c,'reason':this[_0xafeb17(-0x69,_0x3ca0c1._0x57c2a5,-0x1c,_0x3ca0c1._0x430dd3)](_0x2de27f)?'transport_error':'stream_error'};yield _0x22849b,await this[_0x105d4f(0x19d,_0x3ca0c1._0x42f229,0x13d,_0x3ca0c1._0x44be64)](_0x26d64c,_0xb91f1e);}}}async*[_0x3749d0(0x4d,0x124,0x78,0x10b)](_0x565228,_0x336585,_0x10e4fa){const _0x4c9874={_0x4eb204:0x31a,_0x4239f1:0x324,_0x16f99c:0x25f,_0x530d2f:0x242,_0x1ac456:0xe4,_0x389117:0x2a,_0x2e9e65:0x46,_0x2c0ea9:0x249,_0x2ddfa7:0x23a,_0x2b642b:0x193,_0x2dfa00:0x5f,_0x34619c:0x262,_0xd39d31:0x24d,_0x5afeda:0x1f0,_0x29e9da:0x22,_0x126897:0xbd,_0x3141c9:0x3b,_0x242996:0x1b7,_0x36886b:0x2,_0x54e513:0xa8,_0x194162:0xe7,_0x227bc7:0xbb,_0x4aa564:0x5b,_0x28440b:0x65,_0xd32a2d:0x4a,_0x50f5b3:0x31,_0x1da577:0xa,_0x2f80ca:0xc4,_0x39edd0:0xef,_0x94c7ae:0x134,_0x4a6aae:0x20f,_0x2b0982:0x17d,_0xe8964d:0x197,_0x508e0e:0x220,_0x19eb34:0x1f9,_0x1ad757:0x245,_0x161239:0xa7,_0x282b94:0x72,_0x1ffd31:0x8f,_0x160a22:0xc1,_0x4dbbc9:0x184,_0x15b8eb:0x280,_0x5b4389:0x192,_0x3e3572:0x181,_0x5447f7:0x217,_0x3ac396:0x18f,_0x317a09:0x70,_0x324728:0x40,_0x54914d:0x176,_0x52631a:0x52,_0x5cd051:0x27,_0x1ce7ea:0x14a,_0x5e3d73:0x295,_0x56068e:0x27c,_0x5c3be0:0x115,_0x5ddec2:0x11e,_0x3a98a5:0xbc,_0x3855db:0x84,_0x21dfa6:0x1e9,_0x3ea3af:0x2c6,_0xf1c349:0x20f,_0x57fb0b:0x1dd,_0x39748d:0x287,_0x2b2584:0x256,_0x2d7884:0x27,_0x5aeb0e:0x6b,_0x57ff8b:0x82,_0x4744c:0x4b,_0x2d6fd6:0x5c,_0x37c0b3:0x268,_0x4da1f8:0x2b2,_0x596754:0xfc,_0x39fbc3:0x58,_0x2d2d49:0x166,_0x386049:0x159,_0x2bf6d2:0x20b,_0x44a6aa:0x1e5,_0x392879:0x141},_0x528250={_0x7554f:0x16a,_0x1be516:0x67},_0xb9547e={_0x761cf2:0x48},_0x5ccbdc=await this[_0x2c4423(_0x4c9874._0x4eb204,0x2a0,_0x4c9874._0x4239f1,_0x4c9874._0x16f99c)](_0x565228,_0x10e4fa),_0x20c78e=_0x336585[_0x2c4423(0x10e,_0x4c9874._0x530d2f,_0x4c9874._0x1ac456,0x175)](_0x5ccbdc[_0x42f6a6(-_0x4c9874._0x389117,-_0x4c9874._0x2e9e65,-0x1a,-0xc8)]),_0x2878bc=_0x336585[_0x2c4423(_0x4c9874._0x2c0ea9,0x186,_0x4c9874._0x2ddfa7,_0x4c9874._0x2b642b)]?.(_0x565228);if(!_0x2878bc?.[_0x42f6a6(-0x76,-0x73,-_0x4c9874._0x2dfa00,-0x9e)])throw new Error(_0x2c4423(0x28b,_0x4c9874._0x34619c,0x1db,0x20f)+_0x336585['id']+_0x2c4423(0x1f8,_0x4c9874._0xd39d31,0x27b,_0x4c9874._0x5afeda));const _0x29bb17=_0x20c78e[_0x42f6a6(-_0x4c9874._0x29e9da,-_0x4c9874._0x126897,-0x3a,-_0x4c9874._0x3141c9)]??(_0x20c78e[_0x2c4423(0x2c7,_0x4c9874._0x242996,0x328,0x261)]?(''+_0x5ccbdc[_0x42f6a6(-0x8a,0xa3,-_0x4c9874._0x36886b,_0x4c9874._0x54e513)]+_0x20c78e[_0x42f6a6(0xad,_0x4c9874._0x194162,0xb0,0xe0)])[_0x42f6a6(-0xfe,-_0x4c9874._0x227bc7,-_0x4c9874._0x4aa564,-_0x4c9874._0x28440b)](/^http:/,_0x42f6a6(-0x89,_0x4c9874._0xd32a2d,_0x4c9874._0x50f5b3,_0x4c9874._0x1da577))[_0x42f6a6(-0x28,-_0x4c9874._0x2f80ca,-_0x4c9874._0x4aa564,-0x4a)](/^https:/,_0x2c4423(_0x4c9874._0x39edd0,_0x4c9874._0x94c7ae,0x61,0x135)):void 0x0);if(!_0x29bb17)throw new ProviderRequestConstructionError(_0x2c4423(0x282,0x1f8,0x266,_0x4c9874._0x4a6aae)+_0x336585['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x107c86=await this[_0x2c4423(0x203,0x268,_0x4c9874._0x2b0982,0x1d5)]({'request':_0x5ccbdc[_0x2c4423(0x21c,0x1a9,0xe2,_0x4c9874._0xe8964d)],'body':_0x20c78e[_0x2c4423(0x166,0x173,_0x4c9874._0x4a6aae,_0x4c9874._0x508e0e)],'credential':_0x5ccbdc[_0x2c4423(_0x4c9874._0x19eb34,0x253,0x28f,_0x4c9874._0x1ad757)],'session':_0x5ccbdc['session'],'stream':!![]},{'accept':_0x20c78e['accept']??_0x42f6a6(-_0x4c9874._0x161239,_0x4c9874._0x282b94,0xf,-_0x4c9874._0x1ffd31),'includeContentType':![]});for(const [_0x41a630,_0x43dc3e]of Object[_0x2c4423(_0x4c9874._0x160a22,0xc0,0x24c,_0x4c9874._0x4dbbc9)](_0x20c78e[_0x2c4423(_0x4c9874._0x15b8eb,_0x4c9874._0x5b4389,_0x4c9874._0x3e3572,0x1b1)]??{})){_0x107c86[_0x2c4423(_0x4c9874._0x5447f7,0xfb,0x21a,_0x4c9874._0x3ac396)](_0x41a630,_0x43dc3e);}_0x107c86[_0x42f6a6(-0x1b,_0x4c9874._0x317a09,-_0x4c9874._0x324728,-0xce)](_0x2c4423(0x264,0x130,_0x4c9874._0x54914d,0x1f1));const _0x1cf31d=this[_0x42f6a6(0x57,-_0x4c9874._0x52631a,_0x4c9874._0x5cd051,-0x59)]({'headers':Object[_0x2c4423(_0x4c9874._0x1ce7ea,_0x4c9874._0x5e3d73,_0x4c9874._0x56068e,0x1c3)](_0x107c86[_0x2c4423(_0x4c9874._0x5c3be0,0x132,_0x4c9874._0x5ddec2,0x184)]()),'url':_0x29bb17});function _0x42f6a6(_0x55cc05,_0x14c93c,_0x3149d8,_0x161b0b){return _0x5da579(_0x3149d8- -0x31b,_0x14c93c-0x145,_0x3149d8-_0xb9547e._0x761cf2,_0x55cc05);}function _0x2c4423(_0x354bfa,_0x4770ed,_0x4469aa,_0x1b28b1){return _0x5da579(_0x1b28b1- -_0x528250._0x7554f,_0x4770ed-_0x528250._0x1be516,_0x4469aa-0x138,_0x4469aa);}try{throwIfAborted(_0x10e4fa);_0x1cf31d[_0x42f6a6(0x18d,_0x4c9874._0x3a98a5,0x101,_0x4c9874._0x3855db)]!==WebSocket[_0x2c4423(_0x4c9874._0x21dfa6,0x234,0x216,0x28f)]&&await waitForWebSocketOpen(_0x1cf31d,_0x10e4fa);throwIfAborted(_0x10e4fa);_0x20c78e[_0x2c4423(_0x4c9874._0x3ea3af,_0x4c9874._0xf1c349,0x1cb,_0x4c9874._0x508e0e)]!==void 0x0&&_0x1cf31d[_0x2c4423(_0x4c9874._0x57fb0b,_0x4c9874._0x39748d,_0x4c9874._0x2b2584,0x269)](JSON['stringify'](_0x20c78e['initialEvent']));for await(const _0x3d8e5d of iterateWebSocketMessages(_0x1cf31d,_0x10e4fa)){yield*_0x2878bc[_0x42f6a6(-0x89,-_0x4c9874._0x2d7884,-0x5f,-0xd8)](_0x3d8e5d);if(_0x2878bc[_0x42f6a6(0x3d,0x96,-0xb,_0x4c9874._0x5aeb0e)]?.())break;}yield{'type':_0x42f6a6(-0xd7,-0x73,-0x57,-_0x4c9874._0x57ff8b),'response':_0x2878bc[_0x42f6a6(0x8e,-0x6e,_0x4c9874._0x4744c,-_0x4c9874._0x2d6fd6)]()};}finally{_0x1cf31d[_0x2c4423(_0x4c9874._0x37c0b3,0x2ae,0x386,_0x4c9874._0x4da1f8)]===WebSocket['OPEN']&&_0x1cf31d['close'](0x3e8,_0x10e4fa?.[_0x42f6a6(0xf,-_0x4c9874._0x596754,-_0x4c9874._0x39fbc3,-0xbd)]?_0x2c4423(0x96,_0x4c9874._0x2d2d49,0xd8,_0x4c9874._0x386049):_0x2c4423(0x87,_0x4c9874._0x2bf6d2,_0x4c9874._0x44a6aa,_0x4c9874._0x392879));}}};async function createHttpError(_0x5d058a){const _0x544fdc={_0x4d50bb:0x5b7,_0x5bcfc7:0x541,_0x19bb28:0x498,_0x2567b8:0x35e,_0x3370a0:0x401,_0x12baf7:0x35d,_0x45f7ea:0x3ca,_0x26618a:0x3e2,_0x2cccab:0x484},_0x14ac6d={_0x26637b:0x71,_0x30da68:0x90},_0x54c8ef={_0x51dc89:0x130},_0x2b892d=await _0x5d058a[_0x2a6cd5(_0x544fdc._0x4d50bb,_0x544fdc._0x5bcfc7,0x4d1,_0x544fdc._0x19bb28)]();function _0x2a6cd5(_0x529788,_0x466887,_0x446c96,_0x529e11){return _0x3749d0(_0x529788-_0x54c8ef._0x51dc89,_0x466887-0x1ec,_0x466887-0x401,_0x446c96);}const _0x478828=_0x2b892d[_0x58b4fe(0x347,0x2dd,_0x544fdc._0x2567b8,0x2b2)]()||_0x5d058a['statusText']||_0x58b4fe(_0x544fdc._0x3370a0,0x37c,_0x544fdc._0x12baf7,_0x544fdc._0x45f7ea);function _0x58b4fe(_0x486072,_0x259fb,_0x2e1627,_0x106454){return _0x5da579(_0x2e1627- -0x91,_0x259fb-_0x14ac6d._0x26637b,_0x2e1627-_0x14ac6d._0x30da68,_0x106454);}return new Error(_0x2a6cd5(_0x544fdc._0x26618a,0x401,0x47a,_0x544fdc._0x2cccab)+_0x5d058a['status']+':\x20'+_0x478828);}var AnthropicProviderAdapter=class{['authScheme'];[_0x5da579(0x2b9,0x387,0x2ea,0x32c)];[_0x3749d0(-0x99,-0x2,0x2,-0x78)];constructor(_0x5891cb){const _0x30b8eb={_0x2b6cda:0x2a1,_0x230e60:0x222,_0x21d01c:0x2a8,_0x22c6cd:0x316,_0x154e0e:0x2ad,_0x12b551:0x2a3,_0x4486b0:0x3af,_0x4f8ff5:0x385,_0x245b0c:0x483,_0x811781:0x3e8};this[_0x5f1361(_0x30b8eb._0x2b6cda,_0x30b8eb._0x230e60,_0x30b8eb._0x21d01c,_0x30b8eb._0x22c6cd)]=_0x5891cb['authScheme'],this[_0x5f1361(0x349,0x338,0x2a3,0x1fd)]=_0x5891cb[_0x5f1361(0x29f,_0x30b8eb._0x154e0e,_0x30b8eb._0x12b551,0x29e)];function _0x5f1361(_0x3ccb5a,_0x413f69,_0xc80df,_0x3650cd){return _0x3749d0(_0x3ccb5a-0x19f,_0x413f69-0x1a3,_0xc80df-0x2cf,_0x413f69);}function _0x49d469(_0x289074,_0x404bf9,_0x2a205b,_0x21ea8c){return _0x3749d0(_0x289074-0x13c,_0x404bf9-0x83,_0x289074-0x3ad,_0x404bf9);}this[_0x49d469(_0x30b8eb._0x4486b0,_0x30b8eb._0x4f8ff5,_0x30b8eb._0x245b0c,_0x30b8eb._0x811781)]=_0x5891cb['protocolVersion'];}[_0x3749d0(0x5b,0x11,0xd4,0x1a8)](){return new Error('AnthropicModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async['createHeaders'](_0x41d83f,_0x5ade96){const _0x5a868c={_0x589aa5:0x3c7,_0x37146e:0x419,_0x15531e:0x2e9,_0x472f13:0x35a,_0x55e59e:0x398,_0x4c72a2:0x493,_0x9a688e:0x431,_0x74e0a2:0x512,_0x58c71a:0x5b9,_0x181c0a:0x4ef,_0x179427:0x4ee,_0x543a95:0x409,_0x42b704:0x3cd,_0x2f2ae2:0x3dd,_0x5bb911:0x329,_0x5cdf20:0x4ca,_0x45aff9:0x431,_0xa3b2fa:0x35d,_0x4673d4:0x36a,_0x2c9b15:0x3d9,_0x1dab1c:0x359,_0x96703e:0x3ae,_0x11e0d9:0x3b3,_0x35a3a1:0x47b,_0x4d17aa:0x46b,_0x226fb2:0x415,_0x17c97b:0x4d5,_0x371017:0x427,_0x52e88d:0x4e7,_0x28a872:0x620,_0x42bf8c:0x4e4,_0x421663:0x54e,_0x2f0af0:0x3a3,_0x2d9915:0x38c,_0x423906:0x449,_0x254f3a:0x41d,_0x4d847d:0x52c,_0x56ae49:0x567,_0x1de2e7:0x391,_0x321ddd:0x3f2,_0x1b693c:0x3c6,_0x2fe477:0x465,_0x259418:0x431},_0x4df1ae={_0x5a3439:0x2a},_0x3694d8={_0x5a2278:0x138,_0x3ba446:0x42},_0x395ca3=new Headers();_0x395ca3['set'](_0x26ce87(_0x5a868c._0x589aa5,_0x5a868c._0x37146e,0x540,0x493),_0x5ade96[_0x5052c1(_0x5a868c._0x15531e,_0x5a868c._0x472f13,0x2f2,_0x5a868c._0x55e59e)]),_0x395ca3[_0x26ce87(_0x5a868c._0x4c72a2,0x41f,0x465,_0x5a868c._0x9a688e)](_0x26ce87(_0x5a868c._0x74e0a2,_0x5a868c._0x58c71a,0x447,_0x5a868c._0x181c0a),this[_0x26ce87(0x382,_0x5a868c._0x179427,_0x5a868c._0x543a95,0x41f)]);_0x5ade96[_0x5052c1(0x471,0x3c9,_0x5a868c._0x42b704,_0x5a868c._0x2f2ae2)]!==![]&&_0x395ca3['set']('content-type',_0x5052c1(0x30a,_0x5a868c._0x5bb911,0x330,0x2ac));this['authScheme']==='bearer'?_0x395ca3[_0x26ce87(0x3df,0x4f4,_0x5a868c._0x5cdf20,_0x5a868c._0x45aff9)]('authorization',_0x5052c1(_0x5a868c._0xa3b2fa,_0x5a868c._0x4673d4,_0x5a868c._0x2c9b15,0x2ec)+_0x41d83f[_0x5052c1(_0x5a868c._0x1dab1c,_0x5a868c._0x96703e,_0x5a868c._0x11e0d9,_0x5a868c._0x35a3a1)][_0x5052c1(_0x5a868c._0x4d17aa,_0x5a868c._0x226fb2,0x450,_0x5a868c._0x17c97b)]):_0x395ca3[_0x26ce87(0x4e6,0x38c,0x3f3,0x431)]('x-api-key',_0x41d83f[_0x26ce87(0x4d6,_0x5a868c._0x371017,0x49b,_0x5a868c._0x52e88d)][_0x26ce87(0x510,_0x5a868c._0x28a872,_0x5a868c._0x42bf8c,_0x5a868c._0x421663)]);const _0x2f942e=await this[_0x26ce87(_0x5a868c._0x2f0af0,_0x5a868c._0x2d9915,0x3f8,0x3f1)]?.({'body':_0x41d83f[_0x5052c1(_0x5a868c._0x423906,_0x5a868c._0x254f3a,0x3c6,0x3a2)],'credential':_0x41d83f['credential'],'request':_0x41d83f[_0x26ce87(0x397,0x4b3,0x469,0x439)],'session':_0x41d83f[_0x26ce87(0x620,0x4b1,_0x5a868c._0x4d847d,_0x5a868c._0x56ae49)],'stream':_0x41d83f[_0x5052c1(0x336,_0x5a868c._0x1de2e7,_0x5a868c._0x321ddd,0x3a0)]});function _0x26ce87(_0x182f86,_0xb5c655,_0x4b1640,_0x3007a1){return _0x5da579(_0x3007a1-_0x3694d8._0x5a2278,_0xb5c655-0x121,_0x4b1640-_0x3694d8._0x3ba446,_0x182f86);}for(const [_0x28d3ab,_0x4c0e97]of Object[_0x26ce87(_0x5a868c._0x1b693c,0x3aa,_0x5a868c._0x2fe477,0x426)](_0x2f942e??{})){_0x395ca3[_0x26ce87(0x3f4,0x3f9,0x383,_0x5a868c._0x259418)](_0x28d3ab,_0x4c0e97);}function _0x5052c1(_0x420fd2,_0x39a659,_0x3e4a41,_0x232b42){return _0x3749d0(_0x420fd2-0x88,_0x39a659-_0x4df1ae._0x5a3439,_0x39a659-0x2e4,_0x232b42);}return _0x395ca3;}[_0x3749d0(-0x20,0x72,0x32,-0x3d)](_0xcf0865){return _0xcf0865;}[_0x3749d0(0x45,0xc3,0x31,-0x74)](_0x25321f,_0x290adc){return resolveSessionBaseUrl(_0x25321f,_0x290adc);}[_0x3749d0(0x100,-0xd,0xc8,0x76)](_0x3819a,_0x17ec45){return resolveApiCredential(_0x3819a,_0x17ec45);}async[_0x5da579(0x2ec,0x2c3,0x2bc,0x21b)](_0x33f295){return await createHttpError(_0x33f295);}},AnthropicModel=class extends RoutedModel{constructor(_0x317699={}){const _0xff971={_0x39013f:0xc3,_0x3af497:0x2f6,_0x59bf05:0x2c2,_0x1db27b:0x394,_0x438603:0x410,_0x28a96b:0x442,_0x2657ed:0x186,_0x5d6b82:0x223,_0x5757cc:0x23c,_0x10be3f:0x34a,_0x4ddc77:0x379,_0x3033bd:0x39a,_0x4ceb63:0x167,_0xa9fe7d:0x1af,_0x2c011e:0x29e,_0x4a23c5:0x23f,_0x55c587:0x267,_0x2c235b:0x92,_0x171e87:0x137,_0x524757:0xee,_0x502052:0x2f9,_0x46e85b:0x1e0,_0x8fba33:0x262,_0x4a69fb:0x7f,_0x16eb78:0x3e4,_0x2f4826:0x389,_0x578754:0x3b4,_0xc9fd2a:0x327,_0x24c29c:0x2ef,_0x44169f:0x348,_0x5dca19:0x38e,_0x2fdfbb:0x35f},_0x30f82f={_0x3e079f:0x4da,_0x3e6e5d:0x113,_0xbab34c:0x1dc};function _0x36d764(_0x1ae5d7,_0x5e429a,_0x4a6d34,_0x436ba3){return _0x5da579(_0x436ba3- -_0x30f82f._0x3e079f,_0x5e429a-_0x30f82f._0x3e6e5d,_0x4a6d34-_0x30f82f._0xbab34c,_0x4a6d34);}function _0x301636(_0x8746f7,_0x41c39c,_0x343644,_0x5317ea){return _0x3749d0(_0x8746f7-0x1d8,_0x41c39c-0x15a,_0x5317ea-0x28e,_0x343644);}super({'apiKey':_0x317699[_0x36d764(-0x15,-0x31,-_0xff971._0x39013f,-0x9f)],'baseUrl':trimTrailingSlashes(_0x317699[_0x301636(0x323,0x21e,_0xff971._0x3af497,_0xff971._0x59bf05)]??_0x301636(_0xff971._0x1db27b,_0xff971._0x438603,_0xff971._0x28a96b,0x375)),'fetch':_0x317699[_0x36d764(-_0xff971._0x2657ed,-0x1cb,-0x2f3,-_0xff971._0x5d6b82)],'maxTokens':_0x317699[_0x36d764(-0x20d,-_0xff971._0x5757cc,-0x234,-0x20a)]??0x4000,'model':_0x317699[_0x301636(_0xff971._0x10be3f,_0xff971._0x4ddc77,0x3d1,_0xff971._0x3033bd)]??'claude-sonnet-4-20250514','reasoning':_0x317699[_0x36d764(-0x213,-0xac,-_0xff971._0x4ceb63,-0x15b)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x317699[_0x301636(_0xff971._0xa9fe7d,_0xff971._0x2c011e,_0xff971._0x4a23c5,_0xff971._0x55c587)]??_0x36d764(-0xb2,-_0xff971._0x2c235b,-_0xff971._0x171e87,-_0xff971._0x524757),'headerResolver':_0x317699[_0x301636(0x2db,_0xff971._0x502052,_0xff971._0x46e85b,_0xff971._0x8fba33)],'protocolVersion':_0x317699['protocolVersion']??_0x36d764(-0x74,-_0xff971._0x4a69fb,-0x110,-_0xff971._0x171e87)}),'providerSessionResolver':_0x317699[_0x301636(_0xff971._0x16eb78,_0xff971._0x2f4826,_0xff971._0x578754,_0xff971._0xc9fd2a)],'requestMutators':_0x317699[_0x301636(_0xff971._0x24c29c,_0xff971._0x44169f,_0xff971._0x5dca19,_0xff971._0x2fdfbb)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x3749d0(0x11,0xe2,0x1f,0x2c)](_0x4a9fe1,_0x3207e1){return this['completeViaSurface'](_0x4a9fe1,ANTHROPIC_MESSAGES_SURFACE,_0x3207e1);}['stream'](_0x468693,_0x3113ff){const _0x511445={_0x4f1ced:0x174,_0x214ba9:0x1af},_0x1b1af3={_0x325c15:0xea};function _0x1fe11f(_0x24eaf8,_0x1eb94a,_0x1b2b9a,_0x1e6d5){return _0x3749d0(_0x24eaf8-_0x1b1af3._0x325c15,_0x1eb94a-0x7f,_0x24eaf8- -0x182,_0x1b2b9a);}return this[_0x1fe11f(-_0x511445._0x4f1ced,-0x173,-0xc4,-_0x511445._0x214ba9)](_0x468693,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x3113ff);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x3749d0(-0xc3,-0x100,-0x3d,0x8a),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x5da579(0x330,0x3c9,0x3d9,0x29e),OPENAI_RESPONSES_SURFACE=_0x3749d0(0x6e,0x75,0x5c,0xc7),OPENAI_RESPONSES_STREAM_SURFACE='openai-responses-stream',OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x3749d0(-0x2b,-0x41,0x57,0xdb),OpenAiApiError=class extends Error{[_0x3749d0(0x63,0xcd,0xaa,0x99)];[_0x5da579(0x41e,0x491,0x3b0,0x42a)];constructor(_0x506471,_0x3b6860,_0x585396){const _0x2be345={_0x35114c:0x1ac,_0x44df3f:0x26a,_0xe06302:0x24e,_0x2236a4:0x23b},_0x234bd3={_0x33341f:0x77},_0x20206f={_0x102c9e:0x1d8,_0x3a41fd:0x52};super(_0x585396),this[_0x4150be(_0x2be345._0x35114c,0x1d1,_0x2be345._0x44df3f,_0x2be345._0xe06302)]='OpenAiApiError',this['status']=_0x506471;function _0x4150be(_0x2edf0d,_0x549271,_0x5199d9,_0x243e9c){return _0x5da579(_0x549271- -_0x20206f._0x102c9e,_0x549271-_0x20206f._0x3a41fd,_0x5199d9-0x4f,_0x2edf0d);}function _0x408630(_0x37d448,_0x1ece68,_0x4e251e,_0x47f08c){return _0x3749d0(_0x37d448-0x55,_0x1ece68-_0x234bd3._0x33341f,_0x47f08c-0x35c,_0x1ece68);}this[_0x4150be(_0x2be345._0x2236a4,0x246,0x26f,0x2a6)]=_0x3b6860;}};function stringifySystem(_0x2de56b){const _0x5c6dc0={_0x7dbcb7:0xd,_0xecde2f:0x31,_0x5c2f11:0x2a8},_0x1d9fa5={_0x5930ef:0x1a6},_0x493dfb={_0xbbdfb1:0x328,_0x11a332:0x16d};function _0x3a7071(_0x9f689d,_0x24d333,_0x238ec1,_0x47cb3e){return _0x5da579(_0x238ec1- -_0x493dfb._0xbbdfb1,_0x24d333-0x82,_0x238ec1-_0x493dfb._0x11a332,_0x24d333);}function _0x5571ae(_0x50aca1,_0x3f097e,_0x4ad82f,_0xe8b489){return _0x3749d0(_0x50aca1-0x181,_0x3f097e-_0x1d9fa5._0x5930ef,_0xe8b489-0x22b,_0x50aca1);}return _0x2de56b[_0x3a7071(0x13,_0x5c6dc0._0x7dbcb7,-_0x5c6dc0._0xecde2f,0x61)](_0x56bf9e=>_0x56bf9e['text'])[_0x5571ae(0x1f7,0x297,0x303,_0x5c6dc0._0x5c2f11)]('\x0a\x0a');}function createToolDefinitions(_0x550bc7){const _0x589d97={_0x3386c7:0xdd,_0x166f28:0x21d,_0x1fff7d:0x376},_0x1c3663={_0x21e810:0x522,_0x4cd156:0x233,_0x2e028b:0x246,_0x232fda:0x17b,_0x4805cc:0x2ed,_0x3af92f:0x31f},_0x34114d={_0xff19c6:0x3b0},_0xc7ed37={_0x35ac7e:0x22c},_0x5bcf74={_0x129a41:0x111,_0x1884ad:0x299};function _0x2dbed8(_0x1d37f7,_0x381893,_0x7d908e,_0x4a90bb){return _0x3749d0(_0x1d37f7-0x173,_0x381893-_0x5bcf74._0x129a41,_0x7d908e-_0x5bcf74._0x1884ad,_0x4a90bb);}function _0x4a2afe(_0x2e3b8f,_0x19e478,_0x2c2a7f,_0x1630c3){return _0x5da579(_0x2c2a7f- -_0xc7ed37._0x35ac7e,_0x19e478-0x16a,_0x2c2a7f-0x18d,_0x2e3b8f);}if(_0x550bc7[_0x4a2afe(0xa0,_0x589d97._0x3386c7,0x8a,0xa0)]===0x0)return void 0x0;return _0x550bc7[_0x2dbed8(_0x589d97._0x166f28,_0x589d97._0x1fff7d,0x2ab,0x2a1)](_0x495d54=>{const _0x16b7b3={_0x51fa40:0x364,_0x1ef850:0x1a6};function _0x1377a2(_0x4bb2b1,_0xe3b71a,_0x378940,_0x42196e){return _0x4a2afe(_0x4bb2b1,_0xe3b71a-0x75,_0x378940-_0x16b7b3._0x51fa40,_0x42196e-_0x16b7b3._0x1ef850);}function _0x44e6e9(_0xcd931,_0x2c5697,_0x5d6da8,_0x411a74){return _0x4a2afe(_0x5d6da8,_0x2c5697-0x105,_0xcd931- -_0x34114d._0xff19c6,_0x411a74-0x178);}return{'type':_0x1377a2(0x4ce,0x5d3,_0x1c3663._0x21e810,0x536),'function':{'name':_0x495d54[_0x44e6e9(-_0x1c3663._0x4cd156,-0x181,-_0x1c3663._0x2e028b,-_0x1c3663._0x232fda)],'description':_0x495d54['description'],'parameters':_0x495d54[_0x44e6e9(-0x2ce,-0x21c,-_0x1c3663._0x4805cc,-_0x1c3663._0x3af92f)]}};});}function isImageToolResultBlock(_0x603ada){const _0x4ec7c2={_0x1bc0e2:0x512,_0x596bdb:0x52f,_0x5453fd:0x28a,_0x4e52a2:0x2ac,_0x25b98b:0x557,_0x2235c0:0x59f,_0x590474:0x4a9,_0x4d3f60:0x40d,_0x14d620:0x5ca,_0x453709:0x5b8,_0xf17765:0x39a,_0x384a71:0x2ca,_0x3f9129:0x397,_0x115495:0x3b5,_0x4c1640:0x400,_0xa7cd3:0x370,_0x56dc34:0x3be,_0x31cfae:0x31c,_0x40103f:0x287},_0xaabb51={_0x4233f9:0x1ca,_0x2c753c:0x7c},_0x5c997a={_0x4cadd:0xc4,_0x3f5f1c:0x280};if(typeof _0x603ada!=='object'||_0x603ada===null||Array[_0x1543b3(_0x4ec7c2._0x1bc0e2,0x514,0x59b,_0x4ec7c2._0x596bdb)](_0x603ada))return![];function _0x40a0ac(_0x1834f7,_0x5e5cdd,_0x4811cd,_0x1f87c6){return _0x3749d0(_0x1834f7-_0x5c997a._0x4cadd,_0x5e5cdd-0x1aa,_0x4811cd-_0x5c997a._0x3f5f1c,_0x1f87c6);}function _0x1543b3(_0x197a06,_0x2824e6,_0x55522b,_0x500018){return _0x5da579(_0x197a06-0x1ba,_0x2824e6-_0xaabb51._0x4233f9,_0x55522b-_0xaabb51._0x2c753c,_0x55522b);}const _0x267545=_0x603ada;return _0x267545[_0x40a0ac(0x22d,0x1e8,_0x4ec7c2._0x5453fd,_0x4ec7c2._0x4e52a2)]==='image'&&_0x267545[_0x1543b3(0x5b6,_0x4ec7c2._0x25b98b,0x588,_0x4ec7c2._0x2235c0)]?.[_0x1543b3(_0x4ec7c2._0x590474,0x492,0x3f5,_0x4ec7c2._0x4d3f60)]===_0x1543b3(_0x4ec7c2._0x14d620,0x5a9,_0x4ec7c2._0x453709,0x66e)&&typeof _0x267545[_0x40a0ac(0x326,0x373,0x397,0x3e2)][_0x40a0ac(0x444,0x422,_0x4ec7c2._0xf17765,0x39c)]===_0x40a0ac(0x3f3,_0x4ec7c2._0x384a71,0x33c,0x3a6)&&typeof _0x267545[_0x40a0ac(0x447,0x42e,_0x4ec7c2._0x3f9129,_0x4ec7c2._0x115495)][_0x40a0ac(0x43f,_0x4ec7c2._0x4c1640,_0x4ec7c2._0xa7cd3,_0x4ec7c2._0x56dc34)]===_0x40a0ac(_0x4ec7c2._0x31cfae,_0x4ec7c2._0x40103f,0x33c,0x2c4);}function getToolResultText(_0x2a8fcc){const _0x4b32a5={_0x4a22c5:0x217,_0x12395c:0x28d,_0x5327a1:0x2b0,_0x229f5f:0x27d,_0x1a637a:0x1ca,_0x43b8aa:0x156,_0x2b290b:0x16e},_0xbdfbe4={_0x556b54:0x233,_0x569178:0x2b9,_0x1f0647:0x21d,_0x36c9db:0x19e},_0x2a5434={_0x3f2b0a:0x7e,_0x56fae1:0x145},_0x467a4a={_0x59baee:0x14e,_0x537be8:0x52};if(typeof _0x2a8fcc===_0x5d64f3(0x15c,0x14e,_0x4b32a5._0x4a22c5,0x185))return _0x2a8fcc;function _0x229c79(_0x22a638,_0x4a7144,_0xdaf250,_0x5b29db){return _0x5da579(_0x5b29db- -0x172,_0x4a7144-_0x467a4a._0x59baee,_0xdaf250-_0x467a4a._0x537be8,_0xdaf250);}const _0x3eafe8=_0x2a8fcc['filter'](_0x517266=>{function _0x24ba19(_0x6f6bf2,_0x3a09f6,_0x484409,_0x57002b){return _0x5d64f3(_0x57002b,_0x3a09f6-0x80,_0x484409- -_0x2a5434._0x3f2b0a,_0x57002b-_0x2a5434._0x56fae1);}return typeof _0x517266==='object'&&_0x517266!==null&&_0x517266['type']===_0x24ba19(_0xbdfbe4._0x556b54,_0xbdfbe4._0x569178,_0xbdfbe4._0x1f0647,_0xbdfbe4._0x36c9db);})['map'](_0x1a93a8=>_0x1a93a8[_0x229c79(0x26d,0x21d,0x2ae,0x2b3)])['join']('\x0a\x0a')[_0x229c79(_0x4b32a5._0x12395c,0x2dc,_0x4b32a5._0x5327a1,_0x4b32a5._0x229f5f)]();function _0x5d64f3(_0x3ca823,_0x49600e,_0xb9a70c,_0x1b3293){return _0x5da579(_0xb9a70c- -0x18a,_0x49600e-0x147,_0xb9a70c-0x146,_0x3ca823);}return _0x3eafe8[_0x5d64f3(0x96,0xf6,0x12c,_0x4b32a5._0x1a637a)]>0x0?_0x3eafe8:_0x5d64f3(_0x4b32a5._0x43b8aa,0x1e2,_0x4b32a5._0x2b290b,0x19e);}function getToolResultImages(_0x3d10e2){const _0x13e24b={_0x3c025c:0x45},_0x1c4e76={_0x46bb6c:0x53d,_0x538c05:0x28,_0x5d8c5f:0xb0};function _0x56d571(_0x5e01e3,_0x41e359,_0x594caf,_0x506f3f){return _0x5da579(_0x41e359- -_0x1c4e76._0x46bb6c,_0x41e359-_0x1c4e76._0x538c05,_0x594caf-_0x1c4e76._0x5d8c5f,_0x506f3f);}return Array['isArray'](_0x3d10e2)?_0x3d10e2[_0x56d571(-0x1b1,-0x10d,-0x90,-_0x13e24b._0x3c025c)](isImageToolResultBlock):[];}function parseToolInput2(_0x2f9322){const _0x8cb8f6={_0x42e162:0x28e,_0x2d2e43:0x1d1,_0x391a95:0x233,_0x39e2c6:0x2a8},_0x3f3e3d={_0x21cbad:0x101},_0x2baa3f={_0x57ff73:0x168};if(_0x2f9322[_0x13b396(-0x2d1,-_0x8cb8f6._0x42e162,-0x2d8,-0x36f)]===0x0)return{};function _0x40edf2(_0x3683d1,_0x33966f,_0x15121c,_0x5df7e6){return _0x3749d0(_0x3683d1-_0x2baa3f._0x57ff73,_0x33966f-0x1b9,_0x33966f- -0x1fa,_0x15121c);}function _0x13b396(_0x1fc04b,_0x52e3f8,_0x29be53,_0x86c9f8){return _0x3749d0(_0x1fc04b-_0x3f3e3d._0x21cbad,_0x52e3f8-0xfa,_0x29be53- -0x2a9,_0x52e3f8);}try{return JSON[_0x40edf2(-_0x8cb8f6._0x2d2e43,-_0x8cb8f6._0x391a95,-_0x8cb8f6._0x39e2c6,-0x2a2)](_0x2f9322);}catch{return _0x2f9322;}}function isResponsesReasoningItem(_0x3feeeb){const _0x22c0de={_0x2e1dd1:0x30,_0x127855:0x1f5,_0x5a9539:0x6a,_0x213b0f:0x80},_0x88d8e9={_0x1fce1d:0x148,_0x5885f0:0x274};function _0x61350c(_0x15385a,_0x3ea4e1,_0x35d95b,_0x3391c8){return _0x3749d0(_0x15385a-0xc4,_0x3ea4e1-0x16c,_0x3ea4e1- -0xe,_0x15385a);}function _0x5b2636(_0x23fd93,_0x5329c1,_0x5bf244,_0x5bd905){return _0x3749d0(_0x23fd93-0x19b,_0x5329c1-_0x88d8e9._0x1fce1d,_0x5bd905-_0x88d8e9._0x5885f0,_0x5329c1);}return typeof _0x3feeeb===_0x61350c(0x46,-0x43,-0x66,_0x22c0de._0x2e1dd1)&&_0x3feeeb!==null&&_0x5b2636(0x1c7,_0x22c0de._0x127855,0x328,0x27e)in _0x3feeeb&&_0x3feeeb[_0x61350c(_0x22c0de._0x5a9539,-0x4,-_0x22c0de._0x213b0f,-0x1)]==='reasoning';}function isResponsesMessageItem(_0x36bb5f){const _0x3b59f3={_0x3b56e9:0x358,_0x58fc1d:0x2d1,_0x5b9db7:0x2e9,_0x3418b7:0x351,_0xcc7d18:0x345},_0x5d5454={_0x591827:0x137},_0x5798fc={_0x460eb6:0x5b1,_0x4b82f7:0x1b};function _0x2ca9f9(_0x1a668d,_0x21fb1c,_0x59bef6,_0x459b26){return _0x5da579(_0x59bef6- -_0x5798fc._0x460eb6,_0x21fb1c-_0x5798fc._0x4b82f7,_0x59bef6-0x1bb,_0x21fb1c);}function _0x4be3bc(_0x33f684,_0x17b6fc,_0x3d9813,_0x1bf283){return _0x3749d0(_0x33f684-0xe2,_0x17b6fc-_0x5d5454._0x591827,_0x17b6fc-0x2df,_0x3d9813);}return typeof _0x36bb5f===_0x2ca9f9(-_0x3b59f3._0x3b56e9,-0x31a,-0x301,-_0x3b59f3._0x58fc1d)&&_0x36bb5f!==null&&'type'in _0x36bb5f&&_0x36bb5f[_0x4be3bc(0x241,_0x3b59f3._0x5b9db7,_0x3b59f3._0x3418b7,_0x3b59f3._0xcc7d18)]===_0x4be3bc(0x3ca,0x3bd,0x48b,0x363);}function isResponsesFunctionCallItem(_0xece9a3){const _0x37f07c={_0x408bde:0x237,_0x5bb699:0x220,_0x3639c8:0x24e,_0x2a6868:0x1b0,_0x5c5f0a:0x285,_0x25ae07:0x2fc,_0x31ca68:0x22b,_0x40dbfd:0x225},_0x32a60c={_0x44ae47:0x13},_0x4985df={_0x52fb1d:0x1c1};function _0x56f1cf(_0x1dc3d6,_0x2a695a,_0x31c766,_0x4edccc){return _0x3749d0(_0x1dc3d6-_0x4985df._0x52fb1d,_0x2a695a-0x109,_0x4edccc-0x36c,_0x2a695a);}function _0xacdccb(_0x2be60a,_0x394a10,_0x3757a6,_0x15a36a){return _0x3749d0(_0x2be60a-_0x32a60c._0x44ae47,_0x394a10-0x158,_0x3757a6-0x1a6,_0x2be60a);}return typeof _0xece9a3===_0xacdccb(0x1f6,0x1c3,0x171,_0x37f07c._0x408bde)&&_0xece9a3!==null&&'type'in _0xece9a3&&_0xece9a3[_0xacdccb(_0x37f07c._0x5bb699,_0x37f07c._0x3639c8,_0x37f07c._0x2a6868,0x27c)]===_0xacdccb(_0x37f07c._0x5c5f0a,_0x37f07c._0x25ae07,_0x37f07c._0x31ca68,_0x37f07c._0x40dbfd);}function createContentBlocks(_0x412e0a,_0xe9c443,_0x5bf69a){const _0x13e2b4={_0xcb6b0e:0x9e,_0x343956:0x55,_0x48b836:0x2b,_0x2b7f0a:0xe,_0x3f36fa:0x357,_0x39122a:0x2b,_0xea63f1:0xaa,_0x2e53dd:0xbc,_0x1626e6:0x16c,_0x1aee70:0x9b,_0x117cd0:0x4e,_0x4d0bf4:0x2fe,_0xffcddd:0x13b,_0x39a5ee:0x1ca,_0x23279c:0x3b,_0x3de0ec:0x2c2,_0x5557f7:0x2e0,_0x1844ff:0x82,_0x120560:0x43,_0x263170:0xa2,_0x13eef3:0x1a,_0x4a7dd9:0x11,_0x62d61b:0x1f2,_0x3ea940:0x215,_0x5516a8:0x1ba,_0x43c0a3:0x1ca,_0x21460e:0x268,_0x205634:0x23c},_0x17b911={_0x3fb68e:0x6f},_0x40ad32={_0x1407d7:0xf,_0x548381:0x2cf},_0x5e043f=[];_0x5bf69a&&_0x5bf69a[_0x4d5c12(-0x1e,-_0x13e2b4._0xcb6b0e,-0xb3,-0x102)]>0x0&&_0x5e043f[_0x4d5c12(_0x13e2b4._0x343956,-_0x13e2b4._0x48b836,0x74,0x67)]({'type':_0x4d5c12(0x4d,-_0x13e2b4._0x2b7f0a,-0x20,0xb8),'summary':[],'text':_0x5bf69a});_0x412e0a[_0x16ebe9(-0x351,-_0x13e2b4._0x3f36fa,-0x22b,-0x2fe)]>0x0&&_0x5e043f[_0x4d5c12(-0x15,-_0x13e2b4._0x39122a,_0x13e2b4._0xea63f1,0x49)]({'type':_0x16ebe9(-0x1fa,-0x11b,-_0x13e2b4._0x2e53dd,-0x18f),'text':_0x412e0a});for(const _0x2e64c3 of _0xe9c443){if(_0x2e64c3['id'][_0x4d5c12(_0x13e2b4._0x1626e6,_0x13e2b4._0x1aee70,-0x39,_0x13e2b4._0x117cd0)]()[_0x16ebe9(-0x2ca,-0x265,-0x384,-_0x13e2b4._0x4d0bf4)]===0x0||_0x2e64c3[_0x16ebe9(-_0x13e2b4._0xffcddd,-0x149,-0x1f1,-_0x13e2b4._0x39a5ee)][_0x4d5c12(_0x13e2b4._0x23279c,_0x13e2b4._0x343956,-0x66,0x100)]['trim']()[_0x16ebe9(-_0x13e2b4._0x3de0ec,-_0x13e2b4._0x5557f7,-0x31d,-0x2fe)]===0x0)continue;_0x5e043f['push']({'type':_0x4d5c12(_0x13e2b4._0x1844ff,0x6d,-0x57,0xd9),'id':_0x2e64c3['id'],'name':_0x2e64c3[_0x4d5c12(_0x13e2b4._0x120560,0x96,-0xb,-0x34)][_0x4d5c12(_0x13e2b4._0x263170,0x55,-_0x13e2b4._0x13eef3,-_0x13e2b4._0x4a7dd9)],'input':parseToolInput2(_0x2e64c3[_0x16ebe9(-_0x13e2b4._0x62d61b,-_0x13e2b4._0x3ea940,-_0x13e2b4._0x5516a8,-_0x13e2b4._0x43c0a3)][_0x16ebe9(-0x20d,-0x1bf,-_0x13e2b4._0x21460e,-_0x13e2b4._0x205634)])});}function _0x16ebe9(_0x91c68f,_0x2f02f5,_0x200b88,_0x3be1bf){return _0x3749d0(_0x91c68f-_0x40ad32._0x1407d7,_0x2f02f5-0x1d9,_0x3be1bf- -_0x40ad32._0x548381,_0x2f02f5);}function _0x4d5c12(_0x37ffca,_0x123c04,_0x471d6b,_0x4ef138){return _0x3749d0(_0x37ffca-0xdd,_0x123c04-0x10e,_0x123c04- -_0x17b911._0x3fb68e,_0x471d6b);}return _0x5e043f;}function createUsage(_0x214bf3){const _0x17af29={_0x54d217:0x33c,_0x491d08:0x31c,_0x1708fd:0x373,_0x5f471e:0x2ac,_0x5b3aa1:0x328,_0x165f8a:0x2ef,_0x245fc5:0x205,_0x10cad8:0x273,_0x384203:0x193,_0x33c430:0xcc},_0x2c15fd={_0x1b6585:0x14b,_0x3305d7:0x11f},_0x7eae22={_0x4914e0:0x3e};function _0x59bd19(_0x30874b,_0x2f3eb4,_0x263472,_0x531e0f){return _0x3749d0(_0x30874b-_0x7eae22._0x4914e0,_0x2f3eb4-0x74,_0x2f3eb4- -0x12c,_0x30874b);}function _0x1199df(_0x39b0d2,_0x39b868,_0x2f82a9,_0xbeaac7){return _0x3749d0(_0x39b0d2-_0x2c15fd._0x1b6585,_0x39b868-_0x2c15fd._0x3305d7,_0x39b0d2- -0x2e8,_0x39b868);}return{'inputTokens':_0x214bf3?.[_0x1199df(-0x30b,-0x2da,-0x349,-_0x17af29._0x54d217)]??0x0,'outputTokens':_0x214bf3?.[_0x1199df(-_0x17af29._0x491d08,-0x319,-_0x17af29._0x1708fd,-_0x17af29._0x5f471e)]??0x0,..._0x214bf3?.[_0x1199df(-_0x17af29._0x5b3aa1,-0x33a,-0x36f,-_0x17af29._0x165f8a)]?.[_0x1199df(-0x2cf,-_0x17af29._0x245fc5,-0x376,-_0x17af29._0x10cad8)]!==void 0x0?{'reasoningTokens':_0x214bf3['completion_tokens_details'][_0x59bd19(-0xf9,-0x113,-_0x17af29._0x384203,-_0x17af29._0x33c430)]}:{}};}function resolveReasoningVisibility2(_0x202867){const _0x4fdef4={_0x44d275:0x8},_0x10fbfa={_0x41290d:0xd9};function _0xdf3f9c(_0x1c05e7,_0x381a52,_0x2dba22,_0x4878eb){return _0x5da579(_0x381a52- -0x328,_0x381a52-_0x10fbfa._0x41290d,_0x2dba22-0x1ac,_0x4878eb);}return _0x202867['reasoning']?.[_0xdf3f9c(_0x4fdef4._0x44d275,-0x2d,0xa5,-0xe9)]??'user-visible';}function isUserVisibleReasoning(_0x539049){const _0x37e958={_0x1f6986:0x6,_0x43fd34:0x2c,_0x242eeb:0xe},_0x4bc268={_0x49f2c4:0x197};function _0x258c2b(_0x5692d0,_0x1cf7ae,_0x158dc7,_0x4d5e3e){return _0x5da579(_0x158dc7- -0x395,_0x1cf7ae-0x131,_0x158dc7-_0x4bc268._0x49f2c4,_0x4d5e3e);}return resolveOpenAiReasoningConfig(_0x539049['reasoning'])!==void 0x0&&resolveReasoningVisibility2(_0x539049)===_0x258c2b(-_0x37e958._0x1f6986,_0x37e958._0x43fd34,-_0x37e958._0x242eeb,-0x91);}function createChatRequestBody(_0x238cf9,_0x2da244){const _0x1bc842={_0x5baf30:0x3f4,_0x27679b:0x532,_0x102f63:0x467,_0x29abc2:0x523,_0x54df73:0x54f,_0x23aa68:0x429,_0x2bd613:0x42d,_0x3a6718:0x4dd,_0x4cdc4e:0x410,_0x344a6f:0x412,_0x5badb2:0x4d7,_0x1a743e:0x424,_0x24c44e:0x464,_0x1ff9f6:0x3fe,_0x3db806:0x5c4,_0x14d824:0x515,_0x3279e8:0x447,_0x1d1708:0x3f0,_0x18a57f:0x48e,_0x29fd8a:0x3fe,_0x4d9097:0x4d3,_0x34399e:0x587,_0x1162cb:0x53a,_0x108a32:0x499,_0x3bb46e:0x57b,_0x51c64d:0x514,_0x5f0a4c:0x43e,_0x163ba1:0x541,_0xcff062:0x429,_0x3ae7c5:0x5b0,_0x30e4ec:0x489,_0x2974b5:0x4ea,_0x233f74:0x5a4,_0x3d8239:0x56a,_0x74a10e:0x4ff,_0x55e34c:0x417,_0x5ee73a:0x509,_0x50db53:0x42f,_0x2b6b27:0x55f,_0x21fbf7:0x3d9,_0x456592:0x3bf,_0xacfd5:0x364,_0x25d22f:0x497,_0x2d870c:0x484,_0x532123:0x4f9,_0x12809a:0x45f,_0x590d37:0x46b,_0x4b6c8a:0x4b7,_0x3aa8fa:0x4fe,_0x4da4d9:0x449,_0x26b724:0x5b4,_0x4d9a91:0x527,_0x16987a:0x3ae,_0x8c4924:0x453,_0x2910b1:0x3ca,_0x15672e:0x4df,_0x2dc291:0x5d6,_0x2db1b5:0x52f,_0x4cce4a:0x450,_0x4569ab:0x40e,_0x3e5d30:0x365,_0xa18ff6:0x40e,_0x4c96ac:0x49d,_0x5bff3e:0x54b,_0x3f71f2:0x5bb},_0x494ce3={_0x21f190:0x158,_0x2aa5fa:0xcd,_0x4e2814:0xa7,_0xd015f1:0xa9,_0x562305:0xe3,_0xa0a5f8:0x12a,_0x266498:0xfe,_0x4e63e4:0xee,_0x6a8250:0x156,_0x215c70:0x82,_0x2f3a63:0xdd,_0x4a2204:0x14,_0x2b30ec:0x222,_0x4f4e2b:0x103,_0x13b2f1:0x51,_0x1494a9:0x42,_0x51be9c:0x18f,_0x404d4b:0x2e,_0x298a5a:0x132,_0x4d4f51:0x183,_0x3ddf9d:0xee,_0x5721e7:0x23d,_0x1dfae6:0x5e,_0x5368ec:0xa0,_0x28f451:0x56,_0x5a46ef:0x159,_0x5ceeb8:0x40,_0x1d2c74:0xf5,_0x235f37:0x3e,_0x3f7242:0x7b,_0x5b2bcd:0x143,_0x3863ed:0x3b,_0x6c4e41:0x1fc,_0xe58513:0x110,_0x383fbe:0x63,_0x39d5a2:0x167,_0x174db9:0x150,_0x208c03:0x9b,_0x51a7dc:0x9a,_0x579858:0x17a,_0x3b3312:0x154},_0x54f4d6={_0x2c6c2e:0xd},_0x29bbc8={_0x4764f5:0xb9},_0x1ecf25=[],_0x2598b1=stringifySystem(_0x238cf9['system']);function _0x2999ce(_0x5e8165,_0x6ea4a,_0x1caad6,_0x3c3430){return _0x5da579(_0x3c3430-0x115,_0x6ea4a-0x56,_0x1caad6-_0x29bbc8._0x4764f5,_0x6ea4a);}_0x2598b1[_0x102d6c(0x38b,0x38b,0x479,_0x1bc842._0x5baf30)]>0x0&&_0x1ecf25[_0x102d6c(0x507,0x474,_0x1bc842._0x27679b,_0x1bc842._0x102f63)]({'role':_0x2999ce(0x3fb,_0x1bc842._0x29abc2,0x4f7,0x49d),'content':_0x2598b1});function _0x102d6c(_0x133817,_0x170316,_0x33705c,_0x39b935){return _0x3749d0(_0x133817-_0x54f4d6._0x2c6c2e,_0x170316-0x116,_0x39b935-0x423,_0x133817);}for(const _0x5351a5 of _0x238cf9[_0x102d6c(0x573,0x489,0x600,_0x1bc842._0x54df73)]){const _0x11a846=[],_0x109201=[],_0x2387de=[],_0x57a7ac=()=>{const _0x22e298={_0x163ef1:0x59};if(_0x5351a5[_0x3b6937(-_0x494ce3._0x21f190,-_0x494ce3._0x2aa5fa,-_0x494ce3._0x4e2814,-0xd2)]===_0x5b5bb9(-_0x494ce3._0xd015f1,-_0x494ce3._0x562305,-_0x494ce3._0xa0a5f8,-0xac)){if(_0x11a846['length']===0x0&&_0x109201[_0x3b6937(-_0x494ce3._0x266498,-0x32,-0x1c0,-_0x494ce3._0x4e63e4)]===0x0)return;_0x1ecf25[_0x5b5bb9(-0x110,-0xc1,-0x1ae,-_0x494ce3._0x6a8250)]({'role':_0x3b6937(-_0x494ce3._0x215c70,0x4a,-_0x494ce3._0x2f3a63,-_0x494ce3._0x4a2204),'content':_0x11a846[_0x5b5bb9(-0x183,-_0x494ce3._0x2f3a63,-_0x494ce3._0x2b30ec,-_0x494ce3._0x4f4e2b)]>0x0?_0x11a846[_0x3b6937(0xb,-_0x494ce3._0x13b2f1,_0x494ce3._0x1494a9,-0x42)]('\x0a\x0a'):null,..._0x109201[_0x3b6937(-0x158,-_0x494ce3._0x51be9c,-_0x494ce3._0x404d4b,-_0x494ce3._0x4e63e4)]>0x0?{'tool_calls':_0x109201[_0x3b6937(0x131,0x43,_0x494ce3._0x298a5a,0x7b)](0x0)}:{}}),_0x11a846[_0x5b5bb9(-_0x494ce3._0x4d4f51,-_0x494ce3._0x3ddf9d,-_0x494ce3._0x5721e7,-0x102)]=0x0;return;}if(_0x5351a5['role']==='user'){if(_0x2387de[_0x3b6937(-0xe3,-0x171,-0x153,-_0x494ce3._0x3ddf9d)]===0x0)return;const _0x317c3d=_0x2387de[_0x3b6937(0xbc,-0x1f,0x4d,0x8)](_0x3d8b16=>_0x3d8b16['type']==='image_url');_0x1ecf25[_0x5b5bb9(-0x110,-0x42,-0x180,-_0x494ce3._0x1dfae6)]({'role':_0x5b5bb9(-_0x494ce3._0x5368ec,-_0x494ce3._0x28f451,-_0x494ce3._0x5a46ef,-0x92),'content':_0x317c3d?_0x2387de[_0x5b5bb9(-0x1a,0x4e,-0xc5,_0x494ce3._0x5ceeb8)](0x0):_0x2387de[_0x3b6937(_0x494ce3._0x1d2c74,-_0x494ce3._0x235f37,0x142,_0x494ce3._0x3f7242)](0x0)[_0x3b6937(_0x494ce3._0x5b2bcd,0x135,_0x494ce3._0x3863ed,0x8c)](_0x305e2a=>_0x305e2a['type']===_0x5b5bb9(-0x14,0x12,0x1d,0x61))[_0x5b5bb9(-0x142,-0x13e,-0xef,-_0x494ce3._0x6c4e41)](_0x4adea9=>_0x4adea9['text'])['join']('\x0a\x0a')});return;}if(_0x11a846['length']===0x0)return;_0x1ecf25[_0x5b5bb9(-_0x494ce3._0xe58513,-0x101,-0xdd,-_0x494ce3._0x383fbe)]({'role':_0x5351a5[_0x5b5bb9(-_0x494ce3._0x39d5a2,-0x115,-0x1ce,-_0x494ce3._0x174db9)],'content':_0x11a846[_0x3b6937(0x37,-_0x494ce3._0x208c03,-0x1d,-_0x494ce3._0x1494a9)]('\x0a\x0a')});function _0x5b5bb9(_0x3e824c,_0x32cc17,_0x246e02,_0x36b4f1){return _0x102d6c(_0x246e02,_0x32cc17-0x1c6,_0x246e02-0x150,_0x3e824c- -0x577);}function _0x3b6937(_0x5840f5,_0x33d777,_0x2d21a0,_0x3d1c8f){return _0x2999ce(_0x5840f5-_0x22e298._0x163ef1,_0x5840f5,_0x2d21a0-0x1d5,_0x3d1c8f- -0x4b9);}_0x11a846[_0x3b6937(-_0x494ce3._0x51a7dc,-_0x494ce3._0x579858,-_0x494ce3._0x3b3312,-0xee)]=0x0;};for(const _0x3a07ed of normalizeContent(_0x5351a5['content'])){if(_0x3a07ed[_0x102d6c(0x42e,0x446,_0x1bc842._0x23aa68,_0x1bc842._0x2bd613)]==='text'){_0x5351a5[_0x102d6c(0x493,_0x1bc842._0x3a6718,0x47f,_0x1bc842._0x4cdc4e)]===_0x102d6c(0x41e,_0x1bc842._0x344a6f,0x4a9,_0x1bc842._0x5badb2)?_0x2387de[_0x102d6c(0x4fe,0x40d,_0x1bc842._0x1a743e,_0x1bc842._0x102f63)]({'type':'text','text':_0x3a07ed['text']}):_0x11a846[_0x102d6c(0x447,0x52a,_0x1bc842._0x24c44e,0x467)](_0x3a07ed['text']);continue;}if(_0x5351a5[_0x102d6c(0x4bb,0x422,0x47e,_0x1bc842._0x4cdc4e)]==='user'&&_0x3a07ed[_0x102d6c(_0x1bc842._0x1ff9f6,0x447,0x445,0x42d)]===_0x2999ce(0x47a,_0x1bc842._0x3db806,0x4dc,_0x1bc842._0x14d824)){_0x2387de[_0x2999ce(_0x1bc842._0x3279e8,_0x1bc842._0x1d1708,_0x1bc842._0x18a57f,0x43e)]({'type':'image_url','image_url':{'url':_0x2999ce(_0x1bc842._0x29fd8a,0x4af,_0x1bc842._0x4d9097,0x474)+_0x3a07ed[_0x102d6c(0x562,0x5b1,_0x1bc842._0x34399e,_0x1bc842._0x1162cb)][_0x2999ce(_0x1bc842._0x108a32,0x53c,_0x1bc842._0x3bb46e,_0x1bc842._0x51c64d)]+_0x102d6c(_0x1bc842._0x5f0a4c,_0x1bc842._0x163ba1,_0x1bc842._0xcff062,0x4d3)+_0x3a07ed[_0x2999ce(0x516,0x489,0x563,0x511)][_0x2999ce(_0x1bc842._0x3ae7c5,_0x1bc842._0x30e4ec,0x485,_0x1bc842._0x2974b5)]}});continue;}if(_0x3a07ed['type']===_0x102d6c(_0x1bc842._0x233f74,_0x1bc842._0x3d8239,0x54a,_0x1bc842._0x74a10e)){_0x109201[_0x102d6c(_0x1bc842._0x55e34c,0x400,0x3c8,0x467)]({'id':_0x3a07ed['id'],'type':'function','function':{'name':_0x3a07ed[_0x2999ce(_0x1bc842._0x5ee73a,_0x1bc842._0x50db53,_0x1bc842._0x2b6b27,0x4be)],'arguments':JSON['stringify'](_0x3a07ed[_0x2999ce(_0x1bc842._0x21fbf7,0x342,0x480,_0x1bc842._0x456592)]??{})}});continue;}if(_0x3a07ed[_0x102d6c(0x3b9,_0x1bc842._0xacfd5,_0x1bc842._0x25d22f,0x42d)]!==_0x2999ce(0x397,_0x1bc842._0x2d870c,_0x1bc842._0x532123,0x434))continue;_0x57a7ac(),_0x1ecf25[_0x2999ce(_0x1bc842._0x12809a,0x3cc,0x411,0x43e)]({'role':'tool','content':getToolResultText(_0x3a07ed[_0x2999ce(_0x1bc842._0x590d37,_0x1bc842._0x4b6c8a,0x49a,_0x1bc842._0x3aa8fa)]),'tool_call_id':_0x3a07ed['tool_use_id']});const _0x5a566f=getToolResultImages(_0x3a07ed['content']);_0x5a566f[_0x102d6c(0x325,0x41f,_0x1bc842._0x4da4d9,0x3f4)]>0x0&&_0x1ecf25['push']({'role':'user','content':[{'type':'text','text':_0x2999ce(_0x1bc842._0x26b724,0x4cf,0x52f,_0x1bc842._0x4d9a91)+_0x3a07ed[_0x2999ce(0x43c,0x512,_0x1bc842._0x16987a,_0x1bc842._0x8c4924)]+'.'},..._0x5a566f[_0x2999ce(0x361,_0x1bc842._0x2910b1,_0x1bc842._0x15672e,0x40c)](_0x37cffd=>({'type':_0x102d6c(0x635,0x5ce,0x544,0x572),'image_url':{'url':'data:'+_0x37cffd[_0x2999ce(0x488,0x5c6,0x4ea,0x511)][_0x102d6c(0x48a,0x5ed,0x591,0x53d)]+_0x102d6c(0x42e,0x55b,0x503,0x4d3)+_0x37cffd[_0x102d6c(0x551,0x475,0x519,0x53a)][_0x2999ce(0x536,0x49e,0x58d,0x4ea)]}}))]});}_0x57a7ac();}const _0x50f972=resolveOpenAiReasoningConfig(_0x238cf9['reasoning']);return{'model':_0x238cf9[_0x102d6c(0x5b0,_0x1bc842._0x2dc291,0x4db,_0x1bc842._0x2db1b5)],'messages':_0x1ecf25,'stream':_0x2da244,..._0x50f972?{'max_completion_tokens':_0x238cf9[_0x102d6c(0x46e,0x4a0,_0x1bc842._0x4cce4a,_0x1bc842._0x4569ab)]}:{'max_tokens':_0x238cf9[_0x102d6c(0x3a0,0x3e2,_0x1bc842._0x3e5d30,_0x1bc842._0xa18ff6)]},..._0x50f972?.[_0x102d6c(_0x1bc842._0x4c96ac,_0x1bc842._0x5bff3e,_0x1bc842._0x3f71f2,0x545)]?{'reasoning_effort':_0x50f972[_0x102d6c(0x47c,0x5b8,0x531,0x545)]}:{},...createToolDefinitions(_0x238cf9['tools'])?{'tools':createToolDefinitions(_0x238cf9['tools'])}:{}};}function createResponsesRequestBody(_0x3d0045,_0x4c47e5){return{...toOpenAiResponsesRequest(_0x3d0045),..._0x4c47e5?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x1127cc,_0x4fa01d={}){const _0x4b8be9={_0x393231:0x42b,_0x4b9594:0x457,_0x219232:0x3f5,_0x22fa1b:0x43d,_0x34e1b1:0x405,_0x387150:0x351,_0x2ab40c:0x4b3,_0x7fa4ce:0x3d4,_0x5af072:0x3b9,_0x22099a:0x3a4,_0x1353dc:0x30e},_0x29562c={_0xee52d0:0x1e3},_0x12b546={_0x530095:0x14b,_0x423335:0x50,_0x49e35b:0x89};function _0x2167fa(_0x332447,_0x1c17e0,_0x5dfade,_0x57c21b){return _0x5da579(_0x57c21b-_0x12b546._0x530095,_0x1c17e0-_0x12b546._0x423335,_0x5dfade-_0x12b546._0x49e35b,_0x5dfade);}function _0x584815(_0x3a9c1b,_0x3672dd,_0x39c42b,_0x3fb019){return _0x5da579(_0x3672dd-0xe3,_0x3672dd-0xb7,_0x39c42b-_0x29562c._0xee52d0,_0x3a9c1b);}const _0x2e0de6=toOpenAiResponsesRequest(_0x1127cc);return{'type':_0x584815(0x2d8,0x39b,0x323,0x412),..._0x2e0de6,..._0x4fa01d[_0x2167fa(_0x4b8be9._0x393231,0x338,_0x4b8be9._0x4b9594,_0x4b8be9._0x219232)]?{'input':_0x4fa01d[_0x2167fa(_0x4b8be9._0x22fa1b,_0x4b8be9._0x34e1b1,_0x4b8be9._0x387150,_0x4b8be9._0x219232)]}:{},..._0x4fa01d[_0x2167fa(_0x4b8be9._0x2ab40c,_0x4b8be9._0x7fa4ce,_0x4b8be9._0x5af072,0x40c)]?{'previous_response_id':_0x4fa01d[_0x584815(0x2d6,_0x4b8be9._0x22099a,_0x4b8be9._0x1353dc,0x41e)]}:{},'store':![]};}function _0x3749d0(_0x1793d8,_0x8c9e09,_0x15ea0e,_0x40b7da){const _0x2c9440={_0x155d7f:0xd1};return _0x1568(_0x15ea0e- -_0x2c9440._0x155d7f,_0x40b7da);}function normalizeAssistantContent(_0x5a9c70){const _0x167ef0={_0x37b68a:0x107,_0x4181d6:0x283,_0x1dd0b1:0x31c,_0x36faad:0x39f},_0x476b0e={_0x3a7784:0xcd,_0x1fbc2e:0xde,_0x2af699:0x226,_0x3f078c:0x2ce,_0x2a836e:0x15e,_0x66f470:0x27f},_0x2c5bdb={_0x33193e:0x322};function _0x3baf96(_0x46e043,_0x43aabf,_0x1ef722,_0x272d3a){return _0x3749d0(_0x46e043-0xff,_0x43aabf-0xfe,_0x272d3a-_0x2c5bdb._0x33193e,_0x1ef722);}function _0x481c22(_0x2aa707,_0x55f3d9,_0xa23b77,_0x164fe4){return _0x3749d0(_0x2aa707-0x84,_0x55f3d9-0x151,_0xa23b77- -0x289,_0x55f3d9);}if(typeof _0x5a9c70===_0x481c22(-0x1f9,-_0x167ef0._0x37b68a,-0x1cd,-_0x167ef0._0x4181d6))return _0x5a9c70;if(!Array[_0x3baf96(0x3b0,0x34c,_0x167ef0._0x1dd0b1,0x395)](_0x5a9c70))return'';return _0x5a9c70['map'](_0xa75c9f=>{const _0x47ab00={_0x2d45f8:0x19,_0x3b7522:0x40a};function _0x5f6de6(_0xb4ec58,_0x2747bb,_0x1e0579,_0x19f641){return _0x3baf96(_0xb4ec58-_0x47ab00._0x2d45f8,_0x2747bb-0x1cf,_0xb4ec58,_0x19f641- -_0x47ab00._0x3b7522);}function _0x38609a(_0x53e5f4,_0x1fead1,_0x3f08de,_0x21791f){return _0x481c22(_0x53e5f4-0x12f,_0x1fead1,_0x53e5f4-0x4ce,_0x21791f-0x72);}return _0xa75c9f[_0x5f6de6(-0xb,-0x8e,-_0x476b0e._0x3a7784,-_0x476b0e._0x1fbc2e)]===_0x5f6de6(0x2e,-0x4c,0xfe,0x58)?_0xa75c9f['text']:_0xa75c9f[_0x38609a(_0x476b0e._0x2af699,_0x476b0e._0x3f078c,_0x476b0e._0x2a836e,_0x476b0e._0x66f470)];})[_0x3baf96(0x2d8,0x3f6,0x390,_0x167ef0._0x36faad)]('');}function normalizeResponsesMessageContent(_0x54aa7a){const _0xd8328b={_0x50eb20:0x469,_0x3d75c0:0x468},_0x1e42e0={_0xdd5a7a:0x13a,_0x5b48fc:0x103,_0xa0ea8e:0x2af,_0x43fca8:0x228,_0x5ac348:0x2da,_0x357479:0x366,_0x27202b:0x312,_0x451382:0x320,_0x17b151:0x2a1,_0x2916a5:0x1cc,_0x21942d:0x1b1,_0x5ca739:0x226,_0x3c6b7b:0x23a,_0x1139e5:0x1fd,_0x33f4bb:0x2d4,_0x421c69:0x330,_0x3c35dc:0x2d8},_0x15cdaf={_0x1452c8:0x1b8};if(!Array[_0xeeadc5(0x3d1,_0xd8328b._0x50eb20,_0xd8328b._0x3d75c0,0x3a4)](_0x54aa7a))return'';function _0xeeadc5(_0x3ed244,_0x3dc006,_0x1c3b3b,_0xa589c5){return _0x3749d0(_0x3ed244-_0x15cdaf._0x1452c8,_0x3dc006-0x1cf,_0x1c3b3b-0x3f5,_0xa589c5);}return _0x54aa7a['map'](_0x359520=>{const _0x1f2a64={_0x64b4be:0x1ab,_0x2c2f0e:0x215},_0x5d45f7={_0x2c9d6f:0xfb};if(!_0x359520||typeof _0x359520!==_0xfd6ec2(_0x1e42e0._0xdd5a7a,_0x1e42e0._0xdd5a7a,0x1ab,_0x1e42e0._0x5b48fc))return'';function _0x139844(_0x5f0412,_0x460780,_0x35dcd6,_0x4b4913){return _0xeeadc5(_0x5f0412-_0x5d45f7._0x2c9d6f,_0x460780-0x65,_0x35dcd6- -0x1d9,_0x5f0412);}const _0x14212e=_0x359520;function _0xfd6ec2(_0x24ae83,_0x438947,_0x1412e4,_0x1b6333){return _0xeeadc5(_0x24ae83-0xf6,_0x438947-_0x1f2a64._0x64b4be,_0x1412e4- -_0x1f2a64._0x2c2f0e,_0x438947);}if(_0x14212e['type']===_0x139844(_0x1e42e0._0xa0ea8e,0x2f2,_0x1e42e0._0x43fca8,0x28c)&&typeof _0x14212e['text']===_0x139844(_0x1e42e0._0x5ac348,_0x1e42e0._0x357479,0x2d8,_0x1e42e0._0x27202b))return _0x14212e[_0xfd6ec2(0x35c,0x25a,_0x1e42e0._0x451382,_0x1e42e0._0x17b151)];if(_0x14212e[_0x139844(_0x1e42e0._0x2916a5,_0x1e42e0._0x21942d,_0x1e42e0._0x5ca739,0x1bf)]===_0x139844(0x18f,_0x1e42e0._0x3c6b7b,_0x1e42e0._0x1139e5,0x289)&&typeof _0x14212e['refusal']===_0x139844(_0x1e42e0._0x33f4bb,_0x1e42e0._0x421c69,_0x1e42e0._0x3c35dc,0x356))return _0x14212e[_0x139844(0x2bf,0x1a0,_0x1e42e0._0x1139e5,0x23a)];return'';})['join']('');}function extractOpenAiReasoningText(_0xa90159){const _0x4c8b71={_0x22113d:0x31,_0x31910b:0x41,_0x2d1c16:0xd8,_0x10fcae:0x147,_0x5615e0:0x54,_0x12cc9c:0xaf,_0x16c79c:0x87,_0x1438ed:0x121,_0x34b91f:0x1aa,_0x1ed40b:0x123,_0x4199d8:0x90,_0x23fd6c:0x55,_0x5567db:0xa5,_0x57f6e5:0x10e,_0x3614b9:0xb6,_0x451fbb:0x3b1,_0x188d91:0x425,_0xf0d552:0x457},_0x27ed58={_0x2c4129:0xc,_0xfaac66:0x194};function _0x76950a(_0x34cdbe,_0x28086e,_0x29019e,_0x5a4b3a){return _0x5da579(_0x28086e-0xc3,_0x28086e-0x19b,_0x29019e-0x95,_0x5a4b3a);}if(typeof _0xa90159[_0x265d4a(0x30,-0x54,-_0x4c8b71._0x22113d,-0x4d)]===_0x265d4a(-_0x4c8b71._0x31910b,-_0x4c8b71._0x2d1c16,-0x4b,-_0x4c8b71._0x10fcae))return _0xa90159[_0x265d4a(0x11,-_0x4c8b71._0x5615e0,-0xd8,-_0x4c8b71._0x12cc9c)];if(!Array[_0x265d4a(-_0x4c8b71._0x16c79c,-_0x4c8b71._0x1438ed,-0x10e,-_0x4c8b71._0x34b91f)](_0xa90159['content']))return'';function _0x265d4a(_0x42a992,_0x5e89b4,_0x346945,_0x3d9fb7){return _0x3749d0(_0x42a992-0x188,_0x5e89b4-_0x27ed58._0x2c4129,_0x5e89b4- -_0x27ed58._0xfaac66,_0x42a992);}return _0xa90159[_0x265d4a(-_0x4c8b71._0x1ed40b,-_0x4c8b71._0x4199d8,-0xa7,-0xf8)][_0x265d4a(-_0x4c8b71._0x23fd6c,-0x49,-_0x4c8b71._0x5567db,-_0x4c8b71._0x57f6e5)](_0x33d5ed=>_0x33d5ed['type']===_0x265d4a(-0x1ad,-0x1be,-0x14c,-0x1fe)&&typeof _0x33d5ed['text']===_0x265d4a(-0x109,-0xd8,-0x15f,-0xa7))[_0x265d4a(-_0x4c8b71._0x3614b9,-0x182,-0x173,-0x1e7)](_0x1e9503=>_0x1e9503[_0x76950a(0x435,0x4e8,0x53f,0x434)]??'')[_0x76950a(_0x4c8b71._0x451fbb,_0x4c8b71._0x188d91,0x422,_0x4c8b71._0xf0d552)]('');}function createOpenAiReasoningBlock(_0x4eee01){const _0x4ff6e6={_0x513f53:0x191,_0x3ad265:0x2a2,_0x45f037:0x22b,_0x45ff1b:0x183,_0x459955:0x108,_0x51ebe7:0x174,_0x481e70:0x232,_0x4c2619:0x1af,_0x4c88ae:0x182},_0x1cde48={_0x290e0e:0x17},_0x5bb124={_0x210ef4:0x15f},_0x52bdfb=extractOpenAiReasoningText(_0x4eee01);function _0x18bcc6(_0x4afe03,_0x47c0ab,_0x4a6dfc,_0x3585ec){return _0x5da579(_0x4afe03- -0x4fd,_0x47c0ab-_0x5bb124._0x210ef4,_0x4a6dfc-0x78,_0x3585ec);}function _0x503844(_0x506725,_0x434a75,_0x3ee3d5,_0x2cbf34){return _0x3749d0(_0x506725-_0x1cde48._0x290e0e,_0x434a75-0x82,_0x2cbf34- -0x1f3,_0x434a75);}return{'type':_0x503844(-0xca,-_0x4ff6e6._0x513f53,-0x233,-0x192),'summary':structuredClone(_0x4eee01[_0x18bcc6(-0x1f1,-0x124,-_0x4ff6e6._0x3ad265,-_0x4ff6e6._0x45f037)]??[]),..._0x4eee01['id']?{'id':_0x4eee01['id']}:{},..._0x4eee01[_0x503844(-0x1dd,-_0x4ff6e6._0x45ff1b,-_0x4ff6e6._0x459955,-0x14f)]?{'encryptedContent':_0x4eee01[_0x18bcc6(-_0x4ff6e6._0x51ebe7,-_0x4ff6e6._0x481e70,-_0x4ff6e6._0x4c2619,-0x148)]}:{},..._0x52bdfb[_0x18bcc6(-0x247,-0x1d0,-_0x4ff6e6._0x4c88ae,-0x23f)]>0x0?{'text':_0x52bdfb}:{}};}function hasVisibleOpenAiReasoning(_0x2ac29b){const _0x19ce25={_0x50a3c4:0x1f9,_0x223166:0x1c0,_0x4f26e0:0xdd,_0x93b557:0x1a5,_0x9640b5:0x86,_0x1943b7:0x1b0},_0x4a750c={_0x8e3692:0x167,_0x3016ad:0xf5,_0x21b6fa:0x181},_0x37f771={_0x4fa068:0x12a,_0x19cc90:0x1ae,_0x3d3d37:0x6a};function _0x253fa1(_0xf60df6,_0x1813b9,_0x4f0f3b,_0x29f3e7){return _0x5da579(_0x4f0f3b- -_0x37f771._0x4fa068,_0x1813b9-_0x37f771._0x19cc90,_0x4f0f3b-_0x37f771._0x3d3d37,_0x29f3e7);}function _0x182dfc(_0x2af808,_0x3dd443,_0x3abee8,_0x9b1095){return _0x5da579(_0x9b1095- -_0x4a750c._0x8e3692,_0x3dd443-_0x4a750c._0x3016ad,_0x3abee8-_0x4a750c._0x21b6fa,_0x3dd443);}return _0x2ac29b[_0x182dfc(_0x19ce25._0x50a3c4,_0x19ce25._0x223166,_0x19ce25._0x4f26e0,_0x19ce25._0x93b557)][_0x182dfc(0x191,_0x19ce25._0x9640b5,_0x19ce25._0x1943b7,0x14f)]>0x0||typeof _0x2ac29b['text']==='string';}function parseChatCompletionResponse(_0x352cfb){const _0x52eda7={_0x4a68a3:0x17f,_0x8c35a1:0x4c1,_0xb388ce:0x4b0,_0x5bc563:0x47f,_0x2e198f:0x140,_0x552ee0:0x21a,_0x53bd55:0x171,_0x40d299:0x178,_0x2a9820:0x3b4,_0x1acd10:0x488,_0x46e011:0x3ed,_0x412005:0x427,_0x1bb6a2:0x469,_0x3bf111:0x49e,_0xfa025d:0x40b,_0x4c6ca9:0x45b,_0x3ae8e3:0x481,_0x68de20:0x424,_0x4c5841:0x474,_0x326f3f:0x439,_0x1b9bf9:0x40e,_0x2f61f7:0x402,_0x4bcfd0:0x38,_0x2dfff9:0x4bf,_0xb17cea:0x4a6,_0x57ddc3:0x441,_0x3af1ca:0x386,_0x4661fc:0x3e7,_0x3c4819:0x129,_0x57ed67:0x1c4,_0x5006b9:0x232},_0x4ac5c4={_0x36b629:0xfe,_0x2a72bd:0x1d4},_0x342051={_0x2eedee:0x7a};function _0x12def4(_0x28a41d,_0x434a7b,_0x3f44fc,_0xd5b01b){return _0x5da579(_0x3f44fc- -0x278,_0x434a7b-_0x342051._0x2eedee,_0x3f44fc-0x193,_0xd5b01b);}const _0xf793c0=[],_0x4acfd2=[];function _0x1fb692(_0xb260d4,_0x248ce1,_0x5124a9,_0x1b6ffd){return _0x5da579(_0xb260d4-_0x4ac5c4._0x36b629,_0x248ce1-_0x4ac5c4._0x2a72bd,_0x5124a9-0x134,_0x1b6ffd);}let _0x45e0d0=_0x12def4(0xe7,0x71,0xff,_0x52eda7._0x4a68a3);for(const _0x45efad of _0x352cfb['choices']??[]){const _0x3c6cb5=_0x45efad[_0x1fb692(_0x52eda7._0x8c35a1,_0x52eda7._0xb388ce,_0x52eda7._0x5bc563,0x566)],_0x3e5f41=normalizeAssistantContent(_0x3c6cb5?.[_0x12def4(_0x52eda7._0x2e198f,_0x52eda7._0x552ee0,_0x52eda7._0x53bd55,_0x52eda7._0x40d299)]);_0x3e5f41[_0x1fb692(_0x52eda7._0x2a9820,_0x52eda7._0x1acd10,0x370,_0x52eda7._0x46e011)]>0x0&&_0xf793c0[_0x1fb692(_0x52eda7._0x412005,0x3d3,0x422,_0x52eda7._0x1bb6a2)](_0x3e5f41),_0x3c6cb5?.[_0x1fb692(_0x52eda7._0x3bf111,_0x52eda7._0xfa025d,0x4ce,_0x52eda7._0x4c6ca9)]&&_0x4acfd2['push'](..._0x3c6cb5[_0x12def4(0x195,0x196,0x128,0xb3)]),_0x45efad['finish_reason']===_0x1fb692(_0x52eda7._0x3bf111,_0x52eda7._0x3ae8e3,_0x52eda7._0x68de20,_0x52eda7._0x4c5841)&&(_0x45e0d0=_0x1fb692(0x4bf,_0x52eda7._0x326f3f,_0x52eda7._0x1b9bf9,_0x52eda7._0x2f61f7));}return _0x4acfd2[_0x12def4(-0x7,0x81,0x3e,-_0x52eda7._0x4bcfd0)]>0x0&&(_0x45e0d0=_0x1fb692(_0x52eda7._0x2dfff9,_0x52eda7._0xb17cea,0x406,0x484)),{'id':_0x352cfb['id']??'chatcmpl-'+Date[_0x1fb692(_0x52eda7._0x57ddc3,_0x52eda7._0x3af1ca,0x379,_0x52eda7._0x4661fc)](),'content':createContentBlocks(_0xf793c0['join'](''),_0x4acfd2),'stopReason':_0x45e0d0,'usage':createUsage(_0x352cfb[_0x12def4(0x1fa,_0x52eda7._0x3c4819,_0x52eda7._0x57ed67,_0x52eda7._0x5006b9)])};}function parseResponsesResponse(_0x204797,_0x420c61){const _0x223360={_0x5ee5f0:0x4cd,_0x2b1587:0x4d5,_0x338a69:0x4f0,_0x1c318b:0x3de,_0x2c80c3:0x4af,_0x86e691:0x582,_0xe31f00:0x5ca,_0xd12459:0x5d2,_0x25c4fc:0x4c8,_0x257254:0x563,_0x2cd98:0x471,_0x4faa71:0x55a,_0xd0b687:0x4c9,_0x51f212:0x5cb,_0x2b817f:0x59b,_0x4e6e7a:0x422,_0x2eb38f:0x594,_0xb51a7f:0x51f,_0xeaea26:0x4f8,_0x1112b4:0x59b,_0x371fb4:0x54f,_0x3c650b:0x4a0,_0x216c7b:0x4d8,_0x45faf1:0x4ae,_0x5bf2df:0x485,_0x6406c8:0x4e9,_0x384bc1:0x490,_0x5ba1d6:0x418,_0x226475:0x587,_0x10f710:0x468,_0x25e1c7:0x578,_0x5987c7:0x49f,_0x8090eb:0x549,_0xc3081d:0x55c,_0x153d69:0x490,_0x2d99b8:0x5d1,_0x514c6a:0x643,_0x2bf712:0x4d9,_0x26f027:0x558,_0x3ca9a6:0x50e,_0x5da5a1:0x4c3,_0x1e97f6:0x56d,_0x38e1c2:0x5b3,_0x162bd3:0x496,_0x25bec4:0x50b,_0xc84fed:0x564,_0x46e49e:0x5d5,_0xdf3856:0x451,_0x253ae1:0x56f,_0x3b61ff:0x555,_0x4eee83:0x516,_0x3c288a:0x4ae,_0x25cbae:0x567,_0x2f6811:0x55f,_0xb162b2:0x55f,_0x34a432:0x470,_0x44b258:0x4f3,_0x38b52a:0x3e5,_0x2ed33f:0x426,_0x5e438c:0x4fe,_0x349909:0x5bb,_0x3ad902:0x61f,_0x4ffc79:0x51a,_0x266f22:0x5be,_0x2e46f6:0x3f3,_0x3c29c4:0x4fe},_0x5b1e13={_0x3d7891:0x146,_0x399506:0x40d},_0x4ec26e={_0x3ce179:0x1ac};function _0x3050ae(_0x19141b,_0x7020df,_0x12e8fc,_0x419a00){return _0x5da579(_0x19141b-_0x4ec26e._0x3ce179,_0x7020df-0xab,_0x12e8fc-0x156,_0x419a00);}function _0x12741b(_0x354612,_0xa0f13a,_0x451ae8,_0x339254){return _0x3749d0(_0x354612-0x1ea,_0xa0f13a-_0x5b1e13._0x3d7891,_0xa0f13a-_0x5b1e13._0x399506,_0x339254);}const _0x2671ee=[];for(const _0xe1a779 of _0x204797[_0x3050ae(0x540,_0x223360._0x5ee5f0,0x606,0x54e)]??[]){if(isResponsesReasoningItem(_0xe1a779)){if(isUserVisibleReasoning(_0x420c61)){const _0x99d56f=createOpenAiReasoningBlock(_0xe1a779);hasVisibleOpenAiReasoning(_0x99d56f)&&_0x2671ee[_0x3050ae(_0x223360._0x2b1587,0x445,_0x223360._0x338a69,0x51b)](_0x99d56f);}continue;}if(isResponsesMessageItem(_0xe1a779)){const _0xad48cc=normalizeResponsesMessageContent(_0xe1a779[_0x12741b(0x449,0x511,0x558,0x4ae)]);_0xad48cc[_0x12741b(0x45b,_0x223360._0x1c318b,_0x223360._0x2c80c3,0x3d0)]>0x0&&_0x2671ee[_0x12741b(0x4fd,0x451,0x470,0x506)]({'type':_0x12741b(_0x223360._0x86e691,0x54d,_0x223360._0xe31f00,_0x223360._0xd12459),'text':_0xad48cc});continue;}if(!isResponsesFunctionCallItem(_0xe1a779)||typeof _0xe1a779[_0x3050ae(_0x223360._0x25c4fc,_0x223360._0x257254,0x4b7,_0x223360._0x2cd98)]!==_0x12741b(_0x223360._0x4faa71,_0x223360._0xd0b687,0x556,0x51c)||_0xe1a779['call_id'][_0x12741b(_0x223360._0x51f212,0x517,_0x223360._0x2b817f,0x5c8)]()[_0x12741b(0x48d,0x3de,0x3d3,0x328)]===0x0||typeof _0xe1a779[_0x12741b(_0x223360._0x4e6e7a,0x4d1,0x4f7,0x54e)]!==_0x3050ae(0x54d,0x60a,0x5be,_0x223360._0x2eb38f)||_0xe1a779[_0x12741b(0x540,0x4d1,_0x223360._0xb51a7f,_0x223360._0xeaea26)][_0x3050ae(_0x223360._0x1112b4,0x622,_0x223360._0x371fb4,0x61a)]()['length']===0x0||typeof _0xe1a779[_0x12741b(0x498,_0x223360._0x3c650b,0x47c,_0x223360._0x216c7b)]!==_0x12741b(_0x223360._0x45faf1,0x4c9,0x4be,_0x223360._0x5bf2df))continue;_0x2671ee['push']({'type':_0x12741b(0x41d,_0x223360._0x6406c8,_0x223360._0x384bc1,0x44d),'id':_0xe1a779['call_id'],'name':_0xe1a779[_0x12741b(_0x223360._0x5ba1d6,0x4d1,0x52d,0x567)],'input':parseToolInput2(_0xe1a779[_0x3050ae(0x524,0x5c7,_0x223360._0x226475,_0x223360._0x10f710)])});}return!_0x2671ee[_0x12741b(_0x223360._0x25e1c7,0x4d4,_0x223360._0x5987c7,_0x223360._0x8090eb)](_0x2f686b=>_0x2f686b[_0x3050ae(0x49b,0x4c9,0x4b8,0x43d)]===_0x3050ae(0x5d1,0x517,0x545,0x531))&&_0x204797[_0x3050ae(0x49d,0x445,0x3eb,0x4a1)]&&_0x2671ee[_0x3050ae(0x4d5,_0x223360._0xc3081d,_0x223360._0x153d69,0x458)]({'type':_0x3050ae(_0x223360._0x2d99b8,0x5ee,_0x223360._0x514c6a,0x62e),'text':_0x204797[_0x3050ae(0x49d,0x40c,_0x223360._0x2bf712,0x3da)]}),{'id':_0x204797['id'],'content':_0x2671ee,'stopReason':_0x2671ee[_0x3050ae(_0x223360._0x26f027,_0x223360._0x3ca9a6,_0x223360._0x5da5a1,0x59d)](_0x4654a3=>_0x4654a3[_0x3050ae(0x49b,0x44e,0x48c,0x531)]==='tool_use')?_0x3050ae(_0x223360._0x1e97f6,_0x223360._0x38e1c2,0x61e,0x558):_0x12741b(0x52e,_0x223360._0x5987c7,0x408,_0x223360._0x162bd3),'usage':{'inputTokens':_0x204797[_0x12741b(_0x223360._0x25bec4,_0x223360._0xc84fed,0x5e3,_0x223360._0x46e49e)]?.[_0x3050ae(0x4d1,_0x223360._0xdf3856,_0x223360._0x253ae1,_0x223360._0x3b61ff)]??0x0,'outputTokens':_0x204797[_0x12741b(_0x223360._0x4eee83,_0x223360._0xc84fed,_0x223360._0x3c288a,_0x223360._0x25cbae)]?.['output_tokens']??0x0,..._0x204797[_0x12741b(_0x223360._0x86e691,_0x223360._0xc84fed,_0x223360._0x2f6811,_0x223360._0xb162b2)]?.[_0x12741b(0x405,_0x223360._0x34a432,0x3f3,_0x223360._0x44b258)]?.[_0x12741b(_0x223360._0x38b52a,_0x223360._0x2ed33f,0x4ce,0x3a6)]!==void 0x0?{'reasoningTokens':_0x204797[_0x12741b(_0x223360._0x5e438c,_0x223360._0xc84fed,_0x223360._0x349909,_0x223360._0x3ad902)][_0x3050ae(0x4f4,_0x223360._0x4ffc79,_0x223360._0x266f22,0x4f1)][_0x3050ae(0x4aa,_0x223360._0x2e46f6,0x442,_0x223360._0x3c29c4)]}:{}},..._0x204797['output']?{'providerState':{'openaiResponsesOutput':structuredClone(_0x204797[_0x12741b(0x496,0x4bc,0x4d7,0x499)]),'openaiResponsesResponseId':_0x204797['id']}}:{}};}function extractErrorMessage(_0x1a8add){const _0xb477f9={_0x47ea63:0x332,_0x1d574a:0x522,_0x177346:0x508,_0x48704f:0x141,_0x4a158f:0x22d,_0x1e62ed:0x188,_0xf087ce:0x207,_0x110b97:0x2af,_0x4c3241:0x224,_0x18e70d:0x21f,_0xee425a:0x233,_0x1c8c7d:0x3d9,_0x3df883:0x4e1,_0xdbf72c:0x507,_0x52f67c:0x22a,_0x171815:0x289,_0x12b710:0x1eb,_0x552970:0x182,_0x48b0b3:0x272,_0x597ba4:0x1ba,_0x4a00ea:0x1b4,_0x2ed1d0:0xfa,_0x2ddd33:0xa5,_0x55f590:0x170,_0x1e2a8c:0x475,_0x2d0101:0x43b,_0x2a8503:0x424,_0x4d82c6:0x50e},_0x4bc7b3={_0xdcc562:0x9f,_0x588108:0x1a5},_0x3506c9={_0x55d044:0x144};if(_0x1a8add['length']===0x0)return'';function _0x40e073(_0x464606,_0x5b0462,_0x18bdd8,_0x44dc20){return _0x5da579(_0x464606-0x86,_0x5b0462-0x105,_0x18bdd8-_0x3506c9._0x55d044,_0x44dc20);}try{const _0x1f20d6=JSON[_0x40e073(_0xb477f9._0x47ea63,0x376,0x39c,0x2ef)](_0x1a8add);if(typeof _0x1f20d6[_0x40e073(0x4b3,_0xb477f9._0x1d574a,0x464,_0xb477f9._0x177346)]?.[_0x5813dd(_0xb477f9._0x48704f,0x207,_0xb477f9._0x4a158f,0x24a)]==='string'&&_0x1f20d6['error'][_0x5813dd(_0xb477f9._0x1e62ed,_0xb477f9._0xf087ce,_0xb477f9._0x110b97,_0xb477f9._0x4c3241)][_0x5813dd(_0xb477f9._0x18e70d,_0xb477f9._0xee425a,0x2a4,0x1b9)]()[_0x40e073(0x33c,0x284,_0xb477f9._0x1c8c7d,0x3ad)]>0x0)return _0x1f20d6[_0x40e073(0x4b3,0x533,_0xb477f9._0x3df883,_0xb477f9._0xdbf72c)][_0x5813dd(_0xb477f9._0x52f67c,0x207,_0xb477f9._0x171815,0x239)][_0x5813dd(_0xb477f9._0xee425a,0x233,_0xb477f9._0x12b710,0x2d2)]();if(typeof _0x1f20d6[_0x5813dd(_0xb477f9._0x552970,_0xb477f9._0xf087ce,_0xb477f9._0x48b0b3,0x204)]==='string'&&_0x1f20d6['message'][_0x5813dd(0x163,0x233,_0xb477f9._0x597ba4,0x202)]()[_0x5813dd(_0xb477f9._0x4a00ea,_0xb477f9._0x2ed1d0,_0xb477f9._0x2ddd33,_0xb477f9._0x55f590)]>0x0)return _0x1f20d6['message'][_0x40e073(_0xb477f9._0x1e2a8c,_0xb477f9._0x2d0101,_0xb477f9._0x2a8503,_0xb477f9._0x4d82c6)]();}catch{return _0x1a8add;}function _0x5813dd(_0x35e767,_0xf1139d,_0x4cc557,_0x3a890c){return _0x3749d0(_0x35e767-_0x4bc7b3._0xdcc562,_0xf1139d-_0x4bc7b3._0x588108,_0xf1139d-0x129,_0x3a890c);}return _0x1a8add;}async function createOpenAiApiError(_0x530f7b){const _0x362c81={_0x58a807:0x25b,_0x3ba212:0x6f,_0x3ac16c:0x2b,_0xcf31a8:0x9d,_0x2683a7:0x3f,_0x1f8494:0xf1,_0x2a604d:0xf,_0xb40da6:0xc3,_0x2f92f0:0x58,_0x1bcb20:0x269,_0x10abac:0x137},_0x24ab93={_0x145043:0xbb,_0x34bd81:0x11b},_0x53c920=(await _0x530f7b[_0x1b0ae2(0x26c,_0x362c81._0x58a807,0x1a9,0x2f7)]())[_0x489c4b(0x3f,_0x362c81._0x3ba212,-_0x362c81._0x3ac16c,_0x362c81._0xcf31a8)](),_0x5d70c7=extractErrorMessage(_0x53c920)||_0x530f7b[_0x489c4b(0x100,0x84,0x11c,-_0x362c81._0x2683a7)]||_0x1b0ae2(_0x362c81._0x1f8494,0xda,0x192,0xc4)+_0x530f7b[_0x489c4b(0x5c,_0x362c81._0x2a604d,-_0x362c81._0xb40da6,_0x362c81._0x2f92f0)];function _0x489c4b(_0x42a8fb,_0x34cb89,_0x676bbc,_0x10d482){return _0x3749d0(_0x42a8fb-0x157,_0x34cb89-0xfa,_0x34cb89- -0x9b,_0x42a8fb);}function _0x1b0ae2(_0x1725a3,_0xebc43f,_0x534da7,_0x2c5f39){return _0x3749d0(_0x1725a3-_0x24ab93._0x145043,_0xebc43f-0x14,_0xebc43f-_0x24ab93._0x34bd81,_0x1725a3);}return new OpenAiApiError(_0x530f7b[_0x1b0ae2(0x242,0x1c5,_0x362c81._0x1bcb20,_0x362c81._0x10abac)],_0x53c920,_0x5d70c7);}function readSseData(_0x23201e){const _0x430d3c={_0xe84bb2:0x2d0,_0x135f68:0x6c,_0x4ffcc6:0x263,_0x4cda75:0x2cd,_0x560fec:0x220,_0x49b417:0x136,_0x426a6e:0x13a,_0x133868:0xba,_0x18f375:0xe2,_0x170c2:0x18f,_0x3ccb9e:0x233,_0x26f130:0x1d5,_0x5abc0b:0x24f},_0x27d336={_0x41914b:0xcc},_0x1da896={_0x1bbd02:0x1ae,_0x1ba3cb:0x9a};function _0x358322(_0x2c1506,_0x23a965,_0x3e1ea9,_0x53a093){return _0x5da579(_0x3e1ea9- -0x5c4,_0x23a965-_0x1da896._0x1bbd02,_0x3e1ea9-_0x1da896._0x1ba3cb,_0x23a965);}function _0x5aaac8(_0x3d8c85,_0x5aa9d,_0x5a44f1,_0x28534e){return _0x3749d0(_0x3d8c85-0x1f4,_0x5aa9d-_0x27d336._0x41914b,_0x5aa9d- -0x1b7,_0x5a44f1);}return _0x23201e[_0x358322(-0x30d,-0x3a2,-_0x430d3c._0xe84bb2,-0x363)]('\x0a')[_0x5aaac8(-0xd8,-_0x430d3c._0x135f68,0x1b,-0x4d)](_0x33fdb9=>_0x33fdb9['startsWith'](_0x5aaac8(-0x80,-0x13d,-0x1da,-0x1dc)))[_0x358322(-0x294,-_0x430d3c._0x4ffcc6,-_0x430d3c._0x4cda75,-_0x430d3c._0x560fec)](_0x4f9848=>_0x4f9848['slice'](0x5)['trimStart']())[_0x5aaac8(-_0x430d3c._0x49b417,-_0x430d3c._0x426a6e,-_0x430d3c._0x133868,-_0x430d3c._0x18f375)]('\x0a')[_0x358322(-_0x430d3c._0x170c2,-_0x430d3c._0x3ccb9e,-_0x430d3c._0x26f130,-_0x430d3c._0x5abc0b)]();}function readString(_0x3f7b2f){const _0x41c526={_0x304a33:0x1f2,_0xd3268f:0xda,_0x5326af:0x9a};function _0x579461(_0x3928a1,_0x6630a3,_0x60ea2b,_0x394c2d){return _0x3749d0(_0x3928a1-_0x41c526._0x304a33,_0x6630a3-_0x41c526._0xd3268f,_0x394c2d-_0x41c526._0x5326af,_0x3928a1);}return typeof _0x3f7b2f==='string'&&_0x3f7b2f[_0x579461(0x92,0x5e,0xae,0x6b)]>0x0?_0x3f7b2f:void 0x0;}function extractReasoningDetails(_0x3b6bb2){const _0x4f9a1b={_0x3fe91c:0x27,_0x1b0897:0x4},_0x41f43e={_0x1b4bfc:0x16e},_0x4bd647={_0xa5a972:0x3f0,_0x4b2ed4:0x3c9,_0x15e412:0x88,_0x4844b6:0x78,_0x36310c:0x95},_0x59ab03={_0x302142:0x274,_0x1c1884:0xcf};function _0x4f672b(_0x498fbe,_0x61e6f5,_0x4b35e3,_0x51d4ac){return _0x5da579(_0x498fbe- -_0x59ab03._0x302142,_0x61e6f5-_0x59ab03._0x1c1884,_0x4b35e3-0x102,_0x4b35e3);}if(!Array['isArray'](_0x3b6bb2))return void 0x0;const _0x34eab7=_0x3b6bb2['flatMap'](_0x4946c5=>{const _0x4dccaf={_0x59e2f6:0xca};if(!_0x4946c5||typeof _0x4946c5!=='object')return[];function _0x11b6b4(_0x5ac670,_0x4d307e,_0x53bc27,_0x573ce8){return _0x1568(_0x5ac670-0x25f,_0x573ce8);}function _0x1d2631(_0x453a69,_0x58dd91,_0x223c06,_0x5eb1d4){return _0x1568(_0x223c06- -_0x4dccaf._0x59e2f6,_0x5eb1d4);}const _0x132474=_0x4946c5;if(typeof _0x132474['text']==='string')return[_0x132474['text']];if(typeof _0x132474[_0x11b6b4(0x357,_0x4bd647._0xa5a972,0x3a7,_0x4bd647._0x4b2ed4)]==='string')return[_0x132474[_0x1d2631(-_0x4bd647._0x15e412,_0x4bd647._0x4844b6,0x2e,-_0x4bd647._0x36310c)]];return[];});function _0x5c1288(_0x66798,_0x23a403,_0x5d7560,_0x58fba0){return _0x5da579(_0x5d7560- -0x29c,_0x23a403-_0x41f43e._0x1b4bfc,_0x5d7560-0x89,_0x58fba0);}return _0x34eab7[_0x4f672b(0x42,0xde,0x80,-_0x4f9a1b._0x3fe91c)]>0x0?_0x34eab7[_0x5c1288(-_0x4f9a1b._0x1b0897,0x124,0xc6,0x129)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x22bc88){const _0x4727db={_0x3b6001:0x15c,_0x50c0ff:0x405,_0x55bf69:0x3cb},_0x9c75ef={_0x3702a5:0xe5},_0xd2a5e7={_0x1ce930:0x223,_0x5b6f1f:0x83};function _0x242620(_0x4893e9,_0x1f9959,_0x15af4a,_0x2936af){return _0x5da579(_0x4893e9- -_0xd2a5e7._0x1ce930,_0x1f9959-_0xd2a5e7._0x5b6f1f,_0x15af4a-0xdf,_0x1f9959);}function _0x53869c(_0x304e7c,_0x2c6597,_0x23e9cc,_0x23eab0){return _0x5da579(_0x23e9cc-_0x9c75ef._0x3702a5,_0x2c6597-0x192,_0x23e9cc-0x1ab,_0x304e7c);}return extractReasoningDetails(_0x22bc88?.['reasoning_details'])??readString(_0x22bc88?.[_0x242620(_0x4727db._0x3b6001,0x21a,0x14c,0x105)])??readString(_0x22bc88?.['reasoning_content'])??readString(_0x22bc88?.[_0x53869c(0x367,_0x4727db._0x50c0ff,0x3a0,_0x4727db._0x55bf69)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x5da579(0x34e,0x3a6,0x3c2,0x2cb)]=[];[_0x5da579(0x301,0x243,0x23e,0x369)];[_0x5da579(0x2ff,0x291,0x37a,0x2dc)]=[];['toolCallsByIndex']=new Map();[_0x3749d0(0x129,-0x1e,0x8c,0x42)]=[];[_0x5da579(0x3e0,0x47c,0x31f,0x359)]=new Set();['responseId']='';['stopReason']=_0x3749d0(0x4,0x12b,0x92,0x1c);[_0x5da579(0x43c,0x430,0x4ea,0x4c3)];constructor(_0x2e1574){const _0x36281b={_0x400403:0x4f5,_0x2fe024:0x3f8},_0x43a267={_0x17ae7b:0x135};function _0x40ddb0(_0x44c71c,_0x2b78a9,_0x25262e,_0x2a5cbb){return _0x3749d0(_0x44c71c-_0x43a267._0x17ae7b,_0x2b78a9-0x1d5,_0x2a5cbb-0x46a,_0x25262e);}this[_0x40ddb0(_0x36281b._0x400403,_0x36281b._0x2fe024,0x3e7,0x486)]=_0x2e1574;}[_0x3749d0(0x137,0x85,0xac,0xef)](_0x44eb0d){const _0x416c7c={_0x40dacb:0xde,_0x32a235:0x1e2,_0xa8144b:0x40,_0x4f05dc:0x116,_0x8e2a04:0x19a,_0x2792ef:0x5b,_0xc7e149:0x154,_0x35b121:0x11d},_0x2a1ad4={_0x3ab022:0x473,_0x46a5fb:0xf6},_0x229036={_0x5f33d2:0x131,_0x517182:0x19b},_0x5146ec=readSseData(_0x44eb0d);if(_0x5146ec[_0x41bfc6(-0x70,-0x118,-0xaf,-_0x416c7c._0x40dacb)]===0x0||_0x5146ec==='[DONE]')return[];const _0x3b3af8=JSON[_0x41bfc6(-0x7a,-0xbd,-0xe1,-0x6a)](_0x5146ec);this[_0x5d0a5f(-_0x416c7c._0x32a235,-0x244,-0x18d,-0xe4)]=_0x3b3af8['id']??this[_0x41bfc6(-_0x416c7c._0xa8144b,-0x75,0x65,0x6e)];function _0x41bfc6(_0x1f0edb,_0x303317,_0x361384,_0x3e26b3){return _0x5da579(_0x1f0edb- -0x326,_0x303317-_0x229036._0x5f33d2,_0x361384-_0x229036._0x517182,_0x3e26b3);}this[_0x41bfc6(_0x416c7c._0x4f05dc,_0x416c7c._0x8e2a04,_0x416c7c._0x2792ef,0xe9)]=_0x3b3af8['usage']??this[_0x41bfc6(0x116,0x1dd,_0x416c7c._0xc7e149,_0x416c7c._0x35b121)];function _0x5d0a5f(_0x4f12b5,_0x3ba6a1,_0x17ee94,_0x40b151){return _0x5da579(_0x17ee94- -_0x2a1ad4._0x3ab022,_0x3ba6a1-0x5c,_0x17ee94-_0x2a1ad4._0x46a5fb,_0x3ba6a1);}return this['consumeEvent'](_0x3b3af8);}[_0x3749d0(0xa6,0x37,0x81,-0x36)](){const _0x4cc6f7={_0x1a12fa:0x47,_0x3b89dd:0x7a,_0x1354ab:0xa8,_0x468177:0x110,_0x4b80ab:0x10d,_0x1e1d1c:0x12e,_0x4801e4:0xb8,_0x1c176a:0x63,_0x42771b:0x133,_0x120f3e:0x209,_0x1644b9:0x135,_0x4a860c:0x11e,_0x333cff:0x7,_0x1c3585:0xb1,_0x109dba:0x6c,_0x198f16:0x19,_0x114154:0x1a4,_0x28906f:0xef,_0xfdb80f:0x183,_0x308aa1:0x1d9},_0x2270ad={_0x538816:0x1e0},_0x3b021f={_0x327153:0x139,_0x46bcb3:0x47};function _0x2fe282(_0x1e1d38,_0x44f473,_0xc675a9,_0x5246be){return _0x3749d0(_0x1e1d38-0xbe,_0x44f473-_0x3b021f._0x327153,_0xc675a9-_0x3b021f._0x46bcb3,_0x5246be);}this['toolCallOrder'][_0x162094(_0x4cc6f7._0x1a12fa,0x5,_0x4cc6f7._0x3b89dd,_0x4cc6f7._0x1354ab)]>0x0&&(this['stopReason']=_0x162094(0x105,_0x4cc6f7._0x468177,_0x4cc6f7._0x4b80ab,_0x4cc6f7._0x1e1d1c));function _0x162094(_0x3a4088,_0x59ca35,_0x1dfa29,_0x2060a){return _0x3749d0(_0x3a4088-_0x2270ad._0x538816,_0x59ca35-0x16f,_0x59ca35-0x34,_0x2060a);}const _0x4eea70=isUserVisibleReasoning(this[_0x2fe282(0x70,_0x4cc6f7._0x4801e4,_0x4cc6f7._0x1c176a,_0x4cc6f7._0x42771b)])?this['reasoningParts']['join'](''):void 0x0;return{'id':this['responseId']||_0x2fe282(_0x4cc6f7._0x120f3e,_0x4cc6f7._0x1644b9,0x17f,_0x4cc6f7._0x4a860c)+Date[_0x162094(0x8f,0x92,0x131,0x43)](),'content':createContentBlocks(this[_0x2fe282(0xdf,-_0x4cc6f7._0x333cff,0x61,0x115)][_0x162094(0xea,_0x4cc6f7._0x1c3585,-0x20,0x12c)](''),this[_0x162094(0x3a,0xc0,_0x4cc6f7._0x109dba,_0x4cc6f7._0x198f16)],_0x4eea70),'stopReason':this[_0x2fe282(_0x4cc6f7._0x114154,_0x4cc6f7._0x28906f,_0x4cc6f7._0xfdb80f,_0x4cc6f7._0x308aa1)],'usage':createUsage(this['usage'])};}[_0x5da579(0x3db,0x348,0x3e2,0x459)](_0xd5f534){const _0x1fcbe4={_0x267d6e:0x1f6,_0x1cf118:0x290,_0x29e41d:0x1b6,_0x4fb7db:0x152,_0x31be51:0x15b,_0x1b802b:0x1d1,_0x255c34:0x123,_0x53c76e:0x17c,_0x311d6d:0x101,_0xfbb1c7:0x123,_0x179bc0:0x194,_0x411347:0x1bc,_0x421f79:0x10b,_0x1f5b42:0x1bd,_0x43cc57:0x1b9,_0x28f89e:0xdd,_0x3fcb09:0x138,_0x3ccd79:0x13a,_0x187790:0x63,_0x9eeace:0xd3,_0x5085d9:0x66,_0x187a1d:0x13b,_0x310f0e:0x186,_0x51b5cd:0xab,_0x59f2e3:0xc0,_0x5282d5:0x230,_0x5aed7d:0x13d,_0x3a62c4:0x184,_0x1602b7:0x192,_0x57aa75:0x7c,_0x461c3b:0x14f,_0x22f6bc:0x123,_0x393c7d:0x86,_0x1884b3:0x16e,_0x41f375:0x10c,_0x14eb60:0x6e,_0x5d91ec:0xac,_0x3a3e4c:0xec,_0x142ba3:0x43,_0x55be79:0x83,_0x50810f:0x1ed,_0x20fc98:0x145,_0x4ecefc:0x90,_0x148b74:0x136,_0xbd3ca1:0x19d,_0x53248d:0x19,_0x2588de:0xc2,_0x14e912:0x127,_0x489861:0xa3,_0x2390a6:0x61,_0x4a0820:0xe3,_0x2b8aeb:0x117,_0x377d9d:0x21c,_0x4da4a4:0x13b,_0xa4c474:0x11e,_0x1da57e:0xb7,_0x2f32fe:0x85,_0x3dc091:0x14b,_0x237521:0xbc,_0x5750a2:0x62,_0x5ee83a:0x1f,_0x2c41bc:0x14f,_0x319db1:0x80,_0xc50079:0x6c,_0x4de1bf:0x8a,_0x1c5846:0xd8,_0x420c9f:0x94,_0x36c0aa:0x10,_0x41d275:0x58,_0x4673d6:0x34,_0x1565b1:0x158,_0x52960d:0xf8,_0x477017:0xa3,_0x488481:0x14e,_0x13c187:0x40,_0x4b6c4e:0x45,_0x125c67:0x1e9,_0x2ff7dd:0x134,_0x38c7e0:0x11d,_0x46e52c:0xb1,_0x360dbd:0x20,_0x583793:0x3c,_0x287a72:0x3c},_0x1af1eb={_0x1a578c:0x44c},_0x5ccb8a=[];function _0x335d4f(_0x9b5142,_0x8d0c9c,_0x248c21,_0x35ea5e){return _0x5da579(_0x9b5142- -0x4ac,_0x8d0c9c-0x1db,_0x248c21-0x164,_0x248c21);}function _0xce35ff(_0xa6349,_0x176020,_0x3e40be,_0x56b489){return _0x5da579(_0x3e40be- -_0x1af1eb._0x1a578c,_0x176020-0x43,_0x3e40be-0x1ea,_0x176020);}for(const _0x1513eb of _0xd5f534['choices']??[]){const _0x112c4f=_0x1513eb['delta'],_0x514dbc=extractChatCompletionReasoningDelta(_0x112c4f);_0x514dbc[_0x335d4f(-_0x1fcbe4._0x267d6e,-_0x1fcbe4._0x1cf118,-0x1c9,-_0x1fcbe4._0x29e41d)]>0x0&&(this[_0xce35ff(-0x13f,-0x108,-0xfe,-_0x1fcbe4._0x4fb7db)][_0xce35ff(-_0x1fcbe4._0x31be51,-_0x1fcbe4._0x1b802b,-_0x1fcbe4._0x255c34,-_0x1fcbe4._0x53c76e)](_0x514dbc),isUserVisibleReasoning(this['request'])&&_0x5ccb8a[_0xce35ff(-_0x1fcbe4._0x311d6d,-0xf6,-_0x1fcbe4._0xfbb1c7,-_0x1fcbe4._0x179bc0)]({'type':_0x335d4f(-_0x1fcbe4._0x411347,-0x218,-_0x1fcbe4._0x421f79,-_0x1fcbe4._0x1f5b42),'contentIndex':0x0,'delta':_0x514dbc,'itemId':(this['responseId']||_0x335d4f(-0x1b0,-0x266,-_0x1fcbe4._0x43cc57,-_0x1fcbe4._0x28f89e))+_0x335d4f(-_0x1fcbe4._0x3fcb09,-_0x1fcbe4._0x3ccd79,-0x11c,-0x1a0),'outputIndex':0x0}));const _0x282be6=typeof _0x112c4f?.[_0xce35ff(0x27,-0x12e,-_0x1fcbe4._0x187790,-0x45)]===_0x335d4f(-0x10b,-0x1a4,-_0x1fcbe4._0x9eeace,-0x106)?_0x112c4f[_0xce35ff(-_0x1fcbe4._0x5085d9,0x18,-0x63,0x54)]:typeof _0x112c4f?.[_0xce35ff(-_0x1fcbe4._0x187a1d,-0xc1,-_0x1fcbe4._0x310f0e,-0xf9)]===_0xce35ff(-0x13,-0x11f,-_0x1fcbe4._0x51b5cd,-_0x1fcbe4._0x59f2e3)?_0x112c4f[_0x335d4f(-0x1e6,-0x24f,-_0x1fcbe4._0x5282d5,-_0x1fcbe4._0x5aed7d)]:'';_0x282be6['length']>0x0&&(this['textParts'][_0x335d4f(-0x183,-_0x1fcbe4._0x3a62c4,-0x194,-_0x1fcbe4._0x1602b7)](_0x282be6),_0x5ccb8a[_0xce35ff(-_0x1fcbe4._0x57aa75,-_0x1fcbe4._0x461c3b,-_0x1fcbe4._0x22f6bc,-_0x1fcbe4._0x3a62c4)]({'type':_0xce35ff(-_0x1fcbe4._0x393c7d,-_0x1fcbe4._0x1884b3,-_0x1fcbe4._0x41f375,-_0x1fcbe4._0x14eb60),'index':0x0,'text':_0x282be6}));for(const _0x1dfed1 of _0x112c4f?.[_0xce35ff(-0x12f,-0x63,-_0x1fcbe4._0x5d91ec,-0x6a)]??[]){const _0x4db15d=_0x1dfed1[_0xce35ff(0x1d,-_0x1fcbe4._0x3a3e4c,-_0x1fcbe4._0x142ba3,_0x1fcbe4._0x55be79)]??0x0;let _0x30fe33=this[_0xce35ff(-0x14f,-0x108,-0xaa,-0x70)][_0xce35ff(-_0x1fcbe4._0x50810f,-0xe2,-_0x1fcbe4._0x20fc98,-_0x1fcbe4._0x4ecefc)](_0x4db15d);!_0x30fe33&&(_0x30fe33={'id':_0x1dfed1['id']??_0x335d4f(-0xf1,-0x117,-_0x1fcbe4._0x148b74,-_0x1fcbe4._0xbd3ca1)+_0x4db15d,'type':_0xce35ff(-_0x1fcbe4._0x53248d,-0x133,-0x62,-0x30),'function':{'name':_0x1dfed1[_0x335d4f(-_0x1fcbe4._0x2588de,-_0x1fcbe4._0x14e912,-0x190,-_0x1fcbe4._0x41f375)]?.[_0xce35ff(0x11,-0xc1,-_0x1fcbe4._0x489861,-0xb6)]??'','arguments':''}},this[_0xce35ff(-_0x1fcbe4._0x2390a6,-0xb,-0xaa,-0x12a)][_0x335d4f(-0x1b3,-_0x1fcbe4._0x4a0820,-_0x1fcbe4._0x2b8aeb,-_0x1fcbe4._0x377d9d)](_0x4db15d,_0x30fe33),this[_0x335d4f(-_0x1fcbe4._0x4da4a4,-0x104,-0x8e,-_0x1fcbe4._0x3ccd79)][_0x335d4f(-0x183,-0x200,-0x1cd,-_0x1fcbe4._0xa4c474)](_0x30fe33));_0x1dfed1['id']&&(_0x30fe33['id']=_0x1dfed1['id']);_0x1dfed1['function']?.['name']&&(_0x30fe33[_0xce35ff(-_0x1fcbe4._0x1da57e,-0x5,-0x62,-_0x1fcbe4._0x2f32fe)][_0x335d4f(-0x103,-0x13a,-_0x1fcbe4._0x3dc091,-_0x1fcbe4._0x237521)]=_0x1dfed1[_0xce35ff(-0xcc,-0x3e,-_0x1fcbe4._0x5750a2,-_0x1fcbe4._0x5ee83a)][_0xce35ff(0x13,-_0x1fcbe4._0x2c41bc,-_0x1fcbe4._0x489861,-_0x1fcbe4._0x319db1)]);!this[_0xce35ff(-0x16,-0x12a,-_0x1fcbe4._0xc50079,-0xdb)]['has'](_0x4db15d)&&_0x30fe33[_0x335d4f(-0xc2,-0x18b,-_0x1fcbe4._0x4de1bf,0x6)]['name'][_0xce35ff(-0x32,0x73,-0x5d,-0x11f)]()['length']>0x0&&(_0x5ccb8a[_0xce35ff(-0xb5,-_0x1fcbe4._0x1c5846,-0x123,-_0x1fcbe4._0x420c9f)]({'type':'tool_use_delta','id':_0x30fe33['id'],'index':_0x4db15d,'name':_0x30fe33[_0xce35ff(-_0x1fcbe4._0x36c0aa,-_0x1fcbe4._0x41d275,-0x62,-_0x1fcbe4._0x4673d6)][_0xce35ff(-_0x1fcbe4._0x1565b1,-_0x1fcbe4._0x52960d,-_0x1fcbe4._0x477017,-_0x1fcbe4._0x488481)]}),this['toolUseStartEmitted']['add'](_0x4db15d));const _0x1cdef2=_0x1dfed1[_0xce35ff(0xf,-_0x1fcbe4._0x13c187,-_0x1fcbe4._0x5750a2,_0x1fcbe4._0x4b6c4e)]?.['arguments']??'';_0x1cdef2[_0x335d4f(-_0x1fcbe4._0x267d6e,-0x2a1,-_0x1fcbe4._0x125c67,-0x26c)]>0x0&&(_0x30fe33[_0xce35ff(-_0x1fcbe4._0x57aa75,-0x16,-_0x1fcbe4._0x5750a2,-0x11e)][_0x335d4f(-_0x1fcbe4._0x2ff7dd,-0x118,-0x94,-0xeb)]+=_0x1cdef2,_0x5ccb8a['push']({'type':'tool_use_delta','id':_0x30fe33['id'],'index':_0x4db15d,'inputDelta':_0x1cdef2}));}_0x1513eb[_0xce35ff(-_0x1fcbe4._0x38c7e0,-_0x1fcbe4._0x14eb60,-_0x1fcbe4._0x46e52c,_0x1fcbe4._0x360dbd)]===_0xce35ff(-_0x1fcbe4._0x583793,-0xc2,-0xac,-0xda)&&(this['stopReason']=_0x335d4f(-0xeb,-0x1ab,-_0x1fcbe4._0x287a72,-0xab));}return _0x5ccb8a;}},OpenAiResponsesStreamParser=class{['callIdToOutputIndex']=new Map();[_0x5da579(0x2c7,0x36e,0x2e8,0x35a)];['outputIndexToCallId']=new Map();[_0x5da579(0x3de,0x350,0x350,0x32d)]=new Map();[_0x5da579(0x353,0x2a5,0x29e,0x3de)]=new Map();[_0x3749d0(0x47,0xd2,0x1c,-0x9a)];['responseTextParts']=new Map();[_0x3749d0(-0x47,0x4a,-0x30,-0xbe)]=new Map();constructor(_0x184e5a){this['request']=_0x184e5a;}[_0x3749d0(0x106,0x15f,0xac,0x92)](_0x4c49ba){const _0x399d27={_0x17fd5f:0x77,_0x2b92ae:0x13e,_0x5bf98a:0x35,_0x1fae9e:0x2cc,_0xe961d6:0x84,_0x5cf84e:0x63,_0xfcba47:0x159,_0x1a6126:0x74,_0x582a92:0x6d,_0x2040c1:0x1d,_0x1b6fd5:0xb5,_0x57123e:0x9,_0xe2a3a:0x106,_0x6063c9:0x242,_0x456485:0x2d3,_0xcc82d6:0x316,_0x33e330:0x28e,_0x27a587:0x262,_0x5d87d3:0x39,_0x47d666:0x47},_0x3944cb={_0x4e5a5e:0xfb},_0x2d6e16={_0x16cada:0x36b,_0x3a764f:0x8b};function _0x5ab282(_0x4306b7,_0x46e66f,_0x2c708a,_0x45007e){return _0x5da579(_0x4306b7- -_0x2d6e16._0x16cada,_0x46e66f-_0x2d6e16._0x3a764f,_0x2c708a-0x12c,_0x46e66f);}const _0xe3fd87=_0x4c49ba[_0x5ab282(-_0x399d27._0x17fd5f,-_0x399d27._0x2b92ae,-0x51,_0x399d27._0x5bf98a)]('\x0a'),_0x7ecb86=_0xe3fd87['find'](_0x2897a8=>_0x2897a8['startsWith']('event:'))?.[_0x307cf5(-0x2a2,-0x337,-_0x399d27._0x1fae9e,-0x2fc)](0x6)[_0x5ab282(_0x399d27._0xe961d6,0x97,-0x4f,0xfa)]();function _0x307cf5(_0x48ba21,_0x3150ec,_0x3104f8,_0x28e0cd){return _0x3749d0(_0x48ba21-_0x3944cb._0x4e5a5e,_0x3150ec-0xff,_0x3104f8- -0x2b3,_0x3150ec);}const _0x315a0e=_0xe3fd87[_0x5ab282(0xc5,0x17f,_0x399d27._0x5cf84e,_0x399d27._0xfcba47)](_0x463917=>_0x463917[_0x307cf5(-0x292,-0x261,-0x2a2,-0x1e3)](_0x307cf5(-0x2e1,-0x194,-0x239,-0x21d)))[_0x5ab282(-_0x399d27._0x1a6126,-_0x399d27._0x582a92,-0x11b,-0xdd)](_0x2f9128=>_0x2f9128[_0x307cf5(-0x2c6,-0x337,-0x2cc,-0x242)](0x5)[_0x5ab282(-0x21,0x13,0x63,0x8f)]())[_0x5ab282(-0x9,0x47,_0x399d27._0x2040c1,0x7b)]('\x0a')['trim']();if(_0x315a0e[_0x5ab282(-_0x399d27._0x1b6fd5,_0x399d27._0x57123e,-0x6f,-_0x399d27._0xe2a3a)]===0x0||_0x315a0e===_0x307cf5(-_0x399d27._0x6063c9,-0x230,-_0x399d27._0x456485,-_0x399d27._0xcc82d6))return[];const _0x467588=JSON[_0x307cf5(-_0x399d27._0x33e330,-0x3ba,-0x2ec,-_0x399d27._0x27a587)](_0x315a0e);return this[_0x5ab282(0x70,-_0x399d27._0x5d87d3,_0x399d27._0x47d666,-0x57)](_0x7ecb86??String(_0x467588['type']??''),_0x467588);}[_0x3749d0(-0xb5,-0x63,-0x29,-0x32)](_0x59e6ac){const _0xbc505={_0x2137fc:0x285};function _0xd448b0(_0x2f39db,_0x2e0c2,_0x2d449a,_0xc4cc05){return _0x5da579(_0x2e0c2- -0x72,_0x2e0c2-0x1ef,_0x2d449a-0x102,_0xc4cc05);}return this['consumeEvent'](String(_0x59e6ac[_0xd448b0(_0xbc505._0x2137fc,0x27d,0x2ef,0x2dd)]??''),_0x59e6ac);}['finish'](){const _0x5e94bb={_0x522a4a:0x167,_0x1e78f6:0x111,_0x195955:0x104,_0x2a8b5c:0x182,_0x16852e:0x1d5,_0x2b735f:0x239,_0x1c3a81:0x143,_0x574cd0:0x13a,_0x4d27cb:0x1c1,_0x2c04bf:0xcf,_0x5dd7f4:0x61,_0x1f32bb:0x5c},_0x1e9be9={_0xa24cad:0x136},_0x230974={_0x1338a5:0x19e};function _0x3c1069(_0x2755d6,_0x323fc0,_0x310a7b,_0x4df05b){return _0x3749d0(_0x2755d6-0x14e,_0x323fc0-_0x230974._0x1338a5,_0x4df05b-0x1be,_0x323fc0);}function _0xb0afac(_0x45b5c4,_0x47fd50,_0x46d9e1,_0x3af986){return _0x5da579(_0x46d9e1- -0x389,_0x47fd50-0x107,_0x46d9e1-_0x1e9be9._0xa24cad,_0x47fd50);}const _0x251d6e=this[_0x3c1069(_0x5e94bb._0x522a4a,_0x5e94bb._0x1e78f6,0x250,0x1a0)]??{'id':_0x3c1069(0x216,0x164,_0x5e94bb._0x195955,_0x5e94bb._0x2a8b5c)+Date[_0x3c1069(0x14e,0x25c,_0x5e94bb._0x16852e,0x21c)](),'object':'response','status':'completed','output':this[_0x3c1069(_0x5e94bb._0x2b735f,_0x5e94bb._0x1c3a81,_0x5e94bb._0x574cd0,_0x5e94bb._0x4d27cb)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x251d6e,this[_0xb0afac(-_0x5e94bb._0x2c04bf,-_0x5e94bb._0x5dd7f4,-0x88,-_0x5e94bb._0x1f32bb)]);}[_0x5da579(0x310,0x2f6,0x2ef,0x27a)](){const _0x28579c={_0x1ce2ff:0x14c,_0x51c778:0x9c,_0x890a9d:0x48},_0x30b88f={_0x15a4e3:0x7e};function _0x542cad(_0x59007d,_0x3f543f,_0x4a9173,_0xeccc1f){return _0x3749d0(_0x59007d-0x1d6,_0x3f543f-0xe6,_0x3f543f- -_0x30b88f._0x15a4e3,_0xeccc1f);}return this[_0x542cad(-_0x28579c._0x1ce2ff,-_0x28579c._0x51c778,-0x164,-_0x28579c._0x890a9d)]!==void 0x0;}[_0x3749d0(0x102,0x94,0xf6,0x2a)](_0x259d7a,_0x47832c){const _0x135036={_0x51565f:0x179,_0xd7bd2a:0x1b7,_0x125b2d:0x277,_0x4274ee:0x1b9,_0x456170:0x2c0,_0x4f2e00:0x226,_0x28a17f:0x190,_0x4a8832:0x1e2,_0x240b6c:0x1db,_0x10fb48:0x1f0,_0x208c2c:0x2c3,_0x38dcaa:0x152,_0x47aa00:0x303,_0x1def90:0x1e8,_0x575b0a:0x2dd,_0x25fc07:0x176,_0x5f11f7:0x189,_0x2470ac:0x170,_0x17f6eb:0x1da,_0xb4d43f:0x2ae,_0x1b9cae:0x1e1,_0x549463:0x171,_0x28d1bf:0x2a6,_0x132cfe:0x281,_0x20f4c0:0x14b,_0x2467a0:0x1f3,_0x362414:0x253,_0x9a8bad:0x197,_0x25ebc8:0x293,_0x54a98f:0x29e,_0x31c8e7:0x211,_0xb19ded:0x15a,_0x2fce2e:0x1a9,_0x285f51:0x21a,_0x30e04a:0x206,_0x308a34:0x21e,_0x27c2e2:0x1aa,_0x1182dd:0x21e,_0x1aa2a8:0x1d6,_0x46904d:0x2fd,_0x2ff644:0x2a4,_0x28f41b:0x2fd,_0x34ccaf:0xe4,_0x494fac:0x19a,_0x3362a6:0x4a,_0x571706:0x132,_0x837516:0x26e,_0xab58fa:0x172,_0x1a1a07:0x223,_0x48533c:0x2af,_0x57b0df:0x25b,_0x5641d4:0x263,_0x8b5dda:0x266,_0x1423ff:0xd7,_0x550895:0x1d9,_0x58e0f9:0x21d,_0x48f027:0x239,_0x3a0e6b:0x210,_0x524542:0x13c,_0x3975af:0x2b2,_0x153380:0x241,_0x2a8eda:0x27a,_0x36cb09:0x7f,_0x4a95bd:0x1c9,_0x2202d8:0x1a6,_0x1c08c5:0x242,_0x26648b:0x1f2,_0x42b83e:0x26b,_0x4c039a:0x1d8,_0x4a43aa:0x199,_0x31a5c9:0x230,_0x17108a:0x204,_0x384883:0x15c,_0x51503e:0x2ce,_0x3feb2c:0x294,_0x108536:0x34b,_0x225aa2:0x20e,_0x2a7220:0x1b4,_0x51d4e4:0x11b,_0x138e3f:0x19d,_0xc205e8:0x2f1,_0x35dc7b:0x1fc,_0x41f4cc:0x2a4,_0xcfa058:0x12c,_0x1e6baf:0x13a,_0x17c971:0x1d1,_0x4acea9:0x2f4,_0x218391:0x2fe,_0x29e5e4:0x159,_0x3dee4c:0x26a,_0x149afa:0x204,_0x39de8c:0x1cb,_0x45321b:0x17e,_0x18c547:0xa8,_0xd5b343:0x1d6,_0x4e3fa9:0x17a,_0x2a8a9c:0x1ef,_0x25e20e:0x138,_0x5811ef:0x1fb,_0x2a03b7:0x166,_0xbbecc8:0x1b7,_0x957cbf:0x160,_0x265d64:0x1c5,_0x4c1101:0x1c1,_0x1d3d37:0x1ac,_0xac7ae7:0x1ce,_0x1576da:0x285,_0x5e605f:0x254,_0x256d59:0x1b5,_0x108b96:0x1c1,_0x16ee80:0x15a,_0xa9fb41:0xfa,_0x4c7b41:0x100,_0xd31a10:0x2c7,_0x1cd1f6:0x21f,_0x3a447d:0x232,_0x4a9912:0x20b,_0x52cdcf:0x22d,_0x3d7ee3:0x1af,_0x8b793d:0x1fa,_0x50a795:0x1d9,_0x1ad7f8:0x12a,_0xf11028:0x1c3,_0x5e0233:0x2fb,_0x1186b2:0x29e,_0x1b85b2:0x20d,_0x326bba:0x1d0,_0x1792ab:0x176,_0x207c73:0x1c1,_0x5882be:0x1d7,_0x45be1c:0x285,_0x1a8c07:0x2f9,_0x1a4280:0x233,_0x27ae96:0xfb,_0x2d90d7:0x351,_0x13e238:0x2d7,_0x1b1452:0x2d3,_0x39cff5:0x186,_0x504e41:0x232,_0x5e7312:0x218,_0x208847:0x239,_0x2fe402:0x236,_0x197770:0x1b7,_0x129cc7:0x1ff,_0x1967bb:0x1f8,_0x2d8927:0x2a5,_0x2ab630:0x212,_0x1094aa:0x217,_0x2f626a:0x14e,_0x1e9074:0x139,_0x5552a3:0xc5,_0x3eb5be:0xff,_0x1ae9b1:0x1c6,_0x636482:0x24b,_0x1695dc:0x287,_0x3a4638:0x1fb,_0x2b5866:0x1b3,_0x5d06ad:0x213,_0x53b3e9:0x29c,_0x3c308a:0x253,_0x497c1f:0xcf,_0x4af2bf:0x147,_0x280648:0x1de,_0xfb375f:0x1a3,_0x446c19:0x8a,_0x3ce6d3:0x1aa,_0x250c3c:0x1fd,_0x4f00ad:0x190,_0xe01dea:0x205,_0x250b05:0x207,_0x3a0e9c:0x250,_0x2026a0:0x227,_0x2b7614:0x249,_0x456dcf:0x1f6,_0x23503e:0x204,_0x121d89:0x2b0,_0x1105d5:0x24c,_0x3a1df5:0x10e,_0x57396b:0x1f4,_0x359d19:0x15c,_0x5ef130:0x1dd,_0x270594:0x263,_0x3a35a3:0x226,_0x243c7d:0x2a2,_0x4abe29:0x17e,_0x3dd14e:0xf0,_0x8f548d:0x160,_0x6055b7:0x2b8,_0x429f2c:0x2a1,_0x12618b:0x2e9,_0x291fbc:0x130,_0x2af975:0x27d,_0x12eb7b:0x1d9,_0x349a94:0x2a8,_0x4dfb97:0x324,_0x3b730c:0x37b,_0x23c8af:0x289,_0x4b14f9:0x1f4,_0x17c915:0x1f7,_0x6bf214:0xec,_0x340006:0x210,_0x41a8d4:0x1f0,_0x14a97d:0x154,_0x3f3c8a:0x286,_0x1bf4e3:0x274,_0x54a0ac:0x1b2,_0x1f325a:0x2ba,_0x3f9f30:0x1fa,_0x23a076:0x15d,_0x360df5:0x1b6,_0x34845b:0x1f1,_0xf9458f:0x1b5,_0x1bc577:0x271,_0x564970:0x2df,_0x2afeac:0x178,_0x7135ba:0x187,_0x37032d:0x1a3,_0x2fd683:0x113,_0x59119c:0x200,_0x2d3664:0x17d,_0x46dcd3:0x17b,_0x4f8e86:0x12e,_0x3a08c3:0x1d0,_0x5756db:0x11c,_0x3ac6c4:0x11c,_0xd8537a:0x161,_0x2fcebe:0x1a4,_0x2424ab:0x10a,_0x903db1:0x251,_0x149ab2:0x178,_0x544076:0x22f,_0x47dedb:0x279,_0x2078a3:0x262,_0x4a72f8:0x1b8,_0x2b90d5:0x227,_0x4447bb:0x26c,_0x14eb9e:0x214,_0xe68512:0x1f9,_0x3aeb5d:0x2b6,_0x36c1af:0x2fa,_0x3afb33:0x2b3,_0x7b1f22:0x1e0,_0x32f37f:0x2f3,_0x1f6ddf:0x264,_0x41d13d:0x241,_0x30b5ee:0x262,_0x5cf6c2:0x248,_0x45d2bb:0x1f0,_0x1f9e48:0x225,_0x26ee04:0x2c8,_0x297a0f:0x244,_0x3aab19:0x250,_0x411654:0x220,_0x23b85d:0x25b,_0x19145e:0x2af,_0x38b370:0x1ba,_0x592051:0x2a3,_0x17d70c:0x15f,_0x5a7ece:0x186,_0x41aaf2:0xf1,_0x4e0420:0x181,_0x4da779:0x17a,_0x46ce79:0x182,_0x270a58:0x224,_0x2a174d:0xae,_0x1d26c6:0x115,_0x30304d:0x185,_0xd71bc0:0x266,_0x276865:0x240,_0x2ae7f7:0x2b8,_0x5f50ba:0x26d,_0x503e2a:0x16d,_0x1d3125:0x123,_0xba48bd:0x30e,_0x13df93:0x27d,_0x1cea13:0x1f2,_0x278252:0x103,_0x51216d:0x1b5,_0x5d149a:0x2ff,_0x2a28ef:0x21c,_0x513b29:0x261,_0x13d229:0x19f,_0x244838:0x165,_0x968044:0xc1,_0xbfe2a1:0x234},_0x1ba25a={_0x36e08b:0xde},_0x22d936={_0x386e4c:0x19};switch(_0x259d7a){case'response.output_text.delta':{const _0x460fba=typeof _0x47832c[_0x4d16fe(-_0x135036._0x51565f,-_0x135036._0xd7bd2a,-0x204,-_0x135036._0x125b2d)]===_0x4d16fe(-_0x135036._0x4274ee,-_0x135036._0x456170,-_0x135036._0x4f2e00,-_0x135036._0x28a17f)?_0x47832c[_0x1a8828(_0x135036._0x4a8832,_0x135036._0x240b6c,_0x135036._0x10fb48,_0x135036._0x208c2c)]:0x0,_0x43ad67=typeof _0x47832c[_0x1a8828(0x156,0x21f,0x190,_0x135036._0x38dcaa)]===_0x1a8828(0x317,_0x135036._0x47aa00,0x25b,0x193)?_0x47832c[_0x4d16fe(-_0x135036._0x1def90,-_0x135036._0x575b0a,-0x264,-0x283)]:'';if(_0x43ad67[_0x1a8828(_0x135036._0x25fc07,_0x135036._0x5f11f7,_0x135036._0x2470ac,0x188)]>0x0){const _0x432279=this[_0x1a8828(0x15a,_0x135036._0x17f6eb,0x1e1,0x263)][_0x1a8828(0x1a8,0x28f,0x1c1,0x260)](_0x460fba)??[];return _0x432279['push'](_0x43ad67),this[_0x1a8828(0x1e3,_0x135036._0xb4d43f,_0x135036._0x1b9cae,0x139)]['set'](_0x460fba,_0x432279),[{'type':_0x4d16fe(-_0x135036._0x549463,-0x1aa,-0x1fa,-0x15b),'index':_0x460fba,'text':_0x43ad67}];}break;}case'response.output_item.added':{const _0xbcdea7=typeof _0x47832c[_0x4d16fe(-_0x135036._0x28d1bf,-0x2a8,-0x204,-_0x135036._0x132cfe)]===_0x1a8828(_0x135036._0x20f4c0,_0x135036._0x2467a0,0x1ce,_0x135036._0x362414)?_0x47832c[_0x4d16fe(-_0x135036._0x9a8bad,-0x203,-0x204,-0x13b)]:void 0x0,_0x4995b3=_0x47832c[_0x4d16fe(-0x1ed,-_0x135036._0x25ebc8,-_0x135036._0x54a98f,-_0x135036._0x31c8e7)];if(_0x4995b3?.[_0x1a8828(_0x135036._0xb19ded,0x135,_0x135036._0x2fce2e,_0x135036._0x285f51)]===_0x4d16fe(-_0x135036._0x30e04a,-0x199,-0x1d0,-0x1d2)&&_0x4995b3[_0x4d16fe(-0x2d6,-0x259,-_0x135036._0x308a34,-_0x135036._0x27c2e2)]&&_0x4995b3['name'])return this['toolCalls']['set'](_0x4995b3[_0x4d16fe(-0x17f,-0x2dc,-_0x135036._0x1182dd,-0x245)],{'id':_0x4995b3[_0x1a8828(0x159,0x152,_0x135036._0x1aa2a8,0x108)],'type':_0x1a8828(0x231,_0x135036._0x46904d,_0x135036._0x2ff644,_0x135036._0x28f41b),'function':{'name':_0x4995b3['name'],'arguments':''}}),_0xbcdea7!==void 0x0&&(this[_0x1a8828(0x170,_0x135036._0x34ccaf,0x160,0xe1)][_0x4d16fe(-0x200,-_0x135036._0x494fac,-0x241,-_0x135036._0x2fce2e)](_0xbcdea7,_0x4995b3[_0x4d16fe(-0x1ab,-0x1c5,-0x21e,-0x183)]),this[_0x4d16fe(-_0x135036._0x3362a6,-0x13b,-0x100,-_0x135036._0x571706)][_0x1a8828(_0x135036._0x837516,0x268,0x1b3,0x26d)](_0x4995b3['call_id'],_0xbcdea7)),[{'type':_0x1a8828(0x2b1,_0x135036._0xab58fa,_0x135036._0x1a1a07,_0x135036._0x48533c),'id':_0x4995b3['call_id'],'index':_0xbcdea7??0x0,'name':_0x4995b3[_0x1a8828(_0x135036._0x57b0df,0x319,_0x135036._0x5641d4,0x278)]}];if(_0x4995b3?.[_0x1a8828(0x192,_0x135036._0x8b5dda,_0x135036._0x2fce2e,_0x135036._0x1423ff)]===_0x1a8828(_0x135036._0x550895,_0x135036._0x58e0f9,_0x135036._0x48f027,0x247)&&_0x4995b3['id']){const _0x57784c=this[_0x4d16fe(-0x1c6,-_0x135036._0x3a0e6b,-_0x135036._0x524542,-0x129)](_0x4995b3['id'],_0xbcdea7);_0xbcdea7!==void 0x0&&this[_0x4d16fe(-0x129,-0x227,-0x15c,-0x133)][_0x4d16fe(-0x27e,-_0x135036._0x3975af,-_0x135036._0x153380,-_0x135036._0x2a8eda)](_0xbcdea7,_0x57784c['id']);}break;}case _0x4d16fe(-_0x135036._0x36cb09,-_0x135036._0x4a95bd,-0x154,-_0x135036._0x2202d8):{const _0x5dde89=typeof _0x47832c['call_id']===_0x1a8828(0x195,_0x135036._0x1c08c5,0x25b,_0x135036._0x26648b)?_0x47832c[_0x1a8828(0x1db,_0x135036._0x42b83e,0x1d6,_0x135036._0x4c039a)]:typeof _0x47832c[_0x4d16fe(-_0x135036._0x4a43aa,-_0x135036._0x31a5c9,-_0x135036._0x17108a,-0x274)]===_0x1a8828(0x134,0x118,0x1ce,_0x135036._0x384883)?this[_0x4d16fe(-0x368,-_0x135036._0x51503e,-_0x135036._0x3feb2c,-_0x135036._0x108536)]['get'](_0x47832c[_0x1a8828(0x132,0x274,0x1f0,0x228)]):void 0x0,_0x377d0f=typeof _0x47832c[_0x1a8828(0x15d,_0x135036._0x225aa2,0x190,_0x135036._0x2a7220)]===_0x4d16fe(-0x1c8,-0x22e,-0x199,-_0x135036._0x51d4e4)?_0x47832c[_0x1a8828(0x11c,_0x135036._0x138e3f,_0x135036._0x28a17f,0x159)]:'',_0x3e4e8c=_0x5dde89?this['toolCalls'][_0x4d16fe(-_0x135036._0xc205e8,-0x257,-0x233,-_0x135036._0x35dc7b)](_0x5dde89):void 0x0;if(_0x3e4e8c&&_0x377d0f['length']>0x0)return _0x3e4e8c[_0x1a8828(0x2a1,0x313,_0x135036._0x41f4cc,0x2c9)][_0x4d16fe(-0x176,-_0x135036._0xcfa058,-0x1c2,-_0x135036._0x1e6baf)]+=_0x377d0f,[{'type':_0x4d16fe(-0x159,-0x24a,-_0x135036._0x17c971,-0x26f),'id':_0x3e4e8c['id'],'index':this[_0x1a8828(_0x135036._0x8b5dda,0x235,_0x135036._0x4acea9,_0x135036._0x218391)]['get'](_0x3e4e8c['id'])??(typeof _0x47832c[_0x4d16fe(-_0x135036._0x29e5e4,-_0x135036._0x3dee4c,-_0x135036._0x149afa,-_0x135036._0x41f4cc)]===_0x1a8828(_0x135036._0x39de8c,_0x135036._0x45321b,0x1ce,0x251)?_0x47832c[_0x1a8828(0x228,0x237,0x1f0,0x142)]:0x0),'inputDelta':_0x377d0f}];break;}case _0x4d16fe(-_0x135036._0x18c547,-0x16e,-0x166,-0x14c):{const _0xf23698=typeof _0x47832c[_0x1a8828(0x1a1,0x119,_0x135036._0xd5b343,_0x135036._0x4e3fa9)]==='string'?_0x47832c[_0x4d16fe(-_0x135036._0x2a8a9c,-0x2ec,-_0x135036._0x308a34,-0x235)]:typeof _0x47832c[_0x4d16fe(-_0x135036._0x25e20e,-_0x135036._0x5811ef,-0x204,-_0x135036._0x2a03b7)]===_0x4d16fe(-0x2a9,-0x26e,-0x226,-_0x135036._0xbbecc8)?this[_0x1a8828(0x1c1,0x1a4,_0x135036._0x957cbf,0x22c)][_0x1a8828(_0x135036._0x265d64,0x241,_0x135036._0x4c1101,_0x135036._0x1d3d37)](_0x47832c[_0x1a8828(0x121,_0x135036._0xac7ae7,0x1f0,0x189)]):void 0x0,_0x297017=_0xf23698?this[_0x4d16fe(-0x230,-0x2c7,-_0x135036._0x1576da,-_0x135036._0x5e605f)][_0x1a8828(0x253,_0x135036._0x256d59,_0x135036._0x108b96,_0x135036._0x16ee80)](_0xf23698):void 0x0;_0x297017&&typeof _0x47832c[_0x4d16fe(-_0x135036._0xa9fb41,-0x107,-0x1c2,-_0x135036._0x4c7b41)]==='string'&&(_0x297017['function'][_0x1a8828(_0x135036._0xd31a10,_0x135036._0x1cd1f6,_0x135036._0x3a447d,_0x135036._0x4a9912)]=_0x47832c[_0x1a8828(0x288,_0x135036._0x52cdcf,0x232,0x16c)]);break;}case'response.output_item.done':{const _0x5017b7=typeof _0x47832c['output_index']===_0x4d16fe(-_0x135036._0x3d7ee3,-_0x135036._0x8b793d,-0x226,-_0x135036._0x50a795)?_0x47832c[_0x1a8828(0x277,_0x135036._0x1ad7f8,_0x135036._0x10fb48,_0x135036._0xf11028)]:void 0x0,_0x8f7437=_0x47832c[_0x4d16fe(-_0x135036._0x5e0233,-0x243,-_0x135036._0x1186b2,-_0x135036._0x1b85b2)];if(_0x8f7437?.[_0x1a8828(0x1de,0x1b6,0x1a9,_0x135036._0x4c1101)]===_0x4d16fe(-0x29a,-0x217,-_0x135036._0x326bba,-_0x135036._0x4e3fa9)){const _0x10156c=_0x8f7437['call_id']??(_0x5017b7!==void 0x0?this[_0x1a8828(0x1b3,_0x135036._0x1792ab,0x160,0x226)][_0x1a8828(0x281,0x279,_0x135036._0x207c73,0x283)](_0x5017b7):void 0x0),_0x5b241a=_0x10156c?this[_0x4d16fe(-0x238,-_0x135036._0x5882be,-_0x135036._0x45be1c,-0x289)][_0x4d16fe(-0x300,-_0x135036._0x1a8c07,-_0x135036._0x1a4280,-0x1bc)](_0x10156c):void 0x0;_0x5b241a&&typeof _0x8f7437[_0x4d16fe(-0x23b,-0x112,-0x1c2,-_0x135036._0x27ae96)]==='string'&&(_0x5b241a[_0x1a8828(_0x135036._0x2d90d7,0x2c3,0x2a4,_0x135036._0x13e238)][_0x1a8828(0x2c5,_0x135036._0x1def90,0x232,_0x135036._0x1b1452)]=_0x8f7437[_0x1a8828(0x2d3,_0x135036._0x39cff5,_0x135036._0x504e41,0x2b1)]);break;}if(_0x8f7437?.['type']===_0x1a8828(_0x135036._0x5e7312,0x22b,_0x135036._0x208847,_0x135036._0x2fe402)&&_0x8f7437['id']){const _0x380968=this[_0x4d16fe(-_0x135036._0x197770,-_0x135036._0x129cc7,-0x13c,-0x1fd)](_0x8f7437['id'],_0x5017b7);typeof _0x8f7437['encrypted_content']===_0x1a8828(_0x135036._0x1967bb,_0x135036._0x2d8927,_0x135036._0x57b0df,0x2ee)&&(_0x380968['encryptedContent']=_0x8f7437['encrypted_content']);if(Array[_0x1a8828(0x27d,_0x135036._0x1182dd,_0x135036._0x2ab630,_0x135036._0x1094aa)](_0x8f7437['summary']))for(let _0xfbd22d=0x0;_0xfbd22d<_0x8f7437[_0x1a8828(_0x135036._0x2f626a,0x296,0x1c6,0x1fd)][_0x1a8828(0x194,_0x135036._0x1e9074,0x170,_0x135036._0x5552a3)];_0xfbd22d+=0x1){const _0x1c2c07=_0x8f7437[_0x1a8828(0x1ab,_0x135036._0x3eb5be,_0x135036._0x1ae9b1,0x187)][_0xfbd22d];_0x1c2c07[_0x4d16fe(-0x220,-0x1ed,-_0x135036._0x636482,-0x1a7)]===_0x1a8828(0x302,_0x135036._0x1695dc,0x2b4,0x2a5)&&typeof _0x1c2c07['text']===_0x4d16fe(-0x158,-0x17a,-_0x135036._0x4a43aa,-0xe5)&&_0x380968['summaryByIndex'][_0x1a8828(0x27c,_0x135036._0x3a4638,_0x135036._0x2b5866,_0x135036._0x5d06ad)](_0xfbd22d,_0x1c2c07['text']);}typeof _0x8f7437[_0x1a8828(_0x135036._0x53b3e9,0x2cf,0x2df,0x297)]===_0x4d16fe(-_0x135036._0x3c308a,-_0x135036._0x497c1f,-0x199,-_0x135036._0x4af2bf)&&_0x380968[_0x1a8828(0x160,_0x135036._0x280648,0x1b4,0x26a)]['set'](0x0,_0x8f7437[_0x4d16fe(-_0x135036._0xfb375f,-0x58,-0x115,-_0x135036._0x446c19)]);}break;}case _0x4d16fe(-0x296,-0x265,-0x1e4,-_0x135036._0x3ce6d3):{const _0x36836e=typeof _0x47832c[_0x1a8828(0xf0,_0x135036._0x250c3c,_0x135036._0x4f00ad,_0x135036._0xe01dea)]==='string'?_0x47832c[_0x4d16fe(-0x213,-_0x135036._0x250b05,-0x264,-0x223)]:'',_0x51219b=typeof _0x47832c[_0x4d16fe(-0x20f,-0x267,-_0x135036._0x3a0e9c,-_0x135036._0x1b85b2)]===_0x1a8828(0x2e3,_0x135036._0x2026a0,0x25b,0x278)?_0x47832c[_0x4d16fe(-0x272,-0x295,-0x250,-_0x135036._0x2b7614)]:typeof _0x47832c[_0x4d16fe(-0x262,-_0x135036._0x456dcf,-_0x135036._0x23503e,-_0x135036._0x121d89)]===_0x1a8828(0x271,_0x135036._0x1105d5,_0x135036._0xac7ae7,_0x135036._0x3a1df5)?this[_0x4d16fe(-_0x135036._0x57396b,-0xcf,-_0x135036._0x359d19,-0xf7)][_0x1a8828(0x23b,_0x135036._0x5ef130,0x1c1,0x134)](_0x47832c['output_index']):void 0x0,_0xb58a20=typeof _0x47832c[_0x1a8828(0x256,_0x135036._0x270594,0x1f0,_0x135036._0x4f2e00)]===_0x4d16fe(-0x1cb,-0x27b,-_0x135036._0x3a35a3,-_0x135036._0x243c7d)?_0x47832c[_0x1a8828(0x1c4,0x20b,0x1f0,0x160)]:0x0,_0x3ae393=typeof _0x47832c['summary_index']==='number'?_0x47832c[_0x4d16fe(-0xd1,-0xe2,-_0x135036._0x4abe29,-_0x135036._0x3dd14e)]:0x0;if(_0x51219b&&_0x36836e[_0x1a8828(_0x135036._0x8f548d,0x1b4,0x170,0x1a8)]>0x0){const _0xad044c=this[_0x1a8828(0x324,_0x135036._0x2d8927,_0x135036._0x6055b7,_0x135036._0x2a8a9c)](_0x51219b,_0xb58a20);_0xad044c['summaryByIndex']['set'](_0x3ae393,''+(_0xad044c[_0x4d16fe(-0x278,-_0x135036._0x429f2c,-0x229,-_0x135036._0x12618b)][_0x1a8828(_0x135036._0x291fbc,0x281,0x1c1,_0x135036._0x2af975)](_0x3ae393)??'')+_0x36836e);if(isUserVisibleReasoning(this[_0x4d16fe(-_0x135036._0x12eb7b,-0x214,-0x239,-0x21e)]))return[{'type':_0x1a8828(_0x135036._0x349a94,_0x135036._0x4dfb97,0x2e0,_0x135036._0x3b730c),'delta':_0x36836e,'itemId':_0x51219b,'outputIndex':_0xb58a20,'summaryIndex':_0x3ae393}];}break;}case _0x1a8828(_0x135036._0x23c8af,0x21f,_0x135036._0x4b14f9,_0x135036._0x4abe29):{const _0x4558c8=typeof _0x47832c[_0x4d16fe(-0x283,-0x2e2,-0x250,-0x2b7)]==='string'?_0x47832c[_0x1a8828(_0x135036._0x17c915,_0x135036._0x6bf214,0x1a4,0x21a)]:typeof _0x47832c[_0x1a8828(0x228,_0x135036._0x340006,_0x135036._0x41a8d4,0x26b)]===_0x4d16fe(-_0x135036._0x14a97d,-_0x135036._0x3f3c8a,-0x226,-0x173)?this['outputIndexToReasoningId'][_0x1a8828(0x290,_0x135036._0x1bf4e3,_0x135036._0x207c73,0x1aa)](_0x47832c['output_index']):void 0x0,_0x1e4bb9=typeof _0x47832c[_0x1a8828(_0x135036._0x54a0ac,_0x135036._0x1f325a,0x1f0,_0x135036._0x3f9f30)]==='number'?_0x47832c[_0x1a8828(_0x135036._0x23a076,_0x135036._0x360df5,_0x135036._0x41a8d4,_0x135036._0x34845b)]:0x0,_0x54b012=typeof _0x47832c[_0x4d16fe(-0x200,-0x156,-0x17e,-0x19f)]===_0x4d16fe(-0x1f6,-0x216,-_0x135036._0x3a35a3,-_0x135036._0xf9458f)?_0x47832c['summary_index']:0x0,_0x4a6d74=typeof _0x47832c[_0x1a8828(0x374,_0x135036._0x1bc577,_0x135036._0x564970,0x2d4)]===_0x4d16fe(-_0x135036._0x2afeac,-_0x135036._0x7135ba,-_0x135036._0x4a43aa,-_0x135036._0x37032d)?_0x47832c[_0x1a8828(_0x135036._0x2b7614,0x29a,0x2df,0x20b)]:'';_0x4558c8&&this[_0x4d16fe(-_0x135036._0x2fd683,-_0x135036._0x59119c,-0x13c,-0xb1)](_0x4558c8,_0x1e4bb9)['summaryByIndex'][_0x1a8828(_0x135036._0x2d3664,0x23e,_0x135036._0x2b5866,_0x135036._0x46dcd3)](_0x54b012,_0x4a6d74);break;}case _0x4d16fe(-_0x135036._0x4f8e86,-0x241,-0x1d7,-0x292):{const _0x583992=typeof _0x47832c[_0x1a8828(0x1a9,0x1d7,0x190,_0x135036._0x3a08c3)]===_0x4d16fe(-0xce,-_0x135036._0x5756db,-0x199,-_0x135036._0x3ac6c4)?_0x47832c[_0x1a8828(0x1ca,0x232,0x190,0x20c)]:'',_0x2ec254=typeof _0x47832c['item_id']==='string'?_0x47832c[_0x1a8828(_0x135036._0xd8537a,0xdf,_0x135036._0x2fcebe,_0x135036._0x2424ab)]:typeof _0x47832c[_0x1a8828(_0x135036._0x903db1,_0x135036._0x4a43aa,0x1f0,0x18d)]===_0x1a8828(0x121,_0x135036._0x149ab2,0x1ce,_0x135036._0x544076)?this[_0x1a8828(0x2fc,0x1d6,0x298,0x260)]['get'](_0x47832c[_0x1a8828(0x22a,0x2a8,0x1f0,0x2b3)]):void 0x0,_0x20f24d=typeof _0x47832c[_0x1a8828(_0x135036._0x47dedb,_0x135036._0x2078a3,_0x135036._0x10fb48,_0x135036._0x4a72f8)]==='number'?_0x47832c[_0x4d16fe(-0x255,-0x20c,-0x204,-_0x135036._0x2b90d5)]:0x0,_0x57101f=typeof _0x47832c[_0x4d16fe(-_0x135036._0x4447bb,-0x1f7,-_0x135036._0x14eb9e,-_0x135036._0xe68512)]===_0x4d16fe(-0x1c3,-_0x135036._0x3aeb5d,-_0x135036._0x3a35a3,-_0x135036._0x36c1af)?_0x47832c[_0x1a8828(0x192,_0x135036._0x3afb33,_0x135036._0x7b1f22,0x23f)]:0x0;if(_0x2ec254&&_0x583992['length']>0x0){const _0x252b23=this['getOrCreateReasoningItem'](_0x2ec254,_0x20f24d);_0x252b23[_0x4d16fe(-_0x135036._0x32f37f,-0x2a7,-0x240,-_0x135036._0x1f6ddf)][_0x4d16fe(-0x2b2,-0x26a,-_0x135036._0x41d13d,-_0x135036._0x30b5ee)](_0x57101f,''+(_0x252b23[_0x1a8828(_0x135036._0x1c08c5,_0x135036._0x5cf6c2,0x1b4,0x12f)]['get'](_0x57101f)??'')+_0x583992);if(isUserVisibleReasoning(this[_0x4d16fe(-0x1f8,-0x22d,-0x239,-_0x135036._0x2a03b7)]))return[{'type':_0x4d16fe(-_0x135036._0x45d2bb,-_0x135036._0x1f9e48,-0x24a,-0x27f),'contentIndex':_0x57101f,'delta':_0x583992,'itemId':_0x2ec254,'outputIndex':_0x20f24d}];}break;}case _0x1a8828(0x300,0x2d8,_0x135036._0x26ee04,0x38b):{const _0x59fe13=typeof _0x47832c[_0x4d16fe(-_0x135036._0x297a0f,-0x294,-_0x135036._0x3aab19,-0x2f7)]===_0x1a8828(_0x135036._0x411654,0x30c,_0x135036._0x23b85d,0x2ae)?_0x47832c['item_id']:typeof _0x47832c[_0x1a8828(_0x135036._0x19145e,_0x135036._0x38b370,_0x135036._0x10fb48,_0x135036._0x592051)]==='number'?this[_0x4d16fe(-_0x135036._0x17d70c,-_0x135036._0x5a7ece,-0x15c,-0xa3)][_0x1a8828(_0x135036._0x41aaf2,_0x135036._0x4e0420,_0x135036._0x207c73,0x23f)](_0x47832c['output_index']):void 0x0,_0x861c74=typeof _0x47832c[_0x1a8828(_0x135036._0x41f4cc,_0x135036._0x3feb2c,0x1f0,0x1ff)]===_0x4d16fe(-0x222,-0x232,-_0x135036._0x3a35a3,-_0x135036._0x23a076)?_0x47832c['output_index']:0x0,_0x22d7de=typeof _0x47832c[_0x1a8828(_0x135036._0x4da779,0x1b1,0x1e0,0x13a)]===_0x4d16fe(-0x2fb,-_0x135036._0x46ce79,-_0x135036._0x4f2e00,-_0x135036._0x5e0233)?_0x47832c[_0x1a8828(_0x135036._0x270a58,_0x135036._0x37032d,0x1e0,0x18e)]:0x0,_0x2d14bb=typeof _0x47832c['text']==='string'?_0x47832c[_0x4d16fe(-0x1e3,-_0x135036._0x2a174d,-_0x135036._0x1d26c6,-_0x135036._0x30304d)]:'';_0x59fe13&&this[_0x1a8828(_0x135036._0xd71bc0,_0x135036._0x276865,_0x135036._0x2ae7f7,0x314)](_0x59fe13,_0x861c74)['textByIndex'][_0x1a8828(_0x135036._0x5f50ba,_0x135036._0x17c915,0x1b3,_0x135036._0x138e3f)](_0x22d7de,_0x2d14bb);break;}case _0x4d16fe(-0x147,-0xbb,-0x147,-0xfb):{this['finalResponse']=_0x47832c[_0x4d16fe(-0x104,-0xe8,-_0x135036._0x503e2a,-_0x135036._0x1d3125)];break;}case'response.failed':{const _0x2917cc=_0x47832c[_0x1a8828(0x28a,0x226,0x287,_0x135036._0xba48bd)];throw new ProviderStreamEventError(_0x2917cc?.['error']?.[_0x1a8828(_0x135036._0x575b0a,0x1fa,_0x135036._0x13df93,_0x135036._0x1cea13)]??'Responses\x20stream\x20failed',{'code':_0x2917cc?.[_0x4d16fe(-0x1ce,-_0x135036._0x278252,-0x10d,-0x16f)]?.[_0x4d16fe(-_0x135036._0x51216d,-0x136,-_0x135036._0x38dcaa,-0x225)],'retryable':!![]});}case'error':{const _0x33fd1b=_0x47832c[_0x1a8828(_0x135036._0x5e7312,0x35b,0x2e7,0x25c)];throw new ProviderStreamEventError(_0x33fd1b?.[_0x1a8828(0x238,_0x135036._0x5d149a,_0x135036._0x13df93,0x2a9)]??_0x1a8828(_0x135036._0x2a28ef,0x1e3,_0x135036._0x513b29,_0x135036._0x13d229),{'code':_0x33fd1b?.[_0x4d16fe(-_0x135036._0x244838,-_0x135036._0x968044,-0x152,-_0x135036._0x308a34)],'retryable':!![],'status':typeof _0x47832c['status']===_0x4d16fe(-_0x135036._0x30e04a,-0x18b,-0x226,-0x16b)?_0x47832c[_0x4d16fe(-0x1be,-0x272,-0x1ab,-_0x135036._0xbfe2a1)]:void 0x0});}}function _0x1a8828(_0xcdfaf9,_0x4ceb5b,_0x5a07cc,_0x2dc40d){return _0x5da579(_0x5a07cc- -0x146,_0x4ceb5b-0x13c,_0x5a07cc-_0x22d936._0x386e4c,_0x4ceb5b);}function _0x4d16fe(_0x196f1e,_0x5317ad,_0x55cd27,_0x228ac2){return _0x5da579(_0x55cd27- -0x53a,_0x5317ad-0xbf,_0x55cd27-_0x1ba25a._0x36e08b,_0x228ac2);}return[];}[_0x3749d0(0x2d,-0xb7,0x3,-0x7)](){const _0x125fea={_0x378b49:0x439,_0x55f656:0x424,_0x5db940:0x11a,_0x28c20e:0x185,_0x55851c:0x1b1,_0x256589:0x3ac,_0x7d589:0x3ae,_0x3cd9c2:0x45f,_0x1eff51:0x1c8,_0x3d1c23:0xe9,_0xd85769:0x176,_0x13fba4:0x4d5,_0x479054:0x4fc,_0x4de2a1:0x45f,_0x892f6f:0x4b3,_0x236570:0x3fb,_0x150410:0x375,_0xd66eed:0x3ee,_0xf20969:0x4b9,_0x1c6686:0x4fd,_0x3c9e92:0x4af,_0x36aaba:0x456,_0x449252:0x3e0,_0x18da8e:0x4a0,_0x3e5696:0x41f,_0x3aa8a3:0x208,_0x2dfb9d:0x2a8,_0x26af42:0x1e9,_0x3a7303:0x4e2,_0x482140:0x3d4,_0x3e5623:0x3c3,_0x5db598:0x39f,_0x45dab3:0x4e6,_0x535d0c:0x50e,_0x549099:0x3f3,_0xd1ec93:0x405,_0x1debbe:0x412,_0x2c8d34:0x487,_0x569212:0x3d2,_0x1daaf3:0x40c,_0x57359b:0x3eb,_0xc56cc9:0x1df,_0x360e5d:0x347,_0x3a2c34:0x3f7,_0x55be48:0x48d,_0x115e58:0x4cd,_0x294e47:0x260,_0x3afeca:0x224,_0x222a6f:0x197,_0x5e587c:0x457,_0x16e121:0x497,_0x1b113a:0x41a,_0x4ce990:0x450,_0x19ba08:0x43b,_0x3bc0e4:0x160,_0xb2453:0x32b,_0x2b1cd9:0x3b1,_0x3e3386:0x462,_0x241183:0x426,_0x35efc7:0x3c4,_0x33ec57:0x3b3,_0x619b59:0x49c,_0x26e587:0x3ca,_0x468e11:0x4e7,_0x238fd7:0x4f4,_0x28e9ca:0x131,_0x49aec5:0x14f,_0x328788:0x12e},_0x39a72e={_0x191cd7:0x49f,_0x4fdd6e:0xde},_0x564c1a={_0xefa1ae:0xfd,_0x1f0921:0x12c,_0x185c71:0x114};function _0x3cecbc(_0x47799e,_0x5ccac1,_0x2b4211,_0x3c0043){return _0x5da579(_0x3c0043-_0x564c1a._0xefa1ae,_0x5ccac1-_0x564c1a._0x1f0921,_0x2b4211-_0x564c1a._0x185c71,_0x2b4211);}const _0x2ca70f=[];for(const [_0x1b0e69,_0xccd812]of this[_0x3cecbc(_0x125fea._0x378b49,0x363,0x4d6,_0x125fea._0x55f656)][_0x5249a9(-_0x125fea._0x5db940,-_0x125fea._0x28c20e,-0x230,-_0x125fea._0x55851c)]()){const _0x3e79d5=_0xccd812[_0x3cecbc(0x51c,_0x125fea._0x256589,_0x125fea._0x7d589,_0x125fea._0x3cd9c2)]('');if(_0x3e79d5['length']===0x0)continue;_0x2ca70f[_0x5249a9(-0x190,-_0x125fea._0x1eff51,-_0x125fea._0x3d1c23,-_0x125fea._0xd85769)]({'index':_0x1b0e69,'item':{'type':_0x3cecbc(_0x125fea._0x13fba4,0x40a,_0x125fea._0x479054,0x4c0),'role':_0x3cecbc(_0x125fea._0x4de2a1,0x543,_0x125fea._0x892f6f,0x48d),'content':[{'type':_0x3cecbc(_0x125fea._0x236570,_0x125fea._0x150410,0x362,_0x125fea._0xd66eed),'text':_0x3e79d5}]}});}function _0x5249a9(_0x562726,_0xfb901f,_0x5e2ff1,_0x540eaa){return _0x5da579(_0x540eaa- -_0x39a72e._0x191cd7,_0xfb901f-_0x39a72e._0x4fdd6e,_0x5e2ff1-0x182,_0x5e2ff1);}for(const _0x281be9 of this[_0x3cecbc(0x523,0x454,_0x125fea._0xf20969,0x450)][_0x3cecbc(_0x125fea._0x1c6686,_0x125fea._0x3c9e92,_0x125fea._0x36aaba,0x477)]()){_0x2ca70f['push']({'index':_0x281be9[_0x3cecbc(0x453,_0x125fea._0x449252,_0x125fea._0x18da8e,_0x125fea._0x3e5696)]??_0x2ca70f[_0x5249a9(-_0x125fea._0x3aa8a3,-0x22f,-_0x125fea._0x2dfb9d,-_0x125fea._0x26af42)],'item':{'type':_0x3cecbc(_0x125fea._0x3a7303,_0x125fea._0x482140,0x41e,0x47c),'id':_0x281be9['id'],..._0x281be9[_0x3cecbc(0x420,0x468,_0x125fea._0x3e5623,_0x125fea._0x5db598)]?{'encrypted_content':_0x281be9[_0x3cecbc(0x466,0x3e2,0x368,0x39f)]}:{},..._0x281be9['summaryByIndex'][_0x3cecbc(_0x125fea._0x45dab3,_0x125fea._0x535d0c,0x3ff,0x4cd)]>0x0?{'summary':Array[_0x3cecbc(0x339,0x442,_0x125fea._0x549099,_0x125fea._0xd1ec93)](_0x281be9[_0x3cecbc(0x3b7,_0x125fea._0x1debbe,_0x125fea._0x2c8d34,0x40e)][_0x3cecbc(0x3f4,_0x125fea._0x569212,_0x125fea._0x1daaf3,_0x125fea._0x57359b)]())[_0x5249a9(-0x209,-0x124,-_0x125fea._0xc56cc9,-0x16d)]((_0x361666,_0x52b774)=>_0x361666[0x0]-_0x52b774[0x0])['map'](([,_0x4e9521])=>{return{'type':'summary_text','text':_0x4e9521};})}:{},..._0x281be9[_0x3cecbc(0x40b,_0x125fea._0x360e5d,0x43b,_0x125fea._0x3a2c34)][_0x3cecbc(0x4d6,_0x125fea._0x55be48,0x505,_0x125fea._0x115e58)]>0x0?{'text':Array[_0x5249a9(-0xf0,-_0x125fea._0x294e47,-_0x125fea._0x3afeca,-_0x125fea._0x222a6f)](_0x281be9[_0x3cecbc(0x3c1,_0x125fea._0x5e587c,_0x125fea._0x16e121,_0x125fea._0x3a2c34)][_0x3cecbc(0x40a,0x4a4,_0x125fea._0x1b113a,0x3eb)]())[_0x3cecbc(0x504,_0x125fea._0x4ce990,_0x125fea._0x19ba08,0x42f)]((_0x1061e1,_0x1f67a7)=>_0x1061e1[0x0]-_0x1f67a7[0x0])[_0x5249a9(-_0x125fea._0x3bc0e4,-0x128,-0x10d,-0x1a8)](([,_0x47cfa0])=>_0x47cfa0)['join']('')}:{}}});}for(const _0xc21fa7 of this[_0x3cecbc(0x45c,_0x125fea._0xb2453,_0x125fea._0x2b1cd9,0x3b2)]['values']()){_0x2ca70f[_0x3cecbc(0x358,_0x125fea._0x3e3386,0x40f,_0x125fea._0x241183)]({'index':this['callIdToOutputIndex']['get'](_0xc21fa7['id'])??_0x2ca70f[_0x3cecbc(0x348,_0x125fea._0x35efc7,0x464,_0x125fea._0x33ec57)],'item':{'type':_0x3cecbc(_0x125fea._0x619b59,_0x125fea._0x26e587,0x45e,0x467),'call_id':_0xc21fa7['id'],'name':_0xc21fa7[_0x3cecbc(0x49c,0x42a,0x57f,_0x125fea._0x468e11)]['name'],'arguments':_0xc21fa7[_0x3cecbc(0x5a7,_0x125fea._0x238fd7,0x428,_0x125fea._0x468e11)][_0x5249a9(-_0x125fea._0x28e9ca,-_0x125fea._0x49aec5,-_0x125fea._0x328788,-0x127)]}});}return _0x2ca70f['sort']((_0x3a075c,_0x20683f)=>_0x3a075c[_0x5249a9(-0x146,-0xcd,-0xf0,-0x96)]-_0x20683f[_0x3cecbc(0x455,0x4d3,0x4a2,0x506)])['map'](_0x85a82d=>_0x85a82d[_0x3cecbc(0x356,0x445,0x396,0x399)]);}['getOrCreateReasoningItem'](_0x50d350,_0x2b42c1){const _0x2a3205={_0x46bcf3:0x8b,_0x52c4bd:0xc1,_0x1f8654:0x265,_0x53c919:0x20f,_0xe863bf:0x23a,_0x5d2adf:0x39f,_0x269c98:0x2e6,_0x5c9a94:0x2e8,_0x5218db:0x25b,_0x45766f:0x234,_0x4974c1:0x13c,_0x28df83:0x270,_0x58e933:0x201,_0x15783a:0x153},_0x3aeed9={_0x27ed06:0x329,_0x2715ff:0x142},_0x254754=this[_0x624906(0x2a,-_0x2a3205._0x46bcf3,_0x2a3205._0x52c4bd,-0x3)][_0x2f3c97(0x144,_0x2a3205._0x1f8654,_0x2a3205._0x53c919,0x2a4)](_0x50d350);function _0x624906(_0x6b76d0,_0x188436,_0x44becf,_0x4b9762){return _0x5da579(_0x6b76d0- -_0x3aeed9._0x27ed06,_0x188436-0x93,_0x44becf-_0x3aeed9._0x2715ff,_0x188436);}if(_0x254754)return _0x2b42c1!==void 0x0&&(_0x254754[_0x2f3c97(0x248,_0x2a3205._0xe863bf,0x22a,0x173)]=_0x2b42c1,this[_0x2f3c97(0x327,_0x2a3205._0x5d2adf,_0x2a3205._0x269c98,_0x2a3205._0x5c9a94)][_0x2f3c97(0x297,0x153,0x201,0x2ce)](_0x2b42c1,_0x50d350)),_0x254754;const _0x173481={'id':_0x50d350,'outputIndex':_0x2b42c1,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x2f3c97(0x1d5,0x21c,_0x2a3205._0x5218db,_0x2a3205._0x45766f)][_0x2f3c97(0x1b7,0x158,0x201,_0x2a3205._0x4974c1)](_0x50d350,_0x173481);_0x2b42c1!==void 0x0&&this['outputIndexToReasoningId'][_0x2f3c97(0x1b8,_0x2a3205._0x28df83,_0x2a3205._0x58e933,_0x2a3205._0x15783a)](_0x2b42c1,_0x50d350);function _0x2f3c97(_0x45747e,_0x22ab86,_0x1362a1,_0x455845){return _0x5da579(_0x1362a1- -0xf8,_0x22ab86-0xad,_0x1362a1-0x1dd,_0x22ab86);}return _0x173481;}};function createOpenAiResponsesStreamParser(_0x426709){return new OpenAiResponsesStreamParser(_0x426709);}function createOpenAiSurfaces(_0x5711a8={}){const _0x4b6586={_0x5f3591:0x183,_0x41e4fa:0x254,_0x1e0ea8:0x13b,_0x2ccf8e:0xfa,_0x495518:0x197,_0x815d53:0x20a,_0x2a9167:0x25c,_0x6f9cfe:0x24a,_0xea2350:0x2cf,_0x56c10e:0x234,_0x1553a4:0x19b},_0x393f7d={_0x15a35f:0x43f,_0x30ec55:0x511},_0xc04e06={_0x495624:0x7,_0x512fc4:0x9b},_0x8bdcce={_0x589f62:0x25c,_0x29f2d0:0x2be,_0x27eae2:0x2ca},_0x5c1f57={_0x2208da:0x26b},_0x1a1454={_0x3452c1:0xb2,_0x237ac8:0x1c,_0xa97cf4:0x14b};function _0x20b5b3(_0x3175f,_0x28ce6a,_0x435cee,_0x4cc54f){return _0x3749d0(_0x3175f-_0x1a1454._0x3452c1,_0x28ce6a-_0x1a1454._0x237ac8,_0x435cee-_0x1a1454._0xa97cf4,_0x28ce6a);}function _0x5bf92d(_0x513272,_0x401002,_0xda9adb,_0x15f070){return _0x3749d0(_0x513272-0x1cc,_0x401002-0xe1,_0x513272- -_0x5c1f57._0x2208da,_0xda9adb);}const _0x4153a7=_0x5711a8['chatCompletionsPath']??'/chat/completions',_0xbe0b21=_0x5711a8[_0x20b5b3(0x178,0x145,_0x4b6586._0x5f3591,0x1fa)]??_0x5bf92d(-0x20b,-_0x4b6586._0x41e4fa,-0x2ba,-0x21e);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x5bf92d(-_0x4b6586._0x1e0ea8,-_0x4b6586._0x2ccf8e,-0xde,-_0x4b6586._0x495518),'createRequest'(_0x3ced40){const _0x32e008={_0x445863:0x482,_0x24b0d1:0x37,_0x1b73ae:0x3a};function _0xf6d94c(_0x348648,_0x4a8a3d,_0xaf9c50,_0x1ad2d8){return _0x5bf92d(_0x348648-_0x32e008._0x445863,_0x4a8a3d-_0x32e008._0x24b0d1,_0x1ad2d8,_0x1ad2d8-_0x32e008._0x1b73ae);}return{'accept':_0xf6d94c(_0x8bdcce._0x589f62,_0x8bdcce._0x29f2d0,0x2fe,_0x8bdcce._0x27eae2),'body':createChatRequestBody(_0x3ced40,![]),'path':_0x4153a7};},'parseResponse'(_0x530a9a){return parseChatCompletionResponse(_0x530a9a);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x20b5b3(_0x4b6586._0x815d53,_0x4b6586._0x2a9167,0x24a,0x274),'createRequest'(_0x146cf3){const _0x56daad={_0x45dad1:0x334,_0x467b1e:0x1c3};function _0x42798c(_0x2e44ca,_0x222bdb,_0x904a9b,_0x554b26){return _0x20b5b3(_0x2e44ca-0x10f,_0x2e44ca,_0x554b26- -_0x56daad._0x45dad1,_0x554b26-_0x56daad._0x467b1e);}return{'accept':_0x42798c(-0xcf,-0x147,_0xc04e06._0x495624,-_0xc04e06._0x512fc4),'body':createChatRequestBody(_0x146cf3,!![]),'path':_0x4153a7};},'createStreamParser'(_0x1b3fee){return new OpenAiChatCompletionsStreamParser(_0x1b3fee);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':'http-json','createRequest'(_0x4e377d){return{'accept':'application/json','body':createResponsesRequestBody(_0x4e377d,![]),'path':_0xbe0b21};},'parseResponse'(_0x3b54e4,_0x1d1a5f){return parseResponsesResponse(_0x3b54e4,_0x1d1a5f);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x20b5b3(0x183,0x1d4,_0x4b6586._0x6f9cfe,_0x4b6586._0xea2350),'createRequest'(_0x58655a){const _0x4037d4={_0x1974ff:0x8b,_0x5bb1f6:0x278};function _0x3105fa(_0xa5335d,_0x97ab48,_0x17afaf,_0xc5a441){return _0x20b5b3(_0xa5335d-_0x4037d4._0x1974ff,_0xa5335d,_0x97ab48-_0x4037d4._0x5bb1f6,_0xc5a441-0x188);}return{'accept':_0x3105fa(_0x393f7d._0x15a35f,_0x393f7d._0x30ec55,0x514,0x5a2),'body':createResponsesRequestBody(_0x58655a,!![]),'path':_0xbe0b21};},'createStreamParser'(_0x317dba){return new OpenAiResponsesStreamParser(_0x317dba);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x20b5b3(_0x4b6586._0x56c10e,0x1bb,_0x4b6586._0x1553a4,0xe0),'createRequest'(_0x22b2d7){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x22b2d7),'path':_0xbe0b21};},'createStreamParser'(_0x410e73){return createOpenAiResponsesStreamParser(_0x410e73);}}];}var OpenAiProviderAdapter=class{[_0x3749d0(-0xf5,-0xbd,-0x2c,0xa4)];constructor(_0x809010){const _0x385cdf={_0x848c7f:0x15e,_0x172df9:0xef,_0x1d28d0:0x1bf},_0x4a8742={_0x14d0cd:0xfa,_0x3d95fd:0x1e6,_0xf06686:0x132};function _0x4dbd3a(_0x643074,_0x370730,_0x496db7,_0x290584){return _0x5da579(_0x290584- -_0x4a8742._0x14d0cd,_0x370730-_0x4a8742._0x3d95fd,_0x496db7-_0x4a8742._0xf06686,_0x370730);}this[_0x4dbd3a(0x183,_0x385cdf._0x848c7f,_0x385cdf._0x172df9,_0x385cdf._0x1d28d0)]=_0x809010;}[_0x3749d0(0x157,0x45,0xd4,0x6a)](){const _0x701869={_0x5681c1:0x3c2,_0x55a937:0x48f,_0x243e4e:0x348},_0x55e1c5={_0x39ebb6:0x1b0,_0x5e2aa5:0x44};function _0x104657(_0x1f4253,_0x2d73b8,_0x295544,_0x54fe01){return _0x5da579(_0x2d73b8-0x128,_0x2d73b8-_0x55e1c5._0x39ebb6,_0x295544-_0x55e1c5._0x5e2aa5,_0x1f4253);}return new Error(_0x104657(0x36d,_0x701869._0x5681c1,_0x701869._0x55a937,_0x701869._0x243e4e));}async[_0x3749d0(0xc9,-0x37,0x5a,0x33)](_0x364d2a,_0x38f433){const _0xef1df5={_0x2408b8:0x13b,_0x30d6c1:0xa,_0xbb0bdb:0x90,_0x17b248:0xcc,_0x1067a8:0xf2,_0x2e3370:0xa1,_0x49cae0:0x10b,_0x455b7e:0x11d,_0xfc915a:0x129,_0x5f4f60:0x14b,_0x4eb155:0x1c0,_0x34c084:0x5e,_0x3a3aeb:0x21,_0x2dff3e:0xce,_0x9362ea:0xca,_0x593d09:0x1df,_0x278234:0x132,_0x5e0277:0x23,_0x7d307c:0xad,_0x228f34:0x26,_0x3efe74:0x89,_0x2b3ea7:0x3c,_0x4bdbb4:0x16,_0x1d1ddf:0x87,_0x126313:0x2d,_0x383d0b:0xa7,_0x24ab99:0xd,_0x4f288a:0x131},_0x57bf18={_0x2bdef8:0x2eb,_0x22beba:0x184,_0x166b9e:0x188},_0x5a0450={_0x4fe78b:0xc7,_0xb57df5:0x106},_0x2ee68f=new Headers();function _0x10a73f(_0x1069b4,_0x402c9b,_0x3093bf,_0x5dd7b6){return _0x3749d0(_0x1069b4-0x15f,_0x402c9b-_0x5a0450._0x4fe78b,_0x5dd7b6- -_0x5a0450._0xb57df5,_0x1069b4);}_0x2ee68f['set'](_0x35cedb(0x70,0xce,_0xef1df5._0x2408b8,0x72),_0x38f433[_0x10a73f(-0x3,-_0xef1df5._0x30d6c1,-0x63,-_0xef1df5._0xbb0bdb)]);function _0x35cedb(_0x226a7d,_0x40b8c1,_0x4dfc16,_0x164797){return _0x5da579(_0x226a7d- -_0x57bf18._0x2bdef8,_0x40b8c1-_0x57bf18._0x22beba,_0x4dfc16-_0x57bf18._0x166b9e,_0x4dfc16);}_0x2ee68f[_0x10a73f(-_0xef1df5._0x17b248,-0x11d,-0x17d,-_0xef1df5._0x1067a8)](_0x10a73f(-_0xef1df5._0x2e3370,-0x1d6,-0x5e,-_0xef1df5._0x49cae0),_0x10a73f(-_0xef1df5._0x455b7e,0x1b,0x42,-0x80)+_0x364d2a[_0x35cedb(0xc4,_0xef1df5._0xfc915a,0x2e,_0xef1df5._0x5f4f60)][_0x35cedb(0x12b,0x164,0x18f,_0xef1df5._0x4eb155)]);_0x38f433[_0x10a73f(-0x96,-_0xef1df5._0x34c084,_0xef1df5._0x3a3aeb,-0x21)]!==![]&&_0x2ee68f['set'](_0x10a73f(-0x141,-_0xef1df5._0x2dff3e,-0xae,-_0xef1df5._0x9362ea),'application/json');const _0x14ddc5=await this[_0x10a73f(-0x16e,-_0xef1df5._0x593d09,-0xe8,-_0xef1df5._0x278234)]?.({'body':_0x364d2a[_0x10a73f(_0xef1df5._0x5e0277,_0xef1df5._0x7d307c,-_0xef1df5._0x228f34,0x33)],'credential':_0x364d2a[_0x10a73f(-_0xef1df5._0x3efe74,0x4b,0x45,-_0xef1df5._0x2b3ea7)],'request':_0x364d2a[_0x35cedb(_0xef1df5._0x4bdbb4,0x12,_0xef1df5._0x1d1ddf,0x80)],'session':_0x364d2a[_0x10a73f(_0xef1df5._0x126313,-0x83,0x22,0x44)],'stream':_0x364d2a[_0x35cedb(_0xef1df5._0x383d0b,0x10d,_0xef1df5._0x24ab99,_0xef1df5._0x4f288a)]});for(const [_0x46d3a1,_0x374f87]of Object['entries'](_0x14ddc5??{})){_0x2ee68f['set'](_0x46d3a1,_0x374f87);}return _0x2ee68f;}[_0x3749d0(0x62,0x72,0x32,-0x74)](_0x1b4de1){return _0x1b4de1;}[_0x5da579(0x316,0x36f,0x2ec,0x327)](_0x29a2a7,_0x1bec75){return resolveSessionBaseUrl(_0x29a2a7,_0x1bec75);}['resolveCredential'](_0x304c55,_0x160fa2){return resolveApiCredential(_0x304c55,_0x160fa2);}async[_0x3749d0(0xb,-0x91,0x7,0x38)](_0x464766){return await createOpenAiApiError(_0x464766);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static ['sharedResponsesSocketSessions']=new Map();['chatCompletionsPath'];[_0x3749d0(-0x23,0x9f,0x38,0xfc)];constructor(_0x57b506={}){const _0x14318e={_0x561214:0x405,_0x3af23d:0x3f3,_0xb0c2a4:0x3d4,_0x15d7ee:0x193,_0x143eaf:0x351,_0x39e184:0x313,_0x5c057a:0x304,_0x1ffbf3:0x387,_0x1e2ad4:0x300,_0x180f6b:0x2f6,_0x189ba2:0xa6,_0x1ebe59:0x16a,_0x560add:0x122,_0x51e1aa:0x149,_0x54696c:0x168,_0xefd632:0x362,_0x435f13:0x2d6,_0x2db8c2:0x3ab,_0x52dbc1:0x1ef,_0xd535d0:0x1d0,_0x588013:0x264,_0x4479f3:0x180,_0x52bf43:0x207,_0x5ac3e5:0x1b7,_0x1d4c8c:0x31e,_0x5b0944:0x309,_0x4e0291:0x263,_0x2dfda5:0x290,_0x3e41b4:0x32a,_0x419215:0x336,_0xbbdf60:0x32a,_0xf03c72:0x387,_0x83d030:0x210},_0x473ace={_0x58833d:0x1d,_0x3ba7de:0x176,_0x4f3619:0x197},_0x436ad3={_0x553e58:0x16c},_0x50d0a3=_0x57b506[_0x58458f(_0x14318e._0x561214,_0x14318e._0x3af23d,0x412,_0x14318e._0xb0c2a4)]??_0x394b3e(-0x164,-_0x14318e._0x15d7ee,-0x1ae,-0x23b),_0x59ae03=_0x57b506[_0x58458f(_0x14318e._0x143eaf,_0x14318e._0x39e184,_0x14318e._0x5c057a,0x2b3)]??0x4000;function _0x394b3e(_0x2c0752,_0x281285,_0x5e74a8,_0x18664c){return _0x3749d0(_0x2c0752-0x9d,_0x281285-_0x436ad3._0x553e58,_0x5e74a8- -0x2c0,_0x281285);}const _0xb3c8a5=_0x57b506[_0x58458f(0x392,0x352,0x2f9,_0x14318e._0x1ffbf3)]??'/chat/completions',_0x3aff57=_0x57b506[_0x58458f(0x31b,0x3b9,0x22b,_0x14318e._0x1e2ad4)]??_0x394b3e(-0x31c,-0x214,-0x260,-_0x14318e._0x180f6b);super({'apiKey':_0x57b506[_0x394b3e(-0xb8,-_0x14318e._0x189ba2,-_0x14318e._0x1ebe59,-_0x14318e._0x560add)],'baseUrl':trimTrailingSlashes(_0x57b506['baseUrl']??_0x394b3e(-0x9f,-_0x14318e._0x51e1aa,-_0x14318e._0x54696c,-0x1ad)),'fetch':_0x57b506['fetch'],'maxTokens':_0x59ae03,'model':_0x50d0a3,'reasoning':_0x57b506[_0x58458f(0x2fa,0x368,0x388,_0x14318e._0xefd632)],'providerAdapter':new OpenAiProviderAdapter(_0x57b506['headerResolver']),'providerSessionResolver':_0x57b506[_0x58458f(_0x14318e._0x435f13,0x435,_0x14318e._0x2db8c2,0x361)],'requestMutators':_0x57b506[_0x394b3e(-_0x14318e._0x52dbc1,-_0x14318e._0xd535d0,-0x1ef,-_0x14318e._0x588013)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x57b506[_0x394b3e(-_0x14318e._0x4479f3,-0x264,-_0x14318e._0x52bf43,-_0x14318e._0x5ac3e5)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0xb3c8a5,'responsesPath':_0x3aff57}),'webSocketFactory':_0x57b506[_0x394b3e(-_0x14318e._0x1d4c8c,-_0x14318e._0x5b0944,-_0x14318e._0x4e0291,-_0x14318e._0x2dfda5)]}),this[_0x58458f(_0x14318e._0x3e41b4,_0x14318e._0x419215,_0x14318e._0xbbdf60,_0x14318e._0xf03c72)]=_0xb3c8a5;function _0x58458f(_0x526ab4,_0x4cc527,_0x20b120,_0xe4b69b){return _0x5da579(_0xe4b69b- -_0x473ace._0x58833d,_0x4cc527-_0x473ace._0x3ba7de,_0x20b120-_0x473ace._0x4f3619,_0x20b120);}this[_0x394b3e(-0x286,-_0x14318e._0x83d030,-0x288,-0x2fc)]=_0x3aff57;}[_0x5da579(0x383,0x392,0x435,0x387)](_0x56d114,_0x2d7e5b){const _0x125b42={_0x55b9d5:0x1ea};function _0x271ddf(_0x199c82,_0x14cb8a,_0x2d3196,_0x12eadf){return _0x5da579(_0x199c82- -0xa3,_0x14cb8a-_0x125b42._0x55b9d5,_0x2d3196-0x1de,_0x14cb8a);}return this[_0x271ddf(0x32e,0x2ec,0x2bc,0x33d)](_0x56d114,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x2d7e5b);}[_0x5da579(0x423,0x458,0x3ff,0x371)](_0x534849,_0x512f70){const _0x180acd={_0x162562:0x424,_0x411e44:0x4b5},_0x31397b={_0x23064c:0xf1,_0x2e0037:0x15d};function _0x3bd8aa(_0x570fb7,_0x533b74,_0x19d2c1,_0x3955ee){return _0x5da579(_0x570fb7-0x7f,_0x533b74-_0x31397b._0x23064c,_0x19d2c1-_0x31397b._0x2e0037,_0x533b74);}return this[_0x3bd8aa(0x450,0x518,_0x180acd._0x162562,_0x180acd._0x411e44)](_0x534849,OPENAI_RESPONSES_SURFACE,_0x512f70);}[_0x5da579(0x42b,0x362,0x422,0x43c)](_0x358312,_0x3e40e5){const _0x119c64={_0x110c84:0x2aa,_0x3b23d6:0x1a8,_0x5a396f:0x1f0},_0x3bf37e={_0x380af5:0xa8};function _0x30b954(_0x8eb451,_0x5018c2,_0xa8178f,_0x2f58ac){return _0x3749d0(_0x8eb451-_0x3bf37e._0x380af5,_0x5018c2-0x1df,_0x2f58ac-0x104,_0x5018c2);}return this[_0x30b954(0x21a,_0x119c64._0x110c84,_0x119c64._0x3b23d6,_0x119c64._0x5a396f)](_0x358312,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x3e40e5);}['streamViaChatCompletionsSurface'](_0x1059e9,_0x3df056){const _0x5630c9={_0x413ddb:0x120},_0x3160b1={_0x75ea47:0xe1};function _0x580c30(_0x40a6b3,_0x1030fd,_0x222e22,_0x333a24){return _0x3749d0(_0x40a6b3-0xc,_0x1030fd-0x1f,_0x40a6b3- -_0x3160b1._0x75ea47,_0x1030fd);}return this[_0x580c30(-0xd3,-0x5c,-0x102,-_0x5630c9._0x413ddb)](_0x1059e9,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x3df056);}['streamViaResponsesSurface'](_0x39af1a,_0x27471c){const _0x3cbbca={_0x272ac7:0x297},_0x1ec3c1={_0x5f0773:0x16d,_0x4083fd:0x20e};function _0x20283d(_0x21eaea,_0x629f64,_0x1a6d03,_0x22f847){return _0x3749d0(_0x21eaea-_0x1ec3c1._0x5f0773,_0x629f64-0x80,_0x1a6d03- -_0x1ec3c1._0x4083fd,_0x22f847);}return this[_0x20283d(-0x2b2,-0x159,-0x200,-_0x3cbbca._0x272ac7)](_0x39af1a,OPENAI_RESPONSES_STREAM_SURFACE,_0x27471c);}[_0x3749d0(0x1d1,0x155,0x145,0x104)](_0x1147b3,_0x1be9ff){const _0x5022a6={_0x1f8f51:0x268,_0x40a873:0x241,_0x491588:0x204},_0x25083f={_0x53f743:0x125,_0x2a07d1:0x151};function _0x12c732(_0x5ed222,_0x31d5ff,_0xf597f8,_0x45fa7a){return _0x5da579(_0x5ed222- -0x8b,_0x31d5ff-_0x25083f._0x53f743,_0xf597f8-_0x25083f._0x2a07d1,_0x45fa7a);}return this[_0x12c732(_0x5022a6._0x1f8f51,_0x5022a6._0x40a873,0x238,_0x5022a6._0x491588)](_0x1147b3,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x1be9ff);}async[_0x5da579(0x2bf,0x270,0x206,0x391)](_0x557baa,_0x4afe67){const _0x2d8b35={_0x5d40af:0x38b,_0x16f67d:0x383,_0x5aff34:0x34d},_0x3194e4={_0x73f869:0x435};function _0x477fee(_0x40ca12,_0x23a413,_0x224d49,_0x26a012){return _0x5da579(_0x40ca12- -_0x3194e4._0x73f869,_0x23a413-0xb1,_0x224d49-0x1ee,_0x26a012);}function _0xbe406(_0x1632c6,_0x1a25bd,_0x518db8,_0x5cdaff){return _0x3749d0(_0x1632c6-0x14b,_0x1a25bd-0x18f,_0x1632c6-0x30d,_0x1a25bd);}try{return await this[_0xbe406(0x3ab,_0x2d8b35._0x5d40af,0x3e3,0x43e)](_0x557baa,_0x4afe67);}catch(_0x119961){if(_0x119961 instanceof OpenAiApiError)throw this[_0xbe406(0x33f,_0x2d8b35._0x16f67d,_0x2d8b35._0x5aff34,0x2a8)](_0x119961);throw _0x119961;}}async['response'](_0x273136,_0x2ce53b){const _0x3550e8={_0x14b21c:0x3a4,_0x420477:0x2e5,_0x36099e:0x3b7,_0x567470:0x149,_0x3a40ac:0x1d9},_0x3c719d={_0xbed20c:0xeb};function _0x2b9f45(_0x4647cb,_0x4a64dc,_0xd6a8c8,_0x15d7bb){return _0x5da579(_0x4a64dc- -0x13e,_0x4a64dc-0xca,_0xd6a8c8-0x14c,_0x15d7bb);}function _0x278958(_0x387f7e,_0xb45c5c,_0x47da8e,_0x1bf8f6){return _0x3749d0(_0x387f7e-_0x3c719d._0xbed20c,_0xb45c5c-0x14c,_0xb45c5c- -0x28b,_0x1bf8f6);}try{return await this[_0x2b9f45(_0x3550e8._0x14b21c,_0x3550e8._0x420477,_0x3550e8._0x36099e,0x34e)](_0x273136,_0x2ce53b);}catch(_0xa1ac72){if(_0xa1ac72 instanceof OpenAiApiError)throw this[_0x2b9f45(_0x3550e8._0x567470,_0x3550e8._0x3a40ac,0x14e,0x12d)](_0xa1ac72);throw _0xa1ac72;}}async['responseSocket'](_0x19261f,_0x52ea99){const _0x495d04={_0x4f77c6:0x204,_0x1ef536:0x1ed,_0x504698:0x4c9,_0x2ad4d5:0x422,_0x3f49d9:0x4e9},_0x329e38={_0xd5005:0x16c},_0x313a42={_0x111f57:0xd3,_0x449485:0x1f1};function _0x1bdd96(_0x2a85d2,_0x442c17,_0x30409c,_0x27183f){return _0x3749d0(_0x2a85d2-_0x313a42._0x111f57,_0x442c17-_0x313a42._0x449485,_0x2a85d2- -0x20e,_0x442c17);}function _0x159fc0(_0x3ed995,_0x5620b7,_0x5c62bb,_0x1a39d5){return _0x5da579(_0x1a39d5-_0x329e38._0xd5005,_0x5620b7-0x1cc,_0x5c62bb-0x119,_0x3ed995);}try{let _0x4708c0;for await(const _0x12af14 of this[_0x159fc0(0x417,0x517,0x576,0x4bd)](_0x19261f,_0x52ea99)){_0x12af14[_0x1bdd96(-_0x495d04._0x4f77c6,-0x22a,-_0x495d04._0x1ef536,-0x196)]===_0x159fc0(0x41b,0x3d5,0x4ea,0x430)&&(_0x4708c0=_0x12af14['response']);}if(!_0x4708c0)throw new Error(_0x159fc0(0x567,_0x495d04._0x504698,_0x495d04._0x2ad4d5,_0x495d04._0x3f49d9));return _0x4708c0;}catch(_0x458dbb){if(_0x458dbb instanceof OpenAiApiError)throw this['mapApiError'](_0x458dbb);throw _0x458dbb;}}async*[_0x3749d0(0x5e,0xa0,0xce,0x19d)](_0x282764,_0x43d1cd){try{yield*this['streamViaChatCompletionsSurface'](_0x282764,_0x43d1cd);}catch(_0x228f9f){if(_0x228f9f instanceof OpenAiApiError)throw this['mapApiError'](_0x228f9f);throw _0x228f9f;}}async*[_0x3749d0(-0x3,-0x4a,-0x2b,0x2)](_0x512a03,_0x15e3a9){const _0x41180={_0x70b06e:0x2d6,_0x4e8666:0x205,_0x33971e:0x2a0},_0x53da4f={_0x19cfe3:0x147,_0x13ab2a:0xfc};function _0x3d1eb9(_0x1ae2ab,_0x53b389,_0x5c116e,_0x2530b){return _0x5da579(_0x53b389- -0x112,_0x53b389-_0x53da4f._0x19cfe3,_0x5c116e-_0x53da4f._0x13ab2a,_0x5c116e);}try{yield*this['streamViaResponsesSurface'](_0x512a03,_0x15e3a9);}catch(_0x52220c){if(_0x52220c instanceof OpenAiApiError)throw this[_0x3d1eb9(_0x41180._0x70b06e,_0x41180._0x4e8666,_0x41180._0x33971e,0x27a)](_0x52220c);throw _0x52220c;}}async*[_0x5da579(0x351,0x33e,0x327,0x404)](_0x178d60,_0x10b2ff){const _0x5d5c1f={_0x25c3df:0x20,_0x5e2e8e:0x2e},_0x4550e7={_0xab51ff:0x11e,_0x22d049:0x3a0},_0x169600={_0x2d7d01:0x341,_0x4ea8f8:0x186,_0x3949bd:0x12e};function _0x3093b4(_0x13af45,_0xe101cb,_0x5a4ead,_0x562af8){return _0x5da579(_0xe101cb- -_0x169600._0x2d7d01,_0xe101cb-_0x169600._0x4ea8f8,_0x5a4ead-_0x169600._0x3949bd,_0x562af8);}function _0x2d7300(_0x19fc5a,_0x273369,_0x51dbd8,_0x1ee059){return _0x3749d0(_0x19fc5a-_0x4550e7._0xab51ff,_0x273369-0x145,_0x273369-_0x4550e7._0x22d049,_0x19fc5a);}try{yield*this[_0x3093b4(0x1a,-0xe,-0xa5,0x67)](_0x178d60,_0x10b2ff);}catch(_0x2a18e5){if(_0x2a18e5 instanceof OpenAiApiError)throw this[_0x3093b4(-_0x5d5c1f._0x25c3df,-0x2a,0x6b,_0x5d5c1f._0x5e2e8e)](_0x2a18e5);throw _0x2a18e5;}}['complete'](_0x47ee77,_0x2c1e8a){const _0x104d9f={_0x54537e:0x165,_0x375b7d:0x92},_0xab64a8={_0x320f81:0x19b,_0x5a6d6b:0x18b};function _0x2a6a12(_0x16de50,_0x2d8291,_0x42eb94,_0x3e7bd1){return _0x3749d0(_0x16de50-_0xab64a8._0x320f81,_0x2d8291-0x12b,_0x2d8291-_0xab64a8._0x5a6d6b,_0x16de50);}return this[_0x2a6a12(0xf6,_0x104d9f._0x54537e,0x11b,_0x104d9f._0x375b7d)](_0x47ee77,_0x2c1e8a);}[_0x3749d0(0x180,0x98,0xad,0x31)](_0x437f8e,_0x4fa102){const _0x22dac1={_0x492c91:0x12,_0x122a19:0xee,_0x451250:0x34};function _0xf3b53d(_0x2febaf,_0x336497,_0x1f6f88,_0x2c546d){return _0x5da579(_0x336497- -0x46a,_0x336497-0x114,_0x1f6f88-0xeb,_0x2febaf);}return this[_0xf3b53d(_0x22dac1._0x492c91,-0xb7,-_0x22dac1._0x122a19,-_0x22dac1._0x451250)](_0x437f8e,_0x4fa102);}[_0x3749d0(0xa2,0x20,0xd5,0x17a)](_0x40b4f4){const _0x3f6b90={_0x18117a:0x3a,_0x17ce4c:0x3e,_0x5281d3:0xb3,_0x1d662b:0x171,_0x2024bf:0x147,_0x347476:0x1a,_0x24cd9a:0xe4,_0x41461c:0x136,_0x5044b6:0x155},_0x26c815={_0x19df7f:0x3c,_0x322676:0xe4},_0x35ed03={_0x2c79c3:0x44e};function _0x3d0f8a(_0x3d8f06,_0xdbb139,_0x2a4b78,_0x39794f){return _0x5da579(_0x39794f- -_0x35ed03._0x2c79c3,_0xdbb139-0x7f,_0x2a4b78-0x17e,_0x2a4b78);}const _0x12f244=this[_0x3d0f8a(_0x3f6b90._0x18117a,-_0x3f6b90._0x17ce4c,-0x64,-0x1c)](_0x40b4f4);let _0x554a2e=_OpenAiModel[_0x3d0f8a(-0x127,-0x20d,-0x177,-0x1ae)][_0x3d0f8a(-0x136,-_0x3f6b90._0x5281d3,-_0x3f6b90._0x1d662b,-_0x3f6b90._0x2024bf)](_0x12f244);!_0x554a2e&&(_0x554a2e={'pending':Promise[_0x3d0f8a(-0x16,0xd,0x22,-0x96)]()},_OpenAiModel[_0x116792(0x9f,0x102,-_0x3f6b90._0x347476,0x27)][_0x3d0f8a(-_0x3f6b90._0x24cd9a,-0x130,-_0x3f6b90._0x41461c,-_0x3f6b90._0x5044b6)](_0x12f244,_0x554a2e));function _0x116792(_0x5bf9cc,_0x3b31b1,_0x3c8d23,_0x286131){return _0x3749d0(_0x5bf9cc-_0x26c815._0x19df7f,_0x3b31b1-0x6e,_0x5bf9cc-_0x26c815._0x322676,_0x3b31b1);}return _0x554a2e;}[_0x5da579(0x432,0x442,0x49a,0x504)](_0x4751ba){const _0x5ddcb1={_0x3410d9:0x66,_0x383343:0x21},_0x35e340={_0x421cab:0xc5},_0x7371b={_0x5bd727:0x1c8,_0x3eeb25:0xd9};function _0x40427a(_0x3cf465,_0x550f7b,_0x2c946f,_0x1dc0ca){return _0x5da579(_0x550f7b- -0x368,_0x550f7b-_0x7371b._0x5bd727,_0x2c946f-_0x7371b._0x3eeb25,_0x3cf465);}function _0x19c333(_0x26406d,_0x5534f8,_0x26739a,_0x398dc3){return _0x5da579(_0x26739a- -_0x35e340._0x421cab,_0x5534f8-0x79,_0x26739a-0xd8,_0x5534f8);}return''+trimTrailingSlashes(this[_0x40427a(_0x5ddcb1._0x3410d9,-0x4f,-0xe3,-0xa8)])+this[_0x40427a(0x11,-0x4b,0x74,-_0x5ddcb1._0x383343)]+'::'+_0x4751ba;}async[_0x3749d0(0x1ca,0x14b,0xf8,0xa9)](_0x2af41e){const _0xf3cbd8={_0x4bcea7:0x547,_0x2f650a:0x4ce,_0x322f88:0x5cc,_0x20f2d3:0x83,_0x520e76:0x168,_0x33c1ec:0xd8,_0x5dc55d:0x211,_0x2bd154:0x1c8,_0x438c92:0x166,_0x549cb9:0x207,_0x508e6e:0x10f,_0x1b38da:0x31,_0x51e502:0xad,_0x11ad1c:0xf8},_0x43aed6={_0x1b4179:0x1f2},_0x3352c8={_0x159613:0x14b,_0x17317c:0x149},_0x2d1e67=_0x2af41e[_0x409f7b(0x508,_0xf3cbd8._0x4bcea7,_0xf3cbd8._0x2f650a,_0xf3cbd8._0x322f88)][_0x2c4d18(_0xf3cbd8._0x20f2d3,_0xf3cbd8._0x520e76,0x19a,_0xf3cbd8._0x33c1ec)](()=>{});let _0x35ebe1;const _0x2b375a=new Promise(_0x372caf=>{_0x35ebe1=_0x372caf;});function _0x2c4d18(_0x1fde33,_0x178571,_0x46cefc,_0x329d56){return _0x3749d0(_0x1fde33-_0x3352c8._0x159613,_0x178571-_0x3352c8._0x17317c,_0x329d56-0xd4,_0x1fde33);}_0x2af41e[_0x2c4d18(_0xf3cbd8._0x5dc55d,_0xf3cbd8._0x2bd154,_0xf3cbd8._0x438c92,_0xf3cbd8._0x549cb9)]=_0x2d1e67[_0x2c4d18(_0xf3cbd8._0x508e6e,_0xf3cbd8._0x1b38da,_0xf3cbd8._0x51e502,_0xf3cbd8._0x11ad1c)](()=>_0x2b375a);function _0x409f7b(_0x2a1acb,_0x2d0e46,_0xe7fabf,_0x17b58b){return _0x5da579(_0x2a1acb-0xf0,_0x2d0e46-0x3d,_0xe7fabf-_0x43aed6._0x1b4179,_0x17b58b);}return await _0x2d1e67,()=>{_0x35ebe1?.();};}async[_0x3749d0(0x9,0x43,0x8a,0x9c)](_0x4fc446,_0x2f5560){const _0x10332a={_0x2027f8:0x487,_0x5914f9:0x5bb,_0x566aca:0x57a,_0x4becd4:0x51d,_0x103bc3:0x42e,_0x5ecb35:0x47c,_0x109bfc:0x431,_0x2b0d90:0x56c,_0x105d7c:0x54b,_0xd1bd52:0x2d6,_0x22f3ba:0x41f,_0x5df8ed:0x407,_0x35e448:0x5c2,_0x1d83b6:0x65e,_0x3ff301:0x691},_0x52b59f={_0x1952c3:0x16f,_0x4d5736:0x1bb,_0x59587b:0x37c},_0x395d57={_0x1b6a0f:0x37,_0x5c9ef2:0x76,_0x433890:0x477},_0x4b8979=this[_0x39cb00(0x460,0x399,0x3bc,_0x10332a._0x2027f8)](_0x4fc446),_0x5dde14=toModelRequest(_0x4b8979),_0x80b878=await prepareProviderRequest(_0x5dde14,{'sessionManager':this[_0x39cb00(0x530,0x4a4,_0x10332a._0x5914f9,0x5bb)],'requestMutators':this[_0x39cb00(0x548,_0x10332a._0x566aca,_0x10332a._0x4becd4,0x53e)],'signal':_0x2f5560});function _0x39cb00(_0x5493ba,_0x3794fe,_0x13e676,_0x35bff6){return _0x3749d0(_0x5493ba-_0x395d57._0x1b6a0f,_0x3794fe-_0x395d57._0x5c9ef2,_0x5493ba-_0x395d57._0x433890,_0x13e676);}const _0x5467cb=toChatRequest(_0x80b878[_0x39cb00(0x493,0x52e,0x4d8,_0x10332a._0x103bc3)]),_0x3a3fd8=this['providerAdapter']['resolveCredential'](this['apiKey'],_0x80b878[_0x5b4e15(_0x10332a._0x5ecb35,0x586,0x4c6,_0x10332a._0x109bfc)]);function _0x5b4e15(_0x505f23,_0xd955a7,_0x14f2b1,_0x36bc44){return _0x3749d0(_0x505f23-_0x52b59f._0x1952c3,_0xd955a7-_0x52b59f._0x4d5736,_0x14f2b1-_0x52b59f._0x59587b,_0x505f23);}if(!_0x3a3fd8)throw this[_0x39cb00(0x54b,0x56f,_0x10332a._0x2b0d90,_0x10332a._0x105d7c)]();return{'baseUrl':this[_0x5b4e15(0x37a,0x3e0,0x32c,_0x10332a._0xd1bd52)]['resolveBaseUrl'](this[_0x39cb00(0x4ab,0x4d9,_0x10332a._0x22f3ba,0x55a)],_0x80b878[_0x5b4e15(0x533,0x4e9,0x4c6,_0x10332a._0x5df8ed)]),'credential':_0x3a3fd8,'request':_0x5467cb,'session':_0x80b878[_0x39cb00(0x5c1,_0x10332a._0x35e448,_0x10332a._0x1d83b6,_0x10332a._0x3ff301)]};}['buildResponsesSocketEvent'](_0x4498b0,_0xb9ed1,_0x480d5c={}){const _0x184532={_0x1d28c6:0xd3,_0x6948dc:0x1ce,_0x389aaa:0x1fc,_0xb582b6:0x247,_0x4bdedb:0x134,_0x544979:0x16a,_0x36b41f:0x2c7,_0x541d25:0x349,_0x18207f:0x26e,_0x1f03f9:0x2c0,_0x4585af:0x30f,_0xf610:0x108,_0x4590bc:0x18,_0x4d46b9:0xd9,_0x39cd31:0x39,_0x348a55:0x28d,_0x561bfb:0x115,_0x164745:0x19c},_0x2c3a74={_0x3df50f:0x69,_0x5e605c:0x1aa};if(!_0x480d5c[_0x47aa1b(_0x184532._0x1d28c6,0x18f,_0x184532._0x6948dc,_0x184532._0x389aaa)]){const _0x420fb4=this[_0x47aa1b(_0x184532._0xb582b6,0x181,_0x184532._0x4bdedb,_0x184532._0x544979)](_0x4498b0);if(_0x420fb4&&_0xb9ed1[_0x11b365(_0x184532._0x36b41f,_0x184532._0x541d25,_0x184532._0x18207f,0x23b)]&&_0x420fb4['responseId']===_0xb9ed1[_0x11b365(0x2c7,_0x184532._0x1f03f9,0x2c6,0x265)]){const _0x49b268=toOpenAiResponsesRequest({..._0x4498b0,'messages':_0x4498b0['messages'][_0x11b365(0x273,_0x184532._0x4585af,0x2ee,0x32f)](_0x420fb4[_0x47aa1b(0x13d,_0x184532._0xf610,0x12a,0x9e)]+0x1)})[_0x47aa1b(_0x184532._0x4590bc,_0x184532._0x4d46b9,_0x184532._0x39cd31,0xdb)];return{'event':createOpenAiResponsesWebSocketEvent(_0x4498b0,{'input':_0x49b268,'previousResponseId':_0x420fb4[_0x11b365(_0x184532._0x348a55,0x202,0x2d4,0x1d1)]}),'previousResponseId':_0x420fb4[_0x47aa1b(0xb1,_0x184532._0x561bfb,0x65,_0x184532._0x164745)]};}}function _0x11b365(_0x518500,_0x1c5838,_0x59a948,_0x43ff3e){return _0x5da579(_0x518500- -0x59,_0x1c5838-0x5,_0x59a948-0x172,_0x43ff3e);}function _0x47aa1b(_0x29cbd0,_0x4245e9,_0x524e46,_0x3752ec){return _0x3749d0(_0x29cbd0-_0x2c3a74._0x3df50f,_0x4245e9-_0x2c3a74._0x5e605c,_0x4245e9-0x114,_0x29cbd0);}return{'event':createOpenAiResponsesWebSocketEvent(_0x4498b0)};}['findResponsesSocketCheckpoint'](_0x2c10f6){const _0x2bc8b6={_0x298fbf:0x20e,_0x10d3e2:0x2f,_0x55d401:0x163,_0x4a2fb6:0x30,_0x41a023:0x158,_0xdaa668:0x10f,_0x444edf:0x16,_0x1e0932:0x44,_0x47651a:0x1f,_0x2cc3c3:0x7f,_0x5a75ce:0xb2,_0x2e4010:0x10,_0x43f49e:0x9,_0xb34f3b:0x194,_0x287956:0xea},_0x2a0a0b={_0x2e2599:0x3d4},_0x8235d5={_0x7d45bc:0x2,_0x12bf4e:0x1b7};function _0x420cb0(_0x4d56ba,_0x47fda1,_0x1666fb,_0xaef878){return _0x3749d0(_0x4d56ba-_0x8235d5._0x7d45bc,_0x47fda1-_0x8235d5._0x12bf4e,_0x4d56ba-0xd1,_0x1666fb);}for(let _0x1b2e2e=_0x2c10f6[_0x420cb0(0x1fd,0x294,0x1d3,_0x2bc8b6._0x298fbf)][_0x420cb0(0xa2,_0x2bc8b6._0x10d3e2,_0x2bc8b6._0x55d401,_0x2bc8b6._0x4a2fb6)]-0x1;_0x1b2e2e>=0x0;_0x1b2e2e-=0x1){const _0x40ec5a=_0x2c10f6[_0x420cb0(0x1fd,_0x2bc8b6._0x41a023,0x26d,0x29c)][_0x1b2e2e],_0x503f8c=_0x40ec5a[_0x420cb0(0xbe,_0x2bc8b6._0xdaa668,0x16d,_0x2bc8b6._0x444edf)]===_0x35a841(-0x7e,0x40,-_0x2bc8b6._0x1e0932,-_0x2bc8b6._0x47651a)?_0x40ec5a[_0x35a841(-_0x2bc8b6._0x2cc3c3,-_0x2bc8b6._0x5a75ce,-_0x2bc8b6._0x2e4010,_0x2bc8b6._0x43f49e)]?.[_0x420cb0(0x188,_0x2bc8b6._0xb34f3b,0x246,_0x2bc8b6._0x287956)]:void 0x0;if(_0x503f8c)return{'messageIndex':_0x1b2e2e,'responseId':_0x503f8c};}function _0x35a841(_0x65e7e,_0x351fb5,_0x19b6a4,_0x2e9048){return _0x5da579(_0x19b6a4- -_0x2a0a0b._0x2e2599,_0x351fb5-0x1d3,_0x19b6a4-0x15c,_0x2e9048);}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x291c6d){const _0x115683={_0x189cb4:0x30,_0x5c7168:0xc},_0x121228={_0x66a690:0x3dc,_0x283310:0x39,_0xe06087:0x19a},_0x8f735a={_0x463fb8:0x30,_0x1437c1:0x306};function _0x4040ab(_0x476a89,_0x4cb383,_0x17c406,_0x1f2760){return _0x3749d0(_0x476a89-0x60,_0x4cb383-_0x8f735a._0x463fb8,_0x17c406-_0x8f735a._0x1437c1,_0x4cb383);}function _0x2c7279(_0x4c6dd3,_0x53c7ca,_0x13ce25,_0x4bd19f){return _0x5da579(_0x4bd19f- -_0x121228._0x66a690,_0x53c7ca-_0x121228._0x283310,_0x13ce25-_0x121228._0xe06087,_0x53c7ca);}return _0x291c6d instanceof ProviderStreamEventError&&(_0x291c6d['code']==='previous_response_not_found'||_0x291c6d[_0x2c7279(-0xbf,_0x115683._0x189cb4,0x64,_0x115683._0x5c7168)]===_0x2c7279(0x105,-0x11,0x13,0x50));}[_0x3749d0(0xf9,0xfb,0x116,0x1b9)](_0x2f0950){const _0x4e79fe={_0x5f0cec:0x284,_0x100219:0x2bd,_0x587c29:0x1f0,_0x32735a:0x2cf,_0x4af098:0x168,_0x510bfc:0x190,_0x483511:0x182,_0x493ffb:0x1e4,_0x477085:0x1ed,_0x589d4c:0x24a,_0x19ba61:0x341,_0x4a8384:0x55,_0x91d607:0xff},_0x3f77b5={_0x2d932a:0x85},_0x459ab0=_0x2f0950[_0x586511(-0x274,-_0x4e79fe._0x5f0cec,-_0x4e79fe._0x100219,-_0x4e79fe._0x587c29)];_0x2f0950['socket']=void 0x0;function _0x586511(_0xc8c9e0,_0x392e69,_0x2ad171,_0x4704e0){return _0x5da579(_0xc8c9e0- -0x5ef,_0x392e69-0x120,_0x2ad171-0x4a,_0x2ad171);}function _0x51b831(_0x25ab62,_0x603868,_0x25209f,_0x46d80b){return _0x3749d0(_0x25ab62-_0x3f77b5._0x2d932a,_0x603868-0x19f,_0x25209f-0xd0,_0x25ab62);}_0x2f0950['connecting']=void 0x0,_0x2f0950[_0x586511(-_0x4e79fe._0x32735a,-0x27c,-0x2fa,-0x217)]=void 0x0,_0x459ab0?.[_0x51b831(_0x4e79fe._0x4af098,0x1e6,0x207,_0x4e79fe._0x510bfc)]===WebSocket[_0x51b831(_0x4e79fe._0x483511,0x1f1,_0x4e79fe._0x493ffb,_0x4e79fe._0x477085)]&&_0x459ab0[_0x586511(-0x26d,-_0x4e79fe._0x589d4c,-_0x4e79fe._0x19ba61,-0x292)](0x3e8,_0x51b831(0xaf,_0x4e79fe._0x4a8384,0x82,_0x4e79fe._0x91d607));}async[_0x5da579(0x2d3,0x2ca,0x2fb,0x2bc)](_0x95b93f,_0x438134,_0x54e028,_0x27abca,_0x3cba66){const _0x330a05={_0x3c27c0:0x4a6,_0x488ed6:0x3e6,_0x5aaae2:0x5a9,_0x358dc1:0x448,_0x460fdc:0x503,_0x4ea3a2:0x466,_0x51d94e:0x3f0,_0x5b8c66:0x48e,_0x5b749:0x363,_0x128c7f:0x472,_0x152db8:0x3e0,_0x517388:0x40d,_0x1f1478:0x486,_0x463c8f:0x472,_0x3911af:0x460,_0x4c0db7:0x4bb,_0x34295e:0x43c,_0x5d647f:0x4c0,_0x14a7d7:0x4b2,_0x590e57:0x4ae,_0x3db4cc:0x3a4,_0x674457:0x442},_0x2a4588={_0x53b043:0x1e},_0x657853={_0x5cb153:0x463,_0x266a3b:0x4bc,_0x27c4e0:0x48b,_0x5c2253:0x53c,_0x54b1ba:0x568,_0x2395e9:0x117,_0x21e7a3:0xb4,_0x16da30:0xfd,_0x4f378e:0xc8,_0x40fc7b:0x3d,_0xfdc95b:0xad,_0x48c0fb:0x55,_0x4cc6ea:0x148,_0x4c08ee:0x1f8,_0x4cfa5f:0x12f,_0x2a0474:0x133,_0x1be397:0x1e0,_0xcf00dc:0x39b,_0x5dec60:0x492,_0x53deb1:0x426,_0x1cb4fb:0x3b3,_0x5c5c3c:0x3cd,_0x525904:0xc0,_0x21d469:0x8f,_0x493614:0x139,_0x259ebd:0x107,_0x1e6c57:0x1e6,_0x1830f7:0x425,_0xc3798e:0x41c,_0x49c744:0x482,_0x2d763b:0x4b8,_0x326218:0x519,_0x479118:0x209,_0x214e13:0x1af,_0x5c8352:0x488,_0x23fe7c:0x4b9,_0x5d5793:0x506,_0x346513:0x5cd,_0x5cdea9:0x4ab,_0xc0797e:0x13c,_0x1630b7:0x180},_0xe4beb7={_0x572e39:0x29};if(_0x438134[_0x2a74f7(_0x330a05._0x3c27c0,0x430,_0x330a05._0x488ed6,0x35c)]?.[_0x1d7dc0(0x507,_0x330a05._0x5aaae2,_0x330a05._0x358dc1,_0x330a05._0x460fdc)]===WebSocket['OPEN'])return _0x438134[_0x1d7dc0(_0x330a05._0x4ea3a2,_0x330a05._0x51d94e,_0x330a05._0x5b8c66,0x485)];if(_0x438134[_0x2a74f7(_0x330a05._0x5b749,_0x330a05._0x128c7f,_0x330a05._0x152db8,0x473)])return await _0x438134[_0x1d7dc0(0x460,_0x330a05._0x517388,_0x330a05._0x1f1478,_0x330a05._0x463c8f)];function _0x2a74f7(_0x52705f,_0xfb8b7f,_0x5572d0,_0xf605e4){return _0x5da579(_0x5572d0-0x6b,_0xfb8b7f-0x18f,_0x5572d0-_0xe4beb7._0x572e39,_0x52705f);}_0x438134[_0x1d7dc0(_0x330a05._0x3911af,_0x330a05._0x4c0db7,_0x330a05._0x34295e,_0x330a05._0x5d647f)]=((async()=>{const _0x5b7c8b={_0x3c020e:0x20,_0x22fafb:0x7b,_0x5c7033:0x3b},_0x56afbc={_0x353051:0x148},_0x1c64e6={_0x300126:0xc8},_0x1d0635={_0x4b9947:0x22},_0xde6773={_0x1158ca:0x1d0,_0x267002:0x27e,_0x584b23:0xdf},_0x8e9e22=await this[_0x42eb89(0x4dd,0x503,0x44c,0x377)]({'request':_0x54e028['request'],'body':_0x27abca,'credential':_0x54e028[_0x42eb89(_0x657853._0x5cb153,0x3f0,_0x657853._0x266a3b,_0x657853._0x27c4e0)],'session':_0x54e028[_0x42eb89(0x512,0x5bb,_0x657853._0x5c2253,_0x657853._0x54b1ba)],'stream':!![]},{'accept':_0x273867(_0x657853._0x2395e9,_0x657853._0x21e7a3,0x63,_0x657853._0x16da30),'includeContentType':![]});function _0x273867(_0x5734a9,_0x210ec4,_0x85f392,_0x54bfd7){return _0x2a74f7(_0x210ec4,_0x210ec4-_0xde6773._0x1158ca,_0x5734a9- -_0xde6773._0x267002,_0x54bfd7-_0xde6773._0x584b23);}_0x8e9e22[_0x273867(_0x657853._0x4f378e,_0x657853._0x40fc7b,_0x657853._0xfdc95b,_0x657853._0x48c0fb)](_0x273867(_0x657853._0x4cc6ea,0x1d7,0x15f,_0x657853._0x4c08ee));const _0x1ec868=this[_0x273867(_0x657853._0x4cfa5f,0x8c,_0x657853._0x2a0474,_0x657853._0x1be397)]({'headers':Object[_0x273867(0x11a,0x10a,0x187,0xd8)](_0x8e9e22[_0x42eb89(0x4c2,0x364,0x3fb,_0x657853._0xcf00dc)]()),'url':(''+_0x54e028[_0x42eb89(_0x657853._0x5dec60,0x352,_0x657853._0x53deb1,_0x657853._0x1cb4fb)]+this[_0x42eb89(0x387,_0x657853._0x5c5c3c,0x42a,0x3e6)])[_0x273867(0xad,0x16d,_0x657853._0x525904,_0x657853._0x21d469)](/^http:/,_0x273867(_0x657853._0x493614,0x7e,_0x657853._0x259ebd,_0x657853._0x1e6c57))[_0x42eb89(0x42b,_0x657853._0x1830f7,0x3cd,_0x657853._0xc3798e)](/^https:/,_0x42eb89(0x40a,0x481,0x3ac,0x3fb))});function _0x42eb89(_0x972c9,_0x2f0cda,_0x3e8e88,_0x5ee51e){return _0x1d7dc0(_0x3e8e88-_0x1d0635._0x4b9947,_0x2f0cda-0x1bd,_0x2f0cda,_0x5ee51e-0x80);}const _0xe7073b=()=>{function _0x355073(_0x4c6fb6,_0x13c5d1,_0x29aff6,_0x144073){return _0x42eb89(_0x4c6fb6-_0x1c64e6._0x300126,_0x4c6fb6,_0x13c5d1- -0x3c8,_0x144073-0x18a);}function _0x2fa8ce(_0x5ede47,_0x5e4a8a,_0xfaf62e,_0x2a7e6b){return _0x273867(_0xfaf62e- -_0x56afbc._0x353051,_0x5e4a8a,_0xfaf62e-0x12e,_0x2a7e6b-0x3c);}_0x438134[_0x2fa8ce(-0x45,0xf5,_0x5b7c8b._0x3c020e,0xa4)]===_0x1ec868&&(_0x438134[_0x2fa8ce(-0xa3,0xf5,_0x5b7c8b._0x3c020e,0xaf)]=void 0x0,_0x438134[_0x2fa8ce(_0x5b7c8b._0x22fafb,-0x7,-_0x5b7c8b._0x5c7033,0x81)]=void 0x0);};_0x1ec868[_0x42eb89(_0x657853._0x49c744,0x4b2,_0x657853._0x2d763b,_0x657853._0x326218)]('close',_0xe7073b);try{return throwIfAborted(_0x3cba66),_0x1ec868[_0x273867(_0x657853._0x479118,_0x657853._0x214e13,0x29c,0x193)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x1ec868,_0x3cba66),throwIfAborted(_0x3cba66),_0x438134[_0x42eb89(0x4ab,0x526,_0x657853._0x5c8352,0x43d)]=_0x1ec868,_0x1ec868;}catch(_0x536f21){_0xe7073b();_0x1ec868['readyState']===WebSocket[_0x42eb89(0x444,_0x657853._0x23fe7c,_0x657853._0x5d5793,_0x657853._0x346513)]&&_0x1ec868[_0x42eb89(_0x657853._0x5cdea9,0x470,0x48f,0x4d9)](0x3e8,_0x273867(_0x657853._0xc0797e,0xe6,_0x657853._0x1630b7,0x168));throw _0x536f21;}})());function _0x1d7dc0(_0x174c95,_0x346ac4,_0xc9575d,_0x412a5a){return _0x5da579(_0x174c95-0xeb,_0x346ac4-0xa8,_0xc9575d-_0x2a4588._0x53b043,_0xc9575d);}try{return await _0x438134[_0x2a74f7(_0x330a05._0x14a7d7,_0x330a05._0x590e57,0x3e0,0x358)];}finally{_0x438134[_0x1d7dc0(_0x330a05._0x3911af,_0x330a05._0x3db4cc,0x506,_0x330a05._0x674457)]=void 0x0;}}async*[_0x3749d0(0xde,-0x32,0x4e,0x84)](_0x10366b,_0x36583f){const _0x2a232a={_0x574802:0x9a,_0x28c687:0xa6,_0x11f44a:0x11d,_0x389317:0x186,_0xc5c5eb:0x200,_0x6bedae:0xeb,_0x5b4bec:0x1c3,_0x305e1e:0x226,_0x580585:0x209,_0x5914e5:0x1d7,_0x49d03c:0x167,_0x4e4d5f:0x1e2,_0x2cf88c:0x18d,_0x43523f:0x1d1,_0x439dc5:0x1b9,_0x2aa9bf:0x202,_0x40da03:0x289,_0x1fc2c8:0x126,_0x42318f:0x185,_0x45380c:0x192,_0x230266:0x1de,_0x1ce11b:0xa8,_0x5a1862:0x2be,_0x1d0a56:0x1fa,_0xcf3455:0x314,_0x1c8474:0x247,_0x2f5547:0xd4,_0x16757d:0x1ae,_0x385a63:0x1ec,_0x4cc194:0x2b5,_0x507298:0x158,_0x5d40fa:0x1ac,_0x67591f:0xfd,_0xd77de0:0x77,_0x5d0153:0xd5,_0x49c3d7:0x266},_0x1025bb={_0x2f4e47:0x86},_0x1ff15e={_0x37126c:0x19,_0x46d230:0x8e},_0x292fc8=this[_0x11b430(_0x2a232a._0x574802,_0x2a232a._0x28c687,0x28,_0x2a232a._0x11f44a)](_0x10366b);function _0x27e2c9(_0x2a1d57,_0x48f4cf,_0x183708,_0x1afaf8){return _0x3749d0(_0x2a1d57-_0x1ff15e._0x37126c,_0x48f4cf-_0x1ff15e._0x46d230,_0x183708-0x139,_0x1afaf8);}function _0x11b430(_0x544a42,_0x4f18e0,_0x878547,_0x424950){return _0x3749d0(_0x544a42-_0x1025bb._0x2f4e47,_0x4f18e0-0x137,_0x544a42-0xb1,_0x878547);}const _0x2d5486=this[_0x11b430(_0x2a232a._0x389317,_0x2a232a._0xc5c5eb,_0x2a232a._0x6bedae,0x1cc)](_0x292fc8['metadata'][_0x11b430(0x1b9,_0x2a232a._0x5b4bec,0x27f,_0x2a232a._0x305e1e)]),_0x395881=await this[_0x11b430(0x1a9,_0x2a232a._0x580585,0x1d4,0x170)](_0x2d5486);try{const _0x34a35d=this[_0x11b430(_0x2a232a._0x5914e5,0x1de,_0x2a232a._0x49d03c,_0x2a232a._0x4e4d5f)](_0x292fc8,_0x2d5486);try{yield*this[_0x27e2c9(0x130,0x1b9,_0x2a232a._0x2cf88c,_0x2a232a._0x43523f)](_0x292fc8['metadata'][_0x11b430(_0x2a232a._0x439dc5,_0x2a232a._0x2aa9bf,_0x2a232a._0x40da03,0x1c5)],_0x2d5486,_0x292fc8,_0x34a35d[_0x27e2c9(_0x2a232a._0x1fc2c8,0x18a,_0x2a232a._0x42318f,0x20c)],_0x36583f?.[_0x11b430(_0x2a232a._0x45380c,0x22d,0x152,_0x2a232a._0x230266)]);return;}catch(_0x606559){if(!_0x34a35d[_0x11b430(0x8d,-0x1a,_0x2a232a._0x1ce11b,0x64)]||!this['shouldRetryResponsesSocketRequest'](_0x606559)){this['invalidateResponsesSocketSession'](_0x2d5486);throw _0x606559;}}this[_0x27e2c9(_0x2a232a._0x5a1862,_0x2a232a._0x1d0a56,0x24f,_0x2a232a._0xcf3455)](_0x2d5486);const _0x1990fa=this['buildResponsesSocketEvent'](_0x292fc8,_0x2d5486,{'forceFullReplay':!![]});yield*this[_0x27e2c9(_0x2a232a._0x1c8474,_0x2a232a._0x2f5547,_0x2a232a._0x2cf88c,_0x2a232a._0x16757d)](_0x292fc8[_0x11b430(_0x2a232a._0x385a63,_0x2a232a._0x4cc194,0x2a5,_0x2a232a._0x507298)][_0x11b430(_0x2a232a._0x439dc5,0x14d,0x1f2,_0x2a232a._0x5d40fa)],_0x2d5486,_0x292fc8,_0x1990fa[_0x11b430(_0x2a232a._0x67591f,0x1a3,0xfd,_0x2a232a._0xd77de0)],_0x36583f?.[_0x11b430(_0x2a232a._0x45380c,_0x2a232a._0x5d0153,0x1f4,_0x2a232a._0x49c3d7)]);}finally{_0x395881();}}async*['streamViaResponsesSocketAttempt'](_0x5b1fad,_0x3c568b,_0x468fa2,_0x23f2c8,_0xb4f2d2){const _0x20f00f={_0x5ca1af:0x373,_0x3dc811:0x392,_0x559096:0x359,_0x406765:0x2d7,_0x19669c:0x3f,_0xbdb1e1:0x121,_0x460cbf:0x46,_0x42e10f:0x2c0,_0x554fb8:0x3e3,_0xb7ad50:0x32f,_0x50e2c8:0x344,_0x30364e:0x314,_0x1e6691:0x2f1,_0x744b0f:0x107,_0x55cb6d:0x10b,_0x2ed42b:0x172,_0x5e5e49:0xf1,_0xfc30d7:0x127,_0x90b35:0x15d,_0x285a0a:0x5e,_0x17c997:0x11c,_0x31c467:0x35,_0x229b44:0x1bf},_0x3ee287={_0xf931fc:0x1b0},_0x4ef022={_0x2c8936:0x4,_0x5dae6f:0x99,_0x108b91:0x98},_0x182988=await this[_0x1bc2cb(_0x20f00f._0x5ca1af,_0x20f00f._0x3dc811,_0x20f00f._0x559096,_0x20f00f._0x406765)](_0x468fa2,_0xb4f2d2);function _0x1bc2cb(_0x1ab65c,_0x23dd4f,_0x5aceb0,_0x1e0cb0){return _0x5da579(_0x1ab65c-_0x4ef022._0x2c8936,_0x23dd4f-_0x4ef022._0x5dae6f,_0x5aceb0-_0x4ef022._0x108b91,_0x1e0cb0);}const _0x455178=await this['getOrCreateResponsesSocket'](_0x5b1fad,_0x3c568b,_0x182988,_0x23f2c8,_0xb4f2d2);function _0x345cb3(_0x562c7c,_0x2645e9,_0x150685,_0x1cd181){return _0x5da579(_0x562c7c- -0x425,_0x2645e9-0x8e,_0x150685-_0x3ee287._0xf931fc,_0x2645e9);}const _0x2b0ca2=createOpenAiResponsesStreamParser(_0x468fa2);throwIfAborted(_0xb4f2d2),_0x455178[_0x1bc2cb(0x3d7,0x37c,0x32f,0x368)](JSON[_0x345cb3(-0x4d,_0x20f00f._0x19669c,-_0x20f00f._0xbdb1e1,_0x20f00f._0x460cbf)](_0x23f2c8));for await(const _0x8b556e of iterateWebSocketMessages(_0x455178,_0xb4f2d2)){const _0x3b1cb3=_0x2b0ca2[_0x1bc2cb(_0x20f00f._0x42e10f,0x353,0x235,0x2cc)]?.(_0x8b556e)??[];yield*_0x3b1cb3;if(_0x2b0ca2[_0x1bc2cb(0x314,_0x20f00f._0x554fb8,_0x20f00f._0xb7ad50,_0x20f00f._0x50e2c8)]?.())break;}if(!_0x2b0ca2[_0x1bc2cb(_0x20f00f._0x30364e,0x293,0x2a6,_0x20f00f._0x1e6691)]?.())throw new Error(_0x345cb3(-_0x20f00f._0x744b0f,-0x49,-_0x20f00f._0x55cb6d,-_0x20f00f._0x2ed42b));const _0x1e184d=_0x2b0ca2[_0x345cb3(-0xbf,-_0x20f00f._0x5e5e49,-_0x20f00f._0xfc30d7,-_0x20f00f._0x90b35)](),_0x1a4c11=_0x1e184d[_0x1bc2cb(0x3c8,0x393,0x484,0x315)]?.['openaiResponsesResponseId']??_0x1e184d['id'];_0x1a4c11&&(_0x3c568b[_0x345cb3(-0x105,-_0x20f00f._0x285a0a,-_0x20f00f._0x17c997,-_0x20f00f._0x31c467)]=_0x1a4c11),yield{'type':_0x345cb3(-0x161,-0x1a8,-0x160,-_0x20f00f._0x229b44),'response':_0x1e184d};}},AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages','openai-chat-completions',_0x3749d0(-0x54,0xb4,0x5c,-0x27),_0x5da579(0x33c,0x280,0x27f,0x28a)];function isAnthropicSurface(_0x299b35){return _0x299b35==='anthropic-messages';}function resolveDefaultBaseUrl(_0x18d4dd){const _0x36ac12={_0x3387f2:0x140,_0x29b87a:0xc9,_0xa11801:0xd8,_0x3e1cf9:0x41d},_0x27b282={_0x1020e7:0x44},_0x39009a={_0x9c336d:0xfd};function _0x35052b(_0x49b329,_0x4677d9,_0x52ed6c,_0x28d58d){return _0x5da579(_0x4677d9- -0x24,_0x4677d9-0x15b,_0x52ed6c-_0x39009a._0x9c336d,_0x28d58d);}function _0x5f4f55(_0x4b8c1f,_0x222c23,_0x29ed5b,_0x3dcefa){return _0x3749d0(_0x4b8c1f-_0x27b282._0x1020e7,_0x222c23-0x165,_0x222c23- -0x1e,_0x29ed5b);}return isAnthropicSurface(_0x18d4dd)?_0x5f4f55(_0x36ac12._0x3387f2,_0x36ac12._0x29b87a,_0x36ac12._0xa11801,0x109):_0x35052b(0x455,0x419,_0x36ac12._0x3e1cf9,0x49f);}var ChatModel=class{[_0x3749d0(0x1d3,0xfa,0x10c,0x15a)];[_0x3749d0(0x4b,-0xc7,-0x15,-0x66)];['surface'];['anthropicDelegate'];[_0x5da579(0x34d,0x3c1,0x3b8,0x27d)];constructor(_0x3460a7={}){const _0x46faee={_0x4a5781:0xa0,_0x5a766c:0xc9,_0x35763c:0x141,_0x2b5ab1:0x154,_0x197abd:0x18,_0x55fb15:0xef,_0x407f67:0x387,_0x4392a9:0x305,_0x4dfaf7:0xf1,_0x2a0000:0x12e,_0x4f4709:0x12f,_0x253616:0x115,_0x3cd33b:0x44,_0x4ce9c9:0x1f4,_0x17cd3b:0x159,_0x5dd64a:0x355,_0x5a8c51:0x320,_0x3b5dfd:0x2fd,_0x4b81fd:0x3c0,_0x17f46c:0x51f,_0x19705d:0x48d,_0x1c050c:0x157,_0x595cbf:0xc2,_0x402506:0x148,_0x2249b0:0x32,_0x15662:0x14e,_0x4db5b4:0x144,_0x51716f:0xff,_0x1a7c73:0x4da,_0x14c457:0x4d7,_0x4cdcad:0x4b4,_0x26030f:0x374,_0x37ad38:0x31a,_0x44dbbb:0x330,_0x2bfabf:0x1d8,_0x3cffd7:0x359,_0x446926:0x39e,_0xa7ec24:0x46a,_0x46072d:0x489,_0x3de074:0x499,_0x4378b9:0x49e,_0x28424c:0x471,_0x2be7a8:0x45d,_0x4e00e4:0x42d},_0x2b31db={_0x2bd2df:0x7f,_0x47cb89:0x1ac},_0x2fa44d={_0x290288:0x13e};this[_0x3b651c(-_0x46faee._0x4a5781,-_0x46faee._0x5a766c,-_0x46faee._0x35763c,-0x14e)]=_0x3460a7[_0x3b651c(-0xa0,-_0x46faee._0x2b5ab1,-_0x46faee._0x197abd,-_0x46faee._0x55fb15)]??'gpt-4o',this[_0x404098(_0x46faee._0x407f67,0x317,_0x46faee._0x4392a9,0x349)]=_0x3460a7[_0x3b651c(-0x1c1,-0x102,-_0x46faee._0x4dfaf7,-0x243)]??0x4000,this[_0x3b651c(-0x6d,-0x3e,-_0x46faee._0x2a0000,-_0x46faee._0x4f4709)]=_0x3460a7['surface']??'openai-chat-completions';const _0x24c9d6=trimTrailingSlashes(_0x3460a7['baseUrl']??resolveDefaultBaseUrl(this['surface']));function _0x404098(_0x14b4ba,_0x32bf82,_0x3592b8,_0x3fe370){return _0x5da579(_0x3fe370-0x79,_0x32bf82-0x169,_0x3592b8-_0x2fa44d._0x290288,_0x32bf82);}function _0x3b651c(_0x3e2861,_0x2bd210,_0x27538d,_0x2d4ab9){return _0x3749d0(_0x3e2861-0x1d8,_0x2bd210-_0x2b31db._0x2bd2df,_0x3e2861- -_0x2b31db._0x47cb89,_0x2bd210);}if(isAnthropicSurface(this[_0x3b651c(-0x6d,-0x36,-_0x46faee._0x253616,-_0x46faee._0x3cd33b)])){this[_0x3b651c(-_0x46faee._0x4ce9c9,-0x18d,-_0x46faee._0x17cd3b,-0x23f)]=new AnthropicModel({'apiKey':_0x3460a7[_0x404098(0x494,0x48a,0x507,0x4b4)],'authScheme':_0x3460a7['authScheme'],'baseUrl':_0x24c9d6,'fetch':_0x3460a7[_0x404098(_0x46faee._0x5dd64a,_0x46faee._0x5a8c51,_0x46faee._0x3b5dfd,0x330)],'maxTokens':this['maxTokens'],'model':this[_0x404098(_0x46faee._0x4b81fd,_0x46faee._0x17f46c,_0x46faee._0x19705d,0x46a)],'reasoning':_0x3460a7[_0x3b651c(-0x112,-0x129,-0x4d,-0xd6)],'providerSessionResolver':_0x3460a7[_0x3b651c(-0x113,-_0x46faee._0x1c050c,-_0x46faee._0x595cbf,-_0x46faee._0x402506)],'requestMutators':_0x3460a7[_0x3b651c(-0xdb,-_0x46faee._0x2249b0,-_0x46faee._0x15662,-0x160)]});return;}this[_0x3b651c(-_0x46faee._0x4db5b4,-_0x46faee._0x51716f,-0x1f4,-0x178)]=new OpenAiModel({'apiKey':_0x3460a7[_0x404098(_0x46faee._0x1a7c73,0x473,_0x46faee._0x14c457,_0x46faee._0x4cdcad)],'baseUrl':_0x24c9d6,'fetch':_0x3460a7[_0x404098(_0x46faee._0x26030f,0x35b,_0x46faee._0x37ad38,_0x46faee._0x44dbbb)],'headerResolver':_0x3460a7[_0x3b651c(-_0x46faee._0x2bfabf,-0x1ef,-0x12f,-0x233)],'maxTokens':this[_0x404098(0x365,0x2cf,_0x46faee._0x3cffd7,0x349)],'model':this[_0x404098(0x407,0x3b8,_0x46faee._0x446926,_0x46faee._0xa7ec24)],'reasoning':_0x3460a7[_0x404098(_0x46faee._0x46072d,_0x46faee._0x3de074,0x3f7,0x3f8)],'providerSessionResolver':_0x3460a7[_0x404098(_0x46faee._0x4378b9,_0x46faee._0x28424c,0x3a7,0x3f7)],'requestMutators':_0x3460a7[_0x404098(0x4b8,_0x46faee._0x2be7a8,0x3b1,0x42f)],'webSocketFactory':_0x3460a7[_0x404098(0x411,_0x46faee._0x4e00e4,0x31b,0x3bb)]});}['getAnthropicDelegate'](){const _0x3f9180={_0x3561fc:0x217,_0x4822a2:0x1f1,_0x1da795:0x147,_0x104915:0x3e,_0x40c19e:0x117},_0xbbca3a={_0x168c8b:0x16c},_0x195d58={_0xcf27a3:0x10c};function _0x4260f5(_0x5ed42f,_0x513a2b,_0x546415,_0x20e8c3){return _0x3749d0(_0x5ed42f-_0x195d58._0xcf27a3,_0x513a2b-0xed,_0x513a2b- -0x10b,_0x20e8c3);}function _0x408ed8(_0x1d0658,_0x487194,_0x13bf40,_0x21b548){return _0x5da579(_0x13bf40- -0x318,_0x487194-_0xbbca3a._0x168c8b,_0x13bf40-0x27,_0x1d0658);}if(!this[_0x4260f5(-_0x3f9180._0x3561fc,-0x153,-_0x3f9180._0x4822a2,-0x115)])throw new Error('Anthropic\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x408ed8(0x12f,_0x3f9180._0x1da795,0x10c,_0x3f9180._0x104915)]);return this[_0x4260f5(-0xc8,-0x153,-_0x3f9180._0x40c19e,-0x175)];}[_0x5da579(0x33d,0x3f2,0x320,0x3b7)](){const _0x3c3b02={_0x5c17b9:0x9f,_0x2240d3:0x1c2,_0x3a418c:0x58,_0x59487b:0x63,_0xe025dd:0xfd,_0x14cecb:0x10b,_0x5156ac:0x1ae},_0x5ccca5={_0x152f4f:0x173};if(!this[_0xc9c297(-_0x3c3b02._0x5c17b9,-0x10b,-_0x3c3b02._0x2240d3,-_0x3c3b02._0x3a418c)])throw new Error(_0xc9c297(-_0x3c3b02._0x59487b,-0x55,0x1b,0x3c)+this['surface']);function _0x14fbd8(_0x302c81,_0x470fb2,_0x54d928,_0x593b8a){return _0x3749d0(_0x302c81-0xbd,_0x470fb2-0x44,_0x302c81-0x380,_0x470fb2);}function _0xc9c297(_0x2b3a9b,_0x5792cb,_0x317e32,_0x2a1836){return _0x3749d0(_0x2b3a9b-0x4e,_0x5792cb-0x7c,_0x5792cb- -_0x5ccca5._0x152f4f,_0x317e32);}return this[_0xc9c297(-_0x3c3b02._0xe025dd,-_0x3c3b02._0x14cecb,-_0x3c3b02._0x5156ac,-0x107)];}[_0x5da579(0x304,0x394,0x344,0x39f)](_0x8a85e0,_0x57be90){const _0x25587d={_0x1ecab3:0x163,_0xbc20e3:0x1aa,_0x46798d:0x94,_0x332500:0x57,_0x2fdc41:0x31,_0x3b5df5:0x7c,_0x3c64c3:0x12c,_0x504870:0xd4,_0x24d331:0x10f,_0x2964eb:0xa3,_0x399a06:0x96,_0x20c669:0x5f,_0xe5374:0xee},_0xf60dac={_0x5c960a:0xa2,_0x291f97:0x3e};function _0x1d342f(_0x2b11ac,_0x17edf2,_0x51b6a5,_0x498053){return _0x3749d0(_0x2b11ac-_0xf60dac._0x5c960a,_0x17edf2-0x112,_0x2b11ac-_0xf60dac._0x291f97,_0x51b6a5);}function _0x145215(_0x5e15ef,_0x656c49,_0x2f7207,_0x1fee7b){return _0x5da579(_0x2f7207- -0x44b,_0x656c49-0x10a,_0x2f7207-0x4b,_0x5e15ef);}switch(this[_0x1d342f(0x17d,0x133,_0x25587d._0x1ecab3,_0x25587d._0xbc20e3)]){case _0x1d342f(_0x25587d._0x46798d,0xbf,0xc7,0xa8):return this[_0x145215(-0x86,-_0x25587d._0x332500,-0xe4,-0xca)]()['complete'](_0x8a85e0,_0x57be90);case _0x1d342f(0x9a,-_0x25587d._0x2fdc41,-0x1a,0x28):return this[_0x145215(-_0x25587d._0x3b5df5,-0x90,-0x10e,-_0x25587d._0x3c64c3)]()['response'](_0x8a85e0,_0x57be90);case _0x145215(-0x1a1,-_0x25587d._0x504870,-_0x25587d._0x24d331,-_0x25587d._0x2964eb):return this['getOpenAiDelegate']()[_0x1d342f(0x13b,0x1a7,0x1ad,0xce)](_0x8a85e0,_0x57be90);default:return this[_0x1d342f(_0x25587d._0x399a06,0x7d,_0x25587d._0x20c669,_0x25587d._0xe5374)]()['chatComplete'](_0x8a85e0,_0x57be90);}}[_0x3749d0(0x7d,0x22,0xad,-0xf)](_0x44b84f,_0x16643d){const _0xbf7435={_0x3554c4:0xe0,_0x1ca00b:0x50,_0x4fccef:0x4,_0x3883fd:0x124,_0xcfea87:0x31,_0x3cf692:0xf,_0x1a7570:0x47,_0x3ddcc3:0x18,_0x2f71bd:0x9c,_0x5ae3d7:0x9d,_0x5835bc:0x10,_0x780f2:0x61,_0x385773:0x5f},_0x25ebc6={_0x204f7e:0x168},_0x1f97d0={_0x3756f8:0x1e6,_0x2ea229:0x76};function _0x1da07d(_0xa0c7a5,_0x4c9e08,_0x213234,_0x282194){return _0x3749d0(_0xa0c7a5-0x81,_0x4c9e08-_0x1f97d0._0x3756f8,_0x213234- -_0x1f97d0._0x2ea229,_0x4c9e08);}function _0x1f834a(_0x9b183e,_0x53faf1,_0x4cb3b2,_0x1f26d8){return _0x5da579(_0x1f26d8- -0x3d9,_0x53faf1-0x5b,_0x4cb3b2-_0x25ebc6._0x204f7e,_0x9b183e);}switch(this[_0x1da07d(_0xbf7435._0x3554c4,0x19a,0xc9,0xe5)]){case _0x1f834a(-0xb7,-0xff,0x25,-0x9e):return this[_0x1f834a(_0xbf7435._0x1ca00b,_0xbf7435._0x4fccef,-_0xbf7435._0x3883fd,-0x72)]()[_0x1f834a(_0xbf7435._0xcfea87,-0xa3,-_0xbf7435._0x3cf692,-_0xbf7435._0x1a7570)](_0x44b84f,_0x16643d);case'openai-responses':return this[_0x1f834a(-_0xbf7435._0x3ddcc3,-0x2f,-0xf4,-_0xbf7435._0x2f71bd)]()['responseStream'](_0x44b84f,_0x16643d);case _0x1f834a(-0x23,-0x32,0x29,-_0xbf7435._0x5ae3d7):return this[_0x1f834a(_0xbf7435._0x5835bc,-0x34,-0xc6,-0x9c)]()['responseSocketStream'](_0x44b84f,_0x16643d);default:return this['getOpenAiDelegate']()[_0x1da07d(-0x22,_0xbf7435._0x780f2,0x58,_0xbf7435._0x385773)](_0x44b84f,_0x16643d);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x5da579(0x38d,0x36d,0x321,0x2eb)];[_0x3749d0(-0x2a,0x7f,0x34,0xa6)];[_0x5da579(0x3f8,0x48b,0x3af,0x3f8)];[_0x5da579(0x2d4,0x2c2,0x2db,0x309)];[_0x3749d0(0x78,0x84,0xe3,0x1ab)];constructor(_0x19fafe){const _0xc20a10={_0x584647:0x410,_0x11da17:0x3b1,_0x3106b8:0x3bd,_0x51ea94:0x357,_0x270f50:0x342,_0x1f31b2:0x389,_0x316bfe:0x409,_0x2092a7:0x46d,_0x312362:0x4c2,_0x552fb9:0x4ee,_0x567a94:0x48d,_0x29ca9d:0x509},_0x54c3ef={_0x52dc8b:0x1c2},_0x55412a={_0x219580:0x83,_0x9a5cc0:0x17c};function _0x9b4fa6(_0x3fa441,_0x40f8c5,_0xdaf978,_0x186a59){return _0x5da579(_0x3fa441-_0x55412a._0x219580,_0x40f8c5-0x1ad,_0xdaf978-_0x55412a._0x9a5cc0,_0xdaf978);}function _0x1af7f0(_0x5d900f,_0x5a1018,_0x52a541,_0x3feadb){return _0x5da579(_0x5a1018-0xfa,_0x5a1018-_0x54c3ef._0x52dc8b,_0x52a541-0x6b,_0x5d900f);}this['accessToken']=_0x19fafe[_0x9b4fa6(_0xc20a10._0x584647,0x454,0x4c3,0x376)],this['baseUrl']=trimTrailingSlashes2(_0x19fafe['baseUrl']),this['fetchImpl']=_0x19fafe[_0x1af7f0(0x403,_0xc20a10._0x11da17,_0xc20a10._0x3106b8,0x3b2)],this[_0x9b4fa6(_0xc20a10._0x51ea94,0x416,_0xc20a10._0x270f50,_0xc20a10._0x1f31b2)]=trimTrailingSlashes2(_0x19fafe[_0x9b4fa6(_0xc20a10._0x51ea94,0x408,_0xc20a10._0x316bfe,0x2b8)]),this[_0x1af7f0(_0xc20a10._0x2092a7,_0xc20a10._0x312362,_0xc20a10._0x552fb9,0x4ee)]=_0x19fafe[_0x1af7f0(_0xc20a10._0x567a94,0x4c2,_0xc20a10._0x29ca9d,0x42b)];}async[_0x3749d0(0x114,0xb6,0xd3,0x18f)](_0x5ef3be){const _0x13efad={_0x25767d:0x1b2,_0x1425ba:0x102,_0xc14bc8:0x98,_0x44dce8:0x5f,_0x5a00a8:0x1,_0x3ac82b:0x204,_0x4c1a15:0x21c,_0x4e77b6:0x260,_0x59b595:0xee,_0xd8828e:0x13f,_0x495068:0x1ad,_0x2b1e83:0x24f,_0x187241:0x81,_0x4474dc:0x12a,_0x5b19a5:0x18c,_0x1778f6:0x1f5,_0x39cd71:0x2c0,_0x419a07:0x322,_0x250406:0x219,_0x9bf6f7:0x161,_0x497261:0x178,_0x289ead:0x231,_0x27a6d2:0x279,_0x1d1eaa:0x14d,_0x4a162e:0xdd,_0x5d1f74:0x4c,_0x1f03f7:0x170,_0x336193:0x17e,_0x6335ba:0x207,_0x113f1f:0x10f,_0x3b9219:0x108,_0x60d593:0x18f},_0x28ed22={_0x48c4e3:0x1d4},_0x5c240f={_0x5eaa8f:0x41},_0x2d9e23=await this[_0x591bdd(0x1bc,0x1d8,_0x13efad._0x25767d,_0x13efad._0x1425ba)](this[_0x591bdd(_0x13efad._0xc14bc8,0x24,_0x13efad._0x44dce8,-_0x13efad._0x5a00a8)]+_0x591bdd(0x148,_0x13efad._0x3ac82b,_0x13efad._0x4c1a15,0xc1),{'method':_0x591bdd(0x196,0x1e2,0x10d,_0x13efad._0x4e77b6),'headers':new Headers({'accept':_0x591bdd(_0x13efad._0x59b595,_0x13efad._0xd8828e,0x1a,_0x13efad._0x495068),'authorization':'Bearer\x20'+this['accessToken'],'editor-version':_0x7a28cc(-0x2e6,-0x245,-0x2a9,-_0x13efad._0x2b1e83),'user-agent':_0x591bdd(0xce,0xbc,0x64,_0x13efad._0x187241),'x-github-api-version':this[_0x591bdd(0x18c,_0x13efad._0x4474dc,0x191,_0x13efad._0x5b19a5)]}),'signal':_0x5ef3be});function _0x591bdd(_0x36ed88,_0x466514,_0x4ab6cc,_0x4e2988){return _0x5da579(_0x36ed88- -0x23c,_0x466514-_0x5c240f._0x5eaa8f,_0x4ab6cc-0x1f4,_0x4e2988);}if(!_0x2d9e23['ok'])return{'credential':{'kind':_0x7a28cc(-_0x13efad._0x1778f6,-_0x13efad._0x39cd71,-_0x13efad._0x419a07,-0x345),'value':this['accessToken']},'endpoints':{'api':this['baseUrl']}};const _0x231349=await _0x2d9e23['json']();function _0x7a28cc(_0x3530df,_0x479375,_0x2b7de3,_0x13071d){return _0x3749d0(_0x3530df-0x177,_0x479375-_0x28ed22._0x48c4e3,_0x479375- -0x2b5,_0x13071d);}return{'credential':{'kind':_0x7a28cc(-0x2b3,-0x22e,-0x286,-0x2b0),'value':_0x231349['token']??this[_0x7a28cc(-_0x13efad._0x250406,-0x20d,-_0x13efad._0x9bf6f7,-0x2df)]},'endpoints':{'api':_0x231349[_0x7a28cc(-0x21c,-_0x13efad._0x497261,-_0x13efad._0x289ead,-0x10f)]?.[_0x591bdd(0x1fd,_0x13efad._0x27a6d2,_0x13efad._0x1d1eaa,0x1a5)]??this[_0x591bdd(_0x13efad._0x4a162e,0xd7,_0x13efad._0x5d1f74,0x187)],'originTracker':_0x231349[_0x591bdd(0x1e6,0x22a,_0x13efad._0x1f03f7,_0x13efad._0x497261)]?.['origin-tracker'],'proxy':_0x231349[_0x7a28cc(-_0x13efad._0x336193,-_0x13efad._0x497261,-0x1a4,-0x126)]?.[_0x7a28cc(-0x261,-_0x13efad._0x6335ba,-0x2d6,-0x162)],'telemetry':_0x231349['endpoints']?.[_0x591bdd(_0x13efad._0x113f1f,_0x13efad._0x3b9219,_0x13efad._0x60d593,0x152)]}};}};function trimTrailingSlashes2(_0x30a45a){const _0x4da455={_0x1c57e5:0x2ba,_0x13690e:0x1d8,_0xddb6ce:0x2e4,_0x574851:0x222};function _0xb8279d(_0x47f2da,_0x3f956a,_0x3453d4,_0x2526fd){return _0x5da579(_0x2526fd- -0x9e,_0x3f956a-0x76,_0x3453d4-0x187,_0x3453d4);}return _0x30a45a[_0xb8279d(_0x4da455._0x1c57e5,_0x4da455._0x13690e,_0x4da455._0xddb6ce,_0x4da455._0x574851)](/\/+$/,'');}function _0x5da579(_0x263f4d,_0x37a877,_0x5a315a,_0x27b14a){const _0x5723c2={_0x3b5a73:0x214};return _0x1568(_0x263f4d-_0x5723c2._0x3b5a73,_0x27b14a);}function createModelInfo(_0x2d7d7f){const _0x26219c={_0x534622:0x21b,_0x1e8f98:0x2ee,_0x2100dc:0x23f,_0x3472a0:0x36,_0x2a9264:0x24,_0x187b84:0x3f,_0x14f36e:0x276,_0x190d56:0x292,_0x58ea7d:0x1d9,_0x3e782c:0x1d8,_0x35965d:0x1b6,_0x22c723:0x19c,_0x15988b:0x27b},_0x37f454={_0x41e4bf:0x3bc,_0x19333e:0xd5},_0x15702e={_0x47f52d:0xab},_0x51a847=_0x2d7d7f['supported_endpoints']??_0x2d7d7f[_0x328cfe(-_0x26219c._0x534622,-_0x26219c._0x1e8f98,-0x1f6,-_0x26219c._0x2100dc)];function _0x328cfe(_0xa6094a,_0x206055,_0x341d40,_0x585eb3){return _0x5da579(_0xa6094a- -0x5e0,_0x206055-_0x15702e._0x47f52d,_0x341d40-0xe5,_0x341d40);}const _0x5515a7=_0x2d7d7f[_0x4ce7cd(_0x26219c._0x3472a0,-0x6d,_0x26219c._0x2a9264,_0x26219c._0x187b84)]?.[_0x328cfe(-0x26e,-_0x26219c._0x14f36e,-_0x26219c._0x190d56,-_0x26219c._0x58ea7d)]?.[_0x328cfe(-_0x26219c._0x3e782c,-0x128,-0x271,-_0x26219c._0x35965d)],_0xb7836f=_0x2d7d7f[_0x328cfe(-0x1ee,-_0x26219c._0x22c723,-0x1ee,-_0x26219c._0x15988b)]?.['limits']?.['max_output_tokens'],_0x184115=_0x5515a7!==void 0x0||_0xb7836f!==void 0x0?{..._0x5515a7!==void 0x0?{'contextWindow':_0x5515a7}:{},..._0xb7836f!==void 0x0?{'maxOutput':_0xb7836f}:{}}:void 0x0;function _0x4ce7cd(_0xa68360,_0x1125df,_0x30682d,_0x4a0ca3){return _0x5da579(_0xa68360- -_0x37f454._0x41e4bf,_0x1125df-0xbf,_0x30682d-_0x37f454._0x19333e,_0x4a0ca3);}return{'id':_0x2d7d7f['id'],'name':_0x2d7d7f['name']??_0x2d7d7f['id'],..._0x184115?{'limits':_0x184115}:{},..._0x51a847?{'supportedEndpoints':_0x51a847}:{}};}function deduplicateModels(_0x20db81){const _0x59bc12={_0x2f1745:0x150,_0x511489:0x161,_0x310004:0x1fa,_0x392c75:0x19b,_0x44f71e:0x24c,_0x2c3bfd:0x1c0,_0x8554e1:0x124,_0x5da064:0x99,_0x242ab5:0x18b},_0x43d762={_0x16a46a:0xb1},_0x15d1ef={_0x50b930:0x49e,_0x3db14e:0x6,_0x472cf3:0xbc},_0x580c29=new Map();for(const _0x436568 of _0x20db81){!_0x580c29[_0x537800(-0x110,-0xa3,-_0x59bc12._0x2f1745,-0x11c)](_0x436568['id'])&&_0x580c29[_0x537800(-0x183,-_0x59bc12._0x511489,-0x1aa,-_0x59bc12._0x310004)](_0x436568['id'],_0x436568);}function _0x505aef(_0x36f1ca,_0x55b322,_0x40de1d,_0xaa3dc5){return _0x5da579(_0x36f1ca- -_0x15d1ef._0x50b930,_0x55b322-_0x15d1ef._0x3db14e,_0x40de1d-_0x15d1ef._0x472cf3,_0x55b322);}function _0x537800(_0x2e8062,_0x5c0340,_0x2cd6de,_0x24ba0c){return _0x3749d0(_0x2e8062-0x107,_0x5c0340-_0x43d762._0x16a46a,_0x24ba0c- -0x20e,_0x5c0340);}return Array[_0x505aef(-0x196,-_0x59bc12._0x392c75,-_0x59bc12._0x44f71e,-_0x59bc12._0x2c3bfd)](_0x580c29[_0x505aef(-_0x59bc12._0x8554e1,-_0x59bc12._0x5da064,-0x127,-_0x59bc12._0x242ab5)]());}function hasUserPromptContent(_0x190285){const _0x389760={_0x5e30e5:0x230,_0x31b1ac:0x160,_0x278bd0:0x18e},_0xa125fe={_0x27aa69:0x36,_0x42bdcf:0x25,_0x1d82ea:0x2d,_0x44a587:0x30,_0x1c813c:0x1c,_0x4bf0d8:0xa0,_0x3fcb66:0x87,_0x8b6fc8:0x120,_0x425ca3:0x128,_0x1e504e:0x5f,_0x1e238d:0x10,_0x29f9eb:0xad,_0x36a1fe:0x2f,_0xfab791:0x7a,_0x2d985e:0x46,_0x57d31f:0x4a,_0x46efbb:0x3b,_0x4b60c7:0x114,_0xbef480:0x6f,_0x54b76d:0xf4},_0x291d1d={_0x52c1ba:0x14a,_0x54bade:0x91},_0x3c0583={_0x2b839e:0xab},_0x1e7727={_0x51735e:0x2fc},_0x2e0ee3={_0x1aec8c:0x65,_0x2a3288:0x1a5,_0x1785cb:0x201};if(typeof _0x190285===_0xce018(-0x12e,-0x16b,-0x145,-0xf9))return _0x190285['trim']()[_0xce018(-0x162,-0x1a7,-_0x389760._0x5e30e5,-_0x389760._0x31b1ac)]>0x0;function _0xce018(_0x309686,_0x299b29,_0x54a0f0,_0x39349d){return _0x3749d0(_0x309686-_0x2e0ee3._0x1aec8c,_0x299b29-_0x2e0ee3._0x2a3288,_0x54a0f0- -_0x2e0ee3._0x1785cb,_0x309686);}function _0x528b32(_0x4cdb9a,_0x3d84f9,_0x45209d,_0x2b3a90){return _0x3749d0(_0x4cdb9a-0xc1,_0x3d84f9-0x147,_0x3d84f9-_0x1e7727._0x51735e,_0x45209d);}if(!Array[_0xce018(-0xf8,-0x1a9,-_0x389760._0x278bd0,-0x18b)](_0x190285))return![];return _0x190285['some'](_0x5122b3=>{function _0x3f60bf(_0x22ec14,_0x2d4d10,_0x182e7f,_0x2a2835){return _0x528b32(_0x22ec14-_0x3c0583._0x2b839e,_0x182e7f- -0x36b,_0x2a2835,_0x2a2835-0xf6);}if(!_0x5122b3||typeof _0x5122b3!==_0x3f60bf(-0xaf,-_0xa125fe._0x27aa69,-0xa4,-_0xa125fe._0x42bdcf))return![];function _0x134069(_0x3e5c8c,_0x4ede34,_0x211424,_0x47fd3f){return _0xce018(_0x4ede34,_0x4ede34-_0x291d1d._0x52c1ba,_0x3e5c8c-0xb1,_0x47fd3f-_0x291d1d._0x54bade);}const _0x2180dc=_0x5122b3;return(_0x2180dc['type']===_0x3f60bf(_0xa125fe._0x1d82ea,_0xa125fe._0x44a587,-_0xa125fe._0x1c813c,_0xa125fe._0x4bf0d8)||_0x2180dc[_0x3f60bf(-_0xa125fe._0x3fcb66,-_0xa125fe._0x8b6fc8,-0x65,-_0xa125fe._0x425ca3)]==='text')&&typeof _0x2180dc[_0x134069(-0x10,_0xa125fe._0x1e504e,-0x1a,0xa4)]==='string'&&_0x2180dc[_0x134069(-_0xa125fe._0x1e238d,-_0xa125fe._0x29f9eb,_0xa125fe._0x36a1fe,_0xa125fe._0xfab791)][_0x134069(-_0xa125fe._0x2d985e,-_0xa125fe._0x57d31f,_0xa125fe._0x46efbb,0x57)]()[_0x3f60bf(-_0xa125fe._0x4b60c7,-_0xa125fe._0xbef480,-0x9e,-_0xa125fe._0x54b76d)]>0x0;});}function _isUserPromptEntry(_0xbc4712){const _0x3eb99d={_0x4cc355:0x136,_0x5ba836:0x128,_0x15889f:0x108,_0x5d3ff0:0x11,_0x3ff019:0x20,_0x4bc7ed:0x3e,_0x4e3281:0x265,_0x21328f:0x24a,_0x1b36b5:0x24d,_0x82e025:0x2e7,_0x2de8b3:0xf,_0x2afc8b:0x94,_0xe6d252:0x33,_0xfbffd:0x5b,_0x49abe8:0x199,_0x1a7f04:0x68,_0x5896d8:0x12f,_0xaf6d9a:0x21b},_0x222c02={_0x430728:0x51},_0x21b905={_0x425809:0xc1,_0x594be1:0x1b1};if(!_0xbc4712||typeof _0xbc4712!==_0x13bbc2(0x17c,_0x3eb99d._0x4cc355,_0x3eb99d._0x5ba836,_0x3eb99d._0x15889f))return![];function _0x13bbc2(_0x316ec8,_0x3f7a6f,_0x269316,_0x7ae706){return _0x3749d0(_0x316ec8-_0x21b905._0x425809,_0x3f7a6f-0xea,_0x316ec8-_0x21b905._0x594be1,_0x3f7a6f);}const _0x35a50a=_0xbc4712;function _0x1731a1(_0x3e474f,_0x2ca0da,_0xf7d0e4,_0x1e7478){return _0x3749d0(_0x3e474f-0x1b3,_0x2ca0da-0x126,_0x1e7478-_0x222c02._0x430728,_0x3e474f);}if(_0x35a50a[_0x1731a1(0xbd,-_0x3eb99d._0x5d3ff0,_0x3eb99d._0x3ff019,_0x3eb99d._0x4bc7ed)]!==_0x13bbc2(_0x3eb99d._0x4e3281,_0x3eb99d._0x21328f,_0x3eb99d._0x1b36b5,_0x3eb99d._0x82e025))return![];if(_0x35a50a[_0x1731a1(-_0x3eb99d._0x2de8b3,_0x3eb99d._0x2afc8b,-_0x3eb99d._0xe6d252,_0x3eb99d._0xfbffd)]!==void 0x0&&_0x35a50a['type']!==_0x1731a1(_0x3eb99d._0x49abe8,_0x3eb99d._0x1a7f04,0x7d,_0x3eb99d._0x5896d8))return![];return hasUserPromptContent(_0x35a50a[_0x1731a1(0x85,_0x3eb99d._0xaf6d9a,0x1c8,0x155)]);}function _0x1568(_0x422392,_0x4e3da9){_0x422392=_0x422392-0x81;const _0x4b3349=_0x4b33();let _0x156817=_0x4b3349[_0x422392];if(_0x1568['VlYcZO']===undefined){var _0x136c29=function(_0x42467d){const _0x332a2b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d7c56='',_0x2aeec5='';for(let _0x56bf08=0x0,_0x10f08a,_0x57c5e7,_0x25d565=0x0;_0x57c5e7=_0x42467d['charAt'](_0x25d565++);~_0x57c5e7&&(_0x10f08a=_0x56bf08%0x4?_0x10f08a*0x40+_0x57c5e7:_0x57c5e7,_0x56bf08++%0x4)?_0x5d7c56+=String['fromCharCode'](0xff&_0x10f08a>>(-0x2*_0x56bf08&0x6)):0x0){_0x57c5e7=_0x332a2b['indexOf'](_0x57c5e7);}for(let _0x357d2e=0x0,_0x29dbcf=_0x5d7c56['length'];_0x357d2e<_0x29dbcf;_0x357d2e++){_0x2aeec5+='%'+('00'+_0x5d7c56['charCodeAt'](_0x357d2e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2aeec5);};_0x1568['jezuIT']=_0x136c29,_0x1568['LayjdW']={},_0x1568['VlYcZO']=!![];}const _0x5acdad=_0x4b3349[0x0],_0x32cd95=_0x422392+_0x5acdad,_0x471951=_0x1568['LayjdW'][_0x32cd95];return!_0x471951?(_0x156817=_0x1568['jezuIT'](_0x156817),_0x1568['LayjdW'][_0x32cd95]=_0x156817):_0x156817=_0x471951,_0x156817;}function determineInitiator(_0x595c6b){const _0xc4f9b7={_0x4fca6e:0x3ef,_0x2a06f9:0x1de,_0x2a7138:0x1aa,_0x2386ec:0x550,_0x2c9024:0x53f,_0x2bdacf:0x446,_0x4defe5:0x3ee,_0x755983:0x4a5,_0x44a78e:0x174,_0x597062:0x1aa,_0x131ca7:0x128,_0x176bc4:0x1c6,_0x41317d:0x337,_0x5484af:0x42f,_0x48e3c0:0x43f},_0x381774={_0x128899:0x96},_0x77dd96={_0x3f2a1a:0x47c,_0x37fe2f:0xe2};function _0x24dcac(_0x2b7b13,_0x4df0e8,_0x1093ae,_0x4a59e1){return _0x5da579(_0x1093ae- -_0x77dd96._0x3f2a1a,_0x4df0e8-0x1a8,_0x1093ae-_0x77dd96._0x37fe2f,_0x4a59e1);}if(!_0x595c6b||typeof _0x595c6b!==_0x58542a(_0xc4f9b7._0x4fca6e,0x31b,0x346,0x2a8))return _0x24dcac(-_0xc4f9b7._0x2a06f9,-0x159,-0x1a7,-_0xc4f9b7._0x2a7138);const _0x27da76=_0x24dcac(-0xde,0x2c,-0x6b,-0xa0)in _0x595c6b?_0x595c6b[_0x58542a(0x548,_0xc4f9b7._0x2386ec,0x4a7,_0xc4f9b7._0x2c9024)]:_0x24dcac(-0x1b8,-0x1a9,-0x1d2,-0x176)in _0x595c6b?_0x595c6b['input']:void 0x0;function _0x58542a(_0x4d2950,_0x1d0af8,_0x47cdec,_0x507560){return _0x5da579(_0x47cdec-_0x381774._0x128899,_0x1d0af8-0x1ae,_0x47cdec-0x4e,_0x507560);}if(!Array[_0x58542a(0x3d4,_0xc4f9b7._0x2bdacf,_0xc4f9b7._0x4defe5,_0xc4f9b7._0x755983)](_0x27da76)||_0x27da76['length']===0x0)return _0x24dcac(-_0xc4f9b7._0x44a78e,-_0xc4f9b7._0x597062,-0x1a7,-_0xc4f9b7._0x131ca7);return _isUserPromptEntry(_0x27da76[_0x27da76[_0x24dcac(-0x1bf,-0x17c,-_0xc4f9b7._0x176bc4,-0x256)]-0x1])?_0x24dcac(-0x167,-0x3c,-0xe3,-0xb8):_0x58542a(_0xc4f9b7._0x41317d,_0xc4f9b7._0x5484af,0x36b,_0xc4f9b7._0x48e3c0);}function isUnsupportedApiForModel(_0x5aa8e5){const _0x3116c6={_0xc56dab:0x2ed,_0x4de00a:0x4f,_0x284df7:0x2e,_0x488f2c:0xbe},_0x4c72db={_0x551289:0x1,_0x4ede14:0x101},_0x1b5925={_0x1a6eb8:0x1a8,_0x9a8d88:0xd9};function _0xdb32f5(_0x50123e,_0x5062a8,_0x51cb6d,_0x201347){return _0x3749d0(_0x50123e-_0x1b5925._0x1a6eb8,_0x5062a8-_0x1b5925._0x9a8d88,_0x5062a8-0x19b,_0x50123e);}function _0x424bc1(_0x5e0f0f,_0x5e491b,_0xa5aec8,_0x3b2da3){return _0x3749d0(_0x5e0f0f-0xec,_0x5e491b-_0x4c72db._0x551289,_0x5e0f0f- -_0x4c72db._0x4ede14,_0x5e491b);}return _0x5aa8e5[_0xdb32f5(0x2fe,_0x3116c6._0xc56dab,0x2de,0x2c2)](_0x424bc1(_0x3116c6._0x4de00a,-0x76,-_0x3116c6._0x284df7,_0x3116c6._0x488f2c));}function createResponseError(_0xe61203,_0xc81aac){const _0xd23ecd={_0x253979:0x3fc,_0x11776c:0x43c,_0x5cbf65:0x473,_0x59b2a5:0x362,_0x29028b:0x3d0},_0x327171={_0x1ff085:0xc1};if(_0xe61203===0x191||_0xe61203===0x193)return new Error(_0x15978d(_0xd23ecd._0x253979,0x3f3,0x440,0x32b));function _0x270b8b(_0x5c0002,_0x1a038b,_0x3c7e18,_0x127bd7){return _0x5da579(_0x3c7e18- -0x94,_0x1a038b-0x134,_0x3c7e18-0x22,_0x127bd7);}if(_0xe61203===0x198||_0xe61203===0x1ad)return new Error(_0x15978d(0x4a1,_0xd23ecd._0x11776c,0x4ec,_0xd23ecd._0x5cbf65));function _0x15978d(_0x38702e,_0x106c47,_0x261172,_0x570376){return _0x3749d0(_0x38702e-_0x327171._0x1ff085,_0x106c47-0x12b,_0x106c47-0x3c3,_0x261172);}if(_0xe61203===0x190)return new Error(_0x15978d(_0xd23ecd._0x59b2a5,_0xd23ecd._0x29028b,0x335,0x35e)+_0xc81aac);return new Error(_0xc81aac||_0x15978d(0x53d,0x505,0x45c,0x49a)+_0xe61203);}var GitHubModel=class extends OpenAiModel{[_0x5da579(0x29d,0x2e1,0x2dc,0x1e5)];[_0x5da579(0x2e2,0x20e,0x283,0x228)]=new Map();[_0x5da579(0x424,0x36d,0x402,0x3ff)];constructor(_0x494912={}){const _0x3ed941={_0x2c5d48:0x50,_0x1ef387:0x3,_0x355329:0x55,_0x5041ea:0x1f7,_0xee7429:0xc0,_0x2ba896:0xdb,_0x2ec404:0x2b,_0x2a7e3a:0x3b,_0x3b65eb:0x62,_0x43052a:0x9,_0x56fa54:0x48,_0x19b821:0x1ac,_0x34cdea:0x169,_0x204100:0x1fc,_0x201a9f:0x142,_0x539fdf:0x1fb,_0x590bbe:0x164,_0x1e92ef:0x162,_0x1941e5:0x6a,_0x3db846:0xe2,_0x5d30b5:0xa2,_0xc116f9:0xf9,_0x1fd03d:0x13,_0x29796d:0x1a,_0x20cedc:0x14a,_0x8a3eac:0x15,_0x37539b:0x34,_0x478ca7:0x2e,_0x490262:0x34,_0x1e68da:0xff,_0x5cff83:0x241,_0x2323de:0x19a,_0x545764:0x94,_0x49c030:0x163,_0x212680:0x70,_0x1cfec3:0x97,_0x11c69d:0xce,_0x3f358d:0x3a,_0xb8d650:0xf3,_0x412f16:0xa8,_0x327cac:0x12c,_0xd77b3c:0x63,_0xfb04eb:0x1d6,_0x3f5b85:0x122,_0x5e3717:0x119},_0x507896={_0x886e0d:0x144,_0x25a57a:0x37},_0x6b6513={_0x1c7368:0xea,_0x531fac:0x1ea};function _0x237b23(_0x2bc032,_0x458f32,_0x5152bb,_0x55ec31){return _0x3749d0(_0x2bc032-0x37,_0x458f32-_0x6b6513._0x1c7368,_0x55ec31- -_0x6b6513._0x531fac,_0x2bc032);}const _0x25c9c5=trimTrailingSlashes2(_0x494912[_0x50e421(0xa0,_0x3ed941._0x2c5d48,-_0x3ed941._0x1ef387,-_0x3ed941._0x355329)]??_0x237b23(-0x194,-0x164,-0x222,-_0x3ed941._0x5041ea)),_0xb18fd6=_0x494912[_0x50e421(0x1d,-_0x3ed941._0xee7429,-0x65,-_0x3ed941._0x2ba896)]??globalThis['fetch'],_0x54e2f7=_0x494912[_0x50e421(_0x3ed941._0x2ec404,-_0x3ed941._0x2a7e3a,_0x3ed941._0x3b65eb,-_0x3ed941._0x43052a)]??(_0x494912[_0x50e421(-_0x3ed941._0x56fa54,0x111,0x71,-0x26)]?new GitHubAccessTokenResolver({'accessToken':_0x494912[_0x237b23(-_0x3ed941._0x19b821,-_0x3ed941._0x34cdea,-_0x3ed941._0x204100,-_0x3ed941._0x201a9f)],'baseUrl':_0x25c9c5,'fetch':_0xb18fd6,'githubApiUrl':_0x494912[_0x237b23(-0x258,-0x1c6,-0x155,-_0x3ed941._0x539fdf)]??_0x237b23(-0x208,-0xf5,-_0x3ed941._0x590bbe,-_0x3ed941._0x1e92ef),'tokenExchangeApiVersion':_0x494912['tokenExchangeApiVersion']??'2025-10-01'}):void 0x0),_0x5798f9=_0x494912[_0x50e421(-_0x3ed941._0x1941e5,_0x3ed941._0x3db846,0x2b,-0x4f)]??_0x237b23(-0x1b3,-_0x3ed941._0x5d30b5,-0xc8,-_0x3ed941._0xc116f9),_0x7378dc=_0x494912[_0x50e421(-_0x3ed941._0x1fd03d,0x45,-_0x3ed941._0x29796d,0x31)]??'copilot-chat/0.31.3',_0x5440ed=({body:_0x4fdfdf})=>{return{'editor-plugin-version':_0x7378dc,'editor-version':_0x5798f9,'x-initiator':determineInitiator(_0x4fdfdf),'x-request-id':randomUUID()};},_0x4eb54e={'apiKey':_0x494912[_0x50e421(0x9b,0x71,0x11f,0x122)],'baseUrl':_0x25c9c5,'fetch':_0xb18fd6,'maxTokens':_0x494912['maxTokens'],'model':_0x494912[_0x50e421(0x57,0x17c,0xd5,_0x3ed941._0x20cedc)],'reasoning':_0x494912[_0x50e421(-_0x3ed941._0x8a3eac,_0x3ed941._0x37539b,0x63,_0x3ed941._0x478ca7)],'providerSessionResolver':_0x54e2f7,'requestMutators':_0x494912['requestMutators'],'headerResolver':_0x5440ed};function _0x50e421(_0x8eb6f2,_0x1bdb81,_0x557868,_0x59ecc9){return _0x3749d0(_0x8eb6f2-0xd2,_0x1bdb81-_0x507896._0x886e0d,_0x557868- -_0x507896._0x25a57a,_0x1bdb81);}super(_0x4eb54e),this['surface']=_0x494912['surface']??_0x50e421(0x6a,_0x3ed941._0x490262,_0x3ed941._0x1e68da,0x1a9),this[_0x237b23(-0x24a,-_0x3ed941._0x5cff83,-_0x3ed941._0x2323de,-0x232)]=new AnthropicModel({'apiKey':_0x494912[_0x237b23(-0x135,0xd,-_0x3ed941._0x1ef387,-_0x3ed941._0x545764)],'authScheme':_0x237b23(-_0x3ed941._0x49c030,-_0x3ed941._0x212680,-0xbd,-_0x3ed941._0x1cfec3),'baseUrl':_0x25c9c5,'fetch':_0xb18fd6,'headerResolver':_0x5440ed,'maxTokens':_0x494912['maxTokens'],'model':_0x494912[_0x237b23(-_0x3ed941._0x11c69d,-_0x3ed941._0x3f358d,-_0x3ed941._0xb8d650,-0xde)],'reasoning':_0x494912[_0x50e421(_0x3ed941._0x412f16,_0x3ed941._0x327cac,_0x3ed941._0xd77b3c,0x73)],'providerSessionResolver':_0x54e2f7,'requestMutators':_0x494912[_0x237b23(-0xc9,-_0x3ed941._0xfb04eb,-_0x3ed941._0x3f5b85,-_0x3ed941._0x5e3717)]});}[_0x5da579(0x3b9,0x382,0x399,0x318)](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}[_0x5da579(0x3b4,0x3b3,0x488,0x435)](_0x2ae549){const _0xf2a2d0={_0x4b25cb:0x38,_0x330faa:0xe8,_0x17be05:0x3f1,_0x482e87:0x335,_0x569144:0x4e,_0x20d23b:0x115,_0x13f25f:0x93,_0x4a74ac:0x10c,_0x13dbc3:0x64,_0x4010ef:0x42,_0x102cbe:0x1d,_0x22a7cf:0x414},_0x301204={_0x21cf3b:0x5a},_0x4f6f7d={_0x48049c:0x68};function _0x2f56fd(_0xaaacb,_0x383bae,_0x45518e,_0x4d3fba){return _0x5da579(_0xaaacb- -0x3d3,_0x383bae-_0x4f6f7d._0x48049c,_0x45518e-0x10c,_0x45518e);}const _0x4327e5=this[_0x2f56fd(-0xf1,-0x134,-_0xf2a2d0._0x4b25cb,-_0xf2a2d0._0x330faa)][_0x6a2d1d(0x396,0x362,_0xf2a2d0._0x17be05,_0xf2a2d0._0x482e87)](_0x2ae549);function _0x6a2d1d(_0x3ca5c2,_0x2d589e,_0x10e50e,_0x31eaf8){return _0x5da579(_0x2d589e-0x5b,_0x2d589e-_0x301204._0x21cf3b,_0x10e50e-0x161,_0x10e50e);}if(!_0x4327e5)return![];return!_0x4327e5[_0x2f56fd(0x64,0x134,_0xf2a2d0._0x569144,_0xf2a2d0._0x20d23b)](_0x2f56fd(-0x104,-_0xf2a2d0._0x13f25f,-0x6e,-_0xf2a2d0._0x4a74ac))&&_0x4327e5[_0x2f56fd(_0xf2a2d0._0x13dbc3,-0x2d,-_0xf2a2d0._0x4010ef,_0xf2a2d0._0x102cbe)](_0x6a2d1d(0x391,0x3a0,_0xf2a2d0._0x22a7cf,0x2de));}[_0x5da579(0x334,0x26e,0x316,0x2f5)](_0x1c41c9){const _0x1f1b9f={_0x493d3c:0x194,_0x20f132:0x234,_0x170eed:0x176,_0x499742:0x267,_0x170feb:0x175,_0xc05ce6:0x1aa,_0x1c6356:0x15b,_0x322b64:0x25f,_0xbeae92:0x2a5,_0x6fd5e1:0x2cb,_0x30b4cc:0x1e5,_0x52ba0d:0x1c3,_0x5c195c:0x228,_0x181145:0x252,_0x549b8:0x110},_0x572a18={_0x20e519:0xce,_0x37e0e8:0x294},_0x6620fc={_0x22618c:0x16c,_0x3d2337:0x121},_0x32ad10=this[_0x5165c6(0x232,_0x1f1b9f._0x493d3c,_0x1f1b9f._0x20f132,_0x1f1b9f._0x170eed)][_0x5165c6(0x1c4,_0x1f1b9f._0x499742,0xcf,0x19b)](_0x1c41c9[_0x2ec8e8(-_0x1f1b9f._0x170feb,-0x188,-_0x1f1b9f._0xc05ce6,-0x173)]);if(!_0x32ad10)return![];function _0x5165c6(_0x2fd37b,_0x1f842d,_0x819686,_0x3346ab){return _0x5da579(_0x3346ab- -_0x6620fc._0x22618c,_0x1f842d-0x93,_0x819686-_0x6620fc._0x3d2337,_0x819686);}function _0x2ec8e8(_0x3d23f8,_0x35cd23,_0x380c9a,_0x249af7){return _0x3749d0(_0x3d23f8-_0x572a18._0x20e519,_0x35cd23-0x92,_0x35cd23- -_0x572a18._0x37e0e8,_0x249af7);}if(resolveOpenAiReasoningConfig(_0x1c41c9[_0x2ec8e8(-0x12a,-0x1fa,-_0x1f1b9f._0x1c6356,-0x1d5)]))return _0x32ad10[_0x5165c6(0x35b,_0x1f1b9f._0x322b64,_0x1f1b9f._0xbeae92,_0x1f1b9f._0x6fd5e1)](_0x5165c6(_0x1f1b9f._0x30b4cc,_0x1f1b9f._0x52ba0d,_0x1f1b9f._0x5c195c,0x1d9));return this[_0x2ec8e8(-_0x1f1b9f._0x181145,-0x1c5,-_0x1f1b9f._0x549b8,-0x1ec)](_0x1c41c9['model']);}[_0x5da579(0x2b2,0x219,0x221,0x2fe)](_0x22f763){const _0x469454={_0x25af8c:0x1ce,_0x5ce09b:0x17b,_0x330306:0xff},_0x38835d={_0xf6ed25:0x9c};function _0x59f3e8(_0x399039,_0x37f4cd,_0xaf1895,_0x36a51d){return _0x3749d0(_0x399039-_0x38835d._0xf6ed25,_0x37f4cd-0x150,_0x37f4cd- -0x1e2,_0xaf1895);}this['modelEndpointCache']['set'](_0x22f763,[_0x59f3e8(-_0x469454._0x25af8c,-0x182,-_0x469454._0x5ce09b,-_0x469454._0x330306)]);}['mapApiError'](_0x2475d5){const _0x39b68c={_0x382b21:0x536,_0x40e8e4:0x57b},_0x1ce9cf={_0x477a3a:0x400},_0x436375={_0x37723d:0x18a};function _0x27ded0(_0x161d24,_0x243e2c,_0x2380da,_0x2c2c42){return _0x5da579(_0x243e2c- -0x403,_0x243e2c-_0x436375._0x37723d,_0x2380da-0x10b,_0x2c2c42);}function _0x295d8b(_0x5dd06f,_0x46be98,_0x1dd9c5,_0xbedc2f){return _0x3749d0(_0x5dd06f-0x1b6,_0x46be98-0x11f,_0x46be98-_0x1ce9cf._0x477a3a,_0xbedc2f);}if(_0x2475d5 instanceof OpenAiApiError)return createResponseError(_0x2475d5[_0x295d8b(0x46e,0x4aa,_0x39b68c._0x382b21,_0x39b68c._0x40e8e4)],_0x2475d5[_0x27ded0(0xcc,0x1b,0xca,-0x44)]||_0x2475d5['message']);return _0x2475d5;}['completeViaConfiguredSurface'](_0x3bda2a,_0x5f29a6){const _0x2e3071={_0x14ec55:0x185,_0x266e3c:0x9b,_0x446df7:0x129,_0x46dd3c:0x464,_0x4aaa45:0x41d,_0x48c4ef:0x4cf,_0x191c10:0xb,_0x8e2ded:0x118,_0x157d51:0xdd,_0x2514ec:0x3c3,_0x27d9cd:0x307,_0x418cab:0x451,_0x323b90:0x4d1,_0x4950d8:0x472,_0x566a93:0x575,_0x1e8b1e:0x440,_0xfdf519:0x4ea,_0x5d06d2:0xe7,_0x54ee16:0x6a,_0x66f5bf:0x86,_0x3b5235:0x1f3,_0x12ed7b:0x120,_0x2035d5:0x408,_0x4535e5:0x568,_0x13f6fe:0x3da,_0x2f2f5f:0x3d9,_0x4e87cf:0x566},_0x1d03ac={_0x4ff12e:0x1ac},_0x4a7dab={_0x8d4b4d:0x2fb,_0x39c879:0x1a2,_0x25b20f:0x1a8};switch(this[_0x9dbca9(_0x2e3071._0x14ec55,0x135,_0x2e3071._0x266e3c,_0x2e3071._0x446df7)]){case'anthropic-messages':return this[_0x25b778(0x3a1,0x310,0x466,_0x2e3071._0x46dd3c)][_0x25b778(0x408,0x479,_0x2e3071._0x4aaa45,_0x2e3071._0x48c4ef)](_0x3bda2a,_0x5f29a6);case _0x9dbca9(-_0x2e3071._0x191c10,-_0x2e3071._0x8e2ded,-_0x2e3071._0x157d51,-0x53):return this[_0x25b778(_0x2e3071._0x2514ec,_0x2e3071._0x27d9cd,0x3ba,_0x2e3071._0x418cab)](_0x3bda2a,_0x5f29a6);case'openai-responses':return this[_0x25b778(_0x2e3071._0x323b90,_0x2e3071._0x4950d8,0x4c1,_0x2e3071._0x566a93)](_0x3bda2a,_0x5f29a6);case _0x25b778(_0x2e3071._0x1e8b1e,0x440,0x4e1,_0x2e3071._0xfdf519):return this[_0x9dbca9(0x1ad,0x179,0x5b,_0x2e3071._0x5d06d2)](_0x3bda2a,_0x5f29a6);case _0x9dbca9(_0x2e3071._0x54ee16,_0x2e3071._0x66f5bf,_0x2e3071._0x3b5235,_0x2e3071._0x12ed7b):return this[_0x25b778(_0x2e3071._0x2035d5,0x354,0x3f9,0x44d)](_0x3bda2a,_0x5f29a6);}function _0x9dbca9(_0x3300f1,_0x372e00,_0x1b7745,_0x378330){return _0x5da579(_0x378330- -_0x4a7dab._0x8d4b4d,_0x372e00-_0x4a7dab._0x39c879,_0x1b7745-_0x4a7dab._0x25b20f,_0x3300f1);}function _0x25b778(_0x574229,_0x771be6,_0x427274,_0x5b2077){return _0x3749d0(_0x574229-0x7d,_0x771be6-_0x1d03ac._0x4ff12e,_0x574229-0x3e9,_0x771be6);}throw new Error(_0x25b778(0x4a9,_0x2e3071._0x4535e5,_0x2e3071._0x13f6fe,_0x2e3071._0x2f2f5f)+String(this[_0x25b778(0x528,0x5c3,_0x2e3071._0x4e87cf,0x4fd)]));}['streamViaConfiguredSurface'](_0x55c54c,_0x5d2c87){const _0x2cb805={_0x54d736:0x3ae,_0x56a395:0x14f,_0x368a89:0x1a2,_0x2a9705:0x133,_0x208446:0xea,_0x189ae0:0x111,_0x1b0dc7:0x121,_0x1b2897:0x10a,_0x12a310:0x16a,_0x197e67:0x1dd,_0x8de429:0xc5,_0x2039bd:0xf8,_0x44e779:0x2ae,_0x1f06f9:0x33c,_0x4935df:0x377,_0x18052e:0x3bf,_0x119b53:0x38c,_0x237c8a:0x318,_0x57d664:0x1cc,_0x442681:0x21e,_0xb03777:0x3fc,_0x1ec65b:0x3ae},_0x17d7e9={_0x232e31:0x249},_0x252f24={_0x10054a:0xfa};function _0x698d68(_0x330636,_0xd01786,_0x351241,_0x59840f){return _0x5da579(_0x351241-0x3b,_0xd01786-0x11e,_0x351241-_0x252f24._0x10054a,_0x330636);}switch(this[_0x698d68(_0x2cb805._0x54d736,0x455,0x45f,0x46e)]){case _0x3467d4(_0x2cb805._0x56a395,_0x2cb805._0x368a89,0xf2,_0x2cb805._0x2a9705):return this['anthropicDelegate'][_0x3467d4(0x190,0xf9,0x149,_0x2cb805._0x208446)](_0x55c54c,_0x5d2c87);case _0x3467d4(0xf5,_0x2cb805._0x189ae0,0x5f,_0x2cb805._0x1b0dc7):return this[_0x3467d4(_0x2cb805._0x1b2897,0xec,_0x2cb805._0x12a310,_0x2cb805._0x197e67)](_0x55c54c,_0x5d2c87);case _0x3467d4(0x1c1,_0x2cb805._0x8de429,_0x2cb805._0x2039bd,0xb6):return this[_0x698d68(0x2c2,0x365,0x2f5,0x336)](_0x55c54c,_0x5d2c87);case _0x698d68(_0x2cb805._0x44e779,_0x2cb805._0x1f06f9,_0x2cb805._0x4935df,0x2b9):return this[_0x698d68(0x31d,_0x2cb805._0x18052e,_0x2cb805._0x119b53,_0x2cb805._0x237c8a)](_0x55c54c,_0x5d2c87);case _0x3467d4(0x240,_0x2cb805._0x57d664,0x1d2,_0x2cb805._0x442681):return this[_0x698d68(_0x2cb805._0xb03777,_0x2cb805._0x1ec65b,0x3cd,0x444)](_0x55c54c,_0x5d2c87);}function _0x3467d4(_0x5c9b34,_0x2e2f71,_0x34d609,_0x32945e){return _0x5da579(_0x34d609- -_0x17d7e9._0x232e31,_0x2e2f71-0x12f,_0x34d609-0x153,_0x32945e);}throw new Error(_0x3467d4(0x20f,0x103,0x15c,0x1a0)+String(this['surface']));}async['complete'](_0x458b0c,_0x295333){const _0x3a267a={_0x37b207:0x153,_0x107541:0x1f9,_0x355b78:0x1d9,_0x873d3e:0xf7,_0x4e62f7:0xdc,_0x58d0a8:0xb1,_0x27d790:0x4,_0x3d11f8:0xe8,_0x4724e9:0x20b,_0x1df669:0x1f7,_0x170c5e:0x2cf,_0x535531:0x1f0,_0x2123e0:0x1b9,_0x16a05e:0x252,_0x11ce59:0x2dc,_0x178e97:0x54,_0x4f4d59:0xb5,_0x45a83d:0x45,_0xdcc742:0x10,_0x4b4b5d:0x4b,_0xc84c0:0xc1,_0x293b7a:0x1e5,_0x40ac9c:0x32},_0x41ad4c={_0x1b79c6:0xce},_0x100cee={_0x1cf017:0x2c},_0x3aae64=this[_0x37699f(0x87,_0x3a267a._0x37b207,_0x3a267a._0x107541,_0x3a267a._0x355b78)](_0x458b0c);function _0x2dcbef(_0x2c8687,_0x587d6a,_0x3086bb,_0x5768f2){return _0x3749d0(_0x2c8687-_0x100cee._0x1cf017,_0x587d6a-0x15e,_0x5768f2- -0x8e,_0x3086bb);}if(this[_0x2dcbef(_0x3a267a._0x873d3e,0x150,_0x3a267a._0x4e62f7,_0x3a267a._0x58d0a8)]!==_0x2dcbef(-_0x3a267a._0x27d790,0x1,_0x3a267a._0x3d11f8,0xa8))return this[_0x37699f(0x13d,_0x3a267a._0x4724e9,_0x3a267a._0x1df669,_0x3a267a._0x170c5e)](_0x3aae64,_0x295333);function _0x37699f(_0x28d402,_0x5202bf,_0x15f2a1,_0x562293){return _0x3749d0(_0x28d402-_0x41ad4c._0x1b79c6,_0x5202bf-0x16f,_0x5202bf-0x16a,_0x28d402);}if(this[_0x37699f(_0x3a267a._0x535531,_0x3a267a._0x2123e0,0x231,0x151)](_0x3aae64))return this[_0x37699f(0x2b0,_0x3a267a._0x16a05e,0x249,_0x3a267a._0x11ce59)](_0x3aae64,_0x295333);try{return await this[_0x2dcbef(_0x3a267a._0x178e97,_0x3a267a._0x4f4d59,-_0x3a267a._0x45a83d,_0x3a267a._0xdcc742)](_0x3aae64,_0x295333);}catch(_0x3b5ee6){if(_0x3b5ee6 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x3b5ee6['body']))return this[_0x2dcbef(-_0x3a267a._0x4b4b5d,-0x12,-0x133,-_0x3a267a._0xc84c0)](_0x3aae64[_0x37699f(0x250,0x276,0x2f4,_0x3a267a._0x293b7a)]),this['response'](_0x3aae64,_0x295333);throw this[_0x2dcbef(0x33,-0xdc,_0x3a267a._0x40ac9c,-0x5c)](_0x3b5ee6);}throw _0x3b5ee6;}}async*[_0x5da579(0x392,0x2d6,0x350,0x332)](_0x1721ab,_0x5436c8){const _0x4a6a57={_0x1a3474:0x281,_0x1b1cd6:0x278,_0x3eaae3:0xe3,_0x369268:0x5a,_0x5e88ca:0x103,_0x46c0f5:0x92,_0x552388:0x1d7,_0x8c2c2a:0x1fd,_0x3483cb:0x118,_0x3dcfb0:0x18d},_0x263444={_0x5d8067:0x220,_0x3d91c4:0x32,_0xabf575:0x1aa},_0x16d4d8={_0x517293:0x335},_0x2575fb=this['applyModelDefaults'](_0x1721ab);if(this[_0x1156f4(0x2b7,_0x4a6a57._0x1a3474,0x204,_0x4a6a57._0x1b1cd6)]!=='auto'){yield*this[_0x1156f4(_0x4a6a57._0x3eaae3,_0x4a6a57._0x369268,_0x4a6a57._0x5e88ca,0x134)](_0x2575fb,_0x5436c8);return;}function _0x406a64(_0x359afb,_0x1f0542,_0x43aa4d,_0x1a174e){return _0x3749d0(_0x359afb-0xcc,_0x1f0542-0x83,_0x359afb-_0x16d4d8._0x517293,_0x43aa4d);}function _0x1156f4(_0x2805d9,_0x3c16d5,_0x1aa489,_0x244b4c){return _0x5da579(_0x1aa489- -_0x263444._0x5d8067,_0x3c16d5-_0x263444._0x3d91c4,_0x1aa489-_0x263444._0xabf575,_0x3c16d5);}if(this['shouldPreferResponsesApi'](_0x2575fb)){yield*this['responseStream'](_0x2575fb,_0x5436c8);return;}try{yield*this['streamChatCompletionsWithSessionRefresh'](_0x2575fb,_0x5436c8);}catch(_0x1efbee){if(_0x1efbee instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x1efbee['body'])){this[_0x1156f4(0x11c,0xea,_0x4a6a57._0x46c0f5,0x24)](_0x2575fb[_0x1156f4(_0x4a6a57._0x552388,_0x4a6a57._0x8c2c2a,0x1d1,0x127)]),yield*this[_0x1156f4(0x143,_0x4a6a57._0x3483cb,0x9a,0xb1)](_0x2575fb,_0x5436c8);return;}throw this[_0x1156f4(_0x4a6a57._0x3dcfb0,0x19f,0xf7,0x60)](_0x1efbee);}throw _0x1efbee;}}async*[_0x3749d0(0x82,0x50,-0x14,-0xd9)](_0xc35ef,_0x1dbe63){const _0x3fb1ba={_0x4c76a6:0x2c2,_0x3aed16:0x2db,_0x2491c7:0x36e,_0xcfb831:0x78,_0x5605f9:0xa,_0xe4a9d4:0x141,_0x55c7a2:0x26f,_0x46cf47:0x36b,_0x557f97:0x2b5},_0xf4f32c={_0xf5512:0xdd},_0x3f9db5={_0x37e7c0:0x1d};function _0x348ff7(_0x504e23,_0x4f8b26,_0x12d669,_0x980e59){return _0x3749d0(_0x504e23-0xeb,_0x4f8b26-_0x3f9db5._0x37e7c0,_0x4f8b26-0x1b6,_0x12d669);}function _0x21fa55(_0x22c5b9,_0x4c947b,_0x354b1e,_0x1f8b3d){return _0x3749d0(_0x22c5b9-_0xf4f32c._0xf5512,_0x4c947b-0x22,_0x22c5b9- -0x32,_0x4c947b);}try{yield*this[_0x348ff7(_0x3fb1ba._0x4c76a6,_0x3fb1ba._0x3aed16,_0x3fb1ba._0x2491c7,0x248)](_0xc35ef,_0x1dbe63);}catch(_0x58c764){if(_0x58c764 instanceof OpenAiApiError&&_0x58c764[_0x21fa55(_0x3fb1ba._0xcfb831,_0x3fb1ba._0x5605f9,_0x3fb1ba._0xe4a9d4,-0x23)]===0x191&&this[_0x348ff7(0x331,_0x3fb1ba._0x55c7a2,0x1ce,0x274)]&&!isUnsupportedApiForModel(_0x58c764[_0x348ff7(0x28b,0x2ef,0x383,0x23b)])){this['sessionManager']['invalidate'](),yield*this[_0x348ff7(_0x3fb1ba._0x46cf47,0x2db,_0x3fb1ba._0x557f97,0x342)](_0xc35ef,_0x1dbe63);return;}throw _0x58c764;}}async[_0x5da579(0x3b0,0x400,0x320,0x412)](_0x446523){const _0x1e7dd4={_0x2df1be:0x20d,_0x47e505:0x212,_0x594317:0x1cf,_0x44acc0:0x83,_0x7b07be:0xf9,_0x4ddcf2:0xc3,_0x41e023:0x1c,_0xbb7772:0x6e,_0x46bd71:0x6c},_0x784b50={_0x3ad87d:0x443,_0x1c4ac8:0x9d},_0xfa7fa5={_0x291761:0x5f5,_0x62bc73:0x580,_0x5c112d:0x4c7},_0x2e3077={_0x1717e7:0x2,_0x1aca97:0x101,_0x13f1e2:0x28f},_0x528090=await this['sendRawRequest']({'path':_0x9af764(-0x160,-0xee,-_0x1e7dd4._0x2df1be,-0x22e),'method':_0x246a35(0x2ab,0x37c,0x340,0x2ce),'signal':_0x446523});if(!_0x528090['ok'])throw this['mapApiError'](await this[_0x9af764(-0x157,-_0x1e7dd4._0x47e505,-_0x1e7dd4._0x594317,-0x1c1)](_0x528090));const _0x2b7a30=await _0x528090[_0x9af764(-_0x1e7dd4._0x44acc0,-_0x1e7dd4._0x7b07be,-_0x1e7dd4._0x4ddcf2,_0x1e7dd4._0x41e023)]();function _0x246a35(_0x246d27,_0x433f04,_0x49744f,_0x39aca9){return _0x3749d0(_0x246d27-_0x2e3077._0x1717e7,_0x433f04-_0x2e3077._0x1aca97,_0x433f04-_0x2e3077._0x13f1e2,_0x39aca9);}const _0x34464c=(_0x2b7a30[_0x9af764(-_0x1e7dd4._0xbb7772,-0x29,-_0x1e7dd4._0x46bd71,-0x89)]??[])['map'](_0x209bc5=>{const _0x486158=createModelInfo(_0x209bc5);_0x486158['supportedEndpoints']&&this['modelEndpointCache']['set'](_0x486158['id'],_0x486158[_0x41a44d(_0xfa7fa5._0x291761,_0xfa7fa5._0x62bc73,_0xfa7fa5._0x5c112d,0x576)]);function _0x41a44d(_0x1d82f0,_0x3e3b8a,_0x24dc64,_0x4f3f55){return _0x246a35(_0x1d82f0-0x19d,_0x3e3b8a-0x218,_0x24dc64-0xf2,_0x4f3f55);}return _0x486158;});function _0x9af764(_0x39b66b,_0x2e0745,_0x30be84,_0x57b5c2){return _0x5da579(_0x39b66b- -_0x784b50._0x3ad87d,_0x2e0745-0x130,_0x30be84-_0x784b50._0x1c4ac8,_0x30be84);}return deduplicateModels(_0x34464c);}};function createHeaders(_0x53548b){const _0x11cf7a={_0x574130:0x2bd,_0x3c5469:0x1eb,_0x4da9c7:0x2b8,_0x30436c:0x361,_0xa1859f:0x27e},_0x5b2c2f={_0x48558c:0x5ab},_0x4cc9d={_0x425228:0x13c},_0xc415c9=new Headers();for(const [_0x49d158,_0x2f0906]of Object[_0x242afc(-_0x11cf7a._0x574130,-0x316,-_0x11cf7a._0x3c5469,-_0x11cf7a._0x4da9c7)](_0x53548b)){_0xc415c9[_0x242afc(-0x2b2,-_0x11cf7a._0x30436c,-0x1ea,-_0x11cf7a._0xa1859f)](_0x49d158,_0x2f0906);}function _0x2afbdb(_0x55e753,_0x221207,_0x5ca8a3,_0x5dee13){return _0x3749d0(_0x55e753-0x57,_0x221207-0x68,_0x5dee13- -_0x4cc9d._0x425228,_0x5ca8a3);}function _0x242afc(_0x1741ac,_0x1117e7,_0x1f218b,_0xbd714e){return _0x5da579(_0x1741ac- -_0x5b2c2f._0x48558c,_0x1117e7-0xbe,_0x1f218b-0x13,_0xbd714e);}return _0xc415c9;}async function fetchRawResponse(_0x6e624a){const _0x5d6c50={_0xff492c:0xc6,_0x14dcd3:0xd6,_0x471fc6:0xc6,_0x100f1c:0x4d,_0x30632a:0x187,_0x3dc146:0xcb,_0x317b1a:0x17d,_0x4399b2:0xad,_0x481d3e:0x1e7,_0x312f95:0x1e3,_0x17b641:0x119,_0x4885fb:0x224,_0x3b950c:0xcd,_0x144f3f:0x201,_0x508f97:0x208},_0xdbba25={_0x109565:0x43},_0x176bdd={_0x539023:0xf4},_0x242c33=_0x6e624a[_0x486cb6(_0x5d6c50._0xff492c,0x57,0x12e,_0x5d6c50._0x14dcd3)]??globalThis[_0x486cb6(_0x5d6c50._0x471fc6,0xbf,_0x5d6c50._0x100f1c,_0x5d6c50._0x30632a)];function _0x486cb6(_0x42c049,_0x3f375c,_0x4dba45,_0x4517cd){return _0x3749d0(_0x42c049-0x188,_0x3f375c-0x18d,_0x42c049-_0x176bdd._0x539023,_0x4dba45);}function _0x3fabc5(_0x5f4430,_0x3fe2c0,_0x1a8fbf,_0x41f73b){return _0x5da579(_0x5f4430- -0x216,_0x3fe2c0-_0xdbba25._0x109565,_0x1a8fbf-0xcc,_0x41f73b);}return _0x242c33(_0x6e624a[_0x3fabc5(_0x5d6c50._0x3dc146,0x155,_0x5d6c50._0x317b1a,_0x5d6c50._0x4399b2)],{'method':_0x3fabc5(_0x5d6c50._0x481d3e,_0x5d6c50._0x312f95,_0x5d6c50._0x17b641,_0x5d6c50._0x4885fb),'headers':createHeaders(_0x6e624a[_0x3fabc5(0x105,0x10b,0x135,_0x5d6c50._0x3b950c)]),'body':JSON[_0x3fabc5(0x1c2,0x158,_0x5d6c50._0x144f3f,0x168)](_0x6e624a[_0x3fabc5(_0x5d6c50._0x508f97,0x2d3,0x1a5,0x1eb)]),'signal':_0x6e624a['signal']});}async function fetchJsonResponse(_0x41fd81){const _0x4d4ae4={_0x19d5e5:0x15e,_0x45f1c1:0x11e,_0x38c30d:0x577,_0xa69af9:0x4e9,_0x2d014f:0x27,_0x28779d:0x87,_0x538da0:0x8c,_0x1d771b:0x38,_0x4e0e87:0x77,_0x4427b8:0x4e,_0x1baf1:0x461,_0x31eff8:0x4a5,_0x21270a:0x482},_0x2e8500={_0x36aadd:0x161,_0x5313b7:0x1b5},_0x32c760=await fetchRawResponse(_0x41fd81);function _0x506355(_0x1cc910,_0x5c837f,_0x1fc426,_0x491a55){return _0x5da579(_0x491a55- -0x341,_0x5c837f-_0x2e8500._0x36aadd,_0x1fc426-_0x2e8500._0x5313b7,_0x1fc426);}function _0x4a3198(_0x484c61,_0x4cb6c3,_0x3de2de,_0x120c64){return _0x5da579(_0x4cb6c3-0xe5,_0x4cb6c3-0x157,_0x3de2de-0x159,_0x484c61);}if(!_0x32c760['ok']){const _0x54802b=await _0x32c760['text'](),_0x450d8a=_0x54802b[_0x506355(0x10a,_0x4d4ae4._0x19d5e5,_0x4d4ae4._0x45f1c1,0xae)]()||_0x32c760[_0x4a3198(_0x4d4ae4._0x38c30d,_0x4d4ae4._0xa69af9,0x53e,0x526)]||_0x506355(_0x4d4ae4._0x2d014f,_0x4d4ae4._0x28779d,0x155,0xad);throw new Error(_0x506355(-_0x4d4ae4._0x538da0,-0x10b,-_0x4d4ae4._0x1d771b,-0x5c)+_0x32c760[_0x506355(-0x1d,0xa7,-_0x4d4ae4._0x4e0e87,_0x4d4ae4._0x4427b8)]+':\x20'+_0x450d8a);}return await _0x32c760[_0x4a3198(_0x4d4ae4._0x1baf1,_0x4d4ae4._0x31eff8,0x44e,_0x4d4ae4._0x21270a)]();}function findLastMessage(_0x31380b,_0x10ed13){const _0x1df70e={_0x35d072:0x2f3,_0x3a969e:0x3d4,_0x548e23:0x31a,_0x455ee7:0x2b7},_0x42a3e4={_0x18fee8:0x195,_0x265226:0x68},_0x157f0e={_0x1073a3:0x191,_0x33d817:0x2b4};function _0x37b4ee(_0xf7a6ef,_0x30545e,_0x2d11fe,_0x5341f6){return _0x3749d0(_0xf7a6ef-0xc7,_0x30545e-_0x157f0e._0x1073a3,_0x30545e-_0x157f0e._0x33d817,_0x2d11fe);}for(let _0x23eebd=_0x31380b[_0x2ba056(_0x1df70e._0x35d072,_0x1df70e._0x3a969e,_0x1df70e._0x548e23,0x2c9)]-0x1;_0x23eebd>=0x0;_0x23eebd-=0x1){if(_0x31380b[_0x23eebd][_0x37b4ee(0x27e,0x2a1,_0x1df70e._0x455ee7,_0x1df70e._0x455ee7)]===_0x10ed13)return _0x31380b[_0x23eebd];}function _0x2ba056(_0xc2f7db,_0x487221,_0x5014b6,_0x5e93f0){return _0x3749d0(_0xc2f7db-_0x42a3e4._0x18fee8,_0x487221-_0x42a3e4._0x265226,_0x5014b6-0x349,_0x487221);}return void 0x0;}function hasTool(_0x32b5c4,_0x396f41){const _0x16e0e9={_0x338015:0x502,_0x5107af:0x499,_0x18c8fb:0x55b,_0x1af328:0x40c},_0x1e6121={_0x4bef08:0x20,_0x5db3fd:0x384},_0x43e7bc={_0x586783:0xc2};function _0x11bbd2(_0x2b551c,_0x26e466,_0x2ba4a9,_0x5f522e){return _0x3749d0(_0x2b551c-0x1c2,_0x26e466-0x175,_0x2b551c-_0x43e7bc._0x586783,_0x5f522e);}function _0x2b3448(_0x57a3bc,_0x11f9d2,_0x5c7998,_0xe6f9c0){return _0x3749d0(_0x57a3bc-_0x1e6121._0x4bef08,_0x11f9d2-0x1b3,_0x57a3bc-_0x1e6121._0x5db3fd,_0x5c7998);}return _0x32b5c4[_0x2b3448(0x4cd,_0x16e0e9._0x338015,_0x16e0e9._0x5107af,_0x16e0e9._0x18c8fb)][_0x2b3448(0x44b,_0x16e0e9._0x1af328,0x427,0x3c2)](_0x2f2883=>_0x2f2883[_0x11bbd2(0x186,0x1ec,0x24b,0x1f0)]===_0x396f41);}function createMockResponse(_0x2fe0a2,_0x4f92b,_0x3f6350,_0x4e48e8){return{'id':_0x2fe0a2,'content':_0x4f92b,'stopReason':_0x3f6350,'usage':_0x4e48e8};}var MockModel=class{['model'];[_0x3749d0(-0x3f,-0x7,-0x15,0x97)];[_0x3749d0(-0x22,0xb,0x83,0xbb)]=[];[_0x3749d0(0x8,0x14e,0x9a,0x7f)];constructor(_0x26957e={}){const _0x5760cd={_0x2055be:0x2c8,_0x1c3be0:0x332,_0x2f9987:0x1f3,_0x113abe:0x21d,_0x598932:0x135,_0x243706:0x2b8,_0x4e33db:0x269,_0x3335aa:0x209,_0x42d391:0x2be},_0x1432e2={_0x35d0f2:0x197},_0x3130a5={_0xa7ae34:0x588,_0x42cced:0x119};function _0x2e480d(_0x513f4c,_0x2242c6,_0xef213a,_0x15453a){return _0x5da579(_0xef213a- -_0x3130a5._0xa7ae34,_0x2242c6-0x1df,_0xef213a-_0x3130a5._0x42cced,_0x513f4c);}function _0x11f726(_0x275a44,_0x41cc61,_0xd84a64,_0x5f29b0){return _0x5da579(_0x275a44- -0x129,_0x41cc61-_0x1432e2._0x35d0f2,_0xd84a64-0x47,_0x41cc61);}this[_0x11f726(0x2c8,0x1f9,0x2bd,0x28c)]=_0x26957e[_0x11f726(_0x5760cd._0x2055be,0x29a,_0x5760cd._0x1c3be0,_0x5760cd._0x2f9987)]??'mock',this[_0x11f726(0x1a7,_0x5760cd._0x113abe,0xfc,_0x5760cd._0x598932)]=_0x26957e[_0x2e480d(-0x259,-0x26e,-_0x5760cd._0x243706,-0x374)]??0x4000,this[_0x2e480d(-_0x5760cd._0x4e33db,-0x1b4,-_0x5760cd._0x3335aa,-_0x5760cd._0x42d391)]=_0x26957e['reasoning']?structuredClone(_0x26957e['reasoning']):void 0x0;}async[_0x5da579(0x304,0x32f,0x268,0x2e8)](_0x59e3a0,_0x146002){const _0x1578f9={_0x9a373a:0xa8,_0x52b4d1:0xf8,_0x4ecc01:0x204,_0x22ace4:0x1fe,_0x44026e:0x96,_0x45b088:0x73,_0x573f05:0x283,_0xdd86be:0x193,_0x5dce9c:0x1a5,_0x186930:0x317,_0x186fa0:0x30f,_0xbd603d:0x267,_0x3c103b:0x273,_0x3cb0e3:0x391,_0x44c02b:0x239,_0x30e89d:0x15a,_0x42c92e:0x144,_0x2f7076:0x1be,_0x14948a:0xbb,_0x2fd0b6:0x123,_0x3e219a:0x11c,_0x887ea9:0x192,_0x152144:0x174,_0x20305d:0x220,_0x23cdf1:0x18e,_0x41e1c3:0x15f,_0x1c58be:0xf7,_0x31c796:0xd0,_0x2b8b7c:0x18d,_0x5a8152:0x211,_0x411718:0x252,_0x1e4066:0x1a0,_0x4dc69f:0x15d,_0x30d89f:0x1ce,_0x9d8d90:0x13a,_0x1bf2b2:0xc6,_0x5069c6:0x2ab,_0x3948b8:0x2e0,_0x4cf211:0x1f1,_0x45f93a:0x121,_0x29009a:0x341,_0x2d669f:0x20d},_0x3bc9ec={_0x5ef742:0xea,_0x3ba93e:0x1cf},_0x27ad25={...structuredClone(_0x59e3a0),..._0x59e3a0[_0x56ea01(_0x1578f9._0x9a373a,0x21a,0x14b,_0x1578f9._0x52b4d1)]===void 0x0&&this[_0xfd3e36(0x1ba,0x269,_0x1578f9._0x4ecc01,_0x1578f9._0x22ace4)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};this['requests'][_0x56ea01(0x53,_0x1578f9._0x44026e,0xf5,_0x1578f9._0x45b088)](_0x27ad25);const _0xbe46b3=findLastMessage(_0x27ad25['messages'],_0xfd3e36(0x2f4,_0x1578f9._0x573f05,0x31a,0x1f2)),_0x519e8d=getToolResultBlocks(_0xbe46b3),_0x545838=_0x56ea01(0x1ec,0xf1,_0x1578f9._0xdd86be,_0x1578f9._0x5dce9c)+this[_0xfd3e36(0x1f6,0x252,_0x1578f9._0x186930,_0x1578f9._0x186fa0)]['length'];if(_0x519e8d['length']>0x0)return createMockResponse(_0x545838,[{'type':_0x56ea01(0x1af,_0x1578f9._0xbd603d,0x1f1,0x2bd),'text':_0xfd3e36(0x30d,0x2e0,_0x1578f9._0x3c103b,_0x1578f9._0x3cb0e3)+_0x519e8d[0x0][_0x56ea01(_0x1578f9._0x44c02b,_0x1578f9._0x30e89d,0x1b5,_0x1578f9._0x42c92e)]}],_0x56ea01(_0x1578f9._0x2f7076,_0x1578f9._0x14948a,0x143,_0x1578f9._0x2fd0b6),{'inputTokens':0x78,'outputTokens':0x28});const _0x1e4bd7=getTextFromMessage(_0xbe46b3);if(/list .*files|workspace/i[_0x56ea01(_0x1578f9._0x3e219a,_0x1578f9._0x887ea9,_0x1578f9._0x152144,_0x1578f9._0x20305d)](_0x1e4bd7)&&hasTool(_0x27ad25,_0x56ea01(_0x1578f9._0x23cdf1,_0x1578f9._0x41e1c3,_0x1578f9._0x1c58be,0x14b)))return createMockResponse(_0x545838,[{'type':_0x56ea01(_0x1578f9._0x31c796,0xc5,_0x1578f9._0x2b8b7c,_0x1578f9._0x5a8152),'id':'tool-call-'+this[_0xfd3e36(0x2f9,_0x1578f9._0x411718,0x20b,0x2e8)][_0xfd3e36(0x120,_0x1578f9._0x1e4066,0x15b,0x1da)],'name':'Bash','input':{'command':_0x56ea01(_0x1578f9._0x4dc69f,_0x1578f9._0x30d89f,_0x1578f9._0x9d8d90,_0x1578f9._0x1bf2b2)}}],_0xfd3e36(0x2b6,_0x1578f9._0x5069c6,0x280,_0x1578f9._0x3948b8),{'inputTokens':0x6e,'outputTokens':0x1c});function _0xfd3e36(_0x575c27,_0x2977c9,_0x52cd5a,_0xafdc03){return _0x3749d0(_0x575c27-_0x3bc9ec._0x5ef742,_0x2977c9-0x127,_0x2977c9-_0x3bc9ec._0x3ba93e,_0x52cd5a);}function _0x56ea01(_0x301bd0,_0x1ecc44,_0x2efef9,_0x3ad887){return _0x5da579(_0x2efef9- -0x234,_0x1ecc44-0x164,_0x2efef9-0x1d7,_0x3ad887);}return createMockResponse(_0x545838,[{'type':_0x56ea01(0x1b1,0x235,_0x1578f9._0x4cf211,_0x1578f9._0x45f93a),'text':_0xfd3e36(0x216,0x2da,_0x1578f9._0x29009a,_0x1578f9._0x2d669f)+_0x1e4bd7}],_0xfd3e36(0x294,0x261,0x24c,0x2cb),{'inputTokens':0x50,'outputTokens':0x12});}},FALLBACK_LIMITS={'zai':{'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}},'openrouter':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}},'github':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}},'minimax':{'MiniMax-M2.1':{'contextWindow':0xf4240,'maxOutput':0x13880}},'anthropic':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}};function getFallbackModelLimits(_0x2fb116,_0x3e3bea){return FALLBACK_LIMITS[_0x2fb116['toLowerCase']()]?.[_0x3e3bea];}function normalizeModelInfo(_0x551d8b,_0x106973){const _0xbb48={_0x1d50ff:0x112,_0x58cbaa:0x4d,_0x4e38ce:0x370,_0x5c67d0:0x2f2,_0x27df84:0x3c6,_0x22de0a:0x346,_0x12ba44:0x3ba,_0x5dbde7:0x44f,_0x160c45:0x3ce,_0x4a8ff8:0x1ea,_0x5a1f87:0xa0,_0x588016:0x54,_0x4e1e69:0xa0,_0x33892d:0x489,_0x13944a:0x4d9,_0x1314d5:0x3e4,_0x33ce3e:0x31d,_0x5f2e68:0x37d,_0x31cb8b:0x2d4,_0x1e60ff:0x51d,_0x4924b9:0x4b0,_0x311fdf:0x455},_0x3ffae3={_0x230bd0:0x4b3,_0x1958fa:0x1d2},_0x526ff0={_0x423ea1:0x190},_0x16e917=typeof _0x106973['id']===_0xd371aa(-0x100,-0x16d,-_0xbb48._0x1d50ff,-_0xbb48._0x58cbaa)?_0x106973['id']:'',_0xdda6d7=typeof _0x106973[_0x1ce158(_0xbb48._0x4e38ce,0x3c7,0x3ce,0x43b)]===_0x1ce158(0x3b5,_0xbb48._0x5c67d0,_0xbb48._0x27df84,_0xbb48._0x22de0a)?_0x106973[_0x1ce158(_0xbb48._0x12ba44,_0xbb48._0x5dbde7,_0xbb48._0x160c45,0x451)]:_0x16e917,_0x43ebe5=normalizeModelLimits(_0x551d8b,_0x106973)??getFallbackModelLimits(_0x551d8b,_0x16e917),_0x40f014=Array[_0xd371aa(-0x8d,-0x1d0,-0x15b,-_0xbb48._0x4a8ff8)](_0x106973[_0xd371aa(-0x12,-0x171,-_0xbb48._0x5a1f87,-0x16f)])?_0x106973[_0xd371aa(-0xba,-_0xbb48._0x588016,-_0xbb48._0x4e1e69,-0x10f)][_0x1ce158(0x464,_0xbb48._0x33892d,0x455,_0xbb48._0x13944a)](_0x564b2b=>typeof _0x564b2b==='string'):Array[_0x1ce158(_0xbb48._0x1314d5,_0xbb48._0x33ce3e,_0xbb48._0x5f2e68,_0xbb48._0x31cb8b)](_0x106973['capable_endpoints'])?_0x106973['capable_endpoints'][_0x1ce158(_0xbb48._0x1e60ff,_0xbb48._0x4924b9,_0xbb48._0x311fdf,0x4c3)](_0x53eb00=>typeof _0x53eb00===_0x1ce158(0x344,0x38f,0x3c6,0x309)):void 0x0;function _0x1ce158(_0x4554ff,_0x22b33e,_0x2ba6b6,_0x1a7e0f){return _0x3749d0(_0x4554ff-0x16e,_0x22b33e-_0x526ff0._0x423ea1,_0x2ba6b6-0x30a,_0x1a7e0f);}function _0xd371aa(_0x4c94a9,_0x1ee1c5,_0x29e7e8,_0x97425){return _0x5da579(_0x29e7e8- -_0x3ffae3._0x230bd0,_0x1ee1c5-0x70,_0x29e7e8-_0x3ffae3._0x1958fa,_0x97425);}return{'id':_0x16e917,'name':_0xdda6d7,..._0x43ebe5?{'limits':_0x43ebe5}:{},..._0x40f014?{'supportedEndpoints':_0x40f014}:{}};}function normalizeModelLimits(_0x4316c7,_0x11f640){const _0x6cf0f3={_0x4af4e6:0x27a,_0x5d1d9b:0x48,_0x2e7cb2:0x280,_0x5ae2d3:0x1d3,_0x558ed9:0x4a,_0x321a34:0x10b,_0x1c2ea3:0x296,_0x47a639:0x1e5,_0x2aa7fd:0x173,_0x22f9fb:0x29c,_0x4fc712:0x280,_0x13b82c:0x2ba,_0x1f28af:0x3b9,_0x1b0e94:0x23f,_0x3d6c67:0x2dc,_0x2c4bc6:0x293,_0xcce526:0x26,_0xa42358:0x2c,_0x29ea9a:0x2,_0x4bcb0c:0xa8,_0xcad9f1:0x0,_0x53a3af:0x18c,_0x3d935a:0x199,_0x204792:0x202,_0x234c20:0x5a,_0xf7f641:0x6,_0x253337:0x9d,_0x46f874:0x105,_0x594830:0x48,_0x234f75:0x46,_0x1e72e4:0x2ca,_0xf9c7d4:0x28c,_0x3518ca:0x2ca,_0x2375fd:0x300,_0x16dd6a:0x2,_0xd3949:0xb2,_0x4fa548:0x254,_0x577113:0x239,_0x317bbf:0x5e,_0x44d755:0x1b6,_0x499f62:0x214,_0x68860f:0x44,_0x325aa2:0xea,_0x5e0b44:0x50},_0x581c98={_0x5bb5d7:0x4d},_0x6e821c={_0x14ff12:0x2af};if(_0x11f640['limits']&&typeof _0x11f640[_0x4ec395(-0x1d5,-_0x6cf0f3._0x4af4e6,-0x222,-0x1b5)]===_0x1026b6(-0x87,-0x62,-0x2e,-0xcb)){const _0x1c67d8=_0x11f640[_0x1026b6(-_0x6cf0f3._0x5d1d9b,0x60,0xd6,0x65)];if(typeof _0x1c67d8[_0x1026b6(0x31,0x4a,0x6b,-0x6)]===_0x4ec395(-0x1c6,-0x302,-_0x6cf0f3._0x2e7cb2,-_0x6cf0f3._0x5ae2d3))return{'contextWindow':_0x1c67d8[_0x1026b6(-0x64,_0x6cf0f3._0x558ed9,_0x6cf0f3._0x321a34,-0x58)],...typeof _0x1c67d8[_0x4ec395(-_0x6cf0f3._0x1c2ea3,-_0x6cf0f3._0x47a639,-0x23d,-_0x6cf0f3._0x2aa7fd)]===_0x4ec395(-0x2eb,-_0x6cf0f3._0x22f9fb,-_0x6cf0f3._0x4fc712,-0x312)?{'maxOutput':_0x1c67d8['maxOutput']}:{}};}function _0x4ec395(_0x3e68c9,_0x8c17ea,_0x27eb35,_0xe4678a){return _0x3749d0(_0x3e68c9-0xea,_0x8c17ea-0x1e2,_0x27eb35- -_0x6e821c._0x14ff12,_0x3e68c9);}if(_0x4316c7[_0x4ec395(-_0x6cf0f3._0x13b82c,-0x3c9,-0x2f6,-_0x6cf0f3._0x1f28af)]()===_0x4ec395(-_0x6cf0f3._0x1b0e94,-_0x6cf0f3._0x3d6c67,-0x24b,-_0x6cf0f3._0x2c4bc6)){const _0x71f51f=_0x11f640['capabilities'],_0x3841f9=_0x71f51f?.[_0x1026b6(0x19,0x60,0xd9,_0x6cf0f3._0xcce526)];if(typeof _0x3841f9?.[_0x1026b6(_0x6cf0f3._0xa42358,0xf6,_0x6cf0f3._0x5d1d9b,0xf0)]===_0x1026b6(-0x42,_0x6cf0f3._0x29ea9a,_0x6cf0f3._0x4bcb0c,_0x6cf0f3._0xcad9f1))return{'contextWindow':_0x3841f9[_0x4ec395(-0x23e,-0x142,-_0x6cf0f3._0x53a3af,-0x234)],...typeof _0x3841f9[_0x4ec395(-0x29c,-_0x6cf0f3._0x3d935a,-0x244,-_0x6cf0f3._0x204792)]===_0x1026b6(-0x9,0x2,-0x3f,-_0x6cf0f3._0x234c20)?{'maxOutput':_0x3841f9[_0x1026b6(-_0x6cf0f3._0xf7f641,0x3e,_0x6cf0f3._0x253337,0x57)]}:{}};}const _0xf94410=_0x11f640['metadata'];function _0x1026b6(_0x2f0579,_0x234658,_0x51bc50,_0x12d292){return _0x3749d0(_0x2f0579-_0x581c98._0x5bb5d7,_0x234658-0xc5,_0x234658- -0x2d,_0x51bc50);}const _0x3ed592=_0x11f640['top_provider'],_0x50fc49=typeof _0x11f640['context_length']==='number'?_0x11f640[_0x1026b6(-_0x6cf0f3._0x46f874,-_0x6cf0f3._0x594830,-_0x6cf0f3._0x4bcb0c,-0xee)]:typeof _0xf94410?.[_0x1026b6(-0xc0,-0x48,-0x31,-_0x6cf0f3._0x234f75)]==='number'?_0xf94410[_0x4ec395(-0x2a6,-0x29d,-_0x6cf0f3._0x1e72e4,-0x21a)]:typeof _0x3ed592?.[_0x4ec395(-0x35e,-_0x6cf0f3._0xf9c7d4,-_0x6cf0f3._0x3518ca,-_0x6cf0f3._0x2375fd)]===_0x1026b6(0xbb,_0x6cf0f3._0x16dd6a,-_0x6cf0f3._0xd3949,-0x2c)?_0x3ed592[_0x4ec395(-0x271,-_0x6cf0f3._0x4fa548,-0x2ca,-_0x6cf0f3._0x577113)]:void 0x0;if(_0x50fc49===void 0x0)return void 0x0;return{'contextWindow':_0x50fc49,...typeof _0xf94410?.[_0x4ec395(-0x38e,-0x31d,-0x2e0,-0x365)]==='number'?{'maxOutput':_0xf94410[_0x1026b6(-0xef,-_0x6cf0f3._0x317bbf,0x39,-0x86)]}:typeof _0x3ed592?.[_0x4ec395(-_0x6cf0f3._0x44d755,-0x296,-_0x6cf0f3._0x499f62,-0x26f)]==='number'?{'maxOutput':_0x3ed592[_0x1026b6(-_0x6cf0f3._0x68860f,0x6e,_0x6cf0f3._0x325aa2,-_0x6cf0f3._0x5e0b44)]}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getFallbackModelLimits,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};