@nuvin/agent-core 0.1.0-rc.2 → 0.1.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/agent/topic-reminder-extension.d.ts +2 -2
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-FKZ3QQWZ.js +1 -0
- package/dist/chunk-NHBKADBW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +1 -0
- package/dist/tools/ask-user-tool.d.ts +1 -1
- package/dist/tools/bash-tool.d.ts +13 -2
- package/dist/tools/file-edit-tool.d.ts +5 -0
- package/dist/tools/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-55OPA5TR.js +0 -1
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1e2fac,_0x401de4){const _0x576139={_0x13efcd:0x27c,_0xc47af8:0x24e,_0x422288:0x241,_0x5eb846:0x432,_0x816cfa:0x2c2,_0x4b21e7:0x3b8,_0x3fd5f3:0x2d7,_0x2da365:0x191,_0x4072fd:0x209,_0x26da0b:0x310,_0x80821f:0x329,_0x2b1f1f:0x42c,_0x20c6f9:0x416,_0x567592:0x11b,_0x17110a:0xe5,_0x2d0de0:0x34f,_0x161a9a:0x487,_0x556300:0x3e6},_0x37f768={_0x1a8f2d:0xa7},_0x5b4fdb=_0x1e2fac();function _0x1afde5(_0x4c36b7,_0x5cc3d1,_0x48e072,_0x171956){return _0x5ba7(_0x171956-_0x37f768._0x1a8f2d,_0x5cc3d1);}function _0x384792(_0x10c32a,_0x18a36a,_0x5ac999,_0x2ee1a7){return _0x5ba7(_0x2ee1a7-0x23a,_0x5ac999);}while(!![]){try{const _0x1d71ea=parseInt(_0x1afde5(_0x576139._0x13efcd,_0x576139._0xc47af8,_0x576139._0x422288,0x1ca))/0x1+parseInt(_0x384792(0x432,0x2d0,_0x576139._0x5eb846,0x369))/0x2+-parseInt(_0x1afde5(0x223,0x268,0x1e4,0x191))/0x3*(parseInt(_0x1afde5(0x2d9,_0x576139._0x816cfa,_0x576139._0x4b21e7,_0x576139._0x3fd5f3))/0x4)+-parseInt(_0x1afde5(_0x576139._0x2da365,0x1d5,_0x576139._0x4072fd,0x26b))/0x5*(parseInt(_0x1afde5(0x372,_0x576139._0x26da0b,0x275,_0x576139._0x80821f))/0x6)+-parseInt(_0x384792(0x4c8,0x38d,0x45e,0x46c))/0x7+parseInt(_0x384792(0x38e,_0x576139._0x2b1f1f,0x35a,_0x576139._0x20c6f9))/0x8*(parseInt(_0x1afde5(_0x576139._0x567592,_0x576139._0x17110a,0x9b,0x178))/0x9)+parseInt(_0x384792(0x3cd,_0x576139._0x2d0de0,0x4db,0x3ef))/0xa*(parseInt(_0x384792(_0x576139._0x161a9a,0x3b6,0x4b0,_0x576139._0x556300))/0xb);if(_0x1d71ea===_0x401de4)break;else _0x5b4fdb['push'](_0x5b4fdb['shift']());}catch(_0x358638){_0x5b4fdb['push'](_0x5b4fdb['shift']());}}}(_0x15fa,0x33246));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';function _0x2d9e9f(_0x2d3527,_0x255724,_0x5397c2,_0xfb86a4){const _0x3a5571={_0x25e2cf:0x21b};return _0x5ba7(_0x5397c2-_0x3a5571._0x25e2cf,_0x255724);}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(_0x25a203){const _0x5b2d4a={_0x2df142:0x1c3,_0xe191ab:0x335,_0x4fa71e:0x2a3,_0x326286:0x21f},_0x54e62b={_0x29396e:0x38b};function _0x12e257(_0x4fa25a,_0x306b4e,_0x4d698b,_0xae46a5){return _0x5ba7(_0x4d698b- -_0x54e62b._0x29396e,_0xae46a5);}function _0x57c031(_0x3e82b9,_0x59b738,_0x159a16,_0x350b7a){return _0x5ba7(_0x59b738- -0xf8,_0x350b7a);}super(_0x25a203),this[_0x12e257(-_0x5b2d4a._0x2df142,-0x32e,-0x26c,-_0x5b2d4a._0xe191ab)]=_0x12e257(-0x2aa,-_0x5b2d4a._0x4fa71e,-_0x5b2d4a._0x326286,-0x135);}},ProviderStreamEventError=class extends Error{['code'];[_0x1818aa(0x8b,0x12b,0x140,0x6f)];[_0x2d9e9f(0x3b3,0x380,0x447,0x48b)];constructor(_0x3522dc,_0x22af66={}){const _0x5b0546={_0x367bea:0x1a3,_0x519d8f:0x118,_0x2db545:0x25c,_0x58772c:0x22c,_0x22a585:0x369,_0x5c8585:0x23d,_0x2d2e85:0x138,_0x46d7ea:0x26b,_0x3ee768:0x299},_0x21adda={_0x33ac92:0x6b,_0x25c31c:0x1dc},_0x374295={_0x3a3723:0x392};super(_0x3522dc);function _0x353741(_0x230a94,_0x1efc0d,_0x18bb23,_0x1988c2){return _0x2d9e9f(_0x230a94-0x198,_0x1efc0d,_0x18bb23- -_0x374295._0x3a3723,_0x1988c2-0x12b);}this['name']=_0x353741(_0x5b0546._0x367bea,0x146,_0x5b0546._0x519d8f,0x1de),this['code']=_0x22af66[_0x478f23(_0x5b0546._0x2db545,_0x5b0546._0x58772c,0x2d3,_0x5b0546._0x22a585)];function _0x478f23(_0x43f2bb,_0x1c07ba,_0x325460,_0x151137){return _0x2d9e9f(_0x43f2bb-_0x21adda._0x33ac92,_0x43f2bb,_0x325460- -_0x21adda._0x25c31c,_0x151137-0xa5);}this[_0x478f23(_0x5b0546._0x5c8585,0x303,0x266,0x314)]=_0x22af66[_0x353741(0x0,0x5d,0xb0,0x2a)]??!![],this[_0x353741(0xb9,_0x5b0546._0x2d2e85,0xb5,0x121)]=_0x22af66[_0x478f23(0x187,0x2cf,_0x5b0546._0x46d7ea,_0x5b0546._0x3ee768)];}};function isRetryableProviderStreamEventError(_0x56eb4e){const _0x3f73ac={_0x4842b8:0xa9,_0x2ba218:0xdf},_0xf4d620={_0x153e2e:0x147};function _0x15c75a(_0x52b454,_0x233405,_0x1d1598,_0x23805){return _0x1818aa(_0x52b454-_0xf4d620._0x153e2e,_0x52b454,_0x1d1598-0x129,_0x23805-0x70);}return _0x56eb4e instanceof ProviderStreamEventError&&_0x56eb4e[_0x15c75a(_0x3f73ac._0x4842b8,0x1bb,0xfe,_0x3f73ac._0x2ba218)];}var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE='anthropic-messages-stream';function parseToolInput(_0x339c36){try{return JSON['parse'](_0x339c36);}catch{return _0x339c36;}}function resolveReasoningVisibility(_0x25b787){const _0x300f05={_0x3d50aa:0x139,_0x489c41:0x289,_0x3aa236:0x129,_0x149cc0:0x1db};function _0x3bb689(_0x545d7a,_0x1605d3,_0x3db96d,_0x55d4e3){return _0x2d9e9f(_0x545d7a-0x141,_0x55d4e3,_0x545d7a- -0x521,_0x55d4e3-0x1cc);}function _0x15b339(_0xacbc47,_0x2178e7,_0x912a94,_0x94d5f){return _0x1818aa(_0xacbc47-0x7c,_0x94d5f,_0x912a94-0x10e,_0x912a94- -0x1b5);}return _0x25b787[_0x3bb689(-0x206,-_0x300f05._0x3d50aa,-0x218,-0x2ae)]?.[_0x15b339(-0x1ec,-_0x300f05._0x489c41,-0x213,-_0x300f05._0x3aa236)]??_0x15b339(-0x1a3,-0x2b7,-_0x300f05._0x149cc0,-0x261);}function isUserVisibleThinking(_0x4fdb7e){const _0x41b56b={_0x367d9d:0xf0,_0x398890:0x83,_0x3a6f55:0x2a,_0x3c7749:0x29,_0x1149e3:0x13b,_0x585b93:0x12a,_0x2f6520:0x1d2,_0x4797c8:0x448,_0x3f5232:0x2ca,_0x4e41e3:0x303,_0x50bd97:0x93,_0x20a534:0x68,_0x1be07c:0x70},_0x23f94f={_0x46b94c:0x15c,_0x183235:0x345,_0xc6928a:0xa0},_0x21d2aa={_0xba5686:0x19};function _0x48d457(_0x509f53,_0x45d233,_0x451acf,_0x1e8918){return _0x2d9e9f(_0x509f53-_0x21d2aa._0xba5686,_0x1e8918,_0x45d233-0x5f,_0x1e8918-0x13f);}function _0x30dc8e(_0x47c7ce,_0x2d5ec0,_0xc04849,_0x3add26){return _0x2d9e9f(_0x47c7ce-_0x23f94f._0x46b94c,_0x2d5ec0,_0xc04849- -_0x23f94f._0x183235,_0x3add26-_0x23f94f._0xc6928a);}const _0x18346a=resolveAnthropicThinkingConfig(_0x4fdb7e[_0x30dc8e(-_0x41b56b._0x367d9d,_0x41b56b._0x398890,-_0x41b56b._0x3a6f55,_0x41b56b._0x3c7749)]);return _0x18346a!==void 0x0&&_0x18346a[_0x30dc8e(_0x41b56b._0x1149e3,0x165,_0x41b56b._0x585b93,_0x41b56b._0x2f6520)]!==_0x48d457(_0x41b56b._0x4797c8,0x371,_0x41b56b._0x3f5232,_0x41b56b._0x4e41e3)&&resolveReasoningVisibility(_0x4fdb7e)===_0x30dc8e(_0x41b56b._0x50bd97,0x26,_0x41b56b._0x20a534,-_0x41b56b._0x1be07c);}function createAnthropicThinkingBody(_0x5ae987){const _0x233031={_0x233bc:0x184,_0x12d78f:0x5b9,_0x54d4c3:0x60a,_0x57d618:0x1a4,_0x252239:0x177,_0x1cc10d:0x5ee,_0x508536:0x4f0,_0x41d1b8:0x482,_0x366975:0x49b,_0x54e689:0x580,_0x26facc:0x666,_0xb90ef9:0x58b,_0x1a883e:0x54f,_0x41d789:0x21a,_0x2987a1:0x257,_0x34bee7:0x255,_0x267257:0x3d8,_0x3c0d3c:0x3c2,_0x12e404:0x2e2,_0x3792d0:0x4f0,_0x5d7fdf:0x4a8,_0x27f277:0x52c,_0x33dcae:0x562,_0x38e730:0x2b5,_0x1d3148:0x1d1,_0x3f8d2d:0x2c0},_0x43fc8f={_0xc2f12:0xe0},_0x472b6b={_0x3b32c4:0x174};function _0x1d8f74(_0x557ba7,_0x3fcab0,_0x3a65e5,_0x3d1ba5){return _0x2d9e9f(_0x557ba7-0x28,_0x3a65e5,_0x557ba7- -0x197,_0x3d1ba5-_0x472b6b._0x3b32c4);}const _0x28019f=resolveAnthropicThinkingConfig(_0x5ae987[_0x1d8f74(_0x233031._0x233bc,0x147,0xe0,0x12c)]);if(!_0x28019f||_0x28019f[_0x5d5c1f(0x639,_0x233031._0x12d78f,0x54f,_0x233031._0x54d4c3)]===_0x1d8f74(0x17b,_0x233031._0x57d618,_0x233031._0x252239,0x247))return{};const _0x1a44e1=_0x28019f[_0x5d5c1f(_0x233031._0x1cc10d,0x47e,0x523,_0x233031._0x508536)]??(isUserVisibleThinking(_0x5ae987)?'summarized':_0x5d5c1f(0x5f9,0x51b,0x536,_0x233031._0x41d1b8)),_0x50341d=_0x28019f[_0x5d5c1f(_0x233031._0x366975,0x574,_0x233031._0x54e689,_0x233031._0x26facc)]?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;if(_0x28019f[_0x5d5c1f(0x59d,_0x233031._0xb90ef9,_0x233031._0x1a883e,0x4f0)]===_0x1d8f74(_0x233031._0x41d789,0x217,_0x233031._0x2987a1,0x23b))return{..._0x50341d?{'headers':_0x50341d}:{},'thinking':{'type':_0x1d8f74(0x21a,0x196,0x278,_0x233031._0x34bee7),'budget_tokens':_0x28019f[_0x5d5c1f(0x459,_0x233031._0x267257,_0x233031._0x3c0d3c,_0x233031._0x12e404)],'display':_0x1a44e1}};function _0x5d5c1f(_0x31124c,_0x8d0709,_0x4d917c,_0x10f622){return _0x2d9e9f(_0x31124c-0x1b2,_0x10f622,_0x4d917c-_0x43fc8f._0xc2f12,_0x10f622-0xc7);}return{..._0x50341d?{'headers':_0x50341d}:{},'thinking':{'type':'adaptive',..._0x28019f[_0x5d5c1f(_0x233031._0x3792d0,_0x233031._0x5d7fdf,_0x233031._0x27f277,_0x233031._0x33dcae)]?{'effort':_0x28019f[_0x1d8f74(_0x233031._0x38e730,_0x233031._0x1d3148,_0x233031._0x3f8d2d,0x24f)]}:{},'display':_0x1a44e1}};}function toAnthropicRequestContent(_0x387bf4){const _0x37ed23={_0x2d5647:0x12e,_0x206951:0xaa,_0x5c0bfa:0x1a1,_0x5ee409:0x3a1,_0x2cd8d7:0x3e8,_0x4331a2:0xfe,_0x1caece:0x36c,_0x7eaeff:0x3e8,_0x431d14:0x1d,_0x35574d:0x45f,_0x184ffa:0x658,_0x1f550e:0x63c,_0x1f88f3:0x56c,_0x31fbe5:0x41c,_0x1e0d5a:0x61d,_0x3d7fe9:0x1c5,_0x438ffe:0x1b5,_0x30c9ab:0x1b7,_0x217379:0x26d,_0x53f567:0x1b5,_0x22dad:0x150,_0x470a45:0x103,_0x1a4ed7:0x6a,_0x1678c2:0x532,_0x325555:0x176,_0x259123:0x28f,_0x650853:0x74,_0x2c6758:0xc5,_0x52adaf:0x6a,_0xde656f:0x425,_0xd6c8b6:0x51b},_0x5e2374={_0x37d6c9:0x4a},_0x2e475b={_0x5e141d:0x37,_0x5ce2e0:0xf7,_0x5a3b5e:0x4d0};if(_0x387bf4[_0x5edbbf(0xcd,_0x37ed23._0x2d5647,_0x37ed23._0x206951,_0x37ed23._0x5c0bfa)]==='assistant'&&_0x387bf4[_0x2659da(0x437,_0x37ed23._0x5ee409,0x43b,_0x37ed23._0x2cd8d7)]?.[_0x5edbbf(0xbb,0x25,0x11c,_0x37ed23._0x4331a2)])return structuredClone(_0x387bf4[_0x2659da(_0x37ed23._0x1caece,0x3c4,0x331,_0x37ed23._0x7eaeff)][_0x5edbbf(0xbb,-0x13,_0x37ed23._0x431d14,0x2)]);const _0x4b8f05=[];function _0x2659da(_0x1cc3a1,_0x5f34e6,_0x322bea,_0x3d1efa){return _0x1818aa(_0x1cc3a1-_0x2e475b._0x5e141d,_0x322bea,_0x322bea-_0x2e475b._0x5ce2e0,_0x3d1efa-_0x2e475b._0x5a3b5e);}function _0x5edbbf(_0x444608,_0xafdad6,_0x33cce5,_0x5bca91){return _0x2d9e9f(_0x444608-_0x5e2374._0x37d6c9,_0x5bca91,_0x444608- -0x2cd,_0x5bca91-0xf7);}for(const _0x5262aa of normalizeContent(_0x387bf4[_0x2659da(_0x37ed23._0x35574d,0x5e4,0x594,0x50e)])){if(_0x5262aa[_0x2659da(0x4f4,_0x37ed23._0x184ffa,_0x37ed23._0x1f550e,_0x37ed23._0x1f88f3)]===_0x2659da(0x476,_0x37ed23._0x31fbe5,0x4c0,0x4e4))continue;if(_0x5262aa['type']===_0x2659da(0x5f0,0x4ee,_0x37ed23._0x1e0d5a,0x530)){_0x4b8f05[_0x5edbbf(_0x37ed23._0x3d7fe9,0x176,0x13b,0x1d6)]({'type':_0x5edbbf(_0x37ed23._0x438ffe,0x1f6,_0x37ed23._0x30c9ab,_0x37ed23._0x217379),'thinking':_0x5262aa[_0x5edbbf(_0x37ed23._0x53f567,_0x37ed23._0x22dad,0x1fb,_0x37ed23._0x470a45)],'signature':_0x5262aa[_0x5edbbf(0x12,-_0x37ed23._0x1a4ed7,-0x9e,0x1f)]});continue;}if(_0x5262aa['type']===_0x2659da(0x44b,0x5c4,0x500,_0x37ed23._0x1678c2)){_0x4b8f05[_0x5edbbf(_0x37ed23._0x3d7fe9,_0x37ed23._0x325555,0x1ed,_0x37ed23._0x259123)]({'type':_0x5edbbf(_0x37ed23._0x650853,_0x37ed23._0x2c6758,0x9b,-_0x37ed23._0x52adaf),'data':_0x5262aa[_0x2659da(0x532,_0x37ed23._0xde656f,_0x37ed23._0xd6c8b6,0x4b2)]});continue;}_0x4b8f05['push'](structuredClone(_0x5262aa));}return _0x4b8f05;}function createAnthropicRequest(_0xc76e0,_0x133319){const _0x51592a={_0x3ee5cd:0x2d9,_0x3c482b:0x2d4,_0x14139c:0x1ec,_0xfba133:0x265,_0x2c46c8:0x4cc,_0x2e364b:0x526,_0x1d8643:0x337,_0x120366:0x1c2,_0x631252:0x247,_0x5e33f1:0x35b,_0xafde0a:0x31a,_0x2150ba:0x2de},_0x598217={_0x7e5929:0x397},_0x238d6d={_0x399bcc:0x181,_0x4291b4:0xc3,_0x151df1:0x120},_0x5bed3e=toProviderModelRequest(_0xc76e0);function _0x19e894(_0x229759,_0x258292,_0x2e20be,_0x435b5b){return _0x1818aa(_0x229759-_0x238d6d._0x399bcc,_0x435b5b,_0x2e20be-_0x238d6d._0x4291b4,_0x258292-_0x238d6d._0x151df1);}function _0x4316dc(_0x19d1c2,_0x46674f,_0x3959ab,_0x3504e7){return _0x1818aa(_0x19d1c2-0xd3,_0x3959ab,_0x3959ab-0x1e2,_0x46674f-_0x598217._0x7e5929);}const _0x1bf95e=createAnthropicThinkingBody(_0xc76e0);return{'accept':_0x133319?_0x4316dc(_0x51592a._0x3ee5cd,0x303,0x322,_0x51592a._0x3c482b):_0x4316dc(0x21e,0x2a8,0x1bb,0x2b0),'body':{..._0x5bed3e,'messages':_0xc76e0[_0x4316dc(0x54c,0x468,0x487,0x3d0)]['map'](_0x24aa0b=>{return{'role':_0x24aa0b['role'],'content':toAnthropicRequestContent(_0x24aa0b)};}),..._0x1bf95e[_0x19e894(0x262,0x1cf,0x17e,_0x51592a._0x14139c)]?{'thinking':_0x1bf95e[_0x19e894(0x22d,0x1cf,_0x51592a._0xfba133,0x296)]}:{},..._0x133319?{'stream':!![]}:{},..._0xc76e0[_0x4316dc(_0x51592a._0x2c46c8,0x439,_0x51592a._0x2e364b,0x37c)]?{'output_config':{'format':{'type':_0x4316dc(0x312,_0x51592a._0x1d8643,0x2f7,0x2ed),'schema':_0xc76e0[_0x19e894(0x118,_0x51592a._0x120366,_0x51592a._0x631252,0x15b)][_0x4316dc(_0x51592a._0x5e33f1,0x2ea,0x206,_0x51592a._0xafde0a)]}}}:{}},..._0x1bf95e[_0x4316dc(0x276,0x2e0,_0x51592a._0x2150ba,0x33d)]?{'headers':_0x1bf95e[_0x4316dc(0x246,0x2e0,0x346,0x2db)]}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x24b4e3,_0x4eee25){const _0x36e817={_0x37f9fa:0x515,_0x24072f:0x105,_0x5ed957:0x15e,_0x743dac:0xf3,_0x3acf9e:0x141,_0x238d57:0xce,_0x26eacc:0x166,_0x14790f:0xe9,_0x58c394:0x354,_0x4559c4:0x43d,_0x2d0c19:0x3f8,_0x90c2ab:0x100,_0x4fadae:0x25a,_0xd3cf4c:0x481,_0x104094:0x376,_0x26d227:0x482,_0xd29dd5:0x406,_0x11bf59:0x43f,_0xb167e3:0x40a,_0x2da4f5:0x441,_0xf52a9d:0x9,_0x12082a:0xdf,_0x547f06:0x4a5,_0x52fc50:0x464,_0x5e3091:0x3f2,_0x267b61:0x3c0,_0x528f2c:0xd7,_0x229c10:0x1b8,_0x29c891:0x19b,_0x4ad07f:0x137,_0x509ba8:0x10c,_0x37ba82:0x3ea,_0x8d95c3:0x347,_0x597f78:0xa0,_0x2f0058:0x273,_0x574cb4:0x170,_0x3e8f6b:0x12d,_0x400b94:0x33e,_0x5e120d:0x3de,_0x50f854:0x28a,_0x4ef959:0x11b,_0x1956e6:0x31,_0x3aa241:0x1da,_0x14b8d9:0x408,_0x3c38c6:0x437,_0x117c01:0x47b,_0xbf341a:0x51c,_0x2fb814:0x362,_0x371065:0x289,_0x149eb5:0x437,_0x5f579e:0x2cb,_0x447977:0x17d,_0x436d43:0x166,_0x574149:0x163,_0x156477:0x154,_0xe6894c:0x126,_0x1b5861:0x172,_0x380f00:0xda},_0x13554b={_0xeed2cd:0x142},_0x539fd9={_0x4d90a4:0xab,_0x4f4a4c:0x13},_0x18cdc0=[],_0x2c086d=_0x24b4e3['content']??[];function _0x5f1d8e(_0x241f16,_0x12f224,_0x432a79,_0x5f253d){return _0x2d9e9f(_0x241f16-_0x539fd9._0x4d90a4,_0x432a79,_0x241f16-_0x539fd9._0x4f4a4c,_0x5f253d-0x1f2);}let _0x2fbd1b=![];for(const _0x233931 of _0x2c086d){if(_0x233931[_0x5f1d8e(0x482,0x4cd,_0x36e817._0x37f9fa,0x4bf)]==='thinking'){_0x2fbd1b=!![];isUserVisibleThinking(_0x4eee25)&&_0x18cdc0[_0x340d8b(0x189,_0x36e817._0x24072f,_0x36e817._0x5ed957,_0x36e817._0x743dac)]({'type':'anthropic_thinking','thinking':_0x233931[_0x340d8b(0x179,_0x36e817._0x3acf9e,0x123,_0x36e817._0x238d57)],'signature':_0x233931['signature']});continue;}if(_0x233931[_0x340d8b(_0x36e817._0x26eacc,0xc2,_0x36e817._0x14790f,0x1f8)]===_0x5f1d8e(_0x36e817._0x58c394,_0x36e817._0x4559c4,_0x36e817._0x2d0c19,0x293)){_0x2fbd1b=!![];isUserVisibleThinking(_0x4eee25)&&_0x18cdc0[_0x340d8b(0x189,_0x36e817._0x90c2ab,0x269,_0x36e817._0x4fadae)]({'type':_0x5f1d8e(0x448,_0x36e817._0xd3cf4c,0x4af,_0x36e817._0x104094),'data':_0x233931['data']});continue;}if(_0x233931[_0x5f1d8e(_0x36e817._0x26d227,_0x36e817._0xd29dd5,_0x36e817._0x11bf59,_0x36e817._0xb167e3)]===_0x5f1d8e(0x3f9,0x31a,_0x36e817._0x2da4f5,0x4d7)){_0x233931[_0x340d8b(0xdd,0x147,-_0x36e817._0xf52a9d,_0x36e817._0x12082a)]['length']>0x0&&_0x18cdc0[_0x5f1d8e(_0x36e817._0x547f06,_0x36e817._0x52fc50,0x445,0x4da)](structuredClone(_0x233931));continue;}_0x18cdc0[_0x5f1d8e(_0x36e817._0x547f06,_0x36e817._0x5e3091,_0x36e817._0x267b61,0x4df)](structuredClone(_0x233931));}function _0x340d8b(_0x1e7eb1,_0x1b64a5,_0x45fb51,_0x531efc){return _0x1818aa(_0x1e7eb1-_0x13554b._0xeed2cd,_0x45fb51,_0x45fb51-0x16f,_0x1e7eb1-0xca);}return{'id':_0x24b4e3['id']??_0x340d8b(0x11c,_0x36e817._0x528f2c,_0x36e817._0x229c10,_0x36e817._0x29c891)+Date[_0x340d8b(0x148,_0x36e817._0x4ad07f,0xd9,_0x36e817._0x509ba8)](),'content':_0x18cdc0,'stopReason':_0x18cdc0[_0x5f1d8e(0x3bc,0x3b4,0x47e,_0x36e817._0x37ba82)](_0x3c712a=>_0x3c712a[_0x340d8b(0x166,0x115,0x22c,0x130)]===_0x340d8b(0x39,-0x55,-0x68,-0x3a))?_0x5f1d8e(0x355,0x305,0x35d,_0x36e817._0x8d95c3):_0x24b4e3['stop_reason']===_0x340d8b(0x39,-0x9b,-_0x36e817._0x597f78,-0x33)?_0x5f1d8e(0x355,_0x36e817._0x2f0058,0x2f7,0x43d):'end_turn','usage':{'inputTokens':(_0x24b4e3[_0x340d8b(0x11b,0xd8,_0x36e817._0x574cb4,_0x36e817._0x3e8f6b)]?.[_0x5f1d8e(_0x36e817._0x400b94,_0x36e817._0x5e120d,_0x36e817._0x50f854,0x3f2)]??0x0)+(_0x24b4e3[_0x340d8b(_0x36e817._0x4ef959,0x14d,0x109,0xef)]?.[_0x340d8b(0x46,0x0,_0x36e817._0x1956e6,-0x59)]??0x0)+(_0x24b4e3['usage']?.[_0x340d8b(0x126,0xe3,0xd3,_0x36e817._0x3aa241)]??0x0),'outputTokens':_0x24b4e3['usage']?.[_0x5f1d8e(0x412,_0x36e817._0x14b8d9,0x4f4,0x456)]??0x0,..._0x24b4e3[_0x5f1d8e(_0x36e817._0x3c38c6,_0x36e817._0x117c01,_0x36e817._0xbf341a,0x46a)]?.[_0x5f1d8e(_0x36e817._0x2fb814,_0x36e817._0x371065,_0x36e817._0x149eb5,_0x36e817._0x5f579e)]?{'cacheReadInputTokens':_0x24b4e3[_0x340d8b(0x11b,_0x36e817._0x447977,_0x36e817._0x436d43,0x10e)]['cache_read_input_tokens']}:{},..._0x24b4e3[_0x5f1d8e(0x437,0x362,0x3d6,0x494)]?.[_0x340d8b(0x126,0x60,0x51,_0x36e817._0x574149)]?{'cacheCreationInputTokens':_0x24b4e3[_0x340d8b(0x11b,0x8e,0x9f,_0x36e817._0x156477)][_0x340d8b(_0x36e817._0xe6894c,_0x36e817._0x1b5861,0xe0,_0x36e817._0x380f00)]}:{}},..._0x2fbd1b?{'providerState':{'anthropicAssistantContent':structuredClone(_0x2c086d)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();[_0x2d9e9f(0x2b2,0x1ff,0x2d8,0x320)]=0x0;[_0x2d9e9f(0x3ab,0x3a2,0x469,0x3f1)]=0x0;[_0x2d9e9f(0x2e6,0x44f,0x3bb,0x2cf)]=0x0;[_0x1818aa(-0x88,-0xff,-0x105,-0xc3)]='msg-'+Date[_0x2d9e9f(0x377,0x50a,0x451,0x3a6)]();[_0x1818aa(-0x9d,0x89,-0xb2,0x1d)]=0x0;[_0x1818aa(-0x93,0xdc,0xb4,0x1a)];[_0x1818aa(0xbb,0x11c,0x92,0xdd)]=_0x2d9e9f(0x48f,0x3ec,0x47c,0x48a);constructor(_0x413137){const _0x3e9cfd={_0xe67615:0x1f3,_0x573e4e:0x9e};function _0x4ec3cf(_0x9b9809,_0x271f56,_0x467dee,_0x2c53f2){return _0x1818aa(_0x9b9809-0x141,_0x467dee,_0x467dee-0x4c,_0x271f56- -0x19a);}this[_0x4ec3cf(-0xaf,-0x180,-_0x3e9cfd._0xe67615,-_0x3e9cfd._0x573e4e)]=_0x413137;}[_0x1818aa(0x13,0x68,-0xde,-0x49)](_0x2dee05){const _0x47fe72={_0x1bbcaa:0x2d1,_0x121f34:0x33c,_0x5212ff:0x307,_0x42d5b9:0x37a,_0x50cf91:0x396,_0x26b9c0:0x341,_0x4354e0:0x108,_0x4f7f50:0x1bd,_0x2423fc:0x307,_0x30955a:0x27b,_0x2fab5d:0xa1,_0x49e085:0x1b6,_0x43524b:0xfc,_0x5c7d9b:0x1ae,_0x4bf536:0x19b,_0x7549d5:0x12c,_0x36460a:0x13e,_0x23b020:0x18b,_0x2e6f27:0xfe,_0xb06cdc:0xbf,_0x303f84:0x1ec,_0x2aa5e8:0x26e,_0xe10b0b:0x1d2,_0xb708c4:0x24b,_0xc448bc:0x268,_0x4b6127:0x1e4,_0x3b14c4:0x10b,_0x56e600:0xf1,_0x3dcf68:0x360,_0x5338d8:0x348,_0x3a1fce:0x223,_0x31f9d5:0x253,_0x788faf:0x297,_0x31d46e:0x33d,_0x5b650d:0x37b,_0x475541:0x350,_0x2c93bb:0x18f,_0x4d3cd1:0x9f,_0x421052:0x303,_0x58f8e3:0x3c1,_0x403666:0x3c6,_0x318e8a:0x151,_0x3a10fd:0x110,_0xbd197f:0x24c,_0x13221b:0x273,_0x4b948f:0x1e9,_0x840b19:0x32c,_0x33fd55:0x275,_0x25611c:0x3e7,_0x3be03b:0x35d,_0x5f0c41:0x2a6,_0x361505:0xdb,_0x57b728:0x2c2,_0x35bc77:0x24e,_0x237946:0x208,_0xfbe48:0xaa,_0x2e8f71:0x1eb,_0x936955:0x2bf,_0x5ee296:0x277,_0x1f9a44:0x228,_0x5cc589:0x288,_0x5d96df:0x200,_0x577a09:0x162,_0x51c788:0x1ce,_0x1bfab9:0x2ea,_0x3f550a:0x36b,_0x4cefda:0x290,_0x4a9319:0x321,_0x2d5ce9:0x2fd,_0x1a3a2a:0x204,_0x286cca:0x1df,_0x54c00a:0x145,_0x383748:0x17e,_0x6c2a82:0x38a,_0x18b0e8:0x134,_0x5d26d7:0x1b1,_0x3a26ef:0x21e,_0x291737:0x353,_0x402532:0x403,_0x56c1e1:0x282,_0x4aa759:0x2ed,_0x4fbf04:0x364,_0x490552:0x340,_0x397028:0x294,_0x2c7744:0x3e5,_0x7d6514:0x1ec,_0x395de4:0xd0,_0x51fc13:0x1bb,_0x267204:0x161,_0x19042a:0x215,_0x587d42:0x176,_0xc65b97:0x13a,_0x1f6091:0x289,_0x326fd3:0x311,_0x35d5a1:0x2ca,_0x58e2cb:0x316,_0x567946:0x1e6,_0x3eb57d:0x300,_0x2f9eaa:0x216,_0x578d0c:0x159,_0x5a0214:0x261,_0x26e6b2:0x1ff,_0x7aa326:0x2bd,_0x4fb5eb:0x26f,_0x4544a6:0x32b,_0x1440c9:0x2f6,_0x5ba38d:0x2e1,_0x5ea628:0x20a,_0xc58277:0x1bb,_0x13607e:0x289,_0x3cba9b:0x202,_0x560a65:0x251,_0xc5208f:0x213,_0x4ecb7:0x3d3,_0x11b994:0x20f,_0x5926fa:0x156,_0x19ab9e:0x16b,_0x339875:0x1ad,_0x240322:0x295,_0x27a445:0x23c,_0x268a06:0x2aa,_0x49b78c:0x200,_0x4b0e54:0x27b,_0xaa25b2:0x30b,_0x5e65c9:0x28d,_0x1d2161:0x1be,_0x398a7e:0x2e8,_0x568b93:0x2c9,_0xe31831:0x184,_0x521a87:0x1c6,_0x153447:0x1fd,_0x55d2c1:0xe6,_0x45d168:0x1be,_0x5ada5d:0x356,_0x4dc82d:0x42c,_0x264bdf:0x27f,_0x3d6e08:0x32b,_0x5d98f5:0x27e,_0x5cfe44:0x1c2,_0x42f3e9:0x226,_0x4f0c0d:0x2a3,_0xd790d1:0x1cb,_0x44ee97:0x146,_0x250db8:0x287,_0x1497c9:0x2ac,_0x576ad6:0x3e4,_0x31e4bb:0x432,_0x3a1906:0x310,_0x162cdf:0x292,_0x25e49e:0x273,_0x1a3edd:0x31a,_0x29f612:0x2c1,_0x3f4a1e:0x28c,_0x34bfd1:0x22e,_0x5c3d7b:0x11a,_0x11a3fa:0x32e,_0x8cb4ab:0x1a0,_0x3849ed:0x2ef,_0x158498:0x220,_0x4ab0f6:0xa7,_0x593b65:0x30f,_0x9a6433:0x2c1,_0x4d39f3:0x29a,_0x40ed57:0x181,_0x5dd724:0x245,_0x490651:0x1c1,_0x326712:0x1ac,_0x555c22:0x2bf,_0x32c22a:0x1f2,_0x1f55c0:0x28f,_0x27a609:0x36f,_0xe9cfa4:0x31a,_0x2fe038:0x26f,_0x538f6d:0x2a9,_0x28bc9d:0x191,_0x946bf3:0x1ca,_0x4b0e7f:0x1d1,_0x55f39c:0x33d,_0x1e00cd:0x282,_0x48e381:0x2bb,_0x21f647:0x2c4,_0x6ea297:0x397,_0x21b722:0x2ea,_0x236000:0x384,_0x245d53:0x2e0,_0x345653:0x2a0,_0x4cce39:0x1ca,_0x95849d:0x1bd,_0x5da371:0x212,_0x583b40:0x15e,_0x45afee:0x350,_0x29620b:0x26a,_0x8247a0:0x419,_0x421efe:0x1ae,_0x565217:0x133,_0x4244be:0xf4,_0x535dcf:0x2e4,_0x1e33a5:0x26c,_0x30bdee:0x2fc},_0x1df7ca={_0x743e14:0x12c},_0x2da4fb={_0x3d918b:0x95,_0x392ace:0x185,_0x222485:0x1d0};function _0x44091d(_0x393979,_0x1bad43,_0x3c6707,_0x39c806){return _0x2d9e9f(_0x393979-_0x2da4fb._0x3d918b,_0x393979,_0x1bad43- -_0x2da4fb._0x392ace,_0x39c806-_0x2da4fb._0x222485);}const _0x1cd413=_0x2dee05[_0x468802(0x318,_0x47fe72._0x1bbcaa,0x2d3,0x3ff)]('\x0a'),_0x3cffd1=_0x1cd413['find'](_0x30c49e=>_0x30c49e[_0x468802(0x24b,0x29c,0x160,0x29e)](_0x44091d(0x2b3,0x2ed,0x2b2,0x225)))?.['slice'](0x6)[_0x44091d(_0x47fe72._0x121f34,0x2d3,_0x47fe72._0x5212ff,0x2b8)](),_0x22835f=_0x1cd413[_0x468802(_0x47fe72._0x42d5b9,_0x47fe72._0x50cf91,0x2c0,_0x47fe72._0x26b9c0)](_0x2c7a01=>_0x2c7a01[_0x468802(0x24b,0x210,0x2c9,0x28d)](_0x468802(0x359,0x3b9,0x395,0x276)))[_0x468802(0x1d4,0x245,_0x47fe72._0x4354e0,0x231)](_0x69fd8=>_0x69fd8['slice'](0x5)[_0x44091d(0x208,0x1dd,0x22a,0x209)]())['join']('\x0a')['trim']();if(_0x22835f[_0x44091d(_0x47fe72._0x4f7f50,0x273,_0x47fe72._0x2423fc,_0x47fe72._0x30955a)]===0x0||_0x22835f===_0x44091d(0xbd,0x15b,_0x47fe72._0x2fab5d,0x240))return[];const _0x2df84e=JSON['parse'](_0x22835f);function _0x468802(_0x5bb250,_0x220675,_0x2fef44,_0x3473ac){return _0x2d9e9f(_0x5bb250-0x110,_0x2fef44,_0x5bb250- -_0x1df7ca._0x743e14,_0x3473ac-0xd0);}switch(_0x3cffd1){case _0x44091d(0x258,_0x47fe72._0x49e085,_0x47fe72._0x43524b,0xf8):{const _0x3da876=_0x2df84e[_0x468802(_0x47fe72._0x5c7d9b,0x200,_0x47fe72._0x4bf536,_0x47fe72._0x7549d5)];this[_0x44091d(_0x47fe72._0x36460a,_0x47fe72._0x23b020,_0x47fe72._0x2e6f27,_0x47fe72._0xb06cdc)]=_0x3da876?.['id']??this[_0x44091d(_0x47fe72._0x303f84,0x18b,0x1a5,0x1a4)],this[_0x468802(0x28f,0x23e,0x2a5,_0x47fe72._0x2aa5e8)]=_0x3da876?.[_0x44091d(_0x47fe72._0xe10b0b,0x29f,_0x47fe72._0xb708c4,_0x47fe72._0xc448bc)]?.[_0x44091d(_0x47fe72._0x4b6127,0x1a6,_0x47fe72._0x3b14c4,_0x47fe72._0x56e600)]??this['inputTokens'],this['cacheReadInputTokens']=_0x3da876?.[_0x468802(0x2f8,_0x47fe72._0x3dcf68,0x2c1,_0x47fe72._0x5338d8)]?.[_0x468802(_0x47fe72._0x3a1fce,_0x47fe72._0x31f9d5,0x2da,_0x47fe72._0x788faf)]??this[_0x468802(_0x47fe72._0x31d46e,_0x47fe72._0x5b650d,0x323,_0x47fe72._0x475541)],this[_0x44091d(0x158,0x153,_0x47fe72._0x2c93bb,_0x47fe72._0x4d3cd1)]=_0x3da876?.['usage']?.[_0x468802(_0x47fe72._0x421052,_0x47fe72._0x58f8e3,0x30e,_0x47fe72._0x403666)]??this[_0x44091d(_0x47fe72._0x318e8a,0x153,_0x47fe72._0x3a10fd,0xc3)];break;}case'content_block_start':{const _0x26a8fc=typeof _0x2df84e['index']==='number'?_0x2df84e[_0x468802(_0x47fe72._0xbd197f,_0x47fe72._0x13221b,0x30e,_0x47fe72._0x4b948f)]:0x0,_0x29819f=_0x2df84e[_0x468802(0x242,_0x47fe72._0x840b19,_0x47fe72._0x33fd55,0x256)];if(_0x29819f?.[_0x468802(0x343,_0x47fe72._0x25611c,_0x47fe72._0x3be03b,0x3c1)]===_0x44091d(0x1d6,0x1bd,_0x47fe72._0x5f0c41,_0x47fe72._0x361505)&&_0x29819f['id']&&_0x29819f[_0x468802(0x20e,0x1af,0x22a,_0x47fe72._0x57b728)])return this[_0x44091d(0x1e3,0x1bb,_0x47fe72._0x35bc77,_0x47fe72._0x237946)][_0x44091d(_0x47fe72._0xfbe48,0x195,0x1cd,0x1be)](_0x26a8fc,{'id':_0x29819f['id'],'index':_0x26a8fc,'inputJson':JSON[_0x468802(0x275,_0x47fe72._0x2e8f71,_0x47fe72._0x936955,0x2c6)](_0x29819f[_0x44091d(0x274,0x323,_0x47fe72._0x5ee296,0x38d)]??{}),'kind':_0x468802(0x216,_0x47fe72._0x1f9a44,0x16d,0x2d6),'name':_0x29819f[_0x44091d(0x19f,0x1b5,0x1a0,_0x47fe72._0x5cc589)]}),[{'type':'tool_use_delta','id':_0x29819f['id'],'index':_0x26a8fc,'name':_0x29819f[_0x468802(0x20e,_0x47fe72._0x5d96df,_0x47fe72._0x577a09,_0x47fe72._0x51c788)]}];if(_0x29819f?.[_0x44091d(0x277,_0x47fe72._0x1bfab9,_0x47fe72._0x3f550a,_0x47fe72._0x4cefda)]===_0x44091d(_0x47fe72._0x4a9319,_0x47fe72._0x2d5ce9,0x399,0x3d4)){this[_0x44091d(_0x47fe72._0x1a3a2a,0x1bb,0xfb,_0x47fe72._0x286cca)][_0x44091d(0x192,0x195,_0x47fe72._0x54c00a,_0x47fe72._0x383748)](_0x26a8fc,{'index':_0x26a8fc,'kind':'thinking','signature':typeof _0x29819f['signature']===_0x468802(0x364,0x2f5,0x300,_0x47fe72._0x6c2a82)?_0x29819f[_0x468802(0x1b3,_0x47fe72._0x18b0e8,0xfa,_0x47fe72._0x5d26d7)]:'','thinking':typeof _0x29819f[_0x468802(0x2ba,0x328,_0x47fe72._0x3a26ef,_0x47fe72._0x291737)]===_0x468802(0x364,_0x47fe72._0x402532,_0x47fe72._0x56c1e1,0x2f7)?_0x29819f[_0x44091d(_0x47fe72._0x4aa759,0x261,0x317,0x2bb)]:typeof _0x29819f['thinking']===_0x468802(_0x47fe72._0x4fbf04,_0x47fe72._0x490552,_0x47fe72._0x397028,0x2db)?String(_0x29819f[_0x44091d(_0x47fe72._0x2c7744,_0x47fe72._0x2d5ce9,0x2ff,0x34f)]):''});break;}if(_0x29819f?.[_0x468802(0x343,0x2eb,0x32b,0x298)]===_0x468802(0x215,_0x47fe72._0x7d6514,0x1ba,0x248)){this[_0x44091d(_0x47fe72._0x395de4,_0x47fe72._0x51fc13,_0x47fe72._0x267204,0x125)]['set'](_0x26a8fc,{'index':_0x26a8fc,'kind':_0x468802(_0x47fe72._0x19042a,_0x47fe72._0x587d42,_0x47fe72._0xc65b97,0x21c),'data':typeof _0x29819f[_0x468802(_0x47fe72._0x1f6091,0x25d,0x2e1,0x246)]===_0x468802(_0x47fe72._0x4fbf04,_0x47fe72._0x326fd3,_0x47fe72._0x35d5a1,0x2da)?String(_0x29819f[_0x44091d(_0x47fe72._0x58e2cb,0x230,0x24b,0x235)]):''});break;}this[_0x468802(0x214,_0x47fe72._0x567946,0x1f9,_0x47fe72._0x3eb57d)][_0x468802(0x1ee,_0x47fe72._0x2f9eaa,0x13e,_0x47fe72._0x578d0c)](_0x26a8fc,{'index':_0x26a8fc,'kind':_0x44091d(0x200,_0x47fe72._0x5a0214,_0x47fe72._0x26e6b2,0x200),'text':_0x29819f?.['text']??''});break;}case _0x44091d(_0x47fe72._0x7aa326,_0x47fe72._0x4fb5eb,0x20e,_0x47fe72._0x4544a6):{const _0x3f54ac=typeof _0x2df84e['index']==='number'?_0x2df84e[_0x468802(0x24c,0x2d9,_0x47fe72._0x1440c9,_0x47fe72._0x5ba38d)]:0x0,_0x15668c=this[_0x44091d(_0x47fe72._0x5ea628,_0x47fe72._0xc58277,_0x47fe72._0x13607e,_0x47fe72._0x3cba9b)][_0x44091d(0x1c3,_0x47fe72._0x560a65,0x32f,0x2ad)](_0x3f54ac),_0x1b12c9=_0x2df84e[_0x44091d(_0x47fe72._0xc5208f,0x1d5,0x1a0,0x173)];if(!_0x15668c||!_0x1b12c9?.[_0x44091d(_0x47fe72._0x421052,_0x47fe72._0x1bfab9,0x28c,0x3c1)])break;if(_0x1b12c9[_0x44091d(_0x47fe72._0x4ecb7,0x2ea,0x35e,_0x47fe72._0x11b994)]===_0x468802(0x20a,_0x47fe72._0x5926fa,0x2e0,0x230)&&_0x15668c[_0x44091d(0xe6,_0x47fe72._0x19ab9e,_0x47fe72._0x339875,0x96)]===_0x44091d(_0x47fe72._0x240322,0x261,_0x47fe72._0x27a445,_0x47fe72._0x268a06)&&typeof _0x1b12c9[_0x44091d(_0x47fe72._0x31d46e,0x261,_0x47fe72._0x49b78c,_0x47fe72._0x4b0e54)]===_0x44091d(0x333,_0x47fe72._0xaa25b2,0x3ec,0x2ff))return _0x15668c[_0x468802(0x2ba,_0x47fe72._0x5e65c9,_0x47fe72._0x26b9c0,0x343)]+=_0x1b12c9['text'],[{'type':_0x468802(0x284,0x260,_0x47fe72._0x1d2161,_0x47fe72._0x398a7e),'index':_0x3f54ac,'text':_0x1b12c9[_0x468802(0x2ba,_0x47fe72._0x1bbcaa,0x1e2,0x2d2)]}];if(_0x1b12c9[_0x44091d(0x2c0,_0x47fe72._0x1bfab9,_0x47fe72._0x568b93,0x218)]==='input_json_delta'&&_0x15668c[_0x44091d(_0x47fe72._0xe31831,_0x47fe72._0x19ab9e,_0x47fe72._0x521a87,_0x47fe72._0x153447)]===_0x44091d(_0x47fe72._0x55d2c1,_0x47fe72._0x4f7f50,0x10d,_0x47fe72._0x45d168)&&typeof _0x1b12c9['partial_json']===_0x468802(_0x47fe72._0x4fbf04,0x290,_0x47fe72._0x5ada5d,_0x47fe72._0x4dc82d))return _0x15668c[_0x468802(_0x47fe72._0x264bdf,_0x47fe72._0x3d6e08,_0x47fe72._0x5d98f5,_0x47fe72._0x5cfe44)]==='{}'&&(_0x15668c[_0x44091d(0x20c,_0x47fe72._0x42f3e9,0x2d3,_0x47fe72._0x4f0c0d)]=''),_0x15668c[_0x44091d(0x288,0x226,_0x47fe72._0xd790d1,0x28e)]+=_0x1b12c9['partial_json'],[{'type':'tool_use_delta','id':_0x15668c['id'],'index':_0x3f54ac,'inputDelta':_0x1b12c9[_0x44091d(_0x47fe72._0x286cca,_0x47fe72._0x51c788,0x18e,0x219)]}];if(_0x1b12c9['type']==='thinking_delta'&&_0x15668c[_0x44091d(_0x47fe72._0x44ee97,_0x47fe72._0x19ab9e,0xc5,0x140)]===_0x44091d(_0x47fe72._0x250db8,0x2fd,0x30d,_0x47fe72._0x1497c9)){const _0x20ca71=typeof _0x1b12c9[_0x468802(0x356,0x363,_0x47fe72._0x576ad6,_0x47fe72._0x31e4bb)]===_0x44091d(0x291,0x30b,0x2d5,_0x47fe72._0x3a1906)?String(_0x1b12c9[_0x44091d(0x270,0x2fd,_0x47fe72._0x162cdf,0x227)]):'';if(_0x20ca71[_0x44091d(0x27c,_0x47fe72._0x25e49e,_0x47fe72._0x1a3edd,0x323)]>0x0){_0x15668c['thinking']+=_0x20ca71;if(isUserVisibleThinking(this[_0x468802(_0x47fe72._0x29f612,0x2f1,_0x47fe72._0x3f4a1e,0x212)]))return[{'type':'anthropic_thinking_delta','index':_0x3f54ac,'thinking':_0x20ca71}];}}if(_0x1b12c9[_0x44091d(0x21d,_0x47fe72._0x1bfab9,0x2a2,_0x47fe72._0x34bfd1)]==='signature_delta'&&_0x15668c[_0x44091d(_0x47fe72._0x5c3d7b,0x16b,0x188,0x91)]===_0x44091d(_0x47fe72._0x11a3fa,_0x47fe72._0x2d5ce9,0x368,_0x47fe72._0x5ada5d)){const _0x20d0fc=typeof _0x1b12c9[_0x44091d(0x1d0,0x15a,0xb1,_0x47fe72._0x8cb4ab)]===_0x44091d(0x3cc,0x30b,_0x47fe72._0x3849ed,0x2e7)?String(_0x1b12c9[_0x44091d(_0x47fe72._0x158498,0x15a,_0x47fe72._0x4ab0f6,0x159)]):'';if(_0x20d0fc[_0x44091d(0x2e0,0x273,_0x47fe72._0x593b65,0x1e4)]>0x0){_0x15668c['signature']=_0x20d0fc;if(isUserVisibleThinking(this[_0x468802(_0x47fe72._0x9a6433,0x285,0x249,_0x47fe72._0x4d39f3)]))return[{'type':'anthropic_signature_delta','index':_0x3f54ac,'signature':_0x20d0fc}];}}break;}case _0x44091d(_0x47fe72._0x40ed57,0x258,0x2dc,0x271):{const _0x1ece49=_0x2df84e[_0x468802(0x22e,0x200,0x19d,_0x47fe72._0x936955)],_0x49adaf=_0x2df84e['usage'];this[_0x44091d(_0x47fe72._0x5dd724,0x236,_0x47fe72._0x490651,0x236)]=_0x49adaf?.[_0x468802(_0x47fe72._0x26e6b2,_0x47fe72._0x326712,_0x47fe72._0x555c22,_0x47fe72._0x32c22a)]??this[_0x468802(_0x47fe72._0x1f55c0,0x310,_0x47fe72._0x27a609,_0x47fe72._0xe9cfa4)],this[_0x44091d(0x23f,0x2e4,_0x47fe72._0x2fe038,_0x47fe72._0x538f6d)]=_0x49adaf?.[_0x44091d(_0x47fe72._0x28bc9d,_0x47fe72._0x946bf3,_0x47fe72._0x4b0e7f,0x25d)]??this[_0x468802(_0x47fe72._0x55f39c,0x29a,0x2cb,_0x47fe72._0x1e00cd)],this[_0x468802(0x1ac,0x14a,0x144,_0x47fe72._0xe31831)]=_0x49adaf?.[_0x44091d(_0x47fe72._0x48e381,0x2aa,0x288,0x38f)]??this['cacheCreationInputTokens'],this['outputTokens']=_0x49adaf?.['output_tokens']??this[_0x468802(_0x47fe72._0x21f647,0x283,_0x47fe72._0x6ea297,_0x47fe72._0x21b722)],this[_0x44091d(0x3a0,0x32b,_0x47fe72._0x236000,0x284)]=_0x1ece49?.[_0x468802(0x262,_0x47fe72._0x245d53,_0x47fe72._0x345653,_0x47fe72._0x4cce39)]===_0x44091d(0x221,_0x47fe72._0x95849d,0x22d,_0x47fe72._0x5da371)?_0x44091d(0x20e,_0x47fe72._0x4f7f50,0x172,_0x47fe72._0x583b40):_0x468802(_0x47fe72._0x45afee,_0x47fe72._0x21b722,_0x47fe72._0x29620b,_0x47fe72._0x8247a0);break;}case'error':{const _0x4dce05=_0x2df84e['error'];throw new ProviderStreamEventError(_0x4dce05?.[_0x468802(_0x47fe72._0x421efe,_0x47fe72._0x565217,_0x47fe72._0x5926fa,_0x47fe72._0x4244be)]??_0x44091d(_0x47fe72._0x535dcf,0x1fc,0x2ac,_0x47fe72._0x1e33a5),{'code':_0x4dce05?.[_0x468802(0x343,0x3f5,0x41d,_0x47fe72._0x30bdee)],'retryable':!![]});}}return[];}[_0x2d9e9f(0x277,0x3c2,0x2fd,0x262)](){const _0x212344={_0x5e74d9:0x17e,_0x51137a:0x1e0,_0x3a7568:0x178,_0x4ae448:0x204,_0x51fced:0x2e4,_0x15c059:0x3b0,_0x1d930d:0x38e,_0x318254:0x46f,_0x162142:0x27f,_0x1554fc:0x2b8,_0x87950f:0x26e,_0x363ded:0x223,_0x2403e:0x417,_0x2d8270:0x4a1,_0x1411ff:0x410,_0xff9a3b:0x320,_0x2de6ac:0x433,_0x5277f4:0x364,_0x4d34dc:0x2e4,_0x5b856a:0x349,_0x5c72ed:0x26e,_0xc42d6b:0x213,_0x1fd62d:0x400,_0x5a6f0c:0x38c,_0xec995b:0x322,_0x55bdd9:0x38b,_0x459455:0xf2,_0x564b3e:0x17f,_0x1b0fb4:0x1d8,_0x17bbeb:0x190,_0x4ffaa2:0x172,_0x2a4f23:0x22f,_0x5a03ce:0x49d,_0x29de42:0x1de,_0x23f2a1:0x1e1,_0x596671:0x28f,_0x38afd5:0x3a8,_0x5cdef2:0x45e,_0x88a625:0x2f0,_0x26bb06:0x24b,_0x3bb9a5:0x1e4,_0x38851e:0x376,_0x72e28a:0x24b,_0x4b9152:0xfe,_0x5bcb3a:0x1b0,_0x36708e:0x1e1,_0x1cf855:0x1ec,_0x367001:0x306,_0x657d5d:0x156,_0x4e03e4:0x24a},_0x338f65={_0x28c891:0x96},_0x3a008e={_0x17c23:0x11a,_0x3dbb4d:0xf};function _0x1bd03f(_0x16cd10,_0x2de9a8,_0x4eeb9a,_0x2156f){return _0x1818aa(_0x16cd10-_0x3a008e._0x17c23,_0x16cd10,_0x4eeb9a-_0x3a008e._0x3dbb4d,_0x2de9a8-0x273);}const _0x3e8e49=Array[_0x1bd03f(0x1d1,0x2ac,0x262,0x363)](this[_0x1bd03f(_0x212344._0x5e74d9,_0x212344._0x51137a,_0x212344._0x3a7568,0x118)][_0x1bd03f(0x20f,_0x212344._0x4ae448,0x184,_0x212344._0x51fced)]())[_0x4250ef(0x400,_0x212344._0x15c059,_0x212344._0x1d930d,_0x212344._0x318254)]((_0x49a507,_0x1b5208)=>_0x49a507[_0x1bd03f(0x1d3,0x218,0x15c,0x176)]-_0x1b5208[_0x1bd03f(0x2b1,0x218,0x12c,0x2e5)]);function _0x4250ef(_0x1cb924,_0xc0e4f0,_0x33d26a,_0x181863){return _0x2d9e9f(_0x1cb924-_0x338f65._0x28c891,_0xc0e4f0,_0x33d26a- -0x82,_0x181863-0x52);}const _0x4090de=[];for(const _0xfc6fbe of _0x3e8e49){if(_0xfc6fbe[_0x4250ef(_0x212344._0x162142,_0x212344._0x1554fc,_0x212344._0x87950f,0x27b)]===_0x1bd03f(_0x212344._0x363ded,0x286,0x1cf,0x2ee)){_0xfc6fbe['text'][_0x4250ef(0x41c,_0x212344._0x2403e,0x376,0x320)]>0x0&&_0x4090de[_0x4250ef(_0x212344._0x2d8270,0x4ad,_0x212344._0x1411ff,0x4b4)]({'type':'text','text':_0xfc6fbe[_0x4250ef(_0x212344._0xff9a3b,_0x212344._0x2de6ac,_0x212344._0x5277f4,0x2b3)]});continue;}if(_0xfc6fbe[_0x4250ef(_0x212344._0x4d34dc,_0x212344._0x5b856a,_0x212344._0x5c72ed,_0x212344._0xc42d6b)]===_0x4250ef(0x397,0x434,_0x212344._0x1fd62d,0x4af)){_0x4090de[_0x4250ef(0x4b2,0x3dd,0x410,_0x212344._0x5a6f0c)]({'type':_0x1bd03f(0x2de,_0x212344._0xec995b,0x2a9,_0x212344._0x55bdd9),'thinking':_0xfc6fbe['thinking'],'signature':_0xfc6fbe[_0x1bd03f(_0x212344._0x459455,_0x212344._0x564b3e,0x108,0x1d9)]});continue;}if(_0xfc6fbe[_0x1bd03f(_0x212344._0x1b0fb4,_0x212344._0x17bbeb,_0x212344._0x4ffaa2,_0x212344._0x2a4f23)]==='redacted_thinking'){_0x4090de[_0x4250ef(0x43b,0x422,0x410,_0x212344._0x5a03ce)]({'type':_0x1bd03f(_0x212344._0x29de42,_0x212344._0x23f2a1,0x2bb,0x234),'data':_0xfc6fbe[_0x1bd03f(0x20f,0x255,0x177,_0x212344._0x596671)]});continue;}_0x4090de[_0x4250ef(0x37e,_0x212344._0x38afd5,0x410,_0x212344._0x5cdef2)]({'type':'tool_use','id':_0xfc6fbe['id'],'name':_0xfc6fbe[_0x4250ef(_0x212344._0x88a625,0x277,0x2b8,0x32c)],'input':parseToolInput(_0xfc6fbe[_0x1bd03f(0x212,_0x212344._0x26bb06,_0x212344._0x3bb9a5,0x160)][_0x4250ef(0x3e5,0x291,_0x212344._0x38851e,0x2cd)]>0x0?_0xfc6fbe[_0x1bd03f(0x215,_0x212344._0x72e28a,0x2b3,0x277)]:'{}')});}return parseAnthropicResponse({'id':this[_0x1bd03f(_0x212344._0x4b9152,_0x212344._0x5bcb3a,0x14b,0x136)],'type':'message','role':_0x1bd03f(0x1c4,0x284,_0x212344._0x36708e,_0x212344._0x1cf855),'content':_0x4090de,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x1bd03f(0x25b,0x25b,0x302,_0x212344._0x367001)],'output_tokens':this['outputTokens'],'cache_read_input_tokens':this['cacheReadInputTokens'],'cache_creation_input_tokens':this[_0x1bd03f(0xae,0x178,_0x212344._0x657d5d,_0x212344._0x4e03e4)]}},this['request']);}};function createAnthropicSurfaces(){const _0x38fcfe={_0x4083b5:0x66,_0x4d8561:0x11b,_0x370744:0x1bc,_0x18a12f:0x284,_0x58b7a2:0x189},_0x399664={_0x4ad5a9:0xc9},_0x191882={_0x473461:0xec,_0x1e0024:0x12f};function _0x52c736(_0x15412b,_0x3a6eab,_0x492f9e,_0x1b6abc){return _0x1818aa(_0x15412b-_0x191882._0x473461,_0x15412b,_0x492f9e-_0x191882._0x1e0024,_0x3a6eab-0x178);}function _0x1f8adb(_0x3ebda2,_0x10b52e,_0x353d19,_0x13fb78){return _0x1818aa(_0x3ebda2-0x144,_0x353d19,_0x353d19-_0x399664._0x4ad5a9,_0x3ebda2-0x40);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x52c736(_0x38fcfe._0x4083b5,0xae,0x14,_0x38fcfe._0x4d8561),'createRequest'(_0xfe384b){return createAnthropicRequest(_0xfe384b,![]);},'parseResponse'(_0x3d565e,_0x43abb2){return parseAnthropicResponse(_0x3d565e,_0x43abb2);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x52c736(_0x38fcfe._0x370744,0x1e4,_0x38fcfe._0x18a12f,_0x38fcfe._0x58b7a2),'createRequest'(_0x10a3b4){return createAnthropicRequest(_0x10a3b4,!![]);},'createStreamParser'(_0x2e73c7){return new AnthropicMessagesStreamParser(_0x2e73c7);}}];}var StaticModelSurfaceRouter=class{[_0x1818aa(0xba,0xa8,-0x63,0x67)];[_0x1818aa(-0x182,-0x10e,-0x137,-0xa1)];constructor(_0x5c48dc){const _0x3d66a1={_0xaf5ce5:0x2a0,_0x1ce9ac:0x1fa,_0x41dc74:0x1ad,_0x5f7455:0x21a,_0x5d8f92:0x4f,_0x42163f:0x3e},_0x181d7f={_0x40387f:0x52,_0x5949b4:0xdf},_0x487864={_0x42ed2e:0x178,_0x5e7d7f:0x1a4};function _0xf7a409(_0x1618b0,_0x3eb8e9,_0x42ec15,_0x4c88ef){return _0x1818aa(_0x1618b0-0x124,_0x3eb8e9,_0x42ec15-_0x487864._0x42ed2e,_0x4c88ef-_0x487864._0x5e7d7f);}function _0x23ca50(_0x3f4918,_0x5b82c7,_0x30cd2c,_0x1f2d4c){return _0x1818aa(_0x3f4918-_0x181d7f._0x40387f,_0x3f4918,_0x30cd2c-_0x181d7f._0x5949b4,_0x1f2d4c-0x46);}this['completeSurface']=_0x5c48dc[_0xf7a409(_0x3d66a1._0xaf5ce5,_0x3d66a1._0x1ce9ac,_0x3d66a1._0x41dc74,_0x3d66a1._0x5f7455)],this[_0x23ca50(0x60,0x44,_0x3d66a1._0x5d8f92,-0x5b)]=_0x5c48dc[_0x23ca50(-_0x3d66a1._0x42163f,-0x28,-0xca,-0x64)];}[_0x2d9e9f(0x49b,0x43f,0x3c4,0x45e)](_0xde6985,_0x174aea){const _0x39d086={_0x32a0b9:0x55c,_0x17d734:0x460,_0x389bb8:0x3f8,_0x580b1:0x36a,_0x2d1233:0x35d,_0x2248d6:0x135,_0xd17452:0x47b,_0x5c3201:0x3ad},_0x29361a={_0x3833cf:0x145},_0x2d713b={_0x2eda47:0x1e9,_0x2f49b0:0x13f};function _0x47289b(_0x4de8f6,_0xbb90f9,_0x56ce0c,_0x363f14){return _0x1818aa(_0x4de8f6-_0x2d713b._0x2eda47,_0x56ce0c,_0x56ce0c-_0x2d713b._0x2f49b0,_0x363f14- -0x168);}function _0x1ded08(_0x50894f,_0x5b7195,_0x5d695e,_0x5b6725){return _0x2d9e9f(_0x50894f-0xcd,_0x5b7195,_0x50894f-0x41,_0x5b6725-_0x29361a._0x3833cf);}return _0x174aea[_0x1ded08(0x48f,_0x39d086._0x32a0b9,_0x39d086._0x17d734,_0x39d086._0x389bb8)]===_0x1ded08(_0x39d086._0x580b1,_0x39d086._0x2d1233,0x347,0x2ba)?this[_0x47289b(-0x26d,-_0x39d086._0x2248d6,-0x2dc,-0x209)]:this[_0x1ded08(_0x39d086._0xd17452,0x4ce,0x3e5,_0x39d086._0x5c3201)];}};function trimTrailingSlashes(_0x39e429){const _0x25081d={_0x1d05ef:0x3d4,_0xd45c96:0x2f8},_0x2fc391={_0x1fc3db:0x1b7,_0x27d7b5:0xf3,_0x250720:0x11b};function _0x1c3a43(_0xa82337,_0x209327,_0x4233b4,_0x405c08){return _0x2d9e9f(_0xa82337-_0x2fc391._0x1fc3db,_0x209327,_0xa82337- -_0x2fc391._0x27d7b5,_0x405c08-_0x2fc391._0x250720);}return _0x39e429[_0x1c3a43(0x38e,0x332,_0x25081d._0x1d05ef,_0x25081d._0xd45c96)](/\/+$/,'');}function resolveApiCredential(_0x525989,_0x2a1d1f){const _0x31f07c={_0x3a1019:0xd9,_0x24d772:0xe5},_0x42a895={_0xb4c7bf:0x1ba},_0x5f2082={_0x7afe31:0x1a,_0xca1c53:0x40e};function _0x2c28e7(_0x30d966,_0x3f451f,_0x138caa,_0x865533){return _0x2d9e9f(_0x30d966-_0x5f2082._0x7afe31,_0x30d966,_0x3f451f- -_0x5f2082._0xca1c53,_0x865533-0x3a);}if(_0x2a1d1f?.[_0x2c28e7(-0x1c2,-0xd9,-0x1c6,-0x188)])return _0x2a1d1f[_0x2c28e7(-0x166,-_0x31f07c._0x3a1019,-0x20,-_0x31f07c._0x24d772)];function _0x40b0b9(_0x1dd62f,_0x403d35,_0x1b89af,_0x1f2463){return _0x2d9e9f(_0x1dd62f-0xe0,_0x403d35,_0x1f2463- -0x172,_0x1f2463-_0x42a895._0xb4c7bf);}if(!_0x525989)return void 0x0;return{'kind':'api-key','value':_0x525989};}function _0x15fa(){const _0x2b409a=['DMLZAwjPBgL0Eq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','C3rHCNrZv2L0Aa','Aw5KzxG','ChjVDMLKzxjZ','CMvZCg9UC2vtDhjLyw0','BwfWqxbPrxjYB3i','A2v5CW','C2vUza','y29UBMvJDgLUzW','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Aw5WDxrFDgv4Da','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','AgfZ','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','yNvPBgrqyxj0AwfSt3v0Chv0','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Dg9Wx3bYB3zPzgvY','y29UC3vTzvnZzuv2zw50','z3jVAY1JB2rLlwzHC3qTmq','ywnJzxb0','qw50AhjVCgLJ','C3rVCf9YzwfZB24','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','CMvXDwvZDhm','DxnLC1jLC3bVBNnLC0fWAq','C3vTBwfYEv90zxH0','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','B3bLBMfPl2DWDc00BW','y2XPrgvMyxvSDe1VzgvS','CM91DgvY','y3jLyxrLuMvXDwvZDa','CM9Szq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','ChjVDg9JB2XwzxjZAw9U','Aw5PDgLHBev2zw50','Bw9KzwXZqMfZzvvYBa','AxngAw5PDgu','Dg9VBhm','C3rYAw5NAwz5','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','CMvTB3zLrxzLBNrmAxn0zw5LCG','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','C3LZDgvT','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','y3jLyxrLu3rYzwfTugfYC2vY','C29Tzq','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','Aw5WDxrkC29U','y29UDgvUDf9PBMrLEa','DxnLCI12AxnPyMXL','y2fSBf9Pza','C2XPy2u','y29UDgvUDf9KzwX0yq','zw5HyMXLza','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','zNvUy3rPB25Fy2fSBa','rgLYzwn0igfUC3DLCJOG','zgf0yq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','C2vZC2LVBK1HBMfNzxi','Dg9VBf9Yzxn1Bhq','C2LNBMfS','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Aw5WDxruB2TLBNm','Aw5JBhvKzunVBNrLBNruExbL','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','CMvZB2X2zunYzwrLBNrPywW','zxzLBNq','ywrKrxzLBNrmAxn0zw5LCG','CMvHC29UAw5Nx2nVBNrLBNq','zgvZy3jPChrPB24','zgvSzxrL','C2vSzwn0u3vYzMfJzq','D2vIu29JA2v0rMfJDg9YEq','z3b0ltu','mJa5DNrgwu1m','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','DxnLCG','yxbP','CMvZCg9UC2uUy29TCgXLDgvK','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','DhjHBNnWB3j0','mtK2mdeWAuD4veH2','Cgf0Aa','zgvMyxvSDe1VzgvS','ChjVDMLKzxi','AxrLBq','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','z2v0','yxjNDw1LBNrZ','C2vZC2LVBKLK','qMvHCMvYia','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','zw50CMLLCW','zMLUywXszxnWB25Zzq','BwvZC2fNzv9KzwX0yq','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','mtbhq3DkzNa','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','ChjLCgfYzunOyxrszxf1zxn0','yxv0AfnJAgvTzq','zgvLChnLzwSTDJqTzMXHC2G','yxnZAxn0yw50','B3v0Chv0x2LUzgv4','Dgv4Da','B3bLBMfPx3jLyxnVBMLUzW','D2vIC29JA2v0','z2v0u3vYzMfJzq','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','qMfZAa','y2XVC2u','CMvXDwvZDa','y29UBMvJDf9MywLSzwq','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','B3v0Chv0vg9Rzw5Z','Dg9VBenHBgXZqNLjBMrLEa','zgvMyxvSDe1HEfrVA2vUCW','CMv0CNKTywz0zxi','y29UDgvUDf9IBg9JA19KzwX0yq','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','C2vUzfDPDgHszxrYAwvZ','nJi1mZm2qKriDgnq','BgvUz3rO','yMfZzvvYBa','C3vTBwfYEuj5sw5KzxG','CMvHC29UAw5Nx3rLEhq','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','C3vTBwfYEq','zwrPDg9YugX1z2LUvMvYC2LVBG','B3v0Chv0x3rVA2vUCW','C3rYAwn0','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','Dg9VBf91C2vFAwq','yw50AhjVCgLJ','t3bLBKfj','Dg9VBf9JywXSCW','u3vYzMfJzsa','BgfIzwW','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','zgvMyxvSDe1VzgvSCW','Aw5KzxHpzG','zNjVBq','z2v0tw9KzwXZ','Bwv0ywrHDge','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','C29YDa','y29UDgvUDa','yM9KEq','Bw9KzwXZ','yxv0Ag9YAxPHDgLVBG','z3b0ltuUmI1JB2rLEa','zw5KCg9PBNrZ','B3bLBKfPrgvSzwDHDgu','Dg9VBenHBgXZ','AxrLBv9Pza','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','Aw1Hz2u','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','BwvZC2fNzuLUzgv4','Dg9Rzw4','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','z2L0AhvIqxbPvxjS','CMvHC29UAw5NugfYDhm','z2v0qw50AhjVCgLJrgvSzwDHDgu','C3vYzMfJzxm','DxnHz2u','BxnNlq','r2L0shvIiefqssbLCNjVCIa','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','C29JA2v0','zMLUAxnOx3jLyxnVBG','Ec1HCgKTA2v5','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','l21VzgvSCW','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','y2fUy2vS','CMvZCg9UC2vuzxH0ugfYDhm','z2XTltuUmq','yw50AhjVCgLJx3rOAw5RAw5N','C3vTBwfYEv9PBMrLEa','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','y2HHDenVBxbSzxrL','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','zMv0y2HjBxbS','CMvZCg9UC2uUzMfPBgvK','y29TCgXLDgvtDxjMywnL','Aw52ywXPzgf0zq','ywrK','sw52ywXPzcbYzxf1zxn0oIa','B3jPz2LUlxrYywnRzxi','Ahr0Cc1ZC2u','wgLHB21P','ChjLDMLVDxnszxnWB25ZzuLK','CMv0CNLHyMXL','zgLZCgXHEq','C3bSAxq','y2HHDgnTCgW','zM9Yy2vgDwXSuMvWBgf5','C3rHDhvZ','zMv0y2G','y29TCgXLDgu','l2nOyxqVy29TCgXLDgLVBNm','mtzND29lA1y','zwzMB3j0','nJKWnZK1C2rwvMXS','Bw9Kzq','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','BM93','z3b0ltrV','DgvZDa','z2v0t3bLBKfPrgvSzwDHDgu','Bw9KzwXfBMrWB2LUDenHy2HL','B21PDhrLza','zgvLChnLzwSTDJqTChjV','DhjPBq','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','CMvHC29U','y29TCgXLDgvwAwfsB3v0zxi','CMvZCg9UC2vtB2nRzxrtDhjLyw0','y2fSBeLKvg9pDxrWDxrjBMrLEa','zw5JCNLWDgvKq29UDgvUDa','C3rYzwfTshr0Cfn1CMzHy2u','yxnZAxn0yw50lq','CMvZB2X2zq','CMvZCg9UC2vZugf0Aa','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','z2XTltuUmG','CgfYC2u','B3bLBMfPlxjLC3bVBNnLCW','C2vUzfjHD1jLCxvLC3q','y2f0y2G','y2fJAgvszwfKsw5WDxruB2TLBNm','Aw5WDxrFC2nOzw1H','C3vWCg9YDgvKrw5KCg9PBNrZ','BNvTyMvY','yw50AhjVCgLJqMfZzvvYBa','D3nZoG','DhLWzq','CMvZCg9UC2uUy3jLyxrL','ChjVDg9JB2W','zxzLBNq6','B3v0Chv0sw5KzxHuB0nHBgXjza','BgLTAxrZ','B3v0Chv0rM9YBwf0','y2HHDfn0CMvHBq','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','AgvHzgvYuMvZB2X2zxi','Dg9VBenHBgXpCMrLCG','Dg9mB3DLCKnHC2u','Aw5JBhvKzxm','zw5Kx3r1CM4','wI5bsq','CMvZCg9UC2u','DNnJB2rLlZeUmta0lJi','r0vu','CMvWBgfJzq','DgHPBMTPBMC','y29UDgv4Df9Szw5NDgG','Bwf4x291Dhb1Df90B2TLBNm','zgf0ytO','C3bSAwnL','C3vWCg9YDgvKx2vUzhbVAw50CW','y2fWywjPBgL0AwvZ','Dg9bCgLfCNjVCG','BgfZDfjLC3bVBNnLswq','ue9tva','Dg9VBfvZzvn0yxj0rw1PDhrLza','ywjVCNq','zgvJB2rL','B3v0Chv0','C3rYAw5N','B3v0Chv0x3rLEhq','ChvZAa','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','y29UDgv4DfDPBMrVDW','Dg9tDhjPBMC','y2fWywjSzv9LBMrWB2LUDhm','y2HVAwnLCW','A2v5','t3bLBKfPqxbPrxjYB3i','C3vYzMfJzq','Bg9JA2vK','nta2mdiYwM91sNzk','C3rYzwfTvMLHu3vYzMfJzq','B2jQzwn0','Aw50zxjSzwf2zwq','CMvZB2X2zxi','C3rYDwn0DxjLzf9VDxrWDxq','CMvHC29UAw5Nx2rLDgfPBhm','BwvZC2fNzxm','y2fJAgvK','zMLSDgvY','CMvHC29UAw5NsxrLBxm','Aw5WDxq','C3rHDhvZvgv4Da','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','C2HPzNq','yw50AhjVCgLJlw1LC3nHz2vZ','q29TBwfUzenVzgu','BwvKAwfFDhLWzq','y29Kzq','C3rVCfjLyxnVBG','ywnJzxnZvg9Rzw4','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','Bwf4','BwvZC2fNzq','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','yw50AhjVCgLJrgvSzwDHDgu','y29WAwXVDc1JAgf0lZaUmZeUmW','C2LNBMf0DxjL','w0rptKvD','ywjVCNrLza','yNvKz2v0vg9Rzw5Z','ywDLBNq','yxbWBgLJyxrPB24VANnVBG','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','CgvUzgLUzW','yxn5BMnjDgvYyxrVCG','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','t1bftG','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','ChjVDMLKzxjtDgf0zq','oxvLwKjiva','AM9PBG','Dgv4Dej5sw5KzxG','zNjVBuvUDhjPzxm','A2LUza','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','ChjVDMLKzxjbzgfWDgvY','mJaYns0Xmc0Wmq','B3bLBMfPlxjLC3bVBNnLCY13CW','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','ChjVBxb0x3rVA2vUCW','C2vZC2LVBG','zNvUy3rPB24','Bwf4vg9Rzw5Z','mJaYmY0WnI0Wmq','AxnbCNjHEq','y29UDgvUDc10ExbL','zMLUAxnO','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','BwfW','B3v0Chv0sw5KzxG','C2L6zq','Ahr0Chm6','C2HVDwXKuMv0CNLszxnWB25Zzq','mJuYnta3t1rWwgLW','y3jLyxrLsgvHzgvYCW','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','Ahr0Cc1QC29U','yxbWBhLnB2rLBerLzMf1BhrZ','y2HHDgnTCgWT','zxjYB3i','DxrMltG','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','Bw9KzwW','BwvZC2fNzuLK','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','zgLZywjSzwq','Bwv0Ag9K','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','z2v0uMv0CNLezwXHEu1Z','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','DNnJB2rLlZeUmta2lJe','o2jHC2u2ncW','D2fPDezVCLjLDhj5','C2v0','CMvHC29UAw5N','AgvHzgvYCW','y29TCgXLDgvwAwftDxjMywnL','DhjHBNnWB3j0x2vYCM9Y','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','Aw1Hz2vFDxjS','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','DMfSDwu','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Dgv4DfbHCNrZ','ChjVDMLKzxjFCMv0CNK','C2nOzw1H','zwrPDg9YvMvYC2LVBG','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','C3rYzwfT','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','Aw5WDxrFDg9Rzw5Z','CMvHzhLtDgf0zq','y29UC3vTzuv2zw50','yxv0BW','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','z2XTltqUnW','CMvZCg9UC2vjza','C3rYzwfTu3vYzMfJzq','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','oNjLyxnVBMLUzZOW','y3jLzgvUDgLHBa','Dgv4Df9KzwX0yq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','z2XTltqUnG','D3m6','BMfTzq','BwvZC2fNzv9ZDgfYDa','CMvMDxnHBa','l3jLC3bVBNnLCW','mJC0nZm5rfb6DLLk','Dgv4Dc9LDMvUDc1ZDhjLyw0','yMXVy2TZ','CMvKywn0zwrFDgHPBMTPBMC','Dg9VBf91C2u','Dg9VBf91C2vFzgvSDge','CMvZzxq','r2L0shvIie1VzgvSCYaVienVCgLSB3q','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','CMvHC29UAw5Nx3rVA2vUCW','yxbPs2v5','zg9Uzq','mtC2mZC2ExnID2vO','AxneB25L','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','zw5JCNLWDgvKx2nVBNrLBNq','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','zMLUza','yMvHCMvY','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','CgfYDgLHBf9QC29U','ANnVBG','Bwf4t3v0Chv0','CMvXDwvZDe11Dgf0B3jZ','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','twLUAu1HEa','zgvSDge','B3bLBG','z2L0AhvI','ChjVEhK','C3rYzwfTx2vYCM9Y','CgfYC2vszxnWB25Zzq','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','C3vWCg9YDhnnB2rLBezLDgnO','DhjPBvn0yxj0','CMvZCg9UC2vtB2nRzxq','DMfSDwvZ','CMvZB2X2zujHC2vvCMW','BwLTBY12mI41lxbYBW','Bwf4x3rVA2vUCW','y29UC3vTzvDLyLnVy2TLDev2zw50','y29TCgXLDgLVBL90B2TLBNm','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','z2XTltqUnq','y2HHDenVBxbSzxrPB25Zugf0Aa','yw50AhjVCgLJlxzLCNnPB24','y29UDgvUDf9IBg9JAW','twLUAu1HEc1nmW','rgvLCfnLzwS','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','ANnVBL9Zy2HLBwe','C291CMnL'];_0x15fa=function(){return _0x2b409a;};return _0x15fa();}function resolveSessionBaseUrl(_0x4e3da3,_0xdfa139){return trimTrailingSlashes(_0xdfa139?.['endpoints']?.['api']??_0x4e3da3);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':_0x2d9e9f(0x37c,0x3fd,0x452,0x3a9),'cliDefaultModel':_0x2d9e9f(0x259,0x297,0x330,0x273),'providers':{'anthropic':{'label':_0x2d9e9f(0x46a,0x315,0x38d,0x477),'baseUrl':'https://api.anthropic.com','surface':_0x2d9e9f(0x522,0x419,0x4ac,0x467),'authScheme':_0x2d9e9f(0x3de,0x410,0x42b,0x444),'defaultModel':'claude-sonnet-4-20250514','defaultModels':[_0x2d9e9f(0x2db,0x42a,0x3ba,0x38c),_0x1818aa(0x1c,-0x82,0x86,-0x31)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x1818aa(0x102,0x4d,-0x6,0xaa),'baseUrl':'https://api.z.ai/api/coding/paas/v4','anthropicBaseUrl':_0x1818aa(0xad,0x5c,0x75,0x2),'surface':'anthropic-messages','authScheme':'bearer','defaultModel':'glm-4.7','defaultModels':[_0x1818aa(0xb0,0xf4,0xa6,0x91),_0x1818aa(-0x8a,0x13a,-0x4d,0x5f),'glm-4.7',_0x2d9e9f(0x383,0x2fc,0x338,0x2f1),_0x2d9e9f(0x43f,0x288,0x36b,0x2e0)],'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':_0x2d9e9f(0x4a1,0x4fe,0x41f,0x416),'surface':_0x2d9e9f(0x2b5,0x313,0x357,0x38a),'authScheme':'bearer','defaultModel':_0x2d9e9f(0x389,0x38c,0x396,0x46a),'defaultModels':[_0x1818aa(0xad,-0x5b,-0xe4,-0x3d),'openai/gpt-4o-mini'],'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':_0x2d9e9f(0x2e4,0x2aa,0x345,0x32e),'surface':'openai-responses','defaultModel':_0x2d9e9f(0x4e6,0x4aa,0x415,0x33d),'defaultModels':['claude-sonnet-4.5','gpt-4.1',_0x2d9e9f(0x338,0x3a8,0x3c6,0x32d),'gpt-5-mini',_0x1818aa(-0x108,0x16,0x73,-0x48),'claude-sonnet-4'],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x2d9e9f(0x448,0x58a,0x4ac,0x3f9)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x1818aa(0x60,0x57,0x19c,0xd9)},'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}}},'openai':{'label':_0x1818aa(0xdc,0xe6,0x11d,0x31),'baseUrl':_0x1818aa(-0x18b,-0xe7,-0x18f,-0xe2),'surface':'openai-chat-completions','authScheme':'bearer','defaultModel':'gpt-4o','defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x2d9e9f(0x3f0,0x297,0x370,0x372),'baseUrl':'https://api.deepseek.com/anthropic','surface':'anthropic-messages','authScheme':_0x1818aa(0x59,-0xe5,-0x9c,-0x82),'defaultModel':_0x2d9e9f(0x3ac,0x416,0x457,0x3f4),'defaultModels':[_0x2d9e9f(0x3d1,0x466,0x457,0x3da),_0x1818aa(-0x6c,-0x9d,0x6d,0x10)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x2d9e9f(0x30a,0x39c,0x359,0x349),'baseUrl':_0x1818aa(-0xf2,0x4e,-0x52,-0x62),'surface':_0x2d9e9f(0x4c2,0x482,0x4ac,0x569),'authScheme':_0x1818aa(0x31,0x36,-0xac,-0x82),'defaultModel':_0x2d9e9f(0x2bb,0x3d8,0x36f,0x366),'defaultModels':[_0x1818aa(-0xe9,-0x72,0x1d,-0x64)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x2d9e9f(0x413,0x453,0x4ad,0x4ab),'baseUrl':_0x1818aa(0x3,-0xcf,-0xa4,-0x4d),'modelsBaseUrl':_0x2d9e9f(0x2de,0x21f,0x2dc,0x21c),'surface':_0x2d9e9f(0x584,0x4d5,0x4ac,0x463),'authScheme':_0x1818aa(0xbe,-0x8c,-0x5b,0x58),'defaultModel':_0x1818aa(-0x53,0xcc,0xc9,-0x19),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x1818aa(0x9e,-0x68,0x9,0x6d),'baseUrl':_0x2d9e9f(0x482,0x35c,0x3a5,0x2e3),'modelsBaseUrl':_0x1818aa(-0x9e,-0x5c,0x108,0x1c),'surface':'anthropic-messages','authScheme':_0x1818aa(0x9f,0x104,-0x86,0x58),'defaultModel':_0x2d9e9f(0x341,0x303,0x366,0x34c),'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(_0x1a0701){const _0x96c76f={_0x53507f:0x51,_0x520b76:0xf7,_0x4052b3:0x107,_0xfa464c:0x2dc,_0x51d9ba:0x214,_0x32c293:0x1f8,_0x2d8a98:0x254,_0x48e349:0x168,_0x5642ad:0x87,_0x335e90:0x203},_0x5328bb={_0x1d1dfb:0x1e1,_0x1ecfed:0xeb,_0xa2fe84:0x19e},_0x23fb71={_0x557a5f:0xf9,_0x238f97:0xe6};function _0x17f3b0(_0x30d886,_0x587d9d,_0x3793ea,_0x15e060){return _0x2d9e9f(_0x30d886-_0x23fb71._0x557a5f,_0x3793ea,_0x587d9d- -0x483,_0x15e060-_0x23fb71._0x238f97);}function _0x39d7b0(_0x3ab503,_0x1acdc8,_0x50b295,_0x593538){return _0x1818aa(_0x3ab503-_0x5328bb._0x1d1dfb,_0x3ab503,_0x50b295-_0x5328bb._0x1ecfed,_0x50b295- -_0x5328bb._0xa2fe84);}const _0x2c922e=_0x1a0701[_0x39d7b0(-0x190,-_0x96c76f._0x53507f,-_0x96c76f._0x520b76,-0x1cd)]();return Object[_0x17f3b0(-0xbc,-_0x96c76f._0x4052b3,-0x154,-0x5c)](data[_0x39d7b0(-_0x96c76f._0xfa464c,-_0x96c76f._0x51d9ba,-_0x96c76f._0x32c293,-_0x96c76f._0x2d8a98)])[_0x17f3b0(-_0x96c76f._0x48e349,-0x133,-_0x96c76f._0x5642ad,-_0x96c76f._0x335e90)](_0x3c96cc=>_0x3c96cc['toLowerCase']()===_0x2c922e);}function getProviderProfile(_0x268c54){const _0x5813af={_0x29e5d6:0x1c2,_0x40ac0a:0xe5,_0x1a0b49:0x19c,_0x369193:0x1e6,_0x2607dc:0x1ee,_0x1caddf:0x47f,_0x2ed32e:0x45f,_0x4f641c:0x5db,_0x3a2b4a:0x670,_0x158d9b:0x5fe,_0x150b5e:0x609,_0x197f96:0x5eb,_0x1ec05f:0xf4,_0x1d2f4b:0x1f1,_0x3598a6:0x260,_0x34627f:0x1d7,_0x12788c:0x1b0},_0x3547a7={_0x4d1dc6:0x1b7,_0x4c05cb:0x16e},_0x4ac8cf={_0x5c1454:0x153};function _0x2f0807(_0x1be44b,_0x10993d,_0x1574b8,_0x3981f5){return _0x2d9e9f(_0x1be44b-0x97,_0x10993d,_0x1be44b- -0x219,_0x3981f5-_0x4ac8cf._0x5c1454);}const _0xa2113e=findProviderKey(_0x268c54);if(!_0xa2113e)return void 0x0;const _0x4e623a=data['providers'][_0xa2113e],_0x178804={};function _0x2c7d87(_0x4ffb43,_0x5977e9,_0x1f2a46,_0x135b60){return _0x2d9e9f(_0x4ffb43-_0x3547a7._0x4d1dc6,_0x1f2a46,_0x4ffb43-_0x3547a7._0x4c05cb,_0x135b60-0xc9);}for(const [_0x1702b7,_0x272096]of Object[_0x2f0807(_0x5813af._0x29e5d6,_0x5813af._0x40ac0a,_0x5813af._0x1a0b49,_0x5813af._0x369193)](_0x4e623a['models'])){_0x178804[_0x1702b7]=_0x272096;}return{'label':_0x4e623a[_0x2f0807(_0x5813af._0x2607dc,0x1dd,0x196,0x1d3)],'baseUrl':_0x4e623a[_0x2c7d87(0x567,0x4ba,0x4c2,0x64f)],'modelsBaseUrl':_0x4e623a[_0x2c7d87(0x50c,_0x5813af._0x1caddf,0x4e9,_0x5813af._0x2ed32e)],'anthropicBaseUrl':_0x4e623a[_0x2c7d87(_0x5813af._0x4f641c,_0x5813af._0x3a2b4a,_0x5813af._0x158d9b,0x688)],'surface':_0x4e623a[_0x2c7d87(_0x5813af._0x150b5e,0x654,0x53b,_0x5813af._0x197f96)],'authScheme':_0x4e623a[_0x2f0807(0x1c9,0x106,_0x5813af._0x1ec05f,0xfa)],'defaultModel':_0x4e623a['defaultModel'],'defaultModels':_0x4e623a[_0x2f0807(_0x5813af._0x1d2f4b,_0x5813af._0x3598a6,_0x5813af._0x34627f,0x1f4)]??[],'supportsModelFetch':_0x4e623a[_0x2f0807(0x148,0x157,0xa1,_0x5813af._0x12788c)]??![],'models':_0x178804};}function _0x5ba7(_0x5d39b6,_0x492f4b){_0x5d39b6=_0x5d39b6-0xbc;const _0x15fa56=_0x15fa();let _0x5ba75e=_0x15fa56[_0x5d39b6];if(_0x5ba7['BnTpNK']===undefined){var _0x3cdc00=function(_0x5a4210){const _0x5ea99f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x25a203='',_0x3522dc='';for(let _0x22af66=0x0,_0x56eb4e,_0x339c36,_0x25b787=0x0;_0x339c36=_0x5a4210['charAt'](_0x25b787++);~_0x339c36&&(_0x56eb4e=_0x22af66%0x4?_0x56eb4e*0x40+_0x339c36:_0x339c36,_0x22af66++%0x4)?_0x25a203+=String['fromCharCode'](0xff&_0x56eb4e>>(-0x2*_0x22af66&0x6)):0x0){_0x339c36=_0x5ea99f['indexOf'](_0x339c36);}for(let _0x4fdb7e=0x0,_0x18346a=_0x25a203['length'];_0x4fdb7e<_0x18346a;_0x4fdb7e++){_0x3522dc+='%'+('00'+_0x25a203['charCodeAt'](_0x4fdb7e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3522dc);};_0x5ba7['kSEuqN']=_0x3cdc00,_0x5ba7['VKMsCM']={},_0x5ba7['BnTpNK']=!![];}const _0x540889=_0x15fa56[0x0],_0x55a1b0=_0x5d39b6+_0x540889,_0x1d0b38=_0x5ba7['VKMsCM'][_0x55a1b0];return!_0x1d0b38?(_0x5ba75e=_0x5ba7['kSEuqN'](_0x5ba75e),_0x5ba7['VKMsCM'][_0x55a1b0]=_0x5ba75e):_0x5ba75e=_0x1d0b38,_0x5ba75e;}function getModelProfile(_0x1e3024,_0x26edb6){const _0x1065cc={_0x4a6498:0x14c,_0x594c9c:0x9f,_0x2ec98b:0x4a},_0x527631={_0x2e4c7c:0x33},_0x5b5b6d=findProviderKey(_0x1e3024);function _0x5d9b56(_0x4985b4,_0x3fd100,_0x5f1a3e,_0x6a240a){return _0x2d9e9f(_0x4985b4-0x1e,_0x5f1a3e,_0x4985b4- -0x5e2,_0x6a240a-0x127);}function _0x97228f(_0x58788b,_0x128525,_0x7c9692,_0x3cf0e4){return _0x1818aa(_0x58788b-0x10c,_0x3cf0e4,_0x7c9692-0x71,_0x58788b- -_0x527631._0x2e4c7c);}if(!_0x5b5b6d)return void 0x0;return data[_0x97228f(-0x8d,-_0x1065cc._0x4a6498,0x3c,-_0x1065cc._0x594c9c)][_0x5b5b6d][_0x97228f(0xd,-0xb1,0x73,-_0x1065cc._0x2ec98b)][_0x26edb6];}function resolveModelProfile(_0x1376d5,_0x151868){const _0x12d858={_0x5b2f29:0x521,_0x3c0452:0x387,_0x32eede:0x685,_0x1885c3:0x5a1,_0xf0285b:0x5fc,_0x17a9f6:0x546,_0x513c3a:0x539,_0x5bd5cc:0x64a,_0x314214:0x6b3,_0x257f7a:0x681,_0x34d7c0:0x643,_0x2d0325:0x5ae,_0x1d3ba7:0x421,_0x3a16f9:0x356,_0x2cae39:0x346,_0x1fa5aa:0x54b,_0x2b2b08:0x5b2,_0x16ae5f:0x50f,_0x3c7875:0x626,_0x5eae77:0x5e6,_0x528359:0x5a8,_0x48e9a5:0x4fd,_0x5c0f18:0x4af},_0x48db99={_0x2d9343:0x174,_0x8f86df:0x8c,_0x2d0a55:0x8e},_0x163c8c={_0x24464c:0x70,_0x41669c:0x1a8},_0x5bfbd5=findProviderKey(_0x1376d5);function _0x2dd365(_0x331e9f,_0x1052dd,_0x1c0334,_0x258b88){return _0x2d9e9f(_0x331e9f-_0x163c8c._0x24464c,_0x331e9f,_0x1052dd-_0x163c8c._0x41669c,_0x258b88-0x1e4);}if(!_0x5bfbd5)return void 0x0;function _0x45fd2c(_0x4133b8,_0x4335a4,_0x1fd01e,_0x4a712d){return _0x2d9e9f(_0x4133b8-_0x48db99._0x2d9343,_0x1fd01e,_0x4a712d- -_0x48db99._0x8f86df,_0x4a712d-_0x48db99._0x2d0a55);}const _0x17b57d=data[_0x2dd365(0x50b,_0x12d858._0x5b2f29,0x479,0x604)][_0x5bfbd5],_0xbc16ec=_0x17b57d[_0x45fd2c(0x3c1,0x414,0x39d,_0x12d858._0x3c0452)][_0x151868];return{'label':_0x17b57d['label'],'baseUrl':_0x17b57d[_0x2dd365(_0x12d858._0x32eede,_0x12d858._0x1885c3,0x679,_0x12d858._0xf0285b)],'modelsBaseUrl':_0x17b57d[_0x2dd365(0x5f7,_0x12d858._0x17a9f6,0x4aa,_0x12d858._0x513c3a)],'anthropicBaseUrl':_0x17b57d[_0x2dd365(_0x12d858._0x5bd5cc,0x615,_0x12d858._0x314214,_0x12d858._0x257f7a)],'surface':_0xbc16ec?.[_0x2dd365(0x63e,_0x12d858._0x34d7c0,0x671,_0x12d858._0x2d0325)]??_0x17b57d['surface'],'authScheme':_0x17b57d[_0x45fd2c(0x318,_0x12d858._0x1d3ba7,0x313,_0x12d858._0x3a16f9)],'defaultModel':_0x17b57d[_0x45fd2c(0x34b,0x294,0x37d,_0x12d858._0x2cae39)],'defaultModels':_0x17b57d[_0x2dd365(_0x12d858._0x1fa5aa,_0x12d858._0x2b2b08,_0x12d858._0x16ae5f,_0x12d858._0x3c7875)],'supportsModelFetch':_0x17b57d[_0x2dd365(0x4c9,0x509,_0x12d858._0x5eae77,0x454)],'contextWindow':_0xbc16ec?.[_0x2dd365(0x711,0x63d,0x70a,0x5c2)],'maxOutput':_0xbc16ec?.[_0x2dd365(_0x12d858._0x528359,_0x12d858._0x48e9a5,_0x12d858._0x5c0f18,0x464)]};}function getDefaultMaxTokens(){const _0x2bf97d={_0x359676:0x4a2,_0x5aa874:0x411},_0x15aa51={_0x7d566e:0x18e};function _0x2bd31f(_0x22bca1,_0x2cc417,_0x58f5be,_0x51bc2a){return _0x2d9e9f(_0x22bca1-0x2f,_0x51bc2a,_0x2cc417-0x84,_0x51bc2a-_0x15aa51._0x7d566e);}return data[_0x2bd31f(_0x2bf97d._0x359676,0x476,0x51a,_0x2bf97d._0x5aa874)];}function getDefaultModel(){const _0x5bf997={_0x363fc7:0x0};function _0x5237af(_0xae1705,_0x23c336,_0x23ec8f,_0x4eef1d){return _0x1818aa(_0xae1705-0x1b1,_0x23ec8f,_0x23ec8f-0x7b,_0xae1705-0x1);}return data[_0x5237af(_0x5bf997._0x363fc7,0x3d,0x62,-0x7a)];}function getCliDefaultModel(){const _0x3b03e4={_0x3aea68:0x306,_0x5090d0:0x41e,_0x31a66f:0x374},_0x1284cc={_0xffb572:0x59,_0x92f0ba:0x20,_0x519330:0x3b0};function _0x3d5aad(_0x372c44,_0x1c730f,_0x51462f,_0x19b187){return _0x1818aa(_0x372c44-_0x1284cc._0xffb572,_0x372c44,_0x51462f-_0x1284cc._0x92f0ba,_0x19b187-_0x1284cc._0x519330);}return data[_0x3d5aad(0x3f1,_0x3b03e4._0x3aea68,_0x3b03e4._0x5090d0,_0x3b03e4._0x31a66f)];}function getProviderLabel(_0x4bdd13){const _0x483896={_0x1cc523:0xa4,_0x454076:0x163,_0x45534a:0x101,_0x575804:0x8c,_0x12e0e2:0x1f7},_0x545b28={_0x524b36:0x72,_0x3b3b2d:0x2d},_0x5b1aa0={_0x50c2ff:0x2d5};function _0x266d18(_0x2c4b42,_0x2fb415,_0x12691e,_0x29b8f0){return _0x2d9e9f(_0x2c4b42-0x7b,_0x2fb415,_0x2c4b42- -_0x5b1aa0._0x50c2ff,_0x29b8f0-0x1cb);}function _0x47dcc6(_0x4f6f9c,_0x1d0489,_0x3d15e0,_0x481a4a){return _0x2d9e9f(_0x4f6f9c-_0x545b28._0x524b36,_0x4f6f9c,_0x481a4a-0xb6,_0x481a4a-_0x545b28._0x3b3b2d);}const _0x4bd72b=findProviderKey(_0x4bdd13);return _0x4bd72b?data[_0x266d18(_0x483896._0x1cc523,_0x483896._0x454076,_0x483896._0x45534a,_0x483896._0x575804)][_0x4bd72b][_0x266d18(0x132,0x173,_0x483896._0x12e0e2,0xf8)]:void 0x0;}function _0x1818aa(_0xad9a30,_0x30f237,_0x52a109,_0x2369d2){const _0x72e60c={_0x4b788f:0x1b8};return _0x5ba7(_0x2369d2- -_0x72e60c._0x4b788f,_0x30f237);}function getProviderDefaultModel(_0x146552){const _0x1ba063={_0x21a95f:0x2f4,_0x53c101:0x498,_0x4e816e:0x3d0},_0x400eec={_0x1f8766:0x57};function _0x14638e(_0xcfc083,_0x10cc70,_0x26768a,_0x1979cb){return _0x2d9e9f(_0xcfc083-0x1b5,_0x10cc70,_0x26768a-_0x400eec._0x1f8766,_0x1979cb-0x1d0);}const _0x413f4c=findProviderKey(_0x146552);if(!_0x413f4c)return void 0x0;return data[_0x14638e(_0x1ba063._0x21a95f,_0x1ba063._0x53c101,_0x1ba063._0x4e816e,0x398)][_0x413f4c]['defaultModel'];}function getProviderDefaultModels(_0x3dba56){const _0x4b71e3=findProviderKey(_0x3dba56);if(!_0x4b71e3)return[];return[...data['providers'][_0x4b71e3]['defaultModels']??[]];}function providerSupportsModelFetch(_0x59fab1){const _0x54db1b={_0x3fdde3:0x21e,_0xc88a5:0x21d,_0x2656ba:0x207},_0x579e6b={_0x234cc1:0x1e7,_0x5014cb:0xce,_0xd1738:0x1ac},_0x4cd3c1=findProviderKey(_0x59fab1);if(!_0x4cd3c1)return![];function _0x389bc1(_0x27c35e,_0x36cb05,_0x2d8b0a,_0x36b54a){return _0x1818aa(_0x27c35e-_0x579e6b._0x234cc1,_0x2d8b0a,_0x2d8b0a-_0x579e6b._0x5014cb,_0x27c35e- -_0x579e6b._0xd1738);}return data['providers'][_0x4cd3c1][_0x389bc1(-_0x54db1b._0x3fdde3,-0x2da,-_0x54db1b._0xc88a5,-_0x54db1b._0x2656ba)]??![];}function getOnboardingProviderKeys(){const _0x41ffb6={_0x29261e:0x2d},_0x2fa1a9={_0xa00907:0xde,_0x311617:0xbf};function _0xeef060(_0x5cf784,_0x35821a,_0x1c6c3d,_0x1676a1){return _0x2d9e9f(_0x5cf784-_0x2fa1a9._0xa00907,_0x5cf784,_0x35821a- -0x2fc,_0x1676a1-_0x2fa1a9._0x311617);}return Object['keys'](data[_0xeef060(-_0x41ffb6._0x29261e,0x7d,0xb4,0x3d)]);}function toErrorMessage(_0x2fd918){const _0x4b7b8c={_0x3d19a7:0x297,_0x14605f:0x2fb,_0x23995e:0x37c,_0x5c9ce0:0x402,_0x2c3456:0xd8},_0x1273df={_0x189b3:0xd2,_0x264ada:0x56},_0x4dc6e3={_0x239f85:0x13f};if(_0x2fd918 instanceof Error&&_0x2fd918[_0x11e5e1(0xa6,0x91,0x46,-0x6d)][_0x99fd6d(0x528,0x3e1,0x49a,0x49a)]>0x0)return _0x2fd918[_0x99fd6d(_0x4b7b8c._0x3d19a7,_0x4b7b8c._0x14605f,_0x4b7b8c._0x23995e,_0x4b7b8c._0x5c9ce0)];function _0x11e5e1(_0x275247,_0x547b6f,_0x75a401,_0x4f099c){return _0x1818aa(_0x275247-0x17b,_0x275247,_0x75a401-0x1aa,_0x75a401-_0x4dc6e3._0x239f85);}function _0x99fd6d(_0x38bee9,_0x1819b9,_0x1d4f02,_0x1e2647){return _0x2d9e9f(_0x38bee9-_0x1273df._0x189b3,_0x1819b9,_0x1d4f02-0xa2,_0x1e2647-_0x1273df._0x264ada);}return _0x11e5e1(_0x4b7b8c._0x2c3456,-0x55,0x7a,0x13c);}function createDefaultWebSocketFactory(){return({headers:_0x47a98f,url:_0x4e1947})=>{const _0x110d40=globalThis['WebSocket'];return new _0x110d40(_0x4e1947,{'headers':_0x47a98f,'protocols':[]});};}async function*iterateSseEvents(_0x58d4ce,_0x4b78b3){const _0x202263={_0x24e9f7:0x5b,_0x112a3b:0x9e,_0x3b5d2b:0x38,_0x3c7991:0x18a,_0x614bab:0x19c,_0x181856:0x1c3,_0x4816ea:0x385,_0xf88b2e:0x4d6,_0x26a7b2:0x4be,_0x4fc87e:0x476,_0xb9c831:0x51d,_0x1803bc:0x520,_0x4cc4aa:0x1c1,_0x1b7904:0x5b7,_0x58f67f:0x189,_0x48add1:0x217},_0x28a3d6={_0x5e4685:0x4d2,_0x2bbb31:0x4b0,_0x4a66bf:0x59e,_0x6ef0c0:0x582,_0x5c4106:0x572,_0x44df30:0x66d,_0x594b59:0x5ba},_0x328e0={_0x5e0165:0x3c1,_0x5aaf26:0xe6},_0x2e90fd={_0x421d14:0x3cd,_0x179247:0x195,_0x1a666a:0x104},_0x2bde76={_0x3465be:0x101,_0x5e176b:0x7e,_0x13b7ac:0x1f3},_0x54ee46=_0x58d4ce['body']?.['getReader']();function _0x402d52(_0x2504d5,_0x3a6133,_0x3ecfde,_0x151d33){return _0x2d9e9f(_0x2504d5-_0x2bde76._0x3465be,_0x3a6133,_0x2504d5-_0x2bde76._0x5e176b,_0x151d33-_0x2bde76._0x13b7ac);}if(!_0x54ee46)return;function _0x2f7624(_0x3d7219,_0x40772c,_0x98cb5e,_0x344690){return _0x2d9e9f(_0x3d7219-0x97,_0x3d7219,_0x40772c- -0x26f,_0x344690-0x23);}const _0x588819=new TextDecoder(_0x2f7624(_0x202263._0x24e9f7,_0x202263._0x112a3b,_0x202263._0x3b5d2b,0x67));let _0xc71d66='';const _0x6d5c5c=addAbortListener(_0x4b78b3,()=>{function _0x94b5f(_0x1439ed,_0x525eec,_0x4140d8,_0x29b0d7){return _0x2f7624(_0x29b0d7,_0x525eec-_0x2e90fd._0x421d14,_0x4140d8-_0x2e90fd._0x179247,_0x29b0d7-_0x2e90fd._0x1a666a);}function _0x3f2883(_0x3e40d0,_0x315325,_0x24c146,_0x67bd71){return _0x2f7624(_0x24c146,_0x67bd71-_0x328e0._0x5e0165,_0x24c146-0x1c4,_0x67bd71-_0x328e0._0x5aaf26);}void _0x54ee46[_0x3f2883(_0x28a3d6._0x5e4685,_0x28a3d6._0x2bbb31,_0x28a3d6._0x4a66bf,_0x28a3d6._0x6ef0c0)](toAbortError(_0x4b78b3?.['reason']))[_0x3f2883(_0x28a3d6._0x5c4106,_0x28a3d6._0x44df30,0x4f5,_0x28a3d6._0x594b59)](()=>{});});try{while(!![]){throwIfAborted(_0x4b78b3);const {value:_0x1cd4ff,done:_0x35a14c}=await _0x54ee46['read']();throwIfAborted(_0x4b78b3);if(_0x35a14c)break;_0xc71d66+=_0x588819[_0x2f7624(_0x202263._0x3c7991,0x21f,0x286,0x2ac)](_0x1cd4ff,{'stream':!![]});while(!![]){const _0xe4b43b=_0xc71d66[_0x2f7624(0x126,_0x202263._0x614bab,_0x202263._0x181856,0x180)]('\x0a\x0a');if(_0xe4b43b===-0x1)break;const _0xe4bf79=_0xc71d66[_0x402d52(0x42d,0x3b6,0x510,_0x202263._0x4816ea)](0x0,_0xe4b43b);_0xc71d66=_0xc71d66['slice'](_0xe4b43b+0x2),_0xe4bf79[_0x402d52(_0x202263._0xf88b2e,0x4fe,_0x202263._0x26a7b2,0x5b3)]()[_0x402d52(_0x202263._0x4fc87e,_0x202263._0xb9c831,0x4a7,_0x202263._0x1803bc)]>0x0&&(yield _0xe4bf79);}}_0xc71d66+=_0x588819[_0x2f7624(_0x202263._0x4cc4aa,0x21f,0x2f8,0x2b6)](),throwIfAborted(_0x4b78b3),_0xc71d66[_0x402d52(0x4d6,_0x202263._0x1b7904,0x5c0,0x46a)]()[_0x2f7624(0x1c2,_0x202263._0x58f67f,0x1b6,_0x202263._0x48add1)]>0x0&&(yield _0xc71d66);}finally{_0x6d5c5c();}}async function waitForWebSocketOpen(_0x4facc9,_0x15c128){const _0x5f51ab={_0x29101e:0x575,_0x7f3e56:0x4c1,_0x594d24:0x4de,_0x113e48:0x5a2},_0x3a1a75={_0xc6ac28:0x8d,_0x1f917f:0x156,_0x586e23:0x9d,_0x10e3f8:0x56f,_0x276759:0x65a,_0x143164:0x3f,_0x1d7f75:0x57,_0x113cd8:0x59b,_0x4a3524:0x552,_0x467e40:0x5b8,_0x175220:0x4b5,_0x27c3e9:0x8,_0xf0ce82:0x32,_0xb46157:0x71,_0x2a22d6:0xc9,_0x2c8af8:0x76},_0xf12e89={_0x4d5d0e:0xa,_0xd3b2b7:0x6b7},_0x18fc77={_0x42228d:0xc5,_0x3a957f:0x20d,_0x406e59:0x25e,_0x37e54e:0x17b,_0x2ca6f6:0x1ff,_0x4474d6:0x1ac,_0x4e85e8:0xd0,_0x53229a:0x1c5,_0x386071:0x11d,_0x3a9307:0x1bd,_0x2aa337:0x185,_0x231191:0x10f,_0x23d3a8:0x50,_0x1b70de:0x11f},_0x3630e8={_0x13b4c8:0x48c,_0x901c72:0x52b,_0x3350b9:0x56b},_0x1974ae={_0x4ea73b:0x1c8,_0x776759:0x1be,_0x16aaa3:0xd5},_0x3ab8c3={_0x3926cd:0x23},_0x597790={_0xc15cc8:0x191};if(_0x4facc9[_0x3142e1(_0x5f51ab._0x29101e,_0x5f51ab._0x7f3e56,_0x5f51ab._0x594d24,_0x5f51ab._0x113e48)]===WebSocket[_0x3142e1(0x520,0x518,0x49b,0x3c6)]){throwIfAborted(_0x15c128);return;}function _0x130fa8(_0x154c18,_0x52f46a,_0x30436b,_0x4254e9){return _0x2d9e9f(_0x154c18-_0x597790._0xc15cc8,_0x154c18,_0x4254e9- -0x508,_0x4254e9-0x1a0);}function _0x3142e1(_0x11efa4,_0x216d5f,_0x303922,_0x47b71a){return _0x2d9e9f(_0x11efa4-0x63,_0x47b71a,_0x303922-0x1b2,_0x47b71a-_0x3ab8c3._0x3926cd);}throwIfAborted(_0x15c128),await new Promise((_0x4393f5,_0x2550cb)=>{const _0x2f65fa={_0x330975:0x2f},_0x4f5bd2={_0x38b22f:0x1aa},_0x2308c6=()=>{_0x111ba1(),_0x4393f5();};function _0x1f82cc(_0xe1465c,_0x5220d2,_0x27f3cc,_0x103d46){return _0x130fa8(_0xe1465c,_0x5220d2-_0x4f5bd2._0x38b22f,_0x27f3cc-0x190,_0x103d46-0xf1);}const _0x1a300a=_0x372320=>{_0x111ba1(),_0x2550cb(new Error(_0x372320['message']||'WebSocket\x20request\x20failed'));},_0x132239=_0x43664e=>{const _0x547d6a={_0x10651e:0x3b8};function _0x27949d(_0x50b892,_0xa6cb83,_0x4a0e84,_0x2639a0){return _0x5ba7(_0x50b892- -_0x547d6a._0x10651e,_0xa6cb83);}_0x111ba1();function _0x474f55(_0x4cb7b3,_0x2be553,_0x1e553d,_0x3ed20b){return _0x5ba7(_0x1e553d-_0x2f65fa._0x330975,_0x4cb7b3);}const _0x127f70=_0x43664e;_0x2550cb(new Error(_0x127f70[_0x474f55(_0x1974ae._0x4ea73b,0x2dd,0x26e,0x1d6)]||_0x474f55(0x157,0x26a,_0x1974ae._0x776759,_0x1974ae._0x16aaa3)));},_0x4ce15c=()=>{const _0x27b395={_0x178167:0x37c};_0x111ba1();_0x4facc9[_0x3bbcf9(0x4a2,0x48d,_0x3630e8._0x13b4c8,0x3db)]===WebSocket[_0x3bbcf9(0x48e,0x44a,_0x3630e8._0x901c72,0x42a)]&&_0x4facc9[_0x3bbcf9(0x59d,0x54d,_0x3630e8._0x3350b9,0x586)](0x3e8,'aborted');function _0x3bbcf9(_0x484b8f,_0x4db1de,_0x408b33,_0x1f7792){return _0x5ba7(_0x4db1de-_0x27b395._0x178167,_0x1f7792);}function _0x2e0e44(_0x405c6a,_0x26dcf6,_0x5c7ebc,_0x405090){return _0x5ba7(_0x26dcf6-0x1d,_0x5c7ebc);}_0x2550cb(toAbortError(_0x15c128?.['reason']));},_0x111ba1=()=>{const _0x224468={_0x36daef:0x34d};_0x4facc9[_0x46c893(0x288,0x1ac,_0x18fc77._0x42228d,0x126)](_0x5252fb(-_0x18fc77._0x3a957f,-_0x18fc77._0x406e59,-_0x18fc77._0x37e54e,-0x19e),_0x2308c6);function _0x46c893(_0x547190,_0x1a3178,_0x18237b,_0x3d1171){return _0x5ba7(_0x1a3178-0x24,_0x547190);}function _0x5252fb(_0x79bb6b,_0x18eda5,_0x4fefa3,_0x526c15){return _0x5ba7(_0x79bb6b- -_0x224468._0x36daef,_0x18eda5);}_0x4facc9[_0x46c893(_0x18fc77._0x2ca6f6,_0x18fc77._0x4474d6,_0x18fc77._0x4e85e8,0x24a)]('error',_0x1a300a),_0x4facc9[_0x5252fb(-_0x18fc77._0x53229a,-_0x18fc77._0x386071,-0x10e,-0xf7)]('close',_0x132239),_0x15c128?.[_0x46c893(_0x18fc77._0x3a9307,_0x18fc77._0x4474d6,0x179,_0x18fc77._0x2aa337)](_0x5252fb(-0xdb,-_0x18fc77._0x231191,-_0x18fc77._0x23d3a8,-_0x18fc77._0x1b70de),_0x4ce15c);};_0x4facc9['addEventListener'](_0x1f82cc(-_0x3a1a75._0xc6ac28,-_0x3a1a75._0x1f917f,-_0x3a1a75._0x586e23,-0xbc),_0x2308c6),_0x4facc9[_0x5dd45b(_0x3a1a75._0x10e3f8,0x4de,0x5c9,_0x3a1a75._0x276759)]('error',_0x1a300a),_0x4facc9[_0x1f82cc(_0x3a1a75._0x143164,-0xbd,-0x56,-_0x3a1a75._0x1d7f75)](_0x5dd45b(_0x3a1a75._0x113cd8,_0x3a1a75._0x4a3524,_0x3a1a75._0x467e40,_0x3a1a75._0x175220),_0x132239);function _0x5dd45b(_0x3bd987,_0x2b4c65,_0x57bc7f,_0x4e3ae3){return _0x130fa8(_0x4e3ae3,_0x2b4c65-_0xf12e89._0x4d5d0e,_0x57bc7f-0x89,_0x3bd987-_0xf12e89._0xd3b2b7);}_0x15c128?.[_0x1f82cc(-0xec,_0x3a1a75._0x27c3e9,-0xec,-0x57)](_0x1f82cc(_0x3a1a75._0xf0ce82,-_0x3a1a75._0xb46157,_0x3a1a75._0x2a22d6,_0x3a1a75._0x2c8af8),_0x4ce15c,{'once':!![]});});}function iterateWebSocketMessages(_0x459a0f,_0x4cef19){const _0x4fe73d={_0xcdc83b:0x197,_0x223828:0x1af,_0x351bba:0x132,_0x2a436f:0x15b,_0x13e2f7:0x29,_0x27723b:0x66,_0x5e9c30:0x1ac,_0x54f938:0xfe,_0x55febc:0x134,_0x191d9e:0x28c,_0x5109a6:0x20f},_0x13bfb9={_0x1131c6:0x187,_0xf8d257:0x26e,_0x26a545:0x8a,_0x518864:0x7f,_0x9eba57:0x10b,_0x56c927:0x141,_0x2633b4:0x204,_0x1b0d83:0x136,_0x37061f:0x1fc,_0x4fb70a:0x1f4,_0x5294d2:0x2b9,_0x36ed21:0x121,_0xbb2e2f:0x132,_0x2d97b4:0xa1,_0x503a98:0x8e,_0x378fe3:0xed,_0x599232:0x30},_0xd50c2b={_0x203c94:0x184},_0x56799c={_0x298a43:0x52a,_0x2b741c:0x5e6,_0x94e07a:0x1f1,_0x1f4652:0x1cb,_0x9f04:0x2d2,_0x580045:0x30e,_0x2d1c29:0x87,_0x486470:0x1ff,_0xe24421:0x116,_0x2e405e:0x4b6,_0xb50460:0x3da,_0x2a78aa:0x47a},_0x52a9ec={_0x10a904:0x302},_0x3035b3={_0x4ef750:0x34c,_0x2c252e:0x26e,_0x15c634:0x39d,_0x9886:0x412,_0x4e6133:0xb2,_0x4f8ed9:0x185,_0x5c9b57:0x17b},_0x516f38={_0x252023:0x4a0,_0x16f8a6:0x477,_0x493071:0x3ec},_0x2ed72d={_0x402e13:0x3eb,_0x45f9aa:0x452,_0x5833e1:0x430,_0x1bde21:0x527,_0x659c41:0x488,_0x3ef30d:0x49e,_0x3c18f4:0x52e,_0x587e46:0x600},_0x141743={_0x535c03:0xc4,_0x5e5806:0x16},_0x211e91=[];let _0x588172=![];function _0x5377db(_0x34fce1,_0x58859b,_0x399512,_0x51ea65){return _0x1818aa(_0x34fce1-0xfe,_0x58859b,_0x399512-0x25,_0x51ea65-0x147);}let _0x58720e;function _0x16cb5f(_0x5c25f0,_0x590485,_0x56e8bb,_0x298a57){return _0x1818aa(_0x5c25f0-_0x141743._0x535c03,_0x590485,_0x56e8bb-_0x141743._0x5e5806,_0x5c25f0-0x290);}let _0x556311;const _0x2957db=_0x588cda=>{function _0x3aa303(_0x21410b,_0x52efaf,_0x4e4f15,_0xc458d9){return _0x5ba7(_0x4e4f15-0x3d7,_0xc458d9);}function _0x210285(_0x40e0a5,_0x187924,_0x1944b8,_0x1c2549){return _0x5ba7(_0x187924-0x1db,_0x40e0a5);}const _0x2e8bbf=_0x588cda;try{_0x211e91[_0x210285(_0x2ed72d._0x402e13,_0x2ed72d._0x45f9aa,0x446,_0x2ed72d._0x5833e1)](JSON['parse'](String(_0x2e8bbf[_0x3aa303(_0x2ed72d._0x1bde21,0x645,0x571,_0x2ed72d._0x659c41)]))),_0x556311?.(),_0x556311=void 0x0;}catch(_0x10cf46){_0x58720e=new Error(_0x3aa303(0x5b7,_0x2ed72d._0x3ef30d,_0x2ed72d._0x3c18f4,_0x2ed72d._0x587e46)+toErrorMessage(_0x10cf46)),_0x556311?.(),_0x556311=void 0x0;}},_0x4bc964=_0x51b3f9=>{const _0x9f0fc4=_0x51b3f9;function _0x41456e(_0x2f3afe,_0x53ebe9,_0x51852e,_0x196241){return _0x5ba7(_0x196241-0x309,_0x2f3afe);}_0x58720e=new Error(_0x9f0fc4[_0x41456e(0x3c4,0x32c,0x376,0x3c8)]||_0x3ad78a(0x444,_0x516f38._0x252023,_0x516f38._0x16f8a6,_0x516f38._0x493071));function _0x3ad78a(_0x5d970c,_0x140a40,_0x62cef3,_0x16e850){return _0x5ba7(_0x62cef3-0x384,_0x16e850);}_0x556311?.(),_0x556311=void 0x0;},_0x275cb5=_0x5720a1=>{const _0x37d9f7=_0x5720a1;function _0x77784b(_0x1bffc9,_0x85434e,_0x1dc707,_0x366325){return _0x5ba7(_0x1bffc9- -0x1e2,_0x366325);}function _0x233a14(_0x43b985,_0x2e414c,_0x3e25ad,_0x374567){return _0x5ba7(_0x43b985-0x1d2,_0x374567);}!_0x588172&&_0x37d9f7['code']!==0x3e8&&!_0x58720e&&(_0x58720e=new Error(_0x37d9f7[_0x233a14(0x411,0x49f,_0x3035b3._0x4ef750,0x4a4)]||_0x233a14(_0x3035b3._0x4ef750,_0x3035b3._0x2c252e,_0x3035b3._0x15c634,_0x3035b3._0x9886)+_0x37d9f7[_0x77784b(_0x3035b3._0x4e6133,_0x3035b3._0x4f8ed9,_0x3035b3._0x5c9b57,-0x23)])),_0x588172=!![],_0x556311?.(),_0x556311=void 0x0;},_0x2a55a0=addAbortListener(_0x4cef19,()=>{const _0x2acd52={_0x2c160e:0x3b4};_0x58720e=toAbortError(_0x4cef19?.[_0x256f5d(_0x56799c._0x298a43,_0x56799c._0x2b741c,0x6ae,0x5f3)]);_0x459a0f[_0xf48115(-0x28d,-_0x56799c._0x94e07a,-0x2ba,-_0x56799c._0x1f4652)]===WebSocket[_0xf48115(-_0x56799c._0x9f04,-0x234,-0x212,-_0x56799c._0x580045)]&&_0x459a0f[_0xf48115(-_0x56799c._0x2d1c29,-0x131,-_0x56799c._0x486470,-_0x56799c._0xe24421)](0x3e8,_0x256f5d(_0x56799c._0x2e405e,_0x56799c._0xb50460,0x3f4,_0x56799c._0x2a78aa));_0x556311?.();function _0xf48115(_0x1e7790,_0x4edf7e,_0x2c99c2,_0x2650e1){return _0x5ba7(_0x4edf7e- -_0x52a9ec._0x10a904,_0x1e7790);}function _0x256f5d(_0x426bc7,_0x3c22ae,_0x491380,_0x57ff9b){return _0x5ba7(_0x57ff9b-_0x2acd52._0x2c160e,_0x426bc7);}_0x556311=void 0x0;});return _0x459a0f['addEventListener'](_0x16cb5f(_0x4fe73d._0xcdc83b,_0x4fe73d._0x223828,0x216,_0x4fe73d._0x351bba),_0x2957db),_0x459a0f['addEventListener'](_0x5377db(_0x4fe73d._0x2a436f,-_0x4fe73d._0x13e2f7,0x80,0x80),_0x4bc964),_0x459a0f[_0x5377db(_0x4fe73d._0x27723b,_0x4fe73d._0x5e9c30,_0x4fe73d._0x54f938,_0x4fe73d._0x55febc)](_0x16cb5f(0x2a9,0x302,0x352,_0x4fe73d._0x191d9e),_0x275cb5),{async*[Symbol[_0x16cb5f(0x1a4,_0x4fe73d._0x5109a6,0x1f1,0xf7)]](){const _0x45d712={_0x23698f:0x153};function _0x9316b4(_0x306b8f,_0x38ba3b,_0x457353,_0x24720b){return _0x16cb5f(_0x38ba3b- -0x12e,_0x457353,_0x457353-_0x45d712._0x23698f,_0x24720b-0x18c);}function _0x28892e(_0x487cb1,_0x5360ed,_0x52c237,_0x2c8920){return _0x16cb5f(_0x5360ed- -0x396,_0x52c237,_0x52c237-0xca,_0x2c8920-_0xd50c2b._0x203c94);}try{while(!![]){if(_0x58720e)throw _0x58720e;if(_0x211e91[_0x9316b4(0x1d4,_0x13bfb9._0x1131c6,_0x13bfb9._0xf8d257,0x14b)]>0x0){yield _0x211e91[_0x28892e(-0xab,-0x2e,_0x13bfb9._0x26a545,0x77)]();continue;}if(_0x588172)break;await new Promise(_0x2aec04=>{_0x556311=_0x2aec04;});}}finally{_0x459a0f[_0x9316b4(0x214,0x132,_0x13bfb9._0x518864,_0x13bfb9._0x9eba57)](_0x28892e(-_0x13bfb9._0x56c927,-0x1ff,-_0x13bfb9._0x2633b4,-0x252),_0x2957db),_0x459a0f[_0x28892e(-0x91,-_0x13bfb9._0x1b0d83,-_0x13bfb9._0x37061f,-0x1a0)](_0x28892e(-_0x13bfb9._0x4fb70a,-0x1cd,-0x216,-_0x13bfb9._0x5294d2),_0x4bc964),_0x459a0f[_0x9316b4(_0x13bfb9._0x36ed21,_0x13bfb9._0xbb2e2f,_0x13bfb9._0x2d97b4,_0x13bfb9._0x503a98)](_0x28892e(-0x11f,-_0x13bfb9._0x378fe3,-0x53,-_0x13bfb9._0x599232),_0x275cb5),_0x2a55a0();}}};}function toWebSocketUrl(_0x55323d,_0x7db17){const _0x513a68={_0x3aa1f7:0x26,_0x563da5:0x15,_0x5878e7:0x32,_0x207164:0x60,_0x165017:0x14a,_0x4306a2:0x3,_0x5e5831:0x1bf,_0x16e394:0x106,_0x800c31:0x3b,_0x4d1895:0x17,_0x37caa2:0xb1},_0xcc7280={_0x4c0fa4:0x8};function _0x292d8a(_0x141b2c,_0x4d6ac6,_0x5c4f53,_0x118eee){return _0x1818aa(_0x141b2c-0x180,_0x118eee,_0x5c4f53-0x2d,_0x5c4f53- -0xd0);}const _0xb72dc3=new URL(_0x7db17,_0x55323d);function _0x4d0cec(_0x5ede64,_0x5abff2,_0x68da17,_0x6e1778){return _0x1818aa(_0x5ede64-_0xcc7280._0x4c0fa4,_0x6e1778,_0x68da17-0xd9,_0x5ede64- -0xfe);}return _0xb72dc3[_0x292d8a(-_0x513a68._0x3aa1f7,_0x513a68._0x563da5,-_0x513a68._0x5878e7,-0x60)]=_0xb72dc3[_0x4d0cec(-_0x513a68._0x207164,-0x65,-_0x513a68._0x165017,_0x513a68._0x4306a2)]===_0x4d0cec(-0x1ce,-_0x513a68._0x5e5831,-0x29a,-_0x513a68._0x16e394)?'wss:':'ws:',_0xb72dc3[_0x4d0cec(-_0x513a68._0x800c31,_0x513a68._0x4d1895,-0x1e,_0x513a68._0x37caa2)]();}var ProviderSessionManager=class{['resolver'];[_0x2d9e9f(0x3e9,0x453,0x4a5,0x4ca)];constructor(_0x287b9c){this['resolver']=_0x287b9c;}async[_0x2d9e9f(0x4f7,0x3b9,0x461,0x4b3)](_0x407eb3){const _0x481fa5={_0xb07db0:0x10e,_0x36099e:0x3ba,_0x383b1f:0x368,_0x3d12d:0x415,_0x566579:0x351,_0x43986f:0x36f,_0x356a55:0x45c,_0x282d9a:0x21b},_0x132bdf={_0x7e612a:0x341,_0x410b48:0x411,_0x106673:0x40d,_0x24007c:0x3ec,_0x3a3849:0x33d},_0x39bd62={_0x119473:0xf9},_0x50e713={_0x1ed79d:0xac};function _0x509ad8(_0x2b5dee,_0x2e1093,_0x3a3c1b,_0x39b83f){return _0x1818aa(_0x2b5dee-_0x50e713._0x1ed79d,_0x39b83f,_0x3a3c1b-0x6b,_0x3a3c1b-0x106);}function _0x22c40a(_0x93121b,_0xe29559,_0x25dbbc,_0x52894a){return _0x2d9e9f(_0x93121b-0x2a,_0x52894a,_0xe29559- -_0x39bd62._0x119473,_0x52894a-0xce);}if(!this['cached']){const _0x4fa9b2=this[_0x509ad8(0x1a9,0x101,0x1d4,_0x481fa5._0xb07db0)][_0x22c40a(_0x481fa5._0x36099e,_0x481fa5._0x383b1f,_0x481fa5._0x3d12d,0x370)](_0x407eb3);_0x4fa9b2[_0x22c40a(_0x481fa5._0x566579,_0x481fa5._0x43986f,0x30a,_0x481fa5._0x356a55)](()=>{const _0x236233={_0x5895da:0x52};function _0xd08f78(_0x54cb19,_0x1a4bc4,_0x1358a5,_0x50efce){return _0x509ad8(_0x54cb19-0x178,_0x1a4bc4-0xdc,_0x50efce-0x235,_0x1358a5);}function _0xe4cf5d(_0x55221e,_0x13f4cc,_0x21e1a2,_0x36a8e8){return _0x509ad8(_0x55221e-_0x236233._0x5895da,_0x13f4cc-0x13c,_0x55221e- -0x230,_0x13f4cc);}this[_0xd08f78(_0x132bdf._0x7e612a,0x487,_0x132bdf._0x410b48,_0x132bdf._0x106673)]===_0x4fa9b2&&(this[_0xd08f78(_0x132bdf._0x24007c,_0x132bdf._0x3a3849,0x463,_0x132bdf._0x106673)]=void 0x0);}),this[_0x509ad8(_0x481fa5._0x282d9a,0x28a,0x1d8,0x1fc)]=_0x4fa9b2;}return structuredClone(await this['cached']);}[_0x1818aa(0x1b,0xd9,0x10f,0x68)](){const _0x2f67ff={_0x3dc1d3:0x15a,_0x48101e:0xff,_0x347113:0x7c};function _0x8f9c59(_0xea2847,_0x176be2,_0x4e2eaa,_0x7dbe0c){return _0x1818aa(_0xea2847-_0x2f67ff._0x3dc1d3,_0x4e2eaa,_0x4e2eaa-_0x2f67ff._0x48101e,_0x176be2- -_0x2f67ff._0x347113);}this[_0x8f9c59(0x102,0x56,-0x61,-0x1c)]=void 0x0;}};async function prepareProviderRequest(_0x239e65,_0x23cb1d={}){const _0x3d46fa={_0x521343:0x38,_0x44e042:0x83,_0x64acf3:0xaa,_0x5d1b4a:0x64,_0x405270:0xb6,_0x59bac9:0xf0,_0x498c57:0xde,_0x15f6f2:0xf2,_0x4d40a5:0x168},_0x2a3c80={_0x34da50:0x3c5,_0x110689:0x16},_0x1876fb={_0x51e357:0x1ea};function _0x24c395(_0x3eb5cd,_0x2fe872,_0x37889c,_0x15125b){return _0x1818aa(_0x3eb5cd-0x1d0,_0x37889c,_0x37889c-_0x1876fb._0x51e357,_0x2fe872- -0xa5);}let _0x541b96={'request':structuredClone(_0x239e65),'session':_0x23cb1d[_0x5545cf(-_0x3d46fa._0x521343,-0xe,-_0x3d46fa._0x44e042,-0xa4)]?await _0x23cb1d[_0x5545cf(0xd3,-0xe,_0x3d46fa._0x64acf3,_0x3d46fa._0x5d1b4a)][_0x24c395(-_0x3d46fa._0x405270,-0x17,-_0x3d46fa._0x59bac9,-_0x3d46fa._0x498c57)](_0x23cb1d[_0x5545cf(0xd6,-0xc,-_0x3d46fa._0x15f6f2,-0x5e)]):void 0x0};for(const _0x243044 of _0x23cb1d[_0x24c395(-_0x3d46fa._0x4d40a5,-0x122,-0x1e9,-0x1f9)]??[]){_0x541b96=await _0x243044(_0x541b96);}function _0x5545cf(_0xa5c446,_0x4ad36e,_0x4eb996,_0x52cad8){return _0x2d9e9f(_0xa5c446-0x1b9,_0xa5c446,_0x4ad36e- -_0x2a3c80._0x34da50,_0x52cad8-_0x2a3c80._0x110689);}return _0x541b96;}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{['model'];['maxTokens'];[_0x1818aa(-0x83,-0x4d,-0x19c,-0xb8)];['apiKey'];[_0x2d9e9f(0x394,0x321,0x3f9,0x407)];[_0x2d9e9f(0x34d,0x516,0x438,0x472)];[_0x1818aa(-0x1a1,-0x19c,-0x110,-0xe1)];[_0x2d9e9f(0x305,0x38a,0x356,0x2a7)];['router'];[_0x2d9e9f(0x44c,0x2f3,0x3b7,0x39a)];['webSocketFactory'];['surfaces']=new Map();constructor(_0x1dd66d){const _0x21d6f1={_0x43cd94:0x1da,_0x59cce8:0x1ab,_0x58f529:0x1c4,_0x5f18e1:0x129,_0x169419:0x161,_0x336a9d:0x20c,_0x238088:0x100,_0x15c0f1:0x1e6,_0x391025:0x1bc,_0x1372c2:0x1b8,_0x1a48f9:0x21a,_0x47cc6a:0x299,_0xdf6f07:0x1a1,_0x53c4ad:0x12f,_0x357a84:0x213,_0x126052:0x291,_0x45f7a4:0x188,_0x260a40:0x2c4,_0x50c85c:0x1ff,_0x346925:0x1b0,_0x3622c8:0x18c,_0x184d09:0x313,_0x27f486:0x3c5,_0x586389:0x3c6,_0x358ac6:0x1bd,_0x488fcc:0x132,_0x3d491c:0x145,_0x51e20a:0x146,_0x16cbbd:0x121,_0xdab086:0x67,_0x118ba1:0x221,_0x2943c2:0x1fc,_0x465346:0x18a,_0x48fee0:0xf5,_0x498c45:0xcc,_0x1584df:0x182,_0x123edb:0x1b6,_0x3a2b40:0x1c5,_0x5cefa0:0x2e0,_0x4d91b4:0x33f,_0x8ef263:0x241,_0x590373:0x268,_0x3a21c9:0xcd,_0x371182:0x11a,_0x585f18:0x272,_0x2d6be2:0x2ee,_0x24074b:0x336,_0x4a772c:0x3bd,_0x321114:0xe5,_0x2db1ac:0xab},_0x20cb48={_0x3bdc90:0xc5},_0x1a2764={_0x5adf93:0x148};this['model']=_0x1dd66d[_0x464ee9(_0x21d6f1._0x43cd94,_0x21d6f1._0x59cce8,0x21b,0x178)],this[_0x464ee9(_0x21d6f1._0x58f529,0x106,_0x21d6f1._0x5f18e1,_0x21d6f1._0x169419)]=_0x1dd66d[_0x464ee9(0x1c4,0x274,_0x21d6f1._0x336a9d,_0x21d6f1._0x238088)]??getDefaultMaxTokens(),this[_0x464ee9(_0x21d6f1._0x15c0f1,_0x21d6f1._0x391025,_0x21d6f1._0x1372c2,0x184)]=_0x1dd66d[_0x464ee9(0x1e6,_0x21d6f1._0x1a48f9,_0x21d6f1._0x47cc6a,0x2c8)]?structuredClone(_0x1dd66d[_0x479568(_0x21d6f1._0xdf6f07,0x148,0xe6,_0x21d6f1._0x53c4ad)]):void 0x0;function _0x464ee9(_0x529fe1,_0x1cf054,_0x220797,_0x47f6e2){return _0x1818aa(_0x529fe1-0x45,_0x47f6e2,_0x220797-_0x1a2764._0x5adf93,_0x529fe1-0x29e);}this[_0x464ee9(_0x21d6f1._0x357a84,0x1db,_0x21d6f1._0x126052,_0x21d6f1._0x45f7a4)]=_0x1dd66d['apiKey'],this[_0x464ee9(_0x21d6f1._0x260a40,0x338,0x30a,_0x21d6f1._0x50c85c)]=_0x1dd66d['baseUrl'];function _0x479568(_0x563f62,_0x47cad7,_0x36aa9b,_0x11ebf0){return _0x2d9e9f(_0x563f62-0x170,_0x47cad7,_0x36aa9b- -0x235,_0x11ebf0-_0x20cb48._0x3bdc90);}this[_0x479568(_0x21d6f1._0x346925,0x25f,0x203,0x236)]=_0x1dd66d[_0x479568(0x16d,_0x21d6f1._0x3622c8,_0x21d6f1._0x357a84,0x263)]??globalThis[_0x464ee9(_0x21d6f1._0x184d09,_0x21d6f1._0x27f486,_0x21d6f1._0x586389,0x3dd)],this[_0x464ee9(_0x21d6f1._0x358ac6,0x21d,_0x21d6f1._0x488fcc,_0x21d6f1._0x3d491c)]=_0x1dd66d['providerAdapter'],this[_0x479568(0x157,_0x21d6f1._0x51e20a,_0x21d6f1._0x16cbbd,_0x21d6f1._0xdab086)]=_0x1dd66d[_0x464ee9(_0x21d6f1._0x118ba1,_0x21d6f1._0x2943c2,_0x21d6f1._0x465346,0x151)]??[],this['router']=_0x1dd66d[_0x479568(0xab,0x174,0x163,0x139)],this[_0x479568(_0x21d6f1._0x48fee0,_0x21d6f1._0x498c45,_0x21d6f1._0x1584df,0x1b4)]=_0x1dd66d[_0x479568(_0x21d6f1._0x123edb,_0x21d6f1._0x3a2b40,0x182,0x1da)]??(_0x1dd66d['providerSessionResolver']?new ProviderSessionManager(_0x1dd66d['providerSessionResolver']):void 0x0),this[_0x464ee9(0x290,_0x21d6f1._0x5cefa0,_0x21d6f1._0x4d91b4,_0x21d6f1._0x8ef263)]=_0x1dd66d[_0x479568(_0x21d6f1._0x590373,_0x21d6f1._0x3a21c9,0x190,_0x21d6f1._0x371182)]??createDefaultWebSocketFactory();for(const _0x46d7b1 of _0x1dd66d[_0x464ee9(0x2ee,0x25d,_0x21d6f1._0x585f18,0x28e)]){this[_0x464ee9(_0x21d6f1._0x2d6be2,0x234,_0x21d6f1._0x24074b,_0x21d6f1._0x4a772c)][_0x479568(0x10f,0x99,_0x21d6f1._0x321114,_0x21d6f1._0x2db1ac)](_0x46d7b1['id'],_0x46d7b1);}}[_0x2d9e9f(0x500,0x515,0x449,0x470)](_0x558ee9,_0x42665b){const _0xb397b={_0x4c2006:0x1e},_0x27d857={_0x3972aa:0x114};function _0x31f7d5(_0x5da4e6,_0x13ef5e,_0x357c23,_0x54508c){return _0x1818aa(_0x5da4e6-0x26,_0x13ef5e,_0x357c23-0x1bb,_0x54508c- -_0x27d857._0x3972aa);}return this[_0x31f7d5(_0xb397b._0x4c2006,0x28,0x24,-0x8c)](_0x558ee9,_0x42665b);}[_0x1818aa(-0x161,-0xb4,-0x36,-0xaa)](_0x887fc1,_0x1a88d4){return this['streamViaRouter'](_0x887fc1,_0x1a88d4);}async['completeViaRouter'](_0x6359ad,_0x280be1){const _0x5bc7ce={_0x337cef:0x163,_0x139299:0x234,_0x5ada50:0x127},_0x2a548d={_0x99c58:0x1b8},_0x2be6e2={_0x3bf6d1:0x72},_0x2f2dac=this['applyModelDefaults'](_0x6359ad),_0x49e8b8=await this['router'][_0x412088(-_0x5bc7ce._0x337cef,-0x230,-0x15b,-_0x5bc7ce._0x139299)](_0x2f2dac,{'mode':_0x412088(-0x117,-0x25c,-_0x5bc7ce._0x5ada50,-0x1af)});function _0x3c1164(_0x309f6e,_0x1a61d6,_0x2d8a4f,_0x458baf){return _0x1818aa(_0x309f6e-_0x2be6e2._0x3bf6d1,_0x458baf,_0x2d8a4f-0x10d,_0x309f6e-0x36d);}function _0x412088(_0x1fe71c,_0x3ee49a,_0x3d6a6d,_0x2950ac){return _0x2d9e9f(_0x1fe71c-0x8b,_0x3d6a6d,_0x2950ac- -0x5f8,_0x2950ac-_0x2a548d._0x99c58);}return this['completeViaSurface'](_0x2f2dac,_0x49e8b8,_0x280be1);}async*['streamViaRouter'](_0x2463ba,_0x5622b2){const _0x42399d={_0x59476d:0x279,_0x5642fa:0x2b7,_0x5852de:0x232,_0x3bf05c:0x36c},_0xf4e0df={_0x249142:0x159,_0x346d4c:0x17d},_0x1a6c4b={_0x2bb5a9:0xdf,_0x24d82f:0x91,_0x894a8e:0x1c1},_0x25c7bb=this[_0x2d1096(0x1d2,0x192,_0x42399d._0x59476d,0x200)](_0x2463ba);function _0x2d1096(_0x551044,_0x127df8,_0x510a97,_0x5e77aa){return _0x2d9e9f(_0x551044-_0x1a6c4b._0x2bb5a9,_0x127df8,_0x510a97- -_0x1a6c4b._0x24d82f,_0x5e77aa-_0x1a6c4b._0x894a8e);}function _0x4975d3(_0x235c07,_0x2c0e38,_0x25ed70,_0x141bc1){return _0x1818aa(_0x235c07-_0xf4e0df._0x249142,_0x2c0e38,_0x25ed70-_0xf4e0df._0x346d4c,_0x141bc1-0x26d);}const _0x35bff8=await this[_0x4975d3(0x198,0x14b,_0x42399d._0x5642fa,_0x42399d._0x5852de)]['selectSurface'](_0x25c7bb,{'mode':'stream'});yield*this[_0x2d1096(0x4d8,_0x42399d._0x3bf05c,0x40d,0x42c)](_0x25c7bb,_0x35bff8,_0x5622b2);}async[_0x1818aa(-0x7c,-0x3e,-0x88,-0xb6)](_0x2ca0e4,_0x51c4f7,_0x1f6106){const _0x28e274={_0x52f468:0x301,_0x25bb46:0x2cf,_0x49ea57:0x2a1,_0x3ef5b1:0x3e0,_0x454088:0x406,_0x1549fb:0x3cd,_0x2cb1c2:0x2da,_0x42eb67:0x212,_0x473592:0x37a,_0x1b4a85:0x2fe,_0x2d035d:0x3ea,_0x48c7fb:0x329,_0x46a92b:0x3db,_0x22b9a1:0x3fd,_0x1d448c:0x41f,_0x43e076:0x421,_0x40af66:0x3b0,_0x5f59ae:0x3bd,_0xc21c77:0x3b3,_0x3b9443:0x325,_0x5c8979:0x2c8,_0x3da10d:0x2e7,_0x11b2be:0x440,_0x14a296:0x515,_0x183040:0x287,_0x2e30c5:0x475,_0x41c86e:0x3e3,_0x20fffb:0x554,_0x539774:0x3fd,_0x208127:0x363,_0x4bac83:0x49a,_0x375081:0x328,_0x5e5e2c:0x3b7,_0x5ebe33:0x3a2},_0x37efdb={_0x3b685d:0x1c0},_0x5b67cb={_0xc406e6:0x1b8,_0x4c8d7a:0x2f,_0xd95a3e:0xfe},_0x101e34=this[_0x46f8d2(_0x28e274._0x52f468,_0x28e274._0x25bb46,0x265,_0x28e274._0x49ea57)](_0x2ca0e4),_0x3ef19c=this[_0x46f8d2(_0x28e274._0x3ef5b1,0x3bd,_0x28e274._0x454088,0x304)](_0x51c4f7);if(_0x3ef19c[_0x46f8d2(0x3c6,0x37c,_0x28e274._0x1549fb,0x43c)]===_0x125ddc(_0x28e274._0x2cb1c2,_0x28e274._0x42eb67,0x39e,_0x28e274._0x473592)){const _0x35427d=await this[_0x46f8d2(_0x28e274._0x1b4a85,0x362,_0x28e274._0x2d035d,_0x28e274._0x48c7fb)](_0x101e34,_0x3ef19c,![],_0x1f6106);if(!_0x35427d['ok'])throw await this[_0x125ddc(0x45a,_0x28e274._0x46a92b,0x506,0x4ab)](_0x35427d);if(!_0x3ef19c[_0x125ddc(0x330,0x269,0x412,0x3e8)])throw new Error(_0x46f8d2(_0x28e274._0x22b9a1,_0x28e274._0x1d448c,0x41b,0x3cb)+_0x51c4f7+_0x125ddc(_0x28e274._0x43e076,0x366,0x35d,_0x28e274._0x40af66));return _0x3ef19c[_0x46f8d2(0x356,_0x28e274._0x5f59ae,_0x28e274._0xc21c77,0x420)](await _0x35427d[_0x125ddc(_0x28e274._0x3b9443,0x2e0,_0x28e274._0x5c8979,_0x28e274._0x3da10d)](),_0x101e34);}let _0x35de54;function _0x125ddc(_0x4ef644,_0x2e1b98,_0x21def4,_0x113ec4){return _0x2d9e9f(_0x4ef644-_0x5b67cb._0xc406e6,_0x21def4,_0x4ef644- -_0x5b67cb._0x4c8d7a,_0x113ec4-_0x5b67cb._0xd95a3e);}for await(const _0x2c8524 of this['streamViaSurface'](_0x101e34,_0x51c4f7,_0x1f6106)){_0x2c8524[_0x125ddc(_0x28e274._0x11b2be,0x3ef,_0x28e274._0x14a296,0x3fd)]===_0x46f8d2(0x340,_0x28e274._0x183040,0x280,0x2f6)&&(_0x35de54=_0x2c8524[_0x46f8d2(_0x28e274._0x2e30c5,0x4b3,_0x28e274._0x41c86e,_0x28e274._0x20fffb)]);}function _0x46f8d2(_0x52e7d5,_0x5236fa,_0x49b6e5,_0x1d4bd3){return _0x1818aa(_0x52e7d5-_0x37efdb._0x3b685d,_0x1d4bd3,_0x49b6e5-0x69,_0x52e7d5-0x3ca);}if(!_0x35de54)throw new Error(_0x46f8d2(_0x28e274._0x539774,_0x28e274._0x208127,_0x28e274._0x4bac83,0x31e)+_0x51c4f7+_0x125ddc(0x31d,_0x28e274._0x375081,_0x28e274._0x5e5e2c,_0x28e274._0x5ebe33));return _0x35de54;}async*['streamViaSurface'](_0x3f9b78,_0x599421,_0x40b833){const _0x5553cb={_0x27c525:0x85,_0x2eedc9:0x15a,_0x1fbbf2:0x20c,_0xc5e23b:0x27e,_0x1325b3:0x1e1,_0x3745f5:0x2d5,_0x11e3f5:0x1e0,_0x500592:0x1b2,_0x3edacd:0x182,_0x1b33de:0x7d,_0x3443b2:0xf3,_0x5a8c40:0x75,_0x1b97cd:0x1bf,_0x2c7083:0xca,_0x54335b:0x105,_0x5ae7b3:0x24e,_0x535c07:0x2fc},_0x984ea0={_0xc63919:0x1ad,_0x640f08:0x1e,_0x51a951:0x156},_0x524e7c={_0x2e92cd:0x2dc,_0xb7a0a8:0x6c},_0x496313=this[_0x20471e(0x75,0xb5,_0x5553cb._0x27c525,0x2e)](_0x3f9b78),_0x1567de=this['getSurface'](_0x599421);function _0x20471e(_0x53eeaa,_0x1b67b9,_0x273996,_0x5b96c5){return _0x2d9e9f(_0x53eeaa-0x7c,_0x273996,_0x5b96c5- -_0x524e7c._0x2e92cd,_0x5b96c5-_0x524e7c._0xb7a0a8);}function _0x2f2b6a(_0x448d90,_0x31cc6d,_0x30b2e7,_0x4b27e6){return _0x1818aa(_0x448d90-_0x984ea0._0xc63919,_0x4b27e6,_0x30b2e7-_0x984ea0._0x640f08,_0x448d90- -_0x984ea0._0x51a951);}if(_0x1567de[_0x2f2b6a(-_0x5553cb._0x2eedc9,-0x8d,-0x171,-0xbf)]==='http-json'){const _0x1addc2=await this[_0x2f2b6a(-_0x5553cb._0x1fbbf2,-_0x5553cb._0xc5e23b,-_0x5553cb._0x1325b3,-_0x5553cb._0x3745f5)](_0x496313,_0x599421,_0x40b833);yield{'type':_0x2f2b6a(-_0x5553cb._0x11e3f5,-0x26d,-_0x5553cb._0x500592,-_0x5553cb._0x3edacd),'response':_0x1addc2};return;}if(_0x1567de[_0x20471e(_0x5553cb._0x1b33de,0x21,0x89,_0x5553cb._0x3443b2)]===_0x2f2b6a(-0xea,-0xa3,-_0x5553cb._0x5a8c40,-_0x5553cb._0x1b97cd)){yield*this[_0x2f2b6a(-_0x5553cb._0x2c7083,-0xf,-0x19a,-_0x5553cb._0x54335b)](_0x496313,_0x1567de,_0x40b833);return;}yield*this[_0x2f2b6a(-_0x5553cb._0x5ae7b3,-_0x5553cb._0x535c07,-0x29c,-0x31c)](_0x496313,_0x1567de,_0x40b833?.['signal']);}async['sendRawRequest'](_0x58912d){const _0x1ddf4d={_0x2acff5:0x40},_0x101f08={_0x392446:0x84,_0x4a9c72:0xda},_0x2005a6={_0x35d673:0x16e,_0x3724fc:0xdf,_0x5c54c5:0x8f,_0x58db52:0xa4,_0x1090d2:0x173,_0x2194e3:0x97,_0x43de85:0x21d,_0x318a93:0x1d,_0x4672d1:0x1c9,_0x3e246e:0x175,_0x35bd93:0x171,_0xa0f6e2:0xda,_0x54fef2:0x54,_0x359955:0xff,_0x59a45b:0xe7,_0x307e3e:0x1bd,_0x33180e:0x288,_0x252b32:0x175,_0x4fede9:0xc2,_0x4c8547:0x1ce,_0xc81a2:0x2b7,_0x26b6c0:0x21,_0x4438dd:0x21,_0x465a7a:0xa0,_0x40af09:0x2e9,_0x26eabd:0x242,_0x4a8f68:0x228,_0x23c61a:0x2c7,_0xfbc2d:0x2c,_0x5d637d:0xa9,_0x4ce6a2:0x17,_0x4d5ae7:0x18c,_0x404dfa:0x46,_0x57f071:0x121,_0x22eda4:0x146,_0x1ba74c:0x22c,_0x382d5a:0x24d,_0x49a0c7:0xf0,_0x1e3514:0x1a4,_0x2136af:0x267,_0x515788:0x1db,_0x4a773c:0x1ac,_0x4bd970:0xe5,_0x4ecb51:0x78,_0x61ac84:0x1a6,_0x1c8c24:0x1c9,_0x496fac:0x1b3,_0x463e25:0x170,_0x47202f:0xa7},_0x240bc7={_0x11cf85:0x29},_0x4659f3={_0x127c7f:0x2e},_0x55f781=async()=>{const _0x555a4b=this[_0x5b6d0b(0x192,_0x2005a6._0x35d673,0x220,_0x2005a6._0x3724fc)]?await this[_0x315b0f(_0x2005a6._0x5c54c5,_0x2005a6._0x58db52,_0x2005a6._0x1090d2,_0x2005a6._0x2194e3)][_0x315b0f(0x2cf,0x14a,_0x2005a6._0x43de85,0x26c)](_0x58912d['signal']):void 0x0;function _0x5b6d0b(_0x4adf7e,_0x1a56f3,_0xa1fba1,_0xf3bbce){return _0x5ba7(_0x1a56f3- -_0x4659f3._0x127c7f,_0xf3bbce);}const _0x3c9f6f=this[_0x5b6d0b(_0x2005a6._0x318a93,0xa9,-0x2c,0x2d)][_0x5b6d0b(_0x2005a6._0x4672d1,_0x2005a6._0x3e246e,_0x2005a6._0x35bd93,_0x2005a6._0xa0f6e2)](this[_0x5b6d0b(_0x2005a6._0x54fef2,_0x2005a6._0x359955,0x10d,0x1bd)],_0x555a4b);if(!_0x3c9f6f)throw this[_0x315b0f(_0x2005a6._0x59a45b,0x1cd,_0x2005a6._0x307e3e,_0x2005a6._0x33180e)]();const _0x47c390=await this[_0x315b0f(0x19,_0x2005a6._0x252b32,_0x2005a6._0x4fede9,0x1a)]({'body':_0x58912d[_0x315b0f(0x27c,0x1ad,_0x2005a6._0x4c8547,_0x2005a6._0xc81a2)],'credential':_0x3c9f6f,'session':_0x555a4b,'stream':![]},{'accept':_0x58912d['accept']??_0x315b0f(_0x2005a6._0x26b6c0,_0x2005a6._0x4438dd,_0x2005a6._0x465a7a,0x42),'includeContentType':_0x58912d['method']===_0x5b6d0b(_0x2005a6._0x40af09,_0x2005a6._0x26eabd,0x22a,_0x2005a6._0x4a8f68)});function _0x315b0f(_0x365aff,_0x4b6418,_0x349213,_0x7ecb25){return _0x5ba7(_0x349213- -_0x240bc7._0x11cf85,_0x7ecb25);}return this[_0x315b0f(_0x2005a6._0x23c61a,0x179,0x1f4,0x17a)](''+this[_0x5b6d0b(_0x2005a6._0xfbc2d,_0x2005a6._0x5d637d,-_0x2005a6._0x4ce6a2,-0x1a)][_0x315b0f(_0x2005a6._0x4d5ae7,_0x2005a6._0x404dfa,_0x2005a6._0x57f071,_0x2005a6._0x22eda4)](this['baseUrl'],_0x555a4b)+_0x58912d[_0x5b6d0b(0x269,0x188,_0x2005a6._0x1ba74c,_0x2005a6._0x382d5a)],{'method':_0x58912d[_0x315b0f(_0x2005a6._0x49a0c7,_0x2005a6._0x1e3514,0xcf,0x18c)],'headers':_0x47c390,..._0x58912d[_0x315b0f(_0x2005a6._0x2136af,_0x2005a6._0x515788,0x1ce,_0x2005a6._0x4a773c)]!==void 0x0?{'body':JSON[_0x315b0f(_0x2005a6._0x4bd970,_0x2005a6._0x4ecb51,0x15d,0x188)](_0x58912d[_0x315b0f(_0x2005a6._0x61ac84,0x299,0x1ce,_0x2005a6._0x1c8c24)])}:{},'signal':_0x58912d[_0x5b6d0b(_0x2005a6._0x496fac,_0x2005a6._0x463e25,0x98,_0x2005a6._0x47202f)]});};function _0x5d2966(_0x28571a,_0x39f4ee,_0x420680,_0x13f05c){return _0x1818aa(_0x28571a-_0x101f08._0x392446,_0x13f05c,_0x420680-_0x101f08._0x4a9c72,_0x28571a-0x49);}return await this[_0x5d2966(0x6c,0x7a,-_0x1ddf4d._0x2acff5,0xbb)](_0x55f781,_0x58912d);}[_0x2d9e9f(0x319,0x22d,0x315,0x327)](_0x1a18f0,_0x592a7c){const _0x5b5a7e={_0x40a8be:0x19f,_0x239a33:0x184,_0x27b954:0x1d8,_0x2a3828:0x227,_0x464251:0x275,_0x33c9f7:0x161,_0x11e30a:0x21a,_0x2a8bde:0x150,_0x4dbe78:0x22c,_0x4e7aab:0x39c,_0x3286f6:0x2ef},_0x2ba02a={_0x3dbb4e:0x1cc,_0x313558:0x1c2},_0x5cca47=_0x1a18f0?.['headers'][_0x3475c3(-0x1f0,-0x1cc,-0x20d,-_0x5b5a7e._0x40a8be)](_0x3475c3(-0x1d3,-_0x5b5a7e._0x239a33,-_0x5b5a7e._0x27b954,-0x168));function _0x3475c3(_0x930606,_0x5d6f6d,_0x2d6575,_0x43f28b){return _0x2d9e9f(_0x930606-0x161,_0x5d6f6d,_0x930606- -0x5c6,_0x43f28b-0xbf);}if(_0x5cca47){const _0x2745a5=Number(_0x5cca47);if(Number[_0x3475c3(-_0x5b5a7e._0x2a3828,-0x302,-_0x5b5a7e._0x464251,-0x279)](_0x2745a5)&&_0x2745a5>=0x0)return _0x2745a5*0x3e8;const _0x559a01=Date[_0x3475c3(-_0x5b5a7e._0x33c9f7,-_0x5b5a7e._0x11e30a,-_0x5b5a7e._0x2a8bde,-_0x5b5a7e._0x4dbe78)](_0x5cca47);if(Number['isFinite'](_0x559a01))return Math[_0x3475c3(-0x2ed,-0x3d6,-_0x5b5a7e._0x4e7aab,-_0x5b5a7e._0x3286f6)](0x0,_0x559a01-Date['now']());}function _0x4a6360(_0x38b89c,_0x2584a6,_0x2747e2,_0x998add){return _0x2d9e9f(_0x38b89c-_0x2ba02a._0x3dbb4e,_0x998add,_0x2747e2-0x77,_0x998add-_0x2ba02a._0x313558);}const _0x4dc912=DEFAULT_RETRY_DELAY_MS*0x2**_0x592a7c;if(_0x4dc912<RETRY_DELAY_STEP_CAP_MS)return _0x4dc912;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x592a7c-0x5);}[_0x1818aa(-0x32,-0x135,-0x178,-0xcf)](_0x3127a2){const _0x230542={_0x530f86:0x3ea,_0x2db253:0xd};function _0x2af86e(_0x32e7f0,_0x203d03,_0x138213,_0x1baf38){return _0x2d9e9f(_0x32e7f0-0x52,_0x32e7f0,_0x1baf38- -_0x230542._0x530f86,_0x1baf38-_0x230542._0x2db253);}return RETRYABLE_HTTP_STATUSES[_0x2af86e(-0x136,-0x13e,-0x3d,-0x68)](_0x3127a2['status']);}[_0x2d9e9f(0x406,0x487,0x477,0x48d)](_0x391bf5){return!isAbortError(_0x391bf5)&&_0x391bf5 instanceof TypeError;}[_0x1818aa(0x10,-0x13f,-0xdd,-0x8d)](_0x1309a6){const _0x584f0a={_0x27150b:0x616,_0x4fd5b1:0x5ea};function _0x49496a(_0x4a416d,_0x1b56a0,_0x40b6ea,_0x1f8da9){return _0x1818aa(_0x4a416d-0x16c,_0x40b6ea,_0x40b6ea-0x33,_0x1f8da9-0x546);}return this[_0x49496a(_0x584f0a._0x27150b,0x5a1,0x5ac,_0x584f0a._0x4fd5b1)](_0x1309a6)||isRetryableProviderStreamEventError(_0x1309a6);}async[_0x2d9e9f(0x34f,0x3fe,0x319,0x3df)](_0x8ae81,_0x3623ba){const _0x2dbf5f={_0x5f163c:0x114};throwIfAborted(_0x3623ba),await new Promise((_0x4f0508,_0x591d71)=>{const _0x561b4f={_0x8d76a9:0x26b};let _0x229214=![];const _0x4797a1=addAbortListener(_0x3623ba,()=>{if(_0x229214)return;_0x229214=!![];function _0x5404be(_0x25aa7d,_0x53337a,_0x2dec89,_0x1483a1){return _0x5ba7(_0x2dec89- -_0x561b4f._0x8d76a9,_0x53337a);}clearTimeout(_0x53d85a),_0x591d71(toAbortError(_0x3623ba?.[_0x5404be(-0xf6,-_0x2dbf5f._0x5f163c,-0x2c,-0x3d)]));}),_0x53d85a=setTimeout(()=>{_0x229214=!![],_0x4797a1(),_0x4f0508();},_0x8ae81);}),throwIfAborted(_0x3623ba);}async[_0x2d9e9f(0x39a,0x49a,0x3f6,0x48f)](_0x338321,_0x45b679={}){const _0x25d3af={_0x7613e2:0xed,_0xd00756:0xb,_0x46dd91:0x127,_0x23343b:0x1a2,_0x22e351:0x1f9,_0x1b1031:0xc4,_0x38df44:0xa9,_0x5c346b:0x1d1,_0x2ba34f:0x15a,_0x1aff6f:0x207,_0x13a359:0x204,_0x4fca68:0x101,_0x3326d1:0x21a,_0x2af56a:0x19f,_0x11564c:0x2f,_0x532b08:0x87,_0x581d6c:0x68,_0x5d374c:0x227,_0xbf0ea8:0xc8,_0x50d324:0x149,_0x388240:0x23d,_0x13ac8d:0x203},_0x44764b={_0x38a261:0x127},_0x268528={_0x101656:0x18f};function _0x4ac48e(_0x45c3b9,_0x3b4d41,_0x5e6c0e,_0x4114ba){return _0x1818aa(_0x45c3b9-_0x268528._0x101656,_0x4114ba,_0x5e6c0e-0xaf,_0x45c3b9- -0x18f);}const {signal:_0x1dd3a1}=_0x45b679;let _0x59c091=![];function _0x54ca14(_0x33b5f9,_0x5669a6,_0x4ad746,_0x4da866){return _0x2d9e9f(_0x33b5f9-_0x44764b._0x38a261,_0x33b5f9,_0x4da866- -0x45e,_0x4da866-0x4f);}for(let _0x115286=0x0;_0x115286<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x115286+=0x1){throwIfAborted(_0x1dd3a1);try{const _0x2eed48=await _0x338321();if(_0x2eed48[_0x4ac48e(-0x11b,-0x4e,-0x68,-0x179)]===0x191&&this['sessionManager']&&!_0x59c091){_0x59c091=!![],this[_0x54ca14(-0x30,-_0x25d3af._0x7613e2,_0x25d3af._0xd00756,-0xa7)][_0x4ac48e(-_0x25d3af._0x46dd91,-_0x25d3af._0x23343b,-0xf6,-_0x25d3af._0x22e351)]();continue;}if(!this[_0x54ca14(-_0x25d3af._0x1b1031,-_0x25d3af._0x38df44,-_0x25d3af._0x5c346b,-_0x25d3af._0x2ba34f)](_0x2eed48)||_0x115286===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x2eed48;const _0x2b9361=this[_0x4ac48e(-0x24d,-_0x25d3af._0x1aff6f,-_0x25d3af._0x13a359,-0x28a)](_0x2eed48,_0x115286);await this[_0x54ca14(-_0x25d3af._0x4fca68,-_0x25d3af._0x3326d1,-_0x25d3af._0x2af56a,-0x145)](_0x2b9361,_0x1dd3a1);}catch(_0x2a602b){if(!this[_0x54ca14(-_0x25d3af._0x11564c,-0xcd,-_0x25d3af._0x532b08,0x19)](_0x2a602b)||_0x115286===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x2a602b;const _0x5eca29=this[_0x54ca14(-_0x25d3af._0x581d6c,-_0x25d3af._0x5d374c,-_0x25d3af._0xbf0ea8,-_0x25d3af._0x50d324)](void 0x0,_0x115286);await this['waitForRetry'](_0x5eca29,_0x1dd3a1);}}throw new Error(_0x4ac48e(-0x188,-0x14e,-_0x25d3af._0x388240,-_0x25d3af._0x13ac8d));}[_0x2d9e9f(0x4ae,0x497,0x401,0x452)](){const _0x313699={_0x5a8308:0x47,_0x317386:0x6a},_0x34a0e7={_0x1a3f15:0x112,_0xeb2333:0x1e0,_0x329802:0x18a};function _0x1cd324(_0x2f0172,_0x55bc19,_0x2b0db8,_0x49ab7f){return _0x2d9e9f(_0x2f0172-_0x34a0e7._0x1a3f15,_0x55bc19,_0x2b0db8- -_0x34a0e7._0xeb2333,_0x49ab7f-_0x34a0e7._0x329802);}return this[_0x1cd324(_0x313699._0x5a8308,0x1dd,0x112,_0x313699._0x317386)]['createMissingCredentialError']();}async[_0x2d9e9f(0x254,0x29e,0x306,0x232)](_0x279254,_0x543622){const _0x4428f5={_0x404a0d:0x3a3,_0x53a521:0x2f7,_0x3aefc0:0x2ca,_0xf45b55:0x4a4,_0x22e6c4:0x3b7,_0x414a1d:0x388},_0x3c2b6d={_0x3ff8f8:0x55,_0x8ab461:0xb1,_0x5764f6:0x1c0},_0x1358f6={_0x3e0550:0x100,_0x434764:0x93};function _0x4946df(_0x2b6b77,_0x139c62,_0x3d317d,_0x26d8d2){return _0x2d9e9f(_0x2b6b77-_0x1358f6._0x3e0550,_0x139c62,_0x3d317d-_0x1358f6._0x434764,_0x26d8d2-0xb);}function _0x451adb(_0x463b85,_0x583914,_0x24e7a0,_0x4e65ce){return _0x2d9e9f(_0x463b85-_0x3c2b6d._0x3ff8f8,_0x4e65ce,_0x583914-_0x3c2b6d._0x8ab461,_0x4e65ce-_0x3c2b6d._0x5764f6);}return await this[_0x451adb(0x3e1,_0x4428f5._0x404a0d,_0x4428f5._0x53a521,_0x4428f5._0x3aefc0)][_0x451adb(_0x4428f5._0xf45b55,_0x4428f5._0x22e6c4,0x2e5,_0x4428f5._0x414a1d)](_0x279254,_0x543622);}[_0x1818aa(0x4c,-0xfe,-0xf4,-0x58)](_0x19c778){const _0x4420f6={_0x4b1805:0x18d,_0x3eaba6:0x3e3,_0x506644:0x3a5},_0x571038={_0x3661ea:0x1a5};function _0x158136(_0x59acc,_0x275181,_0x4ed800,_0x39346f){return _0x1818aa(_0x59acc-_0x571038._0x3661ea,_0x39346f,_0x4ed800-0x1f1,_0x4ed800-0x26e);}function _0x1ffa8c(_0x16cb91,_0x4871e2,_0x23a394,_0x3fd91d){return _0x1818aa(_0x16cb91-0x151,_0x16cb91,_0x23a394-0x92,_0x3fd91d-0x3a6);}return this[_0x158136(0x1a8,0x248,_0x4420f6._0x4b1805,0x103)][_0x1ffa8c(0x315,_0x4420f6._0x3eaba6,_0x4420f6._0x506644,0x34e)](_0x19c778);}async[_0x1818aa(0xe4,0x11b,0x193,0xb6)](_0x2cc158){const _0x203303={_0x39ec02:0x117,_0x4c675a:0x135},_0x55fbec={_0x4d7002:0xde};function _0x100ead(_0x5bf141,_0x580b70,_0xbe7cc2,_0x4b5f4d){return _0x1818aa(_0x5bf141-_0x55fbec._0x4d7002,_0x5bf141,_0xbe7cc2-0xa4,_0x580b70-0x61);}return await this['providerAdapter'][_0x100ead(0x1d2,_0x203303._0x39ec02,_0x203303._0x4c675a,0x67)](_0x2cc158);}[_0x2d9e9f(0x333,0x49d,0x3e9,0x364)](_0x4cb755){const _0x3b8396={_0x3527c7:0x5ff},_0x5cf0f3={_0x1a0ce2:0x14b},_0x5ebfbf={_0x28f90f:0x56b};function _0x5032a4(_0x591d58,_0x2c6418,_0x4ecb93,_0x470c13){return _0x1818aa(_0x591d58-0xc2,_0x2c6418,_0x4ecb93-0x2e,_0x470c13-_0x5ebfbf._0x28f90f);}function _0x60c74e(_0x2780f9,_0x37b301,_0x2475af,_0x59f0e9){return _0x1818aa(_0x2780f9-_0x5cf0f3._0x1a0ce2,_0x59f0e9,_0x2475af-0x8,_0x2475af-0x325);}const _0x3f086f=this[_0x5032a4(0x68a,0x68b,_0x3b8396._0x3527c7,0x5bb)]['get'](_0x4cb755);if(!_0x3f086f)throw new Error(_0x5032a4(0x4cc,0x512,0x5e9,0x51b)+_0x4cb755);return _0x3f086f;}async[_0x1818aa(-0xb8,-0x6b,0x93,0xe)](_0x10a40a,_0x212dc1){const _0x5b8383={_0x2d3a24:0x190,_0x485aad:0x2e9,_0x172f7a:0x1c2,_0x4b5427:0x243,_0x385c2a:0x174,_0x4b004e:0x2a,_0x243927:0x187,_0x5ef5db:0x244,_0x5c759a:0x200,_0x1fd024:0x86,_0x377233:0x12c,_0x530f4b:0x31,_0x345b55:0x249,_0xda92e2:0x30a,_0x165d70:0x144,_0x4a9e31:0x146},_0x5b5b14={_0x2e60b0:0x601,_0x2f7f81:0x39},_0x3a9944={_0x5e6c5b:0x9a,_0x5768da:0x4};function _0x1c3eac(_0x27be2c,_0x23f456,_0x50d6ed,_0x4b1d79){return _0x1818aa(_0x27be2c-_0x3a9944._0x5e6c5b,_0x4b1d79,_0x50d6ed-_0x3a9944._0x5768da,_0x27be2c- -0x18);}const _0x36b835=toModelRequest(_0x10a40a),_0x546642=await prepareProviderRequest(_0x36b835,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x212dc1}),_0x48d0f1=toChatRequest(_0x546642[_0x2d3da2(-_0x5b8383._0x2d3a24,-0x266,-0x214,-_0x5b8383._0x485aad)]),_0x42ad90=this['providerAdapter'][_0x2d3da2(-_0x5b8383._0x172f7a,-0x254,-_0x5b8383._0x4b5427,-_0x5b8383._0x385c2a)](this[_0x1c3eac(-0xa3,_0x5b8383._0x4b004e,-_0x5b8383._0x243927,-0x5d)],_0x546642['session']);function _0x2d3da2(_0x37d7f2,_0x277642,_0x59f32e,_0x3d8b36){return _0x2d9e9f(_0x37d7f2-0x101,_0x277642,_0x59f32e- -_0x5b5b14._0x2e60b0,_0x3d8b36-_0x5b5b14._0x2f7f81);}if(!_0x42ad90)throw this[_0x2d3da2(-0x126,-_0x5b8383._0x5ef5db,-_0x5b8383._0x5c759a,-0x286)]();return{'baseUrl':this['providerAdapter'][_0x1c3eac(-_0x5b8383._0x1fd024,-_0x5b8383._0x377233,0x29,-_0x5b8383._0x530f4b)](this['baseUrl'],_0x546642[_0x2d3da2(-0x352,-_0x5b8383._0x345b55,-_0x5b8383._0xda92e2,-0x306)]),'credential':_0x42ad90,'request':_0x48d0f1,'session':_0x546642[_0x1c3eac(-0xf4,-_0x5b8383._0x165d70,-0x139,-_0x5b8383._0x4a9e31)]};}['applyModelDefaults'](_0x33c12d){const _0x47503a={_0xb30822:0x1b5,_0x1fb0d3:0x10d,_0x27c080:0x16a,_0x4f1d28:0x252,_0x2d803a:0x252,_0x1dfc21:0x16a,_0x3dfb5c:0x119},_0xa6f4d4={_0x4a1663:0x334},_0x52a33f={_0x5085f8:0x9b,_0x4d98e9:0x222};function _0x41c0b6(_0x263596,_0x354953,_0xbfd44c,_0x1da4c1){return _0x1818aa(_0x263596-_0x52a33f._0x5085f8,_0x354953,_0xbfd44c-0x83,_0xbfd44c-_0x52a33f._0x4d98e9);}function _0x9020d7(_0x44bcad,_0x38a66a,_0x176401,_0x236be8){return _0x2d9e9f(_0x44bcad-0x11,_0x44bcad,_0x176401- -_0xa6f4d4._0x4a1663,_0x236be8-0x1eb);}return{...structuredClone(_0x33c12d),..._0x33c12d[_0x41c0b6(_0x47503a._0xb30822,_0x47503a._0x1fb0d3,_0x47503a._0x27c080,_0x47503a._0x4f1d28)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x41c0b6(_0x47503a._0x2d803a,0x179,_0x47503a._0x1dfc21,_0x47503a._0x3dfb5c)])}:{}};}async[_0x1818aa(-0x156,-0x11e,0x8,-0xcc)](_0x3dcb0c,_0x516748,_0x45cf03,_0x5954e8={},_0x296dfb=!![]){const _0x312e0e={_0xc761d0:0xb6,_0x50ae8b:0xdb},_0x5d2394={_0x176e58:0xbb,_0x195788:0x134,_0x56d062:0xef,_0x321f27:0x45,_0x2ea037:0x97,_0x3faa98:0x45,_0xcbef19:0x24,_0x523100:0xa2,_0x52b49a:0x14b,_0x59af6b:0xc7,_0x407995:0x133,_0x1af340:0x7,_0x2c22f9:0xd5,_0x270839:0xde,_0xa94b5:0xa0,_0x4a8e1b:0x46,_0x4910d1:0x196,_0x4f2688:0xe8,_0x327173:0xb3,_0x1695b5:0x25e,_0x35b439:0x264,_0x528d06:0x86,_0xb30bfd:0x81,_0x23bbc3:0x195,_0x5be7f4:0x1e1,_0x2c1f9b:0xc1,_0x47c46b:0x145,_0x1a56b8:0x2e7,_0x23d59f:0x234,_0x4d6cd4:0x1bb,_0x308e91:0x16d,_0x48de78:0x168,_0x3ffa57:0x17e},_0x5042b6={_0x53c381:0x130},_0x3a6799={_0x12c37c:0x1c0};function _0x42966d(_0x326d1f,_0xb8bed6,_0x18b798,_0x4ec115){return _0x2d9e9f(_0x326d1f-_0x3a6799._0x12c37c,_0x4ec115,_0x326d1f- -0x333,_0x4ec115-0x125);}const {signal:_0x5bda2e}=_0x5954e8,_0x59a364=async()=>{function _0x4c2ec1(_0x3f3bbf,_0x1fd906,_0x38516c,_0x5ab305){return _0x5ba7(_0x38516c- -0x3c,_0x3f3bbf);}const _0xf3d8d1=await this['prepareChatRequest'](_0x3dcb0c,_0x5bda2e);let _0x44f40f;try{_0x44f40f=_0x516748[_0x4c2ec1(0x1d7,0x1f5,0x142,0xe4)](_0xf3d8d1['request']);}catch(_0x364b4b){if(_0x364b4b instanceof Error)throw new ProviderRequestConstructionError(_0x364b4b['message']);throw _0x364b4b;}if(!_0x44f40f['path'])throw new ProviderRequestConstructionError(_0x47126b(_0x5d2394._0x176e58,_0x5d2394._0x195788,_0x5d2394._0x56d062,0xc6)+_0x516748['id']+_0x47126b(_0x5d2394._0x321f27,0x11f,-_0x5d2394._0x2ea037,_0x5d2394._0x321f27));function _0x47126b(_0x6dae0,_0x2e159d,_0x43b3a9,_0x2ed40e){return _0x5ba7(_0x6dae0- -_0x5042b6._0x53c381,_0x2ed40e);}const _0x5d33e6=await this[_0x47126b(-_0x5d2394._0x3faa98,0x4a,-0xb,_0x5d2394._0xcbef19)]({'request':_0xf3d8d1[_0x47126b(_0x5d2394._0x523100,0xba,0x15e,_0x5d2394._0x52b49a)],'body':_0x44f40f[_0x47126b(_0x5d2394._0x59af6b,_0x5d2394._0x407995,0x194,_0x5d2394._0x1af340)],'credential':_0xf3d8d1[_0x4c2ec1(0xe1,_0x5d2394._0x2c22f9,_0x5d2394._0x270839,0x151)],'session':_0xf3d8d1[_0x4c2ec1(-0x1d,0x13e,_0x5d2394._0xa94b5,-_0x5d2394._0x1af340)],'stream':_0x45cf03},{'accept':_0x44f40f[_0x47126b(0x41,_0x5d2394._0x4a8e1b,0xe1,0xdf)]??(_0x45cf03?_0x4c2ec1(_0x5d2394._0x4910d1,0x47,_0x5d2394._0x4f2688,0x194):'application/json'),'includeContentType':_0x44f40f[_0x47126b(0xc7,_0x5d2394._0x327173,0x93,-0x20)]!==void 0x0});for(const [_0x427c3b,_0x66dcee]of Object[_0x4c2ec1(_0x5d2394._0x1695b5,0xff,0x184,_0x5d2394._0x35b439)](_0x44f40f[_0x4c2ec1(0x19e,_0x5d2394._0x528d06,0xc5,0x8e)]??{})){_0x5d33e6[_0x4c2ec1(0x115,_0x5d2394._0xb30bfd,0xc3,_0x5d2394._0x23bbc3)](_0x427c3b,_0x66dcee);}return this[_0x4c2ec1(0x1c1,0x17f,_0x5d2394._0x5be7f4,0x163)](''+_0xf3d8d1['baseUrl']+_0x44f40f[_0x47126b(0x86,0x115,_0x5d2394._0x2c1f9b,_0x5d2394._0x47c46b)],{'method':_0x4c2ec1(_0x5d2394._0x1a56b8,0x1bb,_0x5d2394._0x23d59f,0x254),'headers':_0x5d33e6,..._0x44f40f[_0x4c2ec1(0x1af,0x18c,_0x5d2394._0x4d6cd4,_0x5d2394._0x308e91)]!==void 0x0?{'body':JSON['stringify'](_0x44f40f[_0x47126b(0xc7,_0x5d2394._0x48de78,_0x5d2394._0x3ffa57,0xd2)])}:{},'signal':_0x5bda2e});};return _0x296dfb?await this[_0x42966d(0xc3,_0x312e0e._0xc761d0,0x1ac,_0x312e0e._0x50ae8b)](_0x59a364,_0x5954e8):await _0x59a364();}async*['streamHttpSurface'](_0x6d828,_0x2fc548,_0x1fdb14={}){const _0x39dd14={_0x48ecd6:0x44f,_0x25ee11:0x58f,_0x13a7b3:0x663,_0x5cf039:0x67a,_0x2e8ef4:0x541,_0x47e667:0x4d8,_0x351f51:0x51a,_0x3652a3:0x5d1,_0x22605a:0x41c,_0x45edfd:0x488,_0x40646e:0x26b,_0x40bb3c:0x2c6,_0x2e452b:0x398,_0x17a0e7:0x3bb,_0x5c7bb9:0x2a4,_0x331812:0x2fd,_0x458934:0x31a,_0x5ec838:0x338,_0x532f4c:0x445,_0x54ca37:0x3c1,_0x5d513d:0x48e,_0x27ef25:0x481,_0x28c8c1:0x3d5,_0x5233de:0x46d,_0xd34a1b:0x479,_0x3c69b7:0x40b,_0x13c740:0x3c0,_0x1d48d2:0x3b3,_0x7268f2:0x4f0,_0x248810:0x40e,_0xa744f6:0x4a6,_0xeb823f:0x3e8,_0x556da2:0x3f0,_0x5d8d28:0x461},_0x1a7e0a={_0x1e5ec5:0x2e,_0x5907b9:0xc4,_0x3fac1c:0xef},_0x1a7afe={_0x58be90:0x18c,_0x24c869:0x88},{signal:_0x282e05}=_0x1fdb14;let _0x543c97=![];function _0x246f95(_0x13be3e,_0x2815c8,_0x2d72cf,_0x1dc816){return _0x1818aa(_0x13be3e-_0x1a7afe._0x58be90,_0x2d72cf,_0x2d72cf-_0x1a7afe._0x24c869,_0x2815c8-0x51b);}function _0x2e0cea(_0x34702f,_0x5d4f07,_0x42a47d,_0x38a211){return _0x2d9e9f(_0x34702f-_0x1a7e0a._0x1e5ec5,_0x34702f,_0x38a211- -_0x1a7e0a._0x5907b9,_0x38a211-_0x1a7e0a._0x3fac1c);}for(let _0x16dad7=0x0;_0x16dad7<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x16dad7+=0x1){let _0x3e34a4=![];try{const _0x43b845=await this[_0x246f95(0x52c,_0x39dd14._0x48ecd6,0x3e2,0x4e4)](_0x6d828,_0x2fc548,!![],_0x1fdb14,![]);if(_0x43b845[_0x246f95(0x623,_0x39dd14._0x25ee11,_0x39dd14._0x13a7b3,_0x39dd14._0x5cf039)]===0x191&&this[_0x246f95(0x46f,0x4ff,_0x39dd14._0x2e8ef4,0x5c0)]&&!_0x543c97){_0x543c97=!![],this[_0x246f95(0x502,0x4ff,_0x39dd14._0x47e667,_0x39dd14._0x351f51)]['invalidate']();continue;}if(!_0x43b845['ok'])throw await this[_0x246f95(0x5fd,_0x39dd14._0x3652a3,0x539,0x616)](_0x43b845);const _0x5623dc=_0x2fc548[_0x246f95(_0x39dd14._0x22605a,0x4f0,0x4aa,_0x39dd14._0x45edfd)]?.(_0x6d828);if(!_0x5623dc?.[_0x2e0cea(0x2c8,0x204,_0x39dd14._0x40646e,_0x39dd14._0x40bb3c)])throw new Error(_0x2e0cea(0x289,_0x39dd14._0x2e452b,0x361,0x342)+_0x2fc548['id']+_0x2e0cea(_0x39dd14._0x17a0e7,_0x39dd14._0x5c7bb9,_0x39dd14._0x331812,_0x39dd14._0x458934));for await(const _0x326162 of iterateSseEvents(_0x43b845,_0x282e05)){const _0x12e275=_0x5623dc[_0x2e0cea(0x39d,0x26b,_0x39dd14._0x5ec838,_0x39dd14._0x40bb3c)](_0x326162);for(const _0x4424de of _0x12e275){_0x3e34a4=!![],yield _0x4424de;}}yield{'type':'done','response':_0x5623dc[_0x246f95(0x3af,_0x39dd14._0x532f4c,0x474,_0x39dd14._0x54ca37)]()};return;}catch(_0x131c49){if(_0x3e34a4||!this[_0x246f95(0x3a5,_0x39dd14._0x5d513d,0x4d7,_0x39dd14._0x27ef25)](_0x131c49)||_0x16dad7===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x131c49;const _0x504c08=this['getRetryDelayMs'](void 0x0,_0x16dad7),_0x2e6230={'type':_0x246f95(_0x39dd14._0x28c8c1,_0x39dd14._0x5233de,0x4ad,_0x39dd14._0xd34a1b),'attempt':_0x16dad7+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x131c49 instanceof Error?_0x131c49['message']:String(_0x131c49),'delayMs':_0x504c08,'reason':this[_0x2e0cea(_0x39dd14._0x3c69b7,_0x39dd14._0x13c740,0x2e1,_0x39dd14._0x1d48d2)](_0x131c49)?_0x246f95(_0x39dd14._0x7268f2,0x466,0x42d,0x399):_0x246f95(_0x39dd14._0x248810,_0x39dd14._0xa744f6,_0x39dd14._0xeb823f,_0x39dd14._0x556da2)};yield _0x2e6230,await this[_0x246f95(0x475,_0x39dd14._0x5d8d28,0x3b1,0x3d7)](_0x504c08,_0x282e05);}}}async*[_0x2d9e9f(0x36f,0x2d4,0x2db,0x2c7)](_0x3448aa,_0x1db47e,_0x58c908){const _0x5632e={_0x336883:0x19c,_0x195fb2:0x21b,_0xeb042f:0x181,_0x476248:0x24b,_0xf476f2:0xc3,_0x5e1cfd:0x14,_0xe5e934:0xb7,_0x4652ff:0x88,_0x1534cd:0x201,_0x1dbc13:0x1f5,_0xf5aa3d:0x8,_0x1ae8b5:0xac,_0x33e6a1:0xae,_0x353628:0x20,_0x4b7dfc:0x15,_0x1b535e:0x42,_0x4f64c4:0xd2,_0x2140d6:0x190,_0x3ce7fd:0x9,_0x9e3258:0xc0,_0x3ef2a9:0x194,_0x209853:0x20c,_0x3244c2:0x1ac,_0x45a364:0xdb,_0x1cf209:0xf,_0x4e7259:0x58,_0x2b4379:0x190,_0x525c92:0x16c,_0x2c035a:0x21b,_0x5214f2:0x67,_0x5a35e8:0x295,_0x2b73e4:0x22c,_0x395d27:0x1e6,_0x20c664:0x36,_0x1033c1:0x2,_0x57513f:0x7e,_0x448eb4:0x245,_0x582bd1:0x2b5,_0x178bd9:0x338,_0x353b2d:0xcf,_0x6e3573:0x296,_0x9a418f:0x1b8,_0x3311e4:0x273,_0x2250a9:0x235,_0x44f275:0x23c,_0x50d644:0x28e,_0x47cca1:0x285,_0xda8821:0x298,_0x27724d:0x123,_0x211a63:0x251,_0x12d68f:0x19c,_0x4d3a0f:0x30e,_0x2dc815:0x294,_0x4af418:0x205,_0x144cbd:0x1e0,_0x331c7e:0x200,_0x445755:0x1ff,_0x2b27c6:0x6c,_0x4505b4:0x176,_0x29429f:0x90,_0x1d76da:0x160,_0x431099:0x17d,_0x291e71:0x1f,_0x326cad:0x20e,_0x10c655:0x170,_0x1e0033:0xf8},_0x2c5f46={_0x2f59af:0x1a9},_0x13ac9b=await this[_0x337927(-_0x5632e._0x336883,-_0x5632e._0x195fb2,-_0x5632e._0xeb042f,-_0x5632e._0x476248)](_0x3448aa,_0x58c908),_0x3ebece=_0x1db47e['createRequest'](_0x13ac9b[_0x2a4686(-_0x5632e._0xf476f2,_0x5632e._0x5e1cfd,_0x5632e._0xe5e934,-_0x5632e._0x4652ff)]),_0x1f2aea=_0x1db47e['createStreamParser']?.(_0x3448aa);if(!_0x1f2aea?.[_0x337927(-0x215,-0x268,-0x1d7,-0x28b)])throw new Error(_0x337927(-0x177,-_0x5632e._0x1534cd,-0x24b,-_0x5632e._0x1dbc13)+_0x1db47e['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x22f028=_0x3ebece['url']??(_0x3ebece[_0x2a4686(-0x9a,-_0x5632e._0xf5aa3d,_0x5632e._0x1ae8b5,_0x5632e._0x33e6a1)]?(''+_0x13ac9b[_0x2a4686(0x16,_0x5632e._0x353628,-_0x5632e._0x4b7dfc,-0xaf)]+_0x3ebece[_0x2a4686(-0x38,-0x8,_0x5632e._0x1b535e,-0xd5)])[_0x2a4686(_0x5632e._0x4f64c4,0xa8,0x169,_0x5632e._0x2140d6)](/^http:/,_0x2a4686(-0x1e,-0xa0,-0x6,-0x129))[_0x2a4686(0x184,0xa8,-_0x5632e._0x3ce7fd,_0x5632e._0x9e3258)](/^https:/,_0x337927(-0x10f,-0x1f4,-0x1e8,-0x121)):void 0x0);if(!_0x22f028)throw new ProviderRequestConstructionError(_0x337927(-0x177,-_0x5632e._0x3ef2a9,-0xd6,-_0x5632e._0x209853)+_0x1db47e['id']+_0x2a4686(-_0x5632e._0x3244c2,-_0x5632e._0x45a364,-_0x5632e._0x1cf209,-_0x5632e._0x4e7259));const _0x3cd327=await this['createHeaders']({'request':_0x13ac9b[_0x337927(-_0x5632e._0x2b4379,-_0x5632e._0x525c92,-_0x5632e._0x2c035a,-0x144)],'body':_0x3ebece[_0x2a4686(0x2b,-0x3c,_0x5632e._0x5214f2,0x1d)],'credential':_0x13ac9b[_0x337927(-0x248,-_0x5632e._0x5a35e8,-_0x5632e._0x2b73e4,-_0x5632e._0x395d27)],'session':_0x13ac9b[_0x2a4686(-_0x5632e._0x20c664,-0xe2,-0x19d,-0x20)],'stream':!![]},{'accept':_0x3ebece['accept']??'application/json','includeContentType':![]});for(const [_0xe2f1f7,_0x174d77]of Object[_0x2a4686(-0x89,_0x5632e._0x1033c1,_0x5632e._0x57513f,-0x69)](_0x3ebece[_0x337927(-0x261,-0x2dc,-0x233,-_0x5632e._0x448eb4)]??{})){_0x3cd327[_0x337927(-0x263,-0x310,-_0x5632e._0x582bd1,-_0x5632e._0x178bd9)](_0xe2f1f7,_0x174d77);}function _0x2a4686(_0x36164e,_0x561531,_0x44313c,_0x775043){return _0x1818aa(_0x36164e-0xe7,_0x36164e,_0x44313c-0x135,_0x561531- -0x6);}_0x3cd327[_0x337927(-0x1ba,-_0x5632e._0x353b2d,-_0x5632e._0x6e3573,-0x231)]('accept');function _0x337927(_0x1ad1a7,_0x5457d9,_0x2286ad,_0x14f172){return _0x1818aa(_0x1ad1a7-0x1da,_0x5457d9,_0x2286ad-_0x2c5f46._0x2f59af,_0x1ad1a7- -0x1aa);}const _0x44b9fd=this[_0x337927(-_0x5632e._0x9a418f,-_0x5632e._0x3311e4,-_0x5632e._0x2250a9,-_0x5632e._0x44f275)]({'headers':Object[_0x337927(-_0x5632e._0x50d644,-_0x5632e._0x47cca1,-_0x5632e._0xda8821,-0x30a)](_0x3cd327[_0x337927(-0x1a2,-_0x5632e._0x27724d,-0x267,-0x1ce)]()),'url':_0x22f028});try{throwIfAborted(_0x58c908);_0x44b9fd[_0x337927(-_0x5632e._0x211a63,-0x2a0,-_0x5632e._0x12d68f,-_0x5632e._0x4d3a0f)]!==WebSocket[_0x337927(-_0x5632e._0x2dc815,-0x23c,-_0x5632e._0x4af418,-0x2df)]&&await waitForWebSocketOpen(_0x44b9fd,_0x58c908);throwIfAborted(_0x58c908);_0x3ebece[_0x337927(-_0x5632e._0x144cbd,-0x2be,-0x1d7,-0x191)]!==void 0x0&&_0x44b9fd[_0x337927(-_0x5632e._0x331c7e,-0x264,-0x1ff,-_0x5632e._0x445755)](JSON['stringify'](_0x3ebece[_0x337927(-_0x5632e._0x144cbd,-0x25a,-0x12e,-0x2bf)]));for await(const _0x52d92b of iterateWebSocketMessages(_0x44b9fd,_0x58c908)){yield*_0x1f2aea[_0x2a4686(0x44,-0x71,-_0x5632e._0x2b27c6,-0x5c)](_0x52d92b);if(_0x1f2aea[_0x337927(-0x232,-0x239,-_0x5632e._0x4505b4,-0x220)]?.())break;}yield{'type':_0x2a4686(-0x1b,-_0x5632e._0x29429f,-_0x5632e._0x1d76da,-_0x5632e._0x431099),'response':_0x1f2aea['finish']()};}finally{_0x44b9fd[_0x2a4686(_0x5632e._0x291e71,-0xad,-0x9b,-0x63)]===WebSocket['OPEN']&&_0x44b9fd[_0x337927(-0x191,-0x150,-0x25f,-_0x5632e._0x326cad)](0x3e8,_0x58c908?.['aborted']?_0x2a4686(-_0x5632e._0x10c655,-_0x5632e._0x1e0033,-0x144,-0x38):'completed');}}};async function createHttpError(_0x54bb41){const _0x2717b6={_0x1b7bc8:0x236,_0x4e864f:0x2de,_0x2069da:0x357,_0x8bc690:0x2c8,_0x3cf86a:0x272,_0x25da2a:0x325,_0x3b1e76:0x2d1,_0x5588ab:0x343},_0x291dc6={_0x448f15:0x10c},_0x2e81ea={_0x5ef203:0x19a};function _0x7e404a(_0x542e48,_0x38c8b2,_0x419deb,_0xab08e7){return _0x2d9e9f(_0x542e48-0x19d,_0x419deb,_0xab08e7- -0x108,_0xab08e7-_0x2e81ea._0x5ef203);}function _0x409a4f(_0x1e8e5b,_0x4402a2,_0xea694e,_0x4a633c){return _0x2d9e9f(_0x1e8e5b-_0x291dc6._0x448f15,_0x4a633c,_0x1e8e5b- -0x97,_0x4a633c-0xaa);}const _0x1e1fd7=await _0x54bb41[_0x7e404a(_0x2717b6._0x1b7bc8,0x337,0x34d,_0x2717b6._0x4e864f)](),_0x402080=_0x1e1fd7[_0x7e404a(0x32c,_0x2717b6._0x2069da,0x2a8,0x350)]()||_0x54bb41['statusText']||'Unknown\x20provider\x20error';return new Error(_0x7e404a(_0x2717b6._0x8bc690,_0x2717b6._0x3cf86a,0x363,_0x2717b6._0x25da2a)+_0x54bb41[_0x7e404a(_0x2717b6._0x3b1e76,0x28a,_0x2717b6._0x5588ab,0x33f)]+':\x20'+_0x402080);}var AnthropicProviderAdapter=class{[_0x1818aa(-0x87,-0x2c,-0xde,0xf)];[_0x1818aa(0x8e,-0x2f,-0x34,0xa5)];[_0x2d9e9f(0x361,0x2f8,0x39c,0x3fe)];constructor(_0x2cc9ea){const _0x4df5f5={_0x341127:0xad,_0x377004:0xe6,_0x2624a9:0x1f5,_0x5cbf35:0x31e,_0x3d67d8:0x8e,_0x48d36b:0xc5,_0x32f7c9:0x163,_0x2df4f0:0x3b6,_0x514b84:0x202,_0x37e481:0x2da},_0x7658f5={_0x302ed8:0x170},_0x1c9c84={_0x303cd1:0x1ec};this[_0x550b6a(0x6b,_0x4df5f5._0x341127,_0x4df5f5._0x377004,0x85)]=_0x2cc9ea[_0x28c3c0(0x177,_0x4df5f5._0x2624a9,_0x4df5f5._0x5cbf35,0x244)];function _0x550b6a(_0x270add,_0xad78eb,_0xf25c09,_0x5d1b68){return _0x2d9e9f(_0x270add-_0x1c9c84._0x303cd1,_0x270add,_0x5d1b68- -0x35d,_0x5d1b68-0x59);}function _0x28c3c0(_0x5244be,_0x849c5d,_0x456bee,_0x11dc4a){return _0x2d9e9f(_0x5244be-_0x7658f5._0x302ed8,_0x456bee,_0x11dc4a- -0x19e,_0x11dc4a-0x1c6);}this[_0x550b6a(_0x4df5f5._0x3d67d8,_0x4df5f5._0x48d36b,_0x4df5f5._0x32f7c9,0x11b)]=_0x2cc9ea[_0x28c3c0(0x27a,_0x4df5f5._0x2df4f0,_0x4df5f5._0x514b84,_0x4df5f5._0x37e481)],this['protocolVersion']=_0x2cc9ea['protocolVersion'];}[_0x1818aa(0x99,-0x9d,0x68,0x2e)](){const _0x2c338a={_0x8193ab:0xc9,_0x18d2d0:0x131},_0x46958c={_0x43c0e4:0x4b6,_0x528ed3:0x4};function _0x41055d(_0x108071,_0x7b30f6,_0x5947cb,_0x203962){return _0x2d9e9f(_0x108071-0x34,_0x7b30f6,_0x5947cb- -_0x46958c._0x43c0e4,_0x203962-_0x46958c._0x528ed3);}return new Error(_0x41055d(-_0x2c338a._0x8193ab,-0xde,-_0x2c338a._0x18d2d0,-0xe7));}async[_0x2d9e9f(0x27d,0x3e4,0x306,0x396)](_0x7bfac4,_0x593a05){const _0x299801={_0x5b15bd:0x205,_0x1067b5:0x136,_0x92f05b:0x146,_0x2f49b2:0x161,_0x535010:0x197,_0x50d866:0x2f5,_0x18e59b:0x232,_0x5174f0:0xcf,_0x10557b:0x17f,_0x511093:0x161,_0x54ecf8:0x272,_0x454e36:0x221,_0x1e2e95:0x2f2,_0x58bba7:0x396,_0xb8c309:0x383,_0x33dc55:0x30a,_0xb7f809:0x316,_0x7aa56d:0x229,_0x42d039:0x198,_0x34b833:0x2e8,_0x1bff97:0x148,_0x1aa099:0x163,_0x4c987f:0x1ee,_0x27c05e:0x216,_0x53ab77:0x2d4,_0x1b8a3f:0x29f,_0x4d8d37:0xe3,_0x49006b:0x1c3,_0x431923:0x10e,_0x420035:0x167,_0x5bd9e1:0x84,_0x3cf6d6:0x23b,_0x4aec8b:0x21e,_0x563a11:0x12d,_0x50381c:0x1e3,_0x1bb5a6:0x218,_0x373466:0x1d9,_0x8bce00:0x2b9,_0x50deb8:0x7f,_0x308e8a:0xea,_0x3f615f:0xd3,_0x4ac299:0x349},_0x41c300={_0x53c1eb:0x113,_0x15f2c6:0x1b1},_0x25a996={_0x3c1f21:0xf2},_0x18e414=new Headers();_0x18e414['set'](_0x4a4435(_0x299801._0x5b15bd,_0x299801._0x1067b5,0x19e,0x1d3),_0x593a05[_0x39c231(-0x271,-0x2d4,-0x2b4,-0x262)]),_0x18e414[_0x4a4435(_0x299801._0x92f05b,0x1d2,0x160,_0x299801._0x2f49b2)](_0x4a4435(0xcb,0x245,_0x299801._0x535010,0x1b4),this['protocolVersion']);_0x593a05[_0x39c231(-0x1bb,-0x2da,-_0x299801._0x50d866,-_0x299801._0x18e59b)]!==![]&&_0x18e414[_0x4a4435(_0x299801._0x5174f0,_0x299801._0x10557b,0xf3,_0x299801._0x511093)](_0x39c231(-0x256,-_0x299801._0x54ecf8,-_0x299801._0x454e36,-_0x299801._0x1e2e95),_0x39c231(-0x3b4,-_0x299801._0x58bba7,-_0x299801._0xb8c309,-_0x299801._0x33dc55));this[_0x4a4435(0x285,0x306,_0x299801._0xb7f809,_0x299801._0x7aa56d)]===_0x4a4435(0x23a,0x26d,0x148,_0x299801._0x42d039)?_0x18e414['set']('authorization',_0x4a4435(0x135,0x29c,_0x299801._0x34b833,0x220)+_0x7bfac4[_0x4a4435(_0x299801._0x1bff97,0x1ec,0x230,0x17c)][_0x4a4435(0x1b4,_0x299801._0x1aa099,_0x299801._0x4c987f,0x169)]):_0x18e414[_0x39c231(-_0x299801._0x27c05e,-0x20d,-0x253,-_0x299801._0x53ab77)](_0x39c231(-_0x299801._0x1b8a3f,-_0x299801._0x4d8d37,-0x243,-_0x299801._0x49006b),_0x7bfac4[_0x4a4435(0x132,_0x299801._0x431923,_0x299801._0x420035,0x17c)][_0x4a4435(_0x299801._0x5bd9e1,_0x299801._0x3cf6d6,_0x299801._0x4aec8b,0x169)]);function _0x4a4435(_0x2227ab,_0x179ccf,_0x3df44c,_0x5d564d){return _0x2d9e9f(_0x2227ab-_0x25a996._0x3c1f21,_0x179ccf,_0x5d564d- -0x1b9,_0x5d564d-0xd9);}const _0x10da36=await this[_0x39c231(-_0x299801._0x563a11,-_0x299801._0x50381c,-_0x299801._0x1bb5a6,-0x176)]?.({'body':_0x7bfac4['body'],'credential':_0x7bfac4[_0x39c231(-_0x299801._0x373466,-0x2ea,-0x248,-_0x299801._0x8bce00)],'request':_0x7bfac4['request'],'session':_0x7bfac4[_0x4a4435(0x1db,0x1d6,_0x299801._0x50deb8,0x13e)],'stream':_0x7bfac4[_0x4a4435(_0x299801._0x308e8a,_0x299801._0x3f615f,0x96,0x170)]});for(const [_0x209d3c,_0x161649]of Object['entries'](_0x10da36??{})){_0x18e414[_0x39c231(-0x2e6,-0x2d7,-_0x299801._0x4ac299,-0x2d4)](_0x209d3c,_0x161649);}function _0x39c231(_0xeced80,_0x579573,_0x5cc384,_0x102731){return _0x2d9e9f(_0xeced80-_0x41c300._0x53c1eb,_0xeced80,_0x102731- -0x5ee,_0x102731-_0x41c300._0x15f2c6);}return _0x18e414;}[_0x2d9e9f(0x3c4,0x459,0x37b,0x327)](_0x29c83c){return _0x29c83c;}['resolveBaseUrl'](_0x31249d,_0x378058){return resolveSessionBaseUrl(_0x31249d,_0x378058);}[_0x2d9e9f(0x2ea,0x2ec,0x3be,0x49d)](_0x4a2648,_0x19342e){return resolveApiCredential(_0x4a2648,_0x19342e);}async[_0x2d9e9f(0x540,0x51c,0x489,0x3b7)](_0x47c9bd){return await createHttpError(_0x47c9bd);}},AnthropicModel=class extends RoutedModel{constructor(_0x4b7cf7={}){const _0x19abcb={_0x208bbf:0x50a,_0x560b5e:0x5f8,_0x111457:0x5b9,_0x1ae8ea:0x645,_0x32be99:0x5b5,_0x4eca81:0x457,_0x470764:0x4b9,_0x4b7aa2:0x472,_0x47a7e0:0x4b6,_0x378532:0x4cf,_0x4d5455:0x514,_0xfbc5c0:0x400,_0x321d76:0x666,_0x5ec699:0x5bb,_0x5ca718:0x638,_0x25615c:0x698,_0x182054:0x581,_0x225336:0x597,_0x39bd2d:0x55c,_0x5d78ac:0x552,_0x1c90d3:0x389,_0x843f81:0x52f,_0x5dccdb:0x472,_0x4049cf:0x484,_0xd520df:0x595,_0x4d232a:0x512,_0x55fba2:0x4bd,_0x17ec8d:0x589,_0x14bf07:0x5a6,_0x1dc759:0x4ce},_0x18d1a1={_0x55f3d7:0x5f},_0x572175={_0x7f74fd:0xc5};function _0x408ba3(_0x884dd1,_0x993ff3,_0x16c7b7,_0x4cb0d6){return _0x2d9e9f(_0x884dd1-0x45,_0x4cb0d6,_0x16c7b7-0x1c0,_0x4cb0d6-_0x572175._0x7f74fd);}function _0x26e109(_0x5154de,_0x7f4edf,_0x3cd82a,_0x5116b4){return _0x2d9e9f(_0x5154de-_0x18d1a1._0x55f3d7,_0x7f4edf,_0x5116b4-0x178,_0x5116b4-0x75);}super({'apiKey':_0x4b7cf7[_0x26e109(0x560,_0x19abcb._0x208bbf,0x54c,0x4c0)],'baseUrl':trimTrailingSlashes(_0x4b7cf7[_0x408ba3(0x5b9,_0x19abcb._0x560b5e,_0x19abcb._0x111457,0x5cb)]??_0x408ba3(_0x19abcb._0x1ae8ea,_0x19abcb._0x32be99,0x5bc,0x4db)),'fetch':_0x4b7cf7['fetch'],'maxTokens':_0x4b7cf7[_0x408ba3(0x499,_0x19abcb._0x4eca81,_0x19abcb._0x470764,0x402)]??0x4000,'model':_0x4b7cf7[_0x408ba3(_0x19abcb._0x4b7aa2,_0x19abcb._0x47a7e0,_0x19abcb._0x378532,0x493)]??'claude-sonnet-4-20250514','reasoning':_0x4b7cf7[_0x408ba3(_0x19abcb._0x4d5455,0x4b7,0x4db,_0x19abcb._0xfbc5c0)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x4b7cf7[_0x408ba3(0x4dc,0x674,0x5a2,0x4c0)]??_0x26e109(_0x19abcb._0x321d76,0x55a,0x5ce,0x5a3),'headerResolver':_0x4b7cf7[_0x408ba3(_0x19abcb._0x5ec699,0x6d4,_0x19abcb._0x5ca718,_0x19abcb._0x25615c)],'protocolVersion':_0x4b7cf7[_0x408ba3(_0x19abcb._0x182054,_0x19abcb._0x225336,_0x19abcb._0x39bd2d,0x534)]??_0x26e109(_0x19abcb._0x5d78ac,_0x19abcb._0x1c90d3,_0x19abcb._0x843f81,_0x19abcb._0x5dccdb)}),'providerSessionResolver':_0x4b7cf7[_0x408ba3(_0x19abcb._0x4049cf,_0x19abcb._0xd520df,_0x19abcb._0x4d232a,_0x19abcb._0x55fba2)],'requestMutators':_0x4b7cf7[_0x26e109(_0x19abcb._0x17ec8d,_0x19abcb._0x14bf07,0x549,_0x19abcb._0x1dc759)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x2d9e9f(0x35f,0x41a,0x449,0x35d)](_0x2aae24,_0x55c7b2){const _0x13d7be={_0x442892:0x496,_0x522a52:0x3f6},_0x565feb={_0x518cdc:0x12a,_0x2e252e:0x55f};function _0x45bc45(_0x3154af,_0x5e58f9,_0x25dcee,_0x16e724){return _0x1818aa(_0x3154af-0x72,_0x25dcee,_0x25dcee-_0x565feb._0x518cdc,_0x16e724-_0x565feb._0x2e252e);}return this[_0x45bc45(_0x13d7be._0x442892,_0x13d7be._0x522a52,0x4ec,0x4a9)](_0x2aae24,ANTHROPIC_MESSAGES_SURFACE,_0x55c7b2);}[_0x1818aa(-0x8e,-0x8c,-0x60,-0xaa)](_0x33f334,_0x3c455c){return this['streamViaSurface'](_0x33f334,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x3c455c);}},OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x2d9e9f(0x40c,0x3c5,0x3a4,0x438),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE='openai-responses-stream',OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0x2d9e9f(0x447,0x45e,0x447,0x3d0)];[_0x2d9e9f(0x443,0x3b2,0x412,0x4f2)];constructor(_0x4ca1b5,_0x1a99fc,_0x491d5a){const _0x25e175={_0x2af593:0x1eb,_0x1b61e4:0x18f,_0x2930e5:0x24a,_0xf91706:0x1e6,_0x5d9b83:0x1a9,_0xb1839b:0x252},_0x167349={_0x2f65c9:0x584};super(_0x491d5a),this[_0x5acd5b(-0x326,-_0x25e175._0x2af593,-_0x25e175._0x1b61e4,-_0x25e175._0x2930e5)]=_0x5e10e8(0x1ad,_0x25e175._0xf91706,0x26d,0x149);function _0x5e10e8(_0x346255,_0x4e3893,_0x5bb5a8,_0x45eec4){return _0x2d9e9f(_0x346255-0xff,_0x346255,_0x4e3893- -0x2b4,_0x45eec4-0xae);}function _0x5acd5b(_0x2b513f,_0x5ec649,_0x4c6855,_0xb4ea09){return _0x2d9e9f(_0x2b513f-0xe9,_0x4c6855,_0xb4ea09- -_0x167349._0x2f65c9,_0xb4ea09-0x117);}this['status']=_0x4ca1b5,this[_0x5acd5b(-0x181,-_0x25e175._0x5d9b83,-_0x25e175._0xb1839b,-0x172)]=_0x1a99fc;}};function stringifySystem(_0x5b5674){const _0x5e9cd8={_0x149121:0x3b2,_0x78d957:0x3f1,_0x1d87fb:0x14b,_0x46599f:0x1d9,_0x19a506:0x2dc},_0x3f9c97={_0x4afad7:0xf1},_0x365e7b={_0x4c9a1f:0x1e5,_0x502bc8:0x1c4};function _0x5e5977(_0x2afbd6,_0x37b53d,_0x128b41,_0x2a7fee){return _0x2d9e9f(_0x2afbd6-_0x365e7b._0x4c9a1f,_0x128b41,_0x2a7fee- -0xbd,_0x2a7fee-_0x365e7b._0x502bc8);}function _0x511c82(_0x2da13c,_0x33b006,_0x4811dc,_0x27d613){return _0x2d9e9f(_0x2da13c-0x1a3,_0x4811dc,_0x27d613-_0x3f9c97._0x4afad7,_0x27d613-0xa4);}return _0x5b5674[_0x511c82(0x3a1,0x49a,_0x5e9cd8._0x149121,_0x5e9cd8._0x78d957)](_0x58c867=>_0x58c867['text'])[_0x5e5977(_0x5e9cd8._0x1d87fb,_0x5e9cd8._0x46599f,_0x5e9cd8._0x19a506,0x230)]('\x0a\x0a');}function createToolDefinitions(_0x5344f8){const _0x2f8e8a={_0x4bb4fd:0x76},_0xdc6cc0={_0x4956a8:0xc6,_0x3018bc:0x1ab,_0x5b5ce2:0x1e9,_0x33794a:0x17c,_0x46b721:0x123,_0x552e0e:0x7b,_0x3128ad:0xe2};if(_0x5344f8['length']===0x0)return void 0x0;function _0x461944(_0x54d50f,_0xf3ad4c,_0x3cce92,_0x37170f){return _0x1818aa(_0x54d50f-0x6,_0xf3ad4c,_0x3cce92-0x108,_0x37170f-0xe7);}return _0x5344f8[_0x461944(-_0x2f8e8a._0x4bb4fd,-0x42,-0x44,0x14)](_0x10dbbb=>{const _0x592298={_0x568897:0x183},_0x559fc0={_0x444e27:0x132};function _0x1c7f5c(_0x2a2abe,_0x1737ac,_0x2dc0a7,_0x186768){return _0x461944(_0x2a2abe-_0x559fc0._0x444e27,_0x186768,_0x2dc0a7-0x1a0,_0x1737ac- -0x1f9);}function _0x5d5e5d(_0x109510,_0x484a6d,_0x53dce1,_0x109488){return _0x461944(_0x109510-_0x592298._0x568897,_0x109510,_0x53dce1-0x4b,_0x53dce1-0x279);}return{'type':'function','function':{'name':_0x10dbbb[_0x1c7f5c(-_0xdc6cc0._0x4956a8,-_0xdc6cc0._0x3018bc,-_0xdc6cc0._0x5b5ce2,-_0xdc6cc0._0x33794a)],'description':_0x10dbbb[_0x1c7f5c(-0x13b,-_0xdc6cc0._0x46b721,-0x134,-0x84)],'parameters':_0x10dbbb[_0x1c7f5c(-0x11f,-_0xdc6cc0._0x552e0e,-_0xdc6cc0._0x3128ad,-0x48)]}};});}function isImageToolResultBlock(_0x5cb4bd){const _0x32709f={_0x34a1d5:0x3dd,_0x52fd1f:0x3de,_0x1adcca:0x261,_0x536907:0x257,_0x42e34a:0x337,_0x4a2ca8:0x402,_0x1bd83b:0x3b7,_0xce8911:0x440,_0x73a5c8:0x383,_0x1b48f2:0x1b2,_0x4d6a30:0x215},_0x25452f={_0x5a9158:0x103,_0x11a5ae:0xd0},_0x36f6a6={_0x13eaf2:0x2c5};function _0x51b4f1(_0x59da16,_0x4bcb7d,_0x17c9b8,_0x21cd7c){return _0x2d9e9f(_0x59da16-0x88,_0x17c9b8,_0x59da16- -_0x36f6a6._0x13eaf2,_0x21cd7c-0x180);}if(typeof _0x5cb4bd!=='object'||_0x5cb4bd===null||Array['isArray'](_0x5cb4bd))return![];function _0x152e20(_0x35e775,_0xec8004,_0x424e30,_0x5424b0){return _0x1818aa(_0x35e775-_0x25452f._0x5a9158,_0xec8004,_0x424e30-_0x25452f._0x11a5ae,_0x424e30-0x383);}const _0x3ee75a=_0x5cb4bd;return _0x3ee75a['type']===_0x152e20(0x43a,_0x32709f._0x34a1d5,0x3cb,0x349)&&_0x3ee75a[_0x152e20(0x2ff,_0x32709f._0x52fd1f,0x324,_0x32709f._0x1adcca)]?.[_0x51b4f1(0x1aa,0xc4,0x101,_0x32709f._0x536907)]==='base64'&&typeof _0x3ee75a[_0x152e20(_0x32709f._0x42e34a,_0x32709f._0x4a2ca8,0x324,0x34c)]['media_type']===_0x152e20(0x469,_0x32709f._0x1bd83b,_0x32709f._0xce8911,_0x32709f._0x73a5c8)&&typeof _0x3ee75a['source']['data']===_0x51b4f1(0x1cb,_0x32709f._0x1b48f2,_0x32709f._0x4d6a30,0x147);}function getToolResultText(_0x51ba97){const _0x2d55be={_0x21802d:0x122,_0x5a8085:0x23f,_0xddecd0:0x229,_0x41e192:0x2ea,_0x30795e:0x2a4,_0x5c52f4:0x1c9,_0x2f9a65:0x1dd,_0x321606:0xe6,_0x3c3bd5:0x154},_0x67240d={_0x4a3f30:0x179},_0xa6b075={_0x2da076:0x73,_0x570196:0x148,_0x1f1aee:0xa3,_0x112cc5:0x12c,_0x434b43:0x206,_0x80d9c6:0x1b8},_0x36ae2e={_0x172c52:0x1a2,_0x2a6b87:0x3a},_0x46f8f4={_0x283f0d:0x1a5,_0x258012:0x609},_0x3b9bef={_0x1534bb:0x5b,_0x119db9:0x141,_0x4a766e:0x356};if(typeof _0x51ba97==='string')return _0x51ba97;function _0x199ad0(_0xb322c3,_0x4c8acb,_0x3d0d22,_0x3b55ab){return _0x1818aa(_0xb322c3-_0x3b9bef._0x1534bb,_0x3d0d22,_0x3d0d22-_0x3b9bef._0x119db9,_0x3b55ab-_0x3b9bef._0x4a766e);}const _0xab5cc=_0x51ba97[_0x40da62(-0xd4,-_0x2d55be._0x21802d,0x28,-0xa6)](_0x3fcfba=>{function _0x4542ca(_0x364f8a,_0x20fd21,_0x5bbed2,_0x4e84c3){return _0x40da62(_0x364f8a-0x1e4,_0x20fd21,_0x5bbed2-_0x46f8f4._0x283f0d,_0x4e84c3-_0x46f8f4._0x258012);}function _0x1ac76f(_0x7c1f20,_0x2dc78f,_0x7e419e,_0x24611b){return _0x40da62(_0x7c1f20-0x1d8,_0x24611b,_0x7e419e-_0x36ae2e._0x172c52,_0x7c1f20-_0x36ae2e._0x2a6b87);}return typeof _0x3fcfba===_0x1ac76f(-_0xa6b075._0x2da076,-0x28,-0x54,-_0xa6b075._0x570196)&&_0x3fcfba!==null&&_0x3fcfba[_0x1ac76f(-_0xa6b075._0x1f1aee,-0xd4,-0x85,-0x171)]===_0x1ac76f(-_0xa6b075._0x112cc5,-_0xa6b075._0x434b43,-0x191,-_0xa6b075._0x80d9c6);})[_0x199ad0(_0x2d55be._0x5a8085,0x280,0x327,0x283)](_0x5625b4=>_0x5625b4['text'])[_0x199ad0(_0x2d55be._0xddecd0,_0x2d55be._0x41e192,_0x2d55be._0x30795e,0x270)]('\x0a\x0a')[_0x199ad0(0x490,0x39b,0x3cd,0x3db)]();function _0x40da62(_0x1226d6,_0x413e07,_0x5093e9,_0x293af8){return _0x1818aa(_0x1226d6-0x10a,_0x413e07,_0x5093e9-0x18,_0x293af8- -_0x67240d._0x4a3f30);}return _0xab5cc[_0x40da62(-_0x2d55be._0x5c52f4,-_0x2d55be._0x2f9a65,-_0x2d55be._0x321606,-_0x2d55be._0x3c3bd5)]>0x0?_0xab5cc:'Tool\x20returned\x20image\x20content.';}function getToolResultImages(_0x2e3e68){const _0x4a254b={_0x2b563f:0x4bf,_0x2221ce:0x4c1,_0x8cc18e:0x13a,_0x47e4c6:0x3f,_0xbe631c:0x17f},_0xb3aa67={_0x5a1b07:0x1eb};function _0x4eff02(_0x6364e1,_0x11eff9,_0x2c2bf4,_0x1b0236){return _0x2d9e9f(_0x6364e1-0x13,_0x6364e1,_0x1b0236-0x1c6,_0x1b0236-0x199);}function _0x3cb4ea(_0x30a1f5,_0x55c90e,_0x1668ce,_0x417c6c){return _0x1818aa(_0x30a1f5-0x7b,_0x417c6c,_0x1668ce-0x8b,_0x1668ce- -_0xb3aa67._0x5a1b07);}return Array[_0x4eff02(_0x4a254b._0x2b563f,0x465,0x56b,_0x4a254b._0x2221ce)](_0x2e3e68)?_0x2e3e68[_0x3cb4ea(-_0x4a254b._0x8cc18e,-_0x4a254b._0x47e4c6,-0x118,-_0x4a254b._0xbe631c)](isImageToolResultBlock):[];}function parseToolInput2(_0x5848ae){const _0x6f7fbb={_0x5332a7:0x119},_0x403d42={_0x1a03e3:0xd3,_0x309cf7:0x172};function _0x19fcc0(_0x3ffdbf,_0x41c45c,_0x40a3a7,_0x9038dd){return _0x1818aa(_0x3ffdbf-_0x403d42._0x1a03e3,_0x3ffdbf,_0x40a3a7-_0x403d42._0x309cf7,_0x41c45c- -0x1ab);}if(_0x5848ae['length']===0x0)return{};try{return JSON[_0x19fcc0(-0xcd,-_0x6f7fbb._0x5332a7,-0x1d9,-0x130)](_0x5848ae);}catch{return _0x5848ae;}}function isResponsesReasoningItem(_0x10043f){const _0x1a92ea={_0x1ee9b8:0x46a,_0x585b46:0x464,_0x242c78:0x4b6,_0x5f68b3:0x531,_0x4fb6ba:0x2a3,_0xc35e97:0x224,_0x377d5b:0x34e,_0x12bf20:0x1c1,_0x3b0b93:0x501,_0x963d9d:0x423,_0x5193de:0x3ad},_0x4859a8={_0x1ce436:0x23},_0x1f2808={_0x57d839:0x26,_0xdd195b:0x465};function _0x40c495(_0x4523f4,_0x2416f4,_0x519d84,_0x40d3d6){return _0x1818aa(_0x4523f4-_0x1f2808._0x57d839,_0x2416f4,_0x519d84-0x4,_0x40d3d6-_0x1f2808._0xdd195b);}function _0x11f8c3(_0x26811d,_0x57bbed,_0x8a3bd3,_0x78bc85){return _0x2d9e9f(_0x26811d-0x3a,_0x78bc85,_0x26811d- -0x1cc,_0x78bc85-_0x4859a8._0x1ce436);}return typeof _0x10043f===_0x40c495(_0x1a92ea._0x1ee9b8,_0x1a92ea._0x585b46,_0x1a92ea._0x242c78,_0x1a92ea._0x5f68b3)&&_0x10043f!==null&&_0x11f8c3(_0x1a92ea._0x4fb6ba,_0x1a92ea._0xc35e97,_0x1a92ea._0x377d5b,_0x1a92ea._0x12bf20)in _0x10043f&&_0x10043f[_0x40c495(0x4fd,0x480,0x5a3,_0x1a92ea._0x3b0b93)]===_0x40c495(0x42b,0x45d,_0x1a92ea._0x963d9d,_0x1a92ea._0x5193de);}function isResponsesMessageItem(_0x14df24){const _0x166e6d={_0x481673:0x418,_0x4936fa:0x3db,_0x35768d:0x4ee,_0x28f823:0x418,_0x82d772:0x4a1,_0x41ee68:0x6c},_0x2f5d60={_0x29fe84:0x12b,_0x3fa195:0x1c1,_0x164203:0x37c};function _0x4fc8a9(_0x43219d,_0x4d0810,_0x1799ef,_0xb7b577){return _0x1818aa(_0x43219d-0xd6,_0x43219d,_0x1799ef-0xea,_0x4d0810-0x165);}function _0x39ea2b(_0x1746df,_0x19c3f3,_0x5cac7b,_0x29334a){return _0x1818aa(_0x1746df-_0x2f5d60._0x29fe84,_0x1746df,_0x5cac7b-_0x2f5d60._0x3fa195,_0x5cac7b-_0x2f5d60._0x164203);}return typeof _0x14df24==='object'&&_0x14df24!==null&&_0x39ea2b(0x3a1,0x3fa,_0x166e6d._0x481673,0x4da)in _0x14df24&&_0x14df24[_0x39ea2b(_0x166e6d._0x4936fa,_0x166e6d._0x35768d,_0x166e6d._0x28f823,_0x166e6d._0x82d772)]===_0x4fc8a9(-0x1f,_0x166e6d._0x41ee68,0x151,-0x3);}function isResponsesFunctionCallItem(_0x4d7676){const _0x31d88d={_0x1ca0e3:0xd3,_0x58a70e:0x14a,_0x5b16c9:0x3b3,_0x34abc8:0x2ea,_0xf56f7e:0x1f9,_0x483c85:0x180,_0x150d2b:0x313,_0x3f4c4a:0x3a0},_0x106f26={_0x5d3294:0x84,_0x27c0ac:0x85},_0x2157c0={_0x5ae241:0x123,_0xefa3a8:0x311};function _0x25fcc0(_0x469bb5,_0x20f52d,_0xc096e3,_0x51c7ef){return _0x1818aa(_0x469bb5-_0x2157c0._0x5ae241,_0x51c7ef,_0xc096e3-0x56,_0x469bb5-_0x2157c0._0xefa3a8);}function _0x2b6a91(_0x53b974,_0x4cc9d8,_0xc0057a,_0x1e9f1e){return _0x1818aa(_0x53b974-_0x106f26._0x5d3294,_0x53b974,_0xc0057a-_0x106f26._0x27c0ac,_0x1e9f1e- -0x216);}return typeof _0x4d7676===_0x2b6a91(-0x168,-0xcf,-_0x31d88d._0x1ca0e3,-_0x31d88d._0x58a70e)&&_0x4d7676!==null&&_0x25fcc0(0x3ad,_0x31d88d._0x5b16c9,0x3d4,_0x31d88d._0x34abc8)in _0x4d7676&&_0x4d7676[_0x2b6a91(-_0x31d88d._0xf56f7e,-_0x31d88d._0x483c85,-0x25b,-0x17a)]===_0x25fcc0(0x2f1,0x2db,_0x31d88d._0x150d2b,_0x31d88d._0x3f4c4a);}function createContentBlocks(_0x2082a5,_0x1e5486,_0x162b59){const _0x83536c={_0x5947e3:0x264,_0x6d817d:0x1a5,_0xd8994c:0x422,_0x35c583:0x46f,_0x167546:0x20f,_0x1d5c1c:0xa0,_0x1a3412:0xed,_0x39ab25:0x407,_0x39e9b5:0xf1,_0x1e6b36:0x127,_0x1b1bf5:0x417,_0x3fabb5:0x485,_0x1ff6ff:0x40f,_0x3ffb22:0x3d5,_0x46f352:0x1ec,_0x264811:0x2d5,_0x376b59:0x200,_0x4e0be5:0x245,_0x1c8226:0x301,_0x27d374:0x127,_0x4d7a0e:0x13f,_0x57ccf4:0x24c,_0x5191a1:0x4b6,_0x1e0e34:0x29f,_0x2eae38:0x23d,_0x3f7edf:0x1eb,_0xe2ed38:0x29a,_0x53dc0f:0x2c6,_0x335b04:0x357,_0x28e3a2:0x3b4},_0x447493={_0xa51c89:0x1ac},_0x409f56={_0x1639dc:0x10c,_0x404e99:0x3b0},_0x47a853=[];_0x162b59&&_0x162b59[_0x10b3eb(-_0x83536c._0x5947e3,-0x187,-0x18b,-_0x83536c._0x6d817d)]>0x0&&_0x47a853[_0x35e138(0x52a,0x499,_0x83536c._0xd8994c,_0x83536c._0x35c583)]({'type':_0x10b3eb(-0x27b,-0x198,-0x1e3,-_0x83536c._0x167546),'summary':[],'text':_0x162b59});function _0x35e138(_0x169a2a,_0x94495a,_0x3a7bfe,_0x17a142){return _0x1818aa(_0x169a2a-0x42,_0x94495a,_0x3a7bfe-_0x409f56._0x1639dc,_0x17a142-_0x409f56._0x404e99);}_0x2082a5[_0x10b3eb(-_0x83536c._0x1d5c1c,-0x187,-_0x83536c._0x1a3412,-0x255)]>0x0&&_0x47a853[_0x35e138(0x396,_0x83536c._0x39ab25,0x3f8,0x46f)]({'type':'text','text':_0x2082a5});function _0x10b3eb(_0x54c808,_0x398a24,_0x444905,_0x20de8e){return _0x1818aa(_0x54c808-0xd6,_0x54c808,_0x444905-0x140,_0x398a24- -_0x447493._0xa51c89);}for(const _0x1c3e7 of _0x1e5486){if(_0x1c3e7['id'][_0x10b3eb(-_0x83536c._0x39e9b5,-_0x83536c._0x1e6b36,-0x142,-0x1a4)]()[_0x35e138(_0x83536c._0x1b1bf5,_0x83536c._0x3fabb5,_0x83536c._0x1ff6ff,_0x83536c._0x3ffb22)]===0x0||_0x1c3e7[_0x35e138(0x25a,_0x83536c._0x46f352,0x328,_0x83536c._0x264811)][_0x10b3eb(-_0x83536c._0x376b59,-_0x83536c._0x4e0be5,-0x2ca,-_0x83536c._0x1c8226)][_0x10b3eb(-0x174,-_0x83536c._0x27d374,-0x1d5,-0x171)]()[_0x10b3eb(-_0x83536c._0x4d7a0e,-0x187,-_0x83536c._0x57ccf4,-0xa7)]===0x0)continue;_0x47a853[_0x35e138(0x523,0x466,_0x83536c._0x5191a1,0x46f)]({'type':_0x10b3eb(-_0x83536c._0x1e0e34,-_0x83536c._0x2eae38,-_0x83536c._0x3f7edf,-0x193),'id':_0x1c3e7['id'],'name':_0x1c3e7[_0x35e138(_0x83536c._0xe2ed38,0x2ea,0x3ae,0x2d5)]['name'],'input':parseToolInput2(_0x1c3e7[_0x35e138(0x330,0x36e,_0x83536c._0x53dc0f,0x2d5)][_0x35e138(0x37d,0x32a,_0x83536c._0x335b04,_0x83536c._0x28e3a2)])});}return _0x47a853;}function createUsage(_0x202678){const _0x1ebc90={_0x48eb6c:0x1b5,_0x2dafbc:0x1e7,_0x19c8ce:0x284,_0x3f423a:0x28a,_0xcf8e66:0x31a,_0x23bda0:0x1e9,_0x1c5588:0x112,_0x193870:0x195,_0x25ee3f:0xd9,_0x328cfb:0x109,_0x20607c:0x268,_0x50a1a6:0x231,_0x4fda7a:0x1fe,_0x33bd7e:0x2ef,_0x1a4097:0x287},_0xbfcd5={_0xcea78c:0x562,_0xdaff1e:0x5b};function _0x1dda77(_0x432b20,_0x57bbe3,_0x5225f6,_0xca0c51){return _0x2d9e9f(_0x432b20-0x20,_0x432b20,_0xca0c51- -_0xbfcd5._0xcea78c,_0xca0c51-_0xbfcd5._0xdaff1e);}function _0x558037(_0x4e4518,_0x2e9a63,_0x432363,_0x3deffe){return _0x1818aa(_0x4e4518-0x1ee,_0x432363,_0x432363-0x9f,_0x2e9a63-0x2f4);}return{'inputTokens':_0x202678?.[_0x1dda77(-_0x1ebc90._0x48eb6c,-_0x1ebc90._0x2dafbc,-0x2d4,-0x26c)]??0x0,'outputTokens':_0x202678?.[_0x558037(_0x1ebc90._0x19c8ce,_0x1ebc90._0x3f423a,_0x1ebc90._0xcf8e66,_0x1ebc90._0x23bda0)]??0x0,..._0x202678?.[_0x1dda77(-_0x1ebc90._0x1c5588,-_0x1ebc90._0x193870,-_0x1ebc90._0x25ee3f,-_0x1ebc90._0x328cfb)]?.[_0x558037(0x1ce,_0x1ebc90._0x20607c,_0x1ebc90._0x50a1a6,0x338)]!==void 0x0?{'reasoningTokens':_0x202678['completion_tokens_details'][_0x558037(_0x1ebc90._0x4fda7a,0x268,_0x1ebc90._0x33bd7e,_0x1ebc90._0x1a4097)]}:{}};}function resolveReasoningVisibility2(_0x1cdf20){const _0xcfa802={_0x3ce5cc:0x1,_0x40228b:0x18a};function _0x3cb0aa(_0x51a165,_0x1b863c,_0x29b5b6,_0x28dfac){return _0x1818aa(_0x51a165-_0xcfa802._0x3ce5cc,_0x51a165,_0x29b5b6-_0xcfa802._0x40228b,_0x1b863c-0x527);}return _0x1cdf20['reasoning']?.[_0x3cb0aa(0x574,0x4c9,0x4ee,0x42e)]??'user-visible';}function isUserVisibleReasoning(_0x4a27f0){const _0x3b4746={_0x277b83:0x361},_0xcdabb={_0x2d42e9:0x6};function _0x58e376(_0x579a8a,_0x21e951,_0x2a38d6,_0x532cbe){return _0x1818aa(_0x579a8a-_0xcdabb._0x2d42e9,_0x532cbe,_0x2a38d6-0x28,_0x579a8a-0x314);}return resolveOpenAiReasoningConfig(_0x4a27f0['reasoning'])!==void 0x0&&resolveReasoningVisibility2(_0x4a27f0)===_0x58e376(0x2ee,_0x3b4746._0x277b83,0x2d3,0x28f);}function createChatRequestBody(_0x388810,_0x13f83d){const _0x5265c2={_0x3dc010:0x9d,_0x5378eb:0x114,_0x2da9aa:0x10e,_0x1a13a8:0xb2,_0x83799a:0x1e9,_0x2becb6:0x1fb,_0x37f3b1:0x97,_0x12736b:0x125,_0x4e865f:0xf5,_0xe2e79:0x1e1,_0x24bf83:0x27c,_0x1b2ece:0x100,_0x138a61:0xe1,_0x3cafeb:0x204,_0x19086e:0x19c,_0xcf5291:0x200,_0x71d3e4:0x2a3,_0x260470:0x154,_0x183c9c:0x152,_0x54d56d:0x1e3,_0x274472:0x182,_0x5078ab:0x1dc,_0xe566a3:0x271,_0x321baa:0x10b,_0x2e8722:0x16c,_0x18573c:0x1a0,_0x5a05a1:0xad,_0x16bc44:0xfe,_0x9d9ea2:0x80,_0x530b0a:0xeb,_0x34de2b:0x69,_0x119585:0x74,_0x3aa7a4:0x139,_0x34352f:0x150,_0x243cc4:0x192,_0x2745ab:0x16d,_0xd53467:0x20d,_0x161e9c:0xbd,_0x31a86c:0xd7,_0x262e35:0x1ee,_0x5d4729:0x13a,_0x4d7243:0x170,_0x43a0b3:0x1a7,_0x116eb9:0x242,_0x581e66:0x1b0,_0x301725:0x20e,_0x23dde9:0x291,_0x5e0479:0x177,_0x10b0aa:0x2e1,_0x4a2077:0x1cc,_0x2766b4:0x114,_0xa7c566:0x14a,_0x23b84d:0x263,_0x99518c:0x177,_0x262e64:0x97,_0x54ad3c:0x152,_0x59952e:0x211,_0x4976e2:0x2e0,_0x3daffd:0x1e7,_0x42c62f:0xf5,_0x286262:0x283,_0x436803:0x13d,_0xdea721:0x1f5,_0x1a8a29:0x10a,_0x41f357:0x292,_0x40f3fe:0x301,_0x56bfb2:0x2aa,_0x84a322:0x25d,_0xeedaf6:0x14d,_0x2715a8:0x18b,_0x4507f3:0x24,_0x1d5296:0x16f,_0x49ac42:0x266,_0x41aac8:0x1eb,_0x2e1c49:0x1df,_0x9274c5:0x255,_0x11fab2:0x2b4,_0x6a8db3:0x20d,_0x29feac:0x180,_0x20bd87:0x1bc,_0x33c40c:0x147,_0x356d55:0x229,_0x2c8e1d:0x307,_0x597a3f:0x241,_0x4eda1a:0xc8,_0x336e53:0xb1,_0x160369:0x9c,_0x7bde75:0x1a5,_0x301130:0x28a,_0x3598dd:0x277,_0x44afe5:0xb9,_0x13878e:0x91,_0x1cbcbd:0x2,_0x28ef4c:0x3f,_0x3f09c9:0xb5,_0x2c652d:0x106,_0x326915:0x7b},_0x4b8e11={_0x19de93:0x37,_0x341221:0x506,_0x30c8d7:0x2f},_0x563074={_0x5d7484:0xe6,_0x26edce:0x17f,_0x4609c2:0xe2,_0x48722b:0x289,_0x5763ee:0x1a3,_0x207afc:0x23d,_0x31ec8a:0x3a0,_0x75a773:0x303,_0x7b682:0x2f4,_0x160001:0x2e7,_0x46446f:0x2e0,_0x457fdb:0x255,_0x282c20:0x34e,_0x3258b4:0x275,_0x3f087a:0x6a,_0x599a9f:0xac,_0x412143:0x22e,_0x6bf84e:0x2a5,_0x74701c:0x245,_0x343ef3:0x383,_0x1c2e8d:0x25f,_0x30f1ed:0x15e,_0x1be84b:0x188,_0x49f6b5:0x309,_0x155172:0x232,_0x51098b:0x1ad,_0xa2e7e6:0x251,_0x2ec3f4:0x2c5,_0x2fe53b:0x375,_0x1636c9:0x382,_0x446540:0x39c,_0x1f0ffa:0x1fc,_0x24d2e5:0x1a2,_0x2fe1e8:0x25d,_0x26d084:0x5f,_0x49b81e:0x19a,_0x29214f:0x7f,_0x383f4c:0x159,_0x47a4fd:0x1e9,_0x9d9fa2:0x29b,_0x44b5e8:0x1b7},_0x3bc655={_0x169864:0x388},_0x235969={_0x49bea6:0x1ce,_0x486672:0x52},_0x46cd98=[],_0x21ce25=stringifySystem(_0x388810[_0x58b5bb(-0x160,-0x1f5,-_0x5265c2._0x3dc010,-_0x5265c2._0x5378eb)]);function _0x80df29(_0x154865,_0x90767b,_0x209cfd,_0x2c4c19){return _0x2d9e9f(_0x154865-_0x235969._0x49bea6,_0x209cfd,_0x90767b- -0x5c9,_0x2c4c19-_0x235969._0x486672);}_0x21ce25[_0x58b5bb(-_0x5265c2._0x2da9aa,-_0x5265c2._0x1a13a8,-_0x5265c2._0x83799a,-_0x5265c2._0x2becb6)]>0x0&&_0x46cd98[_0x58b5bb(-0x74,-0x79,-0x14,-0x15e)]({'role':'system','content':_0x21ce25});for(const _0x1c7535 of _0x388810[_0x80df29(-_0x5265c2._0x37f3b1,-_0x5265c2._0x12736b,-0x19f,-0x4d)]){const _0x4da3c3=[],_0x293270=[],_0xb476dd=[],_0x55bd6d=()=>{const _0x3193a0={_0x3ea9fb:0x402};function _0x4e8832(_0x1aaea1,_0x17173d,_0x588192,_0xd6e2a6){return _0x80df29(_0x1aaea1-0x1b8,_0xd6e2a6-_0x3bc655._0x169864,_0x17173d,_0xd6e2a6-0xe7);}if(_0x1c7535[_0x4e8832(_0x563074._0x5d7484,0x19e,_0x563074._0x26edce,0x159)]===_0x4e8832(0xd2,_0x563074._0x4609c2,_0x563074._0x48722b,_0x563074._0x5763ee)){if(_0x4da3c3[_0x218de0(0x2f4,_0x563074._0x207afc,_0x563074._0x31ec8a,_0x563074._0x75a773)]===0x0&&_0x293270[_0x218de0(_0x563074._0x7b682,0x374,0x352,0x2f2)]===0x0)return;_0x46cd98[_0x218de0(0x38e,0x35d,_0x563074._0x160001,0x40d)]({'role':_0x218de0(_0x563074._0x46446f,0x3c9,_0x563074._0x457fdb,_0x563074._0x282c20),'content':_0x4da3c3[_0x218de0(0x2f4,0x22b,_0x563074._0x3258b4,0x20d)]>0x0?_0x4da3c3[_0x4e8832(_0x563074._0x3f087a,0xeb,-0x28,_0x563074._0x599a9f)]('\x0a\x0a'):null,..._0x293270[_0x4e8832(0x114,_0x563074._0x412143,0x122,0x1b7)]>0x0?{'tool_calls':_0x293270[_0x4e8832(0x15d,0x31e,_0x563074._0x6bf84e,_0x563074._0x74701c)](0x0)}:{}}),_0x4da3c3['length']=0x0;return;}if(_0x1c7535[_0x218de0(0x296,_0x563074._0x343ef3,_0x563074._0x1c2e8d,0x25c)]===_0x4e8832(0xc8,0x109,_0x563074._0x30f1ed,_0x563074._0x1be84b)){if(_0xb476dd[_0x4e8832(0x12d,0x14f,0x221,0x1b7)]===0x0)return;const _0x4a3503=_0xb476dd[_0x218de0(0x2a5,0x2e4,0x1be,0x212)](_0xba9cfe=>_0xba9cfe[_0x218de0(0x36b,0x430,0x38a,0x3cb)]===_0x4e8832(0x106,0x19d,0x7,0xdf));_0x46cd98[_0x4e8832(_0x563074._0x49f6b5,_0x563074._0x155172,_0x563074._0x51098b,_0x563074._0xa2e7e6)]({'role':_0x218de0(_0x563074._0x2ec3f4,0x236,_0x563074._0x2fe53b,0x373),'content':_0x4a3503?_0xb476dd['splice'](0x0):_0xb476dd[_0x218de0(_0x563074._0x1636c9,0x40d,_0x563074._0x7b682,_0x563074._0x446540)](0x0)['filter'](_0x23f60c=>_0x23f60c[_0x4e8832(0x1a8,0x1e7,0x2a0,0x22e)]===_0x4e8832(0x1ec,0x256,0xec,0x1a5))[_0x218de0(_0x563074._0x1f0ffa,_0x563074._0x24d2e5,0x138,_0x563074._0x2fe1e8)](_0x33b97d=>_0x33b97d['text'])[_0x4e8832(-0xd,_0x563074._0x26d084,0xd4,_0x563074._0x599a9f)]('\x0a\x0a')});return;}if(_0x4da3c3['length']===0x0)return;function _0x218de0(_0x1165e9,_0x5c4317,_0x202ed2,_0xe18f31){return _0x58b5bb(_0x1165e9-_0x3193a0._0x3ea9fb,_0x5c4317-0x1a3,_0xe18f31,_0xe18f31-0xe9);}_0x46cd98['push']({'role':_0x1c7535[_0x4e8832(_0x563074._0x49b81e,_0x563074._0x29214f,0x130,_0x563074._0x383f4c)],'content':_0x4da3c3[_0x218de0(_0x563074._0x47a4fd,_0x563074._0x9d9fa2,0x224,0x16d)]('\x0a\x0a')}),_0x4da3c3[_0x4e8832(0x125,0x25a,0x204,_0x563074._0x44b5e8)]=0x0;};for(const _0x1501c9 of normalizeContent(_0x1c7535[_0x58b5bb(-_0x5265c2._0x4e865f,-0x1a9,-_0x5265c2._0xe2e79,-0x93)])){if(_0x1501c9[_0x58b5bb(-0x97,-0x8d,-0x13b,-0x130)]===_0x80df29(-0x28d,-0x1e3,-0x2cf,-_0x5265c2._0x24bf83)){_0x1c7535[_0x58b5bb(-0x16c,-_0x5265c2._0x1b2ece,-_0x5265c2._0x138a61,-_0x5265c2._0x3cafeb)]===_0x80df29(-_0x5265c2._0x19086e,-_0x5265c2._0xcf5291,-_0x5265c2._0x71d3e4,-0x14e)?_0xb476dd[_0x80df29(-0xbe,-0x137,-0x9f,-_0x5265c2._0x260470)]({'type':_0x80df29(-_0x5265c2._0x183c9c,-_0x5265c2._0x54d56d,-_0x5265c2._0x274472,-0x13c),'text':_0x1501c9[_0x80df29(-_0x5265c2._0x5078ab,-0x1e3,-0x136,-_0x5265c2._0xe566a3)]}):_0x4da3c3['push'](_0x1501c9[_0x80df29(-_0x5265c2._0x321baa,-0x1e3,-0x228,-0x19d)]);continue;}if(_0x1c7535[_0x58b5bb(-_0x5265c2._0x2e8722,-_0x5265c2._0x18573c,-0x113,-0x1fe)]===_0x58b5bb(-0x13d,-0x18c,-_0x5265c2._0x5a05a1,-0x139)&&_0x1501c9[_0x58b5bb(-0x97,-_0x5265c2._0x16bc44,-_0x5265c2._0x9d9ea2,-0x59)]===_0x58b5bb(-_0x5265c2._0x530b0a,-_0x5265c2._0x34de2b,-0x9c,-0x19b)){_0xb476dd[_0x58b5bb(-_0x5265c2._0x119585,-0x81,-0x126,-0x3e)]({'type':'image_url','image_url':{'url':_0x80df29(-_0x5265c2._0x3aa7a4,-0x144,-0x1b8,-_0x5265c2._0x34352f)+_0x1501c9[_0x58b5bb(-_0x5265c2._0x243cc4,-_0x5265c2._0x2745ab,-_0x5265c2._0xd53467,-_0x5265c2._0x161e9c)][_0x58b5bb(-0x58,-0xf5,-_0x5265c2._0x31a86c,-0xc8)]+_0x58b5bb(-_0x5265c2._0x262e35,-_0x5265c2._0x5d4729,-0x1c3,-0x143)+_0x1501c9[_0x80df29(-_0x5265c2._0x4d7243,-0x255,-_0x5265c2._0x43a0b3,-0x16c)][_0x80df29(-_0x5265c2._0x116eb9,-0x214,-_0x5265c2._0x581e66,-0x1f1)]}});continue;}if(_0x1501c9['type']==='tool_use'){_0x293270[_0x58b5bb(-0x74,-0x159,-0x11d,-0xa4)]({'id':_0x1501c9['id'],'type':_0x58b5bb(-_0x5265c2._0x301725,-_0x5265c2._0x23dde9,-_0x5265c2._0x5e0479,-_0x5265c2._0x10b0aa),'function':{'name':_0x1501c9[_0x58b5bb(-_0x5265c2._0x4a2077,-_0x5265c2._0x2766b4,-_0x5265c2._0xa7c566,-0x273)],'arguments':JSON[_0x80df29(-0x1fa,-0x228,-_0x5265c2._0x23b84d,-0x28a)](_0x1501c9[_0x80df29(-0xd4,-0x121,-_0x5265c2._0x99518c,-0x195)]??{})}});continue;}if(_0x1501c9[_0x58b5bb(-_0x5265c2._0x262e64,-0x3f,-0x147,-0xb8)]!==_0x80df29(-_0x5265c2._0x54ad3c,-_0x5265c2._0x59952e,-_0x5265c2._0x4976e2,-_0x5265c2._0x3daffd))continue;_0x55bd6d(),_0x46cd98['push']({'role':'tool','content':getToolResultText(_0x1501c9['content']),'tool_call_id':_0x1501c9['tool_use_id']});const _0x2f76de=getToolResultImages(_0x1501c9[_0x58b5bb(-_0x5265c2._0x42c62f,-0x159,-0x82,-0xc1)]);_0x2f76de[_0x80df29(-0x2a6,-0x1d1,-_0x5265c2._0x286262,-0x19f)]>0x0&&_0x46cd98['push']({'role':_0x58b5bb(-_0x5265c2._0x436803,-0x97,-_0x5265c2._0xdea721,-_0x5265c2._0x1a8a29),'content':[{'type':_0x80df29(-0x131,-_0x5265c2._0x54d56d,-_0x5265c2._0x41f357,-0x16e),'text':_0x80df29(-_0x5265c2._0x40f3fe,-_0x5265c2._0x56bfb2,-_0x5265c2._0x84a322,-0x1f8)+_0x1501c9[_0x58b5bb(-0x104,-_0x5265c2._0xeedaf6,-_0x5265c2._0x2715a8,-_0x5265c2._0x4507f3)]+'.'},..._0x2f76de[_0x58b5bb(-0x206,-_0x5265c2._0x1d5296,-0x16d,-_0x5265c2._0x49ac42)](_0x23a48d=>({'type':_0x58b5bb(-0x1e6,-0x273,-0x1fa,-0x215),'image_url':{'url':_0x80df29(-0x206,-0x144,-0x58,-0x1ef)+_0x23a48d[_0x80df29(-0x1d7,-0x255,-0x26a,-0x1d5)][_0x80df29(-0x1e8,-0x11b,-0x1d5,-0x141)]+_0x80df29(-0x307,-0x2b1,-0x308,-0x1e8)+_0x23a48d[_0x58b5bb(-0x192,-0x21d,-0x234,-0x25c)][_0x58b5bb(-0x151,-0xe5,-0x109,-0x196)]}}))]});}_0x55bd6d();}const _0x1c4aa1=resolveOpenAiReasoningConfig(_0x388810[_0x58b5bb(-_0x5265c2._0x41aac8,-0x218,-_0x5265c2._0x2e1c49,-0x18f)]);function _0x58b5bb(_0x522c64,_0x1b0bc9,_0x436275,_0x4c72d7){return _0x2d9e9f(_0x522c64-_0x4b8e11._0x19de93,_0x436275,_0x522c64- -_0x4b8e11._0x341221,_0x4c72d7-_0x4b8e11._0x30c8d7);}return{'model':_0x388810[_0x80df29(-0x3a5,-0x2ba,-0x2d6,-_0x5265c2._0x9274c5)],'messages':_0x46cd98,'stream':_0x13f83d,..._0x1c4aa1?{'max_completion_tokens':_0x388810[_0x58b5bb(-0x20d,-_0x5265c2._0x11fab2,-0x270,-0x1ac)]}:{'max_tokens':_0x388810[_0x58b5bb(-_0x5265c2._0x6a8db3,-_0x5265c2._0x29feac,-0x150,-_0x5265c2._0x20bd87)]},..._0x1c4aa1?.['effort']?{'reasoning_effort':_0x1c4aa1[_0x58b5bb(-0xba,_0x5265c2._0x4507f3,-0x8c,-0x59)]}:{},...createToolDefinitions(_0x388810[_0x80df29(-_0x5265c2._0x33c40c,-_0x5265c2._0x356d55,-0x213,-0x157)])?{'tools':createToolDefinitions(_0x388810[_0x80df29(-0x177,-0x229,-_0x5265c2._0x2c8e1d,-_0x5265c2._0x597a3f)])}:{},..._0x388810[_0x80df29(-_0x5265c2._0x4eda1a,-0x154,-_0x5265c2._0x336e53,-_0x5265c2._0x160369)]?{'response_format':{'type':_0x80df29(-0x2b3,-0x256,-_0x5265c2._0x7bde75,-0x19e),'json_schema':{'name':_0x388810['outputFormat'][_0x80df29(-0x27a,-0x28f,-_0x5265c2._0x301130,-_0x5265c2._0x3598dd)]??_0x58b5bb(-0x64,0x49,-0x103,-_0x5265c2._0x44afe5),'schema':_0x388810[_0x58b5bb(-_0x5265c2._0x13878e,_0x5265c2._0x1cbcbd,-0x13c,_0x5265c2._0x28ef4c)][_0x58b5bb(-0x1e0,-0x21e,-0x1d3,-0x1d3)],'strict':_0x388810[_0x80df29(-0x1b8,-0x154,-_0x5265c2._0x3f09c9,-0x231)][_0x58b5bb(-_0x5265c2._0x2c652d,-_0x5265c2._0x326915,-0xaa,-0x18f)]??!![]}}}:{}};}function createResponsesRequestBody(_0x5536a9,_0x39509f){return{...toOpenAiResponsesRequest(_0x5536a9),..._0x39509f?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x5458aa,_0x15e008={}){const _0x28a390={_0x2fa9c6:0x614,_0x16f0f7:0x4e9,_0x122dc7:0x5ba,_0xd8fddc:0x462,_0x3d41a2:0x61a,_0x5a8f63:0x5ae},_0x2eecc8={_0x258d54:0x123,_0x46055c:0x41},_0x50d29b={_0x790420:0xdb};function _0x22fddf(_0x1bbffc,_0x2fa796,_0x171fd3,_0x584cf2){return _0x2d9e9f(_0x1bbffc-0x169,_0x584cf2,_0x2fa796-_0x50d29b._0x790420,_0x584cf2-0xb9);}function _0x445636(_0x18e31b,_0x37289e,_0x137c49,_0xb98689){return _0x2d9e9f(_0x18e31b-_0x2eecc8._0x258d54,_0x37289e,_0x18e31b-_0x2eecc8._0x46055c,_0xb98689-0x142);}const _0xf7ea72=toOpenAiResponsesRequest(_0x5458aa);return{'type':_0x22fddf(_0x28a390._0x2fa9c6,0x54b,0x50d,0x4a8),..._0xf7ea72,..._0x15e008[_0x445636(_0x28a390._0x16f0f7,_0x28a390._0x122dc7,0x543,_0x28a390._0xd8fddc)]?{'input':_0x15e008[_0x22fddf(0x564,0x583,_0x28a390._0x3d41a2,_0x28a390._0x5a8f63)]}:{},..._0x15e008['previousResponseId']?{'previous_response_id':_0x15e008['previousResponseId']}:{},'store':![]};}function normalizeAssistantContent(_0x546150){const _0x4b667e={_0x4561e8:0xcc},_0x30a6ec={_0x40953c:0xc1,_0x5c0e25:0x1d0,_0x285015:0x113,_0x28f280:0x157,_0x6cb863:0x3a6,_0x24e8bf:0x41d},_0x239b0e={_0x12ee04:0x15a,_0x442378:0x45,_0x377991:0x4c4},_0x3c49f4={_0x263c31:0x1da};function _0x4504be(_0x242fed,_0x3353d5,_0x1d20e4,_0x3f47aa){return _0x2d9e9f(_0x242fed-0xdf,_0x1d20e4,_0x3f47aa- -0x3e3,_0x3f47aa-_0x3c49f4._0x263c31);}if(typeof _0x546150==='string')return _0x546150;if(!Array[_0x4504be(-_0x4b667e._0x4561e8,-0x1a5,-0x2c,-0xe8)](_0x546150))return'';return _0x546150['map'](_0x5f1a8d=>{const _0x508894={_0x498d32:0xa2};function _0x156f45(_0x7bf80e,_0x3c225c,_0x4063f3,_0x54cacb){return _0x4504be(_0x7bf80e-_0x239b0e._0x12ee04,_0x3c225c-_0x239b0e._0x442378,_0x7bf80e,_0x54cacb-_0x239b0e._0x377991);}function _0x5d4965(_0x2d6cd2,_0x2a8e80,_0x84fec8,_0x137f77){return _0x4504be(_0x2d6cd2-0x74,_0x2a8e80-_0x508894._0x498d32,_0x2d6cd2,_0x84fec8- -0x1a8);}return _0x5f1a8d[_0x5d4965(-_0x30a6ec._0x40953c,-0x67,-0x11c,-_0x30a6ec._0x5c0e25)]==='text'?_0x5f1a8d[_0x5d4965(-_0x30a6ec._0x285015,-_0x30a6ec._0x28f280,-0x1a5,-0x1a3)]:_0x5f1a8d[_0x156f45(_0x30a6ec._0x6cb863,0x496,0x3e2,_0x30a6ec._0x24e8bf)];})['join']('');}function normalizeResponsesMessageContent(_0x2307a2){const _0x3f78cc={_0x3c922e:0x189,_0x5151e1:0x124,_0x1c64fe:0x1e2},_0x5e2a20={_0x504282:0x1f9,_0x593a9c:0x2d4,_0x17d64c:0x2dc,_0x398ef6:0x2c3,_0x518ca2:0x25a,_0x55476d:0x321,_0x20f165:0x2f0,_0x56fee3:0x38a,_0x429dbb:0x2ec,_0x28a422:0x277,_0x47d44f:0x21e,_0x54788e:0x485,_0x316332:0x4b7,_0x35c6bd:0x298},_0x45efeb={_0x3b2f8a:0x98,_0x2ef0cc:0xe0},_0x13e5bb={_0x121f52:0x84,_0x3e7985:0x92},_0x5d80eb={_0x2fb0cb:0x39,_0x2f30ab:0x7c,_0x1ebefa:0x274};function _0x4b7fb5(_0x348e54,_0x60a1fd,_0x568664,_0x4a6381){return _0x1818aa(_0x348e54-_0x5d80eb._0x2fb0cb,_0x568664,_0x568664-_0x5d80eb._0x2f30ab,_0x60a1fd-_0x5d80eb._0x1ebefa);}if(!Array[_0x56037e(-0x246,-0x1d4,-_0x3f78cc._0x3c922e,-0x176)](_0x2307a2))return'';function _0x56037e(_0x31895d,_0x1d0ae5,_0x57a346,_0x558fc7){return _0x1818aa(_0x31895d-_0x13e5bb._0x121f52,_0x57a346,_0x57a346-_0x13e5bb._0x3e7985,_0x31895d- -0x16e);}return _0x2307a2[_0x4b7fb5(_0x3f78cc._0x5151e1,0x1a1,0x125,0x1dc)](_0x2fd0c6=>{if(!_0x2fd0c6||typeof _0x2fd0c6!==_0xee4773(_0x5e2a20._0x504282,_0x5e2a20._0x593a9c,0x1ef,0x2d1))return'';function _0x2ca305(_0x2a74db,_0x14fcf1,_0xa84f9e,_0x53c466){return _0x4b7fb5(_0x2a74db-_0x45efeb._0x3b2f8a,_0x2a74db-0x9a,_0x14fcf1,_0x53c466-_0x45efeb._0x2ef0cc);}const _0x55ef9d=_0x2fd0c6;if(_0x55ef9d['type']===_0xee4773(0x32c,0x1f1,_0x5e2a20._0x17d64c,_0x5e2a20._0x398ef6)&&typeof _0x55ef9d['text']===_0xee4773(0x2e1,0x32e,_0x5e2a20._0x518ca2,0x2c2))return _0x55ef9d[_0x2ca305(_0x5e2a20._0x55476d,_0x5e2a20._0x20f165,_0x5e2a20._0x56fee3,0x253)];function _0xee4773(_0x52d979,_0x30347e,_0x3fc194,_0x16dca3){return _0x4b7fb5(_0x52d979-0x19a,_0x16dca3- -0x6f,_0x52d979,_0x16dca3-0xd9);}if(_0x55ef9d[_0x2ca305(0x3aa,0x408,0x3fa,_0x5e2a20._0x429dbb)]==='refusal'&&typeof _0x55ef9d[_0x2ca305(_0x5e2a20._0x28a422,0x2c9,_0x5e2a20._0x47d44f,0x345)]===_0x2ca305(0x3cb,_0x5e2a20._0x54788e,_0x5e2a20._0x316332,0x480))return _0x55ef9d[_0x2ca305(0x277,0x1c3,_0x5e2a20._0x35c6bd,0x342)];return'';})[_0x56037e(-0x254,-_0x3f78cc._0x1c64fe,-0x190,-0x1ec)]('');}function extractOpenAiReasoningText(_0x5f5b4d){const _0xd621cd={_0x2f461a:0x50c,_0x4440d1:0x49c,_0x292633:0x482,_0x5d00bd:0x45f,_0x2f96a4:0x4b7,_0x2d04ab:0x479,_0x563514:0x3b6,_0x30774d:0x3ee,_0x43e585:0x3fb,_0x4d80d1:0x3f9,_0x4ae2ba:0x4a4,_0x19d8d7:0x55a,_0x572dd9:0x510,_0x348600:0x524,_0x1331c2:0x539},_0x5646ca={_0x48deb1:0x71},_0x58e5c1={_0x566070:0x152,_0x54c767:0x466};if(typeof _0x5f5b4d[_0x5c5619(0x448,_0xd621cd._0x2f461a,0x479,_0xd621cd._0x4440d1)]===_0x4335a8(0x5a0,0x501,_0xd621cd._0x292633,0x5e6))return _0x5f5b4d[_0x5c5619(_0xd621cd._0x5d00bd,_0xd621cd._0x2f96a4,_0xd621cd._0x2d04ab,0x417)];function _0x5c5619(_0x1610bb,_0x517eb0,_0x14eaae,_0x5c9c60){return _0x1818aa(_0x1610bb-_0x58e5c1._0x566070,_0x5c9c60,_0x14eaae-0x1c2,_0x14eaae-_0x58e5c1._0x54c767);}if(!Array[_0x5c5619(_0xd621cd._0x563514,_0xd621cd._0x30774d,0x38e,_0xd621cd._0x43e585)](_0x5f5b4d[_0x4335a8(0x424,0x482,0x46e,0x51e)]))return'';function _0x4335a8(_0x4abf6a,_0x57f69e,_0x782737,_0x51b9af){return _0x2d9e9f(_0x4abf6a-0xe0,_0x51b9af,_0x57f69e-_0x5646ca._0x48deb1,_0x51b9af-0x1d0);}return _0x5f5b4d[_0x5c5619(_0xd621cd._0x4d80d1,0x547,_0xd621cd._0x4ae2ba,_0xd621cd._0x19d8d7)][_0x5c5619(_0xd621cd._0x572dd9,_0xd621cd._0x348600,_0xd621cd._0x1331c2,0x556)](_0xa9426d=>_0xa9426d[_0x4335a8(0x5cc,0x4e0,0x4a0,0x4a6)]===_0x4335a8(0x542,0x46c,0x41c,0x478)&&typeof _0xa9426d['text']==='string')['map'](_0x4f891c=>_0x4f891c[_0x4335a8(0x3c2,0x457,0x4de,0x4cc)]??'')['join']('');}function createOpenAiReasoningBlock(_0x4ae9ef){const _0x3dc66b={_0x19a473:0x5c2,_0x1130bc:0x615,_0x12595d:0x693,_0x317dac:0x10b,_0x42a946:0xd1,_0x29ab46:0x1f2,_0x3baf2b:0x5ba,_0x6abd53:0x53e,_0x3e520e:0x530},_0x34d7ab={_0x445318:0x18a,_0x19a738:0x81,_0x372b2c:0x595},_0x244143={_0x5790d9:0x508,_0x387493:0x18d};function _0x445f05(_0x3c596d,_0x136a17,_0x17187e,_0xa21f49){return _0x2d9e9f(_0x3c596d-0xa7,_0x136a17,_0x17187e- -_0x244143._0x5790d9,_0xa21f49-_0x244143._0x387493);}const _0x3fb0b2=extractOpenAiReasoningText(_0x4ae9ef);function _0x6d1fbe(_0x5cc832,_0x429f71,_0x1ee409,_0x4c4626){return _0x1818aa(_0x5cc832-_0x34d7ab._0x445318,_0x5cc832,_0x1ee409-_0x34d7ab._0x19a738,_0x429f71-_0x34d7ab._0x372b2c);}return{'type':_0x6d1fbe(_0x3dc66b._0x19a473,0x5a9,_0x3dc66b._0x1130bc,_0x3dc66b._0x12595d),'summary':structuredClone(_0x4ae9ef[_0x445f05(-0x16a,-0x1c1,-_0x3dc66b._0x317dac,-_0x3dc66b._0x42a946)]??[]),..._0x4ae9ef['id']?{'id':_0x4ae9ef['id']}:{},..._0x4ae9ef[_0x445f05(-0x15e,-0x206,-0x1ba,-_0x3dc66b._0x29ab46)]?{'encryptedContent':_0x4ae9ef['encrypted_content']}:{},..._0x3fb0b2[_0x6d1fbe(0x5fa,_0x3dc66b._0x3baf2b,_0x3dc66b._0x6abd53,_0x3dc66b._0x3e520e)]>0x0?{'text':_0x3fb0b2}:{}};}function hasVisibleOpenAiReasoning(_0x5e2b96){const _0x4789af={_0x112f08:0x276,_0x4c8d07:0x2d3,_0x331055:0x542,_0x44f68d:0x592,_0x33a6ab:0x25f,_0x139952:0x1f0,_0x183679:0x23c,_0x27a594:0x6ab,_0x390fe8:0x683},_0x4857da={_0x38ad67:0x74},_0x9fc253={_0x5c5c69:0x14b,_0x2f3e5a:0x24c};function _0x5d7e2f(_0x37db9f,_0x306b02,_0x12bff2,_0x43e55b){return _0x1818aa(_0x37db9f-_0x9fc253._0x5c5c69,_0x37db9f,_0x12bff2-0x128,_0x306b02-_0x9fc253._0x2f3e5a);}function _0x8ae585(_0x2f2912,_0x3f7a81,_0x250323,_0x1d5100){return _0x2d9e9f(_0x2f2912-_0x4857da._0x38ad67,_0x1d5100,_0x3f7a81-0x14a,_0x1d5100-0x96);}return _0x5e2b96[_0x5d7e2f(0x334,_0x4789af._0x112f08,_0x4789af._0x4c8d07,0x2c9)][_0x8ae585(0x5cf,_0x4789af._0x331055,0x47e,_0x4789af._0x44f68d)]>0x0||typeof _0x5e2b96[_0x5d7e2f(_0x4789af._0x33a6ab,0x25f,_0x4789af._0x139952,_0x4789af._0x183679)]===_0x8ae585(_0x4789af._0x27a594,0x5da,0x5d8,_0x4789af._0x390fe8);}function parseChatCompletionResponse(_0xb9b5aa){const _0x4206b4={_0x5e5f52:0xb0,_0x4913d8:0xfa,_0x18042f:0x190,_0x2a45ab:0x3b,_0x354f62:0x116,_0x1a453e:0x15d,_0x89049e:0x113,_0x1bda14:0x3be,_0x20b4f6:0x3a5,_0x400629:0x408,_0x1646b5:0x4f5,_0xbb4f83:0x50c,_0x46dac9:0x76,_0x18f167:0x47,_0x1bf948:0x51c,_0x19665f:0x5e2,_0x207616:0x576,_0x5801ce:0x518,_0x47e85d:0x34,_0x70fd32:0x176,_0x4c95b9:0x127,_0x15b322:0x426,_0x4ad69d:0x4cc,_0x2d6750:0x38a,_0x590657:0x4c7,_0x53a099:0x45d,_0x20d865:0x5d1,_0x5b8617:0x535,_0x56c27e:0x3b4,_0xaf9ef1:0x333,_0x1aa6e8:0xa3},_0x15922c={_0x26f954:0x10b,_0x5a8b83:0x4b7},_0x4c498c={_0x367e15:0x382,_0x3ffb35:0xa7},_0x3aab44=[],_0x2d09a5=[];function _0x519b4b(_0x1192a8,_0x52556d,_0x4fed78,_0x30d668){return _0x2d9e9f(_0x1192a8-0xd1,_0x30d668,_0x52556d- -_0x4c498c._0x367e15,_0x30d668-_0x4c498c._0x3ffb35);}function _0x19cc7e(_0x558dc9,_0x4e22eb,_0x14a9c4,_0x21af1b){return _0x1818aa(_0x558dc9-0x1b5,_0x4e22eb,_0x14a9c4-_0x15922c._0x26f954,_0x14a9c4-_0x15922c._0x5a8b83);}let _0x283c6a=_0x519b4b(_0x4206b4._0x5e5f52,_0x4206b4._0x4913d8,_0x4206b4._0x18042f,0x133);for(const _0x416537 of _0xb9b5aa[_0x519b4b(_0x4206b4._0x2a45ab,_0x4206b4._0x354f62,_0x4206b4._0x1a453e,_0x4206b4._0x89049e)]??[]){const _0x1beade=_0x416537[_0x19cc7e(0x351,0x34e,_0x4206b4._0x1bda14,_0x4206b4._0x20b4f6)],_0x5be692=normalizeAssistantContent(_0x1beade?.[_0x19cc7e(_0x4206b4._0x400629,0x58a,_0x4206b4._0x1646b5,_0x4206b4._0xbb4f83)]);_0x5be692[_0x519b4b(0x7c,_0x4206b4._0x46dac9,0x13,_0x4206b4._0x18f167)]>0x0&&_0x3aab44[_0x19cc7e(_0x4206b4._0x1bf948,_0x4206b4._0x19665f,_0x4206b4._0x207616,_0x4206b4._0x5801ce)](_0x5be692),_0x1beade?.['tool_calls']&&_0x2d09a5[_0x519b4b(0x1cc,0x110,_0x4206b4._0x47e85d,_0x4206b4._0x70fd32)](..._0x1beade[_0x519b4b(0x165,0x83,_0x4206b4._0x4c95b9,0x70)]),_0x416537['finish_reason']===_0x519b4b(0xd0,0x83,0xdc,0x11c)&&(_0x283c6a=_0x19cc7e(0x4ac,0x488,_0x4206b4._0x15b322,0x3b2));}return _0x2d09a5['length']>0x0&&(_0x283c6a=_0x19cc7e(_0x4206b4._0x4ad69d,_0x4206b4._0x2d6750,_0x4206b4._0x15b322,_0x4206b4._0x590657)),{'id':_0xb9b5aa['id']??_0x19cc7e(0x43b,0x382,0x3ef,_0x4206b4._0x53a099)+Date[_0x19cc7e(_0x4206b4._0x20d865,0x56b,_0x4206b4._0x5b8617,0x598)](),'content':createContentBlocks(_0x3aab44[_0x19cc7e(_0x4206b4._0x56c27e,0x33e,0x3d1,_0x4206b4._0xaf9ef1)](''),_0x2d09a5),'stopReason':_0x283c6a,'usage':createUsage(_0xb9b5aa[_0x519b4b(0x182,0xa2,_0x4206b4._0x1aa6e8,-0x3b)])};}function parseResponsesResponse(_0x3aa5e2,_0x1e64b1){const _0x3536ea={_0x1af549:0x29d,_0x354d36:0x304,_0x1de010:0x22e,_0x1db531:0x13f,_0x1f1841:0x21f,_0x26c3b8:0x126,_0x620782:0x8,_0x2e1776:0x292,_0x406237:0x2c2,_0x52f396:0x23a,_0x100fbf:0x371,_0x3770e3:0x29e,_0x3f2ac8:0x28,_0x207354:0x7e,_0x2e8bd4:0x32,_0x30056f:0x278,_0x296fc6:0x148,_0x519f61:0x62,_0x537e24:0x114,_0x31a1cd:0x5b,_0xc017d2:0x185,_0x1a6b0b:0x266,_0x3adbee:0x23,_0x51b91a:0x6d,_0x409fe6:0x7c,_0x1ad46f:0x27,_0x35b45a:0x1e5,_0x55cb77:0xed,_0x5917cb:0x9a,_0x146bec:0x1bc,_0x5231c2:0x54,_0x4a5220:0x42,_0x49fc78:0x62,_0x4248af:0x11,_0x233bf8:0x26b,_0x266af8:0x165,_0x3da740:0x254,_0x9bd825:0x24e,_0x70a29:0x2a0,_0x5b2561:0x29f,_0x3a7151:0x1ed,_0x2d8ea7:0x1b7,_0x24b4ac:0x1ef,_0x1f0f47:0x88,_0x3e90df:0x193,_0x423c07:0x100,_0x495f61:0x73,_0x377f6f:0x29f,_0x65cd5c:0x1e0,_0x5e6c88:0x1d,_0x5cd9fa:0x51,_0x37534f:0x39,_0x410e55:0x128,_0x5e307a:0xa8,_0x13c7a5:0x27,_0x3a4a3d:0x93,_0x395c10:0x8c,_0x3c1f11:0x19a,_0x400a09:0x15b,_0x286ef2:0x1fa,_0x125314:0x155,_0x343231:0x2f8,_0x3ec7d1:0x29d,_0x421ffd:0x1ab,_0x3af8ef:0x61},_0x3c98e9={_0x47c603:0x14d,_0x478595:0x57},_0x500111={_0x1848c2:0x1f2,_0x1b9fbb:0x1cc};function _0x442209(_0xb40a6e,_0x161748,_0x44a6c5,_0x288fd7){return _0x2d9e9f(_0xb40a6e-0x0,_0xb40a6e,_0x288fd7- -_0x500111._0x1848c2,_0x288fd7-_0x500111._0x1b9fbb);}function _0x55cb17(_0x1df72c,_0x5c0b12,_0x8ef930,_0x50ad1d){return _0x1818aa(_0x1df72c-_0x3c98e9._0x47c603,_0x5c0b12,_0x8ef930-0x1c3,_0x8ef930-_0x3c98e9._0x478595);}const _0x4bdd60=[];for(const _0x331779 of _0x3aa5e2[_0x442209(0x1fc,0x30a,0x248,_0x3536ea._0x1af549)]??[]){if(isResponsesReasoningItem(_0x331779)){if(isUserVisibleReasoning(_0x1e64b1)){const _0x1b15f4=createOpenAiReasoningBlock(_0x331779);hasVisibleOpenAiReasoning(_0x1b15f4)&&_0x4bdd60['push'](_0x1b15f4);}continue;}if(isResponsesMessageItem(_0x331779)){const _0x815166=normalizeResponsesMessageContent(_0x331779[_0x442209(_0x3536ea._0x354d36,_0x3536ea._0x1de010,_0x3536ea._0x1db531,_0x3536ea._0x1f1841)]);_0x815166[_0x55cb17(_0x3536ea._0x26c3b8,0x136,0x7c,_0x3536ea._0x620782)]>0x0&&_0x4bdd60[_0x442209(_0x3536ea._0x2e1776,_0x3536ea._0x406237,0x2dc,0x2a0)]({'type':'text','text':_0x815166});continue;}if(!isResponsesFunctionCallItem(_0x331779)||typeof _0x331779['call_id']!==_0x442209(0x328,_0x3536ea._0x52f396,_0x3536ea._0x100fbf,_0x3536ea._0x3770e3)||_0x331779[_0x55cb17(-_0x3536ea._0x3f2ac8,_0x3536ea._0x207354,_0x3536ea._0x2e8bd4,-0x21)]['trim']()[_0x442209(_0x3536ea._0x30056f,0x1c4,0x164,0x206)]===0x0||typeof _0x331779[_0x442209(0x109,0x198,0x211,_0x3536ea._0x296fc6)]!==_0x55cb17(0x1d4,_0x3536ea._0x519f61,_0x3536ea._0x537e24,_0x3536ea._0x31a1cd)||_0x331779['name'][_0x442209(0x271,0x27f,_0x3536ea._0xc017d2,_0x3536ea._0x1a6b0b)]()[_0x55cb17(-_0x3536ea._0x3adbee,_0x3536ea._0x51b91a,_0x3536ea._0x409fe6,_0x3536ea._0x1ad46f)]===0x0||typeof _0x331779[_0x442209(0x1f9,0x1d2,0x270,_0x3536ea._0x35b45a)]!=='string')continue;_0x4bdd60['push']({'type':_0x442209(_0x3536ea._0x55cb77,0xdd,_0x3536ea._0x5917cb,0x150),'id':_0x331779[_0x442209(0x129,0x105,0x1c0,_0x3536ea._0x146bec)],'name':_0x331779[_0x55cb17(_0x3536ea._0x5231c2,-0x11,-_0x3536ea._0x4a5220,-_0x3536ea._0x49fc78)],'input':parseToolInput2(_0x331779['arguments'])});}return!_0x4bdd60[_0x55cb17(0xd5,-_0x3536ea._0x4248af,0x2d,0x38)](_0x15e9bc=>_0x15e9bc[_0x55cb17(0x133,0x1ac,0xf3,0x32)]===_0x55cb17(0x119,0x35,0x6a,-0x33))&&_0x3aa5e2['output_text']&&_0x4bdd60[_0x442209(0x30f,_0x3536ea._0x233bf8,0x35d,0x2a0)]({'type':_0x442209(_0x3536ea._0x266af8,0x16e,_0x3536ea._0x3da740,0x1f4),'text':_0x3aa5e2[_0x442209(_0x3536ea._0x9bd825,0x278,_0x3536ea._0x70a29,_0x3536ea._0x5b2561)]}),{'id':_0x3aa5e2['id'],'content':_0x4bdd60,'stopReason':_0x4bdd60[_0x442209(_0x3536ea._0x3a7151,_0x3536ea._0x3770e3,0x1d4,_0x3536ea._0x2d8ea7)](_0x51b07b=>_0x51b07b[_0x55cb17(0x170,0x28,0xf3,0x1d4)]===_0x442209(0x117,0x21d,0x78,0x150))?_0x442209(0xfc,_0x3536ea._0x24b4ac,_0x3536ea._0x1f0f47,0x150):_0x55cb17(0x151,_0x3536ea._0x3e90df,_0x3536ea._0x423c07,_0x3536ea._0x495f61),'usage':{'inputTokens':_0x3aa5e2[_0x442209(_0x3536ea._0x377f6f,0x1c7,_0x3536ea._0x65cd5c,0x232)]?.[_0x55cb17(-0x126,_0x3536ea._0x5e6c88,-_0x3536ea._0x5cd9fa,-0x86)]??0x0,'outputTokens':_0x3aa5e2[_0x442209(0x260,0x302,0x28d,0x232)]?.['output_tokens']??0x0,..._0x3aa5e2[_0x55cb17(-_0x3536ea._0x37534f,_0x3536ea._0x410e55,_0x3536ea._0x5e307a,-_0x3536ea._0x13c7a5)]?.['output_tokens_details']?.[_0x442209(_0x3536ea._0x3a4a3d,_0x3536ea._0x395c10,0xaa,0x155)]!==void 0x0?{'reasoningTokens':_0x3aa5e2['usage'][_0x442209(_0x3536ea._0x55cb77,_0x3536ea._0x3c1f11,0xc9,_0x3536ea._0x400a09)][_0x442209(_0x3536ea._0x286ef2,0x150,0x213,_0x3536ea._0x125314)]}:{}},..._0x3aa5e2[_0x442209(_0x3536ea._0x343231,0x1cd,0x1f4,_0x3536ea._0x3ec7d1)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x3aa5e2[_0x55cb17(0x99,_0x3536ea._0x421ffd,0x113,_0x3536ea._0x3af8ef)]),'openaiResponsesResponseId':_0x3aa5e2['id']}}:{}};}function extractErrorMessage(_0x4633ef){const _0x1307ae={_0x38602c:0x3ff,_0xec2658:0x444,_0x161d93:0xdc,_0x2d5d0e:0x145,_0x58b57d:0xda,_0x185f88:0x3f2,_0x8946eb:0x5e6,_0x45333d:0x6a4,_0x524c65:0x5d9,_0x1077f6:0x91,_0x3622d4:0x7a,_0x1b09ae:0x11a,_0x5f504f:0x3c8,_0x55944b:0x49a,_0x2625bd:0x506,_0x29425a:0x468,_0x40f21f:0x4db,_0x2c98ae:0x53b,_0x2020e4:0x5e6,_0x5597a8:0x5f0,_0x2ecb94:0x692,_0x2c8126:0x175,_0x5efad2:0xa5,_0x2988ce:0x5cc,_0x114fdb:0x38e,_0xfeafa1:0x468,_0x362b95:0x530,_0x3e2dd7:0x177,_0x770d1e:0xa3,_0xeac0a:0x15,_0x464352:0xa2,_0x1c3581:0x94,_0x356cb1:0x3,_0x2eeff5:0xa2},_0x2bcd8a={_0x4a6cfa:0x87,_0x224b00:0xc3,_0x67e11b:0x1d},_0x20f731={_0x29e9f9:0xb5,_0x30166b:0x185};if(_0x4633ef['length']===0x0)return'';try{const _0xffe00a=JSON['parse'](_0x4633ef);if(typeof _0xffe00a[_0x34c641(_0x1307ae._0x38602c,0x49a,0x47f,_0x1307ae._0xec2658)]?.[_0x34c641(0x510,0x468,0x4c9,0x3fa)]===_0x46dd58(_0x1307ae._0x161d93,_0x1307ae._0x2d5d0e,0x19f,_0x1307ae._0x58b57d)&&_0xffe00a['error'][_0x34c641(0x4be,0x468,_0x1307ae._0x185f88,0x524)][_0x34c641(0x58e,_0x1307ae._0x8946eb,_0x1307ae._0x45333d,_0x1307ae._0x524c65)]()[_0x46dd58(_0x1307ae._0x1077f6,-_0x1307ae._0x3622d4,_0x1307ae._0x1b09ae,0x42)]>0x0)return _0xffe00a[_0x34c641(_0x1307ae._0x5f504f,_0x1307ae._0x55944b,0x4ca,_0x1307ae._0x2625bd)][_0x34c641(0x463,_0x1307ae._0x29425a,_0x1307ae._0x40f21f,_0x1307ae._0x2c98ae)][_0x34c641(0x676,_0x1307ae._0x2020e4,_0x1307ae._0x5597a8,_0x1307ae._0x2ecb94)]();if(typeof _0xffe00a[_0x46dd58(-0xb,-_0x1307ae._0x2c8126,-_0x1307ae._0x5efad2,-0xdc)]===_0x34c641(0x6a1,0x61e,_0x1307ae._0x2988ce,0x63a)&&_0xffe00a[_0x34c641(_0x1307ae._0x114fdb,_0x1307ae._0xfeafa1,_0x1307ae._0x362b95,0x3b5)][_0x46dd58(_0x1307ae._0x3e2dd7,_0x1307ae._0x770d1e,_0x1307ae._0xeac0a,_0x1307ae._0x464352)]()['length']>0x0)return _0xffe00a['message'][_0x46dd58(_0x1307ae._0x1c3581,_0x1307ae._0x356cb1,-0x2c,_0x1307ae._0x2eeff5)]();}catch{return _0x4633ef;}function _0x34c641(_0xa0371a,_0x4e224b,_0x555bb3,_0x16395b){return _0x1818aa(_0xa0371a-_0x20f731._0x29e9f9,_0x16395b,_0x555bb3-_0x20f731._0x30166b,_0x4e224b-0x561);}function _0x46dd58(_0xfdf369,_0x161d42,_0x186954,_0x47013a){return _0x1818aa(_0xfdf369-_0x2bcd8a._0x4a6cfa,_0x186954,_0x186954-_0x2bcd8a._0x224b00,_0x47013a-_0x2bcd8a._0x67e11b);}return _0x4633ef;}async function createOpenAiApiError(_0x452d8f){const _0x5e14f6={_0x490e4c:0x4c2,_0x20f986:0x485,_0x26965b:0x486,_0xd24505:0x5d2,_0x11c8be:0x5ef,_0x480171:0x623,_0x2f8851:0x5c7,_0x449f0f:0x5c1,_0x525d19:0x66c,_0x2ef301:0x5eb,_0x1966a9:0x54c,_0x43504d:0x58c},_0x5a4319={_0x1d003a:0x99,_0x5b7b01:0x5c},_0x1e8143=(await _0x452d8f[_0x39fb07(0x560,_0x5e14f6._0x490e4c,_0x5e14f6._0x20f986,_0x5e14f6._0x26965b)]())[_0x39fb07(_0x5e14f6._0xd24505,0x628,0x5e9,_0x5e14f6._0x11c8be)]();function _0x553666(_0x3ec995,_0x66e199,_0x5c2dee,_0x31c819){return _0x1818aa(_0x3ec995-_0x5a4319._0x1d003a,_0x66e199,_0x5c2dee-_0x5a4319._0x5b7b01,_0x3ec995-0x1a2);}function _0x39fb07(_0xef3e8a,_0x666f7a,_0x4a334e,_0x5c103e){return _0x2d9e9f(_0xef3e8a-0x189,_0x5c103e,_0xef3e8a-0x17a,_0x5c103e-0x18e);}const _0x1a551d=extractErrorMessage(_0x1e8143)||_0x452d8f[_0x39fb07(_0x5e14f6._0x480171,0x5ab,_0x5e14f6._0x2f8851,0x635)]||'OpenAI\x20API\x20error\x20'+_0x452d8f[_0x39fb07(_0x5e14f6._0x449f0f,0x57a,_0x5e14f6._0x525d19,0x543)];return new OpenAiApiError(_0x452d8f[_0x39fb07(_0x5e14f6._0x449f0f,_0x5e14f6._0x2ef301,_0x5e14f6._0x1966a9,_0x5e14f6._0x43504d)],_0x1e8143,_0x1a551d);}function readSseData(_0xf6d940){const _0x447d54={_0x2f812d:0x585,_0x8e317:0x569,_0x2fc890:0x475,_0x3facfe:0x4e7,_0x9dc602:0x4e4,_0x19a413:0x549,_0x4b3b2e:0x2dd,_0x45a152:0x3a3,_0x271f0c:0x140},_0x450605={_0x1d68c8:0x1ae,_0x321158:0x476},_0x33af16={_0x132c41:0x134,_0x2f5837:0x4eb,_0x99b22b:0x58};function _0x1d45d0(_0x4ca4d7,_0x22fb49,_0x27eebe,_0x557482){return _0x2d9e9f(_0x4ca4d7-_0x33af16._0x132c41,_0x557482,_0x22fb49- -_0x33af16._0x2f5837,_0x557482-_0x33af16._0x99b22b);}function _0x3cfa2f(_0x3780cd,_0x25e61b,_0x568ab4,_0x156f6c){return _0x1818aa(_0x3780cd-0x1d5,_0x3780cd,_0x568ab4-_0x450605._0x1d68c8,_0x156f6c-_0x450605._0x321158);}return _0xf6d940[_0x3cfa2f(_0x447d54._0x2f812d,_0x447d54._0x8e317,_0x447d54._0x2fc890,_0x447d54._0x3facfe)]('\x0a')[_0x3cfa2f(_0x447d54._0x9dc602,0x5bb,0x547,_0x447d54._0x19a413)](_0x44db16=>_0x44db16['startsWith'](_0x3cfa2f(0x577,0x56b,0x473,0x528)))[_0x3cfa2f(0x3cd,0x2bd,_0x447d54._0x4b3b2e,_0x447d54._0x45a152)](_0x3f3a4f=>_0x3f3a4f[_0x1d45d0(-0xa3,-0x13c,-0x188,-0x124)](0x5)[_0x1d45d0(-0x274,-0x189,-0x132,-0x244)]())[_0x1d45d0(-0x1d2,-0x1fe,-_0x447d54._0x271f0c,-0x1fb)]('\x0a')['trim']();}function readString(_0x255668){const _0x2ef55e={_0x42c9de:0xfb,_0x3e6459:0x178,_0x57453f:0x37,_0x345e7c:0x63,_0x330f64:0x74},_0x55c70f={_0x3c2734:0x12d,_0x134de4:0xb1},_0x43fa7a={_0xb8fdb0:0x1d7};function _0x239c34(_0x552145,_0x226bfd,_0x5e90dc,_0x5ba649){return _0x2d9e9f(_0x552145-_0x43fa7a._0xb8fdb0,_0x226bfd,_0x5e90dc- -0x395,_0x5ba649-0x18f);}function _0x1a6bfe(_0x1c894f,_0x429072,_0x36f55d,_0x2877a2){return _0x1818aa(_0x1c894f-_0x55c70f._0x3c2734,_0x2877a2,_0x36f55d-_0x55c70f._0x134de4,_0x429072-0x3df);}return typeof _0x255668===_0x239c34(0x1cf,0x171,_0x2ef55e._0x42c9de,_0x2ef55e._0x3e6459)&&_0x255668[_0x239c34(-0x76,_0x2ef55e._0x57453f,_0x2ef55e._0x345e7c,_0x2ef55e._0x330f64)]>0x0?_0x255668:void 0x0;}function extractReasoningDetails(_0x753d35){const _0x55d0f9={_0x1efe3e:0xb0,_0x27d587:0x99,_0x54e543:0x12d,_0x2e5ef2:0x64,_0x38ff85:0x127,_0x4ae14c:0xa7},_0x148039={_0x28e887:0x1e2,_0x376465:0x87},_0x4809d5={_0x5de9c3:0xd4,_0x5edc17:0x9f,_0x208300:0x27,_0x15fa7a:0x179,_0x4871db:0xb3,_0x3d2de2:0x18a,_0x43e13f:0xc,_0x1d64c7:0xba,_0x2c03b7:0xd0},_0x2da1e1={_0x3b60f2:0xc6},_0x4eb62d={_0xa823f6:0x197},_0x1037e8={_0x187e53:0x2e};function _0x1456bd(_0x53ee3f,_0x2aa6f2,_0x425d84,_0xf0835e){return _0x2d9e9f(_0x53ee3f-_0x1037e8._0x187e53,_0x2aa6f2,_0x425d84- -0x394,_0xf0835e-0x71);}if(!Array[_0x1456bd(-0x146,-_0x55d0f9._0x1efe3e,-_0x55d0f9._0x27d587,-0x133)](_0x753d35))return void 0x0;const _0x1cdd95=_0x753d35['flatMap'](_0x30dde5=>{if(!_0x30dde5||typeof _0x30dde5!==_0x204400(_0x4809d5._0x5de9c3,-0x56,0xa3,-0x18))return[];const _0x169875=_0x30dde5;if(typeof _0x169875[_0x204400(-0x1b9,-0x32,-0x25,-0xd1)]===_0x204400(-0x64,-0xd9,_0x4809d5._0x5edc17,-_0x4809d5._0x208300))return[_0x169875[_0x5e51a4(_0x4809d5._0x15fa7a,_0x4809d5._0x4871db,_0x4809d5._0x3d2de2,0xfd)]];function _0x5e51a4(_0x4b51da,_0x261ad9,_0x10ec92,_0x3d97b1){return _0x1456bd(_0x4b51da-_0x4eb62d._0xa823f6,_0x10ec92,_0x3d97b1-0xab,_0x3d97b1-0x175);}if(typeof _0x169875[_0x204400(-0x48,-_0x4809d5._0x43e13f,-0x116,-_0x4809d5._0x1d64c7)]===_0x5e51a4(0xf3,0x276,_0x4809d5._0x2c03b7,0x1a7))return[_0x169875['summary']];function _0x204400(_0x80655f,_0x221bc9,_0x4ea9c4,_0x3a2488){return _0x1456bd(_0x80655f-0x1a3,_0x221bc9,_0x3a2488- -0x123,_0x3a2488-_0x2da1e1._0x3b60f2);}return[];});function _0x35a68e(_0xaf42da,_0x26ea86,_0x12bb5f,_0x45b48c){return _0x2d9e9f(_0xaf42da-_0x148039._0x28e887,_0x45b48c,_0xaf42da- -_0x148039._0x376465,_0x45b48c-0x50);}return _0x1cdd95[_0x1456bd(_0x55d0f9._0x54e543,0x11d,_0x55d0f9._0x2e5ef2,_0x55d0f9._0x38ff85)]>0x0?_0x1cdd95[_0x1456bd(-0xe1,-0xa4,-_0x55d0f9._0x4ae14c,0x9)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x2f8385){const _0x572332={_0x1d2e64:0x1a3,_0x52262f:0x1ae,_0x3b6b72:0x1ff,_0x40a4ef:0x288,_0x1152fe:0x123},_0x1408d6={_0xe90ee6:0xcb,_0x10fc3c:0x9d,_0x2c3545:0x112};function _0x3354bb(_0x39e53b,_0x451aff,_0x578d59,_0xb222d){return _0x1818aa(_0x39e53b-_0x1408d6._0xe90ee6,_0x451aff,_0x578d59-_0x1408d6._0x10fc3c,_0x39e53b-_0x1408d6._0x2c3545);}function _0x4e94bd(_0x51a668,_0xe8fc9a,_0x19a93b,_0x5228fd){return _0x2d9e9f(_0x51a668-0xc2,_0x19a93b,_0x51a668- -0x5a1,_0x5228fd-0x1cf);}return extractReasoningDetails(_0x2f8385?.[_0x3354bb(0x1e2,_0x572332._0x1d2e64,0x1ad,_0x572332._0x52262f)])??readString(_0x2f8385?.['reasoning'])??readString(_0x2f8385?.[_0x4e94bd(-0x1e0,-_0x572332._0x3b6b72,-0x2b1,-_0x572332._0x40a4ef)])??readString(_0x2f8385?.[_0x4e94bd(-0x1a6,-_0x572332._0x1152fe,-0x16a,-0x1ce)])??'';}var OpenAiChatCompletionsStreamParser=class{['reasoningParts']=[];[_0x2d9e9f(0x449,0x301,0x3ed,0x328)];['textParts']=[];[_0x1818aa(0xa9,0x3c,0xb3,0x1e)]=new Map();['toolCallOrder']=[];[_0x1818aa(-0x27,0x22,0x1e,0xb9)]=new Set();['responseId']='';['stopReason']=_0x2d9e9f(0x393,0x3ab,0x47c,0x3fa);[_0x1818aa(0x0,0x123,0x79,0x51)];constructor(_0x1568fa){const _0x45acd1={_0x270d63:0x50,_0x142409:0xae,_0x54fd42:0xe0},_0x1c3984={_0x29e5ec:0xdc};function _0x2b7721(_0x4d8485,_0x51e3dc,_0x5d192d,_0x12335c){return _0x2d9e9f(_0x4d8485-0x92,_0x4d8485,_0x12335c- -0x3cf,_0x12335c-_0x1c3984._0x29e5ec);}this[_0x2b7721(-_0x45acd1._0x270d63,_0x45acd1._0x142409,_0x45acd1._0x54fd42,0x1e)]=_0x1568fa;}[_0x1818aa(0x4,0x5,0x25,-0x49)](_0x2aba87){const _0x2a656c={_0x2612bb:0x1f9,_0x556dab:0x11e,_0x2e3a83:0x1ce,_0x407c44:0x49,_0xf05899:0x57,_0x18cb11:0x9a,_0x484349:0x48,_0x287f09:0x15f,_0x707b57:0x1a6,_0x101329:0x10f,_0x1bcab:0x14a,_0x547941:0x217,_0x3d86e4:0xa2,_0x545ede:0xd,_0x17f8e2:0x53},_0x13cdbf={_0x45d25c:0x120,_0x537ee1:0x2da,_0x5913e4:0x69},_0x292d99={_0xaeff01:0x61,_0x2b3fd2:0x5a},_0x13a0ac=readSseData(_0x2aba87);function _0x5dad84(_0x2b6bab,_0x4798d6,_0x56c4f2,_0x54b0f2){return _0x1818aa(_0x2b6bab-0x71,_0x56c4f2,_0x56c4f2-_0x292d99._0xaeff01,_0x4798d6-_0x292d99._0x2b3fd2);}if(_0x13a0ac[_0x2a5a46(0xb8,_0x2a656c._0x2612bb,0x63,_0x2a656c._0x556dab)]===0x0||_0x13a0ac==='[DONE]')return[];const _0x25c886=JSON[_0x5dad84(0x158,0xec,0x17b,_0x2a656c._0x2e3a83)](_0x13a0ac);this[_0x2a5a46(0x65,-_0x2a656c._0x407c44,-_0x2a656c._0x407c44,_0x2a656c._0xf05899)]=_0x25c886['id']??this[_0x5dad84(-_0x2a656c._0x18cb11,-_0x2a656c._0x484349,-0x73,0x57)],this[_0x2a5a46(_0x2a656c._0x287f09,_0x2a656c._0x707b57,_0x2a656c._0x101329,_0x2a656c._0x1bcab)]=_0x25c886['usage']??this[_0x2a5a46(0x200,_0x2a656c._0x547941,0x153,0x14a)];function _0x2a5a46(_0xf46e16,_0xc742bb,_0x256a59,_0x2aaa71){return _0x2d9e9f(_0xf46e16-_0x13cdbf._0x45d25c,_0x256a59,_0x2aaa71- -_0x13cdbf._0x537ee1,_0x2aaa71-_0x13cdbf._0x5913e4);}return this[_0x2a5a46(_0x2a656c._0x3d86e4,0xa2,-_0x2a656c._0x545ede,_0x2a656c._0x17f8e2)](_0x25c886);}[_0x2d9e9f(0x3c3,0x38d,0x2fd,0x3a0)](){const _0x4a4b6d={_0x1344b7:0x55d,_0x5110d2:0x5f2,_0x18a6cb:0x592,_0x5f3e4b:0x629,_0x2b68a6:0x5df,_0x4d6e13:0x66a,_0x58a768:0xab,_0xe39f5e:0xa1,_0x46297d:0x67,_0x5b1a7b:0x18,_0x384f0e:0xa2,_0x36de47:0xae,_0x8160f0:0x45,_0x480c30:0x4fc,_0xe8ce8f:0x466,_0xf2791:0x533,_0x210704:0x379,_0x16bdf2:0xa7,_0x4bf883:0x554,_0xb7abcd:0x61f,_0x317618:0x59d,_0x3d4214:0x530,_0x3d083f:0x4c4},_0x40d4bc={_0x4c4e90:0x0,_0x5e55fe:0x54c},_0x515b67={_0x3bf9a6:0x46,_0x21e269:0x35,_0x4bdc27:0x1};this[_0x34d990(_0x4a4b6d._0x1344b7,_0x4a4b6d._0x5110d2,0x63d,_0x4a4b6d._0x18a6cb)]['length']>0x0&&(this[_0x34d990(0x643,_0x4a4b6d._0x5f3e4b,_0x4a4b6d._0x2b68a6,_0x4a4b6d._0x4d6e13)]=_0x34d990(0x44d,0x4bb,0x4ab,0x514));function _0x240080(_0x2371ac,_0x56ac2d,_0x3a7969,_0x3e54e0){return _0x1818aa(_0x2371ac-_0x515b67._0x3bf9a6,_0x2371ac,_0x3a7969-_0x515b67._0x21e269,_0x56ac2d-_0x515b67._0x4bdc27);}function _0x34d990(_0xe29aa2,_0x1b61d6,_0x22e20c,_0xacf3f1){return _0x1818aa(_0xe29aa2-_0x40d4bc._0x4c4e90,_0x22e20c,_0x22e20c-0x154,_0x1b61d6-_0x40d4bc._0x5e55fe);}const _0x33658c=isUserVisibleReasoning(this[_0x240080(-_0x4a4b6d._0x58a768,0x1b,_0x4a4b6d._0xe39f5e,_0x4a4b6d._0x46297d)])?this['reasoningParts']['join'](''):void 0x0;return{'id':this[_0x240080(-_0x4a4b6d._0x5b1a7b,-0xa1,-0x156,-0x143)]||'chatcmpl-'+Date[_0x240080(0xd5,0x7f,_0x4a4b6d._0x384f0e,0x167)](),'content':createContentBlocks(this[_0x240080(-0x6,-_0x4a4b6d._0x36de47,0x13,-_0x4a4b6d._0x8160f0)][_0x34d990(_0x4a4b6d._0x480c30,_0x4a4b6d._0xe8ce8f,_0x4a4b6d._0xf2791,_0x4a4b6d._0x210704)](''),this[_0x240080(0x16f,_0x4a4b6d._0x16bdf2,0x14d,0x30)],_0x33658c),'stopReason':this[_0x34d990(_0x4a4b6d._0x4bf883,_0x4a4b6d._0x5f3e4b,0x606,_0x4a4b6d._0xb7abcd)],'usage':createUsage(this[_0x34d990(0x4f6,_0x4a4b6d._0x317618,_0x4a4b6d._0x3d4214,_0x4a4b6d._0x3d083f)])};}[_0x2d9e9f(0x2a5,0x26b,0x32d,0x27a)](_0x2834ad){const _0x45f2fd={_0x1882b9:0x25,_0x1fec0e:0x52,_0x19092c:0xb2,_0x2305a0:0x11c,_0x559a5a:0x14a,_0x101a27:0x7b,_0x1ad43b:0xc1,_0x98477c:0x2f,_0x491d60:0x7a,_0x1827f6:0x86,_0x2a6125:0x69,_0x1de932:0x7,_0x50e0fc:0x3c,_0x488f55:0x142,_0xeeae5a:0x9e,_0x4e1b37:0x1d6,_0x1bf84f:0x2e,_0x38432f:0x4f,_0x2224a9:0x97,_0x476e39:0x1c3,_0x5f32a7:0x26,_0x411a1f:0x99,_0x42d21a:0xde,_0x532d70:0xab,_0x2795ec:0xf0,_0x5311eb:0x125,_0x336217:0x2b4,_0x24fc47:0x151,_0x6f516:0x1f9,_0x4b9ce7:0x20b,_0x271fe1:0x131,_0x444c30:0x8b,_0x5aecaa:0x143,_0x445362:0x8b,_0xf5ba02:0xe1,_0x562f24:0xe0,_0x442759:0x1f0,_0x47c0ba:0xd5,_0x1ae0b5:0x92,_0x9e18c:0x15b,_0x29afd7:0xa3,_0x379846:0x17b,_0x21a5b7:0x164,_0x19bd10:0x227,_0x577c5c:0x10e,_0x50eeeb:0xf1,_0x19ee62:0xdd,_0x4a2a54:0xc0,_0x1a68b7:0x12c,_0x2cd521:0x175,_0x13ed2f:0x1,_0x5ab00d:0x170,_0x1d0c95:0x185,_0x4c1d1c:0x1e3,_0x7763fc:0x29c,_0x1f77fe:0x225,_0x432e3c:0x1a6,_0x179378:0x139,_0x3bd4fc:0x200,_0x27169b:0x78,_0x4cc85f:0x207,_0x42b081:0x91,_0x3a20c4:0xb1,_0x148f4d:0x65,_0x40b032:0xda,_0x26b9e2:0xa1,_0x5d0ed3:0x1e9,_0x375573:0x8e,_0x38fd23:0x1f,_0x5681ef:0x3b,_0x315828:0x238,_0x51b7db:0x15a,_0x1d7910:0x1fa,_0x3ff829:0x19,_0x5744d4:0x12,_0x2695e4:0x95,_0x1778e9:0x17b,_0x4608f9:0x1b6,_0x2a524c:0x9c,_0x4875c0:0x56,_0x4084ac:0x102,_0x4bf97f:0x207,_0x50d29f:0x225,_0x4c4d42:0x146,_0x5e13d5:0x204,_0x16b258:0x1f,_0x410d68:0x6b,_0x83686a:0x130,_0xdac3b1:0x4c,_0x793de8:0xcc,_0x513df0:0xf3,_0x2ad9de:0x155,_0x4fb9e4:0x12f,_0x319cf:0x118,_0x4cb48d:0x3d,_0x114fb6:0x4b,_0x50eac5:0x11f},_0x4b98db={_0x30327b:0x1ed},_0x309ef8={_0x2eabba:0x11b};function _0x5a6145(_0x1ac063,_0x4ae185,_0x4b6642,_0x42d356){return _0x1818aa(_0x1ac063-_0x309ef8._0x2eabba,_0x42d356,_0x4b6642-0xbd,_0x1ac063- -0xa0);}const _0x5d6685=[];function _0x5e6790(_0xabb067,_0x2f46a5,_0x12c2af,_0x39cd73){return _0x1818aa(_0xabb067-0xa9,_0xabb067,_0x12c2af-_0x4b98db._0x30327b,_0x12c2af- -0x14a);}for(const _0x173fb3 of _0x2834ad[_0x5a6145(_0x45f2fd._0x1882b9,_0x45f2fd._0x1fec0e,0xcf,-0x3d)]??[]){const _0x5ca1aa=_0x173fb3[_0x5a6145(-0x119,-_0x45f2fd._0x19092c,-_0x45f2fd._0x2305a0,-_0x45f2fd._0x559a5a)],_0x158025=extractChatCompletionReasoningDelta(_0x5ca1aa);_0x158025[_0x5a6145(-_0x45f2fd._0x101a27,-0xa3,-0x125,-_0x45f2fd._0x1ad43b)]>0x0&&(this[_0x5a6145(-0x52,_0x45f2fd._0x98477c,0x31,-_0x45f2fd._0x1ad43b)][_0x5e6790(-0x8b,-0x65,-0x8b,-_0x45f2fd._0x491d60)](_0x158025),isUserVisibleReasoning(this[_0x5a6145(-_0x45f2fd._0x1827f6,-0x95,0x17,-0x152)])&&_0x5d6685['push']({'type':_0x5a6145(-0x4b,-_0x45f2fd._0x2a6125,_0x45f2fd._0x1de932,-_0x45f2fd._0x50e0fc),'contentIndex':0x0,'delta':_0x158025,'itemId':(this[_0x5a6145(-_0x45f2fd._0x488f55,-_0x45f2fd._0xeeae5a,-_0x45f2fd._0x4e1b37,-0x16f)]||_0x5a6145(-_0x45f2fd._0x1bf84f,_0x45f2fd._0x38432f,0x9b,_0x45f2fd._0x38432f))+_0x5a6145(-0x13f,-_0x45f2fd._0x2224a9,-_0x45f2fd._0x476e39,-0xc7),'outputIndex':0x0}));const _0xa38e75=typeof _0x5ca1aa?.[_0x5a6145(-0x62,_0x45f2fd._0x5f32a7,-0x8c,0x65)]==='string'?_0x5ca1aa['content']:typeof _0x5ca1aa?.['refusal']===_0x5a6145(0x1d,0xf7,-0x66,_0x45f2fd._0x411a1f)?_0x5ca1aa[_0x5a6145(-0x137,-0xf1,-_0x45f2fd._0x42d21a,-0x8a)]:'';_0xa38e75[_0x5e6790(-_0x45f2fd._0x532d70,-_0x45f2fd._0x2795ec,-_0x45f2fd._0x5311eb,-0x4d)]>0x0&&(this[_0x5e6790(-_0x45f2fd._0x336217,-_0x45f2fd._0x24fc47,-_0x45f2fd._0x6f516,-_0x45f2fd._0x4b9ce7)][_0x5e6790(-_0x45f2fd._0x271fe1,-0x15e,-_0x45f2fd._0x444c30,_0x45f2fd._0x1882b9)](_0xa38e75),_0x5d6685[_0x5e6790(-0x28,-_0x45f2fd._0x5aecaa,-_0x45f2fd._0x445362,-_0x45f2fd._0xf5ba02)]({'type':'content_delta','index':0x0,'text':_0xa38e75}));for(const _0x1b70aa of _0x5ca1aa?.[_0x5e6790(-_0x45f2fd._0x562f24,-0x71,-0x118,-_0x45f2fd._0x442759)]??[]){const _0x6700b2=_0x1b70aa[_0x5a6145(-0xfb,-0x150,-0x149,-_0x45f2fd._0x47c0ba)]??0x0;let _0x4291c0=this[_0x5e6790(-0xce,-0x1c5,-0x12c,-_0x45f2fd._0x1ae0b5)][_0x5e6790(-0xcc,-_0x45f2fd._0x9e18c,-0x147,-_0x45f2fd._0x29afd7)](_0x6700b2);!_0x4291c0&&(_0x4291c0={'id':_0x1b70aa['id']??'tool-call-'+_0x6700b2,'type':_0x5a6145(-_0x45f2fd._0x379846,-_0x45f2fd._0x21a5b7,-_0x45f2fd._0x19bd10,-0x228),'function':{'name':_0x1b70aa[_0x5a6145(-0x17b,-_0x45f2fd._0x577c5c,-_0x45f2fd._0x50eeeb,-_0x45f2fd._0x19ee62)]?.['name']??'','arguments':''}},this[_0x5e6790(-0x15a,-_0x45f2fd._0x4a2a54,-_0x45f2fd._0x1a68b7,-_0x45f2fd._0x2cd521)]['set'](_0x6700b2,_0x4291c0),this[_0x5e6790(-0x147,-0x18,-0xa4,-_0x45f2fd._0x13ed2f)][_0x5e6790(-0x1c,-0xcc,-0x8b,-_0x45f2fd._0x5ab00d)](_0x4291c0));_0x1b70aa['id']&&(_0x4291c0['id']=_0x1b70aa['id']);_0x1b70aa['function']?.[_0x5e6790(-0x1ad,-_0x45f2fd._0x1d0c95,-_0x45f2fd._0x4c1d1c,-_0x45f2fd._0x7763fc)]&&(_0x4291c0[_0x5e6790(-0x27e,-0x2da,-_0x45f2fd._0x1f77fe,-_0x45f2fd._0x432e3c)][_0x5a6145(-_0x45f2fd._0x179378,-0x117,-0x17b,-_0x45f2fd._0x3bd4fc)]=_0x1b70aa['function'][_0x5a6145(-0x139,-0x59,-_0x45f2fd._0x27169b,-_0x45f2fd._0x4cc85f)]);!this[_0x5e6790(-0xee,-0xe6,-_0x45f2fd._0x42b081,-_0x45f2fd._0x3a20c4)]['has'](_0x6700b2)&&_0x4291c0['function'][_0x5a6145(-0x139,-_0x45f2fd._0x148f4d,-0x120,-0xd1)][_0x5a6145(-0x1b,-0x32,-_0x45f2fd._0x40b032,_0x45f2fd._0x26b9e2)]()[_0x5e6790(-0xdc,-_0x45f2fd._0x5d0ed3,-0x125,-_0x45f2fd._0x375573)]>0x0&&(_0x5d6685[_0x5a6145(_0x45f2fd._0x38fd23,-0x58,-0x1a,_0x45f2fd._0x5681ef)]({'type':'tool_use_delta','id':_0x4291c0['id'],'index':_0x6700b2,'name':_0x4291c0[_0x5e6790(-0x175,-_0x45f2fd._0x315828,-_0x45f2fd._0x1f77fe,-_0x45f2fd._0x51b7db)][_0x5e6790(-_0x45f2fd._0x1d7910,-0x155,-_0x45f2fd._0x4c1d1c,-0x1fd)]}),this[_0x5a6145(_0x45f2fd._0x3ff829,-0xc4,-0x71,-_0x45f2fd._0x5744d4)][_0x5e6790(-_0x45f2fd._0x2695e4,-0x174,-_0x45f2fd._0xf5ba02,-0x162)](_0x6700b2));const _0x657c4f=_0x1b70aa[_0x5a6145(-_0x45f2fd._0x1778e9,-_0x45f2fd._0x4608f9,-0x9f,-0x1e8)]?.[_0x5a6145(-_0x45f2fd._0x2a524c,-0x131,-_0x45f2fd._0x4875c0,-0x117)]??'';_0x657c4f[_0x5e6790(-_0x45f2fd._0x4084ac,-_0x45f2fd._0x4bf97f,-0x125,-0x135)]>0x0&&(_0x4291c0[_0x5e6790(-0x310,-0x27b,-_0x45f2fd._0x50d29f,-0x202)][_0x5e6790(-0xb2,-0x6c,-_0x45f2fd._0x4c4d42,-_0x45f2fd._0x5e13d5)]+=_0x657c4f,_0x5d6685[_0x5a6145(_0x45f2fd._0x16b258,_0x45f2fd._0x410d68,0xd5,_0x45f2fd._0x375573)]({'type':_0x5a6145(-_0x45f2fd._0x83686a,-0x11a,-_0x45f2fd._0xdac3b1,-_0x45f2fd._0x793de8),'id':_0x4291c0['id'],'index':_0x6700b2,'inputDelta':_0x657c4f}));}_0x173fb3[_0x5e6790(-0x4d,-0x166,-_0x45f2fd._0x513df0,-_0x45f2fd._0x2ad9de)]===_0x5e6790(-_0x45f2fd._0x4fb9e4,-0xf3,-_0x45f2fd._0x319cf,-0x43)&&(this[_0x5e6790(-_0x45f2fd._0x4cb48d,_0x45f2fd._0x114fb6,-0x6d,-_0x45f2fd._0x50eac5)]=_0x5a6145(-_0x45f2fd._0x271fe1,-0x9a,-0x1dc,-0x148));}return _0x5d6685;}},OpenAiResponsesStreamParser=class{[_0x1818aa(0xbd,0x30,0xa0,0x8a)]=new Map();['finalResponse'];['outputIndexToCallId']=new Map();[_0x2d9e9f(0x47e,0x47c,0x3a7,0x34b)]=new Map();[_0x2d9e9f(0x590,0x555,0x4a7,0x4f8)]=new Map();[_0x1818aa(-0xba,0x1d,0x70,0x1a)];[_0x2d9e9f(0x420,0x40c,0x431,0x350)]=new Map();[_0x2d9e9f(0x44b,0x4fb,0x418,0x345)]=new Map();constructor(_0x312cd0){const _0x52ba5f={_0x5c7920:0x240,_0x18301f:0x312},_0x2d3b5b={_0x292bce:0x132};function _0x1462ee(_0x24b5bb,_0x540fc2,_0x1e270a,_0x2d1ab5){return _0x1818aa(_0x24b5bb-0x15f,_0x24b5bb,_0x1e270a-_0x2d3b5b._0x292bce,_0x540fc2-0x242);}this[_0x1462ee(_0x52ba5f._0x5c7920,0x25c,0x2c6,_0x52ba5f._0x18301f)]=_0x312cd0;}[_0x1818aa(-0xbb,0x91,-0x3a,-0x49)](_0x2d8044){const _0x23006f={_0x2f14d7:0x261,_0x1c322f:0x210,_0x7bc5e8:0x299,_0x504f51:0x1b5,_0x4fe7ff:0x295,_0xa69e21:0x1a2,_0x3d293c:0x3a2,_0x2d2a00:0x3ee,_0x43bb3e:0x33a,_0x14f96f:0x8d,_0x52c72f:0x11b,_0x51327a:0x16a,_0x355c05:0x1ea,_0x50ab1a:0x310,_0x208fb8:0x2e3,_0x4da4a0:0x1e5,_0x4e7716:0x262,_0x30c2af:0xc8,_0x162b79:0x1c2,_0xfdf304:0xf8,_0xe22f4e:0x332,_0x591849:0x259,_0x18ec08:0x2cf,_0x318227:0x2a3,_0x4a9e95:0x229,_0x36dd9a:0x32c},_0x3d9633={_0x42d2d5:0x17f,_0x4aea1f:0x1ab,_0x37fdb1:0xe5},_0x389296={_0x51733d:0xe9},_0x13a7ca=_0x2d8044[_0x520e1e(_0x23006f._0x2f14d7,0x289,_0x23006f._0x1c322f,_0x23006f._0x7bc5e8)]('\x0a');function _0xd87be5(_0x216364,_0x37621a,_0x1d1ce5,_0x23d759){return _0x2d9e9f(_0x216364-0xf4,_0x216364,_0x1d1ce5- -0x196,_0x23d759-_0x389296._0x51733d);}const _0x14fd56=_0x13a7ca[_0xd87be5(_0x23006f._0x504f51,_0x23006f._0x4fe7ff,0x1ba,0x226)](_0x368d18=>_0x368d18[_0x520e1e(0x1d3,0x106,0x261,0x1cc)](_0xd87be5(0x242,0x2b5,0x2dc,0x20d)))?.[_0xd87be5(_0x23006f._0xa69e21,0x2bf,0x219,0x2f5)](0x6)[_0xd87be5(0x316,0x1e1,0x2c2,_0x23006f._0x3d293c)](),_0x4e48bf=_0x13a7ca[_0xd87be5(_0x23006f._0x2d2a00,0x2ea,0x310,_0x23006f._0x43bb3e)](_0x34db65=>_0x34db65['startsWith']('data:'))[_0xd87be5(_0x23006f._0x14f96f,_0x23006f._0x52c72f,_0x23006f._0x51327a,0x1fd)](_0x2717a5=>_0x2717a5[_0xd87be5(0x2d7,0x226,0x219,0x1b2)](0x5)[_0x520e1e(0x20a,0x1ad,0x241,0x1b7)]())[_0x520e1e(0x1f1,0x64,_0x23006f._0x355c05,0x142)]('\x0a')[_0x520e1e(_0x23006f._0x50ab1a,0x222,0x20b,0x2ad)]();if(_0x4e48bf[_0xd87be5(_0x23006f._0x208fb8,_0x23006f._0x4da4a0,_0x23006f._0x4e7716,0x236)]===0x0||_0x4e48bf===_0x520e1e(_0x23006f._0x30c2af,_0x23006f._0x162b79,_0x23006f._0xfdf304,0x135))return[];const _0x56a52d=JSON[_0xd87be5(_0x23006f._0xe22f4e,_0x23006f._0x591849,_0x23006f._0x18ec08,0x28c)](_0x4e48bf);function _0x520e1e(_0x256799,_0x5d3694,_0x4ea58c,_0x2e1c32){return _0x2d9e9f(_0x256799-_0x3d9633._0x42d2d5,_0x256799,_0x2e1c32- -_0x3d9633._0x4aea1f,_0x2e1c32-_0x3d9633._0x37fdb1);}return this['consumeEvent'](_0x14fd56??String(_0x56a52d[_0xd87be5(_0x23006f._0x318227,_0x23006f._0x4a9e95,0x2d9,_0x23006f._0x36dd9a)]??''),_0x56a52d);}['consumeWebSocketEvent'](_0x1d71ed){const _0x51746c={_0x32d179:0x9b,_0x413455:0x2e},_0x1ef27e={_0x3f7217:0x37,_0x13a65b:0x2d,_0x36e1eb:0xf0},_0x5e2ec4={_0x5ea693:0x2a,_0x359999:0x1d3};function _0x413025(_0x2043ec,_0x3d60d3,_0x3be1af,_0x211a15){return _0x1818aa(_0x2043ec-_0x5e2ec4._0x5ea693,_0x3be1af,_0x3be1af-_0x5e2ec4._0x359999,_0x3d60d3- -0x11e);}function _0x272dfe(_0x5bfb33,_0x49436b,_0x43db3e,_0x4cd3b6){return _0x1818aa(_0x5bfb33-_0x1ef27e._0x3f7217,_0x49436b,_0x43db3e-_0x1ef27e._0x13a65b,_0x4cd3b6-_0x1ef27e._0x36e1eb);}return this[_0x272dfe(_0x51746c._0x32d179,0xfa,-_0x51746c._0x413455,0x4a)](String(_0x1d71ed[_0x413025(-0x14e,-0x82,0x59,-0x37)]??''),_0x1d71ed);}[_0x1818aa(-0x12d,-0x16b,-0x16d,-0xd6)](){const _0x2576e9={_0x2109d9:0x358,_0x49a72a:0x32d,_0xe115:0x280,_0x5f3639:0x38d,_0x5f2a78:0x28c,_0x497d0d:0x204},_0x4bfc39={_0xf4154a:0x15c,_0x4e5de1:0xa2};function _0x3262c9(_0x4c98cd,_0x1e55a4,_0x5c78e2,_0xdab3df){return _0x2d9e9f(_0x4c98cd-0x1d0,_0x1e55a4,_0xdab3df- -0x19a,_0xdab3df-0x67);}function _0x47a3f0(_0x5785f8,_0x225115,_0x4c5f17,_0x4002af){return _0x2d9e9f(_0x5785f8-0x19d,_0x225115,_0x4002af- -_0x4bfc39._0xf4154a,_0x4002af-_0x4bfc39._0x4e5de1);}const _0x224dc6=this[_0x47a3f0(_0x2576e9._0x2109d9,0x317,_0x2576e9._0x49a72a,_0x2576e9._0xe115)]??{'id':'resp-'+Date['now'](),'object':_0x47a3f0(0x26b,_0x2576e9._0x5f3639,0x3ee,0x322),'status':'completed','output':this[_0x3262c9(_0x2576e9._0x5f2a78,_0x2576e9._0x497d0d,0x135,0x1ea)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x224dc6,this[_0x3262c9(0x2a7,0x233,0x217,0x253)]);}['isDone'](){const _0x53400b={_0x1f8d69:0x213},_0x1e52cc={_0x35befe:0x110};function _0x5d43b7(_0x2951ad,_0x419862,_0x5b0f20,_0x1ad9bc){return _0x2d9e9f(_0x2951ad-_0x1e52cc._0x35befe,_0x2951ad,_0x419862- -0x573,_0x1ad9bc-0x15c);}return this[_0x5d43b7(-0x16b,-0x197,-_0x53400b._0x1f8d69,-0x221)]!==void 0x0;}['consumeEvent'](_0x280ce2,_0xfa6a54){const _0x2e26df={_0x1a2543:0x372,_0xa65978:0x391,_0x25c6be:0x3f8,_0x58e9a2:0x330,_0x58fae2:0x2f6,_0x3d5cf8:0x23d,_0x25a39c:0x182,_0x5d4f32:0x260,_0x5cf911:0x26a,_0x462de4:0x3e4,_0x3a17f6:0x520,_0x27e1fe:0x252,_0x5b9c30:0x2da,_0x3c1afd:0x2e5,_0x586fc1:0x565,_0x12c062:0x570,_0xc1820d:0x405,_0x3db9a8:0x472,_0x26acdb:0x126,_0x5f31ab:0x210,_0x136b09:0x3f7,_0x57bf65:0x3ad,_0x5af8a7:0x2eb,_0x8d5651:0x2fb,_0x34819d:0x4c2,_0x291d19:0x426,_0xd539fa:0x536,_0x2f6141:0x593,_0x5ad7a8:0x4ca,_0x4108a:0x1e8,_0x5b1fdc:0x196,_0x5c282d:0x223,_0x33cfee:0x556,_0x3318b5:0x49a,_0x184ecb:0x320,_0xbb0512:0x1e2,_0x85581c:0x29d,_0xdd4173:0x2f8,_0x32e9e9:0x22a,_0x505ff3:0x248,_0x3ac5e8:0x4b3,_0x1b5b4a:0x4ec,_0x1c40ae:0x549,_0x5b54be:0x259,_0x394bdc:0xe7,_0x564f61:0x1b9,_0x585215:0x2f2,_0x29ca94:0x171,_0x47ca02:0x438,_0x473f0d:0x368,_0x524aa2:0x484,_0x5dddf5:0x2d1,_0x1d2cb2:0x215,_0x67f9eb:0x221,_0x438aa9:0x197,_0x3aa519:0x123,_0x21d0d7:0x414,_0x46e665:0x463,_0x531e66:0x4bb,_0x270c39:0x196,_0x51c23a:0x229,_0xf6a4b9:0x24a,_0x940dbe:0x241,_0x2128aa:0x1dc,_0xb643a8:0x2b0,_0x2e31fc:0x5ab,_0x4e0647:0x558,_0x39a85e:0x1ba,_0x3c31a9:0x4a2,_0x4dd188:0x491,_0x3011d7:0x528,_0x5816cf:0x4aa,_0x2050cf:0x370,_0x27242b:0x252,_0x3770b7:0x306,_0x30d062:0x27d,_0x44c924:0x29c,_0x430977:0x2d9,_0x2d3296:0x28d,_0x596dec:0x1c5,_0x55ed16:0x261,_0x43b7fa:0x293,_0x4ba0e0:0x494,_0x29b932:0x558,_0x80000a:0x54c,_0x431166:0x572,_0x39cfdb:0x168,_0x54b59f:0x209,_0x902c6e:0x152,_0x1a43e5:0x3b3,_0x3215f9:0x486,_0x3fb447:0x56b,_0x90f6c8:0x4c2,_0x451ec4:0x1c7,_0xfa10b:0x308,_0x1491a4:0x17e,_0x26670c:0x294,_0x4f32e0:0x57c,_0x4cbefd:0x329,_0x49230b:0x253,_0x53703c:0x31f,_0x4f5417:0x20b,_0x5d8d52:0x537,_0x4d98a5:0x406,_0x225aed:0x2e9,_0x12a2d2:0x2e8,_0x21902b:0x29d,_0xc0ddcb:0x2d5,_0x5d1c74:0x2a8,_0x5eab8b:0x585,_0x31611f:0x5aa,_0x25beb3:0x3d6,_0x1ab1c8:0x444,_0xc25dd1:0x2ef,_0x19f09a:0x2bc,_0x3cb12b:0x5ac,_0x1331a0:0x5b6,_0x5a6306:0x443,_0xcc2495:0x3fe,_0x1e0486:0x50f,_0x561dad:0x4c2,_0x4cade5:0x21d,_0x24b96a:0x300,_0x457b72:0x282,_0x449cd7:0x315,_0x228e58:0x275,_0x22411f:0x1c4,_0x294a00:0x253,_0x333978:0x1c1,_0x47f904:0x474,_0x2e2645:0x56b,_0xba2a1a:0x3fc,_0x328bc1:0x3f0,_0x17ad5a:0x64e,_0x2a2eb1:0x656,_0x5b1af1:0x542,_0x1d5cfc:0x3e3,_0x59e088:0x497,_0x47ed5f:0x564,_0xa25d46:0x4e9,_0x4aa874:0x41f,_0xabbc75:0x5bc,_0x53b6d0:0x437,_0x129328:0x4e9,_0x29e4cb:0x2d5,_0x1cb1d2:0x271,_0x397b1a:0x55c,_0x2e72f4:0x47f,_0x47279d:0x41e,_0x49e916:0x54d,_0x4f99f6:0x5a2,_0x4864dd:0x355,_0x36824e:0x31f,_0x2ac499:0x276,_0xc78a12:0x1e6,_0xfbc59c:0x644,_0x296e3e:0x57c,_0xb768f0:0x18a,_0x2b93f7:0x475,_0x4d0e05:0x4dd,_0x4f9266:0x579,_0x282d76:0x4d2,_0x654d49:0x4d6,_0x176860:0x36c,_0x20503e:0x64b,_0x6fb31a:0x51d,_0x3c3b80:0x52e,_0x4b81ae:0x169,_0x55c7d9:0x11b,_0x36bba4:0x4df,_0x34b43a:0x295,_0x10c035:0x3ae,_0xef194f:0x398,_0x31cfe1:0x41d,_0x758288:0x4ce,_0x39bca4:0x2d6,_0x3b4d2a:0x2fd,_0x1ad1fc:0x4b8,_0x2e7228:0x540,_0x5ea916:0x52c,_0x45688f:0x46f,_0x1b6c60:0x5ef,_0x1f266f:0x252,_0x9df4d3:0x355,_0x37c52e:0x555,_0x47a085:0x581,_0x3d584f:0x4d9,_0x5351c3:0x3dd,_0x54a3fb:0x53a,_0x4c5029:0x439,_0x31b4ee:0x4a2,_0x3d613d:0x437,_0xa27a1c:0x505,_0x37caa6:0x38c,_0x46501:0x30c,_0x326dc8:0x2b3,_0x270dba:0x57c,_0x5194f7:0x57f,_0xc36e5d:0x558,_0x4db78c:0x320,_0x45e2db:0x261,_0x54d311:0x21d,_0x1c677a:0x281,_0x2ef546:0x22c,_0x3451ca:0x2b0,_0x45ca47:0x2dd,_0x43fadf:0x459,_0x3e5342:0x2c7,_0x3d5e06:0x310,_0x2ddc1a:0x2a1,_0x3acbe5:0x5cc,_0x2bf706:0x4ad,_0x4aaacc:0x3bf,_0x1bd258:0x36e,_0x4c618a:0x3ec,_0x4e4183:0x628,_0x506d1a:0x4f8,_0x4de26b:0x425,_0x2871d0:0x446,_0x5a08b3:0x3d4,_0x215be3:0x2ca,_0x3cc528:0x502,_0x58082e:0x4d1,_0x13ce5a:0x419,_0x1f0e21:0x604,_0x3975b5:0x562,_0x112e6b:0x52b,_0x1212f7:0x4d1,_0x588aee:0x4f3,_0x400d28:0x498,_0x2f9e9d:0x3c0,_0x49f37d:0x38e,_0x40bdb4:0x3d1,_0x41feec:0x185,_0x45595b:0x228,_0x2db32b:0x27b,_0x1a97a1:0x5c4,_0x3c0bc3:0x440,_0x5bab61:0x4e4,_0x2bfe37:0x309,_0x418bcb:0x310,_0x3a63a9:0x16a,_0x6b024d:0x57c,_0x689573:0x340,_0x40bffc:0x2f3,_0x2a5b92:0x598,_0x5b82d3:0x41b,_0x4d6706:0x1eb,_0x4d4d3d:0x261,_0x214c3f:0x566,_0xce3bfb:0x16e,_0x4eb3a4:0x252,_0x4c2818:0x1ac,_0x5da509:0x323,_0x3935c9:0x261,_0x18ff0b:0x26a,_0x103120:0x4b2,_0x2d2159:0x488,_0x4ba32b:0x262,_0x2c23dd:0x2f9,_0x1b3d83:0x4bd,_0x31bfa5:0x4e6,_0x184261:0x46e,_0x332c73:0x3f2,_0xb6b490:0x3cc,_0x5c0bab:0x4ef,_0x30aa75:0x4e5,_0x4a39f5:0x54a,_0x85b942:0x2fa,_0x575727:0x2f7,_0x578151:0x211,_0x30a669:0x2b5,_0x16aed6:0x2c2,_0x2d8e93:0x3c0,_0x2fd9b7:0x2fa,_0x679cef:0x3f8,_0xfe554f:0x490,_0x5bcb08:0x3c6,_0x1ee7a5:0x319,_0x108fc2:0x26e,_0x126434:0x32b,_0x50e0b1:0x2cd,_0x14be48:0x2ae,_0x4b2aaf:0x56a,_0x367a80:0x449,_0x33db20:0x533,_0x37a890:0x491},_0x271692={_0x4a18c1:0xec},_0x29e04e={_0x15860a:0x24f};switch(_0x280ce2){case _0x39f04d(_0x2e26df._0x1a2543,_0x2e26df._0xa65978,_0x2e26df._0x25c6be,0x41f):{const _0x18f0e3=typeof _0xfa6a54['output_index']===_0x357adf(_0x2e26df._0x58e9a2,0x2e8,_0x2e26df._0x58fae2,0x260)?_0xfa6a54[_0x357adf(_0x2e26df._0x3d5cf8,0x261,_0x2e26df._0x25a39c,_0x2e26df._0x5d4f32)]:0x0,_0x553106=typeof _0xfa6a54['delta']===_0x357adf(_0x2e26df._0x5cf911,0x30c,_0x2e26df._0x462de4,0x2ee)?_0xfa6a54[_0x357adf(0x1d3,0x1d6,0x2b7,0x11b)]:'';if(_0x553106['length']>0x0){const _0x1d568c=this[_0x39f04d(_0x2e26df._0x3a17f6,0x582,0x5a8,0x51d)][_0x357adf(0x20d,_0x2e26df._0x27e1fe,_0x2e26df._0x5b9c30,_0x2e26df._0x3c1afd)](_0x18f0e3)??[];return _0x1d568c['push'](_0x553106),this[_0x39f04d(0x4d6,_0x2e26df._0x586fc1,_0x2e26df._0x12c062,0x51d)]['set'](_0x18f0e3,_0x1d568c),[{'type':_0x39f04d(_0x2e26df._0xc1820d,0x556,_0x2e26df._0x3db9a8,0x49c),'index':_0x18f0e3,'text':_0x553106}];}break;}case _0x357adf(_0x2e26df._0x26acdb,_0x2e26df._0x5f31ab,0x18d,0x2e9):{const _0x190abb=typeof _0xfa6a54[_0x39f04d(0x56a,_0x2e26df._0x136b09,0x420,0x4d1)]==='number'?_0xfa6a54['output_index']:void 0x0,_0x31484c=_0xfa6a54['item'];if(_0x31484c?.[_0x357adf(_0x2e26df._0x57bf65,_0x2e26df._0x5af8a7,_0x2e26df._0x8d5651,0x248)]==='function_call'&&_0x31484c['call_id']&&_0x31484c[_0x39f04d(0x408,_0x2e26df._0x34819d,0x437,_0x2e26df._0x291d19)])return this[_0x39f04d(_0x2e26df._0xd539fa,_0x2e26df._0x2f6141,_0x2e26df._0x5ad7a8,0x504)][_0x357adf(_0x2e26df._0x4108a,_0x2e26df._0x5b1fdc,0xc8,_0x2e26df._0x5c282d)](_0x31484c['call_id'],{'id':_0x31484c[_0x39f04d(0x480,_0x2e26df._0x33cfee,0x521,_0x2e26df._0x3318b5)],'type':_0x39f04d(0x319,_0x2e26df._0x184ecb,0x421,_0x2e26df._0x462de4),'function':{'name':_0x31484c[_0x357adf(_0x2e26df._0xbb0512,0x1b6,0x106,_0x2e26df._0x85581c)],'arguments':''}}),_0x190abb!==void 0x0&&(this['outputIndexToCallId'][_0x39f04d(0x3c8,0x3e8,0x3cd,0x406)](_0x190abb,_0x31484c[_0x357adf(_0x2e26df._0xdd4173,_0x2e26df._0x32e9e9,_0x2e26df._0x505ff3,0x30b)]),this[_0x39f04d(0x538,_0x2e26df._0x3ac5e8,_0x2e26df._0x1b5b4a,_0x2e26df._0x1c40ae)][_0x357adf(0x113,0x196,_0x2e26df._0x5b54be,0xc1)](_0x31484c[_0x357adf(0x2c7,0x22a,0x304,0x21f)],_0x190abb)),[{'type':_0x357adf(0x1b2,0x1bf,_0x2e26df._0x394bdc,_0x2e26df._0x564f61),'id':_0x31484c[_0x357adf(0x18c,_0x2e26df._0x32e9e9,_0x2e26df._0x585215,_0x2e26df._0x29ca94)],'index':_0x190abb??0x0,'name':_0x31484c[_0x39f04d(_0x2e26df._0x47ca02,_0x2e26df._0x473f0d,_0x2e26df._0x524aa2,0x426)]}];if(_0x31484c?.[_0x357adf(_0x2e26df._0x5dddf5,0x2eb,0x23b,_0x2e26df._0x1d2cb2)]===_0x357adf(_0x2e26df._0x67f9eb,_0x2e26df._0x438aa9,0x109,_0x2e26df._0x3aa519)&&_0x31484c['id']){const _0x48edc3=this['getOrCreateReasoningItem'](_0x31484c['id'],_0x190abb);_0x190abb!==void 0x0&&this[_0x39f04d(_0x2e26df._0x21d0d7,_0x2e26df._0x46e665,_0x2e26df._0x531e66,0x493)][_0x357adf(0x264,_0x2e26df._0x270c39,0x26f,0x258)](_0x190abb,_0x48edc3['id']);}break;}case _0x357adf(_0x2e26df._0x51c23a,_0x2e26df._0xf6a4b9,_0x2e26df._0x940dbe,_0x2e26df._0x2128aa):{const _0x4e03b7=typeof _0xfa6a54[_0x357adf(0x22c,0x22a,0x1e2,_0x2e26df._0xb643a8)]===_0x39f04d(_0x2e26df._0x2e31fc,_0x2e26df._0x4e0647,0x50d,0x57c)?_0xfa6a54['call_id']:typeof _0xfa6a54['output_index']==='number'?this['outputIndexToCallId'][_0x357adf(_0x2e26df._0x39a85e,0x252,0x33e,0x1ae)](_0xfa6a54['output_index']):void 0x0,_0x69c68e=typeof _0xfa6a54['delta']===_0x39f04d(_0x2e26df._0x3c31a9,_0x2e26df._0x4dd188,_0x2e26df._0x3011d7,0x57c)?_0xfa6a54[_0x39f04d(_0x2e26df._0x5816cf,0x417,_0x2e26df._0x2050cf,0x446)]:'',_0x410645=_0x4e03b7?this['toolCalls'][_0x357adf(0x2fa,_0x2e26df._0x27242b,0x1b9,_0x2e26df._0x3770b7)](_0x4e03b7):void 0x0;if(_0x410645&&_0x69c68e['length']>0x0)return _0x410645['function'][_0x357adf(_0x2e26df._0x30d062,0x253,_0x2e26df._0x44c924,0x25c)]+=_0x69c68e,[{'type':'tool_use_delta','id':_0x410645['id'],'index':this[_0x357adf(0x2f7,_0x2e26df._0x430977,0x2eb,_0x2e26df._0x2d3296)][_0x357adf(0x183,0x252,0x2c3,_0x2e26df._0x596dec)](_0x410645['id'])??(typeof _0xfa6a54[_0x357adf(0x1c3,_0x2e26df._0x55ed16,0x30e,_0x2e26df._0x43b7fa)]===_0x39f04d(_0x2e26df._0x4ba0e0,0x544,0x61a,_0x2e26df._0x29b932)?_0xfa6a54[_0x39f04d(0x3f9,_0x2e26df._0x80000a,_0x2e26df._0x431166,0x4d1)]:0x0),'inputDelta':_0x69c68e}];break;}case _0x357adf(_0x2e26df._0x39cfdb,0x1dc,0x238,_0x2e26df._0x67f9eb):{const _0x2f2896=typeof _0xfa6a54[_0x357adf(0x1aa,_0x2e26df._0x32e9e9,_0x2e26df._0x54b59f,_0x2e26df._0x902c6e)]==='string'?_0xfa6a54[_0x39f04d(_0x2e26df._0x1a43e5,0x3cc,0x544,0x49a)]:typeof _0xfa6a54[_0x357adf(0x28b,_0x2e26df._0x55ed16,0x236,0x285)]===_0x39f04d(0x602,0x566,_0x2e26df._0x3215f9,_0x2e26df._0x29b932)?this[_0x39f04d(0x542,0x5dd,0x4c4,0x55f)][_0x39f04d(_0x2e26df._0x3fb447,0x4cb,0x4e9,_0x2e26df._0x90f6c8)](_0xfa6a54[_0x357adf(_0x2e26df._0x451ec4,_0x2e26df._0x55ed16,_0x2e26df._0xfa10b,_0x2e26df._0x1491a4)]):void 0x0,_0x1464a1=_0x2f2896?this[_0x357adf(0x2ff,_0x2e26df._0x26670c,0x318,0x2df)]['get'](_0x2f2896):void 0x0;_0x1464a1&&typeof _0xfa6a54['arguments']===_0x39f04d(0x643,0x5b0,0x60a,_0x2e26df._0x4f32e0)&&(_0x1464a1[_0x39f04d(0x3ba,_0x2e26df._0x3770b7,0x486,0x3e4)]['arguments']=_0xfa6a54[_0x357adf(_0x2e26df._0x4cbefd,_0x2e26df._0x49230b,_0x2e26df._0x53703c,_0x2e26df._0x4f5417)]);break;}case _0x39f04d(0x520,_0x2e26df._0x5d8d52,0x5da,0x523):{const _0x44fda8=typeof _0xfa6a54[_0x39f04d(0x57e,0x50d,_0x2e26df._0x4d98a5,0x4d1)]===_0x357adf(_0x2e26df._0x225aed,_0x2e26df._0x12a2d2,_0x2e26df._0x21902b,_0x2e26df._0xc0ddcb)?_0xfa6a54[_0x357adf(_0x2e26df._0x5d1c74,0x261,0x1ff,0x198)]:void 0x0,_0x5e9d70=_0xfa6a54[_0x39f04d(_0x2e26df._0x5eab8b,0x49a,_0x2e26df._0x31611f,0x4c0)];if(_0x5e9d70?.['type']===_0x39f04d(_0x2e26df._0x25beb3,_0x2e26df._0x1ab1c8,0x575,0x49f)){const _0x1a1ac2=_0x5e9d70['call_id']??(_0x44fda8!==void 0x0?this[_0x357adf(0x23d,_0x2e26df._0xc25dd1,_0x2e26df._0x19f09a,0x372)][_0x39f04d(_0x2e26df._0x3cb12b,0x45d,0x4a7,0x4c2)](_0x44fda8):void 0x0),_0x240c81=_0x1a1ac2?this[_0x39f04d(_0x2e26df._0x1331a0,_0x2e26df._0x5d8d52,_0x2e26df._0x5a6306,0x504)][_0x39f04d(_0x2e26df._0xcc2495,0x500,_0x2e26df._0x1e0486,_0x2e26df._0x561dad)](_0x1a1ac2):void 0x0;_0x240c81&&typeof _0x5e9d70[_0x357adf(_0x2e26df._0x4cade5,0x253,_0x2e26df._0x24b96a,_0x2e26df._0x457b72)]===_0x357adf(_0x2e26df._0x449cd7,0x30c,0x3b6,_0x2e26df._0x228e58)&&(_0x240c81['function'][_0x357adf(_0x2e26df._0x22411f,_0x2e26df._0x294a00,_0x2e26df._0x333978,0x2f8)]=_0x5e9d70[_0x39f04d(0x583,_0x2e26df._0x47f904,0x530,0x4c3)]);break;}if(_0x5e9d70?.[_0x39f04d(0x565,0x59f,_0x2e26df._0x2e2645,0x55b)]==='reasoning'&&_0x5e9d70['id']){const _0x1f7fcd=this[_0x357adf(0x341,0x310,_0x2e26df._0xba2a1a,_0x2e26df._0x328bc1)](_0x5e9d70['id'],_0x44fda8);typeof _0x5e9d70['encrypted_content']===_0x39f04d(0x54b,_0x2e26df._0x17ad5a,_0x2e26df._0x2a2eb1,_0x2e26df._0x4f32e0)&&(_0x1f7fcd[_0x39f04d(_0x2e26df._0x5b1af1,0x465,0x5b8,0x54a)]=_0x5e9d70['encrypted_content']);if(Array[_0x39f04d(_0x2e26df._0x1d5cfc,_0x2e26df._0x59e088,0x366,0x3e7)](_0x5e9d70[_0x39f04d(0x59c,_0x2e26df._0x47ed5f,0x554,_0x2e26df._0xa25d46)]))for(let _0x4b6fa0=0x0;_0x4b6fa0<_0x5e9d70[_0x39f04d(0x420,_0x2e26df._0x4aa874,0x407,_0x2e26df._0xa25d46)]['length'];_0x4b6fa0+=0x1){const _0x13ab51=_0x5e9d70[_0x39f04d(0x570,_0x2e26df._0xabbc75,_0x2e26df._0x53b6d0,_0x2e26df._0x129328)][_0x4b6fa0];_0x13ab51[_0x357adf(_0x2e26df._0x29e4cb,_0x2e26df._0x5af8a7,0x227,_0x2e26df._0x1cb1d2)]===_0x39f04d(0x4f5,0x425,_0x2e26df._0x397b1a,_0x2e26df._0x2e72f4)&&typeof _0x13ab51[_0x39f04d(_0x2e26df._0x47279d,_0x2e26df._0x49e916,_0x2e26df._0x4f99f6,0x4d2)]===_0x357adf(0x307,0x30c,0x2c8,_0x2e26df._0x4864dd)&&_0x1f7fcd[_0x357adf(_0x2e26df._0x36824e,_0x2e26df._0x2ac499,0x199,0x331)][_0x357adf(0x274,_0x2e26df._0x270c39,0xe6,0xba)](_0x4b6fa0,_0x13ab51[_0x357adf(_0x2e26df._0xc78a12,0x262,0x2f7,0x31c)]);}typeof _0x5e9d70['text']===_0x39f04d(_0x2e26df._0xfbc59c,0x4c7,0x669,_0x2e26df._0x296e3e)&&_0x1f7fcd[_0x357adf(_0x2e26df._0xb768f0,0x16a,_0x2e26df._0x5f31ab,0x9d)][_0x39f04d(0x3c7,0x495,0x3f3,0x406)](0x0,_0x5e9d70[_0x39f04d(_0x2e26df._0x2b93f7,_0x2e26df._0x4d0e05,_0x2e26df._0x4f9266,_0x2e26df._0x282d76)]);}break;}case'response.reasoning_summary_text.delta':{const _0x299eed=typeof _0xfa6a54[_0x39f04d(_0x2e26df._0x654d49,_0x2e26df._0x176860,0x42c,0x446)]===_0x39f04d(_0x2e26df._0x20503e,_0x2e26df._0x6fb31a,_0x2e26df._0x3c3b80,_0x2e26df._0x296e3e)?_0xfa6a54[_0x357adf(_0x2e26df._0x4b81ae,0x1d6,_0x2e26df._0x55c7d9,0x2b0)]:'',_0x5a17ca=typeof _0xfa6a54[_0x39f04d(0x58b,0x421,_0x2e26df._0x36bba4,0x505)]==='string'?_0xfa6a54[_0x357adf(0x295,_0x2e26df._0x34b43a,0x228,0x1e8)]:typeof _0xfa6a54['output_index']===_0x357adf(0x2c5,0x2e8,_0x2e26df._0x10c035,_0x2e26df._0xef194f)?this[_0x39f04d(_0x2e26df._0x31cfe1,0x4ad,_0x2e26df._0x758288,0x493)][_0x357adf(_0x2e26df._0x39bca4,_0x2e26df._0x27e1fe,_0x2e26df._0x3b4d2a,_0x2e26df._0xb768f0)](_0xfa6a54['output_index']):void 0x0,_0x3ae22=typeof _0xfa6a54['output_index']==='number'?_0xfa6a54[_0x39f04d(_0x2e26df._0x6fb31a,0x59c,0x400,0x4d1)]:0x0,_0x1b4c42=typeof _0xfa6a54[_0x39f04d(_0x2e26df._0x1ad1fc,_0x2e26df._0x2e7228,_0x2e26df._0x5ea916,0x520)]===_0x39f04d(_0x2e26df._0x45688f,_0x2e26df._0x4f32e0,0x5c4,0x558)?_0xfa6a54[_0x39f04d(0x52a,0x525,0x496,0x520)]:0x0;if(_0x5a17ca&&_0x299eed['length']>0x0){const _0x570091=this[_0x39f04d(_0x2e26df._0x1b6c60,0x5fb,0x552,0x580)](_0x5a17ca,_0x3ae22);_0x570091[_0x357adf(_0x2e26df._0x1f266f,0x276,_0x2e26df._0x9df4d3,0x1d7)]['set'](_0x1b4c42,''+(_0x570091['summaryByIndex'][_0x39f04d(_0x2e26df._0x3db9a8,_0x2e26df._0x37c52e,0x4cf,0x4c2)](_0x1b4c42)??'')+_0x299eed);if(isUserVisibleReasoning(this[_0x39f04d(0x455,_0x2e26df._0x47a085,0x41c,_0x2e26df._0x3d584f)]))return[{'type':_0x39f04d(_0x2e26df._0x5351c3,_0x2e26df._0x54a3fb,_0x2e26df._0x4c5029,_0x2e26df._0x31b4ee),'delta':_0x299eed,'itemId':_0x5a17ca,'outputIndex':_0x3ae22,'summaryIndex':_0x1b4c42}];}break;}case'response.reasoning_summary_text.done':{const _0x2cb616=typeof _0xfa6a54[_0x39f04d(0x581,0x470,_0x2e26df._0x3d613d,_0x2e26df._0xa27a1c)]===_0x357adf(_0x2e26df._0x37caa6,_0x2e26df._0x46501,0x245,0x3b1)?_0xfa6a54[_0x357adf(_0x2e26df._0x326dc8,_0x2e26df._0x34b43a,0x2de,0x1dc)]:typeof _0xfa6a54['output_index']===_0x39f04d(_0x2e26df._0x270dba,_0x2e26df._0x5194f7,0x4ad,_0x2e26df._0xc36e5d)?this['outputIndexToReasoningId']['get'](_0xfa6a54[_0x357adf(0x18a,_0x2e26df._0x55ed16,0x321,0x249)]):void 0x0,_0x9fec05=typeof _0xfa6a54[_0x357adf(_0x2e26df._0x4db78c,_0x2e26df._0x45e2db,_0x2e26df._0x54d311,0x24e)]==='number'?_0xfa6a54[_0x357adf(0x2ca,0x261,_0x2e26df._0x1c677a,_0x2e26df._0x2ef546)]:0x0,_0x39b1d6=typeof _0xfa6a54[_0x357adf(_0x2e26df._0x326dc8,_0x2e26df._0x3451ca,0x1e1,0x20c)]===_0x357adf(0x375,0x2e8,0x38f,_0x2e26df._0x45ca47)?_0xfa6a54[_0x39f04d(_0x2e26df._0x43fadf,0x58d,0x5dd,0x520)]:0x0,_0x129c8d=typeof _0xfa6a54['text']==='string'?_0xfa6a54[_0x39f04d(0x5b7,0x502,0x550,_0x2e26df._0x282d76)]:'';_0x2cb616&&this[_0x357adf(_0x2e26df._0x3e5342,_0x2e26df._0x3d5e06,_0x2e26df._0x2ddc1a,0x3ed)](_0x2cb616,_0x9fec05)[_0x39f04d(0x504,_0x2e26df._0x3acbe5,_0x2e26df._0x2bf706,0x4e6)][_0x39f04d(_0x2e26df._0x4aaacc,_0x2e26df._0x1bd258,0x4ce,0x406)](_0x39b1d6,_0x129c8d);break;}case _0x357adf(0x254,0x17b,0x18d,0x1a3):{const _0x1326b9=typeof _0xfa6a54[_0x39f04d(0x507,_0x2e26df._0x4c618a,_0x2e26df._0x758288,0x446)]===_0x39f04d(_0x2e26df._0x4e4183,0x4d6,0x52a,0x57c)?_0xfa6a54[_0x39f04d(_0x2e26df._0x506d1a,_0x2e26df._0x4de26b,0x4d0,_0x2e26df._0x2871d0)]:'',_0x54c420=typeof _0xfa6a54[_0x357adf(0x338,0x295,0x35c,0x237)]===_0x357adf(_0x2e26df._0x5a08b3,_0x2e26df._0x46501,_0x2e26df._0x215be3,0x39c)?_0xfa6a54[_0x39f04d(0x568,0x5e5,0x4f9,0x505)]:typeof _0xfa6a54['output_index']==='number'?this['outputIndexToReasoningId']['get'](_0xfa6a54[_0x39f04d(0x420,_0x2e26df._0x3cc528,_0x2e26df._0x4dd188,_0x2e26df._0x58082e)]):void 0x0,_0x33c996=typeof _0xfa6a54[_0x39f04d(0x45f,_0x2e26df._0x13ce5a,0x41a,0x4d1)]===_0x39f04d(_0x2e26df._0x1f0e21,_0x2e26df._0x3975b5,0x5c0,0x558)?_0xfa6a54[_0x39f04d(_0x2e26df._0x112e6b,0x496,_0x2e26df._0x431166,_0x2e26df._0x1212f7)]:0x0,_0x375a8b=typeof _0xfa6a54[_0x39f04d(0x4a8,_0x2e26df._0x588aee,0x55e,_0x2e26df._0x400d28)]===_0x357adf(_0x2e26df._0x2f9e9d,_0x2e26df._0x12a2d2,_0x2e26df._0x49f37d,_0x2e26df._0x40bdb4)?_0xfa6a54[_0x357adf(_0x2e26df._0x41feec,_0x2e26df._0x45595b,0x2da,_0x2e26df._0x2db32b)]:0x0;if(_0x54c420&&_0x1326b9[_0x39f04d(_0x2e26df._0x1a97a1,_0x2e26df._0x3c0bc3,0x57f,_0x2e26df._0x5bab61)]>0x0){const _0x540378=this[_0x357adf(_0x2e26df._0x2bfe37,_0x2e26df._0x418bcb,0x224,0x338)](_0x54c420,_0x33c996);_0x540378[_0x39f04d(0x429,0x319,0x40d,0x3da)]['set'](_0x375a8b,''+(_0x540378[_0x357adf(0x1d6,_0x2e26df._0x3a63a9,0xe3,0x133)][_0x39f04d(0x3e8,0x3d6,_0x2e26df._0x6b024d,0x4c2)](_0x375a8b)??'')+_0x1326b9);if(isUserVisibleReasoning(this['request']))return[{'type':'openai_reasoning_delta','contentIndex':_0x375a8b,'delta':_0x1326b9,'itemId':_0x54c420,'outputIndex':_0x33c996}];}break;}case'response.reasoning_text.done':{const _0x574510=typeof _0xfa6a54[_0x357adf(0x36d,_0x2e26df._0x34b43a,_0x2e26df._0x689573,_0x2e26df._0x40bffc)]===_0x39f04d(_0x2e26df._0x296e3e,0x601,_0x2e26df._0x2a5b92,0x57c)?_0xfa6a54[_0x39f04d(0x55d,0x422,_0x2e26df._0x5b82d3,0x505)]:typeof _0xfa6a54[_0x357adf(_0x2e26df._0x4d6706,_0x2e26df._0x4d4d3d,0x232,0x2cf)]==='number'?this[_0x39f04d(_0x2e26df._0x214c3f,0x54f,0x3d0,0x493)][_0x357adf(_0x2e26df._0xce3bfb,_0x2e26df._0x4eb3a4,_0x2e26df._0x4c2818,0x308)](_0xfa6a54[_0x357adf(_0x2e26df._0x5da509,_0x2e26df._0x3935c9,0x27b,_0x2e26df._0x18ff0b)]):void 0x0,_0x42e02a=typeof _0xfa6a54['output_index']===_0x39f04d(_0x2e26df._0x103120,0x4e7,_0x2e26df._0x2d2159,_0x2e26df._0x29b932)?_0xfa6a54['output_index']:0x0,_0x2d4feb=typeof _0xfa6a54['content_index']==='number'?_0xfa6a54[_0x357adf(0x2dd,0x228,0x2ae,0x1e5)]:0x0,_0x388496=typeof _0xfa6a54[_0x357adf(0x1bd,_0x2e26df._0x4ba32b,_0x2e26df._0x2c23dd,0x1e7)]==='string'?_0xfa6a54['text']:'';_0x574510&&this[_0x39f04d(0x605,_0x2e26df._0x1b3d83,_0x2e26df._0x31bfa5,0x580)](_0x574510,_0x42e02a)['textByIndex'][_0x39f04d(_0x2e26df._0x184261,_0x2e26df._0x57bf65,_0x2e26df._0x332c73,0x406)](_0x2d4feb,_0x388496);break;}case _0x39f04d(_0x2e26df._0x3d613d,_0x2e26df._0xb6b490,_0x2e26df._0x5c0bab,0x4b7):{this[_0x39f04d(_0x2e26df._0x30aa75,_0x2e26df._0x4a39f5,0x4dd,0x4c8)]=_0xfa6a54[_0x357adf(0x243,_0x2e26df._0x85b942,_0x2e26df._0x575727,_0x2e26df._0x578151)];break;}case _0x357adf(0x280,_0x2e26df._0x30a669,0x315,_0x2e26df._0x16aed6):{const _0x54b768=_0xfa6a54[_0x357adf(_0x2e26df._0x2d8e93,_0x2e26df._0x2fd9b7,0x2ff,0x24e)];throw new ProviderStreamEventError(_0x54b768?.['error']?.['message']??'Responses\x20stream\x20failed',{'code':_0x54b768?.['error']?.['code'],'retryable':!![]});}case'error':{const _0x20f114=_0xfa6a54[_0x39f04d(0x37b,0x332,0x322,_0x2e26df._0x679cef)];throw new ProviderStreamEventError(_0x20f114?.[_0x39f04d(0x3fc,_0x2e26df._0xfe554f,0x377,_0x2e26df._0x5bcb08)]??_0x357adf(0x2ee,0x239,0x1c0,_0x2e26df._0x1ee7a5),{'code':_0x20f114?.[_0x357adf(_0x2e26df._0x108fc2,_0x2e26df._0x126434,_0x2e26df._0x50e0b1,_0x2e26df._0x14be48)],'retryable':!![],'status':typeof _0xfa6a54[_0x39f04d(0x607,_0x2e26df._0x4b2aaf,_0x2e26df._0x367a80,_0x2e26df._0x33db20)]==='number'?_0xfa6a54[_0x39f04d(_0x2e26df._0x37a890,0x4cc,_0x2e26df._0x4a39f5,_0x2e26df._0x33db20)]:void 0x0});}}function _0x357adf(_0x3f3619,_0x398fcf,_0x116631,_0x204422){return _0x1818aa(_0x3f3619-0x18c,_0x3f3619,_0x116631-0xa9,_0x398fcf-_0x29e04e._0x15860a);}function _0x39f04d(_0x42558c,_0x4d52c0,_0x2a305c,_0x17a666){return _0x2d9e9f(_0x42558c-0x10d,_0x2a305c,_0x17a666-_0x271692._0x4a18c1,_0x17a666-0xb5);}return[];}[_0x1818aa(0x40,-0x60,0x61,-0x4f)](){const _0x2bb71f={_0x5b9716:0x479,_0x160bcb:0x4d8,_0x330dd6:0x474,_0x1dafa5:0x48c,_0x5efd12:0x56,_0x3310d1:0x1e9,_0x1c2ae2:0x1a,_0x40adea:0xdb,_0x3c48a0:0x342,_0x790641:0x468,_0x127fd9:0x4f8,_0x2883fa:0x1d3,_0x6ed885:0x189,_0x440d98:0x165,_0x5ccbd9:0x446,_0x2b297b:0x433,_0x1fa7d7:0x51a,_0x438726:0x4a1,_0x352dc7:0x78,_0x3c543b:0x13,_0x1476a0:0x258,_0xb20cc2:0xf,_0x43e066:0xca,_0x17c66c:0xed,_0x48b833:0x47c,_0x42ad94:0x4ae,_0x4b2516:0x10,_0x461df5:0xfb,_0x15c11d:0x449,_0x2ed468:0x535,_0x4fa2dd:0x527,_0x33140c:0x44f,_0x25155d:0x405,_0x395b30:0x1e8,_0x4c22f6:0x150,_0x505b7e:0x23a,_0x55321c:0x422,_0x233b01:0x26f,_0x30bc8e:0x1d6,_0x22fe28:0x231,_0x521423:0x1d9,_0x4a5cf7:0x9b,_0x20426e:0x3a7,_0x1fef13:0x38e,_0x36e680:0x41f,_0x5094f2:0x4a0,_0x13cb87:0x544,_0x834108:0x458,_0x149b92:0xde,_0x14d7df:0x7f,_0x2ca1cc:0x341,_0x21d3e0:0x2a0,_0x4a9e48:0x33b,_0x525002:0x379,_0x22d094:0x37d,_0x332e58:0x2a6,_0x22dadd:0x34a,_0x5d2956:0x33b,_0xca30d0:0x271,_0x41f0bf:0x3a9,_0x79b748:0x4eb,_0x177986:0x41a},_0x366efa={_0x59ad22:0x16a},_0x254b16=[];function _0x5268c1(_0x5790f1,_0x2df077,_0x6ef0c6,_0x526e04){return _0x2d9e9f(_0x5790f1-_0x366efa._0x59ad22,_0x5790f1,_0x2df077- -0x4d6,_0x526e04-0x59);}for(const [_0xe9809e,_0x381697]of this[_0x559290(_0x2bb71f._0x5b9716,_0x2bb71f._0x160bcb,_0x2bb71f._0x330dd6,_0x2bb71f._0x1dafa5)][_0x5268c1(-0xb1,-0xfb,-0x4c,-_0x2bb71f._0x5efd12)]()){const _0x6a9ba9=_0x381697[_0x5268c1(-0x209,-_0x2bb71f._0x3310d1,-0x2d1,-0x128)]('');if(_0x6a9ba9[_0x5268c1(-0x1b9,-0xde,-_0x2bb71f._0x1c2ae2,-_0x2bb71f._0x40adea)]===0x0)continue;_0x254b16['push']({'index':_0xe9809e,'item':{'type':_0x559290(0x331,0x38e,0x31d,_0x2bb71f._0x3c48a0),'role':'assistant','content':[{'type':'output_text','text':_0x6a9ba9}]}});}function _0x559290(_0x99b144,_0x41b02f,_0x318f7b,_0x21ff6f){return _0x2d9e9f(_0x99b144-0x95,_0x99b144,_0x318f7b-0x43,_0x21ff6f-0xf3);}for(const _0x374a59 of this[_0x559290(_0x2bb71f._0x790641,_0x2bb71f._0x127fd9,0x4ea,0x46c)][_0x5268c1(-_0x2bb71f._0x2883fa,-0x172,-_0x2bb71f._0x6ed885,-_0x2bb71f._0x440d98)]()){_0x254b16['push']({'index':_0x374a59['outputIndex']??_0x254b16[_0x559290(_0x2bb71f._0x5ccbd9,0x440,0x43b,0x510)],'item':{'type':'reasoning','id':_0x374a59['id'],..._0x374a59[_0x559290(_0x2bb71f._0x2b297b,_0x2bb71f._0x1fa7d7,_0x2bb71f._0x438726,0x53b)]?{'encrypted_content':_0x374a59[_0x5268c1(0x62,-_0x2bb71f._0x352dc7,-0x6c,_0x2bb71f._0x3c543b)]}:{},..._0x374a59['summaryByIndex'][_0x559290(0x381,_0x2bb71f._0x1476a0,0x345,0x31d)]>0x0?{'summary':Array[_0x5268c1(-_0x2bb71f._0xb20cc2,-_0x2bb71f._0x43e066,-_0x2bb71f._0x17c66c,-0x6b)](_0x374a59[_0x559290(_0x2bb71f._0x48b833,0x51c,0x43d,_0x2bb71f._0x42ad94)][_0x5268c1(-_0x2bb71f._0x4b2516,-_0x2bb71f._0x461df5,-0xe5,-0xf2)]())[_0x559290(_0x2bb71f._0x15c11d,0x4fd,0x453,0x4af)]((_0x4cc2aa,_0x4b4705)=>_0x4cc2aa[0x0]-_0x4b4705[0x0])[_0x559290(0x398,0x2ca,0x343,0x289)](([,_0x3c0cf6])=>{return{'type':'summary_text','text':_0x3c0cf6};})}:{},..._0x374a59['textByIndex']['size']>0x0?{'text':Array[_0x559290(_0x2bb71f._0x2ed468,_0x2bb71f._0x4fa2dd,_0x2bb71f._0x33140c,_0x2bb71f._0x25155d)](_0x374a59[_0x5268c1(-0x24a,-_0x2bb71f._0x395b30,-_0x2bb71f._0x4c22f6,-_0x2bb71f._0x505b7e)][_0x559290(0x333,0x349,0x41e,_0x2bb71f._0x55321c)]())['sort']((_0x46e742,_0x1567d3)=>_0x46e742[0x0]-_0x1567d3[0x0])[_0x5268c1(-_0x2bb71f._0x233b01,-_0x2bb71f._0x30bc8e,-_0x2bb71f._0x22fe28,-_0x2bb71f._0x521423)](([,_0x49544e])=>_0x49544e)['join']('')}:{}}});}for(const _0x1ab392 of this[_0x5268c1(-0x12,-0xbe,-_0x2bb71f._0x4a5cf7,-0x100)][_0x559290(0x3fd,0x369,_0x2bb71f._0x20426e,_0x2bb71f._0x1fef13)]()){_0x254b16['push']({'index':this[_0x559290(0x57b,_0x2bb71f._0x36e680,_0x2bb71f._0x5094f2,_0x2bb71f._0x13cb87)][_0x559290(_0x2bb71f._0x834108,0x356,0x419,0x498)](_0x1ab392['id'])??_0x254b16[_0x5268c1(-0xc3,-_0x2bb71f._0x149b92,-_0x2bb71f._0x14d7df,-0x18b)],'item':{'type':_0x559290(0x31d,_0x2bb71f._0x2ca1cc,0x3f6,0x3d2),'call_id':_0x1ab392['id'],'name':_0x1ab392[_0x559290(0x30d,_0x2bb71f._0x21d3e0,_0x2bb71f._0x4a9e48,0x3b7)][_0x559290(0x463,_0x2bb71f._0x525002,_0x2bb71f._0x22d094,_0x2bb71f._0x332e58)],'arguments':_0x1ab392[_0x559290(0x319,_0x2bb71f._0x22dadd,_0x2bb71f._0x5d2956,_0x2bb71f._0xca30d0)][_0x559290(_0x2bb71f._0x41f0bf,_0x2bb71f._0x79b748,_0x2bb71f._0x177986,0x4ec)]}});}return _0x254b16['sort']((_0x14d02f,_0x48288a)=>_0x14d02f[_0x559290(0x442,0x2dd,0x3bb,0x301)]-_0x48288a[_0x559290(0x3af,0x331,0x3bb,0x485)])['map'](_0x29ba7e=>_0x29ba7e[_0x5268c1(-0xfd,-0x102,-0xfc,-0x7a)]);}[_0x2d9e9f(0x408,0x4b4,0x494,0x4b3)](_0x118e13,_0x3514d9){const _0x19ab9f={_0x39b779:0x295,_0x46ba10:0x274,_0x45028c:0x242,_0x2b2ada:0x283,_0xe1ff9:0x1a2,_0x4e16de:0x290,_0x2e19f5:0x207,_0x50768b:0x245,_0x1ed04a:0x1d6,_0x234736:0x1b8,_0xd4b577:0x40e,_0x2e42a5:0x312},_0x541d64={_0x5081e5:0x17e},_0x578ae9={_0x209795:0x1ba,_0x4ee661:0x3b4};function _0x465a6b(_0xb341ea,_0x2dfb4a,_0xa47dde,_0xb9c969){return _0x2d9e9f(_0xb341ea-_0x578ae9._0x209795,_0xb9c969,_0x2dfb4a- -_0x578ae9._0x4ee661,_0xb9c969-0x93);}const _0xa99d77=this['reasoningItems'][_0x5dc737(_0x19ab9f._0x39b779,0x21e,0x292,_0x19ab9f._0x46ba10)](_0x118e13);if(_0xa99d77)return _0x3514d9!==void 0x0&&(_0xa99d77[_0x5dc737(_0x19ab9f._0x45028c,0xee,_0x19ab9f._0x2b2ada,0x19f)]=_0x3514d9,this[_0x5dc737(_0x19ab9f._0xe1ff9,_0x19ab9f._0x4e16de,_0x19ab9f._0x2e19f5,_0x19ab9f._0x50768b)][_0x5dc737(0x220,0x10d,_0x19ab9f._0x1ed04a,_0x19ab9f._0x234736)](_0x3514d9,_0x118e13)),_0xa99d77;function _0x5dc737(_0x194704,_0x12da86,_0x573aaa,_0x9a9622){return _0x1818aa(_0x194704-0x106,_0x12da86,_0x573aaa-_0x541d64._0x5081e5,_0x9a9622-0x271);}const _0x2ae700={'id':_0x118e13,'outputIndex':_0x3514d9,'summaryByIndex':new Map(),'textByIndex':new Map()};return this[_0x5dc737(0x2ba,_0x19ab9f._0xd4b577,_0x19ab9f._0x2e42a5,0x345)]['set'](_0x118e13,_0x2ae700),_0x3514d9!==void 0x0&&this['outputIndexToReasoningId']['set'](_0x3514d9,_0x118e13),_0x2ae700;}};function createOpenAiResponsesStreamParser(_0x1f2dff){return new OpenAiResponsesStreamParser(_0x1f2dff);}function createOpenAiSurfaces(_0x3a4bbe={}){const _0x4bba21={_0x3e13f9:0x455,_0x272654:0x3bc,_0x3243b5:0x399,_0x5f1691:0x451,_0x10a24e:0x52d,_0x3b01b5:0x38b,_0x35d2e4:0x2fc,_0x2d566b:0x3d4,_0x497caa:0x5a8,_0x11c752:0x50a,_0xa29e5b:0x3f2,_0x15ffea:0x39c,_0x381aeb:0x3f8,_0x131127:0x54d},_0x5f18a7={_0x3743c5:0x85,_0x2a82f5:0xd},_0xf864e6={_0x3ba24f:0x177,_0x3d8bb4:0x1cb},_0x1b7162={_0x48179f:0x323,_0x2f9c9e:0x22e,_0x250796:0x243},_0x17b222={_0x23f36f:0xa9,_0x3490fa:0x22},_0x239bbe={_0x49b07f:0x2c5,_0x1c6f05:0x34f},_0x5a9332={_0xaae39a:0xe},_0x5a8380={_0x491563:0x1bd,_0xf2153b:0x136},_0x597da5={_0x3cbc15:0x1a6,_0x47b5e1:0x5f,_0x3460bb:0x49e},_0x30c774={_0x42ee17:0x54},_0x470f44=_0x3a4bbe[_0x17d869(_0x4bba21._0x3e13f9,0x43c,_0x4bba21._0x272654,_0x4bba21._0x3243b5)]??'/chat/completions',_0x31b2ce=_0x3a4bbe[_0x221198(0x574,_0x4bba21._0x5f1691,0x4c5,_0x4bba21._0x10a24e)]??_0x221198(_0x4bba21._0x3b01b5,0x3ea,0x439,0x408);function _0x17d869(_0x5acd1f,_0x94b2d5,_0x16292b,_0x2802f6){return _0x2d9e9f(_0x5acd1f-_0x30c774._0x42ee17,_0x16292b,_0x5acd1f-0xe9,_0x2802f6-0x14a);}function _0x221198(_0xbfea4c,_0x180067,_0x413657,_0x29b8ee){return _0x1818aa(_0xbfea4c-_0x597da5._0x3cbc15,_0x180067,_0x413657-_0x597da5._0x47b5e1,_0x29b8ee-_0x597da5._0x3460bb);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x221198(0x3bf,_0x4bba21._0x35d2e4,0x389,_0x4bba21._0x2d566b),'createRequest'(_0x2a6afe){function _0x37436d(_0x23fef2,_0x349efc,_0x257e45,_0x4781ab){return _0x221198(_0x23fef2-_0x5a8380._0x491563,_0x349efc,_0x257e45-_0x5a8380._0xf2153b,_0x4781ab- -0x43b);}return{'accept':_0x37436d(-0x56,_0x5a9332._0xaae39a,-0xaf,-0x8c),'body':createChatRequestBody(_0x2a6afe,![]),'path':_0x470f44};},'parseResponse'(_0x519cc0){return parseChatCompletionResponse(_0x519cc0);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x221198(0x4c9,_0x4bba21._0x497caa,0x4e2,_0x4bba21._0x11c752),'createRequest'(_0x12a375){const _0xfb6739={_0x3bd51c:0x1a2};function _0x3b76d7(_0x229321,_0xca6f88,_0x1eed6d,_0x275e60){return _0x221198(_0x229321-_0xfb6739._0x3bd51c,_0x229321,_0x1eed6d-0x163,_0x275e60- -0x6bb);}return{'accept':_0x3b76d7(-_0x239bbe._0x49b07f,-0x200,-_0x239bbe._0x1c6f05,-0x2b1),'body':createChatRequestBody(_0x12a375,!![]),'path':_0x470f44};},'createStreamParser'(_0x7229a2){return new OpenAiChatCompletionsStreamParser(_0x7229a2);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x17d869(_0x4bba21._0xa29e5b,_0x4bba21._0x15ffea,0x415,_0x4bba21._0x381aeb),'createRequest'(_0x27a136){function _0x1be7d3(_0x4b7846,_0x3e22a7,_0x592089,_0x43a59f){return _0x17d869(_0x4b7846- -0x187,_0x3e22a7-_0x17b222._0x23f36f,_0x43a59f,_0x43a59f-_0x17b222._0x3490fa);}return{'accept':_0x1be7d3(0x246,_0x1b7162._0x48179f,_0x1b7162._0x2f9c9e,_0x1b7162._0x250796),'body':createResponsesRequestBody(_0x27a136,![]),'path':_0x31b2ce};},'parseResponse'(_0x37ac5b,_0x40de96){return parseResponsesResponse(_0x37ac5b,_0x40de96);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0xc6142){function _0x21e516(_0x36e9c2,_0x2c1d6f,_0x3b831f,_0x1cb560){return _0x221198(_0x36e9c2-_0xf864e6._0x3ba24f,_0x36e9c2,_0x3b831f-_0xf864e6._0x3d8bb4,_0x1cb560- -0x3fd);}return{'accept':_0x21e516(_0x5f18a7._0x3743c5,-0x11,0x53,_0x5f18a7._0x2a82f5),'body':createResponsesRequestBody(_0xc6142,!![]),'path':_0x31b2ce};},'createStreamParser'(_0x319e6d){return new OpenAiResponsesStreamParser(_0x319e6d);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x17d869(0x4d1,0x4d7,_0x4bba21._0x131127,0x57b),'createRequest'(_0x4e4bf8){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x4e4bf8),'path':_0x31b2ce};},'createStreamParser'(_0x511962){return createOpenAiResponsesStreamParser(_0x511962);}}];}var OpenAiProviderAdapter=class{[_0x2d9e9f(0x420,0x42a,0x478,0x3ce)];constructor(_0x44c6c3){const _0x34b679={_0x2dbf48:0x0};function _0x56d734(_0x2bf62e,_0x4b0165,_0x49d312,_0x374c98){return _0x2d9e9f(_0x2bf62e-_0x34b679._0x2dbf48,_0x49d312,_0x2bf62e-0xec,_0x374c98-0x18e);}this[_0x56d734(0x564,0x538,0x53e,0x588)]=_0x44c6c3;}['createMissingCredentialError'](){const _0x4dfe4b={_0x5c0fc2:0x118},_0x5d7322={_0x45735f:0x198};function _0x3ab57e(_0x1d5b05,_0x318556,_0x28325f,_0x3d0295){return _0x2d9e9f(_0x1d5b05-_0x5d7322._0x45735f,_0x1d5b05,_0x28325f- -0x2e0,_0x3d0295-0x14b);}return new Error(_0x3ab57e(-0x17,0x7e,0x41,_0x4dfe4b._0x5c0fc2));}async['createHeaders'](_0x16c3f1,_0x1150f1){const _0xeb16d1={_0x4edc3a:0x15b,_0x353d1a:0xb0,_0x328b42:0x12b,_0x5b3b02:0x180,_0x2e6761:0xc4,_0x2c2a90:0x177,_0x1a0428:0x188,_0x2581fe:0x19b,_0x6d2382:0x19d,_0x14f697:0x15c,_0x384496:0x23f,_0x26d885:0x1ea,_0x211ecd:0xcf,_0x2aecc5:0x133,_0x5a3ec0:0x1c0,_0x238b88:0xf8,_0x5b07a8:0x78,_0x262861:0x26,_0x2683b5:0x9e,_0x18d3a6:0x37,_0x5e0ef6:0x9c,_0x542209:0x28b,_0x5ca2f4:0x289,_0x51d837:0xd4,_0x211b51:0x259,_0x555448:0x146,_0x4fe29e:0x18f,_0x387191:0xcb,_0x48200c:0x122,_0x73ce86:0xbc,_0x28b500:0x196},_0x18c260={_0x44604f:0x107,_0x460649:0x175},_0x5712ab={_0x214f12:0x1b4,_0x41bd75:0x1ef,_0x27b728:0x18a},_0x444179=new Headers();_0x444179[_0x3fc2b8(_0xeb16d1._0x4edc3a,_0xeb16d1._0x353d1a,_0xeb16d1._0x328b42,_0xeb16d1._0x5b3b02)](_0x98980e(_0xeb16d1._0x2e6761,0x12e,_0xeb16d1._0x2c2a90,0xb9),_0x1150f1[_0x3fc2b8(_0xeb16d1._0x1a0428,_0xeb16d1._0x2581fe,_0xeb16d1._0x6d2382,_0xeb16d1._0x14f697)]),_0x444179['set'](_0x3fc2b8(_0xeb16d1._0x384496,0x226,0x225,0x1c4),_0x98980e(0xec,0x17b,0x193,_0xeb16d1._0x26d885)+_0x16c3f1['credential'][_0x3fc2b8(0x129,_0xeb16d1._0x211ecd,_0xeb16d1._0x2aecc5,0xc2)]);function _0x3fc2b8(_0x4bce52,_0x53a93c,_0x1a94ea,_0x3b8f68){return _0x2d9e9f(_0x4bce52-_0x5712ab._0x214f12,_0x53a93c,_0x1a94ea- -_0x5712ab._0x41bd75,_0x3b8f68-_0x5712ab._0x27b728);}_0x1150f1[_0x98980e(_0xeb16d1._0x5a3ec0,0x15e,_0xeb16d1._0x238b88,_0xeb16d1._0x5b07a8)]!==![]&&_0x444179['set'](_0x98980e(-_0xeb16d1._0x262861,_0xeb16d1._0x2683b5,_0xeb16d1._0x18d3a6,_0xeb16d1._0x5e0ef6),_0x98980e(0x15a,0x86,0x3d,0x11d));function _0x98980e(_0x4b89a8,_0x5ce31b,_0x203756,_0x187d06){return _0x1818aa(_0x4b89a8-_0x18c260._0x44604f,_0x4b89a8,_0x203756-0xfa,_0x5ce31b-_0x18c260._0x460649);}const _0x2fd91d=await this[_0x3fc2b8(_0xeb16d1._0x542209,0x1e4,_0xeb16d1._0x5ca2f4,0x245)]?.({'body':_0x16c3f1[_0x98980e(0x1db,0x1b4,_0xeb16d1._0x51d837,_0xeb16d1._0x211b51)],'credential':_0x16c3f1[_0x3fc2b8(0x12b,0x147,_0xeb16d1._0x555448,0x168)],'request':_0x16c3f1[_0x98980e(0x164,_0xeb16d1._0x4fe29e,0xf8,0x205)],'session':_0x16c3f1['session'],'stream':_0x16c3f1[_0x98980e(0x1a7,_0xeb16d1._0x387191,0xc3,_0xeb16d1._0x48200c)]});for(const [_0x3a4383,_0x432f56]of Object['entries'](_0x2fd91d??{})){_0x444179[_0x98980e(0x3b,_0xeb16d1._0x73ce86,0x6b,_0xeb16d1._0x28b500)](_0x3a4383,_0x432f56);}return _0x444179;}[_0x1818aa(-0x41,-0x3a,-0x16,-0x58)](_0xa87690){return _0xa87690;}[_0x2d9e9f(0x362,0x330,0x365,0x36b)](_0xf88767,_0x43c3ea){return resolveSessionBaseUrl(_0xf88767,_0x43c3ea);}[_0x1818aa(-0xd7,-0x1a,-0x5f,-0x15)](_0x26e984,_0x4e6edf){return resolveApiCredential(_0x26e984,_0x4e6edf);}async['toApiError'](_0x195b5b){return await createOpenAiApiError(_0x195b5b);}},OpenAiModel=class extends RoutedModel{[_0x2d9e9f(0x4f2,0x46c,0x42c,0x428)]=new Map();[_0x1818aa(-0xf7,-0xcf,-0x3,-0x67)];[_0x2d9e9f(0x546,0x42a,0x462,0x453)];constructor(_0x3d055e={}){const _0x1389df={_0xa24ed7:0x55d,_0x5eadf9:0x4fc,_0x501957:0x4c0,_0x4cd480:0x560,_0x27d818:0x2d6,_0x585b55:0x660,_0x3d033c:0x5c0,_0x1b337b:0x659,_0x145763:0x539,_0x3d7bf1:0x40d,_0x4876ed:0x54d,_0x4b87c6:0x5a0,_0x19b23b:0x60f,_0x432e99:0x1a7,_0x59b906:0x224,_0x3743e3:0x4ee,_0x462a1d:0x576,_0xf4221c:0x1d9,_0x429f35:0x246,_0x15d4d2:0x1f8,_0x5c98ce:0x2d0},_0xb1e849={_0x40d537:0xc8,_0x3a3f6c:0x1c7,_0x57f32f:0x13a};function _0x3533b2(_0x4f1e3d,_0x306953,_0x39221b,_0x41aa6f){return _0x2d9e9f(_0x4f1e3d-_0xb1e849._0x40d537,_0x41aa6f,_0x39221b-_0xb1e849._0x3a3f6c,_0x41aa6f-_0xb1e849._0x57f32f);}function _0x3dc39f(_0x23cfc2,_0x574bc4,_0x1a8caa,_0x259871){return _0x1818aa(_0x23cfc2-0x1a3,_0x259871,_0x1a8caa-0x5b,_0x574bc4-0x25f);}const _0x2152f2=_0x3d055e[_0x3533b2(0x41d,_0x1389df._0xa24ed7,0x4d6,_0x1389df._0x5eadf9)]??'gpt-4o',_0x4b1b96=_0x3d055e[_0x3533b2(0x5aa,0x460,_0x1389df._0x501957,0x48d)]??getDefaultMaxTokens(),_0xfd4c9e=_0x3d055e[_0x3533b2(0x58d,_0x1389df._0x4cd480,0x533,0x589)]??_0x3dc39f(0x36f,_0x1389df._0x27d818,0x382,0x28a),_0x19b338=_0x3d055e[_0x3533b2(0x5f5,_0x1389df._0x585b55,0x629,0x6b0)]??'/responses';super({'apiKey':_0x3d055e['apiKey'],'baseUrl':trimTrailingSlashes(_0x3d055e[_0x3533b2(0x644,0x62c,_0x1389df._0x3d033c,_0x1389df._0x1b337b)]??_0x3533b2(_0x1389df._0x145763,_0x1389df._0x3d7bf1,0x4b8,0x551)),'fetch':_0x3d055e[_0x3533b2(_0x1389df._0x4876ed,_0x1389df._0x4b87c6,_0x1389df._0x19b23b,0x652)],'maxTokens':_0x4b1b96,'model':_0x2152f2,'reasoning':_0x3d055e[_0x3dc39f(0x18d,_0x1389df._0x432e99,0xfb,0xfd)],'providerAdapter':new OpenAiProviderAdapter(_0x3d055e[_0x3dc39f(_0x1389df._0x59b906,0x304,0x2d5,0x3a8)]),'providerSessionResolver':_0x3d055e[_0x3533b2(0x483,_0x1389df._0x3743e3,0x519,_0x1389df._0x462a1d)],'requestMutators':_0x3d055e[_0x3dc39f(0x10c,0x1e2,0x254,_0x1389df._0xf4221c)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x3d055e['sessionManager'],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0xfd4c9e,'responsesPath':_0x19b338}),'webSocketFactory':_0x3d055e[_0x3dc39f(0x1b7,0x251,_0x1389df._0x429f35,0x2bb)]}),this[_0x3dc39f(0x161,_0x1389df._0x15d4d2,0x14e,_0x1389df._0x5c98ce)]=_0xfd4c9e,this['responsesPath']=_0x19b338;}[_0x1818aa(-0x104,-0xb9,-0x106,-0xa9)](_0x2c67cf,_0x1f7f8f){const _0x280e77={_0x13c691:0x274,_0x578fc0:0x336,_0x1a6ce6:0x1eb},_0xd8d831={_0x28fe40:0x127};function _0x100b79(_0x23c233,_0x458518,_0x193272,_0x15304b){return _0x1818aa(_0x23c233-0xe5,_0x458518,_0x193272-_0xd8d831._0x28fe40,_0x23c233-0x32a);}return this[_0x100b79(_0x280e77._0x13c691,_0x280e77._0x578fc0,_0x280e77._0x1a6ce6,0x25d)](_0x2c67cf,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x1f7f8f);}[_0x1818aa(-0xb4,-0x17,-0x61,-0x7)](_0x5bac22,_0x159956){const _0x5b9481={_0xd67867:0x16c},_0x146a1b={_0x28bad9:0x9e};function _0x554e3f(_0x4fd62f,_0x2209bd,_0x13c00,_0x1dff52){return _0x2d9e9f(_0x4fd62f-0xb9,_0x13c00,_0x1dff52- -0x234,_0x1dff52-_0x146a1b._0x28bad9);}return this[_0x554e3f(0x10e,_0x5b9481._0xd67867,0x2a,0xe9)](_0x5bac22,OPENAI_RESPONSES_SURFACE,_0x159956);}['completeViaResponsesWebSocketSurface'](_0x1f5c44,_0x41e80b){const _0x2e7a5c={_0x28bebb:0x373,_0x9c70b1:0x3a6,_0x86ee39:0x393};function _0x2e1ad1(_0x129e2f,_0x35bfa3,_0x3e9d2d,_0x213915){return _0x2d9e9f(_0x129e2f-0x121,_0x3e9d2d,_0x129e2f-0x56,_0x213915-0x1c4);}return this[_0x2e1ad1(_0x2e7a5c._0x28bebb,_0x2e7a5c._0x9c70b1,0x35f,_0x2e7a5c._0x86ee39)](_0x1f5c44,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x41e80b);}[_0x2d9e9f(0x326,0x228,0x308,0x28d)](_0x3bd158,_0xd38789){const _0x2025e7={_0x24e87c:0x31};function _0x3fce4a(_0x56ea9f,_0x171a58,_0x1a139f,_0x2b04f1){return _0x2d9e9f(_0x56ea9f-0x7e,_0x1a139f,_0x2b04f1- -0x53a,_0x2b04f1-0xa2);}return this[_0x3fce4a(-0x7f,-_0x2025e7._0x24e87c,-0xb5,-0x9c)](_0x3bd158,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0xd38789);}[_0x2d9e9f(0x4dd,0x4b2,0x427,0x4b9)](_0x47944a,_0x506772){return this['streamViaSurface'](_0x47944a,OPENAI_RESPONSES_STREAM_SURFACE,_0x506772);}[_0x1818aa(0x128,-0x72,0x115,0x47)](_0xf9d605,_0x2d57e1){const _0x3c01c5={_0x19f924:0x264},_0x26a508={_0x10e35d:0x25b};function _0x374b8a(_0x52e177,_0x5d069a,_0x3602b2,_0x5599f4){return _0x2d9e9f(_0x52e177-0x8b,_0x5d069a,_0x5599f4- -_0x26a508._0x10e35d,_0x5599f4-0x0);}return this[_0x374b8a(0x2dc,_0x3c01c5._0x19f924,0x218,0x243)](_0xf9d605,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x2d57e1);}async[_0x2d9e9f(0x3f8,0x451,0x436,0x3bb)](_0x1b2f62,_0x5193e7){const _0x2217d9={_0x1412d5:0x3a,_0x2e5c19:0x16,_0x479ef3:0x1a2,_0x36b8ea:0x1e3},_0x529901={_0x406ff3:0x6a,_0x406c69:0x23b},_0x4507b2={_0x3fe06c:0xe3};function _0x567164(_0x54b6f5,_0x1d8b71,_0x2ae8ba,_0x438c77){return _0x1818aa(_0x54b6f5-0x1b7,_0x438c77,_0x2ae8ba-0x18,_0x54b6f5-_0x4507b2._0x3fe06c);}function _0x40b743(_0x41fbd6,_0x54dd42,_0x1c989f,_0x922931){return _0x1818aa(_0x41fbd6-_0x529901._0x406ff3,_0x41fbd6,_0x1c989f-0x8f,_0x922931-_0x529901._0x406c69);}try{return await this[_0x567164(_0x2217d9._0x1412d5,-0x64,0x30,_0x2217d9._0x2e5c19)](_0x1b2f62,_0x5193e7);}catch(_0xe2cf40){if(_0xe2cf40 instanceof OpenAiApiError)throw this[_0x40b743(_0x2217d9._0x479ef3,0x141,0x290,_0x2217d9._0x36b8ea)](_0xe2cf40);throw _0xe2cf40;}}async['response'](_0x356fa5,_0x1cad45){const _0x1b688d={_0x22a07e:0x31,_0x4cb521:0x55,_0x431ef2:0xb6,_0x15c34d:0x57},_0x48cc58={_0x2405b6:0x38},_0x3e9155={_0x30a21c:0x185};function _0x311cd8(_0x2d4c5a,_0x53a6a6,_0xc59083,_0x1c715e){return _0x1818aa(_0x2d4c5a-_0x3e9155._0x30a21c,_0x1c715e,_0xc59083-0x19f,_0x53a6a6- -0x16d);}function _0xb20771(_0x316447,_0x1af2d3,_0x1fb28d,_0x525e10){return _0x1818aa(_0x316447-0xb1,_0x316447,_0x1fb28d-0x19c,_0x1af2d3-_0x48cc58._0x2405b6);}try{return await this[_0xb20771(0x72,_0x1b688d._0x22a07e,-_0x1b688d._0x4cb521,_0x1b688d._0x431ef2)](_0x356fa5,_0x1cad45);}catch(_0xff3a8){if(_0xff3a8 instanceof OpenAiApiError)throw this[_0xb20771(-0x21,-0x20,-0xb8,_0x1b688d._0x15c34d)](_0xff3a8);throw _0xff3a8;}}async['responseSocket'](_0x11e1bf,_0x285529){const _0x519654={_0x7c0fed:0x59b,_0x4df5dc:0x5b2,_0x536dba:0x574,_0x38fddc:0x5e7,_0x40ba7f:0xb8,_0x1f3b22:0x7b,_0x407150:0xad,_0x2d4874:0x609,_0xc2944a:0x5da,_0x4627f3:0x4c9},_0x174c31={_0x3a2a04:0x8f,_0x4eacda:0xf},_0x2adf35={_0x38cafa:0xfd,_0x2d940d:0x6e,_0x3e1b03:0x55e};function _0x22bbb1(_0x298589,_0x24d5ae,_0x40303e,_0x3f013a){return _0x1818aa(_0x298589-_0x2adf35._0x38cafa,_0x40303e,_0x40303e-_0x2adf35._0x2d940d,_0x3f013a-_0x2adf35._0x3e1b03);}function _0x2f3bc2(_0xdcc21a,_0x166c92,_0x7adcbd,_0x2c07db){return _0x1818aa(_0xdcc21a-0x129,_0x2c07db,_0x7adcbd-_0x174c31._0x3a2a04,_0x166c92-_0x174c31._0x4eacda);}try{let _0x397cd3;for await(const _0x2d019e of this[_0x22bbb1(_0x519654._0x7c0fed,_0x519654._0x4df5dc,_0x519654._0x536dba,_0x519654._0x38fddc)](_0x11e1bf,_0x285529)){_0x2d019e[_0x2f3bc2(-0x2e,0xab,0x19,_0x519654._0x40ba7f)]===_0x2f3bc2(0x68,-_0x519654._0x1f3b22,-_0x519654._0x407150,-0xff)&&(_0x397cd3=_0x2d019e[_0x22bbb1(0x5b5,0x6f3,0x5ac,_0x519654._0x2d4874)]);}if(!_0x397cd3)throw new Error(_0x22bbb1(0x6a4,0x667,0x4f4,_0x519654._0xc2944a));return _0x397cd3;}catch(_0x1693ab){if(_0x1693ab instanceof OpenAiApiError)throw this[_0x22bbb1(_0x519654._0x4627f3,0x500,0x534,0x506)](_0x1693ab);throw _0x1693ab;}}async*[_0x2d9e9f(0x542,0x4a8,0x476,0x4e1)](_0x5ed5e8,_0xb09f53){const _0x1bdce1={_0xb3fa29:0x1f4,_0x3634b8:0x1c4,_0x4bc0f2:0x10c,_0x5df79e:0x74},_0x2a03df={_0x10fd6e:0xd9},_0x13f89d={_0x3dc54c:0x23,_0xa84147:0x10d};function _0x3661d7(_0x19f0f9,_0x3adae8,_0x28f242,_0x1d52a9){return _0x1818aa(_0x19f0f9-_0x13f89d._0x3dc54c,_0x1d52a9,_0x28f242-_0x13f89d._0xa84147,_0x28f242-0x201);}function _0x5a9963(_0x5f0c54,_0x6b9f3b,_0xa49cc1,_0x1c8002){return _0x2d9e9f(_0x5f0c54-0x1b3,_0x1c8002,_0xa49cc1- -0x41e,_0x1c8002-_0x2a03df._0x10fd6e);}try{yield*this[_0x3661d7(_0x1bdce1._0xb3fa29,_0x1bdce1._0x3634b8,0x136,_0x1bdce1._0x4bc0f2)](_0x5ed5e8,_0xb09f53);}catch(_0xfebf28){if(_0xfebf28 instanceof OpenAiApiError)throw this[_0x5a9963(-0xda,-_0x1bdce1._0x5df79e,-0xa3,-0x57)](_0xfebf28);throw _0xfebf28;}}async*[_0x1818aa(-0x4b,-0x98,-0x8b,-0x59)](_0x253541,_0x1006aa){const _0x3b450a={_0x12dec1:0x15d},_0xbcf31={_0xb4f797:0x18a},_0x5b6c16={_0x412cf8:0x21,_0x536764:0xd8};function _0x48d243(_0x11980f,_0x5450d9,_0x5d8957,_0x36b390){return _0x2d9e9f(_0x11980f-_0x5b6c16._0x412cf8,_0x5d8957,_0x36b390- -0x24,_0x36b390-_0x5b6c16._0x536764);}function _0x383f1b(_0x362fc3,_0x54fbf2,_0x36ea06,_0x21faa0){return _0x1818aa(_0x362fc3-0xb6,_0x36ea06,_0x36ea06-_0xbcf31._0xb4f797,_0x21faa0-0x109);}try{yield*this[_0x383f1b(0x12a,0x18b,0x205,_0x3b450a._0x12dec1)](_0x253541,_0x1006aa);}catch(_0x56a186){if(_0x56a186 instanceof OpenAiApiError)throw this[_0x383f1b(0xb4,0x151,0x69,0xb1)](_0x56a186);throw _0x56a186;}}async*['responseSocketStream'](_0x14f0c6,_0x157d1d){const _0x4f0774={_0x5d0a26:0x2d2,_0x4deee1:0x294,_0x312bcd:0x3a1,_0x129c52:0x284,_0x530544:0x4c1,_0x397f35:0x4bc},_0x55b559={_0xe69557:0x1a6,_0x4994b3:0x42};function _0xf25756(_0x457ef4,_0x17da26,_0xe1d30,_0x3a645a){return _0x1818aa(_0x457ef4-0xeb,_0xe1d30,_0xe1d30-0x1bf,_0x457ef4-0x519);}function _0xd643f8(_0x5a549c,_0x15a544,_0x276f2d,_0x541f07){return _0x2d9e9f(_0x5a549c-_0x55b559._0xe69557,_0x15a544,_0x5a549c- -_0x55b559._0x4994b3,_0x541f07-0x132);}try{yield*this[_0xd643f8(_0x4f0774._0x5d0a26,_0x4f0774._0x4deee1,_0x4f0774._0x312bcd,_0x4f0774._0x129c52)](_0x14f0c6,_0x157d1d);}catch(_0x5db430){if(_0x5db430 instanceof OpenAiApiError)throw this[_0xf25756(_0x4f0774._0x530544,0x420,_0x4f0774._0x397f35,0x45c)](_0x5db430);throw _0x5db430;}}['complete'](_0x33fa52,_0xf05871){const _0x4aaf04={_0x3f07dc:0x258},_0x3edbbc={_0x28b619:0x163};function _0x478d2e(_0x341bfc,_0x3bf4e6,_0x48c9b2,_0x55a787){return _0x1818aa(_0x341bfc-0x2b,_0x55a787,_0x48c9b2-_0x3edbbc._0x28b619,_0x48c9b2-0x1df);}return this[_0x478d2e(0x157,_0x4aaf04._0x3f07dc,0x242,0x319)](_0x33fa52,_0xf05871);}[_0x2d9e9f(0x315,0x395,0x329,0x377)](_0x6388c9,_0x2b4e57){const _0x41e2c1={_0x34d43f:0x56,_0x2d8767:0x99},_0x551208={_0x1c205e:0x16a};function _0x469d87(_0x446f3b,_0x5edca5,_0x426951,_0x166386){return _0x2d9e9f(_0x446f3b-_0x551208._0x1c205e,_0x166386,_0x426951- -0x4d2,_0x166386-0x1a3);}return this[_0x469d87(-_0x41e2c1._0x34d43f,-0xf8,-0x5c,-_0x41e2c1._0x2d8767)](_0x6388c9,_0x2b4e57);}[_0x2d9e9f(0x358,0x2b9,0x2e8,0x274)](_0x245f1f){const _0x2877a8={_0x1c2b88:0x319,_0x1a7ea3:0x384,_0x2d3fae:0x4b5,_0x437323:0x3f8,_0x17cbf5:0x10b,_0x172c14:0x24d,_0x40c11a:0x1cc,_0x375fab:0x48e,_0x25dc09:0x4d2,_0x9a65b:0x3cd,_0x17a6eb:0x3d1,_0x345215:0x2c1},_0x3786ee={_0x44b58a:0x132},_0x4ee735={_0x17a9a3:0x17c};function _0x505085(_0x12a4d3,_0x51f606,_0x19aca5,_0x497111){return _0x1818aa(_0x12a4d3-0x13b,_0x19aca5,_0x19aca5-_0x4ee735._0x17a9a3,_0x51f606-0x435);}function _0x5a365c(_0x30e4a6,_0x15ce41,_0x4f339f,_0x386580){return _0x1818aa(_0x30e4a6-0x1b3,_0x15ce41,_0x4f339f-_0x3786ee._0x44b58a,_0x386580-0x13e);}const _0x51a42c=this[_0x505085(0x31f,0x399,_0x2877a8._0x1c2b88,0x31e)](_0x245f1f);let _0x22d2e9=this['responsesSocketSessions'][_0x505085(_0x2877a8._0x1a7ea3,0x438,_0x2877a8._0x2d3fae,_0x2877a8._0x437323)](_0x51a42c);return!_0x22d2e9&&(_0x22d2e9={'key':_0x51a42c,'locked':![],'pending':Promise[_0x5a365c(_0x2877a8._0x17cbf5,_0x2877a8._0x172c14,0x137,_0x2877a8._0x40c11a)]()},this[_0x505085(0x406,_0x2877a8._0x375fab,_0x2877a8._0x25dc09,_0x2877a8._0x9a65b)][_0x505085(0x3ca,0x37c,_0x2877a8._0x17a6eb,_0x2877a8._0x345215)](_0x51a42c,_0x22d2e9)),_0x22d2e9;}[_0x1818aa(0x63,-0x18,-0xfc,-0x54)](_0x546931){const _0x55c8d5={_0x289cdf:0x578,_0x222f7d:0x49a,_0xd96b01:0x507,_0x11a317:0x4f0,_0x4e7660:0x548,_0x7d4d10:0x5ea,_0x213003:0x4df,_0x1f4fe0:0x4cd,_0x2da98c:0x5b5,_0x3919b4:0x65c,_0x34e809:0x487,_0x12b732:0x5be,_0x3144fc:0x4cc},_0x212ae6={_0x32278c:0x109},_0x1be864={_0x4384f2:0x148,_0xdbc5e8:0xd7};function _0x1cf95a(_0x11cfba,_0x132774,_0x402764,_0x1433f3){return _0x1818aa(_0x11cfba-_0x1be864._0x4384f2,_0x1433f3,_0x402764-_0x1be864._0xdbc5e8,_0x402764-0x4ef);}if(_0x546931['locked']||_0x546931[_0x1cf95a(0x537,_0x55c8d5._0x289cdf,_0x55c8d5._0x222f7d,_0x55c8d5._0xd96b01)]||_0x546931[_0x1cf95a(_0x55c8d5._0x11a317,0x563,0x545,0x5ba)])return;function _0x5893e0(_0x2e9e34,_0x1a761d,_0x4042f1,_0x4f4f3e){return _0x2d9e9f(_0x2e9e34-0x157,_0x1a761d,_0x4f4f3e-_0x212ae6._0x32278c,_0x4f4f3e-0x1e5);}this[_0x1cf95a(0x59a,0x622,_0x55c8d5._0x4e7660,_0x55c8d5._0x7d4d10)][_0x5893e0(0x4c9,0x4c2,0x3f4,_0x55c8d5._0x213003)](_0x546931[_0x1cf95a(_0x55c8d5._0x1f4fe0,0x650,_0x55c8d5._0x2da98c,_0x55c8d5._0x3919b4)])===_0x546931&&this[_0x5893e0(0x490,_0x55c8d5._0x34e809,_0x55c8d5._0x12b732,0x535)][_0x5893e0(0x53f,0x4c1,0x493,_0x55c8d5._0x3144fc)](_0x546931['key']);}['getResponsesSocketSessionKey'](_0x165ce6){const _0x546d77={_0xc3f9bc:0x142,_0x1385ad:0x213,_0x18d170:0xd9,_0x179a9f:0x1b3},_0x2bd88a={_0x403ad4:0x1d9},_0x1e9c05={_0xcbc824:0x1a6};function _0x1bd566(_0x324b34,_0x1def0b,_0x4318ab,_0x240119){return _0x2d9e9f(_0x324b34-_0x1e9c05._0xcbc824,_0x4318ab,_0x1def0b- -0x53b,_0x240119-0x37);}function _0x40b9ff(_0x115d05,_0x2e9883,_0x11a9c1,_0x393199){return _0x2d9e9f(_0x115d05-0xe5,_0x115d05,_0x393199- -_0x2bd88a._0x403ad4,_0x393199-0x46);}return''+trimTrailingSlashes(this[_0x1bd566(-0x5c,-_0x546d77._0xc3f9bc,-_0x546d77._0x1385ad,-0x55)])+this[_0x1bd566(-0xd0,-_0x546d77._0x18d170,-_0x546d77._0x179a9f,-0x142)]+'::'+_0x165ce6;}async[_0x2d9e9f(0x47d,0x573,0x493,0x3f1)](_0x28dcd8){const _0x12d384={_0x541360:0x3eb,_0x5844ed:0x461,_0x18ec7d:0x37b,_0x565835:0x2df,_0x7f4922:0x48a,_0x2edf20:0x3aa,_0x5536ac:0x458},_0x25f1bf={_0x3ed7c2:0x59a,_0x455ec8:0x4fa,_0x32c433:0x4c9,_0x3be8fd:0x417,_0x4f6173:0x3a4,_0x1c511a:0x449},_0x4fe3d3={_0x8874e:0x5},_0x4342c5={_0x37e93c:0x60},_0x4c0aeb={_0xa8b874:0x128,_0x2a7a34:0xe4,_0x1c669b:0x424},_0x4a88b2=_0x28dcd8['pending'][_0x65b2b7(0x520,0x444,_0x12d384._0x541360,_0x12d384._0x5844ed)](()=>{});function _0xd5194d(_0x3e7310,_0x30e675,_0x4ff204,_0x442461){return _0x1818aa(_0x3e7310-_0x4c0aeb._0xa8b874,_0x4ff204,_0x4ff204-_0x4c0aeb._0x2a7a34,_0x442461-_0x4c0aeb._0x1c669b);}let _0x1662d1;function _0x65b2b7(_0x237ed7,_0x4e13d7,_0x3356a2,_0x5a7e44){return _0x1818aa(_0x237ed7-_0x4342c5._0x37e93c,_0x237ed7,_0x3356a2-0x38,_0x5a7e44-0x3cc);}const _0x353d28=new Promise(_0x457b16=>{_0x1662d1=_0x457b16;});return _0x28dcd8[_0x65b2b7(0x212,_0x12d384._0x18ec7d,0x238,_0x12d384._0x565835)]=_0x4a88b2['then'](()=>_0x353d28),await _0x4a88b2,_0x28dcd8[_0x65b2b7(_0x12d384._0x7f4922,_0x12d384._0x2edf20,_0x12d384._0x5536ac,0x495)]=!![],()=>{const _0x208c12={_0x26788f:0x1e0,_0x195648:0xc5};_0x28dcd8[_0x408142(_0x25f1bf._0x3ed7c2,0x534,_0x25f1bf._0x455ec8,_0x25f1bf._0x32c433)]=![],_0x1662d1?.();function _0xe228ed(_0x5b652d,_0x4fe646,_0x2e0c6c,_0xcb35ed){return _0xd5194d(_0x5b652d-0x5d,_0x4fe646-_0x4fe3d3._0x8874e,_0x5b652d,_0xcb35ed- -0x1af);}function _0x408142(_0x423644,_0x58299c,_0x4f35e9,_0x3e98f6){return _0xd5194d(_0x423644-_0x208c12._0x26788f,_0x58299c-_0x208c12._0x195648,_0x423644,_0x58299c-0x47);}this[_0x408142(0x3c2,_0x25f1bf._0x3be8fd,_0x25f1bf._0x4f6173,_0x25f1bf._0x1c511a)](_0x28dcd8);};}async[_0x1818aa(-0x141,0x1e,-0xbb,-0xa4)](_0xa69f9c,_0x3da613){const _0x18f0f6={_0x14fed6:0x1a6,_0x1dcd0e:0x202,_0x18201f:0x2a0,_0x21f86a:0x273,_0x52eea3:0x154,_0x5c3498:0x2a2,_0x3b344e:0x101,_0x19a9f5:0xeb,_0x2185d1:0x21d,_0x24d0f4:0x2c0,_0x5489ae:0x23f,_0x164864:0x352,_0x37ebb6:0x30},_0x460c28={_0x5bb587:0x10b,_0x5bc053:0x14f},_0x23fa81={_0x5dc93c:0x1b3,_0x5f47bb:0x1bf},_0x4af0e8=this['applyModelDefaults'](_0xa69f9c),_0x12855b=toModelRequest(_0x4af0e8),_0x5cd507=await prepareProviderRequest(_0x12855b,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x3da613});function _0x3ecadb(_0x6dcd77,_0x213608,_0x1fc4a9,_0x3c095a){return _0x1818aa(_0x6dcd77-_0x23fa81._0x5dc93c,_0x6dcd77,_0x1fc4a9-0x1ee,_0x213608- -_0x23fa81._0x5f47bb);}const _0x3736ab=toChatRequest(_0x5cd507[_0x16a9e1(_0x18f0f6._0x14fed6,0x210,0x10f,_0x18f0f6._0x1dcd0e)]),_0x4026ae=this[_0x3ecadb(-0x35b,-_0x18f0f6._0x18201f,-_0x18f0f6._0x21f86a,-0x383)][_0x3ecadb(-_0x18f0f6._0x52eea3,-0x1d4,-0x184,-_0x18f0f6._0x5c3498)](this[_0x16a9e1(_0x18f0f6._0x3b344e,0x74,0x44,_0x18f0f6._0x19a9f5)],_0x5cd507[_0x3ecadb(-_0x18f0f6._0x2185d1,-0x29b,-0x320,-_0x18f0f6._0x24d0f4)]);if(!_0x4026ae)throw this['createMissingCredentialError']();function _0x16a9e1(_0x26d7c6,_0x3a8b55,_0x489dc4,_0x29c2da){return _0x2d9e9f(_0x26d7c6-_0x460c28._0x5bb587,_0x29c2da,_0x26d7c6- -0x247,_0x29c2da-_0x460c28._0x5bc053);}return{'baseUrl':this[_0x3ecadb(-_0x18f0f6._0x5489ae,-0x2a0,-0x30e,-_0x18f0f6._0x164864)]['resolveBaseUrl'](this[_0x16a9e1(0x1b2,0x143,0x1c1,0x13e)],_0x5cd507[_0x16a9e1(0xb0,_0x18f0f6._0x37ebb6,0x19d,0x7d)]),'credential':_0x4026ae,'request':_0x3736ab,'session':_0x5cd507['session']};}[_0x1818aa(0x1e,-0x3c,-0xb1,-0xbd)](_0x45e558,_0x37eaa9,_0x323492={}){const _0x24d02c={_0x195242:0x141,_0x371f81:0x214,_0xba1638:0xdf,_0x319a96:0x114,_0x376950:0x185,_0x5242fe:0x19f,_0x47abe9:0x27,_0x251e9e:0x1ae,_0x5389f5:0x118,_0x47e567:0x121,_0x123c5a:0x93},_0x38483d={_0x450f8b:0x189},_0x424e95={_0x530068:0xa5};function _0x24d5f4(_0x27121c,_0x4e0e02,_0xe3565a,_0x33318b){return _0x1818aa(_0x27121c-0x43,_0x27121c,_0xe3565a-0x19,_0xe3565a-_0x424e95._0x530068);}if(!_0x323492[_0x5daaff(0x202,0x66,_0x24d02c._0x195242,0x175)]){const _0x263848=this['findResponsesSocketCheckpoint'](_0x45e558);if(_0x263848&&_0x37eaa9[_0x5daaff(0x24a,_0x24d02c._0x371f81,0x185,0xec)]&&_0x263848[_0x5daaff(-0x7,_0x24d02c._0xba1638,0x2c,0x1f)]===_0x37eaa9[_0x5daaff(0x132,_0x24d02c._0x319a96,_0x24d02c._0x376950,0x1ae)]){const _0x58b19a=toOpenAiResponsesRequest({..._0x45e558,'messages':_0x45e558[_0x5daaff(0x1dd,0x1f9,_0x24d02c._0x5242fe,0x1a6)][_0x5daaff(0x115,0xc,0xaa,-_0x24d02c._0x47abe9)](_0x263848[_0x5daaff(_0x24d02c._0x251e9e,0x186,_0x24d02c._0x5389f5,_0x24d02c._0x47e567)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x45e558,{'input':_0x58b19a,'previousResponseId':_0x263848[_0x24d5f4(-0xb7,0xd6,0x3,-_0x24d02c._0x123c5a)]}),'previousResponseId':_0x263848['responseId']};}}function _0x5daaff(_0x1c3bcd,_0x18788e,_0xba1a8f,_0x3a03ff){return _0x2d9e9f(_0x1c3bcd-_0x38483d._0x450f8b,_0x3a03ff,_0xba1a8f- -0x305,_0x3a03ff-0xeb);}return{'event':createOpenAiResponsesWebSocketEvent(_0x45e558)};}[_0x2d9e9f(0x378,0x433,0x376,0x2a7)](_0x17abac){const _0x1d4db6={_0x4c99dd:0x19a,_0x457713:0x26,_0x47419f:0xa8,_0x29814a:0x260,_0xb3b629:0x106,_0x1a8084:0x260,_0x1a72cb:0x112,_0xdbba84:0x124},_0x1c4e16={_0x3ea40c:0x35,_0x2eb2e0:0x18c},_0x3aa041={_0x10f851:0xa3,_0x189a71:0x0};for(let _0x4f5903=_0x17abac[_0xc8ede0(0x13c,0x167,0x1b9,0x25c)][_0xc8ede0(_0x1d4db6._0x4c99dd,_0x1d4db6._0x457713,0x10d,_0x1d4db6._0x47419f)]-0x1;_0x4f5903>=0x0;_0x4f5903-=0x1){const _0x2b735d=_0x17abac[_0xc8ede0(_0x1d4db6._0x29814a,_0x1d4db6._0xb3b629,0x1b9,_0x1d4db6._0x1a8084)][_0x4f5903],_0x1141b2=_0x2b735d['role']==='assistant'?_0x2b735d['providerState']?.[_0xc8ede0(_0x1d4db6._0x1a72cb,0x73,_0x1d4db6._0xdbba84,0x6f)]:void 0x0;if(_0x1141b2)return{'messageIndex':_0x4f5903,'responseId':_0x1141b2};}function _0xbd02ae(_0x4febf2,_0x2cf028,_0x1761e0,_0x1f4689){return _0x2d9e9f(_0x4febf2-_0x3aa041._0x10f851,_0x1f4689,_0x2cf028- -0x354,_0x1f4689-_0x3aa041._0x189a71);}function _0xc8ede0(_0x4ce429,_0x542dba,_0x44ff64,_0x36032c){return _0x2d9e9f(_0x4ce429-_0x1c4e16._0x3ea40c,_0x36032c,_0x44ff64- -0x2eb,_0x36032c-_0x1c4e16._0x2eb2e0);}return void 0x0;}[_0x2d9e9f(0x332,0x345,0x3ea,0x448)](_0x4850f8){const _0x5a1780={_0x2ca77c:0x308,_0x72ae71:0x2b7,_0x452fd2:0x23b,_0x592cf9:0x66,_0x25ad90:0x2d0,_0x1d8dc4:0x2b7,_0x540006:0x36f,_0x50fb5a:0x1e1},_0x230751={_0x5c6b2e:0xf0,_0x45662e:0x1f8,_0x4c8b82:0x191},_0x25bc43={_0xd76b4f:0x1bb};function _0x97d7de(_0x329d89,_0x2d4941,_0x26149a,_0x13555d){return _0x2d9e9f(_0x329d89-0x1cf,_0x2d4941,_0x26149a- -0x418,_0x13555d-_0x25bc43._0xd76b4f);}function _0x1edf82(_0x41be41,_0x4e099e,_0x30f129,_0x51b582){return _0x2d9e9f(_0x41be41-_0x230751._0x5c6b2e,_0x51b582,_0x4e099e- -_0x230751._0x45662e,_0x51b582-_0x230751._0x4c8b82);}return _0x4850f8 instanceof ProviderStreamEventError&&(_0x4850f8[_0x1edf82(_0x5a1780._0x2ca77c,_0x5a1780._0x72ae71,0x30e,_0x5a1780._0x452fd2)]===_0x97d7de(-0x27,-0x85,-_0x5a1780._0x592cf9,0x7c)||_0x4850f8[_0x1edf82(_0x5a1780._0x25ad90,_0x5a1780._0x1d8dc4,_0x5a1780._0x540006,_0x5a1780._0x50fb5a)]==='websocket_connection_limit_reached');}[_0x1818aa(-0x11,-0xdd,0xe2,-0x6)](_0x1662b2){const _0x377a1a={_0x5a01c9:0x4ad,_0x906575:0x55c,_0x2a090e:0x523,_0x480237:0x50a,_0x35079a:0x445,_0x580f71:0x5c7,_0xc1ccd8:0x3cb,_0x3d9996:0x4a0},_0x3a7d64={_0x2c3002:0x9b},_0x1f16c0=_0x1662b2[_0x381d2d(0x5c8,_0x377a1a._0x5a01c9,0x585,_0x377a1a._0x906575)];function _0x39fb31(_0x3fb240,_0x5f1074,_0xe95b3b,_0x2abcf2){return _0x2d9e9f(_0x3fb240-0x4c,_0xe95b3b,_0x3fb240-0x14c,_0x2abcf2-0x1de);}_0x1662b2[_0x39fb31(0x575,0x5b8,_0x377a1a._0x2a090e,_0x377a1a._0x480237)]=void 0x0;function _0x381d2d(_0xea43dc,_0x50df5c,_0x4c7486,_0x59ebed){return _0x1818aa(_0xea43dc-0x14d,_0x59ebed,_0x4c7486-_0x3a7d64._0x2c3002,_0x4c7486-0x52f);}_0x1662b2['connecting']=void 0x0,_0x1662b2['lastResponseId']=void 0x0,_0x1f16c0?.[_0x39fb31(0x478,0x40c,0x3fb,0x434)]===WebSocket[_0x381d2d(0x43b,0x47b,_0x377a1a._0x35079a,0x402)]&&_0x1f16c0[_0x39fb31(0x538,_0x377a1a._0x580f71,0x4b6,0x577)](0x3e8,_0x381d2d(_0x377a1a._0xc1ccd8,0x4c0,_0x377a1a._0x3d9996,0x431));}async[_0x2d9e9f(0x44d,0x395,0x39b,0x418)](_0x3a90b5,_0x53dd3e,_0x21e435,_0x5cc580,_0x5e7a66){const _0xb9d70f={_0x2ea936:0x9e,_0x1404c4:0xad,_0xc0c0c4:0x274,_0x19f157:0x34e,_0x4e4f09:0x32b,_0x484288:0xd3,_0x6aff8a:0xa3,_0x30d274:0xaf,_0x5f5778:0x1df,_0x4120d3:0x1c4,_0x52fba3:0x252,_0x3089b8:0x1a9},_0x31ba5a={_0x52058e:0x4c4,_0x693d7b:0x4f4,_0x4bc8d6:0x440,_0x162e08:0x415,_0x1d2e05:0x244,_0x358a98:0x1b6,_0xf33d7c:0x1eb,_0x2323e3:0xc4,_0x513016:0x1f1,_0x335c99:0x20d,_0x3d5f7b:0x240,_0x39bb5c:0x1c9,_0x2456c8:0x558,_0x1c1c94:0x46c,_0x174e30:0x4ee,_0x4faf9a:0x429,_0x358ebe:0x407,_0x5467c2:0x446,_0x3d6349:0x533,_0x57f5a7:0x516,_0x4a250c:0x5a0,_0x5527d9:0x63b,_0xbda880:0x617,_0x4f7878:0x5bb,_0x339646:0x5d4,_0x5b41e7:0x502,_0x132de5:0x4e9,_0x2f4ffa:0x5a8,_0x36a8cd:0x517,_0x459774:0x52a,_0x542a64:0x46f,_0x21426f:0x526,_0x2826e8:0x511,_0x12cf29:0x490,_0x29c55c:0x466,_0x5644e2:0x423,_0x56d56f:0x446,_0x138203:0x1dd,_0x25e35f:0x176,_0x36292f:0x100,_0x49a41a:0x478,_0x802283:0x34d,_0x4af10d:0x4a8,_0x125d3f:0x562,_0x25f024:0x20b,_0x4d1a58:0x288,_0x1c0fd3:0x28a},_0x389ee7={_0xc1ecb6:0x3a},_0x51869b={_0x418fe3:0x49a,_0x430c36:0x404,_0x1da008:0x415,_0x1927eb:0x22c,_0x42e8f6:0x57d,_0x3e7b3d:0x4fb,_0x3684e9:0x47d,_0x55f009:0x25e,_0xfa7b70:0x1c0},_0x1ed27b={_0x340e49:0x55d},_0x49d914={_0x173241:0x185,_0x4f3fe9:0x27e};function _0x33688a(_0x3f9a94,_0x21aa4f,_0x57564d,_0x5da81f){return _0x2d9e9f(_0x3f9a94-_0x49d914._0x173241,_0x5da81f,_0x3f9a94- -_0x49d914._0x4f3fe9,_0x5da81f-0x34);}function _0x3a4e0f(_0xd6ecff,_0x54be40,_0x514a36,_0x11e105){return _0x2d9e9f(_0xd6ecff-0x12a,_0x514a36,_0xd6ecff- -_0x1ed27b._0x340e49,_0x11e105-0x133);}if(_0x53dd3e[_0x3a4e0f(-0x134,-_0xb9d70f._0x2ea936,-0xf4,-_0xb9d70f._0x1404c4)]?.['readyState']===WebSocket[_0x3a4e0f(-_0xb9d70f._0xc0c0c4,-_0xb9d70f._0x19f157,-0x2bd,-_0xb9d70f._0x4e4f09)])return _0x53dd3e[_0x3a4e0f(-0x134,-_0xb9d70f._0x484288,-_0xb9d70f._0x6aff8a,-_0xb9d70f._0x30d274)];if(_0x53dd3e['connecting'])return await _0x53dd3e[_0x3a4e0f(-_0xb9d70f._0x5f5778,-_0xb9d70f._0x4120d3,-_0xb9d70f._0x52fba3,-0x132)];_0x53dd3e[_0x3a4e0f(-0x1df,-0x157,-0x13a,-0x1e6)]=((async()=>{const _0x1877cd={_0x491ccb:0x227,_0x191b8f:0x1b7},_0x4a8921=await this[_0x5c49c7(_0x31ba5a._0x52058e,_0x31ba5a._0x693d7b,_0x31ba5a._0x4bc8d6,_0x31ba5a._0x162e08)]({'request':_0x21e435[_0x54fffc(_0x31ba5a._0x1d2e05,0x237,_0x31ba5a._0x358a98,0x26a)],'body':_0x5cc580,'credential':_0x21e435['credential'],'session':_0x21e435[_0x54fffc(0x113,0x141,_0x31ba5a._0xf33d7c,0x62)],'stream':!![]},{'accept':_0x54fffc(0x7b,0x12e,0x15a,_0x31ba5a._0x2323e3),'includeContentType':![]});_0x4a8921[_0x54fffc(_0x31ba5a._0x513016,_0x31ba5a._0x335c99,_0x31ba5a._0x3d5f7b,_0x31ba5a._0x39bb5c)](_0x5c49c7(_0x31ba5a._0x2456c8,0x449,0x4c6,0x3e3));const _0x45baf7=this[_0x5c49c7(0x542,_0x31ba5a._0x1c1c94,0x4ff,_0x31ba5a._0x174e30)]({'headers':Object[_0x5c49c7(0x48d,0x42f,_0x31ba5a._0x4faf9a,_0x31ba5a._0x358ebe)](_0x4a8921['entries']()),'url':(''+_0x21e435[_0x5c49c7(_0x31ba5a._0x5467c2,0x4b5,_0x31ba5a._0x3d6349,0x531)]+this['responsesPath'])[_0x5c49c7(_0x31ba5a._0x57f5a7,_0x31ba5a._0x4a250c,0x5bb,_0x31ba5a._0x5527d9)](/^http:/,'ws:')[_0x5c49c7(0x556,_0x31ba5a._0xbda880,_0x31ba5a._0x4f7878,_0x31ba5a._0x339646)](/^https:/,_0x5c49c7(_0x31ba5a._0x5b41e7,_0x31ba5a._0x132de5,_0x31ba5a._0x2f4ffa,_0x31ba5a._0x36a8cd))}),_0x13d98c=()=>{const _0x59b9ef={_0x325df8:0x152,_0x824f03:0x17a};_0x53dd3e[_0x3256fd(0x4e9,_0x51869b._0x418fe3,_0x51869b._0x430c36,_0x51869b._0x1da008)]===_0x45baf7&&(_0x53dd3e[_0x3ba773(-_0x51869b._0x1927eb,-0x1e2,-0x1b4,-0x15f)]=void 0x0,_0x53dd3e[_0x3256fd(_0x51869b._0x42e8f6,_0x51869b._0x3e7b3d,0x51b,_0x51869b._0x3684e9)]=void 0x0);function _0x3256fd(_0x1b46f2,_0x549679,_0x1ec260,_0x27c1cc){return _0x54fffc(_0x1b46f2,_0x549679-_0x1877cd._0x491ccb,_0x1ec260-_0x1877cd._0x191b8f,_0x27c1cc-0x72);}function _0x3ba773(_0x5cf14f,_0x242cb7,_0x31a55c,_0x5657e1){return _0x54fffc(_0x5657e1,_0x31a55c- -0x427,_0x31a55c-_0x59b9ef._0x325df8,_0x5657e1-_0x59b9ef._0x824f03);}this[_0x3ba773(-0x266,-0x2c2,-_0x51869b._0x55f009,-_0x51869b._0xfa7b70)](_0x53dd3e);};function _0x54fffc(_0x34f185,_0x2019d2,_0x5d47b7,_0x9e832d){return _0x33688a(_0x2019d2-0xc8,_0x2019d2-0x131,_0x5d47b7-0xa8,_0x34f185);}function _0x5c49c7(_0x2f90a6,_0x2fc1e6,_0x40e3dd,_0x412290){return _0x33688a(_0x40e3dd-0x3b8,_0x2fc1e6-0xa3,_0x40e3dd-_0x389ee7._0xc1ecb6,_0x2f90a6);}_0x45baf7[_0x5c49c7(_0x31ba5a._0x459774,0x59d,0x4fa,_0x31ba5a._0x542a64)](_0x5c49c7(0x4e9,0x5ba,_0x31ba5a._0x21426f,_0x31ba5a._0x2826e8),_0x13d98c);try{return throwIfAborted(_0x5e7a66),_0x45baf7[_0x5c49c7(0x543,_0x31ba5a._0x12cf29,_0x31ba5a._0x29c55c,0x48a)]!==WebSocket[_0x5c49c7(0x4fe,0x3b3,_0x31ba5a._0x5644e2,_0x31ba5a._0x56d56f)]&&await waitForWebSocketOpen(_0x45baf7,_0x5e7a66),throwIfAborted(_0x5e7a66),_0x53dd3e['socket']=_0x45baf7,_0x45baf7;}catch(_0x360f3b){_0x13d98c();_0x45baf7[_0x54fffc(_0x31ba5a._0x138203,_0x31ba5a._0x25e35f,0x261,_0x31ba5a._0x36292f)]===WebSocket[_0x5c49c7(0x42d,_0x31ba5a._0x49a41a,_0x31ba5a._0x5644e2,_0x31ba5a._0x802283)]&&_0x45baf7[_0x5c49c7(0x4c4,_0x31ba5a._0x4af10d,0x526,_0x31ba5a._0x125d3f)](0x3e8,_0x54fffc(_0x31ba5a._0x25f024,0x238,_0x31ba5a._0x4d1a58,_0x31ba5a._0x1c0fd3));throw _0x360f3b;}})());try{return await _0x53dd3e['connecting'];}finally{_0x53dd3e[_0x3a4e0f(-0x1df,-0x21e,-0x2af,-_0xb9d70f._0x3089b8)]=void 0x0;}}async*[_0x2d9e9f(0x3e2,0x28c,0x314,0x29a)](_0xb21ca1,_0x64e370){const _0x2de572={_0x3ba84d:0x133,_0x3f699c:0x12e,_0x258b3a:0x1de,_0x3bb0b1:0x267,_0x272d44:0x38d,_0x2bef0e:0x2d9,_0x51280f:0x4e9,_0x2bfaf9:0x412,_0x2cbe6e:0x447,_0x40d23c:0x295,_0x2971a9:0x95,_0x19d04b:0x375,_0x11ac2a:0x3e7,_0xf7d1d5:0x400,_0x22b99b:0x16b,_0x267501:0x40,_0x5698c8:0x57,_0x4a5d0e:0x16c,_0x169e4c:0xba,_0x9ce166:0x8f,_0x18d635:0x111,_0x26e253:0x24b},_0x2663a8={_0x41c67d:0xa8},_0x1fc73a={_0x208d3e:0x7f,_0x58b66c:0x81,_0x3162ff:0xb8},_0x1ecbbd=this[_0x5dd1f4(-_0x2de572._0x3ba84d,-_0x2de572._0x3f699c,-0x144,-0x86)](_0xb21ca1),_0x58e2a5=this[_0x49d3db(_0x2de572._0x258b3a,0x291,_0x2de572._0x3bb0b1,0x191)](_0x1ecbbd[_0x49d3db(0x2eb,0x36e,_0x2de572._0x272d44,_0x2de572._0x2bef0e)]['sessionId']),_0x219c87=await this[_0x49d3db(_0x2de572._0x51280f,0x395,_0x2de572._0x2bfaf9,_0x2de572._0x2cbe6e)](_0x58e2a5);function _0x49d3db(_0xf81707,_0x216231,_0x30335b,_0x36f3f0){return _0x2d9e9f(_0xf81707-_0x1fc73a._0x208d3e,_0xf81707,_0x30335b- -_0x1fc73a._0x58b66c,_0x36f3f0-_0x1fc73a._0x3162ff);}function _0x5dd1f4(_0x680347,_0x13acc1,_0x22b912,_0x9149c7){return _0x2d9e9f(_0x680347-0x1c6,_0x680347,_0x22b912- -0x44e,_0x9149c7-_0x2663a8._0x41c67d);}try{const _0x5b9aa1=this[_0x49d3db(0x32c,0x2b3,_0x2de572._0x40d23c,0x35e)](_0x1ecbbd,_0x58e2a5);try{yield*this['streamViaResponsesSocketAttempt'](_0x1ecbbd['metadata']['sessionId'],_0x58e2a5,_0x1ecbbd,_0x5b9aa1['event'],_0x64e370?.[_0x5dd1f4(-0x65,-0x156,-_0x2de572._0x2971a9,-0xbe)]);return;}catch(_0x103ec9){if(!_0x5b9aa1[_0x49d3db(0x3bf,0x3ba,0x3c0,_0x2de572._0x19d04b)]||!this[_0x5dd1f4(-0xb3,0x28,-0x64,0x53)](_0x103ec9)){this[_0x49d3db(_0x2de572._0x11ac2a,0x31d,0x34c,_0x2de572._0xf7d1d5)](_0x58e2a5);throw _0x103ec9;}}this[_0x5dd1f4(-0x7f,-_0x2de572._0x22b99b,-0x81,-0xa2)](_0x58e2a5);const _0x3c1f2d=this['buildResponsesSocketEvent'](_0x1ecbbd,_0x58e2a5,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0x1ecbbd[_0x5dd1f4(-0xd0,0x35,-_0x2de572._0x267501,-0xc0)][_0x5dd1f4(-0x47,-0x117,-0x76,_0x2de572._0x5698c8)],_0x58e2a5,_0x1ecbbd,_0x3c1f2d[_0x5dd1f4(-_0x2de572._0x4a5d0e,-_0x2de572._0x169e4c,-_0x2de572._0x9ce166,-_0x2de572._0x18d635)],_0x64e370?.[_0x49d3db(0x332,_0x2de572._0x26e253,0x338,0x39b)]);}finally{_0x219c87();}}async*[_0x1818aa(-0x9f,-0xec,0x34,-0xb0)](_0x2cb586,_0x4c5123,_0x411022,_0x27a9fe,_0x582b9d){const _0x181ef5={_0x3b8efa:0x462,_0x4260e7:0x34a,_0x5b1a93:0x42d,_0x5e5014:0x1d5,_0x112328:0x21a,_0x3659f6:0x142,_0xf58998:0x1fc,_0x17b065:0x2e1,_0x2e6879:0x211,_0x469155:0x220,_0x4eaaa5:0x284,_0xf62d04:0x52d,_0x4d2ef5:0x390,_0x13031b:0x247,_0x4de077:0x187,_0x78967b:0x16a,_0x8cfd08:0xdf,_0x324118:0x22a,_0x11be4c:0x5b8,_0x1000e2:0x20b,_0x332a12:0x15f},_0x1237b6={_0x570411:0x134,_0x2bffc5:0x105,_0x3be54b:0x139};function _0x45a81b(_0x40d1b0,_0x535af2,_0xf6d729,_0x4e7fde){return _0x2d9e9f(_0x40d1b0-_0x1237b6._0x570411,_0x535af2,_0xf6d729-_0x1237b6._0x2bffc5,_0x4e7fde-_0x1237b6._0x3be54b);}const _0x520cc8=await this[_0x45a81b(_0x181ef5._0x3b8efa,_0x181ef5._0x4260e7,0x434,_0x181ef5._0x5b1a93)](_0x411022,_0x582b9d),_0x12d02c=await this[_0x550ecd(_0x181ef5._0x5e5014,_0x181ef5._0x112328,0x25e,0x1fa)](_0x2cb586,_0x4c5123,_0x520cc8,_0x27a9fe,_0x582b9d),_0x5746b0=createOpenAiResponsesStreamParser(_0x411022);throwIfAborted(_0x582b9d);function _0x550ecd(_0x3af4aa,_0x183f05,_0x4bffcf,_0x2ea200){return _0x1818aa(_0x3af4aa-0xfb,_0x2ea200,_0x4bffcf-0xaf,_0x183f05-0x252);}_0x12d02c[_0x550ecd(_0x181ef5._0x3659f6,_0x181ef5._0xf58998,_0x181ef5._0x17b065,0x146)](JSON[_0x550ecd(_0x181ef5._0x2e6879,_0x181ef5._0x469155,0x2c7,0x1cd)](_0x27a9fe));for await(const _0x40ac18 of iterateWebSocketMessages(_0x12d02c,_0x582b9d)){const _0x417441=_0x5746b0[_0x550ecd(0x2a4,0x1e7,0x1b8,_0x181ef5._0x4eaaa5)]?.(_0x40ac18)??[];yield*_0x417441;if(_0x5746b0['isDone']?.())break;}if(!_0x5746b0[_0x45a81b(_0x181ef5._0xf62d04,0x523,0x450,_0x181ef5._0x4d2ef5)]?.())throw new Error(_0x550ecd(0x178,_0x181ef5._0x13031b,0x2ec,0x212));const _0xd63d0b=_0x5746b0[_0x550ecd(0x263,0x17c,0x260,0x244)](),_0x18c59e=_0xd63d0b[_0x550ecd(_0x181ef5._0x4de077,_0x181ef5._0x78967b,_0x181ef5._0x8cfd08,_0x181ef5._0x324118)]?.[_0x45a81b(_0x181ef5._0x11be4c,0x531,0x514,0x44b)]??_0xd63d0b['id'];_0x18c59e&&(_0x4c5123['lastResponseId']=_0x18c59e),yield{'type':_0x550ecd(0x1f2,0x1c8,_0x181ef5._0x1000e2,_0x181ef5._0x332a12),'response':_0xd63d0b};}},AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages',_0x1818aa(-0x16,-0xf3,-0x3e,-0x7c),_0x2d9e9f(0x4c0,0x527,0x466,0x3d2),_0x1818aa(-0xe2,-0x87,-0x19c,-0xdf)];function isAnthropicSurface(_0xb4fb35){const _0x3e6163={_0x1eb5b9:0x527,_0x4f1588:0x46d};function _0x4b470c(_0x374142,_0x2b71ec,_0x3c03ee,_0x1eeeb0){return _0x1818aa(_0x374142-0x1eb,_0x3c03ee,_0x3c03ee-0x10a,_0x374142-0x44e);}return _0xb4fb35===_0x4b470c(_0x3e6163._0x1eb5b9,0x45c,_0x3e6163._0x4f1588,0x5ab);}function providerFromSurface(_0x247184){const _0x3ab88a={_0x223bfb:0x25a,_0x209235:0xe9,_0x25ebb3:0x22e,_0xb5cb52:0x1af},_0x2fe07a={_0x316230:0x1ff,_0x5e2cfb:0x1df};function _0x130670(_0x43089c,_0x1ddb23,_0x282ce6,_0x2e597d){return _0x2d9e9f(_0x43089c-0x5a,_0x282ce6,_0x1ddb23- -0x5d1,_0x2e597d-0x118);}function _0x227dcd(_0x2cb833,_0x25bdfe,_0x3522e1,_0x57db3b){return _0x2d9e9f(_0x2cb833-0x3e,_0x25bdfe,_0x2cb833- -_0x2fe07a._0x316230,_0x57db3b-_0x2fe07a._0x5e2cfb);}return _0x247184[_0x130670(-0x2a1,-_0x3ab88a._0x223bfb,-0x283,-0x270)](_0x130670(-_0x3ab88a._0x209235,-0x1ce,-_0x3ab88a._0x25ebb3,-0x1b1))?_0x130670(-0x217,-0x1ce,-0x2a4,-_0x3ab88a._0xb5cb52):'openai';}function resolveDefaultBaseUrl(_0x1c1567){const _0x44cbf6={_0x124bff:0x96,_0x3629d3:0x9e,_0x47adbb:0x29,_0xfbd62e:0x80},_0x4b3fb7={_0x58d26b:0xe2,_0x349498:0x1b},_0x1d0931={_0x216539:0x137};if(_0x1c1567===_0x1ca09f(-_0x44cbf6._0x124bff,-0x9b,_0x44cbf6._0x3629d3,_0x44cbf6._0x47adbb))return getProviderProfile(_0x1ca09f(-0x14c,0x37,-0xd8,-_0x44cbf6._0xfbd62e))?.[_0x1888f5(0x22b,0x232,0x233,0x317)]??'https://api.anthropic.com';function _0x1ca09f(_0x2140ba,_0x1e7e9e,_0x13e330,_0x1a62f4){return _0x2d9e9f(_0x2140ba-_0x1d0931._0x216539,_0x1e7e9e,_0x1a62f4- -0x483,_0x1a62f4-0x12c);}function _0x1888f5(_0x17bc51,_0x4db86b,_0x415c49,_0x5334e4){return _0x2d9e9f(_0x17bc51-0x1b2,_0x415c49,_0x5334e4- -_0x4b3fb7._0x58d26b,_0x5334e4-_0x4b3fb7._0x349498);}return getProviderProfile('openai')?.['baseUrl']??'https://api.openai.com/v1';}var ChatModel=class{[_0x2d9e9f(0x3f3,0x31a,0x30f,0x265)];['maxTokens'];[_0x2d9e9f(0x514,0x3bd,0x49b,0x3e2)];[_0x1818aa(0xf,-0xd9,0x20,0x0)];[_0x1818aa(-0x108,-0x67,-0x27,-0xf6)];[_0x1818aa(-0x68,0x10c,0x11a,0x44)];constructor(_0x343a38={}){const _0x2adc5c={_0x5be8df:0x325,_0x2c55b4:0x2f3,_0x5aaa71:0x33d,_0x42ffec:0x2c,_0x152ed4:0xdd,_0x124c9b:0x1b7,_0x1a4f98:0x230,_0x4f6b25:0x1f3,_0x156bab:0x60,_0x1ad44f:0x3bf,_0x219570:0x401,_0x19edf7:0xfe,_0x38f639:0x1de,_0x1c7798:0x24b,_0xad6a05:0x13b,_0x2097dc:0xa1,_0x10b1dd:0xaf,_0x254987:0x0,_0x563b00:0x476,_0x560628:0x433,_0x2108df:0x406,_0x4dc7c1:0x3ba,_0x500a87:0xa,_0xb8318a:0xa1,_0x284d6d:0x5a,_0x5e16a8:0x31,_0x5cac20:0x52,_0x31cc40:0x123,_0x42c1ce:0x68,_0x45d3a8:0x198,_0x3443cb:0x16,_0x6456e5:0xf,_0x495647:0x5b,_0x52ff77:0xc2,_0x1182bb:0x31,_0x2191e2:0x9a,_0x27b86f:0xed,_0x3fd59c:0x3ef,_0x1dfa9c:0x451},_0x24ce18={_0x1027ea:0x121,_0x451e34:0x401};function _0x4c044c(_0x5a6077,_0x3897ee,_0x277f6a,_0x1194bb){return _0x1818aa(_0x5a6077-0x71,_0x3897ee,_0x277f6a-_0x24ce18._0x1027ea,_0x277f6a-_0x24ce18._0x451e34);}this[_0x4c044c(_0x2adc5c._0x5be8df,_0x2adc5c._0x2c55b4,_0x2adc5c._0x5aaa71,0x3e3)]=_0x343a38['model']??getDefaultModel(),this['maxTokens']=_0x343a38[_0x15e64c(-_0x2adc5c._0x42ffec,-_0x2adc5c._0x152ed4,-0x61,0x2c)]??getDefaultMaxTokens(),this[_0x15e64c(0x176,_0x2adc5c._0x124c9b,_0x2adc5c._0x1a4f98,_0x2adc5c._0x4f6b25)]=_0x343a38['surface']??_0x15e64c(0x32,-0x42,-_0x2adc5c._0x156bab,0x10b),this[_0x4c044c(_0x2adc5c._0x1ad44f,0x39f,_0x2adc5c._0x219570,0x4d4)]=providerFromSurface(this[_0x15e64c(0x176,_0x2adc5c._0x19edf7,0x1ba,0xcf)]);function _0x15e64c(_0xbe9378,_0x234f69,_0x3bee7d,_0x51182e){return _0x1818aa(_0xbe9378-0x18e,_0x3bee7d,_0x3bee7d-0x73,_0xbe9378-0xae);}const _0xffd8e6=trimTrailingSlashes(_0x343a38['baseUrl']??resolveDefaultBaseUrl(this[_0x15e64c(0x176,_0x2adc5c._0x38f639,0x1b4,_0x2adc5c._0x1c7798)]));if(isAnthropicSurface(this[_0x15e64c(0x176,0x1f7,_0x2adc5c._0xad6a05,_0x2adc5c._0x2097dc)])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x343a38[_0x15e64c(0x23,0x10e,-0x8,_0x2adc5c._0x10b1dd)],'authScheme':_0x343a38[_0x15e64c(0xbd,0x5f,_0x2adc5c._0x254987,0x16a)],'baseUrl':_0xffd8e6,'fetch':_0x343a38[_0x4c044c(0x4ca,0x4d2,_0x2adc5c._0x563b00,_0x2adc5c._0x560628)],'maxTokens':this[_0x4c044c(_0x2adc5c._0x2108df,_0x2adc5c._0x4dc7c1,0x327,0x2b0)],'model':this['model'],'reasoning':_0x343a38[_0x15e64c(-_0x2adc5c._0x500a87,-_0x2adc5c._0xb8318a,_0x2adc5c._0x284d6d,0x80)],'providerSessionResolver':_0x343a38[_0x15e64c(0x2d,-0x93,0xd6,0x11)],'requestMutators':_0x343a38[_0x15e64c(_0x2adc5c._0x5e16a8,0xde,0xf9,0x6e)]});return;}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x343a38[_0x15e64c(0x23,0xfb,0xfb,_0x2adc5c._0x5cac20)],'baseUrl':_0xffd8e6,'fetch':_0x343a38[_0x15e64c(_0x2adc5c._0x31cc40,_0x2adc5c._0x42c1ce,0x1f3,_0x2adc5c._0x45d3a8)],'headerResolver':_0x343a38['headerResolver'],'maxTokens':this[_0x15e64c(-0x2c,-0xf1,0x57,-0x21)],'model':this[_0x15e64c(-_0x2adc5c._0x3443cb,-_0x2adc5c._0x6456e5,-0x36,-0x3b)],'reasoning':_0x343a38['reasoning'],'providerSessionResolver':_0x343a38[_0x15e64c(0x2d,_0x2adc5c._0x10b1dd,_0x2adc5c._0x495647,_0x2adc5c._0x52ff77)],'requestMutators':_0x343a38[_0x15e64c(_0x2adc5c._0x1182bb,-0x49,-_0x2adc5c._0x2191e2,_0x2adc5c._0x27b86f)],'webSocketFactory':_0x343a38[_0x4c044c(_0x2adc5c._0x3fd59c,_0x2adc5c._0x1dfa9c,0x3f3,0x31f)]});}[_0x1818aa(0xe1,0xac,0x90,0x4f)](){const _0xac2118={_0x36426b:0x1ca,_0x58d4a6:0x1c8,_0x602a30:0x5ad,_0x173d48:0x526,_0x2ebae1:0x697,_0x5c2674:0x5b9,_0x44d445:0x33b,_0x1bdfb9:0x3fb},_0x34bfeb={_0x568162:0x1bd,_0x23adc9:0x31};function _0x53761c(_0x4981cc,_0x3aa596,_0x3ec637,_0x123958){return _0x2d9e9f(_0x4981cc-0x8d,_0x3aa596,_0x123958-0x11e,_0x123958-0xcc);}function _0x22bc16(_0x1da38d,_0x28770b,_0xffff4a,_0x15a84f){return _0x2d9e9f(_0x1da38d-0x1bd,_0xffff4a,_0x15a84f- -_0x34bfeb._0x568162,_0x15a84f-_0x34bfeb._0x23adc9);}if(!this[_0x22bc16(_0xac2118._0x36426b,_0xac2118._0x58d4a6,0x17a,0x120)])throw new Error('Anthropic\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x53761c(_0xac2118._0x602a30,_0xac2118._0x173d48,_0xac2118._0x2ebae1,_0xac2118._0x5c2674)]);return this[_0x53761c(_0xac2118._0x44d445,0x391,0x3d4,_0xac2118._0x1bdfb9)];}[_0x2d9e9f(0x508,0x4da,0x454,0x3aa)](){const _0x5cbc9b={_0x4eca8c:0x2a,_0x16f4e6:0x14b,_0x278f46:0x120,_0x323961:0x216,_0x2323af:0x174},_0x9e6c66={_0x342cd5:0x14a},_0x5741c5={_0x4b2bfe:0x1b0,_0x656af1:0x67};if(!this[_0x5151e8(_0x5cbc9b._0x4eca8c,0x197,_0x5cbc9b._0x16f4e6,0xf0)])throw new Error('OpenAI\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x5151e8(_0x5cbc9b._0x278f46,0x14b,_0x5cbc9b._0x323961,_0x5cbc9b._0x2323af)]);function _0x5151e8(_0x28f458,_0x41ef0a,_0x8b9a0d,_0x33bcc2){return _0x2d9e9f(_0x28f458-_0x5741c5._0x4b2bfe,_0x8b9a0d,_0x33bcc2- -0x327,_0x33bcc2-_0x5741c5._0x656af1);}function _0x2b3e94(_0x322342,_0x355b0e,_0x588db0,_0x353922){return _0x1818aa(_0x322342-0x146,_0x322342,_0x588db0-0x1b3,_0x355b0e-_0x9e6c66._0x342cd5);}return this['openAiDelegate'];}['complete'](_0x4770c1,_0x599a1){const _0x172411={_0x18725c:0x3c1,_0x10f494:0x2f2,_0x14cc57:0x2cf,_0x1f524b:0x401,_0x45fadc:0x452,_0x3c9560:0x466,_0x2a2688:0x473,_0x58ec51:0x34c,_0x5735ca:0x3da,_0x455b85:0x32c,_0x209cb5:0x22d,_0x564ccd:0x4fa,_0x1ea45e:0x3ae,_0x5b4c84:0x3c7,_0x1479d3:0x2b9,_0x2733c6:0x36f,_0x37b9e3:0x40d},_0x2374a1={_0x587f94:0xf4,_0x394688:0xd5};function _0x47db70(_0x1a4d39,_0x2b1eff,_0x1b376e,_0x3ac45c){return _0x1818aa(_0x1a4d39-0x1f0,_0x1a4d39,_0x1b376e-0x0,_0x3ac45c-0x3f2);}function _0xcaf1bb(_0x4a899c,_0x1605a2,_0x5a8356,_0x4bbaf2){return _0x1818aa(_0x4a899c-_0x2374a1._0x587f94,_0x4a899c,_0x5a8356-_0x2374a1._0x394688,_0x4bbaf2-0x2ee);}switch(this[_0xcaf1bb(0x40f,0x37f,_0x172411._0x18725c,0x3b6)]){case _0xcaf1bb(0x33d,_0x172411._0x10f494,0x330,0x3c7):return this['getAnthropicDelegate']()['complete'](_0x4770c1,_0x599a1);case _0xcaf1bb(_0x172411._0x14cc57,_0x172411._0x1f524b,_0x172411._0x45fadc,0x381):return this[_0x47db70(_0x172411._0x3c9560,0x4fe,0x4fc,_0x172411._0x2a2688)]()[_0xcaf1bb(0x36c,_0x172411._0x58ec51,_0x172411._0x5735ca,0x399)](_0x4770c1,_0x599a1);case _0x47db70(_0x172411._0x455b85,0x36d,_0x172411._0x209cb5,0x313):return this[_0x47db70(_0x172411._0x564ccd,_0x172411._0x1ea45e,_0x172411._0x5b4c84,0x473)]()['responseSocket'](_0x4770c1,_0x599a1);default:return this[_0xcaf1bb(_0x172411._0x1479d3,0x396,0x343,_0x172411._0x2733c6)]()[_0xcaf1bb(0x274,_0x172411._0x37b9e3,0x387,0x351)](_0x4770c1,_0x599a1);}}[_0x1818aa(-0xc3,0x28,-0x128,-0xaa)](_0xd913fe,_0x4212ef){const _0x2a13f6={_0x4ac5fc:0x50,_0x3e6614:0x2f,_0x498f16:0x11,_0x30039d:0x63c,_0x2accdc:0x629,_0x7c0e4:0xd5,_0x38ac79:0x225,_0x188cae:0x679,_0x4e8010:0x5e3,_0xb26d83:0x1e,_0x323c30:0x76,_0x5543a1:0x4b,_0x3a9ae7:0x65,_0x1687ad:0x530,_0x55c506:0x514,_0x37de5b:0x4f7,_0x5c1a05:0x18a,_0x4b39c8:0x244,_0x39313e:0x1f7,_0x56023e:0x629,_0x30fc22:0x5d9,_0x6a7130:0x62e,_0x372eee:0x5d1,_0x2d41f6:0x8f,_0x67ffb5:0x54,_0x301d61:0x12a,_0x19bede:0x70},_0x3929ae={_0x59b2d2:0x17d};function _0x2bc535(_0x4259da,_0x378481,_0x44ddef,_0x1312bc){return _0x1818aa(_0x4259da-0x14d,_0x44ddef,_0x44ddef-0xd7,_0x378481- -0xf7);}function _0x57ba9a(_0x3d6916,_0x218c69,_0x211475,_0x407683){return _0x2d9e9f(_0x3d6916-0xbf,_0x218c69,_0x407683-_0x3929ae._0x59b2d2,_0x407683-0x156);}switch(this[_0x2bc535(-_0x2a13f6._0x4ac5fc,-_0x2a13f6._0x3e6614,-_0x2a13f6._0x498f16,-0xdf)]){case _0x57ba9a(0x5d4,0x56c,_0x2a13f6._0x30039d,_0x2a13f6._0x2accdc):return this[_0x2bc535(-0x91,-0xa8,-0xef,-_0x2a13f6._0x7c0e4)]()[_0x2bc535(-0xf2,-0x1a1,-_0x2a13f6._0x38ac79,-0x1e8)](_0xd913fe,_0x4212ef);case _0x57ba9a(0x638,_0x2a13f6._0x188cae,0x65a,_0x2a13f6._0x4e8010):return this[_0x2bc535(_0x2a13f6._0xb26d83,-_0x2a13f6._0x323c30,_0x2a13f6._0x5543a1,_0x2a13f6._0x3a9ae7)]()[_0x57ba9a(_0x2a13f6._0x1687ad,0x4e8,_0x2a13f6._0x55c506,_0x2a13f6._0x37de5b)](_0xd913fe,_0x4212ef);case _0x2bc535(-_0x2a13f6._0x5c1a05,-0x1d6,-_0x2a13f6._0x4b39c8,-_0x2a13f6._0x39313e):return this[_0x57ba9a(0x659,_0x2a13f6._0x56023e,0x67c,0x5d1)]()[_0x57ba9a(0x635,0x5df,0x61c,_0x2a13f6._0x30fc22)](_0xd913fe,_0x4212ef);default:return this[_0x57ba9a(0x52f,_0x2a13f6._0x6a7130,0x54f,_0x2a13f6._0x372eee)]()[_0x2bc535(_0x2a13f6._0x2d41f6,-_0x2a13f6._0x67ffb5,-_0x2a13f6._0x301d61,_0x2a13f6._0x19bede)](_0xd913fe,_0x4212ef);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x2d9e9f(0x348,0x25d,0x2d7,0x2b0)];[_0x2d9e9f(0x459,0x31f,0x3f9,0x395)];[_0x1818aa(0xa0,0x139,0x0,0x65)];[_0x1818aa(0x130,-0x58,0x9,0x4d)];[_0x2d9e9f(0x39c,0x376,0x409,0x3d2)];constructor(_0x5879dd){const _0x5939cc={_0x184656:0x3bf,_0x38b741:0x320,_0x3e5a1e:0x139,_0x2c8022:0x1d7,_0x49be17:0x151,_0x38f255:0xb5,_0x4faeb1:0x13a,_0x50aa64:0x178,_0x7cfafb:0x16c,_0x43f324:0x12b},_0x2c5883={_0x470e80:0xfd,_0x71af28:0xa6,_0x3cf542:0xdb},_0x26ee54={_0x242aed:0x172,_0x2f22b9:0x10f};this[_0xc21cf(-0x25c,-_0x5939cc._0x184656,-_0x5939cc._0x38b741,-0x2ca)]=_0x5879dd[_0x2ed9b6(-_0x5939cc._0x3e5a1e,-_0x5939cc._0x2c8022,-0x271,-_0x5939cc._0x49be17)];function _0xc21cf(_0x2cd20c,_0x541ecb,_0x37355f,_0x25394d){return _0x1818aa(_0x2cd20c-_0x26ee54._0x242aed,_0x2cd20c,_0x37355f-_0x26ee54._0x2f22b9,_0x37355f- -0x224);}function _0x2ed9b6(_0x3d69cf,_0x5168f4,_0x100673,_0x52b112){return _0x1818aa(_0x3d69cf-_0x2c5883._0x470e80,_0x100673,_0x100673-_0x2c5883._0x71af28,_0x5168f4- -_0x2c5883._0x3cf542);}this['baseUrl']=trimTrailingSlashes2(_0x5879dd[_0x2ed9b6(-0x27,-_0x5939cc._0x38f255,-0xd1,-0x60)]),this[_0x2ed9b6(-_0x5939cc._0x4faeb1,-0x76,0x2c,-0x15d)]=_0x5879dd['fetch'],this['githubApiUrl']=trimTrailingSlashes2(_0x5879dd['githubApiUrl']),this[_0xc21cf(-_0x5939cc._0x50aa64,-_0x5939cc._0x7cfafb,-0x1ee,-0x254)]=_0x5879dd[_0x2ed9b6(-_0x5939cc._0x43f324,-0xa5,-0x91,-0x59)];}async[_0x1818aa(-0xf,0xb7,0x8a,0x8e)](_0x65c564){const _0x50d56d={_0x2e6250:0x83,_0x3630ad:0xe4,_0x3eff62:0x5a,_0x232607:0x1ac,_0x3b1475:0x1a6,_0x7799cd:0x73,_0x50baf8:0x5c,_0x4854a2:0x28,_0xbb4bc1:0xcd,_0x3e6e66:0x8d,_0x12c9fe:0x191,_0x514add:0x227,_0x37246e:0x1fe,_0x40f036:0x1e5,_0x462194:0x163,_0x18b13d:0x179,_0x501737:0x1cb,_0x164278:0xfd,_0x56d263:0x170,_0x5ba57a:0xed,_0x44cc76:0x8b,_0x2598b9:0x198,_0x4f7f83:0x126,_0x2c197e:0xf8,_0x38e34b:0x16,_0x14d032:0x35,_0x1b8701:0x4e,_0x134968:0xf,_0xad9a4:0x7c,_0x6c0c14:0x148,_0xe5313e:0x81,_0xb57c68:0x12d,_0x39969b:0xe9,_0x467ba7:0x76,_0x2cfaf0:0x3c,_0x252026:0x10a,_0x52408f:0x7c,_0x46f86f:0x74},_0xcaf245={_0x1da9fc:0x91,_0x1ee719:0x15e,_0x59f294:0xc7},_0x1f2643=await this[_0x598d87(_0x50d56d._0x2e6250,-0x6b,-0x43,-0x42)](this[_0x598d87(0x86,-_0x50d56d._0x3630ad,-0x135,-_0x50d56d._0x3eff62)]+_0x598d87(-_0x50d56d._0x232607,-_0x50d56d._0x3b1475,-0x132,-0x122),{'method':_0x598d87(0x75,_0x50d56d._0x7799cd,-_0x50d56d._0x50baf8,0x6),'headers':new Headers({'accept':_0xea2587(-0x6a,-_0x50d56d._0x4854a2,0x75,-0x7e),'authorization':_0xea2587(0xb0,_0x50d56d._0xbb4bc1,_0x50d56d._0x3e6e66,_0x50d56d._0x12c9fe)+this[_0x598d87(-0x1ce,-_0x50d56d._0x514add,-0x154,-0x1a3)],'editor-version':_0x598d87(-0xf4,-_0x50d56d._0x37246e,-_0x50d56d._0x40f036,-_0x50d56d._0x462194),'user-agent':_0x598d87(-_0x50d56d._0x18b13d,0x2d,-0xc0,-0x9a),'x-github-api-version':this[_0xea2587(_0x50d56d._0x501737,_0x50d56d._0x164278,0x69,0x146)]}),'signal':_0x65c564});function _0xea2587(_0x180d23,_0x4271af,_0x9cbcd6,_0x1f1ef8){return _0x1818aa(_0x180d23-_0xcaf245._0x1da9fc,_0x180d23,_0x9cbcd6-_0xcaf245._0x1ee719,_0x4271af-_0xcaf245._0x59f294);}function _0x598d87(_0x2b1192,_0x3f15b4,_0x2e3be0,_0x4c5db9){return _0x2d9e9f(_0x2b1192-0xf,_0x2b1192,_0x4c5db9- -0x47a,_0x4c5db9-0x41);}if(!_0x1f2643['ok'])return{'credential':{'kind':'oauth-token','value':this['accessToken']},'endpoints':{'api':this[_0xea2587(_0x50d56d._0x56d263,_0x50d56d._0x5ba57a,0x199,_0x50d56d._0x44cc76)]}};const _0x1993ba=await _0x1f2643[_0x598d87(-_0x50d56d._0x2598b9,-0xa3,-0x4b,-_0x50d56d._0x4f7f83)]();return{'credential':{'kind':'session-token','value':_0x1993ba[_0x598d87(0x65,-_0x50d56d._0x2c197e,-0x5f,-_0x50d56d._0x50baf8)]??this[_0xea2587(_0x50d56d._0x38e34b,-_0x50d56d._0x14d032,-_0x50d56d._0x1b8701,-0xa2)]},'endpoints':{'api':_0x1993ba[_0x598d87(_0x50d56d._0x134968,-0x146,-_0x50d56d._0xad9a4,-0x64)]?.[_0xea2587(0x170,0xbe,0x1a0,0x4c)]??this[_0x598d87(-_0x50d56d._0x6c0c14,-0x15f,-0x156,-_0x50d56d._0xe5313e)],'originTracker':_0x1993ba[_0xea2587(0x113,0x10a,0x75,_0x50d56d._0xb57c68)]?.[_0x598d87(-_0x50d56d._0x39969b,-0x101,_0x50d56d._0x467ba7,-_0x50d56d._0x2cfaf0)],'proxy':_0x1993ba[_0xea2587(0x3f,_0x50d56d._0x252026,_0x50d56d._0x52408f,0x197)]?.[_0x598d87(-0xb2,-_0x50d56d._0x46f86f,-0x1f0,-0x11d)],'telemetry':_0x1993ba[_0xea2587(0xee,_0x50d56d._0x252026,0x61,0x13b)]?.['telemetry']}};}};function trimTrailingSlashes2(_0x202281){const _0x3f8480={_0x4d47a2:0x55f,_0x63b0e6:0x595},_0xf76894={_0x4399c0:0x17d};function _0x77f9cb(_0x4547b0,_0x3f0ae5,_0x3feaec,_0x3f1279){return _0x1818aa(_0x4547b0-_0xf76894._0x4399c0,_0x3f1279,_0x3feaec-0xba,_0x3feaec-0x404);}return _0x202281[_0x77f9cb(_0x3f8480._0x4d47a2,0x4b5,0x4b2,_0x3f8480._0x63b0e6)](/\/+$/,'');}function createModelInfo(_0x32ca3c){const _0x441d67={_0x113247:0x52,_0x38c711:0xe9,_0x274c4e:0x16f,_0x5d47af:0x6d,_0x33b746:0x99,_0x35ab05:0xfc,_0xd67328:0x94,_0x185182:0x1d,_0x8dd8ae:0xe8,_0x1347eb:0xb3,_0x4aede3:0xa9,_0x1781b3:0xe2},_0x20aa5a={_0x5dc187:0x107,_0x214903:0x570,_0x5cff9d:0xaf},_0x3d8963={_0x16cd32:0x183};function _0x2a1702(_0x682d84,_0xc87c32,_0x50c106,_0xd4744b){return _0x2d9e9f(_0x682d84-0x157,_0xd4744b,_0xc87c32- -0x3da,_0xd4744b-_0x3d8963._0x16cd32);}function _0x17c6a7(_0xb5c4b1,_0x26f6a8,_0x5a6356,_0x2e4162){return _0x2d9e9f(_0xb5c4b1-_0x20aa5a._0x5dc187,_0x2e4162,_0x5a6356- -_0x20aa5a._0x214903,_0x2e4162-_0x20aa5a._0x5cff9d);}const _0x3b9f39=_0x32ca3c[_0x17c6a7(-0x83,-_0x441d67._0x113247,-_0x441d67._0x38c711,-0x1d)]??_0x32ca3c[_0x2a1702(0xec,0xbd,0x29,_0x441d67._0x274c4e)],_0x137d80=_0x32ca3c[_0x2a1702(0x0,0xae,_0x441d67._0x5d47af,_0x441d67._0x33b746)]?.[_0x17c6a7(-0x17a,-0x1c4,-_0x441d67._0x35ab05,-_0x441d67._0xd67328)]?.['max_context_window_tokens'],_0x494010=_0x32ca3c[_0x17c6a7(-0x1c2,-_0x441d67._0x185182,-_0x441d67._0x8dd8ae,-0x122)]?.[_0x2a1702(0xe2,0x9a,_0x441d67._0x1347eb,-0x47)]?.['max_output_tokens'],_0x190deb=_0x137d80!==void 0x0||_0x494010!==void 0x0?{..._0x137d80!==void 0x0?{'contextWindow':_0x137d80}:{},..._0x494010!==void 0x0?{'maxOutput':_0x494010}:{}}:void 0x0;return{'id':_0x32ca3c['id'],'name':_0x32ca3c[_0x2a1702(-_0x441d67._0x4aede3,-0xa0,-0x187,-_0x441d67._0x1781b3)]??_0x32ca3c['id'],..._0x190deb?{'limits':_0x190deb}:{},..._0x3b9f39?{'supportedEndpoints':_0x3b9f39}:{}};}function deduplicateModels(_0x4e8df2){const _0xf2c153={_0x5f5d0d:0x5f,_0x1d0888:0x3e,_0x40d91d:0x78,_0xc15752:0x6a};function _0x3cad4a(_0x4c435c,_0x33a805,_0x1fc82e,_0x59ac10){return _0x2d9e9f(_0x4c435c-0x1d0,_0x33a805,_0x1fc82e- -0x147,_0x59ac10-0xd5);}const _0x39f346=new Map();function _0x45b884(_0x302f0a,_0x829ffa,_0x46d362,_0x2d1bd2){return _0x1818aa(_0x302f0a-0xa8,_0x829ffa,_0x46d362-0x160,_0x2d1bd2-0xd9);}for(const _0x2a45c4 of _0x4e8df2){!_0x39f346['has'](_0x2a45c4['id'])&&_0x39f346[_0x45b884(_0xf2c153._0x5f5d0d,0x4e,-_0xf2c153._0x1d0888,0x20)](_0x2a45c4['id'],_0x2a45c4);}return Array['from'](_0x39f346[_0x45b884(-0x5f,-_0xf2c153._0x40d91d,-0x65,_0xf2c153._0xc15752)]());}function hasUserPromptContent(_0x4cb7c8){const _0x598fed={_0x50fd67:0x185,_0x3461b6:0x2c9,_0x2b4cfb:0x29f,_0x3867d8:0x1ef,_0x5a9d34:0x34e,_0x226d7:0x46f,_0x5a8037:0x428},_0x4c1ef5={_0x297560:0x5dd,_0x1c317c:0x541,_0x59606c:0x44a,_0x3bacbb:0x428,_0x4174d1:0x4d4,_0x10ef38:0x600,_0x226428:0x69d,_0x264919:0x58b,_0x3cc0b1:0x525,_0x18ddea:0x48c,_0x34be69:0x67c,_0x2cc4d2:0x4b8,_0xf0b29:0x5b0},_0x36039c={_0xb75dbe:0x104,_0xd1f52d:0x132,_0x49d3b8:0x3bd},_0x2f778f={_0xb3362:0x1d,_0x598d35:0x1dd},_0x3ad738={_0x2dc44f:0x11e,_0x4aca53:0x1d7,_0xa66e02:0x452},_0x4180f7={_0x204629:0x196};function _0x4c47f0(_0x2cc3b8,_0xedbfa1,_0x5773aa,_0x15521c){return _0x2d9e9f(_0x2cc3b8-0x9b,_0x15521c,_0x5773aa- -0x269,_0x15521c-_0x4180f7._0x204629);}if(typeof _0x4cb7c8===_0x4c47f0(_0x598fed._0x50fd67,_0x598fed._0x3461b6,0x227,0x232))return _0x4cb7c8[_0x4c47f0(_0x598fed._0x2b4cfb,0x13b,_0x598fed._0x3867d8,0x105)]()[_0x4c47f0(0x1f4,0x278,0x18f,0x15d)]>0x0;if(!Array[_0x4db2bd(0x40c,0x2ff,0x2f5,0x37a)](_0x4cb7c8))return![];function _0x4db2bd(_0x5550a9,_0x5db00a,_0x386a35,_0x3b0b9c){return _0x1818aa(_0x5550a9-_0x3ad738._0x2dc44f,_0x386a35,_0x386a35-_0x3ad738._0x4aca53,_0x3b0b9c-_0x3ad738._0xa66e02);}return _0x4cb7c8[_0x4db2bd(_0x598fed._0x5a9d34,_0x598fed._0x226d7,0x423,_0x598fed._0x5a8037)](_0x3142ba=>{if(!_0x3142ba||typeof _0x3142ba!==_0x11213d(0x5e9,0x604,_0x4c1ef5._0x297560,0x547))return![];const _0xe77ed7=_0x3142ba;function _0x11213d(_0x5a1fba,_0x506d59,_0x3d2fab,_0x19d44b){return _0x4db2bd(_0x5a1fba-_0x2f778f._0xb3362,_0x506d59-_0x2f778f._0x598d35,_0x5a1fba,_0x19d44b-0x29);}function _0x3cdaa8(_0x24afb8,_0x25b4f1,_0x505126,_0x501633){return _0x4c47f0(_0x24afb8-_0x36039c._0xb75dbe,_0x25b4f1-_0x36039c._0xd1f52d,_0x505126-_0x36039c._0x49d3b8,_0x501633);}return(_0xe77ed7[_0x11213d(_0x4c1ef5._0x1c317c,0x5ac,_0x4c1ef5._0x59606c,0x517)]===_0x3cdaa8(0x526,_0x4c1ef5._0x3bacbb,_0x4c1ef5._0x4174d1,0x4e4)||_0xe77ed7[_0x3cdaa8(0x686,_0x4c1ef5._0x10ef38,0x5c3,_0x4c1ef5._0x226428)]==='text')&&typeof _0xe77ed7[_0x3cdaa8(_0x4c1ef5._0x264919,_0x4c1ef5._0x3cc0b1,0x53a,_0x4c1ef5._0x18ddea)]==='string'&&_0xe77ed7['text'][_0x3cdaa8(_0x4c1ef5._0x34be69,0x685,0x5ac,0x513)]()[_0x3cdaa8(_0x4c1ef5._0x2cc4d2,_0x4c1ef5._0xf0b29,0x54c,0x5db)]>0x0;});}function _isUserPromptEntry(_0x1c7201){const _0xb5f403={_0x3ce10f:0x59,_0x218917:0x9,_0x1c1c02:0x73,_0x396ec0:0x8,_0x40bcbe:0xe1,_0x1df667:0x68,_0x47364f:0x30,_0x19abe8:0xf5,_0x164341:0x166,_0xb82667:0x1ad,_0xb8dadb:0x138,_0x1657ca:0x165,_0x3c54ec:0xce,_0x19880d:0x2a};if(!_0x1c7201||typeof _0x1c7201!==_0x335f5c(0x7b,_0xb5f403._0x3ce10f,0x60,_0xb5f403._0x218917))return![];function _0x321b11(_0x17f696,_0x272bc4,_0x4d7291,_0x2890b4){return _0x2d9e9f(_0x17f696-0x26,_0x4d7291,_0x17f696- -0x564,_0x2890b4-0x1a1);}const _0x3750d9=_0x1c7201;function _0x335f5c(_0xcde3b6,_0x3b0ce0,_0x210021,_0x2aab54){return _0x2d9e9f(_0xcde3b6-0xdf,_0x2aab54,_0x210021- -0x43f,_0x2aab54-0x21);}if(_0x3750d9['role']!==_0x335f5c(_0xb5f403._0x1c1c02,-0xe2,-0x76,_0xb5f403._0x396ec0))return![];if(_0x3750d9[_0x335f5c(_0xb5f403._0x40bcbe,_0xb5f403._0x1df667,_0xb5f403._0x47364f,-0x36)]!==void 0x0&&_0x3750d9[_0x321b11(-_0xb5f403._0x19abe8,-_0xb5f403._0x164341,-0x126,-0xeb)]!==_0x335f5c(-_0xb5f403._0xb82667,-_0xb5f403._0xb8dadb,-_0xb5f403._0x1657ca,-_0xb5f403._0x3c54ec))return![];return hasUserPromptContent(_0x3750d9[_0x335f5c(-_0xb5f403._0x19880d,-0x99,-0x2e,-0x74)]);}function determineInitiator(_0x39d319){const _0x47078a={_0xd81b44:0x4b6,_0x1533a0:0x452,_0x280774:0x46d,_0x6fb6ea:0x296,_0x4d320a:0x2e1,_0x4b435d:0x45e,_0x5f3f81:0x595,_0x18f679:0x4a9,_0x4f0158:0x410,_0x572a04:0x5d6,_0x5807a1:0x570,_0x4aa157:0x4ed,_0x4bfee0:0x2ae,_0x54cd05:0x4a3,_0x1c06b6:0x478,_0x10aef2:0x44c,_0x28887e:0x486,_0x4f65f4:0x388,_0x508ee6:0x413,_0x4e651c:0x328},_0x250820={_0x52a359:0xc1},_0x5ee9ce={_0x15d277:0x45,_0x327aa1:0xed};function _0x36f1b6(_0x41b791,_0x2d3d7f,_0x55f5,_0xb8ed38){return _0x2d9e9f(_0x41b791-0x3e,_0x2d3d7f,_0xb8ed38-_0x5ee9ce._0x15d277,_0xb8ed38-_0x5ee9ce._0x327aa1);}function _0x342599(_0x472d9b,_0x342074,_0x5f4f4f,_0x53e295){return _0x2d9e9f(_0x472d9b-0xb0,_0x342074,_0x5f4f4f- -0x4d,_0x53e295-_0x250820._0x52a359);}if(!_0x39d319||typeof _0x39d319!==_0x342599(0x376,_0x47078a._0xd81b44,_0x47078a._0x1533a0,_0x47078a._0x280774))return _0x342599(0x1f9,0x1ec,_0x47078a._0x6fb6ea,_0x47078a._0x4d320a);const _0x8dde7c=_0x36f1b6(0x489,_0x47078a._0x4b435d,0x574,0x4e9)in _0x39d319?_0x39d319[_0x36f1b6(_0x47078a._0x5f3f81,0x4e0,_0x47078a._0x18f679,0x4e9)]:_0x36f1b6(0x516,_0x47078a._0x4f0158,0x514,0x4ed)in _0x39d319?_0x39d319[_0x36f1b6(0x4a2,_0x47078a._0x572a04,_0x47078a._0x5807a1,_0x47078a._0x4aa157)]:void 0x0;if(!Array[_0x342599(0x341,0x1e5,_0x47078a._0x4bfee0,0x2e6)](_0x8dde7c)||_0x8dde7c[_0x36f1b6(0x42d,_0x47078a._0x54cd05,_0x47078a._0x1c06b6,0x43d)]===0x0)return'agent';return _isUserPromptEntry(_0x8dde7c[_0x8dde7c[_0x36f1b6(_0x47078a._0x10aef2,_0x47078a._0x28887e,0x380,0x43d)]-0x1])?'user':_0x36f1b6(_0x47078a._0x4f65f4,0x248,_0x47078a._0x508ee6,_0x47078a._0x4e651c);}function isUnsupportedApiForModel(_0x6e5756){const _0x178857={_0x4019e2:0x251,_0x21050c:0x1f3},_0x27e1c0={_0x1ad88e:0x4b,_0x2d154f:0x18a};function _0xace596(_0x1cdccb,_0x29b916,_0x19371a,_0x3094aa){return _0x2d9e9f(_0x1cdccb-_0x27e1c0._0x1ad88e,_0x3094aa,_0x19371a- -0x288,_0x3094aa-_0x27e1c0._0x2d154f);}return _0x6e5756[_0xace596(_0x178857._0x4019e2,0x259,_0x178857._0x21050c,0x1c2)]('unsupported_api_for_model');}function createResponseError(_0x8e5f5d,_0x4faad4){const _0x380052={_0x42caec:0x8,_0x447d02:0x14,_0x11c0a0:0x38,_0xd95a2a:0xe2,_0x125451:0x136,_0x61dda7:0x129,_0x3e939d:0x18a,_0x219daa:0x21d,_0x39255c:0x26a,_0x3de3fc:0x1a1},_0x61c7bc={_0x27e6d3:0x5c7},_0x16f124={_0x1ec235:0xa2,_0x3ee298:0x2d};if(_0x8e5f5d===0x191||_0x8e5f5d===0x193)return new Error('Authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.');function _0x4a6800(_0x16d0ec,_0x4a74a3,_0x3e61a4,_0x504899){return _0x1818aa(_0x16d0ec-0x1bc,_0x504899,_0x3e61a4-_0x16f124._0x1ec235,_0x16d0ec- -_0x16f124._0x3ee298);}function _0x1ca354(_0x2f463f,_0x2baf07,_0x9b6313,_0x5cd337){return _0x2d9e9f(_0x2f463f-0x100,_0x2baf07,_0x5cd337- -_0x61c7bc._0x27e6d3,_0x5cd337-0x5b);}if(_0x8e5f5d===0x198||_0x8e5f5d===0x1ad)return new Error(_0x4a6800(_0x380052._0x42caec,_0x380052._0x447d02,-_0x380052._0x11c0a0,-_0x380052._0xd95a2a));if(_0x8e5f5d===0x190)return new Error(_0x1ca354(-0x1e3,-_0x380052._0x125451,-_0x380052._0x61dda7,-_0x380052._0x3e939d)+_0x4faad4);return new Error(_0x4faad4||_0x1ca354(-_0x380052._0x219daa,-_0x380052._0x39255c,-0x25e,-_0x380052._0x3de3fc)+_0x8e5f5d);}var GitHubModel=class extends OpenAiModel{[_0x1818aa(-0x1c6,-0x133,-0x5a,-0xf6)];[_0x1818aa(0x7a,0x153,0x9d,0x82)]=new Map();[_0x2d9e9f(0x4ed,0x52b,0x49b,0x522)];constructor(_0x34b696={}){const _0x473941={_0x240368:0x411,_0xfd45dc:0x334,_0x4a452b:0x3b1,_0x864f6c:0x43d,_0x503b03:0x402,_0x3e3b07:0x295,_0x3a7f67:0x249,_0x478254:0x111,_0x364739:0x28a,_0x3ffef6:0x2cc,_0x37b710:0x43a,_0x110901:0x2bd,_0x4e3e4d:0x2dc,_0x415eb8:0x38a,_0x1891cd:0x21e,_0x4323ca:0x243,_0x3642ed:0x457,_0x140a1b:0x342,_0x1d3581:0x387,_0x561879:0x2f5,_0x3ec1e2:0x2d3,_0x3bfabe:0x24c,_0x39ac3e:0x330,_0x4a7098:0x15b,_0x2d108e:0x2de,_0x22b0e7:0x388,_0x4a0d43:0x490,_0x1aad21:0x4f4,_0x38259f:0x2ac,_0x40fb2d:0x392,_0x10cdf8:0x376,_0x2bb9e4:0x171,_0x413953:0x2ee,_0x40b04c:0x304,_0x314a0b:0x235,_0x244e08:0x288,_0x4e81aa:0x1ba,_0x3fab24:0x1bf,_0x408d69:0x275},_0x223156={_0x5446da:0x34,_0x1741f6:0x34,_0x1a0021:0x2ca},_0x20cf49={_0x1f8e7d:0x19e,_0x3050bc:0xb},_0x34b4f9=trimTrailingSlashes2(_0x34b696[_0x407b7a(0x3ee,_0x473941._0x240368,_0x473941._0xfd45dc,_0x473941._0x4a452b)]??'https://api.individual.githubcopilot.com'),_0x5e1c62=_0x34b696[_0x407b7a(_0x473941._0x864f6c,_0x473941._0x503b03,0x4b7,0x375)]??globalThis['fetch'];function _0x407b7a(_0x5352d7,_0x12ed0b,_0x1903de,_0x1fcbfe){return _0x2d9e9f(_0x5352d7-_0x20cf49._0x1f8e7d,_0x12ed0b,_0x5352d7- -_0x20cf49._0x3050bc,_0x1fcbfe-0x19e);}const _0x2c976f=_0x34b696[_0x2b2b90(_0x473941._0x3e3b07,0x22d,_0x473941._0x3a7f67,0x19e)]??(_0x34b696[_0x2b2b90(0x19c,_0x473941._0x478254,0x1ce,_0x473941._0x364739)]?new GitHubAccessTokenResolver({'accessToken':_0x34b696[_0x407b7a(_0x473941._0x3ffef6,0x227,0x33e,0x332)],'baseUrl':_0x34b4f9,'fetch':_0x5e1c62,'githubApiUrl':_0x34b696['githubApiUrl']??_0x407b7a(0x35f,_0x473941._0x37b710,0x3a1,_0x473941._0x110901),'tokenExchangeApiVersion':_0x34b696[_0x2b2b90(_0x473941._0x4e3e4d,0x2d0,0x300,_0x473941._0x415eb8)]??_0x2b2b90(0x257,_0x473941._0x364739,0x1ea,0x242)}):void 0x0),_0x596e0a=_0x34b696[_0x2b2b90(0x2db,0x2bf,_0x473941._0x1891cd,_0x473941._0x4323ca)]??_0x2b2b90(_0x473941._0x3642ed,0x410,0x376,_0x473941._0x140a1b),_0x2c800e=_0x34b696[_0x2b2b90(_0x473941._0x1d3581,0x2a6,_0x473941._0x561879,0x376)]??_0x407b7a(_0x473941._0x3ec1e2,0x2b0,_0x473941._0x3bfabe,_0x473941._0x39ac3e),_0x4d5a2c=({body:_0x453f0a})=>{return{'editor-plugin-version':_0x2c800e,'editor-version':_0x596e0a,'x-initiator':determineInitiator(_0x453f0a),'x-request-id':randomUUID()};},_0x59d466={'apiKey':_0x34b696['apiKey'],'baseUrl':_0x34b4f9,'fetch':_0x5e1c62,'maxTokens':_0x34b696['maxTokens'],'model':_0x34b696['model'],'reasoning':_0x34b696[_0x2b2b90(0x1bb,_0x473941._0x4a7098,0x212,_0x473941._0x2d108e)],'providerSessionResolver':_0x2c976f,'requestMutators':_0x34b696[_0x407b7a(0x34b,0x353,0x374,_0x473941._0x22b0e7)],'headerResolver':_0x4d5a2c};super(_0x59d466);function _0x2b2b90(_0x141242,_0x4a5554,_0x27bb63,_0x5a9540){return _0x1818aa(_0x141242-_0x223156._0x5446da,_0x4a5554,_0x27bb63-_0x223156._0x1741f6,_0x27bb63-_0x223156._0x1a0021);}this[_0x407b7a(_0x473941._0x4a0d43,0x575,_0x473941._0x1aad21,0x51b)]=_0x34b696[_0x2b2b90(0x3cb,_0x473941._0x38259f,_0x473941._0x40fb2d,_0x473941._0x10cdf8)]??'auto',this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x34b696['apiKey'],'authScheme':_0x2b2b90(_0x473941._0x2bb9e4,0x28c,0x248,0x2d0),'baseUrl':_0x34b4f9,'fetch':_0x5e1c62,'headerResolver':_0x4d5a2c,'maxTokens':_0x34b696[_0x407b7a(_0x473941._0x413953,0x225,_0x473941._0x2d108e,0x250)],'model':_0x34b696[_0x407b7a(_0x473941._0x40b04c,_0x473941._0x314a0b,_0x473941._0x244e08,0x23f)],'reasoning':_0x34b696[_0x2b2b90(_0x473941._0x4e81aa,_0x473941._0x3fab24,0x212,_0x473941._0x408d69)],'providerSessionResolver':_0x2c976f,'requestMutators':_0x34b696['requestMutators']});}[_0x2d9e9f(0x392,0x403,0x401,0x46e)](){const _0x3462ff={_0x37a3a0:0x12f,_0x50ddac:0xdf},_0x2aa49b={_0xf0cfef:0x78,_0xe056e3:0x197};function _0x5a3fee(_0x4c3fcf,_0x572214,_0x13104d,_0x3c3315){return _0x1818aa(_0x4c3fcf-_0x2aa49b._0xf0cfef,_0x4c3fcf,_0x13104d-_0x2aa49b._0xe056e3,_0x3c3315-0x1cd);}return new Error(_0x5a3fee(_0x3462ff._0x37a3a0,0x48,0x74,_0x3462ff._0x50ddac));}[_0x1818aa(0x5c,-0x7,-0x26,-0x41)](_0x312742){const _0x46ca1e={_0x2b2f30:0x172,_0x1370fc:0x22d,_0x4d562b:0x217,_0x173e37:0x280,_0x236804:0x74,_0x1a7492:0x245,_0x1b9879:0x146,_0x574842:0x1cc},_0x416a3e={_0x217b7b:0x152,_0x20f2e7:0x4f1,_0x3f5b94:0xff},_0x17f72e={_0x30e843:0x1b3},_0x370c89=this['modelEndpointCache'][_0x3618dd(0x1de,_0x46ca1e._0x2b2f30,_0x46ca1e._0x1370fc,0xdd)](_0x312742);if(!_0x370c89)return![];function _0x3618dd(_0x1b9404,_0x497fca,_0x40a883,_0x3e17bd){return _0x2d9e9f(_0x1b9404-0x67,_0x40a883,_0x497fca- -0x264,_0x3e17bd-_0x17f72e._0x30e843);}function _0x1c59d4(_0x413014,_0x190865,_0x39d902,_0x1aca9c){return _0x2d9e9f(_0x413014-_0x416a3e._0x217b7b,_0x1aca9c,_0x413014- -_0x416a3e._0x20f2e7,_0x1aca9c-_0x416a3e._0x3f5b94);}return!_0x370c89[_0x3618dd(0x1c6,_0x46ca1e._0x4d562b,0x13d,_0x46ca1e._0x173e37)](_0x1c59d4(-0xa7,-0x12b,-0xe0,-_0x46ca1e._0x236804))&&_0x370c89[_0x3618dd(_0x46ca1e._0x1a7492,_0x46ca1e._0x4d562b,_0x46ca1e._0x1b9879,_0x46ca1e._0x574842)]('/responses');}['shouldPreferResponsesApi'](_0x362e0a){const _0x314df1={_0x4e7329:0x320,_0x43f2a7:0x3d9,_0x38c7f2:0x3bb,_0x23a0f1:0x193,_0x3085f3:0x160,_0x212aaa:0x18c,_0x1f7b35:0x1d3,_0x1d75e3:0x50a,_0x39ee56:0x340,_0x47b186:0x3b7,_0x3f9ee6:0x395,_0x37acf6:0x3dc,_0xf2f972:0x256},_0x1a55a6={_0x5df686:0x3,_0x4b8155:0x184},_0x5b8ca5={_0x3d1e07:0x6c};function _0x2dbeeb(_0x86bfe2,_0x1dd764,_0x2bda9b,_0x33f1d0){return _0x2d9e9f(_0x86bfe2-0x67,_0x2bda9b,_0x1dd764- -0x47b,_0x33f1d0-_0x5b8ca5._0x3d1e07);}function _0x2bd49c(_0x430cf3,_0x29be70,_0x5759d5,_0x2c171c){return _0x2d9e9f(_0x430cf3-0x10f,_0x5759d5,_0x29be70-_0x1a55a6._0x5df686,_0x2c171c-_0x1a55a6._0x4b8155);}const _0x4f4957=this['modelEndpointCache'][_0x2bd49c(_0x314df1._0x4e7329,_0x314df1._0x43f2a7,_0x314df1._0x38c7f2,0x42e)](_0x362e0a['model']);if(!_0x4f4957)return![];if(resolveOpenAiReasoningConfig(_0x362e0a[_0x2dbeeb(-_0x314df1._0x23a0f1,-_0x314df1._0x3085f3,-_0x314df1._0x212aaa,-_0x314df1._0x1f7b35)]))return _0x4f4957[_0x2bd49c(0x4d0,0x47e,_0x314df1._0x1d75e3,0x43e)](_0x2bd49c(0x2d3,_0x314df1._0x39ee56,0x25d,0x3aa));return this[_0x2bd49c(_0x314df1._0x47b186,_0x314df1._0x3f9ee6,_0x314df1._0x37acf6,0x3fe)](_0x362e0a[_0x2bd49c(_0x314df1._0xf2f972,0x312,0x301,0x23c)]);}[_0x1818aa(-0x93,-0xd1,-0xb8,-0xe9)](_0x43e534){const _0x290217={_0x20e7a0:0xfd,_0x276ae4:0x18b,_0x24a49a:0x1ba,_0x113f0f:0x10a,_0x3f0168:0x42},_0x231150={_0x12e341:0x169,_0x30260f:0x165,_0x483e5e:0x74},_0x40a3ea={_0x36de17:0x15c,_0x367ef6:0x10};function _0x5f299b(_0x576867,_0x3a5a84,_0x13f18f,_0x254e3e){return _0x2d9e9f(_0x576867-_0x40a3ea._0x36de17,_0x13f18f,_0x254e3e- -0x5e0,_0x254e3e-_0x40a3ea._0x367ef6);}function _0x582854(_0x32080a,_0x2dc3dd,_0x14027e,_0x199535){return _0x1818aa(_0x32080a-_0x231150._0x12e341,_0x2dc3dd,_0x14027e-_0x231150._0x30260f,_0x14027e- -_0x231150._0x483e5e);}this[_0x5f299b(-0x201,-_0x290217._0x20e7a0,-0x198,-_0x290217._0x276ae4)][_0x582854(-0xc4,-0x101,-0x12d,-_0x290217._0x24a49a)](_0x43e534,[_0x582854(-0x178,-0x53,-_0x290217._0x113f0f,-_0x290217._0x3f0168)]);}[_0x1818aa(-0xb7,0x5a,-0x17,-0x58)](_0x247926){const _0x18eab1={_0xb8ff11:0x177,_0x1fd27f:0x15a,_0x2ed6f1:0x177},_0x4547e6={_0x1522f2:0x4a0},_0x3dbf0e={_0x2db033:0x1e7,_0x640387:0x170};function _0x83d970(_0x3583c6,_0x937895,_0xda6f3c,_0x129354){return _0x1818aa(_0x3583c6-0x161,_0xda6f3c,_0xda6f3c-_0x3dbf0e._0x2db033,_0x129354-_0x3dbf0e._0x640387);}if(_0x247926 instanceof OpenAiApiError)return createResponseError(_0x247926['status'],_0x247926[_0x83d970(0x28c,0x269,_0x18eab1._0xb8ff11,0x1af)]||_0x247926[_0x48829d(-0xee,-_0x18eab1._0x1fd27f,-0x1c6,-_0x18eab1._0x2ed6f1)]);function _0x48829d(_0x567186,_0x4b9883,_0x5cc92a,_0x5cb4ab){return _0x2d9e9f(_0x567186-0x1f,_0x5cb4ab,_0x5cc92a- -_0x4547e6._0x1522f2,_0x5cb4ab-0x7);}return _0x247926;}['completeViaConfiguredSurface'](_0x4a892b,_0x53c18e){const _0x246ccc={_0x60f94d:0x633,_0x380abc:0x6e1,_0x3a025c:0x37e,_0x448780:0x3dc,_0x12cb6d:0x308,_0x5484b9:0x338,_0x1b902e:0x419,_0x5078cb:0x174,_0x5ca804:0x4fb,_0x5e6afd:0x49d,_0xdb6d4:0x4c6,_0x55bfc1:0x4d0,_0x2c25e1:0x4a0,_0xed560c:0x5e1,_0x44ae66:0x51e,_0x5f910a:0x36d,_0x34f0dd:0x44a},_0x5bc4a5={_0x4ec5e5:0x16c,_0x1a5741:0x198,_0x52b97a:0x179},_0x9ea4ce={_0x40ec41:0x31,_0x591364:0x50};function _0x1cd155(_0x560ae1,_0x19620a,_0x3db083,_0x412555){return _0x1818aa(_0x560ae1-_0x9ea4ce._0x40ec41,_0x3db083,_0x3db083-_0x9ea4ce._0x591364,_0x560ae1-0x2a5);}function _0x1ce7ee(_0x2ec388,_0x1beb58,_0x2a991a,_0xa846c3){return _0x2d9e9f(_0x2ec388-_0x5bc4a5._0x4ec5e5,_0x1beb58,_0x2ec388-_0x5bc4a5._0x1a5741,_0xa846c3-_0x5bc4a5._0x52b97a);}switch(this[_0x1ce7ee(_0x246ccc._0x60f94d,_0x246ccc._0x380abc,0x5b2,0x6b5)]){case _0x1cd155(_0x246ccc._0x3a025c,0x41d,0x453,0x415):return this['anthropicDelegate'][_0x1cd155(0x31b,0x403,0x404,_0x246ccc._0x448780)](_0x4a892b,_0x53c18e);case'openai-chat-completions':return this[_0x1cd155(_0x246ccc._0x12cb6d,0x37d,0x25b,0x256)](_0x4a892b,_0x53c18e);case _0x1cd155(_0x246ccc._0x5484b9,0x2e2,0x345,_0x246ccc._0x1b902e):return this['response'](_0x4a892b,_0x53c18e);case _0x1cd155(0x1c6,_0x246ccc._0x5078cb,0x1c8,0xef):return this[_0x1ce7ee(_0x246ccc._0x5ca804,_0x246ccc._0x5e6afd,0x45a,0x5d5)](_0x4a892b,_0x53c18e);case _0x1ce7ee(_0x246ccc._0xdb6d4,0x588,_0x246ccc._0x55bfc1,_0x246ccc._0x2c25e1):return this[_0x1ce7ee(_0x246ccc._0xed560c,0x65b,0x56b,_0x246ccc._0x44ae66)](_0x4a892b,_0x53c18e);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x1cd155(_0x246ccc._0x5f910a,_0x246ccc._0x34f0dd,0x3bd,0x443)]));}[_0x1818aa(-0x31,0xa7,-0x125,-0x44)](_0x22ab9b,_0x5d5391){const _0x45e906={_0x995ace:0xe8,_0x41bfa9:0x1b,_0x3fbd1d:0xb1,_0x15d850:0xff,_0x528c7d:0x20,_0x2ceec5:0x136,_0x5934fe:0x1a3,_0xda1e00:0x248,_0x12ac20:0x145,_0x33696b:0x1e0,_0x1df34d:0xb8,_0x389405:0xa4,_0x4b1085:0x32,_0x55ea22:0x42,_0x3570ee:0x5df,_0x315ef8:0x3fd,_0x50f5a4:0x4c9,_0x116a23:0x478,_0x5addc4:0x598,_0x2d9631:0x590,_0x2d04fe:0x56f,_0x165546:0x554,_0x28f70b:0x4fc,_0x27d5fe:0x5b6},_0x5d6ebb={_0x220bcb:0x1cf},_0x3414de={_0xad681f:0x6c};function _0x27afb7(_0x501de0,_0x3293fc,_0x121535,_0x1f1054){return _0x2d9e9f(_0x501de0-_0x3414de._0xad681f,_0x121535,_0x501de0-0xd4,_0x1f1054-0x1e8);}function _0x49478d(_0x48db71,_0x2167cb,_0x5e4ddc,_0x6da62a){return _0x1818aa(_0x48db71-0x30,_0x6da62a,_0x5e4ddc-_0x5d6ebb._0x220bcb,_0x2167cb-0x111);}switch(this['surface']){case'anthropic-messages':return this[_0x49478d(_0x45e906._0x995ace,_0x45e906._0x41bfa9,_0x45e906._0x3fbd1d,_0x45e906._0x15d850)]['stream'](_0x22ab9b,_0x5d5391);case _0x49478d(0x5c,0x95,0x156,_0x45e906._0x528c7d):return this[_0x49478d(_0x45e906._0x2ceec5,0x1b4,_0x45e906._0x5934fe,_0x45e906._0xda1e00)](_0x22ab9b,_0x5d5391);case _0x49478d(_0x45e906._0x12ac20,0x1a4,0x169,_0x45e906._0x33696b):return this[_0x49478d(0x1,_0x45e906._0x1df34d,_0x45e906._0x389405,0x193)](_0x22ab9b,_0x5d5391);case _0x49478d(-0x6,_0x45e906._0x4b1085,0x6,-_0x45e906._0x55ea22):return this[_0x27afb7(0x530,_0x45e906._0x3570ee,0x4ad,0x5ff)](_0x22ab9b,_0x5d5391);case'auto':return this[_0x27afb7(_0x45e906._0x315ef8,0x4d8,0x330,0x441)](_0x22ab9b,_0x5d5391);}throw new Error(_0x27afb7(_0x45e906._0x50f5a4,_0x45e906._0x116a23,_0x45e906._0x5addc4,_0x45e906._0x2d9631)+String(this[_0x27afb7(_0x45e906._0x2d04fe,_0x45e906._0x165546,_0x45e906._0x28f70b,_0x45e906._0x27d5fe)]));}async['complete'](_0x55b64f,_0x272edd){const _0xc4121b={_0x13ae49:0x5ae,_0x326913:0x4f1,_0xafe1a3:0x4ce,_0x221657:0x4d3,_0x5003f2:0x416,_0x5113b8:0x584,_0x1778ad:0x597,_0x1a6316:0x642,_0xc952f1:0x499,_0x2116f5:0x355,_0x31297c:0x320,_0x128906:0x51c,_0x1df969:0x53f},_0x359627={_0x28d34e:0xb1},_0x768765={_0x376d89:0x47,_0x4173cd:0x4f4};function _0x524a2a(_0x2ae056,_0x59f41f,_0x167dca,_0x5022f8){return _0x1818aa(_0x2ae056-_0x768765._0x376d89,_0x59f41f,_0x167dca-0x79,_0x2ae056-_0x768765._0x4173cd);}const _0x1e5297=this[_0x1145f0(0x59c,_0xc4121b._0x13ae49,_0xc4121b._0x326913,_0xc4121b._0xafe1a3)](_0x55b64f);if(this[_0x524a2a(0x5bc,0x5b3,0x601,_0xc4121b._0x221657)]!=='auto')return this[_0x524a2a(_0xc4121b._0x5003f2,0x35f,0x367,0x426)](_0x1e5297,_0x272edd);function _0x1145f0(_0x52a5e4,_0x38677c,_0x444092,_0x3457f2){return _0x1818aa(_0x52a5e4-_0x359627._0x28d34e,_0x52a5e4,_0x444092-0x119,_0x3457f2-0x597);}if(this[_0x524a2a(_0xc4121b._0x5113b8,0x640,_0xc4121b._0x1778ad,0x615)](_0x1e5297))return this[_0x1145f0(0x58f,0x6f3,0x5e2,_0xc4121b._0x1a6316)](_0x1e5297,_0x272edd);try{return await this['completeViaChatCompletionsSurface'](_0x1e5297,_0x272edd);}catch(_0x341c91){if(_0x341c91 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x341c91['body']))return this[_0x524a2a(0x40b,_0xc4121b._0xc952f1,_0xc4121b._0x2116f5,_0xc4121b._0x31297c)](_0x1e5297['model']),this['response'](_0x1e5297,_0x272edd);throw this[_0x1145f0(_0xc4121b._0x128906,0x4d5,0x5ba,_0xc4121b._0x1df969)](_0x341c91);}throw _0x341c91;}}async*[_0x1818aa(-0x19,-0x160,-0x148,-0xaa)](_0xc2519b,_0x45a97c){const _0x3111ae={_0xb856f0:0x144,_0x50e7c4:0xfe,_0x5ee694:0x185,_0x1a1f0a:0x119,_0x29eb19:0x29d,_0x44f1f2:0x26c,_0x21b7f3:0x2c7,_0x40adc9:0x122,_0x4a7fa6:0x1b2,_0x58a17b:0x142,_0x28b672:0x2c2,_0x12b04f:0x243,_0x25f029:0x2f2,_0x552439:0x19c,_0xd50044:0x1f4,_0x519509:0x10c,_0x34e3e9:0x1a6},_0x7eac02={_0x2155a2:0x161,_0x2fc59a:0x275},_0x3f6c11={_0x351528:0x68,_0x32c52a:0x20d},_0x1f867a=this[_0x561027(_0x3111ae._0xb856f0,_0x3111ae._0x50e7c4,_0x3111ae._0x5ee694,_0x3111ae._0x1a1f0a)](_0xc2519b);function _0x561027(_0x4f9c11,_0x5eca81,_0x4d622a,_0x3f13b6){return _0x1818aa(_0x4f9c11-_0x3f6c11._0x351528,_0x4d622a,_0x4d622a-0x60,_0x4f9c11-_0x3f6c11._0x32c52a);}if(this['surface']!=='auto'){yield*this['streamViaConfiguredSurface'](_0x1f867a,_0x45a97c);return;}function _0x127e20(_0x2adfd1,_0x1d1458,_0x592534,_0x33a3b1){return _0x1818aa(_0x2adfd1-0x19c,_0x2adfd1,_0x592534-_0x7eac02._0x2155a2,_0x33a3b1-_0x7eac02._0x2fc59a);}if(this[_0x561027(_0x3111ae._0x29eb19,_0x3111ae._0x44f1f2,_0x3111ae._0x21b7f3,0x233)](_0x1f867a)){yield*this[_0x561027(0x1b4,_0x3111ae._0x40adc9,_0x3111ae._0x4a7fa6,0x21e)](_0x1f867a,_0x45a97c);return;}try{yield*this[_0x561027(_0x3111ae._0x58a17b,0x55,0x1da,0x115)](_0x1f867a,_0x45a97c);}catch(_0x5a2d67){if(_0x5a2d67 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x5a2d67[_0x127e20(_0x3111ae._0x28b672,_0x3111ae._0x12b04f,_0x3111ae._0x25f029,0x2b4)])){this[_0x561027(0x124,0x45,0x1fd,0x12b)](_0x1f867a[_0x561027(0x149,_0x3111ae._0x552439,_0x3111ae._0xd50044,_0x3111ae._0x519509)]),yield*this['responseStream'](_0x1f867a,_0x45a97c);return;}throw this[_0x561027(0x1b5,_0x3111ae._0x34e3e9,0x270,0xd6)](_0x5a2d67);}throw _0x5a2d67;}}async[_0x1818aa(0x82,0xa0,0xf2,0x3a)](_0x3504c4){const _0x2d782d={_0xe1e7ba:0x203,_0x167e56:0x210,_0x10045a:0x1f0,_0x5e276f:0x2df,_0x4650e0:0x1fd,_0x4e007a:0x3a2,_0x521cec:0x17a,_0x23135b:0xdb,_0x9853e9:0x1f0,_0xc55798:0x18b,_0x5c7da8:0x157,_0x58879f:0xfe,_0x4a7853:0x6a,_0x41dd84:0x72,_0x239b1b:0x9c},_0x1bd300={_0x2c30f1:0x6a,_0x3578d2:0x394,_0x35bcab:0x392,_0x1cea93:0x404,_0x3f9159:0x3b2,_0x1c77e0:0x3a8},_0x1b3802={_0x4f17cf:0x1c2,_0x41a2ad:0x1e1},_0x1f671b={_0x43bd8e:0xd3,_0x1b840c:0x162},_0x489059=await this[_0x284630(0x2a5,_0x2d782d._0xe1e7ba,0x200,_0x2d782d._0x167e56)]({'path':_0x284630(0x26c,_0x2d782d._0x10045a,_0x2d782d._0x5e276f,_0x2d782d._0x4650e0),'method':_0x284630(0x2be,_0x2d782d._0x4e007a,0x20c,0x258),'signal':_0x3504c4});function _0xd417a5(_0x4e2046,_0x5c3d7f,_0x42d459,_0x2bbe60){return _0x2d9e9f(_0x4e2046-_0x1f671b._0x43bd8e,_0x2bbe60,_0x42d459- -0x2ea,_0x2bbe60-_0x1f671b._0x1b840c);}if(!_0x489059['ok'])throw this[_0x284630(0x1b9,_0x2d782d._0x521cec,_0x2d782d._0x23135b,0xd8)](await this[_0xd417a5(_0x2d782d._0x9853e9,_0x2d782d._0xc55798,0x19f,0x234)](_0x489059));const _0x30b77e=await _0x489059[_0xd417a5(_0x2d782d._0x5c7da8,_0x2d782d._0x58879f,_0x2d782d._0x4a7853,_0x2d782d._0x41dd84)]();function _0x284630(_0x521a2b,_0x586dec,_0x32d392,_0x4c228d){return _0x2d9e9f(_0x521a2b-0x120,_0x586dec,_0x521a2b- -_0x1b3802._0x4f17cf,_0x4c228d-_0x1b3802._0x41a2ad);}const _0x412a66=(_0x30b77e[_0x284630(0x1f3,0x182,0x11e,0x174)]??[])[_0x284630(0x13e,_0x2d782d._0x239b1b,0x191,0x179)](_0x515e40=>{const _0x402e70={_0xc0724c:0x6d},_0x5702ca=createModelInfo(_0x515e40);_0x5702ca[_0x5ec37d(-_0x1bd300._0x2c30f1,0x81,0x54,-0x7f)]&&this[_0x239a1f(_0x1bd300._0x3578d2,0x457,_0x1bd300._0x35bcab,_0x1bd300._0x1cea93)]['set'](_0x5702ca['id'],_0x5702ca[_0x239a1f(0x2bd,_0x1bd300._0x3f9159,_0x1bd300._0x1c77e0,0x345)]);function _0x5ec37d(_0x2c1aeb,_0x20292b,_0x38e28b,_0x2e6575){return _0x284630(_0x38e28b- -0x255,_0x2c1aeb,_0x38e28b-0x110,_0x2e6575-0x1d8);}function _0x239a1f(_0x36379f,_0x55262a,_0x53bcc6,_0x5678c){return _0xd417a5(_0x36379f-0x1dc,_0x55262a-_0x402e70._0xc0724c,_0x53bcc6-0x227,_0x55262a);}return _0x5702ca;});return deduplicateModels(_0x412a66);}};function createHeaders(_0x2d302c){const _0x130a59={_0xcd7c0b:0x20a,_0x2961ec:0x1ec,_0x32a1ff:0x1a0,_0x1a4b84:0xdb},_0x1a31c5={_0x168538:0xe2,_0x21ed5d:0x454},_0x5b1f33=new Headers();function _0x286d1f(_0x504c6b,_0x3b13cf,_0x569690,_0x4e3e7f){return _0x2d9e9f(_0x504c6b-_0x1a31c5._0x168538,_0x504c6b,_0x4e3e7f- -_0x1a31c5._0x21ed5d,_0x4e3e7f-0x10f);}function _0x294899(_0x50dc2b,_0x24b6cc,_0x12e7f0,_0x2eb3fa){return _0x1818aa(_0x50dc2b-0xce,_0x2eb3fa,_0x12e7f0-0xa8,_0x24b6cc- -0x1f4);}for(const [_0x162605,_0x3bd598]of Object[_0x294899(-_0x130a59._0xcd7c0b,-_0x130a59._0x2961ec,-0x18a,-0x131)](_0x2d302c)){_0x5b1f33[_0x286d1f(-0x14b,-_0x130a59._0x32a1ff,-_0x130a59._0x1a4b84,-0x13a)](_0x162605,_0x3bd598);}return _0x5b1f33;}async function fetchRawResponse(_0x5779b3){const _0x1190f5={_0xa4f658:0x252,_0x121ab5:0x385,_0x30a5f5:0x3aa,_0x55f63f:0x321,_0x4f0a23:0x37f,_0x678395:0x379,_0x208f9c:0x37c,_0x2625f0:0x2a3,_0x23d7d7:0x292,_0x227e36:0x2f0,_0x27f55c:0x297,_0x1159d6:0x303,_0x39470a:0x1e8,_0xf3f0e7:0x29f,_0x2bb7ae:0x282},_0x35b3e7={_0x220140:0x1c1,_0x3ca06d:0x2c4},_0x5ed24a={_0x2bba4c:0x12e},_0x1520c2=_0x5779b3[_0x7ce4fa(_0x1190f5._0xa4f658,0x376,_0x1190f5._0x121ab5,0x339)]??globalThis[_0x7ce4fa(0x260,_0x1190f5._0x30a5f5,_0x1190f5._0x55f63f,0x339)];function _0x34a756(_0x84869e,_0x1b0128,_0x19f6db,_0xce3b8e){return _0x1818aa(_0x84869e-_0x5ed24a._0x2bba4c,_0x84869e,_0x19f6db-0xde,_0x1b0128-0x2b9);}function _0x7ce4fa(_0x1cfbf2,_0xd8fa2c,_0x371243,_0x427275){return _0x1818aa(_0x1cfbf2-_0x35b3e7._0x220140,_0x1cfbf2,_0x371243-0xb8,_0x427275-_0x35b3e7._0x3ca06d);}return _0x1520c2(_0x5779b3['url'],{'method':_0x7ce4fa(0x2da,_0x1190f5._0x4f0a23,_0x1190f5._0x678395,_0x1190f5._0x208f9c),'headers':createHeaders(_0x5779b3['headers']),'body':JSON[_0x7ce4fa(0x2f9,_0x1190f5._0x2625f0,0x345,_0x1190f5._0x23d7d7)](_0x5779b3[_0x7ce4fa(0x348,_0x1190f5._0x227e36,_0x1190f5._0x27f55c,_0x1190f5._0x1159d6)]),'signal':_0x5779b3[_0x34a756(_0x1190f5._0x39470a,_0x1190f5._0xf3f0e7,0x1c7,_0x1190f5._0x2bb7ae)]});}async function fetchJsonResponse(_0x2911f0){const _0x2f5313={_0x284f5c:0x462,_0x2f04df:0x102,_0x15f1dd:0x10c,_0x2d14dc:0x1d6,_0x134072:0x294,_0x509d55:0x451,_0x645325:0x55d,_0xe29e44:0x522,_0x1c9fb5:0x56f,_0x5bc30b:0x4a5,_0x556744:0x51e,_0x24185a:0x1a},_0x3cec21={_0x5804d1:0x146},_0x3b5b74={_0x30c0b8:0xdf};function _0x46a40e(_0xa85de4,_0xc813d7,_0x3b22b3,_0x4eb0d4){return _0x2d9e9f(_0xa85de4-_0x3b5b74._0x30c0b8,_0x4eb0d4,_0x3b22b3- -0x2d3,_0x4eb0d4-0xa7);}function _0x4661a1(_0x28b9ab,_0x5db89f,_0xf6d688,_0x2fd8c0){return _0x2d9e9f(_0x28b9ab-0x118,_0x28b9ab,_0xf6d688-0xf5,_0x2fd8c0-_0x3cec21._0x5804d1);}const _0x402f06=await fetchRawResponse(_0x2911f0);if(!_0x402f06['ok']){const _0x1052d1=await _0x402f06[_0x4661a1(0x59c,0x59b,0x4db,_0x2f5313._0x284f5c)](),_0x214834=_0x1052d1[_0x46a40e(0x172,0x149,0x185,_0x2f5313._0x2f04df)]()||_0x402f06[_0x46a40e(0x243,_0x2f5313._0x15f1dd,_0x2f5313._0x2d14dc,_0x2f5313._0x134072)]||_0x4661a1(0x440,0x49b,0x511,_0x2f5313._0x509d55);throw new Error(_0x4661a1(0x52d,_0x2f5313._0x645325,_0x2f5313._0xe29e44,_0x2f5313._0x1c9fb5)+_0x402f06[_0x4661a1(_0x2f5313._0x5bc30b,_0x2f5313._0x556744,0x53c,0x553)]+':\x20'+_0x214834);}return await _0x402f06[_0x46a40e(-_0x2f5313._0x24185a,0x15a,0x81,0x4e)]();}function findLastMessage(_0x1f5890,_0x3d44f7){const _0x53bea5={_0x5e5aab:0x299,_0xd2b4f5:0x344},_0x1aa887={_0x5122d2:0x2c8};function _0x3e386b(_0x3cc796,_0x22eefb,_0x71af41,_0x265d37){return _0x1818aa(_0x3cc796-0x1c9,_0x265d37,_0x71af41-0xc0,_0x3cc796-_0x1aa887._0x5122d2);}for(let _0x3d2204=_0x1f5890['length']-0x1;_0x3d2204>=0x0;_0x3d2204-=0x1){if(_0x1f5890[_0x3d2204][_0x3e386b(0x28f,0x28c,_0x53bea5._0x5e5aab,_0x53bea5._0xd2b4f5)]===_0x3d44f7)return _0x1f5890[_0x3d2204];}return void 0x0;}function hasTool(_0x44458f,_0x4114c0){const _0x2e4a4e={_0x2fdea1:0x282},_0x31c6a1={_0x372b55:0xad};function _0x1acd2d(_0x1c07f4,_0x547c9c,_0x116c40,_0x5bd482){return _0x1818aa(_0x1c07f4-_0x31c6a1._0x372b55,_0x1c07f4,_0x116c40-0x11c,_0x547c9c-0x362);}return _0x44458f[_0x1acd2d(0x28c,0x32f,_0x2e4a4e._0x2fdea1,0x2ad)]['some'](_0x4301dc=>_0x4301dc['name']===_0x4114c0);}function createMockResponse(_0x52dc49,_0x248812,_0x556bd7,_0x1d1d5b){return{'id':_0x52dc49,'content':_0x248812,'stopReason':_0x556bd7,'usage':_0x1d1d5b};}var MockModel=class{[_0x2d9e9f(0x35d,0x3eb,0x30f,0x371)];['maxTokens'];[_0x2d9e9f(0x3be,0x3b5,0x391,0x386)]=[];[_0x2d9e9f(0x346,0x33f,0x31b,0x3d9)];constructor(_0x33b324={}){const _0x29a483={_0x4b78bc:0x26f,_0x1b1d23:0x34f,_0x2ff999:0x1af,_0x2c1118:0x2b3,_0x36e0b4:0x1a0,_0x571c2f:0x1f2,_0x5c2e2e:0x285,_0x289b6e:0x336,_0x1cb8e4:0x347,_0x4c5ac0:0x350,_0x44c0f8:0x203},_0x49b47c={_0xf4d819:0x3eb};this[_0x320da3(-0x30b,-_0x29a483._0x4b78bc,-_0x29a483._0x1b1d23,-_0x29a483._0x2ff999)]=_0x33b324[_0x320da3(-0x34e,-0x26f,-_0x29a483._0x2c1118,-_0x29a483._0x36e0b4)]??'mock',this['maxTokens']=_0x33b324[_0x320da3(-_0x29a483._0x571c2f,-_0x29a483._0x5c2e2e,-0x1b4,-0x1ff)]??getDefaultMaxTokens();function _0x320da3(_0x3f0223,_0x554e0,_0x28c9dc,_0x53175e){return _0x1818aa(_0x3f0223-0x1ba,_0x53175e,_0x28c9dc-0xae,_0x554e0- -0x1ab);}function _0x5b57e6(_0x41fbdf,_0x6a3b04,_0x392568,_0x1a8950){return _0x1818aa(_0x41fbdf-0x87,_0x41fbdf,_0x392568-0x3f,_0x392568-_0x49b47c._0xf4d819);}this[_0x320da3(-0x304,-0x263,-0x2aa,-0x1cb)]=_0x33b324[_0x5b57e6(_0x29a483._0x289b6e,_0x29a483._0x1cb8e4,0x333,0x24f)]?structuredClone(_0x33b324[_0x320da3(-_0x29a483._0x4c5ac0,-0x263,-_0x29a483._0x44c0f8,-0x2b2)]):void 0x0;}async[_0x2d9e9f(0x48b,0x470,0x449,0x49b)](_0x9440cf,_0x501c1c){const _0xc6d636={_0x38c457:0x215,_0x1cadb2:0x252,_0x4d110d:0x2c8,_0x3522b4:0x2b0,_0x76353b:0x182,_0x5edfe4:0x1ca,_0x337a31:0x198,_0x3f2386:0x195,_0x433bad:0x154,_0x393fc7:0x98,_0x174f77:0x6e,_0x1db747:0x53,_0xd2b496:0x39e,_0x4370af:0x42d,_0x37ed15:0x150,_0x3e2081:0x161,_0x2400d0:0xae,_0x2fe214:0x5f,_0x3e154f:0x0,_0x597a38:0x138,_0x157d44:0x87,_0x5ce48d:0xe2,_0x9b5a7a:0x238,_0x2b8c28:0x2e0,_0x43efea:0x351,_0x57433d:0x30b,_0x3eeb65:0x30c,_0x28b010:0x28e,_0x40942d:0x3bc,_0x37f5db:0x350,_0x4dea19:0x3a7,_0x1d94a6:0x290,_0x516f6e:0x267,_0x64c077:0x2e5,_0x25e6de:0x2c1,_0x4ff612:0x200,_0x5ae064:0x3bf,_0xe975f4:0x23c,_0x5c49a7:0x153,_0x23cf5d:0x326,_0x2992aa:0x2e0,_0x4a1fe2:0x247,_0x965435:0x3cc,_0x4779fa:0x370,_0x5a9b08:0x284,_0x317330:0x376,_0x20fa21:0x35c},_0x58aacf={_0x1d7850:0xfa,_0xe4f861:0x112},_0x32ded3={_0x683c93:0x2cd},_0x3c373b={...structuredClone(_0x9440cf),..._0x9440cf[_0x5da5dc(_0xc6d636._0x38c457,0x268,_0xc6d636._0x1cadb2,0x2f1)]===void 0x0&&this[_0x5da5dc(_0xc6d636._0x38c457,0x2f2,0x210,_0xc6d636._0x4d110d)]!==void 0x0?{'reasoning':structuredClone(this[_0x4d37ab(-_0xc6d636._0x3522b4,-_0xc6d636._0x76353b,-_0xc6d636._0x5edfe4,-_0xc6d636._0x337a31)])}:{}};this[_0x4d37ab(-_0xc6d636._0x3f2386,-0x230,-_0xc6d636._0x433bad,-_0xc6d636._0x393fc7)][_0x4d37ab(-_0xc6d636._0x174f77,-0x95,-_0xc6d636._0x1db747,0x14)](_0x3c373b);const _0x342681=findLastMessage(_0x3c373b[_0x5da5dc(_0xc6d636._0xd2b496,_0xc6d636._0x4370af,0x3bb,0x34d)],_0x4d37ab(-0x207,-_0xc6d636._0x37ed15,-0x11c,-_0xc6d636._0x3e2081));function _0x5da5dc(_0x351846,_0x5b563f,_0xbd87a3,_0x5ba801){return _0x1818aa(_0x351846-0x12b,_0xbd87a3,_0xbd87a3-0xa,_0x351846-_0x32ded3._0x683c93);}const _0x16dd90=getToolResultBlocks(_0x342681),_0x48bbb5=_0x4d37ab(-_0xc6d636._0x2400d0,-_0xc6d636._0x2fe214,-0x85,_0xc6d636._0x3e154f)+this[_0x4d37ab(-_0xc6d636._0x597a38,-_0xc6d636._0x157d44,-0x154,-_0xc6d636._0x5ce48d)][_0x5da5dc(0x2f2,0x270,_0xc6d636._0x9b5a7a,0x351)];if(_0x16dd90['length']>0x0)return createMockResponse(_0x48bbb5,[{'type':_0x5da5dc(_0xc6d636._0x2b8c28,0x2e0,_0xc6d636._0x43efea,0x382),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x16dd90[0x0][_0x5da5dc(_0xc6d636._0x57433d,_0xc6d636._0x3eeb65,0x3ad,_0xc6d636._0x28b010)]}],_0x5da5dc(0x376,_0xc6d636._0x40942d,0x38a,_0xc6d636._0x37f5db),{'inputTokens':0x78,'outputTokens':0x28});const _0x36de6e=getTextFromMessage(_0x342681);function _0x4d37ab(_0x48ea45,_0xfe0350,_0x3ef6c2,_0x2776ce){return _0x1818aa(_0x48ea45-0xbc,_0x48ea45,_0x3ef6c2-_0x58aacf._0x1d7850,_0x3ef6c2- -_0x58aacf._0xe4f861);}if(/list .*files|workspace/i[_0x5da5dc(0x34d,_0xc6d636._0x4dea19,_0xc6d636._0x1d94a6,_0xc6d636._0x516f6e)](_0x36de6e)&&hasTool(_0x3c373b,_0x5da5dc(_0xc6d636._0x64c077,0x38e,0x314,0x39c)))return createMockResponse(_0x48bbb5,[{'type':_0x4d37ab(-0x10b,-0xcb,-0x1a3,-0x240),'id':'tool-call-'+this[_0x5da5dc(0x28b,_0xc6d636._0x25e6de,_0xc6d636._0x4ff612,0x298)]['length'],'name':_0x5da5dc(_0xc6d636._0x64c077,0x255,_0xc6d636._0x5ae064,0x240),'input':{'command':'ls\x20-la'}}],_0x5da5dc(_0xc6d636._0xe975f4,0x264,_0xc6d636._0x5c49a7,_0xc6d636._0x23cf5d),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x48bbb5,[{'type':_0x5da5dc(_0xc6d636._0x2992aa,_0xc6d636._0x4a1fe2,_0xc6d636._0x965435,_0xc6d636._0x4779fa),'text':_0x5da5dc(0x2ae,0x209,_0xc6d636._0x5a9b08,0x27a)+_0x36de6e}],_0x5da5dc(_0xc6d636._0x317330,0x3b6,_0xc6d636._0x20fa21,0x436),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x57f3ab,_0x3556fb){const _0x4bd974={_0x29e62c:0x22b,_0x5206e2:0x311,_0xe140f1:0x35d,_0x3ebdbc:0x39f,_0x3fe2ce:0x354},_0x462303={_0x1c2600:0xf4,_0x50a9f3:0x8},_0x60ac0d={_0x2255ed:0x12a},_0x22480e=getModelProfile(_0x57f3ab,_0x3556fb);if(!_0x22480e?.['contextWindow']&&!_0x22480e?.[_0x40ff58(_0x4bd974._0x29e62c,0x26f,0x299,_0x4bd974._0x5206e2)])return void 0x0;function _0x40ff58(_0x3c1462,_0x3d9e56,_0x1296f5,_0x108d7e){return _0x2d9e9f(_0x3c1462-0x12b,_0x108d7e,_0x3c1462- -_0x60ac0d._0x2255ed,_0x108d7e-0x17c);}function _0x22b1fc(_0x3d7789,_0x1902fb,_0x585def,_0x206af5){return _0x2d9e9f(_0x3d7789-_0x462303._0x1c2600,_0x3d7789,_0x585def-_0x462303._0x50a9f3,_0x206af5-0x28);}return{..._0x22480e[_0x22b1fc(0x46c,0x3c2,0x49d,0x4de)]?{'contextWindow':_0x22480e[_0x40ff58(0x36b,0x3cc,0x33c,0x441)]}:{},..._0x22480e[_0x22b1fc(0x3a4,0x3f0,_0x4bd974._0xe140f1,_0x4bd974._0x3ebdbc)]?{'maxOutput':_0x22480e[_0x22b1fc(_0x4bd974._0x3fe2ce,0x389,_0x4bd974._0xe140f1,0x3d7)]}:{}};}function normalizeModelInfo(_0x373cce,_0x4a3ce4){const _0x4af273={_0x2efd65:0x4d6,_0x687947:0x4d4,_0xfad0a8:0x469,_0x1827ad:0x3fc,_0x28d61b:0x535,_0x31d8ce:0x469,_0x40fdf3:0x42c,_0x162718:0x48a,_0x3e1400:0x63c,_0x3f54ee:0x5b6,_0x4ddd43:0x2f,_0x43cd7d:0xb2,_0x50f8a8:0x489,_0x3a1df0:0x530,_0x3beb75:0x652,_0x48fdcf:0x5ea,_0x1ffc38:0x19},_0x4a9bc2={_0x3ea1a7:0x1d},_0x48eb24={_0x2b7a3c:0x75},_0x17fbc7=typeof _0x4a3ce4['id']==='string'?_0x4a3ce4['id']:'',_0x240db0=typeof _0x4a3ce4[_0x5e5547(_0x4af273._0x2efd65,0x4e0,_0x4af273._0x687947,_0x4af273._0xfad0a8)]===_0x5e5547(0x614,0x616,0x516,0x5bf)?_0x4a3ce4[_0x5e5547(_0x4af273._0x1827ad,_0x4af273._0x28d61b,0x39e,_0x4af273._0x31d8ce)]:_0x17fbc7,_0x5a2db0=normalizeModelLimits(_0x373cce,_0x4a3ce4)??getFallbackModelLimits(_0x373cce,_0x17fbc7),_0x4f2d8b=Array[_0x5e5547(_0x4af273._0x40fdf3,0x453,_0x4af273._0x162718,0x42a)](_0x4a3ce4['supported_endpoints'])?_0x4a3ce4[_0x5e5547(0x62d,0x63d,_0x4af273._0x3e1400,_0x4af273._0x3f54ee)][_0x100bb8(-_0x4af273._0x4ddd43,-0x9c,-0x140,-_0x4af273._0x43cd7d)](_0x30b66c=>typeof _0x30b66c===_0x100bb8(-0x114,-0xb2,-0x85,-0x14c)):Array[_0x5e5547(0x499,0x393,_0x4af273._0x50f8a8,0x42a)](_0x4a3ce4[_0x5e5547(0x602,0x4da,_0x4af273._0x3a1df0,0x5c6)])?_0x4a3ce4[_0x5e5547(_0x4af273._0x3beb75,_0x4af273._0x48fdcf,0x656,0x5c6)][_0x100bb8(0x37,-0x9c,-0x12a,-_0x4af273._0x1ffc38)](_0x2a2e54=>typeof _0x2a2e54===_0x5e5547(0x54e,0x665,0x52b,0x5bf)):void 0x0;function _0x100bb8(_0x2235c6,_0x73afc7,_0x4c52ca,_0x6b6f9c){return _0x1818aa(_0x2235c6-_0x48eb24._0x2b7a3c,_0x4c52ca,_0x4c52ca-0x194,_0x73afc7- -0x16f);}function _0x5e5547(_0x43dab8,_0x596fb5,_0x769162,_0x3160f0){return _0x1818aa(_0x43dab8-0x5f,_0x43dab8,_0x769162-_0x4a9bc2._0x3ea1a7,_0x3160f0-0x502);}return{'id':_0x17fbc7,'name':_0x240db0,..._0x5a2db0?{'limits':_0x5a2db0}:{},..._0x4f2d8b?{'supportedEndpoints':_0x4f2d8b}:{}};}function normalizeModelLimits(_0x37df1c,_0x329255){const _0x48f4b9={_0x2561a9:0x57e,_0x3f7aba:0x633,_0x2dffd6:0x4c5,_0x383202:0x57e,_0x238d5c:0x5fc,_0x39f6f0:0x4fe,_0x31c368:0x5a9,_0x3db7dc:0x5dd,_0x212273:0x594,_0x6c027f:0x4c6,_0xb6300b:0x511,_0x390d19:0x4f4,_0x4964fa:0x59f,_0x1810ab:0x5e7,_0x3cf91d:0x17b,_0x31640a:0xab,_0x45e178:0x1b6,_0x5a870b:0x64,_0x186a48:0x11a,_0x4e8db3:0x3,_0x4f2c7d:0xd7,_0x3c52f7:0x1cc,_0x250a6c:0x642,_0x570b79:0x56,_0x55fc29:0x1bf,_0x3e7e9f:0x2a4,_0x4c0f30:0x8c,_0x2e8950:0x5f,_0x215d29:0x4df,_0x271570:0x576,_0x2d5c25:0x545,_0x3e9400:0x63b,_0x4f91f4:0x4c,_0x519692:0x2a,_0x12f6a4:0xb2,_0x8d582b:0x55e,_0x27b9e6:0x493,_0x1d0190:0x86,_0x3801f9:0xb,_0x302f5b:0xa9,_0x219284:0x4cd,_0x84e00e:0x66e,_0x516ee4:0x64,_0xb9593a:0x15,_0x488a26:0x5a8,_0x1b2362:0x536,_0x2bf630:0x655,_0x1eeddd:0x58d,_0xff57b8:0x59c,_0x3495a0:0xd,_0x434f58:0x1f0,_0x424755:0x1ba,_0x471bb7:0x1a8,_0x1d0744:0xf7,_0x2674a5:0x352},_0x585bc6={_0x126156:0x190,_0x4f88c0:0x1a6},_0x4508cc={_0x1cedac:0xac,_0x847bf7:0x4d0};if(_0x329255[_0x9cb74d(0x574,_0x48f4b9._0x2561a9,_0x48f4b9._0x3f7aba,0x51d)]&&typeof _0x329255[_0x9cb74d(_0x48f4b9._0x2dffd6,_0x48f4b9._0x383202,_0x48f4b9._0x238d5c,0x631)]===_0x9cb74d(_0x48f4b9._0x39f6f0,_0x48f4b9._0x31c368,0x50f,_0x48f4b9._0x3db7dc)){const _0x150079=_0x329255[_0x9cb74d(_0x48f4b9._0x212273,_0x48f4b9._0x2561a9,_0x48f4b9._0x6c027f,0x4a8)];if(typeof _0x150079[_0x9cb74d(_0x48f4b9._0xb6300b,0x59f,0x63e,0x527)]==='number')return{'contextWindow':_0x150079[_0x9cb74d(_0x48f4b9._0x390d19,_0x48f4b9._0x4964fa,0x5b5,_0x48f4b9._0x1810ab)],...typeof _0x150079[_0x572c77(-_0x48f4b9._0x3cf91d,-_0x48f4b9._0x31640a,-0xa4,-_0x48f4b9._0x45e178)]===_0x572c77(-_0x48f4b9._0x5a870b,-_0x48f4b9._0x186a48,_0x48f4b9._0x4e8db3,-_0x48f4b9._0x4f2c7d)?{'maxOutput':_0x150079['maxOutput']}:{}};}if(_0x37df1c[_0x9cb74d(0x535,0x584,0x55c,0x5df)]()===_0x572c77(-0x174,-0x183,-0xd7,-_0x48f4b9._0x3c52f7)){const _0x15f6e0=_0x329255[_0x9cb74d(0x67d,0x592,0x520,_0x48f4b9._0x250a6c)],_0x276714=_0x15f6e0?.[_0x572c77(-0x5c,-0xf8,0x37,_0x48f4b9._0x570b79)];if(typeof _0x276714?.[_0x572c77(-_0x48f4b9._0x55fc29,-0x21e,-0x17f,-_0x48f4b9._0x3e7e9f)]===_0x9cb74d(0x59b,0x576,0x57a,0x638))return{'contextWindow':_0x276714['max_context_window_tokens'],...typeof _0x276714[_0x572c77(-0x4c,-_0x48f4b9._0x4c0f30,0x17,-_0x48f4b9._0x2e8950)]===_0x9cb74d(_0x48f4b9._0x215d29,_0x48f4b9._0x271570,_0x48f4b9._0x2d5c25,_0x48f4b9._0x3e9400)?{'maxOutput':_0x276714[_0x572c77(-_0x48f4b9._0x4f91f4,_0x48f4b9._0x519692,-_0x48f4b9._0x12f6a4,0x5d)]}:{}};}const _0x5baabd=_0x329255[_0x9cb74d(0x5f9,0x518,0x4e5,0x5bb)];function _0x572c77(_0x2e5661,_0x3b728a,_0x3fc26e,_0x46ddf9){return _0x2d9e9f(_0x2e5661-_0x4508cc._0x1cedac,_0x3fc26e,_0x2e5661- -_0x4508cc._0x847bf7,_0x46ddf9-0x18f);}const _0x19ad58=_0x329255[_0x9cb74d(_0x48f4b9._0x8d582b,_0x48f4b9._0x27b9e6,0x53b,0x501)];function _0x9cb74d(_0x2a656b,_0x459121,_0x5e7f8a,_0x452b02){return _0x1818aa(_0x2a656b-_0x585bc6._0x126156,_0x452b02,_0x5e7f8a-_0x585bc6._0x4f88c0,_0x459121-0x4dd);}const _0x2bc27d=typeof _0x329255[_0x572c77(-0x4d,0x32,-_0x48f4b9._0x1d0190,-_0x48f4b9._0x3801f9)]===_0x572c77(-0x64,0x89,-_0x48f4b9._0x302f5b,-0x21)?_0x329255[_0x9cb74d(0x56c,0x58d,_0x48f4b9._0x219284,_0x48f4b9._0x84e00e)]:typeof _0x5baabd?.[_0x572c77(-0x4d,-0x4,-0x7b,0x33)]===_0x572c77(-_0x48f4b9._0x516ee4,-0xc2,-0x11a,-_0x48f4b9._0xb9593a)?_0x5baabd[_0x9cb74d(_0x48f4b9._0x488a26,0x58d,0x668,_0x48f4b9._0x1b2362)]:typeof _0x19ad58?.[_0x9cb74d(_0x48f4b9._0x2bf630,_0x48f4b9._0x1eeddd,_0x48f4b9._0xff57b8,0x58d)]===_0x572c77(-0x64,-_0x48f4b9._0x3495a0,-0xa5,_0x48f4b9._0x519692)?_0x19ad58['context_length']:void 0x0;if(_0x2bc27d===void 0x0)return void 0x0;return{'contextWindow':_0x2bc27d,...typeof _0x5baabd?.[_0x572c77(-0x169,-_0x48f4b9._0x434f58,-_0x48f4b9._0x424755,-0x15f)]===_0x572c77(-_0x48f4b9._0x516ee4,-0x17,-0xb8,-0xb)?{'maxOutput':_0x5baabd[_0x9cb74d(0x4af,0x471,0x46d,0x3b1)]}:typeof _0x19ad58?.[_0x572c77(-_0x48f4b9._0x471bb7,-0x1e5,-_0x48f4b9._0x1d0744,-0xc2)]==='number'?{'maxOutput':_0x19ad58[_0x9cb74d(0x503,0x432,0x3d8,_0x48f4b9._0x2674a5)]}:{}};}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(_0x5c0193,_0x4b252a){const _0x2b6114={_0x5d642a:0x13e,_0x101adf:0x1db,_0x107950:0x164,_0x35dbdf:0x16c,_0x4fb080:0x16a,_0x4416cc:0x5d0,_0x560ad3:0x549,_0x5da403:0x5f2,_0x437203:0x5df,_0x7422ae:0x627,_0x3f781b:0x60c,_0x3bab89:0x471,_0x490e07:0x3ac,_0x4d285e:0xba,_0x5d6a1f:0x110,_0xf442a2:0x1c7,_0x1b934e:0x5a1,_0x28c3a7:0x610,_0x508e3b:0x5cf,_0x8761a0:0x60b,_0x1f6c14:0x6df,_0x56cd07:0x6c5},_0x575f03={_0x7e1a0d:0x341},_0x2f0093={_0x1e6cea:0x4f};function _0x391f85(_0x496a4c,_0x23db26,_0x4a4a3e,_0x4e2050){return _0x5b12(_0x23db26- -_0x2f0093._0x1e6cea,_0x496a4c);}const _0x49d7e2=_0x5c0193();function _0x44d671(_0x1d72fa,_0x4c6f38,_0x2212f4,_0x2deef7){return _0x5b12(_0x1d72fa-_0x575f03._0x7e1a0d,_0x4c6f38);}while(!![]){try{const _0x20a3a1=parseInt(_0x391f85(0xda,_0x2b6114._0x5d642a,_0x2b6114._0x101adf,_0x2b6114._0x107950))/0x1+parseInt(_0x391f85(_0x2b6114._0x35dbdf,_0x2b6114._0x4fb080,0x159,0xe1))/0x2+-parseInt(_0x44d671(_0x2b6114._0x4416cc,_0x2b6114._0x560ad3,_0x2b6114._0x5da403,_0x2b6114._0x437203))/0x3+parseInt(_0x44d671(_0x2b6114._0x7422ae,_0x2b6114._0x3f781b,0x67a,0x6ae))/0x4+-parseInt(_0x44d671(_0x2b6114._0x3bab89,_0x2b6114._0x490e07,0x488,0x4c3))/0x5*(-parseInt(_0x391f85(_0x2b6114._0x4d285e,_0x2b6114._0x5d6a1f,_0x2b6114._0xf442a2,0x1cc))/0x6)+-parseInt(_0x44d671(_0x2b6114._0x1b934e,0x583,_0x2b6114._0x28c3a7,_0x2b6114._0x508e3b))/0x7+-parseInt(_0x44d671(_0x2b6114._0x8761a0,_0x2b6114._0x1f6c14,_0x2b6114._0x56cd07,0x554))/0x8;if(_0x20a3a1===_0x4b252a)break;else _0x49d7e2['push'](_0x49d7e2['shift']());}catch(_0xc60a80){_0x49d7e2['push'](_0x49d7e2['shift']());}}}(_0x53da,0x79713));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(_0xed469c){function _0x46dac0(_0x1748ae,_0x4f3c57,_0xba48cc,_0x28e65a){return _0x5b12(_0xba48cc-0x194,_0x28e65a);}super(_0xed469c),this['name']=_0x46dac0(0x3c9,0x38f,0x2ff,0x2e6);}},ProviderStreamEventError=class extends Error{[_0xf0dc29(0x342,0x354,0x265,0x42b)];[_0xf0dc29(0x2fd,0x38d,0x23c,0x3c0)];[_0x551389(0x437,0x496,0x55c,0x3a8)];constructor(_0x25d473,_0x14750a={}){const _0x27a291={_0x14f84b:0x35e,_0x38ea90:0x308,_0x5b85ff:0x361,_0x3b6bca:0x234,_0x4b1e2b:0x3ff,_0x48f6a1:0x38a,_0x9830df:0x2ae,_0x317eec:0x385,_0x5dd17e:0x331,_0x9490b6:0x261,_0x176b39:0x336,_0xaa7ce:0x309,_0x29a05d:0x342,_0x41c74a:0x3eb,_0x1084e1:0x301,_0x179b33:0x3f4,_0x2a8f02:0x3eb},_0x5ea750={_0x4bcbb7:0x155};function _0xdf9b0a(_0x3410c8,_0x12f900,_0x2916eb,_0xa6f573){return _0x551389(_0x3410c8-0x1e3,_0x2916eb- -0xa6,_0x3410c8,_0xa6f573-0xe8);}super(_0x25d473);function _0x3cca03(_0xb92b6c,_0x298489,_0x46272f,_0x21a704){return _0x551389(_0xb92b6c-0x194,_0x21a704- -0xab,_0x298489,_0x21a704-_0x5ea750._0x4bcbb7);}this[_0x3cca03(_0x27a291._0x14f84b,_0x27a291._0x38ea90,_0x27a291._0x5b85ff,0x386)]=_0xdf9b0a(_0x27a291._0x3b6bca,_0x27a291._0x4b1e2b,0x321,0x341),this['code']=_0x14750a[_0x3cca03(0x28c,_0x27a291._0x48f6a1,0x379,0x376)],this[_0x3cca03(_0x27a291._0x9830df,0x37e,_0x27a291._0x317eec,_0x27a291._0x5dd17e)]=_0x14750a[_0xdf9b0a(_0x27a291._0x9490b6,0x300,_0x27a291._0x176b39,0x3e3)]??!![],this[_0x3cca03(0x373,_0x27a291._0xaa7ce,_0x27a291._0x29a05d,_0x27a291._0x41c74a)]=_0x14750a[_0x3cca03(_0x27a291._0x1084e1,0x45b,_0x27a291._0x179b33,_0x27a291._0x2a8f02)];}};function isRetryableProviderStreamEventError(_0x2af0b6){const _0x3fd4f7={_0xdd7d1d:0x5b7};function _0x326080(_0x281fac,_0x53b8c0,_0x3cd406,_0x39d5ed){return _0xf0dc29(_0x281fac-0x1e7,_0x53b8c0-0x1eb,_0x53b8c0,_0x39d5ed-0x186);}return _0x2af0b6 instanceof ProviderStreamEventError&&_0x2af0b6[_0x326080(0x4e4,_0x3fd4f7._0xdd7d1d,0x4ed,0x438)];}var ANTHROPIC_MESSAGES_SURFACE=_0xf0dc29(0x3ac,0x3e8,0x355,0x432),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0xf0dc29(0x344,0x426,0x390,0x34a);function parseToolInput(_0x47a4c1){try{return JSON['parse'](_0x47a4c1);}catch{return _0x47a4c1;}}function resolveReasoningVisibility(_0x33e7b3){const _0x405317={_0x3993b6:0x4d1,_0x51fd12:0x8e},_0x24ca0f={_0x5050fd:0x13b,_0xc8a6b4:0x467,_0x1b6718:0x153},_0x46ae53={_0x56d7a1:0x2c,_0x2006c5:0x212,_0x12fac2:0x76};function _0x1efba9(_0x49f66e,_0x96290,_0x464819,_0x37552e){return _0x551389(_0x49f66e-_0x46ae53._0x56d7a1,_0x96290-_0x46ae53._0x2006c5,_0x464819,_0x37552e-_0x46ae53._0x12fac2);}function _0x13bb47(_0x5d5c4c,_0xf6abac,_0x5a0480,_0xb90520){return _0x551389(_0x5d5c4c-_0x24ca0f._0x5050fd,_0x5d5c4c- -_0x24ca0f._0xc8a6b4,_0xb90520,_0xb90520-_0x24ca0f._0x1b6718);}return _0x33e7b3[_0x1efba9(0x5bf,0x4df,0x4f6,_0x405317._0x3993b6)]?.['visibility']??_0x13bb47(-_0x405317._0x51fd12,0x5b,0x5a,-0x9a);}function isUserVisibleThinking(_0x227325){const _0x1f240b={_0x2d0549:0x13f,_0x5d157e:0x3c},_0x47046e={_0x1f9623:0x12f,_0x4facb0:0xc0},_0x448362={_0x593b4d:0x378,_0x23ddbb:0xad};function _0x5aa0f1(_0x507fd6,_0x2b1755,_0xe5c2fa,_0x4d2f72){return _0xf0dc29(_0xe5c2fa- -_0x448362._0x593b4d,_0x2b1755-_0x448362._0x23ddbb,_0x2b1755,_0x4d2f72-0x11);}const _0x44d36e=resolveAnthropicThinkingConfig(_0x227325['reasoning']);function _0x5e7bbf(_0x7c9de3,_0x4f84fe,_0xffc8b7,_0x4848ee){return _0x551389(_0x7c9de3-_0x47046e._0x1f9623,_0x7c9de3- -0x58b,_0x4848ee,_0x4848ee-_0x47046e._0x4facb0);}return _0x44d36e!==void 0x0&&_0x44d36e['type']!==_0x5e7bbf(-0x18e,-0xb2,-_0x1f240b._0x2d0549,-0x22d)&&resolveReasoningVisibility(_0x227325)===_0x5aa0f1(0x16,-_0x1f240b._0x5d157e,-0x7e,-0x142);}function createAnthropicThinkingBody(_0x135c7a){const _0x22c0fc={_0x24ba13:0xe8,_0x31b8c8:0xd2,_0x5475e8:0xe2,_0x4533b2:0x8,_0x5b96e0:0x2be,_0x35532b:0x245,_0x47acd0:0x2b0,_0x3ca833:0x256,_0x11ef4b:0x1f0,_0x4e189d:0x2a0,_0x25a5db:0x29a,_0xcd1f41:0x2d9,_0x30a671:0x30b,_0x286048:0x1b0,_0x657eed:0x113,_0x28f71c:0x152,_0x537d40:0x1cc,_0x6b7a93:0x118,_0x39c930:0x1f9,_0x4874f9:0x225,_0x5a0f9c:0x21f,_0x23c279:0x317,_0x188c39:0x1a5,_0x22374b:0x34},_0x35d7a6={_0x3cc352:0x21f,_0x416cb8:0x14c},_0xf6324a=resolveAnthropicThinkingConfig(_0x135c7a[_0x51169a(_0x22c0fc._0x24ba13,0x148,0x115,_0x22c0fc._0x31b8c8)]);function _0x51169a(_0x19c2d3,_0x441981,_0x483a00,_0x3f529d){return _0xf0dc29(_0x19c2d3- -0x106,_0x441981-0x9a,_0x483a00,_0x3f529d-0x1d5);}if(!_0xf6324a||_0xf6324a[_0x51169a(_0x22c0fc._0x5475e8,0xa1,0x6b,-_0x22c0fc._0x4533b2)]===_0x51169a(0x218,0x141,_0x22c0fc._0x5b96e0,_0x22c0fc._0x35532b))return{};const _0x44955f=_0xf6324a[_0x132472(0x2c2,_0x22c0fc._0x47acd0,0x22c,0x186)]??(isUserVisibleThinking(_0x135c7a)?_0x132472(0x284,0x23e,_0x22c0fc._0x3ca833,_0x22c0fc._0x11ef4b):_0x51169a(_0x22c0fc._0x4e189d,_0x22c0fc._0x25a5db,_0x22c0fc._0xcd1f41,_0x22c0fc._0x30a671));function _0x132472(_0x4644aa,_0x40b69e,_0xf51ed9,_0x35321a){return _0x551389(_0x4644aa-0x1a6,_0xf51ed9- -_0x35d7a6._0x3cc352,_0x40b69e,_0x35321a-_0x35d7a6._0x416cb8);}const _0x3d4cc8=_0xf6324a[_0x51169a(0x279,0x1a5,_0x22c0fc._0x286048,0x361)]?{'anthropic-beta':_0x132472(0x1a6,0xae,_0x22c0fc._0x657eed,0x5b)}:void 0x0;if(_0xf6324a[_0x132472(-0xc,0x13c,0xa8,_0x22c0fc._0x28f71c)]===_0x51169a(0x233,_0x22c0fc._0x537d40,0x2d3,0x233))return{..._0x3d4cc8?{'headers':_0x3d4cc8}:{},'thinking':{'type':_0x132472(0x251,_0x22c0fc._0x6b7a93,_0x22c0fc._0x39c930,0x246),'budget_tokens':_0xf6324a[_0x132472(_0x22c0fc._0x4874f9,0x237,0x231,0x281)],'display':_0x44955f}};return{..._0x3d4cc8?{'headers':_0x3d4cc8}:{},'thinking':{'type':_0x132472(0x2f2,_0x22c0fc._0x5a0f9c,0x253,_0x22c0fc._0x23c279),..._0xf6324a[_0x132472(0xee,0x181,0xd4,0x131)]?{'effort':_0xf6324a[_0x51169a(0x10e,_0x22c0fc._0x188c39,0x124,_0x22c0fc._0x22374b)]}:{},'display':_0x44955f}};}function toAnthropicRequestContent(_0x3b9710){const _0x3b7d0d={_0x9345f8:0x189,_0x152132:0x20f,_0xbf4e67:0x120,_0x42a6b7:0xee,_0xfd58a5:0x2b9,_0xc55b88:0x235,_0xf699a:0x281,_0x4c7c50:0x4a0,_0xe4f6ae:0x3e2,_0x3b388e:0x27,_0x1d2ee0:0x49,_0x4146a4:0x4b9,_0x164edd:0x397,_0x54e0f1:0x416,_0x359148:0x18f,_0x4ddb42:0xbd,_0x1477cf:0x3,_0x7110cf:0x18a,_0x41d329:0x19f,_0x3b93d3:0x171,_0xda20cc:0x135,_0x2eceef:0xb4,_0x116aaa:0x15b},_0xa8660={_0x1affa5:0x120,_0x47bdfb:0x2fc,_0x1559e6:0x47},_0x53f37c={_0x272712:0x20,_0xd39381:0xa3};if(_0x3b9710[_0x4aa84c(0x19a,_0x3b7d0d._0x9345f8,_0x3b7d0d._0x152132,_0x3b7d0d._0xbf4e67)]===_0x291ac2(0x2be,0x2ee,0x312,0x3ad)&&_0x3b9710['providerState']?.[_0x4aa84c(0x6b,-_0x3b7d0d._0x42a6b7,0x73,-0x8)])return structuredClone(_0x3b9710[_0x291ac2(0x3a7,0x336,0x332,0x2e0)][_0x291ac2(_0x3b7d0d._0xfd58a5,_0x3b7d0d._0xc55b88,0x1b0,_0x3b7d0d._0xf699a)]);const _0x22b29a=[];function _0x291ac2(_0x368cfb,_0x5f4274,_0x450d1a,_0x586409){return _0xf0dc29(_0x5f4274-_0x53f37c._0x272712,_0x5f4274-0x1d5,_0x586409,_0x586409-_0x53f37c._0xd39381);}for(const _0x3be081 of normalizeContent(_0x3b9710[_0x291ac2(_0x3b7d0d._0x4c7c50,0x3d2,0x440,_0x3b7d0d._0xe4f6ae)])){if(_0x3be081['type']==='openai_reasoning')continue;if(_0x3be081[_0x4aa84c(-0xb9,_0x3b7d0d._0x3b388e,_0x3b7d0d._0x1d2ee0,-0x35)]===_0x4aa84c(0xd1,-0x1d,0x50,-0x2)){_0x22b29a[_0x291ac2(_0x3b7d0d._0x4146a4,0x3d3,_0x3b7d0d._0x164edd,_0x3b7d0d._0x54e0f1)]({'type':_0x291ac2(0x26b,0x240,0x31f,_0x3b7d0d._0x359148),'thinking':_0x3be081[_0x4aa84c(-0xeb,-_0x3b7d0d._0x4ddb42,-0x9,_0x3b7d0d._0x1477cf)],'signature':_0x3be081['signature']});continue;}if(_0x3be081[_0x291ac2(_0x3b7d0d._0x7110cf,0x208,0x20e,_0x3b7d0d._0x41d329)]==='anthropic_redacted_thinking'){_0x22b29a['push']({'type':'redacted_thinking','data':_0x3be081[_0x4aa84c(_0x3b7d0d._0x3b93d3,_0x3b7d0d._0xda20cc,_0x3b7d0d._0x7110cf,_0x3b7d0d._0x2eceef)]});continue;}_0x22b29a[_0x4aa84c(0x213,0x16a,_0x3b7d0d._0x116aaa,0x196)](structuredClone(_0x3be081));}function _0x4aa84c(_0x526751,_0x5117b0,_0x3848bf,_0x287a0b){return _0x551389(_0x526751-_0xa8660._0x1affa5,_0x287a0b- -_0xa8660._0x47bdfb,_0x5117b0,_0x287a0b-_0xa8660._0x1559e6);}return _0x22b29a;}function createAnthropicRequest(_0x11213b,_0x527a91){const _0x5a533f={_0x5f36ec:0x29f,_0x388b5a:0x185,_0x549e64:0x254,_0x58ffce:0x28c,_0x114874:0x340,_0x5ace39:0x217,_0x4bf27f:0x2d1,_0x160d51:0x471,_0x51a574:0x455,_0x1f3cf6:0x41d,_0x4584c5:0x370,_0x29acf1:0x3fe,_0x5c38c1:0x378,_0x576655:0x2a1,_0x310c8d:0x378,_0x32bd05:0x41b,_0x256173:0x4a9,_0x8942a3:0x43f,_0x23d854:0x50d,_0x2e2b93:0xb8,_0x468d41:0x12b,_0x4d5ddf:0x325,_0x195685:0x2ba,_0x541f04:0x271},_0x5d0aa2={_0x57a170:0xe4},_0x2ec3af={_0x3c14af:0x3b};function _0x273b70(_0x48d13a,_0x239bcd,_0x3ac9e2,_0x186b5b){return _0x551389(_0x48d13a-0x148,_0x239bcd-_0x2ec3af._0x3c14af,_0x186b5b,_0x186b5b-0x5a);}function _0x3d5455(_0xf71508,_0x5a21a5,_0x1635cb,_0x2bd9b3){return _0x551389(_0xf71508-_0x5d0aa2._0x57a170,_0x1635cb- -0x1bf,_0x5a21a5,_0x2bd9b3-0x17a);}const _0x30e545=toProviderModelRequest(_0x11213b),_0x19e5ac=createAnthropicThinkingBody(_0x11213b);return{'accept':_0x527a91?_0x3d5455(_0x5a533f._0x5f36ec,_0x5a533f._0x388b5a,_0x5a533f._0x549e64,_0x5a533f._0x58ffce):_0x3d5455(_0x5a533f._0x114874,_0x5a533f._0x5ace39,_0x5a533f._0x4bf27f,0x206),'body':{..._0x30e545,'messages':_0x11213b[_0x273b70(_0x5a533f._0x160d51,_0x5a533f._0x51a574,_0x5a533f._0x1f3cf6,_0x5a533f._0x4584c5)][_0x273b70(0x284,0x300,0x379,0x21b)](_0x5bb70c=>{return{'role':_0x5bb70c['role'],'content':toAnthropicRequestContent(_0x5bb70c)};}),..._0x19e5ac[_0x273b70(0x369,0x33a,0x29f,0x377)]?{'thinking':_0x19e5ac['thinking']}:{},..._0x527a91?{'stream':!![]}:{},..._0x11213b[_0x273b70(_0x5a533f._0x29acf1,_0x5a533f._0x5c38c1,_0x5a533f._0x576655,0x32d)]?{'output_config':{'format':{'type':_0x3d5455(0x2c3,0x254,0x230,0x2bc),'schema':_0x11213b[_0x273b70(0x2b6,_0x5a533f._0x310c8d,_0x5a533f._0x32bd05,0x38b)][_0x273b70(_0x5a533f._0x256173,_0x5a533f._0x8942a3,0x387,_0x5a533f._0x23d854)]}}}:{}},..._0x19e5ac[_0x3d5455(_0x5a533f._0x2e2b93,0xcb,_0x5a533f._0x468d41,0xe3)]?{'headers':_0x19e5ac[_0x273b70(0x2ac,_0x5a533f._0x4d5ddf,0x299,0x2d7)]}:{},'path':_0x3d5455(0x1a9,_0x5a533f._0x195685,_0x5a533f._0x541f04,0x2c1)};}function parseAnthropicResponse(_0x6d99f7,_0xeb3a96){const _0xb43812={_0x20d85a:0x242,_0x4a30d3:0x22f,_0x3d444c:0x2c1,_0x3967c5:0x154,_0x1b9b95:0xe7,_0x4ce7c3:0xaf,_0x334a72:0xaf,_0x48d635:0x129,_0x56cab9:0x90,_0x436641:0xe1,_0x48960b:0xef,_0x64d40b:0x193,_0x1a637a:0x191,_0x328ad9:0x56,_0x3e7ccb:0x6,_0x313faf:0x79,_0xefbbb0:0x154,_0x2a8cbf:0x98,_0x15f3c1:0x1a4,_0x2f04a4:0x242,_0x3b34b8:0x1aa,_0x48ca5a:0x1d9,_0x425e50:0xf0,_0x3491f8:0x1e,_0x3e28a1:0x35,_0xc95480:0x59,_0x22a132:0xff,_0x48846b:0x8a,_0x598679:0x4e,_0x1b7b05:0x15a,_0x4a5937:0xd4,_0x4cecaa:0xf7,_0x27e34d:0x77,_0x5aa506:0x73,_0xefe428:0x131,_0xc4ba68:0x144,_0x43cde7:0x15f,_0x249d01:0x2c5,_0x4b8472:0x2d5,_0x56aea1:0x23e,_0x2d4170:0x230,_0x312e42:0x18b,_0x20f03d:0x197,_0xcc15f:0xc8,_0x1c848d:0xa7,_0x2e354a:0x8,_0x155e78:0x37,_0x4d4bc8:0x88,_0x21fba3:0x55,_0x1c3590:0x8,_0x28904c:0xe3,_0x55402a:0xed,_0x29f238:0x34,_0x434b03:0xa4,_0x16df77:0xc5,_0x1c928f:0x2b4,_0x15f48f:0x16a},_0xaec2f6={_0x43ab6a:0x1ee},_0x277de0={_0x2a2606:0x7,_0x200a75:0x15a},_0x5be6b1=[];function _0x3ca143(_0x248267,_0x1118bf,_0x57dca1,_0x4613cf){return _0xf0dc29(_0x248267- -0x37b,_0x1118bf-_0x277de0._0x2a2606,_0x57dca1,_0x4613cf-_0x277de0._0x200a75);}const _0x235716=_0x6d99f7[_0x50500a(0x241,0x26c,0x1c4,0x1b3)]??[];function _0x50500a(_0x557c2a,_0x3afa16,_0x4f1ed5,_0x4e8802){return _0xf0dc29(_0x557c2a- -0x171,_0x3afa16-_0xaec2f6._0x43ab6a,_0x4e8802,_0x4e8802-0xc6);}let _0x165276=![];for(const _0x5977c6 of _0x235716){if(_0x5977c6['type']==='thinking'){_0x165276=!![];isUserVisibleThinking(_0xeb3a96)&&_0x5be6b1[_0x50500a(_0xb43812._0x20d85a,_0xb43812._0x4a30d3,_0xb43812._0x3d444c,_0xb43812._0x3967c5)]({'type':_0x50500a(0xaa,0x4e,_0xb43812._0x1b9b95,0x4d),'thinking':_0x5977c6[_0x50500a(_0xb43812._0x4ce7c3,_0xb43812._0x334a72,0x30,_0xb43812._0x48d635)],'signature':_0x5977c6[_0x50500a(_0xb43812._0x56cab9,_0xb43812._0x436641,0xe5,_0xb43812._0x48960b)]});continue;}if(_0x5977c6[_0x3ca143(-_0xb43812._0x64d40b,-_0xb43812._0x1a637a,-0x241,-0xd9)]==='redacted_thinking'){_0x165276=!![];isUserVisibleThinking(_0xeb3a96)&&_0x5be6b1['push']({'type':'anthropic_redacted_thinking','data':_0x5977c6['data']});continue;}if(_0x5977c6[_0x50500a(0x77,0xe6,_0xb43812._0x328ad9,-_0xb43812._0x3e7ccb)]==='text'){_0x5977c6[_0x50500a(_0xb43812._0x313faf,-0x60,_0xb43812._0xefbbb0,-0x6e)][_0x50500a(0x122,_0xb43812._0x2a8cbf,0x6e,_0xb43812._0x15f3c1)]>0x0&&_0x5be6b1[_0x50500a(_0xb43812._0x2f04a4,0x28a,0x2e7,0x2c0)](structuredClone(_0x5977c6));continue;}_0x5be6b1[_0x50500a(_0xb43812._0x2f04a4,_0xb43812._0x3b34b8,0x1d1,_0xb43812._0x48ca5a)](structuredClone(_0x5977c6));}return{'id':_0x6d99f7['id']??_0x3ca143(-0x181,-0x12f,-_0xb43812._0x425e50,-0x1d1)+Date[_0x3ca143(-0x4,_0xb43812._0x3491f8,0x55,_0xb43812._0x3e28a1)](),'content':_0x5be6b1,'stopReason':_0x5be6b1[_0x3ca143(-0x8a,_0xb43812._0xc95480,-0x3e,-_0xb43812._0x22a132)](_0x3b63a5=>_0x3b63a5['type']===_0x3ca143(-0x180,-0x1bd,-0xe5,-0x101))?_0x50500a(_0xb43812._0x48846b,_0xb43812._0x598679,0xeb,0x11):_0x6d99f7[_0x3ca143(-0x15f,-_0xb43812._0x1b7b05,-0x13e,-_0xb43812._0x4a5937)]===_0x50500a(0x8a,0x11e,-0x59,0x14b)?'tool_use':_0x50500a(_0xb43812._0x4cecaa,0x1c6,_0xb43812._0x27e34d,0x6f),'usage':{'inputTokens':(_0x6d99f7[_0x50500a(_0xb43812._0x5aa506,0x0,0x5c,_0xb43812._0xefe428)]?.[_0x50500a(0x114,0x148,_0xb43812._0xc4ba68,_0xb43812._0x43cde7)]??0x0)+(_0x6d99f7['usage']?.[_0x50500a(0x202,0x1ce,_0xb43812._0x249d01,_0xb43812._0x4b8472)]??0x0)+(_0x6d99f7['usage']?.[_0x50500a(_0xb43812._0x56aea1,0x23f,_0xb43812._0x2d4170,_0xb43812._0x312e42)]??0x0),'outputTokens':_0x6d99f7[_0x3ca143(-_0xb43812._0x20f03d,-0x26c,-0x1f0,-0x1ba)]?.[_0x3ca143(-0x32,-_0xb43812._0xcc15f,-_0xb43812._0x1c848d,-_0xb43812._0x2e354a)]??0x0,..._0x6d99f7[_0x50500a(0x73,-_0xb43812._0x155e78,_0xb43812._0x4d4bc8,-_0xb43812._0x21fba3)]?.[_0x3ca143(-_0xb43812._0x1c3590,_0xb43812._0x28904c,-0x4b,-_0xb43812._0x55402a)]?{'cacheReadInputTokens':_0x6d99f7['usage']['cache_read_input_tokens']}:{},..._0x6d99f7['usage']?.[_0x3ca143(_0xb43812._0x29f238,_0xb43812._0x434b03,_0xb43812._0x16df77,0x62)]?{'cacheCreationInputTokens':_0x6d99f7['usage'][_0x50500a(0x23e,_0xb43812._0x1c928f,0x28e,_0xb43812._0x15f48f)]}:{}},..._0x165276?{'providerState':{'anthropicAssistantContent':structuredClone(_0x235716)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x551389(0x39d,0x2fd,0x2f4,0x3e8)]=new Map();[_0xf0dc29(0x2b1,0x394,0x2bb,0x237)]=0x0;[_0x551389(0x3bb,0x432,0x49c,0x469)]=0x0;[_0xf0dc29(0x1f0,0x1e8,0x1e6,0x144)]=0x0;['messageId']=_0xf0dc29(0x1fa,0x1e1,0x1e3,0x12f)+Date['now']();[_0x551389(0x3a5,0x3d2,0x466,0x312)]=0x0;[_0xf0dc29(0x2bb,0x245,0x36f,0x232)];[_0xf0dc29(0x2ab,0x246,0x2c6,0x30c)]=_0xf0dc29(0x268,0x31f,0x32f,0x329);constructor(_0xc53d4d){const _0x408b8c={_0x52a082:0x1f6,_0x37e7b4:0x1a5,_0x633789:0x184};function _0x26c4b0(_0x845c33,_0x556403,_0x47e477,_0x434a00){return _0x551389(_0x845c33-0x16,_0x556403- -0x53f,_0x845c33,_0x434a00-0x1a9);}this[_0x26c4b0(-_0x408b8c._0x52a082,-_0x408b8c._0x37e7b4,-0x138,-_0x408b8c._0x633789)]=_0xc53d4d;}[_0xf0dc29(0x1ec,0x281,0x110,0x234)](_0x58a28f){const _0xece62={_0x3d52f3:0x5b7,_0x547b04:0x1d9,_0x344f66:0x220,_0x2b51ed:0x2c4,_0x522168:0x293,_0x22deac:0x1c4,_0x80a67f:0x6ac,_0x5a3b7d:0x5af,_0x1b812f:0x597,_0x21b04e:0x67c,_0x14f0cf:0x9f,_0x29f636:0x168,_0x2baf8a:0x695,_0x5bffd6:0x42,_0x58a3b5:0x134,_0x344aa1:0x187,_0x1e462e:0xf8,_0x3a9b0d:0x527,_0x26901c:0x587,_0x589026:0xa2,_0x2a8ee0:0x1aa,_0x19107e:0x145,_0x8f1378:0x72a,_0xd21bf2:0x655,_0x23d74a:0x5b6,_0x44e867:0x261,_0x25d136:0x25b,_0x5d6f6a:0x6c5,_0x5058ce:0x655,_0x37a5a8:0x673,_0x2d038f:0x5dd,_0x2faad7:0x4e6,_0x2851e6:0x33c,_0xb5c4ae:0x34f,_0x34c9c2:0x335,_0x4d1b22:0x28c,_0x41cd6d:0x1ee,_0x5cf07b:0x4c5,_0x2c5bea:0x1a0,_0x296819:0x146,_0x1a8925:0x13e,_0x5c761a:0x207,_0x1c10ae:0x1e6,_0x3afd9e:0x30,_0x472426:0x1aa,_0x491f6b:0x10f,_0x18b628:0x32c,_0xfa2b1e:0x28d,_0x44d4f0:0x266,_0x363fcb:0x484,_0x4f439b:0x51e,_0x4d458f:0x557,_0x49c789:0x65e,_0x2b40af:0x6a2,_0xaa5f3e:0x72a,_0x17aba9:0x501,_0x1bd99a:0x45d,_0x121de3:0x4fd,_0xb3aff7:0x313,_0xafd7fc:0x266,_0x51431f:0x503,_0x272ad4:0x567,_0x940ada:0x101,_0x150a0e:0x182,_0x322d0f:0x132,_0x4d8b0f:0x186,_0x5eb71b:0x177,_0x932b77:0x5ae,_0x417d58:0x2bb,_0x5443ff:0x159,_0x303985:0xbe,_0x12ccbf:0x115,_0x5439dc:0x4b3,_0x1f8a44:0x4ec,_0x4ef32b:0x520,_0x3b4015:0x570,_0x41015b:0x56e,_0x26ee54:0x22a,_0x14f998:0x21d,_0x4c9ee6:0x53f,_0x46a3e8:0x477,_0x48aeab:0x58d,_0x44de62:0x44d,_0xd57a66:0x665,_0x2fb2df:0x5c6,_0x5be5b6:0x520,_0x28bf26:0x1c4,_0x3faa7f:0x573,_0x54b8ec:0x625,_0x48d99d:0x585,_0x864a69:0x571,_0x240959:0x21d,_0x2f25be:0x217,_0x419419:0x1e5,_0x5bc609:0x5a9,_0x19d84f:0x4eb,_0x3c0e59:0x581,_0x138545:0x15d,_0x111049:0x1df,_0x2259fc:0x121,_0x43fd18:0x1c3,_0x308b13:0x360,_0x5530a1:0x337,_0x250cc7:0x112,_0x4d0459:0x13e,_0x246f7c:0x1c0,_0x1fcc1b:0x13e,_0x4c3f1b:0x2e1,_0x121aed:0x203,_0x92a81a:0x536,_0x2342e4:0x4f1,_0x262981:0x549,_0x45d72a:0x6eb,_0x3ce047:0x583,_0x31bdb1:0x635,_0x4dc46f:0x26d,_0x4c7e1c:0x167,_0x1a9314:0x1bc,_0x4e7d60:0x2d3,_0x1340ef:0x4a0,_0x3ae411:0x202,_0x5d316f:0x21d,_0x440931:0x155,_0xa14477:0xe5,_0x56d0a6:0x53f,_0x59bd0e:0x5af,_0x2ac063:0x1db,_0x83d317:0x122,_0x1245cb:0x1c7,_0x10f5fa:0x59,_0x78fdf4:0x6e2,_0x1d8e77:0x5f2,_0x569caf:0x541,_0x18b31e:0x60f,_0x8e92c0:0x1a1,_0x4620af:0x1bc,_0x7bace6:0x555,_0x5a0778:0x4d9,_0x4e0947:0x522,_0x1f7814:0x5f8,_0x4d8dfd:0xbd,_0x27602a:0x134,_0x12e18f:0x270,_0x4a4f45:0x436,_0x23eab2:0x44c,_0x2c4bcd:0x180,_0x5884b8:0x28a,_0x40aa48:0x1a7,_0x22fecf:0x64,_0x4d7c2c:0x5e5,_0x4b87a7:0x5bd,_0xce03d3:0x517,_0x2b3f5e:0x1e7,_0x42260b:0x4ea,_0xd88d48:0x173,_0x27b17f:0x278,_0x1c7aa4:0x1c7,_0x3ec3fd:0x67f,_0x2d3467:0x5aa,_0x4c488f:0x645,_0x459556:0x1ae,_0x25c674:0xac,_0x3e293b:0x595,_0x135996:0x51c,_0x4f49f6:0x279,_0x539bfe:0x1ce,_0x4cd6ea:0x1cb,_0x3cd4ad:0x12a,_0x424054:0x66,_0x14d3b9:0x103,_0x239d2e:0x52f,_0x574b0f:0x4f2,_0x81b6dd:0x218,_0x2512f6:0x24a,_0x454a9d:0x5ef,_0x5f4d4e:0x287,_0x4b829f:0x209,_0x19db14:0x6b2,_0x3bfdbd:0x6de,_0x5ca90d:0x56f,_0x561fb8:0x6d1,_0x2fb347:0x5f5,_0x2c312f:0x4d5,_0x51e6ae:0x622,_0x3cb43d:0x90,_0x427955:0x130,_0x1cee87:0x16f,_0x1caec6:0x4c,_0x19b22f:0xcf,_0x113b92:0x1e9,_0x426f75:0x90,_0x14e2f0:0x674,_0x1af859:0x591,_0x5c8d99:0x60c,_0x36759c:0x264,_0x46150a:0x1a3,_0x426300:0x685,_0x1d4382:0x6e3,_0x23f3e0:0x2d1,_0x2bf068:0x418,_0x169249:0x5c8,_0x4b00b6:0x4ea},_0x5a2c70={_0x33ba40:0x302,_0x1467d8:0x37},_0x2e7639={_0x120f80:0x1cb,_0x25e4d7:0x1ad},_0x475fa8=_0x58a28f['split']('\x0a'),_0x2e1900=_0x475fa8[_0x46837c(0x5a6,0x593,0x5d8,_0xece62._0x3d52f3)](_0x18832e=>_0x18832e['startsWith'](_0x46837c(0x46f,0x4bc,0x54f,0x52b)))?.[_0x1008dd(0x1ef,0x132,0x226,_0xece62._0x547b04)](0x6)[_0x1008dd(_0xece62._0x344f66,_0xece62._0x2b51ed,_0xece62._0x522168,0x28e)]();function _0x1008dd(_0x1acaad,_0x549cff,_0x58769d,_0x8db6aa){return _0x551389(_0x1acaad-0x124,_0x8db6aa- -_0x2e7639._0x120f80,_0x1acaad,_0x8db6aa-_0x2e7639._0x25e4d7);}function _0x46837c(_0x2ddab1,_0x19fc3b,_0x2d3716,_0x90b92){return _0xf0dc29(_0x2d3716-_0x5a2c70._0x33ba40,_0x19fc3b-0x11b,_0x2ddab1,_0x90b92-_0x5a2c70._0x1467d8);}const _0x2bf804=_0x475fa8[_0x1008dd(0x223,_0xece62._0x22deac,0x1a2,0x16a)](_0x31271f=>_0x31271f[_0x1008dd(0x109,0x18c,0x185,0x105)](_0x46837c(0x6ee,0x729,0x6bb,0x6a5)))['map'](_0x4d57fb=>_0x4d57fb['slice'](0x5)[_0x1008dd(0x23e,0x334,0x28e,0x2cc)]())['join']('\x0a')[_0x46837c(_0xece62._0x80a67f,_0xece62._0x5a3b7d,0x67c,0x720)]();if(_0x2bf804['length']===0x0||_0x2bf804===_0x46837c(_0xece62._0x1b812f,0x54b,0x598,_0xece62._0x21b04e))return[];const _0x100b5b=JSON['parse'](_0x2bf804);switch(_0x2e1900){case _0x1008dd(_0xece62._0x14f0cf,0x9e,_0xece62._0x29f636,0x17a):{const _0x29b752=_0x100b5b['message'];this['messageId']=_0x29b752?.['id']??this[_0x46837c(0x5b0,_0xece62._0x2baf8a,0x667,0x6dc)],this[_0x1008dd(0x137,0x9f,_0xece62._0x5bffd6,0x104)]=_0x29b752?.[_0x1008dd(_0xece62._0x58a3b5,_0xece62._0x344aa1,0x49,_0xece62._0x1e462e)]?.[_0x46837c(0x4b4,_0xece62._0x3a9b0d,_0xece62._0x26901c,0x631)]??this[_0x1008dd(_0xece62._0x589026,_0xece62._0x2a8ee0,_0xece62._0x19107e,0x104)],this[_0x46837c(_0xece62._0x8f1378,0x73a,_0xece62._0xd21bf2,_0xece62._0x23d74a)]=_0x29b752?.['usage']?.[_0x1008dd(0x211,_0xece62._0x44e867,_0xece62._0x25d136,0x287)]??this[_0x46837c(_0xece62._0x5d6f6a,0x658,_0xece62._0x5058ce,0x6ca)],this[_0x46837c(_0xece62._0x37a5a8,_0xece62._0x2d038f,0x5b3,0x68e)]=_0x29b752?.[_0x46837c(0x4e3,0x59d,_0xece62._0x2faad7,0x458)]?.[_0x1008dd(_0xece62._0x2851e6,_0xece62._0xb5c4ae,_0xece62._0x34c9c2,0x2c3)]??this['cacheCreationInputTokens'];break;}case _0x1008dd(0x208,_0xece62._0x4d1b22,0x132,_0xece62._0x41cd6d):{const _0x2d791e=typeof _0x100b5b[_0x46837c(0x4b5,_0xece62._0x5cf07b,0x52c,0x4f5)]===_0x1008dd(0x2d9,_0xece62._0x2c5bea,0x2ec,0x203)?_0x100b5b[_0x1008dd(0x18c,0x1ec,_0xece62._0x296819,_0xece62._0x1a8925)]:0x0,_0x5e8075=_0x100b5b[_0x1008dd(_0xece62._0x5c761a,0x2da,_0xece62._0x1c10ae,0x28a)];if(_0x5e8075?.['type']===_0x1008dd(_0xece62._0x3afd9e,_0xece62._0x472426,0x1ef,_0xece62._0x491f6b)&&_0x5e8075['id']&&_0x5e8075[_0x1008dd(_0xece62._0x18b628,0x308,_0xece62._0xfa2b1e,_0xece62._0x44d4f0)])return this[_0x46837c(0x4ed,0x4ed,0x520,_0xece62._0x363fcb)][_0x46837c(0x5f8,_0xece62._0x4f439b,0x5b2,0x560)](_0x2d791e,{'id':_0x5e8075['id'],'index':_0x2d791e,'inputJson':JSON[_0x46837c(0x625,_0xece62._0x4d458f,0x5e0,0x5f1)](_0x5e8075[_0x46837c(0x6bb,_0xece62._0x49c789,_0xece62._0x2b40af,_0xece62._0xaa5f3e)]??{}),'kind':_0x46837c(_0xece62._0x17aba9,_0xece62._0x1bd99a,_0xece62._0x121de3,0x586),'name':_0x5e8075[_0x1008dd(0x186,0x251,_0xece62._0xb3aff7,_0xece62._0xafd7fc)]}),[{'type':'tool_use_delta','id':_0x5e8075['id'],'index':_0x2d791e,'name':_0x5e8075['name']}];if(_0x5e8075?.[_0x46837c(_0xece62._0x51431f,_0xece62._0x272ad4,0x4ea,0x59e)]==='thinking'){this[_0x1008dd(_0xece62._0x940ada,0x1dc,_0xece62._0x150a0e,_0xece62._0x322d0f)][_0x1008dd(0x297,_0xece62._0x2a8ee0,_0xece62._0x4d8b0f,0x1c4)](_0x2d791e,{'index':_0x2d791e,'kind':_0x1008dd(0x13f,_0xece62._0x5eb71b,0x105,0x134),'signature':typeof _0x5e8075[_0x46837c(_0xece62._0x932b77,0x59a,0x503,0x465)]===_0x1008dd(_0xece62._0x417d58,_0xece62._0x5443ff,0x20d,0x21d)?_0x5e8075[_0x1008dd(_0xece62._0x303985,0x3e,0x63,_0xece62._0x12ccbf)]:'','thinking':typeof _0x5e8075[_0x46837c(_0xece62._0x5439dc,0x4a0,_0xece62._0x1f8a44,_0xece62._0x4ef32b)]==='string'?_0x5e8075[_0x46837c(_0xece62._0x3b4015,0x540,0x4ec,_0xece62._0x41015b)]:typeof _0x5e8075['thinking']===_0x1008dd(_0xece62._0x26ee54,0x195,0x247,_0xece62._0x14f998)?String(_0x5e8075[_0x46837c(_0xece62._0x4c9ee6,_0xece62._0x46a3e8,0x522,_0xece62._0x48aeab)]):''});break;}if(_0x5e8075?.[_0x46837c(_0xece62._0x44de62,_0xece62._0x1f8a44,0x4ea,0x564)]===_0x46837c(0x509,_0xece62._0xd57a66,_0xece62._0x2fb2df,0x63b)){this[_0x46837c(0x60b,0x514,_0xece62._0x5be5b6,0x5da)][_0x1008dd(0x1ca,0x1b0,0x17c,_0xece62._0x28bf26)](_0x2d791e,{'index':_0x2d791e,'kind':_0x46837c(0x514,_0xece62._0x3faa7f,0x5c6,0x5cb),'data':typeof _0x5e8075[_0x46837c(_0xece62._0x54b8ec,_0xece62._0x48d99d,0x5d3,_0xece62._0x864a69)]===_0x1008dd(0x191,0x293,0x2cc,_0xece62._0x240959)?String(_0x5e8075[_0x1008dd(0x176,0x221,_0xece62._0x2f25be,_0xece62._0x419419)]):''});break;}this[_0x46837c(_0xece62._0x5bc609,_0xece62._0x19d84f,0x520,_0xece62._0x3c0e59)][_0x1008dd(_0xece62._0x138545,0x205,_0xece62._0x111049,0x1c4)](_0x2d791e,{'index':_0x2d791e,'kind':'text','text':_0x5e8075?.[_0x1008dd(0x86,_0xece62._0x2259fc,_0xece62._0x43fd18,0xfe)]??''});break;}case _0x1008dd(0x348,_0xece62._0x308b13,_0xece62._0x5530a1,0x274):{const _0xdd5aca=typeof _0x100b5b[_0x1008dd(_0xece62._0x250cc7,_0xece62._0x4d0459,_0xece62._0x246f7c,_0xece62._0x1fcc1b)]===_0x1008dd(0x2aa,0x201,_0xece62._0x4c3f1b,_0xece62._0x121aed)?_0x100b5b['index']:0x0,_0x574493=this[_0x46837c(0x554,0x471,0x520,_0xece62._0x92a81a)]['get'](_0xdd5aca),_0x47fcf5=_0x100b5b[_0x46837c(0x57e,0x49e,_0xece62._0x2342e4,_0xece62._0x262981)];if(!_0x574493||!_0x47fcf5?.['type'])break;if(_0x47fcf5['type']===_0x46837c(_0xece62._0x45d72a,_0xece62._0x3ce047,_0xece62._0x31bdb1,0x6a2)&&_0x574493[_0x1008dd(_0xece62._0x4dc46f,_0xece62._0x4c7e1c,0x16a,_0xece62._0x1a9314)]==='text'&&typeof _0x47fcf5['text']===_0x1008dd(0x290,0x272,_0xece62._0x4e7d60,0x21d))return _0x574493['text']+=_0x47fcf5[_0x46837c(0x543,_0xece62._0x1340ef,_0xece62._0x1f8a44,0x490)],[{'type':_0x1008dd(_0xece62._0x3ae411,0x1bb,_0xece62._0x5d316f,0x2a8),'index':_0xdd5aca,'text':_0x47fcf5[_0x1008dd(_0xece62._0x440931,0x7a,_0xece62._0xa14477,0xfe)]}];if(_0x47fcf5[_0x46837c(_0xece62._0x56d0a6,0x525,0x4ea,0x5bd)]===_0x46837c(0x548,0x62e,_0xece62._0x59bd0e,0x4f6)&&_0x574493[_0x1008dd(_0xece62._0x2ac063,0x293,0x287,0x1bc)]===_0x1008dd(_0xece62._0x83d317,_0xece62._0x1245cb,_0xece62._0x10f5fa,_0xece62._0x491f6b)&&typeof _0x47fcf5['partial_json']==='string')return _0x574493['inputJson']==='{}'&&(_0x574493['inputJson']=''),_0x574493['inputJson']+=_0x47fcf5[_0x46837c(_0xece62._0x78fdf4,_0xece62._0x1d8e77,0x60f,0x528)],[{'type':'tool_use_delta','id':_0x574493['id'],'index':_0xdd5aca,'inputDelta':_0x47fcf5[_0x46837c(_0xece62._0x569caf,0x6b8,_0xece62._0x18b31e,0x668)]}];if(_0x47fcf5['type']==='thinking_delta'&&_0x574493[_0x1008dd(_0xece62._0x8e92c0,0xf7,0x231,_0xece62._0x4620af)]===_0x46837c(_0xece62._0x7bace6,_0xece62._0x5a0778,_0xece62._0x4e0947,_0xece62._0x1f7814)){const _0x26d3f3=typeof _0x47fcf5[_0x1008dd(_0xece62._0x4d8dfd,0x180,0x1e2,_0xece62._0x27602a)]===_0x1008dd(0x2f4,0x1b8,_0xece62._0x12e18f,_0xece62._0x14f998)?String(_0x47fcf5[_0x46837c(_0xece62._0x4a4f45,_0xece62._0x23eab2,0x522,0x4fb)]):'';if(_0x26d3f3[_0x1008dd(_0xece62._0x2c4bcd,_0xece62._0x5884b8,0x1fc,_0xece62._0x40aa48)]>0x0){_0x574493[_0x1008dd(0x173,_0xece62._0x22fecf,0x16e,_0xece62._0x58a3b5)]+=_0x26d3f3;if(isUserVisibleThinking(this[_0x46837c(0x5dc,_0xece62._0x4d7c2c,_0xece62._0x4b87a7,_0xece62._0xce03d3)]))return[{'type':_0x1008dd(_0xece62._0x2b3f5e,0x100,0x1ff,_0xece62._0x150a0e),'index':_0xdd5aca,'thinking':_0x26d3f3}];}}if(_0x47fcf5[_0x46837c(0x51d,0x411,_0xece62._0x42260b,0x54d)]===_0x1008dd(_0xece62._0xd88d48,_0xece62._0x27b17f,0x203,_0xece62._0x1c7aa4)&&_0x574493[_0x46837c(0x4e8,_0xece62._0x3ec3fd,_0xece62._0x2d3467,_0xece62._0x4c488f)]===_0x1008dd(0x51,_0xece62._0x459556,0x17f,0x134)){const _0x5d73e6=typeof _0x47fcf5[_0x1008dd(0x17b,_0xece62._0x459556,0xc8,0x115)]===_0x1008dd(0x18b,0x2e3,0x23d,0x21d)?String(_0x47fcf5[_0x1008dd(0x4b,0xf2,_0xece62._0x25c674,0x115)]):'';if(_0x5d73e6[_0x46837c(0x67b,0x519,_0xece62._0x3e293b,_0xece62._0x135996)]>0x0){_0x574493[_0x1008dd(0x1f9,0x11b,0x33,0x115)]=_0x5d73e6;if(isUserVisibleThinking(this['request']))return[{'type':'anthropic_signature_delta','index':_0xdd5aca,'signature':_0x5d73e6}];}}break;}case _0x1008dd(0x105,0x286,_0xece62._0x4f49f6,_0xece62._0x539bfe):{const _0x5e4620=_0x100b5b[_0x1008dd(_0xece62._0x4cd6ea,_0xece62._0x3cd4ad,_0xece62._0x424054,_0xece62._0x14d3b9)],_0xf5ddf4=_0x100b5b['usage'];this[_0x46837c(_0xece62._0x239d2e,0x469,_0xece62._0x574b0f,0x411)]=_0xf5ddf4?.[_0x1008dd(_0xece62._0x81b6dd,_0xece62._0x2512f6,0x23a,0x199)]??this['inputTokens'],this[_0x46837c(0x710,_0xece62._0x454a9d,0x655,0x613)]=_0xf5ddf4?.[_0x1008dd(0x2a3,0x206,0x1a8,_0xece62._0x5f4d4e)]??this['cacheReadInputTokens'],this[_0x1008dd(0x1ff,_0xece62._0x4b829f,_0xece62._0x81b6dd,0x1c5)]=_0xf5ddf4?.['cache_creation_input_tokens']??this[_0x1008dd(0x18d,0x216,0x12a,0x1c5)],this[_0x46837c(0x6d8,_0xece62._0x19db14,0x5f5,_0xece62._0x3bfdbd)]=_0xf5ddf4?.['output_tokens']??this[_0x46837c(_0xece62._0x5ca90d,_0xece62._0x561fb8,_0xece62._0x2fb347,0x56d)],this[_0x46837c(_0xece62._0x2c312f,0x64c,0x5ad,_0xece62._0x51e6ae)]=_0x5e4620?.[_0x1008dd(_0xece62._0x4d8dfd,0xb6,_0xece62._0x3cb43d,_0xece62._0x427955)]===_0x1008dd(0x79,_0xece62._0x1cee87,0x63,_0xece62._0x491f6b)?_0x1008dd(0x177,_0xece62._0x1caec6,_0xece62._0x19b22f,0x10f):_0x1008dd(_0xece62._0x113b92,0x15d,_0xece62._0x426f75,0x17c);break;}case _0x46837c(_0xece62._0x14e2f0,0x56b,_0xece62._0x1af859,_0xece62._0x5c8d99):{const _0x1ddf98=_0x100b5b[_0x1008dd(0x1fc,0x17c,_0xece62._0x36759c,_0xece62._0x46150a)];throw new ProviderStreamEventError(_0x1ddf98?.[_0x46837c(0x5b8,0x5b9,_0xece62._0x426300,_0xece62._0x1d4382)]??_0x1008dd(0x393,0x1e9,0x2ce,_0xece62._0x23f3e0),{'code':_0x1ddf98?.[_0x46837c(_0xece62._0x2bf068,_0xece62._0x169249,_0xece62._0x4b00b6,0x5c0)],'retryable':!![]});}}return[];}['finish'](){const _0x4add75={_0x48b0f8:0xc4,_0x4b612a:0x110,_0x22e618:0x99,_0x50da6d:0x90,_0x107038:0xd3,_0x5baf54:0x35,_0x4ef41b:0x7d,_0x465fd1:0x12b,_0x399e37:0xae,_0x32f221:0x57,_0x2d193a:0x141,_0x54996a:0x4f,_0x39cbfa:0x96,_0x4b0916:0x17d,_0x82b1c9:0xc1,_0x168978:0xc2,_0x52b390:0x4,_0x2ebc84:0x26,_0x454e00:0x4e,_0x2dfff1:0x5d,_0x2998ce:0x84,_0x4abfdf:0x2,_0x5c85f5:0x148,_0x339572:0x61,_0x43ab7c:0xd2,_0x22f97a:0x118,_0x451fbc:0x55,_0x24b851:0xf,_0x3193ef:0xcd,_0x29af0e:0xd,_0x3e4968:0x1e,_0xa99477:0x48,_0x5e8089:0x3,_0x246d59:0x8,_0x14f6f5:0x21,_0x45961e:0x39,_0xc066ae:0x41,_0x27a0be:0xc1,_0x20318d:0x34,_0x215bd3:0xe,_0x425aa7:0x188,_0x1237cf:0x7,_0x5a43de:0xa5,_0x49d2f9:0xb4,_0x1012a4:0x8d,_0x13c53a:0x17,_0x307236:0x15a,_0x3a817b:0x1,_0x5be8fe:0x51,_0x2ed2ca:0xd3,_0x10732a:0x32,_0x595483:0x2f},_0x5044a7={_0xc6356a:0x3d1};function _0x52ae5f(_0x353dd1,_0x11614c,_0x360f6c,_0xf03bb){return _0x551389(_0x353dd1-0x9b,_0x353dd1- -0x383,_0x11614c,_0xf03bb-0xdb);}const _0x1e180f=Array[_0x52ae5f(_0x4add75._0x48b0f8,_0x4add75._0x4b612a,-0x26,0x121)](this[_0x5b1516(-0x12c,-0xd4,-_0x4add75._0x22e618,-0x5)][_0x5b1516(0x24,_0x4add75._0x50da6d,0x144,_0x4add75._0x107038)]())[_0x5b1516(_0x4add75._0x5baf54,_0x4add75._0x4ef41b,_0x4add75._0x465fd1,0x118)]((_0x1dcb4d,_0x4ae4ba)=>_0x1dcb4d[_0x5b1516(-0x1b8,-0xc8,-0x15f,-0xf4)]-_0x4ae4ba[_0x52ae5f(-0x7a,-0x3c,-0x134,-0x167)]),_0x27dd04=[];for(const _0x5008df of _0x1e180f){if(_0x5008df[_0x52ae5f(0x4,0x55,-_0x4add75._0x399e37,_0x4add75._0x32f221)]===_0x5b1516(-0x172,-0x108,-_0x4add75._0x2d193a,-0x8d)){_0x5008df[_0x5b1516(-_0x4add75._0x54996a,-0x108,-0xa1,-_0x4add75._0x39cbfa)]['length']>0x0&&_0x27dd04[_0x5b1516(_0x4add75._0x4b0916,_0x4add75._0x82b1c9,-0x28,_0x4add75._0x168978)]({'type':'text','text':_0x5008df['text']});continue;}if(_0x5008df[_0x52ae5f(_0x4add75._0x52b390,0xe,_0x4add75._0x2ebc84,-0x42)]===_0x52ae5f(-0x84,_0x4add75._0x454e00,-0x158,-_0x4add75._0x2dfff1)){_0x27dd04['push']({'type':_0x52ae5f(-_0x4add75._0x2998ce,_0x4add75._0x4abfdf,-_0x4add75._0x5c85f5,_0x4add75._0x339572),'thinking':_0x5008df[_0x5b1516(-0x10d,-_0x4add75._0x43ab7c,-_0x4add75._0x22f97a,-0xbd)],'signature':_0x5008df[_0x52ae5f(-0xa3,-_0x4add75._0x451fbc,0x20,_0x4add75._0x24b851)]});continue;}if(_0x5008df[_0x52ae5f(_0x4add75._0x52b390,-_0x4add75._0x3193ef,-_0x4add75._0x29af0e,_0x4add75._0x3e4968)]===_0x5b1516(-_0x4add75._0xa99477,-0x2e,-0x11b,0x96)){_0x27dd04[_0x5b1516(-_0x4add75._0x5e8089,_0x4add75._0x82b1c9,0xaf,-_0x4add75._0x246d59)]({'type':_0x5b1516(-0xa,-0x2e,-0x16,0x6d),'data':_0x5008df[_0x5b1516(0x96,-_0x4add75._0x14f6f5,-0x75,-0x105)]});continue;}_0x27dd04[_0x5b1516(0x183,_0x4add75._0x82b1c9,_0x4add75._0x45961e,0x19c)]({'type':'tool_use','id':_0x5008df['id'],'name':_0x5008df['name'],'input':parseToolInput(_0x5008df['inputJson'][_0x5b1516(-_0x4add75._0xc066ae,-0x5f,-0x10b,0x2c)]>0x0?_0x5008df['inputJson']:'{}')});}function _0x5b1516(_0x473e0e,_0x2136a3,_0x520a20,_0x52fcd9){return _0x551389(_0x473e0e-0x66,_0x2136a3- -_0x5044a7._0xc6356a,_0x520a20,_0x52fcd9-0x144);}return parseAnthropicResponse({'id':this[_0x52ae5f(_0x4add75._0x27a0be,0xad,0x14,_0x4add75._0x20318d)],'type':_0x52ae5f(0xdf,-_0x4add75._0x215bd3,0xe4,_0x4add75._0x425aa7),'role':'assistant','content':_0x27dd04,'stop_reason':this[_0x52ae5f(_0x4add75._0x1237cf,0x91,-_0x4add75._0x5a43de,0x1b)],'stop_sequence':null,'usage':{'input_tokens':this[_0x52ae5f(-_0x4add75._0x49d2f9,-_0x4add75._0x1012a4,-_0x4add75._0x13c53a,-_0x4add75._0x307236)],'output_tokens':this[_0x5b1516(0x52,_0x4add75._0x3a817b,-_0x4add75._0x5be8fe,0x3c)],'cache_read_input_tokens':this[_0x5b1516(_0x4add75._0x2ed2ca,_0x4add75._0x339572,-0xf,-_0x4add75._0x10732a)],'cache_creation_input_tokens':this[_0x5b1516(_0x4add75._0x595483,-0x41,0x8a,-0xfe)]}},this['request']);}};function createAnthropicSurfaces(){const _0x47dcc9={_0x2fe5db:0x57a,_0x1c962a:0x582,_0x37cf3d:0x568,_0x37e093:0x4c8,_0x32ba66:0x48c},_0x5e2995={_0x30de1d:0x122,_0x1e508b:0xd5,_0x4b9916:0xf2},_0x30a347={_0x14977c:0x49,_0x491031:0x55};function _0x58c16d(_0x36ad77,_0x5b7e09,_0x47f03e,_0x16a283){return _0x551389(_0x36ad77-_0x30a347._0x14977c,_0x16a283-0x1aa,_0x47f03e,_0x16a283-_0x30a347._0x491031);}function _0x10f117(_0x4aaf5a,_0x61dd67,_0x3b6af6,_0x222373){return _0xf0dc29(_0x222373-_0x5e2995._0x30de1d,_0x61dd67-_0x5e2995._0x1e508b,_0x4aaf5a,_0x222373-_0x5e2995._0x4b9916);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x58c16d(_0x47dcc9._0x2fe5db,0x629,_0x47dcc9._0x1c962a,_0x47dcc9._0x37cf3d),'createRequest'(_0x11bd1e){return createAnthropicRequest(_0x11bd1e,![]);},'parseResponse'(_0x33172a,_0x2a2dbf){return parseAnthropicResponse(_0x33172a,_0x2a2dbf);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x10f117(0x3d2,0x551,_0x47dcc9._0x37e093,_0x47dcc9._0x32ba66),'createRequest'(_0x5bb334){return createAnthropicRequest(_0x5bb334,!![]);},'createStreamParser'(_0x1582ad){return new AnthropicMessagesStreamParser(_0x1582ad);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];['streamSurface'];constructor(_0x311c56){const _0x16a7d7={_0x7c69d8:0x347,_0xd54d52:0x363,_0x3d7793:0x231,_0x2d14ff:0x171,_0x4085b3:0x1b8,_0x1afc1c:0x1ca,_0x67e74a:0x1eb};function _0x404e9c(_0x90b3da,_0x5b6356,_0x15d212,_0x322ee7){return _0x551389(_0x90b3da-0xe9,_0x90b3da- -0x1b7,_0x5b6356,_0x322ee7-0x1ac);}function _0x2261b0(_0x575f6d,_0x3899f6,_0x1f5ad7,_0xee67ef){return _0x551389(_0x575f6d-0x123,_0x1f5ad7- -0x25,_0xee67ef,_0xee67ef-0x179);}this[_0x404e9c(0x2e4,_0x16a7d7._0x7c69d8,_0x16a7d7._0xd54d52,_0x16a7d7._0x3d7793)]=_0x311c56['complete'],this[_0x404e9c(0x158,0x180,_0x16a7d7._0x2d14ff,0x13e)]=_0x311c56[_0x404e9c(0x247,_0x16a7d7._0x4085b3,_0x16a7d7._0x1afc1c,_0x16a7d7._0x67e74a)];}[_0xf0dc29(0x269,0x2c9,0x208,0x1c3)](_0x5d1a54,_0x938334){const _0x121f96={_0x1ca7d5:0x186,_0x20d84d:0x1b0,_0x818a40:0x189,_0x430f27:0x22b,_0x15dead:0x296,_0x5d523e:0x3c1,_0x4a04ed:0x3f4,_0xdbce37:0x54d},_0x596c45={_0x59eb3c:0x191,_0x2df84b:0x25},_0x3e76cf={_0x445377:0xf4,_0x489d09:0x1d5};function _0x1617b6(_0x182d47,_0x251a37,_0x2cf30a,_0x1db108){return _0xf0dc29(_0x251a37- -_0x3e76cf._0x445377,_0x251a37-_0x3e76cf._0x489d09,_0x2cf30a,_0x1db108-0x26);}function _0x58ebf0(_0x262391,_0x4f641e,_0x2244f2,_0x175980){return _0xf0dc29(_0x2244f2-_0x596c45._0x59eb3c,_0x4f641e-_0x596c45._0x2df84b,_0x175980,_0x175980-0x55);}return _0x938334[_0x1617b6(0x222,_0x121f96._0x1ca7d5,_0x121f96._0x20d84d,0x156)]===_0x1617b6(_0x121f96._0x818a40,_0x121f96._0x430f27,0x1e3,_0x121f96._0x15dead)?this[_0x58ebf0(0x32e,0x435,_0x121f96._0x5d523e,_0x121f96._0x4a04ed)]:this[_0x58ebf0(0x57c,0x530,_0x121f96._0xdbce37,0x4ea)];}};function trimTrailingSlashes(_0x2cbeb7){return _0x2cbeb7['replace'](/\/+$/,'');}function resolveApiCredential(_0x2f6d7a,_0x12e5d8){const _0x1ca0e6={_0x22b3da:0x677,_0x3dee6d:0x5dd,_0x3b3e2f:0x5dc,_0x220ff1:0x56b},_0x44acee={_0x3e6577:0xe3},_0x5286b1={_0x30d82a:0xb6,_0x145922:0x138,_0x35c0a6:0x193};function _0x3493ba(_0x47c114,_0x290478,_0x4cb795,_0x359cb9){return _0x551389(_0x47c114-_0x5286b1._0x30d82a,_0x359cb9-_0x5286b1._0x145922,_0x4cb795,_0x359cb9-_0x5286b1._0x35c0a6);}if(_0x12e5d8?.[_0x54298c(0x54b,0x670,0x5dc,0x661)])return _0x12e5d8[_0x54298c(_0x1ca0e6._0x22b3da,_0x1ca0e6._0x3dee6d,_0x1ca0e6._0x3b3e2f,_0x1ca0e6._0x220ff1)];function _0x54298c(_0x5b950d,_0x355ac4,_0x2f7a44,_0x25e343){return _0xf0dc29(_0x2f7a44-0x2b8,_0x355ac4-_0x44acee._0x3e6577,_0x355ac4,_0x25e343-0x1b);}if(!_0x2f6d7a)return void 0x0;return{'kind':_0x54298c(0x51e,0x540,0x4dc,0x47a),'value':_0x2f6d7a};}function resolveSessionBaseUrl(_0x119fe6,_0x713172){const _0x149d29={_0x4bcf50:0x13f,_0x3400f7:0x228},_0x431fd8={_0x3f5ae1:0x1b7,_0x2372df:0xda},_0x5d64ea={_0x32487f:0x85,_0x15d272:0x1df};function _0x32f81a(_0x45ab53,_0x403162,_0x1e25a6,_0x35c9c8){return _0xf0dc29(_0x45ab53-_0x5d64ea._0x32487f,_0x403162-_0x5d64ea._0x15d272,_0x403162,_0x35c9c8-0x1dd);}function _0x1e1ed1(_0x1d404b,_0xd421d5,_0x15036f,_0x819ade){return _0xf0dc29(_0x1d404b- -0xce,_0xd421d5-_0x431fd8._0x3f5ae1,_0x15036f,_0x819ade-_0x431fd8._0x2372df);}return trimTrailingSlashes(_0x713172?.[_0x1e1ed1(0x2d9,0x3b4,0x20d,0x3b2)]?.[_0x1e1ed1(_0x149d29._0x4bcf50,0x13d,0x142,_0x149d29._0x3400f7)]??_0x119fe6);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':_0xf0dc29(0x2dd,0x263,0x2df,0x2cd),'cliDefaultModel':_0x551389(0x28b,0x326,0x2d3,0x286),'providers':{'anthropic':{'label':_0xf0dc29(0x2e6,0x35b,0x2a2,0x377),'baseUrl':'https://api.anthropic.com','surface':'anthropic-messages','authScheme':'x-api-key','defaultModel':_0x551389(0x454,0x37c,0x3c4,0x30b),'defaultModels':[_0x551389(0x389,0x37c,0x305,0x391),_0x551389(0x372,0x3b1,0x442,0x3d8)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x551389(0x412,0x41e,0x398,0x4f6),'baseUrl':_0x551389(0x356,0x327,0x3e9,0x3b8),'anthropicBaseUrl':_0xf0dc29(0x260,0x1f6,0x2da,0x303),'surface':'anthropic-messages','authScheme':_0xf0dc29(0x291,0x33e,0x34c,0x2e2),'defaultModel':_0xf0dc29(0x247,0x163,0x2cd,0x281),'defaultModels':[_0x551389(0x396,0x3aa,0x398,0x32c),_0x551389(0x3f3,0x477,0x4db,0x3a4),'glm-4.7',_0xf0dc29(0x361,0x3b2,0x293,0x2a5),'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':_0x551389(0x33d,0x313,0x2e2,0x280),'surface':_0xf0dc29(0x39b,0x48a,0x3e4,0x44c),'authScheme':'bearer','defaultModel':_0x551389(0x441,0x3c3,0x487,0x465),'defaultModels':[_0xf0dc29(0x2e4,0x394,0x22c,0x39a),_0xf0dc29(0x30c,0x289,0x25d,0x254)],'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':_0xf0dc29(0x257,0x2de,0x325,0x292),'surface':_0xf0dc29(0x2d7,0x1f7,0x32c,0x213),'defaultModel':_0x551389(0x2d2,0x3c0,0x2ec,0x3bb),'defaultModels':[_0x551389(0x34c,0x32d,0x3ac,0x34b),_0x551389(0x40d,0x3a1,0x3b9,0x371),_0x551389(0x40a,0x3ee,0x3fc,0x4d9),'gpt-5-mini',_0x551389(0x465,0x380,0x347,0x427),_0xf0dc29(0x202,0x284,0x269,0x2a4)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x551389(0x3ae,0x48b,0x3f1,0x4d7)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0xf0dc29(0x3ac,0x3bd,0x372,0x2c0)},'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}}},'openai':{'label':'OpenAI','baseUrl':_0xf0dc29(0x281,0x1cb,0x26f,0x306),'surface':'openai-chat-completions','authScheme':'bearer','defaultModel':'gpt-4o','defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x551389(0x40b,0x338,0x384,0x24a),'baseUrl':_0xf0dc29(0x262,0x28d,0x2c1,0x22f),'surface':_0xf0dc29(0x3ac,0x431,0x31c,0x33d),'authScheme':_0x551389(0x403,0x370,0x282,0x35d),'defaultModel':_0x551389(0x3b3,0x3de,0x484,0x346),'defaultModels':[_0xf0dc29(0x2ff,0x378,0x361,0x363),_0xf0dc29(0x3a2,0x2e9,0x47e,0x375)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':'MiniMax','baseUrl':_0xf0dc29(0x228,0x2e6,0x13d,0x161),'surface':_0xf0dc29(0x3ac,0x2d4,0x417,0x2f9),'authScheme':_0xf0dc29(0x291,0x2c8,0x2f6,0x2fb),'defaultModel':_0x551389(0x481,0x3ab,0x2fa,0x47a),'defaultModels':[_0xf0dc29(0x2cc,0x28e,0x32e,0x1e1)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x551389(0x445,0x3ea,0x345,0x31e),'baseUrl':_0xf0dc29(0x354,0x35c,0x373,0x341),'modelsBaseUrl':_0x551389(0x288,0x321,0x283,0x39f),'surface':_0xf0dc29(0x3ac,0x2e1,0x3a8,0x45e),'authScheme':_0xf0dc29(0x306,0x345,0x23b,0x3ce),'defaultModel':'claude-sonnet-4-20250514','defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x551389(0x50f,0x42c,0x3cc,0x40f),'baseUrl':_0x551389(0x3fb,0x366,0x2eb,0x353),'modelsBaseUrl':_0x551389(0x35c,0x43a,0x51e,0x41f),'surface':_0x551389(0x3a4,0x48b,0x564,0x3bc),'authScheme':'x-api-key','defaultModel':_0x551389(0x41e,0x389,0x3b9,0x32d),'defaultModels':[_0xf0dc29(0x2aa,0x393,0x260,0x2f2)],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default;function findProviderKey(_0x352ce9){const _0x46e202={_0x5844d1:0x231,_0x5af2f3:0x1ff,_0x4a6c42:0x1f5,_0x323e72:0x232,_0x491cc8:0x94,_0x3c3125:0x172,_0x454126:0x27d,_0x5534ad:0x16b},_0x305677={_0x1ca53e:0x83,_0x34e6b1:0x206,_0x11abe4:0x1c4},_0x3ac00b={_0x14c950:0x9a,_0x32b49f:0x19},_0x12c095=_0x352ce9[_0x321dc0(_0x46e202._0x5844d1,0x268,_0x46e202._0x5af2f3,_0x46e202._0x4a6c42)]();function _0x578680(_0x4d2782,_0x2d25ce,_0x5caf62,_0x18d57d){return _0xf0dc29(_0x2d25ce- -0x47f,_0x2d25ce-_0x3ac00b._0x14c950,_0x18d57d,_0x18d57d-_0x3ac00b._0x32b49f);}function _0x321dc0(_0x818ee5,_0x1c1aeb,_0x477ef5,_0x1e1a93){return _0x551389(_0x818ee5-_0x305677._0x1ca53e,_0x477ef5- -_0x305677._0x34e6b1,_0x818ee5,_0x1e1a93-_0x305677._0x11abe4);}return Object[_0x578680(-_0x46e202._0x323e72,-0x1aa,-0x1d4,-0x1bc)](data[_0x321dc0(0x193,_0x46e202._0x491cc8,_0x46e202._0x3c3125,0x1b9)])[_0x578680(-_0x46e202._0x454126,-0x1a9,-_0x46e202._0x5534ad,-0x261)](_0xb6d407=>_0xb6d407[_0x578680(-0x1ef,-0x159,-0x110,-0x188)]()===_0x12c095);}function getProviderProfile(_0x1d86f4){const _0x130acc={_0x11fe23:0x18,_0x3a52ff:0x8f,_0x354c3b:0x55,_0x2b3566:0xc,_0x18d4f7:0x102,_0x4a346d:0x47,_0xca3b0f:0x49,_0x23f1e6:0x5b,_0x5f154d:0x85,_0x1b210e:0x14f,_0x343bfb:0x7a,_0x47216b:0x5c,_0xc52d2e:0xdd,_0x1d089d:0x83,_0x3297b2:0x53,_0x1a6f34:0x9,_0x1e2c46:0x13b,_0x321767:0x19c,_0x23d36b:0x5f,_0x227927:0x196,_0x2f5e6:0x11d,_0x20732c:0x1c4},_0x21a594={_0x15206e:0x34f,_0x2f9c2f:0x4a},_0x5f5240=findProviderKey(_0x1d86f4);if(!_0x5f5240)return void 0x0;function _0x49e320(_0x544339,_0x548b66,_0x46a316,_0x590af1){return _0xf0dc29(_0x46a316- -_0x21a594._0x15206e,_0x548b66-_0x21a594._0x2f9c2f,_0x548b66,_0x590af1-0x164);}const _0x45c54c=data[_0x49e320(0x1,0x15,-0xb6,_0x130acc._0x11fe23)][_0x5f5240],_0x38bf2a={};function _0x458a1d(_0x3139fa,_0x3063c3,_0x5df16a,_0x3ca97e){return _0x551389(_0x3139fa-0x1db,_0x3ca97e- -0x3d8,_0x3063c3,_0x3ca97e-0x1ab);}for(const [_0x4a0322,_0x21a8f9]of Object[_0x49e320(_0x130acc._0x3a52ff,0x109,_0x130acc._0x354c3b,0x116)](_0x45c54c[_0x458a1d(-0x13,0x153,-0x2f,0x8b)])){_0x38bf2a[_0x4a0322]=_0x21a8f9;}return{'label':_0x45c54c[_0x49e320(0x10,-_0x130acc._0x2b3566,-0x68,-_0x130acc._0x18d4f7)],'baseUrl':_0x45c54c[_0x458a1d(-0x4e,_0x130acc._0x4a346d,-_0x130acc._0xca3b0f,0x3e)],'modelsBaseUrl':_0x45c54c[_0x49e320(-0x101,_0x130acc._0x23f1e6,-_0x130acc._0x5f154d,0x49)],'anthropicBaseUrl':_0x45c54c[_0x458a1d(_0x130acc._0x1b210e,-_0x130acc._0x343bfb,0x80,0x6b)],'surface':_0x45c54c[_0x49e320(_0x130acc._0x47216b,-_0x130acc._0xc52d2e,0xa,_0x130acc._0x1d089d)],'authScheme':_0x45c54c[_0x458a1d(0x5d,-_0x130acc._0x3297b2,-0x8e,_0x130acc._0x1a6f34)],'defaultModel':_0x45c54c[_0x458a1d(0x71,_0x130acc._0x1e2c46,_0x130acc._0x321767,0xb2)],'defaultModels':_0x45c54c[_0x49e320(-_0x130acc._0x23d36b,-_0x130acc._0x227927,-_0x130acc._0x2f5e6,-_0x130acc._0x20732c)]??[],'supportsModelFetch':_0x45c54c['supportsModelFetch']??![],'models':_0x38bf2a};}function getModelProfile(_0x5f2149,_0x4d8527){const _0x351c48={_0x1b2f02:0x221,_0x5f2506:0x1a2,_0x5df42a:0x123},_0x25559b={_0x2915f3:0xc2},_0x43f2d7={_0x3bb9de:0x4a7};function _0x14f4b3(_0x32a124,_0x3366ab,_0x3f4c9b,_0x208db8){return _0xf0dc29(_0x32a124- -_0x43f2d7._0x3bb9de,_0x3366ab-0x1db,_0x3366ab,_0x208db8-0x84);}const _0x3c7498=findProviderKey(_0x5f2149);if(!_0x3c7498)return void 0x0;function _0xec2092(_0x598d4d,_0x2a49ec,_0x19d218,_0x364570){return _0xf0dc29(_0x19d218- -0x43b,_0x2a49ec-0xe1,_0x364570,_0x364570-_0x25559b._0x2915f3);}return data[_0xec2092(-_0x351c48._0x1b2f02,-0x25c,-_0x351c48._0x5f2506,-0x281)][_0x3c7498][_0x14f4b3(-_0x351c48._0x5df42a,-0x68,-0xb4,-0x64)][_0x4d8527];}function resolveModelProfile(_0x404aa9,_0x2c0bdd){const _0x5cc90d={_0x4927c5:0x4b5,_0x5d06db:0x419,_0x331eef:0x3cd,_0x1a0075:0x4a3,_0x5481d6:0x511,_0x132211:0x3a1,_0xdae24b:0x3da,_0x365676:0x52f,_0x56679f:0x46b,_0x5eb7ae:0x481,_0xd8282f:0x3c2,_0x3400f1:0x48c,_0x48a72c:0x437,_0x257ccf:0x48d,_0x223e83:0x41b,_0x39f9cf:0x4f2,_0x4dccad:0x35d,_0x40ede2:0x37d,_0xbfbec1:0x403,_0x32df02:0x43b},_0x483598={_0x2e6abf:0x9d},_0x4cbd93={_0x346ff2:0x12b,_0x48c4b2:0x1dc,_0x4a7a98:0x7a},_0x3fc3a9=findProviderKey(_0x404aa9);if(!_0x3fc3a9)return void 0x0;const _0x1a944d=data[_0x38fcba(_0x5cc90d._0x4927c5,_0x5cc90d._0x5d06db,_0x5cc90d._0x331eef,0x3a0)][_0x3fc3a9];function _0x2332c4(_0x40615a,_0x71c6f3,_0x5e5190,_0x2fa409){return _0xf0dc29(_0x2fa409-_0x4cbd93._0x346ff2,_0x71c6f3-_0x4cbd93._0x48c4b2,_0x40615a,_0x2fa409-_0x4cbd93._0x4a7a98);}function _0x38fcba(_0xe53a55,_0x1b01fe,_0xb7ce07,_0x1b4111){return _0x551389(_0xe53a55-_0x483598._0x2e6abf,_0xb7ce07-0x55,_0xe53a55,_0x1b4111-0x97);}const _0x53c84c=_0x1a944d[_0x2332c4(_0x5cc90d._0x1a0075,0x4e5,_0x5cc90d._0x5481d6,0x4af)][_0x2c0bdd];return{'label':_0x1a944d[_0x38fcba(_0x5cc90d._0x132211,0x36e,0x41b,0x4c4)],'baseUrl':_0x1a944d[_0x38fcba(_0x5cc90d._0xdae24b,_0x5cc90d._0x365676,_0x5cc90d._0x56679f,_0x5cc90d._0x5eb7ae)],'modelsBaseUrl':_0x1a944d[_0x2332c4(_0x5cc90d._0xd8282f,_0x5cc90d._0x3400f1,_0x5cc90d._0x48a72c,0x3f5)],'anthropicBaseUrl':_0x1a944d['anthropicBaseUrl'],'surface':_0x53c84c?.['surface']??_0x1a944d[_0x38fcba(0x511,0x492,_0x5cc90d._0x257ccf,_0x5cc90d._0x223e83)],'authScheme':_0x1a944d[_0x2332c4(_0x5cc90d._0x39f9cf,_0x5cc90d._0x4dccad,0x3f7,0x42d)],'defaultModel':_0x1a944d['defaultModel'],'defaultModels':_0x1a944d['defaultModels'],'supportsModelFetch':_0x1a944d['supportsModelFetch'],'contextWindow':_0x53c84c?.[_0x38fcba(0x4e7,_0x5cc90d._0x40ede2,_0x5cc90d._0xbfbec1,_0x5cc90d._0x32df02)],'maxOutput':_0x53c84c?.['maxOutput']};}function _0x53da(){const _0x495c68=['Aw5PDgLHBev2zw50','Dg9VBa','yNvPBgrqyxj0AwfSt3v0Chv0','z2XTltqUnW','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','CMvMDxnHBa','qMfZAa','D2vIC29JA2v0','Dg9bCgLfCNjVCG','zxzLBNq6','y2XHDwrLlxnVBM5LDc00lJu','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','CMvHC29UAw5NugfYDhm','y29UDgv4Df9Szw5NDgG','Dg9VBhm','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','DhjHBNnWB3j0','D2fPDezVCLjLDhj5','zMLSDgvY','r2L0shvIie1VzgvSCYaVienVCgLSB3q','yxv0BW','rgvLCfnLzwS','CMvZB2X2zujHC2vvCMW','y29TCgXLDgu','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','mZKXnJK4B1HyDwrH','B3v0Chv0rM9YBwf0','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','B3v0Chv0x2LUzgv4','Ahr0Chm6lY9HCgKUzgvLChnLzwSUy29Tl2fUDgHYB3bPyW','BwvKAwfFDhLWzq','C3LZDgvT','CMvZB2X2zunYzwrLBNrPywW','BwvZC2fNzv9ZDgfYDa','Dg9VBenHBgXZqNLjBMrLEa','zw5Kx3r1CM4','C2vSzwn0u3vYzMfJzq','Aw1Hz2u','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','z2v0uMvHzgvY','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','zMXHDe1HCa','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','t3bLBKfPqxbPrxjYB3i','Aw1Hz2vFDxjS','D3m6','ChjVEhK','AgfZ','y29TCgXLDgvK','C2HPzNq','Bw9Kzq','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','ywrK','yM9KEq','t3bLBKfjiefqssbLCNjVCIa','yxbPs2v5','CMvZB2X2zq','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','zMLUAxnOx3jLyxnVBG','CMvHC29U','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','Aw5WDxrFDg9Rzw5Z','zNvUy3rPB25Fy2fSBa','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','yMfZzty0','mtq3ndm2mejVBKTnsa','C3vTBwfYEuj5sw5KzxG','CMvZCg9UC2vZugf0Aa','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','y2fWywjPBgL0AwvZ','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','zxjYB3i','ANnVBG','yMvHCMvY','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','BgvUz3rO','y2fWywjSzv9LBMrWB2LUDhm','y3jLyxrLsgvHzgvYCW','w0rptKvD','Bwf4x291Dhb1Df90B2TLBNm','z2v0','ChjVDMLKzxjZ','zNvUy3rPB24','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','ywjVCNrLza','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','CMvHzhLtDgf0zq','CMvTB3zLrxzLBNrmAxn0zw5LCG','z3jVAY1JB2rLlwzHC3qTmq','C3vWCg9YDhnnB2rLBezLDgnO','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','CMv0CNKTywz0zxi','y29TCgXLDgvwAwftDxjMywnL','CgfYC2vszxnWB25Zzq','Bwv0Ag9K','A2LUza','y2HHDfn0CMvHBq','BwLTBY12mI41lxbYBW','C3rVCfjLyxnVBG','Aw5KzxHpzG','Aw5WDxrFANnVBL9KzwX0yq','y2XVC2u','CMvWBgfJzq','C2v0','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','Aw5JBhvKzunVBNrLBNruExbL','C2LNBMf0DxjLx2rLBhrH','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','zw5JCNLWDgvKq29UDgvUDa','CMvZCg9UC2uUy3jLyxrL','Bw9KzwXfBMrWB2LUDenHy2HL','CMvZCg9UC2uUzMfPBgvK','yw50AhjVCgLJ','BwvZC2fNzv9KzwX0yq','CMvXDwvZDa','C29JA2v0','C3vTBwfYEv90zxH0','B3v0Chv0x3rLEhq','Bwv0ywrHDge','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','CMvZCg9UC2uUy29TCgXLDgvK','z3b0ltqUmq','zMv0y2HjBxbS','CMvKywn0zwrFDgHPBMTPBMC','C2XPy2u','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','DxjS','Dg9VBfvZzvn0yxj0rw1PDhrLza','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','Bw9KzwXZqMfZzvvYBa','z2XTltuUmG','twLUAu1HEc1nmW','y29UC3vTzvDLyLnVy2TLDev2zw50','yxnZAxn0yw50','y29UDgv4DfDPBMrVDW','DgHLBG','zgf0yq','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','y2HHDgnTCgWT','z2v0t3bLBKfPrgvSzwDHDgu','A2v5CW','zMLUza','B3bLBMfPlxjLC3bVBNnLCW','C2vUza','B3bLBMfPx3jLyxnVBMLUzW','y29UDgvUDf9IBg9JA19ZDgfYDa','B3v0Chv0','ChjLDMLVDxnszxnWB25ZzuLK','z3b0ltrV','C3rYAw5NAwz5','Ahr0Cc1QC29U','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','z3b0ltuUmI1JB2rLEa','CMvZCg9UC2vtB2nRzxq','CM91DgvY','B3bLBMfPl2DWDc00BW','BgfZDfjLC3bVBNnLswq','qw50AhjVCgLJ','BgfIzwW','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','DMfSDwu','DNnJB2rLlZeUmta2lJe','A2v5','C3vWCg9YDgvKrw5KCg9PBNrZ','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','zwrPDg9YugX1z2LUvMvYC2LVBG','BNvTyMvY','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','C29Tzq','zgvZy3jPChrPB24','B3v0Chv0vg9Rzw5Z','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','t1bftG','ChjVDg9JB2W','oNjLyxnVBMLUzZOW','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','CMvZCg9UC2vtDhjLyw0','DxnLCI12AxnPyMXL','DNnJB2rLlZeUmta0lJi','C291CMnL','CMv0CNLHyMXL','C3rYzwfTvMLHu3vYzMfJzq','zgvLChnLzwSTDJqTChjV','yw50AhjVCgLJlxzLCNnPB24','CMvZCg9UC2vtB2nRzxrtDhjLyw0','yxv0AfnJAgvTzq','CMvXDwvZDhm','y2HHDenVBxbSzxrPB25Zugf0Aa','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','Ec1HCgKTA2v5','y29UC3vTzuv2zw50','l3jLC3bVBNnLCW','C3rYAw5N','qMvHCMvYia','q29TBwfUzenVzgu','B3bLBMfPl2DWDc00BY1TAw5P','CgfYDgLHBf9QC29U','B3jPz2LUlxrYywnRzxi','z3b0ltu','ANnVBL9Zy2HLBwe','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','y29TCgXLDgLVBL90B2TLBNm','ywrKrxzLBNrmAxn0zw5LCG','BhmGlwXH','ywnJzxnZvg9Rzw4','ChjVDMLKzxjtDgf0zq','y29UDgvUDf9PBMrLEa','C3vYzMfJzxm','ChjLCgfYzunOyxrszxf1zxn0','Cgf0Aa','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','ChjVBxb0x3rVA2vUCW','zgLZywjSzwq','C3rYzwfT','y2HHDgnTCgW','yxnZAxn0yw50lq','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','y3jLzgvUDgLHBa','C2nOzw1H','Dg9mB3DLCKnHC2u','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','CgvUzgLUzW','Bwf4x3rVA2vUCW','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','zMv0y2G','C2vZC2LVBG','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','D2vIu29JA2v0rMfJDg9YEq','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','nduWnJKWmwz0BwX1Cq','Dg9VBf9JywXSCW','zgvSzxrL','Dgv4Df9KzwX0yq','Dgv4Dc9LDMvUDc1ZDhjLyw0','C2vZC2LVBI10B2TLBG','y29UBMvJDf9MywLSzwq','yMfZzvvYBa','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','zw5HyMXLza','z2v0u3vYzMfJzq','BwvZC2fNzxm','ywnJzxb0','CM9Szq','Aw5WDxrFDgv4Da','wI5bsq','CMvZzxq','y2fJAgvK','y29Kzq','CMvZCg9UC2vjza','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','C3vTBwfYEq','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','Dgv4Dej5sw5KzxG','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','B3v0Chv0x3rVA2vUCW','y29UDgvUDc10ExbL','y2f0y2G','C2vZC2LVBKLK','wgLHB21P','y2fUy2vS','B3v0Chv0sw5KzxHuB0nHBgXjza','CMvZCc0','l3yXl21LC3nHz2vZ','BMfTzq','y2fJAgvszwfKsw5WDxruB2TLBNm','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','y2HVAwnLCW','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','Bwf4','C3vYzMfJzq','Ahr0Chm6','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','ChjVDMLKzxi','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','B3bLBMfP','oti2ntm4swnZtxzY','y29UDgvUDf9IBg9JA19KzwX0yq','z2XTltqUnG','B3v0Chv0sw5KzxG','Dg9VBf91C2vFzgvSDge','yw50AhjVCgLJqMfZzvvYBa','BwvZC2fNzuLK','AxrLBv9Pza','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','zNjVBq','B3bLBG','Ahr0Cc1ZC2u','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','zgLZCgXHEq','AgvHzgvYuMvZB2X2zxi','B3bLBKfPrgvSzwDHDgu','C29YDa','y29UBMvJDgLUzW','yNvKz2v0vg9Rzw5Z','yxjNDw1LBNrZ','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','yxv0Ag9YAxPHDgLVBG','y29UDgvUDf9IBg9JAW','BM93','AM9PBG','AxrLBq','DhjPBq','CMvZB2X2zxi','Dgv4DfbHCNrZ','u3vYzMfJzsa','C2HVDwXKuMv0CNLszxnWB25Zzq','Aw50zxjSzwf2zwq','sw52ywXPzcbYzxf1zxn0oIa','Dg9VBenHBgXpCMrLCG','DMfSDwvZ','BwvZC2fNzq','Bw9KzwXZ','CMvHC29UAw5Nx3rVA2vUCW','Aw52ywXPzgf0zq','DgvSzw1LDhj5','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','CMvHC29UAw5Nx2rLDgfPBhm','C3rYAwn0','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C3bSAxq','CgfYC2u','DMLZAwjPBgL0Eq','l21VzgvSCW','Dg9Rzw4','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','ywrHChrPDMu','y29UDgvUDf9KzwX0yq','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','C3vTBwfYAxPLza','zg9Uzq','z2XTltuUmq','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','mtaYmJa4ntzTtLHSCLG','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','Dg9VBc1JywXSlq','Bw9KzwW','AxnbCNjHEq','DxnLCG','Aw5WDxq','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','zgvLChnLzwSTDJqTzMXHC2G','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','zw50CMLLCW','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','B21PDhrLza','zw5KCg9PBNrZ','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','yw50AhjVCgLJrgvSzwDHDgu','BgLTAxrZ','zgvMyxvSDe1VzgvS','yw50AhjVCgLJlw1LC3nHz2vZ','C2vZC2LVBK1HBMfNzxi','AxngAw5PDgu','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','yxbWBgLJyxrPB24VANnVBG','y29UDgvUDa','ChvZAa','Bg9JA2vK','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','mZa3mtq4mfHOyxbqDG','C3rHDhvZ','DhjPBvn0yxj0','zgf0ytO','C3rYzwfTvMLHuM91DgvY','z2v0tw9KzwXZ','y29TCgXLDgvtDxjMywnL','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','yxbWBhLnB2rLBerLzMf1BhrZ','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','CMvXDwvZDe11Dgf0B3jZ','DxnHz2u','ue9tva','BwfW','C3rYzwfTshr0Cfn1CMzHy2u','DhLWzq','Dg9VBenHBgXZ','Dgv4Da','C2LNBMfS','y29UC3vTzvnZzuv2zw50','C3rYDwn0DxjLzf9VDxrWDxq','CMvHC29UAw5N','zgvSDge','Aw5WDxruB2TLBNm','C3rHCNrZv2L0Aa','BwvZC2fNzuLUzgv4','DxnLC1jLC3bVBNnLC0fWAq','C3rHDhvZvgv4Da','B2jQzwn0','z2v0qw50AhjVCgLJrgvSzwDHDgu','v2vIu29JA2v0','zxzLBNq','ChjVDMLKzxjbzgfWDgvY','BxnNlq','Dg9VBf91C2u','C2vUzfDPDgHszxrYAwvZ','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','y3jLyxrLuMvXDwvZDa','o2jHC2u2ncW','mJe1te5nBKXK','C2LNBMf0DxjL','y2XHDwrLlxnVBM5LDc00','zNjVBuvUDhjPzxm','AxneB25L','y3jLyxrLu3rYzwfTugfYC2vY','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','y2HHDenVBxbSzxrL','C2vUzfjHD1jLCxvLC3q','z2v0uMv0CNLezwXHEu1Z','B3bLBMfPlxjLC3bVBNnLCY13CW','AgvHzgvYCW','zgvJB2rL','yxbP','CMvHC29UAw5NsxrLBxm','l2nOyxqVy29TCgXLDgLVBNm','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','mJaYns0Xmc0Wmq','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','DgvZDa','zwzMB3j0','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','CMvZCg9UC2vuzxH0ugfYDhm','C3rYzwfTx2vYCM9Y','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','yw50AhjVCgLJx3rOAw5RAw5N','C3rVCf9YzwfZB24','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','yMXVy2TZ','Aw5JBhvKzxm','DgHPBMTPBMC','D3nZoG','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','yxbPlwTLEq','C3bSAwnL','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','y2fSBeLKvg9pDxrWDxrjBMrLEa','Aw5KzxG','y2fSBf9Pza','Bwf4vg9Rzw5Z','Dg9VBf91C2vFAwq','C3vTBwfYEv9PBMrLEa','mte1otuWzNjiwfPX','C3rYzwfTu3vYzMfJzq','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','zgvMyxvSDe1VzgvSCW','ywDLBNq','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','rgLYzwn0igfUC3DLCJOG','zMLUAxnO','ChjVDg9JB2XwzxjZAw9U','y29WAwXVDc1JAgf0lZaUmZeUmW','BwfWqxbPrxjYB3i','CMvZCg9UC2u','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','Bwf4t3v0Chv0','zMLUywXszxnWB25Zzq','y29TCgXLDgvwAwfsB3v0zxi','C2L6zq','zw5JCNLWDgvKx2nVBNrLBNq','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','z2L0AhvIqxbPvxjS'];_0x53da=function(){return _0x495c68;};return _0x53da();}function getDefaultMaxTokens(){return data['defaultMaxTokens'];}function getDefaultModel(){return data['defaultModel'];}function getCliDefaultModel(){return data['cliDefaultModel'];}function getProviderLabel(_0x49ac5e){const _0x406478={_0x7a925e:0x1ee,_0x3e6c3d:0x523,_0xc5e794:0x594,_0x32b9a7:0x633},_0xccd674={_0xdcd0bb:0x18a},_0x3ed5db={_0x57cd7e:0x27b,_0x5c1a46:0x13a,_0x53e26b:0x7e};function _0x538c60(_0x51194a,_0x58f487,_0x108dbf,_0x236603){return _0xf0dc29(_0x236603-_0x3ed5db._0x57cd7e,_0x58f487-_0x3ed5db._0x5c1a46,_0x108dbf,_0x236603-_0x3ed5db._0x53e26b);}function _0x91833e(_0x59905c,_0x59f79f,_0x3ea895,_0x1d14df){return _0x551389(_0x59905c-0x193,_0x59f79f- -_0xccd674._0xdcd0bb,_0x1d14df,_0x1d14df-0xd5);}const _0xc7f4ac=findProviderKey(_0x49ac5e);return _0xc7f4ac?data[_0x91833e(0x24f,_0x406478._0x7a925e,0x172,0x20f)][_0xc7f4ac][_0x538c60(_0x406478._0x3e6c3d,_0x406478._0xc5e794,_0x406478._0x32b9a7,0x562)]:void 0x0;}function getProviderDefaultModel(_0x326912){const _0x477828={_0x4fbef3:0x586,_0x5d03e9:0x4c4,_0x5bb369:0x404,_0x283f5e:0x5cc},_0x171b94={_0x2032a1:0x150,_0x37aa48:0x14c},_0x1eee77=findProviderKey(_0x326912);function _0x4745ca(_0x41c3bf,_0x39e7d2,_0x58fcb1,_0x55d84d){return _0x551389(_0x41c3bf-_0x171b94._0x2032a1,_0x39e7d2-_0x171b94._0x37aa48,_0x55d84d,_0x55d84d-0x1a);}if(!_0x1eee77)return void 0x0;function _0x3766a1(_0x10efc7,_0x5d1bbe,_0x5fc358,_0x2d3a76){return _0xf0dc29(_0x5fc358-0x221,_0x5d1bbe-0x1f0,_0x10efc7,_0x2d3a76-0x54);}return data[_0x4745ca(_0x477828._0x4fbef3,_0x477828._0x5d03e9,_0x477828._0x5bb369,0x3dd)][_0x1eee77][_0x3766a1(0x569,0x5cf,_0x477828._0x283f5e,0x503)];}function getProviderDefaultModels(_0x39f3cb){const _0x1412f5={_0x5043b8:0x1c9,_0x314d64:0x1f6},_0x41d4da={_0xec75ad:0x1e,_0x30ae16:0xe3},_0x55edbd=findProviderKey(_0x39f3cb);if(!_0x55edbd)return[];function _0x505c4b(_0xa172f3,_0x31583a,_0x458150,_0x252732){return _0x551389(_0xa172f3-_0x41d4da._0xec75ad,_0xa172f3- -0x4da,_0x252732,_0x252732-_0x41d4da._0x30ae16);}return[...data['providers'][_0x55edbd][_0x505c4b(-_0x1412f5._0x5043b8,-0x1d0,-_0x1412f5._0x314d64,-0x248)]??[]];}function providerSupportsModelFetch(_0x37fdb7){const _0x22857d={_0x43d8bc:0x577,_0x2eabd8:0x646},_0x3fb716={_0x348302:0x165,_0x5cea0c:0x1d},_0x3a1518=findProviderKey(_0x37fdb7);function _0x1183a7(_0x590014,_0x5259d5,_0x4e82d0,_0x57123a){return _0x551389(_0x590014-0x17f,_0x4e82d0-0x20d,_0x5259d5,_0x57123a-0x171);}function _0x5cb5a6(_0x13b0f3,_0x3b535c,_0x300387,_0x4dbc62){return _0xf0dc29(_0x13b0f3- -0x197,_0x3b535c-_0x3fb716._0x348302,_0x4dbc62,_0x4dbc62-_0x3fb716._0x5cea0c);}if(!_0x3a1518)return![];return data[_0x5cb5a6(0x102,0x105,0x6e,0x1b4)][_0x3a1518][_0x1183a7(0x60b,_0x22857d._0x43d8bc,0x58e,_0x22857d._0x2eabd8)]??![];}function getOnboardingProviderKeys(){return Object['keys'](data['providers']);}function toErrorMessage(_0x1a0f1b){const _0x183865={_0x44442a:0x4cc,_0x5e1489:0x5bf,_0x154f94:0xbc,_0x39811a:0x1d5},_0x4c3f63={_0x3ff230:0x16f,_0x50547b:0xbc},_0x54ecf9={_0x24c917:0x9d};if(_0x1a0f1b instanceof Error&&_0x1a0f1b[_0x1feec8(_0x183865._0x44442a,_0x183865._0x5e1489,0x4f2,0x464)]['length']>0x0)return _0x1a0f1b['message'];function _0x6db3bd(_0xfed27d,_0x3de087,_0x44822f,_0x3e4250){return _0xf0dc29(_0x44822f- -0x1f5,_0x3de087-_0x54ecf9._0x24c917,_0xfed27d,_0x3e4250-0xb2);}function _0x1feec8(_0x42259f,_0x2e3afa,_0x494003,_0x33c6a8){return _0xf0dc29(_0x494003-_0x4c3f63._0x3ff230,_0x2e3afa-0x1e3,_0x33c6a8,_0x33c6a8-_0x4c3f63._0x50547b);}return _0x6db3bd(0x164,_0x183865._0x154f94,0x176,_0x183865._0x39811a);}function createDefaultWebSocketFactory(){return({headers:_0x4d0fc9,url:_0x2c7b0d})=>{const _0x2027ff=globalThis[_0x34c370(-0x249,-0x137,-0x165,-0x13a)];function _0x34c370(_0x507140,_0x15ce07,_0x43363e,_0x42c988){return _0x5b12(_0x43363e- -0x28c,_0x42c988);}return new _0x2027ff(_0x2c7b0d,{'headers':_0x4d0fc9,'protocols':[]});};}function _0xf0dc29(_0x5aa50a,_0x266af2,_0x20a4b9,_0x13d127){const _0x2ee528={_0x30ae1c:0xd0};return _0x5b12(_0x5aa50a-_0x2ee528._0x30ae1c,_0x20a4b9);}async function*iterateSseEvents(_0x1670ec,_0x3dbf92){const _0x23379a={_0x280143:0x222,_0x2da9c7:0x208,_0x5387dc:0x8b,_0x719816:0xb,_0x21831e:0x115,_0x325f60:0x5d,_0x4abf16:0x33a,_0x2ff058:0x1a4,_0xf23c41:0x1fd,_0x43f291:0xaf,_0x4b41da:0x5f,_0x36265c:0x1b5,_0xdf0836:0x188,_0x5e9c76:0x5d,_0x3531da:0xe3},_0x4a55de={_0x152eca:0x157},_0x5db81b={_0x10430a:0xa8},_0x1d3c22={_0x2df951:0xee},_0x187d4e={_0x4e3efe:0x75,_0x2ee7d2:0x21,_0xdfc1ff:0xb6};function _0x17eb12(_0x3044b7,_0x46c8ac,_0x438b2a,_0x2eb52d){return _0xf0dc29(_0x2eb52d- -_0x187d4e._0x4e3efe,_0x46c8ac-_0x187d4e._0x2ee7d2,_0x438b2a,_0x2eb52d-_0x187d4e._0xdfc1ff);}const _0x5275dd=_0x1670ec[_0x17eb12(0x29c,_0x23379a._0x280143,0x131,_0x23379a._0x2da9c7)]?.[_0x39bc58(_0x23379a._0x5387dc,_0x23379a._0x719816,_0x23379a._0x21831e,0xbc)]();if(!_0x5275dd)return;function _0x39bc58(_0x1f9545,_0xc20fbc,_0x160297,_0x197cae){return _0x551389(_0x1f9545-0xe,_0x197cae- -0x28f,_0x160297,_0x197cae-_0x1d3c22._0x2df951);}const _0x2fd543=new TextDecoder('utf-8');let _0x5f3b45='';const _0x5bc993=addAbortListener(_0x3dbf92,()=>{const _0x88d8cf={_0x3e7123:0x47,_0x1ca7c0:0x2c};function _0xf8ae67(_0x2b4527,_0x477b0a,_0x3f0827,_0x21cb52){return _0x17eb12(_0x2b4527-0x19d,_0x477b0a-_0x5db81b._0x10430a,_0x477b0a,_0x2b4527- -0x10c);}function _0x4e56e5(_0x3098c7,_0x25ade3,_0x5d6ec7,_0x36788a){return _0x39bc58(_0x3098c7-_0x88d8cf._0x3e7123,_0x25ade3-0x6d,_0x3098c7,_0x5d6ec7-_0x88d8cf._0x1ca7c0);}void _0x5275dd[_0xf8ae67(0x1cd,0x1a8,_0x4a55de._0x152eca,0x228)](toAbortError(_0x3dbf92?.[_0x4e56e5(0x15b,0x15e,0xff,0x24)]))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x3dbf92);const {value:_0x2a67c7,done:_0x2c0e6c}=await _0x5275dd['read']();throwIfAborted(_0x3dbf92);if(_0x2c0e6c)break;_0x5f3b45+=_0x2fd543['decode'](_0x2a67c7,{'stream':!![]});while(!![]){const _0x7ab401=_0x5f3b45[_0x39bc58(0x36,_0x23379a._0x325f60,0x64,0xfc)]('\x0a\x0a');if(_0x7ab401===-0x1)break;const _0x3a9078=_0x5f3b45[_0x17eb12(_0x23379a._0x4abf16,0x22e,_0x23379a._0x2ff058,0x250)](0x0,_0x7ab401);_0x5f3b45=_0x5f3b45[_0x39bc58(_0x23379a._0xf23c41,_0x23379a._0x43f291,_0x23379a._0x4b41da,0x115)](_0x7ab401+0x2),_0x3a9078['trim']()[_0x39bc58(_0x23379a._0x36265c,_0x23379a._0xdf0836,0x3b,0xe3)]>0x0&&(yield _0x3a9078);}}_0x5f3b45+=_0x2fd543[_0x39bc58(-0x5a,0xee,-0x50,0x5c)](),throwIfAborted(_0x3dbf92),_0x5f3b45[_0x17eb12(0x391,0x2ca,0x352,0x305)]()[_0x39bc58(0x17,_0x23379a._0x5e9c76,0xa8,_0x23379a._0x3531da)]>0x0&&(yield _0x5f3b45);}finally{_0x5bc993();}}async function waitForWebSocketOpen(_0xf7cd93,_0x7411ea){const _0x32d2b0={_0x58e15b:0x202,_0x5a8432:0x17b,_0xdeaa3d:0x122,_0x35bd23:0x7f,_0x1513ef:0x125},_0x4806bc={_0x722e7a:0xe9,_0x1f813f:0x5d,_0x80bc77:0x6a,_0x40982f:0xab,_0x155a9e:0x7,_0x17b380:0x28,_0x36e600:0x86,_0x56a67b:0x43,_0x1d9907:0x112,_0x3d03fe:0x51,_0xc5409b:0x41,_0x2f2729:0xf1,_0x462c18:0x43,_0x515a37:0xd0,_0x2e027e:0x22,_0xc06abc:0x1a,_0x461e6f:0x7c,_0x159d44:0x27},_0x484a19={_0x4e3d72:0x222,_0x16e18f:0x1ef,_0x39aee2:0x69,_0x59a92e:0x157,_0x500dc5:0x167},_0x3365c1={_0x5174df:0x155};function _0x3f489a(_0x507f5c,_0x1284c9,_0xaef828,_0x206330){return _0x551389(_0x507f5c-0x22,_0x206330-0x83,_0x507f5c,_0x206330-0xf7);}function _0x3ede78(_0x197f38,_0x557743,_0x422d01,_0x2da0de){return _0xf0dc29(_0x422d01- -0x41a,_0x557743-_0x3365c1._0x5174df,_0x2da0de,_0x2da0de-0xd6);}if(_0xf7cd93[_0x3ede78(-0x1ce,-_0x32d2b0._0x58e15b,-_0x32d2b0._0x5a8432,-0xa7)]===WebSocket[_0x3ede78(-_0x32d2b0._0xdeaa3d,-_0x32d2b0._0x35bd23,-_0x32d2b0._0x1513ef,-0x192)]){throwIfAborted(_0x7411ea);return;}throwIfAborted(_0x7411ea),await new Promise((_0x12c421,_0xef4085)=>{const _0x28bfc9={_0x7a85ef:0x1a5,_0x210ad4:0x2d},_0x39b507={_0x50d7f0:0x466,_0x3020bd:0x413,_0x227b1d:0x36f},_0x20a733={_0x422b5a:0x282},_0x2ebcd6={_0x908804:0x648};function _0x4db1c1(_0xf054c7,_0x5f4378,_0x514975,_0x25f0a2){return _0x3ede78(_0xf054c7-0x153,_0x5f4378-0x42,_0x514975-0xaa,_0x5f4378);}const _0x56c317=()=>{_0x26e7ed(),_0x12c421();},_0x3261f0=_0x346302=>{const _0x3cb144={_0x5d0be9:0x37d};function _0xae405d(_0x3ba58b,_0x4e7581,_0x4e0972,_0x3fcb5a){return _0x5b12(_0x3fcb5a-_0x3cb144._0x5d0be9,_0x4e7581);}_0x26e7ed(),_0xef4085(new Error(_0x346302[_0xae405d(0x6a5,_0x2ebcd6._0x908804,0x616,0x630)]||'WebSocket\x20request\x20failed'));},_0x15826d=_0x2aab0d=>{_0x26e7ed();const _0x435063=_0x2aab0d;_0xef4085(new Error(_0x435063['reason']||'WebSocket\x20closed\x20before\x20opening'));},_0x3a4d5b=()=>{function _0x3f2b95(_0x3bec9f,_0x1de569,_0x4642b7,_0x2beaf0){return _0x5b12(_0x2beaf0-0x86,_0x1de569);}_0x26e7ed();function _0xba987d(_0x10c816,_0x5d02a0,_0x472640,_0x30e87b){return _0x5b12(_0x30e87b-_0x20a733._0x422b5a,_0x5d02a0);}_0xf7cd93[_0xba987d(_0x39b507._0x50d7f0,0x413,_0x39b507._0x3020bd,0x451)]===WebSocket['OPEN']&&_0xf7cd93['close'](0x3e8,_0xba987d(0x432,_0x39b507._0x227b1d,0x49f,0x44e)),_0xef4085(toAbortError(_0x7411ea?.['reason']));},_0x26e7ed=()=>{const _0x3f63b0={_0x58d843:0x77};function _0x2179fe(_0x32ab2f,_0x1c927b,_0x2b9bad,_0x365686){return _0x5b12(_0x1c927b- -0x3b2,_0x32ab2f);}function _0x58c5c1(_0xf4685c,_0x4e6c26,_0x1ea656,_0x3e689b){return _0x5b12(_0xf4685c- -_0x3f63b0._0x58d843,_0x1ea656);}_0xf7cd93['removeEventListener'](_0x58c5c1(_0x484a19._0x4e3d72,0x282,0x240,0x133),_0x56c317),_0xf7cd93[_0x2179fe(-_0x484a19._0x16e18f,-0x1e2,-0x186,-0x2a0)](_0x2179fe(-0x201,-0x1f3,-0x21a,-0x281),_0x3261f0),_0xf7cd93[_0x58c5c1(0x159,_0x484a19._0x39aee2,_0x484a19._0x59a92e,0x17b)](_0x58c5c1(_0x484a19._0x500dc5,0xf2,0x13d,0x193),_0x15826d),_0x7411ea?.[_0x58c5c1(0x159,0x124,0x19a,0xb9)]('abort',_0x3a4d5b);};_0xf7cd93[_0x4db1c1(-0x6b,-_0x4806bc._0x722e7a,-_0x4806bc._0x1f813f,-_0x4806bc._0x80bc77)](_0x4db1c1(-0xb2,_0x4806bc._0x40982f,-_0x4806bc._0x155a9e,_0x4806bc._0x17b380),_0x56c317);function _0x44d600(_0x443ed4,_0x12db7b,_0x197fa3,_0x541798){return _0x3ede78(_0x443ed4-_0x28bfc9._0x7a85ef,_0x12db7b-_0x28bfc9._0x210ad4,_0x12db7b-0x14a,_0x541798);}_0xf7cd93[_0x44d600(_0x4806bc._0x36e600,_0x4806bc._0x56a67b,0x96,_0x4806bc._0x1d9907)](_0x44d600(_0x4806bc._0x3d03fe,-_0x4806bc._0xc5409b,-_0x4806bc._0x2f2729,-0xb),_0x3261f0),_0xf7cd93[_0x44d600(0x10c,_0x4806bc._0x462c18,-0x7,_0x4806bc._0x515a37)](_0x44d600(-0x9,-_0x4806bc._0x2e027e,_0x4806bc._0xc06abc,0xa),_0x15826d),_0x7411ea?.[_0x4db1c1(-_0x4806bc._0x461e6f,_0x4806bc._0x159d44,-0x5d,0x5a)]('abort',_0x3a4d5b,{'once':!![]});});}function iterateWebSocketMessages(_0x4901e9,_0x18caf3){const _0x38bb9e={_0x5d4149:0x5cb,_0x216aee:0x62e,_0x8ef54e:0x415,_0x2d84c6:0x418,_0x38d1ac:0x3a6,_0x26077c:0x5d9,_0x1f7d81:0x58f},_0x4c7b9b={_0x2a54fd:0x129,_0x252bc8:0x71,_0x4fccad:0x229,_0x500bbc:0x60,_0x17a3d8:0x59,_0x44c45d:0x89,_0x29cd15:0x8e,_0x24a48d:0x6b,_0x521ac4:0x49,_0x240522:0x1d1,_0x15b43f:0x2b5},_0x474176={_0xebd0f2:0x193,_0x2c67a9:0x38f,_0x5bd307:0x15f},_0x658e93={_0x43a2b6:0x395},_0x1a368a={_0x31f96c:0x18b,_0x4aa268:0x2d7,_0x5398b0:0x1ef,_0x45af86:0x167,_0x27c19e:0x264,_0x4f8afc:0x201,_0x1cb35c:0xde,_0x2f97c6:0x256,_0x255589:0x1c0},_0x2c6ff8={_0xf22b67:0x176,_0x29967b:0x1d9,_0x95f502:0x119},_0x53902d={_0x58ebcc:0x181,_0x44d422:0x44},_0x426e94={_0x59dd67:0x242,_0x34cf4a:0x320,_0x3aecbd:0x290,_0x57138a:0x18f,_0x5ba76a:0x35a,_0x55afd1:0x3a2},_0x5e234e={_0x3277c4:0x153,_0x4591b2:0xa9,_0x1c55e8:0x296,_0xef8ab0:0x371,_0x2c9c05:0x3f3},_0x575a28={_0xd5bb28:0x20a},_0x69091a={_0x49a6f8:0xde},_0x23c667={_0x48b09c:0x15b,_0x2e48ce:0x232,_0x3d21a9:0x12e,_0x96a1d:0x48,_0x4cf6f6:0x6a,_0x45ee64:0x84,_0x10124d:0xe0,_0x87ffba:0x40},_0x483af1={_0x33b584:0x188},_0x4d52e4=[];let _0xf8a977=![],_0x2269d0,_0x16f062;const _0x386d17=_0x366bea=>{const _0x18fe20={_0x473d11:0x341};function _0x130aac(_0x2da642,_0x5beba7,_0x62bc12,_0x12eae2){return _0x5b12(_0x5beba7- -_0x483af1._0x33b584,_0x12eae2);}function _0x370516(_0x4babfb,_0x42e4a0,_0x300b9a,_0x44ad22){return _0x5b12(_0x44ad22- -_0x18fe20._0x473d11,_0x300b9a);}const _0x3f6cd8=_0x366bea;try{_0x4d52e4[_0x130aac(0x9a,_0x23c667._0x48b09c,_0x23c667._0x2e48ce,_0x23c667._0x3d21a9)](JSON[_0x370516(-_0x23c667._0x96a1d,0x42,-_0x23c667._0x4cf6f6,-_0x23c667._0x45ee64)](String(_0x3f6cd8[_0x130aac(-0x34,0x79,_0x23c667._0x10124d,_0x23c667._0x87ffba)]))),_0x16f062?.(),_0x16f062=void 0x0;}catch(_0x106929){_0x2269d0=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x106929)),_0x16f062?.(),_0x16f062=void 0x0;}},_0x36706a=_0x4a67d3=>{const _0x194ad2=_0x4a67d3;_0x2269d0=new Error(_0x194ad2[_0x3a8b9f(_0x5e234e._0x3277c4,0x12c,_0x5e234e._0x4591b2,0x131)]||_0x2dbfd5(_0x5e234e._0x1c55e8,_0x5e234e._0xef8ab0,_0x5e234e._0x2c9c05,0x379));function _0x2dbfd5(_0x466138,_0x3d88eb,_0x14e80d,_0x4dd1b5){return _0x5b12(_0x4dd1b5-_0x69091a._0x49a6f8,_0x466138);}function _0x3a8b9f(_0x5c670d,_0x51b2fc,_0x48ffd1,_0x17e174){return _0x5b12(_0x48ffd1- -_0x575a28._0xd5bb28,_0x51b2fc);}_0x16f062?.(),_0x16f062=void 0x0;},_0x312245=_0x454d39=>{const _0x1afee9={_0x589c16:0x38e};function _0x23cfcf(_0x4eef15,_0x1db1c9,_0x536954,_0x2411c3){return _0x5b12(_0x536954- -_0x1afee9._0x589c16,_0x1db1c9);}const _0x3f18c6=_0x454d39;function _0xa4b812(_0x46075a,_0x51588f,_0x2cf5ef,_0x487f92){return _0x5b12(_0x51588f-0x8f,_0x46075a);}!_0xf8a977&&_0x3f18c6['code']!==0x3e8&&!_0x2269d0&&(_0x2269d0=new Error(_0x3f18c6[_0xa4b812(0x196,_0x426e94._0x59dd67,_0x426e94._0x34cf4a,_0x426e94._0x3aecbd)]||_0x23cfcf(-0x205,-0xc9,-0x159,-_0x426e94._0x57138a)+_0x3f18c6[_0xa4b812(0x2af,0x301,_0x426e94._0x5ba76a,_0x426e94._0x55afd1)])),_0xf8a977=!![],_0x16f062?.(),_0x16f062=void 0x0;};function _0x12bf00(_0x8ed13d,_0x43fa27,_0x5d340b,_0x15c5f8){return _0x551389(_0x8ed13d-_0x53902d._0x58ebcc,_0x5d340b- -0x4a,_0x8ed13d,_0x15c5f8-_0x53902d._0x44d422);}function _0x30aa0a(_0x551b70,_0x3a379b,_0x518887,_0x3c0fff){return _0x551389(_0x551b70-_0x2c6ff8._0xf22b67,_0x551b70-_0x2c6ff8._0x29967b,_0x3a379b,_0x3c0fff-_0x2c6ff8._0x95f502);}const _0x777898=addAbortListener(_0x18caf3,()=>{function _0x554566(_0x456c1d,_0x18ddb2,_0x126109,_0x525731){return _0x5b12(_0x525731- -0x38c,_0x456c1d);}_0x2269d0=toAbortError(_0x18caf3?.['reason']);_0x4901e9[_0x554566(-_0x1a368a._0x31f96c,-0x1c0,-0x1cf,-0x1bd)]===WebSocket[_0xfc0750(_0x1a368a._0x4aa268,_0x1a368a._0x5398b0,_0x1a368a._0x45af86,_0x1a368a._0x27c19e)]&&_0x4901e9[_0x554566(-0xd6,-_0x1a368a._0x4f8afc,-0x21a,-0x1ae)](0x3e8,_0x554566(-_0x1a368a._0x1cb35c,-_0x1a368a._0x2f97c6,-0x17b,-_0x1a368a._0x255589));function _0xfc0750(_0x10a72f,_0x1bc9b8,_0x3d9b4d,_0x9cffce){return _0x5b12(_0x1bc9b8- -0x36,_0x9cffce);}_0x16f062?.(),_0x16f062=void 0x0;});return _0x4901e9[_0x30aa0a(_0x38bb9e._0x5d4149,_0x38bb9e._0x216aee,0x632,0x693)](_0x12bf00(_0x38bb9e._0x8ef54e,0x4e9,_0x38bb9e._0x2d84c6,_0x38bb9e._0x38d1ac),_0x386d17),_0x4901e9['addEventListener']('error',_0x36706a),_0x4901e9[_0x30aa0a(_0x38bb9e._0x5d4149,0x4ed,_0x38bb9e._0x26077c,_0x38bb9e._0x1f7d81)]('close',_0x312245),{async*[Symbol['asyncIterator']](){function _0x53c869(_0x350722,_0x1bf4d9,_0x565bbb,_0x2fe1b5){return _0x30aa0a(_0x1bf4d9- -_0x658e93._0x43a2b6,_0x2fe1b5,_0x565bbb-0x88,_0x2fe1b5-0x23);}function _0x74671b(_0x2b8077,_0x3584d7,_0x39f5c2,_0x3396e3){return _0x12bf00(_0x3396e3,_0x3584d7-_0x474176._0xebd0f2,_0x3584d7- -_0x474176._0x2c67a9,_0x3396e3-_0x474176._0x5bd307);}try{while(!![]){if(_0x2269d0)throw _0x2269d0;if(_0x4d52e4[_0x74671b(-_0x4c7b9b._0x2a54fd,-0x67,-0xc1,_0x4c7b9b._0x252bc8)]>0x0){yield _0x4d52e4[_0x53c869(0x1c8,0x19c,_0x4c7b9b._0x4fccad,0xbe)]();continue;}if(_0xf8a977)break;await new Promise(_0x542fed=>{_0x16f062=_0x542fed;});}}finally{_0x4901e9[_0x74671b(-_0x4c7b9b._0x500bbc,-0x5a,-0x76,0x6d)](_0x74671b(-_0x4c7b9b._0x17a3d8,_0x4c7b9b._0x44c45d,_0x4c7b9b._0x29cd15,0x147),_0x386d17),_0x4901e9['removeEventListener'](_0x74671b(-0x97,-_0x4c7b9b._0x24a48d,_0x4c7b9b._0x521ac4,-0x9f),_0x36706a),_0x4901e9[_0x74671b(-0xc0,-0x5a,-0x124,0x15)](_0x53c869(0x206,_0x4c7b9b._0x240522,_0x4c7b9b._0x15b43f,0x207),_0x312245),_0x777898();}}};}function toWebSocketUrl(_0x4f1bd2,_0x361baf){const _0x4b0825={_0x5b40d4:0x2c4,_0x4bba5b:0x31b,_0x7957ac:0x3e3,_0x3328b4:0x37f,_0x26664e:0x3e4,_0x58fd44:0x465,_0x1d5a60:0x4aa,_0x462e5b:0x59b},_0x4c83aa={_0x15212d:0x122},_0x37cf3b={_0x4439ec:0x1e4,_0x13f758:0x214},_0x55a839=new URL(_0x361baf,_0x4f1bd2);_0x55a839[_0x2bca83(_0x4b0825._0x5b40d4,0x31b,0x3b3,0x29b)]=_0x55a839[_0x2bca83(0x3ec,_0x4b0825._0x4bba5b,_0x4b0825._0x7957ac,0x33c)]===_0x2bca83(0x2d2,_0x4b0825._0x3328b4,_0x4b0825._0x26664e,_0x4b0825._0x58fd44)?'wss:':_0x331c25(_0x4b0825._0x1d5a60,_0x4b0825._0x462e5b,0x61e,0x568);function _0x331c25(_0x4d3d4b,_0x3662eb,_0x1f8261,_0x55093b){return _0x551389(_0x4d3d4b-_0x37cf3b._0x4439ec,_0x55093b-_0x37cf3b._0x13f758,_0x1f8261,_0x55093b-0x52);}function _0x2bca83(_0x2408da,_0x51282b,_0x138da2,_0x2d5522){return _0xf0dc29(_0x51282b-0x25,_0x51282b-_0x4c83aa._0x15212d,_0x2d5522,_0x2d5522-0x136);}return _0x55a839['toString']();}var ProviderSessionManager=class{[_0xf0dc29(0x37b,0x32b,0x3f2,0x2c4)];[_0xf0dc29(0x341,0x2e0,0x256,0x385)];constructor(_0x2834b3){const _0x1cf273={_0x165c80:0x1a1,_0x10833f:0xb2},_0x123648={_0x30eb69:0x42d,_0x2f4437:0x1c4};function _0x3db3ce(_0x37fb1d,_0x362f16,_0xe47ac5,_0xd21289){return _0xf0dc29(_0xe47ac5- -_0x123648._0x30eb69,_0x362f16-0xb2,_0x37fb1d,_0xd21289-_0x123648._0x2f4437);}this[_0x3db3ce(-_0x1cf273._0x165c80,-0x1,-_0x1cf273._0x10833f,-0x29)]=_0x2834b3;}async[_0x551389(0x2d1,0x35f,0x348,0x413)](_0x3fa446){const _0xd5e9c6={_0x40a0ed:0x2c1,_0x29bb94:0x150,_0x546a2a:0x231,_0x36cd58:0x285},_0x2b3739={_0x10816e:0x1e3,_0x16a7a2:0xb9},_0x47987a={_0x207074:0x4c1,_0x5279bf:0x1d1},_0x1729fa={_0x29c688:0x2d8,_0x9e047f:0x3ae,_0x160773:0x2d0,_0xadbf8d:0x21c,_0x539a18:0x245},_0x56faff={_0x4f8aa7:0x156},_0x8e1fad={_0x2895df:0x577};if(!this['cached']){const _0x54dae1=this[_0x26b6a2(0x277,0x210,_0xd5e9c6._0x40a0ed,0x2ff)]['resolve'](_0x3fa446);_0x54dae1[_0x26b6a2(0x247,0x195,0x2f6,0x224)](()=>{function _0x168a34(_0x375b9d,_0x1b90da,_0x3bdb50,_0x5df27e){return _0x1009fb(_0x375b9d-0x13f,_0x1b90da-0x163,_0x1b90da-_0x8e1fad._0x2895df,_0x375b9d);}function _0x35c785(_0x2e8588,_0x58d6ba,_0x429126,_0xd725d2){return _0x1009fb(_0x2e8588-0x53,_0x58d6ba-_0x56faff._0x4f8aa7,_0xd725d2-0x371,_0x429126);}this[_0x35c785(_0x1729fa._0x29c688,0x367,_0x1729fa._0x9e047f,_0x1729fa._0x160773)]===_0x54dae1&&(this[_0x35c785(_0x1729fa._0xadbf8d,_0x1729fa._0x539a18,0x276,0x2d0)]=void 0x0);}),this[_0x1009fb(-0x56,-0x84,-0xa1,-0x120)]=_0x54dae1;}function _0x1009fb(_0x1abcff,_0x480967,_0x43d963,_0x5006b0){return _0x551389(_0x1abcff-0x3d,_0x43d963- -_0x47987a._0x207074,_0x5006b0,_0x5006b0-_0x47987a._0x5279bf);}function _0x26b6a2(_0x5122de,_0x3d84d4,_0x53b7f4,_0xdcc5a3){return _0x551389(_0x5122de-0x11d,_0x5122de- -_0x2b3739._0x10816e,_0x3d84d4,_0xdcc5a3-_0x2b3739._0x16a7a2);}return structuredClone(await this[_0x26b6a2(0x23d,_0xd5e9c6._0x29bb94,_0xd5e9c6._0x546a2a,_0xd5e9c6._0x36cd58)]);}[_0xf0dc29(0x386,0x37f,0x30c,0x2fa)](){this['cached']=void 0x0;}};async function prepareProviderRequest(_0x5093f4,_0x560ba9={}){const _0xad7757={_0x2b475d:0x5b5,_0x4793fa:0x5b2,_0x58b17c:0x58e,_0x3f1a14:0x484,_0x2ca401:0x39e,_0x307be6:0x350,_0x1a801b:0x1b4,_0x381e46:0x128,_0x4c4416:0x11e,_0x2d3faf:0x532,_0x3bef05:0x4e4},_0x1d565a={_0x45975a:0x37},_0x44b49f={_0x14a6c2:0x180,_0x24bf5b:0x3f};let _0xbc53d9={'request':structuredClone(_0x5093f4),'session':_0x560ba9['sessionManager']?await _0x560ba9[_0x531bce(_0xad7757._0x2b475d,_0xad7757._0x4793fa,0x4cb,_0xad7757._0x58b17c)][_0x531bce(0x354,_0xad7757._0x3f1a14,_0xad7757._0x2ca401,_0xad7757._0x307be6)](_0x560ba9[_0x1c7f55(0x114,_0xad7757._0x1a801b,_0xad7757._0x381e46,_0xad7757._0x4c4416)]):void 0x0};function _0x531bce(_0x1275b4,_0x2a78d9,_0x5115ec,_0x321077){return _0x551389(_0x1275b4-_0x44b49f._0x14a6c2,_0x5115ec-_0x44b49f._0x24bf5b,_0x321077,_0x321077-0x9e);}for(const _0x2a66c5 of _0x560ba9[_0x531bce(_0xad7757._0x2d3faf,0x5c1,0x4e0,_0xad7757._0x3bef05)]??[]){_0xbc53d9=await _0x2a66c5(_0xbc53d9);}function _0x1c7f55(_0x480a5c,_0x12ba9d,_0x1e5e22,_0x228363){return _0x551389(_0x480a5c-0xf5,_0x480a5c- -0x1b6,_0x12ba9d,_0x228363-_0x1d565a._0x45975a);}return _0xbc53d9;}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{[_0x551389(0x3c8,0x47c,0x481,0x50b)];['maxTokens'];[_0x551389(0x28d,0x2cd,0x37a,0x331)];['apiKey'];[_0x551389(0x48d,0x416,0x418,0x468)];[_0x551389(0x3d1,0x3a2,0x386,0x357)];[_0x551389(0x1ff,0x2d8,0x25f,0x3b7)];[_0xf0dc29(0x3c2,0x2e8,0x40b,0x2d8)];[_0xf0dc29(0x2e3,0x3ac,0x336,0x3cb)];['sessionManager'];[_0x551389(0x467,0x40d,0x382,0x361)];[_0xf0dc29(0x318,0x26b,0x39f,0x2a5)]=new Map();constructor(_0x37303f){const _0x2ef43f={_0x23d269:0x65b,_0x25c29a:0x6aa,_0x206ee6:0x375,_0x5c7f9f:0x26b,_0x39837c:0x363,_0x3b57fb:0x539,_0x2093b5:0x1c1,_0xb72ef4:0x53,_0x2c0d73:0x1,_0xe46e7a:0xec,_0x2f308d:0x580,_0x502557:0x58c,_0x3050fd:0x240,_0x3abf9b:0x25c,_0x401128:0x660,_0x2b8cb4:0x16f,_0x261065:0x235,_0x33c875:0x5d0,_0x192761:0x576,_0x85335e:0x289,_0x48cc74:0x22c,_0x50eafd:0x2b9,_0xbfcfd3:0xc6,_0x4c7599:0xf7,_0x9560e5:0x4df,_0x24bffa:0x280,_0x4b8a77:0x2e5,_0x87b786:0x18d,_0x420bf9:0x1e1,_0x548535:0x11e,_0xbf92b1:0x19b,_0x49e6ec:0x1c2,_0x3497c8:0x2c8,_0x599d44:0x65b,_0x5e9822:0x5b7,_0x350192:0x563,_0x5f2251:0x625,_0x350ba5:0x29d,_0x4c7f55:0x216,_0x2cd631:0x21f,_0x4eb732:0x5a5},_0x2342b7={_0x312fc8:0x102,_0x4a9adb:0x169};this[_0x14dfcb(_0x2ef43f._0x23d269,0x612,_0x2ef43f._0x25c29a,0x6f4)]=_0x37303f[_0x2f8e90(_0x2ef43f._0x206ee6,_0x2ef43f._0x5c7f9f,0x29b,_0x2ef43f._0x39837c)];function _0x14dfcb(_0x8d343c,_0x1f2ade,_0x12a76b,_0x756565){return _0xf0dc29(_0x12a76b-0x30d,_0x1f2ade-0x2f,_0x756565,_0x756565-0x1bf);}this[_0x14dfcb(0x51a,0x584,_0x2ef43f._0x3b57fb,0x478)]=_0x37303f['maxTokens']??getDefaultMaxTokens(),this['reasoning']=_0x37303f[_0x2f8e90(_0x2ef43f._0x2093b5,0x16,0xec,_0x2ef43f._0xb72ef4)]?structuredClone(_0x37303f[_0x2f8e90(-_0x2ef43f._0x2c0d73,0x8f,_0x2ef43f._0xe46e7a,0x5d)]):void 0x0,this[_0x14dfcb(0x5a9,_0x2ef43f._0x2f308d,_0x2ef43f._0x502557,0x4ea)]=_0x37303f[_0x2f8e90(0x22c,_0x2ef43f._0x3050fd,0x17d,_0x2ef43f._0x3abf9b)],this[_0x14dfcb(0x643,0x6f1,0x644,_0x2ef43f._0x401128)]=_0x37303f[_0x2f8e90(_0x2ef43f._0x2b8cb4,0x1d5,_0x2ef43f._0x261065,0x1e9)];function _0x2f8e90(_0xbd2375,_0x3c608d,_0x3fb3d6,_0xb0f7a8){return _0xf0dc29(_0x3fb3d6- -_0x2342b7._0x312fc8,_0x3c608d-_0x2342b7._0x4a9adb,_0xbd2375,_0xb0f7a8-0x53);}this[_0x14dfcb(0x523,0x575,_0x2ef43f._0x33c875,0x4ef)]=_0x37303f[_0x14dfcb(0x636,_0x2ef43f._0x192761,0x638,0x604)]??globalThis[_0x2f8e90(_0x2ef43f._0x85335e,_0x2ef43f._0x48cc74,0x229,_0x2ef43f._0x50eafd)],this[_0x2f8e90(0x13f,_0x2ef43f._0xbfcfd3,_0x2ef43f._0x4c7599,0x58)]=_0x37303f[_0x14dfcb(0x5a2,_0x2ef43f._0x9560e5,0x506,0x559)],this['requestMutators']=_0x37303f[_0x2f8e90(0x3a4,_0x2ef43f._0x24bffa,0x2c0,_0x2ef43f._0x4b8a77)]??[],this[_0x2f8e90(_0x2ef43f._0x87b786,0x2cf,_0x2ef43f._0x420bf9,_0x2ef43f._0x548535)]=_0x37303f[_0x2f8e90(_0x2ef43f._0xbf92b1,_0x2ef43f._0x49e6ec,0x1e1,0x1a8)],this['sessionManager']=_0x37303f['sessionManager']??(_0x37303f['providerSessionResolver']?new ProviderSessionManager(_0x37303f[_0x2f8e90(_0x2ef43f._0x3497c8,0x1f7,0x265,0x1f0)]):void 0x0),this[_0x14dfcb(_0x2ef43f._0x599d44,0x6bf,0x63b,0x673)]=_0x37303f[_0x2f8e90(0x16f,0x1a8,0x22c,0x186)]??createDefaultWebSocketFactory();for(const _0x5349c7 of _0x37303f[_0x14dfcb(_0x2ef43f._0x5e9822,_0x2ef43f._0x350192,_0x2ef43f._0x5f2251,0x611)]){this[_0x2f8e90(0x2fc,_0x2ef43f._0x350ba5,_0x2ef43f._0x4c7f55,_0x2ef43f._0x2cd631)][_0x14dfcb(0x4ed,_0x2ef43f._0x4eb732,0x5bd,0x5c5)](_0x5349c7['id'],_0x5349c7);}}[_0xf0dc29(0x25b,0x23a,0x208,0x17d)](_0x27f28f,_0x3c5acf){const _0xde073b={_0x3a722b:0xf3,_0x249914:0x25},_0x11d394={_0x572882:0x331,_0x65f3ec:0x77};function _0x23f1a3(_0x27426f,_0x402459,_0x3df9f6,_0x440a3f){return _0xf0dc29(_0x27426f- -_0x11d394._0x572882,_0x402459-_0x11d394._0x65f3ec,_0x440a3f,_0x440a3f-0xbe);}return this[_0x23f1a3(-_0xde073b._0x3a722b,-_0xde073b._0x249914,-0x138,-0xd8)](_0x27f28f,_0x3c5acf);}[_0xf0dc29(0x31f,0x346,0x39c,0x2aa)](_0x28ca5d,_0x2cb539){const _0x267067={_0x45ad42:0x4ba,_0x101c28:0x592},_0xf7e9b5={_0x1c8d79:0xb5,_0x378620:0xf9,_0x2b1713:0x125};function _0x28fc0a(_0xd5dc17,_0x5160c1,_0x49c2b3,_0xcdd027){return _0x551389(_0xd5dc17-_0xf7e9b5._0x1c8d79,_0x49c2b3-_0xf7e9b5._0x378620,_0x5160c1,_0xcdd027-_0xf7e9b5._0x2b1713);}return this[_0x28fc0a(0x5a8,_0x267067._0x45ad42,_0x267067._0x101c28,0x53c)](_0x28ca5d,_0x2cb539);}async['completeViaRouter'](_0x4d7f6a,_0x134bbf){const _0x8098e7={_0xd9b5dd:0x687,_0xa8ba25:0x5c5,_0x30d4f9:0x65c,_0xf63b9f:0x518,_0xddae22:0x2ff,_0xde413:0x305},_0x4b9f4e={_0x164d64:0x29a,_0x1d2257:0x171,_0x429934:0xca},_0x67a176={_0x53cd7b:0x56e,_0x2ec07e:0xde},_0x1d5026=this[_0xb2d33f(_0x8098e7._0xd9b5dd,_0x8098e7._0xa8ba25,0x6c3,0x65a)](_0x4d7f6a);function _0x890c5c(_0x5849b7,_0x1f8009,_0x5d4433,_0x29ecf4){return _0x551389(_0x5849b7-0xd,_0x1f8009- -_0x67a176._0x53cd7b,_0x29ecf4,_0x29ecf4-_0x67a176._0x2ec07e);}const _0x4e5550=await this[_0xb2d33f(0x53d,_0x8098e7._0x30d4f9,_0x8098e7._0xf63b9f,0x57d)][_0x890c5c(-0x30c,-0x226,-_0x8098e7._0xddae22,-_0x8098e7._0xde413)](_0x1d5026,{'mode':'complete'});function _0xb2d33f(_0x39ad55,_0x584470,_0x503ae6,_0x556cfb){return _0xf0dc29(_0x556cfb-_0x4b9f4e._0x164d64,_0x584470-_0x4b9f4e._0x1d2257,_0x39ad55,_0x556cfb-_0x4b9f4e._0x429934);}return this['completeViaSurface'](_0x1d5026,_0x4e5550,_0x134bbf);}async*[_0x551389(0x412,0x499,0x42a,0x50b)](_0x5a2a72,_0x1a033a){const _0x3b1f5e={_0x45b86f:0x136,_0x4eb96e:0x3c5,_0x10b141:0x1be,_0x49542e:0xd4,_0x4ac6dd:0x138,_0x15712a:0x118,_0x17fd0b:0x1bd},_0x16665e={_0x3f45c0:0x1ab,_0x127aa6:0x83},_0x43d43a=this['applyModelDefaults'](_0x5a2a72);function _0x57bffb(_0x14bd75,_0x35fa43,_0x15b848,_0x3a9c6b){return _0x551389(_0x14bd75-_0x16665e._0x3f45c0,_0x15b848- -0x2c5,_0x14bd75,_0x3a9c6b-_0x16665e._0x127aa6);}function _0x33faf7(_0x17bc6a,_0x3af108,_0x577c5b,_0x28fe29){return _0xf0dc29(_0x17bc6a-0x1c2,_0x3af108-0x8f,_0x28fe29,_0x28fe29-0x1d8);}const _0x45808b=await this[_0x57bffb(0x1b,_0x3b1f5e._0x45b86f,0xfd,0x60)][_0x33faf7(0x42b,0x4b5,_0x3b1f5e._0x4eb96e,0x4eb)](_0x43d43a,{'mode':_0x57bffb(0x62,_0x3b1f5e._0x10b141,0x139,_0x3b1f5e._0x49542e)});yield*this[_0x57bffb(0x70,_0x3b1f5e._0x4ac6dd,_0x3b1f5e._0x15712a,_0x3b1f5e._0x17fd0b)](_0x43d43a,_0x45808b,_0x1a033a);}async['completeViaSurface'](_0x3b7702,_0x26baee,_0x46002d){const _0x3cf415={_0x5e9c47:0x36,_0x13328d:0x91,_0x229bf8:0x15b,_0x2b9b53:0x143,_0x298797:0xba,_0x503175:0x1dc,_0x5a9564:0x25f,_0x5a40d1:0x69,_0x4c779a:0x24,_0x5f24d8:0x9f,_0x396590:0xcc,_0x53b41e:0x40,_0x5c553b:0x126,_0x4d4d5f:0x1f,_0x2fedd6:0xca,_0x28e447:0x200,_0x9c2e06:0x72,_0x701b9:0x33,_0x4b29f4:0x8b,_0x386a4e:0x6c,_0x358be7:0x125,_0x5cf364:0x1a3},_0x250996={_0x275fe7:0x1d6,_0x594d40:0x49},_0x13dbf2=this[_0x4c08cb(_0x3cf415._0x5e9c47,_0x3cf415._0x13328d,0xfb,_0x3cf415._0x229bf8)](_0x3b7702);function _0x4c08cb(_0x5bcd2f,_0xe91920,_0x11cbda,_0x39ec85){return _0xf0dc29(_0x11cbda- -0x2c5,_0xe91920-0x78,_0x5bcd2f,_0x39ec85-0x1c4);}const _0x402a95=this[_0x378d1a(0xf9,0x204,0x1d3,_0x3cf415._0x2b9b53)](_0x26baee);if(_0x402a95[_0x378d1a(0x1a0,0x90,0xed,0xef)]===_0x378d1a(_0x3cf415._0x298797,_0x3cf415._0x503175,0x178,_0x3cf415._0x5a9564)){const _0x24c733=await this[_0x378d1a(_0x3cf415._0x5a40d1,-_0x3cf415._0x4c779a,_0x3cf415._0x5f24d8,0x105)](_0x13dbf2,_0x402a95,![],_0x46002d);if(!_0x24c733['ok'])throw await this[_0x378d1a(_0x3cf415._0x396590,0xbc,0xe5,0x187)](_0x24c733);if(!_0x402a95['parseResponse'])throw new Error(_0x4c08cb(0x13d,0xff,0xb8,0x1d)+_0x26baee+_0x4c08cb(0xe4,-_0x3cf415._0x53b41e,_0x3cf415._0x13328d,_0x3cf415._0x5c553b));return _0x402a95[_0x4c08cb(0x9f,0x8b,-_0x3cf415._0x4d4d5f,-_0x3cf415._0x2fedd6)](await _0x24c733[_0x378d1a(0xb5,0x74,0x129,_0x3cf415._0x28e447)](),_0x13dbf2);}function _0x378d1a(_0x5ea659,_0x4971d2,_0x2c47c2,_0x17b544){return _0x551389(_0x5ea659-_0x250996._0x275fe7,_0x2c47c2- -0x246,_0x4971d2,_0x17b544-_0x250996._0x594d40);}let _0x4f12a6;for await(const _0xaf7178 of this['streamViaSurface'](_0x13dbf2,_0x26baee,_0x46002d)){_0xaf7178['type']===_0x4c08cb(0x153,_0x3cf415._0x9c2e06,0xd2,_0x3cf415._0x701b9)&&(_0x4f12a6=_0xaf7178[_0x4c08cb(-0x114,-0x129,-_0x3cf415._0x4b29f4,-_0x3cf415._0x386a4e)]);}if(!_0x4f12a6)throw new Error('Surface\x20'+_0x26baee+_0x378d1a(0xf5,0x88,_0x3cf415._0x358be7,_0x3cf415._0x5cf364));return _0x4f12a6;}async*['streamViaSurface'](_0x436f1e,_0x220531,_0x49790e){const _0x280072={_0x336afc:0x51a,_0x1502ed:0x3da,_0x2ceadd:0x55d,_0x2a333c:0x499,_0x93f293:0x4ad,_0xbe72ea:0x3a9,_0x352af6:0x43e,_0x7bc294:0x3c0,_0x141356:0x33a,_0x287fdf:0x4b5,_0x33f12c:0x3e9,_0x4f1c7e:0x4f5,_0x2f199d:0x357,_0x535915:0x28d},_0x47942d={_0xf19e77:0x16a},_0x3f5af2={_0x1bbb85:0x196,_0x1ed42d:0x1e8};function _0x887800(_0x419dce,_0xe20d5d,_0x97c15c,_0x4e0ec0){return _0xf0dc29(_0x4e0ec0-0x15f,_0xe20d5d-_0x3f5af2._0x1bbb85,_0x97c15c,_0x4e0ec0-_0x3f5af2._0x1ed42d);}const _0x2347f1=this['applyModelDefaults'](_0x436f1e),_0x574f61=this[_0x887800(_0x280072._0x336afc,_0x280072._0x1502ed,_0x280072._0x2ceadd,_0x280072._0x2a333c)](_0x220531);function _0x18210c(_0x3e3155,_0x12bac7,_0x42807e,_0x4f50ff){return _0x551389(_0x3e3155-_0x47942d._0xf19e77,_0x3e3155-0x8d,_0x12bac7,_0x4f50ff-0x101);}if(_0x574f61[_0x18210c(0x3c0,0x32a,0x3b1,0x364)]===_0x887800(_0x280072._0x93f293,0x4a6,_0x280072._0xbe72ea,_0x280072._0x352af6)){const _0x456c9d=await this['completeViaSurface'](_0x2347f1,_0x220531,_0x49790e);yield{'type':'done','response':_0x456c9d};return;}if(_0x574f61[_0x18210c(_0x280072._0x7bc294,0x2f8,0x3e4,_0x280072._0x141356)]===_0x18210c(0x4d6,_0x280072._0x287fdf,0x47a,0x56b)){yield*this['streamHttpSurface'](_0x2347f1,_0x574f61,_0x49790e);return;}yield*this[_0x18210c(0x42c,_0x280072._0x33f12c,0x4ca,_0x280072._0x4f1c7e)](_0x2347f1,_0x574f61,_0x49790e?.[_0x18210c(_0x280072._0x2f199d,0x2b9,_0x280072._0x535915,0x2cc)]);}async[_0x551389(0x2f1,0x2e7,0x234,0x391)](_0x23a44a){const _0x5af986={_0xbebd31:0x67e,_0x34f0b9:0x11f,_0x4b3683:0x1eb,_0x5e1bef:0x225,_0x17e2ba:0x2e3,_0x2f0da3:0x226,_0x155b35:0x14d,_0x5c3ec4:0x2ce,_0x34cc9c:0x1f9,_0x5d3eed:0x1e5,_0x42263a:0x199,_0x455b17:0x566,_0x6109bc:0x4b8,_0x1e1b95:0x5d1,_0x1cf6b2:0x54e,_0x2aa82c:0x543,_0x2c0ab5:0x106,_0x117e1a:0x682,_0x90cc66:0x688,_0x1799c6:0x73d,_0x1da0a7:0x1bd,_0x49d176:0x12c,_0x4722cb:0x212,_0x4bafb8:0x50e,_0x1903ad:0xd7,_0x1de7f6:0x1cd,_0x5ac2de:0x6d9,_0x4f8928:0x5eb,_0x23e9e5:0x5db,_0x2334d0:0x5f0,_0x4491e6:0x102,_0x4cc05c:0x2be,_0x4cf5fb:0x23f,_0xb75571:0x1e7,_0x42fb73:0x262,_0x420739:0x22f},_0x322355={_0x1ac3c7:0x3a1},_0x561ef5=async()=>{const _0x3c6414=this['sessionManager']?await this[_0x513c65(0x6b0,_0x5af986._0xbebd31,0x762,0x5a9)][_0x40edae(-_0x5af986._0x34f0b9,-0x1e4,-_0x5af986._0x4b3683,-0x237)](_0x23a44a[_0x40edae(-0x251,-0x279,-_0x5af986._0x5e1bef,-_0x5af986._0x17e2ba)]):void 0x0;function _0x40edae(_0x943160,_0x53458b,_0x36c3ec,_0x118f45){return _0x5b12(_0x53458b- -0x394,_0x118f45);}const _0xe966b3=this[_0x40edae(-0x314,-0x26b,-0x19f,-_0x5af986._0x2f0da3)][_0x40edae(-_0x5af986._0x155b35,-0x1ff,-_0x5af986._0x5c3ec4,-_0x5af986._0x34cc9c)](this[_0x40edae(-0x180,-_0x5af986._0x5d3eed,-_0x5af986._0x42263a,-0x1c0)],_0x3c6414);if(!_0xe966b3)throw this['createMissingCredentialError']();const _0x366adc=await this[_0x513c65(0x549,_0x5af986._0x455b17,_0x5af986._0x6109bc,0x515)]({'body':_0x23a44a[_0x513c65(_0x5af986._0x1e1b95,_0x5af986._0x1cf6b2,_0x5af986._0x2aa82c,0x4fb)],'credential':_0xe966b3,'session':_0x3c6414,'stream':![]},{'accept':_0x23a44a[_0x40edae(-0x46,-0x128,-_0x5af986._0x2c0ab5,-0x210)]??_0x513c65(0x657,_0x5af986._0x117e1a,_0x5af986._0x90cc66,_0x5af986._0x1799c6),'includeContentType':_0x23a44a[_0x40edae(-0x25f,-_0x5af986._0x1da0a7,-0x122,-_0x5af986._0x49d176)]==='POST'});function _0x513c65(_0x148d8b,_0x435708,_0x15624c,_0x54368a){return _0x5b12(_0x435708-_0x322355._0x1ac3c7,_0x54368a);}return this[_0x40edae(-0x286,-0x1a1,-_0x5af986._0x4722cb,-0x1e8)](''+this[_0x513c65(_0x5af986._0x4bafb8,0x4ca,0x424,0x594)]['resolveBaseUrl'](this[_0x40edae(-_0x5af986._0x1903ad,-0x12d,-0x1ad,-_0x5af986._0x1de7f6)],_0x3c6414)+_0x23a44a[_0x513c65(_0x5af986._0x5ac2de,_0x5af986._0x4f8928,0x6a8,0x682)],{'method':_0x23a44a[_0x513c65(0x593,0x578,_0x5af986._0x23e9e5,_0x5af986._0x2334d0)],'headers':_0x366adc,..._0x23a44a[_0x40edae(-_0x5af986._0x4491e6,-0x1e7,-_0x5af986._0x4cc05c,-0x247)]!==void 0x0?{'body':JSON[_0x40edae(-_0x5af986._0x4cf5fb,-0x186,-0x156,-0x24e)](_0x23a44a[_0x40edae(-0x1ac,-_0x5af986._0xb75571,-_0x5af986._0x42fb73,-_0x5af986._0x420739)])}:{},'signal':_0x23a44a['signal']});};return await this['sendWithRetries'](_0x561ef5,_0x23a44a);}[_0xf0dc29(0x209,0x29b,0x196,0x281)](_0x3856fa,_0x45bfb7){const _0x1fcb7d={_0x3ee974:0xcd,_0x30f062:0x99,_0x4cf6d2:0xd,_0x2d12c9:0xc8,_0x37c6bf:0x34,_0x6f3b52:0x91,_0x39989b:0xb3,_0x47c985:0x63,_0x55c056:0x16f,_0x31be9d:0x11b,_0x2ee478:0x62,_0x1d5f93:0xe2,_0xa081ec:0x1cd,_0x2ec049:0x96,_0x5a090c:0x18e},_0x15034a={_0x412861:0x6a,_0x5b84da:0x13c},_0x291633={_0xb6eb2d:0x19c,_0x4b7db1:0x3b7,_0x367d4a:0x170},_0x43bc2c=_0x3856fa?.[_0x9ce61e(-_0x1fcb7d._0x3ee974,-_0x1fcb7d._0x30f062,_0x1fcb7d._0x4cf6d2,-0x123)][_0x32f3f0(0x6b,-_0x1fcb7d._0x2d12c9,0x5,0x22)](_0x9ce61e(-_0x1fcb7d._0x37c6bf,_0x1fcb7d._0x6f3b52,-_0x1fcb7d._0x39989b,-_0x1fcb7d._0x47c985));if(_0x43bc2c){const _0x5baa74=Number(_0x43bc2c);if(Number['isFinite'](_0x5baa74)&&_0x5baa74>=0x0)return _0x5baa74*0x3e8;const _0x4fe3ab=Date[_0x9ce61e(0xb5,_0x1fcb7d._0x55c056,0x174,0x126)](_0x43bc2c);if(Number[_0x32f3f0(_0x1fcb7d._0x31be9d,0x60,_0x1fcb7d._0x2ee478,0x138)](_0x4fe3ab))return Math[_0x32f3f0(0x92,0x15,0x14c,_0x1fcb7d._0x1d5f93)](0x0,_0x4fe3ab-Date[_0x32f3f0(_0x1fcb7d._0xa081ec,_0x1fcb7d._0x2ec049,_0x1fcb7d._0x5a090c,0x101)]());}function _0x9ce61e(_0x31eea8,_0x2cce57,_0x4327b8,_0x1e06bd){return _0x551389(_0x31eea8-_0x291633._0xb6eb2d,_0x31eea8- -_0x291633._0x4b7db1,_0x1e06bd,_0x1e06bd-_0x291633._0x367d4a);}function _0x32f3f0(_0x366d5b,_0x519896,_0x4a84d2,_0x34f65a){return _0x551389(_0x366d5b-_0x15034a._0x412861,_0x34f65a- -0x355,_0x4a84d2,_0x34f65a-_0x15034a._0x5b84da);}const _0x595420=DEFAULT_RETRY_DELAY_MS*0x2**_0x45bfb7;if(_0x595420<RETRY_DELAY_STEP_CAP_MS)return _0x595420;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x45bfb7-0x5);}['shouldRetryResponse'](_0x5176ef){const _0x25a9c7={_0x168351:0x1e4,_0x402583:0x171,_0x2616aa:0x26d},_0x4041e8={_0x4baf38:0x20d,_0x59629d:0xdb};function _0x3d5ebc(_0x2d288f,_0x248840,_0x2d388a,_0x285996){return _0x551389(_0x2d288f-0xbe,_0x2d288f- -0x21b,_0x2d388a,_0x285996-0x63);}function _0x1eacb8(_0x484273,_0x460e85,_0xed0956,_0x2f114e){return _0xf0dc29(_0x460e85- -_0x4041e8._0x4baf38,_0x460e85-_0x4041e8._0x59629d,_0xed0956,_0x2f114e-0x45);}return RETRYABLE_HTTP_STATUSES[_0x3d5ebc(0x13b,_0x25a9c7._0x168351,_0x25a9c7._0x402583,0xf3)](_0x5176ef[_0x1eacb8(0x277,0x1aa,0x132,_0x25a9c7._0x2616aa)]);}[_0x551389(0x558,0x480,0x466,0x425)](_0x3ff08f){return!isAbortError(_0x3ff08f)&&_0x3ff08f instanceof TypeError;}['shouldRetryStreamAttemptError'](_0x5521c1){const _0x513f8f={_0x38128e:0x162,_0x296661:0x12a,_0x11f941:0x218},_0x13de1b={_0x58761e:0x143};function _0x4faef4(_0xaf3906,_0x28cb36,_0x40058a,_0x5efe75){return _0xf0dc29(_0x28cb36- -0x23f,_0x28cb36-_0x13de1b._0x58761e,_0x5efe75,_0x5efe75-0x110);}return this[_0x4faef4(0x83,_0x513f8f._0x38128e,_0x513f8f._0x296661,_0x513f8f._0x11f941)](_0x5521c1)||isRetryableProviderStreamEventError(_0x5521c1);}async[_0xf0dc29(0x255,0x1ff,0x32a,0x2db)](_0xff51c7,_0x4847d7){throwIfAborted(_0x4847d7),await new Promise((_0x5d2a26,_0x290339)=>{let _0x2fc27e=![];const _0x7f4002=addAbortListener(_0x4847d7,()=>{function _0x5aaefb(_0x30a771,_0x16265e,_0x445887,_0x479d46){return _0x5b12(_0x30a771- -0xb2,_0x16265e);}if(_0x2fc27e)return;_0x2fc27e=!![],clearTimeout(_0x3c8261),_0x290339(toAbortError(_0x4847d7?.[_0x5aaefb(0x101,0xb3,0x14c,0x7d)]));}),_0x3c8261=setTimeout(()=>{_0x2fc27e=!![],_0x7f4002(),_0x5d2a26();},_0xff51c7);}),throwIfAborted(_0x4847d7);}async[_0x551389(0x2c2,0x2db,0x331,0x22e)](_0x5bc177,_0x13a296={}){const _0x54bbe1={_0x39ae36:0x5d4,_0x51260c:0x464,_0x20b7ed:0x3a6,_0xbf2642:0x441,_0x498a3a:0x379,_0x232ad9:0x441,_0x29dfdc:0x4f9,_0x5744da:0x430,_0x37489c:0x41a,_0x5d2d70:0x3a8,_0x695190:0x430,_0x47df74:0x52d,_0xbcdc89:0x38d,_0x5dd60c:0x2af,_0x2b5380:0x56e,_0x4ec197:0x579,_0xc63f94:0x3d9,_0x257844:0x339,_0x1d7ab5:0x44a,_0x3e36e8:0x527,_0x10795d:0x5cc},_0x197545={_0x5ce6ba:0x9},_0x2e832b={_0x2dafc0:0x17b},{signal:_0x41e0f4}=_0x13a296;let _0x302a21=![];function _0x257504(_0x1665f8,_0x3e7fc5,_0x2e743a,_0x4d5651){return _0xf0dc29(_0x1665f8-0x184,_0x3e7fc5-_0x2e832b._0x2dafc0,_0x4d5651,_0x4d5651-0x126);}function _0x31a857(_0xf94086,_0x3f16f3,_0x422cc0,_0x2e4b54){return _0xf0dc29(_0x3f16f3-0x94,_0x3f16f3-_0x197545._0x5ce6ba,_0xf94086,_0x2e4b54-0xec);}for(let _0x3940d5=0x0;_0x3940d5<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x3940d5+=0x1){throwIfAborted(_0x41e0f4);try{const _0x22a2b5=await _0x5bc177();if(_0x22a2b5[_0x257504(0x53b,_0x54bbe1._0x39ae36,_0x54bbe1._0x51260c,0x5fc)]===0x191&&this[_0x31a857(_0x54bbe1._0x20b7ed,_0x54bbe1._0xbf2642,0x47f,0x41a)]&&!_0x302a21){_0x302a21=!![],this[_0x31a857(_0x54bbe1._0x498a3a,_0x54bbe1._0x232ad9,_0x54bbe1._0x29dfdc,_0x54bbe1._0x5744da)][_0x31a857(0x36a,_0x54bbe1._0x37489c,0x506,_0x54bbe1._0x5d2d70)]();continue;}if(!this[_0x257504(0x502,0x59d,_0x54bbe1._0x695190,_0x54bbe1._0x47df74)](_0x22a2b5)||_0x3940d5===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x22a2b5;const _0x2a74cd=this[_0x257504(_0x54bbe1._0xbcdc89,0x38d,0x2a8,0x2ff)](_0x22a2b5,_0x3940d5);await this[_0x31a857(0x28f,0x2e9,_0x54bbe1._0x5dd60c,0x350)](_0x2a74cd,_0x41e0f4);}catch(_0x3323ac){if(!this[_0x257504(0x525,_0x54bbe1._0x2b5380,0x4f3,_0x54bbe1._0x4ec197)](_0x3323ac)||_0x3940d5===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x3323ac;const _0x298f7f=this['getRetryDelayMs'](void 0x0,_0x3940d5);await this[_0x257504(_0x54bbe1._0xc63f94,_0x54bbe1._0x257844,0x310,_0x54bbe1._0x1d7ab5)](_0x298f7f,_0x41e0f4);}}throw new Error(_0x257504(_0x54bbe1._0x3e36e8,0x50e,_0x54bbe1._0x10795d,0x529));}['createMissingCredentialError'](){const _0x37001f={_0x50df7f:0xc,_0x23a8ed:0x73,_0x1723dc:0xa4,_0x2cac5e:0x1b1},_0x4229e8={_0x465bde:0x155};function _0x5b2d5a(_0x58316d,_0x385eaa,_0x3d990f,_0x23ed4b){return _0xf0dc29(_0x3d990f- -_0x4229e8._0x465bde,_0x385eaa-0x1db,_0x385eaa,_0x23ed4b-0x46);}function _0x5ab927(_0x49b185,_0x37256d,_0x20c493,_0x1c6c2c){return _0x551389(_0x49b185-0x143,_0x37256d- -0x57f,_0x1c6c2c,_0x1c6c2c-0x1a5);}return this[_0x5b2d5a(-_0x37001f._0x50df7f,_0x37001f._0x23a8ed,_0x37001f._0x1723dc,-0x48)][_0x5b2d5a(0x12d,_0x37001f._0x2cac5e,0x139,0x1c7)]();}async[_0x551389(0x313,0x374,0x3ad,0x2ac)](_0x4960de,_0x105ed7){const _0x2698e7={_0x3c9d12:0x2cc,_0x30b519:0x28f,_0x30b8e7:0x21f},_0x195994={_0x373d1e:0x120};function _0x175173(_0x2bc151,_0x3b84f9,_0x3d1107,_0x4cf3e8){return _0xf0dc29(_0x2bc151-0xd3,_0x3b84f9-_0x195994._0x373d1e,_0x3d1107,_0x4cf3e8-0x177);}return await this[_0x175173(_0x2698e7._0x3c9d12,_0x2698e7._0x30b519,_0x2698e7._0x30b8e7,0x37d)]['createHeaders'](_0x4960de,_0x105ed7);}[_0x551389(0x3df,0x318,0x2f1,0x25e)](_0x56e877){const _0xe4eb44={_0x1d90cc:0xeb,_0x1f5933:0x65,_0x51cf03:0x57,_0x22bf97:0x16c,_0xda8233:0x1d7,_0x1880fa:0x1ed},_0x434bdf={_0x55b86c:0xe1,_0x496d6b:0x39},_0x2eb22e={_0x834876:0x19c};function _0xe55a96(_0x55e1f3,_0x114115,_0x22f858,_0x384752){return _0x551389(_0x55e1f3-_0x2eb22e._0x834876,_0x22f858- -0x257,_0x55e1f3,_0x384752-0x1bd);}function _0x3b5837(_0x1e25cf,_0x35f584,_0xee3b19,_0x135a36){return _0xf0dc29(_0x35f584- -0x410,_0x35f584-_0x434bdf._0x55b86c,_0x1e25cf,_0x135a36-_0x434bdf._0x496d6b);}return this[_0xe55a96(_0xe4eb44._0x1d90cc,-_0xe4eb44._0x1f5933,0x81,-_0xe4eb44._0x51cf03)][_0x3b5837(-_0xe4eb44._0x22bf97,-_0xe4eb44._0xda8233,-0x1fa,-_0xe4eb44._0x1880fa)](_0x56e877);}async[_0x551389(0x30c,0x32b,0x2dd,0x379)](_0x513c5c){const _0x4a2027={_0x3d0725:0xfe,_0x37a437:0x174},_0x560011={_0x2caa0c:0x175};function _0x3bbe2a(_0x4ebbdc,_0x1d4fcb,_0x598a72,_0x4b511b){return _0xf0dc29(_0x4b511b-0x51,_0x1d4fcb-_0x560011._0x2caa0c,_0x4ebbdc,_0x4b511b-0x2f);}function _0x3f5c5(_0x130ce2,_0x317856,_0xb87a70,_0x4447e0){return _0xf0dc29(_0xb87a70- -_0x4a2027._0x3d0725,_0x317856-0x1be,_0x4447e0,_0x4447e0-_0x4a2027._0x37a437);}return await this[_0x3f5c5(0x98,0xba,0xfb,0x147)][_0x3bbe2a(0x1ff,0x24a,0x2fa,0x29d)](_0x513c5c);}[_0x551389(0x4d3,0x419,0x3d1,0x3ff)](_0x24370f){const _0x5bd548={_0x41b837:0x48e,_0x538103:0x3ac,_0x5b5c91:0x32c,_0x350431:0x4bc,_0x525a2c:0x542},_0x259cde={_0x575976:0x121},_0x434754={_0x20f854:0x11f,_0x557bd6:0x2f};function _0x3c8ad3(_0x20abdb,_0x233bff,_0x1ed5c5,_0x5e2688){return _0xf0dc29(_0x5e2688-_0x434754._0x20f854,_0x233bff-_0x434754._0x557bd6,_0x20abdb,_0x5e2688-0x61);}const _0x353359=this[_0x3cd88c(0x42c,0x43a,0x36f,_0x5bd548._0x41b837)][_0x3cd88c(_0x5bd548._0x538103,0x45b,_0x5bd548._0x5b5c91,0x428)](_0x24370f);function _0x3cd88c(_0x32bdb8,_0x3b3660,_0x28cdbd,_0x28a647){return _0xf0dc29(_0x32bdb8-0x114,_0x3b3660-0x1d5,_0x3b3660,_0x28a647-_0x259cde._0x575976);}if(!_0x353359)throw new Error(_0x3cd88c(_0x5bd548._0x350431,0x44c,_0x5bd548._0x525a2c,0x4f9)+_0x24370f);return _0x353359;}async[_0x551389(0x3de,0x3f8,0x3f6,0x48d)](_0x22804c,_0x28753b){const _0xffa2f2={_0x42f881:0x3ef,_0x577c20:0x4d1,_0x1a2a1d:0x362,_0x58daea:0x385,_0x3da2d8:0x4fe,_0x5b6171:0x11f,_0x2c2b0d:0x23a,_0xdb52e3:0x445,_0x321795:0x3f8,_0x33b5ee:0x450,_0x1f28d2:0x515,_0x4496a8:0x4da,_0x1b70fb:0x42e,_0x5bab2c:0x4cf,_0x4e372e:0x1c2},_0x1c4844={_0x4e4a61:0x56,_0x57129b:0x18a};function _0x1b1428(_0x515b73,_0x484421,_0x39c48c,_0x42ea27){return _0x551389(_0x515b73-_0x1c4844._0x4e4a61,_0x484421-0xc4,_0x42ea27,_0x42ea27-_0x1c4844._0x57129b);}const _0x8c5d12=toModelRequest(_0x22804c),_0x2d4a2c=await prepareProviderRequest(_0x8c5d12,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x28753b}),_0x33c8b4=toChatRequest(_0x2d4a2c[_0x1b1428(_0xffa2f2._0x42f881,0x45e,_0xffa2f2._0x577c20,0x3e4)]),_0x386b84=this[_0x1b1428(0x35b,0x39c,0x419,_0xffa2f2._0x1a2a1d)]['resolveCredential'](this[_0x1b1428(0x354,0x422,_0xffa2f2._0x58daea,_0xffa2f2._0x3da2d8)],_0x2d4a2c[_0x2121f3(0x215,_0xffa2f2._0x5b6171,_0xffa2f2._0x2c2b0d,0x1c2)]);function _0x2121f3(_0x12a0c2,_0x41e7a7,_0x170b5f,_0x5bcd77){return _0xf0dc29(_0x5bcd77- -0x16a,_0x41e7a7-0x11,_0x41e7a7,_0x5bcd77-0x1b7);}if(!_0x386b84)throw this[_0x1b1428(_0xffa2f2._0xdb52e3,0x431,_0xffa2f2._0x321795,_0xffa2f2._0x33b5ee)]();return{'baseUrl':this['providerAdapter']['resolveBaseUrl'](this[_0x1b1428(_0xffa2f2._0x1f28d2,_0xffa2f2._0x4496a8,0x590,0x572)],_0x2d4a2c[_0x1b1428(_0xffa2f2._0x1b70fb,_0xffa2f2._0x5bab2c,0x466,0x57d)]),'credential':_0x386b84,'request':_0x33c8b4,'session':_0x2d4a2c[_0x2121f3(0x1c8,0x1b7,0x208,_0xffa2f2._0x4e372e)]};}[_0x551389(0x44a,0x49f,0x3c7,0x484)](_0xaed3dc){return{...structuredClone(_0xaed3dc),..._0xaed3dc['reasoning']===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};}async[_0x551389(0x248,0x2e5,0x284,0x311)](_0x3255f5,_0x1070fe,_0x14a4fb,_0x15becc={},_0x45e96d=!![]){const _0x469fea={_0x51d461:0x33},_0x34196b={_0x5c2237:0x36b,_0x45b82b:0x3dd,_0x508b4a:0x6ad,_0x250159:0x586,_0x31856f:0x4f9,_0x1514a3:0x566,_0x3047c0:0x546,_0x17dcc9:0x483,_0x48e124:0x4ce,_0x8078c6:0x537,_0x15de7f:0x27c,_0x12a2b6:0x2ee,_0x3f50c6:0x2e0,_0x19ba9a:0x34c,_0x2ddb94:0x604,_0x10d9ed:0x520,_0x2d2977:0x488,_0xe8bf17:0x578,_0x534b47:0x309,_0x12c8b6:0x467,_0x4f5c6a:0x3a5,_0x1e4850:0x39e,_0x1514d9:0x434,_0x1bb8ab:0x364,_0x5ad098:0x422,_0x490fb7:0x49c,_0x1bb4e4:0x2ee,_0xb6bad:0x2a6,_0x2f1bae:0x483,_0x2fd868:0x27c,_0x4aff2e:0x1ef,_0x2ed181:0x307,_0x272176:0x445,_0x5d690c:0x3be,_0x18c6e8:0x61e,_0x18b1ee:0x318,_0x468205:0x3b7,_0x1129af:0x201},_0x53ac20={_0xa0422b:0x141},{signal:_0x4421b3}=_0x15becc,_0xc7a074=async()=>{const _0x605f6c=await this[_0x503d59(0x38a,_0x34196b._0x5c2237,0x2c2,0x339)](_0x3255f5,_0x4421b3);let _0x31a72b;function _0x503d59(_0x476395,_0x5dde57,_0xfedff,_0xaafb14){return _0x5b12(_0x476395-_0x53ac20._0xa0422b,_0xaafb14);}try{_0x31a72b=_0x1070fe[_0x2babcf(0x3e5,_0x34196b._0x45b82b,0x44a,0x50f)](_0x605f6c['request']);}catch(_0x4f9630){if(_0x4f9630 instanceof Error)throw new ProviderRequestConstructionError(_0x4f9630[_0x2babcf(_0x34196b._0x508b4a,0x500,0x5cf,_0x34196b._0x250159)]);throw _0x4f9630;}if(!_0x31a72b[_0x2babcf(_0x34196b._0x31856f,0x50e,_0x34196b._0x1514a3,_0x34196b._0x3047c0)])throw new ProviderRequestConstructionError('Surface\x20'+_0x1070fe['id']+_0x2babcf(_0x34196b._0x17dcc9,_0x34196b._0x48e124,0x4c7,0x45d));const _0x8c3ce=await this[_0x2babcf(0x566,0x58c,0x4e1,_0x34196b._0x8078c6)]({'request':_0x605f6c[_0x503d59(0x32c,0x2a9,0x3fb,_0x34196b._0x15de7f)],'body':_0x31a72b[_0x503d59(_0x34196b._0x12a2b6,0x226,_0x34196b._0x3f50c6,_0x34196b._0x19ba9a)],'credential':_0x605f6c[_0x2babcf(_0x34196b._0x2ddb94,0x60b,0x570,_0x34196b._0x10d9ed)],'session':_0x605f6c[_0x2babcf(0x4cc,_0x34196b._0x2d2977,_0x34196b._0xe8bf17,0x5d2)],'stream':_0x14a4fb},{'accept':_0x31a72b[_0x503d59(0x3ad,0x3ac,_0x34196b._0x534b47,_0x34196b._0x12c8b6)]??(_0x14a4fb?_0x503d59(_0x34196b._0x4f5c6a,_0x34196b._0x1e4850,_0x34196b._0x1514d9,_0x34196b._0x1bb8ab):_0x503d59(_0x34196b._0x5ad098,_0x34196b._0x490fb7,0x387,0x47c)),'includeContentType':_0x31a72b[_0x503d59(_0x34196b._0x1bb4e4,0x2a2,0x2a5,_0x34196b._0xb6bad)]!==void 0x0});for(const [_0x329d6e,_0xee0976]of Object[_0x503d59(0x415,0x3d7,_0x34196b._0x2f1bae,0x468)](_0x31a72b[_0x503d59(_0x34196b._0x2fd868,_0x34196b._0x4aff2e,_0x34196b._0x2ed181,0x352)]??{})){_0x8c3ce['set'](_0x329d6e,_0xee0976);}function _0x2babcf(_0x43a633,_0x341f9f,_0xda05eb,_0x4a5c94){return _0x5b12(_0xda05eb-0x31c,_0x43a633);}return this['fetchImpl'](''+_0x605f6c[_0x503d59(0x3a8,_0x34196b._0x272176,0x459,_0x34196b._0x5d690c)]+_0x31a72b[_0x2babcf(_0x34196b._0x18c6e8,0x48e,0x566,0x4e1)],{'method':_0x503d59(0x256,0x285,0x31b,_0x34196b._0x18b1ee),'headers':_0x8c3ce,..._0x31a72b['body']!==void 0x0?{'body':JSON['stringify'](_0x31a72b[_0x503d59(0x2ee,_0x34196b._0x2ed181,_0x34196b._0x468205,_0x34196b._0x1129af)])}:{},'signal':_0x4421b3});};function _0x39b606(_0x5cf6dd,_0x555a45,_0xf0a731,_0x2b2fe6){return _0x551389(_0x5cf6dd-_0x469fea._0x51d461,_0x555a45- -0x204,_0x5cf6dd,_0x2b2fe6-0x1e8);}return _0x45e96d?await this[_0x39b606(0xb8,0xd7,0xb3,0xd4)](_0xc7a074,_0x15becc):await _0xc7a074();}async*[_0x551389(0x1f5,0x2c6,0x2fd,0x275)](_0x1b6b84,_0x1d4761,_0x17911e={}){const _0x2491b6={_0x576b3f:0x58,_0x3a1942:0x4b,_0x53fd24:0x5d4,_0x4b54c4:0x680,_0x296fe4:0x55f,_0xa94c1f:0x3f1,_0x5365ac:0x678,_0x3c77a6:0x274,_0x130d53:0x216,_0x3c91d3:0x223,_0x238532:0xe7,_0x38adee:0x6b,_0x1eb20b:0xc6,_0x52e6d0:0x491,_0x488b48:0x45d,_0x59a11a:0x6d,_0x2cf3c0:0x430,_0x9d54e9:0x4c3,_0x4e2125:0x504,_0x23e234:0x5a8,_0x45635e:0x5cb,_0x1f9fa4:0x4e7,_0x2dd5af:0x3b6,_0x2a6c62:0x35d,_0x1d2711:0x476,_0x1fd197:0x4ad,_0x3e40fe:0x4ca},_0x5d9267={_0x1f3502:0x4e1},_0x2f2d03={_0x1ea0e6:0x93,_0x4b5dc5:0x148};function _0x33d968(_0x4008c6,_0x2ceca6,_0x54154d,_0x5d672f){return _0x551389(_0x4008c6-_0x2f2d03._0x1ea0e6,_0x54154d-_0x2f2d03._0x4b5dc5,_0x2ceca6,_0x5d672f-0xc6);}function _0x543716(_0x2b2382,_0x4e8822,_0x203988,_0x53da68){return _0x551389(_0x2b2382-0x139,_0x4e8822- -_0x5d9267._0x1f3502,_0x53da68,_0x53da68-0xcc);}const {signal:_0x57ec77}=_0x17911e;let _0x458168=![];for(let _0x54832e=0x0;_0x54832e<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x54832e+=0x1){let _0x4451ee=![];try{const _0x5b3ec2=await this['sendHttpSurfaceRequest'](_0x1b6b84,_0x1d4761,!![],_0x17911e,![]);if(_0x5b3ec2[_0x543716(_0x2491b6._0x576b3f,-_0x2491b6._0x3a1942,-0x34,-0x7e)]===0x191&&this['sessionManager']&&!_0x458168){_0x458168=!![],this[_0x33d968(0x5f4,0x519,_0x2491b6._0x53fd24,0x6b9)][_0x33d968(_0x2491b6._0x4b54c4,_0x2491b6._0x296fe4,0x5ad,0x664)]();continue;}if(!_0x5b3ec2['ok'])throw await this['toApiError'](_0x5b3ec2);const _0x21cfe5=_0x1d4761['createStreamParser']?.(_0x1b6b84);if(!_0x21cfe5?.[_0x33d968(_0x2491b6._0xa94c1f,0x4f5,0x413,0x33b)])throw new Error(_0x33d968(0x64e,_0x2491b6._0x5365ac,0x5a4,0x665)+_0x1d4761['id']+'\x20cannot\x20parse\x20SSE\x20events');for await(const _0x4596f6 of iterateSseEvents(_0x5b3ec2,_0x57ec77)){const _0x48ccb9=_0x21cfe5[_0x543716(-_0x2491b6._0x3c77a6,-_0x2491b6._0x130d53,-_0x2491b6._0x3c91d3,-0x18f)](_0x4596f6);for(const _0x52dd60 of _0x48ccb9){_0x4451ee=!![],yield _0x52dd60;}}yield{'type':_0x543716(-_0x2491b6._0x238532,-_0x2491b6._0x38adee,-_0x2491b6._0x1eb20b,-0xdf),'response':_0x21cfe5[_0x33d968(_0x2491b6._0x52e6d0,0x40f,_0x2491b6._0x488b48,0x394)]()};return;}catch(_0xd745ec){if(_0x4451ee||!this[_0x543716(_0x2491b6._0x576b3f,-_0x2491b6._0x59a11a,-0x63,-0x16)](_0xd745ec)||_0x54832e===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0xd745ec;const _0x30a528=this[_0x33d968(0x3d6,0x443,_0x2491b6._0x2cf3c0,0x4e9)](void 0x0,_0x54832e),_0x564e65={'type':'provider_retry','attempt':_0x54832e+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0xd745ec instanceof Error?_0xd745ec[_0x33d968(0x522,_0x2491b6._0x9d54e9,0x5aa,_0x2491b6._0x4e2125)]:String(_0xd745ec),'delayMs':_0x30a528,'reason':this[_0x33d968(_0x2491b6._0x23e234,_0x2491b6._0x45635e,0x5c8,_0x2491b6._0x1f9fa4)](_0xd745ec)?'transport_error':_0x33d968(_0x2491b6._0x2dd5af,_0x2491b6._0x2a6c62,0x440,_0x2491b6._0x1d2711)};yield _0x564e65,await this[_0x33d968(0x439,_0x2491b6._0x1fd197,0x47c,_0x2491b6._0x3e40fe)](_0x30a528,_0x57ec77);}}}async*[_0x551389(0x3b0,0x39f,0x405,0x303)](_0x298f73,_0x4e9ffa,_0x178f0f){const _0x59dcce={_0x4773ef:0x4a9,_0x5b0c98:0x4a8,_0x5235c5:0x4c6,_0x46de91:0x475,_0x525824:0x388,_0x4b4fa1:0x3fc,_0x23dc71:0x522,_0x362361:0x586,_0x5407f4:0x622,_0x1d8969:0x406,_0x27f766:0x599,_0x41bd2a:0x5aa,_0x11f686:0x580,_0x3a45ec:0x4c2,_0x2711ad:0x558,_0x4c9042:0x5b4,_0x6de0a:0x533,_0x283469:0x62c,_0x2bd81a:0x648,_0x874331:0x5d3,_0x345962:0x568,_0x48572b:0x52e,_0x121f37:0x5c2,_0x3beb49:0x568,_0x3e6918:0x535,_0x2834fd:0x457,_0x1b1896:0x43d,_0x9cfd29:0x521,_0x42e4e2:0x538,_0x3ab841:0x4c9,_0x7ef85e:0x54e,_0x2a25c3:0x3d9,_0x5e3429:0x461,_0x7cb603:0x4c8,_0x28ece2:0x4d0,_0x4ed9e4:0x4f2,_0x33906c:0x52f,_0xb0ad85:0x4e0,_0x1d1180:0x4f0,_0x499dc6:0x526,_0x5b6dd4:0x6e6,_0x247952:0x5ac,_0x1721d7:0x538,_0x5b9405:0x4c4,_0x31b023:0x40d,_0x49978d:0x470,_0x5daf26:0x5e9,_0x18c281:0x4d2,_0xe2fa15:0x4ac,_0x4dd3f6:0x389,_0x4d584d:0x3a7,_0x224019:0x420,_0xf1cba3:0x48e,_0x1fc770:0x558,_0x2a293c:0x4c4,_0x12b3c3:0x3e8,_0xded62c:0x47c,_0x2ba675:0x3a6,_0x5bb7bd:0x3c2,_0x2b478c:0x5bd,_0x424330:0x659,_0x327b46:0x597,_0x56cb88:0x66c,_0x425011:0x3ba,_0x4d5b09:0x3c4,_0x55c451:0x497,_0x3a22f1:0x3b6,_0x5f0fa1:0x3a8,_0x1c04c0:0x3c5,_0x1de486:0x3da,_0x1567b9:0x40c,_0x41d1f3:0x55b,_0x22e24f:0x565,_0x43a91b:0x568,_0x5aa48b:0x640,_0x657a18:0x41c},_0x4a10c8={_0x114895:0xeb,_0x527730:0x1da},_0x154049={_0x3b8f19:0xb3},_0x11dc71=await this[_0x43e9cb(_0x59dcce._0x4773ef,0x4bd,_0x59dcce._0x5b0c98,0x3e3)](_0x298f73,_0x178f0f),_0x202e25=_0x4e9ffa[_0x1e385d(_0x59dcce._0x5235c5,_0x59dcce._0x46de91,0x4b7,0x573)](_0x11dc71[_0x43e9cb(0x54a,0x45f,0x47c,_0x59dcce._0x525824)]);function _0x43e9cb(_0x18d1fd,_0x464a2e,_0xe3db94,_0x4bf73b){return _0xf0dc29(_0x464a2e-0x1a4,_0x464a2e-0x74,_0x18d1fd,_0x4bf73b-_0x154049._0x3b8f19);}const _0x22b6ff=_0x4e9ffa[_0x1e385d(_0x59dcce._0x4b4fa1,0x4a7,0x4be,0x572)]?.(_0x298f73);if(!_0x22b6ff?.[_0x1e385d(_0x59dcce._0x23dc71,0x593,_0x59dcce._0x362361,_0x59dcce._0x5407f4)])throw new Error('Surface\x20'+_0x4e9ffa['id']+_0x43e9cb(_0x59dcce._0x1d8969,0x4ec,0x5c5,_0x59dcce._0x27f766));const _0x57a6c8=_0x202e25[_0x1e385d(_0x59dcce._0x41bd2a,0x61f,_0x59dcce._0x11f686,_0x59dcce._0x3a45ec)]??(_0x202e25[_0x1e385d(0x670,0x57f,0x5d3,0x647)]?(''+_0x11dc71[_0x43e9cb(_0x59dcce._0x2711ad,0x4db,_0x59dcce._0x4c9042,_0x59dcce._0x6de0a)]+_0x202e25[_0x1e385d(_0x59dcce._0x283469,_0x59dcce._0x2bd81a,_0x59dcce._0x874331,0x543)])[_0x1e385d(0x5a7,0x5ce,_0x59dcce._0x345962,0x4f9)](/^http:/,_0x1e385d(0x5dd,0x532,_0x59dcce._0x48572b,0x540))[_0x1e385d(0x49b,_0x59dcce._0x121f37,_0x59dcce._0x3beb49,_0x59dcce._0x3e6918)](/^https:/,_0x1e385d(0x59c,0x58d,0x4da,_0x59dcce._0x2834fd)):void 0x0);if(!_0x57a6c8)throw new ProviderRequestConstructionError(_0x43e9cb(_0x59dcce._0x1b1896,_0x59dcce._0x9cfd29,0x5ec,_0x59dcce._0x42e4e2)+_0x4e9ffa['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x12065f=await this[_0x1e385d(0x531,_0x59dcce._0x3ab841,_0x59dcce._0x7ef85e,0x564)]({'request':_0x11dc71['request'],'body':_0x202e25[_0x43e9cb(0x3e1,0x3e8,_0x59dcce._0x2a25c3,_0x59dcce._0x5e3429)],'credential':_0x11dc71[_0x43e9cb(0x4cc,_0x59dcce._0x7cb603,0x553,0x4e0)],'session':_0x11dc71[_0x43e9cb(_0x59dcce._0x362361,_0x59dcce._0x28ece2,0x564,_0x59dcce._0x4ed9e4)],'stream':!![]},{'accept':_0x202e25[_0x43e9cb(_0x59dcce._0x33906c,_0x59dcce._0xb0ad85,_0x59dcce._0x1d1180,0x5ca)]??_0x43e9cb(_0x59dcce._0x499dc6,0x555,0x4a7,0x525),'includeContentType':![]});for(const [_0x135379,_0x8e01f2]of Object[_0x1e385d(_0x59dcce._0x5b6dd4,_0x59dcce._0x247952,0x65d,0x672)](_0x202e25[_0x1e385d(_0x59dcce._0x1721d7,0x45c,_0x59dcce._0x5b9405,_0x59dcce._0x31b023)]??{})){_0x12065f[_0x43e9cb(_0x59dcce._0x49978d,0x454,0x466,0x3b1)](_0x135379,_0x8e01f2);}function _0x1e385d(_0x299b45,_0xc97b89,_0xa29e51,_0x3dad43){return _0x551389(_0x299b45-_0x4a10c8._0x114895,_0xa29e51-_0x4a10c8._0x527730,_0x3dad43,_0x3dad43-0x178);}_0x12065f[_0x1e385d(0x576,_0x59dcce._0x5daf26,0x5eb,0x58e)]('accept');const _0x252a5c=this[_0x43e9cb(0x538,_0x59dcce._0x18c281,0x533,_0x59dcce._0xe2fa15)]({'headers':Object[_0x43e9cb(_0x59dcce._0x4dd3f6,_0x59dcce._0x4d584d,_0x59dcce._0x224019,_0x59dcce._0xf1cba3)](_0x12065f['entries']()),'url':_0x57a6c8});try{throwIfAborted(_0x178f0f);_0x252a5c[_0x1e385d(0x62d,0x5b4,_0x59dcce._0x1fc770,0x5ea)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x252a5c,_0x178f0f);throwIfAborted(_0x178f0f);_0x202e25[_0x43e9cb(_0x59dcce._0x2a293c,_0x59dcce._0x12b3c3,0x339,0x342)]!==void 0x0&&_0x252a5c[_0x43e9cb(0x476,_0x59dcce._0xded62c,_0x59dcce._0x2ba675,_0x59dcce._0x5bb7bd)](JSON[_0x1e385d(_0x59dcce._0x2b478c,_0x59dcce._0x424330,_0x59dcce._0x327b46,_0x59dcce._0x56cb88)](_0x202e25['initialEvent']));for await(const _0x4fb78c of iterateWebSocketMessages(_0x252a5c,_0x178f0f)){yield*_0x22b6ff[_0x43e9cb(_0x59dcce._0x425011,0x471,_0x59dcce._0x4d5b09,_0x59dcce._0x55c451)](_0x4fb78c);if(_0x22b6ff[_0x43e9cb(_0x59dcce._0x3a22f1,_0x59dcce._0x5f0fa1,0x40c,0x2bf)]?.())break;}yield{'type':'done','response':_0x22b6ff[_0x43e9cb(_0x59dcce._0x1c04c0,_0x59dcce._0x1de486,0x33e,0x389)]()};}finally{_0x252a5c['readyState']===WebSocket[_0x43e9cb(0x554,0x499,0x556,_0x59dcce._0x1567b9)]&&_0x252a5c[_0x43e9cb(0x396,0x452,0x363,0x448)](0x3e8,_0x178f0f?.[_0x1e385d(0x565,_0x59dcce._0x41d1f3,0x555,0x499)]?_0x1e385d(_0x59dcce._0x22e24f,_0x59dcce._0x43a91b,0x555,_0x59dcce._0x5aa48b):_0x43e9cb(0x4f2,_0x59dcce._0x657a18,0x380,0x36b));}}};async function createHttpError(_0x1a0657){const _0x2703e5={_0x12cb08:0x2a4,_0x482b8c:0x373,_0x5320ec:0x23d,_0x25ace3:0x8b,_0x72dbc4:0x1f4,_0x29fa3d:0x20d,_0x3fa6bb:0x1a6,_0x558537:0xa1,_0x3e03f3:0xd7,_0x4c352c:0xa4},_0x3a3619={_0x47c90c:0xe3,_0x1fe543:0x2b},_0x42a8c2={_0x14ab02:0x48e},_0x54b75e=await _0x1a0657[_0x4e04b3(-0x1d6,-_0x2703e5._0x12cb08,-0x374,-0x2f3)]();function _0x4e04b3(_0x25dff7,_0x17a88d,_0x4a2ce4,_0xf48c9a){return _0xf0dc29(_0x17a88d- -_0x42a8c2._0x14ab02,_0x17a88d-0x103,_0x25dff7,_0xf48c9a-0x144);}const _0x454482=_0x54b75e[_0x1d0556(0xb4,-0x102,0x50,-0x3c)]()||_0x1a0657[_0x4e04b3(-0x29d,-0x29a,-_0x2703e5._0x482b8c,-_0x2703e5._0x5320ec)]||_0x1d0556(-_0x2703e5._0x25ace3,-0x97,-0x12c,-0xd6);function _0x1d0556(_0x530cd0,_0x3e9b91,_0x2b1f55,_0x59c306){return _0xf0dc29(_0x59c306- -0x3b6,_0x3e9b91-_0x3a3619._0x47c90c,_0x530cd0,_0x59c306-_0x3a3619._0x1fe543);}return new Error(_0x1d0556(-0x1b0,-_0x2703e5._0x72dbc4,-_0x2703e5._0x29fa3d,-_0x2703e5._0x3fa6bb)+_0x1a0657[_0x4e04b3(-_0x2703e5._0x558537,-_0x2703e5._0x3e03f3,-0x105,-_0x2703e5._0x4c352c)]+':\x20'+_0x454482);}var AnthropicProviderAdapter=class{['authScheme'];[_0xf0dc29(0x36d,0x3d6,0x454,0x309)];[_0xf0dc29(0x237,0x2cd,0x1b7,0x168)];constructor(_0x20eeb2){const _0x531b7e={_0x538a3e:0x43e,_0xfe05a:0x4d6,_0x3d6823:0x4f5,_0x1e0c79:0x50b,_0x411ee0:0x4e4,_0xca1556:0x4ac,_0x5eba60:0x415,_0x4af3d1:0x37e,_0x1d95d1:0x371,_0x42d954:0x306,_0x42c6fb:0x354},_0x17f10c={_0x3599a2:0x147},_0x1c720f={_0x476d10:0x83};function _0x1ce469(_0x3cbccc,_0x4389aa,_0x16224a,_0x31d8a9){return _0xf0dc29(_0x16224a-0x11d,_0x4389aa-0x10c,_0x31d8a9,_0x31d8a9-_0x1c720f._0x476d10);}this[_0x3c7eca(0x5d0,0x4f5,_0x531b7e._0x538a3e,0x43b)]=_0x20eeb2[_0x3c7eca(_0x531b7e._0xfe05a,_0x531b7e._0x3d6823,_0x531b7e._0x1e0c79,0x471)],this[_0x3c7eca(_0x531b7e._0x411ee0,0x560,0x4ab,_0x531b7e._0xca1556)]=_0x20eeb2[_0x1ce469(0x3de,_0x531b7e._0x5eba60,0x48a,0x51d)];function _0x3c7eca(_0x55d7cb,_0x7732da,_0xf455cd,_0x54c56b){return _0x551389(_0x55d7cb-_0x17f10c._0x3599a2,_0x7732da-0x114,_0xf455cd,_0x54c56b-0x6);}this[_0x1ce469(_0x531b7e._0x4af3d1,0x3c7,0x354,_0x531b7e._0x1d95d1)]=_0x20eeb2[_0x1ce469(0x358,_0x531b7e._0x42d954,_0x531b7e._0x42c6fb,0x347)];}[_0xf0dc29(0x28e,0x1dd,0x2c6,0x366)](){const _0xebdb07={_0x226856:0xa8},_0xdd2014={_0x3f67bd:0x1e5};function _0x4d993c(_0x4dcdb9,_0x6c251c,_0x119f8d,_0x4b96d0){return _0xf0dc29(_0x4b96d0- -0x1f5,_0x6c251c-0x1c1,_0x119f8d,_0x4b96d0-_0xdd2014._0x3f67bd);}return new Error(_0x4d993c(_0xebdb07._0x226856,0xf6,0xf7,0x151));}async['createHeaders'](_0x57f5fd,_0x2b95da){const _0x4570dd={_0x4bd0f8:0x184,_0x22a950:0x123,_0x2386b7:0x97,_0x47c499:0x107,_0x15fb70:0x18,_0x267f3b:0x84,_0x5f5c50:0x547,_0x4c705a:0x4fa,_0x86f3b:0x5ae,_0x532d9c:0x693,_0x2a0975:0x51e,_0x197172:0x563,_0x4dab16:0x646,_0x8c79a3:0x70f,_0x36937c:0x6ad,_0x59d78c:0x59b,_0x3e38f5:0x5fc,_0x5d3155:0x58d,_0xcb9efc:0x5f4,_0x592c17:0xfa,_0x2c7d39:0x4b,_0x96ac2:0x8c,_0x9d88ec:0xc9,_0x11ead9:0x62a,_0x1af4b5:0x677,_0x2f5530:0x620,_0x1c8f91:0xea,_0x1e7568:0xaa,_0x51f48a:0x4f3,_0xfb9a54:0x691,_0x494bb8:0xca,_0x5e6f7c:0x1e,_0x14c56f:0x35,_0x4d7d44:0xea,_0x5e5d6e:0x5f3,_0x52a08e:0x669,_0x18d68e:0x83,_0x3a0390:0x156,_0x148cf2:0x101,_0x56acdb:0xe0,_0x559eb4:0x13e,_0x320108:0x54f,_0x1ff79a:0x5c9,_0x2d3462:0x611,_0x163bcc:0x531,_0x317573:0x61b,_0x23814a:0x5ef,_0xcf3763:0x6a0},_0x302f35={_0x4fa3df:0xdf},_0x28e28a={_0xacbd55:0x7b,_0x5bfd98:0x35},_0x3c5d78=new Headers();function _0x1fb3d2(_0x5ce6d9,_0x28d4b1,_0x35357f,_0x19b24b){return _0xf0dc29(_0x19b24b-0x2fc,_0x28d4b1-_0x28e28a._0xacbd55,_0x28d4b1,_0x19b24b-_0x28e28a._0x5bfd98);}function _0x5eeb2a(_0x114e09,_0x500f0d,_0x16e6d9,_0x25c5e6){return _0x551389(_0x114e09-_0x302f35._0x4fa3df,_0x500f0d- -0x4b2,_0x114e09,_0x25c5e6-0x16e);}_0x3c5d78[_0x5eeb2a(-_0x4570dd._0x4bd0f8,-_0x4570dd._0x22a950,-0x1ff,-0x151)](_0x1fb3d2(0x590,0x5d4,0x714,0x638),_0x2b95da[_0x5eeb2a(-0x158,-_0x4570dd._0x2386b7,-0x86,-_0x4570dd._0x47c499)]),_0x3c5d78['set'](_0x5eeb2a(-_0x4570dd._0x15fb70,-0xd3,-0x7b,-_0x4570dd._0x267f3b),this['protocolVersion']);_0x2b95da[_0x1fb3d2(_0x4570dd._0x5f5c50,_0x4570dd._0x4c705a,0x668,_0x4570dd._0x86f3b)]!==![]&&_0x3c5d78[_0x1fb3d2(_0x4570dd._0x532d9c,0x4cc,_0x4570dd._0x2a0975,0x5ac)](_0x1fb3d2(_0x4570dd._0x197172,0x652,0x672,_0x4570dd._0x4dab16),_0x1fb3d2(_0x4570dd._0x8c79a3,0x5d0,0x5cd,_0x4570dd._0x36937c));this[_0x1fb3d2(0x5e1,_0x4570dd._0x59d78c,0x6de,0x5fe)]===_0x1fb3d2(0x57d,_0x4570dd._0x3e38f5,0x4ef,_0x4570dd._0x5d3155)?_0x3c5d78[_0x1fb3d2(0x594,0x59b,_0x4570dd._0xcb9efc,0x5ac)](_0x5eeb2a(-_0x4570dd._0x592c17,-0x5e,-0x91,_0x4570dd._0x2c7d39),_0x5eeb2a(-_0x4570dd._0x96ac2,-_0x4570dd._0x9d88ec,-0x6a,-0xa5)+_0x57f5fd[_0x1fb3d2(0x6ab,_0x4570dd._0x11ead9,_0x4570dd._0x1af4b5,_0x4570dd._0x2f5530)][_0x5eeb2a(-0x1af,-_0x4570dd._0x1c8f91,-0xb4,-_0x4570dd._0x1e7568)]):_0x3c5d78[_0x1fb3d2(_0x4570dd._0x51f48a,_0x4570dd._0xfb9a54,0x637,0x5ac)]('x-api-key',_0x57f5fd[_0x5eeb2a(-_0x4570dd._0x494bb8,-0xaf,-0xd6,-_0x4570dd._0x5e6f7c)][_0x5eeb2a(-_0x4570dd._0x14c56f,-_0x4570dd._0x4d7d44,-0x1c8,-0x18a)]);const _0xcb4575=await this[_0x1fb3d2(_0x4570dd._0x5e5d6e,0x5f6,0x5db,_0x4570dd._0x52a08e)]?.({'body':_0x57f5fd[_0x5eeb2a(-_0x4570dd._0x18d68e,-_0x4570dd._0x3a0390,-_0x4570dd._0x148cf2,-0x12e)],'credential':_0x57f5fd['credential'],'request':_0x57f5fd[_0x5eeb2a(-_0x4570dd._0x56acdb,-0x118,-0xf9,-_0x4570dd._0x559eb4)],'session':_0x57f5fd[_0x1fb3d2(_0x4570dd._0x320108,0x5db,_0x4570dd._0x1ff79a,0x628)],'stream':_0x57f5fd[_0x1fb3d2(_0x4570dd._0x2d3462,_0x4570dd._0x163bcc,0x5d9,_0x4570dd._0x317573)]});for(const [_0x45e038,_0x1ebf79]of Object[_0x1fb3d2(0x609,0x634,_0x4570dd._0x23814a,_0x4570dd._0xcf3763)](_0xcb4575??{})){_0x3c5d78['set'](_0x45e038,_0x1ebf79);}return _0x3c5d78;}['mapApiError'](_0x282297){return _0x282297;}['resolveBaseUrl'](_0x277bf3,_0x1989eb){return resolveSessionBaseUrl(_0x277bf3,_0x1989eb);}[_0xf0dc29(0x265,0x1fd,0x33d,0x22f)](_0x178200,_0x20a84e){return resolveApiCredential(_0x178200,_0x20a84e);}async['toApiError'](_0x47850a){return await createHttpError(_0x47850a);}},AnthropicModel=class extends RoutedModel{constructor(_0x55c541={}){const _0x40c19f={_0x129c77:0x0,_0x35110d:0x23,_0x5883fc:0xcd,_0x1a794a:0x7b,_0x19fe3a:0x4f,_0x12cd99:0x14,_0x13e5f3:0x82,_0x395453:0x3e,_0x7f122d:0x13a,_0x59ff9f:0x8d,_0x428707:0xdd,_0x298c6b:0x96,_0x1be72f:0x92,_0x4ac49f:0xe,_0x2f5174:0xbb,_0x87fd84:0x12,_0x47867d:0x110,_0x29188a:0x1b7,_0x172e36:0x1b0,_0x424b1e:0x66},_0x2b5283={_0x1de42b:0x12c},_0x5bbbf0={_0xcb0116:0xbe};function _0x35351c(_0x15ee9e,_0x369a62,_0x2c10fb,_0x29d10a){return _0x551389(_0x15ee9e-_0x5bbbf0._0xcb0116,_0x15ee9e- -0x391,_0x29d10a,_0x29d10a-0xa9);}function _0x335ebc(_0x10b08c,_0x4f6778,_0x57abd8,_0x2722a6){return _0x551389(_0x10b08c-0x159,_0x2722a6- -0x3ef,_0x4f6778,_0x2722a6-_0x2b5283._0x1de42b);}super({'apiKey':_0x55c541[_0x35351c(-0x33,_0x40c19f._0x129c77,-_0x40c19f._0x35110d,-0x86)],'baseUrl':trimTrailingSlashes(_0x55c541['baseUrl']??_0x35351c(-0x14,_0x40c19f._0x5883fc,0x8f,-_0x40c19f._0x1a794a)),'fetch':_0x55c541[_0x35351c(0x79,_0x40c19f._0x19fe3a,0x24,-_0x40c19f._0x12cd99)],'maxTokens':_0x55c541['maxTokens']??0x4000,'model':_0x55c541[_0x335ebc(_0x40c19f._0x13e5f3,_0x40c19f._0x395453,_0x40c19f._0x7f122d,_0x40c19f._0x59ff9f)]??_0x335ebc(-_0x40c19f._0x428707,-_0x40c19f._0x298c6b,-0xf2,-0x73),'reasoning':_0x55c541['reasoning'],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x55c541[_0x335ebc(-0x82,_0x40c19f._0x1be72f,-0x2f,-_0x40c19f._0x4ac49f)]??_0x35351c(0x54,0xb8,0x8a,0x0),'headerResolver':_0x55c541[_0x35351c(_0x40c19f._0x2f5174,0x4c,0xda,_0x40c19f._0x87fd84)],'protocolVersion':_0x55c541[_0x335ebc(-0x84,-0x112,-0x28,-0xd9)]??'2023-06-01'}),'providerSessionResolver':_0x55c541['providerSessionResolver'],'requestMutators':_0x55c541[_0x35351c(_0x40c19f._0x47867d,_0x40c19f._0x29188a,_0x40c19f._0x172e36,_0x40c19f._0x424b1e)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0xf0dc29(0x25b,0x1d3,0x268,0x1f4)](_0x413386,_0x1420ad){const _0x15d48f={_0x3eea51:0x441,_0x4b3ead:0x531},_0x3fd83e={_0x33f04a:0x28c,_0x211e08:0x5};function _0x47a81d(_0x426551,_0x1bdd15,_0x1defcf,_0x3b01c7){return _0xf0dc29(_0x1defcf-_0x3fd83e._0x33f04a,_0x1bdd15-_0x3fd83e._0x211e08,_0x1bdd15,_0x3b01c7-0x195);}return this[_0x47a81d(_0x15d48f._0x3eea51,0x5dd,_0x15d48f._0x4b3ead,0x4be)](_0x413386,ANTHROPIC_MESSAGES_SURFACE,_0x1420ad);}['stream'](_0x7b6fc7,_0x419db3){return this['streamViaSurface'](_0x7b6fc7,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x419db3);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x551389(0x47a,0x47a,0x4fc,0x478),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream',OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE='openai-responses-stream',OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0xf0dc29(0x3b7,0x309,0x496,0x464)];['body'];constructor(_0x511870,_0x42a6ce,_0x275e54){const _0x5c12ef={_0x10438c:0x214,_0x2f2e60:0x304,_0x258ff9:0x243,_0x3b8ec2:0x459,_0x4f760a:0x47f,_0x517365:0x41f},_0x28bddd={_0x59fd09:0x38,_0x12862d:0xcb},_0x5c51e0={_0x471fba:0x8f,_0x29dc03:0xb5,_0x3672b2:0x6e};super(_0x275e54),this[_0x16992d(_0x5c12ef._0x10438c,_0x5c12ef._0x2f2e60,0x2c3,_0x5c12ef._0x258ff9)]=_0x16992d(0x2ab,0x259,0x1e4,0x1a7);function _0x16992d(_0x23f4e4,_0x48e0b4,_0x579387,_0x5bd353){return _0xf0dc29(_0x579387- -_0x5c51e0._0x471fba,_0x48e0b4-_0x5c51e0._0x29dc03,_0x23f4e4,_0x5bd353-_0x5c51e0._0x3672b2);}function _0x49a391(_0x10801f,_0x4909f7,_0xd6b721,_0x510616){return _0x551389(_0x10801f-0x193,_0x510616-_0x28bddd._0x59fd09,_0x4909f7,_0x510616-_0x28bddd._0x12862d);}this[_0x49a391(_0x5c12ef._0x3b8ec2,_0x5c12ef._0x4f760a,_0x5c12ef._0x517365,0x4ce)]=_0x511870,this['body']=_0x42a6ce;}};function stringifySystem(_0x583839){const _0x1f4a22={_0x54781a:0x223,_0x1bf3e5:0x2ff,_0x3d2c83:0x2be},_0x33f3f3={_0x57ab28:0x16f,_0xf548c7:0x130},_0x5bcbb9={_0x2354d4:0x46c,_0xe58bdb:0xed,_0xf3200b:0x121};function _0x47c7f0(_0x37fab7,_0x267ae9,_0x3baa0d,_0x321210){return _0xf0dc29(_0x37fab7- -_0x5bcbb9._0x2354d4,_0x267ae9-_0x5bcbb9._0xe58bdb,_0x3baa0d,_0x321210-_0x5bcbb9._0xf3200b);}function _0x4476a(_0x336075,_0x22ef7f,_0xc2c85c,_0x40c235){return _0xf0dc29(_0x40c235- -0xba,_0x22ef7f-_0x33f3f3._0x57ab28,_0x22ef7f,_0x40c235-_0x33f3f3._0xf548c7);}return _0x583839[_0x47c7f0(-0x286,-0x345,-0x2fd,-_0x1f4a22._0x54781a)](_0x488fa4=>_0x488fa4[_0x47c7f0(-0x282,-0x2e3,-0x2da,-0x305)])[_0x4476a(_0x1f4a22._0x1bf3e5,0x211,0x307,_0x1f4a22._0x3d2c83)]('\x0a\x0a');}function createToolDefinitions(_0x3f2b77){const _0x5084ef={_0x1aee86:0x3c3,_0x7aff43:0x473,_0x3318a1:0x2b2,_0x34fd52:0x25d,_0x4ca0d0:0x2df},_0x341741={_0xd66a9d:0x376,_0x5c48a2:0x392,_0x5c1c65:0x1aa,_0x3642a3:0xce},_0x2e4bb0={_0x32f207:0x4b9},_0x4ed365={_0x436de2:0x129,_0x364b04:0x1a},_0xfc63a3={_0x274fca:0xbd,_0x25a01e:0x509};function _0x4b2e4e(_0x44ab88,_0x4c1c00,_0x40e367,_0x2dcf1f){return _0x551389(_0x44ab88-_0xfc63a3._0x274fca,_0x44ab88- -_0xfc63a3._0x25a01e,_0x2dcf1f,_0x2dcf1f-0xbe);}if(_0x3f2b77[_0x3f56a6(_0x5084ef._0x1aee86,_0x5084ef._0x7aff43,_0x5084ef._0x3318a1,0x38c)]===0x0)return void 0x0;function _0x3f56a6(_0x3b5a96,_0x17f066,_0x4d392f,_0x3c3354){return _0x551389(_0x3b5a96-_0x4ed365._0x436de2,_0x3c3354-_0x4ed365._0x364b04,_0x17f066,_0x3c3354-0x5);}return _0x3f2b77[_0x3f56a6(_0x5084ef._0x34fd52,0x2ae,0x2a1,_0x5084ef._0x4ca0d0)](_0x9122=>{const _0x56b76a={_0x58d686:0x152,_0x3f3caf:0x1};function _0x547596(_0x281081,_0x3df63b,_0x54d69e,_0x555d9e){return _0x3f56a6(_0x281081-_0x56b76a._0x58d686,_0x3df63b,_0x54d69e-0x130,_0x555d9e- -_0x56b76a._0x3f3caf);}function _0x4caa14(_0x597751,_0xfb4816,_0x55393a,_0x387b51){return _0x3f56a6(_0x597751-0x17e,_0x597751,_0x55393a-0x170,_0x387b51- -_0x2e4bb0._0x32f207);}return{'type':_0x547596(0x426,_0x341741._0xd66a9d,0x2d5,_0x341741._0x5c48a2),'function':{'name':_0x9122['name'],'description':_0x9122[_0x4caa14(-_0x341741._0x5c1c65,-0x60,-0x78,-_0x341741._0x3642a3)],'parameters':_0x9122['input_schema']}};});}function isImageToolResultBlock(_0x207c5d){const _0xdf6553={_0x173270:0x295,_0x25bc93:0x1e9,_0x54429a:0x14b,_0x16002b:0x25,_0x609e62:0x2b,_0x1e1f7e:0x105,_0x184a61:0x91,_0x37aaac:0x1f3,_0x238310:0x246,_0x17aa4e:0x65,_0xe50d88:0x17f,_0x327721:0x153,_0x23c978:0x8b,_0x53eeb7:0xaf,_0x4a86e6:0x104,_0x1b254d:0x1f0,_0x219d88:0xce,_0xbe8430:0x4,_0x2cb3a0:0x84},_0x4c0009={_0x10e072:0x109,_0x19ded9:0x8},_0x3b902a={_0x13ece5:0x24d,_0x4518b4:0x8b};function _0x16a602(_0x5b4793,_0x4b4851,_0x45145b,_0x5ee034){return _0xf0dc29(_0x5ee034- -_0x3b902a._0x13ece5,_0x4b4851-_0x3b902a._0x4518b4,_0x4b4851,_0x5ee034-0x1db);}if(typeof _0x207c5d!=='object'||_0x207c5d===null||Array[_0x1d8c1c(_0xdf6553._0x173270,0x32a,0x29a,_0xdf6553._0x25bc93)](_0x207c5d))return![];function _0x1d8c1c(_0x440eda,_0x5b086d,_0x40ec0a,_0x41987b){return _0xf0dc29(_0x440eda- -_0x4c0009._0x10e072,_0x5b086d-_0x4c0009._0x19ded9,_0x41987b,_0x41987b-0x1b8);}const _0x1c80c3=_0x207c5d;return _0x1c80c3[_0x16a602(-_0xdf6553._0x54429a,_0xdf6553._0x16002b,_0xdf6553._0x609e62,-0x65)]===_0x16a602(_0xdf6553._0x1e1f7e,-_0xdf6553._0x184a61,-0x3f,0x1d)&&_0x1c80c3[_0x1d8c1c(_0xdf6553._0x37aaac,0x1d0,0x17b,_0xdf6553._0x238310)]?.[_0x16a602(-0x11,-0xc3,0x52,-_0xdf6553._0x17aa4e)]===_0x1d8c1c(_0xdf6553._0xe50d88,0xd6,0x136,0x23f)&&typeof _0x1c80c3[_0x16a602(0x38,_0xdf6553._0x327721,_0xdf6553._0x23c978,_0xdf6553._0x53eeb7)]['media_type']==='string'&&typeof _0x1c80c3[_0x1d8c1c(_0xdf6553._0x37aaac,_0xdf6553._0x4a86e6,_0xdf6553._0x1b254d,0x150)][_0x16a602(_0xdf6553._0x219d88,-0x11,_0xdf6553._0xbe8430,_0xdf6553._0x2cb3a0)]==='string';}function getToolResultText(_0x160d20){const _0x20ed63={_0x207dbb:0x1a7,_0x456e0b:0x2a8,_0x14db68:0x217,_0x5717ee:0x11,_0x34eae4:0x57,_0x56dddb:0x10e,_0x158064:0x250,_0x52db66:0x10a,_0x1d72eb:0x191,_0x5c495b:0xfe},_0x268db0={_0x1db0eb:0x4f8},_0x1db62a={_0xd3195b:0x189},_0x450966={_0x3abd01:0x39,_0x1f67c2:0xe5,_0x1a8bad:0x91,_0x7946ec:0x4a,_0x2ee135:0x84,_0x5b31c5:0xef,_0x1893cd:0x87},_0x5bc808={_0x4895ba:0x126,_0x338f68:0xa6};if(typeof _0x160d20===_0x2c32b5(-0x5a,-0xf4,-0x8d,-0x181))return _0x160d20;const _0x226d58=_0x160d20[_0x2c32b5(-0x1f1,-_0x20ed63._0x207dbb,-0xf4,-0x1b5)](_0x45a894=>{const _0x25189c={_0x16178d:0xee,_0x31c47c:0x27b};function _0x5341be(_0x559306,_0x28c300,_0xac7e6c,_0x2ffcbf){return _0x48b58c(_0xac7e6c,_0x28c300-_0x25189c._0x16178d,_0xac7e6c-0xf8,_0x28c300-_0x25189c._0x31c47c);}function _0x461ea9(_0x29e883,_0x47b783,_0x24bc1f,_0x1eaf50){return _0x2c32b5(_0x29e883-0x114,_0x24bc1f-_0x5bc808._0x4895ba,_0x29e883,_0x1eaf50-_0x5bc808._0x338f68);}return typeof _0x45a894===_0x5341be(_0x450966._0x3abd01,0x57,-_0x450966._0x3abd01,_0x450966._0x1f67c2)&&_0x45a894!==null&&_0x45a894[_0x5341be(_0x450966._0x1a8bad,_0x450966._0x7946ec,-_0x450966._0x2ee135,_0x450966._0x5b31c5)]===_0x5341be(_0x450966._0x1893cd,0x4c,-0xb,0x56);})[_0x2c32b5(-_0x20ed63._0x456e0b,-_0x20ed63._0x14db68,-0x159,-0x24f)](_0xdde463=>_0xdde463[_0x2c32b5(-0x246,-0x213,-0x257,-0x182)])[_0x2c32b5(-0xf0,-0x85,-_0x20ed63._0x5717ee,_0x20ed63._0x34eae4)]('\x0a\x0a')['trim']();function _0x2c32b5(_0xc8da0f,_0x104fa3,_0x5c8ed7,_0x53f363){return _0x551389(_0xc8da0f-0x1,_0x104fa3- -0x4dc,_0x5c8ed7,_0x53f363-_0x1db62a._0xd3195b);}function _0x48b58c(_0x30d83a,_0x37d93d,_0x45c200,_0x480bf1){return _0x551389(_0x30d83a-0x1b8,_0x480bf1- -_0x268db0._0x1db0eb,_0x30d83a,_0x480bf1-0x72);}return _0x226d58[_0x48b58c(-_0x20ed63._0x56dddb,-0x1c5,-_0x20ed63._0x158064,-0x186)]>0x0?_0x226d58:_0x48b58c(-_0x20ed63._0x52db66,-0x1bf,-_0x20ed63._0x1d72eb,-_0x20ed63._0x5c495b);}function getToolResultImages(_0x47a88d){const _0x36adee={_0x2820c5:0x249,_0xfcc00c:0x1d7},_0x35e784={_0x415023:0xc7};function _0x248bdd(_0xd6bb84,_0xfe7681,_0x36d094,_0x308afc){return _0xf0dc29(_0x36d094- -0xd,_0xfe7681-0x1c3,_0xd6bb84,_0x308afc-_0x35e784._0x415023);}return Array['isArray'](_0x47a88d)?_0x47a88d[_0x248bdd(0x24a,0x2bc,_0x36adee._0x2820c5,_0x36adee._0xfcc00c)](isImageToolResultBlock):[];}function parseToolInput2(_0x22a95c){const _0x69cc0a={_0x4f14c3:0x64a,_0x2aab3d:0x50c,_0x27dced:0x5e4},_0x3e7894={_0x7130:0x257,_0x5c0b44:0x11f,_0x3852a7:0x147};if(_0x22a95c['length']===0x0)return{};function _0x1d4ad4(_0xe3d013,_0x2e275a,_0xc3ae44,_0x2ee6d8){return _0xf0dc29(_0xc3ae44-_0x3e7894._0x7130,_0x2e275a-_0x3e7894._0x5c0b44,_0x2ee6d8,_0x2ee6d8-_0x3e7894._0x3852a7);}try{return JSON[_0x1d4ad4(_0x69cc0a._0x4f14c3,_0x69cc0a._0x2aab3d,_0x69cc0a._0x27dced,0x5af)](_0x22a95c);}catch{return _0x22a95c;}}function isResponsesReasoningItem(_0x283b1a){const _0x2c5c53={_0x403fbc:0x9b,_0x5b59f8:0xce,_0x3a987e:0x26,_0x24775f:0x19c,_0x13546c:0x94,_0x4c0ae4:0x141},_0x5ace71={_0x2db68e:0x8},_0x25a2a7={_0x4f6c72:0x164,_0x26ecc6:0x19f};function _0x3aec26(_0x8f0caf,_0x31ecb4,_0x1fd423,_0x532130){return _0xf0dc29(_0x8f0caf- -0x15a,_0x31ecb4-_0x25a2a7._0x4f6c72,_0x532130,_0x532130-_0x25a2a7._0x26ecc6);}function _0x2b161f(_0x303be3,_0x32f788,_0x4259f6,_0x5d41a8){return _0x551389(_0x303be3-0x40,_0x303be3- -0x39c,_0x5d41a8,_0x5d41a8-_0x5ace71._0x2db68e);}return typeof _0x283b1a===_0x3aec26(_0x2c5c53._0x403fbc,_0x2c5c53._0x5b59f8,0x3f,0x11b)&&_0x283b1a!==null&&'type'in _0x283b1a&&_0x283b1a[_0x2b161f(-0xd5,-_0x2c5c53._0x3a987e,-0x153,-_0x2c5c53._0x24775f)]===_0x3aec26(_0x2c5c53._0x13546c,0x165,0xd4,_0x2c5c53._0x4c0ae4);}function isResponsesMessageItem(_0x17c472){const _0x32c441={_0x32f082:0x279,_0x2db7f4:0x2e5,_0x35d0d2:0x2b4,_0x435568:0x36f,_0x37e604:0x451,_0x3dc1f6:0x42f},_0x2b3ae1={_0x24db23:0x37},_0x2e012d={_0x21be85:0x187,_0x384998:0x8a,_0x1c8d47:0xe1};function _0xbae77d(_0x34dad2,_0x168223,_0xef7f8,_0x482e75){return _0xf0dc29(_0x168223-_0x2e012d._0x21be85,_0x168223-_0x2e012d._0x384998,_0xef7f8,_0x482e75-_0x2e012d._0x1c8d47);}function _0x446812(_0x2d163f,_0x45f4d4,_0xec6975,_0x2a19f5){return _0xf0dc29(_0x2d163f- -0x46e,_0x45f4d4-_0x2b3ae1._0x24db23,_0x45f4d4,_0x2a19f5-0x195);}return typeof _0x17c472===_0x446812(-_0x32c441._0x32f082,-0x326,-_0x32c441._0x2db7f4,-0x24e)&&_0x17c472!==null&&_0xbae77d(_0x32c441._0x35d0d2,_0x32c441._0x435568,_0x32c441._0x37e604,_0x32c441._0x3dc1f6)in _0x17c472&&_0x17c472['type']==='message';}function isResponsesFunctionCallItem(_0x19b293){const _0x20d7f8={_0x433d4a:0x31,_0x2ad63a:0x22,_0x1b277d:0x2e},_0x4fa4a8={_0x3ba82b:0x25e},_0x42bd10={_0x580c7e:0x1c4};function _0x581f38(_0x154483,_0x59973c,_0x36f920,_0x49e68d){return _0xf0dc29(_0x59973c- -_0x42bd10._0x580c7e,_0x59973c-0x8f,_0x36f920,_0x49e68d-0x99);}function _0x4da463(_0x14e378,_0x3251ad,_0x4c796c,_0x2650a8){return _0xf0dc29(_0x4c796c- -_0x4fa4a8._0x3ba82b,_0x3251ad-0x30,_0x2650a8,_0x2650a8-0x11b);}return typeof _0x19b293===_0x581f38(-0xae,_0x20d7f8._0x433d4a,0xfe,0x11a)&&_0x19b293!==null&&_0x581f38(0x24,0x24,-_0x20d7f8._0x2ad63a,-_0x20d7f8._0x1b277d)in _0x19b293&&_0x19b293['type']==='function_call';}function createContentBlocks(_0x4aa60e,_0x5089f8,_0x3957c1){const _0x2067a4={_0x436bcd:0x402,_0x3e4001:0x42a,_0x1e84c2:0x4be,_0x1d5549:0x3ce,_0x450ecc:0x2f1,_0x2b1d65:0x4a8,_0x5f0c12:0x3d7,_0x330807:0x4b9,_0x39f239:0x4b1,_0x5e8bcc:0x381,_0x5bf6cf:0x391,_0x27e4f7:0x514,_0x1f0fe7:0x52e,_0x14053a:0x499,_0x335d1e:0x2d7,_0x3d7502:0x407,_0x5ca29d:0x447,_0x587c71:0x46c,_0x15629d:0x4bf,_0x2143e1:0x46f,_0xcb0e9:0x3ee,_0x35155f:0x443,_0x2f59d9:0x33d,_0x43c22b:0x43a,_0x22a413:0x38f,_0x9fc5e0:0x325,_0x32c299:0x2a9,_0xca3b17:0x396},_0x2cf1cd={_0x9d950b:0x46,_0x5a3c42:0xe9};function _0x214533(_0x1ee6cd,_0x4e51ec,_0xdcb20d,_0x131edb){return _0x551389(_0x1ee6cd-0xcb,_0x4e51ec-0xb8,_0x131edb,_0x131edb-0x10b);}const _0x10f5e8=[];_0x3957c1&&_0x3957c1[_0x214533(_0x2067a4._0x436bcd,_0x2067a4._0x3e4001,0x501,_0x2067a4._0x1e84c2)]>0x0&&_0x10f5e8['push']({'type':_0x4d4611(_0x2067a4._0x1d5549,0x37e,_0x2067a4._0x450ecc,0x3f8),'summary':[],'text':_0x3957c1});function _0x4d4611(_0x5005c2,_0x59f10e,_0x44de07,_0x587d67){return _0xf0dc29(_0x5005c2-0xf5,_0x59f10e-_0x2cf1cd._0x9d950b,_0x587d67,_0x587d67-_0x2cf1cd._0x5a3c42);}_0x4aa60e['length']>0x0&&_0x10f5e8[_0x4d4611(_0x2067a4._0x2b1d65,_0x2067a4._0x5f0c12,_0x2067a4._0x330807,_0x2067a4._0x39f239)]({'type':_0x214533(0x34e,_0x2067a4._0x5e8bcc,_0x2067a4._0x5bf6cf,0x3c5),'text':_0x4aa60e});for(const _0x51fc41 of _0x5089f8){if(_0x51fc41['id'][_0x214533(_0x2067a4._0x27e4f7,0x511,_0x2067a4._0x1f0fe7,_0x2067a4._0x14053a)]()[_0x4d4611(0x388,_0x2067a4._0x335d1e,0x399,_0x2067a4._0x3d7502)]===0x0||_0x51fc41['function'][_0x4d4611(_0x2067a4._0x5ca29d,_0x2067a4._0x587c71,_0x2067a4._0x15629d,0x51f)][_0x4d4611(_0x2067a4._0x2143e1,0x475,0x49a,_0x2067a4._0xcb0e9)]()[_0x214533(_0x2067a4._0x35155f,0x42a,0x4f9,_0x2067a4._0x2f59d9)]===0x0)continue;_0x10f5e8['push']({'type':_0x214533(0x416,0x392,_0x2067a4._0x43c22b,0x3f5),'id':_0x51fc41['id'],'name':_0x51fc41[_0x4d4611(_0x2067a4._0x22a413,_0x2067a4._0x9fc5e0,0x3b8,_0x2067a4._0x32c299)]['name'],'input':parseToolInput2(_0x51fc41['function'][_0x4d4611(0x467,_0x2067a4._0xca3b17,0x467,0x3b5)])});}return _0x10f5e8;}function createUsage(_0x5e8a7a){const _0x3fc7f7={_0x2a4174:0xe9,_0x4fcac0:0x6b,_0x5e8910:0x140,_0x137c17:0xcc,_0x7a32a5:0x17d,_0x483f46:0xd7,_0x29bb25:0x10a,_0x1b9e97:0x188,_0x158ece:0xb1,_0x1a29a5:0x11c,_0x58a44b:0x1e,_0x5ba778:0x64,_0x216d21:0x42c,_0x466ed4:0x38f,_0x52beef:0x420,_0x5cbdc2:0x395,_0x5aed37:0x3de,_0x455a6c:0x307},_0x13c279={_0x54c9be:0x3b,_0x22c13d:0x4c8,_0x3a1041:0x44},_0x1cead2={_0xbdec4f:0xcf,_0x249d74:0xb2};function _0x1ad7f2(_0xf36d5a,_0xcd38c8,_0x560065,_0x339ffd){return _0x551389(_0xf36d5a-0x1ea,_0xcd38c8- -_0x1cead2._0xbdec4f,_0x339ffd,_0x339ffd-_0x1cead2._0x249d74);}function _0x2c324d(_0x4ddfe5,_0x49ee12,_0x2296af,_0x3107fb){return _0x551389(_0x4ddfe5-_0x13c279._0x54c9be,_0x3107fb- -_0x13c279._0x22c13d,_0x4ddfe5,_0x3107fb-_0x13c279._0x3a1041);}return{'inputTokens':_0x5e8a7a?.[_0x2c324d(-_0x3fc7f7._0x2a4174,-_0x3fc7f7._0x4fcac0,-_0x3fc7f7._0x5e8910,-_0x3fc7f7._0x137c17)]??0x0,'outputTokens':_0x5e8a7a?.[_0x2c324d(-0x75,-_0x3fc7f7._0x7a32a5,-0xc4,-_0x3fc7f7._0x483f46)]??0x0,..._0x5e8a7a?.[_0x2c324d(-_0x3fc7f7._0x29bb25,-0x198,-_0x3fc7f7._0x1b9e97,-_0x3fc7f7._0x158ece)]?.[_0x2c324d(0x2e,-_0x3fc7f7._0x1a29a5,_0x3fc7f7._0x58a44b,-_0x3fc7f7._0x5ba778)]!==void 0x0?{'reasoningTokens':_0x5e8a7a[_0x1ad7f2(_0x3fc7f7._0x216d21,0x348,_0x3fc7f7._0x466ed4,0x38d)][_0x1ad7f2(_0x3fc7f7._0x52beef,_0x3fc7f7._0x5cbdc2,_0x3fc7f7._0x5aed37,_0x3fc7f7._0x455a6c)]}:{}};}function resolveReasoningVisibility2(_0x4164dc){const _0x49af3e={_0x3ae58e:0x280,_0x16d129:0x302,_0x3d9269:0x343,_0x44fb09:0x254,_0x40db25:0x313,_0x31f4c3:0x31c,_0xb91d16:0x451,_0xda68e5:0x44f},_0x43c87b={_0x430215:0x35,_0x4df1ed:0x76},_0x5bc406={_0x473656:0x8b,_0xc0b15:0x15a,_0x201262:0x169};function _0x5404d1(_0x77012d,_0x2e5537,_0xd9d56f,_0x239a7a){return _0x551389(_0x77012d-_0x5bc406._0x473656,_0x2e5537- -_0x5bc406._0xc0b15,_0x77012d,_0x239a7a-_0x5bc406._0x201262);}function _0x694836(_0x7d0afe,_0x3b5cb4,_0x26f609,_0x4b0d30){return _0x551389(_0x7d0afe-_0x43c87b._0x430215,_0x4b0d30-_0x43c87b._0x4df1ed,_0x3b5cb4,_0x4b0d30-0x1e4);}return _0x4164dc[_0x694836(0x294,_0x49af3e._0x3ae58e,_0x49af3e._0x16d129,_0x49af3e._0x3d9269)]?.[_0x5404d1(_0x49af3e._0x44fb09,_0x49af3e._0x40db25,_0x49af3e._0x31f4c3,0x2e1)]??_0x694836(0x3ee,0x4b9,_0x49af3e._0xb91d16,_0x49af3e._0xda68e5);}function isUserVisibleReasoning(_0x224a94){const _0x87b06={_0x173f6c:0x15a,_0x218989:0xf4,_0x19ca7a:0x99,_0x18d2b8:0x17},_0x161c63={_0x39727f:0x3a3,_0x32adf4:0x170};function _0x23f664(_0x3246af,_0x1b8639,_0x31ac45,_0x504427){return _0x551389(_0x3246af-0x1dc,_0x504427- -0x3c2,_0x3246af,_0x504427-0x1e2);}function _0x17cc99(_0x3c4a42,_0x3ef9f9,_0x3884bc,_0x5f0dc5){return _0x551389(_0x3c4a42-0xd1,_0x3884bc- -_0x161c63._0x39727f,_0x3c4a42,_0x5f0dc5-_0x161c63._0x32adf4);}return resolveOpenAiReasoningConfig(_0x224a94[_0x23f664(-0x8e,-0x40,-_0x87b06._0x173f6c,-0xf5)])!==void 0x0&&resolveReasoningVisibility2(_0x224a94)===_0x23f664(_0x87b06._0x218989,-0xc6,-_0x87b06._0x19ca7a,_0x87b06._0x18d2b8);}function createChatRequestBody(_0x33f02,_0x54a3d6){const _0x5d8388={_0x4cb810:0x2a,_0x4f1689:0x6e,_0x57c4cb:0x3,_0x38034c:0xc0,_0x445525:0x1bc,_0x516b1b:0x137,_0x5e1abe:0x232,_0x5367a2:0x163,_0xe1dbec:0x1e,_0x375b2d:0x8,_0x4705cd:0x91,_0x50fac5:0x1d,_0x2e1e2d:0x124,_0x17f1f4:0x18a,_0x1f09c3:0x1ec,_0x1bb984:0x7b,_0x36e6d9:0x138,_0x25ade0:0x224,_0x176188:0x3a9,_0x2b7a5f:0x3ff,_0x824f34:0x3c9,_0x5cfeb0:0x49,_0x15fc39:0x1e9,_0x2de7e6:0x419,_0x2973d7:0x349,_0x2bc809:0x348,_0x332a0f:0x431,_0x2ecc3e:0x2ff,_0x33cf20:0x24b,_0x51eb72:0x248,_0x201c73:0x390,_0x51de8c:0x234,_0x12c1e6:0x319,_0x465bf7:0x2dd,_0xda79cd:0xeb,_0x206961:0x52,_0x351f98:0x3ef,_0x5cc8ba:0x42a,_0x254776:0x49,_0x52e195:0x63,_0xa98a54:0x39,_0x6e938f:0x1bf,_0x1262bc:0x1e5,_0xec8235:0x3ad,_0x2cf065:0x3ff,_0x30095c:0x40f,_0x6f7c24:0x36,_0x2e7f11:0x30,_0x38ad3f:0x3f2,_0x41e34c:0x40a,_0x3c5dac:0x32f,_0x3759ae:0x2df,_0x1020bc:0x34c,_0x3fd776:0xad,_0x293586:0x95,_0x405c2e:0x161,_0x471d95:0x23,_0x22ec11:0x122,_0x4782c7:0x11c,_0x441b53:0x4f,_0x277417:0x58,_0xd13b69:0x45,_0x2db20d:0x2b,_0x355aae:0x67,_0x10f0e4:0x131,_0x293f29:0x29e,_0x2fd80a:0x1b3,_0x3d26df:0x29e,_0x183e0f:0xbe,_0x3f61f5:0x37d,_0x418c3f:0x39e,_0x3fa070:0x406,_0x1e9c66:0x40,_0xff4f33:0x8e,_0x37a915:0x3a,_0x1649ae:0x3d6},_0x32f4f9={_0x57429a:0x150,_0x3b0ed7:0x1cf,_0x2854fa:0x19e,_0xec9326:0x2ae,_0x40eac5:0x1d2,_0x487ff8:0x2ba,_0x41e580:0x288,_0x51f9ae:0x3,_0x3fb410:0xda,_0x264247:0x299,_0x4f3aaa:0x2bb,_0xeda37c:0x2c5,_0xedcaf5:0x201,_0xf34bc1:0x164,_0x5d975c:0x115,_0x2113f9:0x14b,_0x577c3c:0x104,_0x3475c6:0x207,_0x43538c:0x1fa,_0x1ee337:0x161,_0x1c5082:0x1df,_0x5d7ed7:0x6f,_0x112c7e:0xa0,_0x428bd9:0x9f,_0x54223b:0x28,_0x78c4a:0x1ca,_0x3230b4:0x1a8,_0x505da6:0x298,_0x5e0a68:0x168,_0x52ab2e:0xed,_0x3c9686:0x173,_0x1d6dcf:0x4d,_0x1871fe:0xb2},_0x455dce={_0xb3a0ee:0x1d7,_0x9d26f9:0x197},_0x1e5b62={_0x1a69d3:0x4c},_0x2592c4={_0x1db5ed:0x13e,_0x22f1d4:0x2};function _0x6d2ad8(_0x14e56a,_0x1327e1,_0x4d5aae,_0x286afc){return _0x551389(_0x14e56a-_0x2592c4._0x1db5ed,_0x4d5aae- -0x35a,_0x1327e1,_0x286afc-_0x2592c4._0x22f1d4);}const _0x279ecc=[],_0x3e9d99=stringifySystem(_0x33f02['system']);_0x3e9d99[_0x6d2ad8(_0x5d8388._0x4cb810,0xda,0x18,-_0x5d8388._0x4f1689)]>0x0&&_0x279ecc['push']({'role':_0x6d2ad8(-_0x5d8388._0x57c4cb,0x5b,-0x17,0x57),'content':_0x3e9d99});function _0x47f1f1(_0x5d570b,_0x3ce70c,_0x54db9c,_0xc43675){return _0xf0dc29(_0x3ce70c-_0x1e5b62._0x1a69d3,_0x3ce70c-0xc3,_0xc43675,_0xc43675-0x18a);}for(const _0xfa344 of _0x33f02[_0x6d2ad8(0x91,0xb2,_0x5d8388._0x38034c,0x13b)]){const _0x29212c=[],_0xa14430=[],_0x21d42a=[],_0x385e28=()=>{function _0x5b3300(_0x45400c,_0x2dd50a,_0x5d610a,_0x29154f){return _0x6d2ad8(_0x45400c-0x17a,_0x2dd50a,_0x5d610a- -_0x455dce._0xb3a0ee,_0x29154f-_0x455dce._0x9d26f9);}if(_0xfa344[_0x9cb127(-0x4b,-0x128,-0x18a,-0x53)]===_0x5b3300(-_0x32f4f9._0x57429a,-_0x32f4f9._0x3b0ed7,-0x184,-_0x32f4f9._0x2854fa)){if(_0x29212c['length']===0x0&&_0xa14430[_0x9cb127(-_0x32f4f9._0xec9326,-_0x32f4f9._0x40eac5,-0x28d,-_0x32f4f9._0x487ff8)]===0x0)return;_0x279ecc[_0x5b3300(-0x8f,-0x170,-0x9f,0x25)]({'role':_0x9cb127(-0x143,-0x197,-0x117,-0x198),'content':_0x29212c[_0x9cb127(-_0x32f4f9._0x41e580,-0x1d2,-0x166,-0x2a9)]>0x0?_0x29212c[_0x5b3300(_0x32f4f9._0x51f9ae,-0x83,-_0x32f4f9._0x3fb410,-0x15f)]('\x0a\x0a'):null,..._0xa14430[_0x9cb127(-_0x32f4f9._0x264247,-_0x32f4f9._0x40eac5,-_0x32f4f9._0x4f3aaa,-0x17c)]>0x0?{'tool_calls':_0xa14430[_0x5b3300(-_0x32f4f9._0xeda37c,-_0x32f4f9._0xedcaf5,-0x22d,-_0x32f4f9._0xf34bc1)](0x0)}:{}}),_0x29212c['length']=0x0;return;}if(_0xfa344[_0x5b3300(-0x34,-0x176,-_0x32f4f9._0x5d975c,-0xae)]==='user'){if(_0x21d42a[_0x5b3300(-_0x32f4f9._0x2113f9,-0xf9,-0x1bf,-_0x32f4f9._0x577c3c)]===0x0)return;const _0x1c428d=_0x21d42a[_0x5b3300(-_0x32f4f9._0x3475c6,-_0x32f4f9._0x43538c,-_0x32f4f9._0x1ee337,-_0x32f4f9._0x1c5082)](_0x139f7e=>_0x139f7e[_0x9cb127(-0x332,-0x27d,-0x273,-0x2d3)]==='image_url');_0x279ecc[_0x5b3300(-_0x32f4f9._0x5d7ed7,-_0x32f4f9._0x112c7e,-_0x32f4f9._0x428bd9,-_0x32f4f9._0x54223b)]({'role':_0x9cb127(-0xfd,-0xc6,-0x100,-0xfd),'content':_0x1c428d?_0x21d42a[_0x5b3300(-0x1a1,-0x30b,-0x22d,-0x31c)](0x0):_0x21d42a[_0x5b3300(-_0x32f4f9._0x78c4a,-0x16b,-0x22d,-_0x32f4f9._0x3230b4)](0x0)[_0x5b3300(-_0x32f4f9._0x505da6,-0x133,-0x1fc,-0x29b)](_0x177c1f=>_0x177c1f['type']==='text')[_0x5b3300(-_0x32f4f9._0x3230b4,-0x1b9,-0x26c,-0x17f)](_0x1a4563=>_0x1a4563[_0x9cb127(-0x336,-0x27b,-0x2ac,-0x278)])[_0x9cb127(-_0x32f4f9._0x5e0a68,-_0x32f4f9._0x52ab2e,-0x1bd,-0x41)]('\x0a\x0a')});return;}function _0x9cb127(_0x914f9b,_0x56b10b,_0xf4a37a,_0x15e8fd){return _0x6d2ad8(_0x914f9b-0x43,_0xf4a37a,_0x56b10b- -0x1ea,_0x15e8fd-0x13e);}if(_0x29212c[_0x9cb127(-0x27c,-0x1d2,-_0x32f4f9._0x3c9686,-0x101)]===0x0)return;_0x279ecc[_0x9cb127(-_0x32f4f9._0x1d6dcf,-_0x32f4f9._0x1871fe,-0x186,-0x86)]({'role':_0xfa344['role'],'content':_0x29212c['join']('\x0a\x0a')}),_0x29212c['length']=0x0;};for(const _0x167ec4 of normalizeContent(_0xfa344[_0x6d2ad8(_0x5d8388._0x445525,0xb6,_0x5d8388._0x516b1b,0xfb)])){if(_0x167ec4[_0x47f1f1(_0x5d8388._0x5e1abe,0x234,0x246,_0x5d8388._0x5367a2)]===_0x6d2ad8(_0x5d8388._0xe1dbec,_0x5d8388._0x375b2d,-_0x5d8388._0x4705cd,-0x4a)){_0xfa344[_0x6d2ad8(-_0x5d8388._0x50fac5,0x2f,0xc2,-0x1)]===_0x6d2ad8(0xd0,0x47,_0x5d8388._0x2e1e2d,_0x5d8388._0x17f1f4)?_0x21d42a[_0x6d2ad8(_0x5d8388._0x1f09c3,_0x5d8388._0x1bb984,_0x5d8388._0x36e6d9,0xbc)]({'type':'text','text':_0x167ec4[_0x47f1f1(_0x5d8388._0x25ade0,0x236,0x216,0x152)]}):_0x29212c[_0x47f1f1(_0x5d8388._0x176188,_0x5d8388._0x2b7a5f,0x42b,_0x5d8388._0x824f34)](_0x167ec4[_0x6d2ad8(-0x2a,-0x3b,-_0x5d8388._0x4705cd,_0x5d8388._0x5cfeb0)]);continue;}if(_0xfa344['role']===_0x6d2ad8(0x198,0x98,0x124,_0x5d8388._0x15fc39)&&_0x167ec4['type']===_0x6d2ad8(0xa7,-0x62,-0x11,-0xf5)){_0x21d42a[_0x47f1f1(_0x5d8388._0x2de7e6,_0x5d8388._0x2b7a5f,0x373,0x311)]({'type':_0x47f1f1(0x30c,0x2c0,0x218,_0x5d8388._0x2973d7),'image_url':{'url':'data:'+_0x167ec4[_0x47f1f1(0x26d,_0x5d8388._0x2bc809,_0x5d8388._0x332a0f,0x39e)][_0x47f1f1(0x1ce,0x2af,0x1df,0x2fc)]+_0x47f1f1(_0x5d8388._0x2ecc3e,_0x5d8388._0x33cf20,_0x5d8388._0x51eb72,0x29a)+_0x167ec4[_0x47f1f1(_0x5d8388._0x201c73,0x348,0x32d,0x3eb)]['data']}});continue;}if(_0x167ec4[_0x47f1f1(0x170,_0x5d8388._0x51de8c,_0x5d8388._0x12c1e6,_0x5d8388._0x465bf7)]===_0x6d2ad8(-0x167,-_0x5d8388._0xda79cd,-0x80,-_0x5d8388._0x206961)){_0xa14430[_0x6d2ad8(0xa4,0x147,0x138,0x1c9)]({'id':_0x167ec4['id'],'type':'function','function':{'name':_0x167ec4[_0x47f1f1(_0x5d8388._0x351f98,0x39e,0x363,_0x5d8388._0x5cc8ba)],'arguments':JSON[_0x6d2ad8(0x1e,_0x5d8388._0x254776,_0x5d8388._0x52e195,_0x5d8388._0xa98a54)](_0x167ec4['input']??{})}});continue;}if(_0x167ec4[_0x47f1f1(0x2cd,0x234,_0x5d8388._0x6e938f,_0x5d8388._0x1262bc)]!=='tool_result')continue;_0x385e28(),_0x279ecc[_0x47f1f1(_0x5d8388._0xec8235,_0x5d8388._0x2cf065,_0x5d8388._0x30095c,0x33c)]({'role':_0x6d2ad8(-0x30,0x32,-_0x5d8388._0x6f7c24,-0xdd),'content':getToolResultText(_0x167ec4[_0x6d2ad8(0xbe,0x12a,0x137,0x169)]),'tool_call_id':_0x167ec4[_0x6d2ad8(-0x60,-0xce,-0x4e,_0x5d8388._0x2e7f11)]});const _0x59adf7=getToolResultImages(_0x167ec4[_0x47f1f1(0x447,0x3fe,_0x5d8388._0x38ad3f,_0x5d8388._0x41e34c)]);_0x59adf7[_0x47f1f1(_0x5d8388._0x3c5dac,_0x5d8388._0x3759ae,0x372,_0x5d8388._0x1020bc)]>0x0&&_0x279ecc[_0x6d2ad8(0x125,0xd5,0x138,0x1e5)]({'role':'user','content':[{'type':'text','text':_0x47f1f1(0x3d2,0x3f1,0x3bd,0x31e)+_0x167ec4['tool_use_id']+'.'},..._0x59adf7[_0x6d2ad8(-0x9d,-_0x5d8388._0x3fd776,-_0x5d8388._0x293586,-0x2b)](_0x427f30=>({'type':_0x6d2ad8(0x81,-0x7b,-0x7,-0x6f),'image_url':{'url':_0x47f1f1(0x452,0x405,0x331,0x34f)+_0x427f30[_0x47f1f1(0x28e,0x348,0x40f,0x353)]['media_type']+_0x6d2ad8(-0x127,-0x153,-0x7c,-0x143)+_0x427f30['source']['data']}}))]});}_0x385e28();}const _0x540a3b=resolveOpenAiReasoningConfig(_0x33f02[_0x6d2ad8(-_0x5d8388._0x405c2e,-_0x5d8388._0x4cb810,-0x8d,_0x5d8388._0x471d95)]);return{'model':_0x33f02[_0x6d2ad8(0x1e8,0x11a,_0x5d8388._0x22ec11,_0x5d8388._0x4782c7)],'messages':_0x279ecc,'stream':_0x54a3d6,..._0x540a3b?{'max_completion_tokens':_0x33f02[_0x6d2ad8(-0xfa,-0x10d,-_0x5d8388._0x441b53,-_0x5d8388._0x277417)]}:{'max_tokens':_0x33f02[_0x6d2ad8(-0xae,-_0x5d8388._0xd13b69,-0x4f,-0xda)]},..._0x540a3b?.[_0x6d2ad8(-0x115,-_0x5d8388._0x2db20d,-_0x5d8388._0x355aae,-_0x5d8388._0x10f0e4)]?{'reasoning_effort':_0x540a3b['effort']}:{},...createToolDefinitions(_0x33f02[_0x47f1f1(0x2bd,_0x5d8388._0x293f29,0x36a,_0x5d8388._0x2fd80a)])?{'tools':createToolDefinitions(_0x33f02[_0x47f1f1(0x2b7,_0x5d8388._0x3d26df,0x262,0x292)])}:{},..._0x33f02['outputFormat']?{'response_format':{'type':_0x6d2ad8(_0x5d8388._0x183e0f,-0x7,0x95,0x15a),'json_schema':{'name':_0x33f02['outputFormat'][_0x47f1f1(_0x5d8388._0x3f61f5,_0x5d8388._0x418c3f,_0x5d8388._0x3fa070,0x432)]??_0x6d2ad8(-_0x5d8388._0x1e9c66,-0x2e,-_0x5d8388._0xff4f33,-_0x5d8388._0x37a915),'schema':_0x33f02[_0x47f1f1(0x1ff,0x2aa,0x29b,0x381)]['schema'],'strict':_0x33f02['outputFormat'][_0x47f1f1(0x464,_0x5d8388._0x1649ae,0x3f6,0x432)]??!![]}}}:{}};}function createResponsesRequestBody(_0x44cfbc,_0x51f316){return{...toOpenAiResponsesRequest(_0x44cfbc),..._0x51f316?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3f78ae,_0x1a1278={}){const _0x1a7d05={_0x43d1dd:0x206,_0x456445:0x1dd,_0x351fca:0x5e7,_0x2c78a6:0x61b,_0x176f9d:0x509,_0x380812:0x523},_0xba6c8b={_0x10a0ac:0x1d4},_0x1d8894=toOpenAiResponsesRequest(_0x3f78ae);function _0x26ebed(_0x2852f6,_0x1d647d,_0x579629,_0x4aaa62){return _0xf0dc29(_0x1d647d- -0xb0,_0x1d647d-0x18,_0x4aaa62,_0x4aaa62-_0xba6c8b._0x10a0ac);}function _0x225253(_0x1dca3d,_0x59fb2f,_0x3e4a48,_0x25ff6d){return _0x551389(_0x1dca3d-0x95,_0x1dca3d-0x168,_0x3e4a48,_0x25ff6d-0xb8);}return{'type':_0x26ebed(0x1bf,_0x1a7d05._0x43d1dd,0x186,_0x1a7d05._0x456445),..._0x1d8894,..._0x1a1278[_0x225253(_0x1a7d05._0x351fca,0x517,_0x1a7d05._0x2c78a6,_0x1a7d05._0x176f9d)]?{'input':_0x1a1278['input']}:{},..._0x1a1278[_0x225253(_0x1a7d05._0x380812,0x49e,0x572,0x449)]?{'previous_response_id':_0x1a1278['previousResponseId']}:{},'store':![]};}function normalizeAssistantContent(_0x18e737){const _0x437f02={_0x441534:0x5e7,_0x9f5fc8:0x517,_0x57b650:0x669,_0x1b313d:0x62e,_0x1ae194:0x72f,_0xf5c809:0x4fd,_0x4d6689:0x4c4,_0x426b50:0x490,_0x217486:0x598,_0x265624:0xef},_0x249958={_0x2e934f:0x41c,_0xe2f1c4:0x563,_0x529e08:0x4ce,_0x50671a:0x2ca,_0x822ee4:0x39e,_0x225437:0x4d2,_0x24ca0d:0x5c3},_0x336468={_0x4481f1:0x14d,_0x488d04:0x11a},_0x2acade={_0x19e90c:0xaa,_0x2ea1e4:0x1ea},_0xdb2236={_0x12cdb1:0x228,_0x4e582a:0x6d,_0x75a358:0x8c};if(typeof _0x18e737===_0x5a4966(0x63f,_0x437f02._0x441534,_0x437f02._0x9f5fc8,0x535))return _0x18e737;if(!Array[_0x5a4966(_0x437f02._0x57b650,0x67c,_0x437f02._0x1b313d,_0x437f02._0x1ae194)](_0x18e737))return'';function _0xa15054(_0x46710e,_0x10c460,_0x38d36d,_0x32f9ee){return _0xf0dc29(_0x46710e- -_0xdb2236._0x12cdb1,_0x10c460-_0xdb2236._0x4e582a,_0x32f9ee,_0x32f9ee-_0xdb2236._0x75a358);}function _0x5a4966(_0x4cb4e5,_0x37a774,_0x54d82d,_0x175518){return _0xf0dc29(_0x37a774-0x2de,_0x37a774-_0x2acade._0x19e90c,_0x4cb4e5,_0x175518-_0x2acade._0x2ea1e4);}return _0x18e737[_0x5a4966(_0x437f02._0xf5c809,_0x437f02._0x4d6689,_0x437f02._0x426b50,_0x437f02._0x217486)](_0x268105=>{function _0x5a84c0(_0x4911e4,_0xd4c2d8,_0x1cc19d,_0x580f66){return _0xa15054(_0x580f66-0x50e,_0xd4c2d8-0xe1,_0x1cc19d-0x1cf,_0x1cc19d);}function _0x5d4ba4(_0x441ca9,_0x15e15c,_0x237965,_0x15d5c5){return _0x5a4966(_0x15e15c,_0x441ca9- -0x1fe,_0x237965-_0x336468._0x4481f1,_0x15d5c5-_0x336468._0x488d04);}return _0x268105[_0x5a84c0(_0x249958._0x2e934f,_0x249958._0xe2f1c4,0x557,_0x249958._0x529e08)]==='text'?_0x268105[_0x5d4ba4(_0x249958._0x50671a,_0x249958._0x822ee4,0x2bf,0x368)]:_0x268105[_0x5a84c0(_0x249958._0x225437,0x43f,_0x249958._0x24ca0d,0x52f)];})[_0xa15054(0x150,_0x437f02._0x265624,0x103,0xf0)]('');}function normalizeResponsesMessageContent(_0x304d6b){const _0x16a067={_0x1b5c48:0x45a,_0x46fd28:0x43b,_0x269c2b:0x138},_0x2eb977={_0x3a3c98:0x15a,_0x5d31dc:0xb2,_0x48d798:0x184,_0x5c6c18:0x28e,_0x1ac3ab:0x2ed,_0x31d539:0xca,_0x1c8b6a:0x22c,_0x1f5dd2:0x271,_0x568fc6:0x258,_0x4f3f27:0x2c6,_0x9f5166:0x144,_0x59d448:0x1f9,_0x42f5d9:0x1a1,_0x3be037:0x132,_0x3f3ba4:0x29b,_0x55fe45:0x23b},_0x37e5ca={_0x3ec671:0x551,_0x59a9a5:0x16c,_0x4da9ab:0x46},_0x56c042={_0x3d4b87:0x337},_0x3d97b9={_0x3349dc:0x101,_0x8a68fb:0x30,_0x36ba81:0x146};function _0x414cf7(_0xcbd591,_0x1f831b,_0x55f8a4,_0x416b7d){return _0x551389(_0xcbd591-_0x3d97b9._0x3349dc,_0xcbd591-_0x3d97b9._0x8a68fb,_0x416b7d,_0x416b7d-_0x3d97b9._0x36ba81);}function _0x1d7f05(_0x18d13b,_0x291788,_0xc9706e,_0x4997ca){return _0x551389(_0x18d13b-0x113,_0x4997ca- -_0x56c042._0x3d4b87,_0x18d13b,_0x4997ca-0x86);}if(!Array[_0x414cf7(0x4ad,0x3fe,_0x16a067._0x1b5c48,_0x16a067._0x46fd28)](_0x304d6b))return'';return _0x304d6b['map'](_0x59f585=>{const _0x205f50={_0x58f0a0:0x587};function _0x3c1ecd(_0x1edf34,_0x27d807,_0x3cc6bc,_0x2a1d47){return _0x414cf7(_0x3cc6bc- -_0x37e5ca._0x3ec671,_0x27d807-_0x37e5ca._0x59a9a5,_0x3cc6bc-_0x37e5ca._0x4da9ab,_0x27d807);}if(!_0x59f585||typeof _0x59f585!=='object')return'';function _0x140cf5(_0x10ae5d,_0x2871c4,_0xeeeee0,_0x2a68b1){return _0x414cf7(_0x2871c4- -_0x205f50._0x58f0a0,_0x2871c4-0x91,_0xeeeee0-0x15a,_0xeeeee0);}const _0x49fc2f=_0x59f585;if(_0x49fc2f['type']===_0x3c1ecd(-_0x2eb977._0x3a3c98,-_0x2eb977._0x5d31dc,-_0x2eb977._0x48d798,-0x23a)&&typeof _0x49fc2f[_0x140cf5(-0x34d,-_0x2eb977._0x5c6c18,-_0x2eb977._0x1ac3ab,-0x2c1)]===_0x3c1ecd(-_0x2eb977._0x31d539,-0x19d,-0x139,-0xce))return _0x49fc2f[_0x3c1ecd(-_0x2eb977._0x1c8b6a,-_0x2eb977._0x1f5dd2,-_0x2eb977._0x568fc6,-0x337)];if(_0x49fc2f['type']===_0x3c1ecd(-_0x2eb977._0x4f3f27,-_0x2eb977._0x9f5166,-_0x2eb977._0x59d448,-_0x2eb977._0x42f5d9)&&typeof _0x49fc2f['refusal']===_0x140cf5(-_0x2eb977._0x3be037,-0x16f,-0x237,-0x8a))return _0x49fc2f[_0x140cf5(-0x1c2,-0x22f,-_0x2eb977._0x3f3ba4,-_0x2eb977._0x55fe45)];return'';})[_0x1d7f05(0xa3,_0x16a067._0x269c2b,0x37,0x120)]('');}function extractOpenAiReasoningText(_0x1d7e09){const _0x135aca={_0x388a32:0x3bd,_0x2973b6:0x378,_0xbfacdb:0x4b3,_0x2071a2:0x486,_0x3b4944:0x458,_0xe859c5:0x38e,_0x411ae5:0x262,_0x2620bc:0x31f,_0x556c9d:0x1cc,_0x5cec6e:0xff,_0x1f918c:0x1c4,_0x318e12:0x2fc},_0xc51346={_0x54d451:0x122},_0x4e7fbc={_0x52806c:0x1c6,_0x58e823:0xca};if(typeof _0x1d7e09['text']==='string')return _0x1d7e09['text'];function _0x1aa6b7(_0x32c6fc,_0x5796d2,_0x562a1a,_0x2792ab){return _0x551389(_0x32c6fc-0xc5,_0x562a1a- -_0x4e7fbc._0x52806c,_0x32c6fc,_0x2792ab-_0x4e7fbc._0x58e823);}if(!Array[_0x2080e7(0x2e2,_0x135aca._0x388a32,_0x135aca._0x2973b6,0x442)](_0x1d7e09[_0x2080e7(_0x135aca._0xbfacdb,0x3d1,_0x135aca._0x2071a2,_0x135aca._0x3b4944)]))return'';function _0x2080e7(_0x15fcf5,_0x40751f,_0x474190,_0x223dcf){return _0x551389(_0x15fcf5-_0xc51346._0x54d451,_0x40751f- -0xc0,_0x223dcf,_0x223dcf-0x8b);}return _0x1d7e09[_0x1aa6b7(_0x135aca._0xe859c5,_0x135aca._0x411ae5,0x2cb,_0x135aca._0x2620bc)][_0x2080e7(0x260,0x275,_0x135aca._0x556c9d,0x199)](_0x501c0d=>_0x501c0d[_0x1aa6b7(0x49,0x1ca,0x101,0x17b)]==='reasoning_text'&&typeof _0x501c0d[_0x1aa6b7(0x1a3,0x16a,0x103,0x21)]===_0x1aa6b7(0x243,0x1fc,0x222,0x2cf))[_0x1aa6b7(0x80,0x3d,_0x135aca._0x5cec6e,_0x135aca._0x1f918c)](_0x2bf2e0=>_0x2bf2e0[_0x2080e7(0x22e,0x209,0x1a2,0x159)]??'')[_0x2080e7(_0x135aca._0x318e12,0x397,0x394,0x459)]('');}function createOpenAiReasoningBlock(_0x25dda8){const _0x1121c1={_0x5b38d8:0x8,_0x3b9807:0xbc,_0x5372ac:0x5d,_0x2a8d7d:0x6a,_0x559bdd:0x39,_0xbb5186:0xfa},_0x9af883={_0x3b82ca:0x1ee},_0x16e76c={_0x5173ac:0x2c5};function _0x7c6efa(_0x3aee4d,_0x56f267,_0x3bb8a8,_0x178786){return _0xf0dc29(_0x56f267- -_0x16e76c._0x5173ac,_0x56f267-0x190,_0x3aee4d,_0x178786-0x14c);}const _0x2d11ee=extractOpenAiReasoningText(_0x25dda8);function _0x263178(_0xe3ca52,_0x416127,_0x3dc6fb,_0x5c1dce){return _0x551389(_0xe3ca52-_0x9af883._0x3b82ca,_0x416127- -0x30a,_0x3dc6fb,_0x5c1dce-0xb5);}return{'type':'openai_reasoning','summary':structuredClone(_0x25dda8['summary']??[]),..._0x25dda8['id']?{'id':_0x25dda8['id']}:{},..._0x25dda8[_0x263178(-_0x1121c1._0x5b38d8,0x15,0xaf,-0x59)]?{'encryptedContent':_0x25dda8[_0x263178(-_0x1121c1._0x3b9807,0x15,-_0x1121c1._0x5372ac,_0x1121c1._0x2a8d7d)]}:{},..._0x2d11ee[_0x263178(-_0x1121c1._0x559bdd,0x68,_0x1121c1._0xbb5186,0x131)]>0x0?{'text':_0x2d11ee}:{}};}function hasVisibleOpenAiReasoning(_0x14b854){const _0x3474c7={_0x4cddac:0x4ac,_0xe8f77d:0x410,_0x3bba96:0x45a,_0x1f8c29:0x27b,_0x825570:0x55e,_0x37f195:0x42c},_0x5af576={_0x212e9a:0xf4,_0x2de714:0x1d7},_0x3df2fb={_0x58b87d:0x1ea};function _0x23a435(_0x57e9a7,_0x560543,_0x4790fc,_0x56d011){return _0x551389(_0x57e9a7-_0x3df2fb._0x58b87d,_0x560543-0x9e,_0x56d011,_0x56d011-0x102);}function _0x4171fd(_0x51e727,_0x690a13,_0x265329,_0x2b5690){return _0x551389(_0x51e727-_0x5af576._0x212e9a,_0x690a13- -_0x5af576._0x2de714,_0x265329,_0x2b5690-0xe1);}return _0x14b854['summary'][_0x23a435(_0x3474c7._0x4cddac,_0x3474c7._0xe8f77d,0x4e4,_0x3474c7._0x3bba96)]>0x0||typeof _0x14b854[_0x23a435(0x424,0x367,_0x3474c7._0x1f8c29,0x448)]===_0x23a435(0x565,0x486,_0x3474c7._0x825570,_0x3474c7._0x37f195);}function parseChatCompletionResponse(_0x224276){const _0x37a149={_0x29ec01:0x41c,_0x3361e4:0x333,_0x57d63a:0x2d6,_0x399796:0x42c,_0x4ebdf1:0x571,_0x5257ef:0x4a0,_0x2c7756:0x2d1,_0x5e9530:0x2c4,_0x1335d6:0x3ad,_0x42aace:0x3e1,_0xbf7fd2:0x285,_0xa8258c:0x2e1,_0x4bf45c:0x319,_0xe5980b:0x299,_0x1f1c93:0x232,_0x5e8ed0:0x27d,_0x101ccf:0x1ab,_0x43cd83:0x20f,_0x342525:0x1f6,_0x88c5b7:0x5dc,_0x3367f4:0x504,_0x2191db:0x5e2,_0x2fb4a7:0x535,_0x4b790c:0x423,_0x63313c:0x44f},_0x1a1e86={_0x170792:0x2e},_0x1bea91={_0x58ef97:0x7e,_0x7e691c:0x11b},_0x46ca1a=[],_0x4944d7=[];let _0x3b7bfc='end_turn';for(const _0x4b9364 of _0x224276['choices']??[]){const _0x462577=_0x4b9364[_0x2832c4(0x36b,_0x37a149._0x29ec01,_0x37a149._0x3361e4,_0x37a149._0x57d63a)],_0x59bd36=normalizeAssistantContent(_0x462577?.['content']);_0x59bd36[_0x3ad3d2(_0x37a149._0x399796,_0x37a149._0x4ebdf1,_0x37a149._0x5257ef,0x4fe)]>0x0&&_0x46ca1a['push'](_0x59bd36),_0x462577?.[_0x2832c4(_0x37a149._0x2c7756,0x396,0x2e1,_0x37a149._0x5e9530)]&&_0x4944d7[_0x2832c4(_0x37a149._0x1335d6,_0x37a149._0x42aace,0x363,0x2cc)](..._0x462577[_0x2832c4(_0x37a149._0xbf7fd2,0x325,_0x37a149._0xa8258c,_0x37a149._0x4bf45c)]),_0x4b9364[_0x2832c4(0x167,_0x37a149._0xe5980b,_0x37a149._0x1f1c93,0x291)]==='tool_calls'&&(_0x3b7bfc=_0x2832c4(0x250,_0x37a149._0x5e8ed0,_0x37a149._0x101ccf,_0x37a149._0x43cd83));}_0x4944d7['length']>0x0&&(_0x3b7bfc=_0x3ad3d2(0x41c,0x4d0,0x44c,0x466));function _0x2832c4(_0x11f5ce,_0x2bb90c,_0x270899,_0x52b530){return _0xf0dc29(_0x270899- -0x50,_0x2bb90c-_0x1bea91._0x58ef97,_0x11f5ce,_0x52b530-_0x1bea91._0x7e691c);}function _0x3ad3d2(_0x133391,_0x3278d7,_0x1d6175,_0xc18350){return _0xf0dc29(_0xc18350-0x26b,_0x3278d7-0x191,_0x133391,_0xc18350-_0x1a1e86._0x170792);}return{'id':_0x224276['id']??_0x2832c4(_0x37a149._0x342525,0x250,0x283,0x1df)+Date[_0x3ad3d2(_0x37a149._0x88c5b7,0x60a,_0x37a149._0x3367f4,_0x37a149._0x2191db)](),'content':createContentBlocks(_0x46ca1a['join'](''),_0x4944d7),'stopReason':_0x3b7bfc,'usage':createUsage(_0x224276[_0x3ad3d2(_0x37a149._0x2fb4a7,_0x37a149._0x4b790c,0x44e,_0x37a149._0x63313c)])};}function parseResponsesResponse(_0x2faf77,_0x557a95){const _0x3a6ea3={_0x3244da:0x481,_0x9bffad:0x49b,_0x5b51a7:0x3df,_0x1c0ce3:0x480,_0x45cf3c:0x487,_0x28e2a4:0xc4,_0xdff957:0xb9,_0x211b49:0x291,_0x121187:0x2b8,_0x3b9568:0xcd,_0x564637:0x338,_0x5b0099:0x361,_0x57ad51:0x36,_0x38b859:0x21,_0x3e45e4:0x9,_0x2b3624:0x105,_0x301b50:0x420,_0x292c32:0x3f0,_0x2fc4bc:0x123,_0x268927:0x2c,_0x599aa7:0xe4,_0xf9d5d:0x60,_0x12e241:0x56c,_0x435519:0x46d,_0x15698f:0x43c,_0x273d20:0x29e,_0x2c65d6:0x29d,_0x2227b1:0x2c9,_0x2a4baa:0x38d,_0x3de44b:0x72,_0x5a05d6:0xe,_0x51085e:0x63,_0x2e11e5:0x137,_0x5c2e64:0xf4,_0x2a949e:0x3c8,_0x3ad75a:0x3b4,_0x3b33db:0x44,_0x1d7669:0x4,_0x4993a6:0x4e,_0x1c24a3:0x6c,_0x11f73c:0x2,_0x1995c1:0x41,_0x35299d:0x1f,_0x31bf07:0x292,_0x2b0800:0x1e8,_0x2e4e51:0xdf,_0x31f4c7:0x3f,_0x4cab11:0x24,_0x23ec0d:0x93,_0x3b9173:0x1df,_0x9a3aac:0x43c,_0x56fb07:0x36d,_0x44f090:0x2fa},_0x57bf45={_0x1286ce:0x148},_0x453209={_0x4c0ab0:0x12f},_0x226f8c=[];for(const _0x193e2a of _0x2faf77['output']??[]){if(isResponsesReasoningItem(_0x193e2a)){if(isUserVisibleReasoning(_0x557a95)){const _0x543bd7=createOpenAiReasoningBlock(_0x193e2a);hasVisibleOpenAiReasoning(_0x543bd7)&&_0x226f8c[_0x561c0a(0x4ba,0x47a,_0x3a6ea3._0x3244da,0x4c9)](_0x543bd7);}continue;}if(isResponsesMessageItem(_0x193e2a)){const _0x5d2593=normalizeResponsesMessageContent(_0x193e2a[_0x561c0a(_0x3a6ea3._0x9bffad,_0x3a6ea3._0x5b51a7,_0x3a6ea3._0x1c0ce3,_0x3a6ea3._0x45cf3c)]);_0x5d2593['length']>0x0&&_0x226f8c[_0x19cf2d(_0x3a6ea3._0x28e2a4,0x14d,_0x3a6ea3._0xdff957,0x98)]({'type':_0x561c0a(_0x3a6ea3._0x211b49,0x308,_0x3a6ea3._0x121187,0x2ba),'text':_0x5d2593});continue;}if(!isResponsesFunctionCallItem(_0x193e2a)||typeof _0x193e2a[_0x19cf2d(-_0x3a6ea3._0x28e2a4,-0x34,-0x162,-0x36)]!=='string'||_0x193e2a[_0x19cf2d(-_0x3a6ea3._0x28e2a4,-0x55,0x20,-_0x3a6ea3._0x3b9568)][_0x561c0a(0x3a1,0x472,0x448,0x505)]()[_0x561c0a(0x3dd,_0x3a6ea3._0x564637,_0x3a6ea3._0x5b0099,0x34c)]===0x0||typeof _0x193e2a[_0x19cf2d(0x63,-_0x3a6ea3._0x57ad51,-_0x3a6ea3._0x38b859,0x112)]!==_0x19cf2d(0x1a,_0x3a6ea3._0x3e45e4,0x46,_0x3a6ea3._0x2b3624)||_0x193e2a[_0x561c0a(_0x3a6ea3._0x5b51a7,0x3c3,_0x3a6ea3._0x301b50,_0x3a6ea3._0x292c32)][_0x19cf2d(0x8b,0xac,_0x3a6ea3._0x2fc4bc,-_0x3a6ea3._0x268927)]()[_0x19cf2d(-0x5c,-_0x3a6ea3._0x599aa7,-_0x3a6ea3._0xf9d5d,0x20)]===0x0||typeof _0x193e2a['arguments']!=='string')continue;_0x226f8c[_0x561c0a(_0x3a6ea3._0x12e241,_0x3a6ea3._0x435519,0x481,_0x3a6ea3._0x15698f)]({'type':_0x561c0a(_0x3a6ea3._0x273d20,_0x3a6ea3._0x2c65d6,_0x3a6ea3._0x2227b1,_0x3a6ea3._0x2a4baa),'id':_0x193e2a[_0x19cf2d(-_0x3a6ea3._0x28e2a4,-_0x3a6ea3._0x3de44b,_0x3a6ea3._0x5a05d6,-0x3c)],'name':_0x193e2a[_0x19cf2d(_0x3a6ea3._0x51085e,_0x3a6ea3._0x2e11e5,-0x46,_0x3a6ea3._0x5c2e64)],'input':parseToolInput2(_0x193e2a[_0x19cf2d(0x83,0x6f,0x15e,0x16e)])});}function _0x19cf2d(_0x3395b6,_0x4b14ed,_0x4cd6a5,_0x1fba74){return _0xf0dc29(_0x3395b6- -0x2ef,_0x4b14ed-_0x453209._0x4c0ab0,_0x1fba74,_0x1fba74-0x0);}function _0x561c0a(_0x550d21,_0x69af2,_0xf6e3ac,_0x18c983){return _0x551389(_0x550d21-0xab,_0xf6e3ac- -0x11,_0x18c983,_0x18c983-_0x57bf45._0x1286ce);}return!_0x226f8c[_0x561c0a(_0x3a6ea3._0x2a949e,_0x3a6ea3._0x3ad75a,0x3bf,0x30a)](_0x65ecd2=>_0x65ecd2[_0x19cf2d(-0x107,-0x73,-0x70,-0x18c)]==='text')&&_0x2faf77['output_text']&&_0x226f8c[_0x19cf2d(_0x3a6ea3._0x28e2a4,-0x12,_0x3a6ea3._0x3b33db,-_0x3a6ea3._0x1d7669)]({'type':'text','text':_0x2faf77[_0x19cf2d(-0x31,_0x3a6ea3._0x4993a6,-0xef,-_0x3a6ea3._0x1c24a3)]}),{'id':_0x2faf77['id'],'content':_0x226f8c,'stopReason':_0x226f8c[_0x19cf2d(_0x3a6ea3._0x11f73c,-_0x3a6ea3._0x1995c1,_0x3a6ea3._0x35299d,0x4b)](_0x2d940f=>_0x2d940f[_0x19cf2d(-0x107,-0x166,-0x5b,-0x8b)]===_0x19cf2d(-0xf4,-0x73,-0x5b,-0xe9))?_0x561c0a(_0x3a6ea3._0x31bf07,0x386,_0x3a6ea3._0x2227b1,_0x3a6ea3._0x2b0800):_0x19cf2d(-0x87,0x67,-0x144,-0x2d),'usage':{'inputTokens':_0x2faf77[_0x19cf2d(-0x10b,-0x1a9,-0x122,-0x84)]?.['input_tokens']??0x0,'outputTokens':_0x2faf77[_0x19cf2d(-0x10b,-_0x3a6ea3._0x2e4e51,-0xd0,-0x14c)]?.[_0x19cf2d(0x5a,0xc8,_0x3a6ea3._0x31f4c7,_0x3a6ea3._0x4cab11)]??0x0,..._0x2faf77['usage']?.[_0x19cf2d(-_0x3a6ea3._0x23ec0d,0x5b,-0xa3,-0x150)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x2faf77[_0x561c0a(_0x3a6ea3._0x3b9173,0x332,0x2b2,0x21c)][_0x561c0a(0x311,0x3d4,0x32a,0x40c)][_0x561c0a(_0x3a6ea3._0x9a3aac,0x36c,0x453,_0x3a6ea3._0x56fb07)]}:{}},..._0x2faf77['output']?{'providerState':{'openaiResponsesOutput':structuredClone(_0x2faf77[_0x561c0a(0x312,_0x3a6ea3._0x44f090,0x3a9,0x34b)]),'openaiResponsesResponseId':_0x2faf77['id']}}:{}};}function extractErrorMessage(_0x5cda93){const _0x4085a5={_0x72044e:0x105,_0x3b19d6:0xb6,_0x2cc515:0x4c0,_0x3c7f21:0x4a4,_0xce9e62:0x4b7,_0x5e0b61:0x155,_0x3bf1ee:0x40,_0x39b295:0x101,_0x4fc7a5:0xbe,_0x28337d:0x2bd,_0x1e9bbf:0x1f5,_0x46734c:0x2c5,_0x15e79a:0x1ec,_0x12f635:0x2b1,_0x14bd86:0x420,_0x53bb14:0x3ff,_0x3d827a:0x3bd,_0x2c37c9:0x463,_0x69abd1:0x570,_0x1de267:0x1e9,_0x2903f3:0x130,_0x207386:0x422,_0x5617c1:0x428,_0x460775:0x4ad,_0x51b970:0x13a,_0x24ab72:0x2bf},_0x3d7000={_0x2e65d8:0x13f,_0x388bd5:0x26d},_0x2f16f6={_0xa6c9e8:0x3f,_0x196a7e:0x151};function _0x1cba33(_0x263263,_0x433f9d,_0xf7bc6a,_0x217cab){return _0x551389(_0x263263-_0x2f16f6._0xa6c9e8,_0x217cab-0x4b,_0x433f9d,_0x217cab-_0x2f16f6._0x196a7e);}if(_0x5cda93[_0x3eec22(_0x4085a5._0x72044e,_0x4085a5._0x3b19d6,_0x4085a5._0x72044e,0x86)]===0x0)return'';function _0x3eec22(_0x2d9b7a,_0x39abcb,_0x2519b1,_0x1bce90){return _0x551389(_0x2d9b7a-_0x3d7000._0x2e65d8,_0x2519b1- -_0x3d7000._0x388bd5,_0x39abcb,_0x1bce90-0xbb);}try{const _0x33e686=JSON[_0x1cba33(_0x4085a5._0x2cc515,0x491,_0x4085a5._0x3c7f21,_0x4085a5._0xce9e62)](_0x5cda93);if(typeof _0x33e686[_0x3eec22(_0x4085a5._0x5e0b61,_0x4085a5._0x3bf1ee,_0x4085a5._0x39b295,_0x4085a5._0x4fc7a5)]?.[_0x3eec22(_0x4085a5._0x28337d,0x20e,_0x4085a5._0x1e9bbf,0x196)]==='string'&&_0x33e686['error']['message'][_0x3eec22(_0x4085a5._0x46734c,0x198,_0x4085a5._0x15e79a,_0x4085a5._0x12f635)]()[_0x1cba33(0x319,_0x4085a5._0x14bd86,_0x4085a5._0x53bb14,_0x4085a5._0x3d827a)]>0x0)return _0x33e686[_0x3eec22(0x8f,0x45,_0x4085a5._0x39b295,0x155)]['message'][_0x1cba33(_0x4085a5._0x2c37c9,_0x4085a5._0x69abd1,0x4c1,0x4a4)]();if(typeof _0x33e686[_0x3eec22(_0x4085a5._0x1de267,0x258,_0x4085a5._0x1e9bbf,0x194)]==='string'&&_0x33e686[_0x3eec22(0x2d6,_0x4085a5._0x2903f3,0x1f5,0x131)][_0x1cba33(0x554,0x564,_0x4085a5._0x207386,_0x4085a5._0x3c7f21)]()['length']>0x0)return _0x33e686[_0x1cba33(0x460,_0x4085a5._0x5617c1,0x52c,_0x4085a5._0x460775)][_0x3eec22(_0x4085a5._0x51b970,0x1b2,0x1ec,_0x4085a5._0x24ab72)]();}catch{return _0x5cda93;}return _0x5cda93;}async function createOpenAiApiError(_0x360ea2){const _0x54e4a9={_0x751113:0x1eb,_0xd3f311:0x310,_0x42476c:0x1f0,_0x298a8b:0x277,_0x2c4069:0x1ed,_0xbad24e:0x1fc,_0xbc7aa4:0x4e7,_0x5c9c75:0x40b,_0x2bf7ce:0x584,_0x5b3f7a:0x496,_0x78a78b:0x3d2,_0x5ed177:0x490},_0x15281a={_0x416abd:0x162},_0x278260={_0x28d4b7:0x54a,_0x5031db:0x1d2},_0xa9bd3f=(await _0x360ea2[_0x5dbdaf(_0x54e4a9._0x751113,0x28d,_0x54e4a9._0xd3f311,0x2c9)]())[_0x15c2b1(-0x193,-0xf7,-0xf1,-0xb1)]();function _0x15c2b1(_0x9dadd6,_0x2d6598,_0x27630f,_0x2a076e){return _0x551389(_0x9dadd6-0x1dd,_0x27630f- -_0x278260._0x28d4b7,_0x2d6598,_0x2a076e-_0x278260._0x5031db);}const _0x3a4e8e=extractErrorMessage(_0xa9bd3f)||_0x360ea2[_0x15c2b1(-_0x54e4a9._0x42476c,-0x367,-_0x54e4a9._0x298a8b,-0x2a8)]||_0x15c2b1(-0x239,-0x1a8,-_0x54e4a9._0x2c4069,-_0x54e4a9._0xbad24e)+_0x360ea2[_0x5dbdaf(_0x54e4a9._0xbc7aa4,_0x54e4a9._0x5c9c75,_0x54e4a9._0x2bf7ce,_0x54e4a9._0x5b3f7a)];function _0x5dbdaf(_0x5caf6a,_0x2d5779,_0x49aa0c,_0x333536){return _0xf0dc29(_0x333536-0xdf,_0x2d5779-0x160,_0x5caf6a,_0x333536-_0x15281a._0x416abd);}return new OpenAiApiError(_0x360ea2[_0x5dbdaf(0x453,_0x54e4a9._0x78a78b,_0x54e4a9._0x5ed177,0x496)],_0xa9bd3f,_0x3a4e8e);}function readSseData(_0x52ff3d){const _0x24b882={_0x542d96:0xa,_0x232699:0x14,_0x5cee1a:0xe8,_0x3ad806:0x531,_0x352995:0x447,_0x1562a6:0x4be,_0x54f220:0x465,_0x2b6335:0x169,_0xabe3de:0xda,_0x7edd8c:0xd4},_0x50c774={_0xb27029:0x5};function _0xf6a719(_0x12cff9,_0x9a7233,_0x87591c,_0xd804c0){return _0xf0dc29(_0xd804c0-0x27e,_0x9a7233-0x135,_0x9a7233,_0xd804c0-0x75);}function _0x174bc5(_0x426c1e,_0x370dae,_0x553d7b,_0x3c0458){return _0xf0dc29(_0x3c0458- -0x2a4,_0x370dae-0xfe,_0x426c1e,_0x3c0458-_0x50c774._0xb27029);}return _0x52ff3d[_0x174bc5(0xab,_0x24b882._0x542d96,_0x24b882._0x232699,_0x24b882._0x5cee1a)]('\x0a')[_0xf6a719(_0x24b882._0x3ad806,0x558,_0x24b882._0x352995,0x4d4)](_0x4f607a=>_0x4f607a[_0xf6a719(0x3d1,0x41b,0x4ca,0x46f)](_0x174bc5(0x1c8,0x6b,0xec,0x115)))[_0xf6a719(_0x24b882._0x1562a6,0x446,_0x24b882._0x54f220,0x464)](_0xd72148=>_0xd72148[_0xf6a719(0x5ed,0x5cc,0x45a,0x543)](0x5)[_0xf6a719(0x688,0x57a,0x62b,0x636)]())[_0x174bc5(_0x24b882._0x2b6335,0x5d,_0x24b882._0xabe3de,_0x24b882._0x7edd8c)]('\x0a')['trim']();}function readString(_0x8eda51){const _0x3b4072={_0x5203da:0x49,_0x429157:0xe8,_0x5bb9da:0x41e,_0x2dfac4:0x4c0,_0xec0dd7:0x348,_0x426db4:0x3e3},_0x554da3={_0x25ac95:0x5f},_0x1b2fd1={_0x31254b:0x115};function _0x2ed1d3(_0x497463,_0x2cf718,_0x2f9f30,_0x161609){return _0x551389(_0x497463-0x96,_0x497463-0xac,_0x161609,_0x161609-_0x1b2fd1._0x31254b);}function _0x50a54c(_0x509e5a,_0x2ddd53,_0x30ab82,_0x24ea64){return _0xf0dc29(_0x2ddd53- -0x3f1,_0x2ddd53-0x9b,_0x30ab82,_0x24ea64-_0x554da3._0x25ac95);}return typeof _0x8eda51===_0x50a54c(-_0x3b4072._0x5203da,-_0x3b4072._0x429157,-0x117,-0xd)&&_0x8eda51[_0x2ed1d3(_0x3b4072._0x5bb9da,_0x3b4072._0x2dfac4,_0x3b4072._0xec0dd7,_0x3b4072._0x426db4)]>0x0?_0x8eda51:void 0x0;}function extractReasoningDetails(_0x5ea751){const _0x1acc23={_0x264a42:0x1e,_0x571847:0x12f,_0x58c509:0x226,_0x31606d:0x306,_0x42144d:0x2e0,_0x109bb9:0x335,_0x32aa55:0x4ab,_0x1184dd:0x41a,_0x5ec7a2:0x40a},_0x1e3d46={_0x48b771:0x26},_0x4d54a5={_0x376360:0x3f,_0x16f267:0x89,_0x3cae87:0x168,_0x1fc72b:0x40,_0x415ab6:0x1c8,_0x48c5f5:0x1ad,_0x183355:0x173},_0x31939d={_0x17cb0d:0x4d};if(!Array[_0x3c4d47(0x40,0x9b,-_0x1acc23._0x264a42,_0x1acc23._0x571847)](_0x5ea751))return void 0x0;function _0x162e72(_0x530fbd,_0x4a5228,_0x4e321b,_0x30302c){return _0xf0dc29(_0x4e321b-_0x31939d._0x17cb0d,_0x4a5228-0xfd,_0x4a5228,_0x30302c-0xa6);}const _0x5484d0=_0x5ea751[_0x162e72(0x2da,0x22d,0x2be,_0x1acc23._0x58c509)](_0xf3dcae=>{const _0x1aaefb={_0x53f67b:0x1d6,_0xa6da51:0xc8},_0x79b696={_0x19240f:0x48};if(!_0xf3dcae||typeof _0xf3dcae!=='object')return[];const _0x4ee3a2=_0xf3dcae;function _0x4c0677(_0x53af6a,_0x461e30,_0x305e57,_0x9f92de){return _0x3c4d47(_0x9f92de-0x1fd,_0x461e30-_0x79b696._0x19240f,_0x461e30,_0x9f92de-0xa6);}if(typeof _0x4ee3a2[_0x4c0677(-0x3e,0x48,_0x4d54a5._0x376360,_0x4d54a5._0x16f267)]==='string')return[_0x4ee3a2[_0x4c0677(_0x4d54a5._0x3cae87,0x7b,_0x4d54a5._0x1fc72b,_0x4d54a5._0x16f267)]];if(typeof _0x4ee3a2[_0x40ba62(0xfe,_0x4d54a5._0x415ab6,_0x4d54a5._0x48c5f5,0x34)]==='string')return[_0x4ee3a2[_0x4c0677(0x221,0x232,_0x4d54a5._0x183355,0x1e4)]];function _0x40ba62(_0x135146,_0x30b348,_0x31ff6c,_0x3c5a6a){return _0x3c4d47(_0x135146-0x117,_0x30b348-_0x1aaefb._0x53f67b,_0x30b348,_0x3c5a6a-_0x1aaefb._0xa6da51);}return[];});function _0x3c4d47(_0x143263,_0x4c4a54,_0x334985,_0x47248f){return _0xf0dc29(_0x143263- -0x35e,_0x4c4a54-_0x1e3d46._0x48b771,_0x334985,_0x47248f-0x2);}return _0x5484d0[_0x162e72(0x215,_0x1acc23._0x31606d,_0x1acc23._0x42144d,_0x1acc23._0x109bb9)]>0x0?_0x5484d0[_0x162e72(_0x1acc23._0x32aa55,_0x1acc23._0x1184dd,0x3c5,_0x1acc23._0x5ec7a2)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x21c21c){const _0x4ab03f={_0x57f29e:0x582,_0x1462fe:0x3c6,_0x54e1dd:0x166,_0x4a357f:0x93,_0x5b1956:0xb4},_0x4464f9={_0x450975:0x381},_0x1a8700={_0x238cf0:0x114,_0x58998f:0xca};function _0x4aaec0(_0x138ff6,_0x2e82fb,_0x28da3d,_0xe5ee38){return _0xf0dc29(_0xe5ee38-_0x1a8700._0x238cf0,_0x2e82fb-_0x1a8700._0x58998f,_0x138ff6,_0xe5ee38-0xa3);}function _0x50c01a(_0x448946,_0x56618e,_0x1ff082,_0x3eef94){return _0x551389(_0x448946-0x1b2,_0x3eef94- -_0x4464f9._0x450975,_0x448946,_0x3eef94-0xa2);}return extractReasoningDetails(_0x21c21c?.[_0x4aaec0(0x553,_0x4ab03f._0x57f29e,_0x4ab03f._0x1462fe,0x49d)])??readString(_0x21c21c?.[_0x50c01a(-0x149,-_0x4ab03f._0x54e1dd,-_0x4ab03f._0x4a357f,-_0x4ab03f._0x5b1956)])??readString(_0x21c21c?.['reasoning_content'])??readString(_0x21c21c?.['reasoning_text'])??'';}function _0x551389(_0x3c3fc8,_0xbc852d,_0x2bfdc4,_0x2372c6){return _0x5b12(_0xbc852d-0x1af,_0x2bfdc4);}var OpenAiChatCompletionsStreamParser=class{[_0x551389(0x3ed,0x32f,0x2ec,0x25b)]=[];['request'];['textParts']=[];['toolCallsByIndex']=new Map();['toolCallOrder']=[];[_0x551389(0x460,0x3a7,0x2d8,0x32b)]=new Set();[_0xf0dc29(0x343,0x408,0x361,0x33f)]='';[_0x551389(0x323,0x38a,0x451,0x363)]=_0x551389(0x3c6,0x347,0x36c,0x2f2);[_0xf0dc29(0x1e4,0x2b1,0x1b0,0x28f)];constructor(_0x3027b9){const _0x13d31a={_0x3753ed:0xfd,_0x37a25c:0x122},_0x493529={_0x2f3c06:0x30f,_0x473c08:0x6b};function _0x443551(_0x1e1927,_0x58d597,_0x855c62,_0x4ced1e){return _0xf0dc29(_0x4ced1e- -_0x493529._0x2f3c06,_0x58d597-0x1ef,_0x58d597,_0x4ced1e-_0x493529._0x473c08);}this[_0x443551(-0xd0,-_0x13d31a._0x3753ed,-_0x13d31a._0x37a25c,-0x54)]=_0x3027b9;}['consumeSseEvent'](_0x3de7df){const _0x598be3={_0x2aa130:0x3d9,_0x323ac8:0x3ed,_0x488876:0x35f,_0xc0f07:0x3f0,_0x59b0f1:0x481,_0x16bfde:0x5c9,_0x21308c:0x510,_0x2ba844:0x49d,_0x1f1f34:0x3c6,_0x3c3713:0x261,_0x195167:0x33e,_0xff405:0x30d,_0xc97afd:0x264,_0x358d48:0x308,_0x5f2144:0x2f3,_0x2627d9:0x312},_0x4dba89={_0x4f33b2:0x7b},_0x1daee4={_0x4ad6cb:0x12b,_0x4197fe:0x61,_0x135627:0x1a9};function _0x2c4077(_0x1a77b5,_0x5bc460,_0x4d1611,_0x5437b2){return _0x551389(_0x1a77b5-_0x1daee4._0x4ad6cb,_0x1a77b5- -_0x1daee4._0x4197fe,_0x5bc460,_0x5437b2-_0x1daee4._0x135627);}const _0x49c23e=readSseData(_0x3de7df);if(_0x49c23e[_0x53d0ec(_0x598be3._0x2aa130,_0x598be3._0x323ac8,0x431,_0x598be3._0x488876)]===0x0||_0x49c23e===_0x53d0ec(0x33e,_0x598be3._0xc0f07,0x334,_0x598be3._0x59b0f1))return[];function _0x53d0ec(_0x51d7ad,_0x2a044f,_0x487878,_0x1e1e33){return _0x551389(_0x51d7ad-0xf2,_0x2a044f-_0x4dba89._0x4f33b2,_0x487878,_0x1e1e33-0x30);}const _0x11f165=JSON[_0x53d0ec(0x413,0x4e7,_0x598be3._0x16bfde,_0x598be3._0x21308c)](_0x49c23e);return this[_0x53d0ec(0x3f9,_0x598be3._0x2ba844,_0x598be3._0x1f1f34,0x4f7)]=_0x11f165['id']??this['responseId'],this[_0x53d0ec(_0x598be3._0x3c3713,_0x598be3._0x195167,0x265,_0x598be3._0xff405)]=_0x11f165['usage']??this[_0x2c4077(0x262,_0x598be3._0xc97afd,0x178,_0x598be3._0x358d48)],this[_0x2c4077(0x385,_0x598be3._0x5f2144,0x306,_0x598be3._0x2627d9)](_0x11f165);}['finish'](){const _0x24dfb7={_0x3994eb:0x5b0,_0x1c86b4:0x46c,_0x132de7:0x437,_0x2ea28e:0x3bb,_0x306040:0x4e7,_0x4799f1:0x4fd,_0x6d35fc:0x44c,_0x24f061:0x8b,_0x1fc7b1:0x143,_0x289c85:0x157,_0x380791:0x48f,_0x28b16a:0x528,_0x53ce94:0x22,_0x3a6e1a:0x113,_0x38ad5a:0x6a,_0x2c3e4c:0x525,_0xee4d5e:0x597,_0x485477:0x5c3,_0x9dc81d:0xb2,_0x56b943:0x219,_0x540b43:0x137},_0x1628da={_0x37d3ea:0x15e,_0x4b4d1b:0x4c1,_0x5e1b49:0x18c},_0x3b31b9={_0x4cd095:0x1ea,_0x269115:0xe4};function _0x485a5b(_0x14caa7,_0x1d5b3c,_0x3f61a,_0x44b4f5){return _0xf0dc29(_0x14caa7-0x1a4,_0x1d5b3c-_0x3b31b9._0x4cd095,_0x1d5b3c,_0x44b4f5-_0x3b31b9._0x269115);}this[_0x485a5b(0x525,_0x24dfb7._0x3994eb,_0x24dfb7._0x1c86b4,0x467)][_0x485a5b(_0x24dfb7._0x132de7,0x3ba,_0x24dfb7._0x2ea28e,0x357)]>0x0&&(this['stopReason']='tool_use');const _0x2550ae=isUserVisibleReasoning(this['request'])?this['reasoningParts']['join'](''):void 0x0;function _0x46f617(_0x4c5035,_0x11e2e9,_0x2495c3,_0x3f1850){return _0x551389(_0x4c5035-_0x1628da._0x37d3ea,_0x3f1850- -_0x1628da._0x4b4d1b,_0x2495c3,_0x3f1850-_0x1628da._0x5e1b49);}return{'id':this[_0x485a5b(_0x24dfb7._0x306040,_0x24dfb7._0x4799f1,0x565,_0x24dfb7._0x6d35fc)]||_0x46f617(-_0x24dfb7._0x24f061,-_0x24dfb7._0x1fc7b1,-_0x24dfb7._0x289c85,-0x10f)+Date[_0x485a5b(0x51b,_0x24dfb7._0x380791,0x609,_0x24dfb7._0x28b16a)](),'content':createContentBlocks(this['textParts'][_0x46f617(_0x24dfb7._0x53ce94,-_0x24dfb7._0x3a6e1a,-0x67,-_0x24dfb7._0x38ad5a)](''),this[_0x485a5b(_0x24dfb7._0x2c3e4c,_0x24dfb7._0xee4d5e,0x56b,_0x24dfb7._0x485477)],_0x2550ae),'stopReason':this[_0x46f617(-_0x24dfb7._0x9dc81d,-_0x24dfb7._0x56b943,-0x8a,-_0x24dfb7._0x540b43)],'usage':createUsage(this['usage'])};}[_0xf0dc29(0x307,0x278,0x320,0x294)](_0xbd240d){const _0x21de90={_0x20e365:0x2ed,_0x526603:0x2ef,_0x288690:0x4a4,_0x4e46d9:0xd2,_0x22ac44:0x55,_0x168ca1:0x3,_0x254126:0xaf,_0x18807a:0x176,_0x9764db:0xd0,_0x5460cf:0x205,_0x26438e:0x111,_0x5cdc3a:0x4e3,_0x391487:0x33b,_0x20cd27:0x391,_0x55bc27:0x3e8,_0x25e170:0x1da,_0x29e29b:0x14c,_0x353547:0x1ba,_0x40dd7f:0x41f,_0x38f351:0x4c5,_0x54d77f:0x33d,_0x18a860:0x3a1,_0x48e550:0x1ec,_0x4422e2:0x1a6,_0x391d79:0x244,_0x5bf0c9:0x12c,_0x2708f3:0x84,_0x2337bc:0x300,_0x4b9404:0x3cd,_0x191fed:0x320,_0x4ad78c:0x2c8,_0x1760dc:0x338,_0x4554b0:0x30d,_0x1c6e72:0x3e6,_0x558992:0x3f7,_0x47149f:0x277,_0xfa8e32:0x2e5,_0x51438e:0x2b7,_0x2515d5:0x30e,_0x31b452:0x3df,_0x1681ae:0x297,_0x48c6d5:0x2b1,_0x4d5451:0xcf,_0x486661:0xd2,_0x5b8200:0x440,_0x766e54:0x1af,_0x4f988c:0x2d4,_0x951a1a:0x358,_0x35ed7c:0x3b7,_0x5f062e:0x28b,_0x1cded6:0x364,_0x2e6bc0:0x37c,_0x1f93e4:0x329,_0x507a38:0x469,_0x4d5b80:0x44d,_0x2b23e0:0x500,_0xf3bb55:0x17d,_0x3e4be9:0x20b,_0x5a6fa0:0x1ab,_0x255888:0x3bf,_0x4d549b:0x496,_0x42976a:0x464,_0x45051b:0xe4,_0x568a58:0x215,_0x2ff393:0x1ac,_0x469528:0x2d8,_0x5b37d8:0x2da,_0x575290:0x307,_0x444d9f:0x23b,_0x4829a0:0x25d,_0x268b0d:0x323,_0x30dcc4:0x37a,_0x5f2636:0x1b8,_0x26e242:0x227,_0x421600:0xd7,_0x161d84:0x1d3,_0xa90ea7:0x307,_0x26985b:0x228,_0x2e5d40:0x321,_0x218d6f:0x34f,_0x30d176:0x1fa,_0x4d58a3:0x320,_0x42a5f4:0x420,_0x32e1e3:0x39a,_0x5a90b9:0x349,_0x309f53:0x39e,_0x591813:0x32e,_0xb34eb9:0x31f,_0x2a5768:0x3b6,_0x23feaf:0x3bb},_0x209fa6={_0x32b9f9:0x58,_0x41d5c8:0x17d};function _0x2dc8d6(_0x16ab35,_0x65cb2d,_0x30f9f7,_0x6ee41b){return _0x551389(_0x16ab35-0x44,_0x16ab35- -0x72,_0x65cb2d,_0x6ee41b-0x82);}const _0x2784f8=[];for(const _0x574d5d of _0xbd240d[_0x2dc8d6(0x3c2,_0x21de90._0x20e365,_0x21de90._0x526603,_0x21de90._0x288690)]??[]){const _0x2da91a=_0x574d5d[_0x1be331(_0x21de90._0x4e46d9,_0x21de90._0x22ac44,_0x21de90._0x168ca1,_0x21de90._0x254126)],_0xba0a27=extractChatCompletionReasoningDelta(_0x2da91a);_0xba0a27[_0x1be331(_0x21de90._0x18807a,0x93,0x11e,0xb9)]>0x0&&(this[_0x1be331(0x133,_0x21de90._0x9764db,_0x21de90._0x5460cf,_0x21de90._0x26438e)][_0x2dc8d6(0x420,0x358,_0x21de90._0x5cdc3a,_0x21de90._0x391487)](_0xba0a27),isUserVisibleReasoning(this[_0x2dc8d6(0x328,0x2a2,0x417,0x248)])&&_0x2784f8['push']({'type':'openai_reasoning_delta','contentIndex':0x0,'delta':_0xba0a27,'itemId':(this['responseId']||_0x2dc8d6(0x38d,_0x21de90._0x20cd27,_0x21de90._0x55bc27,0x38b))+_0x1be331(_0x21de90._0x25e170,_0x21de90._0x29e29b,_0x21de90._0x353547,0x193),'outputIndex':0x0}));const _0x50b923=typeof _0x2da91a?.[_0x2dc8d6(_0x21de90._0x40dd7f,_0x21de90._0x38f351,_0x21de90._0x54d77f,_0x21de90._0x18a860)]===_0x1be331(_0x21de90._0x48e550,_0x21de90._0x4422e2,_0x21de90._0x391d79,0x18e)?_0x2da91a['content']:typeof _0x2da91a?.['refusal']===_0x1be331(0x1ec,0x2d1,0x19f,0x12e)?_0x2da91a[_0x1be331(_0x21de90._0x5bf0c9,0x14d,0x138,_0x21de90._0x2708f3)]:'';_0x50b923[_0x2dc8d6(_0x21de90._0x2337bc,_0x21de90._0x4b9404,_0x21de90._0x191fed,0x30e)]>0x0&&(this[_0x1be331(0x25f,_0x21de90._0x4ad78c,_0x21de90._0x1760dc,0x205)][_0x1be331(0x296,0x23a,0x37a,_0x21de90._0x4554b0)](_0x50b923),_0x2784f8[_0x2dc8d6(0x420,0x4fd,_0x21de90._0x1c6e72,_0x21de90._0x558992)]({'type':_0x1be331(_0x21de90._0x47149f,_0x21de90._0xfa8e32,0x226,_0x21de90._0x51438e),'index':0x0,'text':_0x50b923}));for(const _0x1d8a73 of _0x2da91a?.[_0x2dc8d6(0x39e,_0x21de90._0x2515d5,_0x21de90._0x31b452,0x317)]??[]){const _0x441df9=_0x1d8a73[_0x2dc8d6(_0x21de90._0x1681ae,0x1cc,0x28a,_0x21de90._0x48c6d5)]??0x0;let _0x56e729=this[_0x1be331(0x14a,0x12a,_0x21de90._0x4d5451,_0x21de90._0x486661)]['get'](_0x441df9);!_0x56e729&&(_0x56e729={'id':_0x1d8a73['id']??_0x2dc8d6(0x409,0x3ea,0x319,_0x21de90._0x5b8200)+_0x441df9,'type':'function','function':{'name':_0x1d8a73['function']?.[_0x1be331(0x235,0x285,0x2f9,_0x21de90._0x766e54)]??'','arguments':''}},this[_0x2dc8d6(_0x21de90._0x4f988c,_0x21de90._0x951a1a,0x33b,_0x21de90._0x35ed7c)][_0x2dc8d6(0x31d,_0x21de90._0x5f062e,_0x21de90._0x1cded6,0x34a)](_0x441df9,_0x56e729),this[_0x2dc8d6(0x3ee,_0x21de90._0x2e6bc0,_0x21de90._0x1f93e4,_0x21de90._0x507a38)][_0x2dc8d6(0x420,0x4f8,_0x21de90._0x4d5b80,_0x21de90._0x2b23e0)](_0x56e729));_0x1d8a73['id']&&(_0x56e729['id']=_0x1d8a73['id']);_0x1d8a73[_0x1be331(_0x21de90._0xf3bb55,_0x21de90._0x3e4be9,_0x21de90._0x5a6fa0,0x157)]?.[_0x2dc8d6(_0x21de90._0x255888,0x46d,_0x21de90._0x4d549b,_0x21de90._0x42976a)]&&(_0x56e729[_0x1be331(0x17d,_0x21de90._0x45051b,0xc2,0x1b8)][_0x1be331(0x235,_0x21de90._0x568a58,0x203,_0x21de90._0x2ff393)]=_0x1d8a73['function'][_0x2dc8d6(_0x21de90._0x255888,0x2d7,_0x21de90._0x469528,_0x21de90._0x5b37d8)]);!this['toolUseStartEmitted']['has'](_0x441df9)&&_0x56e729[_0x2dc8d6(_0x21de90._0x575290,0x245,0x266,_0x21de90._0x444d9f)]['name'][_0x1be331(_0x21de90._0x4829a0,0x26a,_0x21de90._0x268b0d,0x32b)]()[_0x2dc8d6(_0x21de90._0x2337bc,0x3c1,_0x21de90._0x30dcc4,0x2db)]>0x0&&(_0x2784f8['push']({'type':'tool_use_delta','id':_0x56e729['id'],'index':_0x441df9,'name':_0x56e729[_0x1be331(_0x21de90._0xf3bb55,0x123,_0x21de90._0x5f2636,0x95)]['name']}),this[_0x1be331(0x1ab,_0x21de90._0x26e242,0x106,0x104)][_0x1be331(0x15f,_0x21de90._0x421600,_0x21de90._0x161d84,0x163)](_0x441df9));const _0x23fc63=_0x1d8a73[_0x2dc8d6(_0x21de90._0xa90ea7,_0x21de90._0x26985b,0x372,_0x21de90._0x2e5d40)]?.[_0x2dc8d6(0x3df,0x335,_0x21de90._0x218d6f,0x484)]??'';_0x23fc63[_0x1be331(0x176,_0x21de90._0x30d176,0x17b,_0x21de90._0x4d5451)]>0x0&&(_0x56e729[_0x2dc8d6(0x307,_0x21de90._0x4d58a3,0x336,0x348)]['arguments']+=_0x23fc63,_0x2784f8[_0x2dc8d6(_0x21de90._0x42a5f4,0x35f,_0x21de90._0x32e1e3,0x357)]({'type':'tool_use_delta','id':_0x56e729['id'],'index':_0x441df9,'inputDelta':_0x23fc63}));}_0x574d5d[_0x2dc8d6(_0x21de90._0x526603,0x27e,_0x21de90._0x5a90b9,0x2a3)]===_0x2dc8d6(_0x21de90._0x309f53,_0x21de90._0x591813,_0x21de90._0xb34eb9,_0x21de90._0x2a5768)&&(this[_0x2dc8d6(0x318,_0x21de90._0x23feaf,0x408,0x291)]='tool_use');}function _0x1be331(_0x26a3b3,_0x2bb558,_0x3384a0,_0x2ae2b5){return _0xf0dc29(_0x26a3b3- -0x11d,_0x2bb558-_0x209fa6._0x32b9f9,_0x3384a0,_0x2ae2b5-_0x209fa6._0x41d5c8);}return _0x2784f8;}},OpenAiResponsesStreamParser=class{[_0x551389(0x2a0,0x308,0x3ee,0x35a)]=new Map();[_0x551389(0x3d8,0x31c,0x2b6,0x2c9)];['outputIndexToCallId']=new Map();['outputIndexToReasoningId']=new Map();[_0x551389(0x2d9,0x2ed,0x3b5,0x311)]=new Map();[_0xf0dc29(0x2bb,0x326,0x25b,0x1cd)];[_0xf0dc29(0x218,0x2f8,0x2ff,0x188)]=new Map();['toolCalls']=new Map();constructor(_0x57a9f5){const _0x113866={_0xdbfb51:0xe5},_0x2e17c7={_0x53d24c:0x12b};function _0x34ec61(_0xcad3d9,_0x5e5f41,_0x5a9bad,_0x544873){return _0xf0dc29(_0x544873- -0x294,_0x5e5f41-_0x2e17c7._0x53d24c,_0x5a9bad,_0x544873-0x180);}this[_0x34ec61(-0x3d,0xbd,_0x113866._0xdbfb51,0x27)]=_0x57a9f5;}[_0xf0dc29(0x1ec,0x252,0x27c,0x1e7)](_0x24001a){const _0x3b5a20={_0x23c138:0x1ef,_0xc58e73:0x38e,_0x3566d2:0x22c,_0x550286:0x230,_0x2a4233:0x3af,_0x1a014c:0x3ad,_0x1a53e3:0x37b,_0x48a10a:0x171,_0x1dd1e6:0x26e,_0x9ab9d7:0xa5,_0x4c8439:0xf6,_0x104586:0x34e,_0x5c0b07:0x284,_0x2ecb6d:0x364,_0x9ae9c6:0x3bf,_0x3833dd:0x3bb,_0xb4c870:0x3d4,_0x49ccaa:0x59,_0x482955:0x6a,_0x320206:0x4b},_0x3a17b1={_0x2698df:0x178,_0x306f1e:0x27c},_0x5098b1={_0x5afbc7:0x160,_0x1dcb92:0x1a8};function _0x3c51ab(_0x2dd663,_0x488581,_0x116066,_0x563420){return _0x551389(_0x2dd663-_0x5098b1._0x5afbc7,_0x488581- -0x27,_0x116066,_0x563420-_0x5098b1._0x1dcb92);}function _0x4d4b43(_0x854008,_0x9bb3f7,_0x6c35c1,_0x54dfbd){return _0x551389(_0x854008-_0x3a17b1._0x2698df,_0x54dfbd- -_0x3a17b1._0x306f1e,_0x6c35c1,_0x54dfbd-0x99);}const _0xec54db=_0x24001a[_0x4d4b43(0x135,0x182,0x23e,_0x3b5a20._0x23c138)]('\x0a'),_0x42f346=_0xec54db[_0x3c51ab(0x38e,_0x3b5a20._0xc58e73,0x3d7,0x479)](_0x16edfa=>_0x16edfa[_0x3c51ab(0x380,0x2a9,0x265,0x2f9)](_0x3c51ab(0x3ad,0x305,0x2a6,0x385)))?.[_0x3c51ab(0x435,0x37d,0x42a,0x393)](0x6)[_0x4d4b43(0x141,_0x3b5a20._0x3566d2,0x1bf,0x1dd)](),_0x1966db=_0xec54db[_0x3c51ab(_0x3b5a20._0x550286,0x30e,_0x3b5a20._0x2a4233,0x294)](_0x45d17b=>_0x45d17b[_0x3c51ab(0x21e,0x2a9,0x324,0x396)](_0x3c51ab(0x48e,0x471,0x39d,0x50c)))[_0x4d4b43(0xe,0x10b,-0x40,0x49)](_0x468d3a=>_0x468d3a[_0x3c51ab(0x3bc,0x37d,0x414,0x2ad)](0x5)[_0x3c51ab(0x49f,0x470,0x3ec,0x3c1)]())[_0x3c51ab(_0x3b5a20._0x1a014c,0x430,_0x3b5a20._0x1a53e3,0x4cf)]('\x0a')[_0x4d4b43(_0x3b5a20._0x48a10a,_0x3b5a20._0x1dd1e6,0x13c,0x1dd)]();if(_0x1966db[_0x4d4b43(0x32,_0x3b5a20._0x9ab9d7,0x67,_0x3b5a20._0x4c8439)]===0x0||_0x1966db===_0x3c51ab(0x3a5,_0x3b5a20._0x104586,_0x3b5a20._0x5c0b07,_0x3b5a20._0x2ecb6d))return[];const _0x4a7b23=JSON['parse'](_0x1966db);return this[_0x3c51ab(0x41d,_0x3b5a20._0x9ae9c6,_0x3b5a20._0x3833dd,_0x3b5a20._0xb4c870)](_0x42f346??String(_0x4a7b23[_0x4d4b43(-_0x3b5a20._0x49ccaa,-_0x3b5a20._0x482955,0x46,_0x3b5a20._0x320206)]??''),_0x4a7b23);}[_0xf0dc29(0x2cd,0x397,0x373,0x255)](_0x14f3d5){const _0x342508={_0x1856e7:0x62a,_0x5d652b:0x5b3,_0x43b636:0x626,_0x6030c8:0x5d2,_0x326b09:0x494,_0x1b2d75:0x53a,_0x4c91fb:0x450},_0x371ccc={_0x489d28:0x1c0},_0x3c65d6={_0x5ecbe3:0x264,_0x9d75cd:0x1a5,_0x19a958:0x11a};function _0x140ca6(_0x3aa545,_0x540bf3,_0xb618e1,_0xb47d73){return _0xf0dc29(_0x540bf3- -_0x3c65d6._0x5ecbe3,_0x540bf3-_0x3c65d6._0x9d75cd,_0x3aa545,_0xb47d73-_0x3c65d6._0x19a958);}function _0x3aa347(_0x2b5d1a,_0x505de0,_0x13b972,_0x33cf05){return _0xf0dc29(_0x505de0-0x2ac,_0x505de0-_0x371ccc._0x489d28,_0x13b972,_0x33cf05-0x12a);}return this[_0x3aa347(_0x342508._0x1856e7,_0x342508._0x5d652b,_0x342508._0x43b636,_0x342508._0x6030c8)](String(_0x14f3d5[_0x3aa347(0x435,_0x342508._0x326b09,_0x342508._0x1b2d75,_0x342508._0x4c91fb)]??''),_0x14f3d5);}[_0x551389(0x244,0x315,0x254,0x2e5)](){const _0x251e23={_0x23701d:0x13a,_0x2dfbca:0x3a,_0x41a8f2:0x61,_0x561cd2:0x16,_0x214350:0x2e,_0x38a190:0x9e,_0x2b94eb:0x88,_0x2748ac:0x11,_0xc1c9ec:0x3b6},_0x42a949={_0x27edf7:0x3a},_0x2516c={_0x2095d1:0x316,_0x2c615e:0x11},_0x328c0d=this[_0x43555(-0xd9,-0x171,-0x8b,-_0x251e23._0x23701d)]??{'id':_0x43555(_0x251e23._0x2dfbca,-0x11,0x54,0x47)+Date[_0x43555(_0x251e23._0x41a8f2,_0x251e23._0x561cd2,_0x251e23._0x214350,0x92)](),'object':'response','status':_0x43555(-_0x251e23._0x38a190,-_0x251e23._0x2b94eb,-_0x251e23._0x2748ac,-0x14),'output':this[_0x21b962(0x434,0x335,_0x251e23._0xc1c9ec,0x377)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x43555(_0x1686bc,_0x4c144a,_0x18521b,_0x17f103){return _0xf0dc29(_0x1686bc- -_0x2516c._0x2095d1,_0x4c144a-0xe5,_0x4c144a,_0x17f103-_0x2516c._0x2c615e);}function _0x21b962(_0x42a4a1,_0x44d92b,_0x5e2590,_0x2f8f4d){return _0xf0dc29(_0x5e2590-0x170,_0x44d92b-0xe5,_0x44d92b,_0x2f8f4d-_0x42a949._0x27edf7);}return parseResponsesResponse(_0x328c0d,this['request']);}['isDone'](){const _0x3d5b13={_0x2bd1e7:0x68,_0x16dbf6:0x6b,_0x60680e:0x62},_0x3e3f72={_0x10a55d:0xd};function _0x3f8e8e(_0xde1e19,_0x2c2263,_0x45e1ff,_0x3b19e3){return _0x551389(_0xde1e19-0x19b,_0xde1e19- -0x2ca,_0x2c2263,_0x3b19e3-_0x3e3f72._0x10a55d);}return this[_0x3f8e8e(0x52,_0x3d5b13._0x2bd1e7,_0x3d5b13._0x16dbf6,_0x3d5b13._0x60680e)]!==void 0x0;}[_0xf0dc29(0x307,0x257,0x30b,0x2cb)](_0x54ba28,_0x22cc92){const _0x3e4704={_0x56abb2:0x88,_0xf41fbc:0x2,_0x3b5a53:0x115,_0x2ff04a:0x1e3,_0x328a85:0xf1,_0x1ec85e:0xb8,_0x5d46ca:0xd8,_0x1e2de1:0xab,_0x3f989c:0x20d,_0x3f209a:0x11,_0x3ed69c:0x133,_0x38698e:0x267,_0x85dda2:0x1e8,_0xb75c44:0x2b0,_0x3462e3:0x269,_0xf6ac15:0x2bd,_0x2c0ec0:0x285,_0x31c52e:0x62,_0x513417:0xac,_0xc3d969:0x101,_0x49051e:0x2f4,_0x310a74:0x211,_0x52795e:0x1c1,_0x4394ae:0x52,_0x434c46:0x1fc,_0x696c48:0x49,_0x356c93:0x11e,_0x1a23a5:0x9a,_0x59e5ef:0x1de,_0x4b5cd6:0x1ea,_0x31802a:0x26a,_0x416287:0x20,_0x5f00f9:0x2e,_0x46c6e5:0x164,_0x2ca11f:0x10e,_0x4fbfcc:0x173,_0x437667:0xc3,_0x4fbcf2:0x1c8,_0x1c8a96:0x68,_0x1a875a:0x124,_0x3369c9:0x25d,_0xaba9b2:0x1ed,_0x59dba2:0x1e7,_0x53ba39:0x199,_0x159bab:0x64,_0x379798:0x190,_0x3d5f4a:0x174,_0x4da22b:0xc1,_0x3bfe9b:0x31,_0x20c2cb:0x10,_0x12ae46:0xc3,_0x589a5a:0x1d,_0x66d068:0x152,_0x53446f:0x183,_0xd98035:0x60,_0x132d95:0x206,_0x768b21:0x9c,_0x550660:0x86,_0x3a7da8:0x4d,_0x4e5ba4:0x159,_0x2d0179:0x190,_0x390065:0x10f,_0x5247e3:0x32,_0x3232a6:0x1bd,_0x49fb1e:0x23c,_0x4943a0:0x1c0,_0x353a41:0xac,_0x223245:0x72,_0x2fd266:0x289,_0x2eb132:0x109,_0x20b7a5:0x14c,_0x5160af:0x93,_0x35118b:0xb0,_0x1672aa:0x1b4,_0x583b29:0xa2,_0x2ed2ed:0xd8,_0x3824bb:0x157,_0x76a14f:0x87,_0x580ad9:0xc,_0x11f4b8:0x111,_0x4e2c1f:0x9,_0x1846e6:0x81,_0xc5fd41:0x58,_0x54d4ef:0x132,_0x11d740:0x2e5,_0x120fac:0x299,_0x5361b7:0x250,_0x20c91b:0x178,_0x498f1e:0x8c,_0x446534:0x64,_0x13bf7d:0x193,_0x4d7b64:0x11a,_0x366b17:0x13b,_0x4d9d54:0xb2,_0x4012b6:0x1cc,_0x10b677:0x187,_0xb74cd1:0x226,_0x546c03:0x78,_0x1dd8eb:0xf9,_0x16ef6e:0x138,_0x1da2dc:0x3c,_0x20adad:0xc3,_0x14c268:0x1c1,_0x387f9c:0x135,_0x5b381a:0x39,_0x535ed8:0x36,_0x115193:0x1a3,_0x47f193:0x260,_0x1d34e4:0x2af,_0x2d1cae:0x177,_0x585b08:0x2c5,_0x29bc94:0x2f8,_0x195ea4:0x179,_0x143340:0x1a1,_0x2fa443:0x206,_0x9a3a82:0xbb,_0x5e388a:0x1e6,_0x3bf9e0:0x1dd,_0x30b60f:0x1ef,_0x2c678e:0x22d,_0x204b38:0x20e,_0x1e4d48:0x15e,_0x1f04ec:0x126,_0x21e195:0x13a,_0x18ac1e:0x212,_0xfd2800:0xba,_0x3c7419:0x130,_0x1fd1b5:0xc2,_0x173001:0x181,_0x1c383c:0x226,_0xf4ed70:0x271,_0x4b2a1b:0x2f7,_0xf24569:0x253,_0x3fa7ab:0x236,_0x197c97:0x20a,_0x516437:0x7a,_0x5237c7:0x80,_0x58c491:0x16a,_0x784e91:0x29a,_0x525447:0x1d7,_0x4997e0:0x1f3,_0x10fd1e:0x179,_0x429037:0x1f9,_0x21da3b:0x2c3,_0x3d7b63:0x124,_0x2175c1:0x15f,_0x3c7c75:0x224,_0x544c23:0x198,_0x472afd:0x15c,_0xa574b8:0x9e,_0x3aaed5:0xd7,_0x931ba5:0x159,_0x2ac939:0x17f,_0x41f048:0xb2,_0x2dd605:0x1fb,_0x1a6ae2:0x253,_0x30a7c7:0x1a6,_0x24916f:0xce,_0x851255:0x155,_0x36ebc5:0x16c,_0x4651b4:0x18e,_0x1a2f55:0xee,_0x241d5b:0x8a,_0x2cd3ea:0x25f,_0x46682e:0x22b,_0x3fbd64:0x1fe,_0x475be3:0x1a1,_0x232406:0x297,_0x3c8a4f:0x1ac,_0x29d9cc:0x25f,_0x4f794b:0x131,_0x45a119:0x104,_0x4d8e4c:0xf9,_0x50f86a:0x15c,_0x4141a0:0xaf,_0x386ecb:0x190,_0x31a6a6:0xf2,_0x5d66a0:0x1d1,_0x206b15:0x143,_0x2259ec:0xc6,_0x542d0a:0x17c,_0x4fb243:0x92,_0x147d51:0x13e,_0x442eaf:0xe8,_0x3657b1:0xd9,_0x53e04a:0x13e,_0x5801e1:0x227,_0x318b20:0x174,_0x26b9d5:0xbf,_0x415764:0x21a,_0x4291eb:0x220,_0x2f6243:0x21a,_0x3091b8:0x1dc,_0x482ca7:0xbb,_0x55afa5:0xc3,_0x599780:0x5f,_0x1afa9f:0x209,_0x24096b:0x8b,_0x7c456c:0x10a,_0x5a537c:0x115,_0x19d46:0x51,_0x4db8ec:0x269,_0x28002c:0x1c4,_0x73ea03:0x167,_0x26951e:0x38,_0x4fb7a7:0x1e,_0xb6ceda:0x20d,_0x5b63cb:0xd5,_0x5ac42e:0xe2,_0x441812:0x5c,_0x183192:0x116,_0x580b66:0x128,_0x27c385:0xc7,_0x17a3b3:0x16,_0x5cf6a0:0x111,_0x104490:0x1a1,_0x12aa79:0x5,_0x3f08d2:0xda,_0x3b40c6:0x122,_0x565f51:0x145,_0x37bc92:0xbf,_0xe2914:0x1ab,_0x4138fb:0x1a9,_0x9a0fe4:0x123,_0x4269bb:0x55,_0x17714:0x16b,_0x4ce219:0x25b,_0x2f59e7:0x175,_0x18d6b6:0x32,_0x33deec:0x1c3,_0x5ad6a5:0x196,_0x11b918:0x26f,_0x55129e:0x17a,_0x514142:0x226,_0x4217c3:0x99,_0x1e526a:0x94,_0x526f68:0x124,_0x2a1ffb:0x1a4,_0x306fce:0x93,_0x52b8c4:0x1a3,_0x5d9af8:0x1ba,_0x58ef47:0x273,_0x4a4cda:0x24b,_0x244635:0x123,_0x543914:0x188,_0x15c20d:0xf0,_0x544b27:0x87,_0x203762:0x1eb,_0x146ae1:0x148,_0x332bb1:0x26d,_0x524cdf:0x1bc,_0x28f5d1:0x97,_0xdc9795:0x16f,_0x561359:0x1cf,_0x279a95:0x107,_0xc92264:0x61,_0x4b315e:0x2d,_0x22f58f:0x47,_0x321f16:0x1a3,_0x531e2f:0x11f,_0x1bf3b3:0x12a,_0x36e67:0x172,_0x41663e:0x115,_0x135084:0xf3,_0x6e2300:0x279,_0x2ca6e5:0x27b,_0x5625a9:0x131,_0x14fee6:0xde,_0x551476:0x1d8,_0x5dc4fa:0x237,_0xeb00f2:0xd4,_0x46b1a1:0x1da,_0x3327da:0x13d,_0x272f4c:0x142,_0x435a13:0x119,_0x4a91da:0x150,_0x4d004b:0x14b,_0x4c8a17:0x170,_0x49769f:0xd2,_0x55d463:0x2c9,_0x22cc37:0x28e,_0x2737a6:0x21b,_0x22cbb7:0x113,_0x49f7c1:0x1a7,_0x16aefb:0x1c7,_0xe89272:0x16d,_0x2bd974:0x127,_0x4146d9:0x197,_0xbfaa0:0x1c1,_0x348775:0x1da,_0x4ebc20:0x154,_0x367a9e:0x27b,_0x1cb8aa:0xf7,_0x18aa6c:0x145,_0x5787cc:0x2ce,_0x4e8fb1:0x1a3,_0x1b4647:0x281},_0x5c0120={_0x65bad0:0x168,_0x3a85bc:0xaa},_0x29478e={_0x247944:0x22b,_0x380b3e:0x1d1};function _0x3bd331(_0x157c83,_0x5f20c3,_0x42f8d9,_0x395b67){return _0x551389(_0x157c83-0x164,_0x157c83- -_0x29478e._0x247944,_0x5f20c3,_0x395b67-_0x29478e._0x380b3e);}function _0x5366bf(_0x436d63,_0x1717a0,_0x5e66d5,_0x561198){return _0xf0dc29(_0x5e66d5- -_0x5c0120._0x65bad0,_0x1717a0-_0x5c0120._0x3a85bc,_0x436d63,_0x561198-0x106);}switch(_0x54ba28){case _0x5366bf(-0x14,_0x3e4704._0x56abb2,0xd9,_0x3e4704._0xf41fbc):{const _0x3353ea=typeof _0x22cc92[_0x3bd331(_0x3e4704._0x3b5a53,0xee,0x70,0x127)]===_0x5366bf(_0x3e4704._0x2ff04a,_0x3e4704._0x328a85,0x187,0x1d6)?_0x22cc92['output_index']:0x0,_0x19ee35=typeof _0x22cc92[_0x3bd331(0xa3,0x66,_0x3e4704._0x1ec85e,0x15f)]==='string'?_0x22cc92[_0x3bd331(0xa3,_0x3e4704._0x5d46ca,0x9,0x13a)]:'';if(_0x19ee35[_0x5366bf(_0x3e4704._0x1e2de1,_0x3e4704._0x3f989c,0x12b,0xa4)]>0x0){const _0x16e83a=this[_0x3bd331(0xcc,_0x3e4704._0x3f209a,0x109,0x49)][_0x5366bf(0x208,0x212,0x130,_0x3e4704._0x3ed69c)](_0x3353ea)??[];return _0x16e83a[_0x3bd331(_0x3e4704._0x38698e,_0x3e4704._0x85dda2,_0x3e4704._0xb75c44,_0x3e4704._0x3462e3)](_0x19ee35),this['responseTextParts'][_0x5366bf(0x1c4,0x165,0x148,0xf9)](_0x3353ea,_0x16e83a),[{'type':_0x5366bf(_0x3e4704._0xf6ac15,_0x3e4704._0x2c0ec0,0x22c,0x192),'index':_0x3353ea,'text':_0x19ee35}];}break;}case _0x5366bf(_0x3e4704._0x31c52e,0x135,0x11c,0x1a5):{const _0x5a9733=typeof _0x22cc92[_0x3bd331(_0x3e4704._0x3b5a53,_0x3e4704._0x513417,_0x3e4704._0xc3d969,0x8b)]==='number'?_0x22cc92['output_index']:void 0x0,_0x49ed8b=_0x22cc92[_0x5366bf(_0x3e4704._0x49051e,0x254,_0x3e4704._0x310a74,_0x3e4704._0x52795e)];if(_0x49ed8b?.[_0x5366bf(_0x3e4704._0x4394ae,0xc2,0x80,-0x6a)]===_0x5366bf(_0x3e4704._0x434c46,_0x3e4704._0x696c48,_0x3e4704._0x356c93,_0x3e4704._0x1a23a5)&&_0x49ed8b['call_id']&&_0x49ed8b[_0x5366bf(0x295,_0x3e4704._0x59e5ef,_0x3e4704._0x4b5cd6,_0x3e4704._0x31802a)])return this[_0x5366bf(-_0x3e4704._0x416287,0xd9,0x81,-_0x3e4704._0x5f00f9)][_0x3bd331(_0x3e4704._0x46c6e5,0x1a0,0x1d0,0x165)](_0x49ed8b['call_id'],{'id':_0x49ed8b[_0x5366bf(_0x3e4704._0x2ca11f,_0x3e4704._0x4fbfcc,_0x3e4704._0x437667,0x9)],'type':_0x5366bf(_0x3e4704._0x4fbcf2,_0x3e4704._0x1c8a96,0x132,0x1f9),'function':{'name':_0x49ed8b[_0x3bd331(0x206,_0x3e4704._0x1a875a,_0x3e4704._0x3369c9,_0x3e4704._0xaba9b2)],'arguments':''}}),_0x5a9733!==void 0x0&&(this[_0x5366bf(0x232,0x227,_0x3e4704._0x59dba2,0x23f)]['set'](_0x5a9733,_0x49ed8b[_0x5366bf(_0x3e4704._0x53ba39,_0x3e4704._0x159bab,0xc3,0x178)]),this[_0x5366bf(_0x3e4704._0x379798,_0x3e4704._0x3d5f4a,_0x3e4704._0x4da22b,_0x3e4704._0x3bfe9b)]['set'](_0x49ed8b[_0x5366bf(0x36,-_0x3e4704._0x20c2cb,_0x3e4704._0x12ae46,-_0x3e4704._0x589a5a)],_0x5a9733)),[{'type':_0x5366bf(0x25c,_0x3e4704._0x66d068,0x1fb,0x248),'id':_0x49ed8b[_0x3bd331(0xdf,_0x3e4704._0x53446f,0xb8,_0x3e4704._0xd98035)],'index':_0x5a9733??0x0,'name':_0x49ed8b[_0x3bd331(_0x3e4704._0x132d95,_0x3e4704._0x53ba39,0x194,0x216)]}];if(_0x49ed8b?.[_0x3bd331(_0x3e4704._0x768b21,0x170,0x17a,0xda)]===_0x5366bf(0x59,0x10,_0x3e4704._0x550660,-_0x3e4704._0x3a7da8)&&_0x49ed8b['id']){const _0xce36f1=this['getOrCreateReasoningItem'](_0x49ed8b['id'],_0x5a9733);_0x5a9733!==void 0x0&&this[_0x5366bf(_0x3e4704._0x4e5ba4,0xca,_0x3e4704._0x2d0179,_0x3e4704._0x390065)]['set'](_0x5a9733,_0xce36f1['id']);}break;}case _0x3bd331(_0x3e4704._0x1a875a,0x116,0x97,0x154):{const _0x2d897d=typeof _0x22cc92[_0x3bd331(0xdf,0x42,0x1ba,_0x3e4704._0x5247e3)]===_0x3bd331(_0x3e4704._0x3232a6,0x21b,_0x3e4704._0x49fb1e,_0x3e4704._0x4943a0)?_0x22cc92[_0x3bd331(0xdf,0x97,_0x3e4704._0x353a41,0x1ad)]:typeof _0x22cc92[_0x3bd331(_0x3e4704._0x3b5a53,0x178,_0x3e4704._0x223245,0x1cc)]===_0x3bd331(0x1a3,0x1fd,0x1d3,0x28e)?this[_0x5366bf(_0x3e4704._0x2fd266,0x1e5,0x1e7,_0x3e4704._0x2eb132)][_0x3bd331(_0x3e4704._0x20b7a5,0x215,_0x3e4704._0x5160af,_0x3e4704._0x35118b)](_0x22cc92[_0x3bd331(0x115,_0x3e4704._0x1672aa,0x5d,_0x3e4704._0x583b29)]):void 0x0,_0x1b322b=typeof _0x22cc92[_0x5366bf(_0x3e4704._0x2ed2ed,_0x3e4704._0x3824bb,_0x3e4704._0x76a14f,0x158)]===_0x3bd331(0x1bd,0x12a,_0x3e4704._0x59e5ef,0xcf)?_0x22cc92[_0x3bd331(0xa3,_0x3e4704._0x580ad9,0x14b,0x112)]:'',_0x390d88=_0x2d897d?this[_0x5366bf(_0x3e4704._0x11f4b8,_0x3e4704._0x4e2c1f,_0x3e4704._0x1846e6,-0xb)]['get'](_0x2d897d):void 0x0;if(_0x390d88&&_0x1b322b['length']>0x0)return _0x390d88[_0x5366bf(0x1dc,_0x3e4704._0xc5fd41,_0x3e4704._0x54d4ef,0xeb)][_0x3bd331(0x226,0x2c3,_0x3e4704._0x11d740,_0x3e4704._0x120fac)]+=_0x1b322b,[{'type':_0x3bd331(0x217,0x23f,_0x3e4704._0x5361b7,_0x3e4704._0x20c91b),'id':_0x390d88['id'],'index':this[_0x3bd331(0xdd,_0x3e4704._0x498f1e,_0x3e4704._0x446534,0x18)][_0x5366bf(_0x3e4704._0x13bf7d,0xb6,0x130,_0x3e4704._0x4d7b64)](_0x390d88['id'])??(typeof _0x22cc92[_0x5366bf(0xd4,_0x3e4704._0x366b17,0xf9,_0x3e4704._0x4d9d54)]===_0x5366bf(0xb0,_0x3e4704._0x4012b6,_0x3e4704._0x10b677,_0x3e4704._0xb74cd1)?_0x22cc92[_0x5366bf(_0x3e4704._0x546c03,0x1f,_0x3e4704._0x1dd8eb,_0x3e4704._0x16ef6e)]:0x0),'inputDelta':_0x1b322b}];break;}case _0x5366bf(-0x30,0x175,0xaf,-_0x3e4704._0x1da2dc):{const _0x1d65c0=typeof _0x22cc92[_0x5366bf(0x13b,0x14,_0x3e4704._0x20adad,0x14)]===_0x3bd331(0x1bd,_0x3e4704._0x14c268,0x271,_0x3e4704._0x387f9c)?_0x22cc92[_0x3bd331(0xdf,0xac,_0x3e4704._0x5b381a,0x164)]:typeof _0x22cc92[_0x5366bf(0x105,_0x3e4704._0x535ed8,0xf9,0x70)]===_0x3bd331(_0x3e4704._0x115193,_0x3e4704._0x47f193,0xbd,0x127)?this[_0x3bd331(0x203,_0x3e4704._0x1d34e4,_0x3e4704._0x2d1cae,_0x3e4704._0x585b08)]['get'](_0x22cc92['output_index']):void 0x0,_0x29f5d7=_0x1d65c0?this[_0x5366bf(0xfb,0x7c,_0x3e4704._0x1846e6,-0x30)]['get'](_0x1d65c0):void 0x0;_0x29f5d7&&typeof _0x22cc92[_0x3bd331(_0x3e4704._0xb74cd1,_0x3e4704._0x29bc94,0x162,0x206)]===_0x5366bf(_0x3e4704._0x195ea4,0x110,_0x3e4704._0x143340,_0x3e4704._0x85dda2)&&(_0x29f5d7[_0x5366bf(0x140,0x13a,_0x3e4704._0x54d4ef,0xc4)]['arguments']=_0x22cc92[_0x5366bf(0x212,_0x3e4704._0x2fa443,0x20a,0x151)]);break;}case _0x3bd331(0xc6,_0x3e4704._0x387f9c,_0x3e4704._0x9a3a82,0x0):{const _0x59e1af=typeof _0x22cc92[_0x5366bf(_0x3e4704._0x5e388a,_0x3e4704._0x3bf9e0,_0x3e4704._0x1dd8eb,0x15)]===_0x5366bf(_0x3e4704._0x30b60f,0x1d4,0x187,0x194)?_0x22cc92['output_index']:void 0x0,_0x2f1c72=_0x22cc92[_0x3bd331(_0x3e4704._0x2c678e,_0x3e4704._0x204b38,_0x3e4704._0xf6ac15,0x211)];if(_0x2f1c72?.[_0x5366bf(_0x3e4704._0x1e4d48,_0x3e4704._0x1f04ec,0x80,0x169)]===_0x3bd331(_0x3e4704._0x21e195,0x16b,0xaa,_0x3e4704._0x18ac1e)){const _0x22e5d3=_0x2f1c72[_0x5366bf(0x192,-0x2a,0xc3,0x2f)]??(_0x59e1af!==void 0x0?this[_0x3bd331(0x203,_0x3e4704._0x434c46,0x139,0x23d)][_0x5366bf(0x1db,_0x3e4704._0xfd2800,_0x3e4704._0x3c7419,0x16e)](_0x59e1af):void 0x0),_0x59a860=_0x22e5d3?this[_0x5366bf(-0x53,0x151,0x81,_0x3e4704._0x390065)][_0x5366bf(0x1b4,_0x3e4704._0x1fd1b5,_0x3e4704._0x3c7419,_0x3e4704._0x173001)](_0x22e5d3):void 0x0;_0x59a860&&typeof _0x2f1c72[_0x3bd331(_0x3e4704._0x1c383c,0x172,0x175,0x199)]===_0x3bd331(0x1bd,_0x3e4704._0xf4ed70,0x191,0xdb)&&(_0x59a860['function'][_0x3bd331(0x226,0x16f,_0x3e4704._0x4b2a1b,0x265)]=_0x2f1c72[_0x5366bf(_0x3e4704._0xf24569,_0x3e4704._0x3fa7ab,_0x3e4704._0x197c97,0x1bf)]);break;}if(_0x2f1c72?.[_0x5366bf(_0x3e4704._0x516437,0xa9,_0x3e4704._0x5237c7,0x4b)]===_0x3bd331(_0x3e4704._0x583b29,-0x44,0x52,_0x3e4704._0x58c491)&&_0x2f1c72['id']){const _0x5a160b=this['getOrCreateReasoningItem'](_0x2f1c72['id'],_0x59e1af);typeof _0x2f1c72['encrypted_content']===_0x3bd331(0x1bd,_0x3e4704._0x784e91,0x194,_0x3e4704._0x525447)&&(_0x5a160b['encryptedContent']=_0x2f1c72['encrypted_content']);if(Array['isArray'](_0x2f1c72[_0x5366bf(_0x3e4704._0x4997e0,_0x3e4704._0x10fd1e,0x1dd,0x287)]))for(let _0x51eedf=0x0;_0x51eedf<_0x2f1c72[_0x3bd331(_0x3e4704._0x429037,0x2df,_0x3e4704._0x21da3b,0x239)]['length'];_0x51eedf+=0x1){const _0xa800e8=_0x2f1c72[_0x3bd331(0x1f9,_0x3e4704._0x3d7b63,_0x3e4704._0x2175c1,_0x3e4704._0x3c7c75)][_0x51eedf];_0xa800e8['type']===_0x5366bf(_0x3e4704._0x544c23,0x6b,0x155,_0x3e4704._0x472afd)&&typeof _0xa800e8[_0x3bd331(_0x3e4704._0xa574b8,_0x3e4704._0x3aaed5,_0x3e4704._0x2ed2ed,_0x3e4704._0x931ba5)]===_0x3bd331(0x1bd,0x1d2,_0x3e4704._0x46c6e5,0x249)&&_0x5a160b[_0x5366bf(0xb1,0xe5,0x122,_0x3e4704._0x2ac939)][_0x3bd331(0x164,0x168,0x12f,0xda)](_0x51eedf,_0xa800e8['text']);}typeof _0x2f1c72[_0x3bd331(0x9e,_0x3e4704._0x41f048,0x19,0x39)]===_0x5366bf(0x20a,0x12b,0x1a1,0xc2)&&_0x5a160b[_0x3bd331(_0x3e4704._0x2dd605,0x18d,_0x3e4704._0x1a6ae2,_0x3e4704._0x30a7c7)]['set'](0x0,_0x2f1c72[_0x3bd331(0x9e,0x15e,0x1c,_0x3e4704._0x24916f)]);}break;}case _0x5366bf(_0x3e4704._0x851255,0xf7,0xb5,0xf):{const _0x134774=typeof _0x22cc92['delta']===_0x3bd331(0x1bd,_0x3e4704._0x36ebc5,_0x3e4704._0x4651b4,0x263)?_0x22cc92[_0x5366bf(_0x3e4704._0x1a2f55,-0x49,0x87,_0x3e4704._0x241d5b)]:'',_0x127775=typeof _0x22cc92[_0x5366bf(_0x3e4704._0x2cd3ea,_0x3e4704._0x46682e,_0x3e4704._0x3fbd64,0x26c)]===_0x5366bf(_0x3e4704._0x429037,0x223,_0x3e4704._0x475be3,0xb9)?_0x22cc92[_0x5366bf(0x20c,0x21d,_0x3e4704._0x3fbd64,_0x3e4704._0x232406)]:typeof _0x22cc92[_0x5366bf(0x31,0x155,_0x3e4704._0x1dd8eb,0x157)]==='number'?this[_0x3bd331(_0x3e4704._0x3c8a4f,_0x3e4704._0x29d9cc,0x1bc,_0x3e4704._0x390065)]['get'](_0x22cc92[_0x5366bf(_0x3e4704._0x4f794b,_0x3e4704._0x45a119,_0x3e4704._0x4d8e4c,_0x3e4704._0x50f86a)]):void 0x0,_0xb192dc=typeof _0x22cc92['output_index']==='number'?_0x22cc92[_0x3bd331(0x115,0xdf,_0x3e4704._0x4141a0,_0x3e4704._0x386ecb)]:0x0,_0x1c7282=typeof _0x22cc92['summary_index']===_0x3bd331(_0x3e4704._0x115193,_0x3e4704._0x31a6a6,0x239,_0x3e4704._0x5d66a0)?_0x22cc92[_0x5366bf(_0x3e4704._0x206b15,0x91,_0x3e4704._0x2259ec,_0x3e4704._0x542d0a)]:0x0;if(_0x127775&&_0x134774[_0x5366bf(0x66,0x104,0x12b,0x69)]>0x0){const _0x4ecb9f=this[_0x5366bf(_0x3e4704._0x4d9d54,0x13b,0xba,_0x3e4704._0x4fb243)](_0x127775,_0xb192dc);_0x4ecb9f[_0x3bd331(_0x3e4704._0x147d51,_0x3e4704._0x223245,0x10e,0x20f)][_0x3bd331(_0x3e4704._0x46c6e5,_0x3e4704._0x442eaf,_0x3e4704._0x3657b1,0x213)](_0x1c7282,''+(_0x4ecb9f[_0x3bd331(_0x3e4704._0x53e04a,_0x3e4704._0x5801e1,0x1bd,_0x3e4704._0x318b20)]['get'](_0x1c7282)??'')+_0x134774);if(isUserVisibleReasoning(this[_0x5366bf(_0x3e4704._0x26b9d5,0x14d,0x153,0x228)]))return[{'type':'openai_reasoning_summary_delta','delta':_0x134774,'itemId':_0x127775,'outputIndex':_0xb192dc,'summaryIndex':_0x1c7282}];}break;}case _0x5366bf(0x2a3,0x1f1,0x248,0x235):{const _0x495688=typeof _0x22cc92[_0x3bd331(_0x3e4704._0x415764,0x236,_0x3e4704._0x4291eb,0x205)]===_0x5366bf(_0x3e4704._0x2f6243,_0x3e4704._0x3091b8,0x1a1,_0x3e4704._0x482ca7)?_0x22cc92[_0x3bd331(0x21a,0x2a7,0x308,0x12e)]:typeof _0x22cc92[_0x3bd331(0x115,_0x3e4704._0x55afa5,0x12b,_0x3e4704._0x599780)]===_0x5366bf(0x271,0x19c,_0x3e4704._0x10b677,_0x3e4704._0x1afa9f)?this['outputIndexToReasoningId'][_0x5366bf(0x1c2,_0x3e4704._0x24096b,0x130,_0x3e4704._0x7c456c)](_0x22cc92[_0x3bd331(_0x3e4704._0x5a537c,0xe7,0xdd,0x143)]):void 0x0,_0x620914=typeof _0x22cc92[_0x3bd331(0x115,0x123,_0x3e4704._0x19d46,0x162)]===_0x5366bf(_0x3e4704._0x4db8ec,_0x3e4704._0x28002c,_0x3e4704._0x10b677,0xd9)?_0x22cc92[_0x3bd331(_0x3e4704._0x5a537c,0x78,_0x3e4704._0x73ea03,_0x3e4704._0x26951e)]:0x0,_0x45eef1=typeof _0x22cc92[_0x5366bf(0xd,_0x3e4704._0x356c93,_0x3e4704._0x2259ec,_0x3e4704._0x4fb7a7)]===_0x3bd331(0x1a3,_0x3e4704._0xb6ceda,0x121,_0x3e4704._0x5b63cb)?_0x22cc92[_0x3bd331(_0x3e4704._0x5ac42e,_0x3e4704._0x441812,_0x3e4704._0x183192,_0x3e4704._0x580b66)]:0x0,_0x4ce57f=typeof _0x22cc92[_0x5366bf(_0x3e4704._0x27c385,-_0x3e4704._0x17a3b3,0x82,_0x3e4704._0x5cf6a0)]===_0x5366bf(0x260,0x27b,_0x3e4704._0x104490,0x286)?_0x22cc92['text']:'';_0x495688&&this[_0x5366bf(-_0x3e4704._0x12aa79,_0x3e4704._0x580b66,0xba,0x143)](_0x495688,_0x620914)[_0x5366bf(0x9c,_0x3e4704._0x3f08d2,_0x3e4704._0x3b40c6,_0x3e4704._0x429037)][_0x3bd331(_0x3e4704._0x46c6e5,_0x3e4704._0x565f51,_0x3e4704._0x37bc92,_0x3e4704._0xe2914)](_0x45eef1,_0x4ce57f);break;}case _0x5366bf(0xd7,0x1c3,_0x3e4704._0x4138fb,_0x3e4704._0x9a0fe4):{const _0x3c410f=typeof _0x22cc92[_0x5366bf(-_0x3e4704._0x4269bb,-0x3,0x87,_0x3e4704._0x17714)]==='string'?_0x22cc92['delta']:'',_0x255b72=typeof _0x22cc92[_0x5366bf(0x2bb,0x140,0x1fe,_0x3e4704._0x4ce219)]===_0x5366bf(_0x3e4704._0x544c23,0x199,_0x3e4704._0x143340,0x165)?_0x22cc92[_0x5366bf(0x27d,_0x3e4704._0x2f59e7,0x1fe,0x12d)]:typeof _0x22cc92[_0x3bd331(0x115,_0x3e4704._0x18d6b6,_0x3e4704._0x33deec,_0x3e4704._0x5ad6a5)]===_0x5366bf(0x205,_0x3e4704._0x4291eb,0x187,_0x3e4704._0x11b918)?this[_0x5366bf(_0x3e4704._0x55129e,0x1b3,_0x3e4704._0x2d0179,_0x3e4704._0x514142)][_0x3bd331(0x14c,_0x3e4704._0x4217c3,0x88,0x203)](_0x22cc92[_0x3bd331(_0x3e4704._0x5a537c,0x9f,0x192,_0x3e4704._0x1e526a)]):void 0x0,_0x7d6418=typeof _0x22cc92['output_index']===_0x3bd331(_0x3e4704._0x115193,_0x3e4704._0x526f68,_0x3e4704._0x2a1ffb,0x163)?_0x22cc92[_0x3bd331(0x115,_0x3e4704._0x24096b,0x177,_0x3e4704._0x306fce)]:0x0,_0x47fd6a=typeof _0x22cc92['content_index']===_0x3bd331(_0x3e4704._0x52b8c4,0x28a,_0x3e4704._0x5d9af8,0x118)?_0x22cc92[_0x3bd331(0x1cb,_0x3e4704._0x58ef47,_0x3e4704._0x4a4cda,0x13b)]:0x0;if(_0x255b72&&_0x3c410f[_0x5366bf(0x3d,_0x3e4704._0x244635,0x12b,_0x3e4704._0x543914)]>0x0){const _0x42c975=this[_0x5366bf(0x10e,_0x3e4704._0x15c20d,0xba,_0x3e4704._0x544b27)](_0x255b72,_0x7d6418);_0x42c975['textByIndex'][_0x5366bf(0xba,_0x3e4704._0x203762,_0x3e4704._0x146ae1,0x14d)](_0x47fd6a,''+(_0x42c975[_0x3bd331(0x1fb,_0x3e4704._0x332bb1,0x1b5,0x126)][_0x5366bf(_0x3e4704._0x524cdf,_0x3e4704._0x28f5d1,0x130,0xc8)](_0x47fd6a)??'')+_0x3c410f);if(isUserVisibleReasoning(this[_0x3bd331(_0x3e4704._0xdc9795,_0x3e4704._0x561359,0x96,_0x3e4704._0x279a95)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x47fd6a,'delta':_0x3c410f,'itemId':_0x255b72,'outputIndex':_0x7d6418}];}break;}case _0x5366bf(_0x3e4704._0xc92264,0x12a,_0x3e4704._0x37bc92,-_0x3e4704._0x4b315e):{const _0x8ba43a=typeof _0x22cc92['item_id']==='string'?_0x22cc92['item_id']:typeof _0x22cc92[_0x3bd331(0x115,0x1dc,0x91,_0x3e4704._0x22f58f)]===_0x3bd331(_0x3e4704._0x321f16,0x245,0xbe,0x262)?this['outputIndexToReasoningId'][_0x5366bf(0x144,0x1b5,_0x3e4704._0x3c7419,0x79)](_0x22cc92[_0x5366bf(_0x3e4704._0x531e2f,_0x3e4704._0x1bf3b3,0xf9,_0x3e4704._0x36e67)]):void 0x0,_0x4ed48d=typeof _0x22cc92['output_index']==='number'?_0x22cc92[_0x3bd331(_0x3e4704._0x41663e,0x75,0x107,_0x3e4704._0x135084)]:0x0,_0x48bb21=typeof _0x22cc92[_0x3bd331(0x1cb,0x28e,_0x3e4704._0x6e2300,_0x3e4704._0x2ca6e5)]===_0x5366bf(0x209,0x1a3,0x187,0x1a7)?_0x22cc92['content_index']:0x0,_0x57dcfe=typeof _0x22cc92[_0x5366bf(-0x34,0x13b,0x82,_0x3e4704._0x5625a9)]===_0x5366bf(0x196,0x15d,_0x3e4704._0x143340,0x23d)?_0x22cc92[_0x3bd331(_0x3e4704._0xa574b8,_0x3e4704._0x14fee6,0xb6,0xfc)]:'';_0x8ba43a&&this[_0x3bd331(0xd6,0x1a2,0x120,0x14)](_0x8ba43a,_0x4ed48d)['textByIndex']['set'](_0x48bb21,_0x57dcfe);break;}case _0x5366bf(_0x3e4704._0x551476,_0x3e4704._0x5dc4fa,0x159,_0x3e4704._0xeb00f2):{this[_0x3bd331(_0x3e4704._0x328a85,_0x3e4704._0x46b1a1,_0x3e4704._0x3327da,_0x3e4704._0x19d46)]=_0x22cc92[_0x5366bf(0x42,0xda,0xd2,_0x3e4704._0x272f4c)];break;}case _0x5366bf(_0x3e4704._0x435a13,0x15e,_0x3e4704._0x4a91da,0x67):{const _0x2ea228=_0x22cc92[_0x5366bf(_0x3e4704._0x4d004b,_0x3e4704._0x4c8a17,_0x3e4704._0x49769f,0xc6)];throw new ProviderStreamEventError(_0x2ea228?.['error']?.[_0x5366bf(_0x3e4704._0x55d463,_0x3e4704._0x22cc37,_0x3e4704._0x2737a6,0x26d)]??_0x3bd331(_0x3e4704._0x22cbb7,_0x3e4704._0x49f7c1,_0x3e4704._0x16aefb,0x43),{'code':_0x2ea228?.[_0x5366bf(_0x3e4704._0xe89272,0x11b,_0x3e4704._0x2bd974,_0x3e4704._0x4146d9)]?.[_0x5366bf(_0x3e4704._0xbfaa0,0x163,_0x3e4704._0x348775,_0x3e4704._0x4ebc20)],'retryable':!![]});}case'error':{const _0x5ca319=_0x22cc92['error'];throw new ProviderStreamEventError(_0x5ca319?.[_0x5366bf(0x284,0x21c,0x21b,_0x3e4704._0x367a9e)]??_0x5366bf(0x57,0xf5,_0x3e4704._0x1cb8aa,_0x3e4704._0x2a1ffb),{'code':_0x5ca319?.[_0x3bd331(0x1f6,0x164,0x28b,_0x3e4704._0x18aa6c)],'retryable':!![],'status':typeof _0x22cc92[_0x3bd331(0x26b,_0x3e4704._0x5787cc,0x230,0x2dc)]===_0x3bd331(_0x3e4704._0x4e8fb1,0x12a,0x17f,0xc9)?_0x22cc92[_0x3bd331(0x26b,0x192,_0x3e4704._0x1b4647,0x335)]:void 0x0});}}return[];}[_0x551389(0x363,0x325,0x3ad,0x2f7)](){const _0x1c946f={_0x1fb4cf:0x2b1,_0x59b925:0x38,_0x1b219c:0x8f,_0x17a7de:0x8a,_0x268c27:0x8d,_0x38c5ce:0x6d,_0x252608:0x52,_0x540bbc:0x117,_0x58b07d:0xb1,_0x1d4cc3:0xb6,_0x42b478:0xe4,_0xae9420:0x137,_0x115aeb:0x11c,_0x4b820c:0x218,_0x123121:0x1b1,_0x398602:0xb0,_0x21f5fe:0x83,_0x38d073:0x22,_0x4c11bf:0x75,_0x5a5cbc:0x107,_0x5a69ab:0x16,_0x33e3ba:0x1a,_0x2d7d98:0x12,_0x40b2ea:0x17e,_0x4c92b2:0x115,_0x40ca39:0xb9,_0x5da444:0x1af,_0xa7fc2:0xe7,_0x113607:0xb7,_0x2f959a:0x19b,_0x18e2ce:0x126,_0x5d7293:0xf,_0x4adf41:0x153,_0x10a864:0x1c6,_0x2aa3d6:0xda,_0x3096c5:0x4b,_0x24cb35:0x66,_0x3c819c:0x9d,_0x5a7b95:0x180,_0x415437:0xe2,_0x545c55:0x11c,_0x498945:0x37,_0x2732e8:0x132,_0x577ccc:0x1c5,_0x941b6b:0x2b2,_0x423fbe:0x21f,_0x52d181:0x1a1,_0x44502a:0xac,_0x1412fc:0x1a9,_0x2ee3b2:0xb2,_0x1d9265:0x107,_0x2e9028:0xc9,_0x89cc1e:0x2d,_0x5aac8a:0xbe,_0xe4b025:0x92,_0x15b8cf:0x21f,_0x1b097b:0x19e,_0x4c01bc:0x4c,_0x5b4625:0xaa,_0x100932:0x146,_0x56af7c:0x16d,_0x138f1e:0x172,_0x7283ca:0x17f,_0x35c63a:0x9d,_0x57d76e:0x17f,_0x1a1744:0x15a,_0x33a51b:0x84,_0x227d28:0x150},_0x268417={_0x20b42f:0x130},_0x14bf67={_0x2a9516:0xcd,_0x1b61a2:0x190,_0x1365c0:0x1c6},_0x3ad215=[];for(const [_0x23be49,_0x371ea5]of this[_0x4ba483(-0x13a,-_0x1c946f._0x1fb4cf,-0x1ed,-0x236)][_0x326a01(_0x1c946f._0x59b925,_0x1c946f._0x1b219c,0x71,-_0x1c946f._0x17a7de)]()){const _0x4c315f=_0x371ea5[_0x4ba483(-0xfa,-0x102,-_0x1c946f._0x268c27,0x39)]('');if(_0x4c315f['length']===0x0)continue;_0x3ad215[_0x4ba483(_0x1c946f._0x38c5ce,-0x11,-_0x1c946f._0x252608,-_0x1c946f._0x540bbc)]({'index':_0x23be49,'item':{'type':_0x326a01(0x17,-_0x1c946f._0x58b07d,-_0x1c946f._0x1d4cc3,-0xc8),'role':_0x4ba483(-_0x1c946f._0x42b478,-0xa2,-_0x1c946f._0xae9420,-_0x1c946f._0x115aeb),'content':[{'type':_0x4ba483(-_0x1c946f._0x4b820c,-_0x1c946f._0x123121,-0x147,-0xa3),'text':_0x4c315f}]}});}function _0x326a01(_0x384bf9,_0x17f402,_0x593282,_0x4e07e2){return _0x551389(_0x384bf9-0x165,_0x384bf9- -0x44b,_0x17f402,_0x4e07e2-0x24);}for(const _0x576f64 of this['reasoningItems'][_0x4ba483(-_0x1c946f._0x398602,-0x78,-_0x1c946f._0x21f5fe,0xd)]()){_0x3ad215[_0x326a01(0x47,-_0x1c946f._0x38d073,-0x78,-_0x1c946f._0x4c11bf)]({'index':_0x576f64[_0x4ba483(-_0x1c946f._0x5a5cbc,0x49,-0xa3,_0x1c946f._0x5a69ab)]??_0x3ad215[_0x326a01(-0xd9,-_0x1c946f._0x33e3ba,-_0x1c946f._0x2d7d98,0x0)],'item':{'type':_0x326a01(-_0x1c946f._0x40b2ea,-_0x1c946f._0x4c92b2,-0x146,-0xca),'id':_0x576f64['id'],..._0x576f64[_0x4ba483(-_0x1c946f._0x40ca39,-_0x1c946f._0x5da444,-0x150,-_0x1c946f._0xa7fc2)]?{'encrypted_content':_0x576f64[_0x326a01(-_0x1c946f._0x113607,-0x19f,-_0x1c946f._0x2f959a,-0x120)]}:{},..._0x576f64[_0x326a01(-0xe2,-_0x1c946f._0x18e2ce,-_0x1c946f._0x5d7293,-_0x1c946f._0x4adf41)][_0x4ba483(-0x24f,-0x170,-_0x1c946f._0x10a864,-_0x1c946f._0x2aa3d6)]>0x0?{'summary':Array[_0x4ba483(-_0x1c946f._0x3096c5,-_0x1c946f._0x24cb35,-_0x1c946f._0x3c819c,-_0x1c946f._0x5a7b95)](_0x576f64[_0x326a01(-_0x1c946f._0x415437,-0xdb,-0x71,-0x1d0)]['entries']())[_0x4ba483(-_0x1c946f._0x545c55,_0x1c946f._0x498945,-0x96,-_0x1c946f._0x2732e8)]((_0x2d2e31,_0xbf5e78)=>_0x2d2e31[0x0]-_0xbf5e78[0x0])[_0x4ba483(-_0x1c946f._0x577ccc,-_0x1c946f._0x941b6b,-_0x1c946f._0x423fbe,-_0x1c946f._0x52d181)](([,_0x54bb25])=>{const _0x1fdb26={_0x2851a1:0x11b,_0x186b79:0x28b};function _0x4877d9(_0x45457b,_0x932781,_0x207fb1,_0x1ef5b6){return _0x4ba483(_0x45457b-_0x1fdb26._0x2851a1,_0x932781-0x150,_0x1ef5b6-_0x1fdb26._0x186b79,_0x932781);}return{'type':_0x4877d9(_0x14bf67._0x2a9516,_0x14bf67._0x1b61a2,_0x14bf67._0x1365c0,0x143),'text':_0x54bb25};})}:{},..._0x576f64[_0x4ba483(-_0x1c946f._0x44502a,-0x98,-0xbe,-_0x1c946f._0x1412fc)][_0x326a01(-0x12d,-0x155,-_0x1c946f._0x2ee3b2,-0x218)]>0x0?{'text':Array[_0x4ba483(-0x5,-_0x1c946f._0x1d9265,-0x9d,-_0x1c946f._0x2e9028)](_0x576f64[_0x4ba483(-0xb8,-_0x1c946f._0x89cc1e,-_0x1c946f._0x5aac8a,-0x1a7)][_0x4ba483(-_0x1c946f._0xe4b025,-0x3b,-0x61,-_0x1c946f._0x498945)]())['sort']((_0x37deb7,_0x5b52cf)=>_0x37deb7[0x0]-_0x5b52cf[0x0])[_0x4ba483(-0x22b,-0x273,-_0x1c946f._0x15b8cf,-_0x1c946f._0x1b097b)](([,_0x552046])=>_0x552046)[_0x4ba483(_0x1c946f._0x4c01bc,-0x151,-0x8d,-_0x1c946f._0x5b4625)]('')}:{}}});}for(const _0x5f0156 of this[_0x326a01(-0x183,-0x11d,-0x149,-0x210)][_0x4ba483(-0x148,-0xa4,-0x83,-0xe8)]()){_0x3ad215[_0x4ba483(-0x8b,-0xf3,-_0x1c946f._0x252608,0x39)]({'index':this[_0x4ba483(-0x265,-_0x1c946f._0x100932,-0x1dc,-0x226)][_0x4ba483(-0x1be,-0xb4,-_0x1c946f._0x56af7c,-0x131)](_0x5f0156['id'])??_0x3ad215[_0x4ba483(-0x21d,-0x1b8,-_0x1c946f._0x138f1e,-_0x1c946f._0x7283ca)],'item':{'type':_0x4ba483(-0xa7,-_0x1c946f._0x35c63a,-_0x1c946f._0x57d76e,-_0x1c946f._0x1a1744),'call_id':_0x5f0156['id'],'name':_0x5f0156[_0x326a01(-0xd2,-_0x1c946f._0x33a51b,-0x20,-_0x1c946f._0x227d28)]['name'],'arguments':_0x5f0156['function']['arguments']}});}function _0x4ba483(_0x171407,_0x3290e1,_0x472507,_0x4c2648){return _0xf0dc29(_0x472507- -0x405,_0x3290e1-_0x268417._0x20b42f,_0x4c2648,_0x4c2648-0xbe);}return _0x3ad215['sort']((_0x55846e,_0x56cd12)=>_0x55846e['index']-_0x56cd12[_0x4ba483(-0x157,-0x180,-0x1db,-0x18b)])['map'](_0xcff212=>_0xcff212['item']);}[_0x551389(0x384,0x301,0x3ee,0x30f)](_0x9e27c,_0x1746f6){const _0x4763e2={_0x4f7af5:0x8c,_0x60f0ce:0x17a,_0x8a9320:0x27a,_0x2ccb56:0x508,_0x404873:0x5b2,_0x14829c:0x52a,_0xae67c4:0x500,_0xc3b8:0x4d4,_0x2db3a2:0x569,_0x3b64fe:0x4e2,_0x4e6c93:0x3f3,_0x3b4b16:0x440,_0x457df4:0x1b4},_0x5e68bd={_0x5116b2:0x179},_0x2541a9={_0x459a8c:0x6d,_0x498b67:0xd9},_0x10681f=this[_0x164b13(_0x4763e2._0x4f7af5,0x174,_0x4763e2._0x60f0ce,0xca)]['get'](_0x9e27c);if(_0x10681f)return _0x1746f6!==void 0x0&&(_0x10681f[_0x164b13(0x22a,0x2c8,_0x4763e2._0x8a9320,0x304)]=_0x1746f6,this[_0x17ba4f(_0x4763e2._0x2ccb56,0x4cd,_0x4763e2._0x404873,_0x4763e2._0x14829c)][_0x17ba4f(_0x4763e2._0xae67c4,_0x4763e2._0xc3b8,_0x4763e2._0x2db3a2,_0x4763e2._0x3b64fe)](_0x1746f6,_0x9e27c)),_0x10681f;const _0x4e02ac={'id':_0x9e27c,'outputIndex':_0x1746f6,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x17ba4f(0x4ea,_0x4763e2._0x4e6c93,0x4b5,_0x4763e2._0x3b4b16)]['set'](_0x9e27c,_0x4e02ac);_0x1746f6!==void 0x0&&this[_0x164b13(0x244,0x25e,_0x4763e2._0x457df4,0x29b)][_0x164b13(0x1e6,0x216,0x26f,0x245)](_0x1746f6,_0x9e27c);function _0x17ba4f(_0x39360d,_0x62c4f0,_0x2f090e,_0x2db924){return _0xf0dc29(_0x2db924-0x232,_0x62c4f0-_0x2541a9._0x459a8c,_0x62c4f0,_0x2db924-_0x2541a9._0x498b67);}function _0x164b13(_0x48a4b5,_0x2dc885,_0x4e4779,_0x5a457d){return _0x551389(_0x48a4b5-0x1b6,_0x2dc885- -_0x5e68bd._0x5116b2,_0x5a457d,_0x5a457d-0x1d7);}return _0x4e02ac;}};function createOpenAiResponsesStreamParser(_0x27481c){return new OpenAiResponsesStreamParser(_0x27481c);}function createOpenAiSurfaces(_0xa049d0={}){const _0xb9e974={_0x10446d:0x4c7,_0x469c9b:0x4a2,_0x22af99:0x51a,_0x457472:0x5dd,_0x47257b:0x638,_0x14203a:0x613,_0x46d034:0x642,_0x23c3de:0x5ea,_0x1317fc:0x565,_0x3957a8:0x6ce,_0x5787e5:0x5db,_0x212b59:0x5ea,_0x19fc91:0x562,_0x52f42b:0x62a,_0x51e8c2:0x3aa,_0x49ce6e:0x3e8},_0x4acc75={_0x42cb6a:0x25d},_0x54eb5f={_0x19acf5:0x505},_0x18de7d={_0x83dfdc:0x180},_0x32c743={_0x147427:0x59f,_0x23a945:0x56d},_0xdba3ff={_0x2e614b:0x1e7},_0x5f4707={_0x5905d5:0x121},_0x45d4d9={_0x572731:0x1f8};function _0x3d78b0(_0x5d77bc,_0xf39731,_0x226700,_0x546dac){return _0xf0dc29(_0x5d77bc-_0x45d4d9._0x572731,_0xf39731-0x103,_0xf39731,_0x546dac-0x115);}function _0x2332e8(_0x1a88ef,_0x2df787,_0x2d37ef,_0x147ad7){return _0xf0dc29(_0x2d37ef-0x30b,_0x2df787-0xe1,_0x1a88ef,_0x147ad7-_0x5f4707._0x5905d5);}const _0x252d2d=_0xa049d0[_0x3d78b0(0x4fc,0x461,_0xb9e974._0x10446d,_0xb9e974._0x469c9b)]??_0x2332e8(0x47e,0x545,_0xb9e974._0x22af99,_0xb9e974._0x457472),_0x1d18f5=_0xa049d0[_0x2332e8(0x561,0x54b,0x596,0x62d)]??_0x2332e8(_0xb9e974._0x47257b,0x649,_0xb9e974._0x14203a,0x56b);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x2332e8(0x623,_0xb9e974._0x46d034,_0xb9e974._0x23c3de,_0xb9e974._0x1317fc),'createRequest'(_0xd3ac36){return{'accept':'application/json','body':createChatRequestBody(_0xd3ac36,![]),'path':_0x252d2d};},'parseResponse'(_0x51d470){return parseChatCompletionResponse(_0x51d470);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x2332e8(0x61b,_0xb9e974._0x3957a8,0x675,0x69a),'createRequest'(_0x27bc0b){function _0x237879(_0x4f61b0,_0x1e87bd,_0x3d3392,_0x481f1d){return _0x3d78b0(_0x1e87bd-0x73,_0x481f1d,_0x3d3392-0x37,_0x481f1d-_0xdba3ff._0x2e614b);}return{'accept':_0x237879(0x564,_0x32c743._0x147427,0x57d,_0x32c743._0x23a945),'body':createChatRequestBody(_0x27bc0b,!![]),'path':_0x252d2d};},'createStreamParser'(_0x4a1b5f){return new OpenAiChatCompletionsStreamParser(_0x4a1b5f);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x2332e8(0x6ca,_0xb9e974._0x5787e5,_0xb9e974._0x212b59,0x5f6),'createRequest'(_0x32911b){function _0x4bc5ec(_0x1d568a,_0x219125,_0xb6049e,_0x35af1b){return _0x3d78b0(_0x1d568a-0x28,_0xb6049e,_0xb6049e-_0x18de7d._0x83dfdc,_0x35af1b-0x91);}return{'accept':_0x4bc5ec(0x5d1,_0x54eb5f._0x19acf5,0x5e7,0x6bf),'body':createResponsesRequestBody(_0x32911b,![]),'path':_0x1d18f5};},'parseResponse'(_0x23001e,_0x2bce43){return parseResponsesResponse(_0x23001e,_0x2bce43);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x3d78b0(_0xb9e974._0x19fc91,0x4c5,_0xb9e974._0x52f42b,0x615),'createRequest'(_0x42278f){function _0x157ea3(_0x4f5689,_0x530516,_0x278072,_0x4e5852){return _0x3d78b0(_0x278072- -0x2cf,_0x4f5689,_0x278072-0xcb,_0x4e5852-0xe7);}return{'accept':_0x157ea3(0x307,0x300,_0x4acc75._0x42cb6a,0x308),'body':createResponsesRequestBody(_0x42278f,!![]),'path':_0x1d18f5};},'createStreamParser'(_0x4d7a46){return new OpenAiResponsesStreamParser(_0x4d7a46);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x3d78b0(0x443,_0xb9e974._0x51e8c2,_0xb9e974._0x49ce6e,0x47b),'createRequest'(_0x5d16a4){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x5d16a4),'path':_0x1d18f5};},'createStreamParser'(_0x433700){return createOpenAiResponsesStreamParser(_0x433700);}}];}var OpenAiProviderAdapter=class{[_0xf0dc29(0x36d,0x3d8,0x2e3,0x44a)];constructor(_0x463c55){this['headerResolver']=_0x463c55;}[_0xf0dc29(0x28e,0x34b,0x23b,0x2a1)](){const _0x4974e4={_0xfda7be:0x258},_0x20c5fb={_0x3fafbd:0x55a,_0x3a926b:0x14a};function _0x542a1c(_0x5cdaaf,_0x423b84,_0x463ddf,_0x2ae737){return _0x551389(_0x5cdaaf-0x21,_0x463ddf- -_0x20c5fb._0x3fafbd,_0x423b84,_0x2ae737-_0x20c5fb._0x3a926b);}return new Error(_0x542a1c(-0x30f,-0x2e3,-_0x4974e4._0xfda7be,-0x2c4));}async[_0x551389(0x326,0x374,0x446,0x292)](_0x3acff5,_0xf6ca6f){const _0x4cd784={_0x462709:0xa4,_0x4f523b:0x7d,_0x50710b:0xb7,_0x4f95ff:0x3c,_0x53416d:0x42,_0x495002:0x7a,_0x5f3e5a:0x18,_0x3d46e7:0xd8,_0x2344af:0x96,_0x5c0bf8:0xce,_0x7404ff:0x2,_0x514b7e:0x21,_0x20934e:0x5a,_0x297b4e:0x6b,_0x2620a7:0x14,_0x5ac9d4:0x7,_0x55c101:0xa4,_0x5f697b:0xa3,_0x5bb9a5:0x72,_0x4ce49b:0x94,_0x4ab9fc:0x11,_0x498a34:0xc2,_0x1694b8:0x78,_0x1a5c2d:0x99,_0x5e2b2c:0x14f,_0x21ec49:0x7b,_0x2df407:0x67,_0x198328:0x1c,_0x1082b5:0x52,_0x580fd7:0x79},_0xa9ee7a={_0x4adaa6:0x1a9},_0x4ebcc1={_0x1ae050:0xa7,_0x35b2ce:0x1da};function _0x3501a1(_0x3a78e6,_0x397e36,_0x8257f4,_0x5e80e0){return _0x551389(_0x3a78e6-_0x4ebcc1._0x1ae050,_0x3a78e6- -0x433,_0x8257f4,_0x5e80e0-_0x4ebcc1._0x35b2ce);}const _0x3490b5=new Headers();_0x3490b5[_0x3501a1(-_0x4cd784._0x462709,-0x127,-_0x4cd784._0x4f523b,-0x53)](_0xe1bf47(-_0x4cd784._0x50710b,_0x4cd784._0x4f95ff,-_0x4cd784._0x53416d,_0x4cd784._0x495002),_0xf6ca6f[_0x3501a1(-_0x4cd784._0x5f3e5a,0x9a,_0x4cd784._0x3d46e7,0x6f)]),_0x3490b5[_0xe1bf47(-_0x4cd784._0x2344af,-0xfc,-_0x4cd784._0x5c0bf8,-_0x4cd784._0x7404ff)](_0x3501a1(_0x4cd784._0x514b7e,0x3f,-_0x4cd784._0x20934e,0xf),_0xe1bf47(-0x113,-0x122,-0x74,-0xdf)+_0x3acff5[_0xe1bf47(-0x5f,-0xf6,-0x5a,0x59)][_0x3501a1(-_0x4cd784._0x297b4e,-_0x4cd784._0x2620a7,-0x25,-0x3e)]);_0xf6ca6f[_0x3501a1(-0xa2,-_0x4cd784._0x5ac9d4,-0x28,-0x16e)]!==![]&&_0x3490b5[_0x3501a1(-_0x4cd784._0x55c101,-_0x4cd784._0x5f697b,-_0x4cd784._0x5bb9a5,-0x5e)](_0xe1bf47(-0xe0,-_0x4cd784._0x4ce49b,-0x34,0xa6),'application/json');const _0x537c2a=await this[_0xe1bf47(-_0x4cd784._0x5f697b,-0x97,-_0x4cd784._0x4ab9fc,-0x4)]?.({'body':_0x3acff5[_0x3501a1(-0xd7,-_0x4cd784._0x5f3e5a,-_0x4cd784._0x498a34,-0x1a4)],'credential':_0x3acff5[_0xe1bf47(_0x4cd784._0x1694b8,-0x15,-0x5a,-0xd4)],'request':_0x3acff5[_0x3501a1(-_0x4cd784._0x1a5c2d,-_0x4cd784._0x5e2b2c,-_0x4cd784._0x21ec49,-_0x4cd784._0x2df407)],'session':_0x3acff5[_0xe1bf47(_0x4cd784._0x198328,0x79,-_0x4cd784._0x1082b5,-0x99)],'stream':_0x3acff5['stream']});function _0xe1bf47(_0xc0bf28,_0x210ae7,_0x78da13,_0x45fe45){return _0x551389(_0xc0bf28-_0xa9ee7a._0x4adaa6,_0x78da13- -0x45d,_0x45fe45,_0x45fe45-0x93);}for(const [_0x1a4482,_0x4a0714]of Object[_0xe1bf47(_0x4cd784._0x580fd7,0x63,0x26,0x6c)](_0x537c2a??{})){_0x3490b5['set'](_0x1a4482,_0x4a0714);}return _0x3490b5;}[_0x551389(0x254,0x318,0x2ee,0x25f)](_0x1e4900){return _0x1e4900;}[_0x551389(0x429,0x339,0x3cd,0x28f)](_0x4982b3,_0x4897d6){return resolveSessionBaseUrl(_0x4982b3,_0x4897d6);}[_0x551389(0x431,0x344,0x3ab,0x2ef)](_0x183013,_0x1f85f2){return resolveApiCredential(_0x183013,_0x1f85f2);}async[_0xf0dc29(0x24c,0x2b0,0x1aa,0x2a9)](_0x334c02){return await createOpenAiApiError(_0x334c02);}},OpenAiModel=class extends RoutedModel{['responsesSocketSessions']=new Map();[_0x551389(0x36e,0x3e3,0x454,0x319)];[_0xf0dc29(0x28b,0x33c,0x229,0x21e)];constructor(_0x2388b5={}){const _0x4158da={_0x192fa8:0xcc,_0x41f059:0x241,_0x33abbb:0x17a,_0x409628:0xf,_0x19eac7:0x16c,_0x23dff8:0x113,_0x5d50f0:0x194,_0x1e198e:0x140,_0x2e1982:0x18c,_0x57826f:0x2a1,_0x243c51:0x204,_0x10d249:0x251,_0x2ac599:0x6,_0x26427e:0x19,_0x1af22a:0x60,_0x5c2f00:0x25e,_0x148a4d:0x295,_0x1d6d88:0x68,_0x3a4de5:0x11c,_0x17f96d:0x73,_0x397fa:0x1d9,_0x3def23:0xab,_0x1bcb3b:0x10,_0x430b90:0xe4,_0x1ee121:0x2c,_0x3f36ae:0x3b,_0x409aa1:0xa2},_0x5d8d36={_0x47bd26:0xff,_0x181322:0x1a3},_0x47454d={_0xc7bee6:0x66};function _0x2e1702(_0x519132,_0x2fd8f8,_0x2968ac,_0x2fd725){return _0x551389(_0x519132-0x3b,_0x2968ac- -0x3aa,_0x2fd8f8,_0x2fd725-_0x47454d._0xc7bee6);}const _0x52f727=_0x2388b5['model']??_0x2e1702(-_0x4158da._0x192fa8,-0x36,0x12,-0x54),_0x2bb07d=_0x2388b5['maxTokens']??getDefaultMaxTokens(),_0x3f31ee=_0x2388b5[_0x56fb3b(-0x177,-_0x4158da._0x41f059,-0x17f,-0x1ce)]??_0x2e1702(-0x22,-_0x4158da._0x33abbb,-0xbc,_0x4158da._0x409628),_0x7d2bc7=_0x2388b5[_0x56fb3b(-_0x4158da._0x19eac7,-_0x4158da._0x23dff8,-0x1f8,-_0x4158da._0x5d50f0)]??_0x56fb3b(-0xa6,-0xee,-0x17b,-_0x4158da._0x1e198e);super({'apiKey':_0x2388b5[_0x56fb3b(-_0x4158da._0x2e1982,-_0x4158da._0x57826f,-_0x4158da._0x243c51,-0x236)],'baseUrl':trimTrailingSlashes(_0x2388b5[_0x56fb3b(-0x1f5,-0x1d9,-0x14c,-0x93)]??_0x56fb3b(-_0x4158da._0x10d249,-0x2a5,-0x202,-0x287)),'fetch':_0x2388b5[_0x2e1702(-_0x4158da._0x2ac599,-_0x4158da._0x26427e,_0x4158da._0x1af22a,0xf5)],'maxTokens':_0x2bb07d,'model':_0x52f727,'reasoning':_0x2388b5[_0x56fb3b(-0x345,-_0x4158da._0x5c2f00,-_0x4158da._0x148a4d,-0x23b)],'providerAdapter':new OpenAiProviderAdapter(_0x2388b5['headerResolver']),'providerSessionResolver':_0x2388b5[_0x56fb3b(-0xb4,-_0x4158da._0x1d6d88,-_0x4158da._0x3a4de5,-_0x4158da._0x17f96d)],'requestMutators':_0x2388b5[_0x2e1702(_0x4158da._0x397fa,0x11a,0xf7,_0x4158da._0x3def23)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x2388b5[_0x2e1702(0x15,_0x4158da._0x1bcb3b,0xe2,0x1c0)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x3f31ee,'responsesPath':_0x7d2bc7}),'webSocketFactory':_0x2388b5[_0x56fb3b(-0x20f,-0x157,-0x155,-0x1b8)]});function _0x56fb3b(_0x4dc79a,_0x30ac0c,_0x23221f,_0x574572){return _0xf0dc29(_0x23221f- -0x483,_0x30ac0c-_0x5d8d36._0x47bd26,_0x574572,_0x574572-_0x5d8d36._0x181322);}this[_0x2e1702(_0x4158da._0x430b90,-0x36,0x39,0xec)]=_0x3f31ee,this[_0x2e1702(-_0x4158da._0x1ee121,-_0x4158da._0x3f36ae,-0x40,-_0x4158da._0x409aa1)]=_0x7d2bc7;}['completeViaChatCompletionsSurface'](_0x328598,_0x7b250f){return this['completeViaSurface'](_0x328598,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x7b250f);}[_0x551389(0x413,0x34a,0x29c,0x3c3)](_0x41e06f,_0x4d0d70){const _0x19d909={_0x3cc5d6:0xcc,_0x2b21ec:0xd2},_0x53ef3d={_0x2f9dae:0x1d9,_0x4fe561:0xd4};function _0x5f0b4e(_0xe4d119,_0xfc81c8,_0x1aaee3,_0x134308){return _0xf0dc29(_0x1aaee3- -_0x53ef3d._0x2f9dae,_0xfc81c8-0x183,_0xfc81c8,_0x134308-_0x53ef3d._0x4fe561);}return this[_0x5f0b4e(0x13f,0x148,_0x19d909._0x3cc5d6,_0x19d909._0x2b21ec)](_0x41e06f,OPENAI_RESPONSES_SURFACE,_0x4d0d70);}[_0xf0dc29(0x231,0x17e,0x2d8,0x1fe)](_0x1cc108,_0x40c778){return this['completeViaSurface'](_0x1cc108,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x40c778);}['streamViaChatCompletionsSurface'](_0x358662,_0x38f675){const _0x25488f={_0x5c4722:0x347,_0x5923ce:0x447,_0x54a0c6:0x3ea},_0x1cc6dc={_0x2346a8:0x1c5,_0x51a4d1:0xd,_0x115c72:0xca};function _0x4eb5ec(_0x2c9297,_0x361e00,_0xc4ebe0,_0x5b7f01){return _0x551389(_0x2c9297-_0x1cc6dc._0x2346a8,_0x5b7f01-_0x1cc6dc._0x51a4d1,_0x2c9297,_0x5b7f01-_0x1cc6dc._0x115c72);}return this[_0x4eb5ec(_0x25488f._0x5c4722,0x419,_0x25488f._0x5923ce,_0x25488f._0x54a0c6)](_0x358662,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x38f675);}[_0x551389(0x3bf,0x2f9,0x243,0x252)](_0xa8cae4,_0xef2ba6){return this['streamViaSurface'](_0xa8cae4,OPENAI_RESPONSES_STREAM_SURFACE,_0xef2ba6);}[_0x551389(0x247,0x305,0x21d,0x23c)](_0x1d0101,_0x498366){const _0xbf7f50={_0x48e729:0x176,_0x593423:0x157},_0xa99941={_0x54b626:0xf6,_0x2db0a4:0x35};function _0x2f1995(_0x1f9cf4,_0x54a44a,_0x56bf18,_0x3ec3f8){return _0x551389(_0x1f9cf4-_0xa99941._0x54b626,_0x3ec3f8- -0x28b,_0x1f9cf4,_0x3ec3f8-_0xa99941._0x2db0a4);}return this[_0x2f1995(_0xbf7f50._0x48e729,0x17c,_0xbf7f50._0x593423,0x152)](_0x1d0101,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x498366);}async[_0xf0dc29(0x207,0x18a,0x2ca,0x258)](_0x297e4a,_0x305a5){const _0x1edcef={_0x4b948b:0x5d0,_0x38f48f:0x5fc,_0x4e0d48:0x54b},_0x3e14c6={_0x42d886:0x233,_0x528f2f:0x102};function _0x51c204(_0x5c910a,_0x46b6b7,_0x21eac9,_0xe7963f){return _0x551389(_0x5c910a-0x5e,_0x21eac9-_0x3e14c6._0x42d886,_0x5c910a,_0xe7963f-_0x3e14c6._0x528f2f);}try{return await this['completeViaChatCompletionsSurface'](_0x297e4a,_0x305a5);}catch(_0x460a55){if(_0x460a55 instanceof OpenAiApiError)throw this[_0x51c204(_0x1edcef._0x4b948b,_0x1edcef._0x38f48f,_0x1edcef._0x4e0d48,0x623)](_0x460a55);throw _0x460a55;}}async[_0x551389(0x25f,0x319,0x3a6,0x29d)](_0x58cc94,_0x571fe9){const _0x3d5311={_0x188e54:0x401},_0x729a5b={_0x2fa635:0x1cf};function _0xe64f0f(_0x38502f,_0x30e287,_0x38323c,_0xb2b797){return _0xf0dc29(_0xb2b797-0x24d,_0x30e287-0x66,_0x30e287,_0xb2b797-_0x729a5b._0x2fa635);}try{return await this['completeViaResponsesSurface'](_0x58cc94,_0x571fe9);}catch(_0x386975){if(_0x386975 instanceof OpenAiApiError)throw this[_0xe64f0f(0x45c,_0x3d5311._0x188e54,0x53a,0x486)](_0x386975);throw _0x386975;}}async[_0xf0dc29(0x2e2,0x24e,0x38f,0x303)](_0xcecfcc,_0xf4b9b0){const _0x2d10c0={_0x3d0e67:0x87,_0x252e45:0x116,_0x518871:0x94,_0x3adb76:0x84,_0x2d7b8e:0xf,_0x8ef350:0x3c,_0xbcfd07:0x17f,_0x5e4751:0x14e,_0x2bbac5:0xc2,_0x581e15:0x15c,_0x225c3a:0x14d,_0x4e25ce:0x81,_0x5b4b18:0x1f3,_0x48e5fa:0x14f},_0x4e2a69={_0x7bc32e:0x38,_0x113dac:0x467},_0x35ead9={_0x5e35f9:0x2ae};function _0x298ce9(_0x5d3520,_0xe710ca,_0x3c449a,_0x2272ce){return _0x551389(_0x5d3520-0x54,_0xe710ca- -_0x35ead9._0x5e35f9,_0x3c449a,_0x2272ce-0x11);}function _0x5a7626(_0x3e0bdc,_0x3adc2e,_0x279c5f,_0x1018ca){return _0x551389(_0x3e0bdc-_0x4e2a69._0x7bc32e,_0x3adc2e- -_0x4e2a69._0x113dac,_0x1018ca,_0x1018ca-0x20);}try{let _0x52b683;for await(const _0x52051e of this[_0x5a7626(-0xe2,-_0x2d10c0._0x3d0e67,-_0x2d10c0._0x252e45,-_0x2d10c0._0x518871)](_0xcecfcc,_0xf4b9b0)){_0x52051e['type']===_0x5a7626(_0x2d10c0._0x3adb76,_0x2d10c0._0x2d7b8e,_0x2d10c0._0x8ef350,0x89)&&(_0x52b683=_0x52051e[_0x5a7626(-_0x2d10c0._0xbcfd07,-_0x2d10c0._0x5e4751,-_0x2d10c0._0x2bbac5,-0x234)]);}if(!_0x52b683)throw new Error(_0x298ce9(_0x2d10c0._0x581e15,_0x2d10c0._0x225c3a,_0x2d10c0._0x4e25ce,0x15f));return _0x52b683;}catch(_0x293bbc){if(_0x293bbc instanceof OpenAiApiError)throw this[_0x5a7626(-_0x2d10c0._0x5b4b18,-_0x2d10c0._0x48e5fa,-0xe6,-_0x2d10c0._0x518871)](_0x293bbc);throw _0x293bbc;}}async*['chatStream'](_0x4172d9,_0x32e00f){const _0x5267b6={_0x381609:0x494,_0x365da3:0x47a,_0x59c76d:0x4e2},_0x1ffdc9={_0x477747:0x18b,_0x248923:0x51},_0x426fe8={_0x137d92:0xcc,_0x5b2461:0x154};function _0x39df77(_0x42fc3f,_0x5f00a7,_0x4a3913,_0x191bc4){return _0x551389(_0x42fc3f-_0x426fe8._0x137d92,_0x42fc3f-_0x426fe8._0x5b2461,_0x4a3913,_0x191bc4-0xa4);}function _0x48b40a(_0x341a39,_0x435b4c,_0x150f11,_0x3c0cf2){return _0xf0dc29(_0x435b4c-0x25b,_0x435b4c-_0x1ffdc9._0x477747,_0x150f11,_0x3c0cf2-_0x1ffdc9._0x248923);}try{yield*this[_0x48b40a(0x576,0x4f6,0x59c,0x5d2)](_0x4172d9,_0x32e00f);}catch(_0x368e12){if(_0x368e12 instanceof OpenAiApiError)throw this[_0x48b40a(0x3b2,_0x5267b6._0x381609,_0x5267b6._0x365da3,_0x5267b6._0x59c76d)](_0x368e12);throw _0x368e12;}}async*['responseStream'](_0x82ac8b,_0x3bc922){const _0x5a0fdc={_0x3a8543:0x1a,_0x58ec9a:0xb4,_0x584ecb:0x9e,_0x23ff3b:0x96,_0x1143b0:0xe1,_0x418dd3:0x74,_0x346fb7:0xf0},_0x39de79={_0x255334:0x107,_0x2fb492:0x9},_0x3af48e={_0x116d81:0x8b,_0x31e53e:0x15d};function _0x4b8a4b(_0x2e7a05,_0x2e0b6e,_0x4bd80f,_0x6246bf){return _0xf0dc29(_0x4bd80f-_0x3af48e._0x116d81,_0x2e0b6e-_0x3af48e._0x31e53e,_0x6246bf,_0x6246bf-0x12);}function _0x1e54cb(_0x7b5cf0,_0x4daa24,_0x499074,_0x9e5c0){return _0x551389(_0x7b5cf0-_0x39de79._0x255334,_0x7b5cf0- -0x2df,_0x9e5c0,_0x9e5c0-_0x39de79._0x2fb492);}try{yield*this[_0x1e54cb(_0x5a0fdc._0x3a8543,-_0x5a0fdc._0x58ec9a,_0x5a0fdc._0x584ecb,-_0x5a0fdc._0x23ff3b)](_0x82ac8b,_0x3bc922);}catch(_0xc9e566){if(_0xc9e566 instanceof OpenAiApiError)throw this[_0x1e54cb(0x39,_0x5a0fdc._0x1143b0,_0x5a0fdc._0x418dd3,_0x5a0fdc._0x346fb7)](_0xc9e566);throw _0xc9e566;}}async*[_0xf0dc29(0x301,0x293,0x26c,0x216)](_0x462069,_0xe2a473){const _0xfe5a55={_0x4e6305:0x35d},_0x5c4bec={_0x50b97e:0x45};function _0x1e8a6c(_0x574616,_0x137127,_0x55f6d3,_0x4b9ea3){return _0x551389(_0x574616-0x9f,_0x137127-_0x5c4bec._0x50b97e,_0x55f6d3,_0x4b9ea3-0x1af);}try{yield*this['streamViaPersistentResponsesSocket'](_0x462069,_0xe2a473);}catch(_0x1fba29){if(_0x1fba29 instanceof OpenAiApiError)throw this[_0x1e8a6c(0x2a4,_0xfe5a55._0x4e6305,0x367,0x2a1)](_0x1fba29);throw _0x1fba29;}}['complete'](_0x23e557,_0xe4e9db){const _0x53ec92={_0x58a7d7:0x208,_0xbe01da:0x59,_0x3a2ba7:0x10};function _0x276664(_0x3ff0ac,_0x43b54e,_0xa729a9,_0x2cb6cf){return _0xf0dc29(_0x3ff0ac- -_0x53ec92._0x58a7d7,_0x43b54e-_0x53ec92._0xbe01da,_0xa729a9,_0x2cb6cf-_0x53ec92._0x3a2ba7);}return this[_0x276664(-0x1,-0x14,0x58,-0xeb)](_0x23e557,_0xe4e9db);}[_0x551389(0x372,0x3fe,0x41b,0x49f)](_0x4f92d4,_0x3547cb){const _0x43b2bb={_0x1c7a37:0x399,_0x45d0a2:0x278},_0x4e71a4={_0x402a90:0x13d,_0x27af53:0x65,_0x5cffa0:0x1e1};function _0x19fa8e(_0xa50b13,_0x3cb6a3,_0x3dfe52,_0x478d73){return _0x551389(_0xa50b13-_0x4e71a4._0x402a90,_0xa50b13- -_0x4e71a4._0x27af53,_0x3dfe52,_0x478d73-_0x4e71a4._0x5cffa0);}return this[_0x19fa8e(0x323,_0x43b2bb._0x1c7a37,0x354,_0x43b2bb._0x45d0a2)](_0x4f92d4,_0x3547cb);}['getResponsesSocketSessionState'](_0x219597){const _0x1997c6={_0x289dbd:0x592,_0x50aa7a:0x4b1,_0x36c34d:0x5a8,_0x4175c5:0x480,_0x111f11:0x5f3,_0x133e81:0x512,_0x52b18a:0x53a,_0x3be65d:0x5e1,_0x4f1fa1:0x582,_0x38a9fe:0x55d,_0x422efe:0x4ce,_0xffa21f:0x479},_0x4a0b3e={_0x2f6d22:0x1a1},_0x3775ad={_0x27bd65:0x72,_0x500247:0x13f,_0x3fb3f1:0x1c1};function _0x1afa89(_0x5da268,_0x51be85,_0x55f690,_0x40fb8c){return _0x551389(_0x5da268-_0x3775ad._0x27bd65,_0x5da268-_0x3775ad._0x500247,_0x55f690,_0x40fb8c-_0x3775ad._0x3fb3f1);}const _0x20c743=this[_0x1afa89(_0x1997c6._0x289dbd,0x576,_0x1997c6._0x50aa7a,_0x1997c6._0x36c34d)](_0x219597);function _0x5a4818(_0x39aa48,_0xd21f1b,_0x246680,_0x502ec2){return _0x551389(_0x39aa48-_0x4a0b3e._0x2f6d22,_0x39aa48-0x1b3,_0xd21f1b,_0x502ec2-0x81);}let _0x275e86=this['responsesSocketSessions'][_0x5a4818(0x52a,0x5df,_0x1997c6._0x4175c5,_0x1997c6._0x111f11)](_0x20c743);return!_0x275e86&&(_0x275e86={'key':_0x20c743,'locked':![],'pending':Promise[_0x5a4818(_0x1997c6._0x133e81,_0x1997c6._0x52b18a,0x45e,_0x1997c6._0x3be65d)]()},this[_0x5a4818(_0x1997c6._0x4f1fa1,0x569,_0x1997c6._0x38a9fe,0x519)][_0x1afa89(_0x1997c6._0x422efe,0x43a,0x420,_0x1997c6._0xffa21f)](_0x20c743,_0x275e86)),_0x275e86;}[_0xf0dc29(0x35d,0x3ae,0x3ca,0x2e8)](_0xf3fb02){const _0xc46dc3={_0x4d73be:0x258,_0x893270:0x1a5,_0x240d92:0x264,_0x25b0c3:0x170,_0x2dca47:0x1e8,_0xa4db1a:0x162,_0x405276:0x1dc,_0x51a47c:0x271,_0x477950:0x21c,_0x1a59ed:0x22a,_0x5054ae:0x15b,_0x1f1ccb:0xf1,_0x177716:0x18f},_0x183b25={_0x4b9c33:0x108},_0x55e4f5={_0x140f39:0x23b,_0x3e9816:0xa9};function _0x7ffadb(_0xb24139,_0x146d10,_0x467e97,_0x495807){return _0x551389(_0xb24139-0x1,_0x467e97- -_0x55e4f5._0x140f39,_0xb24139,_0x495807-_0x55e4f5._0x3e9816);}if(_0xf3fb02[_0x7ffadb(0x1b4,0x1f1,_0xc46dc3._0x4d73be,_0xc46dc3._0x893270)]||_0xf3fb02[_0x7ffadb(_0xc46dc3._0x240d92,_0xc46dc3._0x25b0c3,0x214,0x1c0)]||_0xf3fb02['socket'])return;function _0xe93ebb(_0x4c24fe,_0x2216b6,_0x12b300,_0x30ed92){return _0xf0dc29(_0x2216b6- -_0x183b25._0x4b9c33,_0x2216b6-0x137,_0x30ed92,_0x30ed92-0x99);}this[_0xe93ebb(0x161,_0xc46dc3._0x2dca47,0x1b7,0x141)][_0x7ffadb(_0xc46dc3._0xa4db1a,_0xc46dc3._0x405276,0x13c,0x203)](_0xf3fb02[_0x7ffadb(0x15b,0x247,0x18f,_0xc46dc3._0x51a47c)])===_0xf3fb02&&this[_0xe93ebb(0x14e,_0xc46dc3._0x2dca47,_0xc46dc3._0x477950,0x2c8)][_0xe93ebb(0x17d,_0xc46dc3._0x1a59ed,_0xc46dc3._0x5054ae,0x1b7)](_0xf3fb02[_0x7ffadb(0x1dd,_0xc46dc3._0x1f1ccb,_0xc46dc3._0x177716,0x13c)]);}[_0x551389(0x3c6,0x453,0x4f4,0x466)](_0x5730a7){const _0x137400={_0x316b01:0x159},_0x3405ba={_0x3792da:0x83};function _0x5992a0(_0x4a66d7,_0x48b2a7,_0x4a78b3,_0x2110fa){return _0xf0dc29(_0x4a78b3- -_0x3405ba._0x3792da,_0x48b2a7-0xf2,_0x4a66d7,_0x2110fa-0x87);}return''+trimTrailingSlashes(this['baseUrl'])+this[_0x5992a0(_0x137400._0x316b01,0x255,0x208,0x167)]+'::'+_0x5730a7;}async['acquireResponsesSocketLock'](_0x154dbc){const _0x5bbb0e={_0x26d4ba:0xa0,_0x5ce51c:0x1cf,_0x1fdf8e:0x218,_0x2602f0:0x14f,_0x4155a3:0x122,_0x596171:0x20,_0x24bbe0:0x77,_0x9750df:0x184,_0x2663cd:0x11,_0x4c5c14:0xe6,_0x105f92:0x39,_0x53f9fd:0x189},_0x1151d2={_0x20196f:0x4bd,_0x573ee4:0xf7,_0x40140a:0x13},_0x1a25e0={_0x5eab9d:0xa2},_0x120c57={_0x5d5f3:0x62},_0x4fbc59={_0x2ad17c:0x579,_0x12c547:0x18d},_0xe637c=_0x154dbc[_0x6ada5c(-0x172,-_0x5bbb0e._0x26d4ba,-_0x5bbb0e._0x5ce51c,-_0x5bbb0e._0x1fdf8e)][_0x6ada5c(-_0x5bbb0e._0x2602f0,-0x13e,-0x10e,-0x109)](()=>{});function _0x6ada5c(_0x6a73b4,_0x6152ad,_0x4aa339,_0x1e5e2a){return _0x551389(_0x6a73b4-0x1a2,_0x6a73b4- -_0x4fbc59._0x2ad17c,_0x6152ad,_0x1e5e2a-_0x4fbc59._0x12c547);}let _0x5bdc3a;function _0x3ecf46(_0x4d4c72,_0x5517e1,_0x6b6cc5,_0x1a79b2){return _0xf0dc29(_0x1a79b2- -0x39f,_0x5517e1-_0x120c57._0x5d5f3,_0x6b6cc5,_0x1a79b2-0xcc);}const _0x2c789b=new Promise(_0x2d7cb0=>{_0x5bdc3a=_0x2d7cb0;});return _0x154dbc[_0x3ecf46(-_0x5bbb0e._0x4155a3,-_0x5bbb0e._0x596171,-0xd5,-_0x5bbb0e._0x24bbe0)]=_0xe637c[_0x3ecf46(-_0x5bbb0e._0x9750df,-0x7d,_0x5bbb0e._0x2663cd,-0xcf)](()=>_0x2c789b),await _0xe637c,_0x154dbc[_0x6ada5c(-_0x5bbb0e._0x4c5c14,-_0x5bbb0e._0x105f92,-_0x5bbb0e._0x53f9fd,-0xd4)]=!![],()=>{const _0x5745b6={_0x214772:0x3d1};function _0x262911(_0x93de79,_0x4801b1,_0x3964d2,_0xaf5846){return _0x3ecf46(_0x93de79-0x153,_0x4801b1-0xb5,_0x4801b1,_0x3964d2-_0x1a25e0._0x5eab9d);}_0x154dbc[_0x1f6bb7(0x312,_0x1151d2._0x20196f,0x3e6,0x495)]=![];function _0x1f6bb7(_0x365bb1,_0x209c0c,_0x2657ec,_0x36a47a){return _0x3ecf46(_0x365bb1-0xe7,_0x209c0c-0x142,_0x209c0c,_0x2657ec-_0x5745b6._0x214772);}_0x5bdc3a?.(),this[_0x262911(0x11f,_0x1151d2._0x573ee4,0x60,-_0x1151d2._0x40140a)](_0x154dbc);};}async[_0xf0dc29(0x3be,0x2ec,0x3a9,0x428)](_0x317f27,_0x33ccd7){const _0x3733e3={_0x14eb23:0x4fc,_0x43b99d:0x53a,_0x215cfa:0x407,_0x3bc377:0x26d,_0x551566:0x2f8,_0x267e3d:0x2e3,_0x3e7ed8:0x3b9,_0x5664ed:0x36a,_0x2b34f3:0x37b,_0x485e31:0x3c6,_0x13967a:0x327,_0x3afef4:0x410,_0x24cae6:0x3ca,_0x33ddf0:0x3d1,_0x19128a:0x2cc,_0x2350fd:0x14d,_0x5eac7d:0x1f8,_0x5f0c65:0x221,_0x2dedba:0x26e,_0x35d5b7:0x1af,_0x2ab63d:0x3c2,_0x305643:0x473,_0x369cc1:0x49f,_0x11d90b:0x468,_0x605ebf:0x37c},_0x437ab9={_0x31874d:0x75,_0x5860e7:0xb7},_0x1d5741={_0x3130a8:0x13c,_0x3dc6e2:0x1cf},_0x4dfed2=this[_0x4d36ce(0x459,0x56d,_0x3733e3._0x14eb23,_0x3733e3._0x43b99d)](_0x317f27);function _0x4d36ce(_0x1f34c1,_0x11ae86,_0x3dc2f6,_0x1ecd33){return _0xf0dc29(_0x3dc2f6-_0x1d5741._0x3130a8,_0x11ae86-0x19e,_0x1ecd33,_0x1ecd33-_0x1d5741._0x3dc6e2);}const _0x391b6c=toModelRequest(_0x4dfed2),_0x221673=await prepareProviderRequest(_0x391b6c,{'sessionManager':this[_0x4d36ce(0x46b,_0x3733e3._0x215cfa,0x4e9,0x444)],'requestMutators':this['requestMutators'],'signal':_0x33ccd7}),_0x241343=toChatRequest(_0x221673[_0x5f0368(_0x3733e3._0x3bc377,0x31a,_0x3733e3._0x551566,_0x3733e3._0x267e3d)]),_0x799f84=this[_0x4d36ce(_0x3733e3._0x3e7ed8,_0x3733e3._0x5664ed,0x335,_0x3733e3._0x2b34f3)]['resolveCredential'](this['apiKey'],_0x221673[_0x4d36ce(0x382,0x509,0x468,_0x3733e3._0x485e31)]);if(!_0x799f84)throw this[_0x4d36ce(_0x3733e3._0x13967a,_0x3733e3._0x3afef4,_0x3733e3._0x24cae6,_0x3733e3._0x33ddf0)]();function _0x5f0368(_0x51e1bd,_0x4f9d83,_0x2f43bf,_0x166a4e){return _0x551389(_0x51e1bd-_0x437ab9._0x31874d,_0x166a4e- -_0x437ab9._0x5860e7,_0x2f43bf,_0x166a4e-0x1b9);}return{'baseUrl':this[_0x5f0368(_0x3733e3._0x19128a,_0x3733e3._0x2350fd,_0x3733e3._0x5eac7d,_0x3733e3._0x5f0c65)][_0x5f0368(_0x3733e3._0x2dedba,0x1f8,_0x3733e3._0x35d5b7,0x282)](this[_0x4d36ce(_0x3733e3._0x2ab63d,0x3e5,_0x3733e3._0x305643,_0x3733e3._0x369cc1)],_0x221673[_0x5f0368(0x43c,0x380,0x3af,0x354)]),'credential':_0x799f84,'request':_0x241343,'session':_0x221673[_0x4d36ce(0x510,0x39e,_0x3733e3._0x11d90b,_0x3733e3._0x605ebf)]};}[_0x551389(0x4b5,0x406,0x405,0x45c)](_0x5dea01,_0x303c55,_0x54b1a7={}){const _0x1f708f={_0x347568:0x15,_0x16d6f7:0x6,_0x33200d:0xf2,_0x208e14:0x1af,_0x20ae77:0x1ac},_0x4678b9={_0x57adcd:0x122},_0x4abfc7={_0x47ea41:0x269};function _0x60a276(_0x9a7ec2,_0x490e1d,_0x139afe,_0x391e0f){return _0xf0dc29(_0x490e1d- -_0x4abfc7._0x47ea41,_0x490e1d-0x69,_0x9a7ec2,_0x391e0f-0x36);}if(!_0x54b1a7['forceFullReplay']){const _0x4636eb=this[_0x60a276(0x118,0x129,0x17e,0x1b7)](_0x5dea01);if(_0x4636eb&&_0x303c55['lastResponseId']&&_0x4636eb['responseId']===_0x303c55[_0x60a276(0x5e,0x7c,-_0x1f708f._0x347568,_0x1f708f._0x16d6f7)]){const _0x563030=toOpenAiResponsesRequest({..._0x5dea01,'messages':_0x5dea01['messages'][_0xce987a(0x25a,0x229,0x282,0x1e1)](_0x4636eb[_0xce987a(_0x1f708f._0x33200d,0x1cb,_0x1f708f._0x208e14,_0x1f708f._0x20ae77)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x5dea01,{'input':_0x563030,'previousResponseId':_0x4636eb['responseId']}),'previousResponseId':_0x4636eb['responseId']};}}function _0xce987a(_0x9db1ca,_0x3e28ba,_0x2f7ec,_0x5b9fdd){return _0x551389(_0x9db1ca-0x69,_0x2f7ec- -_0x4678b9._0x57adcd,_0x5b9fdd,_0x5b9fdd-0xdd);}return{'event':createOpenAiResponsesWebSocketEvent(_0x5dea01)};}[_0x551389(0x3ec,0x471,0x467,0x39f)](_0xf65adb){const _0xc2546a={_0x5674fc:0x15f,_0x2732d2:0x88,_0x5ae503:0x1d9,_0x1c8a6f:0x2f9,_0x647832:0x2f8,_0x124724:0x380,_0x5ce298:0x3a1,_0x2e9254:0x3f4,_0x475c48:0x161,_0x4f5853:0xb3,_0x36ae34:0x190,_0x405c3d:0x3e5},_0x5ac030={_0xe1bf99:0x1dc,_0x3a8ba0:0x1b2,_0x17f525:0x1e0},_0x43d396={_0x51da66:0xa};for(let _0x55cc9f=_0xf65adb[_0x420a31(_0xc2546a._0x5674fc,0x12c,_0xc2546a._0x2732d2,_0xc2546a._0x5ae503)][_0x35cf4f(0x2ea,_0xc2546a._0x1c8a6f,_0xc2546a._0x647832,0x2d6)]-0x1;_0x55cc9f>=0x0;_0x55cc9f-=0x1){const _0x486b1f=_0xf65adb[_0x35cf4f(_0xc2546a._0x124724,_0xc2546a._0x5ce298,0x31c,_0xc2546a._0x2e9254)][_0x55cc9f],_0x16c7fe=_0x486b1f[_0x420a31(_0xc2546a._0x475c48,0x207,_0xc2546a._0x4f5853,_0xc2546a._0x36ae34)]==='assistant'?_0x486b1f['providerState']?.[_0x35cf4f(_0xc2546a._0x405c3d,0x309,0x3e6,0x23b)]:void 0x0;if(_0x16c7fe)return{'messageIndex':_0x55cc9f,'responseId':_0x16c7fe};}function _0x35cf4f(_0x37a0e7,_0x46ef66,_0x8c59b3,_0x12debb){return _0x551389(_0x37a0e7-0x196,_0x46ef66- -0x79,_0x37a0e7,_0x12debb-_0x43d396._0x51da66);}function _0x420a31(_0x1da9c1,_0x3d3991,_0x22f3b1,_0x49a3dd){return _0xf0dc29(_0x1da9c1- -_0x5ac030._0xe1bf99,_0x3d3991-_0x5ac030._0x3a8ba0,_0x49a3dd,_0x49a3dd-_0x5ac030._0x17f525);}return void 0x0;}[_0x551389(0x54a,0x494,0x454,0x537)](_0x29696a){const _0xb33bdf={_0x5b986f:0x158,_0x293ac7:0x1ec,_0x1272e1:0x18c,_0x29d340:0x1c5},_0x37d300={_0x7ff849:0x1f3,_0x5522b1:0x94},_0x38313b={_0x490a6c:0x386};function _0x42be62(_0x5aafc8,_0x88d1df,_0x2d8f86,_0x549933){return _0x551389(_0x5aafc8-0x175,_0x549933- -_0x38313b._0x490a6c,_0x88d1df,_0x549933-0xea);}function _0x43a714(_0x40468d,_0x435529,_0x5cde38,_0x3213bb){return _0xf0dc29(_0x40468d- -0x1ea,_0x435529-_0x37d300._0x7ff849,_0x5cde38,_0x3213bb-_0x37d300._0x5522b1);}return _0x29696a instanceof ProviderStreamEventError&&(_0x29696a[_0x42be62(0xa6,0x9c,0x28,0x9b)]==='previous_response_not_found'||_0x29696a[_0x43a714(_0xb33bdf._0x5b986f,0x241,0x1b0,0x1ef)]===_0x43a714(0x16d,_0xb33bdf._0x293ac7,_0xb33bdf._0x1272e1,_0xb33bdf._0x29d340));}['invalidateResponsesSocketSession'](_0x4888eb){const _0x10abe4={_0x193ede:0x17d,_0x1304a8:0x15c,_0x45f273:0x121,_0x2534e0:0x199,_0x48c696:0x174,_0x1ca4c8:0x3de,_0xf5e404:0x114,_0x36c400:0x309,_0x176b36:0x2e1,_0x460ecb:0x25d,_0x3637e0:0x2ed,_0x5adb9a:0x2b3},_0x52c8cc={_0x2b224a:0x3dd,_0x59f179:0x1bd},_0x569125={_0x3db033:0x1cb},_0x2387a1=_0x4888eb[_0xe6d214(-_0x10abe4._0x193ede,-_0x10abe4._0x1304a8,-_0x10abe4._0x45f273,-0x14b)];_0x4888eb[_0xe6d214(-0x116,-_0x10abe4._0x2534e0,-0x121,-_0x10abe4._0x48c696)]=void 0x0,_0x4888eb[_0x91bd4a(0x384,_0x10abe4._0x1ca4c8,0x35f,0x460)]=void 0x0;function _0x91bd4a(_0x4f49e3,_0x55d0ed,_0x23c4ec,_0x440364){return _0xf0dc29(_0x4f49e3-0x14,_0x55d0ed-_0x569125._0x3db033,_0x440364,_0x440364-0x61);}_0x4888eb[_0xe6d214(-0x1b1,-0xc9,-0xf8,-0x44)]=void 0x0;function _0xe6d214(_0x372a56,_0x2f28f8,_0x2133b5,_0x154b1b){return _0xf0dc29(_0x2133b5- -_0x52c8cc._0x2b224a,_0x2f28f8-0x1d6,_0x2f28f8,_0x154b1b-_0x52c8cc._0x59f179);}_0x2387a1?.[_0xe6d214(-_0x10abe4._0xf5e404,-0x119,-0x13e,-0x13f)]===WebSocket[_0x91bd4a(_0x10abe4._0x36c400,_0x10abe4._0x176b36,_0x10abe4._0x460ecb,_0x10abe4._0x3637e0)]&&_0x2387a1['close'](0x3e8,_0x91bd4a(0x354,0x2b1,_0x10abe4._0x5adb9a,0x3f4));}async['getOrCreateResponsesSocket'](_0x4a7ca4,_0x102f68,_0xd0ce1f,_0x4cac29,_0x59fb07){const _0x152e03={_0x39c364:0x20e,_0x2d724b:0x1e9,_0x241d3f:0x179,_0x4d992d:0xce,_0x357ca9:0x1c6,_0x3bd3bf:0x196,_0x3660b9:0x1ad,_0x3e33af:0x6b,_0x4cdecc:0x8,_0x43380b:0x45,_0x1ac5f5:0x86,_0x49e964:0xc5,_0x3e2256:0xb9,_0x489605:0xd6,_0x365652:0x9d},_0x516aa3={_0x4773d0:0x245,_0xb4d844:0x202,_0x28132e:0x2b,_0x2b9877:0x3d5,_0xedcc0:0x379,_0x5f1593:0x486,_0x421721:0x39b,_0x19152e:0x444,_0x177821:0xe3,_0x42e364:0x182,_0x182a63:0x431,_0x50ddf4:0x40e,_0x3af83c:0x5c,_0x75d3fc:0x130,_0x399baa:0x5,_0x5541ef:0x37,_0x9b418b:0x7b,_0x10b65d:0x1b,_0x133213:0x7a,_0x33518e:0x83,_0x17948d:0x2d,_0x1e5117:0x33,_0x355c4e:0x6d,_0x81391c:0x29,_0x34f8f2:0xf,_0x2e48ec:0x5c,_0x28dd12:0x9d,_0x4bfbb1:0x122,_0x470d57:0x50,_0x12b73a:0x9a},_0x56ba4c={_0x1d1502:0x11c,_0x47fc9c:0x179,_0x131fd7:0x14b,_0x1da02e:0x239,_0x4cc043:0x23b,_0x24e287:0xfe,_0x592ea8:0x139,_0x5e2446:0x1c4},_0x41498b={_0x32a203:0x1ed},_0x506310={_0x1f853c:0x74,_0x4f1606:0x153};function _0x18fcd5(_0x46dc2e,_0x212626,_0x2bb31c,_0x4af109){return _0x551389(_0x46dc2e-_0x506310._0x1f853c,_0x212626- -0x457,_0x4af109,_0x4af109-_0x506310._0x4f1606);}function _0x45586d(_0x181c44,_0x31f0fc,_0x4b15da,_0x3bfd6b){return _0xf0dc29(_0x3bfd6b- -0x435,_0x31f0fc-_0x41498b._0x32a203,_0x181c44,_0x3bfd6b-0x10);}if(_0x102f68[_0x45586d(-_0x152e03._0x39c364,-_0x152e03._0x2d724b,-0x10d,-_0x152e03._0x241d3f)]?.[_0x45586d(-0x240,-_0x152e03._0x4d992d,-_0x152e03._0x357ca9,-_0x152e03._0x3bd3bf)]===WebSocket[_0x45586d(-_0x152e03._0x3660b9,-_0x152e03._0x3e33af,-0x1ab,-0x140)])return _0x102f68['socket'];if(_0x102f68['connecting'])return await _0x102f68[_0x18fcd5(0xae,-_0x152e03._0x4cdecc,-_0x152e03._0x43380b,0xcc)];_0x102f68[_0x18fcd5(-0xf7,-0x8,_0x152e03._0x1ac5f5,-0xb4)]=((async()=>{const _0x5e2a5c={_0x498c7c:0x103},_0x321d07={_0x4c7e40:0x39c,_0x71f782:0x72},_0x4e3cb5={_0x53bfb2:0x1f3,_0x2d14ed:0x82},_0x388d49=await this[_0x4f9627(0x2b9,_0x516aa3._0x4773d0,0x1dd,_0x516aa3._0xb4d844)]({'request':_0xd0ce1f[_0x274db3(0xb2,-0x90,-_0x516aa3._0x28132e,-0xab)],'body':_0x4cac29,'credential':_0xd0ce1f['credential'],'session':_0xd0ce1f['session'],'stream':!![]},{'accept':_0x4f9627(_0x516aa3._0x2b9877,_0x516aa3._0xedcc0,_0x516aa3._0x5f1593,_0x516aa3._0x421721),'includeContentType':![]});function _0x274db3(_0x5ad140,_0x249545,_0x564be4,_0x6b428a){return _0x45586d(_0x249545,_0x249545-_0x4e3cb5._0x53bfb2,_0x564be4-_0x4e3cb5._0x2d14ed,_0x564be4-0x14f);}_0x388d49['delete'](_0x4f9627(0x360,0x2b9,0x380,_0x516aa3._0x19152e));function _0x4f9627(_0x282cd3,_0x8ad006,_0x4f4758,_0x4c988f){return _0x18fcd5(_0x282cd3-0x11f,_0x282cd3-_0x321d07._0x4c7e40,_0x4f4758-_0x321d07._0x71f782,_0x4f4758);}const _0x5442bf=this[_0x4f9627(0x352,0x3a5,0x436,0x27e)]({'headers':Object[_0x274db3(-0x80,-0x140,-_0x516aa3._0x177821,-_0x516aa3._0x42e364)](_0x388d49[_0x4f9627(0x3c8,_0x516aa3._0x182a63,_0x516aa3._0x50ddf4,0x49d)]()),'url':(''+_0xd0ce1f[_0x274db3(_0x516aa3._0x3af83c,0x115,0x51,_0x516aa3._0x75d3fc)]+this['responsesPath'])[_0x274db3(_0x516aa3._0x399baa,0xe,-_0x516aa3._0x5541ef,_0x516aa3._0x9b418b)](/^http:/,_0x274db3(0x12,-_0x516aa3._0x10b65d,-0x71,-0x12b))['replace'](/^https:/,_0x274db3(-_0x516aa3._0x133213,-0xd9,-0xc5,-0x14f))}),_0x3b0c16=()=>{const _0xa33f5b={_0x1f88a0:0x487,_0xf104d0:0x96};function _0x4d6634(_0x3b141e,_0x30547c,_0x100d2d,_0x3137ca){return _0x4f9627(_0x3b141e- -_0xa33f5b._0x1f88a0,_0x30547c-0x89,_0x30547c,_0x3137ca-_0xa33f5b._0xf104d0);}function _0x453788(_0x1dc423,_0x5b5bc4,_0x32d3c0,_0x1d330a){return _0x274db3(_0x1dc423-0x4b,_0x1dc423,_0x32d3c0- -0x121,_0x1d330a-_0x5e2a5c._0x498c7c);}_0x102f68[_0x453788(-_0x56ba4c._0x1d1502,-_0x56ba4c._0x47fc9c,-_0x56ba4c._0x131fd7,-0xa5)]===_0x5442bf&&(_0x102f68[_0x453788(-0x64,-_0x56ba4c._0x1da02e,-0x14b,-_0x56ba4c._0x4cc043)]=void 0x0,_0x102f68[_0x4d6634(-0x17e,-_0x56ba4c._0x24e287,-_0x56ba4c._0x592ea8,-_0x56ba4c._0x5e2446)]=void 0x0),this['maybeEvictResponsesSocketSession'](_0x102f68);};_0x5442bf[_0x274db3(-0x2a,_0x516aa3._0x33518e,_0x516aa3._0x17948d,_0x516aa3._0x1e5117)]('close',_0x3b0c16);try{return throwIfAborted(_0x59fb07),_0x5442bf['readyState']!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x5442bf,_0x59fb07),throwIfAborted(_0x59fb07),_0x102f68['socket']=_0x5442bf,_0x5442bf;}catch(_0x20f872){_0x3b0c16();_0x5442bf[_0x274db3(-_0x516aa3._0x177821,-0x47,-0x47,-_0x516aa3._0x355c4e)]===WebSocket[_0x274db3(-_0x516aa3._0x81391c,0xac,_0x516aa3._0x34f8f2,_0x516aa3._0x2e48ec)]&&_0x5442bf[_0x4f9627(0x2d2,0x367,0x212,0x28f)](0x3e8,_0x274db3(-_0x516aa3._0x28dd12,_0x516aa3._0x4bfbb1,_0x516aa3._0x470d57,_0x516aa3._0x12b73a));throw _0x20f872;}})());try{return await _0x102f68[_0x18fcd5(_0x152e03._0x4cdecc,-0x8,-_0x152e03._0x49e964,0x7d)];}finally{_0x102f68[_0x18fcd5(-_0x152e03._0x3e2256,-0x8,_0x152e03._0x489605,-_0x152e03._0x365652)]=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x30f45c,_0x5133ba){const _0xb47906={_0x3bb2c0:0x4ed,_0x2704a0:0x3a1,_0x6a4a2c:0x3e3,_0xfbe53f:0x417,_0x434b3b:0x17c,_0x4c1d13:0x212,_0x4c3c6e:0xd1,_0x341dd6:0x14b,_0x55b86e:0x1d2,_0x4bd733:0x315,_0x5bedb5:0x2c5,_0x3a6687:0x22a,_0x49c84e:0x1b3,_0x3ce148:0x234,_0x2c0ae2:0x1cf,_0x4504de:0x1f5,_0x53d8b3:0x126,_0xe90b25:0xa7,_0x44935e:0x209,_0x6b2f6b:0x17d,_0x5686e4:0x196,_0x8da689:0x4de,_0x468189:0x40b,_0x45944e:0x4a8,_0x49d71f:0x265,_0x109a41:0x288,_0x5e1530:0x1f6,_0x6e581:0x20f,_0x194fdb:0x14b,_0x2a6583:0x315,_0x4256ee:0x452,_0x33a56d:0x348,_0x2ac635:0x204,_0x3923ce:0x248},_0x1b4c2f={_0x3f007a:0x177};function _0x5282bf(_0x251df2,_0x356f6b,_0x27bd99,_0x4f63a6){return _0xf0dc29(_0x27bd99-0x56,_0x356f6b-0xb4,_0x4f63a6,_0x4f63a6-0x1c9);}const _0x115d60=this[_0x5282bf(0x4fa,_0xb47906._0x3bb2c0,0x416,_0xb47906._0x2704a0)](_0x30f45c),_0x1d0579=this[_0x5282bf(_0xb47906._0x6a4a2c,0x489,_0xb47906._0xfbe53f,0x501)](_0x115d60[_0x102381(-_0xb47906._0x434b3b,-_0xb47906._0x4c1d13,-0x1b3,-0x28a)][_0x5282bf(0x3b5,0x34c,0x3a2,0x3ac)]);function _0x102381(_0x14b0a9,_0x354ae9,_0x4b0e64,_0x40e847){return _0x551389(_0x14b0a9-0x68,_0x4b0e64- -0x551,_0x40e847,_0x40e847-_0x1b4c2f._0x3f007a);}const _0x4a9b4c=await this[_0x102381(-0xb6,-_0xb47906._0x4c3c6e,-0x14f,-0xaf)](_0x1d0579);try{const _0x479b93=this[_0x102381(-0x12f,-0x1e1,-_0xb47906._0x341dd6,-_0xb47906._0x55b86e)](_0x115d60,_0x1d0579);try{yield*this[_0x5282bf(0x297,_0xb47906._0x4bd733,_0xb47906._0x5bedb5,0x2c4)](_0x115d60[_0x102381(-0xcc,-_0xb47906._0x3a6687,-_0xb47906._0x49c84e,-_0xb47906._0x3ce148)][_0x102381(-_0xb47906._0x2c0ae2,-_0xb47906._0x4504de,-_0xb47906._0x53d8b3,-_0xb47906._0xe90b25)],_0x1d0579,_0x115d60,_0x479b93[_0x102381(-0x1c5,-_0xb47906._0x44935e,-0x27a,-0x19d)],_0x5133ba?.[_0x5282bf(0x1f6,0x17c,0x241,0x306)]);return;}catch(_0x5f2308){if(!_0x479b93[_0x102381(-0x19f,-_0xb47906._0x6b2f6b,-_0xb47906._0x5686e4,-0x171)]||!this[_0x5282bf(0x44a,_0xb47906._0x8da689,_0xb47906._0x468189,_0xb47906._0x45944e)](_0x5f2308)){this[_0x102381(-_0xb47906._0x49d71f,-_0xb47906._0x109a41,-0x1be,-0x15d)](_0x1d0579);throw _0x5f2308;}}this['invalidateResponsesSocketSession'](_0x1d0579);const _0x353dcb=this[_0x102381(-_0xb47906._0x5e1530,-_0xb47906._0x6e581,-_0xb47906._0x194fdb,-0x141)](_0x115d60,_0x1d0579,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0x115d60[_0x5282bf(0x351,0x249,_0xb47906._0x2a6583,0x349)][_0x5282bf(_0xb47906._0x4256ee,0x3a1,0x3a2,_0xb47906._0x33a56d)],_0x1d0579,_0x115d60,_0x353dcb[_0x5282bf(_0xb47906._0x2ac635,_0xb47906._0x3923ce,0x24e,0x1a7)],_0x5133ba?.['signal']);}finally{_0x4a9b4c();}}async*[_0x551389(0x3c0,0x34e,0x32f,0x40d)](_0x44a257,_0x1e6ecb,_0x1fbb98,_0x1cd4dd,_0x3db157){const _0x21405a={_0x4cae22:0x1ca,_0x249eb0:0x7d,_0x2f0b80:0x11b,_0x370b89:0x1c1,_0x87682e:0x2b,_0x5780f1:0x13,_0xa4bd6d:0x67,_0x1fb13d:0x374,_0x52b4ac:0xb6,_0x472142:0x25,_0x1be82b:0x58,_0xce89a3:0x1fd,_0x3b7922:0x2df,_0xa17d7c:0x1fa,_0x3600b2:0xf4,_0x7c7633:0x25,_0x5eda52:0x24c,_0x135c4a:0x16f,_0x421abd:0xca},_0x43ddd8={_0x4823c5:0x49d,_0x489790:0x71},_0x36e666={_0x1e9289:0xf5,_0xdd2441:0x2d0,_0x492609:0x100},_0x4f7a06=await this[_0x5d532d(-_0x21405a._0x4cae22,-_0x21405a._0x249eb0,0xc,-0xdf)](_0x1fbb98,_0x3db157);function _0x570a69(_0x34e0a6,_0x163658,_0x208770,_0x1a3587){return _0x551389(_0x34e0a6-_0x36e666._0x1e9289,_0x34e0a6- -_0x36e666._0xdd2441,_0x163658,_0x1a3587-_0x36e666._0x492609);}const _0x17f34f=await this['getOrCreateResponsesSocket'](_0x44a257,_0x1e6ecb,_0x4f7a06,_0x1cd4dd,_0x3db157),_0x4d5beb=createOpenAiResponsesStreamParser(_0x1fbb98);throwIfAborted(_0x3db157),_0x17f34f[_0x5d532d(-0x207,-_0x21405a._0x2f0b80,-0xf1,-0x1c5)](JSON['stringify'](_0x1cd4dd));for await(const _0xb2c183 of iterateWebSocketMessages(_0x17f34f,_0x3db157)){const _0x1ea076=_0x4d5beb[_0x570a69(0xdc,_0x21405a._0x370b89,_0x21405a._0x87682e,0xb6)]?.(_0xb2c183)??[];yield*_0x1ea076;if(_0x4d5beb[_0x570a69(_0x21405a._0x5780f1,-0xc9,-_0x21405a._0xa4bd6d,0xfa)]?.())break;}if(!_0x4d5beb[_0x5d532d(-0x2cc,-0x21d,-_0x21405a._0x1fb13d,-0x299)]?.())throw new Error(_0x570a69(0x131,_0x21405a._0x52b4ac,0xa3,0x16c));const _0x8b8ebc=_0x4d5beb[_0x570a69(0x45,_0x21405a._0x472142,-_0x21405a._0x1be82b,0x52)]();function _0x5d532d(_0x54d295,_0x27a55b,_0x314136,_0x51d9a4){return _0xf0dc29(_0x51d9a4- -_0x43ddd8._0x4823c5,_0x27a55b-_0x43ddd8._0x489790,_0x314136,_0x51d9a4-0x36);}const _0x3b4c2d=_0x8b8ebc['providerState']?.[_0x5d532d(-_0x21405a._0xce89a3,-_0x21405a._0x3b7922,-0x1a4,-_0x21405a._0xa17d7c)]??_0x8b8ebc['id'];_0x3b4c2d&&(_0x1e6ecb[_0x570a69(_0x21405a._0x3600b2,0x8a,0x198,_0x21405a._0x7c7633)]=_0x3b4c2d),yield{'type':_0x570a69(0x1a6,_0x21405a._0x5eda52,_0x21405a._0x135c4a,_0x21405a._0x421abd),'response':_0x8b8ebc};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0xf0dc29(0x3ac,0x31c,0x37d,0x3b9),'openai-chat-completions',_0x551389(0x44f,0x3b6,0x46d,0x34f),_0x551389(0x200,0x2e9,0x3bc,0x2a5)];function isAnthropicSurface(_0x52096e){return _0x52096e==='anthropic-messages';}function providerFromSurface(_0x4b3a71){const _0x1a43f1={_0x16965c:0x2dc,_0x4044e5:0x33e,_0x1745a0:0x3a3,_0x54b7c6:0x2da,_0xd2edb2:0x298,_0x19d44f:0x346,_0x4ba90a:0x2d6,_0x22fb68:0x5cc,_0x3034f4:0x5a6,_0x58a1e0:0x43f},_0x148eaf={_0x422fce:0x1b},_0x2ba3e2={_0x363187:0xa9,_0x23b1d8:0x10f};function _0x5b19c3(_0x6eaa9c,_0x4cd038,_0x310129,_0x3c83db){return _0xf0dc29(_0x4cd038- -0x21,_0x4cd038-_0x2ba3e2._0x363187,_0x310129,_0x3c83db-_0x2ba3e2._0x23b1d8);}function _0x111a99(_0x4b8264,_0x237079,_0x8e7722,_0x380d02){return _0xf0dc29(_0x8e7722-0x1b2,_0x237079-0x162,_0x4b8264,_0x380d02-_0x148eaf._0x422fce);}return _0x4b3a71[_0x111a99(_0x1a43f1._0x16965c,_0x1a43f1._0x4044e5,_0x1a43f1._0x1745a0,_0x1a43f1._0x54b7c6)]('anthropic')?_0x5b19c3(0x35b,_0x1a43f1._0xd2edb2,_0x1a43f1._0x19d44f,_0x1a43f1._0x4ba90a):_0x111a99(_0x1a43f1._0x22fb68,_0x1a43f1._0x3034f4,0x510,_0x1a43f1._0x58a1e0);}function resolveDefaultBaseUrl(_0x26d75f){const _0x4f2548={_0x14c441:0x254,_0x5a6694:0x24a,_0x2a2467:0x184,_0x4af6f6:0xde,_0x4bf623:0x141,_0x26399b:0xf6,_0x3bac7b:0x144,_0x1a2b5c:0x177,_0x3f669b:0x15c,_0x27f37a:0x18d,_0x85ac0e:0x17e,_0x290e2b:0x31},_0x4614d0={_0x1cd5e1:0x1e7,_0x4ba83a:0x71},_0xc1dfa8={_0x13026b:0x1db};function _0x2c1df3(_0x538b77,_0x1a8b0c,_0x106bc6,_0x47bfa9){return _0xf0dc29(_0x538b77- -_0xc1dfa8._0x13026b,_0x1a8b0c-0x121,_0x47bfa9,_0x47bfa9-0xec);}function _0x16a245(_0x18b53a,_0x25c1fb,_0x571761,_0x25f66c){return _0xf0dc29(_0x18b53a- -_0x4614d0._0x1cd5e1,_0x25c1fb-_0x4614d0._0x4ba83a,_0x25f66c,_0x25f66c-0x101);}if(_0x26d75f===_0x16a245(0x1c5,_0x4f2548._0x14c441,_0x4f2548._0x5a6694,_0x4f2548._0x2a2467))return getProviderProfile(_0x2c1df3(_0x4f2548._0x4af6f6,_0x4f2548._0x4bf623,0xc4,0x13d))?.[_0x2c1df3(0x15c,_0x4f2548._0x26399b,_0x4f2548._0x3bac7b,_0x4f2548._0x1a2b5c)]??'https://api.anthropic.com';return getProviderProfile('openai')?.[_0x2c1df3(_0x4f2548._0x3f669b,0x19f,0x179,_0x4f2548._0x27f37a)]??_0x2c1df3(0xa6,_0x4f2548._0x85ac0e,0x91,-_0x4f2548._0x290e2b);}var ChatModel=class{[_0x551389(0x3ce,0x47c,0x500,0x433)];['maxTokens'];['surface'];[_0xf0dc29(0x35c,0x28d,0x2c3,0x2d6)];[_0xf0dc29(0x3a9,0x330,0x399,0x420)];[_0xf0dc29(0x36e,0x334,0x355,0x346)];constructor(_0x56216f={}){const _0x54d769={_0x14daa3:0x39,_0x431636:0x2b,_0xd65c4f:0x9f,_0x5c586b:0x1aa,_0x4f5249:0x1e0,_0x4378d5:0x7d,_0x3bb9c1:0x6,_0x4d116f:0xac,_0x5849bb:0x7d,_0x3cc7be:0x65,_0x402e99:0xbf,_0x591a5b:0x7a,_0x24b39e:0xb3,_0x4ce5b9:0x1b8,_0x36e6c4:0x1b2,_0x46b4c1:0x279,_0x593d60:0x2fc,_0x1003b7:0x144,_0x5ce153:0x13f,_0x5ad4c3:0x23a,_0xd5603b:0x1d0,_0x242c01:0x244,_0x283302:0x17d,_0x2a51f6:0x13a,_0xe76f53:0xd7,_0x270d4f:0x156,_0x3191fd:0x1e3,_0x32c0b3:0x16e,_0x2af312:0x75,_0x21e313:0x57,_0x426b5b:0x2d,_0xbbd4c5:0x16,_0x152009:0x9b,_0x25374e:0x23b,_0x33be74:0x23e,_0x403859:0x2b0,_0x4d8480:0xdd,_0x824fe4:0x29c,_0x3382e0:0x69,_0x57a5f3:0x3c,_0x1462cb:0x105,_0x15313f:0x282,_0x18658b:0x2df,_0x3bb78b:0x127,_0x5d18e0:0x12b,_0x3c6424:0x130,_0x3f0772:0x2d2,_0x3d873a:0x30,_0x6c7940:0xa8,_0x1eed0e:0xf3,_0x4f8431:0x96},_0x26d552={_0x2a7bf6:0x13e};this[_0x4ac2c9(-_0x54d769._0x14daa3,-_0x54d769._0x431636,-_0x54d769._0xd65c4f,0x5f)]=_0x56216f['model']??getDefaultModel(),this[_0x4ac2c9(-_0x54d769._0x5c586b,-0xdb,-0x19d,-_0x54d769._0x4f5249)]=_0x56216f['maxTokens']??getDefaultMaxTokens(),this[_0x4ac2c9(-_0x54d769._0x4378d5,-_0x54d769._0x3bb9c1,0x1d,-_0x54d769._0x4d116f)]=_0x56216f[_0x4ac2c9(-_0x54d769._0x5849bb,0x61,-_0x54d769._0x3cc7be,-_0x54d769._0x402e99)]??_0x4ac2c9(-0x3b,-0xf2,-0x5a,0x6e),this[_0x4ac2c9(-_0x54d769._0x591a5b,-_0x54d769._0x24b39e,-0x95,-0x107)]=providerFromSurface(this['surface']);function _0x31c336(_0x133e85,_0x2cd7da,_0x2945a2,_0x15333e){return _0xf0dc29(_0x15333e- -0xbe,_0x2cd7da-_0x26d552._0x2a7bf6,_0x133e85,_0x15333e-0x140);}function _0x4ac2c9(_0x3b3aa8,_0x2ce368,_0x1edaea,_0x369348){return _0xf0dc29(_0x3b3aa8- -0x3d6,_0x2ce368-0x24,_0x369348,_0x369348-0x144);}const _0x1369e8=trimTrailingSlashes(_0x56216f[_0x31c336(_0x54d769._0x4ce5b9,_0x54d769._0x36e6c4,0x202,_0x54d769._0x46b4c1)]??resolveDefaultBaseUrl(this['surface']));if(isAnthropicSurface(this[_0x4ac2c9(-0x7d,0x41,-0x165,-0x150)])){this[_0x31c336(_0x54d769._0x593d60,0x359,0x262,0x2eb)]=new AnthropicModel({'apiKey':_0x56216f[_0x4ac2c9(-0x157,-_0x54d769._0x1003b7,-_0x54d769._0x5ce153,-_0x54d769._0x5ad4c3)],'authScheme':_0x56216f[_0x31c336(0x206,_0x54d769._0xd5603b,0x208,_0x54d769._0x242c01)],'baseUrl':_0x1369e8,'fetch':_0x56216f[_0x4ac2c9(-0xab,-_0x54d769._0x283302,-_0x54d769._0x2a51f6,-_0x54d769._0xe76f53)],'maxTokens':this[_0x31c336(_0x54d769._0x270d4f,_0x54d769._0x3191fd,0x109,_0x54d769._0x32c0b3)],'model':this[_0x4ac2c9(-0x39,_0x54d769._0x2af312,0x4f,_0x54d769._0x21e313)],'reasoning':_0x56216f['reasoning'],'providerSessionResolver':_0x56216f[_0x4ac2c9(-0x6f,0x5b,-_0x54d769._0x426b5b,-_0x54d769._0xbbd4c5)],'requestMutators':_0x56216f[_0x4ac2c9(-0x14,0xd6,-0x43,_0x54d769._0x152009)]});return;}this[_0x31c336(0x2e5,_0x54d769._0x25374e,_0x54d769._0x33be74,_0x54d769._0x403859)]=new OpenAiModel({'apiKey':_0x56216f[_0x31c336(_0x54d769._0x4d8480,_0x54d769._0x2a51f6,_0x54d769._0x824fe4,0x1c1)],'baseUrl':_0x1369e8,'fetch':_0x56216f['fetch'],'headerResolver':_0x56216f[_0x4ac2c9(-_0x54d769._0x3382e0,_0x54d769._0x57a5f3,0x46,-_0x54d769._0x1462cb)],'maxTokens':this['maxTokens'],'model':this[_0x31c336(_0x54d769._0x15313f,0x36e,0x296,_0x54d769._0x18658b)],'reasoning':_0x56216f[_0x31c336(_0x54d769._0x3bb78b,_0x54d769._0x5d18e0,0x14f,_0x54d769._0x3c6424)],'providerSessionResolver':_0x56216f[_0x31c336(_0x54d769._0x3f0772,0x254,0x318,0x2a9)],'requestMutators':_0x56216f[_0x4ac2c9(-0x14,0x4e,-_0x54d769._0x3d873a,0xb3)],'webSocketFactory':_0x56216f[_0x4ac2c9(-_0x54d769._0x6c7940,-_0x54d769._0x1eed0e,-0x14d,-_0x54d769._0x4f8431)]});}[_0x551389(0x2fb,0x2d5,0x305,0x36e)](){const _0x142422={_0x2b8fc7:0x1,_0x2e366e:0x6c,_0x332018:0xc5,_0x501049:0x4e,_0x467632:0x22a,_0x10cffb:0x14c,_0x1470b4:0x1e1,_0x3ae996:0xf6,_0x22ffb3:0x159,_0xfb995f:0x165,_0x133cac:0x9e,_0x1da1fc:0x74},_0x51f389={_0x44f750:0x1df},_0x3bbc6c={_0x25dfe2:0x5f,_0x26245b:0x4fc,_0x49f4c0:0x25};function _0x4ac6ca(_0x56d726,_0x445d05,_0x114adf,_0xc8b5de){return _0x551389(_0x56d726-_0x3bbc6c._0x25dfe2,_0x114adf- -_0x3bbc6c._0x26245b,_0x56d726,_0xc8b5de-_0x3bbc6c._0x49f4c0);}function _0x567357(_0x358e99,_0x3dba18,_0x2721ab,_0x4a32cd){return _0x551389(_0x358e99-0x1f2,_0x4a32cd- -0x4d6,_0x2721ab,_0x4a32cd-_0x51f389._0x44f750);}if(!this[_0x567357(-_0x142422._0x2b8fc7,-_0x142422._0x2e366e,-_0x142422._0x332018,-_0x142422._0x501049)])throw new Error(_0x567357(-_0x142422._0x467632,-_0x142422._0x10cffb,-0x1ad,-_0x142422._0x1470b4)+this[_0x567357(-_0x142422._0x3ae996,-_0x142422._0x22ffb3,-_0x142422._0xfb995f,-_0x142422._0x133cac)]);return this[_0x4ac6ca(-0xfb,0x20,-_0x142422._0x1da1fc,-0xf7)];}[_0x551389(0x3b7,0x3b3,0x3a7,0x322)](){const _0x52811a={_0x39ea0e:0xb9,_0x101f51:0x1ff,_0x36815f:0x1e5,_0x598cd7:0x19c,_0x4b60bb:0x247,_0x1a94ef:0x187,_0x413c8c:0x5b,_0x249ea5:0xb7,_0x12c7f6:0x118,_0x2b9986:0xda},_0x2a2fa6={_0x4aa51e:0x8e,_0x2fbfac:0x527},_0x2bb86e={_0x36655e:0x1d2,_0x33811d:0x28,_0x332fea:0xaa};if(!this[_0x24c499(_0x52811a._0x39ea0e,_0x52811a._0x101f51,_0x52811a._0x36815f,_0x52811a._0x598cd7)])throw new Error(_0x2ad22c(-0x19e,-0xb8,-0x12,-0xbd)+this[_0x24c499(0x16a,_0x52811a._0x4b60bb,0x197,_0x52811a._0x1a94ef)]);function _0x24c499(_0xc39f23,_0x16f4d9,_0x25a064,_0x518640){return _0xf0dc29(_0x518640- -_0x2bb86e._0x36655e,_0x16f4d9-_0x2bb86e._0x33811d,_0x25a064,_0x518640-_0x2bb86e._0x332fea);}function _0x2ad22c(_0x2bc796,_0x34d1c8,_0x24c37e,_0x265b16){return _0x551389(_0x2bc796-_0x2a2fa6._0x4aa51e,_0x265b16- -_0x2a2fa6._0x2fbfac,_0x2bc796,_0x265b16-0xa5);}return this[_0x2ad22c(-_0x52811a._0x413c8c,-_0x52811a._0x249ea5,-_0x52811a._0x12c7f6,-_0x52811a._0x2b9986)];}[_0x551389(0x31c,0x33a,0x3e1,0x3d8)](_0x1cea6e,_0x14e460){const _0x38ebdf={_0x386fa7:0x1c1,_0x374b32:0x485,_0xce9208:0x51a,_0x1aee81:0x83,_0xa589e:0x3ba,_0x8a987d:0x3b6,_0x572e8e:0x3db,_0x3b4e4e:0x2fb,_0x1d3c18:0x13a,_0x20fc63:0x36,_0x1ddfd3:0x2ee,_0x387aba:0x274,_0x4e6dbd:0x361,_0x5c3e89:0x3c1,_0x361492:0x31c,_0x21caaa:0x371,_0x50f499:0x3b3,_0x383dba:0x3a7,_0xfe603c:0x11,_0xec47b8:0x4f,_0x2f0040:0x75},_0x5eda12={_0x4e1a0d:0x256,_0x3c26c7:0xcd},_0x20cce6={_0x16d66c:0xdf,_0x1dceee:0x20};function _0x52d891(_0x3563ef,_0x4388bf,_0x21fe8e,_0x5dfc68){return _0xf0dc29(_0x4388bf-_0x20cce6._0x16d66c,_0x4388bf-_0x20cce6._0x1dceee,_0x5dfc68,_0x5dfc68-0x1e8);}function _0x419d39(_0x87b760,_0xa52e0e,_0x5e6e4a,_0x28bad9){return _0xf0dc29(_0x5e6e4a- -_0x5eda12._0x4e1a0d,_0xa52e0e-_0x5eda12._0x3c26c7,_0xa52e0e,_0x28bad9-0x128);}switch(this[_0x419d39(0xfd,_0x38ebdf._0x386fa7,0x103,0x36)]){case _0x52d891(_0x38ebdf._0x374b32,0x48b,0x551,_0x38ebdf._0xce9208):return this[_0x419d39(0x76,-_0x38ebdf._0x1aee81,-0x60,-0x11b)]()['complete'](_0x1cea6e,_0x14e460);case _0x52d891(_0x38ebdf._0xa589e,_0x38ebdf._0x8a987d,_0x38ebdf._0x572e8e,_0x38ebdf._0x3b4e4e):return this[_0x419d39(_0x38ebdf._0x1d3c18,_0x38ebdf._0x20fc63,0x7e,0x6)]()[_0x52d891(0x33b,0x319,0x349,0x2f8)](_0x1cea6e,_0x14e460);case _0x52d891(_0x38ebdf._0x1ddfd3,0x2e9,_0x38ebdf._0x387aba,0x325):return this['getOpenAiDelegate']()[_0x52d891(_0x38ebdf._0x4e6dbd,_0x38ebdf._0x5c3e89,0x41d,_0x38ebdf._0x361492)](_0x1cea6e,_0x14e460);default:return this[_0x52d891(_0x38ebdf._0x21caaa,_0x38ebdf._0x50f499,_0x38ebdf._0x383dba,0x34e)]()[_0x419d39(-0x39,-_0x38ebdf._0xfe603c,-_0x38ebdf._0xec47b8,_0x38ebdf._0x2f0040)](_0x1cea6e,_0x14e460);}}[_0x551389(0x337,0x3fe,0x4e5,0x433)](_0x1d6940,_0x4679e5){const _0x547e4a={_0x524b6d:0x2cf,_0x2bf760:0x2c3,_0x467e00:0x2e2,_0x539ab0:0x23e,_0xd3c97a:0x3c7,_0x4857e5:0x374,_0x3e3512:0x364,_0x25f8cd:0x166,_0x238ec7:0x329,_0xabab14:0x3d1,_0x772be5:0x1b5,_0x183512:0x26d,_0x36ba7d:0x99,_0x37b349:0x141,_0x244184:0x169,_0x2a1c46:0x163,_0x1ed3f0:0xa4,_0x2cbc0a:0x8b},_0x1158e3={_0x58241d:0x27},_0x50b7b7={_0x19e523:0x171,_0x31d1e8:0x132};function _0x3bc21b(_0x3e3853,_0x3c4ec1,_0x771a12,_0x32f334){return _0xf0dc29(_0x3e3853- -_0x50b7b7._0x19e523,_0x3c4ec1-_0x50b7b7._0x31d1e8,_0x3c4ec1,_0x32f334-0x9a);}function _0x1eefa8(_0x188b8a,_0x31ec79,_0x3e77d9,_0x310ef9){return _0x551389(_0x188b8a-0x14d,_0x3e77d9- -0x8a,_0x31ec79,_0x310ef9-_0x1158e3._0x58241d);}switch(this[_0x1eefa8(0x2d8,0x49a,0x3ae,0x2c5)]){case _0x3bc21b(0x23b,_0x547e4a._0x524b6d,0x298,_0x547e4a._0x2bf760):return this[_0x1eefa8(0x297,_0x547e4a._0x467e00,0x24b,_0x547e4a._0x539ab0)]()[_0x1eefa8(_0x547e4a._0xd3c97a,0x3e2,_0x547e4a._0x4857e5,_0x547e4a._0x3e3512)](_0x1d6940,_0x4679e5);case _0x3bc21b(_0x547e4a._0x25f8cd,0x215,0x11e,0x1b3):return this[_0x1eefa8(0x384,0x2b8,_0x547e4a._0x238ec7,_0x547e4a._0xabab14)]()[_0x3bc21b(0x188,_0x547e4a._0x772be5,_0x547e4a._0x183512,0x18a)](_0x1d6940,_0x4679e5);case _0x3bc21b(_0x547e4a._0x36ba7d,_0x547e4a._0x37b349,0x8,_0x547e4a._0x244184):return this[_0x3bc21b(_0x547e4a._0x2a1c46,_0x547e4a._0x1ed3f0,0xe9,_0x547e4a._0x2cbc0a)]()['responseSocketStream'](_0x1d6940,_0x4679e5);default:return this['getOpenAiDelegate']()['chatStream'](_0x1d6940,_0x4679e5);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x551389(0x4cd,0x3f4,0x4ba,0x48b)];[_0x551389(0x3bc,0x416,0x3fc,0x404)];[_0x551389(0x35a,0x3a2,0x3a3,0x3a8)];[_0xf0dc29(0x243,0x2d8,0x164,0x1c6)];['tokenExchangeApiVersion'];constructor(_0x1dafb9){const _0x374c2e={_0x25aee1:0x611,_0x3d997e:0x573,_0x11ae30:0x56b,_0x4db1fb:0x59d,_0x43d9ca:0x538,_0x1cfc8c:0x47e,_0x51b8cf:0x59a,_0x4e3fc7:0x565},_0x331ae7={_0x49a9fd:0x87,_0x4f4e72:0xd5},_0xe7b72d={_0x223839:0x2da,_0x2a7577:0x1d0};this['accessToken']=_0x1dafb9['accessToken'];function _0x5f429f(_0x396c6e,_0x355f4c,_0x251e9b,_0x14b344){return _0xf0dc29(_0x14b344-_0xe7b72d._0x223839,_0x355f4c-_0xe7b72d._0x2a7577,_0x251e9b,_0x14b344-0x46);}this['baseUrl']=trimTrailingSlashes2(_0x1dafb9[_0x5f429f(0x6fe,0x68a,0x5ed,_0x374c2e._0x25aee1)]);function _0x4a13f2(_0x4de90b,_0x3697b4,_0x5f3381,_0x420884){return _0x551389(_0x4de90b-_0x331ae7._0x49a9fd,_0x420884-0x15c,_0x3697b4,_0x420884-_0x331ae7._0x4f4e72);}this[_0x5f429f(_0x374c2e._0x3d997e,_0x374c2e._0x11ae30,0x4cd,_0x374c2e._0x4db1fb)]=_0x1dafb9['fetch'],this[_0x4a13f2(_0x374c2e._0x43d9ca,0x406,0x4ab,_0x374c2e._0x1cfc8c)]=trimTrailingSlashes2(_0x1dafb9['githubApiUrl']),this['tokenExchangeApiVersion']=_0x1dafb9[_0x4a13f2(0x60e,_0x374c2e._0x51b8cf,0x4ce,_0x374c2e._0x4e3fc7)];}async[_0xf0dc29(0x280,0x264,0x36d,0x256)](_0x4cee6d){const _0x5885cb={_0x4dbfa3:0x4ca,_0x286633:0x3e3,_0x15524a:0x5d8,_0x5bbd73:0x5ed,_0x1919d7:0x62e,_0x19e014:0x439,_0x12baf8:0x40a,_0x251865:0x5ee,_0xbbae62:0x513,_0xd8d9b3:0x540,_0x3212c9:0x5de,_0x334720:0x5be,_0x5224fb:0x640,_0x2b1501:0x59c,_0x1a44b7:0x60f,_0x3a9788:0x520,_0x3184b3:0x5a6,_0x3409dc:0x5d1,_0x164248:0x6de,_0x4c9b63:0x6b8,_0x321466:0x62b,_0x4af93d:0x368,_0x297c9b:0x43d,_0x4aa575:0x5a6,_0x30c6d9:0x400,_0x3a2684:0x4c7,_0xe67ad0:0x32d,_0x35067c:0x606,_0xb1d6a1:0x764,_0x5e1802:0x6bd,_0x4b09e5:0x793,_0x41b5a2:0x6c9,_0x2d4e55:0x5d7,_0x2a2211:0x624,_0x2faf92:0x616,_0xaf5a3a:0x3a4,_0x528fff:0x345,_0x18d0dc:0x4a5,_0x7dafa1:0x555,_0x556fdf:0x4a7},_0x4644a2={_0xb05750:0x16c,_0x9095db:0x41,_0x39a8b0:0x16f},_0x1702b7={_0x2e7b26:0x316,_0x443257:0x13e,_0x5d1b98:0x150},_0x45d010=await this[_0x475622(0x38b,0x44f,_0x5885cb._0x4dbfa3,_0x5885cb._0x286633)](this['githubApiUrl']+_0x478a53(_0x5885cb._0x15524a,0x64b,0x69e,0x6d3),{'method':'GET','headers':new Headers({'accept':'application/json','authorization':_0x478a53(_0x5885cb._0x5bbd73,0x706,0x620,_0x5885cb._0x1919d7)+this[_0x478a53(0x6cf,0x5ff,0x62b,0x62d)],'editor-version':_0x475622(_0x5885cb._0x19e014,0x31f,0x3b2,_0x5885cb._0x12baf8),'user-agent':_0x478a53(0x52c,_0x5885cb._0x251865,_0x5885cb._0xbbae62,_0x5885cb._0xd8d9b3),'x-github-api-version':this[_0x478a53(_0x5885cb._0x3212c9,_0x5885cb._0x334720,_0x5885cb._0x5224fb,_0x5885cb._0x2b1501)]}),'signal':_0x4cee6d});if(!_0x45d010['ok'])return{'credential':{'kind':'oauth-token','value':this['accessToken']},'endpoints':{'api':this['baseUrl']}};function _0x478a53(_0x370ffb,_0xbeffa6,_0x749aa2,_0x3cfa84){return _0xf0dc29(_0x749aa2-_0x1702b7._0x2e7b26,_0xbeffa6-_0x1702b7._0x443257,_0xbeffa6,_0x3cfa84-_0x1702b7._0x5d1b98);}function _0x475622(_0x4abcda,_0x334144,_0x16282e,_0x121f72){return _0x551389(_0x4abcda-_0x4644a2._0xb05750,_0x121f72-_0x4644a2._0x9095db,_0x4abcda,_0x121f72-_0x4644a2._0x39a8b0);}const _0x14977f=await _0x45d010[_0x478a53(_0x5885cb._0x1a44b7,_0x5885cb._0x3a9788,_0x5885cb._0x3184b3,_0x5885cb._0x3409dc)]();return{'credential':{'kind':_0x478a53(_0x5885cb._0x164248,0x610,0x64b,_0x5885cb._0x4c9b63),'value':_0x14977f[_0x478a53(0x67b,_0x5885cb._0x321466,0x6a6,0x61b)]??this[_0x475622(_0x5885cb._0x4af93d,_0x5885cb._0x297c9b,0x423,0x435)]},'endpoints':{'api':_0x14977f[_0x475622(_0x5885cb._0x4aa575,_0x5885cb._0x30c6d9,0x542,_0x5885cb._0x3a2684)]?.[_0x475622(0x371,0x3d9,0x375,_0x5885cb._0xe67ad0)]??this[_0x478a53(_0x5885cb._0x35067c,0x61a,0x64d,0x598)],'originTracker':_0x14977f[_0x478a53(_0x5885cb._0xb1d6a1,0x71d,_0x5885cb._0x5e1802,_0x5885cb._0x4b09e5)]?.[_0x478a53(_0x5885cb._0x41b5a2,_0x5885cb._0x2d4e55,_0x5885cb._0x2a2211,0x5e9)],'proxy':_0x14977f[_0x478a53(0x787,_0x5885cb._0x2faf92,0x6bd,0x71d)]?.[_0x475622(_0x5885cb._0xaf5a3a,0x2af,_0x5885cb._0x528fff,0x396)],'telemetry':_0x14977f[_0x478a53(0x7a3,0x6e6,0x6bd,0x688)]?.[_0x475622(_0x5885cb._0x18d0dc,0x4c3,_0x5885cb._0x7dafa1,_0x5885cb._0x556fdf)]}};}};function trimTrailingSlashes2(_0x117531){return _0x117531['replace'](/\/+$/,'');}function createModelInfo(_0x26daba){const _0x37d06d={_0x2cfdb5:0x1f6,_0x2c905d:0x169,_0x27bf3b:0x126,_0x1bc63f:0x191,_0x5d55c3:0x2ed,_0x3a27e2:0x2bd,_0x4a4d5f:0x211,_0x212939:0x1c8,_0x93f1d3:0x32a},_0xbd5da7={_0x28e76f:0x10f},_0x5ac470={_0x2786f9:0x30};function _0x298e8d(_0x57e896,_0x27e94c,_0x5c2a27,_0x4ea110){return _0x551389(_0x57e896-_0x5ac470._0x2786f9,_0x27e94c- -0x1a4,_0x57e896,_0x4ea110-0x1d1);}const _0x23ed1d=_0x26daba['supported_endpoints']??_0x26daba[_0x2149e7(-_0x37d06d._0x2cfdb5,-_0x37d06d._0x2c905d,-0x111,-_0x37d06d._0x27bf3b)],_0x106763=_0x26daba[_0x2149e7(-_0x37d06d._0x1bc63f,-0x170,-0x211,-0x131)]?.['limits']?.[_0x298e8d(_0x37d06d._0x5d55c3,0x201,_0x37d06d._0x3a27e2,0x12b)];function _0x2149e7(_0x134dc9,_0x1da5a6,_0x11bb67,_0x15a86d){return _0x551389(_0x134dc9-_0xbd5da7._0x28e76f,_0x1da5a6- -0x4dc,_0x15a86d,_0x15a86d-0x152);}const _0x3753f9=_0x26daba[_0x298e8d(_0x37d06d._0x4a4d5f,_0x37d06d._0x212939,0x24d,0x24b)]?.[_0x298e8d(0x364,0x2e5,0x3b1,_0x37d06d._0x93f1d3)]?.['max_output_tokens'],_0x10c41e=_0x106763!==void 0x0||_0x3753f9!==void 0x0?{..._0x106763!==void 0x0?{'contextWindow':_0x106763}:{},..._0x3753f9!==void 0x0?{'maxOutput':_0x3753f9}:{}}:void 0x0;return{'id':_0x26daba['id'],'name':_0x26daba['name']??_0x26daba['id'],..._0x10c41e?{'limits':_0x10c41e}:{},..._0x23ed1d?{'supportedEndpoints':_0x23ed1d}:{}};}function deduplicateModels(_0x4bc2da){const _0x2db6f5={_0x3f97fd:0x309,_0x779124:0x3c1,_0x155674:0x3db,_0x11bf9f:0x350},_0x31bbc4={_0x17eb78:0x59,_0x43a9f0:0xa2},_0x5c478b={_0x1b4937:0x1b8};function _0x380cc2(_0x3b79b7,_0x23e369,_0x5d86a8,_0x124db0){return _0x551389(_0x3b79b7-0x1ce,_0x124db0- -_0x5c478b._0x1b4937,_0x23e369,_0x124db0-0x45);}function _0x34b556(_0x2dd817,_0x792ec8,_0x91b54a,_0x55e4e7){return _0xf0dc29(_0x792ec8-_0x31bbc4._0x17eb78,_0x792ec8-_0x31bbc4._0x43a9f0,_0x2dd817,_0x55e4e7-0x173);}const _0x174989=new Map();for(const _0x44a214 of _0x4bc2da){!_0x174989['has'](_0x44a214['id'])&&_0x174989[_0x34b556(0x377,_0x2db6f5._0x3f97fd,0x2b0,0x391)](_0x44a214['id'],_0x44a214);}return Array[_0x34b556(0x3db,_0x2db6f5._0x779124,0x36e,0x488)](_0x174989[_0x34b556(0x314,_0x2db6f5._0x155674,0x447,_0x2db6f5._0x11bf9f)]());}function hasUserPromptContent(_0x26240e){const _0x2e2609={_0x5f22ef:0x629,_0x461114:0x589,_0x578a63:0x56f,_0x9639a2:0x454,_0x40702b:0x4e6,_0x1c7643:0x60b,_0x12177f:0x655,_0x2a632d:0x4cc,_0x4c1e6d:0x485},_0x2e8218={_0x2d64a0:0x131,_0x1586e3:0x1c0,_0x11a863:0x1ad,_0xa255ab:0xdc,_0x5cf96f:0x7f,_0x193e2d:0x35,_0x30fc89:0x99,_0x2169d4:0x78,_0x3cae63:0x7c,_0x128d84:0x37,_0x4ecc24:0x158,_0x1289c0:0xa7,_0x14c67e:0xa7,_0x4ad5f9:0xac,_0x228b71:0x78,_0x361c61:0x166,_0x2a57d2:0x118,_0x39b14e:0x7d,_0x224c55:0x146},_0x1af748={_0x1e0447:0x423},_0x41cb09={_0x172db3:0x165},_0x523755={_0x58b1be:0x3};function _0x2fdf6b(_0x58996f,_0x4aabc8,_0x24e0a6,_0xf95d37){return _0x551389(_0x58996f-_0x523755._0x58b1be,_0x4aabc8-0xe2,_0x24e0a6,_0xf95d37-0x99);}function _0x103072(_0x1cb877,_0x1ffdb4,_0x1f2442,_0x3ec1a5){return _0x551389(_0x1cb877-_0x41cb09._0x172db3,_0x1f2442-0x116,_0x1cb877,_0x3ec1a5-0x178);}if(typeof _0x26240e==='string')return _0x26240e[_0x103072(_0x2e2609._0x5f22ef,_0x2e2609._0x461114,_0x2e2609._0x578a63,0x5fd)]()[_0x2fdf6b(0x375,_0x2e2609._0x9639a2,0x395,_0x2e2609._0x40702b)]>0x0;if(!Array[_0x103072(0x5b5,_0x2e2609._0x1c7643,0x593,_0x2e2609._0x12177f)](_0x26240e))return![];return _0x26240e[_0x103072(_0x2e2609._0x2a632d,0x47d,0x4e6,_0x2e2609._0x4c1e6d)](_0x360490=>{const _0x2c0f0f={_0x3fd20d:0x16f};function _0x4e9777(_0x208fba,_0x431b64,_0x454e7b,_0x5d72a7){return _0x2fdf6b(_0x208fba-0xee,_0x431b64- -_0x1af748._0x1e0447,_0x5d72a7,_0x5d72a7-0xb5);}if(!_0x360490||typeof _0x360490!==_0x317099(-_0x2e8218._0x2d64a0,-0x106,-_0x2e8218._0x1586e3,-0x124))return![];function _0x317099(_0x1e1580,_0x32a1f0,_0x5c0a0b,_0x3505b0){return _0x103072(_0x1e1580,_0x32a1f0-0x145,_0x5c0a0b- -0x5aa,_0x3505b0-_0x2c0f0f._0x3fd20d);}const _0x23f17d=_0x360490;return(_0x23f17d['type']===_0x4e9777(_0x2e8218._0x11a863,_0x2e8218._0xa255ab,_0x2e8218._0x5cf96f,_0x2e8218._0x193e2d)||_0x23f17d[_0x317099(-0x19b,-0x298,-0x1cd,-0x1d5)]===_0x4e9777(-_0x2e8218._0x30fc89,-_0x2e8218._0x2169d4,-_0x2e8218._0x3cae63,-_0x2e8218._0x128d84))&&typeof _0x23f17d['text']===_0x4e9777(_0x2e8218._0x4ecc24,_0x2e8218._0x1289c0,_0x2e8218._0x1289c0,_0x2e8218._0x14c67e)&&_0x23f17d[_0x4e9777(-_0x2e8218._0x4ad5f9,-_0x2e8218._0x228b71,0x6f,-_0x2e8218._0x361c61)][_0x4e9777(0xce,_0x2e8218._0x2a57d2,_0x2e8218._0x39b14e,0x1ab)]()[_0x317099(-0xd4,-_0x2e8218._0x224c55,-0x122,-0x19a)]>0x0;});}function _isUserPromptEntry(_0x2c179e){const _0x5f03ef={_0x37d7db:0x189,_0x25cbdc:0x193,_0x4a7833:0xf1,_0x13ae22:0x48,_0x93dcc9:0x2af,_0x1777b4:0x114,_0x25e783:0x87,_0x11d3f6:0x50,_0x3c3de1:0xce,_0x29013b:0x1d},_0x3817d={_0x5b0b57:0x119,_0x4258df:0x11a};if(!_0x2c179e||typeof _0x2c179e!==_0x13ce0a(-0x107,-0x179,-_0x5f03ef._0x37d7db,-0x58))return![];const _0x8e7044=_0x2c179e;function _0x4863be(_0x43a153,_0x346ce4,_0x14ac78,_0x5286e2){return _0x551389(_0x43a153-_0x3817d._0x5b0b57,_0x5286e2- -0x4c6,_0x14ac78,_0x5286e2-_0x3817d._0x4258df);}if(_0x8e7044[_0x4863be(-_0x5f03ef._0x25cbdc,-_0x5f03ef._0x4a7833,-0x7a,-0xaa)]!==_0x4863be(-0x11d,-0x5e,-0x76,-_0x5f03ef._0x13ae22))return![];if(_0x8e7044[_0x4863be(-0x21f,-0x2e0,-_0x5f03ef._0x93dcc9,-0x1ff)]!==void 0x0&&_0x8e7044[_0x13ce0a(-_0x5f03ef._0x1777b4,-0x1f4,-0x52,-0x9e)]!==_0x13ce0a(_0x5f03ef._0x25e783,0x132,-_0x5f03ef._0x11d3f6,_0x5f03ef._0x3c3de1))return![];function _0x13ce0a(_0x438c0a,_0x52ee8c,_0x5404e5,_0x4e85ba){return _0x551389(_0x438c0a-0xa7,_0x438c0a- -0x3db,_0x5404e5,_0x4e85ba-0x18a);}return hasUserPromptContent(_0x8e7044[_0x4863be(-_0x5f03ef._0x29013b,-0x45,-0xe3,-0x35)]);}function _0x5b12(_0x329a1b,_0x6115b5){_0x329a1b=_0x329a1b-0x114;const _0x53da09=_0x53da();let _0x5b122f=_0x53da09[_0x329a1b];if(_0x5b12['uOavGj']===undefined){var _0x27dcf9=function(_0x20b80d){const _0x25fc3c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xed469c='',_0x25d473='';for(let _0x14750a=0x0,_0x2af0b6,_0x47a4c1,_0x33e7b3=0x0;_0x47a4c1=_0x20b80d['charAt'](_0x33e7b3++);~_0x47a4c1&&(_0x2af0b6=_0x14750a%0x4?_0x2af0b6*0x40+_0x47a4c1:_0x47a4c1,_0x14750a++%0x4)?_0xed469c+=String['fromCharCode'](0xff&_0x2af0b6>>(-0x2*_0x14750a&0x6)):0x0){_0x47a4c1=_0x25fc3c['indexOf'](_0x47a4c1);}for(let _0x227325=0x0,_0x44d36e=_0xed469c['length'];_0x227325<_0x44d36e;_0x227325++){_0x25d473+='%'+('00'+_0xed469c['charCodeAt'](_0x227325)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x25d473);};_0x5b12['gLsocI']=_0x27dcf9,_0x5b12['ZoZJqG']={},_0x5b12['uOavGj']=!![];}const _0x4541a2=_0x53da09[0x0],_0x36c171=_0x329a1b+_0x4541a2,_0x42a2cd=_0x5b12['ZoZJqG'][_0x36c171];return!_0x42a2cd?(_0x5b122f=_0x5b12['gLsocI'](_0x5b122f),_0x5b12['ZoZJqG'][_0x36c171]=_0x5b122f):_0x5b122f=_0x42a2cd,_0x5b122f;}function determineInitiator(_0x4e8e02){const _0x46c7d5={_0x1d0eb9:0x14f,_0x8e4ed7:0x1b,_0x1bc437:0x88,_0x571752:0x70,_0xcfb25c:0xb0,_0xda746f:0x52,_0x3ed7a7:0x172,_0x46d72b:0x82,_0x8db3b4:0x151,_0x106332:0x115,_0x472d00:0x156,_0x18d8ef:0x19d,_0x393726:0xb2,_0x3ce3d2:0xb0,_0x5bbbd1:0xd7,_0x284925:0x9e,_0x2f73cb:0x61,_0x9935e6:0x8,_0x2d141d:0x187,_0x5725ac:0x14e,_0x14b88b:0xb4,_0xcf1f35:0xb1},_0x3bf5c2={_0x3c68d6:0x2d},_0x3fcfe5={_0x3c7ec9:0x36a,_0x964eca:0x5a};function _0x2c06dd(_0x2e073b,_0x2f81cf,_0x15af4d,_0x4cd9bb){return _0x551389(_0x2e073b-0x10a,_0x4cd9bb- -_0x3fcfe5._0x3c7ec9,_0x15af4d,_0x4cd9bb-_0x3fcfe5._0x964eca);}if(!_0x4e8e02||typeof _0x4e8e02!==_0x1c4702(-_0x46c7d5._0x1d0eb9,-0xd8,-0x3d,-0xf9))return _0x1c4702(0x19,_0x46c7d5._0x8e4ed7,-_0x46c7d5._0x1bc437,-0xbb);const _0x3be5ef=_0x2c06dd(_0x46c7d5._0x571752,0x2c,0x18b,_0x46c7d5._0xcfb25c)in _0x4e8e02?_0x4e8e02[_0x1c4702(-0x67,_0x46c7d5._0xda746f,-0x19,0x4d)]:_0x2c06dd(_0x46c7d5._0x3ed7a7,_0x46c7d5._0x46d72b,_0x46c7d5._0x8db3b4,_0x46c7d5._0x106332)in _0x4e8e02?_0x4e8e02[_0x1c4702(_0x46c7d5._0x472d00,0x12b,_0x46c7d5._0x18d8ef,_0x46c7d5._0x393726)]:void 0x0;function _0x1c4702(_0x4126e3,_0x475a9d,_0x3c14fd,_0x5ebd44){return _0xf0dc29(_0x5ebd44- -0x2ee,_0x475a9d-_0x3bf5c2._0x3c68d6,_0x3c14fd,_0x5ebd44-0xca);}if(!Array[_0x1c4702(0x64,0x162,-0x3,_0x46c7d5._0x3ce3d2)](_0x3be5ef)||_0x3be5ef[_0x1c4702(-0x22,-_0x46c7d5._0x5bbbd1,-0xdf,-0x5b)]===0x0)return'agent';return _isUserPromptEntry(_0x3be5ef[_0x3be5ef[_0x2c06dd(-_0x46c7d5._0x284925,_0x46c7d5._0x2f73cb,-0xc7,_0x46c7d5._0x9935e6)]-0x1])?_0x1c4702(_0x46c7d5._0x2d141d,_0x46c7d5._0x5725ac,_0x46c7d5._0x14b88b,_0x46c7d5._0xcf1f35):'agent';}function isUnsupportedApiForModel(_0x370dd2){const _0x419549={_0x28e3c9:0x15,_0x54cbd1:0xa},_0x3a64a7={_0x1b19e8:0x2c7,_0x119b2d:0xee};function _0x2063bd(_0x54464a,_0x581148,_0x570cd7,_0xe4f0bf){return _0xf0dc29(_0x570cd7- -_0x3a64a7._0x1b19e8,_0x581148-_0x3a64a7._0x119b2d,_0xe4f0bf,_0xe4f0bf-0x14);}return _0x370dd2['includes'](_0x2063bd(0x5a,_0x419549._0x28e3c9,0x2,_0x419549._0x54cbd1));}function createResponseError(_0x3fe5b7,_0x2b4d3c){const _0x35e5f3={_0x4a843d:0x1b4,_0x11918f:0x285,_0x421d56:0x227,_0x813600:0x26f,_0x313561:0x2b2,_0x432ad4:0x2c2,_0x3483c1:0x27c,_0xbcd9fa:0x3a1},_0x190cfd={_0x112c96:0xcb,_0x5dd124:0xbf};function _0x1b57d9(_0x45359b,_0x22fdd5,_0x25d5a9,_0x29f365){return _0x551389(_0x45359b-0xe8,_0x22fdd5- -0x2ba,_0x45359b,_0x29f365-0x4f);}if(_0x3fe5b7===0x191||_0x3fe5b7===0x193)return new Error(_0x49a40c(_0x35e5f3._0x4a843d,_0x35e5f3._0x11918f,_0x35e5f3._0x421d56,0xdc));function _0x49a40c(_0x299248,_0x39bb80,_0xf25064,_0x3d03d5){return _0x551389(_0x299248-_0x190cfd._0x112c96,_0x299248- -0x19d,_0x3d03d5,_0x3d03d5-_0x190cfd._0x5dd124);}if(_0x3fe5b7===0x198||_0x3fe5b7===0x1ad)return new Error(_0x49a40c(_0x35e5f3._0x813600,_0x35e5f3._0x313561,0x1c6,0x2b9));if(_0x3fe5b7===0x190)return new Error(_0x49a40c(_0x35e5f3._0x432ad4,_0x35e5f3._0x3483c1,_0x35e5f3._0xbcd9fa,0x3b0)+_0x2b4d3c);return new Error(_0x2b4d3c||'GitHub\x20API\x20error\x20'+_0x3fe5b7);}var GitHubModel=class extends OpenAiModel{[_0x551389(0x3ad,0x488,0x41f,0x3f9)];[_0xf0dc29(0x2b7,0x1e7,0x33d,0x31b)]=new Map();[_0xf0dc29(0x359,0x313,0x2c1,0x2ce)];constructor(_0x1836f4={}){const _0x1b8cfb={_0x2c8e79:0xf5,_0x34289e:0x59,_0x2a3b79:0x2a8,_0x8e4db:0x371,_0x506034:0x36b,_0x574dfe:0x20d,_0x2a1b40:0x2fc,_0x5d86ce:0x15c,_0x219547:0x292,_0x11e6a2:0x1f6,_0x5bc2e4:0x1f2,_0x948fda:0x5b,_0x41112b:0x13c,_0x322b6e:0x65,_0x4195ce:0x26a,_0x2f86d2:0x2ff,_0x1f9123:0x22c,_0x490897:0x2b7,_0x33e9f3:0x124,_0x1eae2d:0x53,_0x2dbd49:0x358,_0x46469a:0x61,_0x27656c:0x20,_0x282875:0x70,_0x2692c9:0xb0,_0x511663:0x95,_0xc05c14:0x1a4,_0x179f20:0x10c,_0x5c518e:0x1d1,_0x3d905a:0x16b,_0x11a36b:0xc7,_0x17d27e:0xa9,_0x5d7530:0x2d6,_0x3a2cb0:0x1f5,_0x553455:0x171,_0xbd65ba:0x1a9,_0x2fd6fa:0x101,_0x574e6b:0x122,_0x3e0f35:0x1e8,_0x59e7d0:0x31a,_0x825ecc:0x2e4,_0x4d87cb:0x354,_0x57b05b:0x2f,_0x38f6e0:0x63,_0x299a38:0x104,_0xe928c0:0x306,_0x3d3a4b:0x29c},_0x1b3d0b={_0x469ab8:0x148},_0x2f6e8a={_0x380f8c:0x3,_0x18d7d0:0x387},_0x58ea9b=trimTrailingSlashes2(_0x1836f4['baseUrl']??_0x2374fe(-0xfb,-_0x1b8cfb._0x2c8e79,0x10,-_0x1b8cfb._0x34289e)),_0x4c1b67=_0x1836f4[_0x3f1c45(_0x1b8cfb._0x2a3b79,_0x1b8cfb._0x8e4db,_0x1b8cfb._0x506034,0x2e9)]??globalThis[_0x3f1c45(0x2a8,0x364,_0x1b8cfb._0x574dfe,_0x1b8cfb._0x2a1b40)],_0x13754a=_0x1836f4['providerSessionResolver']??(_0x1836f4[_0x2374fe(0x50,0x15b,_0x1b8cfb._0x5d86ce,0x6d)]?new GitHubAccessTokenResolver({'accessToken':_0x1836f4[_0x3f1c45(_0x1b8cfb._0x219547,_0x1b8cfb._0x11e6a2,0x26f,_0x1b8cfb._0x5bc2e4)],'baseUrl':_0x58ea9b,'fetch':_0x4c1b67,'githubApiUrl':_0x1836f4[_0x2374fe(-_0x1b8cfb._0x948fda,0x23,-_0x1b8cfb._0x41112b,-_0x1b8cfb._0x322b6e)]??_0x3f1c45(_0x1b8cfb._0x4195ce,_0x1b8cfb._0x2f86d2,_0x1b8cfb._0x1f9123,_0x1b8cfb._0x490897),'tokenExchangeApiVersion':_0x1836f4['tokenExchangeApiVersion']??_0x2374fe(-0x112,0x44,-0xed,-0x97)}):void 0x0);function _0x2374fe(_0x41a746,_0x133906,_0x1e6575,_0x3696d8){return _0x551389(_0x41a746-_0x2f6e8a._0x380f8c,_0x3696d8- -_0x2f6e8a._0x18d7d0,_0x133906,_0x3696d8-0x135);}const _0x2ae624=_0x1836f4['editorVersion']??_0x2374fe(-0x4a,0xcf,_0x1b8cfb._0x33e9f3,_0x1b8cfb._0x1eae2d),_0x55d75c=_0x1836f4[_0x3f1c45(0x26b,0x20d,_0x1b8cfb._0x2dbd49,0x34d)]??_0x2374fe(_0x1b8cfb._0x46469a,-0x61,-_0x1b8cfb._0x27656c,-_0x1b8cfb._0x282875);function _0x3f1c45(_0x37873d,_0x2d323f,_0xccc0a4,_0x58cd5d){return _0x551389(_0x37873d-0x13c,_0x37873d- -0x162,_0x2d323f,_0x58cd5d-_0x1b3d0b._0x469ab8);}const _0x8071e8=({body:_0x62b87e})=>{return{'editor-plugin-version':_0x55d75c,'editor-version':_0x2ae624,'x-initiator':determineInitiator(_0x62b87e),'x-request-id':randomUUID()};},_0x37c9c8={'apiKey':_0x1836f4[_0x2374fe(_0x1b8cfb._0x2692c9,-0x6d,_0x1b8cfb._0x511663,-0x29)],'baseUrl':_0x58ea9b,'fetch':_0x4c1b67,'maxTokens':_0x1836f4['maxTokens'],'model':_0x1836f4[_0x2374fe(_0x1b8cfb._0xc05c14,_0x1b8cfb._0x179f20,_0x1b8cfb._0x5c518e,_0x1b8cfb._0x2c8e79)],'reasoning':_0x1836f4[_0x3f1c45(_0x1b8cfb._0x3d905a,_0x1b8cfb._0x11a36b,0x206,_0x1b8cfb._0x17d27e)],'providerSessionResolver':_0x13754a,'requestMutators':_0x1836f4['requestMutators'],'headerResolver':_0x8071e8};super(_0x37c9c8),this[_0x3f1c45(_0x1b8cfb._0x5d7530,0x296,0x324,0x35d)]=_0x1836f4[_0x3f1c45(_0x1b8cfb._0x5d7530,0x1eb,0x26e,_0x1b8cfb._0x3a2cb0)]??_0x3f1c45(0x1d5,0x101,_0x1b8cfb._0x553455,0x293),this[_0x2374fe(_0x1b8cfb._0xbd65ba,0xc1,0x8f,_0x1b8cfb._0x2fd6fa)]=new AnthropicModel({'apiKey':_0x1836f4['apiKey'],'authScheme':'bearer','baseUrl':_0x58ea9b,'fetch':_0x4c1b67,'headerResolver':_0x8071e8,'maxTokens':_0x1836f4[_0x3f1c45(_0x1b8cfb._0xbd65ba,_0x1b8cfb._0x574e6b,_0x1b8cfb._0x3e0f35,0x280)],'model':_0x1836f4[_0x3f1c45(_0x1b8cfb._0x59e7d0,0x23f,_0x1b8cfb._0x825ecc,_0x1b8cfb._0x4d87cb)],'reasoning':_0x1836f4[_0x2374fe(_0x1b8cfb._0x57b05b,-_0x1b8cfb._0x38f6e0,-_0x1b8cfb._0x299a38,-0xba)],'providerSessionResolver':_0x13754a,'requestMutators':_0x1836f4[_0x3f1c45(0x33f,_0x1b8cfb._0xe928c0,_0x1b8cfb._0x3d3a4b,0x39d)]});}['createMissingCredentialError'](){const _0x4595c1={_0x1d3985:0xd0},_0x392805={_0x1c4fa5:0xd1};function _0x9e43dc(_0x47fefe,_0x21fce7,_0x5503f1,_0x3d8290){return _0xf0dc29(_0x5503f1- -0x366,_0x21fce7-_0x392805._0x1c4fa5,_0x3d8290,_0x3d8290-0x1e5);}return new Error(_0x9e43dc(-0x31,_0x4595c1._0x1d3985,0x59,0xdf));}[_0xf0dc29(0x1f3,0x26b,0x2a2,0x29d)](_0x3b100e){const _0xe66555={_0x26fffa:0x35a,_0x3bb1cb:0x2f2,_0x456c57:0x1ba,_0x35cb71:0x1c8,_0x235299:0x343},_0x540929={_0x1742ac:0x140};function _0x40cd62(_0x1bb278,_0x2765fc,_0x2fd9f4,_0x4c1257){return _0x551389(_0x1bb278-_0x540929._0x1742ac,_0x2fd9f4-0x1c9,_0x4c1257,_0x4c1257-0x2f);}const _0x1193cc=this[_0x208ec8(_0xe66555._0x26fffa,_0xe66555._0x3bb1cb,0x2f0,0x331)]['get'](_0x3b100e);if(!_0x1193cc)return![];function _0x208ec8(_0x4fac8f,_0x5b80b2,_0x9bedf7,_0x5fa598){return _0x551389(_0x4fac8f-0x7b,_0x5b80b2- -0xa4,_0x4fac8f,_0x5fa598-0x147);}return!_0x1193cc[_0x208ec8(_0xe66555._0x456c57,0x25a,_0xe66555._0x35cb71,0x30a)]('/chat/completions')&&_0x1193cc['includes'](_0x208ec8(0x379,_0xe66555._0x235299,0x3c8,0x382));}[_0xf0dc29(0x26d,0x230,0x221,0x2d1)](_0x7f06dd){const _0x193e21={_0x157d66:0x5f5,_0x40adeb:0x6e0,_0x25a18a:0x51f,_0x3049ff:0x4e9,_0x5ad41d:0x4b3,_0x47cc01:0x4f8,_0x2fc6ca:0x40e,_0xa2d543:0x4fd,_0x1bbd28:0x4ae},_0x4e69d2={_0x3fed18:0x1dc,_0x4e3f73:0x4f},_0x3c933e={_0x51475f:0x1db},_0x23afb7=this['modelEndpointCache']['get'](_0x7f06dd[_0x5762c2(_0x193e21._0x157d66,_0x193e21._0x40adeb,0x66f,0x676)]);if(!_0x23afb7)return![];function _0x5762c2(_0x18d272,_0xbc2b45,_0x1d4ac6,_0x40a1f3){return _0xf0dc29(_0x40a1f3-0x2d9,_0xbc2b45-_0x3c933e._0x51475f,_0xbc2b45,_0x40a1f3-0xcb);}function _0x5c2363(_0x4b24a0,_0x6b53d3,_0x502f6c,_0x33b8b8){return _0x551389(_0x4b24a0-0x33,_0x33b8b8-_0x4e69d2._0x3fed18,_0x6b53d3,_0x33b8b8-_0x4e69d2._0x4e3f73);}if(resolveOpenAiReasoningConfig(_0x7f06dd[_0x5762c2(0x559,0x40e,_0x193e21._0x25a18a,0x4c7)]))return _0x23afb7[_0x5762c2(0x560,_0x193e21._0x3049ff,_0x193e21._0x5ad41d,_0x193e21._0x47cc01)]('/responses');return this[_0x5c2363(_0x193e21._0x2fc6ca,_0x193e21._0xa2d543,0x3f1,_0x193e21._0x1bbd28)](_0x7f06dd['model']);}[_0x551389(0x353,0x40e,0x32d,0x3b3)](_0x54345c){const _0x3810bc={_0x46904e:0xe7,_0x37d603:0xab};function _0x2401ac(_0x5c23f5,_0x165a80,_0x1e64d1,_0xd10ac0){return _0x551389(_0x5c23f5-_0x3810bc._0x46904e,_0x1e64d1-_0x3810bc._0x37d603,_0x165a80,_0xd10ac0-0x98);}this['modelEndpointCache']['set'](_0x54345c,[_0x2401ac(0x572,0x530,0x492,0x3de)]);}[_0x551389(0x3fa,0x318,0x3d5,0x399)](_0x248e50){const _0x51f0a6={_0x4e13e2:0x14f,_0x467c77:0x1ef,_0x565b26:0x16e,_0x47369f:0x15,_0x2af919:0x16,_0x11b837:0x178},_0x4eb046={_0x39be2a:0x11d,_0x38625b:0x41f,_0x1d5107:0x1ab},_0x143e1d={_0x1ce031:0x347};function _0x468664(_0x46a395,_0x264098,_0x5cc0be,_0x6355f0){return _0x551389(_0x46a395-0x187,_0x46a395- -_0x143e1d._0x1ce031,_0x6355f0,_0x6355f0-0xf1);}if(_0x248e50 instanceof OpenAiApiError)return createResponseError(_0x248e50[_0x468664(_0x51f0a6._0x4e13e2,_0x51f0a6._0x467c77,0x168,_0x51f0a6._0x565b26)],_0x248e50[_0x468664(_0x51f0a6._0x47369f,-_0x51f0a6._0x2af919,0xda,-0x49)]||_0x248e50[_0x468664(0x11b,0x10c,_0x51f0a6._0x11b837,0xee)]);function _0x5eb852(_0x2d9bf6,_0x917498,_0x1a771b,_0x3f79bb){return _0x551389(_0x2d9bf6-_0x4eb046._0x39be2a,_0x3f79bb- -_0x4eb046._0x38625b,_0x2d9bf6,_0x3f79bb-_0x4eb046._0x1d5107);}return _0x248e50;}['completeViaConfiguredSurface'](_0x1179b3,_0x4df07c){const _0x300f30={_0x3c94d2:0x92,_0x5c21e0:0xc3,_0x290f3e:0x66,_0x2e6e0b:0xdf,_0x2b2a95:0xa7,_0x5c5c3b:0x599,_0x37da3e:0x539,_0x517562:0x56a,_0x3ab19c:0x58b,_0x366cc0:0x25,_0x37cd27:0xfe,_0x340916:0x3f4,_0x3f681c:0x4c7,_0x1b3484:0xc0,_0x288335:0x594,_0x2cd388:0x490,_0x273b61:0xa9,_0x26b4f8:0x81,_0x3a73e9:0x6b,_0x4dba25:0xad,_0x462a7f:0x4a4,_0x4f0fdb:0x64b,_0x46a0ca:0xca,_0x2d08eb:0xcf,_0x301370:0x83},_0x3326bb={_0xd3cc23:0xb6};function _0x4516e0(_0x2b3dbc,_0x1c094d,_0x534e60,_0x29cf42){return _0xf0dc29(_0x534e60-0x1f0,_0x1c094d-_0x3326bb._0xd3cc23,_0x2b3dbc,_0x29cf42-0xcf);}function _0x2a812e(_0xddc3ae,_0x16beaa,_0x2cae6a,_0x240549){return _0x551389(_0xddc3ae-0x4c,_0x240549- -0x3e4,_0x2cae6a,_0x240549-0x1b5);}switch(this[_0x2a812e(_0x300f30._0x3c94d2,-0x1f,_0x300f30._0x5c21e0,0x54)]){case _0x2a812e(_0x300f30._0x290f3e,0x13e,_0x300f30._0x2e6e0b,_0x300f30._0x2b2a95):return this[_0x4516e0(0x563,0x59f,_0x300f30._0x5c5c3b,_0x300f30._0x37da3e)]['complete'](_0x1179b3,_0x4df07c);case _0x4516e0(0x4b4,_0x300f30._0x517562,_0x300f30._0x3ab19c,0x60e):return this[_0x2a812e(-0x35,-0x18a,-_0x300f30._0x366cc0,-_0x300f30._0x37cd27)](_0x1179b3,_0x4df07c);case _0x4516e0(_0x300f30._0x340916,0x411,_0x300f30._0x3f681c,0x4eb):return this[_0x2a812e(-0x19e,-0x1a4,-_0x300f30._0x1b3484,-0xcb)](_0x1179b3,_0x4df07c);case'openai-responses-ws':return this[_0x4516e0(_0x300f30._0x288335,_0x300f30._0x2cd388,0x4d2,0x52c)](_0x1179b3,_0x4df07c);case _0x2a812e(-_0x300f30._0x273b61,-_0x300f30._0x26b4f8,-_0x300f30._0x3a73e9,-_0x300f30._0x4dba25):return this[_0x2a812e(-0x8b,0x2e,-0x176,-0xaa)](_0x1179b3,_0x4df07c);}throw new Error(_0x4516e0(0x554,_0x300f30._0x462a7f,0x581,_0x300f30._0x4f0fdb)+String(this[_0x2a812e(_0x300f30._0x46a0ca,_0x300f30._0x2d08eb,_0x300f30._0x301370,0x54)]));}[_0x551389(0x45e,0x371,0x3a0,0x292)](_0x8353d2,_0x574aa8){const _0x50386d={_0x32d3e0:0x360,_0x11fbe9:0x20,_0x3293b2:0x71,_0x174e7f:0xf0,_0x248949:0x403,_0x259514:0xb1,_0x18c17b:0x86,_0x56eedc:0x79,_0x26fd66:0x32d,_0x4b4699:0x319,_0x23dc47:0x401,_0x32860d:0x135,_0xdc8856:0x112,_0x1958d2:0x5d,_0x32f0c5:0x186,_0x1f5551:0x87,_0x1d067d:0xdb,_0x946b0c:0x28c,_0x2ce1a4:0x19e,_0x4c9047:0x353,_0x52dd4c:0x28e,_0x1793ee:0x41d,_0x1a1f08:0x3c5,_0x389b1c:0x448,_0x589647:0x1a,_0x239d64:0x65},_0xfb6922={_0x2d830d:0x1ab},_0x5db985={_0x4552bd:0x10};function _0x3fda5c(_0x1c0e4c,_0x1b985b,_0x1144fd,_0x418dd4){return _0xf0dc29(_0x1c0e4c-0x34,_0x1b985b-_0x5db985._0x4552bd,_0x418dd4,_0x418dd4-0xa1);}function _0x36a842(_0x42b4ef,_0x356bc8,_0x49dd6d,_0x1ae06f){return _0xf0dc29(_0x42b4ef- -0x33f,_0x356bc8-_0xfb6922._0x2d830d,_0x1ae06f,_0x1ae06f-0x1cb);}switch(this[_0x3fda5c(0x38d,0x3de,0x426,_0x50386d._0x32d3e0)]){case _0x36a842(0x6d,0x0,0x82,0x6f):return this['anthropicDelegate'][_0x36a842(-_0x50386d._0x11fbe9,_0x50386d._0x3293b2,0x2d,-_0x50386d._0x174e7f)](_0x8353d2,_0x574aa8);case _0x3fda5c(0x3cf,0x345,_0x50386d._0x248949,0x343):return this[_0x36a842(-0x96,-_0x50386d._0x259514,-_0x50386d._0x18c17b,-_0x50386d._0x56eedc)](_0x8353d2,_0x574aa8);case'openai-responses':return this[_0x3fda5c(_0x50386d._0x26fd66,_0x50386d._0x4b4699,_0x50386d._0x23dc47,0x3d6)](_0x8353d2,_0x574aa8);case _0x36a842(-_0x50386d._0x32860d,-_0x50386d._0xdc8856,-_0x50386d._0x1958d2,-_0x50386d._0x32f0c5):return this[_0x36a842(-0x3e,0x45,-_0x50386d._0x1f5551,-_0x50386d._0x1d067d)](_0x8353d2,_0x574aa8);case _0x3fda5c(_0x50386d._0x946b0c,_0x50386d._0x2ce1a4,0x2c9,0x1b8):return this[_0x3fda5c(_0x50386d._0x4c9047,_0x50386d._0x52dd4c,0x3ec,_0x50386d._0x1793ee)](_0x8353d2,_0x574aa8);}throw new Error(_0x3fda5c(_0x50386d._0x1a1f08,0x3ad,_0x50386d._0x389b1c,0x31e)+String(this[_0x36a842(_0x50386d._0x589647,-0x58,0x91,_0x50386d._0x239d64)]));}async[_0x551389(0x2c9,0x33a,0x38f,0x2f5)](_0x226c79,_0x875e52){const _0x36a15e={_0x3a007d:0x49b,_0x75ea13:0x421,_0x4952e9:0x31a,_0x2dfe74:0x1bb,_0x1d5368:0x189,_0x5eb256:0x250,_0x1fc17f:0x1d5,_0x14bbee:0x446,_0x313cd0:0x4c1,_0x42533b:0x344,_0x450153:0x391,_0x1618c2:0x3f7,_0xdd9c64:0x49c,_0x592bcc:0x465,_0x4f507b:0x2c2},_0x2cb8cf={_0x118416:0x199},_0x45aff1={_0x470124:0x103,_0xf8e5b:0x56e,_0x406705:0x11a},_0x33b920=this['applyModelDefaults'](_0x226c79);function _0x599130(_0x2e1292,_0x1b2256,_0x1eb548,_0x4f7ee7){return _0x551389(_0x2e1292-_0x45aff1._0x470124,_0x1b2256- -_0x45aff1._0xf8e5b,_0x2e1292,_0x4f7ee7-_0x45aff1._0x406705);}if(this[_0x281c7d(0x332,0x3b4,_0x36a15e._0x3a007d,_0x36a15e._0x75ea13)]!==_0x599130(-_0x36a15e._0x4952e9,-0x237,-0x1c7,-_0x36a15e._0x2dfe74))return this['completeViaConfiguredSurface'](_0x33b920,_0x875e52);if(this[_0x599130(-_0x36a15e._0x1d5368,-0x222,-0x17d,-_0x36a15e._0x5eb256)](_0x33b920))return this[_0x599130(-0x1ad,-0x255,-0x22a,-_0x36a15e._0x1fc17f)](_0x33b920,_0x875e52);function _0x281c7d(_0xd3489b,_0x504f56,_0x3e482d,_0x289b9f){return _0xf0dc29(_0x289b9f-0xc8,_0x504f56-0xa7,_0x3e482d,_0x289b9f-_0x2cb8cf._0x118416);}try{return await this[_0x281c7d(0x4a7,_0x36a15e._0x14bbee,0x497,0x3bc)](_0x33b920,_0x875e52);}catch(_0xef81d5){if(_0xef81d5 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0xef81d5[_0x599130(-0x2b0,-0x212,-0x2d1,-0x18e)]))return this[_0x281c7d(_0x36a15e._0x313cd0,_0x36a15e._0x42533b,_0x36a15e._0x450153,_0x36a15e._0x1618c2)](_0x33b920[_0x281c7d(0x401,_0x36a15e._0xdd9c64,0x472,_0x36a15e._0x592bcc)]),this['response'](_0x33b920,_0x875e52);throw this[_0x281c7d(0x220,0x3cd,_0x36a15e._0x4f507b,0x301)](_0xef81d5);}throw _0xef81d5;}}async*['stream'](_0x2822cb,_0x15c709){const _0x441cd4={_0x1cb08b:0x31f,_0xd0dbc0:0x519,_0x205d3c:0x5bf,_0xa3c248:0x55e,_0x28ddd5:0x529,_0x420ff8:0x555,_0x33d14e:0x4bd,_0x4cfe90:0x67c,_0x4aae22:0x665},_0x5a8807={_0x491c1c:0x15c,_0x420d13:0x119,_0x126d7e:0xff},_0x49f5d6={_0x5db148:0x1f1,_0x217b00:0x127},_0x277092=this['applyModelDefaults'](_0x2822cb);if(this[_0x3ab1ee(0x3cb,0x35d,_0x441cd4._0x1cb08b,0x3de)]!=='auto'){yield*this['streamViaConfiguredSurface'](_0x277092,_0x15c709);return;}function _0x1377f3(_0x2a0321,_0x4115b5,_0x4408b7,_0x2baae7){return _0x551389(_0x2a0321-_0x49f5d6._0x5db148,_0x4115b5-0x1cd,_0x2baae7,_0x2baae7-_0x49f5d6._0x217b00);}if(this[_0x1377f3(0x462,_0x441cd4._0xd0dbc0,_0x441cd4._0x205d3c,0x5f0)](_0x277092)){yield*this['responseStream'](_0x277092,_0x15c709);return;}function _0x3ab1ee(_0x5aa57c,_0xb09fd3,_0x1e7cdc,_0x1582fc){return _0x551389(_0x5aa57c-_0x5a8807._0x491c1c,_0x1e7cdc- -_0x5a8807._0x420d13,_0x5aa57c,_0x1582fc-_0x5a8807._0x126d7e);}try{yield*this['streamViaChatCompletionsSurface'](_0x277092,_0x15c709);}catch(_0x5519a1){if(_0x5519a1 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x5519a1[_0x1377f3(_0x441cd4._0xa3c248,_0x441cd4._0x28ddd5,_0x441cd4._0x420ff8,_0x441cd4._0x33d14e)])){this[_0x1377f3(_0x441cd4._0x4cfe90,0x5db,_0x441cd4._0x4aae22,0x61e)](_0x277092['model']),yield*this['responseStream'](_0x277092,_0x15c709);return;}throw this['mapApiError'](_0x5519a1);}throw _0x5519a1;}}async[_0x551389(0x56d,0x49a,0x47c,0x538)](_0x3df6d5){const _0x48355d={_0x45931d:0x4fb,_0x48e7d1:0x4b3,_0x5b8e89:0x400,_0x408478:0x59f,_0x5da791:0x1d7,_0x3df96a:0x495},_0x5d8dc1={_0x13b57a:0x14},_0x464972={_0x4423d8:0xd8},_0x4b18ed={_0x32c362:0x2ab,_0x266a35:0x194};function _0x4b369a(_0x3044ad,_0x3da379,_0x14950f,_0x477286){return _0xf0dc29(_0x3da379-_0x4b18ed._0x32c362,_0x3da379-_0x4b18ed._0x266a35,_0x477286,_0x477286-0x5b);}function _0x4eb735(_0x23b356,_0x505244,_0x4a89a4,_0x185fa0){return _0x551389(_0x23b356-0x1b0,_0x4a89a4- -0x141,_0x185fa0,_0x185fa0-_0x464972._0x4423d8);}const _0x4775e3=await this[_0x4b369a(_0x48355d._0x45931d,_0x48355d._0x48e7d1,_0x48355d._0x5b8e89,0x495)]({'path':_0x4b369a(_0x48355d._0x408478,0x63a,0x6ae,0x649),'method':'GET','signal':_0x3df6d5});if(!_0x4775e3['ok'])throw this[_0x4eb735(0x281,0x18d,_0x48355d._0x5da791,0xf6)](await this[_0x4b369a(_0x48355d._0x3df96a,0x4f7,0x5bc,0x4c7)](_0x4775e3));const _0x5cbcf9=await _0x4775e3['json'](),_0x4bef43=(_0x5cbcf9['data']??[])['map'](_0x2216cb=>{const _0x5ec3c2={_0x2e50ca:0x42,_0x278d83:0x186},_0x4d0194=createModelInfo(_0x2216cb);_0x4d0194['supportedEndpoints']&&this['modelEndpointCache']['set'](_0x4d0194['id'],_0x4d0194[_0x462249(_0x5d8dc1._0x13b57a,0x9b,0xb8,0x136)]);function _0x462249(_0x33c671,_0x4da01f,_0x14f15c,_0x3da8fb){return _0x4eb735(_0x33c671-_0x5ec3c2._0x2e50ca,_0x4da01f-_0x5ec3c2._0x278d83,_0x4da01f- -0x1ef,_0x33c671);}return _0x4d0194;});return deduplicateModels(_0x4bef43);}};function createHeaders(_0x3b3a8c){const _0x39a2ab={_0x1a4dd7:0x650,_0xa015e3:0x70e,_0x203633:0x5d7,_0x29445a:0x493},_0x5ba5a6={_0x2df551:0x1ba,_0x24c03f:0x17c};function _0x409176(_0x1874b5,_0x1e162c,_0x24e7ea,_0x5f459e){return _0xf0dc29(_0x1e162c- -0x3cd,_0x1e162c-0x24,_0x1874b5,_0x5f459e-0x50);}const _0x5d4822=new Headers();for(const [_0x4f98ce,_0x41a6e5]of Object[_0x143233(_0x39a2ab._0x1a4dd7,0x733,_0x39a2ab._0xa015e3,_0x39a2ab._0x203633)](_0x3b3a8c)){_0x5d4822[_0x143233(0x55c,_0x39a2ab._0x29445a,0x5f5,0x649)](_0x4f98ce,_0x41a6e5);}function _0x143233(_0x80340b,_0x305f74,_0x1ad127,_0x47f366){return _0xf0dc29(_0x80340b-0x2ac,_0x305f74-_0x5ba5a6._0x2df551,_0x305f74,_0x47f366-_0x5ba5a6._0x24c03f);}return _0x5d4822;}async function fetchRawResponse(_0x337bc1){const _0x5b8c87={_0x17f20e:0xf,_0x5a44d5:0x65,_0x18d565:0x151,_0x4fc64d:0x9a,_0x6eaac4:0x12b,_0x510888:0xf6,_0x31c0f0:0x193,_0x268a17:0x17c,_0x403462:0x11c,_0x4dac07:0x169,_0x576205:0x156,_0x459ac6:0x1a,_0x4ec3f1:0xa1,_0x470e61:0x5c7,_0x2d1c7a:0x587,_0x10ba56:0x57d,_0x4cdb32:0x550},_0x5aed29={_0x892704:0x15f},_0x479db4={_0x39b12e:0x30,_0x407801:0xeb},_0x339554=_0x337bc1[_0x184465(_0x5b8c87._0x17f20e,0x2,-0xa6,-0x36)]??globalThis['fetch'];function _0x184465(_0x201b67,_0x240573,_0x21a498,_0x5e64c8){return _0xf0dc29(_0x5e64c8- -0x361,_0x240573-_0x479db4._0x39b12e,_0x240573,_0x5e64c8-_0x479db4._0x407801);}function _0x5e3928(_0x18de99,_0x9fe073,_0x41311a,_0x388c35){return _0x551389(_0x18de99-_0x5aed29._0x892704,_0x388c35-0x1f4,_0x18de99,_0x388c35-0x9b);}return _0x339554(_0x337bc1[_0x184465(-0x9d,-_0x5b8c87._0x5a44d5,-_0x5b8c87._0x18d565,-_0x5b8c87._0x4fc64d)],{'method':_0x184465(-_0x5b8c87._0x6eaac4,-_0x5b8c87._0x510888,-_0x5b8c87._0x31c0f0,-_0x5b8c87._0x268a17),'headers':createHeaders(_0x337bc1[_0x184465(-_0x5b8c87._0x403462,-_0x5b8c87._0x4dac07,-0x1b6,-_0x5b8c87._0x576205)]),'body':JSON[_0x184465(-0x20,-_0x5b8c87._0x459ac6,-_0x5b8c87._0x4ec3f1,-0x83)](_0x337bc1[_0x5e3928(_0x5b8c87._0x470e61,_0x5b8c87._0x2d1c7a,_0x5b8c87._0x10ba56,_0x5b8c87._0x4cdb32)]),'signal':_0x337bc1[_0x5e3928(0x590,0x508,0x3de,0x4be)]});}async function fetchJsonResponse(_0x510c65){const _0xe6405={_0x252eb4:0x3f0,_0x151a17:0x3f9,_0x346101:0x667,_0x3fa3fd:0x4a8,_0x595581:0x346,_0x165a0c:0x3dd,_0x4494f2:0x388,_0x481ea4:0x277,_0x59651a:0x338,_0x3c0cf4:0x4eb},_0x7a92bc={_0x696507:0x185,_0xa5a9d:0x127,_0x3f49b0:0x1ef};function _0x2170dd(_0x2fee2b,_0x163e8f,_0x1b92ee,_0xb99cfc){return _0x551389(_0x2fee2b-_0x7a92bc._0x696507,_0x2fee2b-_0x7a92bc._0xa5a9d,_0x1b92ee,_0xb99cfc-_0x7a92bc._0x3f49b0);}function _0x3d0275(_0x11c666,_0xfad3,_0x41321c,_0x6e5a85){return _0xf0dc29(_0x41321c-0x9b,_0xfad3-0x13b,_0x6e5a85,_0x6e5a85-0x1c7);}const _0x351e17=await fetchRawResponse(_0x510c65);if(!_0x351e17['ok']){const _0x122883=await _0x351e17[_0x2170dd(_0xe6405._0x252eb4,0x36b,_0xe6405._0x151a17,0x3fb)](),_0x244017=_0x122883[_0x2170dd(0x580,_0xe6405._0x346101,0x5ec,_0xe6405._0x3fa3fd)]()||_0x351e17[_0x3d0275(0x262,_0xe6405._0x595581,0x28f,0x369)]||_0x3d0275(_0xe6405._0x165a0c,0x2b9,0x37b,_0xe6405._0x4494f2);throw new Error(_0x3d0275(_0xe6405._0x481ea4,_0xe6405._0x59651a,0x2ab,0x374)+_0x351e17['status']+':\x20'+_0x244017);}return await _0x351e17[_0x2170dd(0x496,0x4c4,_0xe6405._0x3c0cf4,0x532)]();}function findLastMessage(_0x277464,_0x3c95b4){const _0x35de4f={_0x505c6e:0x4f5,_0x1b501e:0x51d,_0x393c64:0x53e,_0x212024:0x3f4,_0x1d170b:0x478},_0x2ceae={_0x2e4824:0x1f0};for(let _0x13c462=_0x277464[_0x47d9e3(0x54a,_0x35de4f._0x505c6e,_0x35de4f._0x1b501e,0x4c0)]-0x1;_0x13c462>=0x0;_0x13c462-=0x1){if(_0x277464[_0x13c462][_0x463dbd(0x54b,_0x35de4f._0x393c64,_0x35de4f._0x212024,_0x35de4f._0x1d170b)]===_0x3c95b4)return _0x277464[_0x13c462];}function _0x463dbd(_0x2ee22e,_0x48dc0f,_0x4f732f,_0x4d8e62){return _0xf0dc29(_0x4d8e62-0x13b,_0x48dc0f-0x1b2,_0x2ee22e,_0x4d8e62-0x5d);}function _0x47d9e3(_0x31dc21,_0x588504,_0x57dd79,_0x792f67){return _0xf0dc29(_0x588504-0x262,_0x588504-0x18b,_0x792f67,_0x792f67-_0x2ceae._0x2e4824);}return void 0x0;}function hasTool(_0x40cfed,_0x223388){const _0x37b063={_0x27d0e9:0x3c8,_0xbd0c53:0x1b2},_0x146273={_0x2ab2c9:0x1ba},_0x1df8ef={_0x442f41:0x75};function _0x3b58e8(_0x5785de,_0x1f0c45,_0x288914,_0x28d362){return _0x551389(_0x5785de-_0x1df8ef._0x442f41,_0x28d362- -0x21e,_0x5785de,_0x28d362-0x4e);}function _0x144870(_0x525756,_0x5c2f3f,_0x5b7111,_0x592b77){return _0x551389(_0x525756-0xc9,_0x5b7111-0x51,_0x525756,_0x592b77-_0x146273._0x2ab2c9);}return _0x40cfed[_0x144870(0x314,0x439,0x382,_0x37b063._0x27d0e9)][_0x3b58e8(0x147,0x136,0x1c9,_0x37b063._0xbd0c53)](_0x11e78b=>_0x11e78b[_0x3b58e8(0x217,0x27f,0x14a,0x213)]===_0x223388);}function createMockResponse(_0x346a60,_0xc2c9dc,_0xc248e6,_0x1277ed){return{'id':_0x346a60,'content':_0xc2c9dc,'stopReason':_0xc248e6,'usage':_0x1277ed};}var MockModel=class{[_0xf0dc29(0x39d,0x316,0x2d2,0x2ca)];[_0xf0dc29(0x22c,0x1a6,0x22a,0x22f)];[_0xf0dc29(0x303,0x3c7,0x2fb,0x39a)]=[];[_0xf0dc29(0x1ee,0x2da,0x18e,0x14e)];constructor(_0x4ac481={}){const _0x29c756={_0x1bdc26:0x64b,_0x101e2f:0x656,_0x56e206:0x6e2,_0xe5c89b:0x554,_0x34a0d1:0x407,_0x31158e:0x537},_0x30e559={_0x5f02bc:0x2d7,_0x159227:0x12b},_0x31e40d={_0x38c1d3:0x27};function _0x4cf1ae(_0x2da29a,_0x472125,_0x5d3b7b,_0x4a3047){return _0x551389(_0x2da29a-0x12e,_0x472125- -0x335,_0x2da29a,_0x4a3047-_0x31e40d._0x38c1d3);}this['model']=_0x4ac481[_0x30e1d1(0x674,_0x29c756._0x1bdc26,_0x29c756._0x101e2f,_0x29c756._0x56e206)]??'mock',this[_0x30e1d1(0x503,0x59e,0x475,0x5bc)]=_0x4ac481['maxTokens']??getDefaultMaxTokens();function _0x30e1d1(_0x54c71b,_0x1e83df,_0x46a585,_0x5b6f18){return _0xf0dc29(_0x54c71b-_0x30e559._0x5f02bc,_0x1e83df-0x82,_0x1e83df,_0x5b6f18-_0x30e559._0x159227);}this[_0x30e1d1(0x4c5,0x42e,0x544,_0x29c756._0xe5c89b)]=_0x4ac481['reasoning']?structuredClone(_0x4ac481[_0x30e1d1(0x4c5,_0x29c756._0x34a0d1,0x3f2,_0x29c756._0x31158e)]):void 0x0;}async[_0x551389(0x31a,0x33a,0x3c8,0x37e)](_0x343142,_0x342daf){const _0x126e59={_0x5869f7:0x165,_0x1d3adf:0x184,_0x43bfc2:0x21c,_0x2fd7cb:0x34b,_0x596762:0x379,_0x3bef1c:0x3b1,_0x2f2fd2:0x3c3,_0xf61d0b:0x2d8,_0x53ea0d:0x2b6,_0x4c3176:0x260,_0x8c0fcb:0x2aa,_0x25c486:0x199,_0x3a5508:0x229,_0x41adbe:0x364,_0x3d4f8a:0x285,_0x4790f4:0x263,_0x28801c:0x468,_0x5bd264:0x3af,_0x205646:0x133,_0x27b558:0x1ba,_0x3233b6:0x30d,_0x2574da:0x21f,_0x1e67f8:0x16b,_0x2dd0c3:0x1f4,_0x297713:0x191,_0x10d38d:0x327,_0x21893d:0x20c,_0x1b8cef:0x299,_0x3f2557:0x309,_0x5cdaf9:0x31e,_0x30c01e:0x2fd,_0xabc25e:0x15a,_0x4bdc4c:0x180,_0x562b0b:0x388,_0x13459f:0x146,_0x18cf74:0x208},_0x4b693c={_0x112986:0x0,_0x4546ba:0x167},_0x501abd={_0x2c59da:0x149,_0x267579:0x1cb},_0x58bee9={...structuredClone(_0x343142),..._0x343142[_0x413126(0x228,_0x126e59._0x5869f7,0xba,_0x126e59._0x1d3adf)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x413126(0x23a,_0x126e59._0x43bfc2,0x120,0x184)])}:{}};this[_0x1fbae6(0x3e0,0x371,_0x126e59._0x2fd7cb,_0x126e59._0x596762)]['push'](_0x58bee9);const _0x11f7aa=findLastMessage(_0x58bee9[_0x1fbae6(0x42b,0x41d,0x3f9,_0x126e59._0x3bef1c)],'user'),_0x2c7846=getToolResultBlocks(_0x11f7aa),_0x681cc0=_0x1fbae6(0x40d,_0x126e59._0x2f2fd2,_0x126e59._0xf61d0b,0x397)+this[_0x413126(_0x126e59._0x53ea0d,0x30b,0x292,0x299)][_0x413126(_0x126e59._0x4c3176,_0x126e59._0x8c0fcb,_0x126e59._0x25c486,_0x126e59._0x3a5508)];if(_0x2c7846[_0x1fbae6(_0x126e59._0x41adbe,0x3ad,0x36d,0x309)]>0x0)return createMockResponse(_0x681cc0,[{'type':_0x1fbae6(_0x126e59._0x3d4f8a,_0x126e59._0x4790f4,0x32b,_0x126e59._0x4c3176),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x2c7846[0x0][_0x1fbae6(_0x126e59._0x28801c,_0x126e59._0x5bd264,0x3e3,0x428)]}],_0x413126(_0x126e59._0x205646,0x179,0x242,0x1fe),{'inputTokens':0x78,'outputTokens':0x28});function _0x413126(_0x5db443,_0x30fcc5,_0x1ec903,_0x5621d1){return _0x551389(_0x5db443-0x82,_0x5621d1- -_0x501abd._0x2c59da,_0x5db443,_0x5621d1-_0x501abd._0x267579);}const _0xac43d0=getTextFromMessage(_0x11f7aa);if(/list .*files|workspace/i[_0x1fbae6(_0x126e59._0x27b558,0x337,_0x126e59._0x3233b6,0x289)](_0xac43d0)&&hasTool(_0x58bee9,_0x1fbae6(_0x126e59._0x2574da,0x2eb,0x221,0x2c0)))return createMockResponse(_0x681cc0,[{'type':_0x413126(0xb2,_0x126e59._0x1e67f8,_0x126e59._0x2dd0c3,_0x126e59._0x297713),'id':'tool-call-'+this[_0x413126(_0x126e59._0x10d38d,0x247,_0x126e59._0x21893d,_0x126e59._0x1b8cef)][_0x1fbae6(0x2ec,0x317,0x2bc,_0x126e59._0x3f2557)],'name':_0x1fbae6(0x33c,0x278,0x2ab,0x2c0),'input':{'command':_0x413126(_0x126e59._0x5cdaf9,0x238,_0x126e59._0x30c01e,_0x126e59._0x8c0fcb)}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});function _0x1fbae6(_0x3cb3d5,_0x30e7c8,_0x1ff20f,_0x396803){return _0x551389(_0x3cb3d5-_0x4b693c._0x112986,_0x396803- -0x69,_0x30e7c8,_0x396803-_0x4b693c._0x4546ba);}return createMockResponse(_0x681cc0,[{'type':_0x413126(0x1cb,0x181,_0x126e59._0xabc25e,_0x126e59._0x4bdc4c),'text':_0x1fbae6(0x28f,0x2fa,_0x126e59._0x562b0b,0x2ab)+_0xac43d0}],_0x413126(_0x126e59._0x13459f,_0x126e59._0x18cf74,0x1db,0x1fe),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x1e0774,_0x50577b){const _0x1c7f59={_0xc76815:0x219,_0x1fd427:0x273,_0x166c3b:0x2ce,_0x15805f:0x21a,_0x170ac9:0x2ba,_0x1fffec:0x3aa,_0x32ddb8:0x2d6,_0x46910a:0x2ab,_0x4bc13b:0x2e3,_0x30b290:0x1e2,_0xcaa645:0x262,_0x189897:0x187,_0x26f59d:0xb0},_0x28b6c3={_0x20342e:0x10d},_0x25513e={_0x5c40e9:0x4a2,_0x50e65b:0x6c},_0x1b42aa=getModelProfile(_0x1e0774,_0x50577b);if(!_0x1b42aa?.[_0x1e4648(_0x1c7f59._0xc76815,_0x1c7f59._0x1fd427,_0x1c7f59._0x166c3b,0x2e3)]&&!_0x1b42aa?.[_0x1e4648(_0x1c7f59._0x15805f,_0x1c7f59._0x170ac9,0x298,0x250)])return void 0x0;function _0x99ee73(_0x5bbad3,_0x4696da,_0x3b1fd8,_0x258f2f){return _0x551389(_0x5bbad3-0x79,_0x5bbad3- -_0x25513e._0x5c40e9,_0x258f2f,_0x258f2f-_0x25513e._0x50e65b);}function _0x1e4648(_0x578b10,_0x328128,_0x4f6c9d,_0x34fa95){return _0xf0dc29(_0x34fa95-0x14,_0x328128-_0x28b6c3._0x20342e,_0x328128,_0x34fa95-0x112);}return{..._0x1b42aa[_0x1e4648(_0x1c7f59._0x1fffec,_0x1c7f59._0x32ddb8,_0x1c7f59._0x46910a,_0x1c7f59._0x4bc13b)]?{'contextWindow':_0x1b42aa['contextWindow']}:{},..._0x1b42aa[_0x1e4648(_0x1c7f59._0x30b290,0x1cc,_0x1c7f59._0xcaa645,0x250)]?{'maxOutput':_0x1b42aa[_0x99ee73(-_0x1c7f59._0x189897,-_0x1c7f59._0x26f59d,-0x25e,-0x1ab)]}:{}};}function normalizeModelInfo(_0x1d244b,_0x5d180c){const _0x18e94c={_0x216a4d:0x444,_0x30e5ff:0x3aa,_0x59bbe2:0x48d,_0x249afb:0x458,_0x4254da:0x45c,_0x4b1a38:0x582,_0x2a3e5b:0x539,_0x3a3762:0x580,_0x249f1a:0x669,_0x416652:0x37c},_0x46c885={_0x452037:0x13b},_0x80b81={_0x293d60:0x1cc},_0xbf02be=typeof _0x5d180c['id']==='string'?_0x5d180c['id']:'';function _0x2e114f(_0x39e988,_0x1bc5f6,_0x50b904,_0x1718df){return _0xf0dc29(_0x1bc5f6-0x2ec,_0x1bc5f6-_0x80b81._0x293d60,_0x50b904,_0x1718df-0x167);}const _0x317fc0=typeof _0x5d180c['name']===_0x289d5d(_0x18e94c._0x216a4d,0x3c2,_0x18e94c._0x30e5ff,0x4e7)?_0x5d180c[_0x289d5d(_0x18e94c._0x59bbe2,0x4ff,_0x18e94c._0x249afb,0x53c)]:_0xbf02be,_0x21317e=normalizeModelLimits(_0x1d244b,_0x5d180c)??getFallbackModelLimits(_0x1d244b,_0xbf02be);function _0x289d5d(_0x13797d,_0x544cfa,_0x49611c,_0xafd7c2){return _0xf0dc29(_0x13797d-_0x46c885._0x452037,_0x544cfa-0x79,_0x49611c,_0xafd7c2-0x1e2);}const _0x3f3f74=Array[_0x289d5d(0x4d9,_0x18e94c._0x4254da,0x4d2,_0x18e94c._0x4b1a38)](_0x5d180c['supported_endpoints'])?_0x5d180c['supported_endpoints']['filter'](_0x3bb683=>typeof _0x3bb683===_0x2e114f(0x588,0x5f5,0x6c4,0x593)):Array['isArray'](_0x5d180c[_0x2e114f(0x507,0x580,0x61b,0x561)])?_0x5d180c[_0x2e114f(_0x18e94c._0x2a3e5b,_0x18e94c._0x3a3762,0x64f,_0x18e94c._0x249f1a)][_0x289d5d(0x391,0x3f3,0x432,_0x18e94c._0x416652)](_0x399a8a=>typeof _0x399a8a===_0x289d5d(0x444,0x45d,0x505,0x430)):void 0x0;return{'id':_0xbf02be,'name':_0x317fc0,..._0x21317e?{'limits':_0x21317e}:{},..._0x3f3f74?{'supportedEndpoints':_0x3f3f74}:{}};}function normalizeModelLimits(_0x169ba3,_0x141cbe){const _0x2ace8f={_0x373cd4:0x425,_0x490c14:0x3bf,_0x3daf19:0x5fc,_0x49fe9b:0x650,_0x52d3ea:0x390,_0x4bfc21:0x3bf,_0x4096dd:0x500,_0x845cec:0x4c1,_0x3db0b5:0x4f5,_0x389363:0x586,_0x3ece5a:0x493,_0x537048:0x510,_0xc3b33c:0x542,_0x508553:0x2c9,_0x1300b0:0x578,_0x47374d:0x484,_0x48d95e:0x547,_0x29ab98:0x3a3,_0x4f6426:0x462,_0xf6884b:0x285,_0x4dfa8d:0x33c,_0x22dfe7:0x33b,_0x4c2244:0x53c,_0x2eab7f:0x349,_0x58f878:0x40b,_0x2a0f2d:0x3bf,_0xa34192:0x35f,_0x5089f9:0x3f0,_0x2366cd:0x2db,_0x5d43bd:0x1de,_0x5ae5e0:0x1fb,_0x5e4587:0x25f,_0x171b31:0x2ac,_0x43744d:0x545,_0x209104:0x5c7,_0x4f9db8:0x515,_0x4da1aa:0x238,_0x405a66:0x256,_0x1673aa:0x2ac,_0x2faacc:0x329,_0x3afd2e:0x277,_0x58d065:0x301,_0x4df0c0:0x26a,_0x499140:0x5ea,_0x58e089:0x477,_0x1be5d4:0x3a7,_0x47c0e8:0x3dd,_0x946629:0x304,_0x20d1f6:0x513,_0x5bdcc3:0x533,_0x2a04f3:0x3fb,_0x37fc34:0x4dd,_0x18d8f5:0x46f,_0x4049f:0x54f,_0x3e6bfe:0x694,_0x4acd4d:0x54b,_0x4067d0:0x5bf,_0x3e0079:0x227,_0x44f88f:0x544},_0x56dc65={_0x5a09a4:0x8b,_0x2d0234:0x19c},_0x2042a1={_0x1eea81:0x52,_0x2a806a:0xd3};if(_0x141cbe[_0x1567aa(0x44e,0x3c3,_0x2ace8f._0x373cd4,_0x2ace8f._0x490c14)]&&typeof _0x141cbe[_0x2a59b6(_0x2ace8f._0x3daf19,0x652,_0x2ace8f._0x49fe9b,0x5d0)]===_0x2a59b6(0x3ec,0x39c,_0x2ace8f._0x52d3ea,0x41b)){const _0x3f4f5c=_0x141cbe[_0x1567aa(0x3a4,0x339,0x45d,_0x2ace8f._0x4bfc21)];if(typeof _0x3f4f5c[_0x2a59b6(0x458,_0x2ace8f._0x4096dd,_0x2ace8f._0x845cec,_0x2ace8f._0x3db0b5)]===_0x2a59b6(_0x2ace8f._0x389363,0x4fb,_0x2ace8f._0x3ece5a,0x515))return{'contextWindow':_0x3f4f5c[_0x2a59b6(0x47e,_0x2ace8f._0x537048,_0x2ace8f._0xc3b33c,_0x2ace8f._0x3db0b5)],...typeof _0x3f4f5c[_0x1567aa(0x179,_0x2ace8f._0x508553,0x25b,0x251)]===_0x2a59b6(_0x2ace8f._0x1300b0,_0x2ace8f._0x47374d,_0x2ace8f._0x48d95e,0x515)?{'maxOutput':_0x3f4f5c[_0x2a59b6(0x374,0x404,_0x2ace8f._0x29ab98,_0x2ace8f._0x4f6426)]}:{}};}function _0x2a59b6(_0x38c893,_0x1415c0,_0x4b5a95,_0x2aefd7){return _0xf0dc29(_0x2aefd7-0x226,_0x1415c0-_0x2042a1._0x1eea81,_0x4b5a95,_0x2aefd7-_0x2042a1._0x2a806a);}if(_0x169ba3[_0x1567aa(_0x2ace8f._0xf6884b,_0x2ace8f._0x4dfa8d,0x3c6,_0x2ace8f._0x22dfe7)]()==='github'){const _0x4ebb75=_0x141cbe[_0x2a59b6(_0x2ace8f._0x4c2244,0x4c5,0x40c,0x4b3)],_0x5d8e33=_0x4ebb75?.[_0x1567aa(_0x2ace8f._0x2eab7f,_0x2ace8f._0x58f878,0x2ff,_0x2ace8f._0x2a0f2d)];if(typeof _0x5d8e33?.['max_context_window_tokens']===_0x1567aa(0x218,_0x2ace8f._0xa34192,_0x2ace8f._0x5089f9,0x304))return{'contextWindow':_0x5d8e33[_0x1567aa(0x39a,0x224,0x207,_0x2ace8f._0x2366cd)],...typeof _0x5d8e33[_0x1567aa(_0x2ace8f._0x5d43bd,_0x2ace8f._0x5ae5e0,_0x2ace8f._0x5e4587,_0x2ace8f._0x171b31)]===_0x2a59b6(_0x2ace8f._0x43744d,0x5bf,_0x2ace8f._0x209104,_0x2ace8f._0x4f9db8)?{'maxOutput':_0x5d8e33[_0x1567aa(_0x2ace8f._0x4da1aa,_0x2ace8f._0x405a66,0x1c1,_0x2ace8f._0x1673aa)]}:{}};}const _0x51dad1=_0x141cbe[_0x2a59b6(0x5a0,0x41b,0x590,0x4e5)],_0x2bb192=_0x141cbe['top_provider'];function _0x1567aa(_0x24294b,_0x2a3c94,_0x371e4b,_0x58286c){return _0xf0dc29(_0x58286c-0x15,_0x2a3c94-_0x56dc65._0x5a09a4,_0x24294b,_0x58286c-_0x56dc65._0x2d0234);}const _0x5c5a37=typeof _0x141cbe[_0x1567aa(0x1e2,0x253,_0x2ace8f._0x2faacc,0x266)]===_0x1567aa(_0x2ace8f._0x3afd2e,0x2d9,0x256,0x304)?_0x141cbe[_0x1567aa(_0x2ace8f._0x58d065,0x2ad,_0x2ace8f._0x4df0c0,0x266)]:typeof _0x51dad1?.['context_length']===_0x2a59b6(0x5a8,_0x2ace8f._0x499140,0x5b5,_0x2ace8f._0x4f9db8)?_0x51dad1['context_length']:typeof _0x2bb192?.[_0x2a59b6(0x453,0x526,0x4b7,_0x2ace8f._0x58e089)]===_0x1567aa(0x2cd,_0x2ace8f._0x1be5d4,_0x2ace8f._0x47c0e8,_0x2ace8f._0x946629)?_0x2bb192[_0x2a59b6(_0x2ace8f._0x20d1f6,_0x2ace8f._0x5bdcc3,_0x2ace8f._0x2a04f3,_0x2ace8f._0x58e089)]:void 0x0;if(_0x5c5a37===void 0x0)return void 0x0;return{'contextWindow':_0x5c5a37,...typeof _0x51dad1?.[_0x2a59b6(0x543,_0x2ace8f._0x37fc34,_0x2ace8f._0x18d8f5,_0x2ace8f._0x4049f)]==='number'?{'maxOutput':_0x51dad1['max_tokens']}:typeof _0x2bb192?.[_0x2a59b6(_0x2ace8f._0x3e6bfe,0x62c,_0x2ace8f._0x4acd4d,_0x2ace8f._0x4067d0)]===_0x1567aa(0x2a7,0x377,_0x2ace8f._0x3e0079,_0x2ace8f._0x946629)?{'maxOutput':_0x2bb192[_0x2a59b6(_0x2ace8f._0x44f88f,0x5ff,0x62e,0x5bf)]}:{}};}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};
|