@nuvin/agent-core 0.1.0-rc.8 → 0.1.0

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(_0x581dcc,_0x400966){const _0x2dff13={_0x2a07de:0x210,_0x4f103a:0x1e4,_0x2bb293:0x71,_0x48f798:0x106,_0x1af90e:0x137,_0x552f2a:0x22b,_0x15218b:0x1a0,_0x55ded0:0x15c,_0x69686a:0xac,_0x303d59:0x28a,_0x4b2cce:0x200,_0xaff044:0xe7,_0x23be0a:0x13a,_0xc166cb:0xc4,_0x157117:0x78,_0xc94c21:0x20,_0x505d82:0x18,_0x438848:0x4c},_0x21e644={_0x489def:0xbd},_0x2cff06={_0x32901e:0x19f};function _0x5175de(_0x8b5d59,_0x2be1f0,_0x78fac9,_0x51d987){return _0x58b0(_0x78fac9- -_0x2cff06._0x32901e,_0x2be1f0);}const _0x47b9cf=_0x581dcc();function _0x7feee8(_0x39ca4b,_0x198a5f,_0xfa3e25,_0x5a2a4e){return _0x58b0(_0x5a2a4e- -_0x21e644._0x489def,_0xfa3e25);}while(!![]){try{const _0x42a88b=parseInt(_0x5175de(0x9c,-0x3b,0x4e,-0x16))/0x1+parseInt(_0x7feee8(_0x2dff13._0x2a07de,_0x2dff13._0x4f103a,0x2a5,0x1e8))/0x2*(-parseInt(_0x5175de(_0x2dff13._0x2bb293,_0x2dff13._0x48f798,0x158,0x1c5))/0x3)+parseInt(_0x5175de(0xb8,0x6d,_0x2dff13._0x1af90e,0x176))/0x4+parseInt(_0x5175de(_0x2dff13._0x552f2a,_0x2dff13._0x15218b,_0x2dff13._0x55ded0,_0x2dff13._0x69686a))/0x5*(parseInt(_0x7feee8(_0x2dff13._0x303d59,0x1f8,0x26b,0x2b3))/0x6)+parseInt(_0x5175de(_0x2dff13._0x4b2cce,_0x2dff13._0xaff044,_0x2dff13._0x23be0a,0x13f))/0x7*(parseInt(_0x5175de(0x4c,0x1a,_0x2dff13._0xc166cb,_0x2dff13._0x157117))/0x8)+-parseInt(_0x5175de(0x292,0x2b1,0x1e2,0x1c6))/0x9+parseInt(_0x5175de(_0x2dff13._0xc94c21,_0x2dff13._0x505d82,_0x2dff13._0x438848,0x136))/0xa;if(_0x42a88b===_0x400966)break;else _0x47b9cf['push'](_0x47b9cf['shift']());}catch(_0x191347){_0x47b9cf['push'](_0x47b9cf['shift']());}}}(_0x1215,0x1e8a6));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-QDOE7NWO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x153559){const _0x2c3d65={_0x1df2fe:0x2fc,_0x1200d7:0x189,_0x5ac69d:0x227},_0x51cbda={_0x586c18:0x135};function _0x1ede64(_0x193f73,_0x2bb7f1,_0x49b24a,_0x2fcdfe){return _0x58b0(_0x2bb7f1- -0x2b5,_0x193f73);}super(_0x153559);function _0x125a12(_0x299c6c,_0x361b95,_0x5ba75b,_0x3c38bb){return _0x58b0(_0x3c38bb- -_0x51cbda._0x586c18,_0x5ba75b);}this[_0x125a12(0x177,_0x2c3d65._0x1df2fe,_0x2c3d65._0x1200d7,_0x2c3d65._0x5ac69d)]=_0x1ede64(-0x89,0xc,-0x58,-0xdf);}},ProviderStreamEventError=class extends Error{['code'];['retryable'];['status'];constructor(_0x33833c,_0x5c4006={}){const _0x5d960a={_0x493201:0x691,_0xf3a1cc:0x66d,_0x10e07b:0x6c6,_0x1b4118:0x617,_0x5d6d2d:0x6d5,_0x2f6048:0x65f,_0x5e3d96:0x66d,_0x9219eb:0x60e,_0x33624b:0x619,_0x38bddf:0x68d,_0x4a1d9f:0x69f,_0x22a9c7:0x602,_0x3aaaba:0x613,_0x1769a0:0x6e7,_0x4b07f6:0x602,_0x39561b:0x6c9},_0x2ce011={_0x3b659b:0x390};super(_0x33833c);function _0x5bcd7a(_0x493544,_0x35704b,_0x4a6c28,_0x304c0c){return _0x58b0(_0x35704b-0x335,_0x304c0c);}this[_0x5bcd7a(0x746,_0x5d960a._0x493201,0x779,_0x5d960a._0xf3a1cc)]='ProviderStreamEventError',this[_0x4e3114(_0x5d960a._0x10e07b,0x708,0x5f1,0x7a6)]=_0x5c4006[_0x4e3114(_0x5d960a._0x10e07b,0x6c6,_0x5d960a._0x1b4118,_0x5d960a._0x5d6d2d)];function _0x4e3114(_0x2e7ebc,_0x52a3d2,_0x472409,_0x19b668){return _0x58b0(_0x2e7ebc-_0x2ce011._0x3b659b,_0x472409);}this[_0x4e3114(_0x5d960a._0x2f6048,_0x5d960a._0x5e3d96,_0x5d960a._0x9219eb,_0x5d960a._0x33624b)]=_0x5c4006[_0x4e3114(0x65f,_0x5d960a._0x38bddf,0x742,_0x5d960a._0x4a1d9f)]??!![],this[_0x4e3114(_0x5d960a._0x22a9c7,_0x5d960a._0x3aaaba,0x6a2,_0x5d960a._0x1769a0)]=_0x5c4006[_0x4e3114(_0x5d960a._0x4b07f6,_0x5d960a._0x39561b,0x699,0x604)];}};function isRetryableProviderStreamEventError(_0x5e462f){const _0x4a7fc6={_0x2b53bb:0x510,_0x2bb7a6:0x4da},_0x4dfb95={_0x5a3ab6:0x20b};function _0x1f8a76(_0x3eb6ec,_0x36caf4,_0x2f45d8,_0x38c639){return _0x58b0(_0x38c639-_0x4dfb95._0x5a3ab6,_0x36caf4);}return _0x5e462f instanceof ProviderStreamEventError&&_0x5e462f[_0x1f8a76(0x506,_0x4a7fc6._0x2b53bb,0x539,_0x4a7fc6._0x2bb7a6)];}var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x1b98ce(0x70a,0x6bf,0x710,0x6e4);function parseToolInput(_0x23f920){const _0x2787c1={_0x17ddb1:0x4b7},_0x251c15={_0x4cfc69:0x55};function _0x433322(_0x1f0554,_0x5a19ea,_0x52e2e9,_0x1e1cc6){return _0x1b98ce(_0x52e2e9,_0x1e1cc6- -_0x251c15._0x4cfc69,_0x52e2e9-0x156,_0x1e1cc6-0x173);}try{return JSON[_0x433322(0x57a,0x401,_0x2787c1._0x17ddb1,0x4d6)](_0x23f920);}catch{return _0x23f920;}}function resolveReasoningVisibility(_0x464b84){const _0x2bb610={_0x113246:0x2ba,_0x2fd7a5:0x472,_0x1b2678:0x38a,_0x17461b:0x31f,_0x55674a:0x5a7,_0x580eb4:0x586,_0x31d622:0x5ae,_0x555914:0x59c},_0x64a71={_0x556d63:0x75,_0x12733e:0x163},_0xe2825b={_0x2c9dff:0x1ee,_0xd918a4:0x19d,_0x5dddda:0x17d};function _0x58f814(_0x1dfa66,_0x170e3c,_0x3cc76f,_0x2486d3){return _0x1b98ce(_0x170e3c,_0x3cc76f- -_0xe2825b._0x2c9dff,_0x3cc76f-_0xe2825b._0xd918a4,_0x2486d3-_0xe2825b._0x5dddda);}function _0x344013(_0x4d3438,_0x42ce85,_0x405885,_0xef490b){return _0x1b98ce(_0x42ce85,_0x4d3438- -_0x64a71._0x556d63,_0x405885-0x1c5,_0xef490b-_0x64a71._0x12733e);}return _0x464b84[_0x58f814(_0x2bb610._0x113246,_0x2bb610._0x2fd7a5,_0x2bb610._0x1b2678,_0x2bb610._0x17461b)]?.[_0x344013(_0x2bb610._0x55674a,_0x2bb610._0x580eb4,_0x2bb610._0x31d622,0x511)]??_0x344013(0x605,0x60d,0x64f,_0x2bb610._0x555914);}function isUserVisibleThinking(_0x240550){const _0x3a4fbc={_0x6636a7:0xb5,_0x2e24bb:0x47,_0x266d44:0x1b1,_0x599ab3:0x282},_0xbdb577={_0x1bcb04:0x4e3,_0x242b3e:0x17d,_0x46e554:0x58},_0x499dbc={_0x2a8c54:0xf8},_0x1e8a25=resolveAnthropicThinkingConfig(_0x240550[_0x1d4775(_0x3a4fbc._0x6636a7,-0x7,0x1a4,_0x3a4fbc._0x2e24bb)]);function _0x1d4775(_0x49c4ec,_0x4e822d,_0x54e34d,_0x567e9a){return _0x1b98ce(_0x4e822d,_0x49c4ec- -0x4c3,_0x54e34d-_0x499dbc._0x2a8c54,_0x567e9a-0x141);}function _0x4db32f(_0x5ea157,_0xce9eb3,_0x13d3f6,_0x1b40d2){return _0x1b98ce(_0x1b40d2,_0xce9eb3- -_0xbdb577._0x1bcb04,_0x13d3f6-_0xbdb577._0x242b3e,_0x1b40d2-_0xbdb577._0x46e554);}return _0x1e8a25!==void 0x0&&_0x1e8a25[_0x4db32f(0x230,_0x3a4fbc._0x266d44,0x18f,_0x3a4fbc._0x599ab3)]!=='disabled'&&resolveReasoningVisibility(_0x240550)==='user-visible';}function createAnthropicThinkingBody(_0x598e5c){const _0x4bc5f0={_0x403e9e:0x96,_0x24cb01:0x88,_0x441678:0x38e,_0x397db9:0x3fe,_0x2c1214:0x1a0,_0x44b46d:0x1a9,_0x3680d1:0x1aa,_0x2bdac7:0x170,_0x24ae49:0xca,_0x45c2b4:0xe2,_0x4e5507:0x2e4,_0x548490:0x29c,_0x2bb429:0x3f7,_0x14b637:0x438,_0x27d811:0x9e,_0x1e0ca1:0x159,_0x23d5a9:0x3f5,_0x1d44ef:0x3c4,_0x3c4c4b:0x41f,_0x5c9d37:0x461},_0xe8d89d={_0x1b9134:0x6b0},_0x116dda={_0x355a66:0x25c,_0x1aecbf:0x176};function _0x5d349e(_0x452aeb,_0x47b709,_0x1c9407,_0x378407){return _0x1b98ce(_0x1c9407,_0x378407- -_0x116dda._0x355a66,_0x1c9407-_0x116dda._0x1aecbf,_0x378407-0x1d1);}const _0x190d0d=resolveAnthropicThinkingConfig(_0x598e5c['reasoning']);if(!_0x190d0d||_0x190d0d[_0xcc5bce(_0x4bc5f0._0x403e9e,_0x4bc5f0._0x24cb01,-0x1c,0x49)]===_0x5d349e(0x321,0x452,_0x4bc5f0._0x441678,_0x4bc5f0._0x397db9))return{};const _0x185e94=_0x190d0d[_0x5d349e(0x1d7,0x33f,0x36a,0x2a7)]??(isUserVisibleThinking(_0x598e5c)?_0xcc5bce(-_0x4bc5f0._0x2c1214,-0x184,-_0x4bc5f0._0x44b46d,-0x1ce):_0xcc5bce(-_0x4bc5f0._0x3680d1,-_0x4bc5f0._0x2bdac7,-_0x4bc5f0._0x24ae49,-_0x4bc5f0._0x45c2b4)),_0x279f3f=_0x190d0d[_0x5d349e(_0x4bc5f0._0x4e5507,0x31a,0x37f,_0x4bc5f0._0x548490)]?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;if(_0x190d0d[_0x5d349e(0x4bc,_0x4bc5f0._0x2bb429,0x451,_0x4bc5f0._0x14b637)]==='enabled')return{..._0x279f3f?{'headers':_0x279f3f}:{},'thinking':{'type':'enabled','budget_tokens':_0x190d0d[_0xcc5bce(-_0x4bc5f0._0x27d811,-0xaa,-0x6b,-0x4f)],'display':_0x185e94}};function _0xcc5bce(_0x341633,_0x2749d4,_0x11ac48,_0x318867){return _0x1b98ce(_0x2749d4,_0x11ac48- -_0xe8d89d._0x1b9134,_0x11ac48-0xe2,_0x318867-0x89);}return{..._0x279f3f?{'headers':_0x279f3f}:{},'thinking':{'type':_0xcc5bce(-_0x4bc5f0._0x1e0ca1,-0x13b,-0xba,-0x1a4),..._0x190d0d[_0x5d349e(0x41b,0x2d9,_0x4bc5f0._0x23d5a9,_0x4bc5f0._0x1d44ef)]?{'effort':_0x190d0d[_0x5d349e(_0x4bc5f0._0x3c4c4b,0x2d8,_0x4bc5f0._0x5c9d37,_0x4bc5f0._0x1d44ef)]}:{},'display':_0x185e94}};}function toAnthropicRequestContent(_0xbcb11c){const _0x45347f={_0x4dbeeb:0x725,_0x5da825:0x159,_0xdd851:0x4e7,_0x30e1e8:0x1c1,_0x413b2f:0x128,_0x3c64fb:0x1e0,_0x2a0a09:0x294,_0x57d252:0x204,_0x29f652:0x1e2,_0x4d2277:0x298,_0xad4884:0x66d,_0x31dc3a:0x5f4,_0x144256:0x579,_0x1e92eb:0x153,_0xceb4c8:0x7f,_0x2c1d4d:0x121,_0x537f98:0x188,_0x421cc6:0x4fc,_0x323732:0x5b1,_0x1f563f:0x28e,_0x10fcdc:0x5c6,_0x368c23:0x5bb,_0x14c78:0x22b,_0x7c72c5:0x1d9,_0x5a275e:0x1eb},_0x447c4d={_0x5b4d9c:0x4b4,_0x50d131:0x11c},_0x3c29c1={_0x1f9624:0x27,_0x46ff90:0x115,_0x370aec:0xc0};function _0x176a2c(_0x3191e3,_0x47aa85,_0x320d3f,_0xfe4b8c){return _0x1b98ce(_0x47aa85,_0x3191e3- -_0x3c29c1._0x1f9624,_0x320d3f-_0x3c29c1._0x46ff90,_0xfe4b8c-_0x3c29c1._0x370aec);}if(_0xbcb11c[_0x176a2c(0x683,0x695,_0x45347f._0x4dbeeb,0x653)]==='assistant'&&_0xbcb11c['providerState']?.[_0x566205(0x204,_0x45347f._0x5da825,0x125,0x154)])return structuredClone(_0xbcb11c[_0x566205(0x15e,0xdc,0x15c,0x13c)][_0x176a2c(0x5b2,0x679,0x69f,_0x45347f._0xdd851)]);const _0x5b8902=[];for(const _0x193882 of normalizeContent(_0xbcb11c['content'])){if(_0x193882[_0x566205(_0x45347f._0x30e1e8,_0x45347f._0x413b2f,_0x45347f._0x3c64fb,0x2ac)]===_0x566205(_0x45347f._0x2a0a09,_0x45347f._0x57d252,_0x45347f._0x29f652,_0x45347f._0x4d2277))continue;if(_0x193882[_0x176a2c(_0x45347f._0xad4884,0x748,0x637,0x6ed)]===_0x176a2c(_0x45347f._0x31dc3a,0x53f,_0x45347f._0x144256,0x645)){_0x5b8902[_0x566205(0x1ba,0x108,0x1d9,_0x45347f._0x1e92eb)]({'type':_0x566205(0x150,0x11d,0x121,0x42),'thinking':_0x193882[_0x566205(_0x45347f._0xceb4c8,0x204,_0x45347f._0x2c1d4d,_0x45347f._0x537f98)],'signature':_0x193882[_0x176a2c(0x4c8,0x41e,_0x45347f._0x421cc6,_0x45347f._0x323732)]});continue;}if(_0x193882[_0x566205(_0x45347f._0x1f563f,0x10e,_0x45347f._0x3c64fb,0x25e)]===_0x176a2c(_0x45347f._0x10fcdc,0x605,0x520,_0x45347f._0x368c23)){_0x5b8902['push']({'type':'redacted_thinking','data':_0x193882[_0x176a2c(0x5b8,0x56a,0x609,0x4d4)]});continue;}_0x5b8902[_0x566205(0x2af,_0x45347f._0x14c78,_0x45347f._0x7c72c5,_0x45347f._0x5a275e)](structuredClone(_0x193882));}function _0x566205(_0x4cc105,_0x3a1224,_0x55f892,_0x5a8564){return _0x1b98ce(_0x3a1224,_0x55f892- -_0x447c4d._0x5b4d9c,_0x55f892-0x185,_0x5a8564-_0x447c4d._0x50d131);}return _0x5b8902;}function createAnthropicRequest(_0x1d2a51,_0x4c9cb1){const _0x555f23={_0x544a62:0x5c4,_0x27a283:0x4dc,_0x31a919:0xe8,_0x304a9b:0x6d,_0x23729f:0x147,_0x199677:0x4a,_0x349c37:0x51a,_0x10743b:0x5e7,_0x56bbd4:0x415,_0x4d0418:0x4e1,_0x55d32d:0xcf,_0x148e3f:0xf,_0xdcbd5f:0x2b,_0x5e65a1:0xc6,_0x3bc6e1:0x47d,_0x2c4692:0x522,_0x126c96:0x472,_0x10b8b3:0x4d1,_0x2ab16b:0x41c,_0x571110:0x50a,_0x2db118:0x3b8,_0x399c6d:0x584,_0x40df6e:0x5b5,_0x54ee40:0x582,_0x438caa:0x4a2,_0x19efb5:0x50f,_0x3b6b18:0x79,_0xc435ad:0x60},_0x2a0be8={_0x47cce0:0x533,_0x23fd55:0x482,_0x1d835e:0x530},_0x3b6a6b={_0x3bffba:0x2e7},_0x45bacb={_0x30967e:0x144},_0x94ad59=toProviderModelRequest(_0x1d2a51);function _0x9b3daa(_0x29558f,_0x13f278,_0x13997b,_0x16798a){return _0x1b98ce(_0x13f278,_0x13997b- -0xf4,_0x13997b-0x16,_0x16798a-0x7a);}const _0x3e3a47=createAnthropicThinkingBody(_0x1d2a51);function _0x1ee9b1(_0x2e376f,_0x5c5eef,_0x1af7d3,_0x59df5a){return _0x1b98ce(_0x2e376f,_0x5c5eef- -0x50f,_0x1af7d3-_0x45bacb._0x30967e,_0x59df5a-0xa7);}return{'accept':_0x4c9cb1?_0x9b3daa(_0x555f23._0x544a62,0x496,_0x555f23._0x27a283,0x480):_0x1ee9b1(_0x555f23._0x31a919,_0x555f23._0x304a9b,_0x555f23._0x23729f,0x88),'body':{..._0x94ad59,'messages':_0x1d2a51[_0x1ee9b1(_0x555f23._0x199677,0xda,0xde,0x192)][_0x9b3daa(_0x555f23._0x349c37,_0x555f23._0x10743b,0x553,0x46e)](_0x2300f7=>{function _0x4c08a(_0x2e2708,_0x1f33b5,_0x1d1610,_0x4e5bd8){return _0x1ee9b1(_0x1d1610,_0x1f33b5-_0x3b6a6b._0x3bffba,_0x1d1610-0x1ec,_0x4e5bd8-0x16e);}return{'role':_0x2300f7[_0x4c08a(_0x2a0be8._0x47cce0,_0x2a0be8._0x23fd55,_0x2a0be8._0x1d835e,0x523)],'content':toAnthropicRequestContent(_0x2300f7)};}),..._0x3e3a47[_0x9b3daa(0x57d,_0x555f23._0x56bbd4,_0x555f23._0x4d0418,0x469)]?{'thinking':_0x3e3a47['thinking']}:{},..._0x4c9cb1?{'stream':!![]}:{},..._0x1d2a51[_0x1ee9b1(_0x555f23._0x55d32d,_0x555f23._0x148e3f,-_0x555f23._0xdcbd5f,-_0x555f23._0x5e65a1)]?{'output_config':{'format':{'type':_0x9b3daa(_0x555f23._0x3bc6e1,_0x555f23._0x2c4692,_0x555f23._0x126c96,_0x555f23._0x10b8b3),'schema':_0x1d2a51[_0x9b3daa(_0x555f23._0x2ab16b,_0x555f23._0x571110,0x42a,_0x555f23._0x2db118)][_0x9b3daa(0x5d4,0x571,_0x555f23._0x399c6d,_0x555f23._0x40df6e)]}}}:{}},..._0x3e3a47[_0x9b3daa(_0x555f23._0x54ee40,_0x555f23._0x438caa,_0x555f23._0x19efb5,0x517)]?{'headers':_0x3e3a47['headers']}:{},'path':_0x1ee9b1(-_0x555f23._0x3b6b18,0x2e,0x8e,-_0x555f23._0xc435ad)};}function parseAnthropicResponse(_0x4f4368,_0x50f695){const _0x201cf5={_0x2debae:0x3ea,_0x8fe8e1:0x592,_0x3230ea:0x551,_0x1f0f31:0x4eb,_0x386675:0x405,_0x3692b4:0x35f,_0x2131c3:0x2b8,_0x1046ca:0x3a8,_0x120972:0x3d7,_0x612585:0x3e6,_0x1aae41:0x4a9,_0x224516:0x38c,_0x5f2583:0x3c9,_0x35471d:0x436,_0x48f2ae:0x2f3,_0x1368eb:0x57f,_0x2611a0:0x52d,_0x57d40b:0x5b7,_0x45d73c:0x530,_0x407b06:0x433,_0x20f3b5:0x472,_0x5252d9:0x5f4,_0x826dc2:0x58b,_0x75af3c:0x2d5,_0x1a5f9a:0x349,_0x4bbe48:0x530,_0x17a1ef:0x5d7,_0x1c3953:0x388,_0x4f9bbd:0x3c8,_0x1f1331:0x4b7,_0x1fbd25:0x565,_0x171b2d:0x560,_0x333932:0x41b,_0x1df398:0x49a,_0x9342c0:0x474,_0x1e37fe:0x374,_0x45189e:0x40c,_0x30d3b6:0x3ac,_0x50f27d:0x552,_0x5c0975:0x504,_0x3e3b14:0x41c,_0x10a212:0x48b,_0xfc818f:0x521,_0x548654:0x43e,_0x141a4c:0x418,_0x139137:0x367,_0x5f36ce:0x340,_0x13081c:0x584,_0x28a7e1:0x4c1,_0xb97e00:0x5b6,_0x4e3150:0x4d3,_0x1c0a82:0x470,_0x15dc56:0x443,_0x309d08:0x3fb,_0x2abeb7:0x392,_0x435b57:0x465,_0x4199f4:0x503},_0x1e905c={_0x2771e6:0x1ec},_0x1e8dbc={_0x375f9d:0x102,_0x1a597e:0x119},_0x3e59b1=[];function _0x599f1e(_0x438328,_0x33662a,_0x1c8828,_0x5cbc77){return _0x1b98ce(_0x438328,_0x33662a- -_0x1e8dbc._0x375f9d,_0x1c8828-_0x1e8dbc._0x1a597e,_0x5cbc77-0x1c6);}const _0xadb6ac=_0x4f4368[_0x599f1e(_0x201cf5._0x2debae,0x493,0x534,0x3b0)]??[];let _0xfaae64=![];for(const _0x867b54 of _0xadb6ac){if(_0x867b54[_0x599f1e(0x4f7,_0x201cf5._0x8fe8e1,0x4ff,_0x201cf5._0x3230ea)]==='thinking'){_0xfaae64=!![];isUserVisibleThinking(_0x50f695)&&_0x3e59b1[_0x599f1e(_0x201cf5._0x1f0f31,0x58b,0x629,0x5df)]({'type':_0x328042(0x43b,_0x201cf5._0x386675,_0x201cf5._0x3692b4,0x48f),'thinking':_0x867b54['thinking'],'signature':_0x867b54[_0x328042(0x3c1,0x2d9,0x382,_0x201cf5._0x2131c3)]});continue;}if(_0x867b54[_0x328042(0x48f,0x47e,0x44f,0x4c8)]===_0x328042(0x424,0x34a,_0x201cf5._0x1046ca,0x2bd)){_0xfaae64=!![];isUserVisibleThinking(_0x50f695)&&_0x3e59b1[_0x328042(0x450,0x477,0x4aa,0x4a1)]({'type':_0x328042(0x4b6,_0x201cf5._0x120972,_0x201cf5._0x612585,_0x201cf5._0x1aae41),'data':_0x867b54[_0x328042(_0x201cf5._0x224516,_0x201cf5._0x5f2583,_0x201cf5._0x35471d,_0x201cf5._0x48f2ae)]});continue;}if(_0x867b54[_0x599f1e(_0x201cf5._0x1368eb,0x592,_0x201cf5._0x2611a0,0x4d1)]===_0x599f1e(_0x201cf5._0x57d40b,0x547,0x502,_0x201cf5._0x45d73c)){_0x867b54[_0x328042(0x3cb,_0x201cf5._0x407b06,0x4b3,_0x201cf5._0x20f3b5)]['length']>0x0&&_0x3e59b1[_0x599f1e(_0x201cf5._0x5252d9,_0x201cf5._0x826dc2,0x536,0x61e)](structuredClone(_0x867b54));continue;}_0x3e59b1['push'](structuredClone(_0x867b54));}function _0x328042(_0x2e77ee,_0x392811,_0x13a8a0,_0x5c9962){return _0x1b98ce(_0x2e77ee,_0x392811- -0x216,_0x13a8a0-_0x1e905c._0x2771e6,_0x5c9962-0x1c8);}return{'id':_0x4f4368['id']??_0x328042(0x203,_0x201cf5._0x75af3c,0x311,0x2c6)+Date[_0x328042(_0x201cf5._0x1a5f9a,0x33c,0x39f,0x3be)](),'content':_0x3e59b1,'stopReason':_0x3e59b1[_0x599f1e(0x54a,0x562,_0x201cf5._0x4bbe48,_0x201cf5._0x17a1ef)](_0x107dca=>_0x107dca['type']==='tool_use')?_0x328042(_0x201cf5._0x1c3953,0x450,0x3a7,_0x201cf5._0x4f9bbd):_0x4f4368[_0x599f1e(_0x201cf5._0x1f1331,0x57b,_0x201cf5._0x1fbd25,0x4a8)]===_0x328042(0x391,0x450,0x4b5,0x4da)?_0x599f1e(0x602,0x564,_0x201cf5._0x171b2d,0x5c8):_0x328042(0x3d3,_0x201cf5._0x333932,_0x201cf5._0x1df398,_0x201cf5._0x9342c0),'usage':{'inputTokens':(_0x4f4368['usage']?.[_0x328042(_0x201cf5._0x1e37fe,_0x201cf5._0x45189e,_0x201cf5._0x30d3b6,0x4cf)]??0x0)+(_0x4f4368[_0x328042(_0x201cf5._0x50f27d,0x470,_0x201cf5._0x5c0975,_0x201cf5._0x3e3b14)]?.[_0x599f1e(0x472,_0x201cf5._0x10a212,0x508,0x509)]??0x0)+(_0x4f4368[_0x599f1e(_0x201cf5._0xfc818f,0x584,0x582,0x589)]?.[_0x328042(_0x201cf5._0x548654,_0x201cf5._0x141a4c,0x4f1,0x4de)]??0x0),'outputTokens':_0x4f4368['usage']?.[_0x328042(0x35f,0x3e6,_0x201cf5._0x139137,_0x201cf5._0x5f36ce)]??0x0,..._0x4f4368[_0x599f1e(0x5f3,_0x201cf5._0x13081c,_0x201cf5._0x28a7e1,_0x201cf5._0xb97e00)]?.[_0x328042(0x307,0x377,0x40e,0x437)]?{'cacheReadInputTokens':_0x4f4368[_0x328042(_0x201cf5._0x4e3150,_0x201cf5._0x1c0a82,_0x201cf5._0x15dc56,_0x201cf5._0x309d08)]['cache_read_input_tokens']}:{},..._0x4f4368[_0x328042(0x3bd,0x470,_0x201cf5._0x2abeb7,0x4e3)]?.['cache_creation_input_tokens']?{'cacheCreationInputTokens':_0x4f4368[_0x328042(_0x201cf5._0x435b57,0x470,_0x201cf5._0x4199f4,0x3fe)]['cache_creation_input_tokens']}:{}},..._0xfaae64?{'providerState':{'anthropicAssistantContent':structuredClone(_0xadb6ac)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x1b1adc(0x6d,-0x6c,0x7,-0x44)]=new Map();[_0x1b98ce(0x561,0x52f,0x464,0x56f)]=0x0;[_0x1b1adc(0xce,0xb0,0xd8,0x11c)]=0x0;[_0x1b98ce(0x4a5,0x4fe,0x42a,0x4c0)]=0x0;[_0x1b98ce(0x480,0x517,0x430,0x51b)]='msg-'+Date[_0x1b1adc(-0x92,-0x97,-0xf6,-0xb5)]();[_0x1b1adc(-0x2f,0x16,0x7c,-0xd)]=0x0;[_0x1b1adc(-0x1b0,-0xfb,-0x65,-0x28)];['stopReason']=_0x1b1adc(-0x3b,0x48,0x65,0x96);constructor(_0x55f8e5){const _0x20ad1a={_0x43656c:0x223},_0x4d8641={_0x56f1e2:0x43,_0x15ef2e:0x82,_0x27c920:0x4};function _0x3853c6(_0x57a59b,_0x3d979b,_0x3fad27,_0x5dd7e7){return _0x1b1adc(_0x57a59b-_0x4d8641._0x56f1e2,_0x3d979b- -_0x4d8641._0x15ef2e,_0x3fad27-_0x4d8641._0x27c920,_0x57a59b);}this[_0x3853c6(-0x230,-0x17d,-0xaf,-_0x20ad1a._0x43656c)]=_0x55f8e5;}[_0x1b98ce(0x62d,0x5b0,0x4cc,0x549)](_0x4839df){const _0x5f3d03={_0x280632:0x6a2,_0x4a6757:0x5d9,_0x43fbb0:0x5b6,_0x309712:0x66b,_0x1fc24e:0x669,_0x4feaee:0x54a,_0x485f08:0x5c3,_0x1bc360:0x616,_0x32c11e:0x61f,_0x3cb4b0:0x525,_0x491e80:0x4a6,_0x44caff:0x6ad,_0x274d11:0x49a,_0x1241d7:0x567,_0x435d5e:0x59a,_0x2c3c45:0x54e,_0xdbc59:0x546,_0x2eb51a:0x54a,_0xc25c1a:0x589,_0x4a3034:0x5d4,_0x2f7d18:0x681,_0x421402:0x640,_0x5022a9:0x5c3,_0x8c99c3:0x596,_0x343e34:0x53c,_0x509db3:0x5f9,_0x151cc5:0x575,_0x2527a:0x4c7,_0x4ed507:0x638,_0x55b1d0:0x55c,_0x52c2a7:0x55f,_0x5add8a:0x677,_0x39e590:0x553,_0x479435:0x5ca,_0x2728a2:0x63f,_0x2e1898:0x58d,_0x5b184d:0x5f0,_0x32040b:0x5f6,_0x1bfd18:0x5bf,_0x3764b3:0x68c,_0x53ae3c:0x507,_0x2ba637:0x5c6,_0x42be40:0x5d1,_0x3a581d:0x601,_0x2cd0c2:0x65a,_0x5e8bf3:0x663,_0x4ecbc7:0x5b5,_0x4d0a85:0x599,_0xa10877:0x4a9,_0x4c02cb:0x587,_0xeed462:0x5ec,_0x574041:0x509,_0x28014b:0x61b,_0x123c33:0x559,_0x32884d:0x666,_0x1369fd:0x7fe,_0x3499d8:0x71f,_0x50803c:0x587,_0x289b40:0x62b,_0x3951d1:0x46a,_0x17906e:0x76f,_0x568aed:0x701,_0x1b2724:0x603,_0x23fce9:0x622,_0x5c5da0:0x6c0,_0x27b9d4:0x42d,_0x2fb36f:0x43c,_0x616321:0x4f6,_0x195df4:0x42f,_0x2eebd9:0x3cc,_0xf3d63a:0x6da,_0x52a8ef:0x661,_0x407873:0x56b,_0x1c6beb:0x602,_0x37596a:0x3b0,_0x301ceb:0x390,_0x107c3b:0x424,_0x2acd1f:0x4c5,_0x458c82:0x6d2,_0x186e29:0x71d,_0x38aabd:0x6a7,_0x2ec713:0x580,_0x1d8e2c:0x550,_0x1cc003:0x5b8,_0x268cd9:0x608,_0x473a38:0x58a,_0x1cf092:0x67a,_0xb9e96d:0x688,_0x4c7d56:0x7b6,_0x3e6d5c:0x6f2,_0x2a4cc3:0x6a4,_0x57cf8a:0x61e,_0x2ebd8f:0x5be,_0x3356a9:0x612,_0x5a8ca2:0x515,_0xf21e2b:0x5e6,_0x1c096a:0x5db,_0x3db16a:0x40d,_0xb746e1:0x54f,_0xe047ff:0x674,_0x1ececf:0x5e5,_0xe60a83:0x5a3,_0x9d6564:0x63d,_0x436273:0x5f3,_0x2f24c7:0x510,_0x30a454:0x41f,_0x326413:0x41d,_0x1d4053:0x6f1,_0x2e37f9:0x6a1,_0xabe3d6:0x72a,_0x141318:0x607,_0x48f927:0x5bb,_0x56dba8:0x545,_0xcc954e:0x496,_0x2ac8b5:0x55e,_0x4a7ac3:0x57a,_0x28a6b5:0x63b,_0x3ff602:0x54d,_0x4aea36:0x58b,_0x1aa032:0x48a,_0x3f9e67:0x56d,_0x2e2b62:0x548,_0x13f4f6:0x56a,_0x2f6390:0x522,_0x56245d:0x4bb,_0x474c5e:0x57e,_0x192ea8:0x59e,_0x939f3a:0x5ce,_0x1d0a7f:0x731,_0x2152a4:0x5ae,_0x641205:0x59f,_0x49ddf5:0x6c2,_0x27fad4:0x684,_0x17e8d7:0x6f1,_0x15b81c:0x657,_0x2046df:0x6b5,_0x5d0802:0x57c,_0x3817d8:0x6b2,_0x437f9b:0x4a4,_0x1b5541:0x4ce,_0x4ffb64:0x428,_0x738183:0x4e6,_0xcb5591:0x453,_0x25cd9a:0x6d0,_0x2da5f9:0x73f,_0xd0dca0:0x5d8,_0x451c76:0x784,_0x2fdf90:0x76c,_0x348b89:0x624,_0x32261d:0x586,_0x4ef272:0x7a6,_0xb54fda:0x6ea,_0x431b63:0x71a,_0x4a6807:0x43b,_0x4611b7:0x4b4,_0x495086:0x4f6,_0x3d1f45:0x472,_0x46dfda:0x4ba,_0x1a7f60:0x4f1,_0x5a4ada:0x44d,_0x40aeaa:0x43c,_0x3e3656:0x729,_0x52cf7d:0x64c,_0x2781ca:0x6d3,_0x298d71:0x59d,_0x222ea2:0x54b,_0x2ebe33:0x524,_0x57b32b:0x5dd,_0x2faa88:0x55d,_0x144c27:0x43a,_0x2fe18c:0x506,_0x330893:0x565,_0x35343e:0x5d9,_0x1021a4:0x5d4,_0x148e0d:0x54d,_0x34460a:0x4f0,_0x1fd83f:0x370,_0x104d82:0x404,_0x26318b:0x5a4,_0x175f20:0x574,_0x135890:0x55b,_0x5a3673:0x5ed,_0x5472aa:0x504,_0x526ccd:0x5a7,_0x445bec:0x398,_0x7b4b0e:0x41f,_0xebf598:0x56f,_0x25a866:0x51f,_0x2997f0:0x4e7,_0xd4196c:0x33a,_0x1c6294:0x4bf,_0xf687f1:0x619,_0x119528:0x6a8,_0x208fa8:0x5eb,_0x3c2813:0x757,_0x577058:0x763,_0x8071c9:0x4db,_0x37f642:0x54f,_0x49d821:0x5d0,_0x55c23b:0x483,_0xf34d55:0x4a7,_0x45731f:0x520,_0x5ae444:0x4cf,_0x397910:0x437,_0x33aba8:0x430,_0x20b129:0x68d,_0x35cb86:0x5cd,_0x486747:0x716,_0x28f1d7:0x639,_0x8b5d82:0x6c4,_0x5ac496:0x69e,_0x3fd53e:0x5d2,_0x358280:0x690,_0x445a8e:0x5f9,_0x346c37:0x5d2,_0x55563d:0x5bc,_0x8977d8:0x6f2},_0x585f0c={_0x1f8a5e:0x88},_0x4929da={_0xc3e9ab:0x50a,_0x150d55:0x63},_0x20342c=_0x4839df[_0xb101b3(_0x5f3d03._0x280632,_0x5f3d03._0x4a6757,0x646,_0x5f3d03._0x43fbb0)]('\x0a'),_0x21c63f=_0x20342c[_0xb101b3(0x73e,_0x5f3d03._0x309712,0x64a,_0x5f3d03._0x1fc24e)](_0x578aba=>_0x578aba[_0xb101b3(0x77b,0x697,0x6e5,0x6df)]('event:'))?.['slice'](0x6)[_0xb101b3(_0x5f3d03._0x4feaee,_0x5f3d03._0x485f08,_0x5f3d03._0x1bc360,_0x5f3d03._0x32c11e)](),_0x1d8aa0=_0x20342c[_0xb101b3(0x56c,0x5c7,0x676,0x5c1)](_0x5c80de=>_0x5c80de[_0xb101b3(0x72b,0x758,0x697,0x6df)](_0xb101b3(0x748,0x7d0,0x6ec,0x715)))['map'](_0x43d409=>_0x43d409['slice'](0x5)[_0xb101b3(0x5e8,0x6c1,0x73c,0x6cd)]())[_0x5a9712(_0x5f3d03._0x3cb4b0,0x40f,_0x5f3d03._0x491e80,0x4f7)]('\x0a')[_0xb101b3(0x636,0x5b0,_0x5f3d03._0x44caff,0x61f)]();if(_0x1d8aa0[_0xb101b3(_0x5f3d03._0x274d11,_0x5f3d03._0x1241d7,_0x5f3d03._0x435d5e,_0x5f3d03._0x2c3c45)]===0x0||_0x1d8aa0===_0x5a9712(0x5da,0x524,_0x5f3d03._0xdbc59,_0x5f3d03._0x2eb51a))return[];const _0x137e94=JSON[_0xb101b3(0x515,0x677,0x640,_0x5f3d03._0xc25c1a)](_0x1d8aa0);function _0x5a9712(_0x51df86,_0x4c85cc,_0x4a08c8,_0x16311e){return _0x1b1adc(_0x51df86-0x118,_0x4a08c8-_0x4929da._0xc3e9ab,_0x4a08c8-_0x4929da._0x150d55,_0x4c85cc);}switch(_0x21c63f){case _0xb101b3(_0x5f3d03._0x4a3034,_0x5f3d03._0x2f7d18,_0x5f3d03._0x421402,_0x5f3d03._0x5022a9):{const _0x50af95=_0x137e94['message'];this[_0xb101b3(0x50f,0x620,0x4f0,0x575)]=_0x50af95?.['id']??this[_0xb101b3(_0x5f3d03._0x8c99c3,_0x5f3d03._0x343e34,_0x5f3d03._0x509db3,_0x5f3d03._0x151cc5)],this['inputTokens']=_0x50af95?.['usage']?.[_0x5a9712(0x621,0x5d4,0x543,0x5d0)]??this[_0xb101b3(_0x5f3d03._0x2527a,0x634,_0x5f3d03._0x4ed507,_0x5f3d03._0x55b1d0)],this[_0x5a9712(_0x5f3d03._0x52c2a7,0x598,0x5ba,0x623)]=_0x50af95?.[_0xb101b3(0x78b,_0x5f3d03._0x5add8a,0x74f,0x6e4)]?.['cache_read_input_tokens']??this['cacheReadInputTokens'],this[_0xb101b3(_0x5f3d03._0x39e590,_0x5f3d03._0x479435,_0x5f3d03._0x2728a2,_0x5f3d03._0x2e1898)]=_0x50af95?.['usage']?.[_0xb101b3(_0x5f3d03._0x5b184d,_0x5f3d03._0x32040b,_0x5f3d03._0x1bfd18,_0x5f3d03._0x3764b3)]??this['cacheCreationInputTokens'];break;}case _0xb101b3(0x58f,0x683,_0x5f3d03._0x53ae3c,_0x5f3d03._0x2ba637):{const _0x42d4e0=typeof _0x137e94['index']==='number'?_0x137e94[_0xb101b3(0x6a5,_0x5f3d03._0x42be40,0x57d,_0x5f3d03._0x3a581d)]:0x0,_0x33c26d=_0x137e94['content_block'];if(_0x33c26d?.[_0x5a9712(_0x5f3d03._0x2cd0c2,_0x5f3d03._0x5e8bf3,_0x5f3d03._0x4ecbc7,0x625)]===_0x5a9712(_0x5f3d03._0x4d0a85,_0x5f3d03._0xa10877,_0x5f3d03._0x4c02cb,0x582)&&_0x33c26d['id']&&_0x33c26d['name'])return this[_0xb101b3(_0x5f3d03._0x3cb4b0,0x68e,_0x5f3d03._0xeed462,0x5db)]['set'](_0x42d4e0,{'id':_0x33c26d['id'],'index':_0x42d4e0,'inputJson':JSON[_0x5a9712(_0x5f3d03._0x574041,_0x5f3d03._0x28014b,_0x5f3d03._0x123c33,0x637)](_0x33c26d[_0xb101b3(0x6af,_0x5f3d03._0x32884d,_0x5f3d03._0x1369fd,_0x5f3d03._0x3499d8)]??{}),'kind':_0x5a9712(0x5a1,0x5d3,_0x5f3d03._0x50803c,_0x5f3d03._0x289b40),'name':_0x33c26d['name']}),[{'type':_0x5a9712(0x4f8,0x3a4,0x494,_0x5f3d03._0x3951d1),'id':_0x33c26d['id'],'index':_0x42d4e0,'name':_0x33c26d[_0xb101b3(_0x5f3d03._0x17906e,_0x5f3d03._0x568aed,_0x5f3d03._0x1b2724,0x6d9)]}];if(_0x33c26d?.[_0xb101b3(_0x5f3d03._0x23fce9,_0x5f3d03._0x5c5da0,0x72d,0x6f2)]===_0x5a9712(0x527,_0x5f3d03._0x27b9d4,0x4f6,0x48b)){this[_0x5a9712(_0x5f3d03._0x2fb36f,0x49e,0x49e,0x409)][_0xb101b3(0x4f4,0x4ed,0x561,0x55a)](_0x42d4e0,{'index':_0x42d4e0,'kind':_0x5a9712(_0x5f3d03._0x435d5e,0x5a6,_0x5f3d03._0x616321,_0x5f3d03._0x195df4),'signature':typeof _0x33c26d[_0x5a9712(_0x5f3d03._0x2eebd9,0x40c,0x410,0x4a2)]===_0xb101b3(_0x5f3d03._0xf3d63a,_0x5f3d03._0x52a8ef,_0x5f3d03._0x407873,_0x5f3d03._0x1c6beb)?_0x33c26d[_0x5a9712(0x3a7,_0x5f3d03._0x37596a,0x410,_0x5f3d03._0x301ceb)]:'','thinking':typeof _0x33c26d[_0xb101b3(0x6ca,0x66d,0x5e5,0x6a7)]===_0x5a9712(_0x5f3d03._0x107c3b,0x414,_0x5f3d03._0x2acd1f,0x482)?_0x33c26d[_0xb101b3(0x5c7,_0x5f3d03._0x458c82,_0x5f3d03._0x186e29,_0x5f3d03._0x38aabd)]:typeof _0x33c26d[_0xb101b3(_0x5f3d03._0x2ec713,_0x5f3d03._0x1d8e2c,0x700,0x633)]===_0xb101b3(_0x5f3d03._0x1cc003,_0x5f3d03._0x268cd9,_0x5f3d03._0x473a38,_0x5f3d03._0x1c6beb)?String(_0x33c26d[_0xb101b3(_0x5f3d03._0x1cf092,0x6a0,0x57c,0x633)]):''});break;}if(_0x33c26d?.[_0xb101b3(0x673,_0x5f3d03._0xb9e96d,_0x5f3d03._0x4c7d56,_0x5f3d03._0x3e6d5c)]===_0xb101b3(_0x5f3d03._0x2a4cc3,0x68b,_0x5f3d03._0x57cf8a,_0x5f3d03._0x2ebd8f)){this[_0xb101b3(_0x5f3d03._0x3356a9,_0x5f3d03._0x5a8ca2,_0x5f3d03._0xf21e2b,_0x5f3d03._0x1c096a)]['set'](_0x42d4e0,{'index':_0x42d4e0,'kind':_0x5a9712(0x53e,_0x5f3d03._0x3db16a,0x481,_0x5f3d03._0xb746e1),'data':typeof _0x33c26d['data']==='string'?String(_0x33c26d[_0xb101b3(_0x5f3d03._0xe047ff,_0x5f3d03._0x1ececf,_0x5f3d03._0xe60a83,_0x5f3d03._0x9d6564)]):''});break;}this[_0xb101b3(0x55f,_0x5f3d03._0x436273,_0x5f3d03._0x2f24c7,0x5db)][_0x5a9712(_0x5f3d03._0x30a454,0x35b,_0x5f3d03._0x326413,0x4c3)](_0x42d4e0,{'index':_0x42d4e0,'kind':'text','text':_0x33c26d?.[_0xb101b3(_0x5f3d03._0x1d4053,_0x5f3d03._0x2e37f9,_0x5f3d03._0xabe3d6,0x6a7)]??''});break;}case _0xb101b3(0x4fe,0x5a6,_0x5f3d03._0x141318,_0x5f3d03._0x48f927):{const _0xb14525=typeof _0x137e94[_0xb101b3(0x68f,0x6bb,_0x5f3d03._0x56dba8,0x601)]===_0xb101b3(0x5a3,_0x5f3d03._0xcc954e,_0x5f3d03._0x2ac8b5,_0x5f3d03._0x4a7ac3)?_0x137e94['index']:0x0,_0x4f27e2=this['blocks'][_0x5a9712(_0x5f3d03._0x28a6b5,0x5fb,_0x5f3d03._0x3ff602,0x613)](_0xb14525),_0x577cf6=_0x137e94['delta'];if(!_0x4f27e2||!_0x577cf6?.[_0xb101b3(0x72c,0x61e,0x636,_0x5f3d03._0x3e6d5c)])break;if(_0x577cf6[_0x5a9712(0x668,0x5e8,_0x5f3d03._0x4ecbc7,_0x5f3d03._0x4aea36)]===_0x5a9712(_0x5f3d03._0x616321,_0x5f3d03._0x2eebd9,_0x5f3d03._0x1aa032,_0x5f3d03._0x3f9e67)&&_0x4f27e2['kind']===_0xb101b3(0x75d,0x724,_0x5f3d03._0x42be40,0x6a7)&&typeof _0x577cf6[_0x5a9712(_0x5f3d03._0x2e2b62,0x5a0,_0x5f3d03._0x13f4f6,_0x5f3d03._0x2f6390)]==='string')return _0x4f27e2[_0x5a9712(0x4aa,_0x5f3d03._0x56245d,0x56a,0x4bf)]+=_0x577cf6[_0x5a9712(0x5ab,_0x5f3d03._0x474c5e,0x56a,0x600)],[{'type':_0x5a9712(_0x5f3d03._0x192ea8,_0x5f3d03._0x939f3a,0x5c6,0x4f5),'index':_0xb14525,'text':_0x577cf6[_0xb101b3(0x789,0x77e,_0x5f3d03._0x1d0a7f,_0x5f3d03._0x38aabd)]}];if(_0x577cf6[_0x5a9712(0x52a,0x548,_0x5f3d03._0x4ecbc7,_0x5f3d03._0x2152a4)]===_0xb101b3(0x684,_0x5f3d03._0x641205,_0x5f3d03._0x49ddf5,0x668)&&_0x4f27e2[_0x5a9712(0x581,_0x5f3d03._0x27fad4,0x5dd,0x5ff)]===_0x5a9712(0x58d,0x5f1,0x587,0x5da)&&typeof _0x577cf6[_0xb101b3(0x6e5,_0x5f3d03._0x17e8d7,_0x5f3d03._0x15b81c,_0x5f3d03._0x2046df)]===_0xb101b3(_0x5f3d03._0x5d0802,0x563,_0x5f3d03._0x3817d8,0x602))return _0x4f27e2[_0x5a9712(0x54c,_0x5f3d03._0x437f9b,0x4e6,_0x5f3d03._0x1b5541)]==='{}'&&(_0x4f27e2[_0x5a9712(0x4d7,_0x5f3d03._0x4ffb64,_0x5f3d03._0x738183,_0x5f3d03._0xcb5591)]=''),_0x4f27e2[_0xb101b3(0x5d0,0x547,0x5d6,0x623)]+=_0x577cf6[_0xb101b3(_0x5f3d03._0x25cd9a,_0x5f3d03._0x2da5f9,0x64a,0x6b5)],[{'type':_0xb101b3(0x69b,0x524,_0x5f3d03._0xd0dca0,_0x5f3d03._0x42be40),'id':_0x4f27e2['id'],'index':_0xb14525,'inputDelta':_0x577cf6[_0xb101b3(0x706,_0x5f3d03._0x451c76,_0x5f3d03._0x2fdf90,0x6b5)]}];if(_0x577cf6['type']===_0x5a9712(0x580,_0x5f3d03._0x348b89,_0x5f3d03._0x32261d,_0x5f3d03._0x2f24c7)&&_0x4f27e2[_0xb101b3(_0x5f3d03._0x4ef272,_0x5f3d03._0xb54fda,0x6d8,_0x5f3d03._0x431b63)]===_0x5a9712(0x491,_0x5f3d03._0x4a6807,0x4f6,_0x5f3d03._0x4611b7)){const _0x2dd23b=typeof _0x577cf6[_0x5a9712(0x561,0x521,_0x5f3d03._0x495086,_0x5f3d03._0x3d1f45)]==='string'?String(_0x577cf6['thinking']):'';if(_0x2dd23b[_0xb101b3(0x476,_0x5f3d03._0x46dfda,_0x5f3d03._0x1a7f60,0x54e)]>0x0){_0x4f27e2['thinking']+=_0x2dd23b;if(isUserVisibleThinking(this['request']))return[{'type':_0x5a9712(0x4d5,_0x5f3d03._0x5a4ada,0x4ac,_0x5f3d03._0x40aeaa),'index':_0xb14525,'thinking':_0x2dd23b}];}}if(_0x577cf6[_0xb101b3(_0x5f3d03._0x3e3656,_0x5f3d03._0x52cf7d,_0x5f3d03._0x2781ca,0x6f2)]===_0xb101b3(0x628,_0x5f3d03._0x298d71,0x4fd,_0x5f3d03._0x222ea2)&&_0x4f27e2[_0x5a9712(_0x5f3d03._0x2f6390,_0x5f3d03._0x2ebe33,_0x5f3d03._0x57b32b,_0x5f3d03._0x2faa88)]==='thinking'){const _0x38817d=typeof _0x577cf6['signature']===_0x5a9712(_0x5f3d03._0x144c27,_0x5f3d03._0x2fe18c,0x4c5,_0x5f3d03._0x330893)?String(_0x577cf6['signature']):'';if(_0x38817d[_0xb101b3(_0x5f3d03._0x35343e,0x503,_0x5f3d03._0x1021a4,0x54e)]>0x0){_0x4f27e2[_0xb101b3(0x5ad,0x5f4,0x5f5,_0x5f3d03._0x148e0d)]=_0x38817d;if(isUserVisibleThinking(this[_0x5a9712(_0x5f3d03._0x34460a,_0x5f3d03._0x1fd83f,0x40f,_0x5f3d03._0x104d82)]))return[{'type':_0xb101b3(_0x5f3d03._0x26318b,0x61b,0x4f6,_0x5f3d03._0x175f20),'index':_0xb14525,'signature':_0x38817d}];}}break;}case'message_delta':{const _0x3cb204=_0x137e94[_0x5a9712(0x423,0x4dd,_0x5f3d03._0x4611b7,_0x5f3d03._0x135890)],_0x118b47=_0x137e94[_0x5a9712(_0x5f3d03._0x5a3673,_0x5f3d03._0x5472aa,_0x5f3d03._0x526ccd,_0x5f3d03._0x1b2724)];this[_0x5a9712(0x4f8,_0x5f3d03._0x445bec,_0x5f3d03._0x7b4b0e,0x3a6)]=_0x118b47?.[_0x5a9712(_0x5f3d03._0xebf598,_0x5f3d03._0x25a866,0x543,_0x5f3d03._0x2997f0)]??this[_0x5a9712(_0x5f3d03._0xd4196c,_0x5f3d03._0x1c6294,0x41f,0x486)],this['cacheReadInputTokens']=_0x118b47?.[_0xb101b3(0x61b,_0x5f3d03._0xf687f1,_0x5f3d03._0x119528,_0x5f3d03._0x208fa8)]??this[_0xb101b3(0x67a,_0x5f3d03._0x3c2813,_0x5f3d03._0x577058,0x6f7)],this['cacheCreationInputTokens']=_0x118b47?.[_0x5a9712(0x5e2,_0x5f3d03._0x8071c9,_0x5f3d03._0x37f642,_0x5f3d03._0x49d821)]??this[_0x5a9712(_0x5f3d03._0x55c23b,0x47d,0x450,0x4f6)],this[_0x5a9712(0x48c,_0x5f3d03._0xf34d55,_0x5f3d03._0x45731f,_0x5f3d03._0x5ae444)]=_0x118b47?.[_0x5a9712(_0x5f3d03._0x397910,0x461,0x51d,_0x5f3d03._0x33aba8)]??this[_0x5a9712(0x477,0x4b1,0x520,0x5e8)],this['stopReason']=_0x3cb204?.[_0x5a9712(_0x5f3d03._0x20b129,_0x5f3d03._0x35cb86,0x59e,0x61a)]===_0xb101b3(0x66b,0x75a,_0x5f3d03._0x486747,0x6c4)?_0xb101b3(_0x5f3d03._0x5add8a,_0x5f3d03._0x28f1d7,_0x5f3d03._0x32884d,_0x5f3d03._0x8b5d82):'end_turn';break;}case _0x5a9712(_0x5f3d03._0x5ac496,0x621,_0x5f3d03._0x3fd53e,0x69b):{const _0x56074f=_0x137e94[_0x5a9712(_0x5f3d03._0x358280,_0x5f3d03._0x445a8e,_0x5f3d03._0x346c37,0x518)];throw new ProviderStreamEventError(_0x56074f?.['message']??_0xb101b3(0x4b6,0x638,_0x5f3d03._0x55563d,0x597),{'code':_0x56074f?.[_0xb101b3(0x74b,0x6bf,0x7af,_0x5f3d03._0x8977d8)],'retryable':!![]});}}function _0xb101b3(_0x123a4c,_0xe3943,_0xf82147,_0x16700f){return _0x1b98ce(_0xf82147,_0x16700f-0x5e,_0xf82147-_0x585f0c._0x1f8a5e,_0x16700f-0xb2);}return[];}[_0x1b1adc(-0xa,-0x94,-0x12b,-0xbf)](){const _0x4b04b5={_0x6c2a02:0xb9,_0x4e4d59:0x9a,_0x5a6586:0x41,_0x536685:0x47,_0xaf3c84:0x209,_0x32eecc:0x11d,_0x150bf0:0x165,_0x863c5a:0x19a,_0xd06040:0x2ed,_0x4de542:0x234,_0xde5a6d:0xdf,_0x3bd31f:0xaa,_0x349555:0x34c,_0x252e04:0x13,_0x3712de:0x130,_0x5713a3:0x1f9,_0x5d497f:0x4,_0x5163bd:0xe3,_0x150253:0x331,_0x3d9eb6:0x3ca,_0x3de126:0x3c,_0x3696db:0x36,_0x5a18f8:0x105,_0x5aecd1:0x54,_0x55c50c:0xb0,_0x376878:0x81,_0x424dd7:0x360,_0x23cd3d:0x2c0,_0x31822f:0x30f,_0x4357ce:0x56,_0x282c05:0xbe,_0x438c59:0x283,_0x43fe1f:0x1aa,_0x35d3bf:0x31f,_0x34c4ee:0x2db,_0x42bc22:0x38d,_0x28d1de:0x6d,_0x52f3bf:0x70,_0x23fecc:0x203,_0x2db00e:0x151,_0x16e841:0x1a2,_0x27ddd8:0x18f,_0x39c2c2:0x110,_0x29e748:0x5b,_0xd74214:0xfa,_0x3a49f9:0x1b1,_0x37d94c:0x2d,_0x54ba24:0x70,_0x56a1b8:0x141,_0x155ed9:0x255,_0x420fdc:0x1ae},_0x2e3e0e={_0x533cd9:0x15,_0x37235a:0x127},_0x11f9fe={_0x31bf87:0x59f,_0x106d26:0xd3};function _0x3828c0(_0x300322,_0x13e308,_0x5f1f8b,_0x13f939){return _0x1b98ce(_0x5f1f8b,_0x13e308- -_0x11f9fe._0x31bf87,_0x5f1f8b-0x11e,_0x13f939-_0x11f9fe._0x106d26);}const _0x1c97e6=Array['from'](this[_0x3828c0(0xc1,-0x22,-_0x4b04b5._0x6c2a02,_0x4b04b5._0x4e4d59)][_0x3828c0(_0x4b04b5._0x5a6586,-0x20,-_0x4b04b5._0x536685,-0xff)]())['sort']((_0x3e9d9a,_0x448476)=>_0x3e9d9a['index']-_0x448476[_0x3828c0(0x34,0x4,-0x44,0x33)]),_0x17df8d=[];for(const _0x53d781 of _0x1c97e6){if(_0x53d781[_0x3828c0(_0x4b04b5._0xaf3c84,_0x4b04b5._0x32eecc,_0x4b04b5._0x150bf0,_0x4b04b5._0x863c5a)]===_0x5a0d6a(_0x4b04b5._0xd06040,_0x4b04b5._0x4de542,0x262,0x271)){_0x53d781[_0x3828c0(_0x4b04b5._0xde5a6d,_0x4b04b5._0x3bd31f,-0x11,0xda)]['length']>0x0&&_0x17df8d['push']({'type':_0x5a0d6a(0x2ed,_0x4b04b5._0x349555,0x2f1,0x256),'text':_0x53d781[_0x3828c0(-0x1a,0xaa,_0x4b04b5._0x252e04,_0x4b04b5._0x3712de)]});continue;}if(_0x53d781[_0x3828c0(0xc8,0x11d,_0x4b04b5._0x5713a3,0xc2)]===_0x3828c0(0x28,0x36,-_0x4b04b5._0x5d497f,_0x4b04b5._0x5163bd)){_0x17df8d[_0x5a0d6a(_0x4b04b5._0x150253,_0x4b04b5._0x3d9eb6,0x265,0x3f8)]({'type':_0x3828c0(-_0x4b04b5._0x3de126,_0x4b04b5._0x3696db,_0x4b04b5._0x5a18f8,-0x1b),'thinking':_0x53d781['thinking'],'signature':_0x53d781[_0x3828c0(-_0x4b04b5._0x5aecd1,-_0x4b04b5._0x55c50c,-_0x4b04b5._0x376878,-0x2d)]});continue;}if(_0x53d781[_0x5a0d6a(_0x4b04b5._0x424dd7,_0x4b04b5._0x23cd3d,0x2f6,_0x4b04b5._0x31822f)]===_0x3828c0(-_0x4b04b5._0x4357ce,-0x3f,-0x11b,0x2b)){_0x17df8d['push']({'type':_0x3828c0(-_0x4b04b5._0x282c05,-0x3f,0x6c,-0xb),'data':_0x53d781[_0x5a0d6a(_0x4b04b5._0x438c59,_0x4b04b5._0x43fe1f,0x357,0x345)]});continue;}_0x17df8d[_0x5a0d6a(0x331,0x29e,0x28b,0x38b)]({'type':'tool_use','id':_0x53d781['id'],'name':_0x53d781[_0x5a0d6a(_0x4b04b5._0x35d3bf,_0x4b04b5._0x34c4ee,0x294,_0x4b04b5._0x42bc22)],'input':parseToolInput(_0x53d781['inputJson']['length']>0x0?_0x53d781['inputJson']:'{}')});}function _0x5a0d6a(_0x33f4ca,_0xb27853,_0x12be60,_0x2c3b8d){return _0x1b1adc(_0x33f4ca-_0x2e3e0e._0x533cd9,_0x33f4ca-0x28d,_0x12be60-_0x2e3e0e._0x37235a,_0xb27853);}return parseAnthropicResponse({'id':this[_0x3828c0(-0xe9,-0x88,-_0x4b04b5._0x28d1de,-_0x4b04b5._0x52f3bf)],'type':_0x5a0d6a(0x2f4,0x2c1,0x300,0x391),'role':_0x3828c0(0xb1,-0x6,-0xb5,-0xb),'content':_0x17df8d,'stop_reason':this[_0x5a0d6a(_0x4b04b5._0x23fecc,0x2d4,0x16d,_0x4b04b5._0x2db00e)],'stop_sequence':null,'usage':{'input_tokens':this[_0x5a0d6a(_0x4b04b5._0x16e841,0xe7,_0x4b04b5._0x27ddd8,_0x4b04b5._0x39c2c2)],'output_tokens':this['outputTokens'],'cache_read_input_tokens':this[_0x3828c0(_0x4b04b5._0x29e748,_0x4b04b5._0xd74214,_0x4b04b5._0x3a49f9,0x157)],'cache_creation_input_tokens':this[_0x3828c0(_0x4b04b5._0x37d94c,-_0x4b04b5._0x54ba24,0x5,-_0x4b04b5._0x56a1b8)]}},this[_0x5a0d6a(0x192,_0x4b04b5._0x155ed9,0x247,_0x4b04b5._0x420fdc)]);}};function createAnthropicSurfaces(){return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':'http-json','createRequest'(_0xe466fa){return createAnthropicRequest(_0xe466fa,![]);},'parseResponse'(_0x3c5e4a,_0x43fbb8){return parseAnthropicResponse(_0x3c5e4a,_0x43fbb8);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x18c1b5){return createAnthropicRequest(_0x18c1b5,!![]);},'createStreamParser'(_0x54ceeb){return new AnthropicMessagesStreamParser(_0x54ceeb);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];[_0x1b1adc(-0x77,-0xa8,-0x11f,0x2c)];constructor(_0x4a0bb8){const _0x5f1666={_0x1712b0:0x60b,_0x24989b:0x618,_0x5e9d7f:0x619,_0x1d35cb:0x497,_0x34f642:0x54b},_0x2011df={_0x19aebc:0xbc,_0x22a4c5:0x318},_0x1ecd27={_0x29755c:0x18f,_0x1c572a:0x569};function _0x158f83(_0x3ac572,_0x3fa857,_0x4a5f04,_0x5e8db8){return _0x1b1adc(_0x3ac572-_0x1ecd27._0x29755c,_0x5e8db8-_0x1ecd27._0x1c572a,_0x4a5f04-0x10e,_0x4a5f04);}function _0x59316a(_0x53beaa,_0x1bc9fc,_0x578bfd,_0x5c34d5){return _0x1b1adc(_0x53beaa-_0x2011df._0x19aebc,_0x53beaa-_0x2011df._0x22a4c5,_0x578bfd-0x11a,_0x578bfd);}this[_0x158f83(0x6e3,0x5c1,_0x5f1666._0x1712b0,_0x5f1666._0x24989b)]=_0x4a0bb8[_0x158f83(0x5e6,_0x5f1666._0x5e9d7f,_0x5f1666._0x1d35cb,0x553)],this[_0x158f83(0x49e,0x467,_0x5f1666._0x34f642,0x4c1)]=_0x4a0bb8['stream'];}['selectSurface'](_0x51db83,_0x19b6ed){const _0xde6acd={_0x5a7dbc:0xab,_0x2b6f35:0xa9,_0x2442d0:0x404,_0x231aff:0x2ff,_0x1a120d:0x39c,_0x50f867:0x1d4,_0x3ac4bc:0x1c8},_0x413a98={_0x1bcd72:0x125},_0x3629db={_0x4a38be:0x7,_0x193b01:0x444,_0x588090:0x190};function _0x33c855(_0x38e603,_0x579e49,_0x251d0b,_0x206761){return _0x1b1adc(_0x38e603-_0x3629db._0x4a38be,_0x206761-_0x3629db._0x193b01,_0x251d0b-_0x3629db._0x588090,_0x38e603);}function _0x24828d(_0x2eedd5,_0x14b427,_0x956ec5,_0x52f551){return _0x1b1adc(_0x2eedd5-0x1d5,_0x2eedd5-_0x413a98._0x1bcd72,_0x956ec5-0x1c3,_0x956ec5);}return _0x19b6ed[_0x24828d(_0xde6acd._0x5a7dbc,0x119,0x10a,_0xde6acd._0x2b6f35)]==='stream'?this[_0x33c855(0x35a,_0xde6acd._0x2442d0,_0xde6acd._0x231aff,_0xde6acd._0x1a120d)]:this[_0x24828d(_0xde6acd._0x50f867,_0xde6acd._0x3ac4bc,0x148,0x200)];}};function trimTrailingSlashes(_0x4d66cf){const _0x1bb702={_0x328455:0x342},_0x5a8627={_0x5cbd03:0x1c7};function _0x314097(_0x2cb7ce,_0x48a88c,_0x1326bb,_0x570996){return _0x1b98ce(_0x48a88c,_0x570996- -_0x5a8627._0x5cbd03,_0x1326bb-0xd3,_0x570996-0x1bb);}return _0x4d66cf[_0x314097(_0x1bb702._0x328455,0x3f1,0x3c0,0x413)](/\/+$/,'');}function resolveApiCredential(_0x23559d,_0x36162f){const _0xf998ce={_0x113dcb:0x113,_0x386358:0x9f,_0x4fbb4d:0x44,_0x4388ca:0xb9,_0x4afd4f:0xd},_0x2bc736={_0x5db133:0x86};if(_0x36162f?.[_0x3f89f1(0x1a,-_0xf998ce._0x113dcb,_0xf998ce._0x386358,-_0xf998ce._0x4fbb4d)])return _0x36162f[_0x3f89f1(-_0xf998ce._0x4388ca,0x6,_0xf998ce._0x4afd4f,-_0xf998ce._0x4fbb4d)];function _0x357572(_0x385b31,_0x1007cb,_0x8a4288,_0x12ca65){return _0x1b1adc(_0x385b31-0x3,_0x385b31-0x6f,_0x8a4288-0x1c0,_0x12ca65);}if(!_0x23559d)return void 0x0;function _0x3f89f1(_0x2b9067,_0x4da9db,_0x1724fc,_0x25562d){return _0x1b1adc(_0x2b9067-0x14a,_0x25562d-_0x2bc736._0x5db133,_0x1724fc-0x181,_0x2b9067);}return{'kind':'api-key','value':_0x23559d};}function resolveSessionBaseUrl(_0x3bb929,_0x2f3d9c){return trimTrailingSlashes(_0x2f3d9c?.['endpoints']?.['api']??_0x3bb929);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':'gpt-4o','cliDefaultModel':'glm-4.7','providers':{'anthropic':{'label':_0x1b98ce(0x637,0x6c6,0x5ee,0x644),'baseUrl':_0x1b98ce(0x707,0x67f,0x699,0x646),'surface':'anthropic-messages','authScheme':'x-api-key','defaultModel':'claude-sonnet-4-20250514','defaultModels':[_0x1b98ce(0x676,0x5ec,0x6b1,0x6af),_0x1b98ce(0x530,0x55b,0x46f,0x512)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x1b98ce(0x582,0x514,0x5b4,0x48c),'baseUrl':_0x1b98ce(0x50e,0x559,0x504,0x51c),'anthropicBaseUrl':'https://api.z.ai/api/anthropic','surface':_0x1b98ce(0x4e4,0x4f7,0x46c,0x4e4),'authScheme':_0x1b98ce(0x511,0x5fa,0x59d,0x63a),'defaultModel':_0x1b1adc(0x2,-0xa9,-0x114,-0x82),'defaultModels':[_0x1b98ce(0x4fc,0x571,0x4be,0x4d6),_0x1b1adc(-0x2c,0x2c,-0x80,-0x59),_0x1b1adc(-0x18d,-0xa9,0xa,-0x43),_0x1b1adc(0x31,-0x9d,-0x4,-0x63),'glm-4.5'],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x1f400},'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':{'label':'OpenRouter','baseUrl':_0x1b1adc(0x133,0x97,0x83,0x7c),'surface':_0x1b1adc(-0xfd,-0xe7,-0x12d,-0x122),'authScheme':'bearer','defaultModel':_0x1b1adc(0x64,-0x43,0x6e,0x26),'defaultModels':[_0x1b98ce(0x514,0x5a6,0x643,0x5c9),_0x1b1adc(0x33,0xb5,0xef,0x6f)],'supportsModelFetch':!![],'models':{'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':{'label':'GitHub\x20Models\x20/\x20Copilot','surface':_0x1b98ce(0x4c9,0x589,0x49f,0x4cf),'defaultModel':_0x1b98ce(0x5ec,0x656,0x5dc,0x6b7),'defaultModels':[_0x1b1adc(-0x2a,-0xbf,-0xd9,-0xd1),_0x1b1adc(0xa2,-0x34,-0x8,-0xa3),_0x1b98ce(0x49f,0x572,0x4eb,0x4fb),_0x1b1adc(0x19,-0x36,-0x10f,-0x5b),_0x1b1adc(-0x5c,0x50,-0x14,0xbb),'claude-sonnet-4'],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x1b1adc(-0x1e0,-0xf2,-0x1d2,-0xd4)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x1b1adc(-0x123,-0xf2,-0x1dd,-0x165)},'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}}},'grok':{'label':'Grok\x20(x.ai)','baseUrl':_0x1b1adc(0x1e,-0x2b,-0xe3,-0xc9),'surface':_0x1b98ce(0x55e,0x589,0x62b,0x5e7),'authScheme':_0x1b98ce(0x5f8,0x5fa,0x61f,0x551),'defaultModel':_0x1b1adc(0x20,-0x38,-0x43,-0x126),'defaultModels':[_0x1b98ce(0x547,0x5b1,0x688,0x4c6),'grok-build-0.1'],'supportsModelFetch':!![],'models':{'grok-4.3':{'contextWindow':0x20000,'maxOutput':0x4000},'grok-build-0.1':{'contextWindow':0x20000,'maxOutput':0x4000}}},'openai':{'label':_0x1b98ce(0x49d,0x579,0x5ca,0x60e),'baseUrl':_0x1b1adc(-0x11f,-0x5f,0x8b,-0xcf),'surface':'openai-chat-completions','authScheme':_0x1b98ce(0x64a,0x5fa,0x572,0x5a6),'defaultModel':_0x1b98ce(0x5f9,0x537,0x4a6,0x5f3),'defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x1b98ce(0x6f1,0x6a4,0x5bf,0x70d),'baseUrl':_0x1b1adc(-0x15f,-0xda,-0x50,-0x13a),'surface':_0x1b1adc(-0x32,-0xf2,-0x87,-0xf8),'authScheme':_0x1b1adc(0x77,0x11,0x95,0xf3),'defaultModel':'deepseek-v4-pro','defaultModels':[_0x1b1adc(0x8f,0x30,0x109,0xa6),_0x1b98ce(0x758,0x695,0x667,0x682)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x1b1adc(-0x2a,0x1f,-0x83,-0x62),'baseUrl':_0x1b1adc(0xfb,0x4b,-0xa3,0x67),'surface':_0x1b98ce(0x557,0x4f7,0x493,0x434),'authScheme':_0x1b98ce(0x659,0x5fa,0x609,0x558),'defaultModel':_0x1b1adc(-0xce,-0x5a,0x53,0x8a),'defaultModels':[_0x1b98ce(0x525,0x58f,0x4f8,0x648)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x1b98ce(0x5b3,0x65b,0x666,0x6cb),'baseUrl':_0x1b1adc(-0x14a,-0xe5,-0x179,-0x87),'modelsBaseUrl':_0x1b1adc(0xdb,0xbe,0x19f,0x20),'surface':_0x1b98ce(0x57e,0x4f7,0x414,0x548),'authScheme':_0x1b98ce(0x5d4,0x588,0x569,0x4ab),'defaultModel':_0x1b1adc(-0x84,0x3,-0xeb,-0xe5),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':'Xiaomi','baseUrl':_0x1b98ce(0x694,0x6a2,0x616,0x6bf),'modelsBaseUrl':_0x1b98ce(0x5bf,0x5e3,0x6bd,0x516),'surface':_0x1b98ce(0x464,0x4f7,0x4f5,0x469),'authScheme':'x-api-key','defaultModel':_0x1b98ce(0x5f2,0x632,0x66b,0x6a0),'defaultModels':['mimo-v2.5-pro'],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default;function findProviderKey(_0x5c5b3d){const _0x35023f={_0x50aa1f:0x2ad,_0x2577ab:0x3d5,_0x180e46:0x385,_0x4fb23b:0x1f8,_0x628723:0x193,_0x35166b:0x23e,_0x565681:0x3ae,_0x322b45:0x303},_0x3c1f33={_0x49f967:0x1d8};function _0x4b29c1(_0x24a7e1,_0x3128bd,_0x3641d8,_0x2b8e6a){return _0x1b98ce(_0x2b8e6a,_0x24a7e1- -0x282,_0x3641d8-0x14a,_0x2b8e6a-_0x3c1f33._0x49f967);}function _0xf33e3c(_0xbee0f9,_0x3f805f,_0xedde8d,_0x45c02b){return _0x1b1adc(_0xbee0f9-0x8b,_0x45c02b-0x31f,_0xedde8d-0x19f,_0x3f805f);}const _0x303265=_0x5c5b3d[_0xf33e3c(0x2da,_0x35023f._0x50aa1f,_0x35023f._0x2577ab,_0x35023f._0x180e46)]();return Object[_0xf33e3c(_0x35023f._0x4fb23b,_0x35023f._0x628723,0x277,_0x35023f._0x35166b)](data[_0x4b29c1(_0x35023f._0x565681,0x3df,0x452,0x3f9)])[_0xf33e3c(0x263,0x36e,_0x35023f._0x322b45,0x341)](_0x51b39c=>_0x51b39c[_0x4b29c1(0x3cd,0x3b8,0x315,0x3ae)]()===_0x303265);}function getProviderProfile(_0x181bca){const _0x114d4d={_0x1afa21:0x69e,_0x1d62d9:0x627,_0x298f5e:0x744,_0x3124d5:0x431,_0x18dad3:0x30e,_0x39a63f:0x571,_0x392d18:0x47f,_0x22349a:0x5e8,_0x49a8ad:0x557,_0x8743f9:0x459,_0x21c976:0x504,_0x4c480a:0x5e4,_0x4c9a77:0x550,_0x5255bb:0x4d3,_0x246e25:0x5b5,_0x37c824:0x6e6},_0x1b3f92={_0x1ffc87:0xad,_0x519572:0xc0},_0x3c8a2f=findProviderKey(_0x181bca);function _0x511463(_0x42a756,_0x46bff3,_0x570122,_0x3359ff){return _0x1b1adc(_0x42a756-_0x1b3f92._0x1ffc87,_0x42a756-0x449,_0x570122-_0x1b3f92._0x519572,_0x570122);}if(!_0x3c8a2f)return void 0x0;const _0x3f3d80=data['providers'][_0x3c8a2f],_0x2785f1={};function _0x42e301(_0x18b0b1,_0x37d67b,_0x2b6805,_0x370df3){return _0x1b1adc(_0x18b0b1-0x1a3,_0x37d67b-0x5fd,_0x2b6805-0x67,_0x2b6805);}for(const [_0x336023,_0x3fdf1c]of Object[_0x42e301(0x636,_0x114d4d._0x1afa21,_0x114d4d._0x1d62d9,_0x114d4d._0x298f5e)](_0x3f3d80['models'])){_0x2785f1[_0x336023]=_0x3fdf1c;}return{'label':_0x3f3d80[_0x511463(0x3cd,0x2e1,_0x114d4d._0x3124d5,_0x114d4d._0x18dad3)],'baseUrl':_0x3f3d80[_0x42e301(0x47b,0x561,_0x114d4d._0x39a63f,_0x114d4d._0x392d18)],'modelsBaseUrl':_0x3f3d80[_0x42e301(0x589,_0x114d4d._0x22349a,_0x114d4d._0x49a8ad,0x614)],'anthropicBaseUrl':_0x3f3d80[_0x511463(_0x114d4d._0x8743f9,0x4c4,_0x114d4d._0x21c976,0x4e4)],'surface':_0x3f3d80[_0x42e301(_0x114d4d._0x4c480a,_0x114d4d._0x4c9a77,0x596,_0x114d4d._0x5255bb)],'authScheme':_0x3f3d80['authScheme'],'defaultModel':_0x3f3d80[_0x42e301(_0x114d4d._0x246e25,0x60f,_0x114d4d._0x37c824,0x554)],'defaultModels':_0x3f3d80['defaultModels']??[],'supportsModelFetch':_0x3f3d80[_0x511463(0x353,0x2f8,0x2ef,0x416)]??![],'models':_0x2785f1};}function getModelProfile(_0xdbe782,_0x43cbe8){const _0x110805={_0x3358c0:0x56a,_0x57f3d8:0x641,_0x402a18:0x5e3,_0x325a9:0x4a3,_0x12131f:0x546},_0x17e3f2={_0x5c1782:0x11,_0x15a3a:0x58},_0x190534={_0x45fdc2:0x4b8,_0x3556d7:0xfe};function _0x31c8fc(_0x6c1c66,_0x55938e,_0x1cb21d,_0x3b4803){return _0x1b98ce(_0x3b4803,_0x55938e- -_0x190534._0x45fdc2,_0x1cb21d-0xc0,_0x3b4803-_0x190534._0x3556d7);}const _0x53255b=findProviderKey(_0xdbe782);if(!_0x53255b)return void 0x0;function _0x3b5bfc(_0x40a038,_0x49b0dc,_0x35b04f,_0x41d314){return _0x1b98ce(_0x40a038,_0x41d314-_0x17e3f2._0x5c1782,_0x35b04f-_0x17e3f2._0x15a3a,_0x41d314-0xc6);}return data[_0x3b5bfc(0x6f7,_0x110805._0x3358c0,0x72a,_0x110805._0x57f3d8)][_0x53255b][_0x3b5bfc(0x58c,_0x110805._0x402a18,_0x110805._0x325a9,_0x110805._0x12131f)][_0x43cbe8];}function resolveModelProfile(_0x25457d,_0x4026e4){const _0x1a7dc8={_0x3d2a8b:0x243,_0x3810c7:0x2c1,_0x265d6d:0x1a8,_0x2b7865:0x22c,_0x313487:0x361,_0x1f7ccb:0x234,_0x55fa83:0x223,_0x2b64bd:0x226,_0x470f80:0x9f,_0x48ffb7:0x217,_0x536e0d:0x2a3},_0x2db276={_0x5e5bce:0xac},_0x5206b5={_0x5255f3:0x3c5},_0x22f73b=findProviderKey(_0x25457d);function _0x23a96a(_0x4a3113,_0x191960,_0x520998,_0x3da131){return _0x1b98ce(_0x4a3113,_0x520998- -_0x5206b5._0x5255f3,_0x520998-0x175,_0x3da131-0xc4);}function _0x35dd3b(_0x5825dc,_0x452372,_0x4e12ea,_0x516d1d){return _0x1b1adc(_0x5825dc-_0x2db276._0x5e5bce,_0x516d1d-0x376,_0x4e12ea-0x6,_0x5825dc);}if(!_0x22f73b)return void 0x0;const _0x37385d=data[_0x23a96a(_0x1a7dc8._0x3d2a8b,_0x1a7dc8._0x3810c7,0x26b,0x232)][_0x22f73b],_0x26f3f4=_0x37385d[_0x35dd3b(0x1f2,0x23f,0x34e,0x2c2)][_0x4026e4];return{'label':_0x37385d[_0x23a96a(0x1ec,0xfe,_0x1a7dc8._0x265d6d,_0x1a7dc8._0x2b7865)],'baseUrl':_0x37385d['baseUrl'],'modelsBaseUrl':_0x37385d[_0x35dd3b(0x2d6,0x415,0x3be,_0x1a7dc8._0x313487)],'anthropicBaseUrl':_0x37385d[_0x23a96a(0x316,0x156,_0x1a7dc8._0x1f7ccb,0x2f0)],'surface':_0x26f3f4?.[_0x23a96a(0x1f0,_0x1a7dc8._0x55fa83,0x177,0xa9)]??_0x37385d[_0x23a96a(0x170,_0x1a7dc8._0x2b64bd,0x177,_0x1a7dc8._0x470f80)],'authScheme':_0x37385d[_0x23a96a(0x2b3,0x2a2,0x2f0,0x386)],'defaultModel':_0x37385d[_0x23a96a(_0x1a7dc8._0x48ffb7,0x20a,0x236,0x2bc)],'defaultModels':_0x37385d['defaultModels'],'supportsModelFetch':_0x37385d[_0x35dd3b(0x1df,0x259,0x2c2,0x280)],'contextWindow':_0x26f3f4?.[_0x35dd3b(0x32c,_0x1a7dc8._0x536e0d,0x19a,0x279)],'maxOutput':_0x26f3f4?.['maxOutput']};}function getDefaultMaxTokens(){const _0x2be95b={_0x58bd90:0x3b,_0x3c8aef:0x60},_0x5408cf={_0x3931be:0x14};function _0x37f503(_0x18dfdd,_0x2af808,_0x11ee30,_0x4ca964){return _0x1b98ce(_0x4ca964,_0x2af808- -0x5aa,_0x11ee30-_0x5408cf._0x3931be,_0x4ca964-0x1e2);}return data[_0x37f503(_0x2be95b._0x58bd90,-0x61,-_0x2be95b._0x3c8aef,-0x4b)];}function getDefaultModel(){const _0x2cece4={_0x4dc614:0x2cf,_0x271ed4:0x340},_0x204940={_0x29013a:0x1da};function _0x1b47d0(_0x45b828,_0x24c704,_0x418c6a,_0x52bdbf){return _0x1b1adc(_0x45b828-0x18f,_0x24c704-0x31c,_0x418c6a-_0x204940._0x29013a,_0x418c6a);}return data[_0x1b47d0(0x298,0x32e,_0x2cece4._0x4dc614,_0x2cece4._0x271ed4)];}function getCliDefaultModel(){return data['cliDefaultModel'];}function getProviderLabel(_0xbd4b59){const _0x33d7d1={_0x4dbaec:0x6d,_0x568c55:0x67,_0x5d3002:0x11c},_0x1bcd79={_0x38867f:0xa2,_0x360bba:0x1c2};function _0x30614c(_0x520a04,_0x25ee3a,_0x719197,_0x16c8a1){return _0x1b1adc(_0x520a04-0xd2,_0x16c8a1-0x93,_0x719197-0x47,_0x520a04);}function _0x3132e3(_0x5a1d3f,_0x3d52bc,_0x227944,_0x8c22c){return _0x1b1adc(_0x5a1d3f-_0x1bcd79._0x38867f,_0x3d52bc- -0xb4,_0x227944-_0x1bcd79._0x360bba,_0x227944);}const _0x42f22f=findProviderKey(_0xbd4b59);return _0x42f22f?data[_0x3132e3(-0x128,-_0x33d7d1._0x4dbaec,-0x4d,_0x33d7d1._0x568c55)][_0x42f22f][_0x3132e3(-0xb0,-0x130,-_0x33d7d1._0x5d3002,-0xa4)]:void 0x0;}function getProviderDefaultModel(_0x1de917){const _0x31f9f2={_0x102eee:0xc,_0x1ef054:0x74,_0x468ce9:0x237},_0x1f7263={_0x1e7a2e:0x8e,_0x1e986b:0x9e};function _0xd46698(_0x7043b0,_0x51295c,_0x58eae1,_0x40e8a7){return _0x1b1adc(_0x7043b0-_0x1f7263._0x1e7a2e,_0x7043b0-_0x1f7263._0x1e986b,_0x58eae1-0xb2,_0x40e8a7);}const _0x54a112=findProviderKey(_0x1de917);if(!_0x54a112)return void 0x0;function _0x485996(_0x269e86,_0x209a66,_0xdf9279,_0x434f68){return _0x1b1adc(_0x269e86-0x8c,_0x209a66-0x278,_0xdf9279-0x1b0,_0x269e86);}return data[_0xd46698(0xe5,_0x31f9f2._0x102eee,_0x31f9f2._0x1ef054,0x27)][_0x54a112][_0x485996(0x2fb,0x28a,0x32a,_0x31f9f2._0x468ce9)];}function getProviderDefaultModels(_0x39628e){const _0x27b169={_0x4ad046:0x5be},_0x48b26d={_0x5d2d76:0x55d},_0x1fb675=findProviderKey(_0x39628e);function _0x191a23(_0x24b89f,_0x1f39c3,_0x47da73,_0x55f6ef){return _0x1b98ce(_0x55f6ef,_0x1f39c3- -_0x48b26d._0x5d2d76,_0x47da73-0x168,_0x55f6ef-0x17c);}function _0x262d65(_0x42ea40,_0x4248f7,_0x5c977e,_0x3b8183){return _0x1b1adc(_0x42ea40-0x32,_0x42ea40-0x577,_0x5c977e-0xad,_0x3b8183);}if(!_0x1fb675)return[];return[...data[_0x262d65(_0x27b169._0x4ad046,0x6a1,0x670,0x591)][_0x1fb675][_0x262d65(0x4e8,0x41d,0x4dd,0x425)]??[]];}function providerSupportsModelFetch(_0x50a3f5){const _0x2a4bcc={_0x3a059a:0x169,_0x228d29:0x181},_0x2fe3c4={_0xa9c8ba:0x16b,_0x2f4093:0x8b},_0x4f7e41={_0x3c245c:0x8d,_0x5ed8c6:0x173},_0x23abd7=findProviderKey(_0x50a3f5);if(!_0x23abd7)return![];function _0x384f1c(_0x480058,_0x28af77,_0x34291b,_0x13801d){return _0x1b98ce(_0x13801d,_0x28af77- -_0x4f7e41._0x3c245c,_0x34291b-0x87,_0x13801d-_0x4f7e41._0x5ed8c6);}function _0x5b7bff(_0x822fab,_0x5e84be,_0x1eb040,_0x229778){return _0x1b1adc(_0x822fab-_0x2fe3c4._0xa9c8ba,_0x229778- -_0x2fe3c4._0x2f4093,_0x1eb040-0x10f,_0x1eb040);}return data[_0x5b7bff(-0x110,-0x42,-0xf4,-0x44)][_0x23abd7][_0x5b7bff(-0x1bc,-_0x2a4bcc._0x3a059a,-0x1e7,-_0x2a4bcc._0x228d29)]??![];}function getOnboardingProviderKeys(){const _0x461e02={_0x4f5e81:0x464,_0x4db415:0x58b,_0x47523b:0x58c,_0x490ff7:0x505},_0x3cc6a0={_0x2f66a8:0x587},_0x289dbe={_0x49941b:0x545,_0x2b840:0x151};function _0x28fcd5(_0x1a428f,_0x525342,_0x597ea0,_0xdb3897){return _0x1b1adc(_0x1a428f-0x1e4,_0x525342-_0x289dbe._0x49941b,_0x597ea0-_0x289dbe._0x2b840,_0x1a428f);}function _0x1528b7(_0x91f2c3,_0x2db460,_0x12e344,_0xe9b70){return _0x1b1adc(_0x91f2c3-0x85,_0xe9b70-_0x3cc6a0._0x2f66a8,_0x12e344-0x134,_0x2db460);}return Object[_0x28fcd5(0x49e,_0x461e02._0x4f5e81,0x3c8,0x547)](data[_0x28fcd5(_0x461e02._0x4db415,_0x461e02._0x47523b,_0x461e02._0x490ff7,0x4eb)]);}function toErrorMessage(_0x517c71){const _0xd1e3b9={_0x31b46f:0x80,_0x1e9737:0x10f,_0x6b1c28:0x75,_0x3b6a44:0x29f},_0x55953a={_0x46f780:0x230},_0x29292a={_0x7805e0:0x17d,_0x529d05:0x208,_0x1d9021:0x1cd};function _0x2edfc4(_0x114028,_0x5f2c2a,_0x3d4d99,_0xdd565e){return _0x1b1adc(_0x114028-_0x29292a._0x7805e0,_0x5f2c2a-_0x29292a._0x529d05,_0x3d4d99-_0x29292a._0x1d9021,_0x3d4d99);}function _0x307f33(_0x2b6355,_0x224075,_0x3384f0,_0x249c62){return _0x1b98ce(_0x249c62,_0x2b6355- -_0x55953a._0x46f780,_0x3384f0-0x17a,_0x249c62-0x146);}if(_0x517c71 instanceof Error&&_0x517c71['message'][_0x2edfc4(_0xd1e3b9._0x31b46f,_0xd1e3b9._0x1e9737,0x7d,_0xd1e3b9._0x6b1c28)]>0x0)return _0x517c71[_0x2edfc4(0x1aa,0x26f,_0xd1e3b9._0x3b6a44,0x1b8)];return'WebSocket\x20request\x20failed';}function createDefaultWebSocketFactory(){return({headers:_0x924f2a,url:_0x2ec137})=>{const _0x1e4118=globalThis[_0x51f84a(0x508,0x54c,0x5f6,0x5e2)];function _0x51f84a(_0x37856a,_0x6c71ff,_0x55e190,_0x559b87){return _0x58b0(_0x6c71ff-0x1ce,_0x37856a);}return new _0x1e4118(_0x2ec137,{'headers':_0x924f2a,'protocols':[]});};}async function*iterateSseEvents(_0xf44194,_0x4c5cec){const _0x1021ac={_0x2f7847:0xa1,_0x52decc:0x9c,_0x40efe0:0x36f,_0x516abf:0x29b,_0x53a3b:0x2e5,_0x56dd42:0x103,_0x38e6be:0xe2,_0x5a0335:0x1ca,_0x594082:0x13,_0x12d4bc:0x1b0,_0x4cc664:0x14f,_0x1cac52:0x1ff,_0x3a8692:0x1df,_0x2f8f75:0x23c,_0x45b7af:0x1f9,_0x225be5:0x157,_0x4c7777:0x178,_0x39f484:0x172,_0x3cce02:0x16c,_0x221b14:0x3,_0x64e6a1:0xac},_0x21ba47={_0x271011:0x2e7,_0x1da1c9:0x27b,_0x29b5bb:0x2d7,_0x31a835:0x230},_0x22f63d={_0x2c5ce5:0xa6,_0x3e6d9b:0x68},_0xab3b38={_0x1df6da:0x250},_0x727670={_0x2b69d2:0x163};function _0x475353(_0x4b018c,_0x5a7cb0,_0x52dec1,_0x3460dd){return _0x1b98ce(_0x52dec1,_0x3460dd- -0x6ee,_0x52dec1-_0x727670._0x2b69d2,_0x3460dd-0x1eb);}function _0x535fa5(_0x503da6,_0x5c64b3,_0x46a7e3,_0x107f7f){return _0x1b1adc(_0x503da6-0xe0,_0x503da6-_0xab3b38._0x1df6da,_0x46a7e3-0x1cf,_0x107f7f);}const _0x39eced=_0xf44194['body']?.[_0x475353(-0xa0,-_0x1021ac._0x2f7847,-_0x1021ac._0x52decc,-0x52)]();if(!_0x39eced)return;const _0x110c9b=new TextDecoder(_0x535fa5(0x2de,_0x1021ac._0x40efe0,_0x1021ac._0x516abf,_0x1021ac._0x53a3b));let _0x4b0189='';const _0x4e1708=addAbortListener(_0x4c5cec,()=>{const _0x237df8={_0x4b4ba2:0x3ae};function _0x43ce9a(_0xe87fd9,_0x19f200,_0x13ca95,_0x1cdf85){return _0x475353(_0xe87fd9-0x123,_0x19f200-0x46,_0xe87fd9,_0x19f200-_0x237df8._0x4b4ba2);}function _0x130b98(_0x48ad2b,_0x2a9379,_0x187bb8,_0x3ca81b){return _0x535fa5(_0x2a9379- -0x3c,_0x2a9379-_0x22f63d._0x2c5ce5,_0x187bb8-_0x22f63d._0x3e6d9b,_0x48ad2b);}void _0x39eced[_0x130b98(0x208,0x21d,_0x21ba47._0x271011,_0x21ba47._0x1da1c9)](toAbortError(_0x4c5cec?.[_0x43ce9a(0x1eb,_0x21ba47._0x29b5bb,0x238,0x37f)]))[_0x43ce9a(0x164,_0x21ba47._0x31a835,0x309,0x1ca)](()=>{});});try{while(!![]){throwIfAborted(_0x4c5cec);const {value:_0x8a03a8,done:_0x1cc262}=await _0x39eced[_0x475353(-_0x1021ac._0x56dd42,-0x230,-_0x1021ac._0x38e6be,-_0x1021ac._0x5a0335)]();throwIfAborted(_0x4c5cec);if(_0x1cc262)break;_0x4b0189+=_0x110c9b[_0x475353(_0x1021ac._0x594082,-0x170,0x42,-0xac)](_0x8a03a8,{'stream':!![]});while(!![]){const _0x4832ef=_0x4b0189[_0x475353(-0x233,-_0x1021ac._0x12d4bc,-0x1f3,-_0x1021ac._0x4cc664)]('\x0a\x0a');if(_0x4832ef===-0x1)break;const _0x2b063a=_0x4b0189[_0x535fa5(0x1ff,0x29d,0x22b,0x288)](0x0,_0x4832ef);_0x4b0189=_0x4b0189[_0x535fa5(_0x1021ac._0x1cac52,_0x1021ac._0x3a8692,_0x1021ac._0x2f8f75,0x274)](_0x4832ef+0x2),_0x2b063a[_0x535fa5(0x228,_0x1021ac._0x45b7af,0x2c3,0x2ed)]()[_0x535fa5(_0x1021ac._0x225be5,_0x1021ac._0x4c7777,_0x1021ac._0x39f484,0x1b9)]>0x0&&(yield _0x2b063a);}}_0x4b0189+=_0x110c9b[_0x475353(-_0x1021ac._0x3cce02,_0x1021ac._0x221b14,-0x61,-_0x1021ac._0x64e6a1)](),throwIfAborted(_0x4c5cec),_0x4b0189['trim']()['length']>0x0&&(yield _0x4b0189);}finally{_0x4e1708();}}async function waitForWebSocketOpen(_0x79abe8,_0x158112){const _0x2ab48c={_0x54ac8c:0x59e,_0x361d0f:0x167,_0x331151:0x27},_0x2b3636={_0x45a9ee:0xb8,_0x255e30:0x6,_0x5463f1:0xb0,_0x4a4f53:0x139,_0x4f90e2:0x365,_0x4ec47b:0x420,_0x2e45f2:0x3f7,_0x1a6075:0x155,_0x3e4e9d:0x5a,_0x2aa253:0x102,_0x5eb348:0x6f,_0x41ba99:0x68,_0x5996e5:0x56d,_0x5a4b42:0x4ce},_0x48ae28={_0x469d8b:0x93,_0x5a742c:0xca},_0x31acf8={_0x5f52bc:0x659,_0x3f1e79:0x73d,_0x18cc6b:0x729},_0x3bdb01={_0x585e62:0x4e9,_0x31e627:0x54};function _0x1e9687(_0x4d9bf8,_0x9a67f8,_0x556199,_0x59b4aa){return _0x1b1adc(_0x4d9bf8-0xb3,_0x59b4aa-0x4db,_0x556199-0x115,_0x556199);}if(_0x79abe8[_0x1e9687(0x4f9,0x666,0x5dd,_0x2ab48c._0x54ac8c)]===WebSocket[_0x3317ee(_0x2ab48c._0x361d0f,0x52,_0x2ab48c._0x331151,0x92)]){throwIfAborted(_0x158112);return;}function _0x3317ee(_0x557c69,_0x30a263,_0x4e84b9,_0x3bf1fe){return _0x1b98ce(_0x557c69,_0x3bf1fe- -_0x3bdb01._0x585e62,_0x4e84b9-0x18b,_0x3bf1fe-_0x3bdb01._0x31e627);}throwIfAborted(_0x158112),await new Promise((_0x4b9bd2,_0x2312a7)=>{const _0x53b94b={_0x39040e:0x18f},_0x17c3a0={_0x3b3270:0x67,_0x326d78:0x49,_0x28c88f:0x2e,_0x3a6531:0x14,_0x3838d9:0x44,_0x25e4e4:0x9f,_0x5b0df7:0x80,_0x519811:0x12,_0x1fefed:0x57,_0x2865a7:0xa},_0x207a1f={_0x51a1c0:0x33,_0x17b581:0x6d,_0x4b79bd:0x187,_0x19a382:0x11c,_0x6fef65:0x1c9,_0x499485:0x163,_0x15cd1d:0x61,_0x49621b:0xd3,_0x49637b:0x104,_0x4a70fc:0xdc},_0x345247={_0x474e12:0x599,_0x372ce7:0x54a,_0x26312d:0x4e8},_0x2d5a58=()=>{_0xdebdb(),_0x4b9bd2();},_0x2cce4d=_0x2eefa9=>{const _0x4b67f8={_0x237622:0x1b7};_0xdebdb();function _0x1589fe(_0x19af6f,_0x513623,_0x14de08,_0x198a62){return _0x58b0(_0x198a62-_0x4b67f8._0x237622,_0x14de08);}_0x2312a7(new Error(_0x2eefa9[_0x1589fe(0x5ab,_0x345247._0x474e12,_0x345247._0x372ce7,_0x345247._0x26312d)]||'WebSocket\x20request\x20failed'));},_0x11fe6c=_0xbd6fd7=>{const _0x3cd6ad={_0x251a3c:0x361};function _0x1013bc(_0x2bbc0b,_0x24cec2,_0x48ca23,_0x2e2606){return _0x58b0(_0x48ca23-0x3bc,_0x2e2606);}_0xdebdb();function _0x44dba1(_0x3c9b81,_0x82f1bf,_0x19b0e8,_0x17c33b){return _0x58b0(_0x3c9b81-_0x3cd6ad._0x251a3c,_0x82f1bf);}const _0x17d420=_0xbd6fd7;_0x2312a7(new Error(_0x17d420[_0x44dba1(_0x31acf8._0x5f52bc,_0x31acf8._0x3f1e79,0x5d9,0x6c6)]||_0x44dba1(0x6a3,0x782,0x701,_0x31acf8._0x18cc6b)));};function _0x33de37(_0x2f5cd1,_0x4c64e9,_0x1d7d6b,_0xe82b4a){return _0x3317ee(_0x4c64e9,_0x4c64e9-_0x48ae28._0x469d8b,_0x1d7d6b-_0x48ae28._0x5a742c,_0xe82b4a- -0x3);}const _0x1f2f1d=()=>{_0xdebdb();function _0x15a1ce(_0x7849cc,_0x8af325,_0x18ae6e,_0x4a4c5c){return _0x58b0(_0x4a4c5c- -0x93,_0x7849cc);}function _0x56055d(_0x8ebc05,_0x2665df,_0x377eb3,_0x3d7ebe){return _0x58b0(_0x3d7ebe- -0x320,_0x8ebc05);}_0x79abe8[_0x56055d(-_0x207a1f._0x51a1c0,-0x71,-0x5f,_0x207a1f._0x17b581)]===WebSocket[_0x15a1ce(_0x207a1f._0x4b79bd,0x25a,_0x207a1f._0x19a382,_0x207a1f._0x6fef65)]&&_0x79abe8['close'](0x3e8,_0x56055d(-0x14,-_0x207a1f._0x499485,-_0x207a1f._0x15cd1d,-_0x207a1f._0x49621b)),_0x2312a7(toAbortError(_0x158112?.[_0x56055d(0xc0,-_0x207a1f._0x49637b,-_0x207a1f._0x4a70fc,-0x28)]));},_0xdebdb=()=>{const _0x256e55={_0x386d07:0x105};_0x79abe8[_0xde7b92(-0x3a,-0x44,-0x47,-_0x17c3a0._0x3b3270)](_0xde7b92(0x43,-_0x17c3a0._0x326d78,-_0x17c3a0._0x28c88f,_0x17c3a0._0x3a6531),_0x2d5a58),_0x79abe8[_0xde7b92(-0x99,-_0x17c3a0._0x3838d9,0x5,_0x17c3a0._0x25e4e4)]('error',_0x2cce4d);function _0xde7b92(_0x164374,_0x352219,_0x2b5914,_0x3c5506){return _0x58b0(_0x352219- -0x275,_0x2b5914);}_0x79abe8[_0xde7b92(0x7b,-0x44,-0x15,-_0x17c3a0._0x5b0df7)]('close',_0x11fe6c);function _0x68ac9a(_0x37d602,_0x1ae64c,_0x3c4a6c,_0x113b1f){return _0x58b0(_0x113b1f-_0x256e55._0x386d07,_0x3c4a6c);}_0x158112?.[_0xde7b92(0x4c,-_0x17c3a0._0x3838d9,-0x10d,_0x17c3a0._0x519811)](_0xde7b92(0x72,0x6e,-_0x17c3a0._0x1fefed,_0x17c3a0._0x2865a7),_0x1f2f1d);};_0x79abe8[_0x33de37(_0x2b3636._0x45a9ee,-_0x2b3636._0x255e30,-0x6d,0x68)](_0x33de37(-0x75,_0x2b3636._0x5463f1,_0x2b3636._0x4a4f53,0x5f),_0x2d5a58);function _0x215f64(_0x19cb41,_0x6efc0b,_0x42decd,_0x25cbbf){return _0x3317ee(_0x25cbbf,_0x6efc0b-0x1ed,_0x42decd-_0x53b94b._0x39040e,_0x42decd-0x3b5);}_0x79abe8[_0x215f64(_0x2b3636._0x4f90e2,0x432,_0x2b3636._0x4ec47b,_0x2b3636._0x2e45f2)](_0x33de37(_0x2b3636._0x1a6075,0x29f,0x273,0x1c5),_0x2cce4d),_0x79abe8['addEventListener'](_0x33de37(0xf9,0xba,0x57,_0x2b3636._0x3e4e9d),_0x11fe6c),_0x158112?.[_0x33de37(_0x2b3636._0x2aa253,0x7d,-_0x2b3636._0x5eb348,_0x2b3636._0x41ba99)](_0x215f64(_0x2b3636._0x5996e5,0x3e2,_0x2b3636._0x5a4b42,0x426),_0x1f2f1d,{'once':!![]});});}function iterateWebSocketMessages(_0x433a81,_0x173e62){const _0xc63fc4={_0x27bb5a:0x63,_0x5446f7:0x3e,_0x5606f6:0x14d,_0x5a5726:0x18a,_0x317639:0x1cc,_0x364242:0xd5,_0x32a579:0x19d,_0x2ec1a0:0x9b,_0x35283e:0x17b,_0xad096b:0x181,_0xf4dc23:0x10},_0x560edd={_0x5d76db:0x1ea,_0x3e7243:0x104,_0x538d81:0x16a,_0x35718d:0x230,_0x51b1c4:0x173,_0x5d8581:0x10e,_0x900e5a:0x12b,_0x471333:0xdf,_0x4039c2:0x309,_0x5085f9:0x1a7},_0x223103={_0x2911a0:0x1ea},_0x404f41={_0x3fd92e:0x138,_0x10e4c3:0x57,_0x220840:0x10e},_0x268968={_0x17797d:0xdd,_0x5a16a8:0xb8,_0x2ebf18:0xc4},_0x1f8fbd={_0x56d9bb:0x250,_0x502127:0x162,_0x574fe1:0x87,_0x1621ef:0x1da,_0x5f232b:0x239,_0x4a7717:0x10e},_0x35cdf1={_0x1a3e75:0xfa},_0x49df41={_0x431d25:0x64,_0x2b50ef:0x1c9,_0x58408c:0xc4,_0x4dbc37:0x696,_0x8106da:0x5e1,_0x291e6b:0x150,_0x3651a8:0x15a,_0x5d4e2a:0x1b7,_0xcd3815:0x11c},_0x5844ed={_0x3f3671:0x241},_0x5078bf={_0xe53cd1:0x4c,_0x18fa50:0xf9},_0x58d116={_0x41227c:0x622,_0x15499a:0x573,_0x3ec14a:0x460,_0x1c76f7:0x570,_0x54f8ec:0x454,_0xe11e94:0x117},_0x31ade1=[];let _0x4f5c5f=![],_0x1aaae2,_0x3d6cf5;const _0x57bc0d=_0x3a84e4=>{const _0x5da1df={_0x228f2d:0x356},_0x2a556e=_0x3a84e4;function _0x1deb57(_0x2d6b11,_0x5c332d,_0x2c13c1,_0x3eb7c0){return _0x58b0(_0x2c13c1- -_0x5da1df._0x228f2d,_0x2d6b11);}function _0x31725f(_0x51c9be,_0x3eaeb8,_0x25b057,_0x571237){return _0x58b0(_0x571237-0x234,_0x25b057);}try{_0x31ade1[_0x31725f(_0x58d116._0x41227c,_0x58d116._0x15499a,0x4da,0x5a2)](JSON['parse'](String(_0x2a556e[_0x31725f(_0x58d116._0x3ec14a,_0x58d116._0x1c76f7,_0x58d116._0x54f8ec,0x4f4)]))),_0x3d6cf5?.(),_0x3d6cf5=void 0x0;}catch(_0x17206c){_0x1aaae2=new Error(_0x1deb57(-0x112,-_0x58d116._0xe11e94,-0x8e,-0xcb)+toErrorMessage(_0x17206c)),_0x3d6cf5?.(),_0x3d6cf5=void 0x0;}},_0x1df225=_0x5a5dac=>{const _0x22d90f=_0x5a5dac;_0x1aaae2=new Error(_0x22d90f['message']||_0x31d498(-_0x5078bf._0xe53cd1,0x3f,0x125,_0x5078bf._0x18fa50)),_0x3d6cf5?.();function _0x31d498(_0x504163,_0x53e7a4,_0x46922d,_0x31d974){return _0x58b0(_0x53e7a4- -0x222,_0x46922d);}_0x3d6cf5=void 0x0;},_0x327db8=_0x51eae8=>{const _0x2c598e={_0x1b5fb5:0x307};function _0x4bc9ab(_0x518c25,_0x20c2ed,_0x4eb77b,_0x444022){return _0x58b0(_0x518c25-_0x2c598e._0x1b5fb5,_0x444022);}const _0xd1e430=_0x51eae8;!_0x4f5c5f&&_0xd1e430[_0x27c9be(_0x49df41._0x431d25,0xf5,_0x49df41._0x2b50ef,_0x49df41._0x58408c)]!==0x3e8&&!_0x1aaae2&&(_0x1aaae2=new Error(_0xd1e430[_0x4bc9ab(0x5ff,_0x49df41._0x4dbc37,_0x49df41._0x8106da,0x678)]||_0x27c9be(_0x49df41._0x291e6b,0x149,0x106,_0x49df41._0x3651a8)+_0xd1e430[_0x27c9be(_0x49df41._0x5d4e2a,0xf5,_0x49df41._0xcd3815,0x180)]));function _0x27c9be(_0x4ec07d,_0x1f7c64,_0x3fa570,_0x2c856e){return _0x58b0(_0x1f7c64- -_0x5844ed._0x3f3671,_0x2c856e);}_0x4f5c5f=!![],_0x3d6cf5?.(),_0x3d6cf5=void 0x0;},_0x12f15b=addAbortListener(_0x173e62,()=>{_0x1aaae2=toAbortError(_0x173e62?.[_0x385ff8(0x1fe,_0x1f8fbd._0x56d9bb,0x272,0x112)]);function _0x31a7c0(_0x33390f,_0x1b76d6,_0x300bbc,_0x47960b){return _0x58b0(_0x33390f-0x18c,_0x47960b);}function _0x385ff8(_0x333877,_0xa2cc71,_0x475cf8,_0x5687a5){return _0x58b0(_0x333877- -_0x35cdf1._0x1a3e75,_0x475cf8);}_0x433a81['readyState']===WebSocket[_0x385ff8(_0x1f8fbd._0x502127,0x8b,_0x1f8fbd._0x574fe1,_0x1f8fbd._0x1621ef)]&&_0x433a81['close'](0x3e8,_0x385ff8(0x153,_0x1f8fbd._0x5f232b,_0x1f8fbd._0x4a7717,0x8e)),_0x3d6cf5?.(),_0x3d6cf5=void 0x0;});function _0xed12fc(_0x177dff,_0x49ca7f,_0x584ad5,_0x538c95){return _0x1b1adc(_0x177dff-_0x268968._0x17797d,_0x177dff- -_0x268968._0x5a16a8,_0x584ad5-_0x268968._0x2ebf18,_0x49ca7f);}_0x433a81[_0xed12fc(-0x14d,-0x115,-0x12f,-0x1f4)]('message',_0x57bc0d);function _0xa3626d(_0x308a08,_0x68b862,_0x54d1b1,_0xf9e011){return _0x1b1adc(_0x308a08-_0x404f41._0x3fd92e,_0xf9e011-_0x404f41._0x10e4c3,_0x54d1b1-_0x404f41._0x220840,_0x308a08);}return _0x433a81[_0xa3626d(-0x102,-0x30,-_0xc63fc4._0x27bb5a,-_0xc63fc4._0x5446f7)]('error',_0x1df225),_0x433a81[_0xed12fc(-_0xc63fc4._0x5606f6,-_0xc63fc4._0x5a5726,-0x135,-_0xc63fc4._0x317639)](_0xed12fc(-0x15b,-_0xc63fc4._0x364242,-_0xc63fc4._0x32a579,-_0xc63fc4._0x2ec1a0),_0x327db8),{async*[Symbol[_0xa3626d(_0xc63fc4._0x35283e,_0xc63fc4._0xad096b,_0xc63fc4._0xf4dc23,0xd5)]](){const _0x45e7fc={_0x376b35:0x26,_0xd7478f:0x25};function _0x4e0f10(_0x361609,_0x2f608a,_0x46ad46,_0x2e627c){return _0xa3626d(_0x2e627c,_0x2f608a-0x7e,_0x46ad46-0x1b3,_0x2f608a-_0x223103._0x2911a0);}function _0x316043(_0x280973,_0x286b00,_0x5e1157,_0x196621){return _0xed12fc(_0x196621-_0x45e7fc._0x376b35,_0x280973,_0x5e1157-0x1db,_0x196621-_0x45e7fc._0xd7478f);}try{while(!![]){if(_0x1aaae2)throw _0x1aaae2;if(_0x31ade1[_0x316043(-_0x560edd._0x5d76db,-_0x560edd._0x3e7243,-_0x560edd._0x538d81,-0x18b)]>0x0){yield _0x31ade1[_0x4e0f10(0x14f,_0x560edd._0x35718d,0x2da,0x30c)]();continue;}if(_0x4f5c5f)break;await new Promise(_0x1c3ea9=>{_0x3d6cf5=_0x1c3ea9;});}}finally{_0x433a81[_0x316043(-_0x560edd._0x51b1c4,-0x1a4,-_0x560edd._0x5d8581,-_0x560edd._0x900e5a)]('message',_0x57bc0d),_0x433a81[_0x316043(-0x4a,-0x1b2,-_0x560edd._0x471333,-_0x560edd._0x900e5a)](_0x4e0f10(0x36c,_0x560edd._0x4039c2,0x3ce,0x2ca),_0x1df225),_0x433a81['removeEventListener'](_0x4e0f10(_0x560edd._0x5085f9,0x19e,0xff,0x100),_0x327db8),_0x12f15b();}}};}function toWebSocketUrl(_0x340de9,_0x5646f5){const _0x3c99a5={_0x32b21f:0xbf,_0x27c7fd:0xd3,_0x2a7e8a:0x277,_0x3cae24:0x254,_0x4ade3a:0xfa,_0x15a58f:0x243,_0x22f80b:0xa7,_0x5321c7:0x1af,_0x589b0d:0x166},_0x4b54c7={_0x374679:0x17d},_0x282079={_0xbfe141:0x45,_0x2f36f5:0xda};function _0x34464a(_0x5819f3,_0x547a47,_0x5c5a19,_0x87078a){return _0x1b1adc(_0x5819f3-_0x282079._0xbfe141,_0x87078a-_0x282079._0x2f36f5,_0x5c5a19-0x14f,_0x547a47);}function _0x5623e1(_0x3dabb2,_0x1d3b67,_0x2bd0c0,_0x3c00c4){return _0x1b1adc(_0x3dabb2-0x11d,_0x3c00c4-_0x4b54c7._0x374679,_0x2bd0c0-0xb9,_0x1d3b67);}const _0x445343=new URL(_0x5646f5,_0x340de9);return _0x445343[_0x34464a(_0x3c99a5._0x32b21f,-0xd1,-_0x3c99a5._0x27c7fd,-0x12)]=_0x445343['protocol']==='https:'?_0x5623e1(_0x3c99a5._0x2a7e8a,_0x3c99a5._0x3cae24,_0x3c99a5._0x4ade3a,0x1b7):_0x34464a(0x19b,0x65,0x1e7,0x14e),_0x445343[_0x34464a(_0x3c99a5._0x15a58f,_0x3c99a5._0x22f80b,_0x3c99a5._0x5321c7,_0x3c99a5._0x589b0d)]();}var ProviderSessionManager=class{[_0x1b98ce(0x4af,0x56e,0x5f0,0x528)];['cached'];constructor(_0x77b1ee){const _0x181315={_0x268886:0xe7,_0x5dab18:0x13d,_0x2b1bd0:0x1f8},_0x132769={_0x1857af:0x4,_0x574766:0x179};function _0x521cce(_0x148f75,_0x431db6,_0x581f90,_0x428ace){return _0x1b1adc(_0x148f75-_0x132769._0x1857af,_0x431db6- -0xc2,_0x581f90-_0x132769._0x574766,_0x148f75);}this[_0x521cce(-_0x181315._0x268886,-_0x181315._0x5dab18,-_0x181315._0x2b1bd0,-0x18a)]=_0x77b1ee;}async[_0x1b1adc(-0x14b,-0x85,-0xb4,-0x136)](_0x487983){const _0x483d6e={_0x57f109:0x279,_0x151106:0x11b,_0x2b7355:0x1e8,_0x579385:0x264,_0x4ad188:0x1de,_0x503447:0x187,_0x37db61:0x36a},_0x5316e3={_0x6c8c1a:0xd7,_0xaa01be:0x174},_0x22d8c1={_0x56d6da:0x386},_0x3d2d76={_0xbb9d9d:0x198,_0x2c117a:0x242,_0x44de77:0x152,_0x55f3ec:0xe6},_0x534da4={_0x4883f4:0x18f,_0x528699:0x345};if(!this[_0x16b2ab(0x395,0x30d,0x336,0x393)]){const _0x954e6a=this[_0x50f979(_0x483d6e._0x57f109,_0x483d6e._0x151106,_0x483d6e._0x2b7355,0x10c)][_0x50f979(0xfc,_0x483d6e._0x579385,_0x483d6e._0x4ad188,_0x483d6e._0x503447)](_0x487983);_0x954e6a[_0x16b2ab(0x38f,0x365,0x309,0x380)](()=>{function _0xef50ad(_0x518dda,_0x2034c7,_0x6ff0eb,_0x57b448){return _0x50f979(_0x518dda-_0x534da4._0x4883f4,_0x2034c7,_0x518dda- -_0x534da4._0x528699,_0x57b448-0x82);}function _0x25782e(_0x50cee6,_0x44fccb,_0x298091,_0x1bc8e1){return _0x50f979(_0x50cee6-0x16a,_0x1bc8e1,_0x44fccb- -0x32a,_0x1bc8e1-0xdc);}this[_0x25782e(-0x13d,-_0x3d2d76._0xbb9d9d,-_0x3d2d76._0x2c117a,-_0x3d2d76._0x44de77)]===_0x954e6a&&(this[_0x25782e(-0x15a,-0x198,-_0x3d2d76._0x55f3ec,-0xfb)]=void 0x0);}),this[_0x16b2ab(_0x483d6e._0x37db61,0x30d,0x22c,0x273)]=_0x954e6a;}function _0x50f979(_0x23d34e,_0x3fd545,_0x3d6ee6,_0x107f64){return _0x1b98ce(_0x3fd545,_0x3d6ee6- -_0x22d8c1._0x56d6da,_0x3d6ee6-0x154,_0x107f64-0x1d4);}function _0x16b2ab(_0x226a7e,_0x3c06c2,_0x4497ac,_0x2437fd){return _0x1b98ce(_0x2437fd,_0x3c06c2- -0x20b,_0x4497ac-_0x5316e3._0x6c8c1a,_0x2437fd-_0x5316e3._0xaa01be);}return structuredClone(await this['cached']);}[_0x1b1adc(0x0,0xb2,0x2b,0x197)](){const _0x551316={_0x4953cc:0x13c,_0x31a749:0x17d},_0xe59e48={_0x235ac0:0x21};function _0x34c957(_0x236e5,_0x1aa126,_0x5635bf,_0x3a53c8){return _0x1b1adc(_0x236e5-0x187,_0x236e5- -_0xe59e48._0x235ac0,_0x5635bf-0x1e2,_0x5635bf);}this[_0x34c957(-0xf2,-0x17a,-_0x551316._0x4953cc,-_0x551316._0x31a749)]=void 0x0;}};async function prepareProviderRequest(_0x34d99a,_0x46dfca={}){const _0x2f0fc0={_0x3c6bde:0x39,_0x8b93c9:0x14f,_0x3f37f9:0x4e0,_0x46bb0d:0x490,_0x925de4:0x3ab},_0x197f9f={_0x15b6c4:0x3c,_0x452b70:0x12e},_0x5e2d0f={_0x31ccaf:0x7a};let _0x593600={'request':structuredClone(_0x34d99a),'session':_0x46dfca[_0x366813(_0x2f0fc0._0x3c6bde,0x192,_0x2f0fc0._0x8b93c9,0x105)]?await _0x46dfca[_0x2827e1(0x4ad,_0x2f0fc0._0x3f37f9,_0x2f0fc0._0x46bb0d,0x412)]['resolve'](_0x46dfca['signal']):void 0x0};function _0x366813(_0x47cc5c,_0x21326f,_0x15ad58,_0x3397b1){return _0x1b98ce(_0x15ad58,_0x3397b1- -0x4c9,_0x15ad58-_0x5e2d0f._0x31ccaf,_0x3397b1-0x74);}for(const _0x3bca91 of _0x46dfca[_0x2827e1(0x423,0x399,0x3e3,_0x2f0fc0._0x925de4)]??[]){_0x593600=await _0x3bca91(_0x593600);}function _0x2827e1(_0x1bdda0,_0x39855e,_0x109475,_0x287624){return _0x1b98ce(_0x287624,_0x109475- -0x13e,_0x109475-_0x197f9f._0x15b6c4,_0x287624-_0x197f9f._0x452b70);}return _0x593600;}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{[_0x1b1adc(0x2f,-0x3f,0x6d,0x8)];[_0x1b98ce(0x4e5,0x4f4,0x597,0x4bf)];[_0x1b98ce(0x607,0x578,0x575,0x4a6)];['apiKey'];['baseUrl'];[_0x1b1adc(-0xdc,-0xb6,-0x76,-0xc2)];['providerAdapter'];[_0x1b1adc(-0x183,-0xc8,-0x18d,-0x7f)];['router'];['sessionManager'];[_0x1b98ce(0x65f,0x636,0x656,0x5be)];[_0x1b1adc(0xbd,0x3f,-0x40,-0x24)]=new Map();constructor(_0x3fd322){const _0xc6e9d6={_0xcacab7:0xff,_0x5416e0:0xf1,_0x2336ca:0x156,_0xed2796:0x53,_0x25c7f2:0x29,_0x2071b3:0x117,_0x5c1026:0x2d,_0x25dd27:0xea,_0x195f04:0x24,_0xcc3d2d:0xbf,_0x235ef2:0xbf,_0x3b04ef:0x18c,_0x3beab7:0x1b0,_0x23a3a7:0x279,_0x606a67:0x159,_0xc4c0a5:0x1f2,_0x1a921a:0x1ca,_0x3a79dc:0x20e,_0x4a605a:0x19a,_0x8e4d0f:0x19d,_0x440ef2:0x21,_0x1e6c93:0x7a,_0x1b0408:0x64,_0x2b095c:0x281,_0x4ee3ce:0x19b,_0x22712a:0x232,_0x11f450:0x210,_0x11ac94:0xbd,_0x255f6e:0x272,_0x184d75:0x197,_0x53998c:0x129,_0x5716f5:0x1ff,_0x4a57dc:0x14f,_0x16b70f:0x125,_0x4139ad:0x14c,_0x47ea1d:0x28c,_0x2346be:0x1d9,_0x486e5a:0x201,_0x12764c:0x11a,_0x3f330f:0x16f,_0x3d9a70:0x19a,_0x3574b6:0x43,_0x547c5b:0x29b,_0x2bf425:0x2e0,_0x42db90:0x239,_0x3f9691:0x363,_0x5de8d3:0x1a1,_0x54aaff:0x197,_0x3ceb08:0x27c,_0x484e7c:0x259,_0xd322c2:0x11e},_0x1e7d7d={_0xb76d20:0xb8},_0x2a824a={_0x3e1e7c:0x4b9,_0x589644:0x1d8};this[_0x2f5e3e(_0xc6e9d6._0xcacab7,_0xc6e9d6._0x5416e0,_0xc6e9d6._0x2336ca,0x3a)]=_0x3fd322['model'],this['maxTokens']=_0x3fd322[_0x501216(_0xc6e9d6._0xed2796,_0xc6e9d6._0x25c7f2,0x27,_0xc6e9d6._0x2071b3)]??getDefaultMaxTokens(),this[_0x2f5e3e(_0xc6e9d6._0x5c1026,0xbf,0x14,_0xc6e9d6._0x25dd27)]=_0x3fd322[_0x2f5e3e(-_0xc6e9d6._0x195f04,_0xc6e9d6._0xcc3d2d,0xd2,0x1a4)]?structuredClone(_0x3fd322[_0x2f5e3e(0x121,_0xc6e9d6._0x235ef2,0xf0,_0xc6e9d6._0x3b04ef)]):void 0x0,this[_0x501216(_0xc6e9d6._0x3beab7,_0xc6e9d6._0x23a3a7,_0xc6e9d6._0x606a67,_0xc6e9d6._0xc4c0a5)]=_0x3fd322[_0x501216(_0xc6e9d6._0x1a921a,0x161,0x1f1,_0xc6e9d6._0xc4c0a5)],this[_0x501216(0x1a3,_0xc6e9d6._0x3a79dc,0x1b0,0x170)]=_0x3fd322[_0x501216(0x1d1,_0xc6e9d6._0x4a605a,_0xc6e9d6._0x8e4d0f,0x170)];function _0x2f5e3e(_0x4217bc,_0xce58f7,_0x501b52,_0x33d66e){return _0x1b98ce(_0x4217bc,_0xce58f7- -_0x2a824a._0x3e1e7c,_0x501b52-_0x2a824a._0x589644,_0x33d66e-0xbb);}this[_0x2f5e3e(-_0xc6e9d6._0x440ef2,_0xc6e9d6._0x1e6c93,-_0xc6e9d6._0x1b0408,-0x15)]=_0x3fd322[_0x501216(_0xc6e9d6._0x2b095c,_0xc6e9d6._0x4ee3ce,_0xc6e9d6._0x22712a,0x197)]??globalThis[_0x501216(_0xc6e9d6._0x11f450,_0xc6e9d6._0x11ac94,_0xc6e9d6._0x255f6e,_0xc6e9d6._0x184d75)],this['providerAdapter']=_0x3fd322[_0x501216(_0xc6e9d6._0x53998c,_0xc6e9d6._0x5716f5,0x222,_0xc6e9d6._0x4a57dc)];function _0x501216(_0xb814de,_0x2a25be,_0x29e0d0,_0x490a4b){return _0x1b98ce(_0x2a25be,_0x490a4b- -0x3dd,_0x29e0d0-0x1d4,_0x490a4b-_0x1e7d7d._0xb76d20);}this[_0x2f5e3e(_0xc6e9d6._0x16b70f,0x68,-0x53,_0xc6e9d6._0x4139ad)]=_0x3fd322['requestMutators']??[],this[_0x2f5e3e(_0xc6e9d6._0x47ea1d,_0xc6e9d6._0x2346be,0x288,0x1ef)]=_0x3fd322[_0x2f5e3e(_0xc6e9d6._0x486e5a,0x1d9,_0xc6e9d6._0x12764c,_0xc6e9d6._0x3f330f)],this[_0x2f5e3e(_0xc6e9d6._0x3d9a70,0x115,0xae,_0xc6e9d6._0x3574b6)]=_0x3fd322['sessionManager']??(_0x3fd322[_0x501216(_0xc6e9d6._0x547c5b,0x3a3,0x299,_0xc6e9d6._0x2bf425)]?new ProviderSessionManager(_0x3fd322[_0x501216(_0xc6e9d6._0x42db90,_0xc6e9d6._0x3f9691,0x215,0x2e0)]):void 0x0),this[_0x2f5e3e(0x11d,0x17d,_0xc6e9d6._0x5de8d3,_0xc6e9d6._0x54aaff)]=_0x3fd322[_0x501216(0x256,_0xc6e9d6._0x3ceb08,0x1ca,_0xc6e9d6._0x484e7c)]??createDefaultWebSocketFactory();for(const _0x4f67f7 of _0x3fd322[_0x2f5e3e(_0xc6e9d6._0xd322c2,_0xc6e9d6._0x3f330f,0x208,0x130)]){this['surfaces']['set'](_0x4f67f7['id'],_0x4f67f7);}}[_0x1b98ce(0x561,0x5d3,0x693,0x648)](_0x1d6f57,_0x25fba9){const _0x2a0118={_0x203340:0x130,_0xbc7e78:0x9f},_0x111424={_0x2f7d27:0x114};function _0x534cc7(_0x5d19f0,_0x5dff20,_0x172e50,_0x69985c){return _0x1b98ce(_0x5d19f0,_0x5dff20- -0x404,_0x172e50-0x131,_0x69985c-_0x111424._0x2f7d27);}return this[_0x534cc7(0xaf,_0x2a0118._0x203340,_0x2a0118._0xbc7e78,0x16c)](_0x1d6f57,_0x25fba9);}[_0x1b98ce(0x621,0x5fe,0x6bc,0x57e)](_0x4708d8,_0x2e7396){const _0x375676={_0x310807:0x1dc,_0xc4bcb0:0x142},_0x1e6eae={_0x166dd9:0x63};function _0x1eaf99(_0x263d6b,_0x29bde8,_0x646a4,_0x53be2b){return _0x1b1adc(_0x263d6b-0x3e,_0x263d6b-0x155,_0x646a4-_0x1e6eae._0x166dd9,_0x646a4);}return this[_0x1eaf99(_0x375676._0x310807,0x1cb,0x148,_0x375676._0xc4bcb0)](_0x4708d8,_0x2e7396);}async[_0x1b98ce(0x5ad,0x534,0x4c9,0x4b7)](_0x3ab693,_0x3abbde){const _0x514b74={_0x3e5e1e:0x29,_0x33f635:0x25,_0x455a92:0x4a,_0x19afd4:0x97,_0x577ac0:0x83,_0x257b66:0x3e,_0x5a5c64:0x3ea,_0x36bbd1:0x429},_0x4c65db={_0x3d877a:0xd5},_0x53ee22={_0x40bbef:0xee};function _0x457a9c(_0x5bc9db,_0x461ba2,_0x1204c2,_0x45fb28){return _0x1b98ce(_0x5bc9db,_0x461ba2- -_0x53ee22._0x40bbef,_0x1204c2-0x98,_0x45fb28-0x112);}const _0xa74034=this[_0x4acff8(_0x514b74._0x3e5e1e,_0x514b74._0x33f635,-_0x514b74._0x455a92,-0x44)](_0x3ab693),_0x1369c1=await this['router'][_0x4acff8(_0x514b74._0x19afd4,_0x514b74._0x577ac0,_0x514b74._0x257b66,0x1f)](_0xa74034,{'mode':'complete'});function _0x4acff8(_0x5b0075,_0x27c235,_0x347157,_0x47d063){return _0x1b1adc(_0x5b0075-_0x4c65db._0x3d877a,_0x47d063- -0x9e,_0x347157-0x1a0,_0x27c235);}return this[_0x457a9c(0x475,0x420,_0x514b74._0x5a5c64,_0x514b74._0x36bbd1)](_0xa74034,_0x1369c1,_0x3abbde);}async*['streamViaRouter'](_0x479e68,_0x1ebd9e){const _0x153609={_0x1bc981:0x1ff,_0x5d2f69:0x1d8,_0x4574c9:0x2ad,_0x2617be:0x19b,_0x1611a3:0x26d,_0x5dca91:0x268},_0x351699={_0xc83d2d:0xd3,_0xa44d0e:0x634,_0x228962:0x19c};function _0x40fdbb(_0x491570,_0x34eb84,_0xf64115,_0x2132b3){return _0x1b98ce(_0xf64115,_0x2132b3- -0x396,_0xf64115-0x163,_0x2132b3-0x56);}const _0x4931f0=this[_0x40fdbb(0x25d,_0x153609._0x1bc981,_0x153609._0x5d2f69,_0x153609._0x4574c9)](_0x479e68);function _0x306d1b(_0x220edf,_0x36efec,_0x33c5bb,_0x5dee16){return _0x1b1adc(_0x220edf-_0x351699._0xc83d2d,_0x220edf-_0x351699._0xa44d0e,_0x33c5bb-_0x351699._0x228962,_0x33c5bb);}const _0x5c1163=await this['router']['selectSurface'](_0x4931f0,{'mode':_0x40fdbb(0x258,_0x153609._0x2617be,_0x153609._0x1611a3,_0x153609._0x5dca91)});yield*this[_0x40fdbb(0x141,0x2b8,0x248,0x205)](_0x4931f0,_0x5c1163,_0x1ebd9e);}async['completeViaSurface'](_0x527cb9,_0x1a5b95,_0x333398){const _0x1db440={_0x3fb388:0x4be,_0x103320:0x550,_0x4f3f01:0x5c7,_0x549ced:0x54b,_0x16257b:0x5d6,_0x59ff70:0x518,_0x26c414:0x524,_0x1af30a:0x5bf,_0xd85fa5:0x5a0,_0x49ed84:0x473,_0x1017f1:0x4c2,_0xfd197:0x3d4,_0x50877d:0x3d2,_0x371bfd:0x463,_0x539d84:0x376,_0x4ab3d7:0x3de,_0xf8ea4:0x48c,_0x3952d8:0x4f8,_0x401bbb:0x531,_0x456a49:0x60b,_0x43e6f6:0x4cd,_0x3ee271:0x670,_0x4bef1f:0x60f,_0x43cfd5:0x573,_0x2ff423:0x5c4},_0x3252b8={_0x37cc5a:0x125},_0x366879={_0x1a5ae2:0x1b6},_0x371573=this[_0x89c39e(0x53b,_0x1db440._0x3fb388,0x5ca,0x502)](_0x527cb9);function _0x89c39e(_0x50caec,_0x50abbb,_0x1ed17b,_0xeef01f){return _0x1b1adc(_0x50caec-0xa6,_0x50caec-0x4e1,_0x1ed17b-_0x366879._0x1a5ae2,_0x50abbb);}const _0x54b49a=this[_0x89c39e(_0x1db440._0x103320,_0x1db440._0x4f3f01,0x63a,_0x1db440._0x549ced)](_0x1a5b95);if(_0x54b49a[_0x89c39e(0x55a,_0x1db440._0x16257b,0x541,_0x1db440._0x59ff70)]===_0x89c39e(0x49f,0x445,_0x1db440._0x26c414,0x407)){const _0x82b195=await this[_0x89c39e(_0x1db440._0x1af30a,_0x1db440._0xd85fa5,0x4d1,0x5b4)](_0x371573,_0x54b49a,![],_0x333398);if(!_0x82b195['ok'])throw await this['toApiError'](_0x82b195);if(!_0x54b49a[_0x2d7b7c(_0x1db440._0x49ed84,0x45c,_0x1db440._0x1017f1,0x432)])throw new Error('Surface\x20'+_0x1a5b95+_0x2d7b7c(0x4b3,0x419,_0x1db440._0xfd197,_0x1db440._0x50877d));return _0x54b49a[_0x89c39e(_0x1db440._0x371bfd,_0x1db440._0x539d84,0x3d3,_0x1db440._0x4ab3d7)](await _0x82b195['json'](),_0x371573);}function _0x2d7b7c(_0x41f852,_0x22b29b,_0x13cc21,_0x29f6e6){return _0x1b1adc(_0x41f852-0xa0,_0x22b29b-0x4da,_0x13cc21-_0x3252b8._0x37cc5a,_0x41f852);}let _0x214311;for await(const _0x1a26a2 of this[_0x2d7b7c(0x3d9,_0x1db440._0xf8ea4,_0x1db440._0x3952d8,_0x1db440._0x401bbb)](_0x371573,_0x1a5b95,_0x333398)){_0x1a26a2[_0x89c39e(0x58c,0x4e9,0x666,_0x1db440._0x456a49)]===_0x89c39e(0x597,_0x1db440._0x43e6f6,0x4a7,_0x1db440._0x3ee271)&&(_0x214311=_0x1a26a2['response']);}if(!_0x214311)throw new Error(_0x89c39e(0x57a,_0x1db440._0x4bef1f,0x547,_0x1db440._0x43cfd5)+_0x1a5b95+_0x2d7b7c(_0x1db440._0x2ff423,0x4fa,0x5c4,0x48c));return _0x214311;}async*[_0x1b1adc(0x3d,-0x4e,-0x8a,-0x117)](_0x5af464,_0x4adabb,_0x289912){const _0x4b8b40={_0x2070e9:0x409,_0x4956c4:0x4d8,_0x25003c:0x41e,_0x3bc2cc:0x371,_0x50f73f:0x75,_0x433aad:0x371,_0x41e282:0x128,_0x504769:0x176,_0x20e156:0xc4,_0x1a71d9:0x73,_0x10dbd2:0xc0,_0x98bce3:0x37d,_0x115af5:0x28d,_0x3e352f:0x3bb},_0x1ff23d={_0x11d8f2:0x145},_0x4315a8={_0x584150:0x1b4,_0x286afb:0x19f},_0x2208d9=this[_0x3b1db2(_0x4b8b40._0x2070e9,0x447,_0x4b8b40._0x4956c4,0x46e)](_0x5af464);function _0x187f23(_0x1532fc,_0x10b204,_0xf57f89,_0x4fc589){return _0x1b98ce(_0xf57f89,_0x4fc589- -0x663,_0xf57f89-_0x4315a8._0x584150,_0x4fc589-_0x4315a8._0x286afb);}const _0x525c2a=this[_0x3b1db2(_0x4b8b40._0x25003c,_0x4b8b40._0x3bc2cc,0x393,0x4cf)](_0x4adabb);function _0x3b1db2(_0x308bc8,_0x1963fd,_0x5a2349,_0x3476c5){return _0x1b1adc(_0x308bc8-_0x1ff23d._0x11d8f2,_0x308bc8-0x3af,_0x5a2349-0x35,_0x5a2349);}if(_0x525c2a[_0x187f23(_0x4b8b40._0x50f73f,0xeb,0x9a,-0x1)]==='http-json'){const _0x46c0aa=await this['completeViaSurface'](_0x2208d9,_0x4adabb,_0x289912);yield{'type':'done','response':_0x46c0aa};return;}if(_0x525c2a[_0x3b1db2(0x428,0x360,0x48e,_0x4b8b40._0x433aad)]===_0x187f23(-_0x4b8b40._0x41e282,-_0x4b8b40._0x504769,-_0x4b8b40._0x20e156,-0xa4)){yield*this['streamHttpSurface'](_0x2208d9,_0x525c2a,_0x289912);return;}yield*this[_0x187f23(0xc7,-_0x4b8b40._0x1a71d9,_0x4b8b40._0x10dbd2,0x11)](_0x2208d9,_0x525c2a,_0x289912?.[_0x3b1db2(_0x4b8b40._0x98bce3,_0x4b8b40._0x115af5,0x385,_0x4b8b40._0x3e352f)]);}async['sendRawRequest'](_0xcc0403){const _0x2fc8ca={_0x9440df:0x3e1,_0x2435ec:0x43c,_0x206cfd:0x3d2,_0x390ab3:0xa6,_0x1bbeef:0xb1,_0x21cabb:0xad,_0x34fdbd:0x76,_0x272af8:0x4b,_0x4bb0a5:0x7,_0x3232ac:0x4d7,_0x28a69b:0x29d,_0x1d3576:0x4d5,_0x557caf:0x461,_0x1862aa:0x306,_0x32d98d:0x32d,_0x4cf498:0x244,_0x3278d8:0x442,_0x42d0ef:0x3cb,_0x392acd:0x2d1,_0xfd13ae:0x34d,_0x4d209b:0x3c1,_0x5cbbbb:0x429,_0x55342b:0x4c8,_0x56eea4:0x281,_0x2cc14b:0x3bf,_0x1ede85:0x350,_0x5682e0:0x374,_0x56abe0:0xb7,_0x893592:0x11,_0x33a35a:0x1b},_0x2e5038={_0x376982:0x132},_0x465395={_0x4259eb:0x2a9},_0x793d79=async()=>{function _0x537081(_0x443b57,_0x40c296,_0x502518,_0x54e04a){return _0x58b0(_0x502518- -_0x465395._0x4259eb,_0x40c296);}const _0x66601e=this[_0x97a977(0x393,_0x2fc8ca._0x9440df,_0x2fc8ca._0x2435ec,_0x2fc8ca._0x206cfd)]?await this[_0x537081(0xc8,-0x7,0x6,0xba)][_0x537081(-0x118,-_0x2fc8ca._0x390ab3,-0x64,-_0x2fc8ca._0x1bbeef)](_0xcc0403['signal']):void 0x0;function _0x97a977(_0x5ece1e,_0xa62480,_0x59a62c,_0x3e32b4){return _0x58b0(_0xa62480-_0x2e5038._0x376982,_0x3e32b4);}const _0x14249c=this[_0x537081(-_0x2fc8ca._0x21cabb,-0x13e,-0x9c,-0x26)]['resolveCredential'](this[_0x537081(-_0x2fc8ca._0x34fdbd,-_0x2fc8ca._0x272af8,_0x2fc8ca._0x4bb0a5,0x69)],_0x66601e);if(!_0x14249c)throw this[_0x97a977(_0x2fc8ca._0x3232ac,0x46f,0x49b,0x43c)]();const _0x35c30b=await this[_0x97a977(0x391,0x37d,_0x2fc8ca._0x28a69b,0x454)]({'body':_0xcc0403[_0x97a977(_0x2fc8ca._0x1d3576,0x3e5,_0x2fc8ca._0x557caf,_0x2fc8ca._0x1862aa)],'credential':_0x14249c,'session':_0x66601e,'stream':![]},{'accept':_0xcc0403['accept']??'application/json','includeContentType':_0xcc0403[_0x97a977(0x33b,_0x2fc8ca._0x32d98d,0x3f4,_0x2fc8ca._0x4cf498)]===_0x97a977(_0x2fc8ca._0x3278d8,_0x2fc8ca._0x42d0ef,0x4b3,0x3b5)});return this[_0x97a977(_0x2fc8ca._0x392acd,0x346,_0x2fc8ca._0xfd13ae,_0x2fc8ca._0x4d209b)](''+this['providerAdapter'][_0x97a977(_0x2fc8ca._0x5cbbbb,0x4ce,0x500,_0x2fc8ca._0x55342b)](this[_0x97a977(0x39f,0x360,0x3db,_0x2fc8ca._0x56eea4)],_0x66601e)+_0xcc0403[_0x97a977(_0x2fc8ca._0x2cc14b,0x3ee,_0x2fc8ca._0x1ede85,0x416)],{'method':_0xcc0403[_0x537081(-0x3c,-0xcd,-0xae,0x40)],'headers':_0x35c30b,..._0xcc0403[_0x97a977(0x3e9,0x3e5,_0x2fc8ca._0x5682e0,0x37b)]!==void 0x0?{'body':JSON[_0x97a977(0x535,0x44b,0x453,0x3f9)](_0xcc0403[_0x97a977(0x432,0x3e5,0x3a5,0x371)])}:{},'signal':_0xcc0403[_0x537081(_0x2fc8ca._0x56abe0,0x37,-_0x2fc8ca._0x893592,_0x2fc8ca._0x33a35a)]});};return await this['sendWithRetries'](_0x793d79,_0xcc0403);}[_0x1b98ce(0x727,0x6ad,0x730,0x669)](_0x4f1ce4,_0x307728){const _0xe97a03={_0x35eda9:0x5e3,_0x525aa2:0x537,_0x1941e6:0x580,_0x1bef31:0x601,_0x4d95e1:0x57c,_0x45100f:0x2e2},_0x2d5ed4={_0x4b8f0a:0x3ab},_0x5ecddd={_0x63f820:0x4a,_0x19a16e:0x579,_0x1edfc5:0x1ed},_0x27b894=_0x4f1ce4?.['headers'][_0xbaecff(_0xe97a03._0x35eda9,0x4f5,0x67d,0x5bc)]('retry-after');if(_0x27b894){const _0x5abc92=Number(_0x27b894);if(Number[_0xbaecff(0x5c7,_0xe97a03._0x525aa2,_0xe97a03._0x1941e6,0x61c)](_0x5abc92)&&_0x5abc92>=0x0)return _0x5abc92*0x3e8;const _0x4c33c0=Date['parse'](_0x27b894);if(Number[_0xbaecff(0x5d4,_0xe97a03._0x1bef31,_0xe97a03._0x4d95e1,0x61c)](_0x4c33c0))return Math['max'](0x0,_0x4c33c0-Date[_0x2797d5(0x302,0x251,_0xe97a03._0x45100f,0x314)]());}function _0xbaecff(_0x46d9d1,_0x360a14,_0x3c5bb7,_0x52d09d){return _0x1b1adc(_0x46d9d1-_0x5ecddd._0x63f820,_0x52d09d-_0x5ecddd._0x19a16e,_0x3c5bb7-_0x5ecddd._0x1edfc5,_0x46d9d1);}const _0x2eb5d9=DEFAULT_RETRY_DELAY_MS*0x2**_0x307728;function _0x2797d5(_0x4e75cf,_0x5a4fa6,_0x1b92b6,_0x378408){return _0x1b1adc(_0x4e75cf-0x37,_0x378408-_0x2d5ed4._0x4b8f0a,_0x1b92b6-0x1db,_0x5a4fa6);}if(_0x2eb5d9<RETRY_DELAY_STEP_CAP_MS)return _0x2eb5d9;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x307728-0x5);}[_0x1b1adc(0x74,0x70,-0x1c,-0x61)](_0x44318c){const _0x3b310e={_0x37f2e3:0x18e,_0x515c04:0x25c,_0x9846ce:0xac,_0x2383f4:0x160,_0x4532ee:0x100},_0x33a93a={_0x151d0a:0xb2},_0x6a6dd1={_0x390a59:0x682,_0x148c4b:0x28};function _0x4feaf6(_0x3724d0,_0x6e841c,_0x15050a,_0x1f7f4d){return _0x1b98ce(_0x15050a,_0x6e841c- -_0x6a6dd1._0x390a59,_0x15050a-_0x6a6dd1._0x148c4b,_0x1f7f4d-0x93);}function _0x4dad44(_0x2302b8,_0x5ea52a,_0x3e11a2,_0x34df0e){return _0x1b1adc(_0x2302b8-_0x33a93a._0x151d0a,_0x2302b8- -0xea,_0x3e11a2-0x6c,_0x3e11a2);}return RETRYABLE_HTTP_STATUSES[_0x4dad44(-_0x3b310e._0x37f2e3,-_0x3b310e._0x515c04,-_0x3b310e._0x9846ce,-_0x3b310e._0x2383f4)](_0x44318c[_0x4dad44(-0x142,-_0x3b310e._0x4532ee,-0x1c4,-0xa1)]);}[_0x1b1adc(0x8,0x82,-0x65,0x165)](_0x18ba37){return!isAbortError(_0x18ba37)&&_0x18ba37 instanceof TypeError;}['shouldRetryStreamAttemptError'](_0x2252fd){const _0x5386e3={_0x373061:0x1d1,_0x47ebea:0x20c,_0x3669ab:0x1c8},_0x2a88ad={_0x4e5429:0x4a3,_0x398fc2:0x1f4};function _0x22154c(_0x29c8ca,_0x4cabe5,_0x3c0179,_0x22404b){return _0x1b98ce(_0x3c0179,_0x22404b- -_0x2a88ad._0x4e5429,_0x3c0179-0xb6,_0x22404b-_0x2a88ad._0x398fc2);}return this[_0x22154c(0x291,_0x5386e3._0x373061,_0x5386e3._0x47ebea,_0x5386e3._0x3669ab)](_0x2252fd)||isRetryableProviderStreamEventError(_0x2252fd);}async['waitForRetry'](_0x116864,_0x1c48ec){throwIfAborted(_0x1c48ec),await new Promise((_0x2bf7c3,_0x4641f6)=>{let _0x2c33c9=![];const _0x4af580=addAbortListener(_0x1c48ec,()=>{if(_0x2c33c9)return;_0x2c33c9=!![],clearTimeout(_0x569d39),_0x4641f6(toAbortError(_0x1c48ec?.['reason']));}),_0x569d39=setTimeout(()=>{_0x2c33c9=!![],_0x4af580(),_0x2bf7c3();},_0x116864);}),throwIfAborted(_0x1c48ec);}async[_0x1b1adc(0xff,0x9b,0x3a,0x178)](_0x12a413,_0x1bbc1d={}){const _0x581685={_0x155ea3:0x136,_0x2ef94b:0x1ab,_0x4f90f8:0x14,_0xd8d00a:0x63,_0x5d89a7:0x8a,_0x1ff7c5:0x79,_0x564204:0xe8,_0xd1c1ee:0x19,_0x18fffd:0xc9,_0x5c3d97:0x4a,_0x199e36:0x62,_0x84ab49:0x63,_0x16bf14:0xf2,_0x24b62d:0x10c},_0x3fa63b={_0x274489:0x6f},_0x56a1f5={_0x8c234d:0x1b,_0x3d7df6:0xf1};function _0x3d80a1(_0x49151a,_0x48bc7f,_0x5017e4,_0x13c9cd){return _0x1b98ce(_0x48bc7f,_0x5017e4- -0x409,_0x5017e4-_0x56a1f5._0x8c234d,_0x13c9cd-_0x56a1f5._0x3d7df6);}const {signal:_0x8950ed}=_0x1bbc1d;function _0x37114f(_0x2eca5c,_0x8c9910,_0x5e7f8c,_0x53c471){return _0x1b98ce(_0x8c9910,_0x5e7f8c- -0x6c6,_0x5e7f8c-_0x3fa63b._0x274489,_0x53c471-0xbb);}let _0x5a235e=![];for(let _0x52911e=0x0;_0x52911e<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x52911e+=0x1){throwIfAborted(_0x8950ed);try{const _0x4ae8b8=await _0x12a413();if(_0x4ae8b8[_0x37114f(-0x163,-0x162,-0x135,-_0x581685._0x155ea3)]===0x191&&this[_0x37114f(-0x26,-_0x581685._0x2ef94b,-0xf8,-_0x581685._0x4f90f8)]&&!_0x5a235e){_0x5a235e=!![],this['sessionManager'][_0x37114f(-_0x581685._0xd8d00a,0x88,-0x2b,-0x102)]();continue;}if(!this[_0x37114f(0x6,-_0x581685._0x5d89a7,-0x6d,-0xcc)](_0x4ae8b8)||_0x52911e===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x4ae8b8;const _0x2fbebc=this[_0x37114f(_0x581685._0x1ff7c5,-_0x581685._0x564204,-_0x581685._0xd1c1ee,_0x581685._0x18fffd)](_0x4ae8b8,_0x52911e);await this['waitForRetry'](_0x2fbebc,_0x8950ed);}catch(_0x1d62a5){if(!this[_0x37114f(_0x581685._0x5c3d97,0x64,-0x5b,-_0x581685._0x199e36)](_0x1d62a5)||_0x52911e===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x1d62a5;const _0x49fbe1=this['getRetryDelayMs'](void 0x0,_0x52911e);await this['waitForRetry'](_0x49fbe1,_0x8950ed);}}throw new Error(_0x37114f(-_0x581685._0x84ab49,-_0x581685._0x16bf14,-0x13a,-_0x581685._0x24b62d));}[_0x1b1adc(0x9b,0x73,-0x66,0xbb)](){const _0x5cec93={_0x2a3113:0x16f,_0xe211b8:0x310,_0x3bf63d:0x25d,_0x2309a0:0x2fe},_0x29ff9b={_0x20e40f:0x175},_0x2de1f3={_0x2bd678:0xf2};function _0x334db4(_0x4e3442,_0x155601,_0x437e7f,_0xe220e7){return _0x1b1adc(_0x4e3442-_0x2de1f3._0x2bd678,_0x155601-0x26a,_0x437e7f-0x1b4,_0x437e7f);}function _0x2d19c2(_0x3fe0e7,_0x4ab490,_0x3aba8e,_0x1da518){return _0x1b98ce(_0x1da518,_0x3aba8e- -0x2b4,_0x3aba8e-0xea,_0x1da518-_0x29ff9b._0x20e40f);}return this[_0x334db4(_0x5cec93._0x2a3113,0x1ad,0x229,0x1ba)][_0x334db4(_0x5cec93._0xe211b8,0x2dd,_0x5cec93._0x3bf63d,_0x5cec93._0x2309a0)]();}async[_0x1b98ce(0x637,0x56a,0x647,0x523)](_0x49f860,_0x17f8a4){const _0x50a4ff={_0x46bd46:0xf9,_0x2ced37:0x386,_0x533f87:0x44c,_0x258c32:0x4a5},_0x22bdae={_0xf20966:0x448,_0x4a002b:0x1ba},_0x1494bc={_0x4c5261:0x1a6};function _0x2a9061(_0x576b5f,_0x36d790,_0x41b950,_0x42e1dc){return _0x1b98ce(_0x41b950,_0x36d790- -_0x1494bc._0x4c5261,_0x41b950-0x10d,_0x42e1dc-0x39);}function _0x32dba3(_0x5165e4,_0x577f70,_0x554452,_0x26ee17){return _0x1b98ce(_0x26ee17,_0x577f70- -_0x22bdae._0xf20966,_0x554452-_0x22bdae._0x4a002b,_0x26ee17-0x4);}return await this[_0x32dba3(_0x50a4ff._0x46bd46,0xe4,0xfd,0x1a5)][_0x2a9061(_0x50a4ff._0x2ced37,0x3c4,_0x50a4ff._0x533f87,_0x50a4ff._0x258c32)](_0x49f860,_0x17f8a4);}[_0x1b1adc(0x52,0x88,-0x59,0x168)](_0x17ea62){const _0x2adfdf={_0x27bf71:0x7b8},_0x37af2f={_0x87dbea:0x68a,_0x4cff62:0x172};function _0x4c40d1(_0x574f7e,_0x1e2c8b,_0x39ef56,_0x4511d7){return _0x1b1adc(_0x574f7e-0x1e4,_0x1e2c8b-_0x37af2f._0x87dbea,_0x39ef56-_0x37af2f._0x4cff62,_0x4511d7);}return this['providerAdapter'][_0x4c40d1(0x73b,0x712,0x76e,_0x2adfdf._0x27bf71)](_0x17ea62);}async[_0x1b98ce(0x6c1,0x64c,0x640,0x687)](_0x37c281){const _0x371ba2={_0x5000f0:0x653,_0x20ad65:0x60f,_0x5706cc:0x675},_0x1833a0={_0x391d90:0x161};function _0x523792(_0xfcac1d,_0x4a4aed,_0x23bce6,_0x3e7fae){return _0x1b1adc(_0xfcac1d-0xbd,_0x23bce6-0x386,_0x23bce6-0xc9,_0xfcac1d);}function _0x4adc9f(_0x53058d,_0x24079f,_0x475905,_0x1f74d7){return _0x1b98ce(_0x53058d,_0x1f74d7-0x69,_0x475905-_0x1833a0._0x391d90,_0x1f74d7-0x15d);}return await this[_0x4adc9f(0x5d5,0x4e3,_0x371ba2._0x5000f0,0x595)][_0x4adc9f(_0x371ba2._0x20ad65,_0x371ba2._0x5706cc,0x645,0x6b5)](_0x37c281);}[_0x1b1adc(0xa9,0x6f,0x7b,-0x17)](_0x2795c4){const _0x4be9aa={_0x52cfc4:0x108,_0x33967e:0x1f5,_0x1d4902:0x39,_0x5d398d:0x9},_0x23ee95={_0x872d98:0x73},_0x5e3912={_0x503b62:0x617};function _0x53cc9c(_0x124191,_0x53aa6f,_0x2f1f53,_0xe1277b){return _0x1b98ce(_0x53aa6f,_0x2f1f53- -_0x5e3912._0x503b62,_0x2f1f53-0x5c,_0xe1277b-0x0);}const _0x579ed2=this[_0x53cc9c(-0x7f,-0xbc,0x11,0xe7)][_0x46d49d(0x2b,_0x4be9aa._0x52cfc4,0x12f,_0x4be9aa._0x33967e)](_0x2795c4);if(!_0x579ed2)throw new Error(_0x46d49d(-_0x4be9aa._0x1d4902,-_0x4be9aa._0x5d398d,-0x30,-0xcc)+_0x2795c4);function _0x46d49d(_0x7d826,_0x5f4a7d,_0x335266,_0x17149e){return _0x1b1adc(_0x7d826-_0x23ee95._0x872d98,_0x5f4a7d-0xc5,_0x335266-0x1b1,_0x7d826);}return _0x579ed2;}async[_0x1b1adc(0x9e,0xcd,0xd6,0xfd)](_0x5ba294,_0x15add5){const _0x21c1fe={_0x2d3ee8:0x7e,_0x2452cb:0x112,_0x4d2d80:0xb3,_0x97dd89:0x1b,_0x34b85b:0x66,_0x9ecc7e:0x65,_0x1875f3:0xb7,_0x57b578:0x3,_0xa98bf7:0x232,_0x440ebb:0x17c,_0x4f4c33:0xcc,_0x59b76:0xa0,_0x10e8db:0x1e2,_0x27257e:0x277,_0x5a2eb2:0x1ca,_0x23262a:0x91,_0x4da797:0x100,_0x549331:0x6f,_0x74f652:0x27f,_0x52487:0x193,_0x14998a:0x1a2},_0x3bf982={_0x413a83:0x109},_0x1e0ba9={_0x100ccd:0x132,_0x5a79f8:0xb3};function _0x58bb60(_0x3b89f3,_0x36b594,_0x61e924,_0x14657a){return _0x1b98ce(_0x3b89f3,_0x14657a- -0x4bc,_0x61e924-_0x1e0ba9._0x100ccd,_0x14657a-_0x1e0ba9._0x5a79f8);}const _0x34b7d3=toModelRequest(_0x5ba294),_0x4349fb=await prepareProviderRequest(_0x34b7d3,{'sessionManager':this[_0x58bb60(_0x21c1fe._0x2d3ee8,0x1c9,0x168,_0x21c1fe._0x2452cb)],'requestMutators':this[_0x58bb60(_0x21c1fe._0x4d2d80,_0x21c1fe._0x97dd89,-_0x21c1fe._0x34b85b,_0x21c1fe._0x9ecc7e)],'signal':_0x15add5}),_0x5e848f=toChatRequest(_0x4349fb[_0x1e03ec(0x3e,-_0x21c1fe._0x1875f3,-0x49,-_0x21c1fe._0x57b578)]);function _0x1e03ec(_0x53512e,_0x1c7f78,_0x2bea7a,_0x18ac18){return _0x1b98ce(_0x1c7f78,_0x18ac18- -0x4f1,_0x2bea7a-_0x3bf982._0x413a83,_0x18ac18-0x21);}const _0x1b8ce6=this['providerAdapter'][_0x1e03ec(-0xac,-0x3,0x96,0x3c)](this['apiKey'],_0x4349fb[_0x58bb60(_0x21c1fe._0xa98bf7,0x275,0x261,0x1b6)]);if(!_0x1b8ce6)throw this[_0x1e03ec(_0x21c1fe._0x440ebb,_0x21c1fe._0x4f4c33,_0x21c1fe._0x59b76,0x16b)]();return{'baseUrl':this['providerAdapter'][_0x1e03ec(_0x21c1fe._0x10e8db,0x1f0,_0x21c1fe._0x27257e,_0x21c1fe._0x5a2eb2)](this[_0x1e03ec(-_0x21c1fe._0x23262a,_0x21c1fe._0x4da797,-_0x21c1fe._0x549331,0x5c)],_0x4349fb[_0x58bb60(_0x21c1fe._0x74f652,0x26c,_0x21c1fe._0x52487,0x1b6)]),'credential':_0x1b8ce6,'request':_0x5e848f,'session':_0x4349fb[_0x1e03ec(0x12f,_0x21c1fe._0x14998a,0x242,0x181)]};}[_0x1b98ce(0x698,0x643,0x707,0x6a6)](_0x52d6bd){const _0x40f003={_0x5411ff:0xa8,_0x38627c:0x324,_0x83c297:0x244},_0x2ac751={_0x53890:0xa0},_0x3f5f5a={_0x4f64da:0x395};function _0x5da5e7(_0x12904e,_0x2b1b8d,_0xabd8ea,_0x54d408){return _0x1b1adc(_0x12904e-0xb0,_0x12904e-_0x3f5f5a._0x4f64da,_0xabd8ea-0xa1,_0xabd8ea);}function _0x4a6114(_0x4db94b,_0x5b1683,_0x2f0a68,_0x414ec4){return _0x1b1adc(_0x4db94b-0x19b,_0x2f0a68-_0x2ac751._0x53890,_0x2f0a68-0xa8,_0x4db94b);}return{...structuredClone(_0x52d6bd),..._0x52d6bd['reasoning']===void 0x0&&this[_0x4a6114(0xa4,0x16,0x2f,-_0x40f003._0x5411ff)]!==void 0x0?{'reasoning':structuredClone(this[_0x5da5e7(_0x40f003._0x38627c,_0x40f003._0x83c297,0x290,0x341)])}:{}};}async['sendHttpSurfaceRequest'](_0x1110a1,_0x587be4,_0x4b4345,_0x2586bf={},_0x297b58=!![]){const _0x471be9={_0xcc3626:0x3b3,_0x29ef5f:0x303},_0xbe4e8={_0x57d511:0x6,_0x4807a9:0xc9,_0x2e1cdd:0x2b,_0xf2218:0x65,_0xc0d564:0x66,_0x5a23b8:0x1c2,_0x19549c:0x269,_0x954938:0x4a6,_0x37a95e:0x488,_0x56b14c:0x4b8,_0x4278df:0x2e,_0x3a1d73:0x7e,_0x16ce35:0x21,_0x5889d2:0x16c,_0x41bb4f:0x1aa,_0x1e44a2:0x191,_0x598f96:0x1d4,_0x3c342a:0x3e7,_0x2cf67b:0x34b,_0x52c3b4:0x429,_0x54194a:0x4cd,_0x4dd10d:0x81,_0x42ca9c:0x26,_0x26a611:0xf8,_0x4398d3:0x4b0,_0x204d65:0x455,_0xf0c087:0x375,_0x19d441:0x46d,_0x1188dd:0x40b,_0x1c1a70:0x163,_0xbcb772:0x145,_0x2697f3:0xde,_0x510d49:0x11b,_0x11de91:0x492,_0x2e4f5c:0x4cf,_0x5d70fd:0x8a,_0x1fd104:0x165},{signal:_0x3c6dfa}=_0x2586bf,_0x1cd53b=async()=>{const _0x59be84={_0x1f66e8:0x391};function _0x507606(_0x39eedf,_0xcbdece,_0x37bfa9,_0x4b7044){return _0x58b0(_0xcbdece- -_0x59be84._0x1f66e8,_0x39eedf);}const _0x4a8c02=await this[_0x507606(0x14,_0xbe4e8._0x57d511,0x7,0xb5)](_0x1110a1,_0x3c6dfa);let _0x2bf7ce;try{_0x2bf7ce=_0x587be4[_0x507606(-_0xbe4e8._0x4807a9,-_0xbe4e8._0x2e1cdd,-_0xbe4e8._0xf2218,-_0xbe4e8._0xc0d564)](_0x4a8c02[_0x507606(-0x1d0,-_0xbe4e8._0x5a23b8,-_0xbe4e8._0x19549c,-0x1cd)]);}catch(_0x37036b){if(_0x37036b instanceof Error)throw new ProviderRequestConstructionError(_0x37036b['message']);throw _0x37036b;}if(!_0x2bf7ce[_0x3ef698(_0xbe4e8._0x954938,_0xbe4e8._0x37a95e,_0xbe4e8._0x56b14c,0x43a)])throw new ProviderRequestConstructionError(_0x507606(-_0xbe4e8._0x2e1cdd,-_0xbe4e8._0x4278df,-_0xbe4e8._0x3a1d73,0x15)+_0x587be4['id']+'\x20did\x20not\x20provide\x20an\x20HTTP\x20path');const _0x23e87c=await this['createHeaders']({'request':_0x4a8c02['request'],'body':_0x2bf7ce[_0x507606(-0xaa,-0xde,-_0xbe4e8._0x16ce35,-_0xbe4e8._0x5889d2)],'credential':_0x4a8c02[_0x507606(-_0xbe4e8._0x41bb4f,-_0xbe4e8._0x1e44a2,-_0xbe4e8._0x598f96,-0xa9)],'session':_0x4a8c02['session'],'stream':_0x4b4345},{'accept':_0x2bf7ce[_0x3ef698(0x464,0x39e,_0xbe4e8._0x3c342a,0x2b7)]??(_0x4b4345?'text/event-stream':_0x3ef698(_0xbe4e8._0x2cf67b,_0xbe4e8._0x52c3b4,0x3b4,_0xbe4e8._0x54194a)),'includeContentType':_0x2bf7ce[_0x507606(-_0xbe4e8._0x4dd10d,-0xde,-0x186,-0x54)]!==void 0x0});for(const [_0x2e421d,_0x45ce16]of Object[_0x507606(-0x3c,-_0xbe4e8._0x42ca9c,0x4a,-_0xbe4e8._0x26a611)](_0x2bf7ce[_0x3ef698(0x4b2,_0xbe4e8._0x4398d3,_0xbe4e8._0x204d65,0x517)]??{})){_0x23e87c[_0x3ef698(_0xbe4e8._0xf0c087,0x3a9,_0xbe4e8._0x19d441,_0xbe4e8._0x1188dd)](_0x2e421d,_0x45ce16);}function _0x3ef698(_0x4cc5b9,_0x564892,_0x242c89,_0x540010){return _0x58b0(_0x564892-0x1cc,_0x540010);}return this['fetchImpl'](''+_0x4a8c02[_0x507606(-0x14a,-_0xbe4e8._0x1c1a70,-0x23c,-_0xbe4e8._0xbcb772)]+_0x2bf7ce['path'],{'method':'POST','headers':_0x23e87c,..._0x2bf7ce[_0x507606(-0x99,-_0xbe4e8._0x2697f3,-0x6,-_0xbe4e8._0x510d49)]!==void 0x0?{'body':JSON[_0x3ef698(0x536,0x4e5,_0xbe4e8._0x11de91,_0xbe4e8._0x2e4f5c)](_0x2bf7ce[_0x507606(-_0xbe4e8._0x5d70fd,-0xde,-_0xbe4e8._0x1fd104,-0x18b)])}:{},'signal':_0x3c6dfa});};function _0x3b6edf(_0x4906cc,_0x5db83a,_0x27b96e,_0x4a7de2){return _0x1b98ce(_0x27b96e,_0x4906cc- -0x2b8,_0x27b96e-0x1f0,_0x4a7de2-0x108);}return _0x297b58?await this[_0x3b6edf(0x3cc,0x42a,_0x471be9._0xcc3626,_0x471be9._0x29ef5f)](_0x1cd53b,_0x2586bf):await _0x1cd53b();}async*[_0x1b98ce(0x5bb,0x587,0x520,0x664)](_0x4c2320,_0x250b91,_0x51bd33={}){const _0xd4fb75={_0x4339ee:0x3c8,_0x35936b:0x316,_0x28f697:0x628,_0x1be50f:0x58c,_0x2075cb:0x146,_0xc250b1:0x2bb,_0x3ddaeb:0x607,_0x5ae969:0x1fd,_0x21d49c:0x2ea,_0xbce316:0x281,_0x12bd90:0x5d4,_0xbf718:0x630,_0x4c8e32:0x533,_0x279575:0x5f8,_0x2b4b97:0x583,_0x441f1b:0x54f,_0x23d41d:0x5e9,_0x8a621:0x6cd,_0xeccbc7:0x617,_0x4035e9:0x360,_0x4f7587:0x2b4,_0xdb662e:0x256,_0x3bee5a:0x125,_0x24d04d:0x220,_0x586e95:0x2b1,_0x4c06b3:0x2af,_0x3710c9:0x785,_0x462200:0x22c,_0x56c053:0x39c,_0x9de48b:0x2e2,_0x5e05c6:0x19b,_0xfa5900:0x267},_0x23fa56={_0x40e2a1:0x1d3},_0x190625={_0x305fd8:0x72};function _0x4f273a(_0x120bfa,_0x3dc879,_0x401a34,_0x4d991d){return _0x1b1adc(_0x120bfa-_0x190625._0x305fd8,_0x4d991d-0x238,_0x401a34-0x1d9,_0x3dc879);}const {signal:_0x1bbc09}=_0x51bd33;let _0x90528b=![];function _0x4abe20(_0x122979,_0x4a973b,_0x4ab4e4,_0x545df2){return _0x1b98ce(_0x545df2,_0x4a973b-0x39,_0x4ab4e4-0x107,_0x545df2-_0x23fa56._0x40e2a1);}for(let _0x1225c9=0x0;_0x1225c9<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x1225c9+=0x1){let _0x26257d=![];try{const _0x373a14=await this[_0x4f273a(0x378,_0xd4fb75._0x4339ee,0x378,_0xd4fb75._0x35936b)](_0x4c2320,_0x250b91,!![],_0x51bd33,![]);if(_0x373a14[_0x4abe20(0x5af,0x5ca,_0xd4fb75._0x28f697,_0xd4fb75._0x1be50f)]===0x191&&this[_0x4f273a(_0xd4fb75._0x2075cb,_0xd4fb75._0xc250b1,0x198,0x21d)]&&!_0x90528b){_0x90528b=!![],this[_0x4abe20(0x6b7,_0xd4fb75._0x3ddaeb,0x534,0x63f)][_0x4f273a(0x31f,_0xd4fb75._0x5ae969,0x383,_0xd4fb75._0x21d49c)]();continue;}if(!_0x373a14['ok'])throw await this[_0x4f273a(0x245,0x2b5,_0xd4fb75._0xbce316,0x29b)](_0x373a14);const _0x328f55=_0x250b91[_0x4f273a(0x23a,0x2fe,0x2b0,0x21b)]?.(_0x4c2320);if(!_0x328f55?.[_0x4abe20(_0xd4fb75._0x12bd90,0x5e9,_0xd4fb75._0xbf718,_0xd4fb75._0x4c8e32)])throw new Error(_0x4abe20(0x670,0x6bb,0x705,_0xd4fb75._0x279575)+_0x250b91['id']+_0x4abe20(0x628,_0xd4fb75._0x2b4b97,_0xd4fb75._0x441f1b,0x4c6));for await(const _0x276f23 of iterateSseEvents(_0x373a14,_0x1bbc09)){const _0x48bf1f=_0x328f55[_0x4abe20(0x687,_0xd4fb75._0x23d41d,0x51c,0x6c5)](_0x276f23);for(const _0xd5ef7e of _0x48bf1f){_0x26257d=!![],yield _0xd5ef7e;}}yield{'type':_0x4abe20(_0xd4fb75._0x8a621,0x6d8,0x6e2,_0xd4fb75._0xeccbc7),'response':_0x328f55[_0x4f273a(0x1b5,0x175,0x1b7,0x1a4)]()};return;}catch(_0x4075ff){if(_0x26257d||!this[_0x4f273a(_0xd4fb75._0x4035e9,0x31a,_0xd4fb75._0x4f7587,0x2dd)](_0x4075ff)||_0x1225c9===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x4075ff;const _0x4bac70=this['getRetryDelayMs'](void 0x0,_0x1225c9),_0x560a27={'type':_0x4f273a(_0xd4fb75._0xdb662e,_0xd4fb75._0x3bee5a,_0xd4fb75._0x24d04d,0x171),'attempt':_0x1225c9+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x4075ff instanceof Error?_0x4075ff[_0x4f273a(_0xd4fb75._0x586e95,_0xd4fb75._0x4c06b3,0x2fe,0x29f)]:String(_0x4075ff),'delayMs':_0x4bac70,'reason':this[_0x4abe20(_0xd4fb75._0x3710c9,0x6a4,0x6ff,0x73d)](_0x4075ff)?_0x4f273a(0x226,0x2d5,0x31a,_0xd4fb75._0x462200):_0x4f273a(0x3bb,0x33c,_0xd4fb75._0x56c053,_0xd4fb75._0x9de48b)};yield _0x560a27,await this[_0x4f273a(0x241,0x18a,_0xd4fb75._0x5e05c6,_0xd4fb75._0xfa5900)](_0x4bac70,_0x1bbc09);}}}async*[_0x1b1adc(-0xc,0x8b,0xdd,0x20)](_0x3f1bdb,_0xc0b55c,_0x3024d5){const _0x48dced={_0x583350:0x629,_0x5f1881:0x1af,_0x57077f:0x2c1,_0x52740d:0x1f0,_0x5470a2:0x1f2,_0x1d5c36:0x315,_0x2bc65:0x2d3,_0x3a3fd4:0x4fd,_0x4e9cd3:0x4f6,_0x7166cf:0x4db,_0x1f8e9f:0x5a3,_0x594e53:0x25b,_0x5d4120:0x301,_0x46efee:0x1d3,_0x3bed47:0x28e,_0x1f989c:0x3b7,_0x5a8836:0x377,_0x44e8cc:0x4e8,_0x5395fc:0x496,_0x54a21a:0x384,_0x271210:0x2b7,_0x54da6a:0x5a5,_0x303e31:0x50f,_0x607a7e:0x540,_0xe76931:0x58d,_0x15e75e:0x5c7,_0x1329d0:0x221,_0x309d23:0x211,_0xbeba01:0x28a,_0xec488e:0x1e0,_0x22a8b5:0x290,_0xbc141f:0x196,_0x176f8b:0x20c,_0x899eb7:0x3df,_0x761f7a:0x33e,_0x3b4b86:0x38c,_0x9ed247:0x336,_0x483fcd:0x4a2,_0x5d8583:0x541,_0x370b36:0x29c,_0x26411c:0x1fe,_0x54f9f9:0x2c4,_0x408a32:0x34d,_0x468f6b:0x480,_0x578c28:0x4b5,_0x1fcfbd:0x3f9,_0x51cd25:0x556,_0x21e324:0x526,_0x34c440:0x588,_0x24009b:0x2b6,_0x4c930e:0x5c7,_0x2205a3:0x5a9,_0x511556:0x503,_0x250e49:0x4da,_0x53ee07:0x4e3,_0xdc41a4:0x284,_0x5dfb83:0x31c,_0x5d4890:0x2dc,_0x520830:0x3fa,_0x4f59a9:0x362,_0x5e9e87:0x1e7,_0x464c10:0x29f,_0x4ce04a:0x507,_0x150772:0x518,_0x214ac0:0x6c4,_0x57b0a4:0x5dd,_0x38c1ca:0x388,_0x1ceec3:0x306,_0x5501d3:0x228,_0x2e335f:0x423,_0x23ff75:0x26e,_0x18cf52:0x20b,_0x41360b:0x64c},_0x1d98a6={_0x1ed543:0x5a,_0x205b4f:0x5},_0x73ae49=await this['prepareChatRequest'](_0x3f1bdb,_0x3024d5),_0x45c369=_0xc0b55c[_0x5b956c(0x55e,0x655,_0x48dced._0x583350,0x5c3)](_0x73ae49[_0xcea528(_0x48dced._0x5f1881,_0x48dced._0x57077f,_0x48dced._0x52740d,_0x48dced._0x5470a2)]),_0x42860d=_0xc0b55c[_0xcea528(_0x48dced._0x1d5c36,_0x48dced._0x2bc65,0x2ce,0x31b)]?.(_0x3f1bdb);if(!_0x42860d?.[_0x5b956c(0x58f,_0x48dced._0x3a3fd4,_0x48dced._0x4e9cd3,_0x48dced._0x7166cf)])throw new Error('Surface\x20'+_0xc0b55c['id']+_0x5b956c(0x4dc,0x45f,_0x48dced._0x1f8e9f,0x4dc));const _0x53c7e9=_0x45c369['url']??(_0x45c369[_0xcea528(_0x48dced._0x594e53,0x22e,0x2dd,0x221)]?(''+_0x73ae49[_0xcea528(_0x48dced._0x5d4120,_0x48dced._0x46efee,0x24f,_0x48dced._0x3bed47)]+_0x45c369[_0xcea528(_0x48dced._0x1f989c,0x2e6,0x2dd,_0x48dced._0x5a8836)])[_0x5b956c(_0x48dced._0x44e8cc,0x54f,_0x48dced._0x5395fc,0x518)](/^http:/,'ws:')['replace'](/^https:/,'wss:'):void 0x0);if(!_0x53c7e9)throw new ProviderRequestConstructionError(_0xcea528(0x3cb,0x34d,_0x48dced._0x54a21a,_0x48dced._0x271210)+_0xc0b55c['id']+_0x5b956c(_0x48dced._0x54da6a,0x572,0x696,0x5f1));function _0xcea528(_0x53f3b5,_0xa0b57a,_0x131d5c,_0x52f14e){return _0x1b98ce(_0x52f14e,_0x131d5c- -0x2fe,_0x131d5c-0x47,_0x52f14e-0x5d);}function _0x5b956c(_0x14201e,_0x1ab988,_0x44fdfc,_0x31eb47){return _0x1b98ce(_0x44fdfc,_0x31eb47- -0xc2,_0x44fdfc-_0x1d98a6._0x1ed543,_0x31eb47-_0x1d98a6._0x205b4f);}const _0x49d7ad=await this['createHeaders']({'request':_0x73ae49[_0x5b956c(0x378,0x45d,_0x48dced._0x303e31,0x42c)],'body':_0x45c369[_0x5b956c(_0x48dced._0x607a7e,0x5bc,_0x48dced._0xe76931,_0x48dced._0x15e75e)],'credential':_0x73ae49[_0xcea528(0x2c5,0x17f,_0x48dced._0x1329d0,_0x48dced._0x309d23)],'session':_0x73ae49[_0xcea528(_0x48dced._0xbeba01,0x37b,0x374,0x354)],'stream':!![]},{'accept':_0x45c369[_0xcea528(_0x48dced._0xec488e,_0x48dced._0x22a8b5,0x1f3,0x1da)]??_0xcea528(0x2b5,_0x48dced._0xbc141f,0x27e,_0x48dced._0x176f8b),'includeContentType':![]});for(const [_0x5d4bd1,_0x609cf2]of Object[_0xcea528(_0x48dced._0x899eb7,_0x48dced._0x761f7a,_0x48dced._0x3b4b86,_0x48dced._0x9ed247)](_0x45c369[_0x5b956c(0x4f6,_0x48dced._0x483fcd,0x483,_0x48dced._0x5d8583)]??{})){_0x49d7ad[_0xcea528(_0x48dced._0x370b36,0x1b8,_0x48dced._0x26411c,0x212)](_0x5d4bd1,_0x609cf2);}_0x49d7ad[_0xcea528(0x2f9,0x27d,_0x48dced._0x54f9f9,_0x48dced._0x408a32)](_0x5b956c(_0x48dced._0x468f6b,_0x48dced._0x578c28,0x3b5,0x42f));const _0x5a7aed=this[_0xcea528(0x2bb,0x384,0x338,_0x48dced._0x1fcfbd)]({'headers':Object[_0x5b956c(0x4dc,_0x48dced._0x51cd25,_0x48dced._0x21e324,_0x48dced._0x34c440)](_0x49d7ad[_0xcea528(_0x48dced._0x24009b,0x2cd,0x38c,0x45d)]()),'url':_0x53c7e9});try{throwIfAborted(_0x3024d5);_0x5a7aed[_0x5b956c(0x66f,_0x48dced._0x4c930e,_0x48dced._0x2205a3,0x5ea)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x5a7aed,_0x3024d5);throwIfAborted(_0x3024d5);_0x45c369[_0x5b956c(0x58d,0x5e5,_0x48dced._0x511556,0x5c7)]!==void 0x0&&_0x5a7aed[_0x5b956c(0x444,_0x48dced._0x250e49,0x5d3,_0x48dced._0x53ee07)](JSON[_0xcea528(_0x48dced._0xdc41a4,0x33a,0x33a,_0x48dced._0x5dfb83)](_0x45c369[_0xcea528(_0x48dced._0x5d4890,_0x48dced._0x520830,0x38b,_0x48dced._0x4f59a9)]));for await(const _0x31b8ca of iterateWebSocketMessages(_0x5a7aed,_0x3024d5)){yield*_0x42860d[_0xcea528(_0x48dced._0x5e9e87,0x1f6,_0x48dced._0x464c10,0x1db)](_0x31b8ca);if(_0x42860d[_0x5b956c(0x4ae,0x525,0x4e2,0x565)]?.())break;}yield{'type':_0x5b956c(_0x48dced._0x4ce04a,_0x48dced._0x150772,_0x48dced._0x214ac0,_0x48dced._0x57b0a4),'response':_0x42860d[_0xcea528(0x27d,0x2c7,0x257,0x2c2)]()};}finally{_0x5a7aed[_0xcea528(0x377,_0x48dced._0x38c1ca,0x3ae,_0x48dced._0x1ceec3)]===WebSocket[_0xcea528(0x25e,0x2e8,0x27d,_0x48dced._0x5501d3)]&&_0x5a7aed[_0x5b956c(_0x48dced._0x2e335f,0x505,0x4dd,0x484)](0x3e8,_0x3024d5?.['aborted']?_0xcea528(0x34c,0x192,_0x48dced._0x23ff75,_0x48dced._0x18cf52):_0x5b956c(_0x48dced._0x41360b,0x506,0x4ac,0x56d));}}};async function createHttpError(_0x509e3c){const _0xe63885={_0x2928ca:0x64,_0x58b24c:0x7a,_0x47cd03:0x48,_0x24fc48:0x4a1,_0x4ac9a6:0x478,_0x2735ec:0x4e0,_0x516e14:0x1f,_0x3e5ebc:0x62,_0x328b2e:0x52,_0x5b0cee:0x55b,_0x2e42d3:0x511},_0xa2ca31={_0x3f0e61:0x14f},_0x2862a={_0x179698:0x16a},_0xd2dc60=await _0x509e3c[_0x3555da(-0x3e,_0xe63885._0x2928ca,_0xe63885._0x58b24c,-_0xe63885._0x47cd03)]();function _0xd7a2e5(_0x95a29e,_0x5e27ab,_0x2cb3b8,_0x55dec1){return _0x1b1adc(_0x95a29e-0xf5,_0x55dec1-0x569,_0x2cb3b8-_0x2862a._0x179698,_0x5e27ab);}function _0x3555da(_0x36e155,_0x22cab5,_0x4c5d47,_0x31b3aa){return _0x1b1adc(_0x36e155-0xc9,_0x4c5d47-0x1a,_0x4c5d47-_0xa2ca31._0x3f0e61,_0x22cab5);}const _0x35f2b8=_0xd2dc60[_0xd7a2e5(_0xe63885._0x24fc48,_0xe63885._0x4ac9a6,0x48a,0x541)]()||_0x509e3c[_0xd7a2e5(_0xe63885._0x2735ec,0x496,0x5c6,0x532)]||_0x3555da(-0x57,-_0xe63885._0x516e14,-0xa1,-_0xe63885._0x47cd03);return new Error(_0x3555da(-_0xe63885._0x3e5ebc,0x11f,_0xe63885._0x328b2e,-0x6c)+_0x509e3c[_0xd7a2e5(_0xe63885._0x5b0cee,0x43a,0x457,_0xe63885._0x2e42d3)]+':\x20'+_0x35f2b8);}var AnthropicProviderAdapter=class{[_0x1b1adc(0xde,0xcc,-0x13,0x80)];[_0x1b1adc(-0x112,-0x82,-0x11e,-0x20)];[_0x1b98ce(0x675,0x5f0,0x689,0x69e)];constructor(_0x842195){const _0x42cdd3={_0x4f902e:0x90,_0x5c8ade:0x1d0,_0x3f2047:0x120,_0x2607f2:0x16c,_0x53afcd:0x135,_0x7436d:0x16c,_0x392099:0xd2,_0x4f60cf:0x89,_0x54becf:0x62,_0x399dd9:0xe3,_0x5e2c36:0x113},_0x305c83={_0x35786e:0x6d3,_0x116968:0x10d},_0x4d1c2a={_0x503a3c:0x53a,_0x3eb578:0x5e,_0x550827:0x102};function _0x69ba34(_0x473a5e,_0x5906b6,_0x1efdda,_0x2a832e){return _0x1b98ce(_0x2a832e,_0x473a5e- -_0x4d1c2a._0x503a3c,_0x1efdda-_0x4d1c2a._0x3eb578,_0x2a832e-_0x4d1c2a._0x550827);}function _0x2d38a3(_0x18a5ef,_0x159c28,_0x4f682e,_0x53601c){return _0x1b98ce(_0x18a5ef,_0x4f682e- -_0x305c83._0x35786e,_0x4f682e-_0x305c83._0x116968,_0x53601c-0x1c);}this[_0x69ba34(0x17b,_0x42cdd3._0x4f902e,0x1e6,0x96)]=_0x842195['authScheme'],this[_0x2d38a3(-_0x42cdd3._0x5c8ade,-_0x42cdd3._0x3f2047,-_0x42cdd3._0x2607f2,-_0x42cdd3._0x53afcd)]=_0x842195[_0x2d38a3(-0x254,-0x113,-_0x42cdd3._0x7436d,-0x121)],this[_0x69ba34(0xb6,0x10f,_0x42cdd3._0x392099,_0x42cdd3._0x4f60cf)]=_0x842195[_0x2d38a3(-0x1a4,-_0x42cdd3._0x54becf,-_0x42cdd3._0x399dd9,-_0x42cdd3._0x5e2c36)];}[_0x1b98ce(0x663,0x65c,0x595,0x5ba)](){const _0x3df6ef={_0x5904d0:0x717,_0x4409ec:0x715},_0xfb0a3={_0x4bb311:0xec,_0x4fece7:0x64a};function _0x50e335(_0x26549b,_0xd4aa90,_0x3559c8,_0x17cd8f){return _0x1b1adc(_0x26549b-_0xfb0a3._0x4bb311,_0x26549b-_0xfb0a3._0x4fece7,_0x3559c8-0x97,_0x17cd8f);}return new Error(_0x50e335(0x6a2,0x775,_0x3df6ef._0x5904d0,_0x3df6ef._0x4409ec));}async['createHeaders'](_0x29b9b7,_0x75d260){const _0x168e3c={_0x5ddf34:0x4e1,_0xec1289:0x486,_0x85ea80:0x4e2,_0x1c0a45:0x43f,_0x5ecb71:0x3b8,_0x20e3d0:0x48b,_0x100f9e:0x4cc,_0x42b7df:0x6be,_0x2fdd33:0x51f,_0x16a079:0x48c,_0x53bbe3:0x3b7,_0x2c7180:0x5ca,_0x5716fe:0x693,_0x240463:0x364,_0x458b77:0x567,_0x5c2e7c:0x5be,_0x17dac3:0x357,_0x11c2b5:0x28d,_0x191508:0x481,_0xdb726b:0x499,_0x4b5df6:0x46e,_0x1bfc70:0x2d2,_0x534ad1:0x37e,_0x2da6f8:0x2ee,_0xd3ab24:0x54b,_0x4558df:0x5bf,_0x323120:0x5d7,_0x554475:0x3e3,_0x1c3a73:0x322,_0x34e87d:0x308,_0x3fcbcd:0x37b,_0x1cc0c4:0x480,_0xcd50dc:0x539,_0x52560b:0x521,_0x43ad60:0x49e,_0x3e4b6e:0x366,_0x1bc630:0x562,_0x280b05:0x544,_0x149ccd:0x552,_0x23f415:0x3da,_0x14b5cd:0x579,_0x514b6f:0x5a8,_0x6ea571:0x475,_0x11993a:0x4e5,_0x176ff9:0x3f2},_0x164cf8={_0x76bafe:0xbf},_0x4ae66e={_0xbc0bf0:0x1a5,_0x384076:0x1bb},_0x41d5ea=new Headers();_0x41d5ea[_0x570d72(0x48c,0x4f2,0x525,_0x168e3c._0x5ddf34)](_0x570d72(0x481,0x4f7,0x3ea,0x3ec),_0x75d260[_0x570d72(0x481,0x402,_0x168e3c._0xec1289,_0x168e3c._0x85ea80)]),_0x41d5ea[_0x233213(0x357,0x36b,0x279,_0x168e3c._0x1c0a45)](_0x233213(0x38b,0x37c,_0x168e3c._0x5ecb71,0x388),this[_0x233213(0x44b,_0x168e3c._0x20e3d0,0x444,_0x168e3c._0x100f9e)]);_0x75d260[_0x570d72(0x5f9,0x625,_0x168e3c._0x42b7df,_0x168e3c._0x2fdd33)]!==![]&&_0x41d5ea[_0x570d72(_0x168e3c._0x16a079,0x51d,_0x168e3c._0x53bbe3,0x3c6)](_0x570d72(_0x168e3c._0x2c7180,0x5bd,0x554,_0x168e3c._0x5716fe),_0x233213(0x3d7,_0x168e3c._0x240463,0x484,0x42a));this[_0x570d72(0x645,0x6bf,_0x168e3c._0x458b77,_0x168e3c._0x5c2e7c)]==='bearer'?_0x41d5ea[_0x233213(_0x168e3c._0x17dac3,_0x168e3c._0x11c2b5,0x443,0x27a)](_0x233213(_0x168e3c._0x191508,0x489,0x433,0x47d),_0x570d72(0x4ee,0x428,_0x168e3c._0xdb726b,_0x168e3c._0x4b5df6)+_0x29b9b7[_0x233213(0x37a,_0x168e3c._0x1bfc70,_0x168e3c._0x534ad1,_0x168e3c._0x2da6f8)][_0x570d72(_0x168e3c._0xd3ab24,_0x168e3c._0x4558df,_0x168e3c._0x323120,0x510)]):_0x41d5ea['set'](_0x233213(_0x168e3c._0x554475,_0x168e3c._0x1c3a73,_0x168e3c._0x34e87d,_0x168e3c._0x3fcbcd),_0x29b9b7[_0x570d72(0x4af,0x512,_0x168e3c._0x1cc0c4,0x536)][_0x570d72(0x54b,_0x168e3c._0xcd50dc,_0x168e3c._0x52560b,0x630)]);const _0xc55513=await this[_0x233213(0x3c2,_0x168e3c._0x43ad60,_0x168e3c._0x3e4b6e,0x47c)]?.({'body':_0x29b9b7[_0x570d72(_0x168e3c._0x1bc630,0x5b4,0x60c,0x51a)],'credential':_0x29b9b7[_0x570d72(0x4af,_0x168e3c._0x280b05,_0x168e3c._0x149ccd,_0x168e3c._0x23f415)],'request':_0x29b9b7['request'],'session':_0x29b9b7[_0x233213(0x4cd,_0x168e3c._0x14b5cd,_0x168e3c._0x514b6f,_0x168e3c._0x6ea571)],'stream':_0x29b9b7['stream']});function _0x233213(_0x5c8a3b,_0x253ca0,_0x670793,_0x179331){return _0x1b98ce(_0x179331,_0x5c8a3b- -_0x4ae66e._0xbc0bf0,_0x670793-0x19c,_0x179331-_0x4ae66e._0x384076);}for(const [_0x115e10,_0x1f110a]of Object[_0x233213(_0x168e3c._0x11993a,0x4e7,0x508,0x516)](_0xc55513??{})){_0x41d5ea[_0x233213(_0x168e3c._0x17dac3,0x385,_0x168e3c._0x176ff9,0x3a8)](_0x115e10,_0x1f110a);}function _0x570d72(_0x4c6dbb,_0x5af092,_0x5ea456,_0x3550a0){return _0x1b98ce(_0x5af092,_0x4c6dbb- -0x70,_0x5ea456-_0x164cf8._0x76bafe,_0x3550a0-0x11d);}return _0x41d5ea;}[_0x1b1adc(-0x13,0x88,-0x5d,0x67)](_0x4ac466){return _0x4ac466;}[_0x1b98ce(0x70b,0x6bb,0x6f0,0x69f)](_0xa5c3da,_0x2f797d){return resolveSessionBaseUrl(_0xa5c3da,_0x2f797d);}[_0x1b98ce(0x5c3,0x52d,0x4cc,0x576)](_0x59a0a4,_0x8734ad){return resolveApiCredential(_0x59a0a4,_0x8734ad);}async[_0x1b98ce(0x6ae,0x64c,0x560,0x6fb)](_0x1e9bf8){return await createHttpError(_0x1e9bf8);}},AnthropicModel=class extends RoutedModel{constructor(_0x597893={}){const _0x2417cd={_0x5e987e:0xd8,_0x1dcdf9:0x114,_0x585275:0x14,_0xe682be:0x4f,_0x265bd2:0xc6,_0x1c3556:0x84,_0xf6dce:0x1ca,_0x1580ca:0x3fa,_0x4f9822:0x462,_0x4ad64a:0x3e3,_0x198b1b:0x325,_0x4bc23a:0x4f2,_0x1abb47:0x544,_0x4042fc:0xac,_0x1d8a36:0x60,_0x15acf3:0x2a,_0x4fea0a:0x53,_0x5525dc:0xd9,_0x3baf4e:0x79,_0x4c3f4d:0x46d,_0x4f9309:0x12a,_0x226164:0x497,_0x381762:0x35c},_0x1881f4={_0x5ac564:0x4ef},_0x52248b={_0x2d4a45:0x661};function _0x7d601f(_0x285be8,_0x314b20,_0x4744a0,_0x4678a7){return _0x1b98ce(_0x314b20,_0x4744a0- -_0x52248b._0x2d4a45,_0x4744a0-0x80,_0x4678a7-0xb4);}function _0x5111d9(_0x100a09,_0x5475bf,_0x5b9956,_0x347d10){return _0x1b1adc(_0x100a09-0x1f4,_0x100a09-_0x1881f4._0x5ac564,_0x5b9956-0x1ac,_0x5475bf);}super({'apiKey':_0x597893['apiKey'],'baseUrl':trimTrailingSlashes(_0x597893[_0x7d601f(-_0x2417cd._0x5e987e,-0x42,-_0x2417cd._0x1dcdf9,-0x1bb)]??_0x7d601f(-_0x2417cd._0x585275,0xd8,0x1e,-_0x2417cd._0xe682be)),'fetch':_0x597893[_0x7d601f(-_0x2417cd._0x265bd2,-_0x2417cd._0x1c3556,-0xed,-_0x2417cd._0xf6dce)],'maxTokens':_0x597893[_0x5111d9(_0x2417cd._0x1580ca,_0x2417cd._0x4f9822,_0x2417cd._0x4ad64a,_0x2417cd._0x198b1b)]??0x4000,'model':_0x597893['model']??_0x5111d9(_0x2417cd._0x4bc23a,0x552,_0x2417cd._0x1abb47,0x5bd),'reasoning':_0x597893[_0x7d601f(-0x191,-_0x2417cd._0x4042fc,-0xe9,-_0x2417cd._0x1d8a36)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x597893[_0x7d601f(_0x2417cd._0x15acf3,0x12b,0x54,-_0x2417cd._0x4fea0a)]??_0x7d601f(-0x7c,-0x8,-_0x2417cd._0x5525dc,-_0x2417cd._0x3baf4e),'headerResolver':_0x597893[_0x5111d9(_0x2417cd._0x4c3f4d,0x4fe,0x3ab,0x395)],'protocolVersion':_0x597893[_0x7d601f(-0xb8,-0xe7,-0x71,-0x3b)]??'2023-06-01'}),'providerSessionResolver':_0x597893[_0x7d601f(0x8d,0x116,0x5c,_0x2417cd._0x4f9309)],'requestMutators':_0x597893[_0x5111d9(0x427,_0x2417cd._0x226164,_0x2417cd._0x381762,0x386)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}['complete'](_0x5ddd72,_0xd63eeb){const _0xdfa211={_0x33f565:0x46,_0x5fd101:0x1b,_0xf11b5a:0x25};function _0x42186b(_0x3f90c0,_0x3d0e04,_0x29d915,_0x3d6714){return _0x1b98ce(_0x3d6714,_0x29d915- -0x529,_0x29d915-0x181,_0x3d6714-0x46);}return this[_0x42186b(-0x66,-_0xdfa211._0x33f565,-_0xdfa211._0x5fd101,-_0xdfa211._0xf11b5a)](_0x5ddd72,ANTHROPIC_MESSAGES_SURFACE,_0xd63eeb);}[_0x1b98ce(0x683,0x5fe,0x586,0x59d)](_0x41fe17,_0x495360){const _0x50ec77={_0x40812c:0x50,_0x2ca314:0x6b,_0x1093b1:0x118};function _0xf89eb2(_0x292717,_0x461b5c,_0x4e614a,_0x20fd0e){return _0x1b98ce(_0x20fd0e,_0x4e614a- -0x63b,_0x4e614a-0x1ae,_0x20fd0e-0x146);}return this[_0xf89eb2(_0x50ec77._0x40812c,-_0x50ec77._0x2ca314,-0xa0,-_0x50ec77._0x1093b1)](_0x41fe17,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x495360);}},OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream',OPENAI_RESPONSES_SURFACE=_0x1b98ce(0x607,0x589,0x66f,0x522),OPENAI_RESPONSES_STREAM_SURFACE='openai-responses-stream',OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{['status'];['body'];constructor(_0x38afb3,_0x39464d,_0x2f3635){const _0x31ce98={_0x105c75:0x50c,_0x4673f5:0x50d,_0x1d4b92:0x549},_0x3d2358={_0x35416e:0x89,_0x51b738:0xcf};super(_0x2f3635);function _0x4134a4(_0x2ccb4e,_0x3d0fcf,_0x314d9c,_0xc50b5f){return _0x1b98ce(_0x2ccb4e,_0xc50b5f- -_0x3d2358._0x35416e,_0x314d9c-0x153,_0xc50b5f-_0x3d2358._0x51b738);}this['name']='OpenAiApiError',this['status']=_0x38afb3,this[_0x4134a4(0x5f8,_0x31ce98._0x105c75,_0x31ce98._0x4673f5,_0x31ce98._0x1d4b92)]=_0x39464d;}};function stringifySystem(_0x38edc5){const _0x1904ad={_0x347823:0x19f,_0x427108:0x150,_0x2462d9:0x1bb},_0x39ad14={_0x267827:0xa4};function _0x484416(_0xa01731,_0x55651e,_0x3abb81,_0x213485){return _0x1b1adc(_0xa01731-_0x39ad14._0x267827,_0x3abb81- -0xec,_0x3abb81-0xc7,_0x213485);}function _0x78555d(_0x4cc962,_0x2c4f59,_0x7ad285,_0xa3e23c){return _0x1b98ce(_0x4cc962,_0x2c4f59- -0x29,_0x7ad285-0x44,_0xa3e23c-0x140);}return _0x38edc5['map'](_0x4d6707=>_0x4d6707[_0x78555d(0x708,0x620,0x583,0x62a)])[_0x484416(-0x213,-_0x1904ad._0x347823,-_0x1904ad._0x427108,-_0x1904ad._0x2462d9)]('\x0a\x0a');}function createToolDefinitions(_0x5bea3f){const _0x395210={_0x2dbe51:0x1c9,_0x511b57:0x277,_0x453297:0x1b5,_0x2c096c:0x259},_0x2d995c={_0x23aaf9:0x138,_0x12b666:0x7e,_0x50dab4:0x1b8,_0x3a09ef:0xd3,_0xf82e0e:0x31,_0x44a15b:0x226,_0x392806:0x189};if(_0x5bea3f[_0x3ecc26(_0x395210._0x2dbe51,_0x395210._0x511b57,_0x395210._0x453297,_0x395210._0x2c096c)]===0x0)return void 0x0;function _0x3ecc26(_0x148d41,_0x464e80,_0x1ebe57,_0x118a00){return _0x1b1adc(_0x148d41-0x131,_0x1ebe57-0x2ae,_0x1ebe57-0x4,_0x148d41);}return _0x5bea3f['map'](_0x556e01=>{const _0x1bf253={_0x2717e9:0x1a1,_0x5d403e:0x102},_0x5c2e76={_0x2f1131:0x19f};function _0xfceea2(_0x4178ea,_0x34d34,_0x57ed2b,_0x567a58){return _0x3ecc26(_0x4178ea,_0x34d34-_0x5c2e76._0x2f1131,_0x567a58- -0x395,_0x567a58-0x139);}function _0x467c64(_0x1ea557,_0x1adad7,_0xf98bef,_0x1888af){return _0x3ecc26(_0x1ea557,_0x1adad7-0x15a,_0x1adad7- -_0x1bf253._0x2717e9,_0x1888af-_0x1bf253._0x5d403e);}return{'type':_0xfceea2(-_0x2d995c._0x23aaf9,-0xc7,-0x118,-0x127),'function':{'name':_0x556e01[_0xfceea2(-0x6f,-_0x2d995c._0x12b666,-0xf,-0x55)],'description':_0x556e01[_0x467c64(_0x2d995c._0x50dab4,_0x2d995c._0x3a09ef,0x5,_0x2d995c._0xf82e0e)],'parameters':_0x556e01[_0xfceea2(-_0x2d995c._0x44a15b,-0x1d4,-0x203,-_0x2d995c._0x392806)]}};});}function isImageToolResultBlock(_0x311b4b){const _0x31bc74={_0x24d843:0x424,_0x52cd72:0x3c1,_0x1f94ed:0x4b6,_0x18e3a0:0x4b3,_0x1f9dc3:0x2f3,_0x295b91:0x253,_0x40887b:0x3e9,_0x985652:0x329,_0x1b12c8:0x3c3,_0x38e464:0x312,_0x36450f:0x35c},_0x417afc={_0x1cd91e:0x17f,_0x5bdd5a:0x1a8},_0x1055c1={_0x1142ed:0x1d9,_0x421582:0x12e};if(typeof _0x311b4b!==_0x49df31(0x441,_0x31bc74._0x24d843,0x3cf,0x406)||_0x311b4b===null||Array[_0x49df31(0x41f,0x3f0,_0x31bc74._0x52cd72,0x331)](_0x311b4b))return![];function _0x38873b(_0x126e85,_0x352682,_0x35b0e4,_0x5befa7){return _0x1b98ce(_0x35b0e4,_0x126e85- -0x3a1,_0x35b0e4-_0x1055c1._0x1142ed,_0x5befa7-_0x1055c1._0x421582);}const _0x2cb3f8=_0x311b4b;function _0x49df31(_0x10a942,_0x1a3ca7,_0x2a6d5e,_0x4b0a58){return _0x1b1adc(_0x10a942-_0x417afc._0x1cd91e,_0x1a3ca7-0x408,_0x2a6d5e-_0x417afc._0x5bdd5a,_0x2a6d5e);}return _0x2cb3f8[_0x49df31(_0x31bc74._0x1f94ed,_0x31bc74._0x18e3a0,0x456,0x55e)]==='image'&&_0x2cb3f8[_0x49df31(0x4a9,0x47d,0x51a,0x3ff)]?.[_0x38873b(_0x31bc74._0x1f9dc3,0x3db,0x3a4,_0x31bc74._0x295b91)]===_0x49df31(_0x31bc74._0x40887b,0x3af,0x304,0x350)&&typeof _0x2cb3f8['source']['media_type']===_0x49df31(_0x31bc74._0x985652,_0x31bc74._0x1b12c8,0x33b,_0x31bc74._0x38e464)&&typeof _0x2cb3f8['source']['data']===_0x49df31(0x2e4,_0x31bc74._0x1b12c8,_0x31bc74._0x36450f,0x2d9);}function getToolResultText(_0x3290a1){const _0x2b37e1={_0x14451f:0x6c4,_0x4c2350:0x513,_0x12a30b:0x6d6,_0x3420dd:0x6c4,_0x34a28d:0x552,_0x431264:0x6b0,_0x4b5efb:0x510,_0x224643:0x54c,_0x126b37:0x743,_0x83ff1a:0x763,_0x3d725d:0x77e,_0x3fbf57:0x73c},_0x279140={_0x4cc953:0x5de,_0x175220:0x54b,_0x207e09:0x62f,_0x47b398:0x64d,_0x359570:0x5d0},_0x4be747={_0x6d109c:0x181,_0x48eced:0x10b},_0x31b479={_0xbd788:0x160,_0x480d0e:0x666};function _0x19a38d(_0x3bf685,_0x40f73e,_0x4113ef,_0x4a2413){return _0x1b1adc(_0x3bf685-_0x31b479._0xbd788,_0x4113ef-_0x31b479._0x480d0e,_0x4113ef-0x12a,_0x3bf685);}if(typeof _0x3290a1===_0x19a38d(_0x2b37e1._0x14451f,0x6fd,0x621,0x5f8))return _0x3290a1;function _0xee0e52(_0x425730,_0x1a230e,_0x45662a,_0x5069d7){return _0x1b98ce(_0x425730,_0x45662a-0xc5,_0x45662a-_0x4be747._0x6d109c,_0x5069d7-_0x4be747._0x48eced);}const _0x18c569=_0x3290a1[_0x19a38d(0x54c,_0x2b37e1._0x4c2350,0x5e0,0x549)](_0xd4f45c=>{const _0x3e0aa6={_0x52d3be:0x113,_0x346b40:0x15d};function _0x4ade2a(_0x42b9f3,_0x4244ef,_0x2ceb2c,_0x35f1e2){return _0xee0e52(_0x2ceb2c,_0x4244ef-0x7f,_0x35f1e2- -_0x3e0aa6._0x52d3be,_0x35f1e2-_0x3e0aa6._0x346b40);}function _0x4756c5(_0x1afa9d,_0x59998d,_0x40546d,_0x17a495){return _0xee0e52(_0x40546d,_0x59998d-0xd8,_0x59998d- -0x644,_0x17a495-0xa8);}return typeof _0xd4f45c===_0x4ade2a(0x599,_0x279140._0x4cc953,_0x279140._0x175220,0x5b7)&&_0xd4f45c!==null&&_0xd4f45c[_0x4ade2a(_0x279140._0x207e09,_0x279140._0x47b398,_0x279140._0x359570,0x646)]==='text';})[_0x19a38d(0x5f5,_0x2b37e1._0x12a30b,_0x2b37e1._0x3420dd,0x7a3)](_0x33bb40=>_0x33bb40[_0x19a38d(0x6ea,0x606,0x6c6,0x5e6)])['join']('\x0a\x0a')[_0x19a38d(_0x2b37e1._0x34a28d,0x71f,0x63e,_0x2b37e1._0x431264)]();return _0x18c569[_0xee0e52(0x55d,_0x2b37e1._0x4b5efb,0x5b5,_0x2b37e1._0x224643)]>0x0?_0x18c569:_0xee0e52(_0x2b37e1._0x126b37,_0x2b37e1._0x83ff1a,_0x2b37e1._0x3d725d,_0x2b37e1._0x3fbf57);}function getToolResultImages(_0x36e591){const _0x5010f8={_0x563b6a:0x4b5,_0x618699:0x43c,_0x4b07fc:0x23c,_0x5c4dc3:0x2ec,_0x107e90:0x296},_0x5844f7={_0x236d22:0x327,_0x11d09e:0x15b},_0x368f5b={_0x26e4dc:0x3};function _0x33ec2e(_0x23d542,_0x27f8cf,_0x49e0e8,_0x1e9dff){return _0x1b98ce(_0x27f8cf,_0x23d542- -0x11c,_0x49e0e8-0x1a7,_0x1e9dff-_0x368f5b._0x26e4dc);}function _0x3c162f(_0x31fc95,_0x526ec0,_0x30e311,_0x198040){return _0x1b98ce(_0x526ec0,_0x31fc95- -_0x5844f7._0x236d22,_0x30e311-_0x5844f7._0x11d09e,_0x198040-0x7);}return Array[_0x33ec2e(_0x5010f8._0x563b6a,0x493,0x3fc,_0x5010f8._0x618699)](_0x36e591)?_0x36e591[_0x3c162f(_0x5010f8._0x4b07fc,_0x5010f8._0x5c4dc3,0x258,_0x5010f8._0x107e90)](isImageToolResultBlock):[];}function parseToolInput2(_0x43bee1){const _0x1583bf={_0x55e806:0x49a,_0x1d9115:0x580,_0xb3e382:0x5ff,_0x43172e:0x4fa,_0x33e25f:0x639},_0x109f89={_0x4525f1:0xd1},_0x153f1b={_0x427bbd:0x679,_0x45af8c:0x33};if(_0x43bee1[_0x55c3d5(_0x1583bf._0x55e806,_0x1583bf._0x1d9115,_0x1583bf._0xb3e382,0x4f8)]===0x0)return{};function _0x55c3d5(_0x48005a,_0x1099d3,_0x43c6ee,_0x3a7a27){return _0x1b1adc(_0x48005a-0x14a,_0x1099d3-_0x153f1b._0x427bbd,_0x43c6ee-_0x153f1b._0x45af8c,_0x3a7a27);}function _0x551f16(_0x440494,_0x15bcaa,_0x224be9,_0x5cc656){return _0x1b1adc(_0x440494-0x19b,_0x15bcaa-_0x109f89._0x4525f1,_0x224be9-0x186,_0x5cc656);}try{return JSON[_0x55c3d5(0x57c,0x5bb,_0x1583bf._0x43172e,_0x1583bf._0x33e25f)](_0x43bee1);}catch{return _0x43bee1;}}function isResponsesReasoningItem(_0x344302){const _0x1887f3={_0x275844:0xab,_0x4300e3:0x8a,_0x39f31c:0xe,_0x4dac16:0x163,_0x1a7b8f:0x10a,_0x544557:0x122,_0x132df8:0x134,_0x405d3a:0xa2},_0x5d94d0={_0x29e0b6:0x189},_0xb29adc={_0x4e1cd4:0x9e};function _0x1ed3d1(_0xf48114,_0x4cb69b,_0x29e86b,_0x584501){return _0x1b1adc(_0xf48114-0x63,_0x584501- -0x31,_0x29e86b-_0xb29adc._0x4e1cd4,_0x29e86b);}function _0x4b30ec(_0x560fbb,_0x20fde8,_0x34e1ea,_0x2bbe64){return _0x1b1adc(_0x560fbb-0x6e,_0x20fde8-0x0,_0x34e1ea-_0x5d94d0._0x29e0b6,_0x560fbb);}return typeof _0x344302===_0x1ed3d1(-0xa8,-0x99,-0x37,-0x15)&&_0x344302!==null&&_0x4b30ec(0x109,_0x1887f3._0x275844,0x89,_0x1887f3._0x4300e3)in _0x344302&&_0x344302[_0x4b30ec(-_0x1887f3._0x39f31c,0xab,0x106,_0x1887f3._0x4dac16)]===_0x1ed3d1(-_0x1887f3._0x1a7b8f,-_0x1887f3._0x544557,-_0x1887f3._0x132df8,-_0x1887f3._0x405d3a);}function isResponsesMessageItem(_0x5740fa){const _0x41c19c={_0x5e066b:0x545,_0x545421:0x6c0,_0x306884:0x5ed,_0x43a1a8:0x15c,_0x1cbf96:0x28e},_0x374fe7={_0x22d80e:0x1b8,_0x131bba:0x542},_0x2a850d={_0x438caf:0x467,_0x1abe69:0x192,_0xb05b42:0x5b};function _0xe76549(_0x2f75d6,_0x3ee4e1,_0x2c8b5a,_0x1512ab){return _0x1b98ce(_0x1512ab,_0x3ee4e1- -_0x2a850d._0x438caf,_0x2c8b5a-_0x2a850d._0x1abe69,_0x1512ab-_0x2a850d._0xb05b42);}function _0x1e3d4f(_0x3a5da9,_0x54890a,_0x289e72,_0x5fa601){return _0x1b1adc(_0x3a5da9-_0x374fe7._0x22d80e,_0x54890a-_0x374fe7._0x131bba,_0x289e72-0x12e,_0x5fa601);}return typeof _0x5740fa==='object'&&_0x5740fa!==null&&_0x1e3d4f(_0x41c19c._0x5e066b,0x5ed,0x5de,_0x41c19c._0x545421)in _0x5740fa&&_0x5740fa[_0x1e3d4f(0x5bc,_0x41c19c._0x306884,0x556,0x5be)]===_0xe76549(_0x41c19c._0x43a1a8,0x1e9,_0x41c19c._0x1cbf96,0x1b4);}function isResponsesFunctionCallItem(_0x538710){const _0x1ca381={_0x13902f:0xa6,_0x3adb1a:0x366,_0x2b083f:0x3e7},_0x366636={_0x4e164e:0x3d2},_0x555974={_0x39e5dc:0xf5};function _0x544e2b(_0x282738,_0x379976,_0x3b7572,_0x2a969e){return _0x1b1adc(_0x282738-0x18c,_0x3b7572- -_0x555974._0x39e5dc,_0x3b7572-0x45,_0x282738);}function _0x4fedc1(_0x13fab6,_0x31d7c4,_0x4f6316,_0x1696f5){return _0x1b1adc(_0x13fab6-0x1c3,_0x13fab6-_0x366636._0x4e164e,_0x4f6316-0x7,_0x1696f5);}return typeof _0x538710==='object'&&_0x538710!==null&&'type'in _0x538710&&_0x538710[_0x544e2b(-_0x1ca381._0x13902f,-0x13,-0x4a,-0xb5)]===_0x4fedc1(0x42d,_0x1ca381._0x3adb1a,_0x1ca381._0x2b083f,0x35b);}function createContentBlocks(_0x2b5849,_0x3c6a82,_0x3b9618){const _0x472511={_0x27c713:0x36a,_0x42a407:0x2e0,_0x3524bd:0x127,_0xe1d2f1:0x1f6,_0x155293:0x2e,_0x58fea3:0xc2,_0x3fb307:0x295,_0x2531e9:0x1aa,_0x29f57e:0x20b,_0x4789a8:0x285,_0x4a258e:0x20e,_0x3dcee2:0x1f3,_0x49f426:0x5e,_0x4d68a2:0x3c,_0x27116a:0x7a,_0xfac136:0x71,_0x1f3dbe:0x6d,_0x4c79c5:0xf0,_0x4cd1f8:0xe2,_0x54e3f8:0x212,_0x41750f:0x1f8},_0x1c6993={_0x10c62d:0x3b6,_0x31e45a:0x1b2},_0x17ec92={_0x263cec:0xe8};function _0x54a323(_0x6e572c,_0x44c2b6,_0x988cdc,_0x1af1b8){return _0x1b1adc(_0x6e572c-0x155,_0x988cdc- -0x115,_0x988cdc-_0x17ec92._0x263cec,_0x1af1b8);}function _0x30ad05(_0x4ba653,_0x53ea96,_0x2f1d5f,_0x1831c9){return _0x1b98ce(_0x53ea96,_0x2f1d5f- -_0x1c6993._0x10c62d,_0x2f1d5f-0x145,_0x1831c9-_0x1c6993._0x31e45a);}const _0xfd7660=[];_0x3b9618&&_0x3b9618['length']>0x0&&_0xfd7660['push']({'type':_0x30ad05(_0x472511._0x27c713,0x356,_0x472511._0x42a407,0x2f2),'summary':[],'text':_0x3b9618});_0x2b5849[_0x30ad05(_0x472511._0x3524bd,0xc3,0x13a,_0x472511._0xe1d2f1)]>0x0&&_0xfd7660[_0x54a323(-0xb,_0x472511._0x155293,-0x71,-_0x472511._0x58fea3)]({'type':'text','text':_0x2b5849});for(const _0x4026bd of _0x3c6a82){if(_0x4026bd['id'][_0x30ad05(_0x472511._0x3fb307,_0x472511._0x2531e9,_0x472511._0x29f57e,0x19d)]()[_0x54a323(-0x20b,-_0x472511._0x4789a8,-_0x472511._0x4a258e,-0x29a)]===0x0||_0x4026bd[_0x30ad05(0x23f,0x287,_0x472511._0x3dcee2,0x266)][_0x54a323(-_0x472511._0x49f426,-_0x472511._0x4d68a2,-0x83,-0x9)]['trim']()['length']===0x0)continue;_0xfd7660[_0x54a323(-0x104,-_0x472511._0x27116a,-_0x472511._0xfac136,-_0x472511._0x1f3dbe)]({'type':'tool_use','id':_0x4026bd['id'],'name':_0x4026bd['function']['name'],'input':parseToolInput2(_0x4026bd[_0x54a323(-0x7f,-_0x472511._0x4c79c5,-0x155,-_0x472511._0x4cd1f8)][_0x30ad05(0x150,_0x472511._0x54e3f8,0x228,_0x472511._0x41750f)])});}return _0xfd7660;}function createUsage(_0x1f46cf){const _0x59f301={_0x25c248:0x6d,_0x5a4499:0x63,_0x2b5ce8:0x14f,_0x36be53:0xee,_0x4a6e77:0x63b,_0x4f0f4b:0x52d,_0x36bf0b:0x148,_0x1a3dd3:0x8a},_0x5becd1={_0x3faf53:0xf0},_0x56f4cf={_0x360ad6:0x1e2,_0x41331d:0x77};function _0x207e0d(_0x1bd397,_0x469898,_0x3ce27c,_0x2f0fcf){return _0x1b1adc(_0x1bd397-_0x56f4cf._0x360ad6,_0x2f0fcf- -_0x56f4cf._0x41331d,_0x3ce27c-0x5,_0x1bd397);}function _0x3470d4(_0x3b22ec,_0x4047e5,_0x3a35f1,_0x23ca3c){return _0x1b98ce(_0x4047e5,_0x3b22ec- -_0x5becd1._0x3faf53,_0x3a35f1-0x141,_0x23ca3c-0xff);}return{'inputTokens':_0x1f46cf?.['prompt_tokens']??0x0,'outputTokens':_0x1f46cf?.[_0x207e0d(-0x2c,0x1,0xa,-0xa4)]??0x0,..._0x1f46cf?.[_0x207e0d(_0x59f301._0x25c248,0x9f,0x132,_0x59f301._0x5a4499)]?.[_0x207e0d(-_0x59f301._0x2b5ce8,0x19,-_0x59f301._0x36be53,-0x8a)]!==void 0x0?{'reasoningTokens':_0x1f46cf[_0x3470d4(0x5d3,_0x59f301._0x4a6e77,0x60f,_0x59f301._0x4f0f4b)][_0x207e0d(-_0x59f301._0x36bf0b,-0xb,-0xbf,-_0x59f301._0x1a3dd3)]}:{}};}function resolveReasoningVisibility2(_0x158958){const _0x50ea90={_0x399939:0x7c,_0x529e96:0x9d,_0x4a5c9d:0x150,_0x29f81a:0x86},_0x2ed289={_0xf7921b:0x5f4},_0x427186={_0xe9227c:0x65b,_0x5a7444:0x103};function _0x413a12(_0x397b75,_0x4506b2,_0x400608,_0x58484b){return _0x1b1adc(_0x397b75-0x156,_0x58484b-_0x427186._0xe9227c,_0x400608-_0x427186._0x5a7444,_0x4506b2);}function _0x55994c(_0x22b80e,_0x2c6bbd,_0xfa9fb0,_0x14e539){return _0x1b98ce(_0x14e539,_0x22b80e- -_0x2ed289._0xf7921b,_0xfa9fb0-0x10e,_0x14e539-0x8d);}return _0x158958[_0x55994c(-_0x50ea90._0x399939,-0x158,-_0x50ea90._0x529e96,-_0x50ea90._0x4a5c9d)]?.['visibility']??_0x55994c(_0x50ea90._0x29f81a,0x83,0x4a,0x16b);}function isUserVisibleReasoning(_0x5b2615){const _0x5536dd={_0x62a901:0x51f,_0x572383:0x3da,_0x2f8083:0x551,_0x415b18:0x4ff},_0x3ab83f={_0x167c43:0x169};function _0x4d10de(_0x193cc9,_0x4b7e83,_0x138b88,_0x5dd619){return _0x1b1adc(_0x193cc9-0x15d,_0x4b7e83-0x4c0,_0x138b88-0x1db,_0x138b88);}function _0x2e0caa(_0x438b95,_0x40b3bc,_0x37936e,_0x58f117){return _0x1b98ce(_0x40b3bc,_0x438b95- -0x472,_0x37936e-0xd6,_0x58f117-_0x3ab83f._0x167c43);}return resolveOpenAiReasoningConfig(_0x5b2615[_0x4d10de(_0x5536dd._0x62a901,0x44f,_0x5536dd._0x572383,0x53c)])!==void 0x0&&resolveReasoningVisibility2(_0x5b2615)===_0x4d10de(0x4f0,_0x5536dd._0x2f8083,0x4ca,_0x5536dd._0x415b18);}function createChatRequestBody(_0x46dfef,_0x3cf171){const _0x2f0301={_0x144aba:0x9a,_0x3524f5:0x405,_0x1c972c:0x2cc,_0x5f0c02:0x251,_0xde1f86:0x348,_0x3f59d7:0x2b4,_0x2f0d3c:0x2dc,_0x39541c:0x427,_0x3cb2fc:0x28a,_0x137548:0x314,_0x43c18c:0x226,_0x1cb2a8:0x13c,_0x28db3e:0x7a,_0x32bbd4:0xd6,_0x4809a6:0x128,_0x88e2fc:0x3c6,_0x341457:0x443,_0x514a3e:0x3ba,_0x255375:0x440,_0x5d6667:0x409,_0x361127:0x1a2,_0x58d228:0x6d,_0x38db17:0x3eb,_0x30149a:0x411,_0x29861d:0x409,_0x5421f6:0x166,_0x463da0:0xf9,_0x492522:0x11d,_0x1f2ff6:0x1a1,_0x49552a:0x3c6,_0x3f5f82:0x274,_0x125071:0x187,_0x23eecd:0x13d,_0x3352ac:0x85,_0x4332e3:0x1c9,_0x404d8f:0x36e,_0x3bceec:0x8e,_0x28a46e:0xc0,_0x8a5dce:0x45a,_0x51eae4:0x354,_0x2c684b:0x3fd,_0x28ec9a:0x151,_0x41f9dd:0x362,_0x1fe2be:0x1e6,_0x22495c:0x180,_0x4a107c:0xec,_0x1f7463:0x38e,_0x2c4d52:0x224,_0x141355:0x16e,_0x375099:0x1f4,_0x178807:0x425,_0x5a6c3c:0x43d,_0x3af925:0x173,_0x29c55c:0xc1,_0x26e5a3:0x47,_0x44fc1f:0x429,_0x391b9a:0x36c,_0x22ce9f:0x2c3,_0x38e8f5:0x3f1,_0x53d256:0x332,_0x221838:0x11,_0x48c451:0x2a1,_0x4b987e:0x311,_0x211353:0x4a3,_0x3508ba:0x409,_0x5b71f6:0x35f,_0x35e492:0x3ce,_0x172569:0x406,_0x2eb5d8:0x4a4,_0x3042d6:0x13a,_0x372958:0x331,_0x59b4e1:0x326,_0x5723fc:0x271,_0x1bd34b:0x1df,_0x353c8c:0x267,_0x626693:0x270,_0x1817b0:0x450,_0x34b189:0x2fd,_0x3408dc:0x39c,_0x1114f1:0x113,_0x41fa27:0x2d,_0x27ea5b:0x7f,_0xb054ab:0x2d,_0x23a703:0x7d,_0x3ef46b:0x1b5,_0x545f83:0x246,_0x16fb5f:0xd0,_0x980c74:0x26,_0x327241:0x335,_0x1259a9:0x324,_0x50a317:0x3b9,_0x2cc171:0xfc,_0x250478:0x186,_0x115218:0x187,_0x5a41cb:0x2b8,_0x572a3f:0x31a,_0x1378a0:0x29a,_0x462fe5:0x18},_0x272570={_0x4e885c:0x60b,_0x2358be:0x54b,_0x2cf398:0x4cb,_0x4c7a32:0x43a,_0x3f6cb4:0x2b9,_0x3ef079:0x309,_0x47f2f8:0x496,_0x5a3f33:0x5b0,_0xf33317:0x39f,_0x1b74cc:0x2e4,_0x2b5a8a:0x3a6,_0x10c2de:0x2b9,_0x53cd09:0x283,_0x505386:0x3cd,_0x2d17d3:0x38e,_0x574615:0x391,_0x359a09:0x604,_0x3a9bb6:0x4b8,_0x3c4b01:0x1c9,_0x117b9f:0x333,_0x7cdb27:0x2b9,_0x5d686f:0x2f9,_0x5c5a26:0x616,_0x1d6e7f:0x501,_0x5d0132:0x54b,_0x4d2fd2:0x363,_0x127ab3:0x407,_0x4853a4:0x35c,_0x32a5ec:0x39a,_0x3a45a7:0x4b1,_0x3f0559:0x42d,_0x2c5489:0x376,_0x4d8799:0x3a5,_0x2e2da4:0x31c,_0x9e0f01:0x5cb,_0x23690e:0x561,_0x11c0a5:0x2fe,_0x40afc1:0x32c,_0x9c1b8d:0x410,_0xe276c3:0x3e4,_0x1bc430:0x3b6,_0x4e6e42:0x391,_0x4133df:0x3e9,_0xef0ec2:0x379,_0x12fea1:0x403,_0x43c78e:0x4c5,_0x5de12e:0x5cd},_0x4e8273={_0x379432:0xf5,_0x1aeb53:0xdc},_0x4ca1e3={_0x158133:0x1f3,_0x37ded4:0x75},_0x3f5733=[],_0xe91b42=stringifySystem(_0x46dfef[_0x5c6ed2(-0x6,-0x79,0x2b,_0x2f0301._0x144aba)]);function _0x1eecdc(_0x51607b,_0x7a402f,_0x5e470e,_0x225a9f){return _0x1b1adc(_0x51607b-_0x4ca1e3._0x158133,_0x225a9f-0x365,_0x5e470e-_0x4ca1e3._0x37ded4,_0x5e470e);}function _0x5c6ed2(_0x29341d,_0x254228,_0x38e44f,_0x2da002){return _0x1b1adc(_0x29341d-_0x4e8273._0x379432,_0x38e44f-_0x4e8273._0x1aeb53,_0x38e44f-0x162,_0x29341d);}_0xe91b42['length']>0x0&&_0x3f5733[_0x1eecdc(_0x2f0301._0x3524f5,0x498,0x33e,0x409)]({'role':_0x1eecdc(_0x2f0301._0x1c972c,_0x2f0301._0x5f0c02,_0x2f0301._0xde1f86,_0x2f0301._0x3f59d7),'content':_0xe91b42});for(const _0x107d03 of _0x46dfef[_0x1eecdc(0x3e2,_0x2f0301._0x2f0d3c,_0x2f0301._0x39541c,0x365)]){const _0x477c9b=[],_0x1e7b15=[],_0x2ab13e=[],_0x18a26e=()=>{const _0x2fe441={_0xcc5671:0x30},_0x4353c3={_0x28eca2:0x16a};if(_0x107d03[_0xd12a78(0x495,_0x272570._0x4e885c,0x550,_0x272570._0x2358be)]===_0xd12a78(0x4b0,0x4c7,_0x272570._0x2cf398,_0x272570._0x4c7a32)){if(_0x477c9b['length']===0x0&&_0x1e7b15[_0x5d5ba5(0x234,0x250,_0x272570._0x3f6cb4,_0x272570._0x3ef079)]===0x0)return;_0x3f5733[_0xd12a78(_0x272570._0x47f2f8,_0x272570._0x5a3f33,0x465,0x52e)]({'role':_0x5d5ba5(_0x272570._0xf33317,0x3bc,0x362,_0x272570._0x1b74cc),'content':_0x477c9b[_0x5d5ba5(_0x272570._0x2b5a8a,0x25d,_0x272570._0x10c2de,_0x272570._0x53cd09)]>0x0?_0x477c9b[_0x5d5ba5(_0x272570._0x505386,0x37d,0x34e,0x3a5)]('\x0a\x0a'):null,..._0x1e7b15[_0xd12a78(0x319,_0x272570._0x2d17d3,0x331,_0x272570._0x574615)]>0x0?{'tool_calls':_0x1e7b15[_0xd12a78(_0x272570._0x359a09,_0x272570._0x3a9bb6,0x5e4,0x561)](0x0)}:{}}),_0x477c9b[_0x5d5ba5(_0x272570._0x3c4b01,_0x272570._0x117b9f,_0x272570._0x7cdb27,_0x272570._0x5d686f)]=0x0;return;}if(_0x107d03[_0xd12a78(_0x272570._0x5c5a26,_0x272570._0x1d6e7f,0x54c,_0x272570._0x5d0132)]===_0x5d5ba5(_0x272570._0x4d2fd2,0x320,_0x272570._0x127ab3,_0x272570._0x4853a4)){if(_0x2ab13e[_0x5d5ba5(0x212,0x25f,0x2b9,_0x272570._0x32a5ec)]===0x0)return;const _0x58cd92=_0x2ab13e[_0x5d5ba5(0x42c,_0x272570._0x3a45a7,_0x272570._0x3f0559,0x3ce)](_0x406c4c=>_0x406c4c[_0xd12a78(0x547,0x55d,0x584,0x535)]===_0xd12a78(0x495,0x34b,0x311,0x3d7));_0x3f5733['push']({'role':_0x5d5ba5(_0x272570._0x2c5489,_0x272570._0x4d8799,_0x272570._0x127ab3,_0x272570._0x2e2da4),'content':_0x58cd92?_0x2ab13e['splice'](0x0):_0x2ab13e[_0xd12a78(_0x272570._0x9e0f01,0x576,0x4b8,_0x272570._0x23690e)](0x0)[_0x5d5ba5(_0x272570._0x11c0a5,0x270,_0x272570._0x40afc1,0x3a0)](_0x32e23d=>_0x32e23d['type']===_0x5d5ba5(0x3c6,0x3b7,0x412,0x46d))[_0x5d5ba5(0x411,0x3df,_0x272570._0x9c1b8d,0x324)](_0x1fe103=>_0x1fe103[_0xd12a78(0x571,0x494,0x577,0x4ea)])[_0xd12a78(0x437,0x430,0x47d,0x426)]('\x0a\x0a')});return;}if(_0x477c9b[_0xd12a78(0x2dc,_0x272570._0xe276c3,_0x272570._0x1bc430,_0x272570._0x4e6e42)]===0x0)return;function _0xd12a78(_0x37e56d,_0x1f29e2,_0x1647c7,_0x5979da){return _0x1eecdc(_0x37e56d-_0x4353c3._0x28eca2,_0x1f29e2-0xbb,_0x1f29e2,_0x5979da-0x125);}_0x3f5733[_0x5d5ba5(_0x272570._0x4133df,_0x272570._0xef0ec2,0x456,_0x272570._0x12fea1)]({'role':_0x107d03[_0xd12a78(0x4f5,_0x272570._0x43c78e,_0x272570._0x5de12e,0x54b)],'content':_0x477c9b['join']('\x0a\x0a')});function _0x5d5ba5(_0x4ad339,_0x30546b,_0x483f92,_0x5b122d){return _0x1eecdc(_0x4ad339-_0x2fe441._0xcc5671,_0x30546b-0x1ec,_0x5b122d,_0x483f92-0x4d);}_0x477c9b['length']=0x0;};for(const _0x4bd275 of normalizeContent(_0x107d03[_0x1eecdc(_0x2f0301._0x3cb2fc,_0x2f0301._0x137548,0x290,0x311)])){if(_0x4bd275['type']===_0x5c6ed2(0x155,_0x2f0301._0x43c18c,_0x2f0301._0x1cb2a8,_0x2f0301._0x28db3e)){_0x107d03[_0x5c6ed2(_0x2f0301._0x32bbd4,0x10c,0x19d,_0x2f0301._0x4809a6)]===_0x1eecdc(0x399,_0x2f0301._0x88e2fc,_0x2f0301._0x341457,_0x2f0301._0x514a3e)?_0x2ab13e[_0x1eecdc(0x4a7,0x4e7,_0x2f0301._0x255375,_0x2f0301._0x5d6667)]({'type':_0x5c6ed2(_0x2f0301._0x361127,0x68,0x13c,_0x2f0301._0x58d228),'text':_0x4bd275['text']}):_0x477c9b[_0x1eecdc(_0x2f0301._0x38db17,_0x2f0301._0x30149a,0x363,_0x2f0301._0x29861d)](_0x4bd275[_0x5c6ed2(_0x2f0301._0x5421f6,_0x2f0301._0x463da0,0x13c,_0x2f0301._0x492522)]);continue;}if(_0x107d03[_0x5c6ed2(_0x2f0301._0x1f2ff6,0x1db,0x19d,0x10b)]===_0x1eecdc(0x37f,0x3d5,_0x2f0301._0x49552a,0x3ba)&&_0x4bd275[_0x5c6ed2(0x100,_0x2f0301._0x3f5f82,_0x2f0301._0x125071,0x221)]===_0x5c6ed2(_0x2f0301._0x23eecd,_0x2f0301._0x3352ac,0x100,_0x2f0301._0x4332e3)){_0x2ab13e[_0x1eecdc(_0x2f0301._0x404d8f,0x43b,0x35f,0x409)]({'type':_0x5c6ed2(-0x7e,-0x7e,0x29,_0x2f0301._0x3bceec),'image_url':{'url':_0x5c6ed2(0x244,_0x2f0301._0x28a46e,0x1aa,0x183)+_0x4bd275[_0x1eecdc(0x440,_0x2f0301._0x8a5dce,0x428,0x3da)][_0x1eecdc(_0x2f0301._0x51eae4,0x3b0,_0x2f0301._0x2c684b,0x399)]+';base64,'+_0x4bd275[_0x5c6ed2(0x19b,0x1e4,_0x2f0301._0x28ec9a,0x1b4)]['data']}});continue;}if(_0x4bd275[_0x1eecdc(_0x2f0301._0x41f9dd,0x3df,0x432,0x410)]==='tool_use'){_0x1e7b15[_0x5c6ed2(0x220,_0x2f0301._0x1fe2be,_0x2f0301._0x22495c,_0x2f0301._0x4a107c)]({'id':_0x4bd275['id'],'type':_0x1eecdc(_0x2f0301._0x1f7463,0x3e2,0x274,0x325),'function':{'name':_0x4bd275[_0x5c6ed2(_0x2f0301._0x2c4d52,0x16b,_0x2f0301._0x141355,_0x2f0301._0x375099)],'arguments':JSON['stringify'](_0x4bd275[_0x1eecdc(0x3a5,0x384,_0x2f0301._0x178807,_0x2f0301._0x5a6c3c)]??{})}});continue;}if(_0x4bd275[_0x5c6ed2(0xd4,_0x2f0301._0x3af925,0x187,0x250)]!==_0x5c6ed2(0x7e,_0x2f0301._0x29c55c,0xd5,_0x2f0301._0x26e5a3))continue;_0x18a26e(),_0x3f5733[_0x1eecdc(_0x2f0301._0x44fc1f,_0x2f0301._0xde1f86,0x4e3,0x409)]({'role':_0x1eecdc(_0x2f0301._0x391b9a,_0x2f0301._0x22ce9f,_0x2f0301._0x38e8f5,_0x2f0301._0x53d256),'content':getToolResultText(_0x4bd275['content']),'tool_call_id':_0x4bd275[_0x5c6ed2(_0x2f0301._0x221838,0xdd,_0x2f0301._0x463da0,0xb0)]});const _0x3b5305=getToolResultImages(_0x4bd275[_0x1eecdc(_0x2f0301._0x48c451,0x24e,0x230,_0x2f0301._0x4b987e)]);_0x3b5305['length']>0x0&&_0x3f5733[_0x1eecdc(_0x2f0301._0x211353,0x443,0x4a0,_0x2f0301._0x3508ba)]({'role':_0x1eecdc(_0x2f0301._0x5b71f6,0x3e3,_0x2f0301._0x35e492,0x3ba),'content':[{'type':_0x1eecdc(0x34d,_0x2f0301._0x172569,_0x2f0301._0x2eb5d8,0x3c5),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x4bd275['tool_use_id']+'.'},..._0x3b5305[_0x5c6ed2(0x19c,0x1bf,_0x2f0301._0x3042d6,0x7f)](_0x5a0cd5=>({'type':_0x5c6ed2(-0xbe,0x56,0x29,0x1),'image_url':{'url':_0x5c6ed2(0x151,0xca,0x1aa,0x1fb)+_0x5a0cd5[_0x5c6ed2(0xa0,0x1cf,0x151,0x131)][_0x5c6ed2(0x119,0x12a,0x110,0x1a3)]+';base64,'+_0x5a0cd5[_0x1eecdc(0x384,0x316,0x452,0x3da)]['data']}}))]});}_0x18a26e();}const _0x50d321=resolveOpenAiReasoningConfig(_0x46dfef['reasoning']);return{'model':_0x46dfef[_0x1eecdc(0x244,0x27e,_0x2f0301._0x372958,_0x2f0301._0x59b4e1)],'messages':_0x3f5733,'stream':_0x3cf171,..._0x50d321?{'max_completion_tokens':_0x46dfef[_0x1eecdc(_0x2f0301._0x5723fc,0x2bd,_0x2f0301._0x1bd34b,0x270)]}:{'max_tokens':_0x46dfef[_0x1eecdc(0x202,_0x2f0301._0x353c8c,0x2c3,_0x2f0301._0x626693)]},..._0x50d321?.[_0x1eecdc(_0x2f0301._0x1817b0,0x3af,_0x2f0301._0x34b189,_0x2f0301._0x3408dc)]?{'reasoning_effort':_0x50d321[_0x5c6ed2(0x55,0x48,_0x2f0301._0x1114f1,0x102)]}:{},...createToolDefinitions(_0x46dfef[_0x5c6ed2(-0x7a,-0x33,_0x2f0301._0x41fa27,-_0x2f0301._0x27ea5b)])?{'tools':createToolDefinitions(_0x46dfef[_0x5c6ed2(0x3e,0x102,_0x2f0301._0xb054ab,_0x2f0301._0x23a703)])}:{},..._0x46dfef[_0x1eecdc(0x290,_0x2f0301._0x3ef46b,_0x2f0301._0x545f83,0x29a)]?{'response_format':{'type':'json_schema','json_schema':{'name':_0x46dfef[_0x5c6ed2(-_0x2f0301._0x16fb5f,0x19,_0x2f0301._0x221838,_0x2f0301._0x980c74)]['name']??_0x1eecdc(0x466,_0x2f0301._0x327241,_0x2f0301._0x1259a9,_0x2f0301._0x50a317),'schema':_0x46dfef[_0x5c6ed2(0x41,0xb,0x11,_0x2f0301._0x2cc171)][_0x5c6ed2(0x8b,_0x2f0301._0x250478,0x16b,_0x2f0301._0x115218)],'strict':_0x46dfef[_0x1eecdc(0x203,_0x2f0301._0x5a41cb,_0x2f0301._0x572a3f,_0x2f0301._0x1378a0)][_0x5c6ed2(-0x6a,-0x9f,-_0x2f0301._0x462fe5,0x76)]??!![]}}}:{}};}function createResponsesRequestBody(_0x3b630a,_0x5f5287){return{...toOpenAiResponsesRequest(_0x3b630a),..._0x5f5287?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x434b4f,_0x51ea8e={}){const _0x9aa6d9={_0x15184c:0x1a6,_0x5a94d0:0x1f3,_0x19b5ec:0x4b,_0x6b6aa9:0x5b0},_0x3eb913={_0x342c4a:0xb5,_0x3472da:0x53},_0x59649f={_0x73777f:0xfd,_0x1bab40:0x19a},_0x5bd0a0=toOpenAiResponsesRequest(_0x434b4f);function _0x405722(_0x252177,_0x2c23b7,_0x1d5750,_0x3e04df){return _0x1b1adc(_0x252177-_0x59649f._0x73777f,_0x1d5750-0x5dd,_0x1d5750-_0x59649f._0x1bab40,_0x2c23b7);}function _0x1916b2(_0x4464c4,_0x228d76,_0x4510ca,_0x5e9e9f){return _0x1b98ce(_0x4464c4,_0x5e9e9f- -0x596,_0x4510ca-_0x3eb913._0x342c4a,_0x5e9e9f-_0x3eb913._0x3472da);}return{'type':'response.create',..._0x5bd0a0,..._0x51ea8e[_0x1916b2(0x176,0x1cd,_0x9aa6d9._0x15184c,0x12b)]?{'input':_0x51ea8e[_0x1916b2(_0x9aa6d9._0x5a94d0,0xed,_0x9aa6d9._0x19b5ec,0x12b)]}:{},..._0x51ea8e[_0x405722(0x467,0x5ec,0x4fd,_0x9aa6d9._0x6b6aa9)]?{'previous_response_id':_0x51ea8e['previousResponseId']}:{},'store':![]};}function normalizeAssistantContent(_0x1e9cb3){const _0x65b1f1={_0x4e426b:0x20a,_0x4223b6:0x2db,_0x456687:0x3aa,_0x4414cd:0x2b0,_0x17c255:0x41c},_0x29f6fc={_0x4abc2e:0x377,_0x33b314:0x3d8,_0x4d9865:0x39e},_0x6a4de={_0x3c8158:0xbf,_0x5c4252:0x191},_0x56b4f3={_0x529747:0x320,_0x5a31d7:0x1d4},_0x3ccaa3={_0x3c3e90:0x1ec,_0x2d392c:0x11c};function _0xe3e8dc(_0x536741,_0x2ed2ad,_0x503055,_0x2a2ee7){return _0x1b98ce(_0x536741,_0x2ed2ad- -_0x3ccaa3._0x3c3e90,_0x503055-0xc0,_0x2a2ee7-_0x3ccaa3._0x2d392c);}if(typeof _0x1e9cb3===_0x3c4129(_0x65b1f1._0x4e426b,0x29d,_0x65b1f1._0x4223b6,0x28f))return _0x1e9cb3;if(!Array['isArray'](_0x1e9cb3))return'';function _0x3c4129(_0x1e1eaf,_0x3cb971,_0x2a6381,_0x2ce6ba){return _0x1b1adc(_0x1e1eaf-0x3c,_0x2a6381-_0x56b4f3._0x529747,_0x2a6381-_0x56b4f3._0x5a31d7,_0x2ce6ba);}return _0x1e9cb3[_0xe3e8dc(_0x65b1f1._0x456687,0x45b,0x37d,0x461)](_0x4a4ac1=>{function _0x59d3a9(_0x3830bb,_0x28e570,_0x5aaa38,_0xbc037){return _0xe3e8dc(_0x3830bb,_0xbc037- -_0x6a4de._0x3c8158,_0x5aaa38-_0x6a4de._0x5c4252,_0xbc037-0xfa);}function _0x2a5054(_0x150888,_0x121910,_0x26e96d,_0x3d1ea1){return _0x3c4129(_0x150888-0xc6,_0x121910-0xdc,_0x26e96d- -0x259,_0x150888);}return _0x4a4ac1[_0x2a5054(0x1b3,0x138,0x172,0x1f5)]===_0x59d3a9(_0x29f6fc._0x4abc2e,0x2fe,_0x29f6fc._0x33b314,_0x29f6fc._0x4d9865)?_0x4a4ac1['text']:_0x4a4ac1['refusal'];})[_0xe3e8dc(_0x65b1f1._0x4414cd,0x399,0x35e,_0x65b1f1._0x17c255)]('');}function normalizeResponsesMessageContent(_0x5d49d1){const _0x229ebb={_0x11bc32:0xa8,_0x1eb694:0x33,_0x2708db:0x689,_0x18e435:0x5b9},_0x3134c0={_0x317af7:0x3bd,_0x10e5b5:0x301,_0x5504b2:0x32e,_0x27aea4:0x24d,_0x129987:0x19b,_0x6a00d2:0x28e,_0x5e0a2a:0x21a,_0x3a5a57:0x232,_0x59d6ef:0x2a0,_0x13c5d2:0x207,_0x45b692:0x375,_0x5406ee:0x250,_0x136d7d:0x276,_0x16e39c:0x295,_0x12168e:0x131,_0x729903:0x133},_0x139e87={_0x5c8849:0x1af},_0x5b6840={_0x218c1d:0x62b,_0x2df3e0:0x12b};function _0xd5192(_0x18d009,_0x5251e8,_0x10c0c4,_0x374d3d){return _0x1b1adc(_0x18d009-0x20,_0x10c0c4-0xc0,_0x10c0c4-0x44,_0x5251e8);}if(!Array[_0xd5192(0x105,0x159,_0x229ebb._0x11bc32,-_0x229ebb._0x1eb694)](_0x5d49d1))return'';function _0x53b189(_0x3484f5,_0x5de2e1,_0x553f03,_0x696fde){return _0x1b1adc(_0x3484f5-0x121,_0x3484f5-_0x5b6840._0x218c1d,_0x553f03-_0x5b6840._0x2df3e0,_0x5de2e1);}return _0x5d49d1[_0x53b189(_0x229ebb._0x2708db,0x71c,_0x229ebb._0x18e435,0x65a)](_0x2dd446=>{const _0x32e9b2={_0x5bbf15:0x17e,_0x22ec42:0x1cb};if(!_0x2dd446||typeof _0x2dd446!==_0xf1fe06(_0x3134c0._0x317af7,_0x3134c0._0x10e5b5,0x353,_0x3134c0._0x5504b2))return'';const _0x18266f=_0x2dd446;if(_0x18266f[_0x5a0697(0x2a0,0x21e,_0x3134c0._0x27aea4,_0x3134c0._0x129987)]===_0xf1fe06(0x224,_0x3134c0._0x6a00d2,_0x3134c0._0x5e0a2a,0x29d)&&typeof _0x18266f[_0x5a0697(_0x3134c0._0x3a5a57,0x26d,0x202,0x1bb)]===_0xf1fe06(0x37c,_0x3134c0._0x59d6ef,_0x3134c0._0x13c5d2,_0x3134c0._0x45b692))return _0x18266f['text'];function _0xf1fe06(_0x2388e6,_0x599985,_0x1755c4,_0x5f5c16){return _0x53b189(_0x599985- -0x346,_0x1755c4,_0x1755c4-_0x32e9b2._0x5bbf15,_0x5f5c16-_0x32e9b2._0x22ec42);}function _0x5a0697(_0x3291f0,_0x216b91,_0x173dc7,_0x543f65){return _0xd5192(_0x3291f0-_0x139e87._0x5c8849,_0x3291f0,_0x173dc7-0xe2,_0x543f65-0x141);}if(_0x18266f[_0x5a0697(0x237,0x2ef,0x24d,_0x3134c0._0x5406ee)]===_0xf1fe06(0x221,0x276,0x297,0x29d)&&typeof _0x18266f[_0xf1fe06(0x1ef,_0x3134c0._0x136d7d,0x2f5,_0x3134c0._0x16e39c)]==='string')return _0x18266f[_0x5a0697(_0x3134c0._0x12168e,0x64,_0x3134c0._0x729903,0x1d8)];return'';})['join']('');}function extractOpenAiReasoningText(_0x22a4b5){const _0x5ebcec={_0x25122b:0x465,_0x153c7a:0x539,_0x462820:0x512,_0x3b9fca:0x384,_0x95094a:0x386,_0x1d195c:0xee,_0x24be29:0x14c,_0x4eeefd:0x435,_0xa3efe6:0xa3},_0x9512c1={_0x31425b:0x119},_0x3065c4={_0x172098:0x1a7,_0xffc68a:0x119};if(typeof _0x22a4b5[_0xf703ec(_0x5ebcec._0x25122b,_0x5ebcec._0x153c7a,_0x5ebcec._0x462820,0x4e9)]===_0xf703ec(_0x5ebcec._0x3b9fca,_0x5ebcec._0x95094a,0x4e0,0x444))return _0x22a4b5[_0x8bb47e(0xe1,_0x5ebcec._0x1d195c,_0x5ebcec._0x24be29,0x16a)];function _0x8bb47e(_0x48db6e,_0x4627a9,_0x169f3f,_0x353d79){return _0x1b98ce(_0x353d79,_0x4627a9- -0x55b,_0x169f3f-_0x3065c4._0x172098,_0x353d79-_0x3065c4._0xffc68a);}if(!Array['isArray'](_0x22a4b5[_0xf703ec(0x3d1,0x4cc,0x472,_0x5ebcec._0x4eeefd)]))return'';function _0xf703ec(_0x442deb,_0x5f5dbc,_0x2773d4,_0x1cad69){return _0x1b98ce(_0x442deb,_0x1cad69- -0x160,_0x2773d4-0x1b9,_0x1cad69-_0x9512c1._0x31425b);}return _0x22a4b5['content'][_0x8bb47e(0x66,0x8,_0x5ebcec._0xa3efe6,-0x8e)](_0x45d7a2=>_0x45d7a2[_0xf703ec(0x5ad,0x4b1,0x54a,0x534)]===_0x8bb47e(0x143,0x146,0x93,0x1fc)&&typeof _0x45d7a2[_0xf703ec(0x4c6,0x46b,0x4fe,0x4e9)]==='string')['map'](_0x9056b1=>_0x9056b1['text']??'')[_0x8bb47e(-0x24,0x2a,-0x21,-0x49)]('');}function createOpenAiReasoningBlock(_0x3b35dc){const _0x3b5b01={_0x1b72a7:0x652,_0x1bfba3:0x4f3,_0x3cd26d:0x5d5,_0x4f3b54:0x1b5,_0x11c9aa:0x2bd,_0x1aa75b:0x234,_0x1843ac:0x5b8,_0x234573:0x64e,_0x3c69d5:0x549},_0x4ba48d={_0x27c1a8:0x93,_0x1e143a:0x7f},_0x47236b={_0x116f61:0xaf,_0x1796c5:0xa2};function _0x3d0fe2(_0x237a2a,_0x261278,_0x54c829,_0x518270){return _0x1b98ce(_0x237a2a,_0x54c829- -0x2dc,_0x54c829-_0x47236b._0x116f61,_0x518270-_0x47236b._0x1796c5);}const _0x15690c=extractOpenAiReasoningText(_0x3b35dc);function _0x32b7a4(_0x51b3c5,_0x24098c,_0x4ccd7f,_0x1c731b){return _0x1b98ce(_0x24098c,_0x4ccd7f-_0x4ba48d._0x27c1a8,_0x4ccd7f-0x14c,_0x1c731b-_0x4ba48d._0x1e143a);}return{'type':_0x32b7a4(0x737,0x7df,0x729,0x651),'summary':structuredClone(_0x3b35dc[_0x32b7a4(_0x3b5b01._0x1b72a7,_0x3b5b01._0x1bfba3,_0x3b5b01._0x3cd26d,0x6ab)]??[]),..._0x3b35dc['id']?{'id':_0x3b35dc['id']}:{},..._0x3b35dc[_0x3d0fe2(_0x3b5b01._0x4f3b54,_0x3b5b01._0x11c9aa,_0x3b5b01._0x1aa75b,0x2d4)]?{'encryptedContent':_0x3b35dc[_0x32b7a4(_0x3b5b01._0x1843ac,_0x3b5b01._0x234573,0x5a3,_0x3b5b01._0x3c69d5)]}:{},..._0x15690c['length']>0x0?{'text':_0x15690c}:{}};}function hasVisibleOpenAiReasoning(_0x2b31d5){const _0x372cb6={_0x2695fb:0x44b,_0x2d99bf:0x68d,_0x2b9fc4:0x650,_0x1f8cff:0x5ec,_0x2731c8:0x564},_0x432fff={_0xfd1ba7:0x58c},_0x3c3c21={_0x54ffb2:0x127,_0x23fb06:0x20};function _0x37c5a6(_0x3a8dc1,_0x2a9a03,_0x1d99c2,_0x1248be){return _0x1b1adc(_0x3a8dc1-0x148,_0x1248be-_0x3c3c21._0x54ffb2,_0x1d99c2-_0x3c3c21._0x23fb06,_0x1d99c2);}function _0x428b54(_0x50d5ef,_0x25a22c,_0x3bc727,_0x551095){return _0x1b1adc(_0x50d5ef-0x79,_0x3bc727-_0x432fff._0xfd1ba7,_0x3bc727-0x3c,_0x551095);}return _0x2b31d5['summary'][_0x428b54(_0x372cb6._0x2695fb,0x49c,0x493,0x468)]>0x0||typeof _0x2b31d5[_0x428b54(_0x372cb6._0x2d99bf,_0x372cb6._0x2b9fc4,_0x372cb6._0x1f8cff,0x630)]===_0x428b54(_0x372cb6._0x2731c8,0x5a1,0x547,0x5ee);}function parseChatCompletionResponse(_0x441468){const _0x5e1365={_0x181d75:0x6e9,_0x58cc99:0x660,_0x25193e:0x629,_0x2d2b95:0x708,_0x37c8da:0x7b6,_0x3c4dd4:0x35e,_0x15ea01:0x390,_0x3c674f:0x2f0,_0x4d1b15:0x62d,_0x17f247:0x685,_0x28ca7e:0x6ed,_0x3cd2d2:0x3a4,_0x4b14c0:0x452,_0x1ba49b:0x48d,_0x12e8ea:0x549,_0xfe5ce1:0x6de,_0x567dd9:0x71b,_0x366c18:0x5ed,_0x13c91f:0x6ea,_0x123f52:0x5a8,_0x32dbdf:0x4bf,_0x33881f:0x5ee,_0x5d6d6e:0x5e8,_0x2db8f6:0x3ce,_0x42d6b6:0x43e,_0x34b635:0x443,_0x1ec3a9:0x466,_0x335225:0x389,_0x5de673:0x3fc,_0x292558:0x352,_0x1f2279:0x67b,_0x34f4f9:0x4c2,_0x60e040:0x55a,_0x6cde3:0x548},_0xd76e5f={_0x22ffdd:0x181,_0x24589b:0x3e9,_0x29aa66:0x1b2},_0x431dc2={_0x1d9a9d:0x117,_0x585972:0x6a1},_0x5da6a0=[],_0x3a593c=[];let _0xe9fff6=_0x9f4429(_0x5e1365._0x181d75,_0x5e1365._0x58cc99,_0x5e1365._0x25193e,0x5fe);function _0x9f4429(_0x127cc1,_0x14bbbd,_0x518bb4,_0xc1a1d6){return _0x1b1adc(_0x127cc1-_0x431dc2._0x1d9a9d,_0x127cc1-_0x431dc2._0x585972,_0x518bb4-0x152,_0x14bbbd);}function _0x27c371(_0x5943ce,_0x3a49cd,_0x4392ea,_0x2c57cd){return _0x1b1adc(_0x5943ce-_0xd76e5f._0x22ffdd,_0x2c57cd-_0xd76e5f._0x24589b,_0x4392ea-_0xd76e5f._0x29aa66,_0x3a49cd);}for(const _0x5076f4 of _0x441468[_0x9f4429(0x6d6,0x756,0x726,0x759)]??[]){const _0x96c1ee=_0x5076f4[_0x9f4429(_0x5e1365._0x2d2b95,0x64a,0x6a2,_0x5e1365._0x37c8da)],_0x22efbc=normalizeAssistantContent(_0x96c1ee?.['content']);_0x22efbc[_0x27c371(_0x5e1365._0x3c4dd4,_0x5e1365._0x15ea01,0x344,_0x5e1365._0x3c674f)]>0x0&&_0x5da6a0['push'](_0x22efbc),_0x96c1ee?.[_0x9f4429(_0x5e1365._0x4d1b15,0x6e3,_0x5e1365._0x17f247,_0x5e1365._0x28ca7e)]&&_0x3a593c[_0x27c371(_0x5e1365._0x3cd2d2,_0x5e1365._0x4b14c0,0x4ca,_0x5e1365._0x1ba49b)](..._0x96c1ee[_0x9f4429(0x62d,_0x5e1365._0x12e8ea,_0x5e1365._0xfe5ce1,0x687)]),_0x5076f4[_0x9f4429(0x6ed,0x65b,0x77f,_0x5e1365._0x567dd9)]===_0x9f4429(0x62d,_0x5e1365._0x366c18,0x5e7,_0x5e1365._0x13c91f)&&(_0xe9fff6='tool_use');}return _0x3a593c[_0x9f4429(_0x5e1365._0x123f52,_0x5e1365._0x32dbdf,_0x5e1365._0x33881f,_0x5e1365._0x5d6d6e)]>0x0&&(_0xe9fff6=_0x27c371(_0x5e1365._0x2db8f6,_0x5e1365._0x42d6b6,_0x5e1365._0x34b635,_0x5e1365._0x1ec3a9)),{'id':_0x441468['id']??'chatcmpl-'+Date[_0x27c371(_0x5e1365._0x335225,_0x5e1365._0x5de673,0x2d3,_0x5e1365._0x292558)](),'content':createContentBlocks(_0x5da6a0[_0x9f4429(0x63d,0x5f1,_0x5e1365._0x1f2279,0x5e3)](''),_0x3a593c),'stopReason':_0xe9fff6,'usage':createUsage(_0x441468[_0x27c371(_0x5e1365._0x34f4f9,_0x5e1365._0x60e040,_0x5e1365._0x6cde3,0x486)])};}function parseResponsesResponse(_0x5a4b29,_0x3ea40b){const _0x4a1cca={_0x52c0e9:0x556,_0x3bdcc5:0x56d,_0x6f944d:0x46d,_0x2a8696:0x4cd,_0x5b070d:0x424,_0x408b59:0x334,_0xb4db5f:0x467,_0x3bd5a7:0x4d7,_0x6f6cee:0x32f,_0x3f4376:0x488,_0x2535a5:0x46d,_0x3a2453:0x52a,_0x137a3d:0x577,_0x194ee0:0x5ac,_0x208c5a:0x445,_0x3b6302:0x424,_0x4db35e:0x4ba,_0x5812b8:0x544,_0x460760:0x58f,_0x5aa583:0x517,_0x150cd3:0x572,_0xa258ca:0x532,_0xc9c932:0x574,_0x42731d:0x36e,_0x193276:0x4a7,_0x251c83:0x3f6,_0x883da9:0x4dc,_0x32445e:0x697,_0x24f28e:0x5c1,_0x33075e:0x54e,_0x1c0fb6:0x45a,_0xf92465:0x52d,_0x256269:0x5ec,_0x502506:0x3a8,_0x356258:0x4b8,_0xd63b3a:0x46f,_0x2f1977:0x5b4,_0x5848a8:0x57d,_0x12a474:0x4fe,_0xf865aa:0x665,_0x508257:0x639,_0x4f237c:0x52f,_0x1450dd:0x4cc,_0x1d572e:0x51d,_0x259c51:0x4fa,_0x1e6027:0x47e,_0x42f3d1:0x56e,_0x23baa3:0x50d,_0x321ca2:0x54f,_0x997b9d:0x481,_0x117d53:0x4ea,_0x2bf068:0x50a,_0xf6cf1b:0x4df,_0x32db1e:0x551,_0x14b499:0x5ba,_0x5b604c:0x5f8,_0x5a5a5a:0x573,_0x150f4f:0x432,_0x35941c:0x508,_0x14ad54:0x5c3,_0x28f2a7:0x5d4,_0x35313f:0x61c},_0x1ec022={_0x20a14c:0xb3};function _0x53821e(_0x5aa5a8,_0x570eaf,_0x25c026,_0x53acac){return _0x1b1adc(_0x5aa5a8-0x4b,_0x25c026-0x51d,_0x25c026-0x10f,_0x53acac);}function _0x34f38d(_0x4ad81e,_0x11f18f,_0x2bf217,_0x306c64){return _0x1b98ce(_0x306c64,_0x4ad81e- -0x137,_0x2bf217-0x1c1,_0x306c64-_0x1ec022._0x20a14c);}const _0x17c443=[];for(const _0xe6448c of _0x5a4b29['output']??[]){if(isResponsesReasoningItem(_0xe6448c)){if(isUserVisibleReasoning(_0x3ea40b)){const _0x520a77=createOpenAiReasoningBlock(_0xe6448c);hasVisibleOpenAiReasoning(_0x520a77)&&_0x17c443[_0x34f38d(_0x4a1cca._0x52c0e9,_0x4a1cca._0x3bdcc5,0x561,_0x4a1cca._0x6f944d)](_0x520a77);}continue;}if(isResponsesMessageItem(_0xe6448c)){const _0x5d239f=normalizeResponsesMessageContent(_0xe6448c['content']);_0x5d239f[_0x53821e(_0x4a1cca._0x2a8696,0x349,_0x4a1cca._0x5b070d,_0x4a1cca._0x408b59)]>0x0&&_0x17c443[_0x34f38d(0x556,0x643,_0x4a1cca._0xb4db5f,0x5a2)]({'type':_0x34f38d(0x512,0x5c5,0x427,_0x4a1cca._0x3bd5a7),'text':_0x5d239f});continue;}if(!isResponsesFunctionCallItem(_0xe6448c)||typeof _0xe6448c[_0x34f38d(0x40d,0x424,_0x4a1cca._0x6f6cee,_0x4a1cca._0x3f4376)]!==_0x34f38d(_0x4a1cca._0x2535a5,0x41d,0x4c3,_0x4a1cca._0x3a2453)||_0xe6448c['call_id'][_0x53821e(0x44a,_0x4a1cca._0x137a3d,0x4f5,_0x4a1cca._0x194ee0)]()[_0x53821e(_0x4a1cca._0x208c5a,0x336,_0x4a1cca._0x3b6302,_0x4a1cca._0x4db35e)]===0x0||typeof _0xe6448c[_0x34f38d(_0x4a1cca._0x5812b8,_0x4a1cca._0x460760,0x630,_0x4a1cca._0x5aa583)]!=='string'||_0xe6448c[_0x53821e(0x4fe,_0x4a1cca._0x150cd3,0x5af,0x4cf)][_0x34f38d(0x48a,0x42b,_0x4a1cca._0xa258ca,_0x4a1cca._0xc9c932)]()[_0x34f38d(0x3b9,0x309,0x47a,_0x4a1cca._0x42731d)]===0x0||typeof _0xe6448c[_0x34f38d(_0x4a1cca._0x193276,_0x4a1cca._0x5812b8,0x443,_0x4a1cca._0x251c83)]!==_0x34f38d(0x46d,0x489,0x4c4,_0x4a1cca._0x883da9))continue;_0x17c443[_0x53821e(0x50c,_0x4a1cca._0x32445e,_0x4a1cca._0x24f28e,0x634)]({'type':'tool_use','id':_0xe6448c[_0x53821e(_0x4a1cca._0x33075e,0x41d,0x478,0x3d8)],'name':_0xe6448c[_0x34f38d(0x544,0x57e,_0x4a1cca._0x1c0fb6,0x558)],'input':parseToolInput2(_0xe6448c['arguments'])});}return!_0x17c443[_0x34f38d(_0x4a1cca._0xf92465,_0x4a1cca._0x256269,0x4b2,0x467)](_0xee9426=>_0xee9426[_0x53821e(0x517,0x618,0x5c8,0x6af)]===_0x53821e(0x647,0x5e7,0x57d,0x641))&&_0x5a4b29[_0x34f38d(0x45b,0x3c2,_0x4a1cca._0x502506,_0x4a1cca._0x356258)]&&_0x17c443[_0x34f38d(0x556,0x5fd,_0x4a1cca._0xd63b3a,0x636)]({'type':_0x53821e(0x4b2,_0x4a1cca._0x2f1977,_0x4a1cca._0x5848a8,_0x4a1cca._0x12a474),'text':_0x5a4b29[_0x34f38d(0x45b,0x3cf,0x545,0x468)]}),{'id':_0x5a4b29['id'],'content':_0x17c443,'stopReason':_0x17c443[_0x53821e(_0x4a1cca._0xf865aa,_0x4a1cca._0x5812b8,0x598,_0x4a1cca._0x508257)](_0x28cc43=>_0x28cc43[_0x34f38d(0x55d,0x5d8,0x4f6,0x4a4)]===_0x53821e(0x4ac,0x68a,0x59a,0x666))?_0x34f38d(_0x4a1cca._0x4f237c,0x5dc,_0x4a1cca._0x1450dd,_0x4a1cca._0x1d572e):_0x34f38d(_0x4a1cca._0x259c51,_0x4a1cca._0x1e6027,_0x4a1cca._0x42f3d1,0x554),'usage':{'inputTokens':_0x5a4b29[_0x34f38d(0x54f,_0x4a1cca._0x23baa3,0x549,0x62c)]?.[_0x34f38d(0x4eb,0x4f6,0x538,0x48b)]??0x0,'outputTokens':_0x5a4b29[_0x34f38d(_0x4a1cca._0x321ca2,0x513,0x48e,0x61a)]?.['output_tokens']??0x0,..._0x5a4b29[_0x34f38d(0x54f,0x516,_0x4a1cca._0x997b9d,_0x4a1cca._0x117d53)]?.['output_tokens_details']?.[_0x53821e(0x4be,0x445,_0x4a1cca._0x2bf068,0x47f)]!==void 0x0?{'reasoningTokens':_0x5a4b29[_0x53821e(_0x4a1cca._0xf6cf1b,_0x4a1cca._0x32db1e,_0x4a1cca._0x14b499,0x550)][_0x53821e(0x6d2,0x615,_0x4a1cca._0x5b604c,_0x4a1cca._0x5a5a5a)][_0x53821e(_0x4a1cca._0x150f4f,0x4be,0x50a,0x4f3)]}:{}},..._0x5a4b29[_0x34f38d(_0x4a1cca._0x35941c,_0x4a1cca._0x14ad54,0x5cb,_0x4a1cca._0x28f2a7)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x5a4b29[_0x53821e(0x4e9,0x568,0x573,_0x4a1cca._0x35313f)]),'openaiResponsesResponseId':_0x5a4b29['id']}}:{}};}function extractErrorMessage(_0x4c5946){const _0x500080={_0x4f9610:0x31c,_0x45b2af:0x285,_0x2fd947:0x1f4,_0x49c712:0x486,_0x160762:0x3c2,_0x3ecef1:0x46d,_0x4108e2:0x3d5,_0x27da2d:0x4f6,_0x580672:0x301,_0x1b70eb:0x2f4,_0x5ab83e:0x260,_0x5b0b4c:0x211,_0x36f805:0x391,_0x2a163e:0x492,_0x251e2c:0x4f3,_0x316c7b:0x593,_0x33fa18:0x519,_0x1ecfe5:0x2b3,_0x36dd2f:0x331,_0x4cc554:0x4bb,_0x4b9afc:0x4cb,_0x3cb36a:0x4f4,_0x1f504b:0x302,_0x5e25ee:0x3c0,_0x3c653f:0x25a,_0x3fa6fc:0x331,_0x14ca8e:0x2e4,_0x547f10:0x2e9,_0x5efbdd:0x3c0,_0x373107:0x2d5,_0x4331be:0x2db},_0x38fb94={_0x6a64f9:0x290,_0x4c015f:0x7b},_0x35931d={_0xd343ab:0x137,_0x521031:0x17d};if(_0x4c5946[_0x4f0f76(_0x500080._0x4f9610,_0x500080._0x45b2af,0x260,_0x500080._0x2fd947)]===0x0)return'';try{const _0x209fa9=JSON['parse'](_0x4c5946);if(typeof _0x209fa9['error']?.['message']===_0x1852bf(_0x500080._0x49c712,0x399,_0x500080._0x160762,_0x500080._0x3ecef1)&&_0x209fa9[_0x4f0f76(_0x500080._0x4108e2,0x4f6,0x421,_0x500080._0x27da2d)][_0x4f0f76(0x318,_0x500080._0x580672,0x3c0,0x3ce)]['trim']()[_0x4f0f76(_0x500080._0x1b70eb,0x268,_0x500080._0x5ab83e,_0x500080._0x5b0b4c)]>0x0)return _0x209fa9[_0x4f0f76(_0x500080._0x36f805,_0x500080._0x2a163e,0x421,0x3c4)][_0x1852bf(0x5a5,_0x500080._0x251e2c,_0x500080._0x316c7b,_0x500080._0x33fa18)][_0x4f0f76(0x37e,_0x500080._0x1ecfe5,_0x500080._0x36dd2f,0x3ce)]();if(typeof _0x209fa9['message']===_0x1852bf(_0x500080._0x4cc554,_0x500080._0x4b9afc,_0x500080._0x3cb36a,_0x500080._0x3ecef1)&&_0x209fa9[_0x4f0f76(_0x500080._0x1f504b,0x2f4,_0x500080._0x5e25ee,0x3e4)][_0x4f0f76(_0x500080._0x3c653f,0x2a2,_0x500080._0x3fa6fc,0x34b)]()[_0x4f0f76(_0x500080._0x14ca8e,0x2d8,_0x500080._0x5ab83e,0x2d1)]>0x0)return _0x209fa9[_0x4f0f76(0x36a,_0x500080._0x547f10,_0x500080._0x5efbdd,_0x500080._0x373107)][_0x4f0f76(_0x500080._0x4331be,0x2da,0x331,0x363)]();}catch{return _0x4c5946;}function _0x1852bf(_0x13d019,_0x73f290,_0x119f32,_0x45c9eb){return _0x1b98ce(_0x119f32,_0x45c9eb- -_0x35931d._0xd343ab,_0x119f32-0x75,_0x45c9eb-_0x35931d._0x521031);}function _0x4f0f76(_0x224d14,_0xbdfb9c,_0x6d0030,_0x56c25b){return _0x1b98ce(_0x56c25b,_0x6d0030- -_0x38fb94._0x6a64f9,_0x6d0030-_0x38fb94._0x4c015f,_0x56c25b-0x120);}return _0x4c5946;}async function createOpenAiApiError(_0x1160c2){const _0x3ca3fa={_0x15ff35:0x2c,_0x22ca09:0x22,_0x14fdd0:0x105,_0x5a00d5:0x58,_0x45a8ee:0x63,_0x29e538:0x7c},_0x37f080={_0x531426:0x670,_0x2dc66f:0xb4};function _0x16dc19(_0x2ff42a,_0x49c2d8,_0x1761b5,_0x3212e2){return _0x1b98ce(_0x1761b5,_0x2ff42a- -_0x37f080._0x531426,_0x1761b5-_0x37f080._0x2dc66f,_0x3212e2-0x167);}const _0x1bcd50=(await _0x1160c2[_0x75823(-_0x3ca3fa._0x15ff35,-_0x3ca3fa._0x22ca09,0x25,-0x66)]())[_0x75823(-_0x3ca3fa._0x14fdd0,_0x3ca3fa._0x5a00d5,-_0x3ca3fa._0x45a8ee,0x89)](),_0x270d89=extractErrorMessage(_0x1bcd50)||_0x1160c2['statusText']||_0x16dc19(-0x4,-_0x3ca3fa._0x29e538,0xbb,0x98)+_0x1160c2['status'];function _0x75823(_0x12d52d,_0xe989cf,_0x25e7e8,_0x5123f0){return _0x1b98ce(_0x5123f0,_0x25e7e8- -0x624,_0x25e7e8-0x15b,_0x5123f0-0xf5);}return new OpenAiApiError(_0x1160c2['status'],_0x1bcd50,_0x270d89);}function readSseData(_0xd6a34e){const _0x1ddf13={_0x2b7dd9:0xec,_0x299327:0x12,_0x80e7d7:0xb2,_0x58c328:0x152,_0x2774a9:0x11a,_0x491070:0x204},_0x1a228c={_0xaf1d7a:0x1b8},_0x26c539={_0x1a1219:0x142,_0x297eeb:0x1f1};function _0x3b6395(_0x28de45,_0x3d77cd,_0x1e77c8,_0x50c9a3){return _0x1b1adc(_0x28de45-0x139,_0x3d77cd-_0x26c539._0x1a1219,_0x1e77c8-_0x26c539._0x297eeb,_0x1e77c8);}function _0x1682f4(_0x5c3ab9,_0x3c24bb,_0x5b2a1b,_0x590acf){return _0x1b1adc(_0x5c3ab9-0x14a,_0x5c3ab9- -0x110,_0x5b2a1b-_0x1a228c._0xaf1d7a,_0x590acf);}return _0xd6a34e[_0x3b6395(0x11,0xb1,_0x1ddf13._0x2b7dd9,-_0x1ddf13._0x299327)]('\x0a')['filter'](_0x3d95d0=>_0x3d95d0['startsWith'](_0x3b6395(0x1b8,0x210,0x1b8,0x23a)))[_0x1682f4(-_0x1ddf13._0x80e7d7,-0xb7,-_0x1ddf13._0x58c328,-0xe8)](_0x5641bb=>_0x5641bb[_0x1682f4(-0x161,-0xea,-0x1cf,-0xd7)](0x5)[_0x1682f4(-0x8a,-0x118,0x0,0x51)]())['join']('\x0a')[_0x3b6395(0xf9,_0x1ddf13._0x2774a9,0x1c8,_0x1ddf13._0x491070)]();}function readString(_0x580426){const _0x180724={_0x1f84ee:0x46,_0x2ae585:0xc8},_0x255898={_0xdd4689:0x477,_0x3d1dda:0x134};function _0x2f9e46(_0x762fec,_0x3e2403,_0x2a8d58,_0x2f83d4){return _0x1b98ce(_0x2a8d58,_0x2f83d4- -_0x255898._0xdd4689,_0x2a8d58-_0x255898._0x3d1dda,_0x2f83d4-0x4f);}return typeof _0x580426===_0x2f9e46(_0x180724._0x1f84ee,0x1c5,_0x180724._0x2ae585,0x12d)&&_0x580426['length']>0x0?_0x580426:void 0x0;}function extractReasoningDetails(_0x44e0e3){const _0x421a6a={_0x3d0bf2:0x14a,_0x64e458:0x115,_0x4c89a5:0x199,_0x78d721:0x97},_0x4fdcd5={_0x98837:0x4c0,_0x476031:0x11f,_0x585c5f:0x4a,_0x1f23b9:0x3d3,_0x55f8f1:0x337,_0x1cae7e:0x1a9,_0xe0bc82:0xfd,_0x3c12d4:0x294,_0x30f2ec:0x1be},_0x52a742={_0x2d1834:0xbd,_0x4b31ca:0x246},_0x32cc69={_0x22b1e5:0x11c,_0x45d49c:0x1c2};function _0x40b3a4(_0x3f119c,_0xa2b109,_0x3dd466,_0x5884d4){return _0x1b1adc(_0x3f119c-_0x32cc69._0x22b1e5,_0xa2b109-0x12d,_0x3dd466-_0x32cc69._0x45d49c,_0x5884d4);}if(!Array[_0x40b3a4(_0x421a6a._0x3d0bf2,_0x421a6a._0x64e458,_0x421a6a._0x4c89a5,_0x421a6a._0x78d721)](_0x44e0e3))return void 0x0;const _0x9a7443=_0x44e0e3['flatMap'](_0x340d56=>{const _0x21a506={_0x16b033:0x3b,_0x266778:0x1f4};if(!_0x340d56||typeof _0x340d56!==_0x148c95(0x480,0x522,0x530,_0x4fdcd5._0x98837))return[];function _0x148c95(_0x930d0f,_0x25d5a8,_0x47da38,_0x384e04){return _0x40b3a4(_0x930d0f-_0x21a506._0x16b033,_0x384e04-0x377,_0x47da38-_0x21a506._0x266778,_0x930d0f);}const _0x47733b=_0x340d56;function _0x2ab53b(_0x22cad8,_0x25b34e,_0x377fc5,_0x10644d){return _0x40b3a4(_0x22cad8-_0x52a742._0x2d1834,_0x10644d- -_0x52a742._0x4b31ca,_0x377fc5-0x8e,_0x25b34e);}if(typeof _0x47733b[_0x2ab53b(-_0x4fdcd5._0x476031,-_0x4fdcd5._0x585c5f,-0x89,-0xb9)]==='string')return[_0x47733b['text']];if(typeof _0x47733b[_0x148c95(_0x4fdcd5._0x1f23b9,0x39c,_0x4fdcd5._0x55f8f1,0x3fd)]===_0x2ab53b(-_0x4fdcd5._0x1cae7e,-_0x4fdcd5._0xe0bc82,-0x221,-0x15e))return[_0x47733b[_0x2ab53b(-0x184,-_0x4fdcd5._0x3c12d4,-_0x4fdcd5._0x30f2ec,-0x1c0)]];return[];});return _0x9a7443['length']>0x0?_0x9a7443['join'](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x229341){const _0x3f80d9={_0x398c3f:0x40c,_0xa7a47f:0x497,_0x5402c2:0x538,_0x3b856b:0x4e3},_0x4fa236={_0x51d9c6:0xaf,_0x434d0c:0xee,_0x24d785:0x82},_0x2677ef={_0x4738fc:0x1ab};function _0x1dc992(_0x29a1ee,_0x1ac7da,_0x133047,_0x5b4a2e){return _0x1b98ce(_0x1ac7da,_0x29a1ee- -0x119,_0x133047-_0x2677ef._0x4738fc,_0x5b4a2e-0x1e9);}function _0x3cfc84(_0x1dfc35,_0x4c97fe,_0x43214b,_0x2ec0df){return _0x1b98ce(_0x4c97fe,_0x43214b- -_0x4fa236._0x51d9c6,_0x43214b-_0x4fa236._0x434d0c,_0x2ec0df-_0x4fa236._0x24d785);}return extractReasoningDetails(_0x229341?.[_0x1dc992(_0x3f80d9._0x398c3f,0x3ec,0x478,0x485)])??readString(_0x229341?.[_0x3cfc84(_0x3f80d9._0xa7a47f,0x564,0x4c9,0x421)])??readString(_0x229341?.[_0x1dc992(_0x3f80d9._0x5402c2,0x4fd,0x44e,0x507)])??readString(_0x229341?.[_0x1dc992(0x588,0x5c0,_0x3f80d9._0x3b856b,0x572)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x1b1adc(0x67,0xd9,0x134,0xdd)]=[];[_0x1b1adc(-0x7f,-0xfb,-0x20,-0xfb)];[_0x1b98ce(0x558,0x577,0x509,0x528)]=[];[_0x1b1adc(-0xc9,-0xc0,-0xf9,-0xa)]=new Map();[_0x1b98ce(0x69c,0x637,0x6f4,0x60b)]=[];[_0x1b98ce(0x5a5,0x5cb,0x69c,0x58d)]=new Set();[_0x1b98ce(0x5d7,0x59c,0x59d,0x5f3)]='';[_0x1b98ce(0x603,0x55f,0x626,0x55c)]=_0x1b1adc(-0x21,0x48,0x79,-0x6e);['usage'];constructor(_0x2d1cb3){this['request']=_0x2d1cb3;}['consumeSseEvent'](_0x3f094b){const _0x43834b={_0x913fa0:0x251,_0x5e4e44:0x3d0,_0x1a71a9:0x3a8,_0x3a74f8:0x402},_0x10cf39={_0x49d51c:0x1e9},_0x50347c={_0x55e4ba:0x2b4};function _0xf04981(_0x52948d,_0x36b3d3,_0x357438,_0x199af1){return _0x1b1adc(_0x52948d-0x189,_0x357438-_0x50347c._0x55e4ba,_0x357438-0x8,_0x52948d);}const _0x2eefd8=readSseData(_0x3f094b);if(_0x2eefd8[_0xf04981(0x11c,0x1ce,0x1bb,0x142)]===0x0||_0x2eefd8===_0xf04981(0x357,0x297,0x2f0,_0x43834b._0x913fa0))return[];function _0x59fe3e(_0x2addf2,_0x237a85,_0xb5bca,_0x2a16c9){return _0x1b1adc(_0x2addf2-_0x10cf39._0x49d51c,_0xb5bca-0x5a0,_0xb5bca-0x149,_0x237a85);}const _0xd649c3=JSON['parse'](_0x2eefd8);return this['responseId']=_0xd649c3['id']??this['responseId'],this[_0xf04981(_0x43834b._0x5e4e44,0x3f7,0x351,_0x43834b._0x1a71a9)]=_0xd649c3[_0xf04981(0x361,_0x43834b._0x3a74f8,0x351,0x346)]??this['usage'],this['consumeEvent'](_0xd649c3);}[_0x1b1adc(0x53,-0x94,-0x55,-0xf2)](){const _0x1ef0aa={_0x4ea353:0x398,_0x43210e:0x37c,_0xc1831d:0x3c5,_0x2e96ac:0x2cd,_0x3e0590:0x20a,_0x1a6978:0x235,_0x111fbb:0x625,_0x258269:0x59c,_0x506078:0x604,_0xd6e710:0x56c,_0x3b9889:0x366,_0x56042e:0x4a2,_0x88253f:0x541,_0x28d2a4:0x43b,_0x5769b8:0x577,_0x4ae3ed:0x578,_0x473f5f:0x654,_0x2c6617:0x356,_0xac9dc2:0x297,_0x2b0dfd:0x218,_0x5063ba:0x337,_0x5eebd2:0x4bb,_0x36972d:0x48b,_0x349ebb:0x55c,_0xca931c:0x66e},_0x3c5399={_0x416b68:0x40,_0x799d3e:0xbb},_0x25ea65={_0x180716:0x169,_0x271248:0x51f};function _0xbe49e0(_0x3d97d1,_0x158a2e,_0x1574ae,_0x447c68){return _0x1b1adc(_0x3d97d1-_0x25ea65._0x180716,_0x158a2e-_0x25ea65._0x271248,_0x1574ae-0x134,_0x447c68);}function _0x516141(_0x355634,_0x204a42,_0x437300,_0x5a7efc){return _0x1b1adc(_0x355634-_0x3c5399._0x416b68,_0x204a42-0x32e,_0x437300-_0x3c5399._0x799d3e,_0x437300);}this[_0x516141(_0x1ef0aa._0x4ea353,_0x1ef0aa._0x43210e,_0x1ef0aa._0xc1831d,_0x1ef0aa._0x2e96ac)][_0x516141(_0x1ef0aa._0x3e0590,_0x1ef0aa._0x1a6978,0x25d,0x232)]>0x0&&(this['stopReason']=_0xbe49e0(_0x1ef0aa._0x111fbb,_0x1ef0aa._0x258269,_0x1ef0aa._0x506078,_0x1ef0aa._0xd6e710));const _0x5a0c06=isUserVisibleReasoning(this['request'])?this[_0x516141(_0x1ef0aa._0x3b9889,0x407,_0x1ef0aa._0x56042e,0x346)][_0xbe49e0(_0x1ef0aa._0x88253f,0x4bb,_0x1ef0aa._0x28d2a4,_0x1ef0aa._0xd6e710)](''):void 0x0;return{'id':this[_0xbe49e0(0x4f7,0x4d2,_0x1ef0aa._0x5769b8,_0x1ef0aa._0x4ae3ed)]||_0xbe49e0(0x583,0x5e6,_0x1ef0aa._0x473f5f,0x6cf)+Date[_0x516141(_0x1ef0aa._0x2c6617,_0x1ef0aa._0xac9dc2,0x302,_0x1ef0aa._0x2b0dfd)](),'content':createContentBlocks(this[_0x516141(0x244,0x2bc,0x22f,_0x1ef0aa._0x5063ba)][_0xbe49e0(0x523,_0x1ef0aa._0x5eebd2,0x43f,_0x1ef0aa._0x36972d)](''),this[_0xbe49e0(0x4e0,0x56d,0x61e,_0x1ef0aa._0x349ebb)],_0x5a0c06),'stopReason':this['stopReason'],'usage':createUsage(this[_0xbe49e0(_0x1ef0aa._0xca931c,0x5bc,0x60b,0x5a4)])};}[_0x1b1adc(-0x7e,-0x3b,-0xff,0x90)](_0x3b739d){const _0x30d9f9={_0x5d9108:0x485,_0x25689e:0x2e8,_0x359474:0x3d5,_0x354898:0x32f,_0x1a9247:0x420,_0x22b2a2:0x35e,_0x365ab3:0x2b1,_0x45d3fc:0x2f9,_0x1385f8:0x2a7,_0x31b758:0x4ea,_0x31332b:0x4ab,_0x1d1b53:0x479,_0xd955ac:0x354,_0x259b45:0x40a,_0x40e723:0x43d,_0x53a5f6:0x262,_0x379b04:0x2a1,_0x284f42:0x3ba,_0x319fac:0x35f,_0x236879:0x416,_0x530a40:0x35b,_0x5301b9:0x32e,_0x312dcb:0x2a2,_0x4e9e16:0x34c,_0x300616:0x2f8,_0x8817d3:0x25a,_0x24e61e:0x3ed,_0x4f8be9:0x2a2,_0x2b871b:0x4b0,_0x315297:0x3e1,_0x51378e:0x494,_0x27a699:0x332,_0x302645:0x297,_0x5c72bc:0x35a,_0xd4b842:0x299,_0x31aa5f:0x28c,_0x12a802:0x318,_0x36be3b:0x286,_0x2d4552:0x3bc,_0x2541ce:0x1a5,_0x3784b2:0x27d,_0x53a3d7:0x32a,_0x175cee:0x3d3,_0x496e09:0x368,_0xe278d5:0x3da,_0x1d407c:0x417,_0x125310:0x360,_0xe8d91e:0x441,_0x31caff:0x382,_0x29d6aa:0x2e5,_0x22d01c:0x26e,_0x5cd40c:0x3a8,_0x36fc6d:0x42d,_0x571ffb:0x432,_0x25aeea:0x315,_0x1c2d1e:0x2db,_0x32b2b9:0x530,_0x4970b6:0x50c,_0x3aed6f:0x444,_0x34d6bc:0x24e,_0x3bfd3f:0x30d,_0x4c2c08:0x249,_0x242d26:0x2fd,_0x54a74c:0x2e5,_0x21655e:0x3a2,_0x33b1b1:0x287,_0x473bb8:0x1e8,_0x19ba6a:0x4f9,_0x343d12:0x50e,_0x42a395:0x444,_0x2da960:0x371,_0x1fc20b:0x33a,_0x457407:0x37f,_0x4e4b5f:0x389,_0x16234f:0x370,_0x3d57e6:0x384,_0x21ac16:0x326,_0x57ade9:0x324,_0x3c5ab2:0x357,_0x4fa45e:0x316},_0x22fb59={_0xcbf08e:0x2ac,_0x32c3ae:0x104},_0x586408={_0x2bb126:0x15e};function _0x24ff7d(_0x311975,_0x11f4c5,_0x52dcbf,_0x5267f2){return _0x1b1adc(_0x311975-_0x586408._0x2bb126,_0x5267f2-0x3a0,_0x52dcbf-0x177,_0x311975);}const _0x25045a=[];for(const _0x63ea67 of _0x3b739d[_0x24ff7d(_0x30d9f9._0x5d9108,_0x30d9f9._0x25689e,0x4c2,_0x30d9f9._0x359474)]??[]){const _0x3cb94b=_0x63ea67[_0x24ff7d(_0x30d9f9._0x354898,_0x30d9f9._0x1a9247,_0x30d9f9._0x22b2a2,0x34a)],_0x429599=extractChatCompletionReasoningDelta(_0x3cb94b);_0x429599[_0x24ff7d(0x25a,_0x30d9f9._0x365ab3,_0x30d9f9._0x45d3fc,_0x30d9f9._0x1385f8)]>0x0&&(this[_0x24ff7d(0x4ce,_0x30d9f9._0x31b758,_0x30d9f9._0x31332b,_0x30d9f9._0x1d1b53)]['push'](_0x429599),isUserVisibleReasoning(this['request'])&&_0x25045a[_0x2735e5(0x2f3,0x3e1,0x3c6,_0x30d9f9._0xd955ac)]({'type':_0x24ff7d(0x4df,0x40e,0x360,_0x30d9f9._0x259b45),'contentIndex':0x0,'delta':_0x429599,'itemId':(this[_0x24ff7d(0x427,_0x30d9f9._0x40e723,0x2a3,0x353)]||_0x24ff7d(0x208,_0x30d9f9._0x53a5f6,0x205,_0x30d9f9._0x379b04))+_0x2735e5(_0x30d9f9._0x284f42,0x301,0x24b,0x35d),'outputIndex':0x0}));const _0x594074=typeof _0x3cb94b?.['content']===_0x24ff7d(0x29e,_0x30d9f9._0x319fac,_0x30d9f9._0x236879,_0x30d9f9._0x530a40)?_0x3cb94b[_0x24ff7d(0x31f,_0x30d9f9._0x5301b9,_0x30d9f9._0x312dcb,_0x30d9f9._0x4e9e16)]:typeof _0x3cb94b?.['refusal']===_0x2735e5(0x2bf,_0x30d9f9._0x300616,0x377,_0x30d9f9._0x8817d3)?_0x3cb94b[_0x24ff7d(_0x30d9f9._0x24e61e,0x3a0,0x347,0x331)]:'';_0x594074[_0x2735e5(_0x30d9f9._0x4f8be9,0x244,0x238,0x217)]>0x0&&(this['textParts']['push'](_0x594074),_0x25045a[_0x2735e5(_0x30d9f9._0x2b871b,_0x30d9f9._0x315297,_0x30d9f9._0x51378e,_0x30d9f9._0x27a699)]({'type':_0x2735e5(0x382,0x3f9,0x4df,0x373),'index':0x0,'text':_0x594074}));for(const _0x2aa94b of _0x3cb94b?.['tool_calls']??[]){const _0x4bf1ba=_0x2aa94b[_0x24ff7d(0x3ed,_0x30d9f9._0x302645,0x3a2,_0x30d9f9._0x5c72bc)]??0x0;let _0xceea2b=this['toolCallsByIndex']['get'](_0x4bf1ba);!_0xceea2b&&(_0xceea2b={'id':_0x2aa94b['id']??_0x24ff7d(_0x30d9f9._0xd4b842,_0x30d9f9._0x31aa5f,_0x30d9f9._0x12a802,0x2c2)+_0x4bf1ba,'type':_0x2735e5(0x2ed,0x2fd,_0x30d9f9._0x36be3b,_0x30d9f9._0x2d4552),'function':{'name':_0x2aa94b[_0x2735e5(0x24c,0x2fd,0x329,0x32a)]?.['name']??'','arguments':''}},this[_0x2735e5(_0x30d9f9._0x2541ce,_0x30d9f9._0x3784b2,0x1b7,0x307)]['set'](_0x4bf1ba,_0xceea2b),this['toolCallOrder'][_0x2735e5(0x3d3,0x3e1,_0x30d9f9._0x53a3d7,_0x30d9f9._0x175cee)](_0xceea2b));_0x2aa94b['id']&&(_0xceea2b['id']=_0x2aa94b['id']);_0x2aa94b[_0x24ff7d(_0x30d9f9._0x496e09,0x43c,0x40b,0x360)]?.['name']&&(_0xceea2b[_0x24ff7d(_0x30d9f9._0xe278d5,_0x30d9f9._0x1d407c,0x441,_0x30d9f9._0x125310)]['name']=_0x2aa94b['function'][_0x2735e5(0x425,0x3cf,0x46c,_0x30d9f9._0xe8d91e)]);!this[_0x24ff7d(_0x30d9f9._0x284f42,0x388,_0x30d9f9._0x359474,_0x30d9f9._0x31caff)]['has'](_0x4bf1ba)&&_0xceea2b[_0x2735e5(0x337,0x2fd,_0x30d9f9._0x29d6aa,_0x30d9f9._0x22d01c)][_0x24ff7d(_0x30d9f9._0x5cd40c,_0x30d9f9._0x36fc6d,0x405,_0x30d9f9._0x571ffb)][_0x2735e5(0x25b,_0x30d9f9._0x25aeea,0x39d,_0x30d9f9._0x1c2d1e)]()['length']>0x0&&(_0x25045a[_0x24ff7d(_0x30d9f9._0x32b2b9,_0x30d9f9._0x4970b6,0x4b3,_0x30d9f9._0x3aed6f)]({'type':_0x24ff7d(_0x30d9f9._0x34d6bc,0x295,_0x30d9f9._0x3bfd3f,0x32a),'id':_0xceea2b['id'],'index':_0x4bf1ba,'name':_0xceea2b[_0x2735e5(_0x30d9f9._0x4c2c08,_0x30d9f9._0x242d26,0x2ce,0x243)]['name']}),this['toolUseStartEmitted']['add'](_0x4bf1ba));const _0x179f45=_0x2aa94b[_0x24ff7d(0x311,_0x30d9f9._0x54a74c,0x2df,0x360)]?.[_0x2735e5(0x2b4,0x332,_0x30d9f9._0x21655e,0x383)]??'';_0x179f45[_0x24ff7d(0x35c,_0x30d9f9._0x33b1b1,_0x30d9f9._0x473bb8,_0x30d9f9._0x1385f8)]>0x0&&(_0xceea2b['function'][_0x2735e5(0x274,0x332,0x3be,0x364)]+=_0x179f45,_0x25045a[_0x24ff7d(0x406,_0x30d9f9._0x19ba6a,_0x30d9f9._0x343d12,_0x30d9f9._0x42a395)]({'type':_0x24ff7d(_0x30d9f9._0x2da960,_0x30d9f9._0x1fc20b,_0x30d9f9._0x457407,_0x30d9f9._0x53a3d7),'id':_0xceea2b['id'],'index':_0x4bf1ba,'inputDelta':_0x179f45}));}_0x63ea67[_0x2735e5(0x2e0,_0x30d9f9._0x4e4b5f,_0x30d9f9._0x1385f8,_0x30d9f9._0x16234f)]===_0x2735e5(0x361,0x2c9,_0x30d9f9._0x3d57e6,_0x30d9f9._0x21ac16)&&(this[_0x24ff7d(0x306,_0x30d9f9._0x57ade9,_0x30d9f9._0x3c5ab2,_0x30d9f9._0x4fa45e)]='tool_use');}function _0x2735e5(_0x147f57,_0x239a07,_0x5ed837,_0x5ded1b){return _0x1b98ce(_0x147f57,_0x239a07- -_0x22fb59._0xcbf08e,_0x5ed837-0x134,_0x5ded1b-_0x22fb59._0x32c3ae);}return _0x25045a;}},OpenAiResponsesStreamParser=class{[_0x1b98ce(0x524,0x556,0x63e,0x595)]=new Map();[_0x1b1adc(-0x9a,-0x53,-0x71,-0x11)];[_0x1b1adc(-0x4,-0x1c,0x75,0xe)]=new Map();[_0x1b98ce(0x509,0x5a8,0x654,0x556)]=new Map();[_0x1b1adc(-0x16b,-0xc3,-0x169,-0x15a)]=new Map();['request'];[_0x1b1adc(0x45,0xc2,0x10d,0xde)]=new Map();[_0x1b98ce(0x561,0x543,0x52f,0x4d5)]=new Map();constructor(_0x41b9ae){const _0x35248a={_0x36dccf:0x18e,_0x1924f2:0xeb,_0x4a4fc8:0x191},_0x57f9e8={_0x5b1e7d:0xc7,_0x2bbc0d:0xab};function _0x346435(_0x48e0ed,_0x1802d9,_0x40dd40,_0x1e5323){return _0x1b98ce(_0x40dd40,_0x1802d9- -0x5d9,_0x40dd40-_0x57f9e8._0x5b1e7d,_0x1e5323-_0x57f9e8._0x2bbc0d);}this[_0x346435(-_0x35248a._0x36dccf,-_0x35248a._0x1924f2,-0x59,-_0x35248a._0x4a4fc8)]=_0x41b9ae;}[_0x1b1adc(0x7a,-0x39,-0x108,-0x19)](_0x33b84d){const _0x4fedfa={_0x32b154:0x9c,_0xd9ea4c:0x24d,_0x32a98d:0x2da,_0x510109:0x21f,_0x1d8e28:0xe4,_0x128a34:0x2c,_0x12e039:0x105,_0x2624ea:0x260,_0x169b96:0x2aa,_0x15617e:0x232,_0x4c4a65:0x271,_0x2f1cd7:0x18b,_0x39b4db:0x1ed,_0xc97988:0x254,_0x2da33a:0x1c9,_0x5958bc:0x1bf,_0x5036dc:0x201,_0x2c8abb:0x181,_0x2c9908:0xea,_0x3e1693:0x2a2,_0x119a2a:0x134,_0x47041a:0x1d8},_0x3bf1f1={_0x3c15b3:0x4bc,_0xd142cc:0x115,_0x5943ff:0x2c},_0x4b1cc6={_0x161be2:0x331,_0x598c99:0x2e,_0x687125:0x98},_0x32f62d=_0x33b84d[_0x4a9e08(0x108,0xed,0x14e,_0x4fedfa._0x32b154)]('\x0a');function _0x1cf678(_0x2a0c28,_0x52fda4,_0x125e25,_0x2c2070){return _0x1b98ce(_0x2a0c28,_0x125e25- -_0x4b1cc6._0x161be2,_0x125e25-_0x4b1cc6._0x598c99,_0x2c2070-_0x4b1cc6._0x687125);}const _0x19b032=_0x32f62d[_0x1cf678(0x24f,_0x4fedfa._0xd9ea4c,_0x4fedfa._0x32a98d,_0x4fedfa._0x510109)](_0x1e577a=>_0x1e577a[_0x4a9e08(0x21c,0x238,0x241,0x1c5)](_0x4a9e08(0x63,0x1ce,0x13c,0x133)))?.['slice'](0x6)[_0x4a9e08(0x59,_0x4fedfa._0x1d8e28,_0x4fedfa._0x128a34,_0x4fedfa._0x12e039)](),_0x3502ad=_0x32f62d[_0x1cf678(_0x4fedfa._0x2624ea,_0x4fedfa._0x169b96,_0x4fedfa._0x15617e,0x264)](_0x312c71=>_0x312c71['startsWith'](_0x4a9e08(0x11c,0x179,0x115,0x1fb)))[_0x4a9e08(_0x4fedfa._0x4c4a65,0x160,0x1ea,_0x4fedfa._0x2f1cd7)](_0x20d036=>_0x20d036[_0x4a9e08(0x143,0x10d,0x1c2,0xdc)](0x5)[_0x1cf678(0x395,0x27b,0x33e,0x264)]())[_0x1cf678(_0x4fedfa._0x39b4db,0x295,_0x4fedfa._0xc97988,0x280)]('\x0a')[_0x4a9e08(_0x4fedfa._0x2da33a,0xb7,0x1a6,0x105)]();function _0x4a9e08(_0xa0477b,_0x30051c,_0xf88ded,_0x34f922){return _0x1b98ce(_0xa0477b,_0x34f922- -_0x3bf1f1._0x3c15b3,_0xf88ded-_0x3bf1f1._0xd142cc,_0x34f922-_0x3bf1f1._0x5943ff);}if(_0x3502ad[_0x1cf678(0x1d6,0x1db,_0x4fedfa._0x5958bc,0xd2)]===0x0||_0x3502ad===_0x4a9e08(0x1ae,_0x4fedfa._0x5036dc,0xe4,0x169))return[];const _0x4d3f16=JSON['parse'](_0x3502ad);return this[_0x4a9e08(_0x4fedfa._0x2c8abb,_0x4fedfa._0x2c9908,0x149,0xf2)](_0x19b032??String(_0x4d3f16[_0x4a9e08(_0x4fedfa._0x3e1693,0x2c1,_0x4fedfa._0x119a2a,_0x4fedfa._0x47041a)]??''),_0x4d3f16);}[_0x1b1adc(0x7d,-0x4c,0x84,-0x41)](_0x3b81b8){const _0x5b940b={_0x6832a3:0x1a1,_0x1b6932:0x8},_0x101d4d={_0x49a57d:0x81},_0x1269c3={_0x58448f:0xc0,_0x35f307:0x2e};function _0x1bd493(_0x147462,_0x2bbe4d,_0x140737,_0x2e21e4){return _0x1b98ce(_0x2bbe4d,_0x2e21e4- -0x399,_0x140737-_0x1269c3._0x58448f,_0x2e21e4-_0x1269c3._0x35f307);}function _0x1b63c1(_0x57a7b8,_0x13b34a,_0x381ff7,_0x2e2c6f){return _0x1b98ce(_0x381ff7,_0x2e2c6f- -0x59e,_0x381ff7-_0x101d4d._0x49a57d,_0x2e2c6f-0xf1);}return this[_0x1bd493(_0x5b940b._0x6832a3,0x27a,0x2b2,0x215)](String(_0x3b81b8[_0x1b63c1(_0x5b940b._0x1b6932,0x87,0x14f,0xf6)]??''),_0x3b81b8);}[_0x1b98ce(0x59c,0x555,0x466,0x531)](){const _0x4d3942={_0x394b04:0x34,_0x7715ab:0x186,_0x43eda8:0x402,_0x3c25f7:0x335,_0x423122:0x3b6,_0x4d70b:0x39e,_0x187ad2:0x1ac,_0x3f4442:0x38e,_0x2b38aa:0x3dc},_0x2a1c6e={_0x5dedbb:0x21d,_0x572b87:0x1a2,_0x4c1851:0x6};function _0x5f2273(_0x1ab5fd,_0x398825,_0x6536fd,_0x5d534d){return _0x1b98ce(_0x1ab5fd,_0x398825- -_0x2a1c6e._0x5dedbb,_0x6536fd-_0x2a1c6e._0x572b87,_0x5d534d-_0x2a1c6e._0x4c1851);}const _0x100444=this[_0x3aea7b(0xb4,-_0x4d3942._0x394b04,0x72,_0x4d3942._0x7715ab)]??{'id':'resp-'+Date[_0x5f2273(_0x4d3942._0x43eda8,_0x4d3942._0x3c25f7,_0x4d3942._0x423122,_0x4d3942._0x4d70b)](),'object':_0x3aea7b(0x12c,0xd5,0x158,_0x4d3942._0x187ad2),'status':'completed','output':this[_0x5f2273(0x2c6,_0x4d3942._0x3f4442,_0x4d3942._0x2b38aa,0x363)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x3aea7b(_0x35fd97,_0x44b77a,_0x49833c,_0x872755){return _0x1b98ce(_0x49833c,_0x35fd97- -0x4e2,_0x49833c-0x80,_0x872755-0x72);}return parseResponsesResponse(_0x100444,this['request']);}[_0x1b1adc(0xb4,0x3e,0x16,0x6f)](){return this['finalResponse']!==void 0x0;}[_0x1b98ce(0x55b,0x5ae,0x580,0x63d)](_0x2a0ffc,_0x1a2825){const _0x40849c={_0x132db3:0x43d,_0x31c7be:0x3d0,_0x404693:0x334,_0x2a2cd9:0x3a4,_0xe39899:0xd8,_0x5d6be1:0x11d,_0x3ac144:0x79,_0x236eac:0x371,_0x448442:0x1f0,_0x3b8960:0x1b9,_0x36ec7a:0x1f6,_0x442fc3:0x2b9,_0x58a97b:0x267,_0x154989:0x49a,_0x3e37ac:0x54b,_0x430201:0x54d,_0x1eaa43:0x1ea,_0x5b7ea8:0x34f,_0x37a2fb:0x12a,_0x5a16da:0xb8,_0x28fae9:0x21,_0x26049a:0xa,_0xa1d65a:0x24e,_0x11c0d5:0x228,_0xe60dba:0x155,_0x1bb019:0x409,_0x240d98:0x441,_0x54c160:0x420,_0x143e3a:0xb2,_0x1bdd67:0x132,_0x411d37:0x204,_0x21c3de:0x1ce,_0x1dc13d:0x27b,_0x4c8e6d:0x2d4,_0xdeaaba:0x4e9,_0x4d359c:0x487,_0x1415e5:0x40e,_0x171925:0x4b2,_0x194692:0x1e,_0x2a5138:0xdd,_0x1d8d7:0x141,_0x5cc91f:0x240,_0x1cbea2:0x546,_0x3fa4ec:0x4f4,_0x2a145c:0x557,_0x22bda4:0x65,_0x1d474c:0xb8,_0x5786ce:0x14f,_0x3b5bb4:0x472,_0x26fd0e:0x329,_0x54f0c7:0x112,_0x9c73aa:0x120,_0x4d289b:0x100,_0x3b1f2f:0xcc,_0x177a42:0x43e,_0x28ea40:0x176,_0x273acc:0xb7,_0x20a24c:0x17b,_0x122a11:0x2cf,_0x44e974:0x273,_0x3c7eaa:0x1c8,_0x28aebe:0x40d,_0x3e7a7d:0x383,_0x4224f3:0x3c7,_0x556284:0x38a,_0xa1f917:0x351,_0x45b839:0x4d6,_0x5dbcd0:0x160,_0x48e581:0x222,_0x3f67b8:0x1a1,_0x1a48f9:0xc3,_0x5ae32d:0x12d,_0x1773fc:0xd8,_0x1fe420:0x31,_0x2e4a9d:0x498,_0x4e9f6d:0x463,_0x4e0d05:0x58d,_0x1b05bb:0x424,_0x1e035f:0x465,_0x396d43:0x4ec,_0x22cf6e:0x3ad,_0x4cf659:0x4c2,_0xace20f:0x46b,_0x20459b:0x40e,_0x44ee47:0x34e,_0x29b627:0x42d,_0x3be9dc:0x4f7,_0x1785a4:0x39e,_0xdbfe60:0x289,_0x4fb466:0x19a,_0x2ce769:0x201,_0x34ed1a:0x22f,_0x24c8d5:0x350,_0x3eef28:0x143,_0x3b1b78:0xfb,_0x8ba99e:0x1e8,_0x2e41a8:0x140,_0xee52ff:0x473,_0x4b262b:0x398,_0xe9f4c0:0x5a3,_0x3d0e28:0x3ed,_0x3e98f2:0x424,_0x21267e:0x1a6,_0x44b190:0x193,_0x43fc14:0x61,_0xdbdb7a:0x1e6,_0x4f9ca9:0x515,_0x43362b:0x7,_0x4bcd9b:0x191,_0x4a046c:0x489,_0x44d417:0x9f,_0x3ca84e:0xf8,_0x15c164:0xff,_0x294e1f:0x502,_0x22926e:0x1a0,_0x5519da:0x160,_0x491ce9:0x474,_0x31d2d7:0x41c,_0x52cba8:0x4df,_0x59419b:0xdd,_0x25d337:0x19a,_0x298322:0x162,_0xe1300f:0x387,_0x3a3fee:0x3ab,_0xcae78c:0x12c,_0x4f5a9c:0x1dc,_0x15cb07:0x3e,_0x420cff:0x3,_0x452029:0x594,_0x5ac722:0x1f7,_0x7496b3:0x200,_0x373210:0x248,_0x2b8229:0x4bd,_0x18d357:0x40f,_0x129e9a:0x363,_0x21bbd2:0x47f,_0x5889a8:0x539,_0xe374af:0x471,_0x3a2d33:0x17a,_0x1f47fc:0x1c0,_0x46bdc0:0x494,_0xec1179:0x53a,_0x49a35e:0x4ae,_0x31b831:0x3dc,_0x282cf6:0x421,_0x82e3b:0x4a9,_0x2ec67a:0x469,_0x5bc23d:0x4a9,_0x2db983:0x566,_0x497af8:0x203,_0x47fcb6:0x2f1,_0x44f320:0x134,_0x361365:0x179,_0x1cfe4b:0x455,_0x571f7f:0x4c5,_0x2d0e16:0x46f,_0x4738f9:0x4ea,_0x412a77:0xfe,_0xefd372:0x10a,_0x41bc96:0x1aa,_0x5ea240:0x34a,_0x13ba3c:0x250,_0x192baa:0x19d,_0x34c18c:0x243,_0x4df627:0x166,_0x551e88:0x20,_0x46f042:0x54,_0xdcaa97:0x4c8,_0x26a1e2:0x514,_0x36d91c:0x14c,_0x5387d1:0x160,_0x232e13:0x24e,_0x4e10e0:0x20c,_0x31e31:0x24d,_0x24aca7:0x1af,_0x57ac07:0x27,_0x25b83c:0x232,_0x26d439:0x23c,_0x255535:0x15e,_0x411a20:0x149,_0x2117c8:0x48d,_0x41fd7b:0x3ba,_0x5b7238:0x44f,_0x5dae81:0x3d3,_0x897049:0x115,_0x297806:0x9d,_0x5b7e3a:0xf2,_0x34c30e:0x442,_0x184060:0x360,_0x5893f8:0x13f,_0x1eed5a:0x164,_0x1c3885:0xbc,_0x3e7812:0x13e,_0x16870b:0xd8,_0x293179:0x2e8,_0x5497b2:0x26a,_0x4ba2f0:0x301,_0xf26814:0x133,_0x5c53ae:0xd8,_0x18d631:0x1c3,_0x404951:0x4c7,_0xad94c3:0x579,_0x26407b:0x645,_0x20e59d:0x48,_0x535e43:0xac,_0x17fd8d:0x35,_0x266b34:0xbb,_0xc2871f:0x16e,_0x71464a:0xc0,_0x23eb08:0x173,_0x48919f:0x16b,_0x3c5555:0x54e,_0x35ba80:0x2f7,_0x1a9026:0x3d1,_0x12d915:0x212,_0x46890e:0x45a,_0x40ed46:0x36d,_0xd430b2:0x38a,_0x3fe81f:0x123,_0x1333ee:0x181,_0x413b0f:0x164,_0x3dd54f:0x9c,_0x5640b4:0xd4,_0x36c17b:0x7d,_0x591ba7:0x51f,_0xd1f6:0x30e,_0xc08cec:0x511,_0x13bab4:0x420,_0x519630:0x26a,_0x44a171:0x1f4,_0x563c7e:0x5f,_0x2fb19e:0x10b,_0x559671:0x87,_0x45aca0:0x265,_0x56fe25:0x1f8,_0x4bd044:0x53f,_0x589426:0x189,_0x5c02ab:0xa5,_0x5b30db:0x301,_0x2979e5:0x2f8,_0xd6ea0c:0x340,_0x96d1d8:0x46f,_0x3e0727:0x55f,_0x585317:0x3e7,_0x4c9872:0x124,_0x4db039:0x1e8,_0x395c67:0x4a8,_0x6588f1:0x441,_0x31e7e9:0x48a,_0x2b315a:0x3e2,_0x589c95:0x3c3,_0x47da75:0x4a3,_0x3060f2:0x11e,_0x4576d2:0x445,_0x330b0e:0x467,_0xcd98d5:0x3bb,_0x405fde:0x8,_0x224e87:0xcf,_0x360548:0x5bc,_0xc8d3b5:0x55c,_0xcce2d0:0x4ab,_0x550611:0x5f6,_0x47c48d:0x4f7,_0x453846:0x485,_0x43dec3:0x302,_0x2abfcf:0x435,_0x4679a8:0x51e,_0x56d9fc:0x43b,_0x2ce2d0:0x50f,_0x313bba:0x85,_0x42a56a:0x9e,_0xe741dc:0x11d,_0x1e07d4:0x160,_0xef4fe3:0x1fc,_0x1df165:0x3f9,_0x1bfa93:0x2f9,_0x3fdf4f:0x3c6,_0x537ced:0x10e,_0x34b399:0x229,_0x4ab922:0x185,_0x104723:0x25d,_0x577f15:0x15b,_0x5db929:0x160,_0x2e868f:0x182,_0x42a374:0x80,_0x3ee83d:0x514,_0x1c14a8:0x4fc,_0x1573b4:0x129,_0x19765c:0x183,_0x35daf6:0x462,_0x2a1578:0x39f,_0x4c6ec2:0x461,_0x12989b:0x4e8,_0x3cf974:0x170,_0x8440f:0x1b2,_0x42bf9a:0x193,_0x20d37a:0x168,_0x336b3a:0x2b5,_0x43077e:0x148,_0x38351e:0xe0,_0x399f89:0x4be,_0x433f2d:0x26d,_0x3aaa8e:0x20a,_0x3ac615:0x26d,_0x152d14:0x282,_0x2e576a:0x20c,_0x3e3c0c:0x151,_0x346cbc:0x183,_0x53ccbd:0x1ad,_0x1a2dc7:0xe5,_0x2f2ea8:0xc2,_0x23bd33:0x28d,_0x210172:0x211,_0x4d4c51:0x2ae,_0x50d602:0x2d2,_0x166e8b:0x387,_0x527a88:0x21f,_0x4bcd89:0x8b},_0x119927={_0x2fa7f8:0x1c8},_0x3bca95={_0x55988f:0x1a0,_0x1e9e9f:0x1a5,_0x3223cd:0x82};function _0x2b52b0(_0x5cfae4,_0x63449e,_0x5d0816,_0x26e682){return _0x1b1adc(_0x5cfae4-_0x3bca95._0x55988f,_0x63449e-_0x3bca95._0x1e9e9f,_0x5d0816-_0x3bca95._0x3223cd,_0x5cfae4);}switch(_0x2a0ffc){case _0x5d423f(_0x40849c._0x132db3,_0x40849c._0x31c7be,_0x40849c._0x404693,0x3f5):{const _0x459220=typeof _0x1a2825[_0x5d423f(0x3bc,0x441,_0x40849c._0x2a2cd9,0x3b9)]===_0x2b52b0(0x1c3,_0x40849c._0xe39899,_0x40849c._0x5d6be1,_0x40849c._0x3ac144)?_0x1a2825[_0x5d423f(0x44e,0x441,_0x40849c._0x236eac,0x431)]:0x0,_0xdee5ec=typeof _0x1a2825['delta']==='string'?_0x1a2825[_0x2b52b0(_0x40849c._0x448442,0x14f,_0x40849c._0x3b8960,_0x40849c._0x36ec7a)]:'';if(_0xdee5ec[_0x2b52b0(0x16,0xac,0xe3,0x198)]>0x0){const _0x353b16=this[_0x2b52b0(_0x40849c._0x442fc3,_0x40849c._0x58a97b,0x210,0x1fa)]['get'](_0x459220)??[];return _0x353b16[_0x5d423f(_0x40849c._0x154989,0x558,_0x40849c._0x3e37ac,_0x40849c._0x430201)](_0xdee5ec),this[_0x2b52b0(_0x40849c._0x1eaa43,0x267,_0x40849c._0x5b7ea8,0x357)][_0x2b52b0(_0x40849c._0x37a2fb,_0x40849c._0x5a16da,_0x40849c._0x28fae9,_0x40849c._0x26049a)](_0x459220,_0x353b16),[{'type':'content_delta','index':_0x459220,'text':_0xdee5ec}];}break;}case _0x2b52b0(_0x40849c._0xa1d65a,0x1af,_0x40849c._0x11c0d5,_0x40849c._0xe60dba):{const _0x293f9f=typeof _0x1a2825[_0x5d423f(_0x40849c._0x1bb019,_0x40849c._0x240d98,0x3af,_0x40849c._0x54c160)]===_0x2b52b0(0x1c2,0xd8,0x143,_0x40849c._0x143e3a)?_0x1a2825[_0x2b52b0(0x1ba,_0x40849c._0x1bdd67,_0x40849c._0x411d37,0x9e)]:void 0x0,_0x304183=_0x1a2825[_0x2b52b0(0x23a,_0x40849c._0x21c3de,0x18b,_0x40849c._0x1dc13d)];if(_0x304183?.['type']===_0x2b52b0(_0x40849c._0x4c8e6d,0x200,0x162,0x1c2)&&_0x304183[_0x5d423f(0x3fe,0x40f,0x462,_0x40849c._0xdeaaba)]&&_0x304183['name'])return this[_0x5d423f(_0x40849c._0x4d359c,_0x40849c._0x1415e5,_0x40849c._0x171925,0x48a)][_0x2b52b0(_0x40849c._0x194692,0xb8,_0x40849c._0x2a5138,0x7d)](_0x304183['call_id'],{'id':_0x304183[_0x5d423f(0x471,0x40f,0x397,0x40e)],'type':_0x2b52b0(_0x40849c._0x1d8d7,0x165,0x1a8,_0x40849c._0x5cc91f),'function':{'name':_0x304183[_0x5d423f(0x56d,_0x40849c._0x1cbea2,_0x40849c._0x3fa4ec,0x4b3)],'arguments':''}}),_0x293f9f!==void 0x0&&(this[_0x5d423f(0x3e7,0x498,0x481,_0x40849c._0x2a145c)][_0x2b52b0(_0x40849c._0x22bda4,_0x40849c._0x1d474c,0xff,_0x40849c._0x5786ce)](_0x293f9f,_0x304183[_0x5d423f(_0x40849c._0x3b5bb4,0x40f,0x4dc,_0x40849c._0x26fd0e)]),this[_0x2b52b0(0xf6,_0x40849c._0x54f0c7,0x1e3,0x25)]['set'](_0x304183[_0x2b52b0(_0x40849c._0x9c73aa,_0x40849c._0x4d289b,0x81,_0x40849c._0x3b1f2f)],_0x293f9f)),[{'type':_0x5d423f(0x431,_0x40849c._0x177a42,0x377,0x50d),'id':_0x304183[_0x2b52b0(_0x40849c._0x28ea40,0x100,_0x40849c._0x273acc,_0x40849c._0x20a24c)],'index':_0x293f9f??0x0,'name':_0x304183[_0x2b52b0(_0x40849c._0x122a11,0x237,_0x40849c._0x44e974,_0x40849c._0x3c7eaa)]}];if(_0x304183?.['type']==='reasoning'&&_0x304183['id']){const _0x1781df=this[_0x5d423f(0x32d,0x3de,_0x40849c._0x28aebe,_0x40849c._0x3e7a7d)](_0x304183['id'],_0x293f9f);_0x293f9f!==void 0x0&&this[_0x5d423f(0x3e5,0x473,0x508,0x4f6)][_0x5d423f(0x330,_0x40849c._0x4224f3,_0x40849c._0x556284,0x3e6)](_0x293f9f,_0x1781df['id']);}break;}case'response.function_call_arguments.delta':{const _0x519eed=typeof _0x1a2825[_0x5d423f(_0x40849c._0xa1f917,0x40f,_0x40849c._0x45b839,0x46c)]===_0x2b52b0(0x1ea,_0x40849c._0x5dbcd0,0x108,_0x40849c._0x48e581)?_0x1a2825[_0x2b52b0(_0x40849c._0x3f67b8,_0x40849c._0x4d289b,_0x40849c._0x1a48f9,0x120)]:typeof _0x1a2825[_0x2b52b0(0x116,0x132,0xcf,_0x40849c._0x5ae32d)]===_0x2b52b0(0x8f,_0x40849c._0x1773fc,0x1d,_0x40849c._0x1fe420)?this[_0x5d423f(0x43b,_0x40849c._0x2e4a9d,0x568,_0x40849c._0x4e9f6d)][_0x5d423f(0x51d,0x4f7,_0x40849c._0x4e0d05,0x464)](_0x1a2825['output_index']):void 0x0,_0x5805e8=typeof _0x1a2825[_0x5d423f(0x431,0x45e,_0x40849c._0x1b05bb,_0x40849c._0x1e035f)]===_0x2b52b0(0xf7,0x160,0x241,0xae)?_0x1a2825[_0x5d423f(_0x40849c._0x396d43,0x45e,_0x40849c._0x22cf6e,_0x40849c._0x4cf659)]:'',_0x2b8379=_0x519eed?this[_0x5d423f(_0x40849c._0xace20f,_0x40849c._0x20459b,0x36e,_0x40849c._0x44ee47)][_0x5d423f(_0x40849c._0x29b627,_0x40849c._0x3be9dc,0x4d7,0x59b)](_0x519eed):void 0x0;if(_0x2b8379&&_0x5805e8[_0x2b52b0(0x22,0xac,0xfc,0x174)]>0x0)return _0x2b8379[_0x5d423f(_0x40849c._0x1785a4,0x474,0x527,0x3e1)][_0x2b52b0(_0x40849c._0xdbfe60,_0x40849c._0x4fb466,_0x40849c._0x2ce769,_0x40849c._0x34ed1a)]+=_0x5805e8,[{'type':_0x5d423f(0x4a2,_0x40849c._0x177a42,_0x40849c._0x24c8d5,0x49f),'id':_0x2b8379['id'],'index':this[_0x2b52b0(_0x40849c._0x3eef28,_0x40849c._0x54f0c7,_0x40849c._0x3b1b78,0xce)][_0x2b52b0(0x2b6,_0x40849c._0x8ba99e,_0x40849c._0x2e41a8,_0x40849c._0x9c73aa)](_0x2b8379['id'])??(typeof _0x1a2825['output_index']===_0x5d423f(_0x40849c._0xee52ff,0x3e7,_0x40849c._0x4b262b,0x4d1)?_0x1a2825['output_index']:0x0),'inputDelta':_0x5805e8}];break;}case _0x5d423f(_0x40849c._0xe9f4c0,0x4c2,_0x40849c._0x3d0e28,_0x40849c._0x3e98f2):{const _0x138755=typeof _0x1a2825[_0x2b52b0(0x6f,_0x40849c._0x4d289b,_0x40849c._0x21267e,_0x40849c._0x44b190)]==='string'?_0x1a2825[_0x2b52b0(0xb8,0x100,_0x40849c._0x43fc14,_0x40849c._0xdbdb7a)]:typeof _0x1a2825[_0x5d423f(_0x40849c._0x4f9ca9,_0x40849c._0x240d98,0x524,0x3de)]===_0x2b52b0(_0x40849c._0x43362b,_0x40849c._0x1773fc,0x1a7,_0x40849c._0x4bcd9b)?this[_0x2b52b0(0x121,0x189,0x99,0x1e5)][_0x5d423f(_0x40849c._0x4a046c,0x4f7,0x580,0x5e7)](_0x1a2825[_0x2b52b0(_0x40849c._0x44d417,0x132,0xfc,0x141)]):void 0x0,_0x3c176c=_0x138755?this[_0x2b52b0(_0x40849c._0x3ca84e,_0x40849c._0x15c164,0x14a,0x118)][_0x5d423f(_0x40849c._0x294e1f,0x4f7,0x5d5,0x46a)](_0x138755):void 0x0;_0x3c176c&&typeof _0x1a2825['arguments']===_0x2b52b0(_0x40849c._0x22926e,_0x40849c._0x5519da,0x228,0x16a)&&(_0x3c176c[_0x5d423f(0x54d,_0x40849c._0x491ce9,_0x40849c._0x31d2d7,_0x40849c._0x52cba8)][_0x2b52b0(_0x40849c._0x59419b,_0x40849c._0x25d337,_0x40849c._0x298322,0x12b)]=_0x1a2825[_0x2b52b0(0x155,_0x40849c._0x25d337,0xda,0x11d)]);break;}case _0x5d423f(0x42c,0x41c,_0x40849c._0xe1300f,_0x40849c._0x3a3fee):{const _0x2fd1b1=typeof _0x1a2825[_0x2b52b0(_0x40849c._0xcae78c,0x132,0xd8,_0x40849c._0x4f5a9c)]===_0x2b52b0(0x1aa,0xd8,_0x40849c._0x15cb07,_0x40849c._0x420cff)?_0x1a2825['output_index']:void 0x0,_0x4393b4=_0x1a2825[_0x5d423f(0x4f9,0x4dd,0x49e,_0x40849c._0x452029)];if(_0x4393b4?.['type']===_0x2b52b0(_0x40849c._0x5ac722,_0x40849c._0x7496b3,0x20b,_0x40849c._0x373210)){const _0x1cc0a5=_0x4393b4[_0x5d423f(_0x40849c._0x2b8229,_0x40849c._0x18d357,_0x40849c._0x129e9a,_0x40849c._0x21bbd2)]??(_0x2fd1b1!==void 0x0?this[_0x5d423f(0x3cc,_0x40849c._0x2e4a9d,_0x40849c._0x5889a8,0x4e3)][_0x5d423f(0x579,0x4f7,_0x40849c._0xe374af,0x516)](_0x2fd1b1):void 0x0),_0xc98f6f=_0x1cc0a5?this[_0x2b52b0(_0x40849c._0x3a2d33,0xff,_0x40849c._0x1f47fc,0x102)][_0x5d423f(0x479,0x4f7,0x59b,_0x40849c._0x46bdc0)](_0x1cc0a5):void 0x0;_0xc98f6f&&typeof _0x4393b4[_0x5d423f(_0x40849c._0xec1179,0x4a9,_0x40849c._0x49a35e,0x4c0)]===_0x5d423f(_0x40849c._0x31b831,0x46f,0x542,0x4aa)&&(_0xc98f6f['function'][_0x5d423f(_0x40849c._0x282cf6,_0x40849c._0x82e3b,0x49f,0x52e)]=_0x4393b4[_0x5d423f(_0x40849c._0x2ec67a,_0x40849c._0x5bc23d,_0x40849c._0x2db983,0x597)]);break;}if(_0x4393b4?.[_0x2b52b0(_0x40849c._0x497af8,0x250,0x2b6,_0x40849c._0x47fcb6)]===_0x2b52b0(0x105,_0x40849c._0x44f320,_0x40849c._0x361365,0x196)&&_0x4393b4['id']){const _0xd0cca2=this[_0x5d423f(0x4b4,0x3de,0x432,_0x40849c._0x1cfe4b)](_0x4393b4['id'],_0x2fd1b1);typeof _0x4393b4[_0x5d423f(0x362,0x3db,_0x40849c._0x571f7f,0x391)]===_0x5d423f(0x3d2,_0x40849c._0x2d0e16,_0x40849c._0x4738f9,0x4af)&&(_0xd0cca2['encryptedContent']=_0x4393b4['encrypted_content']);if(Array['isArray'](_0x4393b4[_0x2b52b0(0xa7,_0x40849c._0x412a77,_0x40849c._0xefd372,_0x40849c._0x41bc96)]))for(let _0x48410d=0x0;_0x48410d<_0x4393b4[_0x2b52b0(0x1e0,0xfe,0xad,_0x40849c._0xcae78c)][_0x5d423f(0x35a,0x3bb,_0x40849c._0x5ea240,0x44d)];_0x48410d+=0x1){const _0x4614b5=_0x4393b4['summary'][_0x48410d];_0x4614b5[_0x2b52b0(0x191,_0x40849c._0x13ba3c,_0x40849c._0x192baa,0x291)]===_0x2b52b0(0x2b7,_0x40849c._0x34c18c,_0x40849c._0x4df627,0x1be)&&typeof _0x4614b5['text']===_0x2b52b0(0x101,0x160,0x136,0x153)&&_0xd0cca2['summaryByIndex'][_0x2b52b0(_0x40849c._0x551e88,0xb8,_0x40849c._0x46f042,_0x40849c._0x1773fc)](_0x48410d,_0x4614b5[_0x5d423f(0x43b,0x514,_0x40849c._0xdcaa97,0x515)]);}typeof _0x4393b4[_0x5d423f(0x530,_0x40849c._0x26a1e2,0x510,0x522)]===_0x2b52b0(_0x40849c._0x36d91c,_0x40849c._0x5387d1,_0x40849c._0x232e13,_0x40849c._0x4e10e0)&&_0xd0cca2[_0x2b52b0(0x1f5,_0x40849c._0x31e31,_0x40849c._0x24aca7,0x1c8)][_0x2b52b0(0x65,_0x40849c._0x5a16da,0x14d,-_0x40849c._0x57ac07)](0x0,_0x4393b4[_0x2b52b0(0x272,0x205,0x170,_0x40849c._0x25b83c)]);}break;}case _0x2b52b0(_0x40849c._0x26d439,_0x40849c._0x255535,0xfb,_0x40849c._0x411a20):{const _0x51ff73=typeof _0x1a2825['delta']===_0x5d423f(0x51e,0x46f,_0x40849c._0x2117c8,_0x40849c._0x41fd7b)?_0x1a2825[_0x5d423f(_0x40849c._0x5b7238,0x45e,0x4c2,0x490)]:'',_0x166f9e=typeof _0x1a2825['item_id']==='string'?_0x1a2825[_0x5d423f(0x475,0x3d1,0x38b,_0x40849c._0x5dae81)]:typeof _0x1a2825[_0x2b52b0(_0x40849c._0x897049,_0x40849c._0x1bdd67,_0x40849c._0x297806,_0x40849c._0x5b7e3a)]===_0x5d423f(0x41c,0x3e7,_0x40849c._0x34c30e,_0x40849c._0x184060)?this[_0x2b52b0(_0x40849c._0x5893f8,_0x40849c._0x1eed5a,_0x40849c._0x1c3885,_0x40849c._0x3e7812)][_0x2b52b0(0x127,0x1e8,0x2a2,0x114)](_0x1a2825[_0x2b52b0(0xf2,0x132,0x19b,0x53)]):void 0x0,_0x4d55e3=typeof _0x1a2825[_0x2b52b0(_0x40849c._0x5ae32d,_0x40849c._0x1bdd67,0xc4,0x1e5)]===_0x2b52b0(0x32,_0x40849c._0x16870b,0x1c7,0x194)?_0x1a2825['output_index']:0x0,_0x275b10=typeof _0x1a2825[_0x2b52b0(_0x40849c._0x293179,_0x40849c._0x5497b2,_0x40849c._0x4ba2f0,0x357)]===_0x2b52b0(_0x40849c._0xf26814,_0x40849c._0x5c53ae,_0x40849c._0x18d631,0x18a)?_0x1a2825[_0x5d423f(_0x40849c._0x404951,_0x40849c._0xad94c3,_0x40849c._0x26407b,0x4d8)]:0x0;if(_0x166f9e&&_0x51ff73[_0x2b52b0(_0x40849c._0x20e59d,_0x40849c._0x535e43,-_0x40849c._0x17fd8d,0x7e)]>0x0){const _0x4a86cc=this['getOrCreateReasoningItem'](_0x166f9e,_0x4d55e3);_0x4a86cc[_0x2b52b0(0x7b,0xa5,_0x40849c._0x266b34,0x30)]['set'](_0x275b10,''+(_0x4a86cc['summaryByIndex'][_0x2b52b0(_0x40849c._0xc2871f,0x1e8,0x237,0x122)](_0x275b10)??'')+_0x51ff73);if(isUserVisibleReasoning(this[_0x2b52b0(_0x40849c._0x71464a,0xaa,0x157,_0x40849c._0x23eb08)]))return[{'type':_0x2b52b0(0x1c8,0x1cf,_0x40849c._0x48919f,0x105),'delta':_0x51ff73,'itemId':_0x166f9e,'outputIndex':_0x4d55e3,'summaryIndex':_0x275b10}];}break;}case _0x5d423f(0x50f,_0x40849c._0x3c5555,0x5bb,0x48c):{const _0x109105=typeof _0x1a2825[_0x5d423f(_0x40849c._0x35ba80,_0x40849c._0x1a9026,0x4b4,0x3ac)]===_0x2b52b0(0x232,_0x40849c._0x5387d1,0x10e,_0x40849c._0x12d915)?_0x1a2825[_0x5d423f(_0x40849c._0x46890e,_0x40849c._0x1a9026,_0x40849c._0x40ed46,_0x40849c._0xd430b2)]:typeof _0x1a2825[_0x2b52b0(_0x40849c._0x3fe81f,_0x40849c._0x1bdd67,0x1f3,_0x40849c._0x1333ee)]===_0x5d423f(0x307,0x3e7,0x351,0x3c4)?this[_0x2b52b0(0x97,_0x40849c._0x413b0f,0x21c,_0x40849c._0x3dd54f)]['get'](_0x1a2825[_0x2b52b0(_0x40849c._0x5640b4,_0x40849c._0x1bdd67,_0x40849c._0x36c17b,0x179)]):void 0x0,_0x27cf3f=typeof _0x1a2825[_0x5d423f(0x3fc,0x441,_0x40849c._0x591ba7,0x499)]===_0x5d423f(_0x40849c._0xd1f6,0x3e7,0x3c0,0x4b6)?_0x1a2825[_0x5d423f(_0x40849c._0xc08cec,0x441,_0x40849c._0x13bab4,0x425)]:0x0,_0x576117=typeof _0x1a2825[_0x2b52b0(0x28d,_0x40849c._0x519630,_0x40849c._0x44a171,0x1c5)]===_0x2b52b0(_0x40849c._0x563c7e,0xd8,_0x40849c._0x2fb19e,_0x40849c._0x559671)?_0x1a2825[_0x2b52b0(_0x40849c._0x45aca0,0x26a,0x2a5,0x298)]:0x0,_0x17eb4f=typeof _0x1a2825[_0x2b52b0(0x172,0x205,_0x40849c._0x56fe25,0x205)]===_0x5d423f(0x4b3,0x46f,0x523,_0x40849c._0x4bd044)?_0x1a2825['text']:'';_0x109105&&this['getOrCreateReasoningItem'](_0x109105,_0x27cf3f)[_0x2b52b0(_0x40849c._0x589426,_0x40849c._0x5c02ab,-0x32,0xed)][_0x5d423f(0x44e,0x3c7,_0x40849c._0x5b30db,_0x40849c._0x2979e5)](_0x576117,_0x17eb4f);break;}case'response.reasoning_text.delta':{const _0x5ed2f6=typeof _0x1a2825[_0x2b52b0(0xa4,_0x40849c._0x5786ce,0x205,0x128)]==='string'?_0x1a2825['delta']:'',_0x5794d1=typeof _0x1a2825[_0x5d423f(0x439,0x3d1,0x497,_0x40849c._0xd6ea0c)]===_0x5d423f(0x47d,_0x40849c._0x96d1d8,_0x40849c._0x3e0727,0x4d4)?_0x1a2825['item_id']:typeof _0x1a2825['output_index']===_0x5d423f(0x319,_0x40849c._0x585317,0x3a3,0x35e)?this[_0x2b52b0(0x19c,0x164,_0x40849c._0x4c9872,0x208)][_0x2b52b0(_0x40849c._0x48e581,_0x40849c._0x4db039,0x2ae,0xf9)](_0x1a2825[_0x5d423f(_0x40849c._0x395c67,_0x40849c._0x6588f1,0x460,_0x40849c._0x31e7e9)]):void 0x0,_0x35e460=typeof _0x1a2825['output_index']===_0x5d423f(0x489,0x3e7,0x352,_0x40849c._0x2b315a)?_0x1a2825['output_index']:0x0,_0x13189f=typeof _0x1a2825[_0x5d423f(0x4b2,0x494,_0x40849c._0x589c95,_0x40849c._0x47da75)]===_0x2b52b0(0x1a,0xd8,0x16f,_0x40849c._0x3060f2)?_0x1a2825[_0x5d423f(_0x40849c._0x4576d2,0x494,0x54a,0x4f1)]:0x0;if(_0x5794d1&&_0x5ed2f6[_0x5d423f(_0x40849c._0x330b0e,_0x40849c._0xcd98d5,0x31a,0x2cb)]>0x0){const _0x2139a2=this[_0x2b52b0(_0x40849c._0x405fde,_0x40849c._0x224e87,0x122,-0x7)](_0x5794d1,_0x35e460);_0x2139a2[_0x5d423f(_0x40849c._0x360548,_0x40849c._0xc8d3b5,_0x40849c._0xcce2d0,_0x40849c._0x550611)]['set'](_0x13189f,''+(_0x2139a2['textByIndex'][_0x5d423f(0x40e,_0x40849c._0x47c48d,_0x40849c._0x453846,0x566)](_0x13189f)??'')+_0x5ed2f6);if(isUserVisibleReasoning(this[_0x5d423f(_0x40849c._0x43dec3,0x3b9,0x300,0x35a)]))return[{'type':_0x5d423f(_0x40849c._0x2abfcf,_0x40849c._0x4679a8,_0x40849c._0x56d9fc,_0x40849c._0x2ce2d0),'contentIndex':_0x13189f,'delta':_0x5ed2f6,'itemId':_0x5794d1,'outputIndex':_0x35e460}];}break;}case _0x2b52b0(_0x40849c._0x313bba,0x10a,_0x40849c._0x42a56a,_0x40849c._0xe741dc):{const _0x3bdc04=typeof _0x1a2825['item_id']===_0x2b52b0(0x130,_0x40849c._0x1e07d4,0xda,_0x40849c._0xef4fe3)?_0x1a2825[_0x5d423f(0x481,0x3d1,_0x40849c._0x1df165,0x33c)]:typeof _0x1a2825['output_index']===_0x5d423f(0x407,0x3e7,_0x40849c._0x1bfa93,_0x40849c._0x3fdf4f)?this[_0x2b52b0(0x221,_0x40849c._0x413b0f,0x8f,0x108)][_0x2b52b0(0x2c4,0x1e8,_0x40849c._0x44e974,_0x40849c._0x44f320)](_0x1a2825['output_index']):void 0x0,_0x3d7b0a=typeof _0x1a2825['output_index']===_0x2b52b0(_0x40849c._0x537ced,0xd8,0x16f,0x17c)?_0x1a2825[_0x2b52b0(0x108,0x132,_0x40849c._0x46f042,0xf5)]:0x0,_0x103015=typeof _0x1a2825[_0x2b52b0(_0x40849c._0x34b399,_0x40849c._0x4ab922,_0x40849c._0x104723,0x1a8)]===_0x2b52b0(0x73,0xd8,0x129,0x161)?_0x1a2825[_0x2b52b0(0x17f,0x185,_0x40849c._0x577f15,_0x40849c._0x3b1f2f)]:0x0,_0x1c86dd=typeof _0x1a2825['text']===_0x2b52b0(0xa8,_0x40849c._0x5db929,_0x40849c._0x2e868f,_0x40849c._0x42a374)?_0x1a2825[_0x5d423f(0x5bc,_0x40849c._0x3ee83d,0x545,_0x40849c._0x1c14a8)]:'';_0x3bdc04&&this[_0x2b52b0(_0x40849c._0x1573b4,_0x40849c._0x224e87,0x163,_0x40849c._0x19765c)](_0x3bdc04,_0x3d7b0a)['textByIndex'][_0x5d423f(0x475,0x3c7,_0x40849c._0x35daf6,0x44b)](_0x103015,_0x1c86dd);break;}case'response.completed':{this[_0x5d423f(_0x40849c._0x2a1578,_0x40849c._0x4c6ec2,0x4e6,_0x40849c._0x12989b)]=_0x1a2825[_0x2b52b0(_0x40849c._0x3cf974,0x1ca,_0x40849c._0x8440f,0x22e)];break;}case'response.failed':{const _0x59c634=_0x1a2825[_0x2b52b0(_0x40849c._0x42bf9a,0x1ca,_0x40849c._0x20d37a,0xf3)];throw new ProviderStreamEventError(_0x59c634?.['error']?.[_0x2b52b0(0x25c,0x20c,0x1b5,_0x40849c._0x336b3a)]??_0x2b52b0(_0x40849c._0x43077e,0x1ad,0x194,_0x40849c._0x38351e),{'code':_0x59c634?.['error']?.[_0x5d423f(0x4ac,0x520,0x608,_0x40849c._0x399f89)],'retryable':!![]});}case _0x2b52b0(0x1c6,_0x40849c._0x433f2d,0x1e1,_0x40849c._0x35ba80):{const _0x56ba5f=_0x1a2825[_0x2b52b0(_0x40849c._0x3aaa8e,_0x40849c._0x3ac615,0x1d1,0x34c)];throw new ProviderStreamEventError(_0x56ba5f?.[_0x2b52b0(_0x40849c._0x152d14,_0x40849c._0x2e576a,_0x40849c._0x3e3c0c,_0x40849c._0x346cbc)]??_0x2b52b0(0x1ec,_0x40849c._0x53ccbd,_0x40849c._0x1a2dc7,_0x40849c._0x2f2ea8),{'code':_0x56ba5f?.[_0x2b52b0(_0x40849c._0x23bd33,_0x40849c._0x210172,_0x40849c._0x4d4c51,_0x40849c._0x50d602)],'retryable':!![],'status':typeof _0x1a2825['status']===_0x5d423f(_0x40849c._0x166e8b,0x3e7,0x3f0,0x4cc)?_0x1a2825[_0x2b52b0(_0x40849c._0x527a88,0x14d,_0x40849c._0x4bcd89,0xa7)]:void 0x0});}}function _0x5d423f(_0x4925d4,_0x48feb8,_0x3349c8,_0x6533f4){return _0x1b1adc(_0x4925d4-_0x119927._0x2fa7f8,_0x48feb8-0x4b4,_0x3349c8-0xbc,_0x3349c8);}return[];}['buildPartialOutput'](){const _0x463696={_0x3117fb:0x444,_0x5c85c0:0xa3,_0x316d56:0x22,_0x14aee5:0x292,_0x1007b0:0x324,_0x450315:0x372,_0x7772a2:0x25c,_0x56f860:0x19d,_0x45f2bb:0x442,_0x455ae8:0x566,_0x558740:0x4d2,_0x562b3b:0x48a,_0x4c3e0e:0x4a7,_0x5dbaf5:0xa2,_0x306445:0x45a,_0x360b7d:0x302,_0x348538:0x3a8,_0x369549:0x38,_0x4244f7:0x8f,_0x511e96:0x75,_0x277c12:0x567,_0x551587:0x50f,_0x589d0e:0x52d,_0x361912:0x471,_0x462b83:0x482,_0x2c639f:0xf,_0x59edd5:0x44,_0x4879bd:0x19,_0x1dda28:0x402,_0x1e6aef:0x360,_0x43effd:0x3b0,_0x27cd63:0x36b,_0x53d59a:0x3fc,_0x5a8c9e:0x241,_0xc7e02:0x118,_0x297e89:0x170,_0x1a79d6:0x5c,_0x4b49bd:0x69,_0x586b68:0x93,_0x24d1de:0x43d,_0x57d7bd:0x4f3,_0x111106:0x28c,_0x113c51:0x157,_0x1bceab:0x63,_0x132e6d:0x1fb,_0x49ffef:0x1a1,_0x3f2306:0x289,_0x5dea5a:0x3d7,_0x2747ca:0x32c,_0x429bce:0xb3,_0x5f2f2f:0x17e,_0x20c73c:0x74,_0x2c36ae:0x53,_0x3fea93:0x6e,_0x10580c:0x16d,_0x528a0f:0x19d,_0x48aca3:0x4be,_0x23f05f:0x3d8,_0x33f686:0x53e,_0x35660f:0x4d9,_0x598a41:0x3fe,_0x12b6f0:0x2ef,_0x3609f5:0x134,_0x4e7ba0:0x162,_0xaf78bf:0x350,_0x4229a2:0x380,_0x457968:0x350,_0x4ed4a0:0x16f,_0x2ec074:0x7a,_0x1658e8:0x12e,_0xa4bb5a:0x3c5,_0x552b59:0x187,_0x4e6e7f:0x157},_0x37e53e={_0x57e5d7:0x17e,_0x1e940b:0xf4},_0x1c1550={_0x596b6c:0x17b,_0x599b1f:0x179},_0x473a82={_0x754543:0x4f0,_0x29dd40:0x1ba,_0x2c1f1a:0x62},_0x1cdc6c=[];function _0x5851d8(_0x3cd79a,_0x1ca46e,_0x68b3c9,_0x14a638){return _0x1b98ce(_0x1ca46e,_0x68b3c9- -_0x473a82._0x754543,_0x68b3c9-_0x473a82._0x29dd40,_0x14a638-_0x473a82._0x2c1f1a);}for(const [_0x154ec7,_0x277bbf]of this['responseTextParts'][_0x5b61ac(0x472,0x5e0,_0x463696._0x3117fb,0x50c)]()){const _0x556dce=_0x277bbf[_0x5851d8(_0x463696._0x5c85c0,-_0x463696._0x316d56,0x95,0xc5)]('');if(_0x556dce[_0x5b61ac(0x3a6,_0x463696._0x14aee5,_0x463696._0x1007b0,_0x463696._0x450315)]===0x0)continue;_0x1cdc6c[_0x5851d8(_0x463696._0x7772a2,0x141,_0x463696._0x56f860,0x22c)]({'index':_0x154ec7,'item':{'type':_0x5b61ac(_0x463696._0x45f2bb,0x5ba,_0x463696._0x455ae8,_0x463696._0x558740),'role':_0x5b61ac(_0x463696._0x562b3b,_0x463696._0x4c3e0e,0x4de,0x41b),'content':[{'type':_0x5851d8(0x50,0x74,_0x463696._0x5dbaf5,0x12f),'text':_0x556dce}]}});}for(const _0x5a9f6f of this[_0x5b61ac(_0x463696._0x306445,_0x463696._0x360b7d,0x44e,_0x463696._0x348538)][_0x5851d8(-0x49,-_0x463696._0x369549,_0x463696._0x4244f7,_0x463696._0x511e96)]()){_0x1cdc6c[_0x5b61ac(0x42a,0x4c6,_0x463696._0x277c12,_0x463696._0x551587)]({'index':_0x5a9f6f[_0x5b61ac(_0x463696._0x589d0e,_0x463696._0x361912,0x3f1,_0x463696._0x462b83)]??_0x1cdc6c[_0x5851d8(-0xf0,_0x463696._0x2c639f,0x0,_0x463696._0x59edd5)],'item':{'type':_0x5851d8(0x132,_0x463696._0x4879bd,0x88,0x13c),'id':_0x5a9f6f['id'],..._0x5a9f6f['encryptedContent']?{'encrypted_content':_0x5a9f6f[_0x5b61ac(_0x463696._0x1dda28,_0x463696._0x1e6aef,0x377,0x449)]}:{},..._0x5a9f6f[_0x5b61ac(_0x463696._0x43effd,0x417,0x426,_0x463696._0x27cd63)][_0x5b61ac(0x3ca,0x473,_0x463696._0x53d59a,0x476)]>0x0?{'summary':Array[_0x5851d8(_0x463696._0x5a8c9e,_0x463696._0xc7e02,_0x463696._0x297e89,0x1d5)](_0x5a9f6f[_0x5851d8(_0x463696._0x1a79d6,-_0x463696._0x4b49bd,-0x7,-_0x463696._0x586b68)]['entries']())[_0x5851d8(_0x463696._0x2c639f,-0x62,0x2,0x87)]((_0x3c59ac,_0x173294)=>_0x3c59ac[0x0]-_0x173294[0x0])[_0x5b61ac(_0x463696._0x24d1de,0x4f3,_0x463696._0x57d7bd,0x4c9)](([,_0x277c20])=>{function _0x297ee7(_0x13c731,_0x2c4b58,_0x4304a2,_0x5c2e0e){return _0x5851d8(_0x13c731-0x1e4,_0x5c2e0e,_0x13c731- -0x1c,_0x5c2e0e-0x152);}return{'type':_0x297ee7(_0x1c1550._0x596b6c,_0x1c1550._0x599b1f,0x226,0xc3),'text':_0x277c20};})}:{},..._0x5a9f6f[_0x5851d8(0x24a,_0x463696._0x111106,0x1a1,_0x463696._0x113c51)][_0x5851d8(0x87,0x117,0x104,_0x463696._0x1bceab)]>0x0?{'text':Array['from'](_0x5a9f6f[_0x5851d8(0x240,_0x463696._0x132e6d,_0x463696._0x49ffef,0x207)]['entries']())[_0x5b61ac(_0x463696._0x3f2306,_0x463696._0x5dea5a,_0x463696._0x2747ca,0x374)]((_0x8b1b01,_0x5061a3)=>_0x8b1b01[0x0]-_0x5061a3[0x0])[_0x5851d8(0x91,_0x463696._0x429bce,0x157,0x16e)](([,_0x4e59e2])=>_0x4e59e2)[_0x5851d8(_0x463696._0x5f2f2f,_0x463696._0x20c73c,0x95,-0x28)]('')}:{}}});}function _0x5b61ac(_0x46dd44,_0x542d42,_0x59adb9,_0x17238c){return _0x1b98ce(_0x59adb9,_0x17238c- -_0x37e53e._0x57e5d7,_0x59adb9-_0x37e53e._0x1e940b,_0x17238c-0x2d);}for(const _0xae9af0 of this[_0x5851d8(0x81,0xe9,_0x463696._0x2c36ae,_0x463696._0x3fea93)][_0x5851d8(0x67,0x154,_0x463696._0x4244f7,_0x463696._0x10580c)]()){_0x1cdc6c[_0x5851d8(0x1cc,0x23f,_0x463696._0x528a0f,0x176)]({'index':this[_0x5b61ac(0x41e,0x32c,_0x463696._0x48aca3,_0x463696._0x23f05f)][_0x5b61ac(_0x463696._0x33f686,_0x463696._0x35660f,_0x463696._0x598a41,0x4ae)](_0xae9af0['id'])??_0x1cdc6c[_0x5b61ac(_0x463696._0x12b6f0,0x3f6,0x2ce,0x372)],'item':{'type':_0x5851d8(0x1b6,_0x463696._0x3609f5,0x154,_0x463696._0x4e7ba0),'call_id':_0xae9af0['id'],'name':_0xae9af0[_0x5b61ac(_0x463696._0xaf78bf,_0x463696._0x4229a2,_0x463696._0x457968,0x42b)][_0x5851d8(_0x463696._0x4ed4a0,0x25c,0x18b,0x1d3)],'arguments':_0xae9af0['function'][_0x5851d8(_0x463696._0x2ec074,0xda,0xee,_0x463696._0x1658e8)]}});}return _0x1cdc6c[_0x5b61ac(0x3b0,0x44a,_0x463696._0xa4bb5a,0x374)]((_0x38ba2a,_0x2a9235)=>_0x38ba2a[_0x5851d8(0xd9,0x196,0xb3,0xc5)]-_0x2a9235[_0x5851d8(0xbe,0xaa,0xb3,-0x1)])[_0x5851d8(_0x463696._0x552b59,0xbc,_0x463696._0x4e6e7f,0x243)](_0x40431d=>_0x40431d[_0x5b61ac(0x56e,0x447,0x524,0x494)]);}[_0x1b1adc(-0xcd,-0xd6,-0x137,-0xac)](_0x5e404f,_0x4523bb){const _0x5aee93={_0x2865fc:0x29a,_0x470dc6:0x333,_0x765390:0x20f,_0x1e21a3:0x254,_0x407438:0x26c,_0x4b8aee:0x26e,_0x455772:0x1ba,_0x4db548:0x1d2,_0x46833c:0x10e,_0x390061:0x2f7,_0x2c8338:0x216,_0x469ea2:0x1a2,_0x3e9ab3:0x240},_0x1d8639={_0x570294:0x354,_0x660679:0x78,_0x5d46b3:0x179},_0x38c88b={_0x50cbc1:0xb8},_0x295717=this['reasoningItems'][_0x3e1f6d(0x2e3,_0x5aee93._0x2865fc,_0x5aee93._0x470dc6,0x27c)](_0x5e404f);if(_0x295717)return _0x4523bb!==void 0x0&&(_0x295717['outputIndex']=_0x4523bb,this[_0x3de967(_0x5aee93._0x765390,_0x5aee93._0x1e21a3,0x1e4,_0x5aee93._0x407438)][_0x3de967(0x1ec,0x1a8,_0x5aee93._0x4b8aee,_0x5aee93._0x455772)](_0x4523bb,_0x5e404f)),_0x295717;function _0x3e1f6d(_0x486b14,_0x15e148,_0x5d77f3,_0x5afb21){return _0x1b1adc(_0x486b14-0x1e8,_0x15e148-0x257,_0x5d77f3-_0x38c88b._0x50cbc1,_0x5afb21);}const _0x53211a={'id':_0x5e404f,'outputIndex':_0x4523bb,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x3de967(0x107,_0x5aee93._0x4db548,_0x5aee93._0x46833c,0x11b)][_0x3e1f6d(0x254,0x16a,0x1cf,0x1e3)](_0x5e404f,_0x53211a);_0x4523bb!==void 0x0&&this[_0x3e1f6d(_0x5aee93._0x390061,_0x5aee93._0x2c8338,_0x5aee93._0x469ea2,0x2bd)][_0x3de967(0xfa,0x1a8,_0x5aee93._0x3e9ab3,0x240)](_0x4523bb,_0x5e404f);function _0x3de967(_0x505284,_0x28c480,_0x15545f,_0x43233a){return _0x1b98ce(_0x15545f,_0x28c480- -_0x1d8639._0x570294,_0x15545f-_0x1d8639._0x660679,_0x43233a-_0x1d8639._0x5d46b3);}return _0x53211a;}};function createOpenAiResponsesStreamParser(_0x57a2b7){return new OpenAiResponsesStreamParser(_0x57a2b7);}function createOpenAiSurfaces(_0x336e4b={}){const _0x4fc461={_0x399793:0x3b,_0x268940:0x65,_0x5e3536:0xdc,_0x585b42:0xb2,_0x35d736:0x11e},_0x584434={_0x2154ef:0x35e},_0x421b1e={_0x140e3b:0x2e5,_0x35a753:0x0,_0x3bad8b:0x104},_0x320cc4={_0x480b43:0x47f,_0x14e50c:0x4f1,_0x307b2a:0x457,_0x3f1278:0x51b},_0x83f4aa={_0x40f965:0x5e,_0x4a2893:0x132},_0x24c722={_0x34e63e:0x161,_0x1d7d71:0x4},_0x34bb54={_0x28b1b6:0x116,_0x3279d8:0x16},_0x1e06b7=_0x336e4b['chatCompletionsPath']??'/chat/completions',_0x464695=_0x336e4b['responsesPath']??'/responses';function _0x4ba400(_0x17f623,_0x37c04a,_0x427c3b,_0x457791){return _0x1b1adc(_0x17f623-_0x34bb54._0x28b1b6,_0x427c3b-0xa7,_0x427c3b-_0x34bb54._0x3279d8,_0x457791);}function _0x4e2f44(_0x3b9281,_0x27873e,_0xd4ee0e,_0x18d930){return _0x1b1adc(_0x3b9281-0x81,_0x3b9281-_0x24c722._0x34e63e,_0xd4ee0e-_0x24c722._0x1d7d71,_0x27873e);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x4e2f44(0x11f,0xe3,0xaf,0xc7),'createRequest'(_0x1b5a35){const _0x38bb2d={_0x6504c9:0x23};function _0x1611e4(_0x414430,_0x1ecfcf,_0x21abca,_0x5978de){return _0x4e2f44(_0x414430- -_0x38bb2d._0x6504c9,_0x1ecfcf,_0x21abca-0x29,_0x5978de-0x13f);}return{'accept':_0x1611e4(0xd1,_0x83f4aa._0x40f965,0x108,_0x83f4aa._0x4a2893),'body':createChatRequestBody(_0x1b5a35,![]),'path':_0x1e06b7};},'parseResponse'(_0x375a44){return parseChatCompletionResponse(_0x375a44);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x2b6fb2){const _0x1635bf={_0x31fdfa:0xff};function _0x37765f(_0x479bd0,_0x12d61f,_0x1ffe02,_0x10beef){return _0x4e2f44(_0x12d61f-0x3a9,_0x1ffe02,_0x1ffe02-_0x1635bf._0x31fdfa,_0x10beef-0x161);}return{'accept':_0x37765f(_0x320cc4._0x480b43,_0x320cc4._0x14e50c,_0x320cc4._0x307b2a,_0x320cc4._0x3f1278),'body':createChatRequestBody(_0x2b6fb2,!![]),'path':_0x1e06b7};},'createStreamParser'(_0x2cd969){return new OpenAiChatCompletionsStreamParser(_0x2cd969);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x4ba400(0x45,_0x4fc461._0x399793,_0x4fc461._0x268940,0xca),'createRequest'(_0xde9ee2){function _0xdd02(_0x591e8f,_0x79896e,_0x2528ea,_0x2d6dc5){return _0x4e2f44(_0x2528ea-_0x421b1e._0x140e3b,_0x79896e,_0x2528ea-_0x421b1e._0x35a753,_0x2d6dc5-_0x421b1e._0x3bad8b);}return{'accept':_0xdd02(_0x584434._0x2154ef,0x481,0x3d9,0x35c),'body':createResponsesRequestBody(_0xde9ee2,![]),'path':_0x464695};},'parseResponse'(_0x5f2f94,_0x2220d0){return parseResponsesResponse(_0x5f2f94,_0x2220d0);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x23c930){return{'accept':'text/event-stream','body':createResponsesRequestBody(_0x23c930,!![]),'path':_0x464695};},'createStreamParser'(_0x558a78){return new OpenAiResponsesStreamParser(_0x558a78);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x4ba400(_0x4fc461._0x5e3536,_0x4fc461._0x585b42,0x172,_0x4fc461._0x35d736),'createRequest'(_0x31724c){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x31724c),'path':_0x464695};},'createStreamParser'(_0x18e4c7){return createOpenAiResponsesStreamParser(_0x18e4c7);}}];}var OpenAiProviderAdapter=class{[_0x1b98ce(0x596,0x567,0x58f,0x5e4)];constructor(_0x193b2){const _0x101c36={_0x43a6cf:0x176},_0x154067={_0x3d6546:0xaf};function _0x594edc(_0x57259b,_0x2b17c5,_0x114517,_0x29097e){return _0x1b98ce(_0x114517,_0x2b17c5- -0x32c,_0x114517-_0x154067._0x3d6546,_0x29097e-0xb9);}this[_0x594edc(0x2a7,0x23b,0x233,_0x101c36._0x43a6cf)]=_0x193b2;}[_0x1b98ce(0x5ba,0x65c,0x72e,0x63c)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x1b98ce(0x57f,0x56a,0x500,0x50b)](_0x2b47ad,_0x32b37f){const _0x21b616={_0xa6047f:0x5e4,_0x3c54b5:0x5ae,_0x231381:0x58c,_0x119ee4:0x51c,_0x226642:0x55b,_0x318a22:0x45a,_0x14381c:0x508,_0x3fdde6:0x567,_0xb180c8:0x59b,_0x32ce7f:0x5b6,_0x2128c7:0x4ae,_0x425b1d:0x5e1,_0x1d0fa5:0x53f,_0x5a92ff:0x689,_0x1dd07f:0x58e,_0x499ada:0x728,_0x25bdae:0x5b2,_0x372534:0x5c5,_0xfe1b51:0x5c9,_0xa9875e:0x60c,_0x1a09dc:0x6f0,_0x5d886e:0x634,_0xcb613:0x630,_0x47d541:0x533,_0xb52d9e:0x4ce,_0x189dfa:0x6b7,_0x573ee3:0x78a,_0x3aa616:0x6ec,_0x754e7e:0x51c},_0x1429e0={_0x5ba3b7:0x609,_0xc04c08:0x167},_0x37b4f4={_0x1c19ba:0x9e,_0x545da0:0x64b,_0x238bd3:0x6c};function _0x7ff14(_0x5b8290,_0x4368df,_0x9dbaf8,_0x3fecb9){return _0x1b1adc(_0x5b8290-_0x37b4f4._0x1c19ba,_0x9dbaf8-_0x37b4f4._0x545da0,_0x9dbaf8-_0x37b4f4._0x238bd3,_0x4368df);}const _0xe78b67=new Headers();_0xe78b67[_0x30c851(_0x21b616._0xa6047f,_0x21b616._0x3c54b5,_0x21b616._0x231381,_0x21b616._0x119ee4)](_0x30c851(_0x21b616._0x226642,0x45b,_0x21b616._0x318a22,0x511),_0x32b37f[_0x30c851(0x5cd,_0x21b616._0x14381c,_0x21b616._0x3fdde6,0x511)]);function _0x30c851(_0x4fd476,_0x2a4839,_0x48f124,_0x57adea){return _0x1b1adc(_0x4fd476-0xa6,_0x57adea-_0x1429e0._0x5ba3b7,_0x48f124-_0x1429e0._0xc04c08,_0x2a4839);}_0xe78b67[_0x30c851(_0x21b616._0xb180c8,_0x21b616._0x32ce7f,_0x21b616._0x2128c7,0x51c)]('authorization','Bearer\x20'+_0x2b47ad[_0x30c851(_0x21b616._0x425b1d,0x572,0x4d5,_0x21b616._0x1d0fa5)]['value']);_0x32b37f[_0x30c851(0x677,0x604,0x67e,_0x21b616._0x5a92ff)]!==![]&&_0xe78b67[_0x30c851(_0x21b616._0x1dd07f,0x5d4,0x536,_0x21b616._0x119ee4)](_0x7ff14(_0x21b616._0x499ada,_0x21b616._0x25bdae,0x69c,0x774),'application/json');const _0x903a04=await this[_0x7ff14(0x512,_0x21b616._0x372534,_0x21b616._0xfe1b51,_0x21b616._0xa9875e)]?.({'body':_0x2b47ad[_0x7ff14(0x585,_0x21b616._0x1a09dc,_0x21b616._0x5d886e,0x6d9)],'credential':_0x2b47ad[_0x7ff14(_0x21b616._0xcb613,0x5d8,0x581,_0x21b616._0x372534)],'request':_0x2b47ad[_0x30c851(_0x21b616._0x47d541,0x490,_0x21b616._0xb52d9e,0x50e)],'session':_0x2b47ad[_0x7ff14(0x76f,0x7c1,0x6d4,0x6b0)],'stream':_0x2b47ad[_0x7ff14(_0x21b616._0x189dfa,0x73b,0x660,0x57b)]});for(const [_0x4060c7,_0x49da5d]of Object[_0x7ff14(_0x21b616._0x573ee3,0x77b,_0x21b616._0x3aa616,0x78d)](_0x903a04??{})){_0xe78b67[_0x30c851(0x553,0x491,0x4b3,_0x21b616._0x754e7e)](_0x4060c7,_0x49da5d);}return _0xe78b67;}[_0x1b1adc(0xb1,0x88,0xdf,0xbb)](_0x56d1be){return _0x56d1be;}[_0x1b1adc(0x59,0xd2,0x184,0x17a)](_0x3b809a,_0x4ed7d2){return resolveSessionBaseUrl(_0x3b809a,_0x4ed7d2);}[_0x1b98ce(0x4aa,0x52d,0x5d1,0x5ca)](_0x197276,_0x2307d6){return resolveApiCredential(_0x197276,_0x2307d6);}async[_0x1b1adc(0x30,0x63,0x152,0x150)](_0x349dad){return await createOpenAiApiError(_0x349dad);}},OpenAiModel=class extends RoutedModel{[_0x1b98ce(0x5b8,0x5c8,0x512,0x593)]=new Map();[_0x1b98ce(0x714,0x673,0x748,0x6da)];['responsesPath'];constructor(_0x2531a8={}){const _0x60c8c8={_0x1bea9a:0x86,_0x14406f:0x23d,_0x2747cb:0x31d,_0x4f3b60:0xc9,_0x1f4cf2:0xbf,_0x227a96:0xd,_0x2d78e6:0x279,_0x552e43:0x2d3,_0xaacbc3:0x1ed,_0x763367:0x206,_0x1728fb:0x12b,_0x454851:0x1e6,_0x4143ad:0xf1,_0x79130e:0x12b,_0x1754c0:0x100,_0x4f87bf:0xdc,_0x289dbd:0x161,_0x22d190:0x122,_0x1a7df6:0x147,_0x540b0f:0x1aa,_0x46bf17:0xed,_0x26a072:0x198,_0x36c1dc:0x13c,_0x2c6447:0x13c,_0x574264:0x2b8,_0x2a2484:0x223,_0x1029b9:0x1a8,_0x21b4e4:0x319},_0x5f421d={_0x4231bc:0x413},_0x33b599={_0x24d0ec:0x16e,_0xab8309:0x1b3,_0x4c843a:0xf9},_0x4d419f=_0x2531a8['model']??'gpt-4o',_0x23640c=_0x2531a8[_0x520990(0xbe,0x197,0x127,_0x60c8c8._0x1bea9a)]??getDefaultMaxTokens();function _0x520990(_0x347ee7,_0x1181bc,_0x585367,_0x107b4a){return _0x1b1adc(_0x347ee7-_0x33b599._0x24d0ec,_0x347ee7-_0x33b599._0xab8309,_0x585367-_0x33b599._0x4c843a,_0x585367);}const _0x302d7b=_0x2531a8[_0x520990(_0x60c8c8._0x14406f,_0x60c8c8._0x2747cb,0x280,0x290)]??_0x520990(_0x60c8c8._0x4f3b60,0x1ab,_0x60c8c8._0x1f4cf2,_0x60c8c8._0x227a96);function _0x4c3b43(_0x517a51,_0x59a710,_0x5b93a8,_0x50470e){return _0x1b98ce(_0x59a710,_0x50470e- -_0x5f421d._0x4231bc,_0x5b93a8-0xa1,_0x50470e-0x177);}const _0x5ee9c6=_0x2531a8[_0x520990(_0x60c8c8._0x2d78e6,_0x60c8c8._0x552e43,0x1e3,_0x60c8c8._0xaacbc3)]??_0x520990(_0x60c8c8._0x763367,_0x60c8c8._0x1728fb,_0x60c8c8._0x454851,0x28f);super({'apiKey':_0x2531a8[_0x4c3b43(_0x60c8c8._0x4143ad,_0x60c8c8._0x79130e,0x171,0x1bc)],'baseUrl':trimTrailingSlashes(_0x2531a8['baseUrl']??_0x4c3b43(0x1b2,0x172,_0x60c8c8._0x1754c0,0x177)),'fetch':_0x2531a8[_0x4c3b43(_0x60c8c8._0x4f87bf,0x9f,0x9a,_0x60c8c8._0x289dbd)],'maxTokens':_0x23640c,'model':_0x4d419f,'reasoning':_0x2531a8[_0x4c3b43(0x16a,0x245,_0x60c8c8._0x22d190,0x165)],'providerAdapter':new OpenAiProviderAdapter(_0x2531a8['headerResolver']),'providerSessionResolver':_0x2531a8['providerSessionResolver'],'requestMutators':_0x2531a8[_0x4c3b43(_0x60c8c8._0x1a7df6,_0x60c8c8._0x540b0f,_0x60c8c8._0x46bf17,0x10e)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x2531a8[_0x520990(_0x60c8c8._0x26a072,_0x60c8c8._0x36c1dc,0x23d,_0x60c8c8._0x2c6447)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x302d7b,'responsesPath':_0x5ee9c6}),'webSocketFactory':_0x2531a8[_0x4c3b43(0x217,0x159,_0x60c8c8._0x574264,_0x60c8c8._0x2a2484)]}),this[_0x4c3b43(_0x60c8c8._0x1029b9,_0x60c8c8._0x21b4e4,0x29f,0x260)]=_0x302d7b,this['responsesPath']=_0x5ee9c6;}[_0x1b98ce(0x4c4,0x527,0x456,0x596)](_0x341a3f,_0xe8afba){return this['completeViaSurface'](_0x341a3f,OPENAI_CHAT_COMPLETIONS_SURFACE,_0xe8afba);}[_0x1b98ce(0x6b3,0x6b2,0x698,0x5cd)](_0x4db32e,_0x5d1911){return this['completeViaSurface'](_0x4db32e,OPENAI_RESPONSES_SURFACE,_0x5d1911);}[_0x1b98ce(0x5d8,0x519,0x4fa,0x4fd)](_0x13abfd,_0x481960){const _0x4adaf6={_0x3f4041:0x155,_0x24e0f1:0x154,_0x183e60:0x122},_0x5a1638={_0x1fc0d6:0x230};function _0x3da0d3(_0x3190d7,_0x5d9ec2,_0x1c365e,_0x84ab32){return _0x1b1adc(_0x3190d7-0xd2,_0x5d9ec2-_0x5a1638._0x1fc0d6,_0x1c365e-0xb7,_0x1c365e);}return this[_0x3da0d3(0x7c,_0x4adaf6._0x3f4041,_0x4adaf6._0x24e0f1,_0x4adaf6._0x183e60)](_0x13abfd,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x481960);}[_0x1b1adc(-0x97,-0x26,-0x4a,0xc0)](_0x331712,_0x49d17d){const _0x38f9d0={_0x1d2c9f:0x37e,_0x423072:0x2c6},_0x3e22b8={_0x44c996:0x8e};function _0x2b7bbe(_0xd75928,_0x5ed98d,_0x128bf1,_0x3a3972){return _0x1b1adc(_0xd75928-0x5e,_0x5ed98d-0x3cc,_0x128bf1-_0x3e22b8._0x44c996,_0xd75928);}return this[_0x2b7bbe(0x2b4,_0x38f9d0._0x1d2c9f,_0x38f9d0._0x423072,0x2f5)](_0x331712,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x49d17d);}[_0x1b98ce(0x651,0x583,0x589,0x4df)](_0x1e329b,_0x59c23b){return this['streamViaSurface'](_0x1e329b,OPENAI_RESPONSES_STREAM_SURFACE,_0x59c23b);}[_0x1b98ce(0x5b8,0x652,0x731,0x724)](_0x59eef1,_0x448be2){const _0x41bc20={_0x3a888b:0x53e,_0x4808e8:0x4c0,_0x8ca888:0x451};function _0x354284(_0x2c0449,_0x3b7e52,_0x58e07c,_0x32dc39){return _0x1b1adc(_0x2c0449-0x1c5,_0x2c0449-0x58c,_0x58e07c-0x72,_0x3b7e52);}return this[_0x354284(_0x41bc20._0x3a888b,0x5f7,_0x41bc20._0x4808e8,_0x41bc20._0x8ca888)](_0x59eef1,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x448be2);}async[_0x1b98ce(0x59f,0x584,0x506,0x56e)](_0x1a4ffc,_0x1831b4){const _0x49b0df={_0x45c151:0x406,_0x558fe0:0x44b,_0xad38ca:0x3ee},_0x3d4608={_0xd88434:0xc8,_0x5a6756:0x139};function _0x124de5(_0x1ad8a7,_0x3f176f,_0x11484a,_0x4d325b){return _0x1b98ce(_0x1ad8a7,_0x3f176f- -0xdc,_0x11484a-_0x3d4608._0xd88434,_0x4d325b-_0x3d4608._0x5a6756);}try{return await this[_0x124de5(_0x49b0df._0x45c151,_0x49b0df._0x558fe0,0x4a1,_0x49b0df._0xad38ca)](_0x1a4ffc,_0x1831b4);}catch(_0x410cb0){if(_0x410cb0 instanceof OpenAiApiError)throw this['mapApiError'](_0x410cb0);throw _0x410cb0;}}async[_0x1b98ce(0x62e,0x60e,0x6a1,0x585)](_0x3c70d2,_0x2fd746){const _0x32e2af={_0x969390:0x11b,_0x321c77:0x46,_0x3ff1c5:0x1d},_0xe8842e={_0x37bfc7:0x616,_0x4390bb:0x109},_0xef59f8={_0x3f29e7:0x1f3};function _0x14cd1c(_0x1622af,_0x327841,_0x1abb38,_0x1fe034){return _0x1b98ce(_0x1abb38,_0x327841- -0x6cf,_0x1abb38-0x16c,_0x1fe034-_0xef59f8._0x3f29e7);}function _0x1526ef(_0x3e2f94,_0x50eede,_0x267e79,_0xa8b3c8){return _0x1b98ce(_0xa8b3c8,_0x3e2f94- -_0xe8842e._0x37bfc7,_0x267e79-0x196,_0xa8b3c8-_0xe8842e._0x4390bb);}try{return await this[_0x1526ef(0x9c,0xb8,0x144,_0x32e2af._0x969390)](_0x3c70d2,_0x2fd746);}catch(_0x2e9bd8){if(_0x2e9bd8 instanceof OpenAiApiError)throw this[_0x14cd1c(-0x14d,-0x5e,_0x32e2af._0x321c77,_0x32e2af._0x3ff1c5)](_0x2e9bd8);throw _0x2e9bd8;}}async[_0x1b98ce(0x65f,0x5ba,0x5f9,0x5a9)](_0x216436,_0x9efba){const _0x4d0805={_0x4a4a24:0x6b0,_0x203c0f:0x578,_0xd673b1:0x4b4,_0xb3d4c1:0x504,_0x1f30d4:0x432,_0x479340:0x452,_0x5d26f7:0x449,_0x567f15:0x591,_0x585599:0x529},_0xa7993c={_0x45a0c4:0xdc,_0x27d7c9:0x5e1},_0x431b87={_0x17f0f7:0x44e};function _0x53aa4a(_0x452659,_0x569698,_0x38627e,_0x1507b6){return _0x1b1adc(_0x452659-0x126,_0x569698-_0x431b87._0x17f0f7,_0x38627e-0xb3,_0x452659);}function _0x45b671(_0x3c01e5,_0x16bc28,_0x16c631,_0x2ccc5d){return _0x1b1adc(_0x3c01e5-_0xa7993c._0x45a0c4,_0x2ccc5d-_0xa7993c._0x27d7c9,_0x16c631-0x1cf,_0x3c01e5);}try{let _0x7ea55d;for await(const _0x5d3cf9 of this[_0x45b671(0x640,_0x4d0805._0x4a4a24,0x6d0,0x61c)](_0x216436,_0x9efba)){_0x5d3cf9[_0x53aa4a(0x5d9,0x4f9,_0x4d0805._0x203c0f,_0x4d0805._0xd673b1)]===_0x53aa4a(0x450,_0x4d0805._0xb3d4c1,_0x4d0805._0x1f30d4,0x42b)&&(_0x7ea55d=_0x5d3cf9['response']);}if(!_0x7ea55d)throw new Error(_0x45b671(_0x4d0805._0x479340,_0x4d0805._0x5d26f7,_0x4d0805._0x567f15,_0x4d0805._0x585599));return _0x7ea55d;}catch(_0x5ae222){if(_0x5ae222 instanceof OpenAiApiError)throw this['mapApiError'](_0x5ae222);throw _0x5ae222;}}async*['chatStream'](_0x4177ce,_0x1e2d40){const _0x230e14={_0x5a1e32:0x1a5,_0x4eeb66:0x334},_0x3053d8={_0x2bb84e:0x478},_0x528fe2={_0x2bd128:0xc5,_0x558e69:0x2ac};function _0x380e75(_0x424aa1,_0x4a46fb,_0x1a2f80,_0x487e3a){return _0x1b1adc(_0x424aa1-_0x528fe2._0x2bd128,_0x1a2f80-_0x528fe2._0x558e69,_0x1a2f80-0x25,_0x4a46fb);}function _0x5c3ca7(_0x32540a,_0x5eeca5,_0x21ab0d,_0x3abb5f){return _0x1b98ce(_0x5eeca5,_0x21ab0d- -_0x3053d8._0x2bb84e,_0x21ab0d-0x4f,_0x3abb5f-0xeb);}try{yield*this[_0x5c3ca7(0x12c,_0x230e14._0x5a1e32,0x14b,0x1a6)](_0x4177ce,_0x1e2d40);}catch(_0xea14e0){if(_0xea14e0 instanceof OpenAiApiError)throw this[_0x380e75(0x366,0x376,_0x230e14._0x4eeb66,0x419)](_0xea14e0);throw _0xea14e0;}}async*['responseStream'](_0xfacdc8,_0x434f01){const _0x2fb2e1={_0x50470a:0x5ea,_0x200f1a:0x522,_0x411809:0x5ec},_0x314285={_0x4a427f:0x15c},_0x1b87de={_0x2916ba:0x126,_0x279079:0x110};function _0x4d8d52(_0x42fd01,_0x4b2487,_0x2c9ea3,_0xea044){return _0x1b98ce(_0xea044,_0x42fd01- -0x58,_0x2c9ea3-_0x1b87de._0x2916ba,_0xea044-_0x1b87de._0x279079);}function _0xee0bf3(_0x31d1f6,_0x104fcf,_0x4e5d51,_0x4efbcd){return _0x1b1adc(_0x31d1f6-0x12a,_0x104fcf-_0x314285._0x4a427f,_0x4e5d51-0xde,_0x4e5d51);}try{yield*this[_0x4d8d52(0x52b,_0x2fb2e1._0x50470a,0x489,_0x2fb2e1._0x200f1a)](_0xfacdc8,_0x434f01);}catch(_0x4be9c8){if(_0x4be9c8 instanceof OpenAiApiError)throw this[_0x4d8d52(0x619,0x65a,_0x2fb2e1._0x411809,0x574)](_0x4be9c8);throw _0x4be9c8;}}async*[_0x1b98ce(0x69f,0x624,0x5d9,0x677)](_0x5eaa5d,_0x1decd7){const _0x185768={_0x9d658e:0x64e,_0x22fde8:0x6de,_0x48e9b1:0x6b8,_0xa20d6b:0x6c2},_0x27abf4={_0x246805:0x630},_0x3065dd={_0x33ab1a:0x2cb,_0x5c1160:0x35};function _0x15caad(_0x5e0ecc,_0x5afcde,_0x557949,_0x2f55db){return _0x1b98ce(_0x5e0ecc,_0x5afcde- -_0x3065dd._0x33ab1a,_0x557949-0x9e,_0x2f55db-_0x3065dd._0x5c1160);}function _0x40d280(_0x1d25de,_0x363b63,_0x3c0511,_0x480231){return _0x1b1adc(_0x1d25de-0x72,_0x363b63-_0x27abf4._0x246805,_0x3c0511-0x17d,_0x480231);}try{yield*this[_0x40d280(_0x185768._0x9d658e,0x6a6,0x667,_0x185768._0x22fde8)](_0x5eaa5d,_0x1decd7);}catch(_0x4685ff){if(_0x4685ff instanceof OpenAiApiError)throw this[_0x40d280(0x63b,_0x185768._0x48e9b1,_0x185768._0xa20d6b,0x79a)](_0x4685ff);throw _0x4685ff;}}[_0x1b1adc(0x44,-0x16,0x2,-0xa0)](_0x493a36,_0xe20a31){const _0x4cf4a5={_0x48c500:0x1de,_0x332ee5:0x109};function _0x1ab7d(_0x14bcad,_0x1eb4a1,_0x5c7435,_0x3a4e67){return _0x1b98ce(_0x5c7435,_0x1eb4a1- -0x2b1,_0x5c7435-_0x4cf4a5._0x48c500,_0x3a4e67-_0x4cf4a5._0x332ee5);}return this[_0x1ab7d(0x371,0x2d3,0x2b6,0x394)](_0x493a36,_0xe20a31);}[_0x1b98ce(0x602,0x5fe,0x547,0x5c7)](_0x22fd04,_0x317f0c){return this['chatStream'](_0x22fd04,_0x317f0c);}['getResponsesSocketSessionState'](_0x57c335){const _0x385dc9={_0x7cfe25:0x3fd,_0x58eb0d:0x3c5,_0xf852a2:0x310,_0x451e0d:0x19f,_0x22f3af:0x155,_0x38d6f8:0xd9,_0x3e9136:0x290,_0x3eadf3:0x1b9,_0x4535cb:0x23f,_0x45e549:0x11f,_0x2e6401:0x148,_0xe402f1:0x3e,_0x10e193:0x18d,_0x56c9ed:0x260,_0x2201c7:0x241},_0x5735c6={_0x1b6840:0x23f,_0x10699c:0x157,_0x1c8ae8:0x69},_0x34d35c={_0x458298:0x176,_0x5f2e35:0x42},_0x4c5a90=this[_0x35e2c1(_0x385dc9._0x7cfe25,_0x385dc9._0x58eb0d,_0x385dc9._0xf852a2,0x2e2)](_0x57c335);let _0x3d2f5c=this[_0x46bdbe(_0x385dc9._0x451e0d,_0x385dc9._0x22f3af,_0x385dc9._0x38d6f8,0x1d1)][_0x46bdbe(_0x385dc9._0x3e9136,_0x385dc9._0x3eadf3,_0x385dc9._0x4535cb,_0x385dc9._0x45e549)](_0x4c5a90);!_0x3d2f5c&&(_0x3d2f5c={'key':_0x4c5a90,'locked':![],'pending':Promise[_0x46bdbe(_0x385dc9._0x2e6401,0xf1,_0x385dc9._0xe402f1,0x18c)]()},this[_0x46bdbe(_0x385dc9._0x10e193,0x155,0x21e,0x21b)][_0x35e2c1(_0x385dc9._0x56c9ed,0x2bd,0x263,_0x385dc9._0x2201c7)](_0x4c5a90,_0x3d2f5c));function _0x46bdbe(_0x5d41f5,_0x27eb13,_0x2ae543,_0x6b8572){return _0x1b1adc(_0x5d41f5-0x1af,_0x27eb13-_0x34d35c._0x458298,_0x2ae543-_0x34d35c._0x5f2e35,_0x6b8572);}function _0x35e2c1(_0x25b8b3,_0x17a024,_0x429dcc,_0x3d015a){return _0x1b98ce(_0x25b8b3,_0x17a024- -_0x5735c6._0x1b6840,_0x429dcc-_0x5735c6._0x10699c,_0x3d015a-_0x5735c6._0x1c8ae8);}return _0x3d2f5c;}[_0x1b98ce(0x5e8,0x64b,0x58a,0x738)](_0x4c5777){const _0x1ac321={_0x467cb3:0x4cd,_0x963ae7:0x584,_0x4537a1:0x5d9,_0x5c6316:0x4b2,_0x3dbc08:0x5a7,_0x2673c6:0x499,_0x1b8c52:0x4ce,_0x2a1236:0x3cc,_0x25a1d4:0x4ba},_0x4dec16={_0x40b2b0:0x4f5},_0x13e9b3={_0x21a485:0x164,_0xa22d88:0x122};function _0x3fab5a(_0x25b0f7,_0x1a261d,_0x1008d6,_0x839d6c){return _0x1b98ce(_0x839d6c,_0x25b0f7- -0x173,_0x1008d6-_0x13e9b3._0x21a485,_0x839d6c-_0x13e9b3._0xa22d88);}function _0x186e20(_0x569edb,_0x374f0b,_0x12b48d,_0x47963f){return _0x1b1adc(_0x569edb-0x1e9,_0x12b48d-_0x4dec16._0x40b2b0,_0x12b48d-0x83,_0x569edb);}if(_0x4c5777[_0x186e20(0x4df,0x43f,0x402,0x497)]||_0x4c5777[_0x186e20(0x4ad,0x593,0x559,_0x1ac321._0x467cb3)]||_0x4c5777['socket'])return;this['responsesSocketSessions'][_0x186e20(_0x1ac321._0x963ae7,_0x1ac321._0x4537a1,0x538,_0x1ac321._0x5c6316)](_0x4c5777['key'])===_0x4c5777&&this['responsesSocketSessions'][_0x186e20(_0x1ac321._0x3dbc08,_0x1ac321._0x2673c6,_0x1ac321._0x1b8c52,0x492)](_0x4c5777[_0x3fab5a(_0x1ac321._0x2a1236,0x2dc,0x3d8,_0x1ac321._0x25a1d4)]);}[_0x1b98ce(0x6b2,0x604,0x6e3,0x541)](_0x1c6608){const _0x5c38d7={_0xc33032:0xcb,_0xa12a72:0xb7,_0x1ef58b:0x18b},_0x3734aa={_0x445be5:0x1b};function _0x57d4ea(_0x2eb896,_0x5f3843,_0xb28eeb,_0x964ca5){return _0x1b1adc(_0x2eb896-0x50,_0xb28eeb- -_0x3734aa._0x445be5,_0xb28eeb-_0x3734aa._0x445be5,_0x5f3843);}return''+trimTrailingSlashes(this[_0x57d4ea(-0x30,-_0x5c38d7._0xc33032,-_0x5c38d7._0xa12a72,-_0x5c38d7._0x1ef58b)])+this['responsesPath']+'::'+_0x1c6608;}async['acquireResponsesSocketLock'](_0x5bfdb0){const _0xf11446={_0x31a5a6:0x97,_0x5e3b60:0x12f,_0x2af8fe:0x81,_0x9dc4bb:0x31e,_0x50f9ae:0x2d4,_0x489712:0xca,_0x4fa806:0xed,_0x195b19:0xb4,_0x4f6ab0:0xf1,_0x4dd9f8:0x56,_0x16abd6:0x1e6,_0x40487f:0x2a4,_0x173981:0x23c},_0x512d44={_0x2d3dcb:0x27d,_0x36e601:0x52c,_0x43dd10:0x4df},_0x1f4607={_0x5a39b0:0x131},_0x249806={_0x53fed9:0x12f,_0x3e6657:0xd2},_0x42ed68={_0x3c439a:0x47},_0x5c8946={_0x596b1e:0x1db},_0x25a21b=_0x5bfdb0[_0x134530(-_0xf11446._0x31a5a6,-0xeb,-_0xf11446._0x5e3b60,-_0xf11446._0x2af8fe)][_0x2e0f7f(_0xf11446._0x9dc4bb,_0xf11446._0x50f9ae,0x24c,0x2b6)](()=>{});let _0xe9560a;function _0x2e0f7f(_0x239687,_0x384efb,_0xa75d78,_0x47e96d){return _0x1b1adc(_0x239687-_0x5c8946._0x596b1e,_0x47e96d-0x32f,_0xa75d78-0x142,_0x384efb);}const _0x2cc3c3=new Promise(_0x3b3848=>{_0xe9560a=_0x3b3848;});_0x5bfdb0[_0x134530(-_0xf11446._0x489712,-0x85,-0x12f,-_0xf11446._0x4fa806)]=_0x25a21b[_0x134530(-_0xf11446._0x195b19,-_0xf11446._0x4f6ab0,-0x96,-_0xf11446._0x4dd9f8)](()=>_0x2cc3c3),await _0x25a21b,_0x5bfdb0[_0x2e0f7f(_0xf11446._0x16abd6,0x24b,_0xf11446._0x40487f,_0xf11446._0x173981)]=!![];function _0x134530(_0x443920,_0x4bdac1,_0x4c5506,_0x5058fc){return _0x1b98ce(_0x4bdac1,_0x4c5506- -0x630,_0x4c5506-0x66,_0x5058fc-_0x42ed68._0x3c439a);}return()=>{_0x5bfdb0[_0x42f5a3(0x30e,0x26f,0x2a8,_0x512d44._0x2d3dcb)]=![],_0xe9560a?.();function _0x42f5a3(_0x33bcf3,_0x12166,_0x5a9767,_0x2a7b43){return _0x2e0f7f(_0x33bcf3-0x1e4,_0x12166,_0x5a9767-_0x249806._0x53fed9,_0x33bcf3-_0x249806._0x3e6657);}function _0x386c6e(_0x134c66,_0x4cd2f3,_0x4f58f8,_0x228f67){return _0x134530(_0x134c66-_0x1f4607._0x5a39b0,_0x4cd2f3,_0x228f67- -0x6f,_0x228f67-0x15a);}this[_0x42f5a3(0x463,_0x512d44._0x36e601,0x3ad,_0x512d44._0x43dd10)](_0x5bfdb0);};}async[_0x1b1adc(-0x74,0x41,0x5e,0xf1)](_0x8f040e,_0x4bd3a0){const _0x458892={_0x5d38ae:0xb7,_0xc4c421:0x28a,_0x403b65:0x309,_0x31a206:0x153,_0x55a8d5:0xb2,_0x20f0cf:0x104,_0x176999:0x34c,_0x200a39:0x2f1,_0x48539a:0x417,_0x2f64ed:0x491,_0x52c738:0x4be,_0x497b72:0xf9,_0x42efae:0x78,_0x3dd5be:0x2c,_0x1a0ca3:0x4da,_0x594a2c:0x599,_0xb1bfb:0x1f,_0x4f9e7e:0x55,_0x4331a3:0xbc},_0x4f09bd={_0x2b7df7:0xa3},_0x5f52d4={_0x1a976d:0x1bf};function _0x1d8ddb(_0x868334,_0x35ab7d,_0x24039a,_0xfee64d){return _0x1b98ce(_0x868334,_0x24039a- -0x630,_0x24039a-0x5,_0xfee64d-_0x5f52d4._0x1a976d);}function _0x2a4920(_0x96b032,_0x1cf048,_0x565633,_0x7cd654){return _0x1b1adc(_0x96b032-_0x4f09bd._0x2b7df7,_0x1cf048-0x408,_0x565633-0x121,_0x7cd654);}const _0x4edbbb=this[_0x1d8ddb(-_0x458892._0x5d38ae,0xcd,0x13,0xd)](_0x8f040e),_0x24ba2d=toModelRequest(_0x4edbbb),_0x5a4fde=await prepareProviderRequest(_0x24ba2d,{'sessionManager':this['sessionManager'],'requestMutators':this[_0x2a4920(_0x458892._0xc4c421,0x340,_0x458892._0x403b65,0x274)],'signal':_0x4bd3a0}),_0x5b077a=toChatRequest(_0x5a4fde[_0x1d8ddb(-0xd8,-0x9f,-0x142,-_0x458892._0x31a206)]),_0x106966=this[_0x1d8ddb(-_0x458892._0x55a8d5,-0x1c8,-_0x458892._0x20f0cf,-0xf0)][_0x2a4920(0x421,_0x458892._0x176999,_0x458892._0x200a39,0x410)](this['apiKey'],_0x5a4fde[_0x2a4920(_0x458892._0x48539a,_0x458892._0x2f64ed,0x3e7,_0x458892._0x52c738)]);if(!_0x106966)throw this[_0x1d8ddb(_0x458892._0x497b72,-_0x458892._0x42efae,_0x458892._0x3dd5be,-0x15)]();return{'baseUrl':this['providerAdapter'][_0x2a4920(0x45b,_0x458892._0x1a0ca3,0x48e,_0x458892._0x594a2c)](this[_0x1d8ddb(-0x9f,-_0x458892._0xb1bfb,-0xe3,-_0x458892._0x4f9e7e)],_0x5a4fde[_0x1d8ddb(_0x458892._0x4331a3,0xdb,0x42,-0x3)]),'credential':_0x106966,'request':_0x5b077a,'session':_0x5a4fde[_0x2a4920(0x446,0x491,0x4ab,0x403)]};}[_0x1b1adc(-0x7b,0x65,-0x30,0x50)](_0x3b88a7,_0x14edd2,_0x2a53b5={}){const _0x114020={_0x1c431e:0x518,_0x2103d4:0x4fa,_0x22ed66:0x432,_0x5819be:0x512,_0x136fee:0x510,_0x54a933:0x3e4,_0x5b8e87:0x375,_0x54b44e:0x3ca,_0x149b38:0x3ed,_0x52270d:0x58a,_0xa4f54e:0x5d6,_0x20c856:0x5ce,_0x4e0ac2:0x5c8,_0x137f03:0x5ea,_0x5b2755:0x641,_0x2d3982:0x5f9,_0x4e4359:0x781,_0x223b16:0x32c,_0x5446d8:0x34b,_0x502f9e:0x265},_0x17c24c={_0x547788:0x68,_0x4d5458:0x379},_0x273eca={_0x2361fd:0x5a,_0x1d0532:0x5d6,_0x3462cb:0x60};if(!_0x2a53b5[_0xbfa4d5(0x561,_0x114020._0x1c431e,_0x114020._0x2103d4,0x5b3)]){const _0x270fcc=this[_0xbfa4d5(_0x114020._0x22ed66,_0x114020._0x5819be,_0x114020._0x136fee,0x541)](_0x3b88a7);if(_0x270fcc&&_0x14edd2[_0x51ad45(0x375,0x2a1,0x3ad,_0x114020._0x54a933)]&&_0x270fcc['responseId']===_0x14edd2[_0x51ad45(_0x114020._0x5b8e87,_0x114020._0x54b44e,0x42c,_0x114020._0x149b38)]){const _0x3f0d5d=toOpenAiResponsesRequest({..._0x3b88a7,'messages':_0x3b88a7[_0xbfa4d5(_0x114020._0x52270d,0x556,_0x114020._0xa4f54e,0x62c)][_0xbfa4d5(0x4c6,0x4cc,0x585,_0x114020._0x20c856)](_0x270fcc[_0xbfa4d5(0x5d9,_0x114020._0x4e0ac2,_0x114020._0x137f03,0x60b)]+0x1)})[_0xbfa4d5(_0x114020._0x5b2755,_0x114020._0x2d3982,0x6ae,_0x114020._0x4e4359)];return{'event':createOpenAiResponsesWebSocketEvent(_0x3b88a7,{'input':_0x3f0d5d,'previousResponseId':_0x270fcc['responseId']}),'previousResponseId':_0x270fcc[_0x51ad45(_0x114020._0x223b16,_0x114020._0x5446d8,_0x114020._0x502f9e,0x26d)]};}}function _0xbfa4d5(_0xd407f7,_0x1961e7,_0x299928,_0x29c66e){return _0x1b1adc(_0xd407f7-_0x273eca._0x2361fd,_0x299928-_0x273eca._0x1d0532,_0x299928-_0x273eca._0x3462cb,_0x1961e7);}function _0x51ad45(_0x257fae,_0x548c77,_0x25ec76,_0x2d44f3){return _0x1b1adc(_0x257fae-_0x17c24c._0x547788,_0x257fae-_0x17c24c._0x4d5458,_0x25ec76-0x2d,_0x548c77);}return{'event':createOpenAiResponsesWebSocketEvent(_0x3b88a7)};}[_0x1b1adc(-0xa0,-0xc6,-0x10a,-0xae)](_0x3b9063){const _0x59d522={_0x210e46:0x1c9,_0x30dc3d:0x257,_0xefb4a3:0x313,_0x2965df:0x175,_0x4aa688:0x15e,_0x263553:0x1ce,_0x554343:0x226,_0x1eef11:0x3ef,_0x2b5162:0x41a,_0x527137:0x3f7,_0x557741:0x3bf,_0x2cc692:0x408,_0x3887ce:0x328,_0x54e765:0x39f,_0x28e8d4:0x2ef,_0x39e22e:0x416,_0x368f12:0x468,_0x3893be:0xd3,_0x1bc528:0x18e},_0x33e893={_0xf2bbcc:0x392},_0x5021d7={_0x5124eb:0x1fa};function _0x235ca2(_0x158b20,_0x152abe,_0x57f0cb,_0x1f0d39){return _0x1b98ce(_0x57f0cb,_0x152abe- -_0x5021d7._0x5124eb,_0x57f0cb-0x1be,_0x1f0d39-0x1d7);}for(let _0x548a12=_0x3b9063[_0x3dd85f(_0x59d522._0x210e46,_0x59d522._0x30dc3d,_0x59d522._0xefb4a3,_0x59d522._0x2965df)][_0x3dd85f(0xaa,_0x59d522._0x4aa688,_0x59d522._0x263553,_0x59d522._0x554343)]-0x1;_0x548a12>=0x0;_0x548a12-=0x1){const _0xfd11a6=_0x3b9063[_0x235ca2(0x4d7,_0x59d522._0x1eef11,0x3d1,_0x59d522._0x2b5162)][_0x548a12],_0x392eac=_0xfd11a6[_0x3dd85f(_0x59d522._0x527137,0x318,_0x59d522._0x557741,_0x59d522._0x2cc692)]===_0x235ca2(_0x59d522._0x3887ce,_0x59d522._0x54e765,0x325,_0x59d522._0x28e8d4)?_0xfd11a6[_0x235ca2(0x41d,_0x59d522._0x39e22e,_0x59d522._0x368f12,0x35d)]?.[_0x3dd85f(_0x59d522._0x3893be,_0x59d522._0x1bc528,0x21f,0x23e)]:void 0x0;if(_0x392eac)return{'messageIndex':_0x548a12,'responseId':_0x392eac};}function _0x3dd85f(_0x45bd77,_0x4d4451,_0xaafc5b,_0x1bb040){return _0x1b98ce(_0xaafc5b,_0x4d4451- -_0x33e893._0xf2bbcc,_0xaafc5b-0xd2,_0x1bb040-0x42);}return void 0x0;}[_0x1b98ce(0x605,0x646,0x5fa,0x6d3)](_0xe227f6){const _0x3ce5de={_0x198e0e:0x1cc,_0x3ceef8:0x2d4},_0xf4884a={_0x5a7ef8:0x1e5,_0x5c9b54:0x171};function _0x3a00d6(_0x35fcdb,_0x4c0c76,_0xd64260,_0x2160b1){return _0x1b1adc(_0x35fcdb-_0xf4884a._0x5a7ef8,_0x2160b1-0x17c,_0xd64260-_0xf4884a._0x5c9b54,_0x4c0c76);}return _0xe227f6 instanceof ProviderStreamEventError&&(_0xe227f6[_0x3a00d6(0x239,_0x3ce5de._0x198e0e,_0x3ce5de._0x3ceef8,0x1e8)]==='previous_response_not_found'||_0xe227f6['code']==='websocket_connection_limit_reached');}[_0x1b1adc(0x6,0xba,-0x9,0x13a)](_0x127a41){const _0x4d3251={_0x2eba91:0x567,_0x16a08e:0x676,_0x1ae07b:0x3d,_0x361e29:0x46,_0x44ce84:0x9d,_0x424994:0x2a,_0x13fa60:0x10d,_0x24ccf4:0x19f,_0x260004:0x91,_0x3454ee:0x56b,_0xfe2bd7:0x5eb},_0x23e6b1={_0x3a9092:0x189,_0x432d35:0x4a},_0x31097c={_0x252136:0x12},_0x11ea81=_0x127a41[_0x222f00(_0x4d3251._0x2eba91,0x5bd,_0x4d3251._0x16a08e,0x5ba)];function _0x222f00(_0x1ed2ea,_0x5d522c,_0x2bab4a,_0x5718b0){return _0x1b1adc(_0x1ed2ea-_0x31097c._0x252136,_0x5d522c-0x5f2,_0x2bab4a-0x13e,_0x2bab4a);}function _0x54a629(_0x1c1650,_0x46f3fd,_0x12b766,_0x1dcf6a){return _0x1b1adc(_0x1c1650-_0x23e6b1._0x3a9092,_0x1c1650-_0x23e6b1._0x432d35,_0x12b766-0x188,_0x12b766);}_0x127a41[_0x54a629(0x15,-0x2b,0x8f,_0x4d3251._0x1ae07b)]=void 0x0,_0x127a41['connecting']=void 0x0,_0x127a41[_0x54a629(_0x4d3251._0x361e29,-0x75,_0x4d3251._0x44ce84,_0x4d3251._0x424994)]=void 0x0,_0x11ea81?.[_0x54a629(_0x4d3251._0x13fa60,_0x4d3251._0x24ccf4,0x107,_0x4d3251._0x260004)]===WebSocket[_0x222f00(0x662,0x584,_0x4d3251._0x3454ee,_0x4d3251._0xfe2bd7)]&&_0x11ea81['close'](0x3e8,_0x222f00(0x62e,0x5d3,0x63c,0x59a));}async[_0x1b98ce(0x6f1,0x62b,0x61e,0x672)](_0x3dfdde,_0x1f62e5,_0x3709c7,_0x204caf,_0x5ae2df){const _0x5a39c3={_0x3f30d:0x2b7,_0xf0725b:0x1ca,_0x2a4e3a:0x3fd,_0x4f25dd:0x263,_0x3b1ea5:0x244,_0x2dffa5:0x34f,_0x1ca335:0x323,_0x350612:0x259,_0x1ec035:0x27a,_0x4847b3:0x2d5,_0x1732f6:0x295},_0x14aa6f={_0x3854f2:0x388,_0x122983:0x43e,_0x5b9939:0x40c,_0x59df54:0x2f9,_0x228d99:0x397,_0x5440c9:0x2eb,_0x1292b3:0x25c,_0x18019b:0x399,_0x19a309:0x437,_0x21bdb2:0x427,_0x32780c:0x3a8,_0x2f5b21:0x3f4,_0x28edc0:0x29c,_0x546892:0x1d6,_0xbec0c4:0x2c2,_0x3e2407:0x1c0,_0x3239af:0x50d,_0x51821a:0x3f1,_0xb61cda:0x41a,_0x59acab:0x333,_0x263d85:0x3d0,_0x3d2e53:0x2e2,_0x3e69e9:0x1b5,_0x2167b5:0x238,_0x3910ee:0x4a3,_0xb0def6:0x42b,_0x3c86ec:0x2ca,_0x1278ca:0x487,_0x9d2a5c:0x378,_0x298dd6:0x590,_0x400726:0x4d3,_0x1a1251:0x37f,_0x5b7f6d:0x2da,_0x137b42:0x28e,_0xe3998b:0x1ac,_0x5e788c:0x22d},_0x108f77={_0x56938c:0xf,_0x5a081a:0x59,_0x2de399:0x443,_0x53c78d:0x4bb,_0x3ade40:0x52e,_0x397aa4:0x541,_0x5c16a1:0x5e9,_0x4d1f27:0x5c5,_0x49e006:0x6a8},_0x5490a1={_0x2bff5e:0x90,_0x10b024:0x2c8};if(_0x1f62e5[_0x4f9bb6(0x197,_0x5a39c3._0x3f30d,_0x5a39c3._0xf0725b,0x1b9)]?.[_0x2774ba(0x3d7,0x38b,_0x5a39c3._0x2a4e3a,0x2d0)]===WebSocket['OPEN'])return _0x1f62e5['socket'];if(_0x1f62e5[_0x4f9bb6(0x335,0x303,_0x5a39c3._0x4f25dd,_0x5a39c3._0x3b1ea5)])return await _0x1f62e5[_0x2774ba(_0x5a39c3._0x2dffa5,0x32c,_0x5a39c3._0x1ca335,_0x5a39c3._0x350612)];function _0x4f9bb6(_0x4a9ca8,_0x10ca33,_0xa37f19,_0xca8f48){return _0x1b98ce(_0x4a9ca8,_0xa37f19- -0x3ea,_0xa37f19-0x113,_0xca8f48-0xa);}function _0x2774ba(_0x1ed207,_0x49e2d6,_0x356847,_0x5e1fb9){return _0x1b1adc(_0x1ed207-_0x5490a1._0x2bff5e,_0x49e2d6-_0x5490a1._0x10b024,_0x356847-0xb2,_0x356847);}_0x1f62e5['connecting']=((async()=>{const _0xb02378={_0x57df9a:0x118,_0x10d8bb:0x68},_0x399f59={_0xe29a09:0x36,_0x574ba9:0xfe},_0x2cf925={_0x48749b:0x4f},_0x4aa995=await this[_0x10183b(0x361,_0x14aa6f._0x3854f2,_0x14aa6f._0x122983,_0x14aa6f._0x5b9939)]({'request':_0x3709c7['request'],'body':_0x204caf,'credential':_0x3709c7[_0x321c51(0x26e,0x2a9,0x204,_0x14aa6f._0x59df54)],'session':_0x3709c7[_0x321c51(0x3c1,0x3d2,_0x14aa6f._0x228d99,_0x14aa6f._0x5440c9)],'stream':!![]},{'accept':_0x321c51(0x2cb,0x1e2,0x259,_0x14aa6f._0x1292b3),'includeContentType':![]});_0x4aa995['delete']('accept');const _0x1d5aa8=this['webSocketFactory']({'headers':Object[_0x321c51(_0x14aa6f._0x18019b,_0x14aa6f._0x19a309,_0x14aa6f._0x21bdb2,_0x14aa6f._0x32780c)](_0x4aa995[_0x321c51(0x3d9,0x4bf,0x433,_0x14aa6f._0x2f5b21)]()),'url':(''+_0x3709c7[_0x321c51(_0x14aa6f._0x28edc0,_0x14aa6f._0x546892,_0x14aa6f._0xbec0c4,_0x14aa6f._0x3e2407)]+this['responsesPath'])['replace'](/^http:/,_0x10183b(0x454,_0x14aa6f._0x3239af,_0x14aa6f._0x51821a,0x480))['replace'](/^https:/,_0x10183b(_0x14aa6f._0xb61cda,_0x14aa6f._0x59acab,_0x14aa6f._0x263d85,0x3e0))}),_0x490687=()=>{function _0x44235f(_0x135726,_0x2cf7a8,_0x59bdb7,_0x5b5500){return _0x10183b(_0x59bdb7- -0x382,_0x2cf7a8-_0x2cf925._0x48749b,_0x5b5500,_0x5b5500-0x128);}_0x1f62e5[_0x44235f(-_0x108f77._0x56938c,0x55,0x29,_0x108f77._0x5a081a)]===_0x1d5aa8&&(_0x1f62e5[_0x542fc8(_0x108f77._0x2de399,_0x108f77._0x53c78d,_0x108f77._0x3ade40,_0x108f77._0x397aa4)]=void 0x0,_0x1f62e5['lastResponseId']=void 0x0);function _0x542fc8(_0x2b120c,_0x572999,_0x22bc6a,_0x68da84){return _0x321c51(_0x22bc6a-0x22b,_0x572999-_0x399f59._0xe29a09,_0x572999,_0x68da84-_0x399f59._0x574ba9);}this[_0x542fc8(0x4ef,_0x108f77._0x5c16a1,_0x108f77._0x4d1f27,_0x108f77._0x49e006)](_0x1f62e5);};function _0x321c51(_0x4e4ed7,_0x40a585,_0x5cc6c9,_0x4f52f5){return _0x2774ba(_0x4e4ed7-0x19f,_0x4e4ed7-0x70,_0x5cc6c9,_0x4f52f5-0x1f0);}_0x1d5aa8[_0x10183b(0x34b,0x26b,0x287,_0x14aa6f._0x3d2e53)](_0x321c51(0x295,0x23f,_0x14aa6f._0x3e69e9,_0x14aa6f._0x2167b5),_0x490687);function _0x10183b(_0x2fd82b,_0x333b45,_0x3fd1f1,_0x1c6ea3){return _0x2774ba(_0x2fd82b-0x35,_0x2fd82b-_0xb02378._0x57df9a,_0x3fd1f1,_0x1c6ea3-_0xb02378._0x10d8bb);}try{return throwIfAborted(_0x5ae2df),_0x1d5aa8[_0x10183b(_0x14aa6f._0x3910ee,_0x14aa6f._0xb0def6,0x570,0x444)]!==WebSocket[_0x321c51(_0x14aa6f._0x3c86ec,0x360,0x2d2,0x316)]&&await waitForWebSocketOpen(_0x1d5aa8,_0x5ae2df),throwIfAborted(_0x5ae2df),_0x1f62e5[_0x10183b(0x3ab,_0x14aa6f._0x1278ca,_0x14aa6f._0x9d2a5c,0x317)]=_0x1d5aa8,_0x1d5aa8;}catch(_0x50a9ee){_0x490687();_0x1d5aa8[_0x10183b(0x4a3,_0x14aa6f._0x298dd6,_0x14aa6f._0x400726,0x445)]===WebSocket[_0x321c51(0x2ca,_0x14aa6f._0x1a1251,0x2a0,_0x14aa6f._0x5b7f6d)]&&_0x1d5aa8[_0x321c51(0x295,_0x14aa6f._0x137b42,_0x14aa6f._0xe3998b,_0x14aa6f._0x5e788c)](0x3e8,'connect_failed');throw _0x50a9ee;}})());try{return await _0x1f62e5[_0x2774ba(_0x5a39c3._0x1ec035,0x32c,_0x5a39c3._0x4847b3,_0x5a39c3._0x1732f6)];}finally{_0x1f62e5[_0x4f9bb6(0x275,0x2ee,0x263,0x283)]=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x23df8f,_0x4db21a){const _0x19a856={_0x1a2d87:0xd4,_0x154c92:0x21,_0x2980d2:0x115,_0xfbbf3a:0x57b,_0x40da82:0x60b,_0x3dd364:0x44e,_0x12de7d:0x521,_0x1bfec5:0x4d5,_0x724df3:0x580,_0xe212ea:0x30,_0x4191be:0x50,_0x419995:0xc0,_0x239de0:0xc0,_0x27f06b:0x5ec,_0x4588f9:0x5d5,_0x57611f:0x72,_0x1c6f5f:0x66,_0x31ddce:0x134,_0x442590:0x11c,_0x1d4b63:0xf1,_0x217d20:0x7c,_0x301657:0x188,_0x2a7b46:0x91,_0x5a0350:0x134,_0x217ca1:0xc3,_0x3589f9:0x1a3,_0x44aa48:0xdf,_0x148b30:0x97,_0x19069a:0x4,_0x34d093:0x3d,_0x38417e:0xe7,_0x47cc7a:0x547,_0x2beaa9:0x612,_0x4f3bd7:0x622,_0x19f65e:0x4d7,_0x54bec8:0x4d1,_0xcf2e83:0x462,_0x3fdb84:0x508,_0x8753de:0x494,_0x1d8f6f:0x4f7},_0x3f5dfc={_0x5330aa:0x529,_0x4857d8:0x11c},_0x23ac33={_0x14dd0f:0x1c8,_0xbd6029:0x7a,_0x1ff5b2:0xe0},_0x3c39dc=this[_0x1fa890(0x168,_0x19a856._0x1a2d87,_0x19a856._0x154c92,_0x19a856._0x2980d2)](_0x23df8f);function _0x1fa890(_0x2a4fa1,_0x3ea341,_0x1f66a7,_0x16a5c2){return _0x1b1adc(_0x2a4fa1-_0x23ac33._0x14dd0f,_0x3ea341-_0x23ac33._0xbd6029,_0x1f66a7-_0x23ac33._0x1ff5b2,_0x16a5c2);}const _0x529e85=this[_0x1fa890(0x1e,-0x5a,-0x105,0x6d)](_0x3c39dc[_0x12d15e(0x59c,0x58d,_0x19a856._0xfbbf3a,_0x19a856._0x40da82)][_0x12d15e(0x481,_0x19a856._0x3dd364,_0x19a856._0x12de7d,0x56e)]);function _0x12d15e(_0x349202,_0x315078,_0x105db0,_0x158ac5){return _0x1b1adc(_0x349202-0x11d,_0x105db0-_0x3f5dfc._0x5330aa,_0x105db0-_0x3f5dfc._0x4857d8,_0x315078);}const _0x2f923c=await this[_0x12d15e(0x659,_0x19a856._0x1bfec5,_0x19a856._0x724df3,0x51a)](_0x529e85);try{const _0x4f2090=this['buildResponsesSocketEvent'](_0x3c39dc,_0x529e85);try{yield*this[_0x1fa890(-0x5e,-0x3d,-0x101,_0x19a856._0xe212ea)](_0x3c39dc[_0x1fa890(_0x19a856._0x4191be,0xcc,_0x19a856._0x419995,_0x19a856._0x239de0)][_0x12d15e(_0x19a856._0x27f06b,_0x19a856._0x4588f9,_0x19a856._0x12de7d,0x4e9)],_0x529e85,_0x3c39dc,_0x4f2090['event'],_0x4db21a?.['signal']);return;}catch(_0x5406d0){if(!_0x4f2090[_0x1fa890(_0x19a856._0x57611f,-_0x19a856._0x1c6f5f,-0xed,-_0x19a856._0x31ddce)]||!this[_0x1fa890(_0x19a856._0x442590,0xd7,_0x19a856._0x1d4b63,_0x19a856._0x217d20)](_0x5406d0)){this[_0x1fa890(0x199,0x134,0x174,_0x19a856._0x301657)](_0x529e85);throw _0x5406d0;}}this[_0x1fa890(_0x19a856._0x2a7b46,_0x19a856._0x5a0350,_0x19a856._0x217ca1,0x208)](_0x529e85);const _0x3916f6=this[_0x1fa890(_0x19a856._0x3589f9,_0x19a856._0x44aa48,0xc3,_0x19a856._0x148b30)](_0x3c39dc,_0x529e85,{'forceFullReplay':!![]});yield*this[_0x1fa890(_0x19a856._0x19069a,-_0x19a856._0x34d093,-_0x19a856._0x38417e,-0x8a)](_0x3c39dc[_0x12d15e(_0x19a856._0x47cc7a,_0x19a856._0x2beaa9,0x57b,_0x19a856._0x4f3bd7)][_0x12d15e(_0x19a856._0x19f65e,0x448,0x521,_0x19a856._0x54bec8)],_0x529e85,_0x3c39dc,_0x3916f6[_0x12d15e(0x4df,_0x19a856._0xcf2e83,0x51c,_0x19a856._0x3fdb84)],_0x4db21a?.[_0x12d15e(0x5c0,_0x19a856._0x8753de,_0x19a856._0x1d8f6f,0x56c)]);}finally{_0x2f923c();}}async*[_0x1b1adc(-0xf6,-0xb7,-0xf1,-0x142)](_0x32493f,_0x149eaa,_0x256e82,_0x103912,_0x274fa6){const _0x35df83={_0x2a94ca:0x70a,_0x81a3cd:0x679,_0x5293fd:0x76,_0x58374f:0xfc,_0x1b1582:0x6af,_0xefe612:0x732,_0x22436a:0x69,_0x17abce:0x71d,_0x39e0f0:0x54,_0x255a2b:0x98,_0x555098:0xf5,_0x23d3a9:0x4c,_0x14e84f:0x5cc,_0x44e527:0x6cf,_0x4c9bf2:0x756,_0x3727b2:0x5df,_0x1b1c59:0x5a2,_0x7068bc:0x651,_0x13f36b:0x6a4,_0x13f75f:0x635,_0x53a04a:0x6e3,_0x22d491:0x2,_0x4f164c:0x48},_0x3e3041={_0x5ba964:0x100,_0x51e69d:0xb8,_0x3caa78:0x1cb},_0x1b47c6=await this[_0x1e0685(0x6e9,_0x35df83._0x2a94ca,0x646,_0x35df83._0x81a3cd)](_0x256e82,_0x274fa6),_0x2afd49=await this[_0x32628c(-_0x35df83._0x5293fd,-0x6,-0x7b,-_0x35df83._0x58374f)](_0x32493f,_0x149eaa,_0x1b47c6,_0x103912,_0x274fa6),_0x4f0560=createOpenAiResponsesStreamParser(_0x256e82);throwIfAborted(_0x274fa6),_0x2afd49[_0x1e0685(0x664,_0x35df83._0x1b1582,0x631,_0x35df83._0xefe612)](JSON[_0x32628c(-_0x35df83._0x22436a,0x39,0xb,0x1c)](_0x103912));function _0x1e0685(_0x495b92,_0x451de7,_0x48d97b,_0x5ce4a3){return _0x1b98ce(_0x451de7,_0x495b92-0xbf,_0x48d97b-0x59,_0x5ce4a3-0x136);}for await(const _0xf29a00 of iterateWebSocketMessages(_0x2afd49,_0x274fa6)){const _0x2b8f11=_0x4f0560[_0x1e0685(0x65c,0x5ea,_0x35df83._0x17abce,0x5d7)]?.(_0xf29a00)??[];yield*_0x2b8f11;if(_0x4f0560[_0x32628c(-0x7a,-0x82,-0x10d,_0x35df83._0x39e0f0)]?.())break;}if(!_0x4f0560[_0x32628c(-0x7a,-0x148,-_0x35df83._0x255a2b,_0x35df83._0x22436a)]?.())throw new Error(_0x32628c(-_0x35df83._0x555098,-_0x35df83._0x23d3a9,-0x1e5,-0xe4));const _0x36efaf=_0x4f0560[_0x1e0685(0x614,0x5a6,0x5f6,_0x35df83._0x14e84f)](),_0x1494d7=_0x36efaf[_0x1e0685(_0x35df83._0x44e527,0x61f,_0x35df83._0x4c9bf2,0x710)]?.[_0x1e0685(_0x35df83._0x3727b2,0x5e8,_0x35df83._0x1b1c59,_0x35df83._0x7068bc)]??_0x36efaf['id'];function _0x32628c(_0x1553cb,_0x53eee8,_0x7d6dde,_0x72d304){return _0x1b1adc(_0x1553cb-_0x3e3041._0x5ba964,_0x1553cb- -_0x3e3041._0x51e69d,_0x7d6dde-_0x3e3041._0x3caa78,_0x72d304);}_0x1494d7&&(_0x149eaa[_0x1e0685(_0x35df83._0x13f36b,_0x35df83._0x13f75f,_0x35df83._0x53a04a,0x6ec)]=_0x1494d7),yield{'type':_0x32628c(-_0x35df83._0x22d491,0x69,-_0x35df83._0x4f164c,0xe1),'response':_0x36efaf};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x1b98ce(0x537,0x4f7,0x582,0x440),_0x1b98ce(0x4df,0x502,0x4dd,0x44f),_0x1b98ce(0x60f,0x589,0x548,0x4b6),_0x1b98ce(0x641,0x679,0x5ed,0x741)];function isAnthropicSurface(_0x452fa1){return _0x452fa1==='anthropic-messages';}function providerFromSurface(_0x44f887){const _0x470483={_0x553c2a:0x57e,_0x4d8363:0x5f3,_0x473ebe:0x201,_0x2828dd:0x15d,_0x5dfd7d:0x532,_0x2325f0:0x3e6},_0x573af3={_0x596667:0x1cd},_0x2c5676={_0x39f3f6:0x52c};function _0x1751a5(_0x5df931,_0x153b55,_0x273104,_0x58094f){return _0x1b1adc(_0x5df931-0x102,_0x58094f-_0x2c5676._0x39f3f6,_0x273104-0xb0,_0x273104);}function _0x42a77c(_0x124707,_0x3fe7de,_0x25fe33,_0x2f861a){return _0x1b98ce(_0x124707,_0x3fe7de- -0x6a7,_0x25fe33-0xc8,_0x2f861a-_0x573af3._0x596667);}return _0x44f887[_0x1751a5(0x56f,_0x470483._0x553c2a,_0x470483._0x4d8363,0x5c4)](_0x42a77c(-_0x470483._0x473ebe,-0x126,-_0x470483._0x2828dd,-0x47))?_0x1751a5(_0x470483._0x5dfd7d,_0x470483._0x2325f0,0x57e,0x4c4):'openai';}function resolveDefaultBaseUrl(_0x284eae){const _0x5a94fd={_0x1e6bb5:0x292,_0x43df9a:0x338,_0x45b855:0x279,_0x5a9f2b:0x429,_0x35756f:0x467,_0xf1fe13:0x49a,_0x4f8a80:0x186,_0x2f133b:0xa3,_0x220be5:0x1b3},_0x5d7d4e={_0x2b7549:0x22b},_0x46d0f7={_0x8fa09:0x6,_0x2b7222:0x1bc};if(_0x284eae===_0x3ee11b(0x22b,_0x5a94fd._0x1e6bb5,0x24e,0x2cc))return getProviderProfile('anthropic')?.[_0x3ee11b(0x389,_0x5a94fd._0x43df9a,_0x5a94fd._0x45b855,0x322)]??'https://api.anthropic.com';function _0x351308(_0x20f5d4,_0x115efe,_0x36c756,_0xc32f39){return _0x1b1adc(_0x20f5d4-_0x46d0f7._0x8fa09,_0x36c756-0x149,_0x36c756-_0x46d0f7._0x2b7222,_0x115efe);}function _0x3ee11b(_0x3546d3,_0x4e3a20,_0x1a102f,_0x54c656){return _0x1b98ce(_0x3546d3,_0x54c656- -_0x5d7d4e._0x2b7549,_0x1a102f-0x19c,_0x54c656-0x142);}return getProviderProfile(_0x3ee11b(_0x5a94fd._0x5a9f2b,_0x5a94fd._0x35756f,_0x5a94fd._0xf1fe13,0x3e4))?.[_0x351308(0x15a,0xd6,0xad,_0x5a94fd._0x4f8a80)]??_0x351308(0xf3,_0x5a94fd._0x2f133b,0xea,_0x5a94fd._0x220be5);}function _0x1b1adc(_0x3cd819,_0x576219,_0x206a01,_0x16752a){return _0x58b0(_0x576219- -0x2ca,_0x16752a);}var ChatModel=class{[_0x1b98ce(0x636,0x5aa,0x5cc,0x5e8)];[_0x1b98ce(0x49b,0x4f4,0x563,0x50f)];['surface'];['provider'];['anthropicDelegate'];[_0x1b98ce(0x5e0,0x4fb,0x4de,0x5dd)];constructor(_0xb8478c={}){const _0x1c4b04={_0x352d86:0xe6,_0x593dee:0xcd,_0x31ee16:0xf4,_0x44fd4d:0x29,_0x351584:0xb1,_0x2cebe9:0x1c,_0x5af3f6:0x107,_0x5aa98a:0x1ca,_0x24c19f:0xda,_0x2baf85:0xd1,_0x5d9776:0xa5,_0x4df602:0xe9,_0x21ed81:0xf6,_0x4aa127:0x114,_0x418ed5:0x187,_0x8e01f2:0x61,_0x4cc9e7:0xa9,_0x482f41:0x101,_0x5018d8:0x134,_0x4844c8:0x14c,_0x451101:0xfa,_0x3a4b8b:0x8d,_0x111ab:0x92,_0x55ad2e:0x15e,_0xdf46c5:0x145,_0x19c85b:0xdb,_0xfc41d6:0x120,_0x5c2c2b:0x1a7,_0x52a691:0x124,_0x5503e1:0x227,_0x81a8fb:0xee,_0x298d7e:0x174,_0x20884d:0x13c,_0x18e106:0x1d7,_0x2ae9c5:0x55,_0xa09e65:0x236,_0x5c5b07:0x1b5,_0x392c3c:0x182,_0x36c4cd:0x2c,_0x583a59:0x18,_0x24438f:0x112,_0x4d902b:0x330,_0x1a8a1e:0x1bf,_0x2420c8:0x295,_0x55519e:0x6c,_0x1357ed:0x151},_0x20c8a9={_0x92e7d4:0x139},_0xfb20c8={_0x32d568:0x630};function _0x2f5214(_0x5e5368,_0x11d570,_0xa2d4a1,_0x403a44){return _0x1b98ce(_0xa2d4a1,_0x5e5368- -_0xfb20c8._0x32d568,_0xa2d4a1-0x4d,_0x403a44-0x6e);}this['model']=_0xb8478c['model']??getDefaultModel(),this[_0x2f5214(-0x13c,-_0x1c4b04._0x352d86,-_0x1c4b04._0x593dee,-0xeb)]=_0xb8478c['maxTokens']??getDefaultMaxTokens(),this[_0x2f5214(-_0x1c4b04._0x31ee16,-_0x1c4b04._0x44fd4d,-_0x1c4b04._0x351584,-_0x1c4b04._0x2cebe9)]=_0xb8478c['surface']??_0x2d9cb2(_0x1c4b04._0x5af3f6,0xff,_0x1c4b04._0x5aa98a,_0x1c4b04._0x24c19f),this[_0x2d9cb2(0x86,_0x1c4b04._0x2baf85,_0x1c4b04._0x5d9776,_0x1c4b04._0x4df602)]=providerFromSurface(this[_0x2d9cb2(0x13f,0xa7,0x4d,0x114)]);function _0x2d9cb2(_0x3ffe5d,_0x5db1ed,_0x1e0b80,_0x1975cb){return _0x1b1adc(_0x3ffe5d-_0x20c8a9._0x92e7d4,_0x1975cb-0x1c1,_0x1e0b80-0x1c1,_0x5db1ed);}const _0x1e0218=trimTrailingSlashes(_0xb8478c['baseUrl']??resolveDefaultBaseUrl(this[_0x2d9cb2(_0x1c4b04._0x21ed81,0x1ea,0x6c,_0x1c4b04._0x4aa127)]));if(isAnthropicSurface(this[_0x2f5214(-0xf4,-_0x1c4b04._0x418ed5,-0xcc,-0x15b)])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0xb8478c[_0x2f5214(-_0x1c4b04._0x8e01f2,-0x9e,-_0x1c4b04._0x4cc9e7,-_0x1c4b04._0x482f41)],'authScheme':_0xb8478c[_0x2d9cb2(0x2c8,0x209,0x368,0x28d)],'baseUrl':_0x1e0218,'fetch':_0xb8478c[_0x2d9cb2(0x78,0x70,_0x1c4b04._0x5018d8,_0x1c4b04._0x4844c8)],'headerResolver':_0xb8478c[_0x2f5214(-_0x1c4b04._0x44fd4d,-_0x1c4b04._0x451101,-0x38,0x6)],'maxTokens':this['maxTokens'],'model':this['model'],'reasoning':_0xb8478c['reasoning'],'providerSessionResolver':_0xb8478c[_0x2f5214(_0x1c4b04._0x3a4b8b,0x173,_0x1c4b04._0x111ab,_0x1c4b04._0x55ad2e)],'requestMutators':_0xb8478c[_0x2d9cb2(0x117,0x49,0x118,0xf9)]});return;}this[_0x2f5214(-0x135,-0xf3,-_0x1c4b04._0xdf46c5,-_0x1c4b04._0x19c85b)]=new OpenAiModel({'apiKey':_0xb8478c[_0x2d9cb2(_0x1c4b04._0xfc41d6,0x17b,0xf1,_0x1c4b04._0x5c2c2b)],'baseUrl':_0x1e0218,'fetch':_0xb8478c[_0x2d9cb2(_0x1c4b04._0x52a691,0x112,_0x1c4b04._0x5503e1,0x14c)],'headerResolver':_0xb8478c[_0x2d9cb2(_0x1c4b04._0x81a8fb,0x184,_0x1c4b04._0x298d7e,0x13f)],'maxTokens':this[_0x2f5214(-_0x1c4b04._0x20884d,-_0x1c4b04._0x18e106,-0x11e,-_0x1c4b04._0x2ae9c5)],'model':this[_0x2d9cb2(0x1ff,_0x1c4b04._0xa09e65,_0x1c4b04._0x5c5b07,_0x1c4b04._0x392c3c)],'reasoning':_0xb8478c[_0x2f5214(-0xb8,-_0x1c4b04._0x36c4cd,-_0x1c4b04._0x583a59,-_0x1c4b04._0x24438f)],'providerSessionResolver':_0xb8478c[_0x2d9cb2(_0x1c4b04._0x4d902b,0x257,_0x1c4b04._0x1a8a1e,_0x1c4b04._0x2420c8)],'requestMutators':_0xb8478c[_0x2d9cb2(_0x1c4b04._0x55519e,_0x1c4b04._0x1357ed,0x1c9,0xf9)],'webSocketFactory':_0xb8478c[_0x2f5214(0x6,0x1,0x17,0xa)]});}[_0x1b98ce(0x549,0x5e8,0x5b0,0x639)](){const _0x4a6897={_0x34e403:0x522,_0x88d313:0x510},_0x436821={_0x27779f:0xbc,_0x21efda:0x412,_0x19d99e:0xdf},_0x2e1d85={_0x94bf84:0x4a4};function _0x1c1301(_0x16ff0c,_0x1b9e97,_0x3f71e2,_0x1e0841){return _0x1b1adc(_0x16ff0c-0x3a,_0x1b9e97-_0x2e1d85._0x94bf84,_0x3f71e2-0x173,_0x16ff0c);}function _0x4db762(_0x426a7e,_0x411c81,_0x20a936,_0x24096c){return _0x1b1adc(_0x426a7e-_0x436821._0x27779f,_0x20a936-_0x436821._0x21efda,_0x20a936-_0x436821._0x19d99e,_0x24096c);}if(!this[_0x1c1301(0x5f5,0x529,0x541,0x5b9)])throw new Error(_0x1c1301(_0x4a6897._0x34e403,0x523,0x4e2,_0x4a6897._0x88d313)+this['surface']);return this['anthropicDelegate'];}[_0x1b98ce(0x648,0x629,0x54f,0x5fb)](){const _0x430f02={_0x21b32c:0x4fe,_0x463ae6:0x42d,_0x4cbc1e:0x592},_0x41fc4c={_0x596843:0xa9,_0x10d58d:0x1cb},_0x5d4900={_0x398f95:0x5b2,_0x3a5a1e:0x12};if(!this[_0x2323fb(0x4c4,0x53c,_0x430f02._0x21b32c,0x542)])throw new Error('OpenAI\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x2323fb(0x505,_0x430f02._0x463ae6,_0x430f02._0x4cbc1e,0x5ab)]);function _0x2323fb(_0x442e52,_0x5ee0ba,_0xaa274b,_0x4dfa9a){return _0x1b1adc(_0x442e52-0x87,_0x442e52-_0x5d4900._0x398f95,_0xaa274b-_0x5d4900._0x3a5a1e,_0xaa274b);}function _0x377ce2(_0x28ca01,_0x4f710f,_0x9f8a3a,_0x4c92ac){return _0x1b1adc(_0x28ca01-_0x41fc4c._0x596843,_0x4c92ac-0x246,_0x9f8a3a-_0x41fc4c._0x10d58d,_0x9f8a3a);}return this['openAiDelegate'];}[_0x1b98ce(0x662,0x5d3,0x503,0x548)](_0x48b9ef,_0xacc5d4){const _0x459495={_0x54fe69:0x180,_0x18a2ff:0x17e,_0x15a4fd:0xb7,_0x2fd5f4:0x18d,_0x289ffd:0x208,_0xb9a388:0x2c9,_0x3de629:0x22d,_0x2e8c49:0x297,_0x24a4f8:0xba,_0x57f989:0x2,_0x14d213:0x41,_0x232774:0xc0,_0x43d530:0x105,_0x3472f5:0x1,_0x1000aa:0x131,_0xd84709:0x191,_0x404e37:0xbd},_0x185c5c={_0x2b8c29:0x1ed};function _0x344ea4(_0x103534,_0x3a24b7,_0x56a9f5,_0xe8b61b){return _0x1b98ce(_0xe8b61b,_0x56a9f5- -0x677,_0x56a9f5-0x17d,_0xe8b61b-0x88);}function _0x48a9ed(_0x3df36d,_0x3297bc,_0x1b2756,_0x34187d){return _0x1b1adc(_0x3df36d-0x87,_0x3297bc-_0x185c5c._0x2b8c29,_0x1b2756-0xce,_0x34187d);}switch(this[_0x344ea4(-0x6c,-0x17d,-0x13b,-0x7e)]){case _0x344ea4(-0x11b,-0x15e,-_0x459495._0x54fe69,-0x10b):return this[_0x48a9ed(0x2aa,0x1ec,_0x459495._0x18a2ff,0x217)]()['complete'](_0x48b9ef,_0xacc5d4);case _0x48a9ed(_0x459495._0x15a4fd,_0x459495._0x2fd5f4,0x120,_0x459495._0x289ffd):return this[_0x48a9ed(_0x459495._0xb9a388,_0x459495._0x3de629,_0x459495._0x2e8c49,0x1eb)]()['response'](_0x48b9ef,_0xacc5d4);case _0x344ea4(-0xd5,_0x459495._0x24a4f8,_0x459495._0x57f989,-_0x459495._0x14d213):return this[_0x344ea4(-_0x459495._0x232774,-_0x459495._0x43d530,-0x4e,_0x459495._0x3472f5)]()[_0x344ea4(-_0x459495._0x1000aa,-_0x459495._0xd84709,-_0x459495._0x404e37,-0x72)](_0x48b9ef,_0xacc5d4);default:return this[_0x344ea4(-0x133,-0x63,-0x4e,0xa2)]()['chatComplete'](_0x48b9ef,_0xacc5d4);}}[_0x1b98ce(0x641,0x5fe,0x6ea,0x589)](_0x5bfdca,_0x1ff7fb){const _0x571184={_0xe5cbba:0x3a9,_0x3bb63d:0x2c0,_0x229bb3:0x2f2,_0x34f2da:0x364,_0x5c5351:0x3f5,_0x1d4a69:0x111,_0x432650:0xe2,_0x1f2ad2:0x4d5,_0x28a6f0:0x46b,_0x4642eb:0x479,_0x7defd1:0x41b,_0xc6b9f9:0x571,_0x2f7285:0x580,_0x48e225:0x4da,_0x26c41c:0x4e5,_0x21a3b3:0x496,_0x51d4e9:0x45d,_0x149ed2:0x575,_0x56e2a1:0x491,_0x1b5f48:0x45a,_0x47ef8b:0x4ab,_0x28f5e0:0x583,_0x19fdfa:0x54d},_0x14ddc2={_0xb4a87e:0x562,_0x3acc92:0x38},_0x4f53e3={_0x4202a3:0x8c,_0x183324:0x456};function _0x4a36bc(_0x3a4a5a,_0x2449d2,_0x3ac1b9,_0x118b72){return _0x1b1adc(_0x3a4a5a-_0x4f53e3._0x4202a3,_0x3ac1b9-_0x4f53e3._0x183324,_0x3ac1b9-0x98,_0x118b72);}function _0x3a96fd(_0x41c93c,_0x54db5a,_0x21ac02,_0x425d70){return _0x1b98ce(_0x21ac02,_0x41c93c- -_0x14ddc2._0xb4a87e,_0x21ac02-_0x14ddc2._0x3acc92,_0x425d70-0x179);}switch(this[_0x4a36bc(0x43a,0x45f,_0x571184._0xe5cbba,0x394)]){case _0x4a36bc(_0x571184._0x3bb63d,_0x571184._0x229bb3,_0x571184._0x34f2da,_0x571184._0x5c5351):return this[_0x3a96fd(0x86,_0x571184._0x1d4a69,-0x16,_0x571184._0x432650)]()[_0x4a36bc(0x37f,_0x571184._0x1f2ad2,_0x571184._0x28a6f0,0x41a)](_0x5bfdca,_0x1ff7fb);case'openai-responses':return this[_0x4a36bc(0x4ed,0x3cd,0x496,0x479)]()[_0x4a36bc(_0x571184._0x4642eb,_0x571184._0x7defd1,0x4a0,_0x571184._0xc6b9f9)](_0x5bfdca,_0x1ff7fb);case _0x4a36bc(_0x571184._0x2f7285,_0x571184._0x48e225,0x4e6,0x5ab):return this[_0x4a36bc(0x4d4,_0x571184._0x26c41c,_0x571184._0x21a3b3,_0x571184._0x51d4e9)]()[_0x4a36bc(_0x571184._0x149ed2,0x519,_0x571184._0x56e2a1,_0x571184._0x1b5f48)](_0x5bfdca,_0x1ff7fb);default:return this[_0x4a36bc(_0x571184._0x47ef8b,_0x571184._0x28f5e0,0x496,_0x571184._0x19fdfa)]()['chatStream'](_0x5bfdca,_0x1ff7fb);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x1b98ce(0x5ef,0x5bd,0x5b7,0x52e)];[_0x1b98ce(0x602,0x54d,0x4fe,0x60b)];['fetchImpl'];[_0x1b1adc(0x36,-0x6b,-0xe4,-0x111)];[_0x1b1adc(0x2c,-0x8d,-0x15c,-0x75)];constructor(_0x1fb280){const _0x19d215={_0x2a4cca:0x141,_0x5f4d6b:0xae,_0x5e9827:0x5a4,_0x2ef6be:0x594,_0x9400cf:0x528,_0x3719f0:0x490,_0x14c782:0x585,_0x557373:0x173,_0x2898c2:0x1cb,_0x4ffe5d:0x26e,_0x3f3909:0x1a3,_0x376375:0x162,_0x31c6f6:0xdd,_0xd27afa:0x245,_0x45d180:0x10b,_0x4225e5:0xf0,_0x4b7333:0x1a2},_0x24df24={_0x32e6e:0x1f3},_0x184c6e={_0x2fce14:0x16f};this[_0x58815f(-0x1ab,-0xcf,-_0x19d215._0x2a4cca,-_0x19d215._0x5f4d6b)]=_0x1fb280[_0x34ce3f(0x673,_0x19d215._0x5e9827,_0x19d215._0x2ef6be,_0x19d215._0x9400cf)],this[_0x34ce3f(_0x19d215._0x3719f0,0x607,0x524,0x5bb)]=trimTrailingSlashes2(_0x1fb280[_0x34ce3f(0x48e,0x47c,0x524,_0x19d215._0x14c782)]),this[_0x58815f(-_0x19d215._0x557373,-0x2bb,-_0x19d215._0x2898c2,-_0x19d215._0x4ffe5d)]=_0x1fb280[_0x58815f(-_0x19d215._0x3f3909,-0x20d,-0x18a,-_0x19d215._0x376375)],this['githubApiUrl']=trimTrailingSlashes2(_0x1fb280[_0x58815f(-_0x19d215._0x31c6f6,-0x1ad,-0x180,-0x100)]);function _0x34ce3f(_0x4148e6,_0x3420f,_0x1a560c,_0x112b90){return _0x1b98ce(_0x3420f,_0x1a560c- -0x29,_0x1a560c-_0x184c6e._0x2fce14,_0x112b90-0x1b3);}function _0x58815f(_0x43f20c,_0x42e4a4,_0x303fed,_0x1a5df8){return _0x1b98ce(_0x1a5df8,_0x303fed- -0x6fe,_0x303fed-0x2a,_0x1a5df8-_0x24df24._0x32e6e);}this[_0x58815f(-_0x19d215._0xd27afa,-_0x19d215._0x45d180,-0x1a2,-0x1e9)]=_0x1fb280[_0x58815f(-0x104,-_0x19d215._0x4225e5,-_0x19d215._0x4b7333,-0x207)];}async[_0x1b1adc(-0x1a,-0x85,-0x8d,-0xab)](_0x2bc31c){const _0x3a1c22={_0x5612f5:0x31e,_0x4e8fd2:0x337,_0x570d53:0x353,_0x37ee40:0x406,_0x1e9f7c:0x3ad,_0x15d580:0x3f0,_0x57ebf2:0x5a3,_0x541b0d:0x34e,_0x4dbca4:0x346,_0x19055b:0x500,_0x385e88:0x209,_0x3470b9:0x54d,_0x37f48d:0x491,_0x5b7487:0x4c0,_0x359fa2:0x2d2,_0x1441bf:0x2c1,_0x49a69c:0x588,_0x11c931:0x654,_0x5099b8:0x5d4,_0x24de34:0x57c,_0x2103a1:0x5ae,_0x2a74ff:0x632,_0x29906a:0x25f,_0x14d8a8:0x2c4,_0x556cd9:0x29c,_0x3fa730:0x610,_0x32ad31:0x68f,_0x117abb:0x400,_0x5ec441:0x334},_0x444663={_0x2bc2fe:0x5da,_0x2e43ef:0xe1},_0x2935b0=await this['fetchImpl'](this[_0xa7c562(0x2a6,_0x3a1c22._0x5612f5,_0x3a1c22._0x4e8fd2,0x2f2)]+_0xa7c562(_0x3a1c22._0x570d53,_0x3a1c22._0x37ee40,_0x3a1c22._0x1e9f7c,_0x3a1c22._0x15d580),{'method':_0x963f40(0x5db,_0x3a1c22._0x57ebf2,0x54c,0x682),'headers':new Headers({'accept':'application/json','authorization':_0xa7c562(0x3b8,_0x3a1c22._0x541b0d,_0x3a1c22._0x4dbca4,0x2d2)+this['accessToken'],'editor-version':_0xa7c562(_0x3a1c22._0x19055b,0x3cc,0x46b,0x439),'user-agent':_0xa7c562(0x23f,_0x3a1c22._0x385e88,0x20b,0x2c7),'x-github-api-version':this[_0x963f40(_0x3a1c22._0x3470b9,0x5a3,0x4b8,_0x3a1c22._0x37f48d)]}),'signal':_0x2bc31c});if(!_0x2935b0['ok'])return{'credential':{'kind':_0xa7c562(0x4bb,_0x3a1c22._0x5b7487,0x3c8,0x3fc),'value':this['accessToken']},'endpoints':{'api':this[_0xa7c562(0x2f0,0x2cc,_0x3a1c22._0x359fa2,_0x3a1c22._0x1441bf)]}};function _0x963f40(_0x569c1c,_0x50a8e1,_0x5683d3,_0x714b10){return _0x1b1adc(_0x569c1c-0xdb,_0x569c1c-_0x444663._0x2bc2fe,_0x5683d3-_0x444663._0x2e43ef,_0x714b10);}const _0x9f7600=await _0x2935b0['json']();function _0xa7c562(_0x2325e4,_0x5aab4d,_0x89fae7,_0x12a8fe){return _0x1b1adc(_0x2325e4-0xef,_0x12a8fe-0x35d,_0x89fae7-0x15c,_0x5aab4d);}return{'credential':{'kind':_0x963f40(_0x3a1c22._0x49a69c,0x533,0x671,0x5d5),'value':_0x9f7600[_0x963f40(_0x3a1c22._0x11c931,_0x3a1c22._0x5099b8,_0x3a1c22._0x24de34,0x569)]??this[_0x963f40(_0x3a1c22._0x2103a1,0x4c3,_0x3a1c22._0x2a74ff,0x634)]},'endpoints':{'api':_0x9f7600[_0xa7c562(_0x3a1c22._0x29906a,_0x3a1c22._0x14d8a8,0x3e6,0x33a)]?.[_0xa7c562(0x298,0x29f,_0x3a1c22._0x556cd9,0x25c)]??this['baseUrl'],'originTracker':_0x9f7600['endpoints']?.['origin-tracker'],'proxy':_0x9f7600['endpoints']?.[_0x963f40(_0x3a1c22._0x3fa730,0x6c2,0x5c9,_0x3a1c22._0x32ad31)],'telemetry':_0x9f7600['endpoints']?.[_0xa7c562(_0x3a1c22._0x117abb,0x340,0x39e,_0x3a1c22._0x5ec441)]}};}};function _0x1215(){const _0x2c9e83=['zMv0y2HjBxbS','y29TCgXLDgvwAwfsB3v0zxi','Bw9KzwXZ','Aw1Hz2vFDxjS','z3b0ltrV','C3LZDgvT','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','Dg9VBhm','Aw5WDxrFDgv4Da','C3vYzMfJzq','l3yXl21LC3nHz2vZ','DNnJB2rLlZeUmta0lJi','A2v5','z2XTltqUnW','C3rYzwfTu3vYzMfJzq','C3vTBwfYEq','Dg9VBenHBgXZ','y2fSBf9Pza','AgfZ','y2XVC2u','Aw5WDxrFC2nOzw1H','y2HHDfn0CMvHBq','zgvMyxvSDe1HEfrVA2vUCW','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','B3bLBG','z2XTltqUnG','yMfZzvvYBa','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','sw52ywXPzcbYzxf1zxn0oIa','CMvTB3zLrxzLBNrmAxn0zw5LCG','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','BM93','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','ywrKrxzLBNrmAxn0zw5LCG','zMLUAxnO','y2fSBeLKvg9pDxrWDxrjBMrLEa','Bwf4t3v0Chv0','C3bSAxq','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','zgvMyxvSDe1VzgvSCW','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','y29UDgvUDf9IBg9JA19KzwX0yq','qMvHCMvYia','C3rVCfjLyxnVBG','CMvKywn0zwrFDgHPBMTPBMC','C3vWCg9YDgvKx2vUzhbVAw50CW','y2fWywjPBgL0AwvZ','zMLSDgvY','CMvZB2X2zq','BwvZC2fNzv9ZDgfYDa','ANnVBL9Zy2HLBwe','AgvHzgvYuMvZB2X2zxi','y29UDgvUDf9IBg9JA19ZDgfYDa','Dgv4Df9KzwX0yq','y3jLyxrLsgvHzgvYCW','CgfYC2vszxnWB25Zzq','ywjVCNrLza','BgfIzwW','CMvZB2X2zxi','Bw9Kzq','y2f0y2G','z2XTltuUmG','z3b0ltu','Dg9VBf91C2vFzgvSDge','zMv0y2G','Dg9VBf9JywXSCW','B3v0Chv0x2LUzgv4','Dgv4DfbHCNrZ','CMvHC29UAw5N','t3bLBKfj','CMvMDxnHBa','t1bftG','yxbWBgLJyxrPB24VANnVBG','yMXVy2TZ','z2L0AhvIqxbPvxjS','DMfSDwvZ','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','yw50AhjVCgLJ','nZy4odH6vhDHB3O','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','y2HHDenVBxbSzxrL','AM9PBG','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','C3rYzwfTshr0Cfn1CMzHy2u','Ec1HCgKTA2v5','B3bLBMfPlxjLC3bVBNnLCW','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','CMvXDwvZDhm','twLUAu1HEc1nmW','yMfZzty0','C3rHDhvZ','B3v0Chv0x3rLEhq','zgvSDge','Bwf4x291Dhb1Df90B2TLBNm','y29UDgvUDa','zMLUywXszxnWB25Zzq','C2vZC2LVBI10B2TLBG','C2XPy2u','yxnZAxn0yw50','DgHLBG','C3rYzwfTvMLHu3vYzMfJzq','CMvZCg9UC2vjza','y29UC3vTzvDLyLnVy2TLDev2zw50','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','Aw5KzxHpzG','y29UDgv4Df9Szw5NDgG','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','Aw5KzxG','C3rYAw5N','C2vUza','B3bLBMfPl2DWDc00BW','Ahr0Cc1QC29U','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','zNvUy3rPB24','Bw9KzwW','yNvPBgrqyxj0AwfSt3v0Chv0','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','oNjLyxnVBMLUzZOW','y29UC3vTzuv2zw50','zgvZy3jPChrPB24','y29UC3vTzvnZzuv2zw50','z3jVAY00lJm','C3rHDhvZvgv4Da','z3b0ltuTBwLUAq','C29JA2v0','z3b0ltqUmq','Dg9VBa','C2LNBMfS','ue9tva','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','CMvZCg9UC2vtB2nRzxq','DMfSDwu','y29TCgXLDgLVBL90B2TLBNm','ywnJzxnZvg9Rzw4','Ahr0Chm6lY9HCgKUEc5HAs92mq','Ahr0Cc1ZC2u','DgvSzw1LDhj5','DhjPBq','zgvSzxrL','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','odi0nK13D3bxCa','Aw5WDxrkC29U','zw5KCg9PBNrZ','zw5JCNLWDgvKq29UDgvUDa','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','y29UDgvUDf9PBMrLEa','CMvZzxq','Dg9VBfvZzvn0yxj0rw1PDhrLza','y3jLyxrLu3rYzwfTugfYC2vY','B3v0Chv0sw5KzxHuB0nHBgXjza','C2vZC2LVBK1HBMfNzxi','yxbPs2v5','Dgv4Dc9LDMvUDc1ZDhjLyw0','AxnbCNjHEq','yM9KEq','y29TCgXLDgu','Bw9KzwXZqMfZzvvYBa','DgHPBMTPBMC','CMvHC29UAw5Nx3rVA2vUCW','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','C2HPzNq','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','CMvWBgfJzq','Cgf0Aa','zxzLBNq','DhjHBNnWB3j0x2vYCM9Y','yxjNDw1LBNrZ','zgf0yq','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','C2vZC2LVBKLK','Dg9VBf9Yzxn1Bhq','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','DxnLC1jLC3bVBNnLC0fWAq','BgfZDfjLC3bVBNnLswq','B21PDhrLza','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','z2v0qw50AhjVCgLJrgvSzwDHDgu','BwvZC2fNzxm','r0vu','Bwf4x3rVA2vUCW','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','CMv0CNLHyMXL','zxzLBNq6','ChjVDg9JB2XwzxjZAw9U','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','y2fUy2vS','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','C2L6zq','nJK2nZC2A0ndqxno','ywrHChrPDMu','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','n1jczu1gtW','yw50AhjVCgLJqMfZzvvYBa','yMvHCMvY','zgvMyxvSDe1VzgvS','B3v0Chv0x3rVA2vUCW','BwvZC2fNzuLUzgv4','C3rYzwfT','B3v0Chv0vg9Rzw5Z','B3v0Chv0sw5KzxG','Bw9KzwXfBMrWB2LUDenHy2HL','ywjVCNq','AgvHzgvYCW','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','B2jQzwn0','Dg9VBf91C2vFAwq','yw50AhjVCgLJsgvHzgvYuMvZB2X2zxi','twLUAu1HEa','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','Aw5WDxrFANnVBL9KzwX0yq','zMLUza','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','Aw1Hz2u','CMvZCg9UC2u','B3bLBMfP','ChjVDMLKzxjtDgf0zq','z2L0AhvI','AxrLBq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','zwrPDg9YugX1z2LUvMvYC2LVBG','z2XTltuUmq','nJLss0fJCfC','CMvHC29U','D2fPDezVCLjLDhj5','zgvLChnLzwSTDJqTChjV','mtbhq3zpuKS','yw50AhjVCgLJx3rOAw5RAw5N','DMLZAwjPBgL0Eq','BwvKAwfFDhLWzq','y2HVAwnLCW','ChjVEhK','zwzMB3j0','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','Aw5WDxrFDg9Rzw5Z','D3nZoG','CMvZCg9UC2vtB2nRzxrtDhjLyw0','w0rptKvD','yxv0Ag9YAxPHDgLVBG','AxneB25L','C3vYzMfJzxm','z2v0t3bLBKfPrgvSzwDHDgu','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','z2v0','yxv0BW','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','y29TCgXLDgvK','ChjVDMLKzxjZ','zw5Kx3r1CM4','BwLTBY12mI41lxbYBW','CMvZCg9UC2vtDhjLyw0','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','zMLUAxnOx3jLyxnVBG','D2vIu29JA2v0rMfJDg9YEq','Dg9VBenHBgXpCMrLCG','C3rYAw5NAwz5','z3jVAY1JB2rLlwzHC3qTmq','y29UDgvUDc10ExbL','Bwv0ywrHDge','l3jLC3bVBNnLCW','C3rYDwn0DxjLzf9VDxrWDxq','DxnLCG','B3v0Chv0','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','zgvJB2rL','yxbWBhLnB2rLBerLzMf1BhrZ','zNvUy3rPB25Fy2fSBa','yNvKz2v0vg9Rzw5Z','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','BwfW','ywDLBNq','Dgv4Da','zNjVBuvUDhjPzxm','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Dg9bCgLfCNjVCG','y29UBMvJDgLUzW','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','Dg9mB3DLCKnHC2u','BwvZC2fNzq','CMvHC29UAw5Nx2nVBNrLBNq','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','qMfZAa','y29Kzq','z3b0ltuUmI1JB2rLEa','CgfYDgLHBf9QC29U','z2v0u3vYzMfJzq','C2HVDwXKuMv0CNLszxnWB25Zzq','zgLZywjSzwq','q29TBwfUzenVzgu','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','D3m6','C291CMnL','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','zNjVBq','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','DhjHBNnWB3j0','Dg9Rzw4','C29Tzq','DgHPBMTPBMDFzgvSDge','Dg9VBf91C2u','yxn5BMnjDgvYyxrVCG','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','Aw5JBhvKzunVBNrLBNruExbL','y29WAwXVDc1JAgf0lZaUmZeUmW','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','t3bLBKfjiefqssbLCNjVCIa','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','yw50AhjVCgLJrgvSzwDHDgu','DhjPBvn0yxj0','C3rYzwfTvMLHuM91DgvY','BwfWqxbPrxjYB3i','C2vZC2LVBG','y2HHDenVBxbSzxrPB25Zugf0Aa','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','Dg9tDhjPBMC','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','DxrMltG','C2nOzw1H','B3bLBMfPlxjLC3bVBNnLCY13CW','DxnLCI12AxnPyMXL','BMfTzq','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','C3rVCf9YzwfZB24','y2fWywjSzv9LBMrWB2LUDhm','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','C3rHCNrZv2L0Aa','u3vYzMfJzsa','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','C2vUzfDPDgHszxrYAwvZ','y3jLyxrLuMvXDwvZDa','DxnHz2u','C3vTBwfYEv90zxH0','B2f1DgGTDg9Rzw4','Aw5PDgLHBev2zw50','zw50CMLLCW','C2vUzfjHD1jLCxvLC3q','AxngAw5PDgu','ChvZAa','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','mZC2mJu0Efbxv1PU','Aw5JBhvKzxm','Dgv4Dej5sw5KzxG','CM91DgvY','C3rYzwfTx2vYCM9Y','DhLWzq','zgvLChnLzwSTDJqTzMXHC2G','B3bLBMfPx3jLyxnVBMLUzW','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','y29TCgXLDgvtDxjMywnL','y2fJAgvszwfKsw5WDxruB2TLBNm','l21VzgvSCW','Aw52ywXPzgf0zq','z2v0uMvHzgvY','v2vIu29JA2v0','B3bLBMfPl2DWDc00BY1TAw5P','zg9Uzq','mtq5mdC2mezcBNfeAq','CMvHC29UAw5Nx3rLEhq','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','rgvLCfnLzwS','y29UDgvUDf9KzwX0yq','C2vSzwn0u3vYzMfJzq','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','CM9Szq','CMvZCg9UC2vuzxH0ugfYDhm','CMvHzhLtDgf0zq','z2v0uMv0CNLezwXHEu1Z','C3vTBwfYEv9PBMrLEa','CMvZCg9UC2vZugf0Aa','y2HHDgnTCgWT','zxjYB3i','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','D2vIC29JA2v0','yxv0AfnJAgvTzq','ChjLCgfYzunOyxrszxf1zxn0','zgf0ytO','BhmGlwXH','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','CMvZB2X2zujHC2vvCMW','A2LUza','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','r2L0shvIiefqssbLCNjVCIa','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','C3bSAwnL','Aw5WDxq','CMvHC29UAw5NugfYDhm','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','DNnJB2rLlZeUmta2lJe','qw50AhjVCgLJ','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','yxbP','C3vTBwfYEuj5sw5KzxG','y2HHDgnTCgW','BxnNlq','y29UDgv4DfDPBMrVDW','C2LNBMf0DxjLx2rLBhrH','CMvXDwvZDa','C2LNBMf0DxjL','BgvUz3rO','ywnJzxb0','C29YDa','C3vWCg9YDhnnB2rLBezLDgnO','Bwf4vg9Rzw5Z','C3rYAwn0','Bg9JA2vK','yw50AhjVCgLJlw1LC3nHz2vZ','Aw50zxjSzwf2zwq','BgLTAxrZ','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','B3bLBKfPrgvSzwDHDgu','C2v0','ChjVDg9JB2W','Aw5WDxruB2TLBNm','l2nOyxqVy29TCgXLDgLVBNm','DgvZDa','CgvUzgLUzW','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','zgLZCgXHEq','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','AxrLBv9Pza','C3vTBwfYAxPLza','A2v5CW','ChjLDMLVDxnszxnWB25ZzuLK','nta2odGWvhvYEMjd','Dg9VBc1JywXSlq','mJu2ntjxA2vUquy','zM9Yy2vgDwXSuMvWBgf5','y29TCgXLDgvwAwftDxjMywnL','Ahr0Chm6lY9HCgKUzgvLChnLzwSUy29Tl2fUDgHYB3bPyW','zw5JCNLWDgvKx2nVBNrLBNq','ChjVDMLKzxi','ANnVBG','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','wI5bsq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','BwvZC2fNzuLK','y2fJAgvK','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','Bwv0Ag9K','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','BNvTyMvY','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','B3v0Chv0rM9YBwf0','y3jLzgvUDgLHBa','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','CMvXDwvZDe11Dgf0B3jZ','ChjVDMLKzxjFCMv0CNK','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','CMvHza','CMvHC29UAw5Nx2rLDgfPBhm','CMvHC29UAw5NsxrLBxm','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','Dg9VBenHBgXZqNLjBMrLEa','y2XHDwrLlxnVBM5LDc00lJu','CgfYC2u','ChjVDMLKzxjbzgfWDgvY','CMvZB2X2zunYzwrLBNrPywW','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','yw50AhjVCgLJlxzLCNnPB24','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa'];_0x1215=function(){return _0x2c9e83;};return _0x1215();}function trimTrailingSlashes2(_0x34dc06){const _0x1f16d7={_0x4f0263:0x2e},_0x26e5ad={_0x5eddb4:0x73,_0x57a0ce:0x167};function _0x549870(_0x2c45f2,_0x1f4fb4,_0x49cf72,_0x4e5f4d){return _0x1b98ce(_0x2c45f2,_0x49cf72- -0x60f,_0x49cf72-_0x26e5ad._0x5eddb4,_0x4e5f4d-_0x26e5ad._0x57a0ce);}return _0x34dc06[_0x549870(0x41,-0xd7,-0x35,-_0x1f16d7._0x4f0263)](/\/+$/,'');}function createModelInfo(_0x5e362c){const _0x4bd0a1={_0x55a9f7:0x151,_0xb26523:0x22e,_0x592946:0x1fb,_0x184af4:0x1f7,_0x43e529:0x34,_0x2be564:0x10b,_0xf77517:0x169,_0x1b7682:0x187,_0x2c9d2a:0x157,_0x1987e7:0x168,_0x3bbf01:0x66,_0x460c8c:0x270,_0x596c00:0xe6,_0x47a738:0x1e2,_0x1f0e00:0x289},_0x43d578={_0x569c6e:0x1e0},_0x53ce05={_0x1b7d45:0xef,_0xaa0e2:0x17e},_0x5f1f91=_0x5e362c[_0xe97463(0x14e,0x1d7,_0x4bd0a1._0x55a9f7,0x1f4)]??_0x5e362c[_0x28c1ce(0x194,_0x4bd0a1._0xb26523,0x161,_0x4bd0a1._0x592946)],_0x407388=_0x5e362c[_0x28c1ce(0x44,0x112,0xcf,_0x4bd0a1._0x184af4)]?.[_0xe97463(0xe6,0x3e,_0x4bd0a1._0x43e529,0xf3)]?.[_0x28c1ce(_0x4bd0a1._0x2be564,_0x4bd0a1._0xf77517,0x1f6,0x20b)],_0x2cbedb=_0x5e362c[_0x28c1ce(_0x4bd0a1._0x1b7682,0x112,0x143,_0x4bd0a1._0x2c9d2a)]?.[_0xe97463(0xe6,0x1bc,_0x4bd0a1._0x1987e7,_0x4bd0a1._0x3bbf01)]?.[_0xe97463(0x181,_0x4bd0a1._0x460c8c,0x214,_0x4bd0a1._0x596c00)],_0x49591b=_0x407388!==void 0x0||_0x2cbedb!==void 0x0?{..._0x407388!==void 0x0?{'contextWindow':_0x407388}:{},..._0x2cbedb!==void 0x0?{'maxOutput':_0x2cbedb}:{}}:void 0x0;function _0x28c1ce(_0x10b825,_0x478a93,_0x16ffe5,_0x1d0811){return _0x1b98ce(_0x10b825,_0x478a93- -0x450,_0x16ffe5-_0x53ce05._0x1b7d45,_0x1d0811-_0x53ce05._0xaa0e2);}function _0xe97463(_0x94041c,_0x1550ab,_0x1a38f7,_0x2913dd){return _0x1b1adc(_0x94041c-_0x43d578._0x569c6e,_0x94041c-0x1d6,_0x1a38f7-0x160,_0x2913dd);}return{'id':_0x5e362c['id'],'name':_0x5e362c[_0x28c1ce(0x21d,0x22b,_0x4bd0a1._0x47a738,_0x4bd0a1._0x1f0e00)]??_0x5e362c['id'],..._0x49591b?{'limits':_0x49591b}:{},..._0x5f1f91?{'supportedEndpoints':_0x5f1f91}:{}};}function deduplicateModels(_0xcc9ab9){const _0x9ceb0e={_0x27d8e2:0x101,_0x5e9265:0xd4,_0x4d2bc6:0xee,_0x13bae7:0x1bc,_0x36d281:0x148,_0x481f9d:0x7b,_0x55887b:0x166},_0x6bf94={_0xb5bace:0x3b,_0x2dd8b6:0x97},_0x1549dc={_0x2794fb:0x1c7};function _0x385b01(_0x2931f7,_0x31cb03,_0x4f365e,_0x53bcaa){return _0x1b1adc(_0x2931f7-0x1eb,_0x31cb03-_0x1549dc._0x2794fb,_0x4f365e-0x16e,_0x2931f7);}const _0xe98032=new Map();for(const _0x26c01c of _0xcc9ab9){!_0xe98032[_0x385b01(_0x9ceb0e._0x27d8e2,0x123,_0x9ceb0e._0x5e9265,_0x9ceb0e._0x4d2bc6)](_0x26c01c['id'])&&_0xe98032[_0x385b01(0x1c,0xda,_0x9ceb0e._0x13bae7,_0x9ceb0e._0x36d281)](_0x26c01c['id'],_0x26c01c);}function _0x51a83f(_0xc1857c,_0x438f2a,_0x595a9e,_0x24028d){return _0x1b98ce(_0x438f2a,_0x595a9e- -0x537,_0x595a9e-_0x6bf94._0xb5bace,_0x24028d-_0x6bf94._0x2dd8b6);}return Array[_0x51a83f(_0x9ceb0e._0x481f9d,0x10c,0x129,_0x9ceb0e._0x55887b)](_0xe98032['values']());}function hasUserPromptContent(_0x2ab266){const _0x6d839a={_0x29837c:0x139,_0x55c8c9:0x151,_0x5dc5d5:0xf7,_0x2d8e13:0x1fd,_0x31cf8f:0x38c,_0x223006:0x3eb,_0x773313:0x422,_0x4d2b38:0x1c6,_0xb465f1:0x19c,_0x2ad7e:0x563,_0x8a455f:0x483},_0x2b58bd={_0x499283:0x183,_0x58f51d:0xba,_0x5ccb46:0xe2,_0x1a59e7:0x4b2,_0x33b1a4:0x55c,_0x310c51:0x138,_0x531671:0x5b,_0x28ab3e:0x588,_0x1157f7:0x57d,_0x460707:0x490,_0x1a1985:0x4ed,_0x425b65:0x46c,_0x2ec7fb:0x52d},_0x2cba03={_0x2a29a9:0x1e8},_0x12acf0={_0x31fec9:0x44a,_0x1b8c1c:0x3c},_0x271dc2={_0x1dfbc6:0xd8,_0x417436:0x131};if(typeof _0x2ab266===_0x18ce47(_0x6d839a._0x29837c,_0x6d839a._0x55c8c9,_0x6d839a._0x5dc5d5,_0x6d839a._0x2d8e13))return _0x2ab266[_0x11e47d(0x474,_0x6d839a._0x31cf8f,_0x6d839a._0x223006,_0x6d839a._0x773313)]()['length']>0x0;function _0x18ce47(_0x2f68e5,_0x53ca2b,_0x5190c4,_0x576001){return _0x1b1adc(_0x2f68e5-_0x271dc2._0x1dfbc6,_0x2f68e5-0x17e,_0x5190c4-_0x271dc2._0x417436,_0x576001);}function _0x11e47d(_0x3cfe98,_0x3d29b4,_0x5bee3c,_0xed0e72){return _0x1b1adc(_0x3cfe98-0x18d,_0xed0e72-_0x12acf0._0x31fec9,_0x5bee3c-_0x12acf0._0x1b8c1c,_0x5bee3c);}if(!Array[_0x18ce47(0x166,0x1e5,_0x6d839a._0x4d2b38,_0x6d839a._0xb465f1)](_0x2ab266))return![];return _0x2ab266[_0x11e47d(_0x6d839a._0x2ad7e,_0x6d839a._0x8a455f,0x57f,0x4c5)](_0x47aa10=>{const _0x843490={_0x370d99:0x333};if(!_0x47aa10||typeof _0x47aa10!=='object')return![];function _0x1053c5(_0x1838ac,_0x1ecbd1,_0x331723,_0x38f2f8){return _0x18ce47(_0x331723-_0x843490._0x370d99,_0x1ecbd1-0xc5,_0x331723-0x15e,_0x1ecbd1);}const _0x3371cb=_0x47aa10;function _0x4a5899(_0x2a46fb,_0x196df3,_0x24476d,_0x4bedd1){return _0x18ce47(_0x196df3- -0xa6,_0x196df3-0x27,_0x24476d-_0x2cba03._0x2a29a9,_0x2a46fb);}return(_0x3371cb[_0x4a5899(0x14f,_0x2b58bd._0x499283,0xb6,0x25b)]===_0x4a5899(_0x2b58bd._0x58f51d,0x2a,_0x2b58bd._0x5ccb46,0x89)||_0x3371cb[_0x1053c5(0x5f3,_0x2b58bd._0x1a59e7,_0x2b58bd._0x33b1a4,0x4e3)]===_0x4a5899(0x5e,_0x2b58bd._0x310c51,0x194,_0x2b58bd._0x531671))&&typeof _0x3371cb[_0x1053c5(_0x2b58bd._0x28ab3e,_0x2b58bd._0x1157f7,0x511,_0x2b58bd._0x460707)]===_0x1053c5(0x41b,_0x2b58bd._0x1a1985,_0x2b58bd._0x425b65,0x3db)&&_0x3371cb['text'][_0x1053c5(0x40e,_0x2b58bd._0x2ec7fb,0x489,0x481)]()[_0x1053c5(0x3f0,0x341,0x3b8,0x3c7)]>0x0;});}function _isUserPromptEntry(_0x4f451b){const _0xd6a189={_0xcad8d3:0x15a,_0x556279:0xec,_0xa17f2b:0x1dd,_0x296992:0x245,_0x2e9d6b:0x26c,_0x161a70:0x5e,_0xaafb4:0x1,_0xc95c73:0x28f,_0x485a9f:0x287,_0x28bb42:0x1a3,_0x3db3e8:0x18a,_0x30ffc0:0x173,_0x2fa901:0x1b5},_0x34573e={_0x5cbc94:0x1a2,_0x2b007b:0x1be},_0x433cb9={_0x36dae7:0x4f,_0x33575b:0x9f};if(!_0x4f451b||typeof _0x4f451b!==_0x5e0213(-_0xd6a189._0xcad8d3,-0x8e,-_0xd6a189._0x556279,-0x17))return![];function _0x538c7f(_0x2f5646,_0x473f93,_0x5c9a94,_0x3457bb){return _0x1b98ce(_0x473f93,_0x2f5646- -0x405,_0x5c9a94-_0x433cb9._0x36dae7,_0x3457bb-_0x433cb9._0x33575b);}const _0x10c4e5=_0x4f451b;if(_0x10c4e5[_0x538c7f(0x2a5,0x26a,_0xd6a189._0xa17f2b,_0xd6a189._0x296992)]!==_0x538c7f(0x239,0x231,0x2ad,_0xd6a189._0x2e9d6b))return![];if(_0x10c4e5[_0x5e0213(-_0xd6a189._0x161a70,_0xd6a189._0xaafb4,-0xe3,0xc9)]!==void 0x0&&_0x10c4e5[_0x538c7f(_0xd6a189._0xc95c73,_0xd6a189._0x485a9f,0x31f,_0xd6a189._0x28bb42)]!==_0x538c7f(0x24b,0x203,_0xd6a189._0x3db3e8,_0xd6a189._0x30ffc0))return![];function _0x5e0213(_0x1fa9c9,_0x289292,_0x4e434e,_0x154664){return _0x1b98ce(_0x154664,_0x289292- -0x693,_0x4e434e-_0x34573e._0x5cbc94,_0x154664-_0x34573e._0x2b007b);}return hasUserPromptContent(_0x10c4e5[_0x538c7f(0x190,0x231,0xe2,_0xd6a189._0x2fa901)]);}function determineInitiator(_0x2f697e){const _0x3b17b7={_0x23890d:0x487,_0xc85f99:0x430,_0xf3f434:0x517,_0x15e92b:0x381,_0x29c4f9:0x41d,_0x1ea854:0x465,_0x3aa6ab:0x73d,_0x4e86b7:0x59d,_0x13a2c0:0x459,_0x12d2b2:0x57c,_0x141818:0x53d,_0xd57388:0x5e9,_0x32a3ae:0x3df,_0xd704cc:0x558,_0x4d1445:0x551,_0x393c1d:0x46f},_0x24170e={_0xe0e287:0x4},_0x3efc8a={_0x45e881:0x42};if(!_0x2f697e||typeof _0x2f697e!==_0x42489d(_0x3b17b7._0x23890d,_0x3b17b7._0xc85f99,_0x3b17b7._0xf3f434,0x481))return'agent';const _0x3c2977='messages'in _0x2f697e?_0x2f697e[_0x42489d(0x423,_0x3b17b7._0x15e92b,_0x3b17b7._0x29c4f9,_0x3b17b7._0x1ea854)]:_0x28e030(0x62a,0x67f,0x5e5,_0x3b17b7._0x3aa6ab)in _0x2f697e?_0x2f697e[_0x42489d(_0x3b17b7._0x4e86b7,_0x3b17b7._0x13a2c0,_0x3b17b7._0x12d2b2,_0x3b17b7._0x141818)]:void 0x0;function _0x28e030(_0x14d8e3,_0x48ecfb,_0x40e4f7,_0x3af4ba){return _0x1b98ce(_0x40e4f7,_0x48ecfb- -_0x3efc8a._0x45e881,_0x40e4f7-0x115,_0x3af4ba-0x1ec);}if(!Array[_0x28e030(_0x3b17b7._0xd57388,0x58f,0x550,0x4ed)](_0x3c2977)||_0x3c2977['length']===0x0)return'agent';function _0x42489d(_0x53e40b,_0x4ba59e,_0x268913,_0x260244){return _0x1b1adc(_0x53e40b-0x17e,_0x260244-0x465,_0x268913-_0x24170e._0xe0e287,_0x4ba59e);}return _isUserPromptEntry(_0x3c2977[_0x3c2977['length']-0x1])?_0x42489d(0x520,_0x3b17b7._0x32a3ae,0x578,0x4ba):_0x42489d(_0x3b17b7._0xd704cc,_0x3b17b7._0x4d1445,_0x3b17b7._0x393c1d,0x4c4);}function _0x1b98ce(_0x384bc8,_0x186b2c,_0x4e098f,_0x19fcf6){const _0x2470fa={_0x21299c:0x31f};return _0x58b0(_0x186b2c-_0x2470fa._0x21299c,_0x384bc8);}function isUnsupportedApiForModel(_0x513db9){return _0x513db9['includes']('unsupported_api_for_model');}function createResponseError(_0x506145,_0x448c63){const _0x53694e={_0x477ca5:0x3d9,_0x1e913f:0x3e3,_0xb07efc:0x41e,_0x46a816:0x503,_0x3a8df0:0x22e,_0x38a10d:0x28a,_0x44076b:0x2b3,_0x11fcc6:0x598,_0xec31f1:0x66e,_0x1b76a4:0x5c9},_0x4c80e7={_0x222f79:0xdd,_0x52495f:0x1bf},_0x29b356={_0x1819c0:0xaa};function _0x4d7507(_0xcb27be,_0x3ee968,_0x4fa5d7,_0x267c4a){return _0x1b98ce(_0xcb27be,_0x3ee968- -_0x29b356._0x1819c0,_0x4fa5d7-0x28,_0x267c4a-0xe0);}if(_0x506145===0x191||_0x506145===0x193)return new Error(_0xf5908e(_0x53694e._0x477ca5,_0x53694e._0x1e913f,_0x53694e._0xb07efc,0x358));if(_0x506145===0x198||_0x506145===0x1ad)return new Error(_0x4d7507(0x481,0x562,0x632,_0x53694e._0x46a816));if(_0x506145===0x190)return new Error(_0xf5908e(_0x53694e._0x3a8df0,_0x53694e._0x38a10d,_0x53694e._0x44076b,0x347)+_0x448c63);function _0xf5908e(_0x294cff,_0x5a97a6,_0x330400,_0x19694e){return _0x1b98ce(_0x5a97a6,_0x330400- -0x29c,_0x330400-_0x4c80e7._0x222f79,_0x19694e-_0x4c80e7._0x52495f);}return new Error(_0x448c63||_0x4d7507(_0x53694e._0x11fcc6,0x614,_0x53694e._0xec31f1,_0x53694e._0x1b76a4)+_0x506145);}var GitHubModel=class extends OpenAiModel{[_0x1b1adc(0x94,0x85,-0x6b,0x87)];['modelEndpointCache']=new Map();[_0x1b98ce(0x5b7,0x53c,0x481,0x53f)];constructor(_0x499abb={}){const _0x51f950={_0x2f6586:0x14a,_0x777f16:0x582,_0x372364:0x4ea,_0x18b373:0x56b,_0x25155f:0x40d,_0x2452e8:0x4da,_0x1d1ce1:0x468,_0x53cdb2:0x4ab,_0x716404:0xbf,_0x14db37:0xf5,_0x260375:0x4d4,_0x265304:0x2b4,_0x135422:0x26a,_0x123a6e:0x45d,_0xc0d6aa:0x4f3,_0x587025:0x33f,_0x2c8744:0x14a,_0x918a8c:0x50e,_0x142f66:0x14b,_0x4b3bd0:0xb2,_0x55d200:0xea,_0x51b069:0x469,_0x413999:0x4eb,_0x3156c4:0x50f,_0x393369:0xe4,_0x439509:0x20d,_0xc6e118:0x20e,_0x572b25:0x233,_0x2ba6ab:0x16d,_0x2f1d51:0x1d7,_0x1dc526:0x19a,_0x41f4fa:0x443,_0x219e9f:0x4ad,_0x15c83a:0x87,_0x4901f3:0x1a5,_0x48ecf3:0x3e,_0x34b4cc:0xcf},_0x184fa7={_0x5e422c:0x460,_0x5ef526:0x68},_0x7e401=trimTrailingSlashes2(_0x499abb['baseUrl']??'https://api.individual.githubcopilot.com');function _0x54df1f(_0x9d1d43,_0x1f9aac,_0x168f8e,_0x375fac){return _0x1b98ce(_0x375fac,_0x9d1d43- -_0x184fa7._0x5e422c,_0x168f8e-0x1d5,_0x375fac-_0x184fa7._0x5ef526);}const _0x4dd882=_0x499abb[_0x54df1f(0x114,_0x51f950._0x2f6586,0x1bc,0x56)]??globalThis['fetch'];function _0x425291(_0x34ac5e,_0x2720bf,_0x147015,_0xc69a5f){return _0x1b1adc(_0x34ac5e-0x1ae,_0x2720bf-0x516,_0x147015-0x59,_0x34ac5e);}const _0x4788b9=_0x499abb[_0x425291(_0x51f950._0x777f16,0x5ea,0x5b4,0x639)]??(_0x499abb[_0x425291(0x4b6,_0x51f950._0x372364,_0x51f950._0x18b373,_0x51f950._0x25155f)]?new GitHubAccessTokenResolver({'accessToken':_0x499abb[_0x425291(0x562,_0x51f950._0x372364,_0x51f950._0x2452e8,0x5ad)],'baseUrl':_0x7e401,'fetch':_0x4dd882,'githubApiUrl':_0x499abb[_0x425291(_0x51f950._0x1d1ce1,_0x51f950._0x53cdb2,0x4a0,0x497)]??_0x54df1f(0xbd,_0x51f950._0x716404,_0x51f950._0x14db37,0x50),'tokenExchangeApiVersion':_0x499abb['tokenExchangeApiVersion']??'2025-10-01'}):void 0x0),_0x32ab14=_0x499abb['editorVersion']??_0x425291(0x4ec,0x46b,_0x51f950._0x53cdb2,_0x51f950._0x260375),_0x49e9b9=_0x499abb[_0x425291(0x5c8,0x541,0x52c,0x566)]??_0x54df1f(0x20a,_0x51f950._0x265304,_0x51f950._0x135422,0x2e6),_0x554894=({body:_0x345fa8})=>{return{'editor-plugin-version':_0x49e9b9,'editor-version':_0x32ab14,'x-initiator':determineInitiator(_0x345fa8),'x-request-id':randomUUID()};},_0x16c910={'apiKey':_0x499abb['apiKey'],'baseUrl':_0x7e401,'fetch':_0x4dd882,'maxTokens':_0x499abb[_0x425291(_0x51f950._0x123a6e,0x421,_0x51f950._0xc0d6aa,_0x51f950._0x587025)],'model':_0x499abb[_0x54df1f(_0x51f950._0x2c8744,0x7f,0x123,0x1f1)],'reasoning':_0x499abb[_0x425291(0x3dd,0x4a5,0x47b,_0x51f950._0x918a8c)],'providerSessionResolver':_0x4788b9,'requestMutators':_0x499abb[_0x54df1f(0xc1,_0x51f950._0x142f66,_0x51f950._0x4b3bd0,_0x51f950._0x55d200)],'headerResolver':_0x554894};super(_0x16c910),this[_0x425291(0x546,_0x51f950._0x51b069,_0x51f950._0x413999,_0x51f950._0x3156c4)]=_0x499abb['surface']??_0x54df1f(0x1cd,_0x51f950._0x393369,_0x51f950._0x439509,0x25d),this[_0x54df1f(0x20e,_0x51f950._0xc6e118,0x272,_0x51f950._0x572b25)]=new AnthropicModel({'apiKey':_0x499abb[_0x54df1f(0x16f,0x203,_0x51f950._0x2ba6ab,_0x51f950._0x2f1d51)],'authScheme':_0x54df1f(_0x51f950._0x1dc526,0x179,0x136,0x161),'baseUrl':_0x7e401,'fetch':_0x4dd882,'headerResolver':_0x554894,'maxTokens':_0x499abb[_0x425291(_0x51f950._0x41f4fa,0x421,0x4da,_0x51f950._0x219e9f)],'model':_0x499abb['model'],'reasoning':_0x499abb[_0x54df1f(0x118,0x8a,0xb5,_0x51f950._0x15c83a)],'providerSessionResolver':_0x4788b9,'requestMutators':_0x499abb[_0x54df1f(0xc1,_0x51f950._0x4901f3,_0x51f950._0x48ecf3,_0x51f950._0x34b4cc)]});}[_0x1b1adc(-0xf,0x73,-0x28,-0x20)](){const _0x523a35={_0x35660c:0x4a1,_0x451a1f:0x354,_0x3efaf0:0x3e9},_0x2e5e72={_0x52844d:0x4e,_0x2ecea6:0x4a5,_0x7b4e8f:0x1cc};function _0x4ffb69(_0x567ac0,_0xc76b5d,_0x4f4329,_0x3f7526){return _0x1b1adc(_0x567ac0-_0x2e5e72._0x52844d,_0xc76b5d-_0x2e5e72._0x2ecea6,_0x4f4329-_0x2e5e72._0x7b4e8f,_0x567ac0);}return new Error(_0x4ffb69(_0x523a35._0x35660c,0x442,_0x523a35._0x451a1f,_0x523a35._0x3efaf0));}['usesResponsesApi'](_0x266568){const _0x254d35={_0x4b905b:0x152,_0x59efa3:0x5be,_0x3b7d9e:0x5ef,_0x32b2b2:0x64b,_0x3e24c6:0x659,_0x3ca6b7:0x6e3,_0x456776:0x4f,_0xf8d879:0x26,_0x2e1748:0x9,_0x58cee5:0x5ee,_0x469a51:0x697,_0x17e2cc:0x6eb},_0x4a9af6={_0x87b0cb:0x3d,_0x8d4a5a:0x9,_0x32823b:0x129},_0x569565={_0x57b7d6:0x17d,_0x493f62:0x9e,_0x3ad5e6:0xe5},_0x31b7f2=this[_0x47ca2e(-0x11b,-_0x254d35._0x4b905b,-0x14d,-0x86)][_0x56628e(_0x254d35._0x59efa3,_0x254d35._0x3b7d9e,_0x254d35._0x32b2b2,_0x254d35._0x3e24c6)](_0x266568);function _0x47ca2e(_0x1e06a4,_0xf33313,_0x16ae69,_0x3f97c3){return _0x1b1adc(_0x1e06a4-_0x569565._0x57b7d6,_0x3f97c3- -_0x569565._0x493f62,_0x16ae69-_0x569565._0x3ad5e6,_0x16ae69);}function _0x56628e(_0x250af6,_0x1c115c,_0x18cd2e,_0x33ebc7){return _0x1b98ce(_0x250af6,_0x1c115c- -_0x4a9af6._0x87b0cb,_0x18cd2e-_0x4a9af6._0x8d4a5a,_0x33ebc7-_0x4a9af6._0x32823b);}if(!_0x31b7f2)return![];return!_0x31b7f2[_0x56628e(0x735,0x653,0x56e,_0x254d35._0x3ca6b7)](_0x47ca2e(-0x245,-0x14b,-0xe7,-0x188))&&_0x31b7f2[_0x47ca2e(-_0x254d35._0x456776,-0x7b,_0x254d35._0xf8d879,_0x254d35._0x2e1748)](_0x56628e(_0x254d35._0x58cee5,0x5ff,_0x254d35._0x469a51,_0x254d35._0x17e2cc));}[_0x1b1adc(-0x1d,-0xef,-0xde,-0xcf)](_0x20bba4){const _0x4a0554={_0x175a27:0x352,_0x55cad0:0x27f,_0x365c84:0x355,_0x15a14d:0x128,_0x7819ec:0x147,_0x2c757d:0x10d,_0x2b2c7e:0x328,_0x5f38c2:0x3e1,_0x436f3d:0x273,_0xa62628:0x20b,_0x5dc941:0x2ea,_0x35289d:0x1fb,_0x4b5697:0x1b3,_0x286d4f:0x1db,_0x388438:0x23f,_0x36150e:0x2c9},_0x52b535={_0x310747:0x1b8,_0x44b4b6:0x81},_0x11637c={_0x26606c:0xb0},_0xf44124=this[_0x4a4d07(0x286,0x3b5,0x37b,_0x4a0554._0x175a27)][_0x2dfaf0(0x2ad,0x1fb,0x13c,_0x4a0554._0x55cad0)](_0x20bba4[_0x4a4d07(_0x4a0554._0x365c84,0x268,0x2bf,0x2fb)]);function _0x4a4d07(_0x33ed6f,_0x22b748,_0x588bb7,_0x29f52b){return _0x1b1adc(_0x33ed6f-_0x11637c._0x26606c,_0x29f52b-0x33a,_0x588bb7-0x1c2,_0x588bb7);}if(!_0xf44124)return![];function _0x2dfaf0(_0x1d5a31,_0x60fd8d,_0xb3fe68,_0x168e70){return _0x1b1adc(_0x1d5a31-0x8c,_0x60fd8d-_0x52b535._0x310747,_0xb3fe68-_0x52b535._0x44b4b6,_0x168e70);}if(resolveOpenAiReasoningConfig(_0x20bba4[_0x2dfaf0(_0x4a0554._0x15a14d,_0x4a0554._0x7819ec,0xa6,_0x4a0554._0x2c757d)]))return _0xf44124[_0x4a4d07(0x444,_0x4a0554._0x2b2c7e,0x36e,_0x4a0554._0x5f38c2)](_0x2dfaf0(_0x4a0554._0x436f3d,_0x4a0554._0xa62628,_0x4a0554._0x5dc941,_0x4a0554._0x35289d));return this[_0x2dfaf0(0x225,_0x4a0554._0x4b5697,_0x4a0554._0x286d4f,_0x4a0554._0x388438)](_0x20bba4[_0x4a4d07(0x32d,0x2c5,_0x4a0554._0x36150e,0x2fb)]);}[_0x1b1adc(0x135,0xbf,-0x30,0xe1)](_0x812631){const _0x208282={_0x5ba85a:0x2b6,_0x995dc8:0x2ff,_0x466120:0x399,_0x32044a:0x118,_0x24c40c:0x1de,_0x1b65b8:0x1c8,_0x29c2af:0x90},_0xe0689d={_0x29cd24:0x16d},_0x1e3203={_0x5265a9:0x2cb};function _0x3b9ff0(_0x50f53a,_0x1407d5,_0x12a4ce,_0x58f06e){return _0x1b1adc(_0x50f53a-0x29,_0x1407d5-_0x1e3203._0x5265a9,_0x12a4ce-0x1af,_0x58f06e);}function _0x15a2fc(_0xdf1797,_0x1191c8,_0x22ef19,_0x500e61){return _0x1b1adc(_0xdf1797-_0xe0689d._0x29cd24,_0x1191c8- -0xe3,_0x22ef19-0xee,_0x22ef19);}this[_0x3b9ff0(_0x208282._0x5ba85a,0x2e3,_0x208282._0x995dc8,_0x208282._0x466120)][_0x3b9ff0(_0x208282._0x32044a,_0x208282._0x24c40c,_0x208282._0x1b65b8,0x1f2)](_0x812631,[_0x15a2fc(-0xa1,-_0x208282._0x29c2af,-0x12c,-0xbc)]);}['mapApiError'](_0x3f8c93){const _0x5d4a99={_0x4ba09d:0x17d,_0x2e71ed:0x1a7,_0x4dee74:0x12f,_0x1a0f78:0xcf,_0x2022a4:0x4e,_0x210167:0x26d,_0x46412b:0x266,_0x44d5c1:0x1b6,_0x336379:0x281},_0x538876={_0x44344c:0x3ea,_0x22801d:0x28,_0x75b47a:0x69};function _0x14be58(_0xcc91d9,_0x5f33ed,_0x146ce7,_0x4548fe){return _0x1b1adc(_0xcc91d9-0x17,_0x4548fe-0x65,_0x146ce7-0x190,_0xcc91d9);}if(_0x3f8c93 instanceof OpenAiApiError)return createResponseError(_0x3f8c93[_0xb1b0ff(_0x5d4a99._0x4ba09d,_0x5d4a99._0x2e71ed,0xe9,_0x5d4a99._0x4dee74)],_0x3f8c93[_0x14be58(_0x5d4a99._0x1a0f78,0x3b,0x7e,_0x5d4a99._0x2022a4)]||_0x3f8c93[_0xb1b0ff(_0x5d4a99._0x210167,_0x5d4a99._0x46412b,_0x5d4a99._0x44d5c1,_0x5d4a99._0x336379)]);function _0xb1b0ff(_0x544322,_0x399ed5,_0x2b3215,_0x2e170a){return _0x1b98ce(_0x2b3215,_0x399ed5- -_0x538876._0x44344c,_0x2b3215-_0x538876._0x22801d,_0x2e170a-_0x538876._0x75b47a);}return _0x3f8c93;}[_0x1b98ce(0x6e1,0x66d,0x5e0,0x6d2)](_0x299ddb,_0x4988f6){const _0x41c3c4={_0x2cc648:0x1f,_0x557384:0x174,_0x48ac48:0x98,_0x519de4:0x75d,_0xec4293:0x69e,_0x59097e:0x6b1,_0x3adfdf:0xc6,_0x9688ff:0x178,_0x58c6b2:0x171,_0x1ae9b7:0x18,_0x577125:0x25,_0x50320b:0xa0,_0x392ecd:0x1bb,_0x31b519:0x95,_0x427a63:0x122,_0x122652:0x5b9,_0x4ae9a4:0x6c1,_0x2ed6ef:0x6a9,_0x4cfdaf:0x19e,_0x18b755:0x185,_0x15b2f0:0x116,_0x13e743:0x158,_0x41cdda:0x704,_0x9794a6:0x63a,_0x55465b:0x22f,_0x135c5f:0x11f,_0x2b46f4:0x6c0,_0xd687e8:0x5d1,_0x574521:0x42,_0x218352:0xda},_0x17314f={_0x3e142d:0x1e0},_0x3d2fb5={_0x409bea:0x462,_0x58c7ea:0xf8,_0x1807c4:0x1a7};switch(this[_0x55a0a0(0x12c,_0x41c3c4._0x2cc648,0x52,0xda)]){case _0x55a0a0(-0x27,_0x41c3c4._0x557384,_0x41c3c4._0x48ac48,0x95):return this[_0x4a883c(_0x41c3c4._0x519de4,0x6f1,_0x41c3c4._0xec4293,_0x41c3c4._0x59097e)][_0x55a0a0(_0x41c3c4._0x3adfdf,0xca,_0x41c3c4._0x9688ff,_0x41c3c4._0x58c6b2)](_0x299ddb,_0x4988f6);case _0x55a0a0(_0x41c3c4._0x1ae9b7,0xac,-_0x41c3c4._0x577125,_0x41c3c4._0x50320b):return this[_0x55a0a0(0x135,_0x41c3c4._0x392ecd,_0x41c3c4._0x31b519,_0x41c3c4._0x427a63)](_0x299ddb,_0x4988f6);case _0x4a883c(0x622,0x551,_0x41c3c4._0x122652,0x627):return this['response'](_0x299ddb,_0x4988f6);case _0x4a883c(0x78e,_0x41c3c4._0x4ae9a4,_0x41c3c4._0x2ed6ef,0x6c6):return this[_0x55a0a0(_0x41c3c4._0x4cfdaf,_0x41c3c4._0x18b755,_0x41c3c4._0x15b2f0,_0x41c3c4._0x13e743)](_0x299ddb,_0x4988f6);case _0x4a883c(_0x41c3c4._0x41cdda,_0x41c3c4._0x9794a6,0x65d,0x719):return this[_0x55a0a0(_0x41c3c4._0x55465b,0x1a7,_0x41c3c4._0x135c5f,0x171)](_0x299ddb,_0x4988f6);}function _0x55a0a0(_0x482b06,_0x5c6d73,_0x155249,_0x566e75){return _0x1b98ce(_0x5c6d73,_0x566e75- -_0x3d2fb5._0x409bea,_0x155249-_0x3d2fb5._0x58c7ea,_0x566e75-_0x3d2fb5._0x1807c4);}function _0x4a883c(_0x4310d4,_0x48fa48,_0x599ebe,_0x4cf161){return _0x1b1adc(_0x4310d4-0x11c,_0x599ebe-0x619,_0x599ebe-_0x17314f._0x3e142d,_0x4cf161);}throw new Error(_0x4a883c(_0x41c3c4._0x2b46f4,0x4e9,_0x41c3c4._0xd687e8,0x647)+String(this[_0x55a0a0(0xae,0x4e,_0x41c3c4._0x574521,_0x41c3c4._0x218352)]));}[_0x1b98ce(0x71f,0x697,0x641,0x6a7)](_0x12bc3c,_0x46061e){const _0x170200={_0x34111e:0x289,_0xcca6a0:0xb3,_0x2950f3:0x15,_0x495d60:0x11e,_0x19a8da:0x110,_0x52d08a:0x192,_0x3ae690:0x15c,_0x490513:0x4e,_0x2501fc:0x14,_0x3d3659:0x117,_0x2b4551:0x6c,_0x3271dc:0x97,_0xb7d3c6:0x20,_0x5d6498:0xd0,_0x1ab4bc:0x70,_0xd452d4:0x1d,_0xc6fcbc:0x144,_0x535cf9:0x1be},_0x16ae15={_0xe4fbee:0x25,_0x367644:0x3f},_0x24da73={_0x4a7c9a:0x6e5,_0x626081:0xb6,_0x56ca5b:0x72};function _0x458869(_0x189472,_0x56ec3f,_0x366de2,_0x497b65){return _0x1b98ce(_0x189472,_0x56ec3f- -_0x24da73._0x4a7c9a,_0x366de2-_0x24da73._0x626081,_0x497b65-_0x24da73._0x56ca5b);}function _0x2e09ce(_0x4b566d,_0x466827,_0x1c7643,_0x5e3fdd){return _0x1b1adc(_0x4b566d-_0x16ae15._0xe4fbee,_0x466827-_0x16ae15._0x367644,_0x1c7643-0xef,_0x5e3fdd);}switch(this[_0x458869(-0x12c,-0x1a9,-_0x170200._0x34111e,-0xba)]){case _0x2e09ce(-0x10e,-_0x170200._0xcca6a0,-0x11e,-0x19b):return this[_0x2e09ce(0x2b,0xc4,0x149,0xcc)]['stream'](_0x12bc3c,_0x46061e);case'openai-chat-completions':return this[_0x2e09ce(-_0x170200._0x2950f3,-0x62,-_0x170200._0x495d60,-_0x170200._0x19a8da)](_0x12bc3c,_0x46061e);case _0x458869(-_0x170200._0x52d08a,-_0x170200._0x3ae690,-0xae,-0x1ec):return this[_0x2e09ce(_0x170200._0x490513,0x89,-_0x170200._0x2501fc,_0x170200._0x3d3659)](_0x12bc3c,_0x46061e);case _0x458869(0x7,-_0x170200._0x2b4551,-_0x170200._0x3271dc,0x3f):return this[_0x2e09ce(-_0x170200._0xb7d3c6,0x7a,_0x170200._0x5d6498,_0x170200._0x1ab4bc)](_0x12bc3c,_0x46061e);case'auto':return this[_0x2e09ce(_0x170200._0xd452d4,0x54,0x6e,0x142)](_0x12bc3c,_0x46061e);}throw new Error(_0x458869(-0x17e,-_0x170200._0xc6fcbc,-0xfe,-0xc7)+String(this[_0x458869(-_0x170200._0x535cf9,-0x1a9,-0x294,-0xfd)]));}async[_0x1b1adc(-0x102,-0x16,0x36,0x8f)](_0x3586ad,_0x406b36){const _0x17174f={_0x424379:0x6,_0x3a7d41:0x1f,_0x3c3d0b:0x8b,_0x155a52:0x224,_0x13d610:0x8c,_0x1fbdbf:0x1bd,_0x1b278f:0x17e,_0x3c19ab:0xe,_0x1fd368:0xae,_0x570345:0x125,_0x4fe1e3:0x9a,_0x3b3b1c:0x16},_0x5051d0={_0x22ea14:0x1cf},_0x21725d={_0x170c7f:0x2b,_0x362196:0x1bc};function _0x3b8e5b(_0x16d4b3,_0x9ed3d4,_0x160d11,_0x2955e9){return _0x1b1adc(_0x16d4b3-0x13a,_0x160d11- -_0x21725d._0x170c7f,_0x160d11-_0x21725d._0x362196,_0x9ed3d4);}const _0x518c30=this[_0x5892f9(_0x17174f._0x424379,_0x17174f._0x3a7d41,-_0x17174f._0x3c3d0b,-0x127)](_0x3586ad);function _0x5892f9(_0x4b4e31,_0x56719a,_0xe0d3d9,_0x4fda25){return _0x1b98ce(_0x56719a,_0xe0d3d9- -0x6ce,_0xe0d3d9-_0x5051d0._0x22ea14,_0x4fda25-0xd0);}if(this[_0x5892f9(-0x119,-0x10c,-0x192,-_0x17174f._0x155a52)]!==_0x5892f9(-0x14,-0x114,-0xa1,-0x77))return this['completeViaConfiguredSurface'](_0x518c30,_0x406b36);if(this[_0x3b8e5b(-_0x17174f._0x13d610,-_0x17174f._0x1fbdbf,-0x11a,-0x11a)](_0x518c30))return this[_0x5892f9(-0x75,-0xb4,-0xc0,-0xca)](_0x518c30,_0x406b36);try{return await this[_0x3b8e5b(-0x194,-0xab,-0xed,-_0x17174f._0x1b278f)](_0x518c30,_0x406b36);}catch(_0x446201){if(_0x446201 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x446201['body']))return this[_0x5892f9(-_0x17174f._0x3c19ab,_0x17174f._0x1fd368,-0x26,-0x31)](_0x518c30['model']),this[_0x5892f9(-_0x17174f._0x570345,-0x130,-0xc0,-0x4c)](_0x518c30,_0x406b36);throw this[_0x5892f9(-0x35,-_0x17174f._0x4fe1e3,-0x5d,-_0x17174f._0x3b3b1c)](_0x446201);}throw _0x446201;}}async*[_0x1b1adc(-0xbb,0x15,0xe0,-0x47)](_0x1fe210,_0x110740){const _0x1ed196={_0x58a876:0x4aa,_0x11c786:0x46d,_0x368a5d:0x46a,_0xdb65c:0x561,_0x26dea6:0x5c8,_0x63e226:0x26a,_0x7637eb:0x521,_0x173b2e:0x4f4,_0x354e10:0x28f,_0x3f5951:0x212,_0x3f1376:0x30e,_0x47f0fe:0x336,_0x510405:0x2d7},_0x18c3d0={_0x24c54e:0x1b0,_0x3a2acc:0x51a},_0xa3e96e={_0x552f51:0x343,_0x47752d:0xe2};function _0x176c4e(_0x512f59,_0x2aa780,_0x3d67db,_0x38b608){return _0x1b98ce(_0x2aa780,_0x512f59- -_0xa3e96e._0x552f51,_0x3d67db-_0xa3e96e._0x47752d,_0x38b608-0xde);}const _0x243896=this['applyModelDefaults'](_0x1fe210);if(this[_0x1e689f(_0x1ed196._0x58a876,0x541,_0x1ed196._0x11c786,_0x1ed196._0x368a5d)]!=='auto'){yield*this[_0x1e689f(_0x1ed196._0xdb65c,0x625,_0x1ed196._0x26dea6,0x5f5)](_0x243896,_0x110740);return;}function _0x1e689f(_0x18dbcd,_0x528a2e,_0x39c56c,_0x470f06){return _0x1b1adc(_0x18dbcd-_0x18c3d0._0x24c54e,_0x39c56c-_0x18c3d0._0x3a2acc,_0x39c56c-0x182,_0x528a2e);}if(this[_0x176c4e(0x1b7,0xf2,0x12b,_0x1ed196._0x63e226)](_0x243896)){yield*this['responseStream'](_0x243896,_0x110740);return;}try{yield*this[_0x1e689f(_0x1ed196._0x7637eb,0x4c3,_0x1ed196._0x173b2e,0x4e0)](_0x243896,_0x110740);}catch(_0x2fac24){if(_0x2fac24 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x2fac24[_0x176c4e(_0x1ed196._0x354e10,_0x1ed196._0x3f5951,0x230,_0x1ed196._0x3f1376)])){this[_0x176c4e(0x365,_0x1ed196._0x47f0fe,0x2c3,_0x1ed196._0x510405)](_0x243896['model']),yield*this['responseStream'](_0x243896,_0x110740);return;}throw this['mapApiError'](_0x2fac24);}throw _0x2fac24;}}async['getModels'](_0x2f2dee){const _0x2ccad4={_0x1df03c:0x19e,_0x4ccd78:0x28d,_0x570e77:0x21e,_0x3b3fef:0x119,_0x362b31:0x277,_0x15765c:0x1ec,_0x2409b9:0x1cb,_0x220820:0x41,_0x55383c:0x108,_0x1bcd80:0x2ec,_0x15b7c2:0x24e},_0x533888={_0x5db334:0x7d},_0xadb03a={_0x1c812e:0x47},_0x342736={_0x658fda:0x192},_0x55df37={_0x40abc9:0x3fe,_0x40447c:0x1b4,_0x15847c:0x95},_0x2b9a65=await this[_0x261335(_0x2ccad4._0x1df03c,0x243,_0x2ccad4._0x4ccd78,0x283)]({'path':_0x54477a(0x214,_0x2ccad4._0x570e77,_0x2ccad4._0x3b3fef,0x131),'method':_0x261335(0x16a,_0x2ccad4._0x362b31,_0x2ccad4._0x15765c,0x134),'signal':_0x2f2dee});if(!_0x2b9a65['ok'])throw this[_0x54477a(0x94,_0x2ccad4._0x2409b9,_0x2ccad4._0x220820,_0x2ccad4._0x55383c)](await this[_0x261335(_0x2ccad4._0x1bcd80,0x2fb,_0x2ccad4._0x15b7c2,0x260)](_0x2b9a65));const _0x32cbc6=await _0x2b9a65['json']();function _0x261335(_0x4a698a,_0x31ffbc,_0x5d0a12,_0xa072ca){return _0x1b98ce(_0x31ffbc,_0x5d0a12- -_0x55df37._0x40abc9,_0x5d0a12-_0x55df37._0x40447c,_0xa072ca-_0x55df37._0x15847c);}const _0x315246=(_0x32cbc6['data']??[])['map'](_0x27c78d=>{const _0x45d9fb=createModelInfo(_0x27c78d);function _0x4415db(_0x4529a3,_0x1c3ad9,_0x383f06,_0x3af159){return _0x261335(_0x4529a3-0x10d,_0x1c3ad9,_0x3af159- -_0x342736._0x658fda,_0x3af159-0xd1);}return _0x45d9fb['supportedEndpoints']&&this[_0x4415db(-0x75,-0x68,_0xadb03a._0x1c812e,0x71)]['set'](_0x45d9fb['id'],_0x45d9fb['supportedEndpoints']),_0x45d9fb;});function _0x54477a(_0x4c5538,_0xb005f4,_0x1d7d82,_0x35f3e0){return _0x1b1adc(_0x4c5538-_0x533888._0x5db334,_0x35f3e0-0x80,_0x1d7d82-0xf2,_0x4c5538);}return deduplicateModels(_0x315246);}};function createHeaders(_0x7c624){const _0x4a442b={_0x51866f:0x515,_0x3152aa:0x5ee},_0x47e7a8={_0x52c6ee:0xdf},_0x243e7a=new Headers();function _0x1582e3(_0x4eabfc,_0x401e67,_0x4ab02b,_0x3c9946){return _0x1b98ce(_0x3c9946,_0x401e67- -0x175,_0x4ab02b-_0x47e7a8._0x52c6ee,_0x3c9946-0x9e);}for(const [_0x3c12d0,_0x2d91f2]of Object[_0x1582e3(0x4a5,_0x4a442b._0x51866f,_0x4a442b._0x3152aa,0x51c)](_0x7c624)){_0x243e7a['set'](_0x3c12d0,_0x2d91f2);}return _0x243e7a;}async function fetchRawResponse(_0x5a3e6a){const _0x2c8946={_0x758b1a:0x4fb,_0x1940ad:0x600,_0x212316:0x56a,_0x47297f:0xae,_0x524e6b:0x17a,_0x5d47ce:0x160,_0xc8aba0:0x92,_0x498a4a:0x152,_0x35ebe2:0x654,_0x2476fc:0x6c6,_0x250057:0x11c,_0x345a7d:0x20c,_0x52d8f3:0x14a},_0x4aad2e={_0x49deb5:0x6ee,_0x51ad71:0x125},_0xd101={_0x211bc3:0x5df};function _0x54e921(_0x1eba22,_0x2cf248,_0x5c6450,_0x1669e8){return _0x1b1adc(_0x1eba22-0x6,_0x1669e8-_0xd101._0x211bc3,_0x5c6450-0x1b1,_0x2cf248);}const _0xffafe5=_0x5a3e6a[_0x54e921(_0x2c8946._0x758b1a,_0x2c8946._0x1940ad,0x5bb,_0x2c8946._0x212316)]??globalThis[_0x3a5e9d(-_0x2c8946._0x47297f,-_0x2c8946._0x524e6b,-_0x2c8946._0x5d47ce,-0x10f)];function _0x3a5e9d(_0x318ecb,_0xedd0c9,_0x5d4507,_0x173da9){return _0x1b98ce(_0x5d4507,_0xedd0c9- -_0x4aad2e._0x49deb5,_0x5d4507-0xc7,_0x173da9-_0x4aad2e._0x51ad71);}return _0xffafe5(_0x5a3e6a['url'],{'method':_0x3a5e9d(-_0x2c8946._0xc8aba0,-0x136,-0xd4,-_0x2c8946._0x498a4a),'headers':createHeaders(_0x5a3e6a['headers']),'body':JSON[_0x54e921(_0x2c8946._0x35ebe2,0x684,_0x2c8946._0x2476fc,0x62e)](_0x5a3e6a[_0x3a5e9d(-0xe3,-_0x2c8946._0x250057,-_0x2c8946._0x345a7d,-_0x2c8946._0x52d8f3)]),'signal':_0x5a3e6a[_0x54e921(0x5f4,0x618,0x679,0x5ad)]});}async function fetchJsonResponse(_0x321cb4){const _0x1af45c={_0x3327ce:0x677,_0x4f7330:0x6a6,_0x11f652:0x1ce,_0x198ff4:0x1d6,_0x25d452:0x5ec,_0x369b0a:0x5da,_0xf636d:0x5ff,_0x4cacf4:0x1de,_0x3e6c7d:0x124,_0x22f536:0x1e0},_0x3b442e={_0x5db8df:0xd8},_0x13da08={_0x5f2b74:0xac,_0x29c7e1:0x170},_0x48b29d=await fetchRawResponse(_0x321cb4);function _0x104499(_0x382300,_0x30d81d,_0x58dabc,_0x2d6152){return _0x1b98ce(_0x58dabc,_0x30d81d-_0x13da08._0x5f2b74,_0x58dabc-_0x13da08._0x29c7e1,_0x2d6152-0x51);}if(!_0x48b29d['ok']){const _0x50bc02=await _0x48b29d[_0x104499(_0x1af45c._0x3327ce,0x6f5,_0x1af45c._0x4f7330,0x6a8)](),_0x9a4662=_0x50bc02[_0x3555e5(-_0x1af45c._0x11f652,-0x131,-_0x1af45c._0x198ff4,-0x64)]()||_0x48b29d[_0x3555e5(-0x1a1,-0x140,-0x1d1,-0x1c5)]||_0x104499(_0x1af45c._0x25d452,_0x1af45c._0x369b0a,0x50d,_0x1af45c._0xf636d);throw new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x48b29d[_0x3555e5(-_0x1af45c._0x4cacf4,-0x161,-0x22f,-_0x1af45c._0x3e6c7d)]+':\x20'+_0x9a4662);}function _0x3555e5(_0x7d1b9,_0x29ef6d,_0x1452ab,_0x7dd253){return _0x1b1adc(_0x7d1b9-0x1c4,_0x29ef6d- -0x109,_0x1452ab-_0x3b442e._0x5db8df,_0x7d1b9);}return await _0x48b29d[_0x3555e5(-0x28e,-_0x1af45c._0x22f536,-0x213,-0x105)]();}function _0x58b0(_0xaf3f81,_0x10a539){_0xaf3f81=_0xaf3f81-0x1c9;const _0x121597=_0x1215();let _0x58b04d=_0x121597[_0xaf3f81];if(_0x58b0['goWgWQ']===undefined){var _0x15bae2=function(_0x163822){const _0x59da19='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x153559='',_0x33833c='';for(let _0x5c4006=0x0,_0x5e462f,_0x23f920,_0x464b84=0x0;_0x23f920=_0x163822['charAt'](_0x464b84++);~_0x23f920&&(_0x5e462f=_0x5c4006%0x4?_0x5e462f*0x40+_0x23f920:_0x23f920,_0x5c4006++%0x4)?_0x153559+=String['fromCharCode'](0xff&_0x5e462f>>(-0x2*_0x5c4006&0x6)):0x0){_0x23f920=_0x59da19['indexOf'](_0x23f920);}for(let _0x240550=0x0,_0x1e8a25=_0x153559['length'];_0x240550<_0x1e8a25;_0x240550++){_0x33833c+='%'+('00'+_0x153559['charCodeAt'](_0x240550)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x33833c);};_0x58b0['WYhuiS']=_0x15bae2,_0x58b0['kDHxLS']={},_0x58b0['goWgWQ']=!![];}const _0x316a64=_0x121597[0x0],_0x401caf=_0xaf3f81+_0x316a64,_0x1fd912=_0x58b0['kDHxLS'][_0x401caf];return!_0x1fd912?(_0x58b04d=_0x58b0['WYhuiS'](_0x58b04d),_0x58b0['kDHxLS'][_0x401caf]=_0x58b04d):_0x58b04d=_0x1fd912,_0x58b04d;}function findLastMessage(_0x156fca,_0x5d4eb9){const _0x595749={_0x2ed6f3:0x3b6,_0x50dd10:0x40d,_0x50dd14:0x374,_0x45ece1:0x682,_0x2de9f5:0x522,_0x251a4c:0x543},_0x574532={_0x44bda4:0xf8,_0x1cb832:0x16a},_0x3ef8a0={_0x3e7f89:0xe3,_0x4d626f:0x19,_0xd32933:0x18f};for(let _0x3306b0=_0x156fca[_0x4cae5b(_0x595749._0x2ed6f3,0x4a4,_0x595749._0x50dd10,_0x595749._0x50dd14)]-0x1;_0x3306b0>=0x0;_0x3306b0-=0x1){if(_0x156fca[_0x3306b0][_0x4cae5b(_0x595749._0x45ece1,_0x595749._0x2de9f5,0x5c7,_0x595749._0x251a4c)]===_0x5d4eb9)return _0x156fca[_0x3306b0];}function _0x4cae5b(_0x171bde,_0x1a28ab,_0x4fc58d,_0x3ee32b){return _0x1b98ce(_0x3ee32b,_0x4fc58d- -_0x3ef8a0._0x3e7f89,_0x4fc58d-_0x3ef8a0._0x4d626f,_0x3ee32b-_0x3ef8a0._0xd32933);}function _0x5ccb72(_0x10c8ba,_0x4f14a7,_0x50f1a1,_0x1927e6){return _0x1b98ce(_0x10c8ba,_0x4f14a7- -0x255,_0x50f1a1-_0x574532._0x44bda4,_0x1927e6-_0x574532._0x1cb832);}return void 0x0;}function hasTool(_0x3e3c58,_0x455734){const _0x417440={_0x56c8aa:0x8f},_0x3d67bd={_0x500400:0x1a2};function _0x5ad144(_0x293b80,_0xacfd8f,_0x24f9a7,_0x1fd058){return _0x1b98ce(_0x1fd058,_0x24f9a7- -0x5c9,_0x24f9a7-0xa3,_0x1fd058-0x138);}function _0x2a87b9(_0x55e973,_0x40aadf,_0x415e1e,_0x5b0927){return _0x1b1adc(_0x55e973-_0x3d67bd._0x500400,_0x55e973- -0xdf,_0x415e1e-0x186,_0x5b0927);}return _0x3e3c58[_0x5ad144(-0x55,-0x103,-_0x417440._0x56c8aa,0x57)]['some'](_0x36d6b8=>_0x36d6b8[_0x5ad144(0xa4,0x17b,0xb2,0x7a)]===_0x455734);}function createMockResponse(_0x645a91,_0xce8561,_0x2777c8,_0x3def5e){return{'id':_0x645a91,'content':_0xce8561,'stopReason':_0x2777c8,'usage':_0x3def5e};}var MockModel=class{[_0x1b1adc(-0x12d,-0x3f,0x48,0xa1)];[_0x1b98ce(0x466,0x4f4,0x4d4,0x49e)];[_0x1b1adc(-0x70,-0x5b,-0x23,-0x14a)]=[];[_0x1b1adc(0x57,-0x71,-0x14d,0x30)];constructor(_0x2166c7={}){const _0x1b8136={_0x5f1015:0xb3,_0x5903d3:0x14c,_0x1156f1:0x53,_0x22e321:0x101,_0x2e0bcc:0x11a,_0x22959c:0x1c1,_0x18037e:0x81,_0x2fcd12:0x203},_0x3f8ecb={_0x2306da:0x78,_0x5d4db2:0xda},_0x259786={_0x1b7405:0x95,_0x41c661:0x18b};function _0x3789f5(_0x58e49e,_0x5a4b10,_0x5017c5,_0x313e9b){return _0x1b1adc(_0x58e49e-_0x259786._0x1b7405,_0x5017c5-_0x259786._0x41c661,_0x5017c5-0x1c4,_0x313e9b);}function _0x234b7c(_0x2b7c11,_0xfe9024,_0x53457e,_0x2caeba){return _0x1b1adc(_0x2b7c11-_0x3f8ecb._0x2306da,_0x53457e-_0x3f8ecb._0x5d4db2,_0x53457e-0x1e9,_0x2caeba);}this[_0x3789f5(0xdd,_0x1b8136._0x5f1015,_0x1b8136._0x5903d3,0x1e6)]=_0x2166c7[_0x234b7c(-_0x1b8136._0x1156f1,0x93,0x9b,_0x1b8136._0x22e321)]??'mock',this['maxTokens']=_0x2166c7['maxTokens']??getDefaultMaxTokens(),this[_0x3789f5(0x1cb,0x63,_0x1b8136._0x2e0bcc,_0x1b8136._0x22959c)]=_0x2166c7[_0x3789f5(_0x1b8136._0x18037e,_0x1b8136._0x2fcd12,_0x1b8136._0x2e0bcc,0xa3)]?structuredClone(_0x2166c7['reasoning']):void 0x0;}async[_0x1b1adc(0x84,-0x16,0x1a,0x82)](_0x285c2f,_0x24f742){const _0x245a1c={_0x3aa097:0x486,_0x15c54f:0x4df,_0xe730d5:0x3ff,_0x4b7f8c:0x3ef,_0x38b58d:0x319,_0x191bcf:0x59b,_0x182f8e:0x576,_0x2ed215:0x44a,_0x6b71a:0x4c4,_0x4fd74d:0x461,_0x3f916f:0x49f,_0x22e589:0x408,_0x28a516:0x3e8,_0x584189:0x3fe,_0x29101:0x3d1,_0x304ccc:0x420,_0x5c91ad:0x4ae,_0x116100:0x407,_0x354e1a:0x4a3,_0x2965bc:0x2f0,_0x22f796:0x30a,_0x429e09:0x2c3,_0x159d70:0x487,_0x1c13fc:0x419,_0x5cc679:0x4a4,_0x5dbe09:0x4d0,_0x3e5908:0x49c,_0x57172d:0x4d9,_0x46191:0x351,_0x46abae:0x480,_0x26861d:0x609,_0x56512f:0x5ed,_0x4f1785:0x574,_0x477f0d:0x526,_0x1a8d31:0x5b0,_0x1c929b:0x60d,_0x41b9d3:0x521,_0x33f591:0x46c},_0x3fdfbc={_0x516434:0xe},_0x28d91e={...structuredClone(_0x285c2f),..._0x285c2f['reasoning']===void 0x0&&this[_0x1e0371(_0x245a1c._0x3aa097,_0x245a1c._0x15c54f,0x54c,0x39b)]!==void 0x0?{'reasoning':structuredClone(this[_0x1e0371(0x486,0x3bc,0x409,_0x245a1c._0xe730d5)])}:{}};this[_0x17127d(_0x245a1c._0x4b7f8c,_0x245a1c._0x38b58d,0x4c2,0x347)][_0x1e0371(_0x245a1c._0x191bcf,0x573,_0x245a1c._0x182f8e,0x5c8)](_0x28d91e);const _0x3c835b=findLastMessage(_0x28d91e[_0x17127d(_0x245a1c._0x2ed215,_0x245a1c._0x6b71a,_0x245a1c._0x4fd74d,0x3b5)],_0x17127d(_0x245a1c._0x3f916f,_0x245a1c._0x22e589,0x49a,0x54c)),_0x3d965a=getToolResultBlocks(_0x3c835b),_0x4c208b='assistant-'+this[_0x17127d(0x3ef,0x3a4,_0x245a1c._0x28a516,0x3b1)]['length'];if(_0x3d965a[_0x1e0371(_0x245a1c._0x584189,_0x245a1c._0x29101,_0x245a1c._0x304ccc,_0x245a1c._0x5c91ad)]>0x0)return createMockResponse(_0x4c208b,[{'type':'text','text':_0x1e0371(0x4e5,0x508,_0x245a1c._0x116100,0x54b)+_0x3d965a[0x0][_0x1e0371(_0x245a1c._0x354e1a,_0x245a1c._0x28a516,0x521,0x48c)]}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});const _0x36b0f4=getTextFromMessage(_0x3c835b);if(/list .*files|workspace/i[_0x17127d(0x361,_0x245a1c._0x2965bc,_0x245a1c._0x22f796,_0x245a1c._0x429e09)](_0x36b0f4)&&hasTool(_0x28d91e,_0x17127d(0x4b5,_0x245a1c._0xe730d5,0x42f,_0x245a1c._0x159d70)))return createMockResponse(_0x4c208b,[{'type':_0x17127d(0x4c7,0x495,0x480,0x586),'id':_0x1e0371(_0x245a1c._0x1c13fc,_0x245a1c._0x5cc679,_0x245a1c._0x5dbe09,0x3f7)+this[_0x1e0371(_0x245a1c._0x3e5908,0x544,_0x245a1c._0x57172d,0x52d)][_0x17127d(_0x245a1c._0x46191,0x3ec,0x276,0x360)],'name':_0x1e0371(0x562,0x4df,0x58a,_0x245a1c._0x57172d),'input':{'command':_0x17127d(0x519,_0x245a1c._0x46abae,_0x245a1c._0x26861d,_0x245a1c._0x56512f)}}],_0x1e0371(_0x245a1c._0x4f1785,_0x245a1c._0x477f0d,_0x245a1c._0x1a8d31,0x62c),{'inputTokens':0x6e,'outputTokens':0x1c});function _0x17127d(_0x41c88d,_0x5024a8,_0x189e5f,_0x1ebfbf){return _0x1b1adc(_0x41c88d-0xdb,_0x41c88d-0x44a,_0x189e5f-_0x3fdfbc._0x516434,_0x1ebfbf);}function _0x1e0371(_0x57a012,_0x489320,_0x43e50c,_0x37580d){return _0x1b98ce(_0x43e50c,_0x57a012- -0xf2,_0x43e50c-0x57,_0x37580d-0x28);}return createMockResponse(_0x4c208b,[{'type':_0x1e0371(0x557,_0x245a1c._0x1c929b,0x46c,_0x245a1c._0x41b9d3),'text':'Direct\x20answer:\x20'+_0x36b0f4}],_0x1e0371(0x53f,0x5a7,0x628,_0x245a1c._0x33f591),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0xa70a17,_0x437cc8){const _0x1a632c={_0x5c4328:0x6c,_0x1807d5:0xb1,_0x2529fa:0xd7,_0x30cb05:0x121,_0x119abe:0x12f},_0x436c3c={_0x11fa31:0x173},_0x3f758a={_0x5d6014:0x6f,_0xb00c59:0x5d};function _0x1247ab(_0x54ba73,_0x272aa5,_0x593180,_0x16fa35){return _0x1b1adc(_0x54ba73-_0x3f758a._0x5d6014,_0x54ba73-_0x3f758a._0xb00c59,_0x593180-0x16a,_0x272aa5);}const _0x36193b=getModelProfile(_0xa70a17,_0x437cc8);if(!_0x36193b?.[_0x4ad98d(_0x1a632c._0x5c4328,0x6e,-0x51,_0x1a632c._0x1807d5)]&&!_0x36193b?.[_0x4ad98d(_0x1a632c._0x2529fa,0x43,_0x1a632c._0x30cb05,0x11a)])return void 0x0;function _0x4ad98d(_0x4c5314,_0x879138,_0x188666,_0x6e7071){return _0x1b1adc(_0x4c5314-0xa3,_0x4c5314-0x169,_0x188666-_0x436c3c._0x11fa31,_0x6e7071);}return{..._0x36193b[_0x4ad98d(0x6c,0xf1,_0x1a632c._0x119abe,0x11d)]?{'contextWindow':_0x36193b['contextWindow']}:{},..._0x36193b['maxOutput']?{'maxOutput':_0x36193b['maxOutput']}:{}};}function normalizeModelInfo(_0x56fef4,_0x5b3eba){const _0x5d48c7={_0x64fdc1:0x7b,_0x49fdb7:0x156,_0x5a1dd8:0x1dc,_0x4ce7fc:0x71,_0x23203b:0x7f,_0x587414:0x3b,_0x5ca20d:0xae,_0x37fb8a:0x146,_0x23692f:0x4c2,_0x48dc58:0x3c,_0xef5bf:0x126,_0x2a36d4:0x44,_0x10dbe4:0xd1,_0x2eece0:0x4f9,_0x200dbd:0x454,_0x10e441:0x328},_0x1cf555={_0x205b9f:0xfa,_0x4fc59e:0xc4},_0x32057e={_0x508f6c:0x67,_0x25c5fb:0x464};function _0x1b915e(_0x28a769,_0x57cd29,_0x52e8f5,_0xabc16d){return _0x1b1adc(_0x28a769-_0x32057e._0x508f6c,_0x28a769-_0x32057e._0x25c5fb,_0x52e8f5-0x4b,_0x52e8f5);}const _0x3903e7=typeof _0x5b3eba['id']==='string'?_0x5b3eba['id']:'',_0x58a81d=typeof _0x5b3eba[_0x2e8ca2(_0x5d48c7._0x64fdc1,_0x5d48c7._0x49fdb7,_0x5d48c7._0x5a1dd8,0x1f0)]===_0x2e8ca2(-_0x5d48c7._0x4ce7fc,_0x5d48c7._0x23203b,-_0x5d48c7._0x587414,-0x22)?_0x5b3eba[_0x2e8ca2(0x102,0x156,_0x5d48c7._0x5ca20d,_0x5d48c7._0x37fb8a)]:_0x3903e7;function _0x2e8ca2(_0xcfec9a,_0x4e8c8c,_0x20c8ed,_0x40247b){return _0x1b1adc(_0xcfec9a-_0x1cf555._0x205b9f,_0x4e8c8c-_0x1cf555._0x4fc59e,_0x20c8ed-0xeb,_0x20c8ed);}const _0x24606e=normalizeModelLimits(_0x56fef4,_0x5b3eba)??getFallbackModelLimits(_0x56fef4,_0x3903e7),_0xb09938=Array[_0x1b915e(0x44c,0x46f,0x39b,_0x5d48c7._0x23692f)](_0x5b3eba[_0x2e8ca2(0x4d,_0x5d48c7._0x48dc58,0x2e,0x116)])?_0x5b3eba['supported_endpoints']['filter'](_0x2452ec=>typeof _0x2452ec==='string'):Array[_0x2e8ca2(_0x5d48c7._0xef5bf,0xac,-_0x5d48c7._0x2a36d4,0x104)](_0x5b3eba[_0x2e8ca2(0x238,0x159,_0x5d48c7._0x10dbe4,0xef)])?_0x5b3eba[_0x1b915e(_0x5d48c7._0x2eece0,0x564,_0x5d48c7._0x200dbd,0x4c5)][_0x1b915e(0x3de,0x447,0x48b,_0x5d48c7._0x10e441)](_0x2ac4bc=>typeof _0x2ac4bc===_0x1b915e(0x41f,0x355,0x41a,0x404)):void 0x0;return{'id':_0x3903e7,'name':_0x58a81d,..._0x24606e?{'limits':_0x24606e}:{},..._0xb09938?{'supportedEndpoints':_0xb09938}:{}};}function normalizeModelLimits(_0x234aed,_0x2e4a15){const _0x3965e6={_0x38ddd9:0x52b,_0x36326c:0x4a6,_0x26ab2f:0x219,_0x3c34bd:0x2bd,_0x3e8c26:0x274,_0x52a1a0:0xfd,_0xf97849:0x8a,_0x1cf702:0x4c9,_0x3959e1:0xad,_0x7fc220:0x5b8,_0x4061de:0x3e2,_0xda43d4:0x3e0,_0xb56a2f:0x16b,_0x2e7607:0xd8,_0x52040d:0x21e,_0x51b7b7:0x263,_0x162443:0x1e6,_0xccec28:0x26f,_0x426fd3:0x2b3,_0x4e5a16:0x189,_0xe8ecc0:0x201,_0x218668:0x3e3,_0x5bda89:0x4ac,_0x39b8fa:0x4a6,_0x356c4d:0x283,_0x307bd6:0x127,_0x598c4a:0x104,_0x127c41:0x130,_0x307d13:0x4ff,_0x4d30bc:0x541,_0x41029f:0x570,_0x31b85f:0x5d6,_0x4552da:0x5eb,_0x15bac3:0x593,_0x43ad93:0x5e8,_0x55b576:0x52,_0x3a2302:0x1a9,_0x1eb67c:0x4b8,_0x29544b:0x54d,_0x58c6f9:0x44c,_0x386380:0x40c,_0xa1f65e:0x47d,_0x47db20:0x23f,_0x5450f4:0x158,_0x2cdcaa:0x446,_0x4d4c56:0x4a5,_0x21a625:0x54d,_0x462174:0x1ff,_0x239349:0x135,_0x29f2ed:0x110,_0x2d9875:0x84,_0x4ad373:0x271,_0x2f89f4:0x149,_0x1cb55d:0x213,_0x3eb853:0x26c,_0x300499:0x40d,_0x22b5b7:0x4da,_0x48e882:0x4c9,_0x1866e3:0x614,_0x3aa8b2:0x543,_0x1b0acf:0x623},_0x58610e={_0x5e81d4:0x4f,_0x46d2ad:0x1fd},_0x35a851={_0x43ea3d:0x74,_0x45b2db:0x49};function _0x1903f7(_0x395347,_0x529b83,_0x46d2bd,_0x56b3bc){return _0x1b1adc(_0x395347-_0x35a851._0x43ea3d,_0x56b3bc-0x596,_0x46d2bd-_0x35a851._0x45b2db,_0x46d2bd);}if(_0x2e4a15['limits']&&typeof _0x2e4a15[_0x1903f7(0x52d,0x4fb,_0x3965e6._0x38ddd9,_0x3965e6._0x36326c)]===_0x2edaa5(_0x3965e6._0x26ab2f,_0x3965e6._0x3c34bd,0x141,_0x3965e6._0x3e8c26)){const _0xe71f02=_0x2e4a15[_0x2edaa5(0x10d,_0x3965e6._0x52a1a0,0x96,0x96)];if(typeof _0xe71f02[_0x2edaa5(0x100,0x6e,0x155,_0x3965e6._0xf97849)]===_0x1903f7(0x547,0x457,0x4ba,_0x3965e6._0x1cf702))return{'contextWindow':_0xe71f02[_0x2edaa5(0x100,0x5a,0x193,_0x3965e6._0x3959e1)],...typeof _0xe71f02[_0x1903f7(0x51d,0x4b3,_0x3965e6._0x7fc220,0x504)]===_0x1903f7(0x4fc,_0x3965e6._0x4061de,_0x3965e6._0xda43d4,0x4c9)?{'maxOutput':_0xe71f02[_0x2edaa5(_0x3965e6._0xb56a2f,_0x3965e6._0x2e7607,_0x3965e6._0x52040d,0x1ab)]}:{}};}if(_0x234aed[_0x2edaa5(_0x3965e6._0x51b7b7,0x2ce,0x2f6,_0x3965e6._0x162443)]()===_0x2edaa5(0x225,0x1ca,_0x3965e6._0xccec28,_0x3965e6._0x426fd3)){const _0x4e0640=_0x2e4a15[_0x2edaa5(0x176,0x1c6,_0x3965e6._0x4e5a16,_0x3965e6._0xe8ecc0)],_0x373c18=_0x4e0640?.[_0x1903f7(_0x3965e6._0x218668,0x3d8,_0x3965e6._0x5bda89,_0x3965e6._0x39b8fa)];if(typeof _0x373c18?.[_0x2edaa5(0x1cd,_0x3965e6._0x356c4d,_0x3965e6._0x307bd6,_0x3965e6._0x598c4a)]===_0x2edaa5(_0x3965e6._0x127c41,0x166,0x189,0x19f))return{'contextWindow':_0x373c18['max_context_window_tokens'],...typeof _0x373c18[_0x1903f7(0x5ef,0x584,_0x3965e6._0x307d13,_0x3965e6._0x4d30bc)]==='number'?{'maxOutput':_0x373c18[_0x1903f7(_0x3965e6._0x41029f,_0x3965e6._0x31b85f,0x56b,_0x3965e6._0x4d30bc)]}:{}};}const _0xf48417=_0x2e4a15[_0x1903f7(_0x3965e6._0x4552da,0x63c,_0x3965e6._0x15bac3,_0x3965e6._0x43ad93)];function _0x2edaa5(_0x971f21,_0x1207dc,_0x318a20,_0x440a41){return _0x1b1adc(_0x971f21-_0x58610e._0x5e81d4,_0x971f21-_0x58610e._0x46d2ad,_0x318a20-0x9f,_0x440a41);}const _0x9787fa=_0x2e4a15['top_provider'],_0x2c107a=typeof _0x2e4a15['context_length']===_0x2edaa5(0x130,_0x3965e6._0x55b576,0x1a0,_0x3965e6._0x3a2302)?_0x2e4a15['context_length']:typeof _0xf48417?.[_0x1903f7(_0x3965e6._0x1eb67c,0x61d,0x57f,_0x3965e6._0x29544b)]===_0x1903f7(_0x3965e6._0x58c6f9,_0x3965e6._0x386380,_0x3965e6._0xa1f65e,_0x3965e6._0x1cf702)?_0xf48417[_0x2edaa5(0x1b4,0x24f,_0x3965e6._0x47db20,_0x3965e6._0x5450f4)]:typeof _0x9787fa?.['context_length']===_0x1903f7(_0x3965e6._0xa1f65e,0x558,_0x3965e6._0x2cdcaa,0x4c9)?_0x9787fa[_0x1903f7(_0x3965e6._0x4d4c56,0x4a5,0x5eb,_0x3965e6._0x21a625)]:void 0x0;if(_0x2c107a===void 0x0)return void 0x0;return{'contextWindow':_0x2c107a,...typeof _0xf48417?.[_0x2edaa5(_0x3965e6._0x462174,_0x3965e6._0x239349,0x214,_0x3965e6._0x29f2ed)]===_0x2edaa5(0x130,_0x3965e6._0x2d9875,0x20d,0x1f9)?{'maxOutput':_0xf48417[_0x2edaa5(_0x3965e6._0x462174,_0x3965e6._0x4ad373,0x2af,_0x3965e6._0x2f89f4)]}:typeof _0x9787fa?.[_0x2edaa5(0x28a,_0x3965e6._0x1cb55d,_0x3965e6._0x3eb853,0x1c8)]===_0x1903f7(_0x3965e6._0x300499,_0x3965e6._0x22b5b7,0x513,_0x3965e6._0x48e882)?{'maxOutput':_0x9787fa[_0x1903f7(_0x3965e6._0x1866e3,0x55a,_0x3965e6._0x3aa8b2,_0x3965e6._0x1b0acf)]}:{}};}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,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultMaxTokens,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerFromSurface,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
1
+ (function(_0xbc06b4,_0x4c2769){const _0x21ffc3={_0x5bf6f8:0x3d,_0x4fa209:0x89,_0x554f76:0x34,_0xd13dd:0x15e,_0x575a9d:0x8c,_0x40ce95:0x61f,_0x27ed0d:0x5ee,_0x3b261d:0x59c,_0x34fbf9:0x104,_0x4bc02b:0x1d6,_0x55be25:0x11d,_0x5185ad:0x61e,_0x5a4eb2:0x1f6,_0x65eb04:0x78,_0x1559cb:0x50a,_0x2e9c1b:0x683,_0x3b48e7:0x685,_0x52ee6d:0x5ae,_0xcd9aa0:0x656,_0x4d869b:0x588,_0x4253e4:0x6e4,_0x225dc8:0x0,_0x1a08a2:0x5ec,_0x2f0582:0x6aa,_0x57ec21:0x614,_0x342dd7:0x4ae,_0x287b94:0x4e2,_0x91f481:0x577};function _0x5bd9d3(_0x2d08e0,_0x39db26,_0x5f50e3,_0x278278){return _0x4c72(_0x39db26- -0x1c3,_0x2d08e0);}function _0xf533f9(_0xff5b7a,_0xfe53f4,_0x2c8756,_0x2fd320){return _0x4c72(_0x2fd320-0x385,_0xfe53f4);}const _0x515cb9=_0xbc06b4();while(!![]){try{const _0x4070fa=-parseInt(_0x5bd9d3(-_0x21ffc3._0x5bf6f8,-0xb,_0x21ffc3._0x4fa209,-_0x21ffc3._0x554f76))/0x1*(parseInt(_0x5bd9d3(0x6a,_0x21ffc3._0xd13dd,0xd7,_0x21ffc3._0x575a9d))/0x2)+parseInt(_0xf533f9(0x4da,_0x21ffc3._0x40ce95,_0x21ffc3._0x27ed0d,_0x21ffc3._0x3b261d))/0x3+parseInt(_0x5bd9d3(_0x21ffc3._0x34fbf9,0x163,_0x21ffc3._0x4bc02b,_0x21ffc3._0x55be25))/0x4*(-parseInt(_0xf533f9(_0x21ffc3._0x5185ad,0x59c,0x511,0x52e))/0x5)+parseInt(_0x5bd9d3(_0x21ffc3._0x5a4eb2,0x14c,0x165,_0x21ffc3._0x65eb04))/0x6*(parseInt(_0xf533f9(_0x21ffc3._0x1559cb,_0x21ffc3._0x2e9c1b,_0x21ffc3._0x3b48e7,_0x21ffc3._0x52ee6d))/0x7)+parseInt(_0xf533f9(_0x21ffc3._0xcd9aa0,0x505,0x5dd,0x5c3))/0x8+-parseInt(_0xf533f9(_0x21ffc3._0x4d869b,0x5ee,_0x21ffc3._0x4253e4,0x633))/0x9*(parseInt(_0x5bd9d3(0xa7,0xc4,0xc0,_0x21ffc3._0x225dc8))/0xa)+parseInt(_0xf533f9(_0x21ffc3._0x1a08a2,0x61a,0x646,_0x21ffc3._0x2f0582))/0xb*(parseInt(_0xf533f9(_0x21ffc3._0x57ec21,_0x21ffc3._0x342dd7,_0x21ffc3._0x287b94,_0x21ffc3._0x91f481))/0xc);if(_0x4070fa===_0x4c2769)break;else _0x515cb9['push'](_0x515cb9['shift']());}catch(_0x13d130){_0x515cb9['push'](_0x515cb9['shift']());}}}(_0x25f2,0x6992f));import{toOpenAiResponsesRequest}from'../chunk-BLGBVFVX.js';import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-YWQXXHHU.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x3ae5ea){const _0x9fbce3={_0x2ffd35:0x168,_0x353aac:0x11b,_0x1956c0:0x126,_0x384d77:0x1e5},_0x12dbac={_0x1f0bb8:0x2ef};function _0x8f9016(_0x10bb30,_0x5dfb5d,_0x5c7125,_0x301c40){return _0x4c72(_0x5dfb5d- -0xf6,_0x5c7125);}function _0x4042c0(_0xb0e083,_0xb8c3c9,_0x132e65,_0x1cddb7){return _0x4c72(_0x1cddb7- -_0x12dbac._0x1f0bb8,_0x132e65);}super(_0x3ae5ea),this[_0x4042c0(-_0x9fbce3._0x2ffd35,-0x218,-_0x9fbce3._0x353aac,-_0x9fbce3._0x1956c0)]=_0x8f9016(0x13b,0x177,0x22b,_0x9fbce3._0x384d77);}},ProviderStreamEventError=class extends Error{[_0x5276b1(0x2d,-0x47,0xc3,-0x2c)];['retryable'];[_0x54ac71(0x3d7,0x356,0x333,0x2dd)];constructor(_0x4b4612,_0x4fe7a8={}){const _0x2524ae={_0x463dac:0x5b,_0x1aa7e2:0x33,_0x249de8:0x77,_0x18bd4f:0x31,_0x37716a:0x1,_0x1268c3:0x121,_0x66875b:0x1d,_0x442f24:0x61,_0x5bf2c9:0x31,_0x261798:0x11c,_0x27e826:0xdf,_0x17b18e:0x63,_0x740182:0x64,_0x425e12:0xa,_0x4461e3:0x10d,_0x92665c:0x221},_0x10a5e1={_0x5a1d10:0x185,_0x5c6797:0xff},_0x3d73aa={_0x2f9b11:0x13c,_0x13cbc2:0x157};super(_0x4b4612),this[_0x3c7b51(-_0x2524ae._0x463dac,_0x2524ae._0x1aa7e2,-_0x2524ae._0x249de8,_0x2524ae._0x18bd4f)]=_0x336acf(-_0x2524ae._0x37716a,-_0x2524ae._0x1268c3,-0x6d,-0x91),this['code']=_0x4fe7a8[_0x3c7b51(0x3a,-_0x2524ae._0x66875b,-_0x2524ae._0x442f24,0x12b)];function _0x336acf(_0x43dcad,_0x1e19cc,_0x3d88c8,_0x469df8){return _0x5276b1(_0x1e19cc,_0x1e19cc-_0x3d73aa._0x2f9b11,_0x3d88c8-0x73,_0x469df8- -_0x3d73aa._0x13cbc2);}this[_0x3c7b51(_0x2524ae._0x5bf2c9,_0x2524ae._0x261798,-0x90,_0x2524ae._0x27e826)]=_0x4fe7a8[_0x3c7b51(0x31,-0xa3,0xc,_0x2524ae._0x17b18e)]??!![];function _0x3c7b51(_0x289778,_0x533326,_0x2a0802,_0x19d426){return _0x5276b1(_0x2a0802,_0x533326-_0x10a5e1._0x5a1d10,_0x2a0802-_0x10a5e1._0x5c6797,_0x289778-0x66);}this[_0x3c7b51(-_0x2524ae._0x740182,-_0x2524ae._0x425e12,0x7a,-_0x2524ae._0x4461e3)]=_0x4fe7a8[_0x336acf(-0x2e3,-0x157,-0x2f5,-_0x2524ae._0x92665c)];}};function isRetryableProviderStreamEventError(_0x4b98aa){const _0x31a19a={_0x1bf50d:0x522},_0x59b692={_0x1a0aa9:0x4d4};function _0x245086(_0x4cf3c4,_0x2e7d29,_0x21b13e,_0x25e264){return _0x5276b1(_0x25e264,_0x2e7d29-0x1a5,_0x21b13e-0x14b,_0x21b13e-_0x59b692._0x1a0aa9);}return _0x4b98aa instanceof ProviderStreamEventError&&_0x4b98aa[_0x245086(_0x31a19a._0x1bf50d,0x557,0x49f,0x421)];}var ANTHROPIC_MESSAGES_SURFACE=_0x5276b1(0x91,-0x99,0xc,0x27),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x5276b1(-0xf1,0x5,0x4,-0xb8);function parseToolInput(_0x48d093){try{return JSON['parse'](_0x48d093);}catch{return _0x48d093;}}function resolveReasoningVisibility(_0x4bdb5a){const _0x2362dc={_0x4989a9:0x5b3,_0x192b5e:0x561,_0x40ff62:0x623},_0x7d1697={_0x99698f:0x169},_0x15cbfb={_0x118f05:0x10e,_0x224d1d:0x1c0,_0x30e519:0x11d};function _0x3d2ecf(_0x38fbdb,_0x3cfe69,_0xdff39,_0x2ec661){return _0x54ac71(_0x38fbdb-_0x15cbfb._0x118f05,_0x38fbdb,_0x2ec661- -_0x15cbfb._0x224d1d,_0x2ec661-_0x15cbfb._0x30e519);}function _0x3065e2(_0x43f339,_0x18be96,_0x370f05,_0x1ed965){return _0x54ac71(_0x43f339-_0x7d1697._0x99698f,_0x18be96,_0x370f05-0x1ed,_0x1ed965-0xd5);}return _0x4bdb5a['reasoning']?.[_0x3065e2(_0x2362dc._0x4989a9,_0x2362dc._0x192b5e,0x626,0x61d)]??_0x3065e2(0x652,_0x2362dc._0x40ff62,0x5c1,0x5ca);}function isUserVisibleThinking(_0xf2a96a){const _0x244762={_0x3e67d0:0xfe,_0x5d1594:0x12d,_0x33d60b:0x12,_0x1bcc33:0x5f,_0x2d75bb:0xfc,_0x15bb1d:0x14},_0x3046ad={_0x45b360:0x26,_0x223367:0x1b},_0x390001={_0xce93ef:0x163,_0x216224:0x2f6},_0x94c32=resolveAnthropicThinkingConfig(_0xf2a96a[_0x2ed16b(_0x244762._0x3e67d0,_0x244762._0x5d1594,_0x244762._0x33d60b,0xbc)]);function _0x2ed16b(_0x2ab853,_0x24d5ee,_0x20f984,_0x3816bd){return _0x54ac71(_0x2ab853-_0x390001._0xce93ef,_0x24d5ee,_0x2ab853- -_0x390001._0x216224,_0x3816bd-0xc1);}function _0x42d7e6(_0x46239e,_0x34d917,_0x50fce7,_0x52477a){return _0x5276b1(_0x34d917,_0x34d917-_0x3046ad._0x45b360,_0x50fce7-0x3e,_0x46239e-_0x3046ad._0x223367);}return _0x94c32!==void 0x0&&_0x94c32[_0x42d7e6(0xb3,_0x244762._0x1bcc33,0x82,_0x244762._0x2d75bb)]!==_0x42d7e6(_0x244762._0x15bb1d,0xb6,-0x79,0xbb)&&resolveReasoningVisibility(_0xf2a96a)==='user-visible';}function createAnthropicThinkingBody(_0x11299f){const _0x5623d8={_0x4c80e6:0x69,_0x11821c:0x4d,_0x1b6ff4:0x4f,_0x12c785:0x8,_0x18a54c:0xa7,_0x126c82:0x5,_0x2a7d8d:0x10a,_0x960558:0x2a,_0x32c7ae:0x78,_0x275139:0xbb,_0x503d5e:0x12,_0x3992ca:0x15,_0x37f28f:0x7b,_0x288690:0x4f,_0x433147:0x4a,_0x351cbb:0x2d,_0x41acb4:0xd6,_0x5eb6bf:0x7c,_0x806ba9:0x2f,_0x2e578a:0xcb,_0x905929:0x189,_0x46167a:0xd8},_0x59c5fd={_0x18eecb:0x77},_0x5c800e={_0x59536c:0x49};function _0x4df286(_0x531776,_0x35641e,_0x22839d,_0x16b9e2){return _0x5276b1(_0x22839d,_0x35641e-0x13b,_0x22839d-0x179,_0x35641e- -_0x5c800e._0x59536c);}const _0x4f8c1c=resolveAnthropicThinkingConfig(_0x11299f[_0x20b82f(-0x62,_0x5623d8._0x4c80e6,0x126,0x2c)]);function _0x20b82f(_0x665ec7,_0x13ff9c,_0xf717c1,_0x1310ff){return _0x5276b1(_0x1310ff,_0x13ff9c-_0x59c5fd._0x18eecb,_0xf717c1-0x122,_0x13ff9c-0x72);}if(!_0x4f8c1c||_0x4f8c1c[_0x4df286(-_0x5623d8._0x11821c,0x4f,-_0x5623d8._0x1b6ff4,0xf0)]===_0x20b82f(-0x77,0x6b,-_0x5623d8._0x12c785,0x8b))return{};const _0x247d6c=_0x4f8c1c[_0x20b82f(-_0x5623d8._0x18a54c,-0x2,-0x72,0x26)]??(isUserVisibleThinking(_0x11299f)?_0x4df286(-0x37,0x74,0x3,_0x5623d8._0x126c82):_0x4df286(_0x5623d8._0x2a7d8d,_0x5623d8._0x960558,_0x5623d8._0x32c7ae,-_0x5623d8._0x275139)),_0x4b5982=_0x4f8c1c[_0x4df286(0x5d,_0x5623d8._0x503d5e,0x73,-0xb0)]?{'anthropic-beta':_0x20b82f(-_0x5623d8._0x3992ca,0x67,_0x5623d8._0x37f28f,-0x1c)}:void 0x0;if(_0x4f8c1c[_0x4df286(-0x3c,_0x5623d8._0x288690,_0x5623d8._0x433147,0x46)]===_0x20b82f(0x1d,-0x3e,0x4a,_0x5623d8._0x351cbb))return{..._0x4b5982?{'headers':_0x4b5982}:{},'thinking':{'type':'enabled','budget_tokens':_0x4f8c1c[_0x20b82f(_0x5623d8._0x41acb4,0x0,-_0x5623d8._0x5eb6bf,0x54)],'display':_0x247d6c}};return{..._0x4b5982?{'headers':_0x4b5982}:{},'thinking':{'type':_0x4df286(-_0x5623d8._0x806ba9,-0x65,0x21,0x65),..._0x4f8c1c[_0x4df286(0x10d,0x1d,_0x5623d8._0x2e578a,-_0x5623d8._0x32c7ae)]?{'effort':_0x4f8c1c[_0x20b82f(_0x5623d8._0x905929,_0x5623d8._0x46167a,0x78,0x12a)]}:{},'display':_0x247d6c}};}function toAnthropicRequestContent(_0x2057b5){const _0x23ec65={_0x29a04b:0x70e,_0x256ce7:0x75e,_0x3b934a:0x70d,_0x21dd2f:0x78c,_0x5bcf4e:0x5b3,_0x438f57:0x53d,_0x517ba7:0x4c1,_0x3f650c:0x13f,_0xdeed9:0xbc,_0xba9125:0x4,_0xa5a952:0x6d3,_0x2bf029:0x7af,_0xe2042:0x71b,_0x45ecfc:0x6bc,_0x29bac2:0x6cc,_0x3ac923:0x651,_0x1a36c4:0x63a,_0x62d4de:0x5e3,_0x38472b:0x91,_0x1b9842:0x94,_0x1292f1:0xa5,_0x39dfb9:0x3a,_0x2008ad:0x10e,_0x542919:0x56,_0x104144:0x12,_0x13ad88:0x19,_0x1847d5:0x1},_0x47cb0c={_0x59a9f2:0xce,_0x341b3e:0x227},_0x428cb6={_0x33e251:0x193,_0x41943d:0x1ba,_0x1ad627:0x37};function _0x3d5918(_0x41609c,_0x3ee41f,_0x37a438,_0x178b44){return _0x5276b1(_0x37a438,_0x3ee41f-_0x428cb6._0x33e251,_0x37a438-_0x428cb6._0x41943d,_0x41609c- -_0x428cb6._0x1ad627);}if(_0x2057b5[_0x334b3d(0x6eb,0x744,_0x23ec65._0x29a04b,_0x23ec65._0x256ce7)]===_0x334b3d(0x694,0x5a0,0x68f,_0x23ec65._0x3b934a)&&_0x2057b5['providerState']?.[_0x334b3d(0x6db,0x62d,_0x23ec65._0x21dd2f,0x789)])return structuredClone(_0x2057b5[_0x334b3d(_0x23ec65._0x5bcf4e,_0x23ec65._0x438f57,0x64e,_0x23ec65._0x517ba7)][_0x3d5918(0x80,_0x23ec65._0x3f650c,_0x23ec65._0xdeed9,-_0x23ec65._0xba9125)]);const _0x11c24e=[];for(const _0x5347ae of normalizeContent(_0x2057b5[_0x334b3d(_0x23ec65._0xa5a952,_0x23ec65._0x2bf029,_0x23ec65._0xe2042,0x75a)])){if(_0x5347ae[_0x334b3d(_0x23ec65._0x45ecfc,_0x23ec65._0x29bac2,0x62f,0x759)]===_0x334b3d(0x5db,0x662,_0x23ec65._0x3ac923,_0x23ec65._0x1a36c4))continue;if(_0x5347ae['type']===_0x334b3d(0x535,_0x23ec65._0x62d4de,0x442,0x51f)){_0x11c24e[_0x3d5918(0x12,_0x23ec65._0x38472b,_0x23ec65._0x1b9842,0x2a)]({'type':'thinking','thinking':_0x5347ae[_0x334b3d(0x5ba,0x4f8,0x564,0x56c)],'signature':_0x5347ae[_0x3d5918(_0x23ec65._0x1292f1,-_0x23ec65._0x39dfb9,0x14c,-0x2b)]});continue;}if(_0x5347ae['type']===_0x3d5918(0x88,0x13f,_0x23ec65._0x2008ad,-_0x23ec65._0x542919)){_0x11c24e[_0x3d5918(_0x23ec65._0x104144,_0x23ec65._0x38472b,-0x10,-0x6a)]({'type':'redacted_thinking','data':_0x5347ae['data']});continue;}_0x11c24e[_0x3d5918(_0x23ec65._0x104144,_0x23ec65._0x13ad88,-_0x23ec65._0x1847d5,-0x3f)](structuredClone(_0x5347ae));}function _0x334b3d(_0x230af3,_0x540faf,_0x28640e,_0x10477b){return _0x54ac71(_0x230af3-_0x47cb0c._0x59a9f2,_0x28640e,_0x230af3-_0x47cb0c._0x341b3e,_0x10477b-0x1f0);}return _0x11c24e;}function createAnthropicRequest(_0x1df3da,_0xf67c44){const _0x1d25b8={_0x5a531d:0x60f,_0x51d978:0x657,_0xc56b50:0x55c,_0x2dac54:0xd2,_0x186831:0x94,_0x93a38d:0x4a,_0x5b4bf6:0x61,_0x43eefa:0x145,_0x13c53e:0xa,_0x111958:0x630,_0x65cadb:0x3c,_0x3f2a81:0x2e,_0x724f76:0x13,_0x207e45:0x2a,_0x2a2c89:0x8a,_0x570aac:0x84},_0x23a73b={_0x40e313:0x305,_0x40373d:0x2ed},_0x3e52e4={_0x173a7c:0x239},_0x3b846b={_0x29514b:0x81,_0x21a6af:0x3f4,_0x33d456:0x10},_0x2684cd=toProviderModelRequest(_0x1df3da);function _0x3ba9f0(_0x3a80b5,_0x13fef7,_0xca2344,_0x3acc97){return _0x54ac71(_0x3a80b5-_0x3b846b._0x29514b,_0x3acc97,_0x13fef7- -_0x3b846b._0x21a6af,_0x3acc97-_0x3b846b._0x33d456);}function _0x36a858(_0xce9307,_0x2c6ed4,_0x24c7c3,_0x3b1ce9){return _0x54ac71(_0xce9307-0x8e,_0xce9307,_0x24c7c3-_0x3e52e4._0x173a7c,_0x3b1ce9-0x58);}const _0x5adc74=createAnthropicThinkingBody(_0x1df3da);return{'accept':_0xf67c44?'text/event-stream':'application/json','body':{..._0x2684cd,'messages':_0x1df3da['messages']['map'](_0x3cb4d6=>{function _0x45341a(_0x33f35c,_0x2e9d84,_0x524575,_0x2c63f6){return _0x4c72(_0x2c63f6- -0xfb,_0x2e9d84);}return{'role':_0x3cb4d6[_0x45341a(_0x23a73b._0x40e313,0x263,_0x23a73b._0x40373d,0x256)],'content':toAnthropicRequestContent(_0x3cb4d6)};}),..._0x5adc74[_0x36a858(0x4e8,_0x1d25b8._0x5a531d,0x5cc,_0x1d25b8._0x51d978)]?{'thinking':_0x5adc74['thinking']}:{},..._0xf67c44?{'stream':!![]}:{},..._0x1df3da[_0x36a858(0x47f,0x615,_0x1d25b8._0xc56b50,0x62e)]?{'output_config':{'format':{'type':_0x3ba9f0(-_0x1d25b8._0x2dac54,-_0x1d25b8._0x186831,-0x6e,-0x187),'schema':_0x1df3da['outputFormat'][_0x3ba9f0(_0x1d25b8._0x93a38d,_0x1d25b8._0x5b4bf6,_0x1d25b8._0x43eefa,-_0x1d25b8._0x13c53e)]}}}:{}},..._0x5adc74[_0x36a858(0x4de,0x4fa,0x596,_0x1d25b8._0x111958)]?{'headers':_0x5adc74[_0x3ba9f0(0x59,-0x97,_0x1d25b8._0x65cadb,_0x1d25b8._0x3f2a81)]}:{},'path':_0x3ba9f0(-_0x1d25b8._0x724f76,_0x1d25b8._0x207e45,-_0x1d25b8._0x2a2c89,_0x1d25b8._0x570aac)};}function parseAnthropicResponse(_0x9ff752,_0xd5000a){const _0x2ee9d0={_0x22f9c3:0x554,_0x17b6dc:0x515,_0x5b254c:0x59b,_0x49ea93:0x53d,_0x547728:0x4c8,_0x362d2d:0x38b,_0x1cf628:0x521,_0x17490e:0x62f,_0xce078f:0x4bd,_0x438f71:0x6e,_0xad5e21:0x1c,_0x14301d:0xbe,_0xb57c93:0x530,_0x19351d:0x482,_0x47ecc3:0x85,_0x8d4a45:0x36,_0x19d5fc:0x87,_0x2ab458:0x20,_0x992a80:0x4ee,_0x4cfec8:0x403,_0x4213b2:0x42d,_0x379d5b:0xdd,_0x2849fe:0x10,_0x3ee583:0x14,_0x246ee9:0x1ea,_0x1c1582:0x38d,_0x5607fc:0x46a,_0x5ee5a8:0x404,_0x760a22:0x6,_0x239c0d:0x11c,_0x3b9831:0x8,_0x273433:0x4f2,_0x345f70:0x5a5,_0x4d63a0:0xff,_0x59e6d0:0x12,_0x5b6423:0x12f,_0x1905cf:0x104,_0x493c62:0x15d,_0x461b40:0x5af,_0x2d1290:0x5dc,_0x2cbf88:0x54d,_0x2437df:0x577,_0x4c2486:0x510,_0xc0a530:0x548,_0x54e914:0x569,_0x5f4ac8:0x1d5,_0x2b74e2:0x211,_0x4b65e0:0x4f2,_0x45f940:0x5af,_0x5cd084:0x89,_0xe9a17e:0x59e,_0x3fc589:0x107,_0x521929:0x66,_0x1f8680:0x6b},_0x52cc4a={_0x3b87e0:0x132,_0x506447:0x4a5},_0x5ebc64={_0x5291a0:0x14c,_0x428458:0xc1},_0x30ff42=[],_0x5e5450=_0x9ff752[_0x251dcf(_0x2ee9d0._0x22f9c3,0x575,_0x2ee9d0._0x17b6dc,_0x2ee9d0._0x5b254c)]??[];function _0xe4fe3f(_0x30d0f9,_0x1192bb,_0x3a1957,_0x4c5e24){return _0x5276b1(_0x1192bb,_0x1192bb-0x17,_0x3a1957-_0x5ebc64._0x5291a0,_0x4c5e24- -_0x5ebc64._0x428458);}let _0x3fa4b8=![];for(const _0x579a2e of _0x5e5450){if(_0x579a2e['type']===_0xe4fe3f(-0x159,-0x21d,-0x1f8,-0x12b)){_0x3fa4b8=!![];isUserVisibleThinking(_0xd5000a)&&_0x30ff42['push']({'type':_0xe4fe3f(-0x16a,-0x19e,-0x143,-0x1b0),'thinking':_0x579a2e['thinking'],'signature':_0x579a2e['signature']});continue;}if(_0x579a2e[_0x251dcf(_0x2ee9d0._0x49ea93,0x574,0x511,_0x2ee9d0._0x547728)]===_0x251dcf(0x415,_0x2ee9d0._0x362d2d,0x421,0x396)){_0x3fa4b8=!![];isUserVisibleThinking(_0xd5000a)&&_0x30ff42['push']({'type':_0x251dcf(0x564,_0x2ee9d0._0x1cf628,_0x2ee9d0._0x17490e,_0x2ee9d0._0xce078f),'data':_0x579a2e['data']});continue;}if(_0x579a2e[_0xe4fe3f(-_0x2ee9d0._0x438f71,_0x2ee9d0._0xad5e21,-_0x2ee9d0._0x14301d,-0x29)]===_0x251dcf(_0x2ee9d0._0xb57c93,0x43f,0x4f8,_0x2ee9d0._0x19351d)){_0x579a2e[_0xe4fe3f(-0x9b,-0x86,-_0x2ee9d0._0x47ecc3,-_0x2ee9d0._0x8d4a45)][_0xe4fe3f(0xaf,-0xa4,_0x2ee9d0._0x19d5fc,_0x2ee9d0._0x2ab458)]>0x0&&_0x30ff42[_0x251dcf(_0x2ee9d0._0x992a80,0x582,_0x2ee9d0._0x4cfec8,_0x2ee9d0._0x4213b2)](structuredClone(_0x579a2e));continue;}_0x30ff42['push'](structuredClone(_0x579a2e));}function _0x251dcf(_0x40b5b9,_0x431d75,_0x2f46d8,_0x54474c){return _0x5276b1(_0x54474c,_0x431d75-_0x52cc4a._0x3b87e0,_0x2f46d8-0xe3,_0x40b5b9-_0x52cc4a._0x506447);}return{'id':_0x9ff752['id']??_0xe4fe3f(0x3c,_0x2ee9d0._0x379d5b,-_0x2ee9d0._0x2849fe,-_0x2ee9d0._0x3ee583)+Date['now'](),'content':_0x30ff42,'stopReason':_0x30ff42['some'](_0x5bd682=>_0x5bd682['type']===_0x251dcf(0x437,0x3b9,0x521,0x346))?'tool_use':_0x9ff752['stop_reason']===_0xe4fe3f(-_0x2ee9d0._0x246ee9,-0x93,-0x146,-0x12f)?_0x251dcf(0x437,_0x2ee9d0._0x1c1582,_0x2ee9d0._0x5607fc,_0x2ee9d0._0x5ee5a8):_0xe4fe3f(-_0x2ee9d0._0x760a22,-_0x2ee9d0._0x239c0d,_0x2ee9d0._0x3b9831,-0x68),'usage':{'inputTokens':(_0x9ff752[_0x251dcf(_0x2ee9d0._0x273433,0x499,0x41d,_0x2ee9d0._0x345f70)]?.['input_tokens']??0x0)+(_0x9ff752[_0xe4fe3f(0x36,-_0x2ee9d0._0x4d63a0,_0x2ee9d0._0x59e6d0,-0x74)]?.[_0xe4fe3f(-_0x2ee9d0._0x5b6423,-0xa0,-_0x2ee9d0._0x1905cf,-_0x2ee9d0._0x493c62)]??0x0)+(_0x9ff752[_0x251dcf(0x4f2,0x56c,0x4ea,0x4b0)]?.[_0x251dcf(0x4fb,0x484,0x482,_0x2ee9d0._0x461b40)]??0x0),'outputTokens':_0x9ff752[_0x251dcf(0x4f2,0x56b,_0x2ee9d0._0x2d1290,_0x2ee9d0._0x2cbf88)]?.[_0x251dcf(_0x2ee9d0._0x2437df,0x5ad,0x5ae,_0x2ee9d0._0x4c2486)]??0x0,..._0x9ff752[_0x251dcf(0x4f2,_0x2ee9d0._0xc0a530,0x438,_0x2ee9d0._0x54e914)]?.['cache_read_input_tokens']?{'cacheReadInputTokens':_0x9ff752['usage'][_0xe4fe3f(-_0x2ee9d0._0x5f4ac8,-0x1e0,-_0x2ee9d0._0x2b74e2,-0x15d)]}:{},..._0x9ff752[_0x251dcf(_0x2ee9d0._0x4b65e0,_0x2ee9d0._0x45f940,0x557,_0x2ee9d0._0x1cf628)]?.[_0xe4fe3f(0x82,-0x80,_0x2ee9d0._0x5cd084,-0x6b)]?{'cacheCreationInputTokens':_0x9ff752[_0x251dcf(0x4f2,0x5aa,_0x2ee9d0._0xe9a17e,0x4c2)][_0xe4fe3f(-_0x2ee9d0._0x3fc589,-0x105,-_0x2ee9d0._0x521929,-_0x2ee9d0._0x1f8680)]}:{}},..._0x3fa4b8?{'providerState':{'anthropicAssistantContent':structuredClone(_0x5e5450)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x5276b1(0x1b,0xd0,0x88,0x79)]=new Map();[_0x54ac71(0x525,0x512,0x49d,0x591)]=0x0;['cacheReadInputTokens']=0x0;[_0x5276b1(-0x2c,-0x3b,-0x74,-0x4e)]=0x0;[_0x5276b1(0x8c,-0x44,0x37,-0xa)]=_0x5276b1(0xf2,-0x45,0x18b,0xad)+Date[_0x5276b1(0x6b,0x168,0x192,0xe4)]();[_0x54ac71(0x2df,0x2d6,0x36c,0x32e)]=0x0;[_0x54ac71(0x2ab,0x395,0x379,0x362)];[_0x54ac71(0x2ad,0x2f9,0x2ff,0x376)]=_0x5276b1(-0x41,0xd5,0xff,0x59);constructor(_0x4e4f79){this['request']=_0x4e4f79;}[_0x54ac71(0x475,0x3e9,0x4d0,0x534)](_0x537c4c){const _0xc046cd={_0x285d95:0x589,_0x4051d0:0x62f,_0x1f5635:0x268,_0x289a03:0x1ce,_0x2a4be3:0x20f,_0x297738:0x27e,_0x1eb645:0x348,_0x5b4a08:0x3a1,_0x414269:0x30c,_0x449947:0x246,_0x3a9e0c:0x2e5,_0x17f336:0x274,_0x3508e4:0x4b6,_0x2e5a5d:0x50c,_0x1998f1:0x776,_0x19cbf7:0x656,_0x511099:0x290,_0x3f32e7:0x544,_0x4e356b:0x5ea,_0x37c1d2:0x2c5,_0x278f93:0x35b,_0x4d33cd:0x599,_0x5c429d:0x693,_0x26be8e:0x5a6,_0x2e03e8:0x39e,_0x52f79e:0x21f,_0x3a72cf:0x1dc,_0x3ee456:0x27d,_0x440750:0x279,_0x2d9c8c:0x21e,_0x3ec708:0x676,_0x63e881:0x769,_0x46ecba:0x71b,_0x2bd42f:0x67e,_0x31f3b1:0x5a2,_0x5ac54f:0x694,_0x2c29ff:0x5e5,_0x449ea7:0x6f2,_0x4d4185:0x50c,_0xdb4113:0x4c8,_0x3f27a6:0x494,_0x18aad3:0x541,_0x5e10e8:0x338,_0x28f4b1:0x273,_0xc4d38b:0x18d,_0x5a3f76:0x63d,_0x3d7672:0x6a3,_0x344525:0x775,_0x17623f:0x60a,_0x3103b1:0x74f,_0x456e10:0x6d1,_0x4448de:0x69b,_0xdbaf4d:0x6a2,_0x54977c:0x502,_0x3cdc37:0x594,_0x3b6e61:0x5a7,_0x49480c:0x5e6,_0x2e5dce:0x68c,_0x2a9aae:0x5a5,_0xce7c53:0x685,_0x1771b1:0x5e3,_0x44062b:0x6d0,_0x56cf7a:0x591,_0xaf4170:0x53b,_0x5109a5:0x5be,_0x356b16:0x790,_0x38f5d4:0x6d0,_0x118148:0x37f,_0x35a2b3:0x3cb,_0x58a9fc:0x5be,_0x401d21:0x6ae,_0x28ec4e:0x6e4,_0x83e8f4:0x67f,_0xdb2310:0x18f,_0x476c62:0x266,_0x439858:0x20e,_0x1d9105:0x252,_0x7e7bb8:0x295,_0x443df5:0x242,_0x5dff38:0x212,_0x8fb8d8:0x24c,_0xeb1420:0x470,_0x3c5022:0x653,_0x3bc66b:0x6fe,_0x1849f5:0x181,_0x57e102:0x16a,_0x4e195d:0x1e8,_0xdf4eb0:0x2da,_0x4c74f9:0x5b1,_0x8a918b:0x63e,_0x5840ad:0x553,_0x2f15f5:0x440,_0x37e049:0x56f,_0xcad2b2:0x28f,_0x352e7d:0x241,_0x3eda8e:0x238,_0x793a89:0xf2,_0x53425b:0xe0,_0x5b39a4:0xfb,_0x33ffaf:0x3a5,_0x41c6e4:0x2f1,_0x31179f:0x3be,_0x5576b3:0x25c,_0x7750f6:0x197,_0x147179:0x28c,_0x15791c:0x32c,_0x486259:0x310,_0x1a582a:0x337,_0x252fa3:0x242,_0x1030dc:0x1c6,_0x13c31e:0x185,_0xd775e1:0x2ac,_0x3abd24:0x671,_0x2a96d0:0x71e,_0x67a21b:0x1bb,_0x32e4bf:0x2ce,_0x5417c8:0x68d,_0x3d555f:0x60e,_0x1d9b5b:0x5b6,_0x185a24:0x5cd,_0x446541:0x5c3,_0x262e3d:0x586,_0x3ec0c9:0x327,_0x4f3e95:0x242,_0x518777:0x27c,_0x5e6a31:0x306,_0x45bb82:0x2dd,_0x10fb09:0x3fb,_0x50e24b:0x306,_0x5b14f2:0x5b9,_0x172bc1:0x5da,_0xd5b105:0x1a8,_0x8aaa2c:0x1be,_0x39b657:0x26a,_0x202f60:0x32e,_0x4280a8:0x6fd,_0x4e62e0:0x709,_0x546d49:0x71a,_0x415f78:0x62f,_0x167988:0x25f,_0x2df70b:0x20e,_0x2061e7:0x525,_0x2b3d2c:0x5f8,_0x3e8937:0x2d8,_0x4e3baf:0x3c1,_0x799b37:0x28a,_0x10909f:0x136,_0x438df0:0x1f4,_0x3d992b:0x102,_0x4bf3b5:0x28a,_0xb9392:0x344,_0x576058:0x351,_0x544467:0x282,_0x1560b5:0x242,_0xdce0c9:0x30c,_0x5b9b91:0x20e,_0x5a89ec:0x3db,_0x28f8db:0x354,_0x595606:0x649,_0x3571e6:0x6ba,_0x1f3451:0x268,_0x15f6c7:0x2f3,_0x3e99b3:0x55c,_0x3a7686:0x577,_0x363176:0x4f5,_0x2029c1:0x701,_0x4b4fc9:0x6a6,_0x4dca92:0x723,_0x3f0f4b:0x638,_0x3ca707:0x2a7,_0xf883f8:0x28a,_0x260b1a:0x69a,_0x8e612f:0x5ec,_0x1f3065:0x6fa,_0x358ef3:0x4c0,_0x389f25:0x5d3,_0x216ca7:0x5db,_0x9f9f01:0x62b,_0x3af344:0x59a,_0x141329:0x632,_0x22c016:0x781,_0xb559c5:0x690,_0x1cd33a:0x1f5,_0x1dcdc3:0x2d0,_0x30a7a2:0x34a,_0x470663:0x40c,_0xd47a94:0x4eb,_0x3e41f2:0x4d1,_0x297d5c:0x598,_0x17da47:0x138,_0x2c62f9:0x209,_0x394763:0x20a,_0x599368:0x635,_0x468ebf:0x67a,_0x51fceb:0x657,_0x272846:0x64d,_0x28f0d4:0x73e,_0x4320ea:0x237,_0x4d64d8:0x5ae,_0x2d39a1:0x69d},_0x13aa41={_0x348022:0x1f7,_0x297962:0x0},_0x2d6e60={_0x3406e2:0x99,_0x4d444e:0x150,_0x50c6fd:0x278},_0x453dab=_0x537c4c[_0x463044(_0xc046cd._0x285d95,0x5de,_0xc046cd._0x4051d0,0x5ba)]('\x0a'),_0x8cb941=_0x453dab['find'](_0x53ff5a=>_0x53ff5a['startsWith'](_0x463044(0x646,0x6af,0x551,0x5f7)))?.[_0x1a8191(_0xc046cd._0x1f5635,0x291,_0xc046cd._0x289a03,0x204)](0x6)[_0x1a8191(0x122,_0xc046cd._0x2a4be3,0x190,0xf9)]();function _0x1a8191(_0x224887,_0x55136d,_0x26b90a,_0x11e418){return _0x5276b1(_0x11e418,_0x55136d-_0x2d6e60._0x3406e2,_0x26b90a-_0x2d6e60._0x4d444e,_0x26b90a-_0x2d6e60._0x50c6fd);}const _0x150f05=_0x453dab[_0x1a8191(_0xc046cd._0x297738,0x384,_0xc046cd._0x1eb645,_0xc046cd._0x5b4a08)](_0x6b08b1=>_0x6b08b1[_0x463044(0x5cd,0x5de,0x6eb,0x631)](_0x1a8191(0x2a3,0x18b,0x24b,0x1f6)))[_0x1a8191(_0xc046cd._0x414269,_0xc046cd._0x449947,0x265,_0xc046cd._0x3a9e0c)](_0x3c2483=>_0x3c2483[_0x463044(0x602,0x461,0x4eb,0x54a)](0x5)[_0x1a8191(0x268,0xd3,0x18a,0x215)]())[_0x1a8191(0x1f4,0x334,0x2b2,_0xc046cd._0x17f336)]('\x0a')[_0x463044(0x4d0,0x533,_0xc046cd._0x3508e4,_0xc046cd._0x2e5a5d)]();if(_0x150f05[_0x463044(_0xc046cd._0x1998f1,_0xc046cd._0x19cbf7,0x612,0x6d5)]===0x0||_0x150f05==='[DONE]')return[];const _0x42e31c=JSON['parse'](_0x150f05);switch(_0x8cb941){case'message_start':{const _0x462a66=_0x42e31c[_0x1a8191(0x2a6,_0xc046cd._0x511099,0x237,0x255)];this[_0x463044(0x552,0x5d6,_0xc046cd._0x3f32e7,_0xc046cd._0x4e356b)]=_0x462a66?.['id']??this['messageId'],this['inputTokens']=_0x462a66?.[_0x1a8191(0x21d,0x289,_0xc046cd._0x37c1d2,_0xc046cd._0x278f93)]?.['input_tokens']??this[_0x463044(_0xc046cd._0x4d33cd,_0xc046cd._0x5c429d,0x4f9,_0xc046cd._0x26be8e)],this['cacheReadInputTokens']=_0x462a66?.[_0x1a8191(0x2e6,0x3a3,0x2c5,_0xc046cd._0x2e03e8)]?.[_0x1a8191(0x123,_0xc046cd._0x52f79e,_0xc046cd._0x3a72cf,_0xc046cd._0x3ee456)]??this[_0x1a8191(_0xc046cd._0x440750,0x1aa,_0xc046cd._0x2d9c8c,0x1d1)],this[_0x463044(_0xc046cd._0x3ec708,_0xc046cd._0x63e881,0x5a9,0x694)]=_0x462a66?.[_0x463044(_0xc046cd._0x46ecba,0x601,_0xc046cd._0x2bd42f,0x641)]?.['cache_creation_input_tokens']??this[_0x463044(0x5ac,0x5c2,_0xc046cd._0x31f3b1,_0xc046cd._0x5ac54f)];break;}case _0x463044(_0xc046cd._0x2c29ff,_0xc046cd._0x449ea7,0x5b1,0x684):{const _0x491c4f=typeof _0x42e31c['index']===_0x463044(_0xc046cd._0x4d4185,_0xc046cd._0xdb4113,_0xc046cd._0x3f27a6,_0xc046cd._0x18aad3)?_0x42e31c[_0x1a8191(_0xc046cd._0x5e10e8,0x1b4,_0xc046cd._0x28f4b1,0x26b)]:0x0,_0xb15226=_0x42e31c[_0x1a8191(0x17a,_0xc046cd._0xc4d38b,0x1a2,0x238)];if(_0xb15226?.['type']==='tool_use'&&_0xb15226['id']&&_0xb15226[_0x463044(0x468,0x454,0x5e8,0x533)])return this[_0x463044(0x75b,_0xc046cd._0x5a3f76,_0xc046cd._0x3d7672,0x66d)][_0x463044(_0xc046cd._0x344525,_0xc046cd._0x17623f,_0xc046cd._0x3103b1,_0xc046cd._0x456e10)](_0x491c4f,{'id':_0xb15226['id'],'index':_0x491c4f,'inputJson':JSON[_0x463044(0x760,0x60d,_0xc046cd._0x4448de,_0xc046cd._0xdbaf4d)](_0xb15226[_0x463044(_0xc046cd._0x4e356b,_0xc046cd._0x54977c,0x5f5,_0xc046cd._0x3cdc37)]??{}),'kind':'tool_use','name':_0xb15226['name']}),[{'type':_0x463044(_0xc046cd._0x3b6e61,0x567,0x5e6,_0xc046cd._0x49480c),'id':_0xb15226['id'],'index':_0x491c4f,'name':_0xb15226['name']}];if(_0xb15226?.[_0x463044(0x6f1,0x6e6,0x724,_0xc046cd._0x2e5dce)]==='thinking'){this[_0x463044(0x59c,_0xc046cd._0x2a9aae,_0xc046cd._0xce7c53,0x66d)]['set'](_0x491c4f,{'index':_0x491c4f,'kind':'thinking','signature':typeof _0xb15226[_0x463044(_0xc046cd._0x1771b1,0x5e6,0x71b,_0xc046cd._0x44062b)]===_0x463044(0x5ab,_0xc046cd._0x56cf7a,_0xc046cd._0xaf4170,_0xc046cd._0x5109a5)?_0xb15226[_0x463044(_0xc046cd._0x356b16,0x6b0,0x6ef,_0xc046cd._0x38f5d4)]:'','thinking':typeof _0xb15226[_0x1a8191(0x26d,_0xc046cd._0x118148,0x303,_0xc046cd._0x35a2b3)]===_0x463044(0x677,0x581,0x64d,_0xc046cd._0x58a9fc)?_0xb15226[_0x463044(_0xc046cd._0x401d21,_0xc046cd._0x28ec4e,0x599,_0xc046cd._0x83e8f4)]:typeof _0xb15226[_0x1a8191(_0xc046cd._0xdb2310,_0xc046cd._0x476c62,_0xc046cd._0x439858,_0xc046cd._0x1d9105)]===_0x1a8191(_0xc046cd._0x7e7bb8,0x2e4,_0xc046cd._0x443df5,0x221)?String(_0xb15226[_0x1a8191(0x288,_0xc046cd._0x5dff38,0x20e,_0xc046cd._0x8fb8d8)]):''});break;}if(_0xb15226?.[_0x1a8191(0x329,0x31c,0x310,0x2cf)]===_0x463044(0x5a6,_0xc046cd._0xeb1420,_0xc046cd._0xaf4170,0x564)){this['blocks'][_0x463044(_0xc046cd._0x3c5022,_0xc046cd._0x3bc66b,0x60d,_0xc046cd._0x456e10)](_0x491c4f,{'index':_0x491c4f,'kind':_0x1a8191(_0xc046cd._0x1849f5,_0xc046cd._0x57e102,_0xc046cd._0x4e195d,_0xc046cd._0xdf4eb0),'data':typeof _0xb15226[_0x463044(_0xc046cd._0x4c74f9,0x4bc,0x457,0x519)]===_0x463044(_0xc046cd._0x8a918b,_0xc046cd._0x5840ad,0x5b8,_0xc046cd._0x58a9fc)?String(_0xb15226[_0x463044(_0xc046cd._0x2f15f5,0x4ee,_0xc046cd._0x37e049,0x519)]):''});break;}this['blocks'][_0x463044(0x636,0x747,0x617,0x6d1)](_0x491c4f,{'index':_0x491c4f,'kind':'text','text':_0xb15226?.[_0x1a8191(0x226,0x2c6,0x303,_0xc046cd._0xcad2b2)]??''});break;}case _0x1a8191(_0xc046cd._0x352e7d,0x1db,_0xc046cd._0x3eda8e,0x20a):{const _0x3b8ba7=typeof _0x42e31c['index']===_0x1a8191(_0xc046cd._0x793a89,_0xc046cd._0x53425b,0x1c5,_0xc046cd._0x5b39a4)?_0x42e31c['index']:0x0,_0x349b24=this[_0x1a8191(_0xc046cd._0x33ffaf,0x2d4,_0xc046cd._0x41c6e4,_0xc046cd._0x31179f)][_0x1a8191(_0xc046cd._0x5576b3,_0xc046cd._0x7750f6,0x209,0x1d4)](_0x3b8ba7),_0x4013d7=_0x42e31c['delta'];if(!_0x349b24||!_0x4013d7?.[_0x1a8191(_0xc046cd._0x278f93,0x297,0x310,0x37e)])break;if(_0x4013d7[_0x1a8191(_0xc046cd._0x147179,_0xc046cd._0x15791c,_0xc046cd._0x486259,_0xc046cd._0x1a582a)]===_0x1a8191(_0xc046cd._0x252fa3,_0xc046cd._0x1030dc,0x1a9,_0xc046cd._0x13c31e)&&_0x349b24[_0x1a8191(0x3d0,_0xc046cd._0xd775e1,0x30c,0x345)]===_0x463044(0x754,_0xc046cd._0x3abd24,_0xc046cd._0x2a96d0,0x67f)&&typeof _0x4013d7['text']===_0x1a8191(_0xc046cd._0x67a21b,0x2d1,0x242,_0xc046cd._0x32e4bf))return _0x349b24[_0x463044(_0xc046cd._0x5417c8,_0xc046cd._0x3d555f,0x65e,0x67f)]+=_0x4013d7[_0x1a8191(0x242,0x3f7,0x303,0x312)],[{'type':'content_delta','index':_0x3b8ba7,'text':_0x4013d7['text']}];if(_0x4013d7['type']===_0x463044(_0xc046cd._0x1d9b5b,_0xc046cd._0x185a24,0x51f,_0xc046cd._0x446541)&&_0x349b24['kind']===_0x463044(0x625,0x5e3,0x5d2,_0xc046cd._0x262e3d)&&typeof _0x4013d7['partial_json']===_0x1a8191(_0xc046cd._0x3ec0c9,0x164,_0xc046cd._0x4f3e95,_0xc046cd._0x518777))return _0x349b24[_0x1a8191(0x30f,0x3ec,_0xc046cd._0x5e6a31,_0xc046cd._0x45bb82)]==='{}'&&(_0x349b24['inputJson']=''),_0x349b24[_0x1a8191(_0xc046cd._0x3a9e0c,_0xc046cd._0x10fb09,_0xc046cd._0x50e24b,0x345)]+=_0x4013d7[_0x463044(0x610,_0xc046cd._0x5b14f2,0x6bd,_0xc046cd._0x172bc1)],[{'type':_0x1a8191(_0xc046cd._0xd5b105,_0xc046cd._0x8aaa2c,_0xc046cd._0x39b657,_0xc046cd._0x202f60),'id':_0x349b24['id'],'index':_0x3b8ba7,'inputDelta':_0x4013d7['partial_json']}];if(_0x4013d7[_0x463044(_0xc046cd._0x4280a8,_0xc046cd._0x4e62e0,0x6ea,0x68c)]==='thinking_delta'&&_0x349b24[_0x463044(_0xc046cd._0x546d49,_0xc046cd._0x415f78,0x597,0x688)]===_0x1a8191(0x302,_0xc046cd._0x167988,_0xc046cd._0x2df70b,0x2d7)){const _0x5d97f6=typeof _0x4013d7['thinking']===_0x463044(_0xc046cd._0x2061e7,_0xc046cd._0x2b3d2c,0x603,_0xc046cd._0x5109a5)?String(_0x4013d7['thinking']):'';if(_0x5d97f6[_0x1a8191(_0xc046cd._0x3e8937,_0xc046cd._0x4e3baf,0x359,_0xc046cd._0x799b37)]>0x0){_0x349b24['thinking']+=_0x5d97f6;if(isUserVisibleThinking(this[_0x1a8191(0x1aa,_0xc046cd._0x10909f,_0xc046cd._0x438df0,0x254)]))return[{'type':_0x1a8191(0x20f,_0xc046cd._0x3d992b,0x1ea,0x168),'index':_0x3b8ba7,'thinking':_0x5d97f6}];}}if(_0x4013d7['type']===_0x1a8191(_0xc046cd._0x4bf3b5,_0xc046cd._0xb9392,0x32a,_0xc046cd._0x576058)&&_0x349b24[_0x1a8191(_0xc046cd._0x544467,_0xc046cd._0x1560b5,_0xc046cd._0xdce0c9,0x2cd)]===_0x1a8191(0x2d1,0x2ea,_0xc046cd._0x5b9b91,0x123)){const _0x36c902=typeof _0x4013d7[_0x1a8191(0x410,_0xc046cd._0x5a89ec,_0xc046cd._0x28f8db,0x328)]===_0x463044(0x5f3,_0xc046cd._0x595606,0x523,_0xc046cd._0x58a9fc)?String(_0x4013d7[_0x463044(0x6df,0x765,0x5fe,0x6d0)]):'';if(_0x36c902[_0x463044(0x600,_0xc046cd._0x3571e6,_0xc046cd._0x3ec708,0x6d5)]>0x0){_0x349b24[_0x1a8191(0x333,_0xc046cd._0x1f3451,_0xc046cd._0x28f8db,_0xc046cd._0x15f6c7)]=_0x36c902;if(isUserVisibleThinking(this['request']))return[{'type':_0x463044(_0xc046cd._0x3e99b3,_0xc046cd._0x3a7686,0x5e9,_0xc046cd._0x363176),'index':_0x3b8ba7,'signature':_0x36c902}];}}break;}case'message_delta':{const _0x320068=_0x42e31c[_0x463044(_0xc046cd._0x2029c1,_0xc046cd._0x4b4fc9,_0xc046cd._0x4dca92,_0xc046cd._0x3f0f4b)],_0x99cc07=_0x42e31c[_0x1a8191(_0xc046cd._0x3ca707,_0xc046cd._0xf883f8,_0xc046cd._0x37c1d2,0x2cc)];this[_0x463044(0x640,_0xc046cd._0x260b1a,_0xc046cd._0x8e612f,_0xc046cd._0x26be8e)]=_0x99cc07?.[_0x463044(_0xc046cd._0x1f3065,0x71d,0x617,0x6c1)]??this[_0x463044(_0xc046cd._0x358ef3,_0xc046cd._0x389f25,0x534,0x5a6)],this[_0x463044(_0xc046cd._0x216ca7,0x527,_0xc046cd._0x9f9f01,_0xc046cd._0x3af344)]=_0x99cc07?.['cache_read_input_tokens']??this['cacheReadInputTokens'],this['cacheCreationInputTokens']=_0x99cc07?.['cache_creation_input_tokens']??this[_0x463044(_0xc046cd._0x141329,_0xc046cd._0x22c016,_0xc046cd._0xb559c5,0x694)],this[_0x1a8191(0xfc,_0xc046cd._0x1cd33a,0x1e7,_0xc046cd._0x1dcdc3)]=_0x99cc07?.[_0x1a8191(_0xc046cd._0x1f5635,0x43c,_0xc046cd._0x30a7a2,_0xc046cd._0x470663)]??this[_0x1a8191(0x13a,0x1de,0x1e7,_0xc046cd._0xc4d38b)],this['stopReason']=_0x320068?.[_0x463044(_0xc046cd._0xd47a94,0x4a7,_0xc046cd._0x3e41f2,_0xc046cd._0x297d5c)]===_0x1a8191(_0xc046cd._0x17da47,_0xc046cd._0x2c62f9,_0xc046cd._0x394763,0x12c)?_0x463044(_0xc046cd._0x599368,_0xc046cd._0x468ebf,_0xc046cd._0x51fceb,_0xc046cd._0x262e3d):_0x463044(0x568,0x71e,0x5b7,_0xc046cd._0x272846);break;}case _0x463044(_0xc046cd._0x28f0d4,_0xc046cd._0x2029c1,0x77b,0x6d9):{const _0x24127d=_0x42e31c['error'];throw new ProviderStreamEventError(_0x24127d?.[_0x1a8191(0x220,0x24d,_0xc046cd._0x4320ea,0x215)]??'Anthropic\x20stream\x20failed',{'code':_0x24127d?.[_0x463044(0x5ae,_0xc046cd._0x4d64d8,_0xc046cd._0x2d39a1,_0xc046cd._0x2e5dce)],'retryable':!![]});}}function _0x463044(_0x41e05a,_0x587c45,_0x17b9dd,_0x18ae5c){return _0x54ac71(_0x41e05a-0x17a,_0x17b9dd,_0x18ae5c-_0x13aa41._0x348022,_0x18ae5c-_0x13aa41._0x297962);}return[];}[_0x5276b1(0x13a,0x157,0xe7,0x78)](){const _0x1f6bd5={_0x389b58:0x71b,_0x510618:0x5f1,_0x5e10df:0x558,_0x2a37dd:0x4d9,_0x2518db:0x533,_0x31f529:0x61e,_0x3ed8c5:0x359,_0x18c09c:0x248,_0x106004:0x2d6,_0x4bbf4c:0x209,_0x2907c9:0x251,_0x344363:0x267,_0x25c5d7:0x377,_0x2f196f:0x6c7,_0x101cfd:0x70c,_0x43e6fc:0x6a2,_0x1173de:0x7ce,_0x5b501c:0x294,_0x2bf7e4:0x30f,_0x1bfb2a:0x1f9,_0x1549e9:0x218,_0x201db3:0x2fa,_0x5a1622:0x763,_0x33eb1a:0x6bf,_0x59495d:0x71c,_0x9ac167:0x633,_0x4acbc9:0x270,_0x20adde:0x1bc,_0x30f7cf:0x297,_0x1ed689:0x7a3,_0x559ff1:0x796,_0x241b86:0x61b,_0x5d94d0:0x6d8,_0x4ea4a3:0x550,_0x677fc8:0x4e8,_0x6f7c68:0x55b,_0x48f4d8:0x56a,_0x575c17:0x5ea,_0x15efcb:0x7a4,_0x684abf:0x6a5,_0x587a6a:0x6b9,_0x11414b:0x5d3,_0x1eeee7:0x621,_0x5cb1a8:0x68d,_0x50bc46:0x5e2,_0x399cfa:0x6c8,_0x2ac225:0x364,_0x2ef9c6:0x2bb,_0x2298bf:0x363,_0x1f525c:0x1cd,_0x4d08bc:0x14d,_0x122e7b:0xdd,_0x8a3bc5:0x235,_0x1d60ab:0x2e2,_0x10f1de:0x18a,_0x17421a:0x1ba,_0x13a2a3:0x26a,_0x903fa8:0x242,_0x228fe8:0x322},_0x2b7687={_0x766f3a:0x15d},_0x1aa1e7={_0x5339b4:0x1d9},_0x138bed=Array[_0x3825ea(0x6da,0x6b1,0x686,_0x1f6bd5._0x389b58)](this['blocks'][_0x3825ea(_0x1f6bd5._0x510618,_0x1f6bd5._0x5e10df,0x596,0x54d)]())[_0x3825ea(_0x1f6bd5._0x2a37dd,_0x1f6bd5._0x2518db,_0x1f6bd5._0x31f529,0x4ac)]((_0x2f7cc6,_0x10417c)=>_0x2f7cc6[_0x3825ea(0x6ab,0x626,0x6c3,0x5fa)]-_0x10417c[_0x173161(0x2b1,0x246,0x1fe,0x252)]),_0x2de4a4=[];function _0x3825ea(_0x4841d1,_0x53bf4c,_0x23ac36,_0x39194f){return _0x5276b1(_0x23ac36,_0x53bf4c-_0x1aa1e7._0x5339b4,_0x23ac36-0x1bf,_0x53bf4c-0x62b);}for(const _0x42c859 of _0x138bed){if(_0x42c859[_0x173161(_0x1f6bd5._0x3ed8c5,0x2df,0x26e,_0x1f6bd5._0x18c09c)]===_0x173161(0x2d0,_0x1f6bd5._0x106004,_0x1f6bd5._0x4bbf4c,_0x1f6bd5._0x2907c9)){_0x42c859[_0x173161(0x284,0x2d6,_0x1f6bd5._0x344363,_0x1f6bd5._0x25c5d7)][_0x3825ea(_0x1f6bd5._0x2f196f,_0x1f6bd5._0x101cfd,_0x1f6bd5._0x43e6fc,_0x1f6bd5._0x1173de)]>0x0&&_0x2de4a4[_0x173161(0x280,_0x1f6bd5._0x5b501c,0x2a6,_0x1f6bd5._0x2bf7e4)]({'type':_0x173161(0x1fa,_0x1f6bd5._0x106004,_0x1f6bd5._0x1bfb2a,_0x1f6bd5._0x1549e9),'text':_0x42c859[_0x173161(0x3c1,0x2d6,_0x1f6bd5._0x201db3,0x315)]});continue;}if(_0x42c859[_0x3825ea(_0x1f6bd5._0x5a1622,_0x1f6bd5._0x33eb1a,_0x1f6bd5._0x59495d,_0x1f6bd5._0x9ac167)]==='thinking'){_0x2de4a4[_0x173161(0x1c5,0x294,0x210,0x205)]({'type':_0x173161(_0x1f6bd5._0x4acbc9,0x1e1,0x2b3,_0x1f6bd5._0x20adde),'thinking':_0x42c859[_0x173161(0x10f,0x1e1,_0x1f6bd5._0x30f7cf,0x281)],'signature':_0x42c859[_0x3825ea(0x759,0x707,0x6b6,_0x1f6bd5._0x1ed689)]});continue;}if(_0x42c859[_0x3825ea(_0x1f6bd5._0x559ff1,_0x1f6bd5._0x33eb1a,0x6d3,0x769)]==='redacted_thinking'){_0x2de4a4[_0x3825ea(_0x1f6bd5._0x241b86,0x674,0x756,_0x1f6bd5._0x5d94d0)]({'type':'redacted_thinking','data':_0x42c859[_0x3825ea(0x51b,_0x1f6bd5._0x4ea4a3,_0x1f6bd5._0x677fc8,0x628)]});continue;}_0x2de4a4['push']({'type':_0x173161(0x2a8,0x1dd,0xec,0x117),'id':_0x42c859['id'],'name':_0x42c859[_0x3825ea(_0x1f6bd5._0x6f7c68,_0x1f6bd5._0x48f4d8,0x481,_0x1f6bd5._0x575c17)],'input':parseToolInput(_0x42c859[_0x3825ea(_0x1f6bd5._0x15efcb,0x6b9,_0x1f6bd5._0x684abf,0x612)]['length']>0x0?_0x42c859[_0x3825ea(0x6b8,_0x1f6bd5._0x587a6a,_0x1f6bd5._0x11414b,_0x1f6bd5._0x1eeee7)]:'{}')});}function _0x173161(_0x1270aa,_0x393250,_0x41b35f,_0x52c55c){return _0x5276b1(_0x41b35f,_0x393250-0x187,_0x41b35f-_0x2b7687._0x766f3a,_0x393250-0x24b);}return parseAnthropicResponse({'id':this['messageId'],'type':_0x3825ea(_0x1f6bd5._0x5cb1a8,0x5ea,_0x1f6bd5._0x50bc46,_0x1f6bd5._0x399cfa),'role':_0x173161(_0x1f6bd5._0x2ac225,_0x1f6bd5._0x2ef9c6,_0x1f6bd5._0x2298bf,0x324),'content':_0x2de4a4,'stop_reason':this[_0x173161(_0x1f6bd5._0x1f525c,_0x1f6bd5._0x4d08bc,0x1b4,_0x1f6bd5._0x122e7b)],'stop_sequence':null,'usage':{'input_tokens':this[_0x173161(_0x1f6bd5._0x8a3bc5,0x1fd,_0x1f6bd5._0x1d60ab,_0x1f6bd5._0x10f1de)],'output_tokens':this[_0x173161(0x161,_0x1f6bd5._0x17421a,0x176,0x120)],'cache_read_input_tokens':this[_0x173161(0x19d,0x1f1,0x1b3,_0x1f6bd5._0x13a2a3)],'cache_creation_input_tokens':this[_0x173161(_0x1f6bd5._0x903fa8,0x2eb,_0x1f6bd5._0x228fe8,0x22f)]}},this['request']);}};function createAnthropicSurfaces(){const _0x1faf39={_0x53ff34:0x56e,_0xe162a8:0x56e,_0x55aa8b:0x4a1,_0x2af4a3:0x553,_0x109e80:0x463},_0x57837f={_0x1ec72d:0x161,_0x473b35:0x62b},_0x29840f={_0x1c91ba:0x18f,_0x120c87:0x3e7};function _0x136890(_0x48d11c,_0x55e317,_0x26ac9a,_0x555309){return _0x5276b1(_0x55e317,_0x55e317-0x1cd,_0x26ac9a-_0x29840f._0x1c91ba,_0x555309-_0x29840f._0x120c87);}function _0x2dfd3c(_0xeb925f,_0x1b2862,_0x5708ea,_0x5a8874){return _0x5276b1(_0xeb925f,_0x1b2862-0xb5,_0x5708ea-_0x57837f._0x1ec72d,_0x5708ea-_0x57837f._0x473b35);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x2dfd3c(_0x1faf39._0x53ff34,0x5d3,0x534,_0x1faf39._0xe162a8),'createRequest'(_0x1b96c7){return createAnthropicRequest(_0x1b96c7,![]);},'parseResponse'(_0x47caea,_0x4b928c){return parseAnthropicResponse(_0x47caea,_0x4b928c);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x136890(0x46f,_0x1faf39._0x55aa8b,_0x1faf39._0x2af4a3,_0x1faf39._0x109e80),'createRequest'(_0x207c6d){return createAnthropicRequest(_0x207c6d,!![]);},'createStreamParser'(_0x420909){return new AnthropicMessagesStreamParser(_0x420909);}}];}var StaticModelSurfaceRouter=class{[_0x54ac71(0x435,0x36a,0x415,0x441)];[_0x54ac71(0x2d7,0x37c,0x344,0x407)];constructor(_0x491294){const _0x4fc1ca={_0x3452e3:0x1f,_0x575e14:0x2d,_0x34cb12:0xb,_0xcddb7e:0xce},_0x481dd7={_0x23a8bb:0x15};function _0x1de471(_0x54747d,_0x2b85fa,_0x4d28fe,_0x2b8f2c){return _0x54ac71(_0x54747d-0x97,_0x2b8f2c,_0x54747d- -0x335,_0x2b8f2c-0xbd);}this[_0x534942(0x23,-_0x4fc1ca._0x3452e3,_0x4fc1ca._0x575e14,_0x4fc1ca._0x34cb12)]=_0x491294[_0x1de471(0x76,0x2,0x2,_0x4fc1ca._0xcddb7e)];function _0x534942(_0x34be95,_0x33f623,_0x6a52b5,_0x3f0cf3){return _0x5276b1(_0x33f623,_0x33f623-0xf6,_0x6a52b5-0x1a4,_0x6a52b5-_0x481dd7._0x23a8bb);}this['streamSurface']=_0x491294[_0x534942(0x56,0xa7,0x3b,0x2f)];}['selectSurface'](_0x2ad360,_0x5721bd){const _0x3f4a0a={_0x2dacd1:0x5c5,_0x937372:0x2f2,_0x391d7a:0x1f4,_0x52fba8:0x4ed,_0x18b1f9:0x4d7,_0x4a70e1:0x5ba,_0x138d17:0x5ad},_0x598252={_0x17a31e:0x395},_0x5259e0={_0x13acc2:0x595};function _0x5371cd(_0x34ba10,_0x2eb00d,_0xa1c896,_0x245c6f){return _0x5276b1(_0x34ba10,_0x2eb00d-0x13,_0xa1c896-0x1ce,_0x245c6f-_0x5259e0._0x13acc2);}function _0x5241c2(_0x12bb88,_0x4f9f23,_0x3be870,_0x3789e6){return _0x5276b1(_0x4f9f23,_0x4f9f23-0xe9,_0x3be870-0x1dc,_0x12bb88-_0x598252._0x17a31e);}return _0x5721bd[_0x5371cd(0x4d3,0x5e3,_0x3f4a0a._0x2dacd1,0x552)]===_0x5371cd(0x5da,0x5ab,0x691,0x5bb)?this[_0x5241c2(0x2dc,0x290,_0x3f4a0a._0x937372,_0x3f4a0a._0x391d7a)]:this[_0x5371cd(_0x3f4a0a._0x52fba8,_0x3f4a0a._0x18b1f9,_0x3f4a0a._0x4a70e1,_0x3f4a0a._0x138d17)];}};function trimTrailingSlashes(_0x1c174c){const _0x19cd0f={_0x56f3f1:0x334},_0x484518={_0x2a4b29:0x94};function _0x269882(_0x713475,_0x554154,_0x27e891,_0x95e2e5){return _0x5276b1(_0x95e2e5,_0x554154-0xd2,_0x27e891-_0x484518._0x2a4b29,_0x713475-0x275);}return _0x1c174c[_0x269882(0x2c5,_0x19cd0f._0x56f3f1,0x30d,0x364)](/\/+$/,'');}function resolveApiCredential(_0x1455fd,_0x597d3d){const _0x13b827={_0x4bbc4f:0x1da,_0x37665c:0x158,_0x19f958:0x289},_0x5349ae={_0x249f0f:0x1e4},_0xbc79ca={_0x277c94:0x13a,_0x335c31:0x223};if(_0x597d3d?.['credential'])return _0x597d3d[_0x4a1c0b(_0x13b827._0x4bbc4f,0x1c9,0x23a,_0x13b827._0x37665c)];function _0x4a1c0b(_0x209d78,_0xb3f1f1,_0x225eae,_0x2be228){return _0x5276b1(_0xb3f1f1,_0xb3f1f1-_0xbc79ca._0x277c94,_0x225eae-0x13d,_0x225eae-_0xbc79ca._0x335c31);}if(!_0x1455fd)return void 0x0;function _0x4b2b52(_0x32a85e,_0x410314,_0x2597aa,_0x32ea78){return _0x5276b1(_0x32a85e,_0x410314-_0x5349ae._0x249f0f,_0x2597aa-0x4c,_0x32ea78-0x5a8);}return{'kind':_0x4a1c0b(0x297,_0x13b827._0x19f958,0x2a7,0x2aa),'value':_0x1455fd};}function resolveSessionBaseUrl(_0xd9006c,_0x4225aa){const _0x23ba6a={_0x3d05be:0x33c,_0x4ddd67:0x2ae,_0x1a462f:0x1c4,_0x59468a:0x23f,_0xc31b3c:0x14,_0xc1ee5b:0x13},_0x43bed1={_0x16c32b:0xae},_0x46e57e={_0x42cb12:0x148,_0x49a340:0x1f5,_0x296418:0x2e};function _0x346fb7(_0x438fc5,_0x3243eb,_0x992421,_0x2aeb9c){return _0x54ac71(_0x438fc5-_0x46e57e._0x42cb12,_0x992421,_0x3243eb- -_0x46e57e._0x49a340,_0x2aeb9c-_0x46e57e._0x296418);}function _0x208e52(_0x4aff59,_0x370013,_0x4f5885,_0x5c26c4){return _0x5276b1(_0x5c26c4,_0x370013-0x55,_0x4f5885-0xea,_0x4aff59-_0x43bed1._0x16c32b);}return trimTrailingSlashes(_0x4225aa?.[_0x346fb7(_0x23ba6a._0x3d05be,_0x23ba6a._0x4ddd67,_0x23ba6a._0x1a462f,_0x23ba6a._0x59468a)]?.[_0x208e52(_0x23ba6a._0xc31b3c,_0x23ba6a._0xc1ee5b,-0x54,0x22)]??_0xd9006c);}function toErrorMessage(_0x225869){const _0x2c044b={_0x2a025f:0x4d6,_0x1ea7f8:0x42d,_0x4aefe8:0x4e4,_0x488d68:0x55d,_0x4f8cca:0x52c},_0x3da581={_0x124b2c:0x16f,_0x3f8533:0x8,_0x589a82:0xc9},_0x2f82c5={_0xd730f5:0x7,_0x198efe:0xd2};function _0x21b10a(_0x3d4c56,_0x37a9b7,_0x516887,_0x155fbc){return _0x5276b1(_0x37a9b7,_0x37a9b7-_0x2f82c5._0xd730f5,_0x516887-_0x2f82c5._0x198efe,_0x3d4c56-0x525);}function _0xeb0a0(_0x1d31fd,_0x4b5f0d,_0x405544,_0x2fabc8){return _0x54ac71(_0x1d31fd-_0x3da581._0x124b2c,_0x405544,_0x1d31fd- -_0x3da581._0x3f8533,_0x2fabc8-_0x3da581._0x589a82);}if(_0x225869 instanceof Error&&_0x225869['message'][_0xeb0a0(_0x2c044b._0x2a025f,0x4cc,_0x2c044b._0x1ea7f8,0x432)]>0x0)return _0x225869[_0x21b10a(_0x2c044b._0x4aefe8,0x435,_0x2c044b._0x488d68,_0x2c044b._0x4f8cca)];return'WebSocket\x20request\x20failed';}function createDefaultWebSocketFactory(){const _0x3132fe={_0x2e75cd:0x8d,_0x24f169:0xee,_0x583b3f:0x2a};return({headers:_0x956e82,url:_0x5e0098})=>{const _0x4d826b={_0x4fdbe4:0x208},_0x3075a6=globalThis[_0x42f14e(_0x3132fe._0x2e75cd,_0x3132fe._0x24f169,_0x3132fe._0x583b3f,_0x3132fe._0x24f169)];function _0x42f14e(_0x24c34f,_0x2f2a1b,_0x23270b,_0x483b32){return _0x4c72(_0x24c34f- -_0x4d826b._0x4fdbe4,_0x2f2a1b);}return new _0x3075a6(_0x5e0098,{'headers':_0x956e82,'protocols':[]});};}async function*iterateSseEvents(_0x26cc60,_0x59ba2c){const _0x18c5aa={_0x58345e:0x239,_0x42368d:0x18e,_0x597af4:0x1b6,_0x4f4855:0xb4,_0x3b74c5:0xb,_0x2782c1:0x60,_0x4cc9e7:0x3c,_0x147633:0x9e,_0x360af8:0x76,_0x1df7f8:0x256,_0x13f7d5:0x192,_0x59916f:0x104,_0x3a7895:0x94,_0x17be10:0x7b,_0x55cfbf:0x1cd,_0x58ba94:0x198,_0x3731ce:0x291,_0x3c578a:0x189,_0xca9669:0x394,_0x178c62:0x358,_0x4f8f3a:0x413},_0x152312={_0x3de488:0x10},_0x54cfe4={_0x4a8a37:0x2bf},_0x367889={_0x4cf683:0x200},_0x188f8e={_0x276869:0xd5},_0x26c1c6=_0x26cc60[_0xdd7686(0x1ea,_0x18c5aa._0x58345e,0x311,0x20c)]?.[_0xdd7686(_0x18c5aa._0x42368d,0x202,0x18f,_0x18c5aa._0x597af4)]();if(!_0x26c1c6)return;const _0x347b24=new TextDecoder(_0x38295f(0x53,_0x18c5aa._0x4f4855,_0x18c5aa._0x3b74c5,_0x18c5aa._0x2782c1));let _0x5aae6='';const _0x20e306=addAbortListener(_0x59ba2c,()=>{function _0x1faded(_0x3ac17a,_0x4e18bb,_0x3e2d45,_0x1cc245){return _0xdd7686(_0x1cc245,_0x3ac17a- -0x3ca,_0x3e2d45-_0x188f8e._0x276869,_0x1cc245-0x1ef);}void _0x26c1c6['cancel'](toAbortError(_0x59ba2c?.[_0x1faded(-_0x367889._0x4cf683,-0x2ed,-0x18c,-0x149)]))['catch'](()=>{});});function _0x38295f(_0x3dc6c5,_0x49aaaf,_0x4f4f6c,_0x2de482){return _0x54ac71(_0x3dc6c5-0xae,_0x2de482,_0x49aaaf- -_0x54cfe4._0x4a8a37,_0x2de482-0x55);}function _0xdd7686(_0x380375,_0x510edd,_0x2b49b3,_0x3674d6){return _0x5276b1(_0x380375,_0x510edd-_0x152312._0x3de488,_0x2b49b3-0x81,_0x510edd-0x277);}try{while(!![]){throwIfAborted(_0x59ba2c);const {value:_0x346c66,done:_0x5b484b}=await _0x26c1c6[_0x38295f(-_0x18c5aa._0x4cc9e7,0x41,_0x18c5aa._0x147633,_0x18c5aa._0x360af8)]();throwIfAborted(_0x59ba2c);if(_0x5b484b)break;_0x5aae6+=_0x347b24[_0x38295f(_0x18c5aa._0x1df7f8,0x1af,0x220,_0x18c5aa._0x13f7d5)](_0x346c66,{'stream':!![]});while(!![]){const _0x2359e4=_0x5aae6[_0xdd7686(0x1a2,0x1c8,0x191,0x17c)]('\x0a\x0a');if(_0x2359e4===-0x1)break;const _0x582cfa=_0x5aae6[_0x38295f(0xf1,0x94,_0x18c5aa._0x59916f,-0x5e)](0x0,_0x2359e4);_0x5aae6=_0x5aae6[_0x38295f(0x3b,_0x18c5aa._0x3a7895,_0x18c5aa._0x17be10,0x151)](_0x2359e4+0x2),_0x582cfa[_0xdd7686(0x9f,0x18f,_0x18c5aa._0x55cfbf,0x26c)]()[_0x38295f(_0x18c5aa._0x58ba94,0x21f,_0x18c5aa._0x3731ce,_0x18c5aa._0x3c578a)]>0x0&&(yield _0x582cfa);}}_0x5aae6+=_0x347b24['decode'](),throwIfAborted(_0x59ba2c),_0x5aae6[_0x38295f(0xdf,0x56,0xf5,0x17)]()[_0xdd7686(_0x18c5aa._0xca9669,_0x18c5aa._0x178c62,0x33b,_0x18c5aa._0x4f8f3a)]>0x0&&(yield _0x5aae6);}finally{_0x20e306();}}async function waitForWebSocketOpen(_0x1b517a,_0x3ae17c){const _0x28b8d9={_0x37e08d:0x40,_0x51557b:0x3e,_0x303d37:0xdc},_0x3e24b3={_0x559888:0x1e1,_0x7c86fc:0x29f,_0x3fd386:0x360,_0x411f0d:0x34d,_0x1ffcf5:0x38a,_0x1062e8:0x315,_0x50c154:0x1f3,_0x448b06:0xef,_0x5466e4:0x147},_0x3c6dcd={_0x2a88d3:0x3df,_0x130848:0xee,_0x75af37:0x142},_0x36de4d={_0x3a85f8:0x14a,_0x2656ff:0x10d,_0x3562cf:0x4d8,_0x16af11:0x3f6},_0x3391e0={_0x20de51:0x555,_0x5912d4:0x582,_0x385ffd:0x490,_0x3cceda:0x52e,_0x5f43f6:0x4fc,_0x2516e5:0x46f,_0x583019:0x514},_0x4d733b={_0x5d8702:0xd3,_0x48c4d4:0x1e8,_0x170640:0x105,_0x38dc89:0x2d8};function _0x262873(_0x493038,_0x1cd933,_0x2d6b2e,_0x32c432){return _0x54ac71(_0x493038-0xf2,_0x493038,_0x2d6b2e- -0x2da,_0x32c432-0x46);}function _0x338fb1(_0x21caa6,_0x4ca366,_0x4163e9,_0x305ec2){return _0x54ac71(_0x21caa6-0x7b,_0x305ec2,_0x21caa6- -0x3d9,_0x305ec2-0x89);}if(_0x1b517a[_0x338fb1(-0x1b,0x74,0x55,_0x28b8d9._0x37e08d)]===WebSocket[_0x338fb1(-_0x28b8d9._0x51557b,0xb7,-0x12b,-_0x28b8d9._0x303d37)]){throwIfAborted(_0x3ae17c);return;}throwIfAborted(_0x3ae17c),await new Promise((_0x4a314c,_0x1bdda5)=>{const _0x591e61={_0x5e8e33:0xa9},_0x1d7908={_0x1ecaf5:0x15c,_0x351832:0x131,_0x2e02ab:0xde},_0x4df20c={_0x566e87:0x77,_0xa912c8:0x1d5},_0x202c57=()=>{_0x26c01(),_0x4a314c();},_0x1cc595=_0x12a9be=>{function _0x51d617(_0x2cdfe3,_0x38fe95,_0x190634,_0x17ddc0){return _0x4c72(_0x2cdfe3- -0xf,_0x190634);}_0x26c01();function _0x44a8d3(_0x3e76bd,_0x34df87,_0x3dff2e,_0x42c3a7){return _0x4c72(_0x3dff2e- -0x33c,_0x42c3a7);}_0x1bdda5(new Error(_0x12a9be[_0x44a8d3(-0x1d4,-_0x4d733b._0x5d8702,-0xf3,-_0x4d733b._0x48c4d4)]||_0x51d617(0x1ef,_0x4d733b._0x170640,0x225,_0x4d733b._0x38dc89)));};function _0x57191a(_0x3aa554,_0xfc7e93,_0x4e2a1c,_0x252844){return _0x262873(_0xfc7e93,_0xfc7e93-_0x4df20c._0x566e87,_0x252844-0xc7,_0x252844-_0x4df20c._0xa912c8);}const _0x515f8c=_0x44b5bc=>{function _0x27ee3c(_0x205141,_0x458eda,_0x19550e,_0x36b0d8){return _0x4c72(_0x19550e- -0x36b,_0x458eda);}function _0x12418e(_0x415452,_0x38d6f7,_0x2f8881,_0x4181c4){return _0x4c72(_0x2f8881- -0x334,_0x38d6f7);}_0x26c01();const _0x55c96d=_0x44b5bc;_0x1bdda5(new Error(_0x55c96d[_0x27ee3c(-0x175,-0x1f7,-0x18e,-_0x1d7908._0x1ecaf5)]||_0x12418e(-_0x1d7908._0x351832,-0x1e,-_0x1d7908._0x2e02ab,-0xc4)));},_0x2bd1d2=()=>{_0x26c01();function _0x1aaf78(_0x3f8873,_0x2dd4ee,_0x580234,_0x3cb8d6){return _0x4c72(_0x580234-_0x591e61._0x5e8e33,_0x2dd4ee);}_0x1b517a[_0x54299f(0x599,0x5f6,_0x3391e0._0x20de51,_0x3391e0._0x5912d4)]===WebSocket[_0x54299f(_0x3391e0._0x385ffd,0x5d0,0x4da,0x55f)]&&_0x1b517a['close'](0x3e8,_0x54299f(_0x3391e0._0x3cceda,0x5e7,0x52c,0x558));function _0x54299f(_0x533e9b,_0x530585,_0x49aa64,_0x140d1e){return _0x4c72(_0x140d1e-0x337,_0x530585);}_0x1bdda5(toAbortError(_0x3ae17c?.[_0x54299f(_0x3391e0._0x5f43f6,0x423,_0x3391e0._0x2516e5,_0x3391e0._0x583019)]));},_0x26c01=()=>{const _0x618591={_0x3b386b:0x3e8};function _0x4fbebf(_0x58befa,_0x93778c,_0xe61e05,_0x33c1fe){return _0x4c72(_0xe61e05-0x1c4,_0x33c1fe);}_0x1b517a[_0x650f8e(-_0x36de4d._0x3a85f8,-0x1c9,-0x230,-0x1a9)](_0x650f8e(-0x122,-_0x36de4d._0x2656ff,-0x10b,-0xa9),_0x202c57),_0x1b517a[_0x4fbebf(_0x36de4d._0x3562cf,0x4a4,0x403,_0x36de4d._0x16af11)]('error',_0x1cc595),_0x1b517a['removeEventListener']('close',_0x515f8c);function _0x650f8e(_0x529386,_0x1cefbe,_0x2a21d0,_0x7e0080){return _0x4c72(_0x7e0080- -_0x618591._0x3b386b,_0x2a21d0);}_0x3ae17c?.['removeEventListener']('abort',_0x2bd1d2);};function _0x462ce6(_0x448df2,_0x130d02,_0x1f96c8,_0x2f9556){return _0x338fb1(_0x448df2-_0x3c6dcd._0x2a88d3,_0x130d02-_0x3c6dcd._0x130848,_0x1f96c8-_0x3c6dcd._0x75af37,_0x2f9556);}_0x1b517a['addEventListener'](_0x57191a(0x314,_0x3e24b3._0x559888,0x359,_0x3e24b3._0x7c86fc),_0x202c57),_0x1b517a[_0x462ce6(_0x3e24b3._0x3fd386,0x333,_0x3e24b3._0x411f0d,_0x3e24b3._0x1ffcf5)]('error',_0x1cc595),_0x1b517a[_0x462ce6(_0x3e24b3._0x3fd386,_0x3e24b3._0x1062e8,0x2fd,0x301)](_0x57191a(0xd9,_0x3e24b3._0x50c154,0x57,0x12d),_0x515f8c),_0x3ae17c?.[_0x57191a(_0x3e24b3._0x448b06,0xc8,0x18a,_0x3e24b3._0x5466e4)](_0x57191a(0x3a9,0x36d,0x2fe,0x2b4),_0x2bd1d2,{'once':!![]});});}function iterateWebSocketMessages(_0x1f4eda,_0x103b00){const _0x41d5a7={_0x3abe91:0x145,_0x5da70c:0x40,_0x10c80d:0xcd,_0x3dbb53:0x623,_0x4eacd7:0x59f,_0x5dfb14:0x47c,_0x37e4d3:0x5ee,_0x2bf6ce:0x655,_0x4f9491:0x5cf,_0x434521:0x53d,_0x52fdbe:0x433,_0x3ccd58:0x4d2,_0x44e1b6:0x8c},_0x173230={_0x22459b:0x4cf,_0x5cf43c:0x401,_0x43188a:0x4c2,_0xd84d1:0x46a,_0x522039:0x227,_0x8e8678:0x312,_0x48d461:0x2df,_0xb69e2e:0x3dc,_0x5723d5:0x4c2,_0x49cede:0x5b6},_0x1e8199={_0x37fb41:0x4db,_0x156a9e:0xb9,_0x2e0935:0x179},_0x36c095={_0x21618f:0x3cb,_0x24ac00:0xcf},_0x9d33fc={_0x53a834:0x365,_0x24d8c1:0x302,_0x2b2b17:0x3c3,_0x178a3f:0x40a,_0xd83186:0x384,_0x6a3d0d:0x483,_0x1d3a87:0x3a9,_0xd2753a:0x359},_0x1ae773={_0x557caf:0x5f5,_0x2c1762:0x613,_0xc24db8:0x589},_0x51a3ba={_0xcdb9ee:0x424,_0x23f59e:0x390,_0x340624:0x36d,_0x25af2a:0x375},_0x10cd76={_0x17f349:0x72b,_0x3ad7b5:0x604,_0x3dd505:0x686,_0x551eb8:0x712,_0x48cf42:0x61e,_0x59ab4f:0x579,_0x33b6b2:0x590,_0x2017a0:0x6d2,_0x598c89:0x5e8},_0x1859cc={_0x782bc9:0x3b3},_0x1b59eb={_0x8cbbf:0x177,_0x6b219d:0x1e9,_0x134e2b:0x5e0},_0x358834=[];let _0x37bb89=![];function _0x467964(_0x1c9ac2,_0x196458,_0x13e6e9,_0x4e0203){return _0x5276b1(_0x196458,_0x196458-_0x1b59eb._0x8cbbf,_0x13e6e9-_0x1b59eb._0x6b219d,_0x4e0203-_0x1b59eb._0x134e2b);}let _0x2200ff,_0x1f8d0b;const _0xd263db=_0x3b0610=>{const _0x873561=_0x3b0610;function _0x143372(_0x2afe50,_0x6e4fa,_0x202a6e,_0x42bfaa){return _0x4c72(_0x42bfaa-_0x1859cc._0x782bc9,_0x202a6e);}function _0x17c019(_0x4990aa,_0x151a3e,_0xf6853c,_0x157a61){return _0x4c72(_0x157a61-0x36f,_0x4990aa);}try{_0x358834[_0x143372(_0x10cd76._0x17f349,0x6ae,_0x10cd76._0x3ad7b5,_0x10cd76._0x3dd505)](JSON[_0x143372(_0x10cd76._0x551eb8,_0x10cd76._0x48cf42,_0x10cd76._0x59ab4f,0x62b)](String(_0x873561[_0x143372(0x5a6,_0x10cd76._0x33b6b2,0x530,0x562)]))),_0x1f8d0b?.(),_0x1f8d0b=void 0x0;}catch(_0x11f7d4){_0x2200ff=new Error(_0x17c019(_0x10cd76._0x2017a0,0x5f4,_0x10cd76._0x598c89,0x6dc)+toErrorMessage(_0x11f7d4)),_0x1f8d0b?.(),_0x1f8d0b=void 0x0;}},_0x58caea=_0x425948=>{const _0x450fd7={_0x3e8457:0xcc},_0x49ce8c={_0x13dc32:0x177},_0x4df111=_0x425948;_0x2200ff=new Error(_0x4df111[_0x95bfba(0x46d,_0x51a3ba._0xcdb9ee,0x46c,0x3c0)]||_0x95bfba(_0x51a3ba._0x23f59e,0x3dc,_0x51a3ba._0x340624,_0x51a3ba._0x25af2a)),_0x1f8d0b?.();function _0x95bfba(_0x574693,_0x665d83,_0x273538,_0x4ddbf4){return _0x4c72(_0x4ddbf4-_0x49ce8c._0x13dc32,_0x273538);}function _0x2e0a0d(_0x31206a,_0x55d287,_0x274ba4,_0x6125f9){return _0x4c72(_0x274ba4- -_0x450fd7._0x3e8457,_0x6125f9);}_0x1f8d0b=void 0x0;},_0x232be7=_0x1e568f=>{const _0x2f2050={_0xf6c180:0x3ac},_0x11f330=_0x1e568f;!_0x37bb89&&_0x11f330['code']!==0x3e8&&!_0x2200ff&&(_0x2200ff=new Error(_0x11f330[_0xd3e987(_0x1ae773._0x557caf,_0x1ae773._0x2c1762,_0x1ae773._0xc24db8,0x613)]||'WebSocket\x20closed\x20with\x20code\x20'+_0x11f330['code']));function _0xd3e987(_0x3e1802,_0x51cab4,_0x25d987,_0x4b4c38){return _0x4c72(_0x25d987-_0x2f2050._0xf6c180,_0x51cab4);}_0x37bb89=!![],_0x1f8d0b?.(),_0x1f8d0b=void 0x0;},_0x5a5f44=addAbortListener(_0x103b00,()=>{_0x2200ff=toAbortError(_0x103b00?.[_0x3f432f(_0x9d33fc._0x53a834,_0x9d33fc._0x24d8c1,_0x9d33fc._0x2b2b17,_0x9d33fc._0x178a3f)]);_0x1f4eda['readyState']===WebSocket['OPEN']&&_0x1f4eda[_0x5aa477(0x3ba,_0x9d33fc._0xd83186,0x3b5,_0x9d33fc._0x6a3d0d)](0x3e8,_0x3f432f(_0x9d33fc._0x1d3a87,_0x9d33fc._0xd2753a,0x339,0x47e));function _0x5aa477(_0x584c6c,_0x50a344,_0x181a3f,_0x3593f9){return _0x4c72(_0x584c6c-0x1ed,_0x181a3f);}function _0x3f432f(_0x3f82b8,_0x26d006,_0xcf412e,_0x398a70){return _0x4c72(_0x3f82b8-0x188,_0x398a70);}_0x1f8d0b?.(),_0x1f8d0b=void 0x0;});function _0x5bba8e(_0x60427d,_0x580140,_0x555eb3,_0x15ba54){return _0x54ac71(_0x60427d-0x135,_0x555eb3,_0x60427d- -_0x36c095._0x21618f,_0x15ba54-_0x36c095._0x24ac00);}return _0x1f4eda[_0x5bba8e(-0x71,-_0x41d5a7._0x3abe91,_0x41d5a7._0x5da70c,-_0x41d5a7._0x10c80d)](_0x467964(_0x41d5a7._0x3dbb53,0x4cf,0x54c,_0x41d5a7._0x4eacd7),_0xd263db),_0x1f4eda[_0x467964(_0x41d5a7._0x5dfb14,0x4e3,_0x41d5a7._0x37e4d3,0x53d)](_0x467964(0x6ff,0x614,_0x41d5a7._0x2bf6ce,0x6c5),_0x58caea),_0x1f4eda[_0x467964(0x5d9,0x553,_0x41d5a7._0x4f9491,_0x41d5a7._0x434521)](_0x467964(0x4e3,_0x41d5a7._0x52fdbe,_0x41d5a7._0x3ccd58,0x523),_0x232be7),{async*[Symbol[_0x5bba8e(_0x41d5a7._0x44e1b6,0xab,0xbf,0xf6)]](){const _0x46197b={_0x1d00e1:0x1be,_0x19facb:0x7a};function _0x1588ab(_0x4caa8f,_0x5639f1,_0x4c3123,_0x3662fb){return _0x467964(_0x4caa8f-_0x46197b._0x1d00e1,_0x4caa8f,_0x4c3123-_0x46197b._0x19facb,_0x3662fb- -0x2c0);}function _0x406868(_0x27e5db,_0xbe3528,_0x4fb3a7,_0x41ca9b){return _0x5bba8e(_0xbe3528-_0x1e8199._0x37fb41,_0xbe3528-_0x1e8199._0x156a9e,_0x27e5db,_0x41ca9b-_0x1e8199._0x2e0935);}try{while(!![]){if(_0x2200ff)throw _0x2200ff;if(_0x358834[_0x1588ab(_0x173230._0x22459b,0x4de,0x4a5,_0x173230._0x5cf43c)]>0x0){yield _0x358834['shift']();continue;}if(_0x37bb89)break;await new Promise(_0x7e5795=>{_0x1f8d0b=_0x7e5795;});}}finally{_0x1f4eda[_0x406868(0x4fe,_0x173230._0x43188a,0x3f1,_0x173230._0xd84d1)](_0x1588ab(_0x173230._0x522039,0x1ee,_0x173230._0x8e8678,_0x173230._0x48d461),_0xd263db),_0x1f4eda[_0x406868(_0x173230._0xb69e2e,_0x173230._0x5723d5,0x468,0x572)]('error',_0x58caea),_0x1f4eda[_0x406868(_0x173230._0x49cede,0x4c2,0x4d9,0x4e6)]('close',_0x232be7),_0x5a5f44();}}};}function toWebSocketUrl(_0x1bf79a,_0x10802a){const _0x126358={_0x3df297:0x1fe,_0x331844:0x586,_0x26e2f1:0x201,_0x1f67f0:0x1db,_0x4fe917:0x26c,_0x289247:0x5f,_0x19709e:0x5c7,_0x51a04e:0x667,_0x1c6625:0x5f9},_0x147dca={_0x2ade93:0x1ae,_0x107a20:0xdb},_0x2f44c4={_0x440813:0x23a,_0x212158:0x1d5};function _0x5e9690(_0x20b7f7,_0x3d6c48,_0x38766c,_0xff5db5){return _0x54ac71(_0x20b7f7-0x1ca,_0xff5db5,_0x38766c- -_0x2f44c4._0x440813,_0xff5db5-_0x2f44c4._0x212158);}const _0x466662=new URL(_0x10802a,_0x1bf79a);_0x466662[_0x5e9690(0x25f,0x148,_0x126358._0x3df297,0x1c0)]=_0x466662[_0x5439b0(0x548,0x6af,_0x126358._0x331844,0x5e6)]==='https:'?_0x5e9690(_0x126358._0x26e2f1,_0x126358._0x1f67f0,0x1ca,_0x126358._0x4fe917):_0x5e9690(0x15c,0x240,0x14c,_0x126358._0x289247);function _0x5439b0(_0x261b67,_0x39babc,_0x1710bb,_0x418eeb){return _0x54ac71(_0x261b67-0x190,_0x39babc,_0x418eeb-_0x147dca._0x2ade93,_0x418eeb-_0x147dca._0x107a20);}return _0x466662[_0x5439b0(0x5e2,_0x126358._0x19709e,_0x126358._0x51a04e,_0x126358._0x1c6625)]();}var ProviderSessionManager=class{[_0x5276b1(-0x68,0xad,0xcc,0x33)];['cached'];constructor(_0xfe3393){const _0x15b3e5={_0x2789f5:0x87,_0x12f02e:0x31,_0x12e269:0x329};function _0xe088a3(_0x380246,_0x4fd5db,_0x47aba1,_0x31a175){return _0x5276b1(_0x4fd5db,_0x4fd5db-_0x15b3e5._0x2789f5,_0x47aba1-_0x15b3e5._0x12f02e,_0x31a175-_0x15b3e5._0x12e269);}this[_0xe088a3(0x342,0x3c1,0x311,0x35c)]=_0xfe3393;}async[_0x5276b1(-0x42,-0xc5,-0x51,-0x25)](_0x85bfe5){const _0x1042a0={_0x2c61a9:0x4d,_0x5a2d76:0xb7,_0x5f2e8b:0x7,_0xafa1e4:0xa2,_0x49d33b:0x1b,_0x2bd3f9:0x3b0,_0x3d86fc:0x3cc,_0x37c939:0x215,_0x558102:0x277,_0x4524ac:0x381,_0x33f15c:0x32e},_0x3efaf4={_0x434092:0x5d,_0x168353:0x45d},_0x24e2d4={_0x4fe16c:0x414,_0x582186:0x3d2,_0x4c7e6b:0x12d,_0x38c10e:0x41},_0x2b04ad={_0x37bee1:0x5d,_0x1ba356:0x121},_0x94bf5f={_0x3b583d:0x4e7,_0x4556de:0x36};function _0x1bd760(_0x2a24f5,_0x30b839,_0x41cfe6,_0x73ec2e){return _0x54ac71(_0x2a24f5-0xf7,_0x73ec2e,_0x30b839- -_0x94bf5f._0x3b583d,_0x73ec2e-_0x94bf5f._0x4556de);}if(!this['cached']){const _0x480c23=this[_0x1bd760(-_0x1042a0._0x2c61a9,-_0x1042a0._0x5a2d76,_0x1042a0._0x5f2e8b,-0x37)][_0x1bd760(-_0x1042a0._0xafa1e4,-0x10f,-0x1b,-_0x1042a0._0x49d33b)](_0x85bfe5);_0x480c23[_0x279f77(_0x1042a0._0x2bd3f9,_0x1042a0._0x3d86fc,0x385,0x321)](()=>{const _0x7aa0={_0x21b3d0:0x5d,_0x228104:0x475,_0x272b53:0x7f};function _0x25f911(_0x282a75,_0x837774,_0x1ed903,_0x369f18){return _0x279f77(_0x282a75-_0x7aa0._0x21b3d0,_0x282a75,_0x1ed903- -_0x7aa0._0x228104,_0x369f18-_0x7aa0._0x272b53);}function _0x821a66(_0x2919c0,_0x535d50,_0x21cea9,_0x82e13e){return _0x279f77(_0x2919c0-0x5b,_0x21cea9,_0x2919c0-_0x2b04ad._0x37bee1,_0x82e13e-_0x2b04ad._0x1ba356);}this[_0x821a66(0x3de,_0x24e2d4._0x4fe16c,0x300,_0x24e2d4._0x582186)]===_0x480c23&&(this[_0x25f911(-0x1e9,-_0x24e2d4._0x4c7e6b,-0xf4,-_0x24e2d4._0x38c10e)]=void 0x0);}),this[_0x1bd760(-_0x1042a0._0x37c939,-0x1c6,-_0x1042a0._0x558102,-0x247)]=_0x480c23;}function _0x279f77(_0x1e52d9,_0x20da24,_0x274ac3,_0x3daad0){return _0x5276b1(_0x20da24,_0x20da24-_0x3efaf4._0x434092,_0x274ac3-0x88,_0x274ac3-_0x3efaf4._0x168353);}return structuredClone(await this[_0x279f77(0x369,0x32d,_0x1042a0._0x4524ac,_0x1042a0._0x33f15c)]);}[_0x54ac71(0x3fd,0x43b,0x47b,0x3d8)](){const _0x727ba5={_0x5d8e8b:0x472,_0xe8d6d9:0x3aa,_0x549733:0x34c,_0x21a48e:0x385},_0x51a799={_0x9f7739:0x159,_0x59c0e3:0x3c9},_0x568098={_0x5b8908:0x159,_0x5d8471:0xba};this['resolver'][_0x4c932f(_0x727ba5._0x5d8e8b,0x447,_0x727ba5._0xe8d6d9,0x51d)]?.();function _0x509457(_0x52579d,_0x1108b2,_0x2ffa81,_0x17511a){return _0x5276b1(_0x17511a,_0x1108b2-_0x568098._0x5b8908,_0x2ffa81-_0x568098._0x5d8471,_0x2ffa81-0x461);}function _0x4c932f(_0x46e5b7,_0x193811,_0x5d2d64,_0x3e79a8){return _0x5276b1(_0x5d2d64,_0x193811-0xd7,_0x5d2d64-_0x51a799._0x9f7739,_0x193811-_0x51a799._0x59c0e3);}this[_0x509457(_0x727ba5._0x549733,0x40c,_0x727ba5._0x21a48e,0x412)]=void 0x0;}};async function prepareProviderRequest(_0x44839f,_0x2ca072={}){const _0x304247={_0x22723b:0x21,_0x56eb8a:0x1a,_0x19db50:0xf,_0x118115:0x4e},_0x42eb80={_0x176049:0x13b,_0x1d9f62:0xba};function _0x3b8a64(_0x406ac0,_0xa7a8c5,_0x376b2d,_0x142227){return _0x54ac71(_0x406ac0-0x196,_0xa7a8c5,_0x142227- -0x36c,_0x142227-0x118);}let _0xadf234={'request':structuredClone(_0x44839f),'session':_0x2ca072[_0x3b8a64(0x46,_0x304247._0x22723b,0x2e,-_0x304247._0x56eb8a)]?await _0x2ca072[_0xa93c98(-0xdc,-0x55,-0xc7,_0x304247._0x19db50)]['resolve'](_0x2ca072[_0xa93c98(0x143,0x78,-0x39,_0x304247._0x118115)]):void 0x0};function _0xa93c98(_0x46b9af,_0x2f0e8c,_0x50cfa1,_0x225d76){return _0x5276b1(_0x2f0e8c,_0x2f0e8c-0x36,_0x50cfa1-_0x42eb80._0x176049,_0x225d76-_0x42eb80._0x1d9f62);}for(const _0xa1d274 of _0x2ca072['requestMutators']??[]){_0xadf234=await _0xa1d274(_0xadf234);}return _0xadf234;}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{[_0x5276b1(0x124,0x12c,0x94,0xe8)];['modelIdentity'];[_0x54ac71(0x3d1,0x27b,0x304,0x28f)];[_0x5276b1(0x1d,0x3e,-0x9e,-0x9)];[_0x54ac71(0x2bd,0x2e9,0x3a5,0x45d)];['baseUrl'];[_0x5276b1(-0xe0,-0x8d,0xb5,-0x22)];[_0x54ac71(0x43b,0x288,0x36e,0x3d2)];[_0x54ac71(0x42a,0x3eb,0x490,0x3c2)];[_0x5276b1(0x4c,0x1a,-0x53,-0xf)];[_0x54ac71(0x3d1,0x2b1,0x352,0x2a0)];['webSocketFactory'];[_0x5276b1(-0xe4,-0x60,0x3c,-0xa4)]=new Map();constructor(_0x43be2f){const _0x5ea32e={_0x3bafe1:0xee,_0x481619:0xe2,_0x5d2920:0x77,_0x5eae0d:0xa4,_0x237a85:0xbf,_0x5e381a:0xa4,_0x1115bc:0x62,_0x167a5c:0x172,_0x1602be:0xd9,_0x4eff47:0xac,_0x55212b:0x5c8,_0x311c12:0x662,_0x25aca1:0x4d,_0x1b8330:0x2b,_0x4aa726:0xe,_0x6cca25:0x176,_0x9a8550:0x8e,_0x40b7a2:0x87,_0x11b8c3:0x9c,_0x339c56:0x5a3,_0x2bbf93:0x411,_0x399610:0x1e,_0x262539:0xdb,_0x1823c5:0x126,_0x3a7e87:0x66,_0x387f00:0x51a,_0x4aac1c:0x56d,_0x42675a:0x4f9,_0x4c7b29:0x51c,_0x5a9291:0x117,_0x30c090:0x125,_0x2e1934:0x119,_0x312684:0x520,_0x55900e:0x417,_0x1e17a8:0x4a5,_0x254b66:0x26,_0x8243e0:0x8c,_0x2999cf:0xc3,_0x58e2ad:0x4d6},_0x493e68={_0x33f8e0:0x147,_0x587123:0x44},_0x47d69e={_0x3b780e:0x20,_0x284a89:0x4b,_0x4efbb1:0x57a};this[_0x1c28c8(_0x5ea32e._0x3bafe1,_0x5ea32e._0x481619,_0x5ea32e._0x5d2920,_0x5ea32e._0x5eae0d)]=_0x43be2f[_0x1c28c8(0x17d,_0x5ea32e._0x237a85,0x131,_0x5ea32e._0x5e381a)],this['modelIdentity']=_0x43be2f[_0x1c28c8(-_0x5ea32e._0x1115bc,-_0x5ea32e._0x167a5c,-_0x5ea32e._0x1602be,-_0x5ea32e._0x4eff47)]??modelIdentityFromParts(void 0x0,this[_0x56fe77(0x749,_0x5ea32e._0x55212b,0x5d7,_0x5ea32e._0x311c12)]);function _0x56fe77(_0xd7ff87,_0x49799a,_0x1e5828,_0x218531){return _0x5276b1(_0xd7ff87,_0x49799a-_0x47d69e._0x3b780e,_0x1e5828-_0x47d69e._0x284a89,_0x218531-_0x47d69e._0x4efbb1);}this['maxTokens']=_0x43be2f['maxTokens'],this[_0x1c28c8(-0x10b,0x90,-0x116,-_0x5ea32e._0x25aca1)]=_0x43be2f[_0x1c28c8(-0xce,0x13,-0x123,-0x4d)]?structuredClone(_0x43be2f['reasoning']):void 0x0,this[_0x1c28c8(_0x5ea32e._0x1b8330,-_0x5ea32e._0x4aa726,-_0x5ea32e._0x6cca25,-0x9c)]=_0x43be2f[_0x1c28c8(-0x5f,-_0x5ea32e._0x9a8550,-_0x5ea32e._0x40b7a2,-_0x5ea32e._0x11b8c3)],this['baseUrl']=_0x43be2f[_0x56fe77(_0x5ea32e._0x339c56,0x41b,_0x5ea32e._0x2bbf93,0x4bc)],this[_0x1c28c8(_0x5ea32e._0x399610,-_0x5ea32e._0x262539,-_0x5ea32e._0x1823c5,-_0x5ea32e._0x3a7e87)]=_0x43be2f[_0x56fe77(0x54a,_0x5ea32e._0x387f00,0x487,0x547)]??globalThis['fetch'],this['providerAdapter']=_0x43be2f['providerAdapter'],this[_0x1c28c8(0x4,-0x2e,_0x5ea32e._0x1823c5,0x4f)]=_0x43be2f['requestMutators']??[],this['router']=_0x43be2f['router'],this[_0x56fe77(_0x5ea32e._0x4aac1c,_0x5ea32e._0x42675a,_0x5ea32e._0x4c7b29,0x4cf)]=_0x43be2f[_0x1c28c8(-0x5c,-_0x5ea32e._0x5a9291,-_0x5ea32e._0x30c090,-0xef)]??(_0x43be2f[_0x1c28c8(-0x1ed,-0x1ed,-0xa0,-_0x5ea32e._0x2e1934)]?new ProviderSessionManager(_0x43be2f[_0x56fe77(0x4a1,_0x5ea32e._0x312684,_0x5ea32e._0x55900e,_0x5ea32e._0x1e17a8)]):void 0x0),this[_0x1c28c8(_0x5ea32e._0x254b66,_0x5ea32e._0x8243e0,_0x5ea32e._0x2999cf,-0x16)]=_0x43be2f[_0x1c28c8(0x39,-0xc2,0x6b,-0x16)]??createDefaultWebSocketFactory();function _0x1c28c8(_0x564161,_0x2c7ed3,_0x317fc1,_0x432c5a){return _0x54ac71(_0x564161-_0x493e68._0x33f8e0,_0x2c7ed3,_0x432c5a- -0x441,_0x432c5a-_0x493e68._0x587123);}for(const _0x2e7ea4 of _0x43be2f[_0x56fe77(0x43e,0x545,0x4d3,_0x5ea32e._0x58e2ad)]){this['surfaces']['set'](_0x2e7ea4['id'],_0x2e7ea4);}}[_0x54ac71(0x45a,0x45d,0x3ab,0x3fc)](_0x192cfe,_0x410080){const _0x47ea5c={_0x2cc5cc:0x99,_0x2f9f34:0xed},_0x2b343a={_0x341022:0x74,_0x279302:0xad};function _0x436175(_0x2e377e,_0x1ccba4,_0x181d64,_0x322aa9){return _0x5276b1(_0x2e377e,_0x1ccba4-0x123,_0x181d64-_0x2b343a._0x341022,_0x181d64-_0x2b343a._0x279302);}return this[_0x436175(_0x47ea5c._0x2cc5cc,0x1ed,0x14f,_0x47ea5c._0x2f9f34)](_0x192cfe,_0x410080);}['stream'](_0x594f17,_0x5d9580){const _0x43d6e1={_0x32bb56:0x62},_0x29a715={_0x235f08:0x1ce,_0x5b0ea1:0x126};function _0x50c236(_0x5e56d2,_0xc6e9f4,_0x39bf8c,_0x4b2f75){return _0x5276b1(_0x39bf8c,_0xc6e9f4-_0x29a715._0x235f08,_0x39bf8c-_0x29a715._0x5b0ea1,_0x4b2f75- -0x7c);}return this[_0x50c236(-0xdc,_0x43d6e1._0x32bb56,0x59,-0x8)](_0x594f17,_0x5d9580);}async[_0x5276b1(0xf5,0x10e,0x8c,0xa2)](_0x348ec7,_0x1b0eb6){const _0x79dbf8={_0x502e3b:0x49f,_0x3596b5:0x3bb,_0x2e6fe7:0x45a,_0x50b1d6:0xd1,_0x4651da:0xa6,_0x2de8fd:0x24},_0xfec2db={_0x48e8ff:0x2,_0x36ae9c:0x31d},_0x457b3c={_0x44d0e8:0x492};function _0x14b014(_0x1325a7,_0x91e97f,_0xf1e590,_0x2ecff4){return _0x5276b1(_0x1325a7,_0x91e97f-0x1ad,_0xf1e590-0xaf,_0x91e97f-_0x457b3c._0x44d0e8);}const _0x561f96=this[_0x14b014(0x505,_0x79dbf8._0x502e3b,_0x79dbf8._0x3596b5,_0x79dbf8._0x2e6fe7)](_0x348ec7);function _0xcddf48(_0x11af04,_0x1590f8,_0x135956,_0x1247ea){return _0x54ac71(_0x11af04-_0xfec2db._0x48e8ff,_0x1590f8,_0x11af04- -_0xfec2db._0x36ae9c,_0x1247ea-0x123);}const _0x50bacd=await this[_0xcddf48(_0x79dbf8._0x50b1d6,_0x79dbf8._0x4651da,0x80,-_0x79dbf8._0x2de8fd)]['selectSurface'](_0x561f96,{'mode':'complete'});return this[_0xcddf48(0x1bf,0x157,0x243,0x299)](_0x561f96,_0x50bacd,_0x1b0eb6);}async*['streamViaRouter'](_0x5775b4,_0x437608){const _0x17a58b={_0x33e0da:0x1a0,_0x50624f:0xb9,_0x2bfb0a:0x161,_0x19ff99:0x72,_0x1d3073:0xee},_0x1c7142={_0x308229:0x139,_0x453b75:0x335,_0xa8c4dd:0x42},_0x4277e8=this['applyModelDefaults'](_0x5775b4);function _0x431a38(_0x2ff08e,_0x3e2b9e,_0x4655e9,_0x42a797){return _0x54ac71(_0x2ff08e-_0x1c7142._0x308229,_0x3e2b9e,_0x4655e9- -_0x1c7142._0x453b75,_0x42a797-_0x1c7142._0xa8c4dd);}const _0x4cbd6f=await this[_0x431a38(_0x17a58b._0x33e0da,0x105,_0x17a58b._0x50624f,_0x17a58b._0x2bfb0a)]['selectSurface'](_0x4277e8,{'mode':_0x431a38(0x11e,_0x17a58b._0x19ff99,_0x17a58b._0x1d3073,0x124)});function _0x22657a(_0x3148ce,_0x37e075,_0x2f32b9,_0x6a46b8){return _0x54ac71(_0x3148ce-0x1f3,_0x37e075,_0x2f32b9-0x28,_0x6a46b8-0x161);}yield*this['streamViaSurface'](_0x4277e8,_0x4cbd6f,_0x437608);}async['completeViaSurface'](_0x341854,_0x99a673,_0x2c1879){const _0x217182={_0xc2653c:0x1fa,_0x52a36e:0x2dd,_0x7c07f:0x2cc,_0x4c7b8d:0x725,_0x1fbf06:0x71b,_0x12c401:0x6db,_0x2a5ec6:0x587,_0xfd1aed:0x64d,_0x163640:0x695,_0x5295a9:0x6b9,_0x5de93f:0x6a5,_0x590888:0x665,_0x2eed65:0x759,_0x40d8ec:0x68b,_0x2482ff:0x251,_0x1239bb:0x259,_0x1aa1f6:0x19a,_0x319fbe:0x254,_0x4c6141:0x265,_0x10a6f0:0x32a,_0x482cfa:0x368,_0x442801:0x2ec,_0x289963:0x596,_0x45cdc3:0x44c,_0x145aa7:0x2d0,_0x4dc11e:0x39e,_0x298d71:0x5d0,_0x2f4be4:0x647},_0x19c321={_0x56550f:0xb2,_0x48dbe6:0x21a,_0x476b45:0x13e},_0x2acf1e={_0x522190:0x2d0};function _0x17d37c(_0x190ec0,_0x9bd941,_0x6f4801,_0x133cb4){return _0x5276b1(_0x133cb4,_0x9bd941-0x172,_0x6f4801-0xf5,_0x6f4801-_0x2acf1e._0x522190);}const _0xd33ae4=this[_0x17d37c(0x2cc,_0x217182._0xc2653c,_0x217182._0x52a36e,_0x217182._0x7c07f)](_0x341854),_0x4e59c5=this[_0x54c732(_0x217182._0x4c7b8d,0x73a,_0x217182._0x4c7b8d,0x6b1)](_0x99a673);if(_0x4e59c5[_0x54c732(_0x217182._0x1fbf06,_0x217182._0x12c401,_0x217182._0x2a5ec6,_0x217182._0xfd1aed)]==='http-json'){const _0x3e935a=await this['sendHttpSurfaceRequest'](_0xd33ae4,_0x4e59c5,![],_0x2c1879);if(!_0x3e935a['ok'])throw await this[_0x54c732(_0x217182._0x163640,0x5cd,_0x217182._0x5295a9,0x5f8)](_0x3e935a);if(!_0x4e59c5[_0x54c732(_0x217182._0x5de93f,0x50a,_0x217182._0x590888,0x5e8)])throw new Error(_0x54c732(_0x217182._0x2eed65,_0x217182._0x40d8ec,0x71c,0x6e5)+_0x99a673+_0x17d37c(_0x217182._0x7c07f,0x15e,_0x217182._0x2482ff,_0x217182._0x1239bb));return _0x4e59c5['parseResponse'](await _0x3e935a[_0x17d37c(0x212,0x25c,0x208,0x189)](),_0xd33ae4);}let _0x5e8850;for await(const _0x406640 of this[_0x17d37c(_0x217182._0x1aa1f6,0x31b,_0x217182._0x319fbe,_0x217182._0x4c6141)](_0xd33ae4,_0x99a673,_0x2c1879)){_0x406640[_0x17d37c(0x2fe,_0x217182._0x10a6f0,_0x217182._0x482cfa,0x2ff)]===_0x17d37c(0x2e6,_0x217182._0x442801,0x2f9,0x32f)&&(_0x5e8850=_0x406640[_0x54c732(_0x217182._0x289963,0x559,_0x217182._0x45cdc3,0x535)]);}if(!_0x5e8850)throw new Error(_0x17d37c(0x41c,_0x217182._0x145aa7,_0x217182._0x4dc11e,0x3fc)+_0x99a673+_0x54c732(0x613,0x5f7,_0x217182._0x298d71,_0x217182._0x2f4be4));function _0x54c732(_0x2680ae,_0x54bd4f,_0x20d261,_0x10bf16){return _0x54ac71(_0x2680ae-_0x19c321._0x56550f,_0x20d261,_0x10bf16-_0x19c321._0x48dbe6,_0x10bf16-_0x19c321._0x476b45);}return _0x5e8850;}async*[_0x5276b1(-0xfe,-0xa2,0x13,-0x7c)](_0x27f11,_0x534ffc,_0x221136){const _0x2eaafe={_0x28a979:0x1b4,_0x4c9527:0x93,_0x14683c:0x14c,_0x3552fa:0x71,_0x2ce993:0x43e,_0x583ff7:0x376,_0x33b8dc:0x325,_0x197e26:0x448,_0x52cdfc:0x301,_0x2e06ab:0x276},_0x563998={_0x2f009e:0x10e,_0x3cd9e5:0x3f9},_0x38c48f={_0x286acc:0x1,_0x4374a9:0x90},_0xfdb3d3=this['applyModelDefaults'](_0x27f11);function _0x568aa6(_0x4ded75,_0x4f7c71,_0x305d53,_0x1d5323){return _0x54ac71(_0x4ded75-_0x38c48f._0x286acc,_0x4f7c71,_0x4ded75- -_0x38c48f._0x4374a9,_0x1d5323-0x15c);}const _0x8d4846=this[_0x568aa6(0x407,0x3b4,0x42d,0x3d9)](_0x534ffc);if(_0x8d4846['transport']===_0x413af5(-0x25,-_0x2eaafe._0x28a979,-0xf3,-_0x2eaafe._0x4c9527)){const _0x501584=await this[_0x413af5(_0x2eaafe._0x14683c,0x12a,0xe3,0x190)](_0xfdb3d3,_0x534ffc,_0x221136);yield{'type':'done','response':_0x501584};return;}if(_0x8d4846[_0x413af5(-0x54,0x36,0x3a,-_0x2eaafe._0x3552fa)]===_0x568aa6(0x3e9,_0x2eaafe._0x2ce993,0x397,0x401)){yield*this[_0x568aa6(_0x2eaafe._0x583ff7,_0x2eaafe._0x33b8dc,_0x2eaafe._0x197e26,0x447)](_0xfdb3d3,_0x8d4846,_0x221136);return;}function _0x413af5(_0xfe357d,_0x3aacfc,_0x2f5d55,_0x776f8a){return _0x54ac71(_0xfe357d-_0x563998._0x2f009e,_0x3aacfc,_0x2f5d55- -_0x563998._0x3cd9e5,_0x776f8a-0x1c3);}yield*this['streamWebSocketSurface'](_0xfdb3d3,_0x8d4846,_0x221136?.[_0x568aa6(_0x2eaafe._0x52cdfc,0x36c,0x2b4,_0x2eaafe._0x2e06ab)]);}async['sendRawRequest'](_0x5f010d){const _0x3e2313={_0x1db8e4:0x1db,_0x258e40:0x2cc},_0x329df9={_0x51f23b:0x14b,_0x54e6f9:0x16b,_0x5a627f:0x1ed,_0x1a28d9:0x19a,_0x150d2e:0x6,_0x110392:0x50,_0x1a72ac:0x91,_0x50fc2a:0x185,_0x899703:0x20b,_0xdf722d:0xc5,_0x11f68d:0x20a,_0x4bbde3:0x163,_0x7187ad:0x21a,_0x36dfdb:0x2a1,_0x37c053:0x2bf,_0x158274:0x10b,_0x5007c3:0xf3,_0x22577d:0x223,_0x3c19c8:0x2f1,_0x180a7a:0x1c4,_0xd51b39:0x144,_0x5c7b3:0x120,_0x173188:0x187,_0x3ace49:0xcb,_0x29abe3:0x32b,_0x39ea6d:0x2f3,_0xdfa428:0x35a,_0x5d5f65:0x1d9},_0x4cd681={_0x28fb54:0x45},_0x2d83df=async()=>{const _0x4b5874=this[_0x5b2abc(-_0x329df9._0x51f23b,-_0x329df9._0x54e6f9,-0x118,-0x1c3)]?await this[_0x573568(_0x329df9._0x5a627f,0xf0,_0x329df9._0x1a28d9,0xfa)][_0x5b2abc(-_0x329df9._0x150d2e,_0x329df9._0x110392,-0x92,-_0x329df9._0x1a72ac)](_0x5f010d['signal']):void 0x0;function _0x573568(_0x4ce76a,_0x4475fa,_0x424fd7,_0x3d868c){return _0x4c72(_0x424fd7- -_0x4cd681._0x28fb54,_0x4ce76a);}const _0x126adf=this[_0x573568(_0x329df9._0x50fc2a,0x10e,0x1b6,0x269)][_0x573568(0x1fe,0x23b,0x1cc,_0x329df9._0x899703)](this[_0x5b2abc(-0x14a,-0x1b4,-_0x329df9._0xdf722d,0x10)],_0x4b5874);if(!_0x126adf)throw this[_0x5b2abc(-_0x329df9._0x11f68d,-0x1a2,-_0x329df9._0x4bbde3,-0x161)]();const _0x2564e6=await this[_0x573568(_0x329df9._0x7187ad,0x210,0x2f6,0x354)]({'body':_0x5f010d[_0x573568(0x28a,_0x329df9._0x36dfdb,0x207,_0x329df9._0x37c053)],'credential':_0x126adf,'session':_0x4b5874,'stream':![]},{'accept':_0x5f010d[_0x573568(_0x329df9._0x158274,0x122,0x144,_0x329df9._0x5007c3)]??'application/json','includeContentType':_0x5f010d[_0x573568(0x13f,0x158,0x168,0x1a9)]==='POST'});function _0x5b2abc(_0x5b594f,_0x502822,_0x1f8185,_0x42709c){return _0x4c72(_0x1f8185- -0x2f7,_0x5b594f);}return this[_0x573568(0x301,0x181,_0x329df9._0x22577d,_0x329df9._0x3c19c8)](''+this[_0x5b2abc(-_0x329df9._0x180a7a,-0x134,-0xfc,-0x1b6)][_0x5b2abc(-0x15c,-0x110,-_0x329df9._0xd51b39,-_0x329df9._0x5c7b3)](this[_0x573568(0x1c2,0xf7,_0x329df9._0x173188,0x204)],_0x4b5874)+_0x5f010d[_0x5b2abc(-0x16e,-0xec,-_0x329df9._0x3ace49,-0x4)],{'method':_0x5f010d['method'],'headers':_0x2564e6,..._0x5f010d['body']!==void 0x0?{'body':JSON[_0x573568(_0x329df9._0x29abe3,0x380,_0x329df9._0x39ea6d,_0x329df9._0xdfa428)](_0x5f010d['body'])}:{},'signal':_0x5f010d[_0x573568(_0x329df9._0x4bbde3,0x21b,_0x329df9._0x5d5f65,0x18a)]});};function _0x50319d(_0x12f851,_0x7a73e9,_0x45c7a3,_0x4b7cee){return _0x5276b1(_0x45c7a3,_0x7a73e9-0x112,_0x45c7a3-0x6,_0x12f851-0x18f);}return await this[_0x50319d(0x1f1,0x112,_0x3e2313._0x1db8e4,_0x3e2313._0x258e40)](_0x2d83df,_0x5f010d);}[_0x54ac71(0x4cc,0x44e,0x3e6,0x3ed)](_0x143764,_0x302e2a){const _0x18d642={_0x1d1fdc:0x180,_0x582785:0x72,_0x3f703c:0x6b,_0x253445:0xe5,_0x29da62:0xe,_0x52eb7a:0x100,_0x415fda:0x14,_0x12dd0b:0x66,_0x2efad6:0x49},_0xe1c278={_0xbfb42f:0x14e,_0x456281:0xb1},_0x4d6660={_0x285974:0x130,_0x6b32fd:0x3};function _0x30ba22(_0x22b654,_0x371067,_0x3e2fe8,_0x18b26b){return _0x5276b1(_0x3e2fe8,_0x371067-_0x4d6660._0x285974,_0x3e2fe8-0x155,_0x371067- -_0x4d6660._0x6b32fd);}const _0x238324=_0x143764?.[_0x4864e3(-0x165,-_0x18d642._0x1d1fdc,-0x151,-0x65)][_0x30ba22(-0x13b,-_0x18d642._0x582785,-0x9,_0x18d642._0x3f703c)]('retry-after');if(_0x238324){const _0x1d4055=Number(_0x238324);if(Number[_0x30ba22(_0x18d642._0x253445,_0x18d642._0x29da62,0xf,0xa2)](_0x1d4055)&&_0x1d4055>=0x0)return _0x1d4055*0x3e8;const _0x2b9b95=Date[_0x30ba22(-_0x18d642._0x52eb7a,-0x15,-0xbb,-0xda)](_0x238324);if(Number['isFinite'](_0x2b9b95))return Math[_0x4864e3(-_0x18d642._0x415fda,-_0x18d642._0x12dd0b,-_0x18d642._0x2efad6,-0xab)](0x0,_0x2b9b95-Date['now']());}const _0x106843=DEFAULT_RETRY_DELAY_MS*0x2**_0x302e2a;if(_0x106843<RETRY_DELAY_STEP_CAP_MS)return _0x106843;function _0x4864e3(_0x22c1ab,_0x21ac16,_0x327c18,_0x472e0a){return _0x5276b1(_0x21ac16,_0x21ac16-_0xe1c278._0xbfb42f,_0x327c18-0x1c0,_0x327c18- -_0xe1c278._0x456281);}return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x302e2a-0x5);}[_0x54ac71(0x384,0x40a,0x3aa,0x3de)](_0xf960f6){const _0xdee1e0={_0x2002d8:0xfe};function _0x46a8ef(_0x564eb9,_0x16ca18,_0x4da671,_0x11097e){return _0x5276b1(_0x564eb9,_0x16ca18-0x1be,_0x4da671-_0xdee1e0._0x2002d8,_0x4da671-0x178);}return RETRYABLE_HTTP_STATUSES['has'](_0xf960f6[_0x46a8ef(0x2b,0x12a,0xae,-0x22)]);}[_0x54ac71(0x2d0,0x319,0x329,0x388)](_0x5c7fec){return!isAbortError(_0x5c7fec)&&_0x5c7fec instanceof TypeError;}[_0x5276b1(0x198,0xe0,0xa9,0xb3)](_0x1e29ad){return this['shouldRetryRequestError'](_0x1e29ad)||isRetryableProviderStreamEventError(_0x1e29ad);}async[_0x5276b1(-0xb2,-0x13c,-0x42,-0x65)](_0x35eb1f,_0x5692a0){throwIfAborted(_0x5692a0),await new Promise((_0x390b02,_0x24ded3)=>{const _0x58405f={_0xe8f344:0x54f,_0x540f30:0x453};let _0x3347f5=![];const _0x504da6=addAbortListener(_0x5692a0,()=>{function _0x3592f2(_0x107d62,_0x5f5287,_0x34361f,_0x647b7f){return _0x4c72(_0x647b7f-0x2c2,_0x34361f);}if(_0x3347f5)return;_0x3347f5=!![],clearTimeout(_0x3b5e1e),_0x24ded3(toAbortError(_0x5692a0?.[_0x3592f2(_0x58405f._0xe8f344,_0x58405f._0x540f30,0x415,0x49f)]));}),_0x3b5e1e=setTimeout(()=>{_0x3347f5=!![],_0x504da6(),_0x390b02();},_0x35eb1f);}),throwIfAborted(_0x5692a0);}async[_0x5276b1(0x32,0xae,0x98,0x62)](_0xdd8571,_0x50b7fd={}){const _0x448b5d={_0x22b475:0xcc,_0x12fc7f:0x12,_0x39d0a9:0x1,_0x2b4c2f:0x81,_0x14675a:0x12,_0x3b3269:0x2a6,_0x153ddf:0x3bb,_0x1a8820:0x3a4,_0x3e42e4:0x42c,_0x399adc:0x356,_0x194e04:0x4e,_0x54671b:0x3f3},_0x3caa57={_0x393a8f:0x109,_0x18bb30:0x42},{signal:_0x3f4f3e}=_0x50b7fd;function _0xe1e46b(_0x590276,_0x43b19a,_0x393ed5,_0x4218dd){return _0x54ac71(_0x590276-_0x3caa57._0x393a8f,_0x43b19a,_0x393ed5- -_0x3caa57._0x18bb30,_0x4218dd-0x149);}let _0x12efa6=![];function _0x3baafd(_0x40132f,_0x1b0a7d,_0xbd265b,_0x4e5f59){return _0x5276b1(_0x1b0a7d,_0x1b0a7d-0x199,_0xbd265b-0x13d,_0xbd265b-0xbd);}for(let _0x19de1c=0x0;_0x19de1c<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x19de1c+=0x1){throwIfAborted(_0x3f4f3e);try{const _0x7a7d50=await _0xdd8571();if(_0x7a7d50['status']===0x191&&this[_0x3baafd(_0x448b5d._0x22b475,-0xe1,_0x448b5d._0x12fc7f,-0x16)]&&!_0x12efa6){_0x12efa6=!![],this[_0x3baafd(-_0x448b5d._0x39d0a9,_0x448b5d._0x2b4c2f,_0x448b5d._0x14675a,0x5e)]['invalidate']();continue;}if(!this[_0xe1e46b(0x444,_0x448b5d._0x3b3269,0x368,0x277)](_0x7a7d50)||_0x19de1c===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x7a7d50;const _0x4dad36=this[_0xe1e46b(0x437,_0x448b5d._0x153ddf,_0x448b5d._0x1a8820,0x3fa)](_0x7a7d50,_0x19de1c);await this[_0xe1e46b(0x3eb,_0x448b5d._0x3e42e4,_0x448b5d._0x399adc,0x386)](_0x4dad36,_0x3f4f3e);}catch(_0x41e2da){if(!this['shouldRetryRequestError'](_0x41e2da)||_0x19de1c===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x41e2da;const _0x14c080=this[_0x3baafd(0x168,_0x448b5d._0x194e04,0xa6,-0x39)](void 0x0,_0x19de1c);await this[_0xe1e46b(0x3d3,0x3f2,0x356,0x37a)](_0x14c080,_0x3f4f3e);}}throw new Error(_0xe1e46b(0x402,0x437,_0x448b5d._0x54671b,0x3f4));}['createMissingCredentialError'](){const _0x159567={_0x2d6901:0x49,_0x450c3b:0x101},_0x6744c={_0x2b16b3:0xfd,_0x26ea74:0x1f7};function _0x2c5e23(_0xba5d12,_0x549e34,_0x595f0c,_0x14e319){return _0x5276b1(_0xba5d12,_0x549e34-0x75,_0x595f0c-_0x6744c._0x2b16b3,_0x595f0c-_0x6744c._0x26ea74);}return this['providerAdapter'][_0x2c5e23(_0x159567._0x2d6901,0xb5,_0x159567._0x450c3b,0x21)]();}async[_0x5276b1(0xea,0xe,-0x29,0xb1)](_0x56f9e8,_0x3c93e0){const _0x5ceb71={_0x42e9b3:0x4f9},_0x163e23={_0x556428:0x1f,_0x139854:0x114};function _0x2a06aa(_0x10da98,_0x533f82,_0x327887,_0x45f56e){return _0x54ac71(_0x10da98-_0x163e23._0x556428,_0x533f82,_0x327887-0x110,_0x45f56e-_0x163e23._0x139854);}return await this[_0x2a06aa(_0x5ceb71._0x42e9b3,0x46c,0x47e,0x555)]['createHeaders'](_0x56f9e8,_0x3c93e0);}[_0x5276b1(0x13d,-0x65,0x14e,0x8d)](_0x5e80af){const _0x5aacd6={_0x42241d:0xbd,_0x19b7c5:0xaa,_0x1b351b:0x5f},_0x416c16={_0xdca8ac:0x14};function _0x4015b0(_0x254556,_0x483d01,_0x33cc1c,_0x36f127){return _0x54ac71(_0x254556-0x169,_0x36f127,_0x483d01- -0x42b,_0x36f127-0x1c8);}function _0x60f0bd(_0x1942c5,_0x4f39bf,_0x3a975f,_0x2aecc2){return _0x54ac71(_0x1942c5-_0x416c16._0xdca8ac,_0x4f39bf,_0x1942c5- -0x2de,_0x2aecc2-0x104);}return this[_0x4015b0(0x20,-_0x5aacd6._0x42241d,-0x70,-_0x5aacd6._0x19b7c5)][_0x4015b0(0x77,_0x5aacd6._0x1b351b,-0x7,0xe1)](_0x5e80af);}async[_0x54ac71(0x426,0x47b,0x3de,0x46d)](_0x177f15){const _0x16ff26={_0x54570e:0x12d,_0x22c013:0x94,_0x28c4c2:0x1b7,_0x4d3405:0x150,_0x5a3d4c:0x91},_0x15bff1={_0x539179:0x22},_0x319766={_0x1b20e3:0x1b0,_0x185826:0x7e};function _0x44e9ec(_0x253257,_0x158305,_0x1fcde8,_0x2b364a){return _0x54ac71(_0x253257-_0x319766._0x1b20e3,_0x1fcde8,_0x253257- -0x49b,_0x2b364a-_0x319766._0x185826);}function _0x5ca18a(_0x34dbdf,_0x14f21d,_0x49d810,_0x5ebb94){return _0x54ac71(_0x34dbdf-0x107,_0x49d810,_0x5ebb94- -_0x15bff1._0x539179,_0x5ebb94-0xd4);}return await this[_0x44e9ec(-_0x16ff26._0x54570e,-0x5e,-_0x16ff26._0x22c013,-_0x16ff26._0x28c4c2)][_0x44e9ec(-0xbd,-0x17b,-_0x16ff26._0x4d3405,-_0x16ff26._0x5a3d4c)](_0x177f15);}[_0x5276b1(0x2,-0x3e,0x183,0x9a)](_0x3f8b72){const _0x5c4358={_0x55372c:0x399,_0x279e29:0x4b7,_0x5995b5:0x45a,_0x3783e1:0x4a3,_0x4e4313:0x485,_0x208cf7:0x457,_0x20d02a:0x4fe,_0x152b35:0x54a},_0x33fbb0={_0x4b2e0c:0x101},_0x582fa9={_0x1004c0:0x8b},_0x3009ff=this[_0xe0a657(_0x5c4358._0x55372c,_0x5c4358._0x279e29,_0x5c4358._0x5995b5,0x4bc)][_0x3b02da(_0x5c4358._0x3783e1,_0x5c4358._0x4e4313,0x485,_0x5c4358._0x208cf7)](_0x3f8b72);function _0x3b02da(_0x200141,_0x1efcf6,_0x35c181,_0x35fb64){return _0x54ac71(_0x200141-_0x582fa9._0x1004c0,_0x35fb64,_0x200141-0x115,_0x35fb64-0x14d);}function _0xe0a657(_0x2a9b8e,_0x296dbf,_0x59e461,_0x356d6a){return _0x54ac71(_0x2a9b8e-0x19,_0x2a9b8e,_0x59e461-_0x33fbb0._0x4b2e0c,_0x356d6a-0x12c);}if(!_0x3009ff)throw new Error(_0xe0a657(_0x5c4358._0x20d02a,0x48a,_0x5c4358._0x152b35,0x5f7)+_0x3f8b72);return _0x3009ff;}async['prepareChatRequest'](_0xaa6db0,_0x1a27af){const _0x306dcc={_0x2d0564:0x2b1,_0x261191:0x33f,_0x49015e:0x201,_0x21441b:0x63d,_0x10efb7:0x5d2,_0x531e63:0x580,_0x2fdd9b:0x5b6,_0x14e2a0:0x67d,_0x2e46b7:0x2e3,_0x4a1dac:0x23f,_0xb5db45:0x21b,_0x23a48d:0x2a1,_0x4bf12a:0x1eb,_0x27407a:0x42e,_0x78783d:0x36a},_0x4a117e={_0x592536:0xfe,_0x53a49a:0x5d8},_0x563f0c={_0x257ba7:0xc8},_0x194be0=toModelRequest(_0xaa6db0),_0x7100d3=await prepareProviderRequest(_0x194be0,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x1a27af});function _0x5e300d(_0x54033d,_0x2c6c8f,_0x34bb16,_0x611c38){return _0x54ac71(_0x54033d-0x108,_0x2c6c8f,_0x34bb16- -_0x563f0c._0x257ba7,_0x611c38-0xf4);}const _0x2d823c=toChatRequest(_0x7100d3[_0x5e300d(0x213,0x1bc,_0x306dcc._0x2d0564,0x226)]),_0x91b9c8=this[_0x5e300d(_0x306dcc._0x261191,_0x306dcc._0x49015e,0x2a6,0x218)][_0x526d2c(_0x306dcc._0x21441b,_0x306dcc._0x10efb7,0x55f,0x58a)](this[_0x526d2c(0x5f6,0x63a,_0x306dcc._0x531e63,0x4fc)],_0x7100d3[_0x526d2c(_0x306dcc._0x2fdd9b,0x569,0x60d,_0x306dcc._0x14e2a0)]);if(!_0x91b9c8)throw this[_0x5e300d(_0x306dcc._0x2e46b7,0x2b6,_0x306dcc._0x4a1dac,_0x306dcc._0xb5db45)]();function _0x526d2c(_0x162520,_0x5ddcaf,_0x13b75a,_0x50ca52){return _0x5276b1(_0x50ca52,_0x5ddcaf-_0x4a117e._0x592536,_0x13b75a-0x11f,_0x13b75a-_0x4a117e._0x53a49a);}return{'baseUrl':this['providerAdapter']['resolveBaseUrl'](this[_0x5e300d(0x19d,_0x306dcc._0x23a48d,0x277,_0x306dcc._0x4bf12a)],_0x7100d3['session']),'credential':_0x91b9c8,'request':_0x2d823c,'session':_0x7100d3[_0x5e300d(_0x306dcc._0x27407a,0x45d,_0x306dcc._0x78783d,0x41c)]};}[_0x5276b1(0x89,-0x6c,-0x86,0xd)](_0xffd5bc){const _0x32dbb5={_0x458218:0x18c,_0x4bf745:0x198},_0x20e6aa={_0x29cd05:0x1d6},_0x33514c={_0x3c0ddc:0x184,_0x2e73e6:0x251};function _0x5dd07d(_0x344fd6,_0x42ba9f,_0x1cdb27,_0x305ce6){return _0x5276b1(_0x42ba9f,_0x42ba9f-0x105,_0x1cdb27-_0x33514c._0x3c0ddc,_0x1cdb27-_0x33514c._0x2e73e6);}function _0x70e226(_0x4ed45e,_0x1ba386,_0x5ef9cb,_0x432180){return _0x54ac71(_0x4ed45e-0x184,_0x5ef9cb,_0x1ba386- -0x227,_0x432180-_0x20e6aa._0x29cd05);}return{...structuredClone(_0xffd5bc),..._0xffd5bc[_0x70e226(0xf4,0x1cd,_0x32dbb5._0x458218,0x23e)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x70e226(0x193,0x1cd,0x2bb,_0x32dbb5._0x4bf745)])}:{}};}async['sendHttpSurfaceRequest'](_0x16f0d6,_0x5d93ae,_0x135629,_0x561637={},_0x441706=!![]){const _0x172290={_0x3369cb:0x2c},_0x2136c0={_0x49187e:0x4bc,_0x40b729:0x569,_0x211172:0x5ce,_0x22e8a5:0x5a6,_0xcd90d7:0x4ed,_0x53fcbd:0xb2,_0x4afe34:0x81,_0x4531de:0x9e,_0x9ae987:0x107,_0x27d7d6:0x51e,_0x4a91b6:0x5b8,_0xf888a7:0x4e4,_0x411b5f:0xb6,_0x11f086:0x17c,_0x19076e:0x1ff,_0x157b2e:0x56d,_0x34defb:0x5d3,_0x1bcfd6:0x5e,_0x48906d:0x14d,_0x5140be:0xc3,_0x2901ff:0x18e,_0x3c7893:0x1ea,_0x2dd7e8:0x1f9,_0x1bc34a:0x8f,_0x3c7f0e:0x124,_0x3c225e:0xe8,_0x3934f7:0x4d6,_0x247fd2:0x433,_0x275ba0:0x493,_0x4578d2:0x52d,_0x2413c2:0x451,_0x51fc51:0x4e3,_0x478183:0x5d6,_0x442d7d:0x199,_0x4f3359:0xc6,_0x21a193:0x1e5,_0x21dadd:0x119,_0x2d5099:0xd2,_0x36c625:0x156,_0x1da855:0x1a0,_0x296cc9:0x11e,_0x2a92da:0x8a,_0xe69117:0x12f,_0x16d96b:0x653,_0x3dd1ce:0x60d,_0x3ee4d3:0x59e},{signal:_0x1878f0}=_0x561637,_0x3b912d=async()=>{const _0x2c2ab5={_0x5ae052:0x382},_0x526224=await this[_0x43a3bc(0x4f7,0x581,_0x2136c0._0x49187e,_0x2136c0._0x40b729)](_0x16f0d6,_0x1878f0);let _0xa6edc7;try{_0xa6edc7=_0x5d93ae[_0x43a3bc(_0x2136c0._0x211172,_0x2136c0._0x22e8a5,0x51a,_0x2136c0._0xcd90d7)](_0x526224[_0x5758a0(-0x263,-_0x2136c0._0x53fcbd,-0x17c,-0x19f)]);}catch(_0x206b4d){if(_0x206b4d instanceof Error)throw new ProviderRequestConstructionError(_0x206b4d[_0x5758a0(-_0x2136c0._0x4afe34,-_0x2136c0._0x4531de,-0x139,-_0x2136c0._0x9ae987)]);throw _0x206b4d;}function _0x5758a0(_0x1da7f5,_0x39b92d,_0x1eafc8,_0x2d6d72){return _0x4c72(_0x1eafc8- -_0x2c2ab5._0x5ae052,_0x1da7f5);}function _0x43a3bc(_0x1855bd,_0x3afe28,_0x4ea7bb,_0x275bc2){return _0x4c72(_0x3afe28-0x27d,_0x1855bd);}if(!_0xa6edc7['path'])throw new ProviderRequestConstructionError('Surface\x20'+_0x5d93ae['id']+_0x5758a0(-0x84,-0x6b,-0xcd,0x17));const _0x41f66c=await this[_0x43a3bc(_0x2136c0._0x27d7d6,_0x2136c0._0x4a91b6,_0x2136c0._0xf888a7,0x531)]({'request':_0x526224[_0x5758a0(-0x1e0,-_0x2136c0._0x411b5f,-_0x2136c0._0x11f086,-_0x2136c0._0x19076e)],'body':_0xa6edc7[_0x43a3bc(0x511,0x4c9,0x55a,_0x2136c0._0x157b2e)],'credential':_0x526224[_0x43a3bc(_0x2136c0._0x34defb,0x51e,0x501,0x4e6)],'session':_0x526224[_0x5758a0(-_0x2136c0._0x1bcfd6,-_0x2136c0._0x48906d,-_0x2136c0._0x5140be,-0x4d)],'stream':_0x135629},{'accept':_0xa6edc7[_0x5758a0(-_0x2136c0._0x2901ff,-_0x2136c0._0x3c7893,-_0x2136c0._0x2dd7e8,-0x115)]??(_0x135629?_0x5758a0(-_0x2136c0._0x1bc34a,-_0x2136c0._0x3c7f0e,-0x175,-_0x2136c0._0x3c225e):_0x43a3bc(0x4c6,0x47e,0x475,_0x2136c0._0x3934f7)),'includeContentType':_0xa6edc7[_0x43a3bc(_0x2136c0._0x247fd2,0x4c9,_0x2136c0._0x275ba0,0x449)]!==void 0x0});for(const [_0x14f5ec,_0x47e339]of Object[_0x43a3bc(_0x2136c0._0x4578d2,0x455,_0x2136c0._0x2413c2,0x48a)](_0xa6edc7[_0x43a3bc(0x520,0x467,0x4f9,_0x2136c0._0x51fc51)]??{})){_0x41f66c['set'](_0x14f5ec,_0x47e339);}return this[_0x43a3bc(0x51a,0x4e5,_0x2136c0._0x478183,0x47c)](''+_0x526224[_0x5758a0(-_0x2136c0._0x442d7d,-_0x2136c0._0x4f3359,-0x1b6,-_0x2136c0._0x21a193)]+_0xa6edc7[_0x5758a0(-_0x2136c0._0x21dadd,-_0x2136c0._0x2d5099,-_0x2136c0._0x36c625,-_0x2136c0._0x1da855)],{'method':_0x5758a0(-_0x2136c0._0x296cc9,-0x8,-_0x2136c0._0x2a92da,-_0x2136c0._0xe69117),'headers':_0x41f66c,..._0xa6edc7['body']!==void 0x0?{'body':JSON[_0x43a3bc(_0x2136c0._0x16d96b,0x5b5,_0x2136c0._0x3dd1ce,_0x2136c0._0x3ee4d3)](_0xa6edc7['body'])}:{},'signal':_0x1878f0});};function _0x3d4e23(_0x1077f1,_0x447fbf,_0x5be304,_0x558d35){return _0x54ac71(_0x1077f1-0x10a,_0x558d35,_0x1077f1-0x225,_0x558d35-_0x172290._0x3369cb);}return _0x441706?await this[_0x3d4e23(0x684,0x5fc,0x601,0x6fa)](_0x3b912d,_0x561637):await _0x3b912d();}async*[_0x5276b1(0x9a,0xee,0xd6,0x9)](_0x4a1258,_0x205b2a,_0x3c759d={}){const _0x1c3acb={_0x38fa7a:0x166,_0x32c3d9:0xe9,_0x50eb8d:0x116,_0x473330:0x184,_0x79cfe:0x146,_0x23872e:0x1e,_0x6f4383:0xb6,_0x10e751:0xe9,_0x73612e:0x38,_0x24d880:0x104,_0x3622e8:0x25a,_0x466e9f:0x298,_0x33bf17:0x2e2,_0x9ba2fd:0x11e,_0x6b3246:0x1b8,_0x55b130:0xee,_0x5047a3:0x14e,_0x137a98:0x65,_0x4b7519:0xdc,_0x3f1c8e:0x60,_0x16a659:0x120,_0x5b58e4:0x2f1,_0x36c111:0xea,_0x5934db:0xab,_0x4dcae0:0xba,_0x420772:0x20b,_0x52244c:0x21f,_0x3059c2:0x103,_0x221740:0xb9,_0x1bf75a:0x85,_0x376a26:0x1cc,_0x281760:0x6f,_0x22c526:0x4,_0x16807f:0x9d,_0x42e4bc:0x142,_0x16333a:0x39,_0x4dc2d4:0x107,_0x235558:0xba,_0x319200:0x9f,_0x44ae12:0x17b,_0x3bcac0:0x17a,_0x5b8b03:0xfb},_0x262e69={_0x4f8069:0x1c6,_0x5e3d4b:0x85,_0x460df5:0x1e0},_0xa1f501={_0x2ad1d8:0x1c9},{signal:_0x6fff07}=_0x3c759d;function _0x3574ee(_0x76beda,_0x169d30,_0x11403b,_0x419670){return _0x54ac71(_0x76beda-0xcf,_0x11403b,_0x419670- -0x46b,_0x419670-_0xa1f501._0x2ad1d8);}let _0x644419=![];function _0xaecaac(_0x345e79,_0x43a54e,_0x444bbf,_0x4580d4){return _0x5276b1(_0x345e79,_0x43a54e-_0x262e69._0x4f8069,_0x444bbf-_0x262e69._0x5e3d4b,_0x43a54e-_0x262e69._0x460df5);}for(let _0x50ed74=0x0;_0x50ed74<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x50ed74+=0x1){let _0xf24ae8=![];try{const _0x49c45c=await this[_0xaecaac(0x1d1,_0x1c3acb._0x38fa7a,0x1d4,_0x1c3acb._0x32c3d9)](_0x4a1258,_0x205b2a,!![],_0x3c759d,![]);if(_0x49c45c[_0xaecaac(0xaf,_0x1c3acb._0x50eb8d,_0x1c3acb._0x473330,_0x1c3acb._0x79cfe)]===0x191&&this['sessionManager']&&!_0x644419){_0x644419=!![],this[_0x3574ee(-0x18a,-0xa2,-0x39,-0x119)][_0x3574ee(0x57,_0x1c3acb._0x23872e,_0x1c3acb._0x6f4383,0x10)]();continue;}if(!_0x49c45c['ok']){const _0xa5e6ff=await this['toApiError'](_0x49c45c);if(!this['shouldRetryResponse'](_0x49c45c)||_0x50ed74===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0xa5e6ff;const _0x28f685=this['getRetryDelayMs'](_0x49c45c,_0x50ed74),_0x25b0fd={'type':'provider_retry','attempt':_0x50ed74+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0xa5e6ff[_0x3574ee(-_0x1c3acb._0x10e751,_0x1c3acb._0x73612e,-_0x1c3acb._0x24d880,-0xaf)],'delayMs':_0x28f685,'reason':_0xaecaac(_0x1c3acb._0x3622e8,_0x1c3acb._0x466e9f,_0x1c3acb._0x33bf17,0x343),'status':_0x49c45c[_0xaecaac(_0x1c3acb._0x9ba2fd,0x116,0x50,0x1e7)]};yield _0x25b0fd,await this[_0x3574ee(-0x1bd,-_0x1c3acb._0x6b3246,-0x18f,-0xd3)](_0x28f685,_0x6fff07);continue;}const _0x27c437=_0x205b2a[_0x3574ee(-0x22b,-_0x1c3acb._0x55b130,-0x1a2,-_0x1c3acb._0x5047a3)]?.(_0x4a1258);if(!_0x27c437?.[_0x3574ee(0xf2,0xe0,0xef,_0x1c3acb._0x137a98)])throw new Error(_0x3574ee(0x119,0xfb,_0x1c3acb._0x4b7519,_0x1c3acb._0x3f1c8e)+_0x205b2a['id']+_0xaecaac(0x25c,0x214,_0x1c3acb._0x16a659,_0x1c3acb._0x5b58e4));for await(const _0x75738a of iterateSseEvents(_0x49c45c,_0x6fff07)){const _0x4dbd6b=_0x27c437[_0x3574ee(_0x1c3acb._0x36c111,0x66,-0x1e,_0x1c3acb._0x137a98)](_0x75738a);for(const _0x203449 of _0x4dbd6b){_0xf24ae8=!![],yield _0x203449;}}yield{'type':'done','response':_0x27c437[_0x3574ee(-_0x1c3acb._0x5934db,0xca,_0x1c3acb._0x4dcae0,0xa)]()};return;}catch(_0x3ec2e8){if(_0xf24ae8||!this[_0xaecaac(0x1de,0x293,_0x1c3acb._0x420772,_0x1c3acb._0x52244c)](_0x3ec2e8)||_0x50ed74===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x3ec2e8;const _0x21e390=this[_0x3574ee(-0x17a,-_0x1c3acb._0x3059c2,-_0x1c3acb._0x221740,-_0x1c3acb._0x1bf75a)](void 0x0,_0x50ed74),_0x397680={'type':_0xaecaac(0x1cc,_0x1c3acb._0x376a26,0x298,0xf0),'attempt':_0x50ed74+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x3ec2e8 instanceof Error?_0x3ec2e8[_0x3574ee(-_0x1c3acb._0x281760,-0xe1,-_0x1c3acb._0x22c526,-0xaf)]:String(_0x3ec2e8),'delayMs':_0x21e390,'reason':this[_0x3574ee(-0xfe,-0xcb,-_0x1c3acb._0x16807f,-_0x1c3acb._0x42e4bc)](_0x3ec2e8)?'transport_error':_0xaecaac(_0x1c3acb._0x16333a,_0x1c3acb._0x4dc2d4,0x3f,_0x1c3acb._0x235558)};yield _0x397680,await this[_0xaecaac(_0x1c3acb._0x319200,_0x1c3acb._0x44ae12,_0x1c3acb._0x3bcac0,_0x1c3acb._0x5b8b03)](_0x21e390,_0x6fff07);}}}async*[_0x5276b1(0x9e,0x6a,-0xfa,-0x18)](_0x1f92bd,_0x105312,_0x1a5966){const _0x4c3bd9={_0x2642bd:0x638,_0x55bc6e:0x70a,_0x16001f:0x529,_0x280bbc:0x1c8,_0x164971:0x543,_0x522a06:0x5a7,_0x244b45:0x5bc,_0x227c65:0x6da,_0x1580b2:0x538,_0x47faa4:0x4a7,_0x21bf38:0x559,_0x371ea2:0x5ef,_0x17e862:0x500,_0x14e042:0x441,_0x5808e9:0x60e,_0x2c2633:0x6cc,_0x1d066b:0x144,_0x6cad99:0x55,_0x336ab0:0x289,_0x49eb22:0x1c9,_0x136ca9:0x5ce,_0x4c54ea:0x5a0,_0x221b16:0x66f,_0x294c38:0x59a,_0x198740:0x5ef,_0x3a4994:0xd0,_0x1c77cf:0x38,_0x7e757:0x6a7,_0x5d2f83:0x4e5,_0x41432e:0x4bd,_0x27660c:0x4b1,_0x342864:0x522,_0x34430e:0x4e8,_0x5d03f2:0x59c,_0x1a80dc:0x11b,_0x2898d8:0xf4,_0x3b6c74:0x25d,_0x17cbc7:0x1d1,_0x5adbf8:0x125,_0x56b066:0xe6,_0x2fb831:0x7c,_0x44afe2:0x80,_0x16ff35:0x237,_0x505914:0x218,_0x4d1468:0x152,_0x30fbfa:0x158,_0x516c42:0x4d3,_0x1f18c7:0x4b8,_0x38774a:0x4f5,_0x1c68b5:0x4ac,_0x4c8093:0x663,_0xb172b:0x71f,_0x304d03:0x657,_0x2783ab:0x757,_0x3c237a:0x569,_0x3bd30f:0x59f,_0x2ca24d:0x1a6,_0x3e720b:0x297,_0x1a8b43:0x233,_0x15ecb8:0x310,_0x111a06:0x1f6,_0x4d05c1:0x16a,_0x82791b:0x23a,_0x9bcccc:0x645,_0x20ab08:0x501,_0x33139a:0x41f,_0x4b58c7:0x4b5,_0x55cd20:0x4fc,_0x48afaf:0x15e,_0x339f86:0x7b},_0x3c9df0={_0x4e2721:0x127,_0x4ef138:0x5be},_0x57e343={_0x5c101e:0xe6,_0x1e8a0d:0x242},_0x48c139=await this[_0x294e93(_0x4c3bd9._0x2642bd,_0x4c3bd9._0x55bc6e,0x5d5,0x66c)](_0x1f92bd,_0x1a5966),_0x1a2cd2=_0x105312['createRequest'](_0x48c139[_0x294e93(0x53a,0x5bd,0x59d,_0x4c3bd9._0x16001f)]),_0x56ba3b=_0x105312[_0x56b7e2(0xdb,_0x4c3bd9._0x280bbc,0xd3,0x1a8)]?.(_0x1f92bd);if(!_0x56ba3b?.[_0x294e93(_0x4c3bd9._0x164971,0x549,0x575,_0x4c3bd9._0x522a06)])throw new Error(_0x294e93(0x68c,_0x4c3bd9._0x244b45,_0x4c3bd9._0x227c65,0x73f)+_0x105312['id']+_0x294e93(_0x4c3bd9._0x1580b2,_0x4c3bd9._0x47faa4,_0x4c3bd9._0x21bf38,_0x4c3bd9._0x371ea2));const _0x266495=_0x1a2cd2['url']??(_0x1a2cd2['path']?(''+_0x48c139[_0x294e93(_0x4c3bd9._0x17e862,0x5c4,_0x4c3bd9._0x14e042,0x5b4)]+_0x1a2cd2['path'])[_0x294e93(_0x4c3bd9._0x5808e9,0x68b,0x6ba,_0x4c3bd9._0x2c2633)](/^http:/,_0x56b7e2(_0x4c3bd9._0x1d066b,0x18e,_0x4c3bd9._0x6cad99,0x1e8))[_0x294e93(_0x4c3bd9._0x5808e9,0x69d,0x664,0x577)](/^https:/,'wss:'):void 0x0);if(!_0x266495)throw new ProviderRequestConstructionError(_0x56b7e2(_0x4c3bd9._0x336ab0,_0x4c3bd9._0x49eb22,0x1f1,0x20f)+_0x105312['id']+_0x294e93(_0x4c3bd9._0x136ca9,0x542,_0x4c3bd9._0x4c54ea,0x58e));const _0x16dec0=await this[_0x294e93(_0x4c3bd9._0x221b16,_0x4c3bd9._0x294c38,_0x4c3bd9._0x198740,0x59a)]({'request':_0x48c139['request'],'body':_0x1a2cd2[_0x56b7e2(_0x4c3bd9._0x3a4994,_0x4c3bd9._0x1c77cf,0x28,0xf1)],'credential':_0x48c139[_0x294e93(0x5d5,_0x4c3bd9._0x7e757,_0x4c3bd9._0x5d2f83,0x4e2)],'session':_0x48c139['session'],'stream':!![]},{'accept':_0x1a2cd2[_0x294e93(_0x4c3bd9._0x41432e,0x4e6,0x471,_0x4c3bd9._0x27660c)]??_0x294e93(0x535,_0x4c3bd9._0x342864,0x496,0x549),'includeContentType':![]});for(const [_0x2197e0,_0x136cab]of Object[_0x294e93(0x50c,_0x4c3bd9._0x34430e,0x5d5,_0x4c3bd9._0x5d03f2)](_0x1a2cd2[_0x56b7e2(_0x4c3bd9._0x1a80dc,_0x4c3bd9._0x2898d8,0x1c7,0x2c)]??{})){_0x16dec0[_0x56b7e2(0x298,_0x4c3bd9._0x3b6c74,0x212,_0x4c3bd9._0x17cbc7)](_0x2197e0,_0x136cab);}function _0x56b7e2(_0x3d097b,_0x211e5b,_0x5a3892,_0x532bdd){return _0x54ac71(_0x3d097b-_0x57e343._0x5c101e,_0x532bdd,_0x3d097b- -_0x57e343._0x1e8a0d,_0x532bdd-0x8f);}_0x16dec0[_0x56b7e2(_0x4c3bd9._0x5adbf8,_0x4c3bd9._0x56b066,0x1f7,_0x4c3bd9._0x2fb831)](_0x56b7e2(0xba,_0x4c3bd9._0x44afe2,0x11f,0x7));const _0x1cb631=this[_0x56b7e2(0x1e9,0x132,_0x4c3bd9._0x16ff35,0x245)]({'headers':Object[_0x56b7e2(_0x4c3bd9._0x505914,_0x4c3bd9._0x4d1468,_0x4c3bd9._0x30fbfa,0x1b6)](_0x16dec0['entries']()),'url':_0x266495});function _0x294e93(_0x44f09b,_0x5f34fc,_0x4faf30,_0x5844cd){return _0x5276b1(_0x4faf30,_0x5f34fc-0x103,_0x4faf30-_0x3c9df0._0x4e2721,_0x44f09b-_0x3c9df0._0x4ef138);}try{throwIfAborted(_0x1a5966);_0x1cb631[_0x56b7e2(0x17c,0x23e,0x26f,0x176)]!==WebSocket[_0x294e93(0x55c,0x522,0x52a,0x46f)]&&await waitForWebSocketOpen(_0x1cb631,_0x1a5966);throwIfAborted(_0x1a5966);_0x1a2cd2[_0x294e93(_0x4c3bd9._0x516c42,_0x4c3bd9._0x1f18c7,_0x4c3bd9._0x38774a,_0x4c3bd9._0x1c68b5)]!==void 0x0&&_0x1cb631[_0x294e93(_0x4c3bd9._0x4c8093,_0x4c3bd9._0xb172b,_0x4c3bd9._0x304d03,_0x4c3bd9._0x2783ab)](JSON['stringify'](_0x1a2cd2['initialEvent']));for await(const _0x1b2b6d of iterateWebSocketMessages(_0x1cb631,_0x1a5966)){yield*_0x56ba3b[_0x294e93(0x543,_0x4c3bd9._0x3c237a,0x5cc,_0x4c3bd9._0x3bd30f)](_0x1b2b6d);if(_0x56ba3b['isDone']?.())break;}yield{'type':_0x56b7e2(0x1e4,_0x4c3bd9._0x2ca24d,_0x4c3bd9._0x3e720b,0x135),'response':_0x56ba3b[_0x56b7e2(_0x4c3bd9._0x1a8b43,_0x4c3bd9._0x15ecb8,_0x4c3bd9._0x111a06,_0x4c3bd9._0x4d05c1)]()};}finally{_0x1cb631[_0x56b7e2(0x17c,_0x4c3bd9._0x82791b,0x253,0x1a5)]===WebSocket[_0x294e93(0x55c,0x4f8,0x607,_0x4c3bd9._0x9bcccc)]&&_0x1cb631[_0x294e93(_0x4c3bd9._0x20ab08,_0x4c3bd9._0x33139a,_0x4c3bd9._0x4b58c7,0x44b)](0x3e8,_0x1a5966?.[_0x294e93(0x555,0x5e7,0x5ab,_0x4c3bd9._0x55cd20)]?_0x294e93(0x555,0x4e1,0x5bd,0x4d3):_0x56b7e2(_0x4c3bd9._0x48afaf,0x1a8,_0x4c3bd9._0x339f86,0x1da));}}};async function createHttpError(_0x523105){const _0x67e6f1={_0x1cb6df:0x33b,_0x1db71b:0x408,_0x5c9a01:0x484,_0x7d4477:0x20f,_0x56446e:0x420,_0x21e839:0x3be,_0x50b1bf:0x393,_0x513fde:0x2b3,_0x49955d:0x1c7,_0x48a2d9:0x3a3},_0x3ad9c3={_0xb182cf:0xe1,_0x12fe29:0x3b},_0x1fc5f3={_0x21795a:0x1d9},_0x30caa9=await _0x523105[_0x12e4ba(_0x67e6f1._0x1cb6df,_0x67e6f1._0x1db71b,_0x67e6f1._0x5c9a01,0x3db)]();function _0x12e4ba(_0x46f6cb,_0x5272a1,_0x2f6ffa,_0x37307c){return _0x54ac71(_0x46f6cb-_0x1fc5f3._0x21795a,_0x2f6ffa,_0x5272a1- -0x80,_0x37307c-0x64);}const _0x5c0318=_0x30caa9[_0x21ad08(-_0x67e6f1._0x7d4477,-0x123,-0x6f,-0xaf)]()||_0x523105['statusText']||_0x21ad08(0xce,0x68,-0x28,0x123);function _0x21ad08(_0x3af588,_0x12b87a,_0x5b1bc8,_0xdcd4a0){return _0x5276b1(_0xdcd4a0,_0x12b87a-_0x3ad9c3._0xb182cf,_0x5b1bc8-0xec,_0x12b87a- -_0x3ad9c3._0x12fe29);}return new Error(_0x12e4ba(_0x67e6f1._0x56446e,_0x67e6f1._0x21e839,_0x67e6f1._0x50b1bf,0x443)+_0x523105[_0x12e4ba(0x2c6,_0x67e6f1._0x513fde,_0x67e6f1._0x49955d,_0x67e6f1._0x48a2d9)]+':\x20'+_0x5c0318);}function _0x54ac71(_0x55533e,_0x1eab84,_0x5e17d9,_0xe70050){const _0x35cdad={_0x58e24e:0x173};return _0x4c72(_0x5e17d9-_0x35cdad._0x58e24e,_0x1eab84);}var AnthropicProviderAdapter=class{[_0x5276b1(0x154,-0x26,0xc2,0xc2)];[_0x54ac71(0x35a,0x492,0x3cd,0x4b7)];[_0x5276b1(-0x67,0x89,0x2c,-0x64)];constructor(_0x193631){const _0x1bffd9={_0x4607b6:0x4b,_0x593adc:0xca,_0x21d447:0x4e,_0x58814b:0x2b,_0x13ee94:0x69,_0x2ec763:0x20},_0x307fa4={_0x44be49:0x110,_0x4da4b3:0x303},_0x2c0fd3={_0x529d89:0xa6};function _0x3bc7c9(_0x359364,_0x1d0425,_0x1d263b,_0x21a39c){return _0x54ac71(_0x359364-_0x2c0fd3._0x529d89,_0x21a39c,_0x1d263b- -0x41a,_0x21a39c-0x79);}this['authScheme']=_0x193631[_0x3bc7c9(0x180,_0x1bffd9._0x4607b6,0xa5,-0x1d)];function _0x4b56c9(_0x33f8e2,_0x2bdecf,_0x3bbd9e,_0x17e98a){return _0x54ac71(_0x33f8e2-_0x307fa4._0x44be49,_0x17e98a,_0x3bbd9e- -_0x307fa4._0x4da4b3,_0x17e98a-0x14c);}this[_0x4b56c9(0x104,0xf4,_0x1bffd9._0x593adc,0x106)]=_0x193631[_0x3bc7c9(-_0x1bffd9._0x21d447,-_0x1bffd9._0x58814b,-0x4d,-_0x1bffd9._0x13ee94)],this[_0x4b56c9(0x133,0x102,0x96,_0x1bffd9._0x2ec763)]=_0x193631['protocolVersion'];}[_0x54ac71(0x29c,0x3e4,0x307,0x238)](){const _0x3726d1={_0x471547:0x2d3,_0x2ed642:0x2f6},_0x56f6d3={_0x24b35b:0x174,_0x13535a:0x168};function _0x27aa4a(_0x5b0293,_0x477c24,_0x11ffff,_0x4ec3dd){return _0x54ac71(_0x5b0293-0xd9,_0x4ec3dd,_0x11ffff- -_0x56f6d3._0x24b35b,_0x4ec3dd-_0x56f6d3._0x13535a);}return new Error(_0x27aa4a(_0x3726d1._0x471547,0x30d,_0x3726d1._0x2ed642,0x2fe));}async['createHeaders'](_0x5913d6,_0x423d18){const _0x59170b={_0x1a45e1:0x3b1,_0x4c16d5:0x402,_0x50dcda:0xd7,_0x46a704:0x19a,_0x379043:0x17,_0x2b1384:0x1d3,_0x13daa2:0x47f,_0x57fd92:0x270,_0x20b3f1:0x204,_0x1456fc:0x332,_0x15df6f:0x232,_0x1af66b:0x1e1,_0x205719:0x107,_0x2238fe:0x18b,_0x412aaf:0x73,_0x1b86b9:0x167,_0x27f0ae:0x24b,_0x333e72:0x1eb,_0x45c4e1:0x396,_0x3534e0:0xb1,_0x598d7e:0x6c,_0x70da00:0x2d9,_0xbe161:0x37e,_0x1722b7:0x22b,_0x4b7f4e:0x2e0,_0x428cc3:0x33f,_0x58cdec:0x41,_0x5f3a62:0x2e,_0x44846f:0x6f,_0x47734c:0x1e1,_0xa8bbcc:0x102,_0x28944f:0x186,_0x511cae:0x296,_0x58f588:0xc4,_0x7ed1a4:0x1e,_0x3f6d3e:0x52,_0x524c1a:0x50,_0x38a618:0x4d,_0x266762:0x19,_0xe8e0f3:0xaa,_0x56dc77:0x19f},_0x4754f5={_0x3f2ee1:0xa5,_0x25cddd:0x129},_0x41e6ce=new Headers();_0x41e6ce[_0x5019fe(_0x59170b._0x1a45e1,0x497,0x3c5,_0x59170b._0x4c16d5)](_0x5f4eef(-_0x59170b._0x50dcda,-_0x59170b._0x46a704,-_0x59170b._0x379043,-0x64),_0x423d18[_0x5019fe(_0x59170b._0x2b1384,0x146,0x1fc,0x1f4)]),_0x41e6ce[_0x5019fe(0x3b1,_0x59170b._0x13daa2,0x2d2,0x402)]('anthropic-version',this[_0x5019fe(_0x59170b._0x57fd92,0x287,_0x59170b._0x20b3f1,_0x59170b._0x1456fc)]);_0x423d18[_0x5019fe(0x1d8,_0x59170b._0x15df6f,0x1ff,_0x59170b._0x1af66b)]!==![]&&_0x41e6ce[_0x5f4eef(_0x59170b._0x205719,_0x59170b._0x2238fe,_0x59170b._0x412aaf,0x18d)](_0x5f4eef(-0xc6,-_0x59170b._0x1b86b9,-0xa6,-0x10a),_0x5019fe(_0x59170b._0x27f0ae,0x30b,_0x59170b._0x333e72,0x1bc));this[_0x5019fe(_0x59170b._0x45c4e1,0x442,0x42e,0x2b9)]===_0x5f4eef(_0x59170b._0x3534e0,0x5a,0x17d,0xa6)?_0x41e6ce['set'](_0x5f4eef(-0x5e,-0x14,0x94,-_0x59170b._0x598d7e),_0x5019fe(_0x59170b._0x70da00,0x284,_0x59170b._0xbe161,0x3a1)+_0x5913d6[_0x5019fe(0x2eb,0x229,_0x59170b._0x1722b7,_0x59170b._0xbe161)]['value']):_0x41e6ce['set'](_0x5019fe(_0x59170b._0x4b7f4e,_0x59170b._0x428cc3,0x31d,0x328),_0x5913d6[_0x5f4eef(_0x59170b._0x58cdec,0xd1,-_0x59170b._0x5f3a62,-_0x59170b._0x44846f)][_0x5019fe(_0x59170b._0x47734c,_0x59170b._0xa8bbcc,_0x59170b._0x28944f,0x287)]);function _0x5019fe(_0x343a6d,_0x1a41f4,_0x4451cd,_0x19330b){return _0x54ac71(_0x343a6d-_0x4754f5._0x3f2ee1,_0x4451cd,_0x343a6d- -_0x4754f5._0x25cddd,_0x19330b-0x5a);}const _0x36c969=await this['headerResolver']?.({'body':_0x5913d6[_0x5019fe(_0x59170b._0x511cae,0x2d5,0x26b,0x264)],'credential':_0x5913d6[_0x5f4eef(0x41,0x8a,_0x59170b._0x58f588,0xf6)],'request':_0x5913d6['request'],'session':_0x5913d6[_0x5f4eef(0x5f,0x5d,_0x59170b._0x7ed1a4,-_0x59170b._0x3f6d3e)],'stream':_0x5913d6[_0x5f4eef(_0x59170b._0x524c1a,0x13c,-0x87,_0x59170b._0x38a618)]});for(const [_0x3ece8c,_0x3d5ee1]of Object[_0x5f4eef(-0x88,-0x17b,_0x59170b._0x266762,-_0x59170b._0xe8e0f3)](_0x36c969??{})){_0x41e6ce[_0x5f4eef(0x107,0x1b8,0x119,_0x59170b._0x56dc77)](_0x3ece8c,_0x3d5ee1);}function _0x5f4eef(_0x544e1c,_0x52c21d,_0x31c6d2,_0x1a62aa){return _0x5276b1(_0x1a62aa,_0x52c21d-0x65,_0x31c6d2-0x1c8,_0x544e1c-0x2a);}return _0x41e6ce;}['mapApiError'](_0x487a5f){return _0x487a5f;}[_0x5276b1(-0x51,-0xeb,-0xde,-0xd7)](_0xae428b,_0x1a998e){return resolveSessionBaseUrl(_0xae428b,_0x1a998e);}[_0x5276b1(0x21,-0x45,-0x160,-0x79)](_0x389db8,_0xfdb5d0){return resolveApiCredential(_0x389db8,_0xfdb5d0);}async[_0x54ac71(0x320,0x3c8,0x3de,0x423)](_0x53cbb8){return await createHttpError(_0x53cbb8);}},AnthropicModel=class extends RoutedModel{constructor(_0xb18c7b={}){const _0x1ef811={_0x24f745:0x4a,_0x4284c3:0x20,_0x18bcd0:0x22,_0x10b5a1:0xb0,_0x3d8112:0x7a,_0x3179b6:0xf,_0x4b04c2:0x2b5,_0x33dae0:0x238,_0x5761a0:0x2a1,_0x18eaf3:0x2bc,_0x6dd31d:0xfa,_0x1da136:0xeb,_0x26e161:0xc,_0x3062d7:0xae,_0x160b57:0xd,_0x18b9b8:0x18d,_0x50622b:0x2fd,_0x503cfe:0x2d3,_0x99e2bb:0x332,_0x2be420:0x2c8,_0x2b4c60:0x469,_0x4cb155:0x2f4,_0x57dc65:0x366,_0x1662a0:0x2fa,_0x1d55d6:0x56,_0x527228:0xdc,_0x3294d9:0xc,_0x372506:0xb9,_0x22a5a9:0x73,_0x2a0920:0x83,_0x22ac1a:0x100,_0x5760a4:0x2d},_0xd7ed8b={_0x25cf60:0x115},_0x3887fc={_0x306936:0x4b};function _0xc356c6(_0x360b99,_0x140c34,_0x2ec731,_0x4544bf){return _0x54ac71(_0x360b99-0x1ee,_0x4544bf,_0x360b99- -0x3ef,_0x4544bf-_0x3887fc._0x306936);}function _0x1e47f7(_0x412317,_0x511749,_0x15a475,_0x3da657){return _0x54ac71(_0x412317-0x5b,_0x511749,_0x412317- -_0xd7ed8b._0x25cf60,_0x3da657-0x175);}super({'apiKey':_0xb18c7b[_0xc356c6(-_0x1ef811._0x24f745,_0x1ef811._0x4284c3,-_0x1ef811._0x18bcd0,0x8b)],'baseUrl':trimTrailingSlashes(_0xb18c7b[_0xc356c6(-_0x1ef811._0x10b5a1,-_0x1ef811._0x3d8112,-0x1a4,-_0x1ef811._0x3179b6)]??'https://api.anthropic.com'),'fetch':_0xb18c7b[_0x1e47f7(_0x1ef811._0x4b04c2,_0x1ef811._0x33dae0,_0x1ef811._0x5761a0,0x2e2)],..._0xb18c7b[_0x1e47f7(0x1ef,0x1e2,_0x1ef811._0x18eaf3,_0x1ef811._0x6dd31d)]!==void 0x0?{'maxTokens':_0xb18c7b[_0xc356c6(-_0x1ef811._0x1da136,-0x164,-_0x1ef811._0x26e161,-_0x1ef811._0x3062d7)]}:{},'model':_0xb18c7b['model']??_0xc356c6(-0x3f,-_0x1ef811._0x160b57,-0x119,0x8f),'modelIdentity':_0xb18c7b[_0x1e47f7(0x280,_0x1ef811._0x18b9b8,_0x1ef811._0x50622b,_0x1ef811._0x503cfe)],'reasoning':_0xb18c7b[_0x1e47f7(0x2df,0x262,_0x1ef811._0x99e2bb,0x235)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0xb18c7b[_0x1e47f7(0x3aa,0x2cf,_0x1ef811._0x2be420,_0x1ef811._0x2b4c60)]??_0x1e47f7(_0x1ef811._0x4cb155,_0x1ef811._0x57dc65,0x239,_0x1ef811._0x1662a0),'headerResolver':_0xb18c7b['headerResolver'],'protocolVersion':_0xb18c7b[_0xc356c6(-_0x1ef811._0x1d55d6,-_0x1ef811._0x527228,_0x1ef811._0x3294d9,-0x142)]??_0xc356c6(-_0x1ef811._0x372506,-0x42,-_0x1ef811._0x1da136,-_0x1ef811._0x22a5a9)}),'providerSessionResolver':_0xb18c7b['providerSessionResolver'],'requestMutators':_0xb18c7b[_0xc356c6(0xa1,_0x1ef811._0x2a0920,_0x1ef811._0x22ac1a,-_0x1ef811._0x5760a4)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x54ac71(0x3d6,0x2b9,0x3ab,0x449)](_0x486a04,_0x5c3f11){const _0xb6106b={_0x1e4b09:0x3c7,_0x9aeafd:0x45b};function _0x1d3522(_0x1668c0,_0x5b5ac1,_0x29f67c,_0x5affa8){return _0x5276b1(_0x1668c0,_0x5b5ac1-0xb4,_0x29f67c-0x161,_0x29f67c-0x350);}return this[_0x1d3522(0x4ea,_0xb6106b._0x1e4b09,0x42f,_0xb6106b._0x9aeafd)](_0x486a04,ANTHROPIC_MESSAGES_SURFACE,_0x5c3f11);}[_0x54ac71(0x3e8,0x442,0x423,0x35f)](_0x263044,_0x20207c){const _0x35dec1={_0xd29b72:0x18d,_0x58dad3:0x1bd},_0x56010d={_0x1bdf1b:0x132,_0x93e7a8:0x1c4,_0x14b27d:0x1e7};function _0x6eae32(_0x37d936,_0x39e5b6,_0x4ae633,_0x1a9e10){return _0x54ac71(_0x37d936-_0x56010d._0x1bdf1b,_0x4ae633,_0x1a9e10- -_0x56010d._0x93e7a8,_0x1a9e10-_0x56010d._0x14b27d);}return this[_0x6eae32(0x29b,_0x35dec1._0xd29b72,0x1b1,_0x35dec1._0x58dad3)](_0x263044,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x20207c);}},model_registry_default={'defaultModel':'gpt-4o','cliDefaultModel':_0x5276b1(0x11,-0xec,-0x72,-0x95),'providers':{'anthropic':{'label':_0x54ac71(0x431,0x38e,0x3dc,0x404),'baseUrl':_0x5276b1(0x23,0x14e,0x6,0xc5),'surface':_0x54ac71(0x493,0x484,0x424,0x3de),'authScheme':_0x5276b1(0x85,-0xde,-0x89,0xc),'defaultModel':_0x5276b1(-0x77,0x14,-0xa3,-0x4d),'defaultModels':[_0x5276b1(-0x33,0x4b,0x89,-0x4d),'claude-3-5-sonnet-20241022'],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x5276b1(0x28,0x31,0xea,0xcb),'baseUrl':_0x5276b1(-0x40,-0x30,0x17,0x8f),'anthropicBaseUrl':_0x5276b1(0xab,0x7f,0x5a,0xe),'surface':_0x54ac71(0x4de,0x3c9,0x424,0x395),'authScheme':'bearer','defaultModel':_0x54ac71(0x2bc,0x361,0x368,0x2ab),'defaultModels':['glm-5.2',_0x5276b1(-0x30,0xe7,0x24,0x1d),_0x54ac71(0x328,0x3cc,0x368,0x367),_0x5276b1(-0x2d,0x139,0x8f,0x45),_0x5276b1(0xf3,0x18,-0x94,0x28)],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x20000},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x20000},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':_0x54ac71(0x3dd,0x437,0x3fc,0x4b5),'baseUrl':_0x54ac71(0x414,0x52e,0x4b6,0x58d),'surface':'openai-chat-completions','authScheme':_0x5276b1(0x153,-0x2d,0x152,0x87),'defaultModel':_0x5276b1(-0x81,0x18,0xee,0x65),'defaultModels':[_0x54ac71(0x384,0x380,0x462,0x490),_0x5276b1(-0x62,-0x119,-0xbc,-0x100)],'supportsModelFetch':!![],'models':{'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':{'label':'GitHub\x20Models\x20/\x20Copilot','surface':_0x54ac71(0x420,0x41d,0x3da,0x39f),'defaultModel':'gpt-5.2-codex','defaultModels':[_0x5276b1(0x20,-0x6e,0x129,0x5e),'gpt-4.1',_0x54ac71(0x512,0x469,0x460,0x53f),'gpt-5-mini',_0x54ac71(0x328,0x275,0x33e,0x373),_0x54ac71(0x3b8,0x3cb,0x37d,0x3fc)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x54ac71(0x481,0x3a2,0x424,0x4b6)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x54ac71(0x39f,0x40c,0x424,0x4ec)},'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}}},'grok':{'label':_0x5276b1(-0x82,-0x70,-0xb2,0x22),'baseUrl':'https://api.x.ai/v1','surface':_0x54ac71(0x3b6,0x4a6,0x3da,0x2fd),'authScheme':_0x54ac71(0x3fb,0x3bc,0x484,0x41b),'defaultModel':_0x5276b1(-0xbe,-0x94,-0xa6,-0x78),'defaultModels':[_0x54ac71(0x2e3,0x3ca,0x385,0x396),_0x5276b1(-0x125,-0x183,-0x13d,-0xc0)],'supportsModelFetch':!![],'models':{'grok-4.3':{'contextWindow':0x20000,'maxOutput':0x4000},'grok-build-0.1':{'contextWindow':0x20000,'maxOutput':0x4000}}},'openai':{'label':'OpenAI','baseUrl':_0x5276b1(0x5d,0x1,-0xe3,-0x3b),'surface':_0x54ac71(0x265,0x407,0x354,0x2d1),'authScheme':_0x54ac71(0x3d0,0x54a,0x484,0x4e9),'defaultModel':_0x54ac71(0x30e,0x326,0x39e,0x2cf),'defaultModels':[],'supportsModelFetch':![],'models':{}},'openai-codex':{'label':_0x54ac71(0x2d3,0x3cc,0x35e,0x326),'baseUrl':_0x54ac71(0x341,0x4ad,0x3ff,0x38f),'surface':_0x5276b1(0x6,0x4,-0x62,-0x23),'authScheme':_0x5276b1(0x4f,0xb6,0x5c,0x87),'defaultModel':_0x5276b1(0x12,-0x17,0xc6,0x7b),'defaultModels':[_0x54ac71(0x479,0x404,0x478,0x438)],'supportsModelFetch':!![],'models':{'gpt-5.4':{'contextWindow':0x42680,'maxOutput':0x1f400}}},'deepseek':{'label':_0x54ac71(0x248,0x3ea,0x314,0x33d),'baseUrl':'https://api.deepseek.com/anthropic','surface':'anthropic-messages','authScheme':'bearer','defaultModel':_0x5276b1(-0x84,-0x56,-0x37,0x1b),'defaultModels':['deepseek-v4-pro',_0x54ac71(0x4d9,0x3b6,0x451,0x4fa)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x54ac71(0x46f,0x3a0,0x3b3,0x40b),'baseUrl':'https://api.minimax.io/anthropic','surface':_0x5276b1(-0x39,-0x5d,-0xb7,0x27),'authScheme':_0x54ac71(0x4dd,0x3fb,0x484,0x554),'defaultModel':_0x54ac71(0x3f9,0x34f,0x40c,0x4ac),'defaultModels':[_0x5276b1(-0xf,0xf8,0xe1,0xf)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':'CommandCode','baseUrl':_0x5276b1(0x49,0xde,-0x52,0x39),'modelsBaseUrl':'https://api.commandcode.ai/provider/v1','surface':_0x54ac71(0x478,0x4e0,0x424,0x4fb),'authScheme':_0x54ac71(0x36c,0x4a0,0x409,0x38d),'defaultModel':_0x54ac71(0x40c,0x484,0x3b0,0x438),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x5276b1(-0x64,0x54,0xb,-0x28),'baseUrl':_0x54ac71(0x595,0x515,0x4db,0x523),'modelsBaseUrl':_0x5276b1(-0x84,-0xf6,0xf,-0xd1),'surface':_0x5276b1(0xbb,-0x5f,0x40,0x27),'authScheme':_0x54ac71(0x4df,0x3af,0x409,0x4a4),'defaultModel':_0x54ac71(0x30a,0x475,0x3c5,0x37a),'defaultModels':[_0x54ac71(0x413,0x447,0x3c5,0x352)],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default;function findProviderKey(_0x52758b){const _0x47384a={_0x3cc422:0xdd,_0x3cf3fc:0x21,_0x4d8203:0x7f},_0x5007ba={_0x1fb5e0:0x4a,_0x57d6bd:0x3f4,_0x177000:0x1a},_0xe77889={_0x5857b6:0xd8,_0x12ad80:0x12e,_0x167a10:0x129},_0x3c60bf=_0x52758b[_0x390e2a(_0x47384a._0x3cc422,0x61,0x74,_0x47384a._0x3cf3fc)]();function _0x1687f7(_0x106e7d,_0x28ca7b,_0x5999bb,_0xd93739){return _0x5276b1(_0x5999bb,_0x28ca7b-_0xe77889._0x5857b6,_0x5999bb-_0xe77889._0x12ad80,_0x28ca7b- -_0xe77889._0x167a10);}function _0x390e2a(_0x3fe630,_0x379069,_0x2e2027,_0x455df3){return _0x54ac71(_0x3fe630-_0x5007ba._0x1fb5e0,_0x455df3,_0x3fe630- -_0x5007ba._0x57d6bd,_0x455df3-_0x5007ba._0x177000);}return Object['keys'](data[_0x1687f7(-0x106,-_0x47384a._0x4d8203,-0x54,-0x63)])['find'](_0x3fc629=>_0x3fc629[_0x1687f7(-0x62,-0x55,0x73,-0x12c)]()===_0x3c60bf);}function getProviderProfile(_0x5e2125){const _0x3786a5={_0x24ca61:0x6fb,_0xbdc855:0x69f,_0x5b4df:0x73,_0xd57698:0xbe,_0x37bd8c:0xed,_0xc3027:0x2d,_0x57d1b3:0x2b,_0x4755f3:0x51,_0x5624d2:0x600,_0x17a678:0x4e9,_0x58505b:0x225,_0x19b770:0x7c,_0x989728:0x52b,_0x5656ed:0x639,_0x359f95:0x62,_0x1fd41a:0x16,_0x52d774:0xe4,_0x232061:0x94},_0x7eb2d6={_0x3de4ab:0x17d},_0x38f486={_0x192908:0x108,_0x3f8be5:0x18d};function _0x4583e7(_0xbc78cd,_0x29f192,_0x50c0ce,_0x22a48a){return _0x54ac71(_0xbc78cd-_0x38f486._0x192908,_0x29f192,_0x22a48a- -0x438,_0x22a48a-_0x38f486._0x3f8be5);}const _0x240f97=findProviderKey(_0x5e2125);if(!_0x240f97)return void 0x0;function _0x3fc03d(_0x35bbaf,_0x356511,_0x22b8c9,_0x5ce528){return _0x5276b1(_0x5ce528,_0x356511-0x101,_0x22b8c9-_0x7eb2d6._0x3de4ab,_0x22b8c9-0x5ad);}const _0x4eb57e=data[_0x3fc03d(0x669,_0x3786a5._0x24ca61,0x657,_0x3786a5._0xbdc855)][_0x240f97],_0x386b3b={};for(const [_0x2d5125,_0x30442c]of Object[_0x4583e7(-0x135,-_0x3786a5._0x5b4df,-_0x3786a5._0xd57698,-_0x3786a5._0x37bd8c)](_0x4eb57e[_0x4583e7(_0x3786a5._0xc3027,-0x114,-_0x3786a5._0x57d1b3,-_0x3786a5._0x4755f3)])){_0x386b3b[_0x2d5125]=_0x30442c;}return{'label':_0x4eb57e[_0x3fc03d(_0x3786a5._0x5624d2,0x4ba,0x558,_0x3786a5._0x17a678)],'baseUrl':_0x4eb57e['baseUrl'],'modelsBaseUrl':_0x4eb57e['modelsBaseUrl'],'anthropicBaseUrl':_0x4eb57e[_0x4583e7(-_0x3786a5._0x58505b,-_0x3786a5._0x19b770,-0x1e1,-0x136)],'surface':_0x4eb57e[_0x3fc03d(_0x3786a5._0x989728,0x4e9,0x587,_0x3786a5._0x5656ed)],'authScheme':_0x4eb57e[_0x4583e7(-0x33,_0x3786a5._0x359f95,0x152,0x87)],'defaultModel':_0x4eb57e[_0x4583e7(-0x96,-0xb0,-0x16c,-0x106)],'defaultModels':_0x4eb57e[_0x4583e7(0x7f,-0xb2,_0x3786a5._0x1fd41a,0x3)]??[],'supportsModelFetch':_0x4eb57e[_0x4583e7(0x5a,0x15d,_0x3786a5._0x52d774,_0x3786a5._0x232061)]??![],'models':_0x386b3b};}function getModelProfile(_0x3e29f4,_0x2cd827){const _0x1f3658={_0x40c004:0x3e0,_0x202370:0x44a,_0x1e3821:0x3c2,_0x31523a:0x320,_0xc7921b:0x3ee,_0x3d637f:0x259},_0x17b5a7={_0x252a42:0xa0,_0x1ab5ee:0x651};function _0x5424f0(_0x194676,_0x2961be,_0x5de4f4,_0x391960){return _0x5276b1(_0x194676,_0x2961be-0x13f,_0x5de4f4-_0x17b5a7._0x252a42,_0x5de4f4-_0x17b5a7._0x1ab5ee);}function _0xa73f7a(_0x4bcfb1,_0x2edb99,_0x50d28a,_0x4d4bd9){return _0x54ac71(_0x4bcfb1-0x174,_0x4d4bd9,_0x4bcfb1- -0xc7,_0x4d4bd9-0x4);}const _0x50b8d8=findProviderKey(_0x3e29f4);if(!_0x50b8d8)return void 0x0;return data[_0xa73f7a(_0x1f3658._0x40c004,_0x1f3658._0x202370,0x44d,_0x1f3658._0x1e3821)][_0x50b8d8][_0xa73f7a(_0x1f3658._0x31523a,_0x1f3658._0xc7921b,0x30a,_0x1f3658._0x3d637f)][_0x2cd827];}function resolveModelProfile(_0x1a9bbd,_0x181ea7){const _0x4aef37={_0x4538a2:0x7b,_0x4d9e32:0x109,_0x4d068e:0x170,_0x1720ee:0x23b,_0x3d41b5:0x256,_0x1a9b33:0x84,_0x3ea309:0x17e,_0x4ee267:0x151,_0x2b92e9:0x10c,_0x27aeda:0x25,_0x2dc7e8:0xff,_0x155ac9:0xa1,_0x16df3b:0x9d,_0x446000:0x129,_0x1cf7fa:0xce},_0x823665={_0x4a6d7c:0x557,_0x3151c4:0x142},_0x39aa87={_0x5a2257:0x42c,_0x3bf968:0x4c},_0x2c4e00=findProviderKey(_0x1a9bbd);if(!_0x2c4e00)return void 0x0;const _0x280fe6=data[_0x4ec799(-0x1a,0xcb,_0x4aef37._0x4538a2,_0x4aef37._0x4d9e32)][_0x2c4e00],_0x361d18=_0x280fe6[_0x8166fc(-_0x4aef37._0x4d068e,-_0x4aef37._0x1720ee,-_0x4aef37._0x3d41b5,-0x127)][_0x181ea7];function _0x4ec799(_0x3be949,_0xdc6e65,_0x1eca12,_0x1c45ee){return _0x54ac71(_0x3be949-0x65,_0xdc6e65,_0x1eca12- -_0x39aa87._0x5a2257,_0x1c45ee-_0x39aa87._0x3bf968);}function _0x8166fc(_0x180894,_0x526990,_0x499304,_0x4bce64){return _0x54ac71(_0x180894-0x163,_0x526990,_0x180894- -_0x823665._0x4a6d7c,_0x4bce64-_0x823665._0x3151c4);}return{'label':_0x280fe6[_0x4ec799(0x15,-0x1b,-_0x4aef37._0x1a9b33,-0x11)],'baseUrl':_0x280fe6['baseUrl'],'modelsBaseUrl':_0x280fe6[_0x4ec799(0xcd,0x88,0x43,0x101)],'anthropicBaseUrl':_0x280fe6[_0x4ec799(-0x47,-0x45,-0x12a,-0x21e)],'surface':_0x361d18?.[_0x8166fc(-0x180,-_0x4aef37._0x3ea309,-0x154,-_0x4aef37._0x4ee267)]??_0x280fe6[_0x8166fc(-0x180,-0xd0,-0x1e0,-_0x4aef37._0x2b92e9)],'authScheme':_0x280fe6[_0x4ec799(-0x46,0xef,0x93,_0x4aef37._0x27aeda)],'defaultModel':_0x280fe6['defaultModel'],'defaultModels':_0x280fe6[_0x4ec799(_0x4aef37._0x2dc7e8,-_0x4aef37._0x155ac9,0xf,0x42)],'supportsModelFetch':_0x280fe6[_0x4ec799(_0x4aef37._0x16df3b,_0x4aef37._0x446000,0xa0,0xf9)],'contextWindow':_0x361d18?.[_0x4ec799(-_0x4aef37._0x1cf7fa,0x6c,-0x15,-0x2)],'maxOutput':_0x361d18?.[_0x8166fc(-0x196,-0x102,-0x180,-0x19a)]};}function getDefaultModel(){return data['defaultModel'];}function getCliDefaultModel(){const _0x2728d3={_0x29ceaa:0x12e,_0x28f45f:0x22f,_0x2dc1cc:0x7b};function _0x4232d6(_0x605a7b,_0x943ed0,_0x25a119,_0x4abc31){return _0x54ac71(_0x605a7b-_0x2728d3._0x29ceaa,_0x4abc31,_0x605a7b-_0x2728d3._0x28f45f,_0x4abc31-_0x2728d3._0x2dc1cc);}return data[_0x4232d6(0x6f0,0x679,0x68f,0x63c)];}function getProviderLabel(_0x336705){const _0x4710d7={_0xc65403:0x36f,_0x3f6524:0x31e,_0xce2031:0x3bc,_0x3b4bb6:0x25b},_0x40c65d={_0x5cca04:0x153,_0xf61588:0x1c7},_0x57d15c={_0x2bcd5b:0x34c};function _0x1ab839(_0xe3bda6,_0x2d4d15,_0x34295a,_0x5c667d){return _0x5276b1(_0x2d4d15,_0x2d4d15-0x1,_0x34295a-0x1d2,_0x34295a-_0x57d15c._0x2bcd5b);}const _0x465269=findProviderKey(_0x336705);function _0x4fe111(_0x537b47,_0x2e51fb,_0x37dbdb,_0x462c2d){return _0x54ac71(_0x537b47-_0x40c65d._0x5cca04,_0x537b47,_0x2e51fb- -0x138,_0x462c2d-_0x40c65d._0xf61588);}return _0x465269?data[_0x4fe111(0x39b,_0x4710d7._0xc65403,0x3d6,0x31a)][_0x465269][_0x1ab839(_0x4710d7._0x3f6524,_0x4710d7._0xce2031,0x2f7,_0x4710d7._0x3b4bb6)]:void 0x0;}function getProviderDefaultModel(_0x186b14){const _0x195d13={_0x150ba3:0x599,_0x3b79dc:0x6c5,_0x431815:0x66a},_0x26cf40={_0x23b8ca:0x5c0},_0x121e83=findProviderKey(_0x186b14);function _0x3f40da(_0x36b554,_0x179542,_0xee6d85,_0x117ded){return _0x5276b1(_0x179542,_0x179542-0x1be,_0xee6d85-0x164,_0x117ded-_0x26cf40._0x23b8ca);}if(!_0x121e83)return void 0x0;return data[_0x3f40da(0x620,_0x195d13._0x150ba3,_0x195d13._0x3b79dc,_0x195d13._0x431815)][_0x121e83]['defaultModel'];}function _0x4c72(_0x4b3a76,_0x16a522){_0x4b3a76=_0x4b3a76-0x189;const _0x25f2eb=_0x25f2();let _0x4c7227=_0x25f2eb[_0x4b3a76];if(_0x4c72['FQuZRV']===undefined){var _0x1b30c5=function(_0x3a3224){const _0x3088d2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ae5ea='',_0x4b4612='';for(let _0x4fe7a8=0x0,_0x4b98aa,_0x48d093,_0x4bdb5a=0x0;_0x48d093=_0x3a3224['charAt'](_0x4bdb5a++);~_0x48d093&&(_0x4b98aa=_0x4fe7a8%0x4?_0x4b98aa*0x40+_0x48d093:_0x48d093,_0x4fe7a8++%0x4)?_0x3ae5ea+=String['fromCharCode'](0xff&_0x4b98aa>>(-0x2*_0x4fe7a8&0x6)):0x0){_0x48d093=_0x3088d2['indexOf'](_0x48d093);}for(let _0xf2a96a=0x0,_0x94c32=_0x3ae5ea['length'];_0xf2a96a<_0x94c32;_0xf2a96a++){_0x4b4612+='%'+('00'+_0x3ae5ea['charCodeAt'](_0xf2a96a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b4612);};_0x4c72['gvCaJh']=_0x1b30c5,_0x4c72['eXqloG']={},_0x4c72['FQuZRV']=!![];}const _0x2e59f8=_0x25f2eb[0x0],_0x335715=_0x4b3a76+_0x2e59f8,_0x55097a=_0x4c72['eXqloG'][_0x335715];return!_0x55097a?(_0x4c7227=_0x4c72['gvCaJh'](_0x4c7227),_0x4c72['eXqloG'][_0x335715]=_0x4c7227):_0x4c7227=_0x55097a,_0x4c7227;}function getProviderDefaultModels(_0xe15aa3){const _0x4faf43={_0x7519e0:0x677},_0x3b2404={_0x34a6f6:0x1ae,_0x3b3311:0x6f};function _0x35c414(_0x58bb16,_0x1d7f8c,_0x1d162c,_0x1e511c){return _0x5276b1(_0x1e511c,_0x1d7f8c-_0x3b2404._0x34a6f6,_0x1d162c-_0x3b2404._0x3b3311,_0x1d162c-0x639);}const _0x34d4b8=findProviderKey(_0xe15aa3);if(!_0x34d4b8)return[];return[...data['providers'][_0x34d4b8][_0x35c414(0x6fe,0x65f,_0x4faf43._0x7519e0,0x65d)]??[]];}function providerSupportsModelFetch(_0x5b4b59){const _0x34bef4={_0x585db6:0x15f,_0x2c132c:0xe},_0x3195dd={_0x32cd38:0x164},_0x144c01=findProviderKey(_0x5b4b59);function _0xb228d6(_0x1d17ce,_0x5cbccd,_0x534ec4,_0x1f0b2f){return _0x5276b1(_0x1d17ce,_0x5cbccd-_0x3195dd._0x32cd38,_0x534ec4-0x160,_0x534ec4- -0x18);}if(!_0x144c01)return![];return data[_0xb228d6(_0x34bef4._0x585db6,_0x34bef4._0x2c132c,0x92,0x14e)][_0x144c01]['supportsModelFetch']??![];}function getOnboardingProviderKeys(){const _0x2b431d={_0x5de185:0x45d,_0xe9a095:0x52d},_0x10357b={_0x31de07:0x18d};function _0x9c18bd(_0xf2ff0a,_0x1109a7,_0x49f45e,_0x3d7ade){return _0x5276b1(_0xf2ff0a,_0x1109a7-0xef,_0x49f45e-_0x10357b._0x31de07,_0x1109a7- -0xc7);}function _0x42fa31(_0x320240,_0x3a540e,_0x37198e,_0x4e6a01){return _0x54ac71(_0x320240-0x151,_0x37198e,_0x320240- -0x29,_0x4e6a01-0x1b2);}return Object[_0x42fa31(0x465,0x44c,0x465,_0x2b431d._0x5de185)](data[_0x42fa31(0x47e,0x555,_0x2b431d._0xe9a095,0x564)]);}var OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream';function _0x5276b1(_0x1ddd04,_0xac6a8d,_0x35a4d3,_0x5e7206){const _0x1eb658={_0x21100c:0x28a};return _0x4c72(_0x5e7206- -_0x1eb658._0x21100c,_0x1ddd04);}var OPENAI_RESPONSES_SURFACE=_0x5276b1(-0x15,-0x92,0x41,-0x23),OPENAI_RESPONSES_STREAM_SURFACE=_0x54ac71(0x46f,0x318,0x3f5,0x49a),OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{['status'];[_0x54ac71(0x3c7,0x482,0x3bf,0x421)];constructor(_0x16b9a0,_0x3cb423,_0x6b675f){const _0x52cfa0={_0x4aa48e:0x52,_0x2c011f:0x2d,_0x46025a:0xb2},_0x2bf25a={_0x5a209e:0x1cc},_0x27bbe3={_0x480c91:0x9c};super(_0x6b675f);function _0x53015d(_0x15f8be,_0x34f9da,_0x5d489d,_0x45884b){return _0x54ac71(_0x15f8be-_0x27bbe3._0x480c91,_0x34f9da,_0x45884b- -0x2b7,_0x45884b-0x12f);}function _0x47d34c(_0x1c7659,_0xf6aaeb,_0x1a858a,_0x3c5c16){return _0x54ac71(_0x1c7659-0x7e,_0x3c5c16,_0xf6aaeb- -0x258,_0x3c5c16-_0x2bf25a._0x5a209e);}this[_0x53015d(-0x68,-_0x52cfa0._0x4aa48e,0x19,0x85)]='OpenAiApiError',this[_0x53015d(-_0x52cfa0._0x2c011f,0x141,_0x52cfa0._0x46025a,0x7c)]=_0x16b9a0,this[_0x47d34c(0xfd,0x167,0x257,0xf2)]=_0x3cb423;}};function stringifySystem(_0x5a61b5){const _0x3a5780={_0x5a47ca:0x21a},_0x548c82={_0x418bfe:0x81,_0x353c60:0x7c},_0x332e9d={_0x2aef4b:0x178,_0x51b5d8:0x191};function _0x3572f2(_0x640ed9,_0x3edbff,_0xe4f480,_0x566a9b){return _0x54ac71(_0x640ed9-0x4c,_0xe4f480,_0x3edbff- -_0x332e9d._0x2aef4b,_0x566a9b-_0x332e9d._0x51b5d8);}function _0x296646(_0x4d92d7,_0x82bab4,_0x3015f7,_0x5e4e6b){return _0x5276b1(_0x3015f7,_0x82bab4-_0x548c82._0x418bfe,_0x3015f7-0x14b,_0x82bab4-_0x548c82._0x353c60);}return _0x5a61b5[_0x3572f2(_0x3a5780._0x5a47ca,0x272,0x2f0,0x212)](_0x505564=>_0x505564[_0x296646(0x1a9,0x107,0x6b,0x114)])[_0x296646(0xa5,0xb6,0x4c,-0x2)]('\x0a\x0a');}function createToolDefinitions(_0x19f898){const _0x324f13={_0x370c2a:0x27b,_0x331667:0x397},_0x32d54f={_0x5a88d3:0x34e,_0x24651e:0x2d6,_0x171eec:0x24b},_0x52dca5={_0x4a019b:0x19,_0x42bb78:0x70,_0x67fb5c:0x304},_0x5a07a4={_0x55d292:0x9b},_0x4f7da6={_0x203f30:0x66};if(_0x19f898[_0x2240f8(_0x324f13._0x370c2a,0x28a,0x403,0x34e)]===0x0)return void 0x0;function _0x2240f8(_0x345927,_0x46fa77,_0x2ae94d,_0x46ee86){return _0x5276b1(_0x46fa77,_0x46fa77-0x83,_0x2ae94d-_0x4f7da6._0x203f30,_0x46ee86-0x26d);}function _0x574ae0(_0x50fcf5,_0x2db8b9,_0x4590a5,_0x313895){return _0x54ac71(_0x50fcf5-0x8e,_0x313895,_0x2db8b9-0x89,_0x313895-_0x5a07a4._0x55d292);}return _0x19f898[_0x574ae0(0x51e,0x473,0x3c7,_0x324f13._0x331667)](_0x4f7363=>{const _0x2e8d96={_0x4261a3:0x107};function _0x528779(_0x504ff9,_0xf7ce8d,_0xd106a3,_0x2d5e89){return _0x2240f8(_0x504ff9-_0x52dca5._0x4a019b,_0xf7ce8d,_0xd106a3-_0x52dca5._0x42bb78,_0x2d5e89-_0x52dca5._0x67fb5c);}function _0x1d205d(_0x58f328,_0x13324c,_0x3e4139,_0x44cc5d){return _0x2240f8(_0x58f328-_0x2e8d96._0x4261a3,_0x13324c,_0x3e4139-0xa4,_0x3e4139-0x49);}return{'type':'function','function':{'name':_0x4f7363['name'],'description':_0x4f7363[_0x1d205d(_0x32d54f._0x5a88d3,0x3b4,_0x32d54f._0x24651e,_0x32d54f._0x171eec)],'parameters':_0x4f7363[_0x528779(0x558,0x5fa,0x52c,0x52a)]}};});}function isImageToolResultBlock(_0x43ad2b){const _0x11a9cd={_0x1ba0cb:0x2ba,_0x8b4eef:0x10a,_0x56d82a:0x159,_0x462290:0x1ce,_0x1b3909:0x400,_0x474ad3:0x4ad,_0x4d6f73:0x629,_0x1a57bf:0x5b3,_0x397c31:0x5fb,_0x172b78:0x5e5,_0x546efe:0x548,_0x4a6ee6:0x5cd,_0x3c25ca:0x545,_0x55e6f9:0x6bd,_0x590e56:0x600,_0x1e9b93:0x62c,_0x341df3:0x5aa,_0x5d31f6:0x591,_0x4d278c:0x4cc,_0x31f762:0x4d6,_0x30c961:0x224,_0x4b93f3:0x2c1,_0x53d467:0x524,_0x461357:0x5ef,_0x3a3cf8:0x31,_0x3355dd:0x86,_0x5f202a:0x6bf,_0x1b345f:0x488},_0x15b990={_0x578a01:0x1a5,_0x288290:0x14f},_0x3cd241={_0x118b0e:0x1db,_0x5a193d:0x16f};function _0x19eebc(_0x15f17a,_0x314e79,_0x431832,_0x58d3cd){return _0x5276b1(_0x15f17a,_0x314e79-_0x3cd241._0x118b0e,_0x431832-_0x3cd241._0x5a193d,_0x58d3cd-0x563);}if(typeof _0x43ad2b!==_0xde0490(_0x11a9cd._0x1ba0cb,_0x11a9cd._0x8b4eef,_0x11a9cd._0x56d82a,_0x11a9cd._0x462290)||_0x43ad2b===null||Array[_0x19eebc(0x520,_0x11a9cd._0x1b3909,0x43c,_0x11a9cd._0x474ad3)](_0x43ad2b))return![];const _0x57b6cc=_0x43ad2b;function _0xde0490(_0x39a89e,_0x4b94bf,_0x4b66af,_0x5ccf0e){return _0x5276b1(_0x4b66af,_0x4b94bf-_0x15b990._0x578a01,_0x4b66af-0x4a,_0x5ccf0e-_0x15b990._0x288290);}return _0x57b6cc[_0x19eebc(_0x11a9cd._0x4d6f73,0x661,_0x11a9cd._0x1a57bf,_0x11a9cd._0x397c31)]===_0x19eebc(_0x11a9cd._0x172b78,0x599,_0x11a9cd._0x546efe,0x578)&&_0x57b6cc[_0x19eebc(_0x11a9cd._0x4a6ee6,_0x11a9cd._0x3c25ca,_0x11a9cd._0x55e6f9,_0x11a9cd._0x590e56)]?.[_0x19eebc(_0x11a9cd._0x1e9b93,0x60b,_0x11a9cd._0x341df3,_0x11a9cd._0x397c31)]===_0x19eebc(_0x11a9cd._0x5d31f6,_0x11a9cd._0x4d278c,0x40a,_0x11a9cd._0x31f762)&&typeof _0x57b6cc[_0xde0490(_0x11a9cd._0x30c961,_0x11a9cd._0x4b93f3,0x284,0x1ec)][_0x19eebc(0x5e6,_0x11a9cd._0x53d467,0x5dd,_0x11a9cd._0x461357)]===_0xde0490(_0x11a9cd._0x3a3cf8,_0x11a9cd._0x3355dd,0x1db,0x119)&&typeof _0x57b6cc[_0x19eebc(0x6f0,0x6d2,_0x11a9cd._0x5f202a,_0x11a9cd._0x590e56)][_0x19eebc(0x415,0x39c,0x4d8,_0x11a9cd._0x1b345f)]==='string';}function getToolResultText(_0x2659dc){const _0x379ddd={_0x25c6cc:0x6ea,_0x43b1a4:0x61e,_0x40da5c:0x724,_0x1077b7:0x6bf,_0xd7c27a:0x75d,_0x31aff1:0x5a1,_0x4dd057:0x647,_0x509739:0x5e4,_0x163fe1:0x56c,_0x132f1b:0x480,_0x562858:0x5e5,_0x2638dd:0x673},_0x40dfd7={_0x50aae5:0x2c4,_0x5c61c9:0x342,_0x546d86:0x753,_0x2ec9bb:0x6f0,_0x196370:0x633,_0x1688ec:0x264,_0x492e85:0x2bd,_0x559e60:0x35e},_0x20c2fe={_0x21db34:0x8d,_0x51c5f7:0xa6},_0x384f92={_0x490d5b:0x1a5},_0x5e9f64={_0x10b4c0:0x141,_0xa5dc34:0x5cb};if(typeof _0x2659dc===_0x474686(_0x379ddd._0x25c6cc,_0x379ddd._0x43b1a4,0x5dc,0x693))return _0x2659dc;function _0x47cad7(_0x267e04,_0x46c80c,_0x3eaf95,_0x556e48){return _0x5276b1(_0x267e04,_0x46c80c-_0x5e9f64._0x10b4c0,_0x3eaf95-0x11c,_0x46c80c-_0x5e9f64._0xa5dc34);}function _0x474686(_0x1a0e49,_0x229611,_0xd18674,_0x4b09cb){return _0x5276b1(_0x4b09cb,_0x229611-_0x384f92._0x490d5b,_0xd18674-0x1de,_0x229611-0x654);}const _0x3aff20=_0x2659dc[_0x474686(0x656,_0x379ddd._0x40da5c,_0x379ddd._0x1077b7,_0x379ddd._0xd7c27a)](_0x4e8f71=>{const _0x18058d={_0x28feeb:0x168,_0x256574:0x391};function _0x1c38b1(_0x1870a3,_0x1d57f7,_0x543b29,_0x4ae884){return _0x474686(_0x1870a3-_0x18058d._0x28feeb,_0x1d57f7- -_0x18058d._0x256574,_0x543b29-0x1e3,_0x543b29);}function _0x555896(_0x22be86,_0x199f59,_0x3ec3cf,_0x3deb2b){return _0x47cad7(_0x22be86,_0x3ec3cf-_0x20c2fe._0x21db34,_0x3ec3cf-_0x20c2fe._0x51c5f7,_0x3deb2b-0x171);}return typeof _0x4e8f71===_0x1c38b1(_0x40dfd7._0x50aae5,_0x40dfd7._0x5c61c9,0x278,0x299)&&_0x4e8f71!==null&&_0x4e8f71[_0x555896(0x733,_0x40dfd7._0x546d86,_0x40dfd7._0x2ec9bb,_0x40dfd7._0x196370)]===_0x1c38b1(_0x40dfd7._0x1688ec,0x34e,_0x40dfd7._0x492e85,_0x40dfd7._0x559e60);})[_0x47cad7(_0x379ddd._0x31aff1,0x5b8,_0x379ddd._0x4dd057,0x56d)](_0xaa494c=>_0xaa494c[_0x474686(0x685,0x6df,0x5f9,0x698)])[_0x474686(0x73d,0x68e,0x5f3,_0x379ddd._0x509739)]('\x0a\x0a')[_0x474686(0x492,_0x379ddd._0x163fe1,0x550,_0x379ddd._0x132f1b)]();return _0x3aff20['length']>0x0?_0x3aff20:_0x474686(_0x379ddd._0x562858,_0x379ddd._0x2638dd,0x5dc,0x5f2);}function getToolResultImages(_0x3ac45e){const _0x36fa47={_0x37b027:0x55,_0x840930:0xab,_0x2cc0a5:0x5c,_0x37f101:0x147,_0x8dae6e:0x135,_0x302913:0x262,_0x4af780:0x1e2,_0x5c3f79:0x1f9},_0x5957c0={_0x5a8581:0x155},_0x1b3fd8={_0x2444c3:0x1c4,_0x116be7:0xf5,_0x20c9cf:0x112};function _0x4e2fa8(_0x323e30,_0x5263cb,_0x256b53,_0x20df44){return _0x5276b1(_0x256b53,_0x5263cb-_0x1b3fd8._0x2444c3,_0x256b53-_0x1b3fd8._0x116be7,_0x5263cb- -_0x1b3fd8._0x20c9cf);}function _0x2e90db(_0x101be2,_0x5103e1,_0x305eda,_0x3a9f9c){return _0x54ac71(_0x101be2-_0x5957c0._0x5a8581,_0x3a9f9c,_0x305eda- -0x2eb,_0x3a9f9c-0x8);}return Array[_0x2e90db(-_0x36fa47._0x37b027,_0x36fa47._0x840930,_0x36fa47._0x2cc0a5,_0x36fa47._0x37f101)](_0x3ac45e)?_0x3ac45e[_0x2e90db(_0x36fa47._0x8dae6e,_0x36fa47._0x302913,_0x36fa47._0x4af780,_0x36fa47._0x5c3f79)](isImageToolResultBlock):[];}function parseToolInput2(_0xfcf19f){const _0x176cac={_0x2adc88:0x40b,_0x48d4e1:0x3e6,_0x195c9b:0x2f6},_0x42f8e5={_0x50c17c:0xa0,_0x501b0d:0xcf},_0x3bdd34={_0x338a3a:0x10f};if(_0xfcf19f[_0x2ceb17(0x464,0x4d9,_0x176cac._0x2adc88,0x4e4)]===0x0)return{};function _0x2ceb17(_0x36eb71,_0x2860db,_0x229f6a,_0x13ac46){return _0x54ac71(_0x36eb71-_0x3bdd34._0x338a3a,_0x36eb71,_0x2860db- -0x5,_0x13ac46-0xdc);}function _0x1836bc(_0xe8d206,_0x5503f1,_0x10c5eb,_0x409a8b){return _0x5276b1(_0x409a8b,_0x5503f1-_0x42f8e5._0x50c17c,_0x10c5eb-_0x42f8e5._0x501b0d,_0x5503f1-0x29c);}try{return JSON[_0x2ceb17(0x3f9,_0x176cac._0x48d4e1,0x43b,_0x176cac._0x195c9b)](_0xfcf19f);}catch{return _0xfcf19f;}}function isResponsesReasoningItem(_0x28a453){const _0x9b7a2f={_0x4291d2:0x415,_0x1da2e8:0x2d7,_0x3088a7:0x2f4,_0x306370:0x27b,_0x5be35f:0xf},_0x2a3668={_0x2d55f0:0x98,_0x3f1507:0x299},_0x3c5708={_0x5c00f6:0xf3,_0x3f3488:0x77};function _0x2f723e(_0x1a08d7,_0x24ecd6,_0x307d90,_0x363b7f){return _0x5276b1(_0x363b7f,_0x24ecd6-_0x3c5708._0x5c00f6,_0x307d90-0x6a,_0x1a08d7-_0x3c5708._0x3f3488);}function _0x48ce4d(_0x1c9a1b,_0x4a91ff,_0x17cf9f,_0x2c8acc){return _0x5276b1(_0x2c8acc,_0x4a91ff-0x6b,_0x17cf9f-_0x2a3668._0x2d55f0,_0x17cf9f-_0x2a3668._0x3f1507);}return typeof _0x28a453===_0x48ce4d(0x240,0x2db,0x318,0x3ac)&&_0x28a453!==null&&_0x48ce4d(_0x9b7a2f._0x4291d2,_0x9b7a2f._0x1da2e8,0x331,0x3ea)in _0x28a453&&_0x28a453[_0x48ce4d(_0x9b7a2f._0x3088a7,0x36d,0x331,_0x9b7a2f._0x306370)]===_0x2f723e(0x6e,0xdc,-_0x9b7a2f._0x5be35f,0x49);}function isResponsesMessageItem(_0x18a1bb){const _0x3a05bd={_0x1b501c:0x33e,_0x5f28ff:0x271,_0x892801:0x357,_0x5900c0:0x407,_0x20809c:0x1f7},_0x1f51b0={_0x289973:0x140},_0x1400b1={_0x2c4f1a:0x74,_0x5cbb70:0x35e,_0x38f5bc:0xe9};function _0x2dd7aa(_0x5d1f82,_0x5196b8,_0x27f7d1,_0x378740){return _0x54ac71(_0x5d1f82-_0x1400b1._0x2c4f1a,_0x5196b8,_0x378740- -_0x1400b1._0x5cbb70,_0x378740-_0x1400b1._0x38f5bc);}function _0x4bffb8(_0x2e1816,_0x1beb4a,_0x3273d1,_0xed6f37){return _0x5276b1(_0x2e1816,_0x1beb4a-0x199,_0x3273d1-_0x1f51b0._0x289973,_0x1beb4a-0x2bf);}return typeof _0x18a1bb===_0x4bffb8(0x424,_0x3a05bd._0x1b501c,0x377,_0x3a05bd._0x5f28ff)&&_0x18a1bb!==null&&_0x4bffb8(0x3cd,_0x3a05bd._0x892801,_0x3a05bd._0x5900c0,0x2d7)in _0x18a1bb&&_0x18a1bb[_0x2dd7aa(0x111,_0x3a05bd._0x20809c,0x119,0x137)]==='message';}function isResponsesFunctionCallItem(_0x43191a){const _0x21ec6a={_0x8ae493:0x30c,_0xc4807b:0x2f0,_0x51163a:0x38c},_0xa2e0e8={_0x1f669a:0x1da,_0x15ea6c:0x71};function _0x5d0cfc(_0x4a36cf,_0x153680,_0x1e9769,_0x22671f){return _0x54ac71(_0x4a36cf-0x2b,_0x153680,_0x4a36cf- -_0xa2e0e8._0x1f669a,_0x22671f-_0xa2e0e8._0x15ea6c);}return typeof _0x43191a==='object'&&_0x43191a!==null&&_0x5d0cfc(0x2bb,_0x21ec6a._0x8ae493,_0x21ec6a._0xc4807b,_0x21ec6a._0x51163a)in _0x43191a&&_0x43191a['type']==='function_call';}function createContentBlocks(_0x264a8b,_0x2d1d5a,_0x53c92c){const _0x146b57={_0x585087:0x3f1,_0x483f03:0x507,_0x153bd6:0x4a4,_0x47fba6:0x3e9,_0x33ee81:0x359,_0x43a344:0x40c,_0xd22a63:0x2ab,_0x29d1d0:0x2a1,_0x540691:0x37a,_0x5330d4:0x444,_0x40412c:0x3fb,_0x2063da:0x360,_0x188813:0x446,_0x25c93e:0x52c,_0x3ea9f5:0x44e,_0x4e468d:0x42e,_0x3dde2:0x325,_0x41e650:0x43e,_0x1c22ae:0x4c9,_0x99c5ee:0x3c8,_0x43790e:0x345,_0x4f13c0:0x2aa,_0x2f95ba:0x302,_0xac3089:0x28c,_0x1f2fa0:0x232,_0x18a42d:0x2db,_0x530021:0x538,_0xdb52a5:0x542,_0x47c4be:0x495,_0x34aa86:0x48c,_0x5490f1:0x304,_0x4f0edf:0x47c,_0x1f7442:0x490,_0x5f21c9:0x3a0,_0x4815c4:0x438,_0x48d6ef:0x2c7},_0x33db22={_0x2161df:0x461},_0x1efaa1={_0x476ac7:0x117};function _0x4448f2(_0x21ae5b,_0x3b12c9,_0x3d1eaf,_0x23650e){return _0x5276b1(_0x3b12c9,_0x3b12c9-0x15a,_0x3d1eaf-_0x1efaa1._0x476ac7,_0x23650e-0x3c3);}const _0x22cfa8=[];function _0x1de24c(_0x1d6266,_0x429f78,_0x3a3f8e,_0x13d6d8){return _0x5276b1(_0x1d6266,_0x429f78-0x56,_0x3a3f8e-0x14c,_0x13d6d8-_0x33db22._0x2161df);}_0x53c92c&&_0x53c92c[_0x4448f2(_0x146b57._0x585087,0x487,_0x146b57._0x483f03,_0x146b57._0x153bd6)]>0x0&&_0x22cfa8[_0x4448f2(0x4e3,_0x146b57._0x47fba6,_0x146b57._0x33ee81,_0x146b57._0x43a344)]({'type':_0x4448f2(0x3ff,_0x146b57._0xd22a63,_0x146b57._0x29d1d0,_0x146b57._0x540691),'summary':[],'text':_0x53c92c});_0x264a8b[_0x4448f2(0x412,_0x146b57._0x5330d4,_0x146b57._0x40412c,0x4a4)]>0x0&&_0x22cfa8[_0x4448f2(0x43f,0x479,_0x146b57._0x2063da,0x40c)]({'type':_0x4448f2(0x523,_0x146b57._0x188813,_0x146b57._0x25c93e,_0x146b57._0x3ea9f5),'text':_0x264a8b});for(const _0x4571f6 of _0x2d1d5a){if(_0x4571f6['id'][_0x1de24c(0x449,_0x146b57._0x4e468d,_0x146b57._0x3dde2,0x379)]()[_0x4448f2(_0x146b57._0x41e650,_0x146b57._0x1c22ae,0x447,0x4a4)]===0x0||_0x4571f6[_0x4448f2(_0x146b57._0x99c5ee,0x433,0x2f9,_0x146b57._0x43790e)][_0x4448f2(0x216,_0x146b57._0x4f13c0,0x3e4,_0x146b57._0x2f95ba)][_0x4448f2(_0x146b57._0xac3089,_0x146b57._0x1f2fa0,0x3cd,_0x146b57._0x18a42d)]()[_0x1de24c(_0x146b57._0x530021,0x59b,0x608,_0x146b57._0xdb52a5)]===0x0)continue;_0x22cfa8[_0x1de24c(0x54d,_0x146b57._0x47c4be,0x3ce,0x4aa)]({'type':_0x1de24c(_0x146b57._0x34aa86,_0x146b57._0x5490f1,_0x146b57._0x4f0edf,0x3f3),'id':_0x4571f6['id'],'name':_0x4571f6['function'][_0x1de24c(_0x146b57._0x1f7442,0x485,0x320,_0x146b57._0x5f21c9)],'input':parseToolInput2(_0x4571f6[_0x4448f2(_0x146b57._0x4815c4,_0x146b57._0x48d6ef,0x31d,_0x146b57._0x43790e)][_0x4448f2(0x242,0x24f,0x38e,0x2e0)])});}return _0x22cfa8;}function createUsage(_0x7ebe4c){const _0x2478bb={_0x1ac679:0x6bb,_0x2d8281:0x26,_0x2a9fe4:0x16,_0x2a714e:0xf6,_0x1ec3c6:0x512,_0x66661c:0x5cf,_0x5c3ab8:0x5bb,_0x168079:0x21,_0x610898:0x11c,_0x446534:0x8c,_0x2a78b6:0x4b4,_0x132b37:0x453,_0x3bd406:0x59b},_0x296ac3={_0x4757cc:0xb3,_0x554070:0x32,_0x3b0ea9:0x5e8},_0x297458={_0x374858:0x386};function _0x5ba236(_0x35cfa0,_0x3ccf5d,_0x3fcaa9,_0x151411){return _0x54ac71(_0x35cfa0-0x16b,_0x151411,_0x35cfa0- -_0x297458._0x374858,_0x151411-0x15d);}function _0x367c5c(_0x1cd9d4,_0x58d686,_0x2720e8,_0x54f168){return _0x5276b1(_0x54f168,_0x58d686-_0x296ac3._0x4757cc,_0x2720e8-_0x296ac3._0x554070,_0x58d686-_0x296ac3._0x3b0ea9);}return{'inputTokens':_0x7ebe4c?.[_0x367c5c(_0x2478bb._0x1ac679,0x5f0,0x6df,0x626)]??0x0,'outputTokens':_0x7ebe4c?.[_0x5ba236(_0x2478bb._0x2d8281,-_0x2478bb._0x2a9fe4,-0x25,_0x2478bb._0x2a714e)]??0x0,..._0x7ebe4c?.[_0x367c5c(_0x2478bb._0x1ec3c6,_0x2478bb._0x66661c,0x505,_0x2478bb._0x5c3ab8)]?.[_0x5ba236(-0x6f,-_0x2478bb._0x168079,-_0x2478bb._0x610898,-_0x2478bb._0x446534)]!==void 0x0?{'reasoningTokens':_0x7ebe4c[_0x367c5c(0x64b,0x5cf,0x574,0x66d)][_0x367c5c(_0x2478bb._0x2a78b6,0x502,_0x2478bb._0x132b37,_0x2478bb._0x3bd406)]}:{}};}function resolveReasoningVisibility2(_0x52b724){const _0x2dae35={_0x22b84f:0x12c,_0x2c7811:0x9d,_0x3ee133:0x1fd,_0x3278c5:0x11a,_0x5a1311:0x9d},_0xadaaef={_0x2018b0:0xe5,_0x2a0c52:0x50e},_0x1b3379={_0x1ab578:0x3ef};function _0x3632b2(_0x18b96a,_0x394b3f,_0x4875c9,_0x5ba5c9){return _0x54ac71(_0x18b96a-0xe5,_0x5ba5c9,_0x4875c9- -_0x1b3379._0x1ab578,_0x5ba5c9-0xbf);}function _0x47681a(_0x1597f6,_0x23553b,_0x15225c,_0x469b1b){return _0x54ac71(_0x1597f6-_0xadaaef._0x2018b0,_0x23553b,_0x469b1b- -_0xadaaef._0x2a0c52,_0x469b1b-0xae);}return _0x52b724[_0x47681a(-_0x2dae35._0x22b84f,-_0x2dae35._0x2c7811,-_0x2dae35._0x3ee133,-_0x2dae35._0x3278c5)]?.[_0x3632b2(-_0x2dae35._0x5a1311,0x7e,0x4a,0xbc)]??'user-visible';}function isUserVisibleReasoning(_0x41df5c){const _0x5a363e={_0x2ea08f:0x304,_0x4e7811:0x44c},_0x2f2205={_0x3546e7:0x91,_0x363ac7:0x3cf};function _0xd03fe6(_0x382b49,_0x5f39ee,_0x4e7185,_0x33aa2b){return _0x5276b1(_0x382b49,_0x5f39ee-0x11,_0x4e7185-_0x2f2205._0x3546e7,_0x33aa2b-_0x2f2205._0x363ac7);}return resolveOpenAiReasoningConfig(_0x41df5c[_0xd03fe6(0x3ea,_0x5a363e._0x2ea08f,_0x5a363e._0x4e7811,0x3c6)])!==void 0x0&&resolveReasoningVisibility2(_0x41df5c)==='user-visible';}function createChatRequestBody(_0x34c993,_0x38daf4){const _0x31216b={_0xd98ea:0x104,_0x5c7528:0x2ca,_0x163814:0x17b,_0x548748:0x287,_0x492007:0x224,_0x57c63d:0xb5,_0x1a8ed1:0x158,_0x4d4ee7:0x219,_0x394c9f:0x1dc,_0x493a53:0x1d0,_0x4b3610:0x1d7,_0x5718f3:0x1b1,_0x189671:0x21f,_0x8f08ae:0x2e3,_0x475924:0x2f6,_0x35a5b6:0x264,_0x77cf52:0x2da,_0x111fda:0x2bf,_0x21d1c0:0x320,_0x271b81:0x20f,_0x29f323:0xf3,_0x2ffa44:0xd3,_0x833d4b:0x172,_0x4a1be5:0x239,_0x369e55:0xab,_0x1fa407:0x14c,_0x50e2fb:0x1ec,_0x4355d7:0x22b,_0x43feb0:0x194,_0x444b28:0x176,_0x56d39b:0x182,_0x59aa93:0x16b,_0x1c1350:0x304,_0x493379:0x113,_0x4d87d6:0x77,_0x5f4f6d:0x1d8,_0xd85d41:0x1dd,_0x5c515b:0x1f5,_0xaac323:0xd3,_0x2fa792:0x147,_0x50e0b1:0x134,_0x59dead:0x2eb,_0xac1066:0x182,_0x594472:0x31,_0x1f075d:0xbf,_0x130811:0x2e2,_0x3db5a1:0x2cf,_0x52bb42:0x2ef,_0x3babd3:0x1ff,_0x6eaebd:0x1ab,_0x45b8e0:0x238,_0x5d9c3d:0x257,_0x5da349:0x1e7,_0x2856ed:0xce,_0x1808e3:0x1a0,_0x37e3ef:0x18b,_0x33e5ae:0x151,_0x191335:0xe2,_0x399790:0x1d3,_0x234e76:0x32b,_0x4fe2f0:0x5e,_0x409e6a:0xc0,_0x35cb38:0x95,_0x45021e:0x23e,_0x167db8:0x1d9,_0x108de5:0x280,_0x1a3224:0x109,_0x436690:0x26d,_0x12e243:0x1fd,_0x3ca63c:0x26e,_0x342d56:0xf7,_0xddf14:0x148,_0x4f1ef3:0x85,_0x309d9b:0x1f6,_0x5c70fc:0xf6,_0x5e92ae:0xe7},_0x2fa8fd={_0x5d6842:0x39,_0x140dd1:0x1ae,_0x175b13:0x18e},_0x2fa1fc={_0x4e6381:0x12a,_0x59300f:0x12b,_0x540dba:0x144,_0x4f9876:0x4f,_0x3534f8:0xec,_0x4f5efe:0x21,_0x2e6f16:0x9f,_0x1c355f:0xfb,_0x5af82d:0x1ab,_0xa0de78:0xcc,_0x59b900:0x68,_0x559d6b:0x54,_0x32a467:0x262,_0x30b978:0xaa,_0x474c70:0x11b,_0x429f1c:0x209,_0x208396:0x1db,_0x330a7d:0xc3,_0x22cc79:0x55,_0x54163c:0x10d,_0x3678a3:0x103,_0x429cf2:0x197,_0x55256b:0x7c,_0x341b4c:0x91,_0x150402:0x1b1,_0x2c5e83:0xea,_0x2becda:0x3e,_0x1de8fc:0x18a,_0x53eb67:0x1ee,_0x599b2f:0xa7,_0x772ee9:0x1a6,_0x3f448f:0xf4,_0x33f374:0x54,_0x217c7d:0xbf,_0x30c247:0xb1,_0x1aa782:0x1e3,_0x2c54e9:0x93},_0xe00103={_0x43466d:0x145},_0x363400={_0x30422e:0x6f,_0x5c5b92:0x12f},_0x12b8ee=[],_0x4a5bbf=stringifySystem(_0x34c993['system']);_0x4a5bbf['length']>0x0&&_0x12b8ee[_0x1e2a41(0x26e,_0x31216b._0xd98ea,0x1d7,_0x31216b._0x5c7528)]({'role':_0x1e2a41(_0x31216b._0x163814,_0x31216b._0x548748,_0x31216b._0x492007,0x1de),'content':_0x4a5bbf});function _0x342ac6(_0x3bcded,_0xbad6e8,_0x3a98b8,_0x32749d){return _0x54ac71(_0x3bcded-_0x363400._0x30422e,_0xbad6e8,_0x3bcded- -0x269,_0x32749d-_0x363400._0x5c5b92);}for(const _0x59e54d of _0x34c993[_0x342ac6(0x187,0xb6,_0x31216b._0x57c63d,0x216)]){const _0x16ab59=[],_0x584c32=[],_0x394d4e=[],_0x3b88c8=()=>{const _0x1c01ed={_0x1dded8:0xd4};if(_0x59e54d['role']===_0x243e69(_0x2fa1fc._0x4e6381,0xd1,_0x2fa1fc._0x59300f,0x119)){if(_0x16ab59[_0x312b51(-0xcf,0x5,-0x54,-0x118)]===0x0&&_0x584c32[_0x243e69(0x19b,0x218,_0x2fa1fc._0x540dba,0x196)]===0x0)return;_0x12b8ee[_0x312b51(-_0x2fa1fc._0x4f9876,-0x103,-_0x2fa1fc._0x3534f8,-_0x2fa1fc._0x4f5efe)]({'role':'assistant','content':_0x16ab59['length']>0x0?_0x16ab59[_0x312b51(-0x2f,-_0x2fa1fc._0x2e6f16,-_0x2fa1fc._0x1c355f,-_0x2fa1fc._0x5af82d)]('\x0a\x0a'):null,..._0x584c32[_0x312b51(-_0x2fa1fc._0xa0de78,_0x2fa1fc._0x59b900,-_0x2fa1fc._0x559d6b,0x5c)]>0x0?{'tool_calls':_0x584c32[_0x312b51(-_0x2fa1fc._0x32a467,-0x20b,-0x1a2,-0x104)](0x0)}:{}}),_0x16ab59[_0x312b51(-_0x2fa1fc._0x30b978,0x63,-_0x2fa1fc._0x559d6b,-0x110)]=0x0;return;}function _0x243e69(_0x3b3650,_0x3b410c,_0x2eb765,_0x57030e){return _0x1e2a41(_0x3b410c,_0x3b410c-0xc2,_0x3b3650- -_0x1c01ed._0x1dded8,_0x57030e-0x152);}if(_0x59e54d['role']===_0x243e69(_0x2fa1fc._0x474c70,_0x2fa1fc._0x429f1c,0x167,_0x2fa1fc._0x208396)){if(_0x394d4e[_0x243e69(0x19b,_0x2fa1fc._0x330a7d,0x12b,0x1b5)]===0x0)return;const _0x745ad5=_0x394d4e[_0x312b51(0x5e,0x70,-_0x2fa1fc._0x22cc79,-_0x2fa1fc._0x54163c)](_0x36163e=>_0x36163e[_0x243e69(0x152,0xd8,0x70,0x1b7)]==='image_url');_0x12b8ee[_0x243e69(_0x2fa1fc._0x3678a3,_0x2fa1fc._0x429cf2,_0x2fa1fc._0x55256b,0xe)]({'role':_0x312b51(-_0x2fa1fc._0x341b4c,-_0x2fa1fc._0x150402,-0xd4,-0x119),'content':_0x745ad5?_0x394d4e['splice'](0x0):_0x394d4e[_0x243e69(0x4d,_0x2fa1fc._0x2c5e83,-_0x2fa1fc._0x2becda,0x50)](0x0)[_0x243e69(_0x2fa1fc._0x1de8fc,0x271,_0x2fa1fc._0x53eb67,0x1d3)](_0x38a242=>_0x38a242[_0x243e69(0x152,0xce,0x1b8,0x21e)]==='text')[_0x243e69(_0x2fa1fc._0x599b2f,-0x9,0xd1,0x12d)](_0x1738b6=>_0x1738b6[_0x312b51(-0x34,0x2b,-0xaa,-0x139)])[_0x312b51(-_0x2fa1fc._0x772ee9,-0xb9,-0xfb,-0xc)]('\x0a\x0a')});return;}if(_0x16ab59[_0x312b51(-_0x2fa1fc._0x3f448f,0x83,-_0x2fa1fc._0x33f374,0x71)]===0x0)return;_0x12b8ee[_0x312b51(-_0x2fa1fc._0x217c7d,-_0x2fa1fc._0x30c247,-_0x2fa1fc._0x3534f8,-_0x2fa1fc._0x150402)]({'role':_0x59e54d['role'],'content':_0x16ab59[_0x243e69(_0x2fa1fc._0x3f448f,0x162,0x170,_0x2fa1fc._0x1aa782)]('\x0a\x0a')});function _0x312b51(_0x1be009,_0x4d5b65,_0x4ef25a,_0x3f4796){return _0x342ac6(_0x4ef25a- -0x2c9,_0x1be009,_0x4ef25a-0x1f2,_0x3f4796-_0xe00103._0x43466d);}_0x16ab59[_0x312b51(0x80,-0x13,-0x54,-_0x2fa1fc._0x2c54e9)]=0x0;};for(const _0x296407 of normalizeContent(_0x59e54d[_0x342ac6(0x243,0x17b,0x330,0x23a)])){if(_0x296407['type']===_0x1e2a41(_0x31216b._0x1a8ed1,0x256,_0x31216b._0x4d4ee7,0x21a)){_0x59e54d['role']===_0x1e2a41(_0x31216b._0x394c9f,0x229,0x1ef,0x213)?_0x394d4e[_0x1e2a41(0x285,_0x31216b._0x493a53,_0x31216b._0x4b3610,_0x31216b._0x5718f3)]({'type':_0x342ac6(_0x31216b._0x189671,0x172,0x269,0x2e3),'text':_0x296407[_0x1e2a41(_0x31216b._0x8f08ae,_0x31216b._0x475924,0x219,0x1da)]}):_0x16ab59[_0x1e2a41(0x167,0x204,0x1d7,_0x31216b._0x35a5b6)](_0x296407['text']);continue;}if(_0x59e54d['role']===_0x342ac6(0x1f5,0x1af,0x1fe,_0x31216b._0x77cf52)&&_0x296407[_0x342ac6(0x22c,_0x31216b._0x111fda,0x1c1,_0x31216b._0x21d1c0)]==='image'){_0x394d4e[_0x1e2a41(_0x31216b._0x271b81,0x27a,0x1d7,0x231)]({'type':_0x1e2a41(0x1e4,_0x31216b._0x29f323,0x160,0x20f),'image_url':{'url':_0x342ac6(0x167,_0x31216b._0x2ffa44,0x1ea,_0x31216b._0x833d4b)+_0x296407['source'][_0x342ac6(0x220,0x237,_0x31216b._0x4a1be5,0x20e)]+_0x1e2a41(0x13,_0x31216b._0x369e55,0xd4,_0x31216b._0x1fa407)+_0x296407[_0x1e2a41(_0x31216b._0x50e2fb,0x266,_0x31216b._0x4355d7,_0x31216b._0x43feb0)][_0x1e2a41(_0x31216b._0x444b28,-0x3d,0xb3,_0x31216b._0x56d39b)]}});continue;}if(_0x296407[_0x1e2a41(_0x31216b._0x59aa93,_0x31216b._0x1c1350,0x226,0x1cd)]===_0x342ac6(0x126,_0x31216b._0x493379,_0x31216b._0x4d87d6,_0x31216b._0x5f4f6d)){_0x584c32[_0x342ac6(_0x31216b._0xd85d41,_0x31216b._0x5c515b,0x1ee,0x1de)]({'id':_0x296407['id'],'type':'function','function':{'name':_0x296407[_0x342ac6(_0x31216b._0xaac323,0x81,_0x31216b._0x2fa792,_0x31216b._0x50e0b1)],'arguments':JSON['stringify'](_0x296407['input']??{})}});continue;}if(_0x296407[_0x1e2a41(_0x31216b._0x59dead,_0x31216b._0x163814,0x226,0x209)]!=='tool_result')continue;_0x3b88c8(),_0x12b8ee['push']({'role':_0x342ac6(0xce,_0x31216b._0xac1066,_0x31216b._0x594472,_0x31216b._0x1f075d),'content':getToolResultText(_0x296407[_0x342ac6(0x243,0x1bb,0x2a0,0x2ec)]),'tool_call_id':_0x296407[_0x342ac6(0x24a,0x1ce,_0x31216b._0x130811,0x2e0)]});const _0xaa08ce=getToolResultImages(_0x296407[_0x1e2a41(_0x31216b._0x3db5a1,_0x31216b._0x52bb42,0x23d,_0x31216b._0x3babd3)]);_0xaa08ce[_0x342ac6(0x275,_0x31216b._0x6eaebd,_0x31216b._0x4a1be5,0x2d4)]>0x0&&_0x12b8ee[_0x1e2a41(0x281,0xfb,0x1d7,0x103)]({'role':_0x1e2a41(0x131,_0x31216b._0x45b8e0,0x1ef,_0x31216b._0x5d9c3d),'content':[{'type':'text','text':_0x342ac6(_0x31216b._0x5da349,0x166,0x186,_0x31216b._0x4b3610)+_0x296407['tool_use_id']+'.'},..._0xaa08ce[_0x342ac6(0x181,0xb7,_0x31216b._0x2856ed,_0x31216b._0x1808e3)](_0x48c787=>({'type':_0x342ac6(0x166,0x1a6,0x170,0x173),'image_url':{'url':_0x342ac6(0x167,0xf7,0xac,0x99)+_0x48c787[_0x342ac6(0x231,0x19e,0x210,0x260)]['media_type']+_0x1e2a41(0x144,0x9a,0xd4,0x26)+_0x48c787[_0x342ac6(0x231,0x206,0x2ad,0x277)][_0x342ac6(0xb9,0x90,0x82,-0x21)]}}))]});}_0x3b88c8();}const _0x2e1778=resolveOpenAiReasoningConfig(_0x34c993[_0x342ac6(_0x31216b._0x37e3ef,0x23e,_0x31216b._0x33e5ae,_0x31216b._0x191335)]);function _0x1e2a41(_0x1ce941,_0x3a216d,_0x44b1ed,_0x5340d5){return _0x5276b1(_0x1ce941,_0x3a216d-_0x2fa8fd._0x5d6842,_0x44b1ed-_0x2fa8fd._0x140dd1,_0x44b1ed-_0x2fa8fd._0x175b13);}return{'model':_0x34c993[_0x1e2a41(_0x31216b._0x399790,_0x31216b._0x234e76,0x276,0x2db)],'messages':_0x12b8ee,'stream':_0x38daf4,..._0x34c993[_0x1e2a41(_0x31216b._0x4fe2f0,_0x31216b._0x409e6a,_0x31216b._0x35cb38,0x11f)]!==void 0x0?_0x2e1778?{'max_completion_tokens':_0x34c993['maxTokens']}:{'max_tokens':_0x34c993['maxTokens']}:{},..._0x2e1778?.[_0x1e2a41(0x1ea,_0x31216b._0x45021e,0x1f4,_0x31216b._0x167db8)]?{'reasoning_effort':_0x2e1778[_0x342ac6(0x1fa,0x107,_0x31216b._0x108de5,_0x31216b._0x1a3224)]}:{},...createToolDefinitions(_0x34c993[_0x342ac6(0x198,0x1eb,0x25d,_0x31216b._0x436690)])?{'tools':createToolDefinitions(_0x34c993[_0x1e2a41(_0x31216b._0x12e243,_0x31216b._0x3ca63c,0x192,0x157)])}:{},..._0x34c993['outputFormat']?{'response_format':{'type':_0x342ac6(_0x31216b._0x342d56,0x9,0x181,0x193),'json_schema':{'name':_0x34c993[_0x342ac6(0xba,0x138,0x12a,0x83)]['name']??_0x342ac6(0xc7,_0x31216b._0xddf14,0x128,_0x31216b._0x4f1ef3),'schema':_0x34c993['outputFormat'][_0x1e2a41(_0x31216b._0x309d9b,0x111,0x1e6,_0x31216b._0x5c70fc)],'strict':_0x34c993['outputFormat'][_0x342ac6(0x1c0,_0x31216b._0x5e92ae,0x221,0x280)]??!![]}}}:{}};}function createResponsesRequestBody(_0x4a727e,_0x14f042,_0x13a08c){const _0x5856a7=_0x13a08c?.(_0x4a727e);return{...toOpenAiResponsesRequest(_0x4a727e),..._0x14f042?{'stream':!![]}:{},..._0x5856a7!==void 0x0?{'prompt_cache_key':_0x5856a7}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x55c593,_0x31abbb={}){const _0x2ed95c={_0x35c228:0x43c,_0x2ddc8f:0x464,_0x2cb146:0x339,_0x1f47da:0x402,_0x210e9c:0x391,_0x3c2b1d:0x620,_0xaddd4a:0x4bb,_0x5c5645:0x52e,_0x523008:0x5f1},_0x407a4e={_0x41a958:0x4b,_0x230e92:0xc1,_0x55b656:0x48},_0x42ea39={_0x242568:0xf0,_0x2d1e91:0xd4},_0x297e3a=toOpenAiResponsesRequest(_0x55c593);function _0x56abd8(_0x39ad6a,_0x2381c6,_0x804f7b,_0x5c6f53){return _0x5276b1(_0x39ad6a,_0x2381c6-_0x42ea39._0x242568,_0x804f7b-_0x42ea39._0x2d1e91,_0x2381c6-0x4c4);}function _0x23f7a2(_0x1c741f,_0x34981d,_0x381b2a,_0x18b883){return _0x54ac71(_0x1c741f-_0x407a4e._0x41a958,_0x34981d,_0x381b2a-_0x407a4e._0x230e92,_0x18b883-_0x407a4e._0x55b656);}return{'type':'response.create',..._0x297e3a,..._0x31abbb['input']?{'input':_0x31abbb[_0x56abd8(_0x2ed95c._0x35c228,_0x2ed95c._0x2ddc8f,0x3b2,0x52f)]}:{},..._0x31abbb['promptCacheKey']!==void 0x0?{'prompt_cache_key':_0x31abbb[_0x23f7a2(0x3ac,_0x2ed95c._0x2cb146,_0x2ed95c._0x1f47da,_0x2ed95c._0x210e9c)]}:{},..._0x31abbb[_0x56abd8(0x594,0x52e,0x471,_0x2ed95c._0x3c2b1d)]?{'previous_response_id':_0x31abbb[_0x56abd8(_0x2ed95c._0xaddd4a,_0x2ed95c._0x5c5645,0x480,_0x2ed95c._0x523008)]}:{},'store':![]};}function normalizeAssistantContent(_0x51b968){const _0x225e37={_0x10de25:0x150,_0x3b8972:0x108,_0x1e77c8:0xf9,_0x5e7372:0x126,_0x212891:0x233,_0x225a27:0x164},_0x113d55={_0x43c097:0x148,_0x1b239e:0x2b,_0x3c011c:0x84,_0x92d506:0xe8,_0xc525ea:0x4d0,_0x22edc0:0x3f8,_0x40471c:0x4ff,_0x128613:0x373,_0x49d4a3:0x464},_0x32300a={_0x2ba15a:0x34d},_0x144b39={_0x43884a:0x37},_0x1ef113={_0x12a299:0xfd,_0x768c01:0x177};function _0x5b2282(_0xe7d194,_0x2bb871,_0xd8bdfa,_0x436c99){return _0x5276b1(_0x2bb871,_0x2bb871-_0x1ef113._0x12a299,_0xd8bdfa-0x133,_0x436c99-_0x1ef113._0x768c01);}function _0x598dac(_0x481520,_0x15c6af,_0x5b5870,_0x323ec4){return _0x54ac71(_0x481520-_0x144b39._0x43884a,_0x323ec4,_0x481520- -0x1cc,_0x323ec4-0x133);}if(typeof _0x51b968===_0x5b2282(0x1ca,0x1ef,_0x225e37._0x10de25,0x141))return _0x51b968;if(!Array[_0x598dac(0x17b,0x269,_0x225e37._0x3b8972,0x198)](_0x51b968))return'';return _0x51b968[_0x5b2282(_0x225e37._0x1e77c8,_0x225e37._0x5e7372,_0x225e37._0x212891,_0x225e37._0x225a27)](_0x4b147e=>{const _0xf3638a={_0x4770ad:0x214};function _0x4bda29(_0x200537,_0x186b54,_0x400380,_0x432b34){return _0x598dac(_0x200537-_0xf3638a._0x4770ad,_0x186b54-0x104,_0x400380-0x1f,_0x432b34);}function _0x58bbc6(_0x24e8c6,_0x2b47d6,_0x49cc92,_0x251e42){return _0x598dac(_0x49cc92- -_0x32300a._0x2ba15a,_0x2b47d6-0x52,_0x49cc92-0x5,_0x24e8c6);}return _0x4b147e[_0x58bbc6(-_0x113d55._0x43c097,-_0x113d55._0x1b239e,-_0x113d55._0x3c011c,-_0x113d55._0x92d506)]===_0x4bda29(_0x113d55._0xc525ea,_0x113d55._0x22edc0,0x40b,_0x113d55._0x40471c)?_0x4b147e['text']:_0x4b147e[_0x4bda29(0x44b,0x3e5,_0x113d55._0x128613,_0x113d55._0x49d4a3)];})['join']('');}function normalizeResponsesMessageContent(_0x2cacd7){const _0x3110b1={_0x2e3b27:0x61b,_0x242449:0x67b},_0x25053c={_0x25cf4d:0x98,_0x88eb69:0x11a,_0x4630e5:0xb,_0x46eb09:0x3c,_0x42aed3:0x8,_0x2bcbc0:0x37,_0x8bc56d:0x12d,_0x4ebcfd:0xb5,_0x2002cf:0xa3,_0xeac1f:0x25,_0x3422c3:0x3,_0x45ba28:0x146,_0x31eb77:0x160,_0x1924ea:0xdc,_0x216ddb:0x3d},_0x28ed62={_0x2ed2ea:0xfb,_0x3c6098:0x1b7},_0x574722={_0x2e44c2:0x1aa};function _0x11819a(_0x4b2eeb,_0x565f29,_0x42c805,_0x2ec432){return _0x5276b1(_0x565f29,_0x565f29-_0x574722._0x2e44c2,_0x42c805-0x9b,_0x4b2eeb-0x641);}if(!Array[_0x5b3892(0x3be,0x32f,0x31b,0x41f)](_0x2cacd7))return'';function _0x5b3892(_0x5071ee,_0x1c31e0,_0x7c1d71,_0x383d9a){return _0x54ac71(_0x5071ee-_0x28ed62._0x2ed2ea,_0x1c31e0,_0x5071ee-0x77,_0x383d9a-_0x28ed62._0x3c6098);}return _0x2cacd7[_0x11819a(0x62e,0x586,_0x3110b1._0x2e3b27,0x68f)](_0x1d0e17=>{const _0x3eb5fb={_0x2451bf:0xf4};function _0x40ea47(_0x21adbc,_0xf3f68,_0x30a0d3,_0x133f90){return _0x11819a(_0x133f90- -0x63f,_0xf3f68,_0x30a0d3-0x5b,_0x133f90-_0x3eb5fb._0x2451bf);}if(!_0x1d0e17||typeof _0x1d0e17!==_0x150ab7(-_0x25053c._0x25cf4d,_0x25053c._0x88eb69,-_0x25053c._0x4630e5,_0x25053c._0x46eb09))return'';const _0xdb984c=_0x1d0e17;if(_0xdb984c[_0x40ea47(-_0x25053c._0x42aed3,0xe1,0x160,0x9a)]===_0x40ea47(-0xd,-_0x25053c._0x2bcbc0,-_0x25053c._0x8bc56d,-_0x25053c._0x4ebcfd)&&typeof _0xdb984c[_0x150ab7(_0x25053c._0x2002cf,_0x25053c._0xeac1f,0xe,0x48)]==='string')return _0xdb984c[_0x150ab7(0xc8,0xa,-_0x25053c._0x3422c3,0x48)];if(_0xdb984c[_0x40ea47(0x7b,_0x25053c._0x45ba28,_0x25053c._0x31eb77,0x9a)]===_0x40ea47(-0x6a,0x53,0x5e,_0x25053c._0x42aed3)&&typeof _0xdb984c[_0x150ab7(-0x72,-0x116,-_0x25053c._0x1924ea,-_0x25053c._0x216ddb)]===_0x40ea47(0x64,-0x60,-0xd8,-0x34))return _0xdb984c['refusal'];function _0x150ab7(_0x3759cd,_0x58945f,_0x526a9c,_0x242dda){return _0x11819a(_0x242dda- -0x684,_0x526a9c,_0x526a9c-0x1cf,_0x242dda-0x190);}return'';})[_0x11819a(_0x3110b1._0x242449,0x724,0x690,0x608)]('');}function extractOpenAiReasoningText(_0x3be837){const _0x4af2be={_0x181227:0x743,_0x3bece9:0x613,_0x1e7e1a:0x5a4,_0xba83cc:0x685,_0x5d7fd3:0xe7,_0x37ef35:0x20d,_0x3357ce:0x5a0,_0x231f79:0x5c2,_0x99b833:0x614,_0x5acad3:0x4ec,_0x457009:0x638},_0x5b4e6b={_0x10a9cb:0x10b},_0x1521a2={_0xcbdbf2:0x141};function _0x33e921(_0xfdb334,_0x5090b5,_0x1455e5,_0x538bc9){return _0x54ac71(_0xfdb334-_0x1521a2._0xcbdbf2,_0x538bc9,_0xfdb334-0x1dd,_0x538bc9-0x1e7);}if(typeof _0x3be837[_0x33e921(0x665,_0x4af2be._0x181227,_0x4af2be._0x3bece9,0x626)]===_0x33e921(_0x4af2be._0x1e7e1a,0x5d4,_0x4af2be._0xba83cc,0x672))return _0x3be837['text'];if(!Array[_0x511565(-0x21d,-_0x4af2be._0x5d7fd3,-0x1a7,-_0x4af2be._0x37ef35)](_0x3be837[_0x33e921(0x689,0x77e,_0x4af2be._0x3357ce,_0x4af2be._0x231f79)]))return'';function _0x511565(_0x340842,_0x4316ea,_0x51f4de,_0x55c1f8){return _0x54ac71(_0x340842-0x1c6,_0x55c1f8,_0x51f4de- -0x4ee,_0x55c1f8-_0x5b4e6b._0x10a9cb);}return _0x3be837['content'][_0x33e921(0x6aa,0x75d,0x75f,_0x4af2be._0x99b833)](_0x27cadd=>_0x27cadd[_0x511565(-0xe8,0x2c,-0x59,-0xc3)]===_0x511565(-0x94,-0xb2,-0xa0,-0x138)&&typeof _0x27cadd[_0x33e921(0x665,0x6ab,0x742,0x687)]===_0x511565(-0x218,-0x218,-0x127,-0x34))[_0x33e921(0x5c7,0x621,_0x4af2be._0x5acad3,_0x4af2be._0x457009)](_0x267912=>_0x267912[_0x33e921(0x665,0x570,0x5a3,0x576)]??'')['join']('');}function createOpenAiReasoningBlock(_0x3c8f03){const _0x3642af={_0x38565e:0x412,_0x77c057:0x6a0,_0x2268cd:0x6a4,_0x2ec742:0x652,_0x254fa0:0x75d,_0x19a6af:0x6b1,_0x33184a:0x6b4,_0x567327:0x75a,_0x250a9f:0x763,_0x401b3c:0x5e5,_0x4a9eac:0x5ca},_0x29dcb6={_0x1ff7f5:0x1ed,_0x43e794:0x24b,_0x582c31:0x144},_0x2f4170={_0x14e5f2:0x107};function _0xe93cc4(_0x5f1b95,_0x3b31b7,_0x1e8927,_0x1d23d0){return _0x54ac71(_0x5f1b95-0x15c,_0x1d23d0,_0x5f1b95-_0x2f4170._0x14e5f2,_0x1d23d0-0x1c8);}function _0x1a0053(_0x3a51fd,_0x1e090a,_0x5bad27,_0x287f79){return _0x54ac71(_0x3a51fd-_0x29dcb6._0x1ff7f5,_0x287f79,_0x1e090a-_0x29dcb6._0x43e794,_0x287f79-_0x29dcb6._0x582c31);}const _0x48e43d=extractOpenAiReasoningText(_0x3c8f03);return{'type':_0xe93cc4(0x4bb,_0x3642af._0x38565e,0x513,0x437),'summary':structuredClone(_0x3c8f03[_0x1a0053(_0x3642af._0x77c057,_0x3642af._0x2268cd,_0x3642af._0x2ec742,_0x3642af._0x254fa0)]??[]),..._0x3c8f03['id']?{'id':_0x3c8f03['id']}:{},..._0x3c8f03[_0x1a0053(_0x3642af._0x19a6af,_0x3642af._0x33184a,0x676,0x6d9)]?{'encryptedContent':_0x3c8f03[_0x1a0053(_0x3642af._0x2ec742,0x6b4,_0x3642af._0x567327,_0x3642af._0x250a9f)]}:{},..._0x48e43d[_0xe93cc4(_0x3642af._0x401b3c,0x571,_0x3642af._0x4a9eac,0x5a8)]>0x0?{'text':_0x48e43d}:{}};}function hasVisibleOpenAiReasoning(_0x5970e9){const _0x30450a={_0x254615:0x30,_0x4adbac:0xac,_0x5b8cf5:0x2c9,_0x37093d:0x2d8,_0x1d2de5:0x9f,_0xe7369c:0x12a,_0x11586f:0x86,_0x360f39:0x1e7,_0x4e6c1a:0x1d7},_0x41b1b3={_0x109985:0x188,_0x67b154:0x2c};function _0x16dd35(_0x36bb9b,_0x1935ed,_0x1b8af9,_0x1a186a){return _0x5276b1(_0x1b8af9,_0x1935ed-0x73,_0x1b8af9-0x1d4,_0x1935ed-0x21d);}function _0x50aa1d(_0x2d038b,_0x3ccf6a,_0x510850,_0x55f404){return _0x5276b1(_0x510850,_0x3ccf6a-_0x41b1b3._0x109985,_0x510850-0xa0,_0x3ccf6a- -_0x41b1b3._0x67b154);}return _0x5970e9[_0x50aa1d(-0x76,_0x30450a._0x254615,-_0x30450a._0x4adbac,-0x37)][_0x16dd35(_0x30450a._0x5b8cf5,0x2fe,_0x30450a._0x37093d,0x2c6)]>0x0||typeof _0x5970e9[_0x50aa1d(_0x30450a._0x1d2de5,0x5f,_0x30450a._0xe7369c,-_0x30450a._0x11586f)]===_0x16dd35(0x229,_0x30450a._0x360f39,0x2b0,_0x30450a._0x4e6c1a);}function parseChatCompletionResponse(_0xffc2){const _0x126308={_0x23b82f:0x157,_0x43afe5:0xa3,_0x4bd1b5:0x32,_0x54937b:0xb0,_0x35f376:0x115,_0x1d81d4:0x11,_0x31df7f:0xaf,_0x1b1a9b:0x143,_0x2985c1:0x15d,_0x80bb52:0x191,_0x3562aa:0x55,_0xd234c5:0x2e,_0x2459dd:0x99,_0x251399:0xa8,_0x6d95ff:0xd1,_0x7743cc:0x147,_0x50df84:0x86,_0x1fe1c0:0x36},_0x2596c8={_0x55e52a:0x397,_0x54c0af:0xcd},_0x42f533={_0x3628bf:0x3d6};function _0x2a070c(_0x4fe837,_0x417339,_0x19f38c,_0x3e7290){return _0x54ac71(_0x4fe837-0x104,_0x19f38c,_0x417339- -_0x42f533._0x3628bf,_0x3e7290-0x175);}const _0x29ac94=[],_0x10247f=[];let _0x5e4087=_0x31dd30(_0x126308._0x23b82f,0xbf,0x11f,_0x126308._0x43afe5);for(const _0x2fa105 of _0xffc2[_0x2a070c(-_0x126308._0x4bd1b5,_0x126308._0x54937b,0x6,0x8)]??[]){const _0x1dd3ac=_0x2fa105['message'],_0x32de61=normalizeAssistantContent(_0x1dd3ac?.[_0x31dd30(0x14b,_0x126308._0x35f376,0xd0,0x92)]);_0x32de61['length']>0x0&&_0x29ac94[_0x31dd30(_0x126308._0x1d81d4,_0x126308._0x31df7f,_0x126308._0x1b1a9b,0x18a)](_0x32de61),_0x1dd3ac?.['tool_calls']&&_0x10247f[_0x31dd30(0x150,0xaf,_0x126308._0x2985c1,_0x126308._0x80bb52)](..._0x1dd3ac[_0x31dd30(_0x126308._0x3562aa,-0x48,_0x126308._0xd234c5,-0x118)]),_0x2fa105['finish_reason']===_0x31dd30(-0x92,-0x48,_0x126308._0x2459dd,-0x7c)&&(_0x5e4087=_0x31dd30(-_0x126308._0x251399,-0x8,0x14,-0xf6));}_0x10247f[_0x31dd30(_0x126308._0x6d95ff,_0x126308._0x7743cc,0x7e,0x129)]>0x0&&(_0x5e4087='tool_use');function _0x31dd30(_0x3f32fd,_0x490eb9,_0x18a158,_0x17f20c){return _0x54ac71(_0x3f32fd-0x1aa,_0x3f32fd,_0x490eb9- -_0x2596c8._0x55e52a,_0x17f20c-_0x2596c8._0x54c0af);}return{'id':_0xffc2['id']??'chatcmpl-'+Date['now'](),'content':createContentBlocks(_0x29ac94[_0x2a070c(0x39,0x61,0x116,-_0x126308._0x50df84)](''),_0x10247f),'stopReason':_0x5e4087,'usage':createUsage(_0xffc2[_0x31dd30(_0x126308._0x1fe1c0,0xb3,0x137,0x153)])};}function parseResponsesResponse(_0x517664,_0x571fce){const _0x3d26f0={_0x4f9dae:0x8f,_0x1b3f5d:0x48,_0x48c1f1:0x303,_0x3da6f9:0x3e8,_0x4c80a6:0x388,_0x1dda80:0x42b,_0x2aa1f5:0x44e,_0x28a162:0x480,_0x5d0a96:0x4de,_0x2e2caf:0x41e,_0x24453e:0x2a0,_0x1130f9:0x27,_0xc8b856:0x1dc,_0x4794b6:0x2b7,_0x1dfc23:0x254,_0x181bed:0x20c,_0x10abaa:0x2d2,_0x1b498e:0x314,_0x44036a:0x21d,_0x19ea14:0x2de,_0x36ddb5:0x6e,_0x5eccb7:0x10c,_0x548e68:0x464,_0x2edb4d:0x3e8,_0x5a3c8b:0xc7,_0x777385:0x100,_0x2e899c:0xa,_0x226a48:0xbe,_0x3636d7:0x3a6,_0x12cbf6:0x144,_0x39b8b3:0x2e8,_0x3fae6b:0x2a0,_0x5b2b27:0x1a7,_0x49afa5:0x175,_0x89fab0:0x1e5,_0x1267d6:0xd4,_0x171a3c:0x10b,_0x32dbb7:0x1b7,_0x4186eb:0x153,_0x455781:0x164,_0x4c215e:0x469,_0x272c13:0x47f,_0x296814:0x563,_0x4d188f:0xfe,_0xbab076:0x4b3,_0x3f46d0:0x368,_0x37fe93:0x3ec,_0x6f1974:0x3cf,_0x3ace8d:0x20d,_0x13bbcf:0x325,_0x3807a4:0x40b,_0xa438b:0x18d,_0xbf1749:0x25a,_0x35cb92:0x179,_0x5947a4:0xa9,_0x5a3550:0x22,_0x1c2380:0x104,_0x508ffa:0x46,_0x489c05:0x348,_0x242e1f:0x3ec,_0x4d8102:0x3d2,_0x96d3f1:0xb7,_0x34f0ee:0x2bf,_0x6c85b3:0x42},_0x2462ce={_0x5c9a28:0xd3},_0x5326ff=[];function _0x270629(_0x435951,_0x219570,_0x3698fe,_0x37e423){return _0x54ac71(_0x435951-0x47,_0x37e423,_0x219570- -0x5e,_0x37e423-0xb6);}for(const _0xe97731 of _0x517664[_0x4c4883(_0x3d26f0._0x4f9dae,-0x7,0x12e,_0x3d26f0._0x1b3f5d)]??[]){if(isResponsesReasoningItem(_0xe97731)){if(isUserVisibleReasoning(_0x571fce)){const _0x4aa232=createOpenAiReasoningBlock(_0xe97731);hasVisibleOpenAiReasoning(_0x4aa232)&&_0x5326ff[_0x270629(_0x3d26f0._0x48c1f1,_0x3d26f0._0x3da6f9,_0x3d26f0._0x4c80a6,0x3c2)](_0x4aa232);}continue;}if(isResponsesMessageItem(_0xe97731)){const _0x134646=normalizeResponsesMessageContent(_0xe97731[_0x270629(_0x3d26f0._0x1dda80,_0x3d26f0._0x2aa1f5,0x540,0x4d7)]);_0x134646[_0x270629(0x555,_0x3d26f0._0x28a162,0x53f,_0x3d26f0._0x5d0a96)]>0x0&&_0x5326ff['push']({'type':'text','text':_0x134646});continue;}if(!isResponsesFunctionCallItem(_0xe97731)||typeof _0xe97731['call_id']!==_0x270629(_0x3d26f0._0x2e2caf,0x369,_0x3d26f0._0x24453e,0x34e)||_0xe97731[_0x4c4883(-0x9,0x112,-_0x3d26f0._0x1130f9,0xab)][_0x270629(_0x3d26f0._0xc8b856,_0x3d26f0._0x4794b6,0x1f2,0x2f0)]()[_0x4c4883(_0x3d26f0._0x1dfc23,0x28c,_0x3d26f0._0x181bed,0x20d)]===0x0||typeof _0xe97731[_0x270629(_0x3d26f0._0x10abaa,0x2de,_0x3d26f0._0x1b498e,0x21d)]!=='string'||_0xe97731[_0x270629(_0x3d26f0._0x44036a,_0x3d26f0._0x19ea14,0x3a6,0x343)][_0x4c4883(_0x3d26f0._0x36ddb5,0xa9,_0x3d26f0._0x5eccb7,0x44)]()[_0x270629(_0x3d26f0._0x548e68,_0x3d26f0._0x28a162,0x472,0x4c3)]===0x0||typeof _0xe97731['arguments']!=='string')continue;_0x5326ff[_0x270629(0x34d,_0x3d26f0._0x2edb4d,0x481,0x435)]({'type':_0x4c4883(_0x3d26f0._0x5a3c8b,_0x3d26f0._0x777385,_0x3d26f0._0x2e899c,_0x3d26f0._0x226a48),'id':_0xe97731['call_id'],'name':_0xe97731['name'],'input':parseToolInput2(_0xe97731[_0x270629(0x354,0x2bc,_0x3d26f0._0x3636d7,0x30f)])});}!_0x5326ff[_0x4c4883(0x1c1,_0x3d26f0._0x12cbf6,0x2c5,0x20c)](_0x58dde8=>_0x58dde8[_0x4c4883(0x172,0x113,0x116,0x1c4)]===_0x270629(0x3f9,0x42a,0x400,0x50a))&&_0x517664[_0x270629(0x1fb,_0x3d26f0._0x39b8b3,_0x3d26f0._0x3fae6b,0x390)]&&_0x5326ff[_0x4c4883(0x18a,0x1d3,_0x3d26f0._0x5b2b27,_0x3d26f0._0x49afa5)]({'type':_0x4c4883(_0x3d26f0._0x89fab0,_0x3d26f0._0x1267d6,_0x3d26f0._0x171a3c,_0x3d26f0._0x32dbb7),'text':_0x517664[_0x4c4883(-0x4c,_0x3d26f0._0x4186eb,_0x3d26f0._0x455781,0x75)]});function _0x4c4883(_0x3d0074,_0x3fecb1,_0x373bf2,_0x1a01ce){return _0x5276b1(_0x3fecb1,_0x3fecb1-_0x2462ce._0x5c9a28,_0x373bf2-0x1c6,_0x1a01ce-0x12c);}return{'id':_0x517664['id'],'content':_0x5326ff,'stopReason':_0x5326ff[_0x270629(_0x3d26f0._0x4c215e,_0x3d26f0._0x272c13,_0x3d26f0._0x296814,0x44d)](_0x5addb0=>_0x5addb0[_0x270629(0x35f,0x437,0x4cf,0x509)]===_0x270629(0x330,0x331,0x31e,0x3d3))?_0x4c4883(0x11c,_0x3d26f0._0x4d188f,0x19,0xbe):_0x270629(0x334,0x3f8,0x44e,_0x3d26f0._0xbab076),'usage':{'inputTokens':_0x517664[_0x270629(_0x3d26f0._0x3f46d0,_0x3d26f0._0x37fe93,0x398,_0x3d26f0._0x6f1974)]?.[_0x4c4883(0x2b0,0x16c,_0x3d26f0._0x3ace8d,0x1f9)]??0x0,'outputTokens':_0x517664[_0x270629(_0x3d26f0._0x13bbcf,_0x3d26f0._0x37fe93,0x319,0x4d1)]?.[_0x270629(0x3be,0x471,0x46f,_0x3d26f0._0x3807a4)]??0x0,..._0x517664[_0x4c4883(0x262,_0x3d26f0._0xa438b,_0x3d26f0._0xbf1749,_0x3d26f0._0x35cb92)]?.[_0x4c4883(0x19,0x41,-0x10,_0x3d26f0._0x5947a4)]?.[_0x4c4883(-_0x3d26f0._0x5a3550,_0x3d26f0._0x1c2380,-0x28,_0x3d26f0._0x508ffa)]!==void 0x0?{'reasoningTokens':_0x517664[_0x270629(_0x3d26f0._0x489c05,_0x3d26f0._0x242e1f,0x31c,_0x3d26f0._0x4d8102)]['output_tokens_details'][_0x4c4883(_0x3d26f0._0x96d3f1,0xd9,0x103,_0x3d26f0._0x508ffa)]}:{}},..._0x517664[_0x270629(0x2d5,0x2bb,_0x3d26f0._0x34f0ee,0x231)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x517664[_0x4c4883(-_0x3d26f0._0x6c85b3,-0x19,0x94,_0x3d26f0._0x1b3f5d)]),'openaiResponsesResponseId':_0x517664['id']}}:{}};}function extractErrorMessage(_0x16955a){const _0x441fbe={_0x40ef2e:0x4c8,_0x3869ed:0x3d5,_0x43be5b:0x496,_0x14dbc2:0x403,_0xf8b3e1:0x2d8,_0x18f918:0x3a6,_0x2d6a6c:0x46e,_0xd4286e:0x46d,_0x219465:0x3f5,_0x580bd8:0x3ff,_0x2fef5e:0x3bc,_0x3fae7d:0x45a,_0x408b04:0x403,_0xa7ad3d:0x430,_0x5454ec:0x265,_0x5baed7:0x437,_0x27dfc5:0x3f3,_0x358f9d:0x22c,_0xa06d4a:0x3a6,_0x4e54c5:0x2b9,_0x2486b0:0x26e,_0xf11ade:0x1eb,_0x1e7bb8:0x2a6},_0x4eafe8={_0x5e229a:0x1a0,_0x167a06:0xdf,_0x4615ba:0xb8};if(_0x16955a['length']===0x0)return'';function _0x7efd66(_0x1550e9,_0x815a2a,_0x1d39a2,_0x650240){return _0x5276b1(_0x1d39a2,_0x815a2a-0x11,_0x1d39a2-0x8b,_0x815a2a-0x3e7);}try{const _0x9eae7a=JSON[_0x7efd66(_0x441fbe._0x40ef2e,_0x441fbe._0x3869ed,0x4b5,0x3fe)](_0x16955a);if(typeof _0x9eae7a[_0x48860d(0x4be,_0x441fbe._0x43be5b,_0x441fbe._0x14dbc2,0x40f)]?.[_0x7efd66(_0x441fbe._0xf8b3e1,_0x441fbe._0x18f918,_0x441fbe._0x2d6a6c,_0x441fbe._0xd4286e)]==='string'&&_0x9eae7a['error'][_0x48860d(0x251,0x30c,0x2dd,0x365)]['trim']()[_0x48860d(_0x441fbe._0x219465,0x401,_0x441fbe._0x580bd8,_0x441fbe._0x2fef5e)]>0x0)return _0x9eae7a[_0x48860d(_0x441fbe._0x3fae7d,0x36d,_0x441fbe._0x408b04,_0x441fbe._0xa7ad3d)]['message'][_0x7efd66(_0x441fbe._0x5454ec,0x2ff,0x22f,0x2e8)]();if(typeof _0x9eae7a[_0x7efd66(_0x441fbe._0x5baed7,0x3a6,0x412,_0x441fbe._0x27dfc5)]===_0x48860d(0x240,0x269,0x2e8,_0x441fbe._0x358f9d)&&_0x9eae7a[_0x7efd66(0x2de,_0x441fbe._0xa06d4a,_0x441fbe._0x4e54c5,0x34d)]['trim']()['length']>0x0)return _0x9eae7a[_0x48860d(_0x441fbe._0x2486b0,_0x441fbe._0xf11ade,0x2dd,0x304)][_0x7efd66(0x3d3,0x2ff,_0x441fbe._0x1e7bb8,0x2b8)]();}catch{return _0x16955a;}function _0x48860d(_0x4e7d61,_0x96d7ae,_0x244b63,_0x46f961){return _0x54ac71(_0x4e7d61-_0x4eafe8._0x5e229a,_0x46f961,_0x244b63- -_0x4eafe8._0x167a06,_0x46f961-_0x4eafe8._0x4615ba);}return _0x16955a;}async function createOpenAiApiError(_0x4ae131){const _0x27361a={_0x49cf3c:0x13c,_0x3c03e7:0x480,_0x580485:0x392,_0x18455d:0x33c,_0x4763b4:0x10,_0x5822f0:0xdc},_0x23614a={_0x23ecb3:0x1a2},_0x3451d3={_0x3705d4:0x396};function _0x14e259(_0x495df0,_0xfdbb44,_0x2a1ab1,_0x2dff92){return _0x5276b1(_0xfdbb44,_0xfdbb44-0x4,_0x2a1ab1-0x24,_0x2dff92-_0x3451d3._0x3705d4);}const _0x54df2b=(await _0x4ae131[_0x5dabcd(-0x7c,0x79,0x62,0x37)]())['trim'](),_0x1559c6=extractErrorMessage(_0x54df2b)||_0x4ae131[_0x5dabcd(0x7b,-0x68,-_0x27361a._0x49cf3c,-0x8)]||_0x14e259(0x44d,0x4e6,_0x27361a._0x3c03e7,0x420)+_0x4ae131[_0x14e259(0x20d,_0x27361a._0x580485,_0x27361a._0x18455d,0x2cc)];function _0x5dabcd(_0x1ee67a,_0x50af34,_0x1f99fc,_0x33751a){return _0x54ac71(_0x1ee67a-_0x23614a._0x23ecb3,_0x1ee67a,_0x50af34- -0x40f,_0x33751a-0x44);}return new OpenAiApiError(_0x4ae131[_0x5dabcd(-_0x27361a._0x4763b4,-_0x27361a._0x5822f0,-0x189,-0x120)],_0x54df2b,_0x1559c6);}function readSseData(_0x3c63ae){const _0x11fe51={_0x2a11e8:0x91,_0x23c01d:0x88,_0x425f9f:0x172,_0x459e9b:0x4d,_0x5f0ec5:0x145,_0x3d019e:0xfc,_0x5ef3ec:0x9f,_0x26fb12:0x11c,_0x26f0bd:0x16e},_0x7503b1={_0xc3895f:0xdd},_0x1f5bfa={_0x5226b6:0x80,_0x4e7822:0x1ea};function _0x58ca29(_0x3258b0,_0x471975,_0x20aa71,_0x2d0f12){return _0x5276b1(_0x2d0f12,_0x471975-_0x1f5bfa._0x5226b6,_0x20aa71-0x152,_0x3258b0-_0x1f5bfa._0x4e7822);}function _0x23f011(_0xa6739c,_0x9e3bb3,_0x52d357,_0x288e09){return _0x54ac71(_0xa6739c-_0x7503b1._0xc3895f,_0xa6739c,_0x9e3bb3- -0x33b,_0x288e09-0x62);}return _0x3c63ae[_0x23f011(_0x11fe51._0x2a11e8,_0x11fe51._0x23c01d,0x128,_0x11fe51._0x425f9f)]('\x0a')[_0x58ca29(0x2ba,0x39b,0x261,0x1d8)](_0x7877=>_0x7877[_0x58ca29(0x227,0x2b6,0x1d5,0x147)](_0x23f011(0x24,0x95,0x187,0x110)))[_0x23f011(_0x11fe51._0x459e9b,0xaf,0x76,0xac)](_0x403b18=>_0x403b18['slice'](0x5)[_0x58ca29(0xfc,0x146,0x15d,0x1d6)]())[_0x23f011(_0x11fe51._0x5f0ec5,_0x11fe51._0x3d019e,_0x11fe51._0x5ef3ec,0x101)]('\x0a')[_0x58ca29(0x102,_0x11fe51._0x26fb12,_0x11fe51._0x26f0bd,0xa6)]();}function readString(_0x4f863b){const _0x45861e={_0x7691f1:0x3f,_0x26ad59:0x74},_0x33f79a={_0x2dbde2:0x15f,_0x457558:0xf2};function _0x388924(_0x2dbae6,_0x5da5be,_0x4151e1,_0x5ba4d3){return _0x5276b1(_0x5da5be,_0x5da5be-_0x33f79a._0x2dbde2,_0x4151e1-_0x33f79a._0x457558,_0x5ba4d3- -0x155);}return typeof _0x4f863b==='string'&&_0x4f863b[_0x388924(0x64,-0xc1,-_0x45861e._0x7691f1,-_0x45861e._0x26ad59)]>0x0?_0x4f863b:void 0x0;}function extractReasoningDetails(_0x6293d2){const _0x27e623={_0x1728f7:0x4df,_0x200e48:0x4fa,_0x277a4b:0x61d,_0x1cdaa5:0x556,_0x492ebb:0x4e5},_0x18f916={_0x1f5207:0x14c,_0x188f1d:0x9a,_0x5e060f:0x4f8,_0x5017b2:0x45d,_0x38f818:0x15f,_0x45e230:0xca,_0x46a3d0:0x1b,_0x5c1058:0xae,_0x59a30d:0xb8,_0x5ee539:0x9b,_0x18630b:0x10a,_0x28df0f:0x12c},_0x5ac584={_0x1b0790:0x196},_0x215d46={_0x302147:0x5d,_0x54ac6c:0x169,_0xe10ac2:0x595},_0x1d79bd={_0xcef8c8:0x146,_0x11cfb5:0x0,_0x279d8c:0x51c};function _0x524175(_0x500906,_0x198f61,_0x16f5bc,_0x2d5be7){return _0x5276b1(_0x198f61,_0x198f61-_0x1d79bd._0xcef8c8,_0x16f5bc-_0x1d79bd._0x11cfb5,_0x500906-_0x1d79bd._0x279d8c);}if(!Array[_0x21d0c2(0x482,_0x27e623._0x1728f7,0x4f3,_0x27e623._0x200e48)](_0x6293d2))return void 0x0;function _0x21d0c2(_0x2b68d9,_0x145e42,_0x4a4d70,_0x3ff80c){return _0x5276b1(_0x2b68d9,_0x145e42-_0x215d46._0x302147,_0x4a4d70-_0x215d46._0x54ac6c,_0x145e42-_0x215d46._0xe10ac2);}const _0x46ee4d=_0x6293d2['flatMap'](_0xd82622=>{if(!_0xd82622||typeof _0xd82622!==_0x2edd68(_0x18f916._0x1f5207,0xbe,0x174,_0x18f916._0x188f1d))return[];function _0x56efa4(_0x43c3ab,_0x590622,_0x2cddbd,_0x3c6a8a){return _0x21d0c2(_0x3c6a8a,_0x2cddbd- -0x144,_0x2cddbd-0x1f2,_0x3c6a8a-0x2c);}const _0x7dbb05=_0xd82622;if(typeof _0x7dbb05[_0x56efa4(_0x18f916._0x5e060f,_0x18f916._0x5017b2,0x4dc,0x556)]==='string')return[_0x7dbb05[_0x2edd68(_0x18f916._0x38f818,_0x18f916._0x45e230,_0x18f916._0x46a3d0,_0x18f916._0x5c1058)]];function _0x2edd68(_0x5d3560,_0x3107fd,_0x2bb869,_0x298261){return _0x21d0c2(_0x298261,_0x3107fd- -0x556,_0x2bb869-0x1ad,_0x298261-_0x5ac584._0x1b0790);}if(typeof _0x7dbb05['summary']===_0x2edd68(-0x81,0x9,-0x81,-0xd4))return[_0x7dbb05[_0x2edd68(_0x18f916._0x59a30d,_0x18f916._0x5ee539,_0x18f916._0x18630b,_0x18f916._0x28df0f)]];return[];});return _0x46ee4d[_0x524175(0x5fd,0x6b4,0x5cf,_0x27e623._0x277a4b)]>0x0?_0x46ee4d[_0x524175(_0x27e623._0x1cdaa5,0x467,0x5c2,_0x27e623._0x492ebb)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x44c51e){const _0x13ecde={_0x138dbb:0x151,_0x397ded:0x1d8,_0x2f582c:0x28,_0x48e1df:0x1d9},_0x1fc19b={_0x1acd0b:0xf8},_0x16e5e1={_0xba343a:0x110};function _0x40a239(_0x41349d,_0x6d91b5,_0xc56302,_0x3e94c0){return _0x5276b1(_0x41349d,_0x6d91b5-0x10,_0xc56302-0x191,_0x3e94c0-_0x16e5e1._0xba343a);}function _0x3c37f9(_0x5c7697,_0x23b946,_0x2764f6,_0x39b27a){return _0x5276b1(_0x5c7697,_0x23b946-0x138,_0x2764f6-_0x1fc19b._0x1acd0b,_0x39b27a-0x215);}return extractReasoningDetails(_0x44c51e?.[_0x40a239(0x16d,_0x13ecde._0x138dbb,0xe9,_0x13ecde._0x397ded)])??readString(_0x44c51e?.[_0x40a239(0x109,_0x13ecde._0x2f582c,0xbb,0x107)])??readString(_0x44c51e?.[_0x40a239(0x1b9,0x251,0x13c,_0x13ecde._0x48e1df)])??readString(_0x44c51e?.['reasoning_text'])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x54ac71(0x348,0x377,0x38d,0x453)]=[];[_0x54ac71(0x359,0x32a,0x379,0x2d5)];[_0x54ac71(0x3f3,0x402,0x339,0x416)]=[];[_0x5276b1(-0xd2,-0x81,0x53,-0xa2)]=new Map();[_0x5276b1(-0x52,-0x4,-0x4a,-0x3d)]=[];[_0x54ac71(0x52f,0x538,0x445,0x538)]=new Set();[_0x54ac71(0x443,0x4c9,0x3d6,0x3d4)]='';[_0x5276b1(-0x107,-0x1ad,-0xca,-0xfe)]=_0x5276b1(0xfd,-0x95,0x80,0x59);[_0x54ac71(0x3fd,0x3b4,0x44a,0x4f4)];constructor(_0x216c2c){this['request']=_0x216c2c;}[_0x54ac71(0x458,0x512,0x4d0,0x405)](_0x509123){const _0x57975e={_0x1b958e:0x466,_0x396663:0x4e7,_0x4a5260:0x3b5,_0x4359a1:0x3f3,_0x15fac7:0x35e,_0x9888d4:0x3ce,_0x59d02b:0x33e,_0x4bab98:0x3fa,_0x30c837:0x4b2,_0xd2a9b8:0x4ad,_0x4071e1:0x441,_0xc2ab76:0x356},_0x1eebc0={_0x9b4231:0x1bf},_0x566dc3={_0x2a19e5:0x78},_0x25d7b2=readSseData(_0x509123);if(_0x25d7b2[_0x5d0a32(_0x57975e._0x1b958e,0x40b,_0x57975e._0x396663,0x437)]===0x0||_0x25d7b2===_0x5d0a32(0x385,0x415,_0x57975e._0x4a5260,0x333))return[];function _0x5d0a32(_0x2ec2a9,_0x3524f5,_0x19bf9a,_0x37f22e){return _0x54ac71(_0x2ec2a9-0x1dd,_0x3524f5,_0x2ec2a9- -_0x566dc3._0x2a19e5,_0x37f22e-0x1c9);}const _0x3fe808=JSON[_0x5d0a32(0x373,_0x57975e._0x4359a1,0x3b0,0x39d)](_0x25d7b2);this['responseId']=_0x3fe808['id']??this[_0x5d0a32(_0x57975e._0x15fac7,0x2c7,_0x57975e._0x9888d4,0x393)];function _0x45e5c9(_0x39c629,_0x46fc20,_0x1d1a47,_0x2002db){return _0x54ac71(_0x39c629-_0x1eebc0._0x9b4231,_0x46fc20,_0x1d1a47- -0x50,_0x2002db-0x13f);}return this['usage']=_0x3fe808[_0x45e5c9(0x373,_0x57975e._0x59d02b,_0x57975e._0x4bab98,_0x57975e._0x30c837)]??this[_0x45e5c9(_0x57975e._0xd2a9b8,_0x57975e._0x4071e1,_0x57975e._0x4bab98,0x391)],this[_0x45e5c9(0x2c4,0x3d4,_0x57975e._0xc2ab76,0x3f9)](_0x3fe808);}[_0x5276b1(0x151,0x70,-0x69,0x78)](){const _0x5c31c4={_0x41c5bf:0x690,_0x503071:0x260,_0x353860:0x2af,_0x1be0e8:0x1d1,_0x3595fe:0x68f,_0x5fad19:0x501,_0x2805cb:0x5e8,_0x39c76b:0x6d1,_0x56db7a:0x66f,_0x4cb562:0x5fc,_0x19b919:0x5b0,_0x517940:0x5d6,_0x573fe5:0x645,_0xe27333:0x71f,_0x6c99d3:0x6e3,_0x42463e:0x5d5,_0xb95cbf:0xb,_0x31b59c:0xa0,_0x308bf9:0x152,_0x151eec:0x12a,_0x417027:0x6f5,_0x4060c2:0x69f,_0x2454dd:0x62f,_0xe9b723:0x5da,_0x9a0613:0x656,_0x2553be:0x684,_0x2cb085:0x77e,_0x366256:0x718},_0x3e8e04={_0x20137f:0x26f},_0x50d988={_0x56fca2:0xcb};this[_0x25246f(0x56e,0x672,_0x5c31c4._0x41c5bf,0x62f)][_0x56dbe4(0x118,_0x5c31c4._0x503071,_0x5c31c4._0x353860,_0x5c31c4._0x1be0e8)]>0x0&&(this['stopReason']=_0x25246f(_0x5c31c4._0x3595fe,0x6e4,0x67b,0x5fe));const _0xb6c163=isUserVisibleReasoning(this[_0x25246f(0x621,0x54b,_0x5c31c4._0x5fad19,_0x5c31c4._0x2805cb)])?this[_0x25246f(_0x5c31c4._0x39c76b,_0x5c31c4._0x56db7a,0x62a,_0x5c31c4._0x4cb562)]['join'](''):void 0x0;function _0x56dbe4(_0x59ec68,_0x1946b6,_0x54bc17,_0x185b99){return _0x5276b1(_0x1946b6,_0x1946b6-0xb7,_0x54bc17-_0x50d988._0x56fca2,_0x185b99-0xf0);}function _0x25246f(_0x2bfbf9,_0x22ee9c,_0x3b03b4,_0x369a9d){return _0x54ac71(_0x2bfbf9-0xd2,_0x3b03b4,_0x369a9d-_0x3e8e04._0x20137f,_0x369a9d-0xc5);}return{'id':this[_0x25246f(_0x5c31c4._0x19b919,_0x5c31c4._0x517940,0x5b7,_0x5c31c4._0x573fe5)]||_0x25246f(_0x5c31c4._0xe27333,_0x5c31c4._0x6c99d3,_0x5c31c4._0x42463e,_0x5c31c4._0x3595fe)+Date['now'](),'content':createContentBlocks(this[_0x56dbe4(0x34,-_0x5c31c4._0xb95cbf,_0x5c31c4._0x31b59c,0x2c)][_0x56dbe4(_0x5c31c4._0x308bf9,0x14b,0x3e,_0x5c31c4._0x151eec)](''),this[_0x25246f(_0x5c31c4._0x417027,0x6b2,_0x5c31c4._0x4060c2,_0x5c31c4._0x2454dd)],_0xb6c163),'stopReason':this[_0x25246f(_0x5c31c4._0xe9b723,_0x5c31c4._0x9a0613,0x4ca,0x56e)],'usage':createUsage(this[_0x25246f(_0x5c31c4._0x2553be,_0x5c31c4._0x2cb085,_0x5c31c4._0x366256,0x6b9)])};}['consumeEvent'](_0x55ce00){const _0x47312f={_0x4001ab:0x120,_0x2b75c2:0xc8,_0x43af8d:0xc,_0x5c45e1:0x11,_0x2c906c:0xad,_0x33121c:0x132,_0x41442e:0x192,_0x1a1231:0x12c,_0x230f09:0x24d,_0x385f76:0x1e1,_0xa4c047:0x2a7,_0xf8647:0x2d5,_0x59e01c:0x4c,_0x245954:0x2b3,_0x30ea2c:0x27a,_0x174af2:0x37d,_0x4b3670:0x2c3,_0x2ec021:0x1d1,_0x459765:0x298,_0x53f16d:0x285,_0x45a2e4:0x6a,_0x5cf685:0x103,_0x26ce2e:0x67,_0x45bb83:0x6a,_0x4ff14c:0x45b,_0x2f7dcc:0x3af,_0x212ff1:0x317,_0x3be209:0x63,_0x574ea4:0x60,_0x4267f8:0x317,_0x1da476:0x395,_0x560b06:0x33,_0x122411:0x1fa,_0x5e080a:0x47,_0x1f3dc3:0x4a,_0x23e3f8:0x2b8,_0xe0ad88:0x2a9,_0x3d7aae:0x275,_0x4be929:0x151,_0x52260d:0x131,_0x34ee65:0x2f0,_0x5f29aa:0x2ac,_0x817aa7:0x1e,_0x10ed3e:0x20d,_0x1d4916:0x1b4,_0x3f75aa:0xd9,_0x1ce477:0x49,_0x3a0bff:0x22e,_0x2d30b4:0x5c,_0x41a254:0xd,_0x49681e:0x3a0,_0x3ef259:0x338,_0x523a56:0x278,_0x4a0bcc:0x22a,_0x119eea:0x201,_0x58e092:0x20d,_0x4527f7:0x17d,_0x45ff28:0x6a,_0x1b649c:0x26a,_0x4c9c5e:0x237,_0x4533a0:0x8a,_0x986cd7:0x110,_0x206d50:0x1e6,_0x160fe1:0x30e,_0x43ac06:0x300,_0x4ad935:0x168,_0x6eca77:0x69,_0x2e5d8d:0xac,_0x3359b3:0x315,_0x218491:0x30b,_0x1f70e4:0xde,_0x17b7b8:0x321,_0x282709:0x250,_0x2e255d:0x309,_0x49cbc6:0xe1,_0x2a1d4a:0x27,_0x1e3c2a:0x26b,_0x18c8bf:0x2a9},_0x204ae1={_0x16a759:0xb9,_0x5a2c45:0x64},_0x4c88f1={_0x3a754f:0x12f};function _0x223e37(_0x48bd42,_0x386ee7,_0x43b0de,_0x347f8d){return _0x54ac71(_0x48bd42-0xca,_0x43b0de,_0x386ee7- -_0x4c88f1._0x3a754f,_0x347f8d-0x5);}const _0x59d8f9=[];function _0xa76e1c(_0x4658ca,_0x5b8964,_0x15f8ce,_0x1854a7){return _0x5276b1(_0x5b8964,_0x5b8964-0x1c,_0x15f8ce-_0x204ae1._0x16a759,_0x1854a7-_0x204ae1._0x5a2c45);}for(const _0x111a82 of _0x55ce00['choices']??[]){const _0x45c913=_0x111a82[_0x223e37(0x252,0x312,0x3eb,0x2e0)],_0xec1e2=extractChatCompletionReasoningDelta(_0x45c913);_0xec1e2[_0xa76e1c(0x5b,0x22f,_0x47312f._0x4001ab,0x145)]>0x0&&(this[_0xa76e1c(0x52,0xe5,-_0x47312f._0x2b75c2,-_0x47312f._0x43af8d)][_0xa76e1c(-_0x47312f._0x5c45e1,0x105,0x118,_0x47312f._0x2c906c)](_0xec1e2),isUserVisibleReasoning(this['request'])&&_0x59d8f9[_0xa76e1c(_0x47312f._0x33121c,_0x47312f._0x41442e,_0x47312f._0x1a1231,0xad)]({'type':_0x223e37(0x299,0x1e9,0x1bb,_0x47312f._0x230f09),'contentIndex':0x0,'delta':_0xec1e2,'itemId':(this[_0x223e37(_0x47312f._0x385f76,_0x47312f._0xa4c047,0x385,_0x47312f._0xf8647)]||_0xa76e1c(0x123,_0x47312f._0x59e01c,_0x47312f._0x59e01c,0x13d))+_0x223e37(0x295,_0x47312f._0x245954,_0x47312f._0x30ea2c,0x1c4),'outputIndex':0x0}));const _0x164387=typeof _0x45c913?.[_0x223e37(0x44c,_0x47312f._0x174af2,_0x47312f._0x4b3670,0x432)]===_0x223e37(_0x47312f._0x2ec021,_0x47312f._0x459765,_0x47312f._0x53f16d,0x231)?_0x45c913['content']:typeof _0x45c913?.[_0xa76e1c(0xab,0x3f,0xa7,_0x47312f._0x45a2e4)]==='string'?_0x45c913[_0xa76e1c(_0x47312f._0x5cf685,_0x47312f._0x26ce2e,-0x86,_0x47312f._0x45bb83)]:'';_0x164387[_0x223e37(_0x47312f._0x4ff14c,_0x47312f._0x2f7dcc,_0x47312f._0x212ff1,0x2c5)]>0x0&&(this[_0xa76e1c(0x88,_0x47312f._0x3be209,-0x52,-_0x47312f._0x574ea4)][_0x223e37(0x371,_0x47312f._0x4267f8,0x2b9,_0x47312f._0x1da476)](_0x164387),_0x59d8f9[_0xa76e1c(-_0x47312f._0x560b06,0xaa,0x12b,0xad)]({'type':_0x223e37(0x344,0x288,_0x47312f._0x122411,0x335),'index':0x0,'text':_0x164387}));for(const _0x180c8e of _0x45c913?.[_0xa76e1c(-0x5e,-0x131,_0x47312f._0x5e080a,-_0x47312f._0x1f3dc3)]??[]){const _0x4b58a6=_0x180c8e['index']??0x0;let _0x324964=this['toolCallsByIndex'][_0x223e37(_0x47312f._0x23e3f8,0x25f,_0x47312f._0xe0ad88,_0x47312f._0x3d7aae)](_0x4b58a6);!_0x324964&&(_0x324964={'id':_0x180c8e['id']??_0xa76e1c(-_0x47312f._0x4be929,-_0x47312f._0x52260d,-0xa7,-0x86)+_0x4b58a6,'type':_0x223e37(0x1e3,0x250,_0x47312f._0x34ee65,_0x47312f._0x5f29aa),'function':{'name':_0x180c8e[_0xa76e1c(-_0x47312f._0x817aa7,-0x74,-0xd2,-0x1a)]?.[_0x223e37(0x1b8,_0x47312f._0x10ed3e,_0x47312f._0x1d4916,0x123)]??'','arguments':''}},this[_0xa76e1c(-_0x47312f._0x3f75aa,-0x15,-_0x47312f._0x1ce477,-0x3e)][_0xa76e1c(0x1f1,_0x47312f._0x2b75c2,_0x47312f._0x3a0bff,0x141)](_0x4b58a6,_0x324964),this[_0xa76e1c(_0x47312f._0x2d30b4,0xe4,_0x47312f._0x41a254,0x27)][_0x223e37(_0x47312f._0x49681e,0x317,0x365,0x2cc)](_0x324964));_0x180c8e['id']&&(_0x324964['id']=_0x180c8e['id']);_0x180c8e[_0x223e37(_0x47312f._0x3ef259,0x250,0x1ce,_0x47312f._0x523a56)]?.[_0x223e37(_0x47312f._0x4a0bcc,_0x47312f._0x10ed3e,0x263,_0x47312f._0x119eea)]&&(_0x324964['function'][_0x223e37(0x1cb,_0x47312f._0x58e092,_0x47312f._0x4527f7,0x295)]=_0x180c8e[_0xa76e1c(_0x47312f._0x45ff28,0x69,0xcf,-0x1a)][_0x223e37(0x164,_0x47312f._0x10ed3e,_0x47312f._0x1b649c,_0x47312f._0x4c9c5e)]);!this['toolUseStartEmitted'][_0xa76e1c(0x6d,_0x47312f._0x4533a0,0xe1,_0x47312f._0x986cd7)](_0x4b58a6)&&_0x324964['function']['name'][_0x223e37(0x1a5,_0x47312f._0x206d50,0x136,0x2b4)]()[_0x223e37(_0x47312f._0x160fe1,0x3af,0x3ba,_0x47312f._0x43ac06)]>0x0&&(_0x59d8f9[_0xa76e1c(_0x47312f._0x4ad935,0x52,_0x47312f._0x5e080a,_0x47312f._0x2c906c)]({'type':_0x223e37(0x377,0x2c0,0x251,0x3a5),'id':_0x324964['id'],'index':_0x4b58a6,'name':_0x324964[_0xa76e1c(0x4e,-0xb2,-_0x47312f._0x6eca77,-0x1a)][_0xa76e1c(0xe,0x73,-_0x47312f._0x1a1231,-0x5d)]}),this[_0xa76e1c(0x6e,0x32,0x78,_0x47312f._0x2e5d8d)][_0x223e37(0x361,_0x47312f._0x3359b3,_0x47312f._0x218491,0x372)](_0x4b58a6));const _0x564325=_0x180c8e['function']?.['arguments']??'';_0x564325[_0xa76e1c(0x15e,0x114,_0x47312f._0x1f70e4,0x145)]>0x0&&(_0x324964[_0x223e37(_0x47312f._0x17b7b8,_0x47312f._0x282709,_0x47312f._0x2e255d,0x208)][_0xa76e1c(-0x145,-_0x47312f._0x49cbc6,0x9,-0x7f)]+=_0x564325,_0x59d8f9[_0xa76e1c(0x29,0xf6,_0x47312f._0x2a1d4a,0xad)]({'type':'tool_use_delta','id':_0x324964['id'],'index':_0x4b58a6,'inputDelta':_0x564325}));}_0x111a82[_0x223e37(0x1ba,_0x47312f._0x1e3c2a,_0x47312f._0x18c8bf,0x21b)]===_0x223e37(0x2c9,0x220,0x1fa,0x166)&&(this['stopReason']='tool_use');}return _0x59d8f9;}},OpenAiResponsesStreamParser=class{[_0x5276b1(-0x9,0xa7,0x7e,0x42)]=new Map();[_0x5276b1(0xf6,0x187,-0x46,0x9e)];[_0x5276b1(-0x2f,-0x11e,-0x10f,-0xf2)]=new Map();[_0x54ac71(0x341,0x3ac,0x30c,0x2a5)]=new Map();['reasoningItems']=new Map();[_0x54ac71(0x33c,0x2d5,0x379,0x375)];[_0x5276b1(-0x13f,-0x191,-0x6f,-0x9e)]=new Map();[_0x54ac71(0x3de,0x3c0,0x3d3,0x340)]=new Map();constructor(_0x110221){const _0x81a51f={_0x409bee:0x310,_0x122c5c:0x383,_0x4474ec:0x2a6},_0xe121e9={_0x320891:0x1ca,_0x31e81c:0xa};function _0x301a0b(_0x4d8ef9,_0x57d983,_0xd6486b,_0x5b1728){return _0x54ac71(_0x4d8ef9-_0xe121e9._0x320891,_0x4d8ef9,_0xd6486b-_0xe121e9._0x31e81c,_0x5b1728-0x129);}this[_0x301a0b(_0x81a51f._0x409bee,0x37e,_0x81a51f._0x122c5c,_0x81a51f._0x4474ec)]=_0x110221;}['consumeSseEvent'](_0x2ab13e){const _0x23e487={_0x92de7f:0x34,_0x3b47f0:0xb4,_0x4f3300:0x228,_0x107b9f:0x1b8,_0x46a5b8:0x191,_0x3de3ea:0x70,_0x2ea82e:0xf2,_0x299a43:0x14c,_0x493bb4:0x44,_0xfc3183:0x14f,_0x5dccba:0xf7,_0x1d6492:0x104,_0x3b8168:0x18e,_0x4ff520:0x228,_0x5d9652:0x2db,_0x28fff4:0x14b,_0x4b4f84:0x101,_0x53f3af:0x14e,_0x5c79be:0xc6,_0x1308df:0x197,_0x3e0b11:0x259,_0x3338da:0x24c,_0x427f28:0x26d,_0x2bf561:0x176,_0x11d29f:0x1d0,_0x234fbf:0x150},_0x2ee437={_0x14f35f:0x14a},_0x2ae0d2={_0x249c30:0x75,_0x5dab5a:0x140},_0x16ee54=_0x2ab13e['split']('\x0a');function _0x23cee1(_0x4a2126,_0x9617c0,_0x2a6dd3,_0x527dcf){return _0x54ac71(_0x4a2126-_0x2ae0d2._0x249c30,_0x527dcf,_0x4a2126- -0x31f,_0x527dcf-_0x2ae0d2._0x5dab5a);}const _0x48de13=_0x16ee54['find'](_0x19c90e=>_0x19c90e[_0x23cee1(0x11b,0x1d9,0x187,0x13f)](_0x23cee1(0xe1,0x199,0x38,0xf7)))?.[_0x23cee1(_0x23e487._0x92de7f,0xb6,-_0x23e487._0x3b47f0,0x36)](0x6)[_0x10f16a(-_0x23e487._0x4f3300,-_0x23e487._0x107b9f,-0x159,-_0x23e487._0x46a5b8)](),_0x24bb04=_0x16ee54[_0x10f16a(-_0x23e487._0x3de3ea,-_0x23e487._0x2ea82e,-_0x23e487._0x299a43,-_0x23e487._0x493bb4)](_0x5ef84a=>_0x5ef84a[_0x10f16a(-0x103,-0xc4,-0x67,-0x61)](_0x23cee1(0xb1,0x140,0x13f,-0x1)))[_0x23cee1(0xcb,_0x23e487._0xfc3183,0x182,_0x23e487._0x5dccba)](_0x473daf=>_0x473daf[_0x10f16a(-0x1ea,-0x17b,-0x2d9,-0x189)](0x5)[_0x10f16a(-0x22e,-0x27b,-0x2b8,-0x313)]())[_0x23cee1(0x118,0x1a0,_0x23e487._0x1d6492,_0x23e487._0x3b8168)]('\x0a')[_0x10f16a(-_0x23e487._0x4ff520,-_0x23e487._0x5d9652,-_0x23e487._0x28fff4,-0x1c7)]();if(_0x24bb04[_0x10f16a(-0x5f,0x46,-_0x23e487._0x4b4f84,-_0x23e487._0x53f3af)]===0x0||_0x24bb04===_0x10f16a(-0x140,-0x12d,-_0x23e487._0x5c79be,-0x8c))return[];const _0x2c33d3=JSON['parse'](_0x24bb04);function _0x10f16a(_0x427353,_0x3d7fd1,_0x9d629,_0x42ee80){return _0x5276b1(_0x3d7fd1,_0x3d7fd1-0x26,_0x9d629-_0x2ee437._0x14f35f,_0x427353- -0x140);}return this[_0x10f16a(-_0x23e487._0x1308df,-_0x23e487._0x3e0b11,-_0x23e487._0x3338da,-_0x23e487._0x427f28)](_0x48de13??String(_0x2c33d3[_0x23cee1(_0x23e487._0x2bf561,_0x23e487._0x11d29f,0x200,_0x23e487._0x234fbf)]??''),_0x2c33d3);}[_0x54ac71(0x31e,0x29b,0x382,0x349)](_0xa0af3f){const _0x5af6b3={_0x27c3af:0x66},_0x5ea455={_0x110625:0x338,_0x4be0ca:0x63};function _0x4ba618(_0x4cea65,_0x47a5ec,_0xc22893,_0x14667a){return _0x54ac71(_0x4cea65-0xad,_0xc22893,_0x47a5ec- -_0x5ea455._0x110625,_0x14667a-_0x5ea455._0x4be0ca);}return this[_0x4ba618(0x16,0x6e,-_0x5af6b3._0x27c3af,-0x83)](String(_0xa0af3f['type']??''),_0xa0af3f);}[_0x54ac71(0x4c0,0x48c,0x475,0x4d5)](){const _0x59a603={_0x3b863a:0x1d1,_0x2e1119:0x167,_0xec054a:0x56f,_0x309dac:0x54a,_0x4bf09b:0x4c5,_0x5ac9c3:0x7f,_0x50ca26:0x13c,_0x555e97:0x192,_0xcf9d4a:0x17f,_0x395ed3:0x226,_0x397051:0x4fd,_0x475fb4:0x54a,_0x1b9c04:0x455,_0x1c2417:0x2d6,_0x1e8b2f:0x345,_0x5b6c83:0x4fb,_0x3e66af:0x590,_0x2edd7d:0x61b,_0x343dcd:0x531,_0x52a377:0x44f,_0x1bf58a:0x4d6,_0x2b5ee6:0x456},_0x496c87={_0x8d5a99:0x62,_0x470c57:0xaf,_0x4f82b3:0x18e},_0x15da20={_0x478d40:0x168,_0xac2951:0x9e},_0x27ed1b=this[_0x4a1b0b(0x210,_0x59a603._0x3b863a,0x146,_0x59a603._0x2e1119)]();function _0x4a1b0b(_0x4c8d55,_0x4c16d2,_0x3dc6f4,_0x424b69){return _0x5276b1(_0x424b69,_0x4c16d2-_0x15da20._0x478d40,_0x3dc6f4-0xfb,_0x3dc6f4-_0x15da20._0xac2951);}function _0x5460ec(_0x4a33e5,_0x5b9850,_0x5424f2,_0x3645e5){return _0x54ac71(_0x4a33e5-_0x496c87._0x8d5a99,_0x5424f2,_0x5b9850-_0x496c87._0x470c57,_0x3645e5-_0x496c87._0x4f82b3);}const _0x2ef2ac=this['finalResponse']?{...this[_0x5460ec(_0x59a603._0xec054a,_0x59a603._0x309dac,0x506,_0x59a603._0x4bf09b)],'output':this[_0x4a1b0b(0x1cb,_0x59a603._0x5ac9c3,_0x59a603._0x50ca26,_0x59a603._0x555e97)]['output']&&this['finalResponse']['output'][_0x4a1b0b(0xab,0x19a,_0x59a603._0xcf9d4a,_0x59a603._0x395ed3)]>0x0?this[_0x5460ec(_0x59a603._0x397051,_0x59a603._0x475fb4,_0x59a603._0x1b9c04,0x590)][_0x5460ec(_0x59a603._0x1c2417,0x3c8,0x411,_0x59a603._0x1e8b2f)]:_0x27ed1b}:{'id':'resp-'+Date[_0x5460ec(_0x59a603._0x5b6c83,_0x59a603._0x3e66af,0x5c5,_0x59a603._0x2edd7d)](),'object':'response','status':_0x5460ec(_0x59a603._0x343dcd,_0x59a603._0x52a377,_0x59a603._0x1bf58a,_0x59a603._0x2b5ee6),'output':_0x27ed1b,'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x2ef2ac,this['request']);}['isDone'](){const _0x421978={_0xe1dff2:0x62f,_0x236946:0x55a},_0x110de6={_0x421761:0xbe,_0x4c3546:0x4bc};function _0x54c991(_0x18d29a,_0x2bbd31,_0x4fd860,_0x214ce3){return _0x5276b1(_0x4fd860,_0x2bbd31-_0x110de6._0x421761,_0x4fd860-0x3,_0x214ce3-_0x110de6._0x4c3546);}return this[_0x54c991(0x4f1,_0x421978._0xe1dff2,0x485,_0x421978._0x236946)]!==void 0x0;}['consumeEvent'](_0x1029e0,_0x4b0869){const _0x247f74={_0x1f528e:0x320,_0x2a6332:0x3a7,_0x40b6bb:0x55d,_0x1b113c:0x5d8,_0x905234:0x287,_0x2631b6:0x37d,_0x565270:0x615,_0x508b9f:0x4cb,_0xbdff7c:0x414,_0x97b133:0x448,_0x317093:0x5b1,_0x391978:0x50a,_0x57c3ba:0x3af,_0x30fab4:0x368,_0x5b436f:0x3c7,_0x187c82:0x593,_0x3e0235:0x553,_0x9de6c3:0x491,_0x1a9685:0x6e0,_0x2f6b81:0x69b,_0x351569:0x6a3,_0xab465b:0x3fe,_0x51c075:0x3e3,_0x5183f3:0x2a3,_0x4327a2:0x367,_0x427258:0x470,_0x549c2a:0x377,_0x36bc6e:0x556,_0x1cdffe:0x46f,_0x1e85a5:0x485,_0x2429ce:0x40f,_0x4530b5:0x4e9,_0x237cd:0x573,_0x2c4e13:0x3b8,_0x294e21:0x4a1,_0x2fef48:0x4ed,_0x241529:0x50e,_0x1cbba3:0x38e,_0x25429d:0x2fd,_0x2b6256:0x507,_0x5d012e:0x519,_0x3a3896:0x4a4,_0x385e2c:0x438,_0x20ba83:0x376,_0x493dc2:0x50d,_0x51ad43:0x6d9,_0x47a9eb:0x5ff,_0x336a85:0x532,_0x17552b:0x41a,_0x470910:0x58f,_0x24fc52:0x30b,_0x2b95e7:0x3a8,_0x11564b:0x4c5,_0x3aaa67:0x420,_0x4d2a01:0x41b,_0x3cdf2f:0x691,_0x1983f4:0x5fe,_0x1d79df:0x5ba,_0x3c25cc:0x420,_0x1dee79:0x3eb,_0x4f7b8b:0x3cf,_0x169dcc:0x2d1,_0xc827d7:0x578,_0x43464d:0x343,_0x9fb03b:0x3a8,_0x584dc4:0x42b,_0x233f80:0x404,_0x5c3b55:0x526,_0x4f5dc7:0x40d,_0x1c1903:0x355,_0x903cbd:0x354,_0x5ab920:0x42c,_0x5c0a18:0x430,_0x34d80c:0x361,_0x43d2cd:0x355,_0x442fa1:0x3ba,_0x389106:0x3f3,_0x460ea7:0x476,_0x13f54b:0x466,_0x537ac4:0x3ff,_0x2719a3:0x5ed,_0x36b712:0x603,_0x266e49:0x6c4,_0x40d1d0:0x501,_0x19b42d:0x49d,_0x4bb3c7:0x43f,_0x446fa2:0x510,_0x3d6f84:0x477,_0x1903bb:0x438,_0x256fef:0x4b3,_0x1c29c7:0x50b,_0xbcac95:0x3f5,_0x4a1a08:0x536,_0x47839c:0x4f5,_0x5d0701:0x4c2,_0x216584:0x58d,_0x2a6330:0x49d,_0x5a1478:0x50a,_0x35a8d8:0x4cc,_0x59e140:0x4c8,_0x4deffa:0x576,_0x52e976:0x3e0,_0x244d06:0x46f,_0x23d396:0x3e4,_0x58ab94:0x430,_0x5a7002:0x4e9,_0x2c204b:0x43e,_0x592c00:0x54b,_0x1e62e5:0x43d,_0x3699a3:0x34d,_0x179a9e:0x3f3,_0x1d37d3:0x43f,_0x8ceee8:0x480,_0x1046a8:0x47c,_0x49bf79:0x45f,_0x581e7f:0x406,_0x1a84e3:0x502,_0xd2045b:0x3f3,_0x60d6bb:0x366,_0x58dbdf:0x43d,_0x124378:0x4ae,_0x4d8472:0x35f,_0x14ce7d:0x416,_0x32a5b5:0x4e0,_0x15ae68:0x5ff,_0x4788ad:0x5f0,_0x48a558:0x5eb,_0xcbb0b7:0x5fd,_0x3ea88d:0x5a4,_0xfae2c7:0x4c3,_0x478c01:0x531,_0x483097:0x565,_0x346d25:0x3d0,_0x4627e2:0x337,_0xec26fa:0x4b3,_0x11f9b8:0x33f,_0x58e821:0x3b6,_0x4df7bf:0x4ec,_0x6f152e:0x472,_0x2f31ef:0x46a,_0x534240:0x275,_0x450fc8:0x29b,_0x4f704b:0x2bd,_0x56acab:0x543,_0x58f913:0x54e,_0xb65237:0x515,_0x4b6ffe:0x4c6,_0x57854e:0x386,_0x4d58c8:0x57f,_0x2530e1:0x50e,_0x2675a5:0x3d2,_0xb3cf2a:0x62a,_0x343f7a:0x57e,_0x2005ef:0x4e6,_0x49162a:0x3a8,_0x315640:0x441,_0x557227:0x485,_0x27e434:0x3fc,_0x2e96d5:0x4f0,_0x23546f:0x4a5,_0xfbdbc1:0x4b4,_0x5e1718:0x5c2,_0x5e50d0:0x5c9,_0x153470:0x64d,_0x2de974:0x62c,_0x389c57:0x489,_0x286c7b:0x466,_0x5114ae:0x421,_0x1d5e9a:0x564,_0x1df563:0x512,_0x4e196e:0x6a2,_0x190694:0x5ce,_0x2ea7da:0x41a,_0x5c8bcf:0x442,_0x1cd683:0x4ec,_0x10705c:0x53d,_0x468e18:0x454,_0x5cb5f8:0x384,_0x580ff5:0x47a,_0x101f3c:0x3f2,_0x4363f8:0x4ab,_0x38b861:0x5e5,_0x9f7676:0x4c7,_0x4fde4c:0x46f,_0xb3ab5f:0x3e1,_0x12335f:0x440,_0x2b84bc:0x49c,_0x3b0372:0x536,_0x4d454b:0x574,_0x3ebfe7:0x536,_0x443a42:0x560,_0x3182ac:0x675,_0x47b0a5:0x544,_0x414138:0x443,_0x2d3eac:0x452,_0x5a237a:0x438,_0x2b5d73:0x4cd,_0x4544ac:0x4c7,_0xc0c5e:0x4d5,_0x28c5b9:0x506,_0x5700fa:0x472,_0x2ab10d:0x43e,_0x3a442e:0x459,_0x46961f:0x3c8,_0x2525b1:0x49e,_0xbaf32d:0x6b5,_0x3d1007:0x694,_0x33fa70:0x5e5,_0x23e858:0x628,_0x1792a1:0x61d,_0x97d7ff:0x4c1,_0x49679a:0x46f,_0x3355b9:0x338,_0x234444:0x417,_0x415d37:0x600,_0x367f03:0x4e0,_0x207307:0x548,_0x333c01:0x3ac,_0x151771:0x4b1,_0x3ea254:0x57c,_0x191901:0x49f,_0x1b2648:0x637,_0xca2a43:0x606,_0x745690:0x4e0,_0x58a888:0x52e,_0x12fff0:0x5b8,_0x3d8e4c:0x50f,_0x4fefba:0x5e1,_0x1b6d05:0x4bd,_0x10a9bb:0x52f,_0x3a582a:0x56d,_0x1f7105:0x4f4,_0xd67aa7:0x46d,_0x74ad04:0x4ec,_0x2396c2:0x4ed,_0x19f5dd:0x310,_0xe1729c:0x4c1,_0x1ce4cc:0x3f9,_0x48d0c8:0x3f2,_0x12e709:0x54e,_0x2d19b3:0x4d4,_0x1e031c:0x463,_0x5d6c7e:0x43a,_0x4b4e7a:0x43d,_0x44ce4d:0x2f1,_0x37954a:0x291,_0x5c649d:0x612,_0x26d23f:0x529,_0x2f2cfe:0x46f,_0x51c9c3:0x457,_0x3847b5:0x408,_0x41f5a7:0x66f,_0x2b5487:0x677,_0x2710f9:0x3e8,_0x1e25ee:0x474,_0x595b0f:0x3a2,_0x2f4cad:0x418,_0x4ae5e1:0x49b,_0x193dd0:0x497,_0x1d7cce:0x533,_0x5aea2d:0x5cd,_0x440e2d:0x508,_0x52f899:0x4a1,_0x1f6f9e:0x499,_0x32efe8:0x3f3,_0x5cef86:0x4aa,_0x5c804f:0x359,_0x174688:0x3d6,_0x57698e:0x42f,_0x143fd6:0x3d0,_0x2e6566:0x4f0,_0x445323:0x536,_0x533498:0x5b1,_0x525aaa:0x381,_0x1f974d:0x292,_0x458237:0x376,_0x5d8b8c:0x5e8,_0x39703e:0x496,_0x168eac:0x3db,_0x3c3a37:0x376,_0x221a2e:0x513,_0x42e36b:0x5d8,_0x103ede:0x67f,_0x2d5717:0x4ca,_0x3f75a3:0x452,_0x33b4c3:0x3cb,_0x43a5cf:0x430,_0x46f528:0x4d3,_0x15a696:0x4ff,_0x25cb3b:0x375,_0x4c1413:0x2f9,_0x4702fb:0x63a,_0x2c78ac:0x640,_0x3c945b:0x38b,_0xd2e6cd:0x45d,_0x429097:0x53a,_0x4dd2a2:0x558,_0x1ae4b6:0x487,_0xe2a742:0x5ac,_0x16ab64:0x581,_0x5f0dcc:0x48a,_0x408182:0x3bc,_0x485324:0x45d,_0x12325a:0x41d,_0x237e9c:0x3fd,_0x28fba1:0x535,_0x547c6b:0x4e2,_0x291353:0x47f,_0x9847d6:0x2c5,_0x2dd762:0x35f},_0xb292ff={_0x3a7b8d:0x139},_0x382d2d={_0x4303e8:0x9a};switch(_0x1029e0){case _0x435107(0x405,_0x247f74._0x1f528e,0x2fd,_0x247f74._0x2a6332):{const _0x4509a2=typeof _0x4b0869[_0x5d1be0(_0x247f74._0x40b6bb,_0x247f74._0x1b113c,0x536,0x5fa)]===_0x435107(_0x247f74._0x905234,_0x247f74._0x2631b6,0x303,0x376)?_0x4b0869[_0x5d1be0(_0x247f74._0x565270,0x5d8,0x536,_0x247f74._0x508b9f)]:0x0,_0x2aeb5=typeof _0x4b0869[_0x435107(0x383,_0x247f74._0xbdff7c,0x3a9,0x46d)]==='string'?_0x4b0869[_0x435107(0x554,_0x247f74._0x97b133,0x4e1,0x46d)]:'';if(_0x2aeb5[_0x435107(0x42c,0x5b2,_0x247f74._0x317093,_0x247f74._0x391978)]>0x0){const _0x2a3334=this[_0x435107(_0x247f74._0x57c3ba,_0x247f74._0x30fab4,_0x247f74._0x5b436f,0x38b)]['get'](_0x4509a2)??[];return _0x2a3334[_0x5d1be0(_0x247f74._0x187c82,0x56b,0x56b,_0x247f74._0x3e0235)](_0x2aeb5),this[_0x5d1be0(_0x247f74._0x9de6c3,0x403,0x484,0x51c)][_0x5d1be0(_0x247f74._0x1a9685,_0x247f74._0x2f6b81,0x5ff,_0x247f74._0x351569)](_0x4509a2,_0x2a3334),[{'type':_0x435107(0x32e,0x49b,_0x247f74._0xab465b,_0x247f74._0x51c075),'index':_0x4509a2,'text':_0x2aeb5}];}break;}case _0x435107(0x359,0x337,_0x247f74._0x5183f3,0x38e):{const _0x5423d0=typeof _0x4b0869[_0x435107(_0x247f74._0x4327a2,_0x247f74._0x427258,_0x247f74._0x549c2a,0x43d)]===_0x5d1be0(_0x247f74._0x36bc6e,0x431,_0x247f74._0x1cdffe,_0x247f74._0x1e85a5)?_0x4b0869[_0x435107(0x488,0x47b,0x364,0x43d)]:void 0x0,_0x2a2f29=_0x4b0869['item'];if(_0x2a2f29?.['type']===_0x5d1be0(0x597,_0x247f74._0x2429ce,_0x247f74._0x4530b5,0x4e1)&&_0x2a2f29[_0x5d1be0(_0x247f74._0x237cd,_0x247f74._0x2c4e13,_0x247f74._0x294e21,0x400)]&&_0x2a2f29['name'])return this[_0x435107(0x430,_0x247f74._0x2fef48,0x35a,0x3ff)][_0x5d1be0(0x54e,0x559,0x5ff,0x549)](_0x2a2f29[_0x5d1be0(0x44c,0x427,0x4a1,_0x247f74._0x241529)],{'id':_0x2a2f29[_0x435107(_0x247f74._0x1cbba3,0x2cf,_0x247f74._0x25429d,0x3a8)],'type':_0x5d1be0(_0x247f74._0x2b6256,_0x247f74._0x5d012e,_0x247f74._0x3a3896,0x41f),'function':{'name':_0x2a2f29[_0x5d1be0(_0x247f74._0x385e2c,_0x247f74._0x20ba83,0x461,0x3d3)],'arguments':''}}),_0x5423d0!==void 0x0&&(this['outputIndexToCallId'][_0x5d1be0(_0x247f74._0x493dc2,_0x247f74._0x51ad43,_0x247f74._0x47a9eb,0x53f)](_0x5423d0,_0x2a2f29[_0x5d1be0(_0x247f74._0x336a85,0x57e,0x4a1,_0x247f74._0x17552b)]),this['callIdToOutputIndex'][_0x435107(0x576,0x5b7,_0x247f74._0x470910,0x506)](_0x2a2f29[_0x435107(0x41f,0x2c1,_0x247f74._0x24fc52,_0x247f74._0x2b95e7)],_0x5423d0)),[{'type':_0x435107(_0x247f74._0x11564b,0x3a9,_0x247f74._0x3aaa67,_0x247f74._0x4d2a01),'id':_0x2a2f29[_0x435107(0x2f6,0x347,0x2f4,_0x247f74._0x2b95e7)],'index':_0x5423d0??0x0,'name':_0x2a2f29['name']}];if(_0x2a2f29?.[_0x5d1be0(_0x247f74._0x3cdf2f,_0x247f74._0x1983f4,_0x247f74._0x1d79df,0x601)]===_0x435107(0x40f,0x3a9,0x363,_0x247f74._0x3c25cc)&&_0x2a2f29['id']){const _0x2e5212=this[_0x5d1be0(_0x247f74._0x1dee79,_0x247f74._0x4f7b8b,0x452,0x4c6)](_0x2a2f29['id'],_0x5423d0);_0x5423d0!==void 0x0&&this[_0x435107(0x25d,0x33f,_0x247f74._0x169dcc,0x338)][_0x5d1be0(_0x247f74._0xc827d7,0x57e,0x5ff,0x6ea)](_0x5423d0,_0x2e5212['id']);}break;}case'response.function_call_arguments.delta':{const _0x52810b=typeof _0x4b0869[_0x435107(_0x247f74._0x43464d,0x347,0x484,_0x247f74._0x9fb03b)]===_0x435107(_0x247f74._0x584dc4,0x4b5,_0x247f74._0x233f80,0x3f3)?_0x4b0869[_0x5d1be0(0x4bb,0x4b3,0x4a1,0x3cd)]:typeof _0x4b0869[_0x435107(0x39b,_0x247f74._0x5c3b55,_0x247f74._0x4f5dc7,0x43d)]===_0x435107(0x3f8,_0x247f74._0x1c1903,_0x247f74._0x903cbd,0x376)?this[_0x5d1be0(_0x247f74._0x5ab920,0x368,_0x247f74._0x5c0a18,0x375)][_0x435107(_0x247f74._0x34d80c,0x2e4,_0x247f74._0x43d2cd,_0x247f74._0x442fa1)](_0x4b0869['output_index']):void 0x0,_0x4e6cf6=typeof _0x4b0869['delta']===_0x435107(0x41d,0x49d,0x4e3,_0x247f74._0x389106)?_0x4b0869['delta']:'',_0x1d9e0e=_0x52810b?this[_0x435107(_0x247f74._0x460ea7,0x393,_0x247f74._0x13f54b,_0x247f74._0x537ac4)]['get'](_0x52810b):void 0x0;if(_0x1d9e0e&&_0x4e6cf6[_0x5d1be0(0x5c5,_0x247f74._0x2719a3,_0x247f74._0x36b712,_0x247f74._0x266e49)]>0x0)return _0x1d9e0e['function'][_0x5d1be0(_0x247f74._0x40d1d0,_0x247f74._0x19b42d,_0x247f74._0x4bb3c7,0x4fd)]+=_0x4e6cf6,[{'type':_0x5d1be0(_0x247f74._0x446fa2,0x5c4,0x514,_0x247f74._0x3d6f84),'id':_0x1d9e0e['id'],'index':this['callIdToOutputIndex'][_0x5d1be0(0x431,_0x247f74._0x1903bb,_0x247f74._0x256fef,0x3e9)](_0x1d9e0e['id'])??(typeof _0x4b0869[_0x435107(0x441,_0x247f74._0x1c29c7,0x512,0x43d)]===_0x435107(0x2ad,_0x247f74._0xbcac95,0x421,0x376)?_0x4b0869[_0x5d1be0(0x454,0x5e2,_0x247f74._0x4a1a08,_0x247f74._0x47839c)]:0x0),'inputDelta':_0x4e6cf6}];break;}case _0x5d1be0(0x506,_0x247f74._0x5d0701,_0x247f74._0x216584,0x676):{const _0x5a6bc7=typeof _0x4b0869['call_id']===_0x5d1be0(_0x247f74._0x2a6330,_0x247f74._0x5a1478,0x4ec,0x421)?_0x4b0869[_0x5d1be0(_0x247f74._0x35a8d8,0x3e2,0x4a1,0x539)]:typeof _0x4b0869[_0x5d1be0(_0x247f74._0x59e140,0x49c,_0x247f74._0x4a1a08,_0x247f74._0x4deffa)]===_0x5d1be0(0x556,_0x247f74._0x52e976,_0x247f74._0x244d06,_0x247f74._0x23d396)?this[_0x5d1be0(0x3a5,0x34b,_0x247f74._0x58ab94,_0x247f74._0x5a7002)][_0x5d1be0(_0x247f74._0x2c204b,_0x247f74._0x592c00,0x4b3,0x4a4)](_0x4b0869[_0x435107(0x443,0x3a7,0x367,_0x247f74._0x1e62e5)]):void 0x0,_0x3fcddc=_0x5a6bc7?this[_0x435107(_0x247f74._0x3699a3,0x437,0x43b,0x3ff)][_0x5d1be0(0x561,0x567,0x4b3,0x3d4)](_0x5a6bc7):void 0x0;_0x3fcddc&&typeof _0x4b0869[_0x5d1be0(0x4c0,_0x247f74._0x179a9e,_0x247f74._0x1d37d3,0x49f)]===_0x5d1be0(0x4e0,_0x247f74._0x8ceee8,0x4ec,_0x247f74._0x1046a8)&&(_0x3fcddc['function']['arguments']=_0x4b0869[_0x5d1be0(_0x247f74._0x49bf79,0x3c8,0x43f,0x42a)]);break;}case _0x5d1be0(0x50b,_0x247f74._0x581e7f,0x46e,_0x247f74._0x1a84e3):{const _0x4368cf=typeof _0x4b0869[_0x435107(_0x247f74._0xd2045b,_0x247f74._0x60d6bb,0x464,_0x247f74._0x58dbdf)]===_0x5d1be0(_0x247f74._0x124378,0x4e6,0x46f,0x4ce)?_0x4b0869[_0x435107(_0x247f74._0x4d8472,_0x247f74._0x14ce7d,_0x247f74._0x32a5b5,0x43d)]:void 0x0,_0x283c9b=_0x4b0869[_0x5d1be0(0x5ff,_0x247f74._0x15ae68,0x56c,_0x247f74._0x4788ad)];if(_0x283c9b?.[_0x5d1be0(_0x247f74._0x48a558,_0x247f74._0xcbb0b7,0x5ba,_0x247f74._0x3ea88d)]===_0x5d1be0(_0x247f74._0xfae2c7,_0x247f74._0x478c01,0x4e9,_0x247f74._0x483097)){const _0x2dc438=_0x283c9b['call_id']??(_0x4368cf!==void 0x0?this[_0x435107(_0x247f74._0x346d25,0x3dc,0x42c,_0x247f74._0x4627e2)][_0x5d1be0(0x469,0x4e6,_0x247f74._0xec26fa,0x573)](_0x4368cf):void 0x0),_0x3d1794=_0x2dc438?this[_0x435107(0x347,_0x247f74._0x11f9b8,_0x247f74._0x58e821,_0x247f74._0x537ac4)][_0x5d1be0(0x43d,0x51d,_0x247f74._0xec26fa,0x43a)](_0x2dc438):void 0x0;_0x3d1794&&typeof _0x283c9b['arguments']===_0x5d1be0(0x4e2,_0x247f74._0x13f54b,_0x247f74._0x4df7bf,0x50f)&&(_0x3d1794[_0x5d1be0(_0x247f74._0x6f152e,0x3de,0x4a4,_0x247f74._0x2f31ef)][_0x5d1be0(0x479,0x39a,0x43f,0x4e9)]=_0x283c9b[_0x435107(_0x247f74._0x534240,_0x247f74._0x450fc8,_0x247f74._0x4f704b,0x346)]);break;}if(_0x283c9b?.[_0x5d1be0(0x630,0x4d9,0x5ba,_0x247f74._0x56acab)]===_0x5d1be0(_0x247f74._0x58f913,0x4a8,0x519,_0x247f74._0xb65237)&&_0x283c9b['id']){const _0x12eed4=this[_0x5d1be0(_0x247f74._0x4b6ffe,0x426,0x452,_0x247f74._0x57854e)](_0x283c9b['id'],_0x4368cf);typeof _0x283c9b[_0x5d1be0(_0x247f74._0x4d58c8,0x4cd,0x58e,_0x247f74._0x2530e1)]==='string'&&(_0x12eed4[_0x435107(0x422,0x445,_0x247f74._0x2675a5,0x397)]=_0x283c9b['encrypted_content']);if(Array['isArray'](_0x283c9b[_0x5d1be0(_0x247f74._0xb3cf2a,0x5b2,_0x247f74._0x343f7a,_0x247f74._0x2005ef)]))for(let _0x10d0cf=0x0;_0x10d0cf<_0x283c9b[_0x435107(_0x247f74._0x49162a,0x48e,_0x247f74._0x315640,_0x247f74._0x557227)]['length'];_0x10d0cf+=0x1){const _0x3fce03=_0x283c9b['summary'][_0x10d0cf];_0x3fce03['type']===_0x435107(0x48a,_0x247f74._0x27e434,_0x247f74._0x2e96d5,0x4b1)&&typeof _0x3fce03[_0x435107(_0x247f74._0x23546f,0x479,0x4a6,_0x247f74._0xfbdbc1)]===_0x5d1be0(0x504,_0x247f74._0x5e1718,_0x247f74._0x4df7bf,_0x247f74._0x5e50d0)&&_0x12eed4[_0x5d1be0(0x569,0x582,0x534,0x5f1)]['set'](_0x10d0cf,_0x3fce03[_0x5d1be0(0x4e5,_0x247f74._0x153470,0x5ad,_0x247f74._0x2de974)]);}typeof _0x283c9b['text']===_0x5d1be0(_0x247f74._0x389c57,0x555,0x4ec,0x592)&&_0x12eed4[_0x435107(0x407,0x488,_0x247f74._0x286c7b,0x3a2)][_0x435107(0x4ac,_0x247f74._0x5114ae,0x51e,0x506)](0x0,_0x283c9b[_0x435107(0x46a,_0x247f74._0x1d5e9a,_0x247f74._0x1df563,0x4b4)]);}break;}case _0x5d1be0(_0x247f74._0x4e196e,0x67e,0x5e0,_0x247f74._0x190694):{const _0x50b369=typeof _0x4b0869['delta']===_0x5d1be0(_0x247f74._0x2ea7da,_0x247f74._0x5c8bcf,_0x247f74._0x1cd683,_0x247f74._0x10705c)?_0x4b0869[_0x435107(_0x247f74._0x468e18,_0x247f74._0x5cb5f8,0x3fd,0x46d)]:'',_0xfd5122=typeof _0x4b0869['item_id']===_0x5d1be0(0x518,0x457,0x4ec,0x5a5)?_0x4b0869[_0x435107(0x43c,0x3da,_0x247f74._0x580ff5,_0x247f74._0x101f3c)]:typeof _0x4b0869[_0x5d1be0(_0x247f74._0x4363f8,_0x247f74._0x38b861,0x536,0x48e)]===_0x5d1be0(0x4ac,_0x247f74._0x9f7676,_0x247f74._0x4fde4c,0x4ca)?this['outputIndexToReasoningId'][_0x5d1be0(_0x247f74._0xb3ab5f,0x491,_0x247f74._0x256fef,_0x247f74._0x12335f)](_0x4b0869[_0x5d1be0(_0x247f74._0x2b84bc,0x4c1,_0x247f74._0x3b0372,0x58d)]):void 0x0,_0x4da90b=typeof _0x4b0869['output_index']==='number'?_0x4b0869[_0x5d1be0(0x46b,_0x247f74._0x4d454b,_0x247f74._0x3ebfe7,0x449)]:0x0,_0x49d591=typeof _0x4b0869['summary_index']==='number'?_0x4b0869[_0x5d1be0(_0x247f74._0x443a42,0x4c3,0x598,_0x247f74._0x3182ac)]:0x0;if(_0xfd5122&&_0x50b369[_0x435107(_0x247f74._0x47b0a5,_0x247f74._0x414138,0x56b,_0x247f74._0x5a1478)]>0x0){const _0x34ea04=this[_0x5d1be0(0x432,0x3fa,_0x247f74._0x2d3eac,_0x247f74._0x5a237a)](_0xfd5122,_0x4da90b);_0x34ea04[_0x5d1be0(_0x247f74._0x2b5d73,_0x247f74._0x4544ac,0x534,0x5fc)][_0x435107(_0x247f74._0xc0c5e,0x41b,0x444,_0x247f74._0x28c5b9)](_0x49d591,''+(_0x34ea04[_0x5d1be0(_0x247f74._0x5700fa,_0x247f74._0x11564b,0x534,_0x247f74._0x2b5d73)][_0x5d1be0(0x4c7,_0x247f74._0x2ab10d,0x4b3,_0x247f74._0x3a442e)](_0x49d591)??'')+_0x50b369);if(isUserVisibleReasoning(this[_0x5d1be0(_0x247f74._0x46961f,0x4a1,_0x247f74._0x2525b1,0x4e1)]))return[{'type':_0x5d1be0(_0x247f74._0xbaf32d,_0x247f74._0x3d1007,_0x247f74._0x33fa70,_0x247f74._0x58f913),'delta':_0x50b369,'itemId':_0xfd5122,'outputIndex':_0x4da90b,'summaryIndex':_0x49d591}];}break;}case'response.reasoning_summary_text.done':{const _0x202811=typeof _0x4b0869['item_id']==='string'?_0x4b0869[_0x435107(0x411,0x447,0x35d,_0x247f74._0x101f3c)]:typeof _0x4b0869[_0x5d1be0(_0x247f74._0x23e858,_0x247f74._0x1792a1,0x536,0x5d6)]===_0x5d1be0(_0x247f74._0x4fde4c,_0x247f74._0x97d7ff,_0x247f74._0x49679a,0x4e7)?this[_0x435107(0x3a0,0x28b,0x324,_0x247f74._0x3355b9)]['get'](_0x4b0869[_0x435107(0x438,0x366,0x47f,0x43d)]):void 0x0,_0x10ebfc=typeof _0x4b0869[_0x435107(0x529,0x4a8,_0x247f74._0x234444,0x43d)]==='number'?_0x4b0869[_0x5d1be0(_0x247f74._0x415d37,_0x247f74._0x367f03,0x536,0x546)]:0x0,_0x323940=typeof _0x4b0869[_0x435107(_0x247f74._0x207307,0x45c,0x556,0x49f)]===_0x5d1be0(0x529,0x3c8,_0x247f74._0x4fde4c,_0x247f74._0x333c01)?_0x4b0869[_0x435107(_0x247f74._0x151771,_0x247f74._0x3ea254,0x51c,_0x247f74._0x191901)]:0x0,_0x2a7e76=typeof _0x4b0869[_0x5d1be0(_0x247f74._0x1b2648,_0x247f74._0xca2a43,0x5ad,_0x247f74._0x15ae68)]===_0x435107(0x3b7,_0x247f74._0x30fab4,_0x247f74._0x745690,0x3f3)?_0x4b0869[_0x5d1be0(_0x247f74._0x58a888,_0x247f74._0x12fff0,0x5ad,_0x247f74._0x3d8e4c)]:'';_0x202811&&this['getOrCreateReasoningItem'](_0x202811,_0x10ebfc)[_0x5d1be0(_0x247f74._0x4fefba,_0x247f74._0x1b6d05,0x534,0x5bc)][_0x435107(_0x247f74._0x1df563,_0x247f74._0x10a9bb,_0x247f74._0x3a582a,_0x247f74._0x28c5b9)](_0x323940,_0x2a7e76);break;}case'response.reasoning_text.delta':{const _0x3fec36=typeof _0x4b0869[_0x435107(_0x247f74._0x1f7105,_0x247f74._0x59e140,0x422,_0x247f74._0xd67aa7)]===_0x5d1be0(_0x247f74._0x13f54b,0x4ce,_0x247f74._0x74ad04,0x4cc)?_0x4b0869[_0x5d1be0(0x63d,_0x247f74._0x2396c2,0x566,_0x247f74._0x443a42)]:'',_0x48be1c=typeof _0x4b0869['item_id']===_0x435107(0x37e,_0x247f74._0x19f5dd,0x42e,0x3f3)?_0x4b0869[_0x435107(0x3b1,_0x247f74._0xe1729c,_0x247f74._0x1ce4cc,_0x247f74._0x48d0c8)]:typeof _0x4b0869['output_index']==='number'?this[_0x435107(0x2c9,0x298,0x3d5,_0x247f74._0x3355b9)][_0x5d1be0(_0x247f74._0x12e709,_0x247f74._0x2d19b3,_0x247f74._0x256fef,0x530)](_0x4b0869[_0x435107(_0x247f74._0x1ce4cc,_0x247f74._0x1e031c,_0x247f74._0x5d6c7e,_0x247f74._0x58dbdf)]):void 0x0,_0x4c54a2=typeof _0x4b0869[_0x435107(0x50f,0x45b,_0x247f74._0x10a9bb,_0x247f74._0x4b4e7a)]===_0x435107(0x44d,_0x247f74._0x44ce4d,_0x247f74._0x37954a,_0x247f74._0x20ba83)?_0x4b0869[_0x5d1be0(_0x247f74._0x5c649d,0x57c,_0x247f74._0x3ebfe7,_0x247f74._0x237cd)]:0x0,_0x4745c5=typeof _0x4b0869['content_index']===_0x5d1be0(_0x247f74._0x26d23f,0x3d5,_0x247f74._0x2f2cfe,0x387)?_0x4b0869[_0x5d1be0(0x510,_0x247f74._0x51c9c3,_0x247f74._0x745690,_0x247f74._0x3847b5)]:0x0;if(_0x48be1c&&_0x3fec36[_0x5d1be0(0x5ae,_0x247f74._0x41f5a7,0x603,_0x247f74._0x2b5487)]>0x0){const _0x4e7cfb=this[_0x435107(0x31a,_0x247f74._0x2710f9,0x410,0x359)](_0x48be1c,_0x4c54a2);_0x4e7cfb[_0x435107(_0x247f74._0x1e25ee,0x39f,0x3cc,_0x247f74._0x595b0f)][_0x435107(0x498,0x472,_0x247f74._0x2f4cad,_0x247f74._0x28c5b9)](_0x4745c5,''+(_0x4e7cfb[_0x5d1be0(0x47e,0x4d9,_0x247f74._0x4ae5e1,0x52c)][_0x435107(_0x247f74._0x193dd0,0x450,0x475,0x3ba)](_0x4745c5)??'')+_0x3fec36);if(isUserVisibleReasoning(this['request']))return[{'type':'openai_reasoning_delta','contentIndex':_0x4745c5,'delta':_0x3fec36,'itemId':_0x48be1c,'outputIndex':_0x4c54a2}];}break;}case _0x5d1be0(0x4da,_0x247f74._0x1d7cce,_0x247f74._0x5aea2d,_0x247f74._0x440e2d):{const _0x42f5c6=typeof _0x4b0869[_0x5d1be0(0x461,_0x247f74._0x3ea88d,0x4eb,0x4ac)]===_0x435107(_0x247f74._0x52f899,_0x247f74._0x2f4cad,_0x247f74._0x1f6f9e,_0x247f74._0x32efe8)?_0x4b0869['item_id']:typeof _0x4b0869[_0x435107(0x41b,_0x247f74._0x5cef86,0x49e,0x43d)]===_0x435107(_0x247f74._0x5c804f,0x2ad,0x2df,0x376)?this[_0x5d1be0(0x451,0x382,0x431,0x4ed)][_0x5d1be0(_0x247f74._0x174688,_0x247f74._0x57698e,0x4b3,_0x247f74._0x143fd6)](_0x4b0869[_0x5d1be0(_0x247f74._0x2e6566,0x619,_0x247f74._0x445323,0x48c)]):void 0x0,_0x524950=typeof _0x4b0869[_0x5d1be0(_0x247f74._0x533498,0x496,_0x247f74._0x3b0372,0x468)]===_0x435107(_0x247f74._0x525aaa,_0x247f74._0x1f974d,0x45d,_0x247f74._0x458237)?_0x4b0869[_0x5d1be0(_0x247f74._0x49bf79,_0x247f74._0x5d8b8c,_0x247f74._0x3ebfe7,_0x247f74._0x39703e)]:0x0,_0x48b50e=typeof _0x4b0869['content_index']===_0x435107(_0x247f74._0x52e976,0x28a,_0x247f74._0x168eac,_0x247f74._0x3c3a37)?_0x4b0869[_0x5d1be0(_0x247f74._0x221a2e,0x411,0x4e0,0x500)]:0x0,_0x12fd2c=typeof _0x4b0869['text']===_0x5d1be0(_0x247f74._0x42e36b,0x542,_0x247f74._0x4df7bf,0x572)?_0x4b0869[_0x5d1be0(0x5d0,_0x247f74._0x103ede,0x5ad,_0x247f74._0x2d5717)]:'';_0x42f5c6&&this[_0x5d1be0(0x3a0,0x363,_0x247f74._0x3f75a3,0x3e0)](_0x42f5c6,_0x524950)[_0x5d1be0(_0x247f74._0x33b4c3,0x54d,_0x247f74._0x4ae5e1,_0x247f74._0x43a5cf)][_0x435107(0x478,_0x247f74._0x46f528,_0x247f74._0x15a696,0x506)](_0x48b50e,_0x12fd2c);break;}case _0x5d1be0(0x612,0x6c2,0x5fc,0x6c2):{this['finalResponse']=_0x4b0869[_0x435107(0x356,_0x247f74._0x25cb3b,_0x247f74._0x4c1413,0x347)];break;}case _0x5d1be0(_0x247f74._0x4702fb,0x58f,0x571,_0x247f74._0x2c78ac):{const _0x8e61d3=_0x4b0869['response'];throw new ProviderStreamEventError(_0x8e61d3?.[_0x435107(0x5f5,0x4b2,0x57c,0x50e)]?.['message']??_0x5d1be0(_0x247f74._0x3c945b,0x429,_0x247f74._0xd2e6cd,_0x247f74._0x429097),{'code':_0x8e61d3?.[_0x5d1be0(0x65a,0x521,0x607,0x5fc)]?.['code'],'retryable':!![]});}case _0x5d1be0(0x6ca,0x514,0x607,_0x247f74._0x4dd2a2):{const _0x18d4e3=_0x4b0869[_0x435107(_0x247f74._0x1ae4b6,_0x247f74._0x336a85,_0x247f74._0xe2a742,0x50e)];throw new ProviderStreamEventError(_0x18d4e3?.[_0x5d1be0(_0x247f74._0x16ab64,_0x247f74._0x5f0dcc,0x4e1,0x4f4)]??_0x5d1be0(0x536,_0x247f74._0x408182,_0x247f74._0x485324,0x3fc),{'code':_0x18d4e3?.[_0x435107(_0x247f74._0x12325a,0x366,0x4ec,_0x247f74._0x237e9c)],'retryable':!![],'status':typeof _0x4b0869[_0x5d1be0(0x3da,_0x247f74._0x28fba1,0x458,_0x247f74._0x547c6b)]===_0x5d1be0(_0x247f74._0x291353,0x4e2,0x46f,0x454)?_0x4b0869[_0x435107(0x3de,_0x247f74._0x9847d6,0x2cf,_0x247f74._0x2dd762)]:void 0x0});}}function _0x5d1be0(_0x2aaa22,_0x34477a,_0x8466c3,_0x4e0c2d){return _0x54ac71(_0x2aaa22-_0x382d2d._0x4303e8,_0x2aaa22,_0x8466c3-0x125,_0x4e0c2d-0x10);}function _0x435107(_0x3f8f49,_0x173a31,_0x4046e5,_0x25ad07){return _0x5276b1(_0x3f8f49,_0x173a31-0x6d,_0x4046e5-_0xb292ff._0x3a7b8d,_0x25ad07-0x429);}return[];}[_0x54ac71(0x4df,0x593,0x4a5,0x4c9)](){const _0x5d0d57={_0x42c750:0xc0,_0x2260f7:0x8b,_0x1abf6c:0x101,_0x32feeb:0x65,_0x3e567b:0x77,_0x437030:0x29e,_0x740bb8:0x70,_0x348179:0x253,_0x1359fc:0x18d,_0x55466a:0x162,_0x3bb43d:0x136,_0x1da1f7:0x1a9,_0x4087a5:0x144,_0x3bec08:0x172,_0x282f0f:0x1ea,_0x5de10d:0xf0,_0x1459b2:0x2d,_0x131325:0xcb,_0x27eee8:0x120,_0xdba69d:0x168,_0x3e657f:0xc4,_0x6ec792:0x228,_0x127e70:0x153,_0x4d9cb6:0x27,_0x418e7a:0xbb,_0x1bd912:0x12a,_0x50cf0f:0x175,_0x41b221:0x145,_0x289c70:0x4a,_0xe9b15d:0xe9,_0x1b7bb6:0x165,_0x4123fa:0x1a8,_0x3e8b96:0x115,_0x57bd8a:0x7d,_0x5cc42f:0xff,_0x381254:0xdd,_0x52ca3b:0xea,_0x513f5e:0xa2,_0x515c75:0x221,_0x41e835:0x245,_0x11661b:0x255,_0x5d2e65:0x2a,_0x2e1a02:0x56,_0x209048:0x120,_0x13889b:0xe6,_0x22532c:0xa5,_0x3d7727:0x4c,_0xe63266:0x38,_0x25525f:0x209,_0x254045:0x2f6,_0x1a67cc:0x20a,_0x4198f2:0x154,_0x5efb28:0x1ca,_0x2d5449:0x11d,_0x49fb4d:0x197,_0x444dbc:0x6e,_0x250ef3:0x31,_0x5defb1:0x18a,_0x2830f4:0x1ce,_0x280a88:0x294,_0x332809:0x1e,_0xd06630:0xe9},_0x3b6a34={_0x4cb73a:0x353},_0x43e5da={_0x1b659a:0x1af},_0x1530e4={_0x52066b:0xdd},_0x2d729f={_0x13bb37:0xd6},_0x152ac1=[];for(const [_0x328829,_0x62d4f5]of this[_0x3dd676(0xaa,0x40,_0x5d0d57._0x42c750,_0x5d0d57._0x2260f7)][_0x3dd676(_0x5d0d57._0x1abf6c,-_0x5d0d57._0x32feeb,-0x22,_0x5d0d57._0x3e567b)]()){const _0x55c0ea=_0x62d4f5['join']('');if(_0x55c0ea[_0x3dd676(0x1be,_0x5d0d57._0x437030,0x2be,0x20a)]===0x0)continue;_0x152ac1['push']({'index':_0x328829,'item':{'type':_0x5afb60(-_0x5d0d57._0x740bb8,-0x18d,-0x117,-0xaa),'role':'assistant','content':[{'type':_0x5afb60(-0x16e,-_0x5d0d57._0x348179,-_0x5d0d57._0x1359fc,-_0x5d0d57._0x55466a),'text':_0x55c0ea}]}});}function _0x5afb60(_0x2191d4,_0x2f9865,_0xfa37f3,_0x454ed6){return _0x5276b1(_0x454ed6,_0x2f9865-0x1cc,_0xfa37f3-0x15b,_0xfa37f3- -_0x2d729f._0x13bb37);}function _0x3dd676(_0x189cae,_0x5aa825,_0x3384cf,_0x3601c8){return _0x54ac71(_0x189cae-_0x1530e4._0x52066b,_0x5aa825,_0x3601c8- -0x2d4,_0x3601c8-0x149);}for(const _0x57458b of this['reasoningItems'][_0x5afb60(-_0x5d0d57._0x3bb43d,-0x18c,-_0x5d0d57._0x1da1f7,-0x15a)]()){_0x152ac1[_0x3dd676(0x166,0x1c8,_0x5d0d57._0x4087a5,_0x5d0d57._0x3bec08)]({'index':_0x57458b[_0x3dd676(0x2d9,0x200,0x141,_0x5d0d57._0x282f0f)]??_0x152ac1[_0x5afb60(-0xc2,_0x5d0d57._0x5de10d,0xb,0x14)],'item':{'type':_0x3dd676(0x1d7,_0x5d0d57._0x1459b2,_0x5d0d57._0x131325,_0x5d0d57._0x27eee8),'id':_0x57458b['id'],..._0x57458b[_0x5afb60(-0xe6,-0x219,-_0x5d0d57._0xdba69d,-0x131)]?{'encrypted_content':_0x57458b[_0x5afb60(-_0x5d0d57._0x3e657f,-_0x5d0d57._0x6ec792,-0x168,-0x11b)]}:{},..._0x57458b[_0x5afb60(-_0x5d0d57._0x127e70,-0x135,-_0x5d0d57._0x3e657f,-_0x5d0d57._0x4d9cb6)][_0x3dd676(_0x5d0d57._0x418e7a,0x1c5,0xc4,_0x5d0d57._0x1bd912)]>0x0?{'summary':Array['from'](_0x57458b[_0x5afb60(-0x18b,-0x34,-0xc4,-0xfa)][_0x5afb60(-_0x5d0d57._0x50cf0f,-_0x5d0d57._0x41b221,-0x188,-0x216)]())[_0x3dd676(-0x7a,0x6a,_0x5d0d57._0x289c70,0x31)]((_0x522ed9,_0x275a1f)=>_0x522ed9[0x0]-_0x275a1f[0x0])[_0x5afb60(-0xdc,-0x2b,-_0x5d0d57._0xe9b15d,-_0x5d0d57._0x1b7bb6)](([,_0x4724c3])=>{function _0x240da1(_0x1ac2a6,_0x56ddb8,_0x152d25,_0x12f33f){return _0x3dd676(_0x1ac2a6-0x108,_0x1ac2a6,_0x152d25-_0x43e5da._0x1b659a,_0x152d25-0x1a2);}return{'type':_0x240da1(0x434,0x280,_0x3b6a34._0x4cb73a,0x32c),'text':_0x4724c3};})}:{},..._0x57458b[_0x5afb60(-_0x5d0d57._0x4123fa,-_0x5d0d57._0x3e8b96,-0x15d,-_0x5d0d57._0x57bd8a)][_0x5afb60(-0x15e,-0x166,-0xd5,-_0x5d0d57._0x5cc42f)]>0x0?{'text':Array[_0x3dd676(_0x5d0d57._0x381254,0x11e,_0x5d0d57._0x52ca3b,0x1af)](_0x57458b[_0x3dd676(0x51,0x6c,0x175,_0x5d0d57._0x513f5e)][_0x5afb60(-0xb3,-_0x5d0d57._0x515c75,-0x188,-_0x5d0d57._0x41e835)]())[_0x3dd676(0x105,0x76,0x28,0x31)]((_0x574d6c,_0x5a9389)=>_0x574d6c[0x0]-_0x5a9389[0x0])['map'](([,_0x1d80c5])=>_0x1d80c5)[_0x3dd676(_0x5d0d57._0x11661b,0x161,0x80,0x163)]('')}:{}}});}for(const _0x5efef7 of this['toolCalls'][_0x3dd676(-0x76,-_0x5d0d57._0x5d2e65,0x24,_0x5d0d57._0x2e1a02)]()){_0x152ac1[_0x3dd676(0x22b,_0x5d0d57._0x209048,_0x5d0d57._0x13889b,0x172)]({'index':this['callIdToOutputIndex'][_0x3dd676(_0x5d0d57._0x22532c,_0x5d0d57._0x3d7727,-_0x5d0d57._0xe63266,0xba)](_0x5efef7['id'])??_0x152ac1[_0x3dd676(0x284,_0x5d0d57._0x25525f,_0x5d0d57._0x254045,_0x5d0d57._0x1a67cc)],'item':{'type':'function_call','call_id':_0x5efef7['id'],'name':_0x5efef7[_0x5afb60(-0x1bd,-0x10e,-_0x5d0d57._0x4198f2,-0xb4)][_0x5afb60(-_0x5d0d57._0x5efb28,-_0x5d0d57._0x2d5449,-_0x5d0d57._0x49fb4d,-0x132)],'arguments':_0x5efef7[_0x5afb60(-0xf3,-_0x5d0d57._0x444dbc,-0x154,-0x243)][_0x3dd676(0x105,_0x5d0d57._0x250ef3,0xc5,0x46)]}});}return _0x152ac1[_0x5afb60(-_0x5d0d57._0x5defb1,-0x236,-_0x5d0d57._0x2830f4,-_0x5d0d57._0x280a88)]((_0xa93510,_0x2d8dfc)=>_0xa93510[_0x3dd676(0x98,0x6b,0x1a8,0x124)]-_0x2d8dfc[_0x5afb60(-0x66,-0xbb,-0xdb,-0x7b)])[_0x5afb60(-_0x5d0d57._0x332809,-0x4d,-_0x5d0d57._0xd06630,-0x1b3)](_0x49bd61=>_0x49bd61[_0x3dd676(0x10f,0x164,0x24e,0x173)]);}[_0x5276b1(-0x30,-0x10b,-0x3,-0xd0)](_0x4232b0,_0x31ec13){const _0x6ea2={_0x18781d:0x21a,_0x20bb41:0x34,_0x3916c7:0x8c,_0x181924:0x1ed,_0x171660:0x127,_0xaa8de3:0x1cc,_0x5e9c1a:0x19,_0x4a2cda:0xc9,_0x5adc1f:0x86,_0x5b1ba3:0x339,_0x5847bf:0x2b6,_0x1b7463:0x22b,_0x1068ad:0x3d0,_0x3f4b2b:0x362,_0x179e3e:0x385,_0x295e1b:0x1f,_0x32a0d4:0x4b,_0x3c0db8:0x6c},_0x2fdc8c={_0x5c139b:0x22,_0xb30a43:0x178,_0x4563ad:0xcd},_0x4866d3=this['reasoningItems'][_0x3a6294(0x24d,0x247,0x216,_0x6ea2._0x18781d)](_0x4232b0);function _0x3a6294(_0x2aecd6,_0x4bc3a5,_0x17ce3f,_0x3077f5){return _0x54ac71(_0x2aecd6-_0x2fdc8c._0x5c139b,_0x4bc3a5,_0x17ce3f- -_0x2fdc8c._0xb30a43,_0x3077f5-_0x2fdc8c._0x4563ad);}if(_0x4866d3)return _0x31ec13!==void 0x0&&(_0x4866d3[_0x246485(-0x3b,-_0x6ea2._0x20bb41,-0xa9,_0x6ea2._0x3916c7)]=_0x31ec13,this[_0x246485(-_0x6ea2._0x181924,-0x17d,-_0x6ea2._0x171660,-_0x6ea2._0xaa8de3)][_0x246485(-0x1f,-_0x6ea2._0x5e9c1a,-_0x6ea2._0x4a2cda,-_0x6ea2._0x5adc1f)](_0x31ec13,_0x4232b0)),_0x4866d3;const _0x5cf9db={'id':_0x4232b0,'outputIndex':_0x31ec13,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x3a6294(0x340,_0x6ea2._0x5b1ba3,_0x6ea2._0x5847bf,_0x6ea2._0x1b7463)][_0x3a6294(0x39a,_0x6ea2._0x1068ad,_0x6ea2._0x3f4b2b,_0x6ea2._0x179e3e)](_0x4232b0,_0x5cf9db);_0x31ec13!==void 0x0&&this['outputIndexToReasoningId'][_0x246485(-_0x6ea2._0x295e1b,0x7a,-_0x6ea2._0x32a0d4,-_0x6ea2._0x3c0db8)](_0x31ec13,_0x4232b0);function _0x246485(_0x37764a,_0x429283,_0x66ea81,_0x3dffae){return _0x5276b1(_0x66ea81,_0x429283-0x14f,_0x66ea81-0x2,_0x37764a- -0xfc);}return _0x5cf9db;}};function createOpenAiResponsesStreamParser(_0x3c1bed){return new OpenAiResponsesStreamParser(_0x3c1bed);}function createOpenAiSurfaces(_0x84e1fd={}){const _0x5a7db4={_0xc80edd:0x95,_0x456584:0x2a,_0x27e174:0x7e,_0x16a77c:0x2c,_0x351889:0x1b7,_0x4dd419:0x1cd,_0x59f647:0x1dd,_0x4bd458:0x86,_0x34d115:0x1c7,_0x69f2de:0x101,_0x220be9:0x18,_0x5f07bf:0x36,_0x5522e5:0x72,_0x5f1fc5:0x68,_0x8db55a:0x53},_0x5ad576={_0x4f4da5:0x1e6,_0x285779:0x21b,_0x5c3363:0x308},_0x2e6731={_0x1dba54:0x17c,_0x30c1f4:0x1a3,_0x42882e:0x1b5},_0x4ba63b={_0x2974b5:0xb,_0x32ee7f:0x9b},_0x41cd35={_0xceb687:0x193,_0x4dc8ad:0x14},_0x2dba40={_0x1c3787:0x13f,_0xdecd32:0x41b,_0x2c4344:0x366,_0xe47a6f:0x329},_0x5af116={_0x37707e:0x111,_0x127299:0x15c,_0x2803d8:0x18a},_0x2f9f58={_0x6e378c:0x2f3,_0x4361c7:0x328},_0x1f5937={_0x2882e6:0x19c,_0x447731:0x175},_0x2a5376={_0x3c8d51:0x130,_0x56f036:0x6f},_0x296d16={_0x48f520:0x7f,_0x5d198a:0xa},_0x357225={_0x32a24e:0xf4,_0x251035:0x13b};function _0x5c840a(_0x4a0225,_0x2be31d,_0x4879cb,_0x495288){return _0x5276b1(_0x2be31d,_0x2be31d-_0x357225._0x32a24e,_0x4879cb-0x192,_0x4a0225-_0x357225._0x251035);}function _0x1affbb(_0x12abef,_0x38e0ad,_0x36d5ef,_0x48aeea){return _0x5276b1(_0x12abef,_0x38e0ad-_0x296d16._0x48f520,_0x36d5ef-0x58,_0x36d5ef- -_0x296d16._0x5d198a);}const _0x518141=_0x84e1fd[_0x5c840a(0xc5,_0x5a7db4._0xc80edd,0x1e,-_0x5a7db4._0x456584)]??'/chat/completions',_0x4e9596=_0x84e1fd['responsesPath']??_0x1affbb(-_0x5a7db4._0x27e174,0x93,0x36,0xb);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x1affbb(-0x18b,-_0x5a7db4._0x16a77c,-0x101,-0x1a4),'createRequest'(_0xbba270){function _0x46d2a4(_0x35822f,_0x150743,_0x2531dc,_0x356a8f){return _0x5c840a(_0x150743-0x73,_0x356a8f,_0x2531dc-_0x2a5376._0x3c8d51,_0x356a8f-_0x2a5376._0x56f036);}return{'accept':_0x46d2a4(_0x1f5937._0x2882e6,0x125,_0x1f5937._0x447731,_0x1f5937._0x2882e6),'body':createChatRequestBody(_0xbba270,![]),'path':_0x518141};},'parseResponse'(_0x2aa050){return parseChatCompletionResponse(_0x2aa050);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x5c840a(_0x5a7db4._0x351889,_0x5a7db4._0x4dd419,0x133,_0x5a7db4._0x59f647),'createRequest'(_0x33e840){const _0x33be0d={_0x42b98d:0x3af,_0x310c95:0x10e};function _0x201bf1(_0x4afbef,_0x144f12,_0x148ebb,_0x82a89){return _0x1affbb(_0x4afbef,_0x144f12-0x10d,_0x148ebb-_0x33be0d._0x42b98d,_0x82a89-_0x33be0d._0x310c95);}return{'accept':_0x201bf1(_0x2f9f58._0x6e378c,0x3cc,_0x2f9f58._0x4361c7,0x2fa),'body':createChatRequestBody(_0x33e840,!![]),'path':_0x518141};},'createStreamParser'(_0x41e43a){return new OpenAiChatCompletionsStreamParser(_0x41e43a);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x1affbb(-_0x5a7db4._0x4bd458,-_0x5a7db4._0x34d115,-_0x5a7db4._0x69f2de,-0x18c),'createRequest'(_0x3999dd){function _0x41ca7e(_0x1ead3b,_0x2c851c,_0x5d73e5,_0x4b1199){return _0x5c840a(_0x2c851c-_0x5af116._0x37707e,_0x1ead3b,_0x5d73e5-_0x5af116._0x127299,_0x4b1199-_0x5af116._0x2803d8);}function _0x24f426(_0x44abbc,_0x388e2e,_0x38f737,_0x17670a){return _0x5c840a(_0x17670a-0x16c,_0x38f737,_0x38f737-0x1e3,_0x17670a-0x14d);}return{'accept':_0x41ca7e(_0x2dba40._0x1c3787,0x1c3,0x23c,0x287),'body':createResponsesRequestBody(_0x3999dd,![],_0x84e1fd[_0x24f426(_0x2dba40._0xdecd32,0x417,_0x2dba40._0x2c4344,_0x2dba40._0xe47a6f)]),'path':_0x4e9596};},'parseResponse'(_0x10abda,_0x4269aa){return parseResponsesResponse(_0x10abda,_0x4269aa);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x1affbb(-_0x5a7db4._0x220be9,_0x5a7db4._0x5f07bf,_0x5a7db4._0x5522e5,-0x54),'createRequest'(_0x21e01e){const _0x44aa69={_0xd6549a:0x2};function _0x303899(_0x3e4679,_0x1e1aca,_0x9ad041,_0x41e89c){return _0x1affbb(_0x41e89c,_0x1e1aca-_0x41cd35._0xceb687,_0x9ad041- -_0x41cd35._0x4dc8ad,_0x41e89c-0x13a);}function _0x7af4d5(_0x1f5d85,_0x2c7cd7,_0x148fb7,_0x3bb381){return _0x5c840a(_0x3bb381- -0x186,_0x148fb7,_0x148fb7-_0x44aa69._0xd6549a,_0x3bb381-0xba);}return{'accept':_0x303899(_0x4ba63b._0x2974b5,-0x1e,-_0x4ba63b._0x32ee7f,-0x28),'body':createResponsesRequestBody(_0x21e01e,!![],_0x84e1fd[_0x7af4d5(-0x23,0xa7,-0x7b,0x37)]),'path':_0x4e9596};},'createStreamParser'(_0x5ac9ee){return new OpenAiResponsesStreamParser(_0x5ac9ee);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x1affbb(_0x5a7db4._0x5f1fc5,_0x5a7db4._0x8db55a,0xb1,0xdc),'createRequest'(_0x2e5794){function _0x197699(_0x390546,_0x3bc236,_0x17ed7b,_0x4e788c){return _0x1affbb(_0x4e788c,_0x3bc236-_0x2e6731._0x1dba54,_0x17ed7b-_0x2e6731._0x30c1f4,_0x4e788c-_0x2e6731._0x42882e);}return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x2e5794,{'promptCacheKey':_0x84e1fd[_0x197699(0x14d,_0x5ad576._0x4f4da5,_0x5ad576._0x285779,_0x5ad576._0x5c3363)]?.(_0x2e5794)}),'path':_0x4e9596};},'createStreamParser'(_0x363087){return createOpenAiResponsesStreamParser(_0x363087);}}];}var OpenAiProviderAdapter=class{[_0x54ac71(0x4b0,0x2dd,0x3cd,0x4a1)];constructor(_0x56a8fc){this['headerResolver']=_0x56a8fc;}['createMissingCredentialError'](){const _0xc7dcb={_0x38618e:0x361,_0x4d32d3:0x412},_0x1a5e21={_0x32a3ce:0x37f};function _0x19afd3(_0x5e77b2,_0x12d88d,_0x549f77,_0x164deb){return _0x5276b1(_0x164deb,_0x12d88d-0x1ae,_0x549f77-0x10f,_0x12d88d-_0x1a5e21._0x32a3ce);}return new Error(_0x19afd3(0x2c3,_0xc7dcb._0x38618e,_0xc7dcb._0x4d32d3,0x34a));}async[_0x5276b1(0x4d,0x86,0xb,0xb1)](_0x408932,_0x5d1c07){const _0x4be283={_0x48a2ea:0x796,_0x3d9e04:0x614,_0x1d96f7:0x6f7,_0x4b2142:0x598,_0x1e4aac:0x519,_0x2482d2:0x1cd,_0x4932fa:0x186,_0x3321c8:0xec,_0x33b6a6:0x674,_0x25c199:0x6f7,_0x52ebb1:0xb2,_0x5b171e:0x1d,_0x218a6c:0x10f,_0xe5d0e5:0xe6,_0x564ff1:0xa,_0x113733:0xbd,_0x279e80:0x60,_0xd8739e:0x5d,_0x180560:0x64,_0x215df7:0xba,_0x678971:0xb4,_0x2259b5:0x25,_0x2d26e2:0x38,_0x2e0632:0x53,_0xc54de0:0xe1,_0x295a31:0x21,_0x2cbf5d:0xf,_0x44c992:0xcb,_0x9be7d3:0x1,_0x2aa920:0x6aa,_0x5e52e5:0x6b1,_0x4fa9c5:0x640,_0x39d950:0x647,_0x4fdece:0x6e7},_0x50f317={_0x25438a:0x4a},_0x5b19b0=new Headers();function _0x1744e5(_0x4b9514,_0x11b7bf,_0x49ae3b,_0x891a1c){return _0x54ac71(_0x4b9514-0x1b0,_0x49ae3b,_0x891a1c-0x21d,_0x891a1c-0x2e);}_0x5b19b0[_0x1744e5(_0x4be283._0x48a2ea,0x676,_0x4be283._0x3d9e04,_0x4be283._0x1d96f7)](_0x1744e5(0x592,_0x4be283._0x4b2142,0x500,_0x4be283._0x1e4aac),_0x5d1c07[_0x24dddb(-_0x4be283._0x2482d2,-_0x4be283._0x4932fa,-_0x4be283._0x3321c8,-0x135)]),_0x5b19b0[_0x1744e5(0x7cc,_0x4be283._0x33b6a6,0x7e6,_0x4be283._0x25c199)](_0x1744e5(0x5c8,0x503,0x4b3,0x592),'Bearer\x20'+_0x408932[_0x24dddb(-_0x4be283._0x52ebb1,-0x95,-0xe5,-_0x4be283._0x5b171e)][_0x24dddb(-0xf6,-0x13f,-0x107,-0x127)]);_0x5d1c07['includeContentType']!==![]&&_0x5b19b0[_0x24dddb(_0x4be283._0x218a6c,0xdd,_0x4be283._0xe5d0e5,0xa9)]('content-type',_0x24dddb(-0x10e,0x14,_0x4be283._0x564ff1,-_0x4be283._0x113733));const _0x43333c=await this[_0x24dddb(-_0x4be283._0x279e80,-_0x4be283._0xd8739e,0x12,-_0x4be283._0x180560)]?.({'body':_0x408932[_0x24dddb(-_0x4be283._0x215df7,-_0x4be283._0x678971,_0x4be283._0x2259b5,-0x72)],'credential':_0x408932['credential'],'request':_0x408932[_0x24dddb(_0x4be283._0x2d26e2,-_0x4be283._0x2e0632,-_0x4be283._0xc54de0,-0xb8)],'session':_0x408932[_0x24dddb(_0x4be283._0x295a31,_0x4be283._0x2cbf5d,-_0x4be283._0x44c992,_0x4be283._0x9be7d3)],'stream':_0x408932[_0x1744e5(_0x4be283._0x2aa920,_0x4be283._0x5e52e5,0x64b,_0x4be283._0x4fa9c5)]});function _0x24dddb(_0x5744a1,_0x32c218,_0x5021ec,_0x3fffa6){return _0x54ac71(_0x5744a1-_0x50f317._0x25438a,_0x32c218,_0x3fffa6- -0x431,_0x3fffa6-0x6);}for(const [_0x34c63a,_0xaa0cb1]of Object['entries'](_0x43333c??{})){_0x5b19b0[_0x1744e5(0x7db,_0x4be283._0x39d950,_0x4be283._0x4fdece,_0x4be283._0x1d96f7)](_0x34c63a,_0xaa0cb1);}return _0x5b19b0;}[_0x54ac71(0x521,0x4ef,0x48a,0x46a)](_0x2ca694){return _0x2ca694;}[_0x5276b1(-0x11c,-0xf4,-0xc1,-0xd7)](_0x4c9e7f,_0x30f730){return resolveSessionBaseUrl(_0x4c9e7f,_0x30f730);}[_0x54ac71(0x465,0x449,0x384,0x359)](_0x2f3596,_0x4cd349){return resolveApiCredential(_0x2f3596,_0x4cd349);}async[_0x5276b1(0x67,0xc1,-0x5e,-0x1f)](_0x2ebec1){return await createOpenAiApiError(_0x2ebec1);}},OpenAiModel=class extends RoutedModel{[_0x5276b1(0xda,0x194,0xc1,0xd5)]=new Map();['promptCacheKeyResolver'];[_0x54ac71(0x2ed,0x2a0,0x387,0x42d)];['responsesPath'];constructor(_0x419296={}){const _0x184f6f={_0x28d75e:0x191,_0x5bc1e0:0x13e,_0xc317f8:0x6b,_0x52e2f8:0xc0,_0x55951e:0x6f,_0xddbb1e:0x20,_0x66d31f:0x77,_0x2647dc:0x108,_0x526107:0x2e5,_0x85e860:0x3b1,_0x469720:0x359,_0xfad646:0xa3,_0x5bc498:0x7,_0x1301ac:0xb6,_0x66ae72:0x2,_0x1ea036:0xba,_0x30f6d4:0x151,_0x4f81a4:0x323,_0x4f0f0b:0x3b2,_0x29f59e:0xc8,_0x51a7c6:0x192,_0xa7ab0d:0x30,_0x1c537a:0x10f,_0x4fb66e:0x99,_0x30ad10:0x12,_0x5e1d2f:0x73,_0x327735:0x411,_0xa382f2:0x405,_0x5bef4c:0x333,_0x56e300:0x3bb,_0x558a36:0x3,_0x3a5e4a:0x4ee,_0x3ed792:0x3ed,_0x452f41:0x432,_0x46687a:0x471,_0x303b39:0x398,_0x464af2:0x461,_0x545f65:0x490,_0xcb9ac5:0x7,_0xf0f9ff:0x43},_0x43f00a={_0x4cb767:0x9f,_0x32906a:0x17b},_0x503d7c={_0x171d5f:0x3a7};function _0x42a6a5(_0xd9bb0d,_0x21effc,_0xe3e501,_0x20a295){return _0x54ac71(_0xd9bb0d-0xa7,_0x20a295,_0x21effc- -_0x503d7c._0x171d5f,_0x20a295-0x126);}const _0x2b4fcc=_0x419296[_0x42a6a5(_0x184f6f._0x28d75e,_0x184f6f._0x5bc1e0,_0x184f6f._0xc317f8,_0x184f6f._0x52e2f8)]??_0x4a8ada(0x379,0x371,0x3c0,0x3af),_0x557ca0=_0x419296[_0x42a6a5(-_0x184f6f._0x55951e,-_0x184f6f._0xddbb1e,_0x184f6f._0x66d31f,-_0x184f6f._0x2647dc)]??_0x4a8ada(0x37f,_0x184f6f._0x526107,_0x184f6f._0x85e860,_0x184f6f._0x469720),_0x131a3f=_0x419296[_0x42a6a5(-_0x184f6f._0xfad646,_0x184f6f._0x5bc498,0x7b,0x7c)]??'/responses';function _0x4a8ada(_0xd96067,_0x1bcfea,_0x2bd106,_0x44a963){return _0x5276b1(_0xd96067,_0x1bcfea-_0x43f00a._0x4cb767,_0x2bd106-_0x43f00a._0x32906a,_0x44a963-0x40e);}super({'apiKey':_0x419296[_0x42a6a5(_0x184f6f._0x1301ac,-_0x184f6f._0x66ae72,-_0x184f6f._0x1ea036,-0xf7)],'baseUrl':trimTrailingSlashes(_0x419296[_0x42a6a5(-0x12d,-0x68,-_0x184f6f._0x30f6d4,-0xcc)]??_0x4a8ada(_0x184f6f._0x4f81a4,0x2fb,_0x184f6f._0x4f0f0b,0x3d3)),'fetch':_0x419296['fetch'],..._0x419296[_0x42a6a5(-0x7,-_0x184f6f._0xfad646,-_0x184f6f._0x29f59e,-_0x184f6f._0x51a7c6)]!==void 0x0?{'maxTokens':_0x419296[_0x42a6a5(-0x140,-0xa3,_0x184f6f._0xa7ab0d,-_0x184f6f._0x1c537a)]}:{},'model':_0x2b4fcc,'modelIdentity':_0x419296[_0x42a6a5(-_0x184f6f._0x4fb66e,-_0x184f6f._0x30ad10,-0x8e,-_0x184f6f._0x5e1d2f)],'reasoning':_0x419296[_0x4a8ada(0x453,0x48a,_0x184f6f._0x327735,_0x184f6f._0xa382f2)],'providerAdapter':new OpenAiProviderAdapter(_0x419296['headerResolver']),'providerSessionResolver':_0x419296[_0x4a8ada(_0x184f6f._0x5bef4c,_0x184f6f._0x56e300,0x36a,0x339)],'requestMutators':_0x419296[_0x42a6a5(-_0x184f6f._0x558a36,0xe9,0xc3,0x165)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x419296['sessionManager'],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x557ca0,'promptCacheKeyResolver':_0x419296[_0x4a8ada(0x4bf,0x3bd,0x478,0x490)],'responsesPath':_0x131a3f}),'webSocketFactory':_0x419296[_0x4a8ada(0x46a,_0x184f6f._0x3a5e4a,_0x184f6f._0x3ed792,0x43c)]}),this[_0x4a8ada(_0x184f6f._0x452f41,0x308,_0x184f6f._0x46687a,_0x184f6f._0x303b39)]=_0x557ca0,this['promptCacheKeyResolver']=_0x419296[_0x4a8ada(_0x184f6f._0x464af2,0x4d1,0x44c,_0x184f6f._0x545f65)],this[_0x42a6a5(-0x34,_0x184f6f._0xcb9ac5,-0xc2,-_0x184f6f._0xf0f9ff)]=_0x131a3f;}[_0x5276b1(0x1c3,0x16e,0x1ae,0xd7)](_0x51fce0,_0xf863a){const _0x83f92e={_0x370779:0xe8,_0x3087f9:0x116},_0x2412d3={_0x277819:0x18c};function _0x3ab09e(_0x516002,_0x1bf769,_0x8e80e1,_0x1518ef){return _0x5276b1(_0x8e80e1,_0x1bf769-0x1f0,_0x8e80e1-_0x2412d3._0x277819,_0x1bf769- -0x6d);}return this[_0x3ab09e(_0x83f92e._0x370779,0x72,0x36,_0x83f92e._0x3087f9)](_0x51fce0,OPENAI_CHAT_COMPLETIONS_SURFACE,_0xf863a);}['completeViaResponsesSurface'](_0x512971,_0x217e07){const _0x32caef={_0xf75b3d:0x433,_0x3e815b:0x4cf,_0x2c4518:0x449},_0x460444={_0x4ca194:0xd2,_0x4328fe:0x36a};function _0xf7f0bc(_0x3155b3,_0x28f57e,_0x1a494e,_0x5769af){return _0x5276b1(_0x3155b3,_0x28f57e-0xa9,_0x1a494e-_0x460444._0x4ca194,_0x5769af-_0x460444._0x4328fe);}return this[_0xf7f0bc(_0x32caef._0xf75b3d,0x48d,_0x32caef._0x3e815b,_0x32caef._0x2c4518)](_0x512971,OPENAI_RESPONSES_SURFACE,_0x217e07);}['completeViaResponsesWebSocketSurface'](_0xf7e279,_0x2689e3){const _0x23be47={_0x28be20:0x258,_0x177b19:0x261,_0x380e3e:0xb8},_0x20608b={_0x1a3cc0:0x131,_0x5cb466:0xed,_0x4e4630:0xcc};function _0x37c3d7(_0x392ccc,_0x2ea5dd,_0x384ec9,_0x2f68d3){return _0x5276b1(_0x384ec9,_0x2ea5dd-_0x20608b._0x1a3cc0,_0x384ec9-_0x20608b._0x5cb466,_0x392ccc-_0x20608b._0x4e4630);}return this[_0x37c3d7(0x1ab,_0x23be47._0x28be20,_0x23be47._0x177b19,_0x23be47._0x380e3e)](_0xf7e279,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x2689e3);}[_0x5276b1(-0x114,-0x9f,0x4a,-0x45)](_0x4a1c05,_0x24df8b){return this['streamViaSurface'](_0x4a1c05,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x24df8b);}['streamViaResponsesSurface'](_0x263624,_0x44b480){const _0x1baae0={_0x192c27:0x37a},_0x45f901={_0x288107:0x175};function _0x51e84d(_0x3a0fec,_0x42d980,_0x13a6b0,_0x5bb727){return _0x5276b1(_0x13a6b0,_0x42d980-0x64,_0x13a6b0-_0x45f901._0x288107,_0x3a0fec-0x4de);}return this[_0x51e84d(0x462,_0x1baae0._0x192c27,0x495,0x383)](_0x263624,OPENAI_RESPONSES_STREAM_SURFACE,_0x44b480);}[_0x5276b1(-0x180,-0x6b,-0xa7,-0xde)](_0x4dcaed,_0x570aad){const _0x13c70d={_0x996fb8:0x33b,_0xde02a6:0x38a},_0x1a9fbf={_0x22907a:0xef,_0x384d28:0x406};function _0x3ff952(_0x4aaf3f,_0xb85e4b,_0x4a1df1,_0x46ecd6){return _0x5276b1(_0x4a1df1,_0xb85e4b-0x129,_0x4a1df1-_0x1a9fbf._0x22907a,_0x46ecd6-_0x1a9fbf._0x384d28);}return this[_0x3ff952(_0x13c70d._0x996fb8,0x2a2,0x3e5,_0x13c70d._0xde02a6)](_0x4dcaed,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x570aad);}async['chatComplete'](_0x1ca2f0,_0x142de5){try{return await this['completeViaChatCompletionsSurface'](_0x1ca2f0,_0x142de5);}catch(_0x10462b){if(_0x10462b instanceof OpenAiApiError)throw this['mapApiError'](_0x10462b);throw _0x10462b;}}async[_0x54ac71(0x2fa,0x352,0x31b,0x250)](_0x668a8,_0x5ddbbb){const _0x27cd98={_0xec60ee:0x6be,_0x5e3543:0x5ee,_0x265aaa:0x6b4,_0x58a169:0x68e,_0xfd1c9e:0x5fc,_0x20eb86:0x5d4},_0xea2dec={_0x4af7ec:0x10,_0x17064f:0xef},_0x183705={_0x259ca3:0xdf};function _0x4f8bbc(_0x3feb49,_0xa2bfd5,_0x8f64c9,_0x2106e2){return _0x54ac71(_0x3feb49-_0x183705._0x259ca3,_0x2106e2,_0x3feb49- -0x304,_0x2106e2-0xc9);}function _0x1109ba(_0x37104a,_0x156c3e,_0x18efa5,_0x4c5e82){return _0x54ac71(_0x37104a-_0xea2dec._0x4af7ec,_0x4c5e82,_0x18efa5-0x14a,_0x4c5e82-_0xea2dec._0x17064f);}try{return await this[_0x1109ba(0x517,_0x27cd98._0xec60ee,_0x27cd98._0x5e3543,_0x27cd98._0x265aaa)](_0x668a8,_0x5ddbbb);}catch(_0x57ac5c){if(_0x57ac5c instanceof OpenAiApiError)throw this[_0x1109ba(_0x27cd98._0x58a169,_0x27cd98._0xfd1c9e,_0x27cd98._0x20eb86,0x665)](_0x57ac5c);throw _0x57ac5c;}}async[_0x5276b1(-0x53,-0x156,-0x71,-0xa5)](_0x47ec34,_0x5aed83){const _0x16ec30={_0x275723:0x32c,_0x19c9f8:0x364,_0x1f71f1:0x210,_0x1c351a:0x7,_0x375720:0x113,_0x5e8f34:0x1a5,_0x115076:0xf7},_0x43f52d={_0x23d3eb:0x183},_0x1d6ea1={_0x74245:0x187};function _0xf30d8d(_0x5114e1,_0x20a157,_0x5b0995,_0x3eb089){return _0x54ac71(_0x5114e1-_0x1d6ea1._0x74245,_0x5b0995,_0x20a157- -0x2e5,_0x3eb089-0xa8);}function _0xa8fe15(_0x44183b,_0x1e67d6,_0x15c09b,_0x277688){return _0x54ac71(_0x44183b-0x175,_0x277688,_0x15c09b- -0x1cd,_0x277688-_0x43f52d._0x23d3eb);}try{let _0x2dc279;for await(const _0x4aeee2 of this['responseSocketStream'](_0x47ec34,_0x5aed83)){_0x4aeee2[_0xa8fe15(_0x16ec30._0x275723,_0x16ec30._0x19c9f8,0x2c8,0x2fd)]===_0xa8fe15(0x19d,_0x16ec30._0x1f71f1,0x259,0x178)&&(_0x2dc279=_0x4aeee2[_0xf30d8d(0xbe,0x36,-_0x16ec30._0x1c351a,_0x16ec30._0x375720)]);}if(!_0x2dc279)throw new Error('Responses\x20WebSocket\x20request\x20did\x20not\x20produce\x20a\x20final\x20response');return _0x2dc279;}catch(_0x19448a){if(_0x19448a instanceof OpenAiApiError)throw this[_0xf30d8d(0x258,_0x16ec30._0x5e8f34,_0x16ec30._0x115076,0xdc)](_0x19448a);throw _0x19448a;}}async*[_0x54ac71(0x439,0x493,0x42c,0x3dd)](_0x502672,_0x3f4fe0){const _0x4c90b5={_0x1678ef:0x51a,_0xc6a0f4:0x5bb,_0x5a4530:0x1b1,_0x412682:0x175,_0x4e5fb6:0xe6},_0xbbe6f={_0x573184:0x64b},_0x4fe1e7={_0x88afbe:0x1b3,_0xc4a63a:0x5f};function _0x4a22e9(_0x7b9ec8,_0x47a6ff,_0x2d4af0,_0x476151){return _0x5276b1(_0x476151,_0x47a6ff-_0x4fe1e7._0x88afbe,_0x2d4af0-_0x4fe1e7._0xc4a63a,_0x47a6ff-0xe8);}function _0x537025(_0x3b4483,_0x3a9f1c,_0x1c21fc,_0x8e80e7){return _0x5276b1(_0x3a9f1c,_0x3a9f1c-0x158,_0x1c21fc-0x39,_0x1c21fc-_0xbbe6f._0x573184);}try{yield*this[_0x537025(_0x4c90b5._0x1678ef,0x567,0x606,_0x4c90b5._0xc6a0f4)](_0x502672,_0x3f4fe0);}catch(_0x1e2174){if(_0x1e2174 instanceof OpenAiApiError)throw this[_0x4a22e9(_0x4c90b5._0x5a4530,_0x4c90b5._0x412682,_0x4c90b5._0x4e5fb6,0x96)](_0x1e2174);throw _0x1e2174;}}async*[_0x5276b1(-0x17e,-0x92,-0x18c,-0xec)](_0x472027,_0x167d04){const _0x2b8fc9={_0xead567:0x27,_0x4ffb8e:0x7d,_0x6787f4:0x73a,_0x55da00:0x704,_0x5a0e82:0x63f},_0x2aef51={_0x3d5d1a:0xe2,_0x94d352:0x172,_0x552e01:0x5da},_0x2a3e2e={_0x49c30c:0xdf};function _0x2428ea(_0x3b7424,_0x13326d,_0x499a95,_0x1d923c){return _0x54ac71(_0x3b7424-_0x2a3e2e._0x49c30c,_0x3b7424,_0x1d923c- -0x37e,_0x1d923c-0x5b);}function _0x30e4e6(_0x25e770,_0x29b455,_0x2cf054,_0x3230c9){return _0x5276b1(_0x29b455,_0x29b455-_0x2aef51._0x3d5d1a,_0x2cf054-_0x2aef51._0x94d352,_0x2cf054-_0x2aef51._0x552e01);}try{yield*this[_0x2428ea(-0x6d,-_0x2b8fc9._0xead567,-0x2d,_0x2b8fc9._0x4ffb8e)](_0x472027,_0x167d04);}catch(_0x3945e3){if(_0x3945e3 instanceof OpenAiApiError)throw this[_0x30e4e6(_0x2b8fc9._0x6787f4,_0x2b8fc9._0x55da00,0x667,_0x2b8fc9._0x5a0e82)](_0x3945e3);throw _0x3945e3;}}async*['responseSocketStream'](_0xe624bd,_0xa6c574){try{yield*this['streamViaPersistentResponsesSocket'](_0xe624bd,_0xa6c574);}catch(_0x2538d8){if(_0x2538d8 instanceof OpenAiApiError)throw this['mapApiError'](_0x2538d8);throw _0x2538d8;}}[_0x54ac71(0x2da,0x2c2,0x3ab,0x475)](_0x4bb0a2,_0x11a3ba){return this['chatComplete'](_0x4bb0a2,_0x11a3ba);}[_0x5276b1(-0x78,-0x80,-0x6a,0x26)](_0x31864b,_0x5b205f){const _0x187e70={_0x16a180:0x37,_0x1b6c43:0x120},_0x5b07ef={_0x45f44f:0xa8};function _0x43334a(_0xbbb4cd,_0x1d1eb2,_0x3511a1,_0x5cad0c){return _0x5276b1(_0x5cad0c,_0x1d1eb2-_0x5b07ef._0x45f44f,_0x3511a1-0x59,_0x1d1eb2-0xf1);}return this[_0x43334a(_0x187e70._0x16a180,_0x187e70._0x1b6c43,0x3e,0x57)](_0x31864b,_0x5b205f);}['getResponsesSocketSessionState'](_0x353b39){const _0x35b865={_0x13931a:0xca,_0x1a2c54:0x185,_0x8b31b6:0x1a6,_0x2f7512:0x26a,_0x4cac20:0x212,_0x57aa64:0x25e,_0x5cca85:0x36c,_0x3c039c:0x2d8,_0x18cbf7:0x40e},_0x58f555={_0x43c22b:0xe1},_0x5322eb={_0x46e807:0xdf,_0x5af3ca:0x215};function _0x5949e4(_0x1475e2,_0x17a0f4,_0x18c62b,_0x136035){return _0x5276b1(_0x18c62b,_0x17a0f4-0x42,_0x18c62b-_0x5322eb._0x46e807,_0x136035-_0x5322eb._0x5af3ca);}const _0x5196fc=this[_0x5949e4(0xfc,_0x35b865._0x13931a,_0x35b865._0x1a2c54,0x11b)](_0x353b39);let _0x27b7b3=this['responsesSocketSessions'][_0x5949e4(0x260,0x166,0x198,_0x35b865._0x8b31b6)](_0x5196fc);function _0x50436c(_0x2de05e,_0x469f0b,_0x25e6b1,_0x5bddcd){return _0x54ac71(_0x2de05e-_0x58f555._0x43c22b,_0x25e6b1,_0x2de05e- -0x16e,_0x5bddcd-0x1ca);}return!_0x27b7b3&&(_0x27b7b3={'key':_0x5196fc,'locked':![],'pending':Promise[_0x50436c(_0x35b865._0x2f7512,0x2ee,_0x35b865._0x4cac20,_0x35b865._0x57aa64)]()},this[_0x5949e4(0x2fe,0x278,0x1ff,0x2ea)][_0x50436c(_0x35b865._0x5cca85,_0x35b865._0x3c039c,0x382,_0x35b865._0x18cbf7)](_0x5196fc,_0x27b7b3)),_0x27b7b3;}[_0x54ac71(0x52e,0x5a5,0x4c9,0x50c)](_0x5a8e0d){const _0x771d11={_0x4d6b26:0xe3,_0x4223c9:0xd2,_0x2d3563:0x13b,_0x4cf844:0x22f,_0x1d83f9:0x1ad,_0x53a539:0x11f,_0x2e132f:0x1df,_0x431037:0xef,_0x2acae4:0x99,_0x55e38b:0x1b8,_0x4bdf01:0x1cd,_0x1fc594:0x1d2,_0x14523a:0x133},_0x42b6d5={_0x2ccf55:0xc2,_0x386f85:0xd2,_0x11334d:0x4a},_0xb2003c={_0x2847bc:0x171,_0x5195ad:0x21a};function _0x2cbc29(_0x3d060e,_0x5ab7f9,_0xf84fbb,_0x13f50d){return _0x54ac71(_0x3d060e-_0xb2003c._0x2847bc,_0x3d060e,_0x5ab7f9- -_0xb2003c._0x5195ad,_0x13f50d-0xc2);}function _0x309166(_0x1538e3,_0x2b0d64,_0x3f9a2a,_0x140c06){return _0x5276b1(_0x2b0d64,_0x2b0d64-_0x42b6d5._0x2ccf55,_0x3f9a2a-_0x42b6d5._0x386f85,_0x1538e3-_0x42b6d5._0x11334d);}if(_0x5a8e0d[_0x309166(-0x4a,-_0x771d11._0x4d6b26,-_0x771d11._0x4223c9,0x23)]||_0x5a8e0d[_0x2cbc29(0xa9,_0x771d11._0x2d3563,_0x771d11._0x4cf844,_0x771d11._0x1d83f9)]||_0x5a8e0d['socket'])return;this[_0x309166(_0x771d11._0x53a539,_0x771d11._0x2e132f,_0x771d11._0x431037,_0x771d11._0x2acae4)]['get'](_0x5a8e0d[_0x2cbc29(_0x771d11._0x55e38b,0x104,0x162,0x29)])===_0x5a8e0d&&this[_0x309166(0x11f,_0x771d11._0x4bdf01,0x9a,_0x771d11._0x1fc594)][_0x309166(-0x4c,0x37,-_0x771d11._0x14523a,0x8c)](_0x5a8e0d['key']);}[_0x54ac71(0x228,0x246,0x303,0x2ae)](_0x508290){const _0x4afa6b={_0x2fb290:0x240};function _0x39fde8(_0x48103a,_0x3a0f7d,_0x27d662,_0x438384){return _0x54ac71(_0x48103a-0x148,_0x438384,_0x27d662- -_0x4afa6b._0x2fb290,_0x438384-0x180);}return''+trimTrailingSlashes(this['baseUrl'])+this[_0x39fde8(0x111,0x114,0x16e,0xb6)]+'::'+_0x508290;}async[_0x5276b1(0x195,0x1a,0x13e,0xdb)](_0x4ab7c2){const _0x408f1d={_0x440173:0x637,_0x1a261b:0x13c,_0x33d463:0x224,_0x580136:0x232,_0x287043:0x1da,_0x3323e0:0x2f6,_0x4c795e:0x1c2,_0x2c8bc1:0x2b6},_0x2742c4={_0x374c10:0x3c4,_0x38e23b:0x45c,_0x4f5f22:0x39f,_0x5eddcb:0x663,_0x42311f:0x5c2,_0xebc4dc:0x6b5,_0x56d960:0x66c},_0x32873b={_0x57d595:0x52},_0x16e4a3={_0x356cce:0x1ef};function _0x469b67(_0x5989c0,_0x64d1af,_0x1c97d7,_0x42cd5b){return _0x54ac71(_0x5989c0-0xe1,_0x64d1af,_0x42cd5b- -0x14b,_0x42cd5b-0x165);}function _0x162acd(_0x3800c7,_0x3a8dfb,_0x51ead4,_0x542386){return _0x54ac71(_0x3800c7-0xf8,_0x3a8dfb,_0x542386-_0x16e4a3._0x356cce,_0x542386-0x4f);}const _0x1c37ac=_0x4ab7c2[_0x162acd(0x61f,0x678,0x723,_0x408f1d._0x440173)][_0x469b67(_0x408f1d._0x1a261b,_0x408f1d._0x33d463,_0x408f1d._0x580136,_0x408f1d._0x287043)](()=>{});let _0x1f2622;const _0x3af364=new Promise(_0x2daf8c=>{_0x1f2622=_0x2daf8c;});return _0x4ab7c2['pending']=_0x1c37ac[_0x469b67(_0x408f1d._0x3323e0,0x218,_0x408f1d._0x4c795e,0x28e)](()=>_0x3af364),await _0x1c37ac,_0x4ab7c2[_0x469b67(0x162,0x20b,_0x408f1d._0x2c8bc1,0x21e)]=!![],()=>{const _0x27bc99={_0x213748:0x12b,_0x65c419:0x14f};function _0x1a9986(_0x406cc7,_0x386a04,_0x6b4f5,_0x2672ff){return _0x162acd(_0x406cc7-_0x32873b._0x57d595,_0x406cc7,_0x6b4f5-0xb,_0x2672ff- -0x4c);}_0x4ab7c2[_0x1be27b(0x409,_0x2742c4._0x374c10,_0x2742c4._0x38e23b,_0x2742c4._0x4f5f22)]=![];function _0x1be27b(_0x5963f5,_0x5d9360,_0x174773,_0x228e92){return _0x162acd(_0x5963f5-_0x27bc99._0x213748,_0x228e92,_0x174773-0x21,_0x5963f5- -_0x27bc99._0x65c419);}_0x1f2622?.(),this[_0x1a9986(_0x2742c4._0x5eddcb,_0x2742c4._0x42311f,_0x2742c4._0xebc4dc,_0x2742c4._0x56d960)](_0x4ab7c2);};}async[_0x54ac71(0x4bc,0x533,0x4e3,0x4b8)](_0x49b957,_0x11cc6a){const _0x2ba3d2={_0x5d0889:0x2b4,_0x1b4b8e:0x273,_0xe663bd:0x2b9,_0x17c87b:0x19e,_0xb3a138:0x1c9,_0x388d74:0x40e,_0x1bd91b:0x3a4,_0x1bb654:0x498,_0x18af83:0x325,_0x2981c6:0x28d,_0x4f2d88:0x2ae,_0x5a1279:0x284,_0x405f87:0x1ad,_0x156ba5:0x98,_0x2fab59:0x113,_0x41f212:0x1e8,_0x50c7e7:0x37b,_0x9247b6:0x195,_0x47f510:0x193,_0x5d7e2e:0xb6,_0x4d57a3:0x14c,_0x2716d4:0x16b,_0x280e9c:0x2fe,_0x48de12:0x2ac,_0x5d2c65:0x31f,_0x3252b4:0x253,_0x18ab8c:0x2de,_0x3b989a:0x2e7,_0x25dc12:0x346},_0x136972={_0xa11fb5:0x12e},_0x45387f={_0x23ec34:0x103},_0x8f004a=this[_0x48af08(_0x2ba3d2._0x5d0889,0x31e,_0x2ba3d2._0x1b4b8e,_0x2ba3d2._0xe663bd)](_0x49b957),_0x3414c0=toModelRequest(_0x8f004a);function _0x48af08(_0x2e8aa2,_0x1bc9bf,_0x511d7a,_0x46841f){return _0x54ac71(_0x2e8aa2-_0x45387f._0x23ec34,_0x2e8aa2,_0x1bc9bf- -0xec,_0x46841f-0x72);}const _0x47c006=await prepareProviderRequest(_0x3414c0,{'sessionManager':this[_0x48af08(0x209,0x266,_0x2ba3d2._0x17c87b,_0x2ba3d2._0xb3a138)],'requestMutators':this[_0x48af08(_0x2ba3d2._0x388d74,_0x2ba3d2._0x1bd91b,_0x2ba3d2._0x1bb654,0x3ee)],'signal':_0x11cc6a}),_0x16e5c4=toChatRequest(_0x47c006[_0x48af08(_0x2ba3d2._0x18af83,_0x2ba3d2._0x2981c6,_0x2ba3d2._0x4f2d88,_0x2ba3d2._0x5a1279)]);function _0x3120c2(_0x3eb6c1,_0x5297ee,_0x5d9902,_0x4c13ae){return _0x5276b1(_0x5d9902,_0x5297ee-0xb3,_0x5d9902-_0x136972._0xa11fb5,_0x4c13ae-0x1a2);}const _0x81643f=this[_0x3120c2(_0x2ba3d2._0x405f87,_0x2ba3d2._0x156ba5,0x68,_0x2ba3d2._0x2fab59)][_0x48af08(_0x2ba3d2._0x41f212,0x298,0x2e8,_0x2ba3d2._0x50c7e7)](this['apiKey'],_0x47c006['session']);if(!_0x81643f)throw this[_0x3120c2(_0x2ba3d2._0x9247b6,_0x2ba3d2._0x2fab59,_0x2ba3d2._0x47f510,0xac)]();return{'baseUrl':this[_0x3120c2(_0x2ba3d2._0x5d7e2e,_0x2ba3d2._0x4d57a3,_0x2ba3d2._0x2716d4,0x113)][_0x48af08(_0x2ba3d2._0x280e9c,0x23a,_0x2ba3d2._0x48de12,0x2b3)](this[_0x48af08(_0x2ba3d2._0x5d2c65,_0x2ba3d2._0x3252b4,0x202,_0x2ba3d2._0x18ab8c)],_0x47c006['session']),'credential':_0x81643f,'request':_0x16e5c4,'session':_0x47c006[_0x48af08(_0x2ba3d2._0x3b989a,_0x2ba3d2._0x25dc12,0x30d,0x313)]};}[_0x5276b1(-0x27,0x40,0x32,0x16)](_0x3d3efe,_0x41f881,_0x2ca28a={}){const _0x235fe5={_0x2817e4:0x43,_0x1b0bb4:0x90,_0x2133de:0x22,_0x1759d5:0x77,_0x3f9868:0x417,_0x394c30:0x3ff,_0x40e2fa:0x4fd,_0x2300f3:0x46d,_0x4c3d22:0x437,_0x14a5b3:0x46a,_0x2f48ed:0x371,_0x3c651b:0x347,_0x37eca7:0x3c6,_0x4fe558:0x4a4,_0x2bf4fa:0x4da,_0x3ea9f8:0x53,_0x4e0f6f:0xd2,_0x4b0bb3:0xbe,_0x14a87f:0xe2},_0x371bcc={_0x175989:0xfa,_0x56ea28:0x41b};if(!_0x2ca28a[_0x5af9f7(-0xb1,-_0x235fe5._0x2817e4,0x32,_0x235fe5._0x1b0bb4)]){const _0xd2ace2=this[_0x5af9f7(-0x9d,-_0x235fe5._0x1b0bb4,_0x235fe5._0x2133de,_0x235fe5._0x1759d5)](_0x3d3efe);if(_0xd2ace2&&_0x41f881[_0x17e823(0x46d,_0x235fe5._0x3f9868,_0x235fe5._0x394c30,_0x235fe5._0x40e2fa)]&&_0xd2ace2[_0x5af9f7(-0x10,-0x8,-0x9e,-0x56)]===_0x41f881[_0x17e823(_0x235fe5._0x2300f3,_0x235fe5._0x4c3d22,0x3da,_0x235fe5._0x14a5b3)]){const _0x3a894a=toOpenAiResponsesRequest({..._0x3d3efe,'messages':_0x3d3efe['messages'][_0x17e823(_0x235fe5._0x2f48ed,_0x235fe5._0x3c651b,_0x235fe5._0x37eca7,0x311)](_0xd2ace2[_0x17e823(0x490,_0x235fe5._0x4fe558,_0x235fe5._0x2bf4fa,0x3b9)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x3d3efe,{'input':_0x3a894a,'promptCacheKey':this[_0x5af9f7(-_0x235fe5._0x3ea9f8,0x80,0xb,-_0x235fe5._0x4e0f6f)]?.(_0x3d3efe),'previousResponseId':_0xd2ace2['responseId']}),'previousResponseId':_0xd2ace2[_0x5af9f7(-0x189,-_0x235fe5._0x4b0bb3,-0x9e,-_0x235fe5._0x14a87f)]};}}function _0x5af9f7(_0x9321ee,_0x401e46,_0x4987fd,_0x2350c5){return _0x5276b1(_0x9321ee,_0x401e46-0x168,_0x4987fd-0xc9,_0x4987fd- -0x77);}function _0x17e823(_0x42dea6,_0x4fffaf,_0x96d3b6,_0xbb28d5){return _0x5276b1(_0xbb28d5,_0x4fffaf-0x1d1,_0x96d3b6-_0x371bcc._0x175989,_0x42dea6-_0x371bcc._0x56ea28);}return{'event':createOpenAiResponsesWebSocketEvent(_0x3d3efe,{'promptCacheKey':this[_0x17e823(0x49d,0x532,0x4f5,0x3da)]?.(_0x3d3efe)})};}['findResponsesSocketCheckpoint'](_0x1b2ac1){const _0x4e952b={_0x2e6bf0:0x142,_0x35c083:0xdb,_0x43ebe3:0xd3,_0x4f17e9:0x128,_0x4537db:0x80,_0x34ddff:0xbb,_0x1965ea:0x45,_0x24f0cb:0x18e,_0x2a164d:0xab,_0x1def13:0x76,_0x1af2ce:0x14},_0x2ee804={_0x1e2908:0x142},_0x34c31f={_0x532230:0xad,_0x2804cc:0x518,_0x1585d6:0x190};function _0x294f1d(_0x24fc03,_0x4c8601,_0x343925,_0xc57837){return _0x54ac71(_0x24fc03-_0x34c31f._0x532230,_0x4c8601,_0xc57837- -_0x34c31f._0x2804cc,_0xc57837-_0x34c31f._0x1585d6);}for(let _0x36b021=_0x1b2ac1['messages'][_0x5ef9bc(0x169,0x2b3,0x223,_0x4e952b._0x2e6bf0)]-0x1;_0x36b021>=0x0;_0x36b021-=0x1){const _0x3390e8=_0x1b2ac1[_0x294f1d(-0x69,-_0x4e952b._0x35c083,-_0x4e952b._0x43ebe3,-_0x4e952b._0x4f17e9)][_0x36b021],_0xe11976=_0x3390e8[_0x294f1d(_0x4e952b._0x4537db,-0x149,-_0x4e952b._0x34ddff,-0x54)]===_0x294f1d(-_0x4e952b._0x1965ea,-0xbf,-_0x4e952b._0x24f0cb,-_0x4e952b._0x2a164d)?_0x3390e8['providerState']?.[_0x5ef9bc(-0x60,-0x22,_0x4e952b._0x1def13,_0x4e952b._0x1af2ce)]:void 0x0;if(_0xe11976)return{'messageIndex':_0x36b021,'responseId':_0xe11976};}function _0x5ef9bc(_0x102f76,_0x13cc4b,_0x290e27,_0x4c262c){return _0x5276b1(_0x102f76,_0x13cc4b-0x174,_0x290e27-0x13a,_0x290e27-_0x2ee804._0x1e2908);}return void 0x0;}[_0x5276b1(0xed,0x42,0x5f,0xd6)](_0x59f093){const _0x402e1c={_0x5b9e43:0x1fd,_0x2cb5d1:0x117,_0x554a13:0x136,_0x197355:0x1f7,_0x13df47:0x287,_0x3f1f3b:0x84,_0x1ac263:0x17b},_0x372a14={_0x4acbed:0x1d4,_0x5d222d:0x1a7},_0x9a845b={_0x3b2593:0x1a1,_0xb11783:0x176};function _0x198413(_0x25fe68,_0x47093f,_0x18678f,_0x3ffdcc){return _0x54ac71(_0x25fe68-_0x9a845b._0x3b2593,_0x25fe68,_0x3ffdcc- -0x32e,_0x3ffdcc-_0x9a845b._0xb11783);}function _0x2209b9(_0x5b078a,_0x50b342,_0x5830e5,_0x401622){return _0x54ac71(_0x5b078a-0xc8,_0x50b342,_0x5830e5- -_0x372a14._0x4acbed,_0x401622-_0x372a14._0x5d222d);}return _0x59f093 instanceof ProviderStreamEventError&&(_0x59f093[_0x2209b9(0x1f4,0x1c5,_0x402e1c._0x5b9e43,0x1f8)]===_0x198413(0xc4,0xd4,_0x402e1c._0x2cb5d1,_0x402e1c._0x554a13)||_0x59f093[_0x2209b9(_0x402e1c._0x197355,_0x402e1c._0x13df47,0x1fd,0x15a)]===_0x198413(_0x402e1c._0x3f1f3b,_0x402e1c._0x1ac263,0xc,0x9d));}['invalidateResponsesSocketSession'](_0x4b1feb){const _0x171138={_0x324867:0x38e,_0x119fd2:0x2b1,_0x492e7d:0x13a,_0xd34b39:0x262,_0x3d60d1:0x180,_0xf0c936:0x47a,_0x4af47f:0x455,_0x1803af:0x4c7,_0x1b8f88:0x192,_0x2bfb4c:0x1e9,_0x57292d:0x24b,_0x327fb0:0x2cd,_0x1af036:0x175},_0xfdf1a4={_0x345ea5:0xc2,_0x85cf8d:0x228},_0x25c332={_0x5068ad:0x403},_0x44a4f2=_0x4b1feb[_0x3ae1d2(0x41b,0x39d,_0x171138._0x324867,_0x171138._0x119fd2)];function _0x3ae1d2(_0x3bb36d,_0x3e1182,_0x524bde,_0x167b14){return _0x5276b1(_0x167b14,_0x3e1182-0x1ce,_0x524bde-0x16a,_0x3e1182-_0x25c332._0x5068ad);}function _0x1363fe(_0x33a90d,_0x5c4dd8,_0x2f7554,_0xdcfa0b){return _0x5276b1(_0x33a90d,_0x5c4dd8-0xc0,_0x2f7554-_0xfdf1a4._0x345ea5,_0x2f7554-_0xfdf1a4._0x85cf8d);}_0x4b1feb['socket']=void 0x0,_0x4b1feb[_0x1363fe(_0x171138._0x492e7d,_0x171138._0xd34b39,_0x171138._0x3d60d1,0x13a)]=void 0x0,_0x4b1feb[_0x3ae1d2(_0x171138._0xf0c936,_0x171138._0x4af47f,0x483,_0x171138._0x1803af)]=void 0x0,_0x44a4f2?.[_0x1363fe(_0x171138._0x1b8f88,0x13b,_0x171138._0x2bfb4c,_0x171138._0x57292d)]===WebSocket['OPEN']&&_0x44a4f2['close'](0x3e8,_0x1363fe(_0x171138._0x327fb0,_0x171138._0x1af036,0x21c,0x2d7));}async[_0x54ac71(0x49b,0x58c,0x4b7,0x406)](_0x2d8e3f,_0x5d7c36,_0x121564,_0x27875d,_0x4c4dcd){const _0x1bd83d={_0x3ddd74:0x10b,_0x362bce:0x177,_0x867c01:0x1c2,_0x478c49:0x1cd,_0x37a7f6:0x135,_0x45e39d:0x93,_0x2a4a70:0x59,_0x55de44:0x135,_0x5ecd0a:0x135},_0x18dbda={_0x51593f:0x1be,_0xdc5426:0xcc,_0xdfb938:0x14c,_0x13b2e8:0x109,_0x347b19:0x19,_0xbfc0a5:0x69,_0x4d98b0:0x5e,_0x5e9b22:0xf6,_0x54f0d5:0xf,_0x25d90d:0x32,_0x2b29c8:0x108,_0x38fbdd:0xb1,_0x2703fd:0x4c,_0x28b6c6:0x8e,_0x131028:0x104,_0x322be0:0x68,_0x299632:0x3a,_0x1f276d:0x68,_0x4d703a:0x35,_0x612863:0x14,_0x1fa973:0xc0,_0x18ba3c:0x72,_0xd81697:0x38,_0x191f07:0x50,_0x3a3255:0xd4,_0x371bc6:0x176,_0x619edc:0x8b,_0x57b0c2:0x43,_0x398a4d:0x33,_0x3e3d20:0x31,_0x52265c:0xe7,_0x573271:0xe8,_0x5a9baa:0x84,_0x26a580:0xee,_0x27bdf2:0x45,_0x113c04:0x89,_0x5c411d:0x15},_0x4be13a={_0x1f9cd7:0x1bd,_0x35eb8c:0x93},_0x1b5ab7={_0x5d7294:0x16d,_0x1970fa:0x121};function _0x5c0bdc(_0x380634,_0x3e5502,_0x348762,_0x5ce559){return _0x5276b1(_0x348762,_0x3e5502-_0x1b5ab7._0x5d7294,_0x348762-0x90,_0x5ce559-_0x1b5ab7._0x1970fa);}if(_0x5d7c36[_0x3857ff(0x1cf,_0x1bd83d._0x3ddd74,_0x1bd83d._0x362bce,0x106)]?.['readyState']===WebSocket[_0x3857ff(0x1cd,0x184,0x17b,_0x1bd83d._0x867c01)])return _0x5d7c36['socket'];function _0x3857ff(_0x222b64,_0x2b643f,_0x382cde,_0x17cb79){return _0x54ac71(_0x222b64-_0x4be13a._0x1f9cd7,_0x222b64,_0x382cde- -0x220,_0x17cb79-_0x4be13a._0x35eb8c);}if(_0x5d7c36['connecting'])return await _0x5d7c36[_0x3857ff(_0x1bd83d._0x478c49,0x14c,_0x1bd83d._0x37a7f6,0xef)];_0x5d7c36[_0x3857ff(_0x1bd83d._0x45e39d,_0x1bd83d._0x2a4a70,_0x1bd83d._0x55de44,0x9c)]=((async()=>{const _0x1da906={_0x1686b7:0xaf},_0x3ccd37={_0x75bd74:0x1a1,_0x4a77de:0x9d},_0x3d2e3f={_0x5ceb85:0x170,_0x13fe64:0x17f,_0x585774:0x133,_0x42418f:0x2b5,_0x3d8a0e:0x1f4,_0x2ed2f0:0xd9,_0x2d96ef:0x76,_0x13b050:0x1},_0x3f5f66=await this[_0x29d7ae(0x121,0x15a,0x3d,_0x18dbda._0x51593f)]({'request':_0x121564[_0x543e9e(-0xf0,-0x8e,0x0,-0x58)],'body':_0x27875d,'credential':_0x121564[_0x29d7ae(0x87,0xf5,_0x18dbda._0xdc5426,0x80)],'session':_0x121564[_0x543e9e(-0x30,_0x18dbda._0xdfb938,0xb9,_0x18dbda._0x13b2e8)],'stream':!![]},{'accept':_0x29d7ae(-_0x18dbda._0x347b19,_0x18dbda._0xbfc0a5,-0xe7,_0x18dbda._0x4d98b0),'includeContentType':![]});_0x3f5f66[_0x29d7ae(-0x26,-_0x18dbda._0x5e9b22,_0x18dbda._0x347b19,0x99)](_0x29d7ae(-0x91,-0x4a,-0x5b,0x44));const _0x4a02ff=this[_0x29d7ae(0x9e,-_0x18dbda._0x54f0d5,-_0x18dbda._0x25d90d,-0x3c)]({'headers':Object[_0x543e9e(0x35,_0x18dbda._0x2b29c8,0xe1,0x112)](_0x3f5f66[_0x29d7ae(-0x42,-_0x18dbda._0x38fbdd,-_0x18dbda._0x2703fd,-_0x18dbda._0x28b6c6)]()),'url':(''+_0x121564[_0x543e9e(-_0x18dbda._0x131028,-_0x18dbda._0x322be0,-_0x18dbda._0x299632,_0x18dbda._0x1f276d)]+this[_0x543e9e(-0x7c,0x124,_0x18dbda._0x4d703a,_0x18dbda._0x612863)])[_0x29d7ae(_0x18dbda._0x1fa973,_0x18dbda._0x18ba3c,0xae,0x79)](/^http:/,_0x29d7ae(-0x7,0x7,_0x18dbda._0xd81697,-_0x18dbda._0x191f07))[_0x543e9e(0x141,0x1b9,_0x18dbda._0x3a3255,0x19f)](/^https:/,_0x543e9e(0x164,_0x18dbda._0x371bc6,_0x18dbda._0x619edc,_0x18dbda._0x57b0c2))}),_0x3cc4d1=()=>{const _0x59a6aa={_0x324822:0x72,_0x214a6c:0x151,_0x17d6b4:0x16d};function _0x5b3b32(_0x10f347,_0x4a0abe,_0x44a29d,_0x429c69){return _0x29d7ae(_0x4a0abe-0x1f3,_0x4a0abe-0x7f,_0x44a29d-0x13c,_0x10f347);}_0x5d7c36[_0x501fab(-0x5e,-_0x3d2e3f._0x5ceb85,-_0x3d2e3f._0x13fe64,-_0x3d2e3f._0x585774)]===_0x4a02ff&&(_0x5d7c36['socket']=void 0x0,_0x5d7c36[_0x5b3b32(0x200,_0x3d2e3f._0x42418f,_0x3d2e3f._0x3d8a0e,0x285)]=void 0x0);function _0x501fab(_0x38157b,_0x41f335,_0x566b96,_0x83d97e){return _0x543e9e(_0x38157b-_0x59a6aa._0x324822,_0x38157b,_0x83d97e- -_0x59a6aa._0x214a6c,_0x83d97e-_0x59a6aa._0x17d6b4);}this[_0x501fab(_0x3d2e3f._0x2ed2f0,-_0x3d2e3f._0x2d96ef,-0x50,-_0x3d2e3f._0x13b050)](_0x5d7c36);};_0x4a02ff[_0x29d7ae(-_0x18dbda._0x398a4d,-0x7b,-0xd8,-0xda)](_0x29d7ae(-0x4d,-0x5e,_0x18dbda._0xbfc0a5,-0x10b),_0x3cc4d1);function _0x543e9e(_0x421fc6,_0xa57502,_0x5ab997,_0x100621){return _0x5c0bdc(_0x421fc6-0xb,_0xa57502-_0x3ccd37._0x75bd74,_0xa57502,_0x5ab997- -_0x3ccd37._0x4a77de);}function _0x29d7ae(_0x2af223,_0x45ec66,_0x4d1c92,_0x2f7abb){return _0x5c0bdc(_0x2af223-_0x1da906._0x1686b7,_0x45ec66-0xe0,_0x2f7abb,_0x2af223- -0xb1);}try{return throwIfAborted(_0x4c4dcd),_0x4a02ff[_0x29d7ae(_0x18dbda._0x3e3d20,_0x18dbda._0x52265c,0x76,_0x18dbda._0x573271)]!==WebSocket[_0x29d7ae(0xe,0x0,-_0x18dbda._0x5a9baa,-0x88)]&&await waitForWebSocketOpen(_0x4a02ff,_0x4c4dcd),throwIfAborted(_0x4c4dcd),_0x5d7c36[_0x543e9e(0xe6,-0x7e,0x1e,_0x18dbda._0x26a580)]=_0x4a02ff,_0x4a02ff;}catch(_0x4ab335){_0x3cc4d1();_0x4a02ff[_0x543e9e(-0x92,0x7c,_0x18dbda._0x27bdf2,0xcc)]===WebSocket['OPEN']&&_0x4a02ff[_0x543e9e(_0x18dbda._0x113c04,-0x2f,-0x39,_0x18dbda._0x5c411d)](0x3e8,'connect_failed');throw _0x4ab335;}})());try{return await _0x5d7c36[_0x3857ff(0x1be,0x19f,_0x1bd83d._0x5ecd0a,0xac)];}finally{_0x5d7c36['connecting']=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x360082,_0x2e6e5b){const _0x4f2779={_0x23e82d:0x4db,_0x51737b:0x466,_0x34c40a:0x423,_0x37ffc9:0x4dd,_0x49e186:0x414,_0x467f48:0x477,_0x593980:0x341,_0x176017:0x352,_0x516cc8:0x33a,_0x5ae221:0x4ca,_0x11027c:0x380,_0xf6fa07:0x3df,_0x57db8b:0x470,_0x382abe:0x2dd,_0x35b2e4:0x47b,_0x30b56d:0x4e1,_0x57ee41:0x374,_0x409767:0x389,_0x13e6dc:0x38b,_0x339913:0x3ea,_0x112431:0x2c3,_0x4c4e31:0x2ad,_0x4774a8:0x4b5,_0x39dc2a:0x46b,_0x310bc6:0x3c5,_0x20120e:0x44f,_0x53f339:0x2ee,_0x414bfb:0x42a,_0x184ae4:0x3dd,_0x4d0af7:0x3ab,_0x515ea1:0x414,_0x37c5df:0x251,_0x1b2505:0x332,_0xa779e6:0x4f1,_0x526bf5:0x54f,_0x430f76:0x3d4,_0x12c90c:0x2cb},_0x186ff0={_0x467de4:0x6},_0x431649={_0x25e1d8:0x96};function _0x215446(_0x2416af,_0x1e6614,_0x589ff0,_0x2c74ed){return _0x54ac71(_0x2416af-0x103,_0x2c74ed,_0x589ff0-_0x431649._0x25e1d8,_0x2c74ed-0x70);}const _0xf184d6=this['applyModelDefaults'](_0x360082);function _0x24f3e1(_0x30b4bc,_0x2507f9,_0x5b584f,_0x5a54e8){return _0x54ac71(_0x30b4bc-_0x186ff0._0x467de4,_0x30b4bc,_0x5a54e8- -0x68,_0x5a54e8-0x1e0);}const _0x6e260b=this[_0x24f3e1(0x392,0x3eb,_0x4f2779._0x23e82d,_0x4f2779._0x51737b)](_0xf184d6[_0x24f3e1(_0x4f2779._0x34c40a,_0x4f2779._0x37ffc9,_0x4f2779._0x49e186,_0x4f2779._0x467f48)][_0x24f3e1(_0x4f2779._0x593980,_0x4f2779._0x176017,0x24f,_0x4f2779._0x516cc8)]),_0x5ed166=await this[_0x24f3e1(_0x4f2779._0x5ae221,_0x4f2779._0x11027c,_0x4f2779._0xf6fa07,_0x4f2779._0x57db8b)](_0x6e260b);try{const _0x1a6352=this[_0x215446(0x432,0x3ed,0x4a9,0x504)](_0xf184d6,_0x6e260b);try{yield*this[_0x24f3e1(_0x4f2779._0x382abe,0x314,0x381,0x3b3)](_0xf184d6['metadata'][_0x215446(_0x4f2779._0x35b2e4,_0x4f2779._0x30b56d,0x438,_0x4f2779._0x57ee41)],_0x6e260b,_0xf184d6,_0x1a6352[_0x24f3e1(_0x4f2779._0x409767,_0x4f2779._0x13e6dc,_0x4f2779._0x339913,0x451)],_0x2e6e5b?.[_0x24f3e1(_0x4f2779._0x112431,0x24b,_0x4f2779._0x4c4e31,0x329)]);return;}catch(_0x4e3cd3){if(!_0x1a6352['previousResponseId']||!this[_0x24f3e1(0x42a,0x3ca,_0x4f2779._0x4774a8,_0x4f2779._0x39dc2a)](_0x4e3cd3)){this[_0x24f3e1(_0x4f2779._0x310bc6,0x3b2,0x32a,0x351)](_0x6e260b);throw _0x4e3cd3;}}this[_0x215446(_0x4f2779._0x13e6dc,0x407,_0x4f2779._0x20120e,0x35e)](_0x6e260b);const _0x4635d1=this[_0x24f3e1(_0x4f2779._0x53f339,_0x4f2779._0x414bfb,_0x4f2779._0x184ae4,_0x4f2779._0x4d0af7)](_0xf184d6,_0x6e260b,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0xf184d6[_0x24f3e1(0x4b3,_0x4f2779._0x515ea1,0x487,_0x4f2779._0x467f48)][_0x24f3e1(0x2b7,_0x4f2779._0x37c5df,_0x4f2779._0x1b2505,0x33a)],_0x6e260b,_0xf184d6,_0x4635d1[_0x215446(0x4c5,_0x4f2779._0xa779e6,_0x4f2779._0x526bf5,0x53e)],_0x2e6e5b?.[_0x24f3e1(0x2f5,_0x4f2779._0x430f76,_0x4f2779._0x12c90c,0x329)]);}finally{_0x5ed166();}}async*[_0x5276b1(-0x65,0xfc,0xf7,0x1e)](_0x109582,_0x25c79b,_0x441686,_0x551a2c,_0x5f48e6){const _0x1017b7={_0x1a847e:0x12d,_0x566a2a:0xc,_0x2d23d6:0xe8,_0x528c55:0x1b,_0x121814:0x4da,_0x235361:0x43f,_0x5ce373:0x4eb,_0x594903:0x448,_0x368bac:0x24a,_0x3ce2d1:0x2aa,_0x1320da:0x31f,_0x34e83e:0x349,_0x6fc53c:0x4b0,_0x3e304d:0x41f,_0xf105db:0x41d,_0x3a7a82:0x437,_0x196c5e:0x441,_0x5dccce:0x484,_0x25ecfd:0x340,_0x5d48c1:0x3ec,_0x54c1b9:0x45e,_0x77ec8e:0x3c3},_0x5a6ff8={_0x5606ca:0x1a1,_0x45ada5:0x9e},_0x20b26c={_0x512022:0x1ed,_0x3c3acb:0x111};function _0x51f9e5(_0x8b84eb,_0x1cc1a6,_0x26d476,_0x7895ec){return _0x5276b1(_0x26d476,_0x1cc1a6-_0x20b26c._0x512022,_0x26d476-_0x20b26c._0x3c3acb,_0x7895ec-0x39a);}const _0x65aaa7=await this[_0x3535f2(_0x1017b7._0x1a847e,_0x1017b7._0x566a2a,_0x1017b7._0x2d23d6,0xcc)](_0x441686,_0x5f48e6),_0x18414a=await this[_0x3535f2(_0x1017b7._0x528c55,0x158,0x17c,0xa0)](_0x109582,_0x25c79b,_0x65aaa7,_0x551a2c,_0x5f48e6),_0x98965f=createOpenAiResponsesStreamParser(_0x441686);throwIfAborted(_0x5f48e6);function _0x3535f2(_0xdf1210,_0x12c5ca,_0x32564e,_0x19e79f){return _0x54ac71(_0xdf1210-_0x5a6ff8._0x5606ca,_0xdf1210,_0x19e79f- -0x417,_0x19e79f-_0x5a6ff8._0x45ada5);}_0x18414a[_0x51f9e5(_0x1017b7._0x121814,0x45d,0x490,_0x1017b7._0x235361)](JSON[_0x51f9e5(0x3b5,0x43c,_0x1017b7._0x5ce373,_0x1017b7._0x594903)](_0x551a2c));for await(const _0x4c5938 of iterateWebSocketMessages(_0x18414a,_0x5f48e6)){const _0x57c516=_0x98965f[_0x51f9e5(_0x1017b7._0x368bac,0x2f6,_0x1017b7._0x3ce2d1,_0x1017b7._0x1320da)]?.(_0x4c5938)??[];yield*_0x57c516;if(_0x98965f[_0x51f9e5(_0x1017b7._0x34e83e,_0x1017b7._0x6fc53c,_0x1017b7._0x3e304d,_0x1017b7._0xf105db)]?.())break;}if(!_0x98965f[_0x51f9e5(0x462,_0x1017b7._0x3a7a82,_0x1017b7._0x196c5e,_0x1017b7._0xf105db)]?.())throw new Error(_0x3535f2(0x36,-0x6f,-0xbf,-0xa5));const _0x216975=_0x98965f['finish'](),_0x4d90e3=_0x216975['providerState']?.['openaiResponsesResponseId']??_0x216975['id'];_0x4d90e3&&(_0x25c79b[_0x51f9e5(_0x1017b7._0x5dccce,_0x1017b7._0x25ecfd,0x340,_0x1017b7._0x5d48c1)]=_0x4d90e3),yield{'type':_0x51f9e5(0x445,_0x1017b7._0x54c1b9,0x2db,_0x1017b7._0x77ec8e),'response':_0x216975};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x5276b1(0x4f,0x4f,0x9a,0x27),'openai-chat-completions',_0x5276b1(0x75,-0x3e,0x77,-0x23),_0x54ac71(0x44d,0x323,0x3b5,0x48d)];function isAnthropicSurface(_0x3f6fa1){return _0x3f6fa1==='anthropic-messages';}function providerFromSurface(_0x8760f8){const _0x1e4745={_0x43abfd:0x230,_0x166c15:0x163,_0x359c0f:0x190,_0x1360d:0x1f9},_0x18afa5={_0x9510d3:0xd3};function _0x122676(_0x1939cc,_0x33e092,_0x1be3e0,_0x1dd827){return _0x5276b1(_0x1be3e0,_0x33e092-0x152,_0x1be3e0-0x5d,_0x1939cc-0x106);}function _0x4e0ab9(_0x146452,_0x597e94,_0x4344ac,_0x40cacf){return _0x5276b1(_0x597e94,_0x597e94-_0x18afa5._0x9510d3,_0x4344ac-0x116,_0x146452-0x236);}return _0x8760f8['startsWith'](_0x4e0ab9(_0x1e4745._0x43abfd,0x325,_0x1e4745._0x166c15,0x1e5))?_0x4e0ab9(0x230,_0x1e4745._0x359c0f,0x24e,0x285):_0x4e0ab9(0x2ad,0x321,_0x1e4745._0x1360d,0x35c);}function resolveDefaultBaseUrl(_0x3a61d7){const _0x4f7e4b={_0x1975e1:0x261,_0x2ca5e1:0x13d,_0x51ac25:0x350,_0x91eb21:0x3a1,_0x4aa132:0x1d2,_0x167da2:0x33f,_0x140d28:0x191,_0x1103af:0x155},_0x265d7e={_0x121fcf:0xc2,_0x3acbbf:0x1e0,_0x290542:0x223},_0x58fe10={_0x395260:0x11e,_0x5cedbe:0x24f};function _0x114d63(_0x2452fd,_0x5bfd3c,_0x4ef986,_0x3b26f0){return _0x5276b1(_0x3b26f0,_0x5bfd3c-0xde,_0x4ef986-_0x58fe10._0x395260,_0x2452fd-_0x58fe10._0x5cedbe);}function _0x338736(_0x531184,_0x2fe3f1,_0x57d863,_0x3ac4cb){return _0x5276b1(_0x531184,_0x2fe3f1-_0x265d7e._0x121fcf,_0x57d863-_0x265d7e._0x3acbbf,_0x3ac4cb-_0x265d7e._0x290542);}if(_0x3a61d7===_0x114d63(0x276,0x194,_0x4f7e4b._0x1975e1,0x1c0))return getProviderProfile(_0x338736(_0x4f7e4b._0x2ca5e1,0x223,0x2a4,0x21d))?.['baseUrl']??_0x114d63(0x314,0x30c,_0x4f7e4b._0x51ac25,_0x4f7e4b._0x91eb21);return getProviderProfile(_0x338736(_0x4f7e4b._0x4aa132,0x257,_0x4f7e4b._0x167da2,0x29a))?.[_0x114d63(_0x4f7e4b._0x140d28,0x1fd,_0x4f7e4b._0x1103af,0xdf)]??'https://api.openai.com/v1';}var ChatModel=class{['model'];[_0x54ac71(0x3f1,0x488,0x395,0x374)];['maxTokens'];[_0x54ac71(0x3b9,0x3aa,0x3d7,0x449)];[_0x5276b1(-0xc0,-0x5f,0x60,0x13)];[_0x5276b1(0x16,0xa4,0x134,0x7d)];['openAiDelegate'];constructor(_0x74a47a={}){const _0x4f879e={_0x1a81ae:0x55d,_0x52c20b:0x52f,_0x4fd42d:0x5ed,_0xc95db6:0x4f5,_0x35e936:0x46e,_0x2f3e4b:0x46b,_0x3f83ca:0x3df,_0x166594:0x5b7,_0x10b6d4:0x52f,_0x4f8fdb:0x317,_0x382e95:0x3f5,_0xb575ce:0x34e,_0x741413:0x2fd,_0x4b182a:0x68,_0x398200:0x3cd,_0x17f1e0:0x421,_0x39afa2:0x3e4,_0x1883be:0x2f9,_0x2a321f:0x39e,_0x581232:0x4c2,_0x44e633:0x4f1,_0x40a18e:0x4a6,_0x526670:0x50e,_0x10dbcb:0x5fa,_0x15a295:0x509,_0xa72167:0x2f,_0x36b39d:0x10a,_0x3240f4:0x43,_0x55eeb3:0x14,_0x203b57:0xbe,_0x32d7d1:0x19d,_0x29ad18:0x216,_0x7a491e:0x65,_0x296e3c:0x3a5,_0x4a6b9f:0x3d4,_0x44efb3:0x104,_0x286380:0x9a,_0x1431ff:0x4da,_0x59deb0:0x4a9,_0x2819c4:0x438,_0x2f9c5e:0x568,_0x7ae19f:0x327,_0x1804fd:0x3ef,_0x35a7ca:0x36,_0x10357e:0xb,_0x16f532:0xa2,_0x209457:0x31,_0xa7522:0x163,_0x58a3e0:0xcc,_0xa65f9a:0xc6,_0x50513a:0x49e,_0x5405f1:0x3df,_0x26b1b4:0xf4,_0x552fff:0x185,_0x45767c:0x417,_0x5153fa:0x477,_0x3a2149:0x43e,_0xa9683b:0x360,_0x596b54:0x4c0,_0x1d15a4:0x475},_0x4f0f2b={_0x2ecb80:0xf0,_0x105723:0x3c2,_0x438050:0xd1},_0x4c76e6={_0x4b98b8:0x25};this[_0x5358b6(_0x4f879e._0x1a81ae,0x5e8,0x54d,_0x4f879e._0x52c20b)]=_0x74a47a[_0x5358b6(_0x4f879e._0x4fd42d,_0x4f879e._0xc95db6,0x5a2,0x52f)]??getDefaultModel(),this[_0x5358b6(_0x4f879e._0x35e936,_0x4f879e._0x2f3e4b,0x475,_0x4f879e._0x3f83ca)]=_0x74a47a[_0x5358b6(0x392,0x3ba,0x308,0x3df)]??modelIdentityFromParts(void 0x0,this[_0x5358b6(_0x4f879e._0x166594,0x574,0x5f9,_0x4f879e._0x10b6d4)]);function _0x5358b6(_0x2769fd,_0x2f93b3,_0x27758c,_0x227d16){return _0x5276b1(_0x2769fd,_0x2f93b3-_0x4c76e6._0x4b98b8,_0x27758c-0x169,_0x227d16-0x447);}this[_0x5358b6(0x308,_0x4f879e._0x4f8fdb,_0x4f879e._0x382e95,_0x4f879e._0xb575ce)]=_0x74a47a[_0x5358b6(_0x4f879e._0x741413,0x264,0x2c2,_0x4f879e._0xb575ce)],this[_0x2312a8(-0x48,_0x4f879e._0x4b182a,0x15,-0x9e)]=_0x74a47a[_0x5358b6(_0x4f879e._0x398200,0x33a,0x40d,_0x4f879e._0x17f1e0)]??_0x5358b6(_0x4f879e._0x39afa2,_0x4f879e._0x1883be,0x460,_0x4f879e._0x2a321f),this[_0x5358b6(0x3a7,0x436,0x4c8,0x45a)]=providerFromSurface(this['surface']);const _0x58cd49=trimTrailingSlashes(_0x74a47a['baseUrl']??resolveDefaultBaseUrl(this['surface']));function _0x2312a8(_0x1c980e,_0xd328a5,_0x3d9e7a,_0x450abe){return _0x54ac71(_0x1c980e-_0x4f0f2b._0x2ecb80,_0x1c980e,_0x3d9e7a- -_0x4f0f2b._0x105723,_0x450abe-_0x4f0f2b._0x438050);}if(isAnthropicSurface(this[_0x5358b6(_0x4f879e._0x581232,_0x4f879e._0x44e633,_0x4f879e._0x40a18e,0x421)])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x74a47a['apiKey'],'authScheme':_0x74a47a[_0x5358b6(0x503,_0x4f879e._0x526670,_0x4f879e._0x10dbcb,_0x4f879e._0x15a295)],'baseUrl':_0x58cd49,'fetch':_0x74a47a[_0x2312a8(0xfa,0xce,0x8,_0x4f879e._0xa72167)],'headerResolver':_0x74a47a[_0x2312a8(-_0x4f879e._0x36b39d,-0x159,-0xac,-0x129)],...this[_0x2312a8(-_0x4f879e._0x3240f4,-_0x4f879e._0x55eeb3,-_0x4f879e._0x203b57,-_0x4f879e._0x32d7d1)]!==void 0x0?{'maxTokens':this[_0x5358b6(0x32c,0x2d2,0x2f7,0x34e)]}:{},'model':this[_0x2312a8(_0x4f879e._0x29ad18,_0x4f879e._0x7a491e,0x123,0x1eb)],'modelIdentity':this[_0x5358b6(0x46f,_0x4f879e._0x296e3c,_0x4f879e._0x4a6b9f,0x3df)],'reasoning':_0x74a47a[_0x5358b6(0x482,0x506,0x52b,0x43e)],'providerSessionResolver':_0x74a47a[_0x2312a8(0xe,-_0x4f879e._0x44efb3,-_0x4f879e._0x286380,-0x24)],'requestMutators':_0x74a47a[_0x5358b6(0x589,0x522,0x4ae,_0x4f879e._0x1431ff)]});return;}this[_0x5358b6(_0x4f879e._0x59deb0,_0x4f879e._0x2819c4,_0x4f879e._0x2f9c5e,0x49c)]=new OpenAiModel({'apiKey':_0x74a47a[_0x5358b6(_0x4f879e._0x7ae19f,0x425,0x43a,_0x4f879e._0x1804fd)],'baseUrl':_0x58cd49,'fetch':_0x74a47a[_0x2312a8(-0x88,-0xae,0x8,-_0x4f879e._0x35a7ca)],'headerResolver':_0x74a47a[_0x2312a8(-0x6f,-0xe9,_0x4f879e._0x10357e,_0x4f879e._0x16f532)],...this[_0x2312a8(-_0x4f879e._0x209457,-0x140,-0xbe,-_0x4f879e._0xa7522)]!==void 0x0?{'maxTokens':this[_0x2312a8(-_0x4f879e._0x58a3e0,-0x6d,-0xbe,-_0x4f879e._0xa65f9a)]}:{},'model':this['model'],'modelIdentity':this[_0x5358b6(0x3f5,_0x4f879e._0x50513a,0x4d3,_0x4f879e._0x5405f1)],'promptCacheKeyResolver':_0x74a47a[_0x2312a8(_0x4f879e._0x26b1b4,_0x4f879e._0x552fff,0xbd,0x83)],'reasoning':_0x74a47a[_0x5358b6(_0x4f879e._0x45767c,0x493,_0x4f879e._0x5153fa,_0x4f879e._0x3a2149)],'providerSessionResolver':_0x74a47a[_0x5358b6(_0x4f879e._0xa9683b,0x2e1,0x2d6,0x372)],'requestMutators':_0x74a47a['requestMutators'],'webSocketFactory':_0x74a47a[_0x5358b6(0x3f3,0x3e6,_0x4f879e._0x596b54,_0x4f879e._0x1d15a4)]});}[_0x54ac71(0x3c3,0x54e,0x4a1,0x596)](){const _0x48ddb5={_0x48f0cd:0x29c,_0x27c03b:0x321,_0x4e7906:0x301,_0x189495:0x48a,_0x449aa2:0x31f},_0x578f4d={_0x16eef0:0x39,_0x352926:0x41d,_0x396179:0x5},_0x15718a={_0x2a0f89:0x195};function _0x5724bc(_0x25df1d,_0x3f3667,_0x18d44b,_0x34799f){return _0x5276b1(_0x34799f,_0x3f3667-0xbe,_0x18d44b-_0x15718a._0x2a0f89,_0x3f3667-0x343);}if(!this['anthropicDelegate'])throw new Error(_0x5724bc(0x2f9,_0x48ddb5._0x48f0cd,0x30f,_0x48ddb5._0x27c03b)+this[_0x5724bc(_0x48ddb5._0x4e7906,0x31d,_0x48ddb5._0x27c03b,0x308)]);function _0x33ad84(_0x1c1002,_0x35653e,_0x2f1c3b,_0x19ccd4){return _0x54ac71(_0x1c1002-_0x578f4d._0x16eef0,_0x2f1c3b,_0x1c1002- -_0x578f4d._0x352926,_0x19ccd4-_0x578f4d._0x396179);}return this[_0x5724bc(_0x48ddb5._0x189495,0x3c0,_0x48ddb5._0x449aa2,0x4a0)];}[_0x5276b1(0x28,0x198,0x73,0xb0)](){const _0x1b7be6={_0xa5fd91:0x4c9,_0x423520:0x3ed,_0x3c9f1b:0x447,_0x3db670:0x11,_0x3fe599:0xe3,_0x19a7c6:0x5d9,_0x1e8da0:0x5b1},_0x15b2f6={_0x4727a0:0x178,_0x70bbc2:0x18f,_0x289bce:0x584};function _0x3117f9(_0x3318c9,_0x8dcb56,_0xc765bc,_0x504a2c){return _0x5276b1(_0xc765bc,_0x8dcb56-_0x15b2f6._0x4727a0,_0xc765bc-_0x15b2f6._0x70bbc2,_0x3318c9-_0x15b2f6._0x289bce);}function _0x559207(_0x2ca452,_0x3a0e6e,_0xf4bd12,_0x5d5e62){return _0x54ac71(_0x2ca452-0x12,_0xf4bd12,_0x2ca452- -0x3c6,_0x5d5e62-0x1e3);}if(!this['openAiDelegate'])throw new Error(_0x3117f9(_0x1b7be6._0xa5fd91,_0x1b7be6._0x423520,_0x1b7be6._0x3c9f1b,0x453)+this[_0x559207(_0x1b7be6._0x3db670,_0x1b7be6._0x3fe599,-0x1e,-0x72)]);return this[_0x3117f9(_0x1b7be6._0x19a7c6,0x54d,0x5ee,_0x1b7be6._0x1e8da0)];}[_0x5276b1(-0xa1,-0x131,0x54,-0x52)](_0xc9f2b,_0x3ae81f){const _0x5c4e7c={_0x459805:0x158,_0x5a0859:0x20f,_0x47dd58:0x244,_0x284199:0x29c,_0x162087:0x20c,_0x1a72e5:0x285,_0x44f861:0x2d9,_0x3dce58:0x2f7,_0x5e7d2b:0x137,_0x5066b2:0xf1,_0x5cd503:0x2d0,_0x281951:0x2c6,_0x22ae22:0x22f,_0x27a96d:0x2e5,_0x28c798:0x4d3,_0x4655ca:0x47d,_0x54e8eb:0x4f4,_0x4f78b9:0x18a,_0x3c0532:0x262},_0x10a366={_0x2876b7:0x9b},_0x302843={_0x296861:0x436};function _0x98a2a6(_0x47df02,_0x47f577,_0x4e7b3f,_0x294fb3){return _0x5276b1(_0x47f577,_0x47f577-0x89,_0x4e7b3f-0x135,_0x47df02-_0x302843._0x296861);}function _0x359ebd(_0x39c60f,_0x5c9ded,_0x2d0cc2,_0x4b1f72){return _0x5276b1(_0x4b1f72,_0x5c9ded-_0x10a366._0x2876b7,_0x2d0cc2-0x1d9,_0x2d0cc2-0x235);}switch(this[_0x359ebd(0x233,_0x5c4e7c._0x459805,_0x5c4e7c._0x5a0859,_0x5c4e7c._0x47dd58)]){case _0x359ebd(_0x5c4e7c._0x284199,0x196,0x25c,_0x5c4e7c._0x162087):return this[_0x359ebd(0x2cd,_0x5c4e7c._0x1a72e5,_0x5c4e7c._0x44f861,_0x5c4e7c._0x3dce58)]()[_0x359ebd(_0x5c4e7c._0x5e7d2b,0x20f,0x1e3,_0x5c4e7c._0x5066b2)](_0xc9f2b,_0x3ae81f);case _0x359ebd(_0x5c4e7c._0x5cd503,_0x5c4e7c._0x281951,0x212,_0x5c4e7c._0x22ae22):return this[_0x359ebd(0x25f,0x215,_0x5c4e7c._0x27a96d,0x2a9)]()['response'](_0xc9f2b,_0x3ae81f);case _0x98a2a6(0x3ee,_0x5c4e7c._0x28c798,0x35f,0x439):return this[_0x98a2a6(0x4e6,0x531,_0x5c4e7c._0x4655ca,_0x5c4e7c._0x54e8eb)]()['responseSocket'](_0xc9f2b,_0x3ae81f);default:return this['getOpenAiDelegate']()[_0x359ebd(0x1c6,_0x5c4e7c._0x4f78b9,_0x5c4e7c._0x3c0532,0x2b9)](_0xc9f2b,_0x3ae81f);}}[_0x5276b1(-0x32,0x59,-0x23,0x26)](_0x2c3be3,_0x2b4b75){const _0x16171a={_0x9b120d:0x587,_0x521bda:0x4bb,_0x38724d:0x519,_0x58c594:0x554,_0x25d63d:0x490,_0x291c28:0x452,_0x4a5596:0x41d,_0x123d65:0x335,_0x569ae3:0x2ce,_0x348fa7:0x3a6,_0x494c38:0x5a2},_0x474c3b={_0x50e326:0xe3,_0x45cb12:0x94};function _0x2afb78(_0x409bbb,_0x20eae9,_0xe2c2da,_0x188455){return _0x54ac71(_0x409bbb-_0x474c3b._0x50e326,_0x409bbb,_0xe2c2da-0xf5,_0x188455-_0x474c3b._0x45cb12);}function _0x1b2446(_0x379345,_0x595df0,_0x25bfc8,_0x1d5a9a){return _0x54ac71(_0x379345-0x64,_0x1d5a9a,_0x379345-0x24,_0x1d5a9a-0x1ba);}switch(this['surface']){case _0x2afb78(_0x16171a._0x9b120d,_0x16171a._0x521bda,_0x16171a._0x38724d,0x52f):return this[_0x1b2446(0x4c5,_0x16171a._0x58c594,0x447,0x4b3)]()[_0x1b2446(0x447,0x3da,_0x16171a._0x25d63d,_0x16171a._0x291c28)](_0x2c3be3,_0x2b4b75);case _0x2afb78(_0x16171a._0x4a5596,0x4c4,0x4cf,0x467):return this['getOpenAiDelegate']()[_0x1b2446(_0x16171a._0x123d65,0x366,_0x16171a._0x569ae3,_0x16171a._0x348fa7)](_0x2c3be3,_0x2b4b75);case'openai-responses-ws':return this[_0x1b2446(0x4d1,0x587,0x421,0x532)]()['responseSocketStream'](_0x2c3be3,_0x2b4b75);default:return this[_0x2afb78(0x659,0x4d9,_0x16171a._0x494c38,0x522)]()['chatStream'](_0x2c3be3,_0x2b4b75);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x5276b1(0x9d,0x16d,0x67,0xe7)];[_0x5276b1(-0x2,-0x7f,-0x63,-0xbe)];['fetchImpl'];[_0x54ac71(0x41c,0x3ed,0x4d5,0x5a8)];['tokenExchangeApiVersion'];constructor(_0x3be7f2){const _0x2588a0={_0x6ef9b9:0x75,_0x13e4dc:0x2f,_0x469db4:0x7c,_0x3853fb:0x130,_0x1aad6e:0x21a,_0xa60494:0x161,_0x13f869:0x9e,_0xb13c12:0xd2,_0x24b260:0x1da,_0x54d047:0x350,_0x396eb1:0x1c4,_0x4fb8d2:0x29b,_0x227322:0x33c,_0x2de801:0x380,_0x366dd5:0x381,_0x5f8d12:0x3ab,_0x5d8601:0x130,_0x13063a:0xa7,_0x1e0fcf:0x2e1,_0x3b51d1:0x35d},_0x6ca7f={_0x4ee8de:0x17,_0x226d6c:0x6d},_0x551164={_0x225809:0x154};this[_0x15bcd5(_0x2588a0._0x6ef9b9,-_0x2588a0._0x13e4dc,0x8,-_0x2588a0._0x469db4)]=_0x3be7f2['accessToken'],this[_0x15bcd5(-_0x2588a0._0x3853fb,-0x194,-_0x2588a0._0x1aad6e,-_0x2588a0._0xa60494)]=trimTrailingSlashes2(_0x3be7f2[_0x15bcd5(-_0x2588a0._0x3853fb,-_0x2588a0._0x13f869,-_0x2588a0._0xb13c12,-_0x2588a0._0x24b260)]);function _0x5b0d25(_0x2c2351,_0x434886,_0x1f8525,_0x332843){return _0x54ac71(_0x2c2351-0x13e,_0x434886,_0x332843- -_0x551164._0x225809,_0x332843-0x136);}this[_0x5b0d25(_0x2588a0._0x54d047,0x1c3,_0x2588a0._0x396eb1,0x287)]=_0x3be7f2['fetch'],this[_0x5b0d25(_0x2588a0._0x4fb8d2,_0x2588a0._0x227322,_0x2588a0._0x2de801,_0x2588a0._0x366dd5)]=trimTrailingSlashes2(_0x3be7f2[_0x5b0d25(0x398,_0x2588a0._0x5f8d12,0x432,0x381)]);function _0x15bcd5(_0x566def,_0x2eeb69,_0x180f75,_0x709f1b){return _0x5276b1(_0x180f75,_0x2eeb69-_0x6ca7f._0x4ee8de,_0x180f75-_0x6ca7f._0x226d6c,_0x566def- -0x72);}this[_0x15bcd5(0x42,0x90,_0x2588a0._0x5d8601,-_0x2588a0._0x13063a)]=_0x3be7f2[_0x5b0d25(0x2ea,0x367,_0x2588a0._0x1e0fcf,_0x2588a0._0x3b51d1)];}async[_0x54ac71(0x367,0x3ba,0x3d8,0x3cc)](_0x547ab6){const _0xdd2d66={_0x2f23ef:0x6bd,_0x1359ac:0x40e,_0x1dfc19:0x5d2,_0x166216:0x6e4,_0x38d9bd:0x602,_0x5efb09:0x5f7,_0x28a0c0:0x73a,_0x51b27f:0x41d,_0x13aea1:0x5d0,_0x279e54:0x6b1,_0x23e190:0x6de,_0x4149a2:0x508,_0x4f56ed:0x5f4,_0x3d4723:0x53f,_0x5a8fec:0x5f6,_0x19ff05:0x50d,_0x5e2ea6:0x6f3,_0x21b32b:0x6d7,_0xc69c96:0x5c4,_0x20354c:0x566,_0x53d30a:0x64d,_0x2e7464:0x5b3,_0x48dc90:0x577,_0xa53685:0x62a,_0x1620e1:0x4ab,_0x9a7bb6:0x563,_0xf0b136:0x4a3,_0x16c233:0x53f,_0x213fe4:0x534,_0x9f352e:0x6e9,_0x28dafb:0x5d0,_0x19dfa9:0x5db},_0x2da817={_0xbbc05:0x110},_0x32daef={_0x407f6f:0x200},_0x4a049d=await this['fetchImpl'](this['githubApiUrl']+'/copilot_internal/v2/token',{'method':_0x15fbdf(0x646,0x5d2,_0xdd2d66._0x2f23ef,0x717),'headers':new Headers({'accept':_0x503e11(0x522,0x53c,0x484,_0xdd2d66._0x1359ac),'authorization':_0x15fbdf(_0xdd2d66._0x1dfc19,_0xdd2d66._0x166216,_0xdd2d66._0x38d9bd,_0xdd2d66._0x5efb09)+this[_0x15fbdf(0x6f5,_0xdd2d66._0x28a0c0,_0xdd2d66._0x166216,0x6bf)],'editor-version':_0x503e11(0x43a,0x4a3,0x467,_0xdd2d66._0x51b27f),'user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this[_0x15fbdf(_0xdd2d66._0x13aea1,0x625,_0xdd2d66._0x279e54,_0xdd2d66._0x23e190)]}),'signal':_0x547ab6});if(!_0x4a049d['ok'])return{'credential':{'kind':'oauth-token','value':this[_0x503e11(_0xdd2d66._0x4149a2,0x61c,_0xdd2d66._0x4f56ed,0x60b)]},'endpoints':{'api':this[_0x15fbdf(0x55a,0x4fa,_0xdd2d66._0x3d4723,_0xdd2d66._0x5a8fec)]}};function _0x15fbdf(_0x29e4ea,_0xd860ab,_0x2d524a,_0x4d0034){return _0x54ac71(_0x29e4ea-0x156,_0x29e4ea,_0x2d524a-_0x32daef._0x407f6f,_0x4d0034-0x30);}function _0x503e11(_0x71dcdf,_0x191a22,_0x15d48c,_0x5a9c42){return _0x54ac71(_0x71dcdf-0x154,_0x5a9c42,_0x15d48c-_0x2da817._0xbbc05,_0x5a9c42-0x108);}const _0x276074=await _0x4a049d[_0x15fbdf(_0xdd2d66._0x19ff05,0x61f,0x535,0x52f)]();return{'credential':{'kind':_0x15fbdf(_0xdd2d66._0x5e2ea6,_0xdd2d66._0x21b32b,0x640,0x5ca),'value':_0x276074[_0x15fbdf(0x4d2,_0xdd2d66._0xc69c96,_0xdd2d66._0x20354c,0x62d)]??this[_0x503e11(0x6d0,0x6a8,0x5f4,0x579)]},'endpoints':{'api':_0x276074[_0x503e11(_0xdd2d66._0x3d4723,_0xdd2d66._0x53d30a,_0xdd2d66._0x2e7464,_0xdd2d66._0x48dc90)]?.[_0x15fbdf(_0xdd2d66._0xa53685,_0xdd2d66._0x1620e1,_0xdd2d66._0x9a7bb6,_0xdd2d66._0xf0b136)]??this[_0x15fbdf(0x593,0x5b0,_0xdd2d66._0x16c233,0x542)],'originTracker':_0x276074['endpoints']?.[_0x503e11(_0xdd2d66._0x213fe4,0x598,0x4a6,0x4ba)],'proxy':_0x276074[_0x15fbdf(_0xdd2d66._0x9f352e,_0xdd2d66._0x28dafb,0x6a3,0x768)]?.['proxy'],'telemetry':_0x276074[_0x503e11(0x585,0x65d,_0xdd2d66._0x2e7464,0x660)]?.[_0x15fbdf(0x48d,_0xdd2d66._0x19dfa9,0x53b,0x548)]}};}};function trimTrailingSlashes2(_0x4168f6){const _0xff793e={_0xcac167:0x50b,_0x2a1863:0x515,_0x4622f4:0x5b1},_0x34cdbd={_0x16ab62:0x1d7,_0x5a7d34:0x12c,_0x411c11:0x47b};function _0x1a4966(_0x939936,_0x38d639,_0x53fec5,_0x59209d){return _0x5276b1(_0x59209d,_0x38d639-_0x34cdbd._0x16ab62,_0x53fec5-_0x34cdbd._0x5a7d34,_0x38d639-_0x34cdbd._0x411c11);}return _0x4168f6[_0x1a4966(_0xff793e._0xcac167,0x4cb,_0xff793e._0x2a1863,_0xff793e._0x4622f4)](/\/+$/,'');}function createModelInfo(_0x2d2200){const _0x378a01={_0x503951:0x3a,_0x18fb7a:0xeb,_0x487dce:0x59,_0x25aa8a:0x15,_0xccd3bd:0x28,_0x3fa864:0x162,_0x3f1a21:0xd0,_0x31ee12:0x175,_0x5ad1c8:0xe2,_0x5d5f22:0x13a,_0x44176b:0x60,_0x461d83:0x223,_0x2f0c74:0x178,_0x24108c:0x101},_0xc89dc2={_0x54651a:0x12,_0xa6317b:0xb7},_0x3e620a={_0x48072f:0xb9,_0x240193:0x523};function _0x146804(_0x12ed7e,_0x3ccb30,_0x47d62e,_0x47bdc3){return _0x54ac71(_0x12ed7e-_0x3e620a._0x48072f,_0x47bdc3,_0x12ed7e- -_0x3e620a._0x240193,_0x47bdc3-0x1ac);}const _0x53235e=_0x2d2200[_0x146804(-0xe0,-0x1cc,-0x182,-0x1b9)]??_0x2d2200['capable_endpoints'],_0x2827de=_0x2d2200[_0x4b3d7a(_0x378a01._0x503951,-0x10c,-0x92,-0x37)]?.[_0x4b3d7a(-0x148,-_0x378a01._0x18fb7a,-0xe2,-0x14a)]?.[_0x4b3d7a(0x8d,-_0x378a01._0x487dce,-0x57,-_0x378a01._0x25aa8a)],_0x2ef7dd=_0x2d2200[_0x146804(-0x101,-_0x378a01._0xccd3bd,-0xcd,-_0x378a01._0x3fa864)]?.[_0x4b3d7a(-_0x378a01._0x3f1a21,-_0x378a01._0x31ee12,-_0x378a01._0x5ad1c8,-_0x378a01._0x5d5f22)]?.[_0x4b3d7a(0x24,-0xd1,-_0x378a01._0x44176b,-0x137)];function _0x4b3d7a(_0x196c3e,_0x434241,_0x4de40e,_0x43a1ec){return _0x5276b1(_0x434241,_0x434241-_0xc89dc2._0x54651a,_0x4de40e-0xea,_0x4de40e- -_0xc89dc2._0xa6317b);}const _0x20bbe2=_0x2827de!==void 0x0||_0x2ef7dd!==void 0x0?{..._0x2827de!==void 0x0?{'contextWindow':_0x2827de}:{},..._0x2ef7dd!==void 0x0?{'maxOutput':_0x2ef7dd}:{}}:void 0x0;return{'id':_0x2d2200['id'],'name':_0x2d2200[_0x4b3d7a(-0x1e2,-_0x378a01._0x461d83,-_0x378a01._0x2f0c74,-_0x378a01._0x24108c)]??_0x2d2200['id'],..._0x20bbe2?{'limits':_0x20bbe2}:{},..._0x53235e?{'supportedEndpoints':_0x53235e}:{}};}function deduplicateModels(_0x48b433){const _0x277eca={_0x38641d:0x110,_0xcd9aba:0x22b};function _0x1cb38e(_0x126d2b,_0x18ca0d,_0x4f1185,_0x33cf7e){return _0x5276b1(_0x18ca0d,_0x18ca0d-0x38,_0x4f1185-0x2d,_0x4f1185-0xe2);}const _0x4d1f01=new Map();for(const _0x5842fd of _0x48b433){!_0x4d1f01['has'](_0x5842fd['id'])&&_0x4d1f01[_0x1cb38e(_0x277eca._0x38641d,0x272,0x1bf,_0x277eca._0xcd9aba)](_0x5842fd['id'],_0x5842fd);}return Array['from'](_0x4d1f01['values']());}function hasUserPromptContent(_0x57f375){const _0x4f466b={_0x474b28:0xb4,_0x2c518f:0x93,_0x2fd40d:0x69a,_0x476bf6:0x70e,_0x11fe57:0x7bb,_0x217286:0x61f,_0x4c0075:0x650,_0x1793e6:0x70d},_0x98f535={_0x3275be:0x179,_0x18a32e:0x325,_0x4ab6d8:0xa,_0x195bd7:0x260,_0x3a8ed0:0x275,_0xc3d81c:0x274,_0x189848:0x210,_0x50079a:0x387,_0xd2ff17:0x44d,_0x41045f:0x448,_0x448645:0x276},_0x42f0de={_0x4a33e7:0x166,_0x40cc23:0x183,_0x51ba6e:0x62d},_0x362fad={_0x19e8c4:0xa};function _0x591eed(_0xd173fc,_0x593de1,_0x4eafa1,_0x5d184d){return _0x5276b1(_0x593de1,_0x593de1-0x173,_0x4eafa1-_0x362fad._0x19e8c4,_0xd173fc-0x17b);}if(typeof _0x57f375===_0x591eed(0x145,0x1a1,_0x4f466b._0x474b28,0x1fc))return _0x57f375[_0x591eed(_0x4f466b._0x2c518f,0x80,0x125,0x74)]()[_0x3201ec(_0x4f466b._0x2fd40d,_0x4f466b._0x476bf6,0x7ad,_0x4f466b._0x11fe57)]>0x0;function _0x3201ec(_0x2dea59,_0x4830be,_0x5a9757,_0x41d85b){return _0x5276b1(_0x2dea59,_0x4830be-_0x42f0de._0x4a33e7,_0x5a9757-_0x42f0de._0x40cc23,_0x4830be-_0x42f0de._0x51ba6e);}if(!Array[_0x3201ec(_0x4f466b._0x217286,0x577,0x664,_0x4f466b._0x4c0075)](_0x57f375))return![];return _0x57f375[_0x3201ec(0x73b,_0x4f466b._0x1793e6,0x66b,0x6b4)](_0x497316=>{const _0x12b86b={_0x4d6262:0x6f},_0x1e1252={_0x4abd1a:0x270,_0x99bea4:0x23};function _0x1a5e10(_0x3008ea,_0x3facab,_0x175ea6,_0x1eb43e){return _0x3201ec(_0x3facab,_0x1eb43e- -_0x1e1252._0x4abd1a,_0x175ea6-_0x1e1252._0x99bea4,_0x1eb43e-0x5);}if(!_0x497316||typeof _0x497316!==_0x285dda(0x269,_0x98f535._0x3275be,_0x98f535._0x18a32e,0x349))return![];function _0x285dda(_0xbd92c5,_0x5973bb,_0x1de583,_0x4230b1){return _0x591eed(_0xbd92c5-_0x12b86b._0x4d6262,_0x1de583,_0x1de583-0xa4,_0x4230b1-0x1b7);}const _0x3e9b00=_0x497316;return(_0x3e9b00['type']===_0x285dda(0xf6,0x1d8,_0x98f535._0x4ab6d8,0x5)||_0x3e9b00[_0x285dda(0x282,_0x98f535._0x195bd7,0x33d,0x2f6)]==='text')&&typeof _0x3e9b00[_0x285dda(_0x98f535._0x3a8ed0,0x247,_0x98f535._0xc3d81c,_0x98f535._0x189848)]===_0x1a5e10(0x439,0x32b,0x3c7,_0x98f535._0x50079a)&&_0x3e9b00[_0x1a5e10(_0x98f535._0xd2ff17,0x3bf,0x4f8,_0x98f535._0x41045f)]['trim']()[_0x285dda(0x2cb,_0x98f535._0x448645,0x3b4,0x31b)]>0x0;});}function _isUserPromptEntry(_0x1156f5){const _0x3fb1bc={_0x33a6ca:0x4c1,_0x5e7ccd:0x41e,_0x224463:0x4a3,_0x13368e:0x477,_0x55d929:0x4b8,_0x14cfe5:0xb3,_0x1ed225:0x24,_0xc19ab1:0x5b0,_0x1c8969:0x4a9,_0x27d8bf:0x403,_0x513849:0x18c,_0x1924c7:0x1f},_0x138642={_0x47c7a3:0x8,_0x1e975b:0x14b},_0x218e98={_0x46c189:0x1e0};if(!_0x1156f5||typeof _0x1156f5!==_0x8a21e1(_0x3fb1bc._0x33a6ca,_0x3fb1bc._0x5e7ccd,0x3d1,0x548))return![];const _0x4b43b8=_0x1156f5;function _0x8a21e1(_0x23a5a5,_0x3ca284,_0x43bcd3,_0x4d0ec3){return _0x54ac71(_0x23a5a5-0xab,_0x4d0ec3,_0x23a5a5-0x45,_0x4d0ec3-_0x218e98._0x46c189);}if(_0x4b43b8['role']!==_0x8a21e1(_0x3fb1bc._0x224463,0x3c5,_0x3fb1bc._0x13368e,_0x3fb1bc._0x55d929))return![];function _0x1183ef(_0x36f883,_0x11c20c,_0x2ee523,_0x1fb93a){return _0x5276b1(_0x2ee523,_0x11c20c-_0x138642._0x47c7a3,_0x2ee523-0x7b,_0x11c20c- -_0x138642._0x1e975b);}if(_0x4b43b8[_0x1183ef(-0x4,-_0x3fb1bc._0x14cfe5,-_0x3fb1bc._0x1ed225,-0x121)]!==void 0x0&&_0x4b43b8[_0x8a21e1(0x4da,_0x3fb1bc._0xc19ab1,_0x3fb1bc._0x1c8969,_0x3fb1bc._0x27d8bf)]!==_0x1183ef(-0x24f,-_0x3fb1bc._0x513849,-0x24a,-0x1c3))return![];return hasUserPromptContent(_0x4b43b8[_0x1183ef(-0x61,-0x9c,-0x17b,-_0x3fb1bc._0x1924c7)]);}function determineInitiator(_0xc63ad8){const _0x233679={_0x4443f8:0x6a,_0x3b63b3:0x77,_0x154a4d:0x13f,_0x956408:0x15d,_0x4f8a83:0x4,_0x2ca3a1:0x5c,_0x359b04:0x8e},_0x3b78eb={_0x5afc6f:0xb8,_0x494bb1:0x4fa},_0x462f65={_0x1b68f5:0x69,_0x5f357c:0x171,_0x1c103d:0x5d};if(!_0xc63ad8||typeof _0xc63ad8!==_0x5d5de6(0x41,0x5d,-0xa3,-0x7e))return _0xee1b91(-0xcf,0x12,-0x16,-0x9e);const _0x27a08f=_0x5d5de6(-0x142,-0x83,-0x1aa,-0x10a)in _0xc63ad8?_0xc63ad8[_0xee1b91(-0xc8,-_0x233679._0x4443f8,-0x47,_0x233679._0x3b63b3)]:_0x5d5de6(-_0x233679._0x154a4d,-0x1d4,-0x11c,-_0x233679._0x956408)in _0xc63ad8?_0xc63ad8[_0x5d5de6(-0xbe,-0xd1,-0xde,-0x15d)]:void 0x0;if(!Array['isArray'](_0x27a08f)||_0x27a08f['length']===0x0)return'agent';function _0xee1b91(_0x25c022,_0x595d61,_0x162c5f,_0xbdcf00){return _0x5276b1(_0x162c5f,_0x595d61-_0x462f65._0x1b68f5,_0x162c5f-_0x462f65._0x5f357c,_0x595d61- -_0x462f65._0x1c103d);}function _0x5d5de6(_0x27814a,_0x458a52,_0x2fca5b,_0x35b05a){return _0x54ac71(_0x27814a-_0x3b78eb._0x5afc6f,_0x458a52,_0x35b05a- -_0x3b78eb._0x494bb1,_0x35b05a-0x1d6);}return _isUserPromptEntry(_0x27a08f[_0x27a08f['length']-0x1])?_0xee1b91(-0xd9,_0x233679._0x4f8a83,0xa1,-0x63):_0x5d5de6(-0xc9,-_0x233679._0x2ca3a1,-0x70,-_0x233679._0x359b04);}function isUnsupportedApiForModel(_0x299c0d){const _0xc8a19e={_0x9256f8:0x617,_0x440525:0x60b},_0x4e7496={_0x252113:0x6f},_0xe5cdbd={_0x44a876:0x582};function _0x575cef(_0x4dd36d,_0x4373ba,_0x435911,_0x490116){return _0x5276b1(_0x490116,_0x4373ba-0x74,_0x435911-0x18a,_0x435911-_0xe5cdbd._0x44a876);}function _0x4b3f37(_0x31767b,_0x40e1dc,_0x111f33,_0x1d0611){return _0x5276b1(_0x31767b,_0x40e1dc-0x12e,_0x111f33-0x16d,_0x40e1dc-_0x4e7496._0x252113);}return _0x299c0d[_0x575cef(0x6b6,0x6bf,_0xc8a19e._0x9256f8,_0xc8a19e._0x440525)](_0x575cef(0x5d5,0x621,0x57e,0x615));}function createResponseError(_0x5f1dea,_0x2da74e){const _0x2f0b0c={_0x5a8402:0x24f,_0x4071f0:0x21e,_0x4db3aa:0x16f,_0x43cf1e:0x18f,_0x259947:0x2b9},_0x3e8e28={_0x2d1f2b:0x35,_0xf05152:0x194,_0x164687:0x3de};if(_0x5f1dea===0x191||_0x5f1dea===0x193)return new Error(_0x2ccfb9(0x13a,_0x2f0b0c._0x5a8402,_0x2f0b0c._0x4071f0,_0x2f0b0c._0x4db3aa));function _0x2ccfb9(_0x1dc4b0,_0x710bd6,_0x2cd98c,_0x10ad53){return _0x54ac71(_0x1dc4b0-0x132,_0x710bd6,_0x2cd98c- -0x18b,_0x10ad53-0x171);}if(_0x5f1dea===0x198||_0x5f1dea===0x1ad)return new Error(_0x2ccfb9(0x330,_0x2f0b0c._0x43cf1e,0x262,_0x2f0b0c._0x259947));if(_0x5f1dea===0x190)return new Error('Invalid\x20request:\x20'+_0x2da74e);function _0x1523ce(_0x87f49f,_0x3a43a6,_0x53f8df,_0x16bb43){return _0x5276b1(_0x16bb43,_0x3a43a6-_0x3e8e28._0x2d1f2b,_0x53f8df-_0x3e8e28._0xf05152,_0x87f49f-_0x3e8e28._0x164687);}return new Error(_0x2da74e||'GitHub\x20API\x20error\x20'+_0x5f1dea);}var GitHubModel=class extends OpenAiModel{[_0x54ac71(0x407,0x3d6,0x47a,0x471)];[_0x5276b1(0x63,0x62,0xa2,0x80)]=new Map();[_0x5276b1(0x9c,-0x9b,-0x109,-0x26)];constructor(_0x907984={}){const _0x5a8673={_0x21f358:0x46c,_0x3b6b3b:0x630,_0xc8580a:0x5e1,_0x352545:0x11e,_0x2f48f2:0x1c8,_0x1c50d1:0x1e3,_0x3f60be:0x672,_0x521a08:0x591,_0x3a9bec:0x640,_0x6aeae5:0x44a,_0x4ed1c7:0x51d,_0x351957:0x702,_0x164731:0x733,_0x51f2a1:0x8,_0x1b6e23:0x131,_0x256984:0x9f,_0x4600fb:0xe,_0xf59ae8:0x37,_0x48ad3c:0xbc,_0x352d31:0x6bc,_0x3beed9:0x704,_0x3bb4c9:0x673,_0x447d16:0x1b9,_0x2f4863:0x1a1,_0xdf1307:0x129,_0x3002f4:0x4a,_0x3488a4:0x13c,_0x1defee:0x5b3,_0x1811b3:0x4f9,_0x1fb41b:0x5bb,_0x22c44d:0x673,_0x575437:0x58a,_0x5530f1:0x149,_0x4fefcb:0xa0,_0x89b2:0x111,_0x3a326d:0x141,_0x5bfdc9:0x53,_0x5b25e6:0x60a,_0x4b91d1:0x59a,_0x5c5a6b:0x5b5,_0x4a01ac:0x59d,_0x1b25f5:0x171,_0x952607:0xda,_0x503add:0x69d,_0x1beddb:0x525,_0x433993:0x5e9},_0x57b6f5={_0x1d0862:0x1f5,_0x753cee:0xf0},_0x1cc491={_0x4d0ff1:0x4e8,_0xfc1c5:0x4f},_0x1d8277=trimTrailingSlashes2(_0x907984[_0x5009bc(0x5ff,_0x5a8673._0x21f358,0x4a2,0x534)]??_0x5009bc(0x474,_0x5a8673._0x3b6b3b,_0x5a8673._0xc8580a,0x551));function _0xb6115a(_0x5d2cd9,_0x35f4b2,_0x2a178f,_0x173536){return _0x54ac71(_0x5d2cd9-0x1ca,_0x2a178f,_0x5d2cd9- -_0x1cc491._0x4d0ff1,_0x173536-_0x1cc491._0xfc1c5);}const _0x337ca8=_0x907984[_0xb6115a(-_0x5a8673._0x352545,-_0x5a8673._0x2f48f2,-0x179,-_0x5a8673._0x1c50d1)]??globalThis[_0x5009bc(_0x5a8673._0x3f60be,_0x5a8673._0x521a08,_0x5a8673._0x3a9bec,0x5bf)],_0x331c81=_0x907984[_0x5009bc(0x5a0,0x4f8,_0x5a8673._0x6aeae5,_0x5a8673._0x4ed1c7)]??(_0x907984[_0x5009bc(0x79b,_0x5a8673._0x351957,0x6eb,0x6d9)]?new GitHubAccessTokenResolver({'accessToken':_0x907984[_0x5009bc(_0x5a8673._0x164731,0x5ef,0x65e,0x6d9)],'baseUrl':_0x1d8277,'fetch':_0x337ca8,'githubApiUrl':_0x907984[_0xb6115a(-0x13,_0x5a8673._0x51f2a1,-0x8f,-0x108)]??_0xb6115a(-0xd2,-_0x5a8673._0x1b6e23,-_0x5a8673._0x256984,-_0x5a8673._0x4600fb),'tokenExchangeApiVersion':_0x907984[_0xb6115a(-_0x5a8673._0xf59ae8,-0x11d,-0x127,-_0x5a8673._0x48ad3c)]??_0xb6115a(-0x1ae,-0x25f,-0x1f6,-0x283)}):void 0x0),_0x158e09=_0x907984[_0x5009bc(_0x5a8673._0x352d31,0x5f6,_0x5a8673._0x3beed9,_0x5a8673._0x3bb4c9)]??_0xb6115a(-_0x5a8673._0x447d16,-_0x5a8673._0x2f4863,-_0x5a8673._0xdf1307,-0x14a);function _0x5009bc(_0x2cd971,_0x24c4b6,_0x60857,_0x9bfc42){return _0x54ac71(_0x2cd971-0x8e,_0x60857,_0x9bfc42-_0x57b6f5._0x1d0862,_0x9bfc42-_0x57b6f5._0x753cee);}const _0x56c2b=_0x907984[_0xb6115a(-_0x5a8673._0x3002f4,-0x12c,-0xb5,-0xc3)]??'copilot-chat/0.31.3',_0x10c1de=({body:_0x11c4cc})=>{return{'editor-plugin-version':_0x56c2b,'editor-version':_0x158e09,'x-initiator':determineInitiator(_0x11c4cc),'x-request-id':randomUUID()};},_0x3d0461={'apiKey':_0x907984[_0xb6115a(-0x143,-0x1d4,-0xe0,-_0x5a8673._0x3488a4)],'baseUrl':_0x1d8277,'fetch':_0x337ca8,'maxTokens':_0x907984[_0x5009bc(0x561,_0x5a8673._0x1defee,0x55e,_0x5a8673._0x1811b3)],'model':_0x907984['model'],'modelIdentity':_0x907984[_0x5009bc(0x5bc,_0x5a8673._0x1fb41b,_0x5a8673._0x22c44d,_0x5a8673._0x575437)],'reasoning':_0x907984[_0xb6115a(-0xf4,-0xeb,-0x14a,-_0x5a8673._0x5530f1)],'providerSessionResolver':_0x331c81,'requestMutators':_0x907984[_0xb6115a(-0x58,0x29,-_0x5a8673._0x4fefcb,-0xc2)],'headerResolver':_0x10c1de};super(_0x3d0461),this['surface']=_0x907984[_0xb6115a(-_0x5a8673._0x89b2,-_0x5a8673._0x3a326d,-0x1b0,-_0x5a8673._0x5bfdc9)]??'auto',this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x907984[_0x5009bc(0x4ae,_0x5a8673._0x5b25e6,0x4ad,_0x5a8673._0x4b91d1)],'authScheme':'bearer','baseUrl':_0x1d8277,'fetch':_0x337ca8,'headerResolver':_0x10c1de,'maxTokens':_0x907984[_0x5009bc(0x53f,_0x5a8673._0x5c5a6b,_0x5a8673._0x4a01ac,0x4f9)],'model':_0x907984['model'],'modelIdentity':_0x907984[_0xb6115a(-0x153,-_0x5a8673._0x1b25f5,-_0x5a8673._0x952607,-0x1c5)],'reasoning':_0x907984[_0x5009bc(_0x5a8673._0x503add,_0x5a8673._0x1beddb,0x64b,_0x5a8673._0x433993)],'providerSessionResolver':_0x331c81,'requestMutators':_0x907984['requestMutators']});}['createMissingCredentialError'](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}[_0x5276b1(0x9d,0x115,0x4c,0x3f)](_0x5282a5){const _0x488e42={_0x311cc8:0xcd,_0x4843c3:0x8c,_0x8aaf05:0x67d,_0x13e71a:0x6fc,_0x242211:0x70e,_0x2c764f:0x66f,_0x2241c4:0x721},_0x43dc7d={_0x5b11ec:0x9b,_0x523df2:0x26a},_0x160ba4={_0x125ceb:0x180,_0x126cec:0x108,_0x38c5b1:0x1d};function _0x26bfe6(_0x21590c,_0x223fa9,_0x2514f7,_0x3fb3ac){return _0x5276b1(_0x21590c,_0x223fa9-_0x160ba4._0x125ceb,_0x2514f7-_0x160ba4._0x126cec,_0x3fb3ac- -_0x160ba4._0x38c5b1);}function _0x5482e2(_0x288dcd,_0xbd81ea,_0x191ced,_0x77194d){return _0x54ac71(_0x288dcd-_0x43dc7d._0x5b11ec,_0x77194d,_0x191ced-_0x43dc7d._0x523df2,_0x77194d-0x56);}const _0x461325=this['modelEndpointCache'][_0x26bfe6(-0x16f,-0xa1,-_0x488e42._0x311cc8,-_0x488e42._0x4843c3)](_0x5282a5);if(!_0x461325)return![];return!_0x461325[_0x5482e2(_0x488e42._0x8aaf05,0x731,_0x488e42._0x13e71a,0x67d)]('/chat/completions')&&_0x461325['includes'](_0x5482e2(_0x488e42._0x242211,_0x488e42._0x2c764f,0x6a7,_0x488e42._0x2241c4));}[_0x54ac71(0x275,0x35f,0x310,0x3d7)](_0x3e714a){const _0x477320={_0x28f042:0x234,_0x48fc1:0x2d2,_0x2c3801:0x145,_0x4e6131:0x159,_0x194012:0x106,_0x754ab8:0x733,_0x58f8fd:0x723,_0x357c3f:0x617,_0xd2bf0a:0x1f3,_0x1f8d70:0x68f},_0x49484b={_0x4d60f9:0x1d9,_0x433496:0x24e,_0x350212:0xca},_0xaae710=this[_0xcfcb35(_0x477320._0x28f042,0x2ad,_0x477320._0x48fc1,0x174)][_0xcfcb35(_0x477320._0x2c3801,_0x477320._0x4e6131,0x1d4,_0x477320._0x194012)](_0x3e714a[_0xf1c7ea(0x6d2,_0x477320._0x754ab8,_0x477320._0x58f8fd,0x806)]);function _0xf1c7ea(_0x189a4b,_0x554dcc,_0x308733,_0x3601a2){return _0x54ac71(_0x189a4b-_0x49484b._0x4d60f9,_0x308733,_0x554dcc-_0x49484b._0x433496,_0x3601a2-_0x49484b._0x350212);}function _0xcfcb35(_0x53a820,_0x408b3c,_0x2f512a,_0x140e55){return _0x5276b1(_0x140e55,_0x408b3c-0xe,_0x2f512a-0x12f,_0x53a820-0x1b4);}if(!_0xaae710)return![];if(resolveOpenAiReasoningConfig(_0x3e714a[_0xf1c7ea(0x714,0x642,0x58e,0x652)]))return _0xaae710[_0xf1c7ea(_0x477320._0x357c3f,0x6e0,0x6ec,0x614)]('/responses');return this[_0xcfcb35(_0x477320._0xd2bf0a,0x10e,0x201,0x2cb)](_0x3e714a[_0xf1c7ea(_0x477320._0x1f8d70,0x733,0x7ba,0x6b4)]);}[_0x5276b1(0xea,0x21,0xe0,0x2a)](_0x4b57be){const _0x356e05={_0x211e4d:0x509,_0x423c5e:0x426,_0x423a4e:0x5d,_0x5c3456:0x56,_0x40c91b:0x64},_0x38c31d={_0x30acf5:0x114,_0x5215ba:0x12a};function _0x38594f(_0x2ff6be,_0x4f5097,_0x196f1a,_0x205ee4){return _0x5276b1(_0x4f5097,_0x4f5097-_0x38c31d._0x30acf5,_0x196f1a-_0x38c31d._0x5215ba,_0x196f1a- -0xa4);}function _0x193a4d(_0xd157fd,_0x214569,_0x574013,_0x8e9a29){return _0x54ac71(_0xd157fd-0x105,_0x214569,_0x8e9a29-0x37,_0x8e9a29-0x1bf);}this[_0x193a4d(_0x356e05._0x211e4d,_0x356e05._0x423c5e,0x4c9,0x4b4)][_0x38594f(-0x45,_0x356e05._0x423a4e,0x39,0xfd)](_0x4b57be,[_0x38594f(-_0x356e05._0x5c3456,-0x157,-_0x356e05._0x40c91b,-0x7f)]);}[_0x5276b1(0xb,0x2,0xdb,0x8d)](_0x14e06b){const _0x2ba37={_0xb7948b:0x4d,_0x4d7e94:0x5d,_0xb19cd4:0x61,_0x5e192a:0x67,_0x54e677:0x15,_0x2a072d:0xce,_0x2d2355:0x15b},_0x29f3cc={_0x474848:0x29,_0x10f66f:0x9d,_0xe42e41:0x10f},_0x5c62a2={_0x1c6787:0x73,_0x5c6919:0x7d};function _0x189316(_0x50ce82,_0x5d0a42,_0x3441e7,_0x28c730){return _0x5276b1(_0x28c730,_0x5d0a42-0x135,_0x3441e7-_0x5c62a2._0x1c6787,_0x50ce82-_0x5c62a2._0x5c6919);}if(_0x14e06b instanceof OpenAiApiError)return createResponseError(_0x14e06b[_0x189316(-_0x2ba37._0xb7948b,-_0x2ba37._0x4d7e94,_0x2ba37._0xb19cd4,_0x2ba37._0x5e192a)],_0x14e06b[_0x189316(0x3f,-0x6,-_0x2ba37._0x54e677,0xb1)]||_0x14e06b[_0x519f5d(0x1bc,_0x2ba37._0x2a072d,-0x14,_0x2ba37._0x2d2355)]);function _0x519f5d(_0x1bb057,_0x56fa4d,_0x284e83,_0x302eb2){return _0x5276b1(_0x284e83,_0x56fa4d-_0x29f3cc._0x474848,_0x284e83-_0x29f3cc._0x10f66f,_0x56fa4d-_0x29f3cc._0xe42e41);}return _0x14e06b;}[_0x5276b1(-0x26,-0xbd,-0xa3,-0xb1)](_0x59a8de,_0xceb29a){const _0x3646c6={_0xe831e9:0x592,_0x15bbe8:0x641,_0x5b15aa:0x4bf,_0x436322:0x2e5,_0x4e0e8f:0x33d,_0x4ea923:0x279,_0x31a259:0x635,_0xf3fb48:0x583,_0x59d781:0x676,_0x151864:0x1eb,_0x193dc3:0x269,_0x232e97:0x21e,_0x27f27f:0x204,_0x3587c5:0x15b,_0x13d387:0xba,_0x2d0e3e:0x176,_0x175e89:0x570,_0x46e15c:0x4a3,_0x4050e5:0x198,_0x5a9ce5:0x154,_0x4eb7d7:0x1a3,_0x4f1f0a:0x232,_0x8c577f:0x1f2,_0x310f69:0x1d9,_0x38009f:0x1e4,_0x4fd758:0x177,_0x27862d:0x266,_0x4f98dd:0x592,_0x271c27:0x5df,_0x1108e6:0x674},_0x5aa967={_0x49a272:0x75,_0x30d108:0x23d},_0x534be5={_0x495ea6:0x1bb,_0xf29f72:0x1e2};function _0x4edc9d(_0x14117e,_0x2c0572,_0x8959,_0x576bf7){return _0x54ac71(_0x14117e-0x1a3,_0x2c0572,_0x14117e-_0x534be5._0x495ea6,_0x576bf7-_0x534be5._0xf29f72);}function _0xc35b55(_0x5989e1,_0x42b5,_0x7ae437,_0x3e413f){return _0x5276b1(_0x42b5,_0x42b5-0x163,_0x7ae437-_0x5aa967._0x49a272,_0x5989e1-_0x5aa967._0x30d108);}switch(this[_0x4edc9d(_0x3646c6._0xe831e9,_0x3646c6._0x15bbe8,_0x3646c6._0x5b15aa,0x506)]){case _0xc35b55(0x264,_0x3646c6._0x436322,_0x3646c6._0x4e0e8f,_0x3646c6._0x4ea923):return this[_0x4edc9d(_0x3646c6._0x31a259,_0x3646c6._0xf3fb48,_0x3646c6._0x59d781,0x5de)][_0xc35b55(_0x3646c6._0x151864,0x2d6,_0x3646c6._0x193dc3,_0x3646c6._0x232e97)](_0x59a8de,_0xceb29a);case'openai-chat-completions':return this['chatComplete'](_0x59a8de,_0xceb29a);case _0xc35b55(0x21a,_0x3646c6._0x27f27f,0x30e,0x166):return this[_0xc35b55(_0x3646c6._0x3587c5,0x76,_0x3646c6._0x13d387,_0x3646c6._0x2d0e3e)](_0x59a8de,_0xceb29a);case _0x4edc9d(_0x3646c6._0x175e89,0x4e1,0x597,_0x3646c6._0x46e15c):return this[_0xc35b55(_0x3646c6._0x4050e5,_0x3646c6._0x5a9ce5,0x188,0x1c9)](_0x59a8de,_0xceb29a);case _0xc35b55(0x247,_0x3646c6._0x4eb7d7,_0x3646c6._0x4f1f0a,_0x3646c6._0x8c577f):return this[_0xc35b55(0x1eb,0x247,_0x3646c6._0x310f69,0x2c2)](_0x59a8de,_0xceb29a);}throw new Error(_0xc35b55(_0x3646c6._0x38009f,0x292,_0x3646c6._0x4fd758,_0x3646c6._0x27862d)+String(this[_0x4edc9d(_0x3646c6._0x4f98dd,0x4de,_0x3646c6._0x271c27,_0x3646c6._0x1108e6)]));}['streamViaConfiguredSurface'](_0x2cdc8c,_0x4aea67){const _0x132d9a={_0x19ced2:0x4f7,_0x5c07ba:0x4b4,_0x1b498d:0x5b5,_0x5651a9:0x4a7,_0x107df9:0x1c2,_0x115fba:0x5e1,_0x4a91dc:0xd3,_0x325e49:0x14c,_0x3a7c70:0x3c7,_0x204468:0x50a,_0xcd50f2:0x450,_0x32cf7a:0x4b5,_0x2de903:0x4e5,_0x5ddd32:0x5c8,_0x21a533:0x645,_0x5d0f5a:0x1b1},_0x43d063={_0x2f4d33:0x16f,_0x142b84:0xe2},_0x20fdfb={_0x2ff053:0xd7};switch(this[_0x216a5d(0x478,_0x132d9a._0x19ced2,_0x132d9a._0x5c07ba,0x516)]){case _0x216a5d(0x583,_0x132d9a._0x1b498d,_0x132d9a._0x5651a9,0x563):return this[_0x27e9b7(0x207,0x184,0x20e,_0x132d9a._0x107df9)][_0x216a5d(0x5df,_0x132d9a._0x115fba,0x4cb,0x562)](_0x2cdc8c,_0x4aea67);case _0x27e9b7(0xe1,_0x132d9a._0x4a91dc,0xcb,_0x132d9a._0x325e49):return this['chatStream'](_0x2cdc8c,_0x4aea67);case _0x27e9b7(0x167,0x153,0x102,0x25b):return this[_0x216a5d(_0x132d9a._0x3a7c70,0x429,_0x132d9a._0x204468,_0x132d9a._0xcd50f2)](_0x2cdc8c,_0x4aea67);case'openai-responses-ws':return this[_0x216a5d(_0x132d9a._0x32cf7a,_0x132d9a._0x2de903,0x510,0x59b)](_0x2cdc8c,_0x4aea67);case _0x216a5d(0x618,_0x132d9a._0x5ddd32,0x496,0x546):return this[_0x216a5d(0x5d8,_0x132d9a._0x21a533,0x4dd,0x562)](_0x2cdc8c,_0x4aea67);}function _0x27e9b7(_0x352fa9,_0x55cbaa,_0x1323a5,_0x53566b){return _0x5276b1(_0x53566b,_0x55cbaa-0x99,_0x1323a5-_0x20fdfb._0x2ff053,_0x352fa9-0x18a);}function _0x216a5d(_0x109a95,_0x2b05a5,_0x27feb5,_0x47d157){return _0x54ac71(_0x109a95-_0x43d063._0x2f4d33,_0x109a95,_0x47d157-0x13f,_0x47d157-_0x43d063._0x142b84);}throw new Error(_0x27e9b7(0x131,0x11a,0x211,_0x132d9a._0x5d0f5a)+String(this['surface']));}async[_0x5276b1(-0x6c,-0xed,-0x16,-0x52)](_0x2fec03,_0x19e70d){const _0x328fbd={_0x59a840:0x5e4,_0x5f5741:0x51d,_0x549be9:0x5a0,_0x317fef:0x44b,_0x455ae8:0x52b,_0x3640ae:0x638,_0x4cc473:0x28a,_0x247d66:0x39f,_0x5ab999:0x3cd},_0x8176b3={_0x35a542:0x11f};function _0x4893b6(_0x1966f3,_0x4f03a9,_0x2a6b5f,_0x31c370){return _0x54ac71(_0x1966f3-0x1d9,_0x1966f3,_0x4f03a9-0x20d,_0x31c370-0x51);}const _0x238093=this[_0x4893b6(0x647,0x617,_0x328fbd._0x59a840,0x5cb)](_0x2fec03);if(this[_0x4893b6(0x630,0x5e4,0x50b,0x552)]!=='auto')return this['completeViaConfiguredSurface'](_0x238093,_0x19e70d);if(this[_0x4893b6(0x5c9,_0x328fbd._0x5f5741,0x438,_0x328fbd._0x549be9)](_0x238093))return this['response'](_0x238093,_0x19e70d);function _0x3321c0(_0x1507b5,_0x4d9082,_0x244917,_0x4311e5){return _0x54ac71(_0x1507b5-_0x8176b3._0x35a542,_0x4311e5,_0x4d9082-0x57,_0x4311e5-0x1b5);}try{return await this[_0x3321c0(_0x328fbd._0x317fef,_0x328fbd._0x455ae8,0x58a,0x439)](_0x238093,_0x19e70d);}catch(_0x8f7e1d){if(_0x8f7e1d instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x8f7e1d['body']))return this[_0x4893b6(0x66a,0x634,_0x328fbd._0x3640ae,0x6e4)](_0x238093['model']),this[_0x3321c0(_0x328fbd._0x4cc473,0x372,_0x328fbd._0x247d66,_0x328fbd._0x5ab999)](_0x238093,_0x19e70d);throw this['mapApiError'](_0x8f7e1d);}throw _0x8f7e1d;}}async*[_0x54ac71(0x383,0x4e3,0x423,0x445)](_0x509d99,_0x4d4e6d){const _0x33b302={_0x22b6b1:0x97,_0x5d3733:0x233,_0x239aa1:0x13b,_0x2ebc67:0xc0,_0x4c4d9d:0x61,_0x33d3a2:0x42,_0x5033ff:0x7f,_0x8c495c:0x108,_0xf0a612:0x84,_0x1b88ee:0xe1,_0x235f57:0x198,_0x132872:0x58,_0x2f10c1:0x1e,_0x47e9f3:0x3d,_0x5712c2:0x2a},_0x538b0a={_0x2acaa8:0x165},_0x4cdab1={_0x5a34a6:0x1cd},_0x474e9f=this[_0x4f6f53(-_0x33b302._0x22b6b1,-0xbd,-0x10b,-0x163)](_0x509d99);function _0x1d6fd3(_0x3c8f0d,_0x103068,_0x556b05,_0x7d68d4){return _0x54ac71(_0x3c8f0d-_0x4cdab1._0x5a34a6,_0x556b05,_0x103068- -0x221,_0x7d68d4-0xb8);}if(this[_0x1d6fd3(_0x33b302._0x5d3733,0x1b6,_0x33b302._0x239aa1,0x1d3)]!==_0x4f6f53(-0x116,-_0x33b302._0x2ebc67,-0x26,-0x19c)){yield*this[_0x4f6f53(-0xad,-_0x33b302._0x4c4d9d,-0x96,_0x33b302._0x33d3a2)](_0x474e9f,_0x4d4e6d);return;}function _0x4f6f53(_0x18a70f,_0x347ef3,_0x19c670,_0xc3ac4a){return _0x54ac71(_0x18a70f-_0x538b0a._0x2acaa8,_0x19c670,_0x347ef3- -0x4c7,_0xc3ac4a-0x1a5);}if(this[_0x1d6fd3(0xcf,0xef,_0x33b302._0x5033ff,_0x33b302._0x8c495c)](_0x474e9f)){yield*this[_0x4f6f53(-0xc3,-0x1b6,-0x10b,-0x189)](_0x474e9f,_0x4d4e6d);return;}try{yield*this['streamViaChatCompletionsSurface'](_0x474e9f,_0x4d4e6d);}catch(_0x1ac3c4){if(_0x1ac3c4 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x1ac3c4[_0x4f6f53(-_0x33b302._0xf0a612,-0x108,-_0x33b302._0x1b88ee,-_0x33b302._0x235f57)])){this['markModelAsResponsesOnly'](_0x474e9f[_0x4f6f53(_0x33b302._0x132872,_0x33b302._0x2f10c1,-0x8a,-0xe)]),yield*this['responseStream'](_0x474e9f,_0x4d4e6d);return;}throw this[_0x4f6f53(-0xeb,-_0x33b302._0x47e9f3,-_0x33b302._0x5712c2,-0x8d)](_0x1ac3c4);}throw _0x1ac3c4;}}async[_0x5276b1(0x2f,-0x6d,0x94,-0x20)](_0x2ea4bc){const _0xc72122={_0x236d11:0x23f,_0x4b01ea:0x305,_0x2a5c7c:0x27c,_0x496fec:0x324,_0x54dc5f:0x2d6,_0x6ef3a4:0x359,_0x538473:0x304,_0x7fd30f:0x1f7,_0x40c765:0x12a,_0x54e44a:0x215,_0x647240:0x20e,_0x350b26:0x160,_0x308c97:0x137,_0x197dbf:0x2ea,_0x120460:0x163,_0x4f900e:0x291},_0x4fe999={_0xc7bef5:0x13d,_0x3f9109:0x97,_0x42e193:0xa6},_0x1cc418={_0x492a2e:0x4,_0x1bd36d:0x1bf},_0x23667d={_0x5c10b3:0x1c4,_0x48dd5a:0x1},_0x469c8b={_0x54b87e:0x9b,_0x22c7df:0x17c,_0x5f1138:0xa7},_0xe1378c={_0x528537:0x179,_0x398097:0x1e7},_0x1f69cc=await this[_0x798434(0x2b8,_0xc72122._0x236d11,_0xc72122._0x4b01ea,_0xc72122._0x2a5c7c)]({'path':_0xe3171e(0x232,_0xc72122._0x496fec,0x286,0x2af),'method':_0xe3171e(_0xc72122._0x54dc5f,0x2c0,_0xc72122._0x6ef3a4,0x39a),'signal':_0x2ea4bc});function _0xe3171e(_0x4861dd,_0x4ae749,_0x89fac5,_0x1d63a0){return _0x54ac71(_0x4861dd-_0xe1378c._0x528537,_0x4ae749,_0x4861dd- -_0xe1378c._0x398097,_0x1d63a0-0x134);}if(!_0x1f69cc['ok'])throw this[_0xe3171e(0x2a3,0x288,0x25c,_0xc72122._0x538473)](await this[_0xe3171e(_0xc72122._0x7fd30f,_0xc72122._0x40c765,0x195,_0xc72122._0x54e44a)](_0x1f69cc));function _0x798434(_0x7716de,_0x8deb96,_0x10999a,_0x52b2cf){return _0x54ac71(_0x7716de-_0x469c8b._0x54b87e,_0x8deb96,_0x7716de- -_0x469c8b._0x22c7df,_0x52b2cf-_0x469c8b._0x5f1138);}const _0x43281d=await _0x1f69cc[_0x798434(0x1b9,_0xc72122._0x647240,_0xc72122._0x350b26,_0xc72122._0x308c97)](),_0x58870e=(_0x43281d['data']??[])[_0xe3171e(0x203,_0xc72122._0x197dbf,_0xc72122._0x120460,_0xc72122._0x4f900e)](_0x404eae=>{function _0x16c0d3(_0x2c5ad1,_0x3b4a29,_0x16d4ac,_0x4b1812){return _0x798434(_0x4b1812- -0x26a,_0x2c5ad1,_0x16d4ac-_0x23667d._0x5c10b3,_0x4b1812-_0x23667d._0x48dd5a);}function _0x29cdf8(_0x3248f8,_0x3dc660,_0x3c2d78,_0x49ccc4){return _0x798434(_0x3248f8- -0x173,_0x49ccc4,_0x3c2d78-_0x1cc418._0x492a2e,_0x49ccc4-_0x1cc418._0x1bd36d);}const _0x498daa=createModelInfo(_0x404eae);return _0x498daa['supportedEndpoints']&&this[_0x16c0d3(0x11b,_0x4fe999._0xc7bef5,0xae,_0x4fe999._0x3f9109)]['set'](_0x498daa['id'],_0x498daa[_0x16c0d3(0x2,-_0x4fe999._0x42e193,0x69,0x49)]),_0x498daa;});return deduplicateModels(_0x58870e);}};function createHeaders(_0x53660d){const _0x3b778d={_0x104dfc:0x59e,_0x277dde:0x721,_0x287b4b:0x643,_0x59df00:0x66c,_0x14dbb7:0x6af},_0x339d68={_0x75de44:0x25};function _0xe6dccd(_0x4b20f6,_0x44e2de,_0x3738c4,_0x2da2b5){return _0x54ac71(_0x4b20f6-0x19c,_0x44e2de,_0x4b20f6-0x247,_0x2da2b5-0x1a7);}const _0x885475=new Headers();for(const [_0x305781,_0x1d6b48]of Object[_0x468521(0x62f,_0x3b778d._0x104dfc,0x4d4,0x608)](_0x53660d)){_0x885475[_0xe6dccd(_0x3b778d._0x277dde,_0x3b778d._0x287b4b,_0x3b778d._0x59df00,_0x3b778d._0x14dbb7)](_0x305781,_0x1d6b48);}function _0x468521(_0x515fdb,_0x2ada10,_0x4c9876,_0xc9e57c){return _0x5276b1(_0x4c9876,_0x2ada10-_0x339d68._0x75de44,_0x4c9876-0x33,_0x2ada10-0x650);}return _0x885475;}async function fetchRawResponse(_0x33137b){const _0x3c0d70={_0x396afd:0x27e,_0x108987:0x5a3,_0x184c1d:0x217,_0x220f80:0x2a6,_0x1e4dac:0x251,_0x1363c8:0x187,_0x5bfaa8:0x133,_0x28e922:0x1ee,_0x223b70:0x134},_0xc0b600={_0x54d052:0xba},_0x149fd8=_0x33137b[_0x36edae(0x2b9,_0x3c0d70._0x396afd,0x227,0x2a4)]??globalThis['fetch'];function _0x50a4c2(_0x5cbdb7,_0x35b351,_0x2945ee,_0x595f14){return _0x5276b1(_0x35b351,_0x35b351-0xe3,_0x2945ee-0x82,_0x5cbdb7-0x5f3);}function _0x36edae(_0x27469c,_0x2436b2,_0x553e81,_0x2606df){return _0x54ac71(_0x27469c-0x190,_0x27469c,_0x553e81- -0x1a3,_0x2606df-_0xc0b600._0x54d052);}return _0x149fd8(_0x33137b[_0x50a4c2(_0x3c0d70._0x108987,0x5f5,0x558,0x4d4)],{'method':_0x36edae(_0x3c0d70._0x184c1d,0x24c,0x2c8,0x38e),'headers':createHeaders(_0x33137b[_0x36edae(0x274,0xf7,0x1ba,0x224)]),'body':JSON['stringify'](_0x33137b[_0x36edae(_0x3c0d70._0x220f80,0x1ed,0x21c,_0x3c0d70._0x1e4dac)]),'signal':_0x33137b[_0x36edae(_0x3c0d70._0x1363c8,_0x3c0d70._0x5bfaa8,_0x3c0d70._0x28e922,_0x3c0d70._0x223b70)]});}async function fetchJsonResponse(_0x2a42fc){const _0x219ae0={_0x3e0170:0xeb,_0x17b00f:0x14d,_0x5da527:0x5b,_0x2064fd:0x274,_0xdea348:0x3e4,_0x110833:0x2f5,_0x67d548:0x19e,_0x51d2ef:0x1dd,_0x14d923:0x358,_0x3f1226:0x293,_0x1c365c:0x22b,_0x2e9496:0x188,_0x4c592f:0x20c,_0x284c9d:0x115},_0x281273={_0x14de0a:0x123,_0x3d2e73:0xb,_0x223275:0x252},_0x299642={_0x2c3a1b:0x8d},_0x2da48c=await fetchRawResponse(_0x2a42fc);if(!_0x2da48c['ok']){const _0x2adf4b=await _0x2da48c[_0x22b3ad(0x18a,0x118,_0x219ae0._0x3e0170,_0x219ae0._0x17b00f)](),_0x4bda27=_0x2adf4b[_0x22b3ad(-0xc6,-_0x219ae0._0x5da527,0x3c,-0x4b)]()||_0x2da48c['statusText']||_0x53db68(_0x219ae0._0x2064fd,_0x219ae0._0xdea348,0x279,_0x219ae0._0x110833);throw new Error(_0x53db68(_0x219ae0._0x67d548,_0x219ae0._0x51d2ef,_0x219ae0._0x14d923,_0x219ae0._0x3f1226)+_0x2da48c[_0x53db68(0x177,_0x219ae0._0x1c365c,0x12e,_0x219ae0._0x2e9496)]+':\x20'+_0x4bda27);}function _0x22b3ad(_0x5d84d2,_0x223c15,_0x1dbca1,_0x4193dd){return _0x5276b1(_0x4193dd,_0x223c15-0x1ca,_0x1dbca1-0x101,_0x223c15-_0x299642._0x2c3a1b);}function _0x53db68(_0x146456,_0x6f92f0,_0x12c839,_0x4dcfb4){return _0x5276b1(_0x12c839,_0x6f92f0-_0x281273._0x14de0a,_0x12c839-_0x281273._0x3d2e73,_0x4dcfb4-_0x281273._0x223275);}return await _0x2da48c[_0x53db68(0x223,_0x219ae0._0x4c592f,_0x219ae0._0x284c9d,0x18a)]();}function findLastMessage(_0x523a5a,_0x577ac9){const _0x256d95={_0x57423d:0x32b,_0x2a93dd:0x294,_0x2ea0c8:0x27a,_0x43d18f:0x2a7,_0x4db4fb:0x23d},_0x1a305f={_0x475f25:0x1b3},_0x4ccd03={_0x116e9b:0x153,_0x2b966a:0x12a};function _0x21b6d7(_0x2f3ef6,_0x53b4d3,_0xe51f6,_0x5124ff){return _0x5276b1(_0x5124ff,_0x53b4d3-_0x4ccd03._0x116e9b,_0xe51f6-_0x4ccd03._0x2b966a,_0x53b4d3-0x5ba);}for(let _0x4b67ec=_0x523a5a[_0x6dc25(_0x256d95._0x57423d,_0x256d95._0x2a93dd,0x35e,0x36d)]-0x1;_0x4b67ec>=0x0;_0x4b67ec-=0x1){if(_0x523a5a[_0x4b67ec][_0x6dc25(0x283,_0x256d95._0x2ea0c8,_0x256d95._0x43d18f,_0x256d95._0x4db4fb)]===_0x577ac9)return _0x523a5a[_0x4b67ec];}function _0x6dc25(_0x49ca1a,_0x170c1e,_0x5dbb78,_0x21b306){return _0x5276b1(_0x5dbb78,_0x170c1e-0x113,_0x5dbb78-0xc6,_0x170c1e-_0x1a305f._0x475f25);}return void 0x0;}function hasTool(_0x5240b3,_0x5ddf8e){const _0x5303ba={_0x5c7c43:0x3ef,_0x378472:0x412,_0x12014f:0x4b4},_0x506206={_0x2b0bba:0x15f,_0xfd5d22:0x3eb},_0x1c1993={_0x488001:0x72,_0x2a3f7b:0x1a6};function _0x181c85(_0x2d0db6,_0x21f82c,_0x402b97,_0x329848){return _0x54ac71(_0x2d0db6-_0x1c1993._0x488001,_0x329848,_0x402b97- -0x3d,_0x329848-_0x1c1993._0x2a3f7b);}function _0x2aed90(_0x52c42d,_0x57e15c,_0x26d9a5,_0x18fa10){return _0x5276b1(_0x26d9a5,_0x57e15c-_0x506206._0x2b0bba,_0x26d9a5-0x1b7,_0x52c42d-_0x506206._0xfd5d22);}return _0x5240b3[_0x2aed90(_0x5303ba._0x5c7c43,0x4e1,0x4e4,_0x5303ba._0x378472)][_0x2aed90(0x4cb,_0x5303ba._0x378472,_0x5303ba._0x12014f,0x590)](_0x4f1f23=>_0x4f1f23[_0x2aed90(0x32a,0x31d,0x327,0x3fd)]===_0x5ddf8e);}function createMockResponse(_0x2a9b52,_0x2126d2,_0x4a8995,_0x4186bb){return{'id':_0x2a9b52,'content':_0x2126d2,'stopReason':_0x4a8995,'usage':_0x4186bb};}var MockModel=class{['model'];[_0x54ac71(0x30c,0x3bf,0x395,0x41a)];[_0x5276b1(-0x2d,-0xc0,-0xea,-0xf9)];[_0x5276b1(0xce,0x170,0x141,0x92)]=[];[_0x5276b1(-0x21,-0xc8,-0x19,-0x9)];constructor(_0x7f1f13={}){const _0x5a7489={_0x11b016:0x760,_0x407a73:0x681,_0x372fcc:0x602,_0x1fb6a2:0x506,_0x3e6524:0x771,_0x19be08:0x5aa,_0x1d6a33:0x5d5,_0x2784:0x4c2,_0x45f022:0x5bc,_0x48df73:0x621,_0x1e1865:0x5bd},_0x6ea519={_0x5357b3:0x19c},_0x123640={_0x4c6a08:0x1bc,_0x43aa76:0x22d};function _0x1f2f88(_0x2f5a2a,_0x16a819,_0x5fffe1,_0x5bb062){return _0x54ac71(_0x2f5a2a-_0x123640._0x4c6a08,_0x2f5a2a,_0x5fffe1-_0x123640._0x43aa76,_0x5bb062-0x154);}this['model']=_0x7f1f13[_0xc1da10(_0x5a7489._0x11b016,_0x5a7489._0x407a73,0x6c3,_0x5a7489._0x372fcc)]??_0xc1da10(0x574,_0x5a7489._0x1fb6a2,0x52d,0x53e),this[_0x1f2f88(0x586,0x53a,0x5c2,0x60e)]=_0x7f1f13['modelIdentity']??modelIdentityFromParts(void 0x0,this[_0xc1da10(0x751,0x681,0x5ee,_0x5a7489._0x3e6524)]),this['maxTokens']=_0x7f1f13[_0x1f2f88(_0x5a7489._0x19be08,_0x5a7489._0x1d6a33,0x531,_0x5a7489._0x2784)];function _0xc1da10(_0x363434,_0x1065f4,_0x57611d,_0x518f1f){return _0x54ac71(_0x363434-0x1c6,_0x57611d,_0x1065f4-_0x6ea519._0x5357b3,_0x518f1f-0x85);}this['reasoning']=_0x7f1f13['reasoning']?structuredClone(_0x7f1f13[_0x1f2f88(0x5d8,_0x5a7489._0x45f022,_0x5a7489._0x48df73,_0x5a7489._0x1e1865)]):void 0x0;}async[_0x54ac71(0x45e,0x2cf,0x3ab,0x3b9)](_0xa56081,_0xeafbbf){const _0x564b65={_0x273fae:0xe9,_0x4cdb67:0x513,_0x4b89db:0x4a9,_0x1effcd:0x433,_0x3ba5bf:0x53c,_0x3c17dc:0x579,_0x2dc236:0x468,_0xd66595:0x618,_0xce90c2:0x573,_0x2c376d:0x569,_0x131433:0x610,_0x1f00b9:0x9c,_0x1c9944:0xb9,_0x3b0806:0x15,_0x23e256:0x594,_0x45a537:0x561,_0x24a9a8:0x4b7,_0x41cf8c:0xd1,_0x4912ac:0x6d,_0x417581:0x1ad,_0xaa1f48:0x140,_0x2f5a7a:0x4b5,_0x24a10b:0x67,_0x1906c8:0x1ae,_0xe66ab6:0x1ea},_0x54718d={_0x258646:0x94},_0x19e78f={_0x42d856:0xe1,_0x456600:0xb5,_0x334097:0x1d4},_0x14ea1d={...structuredClone(_0xa56081),..._0xa56081[_0x279ca7(_0x564b65._0x273fae,0x5a,0x81,0xa5)]===void 0x0&&this[_0x4b93e2(_0x564b65._0x4cdb67,0x4ba,_0x564b65._0x4b89db,_0x564b65._0x1effcd)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};this[_0x4b93e2(_0x564b65._0x3ba5bf,0x456,0x544,_0x564b65._0x3c17dc)]['push'](_0x14ea1d);const _0x277034=findLastMessage(_0x14ea1d['messages'],'user'),_0x57191c=getToolResultBlocks(_0x277034);function _0x4b93e2(_0x5558c6,_0xf11c71,_0x469217,_0x49145b){return _0x54ac71(_0x5558c6-_0x19e78f._0x42d856,_0xf11c71,_0x469217-_0x19e78f._0x456600,_0x49145b-_0x19e78f._0x334097);}const _0x205ad8=_0x4b93e2(0x492,_0x564b65._0x2dc236,0x3bd,0x416)+this[_0x4b93e2(0x5c4,0x457,0x544,0x56f)]['length'];if(_0x57191c[_0x4b93e2(_0x564b65._0xd66595,0x4e1,0x593,_0x564b65._0xce90c2)]>0x0)return createMockResponse(_0x205ad8,[{'type':_0x4b93e2(0x4ae,_0x564b65._0x2c376d,0x53d,_0x564b65._0x131433),'text':_0x279ca7(-0x2e,-_0x564b65._0x1f00b9,-_0x564b65._0x1c9944,_0x564b65._0x3b0806)+_0x57191c[0x0][_0x4b93e2(0x61a,_0x564b65._0x23e256,_0x564b65._0x45a537,0x581)]}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});const _0x342555=getTextFromMessage(_0x277034);if(/list .*files|workspace/i['test'](_0x342555)&&hasTool(_0x14ea1d,_0x4b93e2(0x401,_0x564b65._0x24a9a8,0x447,0x38f)))return createMockResponse(_0x205ad8,[{'type':'tool_use','id':_0x279ca7(-_0x564b65._0x41cf8c,-0xf5,0x1,-0x3c)+this[_0x279ca7(_0x564b65._0x4912ac,0xfc,_0x564b65._0x417581,_0x564b65._0xaa1f48)][_0x4b93e2(_0x564b65._0x2f5a7a,0x665,0x593,0x60a)],'name':'Bash','input':{'command':_0x279ca7(_0x564b65._0x24a10b,_0x564b65._0x1906c8,_0x564b65._0xe66ab6,0x112)}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});function _0x279ca7(_0x2d65fd,_0x1442c9,_0xfe5ca6,_0x247fa2){return _0x5276b1(_0xfe5ca6,_0x1442c9-_0x54718d._0x258646,_0xfe5ca6-0x9d,_0x247fa2-0xae);}return createMockResponse(_0x205ad8,[{'type':'text','text':'Direct\x20answer:\x20'+_0x342555}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x3de658,_0x85362f){const _0x298fc4={_0x5ea8f1:0x29a,_0x4574b1:0x172,_0x312c42:0x16f,_0x8835ee:0x326,_0x431f93:0x2c4,_0x2dbbe8:0x3f7},_0x1dfdea={_0x2732b8:0xf7,_0x109b5a:0x362};function _0xcb0c6e(_0x3c82d5,_0x3993ec,_0xaa9ca4,_0x5b1701){return _0x5276b1(_0x3c82d5,_0x3993ec-0x5b,_0xaa9ca4-0x1b0,_0x5b1701-0x22b);}const _0x404a89=getModelProfile(_0x3de658,_0x85362f);if(!_0x404a89?.[_0xcb0c6e(0x295,_0x298fc4._0x5ea8f1,0x166,0x245)]&&!_0x404a89?.['maxOutput'])return void 0x0;function _0x44266b(_0x4546e9,_0x34e831,_0x25623a,_0x2b5a33){return _0x5276b1(_0x25623a,_0x34e831-_0x1dfdea._0x2732b8,_0x25623a-0x26,_0x4546e9-_0x1dfdea._0x109b5a);}return{..._0x404a89['contextWindow']?{'contextWindow':_0x404a89['contextWindow']}:{},..._0x404a89[_0xcb0c6e(_0x298fc4._0x4574b1,0x1a9,_0x298fc4._0x312c42,0x1ef)]?{'maxOutput':_0x404a89[_0x44266b(_0x298fc4._0x8835ee,_0x298fc4._0x431f93,0x2a1,_0x298fc4._0x2dbbe8)]}:{}};}function _0x25f2(){const _0x312e34=['y29Kzq','BgLTAxrZ','Dg9VBenHBgXZ','DxnLCI12AxnPyMXL','wgLHB21P','CMvZCg9UC2vjza','C3vYzMfJzq','CMvZB2X2zq','DgHLBG','B3bLBMfPlxjLC3bVBNnLCW','zMv0y2HjBxbS','qw50AhjVCgLJ','z2v0tw9KzwXZ','Dg9bCgLfCNjVCG','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','ywrHChrPDMu','oNjLyxnVBMLUzZOW','CgfYDgLHBf9QC29U','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','z2v0uMv0CNLezwXHEu1Z','Bw9KzwXZ','y2fWywjSzv9LBMrWB2LUDhm','ChjVDMLKzxjFCMv0CNK','BwfW','CgfYC2u','z2L0AhvI','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','CM91DgvY','Dg9VBf91C2vFzgvSDge','BwvZC2fNzxm','CMvZzxq','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','BwvZC2fNzuLK','CMvHC29UAw5N','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','zgLZywjSzwq','yw50AhjVCgLJ','Aw5KzxG','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','mtbjvwHgDMq','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','t3bLBLjVDxrLCG','w0rptKvD','C2L6zq','Ahr0Chm6lY9JAgf0z3b0lMnVBs9IywnRzw5KlwfWAs9JB2rLEa','zxzLBNq6','Dg9VBhm','qMvHCMvYia','CMvMDxnHBa','D3nZoG','ChjVBxb0x3rVA2vUCW','C3rYzwfTshr0Cfn1CMzHy2u','yxv0BW','v2vIu29JA2v0','Ec1HCgKTA2v5','yxbWBhLnB2rLBerLzMf1BhrZ','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','twLUAu1HEc1nmW','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','AxngAw5PDgu','C3vTBwfYEuj5sw5KzxG','ChjVDMLKzxi','B3v0Chv0x2LUzgv4','Aw1Hz2u','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','y3jLzgvUDgLHBa','y29TCgXLDgvtDxjMywnL','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','y29UDgv4DfDPBMrVDW','zgvLChnLzwSTDJqTChjV','l21VzgvSCW','z2XTltuUmq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','zgvZy3jPChrPB24','l3yXl21LC3nHz2vZ','r3jVAYaOEc5HAsK','y2HHDgnTCgWT','ntG3ndi5mxLwqKLpzG','y2fWywjPBgL0AwvZ','C3rYzwfT','yw50AhjVCgLJlw1LC3nHz2vZ','z2XTltqUnq','zg9Uzq','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','C3rYAwn0','y2HHDenVBxbSzxrL','D2vIu29JA2v0rMfJDg9YEq','y2HHDfn0CMvHBq','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','CMvHC29UAw5NsxrLBxm','C3vWCg9YDgvKrw5KCg9PBNrZ','CMvZB2X2zxi','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','C2vZC2LVBG','DhjHBNnWB3j0','C2vUzfjHD1jLCxvLC3q','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','AM9PBG','ChjVDg9JB2W','DMLZAwjPBgL0Eq','C3rHCNrZv2L0Aa','zgvMyxvSDe1VzgvSCW','DxnLC1jLC3bVBNnLC0fWAq','l3jLC3bVBNnLCW','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','y2fSBeLKvg9pDxrWDxrjBMrLEa','C2vZC2LVBI10B2TLBG','zgvSDge','z2XTltqUnG','C3vWCg9YDgvKx2vUzhbVAw50CW','ywrK','Dg9VBfvZzvn0yxj0rw1PDhrLza','ChvZAa','AxrLBq','CgvUzgLUzW','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','DxnHz2u','Dg9tDhjPBMC','CMvZCg9UC2uUzMfPBgvK','CMvWBgfJzq','CMvHC29UAw5Nx3rLEhq','BgfZDfjLC3bVBNnLswq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','zgvLChnLzwSTDJqTzMXHC2G','B3bLBKfPrgvSzwDHDgu','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','Bwf4x291Dhb1Df90B2TLBNm','C2nOzw1H','zw5Kx3r1CM4','yxn5BMnjDgvYyxrVCG','Aw50zxjSzwf2zwq','C3vTBwfYEq','zNjVBuvUDhjPzxm','y2XHDwrLlxnVBM5LDc00lJu','CMvZCg9UC2vtB2nRzxrtDhjLyw0','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','DxnLCG','C2vUzfDPDgHszxrYAwvZ','z3b0ltu','BhmGlwXH','B3bLBMfPl2DWDc00BW','zwzMB3j0','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','Bwf4','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','ChjLDMLVDxnszxnWB25ZzuLK','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','zw5JCNLWDgvKx2nVBNrLBNq','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','ue9tva','ywDLBNq','yxnZAxn0yw50','zgvJB2rL','Bw9KzwXZqMfZzvvYBa','B21PDhrLza','C3rYzwfTvMLHuM91DgvY','BwvZC2fNzuLUzgv4','C3vTBwfYEv9PBMrLEa','B3bLBMfP','zMLUAxnO','yMXVy2TZ','ChjLCgfYzunOyxrszxf1zxn0','z3b0ltuUna','Ahr0Cc1ZC2u','yw50AhjVCgLJrgvSzwDHDgu','Aw52ywXPzgf0zq','B2jQzwn0','Bw9KzwXfBMrWB2LUDenHy2HL','zwrPDg9YvMvYC2LVBG','ChjVBxb0q2fJAgvlzxLszxnVBhzLCG','AxneB25L','yxbPlwTLEq','mtaZofHIC3b5AG','zNjVBq','yMvHCMvY','C3vTBwfYEv90zxH0','y2HVAwnLCW','t3bLBKfjiefqssbLCNjVCIa','Dgv4Da','BwvKAwfFDhLWzq','BwfWqxbPrxjYB3i','Aw5WDxrkC29U','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','y29UDgvUDf9IBg9JA19ZDgfYDa','A2v5CW','CMvXDwvZDhm','CMvXDwvZDe11Dgf0B3jZ','A2LUza','Aw5JBhvKzxm','C3LZDgvT','ntqZotG2z0PWsgzJ','DhLWzq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','z2v0u3vYzMfJzq','ndu2ota3wuTWDNbl','nhjIueDRCG','C291CMnL','zMLUywXszxnWB25Zzq','y3jLyxrLuMvXDwvZDa','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','zwrPDg9YugX1z2LUvMvYC2LVBG','y29TCgXLDgvwAwfsB3v0zxi','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','z2v0qw50AhjVCgLJrgvSzwDHDgu','C2vUza','zw5KCg9PBNrZ','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','yNvPBgrqyxj0AwfSt3v0Chv0','zM9Yy2vgDwXSuMvWBgf5','ChjVDMLKzxjZ','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','AgfZ','BxnNlq','C3rYAw5NAwz5','y29UDgvUDa','z2v0t3bLBKfPrgvSzwDHDgu','y3jLyxrLsgvHzgvYCW','C2LNBMf0DxjLx2rLBhrH','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','B3bLBG','Dg9VBf91C2vFAwq','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Ahr0Cf9ZDgf0Dxm','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','D2vIC29JA2v0','zxzLBNq','C3vTBwfYAxPLza','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','r0vu','B3v0Chv0sw5KzxG','yxv0AfnJAgvTzq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','y2XPrgvMyxvSDe1VzgvS','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','CM9Szq','CMvHC29UAw5Nx2rLDgfPBhm','CMvHC29UAw5Nx2nVBNrLBNq','ywjVCNq','wI5bsq','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Aw5WDxrFDg9Rzw5Z','u3vYzMfJzsa','C3vWCg9YDhnnB2rLBezLDgnO','zMLSDgvY','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','B3v0Chv0x3rVA2vUCW','y29UC3vTzvnZzuv2zw50','Dg9mB3DLCKnHC2u','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','z2L0AhvIqxbPvxjS','y2HHDgnTCgW','CMvZCg9UC2uUy29TCgXLDgvK','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','C2LNBMf0DxjL','C2v0','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','y29TCgXLDgvwAwftDxjMywnL','C29Tzq','BgvUz3rO','Bwv0ywrHDge','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','BM93','zxjYB3i','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','ywnJzxnZvg9Rzw4','Bw9KzwW','ywnJzxb0','B3bLBMfPl2DWDc00BY1TAw5P','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','C3rVCfjLyxnVBG','CMvHza','Aw5JBhvKzunVBNrLBNruExbL','yw50AhjVCgLJqMfZzvvYBa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','Bwf4vg9Rzw5Z','C29YDa','Ahr0Cc1QC29U','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','yxnZAxn0yw50lq','Aw5WDxrFDgv4Da','DMfSDwu','B3v0Chv0sw5KzxHuB0nHBgXjza','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','y29UDgvUDc10ExbL','yw50AhjVCgLJx3rOAw5RAw5N','DhjPBvn0yxj0','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','CMvZCg9UC2vtDhjLyw0','Aw5PDgLHBev2zw50','Dg9VBc1JywXSlq','rgvLCfnLzwS','DhjPBq','yw50AhjVCgLJsgvHzgvYuMvZB2X2zxi','CMvHC29UAw5Nx3rVA2vUCW','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','B3v0Chv0','yxjNDw1LBNrZ','CMvZCg9UC2u','mZi3mtuZnxPxtwXHsa','y3jLyxrLu3rYzwfTugfYC2vY','A2v5','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','Bwv0Ag9K','y2fJAgvK','zgf0yq','B3v0Chv0rM9YBwf0','C3rYzwfTx2vYCM9Y','y2f0y2G','CMvZB2X2zujHC2vvCMW','y29UDgvUDf9IBg9JAW','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','DMfSDwvZ','m2n0u3b4zW','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','Dgv4Df9KzwX0yq','DNnJB2rLlZeUmta0lJi','C3rYDwn0DxjLzf9VDxrWDxq','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','zgvMyxvSDe1VzgvS','C3rHDhvZ','Bwf4x3rVA2vUCW','ANnVBG','mJaYmY0WnI0Wmq','Dg9VBa','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','Dgv4DfbHCNrZ','mJaYns0Xmc0Wmq','DgvSzw1LDhj5','BMfTzq','z3jVAY1IDwLSzc0WlJe','z3jVAY1JB2rLlwzHC3qTmq','yMfZzvvYBa','y2XVC2u','ChjVBxb0q2fJAgvlzxK','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','o2jHC2u2ncW','C3rYzwfTu3vYzMfJzq','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','B3v0Chv0x3rLEhq','AxnbCNjHEq','l2nOyxqVy29TCgXLDgLVBNm','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','BNvTyMvY','zw50CMLLCW','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','zw5HyMXLza','Aw5KzxHpzG','Dg9VBf9JywXSCW','CMvHC29U','y29UDgv4Df9Szw5NDgG','C2vZC2LVBK1HBMfNzxi','C2XPy2u','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','y29UBMvJDgLUzW','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','DNnJB2rLlZeUmta2lJe','CMvZCg9UC2vtB2nRzxq','C3vYzMfJzxm','ywrKrxzLBNrmAxn0zw5LCG','Dg9VBenHBgXZqNLjBMrLEa','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','AgvHzgvYCW','q2HHDeDqvcaVienVzgv4','CMvZCg9UC2vuzxH0ugfYDhm','ANnVBL9Zy2HLBwe','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','yxbP','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','mZaWEgn1ANL5','Dg9Rzw4','zgvSzxrL','z2XTltqUnW','Bg9JA2vK','Bw9JAW','zw5JCNLWDgvKq29UDgvUDa','B3v0Chv0vg9Rzw5Z','CMvKywn0zwrFDgHPBMTPBMC','ChjVDMLKzxjbzgfWDgvY','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','yMfZzty0','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','DxrMltG','yxbWBgLJyxrPB24VANnVBG','yxv0Ag9YAxPHDgLVBG','Dgv4Dej5sw5KzxG','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','CMvXDwvZDa','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','y2fSBf9Pza','y2XHDwrLlxnVBM5LDc00','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','zNvUy3rPB24','Dgv4Dc9LDMvUDc1ZDhjLyw0','C3rYzwfTvMLHu3vYzMfJzq','y29UC3vTzvDLyLnVy2TLDev2zw50','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','CMvZB2X2zunYzwrLBNrPywW','z3jVAY00lJm','D3m6','y2HHDenVBxbSzxrPB25Zugf0Aa','z2v0uMvHzgvY','zgLZCgXHEq','mteXmJqWm0fhsu1bsq','yNvKz2v0vg9Rzw5Z','ChjVDMLKzxjtDgf0zq','CMvHC29UAw5NugfYDhm','z2v0','Dg9VBf91C2u','C3bSAwnL','C2LNBMfS','qMfZAa','DgHPBMTPBMC','ywjVCNrLza','Bw9KzwXjzgvUDgL0Eq','B3jPz2LUlxrYywnRzxi','C29JA2v0','D2fPDezVCLjLDhj5','ChjVDg9JB2XwzxjZAw9U','zMLUAxnOx3jLyxnVBG','t1bftG','mtG3mZLyENv6ueS','Aw5WDxq','z3b0ltrV','Cgf0Aa','y29TCgXLDgvK','C3rVCf9YzwfZB24','C2vZC2LVBKLK','y2fJAgvszwfKsw5WDxruB2TLBNm','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','yxbPs2v5','y29UC3vTzuv2zw50','C3rHDhvZvgv4Da','BgfIzwW','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','C2HVDwXKuMv0CNLszxnWB25Zzq','y29TCgXLDgu','y29TCgXLDgLVBL90B2TLBNm','DxjS','CMvZCg9UC2vZugf0Aa','Aw5WDxruB2TLBNm','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','ntq2ndu1mLHYuxHOza','CMvTB3zLrxzLBNrmAxn0zw5LCG','twLUAu1HEa','B3bLBMfPx3jLyxnVBMLUzW','B3bLBMfPlxjLC3bVBNnLCY13CW','Aw5WDxrFC2nOzw1H','y29UDgvUDf9KzwX0yq','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Bw9Kzq','y29UDgvUDf9PBMrLEa','BwvZC2fNzq','y29UDgvUDf9IBg9JA19KzwX0yq','CMvHzhLtDgf0zq','yM9KEq','Dg9VBenHBgXpCMrLCG','Bwf4t3v0Chv0','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','C3bSAxq','zNvUy3rPB25Fy2fSBa','BwLTBY12mI41lxbYBW','AxrLBv9Pza','C3rYAw5N','CMv0CNLHyMXL','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','zMv0y2G','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','Aw5WDxrFANnVBL9KzwX0yq','AgvHzgvYuMvZB2X2zxi','CgfYC2vszxnWB25Zzq','Aw1Hz2vFDxjS','zgf0ytO'];_0x25f2=function(){return _0x312e34;};return _0x25f2();}function normalizeModelInfo(_0x783339,_0x3440e2){const _0x1475a9={_0x594910:0x9a,_0x2a872d:0x4d,_0x116a33:0x13c,_0x298329:0xd7,_0x35f8cc:0x206,_0x595a07:0x125,_0x22b9b7:0x1d3,_0x298aa2:0x19,_0x5f4d5c:0x22,_0x39ee85:0x10a,_0x2f8c20:0x1e,_0x46df43:0x53f,_0x307867:0x5ce,_0x5064e7:0x42f,_0x4ad448:0x3f3,_0x22e0f5:0x69,_0xcac2d5:0x73,_0x27af08:0x494,_0x4373a2:0x413,_0x49c171:0x56a,_0x304217:0x579},_0xa839d={_0x341b8d:0xe3,_0x5da229:0xac,_0x1c240c:0x104},_0x3a916a={_0x5275d2:0x158,_0x34aadb:0x64},_0x1d2b12=typeof _0x3440e2['id']===_0xee177b(-0x71,-0x2b,-_0x1475a9._0x594910,_0x1475a9._0x2a872d)?_0x3440e2['id']:'',_0x5e388b=typeof _0x3440e2['name']===_0xee177b(-_0x1475a9._0x116a33,0x32,-0x9a,-_0x1475a9._0x298329)?_0x3440e2[_0xee177b(-0x1b6,-_0x1475a9._0x35f8cc,-_0x1475a9._0x595a07,-_0x1475a9._0x22b9b7)]:_0x1d2b12,_0x298e7d=normalizeModelLimits(_0x783339,_0x3440e2)??getFallbackModelLimits(_0x783339,_0x1d2b12);function _0xee177b(_0x4bf65e,_0x17a406,_0x1adf3b,_0x5bc517){return _0x5276b1(_0x17a406,_0x17a406-0x1b5,_0x1adf3b-_0x3a916a._0x5275d2,_0x1adf3b- -_0x3a916a._0x34aadb);}function _0xcda7b1(_0x3c1e4a,_0x5477a,_0x164100,_0x2a8414){return _0x54ac71(_0x3c1e4a-_0xa839d._0x341b8d,_0x164100,_0x5477a-_0xa839d._0x5da229,_0x2a8414-_0xa839d._0x1c240c);}const _0x141a37=Array['isArray'](_0x3440e2[_0xee177b(-0x4b,-_0x1475a9._0x298aa2,-0x1e,-_0x1475a9._0x5f4d5c)])?_0x3440e2[_0xee177b(-_0x1475a9._0x39ee85,0x72,-_0x1475a9._0x2f8c20,-0xe5)][_0xcda7b1(0x642,0x579,_0x1475a9._0x46df43,_0x1475a9._0x307867)](_0x63e280=>typeof _0x63e280===_0xcda7b1(0x4af,0x473,0x443,0x518)):Array[_0xcda7b1(_0x1475a9._0x5064e7,_0x1475a9._0x4ad448,0x38b,0x3f1)](_0x3440e2[_0xee177b(-_0x1475a9._0x22e0f5,-0x106,-0x79,_0x1475a9._0xcac2d5)])?_0x3440e2[_0xcda7b1(0x49d,_0x1475a9._0x27af08,_0x1475a9._0x4373a2,_0x1475a9._0x49c171)][_0xcda7b1(0x5cf,_0x1475a9._0x304217,0x4d8,0x4dc)](_0xe4893e=>typeof _0xe4893e==='string'):void 0x0;return{'id':_0x1d2b12,'name':_0x5e388b,..._0x298e7d?{'limits':_0x298e7d}:{},..._0x141a37?{'supportedEndpoints':_0x141a37}:{}};}function normalizeModelLimits(_0x3126ed,_0x250b5e){const _0xd4281d={_0x179cc5:0x45d,_0xbb5e06:0x4e1,_0x1ac597:0x446,_0x32d587:0x52e,_0x5d02e4:0x45b,_0x29dd93:0x507,_0x4418a5:0x501,_0x2603e7:0x42b,_0xd4432a:0x461,_0x1e23a9:0x411,_0x17efd9:0x564,_0x58371c:0x4b6,_0x1e7797:0x3d5,_0x4d7385:0x422,_0x273f41:0x42f,_0x383fc7:0x44c,_0x676a2f:0x41c,_0x200c98:0x477,_0x1f3731:0x4b4,_0x53b164:0x4ae,_0x358ced:0x628,_0x3cdd23:0x62c,_0x57d251:0x45d,_0x420fe8:0x520,_0x470705:0x4c9,_0x15a41d:0x4df,_0xbb0bb0:0x577,_0x1d95ec:0x481,_0x3ea291:0x4b2,_0x4ee18f:0x35c,_0x11b313:0x3fa,_0x3c1812:0x3dc,_0x8af065:0x3e5,_0x1c94e9:0x3ef,_0x15ebf0:0x50f,_0x1f708e:0x47a,_0x2d13eb:0x38a,_0x532590:0x43c,_0x46b773:0x481,_0x14e721:0x4dd,_0xcbb4dc:0x4f7,_0x376a58:0x3bf,_0x2a436d:0x475,_0x206f88:0x426,_0x1e1eba:0x548,_0x456503:0x4db,_0x221f94:0x4a4,_0x2c0f41:0x460,_0x4e698b:0x545,_0x865370:0x3b7},_0x412772={_0x4e0120:0x3,_0x5d19a3:0x488},_0x1e2224={_0x2d3fe3:0x1d7};if(_0x250b5e[_0x37cc33(_0xd4281d._0x179cc5,_0xd4281d._0xbb5e06,_0xd4281d._0x1ac597,_0xd4281d._0x32d587)]&&typeof _0x250b5e[_0x37cc33(0x45d,_0xd4281d._0x5d02e4,0x393,0x402)]===_0x37cc33(_0xd4281d._0x29dd93,_0xd4281d._0x4418a5,_0xd4281d._0x2603e7,0x5ba)){const _0x15e306=_0x250b5e[_0x543946(0x502,_0xd4281d._0xd4432a,_0xd4281d._0x1e23a9,0x4a6)];if(typeof _0x15e306[_0x543946(0x547,_0xd4281d._0x17efd9,0x5bd,_0xd4281d._0x58371c)]===_0x37cc33(_0xd4281d._0x1e7797,0x48d,0x380,0x4a4))return{'contextWindow':_0x15e306[_0x543946(0x547,0x4a6,0x5f1,0x51f)],...typeof _0x15e306[_0x37cc33(0x44c,_0xd4281d._0x4d7385,0x439,_0xd4281d._0x273f41)]==='number'?{'maxOutput':_0x15e306[_0x37cc33(_0xd4281d._0x383fc7,0x4f5,0x363,_0xd4281d._0x676a2f)]}:{}};}if(_0x3126ed['toLowerCase']()===_0x37cc33(_0xd4281d._0x200c98,_0xd4281d._0x1f3731,0x471,_0xd4281d._0x53b164)){const _0x1e3d57=_0x250b5e[_0x543946(0x552,_0xd4281d._0x358ced,0x56e,_0xd4281d._0x3cdd23)],_0x25c8de=_0x1e3d57?.[_0x37cc33(_0xd4281d._0x57d251,_0xd4281d._0x420fe8,0x498,_0xd4281d._0x470705)];if(typeof _0x25c8de?.['max_context_window_tokens']==='number')return{'contextWindow':_0x25c8de[_0x37cc33(0x4e8,0x452,0x44f,0x516)],...typeof _0x25c8de[_0x37cc33(_0xd4281d._0x15a41d,0x4cd,0x58c,_0xd4281d._0xbb0bb0)]===_0x543946(0x47a,0x39f,0x4af,0x422)?{'maxOutput':_0x25c8de['max_output_tokens']}:{}};}const _0x59699c=_0x250b5e[_0x543946(0x60f,0x570,0x59a,0x59c)],_0x5cb2f6=_0x250b5e['top_provider'];function _0x543946(_0x466f52,_0x2b5a18,_0x54fb33,_0x424604){return _0x5276b1(_0x54fb33,_0x2b5a18-0x127,_0x54fb33-_0x1e2224._0x2d3fe3,_0x466f52-0x52d);}const _0xec1942=typeof _0x250b5e[_0x543946(_0xd4281d._0x1d95ec,0x391,0x4b5,_0xd4281d._0x3ea291)]===_0x37cc33(0x3d5,_0xd4281d._0x4ee18f,_0xd4281d._0x11b313,0x2ec)?_0x250b5e['context_length']:typeof _0x59699c?.[_0x37cc33(_0xd4281d._0x3c1812,0x367,_0xd4281d._0x8af065,0x474)]==='number'?_0x59699c['context_length']:typeof _0x5cb2f6?.[_0x543946(0x481,_0xd4281d._0x1c94e9,0x3a3,_0xd4281d._0x15ebf0)]===_0x543946(_0xd4281d._0x1f708e,0x3b3,_0xd4281d._0x2d13eb,_0xd4281d._0x532590)?_0x5cb2f6[_0x543946(_0xd4281d._0x46b773,_0xd4281d._0x14e721,_0xd4281d._0xcbb4dc,0x4bb)]:void 0x0;function _0x37cc33(_0x22ed5a,_0x4530eb,_0x46db43,_0x315bfa){return _0x5276b1(_0x315bfa,_0x4530eb-0x14a,_0x46db43-_0x412772._0x4e0120,_0x22ed5a-_0x412772._0x5d19a3);}if(_0xec1942===void 0x0)return void 0x0;return{'contextWindow':_0xec1942,...typeof _0x59699c?.[_0x37cc33(_0xd4281d._0x376a58,0x418,0x3e7,_0xd4281d._0x2a436d)]===_0x37cc33(0x3d5,0x39c,_0xd4281d._0x206f88,0x379)?{'maxOutput':_0x59699c[_0x543946(0x464,_0xd4281d._0x1e1eba,0x4b6,0x3a6)]}:typeof _0x5cb2f6?.[_0x543946(0x4a8,_0xd4281d._0x456503,_0xd4281d._0x221f94,_0xd4281d._0x14e721)]==='number'?{'maxOutput':_0x5cb2f6[_0x543946(0x4a8,_0xd4281d._0x2c0f41,_0xd4281d._0x4e698b,_0xd4281d._0x865370)]}:{}};}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,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerFromSurface,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};