@nuvin/agent-core 0.1.0 → 0.1.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-BLGBVFVX.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-UIXQPCSN.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YWQXXHHU.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/tools/bash-tool.d.ts +11 -0
- package/dist/tools/index.js +1 -1
- package/package.json +2 -2
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xbc06b4,_0x4c2769){const _0x21ffc3={_0x5bf6f8:0x3d,_0x4fa209:0x89,_0x554f76:0x34,_0xd13dd:0x15e,_0x575a9d:0x8c,_0x40ce95:0x61f,_0x27ed0d:0x5ee,_0x3b261d:0x59c,_0x34fbf9:0x104,_0x4bc02b:0x1d6,_0x55be25:0x11d,_0x5185ad:0x61e,_0x5a4eb2:0x1f6,_0x65eb04:0x78,_0x1559cb:0x50a,_0x2e9c1b:0x683,_0x3b48e7:0x685,_0x52ee6d:0x5ae,_0xcd9aa0:0x656,_0x4d869b:0x588,_0x4253e4:0x6e4,_0x225dc8:0x0,_0x1a08a2:0x5ec,_0x2f0582:0x6aa,_0x57ec21:0x614,_0x342dd7:0x4ae,_0x287b94:0x4e2,_0x91f481:0x577};function _0x5bd9d3(_0x2d08e0,_0x39db26,_0x5f50e3,_0x278278){return _0x4c72(_0x39db26- -0x1c3,_0x2d08e0);}function _0xf533f9(_0xff5b7a,_0xfe53f4,_0x2c8756,_0x2fd320){return _0x4c72(_0x2fd320-0x385,_0xfe53f4);}const _0x515cb9=_0xbc06b4();while(!![]){try{const _0x4070fa=-parseInt(_0x5bd9d3(-_0x21ffc3._0x5bf6f8,-0xb,_0x21ffc3._0x4fa209,-_0x21ffc3._0x554f76))/0x1*(parseInt(_0x5bd9d3(0x6a,_0x21ffc3._0xd13dd,0xd7,_0x21ffc3._0x575a9d))/0x2)+parseInt(_0xf533f9(0x4da,_0x21ffc3._0x40ce95,_0x21ffc3._0x27ed0d,_0x21ffc3._0x3b261d))/0x3+parseInt(_0x5bd9d3(_0x21ffc3._0x34fbf9,0x163,_0x21ffc3._0x4bc02b,_0x21ffc3._0x55be25))/0x4*(-parseInt(_0xf533f9(_0x21ffc3._0x5185ad,0x59c,0x511,0x52e))/0x5)+parseInt(_0x5bd9d3(_0x21ffc3._0x5a4eb2,0x14c,0x165,_0x21ffc3._0x65eb04))/0x6*(parseInt(_0xf533f9(_0x21ffc3._0x1559cb,_0x21ffc3._0x2e9c1b,_0x21ffc3._0x3b48e7,_0x21ffc3._0x52ee6d))/0x7)+parseInt(_0xf533f9(_0x21ffc3._0xcd9aa0,0x505,0x5dd,0x5c3))/0x8+-parseInt(_0xf533f9(_0x21ffc3._0x4d869b,0x5ee,_0x21ffc3._0x4253e4,0x633))/0x9*(parseInt(_0x5bd9d3(0xa7,0xc4,0xc0,_0x21ffc3._0x225dc8))/0xa)+parseInt(_0xf533f9(_0x21ffc3._0x1a08a2,0x61a,0x646,_0x21ffc3._0x2f0582))/0xb*(parseInt(_0xf533f9(_0x21ffc3._0x57ec21,_0x21ffc3._0x342dd7,_0x21ffc3._0x287b94,_0x21ffc3._0x91f481))/0xc);if(_0x4070fa===_0x4c2769)break;else _0x515cb9['push'](_0x515cb9['shift']());}catch(_0x13d130){_0x515cb9['push'](_0x515cb9['shift']());}}}(_0x25f2,0x6992f));import{toOpenAiResponsesRequest}from'../chunk-BLGBVFVX.js';import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-YWQXXHHU.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x3ae5ea){const _0x9fbce3={_0x2ffd35:0x168,_0x353aac:0x11b,_0x1956c0:0x126,_0x384d77:0x1e5},_0x12dbac={_0x1f0bb8:0x2ef};function _0x8f9016(_0x10bb30,_0x5dfb5d,_0x5c7125,_0x301c40){return _0x4c72(_0x5dfb5d- -0xf6,_0x5c7125);}function _0x4042c0(_0xb0e083,_0xb8c3c9,_0x132e65,_0x1cddb7){return _0x4c72(_0x1cddb7- -_0x12dbac._0x1f0bb8,_0x132e65);}super(_0x3ae5ea),this[_0x4042c0(-_0x9fbce3._0x2ffd35,-0x218,-_0x9fbce3._0x353aac,-_0x9fbce3._0x1956c0)]=_0x8f9016(0x13b,0x177,0x22b,_0x9fbce3._0x384d77);}},ProviderStreamEventError=class extends Error{[_0x5276b1(0x2d,-0x47,0xc3,-0x2c)];['retryable'];[_0x54ac71(0x3d7,0x356,0x333,0x2dd)];constructor(_0x4b4612,_0x4fe7a8={}){const _0x2524ae={_0x463dac:0x5b,_0x1aa7e2:0x33,_0x249de8:0x77,_0x18bd4f:0x31,_0x37716a:0x1,_0x1268c3:0x121,_0x66875b:0x1d,_0x442f24:0x61,_0x5bf2c9:0x31,_0x261798:0x11c,_0x27e826:0xdf,_0x17b18e:0x63,_0x740182:0x64,_0x425e12:0xa,_0x4461e3:0x10d,_0x92665c:0x221},_0x10a5e1={_0x5a1d10:0x185,_0x5c6797:0xff},_0x3d73aa={_0x2f9b11:0x13c,_0x13cbc2:0x157};super(_0x4b4612),this[_0x3c7b51(-_0x2524ae._0x463dac,_0x2524ae._0x1aa7e2,-_0x2524ae._0x249de8,_0x2524ae._0x18bd4f)]=_0x336acf(-_0x2524ae._0x37716a,-_0x2524ae._0x1268c3,-0x6d,-0x91),this['code']=_0x4fe7a8[_0x3c7b51(0x3a,-_0x2524ae._0x66875b,-_0x2524ae._0x442f24,0x12b)];function _0x336acf(_0x43dcad,_0x1e19cc,_0x3d88c8,_0x469df8){return _0x5276b1(_0x1e19cc,_0x1e19cc-_0x3d73aa._0x2f9b11,_0x3d88c8-0x73,_0x469df8- -_0x3d73aa._0x13cbc2);}this[_0x3c7b51(_0x2524ae._0x5bf2c9,_0x2524ae._0x261798,-0x90,_0x2524ae._0x27e826)]=_0x4fe7a8[_0x3c7b51(0x31,-0xa3,0xc,_0x2524ae._0x17b18e)]??!![];function _0x3c7b51(_0x289778,_0x533326,_0x2a0802,_0x19d426){return _0x5276b1(_0x2a0802,_0x533326-_0x10a5e1._0x5a1d10,_0x2a0802-_0x10a5e1._0x5c6797,_0x289778-0x66);}this[_0x3c7b51(-_0x2524ae._0x740182,-_0x2524ae._0x425e12,0x7a,-_0x2524ae._0x4461e3)]=_0x4fe7a8[_0x336acf(-0x2e3,-0x157,-0x2f5,-_0x2524ae._0x92665c)];}};function isRetryableProviderStreamEventError(_0x4b98aa){const _0x31a19a={_0x1bf50d:0x522},_0x59b692={_0x1a0aa9:0x4d4};function _0x245086(_0x4cf3c4,_0x2e7d29,_0x21b13e,_0x25e264){return _0x5276b1(_0x25e264,_0x2e7d29-0x1a5,_0x21b13e-0x14b,_0x21b13e-_0x59b692._0x1a0aa9);}return _0x4b98aa instanceof ProviderStreamEventError&&_0x4b98aa[_0x245086(_0x31a19a._0x1bf50d,0x557,0x49f,0x421)];}var ANTHROPIC_MESSAGES_SURFACE=_0x5276b1(0x91,-0x99,0xc,0x27),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x5276b1(-0xf1,0x5,0x4,-0xb8);function parseToolInput(_0x48d093){try{return JSON['parse'](_0x48d093);}catch{return _0x48d093;}}function resolveReasoningVisibility(_0x4bdb5a){const _0x2362dc={_0x4989a9:0x5b3,_0x192b5e:0x561,_0x40ff62:0x623},_0x7d1697={_0x99698f:0x169},_0x15cbfb={_0x118f05:0x10e,_0x224d1d:0x1c0,_0x30e519:0x11d};function _0x3d2ecf(_0x38fbdb,_0x3cfe69,_0xdff39,_0x2ec661){return _0x54ac71(_0x38fbdb-_0x15cbfb._0x118f05,_0x38fbdb,_0x2ec661- -_0x15cbfb._0x224d1d,_0x2ec661-_0x15cbfb._0x30e519);}function _0x3065e2(_0x43f339,_0x18be96,_0x370f05,_0x1ed965){return _0x54ac71(_0x43f339-_0x7d1697._0x99698f,_0x18be96,_0x370f05-0x1ed,_0x1ed965-0xd5);}return _0x4bdb5a['reasoning']?.[_0x3065e2(_0x2362dc._0x4989a9,_0x2362dc._0x192b5e,0x626,0x61d)]??_0x3065e2(0x652,_0x2362dc._0x40ff62,0x5c1,0x5ca);}function isUserVisibleThinking(_0xf2a96a){const _0x244762={_0x3e67d0:0xfe,_0x5d1594:0x12d,_0x33d60b:0x12,_0x1bcc33:0x5f,_0x2d75bb:0xfc,_0x15bb1d:0x14},_0x3046ad={_0x45b360:0x26,_0x223367:0x1b},_0x390001={_0xce93ef:0x163,_0x216224:0x2f6},_0x94c32=resolveAnthropicThinkingConfig(_0xf2a96a[_0x2ed16b(_0x244762._0x3e67d0,_0x244762._0x5d1594,_0x244762._0x33d60b,0xbc)]);function _0x2ed16b(_0x2ab853,_0x24d5ee,_0x20f984,_0x3816bd){return _0x54ac71(_0x2ab853-_0x390001._0xce93ef,_0x24d5ee,_0x2ab853- -_0x390001._0x216224,_0x3816bd-0xc1);}function _0x42d7e6(_0x46239e,_0x34d917,_0x50fce7,_0x52477a){return _0x5276b1(_0x34d917,_0x34d917-_0x3046ad._0x45b360,_0x50fce7-0x3e,_0x46239e-_0x3046ad._0x223367);}return _0x94c32!==void 0x0&&_0x94c32[_0x42d7e6(0xb3,_0x244762._0x1bcc33,0x82,_0x244762._0x2d75bb)]!==_0x42d7e6(_0x244762._0x15bb1d,0xb6,-0x79,0xbb)&&resolveReasoningVisibility(_0xf2a96a)==='user-visible';}function createAnthropicThinkingBody(_0x11299f){const _0x5623d8={_0x4c80e6:0x69,_0x11821c:0x4d,_0x1b6ff4:0x4f,_0x12c785:0x8,_0x18a54c:0xa7,_0x126c82:0x5,_0x2a7d8d:0x10a,_0x960558:0x2a,_0x32c7ae:0x78,_0x275139:0xbb,_0x503d5e:0x12,_0x3992ca:0x15,_0x37f28f:0x7b,_0x288690:0x4f,_0x433147:0x4a,_0x351cbb:0x2d,_0x41acb4:0xd6,_0x5eb6bf:0x7c,_0x806ba9:0x2f,_0x2e578a:0xcb,_0x905929:0x189,_0x46167a:0xd8},_0x59c5fd={_0x18eecb:0x77},_0x5c800e={_0x59536c:0x49};function _0x4df286(_0x531776,_0x35641e,_0x22839d,_0x16b9e2){return _0x5276b1(_0x22839d,_0x35641e-0x13b,_0x22839d-0x179,_0x35641e- -_0x5c800e._0x59536c);}const _0x4f8c1c=resolveAnthropicThinkingConfig(_0x11299f[_0x20b82f(-0x62,_0x5623d8._0x4c80e6,0x126,0x2c)]);function _0x20b82f(_0x665ec7,_0x13ff9c,_0xf717c1,_0x1310ff){return _0x5276b1(_0x1310ff,_0x13ff9c-_0x59c5fd._0x18eecb,_0xf717c1-0x122,_0x13ff9c-0x72);}if(!_0x4f8c1c||_0x4f8c1c[_0x4df286(-_0x5623d8._0x11821c,0x4f,-_0x5623d8._0x1b6ff4,0xf0)]===_0x20b82f(-0x77,0x6b,-_0x5623d8._0x12c785,0x8b))return{};const _0x247d6c=_0x4f8c1c[_0x20b82f(-_0x5623d8._0x18a54c,-0x2,-0x72,0x26)]??(isUserVisibleThinking(_0x11299f)?_0x4df286(-0x37,0x74,0x3,_0x5623d8._0x126c82):_0x4df286(_0x5623d8._0x2a7d8d,_0x5623d8._0x960558,_0x5623d8._0x32c7ae,-_0x5623d8._0x275139)),_0x4b5982=_0x4f8c1c[_0x4df286(0x5d,_0x5623d8._0x503d5e,0x73,-0xb0)]?{'anthropic-beta':_0x20b82f(-_0x5623d8._0x3992ca,0x67,_0x5623d8._0x37f28f,-0x1c)}:void 0x0;if(_0x4f8c1c[_0x4df286(-0x3c,_0x5623d8._0x288690,_0x5623d8._0x433147,0x46)]===_0x20b82f(0x1d,-0x3e,0x4a,_0x5623d8._0x351cbb))return{..._0x4b5982?{'headers':_0x4b5982}:{},'thinking':{'type':'enabled','budget_tokens':_0x4f8c1c[_0x20b82f(_0x5623d8._0x41acb4,0x0,-_0x5623d8._0x5eb6bf,0x54)],'display':_0x247d6c}};return{..._0x4b5982?{'headers':_0x4b5982}:{},'thinking':{'type':_0x4df286(-_0x5623d8._0x806ba9,-0x65,0x21,0x65),..._0x4f8c1c[_0x4df286(0x10d,0x1d,_0x5623d8._0x2e578a,-_0x5623d8._0x32c7ae)]?{'effort':_0x4f8c1c[_0x20b82f(_0x5623d8._0x905929,_0x5623d8._0x46167a,0x78,0x12a)]}:{},'display':_0x247d6c}};}function toAnthropicRequestContent(_0x2057b5){const _0x23ec65={_0x29a04b:0x70e,_0x256ce7:0x75e,_0x3b934a:0x70d,_0x21dd2f:0x78c,_0x5bcf4e:0x5b3,_0x438f57:0x53d,_0x517ba7:0x4c1,_0x3f650c:0x13f,_0xdeed9:0xbc,_0xba9125:0x4,_0xa5a952:0x6d3,_0x2bf029:0x7af,_0xe2042:0x71b,_0x45ecfc:0x6bc,_0x29bac2:0x6cc,_0x3ac923:0x651,_0x1a36c4:0x63a,_0x62d4de:0x5e3,_0x38472b:0x91,_0x1b9842:0x94,_0x1292f1:0xa5,_0x39dfb9:0x3a,_0x2008ad:0x10e,_0x542919:0x56,_0x104144:0x12,_0x13ad88:0x19,_0x1847d5:0x1},_0x47cb0c={_0x59a9f2:0xce,_0x341b3e:0x227},_0x428cb6={_0x33e251:0x193,_0x41943d:0x1ba,_0x1ad627:0x37};function _0x3d5918(_0x41609c,_0x3ee41f,_0x37a438,_0x178b44){return _0x5276b1(_0x37a438,_0x3ee41f-_0x428cb6._0x33e251,_0x37a438-_0x428cb6._0x41943d,_0x41609c- -_0x428cb6._0x1ad627);}if(_0x2057b5[_0x334b3d(0x6eb,0x744,_0x23ec65._0x29a04b,_0x23ec65._0x256ce7)]===_0x334b3d(0x694,0x5a0,0x68f,_0x23ec65._0x3b934a)&&_0x2057b5['providerState']?.[_0x334b3d(0x6db,0x62d,_0x23ec65._0x21dd2f,0x789)])return structuredClone(_0x2057b5[_0x334b3d(_0x23ec65._0x5bcf4e,_0x23ec65._0x438f57,0x64e,_0x23ec65._0x517ba7)][_0x3d5918(0x80,_0x23ec65._0x3f650c,_0x23ec65._0xdeed9,-_0x23ec65._0xba9125)]);const _0x11c24e=[];for(const _0x5347ae of normalizeContent(_0x2057b5[_0x334b3d(_0x23ec65._0xa5a952,_0x23ec65._0x2bf029,_0x23ec65._0xe2042,0x75a)])){if(_0x5347ae[_0x334b3d(_0x23ec65._0x45ecfc,_0x23ec65._0x29bac2,0x62f,0x759)]===_0x334b3d(0x5db,0x662,_0x23ec65._0x3ac923,_0x23ec65._0x1a36c4))continue;if(_0x5347ae['type']===_0x334b3d(0x535,_0x23ec65._0x62d4de,0x442,0x51f)){_0x11c24e[_0x3d5918(0x12,_0x23ec65._0x38472b,_0x23ec65._0x1b9842,0x2a)]({'type':'thinking','thinking':_0x5347ae[_0x334b3d(0x5ba,0x4f8,0x564,0x56c)],'signature':_0x5347ae[_0x3d5918(_0x23ec65._0x1292f1,-_0x23ec65._0x39dfb9,0x14c,-0x2b)]});continue;}if(_0x5347ae['type']===_0x3d5918(0x88,0x13f,_0x23ec65._0x2008ad,-_0x23ec65._0x542919)){_0x11c24e[_0x3d5918(_0x23ec65._0x104144,_0x23ec65._0x38472b,-0x10,-0x6a)]({'type':'redacted_thinking','data':_0x5347ae['data']});continue;}_0x11c24e[_0x3d5918(_0x23ec65._0x104144,_0x23ec65._0x13ad88,-_0x23ec65._0x1847d5,-0x3f)](structuredClone(_0x5347ae));}function _0x334b3d(_0x230af3,_0x540faf,_0x28640e,_0x10477b){return _0x54ac71(_0x230af3-_0x47cb0c._0x59a9f2,_0x28640e,_0x230af3-_0x47cb0c._0x341b3e,_0x10477b-0x1f0);}return _0x11c24e;}function createAnthropicRequest(_0x1df3da,_0xf67c44){const _0x1d25b8={_0x5a531d:0x60f,_0x51d978:0x657,_0xc56b50:0x55c,_0x2dac54:0xd2,_0x186831:0x94,_0x93a38d:0x4a,_0x5b4bf6:0x61,_0x43eefa:0x145,_0x13c53e:0xa,_0x111958:0x630,_0x65cadb:0x3c,_0x3f2a81:0x2e,_0x724f76:0x13,_0x207e45:0x2a,_0x2a2c89:0x8a,_0x570aac:0x84},_0x23a73b={_0x40e313:0x305,_0x40373d:0x2ed},_0x3e52e4={_0x173a7c:0x239},_0x3b846b={_0x29514b:0x81,_0x21a6af:0x3f4,_0x33d456:0x10},_0x2684cd=toProviderModelRequest(_0x1df3da);function _0x3ba9f0(_0x3a80b5,_0x13fef7,_0xca2344,_0x3acc97){return _0x54ac71(_0x3a80b5-_0x3b846b._0x29514b,_0x3acc97,_0x13fef7- -_0x3b846b._0x21a6af,_0x3acc97-_0x3b846b._0x33d456);}function _0x36a858(_0xce9307,_0x2c6ed4,_0x24c7c3,_0x3b1ce9){return _0x54ac71(_0xce9307-0x8e,_0xce9307,_0x24c7c3-_0x3e52e4._0x173a7c,_0x3b1ce9-0x58);}const _0x5adc74=createAnthropicThinkingBody(_0x1df3da);return{'accept':_0xf67c44?'text/event-stream':'application/json','body':{..._0x2684cd,'messages':_0x1df3da['messages']['map'](_0x3cb4d6=>{function _0x45341a(_0x33f35c,_0x2e9d84,_0x524575,_0x2c63f6){return _0x4c72(_0x2c63f6- -0xfb,_0x2e9d84);}return{'role':_0x3cb4d6[_0x45341a(_0x23a73b._0x40e313,0x263,_0x23a73b._0x40373d,0x256)],'content':toAnthropicRequestContent(_0x3cb4d6)};}),..._0x5adc74[_0x36a858(0x4e8,_0x1d25b8._0x5a531d,0x5cc,_0x1d25b8._0x51d978)]?{'thinking':_0x5adc74['thinking']}:{},..._0xf67c44?{'stream':!![]}:{},..._0x1df3da[_0x36a858(0x47f,0x615,_0x1d25b8._0xc56b50,0x62e)]?{'output_config':{'format':{'type':_0x3ba9f0(-_0x1d25b8._0x2dac54,-_0x1d25b8._0x186831,-0x6e,-0x187),'schema':_0x1df3da['outputFormat'][_0x3ba9f0(_0x1d25b8._0x93a38d,_0x1d25b8._0x5b4bf6,_0x1d25b8._0x43eefa,-_0x1d25b8._0x13c53e)]}}}:{}},..._0x5adc74[_0x36a858(0x4de,0x4fa,0x596,_0x1d25b8._0x111958)]?{'headers':_0x5adc74[_0x3ba9f0(0x59,-0x97,_0x1d25b8._0x65cadb,_0x1d25b8._0x3f2a81)]}:{},'path':_0x3ba9f0(-_0x1d25b8._0x724f76,_0x1d25b8._0x207e45,-_0x1d25b8._0x2a2c89,_0x1d25b8._0x570aac)};}function parseAnthropicResponse(_0x9ff752,_0xd5000a){const _0x2ee9d0={_0x22f9c3:0x554,_0x17b6dc:0x515,_0x5b254c:0x59b,_0x49ea93:0x53d,_0x547728:0x4c8,_0x362d2d:0x38b,_0x1cf628:0x521,_0x17490e:0x62f,_0xce078f:0x4bd,_0x438f71:0x6e,_0xad5e21:0x1c,_0x14301d:0xbe,_0xb57c93:0x530,_0x19351d:0x482,_0x47ecc3:0x85,_0x8d4a45:0x36,_0x19d5fc:0x87,_0x2ab458:0x20,_0x992a80:0x4ee,_0x4cfec8:0x403,_0x4213b2:0x42d,_0x379d5b:0xdd,_0x2849fe:0x10,_0x3ee583:0x14,_0x246ee9:0x1ea,_0x1c1582:0x38d,_0x5607fc:0x46a,_0x5ee5a8:0x404,_0x760a22:0x6,_0x239c0d:0x11c,_0x3b9831:0x8,_0x273433:0x4f2,_0x345f70:0x5a5,_0x4d63a0:0xff,_0x59e6d0:0x12,_0x5b6423:0x12f,_0x1905cf:0x104,_0x493c62:0x15d,_0x461b40:0x5af,_0x2d1290:0x5dc,_0x2cbf88:0x54d,_0x2437df:0x577,_0x4c2486:0x510,_0xc0a530:0x548,_0x54e914:0x569,_0x5f4ac8:0x1d5,_0x2b74e2:0x211,_0x4b65e0:0x4f2,_0x45f940:0x5af,_0x5cd084:0x89,_0xe9a17e:0x59e,_0x3fc589:0x107,_0x521929:0x66,_0x1f8680:0x6b},_0x52cc4a={_0x3b87e0:0x132,_0x506447:0x4a5},_0x5ebc64={_0x5291a0:0x14c,_0x428458:0xc1},_0x30ff42=[],_0x5e5450=_0x9ff752[_0x251dcf(_0x2ee9d0._0x22f9c3,0x575,_0x2ee9d0._0x17b6dc,_0x2ee9d0._0x5b254c)]??[];function _0xe4fe3f(_0x30d0f9,_0x1192bb,_0x3a1957,_0x4c5e24){return _0x5276b1(_0x1192bb,_0x1192bb-0x17,_0x3a1957-_0x5ebc64._0x5291a0,_0x4c5e24- -_0x5ebc64._0x428458);}let _0x3fa4b8=![];for(const _0x579a2e of _0x5e5450){if(_0x579a2e['type']===_0xe4fe3f(-0x159,-0x21d,-0x1f8,-0x12b)){_0x3fa4b8=!![];isUserVisibleThinking(_0xd5000a)&&_0x30ff42['push']({'type':_0xe4fe3f(-0x16a,-0x19e,-0x143,-0x1b0),'thinking':_0x579a2e['thinking'],'signature':_0x579a2e['signature']});continue;}if(_0x579a2e[_0x251dcf(_0x2ee9d0._0x49ea93,0x574,0x511,_0x2ee9d0._0x547728)]===_0x251dcf(0x415,_0x2ee9d0._0x362d2d,0x421,0x396)){_0x3fa4b8=!![];isUserVisibleThinking(_0xd5000a)&&_0x30ff42['push']({'type':_0x251dcf(0x564,_0x2ee9d0._0x1cf628,_0x2ee9d0._0x17490e,_0x2ee9d0._0xce078f),'data':_0x579a2e['data']});continue;}if(_0x579a2e[_0xe4fe3f(-_0x2ee9d0._0x438f71,_0x2ee9d0._0xad5e21,-_0x2ee9d0._0x14301d,-0x29)]===_0x251dcf(_0x2ee9d0._0xb57c93,0x43f,0x4f8,_0x2ee9d0._0x19351d)){_0x579a2e[_0xe4fe3f(-0x9b,-0x86,-_0x2ee9d0._0x47ecc3,-_0x2ee9d0._0x8d4a45)][_0xe4fe3f(0xaf,-0xa4,_0x2ee9d0._0x19d5fc,_0x2ee9d0._0x2ab458)]>0x0&&_0x30ff42[_0x251dcf(_0x2ee9d0._0x992a80,0x582,_0x2ee9d0._0x4cfec8,_0x2ee9d0._0x4213b2)](structuredClone(_0x579a2e));continue;}_0x30ff42['push'](structuredClone(_0x579a2e));}function _0x251dcf(_0x40b5b9,_0x431d75,_0x2f46d8,_0x54474c){return _0x5276b1(_0x54474c,_0x431d75-_0x52cc4a._0x3b87e0,_0x2f46d8-0xe3,_0x40b5b9-_0x52cc4a._0x506447);}return{'id':_0x9ff752['id']??_0xe4fe3f(0x3c,_0x2ee9d0._0x379d5b,-_0x2ee9d0._0x2849fe,-_0x2ee9d0._0x3ee583)+Date['now'](),'content':_0x30ff42,'stopReason':_0x30ff42['some'](_0x5bd682=>_0x5bd682['type']===_0x251dcf(0x437,0x3b9,0x521,0x346))?'tool_use':_0x9ff752['stop_reason']===_0xe4fe3f(-_0x2ee9d0._0x246ee9,-0x93,-0x146,-0x12f)?_0x251dcf(0x437,_0x2ee9d0._0x1c1582,_0x2ee9d0._0x5607fc,_0x2ee9d0._0x5ee5a8):_0xe4fe3f(-_0x2ee9d0._0x760a22,-_0x2ee9d0._0x239c0d,_0x2ee9d0._0x3b9831,-0x68),'usage':{'inputTokens':(_0x9ff752[_0x251dcf(_0x2ee9d0._0x273433,0x499,0x41d,_0x2ee9d0._0x345f70)]?.['input_tokens']??0x0)+(_0x9ff752[_0xe4fe3f(0x36,-_0x2ee9d0._0x4d63a0,_0x2ee9d0._0x59e6d0,-0x74)]?.[_0xe4fe3f(-_0x2ee9d0._0x5b6423,-0xa0,-_0x2ee9d0._0x1905cf,-_0x2ee9d0._0x493c62)]??0x0)+(_0x9ff752[_0x251dcf(0x4f2,0x56c,0x4ea,0x4b0)]?.[_0x251dcf(0x4fb,0x484,0x482,_0x2ee9d0._0x461b40)]??0x0),'outputTokens':_0x9ff752[_0x251dcf(0x4f2,0x56b,_0x2ee9d0._0x2d1290,_0x2ee9d0._0x2cbf88)]?.[_0x251dcf(_0x2ee9d0._0x2437df,0x5ad,0x5ae,_0x2ee9d0._0x4c2486)]??0x0,..._0x9ff752[_0x251dcf(0x4f2,_0x2ee9d0._0xc0a530,0x438,_0x2ee9d0._0x54e914)]?.['cache_read_input_tokens']?{'cacheReadInputTokens':_0x9ff752['usage'][_0xe4fe3f(-_0x2ee9d0._0x5f4ac8,-0x1e0,-_0x2ee9d0._0x2b74e2,-0x15d)]}:{},..._0x9ff752[_0x251dcf(_0x2ee9d0._0x4b65e0,_0x2ee9d0._0x45f940,0x557,_0x2ee9d0._0x1cf628)]?.[_0xe4fe3f(0x82,-0x80,_0x2ee9d0._0x5cd084,-0x6b)]?{'cacheCreationInputTokens':_0x9ff752[_0x251dcf(0x4f2,0x5aa,_0x2ee9d0._0xe9a17e,0x4c2)][_0xe4fe3f(-_0x2ee9d0._0x3fc589,-0x105,-_0x2ee9d0._0x521929,-_0x2ee9d0._0x1f8680)]}:{}},..._0x3fa4b8?{'providerState':{'anthropicAssistantContent':structuredClone(_0x5e5450)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x5276b1(0x1b,0xd0,0x88,0x79)]=new Map();[_0x54ac71(0x525,0x512,0x49d,0x591)]=0x0;['cacheReadInputTokens']=0x0;[_0x5276b1(-0x2c,-0x3b,-0x74,-0x4e)]=0x0;[_0x5276b1(0x8c,-0x44,0x37,-0xa)]=_0x5276b1(0xf2,-0x45,0x18b,0xad)+Date[_0x5276b1(0x6b,0x168,0x192,0xe4)]();[_0x54ac71(0x2df,0x2d6,0x36c,0x32e)]=0x0;[_0x54ac71(0x2ab,0x395,0x379,0x362)];[_0x54ac71(0x2ad,0x2f9,0x2ff,0x376)]=_0x5276b1(-0x41,0xd5,0xff,0x59);constructor(_0x4e4f79){this['request']=_0x4e4f79;}[_0x54ac71(0x475,0x3e9,0x4d0,0x534)](_0x537c4c){const _0xc046cd={_0x285d95:0x589,_0x4051d0:0x62f,_0x1f5635:0x268,_0x289a03:0x1ce,_0x2a4be3:0x20f,_0x297738:0x27e,_0x1eb645:0x348,_0x5b4a08:0x3a1,_0x414269:0x30c,_0x449947:0x246,_0x3a9e0c:0x2e5,_0x17f336:0x274,_0x3508e4:0x4b6,_0x2e5a5d:0x50c,_0x1998f1:0x776,_0x19cbf7:0x656,_0x511099:0x290,_0x3f32e7:0x544,_0x4e356b:0x5ea,_0x37c1d2:0x2c5,_0x278f93:0x35b,_0x4d33cd:0x599,_0x5c429d:0x693,_0x26be8e:0x5a6,_0x2e03e8:0x39e,_0x52f79e:0x21f,_0x3a72cf:0x1dc,_0x3ee456:0x27d,_0x440750:0x279,_0x2d9c8c:0x21e,_0x3ec708:0x676,_0x63e881:0x769,_0x46ecba:0x71b,_0x2bd42f:0x67e,_0x31f3b1:0x5a2,_0x5ac54f:0x694,_0x2c29ff:0x5e5,_0x449ea7:0x6f2,_0x4d4185:0x50c,_0xdb4113:0x4c8,_0x3f27a6:0x494,_0x18aad3:0x541,_0x5e10e8:0x338,_0x28f4b1:0x273,_0xc4d38b:0x18d,_0x5a3f76:0x63d,_0x3d7672:0x6a3,_0x344525:0x775,_0x17623f:0x60a,_0x3103b1:0x74f,_0x456e10:0x6d1,_0x4448de:0x69b,_0xdbaf4d:0x6a2,_0x54977c:0x502,_0x3cdc37:0x594,_0x3b6e61:0x5a7,_0x49480c:0x5e6,_0x2e5dce:0x68c,_0x2a9aae:0x5a5,_0xce7c53:0x685,_0x1771b1:0x5e3,_0x44062b:0x6d0,_0x56cf7a:0x591,_0xaf4170:0x53b,_0x5109a5:0x5be,_0x356b16:0x790,_0x38f5d4:0x6d0,_0x118148:0x37f,_0x35a2b3:0x3cb,_0x58a9fc:0x5be,_0x401d21:0x6ae,_0x28ec4e:0x6e4,_0x83e8f4:0x67f,_0xdb2310:0x18f,_0x476c62:0x266,_0x439858:0x20e,_0x1d9105:0x252,_0x7e7bb8:0x295,_0x443df5:0x242,_0x5dff38:0x212,_0x8fb8d8:0x24c,_0xeb1420:0x470,_0x3c5022:0x653,_0x3bc66b:0x6fe,_0x1849f5:0x181,_0x57e102:0x16a,_0x4e195d:0x1e8,_0xdf4eb0:0x2da,_0x4c74f9:0x5b1,_0x8a918b:0x63e,_0x5840ad:0x553,_0x2f15f5:0x440,_0x37e049:0x56f,_0xcad2b2:0x28f,_0x352e7d:0x241,_0x3eda8e:0x238,_0x793a89:0xf2,_0x53425b:0xe0,_0x5b39a4:0xfb,_0x33ffaf:0x3a5,_0x41c6e4:0x2f1,_0x31179f:0x3be,_0x5576b3:0x25c,_0x7750f6:0x197,_0x147179:0x28c,_0x15791c:0x32c,_0x486259:0x310,_0x1a582a:0x337,_0x252fa3:0x242,_0x1030dc:0x1c6,_0x13c31e:0x185,_0xd775e1:0x2ac,_0x3abd24:0x671,_0x2a96d0:0x71e,_0x67a21b:0x1bb,_0x32e4bf:0x2ce,_0x5417c8:0x68d,_0x3d555f:0x60e,_0x1d9b5b:0x5b6,_0x185a24:0x5cd,_0x446541:0x5c3,_0x262e3d:0x586,_0x3ec0c9:0x327,_0x4f3e95:0x242,_0x518777:0x27c,_0x5e6a31:0x306,_0x45bb82:0x2dd,_0x10fb09:0x3fb,_0x50e24b:0x306,_0x5b14f2:0x5b9,_0x172bc1:0x5da,_0xd5b105:0x1a8,_0x8aaa2c:0x1be,_0x39b657:0x26a,_0x202f60:0x32e,_0x4280a8:0x6fd,_0x4e62e0:0x709,_0x546d49:0x71a,_0x415f78:0x62f,_0x167988:0x25f,_0x2df70b:0x20e,_0x2061e7:0x525,_0x2b3d2c:0x5f8,_0x3e8937:0x2d8,_0x4e3baf:0x3c1,_0x799b37:0x28a,_0x10909f:0x136,_0x438df0:0x1f4,_0x3d992b:0x102,_0x4bf3b5:0x28a,_0xb9392:0x344,_0x576058:0x351,_0x544467:0x282,_0x1560b5:0x242,_0xdce0c9:0x30c,_0x5b9b91:0x20e,_0x5a89ec:0x3db,_0x28f8db:0x354,_0x595606:0x649,_0x3571e6:0x6ba,_0x1f3451:0x268,_0x15f6c7:0x2f3,_0x3e99b3:0x55c,_0x3a7686:0x577,_0x363176:0x4f5,_0x2029c1:0x701,_0x4b4fc9:0x6a6,_0x4dca92:0x723,_0x3f0f4b:0x638,_0x3ca707:0x2a7,_0xf883f8:0x28a,_0x260b1a:0x69a,_0x8e612f:0x5ec,_0x1f3065:0x6fa,_0x358ef3:0x4c0,_0x389f25:0x5d3,_0x216ca7:0x5db,_0x9f9f01:0x62b,_0x3af344:0x59a,_0x141329:0x632,_0x22c016:0x781,_0xb559c5:0x690,_0x1cd33a:0x1f5,_0x1dcdc3:0x2d0,_0x30a7a2:0x34a,_0x470663:0x40c,_0xd47a94:0x4eb,_0x3e41f2:0x4d1,_0x297d5c:0x598,_0x17da47:0x138,_0x2c62f9:0x209,_0x394763:0x20a,_0x599368:0x635,_0x468ebf:0x67a,_0x51fceb:0x657,_0x272846:0x64d,_0x28f0d4:0x73e,_0x4320ea:0x237,_0x4d64d8:0x5ae,_0x2d39a1:0x69d},_0x13aa41={_0x348022:0x1f7,_0x297962:0x0},_0x2d6e60={_0x3406e2:0x99,_0x4d444e:0x150,_0x50c6fd:0x278},_0x453dab=_0x537c4c[_0x463044(_0xc046cd._0x285d95,0x5de,_0xc046cd._0x4051d0,0x5ba)]('\x0a'),_0x8cb941=_0x453dab['find'](_0x53ff5a=>_0x53ff5a['startsWith'](_0x463044(0x646,0x6af,0x551,0x5f7)))?.[_0x1a8191(_0xc046cd._0x1f5635,0x291,_0xc046cd._0x289a03,0x204)](0x6)[_0x1a8191(0x122,_0xc046cd._0x2a4be3,0x190,0xf9)]();function _0x1a8191(_0x224887,_0x55136d,_0x26b90a,_0x11e418){return _0x5276b1(_0x11e418,_0x55136d-_0x2d6e60._0x3406e2,_0x26b90a-_0x2d6e60._0x4d444e,_0x26b90a-_0x2d6e60._0x50c6fd);}const _0x150f05=_0x453dab[_0x1a8191(_0xc046cd._0x297738,0x384,_0xc046cd._0x1eb645,_0xc046cd._0x5b4a08)](_0x6b08b1=>_0x6b08b1[_0x463044(0x5cd,0x5de,0x6eb,0x631)](_0x1a8191(0x2a3,0x18b,0x24b,0x1f6)))[_0x1a8191(_0xc046cd._0x414269,_0xc046cd._0x449947,0x265,_0xc046cd._0x3a9e0c)](_0x3c2483=>_0x3c2483[_0x463044(0x602,0x461,0x4eb,0x54a)](0x5)[_0x1a8191(0x268,0xd3,0x18a,0x215)]())[_0x1a8191(0x1f4,0x334,0x2b2,_0xc046cd._0x17f336)]('\x0a')[_0x463044(0x4d0,0x533,_0xc046cd._0x3508e4,_0xc046cd._0x2e5a5d)]();if(_0x150f05[_0x463044(_0xc046cd._0x1998f1,_0xc046cd._0x19cbf7,0x612,0x6d5)]===0x0||_0x150f05==='[DONE]')return[];const _0x42e31c=JSON['parse'](_0x150f05);switch(_0x8cb941){case'message_start':{const _0x462a66=_0x42e31c[_0x1a8191(0x2a6,_0xc046cd._0x511099,0x237,0x255)];this[_0x463044(0x552,0x5d6,_0xc046cd._0x3f32e7,_0xc046cd._0x4e356b)]=_0x462a66?.['id']??this['messageId'],this['inputTokens']=_0x462a66?.[_0x1a8191(0x21d,0x289,_0xc046cd._0x37c1d2,_0xc046cd._0x278f93)]?.['input_tokens']??this[_0x463044(_0xc046cd._0x4d33cd,_0xc046cd._0x5c429d,0x4f9,_0xc046cd._0x26be8e)],this['cacheReadInputTokens']=_0x462a66?.[_0x1a8191(0x2e6,0x3a3,0x2c5,_0xc046cd._0x2e03e8)]?.[_0x1a8191(0x123,_0xc046cd._0x52f79e,_0xc046cd._0x3a72cf,_0xc046cd._0x3ee456)]??this[_0x1a8191(_0xc046cd._0x440750,0x1aa,_0xc046cd._0x2d9c8c,0x1d1)],this[_0x463044(_0xc046cd._0x3ec708,_0xc046cd._0x63e881,0x5a9,0x694)]=_0x462a66?.[_0x463044(_0xc046cd._0x46ecba,0x601,_0xc046cd._0x2bd42f,0x641)]?.['cache_creation_input_tokens']??this[_0x463044(0x5ac,0x5c2,_0xc046cd._0x31f3b1,_0xc046cd._0x5ac54f)];break;}case _0x463044(_0xc046cd._0x2c29ff,_0xc046cd._0x449ea7,0x5b1,0x684):{const _0x491c4f=typeof _0x42e31c['index']===_0x463044(_0xc046cd._0x4d4185,_0xc046cd._0xdb4113,_0xc046cd._0x3f27a6,_0xc046cd._0x18aad3)?_0x42e31c[_0x1a8191(_0xc046cd._0x5e10e8,0x1b4,_0xc046cd._0x28f4b1,0x26b)]:0x0,_0xb15226=_0x42e31c[_0x1a8191(0x17a,_0xc046cd._0xc4d38b,0x1a2,0x238)];if(_0xb15226?.['type']==='tool_use'&&_0xb15226['id']&&_0xb15226[_0x463044(0x468,0x454,0x5e8,0x533)])return this[_0x463044(0x75b,_0xc046cd._0x5a3f76,_0xc046cd._0x3d7672,0x66d)][_0x463044(_0xc046cd._0x344525,_0xc046cd._0x17623f,_0xc046cd._0x3103b1,_0xc046cd._0x456e10)](_0x491c4f,{'id':_0xb15226['id'],'index':_0x491c4f,'inputJson':JSON[_0x463044(0x760,0x60d,_0xc046cd._0x4448de,_0xc046cd._0xdbaf4d)](_0xb15226[_0x463044(_0xc046cd._0x4e356b,_0xc046cd._0x54977c,0x5f5,_0xc046cd._0x3cdc37)]??{}),'kind':'tool_use','name':_0xb15226['name']}),[{'type':_0x463044(_0xc046cd._0x3b6e61,0x567,0x5e6,_0xc046cd._0x49480c),'id':_0xb15226['id'],'index':_0x491c4f,'name':_0xb15226['name']}];if(_0xb15226?.[_0x463044(0x6f1,0x6e6,0x724,_0xc046cd._0x2e5dce)]==='thinking'){this[_0x463044(0x59c,_0xc046cd._0x2a9aae,_0xc046cd._0xce7c53,0x66d)]['set'](_0x491c4f,{'index':_0x491c4f,'kind':'thinking','signature':typeof _0xb15226[_0x463044(_0xc046cd._0x1771b1,0x5e6,0x71b,_0xc046cd._0x44062b)]===_0x463044(0x5ab,_0xc046cd._0x56cf7a,_0xc046cd._0xaf4170,_0xc046cd._0x5109a5)?_0xb15226[_0x463044(_0xc046cd._0x356b16,0x6b0,0x6ef,_0xc046cd._0x38f5d4)]:'','thinking':typeof _0xb15226[_0x1a8191(0x26d,_0xc046cd._0x118148,0x303,_0xc046cd._0x35a2b3)]===_0x463044(0x677,0x581,0x64d,_0xc046cd._0x58a9fc)?_0xb15226[_0x463044(_0xc046cd._0x401d21,_0xc046cd._0x28ec4e,0x599,_0xc046cd._0x83e8f4)]:typeof _0xb15226[_0x1a8191(_0xc046cd._0xdb2310,_0xc046cd._0x476c62,_0xc046cd._0x439858,_0xc046cd._0x1d9105)]===_0x1a8191(_0xc046cd._0x7e7bb8,0x2e4,_0xc046cd._0x443df5,0x221)?String(_0xb15226[_0x1a8191(0x288,_0xc046cd._0x5dff38,0x20e,_0xc046cd._0x8fb8d8)]):''});break;}if(_0xb15226?.[_0x1a8191(0x329,0x31c,0x310,0x2cf)]===_0x463044(0x5a6,_0xc046cd._0xeb1420,_0xc046cd._0xaf4170,0x564)){this['blocks'][_0x463044(_0xc046cd._0x3c5022,_0xc046cd._0x3bc66b,0x60d,_0xc046cd._0x456e10)](_0x491c4f,{'index':_0x491c4f,'kind':_0x1a8191(_0xc046cd._0x1849f5,_0xc046cd._0x57e102,_0xc046cd._0x4e195d,_0xc046cd._0xdf4eb0),'data':typeof _0xb15226[_0x463044(_0xc046cd._0x4c74f9,0x4bc,0x457,0x519)]===_0x463044(_0xc046cd._0x8a918b,_0xc046cd._0x5840ad,0x5b8,_0xc046cd._0x58a9fc)?String(_0xb15226[_0x463044(_0xc046cd._0x2f15f5,0x4ee,_0xc046cd._0x37e049,0x519)]):''});break;}this['blocks'][_0x463044(0x636,0x747,0x617,0x6d1)](_0x491c4f,{'index':_0x491c4f,'kind':'text','text':_0xb15226?.[_0x1a8191(0x226,0x2c6,0x303,_0xc046cd._0xcad2b2)]??''});break;}case _0x1a8191(_0xc046cd._0x352e7d,0x1db,_0xc046cd._0x3eda8e,0x20a):{const _0x3b8ba7=typeof _0x42e31c['index']===_0x1a8191(_0xc046cd._0x793a89,_0xc046cd._0x53425b,0x1c5,_0xc046cd._0x5b39a4)?_0x42e31c['index']:0x0,_0x349b24=this[_0x1a8191(_0xc046cd._0x33ffaf,0x2d4,_0xc046cd._0x41c6e4,_0xc046cd._0x31179f)][_0x1a8191(_0xc046cd._0x5576b3,_0xc046cd._0x7750f6,0x209,0x1d4)](_0x3b8ba7),_0x4013d7=_0x42e31c['delta'];if(!_0x349b24||!_0x4013d7?.[_0x1a8191(_0xc046cd._0x278f93,0x297,0x310,0x37e)])break;if(_0x4013d7[_0x1a8191(_0xc046cd._0x147179,_0xc046cd._0x15791c,_0xc046cd._0x486259,_0xc046cd._0x1a582a)]===_0x1a8191(_0xc046cd._0x252fa3,_0xc046cd._0x1030dc,0x1a9,_0xc046cd._0x13c31e)&&_0x349b24[_0x1a8191(0x3d0,_0xc046cd._0xd775e1,0x30c,0x345)]===_0x463044(0x754,_0xc046cd._0x3abd24,_0xc046cd._0x2a96d0,0x67f)&&typeof _0x4013d7['text']===_0x1a8191(_0xc046cd._0x67a21b,0x2d1,0x242,_0xc046cd._0x32e4bf))return _0x349b24[_0x463044(_0xc046cd._0x5417c8,_0xc046cd._0x3d555f,0x65e,0x67f)]+=_0x4013d7[_0x1a8191(0x242,0x3f7,0x303,0x312)],[{'type':'content_delta','index':_0x3b8ba7,'text':_0x4013d7['text']}];if(_0x4013d7['type']===_0x463044(_0xc046cd._0x1d9b5b,_0xc046cd._0x185a24,0x51f,_0xc046cd._0x446541)&&_0x349b24['kind']===_0x463044(0x625,0x5e3,0x5d2,_0xc046cd._0x262e3d)&&typeof _0x4013d7['partial_json']===_0x1a8191(_0xc046cd._0x3ec0c9,0x164,_0xc046cd._0x4f3e95,_0xc046cd._0x518777))return _0x349b24[_0x1a8191(0x30f,0x3ec,_0xc046cd._0x5e6a31,_0xc046cd._0x45bb82)]==='{}'&&(_0x349b24['inputJson']=''),_0x349b24[_0x1a8191(_0xc046cd._0x3a9e0c,_0xc046cd._0x10fb09,_0xc046cd._0x50e24b,0x345)]+=_0x4013d7[_0x463044(0x610,_0xc046cd._0x5b14f2,0x6bd,_0xc046cd._0x172bc1)],[{'type':_0x1a8191(_0xc046cd._0xd5b105,_0xc046cd._0x8aaa2c,_0xc046cd._0x39b657,_0xc046cd._0x202f60),'id':_0x349b24['id'],'index':_0x3b8ba7,'inputDelta':_0x4013d7['partial_json']}];if(_0x4013d7[_0x463044(_0xc046cd._0x4280a8,_0xc046cd._0x4e62e0,0x6ea,0x68c)]==='thinking_delta'&&_0x349b24[_0x463044(_0xc046cd._0x546d49,_0xc046cd._0x415f78,0x597,0x688)]===_0x1a8191(0x302,_0xc046cd._0x167988,_0xc046cd._0x2df70b,0x2d7)){const _0x5d97f6=typeof _0x4013d7['thinking']===_0x463044(_0xc046cd._0x2061e7,_0xc046cd._0x2b3d2c,0x603,_0xc046cd._0x5109a5)?String(_0x4013d7['thinking']):'';if(_0x5d97f6[_0x1a8191(_0xc046cd._0x3e8937,_0xc046cd._0x4e3baf,0x359,_0xc046cd._0x799b37)]>0x0){_0x349b24['thinking']+=_0x5d97f6;if(isUserVisibleThinking(this[_0x1a8191(0x1aa,_0xc046cd._0x10909f,_0xc046cd._0x438df0,0x254)]))return[{'type':_0x1a8191(0x20f,_0xc046cd._0x3d992b,0x1ea,0x168),'index':_0x3b8ba7,'thinking':_0x5d97f6}];}}if(_0x4013d7['type']===_0x1a8191(_0xc046cd._0x4bf3b5,_0xc046cd._0xb9392,0x32a,_0xc046cd._0x576058)&&_0x349b24[_0x1a8191(_0xc046cd._0x544467,_0xc046cd._0x1560b5,_0xc046cd._0xdce0c9,0x2cd)]===_0x1a8191(0x2d1,0x2ea,_0xc046cd._0x5b9b91,0x123)){const _0x36c902=typeof _0x4013d7[_0x1a8191(0x410,_0xc046cd._0x5a89ec,_0xc046cd._0x28f8db,0x328)]===_0x463044(0x5f3,_0xc046cd._0x595606,0x523,_0xc046cd._0x58a9fc)?String(_0x4013d7[_0x463044(0x6df,0x765,0x5fe,0x6d0)]):'';if(_0x36c902[_0x463044(0x600,_0xc046cd._0x3571e6,_0xc046cd._0x3ec708,0x6d5)]>0x0){_0x349b24[_0x1a8191(0x333,_0xc046cd._0x1f3451,_0xc046cd._0x28f8db,_0xc046cd._0x15f6c7)]=_0x36c902;if(isUserVisibleThinking(this['request']))return[{'type':_0x463044(_0xc046cd._0x3e99b3,_0xc046cd._0x3a7686,0x5e9,_0xc046cd._0x363176),'index':_0x3b8ba7,'signature':_0x36c902}];}}break;}case'message_delta':{const _0x320068=_0x42e31c[_0x463044(_0xc046cd._0x2029c1,_0xc046cd._0x4b4fc9,_0xc046cd._0x4dca92,_0xc046cd._0x3f0f4b)],_0x99cc07=_0x42e31c[_0x1a8191(_0xc046cd._0x3ca707,_0xc046cd._0xf883f8,_0xc046cd._0x37c1d2,0x2cc)];this[_0x463044(0x640,_0xc046cd._0x260b1a,_0xc046cd._0x8e612f,_0xc046cd._0x26be8e)]=_0x99cc07?.[_0x463044(_0xc046cd._0x1f3065,0x71d,0x617,0x6c1)]??this[_0x463044(_0xc046cd._0x358ef3,_0xc046cd._0x389f25,0x534,0x5a6)],this[_0x463044(_0xc046cd._0x216ca7,0x527,_0xc046cd._0x9f9f01,_0xc046cd._0x3af344)]=_0x99cc07?.['cache_read_input_tokens']??this['cacheReadInputTokens'],this['cacheCreationInputTokens']=_0x99cc07?.['cache_creation_input_tokens']??this[_0x463044(_0xc046cd._0x141329,_0xc046cd._0x22c016,_0xc046cd._0xb559c5,0x694)],this[_0x1a8191(0xfc,_0xc046cd._0x1cd33a,0x1e7,_0xc046cd._0x1dcdc3)]=_0x99cc07?.[_0x1a8191(_0xc046cd._0x1f5635,0x43c,_0xc046cd._0x30a7a2,_0xc046cd._0x470663)]??this[_0x1a8191(0x13a,0x1de,0x1e7,_0xc046cd._0xc4d38b)],this['stopReason']=_0x320068?.[_0x463044(_0xc046cd._0xd47a94,0x4a7,_0xc046cd._0x3e41f2,_0xc046cd._0x297d5c)]===_0x1a8191(_0xc046cd._0x17da47,_0xc046cd._0x2c62f9,_0xc046cd._0x394763,0x12c)?_0x463044(_0xc046cd._0x599368,_0xc046cd._0x468ebf,_0xc046cd._0x51fceb,_0xc046cd._0x262e3d):_0x463044(0x568,0x71e,0x5b7,_0xc046cd._0x272846);break;}case _0x463044(_0xc046cd._0x28f0d4,_0xc046cd._0x2029c1,0x77b,0x6d9):{const _0x24127d=_0x42e31c['error'];throw new ProviderStreamEventError(_0x24127d?.[_0x1a8191(0x220,0x24d,_0xc046cd._0x4320ea,0x215)]??'Anthropic\x20stream\x20failed',{'code':_0x24127d?.[_0x463044(0x5ae,_0xc046cd._0x4d64d8,_0xc046cd._0x2d39a1,_0xc046cd._0x2e5dce)],'retryable':!![]});}}function _0x463044(_0x41e05a,_0x587c45,_0x17b9dd,_0x18ae5c){return _0x54ac71(_0x41e05a-0x17a,_0x17b9dd,_0x18ae5c-_0x13aa41._0x348022,_0x18ae5c-_0x13aa41._0x297962);}return[];}[_0x5276b1(0x13a,0x157,0xe7,0x78)](){const _0x1f6bd5={_0x389b58:0x71b,_0x510618:0x5f1,_0x5e10df:0x558,_0x2a37dd:0x4d9,_0x2518db:0x533,_0x31f529:0x61e,_0x3ed8c5:0x359,_0x18c09c:0x248,_0x106004:0x2d6,_0x4bbf4c:0x209,_0x2907c9:0x251,_0x344363:0x267,_0x25c5d7:0x377,_0x2f196f:0x6c7,_0x101cfd:0x70c,_0x43e6fc:0x6a2,_0x1173de:0x7ce,_0x5b501c:0x294,_0x2bf7e4:0x30f,_0x1bfb2a:0x1f9,_0x1549e9:0x218,_0x201db3:0x2fa,_0x5a1622:0x763,_0x33eb1a:0x6bf,_0x59495d:0x71c,_0x9ac167:0x633,_0x4acbc9:0x270,_0x20adde:0x1bc,_0x30f7cf:0x297,_0x1ed689:0x7a3,_0x559ff1:0x796,_0x241b86:0x61b,_0x5d94d0:0x6d8,_0x4ea4a3:0x550,_0x677fc8:0x4e8,_0x6f7c68:0x55b,_0x48f4d8:0x56a,_0x575c17:0x5ea,_0x15efcb:0x7a4,_0x684abf:0x6a5,_0x587a6a:0x6b9,_0x11414b:0x5d3,_0x1eeee7:0x621,_0x5cb1a8:0x68d,_0x50bc46:0x5e2,_0x399cfa:0x6c8,_0x2ac225:0x364,_0x2ef9c6:0x2bb,_0x2298bf:0x363,_0x1f525c:0x1cd,_0x4d08bc:0x14d,_0x122e7b:0xdd,_0x8a3bc5:0x235,_0x1d60ab:0x2e2,_0x10f1de:0x18a,_0x17421a:0x1ba,_0x13a2a3:0x26a,_0x903fa8:0x242,_0x228fe8:0x322},_0x2b7687={_0x766f3a:0x15d},_0x1aa1e7={_0x5339b4:0x1d9},_0x138bed=Array[_0x3825ea(0x6da,0x6b1,0x686,_0x1f6bd5._0x389b58)](this['blocks'][_0x3825ea(_0x1f6bd5._0x510618,_0x1f6bd5._0x5e10df,0x596,0x54d)]())[_0x3825ea(_0x1f6bd5._0x2a37dd,_0x1f6bd5._0x2518db,_0x1f6bd5._0x31f529,0x4ac)]((_0x2f7cc6,_0x10417c)=>_0x2f7cc6[_0x3825ea(0x6ab,0x626,0x6c3,0x5fa)]-_0x10417c[_0x173161(0x2b1,0x246,0x1fe,0x252)]),_0x2de4a4=[];function _0x3825ea(_0x4841d1,_0x53bf4c,_0x23ac36,_0x39194f){return _0x5276b1(_0x23ac36,_0x53bf4c-_0x1aa1e7._0x5339b4,_0x23ac36-0x1bf,_0x53bf4c-0x62b);}for(const _0x42c859 of _0x138bed){if(_0x42c859[_0x173161(_0x1f6bd5._0x3ed8c5,0x2df,0x26e,_0x1f6bd5._0x18c09c)]===_0x173161(0x2d0,_0x1f6bd5._0x106004,_0x1f6bd5._0x4bbf4c,_0x1f6bd5._0x2907c9)){_0x42c859[_0x173161(0x284,0x2d6,_0x1f6bd5._0x344363,_0x1f6bd5._0x25c5d7)][_0x3825ea(_0x1f6bd5._0x2f196f,_0x1f6bd5._0x101cfd,_0x1f6bd5._0x43e6fc,_0x1f6bd5._0x1173de)]>0x0&&_0x2de4a4[_0x173161(0x280,_0x1f6bd5._0x5b501c,0x2a6,_0x1f6bd5._0x2bf7e4)]({'type':_0x173161(0x1fa,_0x1f6bd5._0x106004,_0x1f6bd5._0x1bfb2a,_0x1f6bd5._0x1549e9),'text':_0x42c859[_0x173161(0x3c1,0x2d6,_0x1f6bd5._0x201db3,0x315)]});continue;}if(_0x42c859[_0x3825ea(_0x1f6bd5._0x5a1622,_0x1f6bd5._0x33eb1a,_0x1f6bd5._0x59495d,_0x1f6bd5._0x9ac167)]==='thinking'){_0x2de4a4[_0x173161(0x1c5,0x294,0x210,0x205)]({'type':_0x173161(_0x1f6bd5._0x4acbc9,0x1e1,0x2b3,_0x1f6bd5._0x20adde),'thinking':_0x42c859[_0x173161(0x10f,0x1e1,_0x1f6bd5._0x30f7cf,0x281)],'signature':_0x42c859[_0x3825ea(0x759,0x707,0x6b6,_0x1f6bd5._0x1ed689)]});continue;}if(_0x42c859[_0x3825ea(_0x1f6bd5._0x559ff1,_0x1f6bd5._0x33eb1a,0x6d3,0x769)]==='redacted_thinking'){_0x2de4a4[_0x3825ea(_0x1f6bd5._0x241b86,0x674,0x756,_0x1f6bd5._0x5d94d0)]({'type':'redacted_thinking','data':_0x42c859[_0x3825ea(0x51b,_0x1f6bd5._0x4ea4a3,_0x1f6bd5._0x677fc8,0x628)]});continue;}_0x2de4a4['push']({'type':_0x173161(0x2a8,0x1dd,0xec,0x117),'id':_0x42c859['id'],'name':_0x42c859[_0x3825ea(_0x1f6bd5._0x6f7c68,_0x1f6bd5._0x48f4d8,0x481,_0x1f6bd5._0x575c17)],'input':parseToolInput(_0x42c859[_0x3825ea(_0x1f6bd5._0x15efcb,0x6b9,_0x1f6bd5._0x684abf,0x612)]['length']>0x0?_0x42c859[_0x3825ea(0x6b8,_0x1f6bd5._0x587a6a,_0x1f6bd5._0x11414b,_0x1f6bd5._0x1eeee7)]:'{}')});}function _0x173161(_0x1270aa,_0x393250,_0x41b35f,_0x52c55c){return _0x5276b1(_0x41b35f,_0x393250-0x187,_0x41b35f-_0x2b7687._0x766f3a,_0x393250-0x24b);}return parseAnthropicResponse({'id':this['messageId'],'type':_0x3825ea(_0x1f6bd5._0x5cb1a8,0x5ea,_0x1f6bd5._0x50bc46,_0x1f6bd5._0x399cfa),'role':_0x173161(_0x1f6bd5._0x2ac225,_0x1f6bd5._0x2ef9c6,_0x1f6bd5._0x2298bf,0x324),'content':_0x2de4a4,'stop_reason':this[_0x173161(_0x1f6bd5._0x1f525c,_0x1f6bd5._0x4d08bc,0x1b4,_0x1f6bd5._0x122e7b)],'stop_sequence':null,'usage':{'input_tokens':this[_0x173161(_0x1f6bd5._0x8a3bc5,0x1fd,_0x1f6bd5._0x1d60ab,_0x1f6bd5._0x10f1de)],'output_tokens':this[_0x173161(0x161,_0x1f6bd5._0x17421a,0x176,0x120)],'cache_read_input_tokens':this[_0x173161(0x19d,0x1f1,0x1b3,_0x1f6bd5._0x13a2a3)],'cache_creation_input_tokens':this[_0x173161(_0x1f6bd5._0x903fa8,0x2eb,_0x1f6bd5._0x228fe8,0x22f)]}},this['request']);}};function createAnthropicSurfaces(){const _0x1faf39={_0x53ff34:0x56e,_0xe162a8:0x56e,_0x55aa8b:0x4a1,_0x2af4a3:0x553,_0x109e80:0x463},_0x57837f={_0x1ec72d:0x161,_0x473b35:0x62b},_0x29840f={_0x1c91ba:0x18f,_0x120c87:0x3e7};function _0x136890(_0x48d11c,_0x55e317,_0x26ac9a,_0x555309){return _0x5276b1(_0x55e317,_0x55e317-0x1cd,_0x26ac9a-_0x29840f._0x1c91ba,_0x555309-_0x29840f._0x120c87);}function _0x2dfd3c(_0xeb925f,_0x1b2862,_0x5708ea,_0x5a8874){return _0x5276b1(_0xeb925f,_0x1b2862-0xb5,_0x5708ea-_0x57837f._0x1ec72d,_0x5708ea-_0x57837f._0x473b35);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x2dfd3c(_0x1faf39._0x53ff34,0x5d3,0x534,_0x1faf39._0xe162a8),'createRequest'(_0x1b96c7){return createAnthropicRequest(_0x1b96c7,![]);},'parseResponse'(_0x47caea,_0x4b928c){return parseAnthropicResponse(_0x47caea,_0x4b928c);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x136890(0x46f,_0x1faf39._0x55aa8b,_0x1faf39._0x2af4a3,_0x1faf39._0x109e80),'createRequest'(_0x207c6d){return createAnthropicRequest(_0x207c6d,!![]);},'createStreamParser'(_0x420909){return new AnthropicMessagesStreamParser(_0x420909);}}];}var StaticModelSurfaceRouter=class{[_0x54ac71(0x435,0x36a,0x415,0x441)];[_0x54ac71(0x2d7,0x37c,0x344,0x407)];constructor(_0x491294){const _0x4fc1ca={_0x3452e3:0x1f,_0x575e14:0x2d,_0x34cb12:0xb,_0xcddb7e:0xce},_0x481dd7={_0x23a8bb:0x15};function _0x1de471(_0x54747d,_0x2b85fa,_0x4d28fe,_0x2b8f2c){return _0x54ac71(_0x54747d-0x97,_0x2b8f2c,_0x54747d- -0x335,_0x2b8f2c-0xbd);}this[_0x534942(0x23,-_0x4fc1ca._0x3452e3,_0x4fc1ca._0x575e14,_0x4fc1ca._0x34cb12)]=_0x491294[_0x1de471(0x76,0x2,0x2,_0x4fc1ca._0xcddb7e)];function _0x534942(_0x34be95,_0x33f623,_0x6a52b5,_0x3f0cf3){return _0x5276b1(_0x33f623,_0x33f623-0xf6,_0x6a52b5-0x1a4,_0x6a52b5-_0x481dd7._0x23a8bb);}this['streamSurface']=_0x491294[_0x534942(0x56,0xa7,0x3b,0x2f)];}['selectSurface'](_0x2ad360,_0x5721bd){const _0x3f4a0a={_0x2dacd1:0x5c5,_0x937372:0x2f2,_0x391d7a:0x1f4,_0x52fba8:0x4ed,_0x18b1f9:0x4d7,_0x4a70e1:0x5ba,_0x138d17:0x5ad},_0x598252={_0x17a31e:0x395},_0x5259e0={_0x13acc2:0x595};function _0x5371cd(_0x34ba10,_0x2eb00d,_0xa1c896,_0x245c6f){return _0x5276b1(_0x34ba10,_0x2eb00d-0x13,_0xa1c896-0x1ce,_0x245c6f-_0x5259e0._0x13acc2);}function _0x5241c2(_0x12bb88,_0x4f9f23,_0x3be870,_0x3789e6){return _0x5276b1(_0x4f9f23,_0x4f9f23-0xe9,_0x3be870-0x1dc,_0x12bb88-_0x598252._0x17a31e);}return _0x5721bd[_0x5371cd(0x4d3,0x5e3,_0x3f4a0a._0x2dacd1,0x552)]===_0x5371cd(0x5da,0x5ab,0x691,0x5bb)?this[_0x5241c2(0x2dc,0x290,_0x3f4a0a._0x937372,_0x3f4a0a._0x391d7a)]:this[_0x5371cd(_0x3f4a0a._0x52fba8,_0x3f4a0a._0x18b1f9,_0x3f4a0a._0x4a70e1,_0x3f4a0a._0x138d17)];}};function trimTrailingSlashes(_0x1c174c){const _0x19cd0f={_0x56f3f1:0x334},_0x484518={_0x2a4b29:0x94};function _0x269882(_0x713475,_0x554154,_0x27e891,_0x95e2e5){return _0x5276b1(_0x95e2e5,_0x554154-0xd2,_0x27e891-_0x484518._0x2a4b29,_0x713475-0x275);}return _0x1c174c[_0x269882(0x2c5,_0x19cd0f._0x56f3f1,0x30d,0x364)](/\/+$/,'');}function resolveApiCredential(_0x1455fd,_0x597d3d){const _0x13b827={_0x4bbc4f:0x1da,_0x37665c:0x158,_0x19f958:0x289},_0x5349ae={_0x249f0f:0x1e4},_0xbc79ca={_0x277c94:0x13a,_0x335c31:0x223};if(_0x597d3d?.['credential'])return _0x597d3d[_0x4a1c0b(_0x13b827._0x4bbc4f,0x1c9,0x23a,_0x13b827._0x37665c)];function _0x4a1c0b(_0x209d78,_0xb3f1f1,_0x225eae,_0x2be228){return _0x5276b1(_0xb3f1f1,_0xb3f1f1-_0xbc79ca._0x277c94,_0x225eae-0x13d,_0x225eae-_0xbc79ca._0x335c31);}if(!_0x1455fd)return void 0x0;function _0x4b2b52(_0x32a85e,_0x410314,_0x2597aa,_0x32ea78){return _0x5276b1(_0x32a85e,_0x410314-_0x5349ae._0x249f0f,_0x2597aa-0x4c,_0x32ea78-0x5a8);}return{'kind':_0x4a1c0b(0x297,_0x13b827._0x19f958,0x2a7,0x2aa),'value':_0x1455fd};}function resolveSessionBaseUrl(_0xd9006c,_0x4225aa){const _0x23ba6a={_0x3d05be:0x33c,_0x4ddd67:0x2ae,_0x1a462f:0x1c4,_0x59468a:0x23f,_0xc31b3c:0x14,_0xc1ee5b:0x13},_0x43bed1={_0x16c32b:0xae},_0x46e57e={_0x42cb12:0x148,_0x49a340:0x1f5,_0x296418:0x2e};function _0x346fb7(_0x438fc5,_0x3243eb,_0x992421,_0x2aeb9c){return _0x54ac71(_0x438fc5-_0x46e57e._0x42cb12,_0x992421,_0x3243eb- -_0x46e57e._0x49a340,_0x2aeb9c-_0x46e57e._0x296418);}function _0x208e52(_0x4aff59,_0x370013,_0x4f5885,_0x5c26c4){return _0x5276b1(_0x5c26c4,_0x370013-0x55,_0x4f5885-0xea,_0x4aff59-_0x43bed1._0x16c32b);}return trimTrailingSlashes(_0x4225aa?.[_0x346fb7(_0x23ba6a._0x3d05be,_0x23ba6a._0x4ddd67,_0x23ba6a._0x1a462f,_0x23ba6a._0x59468a)]?.[_0x208e52(_0x23ba6a._0xc31b3c,_0x23ba6a._0xc1ee5b,-0x54,0x22)]??_0xd9006c);}function toErrorMessage(_0x225869){const _0x2c044b={_0x2a025f:0x4d6,_0x1ea7f8:0x42d,_0x4aefe8:0x4e4,_0x488d68:0x55d,_0x4f8cca:0x52c},_0x3da581={_0x124b2c:0x16f,_0x3f8533:0x8,_0x589a82:0xc9},_0x2f82c5={_0xd730f5:0x7,_0x198efe:0xd2};function _0x21b10a(_0x3d4c56,_0x37a9b7,_0x516887,_0x155fbc){return _0x5276b1(_0x37a9b7,_0x37a9b7-_0x2f82c5._0xd730f5,_0x516887-_0x2f82c5._0x198efe,_0x3d4c56-0x525);}function _0xeb0a0(_0x1d31fd,_0x4b5f0d,_0x405544,_0x2fabc8){return _0x54ac71(_0x1d31fd-_0x3da581._0x124b2c,_0x405544,_0x1d31fd- -_0x3da581._0x3f8533,_0x2fabc8-_0x3da581._0x589a82);}if(_0x225869 instanceof Error&&_0x225869['message'][_0xeb0a0(_0x2c044b._0x2a025f,0x4cc,_0x2c044b._0x1ea7f8,0x432)]>0x0)return _0x225869[_0x21b10a(_0x2c044b._0x4aefe8,0x435,_0x2c044b._0x488d68,_0x2c044b._0x4f8cca)];return'WebSocket\x20request\x20failed';}function createDefaultWebSocketFactory(){const _0x3132fe={_0x2e75cd:0x8d,_0x24f169:0xee,_0x583b3f:0x2a};return({headers:_0x956e82,url:_0x5e0098})=>{const _0x4d826b={_0x4fdbe4:0x208},_0x3075a6=globalThis[_0x42f14e(_0x3132fe._0x2e75cd,_0x3132fe._0x24f169,_0x3132fe._0x583b3f,_0x3132fe._0x24f169)];function _0x42f14e(_0x24c34f,_0x2f2a1b,_0x23270b,_0x483b32){return _0x4c72(_0x24c34f- -_0x4d826b._0x4fdbe4,_0x2f2a1b);}return new _0x3075a6(_0x5e0098,{'headers':_0x956e82,'protocols':[]});};}async function*iterateSseEvents(_0x26cc60,_0x59ba2c){const _0x18c5aa={_0x58345e:0x239,_0x42368d:0x18e,_0x597af4:0x1b6,_0x4f4855:0xb4,_0x3b74c5:0xb,_0x2782c1:0x60,_0x4cc9e7:0x3c,_0x147633:0x9e,_0x360af8:0x76,_0x1df7f8:0x256,_0x13f7d5:0x192,_0x59916f:0x104,_0x3a7895:0x94,_0x17be10:0x7b,_0x55cfbf:0x1cd,_0x58ba94:0x198,_0x3731ce:0x291,_0x3c578a:0x189,_0xca9669:0x394,_0x178c62:0x358,_0x4f8f3a:0x413},_0x152312={_0x3de488:0x10},_0x54cfe4={_0x4a8a37:0x2bf},_0x367889={_0x4cf683:0x200},_0x188f8e={_0x276869:0xd5},_0x26c1c6=_0x26cc60[_0xdd7686(0x1ea,_0x18c5aa._0x58345e,0x311,0x20c)]?.[_0xdd7686(_0x18c5aa._0x42368d,0x202,0x18f,_0x18c5aa._0x597af4)]();if(!_0x26c1c6)return;const _0x347b24=new TextDecoder(_0x38295f(0x53,_0x18c5aa._0x4f4855,_0x18c5aa._0x3b74c5,_0x18c5aa._0x2782c1));let _0x5aae6='';const _0x20e306=addAbortListener(_0x59ba2c,()=>{function _0x1faded(_0x3ac17a,_0x4e18bb,_0x3e2d45,_0x1cc245){return _0xdd7686(_0x1cc245,_0x3ac17a- -0x3ca,_0x3e2d45-_0x188f8e._0x276869,_0x1cc245-0x1ef);}void _0x26c1c6['cancel'](toAbortError(_0x59ba2c?.[_0x1faded(-_0x367889._0x4cf683,-0x2ed,-0x18c,-0x149)]))['catch'](()=>{});});function _0x38295f(_0x3dc6c5,_0x49aaaf,_0x4f4f6c,_0x2de482){return _0x54ac71(_0x3dc6c5-0xae,_0x2de482,_0x49aaaf- -_0x54cfe4._0x4a8a37,_0x2de482-0x55);}function _0xdd7686(_0x380375,_0x510edd,_0x2b49b3,_0x3674d6){return _0x5276b1(_0x380375,_0x510edd-_0x152312._0x3de488,_0x2b49b3-0x81,_0x510edd-0x277);}try{while(!![]){throwIfAborted(_0x59ba2c);const {value:_0x346c66,done:_0x5b484b}=await _0x26c1c6[_0x38295f(-_0x18c5aa._0x4cc9e7,0x41,_0x18c5aa._0x147633,_0x18c5aa._0x360af8)]();throwIfAborted(_0x59ba2c);if(_0x5b484b)break;_0x5aae6+=_0x347b24[_0x38295f(_0x18c5aa._0x1df7f8,0x1af,0x220,_0x18c5aa._0x13f7d5)](_0x346c66,{'stream':!![]});while(!![]){const _0x2359e4=_0x5aae6[_0xdd7686(0x1a2,0x1c8,0x191,0x17c)]('\x0a\x0a');if(_0x2359e4===-0x1)break;const _0x582cfa=_0x5aae6[_0x38295f(0xf1,0x94,_0x18c5aa._0x59916f,-0x5e)](0x0,_0x2359e4);_0x5aae6=_0x5aae6[_0x38295f(0x3b,_0x18c5aa._0x3a7895,_0x18c5aa._0x17be10,0x151)](_0x2359e4+0x2),_0x582cfa[_0xdd7686(0x9f,0x18f,_0x18c5aa._0x55cfbf,0x26c)]()[_0x38295f(_0x18c5aa._0x58ba94,0x21f,_0x18c5aa._0x3731ce,_0x18c5aa._0x3c578a)]>0x0&&(yield _0x582cfa);}}_0x5aae6+=_0x347b24['decode'](),throwIfAborted(_0x59ba2c),_0x5aae6[_0x38295f(0xdf,0x56,0xf5,0x17)]()[_0xdd7686(_0x18c5aa._0xca9669,_0x18c5aa._0x178c62,0x33b,_0x18c5aa._0x4f8f3a)]>0x0&&(yield _0x5aae6);}finally{_0x20e306();}}async function waitForWebSocketOpen(_0x1b517a,_0x3ae17c){const _0x28b8d9={_0x37e08d:0x40,_0x51557b:0x3e,_0x303d37:0xdc},_0x3e24b3={_0x559888:0x1e1,_0x7c86fc:0x29f,_0x3fd386:0x360,_0x411f0d:0x34d,_0x1ffcf5:0x38a,_0x1062e8:0x315,_0x50c154:0x1f3,_0x448b06:0xef,_0x5466e4:0x147},_0x3c6dcd={_0x2a88d3:0x3df,_0x130848:0xee,_0x75af37:0x142},_0x36de4d={_0x3a85f8:0x14a,_0x2656ff:0x10d,_0x3562cf:0x4d8,_0x16af11:0x3f6},_0x3391e0={_0x20de51:0x555,_0x5912d4:0x582,_0x385ffd:0x490,_0x3cceda:0x52e,_0x5f43f6:0x4fc,_0x2516e5:0x46f,_0x583019:0x514},_0x4d733b={_0x5d8702:0xd3,_0x48c4d4:0x1e8,_0x170640:0x105,_0x38dc89:0x2d8};function _0x262873(_0x493038,_0x1cd933,_0x2d6b2e,_0x32c432){return _0x54ac71(_0x493038-0xf2,_0x493038,_0x2d6b2e- -0x2da,_0x32c432-0x46);}function _0x338fb1(_0x21caa6,_0x4ca366,_0x4163e9,_0x305ec2){return _0x54ac71(_0x21caa6-0x7b,_0x305ec2,_0x21caa6- -0x3d9,_0x305ec2-0x89);}if(_0x1b517a[_0x338fb1(-0x1b,0x74,0x55,_0x28b8d9._0x37e08d)]===WebSocket[_0x338fb1(-_0x28b8d9._0x51557b,0xb7,-0x12b,-_0x28b8d9._0x303d37)]){throwIfAborted(_0x3ae17c);return;}throwIfAborted(_0x3ae17c),await new Promise((_0x4a314c,_0x1bdda5)=>{const _0x591e61={_0x5e8e33:0xa9},_0x1d7908={_0x1ecaf5:0x15c,_0x351832:0x131,_0x2e02ab:0xde},_0x4df20c={_0x566e87:0x77,_0xa912c8:0x1d5},_0x202c57=()=>{_0x26c01(),_0x4a314c();},_0x1cc595=_0x12a9be=>{function _0x51d617(_0x2cdfe3,_0x38fe95,_0x190634,_0x17ddc0){return _0x4c72(_0x2cdfe3- -0xf,_0x190634);}_0x26c01();function _0x44a8d3(_0x3e76bd,_0x34df87,_0x3dff2e,_0x42c3a7){return _0x4c72(_0x3dff2e- -0x33c,_0x42c3a7);}_0x1bdda5(new Error(_0x12a9be[_0x44a8d3(-0x1d4,-_0x4d733b._0x5d8702,-0xf3,-_0x4d733b._0x48c4d4)]||_0x51d617(0x1ef,_0x4d733b._0x170640,0x225,_0x4d733b._0x38dc89)));};function _0x57191a(_0x3aa554,_0xfc7e93,_0x4e2a1c,_0x252844){return _0x262873(_0xfc7e93,_0xfc7e93-_0x4df20c._0x566e87,_0x252844-0xc7,_0x252844-_0x4df20c._0xa912c8);}const _0x515f8c=_0x44b5bc=>{function _0x27ee3c(_0x205141,_0x458eda,_0x19550e,_0x36b0d8){return _0x4c72(_0x19550e- -0x36b,_0x458eda);}function _0x12418e(_0x415452,_0x38d6f7,_0x2f8881,_0x4181c4){return _0x4c72(_0x2f8881- -0x334,_0x38d6f7);}_0x26c01();const _0x55c96d=_0x44b5bc;_0x1bdda5(new Error(_0x55c96d[_0x27ee3c(-0x175,-0x1f7,-0x18e,-_0x1d7908._0x1ecaf5)]||_0x12418e(-_0x1d7908._0x351832,-0x1e,-_0x1d7908._0x2e02ab,-0xc4)));},_0x2bd1d2=()=>{_0x26c01();function _0x1aaf78(_0x3f8873,_0x2dd4ee,_0x580234,_0x3cb8d6){return _0x4c72(_0x580234-_0x591e61._0x5e8e33,_0x2dd4ee);}_0x1b517a[_0x54299f(0x599,0x5f6,_0x3391e0._0x20de51,_0x3391e0._0x5912d4)]===WebSocket[_0x54299f(_0x3391e0._0x385ffd,0x5d0,0x4da,0x55f)]&&_0x1b517a['close'](0x3e8,_0x54299f(_0x3391e0._0x3cceda,0x5e7,0x52c,0x558));function _0x54299f(_0x533e9b,_0x530585,_0x49aa64,_0x140d1e){return _0x4c72(_0x140d1e-0x337,_0x530585);}_0x1bdda5(toAbortError(_0x3ae17c?.[_0x54299f(_0x3391e0._0x5f43f6,0x423,_0x3391e0._0x2516e5,_0x3391e0._0x583019)]));},_0x26c01=()=>{const _0x618591={_0x3b386b:0x3e8};function _0x4fbebf(_0x58befa,_0x93778c,_0xe61e05,_0x33c1fe){return _0x4c72(_0xe61e05-0x1c4,_0x33c1fe);}_0x1b517a[_0x650f8e(-_0x36de4d._0x3a85f8,-0x1c9,-0x230,-0x1a9)](_0x650f8e(-0x122,-_0x36de4d._0x2656ff,-0x10b,-0xa9),_0x202c57),_0x1b517a[_0x4fbebf(_0x36de4d._0x3562cf,0x4a4,0x403,_0x36de4d._0x16af11)]('error',_0x1cc595),_0x1b517a['removeEventListener']('close',_0x515f8c);function _0x650f8e(_0x529386,_0x1cefbe,_0x2a21d0,_0x7e0080){return _0x4c72(_0x7e0080- -_0x618591._0x3b386b,_0x2a21d0);}_0x3ae17c?.['removeEventListener']('abort',_0x2bd1d2);};function _0x462ce6(_0x448df2,_0x130d02,_0x1f96c8,_0x2f9556){return _0x338fb1(_0x448df2-_0x3c6dcd._0x2a88d3,_0x130d02-_0x3c6dcd._0x130848,_0x1f96c8-_0x3c6dcd._0x75af37,_0x2f9556);}_0x1b517a['addEventListener'](_0x57191a(0x314,_0x3e24b3._0x559888,0x359,_0x3e24b3._0x7c86fc),_0x202c57),_0x1b517a[_0x462ce6(_0x3e24b3._0x3fd386,0x333,_0x3e24b3._0x411f0d,_0x3e24b3._0x1ffcf5)]('error',_0x1cc595),_0x1b517a[_0x462ce6(_0x3e24b3._0x3fd386,_0x3e24b3._0x1062e8,0x2fd,0x301)](_0x57191a(0xd9,_0x3e24b3._0x50c154,0x57,0x12d),_0x515f8c),_0x3ae17c?.[_0x57191a(_0x3e24b3._0x448b06,0xc8,0x18a,_0x3e24b3._0x5466e4)](_0x57191a(0x3a9,0x36d,0x2fe,0x2b4),_0x2bd1d2,{'once':!![]});});}function iterateWebSocketMessages(_0x1f4eda,_0x103b00){const _0x41d5a7={_0x3abe91:0x145,_0x5da70c:0x40,_0x10c80d:0xcd,_0x3dbb53:0x623,_0x4eacd7:0x59f,_0x5dfb14:0x47c,_0x37e4d3:0x5ee,_0x2bf6ce:0x655,_0x4f9491:0x5cf,_0x434521:0x53d,_0x52fdbe:0x433,_0x3ccd58:0x4d2,_0x44e1b6:0x8c},_0x173230={_0x22459b:0x4cf,_0x5cf43c:0x401,_0x43188a:0x4c2,_0xd84d1:0x46a,_0x522039:0x227,_0x8e8678:0x312,_0x48d461:0x2df,_0xb69e2e:0x3dc,_0x5723d5:0x4c2,_0x49cede:0x5b6},_0x1e8199={_0x37fb41:0x4db,_0x156a9e:0xb9,_0x2e0935:0x179},_0x36c095={_0x21618f:0x3cb,_0x24ac00:0xcf},_0x9d33fc={_0x53a834:0x365,_0x24d8c1:0x302,_0x2b2b17:0x3c3,_0x178a3f:0x40a,_0xd83186:0x384,_0x6a3d0d:0x483,_0x1d3a87:0x3a9,_0xd2753a:0x359},_0x1ae773={_0x557caf:0x5f5,_0x2c1762:0x613,_0xc24db8:0x589},_0x51a3ba={_0xcdb9ee:0x424,_0x23f59e:0x390,_0x340624:0x36d,_0x25af2a:0x375},_0x10cd76={_0x17f349:0x72b,_0x3ad7b5:0x604,_0x3dd505:0x686,_0x551eb8:0x712,_0x48cf42:0x61e,_0x59ab4f:0x579,_0x33b6b2:0x590,_0x2017a0:0x6d2,_0x598c89:0x5e8},_0x1859cc={_0x782bc9:0x3b3},_0x1b59eb={_0x8cbbf:0x177,_0x6b219d:0x1e9,_0x134e2b:0x5e0},_0x358834=[];let _0x37bb89=![];function _0x467964(_0x1c9ac2,_0x196458,_0x13e6e9,_0x4e0203){return _0x5276b1(_0x196458,_0x196458-_0x1b59eb._0x8cbbf,_0x13e6e9-_0x1b59eb._0x6b219d,_0x4e0203-_0x1b59eb._0x134e2b);}let _0x2200ff,_0x1f8d0b;const _0xd263db=_0x3b0610=>{const _0x873561=_0x3b0610;function _0x143372(_0x2afe50,_0x6e4fa,_0x202a6e,_0x42bfaa){return _0x4c72(_0x42bfaa-_0x1859cc._0x782bc9,_0x202a6e);}function _0x17c019(_0x4990aa,_0x151a3e,_0xf6853c,_0x157a61){return _0x4c72(_0x157a61-0x36f,_0x4990aa);}try{_0x358834[_0x143372(_0x10cd76._0x17f349,0x6ae,_0x10cd76._0x3ad7b5,_0x10cd76._0x3dd505)](JSON[_0x143372(_0x10cd76._0x551eb8,_0x10cd76._0x48cf42,_0x10cd76._0x59ab4f,0x62b)](String(_0x873561[_0x143372(0x5a6,_0x10cd76._0x33b6b2,0x530,0x562)]))),_0x1f8d0b?.(),_0x1f8d0b=void 0x0;}catch(_0x11f7d4){_0x2200ff=new Error(_0x17c019(_0x10cd76._0x2017a0,0x5f4,_0x10cd76._0x598c89,0x6dc)+toErrorMessage(_0x11f7d4)),_0x1f8d0b?.(),_0x1f8d0b=void 0x0;}},_0x58caea=_0x425948=>{const _0x450fd7={_0x3e8457:0xcc},_0x49ce8c={_0x13dc32:0x177},_0x4df111=_0x425948;_0x2200ff=new Error(_0x4df111[_0x95bfba(0x46d,_0x51a3ba._0xcdb9ee,0x46c,0x3c0)]||_0x95bfba(_0x51a3ba._0x23f59e,0x3dc,_0x51a3ba._0x340624,_0x51a3ba._0x25af2a)),_0x1f8d0b?.();function _0x95bfba(_0x574693,_0x665d83,_0x273538,_0x4ddbf4){return _0x4c72(_0x4ddbf4-_0x49ce8c._0x13dc32,_0x273538);}function _0x2e0a0d(_0x31206a,_0x55d287,_0x274ba4,_0x6125f9){return _0x4c72(_0x274ba4- -_0x450fd7._0x3e8457,_0x6125f9);}_0x1f8d0b=void 0x0;},_0x232be7=_0x1e568f=>{const _0x2f2050={_0xf6c180:0x3ac},_0x11f330=_0x1e568f;!_0x37bb89&&_0x11f330['code']!==0x3e8&&!_0x2200ff&&(_0x2200ff=new Error(_0x11f330[_0xd3e987(_0x1ae773._0x557caf,_0x1ae773._0x2c1762,_0x1ae773._0xc24db8,0x613)]||'WebSocket\x20closed\x20with\x20code\x20'+_0x11f330['code']));function _0xd3e987(_0x3e1802,_0x51cab4,_0x25d987,_0x4b4c38){return _0x4c72(_0x25d987-_0x2f2050._0xf6c180,_0x51cab4);}_0x37bb89=!![],_0x1f8d0b?.(),_0x1f8d0b=void 0x0;},_0x5a5f44=addAbortListener(_0x103b00,()=>{_0x2200ff=toAbortError(_0x103b00?.[_0x3f432f(_0x9d33fc._0x53a834,_0x9d33fc._0x24d8c1,_0x9d33fc._0x2b2b17,_0x9d33fc._0x178a3f)]);_0x1f4eda['readyState']===WebSocket['OPEN']&&_0x1f4eda[_0x5aa477(0x3ba,_0x9d33fc._0xd83186,0x3b5,_0x9d33fc._0x6a3d0d)](0x3e8,_0x3f432f(_0x9d33fc._0x1d3a87,_0x9d33fc._0xd2753a,0x339,0x47e));function _0x5aa477(_0x584c6c,_0x50a344,_0x181a3f,_0x3593f9){return _0x4c72(_0x584c6c-0x1ed,_0x181a3f);}function _0x3f432f(_0x3f82b8,_0x26d006,_0xcf412e,_0x398a70){return _0x4c72(_0x3f82b8-0x188,_0x398a70);}_0x1f8d0b?.(),_0x1f8d0b=void 0x0;});function _0x5bba8e(_0x60427d,_0x580140,_0x555eb3,_0x15ba54){return _0x54ac71(_0x60427d-0x135,_0x555eb3,_0x60427d- -_0x36c095._0x21618f,_0x15ba54-_0x36c095._0x24ac00);}return _0x1f4eda[_0x5bba8e(-0x71,-_0x41d5a7._0x3abe91,_0x41d5a7._0x5da70c,-_0x41d5a7._0x10c80d)](_0x467964(_0x41d5a7._0x3dbb53,0x4cf,0x54c,_0x41d5a7._0x4eacd7),_0xd263db),_0x1f4eda[_0x467964(_0x41d5a7._0x5dfb14,0x4e3,_0x41d5a7._0x37e4d3,0x53d)](_0x467964(0x6ff,0x614,_0x41d5a7._0x2bf6ce,0x6c5),_0x58caea),_0x1f4eda[_0x467964(0x5d9,0x553,_0x41d5a7._0x4f9491,_0x41d5a7._0x434521)](_0x467964(0x4e3,_0x41d5a7._0x52fdbe,_0x41d5a7._0x3ccd58,0x523),_0x232be7),{async*[Symbol[_0x5bba8e(_0x41d5a7._0x44e1b6,0xab,0xbf,0xf6)]](){const _0x46197b={_0x1d00e1:0x1be,_0x19facb:0x7a};function _0x1588ab(_0x4caa8f,_0x5639f1,_0x4c3123,_0x3662fb){return _0x467964(_0x4caa8f-_0x46197b._0x1d00e1,_0x4caa8f,_0x4c3123-_0x46197b._0x19facb,_0x3662fb- -0x2c0);}function _0x406868(_0x27e5db,_0xbe3528,_0x4fb3a7,_0x41ca9b){return _0x5bba8e(_0xbe3528-_0x1e8199._0x37fb41,_0xbe3528-_0x1e8199._0x156a9e,_0x27e5db,_0x41ca9b-_0x1e8199._0x2e0935);}try{while(!![]){if(_0x2200ff)throw _0x2200ff;if(_0x358834[_0x1588ab(_0x173230._0x22459b,0x4de,0x4a5,_0x173230._0x5cf43c)]>0x0){yield _0x358834['shift']();continue;}if(_0x37bb89)break;await new Promise(_0x7e5795=>{_0x1f8d0b=_0x7e5795;});}}finally{_0x1f4eda[_0x406868(0x4fe,_0x173230._0x43188a,0x3f1,_0x173230._0xd84d1)](_0x1588ab(_0x173230._0x522039,0x1ee,_0x173230._0x8e8678,_0x173230._0x48d461),_0xd263db),_0x1f4eda[_0x406868(_0x173230._0xb69e2e,_0x173230._0x5723d5,0x468,0x572)]('error',_0x58caea),_0x1f4eda[_0x406868(_0x173230._0x49cede,0x4c2,0x4d9,0x4e6)]('close',_0x232be7),_0x5a5f44();}}};}function toWebSocketUrl(_0x1bf79a,_0x10802a){const _0x126358={_0x3df297:0x1fe,_0x331844:0x586,_0x26e2f1:0x201,_0x1f67f0:0x1db,_0x4fe917:0x26c,_0x289247:0x5f,_0x19709e:0x5c7,_0x51a04e:0x667,_0x1c6625:0x5f9},_0x147dca={_0x2ade93:0x1ae,_0x107a20:0xdb},_0x2f44c4={_0x440813:0x23a,_0x212158:0x1d5};function _0x5e9690(_0x20b7f7,_0x3d6c48,_0x38766c,_0xff5db5){return _0x54ac71(_0x20b7f7-0x1ca,_0xff5db5,_0x38766c- -_0x2f44c4._0x440813,_0xff5db5-_0x2f44c4._0x212158);}const _0x466662=new URL(_0x10802a,_0x1bf79a);_0x466662[_0x5e9690(0x25f,0x148,_0x126358._0x3df297,0x1c0)]=_0x466662[_0x5439b0(0x548,0x6af,_0x126358._0x331844,0x5e6)]==='https:'?_0x5e9690(_0x126358._0x26e2f1,_0x126358._0x1f67f0,0x1ca,_0x126358._0x4fe917):_0x5e9690(0x15c,0x240,0x14c,_0x126358._0x289247);function _0x5439b0(_0x261b67,_0x39babc,_0x1710bb,_0x418eeb){return _0x54ac71(_0x261b67-0x190,_0x39babc,_0x418eeb-_0x147dca._0x2ade93,_0x418eeb-_0x147dca._0x107a20);}return _0x466662[_0x5439b0(0x5e2,_0x126358._0x19709e,_0x126358._0x51a04e,_0x126358._0x1c6625)]();}var ProviderSessionManager=class{[_0x5276b1(-0x68,0xad,0xcc,0x33)];['cached'];constructor(_0xfe3393){const _0x15b3e5={_0x2789f5:0x87,_0x12f02e:0x31,_0x12e269:0x329};function _0xe088a3(_0x380246,_0x4fd5db,_0x47aba1,_0x31a175){return _0x5276b1(_0x4fd5db,_0x4fd5db-_0x15b3e5._0x2789f5,_0x47aba1-_0x15b3e5._0x12f02e,_0x31a175-_0x15b3e5._0x12e269);}this[_0xe088a3(0x342,0x3c1,0x311,0x35c)]=_0xfe3393;}async[_0x5276b1(-0x42,-0xc5,-0x51,-0x25)](_0x85bfe5){const _0x1042a0={_0x2c61a9:0x4d,_0x5a2d76:0xb7,_0x5f2e8b:0x7,_0xafa1e4:0xa2,_0x49d33b:0x1b,_0x2bd3f9:0x3b0,_0x3d86fc:0x3cc,_0x37c939:0x215,_0x558102:0x277,_0x4524ac:0x381,_0x33f15c:0x32e},_0x3efaf4={_0x434092:0x5d,_0x168353:0x45d},_0x24e2d4={_0x4fe16c:0x414,_0x582186:0x3d2,_0x4c7e6b:0x12d,_0x38c10e:0x41},_0x2b04ad={_0x37bee1:0x5d,_0x1ba356:0x121},_0x94bf5f={_0x3b583d:0x4e7,_0x4556de:0x36};function _0x1bd760(_0x2a24f5,_0x30b839,_0x41cfe6,_0x73ec2e){return _0x54ac71(_0x2a24f5-0xf7,_0x73ec2e,_0x30b839- -_0x94bf5f._0x3b583d,_0x73ec2e-_0x94bf5f._0x4556de);}if(!this['cached']){const _0x480c23=this[_0x1bd760(-_0x1042a0._0x2c61a9,-_0x1042a0._0x5a2d76,_0x1042a0._0x5f2e8b,-0x37)][_0x1bd760(-_0x1042a0._0xafa1e4,-0x10f,-0x1b,-_0x1042a0._0x49d33b)](_0x85bfe5);_0x480c23[_0x279f77(_0x1042a0._0x2bd3f9,_0x1042a0._0x3d86fc,0x385,0x321)](()=>{const _0x7aa0={_0x21b3d0:0x5d,_0x228104:0x475,_0x272b53:0x7f};function _0x25f911(_0x282a75,_0x837774,_0x1ed903,_0x369f18){return _0x279f77(_0x282a75-_0x7aa0._0x21b3d0,_0x282a75,_0x1ed903- -_0x7aa0._0x228104,_0x369f18-_0x7aa0._0x272b53);}function _0x821a66(_0x2919c0,_0x535d50,_0x21cea9,_0x82e13e){return _0x279f77(_0x2919c0-0x5b,_0x21cea9,_0x2919c0-_0x2b04ad._0x37bee1,_0x82e13e-_0x2b04ad._0x1ba356);}this[_0x821a66(0x3de,_0x24e2d4._0x4fe16c,0x300,_0x24e2d4._0x582186)]===_0x480c23&&(this[_0x25f911(-0x1e9,-_0x24e2d4._0x4c7e6b,-0xf4,-_0x24e2d4._0x38c10e)]=void 0x0);}),this[_0x1bd760(-_0x1042a0._0x37c939,-0x1c6,-_0x1042a0._0x558102,-0x247)]=_0x480c23;}function _0x279f77(_0x1e52d9,_0x20da24,_0x274ac3,_0x3daad0){return _0x5276b1(_0x20da24,_0x20da24-_0x3efaf4._0x434092,_0x274ac3-0x88,_0x274ac3-_0x3efaf4._0x168353);}return structuredClone(await this[_0x279f77(0x369,0x32d,_0x1042a0._0x4524ac,_0x1042a0._0x33f15c)]);}[_0x54ac71(0x3fd,0x43b,0x47b,0x3d8)](){const _0x727ba5={_0x5d8e8b:0x472,_0xe8d6d9:0x3aa,_0x549733:0x34c,_0x21a48e:0x385},_0x51a799={_0x9f7739:0x159,_0x59c0e3:0x3c9},_0x568098={_0x5b8908:0x159,_0x5d8471:0xba};this['resolver'][_0x4c932f(_0x727ba5._0x5d8e8b,0x447,_0x727ba5._0xe8d6d9,0x51d)]?.();function _0x509457(_0x52579d,_0x1108b2,_0x2ffa81,_0x17511a){return _0x5276b1(_0x17511a,_0x1108b2-_0x568098._0x5b8908,_0x2ffa81-_0x568098._0x5d8471,_0x2ffa81-0x461);}function _0x4c932f(_0x46e5b7,_0x193811,_0x5d2d64,_0x3e79a8){return _0x5276b1(_0x5d2d64,_0x193811-0xd7,_0x5d2d64-_0x51a799._0x9f7739,_0x193811-_0x51a799._0x59c0e3);}this[_0x509457(_0x727ba5._0x549733,0x40c,_0x727ba5._0x21a48e,0x412)]=void 0x0;}};async function prepareProviderRequest(_0x44839f,_0x2ca072={}){const _0x304247={_0x22723b:0x21,_0x56eb8a:0x1a,_0x19db50:0xf,_0x118115:0x4e},_0x42eb80={_0x176049:0x13b,_0x1d9f62:0xba};function _0x3b8a64(_0x406ac0,_0xa7a8c5,_0x376b2d,_0x142227){return _0x54ac71(_0x406ac0-0x196,_0xa7a8c5,_0x142227- -0x36c,_0x142227-0x118);}let _0xadf234={'request':structuredClone(_0x44839f),'session':_0x2ca072[_0x3b8a64(0x46,_0x304247._0x22723b,0x2e,-_0x304247._0x56eb8a)]?await _0x2ca072[_0xa93c98(-0xdc,-0x55,-0xc7,_0x304247._0x19db50)]['resolve'](_0x2ca072[_0xa93c98(0x143,0x78,-0x39,_0x304247._0x118115)]):void 0x0};function _0xa93c98(_0x46b9af,_0x2f0e8c,_0x50cfa1,_0x225d76){return _0x5276b1(_0x2f0e8c,_0x2f0e8c-0x36,_0x50cfa1-_0x42eb80._0x176049,_0x225d76-_0x42eb80._0x1d9f62);}for(const _0xa1d274 of _0x2ca072['requestMutators']??[]){_0xadf234=await _0xa1d274(_0xadf234);}return _0xadf234;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0x5276b1(0x124,0x12c,0x94,0xe8)];['modelIdentity'];[_0x54ac71(0x3d1,0x27b,0x304,0x28f)];[_0x5276b1(0x1d,0x3e,-0x9e,-0x9)];[_0x54ac71(0x2bd,0x2e9,0x3a5,0x45d)];['baseUrl'];[_0x5276b1(-0xe0,-0x8d,0xb5,-0x22)];[_0x54ac71(0x43b,0x288,0x36e,0x3d2)];[_0x54ac71(0x42a,0x3eb,0x490,0x3c2)];[_0x5276b1(0x4c,0x1a,-0x53,-0xf)];[_0x54ac71(0x3d1,0x2b1,0x352,0x2a0)];['webSocketFactory'];[_0x5276b1(-0xe4,-0x60,0x3c,-0xa4)]=new Map();constructor(_0x43be2f){const _0x5ea32e={_0x3bafe1:0xee,_0x481619:0xe2,_0x5d2920:0x77,_0x5eae0d:0xa4,_0x237a85:0xbf,_0x5e381a:0xa4,_0x1115bc:0x62,_0x167a5c:0x172,_0x1602be:0xd9,_0x4eff47:0xac,_0x55212b:0x5c8,_0x311c12:0x662,_0x25aca1:0x4d,_0x1b8330:0x2b,_0x4aa726:0xe,_0x6cca25:0x176,_0x9a8550:0x8e,_0x40b7a2:0x87,_0x11b8c3:0x9c,_0x339c56:0x5a3,_0x2bbf93:0x411,_0x399610:0x1e,_0x262539:0xdb,_0x1823c5:0x126,_0x3a7e87:0x66,_0x387f00:0x51a,_0x4aac1c:0x56d,_0x42675a:0x4f9,_0x4c7b29:0x51c,_0x5a9291:0x117,_0x30c090:0x125,_0x2e1934:0x119,_0x312684:0x520,_0x55900e:0x417,_0x1e17a8:0x4a5,_0x254b66:0x26,_0x8243e0:0x8c,_0x2999cf:0xc3,_0x58e2ad:0x4d6},_0x493e68={_0x33f8e0:0x147,_0x587123:0x44},_0x47d69e={_0x3b780e:0x20,_0x284a89:0x4b,_0x4efbb1:0x57a};this[_0x1c28c8(_0x5ea32e._0x3bafe1,_0x5ea32e._0x481619,_0x5ea32e._0x5d2920,_0x5ea32e._0x5eae0d)]=_0x43be2f[_0x1c28c8(0x17d,_0x5ea32e._0x237a85,0x131,_0x5ea32e._0x5e381a)],this['modelIdentity']=_0x43be2f[_0x1c28c8(-_0x5ea32e._0x1115bc,-_0x5ea32e._0x167a5c,-_0x5ea32e._0x1602be,-_0x5ea32e._0x4eff47)]??modelIdentityFromParts(void 0x0,this[_0x56fe77(0x749,_0x5ea32e._0x55212b,0x5d7,_0x5ea32e._0x311c12)]);function _0x56fe77(_0xd7ff87,_0x49799a,_0x1e5828,_0x218531){return _0x5276b1(_0xd7ff87,_0x49799a-_0x47d69e._0x3b780e,_0x1e5828-_0x47d69e._0x284a89,_0x218531-_0x47d69e._0x4efbb1);}this['maxTokens']=_0x43be2f['maxTokens'],this[_0x1c28c8(-0x10b,0x90,-0x116,-_0x5ea32e._0x25aca1)]=_0x43be2f[_0x1c28c8(-0xce,0x13,-0x123,-0x4d)]?structuredClone(_0x43be2f['reasoning']):void 0x0,this[_0x1c28c8(_0x5ea32e._0x1b8330,-_0x5ea32e._0x4aa726,-_0x5ea32e._0x6cca25,-0x9c)]=_0x43be2f[_0x1c28c8(-0x5f,-_0x5ea32e._0x9a8550,-_0x5ea32e._0x40b7a2,-_0x5ea32e._0x11b8c3)],this['baseUrl']=_0x43be2f[_0x56fe77(_0x5ea32e._0x339c56,0x41b,_0x5ea32e._0x2bbf93,0x4bc)],this[_0x1c28c8(_0x5ea32e._0x399610,-_0x5ea32e._0x262539,-_0x5ea32e._0x1823c5,-_0x5ea32e._0x3a7e87)]=_0x43be2f[_0x56fe77(0x54a,_0x5ea32e._0x387f00,0x487,0x547)]??globalThis['fetch'],this['providerAdapter']=_0x43be2f['providerAdapter'],this[_0x1c28c8(0x4,-0x2e,_0x5ea32e._0x1823c5,0x4f)]=_0x43be2f['requestMutators']??[],this['router']=_0x43be2f['router'],this[_0x56fe77(_0x5ea32e._0x4aac1c,_0x5ea32e._0x42675a,_0x5ea32e._0x4c7b29,0x4cf)]=_0x43be2f[_0x1c28c8(-0x5c,-_0x5ea32e._0x5a9291,-_0x5ea32e._0x30c090,-0xef)]??(_0x43be2f[_0x1c28c8(-0x1ed,-0x1ed,-0xa0,-_0x5ea32e._0x2e1934)]?new ProviderSessionManager(_0x43be2f[_0x56fe77(0x4a1,_0x5ea32e._0x312684,_0x5ea32e._0x55900e,_0x5ea32e._0x1e17a8)]):void 0x0),this[_0x1c28c8(_0x5ea32e._0x254b66,_0x5ea32e._0x8243e0,_0x5ea32e._0x2999cf,-0x16)]=_0x43be2f[_0x1c28c8(0x39,-0xc2,0x6b,-0x16)]??createDefaultWebSocketFactory();function _0x1c28c8(_0x564161,_0x2c7ed3,_0x317fc1,_0x432c5a){return _0x54ac71(_0x564161-_0x493e68._0x33f8e0,_0x2c7ed3,_0x432c5a- -0x441,_0x432c5a-_0x493e68._0x587123);}for(const _0x2e7ea4 of _0x43be2f[_0x56fe77(0x43e,0x545,0x4d3,_0x5ea32e._0x58e2ad)]){this['surfaces']['set'](_0x2e7ea4['id'],_0x2e7ea4);}}[_0x54ac71(0x45a,0x45d,0x3ab,0x3fc)](_0x192cfe,_0x410080){const _0x47ea5c={_0x2cc5cc:0x99,_0x2f9f34:0xed},_0x2b343a={_0x341022:0x74,_0x279302:0xad};function _0x436175(_0x2e377e,_0x1ccba4,_0x181d64,_0x322aa9){return _0x5276b1(_0x2e377e,_0x1ccba4-0x123,_0x181d64-_0x2b343a._0x341022,_0x181d64-_0x2b343a._0x279302);}return this[_0x436175(_0x47ea5c._0x2cc5cc,0x1ed,0x14f,_0x47ea5c._0x2f9f34)](_0x192cfe,_0x410080);}['stream'](_0x594f17,_0x5d9580){const _0x43d6e1={_0x32bb56:0x62},_0x29a715={_0x235f08:0x1ce,_0x5b0ea1:0x126};function _0x50c236(_0x5e56d2,_0xc6e9f4,_0x39bf8c,_0x4b2f75){return _0x5276b1(_0x39bf8c,_0xc6e9f4-_0x29a715._0x235f08,_0x39bf8c-_0x29a715._0x5b0ea1,_0x4b2f75- -0x7c);}return this[_0x50c236(-0xdc,_0x43d6e1._0x32bb56,0x59,-0x8)](_0x594f17,_0x5d9580);}async[_0x5276b1(0xf5,0x10e,0x8c,0xa2)](_0x348ec7,_0x1b0eb6){const _0x79dbf8={_0x502e3b:0x49f,_0x3596b5:0x3bb,_0x2e6fe7:0x45a,_0x50b1d6:0xd1,_0x4651da:0xa6,_0x2de8fd:0x24},_0xfec2db={_0x48e8ff:0x2,_0x36ae9c:0x31d},_0x457b3c={_0x44d0e8:0x492};function _0x14b014(_0x1325a7,_0x91e97f,_0xf1e590,_0x2ecff4){return _0x5276b1(_0x1325a7,_0x91e97f-0x1ad,_0xf1e590-0xaf,_0x91e97f-_0x457b3c._0x44d0e8);}const _0x561f96=this[_0x14b014(0x505,_0x79dbf8._0x502e3b,_0x79dbf8._0x3596b5,_0x79dbf8._0x2e6fe7)](_0x348ec7);function _0xcddf48(_0x11af04,_0x1590f8,_0x135956,_0x1247ea){return _0x54ac71(_0x11af04-_0xfec2db._0x48e8ff,_0x1590f8,_0x11af04- -_0xfec2db._0x36ae9c,_0x1247ea-0x123);}const _0x50bacd=await this[_0xcddf48(_0x79dbf8._0x50b1d6,_0x79dbf8._0x4651da,0x80,-_0x79dbf8._0x2de8fd)]['selectSurface'](_0x561f96,{'mode':'complete'});return this[_0xcddf48(0x1bf,0x157,0x243,0x299)](_0x561f96,_0x50bacd,_0x1b0eb6);}async*['streamViaRouter'](_0x5775b4,_0x437608){const _0x17a58b={_0x33e0da:0x1a0,_0x50624f:0xb9,_0x2bfb0a:0x161,_0x19ff99:0x72,_0x1d3073:0xee},_0x1c7142={_0x308229:0x139,_0x453b75:0x335,_0xa8c4dd:0x42},_0x4277e8=this['applyModelDefaults'](_0x5775b4);function _0x431a38(_0x2ff08e,_0x3e2b9e,_0x4655e9,_0x42a797){return _0x54ac71(_0x2ff08e-_0x1c7142._0x308229,_0x3e2b9e,_0x4655e9- -_0x1c7142._0x453b75,_0x42a797-_0x1c7142._0xa8c4dd);}const _0x4cbd6f=await this[_0x431a38(_0x17a58b._0x33e0da,0x105,_0x17a58b._0x50624f,_0x17a58b._0x2bfb0a)]['selectSurface'](_0x4277e8,{'mode':_0x431a38(0x11e,_0x17a58b._0x19ff99,_0x17a58b._0x1d3073,0x124)});function _0x22657a(_0x3148ce,_0x37e075,_0x2f32b9,_0x6a46b8){return _0x54ac71(_0x3148ce-0x1f3,_0x37e075,_0x2f32b9-0x28,_0x6a46b8-0x161);}yield*this['streamViaSurface'](_0x4277e8,_0x4cbd6f,_0x437608);}async['completeViaSurface'](_0x341854,_0x99a673,_0x2c1879){const _0x217182={_0xc2653c:0x1fa,_0x52a36e:0x2dd,_0x7c07f:0x2cc,_0x4c7b8d:0x725,_0x1fbf06:0x71b,_0x12c401:0x6db,_0x2a5ec6:0x587,_0xfd1aed:0x64d,_0x163640:0x695,_0x5295a9:0x6b9,_0x5de93f:0x6a5,_0x590888:0x665,_0x2eed65:0x759,_0x40d8ec:0x68b,_0x2482ff:0x251,_0x1239bb:0x259,_0x1aa1f6:0x19a,_0x319fbe:0x254,_0x4c6141:0x265,_0x10a6f0:0x32a,_0x482cfa:0x368,_0x442801:0x2ec,_0x289963:0x596,_0x45cdc3:0x44c,_0x145aa7:0x2d0,_0x4dc11e:0x39e,_0x298d71:0x5d0,_0x2f4be4:0x647},_0x19c321={_0x56550f:0xb2,_0x48dbe6:0x21a,_0x476b45:0x13e},_0x2acf1e={_0x522190:0x2d0};function _0x17d37c(_0x190ec0,_0x9bd941,_0x6f4801,_0x133cb4){return _0x5276b1(_0x133cb4,_0x9bd941-0x172,_0x6f4801-0xf5,_0x6f4801-_0x2acf1e._0x522190);}const _0xd33ae4=this[_0x17d37c(0x2cc,_0x217182._0xc2653c,_0x217182._0x52a36e,_0x217182._0x7c07f)](_0x341854),_0x4e59c5=this[_0x54c732(_0x217182._0x4c7b8d,0x73a,_0x217182._0x4c7b8d,0x6b1)](_0x99a673);if(_0x4e59c5[_0x54c732(_0x217182._0x1fbf06,_0x217182._0x12c401,_0x217182._0x2a5ec6,_0x217182._0xfd1aed)]==='http-json'){const _0x3e935a=await this['sendHttpSurfaceRequest'](_0xd33ae4,_0x4e59c5,![],_0x2c1879);if(!_0x3e935a['ok'])throw await this[_0x54c732(_0x217182._0x163640,0x5cd,_0x217182._0x5295a9,0x5f8)](_0x3e935a);if(!_0x4e59c5[_0x54c732(_0x217182._0x5de93f,0x50a,_0x217182._0x590888,0x5e8)])throw new Error(_0x54c732(_0x217182._0x2eed65,_0x217182._0x40d8ec,0x71c,0x6e5)+_0x99a673+_0x17d37c(_0x217182._0x7c07f,0x15e,_0x217182._0x2482ff,_0x217182._0x1239bb));return _0x4e59c5['parseResponse'](await _0x3e935a[_0x17d37c(0x212,0x25c,0x208,0x189)](),_0xd33ae4);}let _0x5e8850;for await(const _0x406640 of this[_0x17d37c(_0x217182._0x1aa1f6,0x31b,_0x217182._0x319fbe,_0x217182._0x4c6141)](_0xd33ae4,_0x99a673,_0x2c1879)){_0x406640[_0x17d37c(0x2fe,_0x217182._0x10a6f0,_0x217182._0x482cfa,0x2ff)]===_0x17d37c(0x2e6,_0x217182._0x442801,0x2f9,0x32f)&&(_0x5e8850=_0x406640[_0x54c732(_0x217182._0x289963,0x559,_0x217182._0x45cdc3,0x535)]);}if(!_0x5e8850)throw new Error(_0x17d37c(0x41c,_0x217182._0x145aa7,_0x217182._0x4dc11e,0x3fc)+_0x99a673+_0x54c732(0x613,0x5f7,_0x217182._0x298d71,_0x217182._0x2f4be4));function _0x54c732(_0x2680ae,_0x54bd4f,_0x20d261,_0x10bf16){return _0x54ac71(_0x2680ae-_0x19c321._0x56550f,_0x20d261,_0x10bf16-_0x19c321._0x48dbe6,_0x10bf16-_0x19c321._0x476b45);}return _0x5e8850;}async*[_0x5276b1(-0xfe,-0xa2,0x13,-0x7c)](_0x27f11,_0x534ffc,_0x221136){const _0x2eaafe={_0x28a979:0x1b4,_0x4c9527:0x93,_0x14683c:0x14c,_0x3552fa:0x71,_0x2ce993:0x43e,_0x583ff7:0x376,_0x33b8dc:0x325,_0x197e26:0x448,_0x52cdfc:0x301,_0x2e06ab:0x276},_0x563998={_0x2f009e:0x10e,_0x3cd9e5:0x3f9},_0x38c48f={_0x286acc:0x1,_0x4374a9:0x90},_0xfdb3d3=this['applyModelDefaults'](_0x27f11);function _0x568aa6(_0x4ded75,_0x4f7c71,_0x305d53,_0x1d5323){return _0x54ac71(_0x4ded75-_0x38c48f._0x286acc,_0x4f7c71,_0x4ded75- -_0x38c48f._0x4374a9,_0x1d5323-0x15c);}const _0x8d4846=this[_0x568aa6(0x407,0x3b4,0x42d,0x3d9)](_0x534ffc);if(_0x8d4846['transport']===_0x413af5(-0x25,-_0x2eaafe._0x28a979,-0xf3,-_0x2eaafe._0x4c9527)){const _0x501584=await this[_0x413af5(_0x2eaafe._0x14683c,0x12a,0xe3,0x190)](_0xfdb3d3,_0x534ffc,_0x221136);yield{'type':'done','response':_0x501584};return;}if(_0x8d4846[_0x413af5(-0x54,0x36,0x3a,-_0x2eaafe._0x3552fa)]===_0x568aa6(0x3e9,_0x2eaafe._0x2ce993,0x397,0x401)){yield*this[_0x568aa6(_0x2eaafe._0x583ff7,_0x2eaafe._0x33b8dc,_0x2eaafe._0x197e26,0x447)](_0xfdb3d3,_0x8d4846,_0x221136);return;}function _0x413af5(_0xfe357d,_0x3aacfc,_0x2f5d55,_0x776f8a){return _0x54ac71(_0xfe357d-_0x563998._0x2f009e,_0x3aacfc,_0x2f5d55- -_0x563998._0x3cd9e5,_0x776f8a-0x1c3);}yield*this['streamWebSocketSurface'](_0xfdb3d3,_0x8d4846,_0x221136?.[_0x568aa6(_0x2eaafe._0x52cdfc,0x36c,0x2b4,_0x2eaafe._0x2e06ab)]);}async['sendRawRequest'](_0x5f010d){const _0x3e2313={_0x1db8e4:0x1db,_0x258e40:0x2cc},_0x329df9={_0x51f23b:0x14b,_0x54e6f9:0x16b,_0x5a627f:0x1ed,_0x1a28d9:0x19a,_0x150d2e:0x6,_0x110392:0x50,_0x1a72ac:0x91,_0x50fc2a:0x185,_0x899703:0x20b,_0xdf722d:0xc5,_0x11f68d:0x20a,_0x4bbde3:0x163,_0x7187ad:0x21a,_0x36dfdb:0x2a1,_0x37c053:0x2bf,_0x158274:0x10b,_0x5007c3:0xf3,_0x22577d:0x223,_0x3c19c8:0x2f1,_0x180a7a:0x1c4,_0xd51b39:0x144,_0x5c7b3:0x120,_0x173188:0x187,_0x3ace49:0xcb,_0x29abe3:0x32b,_0x39ea6d:0x2f3,_0xdfa428:0x35a,_0x5d5f65:0x1d9},_0x4cd681={_0x28fb54:0x45},_0x2d83df=async()=>{const _0x4b5874=this[_0x5b2abc(-_0x329df9._0x51f23b,-_0x329df9._0x54e6f9,-0x118,-0x1c3)]?await this[_0x573568(_0x329df9._0x5a627f,0xf0,_0x329df9._0x1a28d9,0xfa)][_0x5b2abc(-_0x329df9._0x150d2e,_0x329df9._0x110392,-0x92,-_0x329df9._0x1a72ac)](_0x5f010d['signal']):void 0x0;function _0x573568(_0x4ce76a,_0x4475fa,_0x424fd7,_0x3d868c){return _0x4c72(_0x424fd7- -_0x4cd681._0x28fb54,_0x4ce76a);}const _0x126adf=this[_0x573568(_0x329df9._0x50fc2a,0x10e,0x1b6,0x269)][_0x573568(0x1fe,0x23b,0x1cc,_0x329df9._0x899703)](this[_0x5b2abc(-0x14a,-0x1b4,-_0x329df9._0xdf722d,0x10)],_0x4b5874);if(!_0x126adf)throw this[_0x5b2abc(-_0x329df9._0x11f68d,-0x1a2,-_0x329df9._0x4bbde3,-0x161)]();const _0x2564e6=await this[_0x573568(_0x329df9._0x7187ad,0x210,0x2f6,0x354)]({'body':_0x5f010d[_0x573568(0x28a,_0x329df9._0x36dfdb,0x207,_0x329df9._0x37c053)],'credential':_0x126adf,'session':_0x4b5874,'stream':![]},{'accept':_0x5f010d[_0x573568(_0x329df9._0x158274,0x122,0x144,_0x329df9._0x5007c3)]??'application/json','includeContentType':_0x5f010d[_0x573568(0x13f,0x158,0x168,0x1a9)]==='POST'});function _0x5b2abc(_0x5b594f,_0x502822,_0x1f8185,_0x42709c){return _0x4c72(_0x1f8185- -0x2f7,_0x5b594f);}return this[_0x573568(0x301,0x181,_0x329df9._0x22577d,_0x329df9._0x3c19c8)](''+this[_0x5b2abc(-_0x329df9._0x180a7a,-0x134,-0xfc,-0x1b6)][_0x5b2abc(-0x15c,-0x110,-_0x329df9._0xd51b39,-_0x329df9._0x5c7b3)](this[_0x573568(0x1c2,0xf7,_0x329df9._0x173188,0x204)],_0x4b5874)+_0x5f010d[_0x5b2abc(-0x16e,-0xec,-_0x329df9._0x3ace49,-0x4)],{'method':_0x5f010d['method'],'headers':_0x2564e6,..._0x5f010d['body']!==void 0x0?{'body':JSON[_0x573568(_0x329df9._0x29abe3,0x380,_0x329df9._0x39ea6d,_0x329df9._0xdfa428)](_0x5f010d['body'])}:{},'signal':_0x5f010d[_0x573568(_0x329df9._0x4bbde3,0x21b,_0x329df9._0x5d5f65,0x18a)]});};function _0x50319d(_0x12f851,_0x7a73e9,_0x45c7a3,_0x4b7cee){return _0x5276b1(_0x45c7a3,_0x7a73e9-0x112,_0x45c7a3-0x6,_0x12f851-0x18f);}return await this[_0x50319d(0x1f1,0x112,_0x3e2313._0x1db8e4,_0x3e2313._0x258e40)](_0x2d83df,_0x5f010d);}[_0x54ac71(0x4cc,0x44e,0x3e6,0x3ed)](_0x143764,_0x302e2a){const _0x18d642={_0x1d1fdc:0x180,_0x582785:0x72,_0x3f703c:0x6b,_0x253445:0xe5,_0x29da62:0xe,_0x52eb7a:0x100,_0x415fda:0x14,_0x12dd0b:0x66,_0x2efad6:0x49},_0xe1c278={_0xbfb42f:0x14e,_0x456281:0xb1},_0x4d6660={_0x285974:0x130,_0x6b32fd:0x3};function _0x30ba22(_0x22b654,_0x371067,_0x3e2fe8,_0x18b26b){return _0x5276b1(_0x3e2fe8,_0x371067-_0x4d6660._0x285974,_0x3e2fe8-0x155,_0x371067- -_0x4d6660._0x6b32fd);}const _0x238324=_0x143764?.[_0x4864e3(-0x165,-_0x18d642._0x1d1fdc,-0x151,-0x65)][_0x30ba22(-0x13b,-_0x18d642._0x582785,-0x9,_0x18d642._0x3f703c)]('retry-after');if(_0x238324){const _0x1d4055=Number(_0x238324);if(Number[_0x30ba22(_0x18d642._0x253445,_0x18d642._0x29da62,0xf,0xa2)](_0x1d4055)&&_0x1d4055>=0x0)return _0x1d4055*0x3e8;const _0x2b9b95=Date[_0x30ba22(-_0x18d642._0x52eb7a,-0x15,-0xbb,-0xda)](_0x238324);if(Number['isFinite'](_0x2b9b95))return Math[_0x4864e3(-_0x18d642._0x415fda,-_0x18d642._0x12dd0b,-_0x18d642._0x2efad6,-0xab)](0x0,_0x2b9b95-Date['now']());}const _0x106843=DEFAULT_RETRY_DELAY_MS*0x2**_0x302e2a;if(_0x106843<RETRY_DELAY_STEP_CAP_MS)return _0x106843;function _0x4864e3(_0x22c1ab,_0x21ac16,_0x327c18,_0x472e0a){return _0x5276b1(_0x21ac16,_0x21ac16-_0xe1c278._0xbfb42f,_0x327c18-0x1c0,_0x327c18- -_0xe1c278._0x456281);}return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x302e2a-0x5);}[_0x54ac71(0x384,0x40a,0x3aa,0x3de)](_0xf960f6){const _0xdee1e0={_0x2002d8:0xfe};function _0x46a8ef(_0x564eb9,_0x16ca18,_0x4da671,_0x11097e){return _0x5276b1(_0x564eb9,_0x16ca18-0x1be,_0x4da671-_0xdee1e0._0x2002d8,_0x4da671-0x178);}return RETRYABLE_HTTP_STATUSES['has'](_0xf960f6[_0x46a8ef(0x2b,0x12a,0xae,-0x22)]);}[_0x54ac71(0x2d0,0x319,0x329,0x388)](_0x5c7fec){return!isAbortError(_0x5c7fec)&&_0x5c7fec instanceof TypeError;}[_0x5276b1(0x198,0xe0,0xa9,0xb3)](_0x1e29ad){return this['shouldRetryRequestError'](_0x1e29ad)||isRetryableProviderStreamEventError(_0x1e29ad);}async[_0x5276b1(-0xb2,-0x13c,-0x42,-0x65)](_0x35eb1f,_0x5692a0){throwIfAborted(_0x5692a0),await new Promise((_0x390b02,_0x24ded3)=>{const _0x58405f={_0xe8f344:0x54f,_0x540f30:0x453};let _0x3347f5=![];const _0x504da6=addAbortListener(_0x5692a0,()=>{function _0x3592f2(_0x107d62,_0x5f5287,_0x34361f,_0x647b7f){return _0x4c72(_0x647b7f-0x2c2,_0x34361f);}if(_0x3347f5)return;_0x3347f5=!![],clearTimeout(_0x3b5e1e),_0x24ded3(toAbortError(_0x5692a0?.[_0x3592f2(_0x58405f._0xe8f344,_0x58405f._0x540f30,0x415,0x49f)]));}),_0x3b5e1e=setTimeout(()=>{_0x3347f5=!![],_0x504da6(),_0x390b02();},_0x35eb1f);}),throwIfAborted(_0x5692a0);}async[_0x5276b1(0x32,0xae,0x98,0x62)](_0xdd8571,_0x50b7fd={}){const _0x448b5d={_0x22b475:0xcc,_0x12fc7f:0x12,_0x39d0a9:0x1,_0x2b4c2f:0x81,_0x14675a:0x12,_0x3b3269:0x2a6,_0x153ddf:0x3bb,_0x1a8820:0x3a4,_0x3e42e4:0x42c,_0x399adc:0x356,_0x194e04:0x4e,_0x54671b:0x3f3},_0x3caa57={_0x393a8f:0x109,_0x18bb30:0x42},{signal:_0x3f4f3e}=_0x50b7fd;function _0xe1e46b(_0x590276,_0x43b19a,_0x393ed5,_0x4218dd){return _0x54ac71(_0x590276-_0x3caa57._0x393a8f,_0x43b19a,_0x393ed5- -_0x3caa57._0x18bb30,_0x4218dd-0x149);}let _0x12efa6=![];function _0x3baafd(_0x40132f,_0x1b0a7d,_0xbd265b,_0x4e5f59){return _0x5276b1(_0x1b0a7d,_0x1b0a7d-0x199,_0xbd265b-0x13d,_0xbd265b-0xbd);}for(let _0x19de1c=0x0;_0x19de1c<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x19de1c+=0x1){throwIfAborted(_0x3f4f3e);try{const _0x7a7d50=await _0xdd8571();if(_0x7a7d50['status']===0x191&&this[_0x3baafd(_0x448b5d._0x22b475,-0xe1,_0x448b5d._0x12fc7f,-0x16)]&&!_0x12efa6){_0x12efa6=!![],this[_0x3baafd(-_0x448b5d._0x39d0a9,_0x448b5d._0x2b4c2f,_0x448b5d._0x14675a,0x5e)]['invalidate']();continue;}if(!this[_0xe1e46b(0x444,_0x448b5d._0x3b3269,0x368,0x277)](_0x7a7d50)||_0x19de1c===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x7a7d50;const _0x4dad36=this[_0xe1e46b(0x437,_0x448b5d._0x153ddf,_0x448b5d._0x1a8820,0x3fa)](_0x7a7d50,_0x19de1c);await this[_0xe1e46b(0x3eb,_0x448b5d._0x3e42e4,_0x448b5d._0x399adc,0x386)](_0x4dad36,_0x3f4f3e);}catch(_0x41e2da){if(!this['shouldRetryRequestError'](_0x41e2da)||_0x19de1c===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x41e2da;const _0x14c080=this[_0x3baafd(0x168,_0x448b5d._0x194e04,0xa6,-0x39)](void 0x0,_0x19de1c);await this[_0xe1e46b(0x3d3,0x3f2,0x356,0x37a)](_0x14c080,_0x3f4f3e);}}throw new Error(_0xe1e46b(0x402,0x437,_0x448b5d._0x54671b,0x3f4));}['createMissingCredentialError'](){const _0x159567={_0x2d6901:0x49,_0x450c3b:0x101},_0x6744c={_0x2b16b3:0xfd,_0x26ea74:0x1f7};function _0x2c5e23(_0xba5d12,_0x549e34,_0x595f0c,_0x14e319){return _0x5276b1(_0xba5d12,_0x549e34-0x75,_0x595f0c-_0x6744c._0x2b16b3,_0x595f0c-_0x6744c._0x26ea74);}return this['providerAdapter'][_0x2c5e23(_0x159567._0x2d6901,0xb5,_0x159567._0x450c3b,0x21)]();}async[_0x5276b1(0xea,0xe,-0x29,0xb1)](_0x56f9e8,_0x3c93e0){const _0x5ceb71={_0x42e9b3:0x4f9},_0x163e23={_0x556428:0x1f,_0x139854:0x114};function _0x2a06aa(_0x10da98,_0x533f82,_0x327887,_0x45f56e){return _0x54ac71(_0x10da98-_0x163e23._0x556428,_0x533f82,_0x327887-0x110,_0x45f56e-_0x163e23._0x139854);}return await this[_0x2a06aa(_0x5ceb71._0x42e9b3,0x46c,0x47e,0x555)]['createHeaders'](_0x56f9e8,_0x3c93e0);}[_0x5276b1(0x13d,-0x65,0x14e,0x8d)](_0x5e80af){const _0x5aacd6={_0x42241d:0xbd,_0x19b7c5:0xaa,_0x1b351b:0x5f},_0x416c16={_0xdca8ac:0x14};function _0x4015b0(_0x254556,_0x483d01,_0x33cc1c,_0x36f127){return _0x54ac71(_0x254556-0x169,_0x36f127,_0x483d01- -0x42b,_0x36f127-0x1c8);}function _0x60f0bd(_0x1942c5,_0x4f39bf,_0x3a975f,_0x2aecc2){return _0x54ac71(_0x1942c5-_0x416c16._0xdca8ac,_0x4f39bf,_0x1942c5- -0x2de,_0x2aecc2-0x104);}return this[_0x4015b0(0x20,-_0x5aacd6._0x42241d,-0x70,-_0x5aacd6._0x19b7c5)][_0x4015b0(0x77,_0x5aacd6._0x1b351b,-0x7,0xe1)](_0x5e80af);}async[_0x54ac71(0x426,0x47b,0x3de,0x46d)](_0x177f15){const _0x16ff26={_0x54570e:0x12d,_0x22c013:0x94,_0x28c4c2:0x1b7,_0x4d3405:0x150,_0x5a3d4c:0x91},_0x15bff1={_0x539179:0x22},_0x319766={_0x1b20e3:0x1b0,_0x185826:0x7e};function _0x44e9ec(_0x253257,_0x158305,_0x1fcde8,_0x2b364a){return _0x54ac71(_0x253257-_0x319766._0x1b20e3,_0x1fcde8,_0x253257- -0x49b,_0x2b364a-_0x319766._0x185826);}function _0x5ca18a(_0x34dbdf,_0x14f21d,_0x49d810,_0x5ebb94){return _0x54ac71(_0x34dbdf-0x107,_0x49d810,_0x5ebb94- -_0x15bff1._0x539179,_0x5ebb94-0xd4);}return await this[_0x44e9ec(-_0x16ff26._0x54570e,-0x5e,-_0x16ff26._0x22c013,-_0x16ff26._0x28c4c2)][_0x44e9ec(-0xbd,-0x17b,-_0x16ff26._0x4d3405,-_0x16ff26._0x5a3d4c)](_0x177f15);}[_0x5276b1(0x2,-0x3e,0x183,0x9a)](_0x3f8b72){const _0x5c4358={_0x55372c:0x399,_0x279e29:0x4b7,_0x5995b5:0x45a,_0x3783e1:0x4a3,_0x4e4313:0x485,_0x208cf7:0x457,_0x20d02a:0x4fe,_0x152b35:0x54a},_0x33fbb0={_0x4b2e0c:0x101},_0x582fa9={_0x1004c0:0x8b},_0x3009ff=this[_0xe0a657(_0x5c4358._0x55372c,_0x5c4358._0x279e29,_0x5c4358._0x5995b5,0x4bc)][_0x3b02da(_0x5c4358._0x3783e1,_0x5c4358._0x4e4313,0x485,_0x5c4358._0x208cf7)](_0x3f8b72);function _0x3b02da(_0x200141,_0x1efcf6,_0x35c181,_0x35fb64){return _0x54ac71(_0x200141-_0x582fa9._0x1004c0,_0x35fb64,_0x200141-0x115,_0x35fb64-0x14d);}function _0xe0a657(_0x2a9b8e,_0x296dbf,_0x59e461,_0x356d6a){return _0x54ac71(_0x2a9b8e-0x19,_0x2a9b8e,_0x59e461-_0x33fbb0._0x4b2e0c,_0x356d6a-0x12c);}if(!_0x3009ff)throw new Error(_0xe0a657(_0x5c4358._0x20d02a,0x48a,_0x5c4358._0x152b35,0x5f7)+_0x3f8b72);return _0x3009ff;}async['prepareChatRequest'](_0xaa6db0,_0x1a27af){const _0x306dcc={_0x2d0564:0x2b1,_0x261191:0x33f,_0x49015e:0x201,_0x21441b:0x63d,_0x10efb7:0x5d2,_0x531e63:0x580,_0x2fdd9b:0x5b6,_0x14e2a0:0x67d,_0x2e46b7:0x2e3,_0x4a1dac:0x23f,_0xb5db45:0x21b,_0x23a48d:0x2a1,_0x4bf12a:0x1eb,_0x27407a:0x42e,_0x78783d:0x36a},_0x4a117e={_0x592536:0xfe,_0x53a49a:0x5d8},_0x563f0c={_0x257ba7:0xc8},_0x194be0=toModelRequest(_0xaa6db0),_0x7100d3=await prepareProviderRequest(_0x194be0,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x1a27af});function _0x5e300d(_0x54033d,_0x2c6c8f,_0x34bb16,_0x611c38){return _0x54ac71(_0x54033d-0x108,_0x2c6c8f,_0x34bb16- -_0x563f0c._0x257ba7,_0x611c38-0xf4);}const _0x2d823c=toChatRequest(_0x7100d3[_0x5e300d(0x213,0x1bc,_0x306dcc._0x2d0564,0x226)]),_0x91b9c8=this[_0x5e300d(_0x306dcc._0x261191,_0x306dcc._0x49015e,0x2a6,0x218)][_0x526d2c(_0x306dcc._0x21441b,_0x306dcc._0x10efb7,0x55f,0x58a)](this[_0x526d2c(0x5f6,0x63a,_0x306dcc._0x531e63,0x4fc)],_0x7100d3[_0x526d2c(_0x306dcc._0x2fdd9b,0x569,0x60d,_0x306dcc._0x14e2a0)]);if(!_0x91b9c8)throw this[_0x5e300d(_0x306dcc._0x2e46b7,0x2b6,_0x306dcc._0x4a1dac,_0x306dcc._0xb5db45)]();function _0x526d2c(_0x162520,_0x5ddcaf,_0x13b75a,_0x50ca52){return _0x5276b1(_0x50ca52,_0x5ddcaf-_0x4a117e._0x592536,_0x13b75a-0x11f,_0x13b75a-_0x4a117e._0x53a49a);}return{'baseUrl':this['providerAdapter']['resolveBaseUrl'](this[_0x5e300d(0x19d,_0x306dcc._0x23a48d,0x277,_0x306dcc._0x4bf12a)],_0x7100d3['session']),'credential':_0x91b9c8,'request':_0x2d823c,'session':_0x7100d3[_0x5e300d(_0x306dcc._0x27407a,0x45d,_0x306dcc._0x78783d,0x41c)]};}[_0x5276b1(0x89,-0x6c,-0x86,0xd)](_0xffd5bc){const _0x32dbb5={_0x458218:0x18c,_0x4bf745:0x198},_0x20e6aa={_0x29cd05:0x1d6},_0x33514c={_0x3c0ddc:0x184,_0x2e73e6:0x251};function _0x5dd07d(_0x344fd6,_0x42ba9f,_0x1cdb27,_0x305ce6){return _0x5276b1(_0x42ba9f,_0x42ba9f-0x105,_0x1cdb27-_0x33514c._0x3c0ddc,_0x1cdb27-_0x33514c._0x2e73e6);}function _0x70e226(_0x4ed45e,_0x1ba386,_0x5ef9cb,_0x432180){return _0x54ac71(_0x4ed45e-0x184,_0x5ef9cb,_0x1ba386- -0x227,_0x432180-_0x20e6aa._0x29cd05);}return{...structuredClone(_0xffd5bc),..._0xffd5bc[_0x70e226(0xf4,0x1cd,_0x32dbb5._0x458218,0x23e)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x70e226(0x193,0x1cd,0x2bb,_0x32dbb5._0x4bf745)])}:{}};}async['sendHttpSurfaceRequest'](_0x16f0d6,_0x5d93ae,_0x135629,_0x561637={},_0x441706=!![]){const _0x172290={_0x3369cb:0x2c},_0x2136c0={_0x49187e:0x4bc,_0x40b729:0x569,_0x211172:0x5ce,_0x22e8a5:0x5a6,_0xcd90d7:0x4ed,_0x53fcbd:0xb2,_0x4afe34:0x81,_0x4531de:0x9e,_0x9ae987:0x107,_0x27d7d6:0x51e,_0x4a91b6:0x5b8,_0xf888a7:0x4e4,_0x411b5f:0xb6,_0x11f086:0x17c,_0x19076e:0x1ff,_0x157b2e:0x56d,_0x34defb:0x5d3,_0x1bcfd6:0x5e,_0x48906d:0x14d,_0x5140be:0xc3,_0x2901ff:0x18e,_0x3c7893:0x1ea,_0x2dd7e8:0x1f9,_0x1bc34a:0x8f,_0x3c7f0e:0x124,_0x3c225e:0xe8,_0x3934f7:0x4d6,_0x247fd2:0x433,_0x275ba0:0x493,_0x4578d2:0x52d,_0x2413c2:0x451,_0x51fc51:0x4e3,_0x478183:0x5d6,_0x442d7d:0x199,_0x4f3359:0xc6,_0x21a193:0x1e5,_0x21dadd:0x119,_0x2d5099:0xd2,_0x36c625:0x156,_0x1da855:0x1a0,_0x296cc9:0x11e,_0x2a92da:0x8a,_0xe69117:0x12f,_0x16d96b:0x653,_0x3dd1ce:0x60d,_0x3ee4d3:0x59e},{signal:_0x1878f0}=_0x561637,_0x3b912d=async()=>{const _0x2c2ab5={_0x5ae052:0x382},_0x526224=await this[_0x43a3bc(0x4f7,0x581,_0x2136c0._0x49187e,_0x2136c0._0x40b729)](_0x16f0d6,_0x1878f0);let _0xa6edc7;try{_0xa6edc7=_0x5d93ae[_0x43a3bc(_0x2136c0._0x211172,_0x2136c0._0x22e8a5,0x51a,_0x2136c0._0xcd90d7)](_0x526224[_0x5758a0(-0x263,-_0x2136c0._0x53fcbd,-0x17c,-0x19f)]);}catch(_0x206b4d){if(_0x206b4d instanceof Error)throw new ProviderRequestConstructionError(_0x206b4d[_0x5758a0(-_0x2136c0._0x4afe34,-_0x2136c0._0x4531de,-0x139,-_0x2136c0._0x9ae987)]);throw _0x206b4d;}function _0x5758a0(_0x1da7f5,_0x39b92d,_0x1eafc8,_0x2d6d72){return _0x4c72(_0x1eafc8- -_0x2c2ab5._0x5ae052,_0x1da7f5);}function _0x43a3bc(_0x1855bd,_0x3afe28,_0x4ea7bb,_0x275bc2){return _0x4c72(_0x3afe28-0x27d,_0x1855bd);}if(!_0xa6edc7['path'])throw new ProviderRequestConstructionError('Surface\x20'+_0x5d93ae['id']+_0x5758a0(-0x84,-0x6b,-0xcd,0x17));const _0x41f66c=await this[_0x43a3bc(_0x2136c0._0x27d7d6,_0x2136c0._0x4a91b6,_0x2136c0._0xf888a7,0x531)]({'request':_0x526224[_0x5758a0(-0x1e0,-_0x2136c0._0x411b5f,-_0x2136c0._0x11f086,-_0x2136c0._0x19076e)],'body':_0xa6edc7[_0x43a3bc(0x511,0x4c9,0x55a,_0x2136c0._0x157b2e)],'credential':_0x526224[_0x43a3bc(_0x2136c0._0x34defb,0x51e,0x501,0x4e6)],'session':_0x526224[_0x5758a0(-_0x2136c0._0x1bcfd6,-_0x2136c0._0x48906d,-_0x2136c0._0x5140be,-0x4d)],'stream':_0x135629},{'accept':_0xa6edc7[_0x5758a0(-_0x2136c0._0x2901ff,-_0x2136c0._0x3c7893,-_0x2136c0._0x2dd7e8,-0x115)]??(_0x135629?_0x5758a0(-_0x2136c0._0x1bc34a,-_0x2136c0._0x3c7f0e,-0x175,-_0x2136c0._0x3c225e):_0x43a3bc(0x4c6,0x47e,0x475,_0x2136c0._0x3934f7)),'includeContentType':_0xa6edc7[_0x43a3bc(_0x2136c0._0x247fd2,0x4c9,_0x2136c0._0x275ba0,0x449)]!==void 0x0});for(const [_0x14f5ec,_0x47e339]of Object[_0x43a3bc(_0x2136c0._0x4578d2,0x455,_0x2136c0._0x2413c2,0x48a)](_0xa6edc7[_0x43a3bc(0x520,0x467,0x4f9,_0x2136c0._0x51fc51)]??{})){_0x41f66c['set'](_0x14f5ec,_0x47e339);}return this[_0x43a3bc(0x51a,0x4e5,_0x2136c0._0x478183,0x47c)](''+_0x526224[_0x5758a0(-_0x2136c0._0x442d7d,-_0x2136c0._0x4f3359,-0x1b6,-_0x2136c0._0x21a193)]+_0xa6edc7[_0x5758a0(-_0x2136c0._0x21dadd,-_0x2136c0._0x2d5099,-_0x2136c0._0x36c625,-_0x2136c0._0x1da855)],{'method':_0x5758a0(-_0x2136c0._0x296cc9,-0x8,-_0x2136c0._0x2a92da,-_0x2136c0._0xe69117),'headers':_0x41f66c,..._0xa6edc7['body']!==void 0x0?{'body':JSON[_0x43a3bc(_0x2136c0._0x16d96b,0x5b5,_0x2136c0._0x3dd1ce,_0x2136c0._0x3ee4d3)](_0xa6edc7['body'])}:{},'signal':_0x1878f0});};function _0x3d4e23(_0x1077f1,_0x447fbf,_0x5be304,_0x558d35){return _0x54ac71(_0x1077f1-0x10a,_0x558d35,_0x1077f1-0x225,_0x558d35-_0x172290._0x3369cb);}return _0x441706?await this[_0x3d4e23(0x684,0x5fc,0x601,0x6fa)](_0x3b912d,_0x561637):await _0x3b912d();}async*[_0x5276b1(0x9a,0xee,0xd6,0x9)](_0x4a1258,_0x205b2a,_0x3c759d={}){const _0x1c3acb={_0x38fa7a:0x166,_0x32c3d9:0xe9,_0x50eb8d:0x116,_0x473330:0x184,_0x79cfe:0x146,_0x23872e:0x1e,_0x6f4383:0xb6,_0x10e751:0xe9,_0x73612e:0x38,_0x24d880:0x104,_0x3622e8:0x25a,_0x466e9f:0x298,_0x33bf17:0x2e2,_0x9ba2fd:0x11e,_0x6b3246:0x1b8,_0x55b130:0xee,_0x5047a3:0x14e,_0x137a98:0x65,_0x4b7519:0xdc,_0x3f1c8e:0x60,_0x16a659:0x120,_0x5b58e4:0x2f1,_0x36c111:0xea,_0x5934db:0xab,_0x4dcae0:0xba,_0x420772:0x20b,_0x52244c:0x21f,_0x3059c2:0x103,_0x221740:0xb9,_0x1bf75a:0x85,_0x376a26:0x1cc,_0x281760:0x6f,_0x22c526:0x4,_0x16807f:0x9d,_0x42e4bc:0x142,_0x16333a:0x39,_0x4dc2d4:0x107,_0x235558:0xba,_0x319200:0x9f,_0x44ae12:0x17b,_0x3bcac0:0x17a,_0x5b8b03:0xfb},_0x262e69={_0x4f8069:0x1c6,_0x5e3d4b:0x85,_0x460df5:0x1e0},_0xa1f501={_0x2ad1d8:0x1c9},{signal:_0x6fff07}=_0x3c759d;function _0x3574ee(_0x76beda,_0x169d30,_0x11403b,_0x419670){return _0x54ac71(_0x76beda-0xcf,_0x11403b,_0x419670- -0x46b,_0x419670-_0xa1f501._0x2ad1d8);}let _0x644419=![];function _0xaecaac(_0x345e79,_0x43a54e,_0x444bbf,_0x4580d4){return _0x5276b1(_0x345e79,_0x43a54e-_0x262e69._0x4f8069,_0x444bbf-_0x262e69._0x5e3d4b,_0x43a54e-_0x262e69._0x460df5);}for(let _0x50ed74=0x0;_0x50ed74<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x50ed74+=0x1){let _0xf24ae8=![];try{const _0x49c45c=await this[_0xaecaac(0x1d1,_0x1c3acb._0x38fa7a,0x1d4,_0x1c3acb._0x32c3d9)](_0x4a1258,_0x205b2a,!![],_0x3c759d,![]);if(_0x49c45c[_0xaecaac(0xaf,_0x1c3acb._0x50eb8d,_0x1c3acb._0x473330,_0x1c3acb._0x79cfe)]===0x191&&this['sessionManager']&&!_0x644419){_0x644419=!![],this[_0x3574ee(-0x18a,-0xa2,-0x39,-0x119)][_0x3574ee(0x57,_0x1c3acb._0x23872e,_0x1c3acb._0x6f4383,0x10)]();continue;}if(!_0x49c45c['ok']){const _0xa5e6ff=await this['toApiError'](_0x49c45c);if(!this['shouldRetryResponse'](_0x49c45c)||_0x50ed74===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0xa5e6ff;const _0x28f685=this['getRetryDelayMs'](_0x49c45c,_0x50ed74),_0x25b0fd={'type':'provider_retry','attempt':_0x50ed74+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0xa5e6ff[_0x3574ee(-_0x1c3acb._0x10e751,_0x1c3acb._0x73612e,-_0x1c3acb._0x24d880,-0xaf)],'delayMs':_0x28f685,'reason':_0xaecaac(_0x1c3acb._0x3622e8,_0x1c3acb._0x466e9f,_0x1c3acb._0x33bf17,0x343),'status':_0x49c45c[_0xaecaac(_0x1c3acb._0x9ba2fd,0x116,0x50,0x1e7)]};yield _0x25b0fd,await this[_0x3574ee(-0x1bd,-_0x1c3acb._0x6b3246,-0x18f,-0xd3)](_0x28f685,_0x6fff07);continue;}const _0x27c437=_0x205b2a[_0x3574ee(-0x22b,-_0x1c3acb._0x55b130,-0x1a2,-_0x1c3acb._0x5047a3)]?.(_0x4a1258);if(!_0x27c437?.[_0x3574ee(0xf2,0xe0,0xef,_0x1c3acb._0x137a98)])throw new Error(_0x3574ee(0x119,0xfb,_0x1c3acb._0x4b7519,_0x1c3acb._0x3f1c8e)+_0x205b2a['id']+_0xaecaac(0x25c,0x214,_0x1c3acb._0x16a659,_0x1c3acb._0x5b58e4));for await(const _0x75738a of iterateSseEvents(_0x49c45c,_0x6fff07)){const _0x4dbd6b=_0x27c437[_0x3574ee(_0x1c3acb._0x36c111,0x66,-0x1e,_0x1c3acb._0x137a98)](_0x75738a);for(const _0x203449 of _0x4dbd6b){_0xf24ae8=!![],yield _0x203449;}}yield{'type':'done','response':_0x27c437[_0x3574ee(-_0x1c3acb._0x5934db,0xca,_0x1c3acb._0x4dcae0,0xa)]()};return;}catch(_0x3ec2e8){if(_0xf24ae8||!this[_0xaecaac(0x1de,0x293,_0x1c3acb._0x420772,_0x1c3acb._0x52244c)](_0x3ec2e8)||_0x50ed74===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x3ec2e8;const _0x21e390=this[_0x3574ee(-0x17a,-_0x1c3acb._0x3059c2,-_0x1c3acb._0x221740,-_0x1c3acb._0x1bf75a)](void 0x0,_0x50ed74),_0x397680={'type':_0xaecaac(0x1cc,_0x1c3acb._0x376a26,0x298,0xf0),'attempt':_0x50ed74+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x3ec2e8 instanceof Error?_0x3ec2e8[_0x3574ee(-_0x1c3acb._0x281760,-0xe1,-_0x1c3acb._0x22c526,-0xaf)]:String(_0x3ec2e8),'delayMs':_0x21e390,'reason':this[_0x3574ee(-0xfe,-0xcb,-_0x1c3acb._0x16807f,-_0x1c3acb._0x42e4bc)](_0x3ec2e8)?'transport_error':_0xaecaac(_0x1c3acb._0x16333a,_0x1c3acb._0x4dc2d4,0x3f,_0x1c3acb._0x235558)};yield _0x397680,await this[_0xaecaac(_0x1c3acb._0x319200,_0x1c3acb._0x44ae12,_0x1c3acb._0x3bcac0,_0x1c3acb._0x5b8b03)](_0x21e390,_0x6fff07);}}}async*[_0x5276b1(0x9e,0x6a,-0xfa,-0x18)](_0x1f92bd,_0x105312,_0x1a5966){const _0x4c3bd9={_0x2642bd:0x638,_0x55bc6e:0x70a,_0x16001f:0x529,_0x280bbc:0x1c8,_0x164971:0x543,_0x522a06:0x5a7,_0x244b45:0x5bc,_0x227c65:0x6da,_0x1580b2:0x538,_0x47faa4:0x4a7,_0x21bf38:0x559,_0x371ea2:0x5ef,_0x17e862:0x500,_0x14e042:0x441,_0x5808e9:0x60e,_0x2c2633:0x6cc,_0x1d066b:0x144,_0x6cad99:0x55,_0x336ab0:0x289,_0x49eb22:0x1c9,_0x136ca9:0x5ce,_0x4c54ea:0x5a0,_0x221b16:0x66f,_0x294c38:0x59a,_0x198740:0x5ef,_0x3a4994:0xd0,_0x1c77cf:0x38,_0x7e757:0x6a7,_0x5d2f83:0x4e5,_0x41432e:0x4bd,_0x27660c:0x4b1,_0x342864:0x522,_0x34430e:0x4e8,_0x5d03f2:0x59c,_0x1a80dc:0x11b,_0x2898d8:0xf4,_0x3b6c74:0x25d,_0x17cbc7:0x1d1,_0x5adbf8:0x125,_0x56b066:0xe6,_0x2fb831:0x7c,_0x44afe2:0x80,_0x16ff35:0x237,_0x505914:0x218,_0x4d1468:0x152,_0x30fbfa:0x158,_0x516c42:0x4d3,_0x1f18c7:0x4b8,_0x38774a:0x4f5,_0x1c68b5:0x4ac,_0x4c8093:0x663,_0xb172b:0x71f,_0x304d03:0x657,_0x2783ab:0x757,_0x3c237a:0x569,_0x3bd30f:0x59f,_0x2ca24d:0x1a6,_0x3e720b:0x297,_0x1a8b43:0x233,_0x15ecb8:0x310,_0x111a06:0x1f6,_0x4d05c1:0x16a,_0x82791b:0x23a,_0x9bcccc:0x645,_0x20ab08:0x501,_0x33139a:0x41f,_0x4b58c7:0x4b5,_0x55cd20:0x4fc,_0x48afaf:0x15e,_0x339f86:0x7b},_0x3c9df0={_0x4e2721:0x127,_0x4ef138:0x5be},_0x57e343={_0x5c101e:0xe6,_0x1e8a0d:0x242},_0x48c139=await this[_0x294e93(_0x4c3bd9._0x2642bd,_0x4c3bd9._0x55bc6e,0x5d5,0x66c)](_0x1f92bd,_0x1a5966),_0x1a2cd2=_0x105312['createRequest'](_0x48c139[_0x294e93(0x53a,0x5bd,0x59d,_0x4c3bd9._0x16001f)]),_0x56ba3b=_0x105312[_0x56b7e2(0xdb,_0x4c3bd9._0x280bbc,0xd3,0x1a8)]?.(_0x1f92bd);if(!_0x56ba3b?.[_0x294e93(_0x4c3bd9._0x164971,0x549,0x575,_0x4c3bd9._0x522a06)])throw new Error(_0x294e93(0x68c,_0x4c3bd9._0x244b45,_0x4c3bd9._0x227c65,0x73f)+_0x105312['id']+_0x294e93(_0x4c3bd9._0x1580b2,_0x4c3bd9._0x47faa4,_0x4c3bd9._0x21bf38,_0x4c3bd9._0x371ea2));const _0x266495=_0x1a2cd2['url']??(_0x1a2cd2['path']?(''+_0x48c139[_0x294e93(_0x4c3bd9._0x17e862,0x5c4,_0x4c3bd9._0x14e042,0x5b4)]+_0x1a2cd2['path'])[_0x294e93(_0x4c3bd9._0x5808e9,0x68b,0x6ba,_0x4c3bd9._0x2c2633)](/^http:/,_0x56b7e2(_0x4c3bd9._0x1d066b,0x18e,_0x4c3bd9._0x6cad99,0x1e8))[_0x294e93(_0x4c3bd9._0x5808e9,0x69d,0x664,0x577)](/^https:/,'wss:'):void 0x0);if(!_0x266495)throw new ProviderRequestConstructionError(_0x56b7e2(_0x4c3bd9._0x336ab0,_0x4c3bd9._0x49eb22,0x1f1,0x20f)+_0x105312['id']+_0x294e93(_0x4c3bd9._0x136ca9,0x542,_0x4c3bd9._0x4c54ea,0x58e));const _0x16dec0=await this[_0x294e93(_0x4c3bd9._0x221b16,_0x4c3bd9._0x294c38,_0x4c3bd9._0x198740,0x59a)]({'request':_0x48c139['request'],'body':_0x1a2cd2[_0x56b7e2(_0x4c3bd9._0x3a4994,_0x4c3bd9._0x1c77cf,0x28,0xf1)],'credential':_0x48c139[_0x294e93(0x5d5,_0x4c3bd9._0x7e757,_0x4c3bd9._0x5d2f83,0x4e2)],'session':_0x48c139['session'],'stream':!![]},{'accept':_0x1a2cd2[_0x294e93(_0x4c3bd9._0x41432e,0x4e6,0x471,_0x4c3bd9._0x27660c)]??_0x294e93(0x535,_0x4c3bd9._0x342864,0x496,0x549),'includeContentType':![]});for(const [_0x2197e0,_0x136cab]of Object[_0x294e93(0x50c,_0x4c3bd9._0x34430e,0x5d5,_0x4c3bd9._0x5d03f2)](_0x1a2cd2[_0x56b7e2(_0x4c3bd9._0x1a80dc,_0x4c3bd9._0x2898d8,0x1c7,0x2c)]??{})){_0x16dec0[_0x56b7e2(0x298,_0x4c3bd9._0x3b6c74,0x212,_0x4c3bd9._0x17cbc7)](_0x2197e0,_0x136cab);}function _0x56b7e2(_0x3d097b,_0x211e5b,_0x5a3892,_0x532bdd){return _0x54ac71(_0x3d097b-_0x57e343._0x5c101e,_0x532bdd,_0x3d097b- -_0x57e343._0x1e8a0d,_0x532bdd-0x8f);}_0x16dec0[_0x56b7e2(_0x4c3bd9._0x5adbf8,_0x4c3bd9._0x56b066,0x1f7,_0x4c3bd9._0x2fb831)](_0x56b7e2(0xba,_0x4c3bd9._0x44afe2,0x11f,0x7));const _0x1cb631=this[_0x56b7e2(0x1e9,0x132,_0x4c3bd9._0x16ff35,0x245)]({'headers':Object[_0x56b7e2(_0x4c3bd9._0x505914,_0x4c3bd9._0x4d1468,_0x4c3bd9._0x30fbfa,0x1b6)](_0x16dec0['entries']()),'url':_0x266495});function _0x294e93(_0x44f09b,_0x5f34fc,_0x4faf30,_0x5844cd){return _0x5276b1(_0x4faf30,_0x5f34fc-0x103,_0x4faf30-_0x3c9df0._0x4e2721,_0x44f09b-_0x3c9df0._0x4ef138);}try{throwIfAborted(_0x1a5966);_0x1cb631[_0x56b7e2(0x17c,0x23e,0x26f,0x176)]!==WebSocket[_0x294e93(0x55c,0x522,0x52a,0x46f)]&&await waitForWebSocketOpen(_0x1cb631,_0x1a5966);throwIfAborted(_0x1a5966);_0x1a2cd2[_0x294e93(_0x4c3bd9._0x516c42,_0x4c3bd9._0x1f18c7,_0x4c3bd9._0x38774a,_0x4c3bd9._0x1c68b5)]!==void 0x0&&_0x1cb631[_0x294e93(_0x4c3bd9._0x4c8093,_0x4c3bd9._0xb172b,_0x4c3bd9._0x304d03,_0x4c3bd9._0x2783ab)](JSON['stringify'](_0x1a2cd2['initialEvent']));for await(const _0x1b2b6d of iterateWebSocketMessages(_0x1cb631,_0x1a5966)){yield*_0x56ba3b[_0x294e93(0x543,_0x4c3bd9._0x3c237a,0x5cc,_0x4c3bd9._0x3bd30f)](_0x1b2b6d);if(_0x56ba3b['isDone']?.())break;}yield{'type':_0x56b7e2(0x1e4,_0x4c3bd9._0x2ca24d,_0x4c3bd9._0x3e720b,0x135),'response':_0x56ba3b[_0x56b7e2(_0x4c3bd9._0x1a8b43,_0x4c3bd9._0x15ecb8,_0x4c3bd9._0x111a06,_0x4c3bd9._0x4d05c1)]()};}finally{_0x1cb631[_0x56b7e2(0x17c,_0x4c3bd9._0x82791b,0x253,0x1a5)]===WebSocket[_0x294e93(0x55c,0x4f8,0x607,_0x4c3bd9._0x9bcccc)]&&_0x1cb631[_0x294e93(_0x4c3bd9._0x20ab08,_0x4c3bd9._0x33139a,_0x4c3bd9._0x4b58c7,0x44b)](0x3e8,_0x1a5966?.[_0x294e93(0x555,0x5e7,0x5ab,_0x4c3bd9._0x55cd20)]?_0x294e93(0x555,0x4e1,0x5bd,0x4d3):_0x56b7e2(_0x4c3bd9._0x48afaf,0x1a8,_0x4c3bd9._0x339f86,0x1da));}}};async function createHttpError(_0x523105){const _0x67e6f1={_0x1cb6df:0x33b,_0x1db71b:0x408,_0x5c9a01:0x484,_0x7d4477:0x20f,_0x56446e:0x420,_0x21e839:0x3be,_0x50b1bf:0x393,_0x513fde:0x2b3,_0x49955d:0x1c7,_0x48a2d9:0x3a3},_0x3ad9c3={_0xb182cf:0xe1,_0x12fe29:0x3b},_0x1fc5f3={_0x21795a:0x1d9},_0x30caa9=await _0x523105[_0x12e4ba(_0x67e6f1._0x1cb6df,_0x67e6f1._0x1db71b,_0x67e6f1._0x5c9a01,0x3db)]();function _0x12e4ba(_0x46f6cb,_0x5272a1,_0x2f6ffa,_0x37307c){return _0x54ac71(_0x46f6cb-_0x1fc5f3._0x21795a,_0x2f6ffa,_0x5272a1- -0x80,_0x37307c-0x64);}const _0x5c0318=_0x30caa9[_0x21ad08(-_0x67e6f1._0x7d4477,-0x123,-0x6f,-0xaf)]()||_0x523105['statusText']||_0x21ad08(0xce,0x68,-0x28,0x123);function _0x21ad08(_0x3af588,_0x12b87a,_0x5b1bc8,_0xdcd4a0){return _0x5276b1(_0xdcd4a0,_0x12b87a-_0x3ad9c3._0xb182cf,_0x5b1bc8-0xec,_0x12b87a- -_0x3ad9c3._0x12fe29);}return new Error(_0x12e4ba(_0x67e6f1._0x56446e,_0x67e6f1._0x21e839,_0x67e6f1._0x50b1bf,0x443)+_0x523105[_0x12e4ba(0x2c6,_0x67e6f1._0x513fde,_0x67e6f1._0x49955d,_0x67e6f1._0x48a2d9)]+':\x20'+_0x5c0318);}function _0x54ac71(_0x55533e,_0x1eab84,_0x5e17d9,_0xe70050){const _0x35cdad={_0x58e24e:0x173};return _0x4c72(_0x5e17d9-_0x35cdad._0x58e24e,_0x1eab84);}var AnthropicProviderAdapter=class{[_0x5276b1(0x154,-0x26,0xc2,0xc2)];[_0x54ac71(0x35a,0x492,0x3cd,0x4b7)];[_0x5276b1(-0x67,0x89,0x2c,-0x64)];constructor(_0x193631){const _0x1bffd9={_0x4607b6:0x4b,_0x593adc:0xca,_0x21d447:0x4e,_0x58814b:0x2b,_0x13ee94:0x69,_0x2ec763:0x20},_0x307fa4={_0x44be49:0x110,_0x4da4b3:0x303},_0x2c0fd3={_0x529d89:0xa6};function _0x3bc7c9(_0x359364,_0x1d0425,_0x1d263b,_0x21a39c){return _0x54ac71(_0x359364-_0x2c0fd3._0x529d89,_0x21a39c,_0x1d263b- -0x41a,_0x21a39c-0x79);}this['authScheme']=_0x193631[_0x3bc7c9(0x180,_0x1bffd9._0x4607b6,0xa5,-0x1d)];function _0x4b56c9(_0x33f8e2,_0x2bdecf,_0x3bbd9e,_0x17e98a){return _0x54ac71(_0x33f8e2-_0x307fa4._0x44be49,_0x17e98a,_0x3bbd9e- -_0x307fa4._0x4da4b3,_0x17e98a-0x14c);}this[_0x4b56c9(0x104,0xf4,_0x1bffd9._0x593adc,0x106)]=_0x193631[_0x3bc7c9(-_0x1bffd9._0x21d447,-_0x1bffd9._0x58814b,-0x4d,-_0x1bffd9._0x13ee94)],this[_0x4b56c9(0x133,0x102,0x96,_0x1bffd9._0x2ec763)]=_0x193631['protocolVersion'];}[_0x54ac71(0x29c,0x3e4,0x307,0x238)](){const _0x3726d1={_0x471547:0x2d3,_0x2ed642:0x2f6},_0x56f6d3={_0x24b35b:0x174,_0x13535a:0x168};function _0x27aa4a(_0x5b0293,_0x477c24,_0x11ffff,_0x4ec3dd){return _0x54ac71(_0x5b0293-0xd9,_0x4ec3dd,_0x11ffff- -_0x56f6d3._0x24b35b,_0x4ec3dd-_0x56f6d3._0x13535a);}return new Error(_0x27aa4a(_0x3726d1._0x471547,0x30d,_0x3726d1._0x2ed642,0x2fe));}async['createHeaders'](_0x5913d6,_0x423d18){const _0x59170b={_0x1a45e1:0x3b1,_0x4c16d5:0x402,_0x50dcda:0xd7,_0x46a704:0x19a,_0x379043:0x17,_0x2b1384:0x1d3,_0x13daa2:0x47f,_0x57fd92:0x270,_0x20b3f1:0x204,_0x1456fc:0x332,_0x15df6f:0x232,_0x1af66b:0x1e1,_0x205719:0x107,_0x2238fe:0x18b,_0x412aaf:0x73,_0x1b86b9:0x167,_0x27f0ae:0x24b,_0x333e72:0x1eb,_0x45c4e1:0x396,_0x3534e0:0xb1,_0x598d7e:0x6c,_0x70da00:0x2d9,_0xbe161:0x37e,_0x1722b7:0x22b,_0x4b7f4e:0x2e0,_0x428cc3:0x33f,_0x58cdec:0x41,_0x5f3a62:0x2e,_0x44846f:0x6f,_0x47734c:0x1e1,_0xa8bbcc:0x102,_0x28944f:0x186,_0x511cae:0x296,_0x58f588:0xc4,_0x7ed1a4:0x1e,_0x3f6d3e:0x52,_0x524c1a:0x50,_0x38a618:0x4d,_0x266762:0x19,_0xe8e0f3:0xaa,_0x56dc77:0x19f},_0x4754f5={_0x3f2ee1:0xa5,_0x25cddd:0x129},_0x41e6ce=new Headers();_0x41e6ce[_0x5019fe(_0x59170b._0x1a45e1,0x497,0x3c5,_0x59170b._0x4c16d5)](_0x5f4eef(-_0x59170b._0x50dcda,-_0x59170b._0x46a704,-_0x59170b._0x379043,-0x64),_0x423d18[_0x5019fe(_0x59170b._0x2b1384,0x146,0x1fc,0x1f4)]),_0x41e6ce[_0x5019fe(0x3b1,_0x59170b._0x13daa2,0x2d2,0x402)]('anthropic-version',this[_0x5019fe(_0x59170b._0x57fd92,0x287,_0x59170b._0x20b3f1,_0x59170b._0x1456fc)]);_0x423d18[_0x5019fe(0x1d8,_0x59170b._0x15df6f,0x1ff,_0x59170b._0x1af66b)]!==![]&&_0x41e6ce[_0x5f4eef(_0x59170b._0x205719,_0x59170b._0x2238fe,_0x59170b._0x412aaf,0x18d)](_0x5f4eef(-0xc6,-_0x59170b._0x1b86b9,-0xa6,-0x10a),_0x5019fe(_0x59170b._0x27f0ae,0x30b,_0x59170b._0x333e72,0x1bc));this[_0x5019fe(_0x59170b._0x45c4e1,0x442,0x42e,0x2b9)]===_0x5f4eef(_0x59170b._0x3534e0,0x5a,0x17d,0xa6)?_0x41e6ce['set'](_0x5f4eef(-0x5e,-0x14,0x94,-_0x59170b._0x598d7e),_0x5019fe(_0x59170b._0x70da00,0x284,_0x59170b._0xbe161,0x3a1)+_0x5913d6[_0x5019fe(0x2eb,0x229,_0x59170b._0x1722b7,_0x59170b._0xbe161)]['value']):_0x41e6ce['set'](_0x5019fe(_0x59170b._0x4b7f4e,_0x59170b._0x428cc3,0x31d,0x328),_0x5913d6[_0x5f4eef(_0x59170b._0x58cdec,0xd1,-_0x59170b._0x5f3a62,-_0x59170b._0x44846f)][_0x5019fe(_0x59170b._0x47734c,_0x59170b._0xa8bbcc,_0x59170b._0x28944f,0x287)]);function _0x5019fe(_0x343a6d,_0x1a41f4,_0x4451cd,_0x19330b){return _0x54ac71(_0x343a6d-_0x4754f5._0x3f2ee1,_0x4451cd,_0x343a6d- -_0x4754f5._0x25cddd,_0x19330b-0x5a);}const _0x36c969=await this['headerResolver']?.({'body':_0x5913d6[_0x5019fe(_0x59170b._0x511cae,0x2d5,0x26b,0x264)],'credential':_0x5913d6[_0x5f4eef(0x41,0x8a,_0x59170b._0x58f588,0xf6)],'request':_0x5913d6['request'],'session':_0x5913d6[_0x5f4eef(0x5f,0x5d,_0x59170b._0x7ed1a4,-_0x59170b._0x3f6d3e)],'stream':_0x5913d6[_0x5f4eef(_0x59170b._0x524c1a,0x13c,-0x87,_0x59170b._0x38a618)]});for(const [_0x3ece8c,_0x3d5ee1]of Object[_0x5f4eef(-0x88,-0x17b,_0x59170b._0x266762,-_0x59170b._0xe8e0f3)](_0x36c969??{})){_0x41e6ce[_0x5f4eef(0x107,0x1b8,0x119,_0x59170b._0x56dc77)](_0x3ece8c,_0x3d5ee1);}function _0x5f4eef(_0x544e1c,_0x52c21d,_0x31c6d2,_0x1a62aa){return _0x5276b1(_0x1a62aa,_0x52c21d-0x65,_0x31c6d2-0x1c8,_0x544e1c-0x2a);}return _0x41e6ce;}['mapApiError'](_0x487a5f){return _0x487a5f;}[_0x5276b1(-0x51,-0xeb,-0xde,-0xd7)](_0xae428b,_0x1a998e){return resolveSessionBaseUrl(_0xae428b,_0x1a998e);}[_0x5276b1(0x21,-0x45,-0x160,-0x79)](_0x389db8,_0xfdb5d0){return resolveApiCredential(_0x389db8,_0xfdb5d0);}async[_0x54ac71(0x320,0x3c8,0x3de,0x423)](_0x53cbb8){return await createHttpError(_0x53cbb8);}},AnthropicModel=class extends RoutedModel{constructor(_0xb18c7b={}){const _0x1ef811={_0x24f745:0x4a,_0x4284c3:0x20,_0x18bcd0:0x22,_0x10b5a1:0xb0,_0x3d8112:0x7a,_0x3179b6:0xf,_0x4b04c2:0x2b5,_0x33dae0:0x238,_0x5761a0:0x2a1,_0x18eaf3:0x2bc,_0x6dd31d:0xfa,_0x1da136:0xeb,_0x26e161:0xc,_0x3062d7:0xae,_0x160b57:0xd,_0x18b9b8:0x18d,_0x50622b:0x2fd,_0x503cfe:0x2d3,_0x99e2bb:0x332,_0x2be420:0x2c8,_0x2b4c60:0x469,_0x4cb155:0x2f4,_0x57dc65:0x366,_0x1662a0:0x2fa,_0x1d55d6:0x56,_0x527228:0xdc,_0x3294d9:0xc,_0x372506:0xb9,_0x22a5a9:0x73,_0x2a0920:0x83,_0x22ac1a:0x100,_0x5760a4:0x2d},_0xd7ed8b={_0x25cf60:0x115},_0x3887fc={_0x306936:0x4b};function _0xc356c6(_0x360b99,_0x140c34,_0x2ec731,_0x4544bf){return _0x54ac71(_0x360b99-0x1ee,_0x4544bf,_0x360b99- -0x3ef,_0x4544bf-_0x3887fc._0x306936);}function _0x1e47f7(_0x412317,_0x511749,_0x15a475,_0x3da657){return _0x54ac71(_0x412317-0x5b,_0x511749,_0x412317- -_0xd7ed8b._0x25cf60,_0x3da657-0x175);}super({'apiKey':_0xb18c7b[_0xc356c6(-_0x1ef811._0x24f745,_0x1ef811._0x4284c3,-_0x1ef811._0x18bcd0,0x8b)],'baseUrl':trimTrailingSlashes(_0xb18c7b[_0xc356c6(-_0x1ef811._0x10b5a1,-_0x1ef811._0x3d8112,-0x1a4,-_0x1ef811._0x3179b6)]??'https://api.anthropic.com'),'fetch':_0xb18c7b[_0x1e47f7(_0x1ef811._0x4b04c2,_0x1ef811._0x33dae0,_0x1ef811._0x5761a0,0x2e2)],..._0xb18c7b[_0x1e47f7(0x1ef,0x1e2,_0x1ef811._0x18eaf3,_0x1ef811._0x6dd31d)]!==void 0x0?{'maxTokens':_0xb18c7b[_0xc356c6(-_0x1ef811._0x1da136,-0x164,-_0x1ef811._0x26e161,-_0x1ef811._0x3062d7)]}:{},'model':_0xb18c7b['model']??_0xc356c6(-0x3f,-_0x1ef811._0x160b57,-0x119,0x8f),'modelIdentity':_0xb18c7b[_0x1e47f7(0x280,_0x1ef811._0x18b9b8,_0x1ef811._0x50622b,_0x1ef811._0x503cfe)],'reasoning':_0xb18c7b[_0x1e47f7(0x2df,0x262,_0x1ef811._0x99e2bb,0x235)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0xb18c7b[_0x1e47f7(0x3aa,0x2cf,_0x1ef811._0x2be420,_0x1ef811._0x2b4c60)]??_0x1e47f7(_0x1ef811._0x4cb155,_0x1ef811._0x57dc65,0x239,_0x1ef811._0x1662a0),'headerResolver':_0xb18c7b['headerResolver'],'protocolVersion':_0xb18c7b[_0xc356c6(-_0x1ef811._0x1d55d6,-_0x1ef811._0x527228,_0x1ef811._0x3294d9,-0x142)]??_0xc356c6(-_0x1ef811._0x372506,-0x42,-_0x1ef811._0x1da136,-_0x1ef811._0x22a5a9)}),'providerSessionResolver':_0xb18c7b['providerSessionResolver'],'requestMutators':_0xb18c7b[_0xc356c6(0xa1,_0x1ef811._0x2a0920,_0x1ef811._0x22ac1a,-_0x1ef811._0x5760a4)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x54ac71(0x3d6,0x2b9,0x3ab,0x449)](_0x486a04,_0x5c3f11){const _0xb6106b={_0x1e4b09:0x3c7,_0x9aeafd:0x45b};function _0x1d3522(_0x1668c0,_0x5b5ac1,_0x29f67c,_0x5affa8){return _0x5276b1(_0x1668c0,_0x5b5ac1-0xb4,_0x29f67c-0x161,_0x29f67c-0x350);}return this[_0x1d3522(0x4ea,_0xb6106b._0x1e4b09,0x42f,_0xb6106b._0x9aeafd)](_0x486a04,ANTHROPIC_MESSAGES_SURFACE,_0x5c3f11);}[_0x54ac71(0x3e8,0x442,0x423,0x35f)](_0x263044,_0x20207c){const _0x35dec1={_0xd29b72:0x18d,_0x58dad3:0x1bd},_0x56010d={_0x1bdf1b:0x132,_0x93e7a8:0x1c4,_0x14b27d:0x1e7};function _0x6eae32(_0x37d936,_0x39e5b6,_0x4ae633,_0x1a9e10){return _0x54ac71(_0x37d936-_0x56010d._0x1bdf1b,_0x4ae633,_0x1a9e10- -_0x56010d._0x93e7a8,_0x1a9e10-_0x56010d._0x14b27d);}return this[_0x6eae32(0x29b,_0x35dec1._0xd29b72,0x1b1,_0x35dec1._0x58dad3)](_0x263044,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x20207c);}},model_registry_default={'defaultModel':'gpt-4o','cliDefaultModel':_0x5276b1(0x11,-0xec,-0x72,-0x95),'providers':{'anthropic':{'label':_0x54ac71(0x431,0x38e,0x3dc,0x404),'baseUrl':_0x5276b1(0x23,0x14e,0x6,0xc5),'surface':_0x54ac71(0x493,0x484,0x424,0x3de),'authScheme':_0x5276b1(0x85,-0xde,-0x89,0xc),'defaultModel':_0x5276b1(-0x77,0x14,-0xa3,-0x4d),'defaultModels':[_0x5276b1(-0x33,0x4b,0x89,-0x4d),'claude-3-5-sonnet-20241022'],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x5276b1(0x28,0x31,0xea,0xcb),'baseUrl':_0x5276b1(-0x40,-0x30,0x17,0x8f),'anthropicBaseUrl':_0x5276b1(0xab,0x7f,0x5a,0xe),'surface':_0x54ac71(0x4de,0x3c9,0x424,0x395),'authScheme':'bearer','defaultModel':_0x54ac71(0x2bc,0x361,0x368,0x2ab),'defaultModels':['glm-5.2',_0x5276b1(-0x30,0xe7,0x24,0x1d),_0x54ac71(0x328,0x3cc,0x368,0x367),_0x5276b1(-0x2d,0x139,0x8f,0x45),_0x5276b1(0xf3,0x18,-0x94,0x28)],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x20000},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x20000},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':_0x54ac71(0x3dd,0x437,0x3fc,0x4b5),'baseUrl':_0x54ac71(0x414,0x52e,0x4b6,0x58d),'surface':'openai-chat-completions','authScheme':_0x5276b1(0x153,-0x2d,0x152,0x87),'defaultModel':_0x5276b1(-0x81,0x18,0xee,0x65),'defaultModels':[_0x54ac71(0x384,0x380,0x462,0x490),_0x5276b1(-0x62,-0x119,-0xbc,-0x100)],'supportsModelFetch':!![],'models':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}}},'github':{'label':'GitHub\x20Models\x20/\x20Copilot','surface':_0x54ac71(0x420,0x41d,0x3da,0x39f),'defaultModel':'gpt-5.2-codex','defaultModels':[_0x5276b1(0x20,-0x6e,0x129,0x5e),'gpt-4.1',_0x54ac71(0x512,0x469,0x460,0x53f),'gpt-5-mini',_0x54ac71(0x328,0x275,0x33e,0x373),_0x54ac71(0x3b8,0x3cb,0x37d,0x3fc)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x54ac71(0x481,0x3a2,0x424,0x4b6)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x54ac71(0x39f,0x40c,0x424,0x4ec)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'grok':{'label':_0x5276b1(-0x82,-0x70,-0xb2,0x22),'baseUrl':'https://api.x.ai/v1','surface':_0x54ac71(0x3b6,0x4a6,0x3da,0x2fd),'authScheme':_0x54ac71(0x3fb,0x3bc,0x484,0x41b),'defaultModel':_0x5276b1(-0xbe,-0x94,-0xa6,-0x78),'defaultModels':[_0x54ac71(0x2e3,0x3ca,0x385,0x396),_0x5276b1(-0x125,-0x183,-0x13d,-0xc0)],'supportsModelFetch':!![],'models':{'grok-4.3':{'contextWindow':0x20000,'maxOutput':0x4000},'grok-build-0.1':{'contextWindow':0x20000,'maxOutput':0x4000}}},'openai':{'label':'OpenAI','baseUrl':_0x5276b1(0x5d,0x1,-0xe3,-0x3b),'surface':_0x54ac71(0x265,0x407,0x354,0x2d1),'authScheme':_0x54ac71(0x3d0,0x54a,0x484,0x4e9),'defaultModel':_0x54ac71(0x30e,0x326,0x39e,0x2cf),'defaultModels':[],'supportsModelFetch':![],'models':{}},'openai-codex':{'label':_0x54ac71(0x2d3,0x3cc,0x35e,0x326),'baseUrl':_0x54ac71(0x341,0x4ad,0x3ff,0x38f),'surface':_0x5276b1(0x6,0x4,-0x62,-0x23),'authScheme':_0x5276b1(0x4f,0xb6,0x5c,0x87),'defaultModel':_0x5276b1(0x12,-0x17,0xc6,0x7b),'defaultModels':[_0x54ac71(0x479,0x404,0x478,0x438)],'supportsModelFetch':!![],'models':{'gpt-5.4':{'contextWindow':0x42680,'maxOutput':0x1f400}}},'deepseek':{'label':_0x54ac71(0x248,0x3ea,0x314,0x33d),'baseUrl':'https://api.deepseek.com/anthropic','surface':'anthropic-messages','authScheme':'bearer','defaultModel':_0x5276b1(-0x84,-0x56,-0x37,0x1b),'defaultModels':['deepseek-v4-pro',_0x54ac71(0x4d9,0x3b6,0x451,0x4fa)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x54ac71(0x46f,0x3a0,0x3b3,0x40b),'baseUrl':'https://api.minimax.io/anthropic','surface':_0x5276b1(-0x39,-0x5d,-0xb7,0x27),'authScheme':_0x54ac71(0x4dd,0x3fb,0x484,0x554),'defaultModel':_0x54ac71(0x3f9,0x34f,0x40c,0x4ac),'defaultModels':[_0x5276b1(-0xf,0xf8,0xe1,0xf)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':'CommandCode','baseUrl':_0x5276b1(0x49,0xde,-0x52,0x39),'modelsBaseUrl':'https://api.commandcode.ai/provider/v1','surface':_0x54ac71(0x478,0x4e0,0x424,0x4fb),'authScheme':_0x54ac71(0x36c,0x4a0,0x409,0x38d),'defaultModel':_0x54ac71(0x40c,0x484,0x3b0,0x438),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x5276b1(-0x64,0x54,0xb,-0x28),'baseUrl':_0x54ac71(0x595,0x515,0x4db,0x523),'modelsBaseUrl':_0x5276b1(-0x84,-0xf6,0xf,-0xd1),'surface':_0x5276b1(0xbb,-0x5f,0x40,0x27),'authScheme':_0x54ac71(0x4df,0x3af,0x409,0x4a4),'defaultModel':_0x54ac71(0x30a,0x475,0x3c5,0x37a),'defaultModels':[_0x54ac71(0x413,0x447,0x3c5,0x352)],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default;function findProviderKey(_0x52758b){const _0x47384a={_0x3cc422:0xdd,_0x3cf3fc:0x21,_0x4d8203:0x7f},_0x5007ba={_0x1fb5e0:0x4a,_0x57d6bd:0x3f4,_0x177000:0x1a},_0xe77889={_0x5857b6:0xd8,_0x12ad80:0x12e,_0x167a10:0x129},_0x3c60bf=_0x52758b[_0x390e2a(_0x47384a._0x3cc422,0x61,0x74,_0x47384a._0x3cf3fc)]();function _0x1687f7(_0x106e7d,_0x28ca7b,_0x5999bb,_0xd93739){return _0x5276b1(_0x5999bb,_0x28ca7b-_0xe77889._0x5857b6,_0x5999bb-_0xe77889._0x12ad80,_0x28ca7b- -_0xe77889._0x167a10);}function _0x390e2a(_0x3fe630,_0x379069,_0x2e2027,_0x455df3){return _0x54ac71(_0x3fe630-_0x5007ba._0x1fb5e0,_0x455df3,_0x3fe630- -_0x5007ba._0x57d6bd,_0x455df3-_0x5007ba._0x177000);}return Object['keys'](data[_0x1687f7(-0x106,-_0x47384a._0x4d8203,-0x54,-0x63)])['find'](_0x3fc629=>_0x3fc629[_0x1687f7(-0x62,-0x55,0x73,-0x12c)]()===_0x3c60bf);}function getProviderProfile(_0x5e2125){const _0x3786a5={_0x24ca61:0x6fb,_0xbdc855:0x69f,_0x5b4df:0x73,_0xd57698:0xbe,_0x37bd8c:0xed,_0xc3027:0x2d,_0x57d1b3:0x2b,_0x4755f3:0x51,_0x5624d2:0x600,_0x17a678:0x4e9,_0x58505b:0x225,_0x19b770:0x7c,_0x989728:0x52b,_0x5656ed:0x639,_0x359f95:0x62,_0x1fd41a:0x16,_0x52d774:0xe4,_0x232061:0x94},_0x7eb2d6={_0x3de4ab:0x17d},_0x38f486={_0x192908:0x108,_0x3f8be5:0x18d};function _0x4583e7(_0xbc78cd,_0x29f192,_0x50c0ce,_0x22a48a){return _0x54ac71(_0xbc78cd-_0x38f486._0x192908,_0x29f192,_0x22a48a- -0x438,_0x22a48a-_0x38f486._0x3f8be5);}const _0x240f97=findProviderKey(_0x5e2125);if(!_0x240f97)return void 0x0;function _0x3fc03d(_0x35bbaf,_0x356511,_0x22b8c9,_0x5ce528){return _0x5276b1(_0x5ce528,_0x356511-0x101,_0x22b8c9-_0x7eb2d6._0x3de4ab,_0x22b8c9-0x5ad);}const _0x4eb57e=data[_0x3fc03d(0x669,_0x3786a5._0x24ca61,0x657,_0x3786a5._0xbdc855)][_0x240f97],_0x386b3b={};for(const [_0x2d5125,_0x30442c]of Object[_0x4583e7(-0x135,-_0x3786a5._0x5b4df,-_0x3786a5._0xd57698,-_0x3786a5._0x37bd8c)](_0x4eb57e[_0x4583e7(_0x3786a5._0xc3027,-0x114,-_0x3786a5._0x57d1b3,-_0x3786a5._0x4755f3)])){_0x386b3b[_0x2d5125]=_0x30442c;}return{'label':_0x4eb57e[_0x3fc03d(_0x3786a5._0x5624d2,0x4ba,0x558,_0x3786a5._0x17a678)],'baseUrl':_0x4eb57e['baseUrl'],'modelsBaseUrl':_0x4eb57e['modelsBaseUrl'],'anthropicBaseUrl':_0x4eb57e[_0x4583e7(-_0x3786a5._0x58505b,-_0x3786a5._0x19b770,-0x1e1,-0x136)],'surface':_0x4eb57e[_0x3fc03d(_0x3786a5._0x989728,0x4e9,0x587,_0x3786a5._0x5656ed)],'authScheme':_0x4eb57e[_0x4583e7(-0x33,_0x3786a5._0x359f95,0x152,0x87)],'defaultModel':_0x4eb57e[_0x4583e7(-0x96,-0xb0,-0x16c,-0x106)],'defaultModels':_0x4eb57e[_0x4583e7(0x7f,-0xb2,_0x3786a5._0x1fd41a,0x3)]??[],'supportsModelFetch':_0x4eb57e[_0x4583e7(0x5a,0x15d,_0x3786a5._0x52d774,_0x3786a5._0x232061)]??![],'models':_0x386b3b};}function getModelProfile(_0x3e29f4,_0x2cd827){const _0x1f3658={_0x40c004:0x3e0,_0x202370:0x44a,_0x1e3821:0x3c2,_0x31523a:0x320,_0xc7921b:0x3ee,_0x3d637f:0x259},_0x17b5a7={_0x252a42:0xa0,_0x1ab5ee:0x651};function _0x5424f0(_0x194676,_0x2961be,_0x5de4f4,_0x391960){return _0x5276b1(_0x194676,_0x2961be-0x13f,_0x5de4f4-_0x17b5a7._0x252a42,_0x5de4f4-_0x17b5a7._0x1ab5ee);}function _0xa73f7a(_0x4bcfb1,_0x2edb99,_0x50d28a,_0x4d4bd9){return _0x54ac71(_0x4bcfb1-0x174,_0x4d4bd9,_0x4bcfb1- -0xc7,_0x4d4bd9-0x4);}const _0x50b8d8=findProviderKey(_0x3e29f4);if(!_0x50b8d8)return void 0x0;return data[_0xa73f7a(_0x1f3658._0x40c004,_0x1f3658._0x202370,0x44d,_0x1f3658._0x1e3821)][_0x50b8d8][_0xa73f7a(_0x1f3658._0x31523a,_0x1f3658._0xc7921b,0x30a,_0x1f3658._0x3d637f)][_0x2cd827];}function resolveModelProfile(_0x1a9bbd,_0x181ea7){const _0x4aef37={_0x4538a2:0x7b,_0x4d9e32:0x109,_0x4d068e:0x170,_0x1720ee:0x23b,_0x3d41b5:0x256,_0x1a9b33:0x84,_0x3ea309:0x17e,_0x4ee267:0x151,_0x2b92e9:0x10c,_0x27aeda:0x25,_0x2dc7e8:0xff,_0x155ac9:0xa1,_0x16df3b:0x9d,_0x446000:0x129,_0x1cf7fa:0xce},_0x823665={_0x4a6d7c:0x557,_0x3151c4:0x142},_0x39aa87={_0x5a2257:0x42c,_0x3bf968:0x4c},_0x2c4e00=findProviderKey(_0x1a9bbd);if(!_0x2c4e00)return void 0x0;const _0x280fe6=data[_0x4ec799(-0x1a,0xcb,_0x4aef37._0x4538a2,_0x4aef37._0x4d9e32)][_0x2c4e00],_0x361d18=_0x280fe6[_0x8166fc(-_0x4aef37._0x4d068e,-_0x4aef37._0x1720ee,-_0x4aef37._0x3d41b5,-0x127)][_0x181ea7];function _0x4ec799(_0x3be949,_0xdc6e65,_0x1eca12,_0x1c45ee){return _0x54ac71(_0x3be949-0x65,_0xdc6e65,_0x1eca12- -_0x39aa87._0x5a2257,_0x1c45ee-_0x39aa87._0x3bf968);}function _0x8166fc(_0x180894,_0x526990,_0x499304,_0x4bce64){return _0x54ac71(_0x180894-0x163,_0x526990,_0x180894- -_0x823665._0x4a6d7c,_0x4bce64-_0x823665._0x3151c4);}return{'label':_0x280fe6[_0x4ec799(0x15,-0x1b,-_0x4aef37._0x1a9b33,-0x11)],'baseUrl':_0x280fe6['baseUrl'],'modelsBaseUrl':_0x280fe6[_0x4ec799(0xcd,0x88,0x43,0x101)],'anthropicBaseUrl':_0x280fe6[_0x4ec799(-0x47,-0x45,-0x12a,-0x21e)],'surface':_0x361d18?.[_0x8166fc(-0x180,-_0x4aef37._0x3ea309,-0x154,-_0x4aef37._0x4ee267)]??_0x280fe6[_0x8166fc(-0x180,-0xd0,-0x1e0,-_0x4aef37._0x2b92e9)],'authScheme':_0x280fe6[_0x4ec799(-0x46,0xef,0x93,_0x4aef37._0x27aeda)],'defaultModel':_0x280fe6['defaultModel'],'defaultModels':_0x280fe6[_0x4ec799(_0x4aef37._0x2dc7e8,-_0x4aef37._0x155ac9,0xf,0x42)],'supportsModelFetch':_0x280fe6[_0x4ec799(_0x4aef37._0x16df3b,_0x4aef37._0x446000,0xa0,0xf9)],'contextWindow':_0x361d18?.[_0x4ec799(-_0x4aef37._0x1cf7fa,0x6c,-0x15,-0x2)],'maxOutput':_0x361d18?.[_0x8166fc(-0x196,-0x102,-0x180,-0x19a)]};}function getDefaultModel(){return data['defaultModel'];}function getCliDefaultModel(){const _0x2728d3={_0x29ceaa:0x12e,_0x28f45f:0x22f,_0x2dc1cc:0x7b};function _0x4232d6(_0x605a7b,_0x943ed0,_0x25a119,_0x4abc31){return _0x54ac71(_0x605a7b-_0x2728d3._0x29ceaa,_0x4abc31,_0x605a7b-_0x2728d3._0x28f45f,_0x4abc31-_0x2728d3._0x2dc1cc);}return data[_0x4232d6(0x6f0,0x679,0x68f,0x63c)];}function getProviderLabel(_0x336705){const _0x4710d7={_0xc65403:0x36f,_0x3f6524:0x31e,_0xce2031:0x3bc,_0x3b4bb6:0x25b},_0x40c65d={_0x5cca04:0x153,_0xf61588:0x1c7},_0x57d15c={_0x2bcd5b:0x34c};function _0x1ab839(_0xe3bda6,_0x2d4d15,_0x34295a,_0x5c667d){return _0x5276b1(_0x2d4d15,_0x2d4d15-0x1,_0x34295a-0x1d2,_0x34295a-_0x57d15c._0x2bcd5b);}const _0x465269=findProviderKey(_0x336705);function _0x4fe111(_0x537b47,_0x2e51fb,_0x37dbdb,_0x462c2d){return _0x54ac71(_0x537b47-_0x40c65d._0x5cca04,_0x537b47,_0x2e51fb- -0x138,_0x462c2d-_0x40c65d._0xf61588);}return _0x465269?data[_0x4fe111(0x39b,_0x4710d7._0xc65403,0x3d6,0x31a)][_0x465269][_0x1ab839(_0x4710d7._0x3f6524,_0x4710d7._0xce2031,0x2f7,_0x4710d7._0x3b4bb6)]:void 0x0;}function getProviderDefaultModel(_0x186b14){const _0x195d13={_0x150ba3:0x599,_0x3b79dc:0x6c5,_0x431815:0x66a},_0x26cf40={_0x23b8ca:0x5c0},_0x121e83=findProviderKey(_0x186b14);function _0x3f40da(_0x36b554,_0x179542,_0xee6d85,_0x117ded){return _0x5276b1(_0x179542,_0x179542-0x1be,_0xee6d85-0x164,_0x117ded-_0x26cf40._0x23b8ca);}if(!_0x121e83)return void 0x0;return data[_0x3f40da(0x620,_0x195d13._0x150ba3,_0x195d13._0x3b79dc,_0x195d13._0x431815)][_0x121e83]['defaultModel'];}function _0x4c72(_0x4b3a76,_0x16a522){_0x4b3a76=_0x4b3a76-0x189;const _0x25f2eb=_0x25f2();let _0x4c7227=_0x25f2eb[_0x4b3a76];if(_0x4c72['FQuZRV']===undefined){var _0x1b30c5=function(_0x3a3224){const _0x3088d2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ae5ea='',_0x4b4612='';for(let _0x4fe7a8=0x0,_0x4b98aa,_0x48d093,_0x4bdb5a=0x0;_0x48d093=_0x3a3224['charAt'](_0x4bdb5a++);~_0x48d093&&(_0x4b98aa=_0x4fe7a8%0x4?_0x4b98aa*0x40+_0x48d093:_0x48d093,_0x4fe7a8++%0x4)?_0x3ae5ea+=String['fromCharCode'](0xff&_0x4b98aa>>(-0x2*_0x4fe7a8&0x6)):0x0){_0x48d093=_0x3088d2['indexOf'](_0x48d093);}for(let _0xf2a96a=0x0,_0x94c32=_0x3ae5ea['length'];_0xf2a96a<_0x94c32;_0xf2a96a++){_0x4b4612+='%'+('00'+_0x3ae5ea['charCodeAt'](_0xf2a96a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b4612);};_0x4c72['gvCaJh']=_0x1b30c5,_0x4c72['eXqloG']={},_0x4c72['FQuZRV']=!![];}const _0x2e59f8=_0x25f2eb[0x0],_0x335715=_0x4b3a76+_0x2e59f8,_0x55097a=_0x4c72['eXqloG'][_0x335715];return!_0x55097a?(_0x4c7227=_0x4c72['gvCaJh'](_0x4c7227),_0x4c72['eXqloG'][_0x335715]=_0x4c7227):_0x4c7227=_0x55097a,_0x4c7227;}function getProviderDefaultModels(_0xe15aa3){const _0x4faf43={_0x7519e0:0x677},_0x3b2404={_0x34a6f6:0x1ae,_0x3b3311:0x6f};function _0x35c414(_0x58bb16,_0x1d7f8c,_0x1d162c,_0x1e511c){return _0x5276b1(_0x1e511c,_0x1d7f8c-_0x3b2404._0x34a6f6,_0x1d162c-_0x3b2404._0x3b3311,_0x1d162c-0x639);}const _0x34d4b8=findProviderKey(_0xe15aa3);if(!_0x34d4b8)return[];return[...data['providers'][_0x34d4b8][_0x35c414(0x6fe,0x65f,_0x4faf43._0x7519e0,0x65d)]??[]];}function providerSupportsModelFetch(_0x5b4b59){const _0x34bef4={_0x585db6:0x15f,_0x2c132c:0xe},_0x3195dd={_0x32cd38:0x164},_0x144c01=findProviderKey(_0x5b4b59);function _0xb228d6(_0x1d17ce,_0x5cbccd,_0x534ec4,_0x1f0b2f){return _0x5276b1(_0x1d17ce,_0x5cbccd-_0x3195dd._0x32cd38,_0x534ec4-0x160,_0x534ec4- -0x18);}if(!_0x144c01)return![];return data[_0xb228d6(_0x34bef4._0x585db6,_0x34bef4._0x2c132c,0x92,0x14e)][_0x144c01]['supportsModelFetch']??![];}function getOnboardingProviderKeys(){const _0x2b431d={_0x5de185:0x45d,_0xe9a095:0x52d},_0x10357b={_0x31de07:0x18d};function _0x9c18bd(_0xf2ff0a,_0x1109a7,_0x49f45e,_0x3d7ade){return _0x5276b1(_0xf2ff0a,_0x1109a7-0xef,_0x49f45e-_0x10357b._0x31de07,_0x1109a7- -0xc7);}function _0x42fa31(_0x320240,_0x3a540e,_0x37198e,_0x4e6a01){return _0x54ac71(_0x320240-0x151,_0x37198e,_0x320240- -0x29,_0x4e6a01-0x1b2);}return Object[_0x42fa31(0x465,0x44c,0x465,_0x2b431d._0x5de185)](data[_0x42fa31(0x47e,0x555,_0x2b431d._0xe9a095,0x564)]);}var OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream';function _0x5276b1(_0x1ddd04,_0xac6a8d,_0x35a4d3,_0x5e7206){const _0x1eb658={_0x21100c:0x28a};return _0x4c72(_0x5e7206- -_0x1eb658._0x21100c,_0x1ddd04);}var OPENAI_RESPONSES_SURFACE=_0x5276b1(-0x15,-0x92,0x41,-0x23),OPENAI_RESPONSES_STREAM_SURFACE=_0x54ac71(0x46f,0x318,0x3f5,0x49a),OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{['status'];[_0x54ac71(0x3c7,0x482,0x3bf,0x421)];constructor(_0x16b9a0,_0x3cb423,_0x6b675f){const _0x52cfa0={_0x4aa48e:0x52,_0x2c011f:0x2d,_0x46025a:0xb2},_0x2bf25a={_0x5a209e:0x1cc},_0x27bbe3={_0x480c91:0x9c};super(_0x6b675f);function _0x53015d(_0x15f8be,_0x34f9da,_0x5d489d,_0x45884b){return _0x54ac71(_0x15f8be-_0x27bbe3._0x480c91,_0x34f9da,_0x45884b- -0x2b7,_0x45884b-0x12f);}function _0x47d34c(_0x1c7659,_0xf6aaeb,_0x1a858a,_0x3c5c16){return _0x54ac71(_0x1c7659-0x7e,_0x3c5c16,_0xf6aaeb- -0x258,_0x3c5c16-_0x2bf25a._0x5a209e);}this[_0x53015d(-0x68,-_0x52cfa0._0x4aa48e,0x19,0x85)]='OpenAiApiError',this[_0x53015d(-_0x52cfa0._0x2c011f,0x141,_0x52cfa0._0x46025a,0x7c)]=_0x16b9a0,this[_0x47d34c(0xfd,0x167,0x257,0xf2)]=_0x3cb423;}};function stringifySystem(_0x5a61b5){const _0x3a5780={_0x5a47ca:0x21a},_0x548c82={_0x418bfe:0x81,_0x353c60:0x7c},_0x332e9d={_0x2aef4b:0x178,_0x51b5d8:0x191};function _0x3572f2(_0x640ed9,_0x3edbff,_0xe4f480,_0x566a9b){return _0x54ac71(_0x640ed9-0x4c,_0xe4f480,_0x3edbff- -_0x332e9d._0x2aef4b,_0x566a9b-_0x332e9d._0x51b5d8);}function _0x296646(_0x4d92d7,_0x82bab4,_0x3015f7,_0x5e4e6b){return _0x5276b1(_0x3015f7,_0x82bab4-_0x548c82._0x418bfe,_0x3015f7-0x14b,_0x82bab4-_0x548c82._0x353c60);}return _0x5a61b5[_0x3572f2(_0x3a5780._0x5a47ca,0x272,0x2f0,0x212)](_0x505564=>_0x505564[_0x296646(0x1a9,0x107,0x6b,0x114)])[_0x296646(0xa5,0xb6,0x4c,-0x2)]('\x0a\x0a');}function createToolDefinitions(_0x19f898){const _0x324f13={_0x370c2a:0x27b,_0x331667:0x397},_0x32d54f={_0x5a88d3:0x34e,_0x24651e:0x2d6,_0x171eec:0x24b},_0x52dca5={_0x4a019b:0x19,_0x42bb78:0x70,_0x67fb5c:0x304},_0x5a07a4={_0x55d292:0x9b},_0x4f7da6={_0x203f30:0x66};if(_0x19f898[_0x2240f8(_0x324f13._0x370c2a,0x28a,0x403,0x34e)]===0x0)return void 0x0;function _0x2240f8(_0x345927,_0x46fa77,_0x2ae94d,_0x46ee86){return _0x5276b1(_0x46fa77,_0x46fa77-0x83,_0x2ae94d-_0x4f7da6._0x203f30,_0x46ee86-0x26d);}function _0x574ae0(_0x50fcf5,_0x2db8b9,_0x4590a5,_0x313895){return _0x54ac71(_0x50fcf5-0x8e,_0x313895,_0x2db8b9-0x89,_0x313895-_0x5a07a4._0x55d292);}return _0x19f898[_0x574ae0(0x51e,0x473,0x3c7,_0x324f13._0x331667)](_0x4f7363=>{const _0x2e8d96={_0x4261a3:0x107};function _0x528779(_0x504ff9,_0xf7ce8d,_0xd106a3,_0x2d5e89){return _0x2240f8(_0x504ff9-_0x52dca5._0x4a019b,_0xf7ce8d,_0xd106a3-_0x52dca5._0x42bb78,_0x2d5e89-_0x52dca5._0x67fb5c);}function _0x1d205d(_0x58f328,_0x13324c,_0x3e4139,_0x44cc5d){return _0x2240f8(_0x58f328-_0x2e8d96._0x4261a3,_0x13324c,_0x3e4139-0xa4,_0x3e4139-0x49);}return{'type':'function','function':{'name':_0x4f7363['name'],'description':_0x4f7363[_0x1d205d(_0x32d54f._0x5a88d3,0x3b4,_0x32d54f._0x24651e,_0x32d54f._0x171eec)],'parameters':_0x4f7363[_0x528779(0x558,0x5fa,0x52c,0x52a)]}};});}function isImageToolResultBlock(_0x43ad2b){const _0x11a9cd={_0x1ba0cb:0x2ba,_0x8b4eef:0x10a,_0x56d82a:0x159,_0x462290:0x1ce,_0x1b3909:0x400,_0x474ad3:0x4ad,_0x4d6f73:0x629,_0x1a57bf:0x5b3,_0x397c31:0x5fb,_0x172b78:0x5e5,_0x546efe:0x548,_0x4a6ee6:0x5cd,_0x3c25ca:0x545,_0x55e6f9:0x6bd,_0x590e56:0x600,_0x1e9b93:0x62c,_0x341df3:0x5aa,_0x5d31f6:0x591,_0x4d278c:0x4cc,_0x31f762:0x4d6,_0x30c961:0x224,_0x4b93f3:0x2c1,_0x53d467:0x524,_0x461357:0x5ef,_0x3a3cf8:0x31,_0x3355dd:0x86,_0x5f202a:0x6bf,_0x1b345f:0x488},_0x15b990={_0x578a01:0x1a5,_0x288290:0x14f},_0x3cd241={_0x118b0e:0x1db,_0x5a193d:0x16f};function _0x19eebc(_0x15f17a,_0x314e79,_0x431832,_0x58d3cd){return _0x5276b1(_0x15f17a,_0x314e79-_0x3cd241._0x118b0e,_0x431832-_0x3cd241._0x5a193d,_0x58d3cd-0x563);}if(typeof _0x43ad2b!==_0xde0490(_0x11a9cd._0x1ba0cb,_0x11a9cd._0x8b4eef,_0x11a9cd._0x56d82a,_0x11a9cd._0x462290)||_0x43ad2b===null||Array[_0x19eebc(0x520,_0x11a9cd._0x1b3909,0x43c,_0x11a9cd._0x474ad3)](_0x43ad2b))return![];const _0x57b6cc=_0x43ad2b;function _0xde0490(_0x39a89e,_0x4b94bf,_0x4b66af,_0x5ccf0e){return _0x5276b1(_0x4b66af,_0x4b94bf-_0x15b990._0x578a01,_0x4b66af-0x4a,_0x5ccf0e-_0x15b990._0x288290);}return _0x57b6cc[_0x19eebc(_0x11a9cd._0x4d6f73,0x661,_0x11a9cd._0x1a57bf,_0x11a9cd._0x397c31)]===_0x19eebc(_0x11a9cd._0x172b78,0x599,_0x11a9cd._0x546efe,0x578)&&_0x57b6cc[_0x19eebc(_0x11a9cd._0x4a6ee6,_0x11a9cd._0x3c25ca,_0x11a9cd._0x55e6f9,_0x11a9cd._0x590e56)]?.[_0x19eebc(_0x11a9cd._0x1e9b93,0x60b,_0x11a9cd._0x341df3,_0x11a9cd._0x397c31)]===_0x19eebc(_0x11a9cd._0x5d31f6,_0x11a9cd._0x4d278c,0x40a,_0x11a9cd._0x31f762)&&typeof _0x57b6cc[_0xde0490(_0x11a9cd._0x30c961,_0x11a9cd._0x4b93f3,0x284,0x1ec)][_0x19eebc(0x5e6,_0x11a9cd._0x53d467,0x5dd,_0x11a9cd._0x461357)]===_0xde0490(_0x11a9cd._0x3a3cf8,_0x11a9cd._0x3355dd,0x1db,0x119)&&typeof _0x57b6cc[_0x19eebc(0x6f0,0x6d2,_0x11a9cd._0x5f202a,_0x11a9cd._0x590e56)][_0x19eebc(0x415,0x39c,0x4d8,_0x11a9cd._0x1b345f)]==='string';}function getToolResultText(_0x2659dc){const _0x379ddd={_0x25c6cc:0x6ea,_0x43b1a4:0x61e,_0x40da5c:0x724,_0x1077b7:0x6bf,_0xd7c27a:0x75d,_0x31aff1:0x5a1,_0x4dd057:0x647,_0x509739:0x5e4,_0x163fe1:0x56c,_0x132f1b:0x480,_0x562858:0x5e5,_0x2638dd:0x673},_0x40dfd7={_0x50aae5:0x2c4,_0x5c61c9:0x342,_0x546d86:0x753,_0x2ec9bb:0x6f0,_0x196370:0x633,_0x1688ec:0x264,_0x492e85:0x2bd,_0x559e60:0x35e},_0x20c2fe={_0x21db34:0x8d,_0x51c5f7:0xa6},_0x384f92={_0x490d5b:0x1a5},_0x5e9f64={_0x10b4c0:0x141,_0xa5dc34:0x5cb};if(typeof _0x2659dc===_0x474686(_0x379ddd._0x25c6cc,_0x379ddd._0x43b1a4,0x5dc,0x693))return _0x2659dc;function _0x47cad7(_0x267e04,_0x46c80c,_0x3eaf95,_0x556e48){return _0x5276b1(_0x267e04,_0x46c80c-_0x5e9f64._0x10b4c0,_0x3eaf95-0x11c,_0x46c80c-_0x5e9f64._0xa5dc34);}function _0x474686(_0x1a0e49,_0x229611,_0xd18674,_0x4b09cb){return _0x5276b1(_0x4b09cb,_0x229611-_0x384f92._0x490d5b,_0xd18674-0x1de,_0x229611-0x654);}const _0x3aff20=_0x2659dc[_0x474686(0x656,_0x379ddd._0x40da5c,_0x379ddd._0x1077b7,_0x379ddd._0xd7c27a)](_0x4e8f71=>{const _0x18058d={_0x28feeb:0x168,_0x256574:0x391};function _0x1c38b1(_0x1870a3,_0x1d57f7,_0x543b29,_0x4ae884){return _0x474686(_0x1870a3-_0x18058d._0x28feeb,_0x1d57f7- -_0x18058d._0x256574,_0x543b29-0x1e3,_0x543b29);}function _0x555896(_0x22be86,_0x199f59,_0x3ec3cf,_0x3deb2b){return _0x47cad7(_0x22be86,_0x3ec3cf-_0x20c2fe._0x21db34,_0x3ec3cf-_0x20c2fe._0x51c5f7,_0x3deb2b-0x171);}return typeof _0x4e8f71===_0x1c38b1(_0x40dfd7._0x50aae5,_0x40dfd7._0x5c61c9,0x278,0x299)&&_0x4e8f71!==null&&_0x4e8f71[_0x555896(0x733,_0x40dfd7._0x546d86,_0x40dfd7._0x2ec9bb,_0x40dfd7._0x196370)]===_0x1c38b1(_0x40dfd7._0x1688ec,0x34e,_0x40dfd7._0x492e85,_0x40dfd7._0x559e60);})[_0x47cad7(_0x379ddd._0x31aff1,0x5b8,_0x379ddd._0x4dd057,0x56d)](_0xaa494c=>_0xaa494c[_0x474686(0x685,0x6df,0x5f9,0x698)])[_0x474686(0x73d,0x68e,0x5f3,_0x379ddd._0x509739)]('\x0a\x0a')[_0x474686(0x492,_0x379ddd._0x163fe1,0x550,_0x379ddd._0x132f1b)]();return _0x3aff20['length']>0x0?_0x3aff20:_0x474686(_0x379ddd._0x562858,_0x379ddd._0x2638dd,0x5dc,0x5f2);}function getToolResultImages(_0x3ac45e){const _0x36fa47={_0x37b027:0x55,_0x840930:0xab,_0x2cc0a5:0x5c,_0x37f101:0x147,_0x8dae6e:0x135,_0x302913:0x262,_0x4af780:0x1e2,_0x5c3f79:0x1f9},_0x5957c0={_0x5a8581:0x155},_0x1b3fd8={_0x2444c3:0x1c4,_0x116be7:0xf5,_0x20c9cf:0x112};function _0x4e2fa8(_0x323e30,_0x5263cb,_0x256b53,_0x20df44){return _0x5276b1(_0x256b53,_0x5263cb-_0x1b3fd8._0x2444c3,_0x256b53-_0x1b3fd8._0x116be7,_0x5263cb- -_0x1b3fd8._0x20c9cf);}function _0x2e90db(_0x101be2,_0x5103e1,_0x305eda,_0x3a9f9c){return _0x54ac71(_0x101be2-_0x5957c0._0x5a8581,_0x3a9f9c,_0x305eda- -0x2eb,_0x3a9f9c-0x8);}return Array[_0x2e90db(-_0x36fa47._0x37b027,_0x36fa47._0x840930,_0x36fa47._0x2cc0a5,_0x36fa47._0x37f101)](_0x3ac45e)?_0x3ac45e[_0x2e90db(_0x36fa47._0x8dae6e,_0x36fa47._0x302913,_0x36fa47._0x4af780,_0x36fa47._0x5c3f79)](isImageToolResultBlock):[];}function parseToolInput2(_0xfcf19f){const _0x176cac={_0x2adc88:0x40b,_0x48d4e1:0x3e6,_0x195c9b:0x2f6},_0x42f8e5={_0x50c17c:0xa0,_0x501b0d:0xcf},_0x3bdd34={_0x338a3a:0x10f};if(_0xfcf19f[_0x2ceb17(0x464,0x4d9,_0x176cac._0x2adc88,0x4e4)]===0x0)return{};function _0x2ceb17(_0x36eb71,_0x2860db,_0x229f6a,_0x13ac46){return _0x54ac71(_0x36eb71-_0x3bdd34._0x338a3a,_0x36eb71,_0x2860db- -0x5,_0x13ac46-0xdc);}function _0x1836bc(_0xe8d206,_0x5503f1,_0x10c5eb,_0x409a8b){return _0x5276b1(_0x409a8b,_0x5503f1-_0x42f8e5._0x50c17c,_0x10c5eb-_0x42f8e5._0x501b0d,_0x5503f1-0x29c);}try{return JSON[_0x2ceb17(0x3f9,_0x176cac._0x48d4e1,0x43b,_0x176cac._0x195c9b)](_0xfcf19f);}catch{return _0xfcf19f;}}function isResponsesReasoningItem(_0x28a453){const _0x9b7a2f={_0x4291d2:0x415,_0x1da2e8:0x2d7,_0x3088a7:0x2f4,_0x306370:0x27b,_0x5be35f:0xf},_0x2a3668={_0x2d55f0:0x98,_0x3f1507:0x299},_0x3c5708={_0x5c00f6:0xf3,_0x3f3488:0x77};function _0x2f723e(_0x1a08d7,_0x24ecd6,_0x307d90,_0x363b7f){return _0x5276b1(_0x363b7f,_0x24ecd6-_0x3c5708._0x5c00f6,_0x307d90-0x6a,_0x1a08d7-_0x3c5708._0x3f3488);}function _0x48ce4d(_0x1c9a1b,_0x4a91ff,_0x17cf9f,_0x2c8acc){return _0x5276b1(_0x2c8acc,_0x4a91ff-0x6b,_0x17cf9f-_0x2a3668._0x2d55f0,_0x17cf9f-_0x2a3668._0x3f1507);}return typeof _0x28a453===_0x48ce4d(0x240,0x2db,0x318,0x3ac)&&_0x28a453!==null&&_0x48ce4d(_0x9b7a2f._0x4291d2,_0x9b7a2f._0x1da2e8,0x331,0x3ea)in _0x28a453&&_0x28a453[_0x48ce4d(_0x9b7a2f._0x3088a7,0x36d,0x331,_0x9b7a2f._0x306370)]===_0x2f723e(0x6e,0xdc,-_0x9b7a2f._0x5be35f,0x49);}function isResponsesMessageItem(_0x18a1bb){const _0x3a05bd={_0x1b501c:0x33e,_0x5f28ff:0x271,_0x892801:0x357,_0x5900c0:0x407,_0x20809c:0x1f7},_0x1f51b0={_0x289973:0x140},_0x1400b1={_0x2c4f1a:0x74,_0x5cbb70:0x35e,_0x38f5bc:0xe9};function _0x2dd7aa(_0x5d1f82,_0x5196b8,_0x27f7d1,_0x378740){return _0x54ac71(_0x5d1f82-_0x1400b1._0x2c4f1a,_0x5196b8,_0x378740- -_0x1400b1._0x5cbb70,_0x378740-_0x1400b1._0x38f5bc);}function _0x4bffb8(_0x2e1816,_0x1beb4a,_0x3273d1,_0xed6f37){return _0x5276b1(_0x2e1816,_0x1beb4a-0x199,_0x3273d1-_0x1f51b0._0x289973,_0x1beb4a-0x2bf);}return typeof _0x18a1bb===_0x4bffb8(0x424,_0x3a05bd._0x1b501c,0x377,_0x3a05bd._0x5f28ff)&&_0x18a1bb!==null&&_0x4bffb8(0x3cd,_0x3a05bd._0x892801,_0x3a05bd._0x5900c0,0x2d7)in _0x18a1bb&&_0x18a1bb[_0x2dd7aa(0x111,_0x3a05bd._0x20809c,0x119,0x137)]==='message';}function isResponsesFunctionCallItem(_0x43191a){const _0x21ec6a={_0x8ae493:0x30c,_0xc4807b:0x2f0,_0x51163a:0x38c},_0xa2e0e8={_0x1f669a:0x1da,_0x15ea6c:0x71};function _0x5d0cfc(_0x4a36cf,_0x153680,_0x1e9769,_0x22671f){return _0x54ac71(_0x4a36cf-0x2b,_0x153680,_0x4a36cf- -_0xa2e0e8._0x1f669a,_0x22671f-_0xa2e0e8._0x15ea6c);}return typeof _0x43191a==='object'&&_0x43191a!==null&&_0x5d0cfc(0x2bb,_0x21ec6a._0x8ae493,_0x21ec6a._0xc4807b,_0x21ec6a._0x51163a)in _0x43191a&&_0x43191a['type']==='function_call';}function createContentBlocks(_0x264a8b,_0x2d1d5a,_0x53c92c){const _0x146b57={_0x585087:0x3f1,_0x483f03:0x507,_0x153bd6:0x4a4,_0x47fba6:0x3e9,_0x33ee81:0x359,_0x43a344:0x40c,_0xd22a63:0x2ab,_0x29d1d0:0x2a1,_0x540691:0x37a,_0x5330d4:0x444,_0x40412c:0x3fb,_0x2063da:0x360,_0x188813:0x446,_0x25c93e:0x52c,_0x3ea9f5:0x44e,_0x4e468d:0x42e,_0x3dde2:0x325,_0x41e650:0x43e,_0x1c22ae:0x4c9,_0x99c5ee:0x3c8,_0x43790e:0x345,_0x4f13c0:0x2aa,_0x2f95ba:0x302,_0xac3089:0x28c,_0x1f2fa0:0x232,_0x18a42d:0x2db,_0x530021:0x538,_0xdb52a5:0x542,_0x47c4be:0x495,_0x34aa86:0x48c,_0x5490f1:0x304,_0x4f0edf:0x47c,_0x1f7442:0x490,_0x5f21c9:0x3a0,_0x4815c4:0x438,_0x48d6ef:0x2c7},_0x33db22={_0x2161df:0x461},_0x1efaa1={_0x476ac7:0x117};function _0x4448f2(_0x21ae5b,_0x3b12c9,_0x3d1eaf,_0x23650e){return _0x5276b1(_0x3b12c9,_0x3b12c9-0x15a,_0x3d1eaf-_0x1efaa1._0x476ac7,_0x23650e-0x3c3);}const _0x22cfa8=[];function _0x1de24c(_0x1d6266,_0x429f78,_0x3a3f8e,_0x13d6d8){return _0x5276b1(_0x1d6266,_0x429f78-0x56,_0x3a3f8e-0x14c,_0x13d6d8-_0x33db22._0x2161df);}_0x53c92c&&_0x53c92c[_0x4448f2(_0x146b57._0x585087,0x487,_0x146b57._0x483f03,_0x146b57._0x153bd6)]>0x0&&_0x22cfa8[_0x4448f2(0x4e3,_0x146b57._0x47fba6,_0x146b57._0x33ee81,_0x146b57._0x43a344)]({'type':_0x4448f2(0x3ff,_0x146b57._0xd22a63,_0x146b57._0x29d1d0,_0x146b57._0x540691),'summary':[],'text':_0x53c92c});_0x264a8b[_0x4448f2(0x412,_0x146b57._0x5330d4,_0x146b57._0x40412c,0x4a4)]>0x0&&_0x22cfa8[_0x4448f2(0x43f,0x479,_0x146b57._0x2063da,0x40c)]({'type':_0x4448f2(0x523,_0x146b57._0x188813,_0x146b57._0x25c93e,_0x146b57._0x3ea9f5),'text':_0x264a8b});for(const _0x4571f6 of _0x2d1d5a){if(_0x4571f6['id'][_0x1de24c(0x449,_0x146b57._0x4e468d,_0x146b57._0x3dde2,0x379)]()[_0x4448f2(_0x146b57._0x41e650,_0x146b57._0x1c22ae,0x447,0x4a4)]===0x0||_0x4571f6[_0x4448f2(_0x146b57._0x99c5ee,0x433,0x2f9,_0x146b57._0x43790e)][_0x4448f2(0x216,_0x146b57._0x4f13c0,0x3e4,_0x146b57._0x2f95ba)][_0x4448f2(_0x146b57._0xac3089,_0x146b57._0x1f2fa0,0x3cd,_0x146b57._0x18a42d)]()[_0x1de24c(_0x146b57._0x530021,0x59b,0x608,_0x146b57._0xdb52a5)]===0x0)continue;_0x22cfa8[_0x1de24c(0x54d,_0x146b57._0x47c4be,0x3ce,0x4aa)]({'type':_0x1de24c(_0x146b57._0x34aa86,_0x146b57._0x5490f1,_0x146b57._0x4f0edf,0x3f3),'id':_0x4571f6['id'],'name':_0x4571f6['function'][_0x1de24c(_0x146b57._0x1f7442,0x485,0x320,_0x146b57._0x5f21c9)],'input':parseToolInput2(_0x4571f6[_0x4448f2(_0x146b57._0x4815c4,_0x146b57._0x48d6ef,0x31d,_0x146b57._0x43790e)][_0x4448f2(0x242,0x24f,0x38e,0x2e0)])});}return _0x22cfa8;}function createUsage(_0x7ebe4c){const _0x2478bb={_0x1ac679:0x6bb,_0x2d8281:0x26,_0x2a9fe4:0x16,_0x2a714e:0xf6,_0x1ec3c6:0x512,_0x66661c:0x5cf,_0x5c3ab8:0x5bb,_0x168079:0x21,_0x610898:0x11c,_0x446534:0x8c,_0x2a78b6:0x4b4,_0x132b37:0x453,_0x3bd406:0x59b},_0x296ac3={_0x4757cc:0xb3,_0x554070:0x32,_0x3b0ea9:0x5e8},_0x297458={_0x374858:0x386};function _0x5ba236(_0x35cfa0,_0x3ccf5d,_0x3fcaa9,_0x151411){return _0x54ac71(_0x35cfa0-0x16b,_0x151411,_0x35cfa0- -_0x297458._0x374858,_0x151411-0x15d);}function _0x367c5c(_0x1cd9d4,_0x58d686,_0x2720e8,_0x54f168){return _0x5276b1(_0x54f168,_0x58d686-_0x296ac3._0x4757cc,_0x2720e8-_0x296ac3._0x554070,_0x58d686-_0x296ac3._0x3b0ea9);}return{'inputTokens':_0x7ebe4c?.[_0x367c5c(_0x2478bb._0x1ac679,0x5f0,0x6df,0x626)]??0x0,'outputTokens':_0x7ebe4c?.[_0x5ba236(_0x2478bb._0x2d8281,-_0x2478bb._0x2a9fe4,-0x25,_0x2478bb._0x2a714e)]??0x0,..._0x7ebe4c?.[_0x367c5c(_0x2478bb._0x1ec3c6,_0x2478bb._0x66661c,0x505,_0x2478bb._0x5c3ab8)]?.[_0x5ba236(-0x6f,-_0x2478bb._0x168079,-_0x2478bb._0x610898,-_0x2478bb._0x446534)]!==void 0x0?{'reasoningTokens':_0x7ebe4c[_0x367c5c(0x64b,0x5cf,0x574,0x66d)][_0x367c5c(_0x2478bb._0x2a78b6,0x502,_0x2478bb._0x132b37,_0x2478bb._0x3bd406)]}:{}};}function resolveReasoningVisibility2(_0x52b724){const _0x2dae35={_0x22b84f:0x12c,_0x2c7811:0x9d,_0x3ee133:0x1fd,_0x3278c5:0x11a,_0x5a1311:0x9d},_0xadaaef={_0x2018b0:0xe5,_0x2a0c52:0x50e},_0x1b3379={_0x1ab578:0x3ef};function _0x3632b2(_0x18b96a,_0x394b3f,_0x4875c9,_0x5ba5c9){return _0x54ac71(_0x18b96a-0xe5,_0x5ba5c9,_0x4875c9- -_0x1b3379._0x1ab578,_0x5ba5c9-0xbf);}function _0x47681a(_0x1597f6,_0x23553b,_0x15225c,_0x469b1b){return _0x54ac71(_0x1597f6-_0xadaaef._0x2018b0,_0x23553b,_0x469b1b- -_0xadaaef._0x2a0c52,_0x469b1b-0xae);}return _0x52b724[_0x47681a(-_0x2dae35._0x22b84f,-_0x2dae35._0x2c7811,-_0x2dae35._0x3ee133,-_0x2dae35._0x3278c5)]?.[_0x3632b2(-_0x2dae35._0x5a1311,0x7e,0x4a,0xbc)]??'user-visible';}function isUserVisibleReasoning(_0x41df5c){const _0x5a363e={_0x2ea08f:0x304,_0x4e7811:0x44c},_0x2f2205={_0x3546e7:0x91,_0x363ac7:0x3cf};function _0xd03fe6(_0x382b49,_0x5f39ee,_0x4e7185,_0x33aa2b){return _0x5276b1(_0x382b49,_0x5f39ee-0x11,_0x4e7185-_0x2f2205._0x3546e7,_0x33aa2b-_0x2f2205._0x363ac7);}return resolveOpenAiReasoningConfig(_0x41df5c[_0xd03fe6(0x3ea,_0x5a363e._0x2ea08f,_0x5a363e._0x4e7811,0x3c6)])!==void 0x0&&resolveReasoningVisibility2(_0x41df5c)==='user-visible';}function createChatRequestBody(_0x34c993,_0x38daf4){const _0x31216b={_0xd98ea:0x104,_0x5c7528:0x2ca,_0x163814:0x17b,_0x548748:0x287,_0x492007:0x224,_0x57c63d:0xb5,_0x1a8ed1:0x158,_0x4d4ee7:0x219,_0x394c9f:0x1dc,_0x493a53:0x1d0,_0x4b3610:0x1d7,_0x5718f3:0x1b1,_0x189671:0x21f,_0x8f08ae:0x2e3,_0x475924:0x2f6,_0x35a5b6:0x264,_0x77cf52:0x2da,_0x111fda:0x2bf,_0x21d1c0:0x320,_0x271b81:0x20f,_0x29f323:0xf3,_0x2ffa44:0xd3,_0x833d4b:0x172,_0x4a1be5:0x239,_0x369e55:0xab,_0x1fa407:0x14c,_0x50e2fb:0x1ec,_0x4355d7:0x22b,_0x43feb0:0x194,_0x444b28:0x176,_0x56d39b:0x182,_0x59aa93:0x16b,_0x1c1350:0x304,_0x493379:0x113,_0x4d87d6:0x77,_0x5f4f6d:0x1d8,_0xd85d41:0x1dd,_0x5c515b:0x1f5,_0xaac323:0xd3,_0x2fa792:0x147,_0x50e0b1:0x134,_0x59dead:0x2eb,_0xac1066:0x182,_0x594472:0x31,_0x1f075d:0xbf,_0x130811:0x2e2,_0x3db5a1:0x2cf,_0x52bb42:0x2ef,_0x3babd3:0x1ff,_0x6eaebd:0x1ab,_0x45b8e0:0x238,_0x5d9c3d:0x257,_0x5da349:0x1e7,_0x2856ed:0xce,_0x1808e3:0x1a0,_0x37e3ef:0x18b,_0x33e5ae:0x151,_0x191335:0xe2,_0x399790:0x1d3,_0x234e76:0x32b,_0x4fe2f0:0x5e,_0x409e6a:0xc0,_0x35cb38:0x95,_0x45021e:0x23e,_0x167db8:0x1d9,_0x108de5:0x280,_0x1a3224:0x109,_0x436690:0x26d,_0x12e243:0x1fd,_0x3ca63c:0x26e,_0x342d56:0xf7,_0xddf14:0x148,_0x4f1ef3:0x85,_0x309d9b:0x1f6,_0x5c70fc:0xf6,_0x5e92ae:0xe7},_0x2fa8fd={_0x5d6842:0x39,_0x140dd1:0x1ae,_0x175b13:0x18e},_0x2fa1fc={_0x4e6381:0x12a,_0x59300f:0x12b,_0x540dba:0x144,_0x4f9876:0x4f,_0x3534f8:0xec,_0x4f5efe:0x21,_0x2e6f16:0x9f,_0x1c355f:0xfb,_0x5af82d:0x1ab,_0xa0de78:0xcc,_0x59b900:0x68,_0x559d6b:0x54,_0x32a467:0x262,_0x30b978:0xaa,_0x474c70:0x11b,_0x429f1c:0x209,_0x208396:0x1db,_0x330a7d:0xc3,_0x22cc79:0x55,_0x54163c:0x10d,_0x3678a3:0x103,_0x429cf2:0x197,_0x55256b:0x7c,_0x341b4c:0x91,_0x150402:0x1b1,_0x2c5e83:0xea,_0x2becda:0x3e,_0x1de8fc:0x18a,_0x53eb67:0x1ee,_0x599b2f:0xa7,_0x772ee9:0x1a6,_0x3f448f:0xf4,_0x33f374:0x54,_0x217c7d:0xbf,_0x30c247:0xb1,_0x1aa782:0x1e3,_0x2c54e9:0x93},_0xe00103={_0x43466d:0x145},_0x363400={_0x30422e:0x6f,_0x5c5b92:0x12f},_0x12b8ee=[],_0x4a5bbf=stringifySystem(_0x34c993['system']);_0x4a5bbf['length']>0x0&&_0x12b8ee[_0x1e2a41(0x26e,_0x31216b._0xd98ea,0x1d7,_0x31216b._0x5c7528)]({'role':_0x1e2a41(_0x31216b._0x163814,_0x31216b._0x548748,_0x31216b._0x492007,0x1de),'content':_0x4a5bbf});function _0x342ac6(_0x3bcded,_0xbad6e8,_0x3a98b8,_0x32749d){return _0x54ac71(_0x3bcded-_0x363400._0x30422e,_0xbad6e8,_0x3bcded- -0x269,_0x32749d-_0x363400._0x5c5b92);}for(const _0x59e54d of _0x34c993[_0x342ac6(0x187,0xb6,_0x31216b._0x57c63d,0x216)]){const _0x16ab59=[],_0x584c32=[],_0x394d4e=[],_0x3b88c8=()=>{const _0x1c01ed={_0x1dded8:0xd4};if(_0x59e54d['role']===_0x243e69(_0x2fa1fc._0x4e6381,0xd1,_0x2fa1fc._0x59300f,0x119)){if(_0x16ab59[_0x312b51(-0xcf,0x5,-0x54,-0x118)]===0x0&&_0x584c32[_0x243e69(0x19b,0x218,_0x2fa1fc._0x540dba,0x196)]===0x0)return;_0x12b8ee[_0x312b51(-_0x2fa1fc._0x4f9876,-0x103,-_0x2fa1fc._0x3534f8,-_0x2fa1fc._0x4f5efe)]({'role':'assistant','content':_0x16ab59['length']>0x0?_0x16ab59[_0x312b51(-0x2f,-_0x2fa1fc._0x2e6f16,-_0x2fa1fc._0x1c355f,-_0x2fa1fc._0x5af82d)]('\x0a\x0a'):null,..._0x584c32[_0x312b51(-_0x2fa1fc._0xa0de78,_0x2fa1fc._0x59b900,-_0x2fa1fc._0x559d6b,0x5c)]>0x0?{'tool_calls':_0x584c32[_0x312b51(-_0x2fa1fc._0x32a467,-0x20b,-0x1a2,-0x104)](0x0)}:{}}),_0x16ab59[_0x312b51(-_0x2fa1fc._0x30b978,0x63,-_0x2fa1fc._0x559d6b,-0x110)]=0x0;return;}function _0x243e69(_0x3b3650,_0x3b410c,_0x2eb765,_0x57030e){return _0x1e2a41(_0x3b410c,_0x3b410c-0xc2,_0x3b3650- -_0x1c01ed._0x1dded8,_0x57030e-0x152);}if(_0x59e54d['role']===_0x243e69(_0x2fa1fc._0x474c70,_0x2fa1fc._0x429f1c,0x167,_0x2fa1fc._0x208396)){if(_0x394d4e[_0x243e69(0x19b,_0x2fa1fc._0x330a7d,0x12b,0x1b5)]===0x0)return;const _0x745ad5=_0x394d4e[_0x312b51(0x5e,0x70,-_0x2fa1fc._0x22cc79,-_0x2fa1fc._0x54163c)](_0x36163e=>_0x36163e[_0x243e69(0x152,0xd8,0x70,0x1b7)]==='image_url');_0x12b8ee[_0x243e69(_0x2fa1fc._0x3678a3,_0x2fa1fc._0x429cf2,_0x2fa1fc._0x55256b,0xe)]({'role':_0x312b51(-_0x2fa1fc._0x341b4c,-_0x2fa1fc._0x150402,-0xd4,-0x119),'content':_0x745ad5?_0x394d4e['splice'](0x0):_0x394d4e[_0x243e69(0x4d,_0x2fa1fc._0x2c5e83,-_0x2fa1fc._0x2becda,0x50)](0x0)[_0x243e69(_0x2fa1fc._0x1de8fc,0x271,_0x2fa1fc._0x53eb67,0x1d3)](_0x38a242=>_0x38a242[_0x243e69(0x152,0xce,0x1b8,0x21e)]==='text')[_0x243e69(_0x2fa1fc._0x599b2f,-0x9,0xd1,0x12d)](_0x1738b6=>_0x1738b6[_0x312b51(-0x34,0x2b,-0xaa,-0x139)])[_0x312b51(-_0x2fa1fc._0x772ee9,-0xb9,-0xfb,-0xc)]('\x0a\x0a')});return;}if(_0x16ab59[_0x312b51(-_0x2fa1fc._0x3f448f,0x83,-_0x2fa1fc._0x33f374,0x71)]===0x0)return;_0x12b8ee[_0x312b51(-_0x2fa1fc._0x217c7d,-_0x2fa1fc._0x30c247,-_0x2fa1fc._0x3534f8,-_0x2fa1fc._0x150402)]({'role':_0x59e54d['role'],'content':_0x16ab59[_0x243e69(_0x2fa1fc._0x3f448f,0x162,0x170,_0x2fa1fc._0x1aa782)]('\x0a\x0a')});function _0x312b51(_0x1be009,_0x4d5b65,_0x4ef25a,_0x3f4796){return _0x342ac6(_0x4ef25a- -0x2c9,_0x1be009,_0x4ef25a-0x1f2,_0x3f4796-_0xe00103._0x43466d);}_0x16ab59[_0x312b51(0x80,-0x13,-0x54,-_0x2fa1fc._0x2c54e9)]=0x0;};for(const _0x296407 of normalizeContent(_0x59e54d[_0x342ac6(0x243,0x17b,0x330,0x23a)])){if(_0x296407['type']===_0x1e2a41(_0x31216b._0x1a8ed1,0x256,_0x31216b._0x4d4ee7,0x21a)){_0x59e54d['role']===_0x1e2a41(_0x31216b._0x394c9f,0x229,0x1ef,0x213)?_0x394d4e[_0x1e2a41(0x285,_0x31216b._0x493a53,_0x31216b._0x4b3610,_0x31216b._0x5718f3)]({'type':_0x342ac6(_0x31216b._0x189671,0x172,0x269,0x2e3),'text':_0x296407[_0x1e2a41(_0x31216b._0x8f08ae,_0x31216b._0x475924,0x219,0x1da)]}):_0x16ab59[_0x1e2a41(0x167,0x204,0x1d7,_0x31216b._0x35a5b6)](_0x296407['text']);continue;}if(_0x59e54d['role']===_0x342ac6(0x1f5,0x1af,0x1fe,_0x31216b._0x77cf52)&&_0x296407[_0x342ac6(0x22c,_0x31216b._0x111fda,0x1c1,_0x31216b._0x21d1c0)]==='image'){_0x394d4e[_0x1e2a41(_0x31216b._0x271b81,0x27a,0x1d7,0x231)]({'type':_0x1e2a41(0x1e4,_0x31216b._0x29f323,0x160,0x20f),'image_url':{'url':_0x342ac6(0x167,_0x31216b._0x2ffa44,0x1ea,_0x31216b._0x833d4b)+_0x296407['source'][_0x342ac6(0x220,0x237,_0x31216b._0x4a1be5,0x20e)]+_0x1e2a41(0x13,_0x31216b._0x369e55,0xd4,_0x31216b._0x1fa407)+_0x296407[_0x1e2a41(_0x31216b._0x50e2fb,0x266,_0x31216b._0x4355d7,_0x31216b._0x43feb0)][_0x1e2a41(_0x31216b._0x444b28,-0x3d,0xb3,_0x31216b._0x56d39b)]}});continue;}if(_0x296407[_0x1e2a41(_0x31216b._0x59aa93,_0x31216b._0x1c1350,0x226,0x1cd)]===_0x342ac6(0x126,_0x31216b._0x493379,_0x31216b._0x4d87d6,_0x31216b._0x5f4f6d)){_0x584c32[_0x342ac6(_0x31216b._0xd85d41,_0x31216b._0x5c515b,0x1ee,0x1de)]({'id':_0x296407['id'],'type':'function','function':{'name':_0x296407[_0x342ac6(_0x31216b._0xaac323,0x81,_0x31216b._0x2fa792,_0x31216b._0x50e0b1)],'arguments':JSON['stringify'](_0x296407['input']??{})}});continue;}if(_0x296407[_0x1e2a41(_0x31216b._0x59dead,_0x31216b._0x163814,0x226,0x209)]!=='tool_result')continue;_0x3b88c8(),_0x12b8ee['push']({'role':_0x342ac6(0xce,_0x31216b._0xac1066,_0x31216b._0x594472,_0x31216b._0x1f075d),'content':getToolResultText(_0x296407[_0x342ac6(0x243,0x1bb,0x2a0,0x2ec)]),'tool_call_id':_0x296407[_0x342ac6(0x24a,0x1ce,_0x31216b._0x130811,0x2e0)]});const _0xaa08ce=getToolResultImages(_0x296407[_0x1e2a41(_0x31216b._0x3db5a1,_0x31216b._0x52bb42,0x23d,_0x31216b._0x3babd3)]);_0xaa08ce[_0x342ac6(0x275,_0x31216b._0x6eaebd,_0x31216b._0x4a1be5,0x2d4)]>0x0&&_0x12b8ee[_0x1e2a41(0x281,0xfb,0x1d7,0x103)]({'role':_0x1e2a41(0x131,_0x31216b._0x45b8e0,0x1ef,_0x31216b._0x5d9c3d),'content':[{'type':'text','text':_0x342ac6(_0x31216b._0x5da349,0x166,0x186,_0x31216b._0x4b3610)+_0x296407['tool_use_id']+'.'},..._0xaa08ce[_0x342ac6(0x181,0xb7,_0x31216b._0x2856ed,_0x31216b._0x1808e3)](_0x48c787=>({'type':_0x342ac6(0x166,0x1a6,0x170,0x173),'image_url':{'url':_0x342ac6(0x167,0xf7,0xac,0x99)+_0x48c787[_0x342ac6(0x231,0x19e,0x210,0x260)]['media_type']+_0x1e2a41(0x144,0x9a,0xd4,0x26)+_0x48c787[_0x342ac6(0x231,0x206,0x2ad,0x277)][_0x342ac6(0xb9,0x90,0x82,-0x21)]}}))]});}_0x3b88c8();}const _0x2e1778=resolveOpenAiReasoningConfig(_0x34c993[_0x342ac6(_0x31216b._0x37e3ef,0x23e,_0x31216b._0x33e5ae,_0x31216b._0x191335)]);function _0x1e2a41(_0x1ce941,_0x3a216d,_0x44b1ed,_0x5340d5){return _0x5276b1(_0x1ce941,_0x3a216d-_0x2fa8fd._0x5d6842,_0x44b1ed-_0x2fa8fd._0x140dd1,_0x44b1ed-_0x2fa8fd._0x175b13);}return{'model':_0x34c993[_0x1e2a41(_0x31216b._0x399790,_0x31216b._0x234e76,0x276,0x2db)],'messages':_0x12b8ee,'stream':_0x38daf4,..._0x34c993[_0x1e2a41(_0x31216b._0x4fe2f0,_0x31216b._0x409e6a,_0x31216b._0x35cb38,0x11f)]!==void 0x0?_0x2e1778?{'max_completion_tokens':_0x34c993['maxTokens']}:{'max_tokens':_0x34c993['maxTokens']}:{},..._0x2e1778?.[_0x1e2a41(0x1ea,_0x31216b._0x45021e,0x1f4,_0x31216b._0x167db8)]?{'reasoning_effort':_0x2e1778[_0x342ac6(0x1fa,0x107,_0x31216b._0x108de5,_0x31216b._0x1a3224)]}:{},...createToolDefinitions(_0x34c993[_0x342ac6(0x198,0x1eb,0x25d,_0x31216b._0x436690)])?{'tools':createToolDefinitions(_0x34c993[_0x1e2a41(_0x31216b._0x12e243,_0x31216b._0x3ca63c,0x192,0x157)])}:{},..._0x34c993['outputFormat']?{'response_format':{'type':_0x342ac6(_0x31216b._0x342d56,0x9,0x181,0x193),'json_schema':{'name':_0x34c993[_0x342ac6(0xba,0x138,0x12a,0x83)]['name']??_0x342ac6(0xc7,_0x31216b._0xddf14,0x128,_0x31216b._0x4f1ef3),'schema':_0x34c993['outputFormat'][_0x1e2a41(_0x31216b._0x309d9b,0x111,0x1e6,_0x31216b._0x5c70fc)],'strict':_0x34c993['outputFormat'][_0x342ac6(0x1c0,_0x31216b._0x5e92ae,0x221,0x280)]??!![]}}}:{}};}function createResponsesRequestBody(_0x4a727e,_0x14f042,_0x13a08c){const _0x5856a7=_0x13a08c?.(_0x4a727e);return{...toOpenAiResponsesRequest(_0x4a727e),..._0x14f042?{'stream':!![]}:{},..._0x5856a7!==void 0x0?{'prompt_cache_key':_0x5856a7}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x55c593,_0x31abbb={}){const _0x2ed95c={_0x35c228:0x43c,_0x2ddc8f:0x464,_0x2cb146:0x339,_0x1f47da:0x402,_0x210e9c:0x391,_0x3c2b1d:0x620,_0xaddd4a:0x4bb,_0x5c5645:0x52e,_0x523008:0x5f1},_0x407a4e={_0x41a958:0x4b,_0x230e92:0xc1,_0x55b656:0x48},_0x42ea39={_0x242568:0xf0,_0x2d1e91:0xd4},_0x297e3a=toOpenAiResponsesRequest(_0x55c593);function _0x56abd8(_0x39ad6a,_0x2381c6,_0x804f7b,_0x5c6f53){return _0x5276b1(_0x39ad6a,_0x2381c6-_0x42ea39._0x242568,_0x804f7b-_0x42ea39._0x2d1e91,_0x2381c6-0x4c4);}function _0x23f7a2(_0x1c741f,_0x34981d,_0x381b2a,_0x18b883){return _0x54ac71(_0x1c741f-_0x407a4e._0x41a958,_0x34981d,_0x381b2a-_0x407a4e._0x230e92,_0x18b883-_0x407a4e._0x55b656);}return{'type':'response.create',..._0x297e3a,..._0x31abbb['input']?{'input':_0x31abbb[_0x56abd8(_0x2ed95c._0x35c228,_0x2ed95c._0x2ddc8f,0x3b2,0x52f)]}:{},..._0x31abbb['promptCacheKey']!==void 0x0?{'prompt_cache_key':_0x31abbb[_0x23f7a2(0x3ac,_0x2ed95c._0x2cb146,_0x2ed95c._0x1f47da,_0x2ed95c._0x210e9c)]}:{},..._0x31abbb[_0x56abd8(0x594,0x52e,0x471,_0x2ed95c._0x3c2b1d)]?{'previous_response_id':_0x31abbb[_0x56abd8(_0x2ed95c._0xaddd4a,_0x2ed95c._0x5c5645,0x480,_0x2ed95c._0x523008)]}:{},'store':![]};}function normalizeAssistantContent(_0x51b968){const _0x225e37={_0x10de25:0x150,_0x3b8972:0x108,_0x1e77c8:0xf9,_0x5e7372:0x126,_0x212891:0x233,_0x225a27:0x164},_0x113d55={_0x43c097:0x148,_0x1b239e:0x2b,_0x3c011c:0x84,_0x92d506:0xe8,_0xc525ea:0x4d0,_0x22edc0:0x3f8,_0x40471c:0x4ff,_0x128613:0x373,_0x49d4a3:0x464},_0x32300a={_0x2ba15a:0x34d},_0x144b39={_0x43884a:0x37},_0x1ef113={_0x12a299:0xfd,_0x768c01:0x177};function _0x5b2282(_0xe7d194,_0x2bb871,_0xd8bdfa,_0x436c99){return _0x5276b1(_0x2bb871,_0x2bb871-_0x1ef113._0x12a299,_0xd8bdfa-0x133,_0x436c99-_0x1ef113._0x768c01);}function _0x598dac(_0x481520,_0x15c6af,_0x5b5870,_0x323ec4){return _0x54ac71(_0x481520-_0x144b39._0x43884a,_0x323ec4,_0x481520- -0x1cc,_0x323ec4-0x133);}if(typeof _0x51b968===_0x5b2282(0x1ca,0x1ef,_0x225e37._0x10de25,0x141))return _0x51b968;if(!Array[_0x598dac(0x17b,0x269,_0x225e37._0x3b8972,0x198)](_0x51b968))return'';return _0x51b968[_0x5b2282(_0x225e37._0x1e77c8,_0x225e37._0x5e7372,_0x225e37._0x212891,_0x225e37._0x225a27)](_0x4b147e=>{const _0xf3638a={_0x4770ad:0x214};function _0x4bda29(_0x200537,_0x186b54,_0x400380,_0x432b34){return _0x598dac(_0x200537-_0xf3638a._0x4770ad,_0x186b54-0x104,_0x400380-0x1f,_0x432b34);}function _0x58bbc6(_0x24e8c6,_0x2b47d6,_0x49cc92,_0x251e42){return _0x598dac(_0x49cc92- -_0x32300a._0x2ba15a,_0x2b47d6-0x52,_0x49cc92-0x5,_0x24e8c6);}return _0x4b147e[_0x58bbc6(-_0x113d55._0x43c097,-_0x113d55._0x1b239e,-_0x113d55._0x3c011c,-_0x113d55._0x92d506)]===_0x4bda29(_0x113d55._0xc525ea,_0x113d55._0x22edc0,0x40b,_0x113d55._0x40471c)?_0x4b147e['text']:_0x4b147e[_0x4bda29(0x44b,0x3e5,_0x113d55._0x128613,_0x113d55._0x49d4a3)];})['join']('');}function normalizeResponsesMessageContent(_0x2cacd7){const _0x3110b1={_0x2e3b27:0x61b,_0x242449:0x67b},_0x25053c={_0x25cf4d:0x98,_0x88eb69:0x11a,_0x4630e5:0xb,_0x46eb09:0x3c,_0x42aed3:0x8,_0x2bcbc0:0x37,_0x8bc56d:0x12d,_0x4ebcfd:0xb5,_0x2002cf:0xa3,_0xeac1f:0x25,_0x3422c3:0x3,_0x45ba28:0x146,_0x31eb77:0x160,_0x1924ea:0xdc,_0x216ddb:0x3d},_0x28ed62={_0x2ed2ea:0xfb,_0x3c6098:0x1b7},_0x574722={_0x2e44c2:0x1aa};function _0x11819a(_0x4b2eeb,_0x565f29,_0x42c805,_0x2ec432){return _0x5276b1(_0x565f29,_0x565f29-_0x574722._0x2e44c2,_0x42c805-0x9b,_0x4b2eeb-0x641);}if(!Array[_0x5b3892(0x3be,0x32f,0x31b,0x41f)](_0x2cacd7))return'';function _0x5b3892(_0x5071ee,_0x1c31e0,_0x7c1d71,_0x383d9a){return _0x54ac71(_0x5071ee-_0x28ed62._0x2ed2ea,_0x1c31e0,_0x5071ee-0x77,_0x383d9a-_0x28ed62._0x3c6098);}return _0x2cacd7[_0x11819a(0x62e,0x586,_0x3110b1._0x2e3b27,0x68f)](_0x1d0e17=>{const _0x3eb5fb={_0x2451bf:0xf4};function _0x40ea47(_0x21adbc,_0xf3f68,_0x30a0d3,_0x133f90){return _0x11819a(_0x133f90- -0x63f,_0xf3f68,_0x30a0d3-0x5b,_0x133f90-_0x3eb5fb._0x2451bf);}if(!_0x1d0e17||typeof _0x1d0e17!==_0x150ab7(-_0x25053c._0x25cf4d,_0x25053c._0x88eb69,-_0x25053c._0x4630e5,_0x25053c._0x46eb09))return'';const _0xdb984c=_0x1d0e17;if(_0xdb984c[_0x40ea47(-_0x25053c._0x42aed3,0xe1,0x160,0x9a)]===_0x40ea47(-0xd,-_0x25053c._0x2bcbc0,-_0x25053c._0x8bc56d,-_0x25053c._0x4ebcfd)&&typeof _0xdb984c[_0x150ab7(_0x25053c._0x2002cf,_0x25053c._0xeac1f,0xe,0x48)]==='string')return _0xdb984c[_0x150ab7(0xc8,0xa,-_0x25053c._0x3422c3,0x48)];if(_0xdb984c[_0x40ea47(0x7b,_0x25053c._0x45ba28,_0x25053c._0x31eb77,0x9a)]===_0x40ea47(-0x6a,0x53,0x5e,_0x25053c._0x42aed3)&&typeof _0xdb984c[_0x150ab7(-0x72,-0x116,-_0x25053c._0x1924ea,-_0x25053c._0x216ddb)]===_0x40ea47(0x64,-0x60,-0xd8,-0x34))return _0xdb984c['refusal'];function _0x150ab7(_0x3759cd,_0x58945f,_0x526a9c,_0x242dda){return _0x11819a(_0x242dda- -0x684,_0x526a9c,_0x526a9c-0x1cf,_0x242dda-0x190);}return'';})[_0x11819a(_0x3110b1._0x242449,0x724,0x690,0x608)]('');}function extractOpenAiReasoningText(_0x3be837){const _0x4af2be={_0x181227:0x743,_0x3bece9:0x613,_0x1e7e1a:0x5a4,_0xba83cc:0x685,_0x5d7fd3:0xe7,_0x37ef35:0x20d,_0x3357ce:0x5a0,_0x231f79:0x5c2,_0x99b833:0x614,_0x5acad3:0x4ec,_0x457009:0x638},_0x5b4e6b={_0x10a9cb:0x10b},_0x1521a2={_0xcbdbf2:0x141};function _0x33e921(_0xfdb334,_0x5090b5,_0x1455e5,_0x538bc9){return _0x54ac71(_0xfdb334-_0x1521a2._0xcbdbf2,_0x538bc9,_0xfdb334-0x1dd,_0x538bc9-0x1e7);}if(typeof _0x3be837[_0x33e921(0x665,_0x4af2be._0x181227,_0x4af2be._0x3bece9,0x626)]===_0x33e921(_0x4af2be._0x1e7e1a,0x5d4,_0x4af2be._0xba83cc,0x672))return _0x3be837['text'];if(!Array[_0x511565(-0x21d,-_0x4af2be._0x5d7fd3,-0x1a7,-_0x4af2be._0x37ef35)](_0x3be837[_0x33e921(0x689,0x77e,_0x4af2be._0x3357ce,_0x4af2be._0x231f79)]))return'';function _0x511565(_0x340842,_0x4316ea,_0x51f4de,_0x55c1f8){return _0x54ac71(_0x340842-0x1c6,_0x55c1f8,_0x51f4de- -0x4ee,_0x55c1f8-_0x5b4e6b._0x10a9cb);}return _0x3be837['content'][_0x33e921(0x6aa,0x75d,0x75f,_0x4af2be._0x99b833)](_0x27cadd=>_0x27cadd[_0x511565(-0xe8,0x2c,-0x59,-0xc3)]===_0x511565(-0x94,-0xb2,-0xa0,-0x138)&&typeof _0x27cadd[_0x33e921(0x665,0x6ab,0x742,0x687)]===_0x511565(-0x218,-0x218,-0x127,-0x34))[_0x33e921(0x5c7,0x621,_0x4af2be._0x5acad3,_0x4af2be._0x457009)](_0x267912=>_0x267912[_0x33e921(0x665,0x570,0x5a3,0x576)]??'')['join']('');}function createOpenAiReasoningBlock(_0x3c8f03){const _0x3642af={_0x38565e:0x412,_0x77c057:0x6a0,_0x2268cd:0x6a4,_0x2ec742:0x652,_0x254fa0:0x75d,_0x19a6af:0x6b1,_0x33184a:0x6b4,_0x567327:0x75a,_0x250a9f:0x763,_0x401b3c:0x5e5,_0x4a9eac:0x5ca},_0x29dcb6={_0x1ff7f5:0x1ed,_0x43e794:0x24b,_0x582c31:0x144},_0x2f4170={_0x14e5f2:0x107};function _0xe93cc4(_0x5f1b95,_0x3b31b7,_0x1e8927,_0x1d23d0){return _0x54ac71(_0x5f1b95-0x15c,_0x1d23d0,_0x5f1b95-_0x2f4170._0x14e5f2,_0x1d23d0-0x1c8);}function _0x1a0053(_0x3a51fd,_0x1e090a,_0x5bad27,_0x287f79){return _0x54ac71(_0x3a51fd-_0x29dcb6._0x1ff7f5,_0x287f79,_0x1e090a-_0x29dcb6._0x43e794,_0x287f79-_0x29dcb6._0x582c31);}const _0x48e43d=extractOpenAiReasoningText(_0x3c8f03);return{'type':_0xe93cc4(0x4bb,_0x3642af._0x38565e,0x513,0x437),'summary':structuredClone(_0x3c8f03[_0x1a0053(_0x3642af._0x77c057,_0x3642af._0x2268cd,_0x3642af._0x2ec742,_0x3642af._0x254fa0)]??[]),..._0x3c8f03['id']?{'id':_0x3c8f03['id']}:{},..._0x3c8f03[_0x1a0053(_0x3642af._0x19a6af,_0x3642af._0x33184a,0x676,0x6d9)]?{'encryptedContent':_0x3c8f03[_0x1a0053(_0x3642af._0x2ec742,0x6b4,_0x3642af._0x567327,_0x3642af._0x250a9f)]}:{},..._0x48e43d[_0xe93cc4(_0x3642af._0x401b3c,0x571,_0x3642af._0x4a9eac,0x5a8)]>0x0?{'text':_0x48e43d}:{}};}function hasVisibleOpenAiReasoning(_0x5970e9){const _0x30450a={_0x254615:0x30,_0x4adbac:0xac,_0x5b8cf5:0x2c9,_0x37093d:0x2d8,_0x1d2de5:0x9f,_0xe7369c:0x12a,_0x11586f:0x86,_0x360f39:0x1e7,_0x4e6c1a:0x1d7},_0x41b1b3={_0x109985:0x188,_0x67b154:0x2c};function _0x16dd35(_0x36bb9b,_0x1935ed,_0x1b8af9,_0x1a186a){return _0x5276b1(_0x1b8af9,_0x1935ed-0x73,_0x1b8af9-0x1d4,_0x1935ed-0x21d);}function _0x50aa1d(_0x2d038b,_0x3ccf6a,_0x510850,_0x55f404){return _0x5276b1(_0x510850,_0x3ccf6a-_0x41b1b3._0x109985,_0x510850-0xa0,_0x3ccf6a- -_0x41b1b3._0x67b154);}return _0x5970e9[_0x50aa1d(-0x76,_0x30450a._0x254615,-_0x30450a._0x4adbac,-0x37)][_0x16dd35(_0x30450a._0x5b8cf5,0x2fe,_0x30450a._0x37093d,0x2c6)]>0x0||typeof _0x5970e9[_0x50aa1d(_0x30450a._0x1d2de5,0x5f,_0x30450a._0xe7369c,-_0x30450a._0x11586f)]===_0x16dd35(0x229,_0x30450a._0x360f39,0x2b0,_0x30450a._0x4e6c1a);}function parseChatCompletionResponse(_0xffc2){const _0x126308={_0x23b82f:0x157,_0x43afe5:0xa3,_0x4bd1b5:0x32,_0x54937b:0xb0,_0x35f376:0x115,_0x1d81d4:0x11,_0x31df7f:0xaf,_0x1b1a9b:0x143,_0x2985c1:0x15d,_0x80bb52:0x191,_0x3562aa:0x55,_0xd234c5:0x2e,_0x2459dd:0x99,_0x251399:0xa8,_0x6d95ff:0xd1,_0x7743cc:0x147,_0x50df84:0x86,_0x1fe1c0:0x36},_0x2596c8={_0x55e52a:0x397,_0x54c0af:0xcd},_0x42f533={_0x3628bf:0x3d6};function _0x2a070c(_0x4fe837,_0x417339,_0x19f38c,_0x3e7290){return _0x54ac71(_0x4fe837-0x104,_0x19f38c,_0x417339- -_0x42f533._0x3628bf,_0x3e7290-0x175);}const _0x29ac94=[],_0x10247f=[];let _0x5e4087=_0x31dd30(_0x126308._0x23b82f,0xbf,0x11f,_0x126308._0x43afe5);for(const _0x2fa105 of _0xffc2[_0x2a070c(-_0x126308._0x4bd1b5,_0x126308._0x54937b,0x6,0x8)]??[]){const _0x1dd3ac=_0x2fa105['message'],_0x32de61=normalizeAssistantContent(_0x1dd3ac?.[_0x31dd30(0x14b,_0x126308._0x35f376,0xd0,0x92)]);_0x32de61['length']>0x0&&_0x29ac94[_0x31dd30(_0x126308._0x1d81d4,_0x126308._0x31df7f,_0x126308._0x1b1a9b,0x18a)](_0x32de61),_0x1dd3ac?.['tool_calls']&&_0x10247f[_0x31dd30(0x150,0xaf,_0x126308._0x2985c1,_0x126308._0x80bb52)](..._0x1dd3ac[_0x31dd30(_0x126308._0x3562aa,-0x48,_0x126308._0xd234c5,-0x118)]),_0x2fa105['finish_reason']===_0x31dd30(-0x92,-0x48,_0x126308._0x2459dd,-0x7c)&&(_0x5e4087=_0x31dd30(-_0x126308._0x251399,-0x8,0x14,-0xf6));}_0x10247f[_0x31dd30(_0x126308._0x6d95ff,_0x126308._0x7743cc,0x7e,0x129)]>0x0&&(_0x5e4087='tool_use');function _0x31dd30(_0x3f32fd,_0x490eb9,_0x18a158,_0x17f20c){return _0x54ac71(_0x3f32fd-0x1aa,_0x3f32fd,_0x490eb9- -_0x2596c8._0x55e52a,_0x17f20c-_0x2596c8._0x54c0af);}return{'id':_0xffc2['id']??'chatcmpl-'+Date['now'](),'content':createContentBlocks(_0x29ac94[_0x2a070c(0x39,0x61,0x116,-_0x126308._0x50df84)](''),_0x10247f),'stopReason':_0x5e4087,'usage':createUsage(_0xffc2[_0x31dd30(_0x126308._0x1fe1c0,0xb3,0x137,0x153)])};}function parseResponsesResponse(_0x517664,_0x571fce){const _0x3d26f0={_0x4f9dae:0x8f,_0x1b3f5d:0x48,_0x48c1f1:0x303,_0x3da6f9:0x3e8,_0x4c80a6:0x388,_0x1dda80:0x42b,_0x2aa1f5:0x44e,_0x28a162:0x480,_0x5d0a96:0x4de,_0x2e2caf:0x41e,_0x24453e:0x2a0,_0x1130f9:0x27,_0xc8b856:0x1dc,_0x4794b6:0x2b7,_0x1dfc23:0x254,_0x181bed:0x20c,_0x10abaa:0x2d2,_0x1b498e:0x314,_0x44036a:0x21d,_0x19ea14:0x2de,_0x36ddb5:0x6e,_0x5eccb7:0x10c,_0x548e68:0x464,_0x2edb4d:0x3e8,_0x5a3c8b:0xc7,_0x777385:0x100,_0x2e899c:0xa,_0x226a48:0xbe,_0x3636d7:0x3a6,_0x12cbf6:0x144,_0x39b8b3:0x2e8,_0x3fae6b:0x2a0,_0x5b2b27:0x1a7,_0x49afa5:0x175,_0x89fab0:0x1e5,_0x1267d6:0xd4,_0x171a3c:0x10b,_0x32dbb7:0x1b7,_0x4186eb:0x153,_0x455781:0x164,_0x4c215e:0x469,_0x272c13:0x47f,_0x296814:0x563,_0x4d188f:0xfe,_0xbab076:0x4b3,_0x3f46d0:0x368,_0x37fe93:0x3ec,_0x6f1974:0x3cf,_0x3ace8d:0x20d,_0x13bbcf:0x325,_0x3807a4:0x40b,_0xa438b:0x18d,_0xbf1749:0x25a,_0x35cb92:0x179,_0x5947a4:0xa9,_0x5a3550:0x22,_0x1c2380:0x104,_0x508ffa:0x46,_0x489c05:0x348,_0x242e1f:0x3ec,_0x4d8102:0x3d2,_0x96d3f1:0xb7,_0x34f0ee:0x2bf,_0x6c85b3:0x42},_0x2462ce={_0x5c9a28:0xd3},_0x5326ff=[];function _0x270629(_0x435951,_0x219570,_0x3698fe,_0x37e423){return _0x54ac71(_0x435951-0x47,_0x37e423,_0x219570- -0x5e,_0x37e423-0xb6);}for(const _0xe97731 of _0x517664[_0x4c4883(_0x3d26f0._0x4f9dae,-0x7,0x12e,_0x3d26f0._0x1b3f5d)]??[]){if(isResponsesReasoningItem(_0xe97731)){if(isUserVisibleReasoning(_0x571fce)){const _0x4aa232=createOpenAiReasoningBlock(_0xe97731);hasVisibleOpenAiReasoning(_0x4aa232)&&_0x5326ff[_0x270629(_0x3d26f0._0x48c1f1,_0x3d26f0._0x3da6f9,_0x3d26f0._0x4c80a6,0x3c2)](_0x4aa232);}continue;}if(isResponsesMessageItem(_0xe97731)){const _0x134646=normalizeResponsesMessageContent(_0xe97731[_0x270629(_0x3d26f0._0x1dda80,_0x3d26f0._0x2aa1f5,0x540,0x4d7)]);_0x134646[_0x270629(0x555,_0x3d26f0._0x28a162,0x53f,_0x3d26f0._0x5d0a96)]>0x0&&_0x5326ff['push']({'type':'text','text':_0x134646});continue;}if(!isResponsesFunctionCallItem(_0xe97731)||typeof _0xe97731['call_id']!==_0x270629(_0x3d26f0._0x2e2caf,0x369,_0x3d26f0._0x24453e,0x34e)||_0xe97731[_0x4c4883(-0x9,0x112,-_0x3d26f0._0x1130f9,0xab)][_0x270629(_0x3d26f0._0xc8b856,_0x3d26f0._0x4794b6,0x1f2,0x2f0)]()[_0x4c4883(_0x3d26f0._0x1dfc23,0x28c,_0x3d26f0._0x181bed,0x20d)]===0x0||typeof _0xe97731[_0x270629(_0x3d26f0._0x10abaa,0x2de,_0x3d26f0._0x1b498e,0x21d)]!=='string'||_0xe97731[_0x270629(_0x3d26f0._0x44036a,_0x3d26f0._0x19ea14,0x3a6,0x343)][_0x4c4883(_0x3d26f0._0x36ddb5,0xa9,_0x3d26f0._0x5eccb7,0x44)]()[_0x270629(_0x3d26f0._0x548e68,_0x3d26f0._0x28a162,0x472,0x4c3)]===0x0||typeof _0xe97731['arguments']!=='string')continue;_0x5326ff[_0x270629(0x34d,_0x3d26f0._0x2edb4d,0x481,0x435)]({'type':_0x4c4883(_0x3d26f0._0x5a3c8b,_0x3d26f0._0x777385,_0x3d26f0._0x2e899c,_0x3d26f0._0x226a48),'id':_0xe97731['call_id'],'name':_0xe97731['name'],'input':parseToolInput2(_0xe97731[_0x270629(0x354,0x2bc,_0x3d26f0._0x3636d7,0x30f)])});}!_0x5326ff[_0x4c4883(0x1c1,_0x3d26f0._0x12cbf6,0x2c5,0x20c)](_0x58dde8=>_0x58dde8[_0x4c4883(0x172,0x113,0x116,0x1c4)]===_0x270629(0x3f9,0x42a,0x400,0x50a))&&_0x517664[_0x270629(0x1fb,_0x3d26f0._0x39b8b3,_0x3d26f0._0x3fae6b,0x390)]&&_0x5326ff[_0x4c4883(0x18a,0x1d3,_0x3d26f0._0x5b2b27,_0x3d26f0._0x49afa5)]({'type':_0x4c4883(_0x3d26f0._0x89fab0,_0x3d26f0._0x1267d6,_0x3d26f0._0x171a3c,_0x3d26f0._0x32dbb7),'text':_0x517664[_0x4c4883(-0x4c,_0x3d26f0._0x4186eb,_0x3d26f0._0x455781,0x75)]});function _0x4c4883(_0x3d0074,_0x3fecb1,_0x373bf2,_0x1a01ce){return _0x5276b1(_0x3fecb1,_0x3fecb1-_0x2462ce._0x5c9a28,_0x373bf2-0x1c6,_0x1a01ce-0x12c);}return{'id':_0x517664['id'],'content':_0x5326ff,'stopReason':_0x5326ff[_0x270629(_0x3d26f0._0x4c215e,_0x3d26f0._0x272c13,_0x3d26f0._0x296814,0x44d)](_0x5addb0=>_0x5addb0[_0x270629(0x35f,0x437,0x4cf,0x509)]===_0x270629(0x330,0x331,0x31e,0x3d3))?_0x4c4883(0x11c,_0x3d26f0._0x4d188f,0x19,0xbe):_0x270629(0x334,0x3f8,0x44e,_0x3d26f0._0xbab076),'usage':{'inputTokens':_0x517664[_0x270629(_0x3d26f0._0x3f46d0,_0x3d26f0._0x37fe93,0x398,_0x3d26f0._0x6f1974)]?.[_0x4c4883(0x2b0,0x16c,_0x3d26f0._0x3ace8d,0x1f9)]??0x0,'outputTokens':_0x517664[_0x270629(_0x3d26f0._0x13bbcf,_0x3d26f0._0x37fe93,0x319,0x4d1)]?.[_0x270629(0x3be,0x471,0x46f,_0x3d26f0._0x3807a4)]??0x0,..._0x517664[_0x4c4883(0x262,_0x3d26f0._0xa438b,_0x3d26f0._0xbf1749,_0x3d26f0._0x35cb92)]?.[_0x4c4883(0x19,0x41,-0x10,_0x3d26f0._0x5947a4)]?.[_0x4c4883(-_0x3d26f0._0x5a3550,_0x3d26f0._0x1c2380,-0x28,_0x3d26f0._0x508ffa)]!==void 0x0?{'reasoningTokens':_0x517664[_0x270629(_0x3d26f0._0x489c05,_0x3d26f0._0x242e1f,0x31c,_0x3d26f0._0x4d8102)]['output_tokens_details'][_0x4c4883(_0x3d26f0._0x96d3f1,0xd9,0x103,_0x3d26f0._0x508ffa)]}:{}},..._0x517664[_0x270629(0x2d5,0x2bb,_0x3d26f0._0x34f0ee,0x231)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x517664[_0x4c4883(-_0x3d26f0._0x6c85b3,-0x19,0x94,_0x3d26f0._0x1b3f5d)]),'openaiResponsesResponseId':_0x517664['id']}}:{}};}function extractErrorMessage(_0x16955a){const _0x441fbe={_0x40ef2e:0x4c8,_0x3869ed:0x3d5,_0x43be5b:0x496,_0x14dbc2:0x403,_0xf8b3e1:0x2d8,_0x18f918:0x3a6,_0x2d6a6c:0x46e,_0xd4286e:0x46d,_0x219465:0x3f5,_0x580bd8:0x3ff,_0x2fef5e:0x3bc,_0x3fae7d:0x45a,_0x408b04:0x403,_0xa7ad3d:0x430,_0x5454ec:0x265,_0x5baed7:0x437,_0x27dfc5:0x3f3,_0x358f9d:0x22c,_0xa06d4a:0x3a6,_0x4e54c5:0x2b9,_0x2486b0:0x26e,_0xf11ade:0x1eb,_0x1e7bb8:0x2a6},_0x4eafe8={_0x5e229a:0x1a0,_0x167a06:0xdf,_0x4615ba:0xb8};if(_0x16955a['length']===0x0)return'';function _0x7efd66(_0x1550e9,_0x815a2a,_0x1d39a2,_0x650240){return _0x5276b1(_0x1d39a2,_0x815a2a-0x11,_0x1d39a2-0x8b,_0x815a2a-0x3e7);}try{const _0x9eae7a=JSON[_0x7efd66(_0x441fbe._0x40ef2e,_0x441fbe._0x3869ed,0x4b5,0x3fe)](_0x16955a);if(typeof _0x9eae7a[_0x48860d(0x4be,_0x441fbe._0x43be5b,_0x441fbe._0x14dbc2,0x40f)]?.[_0x7efd66(_0x441fbe._0xf8b3e1,_0x441fbe._0x18f918,_0x441fbe._0x2d6a6c,_0x441fbe._0xd4286e)]==='string'&&_0x9eae7a['error'][_0x48860d(0x251,0x30c,0x2dd,0x365)]['trim']()[_0x48860d(_0x441fbe._0x219465,0x401,_0x441fbe._0x580bd8,_0x441fbe._0x2fef5e)]>0x0)return _0x9eae7a[_0x48860d(_0x441fbe._0x3fae7d,0x36d,_0x441fbe._0x408b04,_0x441fbe._0xa7ad3d)]['message'][_0x7efd66(_0x441fbe._0x5454ec,0x2ff,0x22f,0x2e8)]();if(typeof _0x9eae7a[_0x7efd66(_0x441fbe._0x5baed7,0x3a6,0x412,_0x441fbe._0x27dfc5)]===_0x48860d(0x240,0x269,0x2e8,_0x441fbe._0x358f9d)&&_0x9eae7a[_0x7efd66(0x2de,_0x441fbe._0xa06d4a,_0x441fbe._0x4e54c5,0x34d)]['trim']()['length']>0x0)return _0x9eae7a[_0x48860d(_0x441fbe._0x2486b0,_0x441fbe._0xf11ade,0x2dd,0x304)][_0x7efd66(0x3d3,0x2ff,_0x441fbe._0x1e7bb8,0x2b8)]();}catch{return _0x16955a;}function _0x48860d(_0x4e7d61,_0x96d7ae,_0x244b63,_0x46f961){return _0x54ac71(_0x4e7d61-_0x4eafe8._0x5e229a,_0x46f961,_0x244b63- -_0x4eafe8._0x167a06,_0x46f961-_0x4eafe8._0x4615ba);}return _0x16955a;}async function createOpenAiApiError(_0x4ae131){const _0x27361a={_0x49cf3c:0x13c,_0x3c03e7:0x480,_0x580485:0x392,_0x18455d:0x33c,_0x4763b4:0x10,_0x5822f0:0xdc},_0x23614a={_0x23ecb3:0x1a2},_0x3451d3={_0x3705d4:0x396};function _0x14e259(_0x495df0,_0xfdbb44,_0x2a1ab1,_0x2dff92){return _0x5276b1(_0xfdbb44,_0xfdbb44-0x4,_0x2a1ab1-0x24,_0x2dff92-_0x3451d3._0x3705d4);}const _0x54df2b=(await _0x4ae131[_0x5dabcd(-0x7c,0x79,0x62,0x37)]())['trim'](),_0x1559c6=extractErrorMessage(_0x54df2b)||_0x4ae131[_0x5dabcd(0x7b,-0x68,-_0x27361a._0x49cf3c,-0x8)]||_0x14e259(0x44d,0x4e6,_0x27361a._0x3c03e7,0x420)+_0x4ae131[_0x14e259(0x20d,_0x27361a._0x580485,_0x27361a._0x18455d,0x2cc)];function _0x5dabcd(_0x1ee67a,_0x50af34,_0x1f99fc,_0x33751a){return _0x54ac71(_0x1ee67a-_0x23614a._0x23ecb3,_0x1ee67a,_0x50af34- -0x40f,_0x33751a-0x44);}return new OpenAiApiError(_0x4ae131[_0x5dabcd(-_0x27361a._0x4763b4,-_0x27361a._0x5822f0,-0x189,-0x120)],_0x54df2b,_0x1559c6);}function readSseData(_0x3c63ae){const _0x11fe51={_0x2a11e8:0x91,_0x23c01d:0x88,_0x425f9f:0x172,_0x459e9b:0x4d,_0x5f0ec5:0x145,_0x3d019e:0xfc,_0x5ef3ec:0x9f,_0x26fb12:0x11c,_0x26f0bd:0x16e},_0x7503b1={_0xc3895f:0xdd},_0x1f5bfa={_0x5226b6:0x80,_0x4e7822:0x1ea};function _0x58ca29(_0x3258b0,_0x471975,_0x20aa71,_0x2d0f12){return _0x5276b1(_0x2d0f12,_0x471975-_0x1f5bfa._0x5226b6,_0x20aa71-0x152,_0x3258b0-_0x1f5bfa._0x4e7822);}function _0x23f011(_0xa6739c,_0x9e3bb3,_0x52d357,_0x288e09){return _0x54ac71(_0xa6739c-_0x7503b1._0xc3895f,_0xa6739c,_0x9e3bb3- -0x33b,_0x288e09-0x62);}return _0x3c63ae[_0x23f011(_0x11fe51._0x2a11e8,_0x11fe51._0x23c01d,0x128,_0x11fe51._0x425f9f)]('\x0a')[_0x58ca29(0x2ba,0x39b,0x261,0x1d8)](_0x7877=>_0x7877[_0x58ca29(0x227,0x2b6,0x1d5,0x147)](_0x23f011(0x24,0x95,0x187,0x110)))[_0x23f011(_0x11fe51._0x459e9b,0xaf,0x76,0xac)](_0x403b18=>_0x403b18['slice'](0x5)[_0x58ca29(0xfc,0x146,0x15d,0x1d6)]())[_0x23f011(_0x11fe51._0x5f0ec5,_0x11fe51._0x3d019e,_0x11fe51._0x5ef3ec,0x101)]('\x0a')[_0x58ca29(0x102,_0x11fe51._0x26fb12,_0x11fe51._0x26f0bd,0xa6)]();}function readString(_0x4f863b){const _0x45861e={_0x7691f1:0x3f,_0x26ad59:0x74},_0x33f79a={_0x2dbde2:0x15f,_0x457558:0xf2};function _0x388924(_0x2dbae6,_0x5da5be,_0x4151e1,_0x5ba4d3){return _0x5276b1(_0x5da5be,_0x5da5be-_0x33f79a._0x2dbde2,_0x4151e1-_0x33f79a._0x457558,_0x5ba4d3- -0x155);}return typeof _0x4f863b==='string'&&_0x4f863b[_0x388924(0x64,-0xc1,-_0x45861e._0x7691f1,-_0x45861e._0x26ad59)]>0x0?_0x4f863b:void 0x0;}function extractReasoningDetails(_0x6293d2){const _0x27e623={_0x1728f7:0x4df,_0x200e48:0x4fa,_0x277a4b:0x61d,_0x1cdaa5:0x556,_0x492ebb:0x4e5},_0x18f916={_0x1f5207:0x14c,_0x188f1d:0x9a,_0x5e060f:0x4f8,_0x5017b2:0x45d,_0x38f818:0x15f,_0x45e230:0xca,_0x46a3d0:0x1b,_0x5c1058:0xae,_0x59a30d:0xb8,_0x5ee539:0x9b,_0x18630b:0x10a,_0x28df0f:0x12c},_0x5ac584={_0x1b0790:0x196},_0x215d46={_0x302147:0x5d,_0x54ac6c:0x169,_0xe10ac2:0x595},_0x1d79bd={_0xcef8c8:0x146,_0x11cfb5:0x0,_0x279d8c:0x51c};function _0x524175(_0x500906,_0x198f61,_0x16f5bc,_0x2d5be7){return _0x5276b1(_0x198f61,_0x198f61-_0x1d79bd._0xcef8c8,_0x16f5bc-_0x1d79bd._0x11cfb5,_0x500906-_0x1d79bd._0x279d8c);}if(!Array[_0x21d0c2(0x482,_0x27e623._0x1728f7,0x4f3,_0x27e623._0x200e48)](_0x6293d2))return void 0x0;function _0x21d0c2(_0x2b68d9,_0x145e42,_0x4a4d70,_0x3ff80c){return _0x5276b1(_0x2b68d9,_0x145e42-_0x215d46._0x302147,_0x4a4d70-_0x215d46._0x54ac6c,_0x145e42-_0x215d46._0xe10ac2);}const _0x46ee4d=_0x6293d2['flatMap'](_0xd82622=>{if(!_0xd82622||typeof _0xd82622!==_0x2edd68(_0x18f916._0x1f5207,0xbe,0x174,_0x18f916._0x188f1d))return[];function _0x56efa4(_0x43c3ab,_0x590622,_0x2cddbd,_0x3c6a8a){return _0x21d0c2(_0x3c6a8a,_0x2cddbd- -0x144,_0x2cddbd-0x1f2,_0x3c6a8a-0x2c);}const _0x7dbb05=_0xd82622;if(typeof _0x7dbb05[_0x56efa4(_0x18f916._0x5e060f,_0x18f916._0x5017b2,0x4dc,0x556)]==='string')return[_0x7dbb05[_0x2edd68(_0x18f916._0x38f818,_0x18f916._0x45e230,_0x18f916._0x46a3d0,_0x18f916._0x5c1058)]];function _0x2edd68(_0x5d3560,_0x3107fd,_0x2bb869,_0x298261){return _0x21d0c2(_0x298261,_0x3107fd- -0x556,_0x2bb869-0x1ad,_0x298261-_0x5ac584._0x1b0790);}if(typeof _0x7dbb05['summary']===_0x2edd68(-0x81,0x9,-0x81,-0xd4))return[_0x7dbb05[_0x2edd68(_0x18f916._0x59a30d,_0x18f916._0x5ee539,_0x18f916._0x18630b,_0x18f916._0x28df0f)]];return[];});return _0x46ee4d[_0x524175(0x5fd,0x6b4,0x5cf,_0x27e623._0x277a4b)]>0x0?_0x46ee4d[_0x524175(_0x27e623._0x1cdaa5,0x467,0x5c2,_0x27e623._0x492ebb)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x44c51e){const _0x13ecde={_0x138dbb:0x151,_0x397ded:0x1d8,_0x2f582c:0x28,_0x48e1df:0x1d9},_0x1fc19b={_0x1acd0b:0xf8},_0x16e5e1={_0xba343a:0x110};function _0x40a239(_0x41349d,_0x6d91b5,_0xc56302,_0x3e94c0){return _0x5276b1(_0x41349d,_0x6d91b5-0x10,_0xc56302-0x191,_0x3e94c0-_0x16e5e1._0xba343a);}function _0x3c37f9(_0x5c7697,_0x23b946,_0x2764f6,_0x39b27a){return _0x5276b1(_0x5c7697,_0x23b946-0x138,_0x2764f6-_0x1fc19b._0x1acd0b,_0x39b27a-0x215);}return extractReasoningDetails(_0x44c51e?.[_0x40a239(0x16d,_0x13ecde._0x138dbb,0xe9,_0x13ecde._0x397ded)])??readString(_0x44c51e?.[_0x40a239(0x109,_0x13ecde._0x2f582c,0xbb,0x107)])??readString(_0x44c51e?.[_0x40a239(0x1b9,0x251,0x13c,_0x13ecde._0x48e1df)])??readString(_0x44c51e?.['reasoning_text'])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x54ac71(0x348,0x377,0x38d,0x453)]=[];[_0x54ac71(0x359,0x32a,0x379,0x2d5)];[_0x54ac71(0x3f3,0x402,0x339,0x416)]=[];[_0x5276b1(-0xd2,-0x81,0x53,-0xa2)]=new Map();[_0x5276b1(-0x52,-0x4,-0x4a,-0x3d)]=[];[_0x54ac71(0x52f,0x538,0x445,0x538)]=new Set();[_0x54ac71(0x443,0x4c9,0x3d6,0x3d4)]='';[_0x5276b1(-0x107,-0x1ad,-0xca,-0xfe)]=_0x5276b1(0xfd,-0x95,0x80,0x59);[_0x54ac71(0x3fd,0x3b4,0x44a,0x4f4)];constructor(_0x216c2c){this['request']=_0x216c2c;}[_0x54ac71(0x458,0x512,0x4d0,0x405)](_0x509123){const _0x57975e={_0x1b958e:0x466,_0x396663:0x4e7,_0x4a5260:0x3b5,_0x4359a1:0x3f3,_0x15fac7:0x35e,_0x9888d4:0x3ce,_0x59d02b:0x33e,_0x4bab98:0x3fa,_0x30c837:0x4b2,_0xd2a9b8:0x4ad,_0x4071e1:0x441,_0xc2ab76:0x356},_0x1eebc0={_0x9b4231:0x1bf},_0x566dc3={_0x2a19e5:0x78},_0x25d7b2=readSseData(_0x509123);if(_0x25d7b2[_0x5d0a32(_0x57975e._0x1b958e,0x40b,_0x57975e._0x396663,0x437)]===0x0||_0x25d7b2===_0x5d0a32(0x385,0x415,_0x57975e._0x4a5260,0x333))return[];function _0x5d0a32(_0x2ec2a9,_0x3524f5,_0x19bf9a,_0x37f22e){return _0x54ac71(_0x2ec2a9-0x1dd,_0x3524f5,_0x2ec2a9- -_0x566dc3._0x2a19e5,_0x37f22e-0x1c9);}const _0x3fe808=JSON[_0x5d0a32(0x373,_0x57975e._0x4359a1,0x3b0,0x39d)](_0x25d7b2);this['responseId']=_0x3fe808['id']??this[_0x5d0a32(_0x57975e._0x15fac7,0x2c7,_0x57975e._0x9888d4,0x393)];function _0x45e5c9(_0x39c629,_0x46fc20,_0x1d1a47,_0x2002db){return _0x54ac71(_0x39c629-_0x1eebc0._0x9b4231,_0x46fc20,_0x1d1a47- -0x50,_0x2002db-0x13f);}return this['usage']=_0x3fe808[_0x45e5c9(0x373,_0x57975e._0x59d02b,_0x57975e._0x4bab98,_0x57975e._0x30c837)]??this[_0x45e5c9(_0x57975e._0xd2a9b8,_0x57975e._0x4071e1,_0x57975e._0x4bab98,0x391)],this[_0x45e5c9(0x2c4,0x3d4,_0x57975e._0xc2ab76,0x3f9)](_0x3fe808);}[_0x5276b1(0x151,0x70,-0x69,0x78)](){const _0x5c31c4={_0x41c5bf:0x690,_0x503071:0x260,_0x353860:0x2af,_0x1be0e8:0x1d1,_0x3595fe:0x68f,_0x5fad19:0x501,_0x2805cb:0x5e8,_0x39c76b:0x6d1,_0x56db7a:0x66f,_0x4cb562:0x5fc,_0x19b919:0x5b0,_0x517940:0x5d6,_0x573fe5:0x645,_0xe27333:0x71f,_0x6c99d3:0x6e3,_0x42463e:0x5d5,_0xb95cbf:0xb,_0x31b59c:0xa0,_0x308bf9:0x152,_0x151eec:0x12a,_0x417027:0x6f5,_0x4060c2:0x69f,_0x2454dd:0x62f,_0xe9b723:0x5da,_0x9a0613:0x656,_0x2553be:0x684,_0x2cb085:0x77e,_0x366256:0x718},_0x3e8e04={_0x20137f:0x26f},_0x50d988={_0x56fca2:0xcb};this[_0x25246f(0x56e,0x672,_0x5c31c4._0x41c5bf,0x62f)][_0x56dbe4(0x118,_0x5c31c4._0x503071,_0x5c31c4._0x353860,_0x5c31c4._0x1be0e8)]>0x0&&(this['stopReason']=_0x25246f(_0x5c31c4._0x3595fe,0x6e4,0x67b,0x5fe));const _0xb6c163=isUserVisibleReasoning(this[_0x25246f(0x621,0x54b,_0x5c31c4._0x5fad19,_0x5c31c4._0x2805cb)])?this[_0x25246f(_0x5c31c4._0x39c76b,_0x5c31c4._0x56db7a,0x62a,_0x5c31c4._0x4cb562)]['join'](''):void 0x0;function _0x56dbe4(_0x59ec68,_0x1946b6,_0x54bc17,_0x185b99){return _0x5276b1(_0x1946b6,_0x1946b6-0xb7,_0x54bc17-_0x50d988._0x56fca2,_0x185b99-0xf0);}function _0x25246f(_0x2bfbf9,_0x22ee9c,_0x3b03b4,_0x369a9d){return _0x54ac71(_0x2bfbf9-0xd2,_0x3b03b4,_0x369a9d-_0x3e8e04._0x20137f,_0x369a9d-0xc5);}return{'id':this[_0x25246f(_0x5c31c4._0x19b919,_0x5c31c4._0x517940,0x5b7,_0x5c31c4._0x573fe5)]||_0x25246f(_0x5c31c4._0xe27333,_0x5c31c4._0x6c99d3,_0x5c31c4._0x42463e,_0x5c31c4._0x3595fe)+Date['now'](),'content':createContentBlocks(this[_0x56dbe4(0x34,-_0x5c31c4._0xb95cbf,_0x5c31c4._0x31b59c,0x2c)][_0x56dbe4(_0x5c31c4._0x308bf9,0x14b,0x3e,_0x5c31c4._0x151eec)](''),this[_0x25246f(_0x5c31c4._0x417027,0x6b2,_0x5c31c4._0x4060c2,_0x5c31c4._0x2454dd)],_0xb6c163),'stopReason':this[_0x25246f(_0x5c31c4._0xe9b723,_0x5c31c4._0x9a0613,0x4ca,0x56e)],'usage':createUsage(this[_0x25246f(_0x5c31c4._0x2553be,_0x5c31c4._0x2cb085,_0x5c31c4._0x366256,0x6b9)])};}['consumeEvent'](_0x55ce00){const _0x47312f={_0x4001ab:0x120,_0x2b75c2:0xc8,_0x43af8d:0xc,_0x5c45e1:0x11,_0x2c906c:0xad,_0x33121c:0x132,_0x41442e:0x192,_0x1a1231:0x12c,_0x230f09:0x24d,_0x385f76:0x1e1,_0xa4c047:0x2a7,_0xf8647:0x2d5,_0x59e01c:0x4c,_0x245954:0x2b3,_0x30ea2c:0x27a,_0x174af2:0x37d,_0x4b3670:0x2c3,_0x2ec021:0x1d1,_0x459765:0x298,_0x53f16d:0x285,_0x45a2e4:0x6a,_0x5cf685:0x103,_0x26ce2e:0x67,_0x45bb83:0x6a,_0x4ff14c:0x45b,_0x2f7dcc:0x3af,_0x212ff1:0x317,_0x3be209:0x63,_0x574ea4:0x60,_0x4267f8:0x317,_0x1da476:0x395,_0x560b06:0x33,_0x122411:0x1fa,_0x5e080a:0x47,_0x1f3dc3:0x4a,_0x23e3f8:0x2b8,_0xe0ad88:0x2a9,_0x3d7aae:0x275,_0x4be929:0x151,_0x52260d:0x131,_0x34ee65:0x2f0,_0x5f29aa:0x2ac,_0x817aa7:0x1e,_0x10ed3e:0x20d,_0x1d4916:0x1b4,_0x3f75aa:0xd9,_0x1ce477:0x49,_0x3a0bff:0x22e,_0x2d30b4:0x5c,_0x41a254:0xd,_0x49681e:0x3a0,_0x3ef259:0x338,_0x523a56:0x278,_0x4a0bcc:0x22a,_0x119eea:0x201,_0x58e092:0x20d,_0x4527f7:0x17d,_0x45ff28:0x6a,_0x1b649c:0x26a,_0x4c9c5e:0x237,_0x4533a0:0x8a,_0x986cd7:0x110,_0x206d50:0x1e6,_0x160fe1:0x30e,_0x43ac06:0x300,_0x4ad935:0x168,_0x6eca77:0x69,_0x2e5d8d:0xac,_0x3359b3:0x315,_0x218491:0x30b,_0x1f70e4:0xde,_0x17b7b8:0x321,_0x282709:0x250,_0x2e255d:0x309,_0x49cbc6:0xe1,_0x2a1d4a:0x27,_0x1e3c2a:0x26b,_0x18c8bf:0x2a9},_0x204ae1={_0x16a759:0xb9,_0x5a2c45:0x64},_0x4c88f1={_0x3a754f:0x12f};function _0x223e37(_0x48bd42,_0x386ee7,_0x43b0de,_0x347f8d){return _0x54ac71(_0x48bd42-0xca,_0x43b0de,_0x386ee7- -_0x4c88f1._0x3a754f,_0x347f8d-0x5);}const _0x59d8f9=[];function _0xa76e1c(_0x4658ca,_0x5b8964,_0x15f8ce,_0x1854a7){return _0x5276b1(_0x5b8964,_0x5b8964-0x1c,_0x15f8ce-_0x204ae1._0x16a759,_0x1854a7-_0x204ae1._0x5a2c45);}for(const _0x111a82 of _0x55ce00['choices']??[]){const _0x45c913=_0x111a82[_0x223e37(0x252,0x312,0x3eb,0x2e0)],_0xec1e2=extractChatCompletionReasoningDelta(_0x45c913);_0xec1e2[_0xa76e1c(0x5b,0x22f,_0x47312f._0x4001ab,0x145)]>0x0&&(this[_0xa76e1c(0x52,0xe5,-_0x47312f._0x2b75c2,-_0x47312f._0x43af8d)][_0xa76e1c(-_0x47312f._0x5c45e1,0x105,0x118,_0x47312f._0x2c906c)](_0xec1e2),isUserVisibleReasoning(this['request'])&&_0x59d8f9[_0xa76e1c(_0x47312f._0x33121c,_0x47312f._0x41442e,_0x47312f._0x1a1231,0xad)]({'type':_0x223e37(0x299,0x1e9,0x1bb,_0x47312f._0x230f09),'contentIndex':0x0,'delta':_0xec1e2,'itemId':(this[_0x223e37(_0x47312f._0x385f76,_0x47312f._0xa4c047,0x385,_0x47312f._0xf8647)]||_0xa76e1c(0x123,_0x47312f._0x59e01c,_0x47312f._0x59e01c,0x13d))+_0x223e37(0x295,_0x47312f._0x245954,_0x47312f._0x30ea2c,0x1c4),'outputIndex':0x0}));const _0x164387=typeof _0x45c913?.[_0x223e37(0x44c,_0x47312f._0x174af2,_0x47312f._0x4b3670,0x432)]===_0x223e37(_0x47312f._0x2ec021,_0x47312f._0x459765,_0x47312f._0x53f16d,0x231)?_0x45c913['content']:typeof _0x45c913?.[_0xa76e1c(0xab,0x3f,0xa7,_0x47312f._0x45a2e4)]==='string'?_0x45c913[_0xa76e1c(_0x47312f._0x5cf685,_0x47312f._0x26ce2e,-0x86,_0x47312f._0x45bb83)]:'';_0x164387[_0x223e37(_0x47312f._0x4ff14c,_0x47312f._0x2f7dcc,_0x47312f._0x212ff1,0x2c5)]>0x0&&(this[_0xa76e1c(0x88,_0x47312f._0x3be209,-0x52,-_0x47312f._0x574ea4)][_0x223e37(0x371,_0x47312f._0x4267f8,0x2b9,_0x47312f._0x1da476)](_0x164387),_0x59d8f9[_0xa76e1c(-_0x47312f._0x560b06,0xaa,0x12b,0xad)]({'type':_0x223e37(0x344,0x288,_0x47312f._0x122411,0x335),'index':0x0,'text':_0x164387}));for(const _0x180c8e of _0x45c913?.[_0xa76e1c(-0x5e,-0x131,_0x47312f._0x5e080a,-_0x47312f._0x1f3dc3)]??[]){const _0x4b58a6=_0x180c8e['index']??0x0;let _0x324964=this['toolCallsByIndex'][_0x223e37(_0x47312f._0x23e3f8,0x25f,_0x47312f._0xe0ad88,_0x47312f._0x3d7aae)](_0x4b58a6);!_0x324964&&(_0x324964={'id':_0x180c8e['id']??_0xa76e1c(-_0x47312f._0x4be929,-_0x47312f._0x52260d,-0xa7,-0x86)+_0x4b58a6,'type':_0x223e37(0x1e3,0x250,_0x47312f._0x34ee65,_0x47312f._0x5f29aa),'function':{'name':_0x180c8e[_0xa76e1c(-_0x47312f._0x817aa7,-0x74,-0xd2,-0x1a)]?.[_0x223e37(0x1b8,_0x47312f._0x10ed3e,_0x47312f._0x1d4916,0x123)]??'','arguments':''}},this[_0xa76e1c(-_0x47312f._0x3f75aa,-0x15,-_0x47312f._0x1ce477,-0x3e)][_0xa76e1c(0x1f1,_0x47312f._0x2b75c2,_0x47312f._0x3a0bff,0x141)](_0x4b58a6,_0x324964),this[_0xa76e1c(_0x47312f._0x2d30b4,0xe4,_0x47312f._0x41a254,0x27)][_0x223e37(_0x47312f._0x49681e,0x317,0x365,0x2cc)](_0x324964));_0x180c8e['id']&&(_0x324964['id']=_0x180c8e['id']);_0x180c8e[_0x223e37(_0x47312f._0x3ef259,0x250,0x1ce,_0x47312f._0x523a56)]?.[_0x223e37(_0x47312f._0x4a0bcc,_0x47312f._0x10ed3e,0x263,_0x47312f._0x119eea)]&&(_0x324964['function'][_0x223e37(0x1cb,_0x47312f._0x58e092,_0x47312f._0x4527f7,0x295)]=_0x180c8e[_0xa76e1c(_0x47312f._0x45ff28,0x69,0xcf,-0x1a)][_0x223e37(0x164,_0x47312f._0x10ed3e,_0x47312f._0x1b649c,_0x47312f._0x4c9c5e)]);!this['toolUseStartEmitted'][_0xa76e1c(0x6d,_0x47312f._0x4533a0,0xe1,_0x47312f._0x986cd7)](_0x4b58a6)&&_0x324964['function']['name'][_0x223e37(0x1a5,_0x47312f._0x206d50,0x136,0x2b4)]()[_0x223e37(_0x47312f._0x160fe1,0x3af,0x3ba,_0x47312f._0x43ac06)]>0x0&&(_0x59d8f9[_0xa76e1c(_0x47312f._0x4ad935,0x52,_0x47312f._0x5e080a,_0x47312f._0x2c906c)]({'type':_0x223e37(0x377,0x2c0,0x251,0x3a5),'id':_0x324964['id'],'index':_0x4b58a6,'name':_0x324964[_0xa76e1c(0x4e,-0xb2,-_0x47312f._0x6eca77,-0x1a)][_0xa76e1c(0xe,0x73,-_0x47312f._0x1a1231,-0x5d)]}),this[_0xa76e1c(0x6e,0x32,0x78,_0x47312f._0x2e5d8d)][_0x223e37(0x361,_0x47312f._0x3359b3,_0x47312f._0x218491,0x372)](_0x4b58a6));const _0x564325=_0x180c8e['function']?.['arguments']??'';_0x564325[_0xa76e1c(0x15e,0x114,_0x47312f._0x1f70e4,0x145)]>0x0&&(_0x324964[_0x223e37(_0x47312f._0x17b7b8,_0x47312f._0x282709,_0x47312f._0x2e255d,0x208)][_0xa76e1c(-0x145,-_0x47312f._0x49cbc6,0x9,-0x7f)]+=_0x564325,_0x59d8f9[_0xa76e1c(0x29,0xf6,_0x47312f._0x2a1d4a,0xad)]({'type':'tool_use_delta','id':_0x324964['id'],'index':_0x4b58a6,'inputDelta':_0x564325}));}_0x111a82[_0x223e37(0x1ba,_0x47312f._0x1e3c2a,_0x47312f._0x18c8bf,0x21b)]===_0x223e37(0x2c9,0x220,0x1fa,0x166)&&(this['stopReason']='tool_use');}return _0x59d8f9;}},OpenAiResponsesStreamParser=class{[_0x5276b1(-0x9,0xa7,0x7e,0x42)]=new Map();[_0x5276b1(0xf6,0x187,-0x46,0x9e)];[_0x5276b1(-0x2f,-0x11e,-0x10f,-0xf2)]=new Map();[_0x54ac71(0x341,0x3ac,0x30c,0x2a5)]=new Map();['reasoningItems']=new Map();[_0x54ac71(0x33c,0x2d5,0x379,0x375)];[_0x5276b1(-0x13f,-0x191,-0x6f,-0x9e)]=new Map();[_0x54ac71(0x3de,0x3c0,0x3d3,0x340)]=new Map();constructor(_0x110221){const _0x81a51f={_0x409bee:0x310,_0x122c5c:0x383,_0x4474ec:0x2a6},_0xe121e9={_0x320891:0x1ca,_0x31e81c:0xa};function _0x301a0b(_0x4d8ef9,_0x57d983,_0xd6486b,_0x5b1728){return _0x54ac71(_0x4d8ef9-_0xe121e9._0x320891,_0x4d8ef9,_0xd6486b-_0xe121e9._0x31e81c,_0x5b1728-0x129);}this[_0x301a0b(_0x81a51f._0x409bee,0x37e,_0x81a51f._0x122c5c,_0x81a51f._0x4474ec)]=_0x110221;}['consumeSseEvent'](_0x2ab13e){const _0x23e487={_0x92de7f:0x34,_0x3b47f0:0xb4,_0x4f3300:0x228,_0x107b9f:0x1b8,_0x46a5b8:0x191,_0x3de3ea:0x70,_0x2ea82e:0xf2,_0x299a43:0x14c,_0x493bb4:0x44,_0xfc3183:0x14f,_0x5dccba:0xf7,_0x1d6492:0x104,_0x3b8168:0x18e,_0x4ff520:0x228,_0x5d9652:0x2db,_0x28fff4:0x14b,_0x4b4f84:0x101,_0x53f3af:0x14e,_0x5c79be:0xc6,_0x1308df:0x197,_0x3e0b11:0x259,_0x3338da:0x24c,_0x427f28:0x26d,_0x2bf561:0x176,_0x11d29f:0x1d0,_0x234fbf:0x150},_0x2ee437={_0x14f35f:0x14a},_0x2ae0d2={_0x249c30:0x75,_0x5dab5a:0x140},_0x16ee54=_0x2ab13e['split']('\x0a');function _0x23cee1(_0x4a2126,_0x9617c0,_0x2a6dd3,_0x527dcf){return _0x54ac71(_0x4a2126-_0x2ae0d2._0x249c30,_0x527dcf,_0x4a2126- -0x31f,_0x527dcf-_0x2ae0d2._0x5dab5a);}const _0x48de13=_0x16ee54['find'](_0x19c90e=>_0x19c90e[_0x23cee1(0x11b,0x1d9,0x187,0x13f)](_0x23cee1(0xe1,0x199,0x38,0xf7)))?.[_0x23cee1(_0x23e487._0x92de7f,0xb6,-_0x23e487._0x3b47f0,0x36)](0x6)[_0x10f16a(-_0x23e487._0x4f3300,-_0x23e487._0x107b9f,-0x159,-_0x23e487._0x46a5b8)](),_0x24bb04=_0x16ee54[_0x10f16a(-_0x23e487._0x3de3ea,-_0x23e487._0x2ea82e,-_0x23e487._0x299a43,-_0x23e487._0x493bb4)](_0x5ef84a=>_0x5ef84a[_0x10f16a(-0x103,-0xc4,-0x67,-0x61)](_0x23cee1(0xb1,0x140,0x13f,-0x1)))[_0x23cee1(0xcb,_0x23e487._0xfc3183,0x182,_0x23e487._0x5dccba)](_0x473daf=>_0x473daf[_0x10f16a(-0x1ea,-0x17b,-0x2d9,-0x189)](0x5)[_0x10f16a(-0x22e,-0x27b,-0x2b8,-0x313)]())[_0x23cee1(0x118,0x1a0,_0x23e487._0x1d6492,_0x23e487._0x3b8168)]('\x0a')[_0x10f16a(-_0x23e487._0x4ff520,-_0x23e487._0x5d9652,-_0x23e487._0x28fff4,-0x1c7)]();if(_0x24bb04[_0x10f16a(-0x5f,0x46,-_0x23e487._0x4b4f84,-_0x23e487._0x53f3af)]===0x0||_0x24bb04===_0x10f16a(-0x140,-0x12d,-_0x23e487._0x5c79be,-0x8c))return[];const _0x2c33d3=JSON['parse'](_0x24bb04);function _0x10f16a(_0x427353,_0x3d7fd1,_0x9d629,_0x42ee80){return _0x5276b1(_0x3d7fd1,_0x3d7fd1-0x26,_0x9d629-_0x2ee437._0x14f35f,_0x427353- -0x140);}return this[_0x10f16a(-_0x23e487._0x1308df,-_0x23e487._0x3e0b11,-_0x23e487._0x3338da,-_0x23e487._0x427f28)](_0x48de13??String(_0x2c33d3[_0x23cee1(_0x23e487._0x2bf561,_0x23e487._0x11d29f,0x200,_0x23e487._0x234fbf)]??''),_0x2c33d3);}[_0x54ac71(0x31e,0x29b,0x382,0x349)](_0xa0af3f){const _0x5af6b3={_0x27c3af:0x66},_0x5ea455={_0x110625:0x338,_0x4be0ca:0x63};function _0x4ba618(_0x4cea65,_0x47a5ec,_0xc22893,_0x14667a){return _0x54ac71(_0x4cea65-0xad,_0xc22893,_0x47a5ec- -_0x5ea455._0x110625,_0x14667a-_0x5ea455._0x4be0ca);}return this[_0x4ba618(0x16,0x6e,-_0x5af6b3._0x27c3af,-0x83)](String(_0xa0af3f['type']??''),_0xa0af3f);}[_0x54ac71(0x4c0,0x48c,0x475,0x4d5)](){const _0x59a603={_0x3b863a:0x1d1,_0x2e1119:0x167,_0xec054a:0x56f,_0x309dac:0x54a,_0x4bf09b:0x4c5,_0x5ac9c3:0x7f,_0x50ca26:0x13c,_0x555e97:0x192,_0xcf9d4a:0x17f,_0x395ed3:0x226,_0x397051:0x4fd,_0x475fb4:0x54a,_0x1b9c04:0x455,_0x1c2417:0x2d6,_0x1e8b2f:0x345,_0x5b6c83:0x4fb,_0x3e66af:0x590,_0x2edd7d:0x61b,_0x343dcd:0x531,_0x52a377:0x44f,_0x1bf58a:0x4d6,_0x2b5ee6:0x456},_0x496c87={_0x8d5a99:0x62,_0x470c57:0xaf,_0x4f82b3:0x18e},_0x15da20={_0x478d40:0x168,_0xac2951:0x9e},_0x27ed1b=this[_0x4a1b0b(0x210,_0x59a603._0x3b863a,0x146,_0x59a603._0x2e1119)]();function _0x4a1b0b(_0x4c8d55,_0x4c16d2,_0x3dc6f4,_0x424b69){return _0x5276b1(_0x424b69,_0x4c16d2-_0x15da20._0x478d40,_0x3dc6f4-0xfb,_0x3dc6f4-_0x15da20._0xac2951);}function _0x5460ec(_0x4a33e5,_0x5b9850,_0x5424f2,_0x3645e5){return _0x54ac71(_0x4a33e5-_0x496c87._0x8d5a99,_0x5424f2,_0x5b9850-_0x496c87._0x470c57,_0x3645e5-_0x496c87._0x4f82b3);}const _0x2ef2ac=this['finalResponse']?{...this[_0x5460ec(_0x59a603._0xec054a,_0x59a603._0x309dac,0x506,_0x59a603._0x4bf09b)],'output':this[_0x4a1b0b(0x1cb,_0x59a603._0x5ac9c3,_0x59a603._0x50ca26,_0x59a603._0x555e97)]['output']&&this['finalResponse']['output'][_0x4a1b0b(0xab,0x19a,_0x59a603._0xcf9d4a,_0x59a603._0x395ed3)]>0x0?this[_0x5460ec(_0x59a603._0x397051,_0x59a603._0x475fb4,_0x59a603._0x1b9c04,0x590)][_0x5460ec(_0x59a603._0x1c2417,0x3c8,0x411,_0x59a603._0x1e8b2f)]:_0x27ed1b}:{'id':'resp-'+Date[_0x5460ec(_0x59a603._0x5b6c83,_0x59a603._0x3e66af,0x5c5,_0x59a603._0x2edd7d)](),'object':'response','status':_0x5460ec(_0x59a603._0x343dcd,_0x59a603._0x52a377,_0x59a603._0x1bf58a,_0x59a603._0x2b5ee6),'output':_0x27ed1b,'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x2ef2ac,this['request']);}['isDone'](){const _0x421978={_0xe1dff2:0x62f,_0x236946:0x55a},_0x110de6={_0x421761:0xbe,_0x4c3546:0x4bc};function _0x54c991(_0x18d29a,_0x2bbd31,_0x4fd860,_0x214ce3){return _0x5276b1(_0x4fd860,_0x2bbd31-_0x110de6._0x421761,_0x4fd860-0x3,_0x214ce3-_0x110de6._0x4c3546);}return this[_0x54c991(0x4f1,_0x421978._0xe1dff2,0x485,_0x421978._0x236946)]!==void 0x0;}['consumeEvent'](_0x1029e0,_0x4b0869){const _0x247f74={_0x1f528e:0x320,_0x2a6332:0x3a7,_0x40b6bb:0x55d,_0x1b113c:0x5d8,_0x905234:0x287,_0x2631b6:0x37d,_0x565270:0x615,_0x508b9f:0x4cb,_0xbdff7c:0x414,_0x97b133:0x448,_0x317093:0x5b1,_0x391978:0x50a,_0x57c3ba:0x3af,_0x30fab4:0x368,_0x5b436f:0x3c7,_0x187c82:0x593,_0x3e0235:0x553,_0x9de6c3:0x491,_0x1a9685:0x6e0,_0x2f6b81:0x69b,_0x351569:0x6a3,_0xab465b:0x3fe,_0x51c075:0x3e3,_0x5183f3:0x2a3,_0x4327a2:0x367,_0x427258:0x470,_0x549c2a:0x377,_0x36bc6e:0x556,_0x1cdffe:0x46f,_0x1e85a5:0x485,_0x2429ce:0x40f,_0x4530b5:0x4e9,_0x237cd:0x573,_0x2c4e13:0x3b8,_0x294e21:0x4a1,_0x2fef48:0x4ed,_0x241529:0x50e,_0x1cbba3:0x38e,_0x25429d:0x2fd,_0x2b6256:0x507,_0x5d012e:0x519,_0x3a3896:0x4a4,_0x385e2c:0x438,_0x20ba83:0x376,_0x493dc2:0x50d,_0x51ad43:0x6d9,_0x47a9eb:0x5ff,_0x336a85:0x532,_0x17552b:0x41a,_0x470910:0x58f,_0x24fc52:0x30b,_0x2b95e7:0x3a8,_0x11564b:0x4c5,_0x3aaa67:0x420,_0x4d2a01:0x41b,_0x3cdf2f:0x691,_0x1983f4:0x5fe,_0x1d79df:0x5ba,_0x3c25cc:0x420,_0x1dee79:0x3eb,_0x4f7b8b:0x3cf,_0x169dcc:0x2d1,_0xc827d7:0x578,_0x43464d:0x343,_0x9fb03b:0x3a8,_0x584dc4:0x42b,_0x233f80:0x404,_0x5c3b55:0x526,_0x4f5dc7:0x40d,_0x1c1903:0x355,_0x903cbd:0x354,_0x5ab920:0x42c,_0x5c0a18:0x430,_0x34d80c:0x361,_0x43d2cd:0x355,_0x442fa1:0x3ba,_0x389106:0x3f3,_0x460ea7:0x476,_0x13f54b:0x466,_0x537ac4:0x3ff,_0x2719a3:0x5ed,_0x36b712:0x603,_0x266e49:0x6c4,_0x40d1d0:0x501,_0x19b42d:0x49d,_0x4bb3c7:0x43f,_0x446fa2:0x510,_0x3d6f84:0x477,_0x1903bb:0x438,_0x256fef:0x4b3,_0x1c29c7:0x50b,_0xbcac95:0x3f5,_0x4a1a08:0x536,_0x47839c:0x4f5,_0x5d0701:0x4c2,_0x216584:0x58d,_0x2a6330:0x49d,_0x5a1478:0x50a,_0x35a8d8:0x4cc,_0x59e140:0x4c8,_0x4deffa:0x576,_0x52e976:0x3e0,_0x244d06:0x46f,_0x23d396:0x3e4,_0x58ab94:0x430,_0x5a7002:0x4e9,_0x2c204b:0x43e,_0x592c00:0x54b,_0x1e62e5:0x43d,_0x3699a3:0x34d,_0x179a9e:0x3f3,_0x1d37d3:0x43f,_0x8ceee8:0x480,_0x1046a8:0x47c,_0x49bf79:0x45f,_0x581e7f:0x406,_0x1a84e3:0x502,_0xd2045b:0x3f3,_0x60d6bb:0x366,_0x58dbdf:0x43d,_0x124378:0x4ae,_0x4d8472:0x35f,_0x14ce7d:0x416,_0x32a5b5:0x4e0,_0x15ae68:0x5ff,_0x4788ad:0x5f0,_0x48a558:0x5eb,_0xcbb0b7:0x5fd,_0x3ea88d:0x5a4,_0xfae2c7:0x4c3,_0x478c01:0x531,_0x483097:0x565,_0x346d25:0x3d0,_0x4627e2:0x337,_0xec26fa:0x4b3,_0x11f9b8:0x33f,_0x58e821:0x3b6,_0x4df7bf:0x4ec,_0x6f152e:0x472,_0x2f31ef:0x46a,_0x534240:0x275,_0x450fc8:0x29b,_0x4f704b:0x2bd,_0x56acab:0x543,_0x58f913:0x54e,_0xb65237:0x515,_0x4b6ffe:0x4c6,_0x57854e:0x386,_0x4d58c8:0x57f,_0x2530e1:0x50e,_0x2675a5:0x3d2,_0xb3cf2a:0x62a,_0x343f7a:0x57e,_0x2005ef:0x4e6,_0x49162a:0x3a8,_0x315640:0x441,_0x557227:0x485,_0x27e434:0x3fc,_0x2e96d5:0x4f0,_0x23546f:0x4a5,_0xfbdbc1:0x4b4,_0x5e1718:0x5c2,_0x5e50d0:0x5c9,_0x153470:0x64d,_0x2de974:0x62c,_0x389c57:0x489,_0x286c7b:0x466,_0x5114ae:0x421,_0x1d5e9a:0x564,_0x1df563:0x512,_0x4e196e:0x6a2,_0x190694:0x5ce,_0x2ea7da:0x41a,_0x5c8bcf:0x442,_0x1cd683:0x4ec,_0x10705c:0x53d,_0x468e18:0x454,_0x5cb5f8:0x384,_0x580ff5:0x47a,_0x101f3c:0x3f2,_0x4363f8:0x4ab,_0x38b861:0x5e5,_0x9f7676:0x4c7,_0x4fde4c:0x46f,_0xb3ab5f:0x3e1,_0x12335f:0x440,_0x2b84bc:0x49c,_0x3b0372:0x536,_0x4d454b:0x574,_0x3ebfe7:0x536,_0x443a42:0x560,_0x3182ac:0x675,_0x47b0a5:0x544,_0x414138:0x443,_0x2d3eac:0x452,_0x5a237a:0x438,_0x2b5d73:0x4cd,_0x4544ac:0x4c7,_0xc0c5e:0x4d5,_0x28c5b9:0x506,_0x5700fa:0x472,_0x2ab10d:0x43e,_0x3a442e:0x459,_0x46961f:0x3c8,_0x2525b1:0x49e,_0xbaf32d:0x6b5,_0x3d1007:0x694,_0x33fa70:0x5e5,_0x23e858:0x628,_0x1792a1:0x61d,_0x97d7ff:0x4c1,_0x49679a:0x46f,_0x3355b9:0x338,_0x234444:0x417,_0x415d37:0x600,_0x367f03:0x4e0,_0x207307:0x548,_0x333c01:0x3ac,_0x151771:0x4b1,_0x3ea254:0x57c,_0x191901:0x49f,_0x1b2648:0x637,_0xca2a43:0x606,_0x745690:0x4e0,_0x58a888:0x52e,_0x12fff0:0x5b8,_0x3d8e4c:0x50f,_0x4fefba:0x5e1,_0x1b6d05:0x4bd,_0x10a9bb:0x52f,_0x3a582a:0x56d,_0x1f7105:0x4f4,_0xd67aa7:0x46d,_0x74ad04:0x4ec,_0x2396c2:0x4ed,_0x19f5dd:0x310,_0xe1729c:0x4c1,_0x1ce4cc:0x3f9,_0x48d0c8:0x3f2,_0x12e709:0x54e,_0x2d19b3:0x4d4,_0x1e031c:0x463,_0x5d6c7e:0x43a,_0x4b4e7a:0x43d,_0x44ce4d:0x2f1,_0x37954a:0x291,_0x5c649d:0x612,_0x26d23f:0x529,_0x2f2cfe:0x46f,_0x51c9c3:0x457,_0x3847b5:0x408,_0x41f5a7:0x66f,_0x2b5487:0x677,_0x2710f9:0x3e8,_0x1e25ee:0x474,_0x595b0f:0x3a2,_0x2f4cad:0x418,_0x4ae5e1:0x49b,_0x193dd0:0x497,_0x1d7cce:0x533,_0x5aea2d:0x5cd,_0x440e2d:0x508,_0x52f899:0x4a1,_0x1f6f9e:0x499,_0x32efe8:0x3f3,_0x5cef86:0x4aa,_0x5c804f:0x359,_0x174688:0x3d6,_0x57698e:0x42f,_0x143fd6:0x3d0,_0x2e6566:0x4f0,_0x445323:0x536,_0x533498:0x5b1,_0x525aaa:0x381,_0x1f974d:0x292,_0x458237:0x376,_0x5d8b8c:0x5e8,_0x39703e:0x496,_0x168eac:0x3db,_0x3c3a37:0x376,_0x221a2e:0x513,_0x42e36b:0x5d8,_0x103ede:0x67f,_0x2d5717:0x4ca,_0x3f75a3:0x452,_0x33b4c3:0x3cb,_0x43a5cf:0x430,_0x46f528:0x4d3,_0x15a696:0x4ff,_0x25cb3b:0x375,_0x4c1413:0x2f9,_0x4702fb:0x63a,_0x2c78ac:0x640,_0x3c945b:0x38b,_0xd2e6cd:0x45d,_0x429097:0x53a,_0x4dd2a2:0x558,_0x1ae4b6:0x487,_0xe2a742:0x5ac,_0x16ab64:0x581,_0x5f0dcc:0x48a,_0x408182:0x3bc,_0x485324:0x45d,_0x12325a:0x41d,_0x237e9c:0x3fd,_0x28fba1:0x535,_0x547c6b:0x4e2,_0x291353:0x47f,_0x9847d6:0x2c5,_0x2dd762:0x35f},_0xb292ff={_0x3a7b8d:0x139},_0x382d2d={_0x4303e8:0x9a};switch(_0x1029e0){case _0x435107(0x405,_0x247f74._0x1f528e,0x2fd,_0x247f74._0x2a6332):{const _0x4509a2=typeof _0x4b0869[_0x5d1be0(_0x247f74._0x40b6bb,_0x247f74._0x1b113c,0x536,0x5fa)]===_0x435107(_0x247f74._0x905234,_0x247f74._0x2631b6,0x303,0x376)?_0x4b0869[_0x5d1be0(_0x247f74._0x565270,0x5d8,0x536,_0x247f74._0x508b9f)]:0x0,_0x2aeb5=typeof _0x4b0869[_0x435107(0x383,_0x247f74._0xbdff7c,0x3a9,0x46d)]==='string'?_0x4b0869[_0x435107(0x554,_0x247f74._0x97b133,0x4e1,0x46d)]:'';if(_0x2aeb5[_0x435107(0x42c,0x5b2,_0x247f74._0x317093,_0x247f74._0x391978)]>0x0){const _0x2a3334=this[_0x435107(_0x247f74._0x57c3ba,_0x247f74._0x30fab4,_0x247f74._0x5b436f,0x38b)]['get'](_0x4509a2)??[];return _0x2a3334[_0x5d1be0(_0x247f74._0x187c82,0x56b,0x56b,_0x247f74._0x3e0235)](_0x2aeb5),this[_0x5d1be0(_0x247f74._0x9de6c3,0x403,0x484,0x51c)][_0x5d1be0(_0x247f74._0x1a9685,_0x247f74._0x2f6b81,0x5ff,_0x247f74._0x351569)](_0x4509a2,_0x2a3334),[{'type':_0x435107(0x32e,0x49b,_0x247f74._0xab465b,_0x247f74._0x51c075),'index':_0x4509a2,'text':_0x2aeb5}];}break;}case _0x435107(0x359,0x337,_0x247f74._0x5183f3,0x38e):{const _0x5423d0=typeof _0x4b0869[_0x435107(_0x247f74._0x4327a2,_0x247f74._0x427258,_0x247f74._0x549c2a,0x43d)]===_0x5d1be0(_0x247f74._0x36bc6e,0x431,_0x247f74._0x1cdffe,_0x247f74._0x1e85a5)?_0x4b0869[_0x435107(0x488,0x47b,0x364,0x43d)]:void 0x0,_0x2a2f29=_0x4b0869['item'];if(_0x2a2f29?.['type']===_0x5d1be0(0x597,_0x247f74._0x2429ce,_0x247f74._0x4530b5,0x4e1)&&_0x2a2f29[_0x5d1be0(_0x247f74._0x237cd,_0x247f74._0x2c4e13,_0x247f74._0x294e21,0x400)]&&_0x2a2f29['name'])return this[_0x435107(0x430,_0x247f74._0x2fef48,0x35a,0x3ff)][_0x5d1be0(0x54e,0x559,0x5ff,0x549)](_0x2a2f29[_0x5d1be0(0x44c,0x427,0x4a1,_0x247f74._0x241529)],{'id':_0x2a2f29[_0x435107(_0x247f74._0x1cbba3,0x2cf,_0x247f74._0x25429d,0x3a8)],'type':_0x5d1be0(_0x247f74._0x2b6256,_0x247f74._0x5d012e,_0x247f74._0x3a3896,0x41f),'function':{'name':_0x2a2f29[_0x5d1be0(_0x247f74._0x385e2c,_0x247f74._0x20ba83,0x461,0x3d3)],'arguments':''}}),_0x5423d0!==void 0x0&&(this['outputIndexToCallId'][_0x5d1be0(_0x247f74._0x493dc2,_0x247f74._0x51ad43,_0x247f74._0x47a9eb,0x53f)](_0x5423d0,_0x2a2f29[_0x5d1be0(_0x247f74._0x336a85,0x57e,0x4a1,_0x247f74._0x17552b)]),this['callIdToOutputIndex'][_0x435107(0x576,0x5b7,_0x247f74._0x470910,0x506)](_0x2a2f29[_0x435107(0x41f,0x2c1,_0x247f74._0x24fc52,_0x247f74._0x2b95e7)],_0x5423d0)),[{'type':_0x435107(_0x247f74._0x11564b,0x3a9,_0x247f74._0x3aaa67,_0x247f74._0x4d2a01),'id':_0x2a2f29[_0x435107(0x2f6,0x347,0x2f4,_0x247f74._0x2b95e7)],'index':_0x5423d0??0x0,'name':_0x2a2f29['name']}];if(_0x2a2f29?.[_0x5d1be0(_0x247f74._0x3cdf2f,_0x247f74._0x1983f4,_0x247f74._0x1d79df,0x601)]===_0x435107(0x40f,0x3a9,0x363,_0x247f74._0x3c25cc)&&_0x2a2f29['id']){const _0x2e5212=this[_0x5d1be0(_0x247f74._0x1dee79,_0x247f74._0x4f7b8b,0x452,0x4c6)](_0x2a2f29['id'],_0x5423d0);_0x5423d0!==void 0x0&&this[_0x435107(0x25d,0x33f,_0x247f74._0x169dcc,0x338)][_0x5d1be0(_0x247f74._0xc827d7,0x57e,0x5ff,0x6ea)](_0x5423d0,_0x2e5212['id']);}break;}case'response.function_call_arguments.delta':{const _0x52810b=typeof _0x4b0869[_0x435107(_0x247f74._0x43464d,0x347,0x484,_0x247f74._0x9fb03b)]===_0x435107(_0x247f74._0x584dc4,0x4b5,_0x247f74._0x233f80,0x3f3)?_0x4b0869[_0x5d1be0(0x4bb,0x4b3,0x4a1,0x3cd)]:typeof _0x4b0869[_0x435107(0x39b,_0x247f74._0x5c3b55,_0x247f74._0x4f5dc7,0x43d)]===_0x435107(0x3f8,_0x247f74._0x1c1903,_0x247f74._0x903cbd,0x376)?this[_0x5d1be0(_0x247f74._0x5ab920,0x368,_0x247f74._0x5c0a18,0x375)][_0x435107(_0x247f74._0x34d80c,0x2e4,_0x247f74._0x43d2cd,_0x247f74._0x442fa1)](_0x4b0869['output_index']):void 0x0,_0x4e6cf6=typeof _0x4b0869['delta']===_0x435107(0x41d,0x49d,0x4e3,_0x247f74._0x389106)?_0x4b0869['delta']:'',_0x1d9e0e=_0x52810b?this[_0x435107(_0x247f74._0x460ea7,0x393,_0x247f74._0x13f54b,_0x247f74._0x537ac4)]['get'](_0x52810b):void 0x0;if(_0x1d9e0e&&_0x4e6cf6[_0x5d1be0(0x5c5,_0x247f74._0x2719a3,_0x247f74._0x36b712,_0x247f74._0x266e49)]>0x0)return _0x1d9e0e['function'][_0x5d1be0(_0x247f74._0x40d1d0,_0x247f74._0x19b42d,_0x247f74._0x4bb3c7,0x4fd)]+=_0x4e6cf6,[{'type':_0x5d1be0(_0x247f74._0x446fa2,0x5c4,0x514,_0x247f74._0x3d6f84),'id':_0x1d9e0e['id'],'index':this['callIdToOutputIndex'][_0x5d1be0(0x431,_0x247f74._0x1903bb,_0x247f74._0x256fef,0x3e9)](_0x1d9e0e['id'])??(typeof _0x4b0869[_0x435107(0x441,_0x247f74._0x1c29c7,0x512,0x43d)]===_0x435107(0x2ad,_0x247f74._0xbcac95,0x421,0x376)?_0x4b0869[_0x5d1be0(0x454,0x5e2,_0x247f74._0x4a1a08,_0x247f74._0x47839c)]:0x0),'inputDelta':_0x4e6cf6}];break;}case _0x5d1be0(0x506,_0x247f74._0x5d0701,_0x247f74._0x216584,0x676):{const _0x5a6bc7=typeof _0x4b0869['call_id']===_0x5d1be0(_0x247f74._0x2a6330,_0x247f74._0x5a1478,0x4ec,0x421)?_0x4b0869[_0x5d1be0(_0x247f74._0x35a8d8,0x3e2,0x4a1,0x539)]:typeof _0x4b0869[_0x5d1be0(_0x247f74._0x59e140,0x49c,_0x247f74._0x4a1a08,_0x247f74._0x4deffa)]===_0x5d1be0(0x556,_0x247f74._0x52e976,_0x247f74._0x244d06,_0x247f74._0x23d396)?this[_0x5d1be0(0x3a5,0x34b,_0x247f74._0x58ab94,_0x247f74._0x5a7002)][_0x5d1be0(_0x247f74._0x2c204b,_0x247f74._0x592c00,0x4b3,0x4a4)](_0x4b0869[_0x435107(0x443,0x3a7,0x367,_0x247f74._0x1e62e5)]):void 0x0,_0x3fcddc=_0x5a6bc7?this[_0x435107(_0x247f74._0x3699a3,0x437,0x43b,0x3ff)][_0x5d1be0(0x561,0x567,0x4b3,0x3d4)](_0x5a6bc7):void 0x0;_0x3fcddc&&typeof _0x4b0869[_0x5d1be0(0x4c0,_0x247f74._0x179a9e,_0x247f74._0x1d37d3,0x49f)]===_0x5d1be0(0x4e0,_0x247f74._0x8ceee8,0x4ec,_0x247f74._0x1046a8)&&(_0x3fcddc['function']['arguments']=_0x4b0869[_0x5d1be0(_0x247f74._0x49bf79,0x3c8,0x43f,0x42a)]);break;}case _0x5d1be0(0x50b,_0x247f74._0x581e7f,0x46e,_0x247f74._0x1a84e3):{const _0x4368cf=typeof _0x4b0869[_0x435107(_0x247f74._0xd2045b,_0x247f74._0x60d6bb,0x464,_0x247f74._0x58dbdf)]===_0x5d1be0(_0x247f74._0x124378,0x4e6,0x46f,0x4ce)?_0x4b0869[_0x435107(_0x247f74._0x4d8472,_0x247f74._0x14ce7d,_0x247f74._0x32a5b5,0x43d)]:void 0x0,_0x283c9b=_0x4b0869[_0x5d1be0(0x5ff,_0x247f74._0x15ae68,0x56c,_0x247f74._0x4788ad)];if(_0x283c9b?.[_0x5d1be0(_0x247f74._0x48a558,_0x247f74._0xcbb0b7,0x5ba,_0x247f74._0x3ea88d)]===_0x5d1be0(_0x247f74._0xfae2c7,_0x247f74._0x478c01,0x4e9,_0x247f74._0x483097)){const _0x2dc438=_0x283c9b['call_id']??(_0x4368cf!==void 0x0?this[_0x435107(_0x247f74._0x346d25,0x3dc,0x42c,_0x247f74._0x4627e2)][_0x5d1be0(0x469,0x4e6,_0x247f74._0xec26fa,0x573)](_0x4368cf):void 0x0),_0x3d1794=_0x2dc438?this[_0x435107(0x347,_0x247f74._0x11f9b8,_0x247f74._0x58e821,_0x247f74._0x537ac4)][_0x5d1be0(0x43d,0x51d,_0x247f74._0xec26fa,0x43a)](_0x2dc438):void 0x0;_0x3d1794&&typeof _0x283c9b['arguments']===_0x5d1be0(0x4e2,_0x247f74._0x13f54b,_0x247f74._0x4df7bf,0x50f)&&(_0x3d1794[_0x5d1be0(_0x247f74._0x6f152e,0x3de,0x4a4,_0x247f74._0x2f31ef)][_0x5d1be0(0x479,0x39a,0x43f,0x4e9)]=_0x283c9b[_0x435107(_0x247f74._0x534240,_0x247f74._0x450fc8,_0x247f74._0x4f704b,0x346)]);break;}if(_0x283c9b?.[_0x5d1be0(0x630,0x4d9,0x5ba,_0x247f74._0x56acab)]===_0x5d1be0(_0x247f74._0x58f913,0x4a8,0x519,_0x247f74._0xb65237)&&_0x283c9b['id']){const _0x12eed4=this[_0x5d1be0(_0x247f74._0x4b6ffe,0x426,0x452,_0x247f74._0x57854e)](_0x283c9b['id'],_0x4368cf);typeof _0x283c9b[_0x5d1be0(_0x247f74._0x4d58c8,0x4cd,0x58e,_0x247f74._0x2530e1)]==='string'&&(_0x12eed4[_0x435107(0x422,0x445,_0x247f74._0x2675a5,0x397)]=_0x283c9b['encrypted_content']);if(Array['isArray'](_0x283c9b[_0x5d1be0(_0x247f74._0xb3cf2a,0x5b2,_0x247f74._0x343f7a,_0x247f74._0x2005ef)]))for(let _0x10d0cf=0x0;_0x10d0cf<_0x283c9b[_0x435107(_0x247f74._0x49162a,0x48e,_0x247f74._0x315640,_0x247f74._0x557227)]['length'];_0x10d0cf+=0x1){const _0x3fce03=_0x283c9b['summary'][_0x10d0cf];_0x3fce03['type']===_0x435107(0x48a,_0x247f74._0x27e434,_0x247f74._0x2e96d5,0x4b1)&&typeof _0x3fce03[_0x435107(_0x247f74._0x23546f,0x479,0x4a6,_0x247f74._0xfbdbc1)]===_0x5d1be0(0x504,_0x247f74._0x5e1718,_0x247f74._0x4df7bf,_0x247f74._0x5e50d0)&&_0x12eed4[_0x5d1be0(0x569,0x582,0x534,0x5f1)]['set'](_0x10d0cf,_0x3fce03[_0x5d1be0(0x4e5,_0x247f74._0x153470,0x5ad,_0x247f74._0x2de974)]);}typeof _0x283c9b['text']===_0x5d1be0(_0x247f74._0x389c57,0x555,0x4ec,0x592)&&_0x12eed4[_0x435107(0x407,0x488,_0x247f74._0x286c7b,0x3a2)][_0x435107(0x4ac,_0x247f74._0x5114ae,0x51e,0x506)](0x0,_0x283c9b[_0x435107(0x46a,_0x247f74._0x1d5e9a,_0x247f74._0x1df563,0x4b4)]);}break;}case _0x5d1be0(_0x247f74._0x4e196e,0x67e,0x5e0,_0x247f74._0x190694):{const _0x50b369=typeof _0x4b0869['delta']===_0x5d1be0(_0x247f74._0x2ea7da,_0x247f74._0x5c8bcf,_0x247f74._0x1cd683,_0x247f74._0x10705c)?_0x4b0869[_0x435107(_0x247f74._0x468e18,_0x247f74._0x5cb5f8,0x3fd,0x46d)]:'',_0xfd5122=typeof _0x4b0869['item_id']===_0x5d1be0(0x518,0x457,0x4ec,0x5a5)?_0x4b0869[_0x435107(0x43c,0x3da,_0x247f74._0x580ff5,_0x247f74._0x101f3c)]:typeof _0x4b0869[_0x5d1be0(_0x247f74._0x4363f8,_0x247f74._0x38b861,0x536,0x48e)]===_0x5d1be0(0x4ac,_0x247f74._0x9f7676,_0x247f74._0x4fde4c,0x4ca)?this['outputIndexToReasoningId'][_0x5d1be0(_0x247f74._0xb3ab5f,0x491,_0x247f74._0x256fef,_0x247f74._0x12335f)](_0x4b0869[_0x5d1be0(_0x247f74._0x2b84bc,0x4c1,_0x247f74._0x3b0372,0x58d)]):void 0x0,_0x4da90b=typeof _0x4b0869['output_index']==='number'?_0x4b0869[_0x5d1be0(0x46b,_0x247f74._0x4d454b,_0x247f74._0x3ebfe7,0x449)]:0x0,_0x49d591=typeof _0x4b0869['summary_index']==='number'?_0x4b0869[_0x5d1be0(_0x247f74._0x443a42,0x4c3,0x598,_0x247f74._0x3182ac)]:0x0;if(_0xfd5122&&_0x50b369[_0x435107(_0x247f74._0x47b0a5,_0x247f74._0x414138,0x56b,_0x247f74._0x5a1478)]>0x0){const _0x34ea04=this[_0x5d1be0(0x432,0x3fa,_0x247f74._0x2d3eac,_0x247f74._0x5a237a)](_0xfd5122,_0x4da90b);_0x34ea04[_0x5d1be0(_0x247f74._0x2b5d73,_0x247f74._0x4544ac,0x534,0x5fc)][_0x435107(_0x247f74._0xc0c5e,0x41b,0x444,_0x247f74._0x28c5b9)](_0x49d591,''+(_0x34ea04[_0x5d1be0(_0x247f74._0x5700fa,_0x247f74._0x11564b,0x534,_0x247f74._0x2b5d73)][_0x5d1be0(0x4c7,_0x247f74._0x2ab10d,0x4b3,_0x247f74._0x3a442e)](_0x49d591)??'')+_0x50b369);if(isUserVisibleReasoning(this[_0x5d1be0(_0x247f74._0x46961f,0x4a1,_0x247f74._0x2525b1,0x4e1)]))return[{'type':_0x5d1be0(_0x247f74._0xbaf32d,_0x247f74._0x3d1007,_0x247f74._0x33fa70,_0x247f74._0x58f913),'delta':_0x50b369,'itemId':_0xfd5122,'outputIndex':_0x4da90b,'summaryIndex':_0x49d591}];}break;}case'response.reasoning_summary_text.done':{const _0x202811=typeof _0x4b0869['item_id']==='string'?_0x4b0869[_0x435107(0x411,0x447,0x35d,_0x247f74._0x101f3c)]:typeof _0x4b0869[_0x5d1be0(_0x247f74._0x23e858,_0x247f74._0x1792a1,0x536,0x5d6)]===_0x5d1be0(_0x247f74._0x4fde4c,_0x247f74._0x97d7ff,_0x247f74._0x49679a,0x4e7)?this[_0x435107(0x3a0,0x28b,0x324,_0x247f74._0x3355b9)]['get'](_0x4b0869[_0x435107(0x438,0x366,0x47f,0x43d)]):void 0x0,_0x10ebfc=typeof _0x4b0869[_0x435107(0x529,0x4a8,_0x247f74._0x234444,0x43d)]==='number'?_0x4b0869[_0x5d1be0(_0x247f74._0x415d37,_0x247f74._0x367f03,0x536,0x546)]:0x0,_0x323940=typeof _0x4b0869[_0x435107(_0x247f74._0x207307,0x45c,0x556,0x49f)]===_0x5d1be0(0x529,0x3c8,_0x247f74._0x4fde4c,_0x247f74._0x333c01)?_0x4b0869[_0x435107(_0x247f74._0x151771,_0x247f74._0x3ea254,0x51c,_0x247f74._0x191901)]:0x0,_0x2a7e76=typeof _0x4b0869[_0x5d1be0(_0x247f74._0x1b2648,_0x247f74._0xca2a43,0x5ad,_0x247f74._0x15ae68)]===_0x435107(0x3b7,_0x247f74._0x30fab4,_0x247f74._0x745690,0x3f3)?_0x4b0869[_0x5d1be0(_0x247f74._0x58a888,_0x247f74._0x12fff0,0x5ad,_0x247f74._0x3d8e4c)]:'';_0x202811&&this['getOrCreateReasoningItem'](_0x202811,_0x10ebfc)[_0x5d1be0(_0x247f74._0x4fefba,_0x247f74._0x1b6d05,0x534,0x5bc)][_0x435107(_0x247f74._0x1df563,_0x247f74._0x10a9bb,_0x247f74._0x3a582a,_0x247f74._0x28c5b9)](_0x323940,_0x2a7e76);break;}case'response.reasoning_text.delta':{const _0x3fec36=typeof _0x4b0869[_0x435107(_0x247f74._0x1f7105,_0x247f74._0x59e140,0x422,_0x247f74._0xd67aa7)]===_0x5d1be0(_0x247f74._0x13f54b,0x4ce,_0x247f74._0x74ad04,0x4cc)?_0x4b0869[_0x5d1be0(0x63d,_0x247f74._0x2396c2,0x566,_0x247f74._0x443a42)]:'',_0x48be1c=typeof _0x4b0869['item_id']===_0x435107(0x37e,_0x247f74._0x19f5dd,0x42e,0x3f3)?_0x4b0869[_0x435107(0x3b1,_0x247f74._0xe1729c,_0x247f74._0x1ce4cc,_0x247f74._0x48d0c8)]:typeof _0x4b0869['output_index']==='number'?this[_0x435107(0x2c9,0x298,0x3d5,_0x247f74._0x3355b9)][_0x5d1be0(_0x247f74._0x12e709,_0x247f74._0x2d19b3,_0x247f74._0x256fef,0x530)](_0x4b0869[_0x435107(_0x247f74._0x1ce4cc,_0x247f74._0x1e031c,_0x247f74._0x5d6c7e,_0x247f74._0x58dbdf)]):void 0x0,_0x4c54a2=typeof _0x4b0869[_0x435107(0x50f,0x45b,_0x247f74._0x10a9bb,_0x247f74._0x4b4e7a)]===_0x435107(0x44d,_0x247f74._0x44ce4d,_0x247f74._0x37954a,_0x247f74._0x20ba83)?_0x4b0869[_0x5d1be0(_0x247f74._0x5c649d,0x57c,_0x247f74._0x3ebfe7,_0x247f74._0x237cd)]:0x0,_0x4745c5=typeof _0x4b0869['content_index']===_0x5d1be0(_0x247f74._0x26d23f,0x3d5,_0x247f74._0x2f2cfe,0x387)?_0x4b0869[_0x5d1be0(0x510,_0x247f74._0x51c9c3,_0x247f74._0x745690,_0x247f74._0x3847b5)]:0x0;if(_0x48be1c&&_0x3fec36[_0x5d1be0(0x5ae,_0x247f74._0x41f5a7,0x603,_0x247f74._0x2b5487)]>0x0){const _0x4e7cfb=this[_0x435107(0x31a,_0x247f74._0x2710f9,0x410,0x359)](_0x48be1c,_0x4c54a2);_0x4e7cfb[_0x435107(_0x247f74._0x1e25ee,0x39f,0x3cc,_0x247f74._0x595b0f)][_0x435107(0x498,0x472,_0x247f74._0x2f4cad,_0x247f74._0x28c5b9)](_0x4745c5,''+(_0x4e7cfb[_0x5d1be0(0x47e,0x4d9,_0x247f74._0x4ae5e1,0x52c)][_0x435107(_0x247f74._0x193dd0,0x450,0x475,0x3ba)](_0x4745c5)??'')+_0x3fec36);if(isUserVisibleReasoning(this['request']))return[{'type':'openai_reasoning_delta','contentIndex':_0x4745c5,'delta':_0x3fec36,'itemId':_0x48be1c,'outputIndex':_0x4c54a2}];}break;}case _0x5d1be0(0x4da,_0x247f74._0x1d7cce,_0x247f74._0x5aea2d,_0x247f74._0x440e2d):{const _0x42f5c6=typeof _0x4b0869[_0x5d1be0(0x461,_0x247f74._0x3ea88d,0x4eb,0x4ac)]===_0x435107(_0x247f74._0x52f899,_0x247f74._0x2f4cad,_0x247f74._0x1f6f9e,_0x247f74._0x32efe8)?_0x4b0869['item_id']:typeof _0x4b0869[_0x435107(0x41b,_0x247f74._0x5cef86,0x49e,0x43d)]===_0x435107(_0x247f74._0x5c804f,0x2ad,0x2df,0x376)?this[_0x5d1be0(0x451,0x382,0x431,0x4ed)][_0x5d1be0(_0x247f74._0x174688,_0x247f74._0x57698e,0x4b3,_0x247f74._0x143fd6)](_0x4b0869[_0x5d1be0(_0x247f74._0x2e6566,0x619,_0x247f74._0x445323,0x48c)]):void 0x0,_0x524950=typeof _0x4b0869[_0x5d1be0(_0x247f74._0x533498,0x496,_0x247f74._0x3b0372,0x468)]===_0x435107(_0x247f74._0x525aaa,_0x247f74._0x1f974d,0x45d,_0x247f74._0x458237)?_0x4b0869[_0x5d1be0(_0x247f74._0x49bf79,_0x247f74._0x5d8b8c,_0x247f74._0x3ebfe7,_0x247f74._0x39703e)]:0x0,_0x48b50e=typeof _0x4b0869['content_index']===_0x435107(_0x247f74._0x52e976,0x28a,_0x247f74._0x168eac,_0x247f74._0x3c3a37)?_0x4b0869[_0x5d1be0(_0x247f74._0x221a2e,0x411,0x4e0,0x500)]:0x0,_0x12fd2c=typeof _0x4b0869['text']===_0x5d1be0(_0x247f74._0x42e36b,0x542,_0x247f74._0x4df7bf,0x572)?_0x4b0869[_0x5d1be0(0x5d0,_0x247f74._0x103ede,0x5ad,_0x247f74._0x2d5717)]:'';_0x42f5c6&&this[_0x5d1be0(0x3a0,0x363,_0x247f74._0x3f75a3,0x3e0)](_0x42f5c6,_0x524950)[_0x5d1be0(_0x247f74._0x33b4c3,0x54d,_0x247f74._0x4ae5e1,_0x247f74._0x43a5cf)][_0x435107(0x478,_0x247f74._0x46f528,_0x247f74._0x15a696,0x506)](_0x48b50e,_0x12fd2c);break;}case _0x5d1be0(0x612,0x6c2,0x5fc,0x6c2):{this['finalResponse']=_0x4b0869[_0x435107(0x356,_0x247f74._0x25cb3b,_0x247f74._0x4c1413,0x347)];break;}case _0x5d1be0(_0x247f74._0x4702fb,0x58f,0x571,_0x247f74._0x2c78ac):{const _0x8e61d3=_0x4b0869['response'];throw new ProviderStreamEventError(_0x8e61d3?.[_0x435107(0x5f5,0x4b2,0x57c,0x50e)]?.['message']??_0x5d1be0(_0x247f74._0x3c945b,0x429,_0x247f74._0xd2e6cd,_0x247f74._0x429097),{'code':_0x8e61d3?.[_0x5d1be0(0x65a,0x521,0x607,0x5fc)]?.['code'],'retryable':!![]});}case _0x5d1be0(0x6ca,0x514,0x607,_0x247f74._0x4dd2a2):{const _0x18d4e3=_0x4b0869[_0x435107(_0x247f74._0x1ae4b6,_0x247f74._0x336a85,_0x247f74._0xe2a742,0x50e)];throw new ProviderStreamEventError(_0x18d4e3?.[_0x5d1be0(_0x247f74._0x16ab64,_0x247f74._0x5f0dcc,0x4e1,0x4f4)]??_0x5d1be0(0x536,_0x247f74._0x408182,_0x247f74._0x485324,0x3fc),{'code':_0x18d4e3?.[_0x435107(_0x247f74._0x12325a,0x366,0x4ec,_0x247f74._0x237e9c)],'retryable':!![],'status':typeof _0x4b0869[_0x5d1be0(0x3da,_0x247f74._0x28fba1,0x458,_0x247f74._0x547c6b)]===_0x5d1be0(_0x247f74._0x291353,0x4e2,0x46f,0x454)?_0x4b0869[_0x435107(0x3de,_0x247f74._0x9847d6,0x2cf,_0x247f74._0x2dd762)]:void 0x0});}}function _0x5d1be0(_0x2aaa22,_0x34477a,_0x8466c3,_0x4e0c2d){return _0x54ac71(_0x2aaa22-_0x382d2d._0x4303e8,_0x2aaa22,_0x8466c3-0x125,_0x4e0c2d-0x10);}function _0x435107(_0x3f8f49,_0x173a31,_0x4046e5,_0x25ad07){return _0x5276b1(_0x3f8f49,_0x173a31-0x6d,_0x4046e5-_0xb292ff._0x3a7b8d,_0x25ad07-0x429);}return[];}[_0x54ac71(0x4df,0x593,0x4a5,0x4c9)](){const _0x5d0d57={_0x42c750:0xc0,_0x2260f7:0x8b,_0x1abf6c:0x101,_0x32feeb:0x65,_0x3e567b:0x77,_0x437030:0x29e,_0x740bb8:0x70,_0x348179:0x253,_0x1359fc:0x18d,_0x55466a:0x162,_0x3bb43d:0x136,_0x1da1f7:0x1a9,_0x4087a5:0x144,_0x3bec08:0x172,_0x282f0f:0x1ea,_0x5de10d:0xf0,_0x1459b2:0x2d,_0x131325:0xcb,_0x27eee8:0x120,_0xdba69d:0x168,_0x3e657f:0xc4,_0x6ec792:0x228,_0x127e70:0x153,_0x4d9cb6:0x27,_0x418e7a:0xbb,_0x1bd912:0x12a,_0x50cf0f:0x175,_0x41b221:0x145,_0x289c70:0x4a,_0xe9b15d:0xe9,_0x1b7bb6:0x165,_0x4123fa:0x1a8,_0x3e8b96:0x115,_0x57bd8a:0x7d,_0x5cc42f:0xff,_0x381254:0xdd,_0x52ca3b:0xea,_0x513f5e:0xa2,_0x515c75:0x221,_0x41e835:0x245,_0x11661b:0x255,_0x5d2e65:0x2a,_0x2e1a02:0x56,_0x209048:0x120,_0x13889b:0xe6,_0x22532c:0xa5,_0x3d7727:0x4c,_0xe63266:0x38,_0x25525f:0x209,_0x254045:0x2f6,_0x1a67cc:0x20a,_0x4198f2:0x154,_0x5efb28:0x1ca,_0x2d5449:0x11d,_0x49fb4d:0x197,_0x444dbc:0x6e,_0x250ef3:0x31,_0x5defb1:0x18a,_0x2830f4:0x1ce,_0x280a88:0x294,_0x332809:0x1e,_0xd06630:0xe9},_0x3b6a34={_0x4cb73a:0x353},_0x43e5da={_0x1b659a:0x1af},_0x1530e4={_0x52066b:0xdd},_0x2d729f={_0x13bb37:0xd6},_0x152ac1=[];for(const [_0x328829,_0x62d4f5]of this[_0x3dd676(0xaa,0x40,_0x5d0d57._0x42c750,_0x5d0d57._0x2260f7)][_0x3dd676(_0x5d0d57._0x1abf6c,-_0x5d0d57._0x32feeb,-0x22,_0x5d0d57._0x3e567b)]()){const _0x55c0ea=_0x62d4f5['join']('');if(_0x55c0ea[_0x3dd676(0x1be,_0x5d0d57._0x437030,0x2be,0x20a)]===0x0)continue;_0x152ac1['push']({'index':_0x328829,'item':{'type':_0x5afb60(-_0x5d0d57._0x740bb8,-0x18d,-0x117,-0xaa),'role':'assistant','content':[{'type':_0x5afb60(-0x16e,-_0x5d0d57._0x348179,-_0x5d0d57._0x1359fc,-_0x5d0d57._0x55466a),'text':_0x55c0ea}]}});}function _0x5afb60(_0x2191d4,_0x2f9865,_0xfa37f3,_0x454ed6){return _0x5276b1(_0x454ed6,_0x2f9865-0x1cc,_0xfa37f3-0x15b,_0xfa37f3- -_0x2d729f._0x13bb37);}function _0x3dd676(_0x189cae,_0x5aa825,_0x3384cf,_0x3601c8){return _0x54ac71(_0x189cae-_0x1530e4._0x52066b,_0x5aa825,_0x3601c8- -0x2d4,_0x3601c8-0x149);}for(const _0x57458b of this['reasoningItems'][_0x5afb60(-_0x5d0d57._0x3bb43d,-0x18c,-_0x5d0d57._0x1da1f7,-0x15a)]()){_0x152ac1[_0x3dd676(0x166,0x1c8,_0x5d0d57._0x4087a5,_0x5d0d57._0x3bec08)]({'index':_0x57458b[_0x3dd676(0x2d9,0x200,0x141,_0x5d0d57._0x282f0f)]??_0x152ac1[_0x5afb60(-0xc2,_0x5d0d57._0x5de10d,0xb,0x14)],'item':{'type':_0x3dd676(0x1d7,_0x5d0d57._0x1459b2,_0x5d0d57._0x131325,_0x5d0d57._0x27eee8),'id':_0x57458b['id'],..._0x57458b[_0x5afb60(-0xe6,-0x219,-_0x5d0d57._0xdba69d,-0x131)]?{'encrypted_content':_0x57458b[_0x5afb60(-_0x5d0d57._0x3e657f,-_0x5d0d57._0x6ec792,-0x168,-0x11b)]}:{},..._0x57458b[_0x5afb60(-_0x5d0d57._0x127e70,-0x135,-_0x5d0d57._0x3e657f,-_0x5d0d57._0x4d9cb6)][_0x3dd676(_0x5d0d57._0x418e7a,0x1c5,0xc4,_0x5d0d57._0x1bd912)]>0x0?{'summary':Array['from'](_0x57458b[_0x5afb60(-0x18b,-0x34,-0xc4,-0xfa)][_0x5afb60(-_0x5d0d57._0x50cf0f,-_0x5d0d57._0x41b221,-0x188,-0x216)]())[_0x3dd676(-0x7a,0x6a,_0x5d0d57._0x289c70,0x31)]((_0x522ed9,_0x275a1f)=>_0x522ed9[0x0]-_0x275a1f[0x0])[_0x5afb60(-0xdc,-0x2b,-_0x5d0d57._0xe9b15d,-_0x5d0d57._0x1b7bb6)](([,_0x4724c3])=>{function _0x240da1(_0x1ac2a6,_0x56ddb8,_0x152d25,_0x12f33f){return _0x3dd676(_0x1ac2a6-0x108,_0x1ac2a6,_0x152d25-_0x43e5da._0x1b659a,_0x152d25-0x1a2);}return{'type':_0x240da1(0x434,0x280,_0x3b6a34._0x4cb73a,0x32c),'text':_0x4724c3};})}:{},..._0x57458b[_0x5afb60(-_0x5d0d57._0x4123fa,-_0x5d0d57._0x3e8b96,-0x15d,-_0x5d0d57._0x57bd8a)][_0x5afb60(-0x15e,-0x166,-0xd5,-_0x5d0d57._0x5cc42f)]>0x0?{'text':Array[_0x3dd676(_0x5d0d57._0x381254,0x11e,_0x5d0d57._0x52ca3b,0x1af)](_0x57458b[_0x3dd676(0x51,0x6c,0x175,_0x5d0d57._0x513f5e)][_0x5afb60(-0xb3,-_0x5d0d57._0x515c75,-0x188,-_0x5d0d57._0x41e835)]())[_0x3dd676(0x105,0x76,0x28,0x31)]((_0x574d6c,_0x5a9389)=>_0x574d6c[0x0]-_0x5a9389[0x0])['map'](([,_0x1d80c5])=>_0x1d80c5)[_0x3dd676(_0x5d0d57._0x11661b,0x161,0x80,0x163)]('')}:{}}});}for(const _0x5efef7 of this['toolCalls'][_0x3dd676(-0x76,-_0x5d0d57._0x5d2e65,0x24,_0x5d0d57._0x2e1a02)]()){_0x152ac1[_0x3dd676(0x22b,_0x5d0d57._0x209048,_0x5d0d57._0x13889b,0x172)]({'index':this['callIdToOutputIndex'][_0x3dd676(_0x5d0d57._0x22532c,_0x5d0d57._0x3d7727,-_0x5d0d57._0xe63266,0xba)](_0x5efef7['id'])??_0x152ac1[_0x3dd676(0x284,_0x5d0d57._0x25525f,_0x5d0d57._0x254045,_0x5d0d57._0x1a67cc)],'item':{'type':'function_call','call_id':_0x5efef7['id'],'name':_0x5efef7[_0x5afb60(-0x1bd,-0x10e,-_0x5d0d57._0x4198f2,-0xb4)][_0x5afb60(-_0x5d0d57._0x5efb28,-_0x5d0d57._0x2d5449,-_0x5d0d57._0x49fb4d,-0x132)],'arguments':_0x5efef7[_0x5afb60(-0xf3,-_0x5d0d57._0x444dbc,-0x154,-0x243)][_0x3dd676(0x105,_0x5d0d57._0x250ef3,0xc5,0x46)]}});}return _0x152ac1[_0x5afb60(-_0x5d0d57._0x5defb1,-0x236,-_0x5d0d57._0x2830f4,-_0x5d0d57._0x280a88)]((_0xa93510,_0x2d8dfc)=>_0xa93510[_0x3dd676(0x98,0x6b,0x1a8,0x124)]-_0x2d8dfc[_0x5afb60(-0x66,-0xbb,-0xdb,-0x7b)])[_0x5afb60(-_0x5d0d57._0x332809,-0x4d,-_0x5d0d57._0xd06630,-0x1b3)](_0x49bd61=>_0x49bd61[_0x3dd676(0x10f,0x164,0x24e,0x173)]);}[_0x5276b1(-0x30,-0x10b,-0x3,-0xd0)](_0x4232b0,_0x31ec13){const _0x6ea2={_0x18781d:0x21a,_0x20bb41:0x34,_0x3916c7:0x8c,_0x181924:0x1ed,_0x171660:0x127,_0xaa8de3:0x1cc,_0x5e9c1a:0x19,_0x4a2cda:0xc9,_0x5adc1f:0x86,_0x5b1ba3:0x339,_0x5847bf:0x2b6,_0x1b7463:0x22b,_0x1068ad:0x3d0,_0x3f4b2b:0x362,_0x179e3e:0x385,_0x295e1b:0x1f,_0x32a0d4:0x4b,_0x3c0db8:0x6c},_0x2fdc8c={_0x5c139b:0x22,_0xb30a43:0x178,_0x4563ad:0xcd},_0x4866d3=this['reasoningItems'][_0x3a6294(0x24d,0x247,0x216,_0x6ea2._0x18781d)](_0x4232b0);function _0x3a6294(_0x2aecd6,_0x4bc3a5,_0x17ce3f,_0x3077f5){return _0x54ac71(_0x2aecd6-_0x2fdc8c._0x5c139b,_0x4bc3a5,_0x17ce3f- -_0x2fdc8c._0xb30a43,_0x3077f5-_0x2fdc8c._0x4563ad);}if(_0x4866d3)return _0x31ec13!==void 0x0&&(_0x4866d3[_0x246485(-0x3b,-_0x6ea2._0x20bb41,-0xa9,_0x6ea2._0x3916c7)]=_0x31ec13,this[_0x246485(-_0x6ea2._0x181924,-0x17d,-_0x6ea2._0x171660,-_0x6ea2._0xaa8de3)][_0x246485(-0x1f,-_0x6ea2._0x5e9c1a,-_0x6ea2._0x4a2cda,-_0x6ea2._0x5adc1f)](_0x31ec13,_0x4232b0)),_0x4866d3;const _0x5cf9db={'id':_0x4232b0,'outputIndex':_0x31ec13,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x3a6294(0x340,_0x6ea2._0x5b1ba3,_0x6ea2._0x5847bf,_0x6ea2._0x1b7463)][_0x3a6294(0x39a,_0x6ea2._0x1068ad,_0x6ea2._0x3f4b2b,_0x6ea2._0x179e3e)](_0x4232b0,_0x5cf9db);_0x31ec13!==void 0x0&&this['outputIndexToReasoningId'][_0x246485(-_0x6ea2._0x295e1b,0x7a,-_0x6ea2._0x32a0d4,-_0x6ea2._0x3c0db8)](_0x31ec13,_0x4232b0);function _0x246485(_0x37764a,_0x429283,_0x66ea81,_0x3dffae){return _0x5276b1(_0x66ea81,_0x429283-0x14f,_0x66ea81-0x2,_0x37764a- -0xfc);}return _0x5cf9db;}};function createOpenAiResponsesStreamParser(_0x3c1bed){return new OpenAiResponsesStreamParser(_0x3c1bed);}function createOpenAiSurfaces(_0x84e1fd={}){const _0x5a7db4={_0xc80edd:0x95,_0x456584:0x2a,_0x27e174:0x7e,_0x16a77c:0x2c,_0x351889:0x1b7,_0x4dd419:0x1cd,_0x59f647:0x1dd,_0x4bd458:0x86,_0x34d115:0x1c7,_0x69f2de:0x101,_0x220be9:0x18,_0x5f07bf:0x36,_0x5522e5:0x72,_0x5f1fc5:0x68,_0x8db55a:0x53},_0x5ad576={_0x4f4da5:0x1e6,_0x285779:0x21b,_0x5c3363:0x308},_0x2e6731={_0x1dba54:0x17c,_0x30c1f4:0x1a3,_0x42882e:0x1b5},_0x4ba63b={_0x2974b5:0xb,_0x32ee7f:0x9b},_0x41cd35={_0xceb687:0x193,_0x4dc8ad:0x14},_0x2dba40={_0x1c3787:0x13f,_0xdecd32:0x41b,_0x2c4344:0x366,_0xe47a6f:0x329},_0x5af116={_0x37707e:0x111,_0x127299:0x15c,_0x2803d8:0x18a},_0x2f9f58={_0x6e378c:0x2f3,_0x4361c7:0x328},_0x1f5937={_0x2882e6:0x19c,_0x447731:0x175},_0x2a5376={_0x3c8d51:0x130,_0x56f036:0x6f},_0x296d16={_0x48f520:0x7f,_0x5d198a:0xa},_0x357225={_0x32a24e:0xf4,_0x251035:0x13b};function _0x5c840a(_0x4a0225,_0x2be31d,_0x4879cb,_0x495288){return _0x5276b1(_0x2be31d,_0x2be31d-_0x357225._0x32a24e,_0x4879cb-0x192,_0x4a0225-_0x357225._0x251035);}function _0x1affbb(_0x12abef,_0x38e0ad,_0x36d5ef,_0x48aeea){return _0x5276b1(_0x12abef,_0x38e0ad-_0x296d16._0x48f520,_0x36d5ef-0x58,_0x36d5ef- -_0x296d16._0x5d198a);}const _0x518141=_0x84e1fd[_0x5c840a(0xc5,_0x5a7db4._0xc80edd,0x1e,-_0x5a7db4._0x456584)]??'/chat/completions',_0x4e9596=_0x84e1fd['responsesPath']??_0x1affbb(-_0x5a7db4._0x27e174,0x93,0x36,0xb);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x1affbb(-0x18b,-_0x5a7db4._0x16a77c,-0x101,-0x1a4),'createRequest'(_0xbba270){function _0x46d2a4(_0x35822f,_0x150743,_0x2531dc,_0x356a8f){return _0x5c840a(_0x150743-0x73,_0x356a8f,_0x2531dc-_0x2a5376._0x3c8d51,_0x356a8f-_0x2a5376._0x56f036);}return{'accept':_0x46d2a4(_0x1f5937._0x2882e6,0x125,_0x1f5937._0x447731,_0x1f5937._0x2882e6),'body':createChatRequestBody(_0xbba270,![]),'path':_0x518141};},'parseResponse'(_0x2aa050){return parseChatCompletionResponse(_0x2aa050);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x5c840a(_0x5a7db4._0x351889,_0x5a7db4._0x4dd419,0x133,_0x5a7db4._0x59f647),'createRequest'(_0x33e840){const _0x33be0d={_0x42b98d:0x3af,_0x310c95:0x10e};function _0x201bf1(_0x4afbef,_0x144f12,_0x148ebb,_0x82a89){return _0x1affbb(_0x4afbef,_0x144f12-0x10d,_0x148ebb-_0x33be0d._0x42b98d,_0x82a89-_0x33be0d._0x310c95);}return{'accept':_0x201bf1(_0x2f9f58._0x6e378c,0x3cc,_0x2f9f58._0x4361c7,0x2fa),'body':createChatRequestBody(_0x33e840,!![]),'path':_0x518141};},'createStreamParser'(_0x41e43a){return new OpenAiChatCompletionsStreamParser(_0x41e43a);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x1affbb(-_0x5a7db4._0x4bd458,-_0x5a7db4._0x34d115,-_0x5a7db4._0x69f2de,-0x18c),'createRequest'(_0x3999dd){function _0x41ca7e(_0x1ead3b,_0x2c851c,_0x5d73e5,_0x4b1199){return _0x5c840a(_0x2c851c-_0x5af116._0x37707e,_0x1ead3b,_0x5d73e5-_0x5af116._0x127299,_0x4b1199-_0x5af116._0x2803d8);}function _0x24f426(_0x44abbc,_0x388e2e,_0x38f737,_0x17670a){return _0x5c840a(_0x17670a-0x16c,_0x38f737,_0x38f737-0x1e3,_0x17670a-0x14d);}return{'accept':_0x41ca7e(_0x2dba40._0x1c3787,0x1c3,0x23c,0x287),'body':createResponsesRequestBody(_0x3999dd,![],_0x84e1fd[_0x24f426(_0x2dba40._0xdecd32,0x417,_0x2dba40._0x2c4344,_0x2dba40._0xe47a6f)]),'path':_0x4e9596};},'parseResponse'(_0x10abda,_0x4269aa){return parseResponsesResponse(_0x10abda,_0x4269aa);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x1affbb(-_0x5a7db4._0x220be9,_0x5a7db4._0x5f07bf,_0x5a7db4._0x5522e5,-0x54),'createRequest'(_0x21e01e){const _0x44aa69={_0xd6549a:0x2};function _0x303899(_0x3e4679,_0x1e1aca,_0x9ad041,_0x41e89c){return _0x1affbb(_0x41e89c,_0x1e1aca-_0x41cd35._0xceb687,_0x9ad041- -_0x41cd35._0x4dc8ad,_0x41e89c-0x13a);}function _0x7af4d5(_0x1f5d85,_0x2c7cd7,_0x148fb7,_0x3bb381){return _0x5c840a(_0x3bb381- -0x186,_0x148fb7,_0x148fb7-_0x44aa69._0xd6549a,_0x3bb381-0xba);}return{'accept':_0x303899(_0x4ba63b._0x2974b5,-0x1e,-_0x4ba63b._0x32ee7f,-0x28),'body':createResponsesRequestBody(_0x21e01e,!![],_0x84e1fd[_0x7af4d5(-0x23,0xa7,-0x7b,0x37)]),'path':_0x4e9596};},'createStreamParser'(_0x5ac9ee){return new OpenAiResponsesStreamParser(_0x5ac9ee);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x1affbb(_0x5a7db4._0x5f1fc5,_0x5a7db4._0x8db55a,0xb1,0xdc),'createRequest'(_0x2e5794){function _0x197699(_0x390546,_0x3bc236,_0x17ed7b,_0x4e788c){return _0x1affbb(_0x4e788c,_0x3bc236-_0x2e6731._0x1dba54,_0x17ed7b-_0x2e6731._0x30c1f4,_0x4e788c-_0x2e6731._0x42882e);}return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x2e5794,{'promptCacheKey':_0x84e1fd[_0x197699(0x14d,_0x5ad576._0x4f4da5,_0x5ad576._0x285779,_0x5ad576._0x5c3363)]?.(_0x2e5794)}),'path':_0x4e9596};},'createStreamParser'(_0x363087){return createOpenAiResponsesStreamParser(_0x363087);}}];}var OpenAiProviderAdapter=class{[_0x54ac71(0x4b0,0x2dd,0x3cd,0x4a1)];constructor(_0x56a8fc){this['headerResolver']=_0x56a8fc;}['createMissingCredentialError'](){const _0xc7dcb={_0x38618e:0x361,_0x4d32d3:0x412},_0x1a5e21={_0x32a3ce:0x37f};function _0x19afd3(_0x5e77b2,_0x12d88d,_0x549f77,_0x164deb){return _0x5276b1(_0x164deb,_0x12d88d-0x1ae,_0x549f77-0x10f,_0x12d88d-_0x1a5e21._0x32a3ce);}return new Error(_0x19afd3(0x2c3,_0xc7dcb._0x38618e,_0xc7dcb._0x4d32d3,0x34a));}async[_0x5276b1(0x4d,0x86,0xb,0xb1)](_0x408932,_0x5d1c07){const _0x4be283={_0x48a2ea:0x796,_0x3d9e04:0x614,_0x1d96f7:0x6f7,_0x4b2142:0x598,_0x1e4aac:0x519,_0x2482d2:0x1cd,_0x4932fa:0x186,_0x3321c8:0xec,_0x33b6a6:0x674,_0x25c199:0x6f7,_0x52ebb1:0xb2,_0x5b171e:0x1d,_0x218a6c:0x10f,_0xe5d0e5:0xe6,_0x564ff1:0xa,_0x113733:0xbd,_0x279e80:0x60,_0xd8739e:0x5d,_0x180560:0x64,_0x215df7:0xba,_0x678971:0xb4,_0x2259b5:0x25,_0x2d26e2:0x38,_0x2e0632:0x53,_0xc54de0:0xe1,_0x295a31:0x21,_0x2cbf5d:0xf,_0x44c992:0xcb,_0x9be7d3:0x1,_0x2aa920:0x6aa,_0x5e52e5:0x6b1,_0x4fa9c5:0x640,_0x39d950:0x647,_0x4fdece:0x6e7},_0x50f317={_0x25438a:0x4a},_0x5b19b0=new Headers();function _0x1744e5(_0x4b9514,_0x11b7bf,_0x49ae3b,_0x891a1c){return _0x54ac71(_0x4b9514-0x1b0,_0x49ae3b,_0x891a1c-0x21d,_0x891a1c-0x2e);}_0x5b19b0[_0x1744e5(_0x4be283._0x48a2ea,0x676,_0x4be283._0x3d9e04,_0x4be283._0x1d96f7)](_0x1744e5(0x592,_0x4be283._0x4b2142,0x500,_0x4be283._0x1e4aac),_0x5d1c07[_0x24dddb(-_0x4be283._0x2482d2,-_0x4be283._0x4932fa,-_0x4be283._0x3321c8,-0x135)]),_0x5b19b0[_0x1744e5(0x7cc,_0x4be283._0x33b6a6,0x7e6,_0x4be283._0x25c199)](_0x1744e5(0x5c8,0x503,0x4b3,0x592),'Bearer\x20'+_0x408932[_0x24dddb(-_0x4be283._0x52ebb1,-0x95,-0xe5,-_0x4be283._0x5b171e)][_0x24dddb(-0xf6,-0x13f,-0x107,-0x127)]);_0x5d1c07['includeContentType']!==![]&&_0x5b19b0[_0x24dddb(_0x4be283._0x218a6c,0xdd,_0x4be283._0xe5d0e5,0xa9)]('content-type',_0x24dddb(-0x10e,0x14,_0x4be283._0x564ff1,-_0x4be283._0x113733));const _0x43333c=await this[_0x24dddb(-_0x4be283._0x279e80,-_0x4be283._0xd8739e,0x12,-_0x4be283._0x180560)]?.({'body':_0x408932[_0x24dddb(-_0x4be283._0x215df7,-_0x4be283._0x678971,_0x4be283._0x2259b5,-0x72)],'credential':_0x408932['credential'],'request':_0x408932[_0x24dddb(_0x4be283._0x2d26e2,-_0x4be283._0x2e0632,-_0x4be283._0xc54de0,-0xb8)],'session':_0x408932[_0x24dddb(_0x4be283._0x295a31,_0x4be283._0x2cbf5d,-_0x4be283._0x44c992,_0x4be283._0x9be7d3)],'stream':_0x408932[_0x1744e5(_0x4be283._0x2aa920,_0x4be283._0x5e52e5,0x64b,_0x4be283._0x4fa9c5)]});function _0x24dddb(_0x5744a1,_0x32c218,_0x5021ec,_0x3fffa6){return _0x54ac71(_0x5744a1-_0x50f317._0x25438a,_0x32c218,_0x3fffa6- -0x431,_0x3fffa6-0x6);}for(const [_0x34c63a,_0xaa0cb1]of Object['entries'](_0x43333c??{})){_0x5b19b0[_0x1744e5(0x7db,_0x4be283._0x39d950,_0x4be283._0x4fdece,_0x4be283._0x1d96f7)](_0x34c63a,_0xaa0cb1);}return _0x5b19b0;}[_0x54ac71(0x521,0x4ef,0x48a,0x46a)](_0x2ca694){return _0x2ca694;}[_0x5276b1(-0x11c,-0xf4,-0xc1,-0xd7)](_0x4c9e7f,_0x30f730){return resolveSessionBaseUrl(_0x4c9e7f,_0x30f730);}[_0x54ac71(0x465,0x449,0x384,0x359)](_0x2f3596,_0x4cd349){return resolveApiCredential(_0x2f3596,_0x4cd349);}async[_0x5276b1(0x67,0xc1,-0x5e,-0x1f)](_0x2ebec1){return await createOpenAiApiError(_0x2ebec1);}},OpenAiModel=class extends RoutedModel{[_0x5276b1(0xda,0x194,0xc1,0xd5)]=new Map();['promptCacheKeyResolver'];[_0x54ac71(0x2ed,0x2a0,0x387,0x42d)];['responsesPath'];constructor(_0x419296={}){const _0x184f6f={_0x28d75e:0x191,_0x5bc1e0:0x13e,_0xc317f8:0x6b,_0x52e2f8:0xc0,_0x55951e:0x6f,_0xddbb1e:0x20,_0x66d31f:0x77,_0x2647dc:0x108,_0x526107:0x2e5,_0x85e860:0x3b1,_0x469720:0x359,_0xfad646:0xa3,_0x5bc498:0x7,_0x1301ac:0xb6,_0x66ae72:0x2,_0x1ea036:0xba,_0x30f6d4:0x151,_0x4f81a4:0x323,_0x4f0f0b:0x3b2,_0x29f59e:0xc8,_0x51a7c6:0x192,_0xa7ab0d:0x30,_0x1c537a:0x10f,_0x4fb66e:0x99,_0x30ad10:0x12,_0x5e1d2f:0x73,_0x327735:0x411,_0xa382f2:0x405,_0x5bef4c:0x333,_0x56e300:0x3bb,_0x558a36:0x3,_0x3a5e4a:0x4ee,_0x3ed792:0x3ed,_0x452f41:0x432,_0x46687a:0x471,_0x303b39:0x398,_0x464af2:0x461,_0x545f65:0x490,_0xcb9ac5:0x7,_0xf0f9ff:0x43},_0x43f00a={_0x4cb767:0x9f,_0x32906a:0x17b},_0x503d7c={_0x171d5f:0x3a7};function _0x42a6a5(_0xd9bb0d,_0x21effc,_0xe3e501,_0x20a295){return _0x54ac71(_0xd9bb0d-0xa7,_0x20a295,_0x21effc- -_0x503d7c._0x171d5f,_0x20a295-0x126);}const _0x2b4fcc=_0x419296[_0x42a6a5(_0x184f6f._0x28d75e,_0x184f6f._0x5bc1e0,_0x184f6f._0xc317f8,_0x184f6f._0x52e2f8)]??_0x4a8ada(0x379,0x371,0x3c0,0x3af),_0x557ca0=_0x419296[_0x42a6a5(-_0x184f6f._0x55951e,-_0x184f6f._0xddbb1e,_0x184f6f._0x66d31f,-_0x184f6f._0x2647dc)]??_0x4a8ada(0x37f,_0x184f6f._0x526107,_0x184f6f._0x85e860,_0x184f6f._0x469720),_0x131a3f=_0x419296[_0x42a6a5(-_0x184f6f._0xfad646,_0x184f6f._0x5bc498,0x7b,0x7c)]??'/responses';function _0x4a8ada(_0xd96067,_0x1bcfea,_0x2bd106,_0x44a963){return _0x5276b1(_0xd96067,_0x1bcfea-_0x43f00a._0x4cb767,_0x2bd106-_0x43f00a._0x32906a,_0x44a963-0x40e);}super({'apiKey':_0x419296[_0x42a6a5(_0x184f6f._0x1301ac,-_0x184f6f._0x66ae72,-_0x184f6f._0x1ea036,-0xf7)],'baseUrl':trimTrailingSlashes(_0x419296[_0x42a6a5(-0x12d,-0x68,-_0x184f6f._0x30f6d4,-0xcc)]??_0x4a8ada(_0x184f6f._0x4f81a4,0x2fb,_0x184f6f._0x4f0f0b,0x3d3)),'fetch':_0x419296['fetch'],..._0x419296[_0x42a6a5(-0x7,-_0x184f6f._0xfad646,-_0x184f6f._0x29f59e,-_0x184f6f._0x51a7c6)]!==void 0x0?{'maxTokens':_0x419296[_0x42a6a5(-0x140,-0xa3,_0x184f6f._0xa7ab0d,-_0x184f6f._0x1c537a)]}:{},'model':_0x2b4fcc,'modelIdentity':_0x419296[_0x42a6a5(-_0x184f6f._0x4fb66e,-_0x184f6f._0x30ad10,-0x8e,-_0x184f6f._0x5e1d2f)],'reasoning':_0x419296[_0x4a8ada(0x453,0x48a,_0x184f6f._0x327735,_0x184f6f._0xa382f2)],'providerAdapter':new OpenAiProviderAdapter(_0x419296['headerResolver']),'providerSessionResolver':_0x419296[_0x4a8ada(_0x184f6f._0x5bef4c,_0x184f6f._0x56e300,0x36a,0x339)],'requestMutators':_0x419296[_0x42a6a5(-_0x184f6f._0x558a36,0xe9,0xc3,0x165)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x419296['sessionManager'],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x557ca0,'promptCacheKeyResolver':_0x419296[_0x4a8ada(0x4bf,0x3bd,0x478,0x490)],'responsesPath':_0x131a3f}),'webSocketFactory':_0x419296[_0x4a8ada(0x46a,_0x184f6f._0x3a5e4a,_0x184f6f._0x3ed792,0x43c)]}),this[_0x4a8ada(_0x184f6f._0x452f41,0x308,_0x184f6f._0x46687a,_0x184f6f._0x303b39)]=_0x557ca0,this['promptCacheKeyResolver']=_0x419296[_0x4a8ada(_0x184f6f._0x464af2,0x4d1,0x44c,_0x184f6f._0x545f65)],this[_0x42a6a5(-0x34,_0x184f6f._0xcb9ac5,-0xc2,-_0x184f6f._0xf0f9ff)]=_0x131a3f;}[_0x5276b1(0x1c3,0x16e,0x1ae,0xd7)](_0x51fce0,_0xf863a){const _0x83f92e={_0x370779:0xe8,_0x3087f9:0x116},_0x2412d3={_0x277819:0x18c};function _0x3ab09e(_0x516002,_0x1bf769,_0x8e80e1,_0x1518ef){return _0x5276b1(_0x8e80e1,_0x1bf769-0x1f0,_0x8e80e1-_0x2412d3._0x277819,_0x1bf769- -0x6d);}return this[_0x3ab09e(_0x83f92e._0x370779,0x72,0x36,_0x83f92e._0x3087f9)](_0x51fce0,OPENAI_CHAT_COMPLETIONS_SURFACE,_0xf863a);}['completeViaResponsesSurface'](_0x512971,_0x217e07){const _0x32caef={_0xf75b3d:0x433,_0x3e815b:0x4cf,_0x2c4518:0x449},_0x460444={_0x4ca194:0xd2,_0x4328fe:0x36a};function _0xf7f0bc(_0x3155b3,_0x28f57e,_0x1a494e,_0x5769af){return _0x5276b1(_0x3155b3,_0x28f57e-0xa9,_0x1a494e-_0x460444._0x4ca194,_0x5769af-_0x460444._0x4328fe);}return this[_0xf7f0bc(_0x32caef._0xf75b3d,0x48d,_0x32caef._0x3e815b,_0x32caef._0x2c4518)](_0x512971,OPENAI_RESPONSES_SURFACE,_0x217e07);}['completeViaResponsesWebSocketSurface'](_0xf7e279,_0x2689e3){const _0x23be47={_0x28be20:0x258,_0x177b19:0x261,_0x380e3e:0xb8},_0x20608b={_0x1a3cc0:0x131,_0x5cb466:0xed,_0x4e4630:0xcc};function _0x37c3d7(_0x392ccc,_0x2ea5dd,_0x384ec9,_0x2f68d3){return _0x5276b1(_0x384ec9,_0x2ea5dd-_0x20608b._0x1a3cc0,_0x384ec9-_0x20608b._0x5cb466,_0x392ccc-_0x20608b._0x4e4630);}return this[_0x37c3d7(0x1ab,_0x23be47._0x28be20,_0x23be47._0x177b19,_0x23be47._0x380e3e)](_0xf7e279,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x2689e3);}[_0x5276b1(-0x114,-0x9f,0x4a,-0x45)](_0x4a1c05,_0x24df8b){return this['streamViaSurface'](_0x4a1c05,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x24df8b);}['streamViaResponsesSurface'](_0x263624,_0x44b480){const _0x1baae0={_0x192c27:0x37a},_0x45f901={_0x288107:0x175};function _0x51e84d(_0x3a0fec,_0x42d980,_0x13a6b0,_0x5bb727){return _0x5276b1(_0x13a6b0,_0x42d980-0x64,_0x13a6b0-_0x45f901._0x288107,_0x3a0fec-0x4de);}return this[_0x51e84d(0x462,_0x1baae0._0x192c27,0x495,0x383)](_0x263624,OPENAI_RESPONSES_STREAM_SURFACE,_0x44b480);}[_0x5276b1(-0x180,-0x6b,-0xa7,-0xde)](_0x4dcaed,_0x570aad){const _0x13c70d={_0x996fb8:0x33b,_0xde02a6:0x38a},_0x1a9fbf={_0x22907a:0xef,_0x384d28:0x406};function _0x3ff952(_0x4aaf3f,_0xb85e4b,_0x4a1df1,_0x46ecd6){return _0x5276b1(_0x4a1df1,_0xb85e4b-0x129,_0x4a1df1-_0x1a9fbf._0x22907a,_0x46ecd6-_0x1a9fbf._0x384d28);}return this[_0x3ff952(_0x13c70d._0x996fb8,0x2a2,0x3e5,_0x13c70d._0xde02a6)](_0x4dcaed,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x570aad);}async['chatComplete'](_0x1ca2f0,_0x142de5){try{return await this['completeViaChatCompletionsSurface'](_0x1ca2f0,_0x142de5);}catch(_0x10462b){if(_0x10462b instanceof OpenAiApiError)throw this['mapApiError'](_0x10462b);throw _0x10462b;}}async[_0x54ac71(0x2fa,0x352,0x31b,0x250)](_0x668a8,_0x5ddbbb){const _0x27cd98={_0xec60ee:0x6be,_0x5e3543:0x5ee,_0x265aaa:0x6b4,_0x58a169:0x68e,_0xfd1c9e:0x5fc,_0x20eb86:0x5d4},_0xea2dec={_0x4af7ec:0x10,_0x17064f:0xef},_0x183705={_0x259ca3:0xdf};function _0x4f8bbc(_0x3feb49,_0xa2bfd5,_0x8f64c9,_0x2106e2){return _0x54ac71(_0x3feb49-_0x183705._0x259ca3,_0x2106e2,_0x3feb49- -0x304,_0x2106e2-0xc9);}function _0x1109ba(_0x37104a,_0x156c3e,_0x18efa5,_0x4c5e82){return _0x54ac71(_0x37104a-_0xea2dec._0x4af7ec,_0x4c5e82,_0x18efa5-0x14a,_0x4c5e82-_0xea2dec._0x17064f);}try{return await this[_0x1109ba(0x517,_0x27cd98._0xec60ee,_0x27cd98._0x5e3543,_0x27cd98._0x265aaa)](_0x668a8,_0x5ddbbb);}catch(_0x57ac5c){if(_0x57ac5c instanceof OpenAiApiError)throw this[_0x1109ba(_0x27cd98._0x58a169,_0x27cd98._0xfd1c9e,_0x27cd98._0x20eb86,0x665)](_0x57ac5c);throw _0x57ac5c;}}async[_0x5276b1(-0x53,-0x156,-0x71,-0xa5)](_0x47ec34,_0x5aed83){const _0x16ec30={_0x275723:0x32c,_0x19c9f8:0x364,_0x1f71f1:0x210,_0x1c351a:0x7,_0x375720:0x113,_0x5e8f34:0x1a5,_0x115076:0xf7},_0x43f52d={_0x23d3eb:0x183},_0x1d6ea1={_0x74245:0x187};function _0xf30d8d(_0x5114e1,_0x20a157,_0x5b0995,_0x3eb089){return _0x54ac71(_0x5114e1-_0x1d6ea1._0x74245,_0x5b0995,_0x20a157- -0x2e5,_0x3eb089-0xa8);}function _0xa8fe15(_0x44183b,_0x1e67d6,_0x15c09b,_0x277688){return _0x54ac71(_0x44183b-0x175,_0x277688,_0x15c09b- -0x1cd,_0x277688-_0x43f52d._0x23d3eb);}try{let _0x2dc279;for await(const _0x4aeee2 of this['responseSocketStream'](_0x47ec34,_0x5aed83)){_0x4aeee2[_0xa8fe15(_0x16ec30._0x275723,_0x16ec30._0x19c9f8,0x2c8,0x2fd)]===_0xa8fe15(0x19d,_0x16ec30._0x1f71f1,0x259,0x178)&&(_0x2dc279=_0x4aeee2[_0xf30d8d(0xbe,0x36,-_0x16ec30._0x1c351a,_0x16ec30._0x375720)]);}if(!_0x2dc279)throw new Error('Responses\x20WebSocket\x20request\x20did\x20not\x20produce\x20a\x20final\x20response');return _0x2dc279;}catch(_0x19448a){if(_0x19448a instanceof OpenAiApiError)throw this[_0xf30d8d(0x258,_0x16ec30._0x5e8f34,_0x16ec30._0x115076,0xdc)](_0x19448a);throw _0x19448a;}}async*[_0x54ac71(0x439,0x493,0x42c,0x3dd)](_0x502672,_0x3f4fe0){const _0x4c90b5={_0x1678ef:0x51a,_0xc6a0f4:0x5bb,_0x5a4530:0x1b1,_0x412682:0x175,_0x4e5fb6:0xe6},_0xbbe6f={_0x573184:0x64b},_0x4fe1e7={_0x88afbe:0x1b3,_0xc4a63a:0x5f};function _0x4a22e9(_0x7b9ec8,_0x47a6ff,_0x2d4af0,_0x476151){return _0x5276b1(_0x476151,_0x47a6ff-_0x4fe1e7._0x88afbe,_0x2d4af0-_0x4fe1e7._0xc4a63a,_0x47a6ff-0xe8);}function _0x537025(_0x3b4483,_0x3a9f1c,_0x1c21fc,_0x8e80e7){return _0x5276b1(_0x3a9f1c,_0x3a9f1c-0x158,_0x1c21fc-0x39,_0x1c21fc-_0xbbe6f._0x573184);}try{yield*this[_0x537025(_0x4c90b5._0x1678ef,0x567,0x606,_0x4c90b5._0xc6a0f4)](_0x502672,_0x3f4fe0);}catch(_0x1e2174){if(_0x1e2174 instanceof OpenAiApiError)throw this[_0x4a22e9(_0x4c90b5._0x5a4530,_0x4c90b5._0x412682,_0x4c90b5._0x4e5fb6,0x96)](_0x1e2174);throw _0x1e2174;}}async*[_0x5276b1(-0x17e,-0x92,-0x18c,-0xec)](_0x472027,_0x167d04){const _0x2b8fc9={_0xead567:0x27,_0x4ffb8e:0x7d,_0x6787f4:0x73a,_0x55da00:0x704,_0x5a0e82:0x63f},_0x2aef51={_0x3d5d1a:0xe2,_0x94d352:0x172,_0x552e01:0x5da},_0x2a3e2e={_0x49c30c:0xdf};function _0x2428ea(_0x3b7424,_0x13326d,_0x499a95,_0x1d923c){return _0x54ac71(_0x3b7424-_0x2a3e2e._0x49c30c,_0x3b7424,_0x1d923c- -0x37e,_0x1d923c-0x5b);}function _0x30e4e6(_0x25e770,_0x29b455,_0x2cf054,_0x3230c9){return _0x5276b1(_0x29b455,_0x29b455-_0x2aef51._0x3d5d1a,_0x2cf054-_0x2aef51._0x94d352,_0x2cf054-_0x2aef51._0x552e01);}try{yield*this[_0x2428ea(-0x6d,-_0x2b8fc9._0xead567,-0x2d,_0x2b8fc9._0x4ffb8e)](_0x472027,_0x167d04);}catch(_0x3945e3){if(_0x3945e3 instanceof OpenAiApiError)throw this[_0x30e4e6(_0x2b8fc9._0x6787f4,_0x2b8fc9._0x55da00,0x667,_0x2b8fc9._0x5a0e82)](_0x3945e3);throw _0x3945e3;}}async*['responseSocketStream'](_0xe624bd,_0xa6c574){try{yield*this['streamViaPersistentResponsesSocket'](_0xe624bd,_0xa6c574);}catch(_0x2538d8){if(_0x2538d8 instanceof OpenAiApiError)throw this['mapApiError'](_0x2538d8);throw _0x2538d8;}}[_0x54ac71(0x2da,0x2c2,0x3ab,0x475)](_0x4bb0a2,_0x11a3ba){return this['chatComplete'](_0x4bb0a2,_0x11a3ba);}[_0x5276b1(-0x78,-0x80,-0x6a,0x26)](_0x31864b,_0x5b205f){const _0x187e70={_0x16a180:0x37,_0x1b6c43:0x120},_0x5b07ef={_0x45f44f:0xa8};function _0x43334a(_0xbbb4cd,_0x1d1eb2,_0x3511a1,_0x5cad0c){return _0x5276b1(_0x5cad0c,_0x1d1eb2-_0x5b07ef._0x45f44f,_0x3511a1-0x59,_0x1d1eb2-0xf1);}return this[_0x43334a(_0x187e70._0x16a180,_0x187e70._0x1b6c43,0x3e,0x57)](_0x31864b,_0x5b205f);}['getResponsesSocketSessionState'](_0x353b39){const _0x35b865={_0x13931a:0xca,_0x1a2c54:0x185,_0x8b31b6:0x1a6,_0x2f7512:0x26a,_0x4cac20:0x212,_0x57aa64:0x25e,_0x5cca85:0x36c,_0x3c039c:0x2d8,_0x18cbf7:0x40e},_0x58f555={_0x43c22b:0xe1},_0x5322eb={_0x46e807:0xdf,_0x5af3ca:0x215};function _0x5949e4(_0x1475e2,_0x17a0f4,_0x18c62b,_0x136035){return _0x5276b1(_0x18c62b,_0x17a0f4-0x42,_0x18c62b-_0x5322eb._0x46e807,_0x136035-_0x5322eb._0x5af3ca);}const _0x5196fc=this[_0x5949e4(0xfc,_0x35b865._0x13931a,_0x35b865._0x1a2c54,0x11b)](_0x353b39);let _0x27b7b3=this['responsesSocketSessions'][_0x5949e4(0x260,0x166,0x198,_0x35b865._0x8b31b6)](_0x5196fc);function _0x50436c(_0x2de05e,_0x469f0b,_0x25e6b1,_0x5bddcd){return _0x54ac71(_0x2de05e-_0x58f555._0x43c22b,_0x25e6b1,_0x2de05e- -0x16e,_0x5bddcd-0x1ca);}return!_0x27b7b3&&(_0x27b7b3={'key':_0x5196fc,'locked':![],'pending':Promise[_0x50436c(_0x35b865._0x2f7512,0x2ee,_0x35b865._0x4cac20,_0x35b865._0x57aa64)]()},this[_0x5949e4(0x2fe,0x278,0x1ff,0x2ea)][_0x50436c(_0x35b865._0x5cca85,_0x35b865._0x3c039c,0x382,_0x35b865._0x18cbf7)](_0x5196fc,_0x27b7b3)),_0x27b7b3;}[_0x54ac71(0x52e,0x5a5,0x4c9,0x50c)](_0x5a8e0d){const _0x771d11={_0x4d6b26:0xe3,_0x4223c9:0xd2,_0x2d3563:0x13b,_0x4cf844:0x22f,_0x1d83f9:0x1ad,_0x53a539:0x11f,_0x2e132f:0x1df,_0x431037:0xef,_0x2acae4:0x99,_0x55e38b:0x1b8,_0x4bdf01:0x1cd,_0x1fc594:0x1d2,_0x14523a:0x133},_0x42b6d5={_0x2ccf55:0xc2,_0x386f85:0xd2,_0x11334d:0x4a},_0xb2003c={_0x2847bc:0x171,_0x5195ad:0x21a};function _0x2cbc29(_0x3d060e,_0x5ab7f9,_0xf84fbb,_0x13f50d){return _0x54ac71(_0x3d060e-_0xb2003c._0x2847bc,_0x3d060e,_0x5ab7f9- -_0xb2003c._0x5195ad,_0x13f50d-0xc2);}function _0x309166(_0x1538e3,_0x2b0d64,_0x3f9a2a,_0x140c06){return _0x5276b1(_0x2b0d64,_0x2b0d64-_0x42b6d5._0x2ccf55,_0x3f9a2a-_0x42b6d5._0x386f85,_0x1538e3-_0x42b6d5._0x11334d);}if(_0x5a8e0d[_0x309166(-0x4a,-_0x771d11._0x4d6b26,-_0x771d11._0x4223c9,0x23)]||_0x5a8e0d[_0x2cbc29(0xa9,_0x771d11._0x2d3563,_0x771d11._0x4cf844,_0x771d11._0x1d83f9)]||_0x5a8e0d['socket'])return;this[_0x309166(_0x771d11._0x53a539,_0x771d11._0x2e132f,_0x771d11._0x431037,_0x771d11._0x2acae4)]['get'](_0x5a8e0d[_0x2cbc29(_0x771d11._0x55e38b,0x104,0x162,0x29)])===_0x5a8e0d&&this[_0x309166(0x11f,_0x771d11._0x4bdf01,0x9a,_0x771d11._0x1fc594)][_0x309166(-0x4c,0x37,-_0x771d11._0x14523a,0x8c)](_0x5a8e0d['key']);}[_0x54ac71(0x228,0x246,0x303,0x2ae)](_0x508290){const _0x4afa6b={_0x2fb290:0x240};function _0x39fde8(_0x48103a,_0x3a0f7d,_0x27d662,_0x438384){return _0x54ac71(_0x48103a-0x148,_0x438384,_0x27d662- -_0x4afa6b._0x2fb290,_0x438384-0x180);}return''+trimTrailingSlashes(this['baseUrl'])+this[_0x39fde8(0x111,0x114,0x16e,0xb6)]+'::'+_0x508290;}async[_0x5276b1(0x195,0x1a,0x13e,0xdb)](_0x4ab7c2){const _0x408f1d={_0x440173:0x637,_0x1a261b:0x13c,_0x33d463:0x224,_0x580136:0x232,_0x287043:0x1da,_0x3323e0:0x2f6,_0x4c795e:0x1c2,_0x2c8bc1:0x2b6},_0x2742c4={_0x374c10:0x3c4,_0x38e23b:0x45c,_0x4f5f22:0x39f,_0x5eddcb:0x663,_0x42311f:0x5c2,_0xebc4dc:0x6b5,_0x56d960:0x66c},_0x32873b={_0x57d595:0x52},_0x16e4a3={_0x356cce:0x1ef};function _0x469b67(_0x5989c0,_0x64d1af,_0x1c97d7,_0x42cd5b){return _0x54ac71(_0x5989c0-0xe1,_0x64d1af,_0x42cd5b- -0x14b,_0x42cd5b-0x165);}function _0x162acd(_0x3800c7,_0x3a8dfb,_0x51ead4,_0x542386){return _0x54ac71(_0x3800c7-0xf8,_0x3a8dfb,_0x542386-_0x16e4a3._0x356cce,_0x542386-0x4f);}const _0x1c37ac=_0x4ab7c2[_0x162acd(0x61f,0x678,0x723,_0x408f1d._0x440173)][_0x469b67(_0x408f1d._0x1a261b,_0x408f1d._0x33d463,_0x408f1d._0x580136,_0x408f1d._0x287043)](()=>{});let _0x1f2622;const _0x3af364=new Promise(_0x2daf8c=>{_0x1f2622=_0x2daf8c;});return _0x4ab7c2['pending']=_0x1c37ac[_0x469b67(_0x408f1d._0x3323e0,0x218,_0x408f1d._0x4c795e,0x28e)](()=>_0x3af364),await _0x1c37ac,_0x4ab7c2[_0x469b67(0x162,0x20b,_0x408f1d._0x2c8bc1,0x21e)]=!![],()=>{const _0x27bc99={_0x213748:0x12b,_0x65c419:0x14f};function _0x1a9986(_0x406cc7,_0x386a04,_0x6b4f5,_0x2672ff){return _0x162acd(_0x406cc7-_0x32873b._0x57d595,_0x406cc7,_0x6b4f5-0xb,_0x2672ff- -0x4c);}_0x4ab7c2[_0x1be27b(0x409,_0x2742c4._0x374c10,_0x2742c4._0x38e23b,_0x2742c4._0x4f5f22)]=![];function _0x1be27b(_0x5963f5,_0x5d9360,_0x174773,_0x228e92){return _0x162acd(_0x5963f5-_0x27bc99._0x213748,_0x228e92,_0x174773-0x21,_0x5963f5- -_0x27bc99._0x65c419);}_0x1f2622?.(),this[_0x1a9986(_0x2742c4._0x5eddcb,_0x2742c4._0x42311f,_0x2742c4._0xebc4dc,_0x2742c4._0x56d960)](_0x4ab7c2);};}async[_0x54ac71(0x4bc,0x533,0x4e3,0x4b8)](_0x49b957,_0x11cc6a){const _0x2ba3d2={_0x5d0889:0x2b4,_0x1b4b8e:0x273,_0xe663bd:0x2b9,_0x17c87b:0x19e,_0xb3a138:0x1c9,_0x388d74:0x40e,_0x1bd91b:0x3a4,_0x1bb654:0x498,_0x18af83:0x325,_0x2981c6:0x28d,_0x4f2d88:0x2ae,_0x5a1279:0x284,_0x405f87:0x1ad,_0x156ba5:0x98,_0x2fab59:0x113,_0x41f212:0x1e8,_0x50c7e7:0x37b,_0x9247b6:0x195,_0x47f510:0x193,_0x5d7e2e:0xb6,_0x4d57a3:0x14c,_0x2716d4:0x16b,_0x280e9c:0x2fe,_0x48de12:0x2ac,_0x5d2c65:0x31f,_0x3252b4:0x253,_0x18ab8c:0x2de,_0x3b989a:0x2e7,_0x25dc12:0x346},_0x136972={_0xa11fb5:0x12e},_0x45387f={_0x23ec34:0x103},_0x8f004a=this[_0x48af08(_0x2ba3d2._0x5d0889,0x31e,_0x2ba3d2._0x1b4b8e,_0x2ba3d2._0xe663bd)](_0x49b957),_0x3414c0=toModelRequest(_0x8f004a);function _0x48af08(_0x2e8aa2,_0x1bc9bf,_0x511d7a,_0x46841f){return _0x54ac71(_0x2e8aa2-_0x45387f._0x23ec34,_0x2e8aa2,_0x1bc9bf- -0xec,_0x46841f-0x72);}const _0x47c006=await prepareProviderRequest(_0x3414c0,{'sessionManager':this[_0x48af08(0x209,0x266,_0x2ba3d2._0x17c87b,_0x2ba3d2._0xb3a138)],'requestMutators':this[_0x48af08(_0x2ba3d2._0x388d74,_0x2ba3d2._0x1bd91b,_0x2ba3d2._0x1bb654,0x3ee)],'signal':_0x11cc6a}),_0x16e5c4=toChatRequest(_0x47c006[_0x48af08(_0x2ba3d2._0x18af83,_0x2ba3d2._0x2981c6,_0x2ba3d2._0x4f2d88,_0x2ba3d2._0x5a1279)]);function _0x3120c2(_0x3eb6c1,_0x5297ee,_0x5d9902,_0x4c13ae){return _0x5276b1(_0x5d9902,_0x5297ee-0xb3,_0x5d9902-_0x136972._0xa11fb5,_0x4c13ae-0x1a2);}const _0x81643f=this[_0x3120c2(_0x2ba3d2._0x405f87,_0x2ba3d2._0x156ba5,0x68,_0x2ba3d2._0x2fab59)][_0x48af08(_0x2ba3d2._0x41f212,0x298,0x2e8,_0x2ba3d2._0x50c7e7)](this['apiKey'],_0x47c006['session']);if(!_0x81643f)throw this[_0x3120c2(_0x2ba3d2._0x9247b6,_0x2ba3d2._0x2fab59,_0x2ba3d2._0x47f510,0xac)]();return{'baseUrl':this[_0x3120c2(_0x2ba3d2._0x5d7e2e,_0x2ba3d2._0x4d57a3,_0x2ba3d2._0x2716d4,0x113)][_0x48af08(_0x2ba3d2._0x280e9c,0x23a,_0x2ba3d2._0x48de12,0x2b3)](this[_0x48af08(_0x2ba3d2._0x5d2c65,_0x2ba3d2._0x3252b4,0x202,_0x2ba3d2._0x18ab8c)],_0x47c006['session']),'credential':_0x81643f,'request':_0x16e5c4,'session':_0x47c006[_0x48af08(_0x2ba3d2._0x3b989a,_0x2ba3d2._0x25dc12,0x30d,0x313)]};}[_0x5276b1(-0x27,0x40,0x32,0x16)](_0x3d3efe,_0x41f881,_0x2ca28a={}){const _0x235fe5={_0x2817e4:0x43,_0x1b0bb4:0x90,_0x2133de:0x22,_0x1759d5:0x77,_0x3f9868:0x417,_0x394c30:0x3ff,_0x40e2fa:0x4fd,_0x2300f3:0x46d,_0x4c3d22:0x437,_0x14a5b3:0x46a,_0x2f48ed:0x371,_0x3c651b:0x347,_0x37eca7:0x3c6,_0x4fe558:0x4a4,_0x2bf4fa:0x4da,_0x3ea9f8:0x53,_0x4e0f6f:0xd2,_0x4b0bb3:0xbe,_0x14a87f:0xe2},_0x371bcc={_0x175989:0xfa,_0x56ea28:0x41b};if(!_0x2ca28a[_0x5af9f7(-0xb1,-_0x235fe5._0x2817e4,0x32,_0x235fe5._0x1b0bb4)]){const _0xd2ace2=this[_0x5af9f7(-0x9d,-_0x235fe5._0x1b0bb4,_0x235fe5._0x2133de,_0x235fe5._0x1759d5)](_0x3d3efe);if(_0xd2ace2&&_0x41f881[_0x17e823(0x46d,_0x235fe5._0x3f9868,_0x235fe5._0x394c30,_0x235fe5._0x40e2fa)]&&_0xd2ace2[_0x5af9f7(-0x10,-0x8,-0x9e,-0x56)]===_0x41f881[_0x17e823(_0x235fe5._0x2300f3,_0x235fe5._0x4c3d22,0x3da,_0x235fe5._0x14a5b3)]){const _0x3a894a=toOpenAiResponsesRequest({..._0x3d3efe,'messages':_0x3d3efe['messages'][_0x17e823(_0x235fe5._0x2f48ed,_0x235fe5._0x3c651b,_0x235fe5._0x37eca7,0x311)](_0xd2ace2[_0x17e823(0x490,_0x235fe5._0x4fe558,_0x235fe5._0x2bf4fa,0x3b9)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x3d3efe,{'input':_0x3a894a,'promptCacheKey':this[_0x5af9f7(-_0x235fe5._0x3ea9f8,0x80,0xb,-_0x235fe5._0x4e0f6f)]?.(_0x3d3efe),'previousResponseId':_0xd2ace2['responseId']}),'previousResponseId':_0xd2ace2[_0x5af9f7(-0x189,-_0x235fe5._0x4b0bb3,-0x9e,-_0x235fe5._0x14a87f)]};}}function _0x5af9f7(_0x9321ee,_0x401e46,_0x4987fd,_0x2350c5){return _0x5276b1(_0x9321ee,_0x401e46-0x168,_0x4987fd-0xc9,_0x4987fd- -0x77);}function _0x17e823(_0x42dea6,_0x4fffaf,_0x96d3b6,_0xbb28d5){return _0x5276b1(_0xbb28d5,_0x4fffaf-0x1d1,_0x96d3b6-_0x371bcc._0x175989,_0x42dea6-_0x371bcc._0x56ea28);}return{'event':createOpenAiResponsesWebSocketEvent(_0x3d3efe,{'promptCacheKey':this[_0x17e823(0x49d,0x532,0x4f5,0x3da)]?.(_0x3d3efe)})};}['findResponsesSocketCheckpoint'](_0x1b2ac1){const _0x4e952b={_0x2e6bf0:0x142,_0x35c083:0xdb,_0x43ebe3:0xd3,_0x4f17e9:0x128,_0x4537db:0x80,_0x34ddff:0xbb,_0x1965ea:0x45,_0x24f0cb:0x18e,_0x2a164d:0xab,_0x1def13:0x76,_0x1af2ce:0x14},_0x2ee804={_0x1e2908:0x142},_0x34c31f={_0x532230:0xad,_0x2804cc:0x518,_0x1585d6:0x190};function _0x294f1d(_0x24fc03,_0x4c8601,_0x343925,_0xc57837){return _0x54ac71(_0x24fc03-_0x34c31f._0x532230,_0x4c8601,_0xc57837- -_0x34c31f._0x2804cc,_0xc57837-_0x34c31f._0x1585d6);}for(let _0x36b021=_0x1b2ac1['messages'][_0x5ef9bc(0x169,0x2b3,0x223,_0x4e952b._0x2e6bf0)]-0x1;_0x36b021>=0x0;_0x36b021-=0x1){const _0x3390e8=_0x1b2ac1[_0x294f1d(-0x69,-_0x4e952b._0x35c083,-_0x4e952b._0x43ebe3,-_0x4e952b._0x4f17e9)][_0x36b021],_0xe11976=_0x3390e8[_0x294f1d(_0x4e952b._0x4537db,-0x149,-_0x4e952b._0x34ddff,-0x54)]===_0x294f1d(-_0x4e952b._0x1965ea,-0xbf,-_0x4e952b._0x24f0cb,-_0x4e952b._0x2a164d)?_0x3390e8['providerState']?.[_0x5ef9bc(-0x60,-0x22,_0x4e952b._0x1def13,_0x4e952b._0x1af2ce)]:void 0x0;if(_0xe11976)return{'messageIndex':_0x36b021,'responseId':_0xe11976};}function _0x5ef9bc(_0x102f76,_0x13cc4b,_0x290e27,_0x4c262c){return _0x5276b1(_0x102f76,_0x13cc4b-0x174,_0x290e27-0x13a,_0x290e27-_0x2ee804._0x1e2908);}return void 0x0;}[_0x5276b1(0xed,0x42,0x5f,0xd6)](_0x59f093){const _0x402e1c={_0x5b9e43:0x1fd,_0x2cb5d1:0x117,_0x554a13:0x136,_0x197355:0x1f7,_0x13df47:0x287,_0x3f1f3b:0x84,_0x1ac263:0x17b},_0x372a14={_0x4acbed:0x1d4,_0x5d222d:0x1a7},_0x9a845b={_0x3b2593:0x1a1,_0xb11783:0x176};function _0x198413(_0x25fe68,_0x47093f,_0x18678f,_0x3ffdcc){return _0x54ac71(_0x25fe68-_0x9a845b._0x3b2593,_0x25fe68,_0x3ffdcc- -0x32e,_0x3ffdcc-_0x9a845b._0xb11783);}function _0x2209b9(_0x5b078a,_0x50b342,_0x5830e5,_0x401622){return _0x54ac71(_0x5b078a-0xc8,_0x50b342,_0x5830e5- -_0x372a14._0x4acbed,_0x401622-_0x372a14._0x5d222d);}return _0x59f093 instanceof ProviderStreamEventError&&(_0x59f093[_0x2209b9(0x1f4,0x1c5,_0x402e1c._0x5b9e43,0x1f8)]===_0x198413(0xc4,0xd4,_0x402e1c._0x2cb5d1,_0x402e1c._0x554a13)||_0x59f093[_0x2209b9(_0x402e1c._0x197355,_0x402e1c._0x13df47,0x1fd,0x15a)]===_0x198413(_0x402e1c._0x3f1f3b,_0x402e1c._0x1ac263,0xc,0x9d));}['invalidateResponsesSocketSession'](_0x4b1feb){const _0x171138={_0x324867:0x38e,_0x119fd2:0x2b1,_0x492e7d:0x13a,_0xd34b39:0x262,_0x3d60d1:0x180,_0xf0c936:0x47a,_0x4af47f:0x455,_0x1803af:0x4c7,_0x1b8f88:0x192,_0x2bfb4c:0x1e9,_0x57292d:0x24b,_0x327fb0:0x2cd,_0x1af036:0x175},_0xfdf1a4={_0x345ea5:0xc2,_0x85cf8d:0x228},_0x25c332={_0x5068ad:0x403},_0x44a4f2=_0x4b1feb[_0x3ae1d2(0x41b,0x39d,_0x171138._0x324867,_0x171138._0x119fd2)];function _0x3ae1d2(_0x3bb36d,_0x3e1182,_0x524bde,_0x167b14){return _0x5276b1(_0x167b14,_0x3e1182-0x1ce,_0x524bde-0x16a,_0x3e1182-_0x25c332._0x5068ad);}function _0x1363fe(_0x33a90d,_0x5c4dd8,_0x2f7554,_0xdcfa0b){return _0x5276b1(_0x33a90d,_0x5c4dd8-0xc0,_0x2f7554-_0xfdf1a4._0x345ea5,_0x2f7554-_0xfdf1a4._0x85cf8d);}_0x4b1feb['socket']=void 0x0,_0x4b1feb[_0x1363fe(_0x171138._0x492e7d,_0x171138._0xd34b39,_0x171138._0x3d60d1,0x13a)]=void 0x0,_0x4b1feb[_0x3ae1d2(_0x171138._0xf0c936,_0x171138._0x4af47f,0x483,_0x171138._0x1803af)]=void 0x0,_0x44a4f2?.[_0x1363fe(_0x171138._0x1b8f88,0x13b,_0x171138._0x2bfb4c,_0x171138._0x57292d)]===WebSocket['OPEN']&&_0x44a4f2['close'](0x3e8,_0x1363fe(_0x171138._0x327fb0,_0x171138._0x1af036,0x21c,0x2d7));}async[_0x54ac71(0x49b,0x58c,0x4b7,0x406)](_0x2d8e3f,_0x5d7c36,_0x121564,_0x27875d,_0x4c4dcd){const _0x1bd83d={_0x3ddd74:0x10b,_0x362bce:0x177,_0x867c01:0x1c2,_0x478c49:0x1cd,_0x37a7f6:0x135,_0x45e39d:0x93,_0x2a4a70:0x59,_0x55de44:0x135,_0x5ecd0a:0x135},_0x18dbda={_0x51593f:0x1be,_0xdc5426:0xcc,_0xdfb938:0x14c,_0x13b2e8:0x109,_0x347b19:0x19,_0xbfc0a5:0x69,_0x4d98b0:0x5e,_0x5e9b22:0xf6,_0x54f0d5:0xf,_0x25d90d:0x32,_0x2b29c8:0x108,_0x38fbdd:0xb1,_0x2703fd:0x4c,_0x28b6c6:0x8e,_0x131028:0x104,_0x322be0:0x68,_0x299632:0x3a,_0x1f276d:0x68,_0x4d703a:0x35,_0x612863:0x14,_0x1fa973:0xc0,_0x18ba3c:0x72,_0xd81697:0x38,_0x191f07:0x50,_0x3a3255:0xd4,_0x371bc6:0x176,_0x619edc:0x8b,_0x57b0c2:0x43,_0x398a4d:0x33,_0x3e3d20:0x31,_0x52265c:0xe7,_0x573271:0xe8,_0x5a9baa:0x84,_0x26a580:0xee,_0x27bdf2:0x45,_0x113c04:0x89,_0x5c411d:0x15},_0x4be13a={_0x1f9cd7:0x1bd,_0x35eb8c:0x93},_0x1b5ab7={_0x5d7294:0x16d,_0x1970fa:0x121};function _0x5c0bdc(_0x380634,_0x3e5502,_0x348762,_0x5ce559){return _0x5276b1(_0x348762,_0x3e5502-_0x1b5ab7._0x5d7294,_0x348762-0x90,_0x5ce559-_0x1b5ab7._0x1970fa);}if(_0x5d7c36[_0x3857ff(0x1cf,_0x1bd83d._0x3ddd74,_0x1bd83d._0x362bce,0x106)]?.['readyState']===WebSocket[_0x3857ff(0x1cd,0x184,0x17b,_0x1bd83d._0x867c01)])return _0x5d7c36['socket'];function _0x3857ff(_0x222b64,_0x2b643f,_0x382cde,_0x17cb79){return _0x54ac71(_0x222b64-_0x4be13a._0x1f9cd7,_0x222b64,_0x382cde- -0x220,_0x17cb79-_0x4be13a._0x35eb8c);}if(_0x5d7c36['connecting'])return await _0x5d7c36[_0x3857ff(_0x1bd83d._0x478c49,0x14c,_0x1bd83d._0x37a7f6,0xef)];_0x5d7c36[_0x3857ff(_0x1bd83d._0x45e39d,_0x1bd83d._0x2a4a70,_0x1bd83d._0x55de44,0x9c)]=((async()=>{const _0x1da906={_0x1686b7:0xaf},_0x3ccd37={_0x75bd74:0x1a1,_0x4a77de:0x9d},_0x3d2e3f={_0x5ceb85:0x170,_0x13fe64:0x17f,_0x585774:0x133,_0x42418f:0x2b5,_0x3d8a0e:0x1f4,_0x2ed2f0:0xd9,_0x2d96ef:0x76,_0x13b050:0x1},_0x3f5f66=await this[_0x29d7ae(0x121,0x15a,0x3d,_0x18dbda._0x51593f)]({'request':_0x121564[_0x543e9e(-0xf0,-0x8e,0x0,-0x58)],'body':_0x27875d,'credential':_0x121564[_0x29d7ae(0x87,0xf5,_0x18dbda._0xdc5426,0x80)],'session':_0x121564[_0x543e9e(-0x30,_0x18dbda._0xdfb938,0xb9,_0x18dbda._0x13b2e8)],'stream':!![]},{'accept':_0x29d7ae(-_0x18dbda._0x347b19,_0x18dbda._0xbfc0a5,-0xe7,_0x18dbda._0x4d98b0),'includeContentType':![]});_0x3f5f66[_0x29d7ae(-0x26,-_0x18dbda._0x5e9b22,_0x18dbda._0x347b19,0x99)](_0x29d7ae(-0x91,-0x4a,-0x5b,0x44));const _0x4a02ff=this[_0x29d7ae(0x9e,-_0x18dbda._0x54f0d5,-_0x18dbda._0x25d90d,-0x3c)]({'headers':Object[_0x543e9e(0x35,_0x18dbda._0x2b29c8,0xe1,0x112)](_0x3f5f66[_0x29d7ae(-0x42,-_0x18dbda._0x38fbdd,-_0x18dbda._0x2703fd,-_0x18dbda._0x28b6c6)]()),'url':(''+_0x121564[_0x543e9e(-_0x18dbda._0x131028,-_0x18dbda._0x322be0,-_0x18dbda._0x299632,_0x18dbda._0x1f276d)]+this[_0x543e9e(-0x7c,0x124,_0x18dbda._0x4d703a,_0x18dbda._0x612863)])[_0x29d7ae(_0x18dbda._0x1fa973,_0x18dbda._0x18ba3c,0xae,0x79)](/^http:/,_0x29d7ae(-0x7,0x7,_0x18dbda._0xd81697,-_0x18dbda._0x191f07))[_0x543e9e(0x141,0x1b9,_0x18dbda._0x3a3255,0x19f)](/^https:/,_0x543e9e(0x164,_0x18dbda._0x371bc6,_0x18dbda._0x619edc,_0x18dbda._0x57b0c2))}),_0x3cc4d1=()=>{const _0x59a6aa={_0x324822:0x72,_0x214a6c:0x151,_0x17d6b4:0x16d};function _0x5b3b32(_0x10f347,_0x4a0abe,_0x44a29d,_0x429c69){return _0x29d7ae(_0x4a0abe-0x1f3,_0x4a0abe-0x7f,_0x44a29d-0x13c,_0x10f347);}_0x5d7c36[_0x501fab(-0x5e,-_0x3d2e3f._0x5ceb85,-_0x3d2e3f._0x13fe64,-_0x3d2e3f._0x585774)]===_0x4a02ff&&(_0x5d7c36['socket']=void 0x0,_0x5d7c36[_0x5b3b32(0x200,_0x3d2e3f._0x42418f,_0x3d2e3f._0x3d8a0e,0x285)]=void 0x0);function _0x501fab(_0x38157b,_0x41f335,_0x566b96,_0x83d97e){return _0x543e9e(_0x38157b-_0x59a6aa._0x324822,_0x38157b,_0x83d97e- -_0x59a6aa._0x214a6c,_0x83d97e-_0x59a6aa._0x17d6b4);}this[_0x501fab(_0x3d2e3f._0x2ed2f0,-_0x3d2e3f._0x2d96ef,-0x50,-_0x3d2e3f._0x13b050)](_0x5d7c36);};_0x4a02ff[_0x29d7ae(-_0x18dbda._0x398a4d,-0x7b,-0xd8,-0xda)](_0x29d7ae(-0x4d,-0x5e,_0x18dbda._0xbfc0a5,-0x10b),_0x3cc4d1);function _0x543e9e(_0x421fc6,_0xa57502,_0x5ab997,_0x100621){return _0x5c0bdc(_0x421fc6-0xb,_0xa57502-_0x3ccd37._0x75bd74,_0xa57502,_0x5ab997- -_0x3ccd37._0x4a77de);}function _0x29d7ae(_0x2af223,_0x45ec66,_0x4d1c92,_0x2f7abb){return _0x5c0bdc(_0x2af223-_0x1da906._0x1686b7,_0x45ec66-0xe0,_0x2f7abb,_0x2af223- -0xb1);}try{return throwIfAborted(_0x4c4dcd),_0x4a02ff[_0x29d7ae(_0x18dbda._0x3e3d20,_0x18dbda._0x52265c,0x76,_0x18dbda._0x573271)]!==WebSocket[_0x29d7ae(0xe,0x0,-_0x18dbda._0x5a9baa,-0x88)]&&await waitForWebSocketOpen(_0x4a02ff,_0x4c4dcd),throwIfAborted(_0x4c4dcd),_0x5d7c36[_0x543e9e(0xe6,-0x7e,0x1e,_0x18dbda._0x26a580)]=_0x4a02ff,_0x4a02ff;}catch(_0x4ab335){_0x3cc4d1();_0x4a02ff[_0x543e9e(-0x92,0x7c,_0x18dbda._0x27bdf2,0xcc)]===WebSocket['OPEN']&&_0x4a02ff[_0x543e9e(_0x18dbda._0x113c04,-0x2f,-0x39,_0x18dbda._0x5c411d)](0x3e8,'connect_failed');throw _0x4ab335;}})());try{return await _0x5d7c36[_0x3857ff(0x1be,0x19f,_0x1bd83d._0x5ecd0a,0xac)];}finally{_0x5d7c36['connecting']=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x360082,_0x2e6e5b){const _0x4f2779={_0x23e82d:0x4db,_0x51737b:0x466,_0x34c40a:0x423,_0x37ffc9:0x4dd,_0x49e186:0x414,_0x467f48:0x477,_0x593980:0x341,_0x176017:0x352,_0x516cc8:0x33a,_0x5ae221:0x4ca,_0x11027c:0x380,_0xf6fa07:0x3df,_0x57db8b:0x470,_0x382abe:0x2dd,_0x35b2e4:0x47b,_0x30b56d:0x4e1,_0x57ee41:0x374,_0x409767:0x389,_0x13e6dc:0x38b,_0x339913:0x3ea,_0x112431:0x2c3,_0x4c4e31:0x2ad,_0x4774a8:0x4b5,_0x39dc2a:0x46b,_0x310bc6:0x3c5,_0x20120e:0x44f,_0x53f339:0x2ee,_0x414bfb:0x42a,_0x184ae4:0x3dd,_0x4d0af7:0x3ab,_0x515ea1:0x414,_0x37c5df:0x251,_0x1b2505:0x332,_0xa779e6:0x4f1,_0x526bf5:0x54f,_0x430f76:0x3d4,_0x12c90c:0x2cb},_0x186ff0={_0x467de4:0x6},_0x431649={_0x25e1d8:0x96};function _0x215446(_0x2416af,_0x1e6614,_0x589ff0,_0x2c74ed){return _0x54ac71(_0x2416af-0x103,_0x2c74ed,_0x589ff0-_0x431649._0x25e1d8,_0x2c74ed-0x70);}const _0xf184d6=this['applyModelDefaults'](_0x360082);function _0x24f3e1(_0x30b4bc,_0x2507f9,_0x5b584f,_0x5a54e8){return _0x54ac71(_0x30b4bc-_0x186ff0._0x467de4,_0x30b4bc,_0x5a54e8- -0x68,_0x5a54e8-0x1e0);}const _0x6e260b=this[_0x24f3e1(0x392,0x3eb,_0x4f2779._0x23e82d,_0x4f2779._0x51737b)](_0xf184d6[_0x24f3e1(_0x4f2779._0x34c40a,_0x4f2779._0x37ffc9,_0x4f2779._0x49e186,_0x4f2779._0x467f48)][_0x24f3e1(_0x4f2779._0x593980,_0x4f2779._0x176017,0x24f,_0x4f2779._0x516cc8)]),_0x5ed166=await this[_0x24f3e1(_0x4f2779._0x5ae221,_0x4f2779._0x11027c,_0x4f2779._0xf6fa07,_0x4f2779._0x57db8b)](_0x6e260b);try{const _0x1a6352=this[_0x215446(0x432,0x3ed,0x4a9,0x504)](_0xf184d6,_0x6e260b);try{yield*this[_0x24f3e1(_0x4f2779._0x382abe,0x314,0x381,0x3b3)](_0xf184d6['metadata'][_0x215446(_0x4f2779._0x35b2e4,_0x4f2779._0x30b56d,0x438,_0x4f2779._0x57ee41)],_0x6e260b,_0xf184d6,_0x1a6352[_0x24f3e1(_0x4f2779._0x409767,_0x4f2779._0x13e6dc,_0x4f2779._0x339913,0x451)],_0x2e6e5b?.[_0x24f3e1(_0x4f2779._0x112431,0x24b,_0x4f2779._0x4c4e31,0x329)]);return;}catch(_0x4e3cd3){if(!_0x1a6352['previousResponseId']||!this[_0x24f3e1(0x42a,0x3ca,_0x4f2779._0x4774a8,_0x4f2779._0x39dc2a)](_0x4e3cd3)){this[_0x24f3e1(_0x4f2779._0x310bc6,0x3b2,0x32a,0x351)](_0x6e260b);throw _0x4e3cd3;}}this[_0x215446(_0x4f2779._0x13e6dc,0x407,_0x4f2779._0x20120e,0x35e)](_0x6e260b);const _0x4635d1=this[_0x24f3e1(_0x4f2779._0x53f339,_0x4f2779._0x414bfb,_0x4f2779._0x184ae4,_0x4f2779._0x4d0af7)](_0xf184d6,_0x6e260b,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0xf184d6[_0x24f3e1(0x4b3,_0x4f2779._0x515ea1,0x487,_0x4f2779._0x467f48)][_0x24f3e1(0x2b7,_0x4f2779._0x37c5df,_0x4f2779._0x1b2505,0x33a)],_0x6e260b,_0xf184d6,_0x4635d1[_0x215446(0x4c5,_0x4f2779._0xa779e6,_0x4f2779._0x526bf5,0x53e)],_0x2e6e5b?.[_0x24f3e1(0x2f5,_0x4f2779._0x430f76,_0x4f2779._0x12c90c,0x329)]);}finally{_0x5ed166();}}async*[_0x5276b1(-0x65,0xfc,0xf7,0x1e)](_0x109582,_0x25c79b,_0x441686,_0x551a2c,_0x5f48e6){const _0x1017b7={_0x1a847e:0x12d,_0x566a2a:0xc,_0x2d23d6:0xe8,_0x528c55:0x1b,_0x121814:0x4da,_0x235361:0x43f,_0x5ce373:0x4eb,_0x594903:0x448,_0x368bac:0x24a,_0x3ce2d1:0x2aa,_0x1320da:0x31f,_0x34e83e:0x349,_0x6fc53c:0x4b0,_0x3e304d:0x41f,_0xf105db:0x41d,_0x3a7a82:0x437,_0x196c5e:0x441,_0x5dccce:0x484,_0x25ecfd:0x340,_0x5d48c1:0x3ec,_0x54c1b9:0x45e,_0x77ec8e:0x3c3},_0x5a6ff8={_0x5606ca:0x1a1,_0x45ada5:0x9e},_0x20b26c={_0x512022:0x1ed,_0x3c3acb:0x111};function _0x51f9e5(_0x8b84eb,_0x1cc1a6,_0x26d476,_0x7895ec){return _0x5276b1(_0x26d476,_0x1cc1a6-_0x20b26c._0x512022,_0x26d476-_0x20b26c._0x3c3acb,_0x7895ec-0x39a);}const _0x65aaa7=await this[_0x3535f2(_0x1017b7._0x1a847e,_0x1017b7._0x566a2a,_0x1017b7._0x2d23d6,0xcc)](_0x441686,_0x5f48e6),_0x18414a=await this[_0x3535f2(_0x1017b7._0x528c55,0x158,0x17c,0xa0)](_0x109582,_0x25c79b,_0x65aaa7,_0x551a2c,_0x5f48e6),_0x98965f=createOpenAiResponsesStreamParser(_0x441686);throwIfAborted(_0x5f48e6);function _0x3535f2(_0xdf1210,_0x12c5ca,_0x32564e,_0x19e79f){return _0x54ac71(_0xdf1210-_0x5a6ff8._0x5606ca,_0xdf1210,_0x19e79f- -0x417,_0x19e79f-_0x5a6ff8._0x45ada5);}_0x18414a[_0x51f9e5(_0x1017b7._0x121814,0x45d,0x490,_0x1017b7._0x235361)](JSON[_0x51f9e5(0x3b5,0x43c,_0x1017b7._0x5ce373,_0x1017b7._0x594903)](_0x551a2c));for await(const _0x4c5938 of iterateWebSocketMessages(_0x18414a,_0x5f48e6)){const _0x57c516=_0x98965f[_0x51f9e5(_0x1017b7._0x368bac,0x2f6,_0x1017b7._0x3ce2d1,_0x1017b7._0x1320da)]?.(_0x4c5938)??[];yield*_0x57c516;if(_0x98965f[_0x51f9e5(_0x1017b7._0x34e83e,_0x1017b7._0x6fc53c,_0x1017b7._0x3e304d,_0x1017b7._0xf105db)]?.())break;}if(!_0x98965f[_0x51f9e5(0x462,_0x1017b7._0x3a7a82,_0x1017b7._0x196c5e,_0x1017b7._0xf105db)]?.())throw new Error(_0x3535f2(0x36,-0x6f,-0xbf,-0xa5));const _0x216975=_0x98965f['finish'](),_0x4d90e3=_0x216975['providerState']?.['openaiResponsesResponseId']??_0x216975['id'];_0x4d90e3&&(_0x25c79b[_0x51f9e5(_0x1017b7._0x5dccce,_0x1017b7._0x25ecfd,0x340,_0x1017b7._0x5d48c1)]=_0x4d90e3),yield{'type':_0x51f9e5(0x445,_0x1017b7._0x54c1b9,0x2db,_0x1017b7._0x77ec8e),'response':_0x216975};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x5276b1(0x4f,0x4f,0x9a,0x27),'openai-chat-completions',_0x5276b1(0x75,-0x3e,0x77,-0x23),_0x54ac71(0x44d,0x323,0x3b5,0x48d)];function isAnthropicSurface(_0x3f6fa1){return _0x3f6fa1==='anthropic-messages';}function providerFromSurface(_0x8760f8){const _0x1e4745={_0x43abfd:0x230,_0x166c15:0x163,_0x359c0f:0x190,_0x1360d:0x1f9},_0x18afa5={_0x9510d3:0xd3};function _0x122676(_0x1939cc,_0x33e092,_0x1be3e0,_0x1dd827){return _0x5276b1(_0x1be3e0,_0x33e092-0x152,_0x1be3e0-0x5d,_0x1939cc-0x106);}function _0x4e0ab9(_0x146452,_0x597e94,_0x4344ac,_0x40cacf){return _0x5276b1(_0x597e94,_0x597e94-_0x18afa5._0x9510d3,_0x4344ac-0x116,_0x146452-0x236);}return _0x8760f8['startsWith'](_0x4e0ab9(_0x1e4745._0x43abfd,0x325,_0x1e4745._0x166c15,0x1e5))?_0x4e0ab9(0x230,_0x1e4745._0x359c0f,0x24e,0x285):_0x4e0ab9(0x2ad,0x321,_0x1e4745._0x1360d,0x35c);}function resolveDefaultBaseUrl(_0x3a61d7){const _0x4f7e4b={_0x1975e1:0x261,_0x2ca5e1:0x13d,_0x51ac25:0x350,_0x91eb21:0x3a1,_0x4aa132:0x1d2,_0x167da2:0x33f,_0x140d28:0x191,_0x1103af:0x155},_0x265d7e={_0x121fcf:0xc2,_0x3acbbf:0x1e0,_0x290542:0x223},_0x58fe10={_0x395260:0x11e,_0x5cedbe:0x24f};function _0x114d63(_0x2452fd,_0x5bfd3c,_0x4ef986,_0x3b26f0){return _0x5276b1(_0x3b26f0,_0x5bfd3c-0xde,_0x4ef986-_0x58fe10._0x395260,_0x2452fd-_0x58fe10._0x5cedbe);}function _0x338736(_0x531184,_0x2fe3f1,_0x57d863,_0x3ac4cb){return _0x5276b1(_0x531184,_0x2fe3f1-_0x265d7e._0x121fcf,_0x57d863-_0x265d7e._0x3acbbf,_0x3ac4cb-_0x265d7e._0x290542);}if(_0x3a61d7===_0x114d63(0x276,0x194,_0x4f7e4b._0x1975e1,0x1c0))return getProviderProfile(_0x338736(_0x4f7e4b._0x2ca5e1,0x223,0x2a4,0x21d))?.['baseUrl']??_0x114d63(0x314,0x30c,_0x4f7e4b._0x51ac25,_0x4f7e4b._0x91eb21);return getProviderProfile(_0x338736(_0x4f7e4b._0x4aa132,0x257,_0x4f7e4b._0x167da2,0x29a))?.[_0x114d63(_0x4f7e4b._0x140d28,0x1fd,_0x4f7e4b._0x1103af,0xdf)]??'https://api.openai.com/v1';}var ChatModel=class{['model'];[_0x54ac71(0x3f1,0x488,0x395,0x374)];['maxTokens'];[_0x54ac71(0x3b9,0x3aa,0x3d7,0x449)];[_0x5276b1(-0xc0,-0x5f,0x60,0x13)];[_0x5276b1(0x16,0xa4,0x134,0x7d)];['openAiDelegate'];constructor(_0x74a47a={}){const _0x4f879e={_0x1a81ae:0x55d,_0x52c20b:0x52f,_0x4fd42d:0x5ed,_0xc95db6:0x4f5,_0x35e936:0x46e,_0x2f3e4b:0x46b,_0x3f83ca:0x3df,_0x166594:0x5b7,_0x10b6d4:0x52f,_0x4f8fdb:0x317,_0x382e95:0x3f5,_0xb575ce:0x34e,_0x741413:0x2fd,_0x4b182a:0x68,_0x398200:0x3cd,_0x17f1e0:0x421,_0x39afa2:0x3e4,_0x1883be:0x2f9,_0x2a321f:0x39e,_0x581232:0x4c2,_0x44e633:0x4f1,_0x40a18e:0x4a6,_0x526670:0x50e,_0x10dbcb:0x5fa,_0x15a295:0x509,_0xa72167:0x2f,_0x36b39d:0x10a,_0x3240f4:0x43,_0x55eeb3:0x14,_0x203b57:0xbe,_0x32d7d1:0x19d,_0x29ad18:0x216,_0x7a491e:0x65,_0x296e3c:0x3a5,_0x4a6b9f:0x3d4,_0x44efb3:0x104,_0x286380:0x9a,_0x1431ff:0x4da,_0x59deb0:0x4a9,_0x2819c4:0x438,_0x2f9c5e:0x568,_0x7ae19f:0x327,_0x1804fd:0x3ef,_0x35a7ca:0x36,_0x10357e:0xb,_0x16f532:0xa2,_0x209457:0x31,_0xa7522:0x163,_0x58a3e0:0xcc,_0xa65f9a:0xc6,_0x50513a:0x49e,_0x5405f1:0x3df,_0x26b1b4:0xf4,_0x552fff:0x185,_0x45767c:0x417,_0x5153fa:0x477,_0x3a2149:0x43e,_0xa9683b:0x360,_0x596b54:0x4c0,_0x1d15a4:0x475},_0x4f0f2b={_0x2ecb80:0xf0,_0x105723:0x3c2,_0x438050:0xd1},_0x4c76e6={_0x4b98b8:0x25};this[_0x5358b6(_0x4f879e._0x1a81ae,0x5e8,0x54d,_0x4f879e._0x52c20b)]=_0x74a47a[_0x5358b6(_0x4f879e._0x4fd42d,_0x4f879e._0xc95db6,0x5a2,0x52f)]??getDefaultModel(),this[_0x5358b6(_0x4f879e._0x35e936,_0x4f879e._0x2f3e4b,0x475,_0x4f879e._0x3f83ca)]=_0x74a47a[_0x5358b6(0x392,0x3ba,0x308,0x3df)]??modelIdentityFromParts(void 0x0,this[_0x5358b6(_0x4f879e._0x166594,0x574,0x5f9,_0x4f879e._0x10b6d4)]);function _0x5358b6(_0x2769fd,_0x2f93b3,_0x27758c,_0x227d16){return _0x5276b1(_0x2769fd,_0x2f93b3-_0x4c76e6._0x4b98b8,_0x27758c-0x169,_0x227d16-0x447);}this[_0x5358b6(0x308,_0x4f879e._0x4f8fdb,_0x4f879e._0x382e95,_0x4f879e._0xb575ce)]=_0x74a47a[_0x5358b6(_0x4f879e._0x741413,0x264,0x2c2,_0x4f879e._0xb575ce)],this[_0x2312a8(-0x48,_0x4f879e._0x4b182a,0x15,-0x9e)]=_0x74a47a[_0x5358b6(_0x4f879e._0x398200,0x33a,0x40d,_0x4f879e._0x17f1e0)]??_0x5358b6(_0x4f879e._0x39afa2,_0x4f879e._0x1883be,0x460,_0x4f879e._0x2a321f),this[_0x5358b6(0x3a7,0x436,0x4c8,0x45a)]=providerFromSurface(this['surface']);const _0x58cd49=trimTrailingSlashes(_0x74a47a['baseUrl']??resolveDefaultBaseUrl(this['surface']));function _0x2312a8(_0x1c980e,_0xd328a5,_0x3d9e7a,_0x450abe){return _0x54ac71(_0x1c980e-_0x4f0f2b._0x2ecb80,_0x1c980e,_0x3d9e7a- -_0x4f0f2b._0x105723,_0x450abe-_0x4f0f2b._0x438050);}if(isAnthropicSurface(this[_0x5358b6(_0x4f879e._0x581232,_0x4f879e._0x44e633,_0x4f879e._0x40a18e,0x421)])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x74a47a['apiKey'],'authScheme':_0x74a47a[_0x5358b6(0x503,_0x4f879e._0x526670,_0x4f879e._0x10dbcb,_0x4f879e._0x15a295)],'baseUrl':_0x58cd49,'fetch':_0x74a47a[_0x2312a8(0xfa,0xce,0x8,_0x4f879e._0xa72167)],'headerResolver':_0x74a47a[_0x2312a8(-_0x4f879e._0x36b39d,-0x159,-0xac,-0x129)],...this[_0x2312a8(-_0x4f879e._0x3240f4,-_0x4f879e._0x55eeb3,-_0x4f879e._0x203b57,-_0x4f879e._0x32d7d1)]!==void 0x0?{'maxTokens':this[_0x5358b6(0x32c,0x2d2,0x2f7,0x34e)]}:{},'model':this[_0x2312a8(_0x4f879e._0x29ad18,_0x4f879e._0x7a491e,0x123,0x1eb)],'modelIdentity':this[_0x5358b6(0x46f,_0x4f879e._0x296e3c,_0x4f879e._0x4a6b9f,0x3df)],'reasoning':_0x74a47a[_0x5358b6(0x482,0x506,0x52b,0x43e)],'providerSessionResolver':_0x74a47a[_0x2312a8(0xe,-_0x4f879e._0x44efb3,-_0x4f879e._0x286380,-0x24)],'requestMutators':_0x74a47a[_0x5358b6(0x589,0x522,0x4ae,_0x4f879e._0x1431ff)]});return;}this[_0x5358b6(_0x4f879e._0x59deb0,_0x4f879e._0x2819c4,_0x4f879e._0x2f9c5e,0x49c)]=new OpenAiModel({'apiKey':_0x74a47a[_0x5358b6(_0x4f879e._0x7ae19f,0x425,0x43a,_0x4f879e._0x1804fd)],'baseUrl':_0x58cd49,'fetch':_0x74a47a[_0x2312a8(-0x88,-0xae,0x8,-_0x4f879e._0x35a7ca)],'headerResolver':_0x74a47a[_0x2312a8(-0x6f,-0xe9,_0x4f879e._0x10357e,_0x4f879e._0x16f532)],...this[_0x2312a8(-_0x4f879e._0x209457,-0x140,-0xbe,-_0x4f879e._0xa7522)]!==void 0x0?{'maxTokens':this[_0x2312a8(-_0x4f879e._0x58a3e0,-0x6d,-0xbe,-_0x4f879e._0xa65f9a)]}:{},'model':this['model'],'modelIdentity':this[_0x5358b6(0x3f5,_0x4f879e._0x50513a,0x4d3,_0x4f879e._0x5405f1)],'promptCacheKeyResolver':_0x74a47a[_0x2312a8(_0x4f879e._0x26b1b4,_0x4f879e._0x552fff,0xbd,0x83)],'reasoning':_0x74a47a[_0x5358b6(_0x4f879e._0x45767c,0x493,_0x4f879e._0x5153fa,_0x4f879e._0x3a2149)],'providerSessionResolver':_0x74a47a[_0x5358b6(_0x4f879e._0xa9683b,0x2e1,0x2d6,0x372)],'requestMutators':_0x74a47a['requestMutators'],'webSocketFactory':_0x74a47a[_0x5358b6(0x3f3,0x3e6,_0x4f879e._0x596b54,_0x4f879e._0x1d15a4)]});}[_0x54ac71(0x3c3,0x54e,0x4a1,0x596)](){const _0x48ddb5={_0x48f0cd:0x29c,_0x27c03b:0x321,_0x4e7906:0x301,_0x189495:0x48a,_0x449aa2:0x31f},_0x578f4d={_0x16eef0:0x39,_0x352926:0x41d,_0x396179:0x5},_0x15718a={_0x2a0f89:0x195};function _0x5724bc(_0x25df1d,_0x3f3667,_0x18d44b,_0x34799f){return _0x5276b1(_0x34799f,_0x3f3667-0xbe,_0x18d44b-_0x15718a._0x2a0f89,_0x3f3667-0x343);}if(!this['anthropicDelegate'])throw new Error(_0x5724bc(0x2f9,_0x48ddb5._0x48f0cd,0x30f,_0x48ddb5._0x27c03b)+this[_0x5724bc(_0x48ddb5._0x4e7906,0x31d,_0x48ddb5._0x27c03b,0x308)]);function _0x33ad84(_0x1c1002,_0x35653e,_0x2f1c3b,_0x19ccd4){return _0x54ac71(_0x1c1002-_0x578f4d._0x16eef0,_0x2f1c3b,_0x1c1002- -_0x578f4d._0x352926,_0x19ccd4-_0x578f4d._0x396179);}return this[_0x5724bc(_0x48ddb5._0x189495,0x3c0,_0x48ddb5._0x449aa2,0x4a0)];}[_0x5276b1(0x28,0x198,0x73,0xb0)](){const _0x1b7be6={_0xa5fd91:0x4c9,_0x423520:0x3ed,_0x3c9f1b:0x447,_0x3db670:0x11,_0x3fe599:0xe3,_0x19a7c6:0x5d9,_0x1e8da0:0x5b1},_0x15b2f6={_0x4727a0:0x178,_0x70bbc2:0x18f,_0x289bce:0x584};function _0x3117f9(_0x3318c9,_0x8dcb56,_0xc765bc,_0x504a2c){return _0x5276b1(_0xc765bc,_0x8dcb56-_0x15b2f6._0x4727a0,_0xc765bc-_0x15b2f6._0x70bbc2,_0x3318c9-_0x15b2f6._0x289bce);}function _0x559207(_0x2ca452,_0x3a0e6e,_0xf4bd12,_0x5d5e62){return _0x54ac71(_0x2ca452-0x12,_0xf4bd12,_0x2ca452- -0x3c6,_0x5d5e62-0x1e3);}if(!this['openAiDelegate'])throw new Error(_0x3117f9(_0x1b7be6._0xa5fd91,_0x1b7be6._0x423520,_0x1b7be6._0x3c9f1b,0x453)+this[_0x559207(_0x1b7be6._0x3db670,_0x1b7be6._0x3fe599,-0x1e,-0x72)]);return this[_0x3117f9(_0x1b7be6._0x19a7c6,0x54d,0x5ee,_0x1b7be6._0x1e8da0)];}[_0x5276b1(-0xa1,-0x131,0x54,-0x52)](_0xc9f2b,_0x3ae81f){const _0x5c4e7c={_0x459805:0x158,_0x5a0859:0x20f,_0x47dd58:0x244,_0x284199:0x29c,_0x162087:0x20c,_0x1a72e5:0x285,_0x44f861:0x2d9,_0x3dce58:0x2f7,_0x5e7d2b:0x137,_0x5066b2:0xf1,_0x5cd503:0x2d0,_0x281951:0x2c6,_0x22ae22:0x22f,_0x27a96d:0x2e5,_0x28c798:0x4d3,_0x4655ca:0x47d,_0x54e8eb:0x4f4,_0x4f78b9:0x18a,_0x3c0532:0x262},_0x10a366={_0x2876b7:0x9b},_0x302843={_0x296861:0x436};function _0x98a2a6(_0x47df02,_0x47f577,_0x4e7b3f,_0x294fb3){return _0x5276b1(_0x47f577,_0x47f577-0x89,_0x4e7b3f-0x135,_0x47df02-_0x302843._0x296861);}function _0x359ebd(_0x39c60f,_0x5c9ded,_0x2d0cc2,_0x4b1f72){return _0x5276b1(_0x4b1f72,_0x5c9ded-_0x10a366._0x2876b7,_0x2d0cc2-0x1d9,_0x2d0cc2-0x235);}switch(this[_0x359ebd(0x233,_0x5c4e7c._0x459805,_0x5c4e7c._0x5a0859,_0x5c4e7c._0x47dd58)]){case _0x359ebd(_0x5c4e7c._0x284199,0x196,0x25c,_0x5c4e7c._0x162087):return this[_0x359ebd(0x2cd,_0x5c4e7c._0x1a72e5,_0x5c4e7c._0x44f861,_0x5c4e7c._0x3dce58)]()[_0x359ebd(_0x5c4e7c._0x5e7d2b,0x20f,0x1e3,_0x5c4e7c._0x5066b2)](_0xc9f2b,_0x3ae81f);case _0x359ebd(_0x5c4e7c._0x5cd503,_0x5c4e7c._0x281951,0x212,_0x5c4e7c._0x22ae22):return this[_0x359ebd(0x25f,0x215,_0x5c4e7c._0x27a96d,0x2a9)]()['response'](_0xc9f2b,_0x3ae81f);case _0x98a2a6(0x3ee,_0x5c4e7c._0x28c798,0x35f,0x439):return this[_0x98a2a6(0x4e6,0x531,_0x5c4e7c._0x4655ca,_0x5c4e7c._0x54e8eb)]()['responseSocket'](_0xc9f2b,_0x3ae81f);default:return this['getOpenAiDelegate']()[_0x359ebd(0x1c6,_0x5c4e7c._0x4f78b9,_0x5c4e7c._0x3c0532,0x2b9)](_0xc9f2b,_0x3ae81f);}}[_0x5276b1(-0x32,0x59,-0x23,0x26)](_0x2c3be3,_0x2b4b75){const _0x16171a={_0x9b120d:0x587,_0x521bda:0x4bb,_0x38724d:0x519,_0x58c594:0x554,_0x25d63d:0x490,_0x291c28:0x452,_0x4a5596:0x41d,_0x123d65:0x335,_0x569ae3:0x2ce,_0x348fa7:0x3a6,_0x494c38:0x5a2},_0x474c3b={_0x50e326:0xe3,_0x45cb12:0x94};function _0x2afb78(_0x409bbb,_0x20eae9,_0xe2c2da,_0x188455){return _0x54ac71(_0x409bbb-_0x474c3b._0x50e326,_0x409bbb,_0xe2c2da-0xf5,_0x188455-_0x474c3b._0x45cb12);}function _0x1b2446(_0x379345,_0x595df0,_0x25bfc8,_0x1d5a9a){return _0x54ac71(_0x379345-0x64,_0x1d5a9a,_0x379345-0x24,_0x1d5a9a-0x1ba);}switch(this['surface']){case _0x2afb78(_0x16171a._0x9b120d,_0x16171a._0x521bda,_0x16171a._0x38724d,0x52f):return this[_0x1b2446(0x4c5,_0x16171a._0x58c594,0x447,0x4b3)]()[_0x1b2446(0x447,0x3da,_0x16171a._0x25d63d,_0x16171a._0x291c28)](_0x2c3be3,_0x2b4b75);case _0x2afb78(_0x16171a._0x4a5596,0x4c4,0x4cf,0x467):return this['getOpenAiDelegate']()[_0x1b2446(_0x16171a._0x123d65,0x366,_0x16171a._0x569ae3,_0x16171a._0x348fa7)](_0x2c3be3,_0x2b4b75);case'openai-responses-ws':return this[_0x1b2446(0x4d1,0x587,0x421,0x532)]()['responseSocketStream'](_0x2c3be3,_0x2b4b75);default:return this[_0x2afb78(0x659,0x4d9,_0x16171a._0x494c38,0x522)]()['chatStream'](_0x2c3be3,_0x2b4b75);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x5276b1(0x9d,0x16d,0x67,0xe7)];[_0x5276b1(-0x2,-0x7f,-0x63,-0xbe)];['fetchImpl'];[_0x54ac71(0x41c,0x3ed,0x4d5,0x5a8)];['tokenExchangeApiVersion'];constructor(_0x3be7f2){const _0x2588a0={_0x6ef9b9:0x75,_0x13e4dc:0x2f,_0x469db4:0x7c,_0x3853fb:0x130,_0x1aad6e:0x21a,_0xa60494:0x161,_0x13f869:0x9e,_0xb13c12:0xd2,_0x24b260:0x1da,_0x54d047:0x350,_0x396eb1:0x1c4,_0x4fb8d2:0x29b,_0x227322:0x33c,_0x2de801:0x380,_0x366dd5:0x381,_0x5f8d12:0x3ab,_0x5d8601:0x130,_0x13063a:0xa7,_0x1e0fcf:0x2e1,_0x3b51d1:0x35d},_0x6ca7f={_0x4ee8de:0x17,_0x226d6c:0x6d},_0x551164={_0x225809:0x154};this[_0x15bcd5(_0x2588a0._0x6ef9b9,-_0x2588a0._0x13e4dc,0x8,-_0x2588a0._0x469db4)]=_0x3be7f2['accessToken'],this[_0x15bcd5(-_0x2588a0._0x3853fb,-0x194,-_0x2588a0._0x1aad6e,-_0x2588a0._0xa60494)]=trimTrailingSlashes2(_0x3be7f2[_0x15bcd5(-_0x2588a0._0x3853fb,-_0x2588a0._0x13f869,-_0x2588a0._0xb13c12,-_0x2588a0._0x24b260)]);function _0x5b0d25(_0x2c2351,_0x434886,_0x1f8525,_0x332843){return _0x54ac71(_0x2c2351-0x13e,_0x434886,_0x332843- -_0x551164._0x225809,_0x332843-0x136);}this[_0x5b0d25(_0x2588a0._0x54d047,0x1c3,_0x2588a0._0x396eb1,0x287)]=_0x3be7f2['fetch'],this[_0x5b0d25(_0x2588a0._0x4fb8d2,_0x2588a0._0x227322,_0x2588a0._0x2de801,_0x2588a0._0x366dd5)]=trimTrailingSlashes2(_0x3be7f2[_0x5b0d25(0x398,_0x2588a0._0x5f8d12,0x432,0x381)]);function _0x15bcd5(_0x566def,_0x2eeb69,_0x180f75,_0x709f1b){return _0x5276b1(_0x180f75,_0x2eeb69-_0x6ca7f._0x4ee8de,_0x180f75-_0x6ca7f._0x226d6c,_0x566def- -0x72);}this[_0x15bcd5(0x42,0x90,_0x2588a0._0x5d8601,-_0x2588a0._0x13063a)]=_0x3be7f2[_0x5b0d25(0x2ea,0x367,_0x2588a0._0x1e0fcf,_0x2588a0._0x3b51d1)];}async[_0x54ac71(0x367,0x3ba,0x3d8,0x3cc)](_0x547ab6){const _0xdd2d66={_0x2f23ef:0x6bd,_0x1359ac:0x40e,_0x1dfc19:0x5d2,_0x166216:0x6e4,_0x38d9bd:0x602,_0x5efb09:0x5f7,_0x28a0c0:0x73a,_0x51b27f:0x41d,_0x13aea1:0x5d0,_0x279e54:0x6b1,_0x23e190:0x6de,_0x4149a2:0x508,_0x4f56ed:0x5f4,_0x3d4723:0x53f,_0x5a8fec:0x5f6,_0x19ff05:0x50d,_0x5e2ea6:0x6f3,_0x21b32b:0x6d7,_0xc69c96:0x5c4,_0x20354c:0x566,_0x53d30a:0x64d,_0x2e7464:0x5b3,_0x48dc90:0x577,_0xa53685:0x62a,_0x1620e1:0x4ab,_0x9a7bb6:0x563,_0xf0b136:0x4a3,_0x16c233:0x53f,_0x213fe4:0x534,_0x9f352e:0x6e9,_0x28dafb:0x5d0,_0x19dfa9:0x5db},_0x2da817={_0xbbc05:0x110},_0x32daef={_0x407f6f:0x200},_0x4a049d=await this['fetchImpl'](this['githubApiUrl']+'/copilot_internal/v2/token',{'method':_0x15fbdf(0x646,0x5d2,_0xdd2d66._0x2f23ef,0x717),'headers':new Headers({'accept':_0x503e11(0x522,0x53c,0x484,_0xdd2d66._0x1359ac),'authorization':_0x15fbdf(_0xdd2d66._0x1dfc19,_0xdd2d66._0x166216,_0xdd2d66._0x38d9bd,_0xdd2d66._0x5efb09)+this[_0x15fbdf(0x6f5,_0xdd2d66._0x28a0c0,_0xdd2d66._0x166216,0x6bf)],'editor-version':_0x503e11(0x43a,0x4a3,0x467,_0xdd2d66._0x51b27f),'user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this[_0x15fbdf(_0xdd2d66._0x13aea1,0x625,_0xdd2d66._0x279e54,_0xdd2d66._0x23e190)]}),'signal':_0x547ab6});if(!_0x4a049d['ok'])return{'credential':{'kind':'oauth-token','value':this[_0x503e11(_0xdd2d66._0x4149a2,0x61c,_0xdd2d66._0x4f56ed,0x60b)]},'endpoints':{'api':this[_0x15fbdf(0x55a,0x4fa,_0xdd2d66._0x3d4723,_0xdd2d66._0x5a8fec)]}};function _0x15fbdf(_0x29e4ea,_0xd860ab,_0x2d524a,_0x4d0034){return _0x54ac71(_0x29e4ea-0x156,_0x29e4ea,_0x2d524a-_0x32daef._0x407f6f,_0x4d0034-0x30);}function _0x503e11(_0x71dcdf,_0x191a22,_0x15d48c,_0x5a9c42){return _0x54ac71(_0x71dcdf-0x154,_0x5a9c42,_0x15d48c-_0x2da817._0xbbc05,_0x5a9c42-0x108);}const _0x276074=await _0x4a049d[_0x15fbdf(_0xdd2d66._0x19ff05,0x61f,0x535,0x52f)]();return{'credential':{'kind':_0x15fbdf(_0xdd2d66._0x5e2ea6,_0xdd2d66._0x21b32b,0x640,0x5ca),'value':_0x276074[_0x15fbdf(0x4d2,_0xdd2d66._0xc69c96,_0xdd2d66._0x20354c,0x62d)]??this[_0x503e11(0x6d0,0x6a8,0x5f4,0x579)]},'endpoints':{'api':_0x276074[_0x503e11(_0xdd2d66._0x3d4723,_0xdd2d66._0x53d30a,_0xdd2d66._0x2e7464,_0xdd2d66._0x48dc90)]?.[_0x15fbdf(_0xdd2d66._0xa53685,_0xdd2d66._0x1620e1,_0xdd2d66._0x9a7bb6,_0xdd2d66._0xf0b136)]??this[_0x15fbdf(0x593,0x5b0,_0xdd2d66._0x16c233,0x542)],'originTracker':_0x276074['endpoints']?.[_0x503e11(_0xdd2d66._0x213fe4,0x598,0x4a6,0x4ba)],'proxy':_0x276074[_0x15fbdf(_0xdd2d66._0x9f352e,_0xdd2d66._0x28dafb,0x6a3,0x768)]?.['proxy'],'telemetry':_0x276074[_0x503e11(0x585,0x65d,_0xdd2d66._0x2e7464,0x660)]?.[_0x15fbdf(0x48d,_0xdd2d66._0x19dfa9,0x53b,0x548)]}};}};function trimTrailingSlashes2(_0x4168f6){const _0xff793e={_0xcac167:0x50b,_0x2a1863:0x515,_0x4622f4:0x5b1},_0x34cdbd={_0x16ab62:0x1d7,_0x5a7d34:0x12c,_0x411c11:0x47b};function _0x1a4966(_0x939936,_0x38d639,_0x53fec5,_0x59209d){return _0x5276b1(_0x59209d,_0x38d639-_0x34cdbd._0x16ab62,_0x53fec5-_0x34cdbd._0x5a7d34,_0x38d639-_0x34cdbd._0x411c11);}return _0x4168f6[_0x1a4966(_0xff793e._0xcac167,0x4cb,_0xff793e._0x2a1863,_0xff793e._0x4622f4)](/\/+$/,'');}function createModelInfo(_0x2d2200){const _0x378a01={_0x503951:0x3a,_0x18fb7a:0xeb,_0x487dce:0x59,_0x25aa8a:0x15,_0xccd3bd:0x28,_0x3fa864:0x162,_0x3f1a21:0xd0,_0x31ee12:0x175,_0x5ad1c8:0xe2,_0x5d5f22:0x13a,_0x44176b:0x60,_0x461d83:0x223,_0x2f0c74:0x178,_0x24108c:0x101},_0xc89dc2={_0x54651a:0x12,_0xa6317b:0xb7},_0x3e620a={_0x48072f:0xb9,_0x240193:0x523};function _0x146804(_0x12ed7e,_0x3ccb30,_0x47d62e,_0x47bdc3){return _0x54ac71(_0x12ed7e-_0x3e620a._0x48072f,_0x47bdc3,_0x12ed7e- -_0x3e620a._0x240193,_0x47bdc3-0x1ac);}const _0x53235e=_0x2d2200[_0x146804(-0xe0,-0x1cc,-0x182,-0x1b9)]??_0x2d2200['capable_endpoints'],_0x2827de=_0x2d2200[_0x4b3d7a(_0x378a01._0x503951,-0x10c,-0x92,-0x37)]?.[_0x4b3d7a(-0x148,-_0x378a01._0x18fb7a,-0xe2,-0x14a)]?.[_0x4b3d7a(0x8d,-_0x378a01._0x487dce,-0x57,-_0x378a01._0x25aa8a)],_0x2ef7dd=_0x2d2200[_0x146804(-0x101,-_0x378a01._0xccd3bd,-0xcd,-_0x378a01._0x3fa864)]?.[_0x4b3d7a(-_0x378a01._0x3f1a21,-_0x378a01._0x31ee12,-_0x378a01._0x5ad1c8,-_0x378a01._0x5d5f22)]?.[_0x4b3d7a(0x24,-0xd1,-_0x378a01._0x44176b,-0x137)];function _0x4b3d7a(_0x196c3e,_0x434241,_0x4de40e,_0x43a1ec){return _0x5276b1(_0x434241,_0x434241-_0xc89dc2._0x54651a,_0x4de40e-0xea,_0x4de40e- -_0xc89dc2._0xa6317b);}const _0x20bbe2=_0x2827de!==void 0x0||_0x2ef7dd!==void 0x0?{..._0x2827de!==void 0x0?{'contextWindow':_0x2827de}:{},..._0x2ef7dd!==void 0x0?{'maxOutput':_0x2ef7dd}:{}}:void 0x0;return{'id':_0x2d2200['id'],'name':_0x2d2200[_0x4b3d7a(-0x1e2,-_0x378a01._0x461d83,-_0x378a01._0x2f0c74,-_0x378a01._0x24108c)]??_0x2d2200['id'],..._0x20bbe2?{'limits':_0x20bbe2}:{},..._0x53235e?{'supportedEndpoints':_0x53235e}:{}};}function deduplicateModels(_0x48b433){const _0x277eca={_0x38641d:0x110,_0xcd9aba:0x22b};function _0x1cb38e(_0x126d2b,_0x18ca0d,_0x4f1185,_0x33cf7e){return _0x5276b1(_0x18ca0d,_0x18ca0d-0x38,_0x4f1185-0x2d,_0x4f1185-0xe2);}const _0x4d1f01=new Map();for(const _0x5842fd of _0x48b433){!_0x4d1f01['has'](_0x5842fd['id'])&&_0x4d1f01[_0x1cb38e(_0x277eca._0x38641d,0x272,0x1bf,_0x277eca._0xcd9aba)](_0x5842fd['id'],_0x5842fd);}return Array['from'](_0x4d1f01['values']());}function hasUserPromptContent(_0x57f375){const _0x4f466b={_0x474b28:0xb4,_0x2c518f:0x93,_0x2fd40d:0x69a,_0x476bf6:0x70e,_0x11fe57:0x7bb,_0x217286:0x61f,_0x4c0075:0x650,_0x1793e6:0x70d},_0x98f535={_0x3275be:0x179,_0x18a32e:0x325,_0x4ab6d8:0xa,_0x195bd7:0x260,_0x3a8ed0:0x275,_0xc3d81c:0x274,_0x189848:0x210,_0x50079a:0x387,_0xd2ff17:0x44d,_0x41045f:0x448,_0x448645:0x276},_0x42f0de={_0x4a33e7:0x166,_0x40cc23:0x183,_0x51ba6e:0x62d},_0x362fad={_0x19e8c4:0xa};function _0x591eed(_0xd173fc,_0x593de1,_0x4eafa1,_0x5d184d){return _0x5276b1(_0x593de1,_0x593de1-0x173,_0x4eafa1-_0x362fad._0x19e8c4,_0xd173fc-0x17b);}if(typeof _0x57f375===_0x591eed(0x145,0x1a1,_0x4f466b._0x474b28,0x1fc))return _0x57f375[_0x591eed(_0x4f466b._0x2c518f,0x80,0x125,0x74)]()[_0x3201ec(_0x4f466b._0x2fd40d,_0x4f466b._0x476bf6,0x7ad,_0x4f466b._0x11fe57)]>0x0;function _0x3201ec(_0x2dea59,_0x4830be,_0x5a9757,_0x41d85b){return _0x5276b1(_0x2dea59,_0x4830be-_0x42f0de._0x4a33e7,_0x5a9757-_0x42f0de._0x40cc23,_0x4830be-_0x42f0de._0x51ba6e);}if(!Array[_0x3201ec(_0x4f466b._0x217286,0x577,0x664,_0x4f466b._0x4c0075)](_0x57f375))return![];return _0x57f375[_0x3201ec(0x73b,_0x4f466b._0x1793e6,0x66b,0x6b4)](_0x497316=>{const _0x12b86b={_0x4d6262:0x6f},_0x1e1252={_0x4abd1a:0x270,_0x99bea4:0x23};function _0x1a5e10(_0x3008ea,_0x3facab,_0x175ea6,_0x1eb43e){return _0x3201ec(_0x3facab,_0x1eb43e- -_0x1e1252._0x4abd1a,_0x175ea6-_0x1e1252._0x99bea4,_0x1eb43e-0x5);}if(!_0x497316||typeof _0x497316!==_0x285dda(0x269,_0x98f535._0x3275be,_0x98f535._0x18a32e,0x349))return![];function _0x285dda(_0xbd92c5,_0x5973bb,_0x1de583,_0x4230b1){return _0x591eed(_0xbd92c5-_0x12b86b._0x4d6262,_0x1de583,_0x1de583-0xa4,_0x4230b1-0x1b7);}const _0x3e9b00=_0x497316;return(_0x3e9b00['type']===_0x285dda(0xf6,0x1d8,_0x98f535._0x4ab6d8,0x5)||_0x3e9b00[_0x285dda(0x282,_0x98f535._0x195bd7,0x33d,0x2f6)]==='text')&&typeof _0x3e9b00[_0x285dda(_0x98f535._0x3a8ed0,0x247,_0x98f535._0xc3d81c,_0x98f535._0x189848)]===_0x1a5e10(0x439,0x32b,0x3c7,_0x98f535._0x50079a)&&_0x3e9b00[_0x1a5e10(_0x98f535._0xd2ff17,0x3bf,0x4f8,_0x98f535._0x41045f)]['trim']()[_0x285dda(0x2cb,_0x98f535._0x448645,0x3b4,0x31b)]>0x0;});}function _isUserPromptEntry(_0x1156f5){const _0x3fb1bc={_0x33a6ca:0x4c1,_0x5e7ccd:0x41e,_0x224463:0x4a3,_0x13368e:0x477,_0x55d929:0x4b8,_0x14cfe5:0xb3,_0x1ed225:0x24,_0xc19ab1:0x5b0,_0x1c8969:0x4a9,_0x27d8bf:0x403,_0x513849:0x18c,_0x1924c7:0x1f},_0x138642={_0x47c7a3:0x8,_0x1e975b:0x14b},_0x218e98={_0x46c189:0x1e0};if(!_0x1156f5||typeof _0x1156f5!==_0x8a21e1(_0x3fb1bc._0x33a6ca,_0x3fb1bc._0x5e7ccd,0x3d1,0x548))return![];const _0x4b43b8=_0x1156f5;function _0x8a21e1(_0x23a5a5,_0x3ca284,_0x43bcd3,_0x4d0ec3){return _0x54ac71(_0x23a5a5-0xab,_0x4d0ec3,_0x23a5a5-0x45,_0x4d0ec3-_0x218e98._0x46c189);}if(_0x4b43b8['role']!==_0x8a21e1(_0x3fb1bc._0x224463,0x3c5,_0x3fb1bc._0x13368e,_0x3fb1bc._0x55d929))return![];function _0x1183ef(_0x36f883,_0x11c20c,_0x2ee523,_0x1fb93a){return _0x5276b1(_0x2ee523,_0x11c20c-_0x138642._0x47c7a3,_0x2ee523-0x7b,_0x11c20c- -_0x138642._0x1e975b);}if(_0x4b43b8[_0x1183ef(-0x4,-_0x3fb1bc._0x14cfe5,-_0x3fb1bc._0x1ed225,-0x121)]!==void 0x0&&_0x4b43b8[_0x8a21e1(0x4da,_0x3fb1bc._0xc19ab1,_0x3fb1bc._0x1c8969,_0x3fb1bc._0x27d8bf)]!==_0x1183ef(-0x24f,-_0x3fb1bc._0x513849,-0x24a,-0x1c3))return![];return hasUserPromptContent(_0x4b43b8[_0x1183ef(-0x61,-0x9c,-0x17b,-_0x3fb1bc._0x1924c7)]);}function determineInitiator(_0xc63ad8){const _0x233679={_0x4443f8:0x6a,_0x3b63b3:0x77,_0x154a4d:0x13f,_0x956408:0x15d,_0x4f8a83:0x4,_0x2ca3a1:0x5c,_0x359b04:0x8e},_0x3b78eb={_0x5afc6f:0xb8,_0x494bb1:0x4fa},_0x462f65={_0x1b68f5:0x69,_0x5f357c:0x171,_0x1c103d:0x5d};if(!_0xc63ad8||typeof _0xc63ad8!==_0x5d5de6(0x41,0x5d,-0xa3,-0x7e))return _0xee1b91(-0xcf,0x12,-0x16,-0x9e);const _0x27a08f=_0x5d5de6(-0x142,-0x83,-0x1aa,-0x10a)in _0xc63ad8?_0xc63ad8[_0xee1b91(-0xc8,-_0x233679._0x4443f8,-0x47,_0x233679._0x3b63b3)]:_0x5d5de6(-_0x233679._0x154a4d,-0x1d4,-0x11c,-_0x233679._0x956408)in _0xc63ad8?_0xc63ad8[_0x5d5de6(-0xbe,-0xd1,-0xde,-0x15d)]:void 0x0;if(!Array['isArray'](_0x27a08f)||_0x27a08f['length']===0x0)return'agent';function _0xee1b91(_0x25c022,_0x595d61,_0x162c5f,_0xbdcf00){return _0x5276b1(_0x162c5f,_0x595d61-_0x462f65._0x1b68f5,_0x162c5f-_0x462f65._0x5f357c,_0x595d61- -_0x462f65._0x1c103d);}function _0x5d5de6(_0x27814a,_0x458a52,_0x2fca5b,_0x35b05a){return _0x54ac71(_0x27814a-_0x3b78eb._0x5afc6f,_0x458a52,_0x35b05a- -_0x3b78eb._0x494bb1,_0x35b05a-0x1d6);}return _isUserPromptEntry(_0x27a08f[_0x27a08f['length']-0x1])?_0xee1b91(-0xd9,_0x233679._0x4f8a83,0xa1,-0x63):_0x5d5de6(-0xc9,-_0x233679._0x2ca3a1,-0x70,-_0x233679._0x359b04);}function isUnsupportedApiForModel(_0x299c0d){const _0xc8a19e={_0x9256f8:0x617,_0x440525:0x60b},_0x4e7496={_0x252113:0x6f},_0xe5cdbd={_0x44a876:0x582};function _0x575cef(_0x4dd36d,_0x4373ba,_0x435911,_0x490116){return _0x5276b1(_0x490116,_0x4373ba-0x74,_0x435911-0x18a,_0x435911-_0xe5cdbd._0x44a876);}function _0x4b3f37(_0x31767b,_0x40e1dc,_0x111f33,_0x1d0611){return _0x5276b1(_0x31767b,_0x40e1dc-0x12e,_0x111f33-0x16d,_0x40e1dc-_0x4e7496._0x252113);}return _0x299c0d[_0x575cef(0x6b6,0x6bf,_0xc8a19e._0x9256f8,_0xc8a19e._0x440525)](_0x575cef(0x5d5,0x621,0x57e,0x615));}function createResponseError(_0x5f1dea,_0x2da74e){const _0x2f0b0c={_0x5a8402:0x24f,_0x4071f0:0x21e,_0x4db3aa:0x16f,_0x43cf1e:0x18f,_0x259947:0x2b9},_0x3e8e28={_0x2d1f2b:0x35,_0xf05152:0x194,_0x164687:0x3de};if(_0x5f1dea===0x191||_0x5f1dea===0x193)return new Error(_0x2ccfb9(0x13a,_0x2f0b0c._0x5a8402,_0x2f0b0c._0x4071f0,_0x2f0b0c._0x4db3aa));function _0x2ccfb9(_0x1dc4b0,_0x710bd6,_0x2cd98c,_0x10ad53){return _0x54ac71(_0x1dc4b0-0x132,_0x710bd6,_0x2cd98c- -0x18b,_0x10ad53-0x171);}if(_0x5f1dea===0x198||_0x5f1dea===0x1ad)return new Error(_0x2ccfb9(0x330,_0x2f0b0c._0x43cf1e,0x262,_0x2f0b0c._0x259947));if(_0x5f1dea===0x190)return new Error('Invalid\x20request:\x20'+_0x2da74e);function _0x1523ce(_0x87f49f,_0x3a43a6,_0x53f8df,_0x16bb43){return _0x5276b1(_0x16bb43,_0x3a43a6-_0x3e8e28._0x2d1f2b,_0x53f8df-_0x3e8e28._0xf05152,_0x87f49f-_0x3e8e28._0x164687);}return new Error(_0x2da74e||'GitHub\x20API\x20error\x20'+_0x5f1dea);}var GitHubModel=class extends OpenAiModel{[_0x54ac71(0x407,0x3d6,0x47a,0x471)];[_0x5276b1(0x63,0x62,0xa2,0x80)]=new Map();[_0x5276b1(0x9c,-0x9b,-0x109,-0x26)];constructor(_0x907984={}){const _0x5a8673={_0x21f358:0x46c,_0x3b6b3b:0x630,_0xc8580a:0x5e1,_0x352545:0x11e,_0x2f48f2:0x1c8,_0x1c50d1:0x1e3,_0x3f60be:0x672,_0x521a08:0x591,_0x3a9bec:0x640,_0x6aeae5:0x44a,_0x4ed1c7:0x51d,_0x351957:0x702,_0x164731:0x733,_0x51f2a1:0x8,_0x1b6e23:0x131,_0x256984:0x9f,_0x4600fb:0xe,_0xf59ae8:0x37,_0x48ad3c:0xbc,_0x352d31:0x6bc,_0x3beed9:0x704,_0x3bb4c9:0x673,_0x447d16:0x1b9,_0x2f4863:0x1a1,_0xdf1307:0x129,_0x3002f4:0x4a,_0x3488a4:0x13c,_0x1defee:0x5b3,_0x1811b3:0x4f9,_0x1fb41b:0x5bb,_0x22c44d:0x673,_0x575437:0x58a,_0x5530f1:0x149,_0x4fefcb:0xa0,_0x89b2:0x111,_0x3a326d:0x141,_0x5bfdc9:0x53,_0x5b25e6:0x60a,_0x4b91d1:0x59a,_0x5c5a6b:0x5b5,_0x4a01ac:0x59d,_0x1b25f5:0x171,_0x952607:0xda,_0x503add:0x69d,_0x1beddb:0x525,_0x433993:0x5e9},_0x57b6f5={_0x1d0862:0x1f5,_0x753cee:0xf0},_0x1cc491={_0x4d0ff1:0x4e8,_0xfc1c5:0x4f},_0x1d8277=trimTrailingSlashes2(_0x907984[_0x5009bc(0x5ff,_0x5a8673._0x21f358,0x4a2,0x534)]??_0x5009bc(0x474,_0x5a8673._0x3b6b3b,_0x5a8673._0xc8580a,0x551));function _0xb6115a(_0x5d2cd9,_0x35f4b2,_0x2a178f,_0x173536){return _0x54ac71(_0x5d2cd9-0x1ca,_0x2a178f,_0x5d2cd9- -_0x1cc491._0x4d0ff1,_0x173536-_0x1cc491._0xfc1c5);}const _0x337ca8=_0x907984[_0xb6115a(-_0x5a8673._0x352545,-_0x5a8673._0x2f48f2,-0x179,-_0x5a8673._0x1c50d1)]??globalThis[_0x5009bc(_0x5a8673._0x3f60be,_0x5a8673._0x521a08,_0x5a8673._0x3a9bec,0x5bf)],_0x331c81=_0x907984[_0x5009bc(0x5a0,0x4f8,_0x5a8673._0x6aeae5,_0x5a8673._0x4ed1c7)]??(_0x907984[_0x5009bc(0x79b,_0x5a8673._0x351957,0x6eb,0x6d9)]?new GitHubAccessTokenResolver({'accessToken':_0x907984[_0x5009bc(_0x5a8673._0x164731,0x5ef,0x65e,0x6d9)],'baseUrl':_0x1d8277,'fetch':_0x337ca8,'githubApiUrl':_0x907984[_0xb6115a(-0x13,_0x5a8673._0x51f2a1,-0x8f,-0x108)]??_0xb6115a(-0xd2,-_0x5a8673._0x1b6e23,-_0x5a8673._0x256984,-_0x5a8673._0x4600fb),'tokenExchangeApiVersion':_0x907984[_0xb6115a(-_0x5a8673._0xf59ae8,-0x11d,-0x127,-_0x5a8673._0x48ad3c)]??_0xb6115a(-0x1ae,-0x25f,-0x1f6,-0x283)}):void 0x0),_0x158e09=_0x907984[_0x5009bc(_0x5a8673._0x352d31,0x5f6,_0x5a8673._0x3beed9,_0x5a8673._0x3bb4c9)]??_0xb6115a(-_0x5a8673._0x447d16,-_0x5a8673._0x2f4863,-_0x5a8673._0xdf1307,-0x14a);function _0x5009bc(_0x2cd971,_0x24c4b6,_0x60857,_0x9bfc42){return _0x54ac71(_0x2cd971-0x8e,_0x60857,_0x9bfc42-_0x57b6f5._0x1d0862,_0x9bfc42-_0x57b6f5._0x753cee);}const _0x56c2b=_0x907984[_0xb6115a(-_0x5a8673._0x3002f4,-0x12c,-0xb5,-0xc3)]??'copilot-chat/0.31.3',_0x10c1de=({body:_0x11c4cc})=>{return{'editor-plugin-version':_0x56c2b,'editor-version':_0x158e09,'x-initiator':determineInitiator(_0x11c4cc),'x-request-id':randomUUID()};},_0x3d0461={'apiKey':_0x907984[_0xb6115a(-0x143,-0x1d4,-0xe0,-_0x5a8673._0x3488a4)],'baseUrl':_0x1d8277,'fetch':_0x337ca8,'maxTokens':_0x907984[_0x5009bc(0x561,_0x5a8673._0x1defee,0x55e,_0x5a8673._0x1811b3)],'model':_0x907984['model'],'modelIdentity':_0x907984[_0x5009bc(0x5bc,_0x5a8673._0x1fb41b,_0x5a8673._0x22c44d,_0x5a8673._0x575437)],'reasoning':_0x907984[_0xb6115a(-0xf4,-0xeb,-0x14a,-_0x5a8673._0x5530f1)],'providerSessionResolver':_0x331c81,'requestMutators':_0x907984[_0xb6115a(-0x58,0x29,-_0x5a8673._0x4fefcb,-0xc2)],'headerResolver':_0x10c1de};super(_0x3d0461),this['surface']=_0x907984[_0xb6115a(-_0x5a8673._0x89b2,-_0x5a8673._0x3a326d,-0x1b0,-_0x5a8673._0x5bfdc9)]??'auto',this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x907984[_0x5009bc(0x4ae,_0x5a8673._0x5b25e6,0x4ad,_0x5a8673._0x4b91d1)],'authScheme':'bearer','baseUrl':_0x1d8277,'fetch':_0x337ca8,'headerResolver':_0x10c1de,'maxTokens':_0x907984[_0x5009bc(0x53f,_0x5a8673._0x5c5a6b,_0x5a8673._0x4a01ac,0x4f9)],'model':_0x907984['model'],'modelIdentity':_0x907984[_0xb6115a(-0x153,-_0x5a8673._0x1b25f5,-_0x5a8673._0x952607,-0x1c5)],'reasoning':_0x907984[_0x5009bc(_0x5a8673._0x503add,_0x5a8673._0x1beddb,0x64b,_0x5a8673._0x433993)],'providerSessionResolver':_0x331c81,'requestMutators':_0x907984['requestMutators']});}['createMissingCredentialError'](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}[_0x5276b1(0x9d,0x115,0x4c,0x3f)](_0x5282a5){const _0x488e42={_0x311cc8:0xcd,_0x4843c3:0x8c,_0x8aaf05:0x67d,_0x13e71a:0x6fc,_0x242211:0x70e,_0x2c764f:0x66f,_0x2241c4:0x721},_0x43dc7d={_0x5b11ec:0x9b,_0x523df2:0x26a},_0x160ba4={_0x125ceb:0x180,_0x126cec:0x108,_0x38c5b1:0x1d};function _0x26bfe6(_0x21590c,_0x223fa9,_0x2514f7,_0x3fb3ac){return _0x5276b1(_0x21590c,_0x223fa9-_0x160ba4._0x125ceb,_0x2514f7-_0x160ba4._0x126cec,_0x3fb3ac- -_0x160ba4._0x38c5b1);}function _0x5482e2(_0x288dcd,_0xbd81ea,_0x191ced,_0x77194d){return _0x54ac71(_0x288dcd-_0x43dc7d._0x5b11ec,_0x77194d,_0x191ced-_0x43dc7d._0x523df2,_0x77194d-0x56);}const _0x461325=this['modelEndpointCache'][_0x26bfe6(-0x16f,-0xa1,-_0x488e42._0x311cc8,-_0x488e42._0x4843c3)](_0x5282a5);if(!_0x461325)return![];return!_0x461325[_0x5482e2(_0x488e42._0x8aaf05,0x731,_0x488e42._0x13e71a,0x67d)]('/chat/completions')&&_0x461325['includes'](_0x5482e2(_0x488e42._0x242211,_0x488e42._0x2c764f,0x6a7,_0x488e42._0x2241c4));}[_0x54ac71(0x275,0x35f,0x310,0x3d7)](_0x3e714a){const _0x477320={_0x28f042:0x234,_0x48fc1:0x2d2,_0x2c3801:0x145,_0x4e6131:0x159,_0x194012:0x106,_0x754ab8:0x733,_0x58f8fd:0x723,_0x357c3f:0x617,_0xd2bf0a:0x1f3,_0x1f8d70:0x68f},_0x49484b={_0x4d60f9:0x1d9,_0x433496:0x24e,_0x350212:0xca},_0xaae710=this[_0xcfcb35(_0x477320._0x28f042,0x2ad,_0x477320._0x48fc1,0x174)][_0xcfcb35(_0x477320._0x2c3801,_0x477320._0x4e6131,0x1d4,_0x477320._0x194012)](_0x3e714a[_0xf1c7ea(0x6d2,_0x477320._0x754ab8,_0x477320._0x58f8fd,0x806)]);function _0xf1c7ea(_0x189a4b,_0x554dcc,_0x308733,_0x3601a2){return _0x54ac71(_0x189a4b-_0x49484b._0x4d60f9,_0x308733,_0x554dcc-_0x49484b._0x433496,_0x3601a2-_0x49484b._0x350212);}function _0xcfcb35(_0x53a820,_0x408b3c,_0x2f512a,_0x140e55){return _0x5276b1(_0x140e55,_0x408b3c-0xe,_0x2f512a-0x12f,_0x53a820-0x1b4);}if(!_0xaae710)return![];if(resolveOpenAiReasoningConfig(_0x3e714a[_0xf1c7ea(0x714,0x642,0x58e,0x652)]))return _0xaae710[_0xf1c7ea(_0x477320._0x357c3f,0x6e0,0x6ec,0x614)]('/responses');return this[_0xcfcb35(_0x477320._0xd2bf0a,0x10e,0x201,0x2cb)](_0x3e714a[_0xf1c7ea(_0x477320._0x1f8d70,0x733,0x7ba,0x6b4)]);}[_0x5276b1(0xea,0x21,0xe0,0x2a)](_0x4b57be){const _0x356e05={_0x211e4d:0x509,_0x423c5e:0x426,_0x423a4e:0x5d,_0x5c3456:0x56,_0x40c91b:0x64},_0x38c31d={_0x30acf5:0x114,_0x5215ba:0x12a};function _0x38594f(_0x2ff6be,_0x4f5097,_0x196f1a,_0x205ee4){return _0x5276b1(_0x4f5097,_0x4f5097-_0x38c31d._0x30acf5,_0x196f1a-_0x38c31d._0x5215ba,_0x196f1a- -0xa4);}function _0x193a4d(_0xd157fd,_0x214569,_0x574013,_0x8e9a29){return _0x54ac71(_0xd157fd-0x105,_0x214569,_0x8e9a29-0x37,_0x8e9a29-0x1bf);}this[_0x193a4d(_0x356e05._0x211e4d,_0x356e05._0x423c5e,0x4c9,0x4b4)][_0x38594f(-0x45,_0x356e05._0x423a4e,0x39,0xfd)](_0x4b57be,[_0x38594f(-_0x356e05._0x5c3456,-0x157,-_0x356e05._0x40c91b,-0x7f)]);}[_0x5276b1(0xb,0x2,0xdb,0x8d)](_0x14e06b){const _0x2ba37={_0xb7948b:0x4d,_0x4d7e94:0x5d,_0xb19cd4:0x61,_0x5e192a:0x67,_0x54e677:0x15,_0x2a072d:0xce,_0x2d2355:0x15b},_0x29f3cc={_0x474848:0x29,_0x10f66f:0x9d,_0xe42e41:0x10f},_0x5c62a2={_0x1c6787:0x73,_0x5c6919:0x7d};function _0x189316(_0x50ce82,_0x5d0a42,_0x3441e7,_0x28c730){return _0x5276b1(_0x28c730,_0x5d0a42-0x135,_0x3441e7-_0x5c62a2._0x1c6787,_0x50ce82-_0x5c62a2._0x5c6919);}if(_0x14e06b instanceof OpenAiApiError)return createResponseError(_0x14e06b[_0x189316(-_0x2ba37._0xb7948b,-_0x2ba37._0x4d7e94,_0x2ba37._0xb19cd4,_0x2ba37._0x5e192a)],_0x14e06b[_0x189316(0x3f,-0x6,-_0x2ba37._0x54e677,0xb1)]||_0x14e06b[_0x519f5d(0x1bc,_0x2ba37._0x2a072d,-0x14,_0x2ba37._0x2d2355)]);function _0x519f5d(_0x1bb057,_0x56fa4d,_0x284e83,_0x302eb2){return _0x5276b1(_0x284e83,_0x56fa4d-_0x29f3cc._0x474848,_0x284e83-_0x29f3cc._0x10f66f,_0x56fa4d-_0x29f3cc._0xe42e41);}return _0x14e06b;}[_0x5276b1(-0x26,-0xbd,-0xa3,-0xb1)](_0x59a8de,_0xceb29a){const _0x3646c6={_0xe831e9:0x592,_0x15bbe8:0x641,_0x5b15aa:0x4bf,_0x436322:0x2e5,_0x4e0e8f:0x33d,_0x4ea923:0x279,_0x31a259:0x635,_0xf3fb48:0x583,_0x59d781:0x676,_0x151864:0x1eb,_0x193dc3:0x269,_0x232e97:0x21e,_0x27f27f:0x204,_0x3587c5:0x15b,_0x13d387:0xba,_0x2d0e3e:0x176,_0x175e89:0x570,_0x46e15c:0x4a3,_0x4050e5:0x198,_0x5a9ce5:0x154,_0x4eb7d7:0x1a3,_0x4f1f0a:0x232,_0x8c577f:0x1f2,_0x310f69:0x1d9,_0x38009f:0x1e4,_0x4fd758:0x177,_0x27862d:0x266,_0x4f98dd:0x592,_0x271c27:0x5df,_0x1108e6:0x674},_0x5aa967={_0x49a272:0x75,_0x30d108:0x23d},_0x534be5={_0x495ea6:0x1bb,_0xf29f72:0x1e2};function _0x4edc9d(_0x14117e,_0x2c0572,_0x8959,_0x576bf7){return _0x54ac71(_0x14117e-0x1a3,_0x2c0572,_0x14117e-_0x534be5._0x495ea6,_0x576bf7-_0x534be5._0xf29f72);}function _0xc35b55(_0x5989e1,_0x42b5,_0x7ae437,_0x3e413f){return _0x5276b1(_0x42b5,_0x42b5-0x163,_0x7ae437-_0x5aa967._0x49a272,_0x5989e1-_0x5aa967._0x30d108);}switch(this[_0x4edc9d(_0x3646c6._0xe831e9,_0x3646c6._0x15bbe8,_0x3646c6._0x5b15aa,0x506)]){case _0xc35b55(0x264,_0x3646c6._0x436322,_0x3646c6._0x4e0e8f,_0x3646c6._0x4ea923):return this[_0x4edc9d(_0x3646c6._0x31a259,_0x3646c6._0xf3fb48,_0x3646c6._0x59d781,0x5de)][_0xc35b55(_0x3646c6._0x151864,0x2d6,_0x3646c6._0x193dc3,_0x3646c6._0x232e97)](_0x59a8de,_0xceb29a);case'openai-chat-completions':return this['chatComplete'](_0x59a8de,_0xceb29a);case _0xc35b55(0x21a,_0x3646c6._0x27f27f,0x30e,0x166):return this[_0xc35b55(_0x3646c6._0x3587c5,0x76,_0x3646c6._0x13d387,_0x3646c6._0x2d0e3e)](_0x59a8de,_0xceb29a);case _0x4edc9d(_0x3646c6._0x175e89,0x4e1,0x597,_0x3646c6._0x46e15c):return this[_0xc35b55(_0x3646c6._0x4050e5,_0x3646c6._0x5a9ce5,0x188,0x1c9)](_0x59a8de,_0xceb29a);case _0xc35b55(0x247,_0x3646c6._0x4eb7d7,_0x3646c6._0x4f1f0a,_0x3646c6._0x8c577f):return this[_0xc35b55(0x1eb,0x247,_0x3646c6._0x310f69,0x2c2)](_0x59a8de,_0xceb29a);}throw new Error(_0xc35b55(_0x3646c6._0x38009f,0x292,_0x3646c6._0x4fd758,_0x3646c6._0x27862d)+String(this[_0x4edc9d(_0x3646c6._0x4f98dd,0x4de,_0x3646c6._0x271c27,_0x3646c6._0x1108e6)]));}['streamViaConfiguredSurface'](_0x2cdc8c,_0x4aea67){const _0x132d9a={_0x19ced2:0x4f7,_0x5c07ba:0x4b4,_0x1b498d:0x5b5,_0x5651a9:0x4a7,_0x107df9:0x1c2,_0x115fba:0x5e1,_0x4a91dc:0xd3,_0x325e49:0x14c,_0x3a7c70:0x3c7,_0x204468:0x50a,_0xcd50f2:0x450,_0x32cf7a:0x4b5,_0x2de903:0x4e5,_0x5ddd32:0x5c8,_0x21a533:0x645,_0x5d0f5a:0x1b1},_0x43d063={_0x2f4d33:0x16f,_0x142b84:0xe2},_0x20fdfb={_0x2ff053:0xd7};switch(this[_0x216a5d(0x478,_0x132d9a._0x19ced2,_0x132d9a._0x5c07ba,0x516)]){case _0x216a5d(0x583,_0x132d9a._0x1b498d,_0x132d9a._0x5651a9,0x563):return this[_0x27e9b7(0x207,0x184,0x20e,_0x132d9a._0x107df9)][_0x216a5d(0x5df,_0x132d9a._0x115fba,0x4cb,0x562)](_0x2cdc8c,_0x4aea67);case _0x27e9b7(0xe1,_0x132d9a._0x4a91dc,0xcb,_0x132d9a._0x325e49):return this['chatStream'](_0x2cdc8c,_0x4aea67);case _0x27e9b7(0x167,0x153,0x102,0x25b):return this[_0x216a5d(_0x132d9a._0x3a7c70,0x429,_0x132d9a._0x204468,_0x132d9a._0xcd50f2)](_0x2cdc8c,_0x4aea67);case'openai-responses-ws':return this[_0x216a5d(_0x132d9a._0x32cf7a,_0x132d9a._0x2de903,0x510,0x59b)](_0x2cdc8c,_0x4aea67);case _0x216a5d(0x618,_0x132d9a._0x5ddd32,0x496,0x546):return this[_0x216a5d(0x5d8,_0x132d9a._0x21a533,0x4dd,0x562)](_0x2cdc8c,_0x4aea67);}function _0x27e9b7(_0x352fa9,_0x55cbaa,_0x1323a5,_0x53566b){return _0x5276b1(_0x53566b,_0x55cbaa-0x99,_0x1323a5-_0x20fdfb._0x2ff053,_0x352fa9-0x18a);}function _0x216a5d(_0x109a95,_0x2b05a5,_0x27feb5,_0x47d157){return _0x54ac71(_0x109a95-_0x43d063._0x2f4d33,_0x109a95,_0x47d157-0x13f,_0x47d157-_0x43d063._0x142b84);}throw new Error(_0x27e9b7(0x131,0x11a,0x211,_0x132d9a._0x5d0f5a)+String(this['surface']));}async[_0x5276b1(-0x6c,-0xed,-0x16,-0x52)](_0x2fec03,_0x19e70d){const _0x328fbd={_0x59a840:0x5e4,_0x5f5741:0x51d,_0x549be9:0x5a0,_0x317fef:0x44b,_0x455ae8:0x52b,_0x3640ae:0x638,_0x4cc473:0x28a,_0x247d66:0x39f,_0x5ab999:0x3cd},_0x8176b3={_0x35a542:0x11f};function _0x4893b6(_0x1966f3,_0x4f03a9,_0x2a6b5f,_0x31c370){return _0x54ac71(_0x1966f3-0x1d9,_0x1966f3,_0x4f03a9-0x20d,_0x31c370-0x51);}const _0x238093=this[_0x4893b6(0x647,0x617,_0x328fbd._0x59a840,0x5cb)](_0x2fec03);if(this[_0x4893b6(0x630,0x5e4,0x50b,0x552)]!=='auto')return this['completeViaConfiguredSurface'](_0x238093,_0x19e70d);if(this[_0x4893b6(0x5c9,_0x328fbd._0x5f5741,0x438,_0x328fbd._0x549be9)](_0x238093))return this['response'](_0x238093,_0x19e70d);function _0x3321c0(_0x1507b5,_0x4d9082,_0x244917,_0x4311e5){return _0x54ac71(_0x1507b5-_0x8176b3._0x35a542,_0x4311e5,_0x4d9082-0x57,_0x4311e5-0x1b5);}try{return await this[_0x3321c0(_0x328fbd._0x317fef,_0x328fbd._0x455ae8,0x58a,0x439)](_0x238093,_0x19e70d);}catch(_0x8f7e1d){if(_0x8f7e1d instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x8f7e1d['body']))return this[_0x4893b6(0x66a,0x634,_0x328fbd._0x3640ae,0x6e4)](_0x238093['model']),this[_0x3321c0(_0x328fbd._0x4cc473,0x372,_0x328fbd._0x247d66,_0x328fbd._0x5ab999)](_0x238093,_0x19e70d);throw this['mapApiError'](_0x8f7e1d);}throw _0x8f7e1d;}}async*[_0x54ac71(0x383,0x4e3,0x423,0x445)](_0x509d99,_0x4d4e6d){const _0x33b302={_0x22b6b1:0x97,_0x5d3733:0x233,_0x239aa1:0x13b,_0x2ebc67:0xc0,_0x4c4d9d:0x61,_0x33d3a2:0x42,_0x5033ff:0x7f,_0x8c495c:0x108,_0xf0a612:0x84,_0x1b88ee:0xe1,_0x235f57:0x198,_0x132872:0x58,_0x2f10c1:0x1e,_0x47e9f3:0x3d,_0x5712c2:0x2a},_0x538b0a={_0x2acaa8:0x165},_0x4cdab1={_0x5a34a6:0x1cd},_0x474e9f=this[_0x4f6f53(-_0x33b302._0x22b6b1,-0xbd,-0x10b,-0x163)](_0x509d99);function _0x1d6fd3(_0x3c8f0d,_0x103068,_0x556b05,_0x7d68d4){return _0x54ac71(_0x3c8f0d-_0x4cdab1._0x5a34a6,_0x556b05,_0x103068- -0x221,_0x7d68d4-0xb8);}if(this[_0x1d6fd3(_0x33b302._0x5d3733,0x1b6,_0x33b302._0x239aa1,0x1d3)]!==_0x4f6f53(-0x116,-_0x33b302._0x2ebc67,-0x26,-0x19c)){yield*this[_0x4f6f53(-0xad,-_0x33b302._0x4c4d9d,-0x96,_0x33b302._0x33d3a2)](_0x474e9f,_0x4d4e6d);return;}function _0x4f6f53(_0x18a70f,_0x347ef3,_0x19c670,_0xc3ac4a){return _0x54ac71(_0x18a70f-_0x538b0a._0x2acaa8,_0x19c670,_0x347ef3- -0x4c7,_0xc3ac4a-0x1a5);}if(this[_0x1d6fd3(0xcf,0xef,_0x33b302._0x5033ff,_0x33b302._0x8c495c)](_0x474e9f)){yield*this[_0x4f6f53(-0xc3,-0x1b6,-0x10b,-0x189)](_0x474e9f,_0x4d4e6d);return;}try{yield*this['streamViaChatCompletionsSurface'](_0x474e9f,_0x4d4e6d);}catch(_0x1ac3c4){if(_0x1ac3c4 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x1ac3c4[_0x4f6f53(-_0x33b302._0xf0a612,-0x108,-_0x33b302._0x1b88ee,-_0x33b302._0x235f57)])){this['markModelAsResponsesOnly'](_0x474e9f[_0x4f6f53(_0x33b302._0x132872,_0x33b302._0x2f10c1,-0x8a,-0xe)]),yield*this['responseStream'](_0x474e9f,_0x4d4e6d);return;}throw this[_0x4f6f53(-0xeb,-_0x33b302._0x47e9f3,-_0x33b302._0x5712c2,-0x8d)](_0x1ac3c4);}throw _0x1ac3c4;}}async[_0x5276b1(0x2f,-0x6d,0x94,-0x20)](_0x2ea4bc){const _0xc72122={_0x236d11:0x23f,_0x4b01ea:0x305,_0x2a5c7c:0x27c,_0x496fec:0x324,_0x54dc5f:0x2d6,_0x6ef3a4:0x359,_0x538473:0x304,_0x7fd30f:0x1f7,_0x40c765:0x12a,_0x54e44a:0x215,_0x647240:0x20e,_0x350b26:0x160,_0x308c97:0x137,_0x197dbf:0x2ea,_0x120460:0x163,_0x4f900e:0x291},_0x4fe999={_0xc7bef5:0x13d,_0x3f9109:0x97,_0x42e193:0xa6},_0x1cc418={_0x492a2e:0x4,_0x1bd36d:0x1bf},_0x23667d={_0x5c10b3:0x1c4,_0x48dd5a:0x1},_0x469c8b={_0x54b87e:0x9b,_0x22c7df:0x17c,_0x5f1138:0xa7},_0xe1378c={_0x528537:0x179,_0x398097:0x1e7},_0x1f69cc=await this[_0x798434(0x2b8,_0xc72122._0x236d11,_0xc72122._0x4b01ea,_0xc72122._0x2a5c7c)]({'path':_0xe3171e(0x232,_0xc72122._0x496fec,0x286,0x2af),'method':_0xe3171e(_0xc72122._0x54dc5f,0x2c0,_0xc72122._0x6ef3a4,0x39a),'signal':_0x2ea4bc});function _0xe3171e(_0x4861dd,_0x4ae749,_0x89fac5,_0x1d63a0){return _0x54ac71(_0x4861dd-_0xe1378c._0x528537,_0x4ae749,_0x4861dd- -_0xe1378c._0x398097,_0x1d63a0-0x134);}if(!_0x1f69cc['ok'])throw this[_0xe3171e(0x2a3,0x288,0x25c,_0xc72122._0x538473)](await this[_0xe3171e(_0xc72122._0x7fd30f,_0xc72122._0x40c765,0x195,_0xc72122._0x54e44a)](_0x1f69cc));function _0x798434(_0x7716de,_0x8deb96,_0x10999a,_0x52b2cf){return _0x54ac71(_0x7716de-_0x469c8b._0x54b87e,_0x8deb96,_0x7716de- -_0x469c8b._0x22c7df,_0x52b2cf-_0x469c8b._0x5f1138);}const _0x43281d=await _0x1f69cc[_0x798434(0x1b9,_0xc72122._0x647240,_0xc72122._0x350b26,_0xc72122._0x308c97)](),_0x58870e=(_0x43281d['data']??[])[_0xe3171e(0x203,_0xc72122._0x197dbf,_0xc72122._0x120460,_0xc72122._0x4f900e)](_0x404eae=>{function _0x16c0d3(_0x2c5ad1,_0x3b4a29,_0x16d4ac,_0x4b1812){return _0x798434(_0x4b1812- -0x26a,_0x2c5ad1,_0x16d4ac-_0x23667d._0x5c10b3,_0x4b1812-_0x23667d._0x48dd5a);}function _0x29cdf8(_0x3248f8,_0x3dc660,_0x3c2d78,_0x49ccc4){return _0x798434(_0x3248f8- -0x173,_0x49ccc4,_0x3c2d78-_0x1cc418._0x492a2e,_0x49ccc4-_0x1cc418._0x1bd36d);}const _0x498daa=createModelInfo(_0x404eae);return _0x498daa['supportedEndpoints']&&this[_0x16c0d3(0x11b,_0x4fe999._0xc7bef5,0xae,_0x4fe999._0x3f9109)]['set'](_0x498daa['id'],_0x498daa[_0x16c0d3(0x2,-_0x4fe999._0x42e193,0x69,0x49)]),_0x498daa;});return deduplicateModels(_0x58870e);}};function createHeaders(_0x53660d){const _0x3b778d={_0x104dfc:0x59e,_0x277dde:0x721,_0x287b4b:0x643,_0x59df00:0x66c,_0x14dbb7:0x6af},_0x339d68={_0x75de44:0x25};function _0xe6dccd(_0x4b20f6,_0x44e2de,_0x3738c4,_0x2da2b5){return _0x54ac71(_0x4b20f6-0x19c,_0x44e2de,_0x4b20f6-0x247,_0x2da2b5-0x1a7);}const _0x885475=new Headers();for(const [_0x305781,_0x1d6b48]of Object[_0x468521(0x62f,_0x3b778d._0x104dfc,0x4d4,0x608)](_0x53660d)){_0x885475[_0xe6dccd(_0x3b778d._0x277dde,_0x3b778d._0x287b4b,_0x3b778d._0x59df00,_0x3b778d._0x14dbb7)](_0x305781,_0x1d6b48);}function _0x468521(_0x515fdb,_0x2ada10,_0x4c9876,_0xc9e57c){return _0x5276b1(_0x4c9876,_0x2ada10-_0x339d68._0x75de44,_0x4c9876-0x33,_0x2ada10-0x650);}return _0x885475;}async function fetchRawResponse(_0x33137b){const _0x3c0d70={_0x396afd:0x27e,_0x108987:0x5a3,_0x184c1d:0x217,_0x220f80:0x2a6,_0x1e4dac:0x251,_0x1363c8:0x187,_0x5bfaa8:0x133,_0x28e922:0x1ee,_0x223b70:0x134},_0xc0b600={_0x54d052:0xba},_0x149fd8=_0x33137b[_0x36edae(0x2b9,_0x3c0d70._0x396afd,0x227,0x2a4)]??globalThis['fetch'];function _0x50a4c2(_0x5cbdb7,_0x35b351,_0x2945ee,_0x595f14){return _0x5276b1(_0x35b351,_0x35b351-0xe3,_0x2945ee-0x82,_0x5cbdb7-0x5f3);}function _0x36edae(_0x27469c,_0x2436b2,_0x553e81,_0x2606df){return _0x54ac71(_0x27469c-0x190,_0x27469c,_0x553e81- -0x1a3,_0x2606df-_0xc0b600._0x54d052);}return _0x149fd8(_0x33137b[_0x50a4c2(_0x3c0d70._0x108987,0x5f5,0x558,0x4d4)],{'method':_0x36edae(_0x3c0d70._0x184c1d,0x24c,0x2c8,0x38e),'headers':createHeaders(_0x33137b[_0x36edae(0x274,0xf7,0x1ba,0x224)]),'body':JSON['stringify'](_0x33137b[_0x36edae(_0x3c0d70._0x220f80,0x1ed,0x21c,_0x3c0d70._0x1e4dac)]),'signal':_0x33137b[_0x36edae(_0x3c0d70._0x1363c8,_0x3c0d70._0x5bfaa8,_0x3c0d70._0x28e922,_0x3c0d70._0x223b70)]});}async function fetchJsonResponse(_0x2a42fc){const _0x219ae0={_0x3e0170:0xeb,_0x17b00f:0x14d,_0x5da527:0x5b,_0x2064fd:0x274,_0xdea348:0x3e4,_0x110833:0x2f5,_0x67d548:0x19e,_0x51d2ef:0x1dd,_0x14d923:0x358,_0x3f1226:0x293,_0x1c365c:0x22b,_0x2e9496:0x188,_0x4c592f:0x20c,_0x284c9d:0x115},_0x281273={_0x14de0a:0x123,_0x3d2e73:0xb,_0x223275:0x252},_0x299642={_0x2c3a1b:0x8d},_0x2da48c=await fetchRawResponse(_0x2a42fc);if(!_0x2da48c['ok']){const _0x2adf4b=await _0x2da48c[_0x22b3ad(0x18a,0x118,_0x219ae0._0x3e0170,_0x219ae0._0x17b00f)](),_0x4bda27=_0x2adf4b[_0x22b3ad(-0xc6,-_0x219ae0._0x5da527,0x3c,-0x4b)]()||_0x2da48c['statusText']||_0x53db68(_0x219ae0._0x2064fd,_0x219ae0._0xdea348,0x279,_0x219ae0._0x110833);throw new Error(_0x53db68(_0x219ae0._0x67d548,_0x219ae0._0x51d2ef,_0x219ae0._0x14d923,_0x219ae0._0x3f1226)+_0x2da48c[_0x53db68(0x177,_0x219ae0._0x1c365c,0x12e,_0x219ae0._0x2e9496)]+':\x20'+_0x4bda27);}function _0x22b3ad(_0x5d84d2,_0x223c15,_0x1dbca1,_0x4193dd){return _0x5276b1(_0x4193dd,_0x223c15-0x1ca,_0x1dbca1-0x101,_0x223c15-_0x299642._0x2c3a1b);}function _0x53db68(_0x146456,_0x6f92f0,_0x12c839,_0x4dcfb4){return _0x5276b1(_0x12c839,_0x6f92f0-_0x281273._0x14de0a,_0x12c839-_0x281273._0x3d2e73,_0x4dcfb4-_0x281273._0x223275);}return await _0x2da48c[_0x53db68(0x223,_0x219ae0._0x4c592f,_0x219ae0._0x284c9d,0x18a)]();}function findLastMessage(_0x523a5a,_0x577ac9){const _0x256d95={_0x57423d:0x32b,_0x2a93dd:0x294,_0x2ea0c8:0x27a,_0x43d18f:0x2a7,_0x4db4fb:0x23d},_0x1a305f={_0x475f25:0x1b3},_0x4ccd03={_0x116e9b:0x153,_0x2b966a:0x12a};function _0x21b6d7(_0x2f3ef6,_0x53b4d3,_0xe51f6,_0x5124ff){return _0x5276b1(_0x5124ff,_0x53b4d3-_0x4ccd03._0x116e9b,_0xe51f6-_0x4ccd03._0x2b966a,_0x53b4d3-0x5ba);}for(let _0x4b67ec=_0x523a5a[_0x6dc25(_0x256d95._0x57423d,_0x256d95._0x2a93dd,0x35e,0x36d)]-0x1;_0x4b67ec>=0x0;_0x4b67ec-=0x1){if(_0x523a5a[_0x4b67ec][_0x6dc25(0x283,_0x256d95._0x2ea0c8,_0x256d95._0x43d18f,_0x256d95._0x4db4fb)]===_0x577ac9)return _0x523a5a[_0x4b67ec];}function _0x6dc25(_0x49ca1a,_0x170c1e,_0x5dbb78,_0x21b306){return _0x5276b1(_0x5dbb78,_0x170c1e-0x113,_0x5dbb78-0xc6,_0x170c1e-_0x1a305f._0x475f25);}return void 0x0;}function hasTool(_0x5240b3,_0x5ddf8e){const _0x5303ba={_0x5c7c43:0x3ef,_0x378472:0x412,_0x12014f:0x4b4},_0x506206={_0x2b0bba:0x15f,_0xfd5d22:0x3eb},_0x1c1993={_0x488001:0x72,_0x2a3f7b:0x1a6};function _0x181c85(_0x2d0db6,_0x21f82c,_0x402b97,_0x329848){return _0x54ac71(_0x2d0db6-_0x1c1993._0x488001,_0x329848,_0x402b97- -0x3d,_0x329848-_0x1c1993._0x2a3f7b);}function _0x2aed90(_0x52c42d,_0x57e15c,_0x26d9a5,_0x18fa10){return _0x5276b1(_0x26d9a5,_0x57e15c-_0x506206._0x2b0bba,_0x26d9a5-0x1b7,_0x52c42d-_0x506206._0xfd5d22);}return _0x5240b3[_0x2aed90(_0x5303ba._0x5c7c43,0x4e1,0x4e4,_0x5303ba._0x378472)][_0x2aed90(0x4cb,_0x5303ba._0x378472,_0x5303ba._0x12014f,0x590)](_0x4f1f23=>_0x4f1f23[_0x2aed90(0x32a,0x31d,0x327,0x3fd)]===_0x5ddf8e);}function createMockResponse(_0x2a9b52,_0x2126d2,_0x4a8995,_0x4186bb){return{'id':_0x2a9b52,'content':_0x2126d2,'stopReason':_0x4a8995,'usage':_0x4186bb};}var MockModel=class{['model'];[_0x54ac71(0x30c,0x3bf,0x395,0x41a)];[_0x5276b1(-0x2d,-0xc0,-0xea,-0xf9)];[_0x5276b1(0xce,0x170,0x141,0x92)]=[];[_0x5276b1(-0x21,-0xc8,-0x19,-0x9)];constructor(_0x7f1f13={}){const _0x5a7489={_0x11b016:0x760,_0x407a73:0x681,_0x372fcc:0x602,_0x1fb6a2:0x506,_0x3e6524:0x771,_0x19be08:0x5aa,_0x1d6a33:0x5d5,_0x2784:0x4c2,_0x45f022:0x5bc,_0x48df73:0x621,_0x1e1865:0x5bd},_0x6ea519={_0x5357b3:0x19c},_0x123640={_0x4c6a08:0x1bc,_0x43aa76:0x22d};function _0x1f2f88(_0x2f5a2a,_0x16a819,_0x5fffe1,_0x5bb062){return _0x54ac71(_0x2f5a2a-_0x123640._0x4c6a08,_0x2f5a2a,_0x5fffe1-_0x123640._0x43aa76,_0x5bb062-0x154);}this['model']=_0x7f1f13[_0xc1da10(_0x5a7489._0x11b016,_0x5a7489._0x407a73,0x6c3,_0x5a7489._0x372fcc)]??_0xc1da10(0x574,_0x5a7489._0x1fb6a2,0x52d,0x53e),this[_0x1f2f88(0x586,0x53a,0x5c2,0x60e)]=_0x7f1f13['modelIdentity']??modelIdentityFromParts(void 0x0,this[_0xc1da10(0x751,0x681,0x5ee,_0x5a7489._0x3e6524)]),this['maxTokens']=_0x7f1f13[_0x1f2f88(_0x5a7489._0x19be08,_0x5a7489._0x1d6a33,0x531,_0x5a7489._0x2784)];function _0xc1da10(_0x363434,_0x1065f4,_0x57611d,_0x518f1f){return _0x54ac71(_0x363434-0x1c6,_0x57611d,_0x1065f4-_0x6ea519._0x5357b3,_0x518f1f-0x85);}this['reasoning']=_0x7f1f13['reasoning']?structuredClone(_0x7f1f13[_0x1f2f88(0x5d8,_0x5a7489._0x45f022,_0x5a7489._0x48df73,_0x5a7489._0x1e1865)]):void 0x0;}async[_0x54ac71(0x45e,0x2cf,0x3ab,0x3b9)](_0xa56081,_0xeafbbf){const _0x564b65={_0x273fae:0xe9,_0x4cdb67:0x513,_0x4b89db:0x4a9,_0x1effcd:0x433,_0x3ba5bf:0x53c,_0x3c17dc:0x579,_0x2dc236:0x468,_0xd66595:0x618,_0xce90c2:0x573,_0x2c376d:0x569,_0x131433:0x610,_0x1f00b9:0x9c,_0x1c9944:0xb9,_0x3b0806:0x15,_0x23e256:0x594,_0x45a537:0x561,_0x24a9a8:0x4b7,_0x41cf8c:0xd1,_0x4912ac:0x6d,_0x417581:0x1ad,_0xaa1f48:0x140,_0x2f5a7a:0x4b5,_0x24a10b:0x67,_0x1906c8:0x1ae,_0xe66ab6:0x1ea},_0x54718d={_0x258646:0x94},_0x19e78f={_0x42d856:0xe1,_0x456600:0xb5,_0x334097:0x1d4},_0x14ea1d={...structuredClone(_0xa56081),..._0xa56081[_0x279ca7(_0x564b65._0x273fae,0x5a,0x81,0xa5)]===void 0x0&&this[_0x4b93e2(_0x564b65._0x4cdb67,0x4ba,_0x564b65._0x4b89db,_0x564b65._0x1effcd)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};this[_0x4b93e2(_0x564b65._0x3ba5bf,0x456,0x544,_0x564b65._0x3c17dc)]['push'](_0x14ea1d);const _0x277034=findLastMessage(_0x14ea1d['messages'],'user'),_0x57191c=getToolResultBlocks(_0x277034);function _0x4b93e2(_0x5558c6,_0xf11c71,_0x469217,_0x49145b){return _0x54ac71(_0x5558c6-_0x19e78f._0x42d856,_0xf11c71,_0x469217-_0x19e78f._0x456600,_0x49145b-_0x19e78f._0x334097);}const _0x205ad8=_0x4b93e2(0x492,_0x564b65._0x2dc236,0x3bd,0x416)+this[_0x4b93e2(0x5c4,0x457,0x544,0x56f)]['length'];if(_0x57191c[_0x4b93e2(_0x564b65._0xd66595,0x4e1,0x593,_0x564b65._0xce90c2)]>0x0)return createMockResponse(_0x205ad8,[{'type':_0x4b93e2(0x4ae,_0x564b65._0x2c376d,0x53d,_0x564b65._0x131433),'text':_0x279ca7(-0x2e,-_0x564b65._0x1f00b9,-_0x564b65._0x1c9944,_0x564b65._0x3b0806)+_0x57191c[0x0][_0x4b93e2(0x61a,_0x564b65._0x23e256,_0x564b65._0x45a537,0x581)]}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});const _0x342555=getTextFromMessage(_0x277034);if(/list .*files|workspace/i['test'](_0x342555)&&hasTool(_0x14ea1d,_0x4b93e2(0x401,_0x564b65._0x24a9a8,0x447,0x38f)))return createMockResponse(_0x205ad8,[{'type':'tool_use','id':_0x279ca7(-_0x564b65._0x41cf8c,-0xf5,0x1,-0x3c)+this[_0x279ca7(_0x564b65._0x4912ac,0xfc,_0x564b65._0x417581,_0x564b65._0xaa1f48)][_0x4b93e2(_0x564b65._0x2f5a7a,0x665,0x593,0x60a)],'name':'Bash','input':{'command':_0x279ca7(_0x564b65._0x24a10b,_0x564b65._0x1906c8,_0x564b65._0xe66ab6,0x112)}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});function _0x279ca7(_0x2d65fd,_0x1442c9,_0xfe5ca6,_0x247fa2){return _0x5276b1(_0xfe5ca6,_0x1442c9-_0x54718d._0x258646,_0xfe5ca6-0x9d,_0x247fa2-0xae);}return createMockResponse(_0x205ad8,[{'type':'text','text':'Direct\x20answer:\x20'+_0x342555}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x3de658,_0x85362f){const _0x298fc4={_0x5ea8f1:0x29a,_0x4574b1:0x172,_0x312c42:0x16f,_0x8835ee:0x326,_0x431f93:0x2c4,_0x2dbbe8:0x3f7},_0x1dfdea={_0x2732b8:0xf7,_0x109b5a:0x362};function _0xcb0c6e(_0x3c82d5,_0x3993ec,_0xaa9ca4,_0x5b1701){return _0x5276b1(_0x3c82d5,_0x3993ec-0x5b,_0xaa9ca4-0x1b0,_0x5b1701-0x22b);}const _0x404a89=getModelProfile(_0x3de658,_0x85362f);if(!_0x404a89?.[_0xcb0c6e(0x295,_0x298fc4._0x5ea8f1,0x166,0x245)]&&!_0x404a89?.['maxOutput'])return void 0x0;function _0x44266b(_0x4546e9,_0x34e831,_0x25623a,_0x2b5a33){return _0x5276b1(_0x25623a,_0x34e831-_0x1dfdea._0x2732b8,_0x25623a-0x26,_0x4546e9-_0x1dfdea._0x109b5a);}return{..._0x404a89['contextWindow']?{'contextWindow':_0x404a89['contextWindow']}:{},..._0x404a89[_0xcb0c6e(_0x298fc4._0x4574b1,0x1a9,_0x298fc4._0x312c42,0x1ef)]?{'maxOutput':_0x404a89[_0x44266b(_0x298fc4._0x8835ee,_0x298fc4._0x431f93,0x2a1,_0x298fc4._0x2dbbe8)]}:{}};}function _0x25f2(){const _0x312e34=['y29Kzq','BgLTAxrZ','Dg9VBenHBgXZ','DxnLCI12AxnPyMXL','wgLHB21P','CMvZCg9UC2vjza','C3vYzMfJzq','CMvZB2X2zq','DgHLBG','B3bLBMfPlxjLC3bVBNnLCW','zMv0y2HjBxbS','qw50AhjVCgLJ','z2v0tw9KzwXZ','Dg9bCgLfCNjVCG','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','ywrHChrPDMu','oNjLyxnVBMLUzZOW','CgfYDgLHBf9QC29U','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','z2v0uMv0CNLezwXHEu1Z','Bw9KzwXZ','y2fWywjSzv9LBMrWB2LUDhm','ChjVDMLKzxjFCMv0CNK','BwfW','CgfYC2u','z2L0AhvI','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','CM91DgvY','Dg9VBf91C2vFzgvSDge','BwvZC2fNzxm','CMvZzxq','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','BwvZC2fNzuLK','CMvHC29UAw5N','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','zgLZywjSzwq','yw50AhjVCgLJ','Aw5KzxG','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','mtbjvwHgDMq','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','t3bLBLjVDxrLCG','w0rptKvD','C2L6zq','Ahr0Chm6lY9JAgf0z3b0lMnVBs9IywnRzw5KlwfWAs9JB2rLEa','zxzLBNq6','Dg9VBhm','qMvHCMvYia','CMvMDxnHBa','D3nZoG','ChjVBxb0x3rVA2vUCW','C3rYzwfTshr0Cfn1CMzHy2u','yxv0BW','v2vIu29JA2v0','Ec1HCgKTA2v5','yxbWBhLnB2rLBerLzMf1BhrZ','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','twLUAu1HEc1nmW','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','AxngAw5PDgu','C3vTBwfYEuj5sw5KzxG','ChjVDMLKzxi','B3v0Chv0x2LUzgv4','Aw1Hz2u','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','y3jLzgvUDgLHBa','y29TCgXLDgvtDxjMywnL','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','y29UDgv4DfDPBMrVDW','zgvLChnLzwSTDJqTChjV','l21VzgvSCW','z2XTltuUmq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','zgvZy3jPChrPB24','l3yXl21LC3nHz2vZ','r3jVAYaOEc5HAsK','y2HHDgnTCgWT','ntG3ndi5mxLwqKLpzG','y2fWywjPBgL0AwvZ','C3rYzwfT','yw50AhjVCgLJlw1LC3nHz2vZ','z2XTltqUnq','zg9Uzq','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','C3rYAwn0','y2HHDenVBxbSzxrL','D2vIu29JA2v0rMfJDg9YEq','y2HHDfn0CMvHBq','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','CMvHC29UAw5NsxrLBxm','C3vWCg9YDgvKrw5KCg9PBNrZ','CMvZB2X2zxi','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','C2vZC2LVBG','DhjHBNnWB3j0','C2vUzfjHD1jLCxvLC3q','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','AM9PBG','ChjVDg9JB2W','DMLZAwjPBgL0Eq','C3rHCNrZv2L0Aa','zgvMyxvSDe1VzgvSCW','DxnLC1jLC3bVBNnLC0fWAq','l3jLC3bVBNnLCW','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','y2fSBeLKvg9pDxrWDxrjBMrLEa','C2vZC2LVBI10B2TLBG','zgvSDge','z2XTltqUnG','C3vWCg9YDgvKx2vUzhbVAw50CW','ywrK','Dg9VBfvZzvn0yxj0rw1PDhrLza','ChvZAa','AxrLBq','CgvUzgLUzW','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','DxnHz2u','Dg9tDhjPBMC','CMvZCg9UC2uUzMfPBgvK','CMvWBgfJzq','CMvHC29UAw5Nx3rLEhq','BgfZDfjLC3bVBNnLswq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','zgvLChnLzwSTDJqTzMXHC2G','B3bLBKfPrgvSzwDHDgu','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','Bwf4x291Dhb1Df90B2TLBNm','C2nOzw1H','zw5Kx3r1CM4','yxn5BMnjDgvYyxrVCG','Aw50zxjSzwf2zwq','C3vTBwfYEq','zNjVBuvUDhjPzxm','y2XHDwrLlxnVBM5LDc00lJu','CMvZCg9UC2vtB2nRzxrtDhjLyw0','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','DxnLCG','C2vUzfDPDgHszxrYAwvZ','z3b0ltu','BhmGlwXH','B3bLBMfPl2DWDc00BW','zwzMB3j0','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','Bwf4','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','ChjLDMLVDxnszxnWB25ZzuLK','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','zw5JCNLWDgvKx2nVBNrLBNq','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','ue9tva','ywDLBNq','yxnZAxn0yw50','zgvJB2rL','Bw9KzwXZqMfZzvvYBa','B21PDhrLza','C3rYzwfTvMLHuM91DgvY','BwvZC2fNzuLUzgv4','C3vTBwfYEv9PBMrLEa','B3bLBMfP','zMLUAxnO','yMXVy2TZ','ChjLCgfYzunOyxrszxf1zxn0','z3b0ltuUna','Ahr0Cc1ZC2u','yw50AhjVCgLJrgvSzwDHDgu','Aw52ywXPzgf0zq','B2jQzwn0','Bw9KzwXfBMrWB2LUDenHy2HL','zwrPDg9YvMvYC2LVBG','ChjVBxb0q2fJAgvlzxLszxnVBhzLCG','AxneB25L','yxbPlwTLEq','mtaZofHIC3b5AG','zNjVBq','yMvHCMvY','C3vTBwfYEv90zxH0','y2HVAwnLCW','t3bLBKfjiefqssbLCNjVCIa','Dgv4Da','BwvKAwfFDhLWzq','BwfWqxbPrxjYB3i','Aw5WDxrkC29U','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','y29UDgvUDf9IBg9JA19ZDgfYDa','A2v5CW','CMvXDwvZDhm','CMvXDwvZDe11Dgf0B3jZ','A2LUza','Aw5JBhvKzxm','C3LZDgvT','ntqZotG2z0PWsgzJ','DhLWzq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','z2v0u3vYzMfJzq','ndu2ota3wuTWDNbl','nhjIueDRCG','C291CMnL','zMLUywXszxnWB25Zzq','y3jLyxrLuMvXDwvZDa','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','zwrPDg9YugX1z2LUvMvYC2LVBG','y29TCgXLDgvwAwfsB3v0zxi','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','z2v0qw50AhjVCgLJrgvSzwDHDgu','C2vUza','zw5KCg9PBNrZ','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','yNvPBgrqyxj0AwfSt3v0Chv0','zM9Yy2vgDwXSuMvWBgf5','ChjVDMLKzxjZ','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','AgfZ','BxnNlq','C3rYAw5NAwz5','y29UDgvUDa','z2v0t3bLBKfPrgvSzwDHDgu','y3jLyxrLsgvHzgvYCW','C2LNBMf0DxjLx2rLBhrH','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','B3bLBG','Dg9VBf91C2vFAwq','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Ahr0Cf9ZDgf0Dxm','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','D2vIC29JA2v0','zxzLBNq','C3vTBwfYAxPLza','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','r0vu','B3v0Chv0sw5KzxG','yxv0AfnJAgvTzq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','y2XPrgvMyxvSDe1VzgvS','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','CM9Szq','CMvHC29UAw5Nx2rLDgfPBhm','CMvHC29UAw5Nx2nVBNrLBNq','ywjVCNq','wI5bsq','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Aw5WDxrFDg9Rzw5Z','u3vYzMfJzsa','C3vWCg9YDhnnB2rLBezLDgnO','zMLSDgvY','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','B3v0Chv0x3rVA2vUCW','y29UC3vTzvnZzuv2zw50','Dg9mB3DLCKnHC2u','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','z2L0AhvIqxbPvxjS','y2HHDgnTCgW','CMvZCg9UC2uUy29TCgXLDgvK','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','C2LNBMf0DxjL','C2v0','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','y29TCgXLDgvwAwftDxjMywnL','C29Tzq','BgvUz3rO','Bwv0ywrHDge','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','BM93','zxjYB3i','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','ywnJzxnZvg9Rzw4','Bw9KzwW','ywnJzxb0','B3bLBMfPl2DWDc00BY1TAw5P','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','C3rVCfjLyxnVBG','CMvHza','Aw5JBhvKzunVBNrLBNruExbL','yw50AhjVCgLJqMfZzvvYBa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','Bwf4vg9Rzw5Z','C29YDa','Ahr0Cc1QC29U','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','yxnZAxn0yw50lq','Aw5WDxrFDgv4Da','DMfSDwu','B3v0Chv0sw5KzxHuB0nHBgXjza','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','y29UDgvUDc10ExbL','yw50AhjVCgLJx3rOAw5RAw5N','DhjPBvn0yxj0','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','CMvZCg9UC2vtDhjLyw0','Aw5PDgLHBev2zw50','Dg9VBc1JywXSlq','rgvLCfnLzwS','DhjPBq','yw50AhjVCgLJsgvHzgvYuMvZB2X2zxi','CMvHC29UAw5Nx3rVA2vUCW','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','B3v0Chv0','yxjNDw1LBNrZ','CMvZCg9UC2u','mZi3mtuZnxPxtwXHsa','y3jLyxrLu3rYzwfTugfYC2vY','A2v5','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','Bwv0Ag9K','y2fJAgvK','zgf0yq','B3v0Chv0rM9YBwf0','C3rYzwfTx2vYCM9Y','y2f0y2G','CMvZB2X2zujHC2vvCMW','y29UDgvUDf9IBg9JAW','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','DMfSDwvZ','m2n0u3b4zW','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','Dgv4Df9KzwX0yq','DNnJB2rLlZeUmta0lJi','C3rYDwn0DxjLzf9VDxrWDxq','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','zgvMyxvSDe1VzgvS','C3rHDhvZ','Bwf4x3rVA2vUCW','ANnVBG','mJaYmY0WnI0Wmq','Dg9VBa','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','Dgv4DfbHCNrZ','mJaYns0Xmc0Wmq','DgvSzw1LDhj5','BMfTzq','z3jVAY1IDwLSzc0WlJe','z3jVAY1JB2rLlwzHC3qTmq','yMfZzvvYBa','y2XVC2u','ChjVBxb0q2fJAgvlzxK','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','o2jHC2u2ncW','C3rYzwfTu3vYzMfJzq','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','B3v0Chv0x3rLEhq','AxnbCNjHEq','l2nOyxqVy29TCgXLDgLVBNm','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','BNvTyMvY','zw50CMLLCW','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','zw5HyMXLza','Aw5KzxHpzG','Dg9VBf9JywXSCW','CMvHC29U','y29UDgv4Df9Szw5NDgG','C2vZC2LVBK1HBMfNzxi','C2XPy2u','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','y29UBMvJDgLUzW','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','DNnJB2rLlZeUmta2lJe','CMvZCg9UC2vtB2nRzxq','C3vYzMfJzxm','ywrKrxzLBNrmAxn0zw5LCG','Dg9VBenHBgXZqNLjBMrLEa','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','AgvHzgvYCW','q2HHDeDqvcaVienVzgv4','CMvZCg9UC2vuzxH0ugfYDhm','ANnVBL9Zy2HLBwe','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','yxbP','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','mZaWEgn1ANL5','Dg9Rzw4','zgvSzxrL','z2XTltqUnW','Bg9JA2vK','Bw9JAW','zw5JCNLWDgvKq29UDgvUDa','B3v0Chv0vg9Rzw5Z','CMvKywn0zwrFDgHPBMTPBMC','ChjVDMLKzxjbzgfWDgvY','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','yMfZzty0','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','DxrMltG','yxbWBgLJyxrPB24VANnVBG','yxv0Ag9YAxPHDgLVBG','Dgv4Dej5sw5KzxG','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','CMvXDwvZDa','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','y2fSBf9Pza','y2XHDwrLlxnVBM5LDc00','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','zNvUy3rPB24','Dgv4Dc9LDMvUDc1ZDhjLyw0','C3rYzwfTvMLHu3vYzMfJzq','y29UC3vTzvDLyLnVy2TLDev2zw50','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','CMvZB2X2zunYzwrLBNrPywW','z3jVAY00lJm','D3m6','y2HHDenVBxbSzxrPB25Zugf0Aa','z2v0uMvHzgvY','zgLZCgXHEq','mteXmJqWm0fhsu1bsq','yNvKz2v0vg9Rzw5Z','ChjVDMLKzxjtDgf0zq','CMvHC29UAw5NugfYDhm','z2v0','Dg9VBf91C2u','C3bSAwnL','C2LNBMfS','qMfZAa','DgHPBMTPBMC','ywjVCNrLza','Bw9KzwXjzgvUDgL0Eq','B3jPz2LUlxrYywnRzxi','C29JA2v0','D2fPDezVCLjLDhj5','ChjVDg9JB2XwzxjZAw9U','zMLUAxnOx3jLyxnVBG','t1bftG','mtG3mZLyENv6ueS','Aw5WDxq','z3b0ltrV','Cgf0Aa','y29TCgXLDgvK','C3rVCf9YzwfZB24','C2vZC2LVBKLK','y2fJAgvszwfKsw5WDxruB2TLBNm','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','yxbPs2v5','y29UC3vTzuv2zw50','C3rHDhvZvgv4Da','BgfIzwW','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','C2HVDwXKuMv0CNLszxnWB25Zzq','y29TCgXLDgu','y29TCgXLDgLVBL90B2TLBNm','DxjS','CMvZCg9UC2vZugf0Aa','Aw5WDxruB2TLBNm','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','ntq2ndu1mLHYuxHOza','CMvTB3zLrxzLBNrmAxn0zw5LCG','twLUAu1HEa','B3bLBMfPx3jLyxnVBMLUzW','B3bLBMfPlxjLC3bVBNnLCY13CW','Aw5WDxrFC2nOzw1H','y29UDgvUDf9KzwX0yq','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Bw9Kzq','y29UDgvUDf9PBMrLEa','BwvZC2fNzq','y29UDgvUDf9IBg9JA19KzwX0yq','CMvHzhLtDgf0zq','yM9KEq','Dg9VBenHBgXpCMrLCG','Bwf4t3v0Chv0','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','C3bSAxq','zNvUy3rPB25Fy2fSBa','BwLTBY12mI41lxbYBW','AxrLBv9Pza','C3rYAw5N','CMv0CNLHyMXL','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','zMv0y2G','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','Aw5WDxrFANnVBL9KzwX0yq','AgvHzgvYuMvZB2X2zxi','CgfYC2vszxnWB25Zzq','Aw1Hz2vFDxjS','zgf0ytO'];_0x25f2=function(){return _0x312e34;};return _0x25f2();}function normalizeModelInfo(_0x783339,_0x3440e2){const _0x1475a9={_0x594910:0x9a,_0x2a872d:0x4d,_0x116a33:0x13c,_0x298329:0xd7,_0x35f8cc:0x206,_0x595a07:0x125,_0x22b9b7:0x1d3,_0x298aa2:0x19,_0x5f4d5c:0x22,_0x39ee85:0x10a,_0x2f8c20:0x1e,_0x46df43:0x53f,_0x307867:0x5ce,_0x5064e7:0x42f,_0x4ad448:0x3f3,_0x22e0f5:0x69,_0xcac2d5:0x73,_0x27af08:0x494,_0x4373a2:0x413,_0x49c171:0x56a,_0x304217:0x579},_0xa839d={_0x341b8d:0xe3,_0x5da229:0xac,_0x1c240c:0x104},_0x3a916a={_0x5275d2:0x158,_0x34aadb:0x64},_0x1d2b12=typeof _0x3440e2['id']===_0xee177b(-0x71,-0x2b,-_0x1475a9._0x594910,_0x1475a9._0x2a872d)?_0x3440e2['id']:'',_0x5e388b=typeof _0x3440e2['name']===_0xee177b(-_0x1475a9._0x116a33,0x32,-0x9a,-_0x1475a9._0x298329)?_0x3440e2[_0xee177b(-0x1b6,-_0x1475a9._0x35f8cc,-_0x1475a9._0x595a07,-_0x1475a9._0x22b9b7)]:_0x1d2b12,_0x298e7d=normalizeModelLimits(_0x783339,_0x3440e2)??getFallbackModelLimits(_0x783339,_0x1d2b12);function _0xee177b(_0x4bf65e,_0x17a406,_0x1adf3b,_0x5bc517){return _0x5276b1(_0x17a406,_0x17a406-0x1b5,_0x1adf3b-_0x3a916a._0x5275d2,_0x1adf3b- -_0x3a916a._0x34aadb);}function _0xcda7b1(_0x3c1e4a,_0x5477a,_0x164100,_0x2a8414){return _0x54ac71(_0x3c1e4a-_0xa839d._0x341b8d,_0x164100,_0x5477a-_0xa839d._0x5da229,_0x2a8414-_0xa839d._0x1c240c);}const _0x141a37=Array['isArray'](_0x3440e2[_0xee177b(-0x4b,-_0x1475a9._0x298aa2,-0x1e,-_0x1475a9._0x5f4d5c)])?_0x3440e2[_0xee177b(-_0x1475a9._0x39ee85,0x72,-_0x1475a9._0x2f8c20,-0xe5)][_0xcda7b1(0x642,0x579,_0x1475a9._0x46df43,_0x1475a9._0x307867)](_0x63e280=>typeof _0x63e280===_0xcda7b1(0x4af,0x473,0x443,0x518)):Array[_0xcda7b1(_0x1475a9._0x5064e7,_0x1475a9._0x4ad448,0x38b,0x3f1)](_0x3440e2[_0xee177b(-_0x1475a9._0x22e0f5,-0x106,-0x79,_0x1475a9._0xcac2d5)])?_0x3440e2[_0xcda7b1(0x49d,_0x1475a9._0x27af08,_0x1475a9._0x4373a2,_0x1475a9._0x49c171)][_0xcda7b1(0x5cf,_0x1475a9._0x304217,0x4d8,0x4dc)](_0xe4893e=>typeof _0xe4893e==='string'):void 0x0;return{'id':_0x1d2b12,'name':_0x5e388b,..._0x298e7d?{'limits':_0x298e7d}:{},..._0x141a37?{'supportedEndpoints':_0x141a37}:{}};}function normalizeModelLimits(_0x3126ed,_0x250b5e){const _0xd4281d={_0x179cc5:0x45d,_0xbb5e06:0x4e1,_0x1ac597:0x446,_0x32d587:0x52e,_0x5d02e4:0x45b,_0x29dd93:0x507,_0x4418a5:0x501,_0x2603e7:0x42b,_0xd4432a:0x461,_0x1e23a9:0x411,_0x17efd9:0x564,_0x58371c:0x4b6,_0x1e7797:0x3d5,_0x4d7385:0x422,_0x273f41:0x42f,_0x383fc7:0x44c,_0x676a2f:0x41c,_0x200c98:0x477,_0x1f3731:0x4b4,_0x53b164:0x4ae,_0x358ced:0x628,_0x3cdd23:0x62c,_0x57d251:0x45d,_0x420fe8:0x520,_0x470705:0x4c9,_0x15a41d:0x4df,_0xbb0bb0:0x577,_0x1d95ec:0x481,_0x3ea291:0x4b2,_0x4ee18f:0x35c,_0x11b313:0x3fa,_0x3c1812:0x3dc,_0x8af065:0x3e5,_0x1c94e9:0x3ef,_0x15ebf0:0x50f,_0x1f708e:0x47a,_0x2d13eb:0x38a,_0x532590:0x43c,_0x46b773:0x481,_0x14e721:0x4dd,_0xcbb4dc:0x4f7,_0x376a58:0x3bf,_0x2a436d:0x475,_0x206f88:0x426,_0x1e1eba:0x548,_0x456503:0x4db,_0x221f94:0x4a4,_0x2c0f41:0x460,_0x4e698b:0x545,_0x865370:0x3b7},_0x412772={_0x4e0120:0x3,_0x5d19a3:0x488},_0x1e2224={_0x2d3fe3:0x1d7};if(_0x250b5e[_0x37cc33(_0xd4281d._0x179cc5,_0xd4281d._0xbb5e06,_0xd4281d._0x1ac597,_0xd4281d._0x32d587)]&&typeof _0x250b5e[_0x37cc33(0x45d,_0xd4281d._0x5d02e4,0x393,0x402)]===_0x37cc33(_0xd4281d._0x29dd93,_0xd4281d._0x4418a5,_0xd4281d._0x2603e7,0x5ba)){const _0x15e306=_0x250b5e[_0x543946(0x502,_0xd4281d._0xd4432a,_0xd4281d._0x1e23a9,0x4a6)];if(typeof _0x15e306[_0x543946(0x547,_0xd4281d._0x17efd9,0x5bd,_0xd4281d._0x58371c)]===_0x37cc33(_0xd4281d._0x1e7797,0x48d,0x380,0x4a4))return{'contextWindow':_0x15e306[_0x543946(0x547,0x4a6,0x5f1,0x51f)],...typeof _0x15e306[_0x37cc33(0x44c,_0xd4281d._0x4d7385,0x439,_0xd4281d._0x273f41)]==='number'?{'maxOutput':_0x15e306[_0x37cc33(_0xd4281d._0x383fc7,0x4f5,0x363,_0xd4281d._0x676a2f)]}:{}};}if(_0x3126ed['toLowerCase']()===_0x37cc33(_0xd4281d._0x200c98,_0xd4281d._0x1f3731,0x471,_0xd4281d._0x53b164)){const _0x1e3d57=_0x250b5e[_0x543946(0x552,_0xd4281d._0x358ced,0x56e,_0xd4281d._0x3cdd23)],_0x25c8de=_0x1e3d57?.[_0x37cc33(_0xd4281d._0x57d251,_0xd4281d._0x420fe8,0x498,_0xd4281d._0x470705)];if(typeof _0x25c8de?.['max_context_window_tokens']==='number')return{'contextWindow':_0x25c8de[_0x37cc33(0x4e8,0x452,0x44f,0x516)],...typeof _0x25c8de[_0x37cc33(_0xd4281d._0x15a41d,0x4cd,0x58c,_0xd4281d._0xbb0bb0)]===_0x543946(0x47a,0x39f,0x4af,0x422)?{'maxOutput':_0x25c8de['max_output_tokens']}:{}};}const _0x59699c=_0x250b5e[_0x543946(0x60f,0x570,0x59a,0x59c)],_0x5cb2f6=_0x250b5e['top_provider'];function _0x543946(_0x466f52,_0x2b5a18,_0x54fb33,_0x424604){return _0x5276b1(_0x54fb33,_0x2b5a18-0x127,_0x54fb33-_0x1e2224._0x2d3fe3,_0x466f52-0x52d);}const _0xec1942=typeof _0x250b5e[_0x543946(_0xd4281d._0x1d95ec,0x391,0x4b5,_0xd4281d._0x3ea291)]===_0x37cc33(0x3d5,_0xd4281d._0x4ee18f,_0xd4281d._0x11b313,0x2ec)?_0x250b5e['context_length']:typeof _0x59699c?.[_0x37cc33(_0xd4281d._0x3c1812,0x367,_0xd4281d._0x8af065,0x474)]==='number'?_0x59699c['context_length']:typeof _0x5cb2f6?.[_0x543946(0x481,_0xd4281d._0x1c94e9,0x3a3,_0xd4281d._0x15ebf0)]===_0x543946(_0xd4281d._0x1f708e,0x3b3,_0xd4281d._0x2d13eb,_0xd4281d._0x532590)?_0x5cb2f6[_0x543946(_0xd4281d._0x46b773,_0xd4281d._0x14e721,_0xd4281d._0xcbb4dc,0x4bb)]:void 0x0;function _0x37cc33(_0x22ed5a,_0x4530eb,_0x46db43,_0x315bfa){return _0x5276b1(_0x315bfa,_0x4530eb-0x14a,_0x46db43-_0x412772._0x4e0120,_0x22ed5a-_0x412772._0x5d19a3);}if(_0xec1942===void 0x0)return void 0x0;return{'contextWindow':_0xec1942,...typeof _0x59699c?.[_0x37cc33(_0xd4281d._0x376a58,0x418,0x3e7,_0xd4281d._0x2a436d)]===_0x37cc33(0x3d5,0x39c,_0xd4281d._0x206f88,0x379)?{'maxOutput':_0x59699c[_0x543946(0x464,_0xd4281d._0x1e1eba,0x4b6,0x3a6)]}:typeof _0x5cb2f6?.[_0x543946(0x4a8,_0xd4281d._0x456503,_0xd4281d._0x221f94,_0xd4281d._0x14e721)]==='number'?{'maxOutput':_0x5cb2f6[_0x543946(0x4a8,_0xd4281d._0x2c0f41,_0xd4281d._0x4e698b,_0xd4281d._0x865370)]}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerFromSurface,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|
|
1
|
+
(function(_0x403915,_0xdc45cc){const _0x582066={_0x452003:0x4f5,_0x53d6a0:0x5ef,_0x3e6c5e:0x596,_0xd4d2f9:0x300,_0x26ef6c:0x215,_0x471826:0x162,_0x85c4cf:0x18d,_0x1443b9:0x539,_0x2de0f6:0x4bb,_0x165177:0x45e,_0x1a3cc9:0x59d,_0x1e4b68:0x479,_0x4cd42e:0x248,_0x3343bf:0x280,_0x8bff40:0x259,_0x5c4651:0x240,_0x4f3a5c:0x290,_0x1ef054:0x62e,_0x11bd84:0x553,_0x2b7ad4:0x5f1};function _0x2f6894(_0x46d095,_0xe762fb,_0xcea4e9,_0x2abb04){return _0x7447(_0xcea4e9- -0x42,_0x2abb04);}const _0x3fc27a=_0x403915();function _0x35b7bc(_0x13f379,_0x204495,_0x38c7c7,_0x36bba7){return _0x7447(_0x38c7c7-0x269,_0x13f379);}while(!![]){try{const _0x38d7d1=parseInt(_0x35b7bc(_0x582066._0x452003,_0x582066._0x53d6a0,_0x582066._0x3e6c5e,0x681))/0x1*(parseInt(_0x2f6894(0x2f8,_0x582066._0xd4d2f9,_0x582066._0x26ef6c,0x27e))/0x2)+parseInt(_0x2f6894(0xc2,_0x582066._0x471826,_0x582066._0x85c4cf,0x232))/0x3*(-parseInt(_0x2f6894(0x2af,0x314,0x24c,0x22f))/0x4)+-parseInt(_0x35b7bc(0x427,_0x582066._0x1443b9,0x496,_0x582066._0x2de0f6))/0x5*(-parseInt(_0x35b7bc(_0x582066._0x165177,_0x582066._0x1a3cc9,0x524,_0x582066._0x1e4b68))/0x6)+-parseInt(_0x2f6894(0x2b8,0x1d1,0x269,0x229))/0x7+-parseInt(_0x2f6894(0x13e,0x15f,0x1cf,0x2b3))/0x8*(parseInt(_0x2f6894(_0x582066._0x4cd42e,_0x582066._0x3343bf,_0x582066._0x8bff40,0x181))/0x9)+parseInt(_0x2f6894(_0x582066._0x5c4651,0x29c,_0x582066._0x4f3a5c,0x2c5))/0xa*(-parseInt(_0x35b7bc(0x53d,_0x582066._0x1ef054,_0x582066._0x11bd84,0x58f))/0xb)+-parseInt(_0x35b7bc(0x494,_0x582066._0x2b7ad4,0x561,0x59b))/0xc;if(_0x38d7d1===_0xdc45cc)break;else _0x3fc27a['push'](_0x3fc27a['shift']());}catch(_0x2a70a2){_0x3fc27a['push'](_0x3fc27a['shift']());}}}(_0x5bf8,0x79056));import{toOpenAiResponsesRequest}from'../chunk-BLGBVFVX.js';import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-YWQXXHHU.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x3d49d1){const _0x21bb8e={_0x505d0b:0x2e9,_0x23b24c:0x3b1,_0xa91a44:0x476,_0x13f3e2:0x286},_0x10c276={_0x41d57e:0xeb};function _0xe6db71(_0x588ed8,_0x2704f7,_0x38f3f2,_0x2b3c09){return _0x7447(_0x2b3c09- -0x1c2,_0x38f3f2);}super(_0x3d49d1);function _0x2d66ac(_0x49ef1f,_0x4d8245,_0x16e0d7,_0x1a01c9){return _0x7447(_0x16e0d7-_0x10c276._0x41d57e,_0x1a01c9);}this[_0x2d66ac(0x482,_0x21bb8e._0x505d0b,_0x21bb8e._0x23b24c,_0x21bb8e._0xa91a44)]=_0x2d66ac(0x36f,0x33a,0x330,_0x21bb8e._0x13f3e2);}},ProviderStreamEventError=class extends Error{[_0x5e6a6f(-0xf8,-0x2c,-0xe9,-0x128)];[_0x2088d4(0x104,0x194,0x281,0x1b4)];[_0x5e6a6f(-0x1cd,-0x205,-0x1fb,-0x1ce)];constructor(_0xccf884,_0x2c2b7d={}){const _0x4ed1c8={_0x21a8dd:0x97,_0x5f7a4d:0xa0,_0x3e8da9:0x47,_0x5c0a4d:0x1d,_0x47624d:0x6b,_0x56b90b:0x607,_0x1b070e:0x4d6,_0x498e7d:0x53f},_0xcc2bcc={_0x6e4a56:0x7e,_0x2f6a9f:0x19},_0x596604={_0x2729c3:0xb,_0x3b3a12:0x628,_0x2b2343:0xb1};function _0x5ed076(_0x3ed611,_0xe41c36,_0x3526a8,_0x2d495e){return _0x5e6a6f(_0xe41c36,_0xe41c36-_0x596604._0x2729c3,_0x2d495e-_0x596604._0x3b3a12,_0x2d495e-_0x596604._0x2b2343);}super(_0xccf884),this[_0x58e000(-_0x4ed1c8._0x21a8dd,0x31,-_0x4ed1c8._0x5f7a4d,_0x4ed1c8._0x3e8da9)]='ProviderStreamEventError',this[_0x58e000(-0x111,_0x4ed1c8._0x5c0a4d,-_0x4ed1c8._0x47624d,-0x6f)]=_0x2c2b7d[_0x5ed076(0x615,_0x4ed1c8._0x56b90b,_0x4ed1c8._0x1b070e,_0x4ed1c8._0x498e7d)];function _0x58e000(_0x34eddc,_0x5930c0,_0x183d0f,_0x3e9c38){return _0x5e6a6f(_0x3e9c38,_0x5930c0-0x68,_0x183d0f-_0xcc2bcc._0x6e4a56,_0x3e9c38-_0xcc2bcc._0x2f6a9f);}this['retryable']=_0x2c2b7d['retryable']??!![],this['status']=_0x2c2b7d['status'];}};function isRetryableProviderStreamEventError(_0x25606e){const _0x4d4cb0={_0x5b1586:0x54a,_0x1ae561:0x58c};function _0x180046(_0x52ac86,_0x5268e9,_0x316683,_0x19fd61){return _0x2088d4(_0x52ac86-0x1ef,_0x5268e9-0x147,_0x19fd61,_0x52ac86-0x392);}return _0x25606e instanceof ProviderStreamEventError&&_0x25606e[_0x180046(0x546,_0x4d4cb0._0x5b1586,0x55d,_0x4d4cb0._0x1ae561)];}var ANTHROPIC_MESSAGES_SURFACE=_0x5e6a6f(-0x21d,-0x1f2,-0x240,-0x200),ANTHROPIC_MESSAGES_STREAM_SURFACE='anthropic-messages-stream';function parseToolInput(_0x49f7e4){const _0x53534f={_0x371384:0x28a,_0x230d89:0x301,_0x3a8138:0x228};function _0x5522a4(_0x309aad,_0x498688,_0x3f385b,_0xa0101c){return _0x5e6a6f(_0xa0101c,_0x498688-0x13d,_0x498688-0x36c,_0xa0101c-0x5);}try{return JSON[_0x5522a4(0x1e5,_0x53534f._0x371384,_0x53534f._0x230d89,_0x53534f._0x3a8138)](_0x49f7e4);}catch{return _0x49f7e4;}}function resolveReasoningVisibility(_0x257aff){const _0x5c5cca={_0x5b0fa8:0x10a,_0x59b1cd:0x90,_0x394894:0xc5,_0x68202b:0x7a},_0xab6a70={_0x4c7c4a:0x71},_0xdf9e4f={_0x28147b:0xf1,_0x5ed74c:0x99};function _0x572c30(_0x1c672c,_0x39b243,_0x19463f,_0x3cbf94){return _0x5e6a6f(_0x1c672c,_0x39b243-_0xdf9e4f._0x28147b,_0x39b243-0x28c,_0x3cbf94-_0xdf9e4f._0x5ed74c);}function _0x320ab7(_0x2a1428,_0x1ae56e,_0x40d78b,_0x2d181b){return _0x2088d4(_0x2a1428-_0xab6a70._0x4c7c4a,_0x1ae56e-0x6c,_0x40d78b,_0x1ae56e- -0x282);}return _0x257aff[_0x320ab7(-0xf0,-_0x5c5cca._0x5b0fa8,-0x16e,-_0x5c5cca._0x59b1cd)]?.['visibility']??_0x572c30(0x125,_0x5c5cca._0x394894,_0x5c5cca._0x68202b,0x10d);}function isUserVisibleThinking(_0x27831e){const _0x130163={_0x9ca9f7:0x13c,_0x1d18f6:0x195,_0x4611eb:0x161,_0x1f257a:0x233,_0x3c5a1b:0x17e,_0x1df346:0x265,_0x2fb09e:0x34,_0x4ca277:0x80,_0x533bb7:0xa,_0x5dc45a:0xf6},_0x145033={_0x317689:0x92},_0x41e8e2={_0x1c03ee:0x247,_0xc5707f:0x16b};function _0x83ce85(_0x2b39cc,_0x4abd43,_0x438b56,_0x177515){return _0x5e6a6f(_0x438b56,_0x4abd43-0xe9,_0x4abd43-_0x41e8e2._0x1c03ee,_0x177515-_0x41e8e2._0xc5707f);}const _0x5b6308=resolveAnthropicThinkingConfig(_0x27831e[_0x37b06a(_0x130163._0x9ca9f7,0x1fd,_0x130163._0x1d18f6,_0x130163._0x4611eb)]);function _0x37b06a(_0x54dad7,_0x3b7577,_0x5a0b67,_0x160e66){return _0x5e6a6f(_0x54dad7,_0x3b7577-0x85,_0x160e66-0x2b1,_0x160e66-_0x145033._0x317689);}return _0x5b6308!==void 0x0&&_0x5b6308[_0x83ce85(_0x130163._0x1f257a,_0x130163._0x3c5a1b,0xce,_0x130163._0x1df346)]!==_0x83ce85(-0x28,0xbd,0x138,_0x130163._0x2fb09e)&&resolveReasoningVisibility(_0x27831e)===_0x83ce85(0x102,_0x130163._0x4ca277,-_0x130163._0x533bb7,_0x130163._0x5dc45a);}function createAnthropicThinkingBody(_0x4f66d2){const _0x15cca8={_0x4f4410:0x186,_0x41b0ef:0x16d,_0x23622b:0x1af,_0xe4240:0x19a,_0x1e0071:0x137,_0x3c2ec6:0x28a,_0x1771f5:0x1f4,_0x3e419c:0x204,_0x6d9ac2:0xcc,_0xcc0dd3:0x3a6,_0x558326:0x2e9,_0x3c69e5:0x1aa,_0x9be79b:0x12a,_0x3afb2e:0xde,_0x338a55:0x15c,_0x431bbe:0x147,_0xf9ddf9:0x167,_0xae00bc:0x1ac,_0x379f35:0x291,_0x494028:0x33b},_0x1d7841={_0xc105bf:0x194,_0x43564c:0xb5,_0x1a5908:0xea},_0x2064e5={_0x1f7c25:0x161,_0x348801:0x48},_0x2297e2=resolveAnthropicThinkingConfig(_0x4f66d2['reasoning']);function _0x53954d(_0x3f811f,_0x11aedf,_0x3da35c,_0x3faebd){return _0x2088d4(_0x3f811f-_0x2064e5._0x1f7c25,_0x11aedf-0x17b,_0x3da35c,_0x3f811f-_0x2064e5._0x348801);}if(!_0x2297e2||_0x2297e2['type']===_0x53954d(_0x15cca8._0x4f4410,_0x15cca8._0x41b0ef,_0x15cca8._0x23622b,_0x15cca8._0xe4240))return{};function _0x3bbd1c(_0x555075,_0x32e8ce,_0x29a5bd,_0x422ae3){return _0x2088d4(_0x555075-_0x1d7841._0xc105bf,_0x32e8ce-_0x1d7841._0x43564c,_0x32e8ce,_0x422ae3-_0x1d7841._0x1a5908);}const _0x4787dd=_0x2297e2[_0x53954d(0x266,0x22b,0x17d,0x185)]??(isUserVisibleThinking(_0x4f66d2)?_0x53954d(0x1b6,0x26e,_0x15cca8._0x1e0071,0x203):_0x3bbd1c(0x132,0x253,_0x15cca8._0x3c2ec6,0x210)),_0xc1d5a4=_0x2297e2[_0x3bbd1c(0x277,0x1fd,_0x15cca8._0x1771f5,_0x15cca8._0x3e419c)]?{'anthropic-beta':_0x3bbd1c(_0x15cca8._0x6d9ac2,0xfb,0xc1,0x1a8)}:void 0x0;if(_0x2297e2[_0x3bbd1c(_0x15cca8._0xcc0dd3,0x28d,0x39b,_0x15cca8._0x558326)]===_0x53954d(0xc5,_0x15cca8._0x3c69e5,0xe,_0x15cca8._0x9be79b))return{..._0xc1d5a4?{'headers':_0xc1d5a4}:{},'thinking':{'type':_0x3bbd1c(_0x15cca8._0x3afb2e,_0x15cca8._0x338a55,_0x15cca8._0x431bbe,_0x15cca8._0xf9ddf9),'budget_tokens':_0x2297e2['budgetTokens'],'display':_0x4787dd}};return{..._0xc1d5a4?{'headers':_0xc1d5a4}:{},'thinking':{'type':_0x53954d(0x1f6,0x22a,0x2b0,0x109),..._0x2297e2[_0x53954d(_0x15cca8._0xae00bc,0x130,0x1e4,0x1d4)]?{'effort':_0x2297e2[_0x3bbd1c(_0x15cca8._0x379f35,_0x15cca8._0x494028,0x1ad,0x24e)]}:{},'display':_0x4787dd}};}function toAnthropicRequestContent(_0x3105f0){const _0x17e2e5={_0x510f00:0x1c,_0xff525e:0x65,_0x1cb6ca:0x2,_0x51f03b:0x2e,_0x35b164:0x93,_0xd713e4:0x463,_0x541a6a:0x4e8,_0x3a6bd7:0x41f,_0x1e4fbc:0x3a5,_0x3c4898:0x3ea,_0x131656:0xfd,_0x5f2876:0x2d,_0x2d97b0:0x2f,_0x2256ff:0x184,_0x2faa3f:0x98,_0x484c43:0x4f6,_0x5b3310:0x43,_0x46087d:0x5c,_0x4676df:0x3c,_0x1626ae:0x389,_0xe0b115:0x338,_0x6caed5:0x3e1,_0xf480f9:0x7a,_0x4f07ce:0x33,_0x3443d2:0x48b,_0x2fafd3:0x46a,_0x245ae6:0x4,_0x484157:0x14f,_0x197c20:0x6d,_0x46a8d1:0x52,_0x3acb86:0xc9,_0xae9a5d:0xbe,_0x1b35c1:0xbf},_0x3bd810={_0x1e056c:0x1d4,_0x38dd28:0x184},_0x28d075={_0x47c84d:0x78,_0x293231:0x131};if(_0x3105f0[_0x261bef(0x3ab,0x350,0x3ff,0x2fd)]===_0x3648cf(_0x17e2e5._0x510f00,-0x86,0x4a,_0x17e2e5._0xff525e)&&_0x3105f0[_0x3648cf(-0x8f,_0x17e2e5._0x1cb6ca,0x24,0xc7)]?.[_0x3648cf(-_0x17e2e5._0x51f03b,-0x95,-0x20,-_0x17e2e5._0x35b164)])return structuredClone(_0x3105f0[_0x261bef(_0x17e2e5._0xd713e4,0x436,0x550,_0x17e2e5._0x541a6a)][_0x261bef(_0x17e2e5._0x3a6bd7,_0x17e2e5._0x1e4fbc,_0x17e2e5._0x3c4898,0x4ed)]);function _0x3648cf(_0x1f1075,_0x50f7e7,_0x238b8f,_0x34293){return _0x2088d4(_0x1f1075-_0x28d075._0x47c84d,_0x50f7e7-_0x28d075._0x293231,_0x50f7e7,_0x238b8f- -0x148);}function _0x261bef(_0x328ead,_0x34aa8e,_0x2c8ac3,_0x349205){return _0x2088d4(_0x328ead-_0x3bd810._0x1e056c,_0x34aa8e-_0x3bd810._0x38dd28,_0x349205,_0x328ead-0x2f7);}const _0x463ed9=[];for(const _0x372a37 of normalizeContent(_0x3105f0['content'])){if(_0x372a37[_0x3648cf(_0x17e2e5._0x131656,_0x17e2e5._0x5f2876,0xb7,_0x17e2e5._0x2d97b0)]===_0x3648cf(0x145,_0x17e2e5._0x2256ff,_0x17e2e5._0x2faa3f,0xfe))continue;if(_0x372a37[_0x261bef(_0x17e2e5._0x484c43,0x46d,0x457,0x53c)]===_0x3648cf(_0x17e2e5._0x5b3310,-0xd,-_0x17e2e5._0x46087d,_0x17e2e5._0x4676df)){_0x463ed9[_0x261bef(0x3d2,0x491,0x3d0,0x46c)]({'type':_0x261bef(_0x17e2e5._0x1626ae,0x389,_0x17e2e5._0xe0b115,_0x17e2e5._0x6caed5),'thinking':_0x372a37[_0x3648cf(-_0x17e2e5._0xf480f9,-0x18f,-0xb6,_0x17e2e5._0x4f07ce)],'signature':_0x372a37[_0x261bef(0x3a2,_0x17e2e5._0x3443d2,0x38c,_0x17e2e5._0x2fafd3)]});continue;}if(_0x372a37['type']==='anthropic_redacted_thinking'){_0x463ed9[_0x3648cf(_0x17e2e5._0x245ae6,-_0x17e2e5._0x484157,-_0x17e2e5._0x197c20,_0x17e2e5._0x46a8d1)]({'type':_0x3648cf(_0x17e2e5._0x3acb86,_0x17e2e5._0xae9a5d,_0x17e2e5._0x1b35c1,0x13c),'data':_0x372a37['data']});continue;}_0x463ed9[_0x3648cf(-0x8c,0x22,-0x6d,-0x63)](structuredClone(_0x372a37));}return _0x463ed9;}function createAnthropicRequest(_0x4d4fbe,_0x8f8aba){const _0xa8a0c9={_0x3a33c6:0x72b,_0x305da8:0x666,_0x3f8e47:0x637,_0x55b01c:0x626,_0x4d8359:0x5c3,_0x26ff98:0x359,_0xf31b51:0x2b5,_0x423d1b:0x4e5,_0xc4b23a:0x399,_0x183075:0x40b,_0x30d767:0x42d,_0x4d75ce:0x4dc,_0x5001a2:0x4f0,_0x7a2879:0x59a,_0x1e64f9:0x41b,_0x4b1f4b:0x4d1,_0x422f57:0x4f0,_0x2fc3ca:0x45d,_0x3b3865:0x2f1,_0xdbef7d:0x49e,_0x2960e8:0x3f9,_0x862f25:0x3e2,_0x9955f6:0x4f4,_0x523196:0x533,_0x4a3cb7:0x5c4},_0x2714e0={_0x180d55:0x43d,_0x325f96:0x42e},_0x152a02={_0x4b19c6:0x5c,_0x5ab67d:0x45e},_0x41fbd8={_0x248f39:0x4fa},_0x593b17=toProviderModelRequest(_0x4d4fbe);function _0x471967(_0x10d483,_0x28eb26,_0x398b7d,_0x1db3bb){return _0x5e6a6f(_0x398b7d,_0x28eb26-0x28,_0x1db3bb-_0x41fbd8._0x248f39,_0x1db3bb-0x15b);}const _0x33cd36=createAnthropicThinkingBody(_0x4d4fbe);function _0xeb4a6d(_0x2062ce,_0x2d1bd4,_0x4f6673,_0xcfddb5){return _0x2088d4(_0x2062ce-_0x152a02._0x4b19c6,_0x2d1bd4-0x3a,_0x2d1bd4,_0x4f6673-_0x152a02._0x5ab67d);}return{'accept':_0x8f8aba?_0xeb4a6d(_0xa8a0c9._0x3a33c6,0x706,_0xa8a0c9._0x305da8,_0xa8a0c9._0x3f8e47):_0xeb4a6d(_0xa8a0c9._0x55b01c,0x65f,_0xa8a0c9._0x4d8359,0x51c),'body':{..._0x593b17,'messages':_0x4d4fbe[_0x471967(0x2cf,0x203,_0xa8a0c9._0x26ff98,_0xa8a0c9._0xf31b51)][_0x471967(_0xa8a0c9._0x423d1b,0x382,_0xa8a0c9._0xc4b23a,_0xa8a0c9._0x183075)](_0x1b3b4d=>{const _0x38cc4d={_0x274a3f:0x157};function _0x40262d(_0x30f293,_0x266a4b,_0x2175e1,_0xc4f09){return _0x471967(_0x30f293-0xe6,_0x266a4b-0x169,_0xc4f09,_0x2175e1-_0x38cc4d._0x274a3f);}return{'role':_0x1b3b4d[_0x40262d(0x3ef,0x3e4,_0x2714e0._0x180d55,_0x2714e0._0x325f96)],'content':toAnthropicRequestContent(_0x1b3b4d)};}),..._0x33cd36[_0xeb4a6d(_0xa8a0c9._0x30d767,_0xa8a0c9._0x4d75ce,_0xa8a0c9._0x5001a2,_0xa8a0c9._0x7a2879)]?{'thinking':_0x33cd36[_0xeb4a6d(_0xa8a0c9._0x1e64f9,_0xa8a0c9._0x4b1f4b,_0xa8a0c9._0x422f57,_0xa8a0c9._0x2fc3ca)]}:{},..._0x8f8aba?{'stream':!![]}:{},..._0x4d4fbe['outputFormat']?{'output_config':{'format':{'type':_0x471967(0x334,_0xa8a0c9._0x3b3865,0x416,0x3d9),'schema':_0x4d4fbe['outputFormat'][_0xeb4a6d(0x6fa,0x647,0x638,0x6b9)]}}}:{}},..._0x33cd36[_0x471967(0x4b4,_0xa8a0c9._0xdbef7d,_0xa8a0c9._0x2960e8,_0xa8a0c9._0x862f25)]?{'headers':_0x33cd36['headers']}:{},'path':_0xeb4a6d(_0xa8a0c9._0x9955f6,_0xa8a0c9._0x523196,0x5a0,_0xa8a0c9._0x4a3cb7)};}function _0x5bf8(){const _0x115b63=['CMvZB2X2zxi','CMvHC29UAw5NsxrLBxm','z2L0AhvIqxbPvxjS','CMvHC29UAw5N','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','zgf0yq','AxngAw5PDgu','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','CMvZCg9UC2vjza','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','ndC4mJqYyKrhseDR','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','B3bLBMfPlxjLC3bVBNnLCW','y29UC3vTzuv2zw50','y29UDgvUDf9KzwX0yq','y2XVC2u','AgvHzgvYuMvZB2X2zxi','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','B3v0Chv0x2LUzgv4','z3b0ltqUmq','C3rVCfjLyxnVBG','z3b0ltuUna','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','BNvTyMvY','yw50AhjVCgLJrgvSzwDHDgu','Bwf4t3v0Chv0','mJK1ndGXmMzjvKz4AG','DMfSDwvZ','y3jLyxrLu3rYzwfTugfYC2vY','yxnZAxn0yw50','zgvMyxvSDe1VzgvS','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','BwvZC2fNzq','w0rptKvD','CMvZCg9UC2vZugf0Aa','zM9Yy2vgDwXSuMvWBgf5','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','C3vTBwfYEuj5sw5KzxG','D3m6','z3b0ltrV','BwvKAwfFDhLWzq','v2vIu29JA2v0','mtq0mtC2nefptgD2Aq','C3rYzwfTu3vYzMfJzq','zMLSDgvY','y3jLyxrLuMvXDwvZDa','zgvJB2rL','yMvHCMvY','DxnLC1jLC3bVBNnLC0fWAq','ChjVDMLKzxjbzgfWDgvY','ANnVBL9Zy2HLBwe','C3rYzwfTvMLHuM91DgvY','twLUAu1HEc1nmW','BMfTzq','Dgv4Dej5sw5KzxG','ywjVCNq','Dg9VBhm','ywrHChrPDMu','Dgv4Da','AgvHzgvYCW','y29UDgvUDf9IBg9JA19KzwX0yq','z2XTltqUnq','t1bftG','CMv0CNLHyMXL','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','mtbwA2D1qvi','y3jLyxrLsgvHzgvYCW','qw50AhjVCgLJ','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','yxbPlwTLEq','CMvZB2X2zunYzwrLBNrPywW','qMvHCMvYia','D2vIC29JA2v0','oNjLyxnVBMLUzZOW','CMvZB2X2zujHC2vvCMW','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','r3jVAYaOEc5HAsK','AxneB25L','z3b0ltuTBwLUAq','CMvZCg9UC2vtDhjLyw0','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','Bw9KzwW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','zMv0y2G','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','ywjVCNrLza','Aw5KzxHpzG','mti5otu3m1bRCuTkDG','C3rYAw5N','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','ChjVDMLKzxi','C3vYzMfJzxm','y29UDgvUDf9IBg9JA19ZDgfYDa','zw5JCNLWDgvKq29UDgvUDa','Aw5JBhvKzunVBNrLBNruExbL','l21VzgvSCW','C3rHCNrZv2L0Aa','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','BwfW','C2nOzw1H','y2XPrgvMyxvSDe1VzgvS','mtu3nduWofjsCLjMta','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','y29UBMvJDgLUzW','y29Kzq','B3bLBMfPx3jLyxnVBMLUzW','y29UDgv4DfDPBMrVDW','CMvXDwvZDe11Dgf0B3jZ','y2HVAwnLCW','z2v0qw50AhjVCgLJrgvSzwDHDgu','C3rVCf9YzwfZB24','CgfYC2u','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','y2fUy2vS','ywrKrxzLBNrmAxn0zw5LCG','yw50AhjVCgLJlxzLCNnPB24','C3rYzwfTshr0Cfn1CMzHy2u','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','ywnJzxnZvg9Rzw4','Bwf4vg9Rzw5Z','ChjVDg9JB2W','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','C3vTBwfYEq','zxzLBNq6','zMXHDe1HCa','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','BwfWqxbPrxjYB3i','zNvUy3rPB25Fy2fSBa','Ec1HCgKTA2v5','BhmGlwXH','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','yxnZAxn0yw50lq','CMvWBgfJzq','C2XPy2u','rgLYzwn0igfUC3DLCJOG','qMfZAa','DhLWzq','Dgv4Df9KzwX0yq','y2HHDenVBxbSzxrL','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','Ahr0Chm6lY9HCgKUEc5HAs92mq','zxzLBNq','ChjVBxb0x3rVA2vUCW','y29TCgXLDgLVBL90B2TLBNm','CMvKywn0zwrFDgHPBMTPBMC','Dgv4Dc9LDMvUDc1ZDhjLyw0','Bwf4','Aw1Hz2vFDxjS','ChjVDMLKzxjFCMv0CNK','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','BgfIzwW','y29UC3vTzvnZzuv2zw50','B3v0Chv0vg9Rzw5Z','CMvZCg9UC2vtB2nRzxq','mvntugHLwG','C29JA2v0','ChjVBxb0q2fJAgvlzxK','zMLUza','Ahr0Cc1ZC2u','B3v0Chv0sw5KzxG','z3jVAY00lJm','CMvZCg9UC2vuzxH0ugfYDhm','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','Dg9VBenHBgXZ','r0vu','DxnHz2u','ANnVBG','zgLZCgXHEq','Bw9KzwXZqMfZzvvYBa','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','A2v5CW','y29UDgv4Df9Szw5NDgG','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','CMvZCg9UC2uUy3jLyxrL','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','B3bLBMfPlxjLC3bVBNnLCY13CW','C2vUza','y2fJAgvszwfKsw5WDxruB2TLBNm','z2v0','CM91DgvY','C2LNBMf0DxjLx2rLBhrH','z3jVAY1JB2rLlwzHC3qTmq','Dg9VBfvZzvn0yxj0rw1PDhrLza','yxbPs2v5','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','D2fPDezVCLjLDhj5','CMvZCg9UC2uUy29TCgXLDgvK','y29UDgvUDc10ExbL','q29TBwfUzenVzgu','A2LUza','twLUAu1HEa','zw5KCg9PBNrZ','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','Dg9Rzw4','B3v0Chv0x3rLEhq','AxrLBq','CMvXDwvZDhm','BgfZDfjLC3bVBNnLswq','C2vUzfjHD1jLCxvLC3q','z2XTltuUmq','C2vZC2LVBI10B2TLBG','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','yM9KEq','ChjVDMLKzxjZ','DMLZAwjPBgL0Eq','C3vWCg9YDgvKrw5KCg9PBNrZ','Aw5WDxrFDg9Rzw5Z','Aw5PDgLHBev2zw50','CMvHC29UAw5Nx3rVA2vUCW','yxbWBhLnB2rLBerLzMf1BhrZ','CMvXDwvZDa','C291CMnL','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','Bw9KzwXjzgvUDgL0Eq','mJaYmY0WnI0Wmq','D2vIu29JA2v0rMfJDg9YEq','CMvZzxq','Ahr0Cf9ZDgf0Dxm','C3LZDgvT','z2L0AhvI','A2v5','ywDLBNq','Dg9VBf9Yzxn1Bhq','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','C3rYAwn0','ChjVDg9JB2XwzxjZAw9U','yxv0BW','o2jHC2u2ncW','Dg9Wx3bYB3zPzgvY','zw5HyMXLza','Bwf4x3rVA2vUCW','Dg9VBa','y29TCgXLDgvtDxjMywnL','CMv0CNKTywz0zxi','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','BwvZC2fNzxm','DMfSDwu','B3bLBKfPrgvSzwDHDgu','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','CMvHC29UAw5NugfYDhm','yw50AhjVCgLJlw1LC3nHz2vZ','Aw5JBhvKzxm','ChjLDMLVDxnszxnWB25ZzuLK','zMLUAxnOx3jLyxnVBG','zgvLChnLzwSTDJqTChjV','q2HHDeDqvcaVienVzgv4','C3bSAxq','AxnbCNjHEq','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','DgHPBMTPBMC','z2XTltqUnW','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Dg9VBf91C2u','CMvHC29UAw5Nx2nVBNrLBNq','zgvLChnLzwSTDJqTzMXHC2G','C2vZC2LVBG','y2fSBf9Pza','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','CMvHzhLtDgf0zq','C29YDa','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','y2fJAgvK','CgfYDgLHBf9QC29U','t3bLBKfj','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','C3vYzMfJzq','Dg9mB3DLCKnHC2u','CgfYC2vszxnWB25Zzq','BgLTAxrZ','y29UC3vTzvDLyLnVy2TLDev2zw50','Bwf4x291Dhb1Df90B2TLBNm','C2LNBMf0DxjL','C3rYDwn0DxjLzf9VDxrWDxq','zxjYB3i','yMfZzvvYBa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','ChjLCgfYzunOyxrszxf1zxn0','Dg9VBc1JywXSlq','ntm0nLfSC3foAa','CM9Szq','C2HVDwXKuMv0CNLszxnWB25Zzq','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','yxjNDw1LBNrZ','Dg9VBenHBgXpCMrLCG','CMvMDxnHBa','y29UDgvUDa','Dg9VBenHBgXZqNLjBMrLEa','B3bLBMfPl2DWDc00BW','l2nOyxqVy29TCgXLDgLVBNm','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','DxrMltG','C2vSzwn0u3vYzMfJzq','C3vTBwfYEv90zxH0','BM93','zgvSDge','y29UDgvUDf9PBMrLEa','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','y3jLzgvUDgLHBa','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','y2HHDgnTCgWT','zw5JCNLWDgvKx2nVBNrLBNq','DgvSzw1LDhj5','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','C3rHDhvZ','z2v0t3bLBKfPrgvSzwDHDgu','mJaYns0Xmc0Wmq','DhjPBvn0yxj0','y29UBMvJDf9MywLSzwq','zMv0y2HjBxbS','DgHPBMTPBMDFzgvSDge','zg9Uzq','C3rYAw5NAwz5','B3bLBG','Ahr0Chm6lY9HCgKUzgvLChnLzwSUy29Tl2fUDgHYB3bPyW','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','yw50AhjVCgLJqMfZzvvYBa','C3vTBwfYEv9PBMrLEa','ChvZAa','BwvZC2fNzuLK','B3v0Chv0rM9YBwf0','Dg9VBf91C2vFAwq','Aw5WDxrkC29U','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','CMvZCg9UC2uUzMfPBgvK','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','wgLHB21P','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','zw50CMLLCW','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','yMXVy2TZ','r2L0shvIiefqssbLCNjVCIa','zMLUAxnO','y29TCgXLDgvwAwftDxjMywnL','BxnNlq','yw50AhjVCgLJx3rOAw5RAw5N','Dg9tDhjPBMC','Aw1Hz2u','z2v0uMv0CNLezwXHEu1Z','Aw5WDxrFANnVBL9KzwX0yq','C2LNBMfS','y2HHDenVBxbSzxrPB25Zugf0Aa','Aw52ywXPzgf0zq','Bw9KzwXfBMrWB2LUDenHy2HL','mZjlC3bwrvG','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','zMLUywXszxnWB25Zzq','y2f0y2G','C3rHDhvZvgv4Da','zNjVBq','Dg9VBf91C2vFzgvSDge','rgvLCfnLzwS','C3rYzwfT','yw50AhjVCgLJ','AxrLBv9Pza','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','DxnLCI12AxnPyMXL','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','zw5Kx3r1CM4','Bwv0Ag9K','C29Tzq','DhjHBNnWB3j0x2vYCM9Y','DhjPBq','BwLTBY12mI41lxbYBW','zNvUy3rPB24','AgfZ','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','y29TCgXLDgu','Dgv4DfbHCNrZ','u3vYzMfJzsa','C3vWCg9YDgvKx2vUzhbVAw50CW','Dg9bCgLfCNjVCG','mtvVB2z0s00','y2fSBeLKvg9pDxrWDxrjBMrLEa','y2HHDfn0CMvHBq','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','CMvZCg9UC2vtB2nRzxrtDhjLyw0','wI5bsq','ChjVBxb0q2fJAgvlzxLszxnVBhzLCG','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','C2L6zq','Aw50zxjSzwf2zwq','zgf0ytO','C3rYzwfTx2vYCM9Y','CMvHC29UAw5Nx3rLEhq','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','y2fWywjPBgL0AwvZ','C3rYzwfTvMLHu3vYzMfJzq','z3b0ltu','Bw9KzwXZ','Ahr0Chm6','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','B3bLBMfP','B21PDhrLza','zgvZy3jPChrPB24','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','CMvZCg9UC2u','sw52ywXPzcbYzxf1zxn0oIa','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','C2vUzfDPDgHszxrYAwvZ','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','CMvHC29U','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','AM9PBG','B2jQzwn0','z2v0u3vYzMfJzq','C3vWCg9YDhnnB2rLBezLDgnO','B3v0Chv0','D3nZoG','zNjVBuvUDhjPzxm','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','yxv0Ag9YAxPHDgLVBG','mtm5oty1mLnezunzEq','z3b0ltuUmI1JB2rLEa','Aw5WDxruB2TLBNm','zgLZywjSzwq','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','Aw5KzxG','l3yXl21LC3nHz2vZ','y2fWywjSzv9LBMrWB2LUDhm','DxjS','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','yxbP','yxv0AfnJAgvTzq','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','Cgf0Aa','yxn5BMnjDgvYyxrVCG','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','C2vZC2LVBKLK','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','DhjHBNnWB3j0','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','Ahr0Cc1QC29U','zgvMyxvSDe1VzgvSCW','Bg9JA2vK','ywnJzxb0','B3v0Chv0sw5KzxHuB0nHBgXjza','l3jLC3bVBNnLCW','z2XTltqUnG','B3v0Chv0x3rVA2vUCW','Bwv0ywrHDge','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','CMvZB2X2zq','zgvSzxrL','t3bLBKfjiefqssbLCNjVCIa','y29TCgXLDgvwAwfsB3v0zxi','y29TCgXLDgvK','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','y2XHDwrLlxnVBM5LDc00lJu','DxnLCG','Dg9VBf9JywXSCW','zwzMB3j0','yxbWBgLJyxrPB24VANnVBG','ue9tva','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','C3bSAwnL','BgvUz3rO','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','ChjVDMLKzxjtDgf0zq','C2vZC2LVBK1HBMfNzxi','C3vTBwfYAxPLza','C2v0','B3jPz2LUlxrYywnRzxi','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','otjhDvv0rK0','Aw5WDxq','CMvTB3zLrxzLBNrmAxn0zw5LCG'];_0x5bf8=function(){return _0x115b63;};return _0x5bf8();}function parseAnthropicResponse(_0x454446,_0x51c16f){const _0x3c2aae={_0x393f27:0x4d,_0x252ea7:0x40,_0x224f36:0x4bd,_0x4df34d:0x42f,_0x562d3a:0x474,_0x4e67f5:0x17f,_0x1a3ae1:0x464,_0x3e209d:0x4bd,_0x5ea941:0x536,_0x701c7c:0x52d,_0x35e52f:0x47c,_0x187076:0x12f,_0x5f49d4:0x4f4,_0x248fef:0x4ca,_0x61fe63:0x591,_0x3772f3:0x3fd,_0x16b036:0x47d,_0x43692a:0x2a,_0x1257c5:0x9,_0x5a9978:0x4f,_0xad2c4c:0x6f,_0x33068b:0x31,_0x5c2ab4:0xf1,_0x45404b:0x477,_0x1bc8b8:0x461,_0x231182:0x4a4,_0xc76a2f:0x80,_0x4c089f:0xb,_0x52502f:0x4f8,_0x792f9c:0x50a,_0x4da422:0xa,_0x2c3cd6:0x55,_0x3635be:0x7d,_0x1958e3:0xeb,_0xd7b5f4:0xcd,_0x25bc84:0xf4,_0x424043:0x91,_0x27bd90:0x158,_0xa69735:0x122,_0x1e0c79:0x5ba,_0x1b2042:0x684,_0x2d2e27:0x59e,_0x29380a:0x54d,_0x35effc:0x565,_0x315464:0x5fe,_0x39c369:0x6ae,_0x3784f7:0x5bf,_0x9da7d5:0x5af,_0xa2ad55:0x566,_0x154270:0x100,_0x3c2b65:0x86,_0xb6bf22:0x1fb,_0x215d4f:0x45,_0x2495a6:0x122,_0x2ecf8d:0x610,_0x1ecff1:0x567,_0x5f3d55:0x50f},_0x30d599={_0x2b7a68:0x3b,_0x2e07e1:0x17},_0x34e76c={_0x3303b1:0x128},_0x43ff15=[],_0x475e6f=_0x454446[_0x24aa88(_0x3c2aae._0x393f27,-0x9d,-0x5d,-_0x3c2aae._0x252ea7)]??[];function _0x24aa88(_0x19e698,_0x182359,_0x3ae66c,_0x1defcd){return _0x2088d4(_0x19e698-_0x34e76c._0x3303b1,_0x182359-0xa9,_0x182359,_0x1defcd- -0xfa);}function _0x3435d3(_0x964f2f,_0x3abf52,_0x16903f,_0x1cc56b){return _0x5e6a6f(_0x3abf52,_0x3abf52-_0x30d599._0x2b7a68,_0x1cc56b-0x6aa,_0x1cc56b-_0x30d599._0x2e07e1);}let _0x193b2c=![];for(const _0xf3f97c of _0x475e6f){if(_0xf3f97c[_0x3435d3(0x5fb,0x573,0x55d,0x5e1)]===_0x3435d3(0x4e0,0x3ef,0x3c7,0x474)){_0x193b2c=!![];isUserVisibleThinking(_0x51c16f)&&_0x43ff15[_0x3435d3(0x50c,0x400,0x422,_0x3c2aae._0x224f36)]({'type':'anthropic_thinking','thinking':_0xf3f97c[_0x3435d3(0x458,0x486,_0x3c2aae._0x4df34d,_0x3c2aae._0x562d3a)],'signature':_0xf3f97c['signature']});continue;}if(_0xf3f97c[_0x3435d3(0x529,0x6b9,0x6bc,0x5e1)]===_0x24aa88(0x110,_0x3c2aae._0x4e67f5,0x1f9,0x10d)){_0x193b2c=!![];isUserVisibleThinking(_0x51c16f)&&_0x43ff15[_0x3435d3(0x3ec,_0x3c2aae._0x1a3ae1,0x538,_0x3c2aae._0x3e209d)]({'type':_0x3435d3(_0x3c2aae._0x5ea941,0x4c9,_0x3c2aae._0x701c7c,_0x3c2aae._0x35e52f),'data':_0xf3f97c[_0x24aa88(0x149,0x78,-0x34,0x80)]});continue;}if(_0xf3f97c['type']===_0x24aa88(_0x3c2aae._0x187076,0x11c,0xb4,0xb5)){_0xf3f97c[_0x3435d3(_0x3c2aae._0x5f49d4,_0x3c2aae._0x248fef,0x505,_0x3c2aae._0x61fe63)]['length']>0x0&&_0x43ff15[_0x3435d3(0x3d2,_0x3c2aae._0x3772f3,_0x3c2aae._0x16b036,0x4bd)](structuredClone(_0xf3f97c));continue;}_0x43ff15[_0x24aa88(_0x3c2aae._0x43692a,_0x3c2aae._0x1257c5,_0x3c2aae._0x5a9978,-0x1f)](structuredClone(_0xf3f97c));}return{'id':_0x454446['id']??_0x24aa88(-_0x3c2aae._0xad2c4c,-_0x3c2aae._0x33068b,-_0x3c2aae._0x5c2ab4,-0xf)+Date[_0x3435d3(0x498,_0x3c2aae._0x45404b,_0x3c2aae._0x1bc8b8,_0x3c2aae._0x231182)](),'content':_0x43ff15,'stopReason':_0x43ff15[_0x24aa88(-0x4c,_0x3c2aae._0xc76a2f,-0x24,_0x3c2aae._0x4c089f)](_0x47cd42=>_0x47cd42[_0x24aa88(0x51,0x106,0x139,0x105)]===_0x3435d3(0x38a,0x3da,0x42e,0x477))?_0x3435d3(0x3a7,_0x3c2aae._0x52502f,_0x3c2aae._0x792f9c,0x477):_0x454446['stop_reason']===_0x24aa88(-0x4e,-_0x3c2aae._0x4da422,_0x3c2aae._0x2c3cd6,-0x65)?_0x24aa88(-_0x3c2aae._0x3635be,-_0x3c2aae._0x1958e3,-0x83,-0x65):_0x24aa88(_0x3c2aae._0xd7b5f4,-0x79,0xe3,_0x3c2aae._0x1257c5),'usage':{'inputTokens':(_0x454446[_0x24aa88(_0x3c2aae._0x25bc84,_0x3c2aae._0x424043,_0x3c2aae._0x27bd90,_0x3c2aae._0xa69735)]?.['input_tokens']??0x0)+(_0x454446[_0x3435d3(_0x3c2aae._0x1e0c79,0x6ce,_0x3c2aae._0x1b2042,0x5fe)]?.['cache_read_input_tokens']??0x0)+(_0x454446['usage']?.['cache_creation_input_tokens']??0x0),'outputTokens':_0x454446['usage']?.['output_tokens']??0x0,..._0x454446[_0x3435d3(_0x3c2aae._0x2d2e27,_0x3c2aae._0x29380a,_0x3c2aae._0x35effc,_0x3c2aae._0x315464)]?.[_0x3435d3(_0x3c2aae._0x39c369,0x583,0x5ef,_0x3c2aae._0x3784f7)]?{'cacheReadInputTokens':_0x454446[_0x3435d3(0x574,_0x3c2aae._0x9da7d5,_0x3c2aae._0xa2ad55,_0x3c2aae._0x315464)][_0x24aa88(0xfd,_0x3c2aae._0x154270,0x192,0xe3)]}:{},..._0x454446[_0x24aa88(0x12a,0x117,0x127,0x122)]?.[_0x24aa88(0xf9,0x34,-0x2b,_0x3c2aae._0x3c2b65)]?{'cacheCreationInputTokens':_0x454446[_0x24aa88(_0x3c2aae._0xb6bf22,_0x3c2aae._0x215d4f,0x185,_0x3c2aae._0x2495a6)][_0x3435d3(_0x3c2aae._0x2ecf8d,_0x3c2aae._0x1ecff1,_0x3c2aae._0x5f3d55,0x562)]}:{}},..._0x193b2c?{'providerState':{'anthropicAssistantContent':structuredClone(_0x475e6f)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();['cacheCreationInputTokens']=0x0;[_0x2088d4(0x2cd,0x2d1,0x1c0,0x229)]=0x0;['inputTokens']=0x0;[_0x5e6a6f(-0x10d,-0x151,-0x1ec,-0x134)]='msg-'+Date[_0x5e6a6f(-0x2f5,-0x11c,-0x206,-0x1b1)]();['outputTokens']=0x0;['request'];[_0x5e6a6f(-0x14c,-0x1de,-0x13f,-0x88)]=_0x5e6a6f(-0x26c,-0x1d8,-0x1c5,-0x2b4);constructor(_0x50aded){this['request']=_0x50aded;}[_0x5e6a6f(-0xb2,-0xf3,-0xba,-0xdd)](_0x38ff4a){const _0x12a0f6={_0x4f7be8:0x40a,_0x101565:0x434,_0x39a71e:0x313,_0x384a9a:0x3f2,_0x420454:0x3d5,_0x46f4bd:0x425,_0x257f96:0x2fd,_0x6bd3da:0x32f,_0x5367c1:0x5f8,_0xf99e9:0x3b0,_0xcbf73f:0x42c,_0x2371c9:0x540,_0x4cb316:0x5e2,_0x13d054:0x469,_0x317cb2:0x487,_0x2e2581:0x3b6,_0x10f558:0x410,_0x289689:0x576,_0x13445b:0x5c7,_0x3659e1:0x4e4,_0x6ca370:0x695,_0x41cd9b:0x3fe,_0x3c13d8:0x4f5,_0x4bcc25:0x43c,_0x4f77c3:0x489,_0x338f40:0x41f,_0x7086f:0x5a1,_0x136fb5:0x3d2,_0x2ed4b7:0x3d3,_0x274bcd:0x401,_0x38e6a1:0x343,_0x3a1f42:0x5b6,_0x2ea597:0x2cb,_0x4f922a:0x5a6,_0x4dd6f2:0x5c7,_0x5aa1e5:0x296,_0x27b4a8:0x382,_0x4d42c8:0x337,_0x138df9:0x2cc,_0x48e4c1:0x3f0,_0x138d31:0x35c,_0x3f9675:0x31e,_0x1e6fdc:0x47c,_0x4c8067:0x492,_0x30c9e1:0x365,_0x409e7d:0x44e,_0x59a0ef:0x437,_0x51fdf0:0x369,_0xaabd09:0x2b0,_0x4c51fa:0x27e,_0x4b5bcd:0x3cd,_0x2f9219:0x2f1,_0x187fbd:0x240,_0x4ed1a4:0x41c,_0x277e10:0x3a0,_0x356383:0x336,_0x4d1b17:0x481,_0x4746f7:0x380,_0x5ee00a:0x2dd,_0x3e73c9:0x5a8,_0x4f3d20:0x4b9,_0xb331f6:0x430,_0xa00b0d:0x28e,_0x309188:0x2f9,_0x408ca4:0x288,_0x2faae3:0x456,_0x5d367d:0x3ae,_0x231298:0x3bf,_0x4a97fe:0x45b,_0x5b15cb:0x49f,_0x5b0f8d:0x456,_0xaf05ce:0x3b3,_0x1e619e:0x536,_0x1254d2:0x3a6,_0x1df468:0x33b,_0x1e4a06:0x3a5,_0x34688e:0x2e7,_0x25df31:0x57a,_0x28bc1a:0x39c,_0x49cb1e:0x48a,_0x398f7c:0x51a,_0x286b86:0x5aa,_0x5582d7:0x605,_0x25056f:0x620,_0x55b18e:0x5b2,_0x4bb84c:0x63b,_0x2773b1:0x4ab,_0x55ae85:0x2d8,_0xf920fa:0x303,_0x5e21cd:0x51c,_0x1cf803:0x606,_0x53165a:0x4ee,_0x2dedbd:0x370,_0x28854c:0x2bc,_0x5ab2c7:0x492,_0x397045:0x2ce,_0x469ac1:0x55a,_0x352a00:0x63a,_0x4c18e6:0x55a,_0xdd1e90:0x3a7,_0x1d0e24:0x331,_0x228cb7:0x297,_0x1a136f:0x463,_0x17b509:0x2e5,_0x28eda6:0x271,_0xff7797:0x2c0,_0x1558b5:0x50f,_0xca3a5:0x20c,_0x486cf6:0x306,_0x4fd5e6:0x2b9,_0x88259c:0x68f,_0x343253:0x50b,_0x30dbb9:0x42b,_0x1535da:0x4c9,_0xf3cddf:0x5af,_0x5114d2:0x55a,_0x1b4c43:0x4ab,_0x112f31:0x309,_0x4b1e3f:0x528,_0x4b78af:0x42c,_0x36318e:0x45d,_0x1bb353:0x348,_0x41fb1c:0x3a5,_0x4725aa:0x2f0,_0x212d6e:0x511,_0x567f29:0x5aa,_0x6763cf:0x4fe,_0x12d19d:0x49b,_0x573245:0x5ac,_0x2d10c8:0x50b,_0x207e17:0x4ba,_0x4f1bb3:0x505,_0x141b8a:0x41b,_0x19d981:0x4ae,_0x184f7f:0x38a,_0x28fdd2:0x367,_0x2efe02:0x4f7,_0x3d64f2:0x39e,_0x5180fc:0x2e4,_0x113ff2:0x525,_0x59f10c:0x43d,_0x1cfbcc:0x3a2,_0x5cef5e:0x3b6,_0x376a0a:0x35f,_0xf0ca1f:0x2cf,_0x12942a:0x677,_0x25d1b8:0x5f5,_0x5be133:0x58b,_0x5b6ff4:0x479,_0x4a48f3:0x454,_0x5734a7:0x6b4,_0x2836f0:0x695,_0x2e8b05:0x475,_0xf40b98:0x4af,_0x78dec7:0x438,_0x132ea3:0x3e6,_0x507eb2:0x3c5,_0x4f2559:0x424,_0x166b9b:0x288,_0x3954e5:0x3aa,_0x193c95:0x440,_0x2126c9:0x35b,_0x564233:0x388,_0x3c112d:0x5c7,_0x5c3eba:0x653,_0x4e0e06:0x534,_0x455b28:0x2e9,_0x4c5d59:0x333,_0x3e2042:0x390,_0x3aa700:0x5d1,_0x24b02e:0x426,_0x1100fd:0x51b,_0x1952a4:0x5d4,_0x267c86:0x5d0,_0x5adcc1:0x4ef,_0x769e05:0x30b,_0x42665e:0x300,_0x21c27f:0x52b,_0x572175:0x5ba,_0x1ad084:0x544,_0xdb1c82:0x404,_0x212072:0x261,_0x2314ef:0x34e,_0x5209e4:0x3f9,_0x104628:0x590,_0x573df8:0x4ae,_0x1a5f3a:0x20f,_0xe384fb:0x2a3,_0x232050:0x608,_0x2e5820:0x697},_0x486e62={_0x2d9854:0x1f6},_0x287606=_0x38ff4a['split']('\x0a');function _0x17e392(_0xa325a3,_0x468a31,_0x4c38e2,_0x6a97c5){return _0x5e6a6f(_0xa325a3,_0x468a31-0x35,_0x468a31-0x673,_0x6a97c5-0x1aa);}const _0x161823=_0x287606[_0x27ef83(_0x12a0f6._0x4f7be8,_0x12a0f6._0x101565,_0x12a0f6._0x4f7be8,0x4f9)](_0x5c544d=>_0x5c544d[_0x17e392(0x5f8,0x582,0x620,0x50b)](_0x27ef83(0x385,0x3fd,0x3e8,0x42a)))?.[_0x27ef83(0x3c2,_0x12a0f6._0x39a71e,_0x12a0f6._0x384a9a,0x33e)](0x6)['trim'](),_0x4be826=_0x287606['filter'](_0x5ed9ab=>_0x5ed9ab['startsWith'](_0x17e392(0x453,0x4c6,0x406,0x50b)))[_0x27ef83(_0x12a0f6._0x420454,0x44c,0x3cf,_0x12a0f6._0x46f4bd)](_0x343a8f=>_0x343a8f['slice'](0x5)[_0x17e392(0x4e4,0x47b,0x3d7,0x3eb)]())[_0x17e392(0x43c,0x4dd,0x4dd,0x43b)]('\x0a')[_0x27ef83(0x251,0x213,_0x12a0f6._0x257f96,_0x12a0f6._0x6bd3da)]();if(_0x4be826['length']===0x0||_0x4be826===_0x17e392(0x5cd,0x541,0x4a5,_0x12a0f6._0x5367c1))return[];function _0x27ef83(_0x3f953e,_0x35eabd,_0x591811,_0x1bd4d1){return _0x2088d4(_0x3f953e-0x12c,_0x35eabd-0x6,_0x35eabd,_0x591811-_0x486e62._0x2d9854);}const _0x10856b=JSON[_0x27ef83(_0x12a0f6._0xf99e9,_0x12a0f6._0xcbf73f,0x3dc,0x392)](_0x4be826);switch(_0x161823){case'message_start':{const _0x31e9e6=_0x10856b[_0x17e392(0x5bd,_0x12a0f6._0x2371c9,_0x12a0f6._0x4cb316,_0x12a0f6._0x13d054)];this['messageId']=_0x31e9e6?.['id']??this[_0x17e392(0x54f,_0x12a0f6._0x317cb2,0x549,_0x12a0f6._0x2e2581)],this[_0x17e392(_0x12a0f6._0x10f558,0x4e8,_0x12a0f6._0x289689,0x495)]=_0x31e9e6?.[_0x17e392(0x52d,_0x12a0f6._0x13445b,_0x12a0f6._0x3659e1,_0x12a0f6._0x6ca370)]?.[_0x27ef83(_0x12a0f6._0x41cd9b,_0x12a0f6._0x3c13d8,_0x12a0f6._0x4bcc25,0x50a)]??this[_0x17e392(0x52f,0x4e8,_0x12a0f6._0x4f77c3,0x459)],this[_0x27ef83(0x400,0x452,_0x12a0f6._0x338f40,0x37a)]=_0x31e9e6?.[_0x17e392(0x638,0x5c7,0x61f,_0x12a0f6._0x7086f)]?.[_0x27ef83(_0x12a0f6._0x136fb5,0x491,_0x12a0f6._0x2ed4b7,_0x12a0f6._0x274bcd)]??this[_0x27ef83(_0x12a0f6._0x2ed4b7,_0x12a0f6._0x38e6a1,_0x12a0f6._0x338f40,0x4c6)],this[_0x17e392(0x473,0x53f,0x4a6,_0x12a0f6._0x3a1f42)]=_0x31e9e6?.['usage']?.[_0x27ef83(0x420,_0x12a0f6._0x2ea597,0x376,0x45a)]??this['cacheCreationInputTokens'];break;}case _0x17e392(0x65a,0x57e,0x62f,_0x12a0f6._0x4f922a):{const _0x5d67ca=typeof _0x10856b[_0x17e392(0x44e,0x4ec,0x4cf,_0x12a0f6._0x4dd6f2)]===_0x27ef83(0x332,_0x12a0f6._0x5aa1e5,_0x12a0f6._0x27b4a8,0x46a)?_0x10856b[_0x27ef83(0x267,_0x12a0f6._0x257f96,_0x12a0f6._0x4d42c8,_0x12a0f6._0x138df9)]:0x0,_0x1fd7d0=_0x10856b['content_block'];if(_0x1fd7d0?.[_0x27ef83(_0x12a0f6._0x48e4c1,_0x12a0f6._0x138d31,0x3f5,_0x12a0f6._0x3f9675)]===_0x17e392(0x380,0x440,0x401,_0x12a0f6._0x1e6fdc)&&_0x1fd7d0['id']&&_0x1fd7d0['name'])return this[_0x17e392(0x414,_0x12a0f6._0x4c8067,0x46d,0x3b2)][_0x27ef83(0x409,0x3f4,_0x12a0f6._0x30c9e1,_0x12a0f6._0x409e7d)](_0x5d67ca,{'id':_0x1fd7d0['id'],'index':_0x5d67ca,'inputJson':JSON[_0x17e392(_0x12a0f6._0x59a0ef,0x480,0x446,0x532)](_0x1fd7d0[_0x27ef83(0x2d5,0x31e,_0x12a0f6._0x51fdf0,_0x12a0f6._0xaabd09)]??{}),'kind':'tool_use','name':_0x1fd7d0['name']}),[{'type':_0x27ef83(_0x12a0f6._0x4c51fa,_0x12a0f6._0x4b5bcd,_0x12a0f6._0x2f9219,_0x12a0f6._0x187fbd),'id':_0x1fd7d0['id'],'index':_0x5d67ca,'name':_0x1fd7d0[_0x27ef83(_0x12a0f6._0x4ed1a4,0x2fd,_0x12a0f6._0x277e10,0x470)]}];if(_0x1fd7d0?.[_0x27ef83(_0x12a0f6._0x356383,_0x12a0f6._0x4d1b17,0x3f5,0x41d)]==='thinking'){this[_0x27ef83(0x383,_0x12a0f6._0x4746f7,_0x12a0f6._0x5ee00a,0x1f5)][_0x17e392(_0x12a0f6._0x3e73c9,0x51a,_0x12a0f6._0x4f3d20,_0x12a0f6._0xb331f6)](_0x5d67ca,{'index':_0x5d67ca,'kind':_0x27ef83(_0x12a0f6._0xa00b0d,_0x12a0f6._0x309188,_0x12a0f6._0x408ca4,0x22a),'signature':typeof _0x1fd7d0[_0x17e392(0x520,_0x12a0f6._0x2faae3,_0x12a0f6._0x5d367d,_0x12a0f6._0x231298)]===_0x27ef83(0x36c,_0x12a0f6._0x4a97fe,0x3c5,_0x12a0f6._0x5b15cb)?_0x1fd7d0[_0x17e392(0x4db,_0x12a0f6._0x5b0f8d,_0x12a0f6._0xaf05ce,_0x12a0f6._0x1e619e)]:'','thinking':typeof _0x1fd7d0[_0x27ef83(_0x12a0f6._0x1254d2,_0x12a0f6._0x1df468,_0x12a0f6._0x1e4a06,_0x12a0f6._0x34688e)]===_0x17e392(0x4b5,_0x12a0f6._0x25df31,0x633,0x623)?_0x1fd7d0['text']:typeof _0x1fd7d0[_0x17e392(0x522,0x43d,0x3ce,_0x12a0f6._0x28bc1a)]===_0x17e392(_0x12a0f6._0x49cb1e,0x57a,_0x12a0f6._0x398f7c,0x65f)?String(_0x1fd7d0[_0x17e392(0x52d,0x43d,0x451,0x50b)]):''});break;}if(_0x1fd7d0?.[_0x17e392(0x694,_0x12a0f6._0x286b86,_0x12a0f6._0x5582d7,_0x12a0f6._0x25056f)]===_0x17e392(0x59e,_0x12a0f6._0x55b18e,_0x12a0f6._0x4bb84c,0x527)){this[_0x17e392(0x3a8,0x492,0x4e1,_0x12a0f6._0x2773b1)][_0x27ef83(_0x12a0f6._0x55ae85,_0x12a0f6._0xf920fa,_0x12a0f6._0x30c9e1,0x295)](_0x5d67ca,{'index':_0x5d67ca,'kind':_0x17e392(_0x12a0f6._0x5e21cd,_0x12a0f6._0x55b18e,_0x12a0f6._0x1cf803,_0x12a0f6._0x53165a),'data':typeof _0x1fd7d0['data']==='string'?String(_0x1fd7d0[_0x27ef83(0x337,0x294,_0x12a0f6._0x2dedbd,_0x12a0f6._0x28854c)]):''});break;}this[_0x17e392(0x463,_0x12a0f6._0x5ab2c7,0x457,0x480)][_0x27ef83(0x28c,0x2c3,0x365,_0x12a0f6._0x397045)](_0x5d67ca,{'index':_0x5d67ca,'kind':_0x17e392(0x579,_0x12a0f6._0x469ac1,0x4ea,0x582),'text':_0x1fd7d0?.[_0x17e392(_0x12a0f6._0x352a00,_0x12a0f6._0x4c18e6,0x600,0x624)]??''});break;}case _0x27ef83(0x332,0x48a,_0x12a0f6._0xdd1e90,_0x12a0f6._0x1d0e24):{const _0x1c4e83=typeof _0x10856b[_0x27ef83(0x370,0x27b,_0x12a0f6._0x4d42c8,0x320)]===_0x27ef83(0x350,_0x12a0f6._0x228cb7,_0x12a0f6._0x27b4a8,_0x12a0f6._0x1a136f)?_0x10856b[_0x27ef83(0x285,_0x12a0f6._0x17b509,0x337,0x3ee)]:0x0,_0x96e231=this[_0x27ef83(0x254,_0x12a0f6._0x28eda6,0x2dd,_0x12a0f6._0xff7797)][_0x27ef83(_0x12a0f6._0x1558b5,0x47d,0x420,0x42e)](_0x1c4e83),_0x2105fb=_0x10856b[_0x27ef83(_0x12a0f6._0xca3a5,_0x12a0f6._0x486cf6,_0x12a0f6._0x4fd5e6,0x232)];if(!_0x96e231||!_0x2105fb?.['type'])break;if(_0x2105fb['type']===_0x17e392(_0x12a0f6._0x88259c,0x5ab,0x4ce,_0x12a0f6._0x343253)&&_0x96e231[_0x27ef83(0x412,_0x12a0f6._0xaf05ce,_0x12a0f6._0x30dbb9,_0x12a0f6._0x1535da)]===_0x17e392(_0x12a0f6._0xf3cddf,_0x12a0f6._0x5114d2,0x648,_0x12a0f6._0x1b4c43)&&typeof _0x2105fb[_0x27ef83(0x3a7,_0x12a0f6._0x112f31,0x3a5,0x337)]===_0x17e392(_0x12a0f6._0x4b1e3f,0x57a,0x5ad,0x5ad))return _0x96e231[_0x27ef83(_0x12a0f6._0x4b78af,0x430,0x3a5,_0x12a0f6._0x36318e)]+=_0x2105fb['text'],[{'type':'content_delta','index':_0x1c4e83,'text':_0x2105fb[_0x27ef83(0x3e6,_0x12a0f6._0x1bb353,_0x12a0f6._0x41fb1c,_0x12a0f6._0x4725aa)]}];if(_0x2105fb[_0x17e392(_0x12a0f6._0x212d6e,_0x12a0f6._0x567f29,_0x12a0f6._0x6763cf,0x686)]===_0x17e392(0x515,_0x12a0f6._0x12d19d,_0x12a0f6._0x1e619e,0x57b)&&_0x96e231[_0x17e392(0x5d2,0x5e0,0x58b,_0x12a0f6._0x573245)]===_0x17e392(_0x12a0f6._0x2d10c8,0x440,0x431,_0x12a0f6._0x207e17)&&typeof _0x2105fb[_0x17e392(0x386,0x44c,_0x12a0f6._0x4f1bb3,_0x12a0f6._0x141b8a)]===_0x17e392(_0x12a0f6._0x19d981,_0x12a0f6._0x25df31,0x558,0x5cf))return _0x96e231[_0x27ef83(_0x12a0f6._0x184f7f,0x268,0x2d5,_0x12a0f6._0x28fdd2)]==='{}'&&(_0x96e231['inputJson']=''),_0x96e231['inputJson']+=_0x2105fb[_0x17e392(0x3a5,0x44c,0x3e8,_0x12a0f6._0x2efe02)],[{'type':_0x27ef83(_0x12a0f6._0x3d64f2,0x2e9,0x2f1,0x3a5),'id':_0x96e231['id'],'index':_0x1c4e83,'inputDelta':_0x2105fb['partial_json']}];if(_0x2105fb['type']===_0x27ef83(_0x12a0f6._0x5180fc,0x2ef,0x2c9,0x38b)&&_0x96e231['kind']==='thinking'){const _0x5b1b6e=typeof _0x2105fb['thinking']==='string'?String(_0x2105fb[_0x17e392(_0x12a0f6._0x113ff2,_0x12a0f6._0x59f10c,_0x12a0f6._0x1cfbcc,0x4e6)]):'';if(_0x5b1b6e[_0x27ef83(0x394,_0x12a0f6._0x5cef5e,_0x12a0f6._0x376a0a,_0x12a0f6._0xf0ca1f)]>0x0){_0x96e231[_0x27ef83(0x314,0x1d4,_0x12a0f6._0x408ca4,0x2b2)]+=_0x5b1b6e;if(isUserVisibleThinking(this[_0x17e392(_0x12a0f6._0x12942a,_0x12a0f6._0x25d1b8,_0x12a0f6._0x5be133,0x68d)]))return[{'type':_0x17e392(_0x12a0f6._0x5b6ff4,0x48d,0x487,_0x12a0f6._0x4a48f3),'index':_0x1c4e83,'thinking':_0x5b1b6e}];}}if(_0x2105fb['type']===_0x17e392(_0x12a0f6._0x5734a7,0x5d7,_0x12a0f6._0x2836f0,0x65b)&&_0x96e231[_0x27ef83(0x3e4,_0x12a0f6._0x2e8b05,_0x12a0f6._0x30dbb9,_0x12a0f6._0xf40b98)]==='thinking'){const _0x519083=typeof _0x2105fb[_0x17e392(0x427,0x456,0x422,_0x12a0f6._0x78dec7)]===_0x27ef83(_0x12a0f6._0x132ea3,0x34a,_0x12a0f6._0x507eb2,_0x12a0f6._0x4f2559)?String(_0x2105fb[_0x27ef83(_0x12a0f6._0x166b9b,0x305,0x2a1,0x38c)]):'';if(_0x519083['length']>0x0){_0x96e231[_0x17e392(0x4d8,_0x12a0f6._0x2faae3,0x4b7,_0x12a0f6._0xdd1e90)]=_0x519083;if(isUserVisibleThinking(this[_0x27ef83(_0x12a0f6._0x2dedbd,_0x12a0f6._0x3954e5,_0x12a0f6._0x193c95,0x4dd)]))return[{'type':_0x27ef83(0x360,_0x12a0f6._0x2126c9,0x33b,0x2c1),'index':_0x1c4e83,'signature':_0x519083}];}}break;}case'message_delta':{const _0x12ba72=_0x10856b[_0x17e392(_0x12a0f6._0x564233,0x46e,0x549,0x3bf)],_0xecec80=_0x10856b[_0x17e392(0x598,_0x12a0f6._0x3c112d,_0x12a0f6._0x5c3eba,_0x12a0f6._0x4e0e06)];this[_0x27ef83(_0x12a0f6._0x455b28,0x365,_0x12a0f6._0x4c5d59,_0x12a0f6._0x3e2042)]=_0xecec80?.['input_tokens']??this[_0x17e392(_0x12a0f6._0x3aa700,0x4e8,_0x12a0f6._0x24b02e,0x506)],this[_0x17e392(_0x12a0f6._0x1100fd,_0x12a0f6._0x1952a4,_0x12a0f6._0x267c86,_0x12a0f6._0x5adcc1)]=_0xecec80?.['cache_read_input_tokens']??this['cacheReadInputTokens'],this[_0x27ef83(_0x12a0f6._0x769e05,0x2c0,0x38a,_0x12a0f6._0x42665e)]=_0xecec80?.[_0x17e392(0x5d3,_0x12a0f6._0x21c27f,0x502,0x59d)]??this['cacheCreationInputTokens'],this[_0x17e392(0x628,_0x12a0f6._0x572175,_0x12a0f6._0x1ad084,0x5d5)]=_0xecec80?.[_0x27ef83(_0x12a0f6._0xdb1c82,_0x12a0f6._0x212072,_0x12a0f6._0x2314ef,_0x12a0f6._0x5209e4)]??this['outputTokens'],this['stopReason']=_0x12ba72?.[_0x17e392(0x62e,_0x12a0f6._0x104628,0x4d4,0x536)]==='tool_use'?'tool_use':_0x17e392(_0x12a0f6._0x2773b1,_0x12a0f6._0x573df8,0x532,0x3d9);break;}case _0x27ef83(0x24f,_0x12a0f6._0x1a5f3a,_0x12a0f6._0xe384fb,0x1f3):{const _0x3f4efd=_0x10856b['error'];throw new ProviderStreamEventError(_0x3f4efd?.['message']??'Anthropic\x20stream\x20failed',{'code':_0x3f4efd?.[_0x17e392(_0x12a0f6._0x232050,_0x12a0f6._0x286b86,_0x12a0f6._0x2e5820,0x668)],'retryable':!![]});}}return[];}[_0x2088d4(0x6d,0xec,0x1be,0xe9)](){const _0xaa95b1={_0x5e602e:0x36,_0x4a972e:0xa5,_0x43a6fc:0x580,_0x1052ee:0x5e5,_0x254856:0x519,_0x21b7b8:0x5a,_0x2dee54:0x6,_0x64a629:0xc,_0x4877d9:0x99,_0x223d41:0x2c,_0x993283:0x146,_0x32fac7:0xff,_0x359c5d:0x129,_0x3fb4c9:0x46,_0x3063b6:0x79,_0x5e7c8b:0x20,_0x5c037b:0x6f6,_0x14f298:0x669,_0x3bf02a:0x753,_0x5dca8c:0x6c4,_0x49a1db:0x21,_0x5ec80f:0x23,_0x39e553:0xa4,_0x51acea:0xa4,_0x57fd5b:0x13a,_0x1a1ce7:0x5b,_0x112270:0x576,_0x58b23d:0x5a4,_0x50c40b:0xa4,_0x37193c:0x24,_0x309a88:0x513,_0xbf1806:0x5a9,_0x23b402:0x4ff,_0x969b0a:0x1d7,_0x225edf:0x15f,_0x34a55c:0xaf,_0x1a1899:0xd1,_0x864d14:0x65,_0x340091:0x5d9,_0x66510d:0x4ec,_0x12a686:0x587,_0x57ca1e:0x1a6,_0x3ae507:0x666,_0x7eaa24:0xbb,_0x53ead2:0x5c2,_0x41723f:0x6a8,_0x5f3f03:0x680,_0x309ea7:0x60c,_0x32b0a8:0x12,_0xee59d9:0x8e,_0x4dafb9:0x26,_0x3f746c:0x120,_0x3c65f1:0x7c,_0x43296f:0x33,_0x3e8789:0x114,_0xfef852:0x13d},_0x245880={_0x488314:0x1c3,_0x39204b:0x192},_0x1fd736={_0x45ace7:0x186,_0x2ec33d:0x4fe};function _0x3a8d89(_0x469b1e,_0x5c7e55,_0x3e9188,_0x4e21e6){return _0x2088d4(_0x469b1e-_0x1fd736._0x45ace7,_0x5c7e55-0x99,_0x3e9188,_0x5c7e55-_0x1fd736._0x2ec33d);}const _0x56ad28=Array[_0x5884e7(_0xaa95b1._0x5e602e,-0x3c,0xad,_0xaa95b1._0x4a972e)](this[_0x3a8d89(_0xaa95b1._0x43a6fc,_0xaa95b1._0x1052ee,_0xaa95b1._0x254856,0x601)][_0x5884e7(-0x3,_0xaa95b1._0x21b7b8,_0xaa95b1._0x2dee54,-_0xaa95b1._0x64a629)]())[_0x5884e7(-0x93,-_0xaa95b1._0x4877d9,-0xad,_0xaa95b1._0x223d41)]((_0x2fe997,_0x15a3f0)=>_0x2fe997[_0x3a8d89(0x620,0x63f,0x6b6,0x720)]-_0x15a3f0[_0x3a8d89(0x6f0,0x63f,0x56e,0x5f4)]),_0x5b7455=[];for(const _0x330b01 of _0x56ad28){if(_0x330b01[_0x5884e7(_0xaa95b1._0x993283,_0xaa95b1._0x32fac7,_0xaa95b1._0x359c5d,_0xaa95b1._0x3fb4c9)]===_0x5884e7(0xac,_0xaa95b1._0x3063b6,-0x4b,-_0xaa95b1._0x5e7c8b)){_0x330b01[_0x3a8d89(0x5cf,0x6ad,_0xaa95b1._0x5c037b,_0xaa95b1._0x14f298)]['length']>0x0&&_0x5b7455['push']({'type':_0x3a8d89(0x6ee,0x6ad,_0xaa95b1._0x3bf02a,_0xaa95b1._0x5dca8c),'text':_0x330b01[_0x5884e7(0x9f,0x79,0x109,-_0xaa95b1._0x49a1db)]});continue;}if(_0x330b01[_0x5884e7(_0xaa95b1._0x5ec80f,0xff,0x93,0x48)]===_0x5884e7(-0x7b,-_0xaa95b1._0x39e553,-_0xaa95b1._0x51acea,0x3b)){_0x5b7455[_0x5884e7(-_0xaa95b1._0x57fd5b,-_0xaa95b1._0x1a1ce7,-0x148,-0x72)]({'type':_0x3a8d89(_0xaa95b1._0x112270,0x590,0x586,_0xaa95b1._0x58b23d),'thinking':_0x330b01[_0x5884e7(-0x34,-_0xaa95b1._0x50c40b,-_0xaa95b1._0x37193c,-0xd8)],'signature':_0x330b01[_0x3a8d89(_0xaa95b1._0x309a88,_0xaa95b1._0xbf1806,_0xaa95b1._0x23b402,0x639)]});continue;}if(_0x330b01[_0x5884e7(_0xaa95b1._0x969b0a,_0xaa95b1._0x32fac7,0xf5,_0xaa95b1._0x225edf)]===_0x5884e7(_0xaa95b1._0x34a55c,_0xaa95b1._0x1a1899,_0xaa95b1._0x864d14,0x17a)){_0x5b7455[_0x3a8d89(0x65d,_0xaa95b1._0x340091,_0xaa95b1._0x66510d,_0xaa95b1._0x12a686)]({'type':_0x5884e7(-0x10,0xd1,0x1a3,_0xaa95b1._0x57ca1e),'data':_0x330b01[_0x3a8d89(0x5bf,0x678,0x6c2,_0xaa95b1._0x3ae507)]});continue;}_0x5b7455['push']({'type':_0x5884e7(-_0xaa95b1._0x7eaa24,-0xa1,0x40,-0x166),'id':_0x330b01['id'],'name':_0x330b01[_0x3a8d89(_0xaa95b1._0x53ead2,_0xaa95b1._0x41723f,0x5d4,_0xaa95b1._0x5f3f03)],'input':parseToolInput(_0x330b01[_0x3a8d89(0x5c7,0x5dd,_0xaa95b1._0x309ea7,0x6a6)][_0x5884e7(_0xaa95b1._0x32b0a8,0x33,0x2f,-0x2f)]>0x0?_0x330b01['inputJson']:'{}')});}function _0x5884e7(_0x2bede1,_0x15cbb3,_0x362f40,_0x907d38){return _0x5e6a6f(_0x907d38,_0x15cbb3-_0x245880._0x488314,_0x15cbb3-_0x245880._0x39204b,_0x907d38-0x149);}return parseAnthropicResponse({'id':this[_0x5884e7(_0xaa95b1._0xee59d9,-0x5a,-0xdf,_0xaa95b1._0x4dafb9)],'type':'message','role':_0x5884e7(_0xaa95b1._0x3f746c,0x5c,0xff,-_0xaa95b1._0x3c65f1),'content':_0x5b7455,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x3a8d89(0x5ea,0x63b,0x567,0x59e)],'output_tokens':this[_0x3a8d89(0x7e3,0x70d,0x6f9,0x797)],'cache_read_input_tokens':this['cacheReadInputTokens'],'cache_creation_input_tokens':this['cacheCreationInputTokens']}},this[_0x5884e7(_0xaa95b1._0x43296f,_0xaa95b1._0x3e8789,_0xaa95b1._0xfef852,0xff)]);}};function createAnthropicSurfaces(){return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':'http-json','createRequest'(_0x58c966){return createAnthropicRequest(_0x58c966,![]);},'parseResponse'(_0x37cad7,_0x46288e){return parseAnthropicResponse(_0x37cad7,_0x46288e);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x413c47){return createAnthropicRequest(_0x413c47,!![]);},'createStreamParser'(_0x709f27){return new AnthropicMessagesStreamParser(_0x709f27);}}];}function _0x5e6a6f(_0x519202,_0x293842,_0x57c792,_0x1aa7ff){const _0x18c30d={_0x59292f:0x3e4};return _0x7447(_0x57c792- -_0x18c30d._0x59292f,_0x519202);}var StaticModelSurfaceRouter=class{[_0x5e6a6f(-0x171,-0x29e,-0x248,-0x316)];[_0x5e6a6f(-0x1a7,-0x173,-0x128,-0x1dc)];constructor(_0x5f547b){const _0x2de618={_0x4a8454:0x27e,_0xc8dd90:0x36f,_0xa1ddac:0x451,_0x1061e3:0x341},_0x234a3a={_0x1e05c1:0xca},_0x28f497={_0x481a00:0xbe,_0x594424:0x60d};function _0x348512(_0x24ff32,_0x2fa476,_0x32fa32,_0x40915e){return _0x5e6a6f(_0x24ff32,_0x2fa476-_0x28f497._0x481a00,_0x40915e-_0x28f497._0x594424,_0x40915e-0x1d0);}this[_0x671410(0x1df,0x2a7,_0x2de618._0x4a8454,0x1f7)]=_0x5f547b[_0x348512(_0x2de618._0xc8dd90,0x456,0x51f,_0x2de618._0xa1ddac)];function _0x671410(_0x3f7529,_0x14e88b,_0x3d6829,_0x43679a){return _0x5e6a6f(_0x14e88b,_0x14e88b-_0x234a3a._0x1e05c1,_0x43679a-0x43f,_0x43679a-0x96);}this['streamSurface']=_0x5f547b[_0x671410(0x29f,_0x2de618._0x1061e3,0x1f5,0x274)];}[_0x2088d4(0x3a,0x14b,0x79,0xc0)](_0x5a2fb5,_0xd0cd99){const _0x4b989f={_0x56dc48:0x47f,_0x2c62de:0x483,_0x2f7139:0x4bd},_0x530683={_0x2252bf:0x1ab,_0xd4e05d:0x173},_0x5d47ef={_0x5426b6:0x2f,_0x59b39a:0x31d};function _0x57437d(_0x173454,_0x9560c6,_0x591914,_0x22caea){return _0x2088d4(_0x173454-0x1bf,_0x9560c6-_0x5d47ef._0x5426b6,_0x591914,_0x22caea-_0x5d47ef._0x59b39a);}function _0x12a0cb(_0x3a5f0c,_0x246cf7,_0x1ef9a8,_0x5b2bc0){return _0x2088d4(_0x3a5f0c-_0x530683._0x2252bf,_0x246cf7-_0x530683._0xd4e05d,_0x246cf7,_0x5b2bc0-0x44);}return _0xd0cd99['mode']==='stream'?this[_0x57437d(0x4c8,_0x4b989f._0x56dc48,_0x4b989f._0x2c62de,_0x4b989f._0x2f7139)]:this[_0x12a0cb(0x116,0xec,0x40,0xc4)];}};function trimTrailingSlashes(_0x75bd28){const _0x29a128={_0x52a72f:0x38f,_0x5e59c2:0x351,_0x370bd7:0x2e3};function _0x581c7c(_0x7463d0,_0x5f119a,_0x11d443,_0x16bc64){return _0x5e6a6f(_0x7463d0,_0x5f119a-0x9e,_0x11d443-0x41e,_0x16bc64-0x1be);}return _0x75bd28[_0x581c7c(_0x29a128._0x52a72f,0x410,_0x29a128._0x5e59c2,_0x29a128._0x370bd7)](/\/+$/,'');}function resolveApiCredential(_0x1212ca,_0x504fdc){const _0x40aa8f={_0x4371af:0x1a9,_0x50861e:0xf4,_0x4a079e:0x242,_0x5d471a:0x1a9,_0x30e8ce:0x137,_0x3aaa65:0x1d1,_0x50478c:0x1bc,_0x16421a:0x333,_0x5a158f:0x2b2},_0x9b45e={_0x4f94dd:0x8b,_0x3fe9cf:0x4a},_0x3f8a15={_0xde87a7:0x104};function _0x29d796(_0x1c7e41,_0x1ef6bc,_0x24e1be,_0x32a8eb){return _0x2088d4(_0x1c7e41-_0x3f8a15._0xde87a7,_0x1ef6bc-0x10f,_0x32a8eb,_0x1c7e41-0xe2);}function _0x5e9d87(_0x27961f,_0x2811dc,_0x67d33,_0x1b7822){return _0x2088d4(_0x27961f-_0x9b45e._0x4f94dd,_0x2811dc-_0x9b45e._0x3fe9cf,_0x1b7822,_0x27961f- -0x1ce);}if(_0x504fdc?.[_0x29d796(_0x40aa8f._0x4371af,_0x40aa8f._0x50861e,_0x40aa8f._0x4a079e,0x10e)])return _0x504fdc[_0x29d796(_0x40aa8f._0x5d471a,0x1de,_0x40aa8f._0x30e8ce,_0x40aa8f._0x3aaa65)];if(!_0x1212ca)return void 0x0;return{'kind':_0x29d796(0x29e,_0x40aa8f._0x50478c,_0x40aa8f._0x16421a,_0x40aa8f._0x5a158f),'value':_0x1212ca};}function resolveSessionBaseUrl(_0x4439ce,_0x4aa8c4){const _0x32b73e={_0x172fc9:0x416,_0x146c5e:0x487,_0x353a32:0x398};function _0x2d0615(_0x5a31f4,_0x1c8758,_0x1ae513,_0x2a08bb){return _0x5e6a6f(_0x2a08bb,_0x1c8758-0x18d,_0x1ae513-0x429,_0x2a08bb-0x152);}return trimTrailingSlashes(_0x4aa8c4?.[_0x2d0615(_0x32b73e._0x172fc9,_0x32b73e._0x146c5e,_0x32b73e._0x353a32,0x339)]?.['api']??_0x4439ce);}function toErrorMessage(_0x350f6f){const _0x40a8d4={_0x1fa342:0x718,_0x353970:0x690,_0x5ca2b5:0x6ed,_0x589e90:0x6f9},_0x2dae39={_0x58cf8f:0x178};function _0x3372c8(_0x287b40,_0x5e5f48,_0x1d3fe1,_0x4001dc){return _0x2088d4(_0x287b40-_0x2dae39._0x58cf8f,_0x5e5f48-0x2b,_0x5e5f48,_0x4001dc-0x4fb);}function _0x29d95c(_0x5a3a34,_0x3ddd3a,_0x3f1aba,_0x323a1a){return _0x5e6a6f(_0x3f1aba,_0x3ddd3a-0x84,_0x5a3a34-0x2ca,_0x323a1a-0x82);}if(_0x350f6f instanceof Error&&_0x350f6f[_0x3372c8(_0x40a8d4._0x1fa342,0x67f,0x728,_0x40a8d4._0x353970)]['length']>0x0)return _0x350f6f[_0x3372c8(0x63f,0x732,_0x40a8d4._0x5ca2b5,0x690)];return _0x3372c8(_0x40a8d4._0x589e90,0x549,0x6f3,0x62c);}function createDefaultWebSocketFactory(){const _0x4582b2={_0x1c98f1:0x277,_0x3215cc:0x309,_0xb94d60:0x333},_0x2ef1d1={_0x3f6856:0x79};return({headers:_0x4f46b5,url:_0x1cc68c})=>{function _0x4b3f4a(_0x24182b,_0xbe3c79,_0x5f5b85,_0x54efab){return _0x7447(_0x5f5b85-_0x2ef1d1._0x3f6856,_0x54efab);}const _0x4ebb8d=globalThis[_0x4b3f4a(_0x4582b2._0x1c98f1,_0x4582b2._0x3215cc,_0x4582b2._0xb94d60,0x330)];return new _0x4ebb8d(_0x1cc68c,{'headers':_0x4f46b5,'protocols':[]});};}async function*iterateSseEvents(_0x561ad1,_0x26528a){const _0x26959b={_0x53be6f:0x2bc,_0x481bf8:0x241,_0x33a5d6:0x84,_0x4a8f6b:0x8b,_0x34674b:0x65,_0x202fe2:0x332,_0x31c6ac:0x346,_0xbfdf13:0x100,_0x5290b0:0x73,_0x43fae7:0xe4,_0x1de4eb:0x42f,_0x254ec2:0x359,_0x41dbc9:0x2fa,_0x48ad48:0x36c,_0x129ebb:0x3d8,_0x35896b:0x23,_0x3af895:0x7b,_0x2b6520:0x11,_0x5d12ba:0x366,_0xd6d0aa:0x2f7,_0x5f106d:0x29c,_0x5c8f83:0x30f},_0x434519={_0x2cdaf9:0x1cc,_0xe6f416:0x118},_0x596c08={_0x23ae36:0x26e,_0xaa2ca1:0x229,_0x572b28:0x270,_0x3a0eaf:0x6d},_0x365142={_0x2bd597:0x9a},_0x45f561={_0x2476a4:0xad,_0x3cb791:0x4c5,_0x1fd585:0x173},_0x23750a=_0x561ad1['body']?.['getReader']();if(!_0x23750a)return;const _0x7582cd=new TextDecoder(_0x275410(_0x26959b._0x53be6f,0x288,_0x26959b._0x481bf8,0x2b8));function _0x275410(_0xea2f23,_0x451c81,_0x2e6b1a,_0x1a810c){return _0x5e6a6f(_0x2e6b1a,_0x451c81-_0x45f561._0x2476a4,_0xea2f23-_0x45f561._0x3cb791,_0x1a810c-_0x45f561._0x1fd585);}let _0x4e1280='';const _0x4ae2aa=addAbortListener(_0x26528a,()=>{function _0x12e41c(_0xfccfb5,_0x35984c,_0x595112,_0xae26fa){return _0x275410(_0xfccfb5- -0x177,_0x35984c-0x1c9,_0x35984c,_0xae26fa-0x6d);}function _0x18dd38(_0x25a2c8,_0x4c4b74,_0x480e09,_0x50ae82){return _0x275410(_0x50ae82- -0x2c6,_0x4c4b74-0xc5,_0x25a2c8,_0x50ae82-_0x365142._0x2bd597);}void _0x23750a[_0x12e41c(_0x596c08._0x23ae36,0x346,_0x596c08._0xaa2ca1,_0x596c08._0x572b28)](toAbortError(_0x26528a?.[_0x18dd38(0x5e,0x24,_0x596c08._0x3a0eaf,0x67)]))['catch'](()=>{});});function _0x5a72bf(_0x4824a0,_0x31bcb7,_0x4f8139,_0x771b74){return _0x2088d4(_0x4824a0-_0x434519._0x2cdaf9,_0x31bcb7-0xcb,_0x4824a0,_0x771b74- -_0x434519._0xe6f416);}try{while(!![]){throwIfAborted(_0x26528a);const {value:_0x5b1909,done:_0x4dd607}=await _0x23750a['read']();throwIfAborted(_0x26528a);if(_0x4dd607)break;_0x4e1280+=_0x7582cd[_0x5a72bf(0x167,0xdc,_0x26959b._0x33a5d6,_0x26959b._0x4a8f6b)](_0x5b1909,{'stream':!![]});while(!![]){const _0x175f42=_0x4e1280[_0x5a72bf(0x14f,0x32,_0x26959b._0x34674b,0xb5)]('\x0a\x0a');if(_0x175f42===-0x1)break;const _0x222d63=_0x4e1280[_0x275410(0x3f9,0x415,_0x26959b._0x202fe2,_0x26959b._0x31c6ac)](0x0,_0x175f42);_0x4e1280=_0x4e1280[_0x5a72bf(_0x26959b._0xbfdf13,0xb0,_0x26959b._0x5290b0,_0x26959b._0x43fae7)](_0x175f42+0x2),_0x222d63[_0x275410(0x304,0x299,0x3d9,0x265)]()[_0x275410(0x366,_0x26959b._0x1de4eb,_0x26959b._0x254ec2,_0x26959b._0x41dbc9)]>0x0&&(yield _0x222d63);}}_0x4e1280+=_0x7582cd[_0x275410(0x3a0,0x42f,_0x26959b._0x48ad48,_0x26959b._0x129ebb)](),throwIfAborted(_0x26528a),_0x4e1280[_0x5a72bf(_0x26959b._0x35896b,-0x8c,-_0x26959b._0x3af895,-_0x26959b._0x2b6520)]()[_0x275410(_0x26959b._0x5d12ba,_0x26959b._0xd6d0aa,_0x26959b._0x5f106d,_0x26959b._0x5c8f83)]>0x0&&(yield _0x4e1280);}finally{_0x4ae2aa();}}async function waitForWebSocketOpen(_0xcdf5b9,_0x9af617){const _0x3df0cc={_0x4f9469:0x59,_0x1a8d79:0x6f},_0x5995dc={_0x27abab:0x405,_0x559540:0x403,_0x347c79:0x430,_0x1689b4:0x65f,_0x1338a8:0x67e,_0x275699:0x6e3,_0x1ae72a:0x75f,_0x49d11b:0x70d,_0x3a4626:0x6b6,_0x53e52e:0x2c0,_0x2d6902:0x447},_0x575d46={_0x2c89d5:0x1b,_0x24d508:0x35,_0x1f350b:0x3cf},_0x3edb2d={_0x38f838:0x10,_0x1dd077:0x648},_0x2809e6={_0x2e53ed:0x398,_0x5d75d7:0x47f,_0x36985c:0x3ed,_0x5d99ac:0x4a4,_0x47e482:0x4cc,_0x2b34d3:0x184,_0x2c6584:0xcb,_0x8fbc7d:0x173,_0x36cd1f:0xfe,_0x3e8427:0x157,_0x2103c5:0xe4},_0x1dcf18={_0xc7346b:0x118};if(_0xcdf5b9['readyState']===WebSocket[_0x50c59b(-_0x3df0cc._0x4f9469,-_0x3df0cc._0x1a8d79,0xdb,0x0)]){throwIfAborted(_0x9af617);return;}throwIfAborted(_0x9af617);function _0x50c59b(_0x75477a,_0x4b758b,_0x18fc1f,_0x4b991e){return _0x2088d4(_0x75477a-_0x1dcf18._0xc7346b,_0x4b758b-0x64,_0x18fc1f,_0x4b991e- -0x1b3);}await new Promise((_0x25e2ec,_0x47f9b5)=>{const _0x315ade={_0x30a432:0x274,_0x19043a:0x307,_0xff42cf:0x1ee,_0x12f295:0x222,_0x268a1b:0x274,_0x3be322:0xe3,_0x494faf:0x1f5,_0x455a05:0x26f,_0x448353:0x274,_0x1b0ceb:0x2c0,_0x3b312c:0x170,_0x2b1a14:0x225,_0x18edf2:0x1e8,_0x112858:0x1aa,_0x1f4318:0x234,_0x1bb0a4:0x2ac},_0x53f2ff={_0xa72cd2:0x82,_0x506533:0x2ff,_0x3bcc48:0x3d3,_0x1d2d39:0x21f},_0x3a7de6={_0x4b3e53:0xfd},_0x3b5bad={_0x571d8a:0x273,_0x330b6c:0x3b8,_0x933fbb:0x32f,_0x2d29c9:0x353,_0xecb498:0x249},_0x1e30f7={_0xb2fbcb:0x2f0},_0x2bfc18={_0x5a0372:0xa2},_0x5c6288=()=>{_0x22e0d2(),_0x25e2ec();},_0x75453b=_0x3bc5f4=>{_0x22e0d2();function _0x5d64a2(_0x49598f,_0x4f8a67,_0x4b8f5e,_0x57947b){return _0x7447(_0x57947b-_0x2bfc18._0x5a0372,_0x4f8a67);}function _0x4c426c(_0x516d6d,_0x12a316,_0xa663e1,_0x6de4b9){return _0x7447(_0x516d6d-_0x1e30f7._0xb2fbcb,_0xa663e1);}_0x47f9b5(new Error(_0x3bc5f4[_0x5d64a2(_0x3b5bad._0x571d8a,_0x3b5bad._0x330b6c,_0x3b5bad._0x933fbb,_0x3b5bad._0x2d29c9)]||_0x5d64a2(_0x3b5bad._0xecb498,0x32e,0x358,0x2ef)));},_0xb15e20=_0x1efbe9=>{const _0x318f2a={_0x15e2aa:0x207};function _0x425442(_0x45a1ab,_0x137893,_0x3f71c3,_0x261aca){return _0x7447(_0x137893- -_0x318f2a._0x15e2aa,_0x3f71c3);}_0x22e0d2();function _0x27c372(_0x29ac68,_0x1f39ae,_0x1d7878,_0x31afc0){return _0x7447(_0x29ac68-_0x3a7de6._0x4b3e53,_0x31afc0);}const _0x3aae78=_0x1efbe9;_0x47f9b5(new Error(_0x3aae78[_0x425442(-0x1c,0x45,-_0x53f2ff._0xa72cd2,0xb)]||_0x27c372(_0x53f2ff._0x506533,0x2ae,_0x53f2ff._0x3bcc48,_0x53f2ff._0x1d2d39)));},_0x4288f0=()=>{_0x22e0d2();function _0x5596d0(_0x9e8ff7,_0x1b4461,_0x147fd7,_0x15b3a2){return _0x7447(_0x9e8ff7-0x1e0,_0x15b3a2);}function _0xcd7fd8(_0x5e3bf4,_0xf30b9e,_0xacfedd,_0x3e7967){return _0x7447(_0x3e7967- -0x168,_0x5e3bf4);}_0xcdf5b9[_0x5596d0(_0x2809e6._0x2e53ed,0x3bc,0x2f2,_0x2809e6._0x5d75d7)]===WebSocket[_0x5596d0(0x4af,_0x2809e6._0x36985c,_0x2809e6._0x5d99ac,_0x2809e6._0x47e482)]&&_0xcdf5b9['close'](0x3e8,_0xcd7fd8(_0x2809e6._0x2b34d3,_0x2809e6._0x2c6584,0x26b,0x180)),_0x47f9b5(toAbortError(_0x9af617?.[_0xcd7fd8(_0x2809e6._0x8fbc7d,_0x2809e6._0x36cd1f,_0x2809e6._0x3e8427,_0x2809e6._0x2103c5)]));},_0x22e0d2=()=>{const _0x43009d={_0xc30cb0:0x3e4},_0x50ea66={_0x288834:0x1c};_0xcdf5b9[_0x309664(0x28e,_0x315ade._0x30a432,_0x315ade._0x19043a,0x1e3)](_0x351ee6(-_0x315ade._0xff42cf,-_0x315ade._0x12f295,-0x2ba,-0x1f2),_0x5c6288),_0xcdf5b9[_0x309664(0x250,_0x315ade._0x268a1b,0x226,0x23a)](_0x309664(_0x315ade._0x3be322,0x1ad,0x1c2,_0x315ade._0x494faf),_0x75453b);function _0x309664(_0x457096,_0x338fe5,_0x17afa5,_0x334443){return _0x7447(_0x338fe5- -_0x50ea66._0x288834,_0x457096);}function _0x351ee6(_0x182856,_0xa64217,_0x1ba6a3,_0x3e9b49){return _0x7447(_0x3e9b49- -_0x43009d._0xc30cb0,_0x1ba6a3);}_0xcdf5b9[_0x309664(_0x315ade._0x455a05,_0x315ade._0x448353,0x321,_0x315ade._0x1b0ceb)](_0x351ee6(-0x226,-_0x315ade._0x3b312c,-_0x315ade._0x2b1a14,-0x144),_0xb15e20),_0x9af617?.[_0x309664(_0x315ade._0x18edf2,0x274,_0x315ade._0x112858,0x1b9)](_0x309664(_0x315ade._0x1f4318,_0x315ade._0x1bb0a4,0x2d5,0x204),_0x4288f0);};function _0x506d85(_0x148687,_0x1c1ee8,_0x5a5811,_0x208a4e){return _0x50c59b(_0x148687-_0x3edb2d._0x38f838,_0x1c1ee8-0x12a,_0x148687,_0x5a5811-_0x3edb2d._0x1dd077);}_0xcdf5b9[_0x2fabca(_0x5995dc._0x27abab,_0x5995dc._0x559540,0x47b,_0x5995dc._0x347c79)]('open',_0x5c6288),_0xcdf5b9[_0x506d85(0x641,_0x5995dc._0x1689b4,_0x5995dc._0x1338a8,_0x5995dc._0x275699)]('error',_0x75453b),_0xcdf5b9[_0x506d85(_0x5995dc._0x1ae72a,_0x5995dc._0x49d11b,0x67e,_0x5995dc._0x3a4626)](_0x2fabca(0x3a0,_0x5995dc._0x53e52e,0x3cc,_0x5995dc._0x2d6902),_0xb15e20);function _0x2fabca(_0x224340,_0x5a0347,_0xaa9632,_0x2311fe){return _0x50c59b(_0x224340-_0x575d46._0x2c89d5,_0x5a0347-_0x575d46._0x24d508,_0x2311fe,_0x224340-_0x575d46._0x1f350b);}_0x9af617?.['addEventListener'](_0x506d85(0x662,0x5eb,0x641,0x646),_0x4288f0,{'once':!![]});});}function iterateWebSocketMessages(_0x27d982,_0x45c800){const _0x2a45b3={_0x441144:0x19,_0x274231:0xf5,_0x150b36:0xd6,_0x334a27:0xd,_0x58e730:0x8,_0x2b56ae:0x572,_0x307124:0x55c},_0x4b3d65={_0x361a03:0x3b7,_0x1056bf:0x47c,_0xfae693:0x4e9,_0x54e03c:0x279,_0x53f1d4:0x2df,_0x413af6:0x3c6,_0x18b7c4:0x307,_0x4c05c7:0x438,_0x393e8f:0x32e,_0x405cdd:0x257},_0x3728bc={_0x5cc6ee:0x8b},_0x2d1642={_0x1c0510:0x1b2,_0x6d87ce:0x1ea,_0x194584:0x2a9,_0x5ef0c7:0x237,_0xd704be:0x325,_0x5a2224:0x2cc,_0x475fc7:0x31f},_0x29fac0={_0x4e391e:0xef,_0x2f2a5f:0x3ce},_0x560a71={_0x423f2d:0x11d,_0x304969:0x1fe,_0x5bf476:0x20b},_0x11e475={_0x1ace0f:0x127,_0x3515ab:0x79,_0x373f56:0x165,_0x2faa48:0xd0,_0x420622:0xf6,_0x2e8a00:0x38,_0x2d9fc9:0x82,_0xf14a9c:0x13f,_0x5ba7d:0x93},_0x5b8f25={_0x1682c2:0x1f1},_0x51602b=[];let _0x1e7c8b=![],_0x5f44c5;function _0x563e79(_0x383a14,_0x2c8fcd,_0x4ab873,_0x25ad8d){return _0x2088d4(_0x383a14-0x156,_0x2c8fcd-0x81,_0x4ab873,_0x25ad8d- -_0x5b8f25._0x1682c2);}let _0x570e04;const _0x12ae3f=_0x45d92b=>{const _0x4adc9b={_0x166938:0x1a0};function _0x4b53f3(_0x18e09c,_0x3ebc31,_0x132008,_0x26c773){return _0x7447(_0x18e09c- -_0x4adc9b._0x166938,_0x132008);}const _0x40772c=_0x45d92b;function _0x30fcfe(_0x87389e,_0xe72451,_0x3da326,_0x460f1c){return _0x7447(_0x460f1c- -0x270,_0x3da326);}try{_0x51602b[_0x30fcfe(-0x4c,0x3,-_0x11e475._0x1ace0f,-_0x11e475._0x3515ab)](JSON[_0x30fcfe(_0x11e475._0x373f56,-0x32,_0x11e475._0x2faa48,0x92)](String(_0x40772c[_0x4b53f3(_0x11e475._0x420622,_0x11e475._0x2e8a00,0x127,_0x11e475._0x2d9fc9)]))),_0x570e04?.(),_0x570e04=void 0x0;}catch(_0x2fb19a){_0x5f44c5=new Error(_0x4b53f3(0x136,_0x11e475._0xf14a9c,0x173,_0x11e475._0x5ba7d)+toErrorMessage(_0x2fb19a)),_0x570e04?.(),_0x570e04=void 0x0;}},_0x33b009=_0x309bfb=>{function _0x50d322(_0x469fd,_0x466531,_0x502c37,_0x1d3826){return _0x7447(_0x502c37- -0x262,_0x469fd);}const _0x3b7212=_0x309bfb;_0x5f44c5=new Error(_0x3b7212['message']||_0x50d322(-0xf4,0xd,-0x15,-0x6c)),_0x570e04?.(),_0x570e04=void 0x0;},_0x108d2f=_0x527948=>{const _0x3c1bb9={_0x1d1a5d:0x12f};function _0x3f1679(_0x3fd669,_0x5ba7ab,_0x54d449,_0x5f8fdb){return _0x7447(_0x5ba7ab-0x11a,_0x54d449);}const _0x5ae887=_0x527948;function _0x4f9aca(_0x3af483,_0xfa8cd1,_0x5c120b,_0x343867){return _0x7447(_0x3af483- -_0x3c1bb9._0x1d1a5d,_0x5c120b);}!_0x1e7c8b&&_0x5ae887['code']!==0x3e8&&!_0x5f44c5&&(_0x5f44c5=new Error(_0x5ae887[_0x4f9aca(_0x560a71._0x423f2d,0x152,0xdf,0xc1)]||_0x3f1679(0x279,0x2d9,_0x560a71._0x304969,_0x560a71._0x5bf476)+_0x5ae887['code'])),_0x1e7c8b=!![],_0x570e04?.(),_0x570e04=void 0x0;};function _0x26db0e(_0x567d8e,_0x20cef9,_0x32e646,_0x51b55f){return _0x2088d4(_0x567d8e-0x15f,_0x20cef9-_0x29fac0._0x4e391e,_0x567d8e,_0x32e646-_0x29fac0._0x2f2a5f);}const _0x4d71c7=addAbortListener(_0x45c800,()=>{_0x5f44c5=toAbortError(_0x45c800?.['reason']);_0x27d982[_0x1f447f(_0x2d1642._0x1c0510,_0x2d1642._0x6d87ce,_0x2d1642._0x194584,_0x2d1642._0x5ef0c7)]===WebSocket[_0x1f447f(0x2b3,_0x2d1642._0xd704be,0x277,0x34e)]&&_0x27d982[_0x1f447f(0x3d5,0x318,_0x2d1642._0x5a2224,_0x2d1642._0x475fc7)](0x3e8,'aborted');function _0x173525(_0x16129b,_0x95b5ff,_0x37bc5d,_0x437e83){return _0x7447(_0x95b5ff- -0x135,_0x16129b);}function _0x1f447f(_0x1f5063,_0x21bb6b,_0x100046,_0x3470ba){return _0x7447(_0x3470ba-0x7f,_0x21bb6b);}_0x570e04?.(),_0x570e04=void 0x0;});return _0x27d982['addEventListener'](_0x563e79(_0x2a45b3._0x441144,-0x10f,-_0x2a45b3._0x274231,-0x5c),_0x12ae3f),_0x27d982['addEventListener']('error',_0x33b009),_0x27d982[_0x563e79(-_0x2a45b3._0x150b36,-0x17,-_0x2a45b3._0x334a27,-_0x2a45b3._0x58e730)](_0x26db0e(0x4e9,0x58b,0x552,0x4e0),_0x108d2f),{async*[Symbol[_0x26db0e(_0x2a45b3._0x2b56ae,_0x2a45b3._0x307124,0x518,0x5e9)]](){const _0x22f4b1={_0x3e0bc6:0x110,_0x261998:0x93};function _0x19eaca(_0x241258,_0x47d68c,_0x85daed,_0x425e44){return _0x563e79(_0x241258-_0x3728bc._0x5cc6ee,_0x47d68c-0xbe,_0x85daed,_0x47d68c-0x33b);}function _0x5d5935(_0x2e4145,_0x4cf927,_0x477273,_0xd71e1d){return _0x26db0e(_0xd71e1d,_0x4cf927-_0x22f4b1._0x3e0bc6,_0x2e4145- -0x10a,_0xd71e1d-_0x22f4b1._0x261998);}try{while(!![]){if(_0x5f44c5)throw _0x5f44c5;if(_0x51602b['length']>0x0){yield _0x51602b['shift']();continue;}if(_0x1e7c8b)break;await new Promise(_0x25985b=>{_0x570e04=_0x25985b;});}}finally{_0x27d982[_0x5d5935(0x438,_0x4b3d65._0x361a03,_0x4b3d65._0x1056bf,_0x4b3d65._0xfae693)](_0x19eaca(_0x4b3d65._0x54e03c,_0x4b3d65._0x53f1d4,_0x4b3d65._0x413af6,_0x4b3d65._0x18b7c4),_0x12ae3f),_0x27d982['removeEventListener']('error',_0x33b009),_0x27d982[_0x5d5935(_0x4b3d65._0x4c05c7,0x4af,0x4fc,0x379)](_0x19eaca(0x38f,0x2ce,_0x4b3d65._0x393e8f,_0x4b3d65._0x405cdd),_0x108d2f),_0x4d71c7();}}};}function toWebSocketUrl(_0x5bfd7b,_0x5125ec){const _0x3cf1ef={_0x492a16:0x91,_0x354387:0xe6,_0x145601:0x45a,_0x3baef8:0x44e,_0xa5bac5:0x3d,_0x563b9e:0x73,_0x54c934:0x62,_0x2cc5c9:0xa5},_0x50a507={_0x2e02dc:0x1f4,_0x70d5ed:0xbb};function _0x32c74c(_0x4ee5f5,_0x3b2721,_0x35f8b1,_0x47a59e){return _0x2088d4(_0x4ee5f5-_0x50a507._0x2e02dc,_0x3b2721-_0x50a507._0x70d5ed,_0x3b2721,_0x4ee5f5-0x337);}const _0x597a17=new URL(_0x5125ec,_0x5bfd7b);_0x597a17[_0x3d8393(0x118,_0x3cf1ef._0x492a16,0x174,_0x3cf1ef._0x354387)]=_0x597a17['protocol']===_0x32c74c(_0x3cf1ef._0x145601,_0x3cf1ef._0x3baef8,0x474,0x535)?_0x3d8393(-_0x3cf1ef._0xa5bac5,-0x27,0x5a,_0x3cf1ef._0x563b9e):_0x3d8393(_0x3cf1ef._0x54c934,_0x3cf1ef._0xa5bac5,_0x3cf1ef._0x2cc5c9,-0x31);function _0x3d8393(_0x431ad1,_0x3f1f23,_0x21376e,_0x1e3b2c){return _0x5e6a6f(_0x431ad1,_0x3f1f23-0x14a,_0x3f1f23-0x16a,_0x1e3b2c-0x6f);}return _0x597a17[_0x32c74c(0x424,0x3de,0x415,0x386)]();}var ProviderSessionManager=class{[_0x5e6a6f(-0x232,-0x148,-0x153,-0x20e)];[_0x2088d4(0x162,0xc0,0x35,0xa0)];constructor(_0x3c6b8e){const _0x17169a={_0x54deed:0x9f,_0x58a7d2:0xd3,_0x12e2be:0x9a},_0x461e1={_0x4b4f2b:0x168,_0x344ea6:0x1d9,_0x5df7b9:0xdb};function _0x175a14(_0x361849,_0x7b146e,_0xd6826b,_0xd39d3d){return _0x2088d4(_0x361849-_0x461e1._0x4b4f2b,_0x7b146e-_0x461e1._0x344ea6,_0x7b146e,_0xd39d3d- -_0x461e1._0x5df7b9);}this[_0x175a14(_0x17169a._0x54deed,_0x17169a._0x58a7d2,0x1,_0x17169a._0x12e2be)]=_0x3c6b8e;}async['resolve'](_0x465db4){const _0x5e0496={_0x54adfc:0x47c,_0xcee836:0x4d0,_0xeed73d:0x3de,_0x1dfbc0:0x38e,_0x2d88d3:0x537,_0xa0bea7:0x57c,_0x506f69:0x517,_0x29b7b5:0x4dd,_0x2c03bb:0x4d4,_0x8cb724:0x516,_0x22051c:0x2b9,_0x40e631:0x311,_0x3dc2aa:0x2bc,_0x4b529d:0x33b},_0x4b1a41={_0x5e5bbd:0x4b,_0x84d8d4:0x5f},_0x4519c4={_0x158a20:0x1ab,_0x2b3a10:0x75,_0x385e9b:0x219},_0x3d85e5={_0x50b466:0x6a4,_0x45d304:0x52};function _0x4af44d(_0x26f01a,_0x559a13,_0xfd25d4,_0x18585a){return _0x5e6a6f(_0x18585a,_0x559a13-0x138,_0x26f01a-_0x3d85e5._0x50b466,_0x18585a-_0x3d85e5._0x45d304);}function _0x1fd97a(_0x189da7,_0x7fe4b9,_0x3ffd38,_0x232673){return _0x2088d4(_0x189da7-_0x4519c4._0x158a20,_0x7fe4b9-_0x4519c4._0x2b3a10,_0x3ffd38,_0x7fe4b9-_0x4519c4._0x385e9b);}if(!this[_0x4af44d(_0x5e0496._0x54adfc,0x3e1,0x554,_0x5e0496._0xcee836)]){const _0x37503d=this[_0x1fd97a(_0x5e0496._0xeed73d,_0x5e0496._0x1dfbc0,0x3e8,0x47d)][_0x4af44d(_0x5e0496._0x2d88d3,_0x5e0496._0xa0bea7,_0x5e0496._0x506f69,_0x5e0496._0x29b7b5)](_0x465db4);_0x37503d[_0x4af44d(_0x5e0496._0x2c03bb,0x4ee,_0x5e0496._0x8cb724,0x517)](()=>{const _0x290cb6={_0x40a9f0:0xac},_0x158d9a={_0x3245c6:0x155,_0x52ebf2:0x3a};function _0x1d14aa(_0x1786b7,_0x37e81d,_0x5cd4c0,_0x2cb53c){return _0x4af44d(_0x2cb53c- -_0x158d9a._0x3245c6,_0x37e81d-_0x158d9a._0x52ebf2,_0x5cd4c0-0xff,_0x1786b7);}function _0x5b2a89(_0x125e34,_0x2c9e50,_0x5ec24e,_0x2d519b){return _0x1fd97a(_0x125e34-0x1ad,_0x2c9e50- -0x2f1,_0x2d519b,_0x2d519b-_0x290cb6._0x40a9f0);}this[_0x5b2a89(-0x100,-0x38,-_0x4b1a41._0x5e5bbd,-0xa0)]===_0x37503d&&(this[_0x5b2a89(0x3d,-0x38,0x2d,-_0x4b1a41._0x84d8d4)]=void 0x0);}),this[_0x1fd97a(0x275,_0x5e0496._0x22051c,0x28d,0x2d5)]=_0x37503d;}return structuredClone(await this[_0x1fd97a(_0x5e0496._0x40e631,0x2b9,_0x5e0496._0x3dc2aa,_0x5e0496._0x4b529d)]);}['invalidate'](){const _0x13305b={_0x223fe6:0x10,_0x5cfc4e:0x11d,_0x5805d0:0x12,_0x103856:0x123,_0x108e4d:0x141},_0x48c98f={_0x5c860d:0xa9},_0x28b84a={_0x133095:0xe1,_0x3cc878:0x56};this[_0x13e51f(-_0x13305b._0x223fe6,0x94,0xed,_0x13305b._0x5cfc4e)][_0x13e51f(0xfe,_0x13305b._0x5805d0,-0xc0,0xc3)]?.();function _0x13e51f(_0x17e6aa,_0x223841,_0x1d48ed,_0x307fd0){return _0x5e6a6f(_0x17e6aa,_0x223841-_0x28b84a._0x133095,_0x223841-0x1e7,_0x307fd0-_0x28b84a._0x3cc878);}function _0x1855f2(_0x37d63a,_0x4dfe87,_0x381229,_0x19daee){return _0x2088d4(_0x37d63a-0x11c,_0x4dfe87-_0x48c98f._0x5c860d,_0x381229,_0x37d63a- -0x1c3);}this[_0x1855f2(-_0x13305b._0x103856,-0x61,-0x5e,-_0x13305b._0x108e4d)]=void 0x0;}};async function prepareProviderRequest(_0x258d7c,_0x55d88c={}){const _0x56ce1e={_0x2f9f88:0x147,_0x2c5dc6:0x27b,_0x5dff1a:0x3ab,_0x365753:0x2d1,_0x5217dc:0x2f0,_0x3ef1e1:0x367,_0x3624b2:0x10e,_0x253a00:0xa3,_0x348dc3:0x1d,_0x3e7884:0x1a},_0x1d08e7={_0x412451:0x1d8,_0x4e67fd:0x1ff},_0x45fbd7={_0x5901b1:0x180};let _0x397df0={'request':structuredClone(_0x258d7c),'session':_0x55d88c[_0x4ef5fb(-0x92,-_0x56ce1e._0x2f9f88,0x16,-0xae)]?await _0x55d88c[_0xa7430f(_0x56ce1e._0x2c5dc6,_0x56ce1e._0x5dff1a,0x302,0x33a)][_0xa7430f(_0x56ce1e._0x365753,0x389,_0x56ce1e._0x5217dc,_0x56ce1e._0x3ef1e1)](_0x55d88c[_0x4ef5fb(-_0x56ce1e._0x3624b2,-0x169,-_0x56ce1e._0x253a00,-0x6e)]):void 0x0};function _0xa7430f(_0x23bf09,_0x52992b,_0xf1df06,_0x4245e1){return _0x5e6a6f(_0x23bf09,_0x52992b-_0x45fbd7._0x5901b1,_0xf1df06-0x45d,_0x4245e1-0x61);}for(const _0x46155b of _0x55d88c[_0x4ef5fb(-_0x56ce1e._0x348dc3,0xc5,_0x56ce1e._0x3e7884,-0x1a)]??[]){_0x397df0=await _0x46155b(_0x397df0);}function _0x4ef5fb(_0x16975b,_0x4dc424,_0x33a7ed,_0x20d1b4){return _0x2088d4(_0x16975b-0x1b3,_0x4dc424-_0x1d08e7._0x412451,_0x33a7ed,_0x16975b- -_0x1d08e7._0x4e67fd);}return _0x397df0;}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{[_0x2088d4(0x184,0x1d0,0x264,0x1c8)];[_0x5e6a6f(-0x2e,-0xdb,-0x7b,-0xd4)];['maxTokens'];[_0x5e6a6f(-0x77,-0x87,-0x150,-0xb8)];[_0x5e6a6f(-0x8f,-0x114,-0x99,-0x29)];[_0x2088d4(0x4b,0x2c,0xb7,0xae)];['fetchImpl'];['providerAdapter'];[_0x2088d4(0x117,0x14b,0x258,0x1e2)];[_0x5e6a6f(-0x47,-0xdb,-0x9d,-0x17c)];['sessionManager'];[_0x5e6a6f(0x75,0x69,-0x79,-0x2d)];[_0x5e6a6f(-0x1ba,-0x92,-0xf6,-0x14e)]=new Map();constructor(_0x1614ca){const _0x6df6fc={_0x48ed3e:0x7e,_0x227e3f:0x58,_0x2385cd:0x127,_0x24a63f:0x15b,_0x22b9dd:0x205,_0x555571:0x2a4,_0x52c900:0x10,_0x1e495e:0x90,_0x29f5da:0xe0,_0x41fb58:0x24,_0x5f0676:0x2e,_0x24622e:0x3a,_0x2ade60:0x19,_0x5d5f2c:0x1fa,_0x2ffc3a:0x19b,_0x575004:0x24b,_0x5643f0:0x254,_0x4eef22:0x1,_0x236365:0x80,_0x15d91e:0x162,_0x444f82:0x9c,_0x3a9e86:0x139,_0x292b31:0x15,_0x46f6cf:0x78,_0x2763f6:0x136,_0x41f03b:0x119,_0xea5a28:0x19f,_0x37b01a:0x23d,_0x5ac13a:0x2de,_0x419ba2:0x2b7,_0x39fa5e:0x1a9,_0x62453b:0x130,_0x67cfe5:0x86,_0x1ca225:0x23,_0xc9a6dd:0x17,_0x3aec2d:0x2f2,_0x4ee8d9:0x2bb,_0x4d7dfd:0x1b2,_0x15e78a:0x78,_0x3dec4d:0x10b,_0x49d4d8:0x120,_0x136c7b:0x3e3,_0x2e9bcf:0x32b,_0x3a3a4e:0x249,_0x582a54:0x27d,_0x223723:0x31f,_0x33ffdf:0x176},_0x2ce5d5={_0x4fdaf8:0x19b},_0x5a1e59={_0x45dd03:0x17e};this[_0x49a1e6(_0x6df6fc._0x48ed3e,-0x48,-_0x6df6fc._0x227e3f,_0x6df6fc._0x2385cd)]=_0x1614ca['model'],this[_0x49a1e6(0x103,0x1f,_0x6df6fc._0x24a63f,0x54)]=_0x1614ca['modelIdentity']??modelIdentityFromParts(void 0x0,this[_0x3e7764(0x2cb,0x2b0,_0x6df6fc._0x22b9dd,_0x6df6fc._0x555571)]);function _0x49a1e6(_0x4e3fad,_0x3434af,_0x29037,_0x3a27f8){return _0x5e6a6f(_0x29037,_0x3434af-0x1ce,_0x4e3fad-_0x5a1e59._0x45dd03,_0x3a27f8-0x1b);}this[_0x49a1e6(0xa4,0x141,-_0x6df6fc._0x52c900,0x96)]=_0x1614ca[_0x49a1e6(0xa4,_0x6df6fc._0x1e495e,_0x6df6fc._0x29f5da,_0x6df6fc._0x41fb58)],this[_0x49a1e6(_0x6df6fc._0x5f0676,_0x6df6fc._0x24622e,-0x55,-0x8e)]=_0x1614ca[_0x49a1e6(0x2e,0x1f,_0x6df6fc._0x2ade60,-0xa2)]?structuredClone(_0x1614ca[_0x3e7764(_0x6df6fc._0x5d5f2c,_0x6df6fc._0x2ffc3a,_0x6df6fc._0x575004,_0x6df6fc._0x5643f0)]):void 0x0,this[_0x49a1e6(0xe5,0x6d,-_0x6df6fc._0x4eef22,_0x6df6fc._0x236365)]=_0x1614ca[_0x49a1e6(0xe5,_0x6df6fc._0x15d91e,0x11,0x181)];function _0x3e7764(_0x398488,_0x400235,_0x4cca60,_0x563d99){return _0x5e6a6f(_0x4cca60,_0x400235-_0x2ce5d5._0x4fdaf8,_0x563d99-0x3a4,_0x563d99-0x173);}this[_0x49a1e6(-_0x6df6fc._0x444f82,-_0x6df6fc._0x3a9e86,-0xf2,0x50)]=_0x1614ca[_0x49a1e6(-_0x6df6fc._0x444f82,-_0x6df6fc._0x292b31,-0xc8,-0x18c)],this[_0x49a1e6(-_0x6df6fc._0x46f6cf,-0xbe,-_0x6df6fc._0x2763f6,-_0x6df6fc._0x41f03b)]=_0x1614ca['fetch']??globalThis[_0x49a1e6(_0x6df6fc._0x236365,0xcf,0x13,0x13c)],this['providerAdapter']=_0x1614ca[_0x3e7764(0x275,0x1e2,_0x6df6fc._0xea5a28,0x282)],this['requestMutators']=_0x1614ca[_0x3e7764(_0x6df6fc._0x37b01a,_0x6df6fc._0x5ac13a,_0x6df6fc._0x419ba2,0x2be)]??[],this[_0x49a1e6(0xe1,_0x6df6fc._0x39fa5e,_0x6df6fc._0x62453b,_0x6df6fc._0x67cfe5)]=_0x1614ca[_0x3e7764(0x2a9,0x267,0x2e6,0x307)],this['sessionManager']=_0x1614ca[_0x49a1e6(_0x6df6fc._0x1ca225,-_0x6df6fc._0xc9a6dd,-_0x6df6fc._0x48ed3e,-0x2c)]??(_0x1614ca[_0x3e7764(_0x6df6fc._0x3aec2d,_0x6df6fc._0x4ee8d9,_0x6df6fc._0x4d7dfd,0x29e)]?new ProviderSessionManager(_0x1614ca[_0x49a1e6(_0x6df6fc._0x15e78a,0x103,_0x6df6fc._0x3dec4d,_0x6df6fc._0x49d4d8)]):void 0x0),this[_0x3e7764(0x346,_0x6df6fc._0x136c7b,0x328,_0x6df6fc._0x2e9bcf)]=_0x1614ca[_0x49a1e6(0x105,0x172,0xd1,0x19)]??createDefaultWebSocketFactory();for(const _0x4a0b21 of _0x1614ca['surfaces']){this[_0x3e7764(_0x6df6fc._0x3a3a4e,0x27f,_0x6df6fc._0x582a54,0x2ae)][_0x3e7764(0x22c,_0x6df6fc._0x223723,_0x6df6fc._0x33ffdf,0x24b)](_0x4a0b21['id'],_0x4a0b21);}}[_0x2088d4(0x14e,0x1f9,0x118,0x10c)](_0x25708d,_0x432efe){const _0x2f0e39={_0x5100db:0x417,_0x10e100:0x4bf},_0x258870={_0x56f8f4:0x186,_0x45b730:0x361};function _0x2a2f53(_0x496bf8,_0x158d0b,_0x2e54d6,_0xb5c276){return _0x2088d4(_0x496bf8-0xfe,_0x158d0b-_0x258870._0x56f8f4,_0x158d0b,_0x2e54d6-_0x258870._0x45b730);}return this[_0x2a2f53(0x4c9,_0x2f0e39._0x5100db,_0x2f0e39._0x10e100,0x4c8)](_0x25708d,_0x432efe);}[_0x5e6a6f(-0x117,-0x188,-0x1cb,-0x160)](_0x3582d2,_0x34b8fd){const _0x5eb6f3={_0x1ca6c5:0x552,_0x176ef0:0x60f},_0x5a74a0={_0x59f5ea:0x17,_0x4b8fdf:0x3aa};function _0x2a0055(_0x555de9,_0x59e44c,_0x3f87a3,_0x16f61a){return _0x2088d4(_0x555de9-_0x5a74a0._0x59f5ea,_0x59e44c-0x162,_0x3f87a3,_0x555de9-_0x5a74a0._0x4b8fdf);}return this[_0x2a0055(_0x5eb6f3._0x1ca6c5,0x554,_0x5eb6f3._0x176ef0,0x580)](_0x3582d2,_0x34b8fd);}async['completeViaRouter'](_0xe2115c,_0x3c2b28){const _0x19e292={_0x804bc4:0x2cc,_0x3385ee:0x3b0,_0x30b9a4:0x3e8,_0x3b8293:0x399,_0x2d9a5c:0x3bb,_0x5a7e42:0x423,_0x51210f:0x299,_0x730bd4:0x39b,_0x10e793:0x313,_0x299eeb:0x2be,_0x2cbf2d:0x25c,_0x18578f:0x33b,_0x21a262:0x346},_0x434cbc={_0x4b1101:0x418,_0x16fb50:0x1a9},_0x275d72={_0x435056:0x524};function _0xae7329(_0x572d57,_0xddf709,_0x43da46,_0x3ef93f){return _0x5e6a6f(_0xddf709,_0xddf709-0x86,_0x3ef93f-_0x275d72._0x435056,_0x3ef93f-0x15b);}const _0x4a8427=this[_0x515041(_0x19e292._0x804bc4,_0x19e292._0x3385ee,_0x19e292._0x30b9a4,_0x19e292._0x3b8293)](_0xe2115c),_0x31b759=await this[_0xae7329(_0x19e292._0x2d9a5c,0x477,_0x19e292._0x5a7e42,0x487)][_0xae7329(0x30b,_0x19e292._0x51210f,_0x19e292._0x730bd4,0x31c)](_0x4a8427,{'mode':_0x515041(_0x19e292._0x10e793,0x2de,_0x19e292._0x299eeb,_0x19e292._0x2cbf2d)});function _0x515041(_0x4b541c,_0x130ba1,_0x3fd8c0,_0x1863dc){return _0x5e6a6f(_0x130ba1,_0x130ba1-0x158,_0x1863dc-_0x434cbc._0x4b1101,_0x1863dc-_0x434cbc._0x16fb50);}return this[_0xae7329(0x3b1,0x2cc,_0x19e292._0x18578f,_0x19e292._0x21a262)](_0x4a8427,_0x31b759,_0x3c2b28);}async*[_0x5e6a6f(-0x1a7,-0xfa,-0x120,-0x151)](_0x3d8e62,_0x31d62e){const _0x598785={_0x8789a6:0x386,_0x1c2a7b:0x3d3,_0x179028:0x1bd,_0x5d874a:0x290,_0x2a1d0a:0xff,_0x4c9e15:0x23a,_0x67e803:0x22f},_0x1cde64={_0x43a95f:0x12a,_0x3a2da7:0x2b,_0x1ad537:0xd8},_0x29ca9d={_0x1f6c20:0x13d};function _0x482306(_0x10e21c,_0x21349d,_0x485ae2,_0x5e5f06){return _0x2088d4(_0x10e21c-0x46,_0x21349d-0x1cb,_0x5e5f06,_0x10e21c-_0x29ca9d._0x1f6c20);}const _0x47ee51=this[_0x482306(_0x598785._0x8789a6,0x2e4,0x33d,_0x598785._0x1c2a7b)](_0x3d8e62);function _0x9c3ab9(_0x54e204,_0x258a8a,_0x576211,_0x1efa5b){return _0x5e6a6f(_0x1efa5b,_0x258a8a-_0x1cde64._0x43a95f,_0x258a8a-_0x1cde64._0x3a2da7,_0x1efa5b-_0x1cde64._0x1ad537);}const _0x3be461=await this['router'][_0x9c3ab9(-_0x598785._0x179028,-0x1dd,-_0x598785._0x5d874a,-_0x598785._0x2a1d0a)](_0x47ee51,{'mode':_0x482306(_0x598785._0x4c9e15,_0x598785._0x67e803,0x178,0x2b6)});yield*this['streamViaSurface'](_0x47ee51,_0x3be461,_0x31d62e);}async[_0x2088d4(0x19c,0x1bb,0xc,0xea)](_0x33c824,_0x4e287b,_0x23d7c6){const _0xc5f659={_0xa49210:0x388,_0x16b2b9:0x2c0,_0x151b24:0x19f,_0xbb2b54:0x1ab,_0x39e231:0x456,_0x5195d9:0x53a,_0x3ad0c0:0x242,_0xac5018:0x277,_0x34a9b0:0x48a,_0x25e17d:0x42f,_0xd3477c:0x4f9,_0x21af42:0x404,_0x2a4570:0x4cf,_0xdd411c:0x4e2,_0x2bd455:0x490,_0x94014f:0xb7,_0x1647cd:0x10d,_0x589990:0x5b8,_0x5b6529:0x664,_0x691843:0x606,_0x2bbe09:0x5e8,_0x595c77:0x98,_0x5be213:0x86,_0x1deca8:0x13b,_0x55207c:0x236},_0x284c1e={_0x4fc360:0xcf},_0x255fc7={_0x3309fb:0x1a3,_0x17f1cc:0x6b1,_0x4821c9:0x1f1},_0x1f6015=this[_0x27e647(0x237,0x230,_0xc5f659._0xa49210,_0xc5f659._0x16b2b9)](_0x33c824),_0x23b08f=this[_0x27e647(0x235,0xc2,_0xc5f659._0x151b24,_0xc5f659._0xbb2b54)](_0x4e287b);if(_0x23b08f['transport']===_0x478a32(0x4d6,_0xc5f659._0x39e231,0x44c,_0xc5f659._0x5195d9)){const _0x13a52=await this[_0x27e647(_0xc5f659._0x3ad0c0,_0xc5f659._0xac5018,0x1a5,0x1c7)](_0x1f6015,_0x23b08f,![],_0x23d7c6);if(!_0x13a52['ok'])throw await this[_0x478a32(0x487,_0xc5f659._0x34a9b0,_0xc5f659._0x25e17d,_0xc5f659._0xd3477c)](_0x13a52);if(!_0x23b08f[_0x478a32(_0xc5f659._0x21af42,_0xc5f659._0x2a4570,_0xc5f659._0xdd411c,_0xc5f659._0x2bd455)])throw new Error(_0x27e647(_0xc5f659._0x94014f,_0xc5f659._0x1647cd,0x220,0x185)+_0x4e287b+'\x20does\x20not\x20support\x20non-streaming\x20responses');return _0x23b08f['parseResponse'](await _0x13a52[_0x478a32(_0xc5f659._0x589990,0x649,_0xc5f659._0x5b6529,_0xc5f659._0x691843)](),_0x1f6015);}let _0x42d5a0;function _0x478a32(_0x13fa4c,_0x189a6a,_0x34a29b,_0x3d0581){return _0x5e6a6f(_0x34a29b,_0x189a6a-_0x255fc7._0x3309fb,_0x3d0581-_0x255fc7._0x17f1cc,_0x3d0581-_0x255fc7._0x4821c9);}function _0x27e647(_0x31b5e5,_0x32f1b3,_0x375407,_0x1487f5){return _0x2088d4(_0x31b5e5-_0x284c1e._0x4fc360,_0x32f1b3-0x67,_0x31b5e5,_0x1487f5-0x77);}for await(const _0x5e1f1f of this['streamViaSurface'](_0x1f6015,_0x4e287b,_0x23d7c6)){_0x5e1f1f[_0x478a32(0x51f,0x6d7,0x528,_0xc5f659._0x2bbe09)]===_0x27e647(_0xc5f659._0x595c77,_0xc5f659._0x5be213,_0xc5f659._0x1deca8,0x14b)&&(_0x42d5a0=_0x5e1f1f[_0x27e647(0x16b,0x25e,_0xc5f659._0x55207c,0x1a1)]);}if(!_0x42d5a0)throw new Error('Surface\x20'+_0x4e287b+'\x20did\x20not\x20produce\x20a\x20final\x20response');return _0x42d5a0;}async*[_0x5e6a6f(-0xef,-0x155,-0x1a8,-0x244)](_0x1e5290,_0xee84e,_0x1ebb13){const _0x3cdf0d={_0x23cf3c:0x15,_0x3a15f5:0x7,_0x2a7ee2:0x32,_0x15a933:0x87,_0xcbebbd:0xd9,_0xedff01:0x115,_0x2f1489:0xff,_0x355633:0x74,_0x5e0378:0xe0,_0x438e40:0xa1,_0x10ab2b:0x136,_0x596292:0x42,_0x4f730d:0x155,_0xd07689:0x129,_0x5ba089:0x186,_0x4d5e40:0x154},_0x4a8f25={_0x4467ab:0x45,_0x244163:0x76},_0x28f98c={_0x8c17a1:0x55};function _0x4b4006(_0x3866c7,_0x22cf5c,_0x2ad4ea,_0x5fcd71){return _0x5e6a6f(_0x2ad4ea,_0x22cf5c-_0x28f98c._0x8c17a1,_0x22cf5c-0x78,_0x5fcd71-0x149);}function _0x1a24fb(_0x24034a,_0x3d1c6e,_0x1e0141,_0x44b625){return _0x2088d4(_0x24034a-0x1eb,_0x3d1c6e-_0x4a8f25._0x4467ab,_0x24034a,_0x3d1c6e- -_0x4a8f25._0x244163);}const _0x53958d=this[_0x4b4006(-_0x3cdf0d._0x23cf3c,-_0x3cdf0d._0x3a15f5,_0x3cdf0d._0x2a7ee2,_0x3cdf0d._0x15a933)](_0x1e5290),_0x5e6de4=this['getSurface'](_0xee84e);if(_0x5e6de4[_0x1a24fb(0x197,_0x3cdf0d._0xcbebbd,0x16c,0x170)]===_0x4b4006(-_0x3cdf0d._0xedff01,-_0x3cdf0d._0x2f1489,-0x24,-0x1a5)){const _0xebbaf0=await this[_0x1a24fb(0x150,_0x3cdf0d._0x355633,-0x2c,_0x3cdf0d._0x5e0378)](_0x53958d,_0xee84e,_0x1ebb13);yield{'type':_0x1a24fb(_0x3cdf0d._0x438e40,0x5e,_0x3cdf0d._0x10ab2b,0x50),'response':_0xebbaf0};return;}if(_0x5e6de4[_0x1a24fb(0x1a1,0xd9,_0x3cdf0d._0x596292,0x11)]===_0x1a24fb(0x271,0x19f,0x195,0x21c)){yield*this[_0x1a24fb(_0x3cdf0d._0x4f730d,0x175,_0x3cdf0d._0xd07689,_0x3cdf0d._0x5ba089)](_0x53958d,_0x5e6de4,_0x1ebb13);return;}yield*this[_0x1a24fb(_0x3cdf0d._0x4d5e40,0x151,0x80,0x121)](_0x53958d,_0x5e6de4,_0x1ebb13?.['signal']);}async[_0x2088d4(0x327,0x1c4,0x21a,0x23e)](_0x3a1717){const _0x54dd0b={_0x5ba1ff:0x5ff,_0x4c595b:0x60f,_0x528286:0x526},_0x22c910={_0x3330b1:0x756},_0x4c716b={_0x4b5325:0x62,_0x323c98:0x24,_0x4437f7:0x466,_0x5da28f:0x4d,_0x5038a7:0x2,_0x1fb99a:0xdd,_0x243eb7:0x4b5,_0x3d47f7:0x49f,_0x1b4dfc:0x481,_0x3497bc:0x4b6,_0x2c351c:0x61,_0x55d50a:0x70,_0x1a86f7:0x5b7,_0x55810c:0x439,_0x31e16a:0x53b,_0x2fc287:0x5e3,_0x5878c6:0x534,_0x2ff1d2:0xa,_0x5c4a2b:0xed,_0x2c356f:0x3fd,_0x33f1ca:0x466,_0x1033c1:0xfc,_0x432ad0:0x2b,_0x50d3da:0xee,_0x226587:0x6,_0xc53d30:0xd,_0x1d5479:0xcc,_0x4dea89:0x1ea,_0x256a21:0x53,_0x499781:0x12c,_0x185aa2:0x4da,_0x288132:0x3a8,_0x3c4f89:0x3ce,_0x3b4b1f:0x478,_0x7e9e44:0x3ea},_0x95ea06=async()=>{const _0x50f456=this[_0x1418af(-0xee,-0x61,-_0x4c716b._0x4b5325,_0x4c716b._0x323c98)]?await this[_0x1019f1(0x4d4,_0x4c716b._0x4437f7,0x429,0x43e)][_0x1418af(-0x157,-0x73,-_0x4c716b._0x5da28f,-_0x4c716b._0x5038a7)](_0x3a1717[_0x1418af(-0x11e,-_0x4c716b._0x1fb99a,-0xfc,-0xb7)]):void 0x0;function _0x1019f1(_0x5c2fc4,_0x3ec871,_0x746e7,_0x141b01){return _0x7447(_0x3ec871-0x1dd,_0x5c2fc4);}function _0x1418af(_0x37f508,_0x3b704a,_0x4904d3,_0x4abd5a){return _0x7447(_0x3b704a- -0x2ea,_0x37f508);}const _0x56e6b2=this[_0x1019f1(_0x4c716b._0x243eb7,_0x4c716b._0x3d47f7,0x403,0x52e)][_0x1019f1(_0x4c716b._0x1b4dfc,_0x4c716b._0x3497bc,0x57a,0x512)](this[_0x1418af(0x59,_0x4c716b._0x2c351c,-0x1c,-_0x4c716b._0x55d50a)],_0x50f456);if(!_0x56e6b2)throw this[_0x1019f1(_0x4c716b._0x1a86f7,0x4e9,0x5cb,_0x4c716b._0x55810c)]();const _0x5688c6=await this[_0x1418af(0x73,-0x17,-0x47,-0xe0)]({'body':_0x3a1717[_0x1019f1(0x560,_0x4c716b._0x31e16a,_0x4c716b._0x2fc287,_0x4c716b._0x5878c6)],'credential':_0x56e6b2,'session':_0x50f456,'stream':![]},{'accept':_0x3a1717[_0x1418af(-_0x4c716b._0x2ff1d2,-0x7a,0x29,-_0x4c716b._0x5c4a2b)]??'application/json','includeContentType':_0x3a1717[_0x1019f1(0x3eb,_0x4c716b._0x2c356f,_0x4c716b._0x33f1ca,0x43f)]===_0x1019f1(0x53e,0x45f,0x446,0x4c4)});return this[_0x1418af(-0x19a,-_0x4c716b._0x1033c1,-_0x4c716b._0x432ad0,-_0x4c716b._0x50d3da)](''+this['providerAdapter'][_0x1418af(_0x4c716b._0x226587,-_0x4c716b._0xc53d30,-0x53,_0x4c716b._0x1d5479)](this[_0x1418af(-_0x4c716b._0x4dea89,-0x120,-0x81,-_0x4c716b._0x256a21)],_0x50f456)+_0x3a1717['path'],{'method':_0x3a1717[_0x1418af(-_0x4c716b._0x499781,-0xca,-0xe7,-0xba)],'headers':_0x5688c6,..._0x3a1717[_0x1019f1(0x53d,0x53b,_0x4c716b._0x185aa2,0x598)]!==void 0x0?{'body':JSON[_0x1019f1(_0x4c716b._0x288132,_0x4c716b._0x3c4f89,0x2e6,0x413)](_0x3a1717['body'])}:{},'signal':_0x3a1717[_0x1019f1(_0x4c716b._0x3b4b1f,_0x4c716b._0x7e9e44,0x323,0x3c8)]});};function _0x238f6a(_0x37dff4,_0x219a4c,_0x221594,_0x19cb14){return _0x5e6a6f(_0x37dff4,_0x219a4c-0x1e,_0x221594-_0x22c910._0x3330b1,_0x19cb14-0x1c4);}return await this[_0x238f6a(_0x54dd0b._0x5ba1ff,_0x54dd0b._0x4c595b,0x5bb,_0x54dd0b._0x528286)](_0x95ea06,_0x3a1717);}[_0x2088d4(0x16c,0x27,0x1c2,0xef)](_0x287ef4,_0x68747f){const _0xde4948={_0x15fca5:0x38a,_0x55c536:0x101,_0x5868e1:0x66,_0x38725c:0xf6,_0x4ca5a0:0x355,_0x451514:0x31c,_0x13eaa1:0x36f,_0x5a83eb:0x332,_0x30bbdc:0x46d,_0x3ea02f:0x4b7,_0x4d9b02:0x1fd,_0x12e3d4:0x1f8},_0x3d2141={_0x15793a:0xee},_0xc26d19=_0x287ef4?.[_0x30f337(_0xde4948._0x15fca5,0x465,0x389,0x398)][_0x8643b0(_0xde4948._0x55c536,0x9e,_0xde4948._0x5868e1,_0xde4948._0x38725c)](_0x30f337(0x25b,0x20d,0x282,0x1ef));if(_0xc26d19){const _0x43bc2c=Number(_0xc26d19);if(Number[_0x30f337(_0xde4948._0x4ca5a0,_0xde4948._0x451514,0x3f9,_0xde4948._0x13eaa1)](_0x43bc2c)&&_0x43bc2c>=0x0)return _0x43bc2c*0x3e8;const _0x3031a2=Date['parse'](_0xc26d19);if(Number['isFinite'](_0x3031a2))return Math[_0x30f337(0x3e3,_0xde4948._0x5a83eb,_0xde4948._0x30bbdc,_0xde4948._0x3ea02f)](0x0,_0x3031a2-Date[_0x30f337(0x29c,0x357,_0xde4948._0x4d9b02,_0xde4948._0x12e3d4)]());}function _0x8643b0(_0x540749,_0x1e58f1,_0x2f24ce,_0x5b8ac3){return _0x2088d4(_0x540749-0x191,_0x1e58f1-_0x3d2141._0x15793a,_0x1e58f1,_0x5b8ac3- -0x134);}const _0x14546b=DEFAULT_RETRY_DELAY_MS*0x2**_0x68747f;function _0x30f337(_0x227746,_0x302712,_0x27c256,_0x166c7f){return _0x5e6a6f(_0x302712,_0x302712-0x104,_0x227746-0x4a2,_0x166c7f-0x19f);}if(_0x14546b<RETRY_DELAY_STEP_CAP_MS)return _0x14546b;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x68747f-0x5);}[_0x2088d4(0xfb,0x61,0x195,0xb5)](_0x169834){const _0x128a06={_0x617ee2:0x346,_0xeea1d0:0x314},_0x55b9ee={_0x5c75b1:0x130},_0x21bdd2={_0x2372f8:0x5e,_0x1df5b5:0x23c};function _0x4ea953(_0x5593a8,_0x4f67d5,_0x3c9496,_0x47d060){return _0x2088d4(_0x5593a8-0xca,_0x4f67d5-_0x21bdd2._0x2372f8,_0x3c9496,_0x5593a8-_0x21bdd2._0x1df5b5);}function _0x1f4014(_0x55492b,_0x3416a1,_0x23db53,_0x140f24){return _0x2088d4(_0x55492b-0xe3,_0x3416a1-_0x55b9ee._0x5c75b1,_0x55492b,_0x140f24-0x174);}return RETRYABLE_HTTP_STATUSES[_0x4ea953(_0x128a06._0x617ee2,0x3c9,0x358,0x3eb)](_0x169834[_0x4ea953(0x309,_0x128a06._0xeea1d0,0x373,0x25f)]);}['shouldRetryRequestError'](_0x24a6f3){return!isAbortError(_0x24a6f3)&&_0x24a6f3 instanceof TypeError;}[_0x5e6a6f(-0x12f,-0xc5,-0x15e,-0x18d)](_0x27c63f){const _0x3131fa={_0x10322d:0x195};function _0x3a9e9c(_0x5b9f52,_0x2ad934,_0x13a1e7,_0x533599){return _0x5e6a6f(_0x5b9f52,_0x2ad934-0xc7,_0x533599-0x2ce,_0x533599-_0x3131fa._0x10322d);}return this[_0x3a9e9c(0x30e,0x1a1,0x1b6,0x252)](_0x27c63f)||isRetryableProviderStreamEventError(_0x27c63f);}async[_0x2088d4(0x257,0x2a8,0x227,0x231)](_0x5162f9,_0x391153){const _0x2a7dd1={_0x5a6430:0x54,_0x299245:0x8};throwIfAborted(_0x391153),await new Promise((_0x23bfbf,_0x3be42f)=>{let _0x5450e6=![];const _0x48dd51=addAbortListener(_0x391153,()=>{if(_0x5450e6)return;function _0x7a47c2(_0x4cb88a,_0x5a111d,_0x3910cf,_0xf43be2){return _0x7447(_0x4cb88a- -0x209,_0xf43be2);}_0x5450e6=!![],clearTimeout(_0x4e4cfa),_0x3be42f(toAbortError(_0x391153?.[_0x7a47c2(0x43,_0x2a7dd1._0x5a6430,_0x2a7dd1._0x299245,0x41)]));}),_0x4e4cfa=setTimeout(()=>{_0x5450e6=!![],_0x48dd51(),_0x23bfbf();},_0x5162f9);}),throwIfAborted(_0x391153);}async['sendWithRetries'](_0x253898,_0x2a225f={}){const _0x4ffdd5={_0x47a2d1:0x47,_0x3cc135:0x106,_0x59ca31:0xff,_0xeaa44:0x2a,_0x554e87:0xab,_0x3bc424:0x4e,_0x4b497a:0x1,_0x8998a5:0xcb,_0x1fc5be:0x15,_0x638ab1:0x124,_0x3924f5:0x82,_0x92af9c:0x36,_0x22f656:0x160,_0x3e20f0:0x67,_0x475ae9:0x129},_0x5962ac={_0x112ca8:0x1ca},_0x4a1e36={_0xa6f8ef:0x32},{signal:_0x14ea0b}=_0x2a225f;function _0x20c816(_0x1e39e7,_0x42b9e3,_0x35c5f4,_0x1e40fa){return _0x5e6a6f(_0x42b9e3,_0x42b9e3-0x97,_0x1e40fa-0x1d1,_0x1e40fa-_0x4a1e36._0xa6f8ef);}let _0x2cba06=![];for(let _0x57f90a=0x0;_0x57f90a<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x57f90a+=0x1){throwIfAborted(_0x14ea0b);try{const _0xf1e80b=await _0x253898();if(_0xf1e80b['status']===0x191&&this[_0x2a9e0b(-_0x4ffdd5._0x47a2d1,-0x5d,-0xc0,-_0x4ffdd5._0x3cc135)]&&!_0x2cba06){_0x2cba06=!![],this[_0x2a9e0b(-0x3d,-0x5d,-_0x4ffdd5._0x59ca31,_0x4ffdd5._0xeaa44)][_0x20c816(-_0x4ffdd5._0x554e87,-0x31,_0x4ffdd5._0x3bc424,-0x4)]();continue;}if(!this['shouldRetryResponse'](_0xf1e80b)||_0x57f90a===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0xf1e80b;const _0x202333=this[_0x20c816(_0x4ffdd5._0x4b497a,_0x4ffdd5._0x8998a5,-_0x4ffdd5._0x1fc5be,-0x8)](_0xf1e80b,_0x57f90a);await this['waitForRetry'](_0x202333,_0x14ea0b);}catch(_0x1d5173){if(!this[_0x2a9e0b(_0x4ffdd5._0x638ab1,_0x4ffdd5._0x3924f5,_0x4ffdd5._0x92af9c,_0x4ffdd5._0x22f656)](_0x1d5173)||_0x57f90a===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x1d5173;const _0x5249ae=this['getRetryDelayMs'](void 0x0,_0x57f90a);await this[_0x2a9e0b(-_0x4ffdd5._0x3bc424,_0x4ffdd5._0x3e20f0,0xd8,_0x4ffdd5._0x475ae9)](_0x5249ae,_0x14ea0b);}}function _0x2a9e0b(_0x14862e,_0x3cede5,_0x1d139c,_0x487db3){return _0x2088d4(_0x14862e-0x71,_0x3cede5-0x1d1,_0x487db3,_0x3cede5- -_0x5962ac._0x112ca8);}throw new Error('Provider\x20request\x20retry\x20loop\x20exited\x20unexpectedly');}[_0x5e6a6f(-0x99,-0x153,-0xd8,-0x5)](){const _0x588948={_0x5d3938:0xf4,_0x410eb6:0x17f,_0x45ef73:0x3cd,_0x48496e:0x48f},_0x34e2b5={_0x299437:0x13f,_0x4a242b:0x11f,_0x391993:0xb2},_0x59b6a3={_0x57f423:0x1a7,_0x1dbee6:0xe2,_0xfdea81:0x276};function _0x444bec(_0x4b6a81,_0x316504,_0xa57f1b,_0x215465){return _0x2088d4(_0x4b6a81-_0x59b6a3._0x57f423,_0x316504-_0x59b6a3._0x1dbee6,_0x316504,_0x4b6a81-_0x59b6a3._0xfdea81);}function _0x2be63c(_0x1aa068,_0x330716,_0x4ed412,_0x423547){return _0x2088d4(_0x1aa068-_0x34e2b5._0x299437,_0x330716-_0x34e2b5._0x4a242b,_0x423547,_0x1aa068- -_0x34e2b5._0x391993);}return this[_0x2be63c(_0x588948._0x5d3938,_0x588948._0x410eb6,0x111,0x13a)][_0x444bec(0x466,0x4e2,_0x588948._0x45ef73,_0x588948._0x48496e)]();}async['createHeaders'](_0x1d7de6,_0x1e9f47){const _0x1b9bbb={_0x3318b1:0x208,_0x4f5e3b:0x204,_0x3bec65:0x2d1,_0x15c1dc:0x1d6,_0x51f56d:0x290,_0x290666:0x216},_0x411f6a={_0x3f0d2d:0x137},_0x2c5686={_0xa8fe03:0x11e};function _0x210142(_0x22afaf,_0x1bc5fb,_0x2e7ea2,_0x203e9a){return _0x2088d4(_0x22afaf-_0x2c5686._0xa8fe03,_0x1bc5fb-0xd5,_0x22afaf,_0x203e9a- -0x9b);}function _0x214ab(_0x194205,_0x27c3eb,_0x4f1eb7,_0x204666){return _0x5e6a6f(_0x4f1eb7,_0x27c3eb-0x156,_0x204666-0x327,_0x204666-_0x411f6a._0x3f0d2d);}return await this[_0x214ab(_0x1b9bbb._0x3318b1,_0x1b9bbb._0x4f5e3b,_0x1b9bbb._0x3bec65,0x205)][_0x214ab(_0x1b9bbb._0x15c1dc,0x16d,_0x1b9bbb._0x51f56d,_0x1b9bbb._0x290666)](_0x1d7de6,_0x1e9f47);}[_0x2088d4(0x2d8,0x1c8,0x13a,0x1f5)](_0x2fcefc){const _0x50f6a4={_0x28e4af:0x18a},_0xaf4047={_0x239bc1:0x3,_0x45d579:0x14b};function _0x30540d(_0x4f90f5,_0x5d9271,_0x53aa57,_0x4cbfc3){return _0x2088d4(_0x4f90f5-_0xaf4047._0x239bc1,_0x5d9271-_0xaf4047._0x45d579,_0x4f90f5,_0x4cbfc3- -0x291);}return this['providerAdapter'][_0x30540d(-_0x50f6a4._0x28e4af,-0x148,-0x2f,-0x9c)](_0x2fcefc);}async[_0x5e6a6f(-0x255,-0x1cf,-0x1b8,-0x1cc)](_0x800b83){const _0x21e563={_0x3f70c8:0x5f6,_0x30e647:0x616,_0x85e2e9:0x61e},_0x1fd582={_0x20c92e:0x15f,_0x5c6fc7:0xc8,_0x43c3be:0x4fa};function _0x3e9043(_0x21b9e3,_0x4b2532,_0x7ae607,_0x2afdfc){return _0x2088d4(_0x21b9e3-_0x1fd582._0x20c92e,_0x4b2532-_0x1fd582._0x5c6fc7,_0x2afdfc,_0x4b2532-_0x1fd582._0x43c3be);}return await this[_0x3e9043(_0x21e563._0x3f70c8,0x6a0,_0x21e563._0x30e647,_0x21e563._0x85e2e9)]['toApiError'](_0x800b83);}[_0x2088d4(0x194,0x152,0x6f,0x134)](_0x206f25){const _0xf61b7b={_0x307810:0xea,_0x1acb17:0x475,_0x429ef7:0x518,_0x5f3443:0x4f1,_0x25848a:0x55d,_0x38eaa4:0x5e7,_0x23d31a:0x55c,_0x15bd67:0x503},_0x2d0845={_0x2237a3:0x178,_0x5a1c3a:0x155},_0x181354={_0xd688b7:0x121},_0x554350=this[_0x51d8ac(0xf1,_0xf61b7b._0x307810,0x12,0x6d)][_0x25ac1b(_0xf61b7b._0x1acb17,_0xf61b7b._0x429ef7,_0xf61b7b._0x5f3443,_0xf61b7b._0x25848a)](_0x206f25);function _0x51d8ac(_0x3b2535,_0x1eb658,_0x50393a,_0x5a3dbf){return _0x5e6a6f(_0x5a3dbf,_0x1eb658-0x148,_0x3b2535-0x1e7,_0x5a3dbf-_0x181354._0xd688b7);}function _0x25ac1b(_0x45d719,_0x3a478c,_0x39bbb6,_0x4bae91){return _0x5e6a6f(_0x45d719,_0x3a478c-_0x2d0845._0x2237a3,_0x4bae91-0x5fb,_0x4bae91-_0x2d0845._0x5a1c3a);}if(!_0x554350)throw new Error(_0x25ac1b(_0xf61b7b._0x38eaa4,_0xf61b7b._0x23d31a,0x47f,_0xf61b7b._0x15bd67)+_0x206f25);return _0x554350;}async[_0x5e6a6f(-0x12d,-0x26f,-0x217,-0x1cc)](_0x2aaea6,_0x14894d){const _0x7dd677={_0x59f6de:0x205,_0x3fcc97:0x22f,_0x488f98:0x56a,_0x3a8781:0x657,_0x8f4b95:0xe9,_0x308ffd:0xa1,_0x33d76b:0x1a0,_0x632688:0x4a5,_0x4b1390:0x6d9,_0x455d3b:0x649,_0x4c0f88:0x5ba,_0x1cfa79:0x5b3,_0x2007f0:0x81},_0x59a79e={_0x3b30c2:0x264};function _0x168cea(_0x284601,_0x1b596c,_0x211874,_0x522c5b){return _0x5e6a6f(_0x211874,_0x1b596c-0x1b0,_0x1b596c-_0x59a79e._0x3b30c2,_0x522c5b-0x1d0);}const _0x12acbc=toModelRequest(_0x2aaea6),_0x5d22b3=await prepareProviderRequest(_0x12acbc,{'sessionManager':this['sessionManager'],'requestMutators':this[_0x168cea(0x101,0x17e,_0x7dd677._0x59f6de,_0x7dd677._0x3fcc97)],'signal':_0x14894d}),_0x56ac7c=toChatRequest(_0x5d22b3[_0x12dc92(_0x7dd677._0x488f98,0x721,0x60a,_0x7dd677._0x3a8781)]),_0x5d525d=this[_0x168cea(_0x7dd677._0x8f4b95,0x142,_0x7dd677._0x308ffd,0x15b)][_0x168cea(0x145,0x159,0x9c,_0x7dd677._0x33d76b)](this['apiKey'],_0x5d22b3[_0x12dc92(0x57f,0x542,0x48b,_0x7dd677._0x632688)]);if(!_0x5d525d)throw this[_0x12dc92(_0x7dd677._0x4b1390,0x672,0x5d4,0x5fd)]();function _0x12dc92(_0x589caa,_0x228bc1,_0x32fac5,_0x5e69e9){return _0x5e6a6f(_0x32fac5,_0x228bc1-0x9b,_0x5e69e9-0x6d5,_0x5e69e9-0x5c);}return{'baseUrl':this[_0x12dc92(_0x7dd677._0x455d3b,_0x7dd677._0x4c0f88,0x572,_0x7dd677._0x1cfa79)][_0x168cea(0x15c,0x15d,0x1df,0x9f)](this[_0x168cea(0xf2,0x4a,_0x7dd677._0x2007f0,0xfd)],_0x5d22b3['session']),'credential':_0x5d525d,'request':_0x56ac7c,'session':_0x5d22b3['session']};}[_0x2088d4(0x270,0x16c,0x322,0x249)](_0x5c7b0b){const _0x203b4a={_0x23670e:0xbe,_0x1f796e:0x9b,_0x4eb0d8:0xb4,_0x4ac19e:0xc9,_0x385a61:0x111,_0x1d1410:0x9b},_0x41ccb4={_0x6e6c95:0x1a4},_0x284f79={_0x383575:0x1c8,_0x3d4aaa:0xdd};function _0x1ceded(_0x7aaa03,_0xa66bdb,_0xcecf0d,_0x11e24d){return _0x2088d4(_0x7aaa03-_0x284f79._0x383575,_0xa66bdb-0xff,_0x11e24d,_0xcecf0d- -_0x284f79._0x3d4aaa);}function _0x3ad6e1(_0x531550,_0x507af9,_0x1e59ff,_0x4f3503){return _0x5e6a6f(_0x1e59ff,_0x507af9-_0x41ccb4._0x6e6c95,_0x4f3503-0x2f4,_0x4f3503-0x1a3);}return{...structuredClone(_0x5c7b0b),..._0x5c7b0b[_0x1ceded(_0x203b4a._0x23670e,0x9,0x9b,-0x34)]===void 0x0&&this[_0x1ceded(0x108,0x126,_0x203b4a._0x1f796e,_0x203b4a._0x4eb0d8)]!==void 0x0?{'reasoning':structuredClone(this[_0x1ceded(_0x203b4a._0x4ac19e,_0x203b4a._0x385a61,_0x203b4a._0x1d1410,0x170)])}:{}};}async[_0x2088d4(0x146,0xf2,0xf4,0x150)](_0x5e1d9b,_0x299124,_0x3bbfca,_0x5eeafd={},_0x29f35e=!![]){const _0x1bc8a4={_0x9aaaa6:0x4e5,_0x18e6d4:0x49a,_0x1af44b:0x6a1,_0x1ccde0:0x6c,_0x5f49ee:0x30,_0x759bce:0x4b1,_0xf03390:0x4df,_0x304d12:0x542,_0x44e296:0x4a4,_0x28f3ff:0x33,_0xd76c7f:0x2e,_0x548ca0:0x676,_0x1daddd:0x743,_0x278420:0x679,_0x458601:0x654,_0x23c166:0x4d3,_0x15b330:0x6d,_0x529a29:0x599,_0x5d6fdd:0x500,_0x16b9dd:0x5cf,_0x11ff87:0x6f5,_0x1e78d3:0x4bd,_0x32b09e:0x54f,_0xf6d76d:0x57c,_0x3240b0:0x673,_0x1d5630:0x4e2,_0xa01f42:0x513,_0x40af5c:0x606,_0x50caec:0x613,_0x9987e8:0xda,_0x1ec18e:0x7f,_0x34495e:0x36,_0x5e8692:0x1fa,_0x520497:0x1a3,_0x471f18:0x122,_0x21c034:0x9},{signal:_0x5a2c70}=_0x5eeafd,_0x3ba147=async()=>{const _0x4b8dcb=await this[_0x1a5486(_0x1bc8a4._0x9aaaa6,_0x1bc8a4._0x18e6d4,0x417,0x593)](_0x5e1d9b,_0x5a2c70);let _0x442c80;try{_0x442c80=_0x299124[_0x1a5486(0x5d6,0x642,0x571,_0x1bc8a4._0x1af44b)](_0x4b8dcb['request']);}catch(_0x5740d5){if(_0x5740d5 instanceof Error)throw new ProviderRequestConstructionError(_0x5740d5[_0x1c0267(-_0x1bc8a4._0x1ccde0,-_0x1bc8a4._0x5f49ee,-0x40,-0xe3)]);throw _0x5740d5;}function _0x1a5486(_0x511d03,_0x451670,_0x1c5ab0,_0x3037f5){return _0x7447(_0x511d03-0x318,_0x3037f5);}if(!_0x442c80[_0x1a5486(0x57d,_0x1bc8a4._0x759bce,0x653,_0x1bc8a4._0xf03390)])throw new ProviderRequestConstructionError(_0x1a5486(_0x1bc8a4._0x304d12,0x4f2,_0x1bc8a4._0x44e296,0x5ee)+_0x299124['id']+'\x20did\x20not\x20provide\x20an\x20HTTP\x20path');const _0x140af4=await this['createHeaders']({'request':_0x4b8dcb[_0x1c0267(_0x1bc8a4._0x28f3ff,0xb9,0xa,-_0x1bc8a4._0xd76c7f)],'body':_0x442c80[_0x1a5486(_0x1bc8a4._0x548ca0,_0x1bc8a4._0x1daddd,0x701,_0x1bc8a4._0x278420)],'credential':_0x4b8dcb['credential'],'session':_0x4b8dcb['session'],'stream':_0x3bbfca},{'accept':_0x442c80[_0x1a5486(0x588,_0x1bc8a4._0x458601,_0x1bc8a4._0x23c166,0x5e6)]??(_0x3bbfca?_0x1c0267(-_0x1bc8a4._0x15b330,-0xcd,-0x99,-0x70):_0x1a5486(_0x1bc8a4._0x529a29,_0x1bc8a4._0x5d6fdd,0x4e7,_0x1bc8a4._0x16b9dd)),'includeContentType':_0x442c80[_0x1a5486(0x676,_0x1bc8a4._0x11ff87,0x5c0,0x733)]!==void 0x0});function _0x1c0267(_0x4c0ecb,_0x365714,_0x4389eb,_0x171e49){return _0x7447(_0x171e49- -0x394,_0x4c0ecb);}for(const [_0xe6dc46,_0x444916]of Object[_0x1a5486(0x519,0x57e,_0x1bc8a4._0x1e78d3,_0x1bc8a4._0x32b09e)](_0x442c80['headers']??{})){_0x140af4[_0x1a5486(0x5a3,_0x1bc8a4._0xf6d76d,0x666,_0x1bc8a4._0x3240b0)](_0xe6dc46,_0x444916);}return this['fetchImpl'](''+_0x4b8dcb[_0x1a5486(_0x1bc8a4._0x1d5630,_0x1bc8a4._0xa01f42,0x538,0x48b)]+_0x442c80[_0x1a5486(0x57d,_0x1bc8a4._0x40af5c,_0x1bc8a4._0x50caec,0x5c4)],{'method':'POST','headers':_0x140af4,..._0x442c80[_0x1c0267(-_0x1bc8a4._0x9987e8,0x61,_0x1bc8a4._0x1ec18e,-_0x1bc8a4._0x34495e)]!==void 0x0?{'body':JSON[_0x1c0267(-0x123,-0x105,-_0x1bc8a4._0x5e8692,-_0x1bc8a4._0x520497)](_0x442c80[_0x1c0267(-0x2b,-_0x1bc8a4._0x471f18,_0x1bc8a4._0x21c034,-0x36)])}:{},'signal':_0x5a2c70});};return _0x29f35e?await this['sendWithRetries'](_0x3ba147,_0x5eeafd):await _0x3ba147();}async*[_0x5e6a6f(-0x51,-0x17d,-0xdd,-0x195)](_0x88be83,_0x4567fe,_0x549721={}){const _0x144215={_0x343084:0x2a,_0x35a322:0x66,_0x5b9a5e:0xda,_0x1ce567:0x37e,_0x1bec6c:0x2c0,_0x2759bf:0x35,_0x4dec43:0x9d,_0x3fdcd5:0x34c,_0x2d42d0:0x48,_0x5bfe00:0x37,_0x47d7b5:0x2,_0x2f4995:0x2cf,_0x5a205f:0x42f,_0x56befb:0x359,_0x3f5cb9:0x475,_0x1ceaad:0x4e2,_0x478024:0x4bb,_0x308861:0x9c,_0x4025ca:0x3,_0x56e9e7:0x428,_0x3492b1:0x49b,_0x27b166:0x147,_0x29ae7d:0x494,_0xa87144:0x4b6,_0x52a550:0x38c,_0x54ca4f:0x1c2,_0x3e7c58:0x2e,_0x1fd0f2:0x37,_0x4a1fae:0x8b,_0x156923:0x37c,_0x1cc3b6:0x276,_0x377905:0x353,_0x3db5e3:0x129,_0x413498:0x9a,_0x1094cd:0x392,_0x21f76d:0x16a,_0x5a0654:0x1ac,_0x358ba9:0x2e0,_0x42e3e4:0x298,_0x8b43e2:0x337,_0x129b3e:0xd5},_0x32cd08={_0x3ea5de:0x1ce},{signal:_0xed37bc}=_0x549721;function _0x3a7a81(_0x371e31,_0x29795f,_0x5cc9ea,_0x5235b4){return _0x2088d4(_0x371e31-0x1ac,_0x29795f-0xd3,_0x29795f,_0x5235b4-0x26a);}function _0x5cff36(_0x36a1fb,_0x52cf90,_0x13ca91,_0x2b33bc){return _0x5e6a6f(_0x36a1fb,_0x52cf90-_0x32cd08._0x3ea5de,_0x2b33bc-0x1f8,_0x2b33bc-0x54);}let _0x5efd22=![];for(let _0x538a04=0x0;_0x538a04<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x538a04+=0x1){let _0x4645a8=![];try{const _0x457427=await this[_0x5cff36(_0x144215._0x343084,-_0x144215._0x35a322,_0x144215._0x5b9a5e,0x80)](_0x88be83,_0x4567fe,!![],_0x549721,![]);if(_0x457427[_0x3a7a81(_0x144215._0x1ce567,0x269,_0x144215._0x1bec6c,0x337)]===0x191&&this[_0x5cff36(-0x45,0x164,-_0x144215._0x2759bf,_0x144215._0x4dec43)]&&!_0x5efd22){_0x5efd22=!![],this['sessionManager'][_0x3a7a81(0x429,0x383,_0x144215._0x3fdcd5,0x35d)]();continue;}if(!_0x457427['ok']){const _0x5bdfdd=await this['toApiError'](_0x457427);if(!this[_0x5cff36(-_0x144215._0x2d42d0,_0x144215._0x5bfe00,_0x144215._0x47d7b5,-0x1b)](_0x457427)||_0x538a04===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x5bdfdd;const _0x16c389=this[_0x3a7a81(0x3e7,_0x144215._0x2f4995,_0x144215._0x5a205f,_0x144215._0x56befb)](_0x457427,_0x538a04),_0x2d730e={'type':_0x3a7a81(0x541,0x398,0x3cc,_0x144215._0x3f5cb9),'attempt':_0x538a04+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x5bdfdd['message'],'delayMs':_0x16c389,'reason':_0x3a7a81(0x4f5,0x429,_0x144215._0x1ceaad,_0x144215._0x478024),'status':_0x457427[_0x5cff36(-_0x144215._0x308861,-0x94,0x72,-_0x144215._0x4025ca)]};yield _0x2d730e,await this[_0x3a7a81(_0x144215._0x56e9e7,0x50b,0x545,_0x144215._0x3492b1)](_0x16c389,_0xed37bc);continue;}const _0xeb3a81=_0x4567fe[_0x5cff36(0x176,_0x144215._0x27b166,0xaa,0xc1)]?.(_0x88be83);if(!_0xeb3a81?.[_0x3a7a81(0x4fb,_0x144215._0x29ae7d,_0x144215._0xa87144,0x478)])throw new Error(_0x3a7a81(0x360,_0x144215._0x52a550,0x394,0x378)+_0x4567fe['id']+_0x5cff36(0x81,_0x144215._0x54ca4f,_0x144215._0x3e7c58,0xe5));for await(const _0x5ef17a of iterateSseEvents(_0x457427,_0xed37bc)){const _0x1302e1=_0xeb3a81['consumeSseEvent'](_0x5ef17a);for(const _0x6eae7a of _0x1302e1){_0x4645a8=!![],yield _0x6eae7a;}}yield{'type':_0x5cff36(_0x144215._0x1fd0f2,-0xc,-_0x144215._0x4a1fae,0x4),'response':_0xeb3a81[_0x3a7a81(_0x144215._0x156923,_0x144215._0x1cc3b6,0x33f,_0x144215._0x377905)]()};return;}catch(_0x10d7be){if(_0x4645a8||!this[_0x5cff36(_0x144215._0x3db5e3,0xb5,0xf6,_0x144215._0x413498)](_0x10d7be)||_0x538a04===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x10d7be;const _0x32f44b=this[_0x3a7a81(_0x144215._0x1094cd,0x3e2,0x299,_0x144215._0x56befb)](void 0x0,_0x538a04),_0x530d29={'type':_0x5cff36(_0x144215._0x21f76d,_0x144215._0x5a0654,0x225,0x13b),'attempt':_0x538a04+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x10d7be instanceof Error?_0x10d7be['message']:String(_0x10d7be),'delayMs':_0x32f44b,'reason':this['shouldRetryRequestError'](_0x10d7be)?_0x3a7a81(_0x144215._0x358ba9,_0x144215._0x42e3e4,_0x144215._0x8b43e2,0x370):_0x5cff36(0x29,0x9b,_0x144215._0x129b3e,0x4c)};yield _0x530d29,await this['waitForRetry'](_0x32f44b,_0xed37bc);}}}async*[_0x2088d4(0x253,0x1af,0x1ba,0x1c7)](_0x40c8da,_0x33d00d,_0x3db5ac){const _0xfc641={_0x147cb9:0x10b,_0x3bd72e:0x26,_0x5714f2:0x64,_0x22defc:0x1e,_0xda4dc2:0x9b,_0x24d307:0x194,_0x6c6143:0x172,_0x24c1b5:0xe4,_0x3a0e46:0x12f,_0x30bd55:0x3c,_0x423055:0xd9,_0x5a477c:0x110,_0x391cc4:0x3e,_0x1d1f8e:0x45,_0x9584c:0x149,_0x3de37c:0x1c9,_0x26281e:0x4d,_0x27bb99:0x101,_0x39e671:0x169,_0x1cad29:0xf5,_0x29513e:0x18,_0x375171:0x104,_0x5f45bb:0x1cb,_0x514c1e:0x238,_0x24f7c5:0x244,_0x475ec6:0x108,_0x4941a9:0x96,_0x1cef07:0x8d,_0x319524:0x114,_0x7138d2:0x19f,_0xc65bb8:0x75,_0x3bdaf3:0xa2,_0x55e202:0x35,_0x546a01:0x39,_0x3f8d3b:0x7c,_0x486983:0xe1,_0x4c6c6c:0x3b,_0x580fea:0x2,_0x237eb1:0x10,_0x36cb85:0x93,_0x478803:0xed,_0x4d45c6:0x7b,_0x319502:0x66,_0x33fc98:0xa,_0x6a0d42:0xd4,_0x854520:0x15,_0x4bdf80:0x65,_0x516a46:0x105,_0x38dc6c:0x1fd,_0xcc66c:0x1c3,_0x59d715:0x154,_0x4c6e2f:0x66,_0x3af15a:0x13a,_0x159014:0xa5,_0x27ad1a:0x154,_0x167ffe:0xf9,_0x3a5212:0x1df,_0x2f5eb9:0x1a1,_0x1e8181:0x91,_0x650598:0x179,_0x3cf0d2:0xf8,_0x123b43:0xb9,_0x202ac5:0x3f,_0xfb5f11:0x65,_0xd64e1b:0x71},_0x32edd0={_0x5d18ed:0x23d},_0x33a998={_0x12e6b8:0x1cd},_0x3efc7d=await this[_0x16ef6c(-0xbf,-0x107,-_0xfc641._0x147cb9,-0x18c)](_0x40c8da,_0x3db5ac);function _0x19aaf(_0x544d0b,_0x3f70cd,_0x16a8ea,_0x4189d4){return _0x2088d4(_0x544d0b-0x75,_0x3f70cd-_0x33a998._0x12e6b8,_0x4189d4,_0x3f70cd- -0x70);}const _0x4c2108=_0x33d00d[_0x16ef6c(-_0xfc641._0x3bd72e,-_0xfc641._0x5714f2,_0xfc641._0x22defc,-_0xfc641._0xda4dc2)](_0x3efc7d['request']),_0x200e46=_0x33d00d['createStreamParser']?.(_0x40c8da);if(!_0x200e46?.[_0x16ef6c(-0x201,-0x214,-0x1ca,-_0xfc641._0x24d307)])throw new Error(_0x16ef6c(-0x138,-_0xfc641._0x6c6143,-_0xfc641._0x24c1b5,-_0xfc641._0x3a0e46)+_0x33d00d['id']+_0x16ef6c(-0x82,-_0xfc641._0x30bd55,0x5b,-0x84));const _0x554608=_0x4c2108['url']??(_0x4c2108[_0x19aaf(0x39,_0xfc641._0x423055,_0xfc641._0x5a477c,0xc1)]?(''+_0x3efc7d[_0x19aaf(-0xa5,_0xfc641._0x391cc4,_0xfc641._0x1d1f8e,-0x7)]+_0x4c2108['path'])[_0x19aaf(_0xfc641._0x9584c,0x18b,_0xfc641._0x3de37c,0x193)](/^http:/,_0x19aaf(_0xfc641._0x26281e,0x12b,_0xfc641._0x27bb99,0x1a9))['replace'](/^https:/,'wss:'):void 0x0);if(!_0x554608)throw new ProviderRequestConstructionError(_0x16ef6c(-0x17f,-0x40,-_0xfc641._0x39e671,-_0xfc641._0x3a0e46)+_0x33d00d['id']+_0x16ef6c(-_0xfc641._0x1cad29,-_0xfc641._0x29513e,-0x14e,-_0xfc641._0x375171));const _0x5d7f04=await this[_0x19aaf(0x18f,0x147,_0xfc641._0x5f45bb,0x80)]({'request':_0x3efc7d[_0x19aaf(0xf6,0x1da,0x262,_0xfc641._0x514c1e)],'body':_0x4c2108[_0x19aaf(0x247,0x1d7,_0xfc641._0x24f7c5,_0xfc641._0x475ec6)],'credential':_0x3efc7d[_0x19aaf(0x76,0x57,-_0xfc641._0x4941a9,-0x6c)],'session':_0x3efc7d[_0x19aaf(-0x47,0x28,-_0xfc641._0x1cef07,0x11)],'stream':!![]},{'accept':_0x4c2108[_0x19aaf(0xdd,_0xfc641._0x24c1b5,0x1a5,0x70)]??_0x19aaf(_0xfc641._0x319524,0xf5,_0xfc641._0x7138d2,0x1da),'includeContentType':![]});function _0x16ef6c(_0x5ee4e1,_0x295af2,_0x108566,_0x18f972){return _0x2088d4(_0x5ee4e1-0x53,_0x295af2-0xd,_0x5ee4e1,_0x18f972- -_0x32edd0._0x5d18ed);}for(const [_0x3a4759,_0x1eda82]of Object[_0x19aaf(0x71,_0xfc641._0xc65bb8,0xc6,_0xfc641._0x3bdaf3)](_0x4c2108[_0x16ef6c(-0xd6,_0xfc641._0x55e202,-_0xfc641._0x546a01,-_0xfc641._0x1cef07)]??{})){_0x5d7f04[_0x16ef6c(-_0xfc641._0x3f8d3b,-0x66,-_0xfc641._0x55e202,-0xce)](_0x3a4759,_0x1eda82);}_0x5d7f04[_0x16ef6c(-0xbb,-0x105,-0x99,-_0xfc641._0x486983)](_0x19aaf(_0xfc641._0x4c6c6c,_0xfc641._0x24c1b5,0x35,-_0xfc641._0x580fea));const _0x576d03=this[_0x16ef6c(0x2,_0xfc641._0x237eb1,-_0xfc641._0x36cb85,0x12)]({'headers':Object['fromEntries'](_0x5d7f04[_0x19aaf(0xe8,0x75,0x7b,0x50)]()),'url':_0x554608});try{throwIfAborted(_0x3db5ac);_0x576d03['readyState']!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x576d03,_0x3db5ac);throwIfAborted(_0x3db5ac);_0x4c2108[_0x16ef6c(_0xfc641._0x478803,-_0xfc641._0x4d45c6,_0xfc641._0x319502,_0xfc641._0x33fc98)]!==void 0x0&&_0x576d03[_0x16ef6c(0x72,-0x13,_0xfc641._0x6a0d42,-_0xfc641._0x854520)](JSON[_0x19aaf(0x2c,_0xfc641._0x4bdf80,-_0xfc641._0x30bd55,_0xfc641._0x516a46)](_0x4c2108['initialEvent']));for await(const _0x40cd31 of iterateWebSocketMessages(_0x576d03,_0x3db5ac)){yield*_0x200e46[_0x16ef6c(-_0xfc641._0x38dc6c,-0x252,-_0xfc641._0xcc66c,-0x194)](_0x40cd31);if(_0x200e46[_0x19aaf(0x180,_0xfc641._0x59d715,_0xfc641._0x4c6e2f,0x21c)]?.())break;}yield{'type':'done','response':_0x200e46[_0x16ef6c(-_0xfc641._0x3af15a,-0x1bf,-_0xfc641._0x159014,-_0xfc641._0x27ad1a)]()};}finally{_0x576d03[_0x16ef6c(-_0xfc641._0x167ffe,-0x123,-_0xfc641._0x3a5212,-_0xfc641._0x2f5eb9)]===WebSocket[_0x19aaf(_0xfc641._0x3de37c,0x143,_0xfc641._0x1e8181,0x172)]&&_0x576d03[_0x16ef6c(-_0xfc641._0x650598,-0x1a,-_0xfc641._0x3cf0d2,-_0xfc641._0x123b43)](0x3e8,_0x3db5ac?.[_0x16ef6c(-0x4f,-0x73,-0x9c,-0x71)]?_0x16ef6c(-_0xfc641._0x202ac5,_0xfc641._0xfb5f11,-0x12b,-_0xfc641._0xd64e1b):_0x19aaf(_0xfc641._0x1e8181,0xef,0x52,0x13));}}};async function createHttpError(_0x1b0ef4){const _0x5e12e4={_0x30f71c:0x81,_0x3c365c:0x75,_0x543d71:0x10f,_0x35f1e3:0xbd,_0x508b5e:0x1fc,_0x51c525:0x162,_0x329859:0x27d,_0x1a7d58:0x206,_0x39db9d:0x11d},_0x5820d6={_0x31b55c:0x13a,_0x11881c:0x3b,_0x1685db:0x25},_0x522bb6={_0x294257:0x8e};function _0x5de924(_0x2e00d9,_0xa4950f,_0x56dec4,_0x5342e7){return _0x5e6a6f(_0x5342e7,_0xa4950f-_0x522bb6._0x294257,_0xa4950f-0x19a,_0x5342e7-0x1a6);}function _0x2950dd(_0x12e1c6,_0x3ac826,_0x239f83,_0x5998a7){return _0x5e6a6f(_0x239f83,_0x3ac826-_0x5820d6._0x31b55c,_0x3ac826-_0x5820d6._0x11881c,_0x5998a7-_0x5820d6._0x1685db);}const _0x498395=await _0x1b0ef4[_0x5de924(-0x5d,_0x5e12e4._0x30f71c,0x91,_0x5e12e4._0x3c365c)](),_0x17cd96=_0x498395[_0x2950dd(-_0x5e12e4._0x543d71,-0x186,-0x264,-_0x5e12e4._0x35f1e3)]()||_0x1b0ef4['statusText']||_0x2950dd(-0x1e1,-_0x5e12e4._0x508b5e,-_0x5e12e4._0x51c525,-0x1f0);return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x1b0ef4[_0x2950dd(-_0x5e12e4._0x329859,-0x1c0,-_0x5e12e4._0x1a7d58,-_0x5e12e4._0x39db9d)]+':\x20'+_0x17cd96);}var AnthropicProviderAdapter=class{['authScheme'];[_0x5e6a6f(-0x171,-0x1bd,-0x143,-0x1ad)];['protocolVersion'];constructor(_0x47b05f){const _0x57f517={_0x4fec6a:0x471,_0x5c17e5:0x39b,_0x1a2f8f:0x363,_0x51b191:0x3d9,_0x5bacdc:0x375,_0x573648:0x3d9,_0x42380f:0x22c},_0x3767ec={_0x51ba19:0x1b2},_0x3b3cac={_0x318f6a:0x18f,_0x7fba55:0x254};function _0x1ce415(_0x2e640d,_0x2a681f,_0x47c539,_0x5d53d6){return _0x2088d4(_0x2e640d-0x138,_0x2a681f-_0x3b3cac._0x318f6a,_0x5d53d6,_0x47c539-_0x3b3cac._0x7fba55);}this[_0x1ce415(_0x57f517._0x4fec6a,0x2c8,_0x57f517._0x5c17e5,0x3b9)]=_0x47b05f['authScheme'],this[_0x1ce415(0x36f,_0x57f517._0x1a2f8f,_0x57f517._0x51b191,0x453)]=_0x47b05f[_0x1ce415(0x3a0,_0x57f517._0x5bacdc,_0x57f517._0x573648,0x478)];function _0x201b72(_0x178da3,_0x4a48cd,_0x489fd4,_0x82b27d){return _0x2088d4(_0x178da3-_0x3767ec._0x51ba19,_0x4a48cd-0x1d5,_0x489fd4,_0x178da3- -0x27a);}this['protocolVersion']=_0x47b05f[_0x1ce415(0x24f,0x37c,0x2cd,_0x57f517._0x42380f)];}[_0x2088d4(0x236,0x180,0x1ee,0x1f0)](){return new Error('AnthropicModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x5e6a6f(-0x144,-0x1fa,-0x111,-0x40)](_0x27ed77,_0x332310){const _0x38a033={_0x3ab13e:0x1e1,_0x1c4f8f:0x218,_0x35ce88:0x2a8,_0x168bf5:0x119,_0x466d2b:0x5b,_0x2a5cc0:0x40,_0x9e7dbe:0x25c,_0x1d7281:0x21c,_0x5d83e9:0x331,_0x59434b:0xeb,_0xe72e0c:0x121,_0x439c5b:0x247,_0x20742b:0x15e,_0x47d5a3:0x16c,_0xc7d7d4:0x3d,_0xddfeb2:0x21e,_0xbd3e6e:0x1e1,_0x30d246:0x12c,_0x585673:0x62,_0x4131af:0x75,_0x45aa90:0xf,_0x7e5895:0x1cc,_0x11e01b:0x1ba,_0x44fed2:0x12e,_0xaaa92a:0x336,_0x2f9288:0x139,_0x3d2af4:0xea,_0x2312aa:0x1e8,_0x1e3bdb:0x12b,_0x225489:0x65,_0x27ad49:0x9a,_0x11e397:0x1d5,_0x5dbe8b:0x13a,_0x455ead:0x161,_0x47b885:0x2d,_0x5ca836:0x117,_0x298ac1:0x60,_0x39527f:0x55,_0x581bae:0xb2,_0x162ad0:0x157,_0x5d01b4:0x213,_0x225152:0x7e},_0x5d850d={_0xfb3b1b:0xb2},_0x46b99f=new Headers();function _0x61462a(_0x12d841,_0x469fc8,_0x18b827,_0x43ea6a){return _0x2088d4(_0x12d841-0xba,_0x469fc8-0x2,_0x469fc8,_0x12d841-0x72);}_0x46b99f[_0x61462a(_0x38a033._0x3ab13e,_0x38a033._0x1c4f8f,_0x38a033._0x35ce88,0x15c)](_0x3f2a22(-0xd3,-_0x38a033._0x168bf5,0x13,-_0x38a033._0x466d2b),_0x332310['accept']),_0x46b99f[_0x3f2a22(0x16,-0x3f,-0x7a,-_0x38a033._0x2a5cc0)](_0x61462a(_0x38a033._0x9e7dbe,_0x38a033._0x1d7281,_0x38a033._0x5d83e9,0x1fd),this[_0x61462a(_0x38a033._0x59434b,0xc6,0x5,_0x38a033._0xe72e0c)]);_0x332310[_0x61462a(_0x38a033._0x439c5b,_0x38a033._0x20742b,0x235,_0x38a033._0x47d5a3)]!==![]&&_0x46b99f['set'](_0x3f2a22(0x121,-0x24,0xec,0x84),_0x3f2a22(0x70,-0x115,-_0x38a033._0xc7d7d4,-0x4a));this[_0x61462a(0x1b9,0x226,0x194,_0x38a033._0xddfeb2)]==='bearer'?_0x46b99f[_0x61462a(_0x38a033._0xbd3e6e,_0x38a033._0x30d246,0x1dd,0x11f)]('authorization',_0x3f2a22(_0x38a033._0x585673,_0x38a033._0x4131af,-0x91,_0x38a033._0x45aa90)+_0x27ed77[_0x61462a(0x139,_0x38a033._0x7e5895,_0x38a033._0x11e01b,0x115)][_0x61462a(0xf6,_0x38a033._0x44fed2,0x125,0x116)]):_0x46b99f[_0x61462a(0x1e1,0x23b,0x295,0x16e)](_0x61462a(0x269,0x357,0x1c0,_0x38a033._0xaaa92a),_0x27ed77[_0x61462a(_0x38a033._0x2f9288,0x1a9,0x207,0x1e9)][_0x3f2a22(-_0x38a033._0x3d2af4,-0xf4,-_0x38a033._0x2312aa,-_0x38a033._0x1e3bdb)]);const _0x3b53b1=await this[_0x3f2a22(-_0x38a033._0x225489,-_0x38a033._0x27ad49,-0xa8,-0x2a)]?.({'body':_0x27ed77[_0x61462a(0x2b4,0x34c,0x2b0,0x31a)],'credential':_0x27ed77[_0x61462a(0x139,_0x38a033._0x11e397,_0x38a033._0x5dbe8b,_0x38a033._0x455ead)],'request':_0x27ed77['request'],'session':_0x27ed77[_0x3f2a22(-0x36,-0x16e,-_0x38a033._0x47b885,-_0x38a033._0x5ca836)],'stream':_0x27ed77[_0x3f2a22(-_0x38a033._0x298ac1,-0x7c,-_0x38a033._0x39527f,-_0x38a033._0x581bae)]});for(const [_0x5358c0,_0x53b0b7]of Object[_0x61462a(_0x38a033._0x162ad0,0xc7,_0x38a033._0x5d01b4,0x8a)](_0x3b53b1??{})){_0x46b99f[_0x3f2a22(_0x38a033._0x225152,-0x116,-0xd6,-0x40)](_0x5358c0,_0x53b0b7);}function _0x3f2a22(_0x220614,_0x21c3ea,_0x49d8a8,_0x4dccb9){return _0x2088d4(_0x220614-_0x5d850d._0xfb3b1b,_0x21c3ea-0x7c,_0x49d8a8,_0x4dccb9- -0x1af);}return _0x46b99f;}['mapApiError'](_0x327889){return _0x327889;}[_0x5e6a6f(-0x8d,-0x64,-0x107,-0x1f5)](_0x535b36,_0x189727){return resolveSessionBaseUrl(_0x535b36,_0x189727);}[_0x2088d4(0x1ad,0x13d,0x1b3,0x1bd)](_0x9189ae,_0x4c6ff0){return resolveApiCredential(_0x9189ae,_0x4c6ff0);}async['toApiError'](_0x51ae11){return await createHttpError(_0x51ae11);}},AnthropicModel=class extends RoutedModel{constructor(_0x2eb149={}){const _0x4d7c2d={_0x47d7e3:0x29f,_0x429d2d:0x244,_0x216725:0x11e,_0x5b4ef7:0xbb,_0x24dfdb:0xa9,_0x11786f:0xda,_0x5250a0:0xbe,_0xeddaf5:0x115,_0x22bbaa:0x2c,_0x5bd55b:0xc,_0x3adce7:0x36,_0x8dd289:0xcf,_0x3a9079:0x16a,_0x4c0e52:0xfd,_0x36ad23:0x1ee,_0x43a337:0x2cb,_0x182aaa:0x1e8,_0x4bf2fd:0xe7,_0x59999d:0x1b7,_0x2c74d5:0x1f3,_0x1b9059:0x25,_0x2d7af6:0x39b,_0x5e22ef:0x2bf,_0x221acf:0x32f,_0x3bf735:0x196,_0x380f1c:0x18b},_0x417174={_0x11b418:0x1db};function _0x2776a0(_0x438c52,_0x3b8dd9,_0x4ed403,_0x369a87){return _0x2088d4(_0x438c52-_0x417174._0x11b418,_0x3b8dd9-0x3e,_0x3b8dd9,_0x4ed403-0x70);}function _0x560bd0(_0x557aed,_0x39aada,_0x88f2b1,_0x4cbe24){return _0x2088d4(_0x557aed-0x193,_0x39aada-0x1a5,_0x557aed,_0x4cbe24- -0x1c2);}super({'apiKey':_0x2eb149[_0x2776a0(0x1ef,0x266,_0x4d7c2d._0x47d7e3,_0x4d7c2d._0x429d2d)],'baseUrl':trimTrailingSlashes(_0x2eb149[_0x2776a0(0x4b,0x1b5,_0x4d7c2d._0x216725,_0x4d7c2d._0x5b4ef7)]??'https://api.anthropic.com'),'fetch':_0x2eb149[_0x560bd0(-_0x4d7c2d._0x24dfdb,0xb,_0x4d7c2d._0x11786f,0x8)],..._0x2eb149[_0x560bd0(-_0x4d7c2d._0x5250a0,0xd,_0x4d7c2d._0xeddaf5,_0x4d7c2d._0x22bbaa)]!==void 0x0?{'maxTokens':_0x2eb149['maxTokens']}:{},'model':_0x2eb149[_0x560bd0(-0xb2,_0x4d7c2d._0x5bd55b,_0x4d7c2d._0x3adce7,0x6)]??_0x560bd0(-_0x4d7c2d._0x3adce7,-_0x4d7c2d._0x8dd289,-_0x4d7c2d._0x3a9079,-_0x4d7c2d._0x4c0e52),'modelIdentity':_0x2eb149[_0x2776a0(0x251,_0x4d7c2d._0x36ad23,0x2bd,_0x4d7c2d._0x43a337)],'reasoning':_0x2eb149[_0x2776a0(0x266,0x1eb,_0x4d7c2d._0x182aaa,0x1d2)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x2eb149[_0x2776a0(_0x4d7c2d._0x4bf2fd,0x22e,_0x4d7c2d._0x59999d,_0x4d7c2d._0x2c74d5)]??_0x560bd0(-_0x4d7c2d._0x1b9059,-0x59,-0x4d,0x35),'headerResolver':_0x2eb149['headerResolver'],'protocolVersion':_0x2eb149['protocolVersion']??_0x2776a0(_0x4d7c2d._0x2d7af6,_0x4d7c2d._0x5e22ef,0x2be,0x2da)}),'providerSessionResolver':_0x2eb149['providerSessionResolver'],'requestMutators':_0x2eb149[_0x2776a0(_0x4d7c2d._0x221acf,_0x4d7c2d._0x3bf735,0x252,_0x4d7c2d._0x380f1c)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}['complete'](_0x272bbf,_0x902033){const _0x48c18d={_0x50cfcf:0x1ef},_0x2eaf05={_0x443c6d:0x1d5};function _0x325cd7(_0x502088,_0x584dca,_0xcff8e3,_0x476d3e){return _0x2088d4(_0x502088-0x13c,_0x584dca-_0x2eaf05._0x443c6d,_0xcff8e3,_0x584dca- -0x1ee);}return this[_0x325cd7(-0x1b1,-0x104,-0x1f,-_0x48c18d._0x50cfcf)](_0x272bbf,ANTHROPIC_MESSAGES_SURFACE,_0x902033);}[_0x5e6a6f(-0x2aa,-0x27e,-0x1cb,-0x17c)](_0x2832d9,_0x22ed0f){return this['streamViaSurface'](_0x2832d9,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x22ed0f);}},model_registry_default={'defaultModel':_0x5e6a6f(-0x199,-0x1e8,-0x12c,-0xd7),'cliDefaultModel':_0x5e6a6f(-0x321,-0x166,-0x235,-0x1b3),'providers':{'anthropic':{'label':_0x5e6a6f(-0x1e4,-0x1fb,-0x110,-0x4d),'baseUrl':_0x2088d4(0xcb,-0x9,0x0,0xa4),'surface':_0x2088d4(-0x7,-0x8,0xc7,0x88),'authScheme':'x-api-key','defaultModel':_0x2088d4(0xba,0xbd,0xe7,0xc5),'defaultModels':[_0x5e6a6f(-0x2c7,-0x19f,-0x203,-0x2eb),_0x2088d4(0x22b,0x115,0x9b,0x148)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x5e6a6f(-0x100,-0x1f1,-0x1b2,-0x126),'baseUrl':_0x2088d4(0x9e,0x6e,0xb1,0x9e),'anthropicBaseUrl':'https://api.z.ai/api/anthropic','surface':_0x2088d4(0x85,0x103,0x10d,0x88),'authScheme':_0x5e6a6f(-0x139,-0x1d6,-0x124,-0x203),'defaultModel':_0x5e6a6f(-0x28f,-0x320,-0x235,-0x18e),'defaultModels':['glm-5.2',_0x2088d4(0x224,0x173,0x267,0x23f),'glm-4.7',_0x5e6a6f(-0xea,-0xb1,-0x171,-0x17b),_0x5e6a6f(-0xbc,-0x1c2,-0x116,-0x1b3)],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x20000},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x20000},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':'OpenRouter','baseUrl':_0x2088d4(0x2de,0x2de,0x14d,0x238),'surface':'openai-chat-completions','authScheme':_0x5e6a6f(-0x90,-0xe7,-0x124,-0x1ff),'defaultModel':'openai/gpt-4o','defaultModels':[_0x5e6a6f(-0x192,-0x213,-0x20c,-0x206),'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':'GitHub\x20Models\x20/\x20Copilot','surface':'openai-responses','defaultModel':_0x2088d4(0xba,0x193,0xa7,0x13c),'defaultModels':[_0x2088d4(0x1e2,0xbb,0x1e5,0x161),_0x5e6a6f(-0x104,-0x180,-0x140,-0xa2),_0x5e6a6f(-0x207,-0x18b,-0x1a7,-0xcc),_0x5e6a6f(-0x110,-0x1a9,-0x103,-0x16a),_0x5e6a6f(-0x31,-0xbb,-0x9b,0x18),'claude-sonnet-4'],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':'anthropic-messages'},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x5e6a6f(-0x17e,-0x2d7,-0x240,-0x1f2)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'grok':{'label':_0x5e6a6f(-0xa1,-0x14c,-0x105,-0x13a),'baseUrl':_0x2088d4(0x2c8,0x2eb,0x1ca,0x203),'surface':'openai-responses','authScheme':'bearer','defaultModel':_0x2088d4(0x254,0x206,0x288,0x217),'defaultModels':[_0x2088d4(0x1d7,0x15d,0x27b,0x217),'grok-build-0.1'],'supportsModelFetch':!![],'models':{'grok-4.3':{'contextWindow':0x20000,'maxOutput':0x4000},'grok-build-0.1':{'contextWindow':0x20000,'maxOutput':0x4000}}},'openai':{'label':_0x2088d4(-0x3a,0xd9,0x15c,0xa2),'baseUrl':_0x2088d4(0x171,0x182,0x14b,0x12f),'surface':_0x2088d4(0x13e,0x2f,0x41,0x102),'authScheme':_0x2088d4(0x264,0x166,0x205,0x1a4),'defaultModel':_0x5e6a6f(-0x128,-0xdf,-0x12c,-0x1c1),'defaultModels':[],'supportsModelFetch':![],'models':{}},'openai-codex':{'label':_0x2088d4(-0xb,0xc4,0xdc,0x8d),'baseUrl':'https://chatgpt.com/backend-api/codex','surface':_0x5e6a6f(-0x85,-0x1bb,-0x147,-0x105),'authScheme':_0x5e6a6f(-0x1ad,-0xc0,-0x124,-0x91),'defaultModel':_0x5e6a6f(-0x142,-0x51,-0x13e,-0x1f1),'defaultModels':[_0x2088d4(0xa3,0x101,0x276,0x18a)],'supportsModelFetch':!![],'models':{'gpt-5.4':{'contextWindow':0x42680,'maxOutput':0x1f400}}},'deepseek':{'label':_0x5e6a6f(-0x29d,-0x1c0,-0x1cc,-0x2b9),'baseUrl':_0x2088d4(-0x8,0xcf,0x121,0xd7),'surface':_0x2088d4(0xdd,0x177,0x159,0x88),'authScheme':_0x5e6a6f(-0x161,-0x189,-0x124,-0x1a7),'defaultModel':_0x5e6a6f(-0x283,-0x26d,-0x23c,-0x2ee),'defaultModels':[_0x5e6a6f(-0x16c,-0x269,-0x23c,-0x2e8),_0x5e6a6f(-0x1f6,-0x16b,-0x231,-0x2a4)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x2088d4(0x1d8,0x170,0x17f,0x236),'baseUrl':_0x5e6a6f(-0x177,-0x262,-0x251,-0x186),'surface':_0x5e6a6f(-0x214,-0x194,-0x240,-0x185),'authScheme':_0x5e6a6f(-0x1a1,-0x80,-0x124,-0x7d),'defaultModel':'MiniMax-M3','defaultModels':[_0x5e6a6f(-0x17d,-0x1c5,-0x11f,-0x1ac)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x2088d4(0x2ed,0x26f,0x1fa,0x234),'baseUrl':_0x5e6a6f(-0x77,-0x176,-0x14f,-0x11e),'modelsBaseUrl':_0x2088d4(0x123,-0x9,0x1ae,0xcc),'surface':'anthropic-messages','authScheme':_0x5e6a6f(-0xd1,0xd,-0xd1,-0xc0),'defaultModel':_0x2088d4(0x95,0xa6,0x93,0xc5),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x2088d4(-0xc,0x3c,0x6e,0xe3),'baseUrl':_0x5e6a6f(-0x94,-0x1ab,-0xfd,-0x77),'modelsBaseUrl':_0x2088d4(0x1ad,0x1aa,0x25a,0x219),'surface':'anthropic-messages','authScheme':_0x5e6a6f(-0xa,-0x183,-0xd1,-0x6b),'defaultModel':_0x2088d4(0xb5,0x1e5,0x1c6,0x108),'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(_0x472c44){const _0x5ec7af={_0x318188:0x243,_0xdbaf06:0x2bf,_0x528109:0x3e0,_0x34784d:0x45b,_0x584967:0x3b2,_0x45f3c3:0x2d7},_0xc021e9={_0x13d40d:0x97},_0x4d5735={_0x2631d2:0x7f,_0x116755:0x19d};function _0x53ad25(_0x549949,_0x576082,_0x2d9e12,_0x223cfb){return _0x2088d4(_0x549949-_0x4d5735._0x2631d2,_0x576082-0x139,_0x576082,_0x549949-_0x4d5735._0x116755);}const _0x56b7c3=_0x472c44[_0x53ad25(_0x5ec7af._0x318188,_0x5ec7af._0xdbaf06,0x328,0x283)]();function _0x322c87(_0x5aa06e,_0x53d25a,_0x24ccd6,_0x4d1997){return _0x2088d4(_0x5aa06e-_0xc021e9._0x13d40d,_0x53d25a-0x74,_0x4d1997,_0x24ccd6-0x42c);}return Object['keys'](data[_0x53ad25(_0x5ec7af._0x528109,0x3b7,_0x5ec7af._0x34784d,_0x5ec7af._0x584967)])[_0x53ad25(0x3b1,0x397,_0x5ec7af._0x45f3c3,0x2c8)](_0x321059=>_0x321059['toLowerCase']()===_0x56b7c3);}function getProviderProfile(_0x31c620){const _0x35dcf4={_0x203a1c:0x5b,_0x24bbfc:0x152,_0x463714:0x2d6,_0x2fc37a:0x26e,_0x2277b1:0x326,_0x3afef1:0x2cc,_0x4df629:0x1f4,_0x546da4:0x280,_0x5ef878:0x177,_0x144354:0x106,_0x4d472f:0x1e6,_0x3d4fcc:0x1bc,_0x811173:0x2ce,_0x2b8711:0x1b3,_0x4228f6:0x33,_0x1ec341:0xf4,_0x893255:0xdf},_0x53be05={_0x105dd2:0xd8,_0x4135e3:0x329},_0x26199e={_0x415d5d:0xfc},_0x9f4f14=findProviderKey(_0x31c620);if(!_0x9f4f14)return void 0x0;const _0x41011d=data['providers'][_0x9f4f14];function _0x69a2e(_0x3f2110,_0x325717,_0x10d70c,_0x251447){return _0x5e6a6f(_0x3f2110,_0x325717-0x51,_0x325717-_0x26199e._0x415d5d,_0x251447-0x1e5);}const _0x8d4c8b={};function _0x5def18(_0x47edab,_0x511a27,_0x1ff228,_0x3d1311){return _0x5e6a6f(_0x511a27,_0x511a27-_0x53be05._0x105dd2,_0x3d1311-_0x53be05._0x4135e3,_0x3d1311-0x146);}for(const [_0x354eb7,_0x29b1fc]of Object['entries'](_0x41011d[_0x69a2e(-_0x35dcf4._0x203a1c,-0xaa,-_0x35dcf4._0x24bbfc,-0x57)])){_0x8d4c8b[_0x354eb7]=_0x29b1fc;}return{'label':_0x41011d[_0x5def18(0x1ab,_0x35dcf4._0x463714,0x1fb,_0x35dcf4._0x2fc37a)],'baseUrl':_0x41011d[_0x5def18(0x1e0,0xeb,0xda,0x10f)],'modelsBaseUrl':_0x41011d[_0x5def18(_0x35dcf4._0x2277b1,_0x35dcf4._0x3afef1,_0x35dcf4._0x4df629,_0x35dcf4._0x546da4)],'anthropicBaseUrl':_0x41011d['anthropicBaseUrl'],'surface':_0x41011d[_0x5def18(0x1e3,_0x35dcf4._0x5ef878,0xf7,_0x35dcf4._0x144354)],'authScheme':_0x41011d[_0x5def18(0x118,0xc5,_0x35dcf4._0x4d472f,0x1a8)],'defaultModel':_0x41011d[_0x5def18(0x119,_0x35dcf4._0x3d4fcc,_0x35dcf4._0x811173,0x1f4)],'defaultModels':_0x41011d[_0x5def18(0x1b0,0xc6,0x1be,_0x35dcf4._0x2b8711)]??[],'supportsModelFetch':_0x41011d[_0x69a2e(_0x35dcf4._0x4228f6,-0x97,-_0x35dcf4._0x1ec341,-_0x35dcf4._0x893255)]??![],'models':_0x8d4c8b};}function getModelProfile(_0x13f164,_0x1d5e15){const _0x25c982={_0x2212ab:0x42a,_0x381081:0x30c},_0x1048e3={_0x401e12:0x188,_0xd41bf1:0x117};function _0x4ede3f(_0xb7546,_0x6d7cd2,_0x4080d5,_0x516fdb){return _0x2088d4(_0xb7546-_0x1048e3._0x401e12,_0x6d7cd2-_0x1048e3._0xd41bf1,_0x6d7cd2,_0x4080d5-0x2a0);}const _0x51afc9=findProviderKey(_0x13f164);if(!_0x51afc9)return void 0x0;return data['providers'][_0x51afc9][_0x4ede3f(0x490,_0x25c982._0x2212ab,0x3c2,_0x25c982._0x381081)][_0x1d5e15];}function resolveModelProfile(_0x5e37a6,_0x43db81){const _0x171281={_0x5df2a5:0x13,_0x3fefac:0xf8,_0x46421c:0x1a8,_0x525ae0:0x154,_0x401920:0x130,_0x3a5bc9:0x1b1,_0x46297c:0x162,_0x5884ae:0x1b3,_0x3c6eee:0x1ad,_0x51ef2c:0x63,_0x2036d7:0x131,_0x547afb:0xa5,_0x561be7:0x76,_0x24d320:0x104,_0x312b4a:0x129,_0x3696fe:0xfd,_0x1fb4aa:0x10,_0x238382:0xca,_0xfc831f:0x28,_0x3ae8e4:0x37,_0x29ecd3:0x90,_0x207e75:0x7b},_0x308fc0={_0x5c879b:0x132,_0x2af6d6:0x9d},_0x25cf21={_0x1e790b:0x256},_0x38eed1=findProviderKey(_0x5e37a6);function _0x1c9a79(_0x47f64e,_0x34db38,_0x1b462c,_0x3053cf){return _0x2088d4(_0x47f64e-0x1c1,_0x34db38-0x1f4,_0x3053cf,_0x47f64e- -_0x25cf21._0x1e790b);}function _0x1146b7(_0x3c584d,_0x124cdf,_0x2dcfc9,_0x4d5e07){return _0x5e6a6f(_0x3c584d,_0x124cdf-_0x308fc0._0x5c879b,_0x4d5e07-0xbf,_0x4d5e07-_0x308fc0._0x2af6d6);}if(!_0x38eed1)return void 0x0;const _0x25dfb2=data[_0x1c9a79(-_0x171281._0x5df2a5,0x1b,-0x3c,-_0x171281._0x3fefac)][_0x38eed1],_0x16746e=_0x25dfb2['models'][_0x43db81];return{'label':_0x25dfb2['label'],'baseUrl':_0x25dfb2[_0x1c9a79(-_0x171281._0x46421c,-0x27c,-_0x171281._0x525ae0,-0x269)],'modelsBaseUrl':_0x25dfb2['modelsBaseUrl'],'anthropicBaseUrl':_0x25dfb2[_0x1146b7(-0x124,-0x1b2,-0xc5,-_0x171281._0x401920)],'surface':_0x16746e?.[_0x1146b7(-0x203,-0xe4,-0x225,-0x164)]??_0x25dfb2[_0x1c9a79(-_0x171281._0x3a5bc9,-_0x171281._0x46297c,-_0x171281._0x5884ae,-_0x171281._0x3c6eee)],'authScheme':_0x25dfb2[_0x1c9a79(-0x10f,-_0x171281._0x51ef2c,-0x72,-_0x171281._0x2036d7)],'defaultModel':_0x25dfb2[_0x1146b7(-0x58,-_0x171281._0x547afb,-0xb7,-_0x171281._0x561be7)],'defaultModels':_0x25dfb2[_0x1c9a79(-_0x171281._0x24d320,-0x10d,-_0x171281._0x312b4a,-0x42)],'supportsModelFetch':_0x25dfb2['supportsModelFetch'],'contextWindow':_0x16746e?.[_0x1146b7(-_0x171281._0x3696fe,-_0x171281._0x1fb4aa,-_0x171281._0x238382,-_0x171281._0xfc831f)],'maxOutput':_0x16746e?.[_0x1146b7(-_0x171281._0x3ae8e4,-0x9c,-_0x171281._0x29ecd3,-_0x171281._0x207e75)]};}function getDefaultModel(){const _0x19eba2={_0xcc00d7:0x5bb,_0x370e0b:0x619,_0x59b2fa:0x595},_0x1a34b6={_0x2d8a09:0x1a9};function _0x5f178b(_0x28e6a8,_0x39477a,_0x1f30ae,_0x4900e3){return _0x5e6a6f(_0x39477a,_0x39477a-_0x1a34b6._0x2d8a09,_0x28e6a8-0x6f0,_0x4900e3-0x37);}return data[_0x5f178b(_0x19eba2._0xcc00d7,_0x19eba2._0x370e0b,_0x19eba2._0x59b2fa,0x67c)];}function _0x2088d4(_0x56fc87,_0x513139,_0x327983,_0x1340a0){return _0x7447(_0x1340a0- -0x11c,_0x327983);}function getCliDefaultModel(){const _0x4010d3={_0xe90212:0x386,_0xf5e72d:0x34d};function _0x2c923f(_0x46cc11,_0x540ad7,_0x228728,_0x325562){return _0x2088d4(_0x46cc11-0x1e3,_0x540ad7-0x190,_0x540ad7,_0x325562-0x172);}return data[_0x2c923f(0x3da,_0x4010d3._0xe90212,0x2cb,_0x4010d3._0xf5e72d)];}function getProviderLabel(_0x21acda){const _0x25e699={_0x52953c:0x189,_0xb132c0:0xf3,_0x4c4283:0x112},_0x521c19={_0x427c5d:0x150};function _0x17e6c7(_0x101920,_0x20b689,_0x7f0514,_0xebd9ee){return _0x2088d4(_0x101920-0x91,_0x20b689-0xcd,_0xebd9ee,_0x20b689- -_0x521c19._0x427c5d);}const _0x18d278=findProviderKey(_0x21acda);return _0x18d278?data[_0x17e6c7(_0x25e699._0x52953c,_0x25e699._0xb132c0,0xbc,_0x25e699._0x4c4283)][_0x18d278]['label']:void 0x0;}function getProviderDefaultModel(_0xb01c4b){const _0x89e6f5={_0x33fd49:0x72e,_0x2ed635:0x6b4,_0x179935:0x7ce,_0x1a2414:0x56a,_0xc9e207:0x67a,_0x522fda:0x5e3},_0x4ed973={_0x36bd2b:0x4d},_0x1e46f2={_0x4ae467:0xa2,_0x443b1e:0x7b3},_0x40edd5=findProviderKey(_0xb01c4b);function _0x5cb430(_0x2f111c,_0x309bb8,_0x3320ad,_0x3ce255){return _0x5e6a6f(_0x3ce255,_0x309bb8-_0x1e46f2._0x4ae467,_0x2f111c-_0x1e46f2._0x443b1e,_0x3ce255-0xb8);}function _0x4f74b8(_0x27f2cf,_0x37c73d,_0x1b7790,_0x51c644){return _0x5e6a6f(_0x27f2cf,_0x37c73d-0xbd,_0x51c644-0x759,_0x51c644-_0x4ed973._0x36bd2b);}if(!_0x40edd5)return void 0x0;return data[_0x5cb430(_0x89e6f5._0x33fd49,_0x89e6f5._0x2ed635,_0x89e6f5._0x179935,0x6e1)][_0x40edd5][_0x4f74b8(_0x89e6f5._0x1a2414,_0x89e6f5._0xc9e207,_0x89e6f5._0x522fda,0x624)];}function getProviderDefaultModels(_0xb16ce4){const _0x492cc6=findProviderKey(_0xb16ce4);if(!_0x492cc6)return[];return[...data['providers'][_0x492cc6]['defaultModels']??[]];}function providerSupportsModelFetch(_0x5598fb){const _0x53789c={_0x3c07bb:0x3fb,_0x41634e:0x311,_0x14c5fe:0x9c},_0x264623={_0x32dcef:0xa3},_0x16607a={_0x11ef4b:0x1a4,_0x4f16ad:0x1c6};function _0x3c7023(_0x2aff34,_0x4a4de6,_0x46c4e6,_0x25c758){return _0x2088d4(_0x2aff34-_0x16607a._0x11ef4b,_0x4a4de6-_0x16607a._0x4f16ad,_0x25c758,_0x2aff34- -0x262);}function _0x32bddd(_0x791604,_0x1c6483,_0x4f45ab,_0x2b5b12){return _0x2088d4(_0x791604-_0x264623._0x32dcef,_0x1c6483-0x146,_0x4f45ab,_0x2b5b12-0xce);}const _0x4355e0=findProviderKey(_0x5598fb);if(!_0x4355e0)return![];return data[_0x32bddd(_0x53789c._0x3c07bb,0x2c8,0x2ae,_0x53789c._0x41634e)][_0x4355e0][_0x3c7023(-0x12d,-0x13b,-_0x53789c._0x14c5fe,-0xab)]??![];}function getOnboardingProviderKeys(){const _0xc292fe={_0x41ee5f:0x4fa,_0x17a865:0x484,_0x546fe7:0x3d7,_0x328beb:0x47d},_0x4674e1={_0x3ce725:0x120},_0x4ef936={_0x3ee392:0x81,_0x325999:0x172};function _0x17f01b(_0x40bbf3,_0x19bca5,_0x5b0713,_0x359fe7){return _0x5e6a6f(_0x40bbf3,_0x19bca5-_0x4ef936._0x3ee392,_0x359fe7-0x52a,_0x359fe7-_0x4ef936._0x325999);}function _0x5b1a3a(_0x5b8533,_0x11ec83,_0x58c78b,_0x51fcf6){return _0x2088d4(_0x5b8533-_0x4674e1._0x3ce725,_0x11ec83-0x139,_0x5b8533,_0x11ec83-0x3d9);}return Object[_0x17f01b(_0xc292fe._0x41ee5f,0x4c9,0x536,_0xc292fe._0x17a865)](data[_0x17f01b(_0xc292fe._0x546fe7,_0xc292fe._0x328beb,0x430,0x4a5)]);}var OPENAI_CHAT_COMPLETIONS_SURFACE=_0x2088d4(0x126,0x122,0x5b,0x102),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x5e6a6f(-0x120,-0xf3,-0x1d2,-0x1ab),OPENAI_RESPONSES_SURFACE=_0x5e6a6f(-0x19d,-0x8a,-0x147,-0x10d),OPENAI_RESPONSES_STREAM_SURFACE=_0x2088d4(0x5e,0x1fa,0x1dd,0x12c),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x2088d4(0x19a,0x2f4,0x1bd,0x227),OpenAiApiError=class extends Error{[_0x5e6a6f(-0x2c6,-0x1a2,-0x1fb,-0x208)];['body'];constructor(_0x318a39,_0x454985,_0x3c5622){const _0x4cb037={_0x24a624:0x1e4,_0x3426eb:0x1be,_0x45fd5a:0x1fd,_0x591d55:0x5b9,_0x848e9:0x566,_0x46094d:0x4b7,_0x4ea8ea:0x636};function _0x14d3c6(_0x2281e6,_0x5295fc,_0x228c02,_0x4fa480){return _0x2088d4(_0x2281e6-0xd2,_0x5295fc-0x9a,_0x4fa480,_0x5295fc-0x324);}super(_0x3c5622);function _0xab9e54(_0x252287,_0x5812b4,_0x280169,_0x43c869){return _0x5e6a6f(_0x252287,_0x5812b4-0x112,_0x5812b4-0x302,_0x43c869-0xc0);}this[_0xab9e54(0x1e4,_0x4cb037._0x24a624,_0x4cb037._0x3426eb,_0x4cb037._0x45fd5a)]='OpenAiApiError',this['status']=_0x318a39,this[_0x14d3c6(_0x4cb037._0x591d55,_0x4cb037._0x848e9,_0x4cb037._0x46094d,_0x4cb037._0x4ea8ea)]=_0x454985;}};function stringifySystem(_0x13397b){const _0xf4f446={_0x1a9c80:0x5bb,_0x48fd0a:0x582,_0x1d123c:0x58f,_0x4a7f52:0x4f2,_0x5ce2a6:0x441,_0x3274d0:0x529},_0x5c1b17={_0x33e62a:0x3c0},_0x525736={_0x36df68:0xbd,_0x24ea54:0x67e,_0x23fbd1:0x1b9};function _0xe3d320(_0xabc2e5,_0x115bde,_0x43129e,_0xee56a1){return _0x5e6a6f(_0x43129e,_0x115bde-_0x525736._0x36df68,_0xee56a1-_0x525736._0x24ea54,_0xee56a1-_0x525736._0x23fbd1);}function _0x37f277(_0x457461,_0x321b1f,_0x16a834,_0xb48078){return _0x2088d4(_0x457461-0x117,_0x321b1f-0x19a,_0x16a834,_0x457461-_0x5c1b17._0x33e62a);}return _0x13397b[_0xe3d320(0x615,_0xf4f446._0x1a9c80,_0xf4f446._0x48fd0a,_0xf4f446._0x1d123c)](_0xae3733=>_0xae3733['text'])[_0x37f277(_0xf4f446._0x4a7f52,_0xf4f446._0x5ce2a6,_0xf4f446._0x3274d0,0x5c1)]('\x0a\x0a');}function createToolDefinitions(_0x5df453){const _0x32aae0={_0x2fd612:0x171,_0x33c35f:0x5e},_0x5d9b58={_0x1dd3cb:0x311,_0x13f50b:0x3c5,_0x50ced8:0x60,_0x53345f:0xd1,_0x39d2b9:0x18b,_0x38aea7:0x3f2,_0x26c518:0x40a},_0x204cec={_0x3e40fd:0x9,_0x310662:0xf8},_0x49b889={_0xebc0d2:0x18b},_0x24d24b={_0x49cf0b:0x123,_0x2ef7d4:0x3ee};function _0x34da0e(_0x2409bc,_0x5645d6,_0x3465bb,_0x52cf37){return _0x2088d4(_0x2409bc-0x147,_0x5645d6-_0x24d24b._0x49cf0b,_0x2409bc,_0x52cf37-_0x24d24b._0x2ef7d4);}if(_0x5df453[_0x34da0e(0x515,0x4b7,0x532,0x557)]===0x0)return void 0x0;function _0x15781e(_0x14b5bf,_0x3883c5,_0x9ccc7,_0x30c784){return _0x5e6a6f(_0x3883c5,_0x3883c5-_0x49b889._0xebc0d2,_0x14b5bf-0x44,_0x30c784-0x1b9);}return _0x5df453[_0x15781e(-0xab,-_0x32aae0._0x2fd612,-_0x32aae0._0x33c35f,-0x127)](_0x34404a=>{const _0x16357b={_0x28cee0:0x156};function _0x37eb27(_0x271aad,_0x1577bf,_0x4f22c8,_0x4b327f){return _0x34da0e(_0x4b327f,_0x1577bf-0x12a,_0x4f22c8-_0x16357b._0x28cee0,_0x271aad- -0x123);}function _0x51fe38(_0x4812d6,_0x2a6d65,_0x2464a2,_0x5df530){return _0x15781e(_0x2a6d65-_0x204cec._0x3e40fd,_0x2464a2,_0x2464a2-0x175,_0x5df530-_0x204cec._0x310662);}return{'type':_0x37eb27(0x3d4,_0x5d9b58._0x1dd3cb,0x34c,_0x5d9b58._0x13f50b),'function':{'name':_0x34404a[_0x51fe38(-_0x5d9b58._0x50ced8,-_0x5d9b58._0x53345f,-_0x5d9b58._0x39d2b9,-0x161)],'description':_0x34404a[_0x37eb27(_0x5d9b58._0x38aea7,_0x5d9b58._0x26c518,0x3f8,0x4cc)],'parameters':_0x34404a['input_schema']}};});}function isImageToolResultBlock(_0x8291ed){const _0x24fd11={_0x1847af:0x68,_0x4d551a:0x668,_0x2b7e59:0x508,_0x4fb195:0x505,_0x48addd:0x46f,_0x1fcf22:0x3bb,_0x2fb9b5:0xe0,_0x5ed923:0x179,_0x13b932:0x11e,_0x5674a6:0xb5,_0x2d384b:0x10a,_0x35b89c:0x2d,_0x2ab3e3:0x556,_0x37751b:0x5cc,_0x3562bc:0x85},_0x1ec280={_0x465665:0x1d3,_0x3e6eb0:0x103};function _0x175d14(_0x1bb3a5,_0x53d28b,_0x1a8b64,_0x390a41){return _0x5e6a6f(_0x1bb3a5,_0x53d28b-0x1cf,_0x1a8b64-0x649,_0x390a41-0xe);}if(typeof _0x8291ed!==_0x2d0f6c(-0x3c,-0x9,0x3e,0x3c)||_0x8291ed===null||Array[_0x2d0f6c(-_0x24fd11._0x1847af,0x26,-0x66,-0xfe)](_0x8291ed))return![];const _0x1487a0=_0x8291ed;function _0x2d0f6c(_0x11ce2d,_0x1fff39,_0x28d685,_0x4f6617){return _0x5e6a6f(_0x1fff39,_0x1fff39-0xa1,_0x28d685-_0x1ec280._0x465665,_0x4f6617-_0x1ec280._0x3e6eb0);}return _0x1487a0[_0x175d14(_0x24fd11._0x4d551a,0x4d0,0x580,_0x24fd11._0x2b7e59)]===_0x175d14(_0x24fd11._0x4fb195,0x50d,_0x24fd11._0x48addd,_0x24fd11._0x1fcf22)&&_0x1487a0[_0x2d0f6c(_0x24fd11._0x2fb9b5,_0x24fd11._0x5ed923,0x156,_0x24fd11._0x13b932)]?.[_0x2d0f6c(0xcf,_0x24fd11._0x5674a6,_0x24fd11._0x2d384b,_0x24fd11._0x35b89c)]==='base64'&&typeof _0x1487a0[_0x175d14(0x56a,_0x24fd11._0x2ab3e3,_0x24fd11._0x37751b,0x668)]['media_type']==='string'&&typeof _0x1487a0['source'][_0x2d0f6c(-0x64,0x124,_0x24fd11._0x3562bc,0x3e)]==='string';}function getToolResultText(_0x52be9a){const _0x541f08={_0x196131:0x152,_0x3a11c5:0x42b,_0x5e8a36:0x327,_0x37cfc7:0x2cf,_0x38b698:0x3b0,_0x4430de:0x2e,_0x4b8419:0x18e,_0x58de11:0x16c,_0x50a5ce:0x9e,_0x5e4317:0x1cf},_0x5f5611={_0x3cfea4:0xe5,_0x5eb400:0x141},_0x1a5b8c={_0x4f7edf:0x14},_0x42e071={_0x5190c5:0x3f,_0x4a39e5:0x1a4,_0x303e61:0x1e5,_0x7f840a:0x18a};if(typeof _0x52be9a===_0x3c7012(_0x541f08._0x196131,0x1b8,0x161,0x1a9))return _0x52be9a;const _0x41feac=_0x52be9a['filter'](_0x1cff55=>{const _0xb08c25={_0x2f007a:0xe0,_0x44997a:0xef};function _0x3e31e2(_0x54ee13,_0x5b6e01,_0x1c7a04,_0x2fb84a){return _0x3c7012(_0x1c7a04,_0x5b6e01-_0xb08c25._0x2f007a,_0x2fb84a- -0x14d,_0x2fb84a-_0xb08c25._0x44997a);}function _0x3e433f(_0x50872f,_0x1c8cfa,_0x212ead,_0x9810d){return _0x3c7012(_0x9810d,_0x1c8cfa-0xbe,_0x212ead-0x49,_0x9810d-0xb2);}return typeof _0x1cff55===_0x3e433f(_0x42e071._0x5190c5,0x4f,0x10e,0x39)&&_0x1cff55!==null&&_0x1cff55['type']===_0x3e433f(_0x42e071._0x4a39e5,_0x42e071._0x303e61,_0x42e071._0x7f840a,0x1a0);})[_0x5a6706(_0x541f08._0x3a11c5,_0x541f08._0x5e8a36,_0x541f08._0x37cfc7,_0x541f08._0x38b698)](_0x4a3cce=>_0x4a3cce['text'])['join']('\x0a\x0a')['trim']();function _0x3c7012(_0x3c63f2,_0x1c1ccf,_0xdfff82,_0x34d5c5){return _0x5e6a6f(_0x3c63f2,_0x1c1ccf-0x1c5,_0xdfff82-0x25a,_0x34d5c5-_0x1a5b8c._0x4f7edf);}function _0x5a6706(_0x37a861,_0x151fa8,_0x415411,_0x2a4448){return _0x5e6a6f(_0x151fa8,_0x151fa8-_0x5f5611._0x3cfea4,_0x2a4448-0x49f,_0x2a4448-_0x5f5611._0x5eb400);}return _0x41feac[_0x3c7012(_0x541f08._0x4430de,_0x541f08._0x4b8419,0xfb,_0x541f08._0x58de11)]>0x0?_0x41feac:_0x3c7012(_0x541f08._0x50a5ce,0x1c5,0x15b,_0x541f08._0x5e4317);}function getToolResultImages(_0x92a9d3){const _0xb3aab3={_0x583e13:0x43f},_0x185601={_0x2cdbec:0x91};function _0xdbc938(_0x5ac401,_0x12a654,_0x2c8041,_0x97a181){return _0x2088d4(_0x5ac401-0x151,_0x12a654-_0x185601._0x2cdbec,_0x2c8041,_0x5ac401-0x417);}return Array[_0xdbc938(0x4a6,_0xb3aab3._0x583e13,0x56a,0x4ff)](_0x92a9d3)?_0x92a9d3['filter'](isImageToolResultBlock):[];}function parseToolInput2(_0x5e1fce){const _0x3b9ca4={_0x25bfb6:0x283,_0x770af8:0x1dd,_0x2de762:0x1f1,_0x53a781:0x142},_0x3f9600={_0x1f0b23:0x15e},_0x522b0e={_0x41a063:0x12b,_0x4dbd5d:0xd8};if(_0x5e1fce[_0x117bb0(0x2aa,0x23f,0x274,0x1f5)]===0x0)return{};function _0x117bb0(_0x62c7ca,_0x1b3461,_0x20ccdf,_0x6966b){return _0x5e6a6f(_0x1b3461,_0x1b3461-_0x522b0e._0x41a063,_0x6966b-0x354,_0x6966b-_0x522b0e._0x4dbd5d);}function _0x582410(_0x273004,_0x2a41dc,_0x9d4b67,_0x340d64){return _0x5e6a6f(_0x340d64,_0x2a41dc-_0x3f9600._0x1f0b23,_0x9d4b67-0x2d3,_0x340d64-0x1e4);}try{return JSON[_0x582410(_0x3b9ca4._0x25bfb6,_0x3b9ca4._0x770af8,_0x3b9ca4._0x2de762,_0x3b9ca4._0x53a781)](_0x5e1fce);}catch{return _0x5e1fce;}}function isResponsesReasoningItem(_0x4e072d){const _0x113037={_0x17eedf:0x7c1,_0x2955b8:0x6d0,_0x3944d5:0x6e5,_0x2ee5dd:0x25d,_0x5e3f04:0x15f,_0x3de6da:0x1f5},_0x4d4f93={_0x225be9:0x194,_0x2226d7:0x4e6},_0x4637e4={_0x422439:0x2af};function _0x5e3a31(_0x445f67,_0x465550,_0x818ed6,_0x2df52e){return _0x5e6a6f(_0x2df52e,_0x465550-0x11f,_0x445f67-_0x4637e4._0x422439,_0x2df52e-0xc8);}function _0x2d61fb(_0x58b0a6,_0x410ded,_0x48232f,_0x27b0e2){return _0x2088d4(_0x58b0a6-0x1cc,_0x410ded-_0x4d4f93._0x225be9,_0x58b0a6,_0x48232f-_0x4d4f93._0x2226d7);}return typeof _0x4e072d==='object'&&_0x4e072d!==null&&_0x2d61fb(_0x113037._0x17eedf,_0x113037._0x2955b8,_0x113037._0x3944d5,0x7d2)in _0x4e072d&&_0x4e072d[_0x5e3a31(0x1e6,0x1ce,0x13b,_0x113037._0x2ee5dd)]===_0x5e3a31(_0x113037._0x5e3f04,0xeb,_0x113037._0x3de6da,0x8d);}function isResponsesMessageItem(_0x40ab4f){const _0x3eaf02={_0x2bd082:0x40f,_0x45513c:0x2ce,_0x53644c:0x34d,_0x170347:0x705,_0x60064c:0x4ca},_0x1ed388={_0x3c9abc:0x18e,_0x2bc3b4:0x0,_0x2e4839:0x441},_0x4c958b={_0x5587ab:0x132};function _0x1fbe98(_0x51d1b1,_0x1906ea,_0x11e4c5,_0x3a2781){return _0x5e6a6f(_0x3a2781,_0x1906ea-0x131,_0x51d1b1-0x531,_0x3a2781-_0x4c958b._0x5587ab);}function _0x3c4054(_0x1068db,_0x3d924b,_0x4f2485,_0x2bb50f){return _0x2088d4(_0x1068db-_0x1ed388._0x3c9abc,_0x3d924b-_0x1ed388._0x2bc3b4,_0x3d924b,_0x1068db-_0x1ed388._0x2e4839);}return typeof _0x40ab4f===_0x1fbe98(0x39c,_0x3eaf02._0x2bd082,_0x3eaf02._0x45513c,_0x3eaf02._0x53644c)&&_0x40ab4f!==null&&_0x3c4054(0x640,0x6df,_0x3eaf02._0x170347,0x67f)in _0x40ab4f&&_0x40ab4f[_0x1fbe98(0x468,0x3a4,0x3b4,_0x3eaf02._0x60064c)]==='message';}function isResponsesFunctionCallItem(_0x34a2ea){const _0x38c9b5={_0x3790a1:0x18f,_0x54f37d:0xab,_0x1e44f2:0x1c9,_0x553e96:0x26f,_0x3bc925:0x26b,_0x263679:0x206,_0x3bae5:0x2ce,_0xab3f85:0x259,_0x1a5449:0x10a,_0x1c33df:0xf9,_0x2f23fa:0xa8},_0x56af5a={_0x37cef8:0x16};function _0x154c9f(_0x176d08,_0x3507e2,_0x44c6d2,_0x18ae59){return _0x5e6a6f(_0x176d08,_0x3507e2-0xf3,_0x44c6d2-0x1cb,_0x18ae59-0x1dd);}function _0x2e5658(_0xf7f846,_0x50b683,_0x1bbc88,_0x252bd6){return _0x5e6a6f(_0xf7f846,_0x50b683-0xf0,_0x50b683-0x324,_0x252bd6-_0x56af5a._0x37cef8);}return typeof _0x34a2ea===_0x2e5658(0x15f,_0x38c9b5._0x3790a1,0x191,_0x38c9b5._0x54f37d)&&_0x34a2ea!==null&&_0x2e5658(_0x38c9b5._0x1e44f2,0x25b,_0x38c9b5._0x553e96,_0x38c9b5._0x3bc925)in _0x34a2ea&&_0x34a2ea[_0x2e5658(_0x38c9b5._0x263679,0x25b,_0x38c9b5._0x3bae5,_0x38c9b5._0xab3f85)]===_0x154c9f(0x59,_0x38c9b5._0x1a5449,_0x38c9b5._0x1c33df,_0x38c9b5._0x2f23fa);}function createContentBlocks(_0x550eb2,_0x4458fc,_0x20c23a){const _0x41da6d={_0x39660d:0x474,_0x225e34:0x4a6,_0x3e1880:0x361,_0x385be8:0x363,_0xad21b3:0x393,_0x666503:0x3fe,_0x31b47e:0x52e,_0x546127:0x436,_0x43db2e:0x3f1,_0xc50910:0x374,_0x3316d7:0x435,_0x170f89:0x550,_0x7dd36a:0x329,_0x442567:0x420,_0x1bef39:0x391,_0x3ba849:0x45b,_0x584196:0x463,_0x2cdbd0:0x432,_0x391d3d:0x43f,_0x16a2bc:0x2db,_0x1119ef:0x38f,_0x516487:0x33f,_0x20aef6:0x43f,_0x53e7a4:0x51e,_0x12ebea:0x554,_0x5950f2:0x630,_0x18052c:0x391,_0x56e56b:0x389,_0x50863e:0x453},_0x569dcd={_0x371e33:0x4,_0x23a136:0x288},_0x34ab43={_0x1cc90f:0x186,_0x481f9e:0x672,_0x488e5a:0x42};function _0x3a13d7(_0x16df57,_0xddb511,_0x1c011b,_0x165a14){return _0x5e6a6f(_0xddb511,_0xddb511-_0x34ab43._0x1cc90f,_0x16df57-_0x34ab43._0x481f9e,_0x165a14-_0x34ab43._0x488e5a);}const _0x1c88cc=[];_0x20c23a&&_0x20c23a[_0x3a13d7(0x513,0x4ef,_0x41da6d._0x39660d,_0x41da6d._0x225e34)]>0x0&&_0x1c88cc[_0x1424aa(_0x41da6d._0x3e1880,_0x41da6d._0x385be8,_0x41da6d._0xad21b3,_0x41da6d._0x666503)]({'type':_0x1424aa(0x507,0x468,0x377,_0x41da6d._0x31b47e),'summary':[],'text':_0x20c23a});_0x550eb2[_0x1424aa(_0x41da6d._0x546127,_0x41da6d._0x43db2e,_0x41da6d._0xc50910,0x408)]>0x0&&_0x1c88cc[_0x1424aa(0x336,0x363,0x295,_0x41da6d._0x3316d7)]({'type':_0x3a13d7(0x559,_0x41da6d._0x170f89,0x471,0x516),'text':_0x550eb2});function _0x1424aa(_0x4afbf2,_0x2d74ae,_0x45c9c6,_0x536066){return _0x2088d4(_0x4afbf2-0x5c,_0x2d74ae-_0x569dcd._0x371e33,_0x45c9c6,_0x2d74ae-_0x569dcd._0x23a136);}for(const _0x6ae08f of _0x4458fc){if(_0x6ae08f['id'][_0x1424aa(_0x41da6d._0x7dd36a,0x38f,0x435,0x2bb)]()[_0x3a13d7(0x513,0x55a,0x5f3,0x5c7)]===0x0||_0x6ae08f[_0x1424aa(_0x41da6d._0x442567,_0x41da6d._0x1bef39,_0x41da6d._0x3ba849,_0x41da6d._0x584196)][_0x1424aa(0x3d2,_0x41da6d._0x2cdbd0,0x43b,_0x41da6d._0x391d3d)][_0x1424aa(_0x41da6d._0x16a2bc,_0x41da6d._0x1119ef,_0x41da6d._0x516487,0x2f2)]()['length']===0x0)continue;_0x1c88cc['push']({'type':_0x3a13d7(_0x41da6d._0x20aef6,_0x41da6d._0x53e7a4,0x36f,0x38d),'id':_0x6ae08f['id'],'name':_0x6ae08f['function'][_0x3a13d7(_0x41da6d._0x12ebea,_0x41da6d._0x5950f2,0x5b9,0x47a)],'input':parseToolInput2(_0x6ae08f[_0x1424aa(0x31c,_0x41da6d._0x18052c,_0x41da6d._0x56e56b,_0x41da6d._0x50863e)]['arguments'])});}return _0x1c88cc;}function createUsage(_0x4fee1d){const _0x48a41c={_0x3d4ca9:0x460,_0x3453b8:0x20d,_0x3a830c:0x65,_0x57d37f:0x13c,_0x4c69b0:0x1ad,_0x3dfacc:0x48e,_0x5c9c6a:0x452,_0x4291d0:0x4ab},_0x3def01={_0x2fcb16:0x1fe},_0x345382={_0x5b14e8:0x523};function _0x5b0af3(_0x54548d,_0x104780,_0x438f96,_0x17d39a){return _0x5e6a6f(_0x438f96,_0x104780-0x161,_0x104780-_0x345382._0x5b14e8,_0x17d39a-0xbc);}function _0x183f4e(_0x39a54d,_0x5e5bf2,_0x4d999f,_0x1ace7e){return _0x5e6a6f(_0x1ace7e,_0x5e5bf2-0x9f,_0x4d999f-_0x3def01._0x2fcb16,_0x1ace7e-0x14d);}return{'inputTokens':_0x4fee1d?.[_0x5b0af3(0x45d,_0x48a41c._0x3d4ca9,0x4af,0x538)]??0x0,'outputTokens':_0x4fee1d?.[_0x183f4e(_0x48a41c._0x3453b8,_0x48a41c._0x3a830c,_0x48a41c._0x57d37f,_0x48a41c._0x4c69b0)]??0x0,..._0x4fee1d?.['completion_tokens_details']?.[_0x5b0af3(_0x48a41c._0x3dfacc,0x4a3,0x516,0x507)]!==void 0x0?{'reasoningTokens':_0x4fee1d[_0x5b0af3(0x452,0x3bb,0x3df,0x445)][_0x5b0af3(0x571,0x4a3,_0x48a41c._0x5c9c6a,_0x48a41c._0x4291d0)]}:{}};}function resolveReasoningVisibility2(_0x59d91f){const _0x5503a2={_0x687be5:0x112,_0x3c1b9d:0x8,_0x143a73:0x5c,_0x44af9f:0x3f,_0x243a3a:0xca,_0x45213e:0x35},_0x1f555e={_0x18bb1b:0xfa,_0x5481ee:0x8f},_0x80a65a={_0x2d2553:0x9a,_0x45e4df:0xf1};function _0x3641c2(_0x2c296b,_0x3a0550,_0x51ee77,_0x166b0e){return _0x2088d4(_0x2c296b-_0x80a65a._0x2d2553,_0x3a0550-_0x80a65a._0x45e4df,_0x51ee77,_0x3a0550- -0x1cd);}function _0x245a8f(_0xbfd019,_0x4a551d,_0x16259d,_0x2c2995){return _0x5e6a6f(_0x16259d,_0x4a551d-_0x1f555e._0x18bb1b,_0x2c2995-0x14e,_0x2c2995-_0x1f555e._0x5481ee);}return _0x59d91f[_0x3641c2(-_0x5503a2._0x687be5,-0x55,-0x98,_0x5503a2._0x3c1b9d)]?.[_0x245a8f(_0x5503a2._0x143a73,0x8b,_0x5503a2._0x44af9f,_0x5503a2._0x243a3a)]??_0x245a8f(-0x2f,_0x5503a2._0x45213e,-0xf,-0x79);}function isUserVisibleReasoning(_0x552a3b){const _0x467cdc={_0x48d73c:0x155,_0xaa67e0:0x1f1,_0x13a834:0x232,_0x480db7:0xb2,_0x2eada5:0x124},_0x48553c={_0x5fca8f:0x1e0},_0x3b2977={_0xb4dbf2:0x2a5};function _0x1463d5(_0x3a94fb,_0x122526,_0x2a4c83,_0x57add5){return _0x5e6a6f(_0x57add5,_0x122526-0x15f,_0x3a94fb-_0x3b2977._0xb4dbf2,_0x57add5-0x84);}function _0x349688(_0x4bf19c,_0x2d6223,_0x3c15e8,_0xf7075f){return _0x2088d4(_0x4bf19c-_0x48553c._0x5fca8f,_0x2d6223-0x1c8,_0x4bf19c,_0x2d6223- -0x29b);}return resolveOpenAiReasoningConfig(_0x552a3b[_0x1463d5(_0x467cdc._0x48d73c,0x1d9,_0x467cdc._0xaa67e0,_0x467cdc._0x13a834)])!==void 0x0&&resolveReasoningVisibility2(_0x552a3b)===_0x1463d5(0xde,0x1b9,_0x467cdc._0x480db7,_0x467cdc._0x2eada5);}function createChatRequestBody(_0x34f331,_0x4b80ef){const _0xe8d3d1={_0x1980a4:0x706,_0x7b5c9e:0x61a,_0x4c8621:0x687,_0x30d4f1:0x537,_0x3925cb:0x60f,_0x88715f:0x655,_0x4fdab7:0x5bb,_0x148503:0x5d7,_0x4d7494:0x6c2,_0x2b7932:0x667,_0x19db7b:0x529,_0x86ffe:0x439,_0x2f45ce:0x52b,_0x367091:0x622,_0x1c3464:0x6b2,_0x216adc:0x5a3,_0x2ce52c:0x56c,_0x5be820:0x45b,_0x3a8716:0x54c,_0x428ca8:0x608,_0x4ab30e:0x573,_0x2810a1:0x641,_0x37c81b:0x61e,_0x5307dc:0x55b,_0x276ed9:0x600,_0x18d65c:0x65b,_0x41feb0:0x5d8,_0x2bab3d:0x4e4,_0x4cbb8f:0x63a,_0x3ec2b4:0x529,_0x331704:0x47c,_0x179ad7:0x3b6,_0x4ce73e:0x6de,_0x58aa12:0x608,_0x1d9cce:0x629,_0x571f48:0x63e,_0x4afa6a:0x5c7,_0x5601eb:0x58d,_0x11733d:0x5af,_0x2f7429:0x4b6,_0x2f87c5:0x3e0,_0x53cb42:0x4a3,_0x40a70e:0x542,_0x1a77c7:0x5f4,_0x27dcfe:0x68a,_0xf6850e:0x52e,_0x3986a8:0x689,_0x525aeb:0x5af,_0x454685:0x67b,_0x27fae5:0x650,_0x1026b3:0x57b,_0x4e9306:0x5fe,_0x31258c:0x505,_0x18101c:0x51b,_0x392bdb:0x46f,_0x273962:0x4e1,_0x27213e:0x447,_0x3d713c:0x458,_0x4e28b2:0x400,_0x464b1b:0x482,_0x316038:0x4f8,_0x215889:0x510,_0x1ac32c:0x584,_0x82b92b:0x51b,_0x339b68:0x5b9,_0x42b492:0x531,_0x2407ed:0x52a,_0x2c23b8:0x60d,_0x337f34:0x4a6,_0x439635:0x70c,_0x3766e0:0x5ca,_0x4cba1c:0x598,_0x5ce432:0x66e,_0x195cfb:0x63f,_0x1a7c3d:0x6ed,_0x440600:0x694,_0x41a503:0x613,_0x4cfdf0:0x68e,_0x6c39d4:0x714,_0x377c6f:0x72c,_0x5b1220:0x60a,_0x5b497e:0x5c7,_0x2b5a0c:0x5e8,_0x293398:0x6f5,_0x15994c:0x56c,_0x449fcd:0x56f,_0xd075d9:0x55c,_0x5d8bdf:0x3cd,_0x256d97:0x4a5,_0x231d39:0x6b7,_0x267c32:0x5a9,_0x2b6cb3:0x5da,_0x130030:0x496,_0x3b4f1f:0x4a5,_0x8a0dfc:0x3fb,_0x1ba52a:0x4b8,_0x50ac98:0x5a2,_0x2bb83f:0x62c,_0xe2adbc:0x4dc,_0xbe023e:0x3c1,_0xd42b29:0x3c5},_0x2074dc={_0x173e23:0xfc,_0x4d3118:0x180,_0x338c76:0x1ac,_0x1ebcd0:0xc,_0x256e0e:0xce,_0x573db5:0x1a4,_0x5a24b9:0x13f,_0x3fd863:0x16d,_0x2967c8:0xf0,_0x1fc90e:0x107,_0x27f8b3:0x103,_0x34d81d:0x72,_0x2bccc2:0x21d,_0x3fe8cd:0x10d,_0x4a2d3c:0x47,_0xb46d84:0xf8,_0x29176b:0x179,_0x512659:0x16c,_0x46f4d0:0x220,_0x19d21f:0x8d,_0x2b5780:0xbe,_0x28f7e6:0xfe,_0x3034c8:0x16a,_0x41bdf0:0x5b,_0x255532:0xa8,_0x3796d0:0x185,_0x2f7177:0x171,_0x390f5a:0xc8,_0x4da0f1:0xc7,_0x88ed03:0x191,_0x27764c:0xf3,_0x3b6c3a:0x14a,_0x44a21b:0x1b4,_0x30939b:0x104,_0x28a03b:0x152,_0x5d7fdb:0xf1,_0x4035ad:0x1a8,_0x3510e0:0x5f,_0x495f5c:0x18b,_0x5f5d23:0x6b},_0xf722b0={_0xc07f95:0x91,_0x599c04:0x3c8},_0x45bc90={_0x55e95b:0x190,_0x3e2a3a:0xdf,_0x19fe6a:0x4a6},_0x347b69=[],_0x50c1d3=stringifySystem(_0x34f331[_0xb7a583(_0xe8d3d1._0x1980a4,_0xe8d3d1._0x7b5c9e,_0xe8d3d1._0x4c8621,_0xe8d3d1._0x30d4f1)]);function _0x39de94(_0x15133a,_0x832eaa,_0x90c17c,_0xd7c1f){return _0x2088d4(_0x15133a-_0x45bc90._0x55e95b,_0x832eaa-_0x45bc90._0x3e2a3a,_0x15133a,_0x832eaa-_0x45bc90._0x19fe6a);}function _0xb7a583(_0x1261f0,_0x44147c,_0x9bd09b,_0x1f3d7a){return _0x2088d4(_0x1261f0-0x102,_0x44147c-_0xf722b0._0xc07f95,_0x1261f0,_0x44147c-_0xf722b0._0x599c04);}_0x50c1d3[_0x39de94(0x60d,_0xe8d3d1._0x3925cb,0x651,0x5e6)]>0x0&&_0x347b69[_0x39de94(0x508,0x581,_0xe8d3d1._0x88715f,_0xe8d3d1._0x4fdab7)]({'role':_0xb7a583(_0xe8d3d1._0x148503,0x61a,_0xe8d3d1._0x4d7494,_0xe8d3d1._0x2b7932),'content':_0x50c1d3});for(const _0x139074 of _0x34f331[_0x39de94(0x60a,_0xe8d3d1._0x19db7b,_0xe8d3d1._0x86ffe,0x5c1)]){const _0x3104bb=[],_0x1b089e=[],_0x47aa06=[],_0x1ae49=()=>{const _0x3b2695={_0x351699:0x628,_0x5bdbfa:0x177},_0x501b47={_0x18a184:0x66d,_0x353ca3:0x1cc};if(_0x139074[_0xcd17ff(-_0x2074dc._0x173e23,-_0x2074dc._0x4d3118,-_0x2074dc._0x338c76,-0x1be)]===_0xcd17ff(-0xf2,-_0x2074dc._0x1ebcd0,-_0x2074dc._0x256e0e,-_0x2074dc._0x573db5)){if(_0x3104bb['length']===0x0&&_0x1b089e['length']===0x0)return;_0x347b69[_0xcd17ff(-0x135,-_0x2074dc._0x5a24b9,-0x185,-_0x2074dc._0x3fd863)]({'role':_0x1ae4bf(-0x142,-_0x2074dc._0x2967c8,-_0x2074dc._0x1fc90e,-0x113),'content':_0x3104bb[_0xcd17ff(-0x87,-0x172,-0xf7,-_0x2074dc._0x27f8b3)]>0x0?_0x3104bb[_0xcd17ff(-0x14d,-_0x2074dc._0x34d81d,-0x12e,-_0x2074dc._0x2bccc2)]('\x0a\x0a'):null,..._0x1b089e[_0x1ae4bf(-0x182,-0xda,-0xba,-0x13c)]>0x0?{'tool_calls':_0x1b089e[_0xcd17ff(-_0x2074dc._0x3fe8cd,-_0x2074dc._0x4a2d3c,-_0x2074dc._0xb46d84,-_0x2074dc._0x29176b)](0x0)}:{}}),_0x3104bb[_0x1ae4bf(-_0x2074dc._0x512659,-0x1d5,-0x1e1,-0x13c)]=0x0;return;}function _0x1ae4bf(_0x3efca0,_0x417c0a,_0x34e5ca,_0x15f74e){return _0xb7a583(_0x417c0a,_0x15f74e- -_0x501b47._0x18a184,_0x34e5ca-_0x501b47._0x353ca3,_0x15f74e-0x46);}if(_0x139074[_0x1ae4bf(-0x27c,-_0x2074dc._0x46f4d0,-0x2ad,-0x1f1)]===_0xcd17ff(-_0x2074dc._0x19d21f,-_0x2074dc._0x2b5780,-_0x2074dc._0x28f7e6,-0x181)){if(_0x47aa06[_0xcd17ff(-0x18e,-_0x2074dc._0x3034c8,-0xf7,-_0x2074dc._0x41bdf0)]===0x0)return;const _0x3b0da6=_0x47aa06[_0xcd17ff(-0x13a,-_0x2074dc._0x255532,-0x15b,-0x13a)](_0x46fd6b=>_0x46fd6b[_0x1ae4bf(-0x24,-0xc8,0x28,-0xa6)]===_0xcd17ff(-0x13a,0xb,-0x56,-0x133));_0x347b69[_0xcd17ff(-0x145,-0x274,-_0x2074dc._0x3796d0,-_0x2074dc._0x2f7177)]({'role':_0xcd17ff(-0x26,-_0x2074dc._0x390f5a,-0xfe,-0x144),'content':_0x3b0da6?_0x47aa06[_0xcd17ff(-0x15c,-0xa4,-_0x2074dc._0xb46d84,-_0x2074dc._0x4da0f1)](0x0):_0x47aa06[_0xcd17ff(-_0x2074dc._0x88ed03,-_0x2074dc._0x27764c,-_0x2074dc._0xb46d84,-_0x2074dc._0x3b6c3a)](0x0)[_0x1ae4bf(-0x1c4,-_0x2074dc._0x44a21b,-0x81,-_0x2074dc._0x30939b)](_0x4c6723=>_0x4c6723['type']===_0xcd17ff(-0xda,-0x88,-0xb1,-0x14c))[_0xcd17ff(-0x30,-0xb1,-0x87,-_0x2074dc._0x28a03b)](_0x2a7106=>_0x2a7106[_0xcd17ff(-0x97,-0x55,-0xb1,-0x73)])['join']('\x0a\x0a')});return;}if(_0x3104bb[_0xcd17ff(-_0x2074dc._0x5d7fdb,-_0x2074dc._0x4035ad,-0xf7,-0xea)]===0x0)return;function _0xcd17ff(_0xe18d61,_0x5bcc30,_0x12a1d0,_0x4456c4){return _0xb7a583(_0xe18d61,_0x12a1d0- -_0x3b2695._0x351699,_0x12a1d0-0x13f,_0x4456c4-_0x3b2695._0x5bdbfa);}_0x347b69['push']({'role':_0x139074['role'],'content':_0x3104bb['join']('\x0a\x0a')}),_0x3104bb[_0x1ae4bf(-_0x2074dc._0x3510e0,-_0x2074dc._0x495f5c,-_0x2074dc._0x5f5d23,-0x13c)]=0x0;};for(const _0x4603e8 of normalizeContent(_0x139074[_0xb7a583(0x4fe,0x482,_0xe8d3d1._0x2f45ce,0x407)])){if(_0x4603e8[_0x39de94(_0xe8d3d1._0x367091,0x6a5,_0xe8d3d1._0x1c3464,0x6d7)]===_0xb7a583(0x5e3,0x577,_0xe8d3d1._0x216adc,0x5e6)){_0x139074[_0xb7a583(_0xe8d3d1._0x2ce52c,0x47c,_0xe8d3d1._0x5be820,_0xe8d3d1._0x3a8716)]===_0x39de94(0x642,_0xe8d3d1._0x428ca8,0x66c,0x6b5)?_0x47aa06[_0x39de94(_0xe8d3d1._0x4ab30e,0x581,_0xe8d3d1._0x2810a1,_0xe8d3d1._0x37c81b)]({'type':_0xb7a583(_0xe8d3d1._0x5307dc,0x577,0x53f,_0xe8d3d1._0x216adc),'text':_0x4603e8[_0xb7a583(_0xe8d3d1._0x276ed9,0x577,_0xe8d3d1._0x18d65c,_0xe8d3d1._0x41feb0)]}):_0x3104bb['push'](_0x4603e8[_0xb7a583(_0xe8d3d1._0x2bab3d,0x577,0x577,_0xe8d3d1._0x4cbb8f)]);continue;}if(_0x139074[_0xb7a583(_0xe8d3d1._0x3ec2b4,_0xe8d3d1._0x331704,0x4f7,_0xe8d3d1._0x179ad7)]===_0x39de94(_0xe8d3d1._0x4ce73e,_0xe8d3d1._0x58aa12,_0xe8d3d1._0x1d9cce,_0xe8d3d1._0x571f48)&&_0x4603e8[_0xb7a583(0x5e5,_0xe8d3d1._0x4afa6a,_0xe8d3d1._0x5601eb,_0xe8d3d1._0x11733d)]===_0xb7a583(0x576,_0xe8d3d1._0x2f7429,_0xe8d3d1._0x2f87c5,0x4b0)){_0x47aa06[_0xb7a583(0x56e,_0xe8d3d1._0x53cb42,0x58b,0x4a6)]({'type':'image_url','image_url':{'url':'data:'+_0x4603e8['source'][_0x39de94(0x5f5,0x643,0x71d,0x589)]+_0x39de94(0x5e1,0x521,0x48e,0x536)+_0x4603e8['source'][_0xb7a583(0x4cd,_0xe8d3d1._0x40a70e,0x57c,_0xe8d3d1._0x1a77c7)]}});continue;}if(_0x4603e8[_0xb7a583(0x67d,0x5c7,_0xe8d3d1._0x27dcfe,_0xe8d3d1._0xf6850e)]==='tool_use'){_0x1b089e[_0xb7a583(0x522,0x4a3,0x417,0x529)]({'id':_0x4603e8['id'],'type':_0x39de94(_0xe8d3d1._0x3986a8,_0xe8d3d1._0x525aeb,0x5c7,_0xe8d3d1._0x454685),'function':{'name':_0x4603e8[_0x39de94(0x5e1,_0xe8d3d1._0x27fae5,0x6a4,0x663)],'arguments':JSON[_0x39de94(0x5d9,_0xe8d3d1._0x1026b3,_0xe8d3d1._0x4e9306,0x5ea)](_0x4603e8['input']??{})}});continue;}if(_0x4603e8['type']!==_0x39de94(_0xe8d3d1._0x31258c,_0xe8d3d1._0x18101c,_0xe8d3d1._0x2ce52c,_0xe8d3d1._0x392bdb))continue;_0x1ae49(),_0x347b69['push']({'role':_0xb7a583(_0xe8d3d1._0x273962,_0xe8d3d1._0x27213e,0x3e2,_0xe8d3d1._0x3d713c),'content':getToolResultText(_0x4603e8[_0xb7a583(_0xe8d3d1._0x4e28b2,_0xe8d3d1._0x464b1b,0x55d,_0xe8d3d1._0x316038)]),'tool_call_id':_0x4603e8[_0x39de94(_0xe8d3d1._0x215889,_0xe8d3d1._0x1ac32c,0x628,_0xe8d3d1._0x82b92b)]});const _0x433ded=getToolResultImages(_0x4603e8['content']);_0x433ded[_0xb7a583(_0xe8d3d1._0x339b68,_0xe8d3d1._0x42b492,0x549,0x5c0)]>0x0&&_0x347b69['push']({'role':_0xb7a583(0x5f1,_0xe8d3d1._0x2407ed,0x531,0x4b8),'content':[{'type':_0x39de94(_0xe8d3d1._0x2c23b8,_0xe8d3d1._0x88715f,0x6ca,0x610),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x4603e8[_0xb7a583(0x51a,_0xe8d3d1._0x337f34,0x43e,0x3c3)]+'.'},..._0x433ded[_0xb7a583(0x5f6,0x5a1,0x4f5,0x573)](_0x450e82=>({'type':_0xb7a583(0x536,0x5d2,0x520,0x5d3),'image_url':{'url':_0xb7a583(0x5b8,0x4e3,0x516,0x414)+_0x450e82[_0x39de94(0x78b,0x6f1,0x664,0x6b7)][_0x39de94(0x710,0x643,0x67f,0x601)]+';base64,'+_0x450e82[_0x39de94(0x6bc,0x6f1,0x7cf,0x690)][_0x39de94(0x552,0x620,0x692,0x641)]}}))]});}_0x1ae49();}const _0x2aef3d=resolveOpenAiReasoningConfig(_0x34f331[_0x39de94(0x64a,_0xe8d3d1._0x37c81b,_0xe8d3d1._0x439635,_0xe8d3d1._0x3766e0)]);return{'model':_0x34f331[_0x39de94(_0xe8d3d1._0x4cba1c,_0xe8d3d1._0x5ce432,_0xe8d3d1._0x195cfb,_0xe8d3d1._0x1a7c3d)],'messages':_0x347b69,'stream':_0x4b80ef,..._0x34f331[_0x39de94(0x5d2,_0xe8d3d1._0x440600,0x763,_0xe8d3d1._0x41a503)]!==void 0x0?_0x2aef3d?{'max_completion_tokens':_0x34f331[_0x39de94(_0xe8d3d1._0x4cfdf0,0x694,0x6f0,_0xe8d3d1._0x6c39d4)]}:{'max_tokens':_0x34f331[_0x39de94(0x675,_0xe8d3d1._0x440600,0x5cf,_0xe8d3d1._0x377c6f)]}:{},..._0x2aef3d?.['effort']?{'reasoning_effort':_0x2aef3d[_0x39de94(0x678,_0xe8d3d1._0x5b1220,_0xe8d3d1._0x5b497e,0x62a)]}:{},...createToolDefinitions(_0x34f331[_0x39de94(_0xe8d3d1._0x2b5a0c,0x653,_0xe8d3d1._0x293398,0x699)])?{'tools':createToolDefinitions(_0x34f331[_0x39de94(0x6c3,0x653,0x641,0x5a3)])}:{},..._0x34f331['outputFormat']?{'response_format':{'type':_0xb7a583(_0xe8d3d1._0x15994c,_0xe8d3d1._0x449fcd,_0xe8d3d1._0xd075d9,0x583),'json_schema':{'name':_0x34f331[_0xb7a583(_0xe8d3d1._0x5d8bdf,_0xe8d3d1._0x256d97,0x4ed,0x4aa)][_0x39de94(_0xe8d3d1._0x231d39,0x650,_0xe8d3d1._0x267c32,_0xe8d3d1._0x2b6cb3)]??_0x39de94(0x4de,0x552,0x5d2,0x528),'schema':_0x34f331[_0xb7a583(_0xe8d3d1._0x130030,_0xe8d3d1._0x3b4f1f,_0xe8d3d1._0x8a0dfc,0x3ed)][_0xb7a583(_0xe8d3d1._0x1ba52a,_0xe8d3d1._0x50ac98,0x512,_0xe8d3d1._0x2bb83f)],'strict':_0x34f331[_0xb7a583(_0xe8d3d1._0xe2adbc,0x4a5,0x549,0x4bf)][_0xb7a583(0x3b4,0x440,_0xe8d3d1._0xbe023e,_0xe8d3d1._0xd42b29)]??!![]}}}:{}};}function createResponsesRequestBody(_0x238b17,_0x39e025,_0x31a4c1){const _0xca6b55=_0x31a4c1?.(_0x238b17);return{...toOpenAiResponsesRequest(_0x238b17),..._0x39e025?{'stream':!![]}:{},..._0xca6b55!==void 0x0?{'prompt_cache_key':_0xca6b55}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0xb876,_0xea2a5={}){const _0x5101e8={_0x4e5cea:0x3d2,_0x284bcc:0x3a2,_0x16d18f:0x365,_0x92c1d7:0x31f,_0x1310ac:0x3b4,_0x324864:0x320,_0x310ef9:0x29c,_0x3bafa2:0x498,_0x4e5784:0x4bb,_0x21fb6c:0x4f7,_0x2b54e2:0x2e6},_0x408650={_0xf62463:0xf7,_0x223232:0x1ac,_0x2986b3:0x1ad},_0x27fea9={_0x1498a1:0x3e,_0x43c471:0x5ac};function _0x2167c2(_0x1aa8b3,_0x4a5c17,_0x4c8155,_0x5f3947){return _0x5e6a6f(_0x5f3947,_0x4a5c17-_0x27fea9._0x1498a1,_0x4c8155-_0x27fea9._0x43c471,_0x5f3947-0x1af);}const _0x50e66c=toOpenAiResponsesRequest(_0xb876);function _0x1ab25e(_0x72454b,_0x76e934,_0x47b32b,_0x3860c5){return _0x2088d4(_0x72454b-_0x408650._0xf62463,_0x76e934-_0x408650._0x223232,_0x3860c5,_0x47b32b-_0x408650._0x2986b3);}return{'type':_0x1ab25e(0x481,0x355,_0x5101e8._0x4e5cea,0x418),..._0x50e66c,..._0xea2a5[_0x1ab25e(0x3b7,_0x5101e8._0x284bcc,0x320,_0x5101e8._0x16d18f)]?{'input':_0xea2a5[_0x1ab25e(_0x5101e8._0x92c1d7,_0x5101e8._0x1310ac,_0x5101e8._0x324864,_0x5101e8._0x310ef9)]}:{},..._0xea2a5['promptCacheKey']!==void 0x0?{'prompt_cache_key':_0xea2a5[_0x2167c2(_0x5101e8._0x3bafa2,_0x5101e8._0x4e5784,_0x5101e8._0x21fb6c,0x532)]}:{},..._0xea2a5[_0x1ab25e(0x1c4,0x19f,0x237,_0x5101e8._0x2b54e2)]?{'previous_response_id':_0xea2a5['previousResponseId']}:{},'store':![]};}function normalizeAssistantContent(_0x45568e){const _0x4aa5f2={_0xeadb93:0x445,_0x395712:0xaf,_0x4fa912:0xcb},_0x90cd58={_0x4486c9:0x3b3,_0x4a172f:0x350,_0x4bd88e:0x354,_0x4a9f99:0x2c9},_0x388524={_0x33b244:0x104,_0x30cff4:0x1c1},_0x377cf7={_0x3e929f:0x19f},_0x2cf33d={_0x434066:0x102,_0xe0f16:0x539},_0x5e4806={_0x5e83ab:0x12d,_0x57e91f:0xb6,_0x40c0d9:0xa2};if(typeof _0x45568e===_0x55e201(0x3a8,0x440,_0x4aa5f2._0xeadb93,0x45a))return _0x45568e;function _0x484adf(_0x534314,_0x1f03c8,_0x1ae792,_0x164e6d){return _0x5e6a6f(_0x164e6d,_0x1f03c8-_0x5e4806._0x5e83ab,_0x1f03c8-_0x5e4806._0x57e91f,_0x164e6d-_0x5e4806._0x40c0d9);}function _0x55e201(_0x152c31,_0xb12ab1,_0x1d1cad,_0x3e19ea){return _0x5e6a6f(_0x1d1cad,_0xb12ab1-_0x2cf33d._0x434066,_0xb12ab1-_0x2cf33d._0xe0f16,_0x3e19ea-0xcc);}if(!Array['isArray'](_0x45568e))return'';return _0x45568e['map'](_0x16f3e7=>{function _0x57222d(_0x444063,_0x464d59,_0x5221b3,_0x4a9298){return _0x55e201(_0x444063-0x1dc,_0x444063- -0xc0,_0x4a9298,_0x4a9298-_0x377cf7._0x3e929f);}function _0x172c00(_0xbca3,_0x3417f8,_0x25f68f,_0x25fccf){return _0x55e201(_0xbca3-_0x388524._0x33b244,_0x3417f8- -0x50,_0xbca3,_0x25fccf-_0x388524._0x30cff4);}return _0x16f3e7[_0x57222d(0x3b0,0x3ff,0x469,0x2dc)]==='text'?_0x16f3e7[_0x57222d(0x360,_0x90cd58._0x4486c9,_0x90cd58._0x4a172f,0x286)]:_0x16f3e7[_0x57222d(0x26a,0x1f9,_0x90cd58._0x4bd88e,_0x90cd58._0x4a9f99)];})[_0x484adf(-0x38,-0xe0,-_0x4aa5f2._0x395712,-_0x4aa5f2._0x4fa912)]('');}function normalizeResponsesMessageContent(_0x57dcdc){const _0x315aa9={_0x7d4ba6:0x4b4,_0x17442f:0x4b7,_0x3ee65c:0x55c,_0x2d4cf8:0x464,_0x40176e:0x485,_0x649a4a:0x288,_0x393764:0x4ec,_0x58fd4e:0x3fe,_0x8221ad:0x53c,_0x220eae:0x4f6,_0x578beb:0x5dd,_0x501592:0x2d5,_0x573a25:0x1fe,_0x10083a:0x18a,_0x226219:0x275,_0x3e47fb:0x306,_0x41e143:0x5d8};if(!Array['isArray'](_0x57dcdc))return'';return _0x57dcdc['map'](_0x31fd59=>{const _0x1c6c45={_0x2e3755:0x7a};if(!_0x31fd59||typeof _0x31fd59!==_0x302724(0x239,0x382,0x2c9,0x282))return'';const _0x2ddf20=_0x31fd59;function _0x1f523c(_0x5b4477,_0x6f4a15,_0x3ebb14,_0x3b3e6a){return _0x7447(_0x5b4477-0x221,_0x3b3e6a);}function _0x302724(_0x3ecf17,_0x29f7a7,_0x172151,_0x7d684c){return _0x7447(_0x172151-_0x1c6c45._0x2e3755,_0x7d684c);}if(_0x2ddf20[_0x1f523c(0x53c,_0x315aa9._0x7d4ba6,_0x315aa9._0x17442f,0x499)]===_0x1f523c(0x577,_0x315aa9._0x3ee65c,0x55e,0x4b0)&&typeof _0x2ddf20[_0x1f523c(0x4ec,_0x315aa9._0x2d4cf8,_0x315aa9._0x40176e,0x4bc)]===_0x302724(0x30b,0x303,0x365,_0x315aa9._0x649a4a))return _0x2ddf20[_0x1f523c(_0x315aa9._0x393764,_0x315aa9._0x58fd4e,0x423,0x523)];if(_0x2ddf20[_0x1f523c(_0x315aa9._0x8221ad,_0x315aa9._0x220eae,_0x315aa9._0x578beb,0x5a2)]===_0x302724(_0x315aa9._0x501592,_0x315aa9._0x573a25,0x24f,_0x315aa9._0x10083a)&&typeof _0x2ddf20[_0x302724(_0x315aa9._0x226219,_0x315aa9._0x3e47fb,0x24f,0x176)]===_0x1f523c(0x50c,0x4fb,_0x315aa9._0x41e143,0x591))return _0x2ddf20['refusal'];return'';})['join']('');}function extractOpenAiReasoningText(_0x118fa5){const _0x5d1d35={_0x27018f:0x1a9,_0x5b8fe3:0xc7,_0x58b3a2:0xe3,_0x14d9a8:0x2d7,_0x1d42cb:0x1cf,_0x130d68:0x223,_0x20ce36:0x4,_0xc79e13:0xaf,_0x370d48:0x69,_0x1b8355:0x40,_0x503cf1:0x37,_0x3121b2:0x68},_0x33dcd2={_0x366f1c:0x9d},_0x3455ee={_0x572d20:0x16};if(typeof _0x118fa5['text']===_0x26222e(-_0x5d1d35._0x27018f,-0x49,-_0x5d1d35._0x5b8fe3,-_0x5d1d35._0x58b3a2))return _0x118fa5['text'];if(!Array[_0x26222e(-_0x5d1d35._0x14d9a8,-_0x5d1d35._0x1d42cb,-0x1b8,-_0x5d1d35._0x130d68)](_0x118fa5[_0x5b784e(_0x5d1d35._0x20ce36,-_0x5d1d35._0xc79e13,-0xca,-0xcc)]))return'';function _0x26222e(_0x2e6e4e,_0x2f58fe,_0x2b7ba0,_0x39312a){return _0x5e6a6f(_0x2e6e4e,_0x2f58fe-0x194,_0x39312a-_0x3455ee._0x572d20,_0x39312a-0x1aa);}function _0x5b784e(_0x8d1f8e,_0x98b253,_0xc2360a,_0xdbf9a3){return _0x5e6a6f(_0xc2360a,_0x98b253-0x4f,_0x98b253-0x15f,_0xdbf9a3-_0x33dcd2._0x366f1c);}return _0x118fa5['content'][_0x26222e(-0x12f,-0xe3,-_0x5d1d35._0x370d48,-0x111)](_0x210bb3=>_0x210bb3['type']===_0x5b784e(-0x56,-0x4c,0x18,-0x2a)&&typeof _0x210bb3[_0x26222e(-0x126,-0xcd,-0x5b,-0x103)]===_0x5b784e(0x128,0x66,0x129,-0x4c))['map'](_0x56c543=>_0x56c543[_0x26222e(-0xd6,-0x169,-0x1b7,-0x103)]??'')[_0x5b784e(-_0x5d1d35._0x1b8355,-_0x5d1d35._0x503cf1,0x7,_0x5d1d35._0x3121b2)]('');}function createOpenAiReasoningBlock(_0x4a770e){const _0x57e69d={_0x9b087b:0x379,_0x562ebf:0x445,_0x34005f:0x96,_0x4d9e35:0x35,_0x33ff02:0xad,_0x1c1bad:0x1bd,_0x5c2bb9:0x1e6,_0x382b79:0x27e},_0x5da17c={_0x3ee06:0x3c},_0x14e5b0={_0x146575:0x149};function _0x584f1d(_0x242963,_0x423870,_0x419f81,_0x39a7f5){return _0x5e6a6f(_0x242963,_0x423870-0x6b,_0x423870-0xa2,_0x39a7f5-_0x14e5b0._0x146575);}function _0x5e72d6(_0x436d33,_0x40589e,_0x46f257,_0x49e0a4){return _0x5e6a6f(_0x49e0a4,_0x40589e-_0x5da17c._0x3ee06,_0x46f257-0x47c,_0x49e0a4-0x1d8);}const _0x261f46=extractOpenAiReasoningText(_0x4a770e);return{'type':_0x5e72d6(0x2c5,_0x57e69d._0x9b087b,0x394,_0x57e69d._0x562ebf),'summary':structuredClone(_0x4a770e[_0x584f1d(-_0x57e69d._0x34005f,-_0x57e69d._0x4d9e35,-_0x57e69d._0x33ff02,0x23)]??[]),..._0x4a770e['id']?{'id':_0x4a770e['id']}:{},..._0x4a770e[_0x5e72d6(_0x57e69d._0x1c1bad,0x191,0x27e,0x1cc)]?{'encryptedContent':_0x4a770e[_0x5e72d6(0x259,_0x57e69d._0x5c2bb9,_0x57e69d._0x382b79,0x1d1)]}:{},..._0x261f46['length']>0x0?{'text':_0x261f46}:{}};}function hasVisibleOpenAiReasoning(_0x2ac0ce){const _0x42f3a6={_0x50952c:0x4c0,_0x4c81be:0x4d2,_0xb8fe8d:0x5e9,_0x204c5c:0x18f},_0x2dc24b={_0x8d285f:0x1a9,_0x195d25:0x4e};function _0x54b17f(_0x410f27,_0x4498ef,_0x41d5bd,_0x49c2f1){return _0x5e6a6f(_0x4498ef,_0x4498ef-_0x2dc24b._0x8d285f,_0x49c2f1-0x30c,_0x49c2f1-_0x2dc24b._0x195d25);}function _0x13294b(_0x5394d9,_0x3d3600,_0x4a52f4,_0x21d0b4){return _0x5e6a6f(_0x5394d9,_0x3d3600-0x83,_0x3d3600-0x611,_0x21d0b4-0x2d);}return _0x2ac0ce[_0x13294b(0x44e,0x53a,0x61d,0x44a)][_0x13294b(0x428,0x4b2,_0x42f3a6._0x50952c,0x566)]>0x0||typeof _0x2ac0ce[_0x13294b(0x52a,0x4f8,_0x42f3a6._0x4c81be,_0x42f3a6._0xb8fe8d)]===_0x54b17f(0x2dc,_0x42f3a6._0x204c5c,0x16d,0x213);}function parseChatCompletionResponse(_0x45d7dc){const _0x43a11e={_0x3d820d:0x691,_0xfea7dc:0x4ea,_0x170096:0x470,_0x335caf:0x48c,_0x2dff4a:0x523,_0x562f23:0x3c0,_0x5813f0:0x4a3,_0x30e91b:0x643,_0x1c956b:0x570,_0x2ab779:0x5ec,_0x238950:0x5c3,_0x4e4d8a:0x408,_0x2e7737:0x453,_0x1a1725:0x71b,_0x513de9:0x621,_0x17a793:0x64b,_0x5c7054:0x3d7,_0x405ec3:0x537,_0x4e9fef:0x62b,_0x28874b:0x5ca,_0x221947:0x4c5,_0x4dabb2:0x5cf},_0x19409f={_0x332da0:0x690,_0x510f2f:0x6},_0x3b31e5={_0x5b4fdf:0x7b0,_0x4a237d:0xb9},_0x5dbb75=[],_0x3c1f26=[];function _0x513fdb(_0x4396ac,_0x1f4797,_0x335608,_0x5da3ed){return _0x5e6a6f(_0x4396ac,_0x1f4797-0x78,_0x5da3ed-_0x3b31e5._0x5b4fdf,_0x5da3ed-_0x3b31e5._0x4a237d);}function _0x1e1716(_0x25c3fa,_0x585f8e,_0x479573,_0x1514ac){return _0x5e6a6f(_0x25c3fa,_0x585f8e-0xb4,_0x1514ac-_0x19409f._0x332da0,_0x1514ac-_0x19409f._0x510f2f);}let _0x4238dc=_0x513fdb(0x606,0x5cd,_0x43a11e._0x3d820d,0x5eb);for(const _0x165216 of _0x45d7dc['choices']??[]){const _0x44e59b=_0x165216['message'],_0x5da1ec=normalizeAssistantContent(_0x44e59b?.[_0x1e1716(0x4ec,_0x43a11e._0xfea7dc,0x407,0x482)]);_0x5da1ec[_0x1e1716(_0x43a11e._0x170096,0x46d,_0x43a11e._0x335caf,0x531)]>0x0&&_0x5dbb75[_0x1e1716(0x558,_0x43a11e._0x2dff4a,_0x43a11e._0x562f23,_0x43a11e._0x5813f0)](_0x5da1ec),_0x44e59b?.['tool_calls']&&_0x3c1f26[_0x513fdb(_0x43a11e._0x30e91b,_0x43a11e._0x1c956b,_0x43a11e._0x2ab779,_0x43a11e._0x238950)](..._0x44e59b['tool_calls']),_0x165216[_0x1e1716(0x406,0x3f4,_0x43a11e._0x4e4d8a,_0x43a11e._0x2e7737)]===_0x513fdb(_0x43a11e._0x1a1725,0x687,_0x43a11e._0x513de9,_0x43a11e._0x17a793)&&(_0x4238dc=_0x1e1716(_0x43a11e._0x5c7054,0x3a2,0x3ed,0x45d));}return _0x3c1f26[_0x1e1716(0x531,_0x43a11e._0x405ec3,0x5b2,0x531)]>0x0&&(_0x4238dc=_0x513fdb(0x52d,0x622,_0x43a11e._0x4e9fef,0x57d)),{'id':_0x45d7dc['id']??_0x513fdb(_0x43a11e._0x28874b,_0x43a11e._0x221947,0x55d,0x5b1)+Date['now'](),'content':createContentBlocks(_0x5dbb75[_0x513fdb(0x6fb,_0x43a11e._0x4dabb2,0x5bf,0x61a)](''),_0x3c1f26),'stopReason':_0x4238dc,'usage':createUsage(_0x45d7dc['usage'])};}function parseResponsesResponse(_0x29d8e8,_0x243c18){const _0x2ab942={_0x2a87ba:0x22c,_0x51859e:0x1d8,_0x487b8f:0x1df,_0x29a7b6:0x15e,_0x109151:0x15c,_0x51576d:0x118,_0x3932f8:0x1c1,_0x27d834:0xb6,_0x3fcc1e:0x307,_0x8dc4b8:0xda,_0xaa8326:0x13b,_0x13257c:0x202,_0x26dbdd:0x19e,_0x29a2d5:0x48,_0x2bd060:0x67,_0x17cbd3:0x13a,_0x135fbb:0x1de,_0x2417ea:0xd9,_0x24148d:0x289,_0x48f6bf:0x221,_0x321d24:0x24c,_0xb334b2:0xc7,_0x2652f5:0x52,_0x21f8ff:0x153,_0x1baf42:0x159,_0x260556:0x17e,_0x5b4acb:0x87,_0x4d4a36:0x48,_0x3378be:0x2c,_0x5dd5cf:0xba,_0x16ab44:0x2ba,_0x2ba593:0x251,_0x552690:0x21c,_0x251d54:0x2be,_0x1078d1:0x248,_0x3dfe2a:0x274,_0x51891d:0x1b0,_0x535dba:0x226,_0xa6ddc0:0x1e8,_0x39913e:0x7f,_0x3a7f1f:0x118,_0x357959:0x165,_0x4cdff2:0xad,_0x5c813e:0x5e,_0x578ecd:0x1f7,_0x387c4f:0x2be,_0x5edde8:0x1c0,_0xae6671:0x2a2,_0x4d0f7c:0xe5,_0x5a1680:0x13a,_0x48bccd:0x26,_0x499637:0x1ad,_0x36482e:0x11e},_0x20ca90={_0x2458c9:0xbd,_0x537227:0x196,_0x2ba5c8:0x51};function _0x20628e(_0x4bce1d,_0x4af4be,_0x15fc2a,_0x47cdf1){return _0x2088d4(_0x4bce1d-_0x20ca90._0x2458c9,_0x4af4be-_0x20ca90._0x537227,_0x47cdf1,_0x4bce1d- -_0x20ca90._0x2ba5c8);}function _0x44e55a(_0x2302b3,_0x2cedd,_0x4f2d56,_0x6da701){return _0x2088d4(_0x2302b3-0x183,_0x2cedd-0xc1,_0x4f2d56,_0x6da701-0xa2);}const _0x499d35=[];for(const _0x2eb52c of _0x29d8e8[_0x44e55a(0x20f,0x25b,_0x2ab942._0x2a87ba,_0x2ab942._0x51859e)]??[]){if(isResponsesReasoningItem(_0x2eb52c)){if(isUserVisibleReasoning(_0x243c18)){const _0x13b796=createOpenAiReasoningBlock(_0x2eb52c);hasVisibleOpenAiReasoning(_0x13b796)&&_0x499d35[_0x44e55a(_0x2ab942._0x487b8f,_0x2ab942._0x29a7b6,0x11f,0x17d)](_0x13b796);}continue;}if(isResponsesMessageItem(_0x2eb52c)){const _0x3973cf=normalizeResponsesMessageContent(_0x2eb52c[_0x44e55a(0x15e,0x179,0xa8,_0x2ab942._0x109151)]);_0x3973cf[_0x20628e(_0x2ab942._0x51576d,0x1df,_0x2ab942._0x3932f8,0x185)]>0x0&&_0x499d35[_0x20628e(0x8a,_0x2ab942._0x27d834,0xfc,0x7)]({'type':_0x44e55a(0x2a9,_0x2ab942._0x3fcc1e,0x17e,0x251),'text':_0x3973cf});continue;}if(!isResponsesFunctionCallItem(_0x2eb52c)||typeof _0x2eb52c[_0x44e55a(_0x2ab942._0x8dc4b8,0x127,0x10b,_0x2ab942._0xaa8326)]!==_0x44e55a(_0x2ab942._0x13257c,0x1e6,_0x2ab942._0x26dbdd,0x271)||_0x2eb52c[_0x20628e(_0x2ab942._0x29a2d5,-0x69,-0x7d,-_0x2ab942._0x2bd060)][_0x20628e(_0x2ab942._0x27d834,-0x8,_0x2ab942._0x17cbd3,0x88)]()['length']===0x0||typeof _0x2eb52c[_0x20628e(0x159,_0x2ab942._0x135fbb,_0x2ab942._0x2417ea,0x71)]!=='string'||_0x2eb52c[_0x44e55a(0x2ac,_0x2ab942._0x24148d,_0x2ab942._0x48f6bf,_0x2ab942._0x321d24)]['trim']()[_0x20628e(_0x2ab942._0x51576d,0x7b,_0x2ab942._0xb334b2,_0x2ab942._0x2652f5)]===0x0||typeof _0x2eb52c[_0x44e55a(_0x2ab942._0x21f8ff,0x118,0x1eb,_0x2ab942._0x1baf42)]!==_0x20628e(_0x2ab942._0x260556,_0x2ab942._0x135fbb,0x1ae,0x1c2))continue;_0x499d35['push']({'type':_0x20628e(0x44,-0x5c,0x5a,_0x2ab942._0x5b4acb),'id':_0x2eb52c[_0x20628e(_0x2ab942._0x4d4a36,_0x2ab942._0x3378be,-0x12,0x103)],'name':_0x2eb52c['name'],'input':parseToolInput2(_0x2eb52c[_0x20628e(0x66,-0x2c,-0x42,0x94)])});}return!_0x499d35['some'](_0x2419c7=>_0x2419c7[_0x20628e(0x1ae,0x199,0x1d0,0xd3)]==='text')&&_0x29d8e8['output_text']&&_0x499d35[_0x20628e(0x8a,_0x2ab942._0x5dd5cf,-0x42,0xe3)]({'type':_0x44e55a(_0x2ab942._0x16ab44,0x240,0x19b,_0x2ab942._0x2ba593),'text':_0x29d8e8[_0x44e55a(0x3a0,0x29e,0x2dc,0x2dc)]}),{'id':_0x29d8e8['id'],'content':_0x499d35,'stopReason':_0x499d35['some'](_0xa3ec9c=>_0xa3ec9c[_0x20628e(0x1ae,0x284,0x1aa,0x12c)]===_0x44e55a(0x117,0x50,0x11d,0x137))?'tool_use':'end_turn','usage':{'inputTokens':_0x29d8e8[_0x44e55a(0x376,0x215,_0x2ab942._0x552690,_0x2ab942._0x251d54)]?.[_0x44e55a(_0x2ab942._0x1078d1,0x389,_0x2ab942._0x3dfe2a,0x2e8)]??0x0,'outputTokens':_0x29d8e8[_0x20628e(0x1cb,_0x2ab942._0x51891d,_0x2ab942._0x535dba,_0x2ab942._0xa6ddc0)]?.[_0x20628e(0x107,_0x2ab942._0x39913e,_0x2ab942._0x3a7f1f,_0x2ab942._0x357959)]??0x0,..._0x29d8e8['usage']?.[_0x20628e(0xcd,_0x2ab942._0x4cdff2,_0x2ab942._0x5c813e,0xab)]?.[_0x20628e(_0x2ab942._0x578ecd,0x1b6,0x2cc,_0x2ab942._0x387c4f)]!==void 0x0?{'reasoningTokens':_0x29d8e8['usage'][_0x44e55a(0x295,0x165,0x26c,_0x2ab942._0x5edde8)][_0x44e55a(0x34a,_0x2ab942._0xae6671,0x31b,0x2ea)]}:{}},..._0x29d8e8[_0x20628e(_0x2ab942._0x4d0f7c,0x88,0x14b,_0x2ab942._0x5a1680)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x29d8e8[_0x20628e(0xe5,_0x2ab942._0x48bccd,_0x2ab942._0x499637,_0x2ab942._0x36482e)]),'openaiResponsesResponseId':_0x29d8e8['id']}}:{}};}function extractErrorMessage(_0x4eebe5){const _0x381abc={_0x24c1c7:0x43a,_0x1a13c6:0x3d5,_0x378804:0x458,_0x338464:0x388,_0x5a7341:0x4c7,_0x378d1d:0x407,_0x63e1bf:0x53c,_0x28dc86:0x370,_0x56fd58:0x2b7,_0x17157e:0x4de,_0x415e7e:0x36c,_0x6a0d7a:0x3ef,_0x4db856:0x42c,_0x3d06a7:0x4fd,_0x3d4d47:0x510,_0x58c14a:0x40a,_0x5e7c1b:0x562,_0x3e15c6:0x40b,_0x100440:0x458,_0x134864:0x492,_0x132cf9:0x455,_0x59c874:0x4a8,_0x31e0ef:0x4f7,_0x4b5a62:0x5bb,_0x4367d1:0x42b,_0x33dbfc:0x4bd,_0x37d64a:0x47a,_0x29f74b:0x4c5,_0x58a4ee:0x430,_0x27bf2d:0x42f,_0x36677d:0x369,_0x3e26ff:0x42c,_0x434f70:0x3b4,_0x3f3246:0x3ee,_0x8547de:0x59c,_0x3ff103:0x3ca,_0x4aad26:0x303},_0x22664b={_0x1ad292:0x4d,_0x3217f2:0x1be},_0x25e2df={_0xab3a21:0xa4};if(_0x4eebe5['length']===0x0)return'';function _0xac2c7e(_0x50d120,_0x360c1c,_0xd79be7,_0xe92a2){return _0x5e6a6f(_0xe92a2,_0x360c1c-0x174,_0x50d120-0x58b,_0xe92a2-_0x25e2df._0xab3a21);}function _0x354281(_0x2ea109,_0x3100ed,_0x214ed4,_0x48e7e8){return _0x2088d4(_0x2ea109-_0x22664b._0x1ad292,_0x3100ed-_0x22664b._0x3217f2,_0x214ed4,_0x3100ed-0x328);}try{const _0x4ea4b6=JSON['parse'](_0x4eebe5);if(typeof _0x4ea4b6[_0x354281(_0x381abc._0x24c1c7,_0x381abc._0x1a13c6,0x44f,0x3d5)]?.[_0xac2c7e(_0x381abc._0x378804,0x508,_0x381abc._0x338464,_0x381abc._0x5a7341)]===_0x354281(_0x381abc._0x378d1d,0x4f7,0x50d,_0x381abc._0x63e1bf)&&_0x4ea4b6[_0xac2c7e(_0x381abc._0x28dc86,_0x381abc._0x56fd58,0x34a,0x3b6)][_0xac2c7e(_0x381abc._0x378804,_0x381abc._0x17157e,0x450,0x538)][_0xac2c7e(0x3ca,_0x381abc._0x415e7e,_0x381abc._0x6a0d7a,0x2eb)]()[_0xac2c7e(_0x381abc._0x4db856,_0x381abc._0x3d06a7,_0x381abc._0x3d4d47,_0x381abc._0x58c14a)]>0x0)return _0x4ea4b6['error'][_0x354281(0x513,0x4bd,0x3e5,_0x381abc._0x5e7c1b)][_0xac2c7e(0x3ca,_0x381abc._0x3e15c6,0x39f,0x459)]();if(typeof _0x4ea4b6[_0xac2c7e(_0x381abc._0x100440,_0x381abc._0x134864,0x4a7,_0x381abc._0x132cf9)]===_0x354281(_0x381abc._0x59c874,_0x381abc._0x31e0ef,_0x381abc._0x4b5a62,_0x381abc._0x4367d1)&&_0x4ea4b6[_0x354281(0x3e7,_0x381abc._0x33dbfc,_0x381abc._0x37d64a,_0x381abc._0x29f74b)][_0x354281(_0x381abc._0x58a4ee,_0x381abc._0x27bf2d,_0x381abc._0x36677d,0x3bd)]()[_0xac2c7e(_0x381abc._0x3e26ff,_0x381abc._0x434f70,_0x381abc._0x3f3246,0x407)]>0x0)return _0x4ea4b6[_0x354281(_0x381abc._0x8547de,0x4bd,0x420,0x3cf)][_0xac2c7e(_0x381abc._0x3ff103,0x3cd,_0x381abc._0x4aad26,0x2e5)]();}catch{return _0x4eebe5;}return _0x4eebe5;}async function createOpenAiApiError(_0x7ba504){const _0x9b10bb={_0x2df60b:0x48c,_0x4aff69:0x367,_0x50bfc4:0x332,_0x1337f2:0x481,_0x46c202:0x2ec,_0x222959:0x35d,_0x4178fc:0x142},_0x377dee={_0x3da814:0x503,_0x3b1cff:0x7f},_0x3c7a49={_0x563f88:0x256,_0x1ad697:0xf3},_0x56d4fb=(await _0x7ba504[_0x4189da(0x3ea,_0x9b10bb._0x2df60b,_0x9b10bb._0x4aff69,0x3ce)]())['trim'](),_0x1c5c33=extractErrorMessage(_0x56d4fb)||_0x7ba504['statusText']||_0x4189da(0x398,_0x9b10bb._0x50bfc4,_0x9b10bb._0x1337f2,_0x9b10bb._0x46c202)+_0x7ba504[_0x4189da(0x308,_0x9b10bb._0x222959,0x38d,0x233)];function _0x24dd15(_0x1ecb95,_0x30a14c,_0x55569b,_0x39a8a6){return _0x5e6a6f(_0x39a8a6,_0x30a14c-0x5,_0x55569b-_0x3c7a49._0x563f88,_0x39a8a6-_0x3c7a49._0x1ad697);}function _0x4189da(_0x22f0a7,_0x34eedf,_0x275e51,_0x5d93ef){return _0x5e6a6f(_0x34eedf,_0x34eedf-0xca,_0x22f0a7-_0x377dee._0x3da814,_0x5d93ef-_0x377dee._0x3b1cff);}return new OpenAiApiError(_0x7ba504[_0x24dd15(0x120,_0x9b10bb._0x4178fc,0x5b,0xa3)],_0x56d4fb,_0x1c5c33);}function readSseData(_0x6413c7){const _0x51682c={_0x2ea512:0xcc,_0x2282c1:0x3c,_0x135ecf:0x19a,_0x4dcde2:0x16a,_0x1f2fc1:0x297,_0x31cecc:0x221},_0x2e5bc4={_0x2063d1:0x276,_0x1d1740:0x3a},_0xdda8d9={_0x3680d0:0x1db,_0x2f91ce:0xae};function _0x46be67(_0x32627f,_0x43b83e,_0x3651cd,_0x532b40){return _0x2088d4(_0x32627f-_0xdda8d9._0x3680d0,_0x43b83e-_0xdda8d9._0x2f91ce,_0x43b83e,_0x532b40-0x11a);}function _0x384621(_0x54866b,_0x54cd52,_0x1c950e,_0x187454){return _0x5e6a6f(_0x54866b,_0x54cd52-0x8b,_0x187454-_0x2e5bc4._0x2063d1,_0x187454-_0x2e5bc4._0x1d1740);}return _0x6413c7[_0x384621(_0x51682c._0x2ea512,-0x25,0x1a,_0x51682c._0x2282c1)]('\x0a')['filter'](_0x2ef628=>_0x2ef628['startsWith']('data:'))['map'](_0x36b5bc=>_0x36b5bc['slice'](0x5)['trimStart']())[_0x46be67(_0x51682c._0x135ecf,0x224,_0x51682c._0x4dcde2,0x24c)]('\x0a')[_0x46be67(0x153,_0x51682c._0x1f2fc1,0x236,_0x51682c._0x31cecc)]();}function readString(_0x4797c3){const _0x3cc520={_0x57d8ac:0xf6,_0x45891e:0x3c,_0x16f1e9:0x24,_0x4e68b5:0xc},_0x367aa2={_0x170422:0x74},_0x5aa145={_0x4b03a7:0x2c5};function _0x3b56c1(_0x2f8ed0,_0x2cd3b2,_0x54ee84,_0x54d8db){return _0x2088d4(_0x2f8ed0-0x1e6,_0x2cd3b2-0x117,_0x54d8db,_0x2f8ed0-_0x5aa145._0x4b03a7);}function _0x1e1968(_0x48cc84,_0x488866,_0x3b0fdb,_0x2c5739){return _0x2088d4(_0x48cc84-_0x367aa2._0x170422,_0x488866-0x8f,_0x488866,_0x2c5739- -0x192);}return typeof _0x4797c3===_0x1e1968(_0x3cc520._0x57d8ac,-_0x3cc520._0x45891e,-_0x3cc520._0x16f1e9,0x3d)&&_0x4797c3[_0x1e1968(-0xba,-0x87,_0x3cc520._0x4e68b5,-0x29)]>0x0?_0x4797c3:void 0x0;}function extractReasoningDetails(_0x1b2007){const _0x3984c2={_0x45b5c5:0x23b,_0x3db959:0x1ba,_0x42175a:0xd,_0x3d4be2:0x90,_0x4c567b:0x1c1,_0x4a0577:0x1d9,_0x35bdb0:0x1f2,_0x143951:0x172,_0x7c65f:0x164},_0x4d1a8e={_0x32eaf4:0x19a,_0x3aa173:0x45},_0x1c9bc6={_0x176b84:0xb2,_0x9a2937:0xe9,_0x57555c:0x135,_0x28bfa8:0x45,_0x5c733f:0x5b,_0x273d9e:0x8f,_0x488b9c:0x117,_0x27dd7d:0x112,_0x220ace:0x6d,_0x1e8e55:0x125,_0xc0953b:0x195,_0x3d2197:0x254},_0x4e58d5={_0x4ae3d2:0x1ed,_0xc8a6d8:0x24a},_0x576e09={_0x412529:0xf,_0x412941:0x1e9};if(!Array[_0x2ca3d4(-_0x3984c2._0x45b5c5,-_0x3984c2._0x3db959,-0x14a,-0x1f4)](_0x1b2007))return void 0x0;function _0x429caa(_0x3622fb,_0x5c8b8d,_0x3b0cb0,_0x4a8a67){return _0x2088d4(_0x3622fb-_0x576e09._0x412529,_0x5c8b8d-_0x576e09._0x412941,_0x5c8b8d,_0x4a8a67- -0x2a6);}const _0x518746=_0x1b2007[_0x2ca3d4(-0x15f,-_0x3984c2._0x42175a,-0xf1,-_0x3984c2._0x3d4be2)](_0xff6ea=>{const _0x27641b={_0xb3a706:0x1f3};if(!_0xff6ea||typeof _0xff6ea!==_0x1ffde8(-_0x1c9bc6._0x176b84,-_0x1c9bc6._0x9a2937,-_0x1c9bc6._0x57555c,-_0x1c9bc6._0x28bfa8))return[];const _0x1b6118=_0xff6ea;function _0x1ffde8(_0x34b98b,_0x388ae4,_0x4b17c1,_0x47361f){return _0x2ca3d4(_0x47361f,_0x388ae4-0x1e3,_0x4b17c1-_0x27641b._0xb3a706,_0x388ae4-0x67);}function _0x4b42f6(_0x3affc5,_0x5dc988,_0x2e3a1f,_0x488a10){return _0x429caa(_0x3affc5-0xba,_0x3affc5,_0x2e3a1f-_0x4e58d5._0x4ae3d2,_0x2e3a1f-_0x4e58d5._0xc8a6d8);}if(typeof _0x1b6118[_0x1ffde8(-0x90,-0x6d,0x53,-_0x1c9bc6._0x5c733f)]===_0x1ffde8(-0x11f,-0x4d,_0x1c9bc6._0x273d9e,-_0x1c9bc6._0x488b9c))return[_0x1b6118[_0x1ffde8(-_0x1c9bc6._0x27dd7d,-_0x1c9bc6._0x220ace,-0x152,0x4b)]];if(typeof _0x1b6118['summary']===_0x4b42f6(_0x1c9bc6._0x1e8e55,0x122,0x173,0x1bb))return[_0x1b6118[_0x4b42f6(0x1df,0x104,_0x1c9bc6._0xc0953b,_0x1c9bc6._0x3d2197)]];return[];});function _0x2ca3d4(_0xebaa23,_0x4800f2,_0x3d448c,_0x4f12ac){return _0x5e6a6f(_0xebaa23,_0x4800f2-_0x4d1a8e._0x32eaf4,_0x4f12ac-_0x4d1a8e._0x3aa173,_0x4f12ac-0x27);}return _0x518746[_0x2ca3d4(-_0x3984c2._0x4c567b,-_0x3984c2._0x4a0577,-_0x3984c2._0x35bdb0,-0x11a)]>0x0?_0x518746[_0x2ca3d4(-_0x3984c2._0x143951,-0x64,-_0x3984c2._0x7c65f,-0x151)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x316db5){const _0xf6a0cf={_0x1f818f:0x585,_0x14dd40:0x696,_0x20da3c:0x653,_0x542888:0x566,_0x400840:0x4fa,_0x113f32:0x599,_0x16d2a8:0x645},_0x387d0a={_0x3917fc:0xc3};function _0x434ba8(_0x65b665,_0x1683d2,_0xb90e27,_0x5d4d73){return _0x5e6a6f(_0x5d4d73,_0x1683d2-0xf5,_0x65b665-0x744,_0x5d4d73-0xf3);}function _0x49eacc(_0x83b61c,_0x267b2d,_0x111305,_0x5c6349){return _0x5e6a6f(_0x267b2d,_0x267b2d-0x16b,_0x111305-0x6a9,_0x5c6349-_0x387d0a._0x3917fc);}return extractReasoningDetails(_0x316db5?.['reasoning_details'])??readString(_0x316db5?.[_0x434ba8(0x5f4,_0xf6a0cf._0x1f818f,_0xf6a0cf._0x14dd40,_0xf6a0cf._0x20da3c)])??readString(_0x316db5?.[_0x434ba8(0x512,_0xf6a0cf._0x542888,_0xf6a0cf._0x400840,0x5b5)])??readString(_0x316db5?.[_0x434ba8(_0xf6a0cf._0x113f32,0x5b3,0x60f,_0xf6a0cf._0x16d2a8)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x2088d4(0xde,0x53,0x107,0x87)]=[];[_0x5e6a6f(0x2b,-0x49,-0x7e,-0x132)];[_0x2088d4(0x88,0x129,0x67,0x10d)]=[];[_0x5e6a6f(-0x1b9,-0x2ed,-0x20d,-0x1bc)]=new Map();[_0x2088d4(0x22,0x12,0x113,0xb8)]=[];['toolUseStartEmitted']=new Set();[_0x2088d4(0x1e3,0x19e,0x1f8,0x17d)]='';[_0x2088d4(0x9b,0x14d,0x12e,0x189)]=_0x2088d4(0xf4,0x8f,0xcd,0x103);[_0x5e6a6f(0x35,0xc,-0xac,-0x10c)];constructor(_0x2f94da){this['request']=_0x2f94da;}[_0x2088d4(0x18b,0x23a,0x189,0x20e)](_0x289ccb){const _0x12c821={_0x3dbfca:0x34,_0x277550:0xa2,_0x33a8e6:0x20,_0x28f8d4:0x89,_0x354a59:0x30,_0x42f425:0x96,_0x1bcf8a:0x39,_0x12291b:0x122,_0x3cb43c:0x81,_0x53a452:0x39,_0x1a1f46:0x66,_0x5493d3:0xe1,_0xaf0d59:0x24,_0x9a0597:0xb8,_0xca94e3:0x11a},_0x10772c={_0x22eab4:0x1c,_0x510a00:0x9c},_0x32fe55={_0x34f6a6:0x23a};function _0xd76f57(_0xbdde41,_0x41072e,_0xab4ba5,_0x4c46c8){return _0x2088d4(_0xbdde41-0x17d,_0x41072e-0xec,_0xab4ba5,_0xbdde41- -_0x32fe55._0x34f6a6);}const _0x14beef=readSseData(_0x289ccb);if(_0x14beef['length']===0x0||_0x14beef===_0x459bc5(_0x12c821._0x3dbfca,-0x16,_0x12c821._0x277550,-_0x12c821._0x33a8e6))return[];const _0x2bd7da=JSON[_0x459bc5(0x64,0x89,-_0x12c821._0x28f8d4,_0x12c821._0x354a59)](_0x14beef);function _0x459bc5(_0x5624c0,_0x1d137e,_0x2aa5cc,_0x51162e){return _0x5e6a6f(_0x2aa5cc,_0x1d137e-_0x10772c._0x22eab4,_0x51162e-0x112,_0x51162e-_0x10772c._0x510a00);}return this[_0x459bc5(0x86,-_0x12c821._0x42f425,0x4b,-_0x12c821._0x1bcf8a)]=_0x2bd7da['id']??this[_0x459bc5(-_0x12c821._0x12291b,-0xee,_0x12c821._0x3cb43c,-_0x12c821._0x53a452)],this[_0x459bc5(0x55,0x95,0xb1,_0x12c821._0x1a1f46)]=_0x2bd7da[_0x459bc5(-0x37,0x11a,0x8,0x66)]??this[_0xd76f57(-0x1e,-_0x12c821._0x5493d3,_0x12c821._0xaf0d59,-0x8)],this[_0xd76f57(-_0x12c821._0x9a0597,-0x15b,-_0x12c821._0xca94e3,-0x87)](_0x2bd7da);}['finish'](){const _0x22bafa={_0x5215fa:0x4b8,_0x2672a2:0x42f,_0x23eef7:0x4b6,_0x292552:0x64b,_0x1fe5fa:0x596,_0x3400eb:0x567,_0x1a8755:0x278,_0x3f7a77:0xe6,_0x46c602:0x254,_0x544fd8:0x1a,_0x5603b1:0x533,_0x50ce75:0x526,_0x3fb663:0x485,_0x4b37e3:0x4ed,_0x227333:0x1d2,_0x18245d:0xde,_0x117c35:0x440,_0x11a75c:0x1a2,_0x430b45:0x16a,_0x307544:0x1a3,_0x31ab47:0x157,_0x138257:0xc4,_0xdbd744:0x296,_0x46dda8:0x23e},_0x2d7d4a={_0x39e044:0x1d0,_0x4b1cd1:0x6c6};function _0x211fe6(_0x37d9a7,_0x57d688,_0x490c9b,_0x34f940){return _0x5e6a6f(_0x490c9b,_0x57d688-0xc1,_0x34f940-0x64,_0x34f940-0x121);}this[_0x2075d0(0x3ce,_0x22bafa._0x5215fa,_0x22bafa._0x2672a2,_0x22bafa._0x23eef7)][_0x2075d0(0x628,_0x22bafa._0x292552,_0x22bafa._0x1fe5fa,_0x22bafa._0x3400eb)]>0x0&&(this['stopReason']=_0x211fe6(-_0x22bafa._0x1a8755,-_0x22bafa._0x3f7a77,-_0x22bafa._0x46c602,-0x1cf));function _0x2075d0(_0x355ba7,_0x100ea8,_0x10d5f4,_0x23b29b){return _0x5e6a6f(_0x10d5f4,_0x100ea8-_0x2d7d4a._0x39e044,_0x23b29b-_0x2d7d4a._0x4b1cd1,_0x23b29b-0x7f);}const _0x288a19=isUserVisibleReasoning(this[_0x211fe6(0xcd,-0x19,0x93,-_0x22bafa._0x544fd8)])?this[_0x2075d0(_0x22bafa._0x5603b1,_0x22bafa._0x50ce75,0x3a9,_0x22bafa._0x3fb663)][_0x2075d0(0x48e,0x51e,_0x22bafa._0x4b37e3,0x530)](''):void 0x0;return{'id':this[_0x211fe6(-_0x22bafa._0x227333,-_0x22bafa._0x18245d,-0x97,-0xe7)]||_0x2075d0(0x51a,0x5a4,_0x22bafa._0x117c35,0x4c7)+Date[_0x211fe6(-0x1f5,-0x201,-0x141,-_0x22bafa._0x11a75c)](),'content':createContentBlocks(this[_0x211fe6(-_0x22bafa._0x430b45,-_0x22bafa._0x307544,-0x147,-_0x22bafa._0x31ab47)][_0x211fe6(-_0x22bafa._0x138257,-0x137,-0x1d7,-0x132)](''),this[_0x211fe6(-0x279,-_0x22bafa._0xdbd744,-_0x22bafa._0x46dda8,-0x1ac)],_0x288a19),'stopReason':this['stopReason'],'usage':createUsage(this['usage'])};}['consumeEvent'](_0x3116a8){const _0x3e6874={_0x11e48f:0x7f,_0xd28ef0:0xae,_0x28a3db:0x37,_0x2aa852:0x3a2,_0x2cb590:0x377,_0x24b483:0x53,_0x3c7ec4:0x59,_0x19068b:0x32b,_0x3d497d:0x366,_0x45cf27:0x365,_0x4d9e0c:0x396,_0x590c42:0x62,_0x5901a6:0x24,_0x47eb83:0x45,_0x363e01:0x2,_0x24c398:0xbf,_0x4ae184:0x94,_0x58b75f:0x2,_0x5e4d1d:0x2e2,_0x1650ed:0x3be,_0x313992:0x3de,_0x5239da:0x42d,_0xd00bfe:0x4ae,_0x303561:0x399,_0x1f7e93:0x415,_0x28c9b8:0x545,_0xf41e9:0x2fd,_0x19647e:0x75,_0x1e23fd:0xc7,_0x47883c:0x434,_0x8b777b:0x3ec,_0x3a41e3:0x3a6,_0x574c48:0x3fe,_0x207b29:0x61,_0x87eb52:0x23,_0x3da06b:0xe7,_0xd32d81:0x2e,_0x3bd350:0x17a,_0x15164f:0xd2,_0x33bac3:0x4bd,_0x448fc9:0x3e8,_0x4d6da4:0x3d1,_0x3f9bec:0x376,_0x5e64bb:0x39a,_0x4a13d5:0x389,_0x5c3041:0x375,_0x35c86f:0x44e,_0x5d9a90:0x303,_0x545ae4:0x3ba,_0x424e02:0xd3,_0x3f229c:0x71,_0x1e9186:0x18,_0x57e5af:0x4d3,_0x491d0e:0x3e9,_0x3e8ac6:0x428,_0x5cf95c:0x9,_0xe50daf:0xb4,_0x531cce:0xb9,_0x51b280:0x44d,_0x5786a1:0x489,_0x2b69f1:0x4ca,_0x2eb6d3:0x194,_0x55fb58:0xbe,_0x2e2598:0x62,_0x205cbf:0x90,_0x14a5fd:0x448,_0x2d9faf:0x476,_0x340aa9:0x410,_0x244c65:0x38b,_0x283f1a:0x72,_0x55e40b:0x99,_0x411783:0x481,_0x2140f2:0x3da,_0x2c9834:0x42f,_0x37e414:0x8b,_0x530122:0x106,_0x4c188e:0xa,_0x1a5366:0x39,_0x3254c0:0x3a4,_0x8c5cd:0x3ec},_0x5f55e6={_0x4bfc9f:0x1cb,_0x5a7abb:0x1a2},_0x44332a={_0x1d34d9:0x19f},_0x1c3d66=[];function _0x57a10c(_0xe0f968,_0x421372,_0x44cc11,_0x4615ec){return _0x5e6a6f(_0x44cc11,_0x421372-_0x44332a._0x1d34d9,_0x421372-0x5a7,_0x4615ec-0xcc);}for(const _0x3b1210 of _0x3116a8[_0x5042da(_0x3e6874._0x11e48f,_0x3e6874._0xd28ef0,_0x3e6874._0x28a3db,0x21)]??[]){const _0x2ec1c7=_0x3b1210[_0x57a10c(0x357,_0x3e6874._0x2aa852,0x47b,_0x3e6874._0x2cb590)],_0xa3be69=extractChatCompletionReasoningDelta(_0x2ec1c7);_0xa3be69[_0x5042da(0x58,-0x124,-_0x3e6874._0x24b483,-_0x3e6874._0x3c7ec4)]>0x0&&(this[_0x57a10c(_0x3e6874._0x19068b,_0x3e6874._0x3d497d,_0x3e6874._0x45cf27,0x285)][_0x57a10c(0x2f3,0x3ba,0x3fa,_0x3e6874._0x4d9e0c)](_0xa3be69),isUserVisibleReasoning(this['request'])&&_0x1c3d66['push']({'type':_0x5042da(0x140,0xbe,-0x43,_0x3e6874._0x590c42),'contentIndex':0x0,'delta':_0xa3be69,'itemId':(this[_0x5042da(-0x87,-_0x3e6874._0x5901a6,-0xea,-_0x3e6874._0x47eb83)]||'chatcmpl')+_0x5042da(_0x3e6874._0x363e01,_0x3e6874._0x24c398,_0x3e6874._0x4ae184,-_0x3e6874._0x58b75f),'outputIndex':0x0}));const _0x105254=typeof _0x2ec1c7?.[_0x57a10c(_0x3e6874._0x5e4d1d,0x399,_0x3e6874._0x1650ed,_0x3e6874._0x313992)]===_0x57a10c(_0x3e6874._0x5239da,_0x3e6874._0xd00bfe,0x3f2,0x56b)?_0x2ec1c7[_0x57a10c(0x385,_0x3e6874._0x303561,0x3b3,_0x3e6874._0x1f7e93)]:typeof _0x2ec1c7?.[_0x57a10c(0x358,0x398,0x431,0x360)]===_0x57a10c(0x527,_0x3e6874._0xd00bfe,0x534,_0x3e6874._0x28c9b8)?_0x2ec1c7[_0x57a10c(0x468,0x398,_0x3e6874._0xf41e9,0x2d8)]:'';_0x105254[_0x5042da(-_0x3e6874._0x19647e,-0x92,-_0x3e6874._0x1e23fd,-0x59)]>0x0&&(this[_0x57a10c(_0x3e6874._0x47883c,_0x3e6874._0x8b777b,_0x3e6874._0x3a41e3,_0x3e6874._0x574c48)]['push'](_0x105254),_0x1c3d66[_0x5042da(-0xa3,-_0x3e6874._0x207b29,-_0x3e6874._0x87eb52,-_0x3e6874._0x3da06b)]({'type':_0x5042da(_0x3e6874._0x3c7ec4,-0xdb,-0x5,-0x3f),'index':0x0,'text':_0x105254}));for(const _0x161a30 of _0x2ec1c7?.[_0x5042da(0x3a,-_0x3e6874._0x5901a6,-_0x3e6874._0xd32d81,-0x5f)]??[]){const _0x3f0cce=_0x161a30['index']??0x0;let _0x415487=this[_0x5042da(-0x8d,-_0x3e6874._0x3bd350,-_0x3e6874._0x15164f,-0x107)]['get'](_0x3f0cce);!_0x415487&&(_0x415487={'id':_0x161a30['id']??_0x5042da(-0x172,-0xfd,-0x2b,-0x110)+_0x3f0cce,'type':'function','function':{'name':_0x161a30[_0x57a10c(_0x3e6874._0x33bac3,_0x3e6874._0x448fc9,_0x3e6874._0x4d6da4,_0x3e6874._0x3f9bec)]?.[_0x5042da(-0xa3,-0xeb,-0xf5,-0x18)]??'','arguments':''}},this[_0x57a10c(0x471,_0x3e6874._0x5e64bb,0x40e,0x437)][_0x57a10c(_0x3e6874._0x4a13d5,0x44e,_0x3e6874._0x5c3041,_0x3e6874._0x35c86f)](_0x3f0cce,_0x415487),this[_0x57a10c(0x3b5,0x397,0x3f9,_0x3e6874._0x5d9a90)][_0x57a10c(0x36a,_0x3e6874._0x545ae4,_0x3e6874._0x19068b,0x2d4)](_0x415487));_0x161a30['id']&&(_0x415487['id']=_0x161a30['id']);_0x161a30['function']?.['name']&&(_0x415487[_0x5042da(-_0x3e6874._0x424e02,-0x136,-0xbb,-0xb9)][_0x5042da(0xb4,-0xb0,-_0x3e6874._0x3f229c,-_0x3e6874._0x1e9186)]=_0x161a30['function'][_0x57a10c(0x4a2,0x489,0x53c,0x401)]);!this[_0x57a10c(0x4bd,0x50d,_0x3e6874._0x57e5af,0x426)][_0x57a10c(_0x3e6874._0x545ae4,_0x3e6874._0x491d0e,_0x3e6874._0x3e8ac6,0x45f)](_0x3f0cce)&&_0x415487[_0x5042da(-0x1aa,-_0x3e6874._0x5cf95c,-_0x3e6874._0xe50daf,-_0x3e6874._0x531cce)][_0x57a10c(_0x3e6874._0x51b280,_0x3e6874._0x5786a1,0x566,0x4ae)][_0x57a10c(0x2ff,0x3e6,0x3c1,_0x3e6874._0x2b69f1)]()['length']>0x0&&(_0x1c3d66[_0x5042da(-0x1af,-0xc8,-0xbb,-_0x3e6874._0x3da06b)]({'type':_0x5042da(-0xc7,-0xf3,-_0x3e6874._0x2eb6d3,-0xc7),'id':_0x415487['id'],'index':_0x3f0cce,'name':_0x415487[_0x5042da(-0x10c,-_0x3e6874._0x55fb58,-0x100,-0xb9)][_0x5042da(-_0x3e6874._0x2e2598,-0x94,-0x2f,-_0x3e6874._0x1e9186)]}),this[_0x5042da(_0x3e6874._0x2e2598,0x8,_0x3e6874._0x205cbf,0x6c)]['add'](_0x3f0cce));const _0x24bae6=_0x161a30['function']?.['arguments']??'';_0x24bae6[_0x57a10c(0x4f2,_0x3e6874._0x14a5fd,0x505,_0x3e6874._0x2d9faf)]>0x0&&(_0x415487[_0x57a10c(_0x3e6874._0x340aa9,_0x3e6874._0x448fc9,0x354,_0x3e6874._0x244c65)][_0x5042da(-0x59,-0x179,-0x151,-0x10b)]+=_0x24bae6,_0x1c3d66[_0x5042da(-_0x3e6874._0x283f1a,-_0x3e6874._0x55e40b,-0x19f,-_0x3e6874._0x3da06b)]({'type':_0x57a10c(_0x3e6874._0x411783,_0x3e6874._0x2140f2,_0x3e6874._0x2c9834,0x3d0),'id':_0x415487['id'],'index':_0x3f0cce,'inputDelta':_0x24bae6}));}_0x3b1210[_0x5042da(-0x17f,-0x19e,-0x106,-0x137)]==='tool_calls'&&(this[_0x5042da(-_0x3e6874._0x37e414,-_0x3e6874._0x530122,-_0x3e6874._0x4c188e,-_0x3e6874._0x1a5366)]=_0x57a10c(_0x3e6874._0x3254c0,0x374,0x367,_0x3e6874._0x8c5cd));}function _0x5042da(_0x459e0b,_0x4d2ae9,_0x58bad3,_0x3f7dd5){return _0x2088d4(_0x459e0b-_0x5f55e6._0x4bfc9f,_0x4d2ae9-_0x5f55e6._0x5a7abb,_0x58bad3,_0x3f7dd5- -0x1c2);}return _0x1c3d66;}},OpenAiResponsesStreamParser=class{[_0x5e6a6f(-0x22b,-0x12b,-0x1b6,-0x14e)]=new Map();[_0x2088d4(0x13b,0x18c,0x167,0xf7)];[_0x2088d4(0xbe,0x173,0xb9,0x155)]=new Map();['outputIndexToReasoningId']=new Map();['reasoningItems']=new Map();[_0x2088d4(0x2b7,0x336,0x284,0x24a)];[_0x2088d4(0x298,0x256,0x1e5,0x218)]=new Map();['toolCalls']=new Map();constructor(_0x41a148){const _0x25fba6={_0x78a732:0x226},_0x518f55={_0x56cd3a:0x1dd};function _0x3c5fca(_0x47fda1,_0x27cc16,_0x21a688,_0x947db){return _0x5e6a6f(_0x21a688,_0x27cc16-0x2e,_0x27cc16-_0x518f55._0x56cd3a,_0x947db-0x199);}this[_0x3c5fca(0x185,0x15f,0xee,_0x25fba6._0x78a732)]=_0x41a148;}[_0x2088d4(0x2f6,0x16e,0x22b,0x20e)](_0x16c6c6){const _0x43fc28={_0x36bc87:0x5d7,_0xb38440:0x6e9,_0x98f044:0x196,_0x1ec641:0xe3,_0x17bf84:0x5d8,_0x50ea5c:0x611,_0x25e8c7:0x555,_0xd3d74a:0xc,_0x2405ce:0x125,_0x1fed78:0x81,_0x1f08ab:0x88,_0x5bf28e:0x61,_0x148240:0x14,_0x11c932:0x125,_0x322c04:0x167,_0x873caa:0x5d0,_0xad8c64:0x11d,_0xbe6524:0xe6},_0x1e3f2d={_0xb11af7:0x44e},_0x37fc61={_0x3dd0d6:0x127};function _0x30db9b(_0x334f51,_0x1932f5,_0x51f26c,_0x4d15c0){return _0x2088d4(_0x334f51-0x134,_0x1932f5-_0x37fc61._0x3dd0d6,_0x1932f5,_0x4d15c0- -0x119);}const _0x4e8d06=_0x16c6c6['split']('\x0a'),_0x353829=_0x4e8d06[_0x126b69(_0x43fc28._0x36bc87,0x6fd,_0x43fc28._0xb38440,0x662)](_0x802abc=>_0x802abc[_0x30db9b(0x2e,0xda,0x176,0xbe)](_0x30db9b(0xd0,0x22,0x95,0xd9)))?.[_0x30db9b(_0x43fc28._0x98f044,0x12d,0x4f,_0x43fc28._0x1ec641)](0x6)[_0x126b69(_0x43fc28._0x17bf84,0x57d,_0x43fc28._0x50ea5c,_0x43fc28._0x25e8c7)](),_0x26e1a5=_0x4e8d06[_0x30db9b(_0x43fc28._0xd3d74a,_0x43fc28._0x2405ce,_0x43fc28._0x1fed78,_0x43fc28._0x1f08ab)](_0x3d3c75=>_0x3d3c75[_0x126b69(0x678,0x715,0x715,0x625)]('data:'))['map'](_0x9d9e57=>_0x9d9e57[_0x126b69(0x5ba,0x662,0x56c,0x64a)](0x5)['trimStart']())['join']('\x0a')[_0x30db9b(_0x43fc28._0x5bf28e,-0x1e,_0x43fc28._0x148240,-0x12)]();if(_0x26e1a5['length']===0x0||_0x26e1a5===_0x30db9b(-0x1b,_0x43fc28._0x11c932,_0x43fc28._0x322c04,0x7d))return[];const _0xc5cee7=JSON['parse'](_0x26e1a5);function _0x126b69(_0x3e8bc4,_0x451bac,_0x260bdc,_0x58ead6){return _0x2088d4(_0x3e8bc4-0xf4,_0x451bac-0x1ba,_0x451bac,_0x58ead6-_0x1e3f2d._0xb11af7);}return this[_0x126b69(0x59b,0x569,0x570,_0x43fc28._0x873caa)](_0x353829??String(_0xc5cee7[_0x30db9b(_0x43fc28._0xad8c64,0x4e,0x13f,_0x43fc28._0xbe6524)]??''),_0xc5cee7);}[_0x2088d4(0x81,0xb4,0xc5,0xa9)](_0x51e37a){const _0x5185a0={_0x50d76d:0x324,_0x528096:0x28d,_0x27a20b:0x3a1},_0x46f922={_0xbd3f6d:0x2b},_0x5b89f8={_0x2ad3b2:0x1b6,_0x2518c8:0x15};function _0x5c3bb7(_0x4a865f,_0x7017aa,_0x1bc9db,_0x34681d){return _0x2088d4(_0x4a865f-0xe3,_0x7017aa-_0x5b89f8._0x2ad3b2,_0x7017aa,_0x34681d- -_0x5b89f8._0x2518c8);}function _0xc843e(_0x43a4c6,_0x41c969,_0x4248d0,_0x5ac5ae){return _0x2088d4(_0x43a4c6-0x1a6,_0x41c969-_0x46f922._0xbd3f6d,_0x5ac5ae,_0x4248d0-0x1a2);}return this[_0xc843e(0x2d7,0x40e,_0x5185a0._0x50d76d,_0x5185a0._0x528096)](String(_0x51e37a[_0xc843e(0x43c,0x327,_0x5185a0._0x27a20b,0x3bb)]??''),_0x51e37a);}[_0x2088d4(0x1a2,0x10d,0x1,0xe9)](){const _0xe2e30e={_0x388de0:0x397,_0x318dd0:0x303,_0x52eb5f:0x260,_0x5ae4ec:0x352,_0x45cbe2:0x22a,_0x25dca3:0x26c,_0x423133:0x301,_0x780f8:0x274,_0x545884:0x3b4,_0x7ed3d3:0x342,_0x291437:0x2f8,_0x219056:0x2d0,_0x3a5d76:0x344,_0x427851:0x3b5,_0x2fe438:0x372,_0x172833:0x35b,_0x502e26:0x431,_0x42d1cf:0x1dd,_0x364c6c:0x33b,_0x3a8cd4:0x36e,_0x6cd99e:0x446,_0x18b961:0x425,_0x47eae0:0x455},_0x49072a={_0x4ace47:0xd7,_0x23af44:0x4d4},_0x1c9d62={_0x9029b1:0x5c},_0x1a4d63=this['buildPartialOutput'](),_0x8668b0=this[_0x2c8dd4(0x390,0x2a0,_0xe2e30e._0x388de0,_0xe2e30e._0x318dd0)]?{...this[_0x2c8dd4(0x257,_0xe2e30e._0x52eb5f,_0xe2e30e._0x5ae4ec,0x303)],'output':this[_0x55936b(0x350,_0xe2e30e._0x45cbe2,_0xe2e30e._0x25dca3,_0xe2e30e._0x423133)][_0x2c8dd4(_0xe2e30e._0x780f8,_0xe2e30e._0x545884,0x299,_0xe2e30e._0x7ed3d3)]&&this[_0x2c8dd4(_0xe2e30e._0x291437,0x24e,_0xe2e30e._0x219056,0x303)][_0x2c8dd4(0x40c,0x3e7,_0xe2e30e._0x3a5d76,0x342)][_0x55936b(0x355,0x43e,_0xe2e30e._0x427851,0x373)]>0x0?this[_0x55936b(0x283,0x2c8,0x29b,0x301)][_0x2c8dd4(_0xe2e30e._0x2fe438,_0xe2e30e._0x172833,_0xe2e30e._0x502e26,0x342)]:_0x1a4d63}:{'id':'resp-'+Date[_0x55936b(0x344,_0xe2e30e._0x42d1cf,_0xe2e30e._0x364c6c,0x2cc)](),'object':'response','status':_0x2c8dd4(_0xe2e30e._0x3a8cd4,0x3da,0x280,0x36b),'output':_0x1a4d63,'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x55936b(_0x5f1220,_0xc60a1b,_0xefba26,_0x574744){return _0x5e6a6f(_0xc60a1b,_0xc60a1b-0x14a,_0x574744-0x4d2,_0x574744-_0x1c9d62._0x9029b1);}function _0x2c8dd4(_0x49e212,_0x5b6ca3,_0x51bda6,_0x279c77){return _0x5e6a6f(_0x51bda6,_0x5b6ca3-_0x49072a._0x4ace47,_0x279c77-_0x49072a._0x23af44,_0x279c77-0x25);}return parseResponsesResponse(_0x8668b0,this[_0x2c8dd4(_0xe2e30e._0x6cd99e,_0xe2e30e._0x18b961,_0xe2e30e._0x47eae0,0x456)]);}[_0x5e6a6f(-0x1d3,-0x1bc,-0x104,-0x106)](){const _0x190db5={_0x557bdb:0x3e,_0x4e3a8e:0x39},_0x1ab0d7={_0xc9b6b7:0x22};function _0x590a76(_0x156d64,_0x10a057,_0x25a0e2,_0x2e69e8){return _0x2088d4(_0x156d64-_0x1ab0d7._0xc9b6b7,_0x10a057-0x93,_0x10a057,_0x2e69e8- -0x10c);}return this[_0x590a76(_0x190db5._0x557bdb,-_0x190db5._0x4e3a8e,0x25,-0x15)]!==void 0x0;}[_0x2088d4(0xb6,0xe8,0x22c,0x182)](_0x22c201,_0x492b24){const _0x359fe1={_0x39b335:0x6a2,_0x3fa405:0x62e,_0x498706:0x530,_0x21c5f7:0x5d1,_0x472e3e:0x2d6,_0x2fcba1:0x279,_0x3bbb65:0x2db,_0x4f1df8:0x49a,_0x4c63ca:0x579,_0x1509fc:0x515,_0x299962:0x385,_0x45e9fd:0x3a7,_0x5813a0:0x3b0,_0x46642f:0x492,_0x4800bb:0x367,_0x33083c:0x405,_0x57f777:0x5d7,_0xb061b5:0x5f9,_0x4dba34:0x40b,_0x1ba5d2:0x30f,_0x2af8d9:0x5d5,_0x4d9bca:0x2d2,_0x376261:0x4ad,_0x4b0231:0x2c6,_0x5d50b8:0x4c5,_0x21d7c9:0x1f6,_0x193a7a:0x2d6,_0x3bddea:0x296,_0x5e2377:0x2f1,_0x200c06:0x301,_0x4acf01:0x416,_0x31567d:0x508,_0x24b02c:0x337,_0x358f5b:0x41f,_0x30c5f2:0x2f9,_0x39a8b9:0x533,_0x413995:0x5e9,_0x3b4646:0x2be,_0x54a466:0x285,_0x592ba5:0x47f,_0x55eb63:0x230,_0x28a503:0x25d,_0x917205:0x502,_0x520ab2:0x5dc,_0x5b8f8c:0x350,_0x47697a:0x241,_0x31a617:0x207,_0x347de5:0x170,_0x2afcb0:0x314,_0x4626c6:0x24f,_0x521cf1:0x363,_0xb8c5ac:0x1fc,_0x229871:0x4a9,_0x4a7bd1:0x299,_0x2b7aae:0x21b,_0x39b4ef:0x1b0,_0x5d4c4f:0x104,_0x55fec5:0x150,_0x2b0642:0x2f9,_0x5cd154:0x31a,_0x425235:0x2cc,_0x5aeb78:0x37e,_0x5ae575:0x176,_0x7d7b9c:0x227,_0x3c9174:0x2b6,_0x5a4958:0x1aa,_0x598ad7:0x303,_0x5eb71b:0x273,_0x436513:0x2cb,_0x5bc41c:0x273,_0x26f30a:0x1f5,_0x16079c:0x286,_0xfab5c:0x216,_0x52542b:0x277,_0x682475:0x1fd,_0xa3bcf8:0x5fa,_0x9bd8a3:0x4d8,_0x296c12:0x368,_0x5829ba:0x31e,_0x5473a3:0x269,_0x313fdb:0x185,_0x44c83a:0x239,_0x3c84d0:0x51c,_0x2e0533:0x5b7,_0xbb6e16:0x258,_0x320f55:0x2b8,_0x192772:0x434,_0x15a323:0x39c,_0x417d60:0x49b,_0x238721:0x4ca,_0x30c7ea:0x4d2,_0x2df1d8:0x4e1,_0x5b1e8b:0x5f9,_0x196f47:0x4d0,_0x19bb68:0x50b,_0x3ebbb8:0x556,_0x3820ff:0x272,_0x3061b3:0x4da,_0x22d4c7:0x556,_0x2e4107:0x64d,_0x5ec7c4:0x5ef,_0x3d6ea9:0x211,_0x3d30b0:0x2d4,_0x201dc3:0x2dd,_0x20f365:0x138,_0x513d9e:0x1e8,_0x24dbe5:0x292,_0x18137c:0x5c9,_0x9ed244:0x4db,_0x210947:0x5f6,_0x5e5617:0x524,_0x105781:0x6af,_0x130479:0x4fb,_0x91113b:0x556,_0x4f9457:0x369,_0x6a27d:0x2ac,_0x32839b:0x67a,_0x51241b:0x56f,_0x402c3c:0x506,_0x38074e:0x4f5,_0x5b1185:0x2bd,_0x4a77df:0x261,_0xa991f1:0x3d9,_0x8610a0:0x4fe,_0x52e7cc:0x53a,_0x19f78f:0x4bd,_0x18942b:0x228,_0x53ba96:0x28f,_0x374b6a:0x370,_0x37d02b:0x52a,_0x55c024:0x5f2,_0x4f008c:0x476,_0x11c781:0x34e,_0x292e4e:0x37d,_0x8297b4:0x28f,_0x16b1fa:0x52f,_0x45a931:0x493,_0x3bfcd6:0x3b7,_0x408772:0x441,_0x351927:0x3bd,_0x27e962:0x6b5,_0x137e6e:0x59b,_0x318b01:0x4fb,_0x4d78a6:0x55b,_0x456a07:0x58a,_0x3680a2:0x50f,_0x48ae4d:0x4df,_0x37d519:0x3ab,_0x1262ca:0x486,_0x8cf99d:0x2c7,_0x1849c3:0x52f,_0x8f0466:0x4b3,_0x38a568:0x499,_0x2406f4:0x34f,_0x9a54f2:0x3a6,_0x3ed43d:0x134,_0x576302:0x219,_0x4fe496:0x154,_0x4dff74:0x27b,_0x15f094:0x3fd,_0x3600b2:0x2e0,_0x3b78ba:0x240,_0x2bd765:0x210,_0x2e47a0:0x2c0,_0x34180f:0x5c9,_0x52d96c:0x31e,_0x4ae101:0x3c0,_0x6946c6:0x563,_0x1808c3:0x569,_0x467a02:0x2e1,_0x349324:0x260,_0x3d4bc9:0x270,_0x45a9f0:0x2fe,_0x14a4df:0x36c,_0xa22e09:0x2da,_0x3e701a:0x2fe,_0x32d042:0x222,_0x3d11fa:0x5b8,_0x4e5ee4:0x59e,_0x22e648:0x5b2,_0x35d71d:0x53e,_0x1c7b00:0x41b,_0x4c7025:0x5d1,_0xd537a5:0x43b,_0x56fa81:0x4e7,_0x2f21e1:0x59e,_0x7e9bd5:0x1e2,_0xad10cb:0x182,_0x5447f3:0x1c0,_0x423add:0x4b7,_0x49970e:0x5b8,_0x113b6a:0x48b,_0x3dcb1c:0x44f,_0x42bce7:0x42d,_0x4cb26b:0x4a7,_0x206803:0x379,_0x556e79:0x2f4,_0x5a2b2c:0x3e6,_0x22d3d8:0x2db,_0x1c52b0:0x4ce,_0x112605:0x42e,_0x328241:0x4d7,_0x5f4314:0x2b8,_0x56416e:0x25b,_0x59194f:0x36b,_0x4caa94:0x571,_0x40fcf2:0x57f,_0x856519:0x658,_0x2e48d9:0x50a,_0x1979c5:0x399,_0x16874c:0x35a,_0x11baaa:0x43a,_0x2e8a68:0x660,_0x37df79:0x5b9,_0x3afd03:0x5b6,_0xa519ac:0x42e,_0x5c7d21:0x599,_0x7be8d7:0x50f,_0x22e46c:0x555,_0x28c282:0x384,_0x4886f6:0x32c,_0x2e7f67:0x4b1,_0xcea321:0x4ce,_0x4c572d:0x2d6,_0x3c73cf:0x2f7,_0x4c44ff:0x54d,_0x46ae64:0x5e0,_0x5f2d6c:0x42b,_0x3965cc:0x327,_0x3e06da:0x319,_0x5a94f7:0x290,_0x4d39f2:0x55f,_0x4a65ad:0x4e5,_0x64a664:0x604,_0x1bee06:0x229,_0x4a73e9:0x477,_0x5761c5:0x485,_0x24d8c5:0x4e2,_0x3593fd:0x551,_0x3a5746:0x284,_0x1623d1:0x4b9,_0x5ae101:0x57e,_0x2af757:0x4c3,_0x39d029:0x4d1,_0x3a4aae:0x396,_0xb2aa80:0x2e9,_0x195882:0x3a2,_0x483a22:0x571,_0x4a9799:0x527,_0x830441:0x470,_0x29a049:0x492,_0x59782e:0x514,_0x57dee4:0x536,_0x56020f:0x5c9,_0x381424:0x4bf,_0x1cbdca:0x531,_0xc4e928:0x47a,_0x2503be:0x5f7,_0x1e7f1f:0x556,_0x211b70:0x151,_0x45c7e1:0x1b1,_0x1f3ec3:0x58f,_0x37f3ad:0x59b,_0x25b257:0x647,_0x47d73f:0x4c9,_0x348bb7:0x52e,_0x2f5b67:0x4b4,_0x5f9beb:0x4ff,_0x111a2c:0x2db,_0x110656:0x213,_0x23fa51:0x2cf,_0x59ccf0:0x5cd,_0x109290:0x600,_0x7570c9:0x538,_0x53c932:0x44e,_0x4b76ab:0x4b3,_0x4f2643:0x4f3,_0x5e727a:0x283,_0x543c43:0x2fa,_0x405bed:0x3a1,_0x1f3870:0x3ab,_0x406964:0x294,_0x8f3e1d:0x3ea,_0x47e33c:0x29e,_0x56bfc2:0x373,_0x4b7e2d:0x2ec,_0x463df2:0x331,_0x3c0ea5:0x24e,_0x3ba3bd:0x222,_0xa28f95:0x298,_0x6c26f7:0x57e,_0x4a2917:0x5f9,_0x2c1f10:0x561,_0x2a925c:0x31e,_0x169aac:0x38d,_0x544f13:0x477,_0x3d4309:0x522,_0x46a29d:0x3b7,_0x13d2b6:0x59a,_0x1deb02:0x590,_0x24a014:0x55b,_0x37bc55:0x4af,_0x4d8f1b:0x484,_0x407101:0x493,_0x448f72:0x31e,_0x2ab77d:0x260,_0x480058:0x333,_0x380857:0x2fa,_0x105a2f:0x31c,_0x142bab:0x300,_0x479736:0x246,_0x374136:0x254,_0x29886c:0x277,_0x1134e4:0x418,_0x281aa4:0x584,_0x32a815:0x3c6,_0x49c4bc:0x4b0,_0x2f127b:0x423,_0xc66cce:0x45a,_0x1b0fa3:0x24c,_0x42558b:0x219,_0x40383e:0x21d,_0x394386:0x205,_0x517b67:0x247,_0x5bc317:0x65c,_0x51d4d6:0x566,_0x428d45:0x5ae,_0x477c19:0x1fc,_0x3016d0:0x2b9,_0x274a8a:0x18e,_0x294fa5:0x23d,_0x2b919b:0x237,_0x8c15b4:0x4f8,_0x3cadce:0x62f,_0x5033c9:0x58c},_0x2a77b6={_0x1310b2:0x195},_0x526f1d={_0x3e4b19:0x1d1,_0x3f7615:0x105};function _0x309d37(_0x4ad8d5,_0x543d95,_0x321f18,_0x26ad63){return _0x5e6a6f(_0x26ad63,_0x543d95-_0x526f1d._0x3e4b19,_0x543d95-0x417,_0x26ad63-_0x526f1d._0x3f7615);}function _0x19647c(_0x171f72,_0x280fc6,_0x3b87ef,_0x13b78b){return _0x2088d4(_0x171f72-0x7a,_0x280fc6-_0x2a77b6._0x1310b2,_0x280fc6,_0x13b78b-0x3cf);}switch(_0x22c201){case _0x19647c(_0x359fe1._0x39b335,_0x359fe1._0x3fa405,_0x359fe1._0x498706,_0x359fe1._0x21c5f7):{const _0x549161=typeof _0x492b24[_0x309d37(0x21b,_0x359fe1._0x472e3e,0x3b3,_0x359fe1._0x2fcba1)]===_0x309d37(0x205,_0x359fe1._0x3bbb65,0x369,0x39e)?_0x492b24['output_index']:0x0,_0x3caffb=typeof _0x492b24[_0x19647c(_0x359fe1._0x4f1df8,_0x359fe1._0x4c63ca,_0x359fe1._0x1509fc,0x492)]===_0x309d37(_0x359fe1._0x299962,0x31e,_0x359fe1._0x45e9fd,_0x359fe1._0x5813a0)?_0x492b24[_0x19647c(0x40b,0x456,0x566,_0x359fe1._0x46642f)]:'';if(_0x3caffb['length']>0x0){const _0x2041d3=this[_0x309d37(0x429,_0x359fe1._0x4800bb,0x3b8,_0x359fe1._0x33083c)][_0x19647c(_0x359fe1._0x57f777,0x577,0x6a1,_0x359fe1._0xb061b5)](_0x549161)??[];return _0x2041d3['push'](_0x3caffb),this[_0x309d37(_0x359fe1._0x4dba34,0x367,0x36b,_0x359fe1._0x1ba5d2)][_0x19647c(0x5bf,0x5b1,_0x359fe1._0x2af8d9,0x53e)](_0x549161,_0x2041d3),[{'type':_0x309d37(0x382,_0x359fe1._0x4d9bca,0x369,0x38f),'index':_0x549161,'text':_0x3caffb}];}break;}case _0x19647c(0x49b,0x446,_0x359fe1._0x376261,0x50e):{const _0x1e7dd8=typeof _0x492b24[_0x309d37(0x20d,0x2d6,0x361,_0x359fe1._0x4b0231)]===_0x19647c(0x47a,0x646,_0x359fe1._0x5d50b8,0x55b)?_0x492b24[_0x309d37(_0x359fe1._0x21d7c9,_0x359fe1._0x193a7a,_0x359fe1._0x3bddea,0x323)]:void 0x0,_0x197091=_0x492b24[_0x309d37(_0x359fe1._0x5e2377,0x38a,_0x359fe1._0x200c06,_0x359fe1._0x4acf01)];if(_0x197091?.[_0x19647c(0x5ef,_0x359fe1._0x31567d,0x553,0x5ce)]===_0x309d37(0x3fe,0x345,_0x359fe1._0x24b02c,0x279)&&_0x197091[_0x19647c(0x521,0x47c,_0x359fe1._0x358f5b,0x468)]&&_0x197091[_0x309d37(0x377,_0x359fe1._0x30c5f2,0x365,0x344)])return this[_0x19647c(0x5aa,0x5c2,_0x359fe1._0x39a8b9,_0x359fe1._0x413995)][_0x309d37(0x1f4,_0x359fe1._0x3b4646,0x335,0x32e)](_0x197091[_0x309d37(0x27e,0x1e8,_0x359fe1._0x54a466,0x12d)],{'id':_0x197091[_0x19647c(0x503,_0x359fe1._0x592ba5,0x520,0x468)],'type':_0x309d37(_0x359fe1._0x55eb63,0x258,_0x359fe1._0x28a503,0x270),'function':{'name':_0x197091[_0x19647c(_0x359fe1._0x917205,_0x359fe1._0x520ab2,0x4fb,0x579)],'arguments':''}}),_0x1e7dd8!==void 0x0&&(this[_0x309d37(_0x359fe1._0x5b8f8c,0x2a4,0x2a4,0x269)][_0x309d37(_0x359fe1._0x47697a,0x2be,0x377,0x316)](_0x1e7dd8,_0x197091[_0x309d37(0x110,0x1e8,_0x359fe1._0x31a617,_0x359fe1._0x347de5)]),this[_0x309d37(0x2f2,0x261,_0x359fe1._0x2afcb0,_0x359fe1._0x4626c6)][_0x309d37(0x2a3,_0x359fe1._0x3b4646,_0x359fe1._0x521cf1,_0x359fe1._0xb8c5ac)](_0x197091[_0x19647c(_0x359fe1._0x229871,0x4bb,0x50f,0x468)],_0x1e7dd8)),[{'type':_0x309d37(_0x359fe1._0x4a7bd1,0x24a,_0x359fe1._0x2b7aae,_0x359fe1._0x39b4ef),'id':_0x197091[_0x309d37(_0x359fe1._0x5d4c4f,0x1e8,_0x359fe1._0x55fec5,0x1f5)],'index':_0x1e7dd8??0x0,'name':_0x197091[_0x309d37(0x337,_0x359fe1._0x2b0642,0x2bd,_0x359fe1._0x5cd154)]}];if(_0x197091?.['type']===_0x309d37(_0x359fe1._0x425235,0x2c7,_0x359fe1._0x5aeb78,0x2aa)&&_0x197091['id']){const _0x3a26f0=this['getOrCreateReasoningItem'](_0x197091['id'],_0x1e7dd8);_0x1e7dd8!==void 0x0&&this[_0x309d37(_0x359fe1._0x5ae575,_0x359fe1._0x7d7b9c,_0x359fe1._0x39b4ef,0x2eb)][_0x309d37(0x3aa,0x2be,0x33b,0x2ee)](_0x1e7dd8,_0x3a26f0['id']);}break;}case _0x309d37(_0x359fe1._0x3c9174,0x25a,_0x359fe1._0x5a4958,_0x359fe1._0x598ad7):{const _0xb35c1e=typeof _0x492b24[_0x309d37(_0x359fe1._0x5eb71b,0x1e8,0x19d,0x1af)]===_0x309d37(_0x359fe1._0x436513,0x31e,0x3bb,_0x359fe1._0x5bc41c)?_0x492b24[_0x309d37(_0x359fe1._0x26f30a,0x1e8,_0x359fe1._0x16079c,_0x359fe1._0xfab5c)]:typeof _0x492b24['output_index']===_0x309d37(_0x359fe1._0x52542b,_0x359fe1._0x3bbb65,_0x359fe1._0x682475,0x3b9)?this[_0x19647c(0x49e,_0x359fe1._0xa3bcf8,_0x359fe1._0x9bd8a3,0x524)][_0x309d37(_0x359fe1._0x296c12,0x379,0x31c,0x2bf)](_0x492b24['output_index']):void 0x0,_0x2008de=typeof _0x492b24[_0x19647c(0x578,0x43d,0x4d8,0x492)]===_0x309d37(0x35b,_0x359fe1._0x5829ba,_0x359fe1._0x5473a3,0x3a9)?_0x492b24[_0x309d37(_0x359fe1._0x313fdb,0x212,_0x359fe1._0x44c83a,0x2bc)]:'',_0x3bf66e=_0xb35c1e?this[_0x19647c(_0x359fe1._0x3c84d0,0x5d0,0x63c,0x5e9)]['get'](_0xb35c1e):void 0x0;if(_0x3bf66e&&_0x2008de[_0x19647c(_0x359fe1._0x2e0533,0x5fc,0x5ea,0x538)]>0x0)return _0x3bf66e[_0x309d37(0x1f4,_0x359fe1._0xbb6e16,_0x359fe1._0x320f55,0x1d7)][_0x19647c(_0x359fe1._0x192772,0x457,_0x359fe1._0x15a323,0x486)]+=_0x2008de,[{'type':_0x19647c(_0x359fe1._0x417d60,0x414,0x598,_0x359fe1._0x238721),'id':_0x3bf66e['id'],'index':this[_0x19647c(0x55b,_0x359fe1._0x30c7ea,0x4d7,_0x359fe1._0x2df1d8)][_0x19647c(0x6a4,0x5f2,0x63c,_0x359fe1._0x5b1e8b)](_0x3bf66e['id'])??(typeof _0x492b24[_0x19647c(0x55a,_0x359fe1._0x196f47,_0x359fe1._0x19bb68,_0x359fe1._0x3ebbb8)]===_0x309d37(0x259,0x2db,_0x359fe1._0x3820ff,0x282)?_0x492b24[_0x19647c(0x569,_0x359fe1._0x3061b3,0x4d5,_0x359fe1._0x22d4c7)]:0x0),'inputDelta':_0x2008de}];break;}case _0x19647c(_0x359fe1._0x2e4107,0x57c,0x6dd,_0x359fe1._0x5ec7c4):{const _0x28be20=typeof _0x492b24[_0x309d37(0x113,0x1e8,_0x359fe1._0x3d6ea9,_0x359fe1._0x3d30b0)]===_0x309d37(_0x359fe1._0x201dc3,0x31e,0x306,0x255)?_0x492b24[_0x309d37(_0x359fe1._0x20f365,_0x359fe1._0x513d9e,_0x359fe1._0x24dbe5,0x1ab)]:typeof _0x492b24['output_index']===_0x19647c(_0x359fe1._0x18137c,_0x359fe1._0x9ed244,0x51a,0x55b)?this[_0x19647c(0x595,0x47c,_0x359fe1._0x210947,_0x359fe1._0x5e5617)][_0x19647c(0x659,_0x359fe1._0x105781,0x5d0,_0x359fe1._0x5b1e8b)](_0x492b24[_0x19647c(_0x359fe1._0x130479,0x4f0,0x502,_0x359fe1._0x91113b)]):void 0x0,_0x1b6007=_0x28be20?this[_0x309d37(0x42e,_0x359fe1._0x4f9457,_0x359fe1._0x6a27d,0x28d)][_0x19647c(_0x359fe1._0x32839b,_0x359fe1._0x51241b,0x600,0x5f9)](_0x28be20):void 0x0;_0x1b6007&&typeof _0x492b24[_0x19647c(0x54f,_0x359fe1._0x402c3c,_0x359fe1._0x38074e,0x486)]==='string'&&(_0x1b6007[_0x309d37(_0x359fe1._0x5b1185,0x258,0x1db,_0x359fe1._0x4a77df)][_0x19647c(_0x359fe1._0xa991f1,_0x359fe1._0x8610a0,_0x359fe1._0x52e7cc,0x486)]=_0x492b24[_0x19647c(0x4fe,_0x359fe1._0x19f78f,_0x359fe1._0x5813a0,0x486)]);break;}case'response.output_item.done':{const _0x20edfd=typeof _0x492b24[_0x309d37(_0x359fe1._0x18942b,0x2d6,_0x359fe1._0x53ba96,_0x359fe1._0x374b6a)]===_0x19647c(_0x359fe1._0x37d02b,_0x359fe1._0x55c024,0x635,0x55b)?_0x492b24[_0x19647c(0x4a5,0x471,_0x359fe1._0x4f008c,_0x359fe1._0x91113b)]:void 0x0,_0x6bcb14=_0x492b24['item'];if(_0x6bcb14?.[_0x309d37(0x2ee,_0x359fe1._0x11c781,0x27c,0x2b9)]===_0x309d37(0x3bb,0x345,_0x359fe1._0x292e4e,_0x359fe1._0x8297b4)){const _0x4a03a3=_0x6bcb14[_0x19647c(_0x359fe1._0x16b1fa,_0x359fe1._0x45a931,_0x359fe1._0x3bfcd6,0x468)]??(_0x20edfd!==void 0x0?this[_0x19647c(0x4dc,_0x359fe1._0x408772,0x4e3,0x524)][_0x309d37(0x443,0x379,0x398,_0x359fe1._0x351927)](_0x20edfd):void 0x0),_0x4acb98=_0x4a03a3?this[_0x19647c(0x5f5,_0x359fe1._0x27e962,_0x359fe1._0x137e6e,0x5e9)][_0x309d37(0x43e,0x379,0x377,0x3e1)](_0x4a03a3):void 0x0;_0x4acb98&&typeof _0x6bcb14[_0x19647c(0x3ef,_0x359fe1._0x318b01,0x4e9,0x486)]===_0x19647c(0x528,_0x359fe1._0x4d78a6,_0x359fe1._0x456a07,0x59e)&&(_0x4acb98['function'][_0x19647c(_0x359fe1._0x3680a2,_0x359fe1._0x48ae4d,_0x359fe1._0x37d519,_0x359fe1._0x1262ca)]=_0x6bcb14['arguments']);break;}if(_0x6bcb14?.[_0x309d37(0x3db,0x34e,0x3a8,0x306)]===_0x309d37(0x1f4,_0x359fe1._0x8cf99d,0x1f7,0x1e1)&&_0x6bcb14['id']){const _0x3c4c76=this[_0x19647c(_0x359fe1._0x1849c3,0x463,0x449,0x4f3)](_0x6bcb14['id'],_0x20edfd);typeof _0x6bcb14[_0x19647c(0x4fa,0x41d,_0x359fe1._0x8f0466,_0x359fe1._0x38a568)]===_0x309d37(_0x359fe1._0x2406f4,0x31e,_0x359fe1._0x9a54f2,0x270)&&(_0x3c4c76['encryptedContent']=_0x6bcb14[_0x309d37(_0x359fe1._0x3ed43d,_0x359fe1._0x576302,_0x359fe1._0x4fe496,0x15b)]);if(Array['isArray'](_0x6bcb14['summary']))for(let _0x319352=0x0;_0x319352<_0x6bcb14[_0x309d37(0x391,0x340,0x327,0x26d)][_0x309d37(0x21f,_0x359fe1._0x320f55,0x2a9,_0x359fe1._0x4dff74)];_0x319352+=0x1){const _0x19bf0d=_0x6bcb14['summary'][_0x319352];_0x19bf0d[_0x309d37(_0x359fe1._0x15f094,_0x359fe1._0x11c781,_0x359fe1._0x28a503,_0x359fe1._0x3600b2)]===_0x309d37(_0x359fe1._0x3b78ba,_0x359fe1._0x2bd765,0x2c3,_0x359fe1._0x2e47a0)&&typeof _0x19bf0d[_0x19647c(0x623,_0x359fe1._0x34180f,0x4ae,0x57e)]===_0x309d37(0x2cb,_0x359fe1._0x52d96c,_0x359fe1._0x4ae101,0x35c)&&_0x3c4c76[_0x19647c(0x648,0x5fa,_0x359fe1._0x6946c6,_0x359fe1._0x1808c3)][_0x309d37(0x269,0x2be,_0x359fe1._0x467a02,_0x359fe1._0x349324)](_0x319352,_0x19bf0d[_0x309d37(_0x359fe1._0x3d4bc9,_0x359fe1._0x45a9f0,0x389,_0x359fe1._0x14a4df)]);}typeof _0x6bcb14[_0x309d37(_0x359fe1._0xa22e09,_0x359fe1._0x3e701a,_0x359fe1._0x32d042,0x2da)]===_0x19647c(_0x359fe1._0x3d11fa,0x58f,0x63e,_0x359fe1._0x4e5ee4)&&_0x3c4c76['textByIndex'][_0x19647c(0x5a5,0x5ea,_0x359fe1._0x22e648,_0x359fe1._0x35d71d)](0x0,_0x6bcb14['text']);}break;}case _0x19647c(_0x359fe1._0x1c7b00,_0x359fe1._0x4c7025,_0x359fe1._0xd537a5,_0x359fe1._0x56fa81):{const _0x3d01c2=typeof _0x492b24['delta']===_0x19647c(0x567,0x5f7,0x5b6,_0x359fe1._0x2f21e1)?_0x492b24[_0x309d37(_0x359fe1._0xfab5c,0x212,0x279,_0x359fe1._0x7e9bd5)]:'',_0x1eac7f=typeof _0x492b24[_0x309d37(_0x359fe1._0xad10cb,0x24e,_0x359fe1._0x5447f3,0x2ee)]==='string'?_0x492b24[_0x19647c(_0x359fe1._0x423add,0x48c,0x58e,0x4ce)]:typeof _0x492b24[_0x19647c(_0x359fe1._0x498706,_0x359fe1._0x49970e,_0x359fe1._0x113b6a,_0x359fe1._0x91113b)]==='number'?this[_0x19647c(0x4c2,_0x359fe1._0x3dcb1c,_0x359fe1._0x42bce7,_0x359fe1._0x4cb26b)][_0x309d37(0x3ce,_0x359fe1._0x206803,_0x359fe1._0x556e79,_0x359fe1._0x5a2b2c)](_0x492b24['output_index']):void 0x0,_0x5a78af=typeof _0x492b24['output_index']==='number'?_0x492b24['output_index']:0x0,_0x20ca6a=typeof _0x492b24['summary_index']===_0x309d37(0x342,_0x359fe1._0x22d3d8,0x2a9,0x270)?_0x492b24[_0x19647c(_0x359fe1._0x1c52b0,_0x359fe1._0x112605,_0x359fe1._0x328241,_0x359fe1._0x229871)]:0x0;if(_0x1eac7f&&_0x3d01c2[_0x309d37(0x1e5,_0x359fe1._0x5f4314,0x279,_0x359fe1._0x56416e)]>0x0){const _0x458ef9=this['getOrCreateReasoningItem'](_0x1eac7f,_0x5a78af);_0x458ef9['summaryByIndex'][_0x309d37(0x223,0x2be,_0x359fe1._0x425235,_0x359fe1._0x59194f)](_0x20ca6a,''+(_0x458ef9[_0x19647c(_0x359fe1._0x4caa94,_0x359fe1._0x40fcf2,_0x359fe1._0x856519,0x569)][_0x19647c(_0x359fe1._0x32839b,_0x359fe1._0x2e48d9,0x695,0x5f9)](_0x20ca6a)??'')+_0x3d01c2);if(isUserVisibleReasoning(this[_0x309d37(0x30d,_0x359fe1._0x1979c5,_0x359fe1._0x16874c,_0x359fe1._0x11baaa)]))return[{'type':_0x19647c(_0x359fe1._0x22d4c7,_0x359fe1._0x2e8a68,_0x359fe1._0x37df79,_0x359fe1._0x3afd03),'delta':_0x3d01c2,'itemId':_0x1eac7f,'outputIndex':_0x5a78af,'summaryIndex':_0x20ca6a}];}break;}case _0x19647c(_0x359fe1._0xa519ac,0x516,_0x359fe1._0x5c7d21,_0x359fe1._0x7be8d7):{const _0x1dd224=typeof _0x492b24[_0x19647c(0x4e7,_0x359fe1._0x22e46c,0x576,0x4ce)]===_0x309d37(0x334,0x31e,_0x359fe1._0x28c282,_0x359fe1._0x4886f6)?_0x492b24[_0x19647c(0x401,_0x359fe1._0x2e7f67,0x462,_0x359fe1._0xcea321)]:typeof _0x492b24[_0x309d37(0x2e2,_0x359fe1._0x4c572d,_0x359fe1._0x3c73cf,_0x359fe1._0x6a27d)]===_0x19647c(_0x359fe1._0x4c44ff,_0x359fe1._0x423add,_0x359fe1._0x46ae64,0x55b)?this[_0x19647c(0x55c,0x4a5,_0x359fe1._0x5f2d6c,_0x359fe1._0x4cb26b)][_0x309d37(0x428,0x379,_0x359fe1._0x3965cc,_0x359fe1._0x3e06da)](_0x492b24['output_index']):void 0x0,_0x5ef9f7=typeof _0x492b24[_0x309d37(_0x359fe1._0x5a94f7,0x2d6,0x20b,0x207)]===_0x19647c(_0x359fe1._0x4d39f2,0x5ab,0x47a,0x55b)?_0x492b24[_0x19647c(_0x359fe1._0x4a65ad,0x510,_0x359fe1._0x64a664,_0x359fe1._0x3ebbb8)]:0x0,_0x36dff6=typeof _0x492b24[_0x309d37(0x175,_0x359fe1._0x1bee06,0x2d0,0x2c7)]===_0x309d37(0x2a3,0x2db,0x212,0x370)?_0x492b24[_0x19647c(_0x359fe1._0x4a73e9,_0x359fe1._0x5761c5,0x43e,0x4a9)]:0x0,_0x32410f=typeof _0x492b24[_0x19647c(_0x359fe1._0x24d8c5,0x515,_0x359fe1._0x3593fd,0x57e)]===_0x309d37(0x296,_0x359fe1._0x5829ba,0x234,_0x359fe1._0x3a5746)?_0x492b24[_0x19647c(0x63c,_0x359fe1._0x1623d1,0x590,_0x359fe1._0x5ae101)]:'';_0x1dd224&&this[_0x19647c(_0x359fe1._0x2af757,_0x359fe1._0x39d029,0x511,0x4f3)](_0x1dd224,_0x5ef9f7)[_0x309d37(_0x359fe1._0x3a4aae,_0x359fe1._0xb2aa80,0x283,0x30c)]['set'](_0x36dff6,_0x32410f);break;}case'response.reasoning_text.delta':{const _0x41f17e=typeof _0x492b24[_0x19647c(_0x359fe1._0x195882,_0x359fe1._0x483a22,0x3a7,_0x359fe1._0x46642f)]===_0x19647c(_0x359fe1._0x4a9799,_0x359fe1._0x4e5ee4,0x630,_0x359fe1._0x2f21e1)?_0x492b24[_0x19647c(_0x359fe1._0x830441,0x510,0x483,_0x359fe1._0x29a049)]:'',_0x173cfb=typeof _0x492b24[_0x19647c(_0x359fe1._0x59782e,_0x359fe1._0x57dee4,_0x359fe1._0x1623d1,_0x359fe1._0xcea321)]===_0x19647c(0x50d,_0x359fe1._0x56020f,0x670,0x59e)?_0x492b24[_0x19647c(_0x359fe1._0x381424,_0x359fe1._0x1cbdca,_0x359fe1._0xc4e928,0x4ce)]:typeof _0x492b24[_0x19647c(0x642,_0x359fe1._0x2503be,0x5b8,_0x359fe1._0x1e7f1f)]==='number'?this[_0x309d37(_0x359fe1._0x211b70,0x227,_0x359fe1._0x45c7e1,0x2f4)]['get'](_0x492b24[_0x19647c(_0x359fe1._0x1f3ec3,0x4cf,_0x359fe1._0x37f3ad,0x556)]):void 0x0,_0x5bdab8=typeof _0x492b24[_0x19647c(_0x359fe1._0x25b257,0x5e4,_0x359fe1._0x47d73f,0x556)]===_0x19647c(_0x359fe1._0x348bb7,0x635,0x568,_0x359fe1._0x4d78a6)?_0x492b24[_0x19647c(0x5e7,_0x359fe1._0x2f5b67,0x590,0x556)]:0x0,_0x3bc4b2=typeof _0x492b24[_0x19647c(0x43b,_0x359fe1._0x5f9beb,0x3da,_0x359fe1._0x45a931)]===_0x309d37(0x24f,_0x359fe1._0x111a2c,0x2b3,0x369)?_0x492b24[_0x309d37(_0x359fe1._0x3d6ea9,_0x359fe1._0x110656,_0x359fe1._0x23fa51,0x287)]:0x0;if(_0x173cfb&&_0x41f17e[_0x19647c(_0x359fe1._0x59ccf0,0x4c6,_0x359fe1._0x109290,_0x359fe1._0x7570c9)]>0x0){const _0x1bf355=this[_0x19647c(_0x359fe1._0x53c932,0x5ab,_0x359fe1._0x4b76ab,_0x359fe1._0x4f2643)](_0x173cfb,_0x5bdab8);_0x1bf355[_0x309d37(_0x359fe1._0x5e727a,_0x359fe1._0x543c43,0x2ba,_0x359fe1._0x405bed)]['set'](_0x3bc4b2,''+(_0x1bf355[_0x309d37(_0x359fe1._0x1f3870,0x2fa,_0x359fe1._0x406964,0x3ce)][_0x309d37(0x2d1,0x379,_0x359fe1._0x8f3e1d,_0x359fe1._0x47e33c)](_0x3bc4b2)??'')+_0x41f17e);if(isUserVisibleReasoning(this[_0x309d37(0x3d6,0x399,0x33e,0x3ee)]))return[{'type':_0x309d37(0x393,_0x359fe1._0x56bfc2,0x357,_0x359fe1._0x4b7e2d),'contentIndex':_0x3bc4b2,'delta':_0x41f17e,'itemId':_0x173cfb,'outputIndex':_0x5bdab8}];}break;}case _0x309d37(0x354,_0x359fe1._0x2e47a0,0x2db,_0x359fe1._0x463df2):{const _0x14d90a=typeof _0x492b24['item_id']===_0x19647c(0x599,0x510,0x531,_0x359fe1._0x2f21e1)?_0x492b24[_0x309d37(_0x359fe1._0x1ba5d2,_0x359fe1._0x3c0ea5,0x1a7,_0x359fe1._0x3ba3bd)]:typeof _0x492b24['output_index']==='number'?this[_0x309d37(_0x359fe1._0xa28f95,_0x359fe1._0x7d7b9c,0x1a6,0x15e)][_0x19647c(0x578,0x577,_0x359fe1._0x6c26f7,_0x359fe1._0x4a2917)](_0x492b24[_0x19647c(0x4d0,0x5d2,_0x359fe1._0x2c1f10,0x556)]):void 0x0,_0x2a8dd5=typeof _0x492b24[_0x309d37(_0x359fe1._0x2a925c,0x2d6,_0x359fe1._0x8cf99d,_0x359fe1._0x169aac)]==='number'?_0x492b24[_0x19647c(0x4a0,_0x359fe1._0x544f13,_0x359fe1._0x3d4309,0x556)]:0x0,_0xd2b1f8=typeof _0x492b24[_0x19647c(0x535,0x52d,_0x359fe1._0x46a29d,0x493)]===_0x19647c(0x631,_0x359fe1._0x13d2b6,_0x359fe1._0x1deb02,_0x359fe1._0x24a014)?_0x492b24[_0x19647c(0x52b,_0x359fe1._0x37bc55,_0x359fe1._0x4d8f1b,_0x359fe1._0x407101)]:0x0,_0x188148=typeof _0x492b24[_0x309d37(0x3b0,_0x359fe1._0x45a9f0,0x35c,0x399)]===_0x309d37(0x3f8,_0x359fe1._0x448f72,_0x359fe1._0x2ab77d,0x3d8)?_0x492b24['text']:'';_0x14d90a&&this['getOrCreateReasoningItem'](_0x14d90a,_0x2a8dd5)[_0x309d37(_0x359fe1._0x480058,_0x359fe1._0x380857,0x3d3,_0x359fe1._0x105a2f)]['set'](_0xd2b1f8,_0x188148);break;}case _0x309d37(0x347,0x381,_0x359fe1._0x142bab,0x455):{this[_0x309d37(0x25b,_0x359fe1._0x479736,0x25e,_0x359fe1._0x374136)]=_0x492b24[_0x309d37(_0x359fe1._0x29886c,0x279,0x29e,0x2f0)];break;}case _0x19647c(_0x359fe1._0x1134e4,_0x359fe1._0x281aa4,_0x359fe1._0x32a815,_0x359fe1._0x49c4bc):{const _0x1fbdb5=_0x492b24[_0x19647c(0x40a,_0x359fe1._0x2f127b,_0x359fe1._0xc66cce,0x4f9)];throw new ProviderStreamEventError(_0x1fbdb5?.[_0x309d37(_0x359fe1._0x1b0fa3,0x1fc,_0x359fe1._0x42558b,_0x359fe1._0x40383e)]?.['message']??_0x309d37(0x115,_0x359fe1._0x394386,0x1ee,_0x359fe1._0x517b67),{'code':_0x1fbdb5?.[_0x309d37(0x161,0x1fc,0x1bd,0x274)]?.[_0x19647c(_0x359fe1._0x5bc317,_0x359fe1._0x51d4d6,0x56c,_0x359fe1._0x428d45)],'retryable':!![]});}case _0x309d37(0x286,_0x359fe1._0x477c19,0x25f,0x12f):{const _0x2fad30=_0x492b24[_0x309d37(_0x359fe1._0x3016d0,0x1fc,0x2bd,_0x359fe1._0x274a8a)];throw new ProviderStreamEventError(_0x2fad30?.[_0x309d37(0x335,0x2e4,_0x359fe1._0x294fa5,_0x359fe1._0x2b919b)]??'Responses\x20stream\x20failed',{'code':_0x2fad30?.[_0x19647c(_0x359fe1._0x8c15b4,_0x359fe1._0x3cadce,_0x359fe1._0x5033c9,_0x359fe1._0x428d45)],'retryable':!![],'status':typeof _0x492b24['status']==='number'?_0x492b24[_0x309d37(0x19e,0x21c,0x145,_0x359fe1._0x55fec5)]:void 0x0});}}return[];}['buildPartialOutput'](){const _0x5e80bf={_0x297306:0xc1,_0x1eca82:0xe2,_0x4c4b0e:0x26,_0x285d4f:0x159,_0x5d9a04:0x550,_0x620a5d:0x5bf,_0x11940c:0x6ca,_0xada723:0x53d,_0x2a5750:0x60c,_0x3bd6d2:0x12,_0xefdade:0xcc,_0x549d71:0x16,_0x5b738c:0x3d,_0x2b5a62:0x679,_0xbec9e6:0x58b,_0x23b1a2:0xe3,_0x16c0ff:0x51,_0x5499b8:0xa,_0x4b38dd:0x5a4,_0x1fd059:0x5d1,_0x1f3818:0x9b,_0x226c6c:0xb1,_0x5c0607:0x7c,_0x316afe:0x85,_0x1d4f42:0xbf,_0x21de52:0x6e8,_0x37296b:0x21,_0x4775e5:0x3b,_0x578f01:0xdc,_0x14c0d0:0xa3,_0x222ad5:0x736,_0x14627e:0x6ae,_0x4ea38c:0x43,_0x7b74bc:0x2c,_0x1222f7:0x41,_0x505bd4:0x3e,_0x21763f:0x5d,_0x2ba043:0x94,_0x3f74e4:0x72,_0x40a9c3:0x58,_0x34d558:0x733,_0x42afc7:0x6b3,_0x1b4bc0:0x1b,_0x37dd70:0x514,_0x3a6719:0x5f3,_0x489399:0x4f0,_0x480a20:0x5ca,_0x5a3293:0x5d4,_0x58d7a6:0x547,_0x38e6b8:0x5bf,_0x54c0c4:0xeb,_0x5c6991:0x22,_0xda12bc:0xa8,_0x351c89:0x98,_0x4bb902:0x69e,_0x473971:0x627,_0x1d5ace:0x5f8,_0x100805:0x51d,_0x3e2a20:0x5b5,_0x1c2610:0x45,_0x243c01:0x3a,_0x235a8b:0x19,_0x23f93d:0x1a1,_0x3c2b5e:0x180,_0x1312e3:0x7a2,_0x4625cd:0x6d0,_0x553bf2:0x92,_0x30038c:0x4e,_0x58803f:0x53,_0x54394a:0xa0,_0x38d3ea:0x17d},_0x4726f3={_0x28e0c0:0xd5,_0x5ea0f2:0x196},_0x941e75={_0x556660:0x129,_0x114315:0x17e},_0x1e6a29={_0x51ec77:0x24,_0x18f595:0x4da},_0x3f666e=[];function _0x4bf766(_0x3f645c,_0xf8c79c,_0x43a550,_0x2e3244){return _0x2088d4(_0x3f645c-_0x1e6a29._0x51ec77,_0xf8c79c-0x13f,_0x43a550,_0x2e3244-_0x1e6a29._0x18f595);}for(const [_0x225a31,_0x2263f7]of this[_0x602b32(_0x5e80bf._0x297306,_0x5e80bf._0x1eca82,-_0x5e80bf._0x4c4b0e,_0x5e80bf._0x285d4f)][_0x4bf766(_0x5e80bf._0x5d9a04,0x5fd,0x4f0,_0x5e80bf._0x620a5d)]()){const _0x233395=_0x2263f7[_0x4bf766(_0x5e80bf._0x11940c,_0x5e80bf._0xada723,0x66e,_0x5e80bf._0x2a5750)]('');if(_0x233395[_0x602b32(_0x5e80bf._0x3bd6d2,_0x5e80bf._0xefdade,-_0x5e80bf._0x549d71,_0x5e80bf._0x5b738c)]===0x0)continue;_0x3f666e[_0x4bf766(0x58e,_0x5e80bf._0x2b5a62,_0x5e80bf._0xbec9e6,0x5b5)]({'index':_0x225a31,'item':{'type':'message','role':_0x4bf766(0x6cf,0x74e,0x627,0x66c),'content':[{'type':_0x602b32(_0x5e80bf._0x23b1a2,_0x5e80bf._0x16c0ff,-_0x5e80bf._0x5499b8,0x16a),'text':_0x233395}]}});}function _0x602b32(_0x56d9ff,_0x41aeeb,_0x431fef,_0x42873b){return _0x5e6a6f(_0x42873b,_0x41aeeb-0x1bb,_0x56d9ff-0x171,_0x42873b-0x14a);}for(const _0xbc67ac of this[_0x4bf766(_0x5e80bf._0x4b38dd,_0x5e80bf._0x1fd059,0x5ef,0x650)][_0x602b32(0x39,0x9a,-_0x5e80bf._0x1f3818,-_0x5e80bf._0x226c6c)]()){_0x3f666e[_0x602b32(-_0x5e80bf._0x5c0607,-0xd6,-_0x5e80bf._0x316afe,-_0x5e80bf._0x1d4f42)]({'index':_0xbc67ac[_0x4bf766(0x656,_0x5e80bf._0x21de52,0x6b4,0x6f0)]??_0x3f666e[_0x602b32(_0x5e80bf._0x3bd6d2,0xdf,0xe3,0x77)],'item':{'type':_0x602b32(_0x5e80bf._0x37296b,-_0x5e80bf._0x4775e5,_0x5e80bf._0x578f01,_0x5e80bf._0x14c0d0),'id':_0xbc67ac['id'],..._0xbc67ac['encryptedContent']?{'encrypted_content':_0xbc67ac[_0x4bf766(0x6c6,0x5df,_0x5e80bf._0x222ad5,_0x5e80bf._0x14627e)]}:{},..._0xbc67ac[_0x602b32(_0x5e80bf._0x4ea38c,_0x5e80bf._0x7b74bc,-0x5c,-_0x5e80bf._0x1222f7)][_0x602b32(-_0x5e80bf._0x505bd4,-0x79,-0x5f,-0xfb)]>0x0?{'summary':Array[_0x602b32(-_0x5e80bf._0x21763f,-0xd8,-_0x5e80bf._0x2ba043,0x43)](_0xbc67ac['summaryByIndex'][_0x602b32(-_0x5e80bf._0x3f74e4,_0x5e80bf._0x40a9c3,-0x99,-0x5)]())['sort']((_0x53433f,_0x250bb9)=>_0x53433f[0x0]-_0x250bb9[0x0])[_0x4bf766(0x5d0,_0x5e80bf._0x34d558,0x782,_0x5e80bf._0x42afc7)](([,_0xb3d2a0])=>{function _0x25af75(_0x4a18af,_0x3dd771,_0x35f85b,_0x217fab){return _0x602b32(_0x4a18af- -_0x941e75._0x556660,_0x3dd771-_0x941e75._0x114315,_0x35f85b-0xf,_0x35f85b);}return{'type':_0x25af75(-0x1bf,-_0x4726f3._0x28e0c0,-0x228,-_0x4726f3._0x5ea0f2),'text':_0xb3d2a0};})}:{},..._0xbc67ac[_0x602b32(0x54,0x76,-0x57,_0x5e80bf._0x1b4bc0)][_0x4bf766(0x6cb,0x520,_0x5e80bf._0x37dd70,_0x5e80bf._0x3a6719)]>0x0?{'text':Array[_0x4bf766(0x565,_0x5e80bf._0x489399,_0x5e80bf._0x480a20,_0x5e80bf._0x5a3293)](_0xbc67ac[_0x602b32(0x54,0x45,0x4,-0x5a)][_0x4bf766(_0x5e80bf._0x58d7a6,0x4f7,0x643,_0x5e80bf._0x38e6b8)]())[_0x602b32(-0xba,-_0x5e80bf._0x54c0c4,-_0x5e80bf._0x5c6991,-_0x5e80bf._0xda12bc)]((_0x1a1029,_0x101977)=>_0x1a1029[0x0]-_0x101977[0x0])[_0x602b32(0x82,-0x2a,_0x5e80bf._0x351c89,-0x52)](([,_0x4a6ef3])=>_0x4a6ef3)[_0x4bf766(0x6bb,_0x5e80bf._0x4bb902,0x6f1,_0x5e80bf._0x2a5750)]('')}:{}}});}for(const _0x330f88 of this['toolCalls'][_0x4bf766(0x582,0x69b,_0x5e80bf._0x473971,0x66a)]()){_0x3f666e[_0x4bf766(0x6a0,_0x5e80bf._0x1d5ace,_0x5e80bf._0x100805,_0x5e80bf._0x3e2a20)]({'index':this[_0x602b32(-_0x5e80bf._0x1c2610,0x11,_0x5e80bf._0x243c01,-_0x5e80bf._0x235a8b)][_0x602b32(0xd3,0x6e,_0x5e80bf._0x23f93d,_0x5e80bf._0x3c2b5e)](_0x330f88['id'])??_0x3f666e['length'],'item':{'type':_0x4bf766(0x600,_0x5e80bf._0x1312e3,0x5e0,_0x5e80bf._0x4625cd),'call_id':_0x330f88['id'],'name':_0x330f88[_0x602b32(-0x4e,-0xb1,-0x12,-_0x5e80bf._0x553bf2)]['name'],'arguments':_0x330f88[_0x602b32(-_0x5e80bf._0x30038c,0x15,_0x5e80bf._0x58803f,0x1d)][_0x602b32(-_0x5e80bf._0x54394a,-_0x5e80bf._0x38d3ea,-0x4,-0x181)]}});}return _0x3f666e['sort']((_0x3a3616,_0x17e4d8)=>_0x3a3616[_0x602b32(-0x16,-0xb9,-0xc3,-0x53)]-_0x17e4d8[_0x4bf766(0x707,0x6cc,0x6c2,0x61b)])['map'](_0x2f9608=>_0x2f9608['item']);}[_0x2088d4(0x136,0x5d,0x14b,0x124)](_0x540e56,_0x44cfc6){const _0xa517f3={_0x378a0c:0x172,_0x319d82:0x21a,_0x30840b:0xeb,_0x4a1868:0x22,_0x1926cc:0xee,_0x24d7f2:0x13e,_0x2d25a0:0x189,_0x4789e7:0x14c,_0x482dc2:0xda,_0x51bd8d:0xa4,_0x34df8f:0x141,_0x4ef2b3:0x182,_0x19f64f:0x213,_0x299773:0xf3},_0xc21eab={_0x2cc7fe:0x14c,_0xcbf211:0x18b};function _0x2364e1(_0x5126b7,_0x312a22,_0x1a1171,_0x3139b0){return _0x2088d4(_0x5126b7-_0xc21eab._0x2cc7fe,_0x312a22-_0xc21eab._0xcbf211,_0x312a22,_0x3139b0-0x40c);}const _0x33beb0=this['reasoningItems']['get'](_0x540e56);if(_0x33beb0)return _0x44cfc6!==void 0x0&&(_0x33beb0[_0x3825e0(0x229,0x22d,_0xa517f3._0x378a0c,_0xa517f3._0x319d82)]=_0x44cfc6,this[_0x3825e0(_0xa517f3._0x30840b,_0xa517f3._0x4a1868,_0xa517f3._0x1926cc,_0xa517f3._0x24d7f2)]['set'](_0x44cfc6,_0x540e56)),_0x33beb0;function _0x3825e0(_0x3908d2,_0x15ecac,_0x975db8,_0x478f6d){return _0x5e6a6f(_0x15ecac,_0x15ecac-0xbe,_0x3908d2-0x2db,_0x478f6d-0x193);}const _0x3ffc85={'id':_0x540e56,'outputIndex':_0x44cfc6,'summaryByIndex':new Map(),'textByIndex':new Map()};return this[_0x3825e0(_0xa517f3._0x2d25a0,_0xa517f3._0x4789e7,_0xa517f3._0x482dc2,_0xa517f3._0x51bd8d)][_0x3825e0(0x182,0x17a,0x19f,_0xa517f3._0x34df8f)](_0x540e56,_0x3ffc85),_0x44cfc6!==void 0x0&&this['outputIndexToReasoningId'][_0x3825e0(_0xa517f3._0x4ef2b3,0xf8,_0xa517f3._0x19f64f,_0xa517f3._0x299773)](_0x44cfc6,_0x540e56),_0x3ffc85;}};function createOpenAiResponsesStreamParser(_0x39ca43){return new OpenAiResponsesStreamParser(_0x39ca43);}function createOpenAiSurfaces(_0x17b770={}){const _0x5c6f16={_0xb5d835:0x4d9,_0x2afbce:0x48e,_0xcf0d46:0x473,_0x1b980b:0x449,_0x599b7b:0x459,_0x5604af:0x40a,_0x5c4274:0x40f,_0x17e795:0x464,_0x513d7f:0x3e4,_0x15addc:0x549,_0x10f7ea:0x4ca,_0x13db3a:0x5b1,_0x12cf5e:0x4d6,_0x87fc92:0x5a8,_0x205e5e:0x3d9,_0x3ff918:0x472,_0x2418b7:0x46e,_0x277574:0x51e,_0x595e9a:0x4c2},_0x17c6f7={_0x36de98:0xb5,_0x2551e7:0x126,_0x3454f7:0x192},_0x588734={_0x52d61e:0x165},_0xefa8e5={_0x2bbd6b:0x14a,_0x1e271a:0x1e3},_0x5b6f3e={_0x23c8bf:0x1ae,_0x1005a1:0x2c,_0xd870e3:0x17a,_0x2cc31e:0xe9,_0x33a7a6:0x94},_0x32b5fb={_0x536396:0x6b9,_0x52528b:0x752},_0x2af7eb={_0x6cb4d:0x19f},_0x54df35={_0x8f2a21:0x4e,_0x25a924:0x24d},_0x34f463={_0x320f63:0xac,_0x21aeb3:0x138},_0xe6d200=_0x17b770[_0x9bf2c(_0x5c6f16._0xb5d835,_0x5c6f16._0x2afbce,_0x5c6f16._0xcf0d46,_0x5c6f16._0x1b980b)]??_0x9bf2c(0x473,_0x5c6f16._0x599b7b,0x3b6,0x422);function _0x9bf2c(_0x4952b8,_0x438afd,_0x50eb98,_0x14b941){return _0x5e6a6f(_0x4952b8,_0x438afd-_0x34f463._0x320f63,_0x438afd-0x664,_0x14b941-_0x34f463._0x21aeb3);}function _0x4680ff(_0x36541f,_0xebf864,_0x5b0af8,_0x2cf9a3){return _0x2088d4(_0x36541f-0x30,_0xebf864-_0x54df35._0x8f2a21,_0xebf864,_0x2cf9a3-_0x54df35._0x25a924);}const _0x12d9e1=_0x17b770[_0x4680ff(_0x5c6f16._0x5604af,_0x5c6f16._0x5c4274,_0x5c6f16._0x17e795,_0x5c6f16._0x513d7f)]??_0x9bf2c(0x570,0x4f2,_0x5c6f16._0x15addc,0x517);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x2e5d4a){return{'accept':'application/json','body':createChatRequestBody(_0x2e5d4a,![]),'path':_0xe6d200};},'parseResponse'(_0x5c7d45){return parseChatCompletionResponse(_0x5c7d45);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x9bf2c(_0x5c6f16._0x10f7ea,_0x5c6f16._0x13db3a,_0x5c6f16._0x12cf5e,_0x5c6f16._0x87fc92),'createRequest'(_0x1f24b0){function _0x45100e(_0x386a7e,_0x1a137e,_0x42c2af,_0xf59c7d){return _0x4680ff(_0x386a7e-0x13,_0x1a137e,_0x42c2af-_0x2af7eb._0x6cb4d,_0x42c2af-0x264);}return{'accept':_0x45100e(0x6fa,0x6af,_0x32b5fb._0x536396,_0x32b5fb._0x52528b),'body':createChatRequestBody(_0x1f24b0,!![]),'path':_0xe6d200};},'createStreamParser'(_0x320c0c){return new OpenAiChatCompletionsStreamParser(_0x320c0c);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x4680ff(_0x5c6f16._0x205e5e,_0x5c6f16._0x3ff918,0x42a,0x39e),'createRequest'(_0x2f979e){const _0x4603e1={_0x1333ff:0x1db,_0x22e14f:0x1f0},_0x7a3483={_0x189aaf:0x19d,_0x4f9b2b:0x1a6};function _0x408d7d(_0x1f9521,_0x54f279,_0x19b908,_0x2a52a0){return _0x4680ff(_0x1f9521-_0x7a3483._0x189aaf,_0x1f9521,_0x19b908-_0x7a3483._0x4f9b2b,_0x19b908-0x64);}function _0x166d7b(_0x3313ed,_0xbc928,_0x3e8090,_0x35394d){return _0x4680ff(_0x3313ed-_0x4603e1._0x1333ff,_0x3313ed,_0x3e8090-_0x4603e1._0x22e14f,_0x35394d- -0x2d0);}return{'accept':_0x166d7b(_0x5b6f3e._0x23c8bf,_0x5b6f3e._0x1005a1,_0x5b6f3e._0xd870e3,0xe2),'body':createResponsesRequestBody(_0x2f979e,![],_0x17b770[_0x166d7b(0x144,0x51,_0x5b6f3e._0x2cc31e,_0x5b6f3e._0x33a7a6)]),'path':_0x12d9e1};},'parseResponse'(_0x100b2f,_0x4a62f0){return parseResponsesResponse(_0x100b2f,_0x4a62f0);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x37bb77){const _0x74ba64={_0x3e9565:0x148,_0x1d726d:0x1e7};function _0xaa57c5(_0x2105fd,_0x597345,_0x1b5f9e,_0x28e0d2){return _0x9bf2c(_0x2105fd,_0x1b5f9e- -0x3c1,_0x1b5f9e-_0x74ba64._0x3e9565,_0x28e0d2-_0x74ba64._0x1d726d);}return{'accept':_0xaa57c5(0x250,_0xefa8e5._0x2bbd6b,_0xefa8e5._0x1e271a,0x219),'body':createResponsesRequestBody(_0x37bb77,!![],_0x17b770['promptCacheKeyResolver']),'path':_0x12d9e1};},'createStreamParser'(_0x3f77e9){return new OpenAiResponsesStreamParser(_0x3f77e9);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x9bf2c(_0x5c6f16._0x2418b7,0x55b,_0x5c6f16._0x277574,_0x5c6f16._0x595e9a),'createRequest'(_0x7fdc18){function _0x169a62(_0x1c5e5b,_0x5b4337,_0x222381,_0x2cf002){return _0x4680ff(_0x1c5e5b-_0x588734._0x52d61e,_0x222381,_0x222381-0x1e5,_0x1c5e5b- -0x409);}return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x7fdc18,{'promptCacheKey':_0x17b770[_0x169a62(-0xa5,-_0x17c6f7._0x36de98,-_0x17c6f7._0x2551e7,-_0x17c6f7._0x3454f7)]?.(_0x7fdc18)}),'path':_0x12d9e1};},'createStreamParser'(_0x1157b7){return createOpenAiResponsesStreamParser(_0x1157b7);}}];}var OpenAiProviderAdapter=class{[_0x5e6a6f(-0x56,-0x5a,-0x143,-0x197)];constructor(_0x2e5f38){this['headerResolver']=_0x2e5f38;}[_0x2088d4(0x19d,0x2bd,0x16c,0x1f0)](){const _0x128093={_0x3b7184:0x663,_0x30cd3f:0x663},_0x36520f={_0x2af49d:0x1ad};function _0x373236(_0x3dd1c1,_0x5d52a4,_0x82ca76,_0xf0662a){return _0x5e6a6f(_0x82ca76,_0x5d52a4-0xfa,_0xf0662a-0x70a,_0xf0662a-_0x36520f._0x2af49d);}return new Error(_0x373236(_0x128093._0x3b7184,0x615,0x588,_0x128093._0x30cd3f));}async[_0x5e6a6f(-0x10c,-0x1e2,-0x111,-0xe6)](_0x371d9f,_0x4426c3){const _0xaa8abd={_0x36d556:0x208,_0x311304:0x31c,_0x26207e:0x42,_0x4f9b15:0x118,_0x36c8ec:0x1a9,_0x41a8d0:0x305,_0x18b645:0x252,_0x340385:0x228,_0x16c131:0x274,_0x1f0a9e:0x233,_0x468776:0x62,_0x3d61e0:0x14,_0x11804b:0x6b,_0x2c406d:0xef,_0x216ef0:0xde,_0x4be56c:0x21a,_0x57d629:0x21e,_0x2d00da:0x1ba,_0x915ac2:0x332,_0x1307f9:0x387,_0x57f7b3:0x246,_0xf1509f:0x26a,_0x772505:0x2d2,_0x39e455:0xa5,_0x2a1b07:0xce,_0x371fe8:0xf2,_0xf339d4:0x172,_0x510158:0x9d,_0x75ef2d:0x143,_0x4acdaf:0x17,_0x41cc17:0xa5,_0x2d3dbb:0x1f3,_0x371f1d:0x17d,_0x1af6d0:0x27d},_0x3951e1={_0x26ba86:0x164,_0x3d1d6c:0x1a5},_0x439150={_0x4a6683:0x9d,_0x1209ff:0xd6,_0x141496:0x105},_0x1b1013=new Headers();_0x1b1013[_0x83a61b(_0xaa8abd._0x36d556,0x274,_0xaa8abd._0x311304,0x21d)](_0x7f211e(0x8b,-_0xaa8abd._0x26207e,-_0xaa8abd._0x4f9b15,-0x51),_0x4426c3[_0x83a61b(_0xaa8abd._0x36c8ec,0x259,_0xaa8abd._0x41a8d0,_0xaa8abd._0x18b645)]),_0x1b1013[_0x83a61b(_0xaa8abd._0x340385,_0xaa8abd._0x16c131,0x1ae,_0xaa8abd._0x1f0a9e)](_0x7f211e(_0xaa8abd._0x468776,-0x14e,-_0xaa8abd._0x3d61e0,-_0xaa8abd._0x11804b),'Bearer\x20'+_0x371d9f[_0x7f211e(-0x5f,-_0xaa8abd._0x2c406d,-0x14a,-_0xaa8abd._0x216ef0)][_0x83a61b(_0xaa8abd._0x4be56c,0x189,_0xaa8abd._0x57d629,_0xaa8abd._0x2d00da)]);function _0x83a61b(_0x1785b0,_0x4280ae,_0x40774e,_0x392991){return _0x2088d4(_0x1785b0-_0x439150._0x4a6683,_0x4280ae-_0x439150._0x1209ff,_0x40774e,_0x4280ae-_0x439150._0x141496);}_0x4426c3[_0x83a61b(_0xaa8abd._0x915ac2,0x2da,0x364,0x315)]!==![]&&_0x1b1013['set'](_0x83a61b(_0xaa8abd._0x1307f9,0x338,0x3dc,0x428),_0x83a61b(_0xaa8abd._0x57f7b3,_0xaa8abd._0xf1509f,0x2bf,_0xaa8abd._0x772505));const _0x26d7f0=await this[_0x7f211e(-_0xaa8abd._0x39e455,-_0xaa8abd._0x2a1b07,-_0xaa8abd._0x371fe8,-0x20)]?.({'body':_0x371d9f[_0x7f211e(0x166,0x18c,_0xaa8abd._0xf339d4,_0xaa8abd._0x510158)],'credential':_0x371d9f['credential'],'request':_0x371d9f[_0x7f211e(_0xaa8abd._0x75ef2d,0x5,-_0xaa8abd._0x4acdaf,_0xaa8abd._0x41cc17)],'session':_0x371d9f[_0x7f211e(-_0xaa8abd._0x2d3dbb,-0x1ab,-_0xaa8abd._0x371f1d,-0x10d)],'stream':_0x371d9f['stream']});for(const [_0x34e648,_0x2dfb20]of Object['entries'](_0x26d7f0??{})){_0x1b1013[_0x83a61b(0x2a7,0x274,0x35a,_0xaa8abd._0x1af6d0)](_0x34e648,_0x2dfb20);}function _0x7f211e(_0x1b9993,_0x16c969,_0x6f0b8c,_0x332699){return _0x2088d4(_0x1b9993-_0x3951e1._0x26ba86,_0x16c969-0x173,_0x6f0b8c,_0x332699- -_0x3951e1._0x3d1d6c);}return _0x1b1013;}[_0x2088d4(0x1c0,0x15e,0x262,0x1f5)](_0x573723){return _0x573723;}[_0x2088d4(0x196,0x22d,0x1f6,0x1c1)](_0x59e3b6,_0x172e85){return resolveSessionBaseUrl(_0x59e3b6,_0x172e85);}['resolveCredential'](_0x19fa0a,_0x13c03e){return resolveApiCredential(_0x19fa0a,_0x13c03e);}async[_0x5e6a6f(-0x1a5,-0x20b,-0x1b8,-0x289)](_0x50e1f0){return await createOpenAiApiError(_0x50e1f0);}},OpenAiModel=class extends RoutedModel{[_0x5e6a6f(-0x12f,-0x186,-0x202,-0x290)]=new Map();[_0x5e6a6f(-0x1a2,-0x1d1,-0x1b1,-0x1f4)];['chatCompletionsPath'];[_0x2088d4(0xe6,0x1db,0x242,0x197)];constructor(_0x45d87a={}){const _0x4c0ca7={_0x5f5c56:0x388,_0x14a4c6:0x389,_0x45fd07:0x314,_0x543ea4:0x107,_0x812fc7:0x191,_0x2aedc2:0x1f3,_0x1e9178:0x12d,_0x24c70a:0x2c,_0x5bb801:0x45d,_0x469bf5:0x52a,_0x452189:0xed,_0x4f7049:0x1a8,_0xee1fbb:0x199,_0x72267e:0x37b,_0x4dbcac:0x398,_0x11d307:0x38e,_0x8f7b53:0x456,_0x56fcf1:0x4e4,_0x5316fa:0x400,_0x33f620:0xae,_0x452b97:0x42f,_0x15cf6a:0x1a8,_0x1def8a:0xe9,_0xbad52e:0x140,_0x3ebb0b:0x2e6,_0x1bd0ad:0x3ae,_0x2cd694:0x2f6,_0x15e06a:0x9e,_0x2f5214:0xc8,_0x2bcdd8:0xa8,_0x1a5877:0x221,_0x4f1f3b:0x119,_0xc556e7:0xf6,_0x383de1:0xf5,_0x463454:0x18d},_0x17182d={_0x16be4f:0x40,_0x5a1cff:0x53},_0x1799d5={_0x431b91:0x55f,_0x5db27e:0xa3};function _0x5debf2(_0x482dac,_0x4702a8,_0x16caf7,_0x186dc2){return _0x5e6a6f(_0x186dc2,_0x4702a8-0x1cf,_0x4702a8-_0x1799d5._0x431b91,_0x186dc2-_0x1799d5._0x5db27e);}const _0x5c986e=_0x45d87a['model']??'gpt-4o',_0x42fa40=_0x45d87a[_0x5debf2(_0x4c0ca7._0x5f5c56,_0x4c0ca7._0x14a4c6,_0x4c0ca7._0x45fd07,0x39c)]??_0x5cb0a7(-_0x4c0ca7._0x543ea4,-0x199,-_0x4c0ca7._0x812fc7,-_0x4c0ca7._0x2aedc2),_0x1dda5e=_0x45d87a[_0x5cb0a7(-_0x4c0ca7._0x1e9178,-0xbf,-_0x4c0ca7._0x24c70a,-0xfb)]??'/responses';function _0x5cb0a7(_0x148899,_0x24e7ef,_0x297add,_0xb2488f){return _0x2088d4(_0x148899-_0x17182d._0x16be4f,_0x24e7ef-_0x17182d._0x5a1cff,_0x297add,_0x24e7ef- -0x256);}super({'apiKey':_0x45d87a[_0x5debf2(_0x4c0ca7._0x5bb801,0x4c6,_0x4c0ca7._0x469bf5,0x451)],'baseUrl':trimTrailingSlashes(_0x45d87a[_0x5cb0a7(-_0x4c0ca7._0x452189,-_0x4c0ca7._0x4f7049,-0x28a,-_0x4c0ca7._0xee1fbb)]??_0x5debf2(_0x4c0ca7._0x72267e,0x3c6,_0x4c0ca7._0x4dbcac,_0x4c0ca7._0x11d307)),'fetch':_0x45d87a['fetch'],..._0x45d87a['maxTokens']!==void 0x0?{'maxTokens':_0x45d87a[_0x5debf2(_0x4c0ca7._0x4dbcac,0x485,0x4c8,0x408)]}:{},'model':_0x5c986e,'modelIdentity':_0x45d87a[_0x5debf2(_0x4c0ca7._0x8f7b53,_0x4c0ca7._0x56fcf1,0x4f7,_0x4c0ca7._0x5316fa)],'reasoning':_0x45d87a[_0x5cb0a7(-0x19e,-0xde,-_0x4c0ca7._0x33f620,-0x23)],'providerAdapter':new OpenAiProviderAdapter(_0x45d87a[_0x5debf2(_0x4c0ca7._0x452b97,0x41c,0x442,0x438)]),'providerSessionResolver':_0x45d87a['providerSessionResolver'],'requestMutators':_0x45d87a['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x45d87a[_0x5cb0a7(-_0x4c0ca7._0x15cf6a,-_0x4c0ca7._0x1def8a,-_0x4c0ca7._0xbad52e,-0xa9)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x42fa40,'promptCacheKeyResolver':_0x45d87a[_0x5debf2(_0x4c0ca7._0x3ebb0b,_0x4c0ca7._0x1bd0ad,0x32e,_0x4c0ca7._0x2cd694)],'responsesPath':_0x1dda5e}),'webSocketFactory':_0x45d87a[_0x5cb0a7(-_0x4c0ca7._0x15e06a,-0x7,_0x4c0ca7._0x2f5214,_0x4c0ca7._0x2bcdd8)]}),this['chatCompletionsPath']=_0x42fa40,this[_0x5cb0a7(-_0x4c0ca7._0x1a5877,-0x13f,-_0x4c0ca7._0x4f1f3b,-0x9d)]=_0x45d87a[_0x5cb0a7(-0x8a,-0x13f,-_0x4c0ca7._0xc556e7,-0x172)],this[_0x5cb0a7(-_0x4c0ca7._0x383de1,-0xbf,-_0x4c0ca7._0x463454,-0x165)]=_0x1dda5e;}[_0x2088d4(0x2c3,0x297,0x1f8,0x230)](_0x5cf447,_0xad6d23){const _0x46e853={_0x4480b1:0x53,_0x261a91:0x9a},_0x1e8ac1={_0x19f6fa:0x12b};function _0x265db0(_0x32f6ba,_0x5c248a,_0x59cbe4,_0x154aac){return _0x5e6a6f(_0x154aac,_0x5c248a-_0x1e8ac1._0x19f6fa,_0x5c248a-0x144,_0x154aac-0x105);}return this[_0x265db0(-_0x46e853._0x4480b1,-_0x46e853._0x261a91,-0x139,-0x155)](_0x5cf447,OPENAI_CHAT_COMPLETIONS_SURFACE,_0xad6d23);}[_0x2088d4(0x2ba,0x25a,0x207,0x241)](_0x516a9f,_0x3c1a76){const _0x16e1f6={_0x2bfb7a:0x6e};function _0x1435f2(_0x27c9d8,_0x54406c,_0x43cae4,_0x4c47e6){return _0x2088d4(_0x27c9d8-0x17,_0x54406c-0x5,_0x43cae4,_0x54406c- -0x21a);}return this[_0x1435f2(-_0x16e1f6._0x2bfb7a,-0x130,-0x1c8,-0x19b)](_0x516a9f,OPENAI_RESPONSES_SURFACE,_0x3c1a76);}[_0x2088d4(0x1f2,0xea,0x2a9,0x1d8)](_0x3cb476,_0x20958a){return this['completeViaSurface'](_0x3cb476,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x20958a);}[_0x2088d4(0x1ec,0x174,0x5c,0x14c)](_0x454f6a,_0x1d7e13){const _0x3e0fd2={_0x1f7e8d:0x483,_0x506f02:0x494,_0x3d6b67:0x4b5,_0x3d1dfc:0x3eb};function _0x1c5e52(_0x375f4e,_0x5c372a,_0x5d6c1b,_0xefa19c){return _0x5e6a6f(_0x5d6c1b,_0x5c372a-0xad,_0x375f4e-0x62b,_0xefa19c-0x57);}return this[_0x1c5e52(_0x3e0fd2._0x1f7e8d,_0x3e0fd2._0x506f02,_0x3e0fd2._0x3d6b67,_0x3e0fd2._0x3d1dfc)](_0x454f6a,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x1d7e13);}[_0x2088d4(0x6b,0x223,0x10f,0x14e)](_0x5f1e16,_0x56f58c){const _0x52ab06={_0x3cc3e4:0xb1,_0x20f8e7:0x190,_0x1efcc0:0x122};function _0x2a0c47(_0x449e2e,_0xe2f6bc,_0x5f3fd4,_0x5dc9a2){return _0x5e6a6f(_0x449e2e,_0xe2f6bc-0x1c3,_0x5f3fd4-0x18,_0x5dc9a2-0x1c7);}return this[_0x2a0c47(-_0x52ab06._0x3cc3e4,-0x1cf,-_0x52ab06._0x20f8e7,-_0x52ab06._0x1efcc0)](_0x5f1e16,OPENAI_RESPONSES_STREAM_SURFACE,_0x56f58c);}['streamViaResponsesWebSocketSurface'](_0x4a8dd4,_0x36876d){const _0x190852={_0x2042bd:0x15f};function _0x5a6956(_0x4c236e,_0x271622,_0x37a2a0,_0x3aaf8d){return _0x5e6a6f(_0x271622,_0x271622-_0x190852._0x2042bd,_0x37a2a0-0x116,_0x3aaf8d-0x196);}return this[_0x5a6956(-0x114,-0x149,-0x92,-0x15)](_0x4a8dd4,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x36876d);}async[_0x5e6a6f(-0x113,-0xe7,-0xc7,-0x167)](_0x4d2b14,_0x5ddd30){const _0x3fb223={_0x2a970e:0x231},_0x5eaa99={_0x1a8f28:0x89,_0x1bee11:0xb9};function _0x263e08(_0x647ef5,_0x16376e,_0x533a7f,_0x437b0b){return _0x2088d4(_0x647ef5-0x1c7,_0x16376e-0x46,_0x437b0b,_0x533a7f- -0xa5);}function _0x46f059(_0x53d582,_0x17188a,_0x23ebe7,_0x2e3b5b){return _0x5e6a6f(_0x23ebe7,_0x17188a-_0x5eaa99._0x1a8f28,_0x2e3b5b-0x726,_0x2e3b5b-_0x5eaa99._0x1bee11);}try{return await this[_0x46f059(0x691,0x6e9,0x732,0x68e)](_0x4d2b14,_0x5ddd30);}catch(_0xd6923b){if(_0xd6923b instanceof OpenAiApiError)throw this[_0x263e08(0x12e,_0x3fb223._0x2a970e,0x150,0x1bb)](_0xd6923b);throw _0xd6923b;}}async[_0x2088d4(0xc5,0xb1,0xcc,0x12a)](_0x342c20,_0x303d61){const _0x77a653={_0x849426:0x78,_0x5848b5:0x14a,_0x3380a8:0x18e,_0x38b149:0xc4,_0x275b7d:0x73,_0x4a8c09:0x28},_0x3dbfd8={_0x3ac17f:0x203},_0x8422e5={_0x25ffb8:0xf7};function _0x5994c5(_0x577642,_0x335f53,_0x4e381d,_0x470537){return _0x2088d4(_0x577642-0x137,_0x335f53-0x25,_0x577642,_0x335f53- -_0x8422e5._0x25ffb8);}function _0x3760da(_0x17ca1c,_0x4faf88,_0x36f8fc,_0x476ba1){return _0x5e6a6f(_0x17ca1c,_0x4faf88-0x6f,_0x476ba1-_0x3dbfd8._0x3ac17f,_0x476ba1-0xf5);}try{return await this[_0x5994c5(_0x77a653._0x849426,_0x77a653._0x5848b5,_0x77a653._0x3380a8,0x111)](_0x342c20,_0x303d61);}catch(_0x377e33){if(_0x377e33 instanceof OpenAiApiError)throw this[_0x5994c5(_0x77a653._0x38b149,0xfe,_0x77a653._0x275b7d,_0x77a653._0x4a8c09)](_0x377e33);throw _0x377e33;}}async['responseSocket'](_0x125f10,_0x3b53ed){const _0x2de815={_0x2a2645:0x4a5,_0x2ebb85:0x47b,_0x384f70:0x170,_0x45469f:0x1ca,_0xd6823:0x1a1,_0x518208:0x9f,_0x5dc9a4:0x135,_0x3962af:0x12e,_0x5dbc51:0x51c},_0x30000b={_0x3dca02:0x138,_0x1cd717:0xf9,_0x5e309c:0x35},_0x54e835={_0x42c842:0x573,_0x4360fe:0x107};function _0x4aba80(_0x37fa39,_0x599245,_0x11a42a,_0x49b9c6){return _0x5e6a6f(_0x599245,_0x599245-0x18d,_0x49b9c6-_0x54e835._0x42c842,_0x49b9c6-_0x54e835._0x4360fe);}function _0x335bcf(_0x10b92a,_0x8fff47,_0x3ef24a,_0x5f4840){return _0x2088d4(_0x10b92a-_0x30000b._0x3dca02,_0x8fff47-_0x30000b._0x1cd717,_0x3ef24a,_0x8fff47- -_0x30000b._0x5e309c);}try{let _0x47746b;for await(const _0x40cb92 of this[_0x4aba80(0x358,_0x2de815._0x2a2645,_0x2de815._0x2ebb85,0x3c0)](_0x125f10,_0x3b53ed)){_0x40cb92[_0x335bcf(_0x2de815._0x384f70,_0x2de815._0x45469f,_0x2de815._0xd6823,0xe3)]===_0x335bcf(0x18a,_0x2de815._0x518208,0x46,0xe2)&&(_0x47746b=_0x40cb92['response']);}if(!_0x47746b)throw new Error(_0x335bcf(_0x2de815._0x5dc9a4,0x1bf,0x143,_0x2de815._0x3962af));return _0x47746b;}catch(_0x386585){if(_0x386585 instanceof OpenAiApiError)throw this[_0x4aba80(_0x2de815._0x5dbc51,0x493,0x462,0x4a0)](_0x386585);throw _0x386585;}}async*['chatStream'](_0x514d83,_0x511a7e){const _0x68e610={_0xbdee0b:0x613,_0x40cc96:0x6e3,_0x14fc12:0x62b,_0x1a8998:0x94,_0x22d279:0xdf},_0xe8b4f4={_0x11a3c7:0x167},_0x55fce6={_0x146963:0x19a};function _0x30ff21(_0x1bd06a,_0x57e7a8,_0x4d4eaf,_0x270d70){return _0x5e6a6f(_0x270d70,_0x57e7a8-_0x55fce6._0x146963,_0x57e7a8-0x78f,_0x270d70-0x137);}function _0x5eb577(_0x31fb46,_0x537360,_0x1cfd89,_0x1f7666){return _0x5e6a6f(_0x31fb46,_0x537360-0x6a,_0x537360-_0xe8b4f4._0x11a3c7,_0x1f7666-0x156);}try{yield*this[_0x30ff21(0x6e6,_0x68e610._0xbdee0b,_0x68e610._0x40cc96,_0x68e610._0x14fc12)](_0x514d83,_0x511a7e);}catch(_0x57cab8){if(_0x57cab8 instanceof OpenAiApiError)throw this[_0x5eb577(0xf7,_0x68e610._0x1a8998,_0x68e610._0x22d279,0x5c)](_0x57cab8);throw _0x57cab8;}}async*['responseStream'](_0x39ecea,_0x44b885){try{yield*this['streamViaResponsesSurface'](_0x39ecea,_0x44b885);}catch(_0x9a68b){if(_0x9a68b instanceof OpenAiApiError)throw this['mapApiError'](_0x9a68b);throw _0x9a68b;}}async*[_0x2088d4(0x5b,0x56,0x1b3,0x115)](_0x21476d,_0xcc9521){const _0xd12d7b={_0x3442c5:0x168},_0x1721a7={_0x4aaa62:0x1c6};function _0xf40a76(_0x2f69f6,_0x26b2c3,_0x22a8d2,_0x186f63){return _0x5e6a6f(_0x22a8d2,_0x26b2c3-_0x1721a7._0x4aaa62,_0x26b2c3-0xd4,_0x186f63-0x1f4);}try{yield*this[_0xf40a76(-0xa2,-0x159,-0x11a,-_0xd12d7b._0x3442c5)](_0x21476d,_0xcc9521);}catch(_0x61e790){if(_0x61e790 instanceof OpenAiApiError)throw this['mapApiError'](_0x61e790);throw _0x61e790;}}[_0x2088d4(0xe1,0x74,0x5b,0x10c)](_0x2b1585,_0x5f0523){const _0x486232={_0x35c3e0:0x537,_0x1c5e9f:0x5cc,_0x2224a7:0x4bd},_0x355b50={_0x3dc960:0x1b};function _0x11718a(_0x1c725b,_0x3b20b0,_0x37880b,_0x48b0cc){return _0x2088d4(_0x1c725b-_0x355b50._0x3dc960,_0x3b20b0-0x2c,_0x37880b,_0x3b20b0-0x336);}return this[_0x11718a(0x5eb,_0x486232._0x35c3e0,_0x486232._0x1c5e9f,_0x486232._0x2224a7)](_0x2b1585,_0x5f0523);}['stream'](_0x18b1f9,_0x5d3f14){const _0x511a16={_0x22be1b:0x50b,_0x1a3c1c:0x4b8};function _0x50a55f(_0x8db5ca,_0x5211c8,_0x3a706b,_0x46a29b){return _0x5e6a6f(_0x46a29b,_0x5211c8-0x190,_0x3a706b-0x6ba,_0x46a29b-0x159);}return this[_0x50a55f(_0x511a16._0x22be1b,0x47e,0x505,_0x511a16._0x1a3c1c)](_0x18b1f9,_0x5d3f14);}['getResponsesSocketSessionState'](_0x1d6f72){const _0x320c9b={_0xf0df74:0x1da,_0x1ef068:0x32f,_0x112f29:0x304,_0x1ae0c1:0x79,_0x58cb7e:0x160,_0x533ebc:0x8a,_0x273daf:0x11d,_0x5dedca:0x4a,_0x546e84:0xf2},_0x561268={_0x259c66:0x1e,_0x22341f:0x31f,_0x1e9942:0x42},_0x3ebc0f={_0x9165e1:0xf,_0x3fb035:0xfe,_0x3dc032:0x1b9};function _0x2d902c(_0x524a6f,_0x1588b4,_0x44df00,_0xf6a9f4){return _0x2088d4(_0x524a6f-_0x3ebc0f._0x9165e1,_0x1588b4-_0x3ebc0f._0x3fb035,_0xf6a9f4,_0x524a6f- -_0x3ebc0f._0x3dc032);}const _0x31b997=this['getResponsesSocketSessionKey'](_0x1d6f72);function _0x3e13e0(_0x37af70,_0x280854,_0x545676,_0x28bc9a){return _0x5e6a6f(_0x545676,_0x280854-_0x561268._0x259c66,_0x28bc9a-_0x561268._0x22341f,_0x28bc9a-_0x561268._0x1e9942);}let _0xf0b3ce=this['responsesSocketSessions'][_0x3e13e0(_0x320c9b._0xf0df74,_0x320c9b._0x1ef068,_0x320c9b._0x112f29,0x281)](_0x31b997);return!_0xf0b3ce&&(_0xf0b3ce={'key':_0x31b997,'locked':![],'pending':Promise[_0x2d902c(-0x5e,_0x320c9b._0x1ae0c1,-0xcc,0x21)]()},this[_0x3e13e0(_0x320c9b._0x58cb7e,0x187,_0x320c9b._0x533ebc,_0x320c9b._0x273daf)][_0x2d902c(-_0x320c9b._0x5dedca,0x2,-_0x320c9b._0x546e84,-0x8d)](_0x31b997,_0xf0b3ce)),_0xf0b3ce;}['maybeEvictResponsesSocketSession'](_0x141287){const _0x5c005e={_0x4b5a65:0x26e,_0x1aa04f:0x1ed,_0x5393b7:0x27d,_0x31ac2d:0x1aa,_0x265c3b:0x289,_0x588812:0x131,_0x332472:0xda,_0x2f1cec:0x1e0,_0x54d2f8:0x21f,_0x32da6b:0x373,_0x103601:0xed,_0x10d80a:0xf8,_0x1a7ddd:0x1e1,_0x514251:0x222,_0x48addb:0x108,_0x37e7ca:0x18e,_0x3dcbf3:0x235,_0x1ec453:0x256,_0x4ae3cb:0x18e},_0x5c8b0b={_0x14da32:0x156,_0x421634:0x3e3},_0x2c5109={_0x324601:0x193,_0x326c5e:0x7a};function _0x41559a(_0x9cd4bb,_0x698fb9,_0x6b8fa1,_0x20130d){return _0x2088d4(_0x9cd4bb-_0x2c5109._0x324601,_0x698fb9-_0x2c5109._0x326c5e,_0x6b8fa1,_0x9cd4bb-0x7a);}if(_0x141287[_0x3e8989(_0x5c005e._0x4b5a65,_0x5c005e._0x1aa04f,_0x5c005e._0x5393b7,_0x5c005e._0x31ac2d)]||_0x141287[_0x3e8989(0x2f9,0x210,0x334,0x26b)]||_0x141287[_0x41559a(0x28c,0x2fb,0x320,_0x5c005e._0x265c3b)])return;function _0x3e8989(_0x228209,_0xe8bafa,_0x2a0e47,_0x1ae2d2){return _0x5e6a6f(_0x1ae2d2,_0xe8bafa-_0x5c8b0b._0x14da32,_0x228209-_0x5c8b0b._0x421634,_0x1ae2d2-0xe9);}this[_0x41559a(0x140,_0x5c005e._0x588812,0xba,_0x5c005e._0x332472)][_0x41559a(0x2a4,_0x5c005e._0x2f1cec,_0x5c005e._0x54d2f8,_0x5c005e._0x32da6b)](_0x141287[_0x41559a(_0x5c005e._0x103601,_0x5c005e._0x10d80a,0x114,0xc0)])===_0x141287&&this[_0x3e8989(_0x5c005e._0x1a7ddd,_0x5c005e._0x514251,0x151,_0x5c005e._0x48addb)]['delete'](_0x141287[_0x3e8989(_0x5c005e._0x37e7ca,_0x5c005e._0x3dcbf3,_0x5c005e._0x1ec453,_0x5c005e._0x4ae3cb)]);}[_0x2088d4(0xd1,0x8a,0x10e,0xaf)](_0x4c1ded){const _0x4319f1={_0xcfa231:0x5a9,_0x4a3a99:0x4fe,_0x2fb4bb:0x5bd,_0x11d000:0x68e,_0x52291d:0x5e7},_0x1faa32={_0x17ef46:0x11c,_0x5ac4f5:0x2d1},_0x22ed95={_0x16f43a:0x3c};function _0x4cb084(_0x3154a2,_0x1469db,_0x362412,_0x1aebb1){return _0x5e6a6f(_0x3154a2,_0x1469db-_0x22ed95._0x16f43a,_0x1aebb1-0x718,_0x1aebb1-0x1dd);}function _0x38a305(_0x39501b,_0x45535c,_0x4c0724,_0x35f8ac){return _0x2088d4(_0x39501b-0x197,_0x45535c-_0x1faa32._0x17ef46,_0x39501b,_0x35f8ac-_0x1faa32._0x5ac4f5);}return''+trimTrailingSlashes(this[_0x4cb084(0x585,_0x4319f1._0xcfa231,0x4cf,_0x4319f1._0x4a3a99)])+this[_0x4cb084(_0x4319f1._0x2fb4bb,0x615,_0x4319f1._0x11d000,_0x4319f1._0x52291d)]+'::'+_0x4c1ded;}async[_0x5e6a6f(-0xca,-0x1f8,-0x161,-0x138)](_0x3b91bc){const _0x41323f={_0x46e504:0x2e,_0x36a8c3:0x1a8,_0x20a6bf:0x125,_0x197f51:0xc4,_0x4a9f01:0x157,_0x3604df:0xdf},_0x3133cc={_0x1a32cb:0x344,_0x4fed1a:0x2ff,_0x27fcaa:0x3ee},_0x595a1a={_0x376d1d:0x177,_0x14a9c9:0x4a3},_0x5470b3={_0x54bd1d:0x117,_0x40cc2b:0x191,_0x132929:0x1ef},_0x299272={_0x3f34f9:0x1a0,_0xa3995d:0x260},_0x5dd9b2=_0x3b91bc['pending'][_0x29e8b4(-_0x41323f._0x46e504,-_0x41323f._0x36a8c3,-_0x41323f._0x20a6bf,-0xf7)](()=>{});function _0x2fb716(_0x10a7bb,_0x394dfa,_0x21b7a3,_0x2e54f8){return _0x5e6a6f(_0x10a7bb,_0x394dfa-_0x299272._0x3f34f9,_0x2e54f8-_0x299272._0xa3995d,_0x2e54f8-0x163);}let _0x3f6cbb;function _0x29e8b4(_0x51eccd,_0x5b7e85,_0x3f5a64,_0x522452){return _0x2088d4(_0x51eccd-_0x5470b3._0x54bd1d,_0x5b7e85-_0x5470b3._0x40cc2b,_0x5b7e85,_0x522452- -_0x5470b3._0x132929);}const _0x561c45=new Promise(_0x566e71=>{_0x3f6cbb=_0x566e71;});return _0x3b91bc['pending']=_0x5dd9b2['then'](()=>_0x561c45),await _0x5dd9b2,_0x3b91bc[_0x29e8b4(-_0x41323f._0x197f51,-_0x41323f._0x4a9f01,-_0x41323f._0x3604df,-0x9c)]=!![],()=>{_0x3b91bc['locked']=![];function _0x3bfa9f(_0x2fdc12,_0x346b6a,_0x31014a,_0x4ae660){return _0x29e8b4(_0x2fdc12-_0x595a1a._0x376d1d,_0x4ae660,_0x31014a-0x53,_0x2fdc12-_0x595a1a._0x14a9c9);}_0x3f6cbb?.(),this[_0x3bfa9f(_0x3133cc._0x1a32cb,_0x3133cc._0x4fed1a,0x3bf,_0x3133cc._0x27fcaa)](_0x3b91bc);};}async[_0x2088d4(0xdc,0x52,0x74,0xc8)](_0x1b6b6e,_0x32e9ff){const _0x304654={_0x47a40b:0x8f,_0x2df856:0x31,_0x127617:0x43e,_0x58928a:0x3bc,_0x516ef0:0xf9,_0x4e0c08:0xd3,_0x5b3877:0x10c,_0x2defd0:0xa8,_0xc0ec87:0xe4,_0x2992ec:0x12b,_0x263b15:0x3e,_0x331624:0x107,_0x186ef3:0xcd,_0x536d1b:0x348,_0x2b1c44:0x427,_0x163f7a:0x3d5,_0x4391f9:0x4a5,_0x541d13:0x488,_0x3e9b0f:0x3a7,_0xe9da3e:0x371},_0x1df908={_0x26f4ab:0x3d,_0x4c7a17:0xcd},_0x3fb706={_0x2163dd:0x107},_0xc2484c=this[_0x3d7acd(-0x12a,_0x304654._0x47a40b,-_0x304654._0x2df856,-0x41)](_0x1b6b6e);function _0x3d7acd(_0xc513e3,_0x44e32b,_0x7c6d9,_0x183c78){return _0x2088d4(_0xc513e3-_0x3fb706._0x2163dd,_0x44e32b-0x142,_0xc513e3,_0x183c78- -0x28a);}function _0x5c7945(_0x41f1c4,_0x221d4e,_0x48557f,_0x4a63cb){return _0x5e6a6f(_0x4a63cb,_0x221d4e-_0x1df908._0x26f4ab,_0x41f1c4-0x578,_0x4a63cb-_0x1df908._0x4c7a17);}const _0x5545d7=toModelRequest(_0xc2484c),_0x2bcc46=await prepareProviderRequest(_0x5545d7,{'sessionManager':this[_0x5c7945(0x41d,_0x304654._0x127617,0x45c,_0x304654._0x58928a)],'requestMutators':this[_0x3d7acd(-_0x304654._0x516ef0,-_0x304654._0x4e0c08,-_0x304654._0x5b3877,-_0x304654._0x2defd0)],'signal':_0x32e9ff}),_0x11b764=toChatRequest(_0x2bcc46['request']),_0x211ce1=this[_0x3d7acd(-0xc,-0x168,-0xf5,-_0x304654._0xc0ec87)][_0x3d7acd(-_0x304654._0x2992ec,-_0x304654._0x263b15,-_0x304654._0x331624,-_0x304654._0x186ef3)](this['apiKey'],_0x2bcc46[_0x5c7945(_0x304654._0x536d1b,0x35e,0x33c,0x2a9)]);if(!_0x211ce1)throw this[_0x5c7945(0x4a0,_0x304654._0x2b1c44,_0x304654._0x163f7a,_0x304654._0x4391f9)]();return{'baseUrl':this[_0x5c7945(0x456,0x4a6,_0x304654._0x541d13,_0x304654._0x3e9b0f)]['resolveBaseUrl'](this[_0x5c7945(0x35e,_0x304654._0xe9da3e,0x3ed,0x3f5)],_0x2bcc46[_0x5c7945(0x348,0x2df,0x393,0x370)]),'credential':_0x211ce1,'request':_0x11b764,'session':_0x2bcc46[_0x3d7acd(-0x10b,-0x2b8,-0x126,-0x1f2)]};}[_0x5e6a6f(-0x1a,-0xa3,-0xa2,-0xee)](_0x2b4c86,_0xffeb78,_0x471717={}){const _0x387abc={_0x470c9:0xd4,_0x58560a:0xf7,_0x87de47:0x48,_0x5827b0:0xad,_0x249811:0x158,_0x25cda3:0x1ed,_0x64f626:0x1da,_0x74d6f1:0x12e,_0x538e17:0x2c3,_0x1907ac:0x11a,_0x44c1a8:0x7f,_0x3aedfd:0x150,_0x4f0655:0x46,_0x3c0f1:0x1bb},_0x2061f3={_0x158d9c:0xf1,_0x48d59a:0x63},_0x508cc1={_0x22ed91:0x19d,_0x2f4d6c:0xe1};function _0x54fefa(_0x596526,_0x5878af,_0x5e8df6,_0x4a3183){return _0x5e6a6f(_0x4a3183,_0x5878af-_0x508cc1._0x22ed91,_0x5878af-0x227,_0x4a3183-_0x508cc1._0x2f4d6c);}if(!_0x471717[_0x54fefa(_0x387abc._0x470c9,_0x387abc._0x58560a,_0x387abc._0x87de47,0x66)]){const _0x179243=this[_0x54fefa(_0x387abc._0x5827b0,_0x387abc._0x249811,_0x387abc._0x25cda3,0x23f)](_0x2b4c86);if(_0x179243&&_0xffeb78[_0x600e96(0x21b,_0x387abc._0x64f626,_0x387abc._0x74d6f1,_0x387abc._0x538e17)]&&_0x179243[_0x600e96(0x4a,_0x387abc._0x1907ac,0x192,0xe7)]===_0xffeb78['lastResponseId']){const _0x3fbac7=toOpenAiResponsesRequest({..._0x2b4c86,'messages':_0x2b4c86[_0x600e96(0x5b,0x20,-0x8e,-_0x387abc._0x44c1a8)]['slice'](_0x179243['messageIndex']+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x2b4c86,{'input':_0x3fbac7,'promptCacheKey':this['promptCacheKeyResolver']?.(_0x2b4c86),'previousResponseId':_0x179243[_0x54fefa(_0x387abc._0x3aedfd,0xdc,_0x387abc._0x4f0655,_0x387abc._0x3c0f1)]}),'previousResponseId':_0x179243['responseId']};}}function _0x600e96(_0x176721,_0x767885,_0x496ede,_0xd73160){return _0x2088d4(_0x176721-0xb4,_0x767885-_0x2061f3._0x158d9c,_0x496ede,_0x767885- -_0x2061f3._0x48d59a);}return{'event':createOpenAiResponsesWebSocketEvent(_0x2b4c86,{'promptCacheKey':this['promptCacheKeyResolver']?.(_0x2b4c86)})};}[_0x5e6a6f(-0x130,-0x9a,-0xcf,-0x101)](_0x6a0d27){const _0x116044={_0x397a74:0x81,_0x595f77:0x21b,_0x4d61a4:0x1f3,_0x47082d:0x23f,_0x49f86c:0x27e,_0x496fdf:0x593,_0x5b4583:0x5d8,_0x5282d8:0x289},_0x547e52={_0x416637:0x8e},_0x59d96e={_0x241654:0x276};function _0x4fc191(_0x5733aa,_0x3cb722,_0x2c7a9b,_0x3951ed){return _0x2088d4(_0x5733aa-0x66,_0x3cb722-0x91,_0x2c7a9b,_0x3cb722- -_0x59d96e._0x241654);}function _0x42a82d(_0x786cf8,_0x50b339,_0x1685e1,_0x206909){return _0x2088d4(_0x786cf8-0x1e5,_0x50b339-_0x547e52._0x416637,_0x206909,_0x786cf8-0x427);}for(let _0x41c62c=_0x6a0d27['messages'][_0x4fc191(-0x163,-0x10d,-_0x116044._0x397a74,-0xce)]-0x1;_0x41c62c>=0x0;_0x41c62c-=0x1){const _0x1487ef=_0x6a0d27[_0x4fc191(-_0x116044._0x595f77,-_0x116044._0x4d61a4,-_0x116044._0x47082d,-_0x116044._0x49f86c)][_0x41c62c],_0x1c6dc5=_0x1487ef['role']==='assistant'?_0x1487ef[_0x42a82d(_0x116044._0x496fdf,0x54c,_0x116044._0x5b4583,0x4f5)]?.[_0x4fc191(-0x261,-0x200,-0x2b7,-_0x116044._0x5282d8)]:void 0x0;if(_0x1c6dc5)return{'messageIndex':_0x41c62c,'responseId':_0x1c6dc5};}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x117a5e){const _0x237607={_0x11b19f:0x59,_0x2d4dda:0x52,_0x49752d:0xed,_0x537d26:0x2f},_0x2d834e={_0x465de5:0x1e2,_0x19d4d2:0x15d,_0x4ec37b:0x19d},_0x1cf7a6={_0x3d4583:0x6,_0x1722c1:0x151};function _0x4d3a0b(_0x4bdcf1,_0x196b38,_0x2a7c83,_0x534b3a){return _0x5e6a6f(_0x534b3a,_0x196b38-_0x1cf7a6._0x3d4583,_0x196b38-0x593,_0x534b3a-_0x1cf7a6._0x1722c1);}function _0x48530f(_0x30ff96,_0x1fb3d3,_0xdeaaa9,_0x34c0f3){return _0x2088d4(_0x30ff96-_0x2d834e._0x465de5,_0x1fb3d3-_0x2d834e._0x19d4d2,_0x30ff96,_0x1fb3d3- -_0x2d834e._0x4ec37b);}return _0x117a5e instanceof ProviderStreamEventError&&(_0x117a5e['code']==='previous_response_not_found'||_0x117a5e[_0x48530f(0x36,0x42,-_0x237607._0x11b19f,_0x237607._0x2d4dda)]===_0x48530f(-0x87,-_0x237607._0x49752d,-_0x237607._0x537d26,-0xe5));}[_0x2088d4(0x115,0x159,0x8c,0x94)](_0x8c7eb4){const _0x3dd128={_0xcdbf63:0x115,_0x49f449:0x1c0,_0x123093:0x125,_0xdea62b:0x52,_0x52a60a:0xaf,_0x250db8:0xb9,_0x278264:0x81,_0x2634c1:0x15f,_0x542609:0x158,_0x1fb2fd:0x17e,_0x1c78ed:0x1c6},_0x266af3={_0x580f19:0x1b4,_0x549058:0x274},_0x36857c={_0x130d84:0x16c};function _0x14d2c3(_0x27bdd7,_0x5837c4,_0x591b0e,_0x3d9eb0){return _0x2088d4(_0x27bdd7-_0x36857c._0x130d84,_0x5837c4-0x17e,_0x5837c4,_0x591b0e- -0xf0);}const _0xd090e8=_0x8c7eb4['socket'];_0x8c7eb4[_0x45dcfd(_0x3dd128._0xcdbf63,_0x3dd128._0x49f449,0x1be,_0x3dd128._0x123093)]=void 0x0,_0x8c7eb4[_0x14d2c3(_0x3dd128._0xdea62b,0x32,0xee,_0x3dd128._0x52a60a)]=void 0x0;function _0x45dcfd(_0x129095,_0x5c498c,_0x58ab93,_0xdd3591){return _0x5e6a6f(_0xdd3591,_0x5c498c-_0x266af3._0x580f19,_0x58ab93-_0x266af3._0x549058,_0xdd3591-0x39);}_0x8c7eb4['lastResponseId']=void 0x0,_0xd090e8?.[_0x14d2c3(-0x85,-0xc,-0x54,-_0x3dd128._0x250db8)]===WebSocket[_0x45dcfd(0x15d,_0x3dd128._0x278264,_0x3dd128._0x2634c1,0xcf)]&&_0xd090e8[_0x45dcfd(0x1a6,_0x3dd128._0x542609,0x130,_0x3dd128._0x1fb2fd)](0x3e8,_0x14d2c3(0x24d,_0x3dd128._0x1c78ed,0x160,0x1d3));}async['getOrCreateResponsesSocket'](_0x1f0a53,_0x1b5cd5,_0x10e532,_0x35f82c,_0x20582e){const _0x3be645={_0x31d2ae:0x16f,_0x2a2dba:0x9e,_0x450787:0x110,_0x11ea27:0x40,_0x7736e8:0x11e,_0x7a712c:0x11b,_0x3fe2bc:0x13b,_0x295ee4:0x1b3,_0xc43393:0xda,_0x5766c3:0xa2,_0x3c61f4:0x13b,_0x16d4d2:0x19b,_0x5aa7b9:0x13b,_0x1dfcaf:0x200},_0x126465={_0x21eaa3:0x622,_0x5e4f08:0x649,_0x316cec:0x5b7,_0x186999:0x7e4,_0x40418d:0x70f,_0x53da74:0x60c,_0x59d143:0x4d1,_0xbcf387:0x55d,_0x28749a:0x639,_0x40b44d:0x621,_0x5ecc4d:0x69,_0x3c85ee:0x6ee,_0x3a7dca:0x12e,_0x319ec1:0x136,_0x41a798:0x1c6,_0x53d987:0x208,_0x44cfe3:0x174,_0x448d1c:0x1e1,_0x2d65d3:0x703,_0x597ea9:0x65c,_0x2125aa:0x77c,_0x4f694f:0xeb,_0x8ca1e2:0x10d,_0x4b07ee:0xb8,_0x453e65:0x39,_0x1818b3:0xcb,_0x23ceba:0x561,_0xc87f2d:0x83,_0x5517aa:0xc7,_0x28048e:0x186,_0x7bc7a:0xa0,_0x7b798c:0x6b4,_0x480d1e:0x601,_0x461e2c:0x61e,_0x34e721:0x678,_0x209d8a:0x65d},_0x321629={_0x41217b:0x6c,_0x184425:0x148},_0x376ef6={_0xbb8f6b:0x721,_0x263280:0xff};if(_0x1b5cd5[_0x2e81d9(0x109,0x10a,_0x3be645._0x31d2ae,_0x3be645._0x2a2dba)]?.['readyState']===WebSocket[_0x2e81d9(0xd6,0x91,_0x3be645._0x450787,_0x3be645._0x11ea27)])return _0x1b5cd5[_0x2e81d9(_0x3be645._0x7736e8,0x1f9,0x16f,_0x3be645._0x7a712c)];if(_0x1b5cd5['connecting'])return await _0x1b5cd5[_0x2e81d9(0x161,0xc0,_0x3be645._0x3fe2bc,_0x3be645._0x295ee4)];function _0x2af652(_0x5e54e5,_0x480451,_0x565f1a,_0x3b76d0){return _0x5e6a6f(_0x480451,_0x480451-0xbd,_0x565f1a-_0x376ef6._0xbb8f6b,_0x3b76d0-_0x376ef6._0x263280);}function _0x2e81d9(_0x519bbf,_0x147e7d,_0x438e99,_0x349e9b){return _0x2088d4(_0x519bbf-0xd6,_0x147e7d-0x6f,_0x349e9b,_0x438e99- -0xa3);}_0x1b5cd5[_0x2e81d9(_0x3be645._0xc43393,_0x3be645._0x5766c3,_0x3be645._0x3c61f4,_0x3be645._0x16d4d2)]=((async()=>{const _0x39d2f2={_0x21f2e6:0x578,_0x2dbb7f:0x4ee,_0x33c037:0x4a8,_0x5b4944:0x52e,_0x14ed61:0x4e4,_0x34bdab:0x5a8,_0x3429aa:0x317,_0x3144fb:0x3fb},_0x5b1fe8={_0x37ea24:0x341,_0x3a59b9:0xd5},_0x551815=await this[_0x28ca06(_0x126465._0x21eaa3,_0x126465._0x5e4f08,_0x126465._0x316cec,0x67c)]({'request':_0x10e532[_0x28ca06(0x7c7,_0x126465._0x186999,0x6ed,_0x126465._0x40418d)],'body':_0x35f82c,'credential':_0x10e532['credential'],'session':_0x10e532[_0x28ca06(_0x126465._0x53da74,_0x126465._0x59d143,0x580,_0x126465._0xbcf387)],'stream':!![]},{'accept':'application/json','includeContentType':![]});_0x551815[_0x28ca06(_0x126465._0x28749a,0x69e,0x6a0,_0x126465._0x40b44d)](_0xa45e30(-0xce,-0x9c,-_0x126465._0x5ecc4d,-0x9f));const _0x51b977=this[_0x28ca06(0x6cc,0x6c5,_0x126465._0x3c85ee,0x714)]({'headers':Object[_0xa45e30(-0xea,-_0x126465._0x3a7dca,-_0x126465._0x319ec1,-_0x126465._0x41a798)](_0x551815[_0xa45e30(-0x13d,-0x10c,-0x90,-_0x126465._0x53d987)]()),'url':(''+_0x10e532[_0xa45e30(-_0x126465._0x44cfe3,-0x255,-_0x126465._0x448d1c,-0x191)]+this[_0x28ca06(0x5de,0x6c9,_0x126465._0x2d65d3,_0x126465._0x597ea9)])[_0x28ca06(0x776,0x5f4,_0x126465._0x2125aa,0x6c0)](/^http:/,'ws:')['replace'](/^https:/,_0xa45e30(-_0x126465._0x4f694f,-_0x126465._0x8ca1e2,-_0x126465._0x4b07ee,-0x1ad))}),_0x2703ca=()=>{const _0x5b9692={_0x556b5b:0x181};function _0x5d05d0(_0x4a06c3,_0x50df61,_0x5751ec,_0x4b581c){return _0xa45e30(_0x4a06c3-_0x5b1fe8._0x37ea24,_0x50df61-_0x5b1fe8._0x3a59b9,_0x5751ec-0xd,_0x50df61);}function _0x6e848b(_0x20662b,_0x546eb7,_0x2fdca2,_0x29286d){return _0xa45e30(_0x29286d-0x58d,_0x546eb7-_0x5b9692._0x556b5b,_0x2fdca2-0x72,_0x2fdca2);}_0x1b5cd5['socket']===_0x51b977&&(_0x1b5cd5[_0x6e848b(_0x39d2f2._0x21f2e6,_0x39d2f2._0x2dbb7f,_0x39d2f2._0x33c037,0x57d)]=void 0x0,_0x1b5cd5[_0x6e848b(_0x39d2f2._0x5b4944,0x4f9,_0x39d2f2._0x14ed61,_0x39d2f2._0x34bdab)]=void 0x0),this[_0x6e848b(0x31e,0x48a,_0x39d2f2._0x3429aa,_0x39d2f2._0x3144fb)](_0x1b5cd5);};function _0x28ca06(_0x5f4188,_0x3c2fd6,_0x21e47f,_0x1a9684){return _0x2af652(_0x5f4188-0x149,_0x5f4188,_0x1a9684-_0x321629._0x41217b,_0x1a9684-_0x321629._0x184425);}function _0xa45e30(_0x3d24be,_0x52f9ab,_0x3ab970,_0x1c6cd6){return _0x2e81d9(_0x3d24be-0x16c,_0x52f9ab-0xff,_0x3d24be- -0x17f,_0x1c6cd6);}_0x51b977[_0xa45e30(-_0x126465._0x453e65,-0x88,-0xf5,-_0x126465._0x1818b3)]('close',_0x2703ca);try{return throwIfAborted(_0x20582e),_0x51b977[_0x28ca06(0x490,0x5ff,0x64b,_0x126465._0x23ceba)]!==WebSocket[_0x28ca06(0x6fc,0x6fb,0x58d,0x678)]&&await waitForWebSocketOpen(_0x51b977,_0x20582e),throwIfAborted(_0x20582e),_0x1b5cd5[_0xa45e30(-0x10,-_0x126465._0xc87f2d,-0x1f,_0x126465._0x5517aa)]=_0x51b977,_0x51b977;}catch(_0x293410){_0x2703ca();_0x51b977[_0xa45e30(-_0x126465._0x28048e,-_0x126465._0x7bc7a,-0x238,-0x16b)]===WebSocket[_0x28ca06(_0x126465._0x7b798c,_0x126465._0x480d1e,_0x126465._0x461e2c,_0x126465._0x34e721)]&&_0x51b977['close'](0x3e8,_0x28ca06(0x672,_0x126465._0x209d8a,0x58e,0x596));throw _0x293410;}})());try{return await _0x1b5cd5['connecting'];}finally{_0x1b5cd5[_0x2e81d9(0xbb,0x86,_0x3be645._0x5aa7b9,_0x3be645._0x1dfcaf)]=void 0x0;}}async*[_0x5e6a6f(-0x24a,-0x171,-0x22d,-0x201)](_0x2c0aef,_0x442e89){const _0x27e48d={_0x2b97d9:0x6da,_0x4e0091:0x6a4,_0x484bd9:0x4d6,_0x4fb0c1:0x59e,_0x4677e1:0x4cb,_0x40a690:0x447,_0x49083b:0x482,_0x28d847:0x4df,_0x3724b5:0x4f0,_0x516116:0x547,_0x5c245a:0x592,_0x54d3be:0x518,_0xd1603a:0x49b,_0x257c94:0x44a,_0x164f50:0x536,_0x56aa2c:0x4ad,_0x435c4a:0x480,_0x4805e0:0x3a5,_0x266d08:0x3c9,_0x1da56e:0x41b,_0x4d1a3d:0x56f,_0x376a85:0x566,_0x5b8f89:0x47b,_0x5f5bc8:0x4c1,_0x557731:0x428,_0x3ee890:0x51a,_0x1c569a:0x482,_0x375185:0x489,_0x3797f5:0x565,_0x438b25:0x549,_0x5ad169:0x502},_0x5741c4={_0x24238d:0x75},_0x69f46={_0x5b27ea:0x5fd,_0x2b1fcc:0x1b2};function _0x3ac83d(_0x70a35f,_0x32df6e,_0x41b94a,_0x56a14e){return _0x5e6a6f(_0x70a35f,_0x32df6e-0x183,_0x41b94a-_0x69f46._0x5b27ea,_0x56a14e-_0x69f46._0x2b1fcc);}const _0x4542a0=this[_0x105910(0x725,0x68e,_0x27e48d._0x2b97d9,_0x27e48d._0x4e0091)](_0x2c0aef),_0x18a083=this[_0x105910(0x50e,0x4e4,_0x27e48d._0x484bd9,0x3f9)](_0x4542a0[_0x105910(0x568,_0x27e48d._0x4fb0c1,0x66f,_0x27e48d._0x4677e1)][_0x3ac83d(_0x27e48d._0x40a690,0x562,_0x27e48d._0x49083b,0x3ea)]),_0x52b7ba=await this[_0x3ac83d(0x49e,_0x27e48d._0x28d847,0x49c,0x450)](_0x18a083);function _0x105910(_0x5f1644,_0x507d3f,_0x588a66,_0x5a54a6){return _0x2088d4(_0x5f1644-_0x5741c4._0x24238d,_0x507d3f-0xa4,_0x5a54a6,_0x507d3f-0x445);}try{const _0xc8de4b=this['buildResponsesSocketEvent'](_0x4542a0,_0x18a083);try{yield*this[_0x3ac83d(0x4e8,0x4df,_0x27e48d._0x3724b5,_0x27e48d._0x516116)](_0x4542a0['metadata'][_0x105910(0x4e8,_0x27e48d._0x5c245a,_0x27e48d._0x54d3be,0x62d)],_0x18a083,_0x4542a0,_0xc8de4b[_0x3ac83d(_0x27e48d._0xd1603a,0x60e,0x539,0x5a0)],_0x442e89?.[_0x105910(_0x27e48d._0x257c94,_0x27e48d._0x164f50,_0x27e48d._0x56aa2c,_0x27e48d._0x435c4a)]);return;}catch(_0x5df863){if(!_0xc8de4b['previousResponseId']||!this[_0x3ac83d(0x3a5,0x4ec,0x435,0x503)](_0x5df863)){this['invalidateResponsesSocketSession'](_0x18a083);throw _0x5df863;}}this[_0x3ac83d(0x439,_0x27e48d._0x4805e0,_0x27e48d._0x266d08,_0x27e48d._0x1da56e)](_0x18a083);const _0x3fff9b=this[_0x3ac83d(0x524,_0x27e48d._0x4d1a3d,0x55b,_0x27e48d._0x376a85)](_0x4542a0,_0x18a083,{'forceFullReplay':!![]});yield*this[_0x3ac83d(_0x27e48d._0x5b8f89,0x562,0x4f0,_0x27e48d._0x5f5bc8)](_0x4542a0[_0x3ac83d(0x448,0x505,0x48e,_0x27e48d._0x557731)][_0x3ac83d(_0x27e48d._0x3ee890,0x436,_0x27e48d._0x1c569a,_0x27e48d._0x375185)],_0x18a083,_0x4542a0,_0x3fff9b[_0x3ac83d(_0x27e48d._0x3797f5,0x50d,0x539,_0x27e48d._0x438b25)],_0x442e89?.[_0x105910(0x4e5,0x536,_0x27e48d._0x5ad169,0x5c3)]);}finally{_0x52b7ba();}}async*[_0x2088d4(0x275,0x294,0x1a3,0x1bb)](_0x1aaf8f,_0x5e9bc8,_0x4ed441,_0x410445,_0x4f202f){const _0x8ad1e5={_0xcd8ad8:0x466,_0x2ecd7d:0x3da,_0x4769f0:0x447,_0x2ed37b:0x45e,_0x56cd62:0x562,_0x2ca762:0x56b,_0x1ff257:0x4f8,_0x55f43a:0x5e3,_0x5c717a:0x506,_0x49a815:0x571,_0x192c7a:0x311,_0x5c99fd:0x3e8,_0x971581:0x542,_0x4f3836:0x2f5,_0xbea621:0x375,_0x1c81f3:0x50e,_0x10920c:0x417,_0x49571d:0x3d3,_0x2f1189:0x46a},_0x230401={_0x1d5f90:0x666};function _0x5dbc68(_0x2da1df,_0x242e74,_0x2b7407,_0x5bac57){return _0x5e6a6f(_0x2b7407,_0x242e74-0x1e7,_0x2da1df-_0x230401._0x1d5f90,_0x5bac57-0x1d1);}const _0x47c30e=await this[_0x5dbc68(_0x8ad1e5._0xcd8ad8,_0x8ad1e5._0x2ecd7d,0x3ba,0x3a2)](_0x4ed441,_0x4f202f),_0x585e69=await this[_0x4ff6f0(0x50a,0x508,0x498,0x548)](_0x1aaf8f,_0x5e9bc8,_0x47c30e,_0x410445,_0x4f202f);function _0x4ff6f0(_0x5d4ebb,_0x403857,_0x4e2cc1,_0x3a00dc){return _0x2088d4(_0x5d4ebb-0x128,_0x403857-0x7d,_0x5d4ebb,_0x4e2cc1-0x2ff);}const _0x21c9e0=createOpenAiResponsesStreamParser(_0x4ed441);throwIfAborted(_0x4f202f),_0x585e69['send'](JSON['stringify'](_0x410445));for await(const _0x48b2e2 of iterateWebSocketMessages(_0x585e69,_0x4f202f)){const _0x4bf624=_0x21c9e0[_0x5dbc68(_0x8ad1e5._0x4769f0,_0x8ad1e5._0x2ed37b,0x419,0x36e)]?.(_0x48b2e2)??[];yield*_0x4bf624;if(_0x21c9e0[_0x5dbc68(_0x8ad1e5._0x56cd62,0x62f,0x4ed,0x497)]?.())break;}if(!_0x21c9e0[_0x4ff6f0(0x47e,_0x8ad1e5._0x2ca762,0x4c3,0x4c0)]?.())throw new Error(_0x5dbc68(_0x8ad1e5._0x1ff257,_0x8ad1e5._0x55f43a,_0x8ad1e5._0x5c717a,_0x8ad1e5._0x49a815));const _0x386740=_0x21c9e0[_0x4ff6f0(_0x8ad1e5._0x192c7a,0x3cb,_0x8ad1e5._0x5c99fd,0x3b8)](),_0x2c877d=_0x386740[_0x4ff6f0(0x524,0x4f4,0x46b,_0x8ad1e5._0x971581)]?.[_0x4ff6f0(0x3c9,_0x8ad1e5._0x4f3836,_0x8ad1e5._0xbea621,0x2f0)]??_0x386740['id'];_0x2c877d&&(_0x5e9bc8[_0x4ff6f0(0x4f6,_0x8ad1e5._0x1c81f3,0x53c,0x57b)]=_0x2c877d),yield{'type':_0x4ff6f0(_0x8ad1e5._0x10920c,0x32e,_0x8ad1e5._0x49571d,_0x8ad1e5._0x2f1189),'response':_0x386740};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x5e6a6f(-0x2cd,-0x189,-0x240,-0x2a4),_0x5e6a6f(-0x2ab,-0x18b,-0x1c6,-0x232),_0x2088d4(0x18e,0x96,0x174,0x181),'openai-responses-ws'];function isAnthropicSurface(_0x4714e3){const _0x5e34ed={_0x5df63e:0xba,_0x35738a:0xe},_0x49b39a={_0x44daa9:0x212,_0x437e5b:0x115};function _0x47fb7d(_0x4c3eef,_0xff3fc1,_0x3e161e,_0x459159){return _0x5e6a6f(_0x459159,_0xff3fc1-0x40,_0xff3fc1-_0x49b39a._0x44daa9,_0x459159-_0x49b39a._0x437e5b);}return _0x4714e3===_0x47fb7d(_0x5e34ed._0x5df63e,-0x2e,_0x5e34ed._0x35738a,-0xa9);}function providerFromSurface(_0x312ad1){const _0x32b641={_0x4bbe50:0x15,_0x35e7f6:0x4c,_0x24d0d3:0x4e5},_0x3a7c1c={_0x41ed16:0x8c},_0x3accd7={_0x39c215:0x216,_0x205e93:0xc0};function _0x325bdd(_0x38eb78,_0x4ed767,_0x4f66ba,_0x808be4){return _0x5e6a6f(_0x38eb78,_0x4ed767-0x1a8,_0x808be4-_0x3accd7._0x39c215,_0x808be4-_0x3accd7._0x205e93);}function _0x3c991f(_0x32595e,_0x420768,_0x23b669,_0x317d0f){return _0x5e6a6f(_0x32595e,_0x420768-_0x3a7c1c._0x41ed16,_0x420768-0x688,_0x317d0f-0x42);}return _0x312ad1['startsWith'](_0x325bdd(-0x18,-0x90,-_0x32b641._0x4bbe50,_0x32b641._0x35e7f6))?'anthropic':_0x3c991f(0x58d,_0x32b641._0x24d0d3,0x4e5,0x5c3);}function resolveDefaultBaseUrl(_0x4c0dd4){const _0x50c074={_0x404898:0x2eb,_0x2fbade:0x2cc,_0x4d3c5f:0x541,_0x3561cc:0x537,_0xcab3b5:0x311,_0x1c4228:0x514,_0x238ed5:0x4dd,_0x5e4801:0x37e,_0x19a107:0x573},_0x1c86ee={_0x18b090:0xcc,_0x5d104d:0xd2};if(_0x4c0dd4===_0x244731(0x251,0x211,_0x50c074._0x404898,_0x50c074._0x2fbade))return getProviderProfile(_0x12f538(0x474,_0x50c074._0x4d3c5f,_0x50c074._0x3561cc,0x5a1))?.[_0x244731(0x253,0x3c2,_0x50c074._0xcab3b5,0x311)]??_0x12f538(_0x50c074._0x1c4228,0x479,_0x50c074._0x238ed5,0x557);function _0x244731(_0x20038c,_0x6a39cb,_0x4aabf3,_0x48d97b){return _0x2088d4(_0x20038c-0x1b4,_0x6a39cb-0xb5,_0x6a39cb,_0x4aabf3-0x263);}function _0x12f538(_0x356b65,_0x5ac784,_0x5b2b1d,_0x475e67){return _0x5e6a6f(_0x475e67,_0x5ac784-_0x1c86ee._0x18b090,_0x5b2b1d-0x701,_0x475e67-_0x1c86ee._0x5d104d);}return getProviderProfile('openai')?.[_0x244731(0x381,_0x50c074._0x5e4801,_0x50c074._0xcab3b5,0x291)]??_0x12f538(0x657,0x612,0x568,_0x50c074._0x19a107);}var ChatModel=class{[_0x5e6a6f(-0x172,-0xe2,-0x100,-0xc6)];[_0x5e6a6f(0x3d,-0xf8,-0x7b,-0x70)];[_0x2088d4(0x281,0x22e,0x1c7,0x1ee)];['surface'];[_0x2088d4(0x10b,0xe6,0xed,0x1d1)];['anthropicDelegate'];[_0x5e6a6f(-0x247,-0x300,-0x243,-0x31e)];constructor(_0x56a8ba={}){const _0x2b8a6d={_0x2d8679:0x503,_0x3cdf8c:0x466,_0x18c41f:0x588,_0xeb14d7:0x51e,_0xbcada2:0x1f9,_0x255603:0x293,_0x24868d:0x334,_0x5a6a15:0x298,_0x17a012:0x213,_0x23c02b:0x2d8,_0x30a0f4:0x234,_0x33fb29:0x227,_0x8b3731:0x1a0,_0x3be81c:0x529,_0x52b6a8:0x3e6,_0x5b6ece:0x65,_0x247408:0x50c,_0x5caaa8:0x4a1,_0x11a31a:0xeb,_0x56fcc9:0x0,_0x1666b0:0xc7,_0x35111c:0xf4,_0x3293b7:0xcf,_0x1f7d4c:0xeb,_0x23a7ed:0x11e,_0xbdf350:0x1c0,_0x361af7:0x1d3,_0x474592:0x17d,_0x4e459f:0x294,_0x304ab9:0x275,_0x446953:0x354,_0xcd7336:0x44b,_0x275754:0x4f7,_0x4e4111:0x5a0,_0x386f04:0x5ce,_0x1c2aa1:0x16d,_0x40ee55:0x116,_0x4dc047:0x4fd,_0x4167c3:0x58d,_0x18e0d5:0x558,_0x25800c:0x5d7,_0x4a05d3:0x4d8,_0x56097d:0x383,_0x1247bc:0x16c,_0x1d4eee:0x210,_0x1b553b:0x130,_0x1b1a32:0x141,_0xbd5e0e:0x30e,_0x48ab8d:0x503,_0x466d10:0x468,_0x298c8a:0x15d,_0x3e461a:0x4b3,_0x90fcf3:0x523,_0x239ba9:0x44d,_0xb6d8f:0x1ca,_0x59d0af:0x1a5,_0x316a52:0x1d2,_0x3efb57:0x1b3},_0x290c25={_0x83b3ed:0xdf,_0xfd5ac0:0x12d,_0x3ed405:0x46},_0x4689ba={_0x23571e:0x1ea,_0xa1e291:0x19a};this[_0x2e578d(_0x2b8a6d._0x2d8679,_0x2b8a6d._0x3cdf8c,_0x2b8a6d._0x18c41f,_0x2b8a6d._0xeb14d7)]=_0x56a8ba['model']??getDefaultModel(),this[_0x23e8ed(_0x2b8a6d._0xbcada2,_0x2b8a6d._0x255603,_0x2b8a6d._0x24868d,0x1bc)]=_0x56a8ba[_0x2e578d(0x588,0x54c,0x5b0,0x597)]??modelIdentityFromParts(void 0x0,this[_0x23e8ed(0x1ad,0x20e,_0x2b8a6d._0x5a6a15,_0x2b8a6d._0x17a012)]),this[_0x23e8ed(_0x2b8a6d._0x23c02b,_0x2b8a6d._0x30a0f4,_0x2b8a6d._0x33fb29,_0x2b8a6d._0x8b3731)]=_0x56a8ba[_0x2e578d(_0x2b8a6d._0x3be81c,0x5c6,0x44b,0x4da)],this[_0x2e578d(0x3e0,_0x2b8a6d._0x52b6a8,0x38a,0x344)]=_0x56a8ba[_0x23e8ed(0xf6,0xeb,-0x4,_0x2b8a6d._0x5b6ece)]??'openai-chat-completions',this[_0x2e578d(_0x2b8a6d._0x247408,0x526,_0x2b8a6d._0x5caaa8,0x575)]=providerFromSurface(this[_0x23e8ed(0xe7,_0x2b8a6d._0x11a31a,_0x2b8a6d._0x56fcc9,_0x2b8a6d._0x1666b0)]);function _0x2e578d(_0x2b32b8,_0x21f872,_0x42cf33,_0x5ea230){return _0x5e6a6f(_0x21f872,_0x21f872-_0x4689ba._0x23571e,_0x2b32b8-0x603,_0x5ea230-_0x4689ba._0xa1e291);}const _0x243760=trimTrailingSlashes(_0x56a8ba[_0x23e8ed(0xa3,_0x2b8a6d._0x35111c,0x49,0xc5)]??resolveDefaultBaseUrl(this[_0x23e8ed(_0x2b8a6d._0x3293b7,_0x2b8a6d._0x1f7d4c,0x133,0x13)]));function _0x23e8ed(_0x2309df,_0x51124c,_0x2e40d9,_0x4d7c29){return _0x2088d4(_0x2309df-_0x290c25._0x83b3ed,_0x51124c-_0x290c25._0xfd5ac0,_0x2309df,_0x51124c-_0x290c25._0x3ed405);}if(isAnthropicSurface(this[_0x23e8ed(_0x2b8a6d._0x23a7ed,_0x2b8a6d._0x11a31a,_0x2b8a6d._0xbdf350,0x63)])){this[_0x23e8ed(0x15a,_0x2b8a6d._0x361af7,0x137,_0x2b8a6d._0x474592)]=new AnthropicModel({'apiKey':_0x56a8ba[_0x23e8ed(_0x2b8a6d._0x4e459f,_0x2b8a6d._0x304ab9,_0x2b8a6d._0x446953,0x1ca)],'authScheme':_0x56a8ba['authScheme'],'baseUrl':_0x243760,'fetch':_0x56a8ba['fetch'],'headerResolver':_0x56a8ba['anthropicHeaderResolver'],...this[_0x2e578d(0x529,_0x2b8a6d._0xcd7336,_0x2b8a6d._0x275754,0x567)]!==void 0x0?{'maxTokens':this[_0x2e578d(0x529,_0x2b8a6d._0x4e4111,_0x2b8a6d._0x386f04,0x48d)]}:{},'model':this['model'],'modelIdentity':this['modelIdentity'],'reasoning':_0x56a8ba[_0x23e8ed(0x1fa,0x1be,_0x2b8a6d._0x1c2aa1,_0x2b8a6d._0x40ee55)],'providerSessionResolver':_0x56a8ba[_0x2e578d(_0x2b8a6d._0x4dc047,0x5d9,_0x2b8a6d._0x4167c3,0x586)],'requestMutators':_0x56a8ba[_0x2e578d(0x51d,_0x2b8a6d._0x18e0d5,_0x2b8a6d._0x25800c,_0x2b8a6d._0x4a05d3)]});return;}this[_0x2e578d(0x3c0,0x322,_0x2b8a6d._0x56097d,0x344)]=new OpenAiModel({'apiKey':_0x56a8ba['apiKey'],'baseUrl':_0x243760,'fetch':_0x56a8ba[_0x23e8ed(_0x2b8a6d._0x1247bc,_0x2b8a6d._0x1d4eee,0x284,0x173)],'headerResolver':_0x56a8ba[_0x23e8ed(0x1a4,0x1cb,_0x2b8a6d._0x1b553b,_0x2b8a6d._0x1b1a32)],...this[_0x23e8ed(0x2f6,0x234,0x22e,_0x2b8a6d._0xbd5e0e)]!==void 0x0?{'maxTokens':this['maxTokens']}:{},'model':this[_0x2e578d(_0x2b8a6d._0x48ab8d,0x41f,_0x2b8a6d._0x466d10,0x484)],'modelIdentity':this['modelIdentity'],'promptCacheKeyResolver':_0x56a8ba[_0x23e8ed(0x235,_0x2b8a6d._0x298c8a,0xe9,0x12d)],'reasoning':_0x56a8ba[_0x2e578d(_0x2b8a6d._0x3e461a,_0x2b8a6d._0x90fcf3,0x42c,_0x2b8a6d._0x239ba9)],'providerSessionResolver':_0x56a8ba[_0x23e8ed(_0x2b8a6d._0xb6d8f,0x208,0x172,_0x2b8a6d._0x59d0af)],'requestMutators':_0x56a8ba[_0x23e8ed(_0x2b8a6d._0x316a52,0x228,_0x2b8a6d._0x3efb57,0x225)],'webSocketFactory':_0x56a8ba[_0x2e578d(0x58a,0x4f9,0x5da,0x63f)]});}[_0x2088d4(0x124,0x266,0x1f3,0x1e4)](){const _0x8a1243={_0x23c4db:0x1,_0xf97b79:0xce,_0x841929:0x40,_0x285341:0x17c,_0x3b1491:0x5d7,_0x5739fa:0x58b,_0x53a370:0x4a1,_0x57dad0:0x99,_0x3fa15d:0xce,_0x3cbe9d:0x1b5},_0xe30b0e={_0x3c584c:0x1d2},_0x1c44ab={_0x6a408d:0x6d,_0x31fff6:0x144};function _0x50e4aa(_0x3034db,_0x15b60f,_0xce9c66,_0x1db49b){return _0x5e6a6f(_0x3034db,_0x15b60f-0xc6,_0x15b60f-_0x1c44ab._0x6a408d,_0x1db49b-_0x1c44ab._0x31fff6);}function _0x2a14e8(_0x4819dc,_0x338ae7,_0x4db03a,_0xa3ddd6){return _0x2088d4(_0x4819dc-0x1b6,_0x338ae7-_0xe30b0e._0x3c584c,_0x4819dc,_0x4db03a-0x4b3);}if(!this[_0x50e4aa(-_0x8a1243._0x23c4db,-_0x8a1243._0xf97b79,-_0x8a1243._0x841929,-0x62)])throw new Error(_0x50e4aa(-0x168,-0xdd,-_0x8a1243._0x285341,-0x6e)+this[_0x2a14e8(_0x8a1243._0x3b1491,_0x8a1243._0x5739fa,0x558,_0x8a1243._0x53a370)]);return this[_0x50e4aa(-_0x8a1243._0x57dad0,-_0x8a1243._0x3fa15d,-0x123,-_0x8a1243._0x3cbe9d)];}['getOpenAiDelegate'](){const _0x961ac0={_0x136cec:0x272,_0x39035d:0x3a3,_0x5574d5:0x3ef},_0x46db26={_0x1a3fa4:0x595,_0x272d34:0x1c0},_0x30f2ec={_0x433bed:0x6a};function _0x1bbcf5(_0x24cc3c,_0x704f8b,_0xa89a1e,_0x526a42){return _0x2088d4(_0x24cc3c-_0x30f2ec._0x433bed,_0x704f8b-0x1df,_0x24cc3c,_0xa89a1e-0x16e);}function _0x1f4a07(_0x522fc9,_0x69a85e,_0x593eaf,_0x5a7191){return _0x5e6a6f(_0x69a85e,_0x69a85e-0x144,_0x593eaf-_0x46db26._0x1a3fa4,_0x5a7191-_0x46db26._0x272d34);}if(!this[_0x1bbcf5(0x24d,0x226,0x1f3,_0x961ac0._0x136cec)])throw new Error(_0x1f4a07(0x328,_0x961ac0._0x39035d,0x34f,_0x961ac0._0x5574d5)+this['surface']);return this['openAiDelegate'];}['complete'](_0x317641,_0x4d31ef){const _0x4a8bdc={_0x584bdc:0x277,_0x223da0:0xa5,_0x1e38ec:0x3c,_0x2efda9:0x454,_0x2578ee:0x301,_0x363025:0x37e,_0x549222:0x163,_0x4deee3:0x185,_0x5e1b43:0xc0,_0x8edd50:0x135,_0x8d2446:0x10c,_0x23a8aa:0x8b,_0xf0b6f4:0xc7,_0x83bbb7:0xec,_0x26e992:0xa8,_0x13a15c:0x2db,_0x596d3d:0x38a,_0x1b559c:0x299,_0x5ae18b:0x386,_0x372f2b:0x2db,_0x191ac5:0x214,_0x522ece:0x26c},_0x155801={_0x3b0b3a:0xc3},_0x538af1={_0x48bd5b:0x33,_0x5b25f7:0xe4,_0x53438a:0x4c};function _0x5423b6(_0xe72fd8,_0x240f19,_0x27466b,_0x49f39d){return _0x2088d4(_0xe72fd8-_0x538af1._0x48bd5b,_0x240f19-_0x538af1._0x5b25f7,_0x240f19,_0x49f39d- -_0x538af1._0x53438a);}function _0x32ec0c(_0x50312a,_0x253f6b,_0x40d4b,_0x288ceb){return _0x2088d4(_0x50312a-0x26,_0x253f6b-_0x155801._0x3b0b3a,_0x253f6b,_0x40d4b-0x20d);}switch(this[_0x32ec0c(_0x4a8bdc._0x584bdc,0x23b,0x2b2,0x238)]){case _0x5423b6(0xff,-0x3d,_0x4a8bdc._0x223da0,_0x4a8bdc._0x1e38ec):return this[_0x32ec0c(_0x4a8bdc._0x2efda9,_0x4a8bdc._0x2578ee,0x3f1,_0x4a8bdc._0x363025)]()[_0x5423b6(_0x4a8bdc._0x549222,0xa5,_0x4a8bdc._0x4deee3,_0x4a8bdc._0x5e1b43)](_0x317641,_0x4d31ef);case _0x5423b6(0x14e,0xe3,0x126,_0x4a8bdc._0x8edd50):return this[_0x5423b6(_0x4a8bdc._0x8d2446,-0x1a,_0x4a8bdc._0x23a8aa,0x82)]()[_0x5423b6(_0x4a8bdc._0xf0b6f4,_0x4a8bdc._0x83bbb7,_0x4a8bdc._0x26e992,0xde)](_0x317641,_0x4d31ef);case'openai-responses-ws':return this[_0x32ec0c(0x271,0x1f2,_0x4a8bdc._0x13a15c,0x2bd)]()[_0x32ec0c(_0x4a8bdc._0x596d3d,0x48a,0x41d,0x36e)](_0x317641,_0x4d31ef);default:return this[_0x32ec0c(_0x4a8bdc._0x1b559c,_0x4a8bdc._0x5ae18b,_0x4a8bdc._0x372f2b,_0x4a8bdc._0x191ac5)]()[_0x5423b6(_0x4a8bdc._0x1b559c,0x1d2,_0x4a8bdc._0x522ece,0x1b5)](_0x317641,_0x4d31ef);}}[_0x5e6a6f(-0x283,-0x2bc,-0x1cb,-0x1f3)](_0x2e4acb,_0x2a47fd){const _0x4fe3d5={_0x64fe0f:0x318,_0x283a56:0x401,_0x55477f:0x64d,_0x42f39d:0x5c1,_0x43a93e:0x623,_0x526b44:0x523,_0x1f608d:0x526,_0x47dfa3:0x51d,_0x4c10e8:0x6d7,_0x464729:0x688,_0x49a077:0x6a9,_0x3b7360:0x614,_0x223ebb:0x55a,_0x18f63f:0x5b1,_0x58dc86:0x3ac,_0x418ee4:0x519},_0x362fbc={_0x235eb3:0x143,_0x4f74de:0x3a},_0x5b0ebf={_0x5bc70b:0x16,_0x30e0f6:0x22};function _0xf4ac6f(_0x126893,_0x42cd7f,_0x265feb,_0x47d887){return _0x2088d4(_0x126893-_0x5b0ebf._0x5bc70b,_0x42cd7f-_0x5b0ebf._0x30e0f6,_0x126893,_0x47d887-0x4e3);}function _0x312773(_0x41ae75,_0x11e602,_0x5354db,_0x83dd31){return _0x5e6a6f(_0x5354db,_0x11e602-_0x362fbc._0x235eb3,_0x83dd31-0x641,_0x83dd31-_0x362fbc._0x4f74de);}switch(this['surface']){case _0x312773(_0x4fe3d5._0x64fe0f,0x4df,0x458,_0x4fe3d5._0x283a56):return this[_0x312773(_0x4fe3d5._0x55477f,_0x4fe3d5._0x42f39d,_0x4fe3d5._0x43a93e,0x55d)]()[_0x312773(0x3d4,_0x4fe3d5._0x526b44,_0x4fe3d5._0x1f608d,0x476)](_0x2e4acb,_0x2a47fd);case _0x312773(_0x4fe3d5._0x47dfa3,0x42c,0x51a,0x4fa):return this['getOpenAiDelegate']()[_0xf4ac6f(_0x4fe3d5._0x4c10e8,_0x4fe3d5._0x464729,0x629,_0x4fe3d5._0x49a077)](_0x2e4acb,_0x2a47fd);case _0x312773(0x5a1,_0x4fe3d5._0x3b7360,0x517,0x5a0):return this[_0xf4ac6f(0x662,0x678,_0x4fe3d5._0x223ebb,_0x4fe3d5._0x18f63f)]()[_0x312773(0x4c0,0x3ce,_0x4fe3d5._0x58dc86,0x48e)](_0x2e4acb,_0x2a47fd);default:return this['getOpenAiDelegate']()[_0xf4ac6f(0x623,_0x4fe3d5._0x418ee4,0x6af,0x5f6)](_0x2e4acb,_0x2a47fd);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x2088d4(0x2c5,0x13c,0x1ab,0x1ed)];[_0x2088d4(-0xa,0xdd,0x158,0xae)];['fetchImpl'];['githubApiUrl'];['tokenExchangeApiVersion'];constructor(_0x4acb1d){const _0xb73290={_0x5bfbc1:0x1b3,_0x209b39:0x59d,_0x594245:0x1a7,_0x3a54f2:0x211,_0x56cafc:0x546,_0x4198e6:0x54d,_0xf4088d:0x640,_0x265ba0:0x60b,_0xee1f77:0x59e},_0x2b2ebc={_0x3ed3c7:0x31},_0x100886={_0x2bda62:0x12f,_0x3fccec:0x7f};this[_0x5cdd3a(0x720,0x68f,0x672,0x753)]=_0x4acb1d['accessToken'],this[_0x59c400(0x93,0x1c4,_0xb73290._0x5bfbc1,0x148)]=trimTrailingSlashes2(_0x4acb1d[_0x5cdd3a(_0xb73290._0x209b39,0x518,0x533,0x55a)]),this['fetchImpl']=_0x4acb1d['fetch'];function _0x59c400(_0x3c5e13,_0x1e185f,_0x41e3c,_0x5b0804){return _0x2088d4(_0x3c5e13-_0x100886._0x2bda62,_0x1e185f-_0x100886._0x3fccec,_0x41e3c,_0x5b0804-0x9a);}function _0x5cdd3a(_0x80dc79,_0x5766ae,_0x58bff9,_0x53856e){return _0x2088d4(_0x80dc79-_0x2b2ebc._0x3ed3c7,_0x5766ae-0x1d,_0x53856e,_0x58bff9-0x485);}this[_0x59c400(_0xb73290._0x594245,0x2c0,0x168,_0xb73290._0x3a54f2)]=trimTrailingSlashes2(_0x4acb1d[_0x5cdd3a(0x538,_0xb73290._0x56cafc,0x5fc,0x5fb)]),this['tokenExchangeApiVersion']=_0x4acb1d[_0x5cdd3a(_0xb73290._0x4198e6,_0xb73290._0xf4088d,_0xb73290._0x265ba0,_0xb73290._0xee1f77)];}async['resolve'](_0x322b7b){const _0x466c8f={_0x197b10:0x26c,_0x590a03:0x380,_0x114b49:0x1a9,_0x1de3cc:0x221,_0x1488c0:0x424,_0x4b43ea:0x45c,_0x3f440c:0x3a6,_0x5cd2eb:0x3f6,_0x1cb2ca:0x345,_0xd7a627:0x384,_0x32ec7e:0x38f,_0x39f951:0x3a8,_0x6ae69c:0xd0,_0x2e9f62:0x2b7,_0x2f74b6:0x2d3,_0x37a332:0x46d,_0x3df6c4:0x4aa,_0x5869cb:0x452,_0x4d2581:0x4ce,_0x164ac7:0x38e,_0x48546b:0x13b,_0x145833:0x86,_0x4bf871:0x27,_0xcf5516:0xbd,_0x4cd005:0x1a8,_0x2cb578:0x25f,_0x455736:0x233,_0x8e02ab:0x323,_0x3baafb:0x379,_0x5103f0:0x3a7,_0x4613de:0x3a8,_0x251cc1:0xe7,_0x4474bf:0x2d4,_0x38d711:0x2ce},_0x37dd39={_0x5799e6:0x153},_0xb2b6b2={_0x4c3569:0x1d9,_0x25a4c5:0x88,_0x341c17:0x2bd},_0x5d75d3=await this[_0x5b7abc(0x2db,0x27e,_0x466c8f._0x197b10,0x2eb)](this[_0x5b7abc(_0x466c8f._0x590a03,0x2e6,0x370,0x296)]+_0x1a5bff(-0x298,-_0x466c8f._0x114b49,-_0x466c8f._0x1de3cc,-0x289),{'method':_0x5b7abc(_0x466c8f._0x1488c0,_0x466c8f._0x4b43ea,0x477,_0x466c8f._0x3f440c),'headers':new Headers({'accept':'application/json','authorization':'Bearer\x20'+this[_0x5b7abc(_0x466c8f._0x5cd2eb,0x431,_0x466c8f._0x1cb2ca,_0x466c8f._0xd7a627)],'editor-version':'vscode/1.106.1','user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this[_0x5b7abc(_0x466c8f._0x32ec7e,0x30a,_0x466c8f._0x39f951,0x3e7)]}),'signal':_0x322b7b});if(!_0x5d75d3['ok'])return{'credential':{'kind':'oauth-token','value':this[_0x1a5bff(-0x84,-_0x466c8f._0x6ae69c,-0xd5,-0x103)]},'endpoints':{'api':this[_0x5b7abc(_0x466c8f._0x2e9f62,0x25f,_0x466c8f._0x2f74b6,0x1f7)]}};function _0x1a5bff(_0x573f51,_0x1e9828,_0x30c971,_0x1b3356){return _0x2088d4(_0x573f51-_0xb2b6b2._0x4c3569,_0x1e9828-_0xb2b6b2._0x25a4c5,_0x30c971,_0x1e9828- -_0xb2b6b2._0x341c17);}const _0x16b0de=await _0x5d75d3[_0x5b7abc(0x426,0x4aa,_0x466c8f._0x37a332,_0x466c8f._0x3df6c4)]();function _0x5b7abc(_0x4ad42f,_0xaf05f,_0x336a39,_0x58d0ae){return _0x5e6a6f(_0x336a39,_0xaf05f-_0x37dd39._0x5799e6,_0x4ad42f-0x4d1,_0x58d0ae-0xda);}return{'credential':{'kind':_0x5b7abc(0x449,_0x466c8f._0x5869cb,0x3ac,0x533),'value':_0x16b0de[_0x5b7abc(0x442,0x471,0x43f,0x434)]??this[_0x5b7abc(_0x466c8f._0x5cd2eb,0x49d,_0x466c8f._0x4d2581,_0x466c8f._0x164ac7)]},'endpoints':{'api':_0x16b0de[_0x1a5bff(-_0x466c8f._0x48546b,-_0x466c8f._0x145833,-0x13a,-_0x466c8f._0x4bf871)]?.[_0x1a5bff(-0xb3,-0x177,-_0x466c8f._0xcf5516,-_0x466c8f._0x4cd005)]??this[_0x5b7abc(0x2b7,_0x466c8f._0x2cb578,_0x466c8f._0x455736,_0x466c8f._0x8e02ab)],'originTracker':_0x16b0de['endpoints']?.[_0x5b7abc(_0x466c8f._0x3baafb,0x29d,_0x466c8f._0x5103f0,_0x466c8f._0x4613de)],'proxy':_0x16b0de[_0x1a5bff(-0x106,-_0x466c8f._0x145833,-_0x466c8f._0x251cc1,-0x16a)]?.['proxy'],'telemetry':_0x16b0de['endpoints']?.[_0x5b7abc(_0x466c8f._0x4474bf,0x38d,0x2f6,_0x466c8f._0x38d711)]}};}};function trimTrailingSlashes2(_0x3d9b79){const _0x4ef923={_0x207f7f:0x186};function _0x3f5287(_0x55406f,_0x3855b8,_0x3b6c77,_0x2149e2){return _0x2088d4(_0x55406f-0x5e,_0x3855b8-_0x4ef923._0x207f7f,_0x2149e2,_0x55406f-0x302);}return _0x3d9b79[_0x3f5287(0x4fd,0x557,0x427,0x44c)](/\/+$/,'');}function createModelInfo(_0x1500b7){const _0x5e33a3={_0x279bcd:0xab,_0x38ca14:0x15,_0x3386d0:0x69f,_0x286cfc:0x632,_0x8201ce:0x56c,_0x9b5395:0x581,_0x3da22d:0x616,_0x2c85bf:0x53b,_0x545a63:0x68d,_0x53280b:0x59f,_0x5d7a07:0x52d,_0x4125b1:0x110,_0x366c0c:0xe3,_0x318d87:0xdb},_0x57bfa4={_0x112926:0x10e},_0x4688d8={_0x1f6d10:0x1ef};function _0xaafd3f(_0x13857c,_0x31e300,_0x42802a,_0x3dbfa8){return _0x5e6a6f(_0x42802a,_0x31e300-0x13,_0x13857c-0x7bf,_0x3dbfa8-_0x4688d8._0x1f6d10);}function _0x2829c8(_0x1d9122,_0x2e571b,_0x48a1a9,_0x4eb988){return _0x5e6a6f(_0x2e571b,_0x2e571b-0x17,_0x1d9122-_0x57bfa4._0x112926,_0x4eb988-0x96);}const _0x1c046c=_0x1500b7[_0x2829c8(-_0x5e33a3._0x279bcd,-_0x5e33a3._0x38ca14,-0xb4,-0x18f)]??_0x1500b7[_0x2829c8(-0x77,-0x23,0x3,0x6c)],_0x5172d2=_0x1500b7[_0xaafd3f(0x616,0x695,_0x5e33a3._0x3386d0,_0x5e33a3._0x286cfc)]?.[_0xaafd3f(0x59f,0x526,0x5da,0x5b0)]?.[_0xaafd3f(0x5d7,_0x5e33a3._0x8201ce,_0x5e33a3._0x9b5395,0x6aa)],_0x3e9ab2=_0x1500b7[_0xaafd3f(_0x5e33a3._0x3da22d,_0x5e33a3._0x2c85bf,0x5bf,_0x5e33a3._0x545a63)]?.[_0xaafd3f(_0x5e33a3._0x53280b,0x621,0x57b,_0x5e33a3._0x5d7a07)]?.[_0x2829c8(-_0x5e33a3._0x4125b1,-_0x5e33a3._0x366c0c,-0x25,-_0x5e33a3._0x318d87)],_0x17cd0f=_0x5172d2!==void 0x0||_0x3e9ab2!==void 0x0?{..._0x5172d2!==void 0x0?{'contextWindow':_0x5172d2}:{},..._0x3e9ab2!==void 0x0?{'maxOutput':_0x3e9ab2}:{}}:void 0x0;return{'id':_0x1500b7['id'],'name':_0x1500b7['name']??_0x1500b7['id'],..._0x17cd0f?{'limits':_0x17cd0f}:{},..._0x1c046c?{'supportedEndpoints':_0x1c046c}:{}};}function _0x7447(_0x156b2d,_0x25d712){_0x156b2d=_0x156b2d-0x18f;const _0x5bf88e=_0x5bf8();let _0x7447f5=_0x5bf88e[_0x156b2d];if(_0x7447['gBAsJJ']===undefined){var _0x26be4e=function(_0xa52d40){const _0x25a948='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d49d1='',_0xccf884='';for(let _0x2c2b7d=0x0,_0x25606e,_0x49f7e4,_0x257aff=0x0;_0x49f7e4=_0xa52d40['charAt'](_0x257aff++);~_0x49f7e4&&(_0x25606e=_0x2c2b7d%0x4?_0x25606e*0x40+_0x49f7e4:_0x49f7e4,_0x2c2b7d++%0x4)?_0x3d49d1+=String['fromCharCode'](0xff&_0x25606e>>(-0x2*_0x2c2b7d&0x6)):0x0){_0x49f7e4=_0x25a948['indexOf'](_0x49f7e4);}for(let _0x27831e=0x0,_0x5b6308=_0x3d49d1['length'];_0x27831e<_0x5b6308;_0x27831e++){_0xccf884+='%'+('00'+_0x3d49d1['charCodeAt'](_0x27831e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xccf884);};_0x7447['lhqCEe']=_0x26be4e,_0x7447['UpcPKP']={},_0x7447['gBAsJJ']=!![];}const _0x282087=_0x5bf88e[0x0],_0x226241=_0x156b2d+_0x282087,_0x45e6fe=_0x7447['UpcPKP'][_0x226241];return!_0x45e6fe?(_0x7447f5=_0x7447['lhqCEe'](_0x7447f5),_0x7447['UpcPKP'][_0x226241]=_0x7447f5):_0x7447f5=_0x45e6fe,_0x7447f5;}function deduplicateModels(_0x2c6859){const _0x58b098={_0x243a6a:0x54,_0x17ab90:0x85,_0x4a127a:0x43,_0x5268c4:0x6e,_0x2332e0:0xbf,_0x78ef8a:0x448,_0x3fed6c:0x4d8,_0x134088:0x4df},_0x37899a={_0x24a9ae:0xb7,_0x3be9d5:0x1a8,_0x25c69b:0x26e},_0x92e1ec={_0x4b76cf:0xf1,_0x51c12e:0xea},_0x50e641=new Map();function _0x21e311(_0x216d9a,_0x4d0d0e,_0x5ceb02,_0x57c26f){return _0x2088d4(_0x216d9a-_0x92e1ec._0x4b76cf,_0x4d0d0e-0x1c0,_0x216d9a,_0x5ceb02- -_0x92e1ec._0x51c12e);}function _0x3be46e(_0x1100dc,_0x30d371,_0x3127bb,_0x530495){return _0x2088d4(_0x1100dc-_0x37899a._0x24a9ae,_0x30d371-_0x37899a._0x3be9d5,_0x30d371,_0x3127bb-_0x37899a._0x25c69b);}for(const _0x544149 of _0x2c6859){!_0x50e641['has'](_0x544149['id'])&&_0x50e641[_0x21e311(_0x58b098._0x243a6a,0x159,_0x58b098._0x17ab90,_0x58b098._0x4a127a)](_0x544149['id'],_0x544149);}return Array[_0x21e311(_0x58b098._0x5268c4,0x6,0x10,_0x58b098._0x2332e0)](_0x50e641[_0x3be46e(_0x58b098._0x78ef8a,_0x58b098._0x3fed6c,0x3fe,_0x58b098._0x134088)]());}function hasUserPromptContent(_0x13b5d0){const _0x5b7910={_0x56798f:0x20c,_0x24016d:0x3aa,_0x86839c:0x2dd,_0x361354:0x32e,_0x3ca091:0x395,_0x5c6cd1:0x34a},_0x32d3c4={_0x2b7761:0x473,_0x51b7e4:0x5dd,_0x2c19a4:0x565,_0xdb8a47:0x5a4,_0x105bee:0x5cd,_0x493108:0x4da,_0x404fec:0x59f,_0x167f52:0x4b8,_0x4acd22:0x48e,_0x127b87:0x600},_0x5631bf={_0x72e71d:0x1df,_0x4858ae:0x198},_0x358a29={_0x30c1be:0xde,_0x40a3aa:0x1bf};if(typeof _0x13b5d0==='string')return _0x13b5d0['trim']()[_0x497fbf(0x164,0x242,_0x5b7910._0x56798f,0x168)]>0x0;function _0x43edca(_0x111721,_0xc0d70b,_0x299df1,_0x295919){return _0x2088d4(_0x111721-_0x358a29._0x30c1be,_0xc0d70b-_0x358a29._0x40a3aa,_0x299df1,_0x295919-0x29f);}if(!Array[_0x43edca(_0x5b7910._0x24016d,_0x5b7910._0x86839c,0x261,_0x5b7910._0x361354)](_0x13b5d0))return![];function _0x497fbf(_0x5f514c,_0x58d624,_0x3fb7aa,_0x2d87a4){return _0x2088d4(_0x5f514c-_0x5631bf._0x72e71d,_0x58d624-_0x5631bf._0x4858ae,_0x3fb7aa,_0x5f514c- -0x5);}return _0x13b5d0[_0x43edca(0x420,_0x5b7910._0x3ca091,_0x5b7910._0x5c6cd1,0x3a4)](_0x443fcf=>{const _0x4a8e43={_0x406cf6:0x3d3,_0x59ddb1:0x16},_0x2f8f29={_0x291366:0x1af,_0x28f858:0x6b,_0xaba29b:0x8c};function _0x43b675(_0x2b9d22,_0x437a8d,_0x2f1a81,_0x483782){return _0x43edca(_0x2b9d22-_0x2f8f29._0x291366,_0x437a8d-_0x2f8f29._0x28f858,_0x437a8d,_0x2b9d22-_0x2f8f29._0xaba29b);}if(!_0x443fcf||typeof _0x443fcf!==_0x50886f(_0x32d3c4._0x2b7761,_0x32d3c4._0x51b7e4,0x51e,0x501))return![];function _0x50886f(_0x13dfac,_0x563e98,_0x1f3667,_0x435f40){return _0x497fbf(_0x435f40-_0x4a8e43._0x406cf6,_0x563e98-_0x4a8e43._0x59ddb1,_0x1f3667,_0x435f40-0x134);}const _0x1fad78=_0x443fcf;return(_0x1fad78[_0x50886f(_0x32d3c4._0x2c19a4,0x545,_0x32d3c4._0xdb8a47,_0x32d3c4._0x105bee)]==='input_text'||_0x1fad78['type']===_0x43b675(_0x32d3c4._0x493108,_0x32d3c4._0x404fec,0x474,0x45d))&&typeof _0x1fad78['text']===_0x50886f(0x594,_0x32d3c4._0x167f52,0x5a7,0x59d)&&_0x1fad78['text']['trim']()[_0x50886f(_0x32d3c4._0x4acd22,_0x32d3c4._0x127b87,0x621,0x537)]>0x0;});}function _isUserPromptEntry(_0xc6d0a){const _0x3793af={_0xc29b3c:0x143,_0x2dd6c8:0x124,_0x2df3a5:0x55b,_0x275bb4:0x45e,_0x28bc9c:0x193,_0xc525dd:0x20a,_0x3c9361:0x29e,_0x25f356:0x279,_0x14c464:0x300,_0x4faf2d:0x67b,_0x1b1ee7:0x5f1,_0xa64cb4:0x5e6,_0x290398:0x536},_0x8fa534={_0x4f0377:0x194},_0x5b4d0d={_0x316707:0x744};if(!_0xc6d0a||typeof _0xc6d0a!==_0x272cc6(_0x3793af._0xc29b3c,0x1d2,_0x3793af._0x2dd6c8,0x288))return![];const _0x392b46=_0xc6d0a;if(_0x392b46[_0x1b161f(_0x3793af._0x2df3a5,0x530,0x445,_0x3793af._0x275bb4)]!==_0x272cc6(0x2d5,0x201,0x2b6,_0x3793af._0x28bc9c))return![];if(_0x392b46[_0x272cc6(_0x3793af._0xc525dd,_0x3793af._0x3c9361,_0x3793af._0x25f356,_0x3793af._0x14c464)]!==void 0x0&&_0x392b46[_0x1b161f(0x5fc,_0x3793af._0x4faf2d,0x6e0,_0x3793af._0x1b1ee7)]!=='message')return![];function _0x1b161f(_0x25992b,_0x2bf035,_0x5bb49f,_0x185424){return _0x5e6a6f(_0x25992b,_0x2bf035-0x1c0,_0x2bf035-_0x5b4d0d._0x316707,_0x185424-0x10b);}function _0x272cc6(_0x29be59,_0x5099b9,_0x4c84a8,_0x3bfa69){return _0x5e6a6f(_0x4c84a8,_0x5099b9-_0x8fa534._0x4f0377,_0x5099b9-0x367,_0x3bfa69-0x1ef);}return hasUserPromptContent(_0x392b46[_0x1b161f(_0x3793af._0xa64cb4,_0x3793af._0x290398,0x501,0x5cf)]);}function determineInitiator(_0xb900a2){const _0x5ea760={_0x2722ed:0x1a9,_0x373084:0x2f2,_0x269b54:0x4cc,_0x33941b:0x49b,_0x251665:0x414,_0x5dc181:0x448,_0x29653e:0x59a,_0x11f56d:0x62c,_0x5a317a:0x4f0,_0x4ae4b5:0x4d0,_0x38824e:0x59d,_0x3acf43:0x181,_0x11ff61:0x4f4,_0x21efb1:0x589,_0x17d79d:0x520},_0x13cf6a={_0x21c939:0x6ef,_0x395c5b:0x19e},_0xcab782={_0x294794:0x107,_0x17b245:0x14f};if(!_0xb900a2||typeof _0xb900a2!==_0x305dbf(_0x5ea760._0x2722ed,0x282,_0x5ea760._0x373084,0x228))return _0x1015c2(_0x5ea760._0x269b54,_0x5ea760._0x33941b,_0x5ea760._0x251665,_0x5ea760._0x5dc181);function _0x305dbf(_0xb3cbe1,_0x1aa725,_0x550816,_0x4cc1f7){return _0x2088d4(_0xb3cbe1-_0xcab782._0x294794,_0x1aa725-0xc5,_0x4cc1f7,_0x1aa725-_0xcab782._0x17b245);}const _0x5d7a33='messages'in _0xb900a2?_0xb900a2['messages']:_0x1015c2(0x64e,_0x5ea760._0x29653e,0x5f2,_0x5ea760._0x11f56d)in _0xb900a2?_0xb900a2[_0x1015c2(_0x5ea760._0x5a317a,0x59a,_0x5ea760._0x4ae4b5,0x5a8)]:void 0x0;if(!Array[_0x1015c2(0x4f0,0x4b6,_0x5ea760._0x38824e,0x43f)](_0x5d7a33)||_0x5d7a33[_0x305dbf(0x329,0x2b8,0x223,0x34e)]===0x0)return _0x305dbf(0x258,0x1c3,0x148,_0x5ea760._0x3acf43);function _0x1015c2(_0x2c327c,_0x428043,_0x392acb,_0x459ea6){return _0x5e6a6f(_0x2c327c,_0x428043-0x14c,_0x428043-_0x13cf6a._0x21c939,_0x459ea6-_0x13cf6a._0x395c5b);}return _isUserPromptEntry(_0x5d7a33[_0x5d7a33['length']-0x1])?_0x1015c2(_0x5ea760._0x11ff61,_0x5ea760._0x21efb1,0x498,0x595):_0x1015c2(0x46b,0x49b,0x3c6,_0x5ea760._0x17d79d);}function isUnsupportedApiForModel(_0x3d4357){const _0x4b1c7b={_0x2df81b:0x13a,_0x18b689:0x80},_0x2105df={_0x1075fa:0x6ce,_0x39537f:0x2d},_0x5589e2={_0x2cf30a:0x350,_0x97c263:0x84};function _0x99ce67(_0x4b5e01,_0x56993d,_0x9982a9,_0x1eeb59){return _0x5e6a6f(_0x56993d,_0x56993d-0xc3,_0x1eeb59-_0x5589e2._0x2cf30a,_0x1eeb59-_0x5589e2._0x97c263);}function _0x163dfa(_0x3fa12f,_0x3bb7b5,_0x4d9774,_0x14939a){return _0x5e6a6f(_0x4d9774,_0x3bb7b5-0xca,_0x14939a-_0x2105df._0x1075fa,_0x14939a-_0x2105df._0x39537f);}return _0x3d4357[_0x99ce67(_0x4b1c7b._0x2df81b,_0x4b1c7b._0x18b689,0x60,0x111)](_0x99ce67(0x22a,0x1b6,0xe4,0x1d3));}function createResponseError(_0x5f0c79,_0xc1ed37){const _0x176a3a={_0x26c821:0x2d0,_0x5db809:0x4d,_0x53fe05:0x6b},_0x2c8852={_0x31a6de:0x1ce},_0x59faf6={_0xa8290:0x1a7,_0x1c320d:0x67,_0x54bfc1:0x15d};function _0x34fc97(_0x1de82e,_0x1d1884,_0x3369b2,_0x5d3171){return _0x2088d4(_0x1de82e-_0x59faf6._0xa8290,_0x1d1884-_0x59faf6._0x1c320d,_0x1de82e,_0x1d1884-_0x59faf6._0x54bfc1);}if(_0x5f0c79===0x191||_0x5f0c79===0x193)return new Error('Authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.');function _0xc796a5(_0x4e4e15,_0x124708,_0x3b9c1e,_0x337417){return _0x2088d4(_0x4e4e15-0x19,_0x124708-_0x2c8852._0x31a6de,_0x3b9c1e,_0x124708- -0x9b);}if(_0x5f0c79===0x198||_0x5f0c79===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');if(_0x5f0c79===0x190)return new Error(_0x34fc97(_0x176a3a._0x26c821,0x288,0x28e,0x214)+_0xc1ed37);return new Error(_0xc1ed37||_0xc796a5(-0x6a,_0x176a3a._0x5db809,0x108,-_0x176a3a._0x53fe05)+_0x5f0c79);}var GitHubModel=class extends OpenAiModel{[_0x5e6a6f(-0xdd,-0x196,-0x13b,-0x1a0)];[_0x2088d4(0x19c,0x3b,0x29,0xf4)]=new Map();[_0x5e6a6f(-0x277,-0x2f1,-0x223,-0x1bc)];constructor(_0x1f087d={}){const _0x1259cb={_0x24b85b:0x2e2,_0x4a861:0x2c,_0x2effa1:0x7e,_0x4f2c77:0x105,_0x3c1f61:0x149,_0x139598:0x7e,_0x4b153b:0x69,_0x364743:0x1f,_0x392785:0x64,_0xe168ba:0x25d,_0x2687a4:0x32f,_0x2452a8:0x2b,_0x44d07e:0xb6,_0x34983f:0xa9,_0x1c5129:0xa2,_0x35a4af:0x2c7,_0x5ac71d:0x8f,_0xdd7c16:0x2c,_0x286e75:0x49,_0x394868:0x16b,_0x2d38ee:0x5a,_0x1f3ff6:0x88,_0x129a75:0xb1,_0x36bc2a:0x168,_0xc20515:0x204,_0x907a6a:0x17b,_0x22b43f:0x13f,_0x1565c9:0xe3,_0x4da806:0x1b2,_0xc2eddd:0xfa,_0x126a66:0x102,_0x26a060:0x310,_0x5d11b7:0x206},_0x5b6f99={_0x201b38:0x14c},_0x64c402=trimTrailingSlashes2(_0x1f087d['baseUrl']??_0x1f71ca(_0x1259cb._0x24b85b,0x2a2,0x1f1,0x108)),_0x287dec=_0x1f087d[_0x5093c7(-_0x1259cb._0x4a861,_0x1259cb._0x2effa1,_0x1259cb._0x4f2c77,_0x1259cb._0x3c1f61)]??globalThis[_0x5093c7(-0x4c,_0x1259cb._0x139598,-_0x1259cb._0x4b153b,-0x22)];function _0x1f71ca(_0x209130,_0x598d54,_0x4a4ea0,_0x3a12fb){return _0x2088d4(_0x209130-_0x5b6f99._0x201b38,_0x598d54-0xfc,_0x598d54,_0x4a4ea0-0xc3);}const _0x3ffb7c=_0x1f087d[_0x5093c7(-_0x1259cb._0x364743,0x76,0x11d,-_0x1259cb._0x392785)]??(_0x1f087d[_0x1f71ca(_0x1259cb._0xe168ba,0x35b,0x2b0,0x37c)]?new GitHubAccessTokenResolver({'accessToken':_0x1f087d[_0x1f71ca(0x21a,0x291,0x2b0,_0x1259cb._0x2687a4)],'baseUrl':_0x64c402,'fetch':_0x287dec,'githubApiUrl':_0x1f087d[_0x5093c7(-0x50,_0x1259cb._0x2452a8,-_0x1259cb._0x44d07e,-0x92)]??'https://api.github.com','tokenExchangeApiVersion':_0x1f087d[_0x5093c7(0x24,0x3a,-0x9c,-0x33)]??_0x5093c7(-0x84,-0x7d,0x1e,-_0x1259cb._0x34983f)}):void 0x0),_0x6faa7c=_0x1f087d['editorVersion']??'vscode/1.104.2',_0x4e72ed=_0x1f087d['editorPluginVersion']??'copilot-chat/0.31.3',_0xc2c41c=({body:_0x3a79ca})=>{return{'editor-plugin-version':_0x4e72ed,'editor-version':_0x6faa7c,'x-initiator':determineInitiator(_0x3a79ca),'x-request-id':randomUUID()};},_0x3a132f={'apiKey':_0x1f087d['apiKey'],'baseUrl':_0x64c402,'fetch':_0x287dec,'maxTokens':_0x1f087d[_0x5093c7(0x64,_0x1259cb._0x1c5129,-0x28,0xe8)],'model':_0x1f087d[_0x1f71ca(0x2e0,_0x1259cb._0x35a4af,0x28b,0x1bb)],'modelIdentity':_0x1f087d[_0x5093c7(0x9f,0x101,0xcb,_0x1259cb._0x5ac71d)],'reasoning':_0x1f087d[_0x5093c7(-0x34,_0x1259cb._0xdd7c16,-0x15,-_0x1259cb._0x286e75)],'providerSessionResolver':_0x3ffb7c,'requestMutators':_0x1f087d[_0x5093c7(0x106,0x96,_0x1259cb._0x394868,-_0x1259cb._0x2d38ee)],'headerResolver':_0xc2c41c};super(_0x3a132f);function _0x5093c7(_0x430b67,_0x82df6e,_0x39d80f,_0x42d7fd){return _0x2088d4(_0x430b67-0x1cc,_0x82df6e-0x172,_0x430b67,_0x82df6e- -0x14c);}this[_0x1f71ca(_0x1259cb._0x1f3ff6,_0x1259cb._0x129a75,_0x1259cb._0x36bc2a,_0x1259cb._0xc20515)]=_0x1f087d[_0x1f71ca(0x15c,_0x1259cb._0x907a6a,0x168,0x1f5)]??_0x1f71ca(_0x1259cb._0x22b43f,0xb3,0x13d,0x181),this[_0x5093c7(_0x1259cb._0x44d07e,0x41,-0x7c,0xbd)]=new AnthropicModel({'apiKey':_0x1f087d[_0x5093c7(0xf0,_0x1259cb._0x1565c9,_0x1259cb._0x4da806,_0x1259cb._0xc2eddd)],'authScheme':'bearer','baseUrl':_0x64c402,'fetch':_0x287dec,'headerResolver':_0xc2c41c,'maxTokens':_0x1f087d['maxTokens'],'model':_0x1f087d[_0x5093c7(0xd3,0x7c,_0x1259cb._0x126a66,0xe7)],'modelIdentity':_0x1f087d[_0x1f71ca(0x237,0x3e9,_0x1259cb._0x26a060,0x2f0)],'reasoning':_0x1f087d[_0x1f71ca(0x180,_0x1259cb._0x5d11b7,0x23b,0x2e8)],'providerSessionResolver':_0x3ffb7c,'requestMutators':_0x1f087d['requestMutators']});}[_0x2088d4(0x281,0x101,0x1f9,0x1f0)](){const _0x5b06be={_0x40165c:0x6a5},_0x405ac7={_0x1a03bf:0x10c};function _0x22dc04(_0x171fdf,_0x13b981,_0x535598,_0x27d62f){return _0x5e6a6f(_0x27d62f,_0x13b981-_0x405ac7._0x1a03bf,_0x171fdf-0x781,_0x27d62f-0x1a3);}return new Error(_0x22dc04(_0x5b06be._0x40165c,0x663,0x5e8,0x717));}[_0x2088d4(0x213,0x1d9,0x211,0x1a5)](_0xefef86){const _0x699476={_0x2ac602:0x706,_0x2cfc4d:0x699,_0x413d8c:0x4a1,_0x133fdb:0x50a,_0x194651:0x3e6,_0x3dea07:0x55a,_0x63d9cc:0x585,_0x563b71:0x4d5,_0x5878a2:0x58d,_0x4dc6fa:0x493},_0x3769ea={_0x2fcc33:0x418},_0xe6cbe3=this['modelEndpointCache'][_0xe545e(0x642,0x68c,_0x699476._0x2ac602,_0x699476._0x2cfc4d)](_0xefef86);if(!_0xe6cbe3)return![];function _0x27f9f6(_0x212d24,_0x4b3c0a,_0x124205,_0x341509){return _0x5e6a6f(_0x4b3c0a,_0x4b3c0a-0x1f4,_0x212d24-0x6d5,_0x341509-0x1eb);}function _0xe545e(_0x52cdda,_0x280bc0,_0xf1198f,_0x2125de){return _0x2088d4(_0x52cdda-0x58,_0x280bc0-0x1b0,_0xf1198f,_0x52cdda-_0x3769ea._0x2fcc33);}return!_0xe6cbe3[_0xe545e(_0x699476._0x413d8c,_0x699476._0x133fdb,_0x699476._0x194651,_0x699476._0x3dea07)](_0x27f9f6(0x4ca,_0x699476._0x63d9cc,_0x699476._0x563b71,_0x699476._0x5878a2))&&_0xe6cbe3['includes'](_0x27f9f6(0x563,0x521,0x577,_0x699476._0x4dc6fa));}[_0x2088d4(0x152,0xe1,0x131,0xe4)](_0x534932){const _0x5ab9ef={_0x10e4c8:0x1f4,_0x32ddb6:0x19c,_0x480e9d:0x327,_0x14e3ee:0x34e,_0x1c3c6b:0x65,_0x31e48f:0x4,_0x33afa6:0x7,_0x5bd8d5:0xab,_0x14ba6c:0xf0,_0x69f852:0x7b,_0x3d5d84:0x6b,_0x3f62a1:0x56,_0x99b9c0:0x6e,_0x20230e:0xcf,_0x5f3359:0x3d1},_0x292ac2={_0x14ebb0:0x1c1};function _0x406eca(_0x9b6cb0,_0x2a3fc2,_0x106a99,_0x1fd9b1){return _0x5e6a6f(_0x9b6cb0,_0x2a3fc2-0x1ae,_0x1fd9b1-0x3ec,_0x1fd9b1-0x145);}const _0x3fa4ed=this[_0x406eca(_0x5ab9ef._0x10e4c8,_0x5ab9ef._0x32ddb6,0x1a6,0x218)][_0x406eca(0x418,_0x5ab9ef._0x480e9d,0x2e5,_0x5ab9ef._0x14e3ee)](_0x534932[_0x35b4c1(-_0x5ab9ef._0x1c3c6b,-_0x5ab9ef._0x31e48f,_0x5ab9ef._0x33afa6,_0x5ab9ef._0x5bd8d5)]);if(!_0x3fa4ed)return![];function _0x35b4c1(_0x4b84f8,_0x5b752c,_0x1777c7,_0x3b6840){return _0x2088d4(_0x4b84f8-0x96,_0x5b752c-0x52,_0x3b6840,_0x1777c7- -_0x292ac2._0x14ebb0);}if(resolveOpenAiReasoningConfig(_0x534932['reasoning']))return _0x3fa4ed[_0x35b4c1(-0xd1,-0x1c0,-0x138,-_0x5ab9ef._0x14ba6c)](_0x35b4c1(-_0x5ab9ef._0x69f852,-0x148,-_0x5ab9ef._0x3d5d84,-0x68));return this[_0x35b4c1(_0x5ab9ef._0x3f62a1,-_0x5ab9ef._0x99b9c0,-0x1c,_0x5ab9ef._0x20230e)](_0x534932[_0x406eca(_0x5ab9ef._0x5f3359,0x395,0x325,0x2ec)]);}[_0x5e6a6f(-0x166,-0x284,-0x242,-0x20c)](_0x5f316b){const _0x459a2c={_0x225c09:0x41e,_0x8855ef:0x44c,_0x5d86cf:0x9c,_0x30989d:0x147},_0x23923c={_0x36f3fc:0x129,_0x377bba:0x13,_0x5ebc21:0x37a};function _0x4d974f(_0x56684e,_0x5a3d78,_0x37f722,_0x3d38e8){return _0x2088d4(_0x56684e-_0x23923c._0x36f3fc,_0x5a3d78-_0x23923c._0x377bba,_0x5a3d78,_0x3d38e8-_0x23923c._0x5ebc21);}function _0x43e758(_0x112ce6,_0x2739f4,_0x2bfc4c,_0x153598){return _0x5e6a6f(_0x112ce6,_0x2739f4-0x1b9,_0x2bfc4c-0x12,_0x153598-0x164);}this[_0x4d974f(0x3c1,_0x459a2c._0x225c09,_0x459a2c._0x8855ef,0x46e)][_0x43e758(-0xe8,-_0x459a2c._0x5d86cf,-_0x459a2c._0x30989d,-0xfa)](_0x5f316b,['/responses']);}[_0x5e6a6f(-0x161,-0xb6,-0xd3,-0xbb)](_0x18b4b0){const _0x36076e={_0x36b424:0x9e,_0x44d8be:0x1ca,_0x2c744b:0x24f,_0x420670:0x183,_0x4dcbd9:0x226},_0x4a263c={_0x18a24d:0xb1},_0x563372={_0x5ef2eb:0x173};function _0x5549e3(_0x1044d1,_0x345f8e,_0x15cacd,_0xd64d62){return _0x5e6a6f(_0x15cacd,_0x345f8e-0x165,_0x1044d1-0x382,_0xd64d62-_0x563372._0x5ef2eb);}if(_0x18b4b0 instanceof OpenAiApiError)return createResponseError(_0x18b4b0[_0x5549e3(0x187,0x270,_0x36076e._0x36b424,_0x36076e._0x44d8be)],_0x18b4b0[_0x251908(0x24d,0x120,0x1ab,0x1d9)]||_0x18b4b0[_0x5549e3(_0x36076e._0x2c744b,_0x36076e._0x420670,0x1f3,_0x36076e._0x4dcbd9)]);function _0x251908(_0x408705,_0x3250ca,_0x468c38,_0x5aa0da){return _0x2088d4(_0x408705-_0x4a263c._0x18a24d,_0x3250ca-0xa4,_0x3250ca,_0x5aa0da- -0x69);}return _0x18b4b0;}[_0x2088d4(0xc3,0xbd,0x164,0x16b)](_0x579517,_0x25bbd4){const _0x33ac94={_0x53d89b:0x1b7,_0x49983a:0x199,_0x454d94:0x7,_0x493ae5:0x24,_0x32205a:0x7f,_0x26da82:0x11e,_0xa759dd:0x253,_0x463b37:0x10f,_0x27b301:0x1c5,_0x214897:0x162,_0x248a14:0x197,_0x3a3b71:0x27e,_0x29b6d3:0x1c1,_0x16cb18:0x29c,_0x3d9926:0x141,_0x54ad00:0x1aa,_0x385c81:0x329,_0x378041:0x2b8,_0x3b6975:0x27f,_0x21afb4:0x1a8,_0x598234:0x216,_0x1f8136:0x1b5,_0xc53785:0x215,_0x32b81f:0x12e,_0x1b4bd0:0x117,_0x16fff1:0x22a,_0x306846:0x213,_0x5704f6:0x21c,_0x429e60:0x212},_0x9f6ce3={_0x4b2561:0x3c,_0x117275:0x2c1},_0x521a92={_0x102739:0x262,_0x506367:0x1da};switch(this[_0x5b73f8(-_0x33ac94._0x53d89b,-0x2a4,-0x21c,-_0x33ac94._0x49983a)]){case'anthropic-messages':return this['anthropicDelegate'][_0x556827(0xa6,0x17e,-0x36,_0x33ac94._0x454d94)](_0x579517,_0x25bbd4);case _0x556827(0x9c,_0x33ac94._0x493ae5,_0x33ac94._0x32205a,_0x33ac94._0x26da82):return this[_0x556827(0x19b,_0x33ac94._0xa759dd,_0x33ac94._0x463b37,_0x33ac94._0x27b301)](_0x579517,_0x25bbd4);case'openai-responses':return this[_0x5b73f8(-0x17e,-_0x33ac94._0x214897,-_0x33ac94._0x248a14,-_0x33ac94._0x3a3b71)](_0x579517,_0x25bbd4);case _0x556827(_0x33ac94._0x29b6d3,_0x33ac94._0x16cb18,_0x33ac94._0x3d9926,0x112):return this[_0x556827(_0x33ac94._0x54ad00,0x115,0x18c,0x1a7)](_0x579517,_0x25bbd4);case _0x5b73f8(-_0x33ac94._0x385c81,-_0x33ac94._0x378041,-0x247,-_0x33ac94._0x3b6975):return this[_0x5b73f8(-_0x33ac94._0x21afb4,-_0x33ac94._0x598234,-_0x33ac94._0x1f8136,-_0x33ac94._0xc53785)](_0x579517,_0x25bbd4);}function _0x556827(_0x31cd88,_0x43d551,_0x13b06b,_0x4bcd78){return _0x5e6a6f(_0x13b06b,_0x43d551-0x186,_0x31cd88-_0x521a92._0x102739,_0x4bcd78-_0x521a92._0x506367);}function _0x5b73f8(_0x3149c8,_0x2fb378,_0x2f164f,_0x19f894){return _0x2088d4(_0x3149c8-_0x9f6ce3._0x4b2561,_0x2fb378-0x1f4,_0x3149c8,_0x2f164f- -_0x9f6ce3._0x117275);}throw new Error(_0x5b73f8(-_0x33ac94._0x32b81f,-_0x33ac94._0x1b4bd0,-0x145,-_0x33ac94._0x16fff1)+String(this[_0x5b73f8(-0x15f,-_0x33ac94._0x306846,-_0x33ac94._0x5704f6,-_0x33ac94._0x429e60)]));}['streamViaConfiguredSurface'](_0x5db943,_0x2c9e27){const _0x49439a={_0x395605:0x309,_0x371196:0x39e,_0x192800:0x369,_0x3c5bd8:0x414,_0xcb25bc:0x4d2,_0x2a50d9:0x410,_0x5c5616:0x4c3,_0x4f92a0:0x426,_0x537097:0x547,_0x41774d:0x4b9,_0x50ce21:0x4ba,_0x2b81c8:0x39a,_0x282c99:0x3a5,_0x1767ea:0x569,_0x5d5031:0x47a,_0x46b34d:0x462,_0x35c57a:0x4b2,_0x29d449:0x5b3,_0x1a03c1:0x671,_0x29b6fd:0x55f,_0x288ee2:0x3cc,_0x3de453:0x3f6,_0x3b074e:0x56f,_0xd8885d:0x505,_0x36c821:0x694,_0xe9402d:0x3d4,_0x5c613a:0x3d2},_0x3b7085={_0x3032c6:0x14e,_0x3986e3:0x2f9};function _0x35e610(_0x37a19c,_0x17f27a,_0x1cb8f2,_0x585c09){return _0x2088d4(_0x37a19c-0x5a,_0x17f27a-0x1ea,_0x37a19c,_0x1cb8f2-0x44a);}switch(this[_0x1a7497(_0x49439a._0x395605,_0x49439a._0x371196,_0x49439a._0x192800,0x2c1)]){case _0x35e610(0x421,_0x49439a._0x3c5bd8,_0x49439a._0xcb25bc,_0x49439a._0x2a50d9):return this[_0x1a7497(_0x49439a._0x5c5616,0x486,_0x49439a._0x4f92a0,0x4b2)][_0x35e610(0x57b,0x5e6,_0x49439a._0x537097,_0x49439a._0x41774d)](_0x5db943,_0x2c9e27);case'openai-chat-completions':return this[_0x1a7497(_0x49439a._0x50ce21,0x40c,_0x49439a._0x2b81c8,_0x49439a._0x282c99)](_0x5db943,_0x2c9e27);case _0x1a7497(_0x49439a._0x1767ea,_0x49439a._0x5d5031,0x4bc,0x3b4):return this[_0x1a7497(_0x49439a._0x46b34d,0x4bf,0x43e,_0x49439a._0x35c57a)](_0x5db943,_0x2c9e27);case _0x35e610(0x6e4,_0x49439a._0x29d449,_0x49439a._0x1a03c1,0x5d0):return this[_0x35e610(0x4aa,0x592,_0x49439a._0x29b6fd,0x54e)](_0x5db943,_0x2c9e27);case'auto':return this[_0x1a7497(_0x49439a._0x288ee2,_0x49439a._0x3de453,0x4b8,0x413)](_0x5db943,_0x2c9e27);}function _0x1a7497(_0x817920,_0x37cbf7,_0x5b1286,_0x20d556){return _0x2088d4(_0x817920-0x148,_0x37cbf7-_0x3b7085._0x3032c6,_0x20d556,_0x37cbf7-_0x3b7085._0x3986e3);}throw new Error(_0x35e610(_0x49439a._0x3b074e,_0x49439a._0xd8885d,0x5c6,_0x49439a._0x36c821)+String(this[_0x1a7497(_0x49439a._0xe9402d,0x39e,0x3dc,_0x49439a._0x5c613a)]));}async[_0x5e6a6f(-0x238,-0x184,-0x1bc,-0x1fd)](_0x337992,_0x559048){const _0x185677={_0x2ca42f:0x165,_0x42269a:0x138,_0xca0520:0x205,_0x50d8cf:0x126,_0x116938:0xf7,_0x223136:0x1a4,_0x10c68:0x24a,_0x5f4a72:0x1fd,_0x5d8559:0x17d,_0x37fce0:0x38,_0x4285e2:0xfe,_0x95e2a9:0x184,_0x1b2fbc:0x1ed,_0xecf5a1:0x42,_0x17eee4:0x14a,_0x114411:0x2ad,_0x587d7b:0x1c2},_0x255239={_0x47025b:0xb},_0x5984c9={_0x22cf75:0x89,_0x4f07d1:0xbc,_0x5005ac:0x33};function _0x2a1fe9(_0x3ad2d7,_0x1570b5,_0x3abde6,_0x11b0d4){return _0x2088d4(_0x3ad2d7-_0x5984c9._0x22cf75,_0x1570b5-_0x5984c9._0x4f07d1,_0x11b0d4,_0x3abde6- -_0x5984c9._0x5005ac);}const _0x3a9b25=this['applyModelDefaults'](_0x337992);if(this[_0x3d3a6b(-0x146,-0x18d,-_0x185677._0x2ca42f,-0x173)]!=='auto')return this[_0x2a1fe9(0x1fa,0x181,_0x185677._0x42269a,0x7a)](_0x3a9b25,_0x559048);if(this[_0x3d3a6b(-0x73,-_0x185677._0xca0520,-_0x185677._0x50d8cf,-0x7a)](_0x3a9b25))return this[_0x2a1fe9(0x1c8,_0x185677._0x50d8cf,_0x185677._0x116938,_0x185677._0x223136)](_0x3a9b25,_0x559048);function _0x3d3a6b(_0x966dec,_0x40159a,_0x3b57a5,_0x565b64){return _0x5e6a6f(_0x966dec,_0x40159a-_0x255239._0x47025b,_0x3b57a5-0xbe,_0x565b64-0x21);}try{return await this[_0x2a1fe9(_0x185677._0x10c68,0x2b6,_0x185677._0x5f4a72,_0x185677._0x5d8559)](_0x3a9b25,_0x559048);}catch(_0x38a6e6){if(_0x38a6e6 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x38a6e6[_0x3d3a6b(-0x88,0x106,_0x185677._0x37fce0,-0x41)]))return this[_0x3d3a6b(-_0x185677._0x4285e2,-0x132,-_0x185677._0x95e2a9,-_0x185677._0x1b2fbc)](_0x3a9b25[_0x3d3a6b(-0x34,-0x48,-_0x185677._0xecf5a1,-0xb1)]),this['response'](_0x3a9b25,_0x559048);throw this[_0x2a1fe9(_0x185677._0x17eee4,_0x185677._0x114411,_0x185677._0x587d7b,0x1b1)](_0x38a6e6);}throw _0x38a6e6;}}async*['stream'](_0x1b9eee,_0x4f1caa){const _0x3e4af1={_0x7edac1:0x532,_0xa29d7:0x489,_0x48a8bc:0x1a1,_0x486554:0xcf,_0x52e2b8:0x41,_0xe2a75:0x4cf,_0x28e442:0x46d,_0x386ad0:0x4a8,_0x27e69c:0x44c,_0x3095f0:0x300,_0x152cb1:0x350,_0x181da6:0x495,_0x1cf9bd:0x406,_0x2ae291:0x38c,_0x2bbecd:0x298,_0x3ec749:0x3a4,_0x2d76b4:0x2c6,_0x59addc:0x265,_0x259e37:0x217,_0x5d6e00:0x477,_0xf7f621:0x425},_0x510582={_0x3567ad:0x508,_0x4f8bfe:0x50},_0x29a39b={_0x28d693:0x4,_0x33a43d:0x31e};function _0x364017(_0x52cce6,_0x56cfa6,_0x3a0c7f,_0x93bec6){return _0x5e6a6f(_0x93bec6,_0x56cfa6-_0x29a39b._0x28d693,_0x3a0c7f-_0x29a39b._0x33a43d,_0x93bec6-0x9f);}const _0x138c5e=this[_0x1256bf(0x562,0x48e,_0x3e4af1._0x7edac1,_0x3e4af1._0xa29d7)](_0x1b9eee);if(this[_0x364017(_0x3e4af1._0x48a8bc,_0x3e4af1._0x486554,0xfb,_0x3e4af1._0x52e2b8)]!=='auto'){yield*this[_0x1256bf(_0x3e4af1._0xe2a75,_0x3e4af1._0x28e442,_0x3e4af1._0x386ad0,_0x3e4af1._0x27e69c)](_0x138c5e,_0x4f1caa);return;}if(this[_0x1256bf(_0x3e4af1._0x3095f0,0x26e,_0x3e4af1._0x152cb1,0x324)](_0x138c5e)){yield*this[_0x1256bf(_0x3e4af1._0x181da6,0x383,0x387,_0x3e4af1._0x1cf9bd)](_0x138c5e,_0x4f1caa);return;}function _0x1256bf(_0x563448,_0x16a1fe,_0xbd35a4,_0x3fa66c){return _0x5e6a6f(_0x16a1fe,_0x16a1fe-0x13e,_0x3fa66c-_0x510582._0x3567ad,_0x3fa66c-_0x510582._0x4f8bfe);}try{yield*this[_0x1256bf(0x2df,0x327,0x3d7,_0x3e4af1._0x2ae291)](_0x138c5e,_0x4f1caa);}catch(_0x41b908){if(_0x41b908 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x41b908[_0x364017(0x34e,0x1ae,_0x3e4af1._0x2bbecd,0x381)])){this[_0x1256bf(0x1fa,0x1e9,_0x3e4af1._0x3ec749,_0x3e4af1._0x2d76b4)](_0x138c5e[_0x364017(_0x3e4af1._0x59addc,0x28e,0x21e,_0x3e4af1._0x259e37)]),yield*this['responseStream'](_0x138c5e,_0x4f1caa);return;}throw this[_0x1256bf(_0x3e4af1._0x5d6e00,0x3ea,_0x3e4af1._0xf7f621,0x435)](_0x41b908);}throw _0x41b908;}}async['getModels'](_0xec243e){const _0x16f9f9={_0xdefc5f:0x6de,_0x263ca4:0x71e,_0x2b0fd6:0x5e0,_0x51f4cc:0x770,_0x47bc22:0x5e4,_0x3331b:0x777,_0x5ce7f3:0x66e,_0x216127:0x585,_0x441ddc:0x5f0,_0x555992:0x15a,_0x3bf2ee:0x129,_0x25190e:0x83,_0x3ee9df:0xa2,_0x39fd85:0x139},_0x56acf5={_0x1b956d:0x3ff,_0x373d5d:0x3f4,_0x156f98:0x4aa,_0x321928:0x216,_0x3dcde8:0x2a3,_0x112a23:0x363},_0x38a6ff={_0x299388:0x12a,_0xf0dd34:0x1f0},_0x557b50={_0x3a6cf3:0xed,_0xd9a7cc:0x4e0},_0x2f0661=await this[_0x2d9c0c(0x6cd,0x6cd,_0x16f9f9._0xdefc5f,_0x16f9f9._0x263ca4)]({'path':_0x2d9c0c(0x76a,0x75d,_0x16f9f9._0x2b0fd6,0x6b6),'method':'GET','signal':_0xec243e});function _0x2d9c0c(_0x54e716,_0x1748b2,_0x272903,_0x144260){return _0x2088d4(_0x54e716-_0x557b50._0x3a6cf3,_0x1748b2-0x161,_0x272903,_0x144260-_0x557b50._0xd9a7cc);}function _0x49c8ed(_0x19bfd9,_0x35d3b2,_0x3b141e,_0x493502){return _0x5e6a6f(_0x35d3b2,_0x35d3b2-_0x38a6ff._0x299388,_0x3b141e-_0x38a6ff._0xf0dd34,_0x493502-0x79);}if(!_0x2f0661['ok'])throw this[_0x2d9c0c(_0x16f9f9._0x51f4cc,_0x16f9f9._0x47bc22,_0x16f9f9._0x3331b,0x6d5)](await this[_0x2d9c0c(_0x16f9f9._0x5ce7f3,_0x16f9f9._0x216127,0x530,_0x16f9f9._0x441ddc)](_0x2f0661));const _0x559ba8=await _0x2f0661[_0x49c8ed(_0x16f9f9._0x555992,0xa6,0x145,_0x16f9f9._0x3bf2ee)](),_0x425258=(_0x559ba8[_0x49c8ed(_0x16f9f9._0x25190e,0xfe,_0x16f9f9._0x3ee9df,_0x16f9f9._0x39fd85)]??[])['map'](_0x45e354=>{const _0x4da736={_0x5248fe:0xfc};function _0x94f398(_0x4bae0a,_0x2fd134,_0x225fc1,_0x487b47){return _0x49c8ed(_0x4bae0a-0x81,_0x2fd134,_0x225fc1-0x287,_0x487b47-0xb3);}const _0x2603cb=createModelInfo(_0x45e354);_0x2603cb[_0x94f398(_0x56acf5._0x1b956d,0x41f,_0x56acf5._0x373d5d,_0x56acf5._0x156f98)]&&this[_0x94f398(0x253,_0x56acf5._0x321928,_0x56acf5._0x3dcde8,_0x56acf5._0x112a23)]['set'](_0x2603cb['id'],_0x2603cb['supportedEndpoints']);function _0x5da01c(_0x1fcc10,_0x2edc79,_0x26a4ae,_0x6aae01){return _0x2d9c0c(_0x1fcc10-_0x4da736._0x5248fe,_0x2edc79-0x1b,_0x1fcc10,_0x26a4ae- -0x3b8);}return _0x2603cb;});return deduplicateModels(_0x425258);}};function createHeaders(_0x23a685){const _0x393fdc={_0x30d9f7:0x4d8},_0x290f0b={_0x18fca1:0x191,_0x5a3ee5:0x6be,_0x3567dc:0xf1},_0x47a697={_0x282393:0x198,_0x4684c7:0x289,_0x1887de:0x105},_0x53bf04=new Headers();function _0x11a8f7(_0x189009,_0x42d621,_0x2e720c,_0x49494a){return _0x5e6a6f(_0x42d621,_0x42d621-_0x47a697._0x282393,_0x2e720c-_0x47a697._0x4684c7,_0x49494a-_0x47a697._0x1887de);}function _0x8280e3(_0x3e589e,_0x3355e9,_0x15d21c,_0x41fa3b){return _0x5e6a6f(_0x41fa3b,_0x3355e9-_0x290f0b._0x18fca1,_0x3e589e-_0x290f0b._0x5a3ee5,_0x41fa3b-_0x290f0b._0x3567dc);}for(const [_0x5a5a95,_0xe8f04]of Object[_0x11a8f7(0xf5,0x119,0xa6,0x183)](_0x23a685)){_0x53bf04[_0x8280e3(0x565,_0x393fdc._0x30d9f7,0x51b,0x5b4)](_0x5a5a95,_0xe8f04);}return _0x53bf04;}async function fetchRawResponse(_0x1d8eb6){const _0x279e8e={_0x460a99:0x386,_0x4d31a1:0x2ad,_0x25f600:0x37b,_0x21da35:0x2af,_0x440892:0x33,_0x19a08b:0x345,_0x4a248c:0x28f,_0x3a7442:0x140,_0x5cbbd8:0x1d4},_0x7bfab8={_0x183d5f:0x37,_0x4252a6:0x3ab,_0x5fba7:0x107},_0x1716be={_0x2cbe8a:0xc7,_0x1b8ad9:0x91};function _0x6cb1be(_0x277d40,_0x42d9b4,_0x1fd4f2,_0x6669f6){return _0x5e6a6f(_0x1fd4f2,_0x42d9b4-_0x1716be._0x2cbe8a,_0x42d9b4-0xd1,_0x6669f6-_0x1716be._0x1b8ad9);}const _0xd788bd=_0x1d8eb6[_0x3e5e8b(0x348,0x23c,_0x279e8e._0x460a99,_0x279e8e._0x4d31a1)]??globalThis[_0x3e5e8b(_0x279e8e._0x25f600,0x2ea,_0x279e8e._0x21da35,0x2ad)];function _0x3e5e8b(_0xe6f434,_0xdb8118,_0x411810,_0xfca5c6){return _0x5e6a6f(_0xdb8118,_0xdb8118-_0x7bfab8._0x183d5f,_0xfca5c6-_0x7bfab8._0x4252a6,_0xfca5c6-_0x7bfab8._0x5fba7);}return _0xd788bd(_0x1d8eb6[_0x3e5e8b(0x221,0x237,0x1f5,0x227)],{'method':'POST','headers':createHeaders(_0x1d8eb6[_0x6cb1be(-0xd,-0x47,0x6b,_0x279e8e._0x440892)]),'body':JSON['stringify'](_0x1d8eb6[_0x3e5e8b(_0x279e8e._0x19a08b,_0x279e8e._0x4a248c,0x3c8,0x325)]),'signal':_0x1d8eb6[_0x3e5e8b(0x12a,0x139,_0x279e8e._0x3a7442,_0x279e8e._0x5cbbd8)]});}async function fetchJsonResponse(_0x1c4dec){const _0x16fefc={_0x42a284:0x269,_0x2500c:0x222,_0x2cbb4c:0x5b7,_0x2b6439:0x524,_0x3094fd:0x4f3,_0xd78df0:0x1b2,_0x235997:0x664,_0x267fde:0x6f9,_0x4ccb09:0x70c},_0x31cfa5={_0x10a77c:0x10},_0xb8c32d={_0x3b9424:0x1ca,_0x2eaaf4:0x70f,_0x1f6049:0x40};function _0x283877(_0x695e6c,_0x3c66d4,_0x32b905,_0x4edde8){return _0x5e6a6f(_0x4edde8,_0x3c66d4-_0xb8c32d._0x3b9424,_0x3c66d4-_0xb8c32d._0x2eaaf4,_0x4edde8-_0xb8c32d._0x1f6049);}function _0x93cf7(_0x8937a4,_0x5d8d1f,_0x28b7f7,_0x3a63d6){return _0x2088d4(_0x8937a4-0x1dd,_0x5d8d1f-0x35,_0x28b7f7,_0x8937a4-_0x31cfa5._0x10a77c);}const _0x34092a=await fetchRawResponse(_0x1c4dec);if(!_0x34092a['ok']){const _0x3a1062=await _0x34092a[_0x93cf7(0x1bf,_0x16fefc._0x42a284,0x101,_0x16fefc._0x2500c)](),_0x504a29=_0x3a1062[_0x283877(0x5be,0x54e,0x462,0x53f)]()||_0x34092a[_0x283877(_0x16fefc._0x2cbb4c,0x540,_0x16fefc._0x2b6439,_0x16fefc._0x3094fd)]||'Unknown\x20provider\x20error';throw new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x34092a[_0x93cf7(0xdd,_0x16fefc._0xd78df0,0x34,0xe7)]+':\x20'+_0x504a29);}return await _0x34092a[_0x283877(0x72e,_0x16fefc._0x235997,_0x16fefc._0x267fde,_0x16fefc._0x4ccb09)]();}function findLastMessage(_0x48f950,_0x273255){const _0x2b5969={_0x2c91d3:0x33d,_0x5b02b2:0x3b9,_0x178f23:0x3d8,_0x5a2244:0x3c1,_0x15d4ed:0x1d9,_0x2e5e28:0x180,_0x63d1fa:0x126},_0x396145={_0x248f7e:0x33a,_0x9b83ed:0x1c3};function _0x495b04(_0x57fbe5,_0x3b60e0,_0x578157,_0x32638e){return _0x5e6a6f(_0x57fbe5,_0x3b60e0-0x1a5,_0x578157-_0x396145._0x248f7e,_0x32638e-_0x396145._0x9b83ed);}function _0x55db6e(_0x540130,_0x44965b,_0x4f4714,_0x5c9b53){return _0x5e6a6f(_0x4f4714,_0x44965b-0x135,_0x540130-0x49c,_0x5c9b53-0x141);}for(let _0x41f3ef=_0x48f950[_0x55db6e(_0x2b5969._0x2c91d3,_0x2b5969._0x5b02b2,_0x2b5969._0x178f23,_0x2b5969._0x5a2244)]-0x1;_0x41f3ef>=0x0;_0x41f3ef-=0x1){if(_0x48f950[_0x41f3ef][_0x495b04(_0x2b5969._0x15d4ed,_0x2b5969._0x2e5e28,_0x2b5969._0x63d1fa,0x207)]===_0x273255)return _0x48f950[_0x41f3ef];}return void 0x0;}function hasTool(_0x4f4af4,_0x514282){const _0x50821f={_0x834be4:0x253,_0x4b74c7:0x1d9,_0xcbba4f:0x26b,_0x2774b3:0x13f,_0x22eeed:0x131},_0xc43eac={_0xe8ff37:0x163},_0x5f50e6={_0x23f1a3:0x95};function _0x2a9cb3(_0x38b4be,_0x539118,_0x27ae65,_0x332ece){return _0x5e6a6f(_0x539118,_0x539118-_0x5f50e6._0x23f1a3,_0x332ece-_0x5f50e6._0x23f1a3,_0x332ece-0x71);}function _0x4bd875(_0x438832,_0x4c7b54,_0x19d847,_0x57cfb8){return _0x2088d4(_0x438832-_0xc43eac._0xe8ff37,_0x4c7b54-0x113,_0x57cfb8,_0x19d847-0x2c);}return _0x4f4af4[_0x4bd875(_0x50821f._0x834be4,0x288,_0x50821f._0x4b74c7,_0x50821f._0xcbba4f)][_0x4bd875(_0x50821f._0x2774b3,0x1a4,_0x50821f._0x22eeed,0x105)](_0x301ece=>_0x301ece[_0x2a9cb3(0x5,-0x148,-0x81,-0x89)]===_0x514282);}function createMockResponse(_0x1a6cae,_0x58c779,_0x51963e,_0x5f4dd9){return{'id':_0x1a6cae,'content':_0x58c779,'stopReason':_0x51963e,'usage':_0x5f4dd9};}var MockModel=class{[_0x2088d4(0x1ef,0x12c,0x29e,0x1c8)];[_0x5e6a6f(-0x131,-0x2a,-0x7b,-0x16a)];[_0x5e6a6f(-0x10c,-0x165,-0xda,-0x16c)];[_0x2088d4(0x203,0x2d3,0x2c4,0x23c)]=[];['reasoning'];constructor(_0x5f5787={}){const _0x43e7ac={_0x41f8b8:0x656,_0x2e1d5e:0x5f5,_0x32cace:0x5cd,_0x3629e7:0x6c1,_0x525417:0x5a0,_0x4d66b0:0x578,_0x352266:0x58b,_0x5b3b6d:0x652,_0x500507:0x2c5,_0x214495:0x1f2,_0x37abbf:0x1a5,_0x19d124:0x254,_0x17f0f4:0x257,_0x40c4bd:0x247,_0x23b04a:0x286},_0x272053={_0x1dee52:0x2e,_0x26c1aa:0x13f},_0x450d7f={_0x2ce217:0x1e5,_0x4977aa:0x405};this[_0x375890(_0x43e7ac._0x41f8b8,_0x43e7ac._0x2e1d5e,0x597,_0x43e7ac._0x32cace)]=_0x5f5787[_0x1ac716(0x30e,0x359,0x2a4,0x1b3)]??'mock';function _0x375890(_0x32ecf8,_0x53efc4,_0x5d5177,_0x2f4436){return _0x2088d4(_0x32ecf8-0x157,_0x53efc4-_0x450d7f._0x2ce217,_0x32ecf8,_0x2f4436-_0x450d7f._0x4977aa);}this[_0x375890(_0x43e7ac._0x3629e7,0x615,0x6b8,0x652)]=_0x5f5787[_0x375890(_0x43e7ac._0x525417,_0x43e7ac._0x4d66b0,_0x43e7ac._0x352266,_0x43e7ac._0x5b3b6d)]??modelIdentityFromParts(void 0x0,this['model']),this[_0x1ac716(0x1dd,_0x43e7ac._0x500507,0x2ca,0x234)]=_0x5f5787['maxTokens'];function _0x1ac716(_0x49ee83,_0x2557aa,_0xc5d135,_0x5cd53f){return _0x5e6a6f(_0x2557aa,_0x2557aa-_0x272053._0x1dee52,_0xc5d135-0x3a4,_0x5cd53f-_0x272053._0x26c1aa);}this[_0x1ac716(_0x43e7ac._0x214495,_0x43e7ac._0x37abbf,_0x43e7ac._0x19d124,_0x43e7ac._0x17f0f4)]=_0x5f5787['reasoning']?structuredClone(_0x5f5787[_0x1ac716(0x1a6,_0x43e7ac._0x40c4bd,0x254,_0x43e7ac._0x23b04a)]):void 0x0;}async[_0x2088d4(0x1ad,0x1e3,0x1f4,0x10c)](_0x5cf4e8,_0x112c5b){const _0x4beade={_0x278a40:0x5a9,_0xfcf9ed:0x614,_0x5e7a7a:0x5d4,_0x575ed0:0x4c6,_0x389d69:0x5d9,_0x52c0c4:0x4b5,_0x3d6c8d:0x3be,_0x18640c:0x52e,_0x50c4a1:0x60f,_0x54a68e:0x5b0,_0x1e5b3a:0x5d3,_0x3c9601:0x58f,_0x465d2e:0x60d,_0x256541:0x5c8,_0x210bd1:0x4b5,_0x3a4cd4:0x637,_0xab09d5:0x5f1,_0x423a25:0x60b,_0x530aa9:0x53f,_0xe98391:0x5e7,_0x34e36a:0x494,_0x5a2d99:0x466,_0x169856:0x4cb,_0x5c361a:0x537,_0x44543a:0x679,_0x322ff5:0x5e8,_0x28bb4e:0x56a,_0x56338a:0x439,_0x3af219:0x488,_0x1580d8:0x50e,_0xdbe0a3:0x5ba,_0xd055c8:0x616,_0x43777b:0x6f2,_0x4ef94d:0x543,_0x503946:0x5c0,_0x2ccef1:0x61c,_0x1d8b00:0x58c,_0x592f5b:0x60c,_0x24276a:0x5e0,_0x314dfc:0x654,_0x4917d6:0x575,_0xafa361:0x569,_0x3a798e:0x55a,_0x53fc2a:0x4f1,_0x2c0e9a:0x4eb,_0x3c9a84:0x5e3},_0x3be1a8={_0xa66340:0xf5,_0x2e7f26:0xf2,_0x2c3606:0x3da},_0x1af039={_0x1bb7f8:0xa5,_0x51d0a2:0x1d5,_0x54714b:0x45c},_0x3cf597={...structuredClone(_0x5cf4e8),..._0x5cf4e8[_0x592f99(0x5b9,_0x4beade._0x278a40,_0x4beade._0xfcf9ed,_0x4beade._0x5e7a7a)]===void 0x0&&this[_0x9a7fce(_0x4beade._0x575ed0,0x552,_0x4beade._0x389d69,0x4dd)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};this['requests'][_0x9a7fce(0x487,_0x4beade._0x52c0c4,0x598,0x52b)](_0x3cf597);const _0xa7d845=findLastMessage(_0x3cf597[_0x9a7fce(0x421,0x45d,0x4b1,_0x4beade._0x3d6c8d)],_0x9a7fce(_0x4beade._0x18640c,0x53c,_0x4beade._0x50c4a1,_0x4beade._0x54a68e));function _0x592f99(_0xa05a5e,_0x509208,_0x5d66cc,_0x18eb38){return _0x2088d4(_0xa05a5e-_0x1af039._0x1bb7f8,_0x509208-_0x1af039._0x51d0a2,_0x509208,_0x18eb38-_0x1af039._0x54714b);}const _0x705af9=getToolResultBlocks(_0xa7d845),_0x24b0e0=_0x9a7fce(0x62d,_0x4beade._0x5e7a7a,0x550,0x504)+this[_0x9a7fce(_0x4beade._0x1e5b3a,0x616,0x66a,0x6f5)][_0x9a7fce(_0x4beade._0x3c9601,0x543,_0x4beade._0x465d2e,_0x4beade._0x256541)];if(_0x705af9[_0x9a7fce(_0x4beade._0x210bd1,0x543,0x4c8,0x4d6)]>0x0)return createMockResponse(_0x24b0e0,[{'type':_0x592f99(_0x4beade._0x3a4cd4,_0x4beade._0xab09d5,0x67a,_0x4beade._0x423a25),'text':_0x592f99(0x634,0x5a5,_0x4beade._0x530aa9,_0x4beade._0xe98391)+_0x705af9[0x0][_0x9a7fce(0x44f,_0x4beade._0x34e36a,0x50d,_0x4beade._0x5a2d99)]}],_0x9a7fce(_0x4beade._0x169856,0x4dd,0x54e,_0x4beade._0x5c361a),{'inputTokens':0x78,'outputTokens':0x28});const _0x4d448c=getTextFromMessage(_0xa7d845);function _0x9a7fce(_0x327a91,_0x5398ff,_0xf45b1d,_0x184e47){return _0x2088d4(_0x327a91-_0x3be1a8._0xa66340,_0x5398ff-_0x3be1a8._0x2e7f26,_0x327a91,_0x5398ff-_0x3be1a8._0x2c3606);}if(/list .*files|workspace/i['test'](_0x4d448c)&&hasTool(_0x3cf597,_0x9a7fce(0x625,0x5d8,_0x4beade._0x44543a,_0x4beade._0x322ff5)))return createMockResponse(_0x24b0e0,[{'type':_0x592f99(0x444,0x418,_0x4beade._0x28bb4e,0x4f1),'id':_0x592f99(_0x4beade._0x56338a,_0x4beade._0x3af219,0x55c,_0x4beade._0x1580d8)+this[_0x9a7fce(_0x4beade._0xdbe0a3,_0x4beade._0xd055c8,_0x4beade._0x43777b,0x6e1)][_0x9a7fce(0x5e7,_0x4beade._0x4ef94d,0x5d0,0x5ff)],'name':_0x9a7fce(0x55e,0x5d8,_0x4beade._0x503946,_0x4beade._0x2ccef1),'input':{'command':_0x592f99(_0x4beade._0x1d8b00,_0x4beade._0x592f5b,_0x4beade._0x24276a,_0x4beade._0x314dfc)}}],_0x592f99(_0x4beade._0x4917d6,_0x4beade._0xafa361,_0x4beade._0x3a798e,_0x4beade._0x53fc2a),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x24b0e0,[{'type':_0x592f99(0x582,0x5b3,0x54f,0x60b),'text':_0x9a7fce(_0x4beade._0x2c0e9a,0x5d7,_0x4beade._0x3c9a84,0x4e8)+_0x4d448c}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0xe0c067,_0x25bef7){const _0x3623fc={_0x438eba:0x62f,_0xdf558f:0x500,_0x1f7e84:0x4fa,_0x48af03:0x5d7,_0x18833b:0x553,_0x166c58:0x4be,_0x3947eb:0x53a,_0x5aafbb:0x6e7,_0x235419:0x636,_0x249a49:0x60b,_0x2bc8e5:0x4db,_0xbb3613:0x5bb},_0x121a4b={_0x2fa5fd:0x128},_0x8931ca={_0x7a2d8f:0x18c},_0x252003=getModelProfile(_0xe0c067,_0x25bef7);function _0x57ca98(_0x3dda6e,_0xffa424,_0x567b14,_0x478013){return _0x2088d4(_0x3dda6e-_0x8931ca._0x7a2d8f,_0xffa424-0x1b2,_0x478013,_0xffa424-0x4a8);}if(!_0x252003?.[_0x57ca98(0x59f,0x689,0x6f2,_0x3623fc._0x438eba)]&&!_0x252003?.[_0x3d5f7b(_0x3623fc._0xdf558f,_0x3623fc._0x1f7e84,0x5ca,0x4df)])return void 0x0;function _0x3d5f7b(_0x3d18f9,_0x443a14,_0x43ada7,_0x3335bc){return _0x2088d4(_0x3d18f9-_0x121a4b._0x2fa5fd,_0x443a14-0x1b7,_0x443a14,_0x3d18f9-0x372);}return{..._0x252003[_0x57ca98(0x660,0x689,_0x3623fc._0x48af03,0x5b1)]?{'contextWindow':_0x252003[_0x3d5f7b(_0x3623fc._0x18833b,0x5df,_0x3623fc._0x166c58,_0x3623fc._0x3947eb)]}:{},..._0x252003[_0x57ca98(_0x3623fc._0x5aafbb,_0x3623fc._0x235419,0x565,_0x3623fc._0x249a49)]?{'maxOutput':_0x252003[_0x3d5f7b(0x500,0x44c,_0x3623fc._0x2bc8e5,_0x3623fc._0xbb3613)]}:{}};}function normalizeModelInfo(_0x501ad8,_0x53c7c1){const _0x327389={_0x49b24e:0x181,_0x2d7367:0x9f,_0x45d426:0xe4,_0x2d3bad:0x213,_0x53232c:0x12e,_0x18d52f:0x127,_0x4f5d96:0x157,_0x360c1f:0x1aa,_0x2b657f:0x61,_0x458fea:0x3c,_0x59649f:0x80,_0x5a5eae:0x68,_0x5c6302:0x84,_0x4a628d:0x6e,_0xa15cb:0x4,_0x1462f5:0x4a},_0x489219={_0x237f2a:0xf8,_0x30301a:0x53},_0x18863a={_0x596844:0x227},_0x46769f=typeof _0x53c7c1['id']===_0xe55fe4(0x20d,0x17c,_0x327389._0x49b24e,_0x327389._0x2d7367)?_0x53c7c1['id']:'';function _0x3c5f0c(_0xeda582,_0x36ca2b,_0x57258b,_0x3e7935){return _0x5e6a6f(_0x36ca2b,_0x36ca2b-0xe2,_0x57258b-_0x18863a._0x596844,_0x3e7935-0x14e);}const _0x8e5030=typeof _0x53c7c1['name']===_0x3c5f0c(_0x327389._0x45d426,_0x327389._0x2d3bad,_0x327389._0x53232c,0x18b)?_0x53c7c1[_0xe55fe4(_0x327389._0x18d52f,_0x327389._0x4f5d96,_0x327389._0x360c1f,0x1ee)]:_0x46769f,_0x339057=normalizeModelLimits(_0x501ad8,_0x53c7c1)??getFallbackModelLimits(_0x501ad8,_0x46769f);function _0xe55fe4(_0x1e26c3,_0x15d7fb,_0x3f620d,_0xa3de18){return _0x2088d4(_0x1e26c3-_0x489219._0x237f2a,_0x15d7fb-0x3e,_0x3f620d,_0x15d7fb- -_0x489219._0x30301a);}const _0x5a050c=Array[_0xe55fe4(-_0x327389._0x2b657f,_0x327389._0x458fea,-_0x327389._0x59649f,_0x327389._0x5a5eae)](_0x53c7c1['supported_endpoints'])?_0x53c7c1[_0x3c5f0c(_0x327389._0x5c6302,-0x5f,_0x327389._0x4a628d,_0x327389._0xa15cb)]['filter'](_0x2ad57e=>typeof _0x2ad57e===_0xe55fe4(0xc8,0x17c,0xf8,0x1b3)):Array['isArray'](_0x53c7c1[_0x3c5f0c(-_0x327389._0x1462f5,0x3e,0xa2,0x171)])?_0x53c7c1['capable_endpoints']['filter'](_0x24b62a=>typeof _0x24b62a===_0x3c5f0c(0x149,0x109,0x12e,0x1bb)):void 0x0;return{'id':_0x46769f,'name':_0x8e5030,..._0x339057?{'limits':_0x339057}:{},..._0x5a050c?{'supportedEndpoints':_0x5a050c}:{}};}function normalizeModelLimits(_0x18d1c6,_0x236494){const _0x13df19={_0x3850f3:0x16,_0x4732ab:0xa,_0x919855:0x5e,_0x15dc65:0xb3,_0x29779c:0x9,_0x3b25fb:0xb8,_0x51749f:0x61,_0xf91db5:0xb,_0x47a7d1:0x2a,_0x451a46:0xe8,_0x5d6bc3:0xa6,_0x2ce9d0:0x116,_0x2a3b91:0xda,_0x2bfdd3:0x6f,_0x489abd:0xde,_0x5c006f:0x6d,_0x16bbaf:0xd,_0x16566f:0x32,_0x415ad4:0x56,_0x4a2855:0x2c,_0x51828b:0x1ca,_0x340c29:0x92,_0x2779a0:0x6d,_0x8a2e38:0x5f,_0x217697:0x7f,_0x5d5b95:0xc1,_0x1307d3:0x28,_0x3637f1:0x40,_0x1e6605:0x9c,_0x248ef9:0xba,_0x2e361f:0x48,_0x245961:0x28,_0x5813ee:0x122,_0x205281:0x101,_0x49a38a:0xa7,_0x2915b9:0x10a,_0x315dd6:0x36,_0x5d51b0:0x180,_0x3705b8:0x21c,_0x69235c:0xc,_0x1d5582:0x100,_0x18d980:0x1bb,_0x2b5489:0x1fe,_0x211f43:0xc8,_0x283d5b:0xe4,_0x18eb68:0x1a5,_0x7edf84:0x176,_0x4ca4f3:0x91,_0x4f515f:0x1d},_0x2785c7={_0x848357:0x96,_0x27e625:0xb2};if(_0x236494[_0x4330c6(_0x13df19._0x3850f3,-_0x13df19._0x4732ab,_0x13df19._0x919855,-0x8a)]&&typeof _0x236494[_0x505ed0(-0xc7,_0x13df19._0x15dc65,-0x6f,-0x2a)]===_0x505ed0(_0x13df19._0x29779c,_0x13df19._0x3b25fb,-0x14,_0x13df19._0x51749f)){const _0x128b38=_0x236494[_0x505ed0(0x3d,_0x13df19._0xf91db5,-0xb0,-_0x13df19._0x47a7d1)];if(typeof _0x128b38['contextWindow']===_0x505ed0(0x9c,0x1,0x159,0xba))return{'contextWindow':_0x128b38[_0x505ed0(_0x13df19._0x451a46,0x39,_0x13df19._0x5d6bc3,0x10f)],...typeof _0x128b38['maxOutput']===_0x4330c6(_0x13df19._0x2ce9d0,_0x13df19._0x2a3b91,_0x13df19._0x2bfdd3,_0x13df19._0x489abd)?{'maxOutput':_0x128b38[_0x505ed0(_0x13df19._0x5c006f,0x121,_0x13df19._0x16bbaf,0xbc)]}:{}};}function _0x4330c6(_0x539cf7,_0x4e5d0c,_0x4e5871,_0x29296b){return _0x2088d4(_0x539cf7-_0x2785c7._0x848357,_0x4e5d0c-0xbd,_0x539cf7,_0x4e5d0c- -_0x2785c7._0x27e625);}function _0x505ed0(_0x2a13b4,_0x22275c,_0x159892,_0x5d2f1e){return _0x5e6a6f(_0x22275c,_0x22275c-0x14a,_0x5d2f1e-0x1f6,_0x5d2f1e-0x1ac);}if(_0x18d1c6[_0x505ed0(-_0x13df19._0x16566f,0xd,_0x13df19._0x415ad4,-_0x13df19._0x4a2855)]()===_0x4330c6(_0x13df19._0x51828b,0x1a1,0x15c,0x17d)){const _0x5e83ff=_0x236494[_0x4330c6(_0x13df19._0x340c29,_0x13df19._0x2779a0,_0x13df19._0x8a2e38,-_0x13df19._0x217697)],_0x3f0bfb=_0x5e83ff?.[_0x4330c6(-_0x13df19._0x5d5b95,-0xa,_0x13df19._0x1307d3,_0x13df19._0x3637f1)];if(typeof _0x3f0bfb?.['max_context_window_tokens']===_0x505ed0(0x68,0x148,_0x13df19._0x1e6605,_0x13df19._0x248ef9))return{'contextWindow':_0x3f0bfb['max_context_window_tokens'],...typeof _0x3f0bfb[_0x505ed0(-0x6d,-0x69,_0x13df19._0x2e361f,-_0x13df19._0x245961)]===_0x505ed0(_0x13df19._0x5813ee,0x1e,0x17c,0xba)?{'maxOutput':_0x3f0bfb['max_output_tokens']}:{}};}const _0x1a9950=_0x236494[_0x4330c6(_0x13df19._0x205281,_0x13df19._0x49a38a,_0x13df19._0x2915b9,0x81)],_0x38fdc2=_0x236494[_0x4330c6(-0xbe,-_0x13df19._0x315dd6,-0x5d,-_0x13df19._0xf91db5)],_0x20b72b=typeof _0x236494['context_length']==='number'?_0x236494['context_length']:typeof _0x1a9950?.[_0x4330c6(0x10e,0x171,_0x13df19._0x5d51b0,_0x13df19._0x3705b8)]===_0x4330c6(_0x13df19._0x69235c,_0x13df19._0x2a3b91,_0x13df19._0x1d5582,_0x13df19._0x18d980)?_0x1a9950[_0x4330c6(0x1b9,0x171,0x220,0x1b7)]:typeof _0x38fdc2?.[_0x505ed0(_0x13df19._0x2b5489,_0x13df19._0x211f43,_0x13df19._0x283d5b,0x151)]==='number'?_0x38fdc2[_0x505ed0(_0x13df19._0x18eb68,_0x13df19._0x7edf84,0xd3,0x151)]:void 0x0;if(_0x20b72b===void 0x0)return void 0x0;return{'contextWindow':_0x20b72b,...typeof _0x1a9950?.[_0x4330c6(-0x121,-0x34,0x24,_0x13df19._0x4ca4f3)]===_0x505ed0(0xfb,_0x13df19._0x4f515f,0x109,_0x13df19._0x248ef9)?{'maxOutput':_0x1a9950['max_tokens']}:typeof _0x38fdc2?.['max_completion_tokens']==='number'?{'maxOutput':_0x38fdc2['max_completion_tokens']}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerFromSurface,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|