@nuvin/agent-core 0.3.0-rc.7 → 0.3.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-EQGBU73Q.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -1
- package/dist/chunk-IUZALP6K.js +1 -1
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-NJFOEZ6V.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/isolate/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/model-registry.d.ts +3 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +1 -0
- package/dist/tools/index.js +1 -1
- package/package.json +2 -2
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x6fd9a8,_0x15b049){const _0x487fa8={_0x4eae11:0x2de,_0x15ac3a:0xe,_0x53b857:0x266,_0x43e786:0x328,_0x2cd412:0x16e,_0x4f837a:0x3f9,_0x494065:0x31a,_0x3950a5:0x374,_0xd927b9:0x399,_0x5d9ce2:0x38b,_0x13ac8d:0x33a,_0x564110:0x102,_0x129ad0:0x124,_0x33fbd2:0x220,_0x3f869a:0x1d0,_0x1977ec:0x475,_0x16769d:0x385,_0x5d7bb5:0x221,_0x2ef386:0x1c4,_0x406862:0x334,_0x4b929a:0x216},_0x3e2116={_0x2e9b79:0x1a2},_0x1f6fee=_0x6fd9a8();function _0x611aa2(_0x15ba9c,_0x3d94f8,_0x4bc3a5,_0x1b82e3){return _0x36b7(_0x4bc3a5-0xa,_0x1b82e3);}function _0x16f913(_0x24a9d0,_0xece5c3,_0x22d307,_0x2f1d88){return _0x36b7(_0x22d307- -_0x3e2116._0x2e9b79,_0xece5c3);}while(!![]){try{const _0x5230e7=-parseInt(_0x611aa2(0x2cc,0x2c8,_0x487fa8._0x4eae11,0x30c))/0x1*(parseInt(_0x16f913(0x6,0xc1,-0xb,_0x487fa8._0x15ac3a))/0x2)+-parseInt(_0x611aa2(_0x487fa8._0x53b857,_0x487fa8._0x43e786,0x230,_0x487fa8._0x2cd412))/0x3*(parseInt(_0x611aa2(_0x487fa8._0x4f837a,_0x487fa8._0x494065,0x3b0,_0x487fa8._0x3950a5))/0x4)+-parseInt(_0x611aa2(_0x487fa8._0xd927b9,0x3f6,_0x487fa8._0x5d9ce2,_0x487fa8._0x13ac8d))/0x5+-parseInt(_0x16f913(0xc5,_0x487fa8._0x564110,_0x487fa8._0x129ad0,0x18e))/0x6+parseInt(_0x611aa2(_0x487fa8._0x33fbd2,0x19a,_0x487fa8._0x3f869a,0x2b9))/0x7*(parseInt(_0x611aa2(_0x487fa8._0x1977ec,0x42d,_0x487fa8._0x16769d,0x283))/0x8)+parseInt(_0x611aa2(0x2a1,_0x487fa8._0x5d7bb5,0x1f6,_0x487fa8._0x2ef386))/0x9+parseInt(_0x611aa2(_0x487fa8._0x406862,0x309,0x341,0x3aa))/0xa*(parseInt(_0x16f913(0x23f,_0x487fa8._0x4b929a,0x196,0xc0))/0xb);if(_0x5230e7===_0x15b049)break;else _0x1f6fee['push'](_0x1f6fee['shift']());}catch(_0x3aca82){_0x1f6fee['push'](_0x1f6fee['shift']());}}}(_0x8bb0,0x9eff0));import{toOpenAiResponsesRequest}from'../chunk-LIE76IJA.js';import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{USD_TICKS_PER_TOKEN_AT_ONE_DOLLAR_PER_MILLION,estimateModelCost,withEstimatedModelCost}from'../chunk-GAZGO6N7.js';import{getTextFromMessage,getToolResultBlocks,isProviderStateCompatible,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-YNOIG4FD.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x287e98){const _0x17a745={_0x4d58ef:0x299,_0x30e980:0x240,_0x335eba:0x224};super(_0x287e98);function _0x28e686(_0x5cb350,_0x21e51f,_0x55ba7b,_0x52cba0){return _0x36b7(_0x52cba0- -0x3b5,_0x55ba7b);}this[_0x28e686(-0x157,-_0x17a745._0x4d58ef,-_0x17a745._0x30e980,-_0x17a745._0x335eba)]='ProviderRequestConstructionError';}},ProviderStreamEventError=class extends Error{[_0x101ac3(0x5c9,0x63a,0x574,0x551)];[_0x22bdb8(0xb3,0xeb,0x16f,0x1a6)];[_0x101ac3(0x40a,0x419,0x58f,0x4f0)];constructor(_0x494f76,_0x3063df={}){const _0x58e336={_0x4f58a5:0xab,_0x2d90d2:0x56,_0x3a9b38:0xe,_0x8aeaa0:0x120,_0x20edf1:0x9d,_0x439fe7:0x70,_0xdc74e0:0xb4,_0x21ece1:0x136,_0x5f31fc:0x170},_0x5e4da8={_0x595204:0x1a3},_0x550867={_0xa526bc:0xac,_0x1317e3:0x64};function _0x221b8c(_0x5a0004,_0x45ddbe,_0x4f948a,_0x29b654){return _0x22bdb8(_0x5a0004-_0x550867._0xa526bc,_0x29b654- -_0x550867._0x1317e3,_0x45ddbe,_0x29b654-0x92);}super(_0x494f76),this[_0x221b8c(0x0,-0x46,_0x58e336._0x4f58a5,-_0x58e336._0x2d90d2)]=_0x3fd52b(0x1b4,0x10d,0x1c8,0x111),this[_0x3fd52b(0x7a,_0x58e336._0x3a9b38,0x13c,_0x58e336._0x8aeaa0)]=_0x3063df[_0x221b8c(-_0x58e336._0x20edf1,-0xbb,-_0x58e336._0x439fe7,0x4d)],this[_0x3fd52b(_0x58e336._0xdc74e0,_0x58e336._0x21ece1,_0x58e336._0x5f31fc,0xdb)]=_0x3063df['retryable']??!![];function _0x3fd52b(_0x2e688a,_0x320909,_0x16707a,_0xd518ed){return _0x22bdb8(_0x2e688a-0x57,_0x2e688a- -0x37,_0xd518ed,_0xd518ed-_0x5e4da8._0x595204);}this['status']=_0x3063df['status'];}};function isRetryableProviderStreamEventError(_0x2c366a){const _0x3bcfaf={_0x3b41b7:0x291,_0xdd2604:0x1ff},_0x435fce={_0x493284:0x38c};function _0xc5f6a9(_0x2d91e4,_0x499bb6,_0x589d6e,_0x16548d){return _0x101ac3(_0x2d91e4-0x117,_0x499bb6-0xf8,_0x2d91e4,_0x499bb6- -_0x435fce._0x493284);}return _0x2c366a instanceof ProviderStreamEventError&&_0x2c366a[_0xc5f6a9(_0x3bcfaf._0x3b41b7,_0x3bcfaf._0xdd2604,0x178,0x28b)];}var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x22bdb8(0xcd,0xa8,0x17b,0x195);function parseToolInput(_0x3377a4){try{return JSON['parse'](_0x3377a4);}catch{return _0x3377a4;}}function resolveReasoningVisibility(_0x12f23d){const _0x5ea74b={_0x92bff6:0x5d8},_0xd396a7={_0x36b1b7:0x17b,_0x503c52:0x2e};function _0x4ed651(_0x3635ef,_0x918406,_0x1239dd,_0x34ea8f){return _0x101ac3(_0x3635ef-_0xd396a7._0x36b1b7,_0x918406-_0xd396a7._0x503c52,_0x918406,_0x1239dd- -0x12d);}return _0x12f23d['reasoning']?.['visibility']??_0x4ed651(_0x5ea74b._0x92bff6,0x60e,0x52a,0x55c);}function isUserVisibleThinking(_0x3e59f2){const _0x250c48={_0x118907:0x363,_0x563b87:0x4a9,_0x19c06f:0x559,_0x38bbef:0x41d,_0x41e2d8:0x542},_0x1454a7={_0x3b71fd:0x1f4,_0x530762:0x36e},_0x46399f={_0x1ee32b:0x2d8,_0x3b9a00:0x17a};function _0x28877c(_0x150b33,_0x3ee9e3,_0x10a953,_0x2bea73){return _0x22bdb8(_0x150b33-0x19c,_0x3ee9e3-_0x46399f._0x1ee32b,_0x150b33,_0x2bea73-_0x46399f._0x3b9a00);}const _0x5ce5ec=resolveAnthropicReasoningConfig(_0x3e59f2['reasoning'])?.[_0x469216(0x3e0,_0x250c48._0x118907,0x41b,_0x250c48._0x563b87)];function _0x469216(_0x267a82,_0x204162,_0x48c233,_0x437ba0){return _0x22bdb8(_0x267a82-_0x1454a7._0x3b71fd,_0x48c233-_0x1454a7._0x530762,_0x204162,_0x437ba0-0xa9);}return _0x5ce5ec!==void 0x0&&_0x5ce5ec[_0x469216(_0x250c48._0x19c06f,_0x250c48._0x38bbef,0x494,0x46c)]!==_0x469216(0x498,_0x250c48._0x41e2d8,0x4bd,0x494)&&resolveReasoningVisibility(_0x3e59f2)==='user-visible';}function createAnthropicThinkingBody(_0xecfcdf){const _0x387b15={_0x222bfc:0xce,_0x270d38:0x81,_0x5826ae:0x51,_0x4288bc:0x32,_0x183208:0x465,_0xe21a01:0x50e,_0x2d8eba:0x452,_0x1eac96:0x402,_0x59fce:0x10c,_0x2a9543:0xf1,_0x4bd275:0x3c9,_0x33c922:0x5a,_0x19dc87:0x9e,_0x4999f8:0x183,_0xdc4b89:0x4a3,_0x5b5fdc:0x55c,_0x216bfe:0x48d,_0x1e148a:0x228,_0x2a8540:0x585,_0x155c91:0x59a,_0x223c03:0x44e,_0x116bd2:0x54e,_0x1f2d34:0x4fa,_0x5db239:0x5c3,_0x5916f2:0x445},_0x5cf110={_0x51bb69:0x155,_0x4345e1:0x1a4};function _0x2ea676(_0x558de8,_0x45f230,_0x4d77a5,_0x4f9561){return _0x101ac3(_0x558de8-_0x5cf110._0x51bb69,_0x45f230-_0x5cf110._0x4345e1,_0x4f9561,_0x45f230- -0xe1);}const _0x17e65a=resolveAnthropicReasoningConfig(_0xecfcdf['reasoning'])?.[_0x33481e(_0x387b15._0x222bfc,_0x387b15._0x270d38,_0x387b15._0x5826ae,_0x387b15._0x4288bc)];function _0x33481e(_0x5c7e5d,_0x330bc6,_0x23e1fc,_0xfc62f6){return _0x101ac3(_0x5c7e5d-0x1f0,_0x330bc6-0x1b1,_0xfc62f6,_0x330bc6- -0x4cc);}if(!_0x17e65a)return{};if(_0x17e65a['type']===_0x2ea676(_0x387b15._0x183208,0x50e,0x525,0x525))return{'thinking':{'type':_0x2ea676(0x509,_0x387b15._0xe21a01,_0x387b15._0x2d8eba,_0x387b15._0x1eac96)}};const _0x288dc2=_0x17e65a['display']??(isUserVisibleThinking(_0xecfcdf)?_0x33481e(_0x387b15._0x59fce,0x146,0x12c,_0x387b15._0x2a9543):_0x2ea676(_0x387b15._0x4bd275,0x421,0x4d8,0x4c9)),_0x17749c=_0x17e65a[_0x33481e(-_0x387b15._0x33c922,_0x387b15._0x19dc87,_0x387b15._0x4999f8,0x163)]?{'anthropic-beta':_0x2ea676(0x56e,0x4d3,_0x387b15._0xdc4b89,0x459)}:void 0x0;if(_0x17e65a[_0x2ea676(0x46f,0x4e5,_0x387b15._0x5b5fdc,_0x387b15._0x216bfe)]===_0x33481e(0x16a,0x1af,0x283,_0x387b15._0x1e148a))return{..._0x17749c?{'headers':_0x17749c}:{},'thinking':{'type':_0x2ea676(_0x387b15._0x2a8540,_0x387b15._0x155c91,0x4ad,0x55e),'budget_tokens':_0x17e65a[_0x2ea676(0x40e,0x3f8,_0x387b15._0x223c03,0x3d3)],'display':_0x288dc2}};return{..._0x17749c?{'headers':_0x17749c}:{},'thinking':{'type':_0x2ea676(_0x387b15._0x116bd2,_0x387b15._0x1f2d34,_0x387b15._0x5db239,_0x387b15._0x5916f2),'display':_0x288dc2}};}function toAnthropicRequestContent(_0x1dcae6,_0x47e02d){const _0x4433a1={_0x833e23:0x64b,_0x52550a:0x74f,_0x4c3d5b:0x717,_0x175c14:0x45f,_0x283435:0x63d,_0x4c5bf9:0x4fe,_0x1ab95b:0x702,_0x432601:0x579,_0x243c2e:0x543,_0x4cd9d0:0x6a5,_0x247219:0x549,_0x47638b:0x5b7,_0x218e4a:0x597,_0x5e461e:0x69f,_0x26f3eb:0x5cd,_0x3d6287:0x4d5,_0x311ad9:0x656,_0x420f62:0x697,_0x4666b1:0x652,_0x24865f:0x556,_0x18db75:0x458,_0x5a57d3:0x47d,_0x949db5:0x528,_0x218d59:0x645,_0x3bfa5a:0x53e,_0x47ecd1:0x63c,_0x4ddc5a:0x684,_0x238997:0x501,_0x73af1f:0x5b1,_0x47019b:0x6cb,_0xba3c4b:0x4e1,_0x38efb4:0x58e,_0x1e413e:0x5cf},_0x1d4b48={_0x141ac6:0xff,_0xe46cec:0x9},_0x29cd3b={_0x2d0838:0xf},_0x348bae=isProviderStateCompatible(_0x1dcae6,_0x47e02d);function _0x180615(_0x29ce8f,_0x27e2cd,_0x5a725d,_0x3d2b9a){return _0x101ac3(_0x29ce8f-0x13b,_0x27e2cd-0xe0,_0x3d2b9a,_0x5a725d- -_0x29cd3b._0x2d0838);}if(_0x348bae&&_0x1dcae6['role']==='assistant'&&_0x1dcae6['providerState']?.[_0x1107ff(_0x4433a1._0x833e23,_0x4433a1._0x52550a,_0x4433a1._0x4c3d5b,0x6b0)])return structuredClone(_0x1dcae6[_0x1107ff(0x562,_0x4433a1._0x175c14,_0x4433a1._0x283435,_0x4433a1._0x4c5bf9)][_0x1107ff(_0x4433a1._0x833e23,0x723,0x608,_0x4433a1._0x1ab95b)]);function _0x1107ff(_0x2401f8,_0x44dd3c,_0x4fe220,_0x89a04e){return _0x101ac3(_0x2401f8-_0x1d4b48._0x141ac6,_0x44dd3c-0x82,_0x44dd3c,_0x2401f8-_0x1d4b48._0xe46cec);}const _0x2f0f1b=[];for(const _0x1c534b of normalizeContent(_0x1dcae6[_0x180615(_0x4433a1._0x432601,0x54f,_0x4433a1._0x243c2e,0x490)])){if(_0x1c534b[_0x180615(_0x4433a1._0x4cd9d0,_0x4433a1._0x247219,_0x4433a1._0x47638b,_0x4433a1._0x218e4a)]===_0x180615(0x5ac,_0x4433a1._0x5e461e,_0x4433a1._0x26f3eb,_0x4433a1._0x3d6287))continue;if(_0x1c534b['type']==='anthropic_thinking'){_0x348bae&&_0x2f0f1b[_0x1107ff(0x5e7,_0x4433a1._0x311ad9,_0x4433a1._0x420f62,_0x4433a1._0x4666b1)]({'type':_0x1107ff(_0x4433a1._0x24865f,_0x4433a1._0x18db75,_0x4433a1._0x5a57d3,0x4a6),'thinking':_0x1c534b[_0x180615(_0x4433a1._0x949db5,_0x4433a1._0x218d59,_0x4433a1._0x3bfa5a,_0x4433a1._0x47ecd1)],'signature':_0x1c534b[_0x1107ff(0x58b,0x520,_0x4433a1._0x4ddc5a,0x66c)]});continue;}if(_0x1c534b[_0x180615(_0x4433a1._0x238997,0x507,_0x4433a1._0x47638b,_0x4433a1._0x73af1f)]==='anthropic_redacted_thinking'){_0x348bae&&_0x2f0f1b[_0x180615(0x686,0x65b,0x5cf,_0x4433a1._0x47019b)]({'type':'redacted_thinking','data':_0x1c534b[_0x180615(_0x4433a1._0xba3c4b,0x6b4,0x5ba,0x4f7)]});continue;}_0x2f0f1b[_0x180615(_0x4433a1._0x38efb4,0x636,_0x4433a1._0x1e413e,0x631)](structuredClone(_0x1c534b));}return _0x2f0f1b;}function createAnthropicRequest(_0x5883f1,_0x79c1dd){const _0x38dce6={_0xa317b4:0x589,_0xa7dde6:0x4af,_0x56dabc:0x532,_0x4f53d9:0x47f,_0x1f35c7:0x4e5,_0x58bb68:0x46d,_0x40bda2:0x4d4,_0x2716cd:0x552,_0x9018db:0x428,_0x42a9e0:0x599,_0x566c9a:0x473,_0x260ee0:0x453,_0x10002d:0x82,_0x38f3d3:0x114,_0x36e3ea:0x32,_0x3619f7:0x169,_0x1c6f01:0x3f7,_0x4492c2:0x4da,_0x47e84a:0x4b,_0x4d3e29:0x5b9,_0x5bf28a:0x87,_0x473905:0x3,_0x1b39ff:0x109,_0x284588:0x1c2,_0x2fee51:0x11f},_0x20531b={_0x20f04d:0x382,_0x120e02:0x232},_0x4f7e38={_0x374247:0x6b},_0x3cedf7={_0x5c77f2:0x1b7,_0x4be98c:0xfd},_0x3702d5=toProviderModelRequest(_0x5883f1);function _0x535ffa(_0x4b7e26,_0x3392b9,_0x333771,_0xf03697){return _0x101ac3(_0x4b7e26-_0x3cedf7._0x5c77f2,_0x3392b9-_0x3cedf7._0x4be98c,_0x333771,_0xf03697- -0x5ff);}const _0x2ef69f=createAnthropicThinkingBody(_0x5883f1),_0x4acdff=resolveAnthropicReasoningConfig(_0x5883f1['reasoning']),_0x41aa64={..._0x4acdff?.['effort']?{'effort':_0x4acdff[_0x3f8270(0x64a,_0x38dce6._0xa317b4,_0x38dce6._0xa7dde6,0x4af)]}:{},..._0x5883f1['outputFormat']?{'format':{'type':_0x3f8270(0x5bd,_0x38dce6._0x56dabc,0x514,0x46d),'schema':_0x5883f1[_0x3f8270(_0x38dce6._0x4f53d9,0x44a,_0x38dce6._0x1f35c7,0x440)][_0x3f8270(0x4b2,0x555,0x4ad,0x4f5)]}}:{}};function _0x3f8270(_0x1c3783,_0x295b60,_0x520d8b,_0x500dbf){return _0x22bdb8(_0x1c3783-_0x4f7e38._0x374247,_0x295b60-0x42d,_0x1c3783,_0x500dbf-0x86);}return{'accept':_0x79c1dd?_0x3f8270(_0x38dce6._0x58bb68,_0x38dce6._0x40bda2,_0x38dce6._0x2716cd,_0x38dce6._0x9018db):_0x3f8270(_0x38dce6._0x42a9e0,0x528,_0x38dce6._0x566c9a,_0x38dce6._0x260ee0),'body':{..._0x3702d5,'messages':_0x5883f1['messages'][_0x535ffa(-0x13a,-0x10a,-_0x38dce6._0x10002d,-_0x38dce6._0x38f3d3)](_0x43bcae=>{const _0x3f27ac={_0xa6ce94:0x2f8};function _0xad9745(_0x506ff7,_0x59b422,_0x5f5081,_0xc4541f){return _0x535ffa(_0x506ff7-0x5a,_0x59b422-0x1e3,_0x5f5081,_0x506ff7-_0x3f27ac._0xa6ce94);}return{'role':_0x43bcae[_0xad9745(0x288,0x2e2,_0x20531b._0x20f04d,_0x20531b._0x120e02)],'content':toAnthropicRequestContent(_0x43bcae,_0x5883f1)};}),..._0x2ef69f[_0x535ffa(-_0x38dce6._0x36e3ea,-0x113,-_0x38dce6._0x3619f7,-0xb2)]?{'thinking':_0x2ef69f[_0x3f8270(_0x38dce6._0x1c6f01,_0x38dce6._0x4492c2,0x4bd,0x493)]}:{},..._0x79c1dd?{'stream':!![]}:{},...Object[_0x535ffa(-0x90,-0x3f,0x111,_0x38dce6._0x47e84a)](_0x41aa64)[_0x3f8270(0x620,_0x38dce6._0x4d3e29,0x695,0x552)]>0x0?{'output_config':_0x41aa64}:{}},..._0x2ef69f[_0x535ffa(-_0x38dce6._0x5bf28a,-0x199,-0x160,-0xbb)]?{'headers':_0x2ef69f[_0x535ffa(-0x124,-0x19d,_0x38dce6._0x473905,-0xbb)]}:{},'path':_0x535ffa(-0xc1,-_0x38dce6._0x1b39ff,-_0x38dce6._0x284588,-_0x38dce6._0x2fee51)};}function parseAnthropicResponse(_0x1d813a,_0x316096){const _0x5071b9={_0x25a681:0x1a3,_0x43ffbf:0x389,_0x3898ee:0x2b0,_0x129a0d:0x1bf,_0x2a2ea1:0x1bf,_0x519ab5:0xeb,_0x13d5e8:0x37,_0x418c8a:0x25,_0x2d8d1b:0x72,_0x148bef:0x387,_0x21ebf3:0x33c,_0x40baaf:0x75,_0x46c831:0x22e,_0x2ef32c:0x312,_0x131bf7:0x396,_0x1079b6:0x25a,_0x314a4f:0x416,_0x5c9331:0x324,_0x31195c:0x1a9,_0xe93383:0xb9,_0x339190:0xd1,_0x1013d4:0x413,_0x514353:0x2e1,_0x1507f0:0x1fb,_0x4760cd:0x2e0,_0x583901:0x185,_0x441341:0x176,_0x343036:0x18c,_0x1819b7:0x145,_0x1eee6d:0x24c,_0x56733a:0x156,_0x4bb687:0x31c,_0x5587eb:0x38a,_0x161de9:0x3c0,_0x2de797:0x25d,_0x495348:0x33c,_0x440602:0x8a,_0x62ebe:0x393,_0x4c50ef:0x1f1,_0x3899b5:0x2bd,_0x361d3a:0x25b,_0x19c03f:0x33b,_0x445d5f:0x4f,_0xbe840c:0x26,_0x1cc065:0x4f,_0x59ba15:0x22f,_0x23d230:0x314,_0x5e923c:0x89,_0x2d2bff:0x4c,_0x146995:0x137,_0x2d856c:0x107,_0x45f3a7:0x203,_0x4fafb1:0x255,_0x274afd:0x15b,_0x1c8872:0x239,_0x2f3295:0x266,_0x5e9ff1:0xdb,_0x383923:0xb1,_0x4846b2:0x1c,_0x326944:0x39,_0x57f083:0x63,_0x1fd2f3:0x158,_0xe830e9:0x105,_0x244655:0x4a,_0x2f8b55:0x158,_0xa80f4c:0x1f6,_0x2c4d20:0x33e,_0x58c4f9:0x243,_0x54a831:0x3fe,_0x12917f:0x17b,_0x1ab8c8:0x328,_0x542a17:0x29d,_0x41ef71:0x47a,_0x39bd3c:0x511,_0x17ced3:0x4eb,_0x21be06:0x416,_0xff9baf:0x104,_0x4f034f:0x1c,_0x19b308:0x286,_0x2db57c:0x1d9,_0x35864b:0x1a8,_0x196abb:0x47b,_0x22c8ca:0x2de,_0x55fb3d:0xc8,_0x319032:0x110,_0xd8350e:0x1e0,_0x2580b3:0x195},_0x236398={_0x1fa30b:0x4db},_0x2f72ce=[],_0x2a5559=_0x1d813a[_0x2eda6d(_0x5071b9._0x25a681,_0x5071b9._0x43ffbf,0x1f1,_0x5071b9._0x3898ee)]??[];function _0xe0f0be(_0x14bf0f,_0x13e93b,_0x2ad164,_0x47eee1){return _0x101ac3(_0x14bf0f-0x21,_0x13e93b-0xa0,_0x14bf0f,_0x47eee1- -_0x236398._0x1fa30b);}let _0x568cc7=![];function _0x2eda6d(_0x1af5af,_0x90f5c5,_0x3cc79,_0x5f1691){return _0x101ac3(_0x1af5af-0x147,_0x90f5c5-0x1e6,_0x3cc79,_0x5f1691- -0x2a2);}for(const _0x1dcb48 of _0x2a5559){if(_0x1dcb48[_0xe0f0be(0xfc,_0x5071b9._0x129a0d,_0x5071b9._0x2a2ea1,_0x5071b9._0x519ab5)]===_0xe0f0be(_0x5071b9._0x13d5e8,-_0x5071b9._0x418c8a,-0x1,_0x5071b9._0x2d8d1b)){_0x568cc7=!![];isUserVisibleThinking(_0x316096)&&_0x2f72ce[_0x2eda6d(0x2e0,0x23f,_0x5071b9._0x148bef,_0x5071b9._0x21ebf3)]({'type':_0xe0f0be(0x149,_0x5071b9._0x40baaf,_0x5071b9._0x46c831,0x14d),'thinking':_0x1dcb48[_0x2eda6d(_0x5071b9._0x2ef32c,0x23e,_0x5071b9._0x131bf7,0x2ab)],'signature':_0x1dcb48['signature']});continue;}if(_0x1dcb48[_0x2eda6d(0x293,_0x5071b9._0x1079b6,_0x5071b9._0x314a4f,_0x5071b9._0x5c9331)]===_0xe0f0be(_0x5071b9._0x31195c,0x5c,_0x5071b9._0xe93383,_0x5071b9._0x339190)){_0x568cc7=!![];isUserVisibleThinking(_0x316096)&&_0x2f72ce[_0x2eda6d(_0x5071b9._0x1013d4,0x433,_0x5071b9._0x514353,0x33c)]({'type':_0xe0f0be(_0x5071b9._0x1507f0,_0x5071b9._0x4760cd,_0x5071b9._0x583901,0x1e0),'data':_0x1dcb48[_0xe0f0be(_0x5071b9._0x441341,_0x5071b9._0x343036,0x185,0xee)]});continue;}if(_0x1dcb48[_0xe0f0be(0x6f,0x17,_0x5071b9._0x1819b7,0xeb)]==='text'){_0x1dcb48[_0xe0f0be(0x182,0xc5,_0x5071b9._0x1eee6d,_0x5071b9._0x56733a)][_0x2eda6d(0x294,0x2b7,_0x5071b9._0x4bb687,_0x5071b9._0x5587eb)]>0x0&&_0x2f72ce[_0xe0f0be(0x1c4,0x186,0x23,0x103)](structuredClone(_0x1dcb48));continue;}_0x2f72ce[_0x2eda6d(0x3f1,_0x5071b9._0x161de9,_0x5071b9._0x2de797,_0x5071b9._0x495348)](structuredClone(_0x1dcb48));}return{'id':_0x1d813a['id']??'msg-'+Date[_0xe0f0be(-0x38,-_0x5071b9._0x440602,0x38,0x21)](),'content':_0x2f72ce,'stopReason':_0x2f72ce['some'](_0x1175b7=>_0x1175b7[_0x2eda6d(0x2c9,0x378,0x39f,0x324)]==='tool_use')?_0x2eda6d(_0x5071b9._0x62ebe,_0x5071b9._0x4c50ef,0x236,_0x5071b9._0x3899b5):_0x1d813a[_0x2eda6d(_0x5071b9._0x361d3a,0x31c,0x40e,_0x5071b9._0x19c03f)]==='tool_use'?_0xe0f0be(-_0x5071b9._0x445d5f,_0x5071b9._0xbe840c,-_0x5071b9._0x1cc065,0x84):_0x2eda6d(_0x5071b9._0x59ba15,_0x5071b9._0x23d230,0x254,0x23d),'usage':{'inputTokens':(_0x1d813a[_0xe0f0be(0x5d,-_0x5071b9._0x40baaf,_0x5071b9._0x5e923c,0x1c)]?.[_0xe0f0be(0x1e9,_0x5071b9._0x2d2bff,_0x5071b9._0x146995,_0x5071b9._0x2d856c)]??0x0)+(_0x1d813a[_0x2eda6d(_0x5071b9._0x45f3a7,0x2f9,0x33b,_0x5071b9._0x4fafb1)]?.[_0xe0f0be(_0x5071b9._0x274afd,_0x5071b9._0x1c8872,_0x5071b9._0x2f3295,0x1a8)]??0x0)+(_0x1d813a[_0xe0f0be(-_0x5071b9._0x5e9ff1,0x70,_0x5071b9._0x383923,_0x5071b9._0x4846b2)]?.[_0xe0f0be(_0x5071b9._0x326944,-_0x5071b9._0x57f083,0xec,0x42)]??0x0),'outputTokens':_0x1d813a['usage']?.[_0xe0f0be(0x19a,_0x5071b9._0x1fd2f3,0x13d,_0x5071b9._0xe830e9)]??0x0,..._0x1d813a[_0xe0f0be(0x11b,_0x5071b9._0x244655,0xc1,0x1c)]?.[_0x2eda6d(_0x5071b9._0x2f8b55,_0x5071b9._0xa80f4c,_0x5071b9._0x2c4d20,_0x5071b9._0x58c4f9)]?.[_0x2eda6d(0x40f,0x402,_0x5071b9._0x54a831,_0x5071b9._0x314a4f)]!==void 0x0?{'reasoningTokens':_0x1d813a['usage'][_0x2eda6d(_0x5071b9._0x12917f,_0x5071b9._0x1ab8c8,_0x5071b9._0x542a17,0x243)][_0x2eda6d(_0x5071b9._0x41ef71,_0x5071b9._0x39bd3c,_0x5071b9._0x17ced3,_0x5071b9._0x21be06)]}:{},..._0x1d813a[_0xe0f0be(_0x5071b9._0xff9baf,0x2f,0x19,_0x5071b9._0x4f034f)]?.[_0xe0f0be(_0x5071b9._0x19b308,0x1a1,_0x5071b9._0x2db57c,_0x5071b9._0x35864b)]!==void 0x0?{'cacheReadInputTokens':_0x1d813a['usage'][_0x2eda6d(0x4c2,_0x5071b9._0x196abb,0x456,0x3e1)]}:{},..._0x1d813a['usage']?.[_0x2eda6d(_0x5071b9._0x22c8ca,0x2f4,0x2df,0x27b)]!==void 0x0?{'cacheCreationInputTokens':_0x1d813a[_0xe0f0be(_0x5071b9._0x55fb3d,_0x5071b9._0x319032,-0x6c,_0x5071b9._0x4f034f)][_0x2eda6d(_0x5071b9._0xd8350e,0x296,_0x5071b9._0x2580b3,0x27b)]}:{}},..._0x568cc7?{'providerState':{'anthropicAssistantContent':structuredClone(_0x2a5559)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x101ac3(0x529,0x5ce,0x707,0x607)]=new Map();[_0x22bdb8(0xd,0x60,0x98,0x134)];[_0x101ac3(0x66b,0x57a,0x66e,0x593)];[_0x101ac3(0x783,0x78e,0x6a8,0x68f)]=0x0;['messageId']=_0x22bdb8(0x11b,0x92,0x4e,0xee)+Date[_0x22bdb8(0x14,0x5c,-0x97,0x14c)]();[_0x101ac3(0x65a,0x5c0,0x699,0x5a0)]=0x0;['request'];[_0x101ac3(0x52e,0x5fb,0x520,0x579)]=_0x22bdb8(0x53,0x3f,0x116,-0x30);[_0x22bdb8(0xea,0x19e,0x140,0xcd)];constructor(_0x900b95){this['request']=_0x900b95;}[_0x22bdb8(0x26d,0x21c,0x1f8,0x2fb)](_0x253fcc){const _0x549b5b={_0x569e34:0x1a4,_0x428832:0x120,_0x2b9cea:0x3a6,_0x3b9581:0x491,_0x16e556:0x20f,_0x1860c5:0x2c4,_0x339c73:0x2b6,_0x382f36:0x2a4,_0x38ca38:0x2eb,_0x5a190b:0x2b4,_0x3b36e4:0x26e,_0x3f78cc:0x2a2,_0x118fbc:0x279,_0x2cd530:0x27e,_0x37a35c:0x336,_0x35d51e:0x285,_0x3049ea:0x1b7,_0xc33b45:0x200,_0x458830:0x2b9,_0x3c1adc:0x3a9,_0xbccf73:0x424,_0x32f6e5:0x388,_0x12e4ed:0x1e0,_0x26257b:0x2e9,_0x4a080f:0x26a,_0x4a4879:0x341,_0x39dc1a:0x27d,_0x166212:0x2b1,_0x5e2b3e:0x1e0,_0x27a3c5:0x219,_0x474915:0x272,_0x441b11:0x30b,_0x56c80e:0x2dc,_0x21a63a:0x160,_0x4c82cd:0x3b9,_0x4dabb1:0x417,_0x223e2d:0x12e,_0x56ae4c:0x206,_0x1a40ad:0xe3,_0x14a77e:0xa0,_0xee37fb:0x132,_0x3ba0db:0x171,_0xafc385:0x2b8,_0x1acfe0:0x1aa,_0x2e20cc:0x206,_0xbf51c1:0x252,_0x1a5638:0x3ad,_0x3ec86a:0x356,_0x36b76a:0x2f9,_0x2277a4:0x194,_0x5c4f30:0x224,_0x25b6a1:0x2f0,_0x482aec:0x370,_0x5cf89c:0x1e6,_0x4ce5f8:0xe6,_0x4814a4:0x17c,_0x3a4fd3:0x1d2,_0x4c4333:0x1e8,_0x5a8a3e:0x262,_0x4dd653:0x310,_0x4b9aca:0x1e5,_0x43149a:0x65,_0x2e2123:0x2a9,_0x4fab3c:0x236,_0x296b86:0x213,_0x2ac25c:0x6f,_0x463c39:0x25d,_0x4a711b:0x22f,_0x5256c0:0x20a,_0x75c029:0x15a,_0x7ffe57:0x311,_0x57e7ee:0xef,_0x1b1c21:0x1b5,_0x498565:0x291,_0x36b87e:0xd6,_0x4ecaff:0x31a,_0x379a5e:0x26a,_0x2fc0ae:0x190,_0x38899a:0x24d,_0x53017d:0x1d3,_0x56031d:0x2af,_0x4a2ea0:0x2db,_0x4e5c78:0x311,_0x5dd861:0x22a,_0x5a577b:0x209,_0x50a975:0x1a9,_0x4267c3:0x1c8,_0x26dbdd:0x1ea,_0xb392f4:0x2b3,_0xddbdf2:0x16b,_0x290f69:0x251,_0x78e298:0x2d6,_0x198e38:0xd3,_0x4d366e:0x1c5,_0x471f4c:0x28f,_0x4abc26:0x28c,_0x27fa11:0x211,_0x29e847:0x1b3,_0x4bdefc:0x2e7,_0xbaedfa:0x41b,_0x534409:0x376,_0x5e8d07:0x208,_0x43a2d1:0x294,_0x2c9509:0x3ae,_0x3f7b8a:0x312,_0x1e9c77:0x19c,_0x581b4d:0x1ff,_0x4c3d5c:0x245,_0x4de351:0x211,_0x4634cb:0x2e5,_0x142425:0xdd,_0x2e50a2:0xf0,_0x125ef8:0x1a9,_0x331a14:0x33c,_0x2f9558:0x31a,_0x2916c7:0x34c,_0x59683e:0x339,_0x1698c0:0x1dd,_0x1070f0:0x3b6,_0x341d08:0x240,_0x10d1db:0x2b0,_0x5aa6ef:0x3bc,_0x2dc078:0x33f,_0x5637e4:0x286,_0x42cba5:0x3e1,_0x2e8771:0x339,_0x353b00:0x1cb,_0x4e23ae:0x1d6,_0x10d1b5:0x20a,_0x38d2ce:0x151,_0x3307e8:0x305,_0xfd5753:0x14c,_0x3b451c:0x2cd,_0x20bca6:0x12a,_0x2123b9:0x196,_0x3e32b1:0x154,_0x1a96ff:0x203,_0x605b46:0x2d5,_0x2c8829:0x1fb,_0x4c0660:0x31d,_0x1f538d:0x28c,_0x1ec21b:0x26b,_0x584241:0x178,_0x4c749e:0x1f5,_0x2648a3:0x249,_0x530439:0x15b,_0x4f8898:0x22d,_0x3f2d98:0x2b4,_0xfb884e:0xa7,_0x448d42:0x228,_0x371677:0x21e,_0x22a3dc:0x2dc,_0x10b4ce:0x1b8,_0x35b6d4:0x236,_0x46d897:0x212,_0x2fc2e9:0x219,_0x5cdd74:0xce,_0x1877ee:0x275,_0x35be74:0x1d5,_0x1f9cce:0x349,_0x1bf9d0:0x2dd,_0x4c5de9:0x2a6,_0xd9bc59:0x20a,_0x4962fd:0x2fd,_0x1e7753:0x241,_0x3f3db5:0x15e,_0x4f0480:0x161,_0x43f764:0x2e3,_0x2920d9:0x28c,_0x53d8f2:0x2c2,_0x53da2c:0x290,_0x22986a:0x1fd,_0x5264cd:0x2e7,_0xd88ce8:0x1e0,_0x3657a4:0x378,_0x3a1ff6:0x317,_0x1b9369:0x22d,_0x330498:0x30b,_0x39ed47:0x225,_0xf4b701:0x289,_0x1a0eb3:0x33f,_0x4cde7d:0x259,_0x954b4d:0x254,_0x5acef3:0x20b,_0x424176:0x9d,_0x5aeffa:0x259,_0x1a24da:0x16d,_0x244cf5:0x80,_0x1fe0df:0x201,_0xd9595e:0x2c9,_0x3bb433:0x2c6,_0x5b930c:0x1e4,_0x20300b:0x1a6,_0x2055bd:0x393,_0x502779:0x3c5,_0x33f4cb:0x499,_0x3a31f6:0x355,_0x5e41c5:0x2b7,_0x26ee99:0x3b4},_0x5e23fa={_0x477a91:0x128,_0x576758:0x1a7},_0x300b36={_0x41e627:0x1e2};function _0x4a5704(_0x1546ef,_0x331636,_0x2b74e2,_0x2fdc81){return _0x22bdb8(_0x1546ef-_0x300b36._0x41e627,_0x331636-0x189,_0x2fdc81,_0x2fdc81-0x182);}const _0x13c72b=_0x253fcc[_0x42cc6f(0x21f,0x221,_0x549b5b._0x569e34,0x130)]('\x0a'),_0x237975=_0x13c72b['find'](_0x2208e0=>_0x2208e0[_0x42cc6f(0x3f2,0x288,0x31c,0x2a2)]('event:'))?.[_0x42cc6f(_0x549b5b._0x428832,0x126,0x1e0,0x23a)](0x6)[_0x4a5704(0x2fb,_0x549b5b._0x2b9cea,_0x549b5b._0x3b9581,0x4aa)](),_0x3dc381=_0x13c72b[_0x42cc6f(0x313,0x172,_0x549b5b._0x16e556,_0x549b5b._0x1860c5)](_0x38677e=>_0x38677e['startsWith'](_0x42cc6f(0x12b,0xf9,0x15f,0x1c2)))['map'](_0xf7fd07=>_0xf7fd07['slice'](0x5)['trimStart']())[_0x42cc6f(0x237,0x262,_0x549b5b._0x339c73,0x38a)]('\x0a')[_0x4a5704(_0x549b5b._0x382f36,0x3a6,_0x549b5b._0x38ca38,0x48c)]();if(_0x3dc381[_0x42cc6f(0x2e2,0x328,_0x549b5b._0x5a190b,0x1f1)]===0x0||_0x3dc381===_0x4a5704(_0x549b5b._0x3b36e4,0x354,_0x549b5b._0x3f78cc,0x267))return[];function _0x42cc6f(_0x3d71a3,_0x10ce1d,_0x159912,_0x1c5873){return _0x22bdb8(_0x3d71a3-0x54,_0x159912-_0x5e23fa._0x477a91,_0x3d71a3,_0x1c5873-_0x5e23fa._0x576758);}const _0x2db436=JSON[_0x42cc6f(0x273,0x159,0x25c,0x151)](_0x3dc381);switch(_0x237975){case _0x42cc6f(_0x549b5b._0x118fbc,0x3ba,0x2b8,_0x549b5b._0x2cd530):{const _0x4e1159=_0x2db436[_0x42cc6f(0x37c,_0x549b5b._0x37a35c,_0x549b5b._0x35d51e,_0x549b5b._0x3049ea)];this[_0x42cc6f(0x1a0,0x12c,_0x549b5b._0xc33b45,_0x549b5b._0x458830)]=_0x4e1159?.['id']??this[_0x42cc6f(0x113,0x18a,0x200,0x28a)],this[_0x42cc6f(_0x549b5b._0x3c1adc,_0x549b5b._0xbccf73,0x317,_0x549b5b._0x32f6e5)]=_0x4e1159?.[_0x4a5704(0x276,_0x549b5b._0x12e4ed,_0x549b5b._0x26257b,0x202)]?.[_0x42cc6f(0x32e,0x233,0x26a,_0x549b5b._0x4a080f)]??this[_0x4a5704(_0x549b5b._0x4a4879,0x378,_0x549b5b._0x39dc1a,_0x549b5b._0x166212)];_0x4e1159?.[_0x4a5704(0x298,_0x549b5b._0x5e2b3e,_0x549b5b._0x27a3c5,_0x549b5b._0x474915)]?.[_0x42cc6f(0x201,0x3f7,_0x549b5b._0x441b11,0x38e)]!==void 0x0&&(this[_0x42cc6f(_0x549b5b._0x56c80e,0x2c9,0x21b,_0x549b5b._0x21a63a)]=_0x4e1159['usage'][_0x42cc6f(0x2c7,_0x549b5b._0x4c82cd,_0x549b5b._0x441b11,_0x549b5b._0x4dabb1)]);_0x4e1159?.[_0x4a5704(0x165,0x1e0,0x158,0x2b5)]?.[_0x4a5704(_0x549b5b._0x223e2d,_0x549b5b._0x56ae4c,0x18e,0x1af)]!==void 0x0&&(this[_0x42cc6f(_0x549b5b._0x1a40ad,_0x549b5b._0x14a77e,0x188,_0x549b5b._0xee37fb)]=_0x4e1159[_0x4a5704(_0x549b5b._0x3ba0db,_0x549b5b._0x12e4ed,_0x549b5b._0xafc385,_0x549b5b._0x1acfe0)][_0x4a5704(0x2e3,_0x549b5b._0x2e20cc,_0x549b5b._0xbf51c1,0x116)]);break;}case'content_block_start':{const _0x41a9bd=typeof _0x2db436[_0x42cc6f(0x32e,0x24d,0x2f5,_0x549b5b._0x1a5638)]==='number'?_0x2db436[_0x4a5704(0x3b6,_0x549b5b._0x3ec86a,0x45d,0x454)]:0x0,_0x118667=_0x2db436[_0x4a5704(0x242,0x23e,0x171,0x240)];if(_0x118667?.['type']===_0x4a5704(_0x549b5b._0x36b76a,0x248,0x13b,_0x549b5b._0x2277a4)&&_0x118667['id']&&_0x118667['name'])return this[_0x4a5704(_0x549b5b._0x5c4f30,_0x549b5b._0x25b6a1,_0x549b5b._0x482aec,_0x549b5b._0x5cf89c)]['set'](_0x41a9bd,{'id':_0x118667['id'],'index':_0x41a9bd,'inputJson':JSON['stringify'](_0x118667[_0x42cc6f(0x165,_0x549b5b._0x4ce5f8,0x144,_0x549b5b._0x4814a4)]??{}),'kind':'tool_use','name':_0x118667[_0x42cc6f(0x147,0x206,0x136,_0x549b5b._0x3a4fd3)]}),[{'type':_0x42cc6f(0x14d,0x268,_0x549b5b._0x4c4333,0x173),'id':_0x118667['id'],'index':_0x41a9bd,'name':_0x118667[_0x4a5704(0xb8,0x197,_0x549b5b._0x5a8a3e,0x264)]}];if(_0x118667?.['type']===_0x4a5704(_0x549b5b._0x4dd653,0x236,0x2b0,0x22f)){this[_0x4a5704(_0x549b5b._0x4b9aca,0x2f0,0x22b,0x36e)][_0x42cc6f(0xd8,_0x549b5b._0x43149a,0x165,0x1c3)](_0x41a9bd,{'index':_0x41a9bd,'kind':_0x4a5704(_0x549b5b._0x2e2123,_0x549b5b._0x4fab3c,0x210,_0x549b5b._0x296b86),'signature':typeof _0x118667['signature']===_0x42cc6f(_0x549b5b._0x2ac25c,_0x549b5b._0x463c39,0x154,_0x549b5b._0x4a711b)?_0x118667[_0x42cc6f(_0x549b5b._0x2277a4,_0x549b5b._0x4dd653,_0x549b5b._0x5256c0,_0x549b5b._0x75c029)]:'','thinking':typeof _0x118667[_0x42cc6f(0x2c1,0x32f,_0x549b5b._0x458830,_0x549b5b._0x7ffe57)]===_0x4a5704(_0x549b5b._0x57e7ee,_0x549b5b._0x1b1c21,_0x549b5b._0x498565,_0x549b5b._0x36b87e)?_0x118667[_0x4a5704(0x280,_0x549b5b._0x4ecaff,0x23a,_0x549b5b._0x379a5e)]:typeof _0x118667[_0x42cc6f(0x1b0,_0x549b5b._0x2fc0ae,0x1d5,0x15e)]==='string'?String(_0x118667[_0x4a5704(0x1ee,0x236,0x305,_0x549b5b._0x38899a)]):''});break;}if(_0x118667?.[_0x4a5704(_0x549b5b._0x53017d,_0x549b5b._0x56031d,_0x549b5b._0x4a2ea0,_0x549b5b._0x4e5c78)]==='redacted_thinking'){this[_0x4a5704(_0x549b5b._0x5dd861,0x2f0,0x37f,_0x549b5b._0x5a577b)][_0x42cc6f(_0x549b5b._0x50a975,_0x549b5b._0x4267c3,0x165,_0x549b5b._0x26dbdd)](_0x41a9bd,{'index':_0x41a9bd,'kind':_0x4a5704(0x23b,0x295,_0x549b5b._0xb392f4,0x254),'data':typeof _0x118667[_0x42cc6f(_0x549b5b._0xddbdf2,0x342,_0x549b5b._0x290f69,_0x549b5b._0x78e298)]===_0x4a5704(0x1cb,_0x549b5b._0x1b1c21,0x174,_0x549b5b._0x198e38)?String(_0x118667[_0x42cc6f(0x204,_0x549b5b._0x4d366e,_0x549b5b._0x290f69,0x284)]):''});break;}this[_0x42cc6f(0x23e,_0x549b5b._0x4dd653,_0x549b5b._0x471f4c,_0x549b5b._0x4abc26)][_0x4a5704(0x211,0x1c6,0xf5,0x2b7)](_0x41a9bd,{'index':_0x41a9bd,'kind':_0x42cc6f(_0x549b5b._0x27fa11,0x28f,0x2b9,0x32d),'text':_0x118667?.[_0x42cc6f(0x34b,_0x549b5b._0x29e847,0x2b9,0x235)]??''});break;}case _0x4a5704(0x217,0x310,_0x549b5b._0x4bdefc,_0x549b5b._0xbaedfa):{const _0x544b46=typeof _0x2db436[_0x4a5704(0x373,0x356,0x44c,_0x549b5b._0x534409)]==='number'?_0x2db436['index']:0x0,_0x377bd8=this[_0x4a5704(0x228,_0x549b5b._0x25b6a1,_0x549b5b._0x5e8d07,_0x549b5b._0x43a2d1)][_0x42cc6f(0x3e2,_0x549b5b._0x2c9509,_0x549b5b._0x3f7b8a,0x293)](_0x544b46),_0x1dc339=_0x2db436['delta'];if(!_0x377bd8||!_0x1dc339?.[_0x42cc6f(_0x549b5b._0x1e9c77,_0x549b5b._0x581b4d,0x24e,0x24a)])break;if(_0x1dc339[_0x4a5704(_0x549b5b._0x4c3d5c,0x2af,_0x549b5b._0x4de351,0x250)]===_0x4a5704(0x30f,0x34d,0x3ea,_0x549b5b._0x4634cb)&&_0x377bd8[_0x42cc6f(_0x549b5b._0x142425,_0x549b5b._0x2e50a2,_0x549b5b._0x125ef8,0xee)]===_0x4a5704(_0x549b5b._0x331a14,_0x549b5b._0x2f9558,_0x549b5b._0x2916c7,_0x549b5b._0x59683e)&&typeof _0x1dc339[_0x42cc6f(_0x549b5b._0x1698c0,_0x549b5b._0x1070f0,_0x549b5b._0x458830,0x23a)]===_0x42cc6f(0x1f5,_0x549b5b._0x341d08,0x154,0x62))return _0x377bd8['text']+=_0x1dc339[_0x42cc6f(_0x549b5b._0x10d1db,_0x549b5b._0x5aa6ef,0x2b9,_0x549b5b._0x2dc078)],[{'type':_0x42cc6f(_0x549b5b._0x5637e4,0x2ce,0x1ce,0x11d),'index':_0x544b46,'text':_0x1dc339[_0x4a5704(_0x549b5b._0x42cba5,_0x549b5b._0x4ecaff,0x212,0x302)]}];if(_0x1dc339[_0x42cc6f(_0x549b5b._0x2e8771,_0x549b5b._0x353b00,0x24e,_0x549b5b._0x4e23ae)]==='input_json_delta'&&_0x377bd8[_0x4a5704(0x2e3,_0x549b5b._0x10d1b5,0x19c,_0x549b5b._0x38d2ce)]===_0x4a5704(_0x549b5b._0x3307e8,0x248,0x21a,0x34e)&&typeof _0x1dc339[_0x42cc6f(_0x549b5b._0xfd5753,0x163,0x236,_0x549b5b._0x3b451c)]===_0x42cc6f(_0x549b5b._0x20bca6,_0x549b5b._0x2123b9,_0x549b5b._0x3e32b1,0x176))return _0x377bd8[_0x4a5704(_0x549b5b._0x1a96ff,_0x549b5b._0x605b46,_0x549b5b._0x2c8829,0x1e8)]==='{}'&&(_0x377bd8[_0x42cc6f(_0x549b5b._0x4c0660,0x315,0x274,_0x549b5b._0x1f538d)]=''),_0x377bd8[_0x4a5704(_0x549b5b._0x1ec21b,_0x549b5b._0x605b46,0x2f8,0x299)]+=_0x1dc339[_0x42cc6f(_0x549b5b._0x584241,_0x549b5b._0x4c749e,0x236,0x2fe)],[{'type':_0x4a5704(0x1ca,_0x549b5b._0x2648a3,0x2a5,0x269),'id':_0x377bd8['id'],'index':_0x544b46,'inputDelta':_0x1dc339[_0x42cc6f(_0x549b5b._0x530439,_0x549b5b._0x4f8898,_0x549b5b._0x4fab3c,_0x549b5b._0x3f2d98)]}];if(_0x1dc339['type']==='thinking_delta'&&_0x377bd8[_0x42cc6f(0x19b,_0x549b5b._0xfb884e,0x1a9,_0x549b5b._0x498565)]==='thinking'){const _0x442910=typeof _0x1dc339[_0x42cc6f(_0x549b5b._0x448d42,0x1d3,0x1d5,_0x549b5b._0x371677)]==='string'?String(_0x1dc339['thinking']):'';if(_0x442910[_0x42cc6f(_0x549b5b._0x22a3dc,_0x549b5b._0x10b4ce,0x2b4,_0x549b5b._0x5637e4)]>0x0){_0x377bd8[_0x4a5704(0x2cf,_0x549b5b._0x35b6d4,_0x549b5b._0x46d897,_0x549b5b._0x2fc2e9)]+=_0x442910;if(isUserVisibleThinking(this['request']))return[{'type':_0x4a5704(0x279,0x192,0x15a,_0x549b5b._0x5cdd74),'index':_0x544b46,'thinking':_0x442910}];}}if(_0x1dc339['type']===_0x42cc6f(0x274,_0x549b5b._0x1877ee,0x1c9,0x1d2)&&_0x377bd8['kind']===_0x42cc6f(0x2cc,0x1ab,_0x549b5b._0x35be74,0x209)){const _0x59b49b=typeof _0x1dc339[_0x4a5704(0x312,0x26b,_0x549b5b._0x1f9cce,0x263)]==='string'?String(_0x1dc339[_0x42cc6f(_0x549b5b._0x1bf9d0,_0x549b5b._0x4c5de9,_0x549b5b._0xd9bc59,_0x549b5b._0x4962fd)]):'';if(_0x59b49b['length']>0x0){_0x377bd8[_0x4a5704(_0x549b5b._0x1e7753,0x26b,_0x549b5b._0x3f3db5,0x20f)]=_0x59b49b;if(isUserVisibleThinking(this[_0x4a5704(_0x549b5b._0x4f0480,_0x549b5b._0x448d42,_0x549b5b._0x498565,_0x549b5b._0x43f764)]))return[{'type':'anthropic_signature_delta','index':_0x544b46,'signature':_0x59b49b}];}}break;}case _0x42cc6f(0x26f,_0x549b5b._0x2920d9,_0x549b5b._0x53d8f2,_0x549b5b._0x78e298):{const _0x1e758e=_0x2db436[_0x42cc6f(0x13b,_0x549b5b._0x53da2c,_0x549b5b._0x22986a,0x1cd)],_0x4823b2=_0x2db436[_0x4a5704(_0x549b5b._0x5264cd,_0x549b5b._0xd88ce8,_0x549b5b._0x5c4f30,0x16f)];this[_0x4a5704(0x408,_0x549b5b._0x3657a4,0x2e9,0x479)]=_0x4823b2?.['input_tokens']??this[_0x42cc6f(0x2e8,0x33b,_0x549b5b._0x3a1ff6,0x38a)];_0x4823b2?.[_0x42cc6f(0x35d,0x3c5,_0x549b5b._0x441b11,0x20d)]!==void 0x0&&(this['cacheReadInputTokens']=_0x4823b2[_0x42cc6f(_0x549b5b._0x1b9369,0x277,_0x549b5b._0x330498,_0x549b5b._0x39ed47)]);_0x4823b2?.['cache_creation_input_tokens']!==void 0x0&&(this['cacheCreationInputTokens']=_0x4823b2['cache_creation_input_tokens']);this[_0x4a5704(0x1f4,_0x549b5b._0xf4b701,0x286,_0x549b5b._0x1a0eb3)]=_0x4823b2?.[_0x4a5704(0x226,0x2c9,0x224,_0x549b5b._0x4cde7d)]??this[_0x42cc6f(_0x549b5b._0x954b4d,0x332,_0x549b5b._0x448d42,_0x549b5b._0x5acef3)];_0x4823b2?.[_0x42cc6f(_0x549b5b._0x424176,_0x549b5b._0x5aeffa,_0x549b5b._0x1a24da,0x17c)]?.['thinking_tokens']!==void 0x0&&(this[_0x4a5704(0x397,0x327,0x26f,0x258)]=_0x4823b2[_0x42cc6f(_0x549b5b._0xfd5753,_0x549b5b._0x244cf5,0x16d,0x132)][_0x42cc6f(0x3b0,0x399,0x340,0x2c8)]);this[_0x42cc6f(_0x549b5b._0x35d51e,0x116,_0x549b5b._0x1fe0df,_0x549b5b._0xd9595e)]=_0x1e758e?.[_0x4a5704(0x22e,_0x549b5b._0x3bb433,0x215,_0x549b5b._0x78e298)]===_0x42cc6f(_0x549b5b._0x5b930c,0x10d,0x1e7,_0x549b5b._0x20300b)?'tool_use':'end_turn';break;}case _0x4a5704(_0x549b5b._0x78e298,_0x549b5b._0x2055bd,_0x549b5b._0x502779,0x2d5):{const _0x10f754=_0x2db436[_0x4a5704(_0x549b5b._0x33f4cb,_0x549b5b._0x2055bd,0x45d,_0x549b5b._0x3a31f6)];throw new ProviderStreamEventError(_0x10f754?.[_0x4a5704(0x301,0x2e6,_0x549b5b._0x5e41c5,_0x549b5b._0x26ee99)]??'Anthropic\x20stream\x20failed',{'code':_0x10f754?.['type'],'retryable':!![]});}}return[];}[_0x101ac3(0x573,0x4db,0x54c,0x4b3)](){const _0x3f5e7b={_0x199bf6:0x4c0,_0x4e893d:0x5c3,_0x1f1049:0x4fa,_0x32f2ee:0x440,_0x5a7870:0x15c,_0x221b8f:0x8,_0x5e02de:0x5a3,_0x3dfd78:0x5e6,_0x304093:0x4eb,_0x5a7048:0x550,_0x2962c3:0x4a3,_0x5b128a:0x4a1,_0x15c85a:0x3b,_0xae41e7:0x3f,_0x2acf1e:0x35,_0x29fd01:0x10b,_0x399018:0x12a,_0x4a47b5:0xfb,_0x933f10:0x14b,_0x572bb5:0x1f6,_0x352d78:0x1d1,_0xa124ce:0xeb,_0x44e39a:0x4bf,_0x52513d:0x3b4,_0x1e5169:0x576,_0x9ef5b4:0x43f,_0x52adec:0x468,_0x511b71:0xc,_0x52fbf2:0xa0,_0x4c8ad6:0x8f,_0x5411a1:0x2e,_0x13d715:0xb5,_0x423650:0xb9,_0x33ae40:0x53b,_0x4e3fc6:0x4bd,_0x14b91c:0x4a3,_0x46294e:0x5c7,_0x535aaa:0x96,_0x273467:0x2e,_0x41e72b:0x420,_0x5c7f8a:0x520,_0x1c1a01:0x44b,_0x7d7591:0xa2,_0x15707f:0x20,_0x40f1f4:0x4c,_0x552726:0x55e,_0x3a13a0:0x52a,_0x1ed801:0x57e,_0x5cc068:0x602,_0x3b07e0:0x5a7,_0x36d43d:0xce,_0x1235d4:0x1a7,_0x54b825:0xd4,_0x31d388:0x18a,_0x337808:0x48a,_0x5035e1:0x4d2,_0x4b3da3:0x100,_0x22fdf0:0x1ab,_0x467aac:0xec,_0x120673:0x4d7,_0x1a7cee:0x532,_0x1e8213:0x1a1},_0x479aff={_0x5e4fc6:0x90,_0x278312:0x166,_0x4acef0:0x8e},_0x1fce5a={_0x29902b:0x4f3};function _0x2509db(_0x4e398d,_0x44eeb5,_0x57094e,_0x3d174b){return _0x101ac3(_0x4e398d-0x24,_0x44eeb5-0x153,_0x4e398d,_0x57094e- -_0x1fce5a._0x29902b);}const _0x3c675a=Array[_0x161db6(_0x3f5e7b._0x199bf6,_0x3f5e7b._0x4e893d,_0x3f5e7b._0x1f1049,_0x3f5e7b._0x32f2ee)](this['blocks'][_0x2509db(-0x76,0xdc,0x89,_0x3f5e7b._0x5a7870)]())['sort']((_0x57f1ae,_0x2d4301)=>_0x57f1ae[_0x2509db(0xc3,0x1e1,0x17a,0x108)]-_0x2d4301['index']);function _0x161db6(_0x2c362b,_0x324009,_0x236712,_0x190e77){return _0x101ac3(_0x2c362b-_0x479aff._0x5e4fc6,_0x324009-_0x479aff._0x278312,_0x190e77,_0x2c362b- -_0x479aff._0x4acef0);}const _0x169d79=[];for(const _0x34f08e of _0x3c675a){if(_0x34f08e[_0x2509db(0x12f,0x12,0x2e,-_0x3f5e7b._0x221b8f)]==='text'){_0x34f08e[_0x161db6(_0x3f5e7b._0x5e02de,_0x3f5e7b._0x3dfd78,0x661,0x653)][_0x161db6(0x59e,0x646,_0x3f5e7b._0x304093,0x616)]>0x0&&_0x169d79[_0x161db6(_0x3f5e7b._0x5a7048,_0x3f5e7b._0x2962c3,_0x3f5e7b._0x5b128a,0x4da)]({'type':_0x2509db(_0x3f5e7b._0x15c85a,_0x3f5e7b._0xae41e7,0x13e,_0x3f5e7b._0x2acf1e),'text':_0x34f08e['text']});continue;}if(_0x34f08e[_0x2509db(_0x3f5e7b._0x29fd01,_0x3f5e7b._0x399018,0x2e,_0x3f5e7b._0x4a47b5)]===_0x2509db(-0x12,0x134,0x5a,_0x3f5e7b._0x933f10)){_0x169d79[_0x2509db(_0x3f5e7b._0x572bb5,_0x3f5e7b._0x352d78,_0x3f5e7b._0xa124ce,0x50)]({'type':_0x161db6(_0x3f5e7b._0x44e39a,_0x3f5e7b._0x52513d,_0x3f5e7b._0x1e5169,_0x3f5e7b._0x9ef5b4),'thinking':_0x34f08e[_0x161db6(_0x3f5e7b._0x44e39a,_0x3f5e7b._0x52adec,0x3ef,0x4b2)],'signature':_0x34f08e[_0x2509db(_0x3f5e7b._0x511b71,_0x3f5e7b._0x52fbf2,_0x3f5e7b._0x4c8ad6,-0x76)]});continue;}if(_0x34f08e[_0x2509db(-0xac,-0x6e,_0x3f5e7b._0x5411a1,-_0x3f5e7b._0x13d715)]===_0x2509db(0xdf,0x162,_0x3f5e7b._0x423650,0x119)){_0x169d79['push']({'type':'redacted_thinking','data':_0x34f08e[_0x161db6(_0x3f5e7b._0x33ae40,_0x3f5e7b._0x4e3fc6,_0x3f5e7b._0x14b91c,_0x3f5e7b._0x46294e)]});continue;}_0x169d79[_0x2509db(0x79,_0x3f5e7b._0x535aaa,_0x3f5e7b._0xa124ce,_0x3f5e7b._0x273467)]({'type':'tool_use','id':_0x34f08e['id'],'name':_0x34f08e[_0x161db6(_0x3f5e7b._0x41e72b,0x50f,_0x3f5e7b._0x5c7f8a,_0x3f5e7b._0x1c1a01)],'input':parseToolInput(_0x34f08e[_0x2509db(_0x3f5e7b._0x7d7591,_0x3f5e7b._0x15707f,0xf9,_0x3f5e7b._0x40f1f4)]['length']>0x0?_0x34f08e[_0x161db6(_0x3f5e7b._0x552726,_0x3f5e7b._0x3a13a0,0x48b,_0x3f5e7b._0x1ed801)]:'{}')});}return parseAnthropicResponse({'id':this['messageId'],'type':_0x161db6(0x56f,_0x3f5e7b._0x5cc068,0x61e,_0x3f5e7b._0x3b07e0),'role':_0x2509db(_0x3f5e7b._0x36d43d,_0x3f5e7b._0x1235d4,_0x3f5e7b._0x54b825,0xa5),'content':_0x169d79,'stop_reason':this[_0x161db6(0x4eb,0x5c1,0x4d8,0x3e7)],'stop_sequence':null,'usage':{'input_tokens':this[_0x2509db(0x268,0x286,0x19c,_0x3f5e7b._0x31d388)],'output_tokens':this[_0x161db6(0x512,0x552,_0x3f5e7b._0x337808,_0x3f5e7b._0x5035e1)],...this[_0x2509db(_0x3f5e7b._0x4b3da3,_0x3f5e7b._0x22fdf0,0xa0,_0x3f5e7b._0x467aac)]!==void 0x0?{'cache_read_input_tokens':this[_0x161db6(0x505,0x613,_0x3f5e7b._0x120673,0x5f5)]}:{},...this['cacheCreationInputTokens']!==void 0x0?{'cache_creation_input_tokens':this[_0x161db6(0x472,_0x3f5e7b._0x337808,_0x3f5e7b._0x1a7cee,0x39b)]}:{},...this[_0x2509db(_0x3f5e7b._0x1e8213,0x1da,_0x3f5e7b._0x933f10,0xe8)]!==void 0x0?{'output_tokens_details':{'thinking_tokens':this[_0x2509db(0x1f7,0x1e2,_0x3f5e7b._0x933f10,0x69)]}}:{}}},this[_0x2509db(-0xb9,0x13,0x4c,0x6b)]);}};function createAnthropicSurfaces(){const _0x599ecc={_0x254aba:0x1f7,_0x136abc:0x22f,_0x5a7941:0x125},_0x4d8d4b={_0x43d702:0x1f};function _0x2aefb9(_0x3d6518,_0x4af5c2,_0x185501,_0x2f0cff){return _0x22bdb8(_0x3d6518-_0x4d8d4b._0x43d702,_0x2f0cff- -0xaf,_0x185501,_0x2f0cff-0x1c6);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':'http-json','createRequest'(_0x40d9ca){return createAnthropicRequest(_0x40d9ca,![]);},'parseResponse'(_0x3c66bf,_0x4c3b0a){return parseAnthropicResponse(_0x3c66bf,_0x4c3b0a);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x2aefb9(_0x599ecc._0x254aba,_0x599ecc._0x136abc,0x17f,_0x599ecc._0x5a7941),'createRequest'(_0x4eefc2){return createAnthropicRequest(_0x4eefc2,!![]);},'createStreamParser'(_0x3f2336){return new AnthropicMessagesStreamParser(_0x3f2336);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];[_0x101ac3(0x4e1,0x540,0x3e6,0x4c5)];constructor(_0x2a55bd){const _0x4125ea={_0x5933f7:0x49b,_0x247633:0x598,_0x52b30f:0x567},_0x54a236={_0x7b8b24:0xdc,_0x2a9173:0x8c};function _0x607c8a(_0x45bd75,_0xcd8fff,_0x1d6a62,_0x46c08d){return _0x101ac3(_0x45bd75-0x7f,_0xcd8fff-_0x54a236._0x7b8b24,_0x45bd75,_0x1d6a62- -_0x54a236._0x2a9173);}this[_0x607c8a(_0x4125ea._0x5933f7,_0x4125ea._0x247633,_0x4125ea._0x52b30f,0x641)]=_0x2a55bd['complete'],this['streamSurface']=_0x2a55bd['stream'];}[_0x22bdb8(0x89,0x10b,0x211,0xdd)](_0x3c7505,_0x38e961){const _0x194c4f={_0x29ce85:0x5e2,_0x4d0c6e:0x5c9,_0xef1851:0x5d9,_0x3aed9b:0x50b,_0xd40f6:0x445,_0x43687e:0x5c6,_0x166209:0x4b8,_0x15217a:0x521},_0x489cf9={_0xe6fb1a:0x131,_0x4771b2:0x44f,_0x4fb87b:0xa},_0x6de527={_0x1ce56d:0x1b8,_0x494cf8:0x7a,_0x16d8de:0x17c};function _0x729f37(_0x4eada1,_0x1aa821,_0x10f92e,_0x221719){return _0x101ac3(_0x4eada1-_0x6de527._0x1ce56d,_0x1aa821-_0x6de527._0x494cf8,_0x221719,_0x4eada1- -_0x6de527._0x16d8de);}function _0x557600(_0x40920d,_0xcfdcc7,_0x4aaff1,_0x7613f4){return _0x22bdb8(_0x40920d-_0x489cf9._0xe6fb1a,_0x4aaff1-_0x489cf9._0x4771b2,_0xcfdcc7,_0x7613f4-_0x489cf9._0x4fb87b);}return _0x38e961[_0x557600(0x5a0,_0x194c4f._0x29ce85,_0x194c4f._0x4d0c6e,_0x194c4f._0xef1851)]===_0x729f37(0x4b9,_0x194c4f._0x3aed9b,0x590,_0x194c4f._0xd40f6)?this['streamSurface']:this[_0x557600(_0x194c4f._0x43687e,_0x194c4f._0x166209,0x5a2,_0x194c4f._0x15217a)];}};function trimTrailingSlashes(_0x279341){const _0x4aedb5={_0x193135:0x5fb,_0x49820b:0x558},_0x1084f1={_0x32568d:0x19c};function _0x54a722(_0x536a4d,_0x59f974,_0x31480d,_0x591aa6){return _0x22bdb8(_0x536a4d-_0x1084f1._0x32568d,_0x591aa6-0x475,_0x536a4d,_0x591aa6-0xca);}return _0x279341[_0x54a722(_0x4aedb5._0x193135,0x630,_0x4aedb5._0x49820b,0x5dd)](/\/+$/,'');}function resolveApiCredential(_0x988ddd,_0x4bed12){const _0x41ddc3={_0x44817f:0x44,_0x2485d0:0x4b,_0x44069a:0x55,_0x3cee13:0x3f,_0xed8b10:0x50,_0x41f367:0x24},_0x10981a={_0x344887:0x114,_0x351ed2:0x2},_0x5055e9={_0x5627d5:0x1e7};if(_0x4bed12?.['credential'])return _0x4bed12[_0x2dc9e6(_0x41ddc3._0x44817f,-_0x41ddc3._0x2485d0,_0x41ddc3._0x44069a,-_0x41ddc3._0x3cee13)];function _0x2dc9e6(_0x21274a,_0x228efa,_0x454f94,_0x4dc3da){return _0x101ac3(_0x21274a-0x157,_0x228efa-_0x5055e9._0x5627d5,_0x4dc3da,_0x454f94- -0x553);}if(!_0x988ddd)return void 0x0;function _0x26b414(_0x59e240,_0x21b8ff,_0x3ce4fe,_0x217250){return _0x22bdb8(_0x59e240-_0x10981a._0x344887,_0x21b8ff- -_0x10981a._0x351ed2,_0x3ce4fe,_0x217250-0x45);}return{'kind':_0x2dc9e6(-_0x41ddc3._0xed8b10,-_0x41ddc3._0x41f367,-0x88,-0x56),'value':_0x988ddd};}function resolveSessionBaseUrl(_0x39a32e,_0x469029){const _0x425bb5={_0x25fba5:0x547};function _0xcebce4(_0x55469b,_0x94fdd0,_0x5f4b55,_0x295a40){return _0x22bdb8(_0x55469b-0xf3,_0x295a40-0x496,_0x94fdd0,_0x295a40-0x17a);}return trimTrailingSlashes(_0x469029?.[_0xcebce4(0x650,0x646,_0x425bb5._0x25fba5,0x563)]?.['api']??_0x39a32e);}function _0x36b7(_0x3941f5,_0x189a2a){_0x3941f5=_0x3941f5-0x18c;const _0x8bb07a=_0x8bb0();let _0x36b7bc=_0x8bb07a[_0x3941f5];if(_0x36b7['yzouPR']===undefined){var _0x414c02=function(_0x47a0fc){const _0x3c8c2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x287e98='',_0x494f76='';for(let _0x3063df=0x0,_0x2c366a,_0x3377a4,_0x12f23d=0x0;_0x3377a4=_0x47a0fc['charAt'](_0x12f23d++);~_0x3377a4&&(_0x2c366a=_0x3063df%0x4?_0x2c366a*0x40+_0x3377a4:_0x3377a4,_0x3063df++%0x4)?_0x287e98+=String['fromCharCode'](0xff&_0x2c366a>>(-0x2*_0x3063df&0x6)):0x0){_0x3377a4=_0x3c8c2['indexOf'](_0x3377a4);}for(let _0x3e59f2=0x0,_0x5ce5ec=_0x287e98['length'];_0x3e59f2<_0x5ce5ec;_0x3e59f2++){_0x494f76+='%'+('00'+_0x287e98['charCodeAt'](_0x3e59f2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x494f76);};_0x36b7['uVsakj']=_0x414c02,_0x36b7['ScvWeS']={},_0x36b7['yzouPR']=!![];}const _0x471f9b=_0x8bb07a[0x0],_0x25cfcf=_0x3941f5+_0x471f9b,_0x45a2da=_0x36b7['ScvWeS'][_0x25cfcf];return!_0x45a2da?(_0x36b7bc=_0x36b7['uVsakj'](_0x36b7bc),_0x36b7['ScvWeS'][_0x25cfcf]=_0x36b7bc):_0x36b7bc=_0x45a2da,_0x36b7bc;}function toErrorMessage(_0x39449e){const _0x3e96ab={_0x18fdf8:0x39,_0x4125ed:0xa9,_0x398bbb:0x354,_0x1fa342:0x32c,_0x1d8a1b:0x293},_0x79ec81={_0x47122d:0x17e,_0x10e2dc:0x7c},_0x307e71={_0x456ab4:0x180,_0x374add:0xe,_0x522ee2:0x59a};function _0x33448b(_0x283f56,_0x179644,_0x48107a,_0x4fa877){return _0x101ac3(_0x283f56-_0x307e71._0x456ab4,_0x179644-_0x307e71._0x374add,_0x48107a,_0x4fa877- -_0x307e71._0x522ee2);}function _0x2027f5(_0x5d9eb6,_0x26af76,_0x45e775,_0x3f14e3){return _0x22bdb8(_0x5d9eb6-_0x79ec81._0x47122d,_0x3f14e3-0x136,_0x26af76,_0x3f14e3-_0x79ec81._0x10e2dc);}if(_0x39449e instanceof Error&&_0x39449e[_0x33448b(-_0x3e96ab._0x18fdf8,_0x3e96ab._0x4125ed,-0x3e,0x63)]['length']>0x0)return _0x39449e[_0x2027f5(0x20d,_0x3e96ab._0x398bbb,_0x3e96ab._0x1fa342,_0x3e96ab._0x1d8a1b)];return'WebSocket\x20request\x20failed';}function createDefaultWebSocketFactory(){const _0x5a4565={_0x26ae49:0x345,_0x3a8845:0x1ff,_0x1119db:0x238,_0x2c3f20:0x1df};return({headers:_0x595ff0,url:_0x221591})=>{function _0x4577bf(_0x54a1c8,_0x38109a,_0x54be64,_0x5b3f79){return _0x36b7(_0x54be64- -0xb5,_0x38109a);}const _0x176ce1=globalThis[_0x4577bf(_0x5a4565._0x26ae49,_0x5a4565._0x3a8845,_0x5a4565._0x1119db,_0x5a4565._0x2c3f20)];return new _0x176ce1(_0x221591,{'headers':_0x595ff0,'protocols':[]});};}async function*iterateSseEvents(_0x42a8e8,_0x660106){const _0x15d467={_0x1639f6:0x139,_0x395746:0xe2,_0x28e537:0x11f,_0x47bd96:0x1fd,_0x2757b5:0x2a0,_0x4a61ba:0x9e,_0xafbed6:0x10,_0x27487e:0x65,_0x49dd3e:0xa0,_0x43bdec:0x5c,_0x3e1671:0x13a,_0x2b6d62:0x4a,_0x337736:0xa,_0x605cc8:0x29,_0x548834:0xc0,_0x5d86ce:0xa9,_0x5794a2:0x2b,_0x2470d4:0x28,_0xdeb73d:0x81},_0x35b3ae={_0x2be16d:0x184,_0x77484:0x22c,_0x1b526e:0x189,_0x49c444:0x334,_0x48f27e:0x277,_0x2804fb:0x350,_0x3ab9a1:0x2fd,_0x556d4c:0x3f5},_0x5a0244={_0x5d6687:0x38c},_0x4c5732={_0x372f15:0x692},_0x41cd88={_0x3bf13e:0x5c,_0x3ec902:0x6ad},_0x525efe=_0x42a8e8[_0x37e83b(-_0x15d467._0x1639f6,-_0x15d467._0x395746,-_0x15d467._0x28e537,-0x1b4)]?.['getReader']();function _0x37e83b(_0x58be7c,_0x26cde5,_0x1e8490,_0x4c35a5){return _0x101ac3(_0x58be7c-0x114,_0x26cde5-_0x41cd88._0x3bf13e,_0x4c35a5,_0x1e8490- -_0x41cd88._0x3ec902);}if(!_0x525efe)return;const _0x1c398c=new TextDecoder(_0x37e83b(-0x1cd,-0x1c9,-_0x15d467._0x47bd96,-_0x15d467._0x2757b5));let _0x40a21b='';function _0x59e3f2(_0x1fecee,_0x1a590a,_0x47e99e,_0x398188){return _0x101ac3(_0x1fecee-0x1bb,_0x1a590a-0x3,_0x1fecee,_0x47e99e- -_0x4c5732._0x372f15);}const _0x37c96f=addAbortListener(_0x660106,()=>{function _0x4f06ec(_0x279385,_0x591571,_0x57b5de,_0xf938bd){return _0x37e83b(_0x279385-0xcd,_0x591571-0xdc,_0xf938bd-_0x5a0244._0x5d6687,_0x591571);}function _0x151750(_0x53c796,_0x32aa93,_0x2dc069,_0x463ee9){return _0x37e83b(_0x53c796-0x68,_0x32aa93-0x16,_0x32aa93-0x333,_0x53c796);}void _0x525efe[_0x151750(_0x35b3ae._0x2be16d,_0x35b3ae._0x77484,0x193,_0x35b3ae._0x1b526e)](toAbortError(_0x660106?.[_0x4f06ec(0x382,_0x35b3ae._0x49c444,0x1c0,_0x35b3ae._0x48f27e)]))[_0x151750(_0x35b3ae._0x2804fb,_0x35b3ae._0x3ab9a1,_0x35b3ae._0x556d4c,0x388)](()=>{});});try{while(!![]){throwIfAborted(_0x660106);const {value:_0x2e750f,done:_0xf60f63}=await _0x525efe['read']();throwIfAborted(_0x660106);if(_0xf60f63)break;_0x40a21b+=_0x1c398c[_0x59e3f2(_0x15d467._0x4a61ba,_0x15d467._0xafbed6,-_0x15d467._0x27487e,_0x15d467._0x49dd3e)](_0x2e750f,{'stream':!![]});while(!![]){const _0x448959=_0x40a21b['indexOf']('\x0a\x0a');if(_0x448959===-0x1)break;const _0xe0cae4=_0x40a21b['slice'](0x0,_0x448959);_0x40a21b=_0x40a21b[_0x59e3f2(-0xb9,-_0x15d467._0x43bdec,-_0x15d467._0x3e1671,-0x46)](_0x448959+0x2),_0xe0cae4[_0x59e3f2(-0xac,0xe6,0x2b,_0x15d467._0x2b6d62)]()[_0x59e3f2(_0x15d467._0x337736,-_0x15d467._0x605cc8,-0x66,-0xdc)]>0x0&&(yield _0xe0cae4);}}_0x40a21b+=_0x1c398c[_0x37e83b(-0x189,-_0x15d467._0x548834,-0x80,-0x36)](),throwIfAborted(_0x660106),_0x40a21b[_0x59e3f2(-_0x15d467._0x5d86ce,-0xca,_0x15d467._0x5794a2,0xcc)]()[_0x37e83b(_0x15d467._0x2470d4,-0x1d,-_0x15d467._0xdeb73d,-0x172)]>0x0&&(yield _0x40a21b);}finally{_0x37c96f();}}async function waitForWebSocketOpen(_0x3961ab,_0xe70442){const _0xd389a4={_0x4e5204:0x5db},_0xd5f27c={_0x4b29c5:0x1f,_0x36bb93:0xb5,_0x2cc3e2:0x14b,_0x1ce0aa:0x1a4,_0x5c2087:0x9b,_0x450dd3:0xaa,_0x3b66ac:0x15c,_0x10a9df:0x1b5,_0x413e98:0x1f1,_0x49663d:0x139,_0x4c32cd:0x1e0,_0x14b73b:0x22b},_0x10762c={_0x2d5c1b:0x1b1,_0x41aaca:0x557},_0x3c9af9={_0x9f5ca9:0x166};if(_0x3961ab[_0x431c3d(0x650,0x4c6,0x55a,_0xd389a4._0x4e5204)]===WebSocket['OPEN']){throwIfAborted(_0xe70442);return;}function _0x431c3d(_0xd83c14,_0x15d189,_0x2a331d,_0x28bf03){return _0x22bdb8(_0xd83c14-_0x3c9af9._0x9f5ca9,_0x2a331d-0x40d,_0x15d189,_0x28bf03-0xed);}throwIfAborted(_0xe70442),await new Promise((_0x155617,_0x1d3fd3)=>{const _0x53831f={_0x3d75f9:0x21e,_0x1b48dc:0x15b,_0x17c62c:0x185,_0x292ac7:0x295,_0x4571f6:0x25b,_0x56446:0x363,_0xebde93:0xb6,_0xeae904:0x6e,_0x2f337a:0x260,_0x5f2171:0x334,_0x4c9ead:0x104,_0x453590:0x1b5,_0x2c4d47:0x43d,_0x5a6c20:0x4e8},_0x591546={_0x4e32fe:0xf8},_0x14af2c={_0x36bfc6:0x5a6,_0x43dc90:0x6a0,_0x3211f7:0x6b2,_0x9e8556:0x49d,_0x3fb214:0x4b2,_0x220073:0x35e},_0x251379={_0x3f0f10:0xcc},_0x511c83={_0x4071a7:0x15,_0x2b524f:0x89},_0x21bd62={_0x48c8f3:0x312,_0x1edfc0:0x489,_0x257c8a:0x3d9},_0x11e742=()=>{_0x108976(),_0x155617();},_0x557321=_0x19bd26=>{function _0x3ae500(_0x15587d,_0x108c38,_0x1c362a,_0xbdbb34){return _0x36b7(_0xbdbb34-0xf9,_0x15587d);}_0x108976(),_0x1d3fd3(new Error(_0x19bd26[_0x3ae500(_0x21bd62._0x48c8f3,_0x21bd62._0x1edfc0,0x419,_0x21bd62._0x257c8a)]||'WebSocket\x20request\x20failed'));},_0x150245=_0x352250=>{const _0xcc830={_0xea2584:0x322};function _0x2907c9(_0x4d278b,_0x1bd886,_0x5cb7a2,_0x503491){return _0x36b7(_0x4d278b- -_0xcc830._0xea2584,_0x503491);}_0x108976();const _0x88d006=_0x352250;_0x1d3fd3(new Error(_0x88d006[_0x2907c9(-0xa7,-_0x511c83._0x4071a7,-0x126,-_0x511c83._0x2b524f)]||'WebSocket\x20closed\x20before\x20opening'));};function _0x46709d(_0x15ec1e,_0x4272ce,_0x4204a8,_0x42338c){return _0x431c3d(_0x15ec1e-0xc8,_0x42338c,_0x4204a8- -0x41b,_0x42338c-_0x251379._0x3f0f10);}const _0x37a2e0=()=>{const _0x28f995={_0x42a84d:0x3d0},_0x5b8645={_0x3d4169:0x184};_0x108976();_0x3961ab[_0x581840(0x661,_0x14af2c._0x36bfc6,_0x14af2c._0x43dc90,_0x14af2c._0x3211f7)]===WebSocket[_0x5b4be6(_0x14af2c._0x9e8556,0x402,0x393,_0x14af2c._0x3fb214)]&&_0x3961ab[_0x5b4be6(0x377,_0x14af2c._0x220073,0x2a5,0x305)](0x3e8,'aborted');function _0x5b4be6(_0x178e40,_0x3b904f,_0x27d48b,_0x17d773){return _0x36b7(_0x178e40-_0x5b8645._0x3d4169,_0x27d48b);}function _0x581840(_0x2447de,_0x1b1099,_0x49f268,_0xcbc850){return _0x36b7(_0x49f268-_0x28f995._0x42a84d,_0x1b1099);}_0x1d3fd3(toAbortError(_0xe70442?.['reason']));},_0x108976=()=>{function _0x179ca9(_0x1b24ca,_0x2b3634,_0x1afd52,_0x4025f0){return _0x36b7(_0x2b3634- -_0x591546._0x4e32fe,_0x1b24ca);}_0x3961ab[_0x21a4cc(0x2b6,0x2d9,0x33d,0x2d8)](_0x179ca9(0xbb,0x13a,_0x53831f._0x3d75f9,0x225),_0x11e742),_0x3961ab[_0x179ca9(-0x8,0x104,_0x53831f._0x1b48dc,_0x53831f._0x17c62c)](_0x179ca9(0x27e,_0x53831f._0x292ac7,_0x53831f._0x4571f6,_0x53831f._0x56446),_0x557321);function _0x21a4cc(_0x586ded,_0x859562,_0x5a37bd,_0xbc1e5b){return _0x36b7(_0x5a37bd-0x141,_0x859562);}_0x3961ab[_0x179ca9(0x18f,0x104,_0x53831f._0xebde93,_0x53831f._0xeae904)](_0x21a4cc(0x315,_0x53831f._0x2f337a,_0x53831f._0x5f2171,0x2f0),_0x150245),_0xe70442?.[_0x179ca9(0x1c9,_0x53831f._0x4c9ead,_0x53831f._0x453590,0x9e)](_0x21a4cc(0x48b,0x331,_0x53831f._0x2c4d47,_0x53831f._0x5a6c20),_0x37a2e0);};_0x3961ab[_0x289f42(_0xd5f27c._0x4b29c5,_0xd5f27c._0x36bb93,_0xd5f27c._0x2cc3e2,_0xd5f27c._0x1ce0aa)](_0x289f42(0x17,-_0xd5f27c._0x5c2087,-_0xd5f27c._0x450dd3,-_0xd5f27c._0x3b66ac),_0x11e742),_0x3961ab[_0x46709d(0x1c3,_0xd5f27c._0x10a9df,_0xd5f27c._0x413e98,_0xd5f27c._0x49663d)](_0x46709d(0x111,0x113,0x1fc,0x218),_0x557321),_0x3961ab['addEventListener'](_0x289f42(-_0xd5f27c._0x4c32cd,-0xda,-0x12b,-0xdb),_0x150245);function _0x289f42(_0x2a5efb,_0x540347,_0x1aec35,_0x147b2f){return _0x431c3d(_0x2a5efb-_0x10762c._0x2d5c1b,_0x2a5efb,_0x540347- -_0x10762c._0x41aaca,_0x147b2f-0x8b);}_0xe70442?.[_0x289f42(0x1b4,0xb5,0xa8,-0x21)](_0x46709d(_0xd5f27c._0x14b73b,0x211,0x16b,0xe5),_0x37a2e0,{'once':!![]});});}function iterateWebSocketMessages(_0x4be8f1,_0x1ae02b){const _0x5d670c={_0x24db90:0x4e,_0x378cf7:0x3b,_0x5e88b8:0x8b,_0x5b4d24:0xf3,_0x2e8137:0x22e,_0x1ac008:0x29c,_0x14754d:0x223,_0x2ea9d2:0x213,_0x4273e9:0x94,_0x425f03:0x100,_0x9b70f0:0x44,_0x23e06f:0x113,_0x512d0e:0x150,_0x3d6279:0x4a,_0x5bb2b1:0x11c},_0x538a3c={_0x4821f0:0x289,_0x1b7313:0x227,_0x4dd212:0x2cf,_0x132225:0x2f1,_0x8fdbe5:0x26c},_0xc90c0c={_0x58ed84:0x3d1},_0x368c1d={_0x48b6d9:0xb1,_0x3c8d63:0x10e,_0x4fc417:0x1a9},_0x1205b1={_0xf55aa3:0x14d,_0xaeb515:0x6da},_0xb9baf5={_0x2c42bd:0xd7,_0x2e4b01:0x183,_0x38c6c3:0x16,_0x408aac:0x323,_0x156a74:0x2e0},_0x4b0451={_0x4548e5:0x1dd},_0x1f7142={_0x367c9e:0x8,_0x1b3a2b:0x44,_0x325747:0xdd,_0x1476df:0x57,_0x4cfc1a:0x239,_0x26c98e:0x28e},_0x9ab50d={_0x3f05a2:0x16},_0x21708e={_0x435cf4:0x418,_0x2622c7:0x3e0,_0x318c79:0x5e8},_0x22c541={_0x2a1978:0x280,_0x363253:0x2c3,_0x13dde3:0x330,_0x10aa2c:0xf8,_0x48c985:0x3b4},_0x442596={_0x309348:0xf0},_0x36cb38={_0x40471d:0x9f},_0x2cd577=[];function _0xd5c282(_0x3fd6fb,_0x5cc2f1,_0x8d0a12,_0x3ad290){return _0x101ac3(_0x3fd6fb-0x46,_0x5cc2f1-_0x36cb38._0x40471d,_0x8d0a12,_0x3fd6fb- -0x47c);}let _0x1423d2=![],_0x289bbb,_0xb11a8;const _0x3b5049=_0x3b4601=>{const _0x5a7897=_0x3b4601;function _0x1d5160(_0x3aacde,_0x3ea4e5,_0x51ee91,_0x21047a){return _0x36b7(_0x3aacde- -_0x442596._0x309348,_0x51ee91);}function _0x39f0a7(_0x34325b,_0x516426,_0x1534eb,_0x229b1d){return _0x36b7(_0x1534eb-0x6f,_0x34325b);}try{_0x2cd577[_0x39f0a7(_0x22c541._0x2a1978,_0x22c541._0x363253,_0x22c541._0x13dde3,0x391)](JSON[_0x1d5160(0x1c7,0x2b6,_0x22c541._0x10aa2c,0x144)](String(_0x5a7897['data']))),_0xb11a8?.(),_0xb11a8=void 0x0;}catch(_0x4643c4){_0x289bbb=new Error(_0x39f0a7(0x3b4,0x3a2,_0x22c541._0x48c985,0x467)+toErrorMessage(_0x4643c4)),_0xb11a8?.(),_0xb11a8=void 0x0;}},_0xc36667=_0x506340=>{const _0x5414d3=_0x506340;function _0x2b5002(_0x45d0d7,_0x3c2052,_0x41597c,_0x2a7eec){return _0x36b7(_0x3c2052-0x1fe,_0x41597c);}_0x289bbb=new Error(_0x5414d3[_0x2b5002(_0x21708e._0x435cf4,0x4de,_0x21708e._0x2622c7,_0x21708e._0x318c79)]||'WebSocket\x20request\x20failed'),_0xb11a8?.(),_0xb11a8=void 0x0;},_0x56c3d2=_0xc3aa84=>{function _0x1c118c(_0x396932,_0x3e8ecd,_0x51051d,_0x131eec){return _0x36b7(_0x131eec- -0x260,_0x3e8ecd);}const _0x375e9b=_0xc3aa84;function _0x5681be(_0x3ff00c,_0x56483c,_0x3f88ce,_0x4c00d9){return _0x36b7(_0x3f88ce- -_0x9ab50d._0x3f05a2,_0x4c00d9);}!_0x1423d2&&_0x375e9b['code']!==0x3e8&&!_0x289bbb&&(_0x289bbb=new Error(_0x375e9b[_0x1c118c(-0x6,-_0x1f7142._0x367c9e,-0xc3,0x1b)]||_0x1c118c(-_0x1f7142._0x1b3a2b,-0xde,-_0x1f7142._0x325747,-_0x1f7142._0x1476df)+_0x375e9b[_0x5681be(_0x1f7142._0x4cfc1a,0x315,0x21e,_0x1f7142._0x26c98e)])),_0x1423d2=!![],_0xb11a8?.(),_0xb11a8=void 0x0;},_0x1e7d07=addAbortListener(_0x1ae02b,()=>{const _0x141f35={_0x453084:0xbd};function _0x4854b7(_0x57d1f7,_0x517942,_0x21655f,_0x1bd38b){return _0x36b7(_0x1bd38b- -_0x141f35._0x453084,_0x517942);}_0x289bbb=toAbortError(_0x1ae02b?.[_0x4854b7(0x1bf,0x18a,_0xb9baf5._0x2c42bd,0x1be)]);function _0x54ea3e(_0x5bc5c0,_0x27d76f,_0x25d192,_0x5a1b6d){return _0x36b7(_0x27d76f- -_0x4b0451._0x4548e5,_0x5a1b6d);}_0x4be8f1[_0x54ea3e(0xa4,0xf3,_0xb9baf5._0x2e4b01,-0xe)]===WebSocket['OPEN']&&_0x4be8f1[_0x54ea3e(0x4b,_0xb9baf5._0x38c6c3,-0x53,0x72)](0x3e8,_0x4854b7(0x229,_0xb9baf5._0x408aac,0x2e3,_0xb9baf5._0x156a74)),_0xb11a8?.(),_0xb11a8=void 0x0;});_0x4be8f1[_0x3fffec(-0x8f,_0x5d670c._0x24db90,-_0x5d670c._0x378cf7,-_0x5d670c._0x5e88b8)](_0xd5c282(0x181,0x154,0x12c,_0x5d670c._0x5b4d24),_0x3b5049),_0x4be8f1['addEventListener'](_0xd5c282(_0x5d670c._0x2e8137,0x311,0x20d,_0x5d670c._0x1ac008),_0xc36667);function _0x3fffec(_0xe39675,_0x53c30d,_0x342421,_0x2f9125){return _0x101ac3(_0xe39675-0x46,_0x53c30d-_0x1205b1._0xf55aa3,_0x2f9125,_0x342421- -_0x1205b1._0xaeb515);}return _0x4be8f1[_0xd5c282(_0x5d670c._0x14754d,0x2ad,_0x5d670c._0x2ea9d2,0x256)](_0xd5c282(_0x5d670c._0x4273e9,_0x5d670c._0x425f03,_0x5d670c._0x9b70f0,_0x5d670c._0x23e06f),_0x56c3d2),{async*[Symbol[_0x3fffec(-_0x5d670c._0x512d0e,0x5e,-_0x5d670c._0x3d6279,-_0x5d670c._0x5bb2b1)]](){function _0x3f3bd4(_0x99d81d,_0x14e919,_0x258eab,_0x20544e){return _0xd5c282(_0x99d81d-_0x368c1d._0x48b6d9,_0x14e919-_0x368c1d._0x3c8d63,_0x20544e,_0x20544e-_0x368c1d._0x4fc417);}function _0x3feb3c(_0x575b80,_0x139b0c,_0x54b59b,_0x1bfb98){return _0x3fffec(_0x575b80-0x154,_0x139b0c-0x118,_0x1bfb98-_0xc90c0c._0x58ed84,_0x139b0c);}try{while(!![]){if(_0x289bbb)throw _0x289bbb;if(_0x2cd577[_0x3f3bd4(0x261,0x240,0x1ae,_0x538a3c._0x4821f0)]>0x0){yield _0x2cd577['shift']();continue;}if(_0x1423d2)break;await new Promise(_0x177516=>{_0xb11a8=_0x177516;});}}finally{_0x4be8f1[_0x3feb3c(_0x538a3c._0x1b7313,_0x538a3c._0x4dd212,0x195,0x210)]('message',_0x3b5049),_0x4be8f1[_0x3feb3c(0x1f0,_0x538a3c._0x132225,_0x538a3c._0x8fdbe5,0x210)]('error',_0xc36667),_0x4be8f1['removeEventListener']('close',_0x56c3d2),_0x1e7d07();}}};}function toWebSocketUrl(_0x1e4666,_0x3946c5){const _0x59e90f={_0xecb054:0x6ad,_0x1e51a2:0x3ee,_0x5c496a:0x4b9,_0x9759d9:0x6d6,_0x18f260:0x606},_0x5e4555={_0x28bb23:0x477,_0x5e4c1a:0xa0},_0x461147={_0x46c99f:0x30,_0x4223cc:0x3d4,_0x7f5be3:0x20},_0x220881=new URL(_0x3946c5,_0x1e4666);function _0x46faf0(_0x1645e7,_0x5a8fe7,_0x22a940,_0x311784){return _0x22bdb8(_0x1645e7-_0x461147._0x46c99f,_0x5a8fe7-_0x461147._0x4223cc,_0x311784,_0x311784-_0x461147._0x7f5be3);}function _0x535332(_0x413873,_0x4db7cd,_0x1f9d2a,_0x4570b6){return _0x22bdb8(_0x413873-0x1da,_0x1f9d2a-_0x5e4555._0x28bb23,_0x4db7cd,_0x4570b6-_0x5e4555._0x5e4c1a);}return _0x220881[_0x46faf0(0x5f8,0x5bd,0x52f,_0x59e90f._0xecb054)]=_0x220881[_0x535332(0x580,0x5eb,0x660,0x6da)]===_0x46faf0(_0x59e90f._0x1e51a2,0x4ce,0x5bc,_0x59e90f._0x5c496a)?_0x535332(0x574,0x57e,0x587,0x485):'ws:',_0x220881[_0x535332(_0x59e90f._0x9759d9,_0x59e90f._0x18f260,0x670,0x6ce)]();}var ProviderSessionManager=class{[_0x22bdb8(0x114,0x103,0x1d3,0x14)];[_0x22bdb8(0xb5,0x6a,-0xa0,0xda)];constructor(_0x582e03){const _0x3f119b={_0x2c83c7:0x27f},_0x178214={_0xab9ee8:0x17e,_0x264046:0x275};function _0x5cbd2c(_0x20883b,_0x598556,_0x52fa2d,_0x43325f){return _0x101ac3(_0x20883b-_0x178214._0xab9ee8,_0x598556-0xb9,_0x52fa2d,_0x598556- -_0x178214._0x264046);}this[_0x5cbd2c(0x238,0x32e,0x235,_0x3f119b._0x2c83c7)]=_0x582e03;}async[_0x101ac3(0x622,0x464,0x618,0x540)](_0x1486ef){const _0x26572d={_0x31c3ca:0x513,_0x752093:0x636,_0x2c625d:0x520,_0x55c6ad:0x585,_0x5cefc5:0x677,_0x1f6fbd:0x657,_0x41f927:0x6db,_0x2b0e47:0x54f,_0x5bd590:0x46a},_0x27198c={_0x34202f:0x501,_0x529edb:0x510,_0x3c9684:0x4ca},_0x42702e={_0x529421:0x17,_0x41f97b:0x1ed},_0x28d49c={_0x4276db:0x536,_0x5a6de9:0x0},_0x88c9f7={_0x4d9f8c:0x480,_0xbc2e21:0x32};function _0x4bdea3(_0x408417,_0x46d461,_0x47a436,_0x541eef){return _0x22bdb8(_0x408417-0x186,_0x46d461-_0x88c9f7._0x4d9f8c,_0x408417,_0x541eef-_0x88c9f7._0xbc2e21);}function _0x330aba(_0x52dd7c,_0x52f174,_0x1db740,_0x21faec){return _0x22bdb8(_0x52dd7c-0x90,_0x52f174-_0x28d49c._0x4276db,_0x52dd7c,_0x21faec-_0x28d49c._0x5a6de9);}if(!this[_0x4bdea3(_0x26572d._0x31c3ca,0x4ea,0x44d,0x554)]){const _0x169af7=this[_0x330aba(0x5b6,0x639,_0x26572d._0x752093,0x62b)][_0x4bdea3(0x4b1,_0x26572d._0x2c625d,0x48c,_0x26572d._0x55c6ad)](_0x1486ef);_0x169af7[_0x4bdea3(_0x26572d._0x5cefc5,_0x26572d._0x1f6fbd,_0x26572d._0x41f927,_0x26572d._0x2b0e47)](()=>{const _0x5b28f1={_0x28e5ef:0xc1,_0x314d78:0x5e,_0x29bafa:0x85};function _0x452b20(_0x557dad,_0x11146f,_0x4d72ac,_0x4c8d06){return _0x4bdea3(_0x557dad,_0x11146f-_0x42702e._0x529421,_0x4d72ac-0x18d,_0x4c8d06-_0x42702e._0x41f97b);}function _0x28506e(_0xdee258,_0x50a159,_0x22dcff,_0xb44fef){return _0x330aba(_0xdee258,_0xb44fef- -_0x5b28f1._0x28e5ef,_0x22dcff-_0x5b28f1._0x314d78,_0xb44fef-_0x5b28f1._0x29bafa);}this[_0x452b20(0x565,0x501,_0x27198c._0x34202f,0x404)]===_0x169af7&&(this[_0x28506e(_0x27198c._0x529edb,_0x27198c._0x3c9684,0x3d1,0x4df)]=void 0x0);}),this[_0x4bdea3(0x430,0x4ea,_0x26572d._0x5bd590,0x52e)]=_0x169af7;}return structuredClone(await this['cached']);}[_0x101ac3(0x60b,0x6d4,0x63d,0x5e4)](){const _0x26ca02={_0x2ffec1:0x5fe,_0x54954d:0x58b,_0x213e44:0x53a,_0x3cdd64:0x55c,_0x45ef86:0x5cc,_0x2289dc:0x53f,_0x435dd5:0x4f2},_0x463920={_0x2db687:0xaf,_0x46eb9f:0x18};function _0x173bf1(_0x5722f8,_0xff3539,_0x2c9dce,_0x30a9c1){return _0x22bdb8(_0x5722f8-0x192,_0x30a9c1-0x191,_0x5722f8,_0x30a9c1-0x155);}function _0x4c42f0(_0x53051f,_0xe99658,_0x4f5c63,_0x113ba2){return _0x101ac3(_0x53051f-0xde,_0xe99658-_0x463920._0x2db687,_0xe99658,_0x4f5c63- -_0x463920._0x46eb9f);}this[_0x4c42f0(0x51e,_0x26ca02._0x2ffec1,_0x26ca02._0x54954d,_0x26ca02._0x213e44)][_0x4c42f0(0x543,_0x26ca02._0x3cdd64,_0x26ca02._0x45ef86,0x555)]?.(),this[_0x4c42f0(0x3ef,_0x26ca02._0x2289dc,_0x26ca02._0x435dd5,0x4cb)]=void 0x0;}};async function prepareProviderRequest(_0x24a0dd,_0x2bd4f5={}){const _0x3fa59e={_0xfdce56:0x461,_0x42c655:0x417,_0x41facd:0x4d6,_0x41e225:0x2f,_0x18f455:0x28,_0x46f23f:0x37a,_0x17bd2c:0x47a,_0x432014:0x3ab,_0x4df75e:0x2dc,_0x393097:0x314,_0xb62b7e:0x254,_0x4a06f4:0x36a},_0x1fb525={_0x2ce0de:0xc9,_0x4ef74a:0x2b1,_0x21445d:0xca},_0xa9f246={_0x537751:0x568};function _0xef5ddc(_0xb898af,_0x159455,_0x200979,_0x164166){return _0x101ac3(_0xb898af-0x136,_0x159455-0xcc,_0x200979,_0x159455- -_0xa9f246._0x537751);}let _0x6aa6df={'request':structuredClone(_0x24a0dd),'session':_0x2bd4f5[_0x375a5a(_0x3fa59e._0xfdce56,_0x3fa59e._0x42c655,0x33c,_0x3fa59e._0x41facd)]?await _0x2bd4f5[_0xef5ddc(_0x3fa59e._0x41e225,0x9e,-0x2d,0x192)][_0xef5ddc(-0xd1,-_0x3fa59e._0x18f455,0x83,0x64)](_0x2bd4f5[_0x375a5a(_0x3fa59e._0x46f23f,_0x3fa59e._0x17bd2c,_0x3fa59e._0x432014,0x458)]):void 0x0};function _0x375a5a(_0x511f46,_0x126a16,_0xf4a4ac,_0x171c7c){return _0x22bdb8(_0x511f46-_0x1fb525._0x2ce0de,_0x126a16-_0x1fb525._0x4ef74a,_0x511f46,_0x171c7c-_0x1fb525._0x21445d);}for(const _0x46c78d of _0x2bd4f5[_0x375a5a(_0x3fa59e._0x4df75e,_0x3fa59e._0x393097,_0x3fa59e._0xb62b7e,_0x3fa59e._0x4a06f4)]??[]){_0x6aa6df=await _0x46c78d(_0x6aa6df);}return _0x6aa6df;}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{[_0x22bdb8(0x21d,0x1a4,0x17a,0x293)];[_0x22bdb8(0x25f,0x1e5,0x250,0x205)];[_0x101ac3(0x427,0x53c,0x515,0x4ee)];[_0x101ac3(0x47f,0x62d,0x4ec,0x53a)];[_0x22bdb8(0x183,0xd7,0xf4,0x6d)];[_0x22bdb8(0xd3,0xd4,0x13,0x174)];[_0x101ac3(0x66a,0x543,0x69c,0x5ba)];[_0x101ac3(0x77a,0x752,0x612,0x6ac)];[_0x22bdb8(0x11,0xcc,0xb6,0xb1)];[_0x22bdb8(0xba,0x63,0x151,0x41)];[_0x22bdb8(0x1ea,0x1ce,0x171,0xff)];['sessionManager'];[_0x101ac3(0x49a,0x55e,0x5e9,0x55c)];['surfaces']=new Map();constructor(_0xacd320){const _0x40e609={_0x5c55a9:0xa1,_0x29b3e2:0x344,_0x3b70ad:0xe2,_0x4c71b9:0x12,_0x512cb1:0x24c,_0x2ba7b6:0x13a,_0x286c36:0xa,_0x5b2f68:0xc7,_0x53646a:0x5c,_0x18d9a5:0x6,_0x12f7f2:0x112,_0xc442b0:0x2c,_0x82fa5b:0x72,_0x3db6de:0x93,_0x46cfe0:0x225,_0x20e844:0x23a,_0x3eb011:0x69,_0x597b66:0x17,_0x55ebdc:0x2b4,_0x3ef3ba:0x75,_0x58fe49:0x3b,_0x36fa03:0x18,_0x5c73d7:0x14,_0x1e3ffd:0xa0,_0x51b20e:0x6d,_0x4f615a:0x206,_0x108eee:0x1bf,_0x19eec0:0x28f,_0x775373:0x142,_0x1a76bd:0x1fb,_0x5432af:0x1bf,_0x394d04:0x288,_0xc757f3:0xc2,_0x1150da:0x82,_0x1cedba:0x176,_0x40a931:0x164,_0x42172a:0xe2,_0x22b9d3:0x2da,_0x731681:0x33d,_0x95eead:0xc6},_0x57d083={_0x1d3a0f:0x81,_0x4a0c4f:0x103},_0x370451={_0x388206:0x15b};this[_0x454067(0xa4,0x17c,0x5a,_0x40e609._0x5c55a9)]=_0xacd320[_0x6c60be(0x26f,0x174,0x24c,_0x40e609._0x29b3e2)],this[_0x454067(0x120,0x33,0x18,_0x40e609._0x3b70ad)]=_0xacd320[_0x454067(0x1c2,-_0x40e609._0x4c71b9,0x3d,0xe2)]??modelIdentityFromParts(void 0x0,this[_0x6c60be(0x1ab,0x31e,_0x40e609._0x512cb1,0x1ec)]),this['maxTokens']=_0xacd320[_0x454067(-_0x40e609._0x2ba7b6,-0xe7,0x2d,-0xb5)],this[_0x454067(_0x40e609._0x286c36,-_0x40e609._0x5b2f68,_0x40e609._0x53646a,-0x69)]=_0xacd320[_0x454067(0x7e,-_0x40e609._0x18d9a5,-0x169,-0x69)],this[_0x454067(-0x117,-0x134,-_0x40e609._0x12f7f2,-_0x40e609._0xc442b0)]=_0xacd320[_0x454067(0x62,0x20,0x49,-0x2c)]?structuredClone(_0xacd320[_0x454067(-_0x40e609._0x82fa5b,_0x40e609._0x3db6de,0x79,-_0x40e609._0xc442b0)]):void 0x0,this[_0x6c60be(0x90,0x27a,0x17c,0x1d6)]=_0xacd320[_0x6c60be(_0x40e609._0x46cfe0,_0x40e609._0x20e844,0x17c,0x203)];function _0x6c60be(_0x49b94b,_0xf46fd1,_0x3a13b5,_0x188cc8){return _0x101ac3(_0x49b94b-0xd9,_0xf46fd1-_0x370451._0x388206,_0x188cc8,_0x3a13b5- -0x3f8);}this['baseUrl']=_0xacd320[_0x454067(0x8b,-0xc9,_0x40e609._0x3eb011,_0x40e609._0x597b66)],this[_0x6c60be(0x1d4,0x348,_0x40e609._0x55ebdc,0x293)]=_0xacd320[_0x454067(-0x99,-0x147,-_0x40e609._0x3ef3ba,-0x3b)]??globalThis[_0x454067(-0x41,0x39,-0xc1,-_0x40e609._0x58fe49)];function _0x454067(_0x35b217,_0x3b315c,_0x3dd477,_0x4db160){return _0x22bdb8(_0x35b217-_0x57d083._0x1d3a0f,_0x4db160- -_0x57d083._0x4a0c4f,_0x35b217,_0x4db160-0x3c);}this['providerAdapter']=_0xacd320['providerAdapter'],this[_0x454067(_0x40e609._0x36fa03,0x5f,-_0x40e609._0x5c73d7,-_0x40e609._0x1e3ffd)]=_0xacd320[_0x454067(_0x40e609._0x51b20e,-0x14,-0x1ab,-_0x40e609._0x1e3ffd)]??[],this['router']=_0xacd320['router'],this['sessionManager']=_0xacd320['sessionManager']??(_0xacd320[_0x6c60be(_0x40e609._0x4f615a,0x11b,_0x40e609._0x108eee,_0x40e609._0x19eec0)]?new ProviderSessionManager(_0xacd320[_0x6c60be(_0x40e609._0x775373,_0x40e609._0x1a76bd,_0x40e609._0x5432af,_0x40e609._0x394d04)]):void 0x0),this[_0x454067(-_0x40e609._0xc757f3,-0xb2,_0x40e609._0x1150da,-0x47)]=_0xacd320[_0x6c60be(_0x40e609._0x1cedba,0x26a,_0x40e609._0x40a931,_0x40e609._0x42172a)]??createDefaultWebSocketFactory();for(const _0x4cf747 of _0xacd320[_0x6c60be(_0x40e609._0x22b9d3,0x2c8,0x24d,0x19e)]){this[_0x6c60be(_0x40e609._0x731681,0x26a,0x24d,0x179)][_0x454067(-0x1a3,-_0x40e609._0x5c55a9,0x40,-_0x40e609._0x95eead)](_0x4cf747['id'],_0x4cf747);}}['complete'](_0x469537,_0x390397){const _0x35e75e={_0x4a52bf:0x479},_0x1865fd={_0x5c1acd:0x6b,_0x29555f:0x97};function _0x9d9c33(_0x4cd32d,_0x80ac74,_0x5916d2,_0x458579){return _0x101ac3(_0x4cd32d-_0x1865fd._0x5c1acd,_0x80ac74-0x4e,_0x5916d2,_0x458579- -_0x1865fd._0x29555f);}return this[_0x9d9c33(0x3d8,_0x35e75e._0x4a52bf,0x4ee,0x456)](_0x469537,_0x390397);}['stream'](_0x4fe844,_0x70fa16){const _0x339794={_0x16c9bc:0x6a3,_0xb19708:0x683},_0x4b0a55={_0x58b967:0x10b,_0x11df0e:0x4ce,_0x465587:0x17};function _0x7c98dd(_0x387128,_0x6e4aab,_0x244e1f,_0x1ba867){return _0x22bdb8(_0x387128-_0x4b0a55._0x58b967,_0x244e1f-_0x4b0a55._0x11df0e,_0x6e4aab,_0x1ba867-_0x4b0a55._0x465587);}return this[_0x7c98dd(0x76b,0x6a1,_0x339794._0x16c9bc,_0x339794._0xb19708)](_0x4fe844,_0x70fa16);}async[_0x101ac3(0x57a,0x587,0x41c,0x4ed)](_0xcb871f,_0x3f4f6d){const _0x53e9c4={_0x374643:0x2d6,_0x33ddf9:0x260,_0x5c1315:0x2b3,_0x5dbdcc:0x23e,_0x459c22:0x553,_0x31f973:0x5ff,_0x5acc9f:0x6a8,_0x348b1a:0x628,_0x230623:0x2e2,_0x67744e:0x33b,_0x48cfaf:0x2ec,_0x46d474:0x2c7},_0x31a22c={_0x5c7e15:0x1e8,_0x1832ae:0xe5},_0x599298={_0x2e122c:0x47};function _0x4cac36(_0x13a139,_0x419341,_0x32fd38,_0x3689c9){return _0x22bdb8(_0x13a139-0xf,_0x3689c9-0x51d,_0x13a139,_0x3689c9-_0x599298._0x2e122c);}const _0x3d9332=this[_0x19c27b(_0x53e9c4._0x374643,0x14a,0x1c9,0x152)](_0xcb871f);function _0x19c27b(_0x393056,_0x11892d,_0x7c9b11,_0x22090d){return _0x22bdb8(_0x393056-_0x31a22c._0x5c7e15,_0x7c9b11-_0x31a22c._0x1832ae,_0x22090d,_0x22090d-0xea);}const _0xd0bd4f=await this[_0x19c27b(_0x53e9c4._0x33ddf9,0x1a8,_0x53e9c4._0x5c1315,_0x53e9c4._0x5dbdcc)][_0x4cac36(_0x53e9c4._0x459c22,_0x53e9c4._0x31f973,_0x53e9c4._0x5acc9f,_0x53e9c4._0x348b1a)](_0x3d9332,{'mode':_0x19c27b(0x313,0x237,_0x53e9c4._0x230623,_0x53e9c4._0x67744e)});return this[_0x19c27b(_0x53e9c4._0x48cfaf,_0x53e9c4._0x46d474,0x304,0x23a)](_0x3d9332,_0xd0bd4f,_0x3f4f6d);}async*[_0x22bdb8(0x2c3,0x1d5,0x270,0xf2)](_0x4b431b,_0x411dbe){const _0x4d3e9a={_0x478cf5:0x2f,_0x1a7bce:0x81,_0x38f110:0xf3,_0x2d33c2:0x4da,_0x2e0c51:0x44d,_0x243653:0x555,_0x8a20f2:0x384,_0x4c916b:0x406,_0x33e42b:0x4d7,_0x194ee6:0x4ab,_0x34e75e:0x49d,_0x2ba4b1:0x5a1,_0x4dd720:0x49c},_0x56606e={_0x47a3a8:0x36};function _0x4d928b(_0x3b074c,_0x47311a,_0x122f3d,_0x306e95){return _0x101ac3(_0x3b074c-_0x56606e._0x47a3a8,_0x47311a-0x68,_0x47311a,_0x122f3d- -0x503);}const _0x52e420=this[_0x4d928b(0x45,-_0x4d3e9a._0x478cf5,_0x4d3e9a._0x1a7bce,_0x4d3e9a._0x38f110)](_0x4b431b),_0x3c2df7=await this['router'][_0x145377(_0x4d3e9a._0x2d33c2,_0x4d3e9a._0x2e0c51,_0x4d3e9a._0x243653,_0x4d3e9a._0x8a20f2)](_0x52e420,{'mode':_0x145377(_0x4d3e9a._0x4c916b,_0x4d3e9a._0x33e42b,0x45d,_0x4d3e9a._0x194ee6)});function _0x145377(_0x489bf0,_0x36abd3,_0x30e161,_0x17a908){return _0x22bdb8(_0x489bf0-0xe8,_0x36abd3-0x342,_0x489bf0,_0x17a908-0x37);}yield*this[_0x145377(0x3b7,_0x4d3e9a._0x34e75e,_0x4d3e9a._0x2ba4b1,_0x4d3e9a._0x4dd720)](_0x52e420,_0x3c2df7,_0x411dbe);}async[_0x22bdb8(0x148,0x21f,0x1fc,0x15d)](_0xe3552d,_0x4115e3,_0xd8a0b9){const _0x8f3279={_0x9ab9a5:0x244,_0x3bf86b:0x256,_0x59cb08:0x2c0,_0x46c52c:0x419,_0x4f1b77:0x333,_0x88f757:0x212,_0x40ba2f:0x1c6,_0x3c6f63:0x21b,_0x2218e8:0x1fb,_0x789735:0x37f,_0x29fce2:0x252,_0x173cd3:0x25c,_0x5589b3:0x1fe,_0x2fd6be:0x2b7,_0xb22d40:0x356,_0x8a4652:0x16b,_0x186c73:0x243,_0x58f8a2:0x102,_0x53bb38:0x326,_0x7645ce:0x186,_0x3161bf:0x1ec,_0x4e659d:0x29c,_0x300680:0x15f,_0x6e1d51:0x2c1,_0xb687d7:0x299,_0x167598:0x79,_0xe3eea:0x146,_0x3a7cb1:0x17f},_0x55e472={_0x51aab7:0x15a,_0x2655a0:0x340},_0x339a8e={_0x4a2f47:0xf3};function _0x541b6a(_0x49f29c,_0x49a459,_0x4f1a0b,_0x5c95b0){return _0x22bdb8(_0x49f29c-_0x339a8e._0x4a2f47,_0x49a459-0x135,_0x5c95b0,_0x5c95b0-0xe0);}const _0x4d553e=this[_0xb33e49(_0x8f3279._0x9ab9a5,0x2ba,_0x8f3279._0x3bf86b,_0x8f3279._0x59cb08)](_0xe3552d),_0xbcf0b0=this[_0xb33e49(0x1cd,0x142,0x2b4,0x1ca)](_0x4115e3);if(_0xbcf0b0['transport']===_0xb33e49(0x367,0x293,_0x8f3279._0x46c52c,_0x8f3279._0x4f1b77)){const _0x5acc2b=await this[_0x541b6a(_0x8f3279._0x88f757,0x259,0x304,_0x8f3279._0x40ba2f)](_0x4d553e,_0xbcf0b0,![],_0xd8a0b9);if(!_0x5acc2b['ok'])throw await this[_0x541b6a(_0x8f3279._0x3c6f63,0x328,0x321,0x2b7)](_0x5acc2b);if(!_0xbcf0b0['parseResponse'])throw new Error(_0xb33e49(0x2c1,_0x8f3279._0x2218e8,_0x8f3279._0x789735,_0x8f3279._0x29fce2)+_0x4115e3+_0xb33e49(0x2d4,_0x8f3279._0x173cd3,_0x8f3279._0x5589b3,_0x8f3279._0x2fd6be));return _0xbcf0b0[_0xb33e49(0x26a,_0x8f3279._0xb22d40,_0x8f3279._0x8a4652,0x2f9)](await _0x5acc2b[_0xb33e49(0x1e0,0x21a,_0x8f3279._0x186c73,_0x8f3279._0x58f8a2)](),_0x4d553e);}let _0x442a0f;for await(const _0xa70d62 of this[_0x541b6a(0x2e0,0x290,0x214,_0x8f3279._0x53bb38)](_0x4d553e,_0x4115e3,_0xd8a0b9)){_0xa70d62[_0x541b6a(0x199,0x25b,0x270,_0x8f3279._0x7645ce)]===_0xb33e49(_0x8f3279._0x3161bf,0x2b4,0x2f2,_0x8f3279._0x4e659d)&&(_0x442a0f=_0xa70d62[_0x541b6a(0x1e6,_0x8f3279._0x300680,0xf3,0x22b)]);}function _0xb33e49(_0x4ffab2,_0x3d6212,_0x2d5600,_0x4b1d10){return _0x101ac3(_0x4ffab2-_0x55e472._0x51aab7,_0x3d6212-0x19c,_0x3d6212,_0x4ffab2- -_0x55e472._0x2655a0);}if(!_0x442a0f)throw new Error(_0xb33e49(_0x8f3279._0x6e1d51,_0x8f3279._0xb687d7,0x2a5,0x356)+_0x4115e3+_0x541b6a(_0x8f3279._0x167598,_0x8f3279._0xe3eea,_0x8f3279._0x3a7cb1,0x56));return _0x442a0f;}async*['streamViaSurface'](_0x29d523,_0x2f493d,_0x6c759f){const _0x4fc136={_0x27a2c8:0x460,_0x13b075:0x4b2,_0x24b705:0x4f9,_0xc8abc1:0x3cc,_0x2053a2:0x756,_0x407cce:0x5ed,_0x3a260d:0x685,_0x304320:0x71c,_0x13e847:0x6d7,_0x84cae9:0x605,_0x4ed85c:0x66e,_0x42bb9e:0x5e5,_0x3bc430:0x633,_0x1eb37f:0x453,_0x537b29:0x5b5,_0x31a8e1:0x349,_0x5a6772:0x439,_0x40c62b:0x3c2,_0x5df4d9:0x3d5,_0x15cf6e:0x593},_0x343fe3={_0x32980d:0x96},_0x4162ef={_0x2d08b3:0x78};function _0x5042a6(_0x1c1f1b,_0x5dcc00,_0x7cc0e6,_0x37441d){return _0x22bdb8(_0x1c1f1b-0x41,_0x37441d-0x203,_0x5dcc00,_0x37441d-_0x4162ef._0x2d08b3);}const _0x4780dd=this[_0x43c466(_0x4fc136._0x27a2c8,0x533,0x42a,0x442)](_0x29d523),_0x5b0530=this[_0x43c466(_0x4fc136._0x13b075,0x4bc,_0x4fc136._0x24b705,_0x4fc136._0xc8abc1)](_0x2f493d);if(_0x5b0530[_0x43c466(_0x4fc136._0x2053a2,0x65e,_0x4fc136._0x407cce,_0x4fc136._0x3a260d)]===_0x43c466(_0x4fc136._0x304320,0x656,_0x4fc136._0x13e847,_0x4fc136._0x84cae9)){const _0x5eba62=await this[_0x43c466(0x602,_0x4fc136._0x4ed85c,_0x4fc136._0x42bb9e,_0x4fc136._0x3bc430)](_0x4780dd,_0x2f493d,_0x6c759f);yield{'type':_0x43c466(0x5d7,0x4db,_0x4fc136._0x1eb37f,_0x4fc136._0x537b29),'response':_0x5eba62};return;}function _0x43c466(_0x507dbc,_0x590ca7,_0x54d2a2,_0x46dc51){return _0x22bdb8(_0x507dbc-0x29,_0x590ca7-0x44f,_0x507dbc,_0x46dc51-_0x343fe3._0x32980d);}if(_0x5b0530['transport']===_0x5042a6(_0x4fc136._0x31a8e1,_0x4fc136._0x5a6772,0x3e9,0x3d7)){yield*this['streamHttpSurface'](_0x4780dd,_0x5b0530,_0x6c759f);return;}yield*this[_0x5042a6(0x373,_0x4fc136._0x40c62b,0x4a3,_0x4fc136._0x5df4d9)](_0x4780dd,_0x5b0530,_0x6c759f?.[_0x43c466(0x590,0x618,_0x4fc136._0x15cf6e,0x6bf)]);}async[_0x101ac3(0x544,0x695,0x619,0x5d0)](_0x196aed){const _0x318ac3={_0x2d358b:0x2da,_0x12c1e4:0x468},_0x960162={_0x1a06d0:0x9e,_0x1c7e00:0x362,_0xb7e303:0x492,_0x404e9b:0x363,_0xfdb176:0x38c,_0x44927e:0x2ea,_0x2c894e:0x3e4,_0x4acc30:0x1c9,_0x1b3c8f:0xd1,_0xb1d578:0x1cf,_0x211506:0x345,_0x120de4:0x11,_0x57dbea:0x98,_0x5f450d:0x4bf,_0x29a83f:0x179,_0x3b0326:0x5a,_0x5db550:0x11,_0x18e9b6:0x79,_0x22c3ac:0x176,_0x1c8116:0x289,_0x2c1ad8:0x1ac,_0x54bdf3:0x1a2},_0x3c893b={_0x378f43:0x9e};function _0x4711ea(_0x4652cd,_0x1a7af3,_0x3b7f7d,_0x1100ac){return _0x101ac3(_0x4652cd-0x144,_0x1a7af3-0x2e,_0x3b7f7d,_0x1100ac- -0x289);}const _0x2d4a5d=async()=>{const _0x54bb22=this[_0x4c41c8(_0x960162._0x1a06d0,0x47,0x149,0x117)]?await this[_0xbb6ac5(0x398,0x28e,0x312,0x387)]['resolve'](_0x196aed['signal']):void 0x0,_0x16950d=this['providerAdapter'][_0xbb6ac5(0x362,0x345,0x331,_0x960162._0x1c7e00)](this['apiKey'],_0x54bb22);function _0x4c41c8(_0x5a92cb,_0x7d943b,_0x57171f,_0xdfe5da){return _0x36b7(_0x57171f- -0x1a0,_0x5a92cb);}function _0xbb6ac5(_0x1ec5b2,_0x3445e8,_0x4e972a,_0x1f7817){return _0x36b7(_0x1f7817-_0x3c893b._0x378f43,_0x3445e8);}if(!_0x16950d)throw this[_0xbb6ac5(_0x960162._0xb7e303,0x3b9,_0x960162._0x404e9b,_0x960162._0xfdb176)]();const _0x3d347d=await this[_0xbb6ac5(0x39e,_0x960162._0x44927e,0x3a1,_0x960162._0x2c894e)]({'body':_0x196aed[_0x4c41c8(0x17a,_0x960162._0x4acc30,_0x960162._0x1b3c8f,_0x960162._0xb1d578)],'credential':_0x16950d,'session':_0x54bb22,'stream':![]},{'accept':_0x196aed[_0x4c41c8(0x192,0x20b,0x19e,0x1b0)]??'application/json','includeContentType':_0x196aed[_0xbb6ac5(0x310,0x31e,_0x960162._0x211506,0x386)]===_0x4c41c8(_0x960162._0x120de4,0x1cf,0x105,_0x960162._0x57dbea)});return this[_0xbb6ac5(0x3d7,_0x960162._0x5f450d,0x32e,0x42d)](''+this['providerAdapter']['resolveBaseUrl'](this['baseUrl'],_0x54bb22)+_0x196aed[_0x4c41c8(_0x960162._0x29a83f,_0x960162._0x3b0326,0x93,0xfa)],{'method':_0x196aed['method'],'headers':_0x3d347d,..._0x196aed[_0x4c41c8(-_0x960162._0x5db550,-0x1c,0xd1,-0x3a)]!==void 0x0?{'body':JSON[_0x4c41c8(0xd5,_0x960162._0x18e9b6,_0x960162._0x22c3ac,_0x960162._0x57dbea)](_0x196aed['body'])}:{},'signal':_0x196aed[_0x4c41c8(0xf7,_0x960162._0x1c8116,_0x960162._0x2c1ad8,_0x960162._0x54bdf3)]});};return await this[_0x4711ea(_0x318ac3._0x2d358b,_0x318ac3._0x12c1e4,0x2ee,0x3b0)](_0x2d4a5d,_0x196aed);}[_0x101ac3(0x5c0,0x641,0x661,0x5b5)](_0x329f11,_0x58180c){const _0x5203fd={_0x54855d:0x84,_0x1ba5fa:0xf4,_0x2b1793:0x89,_0x3c5c51:0x19a,_0x4be0ce:0x228,_0x5b8239:0xc0,_0xfc6013:0xa9,_0x328988:0x87,_0x425a78:0x55,_0x41b9b3:0x196},_0x58cf98={_0x3a96f5:0x1c1},_0x19cea6={_0x513bd6:0x44},_0x5819e5=_0x329f11?.[_0x5e90ab(-_0x5203fd._0x54855d,-0x14e,-_0x5203fd._0x1ba5fa,-0xe3)][_0x5e90ab(_0x5203fd._0x2b1793,-0x8,0x7f,0x94)](_0x5e90ab(-0x210,-_0x5203fd._0x3c5c51,-0x245,-_0x5203fd._0x4be0ce));function _0x5e90ab(_0x2e25a9,_0x116c9f,_0x2f7c94,_0x3669ba){return _0x101ac3(_0x2e25a9-0x5d,_0x116c9f-_0x19cea6._0x513bd6,_0x2e25a9,_0x116c9f- -0x692);}if(_0x5819e5){const _0x32bf39=Number(_0x5819e5);if(Number[_0x5e90ab(-_0x5203fd._0x5b8239,-_0x5203fd._0xfc6013,-0x33,-_0x5203fd._0x328988)](_0x32bf39)&&_0x32bf39>=0x0)return _0x32bf39*0x3e8;const _0x1ee235=Date['parse'](_0x5819e5);if(Number['isFinite'](_0x1ee235))return Math[_0x5e90ab(0x53,-0x76,-_0x5203fd._0x425a78,-0x21)](0x0,_0x1ee235-Date[_0x5e90ab(-0x213,-_0x5203fd._0x41b9b3,-0x150,-0x1a5)]());}const _0x53135f=DEFAULT_RETRY_DELAY_MS*0x2**_0x58180c;function _0x1688de(_0x1321c6,_0x5d9575,_0x381af0,_0x97bef4){return _0x22bdb8(_0x1321c6-_0x58cf98._0x3a96f5,_0x381af0- -0x14f,_0x1321c6,_0x97bef4-0x1bc);}if(_0x53135f<RETRY_DELAY_STEP_CAP_MS)return _0x53135f;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x58180c-0x5);}['shouldRetryResponse'](_0x112cd7){const _0x1df2b6={_0x2c4ff4:0x387,_0x331f75:0xf6,_0x3416e9:0x188,_0x2842c2:0x1b4,_0x962595:0x17c},_0x1421cd={_0x18788d:0x204},_0x566f18={_0x44bdde:0x296};function _0x526f6b(_0x23cc88,_0x30dacb,_0xfff9a4,_0x542e39){return _0x22bdb8(_0x23cc88-0x12e,_0x30dacb-_0x566f18._0x44bdde,_0x542e39,_0x542e39-0x25);}function _0x31f7af(_0x4a8824,_0x2b25f5,_0x4bc31d,_0x51ea33){return _0x22bdb8(_0x4a8824-0x150,_0x4bc31d- -_0x1421cd._0x18788d,_0x4a8824,_0x51ea33-0xef);}return RETRYABLE_HTTP_STATUSES[_0x526f6b(0x4b5,0x413,_0x1df2b6._0x2c4ff4,0x327)](_0x112cd7[_0x31f7af(-_0x1df2b6._0x331f75,-_0x1df2b6._0x3416e9,-_0x1df2b6._0x2842c2,-_0x1df2b6._0x962595)]);}['shouldRetryRequestError'](_0x378f3a){return!isAbortError(_0x378f3a)&&_0x378f3a instanceof TypeError;}[_0x22bdb8(0x2a6,0x1e0,0x184,0x198)](_0x389fc7){const _0x5a86ef={_0x2193af:0x296},_0x5a5fcf={_0x14b285:0x1ec,_0x2bb4c0:0x418};function _0x36c7a1(_0x234b17,_0x3dc771,_0x5542a5,_0x57ea78){return _0x101ac3(_0x234b17-0xde,_0x3dc771-_0x5a5fcf._0x14b285,_0x5542a5,_0x3dc771- -_0x5a5fcf._0x2bb4c0);}return this[_0x36c7a1(0x339,_0x5a86ef._0x2193af,0x1d4,0x21a)](_0x389fc7)||isRetryableProviderStreamEventError(_0x389fc7);}async['waitForRetry'](_0x571b68,_0x568e49){const _0x539490={_0x2ca31a:0x47e,_0x26d6d8:0x381};throwIfAborted(_0x568e49),await new Promise((_0x141801,_0x39ab8e)=>{const _0x47440d={_0x2450e6:0x189};let _0x40b96a=![];const _0x42a314=addAbortListener(_0x568e49,()=>{if(_0x40b96a)return;function _0x3ec4f9(_0x134909,_0x3676db,_0x20d70b,_0x1d1ac0){return _0x36b7(_0x1d1ac0-_0x47440d._0x2450e6,_0x3676db);}_0x40b96a=!![],clearTimeout(_0x105a88),_0x39ab8e(toAbortError(_0x568e49?.[_0x3ec4f9(_0x539490._0x2ca31a,_0x539490._0x26d6d8,0x470,0x404)]));}),_0x105a88=setTimeout(()=>{_0x40b96a=!![],_0x42a314(),_0x141801();},_0x571b68);}),throwIfAborted(_0x568e49);}async['sendWithRetries'](_0x3cdd3f,_0x4fa5ef={}){const _0xa07e78={_0x288b13:0x399,_0x39b8f5:0x10,_0x3fd30c:0x53,_0x21d0ff:0xa,_0x3d29cf:0x8f,_0x48dd50:0x30,_0x228a86:0x8c,_0x345a0a:0x3a,_0x906484:0x15f,_0x3b5750:0xd4,_0x59ba9b:0x300,_0x51b141:0x36c,_0x54e586:0x3e5,_0x401fc8:0x40a,_0xf128ce:0x2ed,_0x33b356:0x41b,_0x4d524a:0x376},_0x2b2bbd={_0x5852ab:0x176},_0x371530={_0x5bb143:0xb2},{signal:_0x212b10}=_0x4fa5ef;let _0x228ccb=![];function _0x49c573(_0x3d6e80,_0x2a75a2,_0x516320,_0x5a7cdb){return _0x22bdb8(_0x3d6e80-_0x371530._0x5bb143,_0x5a7cdb- -0x13a,_0x3d6e80,_0x5a7cdb-0xc7);}function _0x398e78(_0x188bac,_0xbd961e,_0x17e20b,_0x21a741){return _0x101ac3(_0x188bac-0x149,_0xbd961e-0x3,_0x17e20b,_0x21a741- -_0x2b2bbd._0x5852ab);}for(let _0x446e78=0x0;_0x446e78<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x446e78+=0x1){throwIfAborted(_0x212b10);try{const _0xa70bb4=await _0x3cdd3f();if(_0xa70bb4['status']===0x191&&this['sessionManager']&&!_0x228ccb){_0x228ccb=!![],this[_0x398e78(0x560,0x582,_0xa07e78._0x288b13,0x490)][_0x49c573(_0xa07e78._0x39b8f5,-0xa0,_0xa07e78._0x3fd30c,_0xa07e78._0x21d0ff)]();continue;}if(!this[_0x49c573(-_0xa07e78._0x3d29cf,0x79,_0xa07e78._0x48dd50,-0x4e)](_0xa70bb4)||_0x446e78===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0xa70bb4;const _0x3aebbe=this[_0x49c573(-0xff,-_0xa07e78._0x228a86,0xca,-0x25)](_0xa70bb4,_0x446e78);await this[_0x49c573(0x2d,-_0xa07e78._0x345a0a,-_0xa07e78._0x906484,-0x7f)](_0x3aebbe,_0x212b10);}catch(_0x5cd0ae){if(!this[_0x49c573(0x16e,0x13,-0xa,_0xa07e78._0x3b5750)](_0x5cd0ae)||_0x446e78===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x5cd0ae;const _0x27ee2e=this['getRetryDelayMs'](void 0x0,_0x446e78);await this[_0x398e78(_0xa07e78._0x59ba9b,_0xa07e78._0x51b141,0x454,_0xa07e78._0x54e586)](_0x27ee2e,_0x212b10);}}throw new Error(_0x398e78(_0xa07e78._0x401fc8,_0xa07e78._0xf128ce,_0xa07e78._0x33b356,_0xa07e78._0x4d524a));}[_0x22bdb8(0x1fd,0x16b,0x246,0x143)](){const _0x29233b={_0x44969e:0x3a4,_0x2469a8:0x440,_0x253781:0x547,_0x230a22:0x5ad},_0x4dd82d={_0x372ff9:0x111,_0xde6c66:0x192},_0x1de4a0={_0x1d367d:0x5,_0x4ab406:0x1b4};function _0x4b4e50(_0x4b765b,_0x33f50f,_0x1c7145,_0x2fe813){return _0x22bdb8(_0x4b765b-_0x1de4a0._0x1d367d,_0x2fe813-0x22b,_0x1c7145,_0x2fe813-_0x1de4a0._0x4ab406);}function _0x5b765d(_0x541e04,_0x370029,_0x428420,_0x509264){return _0x22bdb8(_0x541e04-_0x4dd82d._0x372ff9,_0x509264-0x374,_0x428420,_0x509264-_0x4dd82d._0xde6c66);}return this[_0x5b765d(0x54e,0x36b,_0x29233b._0x44969e,_0x29233b._0x2469a8)][_0x5b765d(_0x29233b._0x253781,_0x29233b._0x230a22,0x573,0x4df)]();}async[_0x22bdb8(0xce,0x1c3,0x26e,0x123)](_0x441d4d,_0x2b9e8e){const _0x3474a6={_0x292568:0x1b,_0x372f9a:0x640,_0xa34ee:0x5f5,_0x3ec53b:0x586},_0x5e2f34={_0x506753:0xa9,_0x2d0e66:0x7b},_0x1ec163={_0x4a4842:0x3b0};function _0x467033(_0x396a49,_0xd405af,_0x57c306,_0x2e1779){return _0x22bdb8(_0x396a49-0x98,_0x2e1779-_0x1ec163._0x4a4842,_0x57c306,_0x2e1779-0x10e);}function _0x30b7de(_0x1c98af,_0x4dcfdb,_0x1af65a,_0x531eeb){return _0x22bdb8(_0x1c98af-_0x5e2f34._0x506753,_0x1af65a- -0x45,_0x4dcfdb,_0x531eeb-_0x5e2f34._0x2d0e66);}return await this[_0x30b7de(-0x69,-0x37,0x87,-_0x3474a6._0x292568)][_0x467033(_0x3474a6._0x372f9a,_0x3474a6._0xa34ee,_0x3474a6._0x3ec53b,0x573)](_0x441d4d,_0x2b9e8e);}[_0x22bdb8(0xfa,0x10f,0x6,0x91)](_0x10fb91){const _0x42e5c0={_0x30d4d6:0x3b3,_0x3b7a63:0x307},_0x197d54={_0x8b429f:0x1b9};function _0x578255(_0x215ca2,_0x18ee0c,_0x2207e3,_0x28f8ad){return _0x22bdb8(_0x215ca2-0x49,_0x28f8ad-0x1f8,_0x18ee0c,_0x28f8ad-_0x197d54._0x8b429f);}return this['providerAdapter'][_0x578255(0x31d,0x3ac,_0x42e5c0._0x30d4d6,_0x42e5c0._0x3b7a63)](_0x10fb91);}async['toApiError'](_0xffc54f){const _0x396633={_0x4a0cd6:0xc4,_0x48b0d5:0x5f,_0x1158a6:0xd},_0x56ef84={_0x2bfe9b:0x16c,_0x548bac:0x1ef};function _0x51dcd6(_0x3ac49f,_0x542e50,_0x350a02,_0x52819c){return _0x22bdb8(_0x3ac49f-_0x56ef84._0x2bfe9b,_0x350a02- -0xd9,_0x542e50,_0x52819c-_0x56ef84._0x548bac);}return await this[_0x51dcd6(-_0x396633._0x4a0cd6,-_0x396633._0x48b0d5,-_0x396633._0x1158a6,-0xec)]['toApiError'](_0xffc54f);}[_0x22bdb8(0x47,0x6d,0x75,0x103)](_0x171f50){const _0x513195={_0x534a21:0x3cb,_0x544d89:0x378,_0x2858da:0x2d9,_0x463da9:0x404,_0x5878e2:0xca,_0xfb24da:0x117,_0x49a440:0xa9},_0x58316f={_0x3b69c3:0x197,_0x2fa2dd:0x6dc},_0x2be586={_0x2ad6c3:0x226,_0x5b235e:0x107},_0x508c7c=this[_0x56ad17(_0x513195._0x534a21,_0x513195._0x544d89,_0x513195._0x2858da,_0x513195._0x463da9)]['get'](_0x171f50);function _0x56ad17(_0x2ad940,_0x88a2f0,_0x2e4af6,_0x3bec53){return _0x22bdb8(_0x2ad940-0x8e,_0x2ad940-_0x2be586._0x2ad6c3,_0x3bec53,_0x3bec53-_0x2be586._0x5b235e);}if(!_0x508c7c)throw new Error(_0x5b6ca9(-_0x513195._0x5878e2,-_0x513195._0xfb24da,-_0x513195._0x49a440,-0xc1)+_0x171f50);function _0x5b6ca9(_0x3fe5b5,_0x537389,_0x3bf059,_0x51790d){return _0x101ac3(_0x3fe5b5-0x31,_0x537389-_0x58316f._0x3b69c3,_0x51790d,_0x537389- -_0x58316f._0x2fa2dd);}return _0x508c7c;}['withPricingProviderId'](_0x37c3e1){const _0x3ab3dd={_0x1c0935:0x11,_0x1323a6:0x118,_0x5d794d:0x4a,_0x16ff11:0x16,_0x51ba55:0x7e},_0x24584a={_0x30e433:0x69,_0x2d165b:0x12e,_0x231c7e:0xbc};function _0x21a95f(_0x633e06,_0x594323,_0x134000,_0x263015){return _0x22bdb8(_0x633e06-0x167,_0x594323- -0x84,_0x134000,_0x263015-0x7b);}const {pricingProviderId:_0xbee33c,..._0x351527}=_0x37c3e1[_0x21a95f(_0x3ab3dd._0x1c0935,_0x3ab3dd._0x1323a6,0xec,0x143)];function _0x2f8b1a(_0x489a6f,_0x2dae9e,_0x14cdb3,_0x44ff1e){return _0x22bdb8(_0x489a6f-_0x24584a._0x30e433,_0x14cdb3- -_0x24584a._0x2d165b,_0x2dae9e,_0x44ff1e-_0x24584a._0x231c7e);}return{..._0x37c3e1,'metadata':{..._0x351527,...this[_0x2f8b1a(-0x52,-0x12b,-0x94,-0x5e)]!==void 0x0?{'pricingProviderId':this[_0x21a95f(_0x3ab3dd._0x5d794d,_0x3ab3dd._0x16ff11,-0xb4,-_0x3ab3dd._0x51ba55)]}:{}}};}async[_0x101ac3(0x5aa,0x582,0x59f,0x4b8)](_0x2fafa9,_0x113179){const _0x2fb4fe={_0x1b2c3e:0x71f,_0x1b6ad9:0x68c,_0x26e1c0:0x69e,_0x466842:0x706,_0x482e0c:0x643,_0x168075:0x59b,_0x24cf02:0xc,_0x5e82a4:0x1e9,_0x5ae53d:0x5f9,_0x481848:0x61b,_0x476d34:0x5d7,_0x114723:0x60c,_0x24b283:0x6e6,_0x1cfc78:0x6a5,_0x111f06:0x604,_0x183aba:0x2b,_0x46e6a6:0x117,_0x568a99:0x633,_0x2f6c80:0x652,_0x37a1ec:0x547,_0x35d712:0x723,_0x3e93d4:0x729},_0x135b74={_0x4f249a:0xfe,_0x363ef9:0x187};function _0x468f8f(_0x54c071,_0x57d908,_0x388515,_0x1fd1d5){return _0x22bdb8(_0x54c071-0x19e,_0x388515- -_0x135b74._0x4f249a,_0x1fd1d5,_0x1fd1d5-_0x135b74._0x363ef9);}const _0x2866a9=toModelRequest(_0x2fafa9),_0x47f892=await prepareProviderRequest(_0x2866a9,{'sessionManager':this[_0x2ec7ba(_0x2fb4fe._0x1b2c3e,_0x2fb4fe._0x1b6ad9,_0x2fb4fe._0x26e1c0,_0x2fb4fe._0x466842)],'requestMutators':this[_0x2ec7ba(_0x2fb4fe._0x482e0c,0x638,_0x2fb4fe._0x168075,0x522)],'signal':_0x113179}),_0x12b01f=this[_0x468f8f(-0x5,_0x2fb4fe._0x24cf02,0x108,_0x2fb4fe._0x5e82a4)](toChatRequest(_0x47f892[_0x2ec7ba(_0x2fb4fe._0x5ae53d,_0x2fb4fe._0x481848,_0x2fb4fe._0x476d34,0x512)]));function _0x2ec7ba(_0x130b67,_0x59ea81,_0x3fb3ee,_0x3d4361){return _0x101ac3(_0x130b67-0xb4,_0x59ea81-0xf3,_0x3d4361,_0x3fb3ee-0x98);}const _0xd95eff=this['providerAdapter'][_0x468f8f(0x8c,0xf6,0x43,-0xc7)](this[_0x2ec7ba(0x5d5,0x6b8,_0x2fb4fe._0x114723,0x6f4)],_0x47f892[_0x2ec7ba(_0x2fb4fe._0x24b283,0x681,0x729,0x821)]);if(!_0xd95eff)throw this['createMissingCredentialError']();return{'baseUrl':this[_0x2ec7ba(0x700,_0x2fb4fe._0x1cfc78,_0x2fb4fe._0x111f06,0x61e)][_0x468f8f(_0x2fb4fe._0x183aba,0x59,_0x2fb4fe._0x46e6a6,0x3b)](this[_0x2ec7ba(0x6f5,_0x2fb4fe._0x568a99,_0x2fb4fe._0x2f6c80,_0x2fb4fe._0x37a1ec)],_0x47f892[_0x468f8f(0x15a,0x110,0xf3,0x8c)]),'credential':_0xd95eff,'request':_0x12b01f,'session':_0x47f892[_0x2ec7ba(0x7b4,_0x2fb4fe._0x35d712,_0x2fb4fe._0x3e93d4,0x64e)]};}[_0x101ac3(0x583,0x67c,0x53a,0x584)](_0x5768ed){const _0x30ee6f={_0x54ea95:0x3f4,_0x485507:0x31d,_0x2dd88d:0x340,_0x1d7d34:0x2e6,_0x39da53:0x25c,_0x23bcb9:0x296,_0x506b23:0x549,_0x280a16:0x61b},_0x1fe708={_0x1b9935:0xd5};function _0x1b9b0b(_0x2a7e98,_0x296c63,_0x13f935,_0x91964){return _0x22bdb8(_0x2a7e98-0x52,_0x296c63-0x246,_0x13f935,_0x91964-0x4f);}function _0x3733f7(_0x5434ea,_0x31a970,_0x4c1ae0,_0x29f424){return _0x22bdb8(_0x5434ea-_0x1fe708._0x1b9935,_0x31a970-0x472,_0x5434ea,_0x29f424-0x114);}return{...structuredClone(_0x5768ed),..._0x5768ed[_0x1b9b0b(_0x30ee6f._0x54ea95,_0x30ee6f._0x485507,0x2dd,_0x30ee6f._0x2dd88d)]===void 0x0&&this[_0x1b9b0b(_0x30ee6f._0x1d7d34,0x31d,_0x30ee6f._0x39da53,_0x30ee6f._0x23bcb9)]!==void 0x0?{'reasoning':structuredClone(this[_0x3733f7(0x4e8,_0x30ee6f._0x506b23,0x641,_0x30ee6f._0x280a16)])}:{}};}async[_0x101ac3(0x59e,0x5b1,0x662,0x5c4)](_0x288471,_0x50280b,_0x13a2a4,_0x8170ef={},_0x57c68a=!![]){const _0x20d94f={_0x3736e3:0x2ae,_0xbde13a:0x387},_0x52591e={_0x11bc45:0xe3,_0x1bf5db:0xa7,_0x12ddc1:0x11e,_0x217f8c:0xa,_0x197454:0x4d,_0x5ad4c6:0x297,_0x117875:0x365,_0x628ea9:0x21b,_0x5855dc:0x239,_0x3cb5ba:0x273,_0x3b883e:0x331,_0x1b5ab5:0x35b,_0x1e3f9a:0x2c9,_0x447ef0:0x36d,_0x483cf7:0x1f4,_0x4e2089:0x255,_0x2dd77c:0x2e3,_0x28bdc8:0x22b,_0x507698:0x2a,_0x2f5f07:0x2a2,_0xa005a5:0x201,_0x50f2d2:0x136,_0x5697d8:0x1ae,_0x9492a9:0x188,_0x3da511:0xf4,_0xd93940:0x22e,_0x2d6517:0x2dd,_0x1626c5:0x328,_0x3d770:0x147,_0x3a1516:0x65,_0x5bfa18:0x73,_0x181dac:0x14e,_0x31246f:0x14f,_0x3e5723:0x244,_0x2c0cd8:0x1f3,_0x311086:0xe9,_0x1d312d:0x1be,_0x3d9908:0x26c},_0x3d3df1={_0x134353:0x156},_0x2344a9={_0x401648:0x116,_0xde3977:0x3bd};function _0x14fa4c(_0x42ee51,_0x5da83e,_0x4929b6,_0x272a7c){return _0x101ac3(_0x42ee51-0x191,_0x5da83e-_0x2344a9._0x401648,_0x5da83e,_0x272a7c- -_0x2344a9._0xde3977);}const {signal:_0xec8e37}=_0x8170ef,_0x288243=async()=>{function _0x253eb5(_0x5497fa,_0x57ad7c,_0x48fd1c,_0x78a57){return _0x36b7(_0x78a57- -_0x3d3df1._0x134353,_0x57ad7c);}const _0x21ee55=await this[_0x3eca17(_0x52591e._0x11bc45,_0x52591e._0x1bf5db,_0x52591e._0x12ddc1,0xf8)](_0x288471,_0xec8e37);function _0x3eca17(_0x3b9bd1,_0xd20b,_0x1cf5f0,_0x3eeb8e){return _0x36b7(_0x1cf5f0- -0x7d,_0x3eeb8e);}let _0x40dc3f;try{_0x40dc3f=_0x50280b[_0x253eb5(-0x12,0x8,_0x52591e._0x217f8c,_0x52591e._0x197454)](_0x21ee55[_0x3eca17(_0x52591e._0x5ad4c6,0x1f5,0x1a5,0x202)]);}catch(_0x8f03dc){if(_0x8f03dc instanceof Error)throw new ProviderRequestConstructionError(_0x8f03dc[_0x3eca17(0x2cd,0x327,0x263,_0x52591e._0x117875)]);throw _0x8f03dc;}if(!_0x40dc3f['path'])throw new ProviderRequestConstructionError(_0x253eb5(_0x52591e._0x628ea9,_0x52591e._0x5855dc,_0x52591e._0x3cb5ba,0x18e)+_0x50280b['id']+_0x253eb5(0x1f8,0x154,0x104,0x1d9));const _0x52051c=await this[_0x3eca17(_0x52591e._0x3b883e,_0x52591e._0x1b5ab5,_0x52591e._0x1e3f9a,_0x52591e._0x447ef0)]({'request':_0x21ee55['request'],'body':_0x40dc3f[_0x3eca17(0x1f3,0x11d,_0x52591e._0x483cf7,_0x52591e._0x4e2089)],'credential':_0x21ee55[_0x3eca17(_0x52591e._0x2dd77c,0x281,0x20e,0x17d)],'session':_0x21ee55[_0x253eb5(_0x52591e._0x28bdc8,0x22c,0x112,0x21e)],'stream':_0x13a2a4},{'accept':_0x40dc3f[_0x253eb5(0x1e9,0x1a5,0x294,0x1e8)]??(_0x13a2a4?_0x253eb5(_0x52591e._0x507698,0x16c,0x7e,0xd4):_0x3eca17(0xf5,_0x52591e._0x2f5f07,_0x52591e._0xa005a5,_0x52591e._0x50f2d2)),'includeContentType':_0x40dc3f[_0x253eb5(_0x52591e._0x5697d8,0xe8,0x14,0x11b)]!==void 0x0});for(const [_0x1b3490,_0x251fde]of Object['entries'](_0x40dc3f[_0x3eca17(_0x52591e._0x9492a9,0x1da,0x1aa,0x24f)]??{})){_0x52051c[_0x3eca17(_0x52591e._0x3da511,0x16e,0x143,_0x52591e._0xd93940)](_0x1b3490,_0x251fde);}return this[_0x253eb5(_0x52591e._0x2d6517,0x258,_0x52591e._0x1626c5,_0x52591e._0x5855dc)](''+_0x21ee55[_0x253eb5(0x254,0x1d1,0x9a,_0x52591e._0x3d770)]+_0x40dc3f[_0x253eb5(_0x52591e._0x3a1516,_0x52591e._0x5bfa18,0xb,0xdd)],{'method':_0x253eb5(0x22c,_0x52591e._0x181dac,0x58,_0x52591e._0x31246f),'headers':_0x52051c,..._0x40dc3f[_0x3eca17(0x2d9,0x1a0,0x1f4,_0x52591e._0x3e5723)]!==void 0x0?{'body':JSON[_0x253eb5(_0x52591e._0x2c0cd8,_0x52591e._0x311086,_0x52591e._0x1d312d,0x1c0)](_0x40dc3f[_0x3eca17(_0x52591e._0x3d9908,0x1b8,0x1f4,0x204)])}:{},'signal':_0xec8e37});};return _0x57c68a?await this[_0x14fa4c(_0x20d94f._0x3736e3,_0x20d94f._0xbde13a,0x32e,0x27c)](_0x288243,_0x8170ef):await _0x288243();}async*[_0x101ac3(0x747,0x6e9,0x665,0x6a4)](_0x41a148,_0x2eae5f,_0x10a371={}){const _0x23cf25={_0xef5485:0x3a1,_0x352a44:0x468,_0x5cdb2f:0x4e5,_0x37c19e:0x2dd,_0x14f377:0x3d3,_0x2bde5c:0x401,_0x97d9e9:0x537,_0x4b52be:0x627,_0x40c88b:0x5c8,_0x469dde:0x4c0,_0x597131:0x50f,_0x585c73:0x3a9,_0x4de4b6:0x30c,_0x1a9402:0x4d6,_0x589ae5:0x322,_0x37cb4f:0x3f8,_0x359b30:0x4cb,_0x2e81bd:0x400,_0x59e54f:0x394,_0x439d71:0x315,_0x2ebe6d:0x3f6,_0x2839ce:0x3b7,_0x9a5ad2:0x335,_0x27d64e:0x356,_0x2aa5be:0x306,_0x365fe7:0x397,_0x1045f6:0x4a0,_0x46aa7e:0x45b,_0x4e5c2c:0x560,_0x13c126:0x61a,_0x31a798:0x4ca,_0x26f091:0x496,_0x1d208a:0x413,_0xf11071:0x34e,_0x32ef19:0x357,_0x276c85:0x2c9,_0x26d034:0x598,_0x17c5b3:0x386,_0x572fe9:0x354,_0x57dfa7:0x441,_0x9b2429:0x4a1,_0x16476c:0x469,_0x5ce552:0x4a8,_0x5c5a5d:0x46a,_0x1f0f88:0x54b,_0x40c927:0x271},_0x497f99={_0x29f82b:0xce,_0x433d2e:0x205},_0x3bdda7={_0x318139:0x6f,_0x2b2378:0x15c};function _0x3f5104(_0xe953d2,_0x2960b2,_0x4f3341,_0x17ee8f){return _0x101ac3(_0xe953d2-_0x3bdda7._0x318139,_0x2960b2-0x1d9,_0x17ee8f,_0x2960b2- -_0x3bdda7._0x2b2378);}const {signal:_0x30038e}=_0x10a371;function _0x11beea(_0x30a3b7,_0xec994a,_0x3d277d,_0xe94a0d){return _0x101ac3(_0x30a3b7-0x91,_0xec994a-_0x497f99._0x29f82b,_0x3d277d,_0xe94a0d- -_0x497f99._0x433d2e);}let _0x90110=![];for(let _0x562351=0x0;_0x562351<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x562351+=0x1){let _0x107113=![];try{const _0x33dc39=await this[_0x3f5104(_0x23cf25._0xef5485,_0x23cf25._0x352a44,0x4e2,_0x23cf25._0x5cdb2f)](_0x41a148,_0x2eae5f,!![],_0x10a371,![]);if(_0x33dc39[_0x3f5104(0x412,0x394,0x395,_0x23cf25._0x37c19e)]===0x191&&this['sessionManager']&&!_0x90110){_0x90110=!![],this[_0x11beea(0x39d,0x4c6,_0x23cf25._0x14f377,_0x23cf25._0x2bde5c)]['invalidate']();continue;}if(!_0x33dc39['ok']){const _0x4b4100=await this[_0x3f5104(0x441,_0x23cf25._0x97d9e9,_0x23cf25._0x4b52be,_0x23cf25._0x40c88b)](_0x33dc39);if(!this[_0x11beea(0x46b,0x2cb,0x3e2,0x387)](_0x33dc39)||_0x562351===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x4b4100;const _0x126f78=this[_0x3f5104(_0x23cf25._0x469dde,0x459,0x539,_0x23cf25._0x597131)](_0x33dc39,_0x562351),_0x566f4f={'type':_0x3f5104(_0x23cf25._0x585c73,0x386,_0x23cf25._0x4de4b6,0x2cd),'attempt':_0x562351+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x4b4100[_0x11beea(0x432,_0x23cf25._0x1a9402,_0x23cf25._0x589ae5,_0x23cf25._0x37cb4f)],'delayMs':_0x126f78,'reason':_0x11beea(0x52f,0x4cd,_0x23cf25._0x359b30,0x424),'status':_0x33dc39[_0x3f5104(_0x23cf25._0x2e81bd,_0x23cf25._0x59e54f,_0x23cf25._0x439d71,_0x23cf25._0x2ebe6d)]};yield _0x566f4f,await this[_0x11beea(_0x23cf25._0x2839ce,_0x23cf25._0x9a5ad2,0x25c,_0x23cf25._0x27d64e)](_0x126f78,_0x30038e);continue;}const _0x3cab0b=_0x2eae5f[_0x11beea(_0x23cf25._0x2aa5be,0x399,0x3c1,_0x23cf25._0x365fe7)]?.(_0x41a148);if(!_0x3cab0b?.['consumeSseEvent'])throw new Error('Surface\x20'+_0x2eae5f['id']+_0x11beea(_0x23cf25._0x1045f6,0x36e,0x49d,_0x23cf25._0x46aa7e));for await(const _0x3907cc of iterateSseEvents(_0x33dc39,_0x30038e)){const _0x28ab6b=_0x3cab0b[_0x3f5104(0x484,_0x23cf25._0x4e5c2c,0x5ae,_0x23cf25._0x13c126)](_0x3907cc);for(const _0x4e984b of _0x28ab6b){_0x107113=!![],yield _0x4e984b;}}if(_0x3cab0b[_0x3f5104(0x3de,_0x23cf25._0x31a798,0x436,0x511)]?.()===![])throw new ProviderStreamEventError(_0x11beea(0x47d,_0x23cf25._0x26f091,_0x23cf25._0x1d208a,0x3fc)+_0x2eae5f['id']+_0x3f5104(_0x23cf25._0xf11071,0x3e0,0x402,0x331),{'retryable':!![]});yield{'type':'done','response':_0x3cab0b[_0x3f5104(0x41a,_0x23cf25._0x32ef19,0x2f2,_0x23cf25._0x276c85)]()};return;}catch(_0x942721){const _0x30c51d=this[_0x3f5104(_0x23cf25._0x26d034,0x524,0x52e,0x509)](_0x942721);if(!_0x30c51d)throw _0x942721;_0x107113&&(yield{'type':'provider_stream_reset'});if(_0x562351===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x942721;const _0x5dfc71=this['getRetryDelayMs'](void 0x0,_0x562351),_0x1139c5={'type':_0x3f5104(0x487,_0x23cf25._0x17c5b3,0x475,_0x23cf25._0x572fe9),'attempt':_0x562351+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x942721 instanceof Error?_0x942721[_0x3f5104(_0x23cf25._0x57dfa7,_0x23cf25._0x9b2429,0x460,0x595)]:String(_0x942721),'delayMs':_0x5dfc71,'reason':this['shouldRetryRequestError'](_0x942721)?_0x3f5104(_0x23cf25._0x16476c,_0x23cf25._0x5ce552,_0x23cf25._0x5c5a5d,_0x23cf25._0x1f0f88):'stream_error'};yield _0x1139c5,await this[_0x11beea(_0x23cf25._0x40c927,0x2eb,0x3a2,0x356)](_0x5dfc71,_0x30038e);}}}async*[_0x22bdb8(0xdd,0x1d2,0x13c,0x2b5)](_0x4f87a0,_0x209d24,_0x23f0c8){const _0x252b3c={_0x604cd6:0x19c,_0x33d61c:0x124,_0x501efa:0x4d,_0x4ac051:0xf,_0x526951:0xf6,_0x7a56af:0xde,_0x3b5166:0x1f1,_0x2e665d:0x216,_0x551b50:0x26d,_0x5d5764:0x16d,_0x46c65a:0x80,_0x43ed71:0x139,_0x3b5852:0x1bc,_0x4664e5:0x116,_0x17fc4a:0x5d,_0x2d2e6c:0x185,_0x4d7e79:0x193,_0xdd9aba:0x13d,_0x1814b7:0x222,_0x19503e:0x1d2,_0x311f09:0x2cf,_0x4a00a8:0x6b,_0x428e2e:0x180,_0x45889d:0x13c,_0x13cff7:0x13e,_0x5b0d53:0xac,_0x3aba03:0x214,_0x225456:0x155,_0x435552:0x9b,_0x3cde77:0x10f,_0x50aec4:0x1a3,_0x10ba80:0x52,_0x26685b:0xf2,_0x2b5d97:0x7c,_0x43e7e9:0x192,_0x511f27:0x2f5,_0x4d8b41:0x358,_0x2eaef3:0x2c2,_0x4c94be:0x2ac,_0x201ecd:0x2a1,_0x5c1c5b:0x2c7,_0x4dba6d:0x3a7,_0x1a4b6b:0xe0,_0x1e00b8:0x45,_0x201735:0x26,_0x488545:0xb3,_0x5ef1a7:0x2e,_0x375a93:0x1b9,_0x3374d4:0x30,_0x54d9c3:0x19b,_0x37303c:0x14d,_0x4fe4a0:0x39,_0x311a44:0x20,_0x460950:0x99,_0x1aa95d:0x1de,_0x101742:0xf9,_0x2227fa:0xae,_0x1f7c16:0x4c,_0x31d454:0xf6,_0xdaf7c0:0x115,_0x17ef91:0x148,_0x1c6b4d:0x296,_0x4aadeb:0x25e,_0x5045b5:0x2a8,_0x55fe61:0x1f7,_0x3fca10:0x10f,_0x377076:0xdb,_0x107fb8:0x1e5,_0x333929:0x16b,_0x200617:0x124,_0xe2aeca:0x29d,_0x399a88:0x1a8,_0x559c36:0x121,_0x348ccb:0x130,_0x56bb74:0xfb,_0x1bd425:0x2,_0x5597e9:0xf4,_0x1c8c8d:0x144,_0x48f53b:0xec,_0x12f398:0x202,_0x500624:0xa7,_0x1cc3e8:0x12b,_0x43654b:0x41b,_0x196309:0x1c8,_0x51b5de:0x1b4,_0x44a57f:0xc1,_0x3d12e1:0x23d},_0x5c7e4a={_0x4ccca3:0x394},_0x38fa14=await this[_0xd9a1b0(0x103,_0x252b3c._0x604cd6,0x124,_0x252b3c._0x33d61c)](_0x4f87a0,_0x23f0c8),_0x2d350f=_0x209d24['createRequest'](_0x38fa14[_0x3b94fe(_0x252b3c._0x501efa,-0x77,0xbd,-0xb1)]),_0x29146b=_0x209d24[_0x3b94fe(0xaa,0x197,_0x252b3c._0x4ac051,0xac)]?.(_0x4f87a0);if(!_0x29146b?.[_0x3b94fe(_0x252b3c._0x526951,_0x252b3c._0x7a56af,_0x252b3c._0x3b5166,0x1d4)])throw new Error(_0xd9a1b0(_0x252b3c._0x2e665d,0x172,_0x252b3c._0x551b50,0x17c)+_0x209d24['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x83d5cb=_0x2d350f[_0x3b94fe(_0x252b3c._0x5d5764,0x133,_0x252b3c._0x46c65a,0x193)]??(_0x2d350f[_0xd9a1b0(_0x252b3c._0x43ed71,0x241,_0x252b3c._0x3b5852,0x2ad)]?(''+_0x38fa14['baseUrl']+_0x2d350f['path'])[_0x3b94fe(_0x252b3c._0x4664e5,_0x252b3c._0x17fc4a,_0x252b3c._0x2d2e6c,0x1de)](/^http:/,'ws:')[_0x3b94fe(0x116,0x116,0x11b,_0x252b3c._0x4d7e79)](/^https:/,_0x3b94fe(0xbe,-0x1b,0x183,0x8c)):void 0x0);function _0xd9a1b0(_0x42f1b6,_0x5b2807,_0x59d288,_0x5ca391){return _0x101ac3(_0x42f1b6-0x188,_0x5b2807-0x131,_0x5b2807,_0x59d288- -_0x5c7e4a._0x4ccca3);}if(!_0x83d5cb)throw new ProviderRequestConstructionError('Surface\x20'+_0x209d24['id']+_0x3b94fe(_0x252b3c._0xdd9aba,0x155,0x1f4,0x106));const _0x89a7d7=await this[_0xd9a1b0(_0x252b3c._0x1814b7,_0x252b3c._0x19503e,_0x252b3c._0x311f09,0x21a)]({'request':_0x38fa14[_0x3b94fe(_0x252b3c._0x501efa,-0x6c,_0x252b3c._0x4a00a8,0xb)],'body':_0x2d350f[_0xd9a1b0(_0x252b3c._0x428e2e,_0x252b3c._0x45889d,_0x252b3c._0x13cff7,_0x252b3c._0x5b0d53)],'credential':_0x38fa14[_0xd9a1b0(0x1c0,0x135,_0x252b3c._0x3aba03,0x10f)],'session':_0x38fa14['session'],'stream':!![]},{'accept':_0x2d350f[_0x3b94fe(0x169,0x1e8,0xb8,0x188)]??_0xd9a1b0(0x190,0x205,0x207,_0x252b3c._0x225456),'includeContentType':![]});function _0x3b94fe(_0x403c36,_0x167968,_0x1d16d3,_0x1115d5){return _0x101ac3(_0x403c36-0x1d5,_0x167968-0x185,_0x1115d5,_0x403c36- -0x4f2);}for(const [_0x505f95,_0xa6ea74]of Object[_0xd9a1b0(_0x252b3c._0x435552,_0x252b3c._0x3cde77,_0x252b3c._0x50aec4,0x11b)](_0x2d350f[_0x3b94fe(_0x252b3c._0x10ba80,_0x252b3c._0x26685b,-0xb9,-_0x252b3c._0x2b5d97)]??{})){_0x89a7d7[_0xd9a1b0(_0x252b3c._0x43e7e9,0xf9,0x149,0x151)](_0x505f95,_0xa6ea74);}_0x89a7d7[_0xd9a1b0(_0x252b3c._0x511f27,_0x252b3c._0x4d8b41,_0x252b3c._0x2eaef3,_0x252b3c._0x4c94be)](_0xd9a1b0(_0x252b3c._0x201ecd,0x1be,_0x252b3c._0x5c1c5b,_0x252b3c._0x4dba6d));const _0x296067=this[_0x3b94fe(0x6a,_0x252b3c._0x1a4b6b,0x84,0x114)]({'headers':Object['fromEntries'](_0x89a7d7[_0x3b94fe(_0x252b3c._0x1e00b8,-_0x252b3c._0x201735,_0x252b3c._0x488545,_0x252b3c._0x5ef1a7)]()),'url':_0x83d5cb});try{throwIfAborted(_0x23f0c8);_0x296067[_0x3b94fe(0xfb,_0x252b3c._0x375a93,_0x252b3c._0x3374d4,_0x252b3c._0x54d9c3)]!==WebSocket[_0x3b94fe(0x144,0x217,_0x252b3c._0x37303c,_0x252b3c._0x4fe4a0)]&&await waitForWebSocketOpen(_0x296067,_0x23f0c8);throwIfAborted(_0x23f0c8);_0x2d350f[_0x3b94fe(-_0x252b3c._0x311a44,0x94,0xb6,-0xae)]!==void 0x0&&_0x296067['send'](JSON[_0x3b94fe(0x141,_0x252b3c._0x45889d,_0x252b3c._0x460950,_0x252b3c._0x1aa95d)](_0x2d350f[_0x3b94fe(-0x20,-_0x252b3c._0x101742,_0x252b3c._0x2227fa,-_0x252b3c._0x1f7c16)]));for await(const _0x2fbe5f of iterateWebSocketMessages(_0x296067,_0x23f0c8)){yield*_0x29146b[_0x3b94fe(_0x252b3c._0x31d454,_0x252b3c._0xdaf7c0,-0x4,_0x252b3c._0x17ef91)](_0x2fbe5f);if(_0x29146b[_0xd9a1b0(_0x252b3c._0x1c6b4d,_0x252b3c._0x4aadeb,0x292,0x1e4)]?.())break;}if(_0x29146b[_0xd9a1b0(_0x252b3c._0x5045b5,0x24b,0x292,_0x252b3c._0x55fe61)]?.()===![])throw new ProviderStreamEventError(_0x3b94fe(_0x252b3c._0x3fca10,_0x252b3c._0x377076,_0x252b3c._0x107fb8,_0x252b3c._0x333929)+_0x209d24['id']+_0xd9a1b0(_0x252b3c._0x200617,_0x252b3c._0xe2aeca,_0x252b3c._0x399a88,0x250),{'retryable':!![]});yield{'type':_0xd9a1b0(0x1e4,_0x252b3c._0x559c36,0x198,_0x252b3c._0x348ccb),'response':_0x29146b['finish']()};}finally{_0x296067[_0x3b94fe(_0x252b3c._0x56bb74,_0x252b3c._0x1bd425,0x111,_0x252b3c._0x5597e9)]===WebSocket[_0x3b94fe(_0x252b3c._0x1c8c8d,_0x252b3c._0x48f53b,0x1ba,_0x252b3c._0x12f398)]&&_0x296067[_0xd9a1b0(_0x252b3c._0x500624,_0x252b3c._0x1cc3e8,0x17c,0x17f)](0x3e8,_0x23f0c8?.[_0xd9a1b0(0x2f7,0x3f5,0x326,_0x252b3c._0x43654b)]?_0x3b94fe(_0x252b3c._0x196309,_0x252b3c._0x51b5de,0x13d,_0x252b3c._0x44a57f):_0x3b94fe(0x16f,0x1e2,0x1e1,_0x252b3c._0x3d12e1));}}};async function createHttpError(_0x577f61){const _0x9aaccf={_0x2bfbc0:0xe3,_0x4eaa14:0x16,_0x356052:0x15d,_0x5deeab:0x5a6,_0x5bac12:0x627,_0x521d37:0x5d8,_0x5988a2:0x142,_0x296654:0xed,_0x4458f7:0x45,_0x373c40:0x16,_0x2a4fec:0x2d,_0x1533d0:0x571,_0x14146f:0x620,_0x1567ef:0x534},_0x16614e={_0x44bf4d:0x1c1};function _0x25f545(_0x723212,_0x1fe953,_0x5c4c15,_0x21cef9){return _0x22bdb8(_0x723212-0x139,_0x5c4c15- -0x1a7,_0x21cef9,_0x21cef9-_0x16614e._0x44bf4d);}function _0x173b80(_0x52ff74,_0x18ae87,_0x393ba5,_0x514569){return _0x101ac3(_0x52ff74-0x1e8,_0x18ae87-0x117,_0x514569,_0x52ff74-0x81);}const _0x2ec124=await _0x577f61[_0x25f545(_0x9aaccf._0x2bfbc0,-0x1c,-_0x9aaccf._0x4eaa14,-0x72)](),_0x30b25e=_0x2ec124[_0x25f545(_0x9aaccf._0x356052,0x163,0x76,-0x94)]()||_0x577f61[_0x173b80(_0x9aaccf._0x5deeab,0x638,_0x9aaccf._0x5bac12,_0x9aaccf._0x521d37)]||_0x25f545(-0x64,-_0x9aaccf._0x5988a2,-_0x9aaccf._0x296654,-_0x9aaccf._0x4458f7);return new Error(_0x25f545(-_0x9aaccf._0x373c40,-0x1b,0x66,-_0x9aaccf._0x2a4fec)+_0x577f61[_0x173b80(_0x9aaccf._0x1533d0,_0x9aaccf._0x14146f,_0x9aaccf._0x1567ef,0x478)]+':\x20'+_0x30b25e);}var AnthropicProviderAdapter=class{[_0x22bdb8(-0x3a,0x30,-0x95,0x31)];[_0x22bdb8(0x170,0x160,0x133,0x251)];[_0x22bdb8(-0x50,0x5e,-0x1,-0x26)];constructor(_0x3a4d6f){const _0x3442a9={_0x377484:0x308,_0x156aac:0x22e,_0x5d162a:0x2d7,_0x5f3bca:0x2b8,_0x12fae8:0x308,_0x48ca57:0xec,_0x2f01fe:0x8d,_0x1e7888:0xb8,_0x4f3d42:0x13f,_0x2c6dc2:0x16b,_0x1c69f4:0x18f,_0x418ab5:0x249},_0x4a83e4={_0x1a8864:0xdb,_0x131001:0x18f,_0x8e64b7:0x68d},_0x3a7e36={_0x468cab:0x19};function _0x33dd0b(_0x3a31dc,_0x178f54,_0x218498,_0x1aaeae){return _0x22bdb8(_0x3a31dc-0x5b,_0x1aaeae-0x2d8,_0x218498,_0x1aaeae-_0x3a7e36._0x468cab);}function _0x4e0bc5(_0xdfc9c5,_0x485d72,_0x3268a6,_0xeffe9b){return _0x101ac3(_0xdfc9c5-_0x4a83e4._0x1a8864,_0x485d72-_0x4a83e4._0x131001,_0xeffe9b,_0x485d72- -_0x4a83e4._0x8e64b7);}this[_0x33dd0b(0x3be,0x276,0x40a,_0x3442a9._0x377484)]=_0x3a4d6f[_0x33dd0b(_0x3442a9._0x156aac,_0x3442a9._0x5d162a,_0x3442a9._0x5f3bca,_0x3442a9._0x12fae8)],this[_0x4e0bc5(-_0x3442a9._0x48ca57,-0x8d,-0x17,0x4e)]=_0x3a4d6f[_0x4e0bc5(-0xcc,-_0x3442a9._0x2f01fe,-_0x3442a9._0x1e7888,-_0x3442a9._0x4f3d42)],this[_0x4e0bc5(-0x183,-0x18f,-0xce,-_0x3442a9._0x2c6dc2)]=_0x3a4d6f[_0x4e0bc5(-0x260,-_0x3442a9._0x1c69f4,-0x20b,-_0x3442a9._0x418ab5)];}['createMissingCredentialError'](){return new Error('AnthropicModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x101ac3(0x556,0x570,0x6c3,0x663)](_0x297cf1,_0x17d099){const _0x365aff={_0x4ff347:0x14f,_0xa79b49:0x10d,_0xc50735:0x1ec,_0x311146:0xc1,_0x482150:0x58,_0x32845b:0x10b,_0x24440e:0x167,_0xc258ce:0xd1,_0x2a71c7:0x104,_0x554c5b:0x172,_0x36150e:0x105,_0x44172b:0x17b,_0x6a13d:0x100,_0x4a252f:0x1c8,_0xc2e268:0x21a,_0x3b6bdd:0x2b7,_0x3c36c8:0xae,_0x49ee07:0xa2,_0x5d687c:0x14c,_0x818d01:0x9f,_0xfb34db:0x2e0,_0x1cabb5:0xb5,_0x2a952d:0x21,_0x18c07f:0xed,_0x1603c2:0x184,_0x40fe7e:0x171,_0x5d2c5e:0x2c6,_0xf2528f:0x1d5,_0xc9eaad:0x138,_0x382049:0x302,_0x54a7c4:0x2a7,_0x3e0c5a:0x1a9},_0x5dfb22={_0x2af606:0x10a},_0x3fa519={_0x5693d7:0x146,_0x176e43:0x54b};function _0xbd3c57(_0x33a4f7,_0x2cfb56,_0x444352,_0xd79374){return _0x101ac3(_0x33a4f7-0x38,_0x2cfb56-_0x3fa519._0x5693d7,_0x33a4f7,_0x444352- -_0x3fa519._0x176e43);}const _0x509fb7=new Headers();_0x509fb7[_0x369c9b(0xce,_0x365aff._0x4ff347,_0x365aff._0xa79b49,0x17d)](_0x369c9b(0x3ae,0x2cd,0x35d,0x20c),_0x17d099['accept']);function _0x369c9b(_0x9dd5ee,_0x4e917a,_0xbfd7c2,_0x5dc308){return _0x101ac3(_0x9dd5ee-_0x5dfb22._0x2af606,_0x4e917a-0x64,_0x9dd5ee,_0x4e917a- -0x38e);}_0x509fb7['set'](_0x369c9b(0xfc,_0x365aff._0xc50735,0x2e0,0x198),this[_0xbd3c57(-0x61,-0x120,-0x4d,-_0x365aff._0x311146)]);_0x17d099[_0xbd3c57(0x54,-0x11,-_0x365aff._0x482150,-0xc9)]!==![]&&_0x509fb7[_0xbd3c57(-_0x365aff._0x32845b,0x13,-0x6e,-_0x365aff._0x24440e)](_0xbd3c57(0x75,_0x365aff._0xc258ce,_0x365aff._0x2a71c7,_0x365aff._0x554c5b),'application/json');this[_0xbd3c57(-_0x365aff._0x36150e,-0xad,-0x7b,-_0x365aff._0x44172b)]===_0xbd3c57(-0xeb,-_0x365aff._0x6a13d,0x8,0x15)?_0x509fb7[_0xbd3c57(-0x10c,-0x14,-0x6e,0x9f)]('authorization','Bearer\x20'+_0x297cf1[_0x369c9b(_0x365aff._0x4a252f,_0x365aff._0xc2e268,_0x365aff._0x3b6bdd,0x214)][_0xbd3c57(0xd7,0x96,_0x365aff._0x3c36c8,0x4)]):_0x509fb7[_0x369c9b(0x70,0x14f,_0x365aff._0x49ee07,0xde)](_0x369c9b(_0x365aff._0x5d687c,0x129,0xf1,_0x365aff._0x818d01),_0x297cf1[_0x369c9b(_0x365aff._0xfb34db,0x21a,0x1c0,0x291)][_0xbd3c57(-0x47,_0x365aff._0x1cabb5,0xae,-_0x365aff._0x2a952d)]);const _0x2b33e2=await this[_0xbd3c57(_0x365aff._0x18c07f,_0x365aff._0x1603c2,_0x365aff._0x1cabb5,_0x365aff._0x40fe7e)]?.({'body':_0x297cf1['body'],'credential':_0x297cf1[_0x369c9b(0x1ac,0x21a,0x1e6,_0x365aff._0x5d2c5e)],'request':_0x297cf1[_0x369c9b(_0x365aff._0xf2528f,0x1b1,0x1ab,0x26d)],'session':_0x297cf1[_0xbd3c57(_0x365aff._0xc9eaad,0x1ff,0x146,0x170)],'stream':_0x297cf1[_0x369c9b(_0x365aff._0x382049,_0x365aff._0x54a7c4,0x1d0,0x395)]});for(const [_0x1931a5,_0x5484b9]of Object[_0x369c9b(0xcf,_0x365aff._0x3e0c5a,0x1ef,0x144)](_0x2b33e2??{})){_0x509fb7[_0x369c9b(0x22d,0x14f,0x24a,0x170)](_0x1931a5,_0x5484b9);}return _0x509fb7;}[_0x22bdb8(0x1db,0x10f,0x18e,0x19e)](_0x2e7462){return _0x2e7462;}[_0x101ac3(0x64c,0x66f,0x65e,0x6b5)](_0x1083db,_0x2ec836){return resolveSessionBaseUrl(_0x1083db,_0x2ec836);}[_0x101ac3(0x5e2,0x58a,0x506,0x5e1)](_0xb956e1,_0x1b0274){return resolveApiCredential(_0xb956e1,_0x1b0274);}async[_0x22bdb8(0x111,0x1f3,0x27b,0x2c1)](_0x1a696d){return await createHttpError(_0x1a696d);}},AnthropicModel=class extends RoutedModel{constructor(_0x39c5c1={}){const _0x402317={_0x5cde19:0x5de,_0x5945a4:0x64c,_0x3e960d:0x675,_0x4c7130:0x5b0,_0x1be3f0:0x6ce,_0x147f88:0x542,_0x2307e1:0x546,_0x1363ae:0x53c,_0x3eff9b:0x5a6,_0x4e54b6:0x595,_0x4aa17c:0x48f,_0x20e211:0x3e5,_0x880103:0x390,_0xbd6432:0x390,_0xe1885e:0x557,_0x203422:0x321,_0x3a2cc4:0x3d7,_0x18ae26:0x7d8,_0x102e9e:0x458,_0x57a012:0x386,_0x4fcd28:0x419,_0x58deda:0x367,_0x190838:0x2ef,_0x4fd36b:0x372,_0x50c354:0x368,_0x25014a:0x359,_0x45eca8:0x4a2,_0x3e35f3:0x3c4,_0x2a6be3:0x5e0,_0x5b8121:0x671,_0x8b73f8:0x3ce,_0x49cfbe:0x3fc,_0x3a84cc:0x405,_0x288baf:0x459,_0x26d5ab:0x56d},_0xa9af85={_0x15f50a:0x3b};function _0xcce00b(_0x226ac4,_0x2bbdbd,_0x53a9d7,_0x506e62){return _0x22bdb8(_0x226ac4-0x1c5,_0x226ac4-0x50a,_0x2bbdbd,_0x506e62-0x13b);}function _0x14500d(_0x106ffd,_0x445f52,_0x512440,_0x20aca2){return _0x101ac3(_0x106ffd-0x24,_0x445f52-_0xa9af85._0x15f50a,_0x445f52,_0x20aca2- -0x15e);}super({'apiKey':_0x39c5c1[_0xcce00b(_0x402317._0x5cde19,_0x402317._0x5945a4,_0x402317._0x3e960d,_0x402317._0x4c7130)],'baseUrl':trimTrailingSlashes(_0x39c5c1[_0xcce00b(0x624,_0x402317._0x1be3f0,0x658,0x5d8)]??_0xcce00b(_0x402317._0x147f88,_0x402317._0x2307e1,_0x402317._0x1363ae,_0x402317._0x3eff9b)),'fetch':_0x39c5c1[_0xcce00b(0x5d2,0x50c,0x5f7,_0x402317._0x4e54b6)],..._0x39c5c1[_0x14500d(_0x402317._0x4aa17c,0x3c3,_0x402317._0x20e211,_0x402317._0x880103)]!==void 0x0?{'maxTokens':_0x39c5c1[_0x14500d(0x35c,0x2ce,0x3ce,_0x402317._0xbd6432)]}:{},'model':_0x39c5c1[_0x14500d(_0x402317._0xe1885e,0x3e6,0x5a7,0x4e6)]??_0x14500d(0x4a9,0x4a7,_0x402317._0x203422,_0x402317._0x3a2cc4),'modelIdentity':_0x39c5c1[_0xcce00b(0x6ef,0x7ac,_0x402317._0x18ae26,0x7b8)],..._0x39c5c1['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x39c5c1['pricingProviderId']}:{},'reasoning':_0x39c5c1[_0x14500d(_0x402317._0x102e9e,0x341,_0x402317._0x57a012,_0x402317._0x4fcd28)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x39c5c1[_0x14500d(_0x402317._0x58deda,_0x402317._0x190838,0x301,_0x402317._0x4fd36b)]??_0x14500d(0x2b4,0x440,_0x402317._0x50c354,_0x402317._0x25014a),'headerResolver':_0x39c5c1[_0x14500d(0x535,0x4f4,0x49b,_0x402317._0x45eca8)],'protocolVersion':_0x39c5c1[_0x14500d(_0x402317._0x3e35f3,0x468,0x2e4,0x3a0)]??_0xcce00b(_0x402317._0x2a6be3,_0x402317._0x5b8121,0x5fb,0x560)}),'providerSessionResolver':_0x39c5c1[_0x14500d(_0x402317._0x8b73f8,_0x402317._0x49cfbe,_0x402317._0x3a84cc,_0x402317._0x288baf)],'requestMutators':_0x39c5c1[_0xcce00b(_0x402317._0x26d5ab,_0x402317._0x4aa17c,0x5ea,0x486)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x22bdb8(0x136,0x1fd,0x202,0x1d7)](_0x90492e,_0x3af5fe){const _0x41f0cf={_0x4ce691:0x473,_0x34885d:0x426};function _0x5d5ca1(_0x306b23,_0x7e086e,_0x17578b,_0xcfe904){return _0x22bdb8(_0x306b23-0x1e6,_0xcfe904-0x207,_0x17578b,_0xcfe904-0x84);}return this[_0x5d5ca1(0x431,_0x41f0cf._0x4ce691,0x3d3,_0x41f0cf._0x34885d)](_0x90492e,ANTHROPIC_MESSAGES_SURFACE,_0x3af5fe);}[_0x22bdb8(0xe6,0x195,0x108,0xc4)](_0x58dfa1,_0x4ac5ee){const _0x42fab6={_0xd9af5a:0x71f,_0xd84475:0x61e,_0x3a3693:0x632};function _0x413489(_0x1c9f28,_0x1f41f7,_0x26e43b,_0x54fdcc){return _0x101ac3(_0x1c9f28-0x180,_0x1f41f7-0x1e1,_0x54fdcc,_0x1c9f28-0xaf);}return this[_0x413489(0x6aa,_0x42fab6._0xd9af5a,_0x42fab6._0xd84475,_0x42fab6._0x3a3693)](_0x58dfa1,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x4ac5ee);}},model_registry_default={'defaultModel':_0x101ac3(0x43b,0x458,0x54f,0x4de),'cliDefaultModel':_0x22bdb8(0x62,0x3a,-0xa9,-0x9b),'providers':{'anthropic':{'label':_0x22bdb8(0xb3,0x16e,0x1a8,0x25a),'baseUrl':_0x22bdb8(-0x74,0x38,0x51,0x80),'surface':_0x22bdb8(0x2e1,0x1f5,0x22b,0x2c2),'authScheme':_0x101ac3(0x563,0x4d3,0x56a,0x4b7),'defaultModel':'claude-sonnet-4-20250514','defaultModels':['claude-sonnet-4-20250514',_0x22bdb8(0x2bd,0x1e6,0x2b8,0x257)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000},'claude-fable-5':{'reasoning':{'defaultOption':_0x101ac3(0x6e4,0x603,0x51b,0x5db),'canDisable':![],'options':[{'id':_0x101ac3(0x50c,0x625,0x4e6,0x5db),'mode':_0x101ac3(0x673,0x6ca,0x597,0x5db)},{'id':_0x22bdb8(0x3,0xd2,0x144,0xe5),'mode':_0x101ac3(0x4e7,0x50c,0x6e1,0x5db),'effort':_0x22bdb8(0x1da,0xd2,0x52,0x4a)},{'id':_0x22bdb8(0xf7,0x1d6,0xd1,0x131),'mode':_0x101ac3(0x674,0x52e,0x4f3,0x5db),'effort':'medium'},{'id':'high','mode':_0x22bdb8(0x17f,0x13b,0x48,0x21f),'effort':_0x22bdb8(-0x8a,0x15,-0xde,-0x52)},{'id':_0x22bdb8(0x222,0x180,0x227,0x19a),'mode':_0x22bdb8(0x92,0x13b,0x1b7,0x10e),'effort':_0x101ac3(0x550,0x6a0,0x5a6,0x620)},{'id':'max','mode':_0x101ac3(0x63e,0x68b,0x51c,0x5db),'effort':_0x22bdb8(0x232,0x17c,0x1da,0x10f)}]}},'claude-mythos-5':{'reasoning':{'defaultOption':_0x22bdb8(0xc4,0x13b,0xb3,0x165),'canDisable':![],'options':[{'id':'adaptive','mode':'adaptive'},{'id':'low','mode':_0x22bdb8(0xb3,0x13b,0x13a,0xf6),'effort':_0x22bdb8(0x10,0xd2,0x1a9,0x93)},{'id':_0x22bdb8(0xf6,0x1d6,0xe8,0x155),'mode':_0x101ac3(0x53f,0x5f9,0x4e1,0x5db),'effort':'medium'},{'id':_0x22bdb8(-0x80,0x15,-0xb4,-0x19),'mode':_0x22bdb8(0x6e,0x13b,0x108,0x1bd),'effort':'high'},{'id':_0x101ac3(0x625,0x6f5,0x70c,0x620),'mode':_0x22bdb8(0x1c7,0x13b,0x39,0x1f3),'effort':_0x22bdb8(0x80,0x180,0x250,0xa5)},{'id':_0x22bdb8(0xd0,0x17c,0x141,0x92),'mode':'adaptive','effort':_0x101ac3(0x710,0x5f3,0x52c,0x61c)}]}},'claude-opus-4-8':{'reasoning':{'defaultOption':_0x101ac3(0x431,0x51e,0x51a,0x4d5),'canDisable':!![],'options':[{'id':'adaptive','mode':_0x101ac3(0x525,0x50c,0x510,0x5db)},{'id':_0x22bdb8(0xf7,0xd2,0x177,0x124),'mode':_0x22bdb8(0xd8,0x13b,0x161,0x131),'effort':_0x22bdb8(0x1e0,0xd2,0x85,-0xd)},{'id':_0x22bdb8(0x283,0x1d6,0x1ca,0x260),'mode':'adaptive','effort':'medium'},{'id':_0x101ac3(0x461,0x3a8,0x480,0x4b5),'mode':'adaptive','effort':'high'},{'id':_0x22bdb8(0x92,0x180,0x1aa,0x23e),'mode':_0x101ac3(0x54e,0x63d,0x544,0x5db),'effort':'xhigh'},{'id':_0x101ac3(0x5df,0x551,0x56a,0x61c),'mode':_0x101ac3(0x669,0x6bb,0x6d4,0x5db),'effort':_0x101ac3(0x5c1,0x5d4,0x619,0x61c)}]}},'claude-opus-4-7':{'reasoning':{'defaultOption':_0x101ac3(0x3ce,0x5a4,0x5d4,0x4d5),'canDisable':!![],'options':[{'id':'adaptive','mode':_0x101ac3(0x69a,0x562,0x51c,0x5db)},{'id':_0x22bdb8(0xa,0xd2,0x9d,0x83),'mode':_0x22bdb8(0x14b,0x13b,0x21f,0x1df),'effort':_0x22bdb8(0xe1,0xd2,0x1c,0x75)},{'id':_0x22bdb8(0x20e,0x1d6,0x245,0x2c7),'mode':_0x22bdb8(0x168,0x13b,0x10b,0x12f),'effort':_0x22bdb8(0x144,0x1d6,0x106,0x122)},{'id':_0x22bdb8(0x53,0x15,0xd3,0xdf),'mode':_0x22bdb8(0x158,0x13b,0x166,0x107),'effort':'high'},{'id':_0x22bdb8(0x116,0x180,0x1d4,0xaf),'mode':'adaptive','effort':_0x22bdb8(0x103,0x180,0x18c,0x84)},{'id':'max','mode':_0x22bdb8(0xf4,0x13b,0x180,0x10e),'effort':_0x101ac3(0x5be,0x671,0x5b7,0x61c)}]}},'claude-opus-4-6':{'reasoning':{'defaultOption':'off','canDisable':!![],'options':[{'id':_0x22bdb8(0x100,0x13b,0x1aa,0x43),'mode':_0x22bdb8(0x1f4,0x13b,0x1bd,0x21e)},{'id':_0x22bdb8(0x16d,0xd2,0xd7,0x1d1),'mode':'adaptive','effort':_0x22bdb8(0x162,0xd2,0xf4,0x13a)},{'id':_0x22bdb8(0x1a6,0x1d6,0x136,0xdc),'mode':_0x101ac3(0x6a3,0x58b,0x5b2,0x5db),'effort':_0x101ac3(0x760,0x616,0x630,0x676)},{'id':_0x101ac3(0x564,0x5bd,0x501,0x4b5),'mode':_0x101ac3(0x511,0x4e0,0x696,0x5db),'effort':'high'},{'id':_0x22bdb8(0x268,0x17c,0x27b,0x14b),'mode':_0x101ac3(0x6a3,0x58b,0x578,0x5db),'effort':_0x101ac3(0x543,0x581,0x56e,0x61c)}]}},'claude-sonnet-5':{'reasoning':{'defaultOption':_0x101ac3(0x5af,0x628,0x587,0x5db),'canDisable':!![],'options':[{'id':_0x101ac3(0x4fe,0x509,0x5ba,0x5db),'mode':_0x22bdb8(0x167,0x13b,0x17e,0x16b)},{'id':_0x101ac3(0x4c3,0x59d,0x59e,0x572),'mode':_0x22bdb8(0x206,0x13b,0x50,0x14d),'effort':_0x101ac3(0x5be,0x536,0x58f,0x572)},{'id':_0x101ac3(0x6b2,0x68b,0x73b,0x676),'mode':_0x22bdb8(0x1ce,0x13b,0x3f,0xd7),'effort':_0x22bdb8(0x260,0x1d6,0x203,0x226)},{'id':_0x22bdb8(0xfa,0x15,0x66,0x2a),'mode':_0x22bdb8(0xff,0x13b,0x215,0x8f),'effort':_0x22bdb8(-0x2a,0x15,-0x78,0x12)},{'id':_0x22bdb8(0x1d7,0x180,0x194,0x15d),'mode':'adaptive','effort':_0x22bdb8(0x12d,0x180,0x272,0x1ce)},{'id':_0x22bdb8(0x7a,0x17c,0x216,0x1ce),'mode':_0x22bdb8(0x1c6,0x13b,0x1d0,0x148),'effort':_0x22bdb8(0x145,0x17c,0x12e,0xbb)}]}},'claude-sonnet-4-6':{'reasoning':{'defaultOption':'off','canDisable':!![],'options':[{'id':_0x22bdb8(0x131,0x13b,0x13c,0xea),'mode':'adaptive'},{'id':_0x22bdb8(-0xb,0xd2,0x13a,-0xb),'mode':_0x101ac3(0x542,0x651,0x503,0x5db),'effort':_0x101ac3(0x61c,0x616,0x4ea,0x572)},{'id':_0x22bdb8(0x191,0x1d6,0x1d2,0x1b7),'mode':'adaptive','effort':_0x101ac3(0x704,0x74e,0x57e,0x676)},{'id':_0x101ac3(0x569,0x58c,0x577,0x4b5),'mode':'adaptive','effort':'high'},{'id':'max','mode':_0x101ac3(0x6b7,0x6e5,0x6dd,0x5db),'effort':'max'}]}}}},'zai':{'label':_0x101ac3(0x4e9,0x3bd,0x461,0x4c7),'baseUrl':_0x101ac3(0x4c6,0x531,0x607,0x534),'anthropicBaseUrl':_0x22bdb8(0xfa,0x1b0,0xab,0x217),'surface':_0x22bdb8(0x246,0x1f5,0x2e7,0x2fc),'authScheme':_0x22bdb8(0xe9,0xb3,0x189,0xeb),'defaultModel':_0x101ac3(0x4c4,0x4aa,0x494,0x4da),'defaultModels':['glm-5.3-flash',_0x101ac3(0x70e,0x648,0x635,0x64d),_0x22bdb8(0x13e,0x18b,0x140,0x293),'glm-5.1',_0x22bdb8(-0x18,0x3a,0x143,-0x95),_0x101ac3(0x573,0x56d,0x663,0x638),_0x22bdb8(-0x30,0x68,0x113,0x37)],'supportsModelFetch':![],'models':{'glm-5.3-flash':{'contextWindow':0xf4240,'maxOutput':0x20000},'glm-5.3':{'contextWindow':0xf4240,'maxOutput':0x20000},'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}}},'opencode-go':{'label':_0x101ac3(0x52a,0x656,0x4be,0x5a7),'baseUrl':'https://opencode.ai/zen/go/v1','modelsBaseUrl':_0x101ac3(0x3f2,0x54d,0x4da,0x4dc),'surface':_0x22bdb8(0x105,0xc6,-0x34,0x10),'authScheme':_0x101ac3(0x4d1,0x62b,0x608,0x553),'defaultModel':_0x22bdb8(0x152,0x18b,0xf0,0x25b),'defaultModels':[_0x101ac3(0x6da,0x6bf,0x5a0,0x624),_0x101ac3(0x4ad,0x54a,0x453,0x4e9),_0x22bdb8(-0x50,0x77,0x31,0x17f),'kimi-k3',_0x101ac3(0x5d9,0x4ab,0x5b1,0x4e7),_0x22bdb8(0xcb,0x120,0x16e,0x16c),_0x22bdb8(-0x45,0x7b,-0x65,-0x82),_0x22bdb8(0x229,0x18b,0x16a,0xe6),_0x22bdb8(0x2b,0xc7,0x6c,0x121),_0x22bdb8(0x264,0x202,0x1d0,0x118),_0x101ac3(0x5d7,0x718,0x51e,0x623),_0x22bdb8(0x1a,0x21,0x40,0x6d),'qwen3.7-max',_0x22bdb8(0x13e,0x15f,0x1b7,0x130),'qwen3.6-plus','qwen3.5-plus',_0x22bdb8(0x14c,0x214,0x313,0x140),_0x22bdb8(0x11,0x2f,0x67,-0x5d),_0x101ac3(0x5a8,0x5b0,0x558,0x622),_0x101ac3(0x585,0x5c8,0x68a,0x5bb),_0x22bdb8(0x18d,0x170,0xbb,0x75),_0x22bdb8(0x88,0x28,0xdd,-0x1f),_0x22bdb8(0x1e5,0x1dd,0x23a,0x2bb)],'supportsModelFetch':!![],'models':{'minimax-m3':{'contextWindow':0xf4240,'maxOutput':0x20000,'surface':'anthropic-messages','reasoning':{'canDisable':!![],'options':[{'id':_0x101ac3(0x57e,0x5e4,0x5eb,0x5db),'description':_0x22bdb8(0x94,0x19f,0x254,0x184),'mode':_0x101ac3(0x5b0,0x5e0,0x53b,0x5db)}]}},'minimax-m2.7':{'contextWindow':0x32000,'maxOutput':0x20000,'surface':'anthropic-messages'},'minimax-m2.5':{'contextWindow':0x32000,'maxOutput':0x10000,'surface':_0x22bdb8(0xf6,0x1f5,0x1a3,0x2fd)},'kimi-k3':{'contextWindow':0x100000,'maxOutput':0x20000},'kimi-k2.7-code':{'contextWindow':0x40000,'maxOutput':0x40000},'kimi-k2.6':{'contextWindow':0x40000,'maxOutput':0x10000},'kimi-k2.5':{'contextWindow':0x40000,'maxOutput':0x10000},'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x20000},'glm-5.1':{'contextWindow':0x31800,'maxOutput':0x8000},'glm-5':{'contextWindow':0x31800,'maxOutput':0x8000},'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'qwen3.7-max':{'contextWindow':0xf4240,'maxOutput':0x10000,'surface':_0x101ac3(0x5eb,0x5f0,0x6d6,0x695)},'qwen3.7-plus':{'contextWindow':0xf4240,'maxOutput':0x10000,'surface':'anthropic-messages'},'qwen3.6-plus':{'contextWindow':0xf4240,'maxOutput':0x10000,'surface':_0x22bdb8(0x194,0x1f5,0x2be,0x1f1)},'qwen3.5-plus':{'contextWindow':0x40000,'maxOutput':0x10000,'surface':_0x22bdb8(0x281,0x1f5,0x2c1,0x17b)},'mimo-v2-pro':{'contextWindow':0x100000,'maxOutput':0x1f400},'mimo-v2-omni':{'contextWindow':0x40000,'maxOutput':0x1f400},'mimo-v2.5-pro':{'contextWindow':0x100000,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400},'hy3':{'contextWindow':0x3e800,'maxOutput':0xfa00},'hy3-preview':{},'grok-4.5':{'contextWindow':0x7a120,'maxOutput':0x7a120}}},'openrouter':{'label':_0x22bdb8(0x1b5,0xea,0x18c,0x56),'baseUrl':_0x22bdb8(0xa0,0x4a,-0xa1,0x10a),'surface':_0x22bdb8(0xc4,0xc6,0x98,-0x30),'authScheme':_0x101ac3(0x472,0x5c6,0x4a6,0x553),'defaultModel':_0x101ac3(0x591,0x66a,0x59d,0x5b1),'defaultModels':[_0x101ac3(0x675,0x572,0x5fc,0x5b1),_0x101ac3(0x4ed,0x58a,0x6a0,0x594)],'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':_0x101ac3(0x5eb,0x6e0,0x6e5,0x6be),'surface':_0x22bdb8(0xc2,0x175,0x12f,0x1cc),'defaultModel':'gpt-5.2-codex','defaultModels':['claude-sonnet-4.5',_0x22bdb8(0x172,0x213,0x25d,0x14a),_0x22bdb8(0xcf,0x12,-0x4,-0x41),_0x22bdb8(0xed,0x9b,0x5f,0x8c),_0x101ac3(0x59d,0x5ba,0x425,0x52d),'claude-sonnet-4'],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x22bdb8(0x2de,0x1f5,0x211,0x1d0)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x101ac3(0x5f0,0x79c,0x734,0x695)},'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':_0x22bdb8(0xfa,0x15e,0x243,0x19e),'baseUrl':_0x101ac3(0x6ac,0x514,0x508,0x613),'surface':_0x101ac3(0x6ff,0x647,0x565,0x615),'authScheme':_0x101ac3(0x44f,0x4b8,0x46d,0x553),'defaultModel':'grok-4.3','defaultModels':['grok-4.3',_0x101ac3(0x5b8,0x609,0x707,0x68d)],'supportsModelFetch':!![],'models':{'grok-4.3':{'contextWindow':0x20000,'maxOutput':0x4000},'grok-build-0.1':{'contextWindow':0x20000,'maxOutput':0x4000}}},'openai':{'label':_0x22bdb8(0x199,0x14e,0x1c7,0x1f8),'baseUrl':'https://api.openai.com/v1','surface':_0x22bdb8(0xd1,0xc6,0x177,0x157),'authScheme':_0x101ac3(0x53c,0x5b5,0x4e3,0x553),'defaultModel':_0x101ac3(0x453,0x5c5,0x416,0x4de),'defaultModels':[],'supportsModelFetch':![],'models':{'gpt-5.6':{'reasoning':{'defaultOption':_0x22bdb8(0x28d,0x1d6,0xf1,0x18a),'canDisable':!![],'options':[{'id':_0x101ac3(0x52e,0x64a,0x4e9,0x572),'effort':_0x22bdb8(0xdf,0xd2,0xac,0x7a)},{'id':_0x22bdb8(0x16a,0x1d6,0x1f4,0x10f),'effort':'medium'},{'id':_0x101ac3(0x498,0x43e,0x3c3,0x4b5),'effort':'high'},{'id':_0x101ac3(0x5fb,0x630,0x52d,0x620),'effort':_0x101ac3(0x719,0x5ac,0x6d8,0x620)},{'id':_0x22bdb8(0xe8,0x17c,0x249,0x19c),'effort':_0x22bdb8(0xfd,0x17c,0x1c9,0x267)}]}},'gpt-5.6-sol':{'reasoning':{'defaultOption':_0x22bdb8(0x23d,0x1d6,0x2a7,0x20c),'canDisable':!![],'options':[{'id':_0x101ac3(0x515,0x4c7,0x5a7,0x572),'effort':_0x101ac3(0x5cc,0x65c,0x497,0x572)},{'id':_0x22bdb8(0x2a7,0x1d6,0x15a,0x23f),'effort':_0x22bdb8(0x1d5,0x1d6,0x1fe,0x25e)},{'id':_0x22bdb8(0xe4,0x15,-0xe9,0xe3),'effort':_0x101ac3(0x58a,0x3c3,0x598,0x4b5)},{'id':'xhigh','effort':_0x22bdb8(0x150,0x180,0xd1,0x23f)},{'id':_0x22bdb8(0x182,0x17c,0x175,0x95),'effort':_0x22bdb8(0x210,0x17c,0x1c7,0x164)}]}},'gpt-5.6-terra':{'reasoning':{'defaultOption':_0x22bdb8(0xf6,0x1d6,0x28f,0x14b),'canDisable':!![],'options':[{'id':'low','effort':_0x22bdb8(0x10,0xd2,0x1ba,0x6c)},{'id':'medium','effort':_0x22bdb8(0x1c5,0x1d6,0x1f7,0xec)},{'id':_0x101ac3(0x504,0x59f,0x577,0x4b5),'effort':_0x22bdb8(0x71,0x15,-0x93,-0x6a)},{'id':_0x22bdb8(0xb3,0x180,0x276,0x272),'effort':_0x101ac3(0x682,0x71f,0x5e6,0x620)},{'id':_0x101ac3(0x556,0x5f7,0x5db,0x61c),'effort':'max'}]}},'gpt-5.6-luna':{'reasoning':{'defaultOption':_0x101ac3(0x6e2,0x595,0x6db,0x676),'canDisable':!![],'options':[{'id':_0x101ac3(0x4f6,0x5f2,0x668,0x572),'effort':_0x101ac3(0x5a2,0x4c5,0x61f,0x572)},{'id':_0x22bdb8(0x2cd,0x1d6,0x1bb,0x135),'effort':'medium'},{'id':'high','effort':_0x22bdb8(-0x5d,0x15,0xcc,0x98)},{'id':'xhigh','effort':_0x22bdb8(0x19b,0x180,0x209,0x251)},{'id':'max','effort':_0x101ac3(0x67b,0x599,0x5f1,0x61c)}]}},'gpt-5.5':{'reasoning':{'defaultOption':'medium','canDisable':!![],'options':[{'id':_0x22bdb8(0x100,0xd2,0x89,0xc7),'effort':_0x22bdb8(0x1bb,0xd2,0x4c,-0x27)},{'id':'medium','effort':_0x101ac3(0x6b0,0x5c5,0x6f0,0x676)},{'id':_0x22bdb8(0xf1,0x15,-0xcc,-0x46),'effort':'high'},{'id':_0x101ac3(0x6ed,0x654,0x52a,0x620),'effort':_0x22bdb8(0x161,0x180,0x15f,0x267)}]}},'gpt-5.5-2026-04-23':{'reasoning':{'defaultOption':_0x101ac3(0x631,0x6f8,0x57a,0x676),'canDisable':!![],'options':[{'id':'low','effort':'low'},{'id':_0x101ac3(0x68d,0x779,0x57c,0x676),'effort':_0x22bdb8(0x152,0x1d6,0xfa,0xda)},{'id':_0x22bdb8(0xe4,0x15,-0xc9,0x74),'effort':_0x101ac3(0x554,0x5aa,0x4c4,0x4b5)},{'id':_0x22bdb8(0x200,0x180,0x141,0x22e),'effort':_0x22bdb8(0x109,0x180,0x18b,0x84)}]}},'gpt-5.5-pro':{'reasoning':{'defaultOption':_0x101ac3(0x416,0x533,0x4a0,0x4b5),'canDisable':![],'options':[{'id':_0x22bdb8(0x1c2,0x1d6,0x1a0,0x208),'effort':_0x22bdb8(0x1cd,0x1d6,0x164,0x1c1)},{'id':_0x22bdb8(0x4,0x15,0x28,0x76),'effort':'high'},{'id':_0x22bdb8(0x110,0x180,0x79,0x283),'effort':'xhigh'}]}},'gpt-5.5-pro-2026-04-23':{'reasoning':{'defaultOption':_0x22bdb8(-0x71,0x15,0x107,-0xc6),'canDisable':![],'options':[{'id':_0x101ac3(0x675,0x625,0x588,0x676),'effort':_0x101ac3(0x698,0x5bf,0x610,0x676)},{'id':_0x22bdb8(0x57,0x15,-0x24,0xc5),'effort':_0x22bdb8(0xe1,0x15,-0x4b,-0x65)},{'id':_0x101ac3(0x550,0x660,0x6a8,0x620),'effort':_0x22bdb8(0x1b0,0x180,0xf7,0x220)}]}},'gpt-5.4':{'reasoning':{'defaultOption':'off','canDisable':!![],'options':[{'id':_0x22bdb8(0x36,0xd2,-0x30,0x104),'effort':_0x101ac3(0x5ec,0x51c,0x5df,0x572)},{'id':_0x22bdb8(0x128,0x1d6,0x1a4,0x111),'effort':_0x101ac3(0x676,0x5fb,0x685,0x676)},{'id':_0x22bdb8(0x4c,0x15,0x120,0x57),'effort':_0x22bdb8(-0x71,0x15,-0x70,-0x57)},{'id':_0x22bdb8(0x194,0x180,0xbb,0x1fd),'effort':_0x22bdb8(0xb2,0x180,0x19a,0x81)}]}},'gpt-5.4-2026-03-05':{'reasoning':{'defaultOption':_0x101ac3(0x5b4,0x3e5,0x5a8,0x4d5),'canDisable':!![],'options':[{'id':_0x101ac3(0x65c,0x5f8,0x5a7,0x572),'effort':_0x101ac3(0x569,0x4eb,0x5a3,0x572)},{'id':_0x101ac3(0x6f3,0x674,0x6b5,0x676),'effort':_0x22bdb8(0x244,0x1d6,0x285,0x16f)},{'id':'high','effort':_0x101ac3(0x3f5,0x3aa,0x4f0,0x4b5)},{'id':_0x22bdb8(0x285,0x180,0x147,0x1c7),'effort':_0x101ac3(0x59c,0x56f,0x51f,0x620)}]}},'gpt-5.4-pro':{'reasoning':{'defaultOption':_0x22bdb8(0x138,0x1d6,0x162,0x108),'canDisable':![],'options':[{'id':_0x22bdb8(0x163,0x1d6,0x24c,0x2a2),'effort':_0x101ac3(0x585,0x65f,0x5a9,0x676)},{'id':_0x22bdb8(-0xce,0x15,0x3c,0x83),'effort':_0x101ac3(0x557,0x44e,0x559,0x4b5)},{'id':_0x22bdb8(0xcd,0x180,0x23d,0x258),'effort':'xhigh'}]}},'gpt-5.4-pro-2026-03-05':{'reasoning':{'defaultOption':'medium','canDisable':![],'options':[{'id':_0x22bdb8(0x171,0x1d6,0x1b5,0x127),'effort':_0x22bdb8(0x183,0x1d6,0x122,0x179)},{'id':_0x101ac3(0x465,0x3da,0x4a8,0x4b5),'effort':_0x101ac3(0x51c,0x542,0x3d9,0x4b5)},{'id':'xhigh','effort':'xhigh'}]}},'gpt-5.4-mini':{'reasoning':{'defaultOption':_0x22bdb8(0xe7,0x35,-0x13,-0x16),'canDisable':!![],'options':[{'id':'low','effort':_0x101ac3(0x5ca,0x5e5,0x59f,0x572)},{'id':_0x22bdb8(0x254,0x1d6,0x167,0x1e0),'effort':_0x22bdb8(0x233,0x1d6,0x2cf,0x17a)},{'id':_0x101ac3(0x503,0x59e,0x497,0x4b5),'effort':_0x22bdb8(-0x23,0x15,0xd0,-0xa1)},{'id':'xhigh','effort':'xhigh'}]}},'gpt-5.4-mini-2026-03-17':{'reasoning':{'defaultOption':_0x101ac3(0x5e0,0x550,0x4f5,0x4d5),'canDisable':!![],'options':[{'id':'low','effort':_0x101ac3(0x644,0x53d,0x602,0x572)},{'id':_0x101ac3(0x69f,0x659,0x5ea,0x676),'effort':_0x22bdb8(0x178,0x1d6,0x244,0x233)},{'id':_0x22bdb8(-0xef,0x15,-0x9a,0x41),'effort':_0x22bdb8(0xb,0x15,-0x1d,-0x28)},{'id':_0x101ac3(0x716,0x618,0x60f,0x620),'effort':_0x22bdb8(0x1a1,0x180,0x218,0x153)}]}},'gpt-5.4-nano':{'reasoning':{'defaultOption':'off','canDisable':!![],'options':[{'id':_0x101ac3(0x56c,0x4b9,0x4ca,0x572),'effort':_0x22bdb8(0x113,0xd2,0x50,0x39)},{'id':_0x101ac3(0x70a,0x75f,0x61b,0x676),'effort':_0x101ac3(0x6ec,0x6c1,0x616,0x676)},{'id':_0x22bdb8(-0x90,0x15,-0x51,0xff),'effort':_0x22bdb8(0x105,0x15,-0x92,-0xa3)},{'id':_0x101ac3(0x658,0x637,0x523,0x620),'effort':_0x22bdb8(0x1c9,0x180,0xf6,0x1a4)}]}},'gpt-5.4-nano-2026-03-17':{'reasoning':{'defaultOption':_0x22bdb8(0x3d,0x35,-0x4c,-0x89),'canDisable':!![],'options':[{'id':'low','effort':_0x22bdb8(0x19d,0xd2,0xc0,0x15c)},{'id':_0x22bdb8(0x1eb,0x1d6,0x146,0x1bc),'effort':'medium'},{'id':_0x101ac3(0x3c7,0x5a6,0x489,0x4b5),'effort':'high'},{'id':_0x22bdb8(0x126,0x180,0x15a,0x12e),'effort':'xhigh'}]}},'gpt-5.2':{'reasoning':{'defaultOption':_0x22bdb8(0x80,0x35,-0x52,-0x7d),'canDisable':!![],'options':[{'id':_0x22bdb8(0x13b,0xd2,0xba,0xac),'effort':_0x101ac3(0x64b,0x544,0x5ad,0x572)},{'id':_0x101ac3(0x5a5,0x77d,0x70b,0x676),'effort':_0x22bdb8(0x2d0,0x1d6,0x29e,0x25c)},{'id':_0x22bdb8(-0x8b,0x15,0x9,0xd1),'effort':_0x22bdb8(0xe5,0x15,-0x10,0x2a)},{'id':'xhigh','effort':_0x22bdb8(0x148,0x180,0x11d,0x14c)}]}},'gpt-5.2-2025-12-11':{'reasoning':{'defaultOption':_0x101ac3(0x5ce,0x527,0x4ab,0x4d5),'canDisable':!![],'options':[{'id':'low','effort':_0x101ac3(0x5c9,0x67d,0x552,0x572)},{'id':_0x22bdb8(0x2ad,0x1d6,0x168,0x142),'effort':_0x22bdb8(0x237,0x1d6,0x149,0x2a7)},{'id':'high','effort':_0x101ac3(0x3ae,0x502,0x3fa,0x4b5)},{'id':_0x101ac3(0x67e,0x573,0x60f,0x620),'effort':_0x101ac3(0x69e,0x5a0,0x648,0x620)}]}},'gpt-5.1':{'reasoning':{'defaultOption':_0x101ac3(0x498,0x4e1,0x544,0x4d5),'canDisable':!![],'options':[{'id':_0x101ac3(0x5da,0x51c,0x59e,0x572),'effort':'low'},{'id':_0x101ac3(0x5c4,0x63b,0x61f,0x676),'effort':_0x101ac3(0x5bc,0x6e1,0x6d8,0x676)},{'id':_0x22bdb8(0x80,0x15,0x105,-0xd5),'effort':_0x101ac3(0x5c2,0x3e3,0x50c,0x4b5)}]}},'gpt-5.1-2025-11-13':{'reasoning':{'defaultOption':'off','canDisable':!![],'options':[{'id':_0x101ac3(0x617,0x4b1,0x5ff,0x572),'effort':_0x101ac3(0x46c,0x50b,0x57f,0x572)},{'id':'medium','effort':'medium'},{'id':_0x22bdb8(0x108,0x15,-0x5d,-0x22),'effort':_0x22bdb8(0xd5,0x15,0x65,0xe3)}]}},'gpt-5':{'reasoning':{'defaultOption':_0x22bdb8(0x270,0x1d6,0x22e,0x14e),'canDisable':![],'options':[{'id':_0x22bdb8(0x2b6,0x1f2,0x221,0x1c3),'effort':_0x22bdb8(0x1ab,0x1f2,0x21e,0x1d0)},{'id':_0x22bdb8(0x93,0xd2,-0x36,0x19e),'effort':_0x22bdb8(-0x24,0xd2,-0x10,0x15a)},{'id':'medium','effort':'medium'},{'id':_0x22bdb8(0x27,0x15,-0x59,-0x2c),'effort':'high'}]}},'gpt-5-2025-08-07':{'reasoning':{'defaultOption':_0x101ac3(0x72b,0x756,0x66b,0x676),'canDisable':![],'options':[{'id':_0x101ac3(0x62a,0x646,0x78a,0x692),'effort':_0x101ac3(0x6f4,0x5bb,0x792,0x692)},{'id':_0x22bdb8(0xec,0xd2,0x161,0x15e),'effort':_0x101ac3(0x4aa,0x5ff,0x59c,0x572)},{'id':'medium','effort':'medium'},{'id':_0x101ac3(0x518,0x42d,0x44a,0x4b5),'effort':'high'}]}},'gpt-5-pro':{'reasoning':{'defaultOption':_0x22bdb8(0x8c,0x15,-0x19,0x2a),'canDisable':![],'options':[{'id':_0x22bdb8(-0xf1,0x15,-0xe1,-0x36),'effort':_0x101ac3(0x3d3,0x583,0x54d,0x4b5)}]}},'gpt-5-pro-2025-10-06':{'reasoning':{'defaultOption':_0x101ac3(0x42d,0x480,0x500,0x4b5),'canDisable':![],'options':[{'id':'high','effort':_0x22bdb8(0x3f,0x15,0xc9,-0x47)}]}}}},'codex':{'label':'Codex','baseUrl':_0x101ac3(0x5cc,0x4fe,0x51a,0x5ad),'surface':'openai-responses','authScheme':_0x101ac3(0x5ba,0x558,0x62d,0x553),'defaultModel':_0x22bdb8(0x14b,0x65,0x13e,0x147),'defaultModels':[_0x101ac3(0x5c2,0x4d4,0x511,0x505)],'supportsModelFetch':!![],'forceStreaming':!![],'models':{'gpt-5.4':{'contextWindow':0x42680,'maxOutput':0x1f400,'reasoning':{'defaultOption':_0x101ac3(0x6a1,0x703,0x5e4,0x676),'canDisable':![],'options':[{'id':_0x101ac3(0x4a2,0x506,0x550,0x572)},{'id':_0x101ac3(0x6ec,0x776,0x619,0x676)},{'id':'high'},{'id':_0x22bdb8(0x1b2,0x180,0x275,0xbb)}]}},'gpt-5.6-sol':{'reasoning':{'defaultOption':_0x22bdb8(0x1b5,0xd2,0xb9,0x13b),'canDisable':![],'options':[{'id':_0x22bdb8(0x171,0xd2,0x10,0x182)},{'id':_0x101ac3(0x5cf,0x648,0x718,0x676)},{'id':_0x101ac3(0x573,0x418,0x566,0x4b5)},{'id':_0x22bdb8(0x25e,0x180,0x261,0x18a)},{'id':'max'}]}},'gpt-5.6-terra':{'reasoning':{'defaultOption':'medium','canDisable':![],'options':[{'id':_0x22bdb8(0x141,0xd2,0x15a,0x1b4)},{'id':_0x22bdb8(0x16e,0x1d6,0x1e4,0x184)},{'id':_0x22bdb8(0x101,0x15,-0xca,0x66)},{'id':_0x101ac3(0x53b,0x6b7,0x634,0x620)},{'id':'max'}]}},'gpt-5.6-luna':{'reasoning':{'defaultOption':_0x101ac3(0x6aa,0x6af,0x698,0x676),'canDisable':![],'options':[{'id':_0x101ac3(0x572,0x54c,0x4dc,0x572)},{'id':'medium'},{'id':_0x22bdb8(0xc,0x15,-0xd9,-0xac)},{'id':'xhigh'},{'id':'max'}]}},'gpt-5.5':{'reasoning':{'defaultOption':_0x22bdb8(0x283,0x1d6,0x2d4,0x17c),'canDisable':![],'options':[{'id':_0x22bdb8(-0x24,0xd2,0x126,0x50)},{'id':_0x101ac3(0x773,0x584,0x67c,0x676)},{'id':_0x22bdb8(-0x94,0x15,0x95,0x11a)},{'id':_0x101ac3(0x70d,0x5d2,0x54b,0x620)}]}},'gpt-5.4-mini':{'reasoning':{'defaultOption':'medium','canDisable':![],'options':[{'id':'low'},{'id':_0x22bdb8(0x2a1,0x1d6,0x278,0x130)},{'id':_0x101ac3(0x478,0x40e,0x458,0x4b5)},{'id':_0x22bdb8(0x227,0x180,0x177,0x265)}]}},'gpt-5.2':{'reasoning':{'defaultOption':_0x101ac3(0x700,0x59a,0x621,0x676),'canDisable':![],'options':[{'id':_0x22bdb8(0x67,0xd2,0x1c9,0xb7)},{'id':_0x22bdb8(0x281,0x1d6,0x1d9,0x1d1)},{'id':_0x22bdb8(-0xd6,0x15,-0x91,0x7b)},{'id':_0x101ac3(0x70e,0x5e0,0x64f,0x620)}]}},'codex-auto-review':{'reasoning':{'defaultOption':_0x101ac3(0x6c1,0x636,0x606,0x676),'canDisable':![],'options':[{'id':'low'},{'id':_0x22bdb8(0x10a,0x1d6,0x1fd,0x218)},{'id':'high'},{'id':_0x101ac3(0x70e,0x5df,0x5c1,0x620)}]}}}},'deepseek':{'label':_0x101ac3(0x640,0x5ff,0x654,0x6ab),'baseUrl':_0x101ac3(0x407,0x516,0x5b2,0x50f),'surface':_0x22bdb8(0x202,0x1f5,0x145,0x239),'authScheme':_0x22bdb8(-0xd,0xb3,0x14b,0x143),'defaultModel':_0x101ac3(0x60c,0x594,0x6fd,0x623),'defaultModels':[_0x22bdb8(0x236,0x183,0x13d,0x122),_0x101ac3(0x3eb,0x4ef,0x4cd,0x4c1)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':'MiniMax','baseUrl':_0x22bdb8(0x2d1,0x1e2,0x1c7,0x19e),'surface':_0x101ac3(0x5fb,0x58c,0x79e,0x695),'authScheme':_0x22bdb8(0x18e,0xb3,0x7,0x17e),'defaultModel':_0x101ac3(0x537,0x5cd,0x5c2,0x5b9),'defaultModels':[_0x22bdb8(0x1c,0x119,0x106,0x210)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x101ac3(0x615,0x61f,0x556,0x52b),'baseUrl':_0x101ac3(0x560,0x5e8,0x516,0x53d),'modelsBaseUrl':_0x22bdb8(-0x37,0x9d,-0xf,0xb5),'surface':'anthropic-messages','authScheme':_0x101ac3(0x5bc,0x58b,0x40b,0x4b7),'defaultModel':_0x101ac3(0x5bf,0x5d6,0x515,0x535),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x22bdb8(0xb2,0xe8,0x149,0x100),'baseUrl':_0x101ac3(0x63f,0x606,0x6da,0x602),'modelsBaseUrl':'https://token-plan-sgp.xiaomimimo.com/v1','surface':'anthropic-messages','authScheme':_0x101ac3(0x521,0x3e0,0x4e1,0x4b7),'defaultModel':'mimo-v2.5-pro','defaultModels':[_0x101ac3(0x5ae,0x6b0,0x72b,0x622)],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default;function _0x101ac3(_0x299b25,_0x2cee12,_0x1390d5,_0x593c2a){return _0x36b7(_0x593c2a-0x31d,_0x1390d5);}var REASONING_METADATA_VERSIONS={'anthropic':_0x22bdb8(0x15d,0x176,0x1eb,0x228),'openai':_0x22bdb8(0x126,0x176,0xbd,0x145),'codex':_0x101ac3(0x6f5,0x729,0x641,0x6a5)},LEGACY_PROVIDER_KEYS={'openai-codex':_0x101ac3(0x4ea,0x6a3,0x60f,0x5cd)};function findProviderKey(_0x2950ea){const _0x3b3633={_0x599c6f:0x4b4,_0x528a9e:0x452,_0x318613:0x3c5,_0x3ae9cf:0x402,_0x207a84:0x265,_0x2a12a0:0x324,_0x1aeab3:0x39d,_0x2ed36a:0x297,_0x572f6c:0x178},_0x5ddff6={_0x251c6c:0x6f,_0x386fbe:0x2a},_0x13e853={_0x31ac84:0x106},_0x56cc62=_0x2950ea[_0x57acba(_0x3b3633._0x599c6f,0x3ab,0x309,_0x3b3633._0x528a9e)](),_0xce352b=Object[_0x57acba(_0x3b3633._0x318613,0x39d,_0x3b3633._0x3ae9cf,0x423)](data[_0x57acba(_0x3b3633._0x207a84,_0x3b3633._0x2a12a0,_0x3b3633._0x1aeab3,_0x3b3633._0x2ed36a)])[_0x2ad146(0x17b,0x278,_0x3b3633._0x572f6c,0x28f)](_0x48d6b4=>_0x48d6b4['toLowerCase']()===_0x56cc62);function _0x2ad146(_0x2968b7,_0x1f1f29,_0x2ba6a3,_0x38b434){return _0x101ac3(_0x2968b7-_0x13e853._0x31ac84,_0x1f1f29-0x13a,_0x38b434,_0x1f1f29- -0x39f);}function _0x57acba(_0x106208,_0x2957e9,_0x44780b,_0x47a289){return _0x22bdb8(_0x106208-_0x5ddff6._0x251c6c,_0x2957e9-0x1f3,_0x106208,_0x47a289-_0x5ddff6._0x386fbe);}if(_0xce352b)return _0xce352b;const _0x496683=LEGACY_PROVIDER_KEYS[_0x56cc62];if(_0x496683)return _0x496683;return void 0x0;}function getProviderProfile(_0x5a68af){const _0x405148={_0x47ac7b:0x4c4,_0x426c8d:0x54e,_0x36b317:0x546,_0x519c8f:0x5b1,_0x255562:0x347,_0x27a81b:0x44e,_0x2eacd6:0x3c4,_0x4de07e:0x5a3,_0x31afcd:0x601,_0x1c8dc4:0x619,_0x1482da:0x715,_0x77cda9:0x610,_0x37a10c:0x63c,_0x1ef905:0x572,_0x215af1:0x580,_0x5489cd:0x53c,_0x2c0633:0x528,_0x3297b6:0x452,_0x323bbf:0x52f,_0x46fcbd:0x4b3,_0x379eb9:0x641,_0x186591:0x4c3},_0x4c4622={_0x55fedf:0x41d},_0x59628e={_0x24b870:0x144,_0x59e0ee:0xa2},_0x547e5f=findProviderKey(_0x5a68af);function _0x370480(_0x15b67c,_0x292055,_0x360029,_0xe6be53){return _0x101ac3(_0x15b67c-_0x59628e._0x24b870,_0x292055-0x7a,_0x15b67c,_0x292055-_0x59628e._0x59e0ee);}function _0x154866(_0x416f3e,_0x4f10c7,_0x562cf0,_0x2788b7){return _0x22bdb8(_0x416f3e-0x176,_0x562cf0-_0x4c4622._0x55fedf,_0x2788b7,_0x2788b7-0x109);}if(!_0x547e5f)return void 0x0;const _0x345404=data[_0x154866(0x4a3,_0x405148._0x47ac7b,_0x405148._0x426c8d,0x502)][_0x547e5f],_0x2d5236={};for(const [_0x3f43be,_0x9c380c]of Object[_0x154866(0x498,_0x405148._0x36b317,0x4b4,_0x405148._0x519c8f)](_0x345404[_0x154866(0x55b,_0x405148._0x255562,_0x405148._0x27a81b,_0x405148._0x2eacd6)])){_0x2d5236[_0x3f43be]=_0x9c380c;}return{'label':_0x345404[_0x370480(0x510,_0x405148._0x4de07e,0x5ba,0x568)],'baseUrl':_0x345404[_0x154866(_0x405148._0x31afcd,0x612,0x537,0x57c)],'modelsBaseUrl':_0x345404[_0x154866(0x5a7,0x4eb,0x59c,_0x405148._0x1c8dc4)],'anthropicBaseUrl':_0x345404[_0x370480(0x62f,_0x405148._0x1482da,0x67b,_0x405148._0x77cda9)],'surface':_0x345404[_0x370480(0x54b,0x60d,_0x405148._0x37a10c,0x5a8)],'authScheme':_0x345404[_0x370480(0x47f,_0x405148._0x1ef905,0x564,_0x405148._0x215af1)],'defaultModel':_0x345404[_0x154866(0x621,0x562,_0x405148._0x5489cd,_0x405148._0x2c0633)],'defaultModels':_0x345404[_0x154866(_0x405148._0x3297b6,0x620,_0x405148._0x323bbf,_0x405148._0x46fcbd)]??[],'supportsModelFetch':_0x345404[_0x370480(0x695,0x5c1,_0x405148._0x379eb9,0x67e)]??![],'forceStreaming':_0x345404[_0x154866(0x4ac,_0x405148._0x186591,0x514,0x429)],'models':_0x2d5236};}function getModelProfile(_0x209bba,_0x269148){const _0x6c11f={_0x553628:0x279,_0x1a2b42:0x376,_0x1a2bac:0x3e9,_0x4d0de3:0x2d4,_0x5e4bc1:0x31c};function _0x5c2cec(_0x1f2cff,_0x4c822b,_0x265c59,_0x4cabde){return _0x22bdb8(_0x1f2cff-0x1c1,_0x4c822b- -0x262,_0x4cabde,_0x4cabde-0x15e);}const _0x45a6b1=findProviderKey(_0x209bba);if(!_0x45a6b1)return void 0x0;function _0x1ff28d(_0x4f9f1f,_0x4f845d,_0x537866,_0x23beec){return _0x22bdb8(_0x4f9f1f-0xc4,_0x4f845d-0x245,_0x537866,_0x23beec-0x79);}return data[_0x1ff28d(_0x6c11f._0x553628,_0x6c11f._0x1a2b42,_0x6c11f._0x1a2bac,_0x6c11f._0x4d0de3)][_0x45a6b1][_0x5c2cec(-0x1f7,-0x231,-0x29a,-_0x6c11f._0x5e4bc1)][_0x269148];}function resolveModelProfile(_0x34328d,_0x5dfed0){const _0x24877a={_0x52858e:0x11b,_0x321cac:0x2f2,_0x38ab1b:0x22b,_0x11fc8f:0x2f,_0x333028:0x76,_0x45f374:0x87,_0x347a5d:0x45,_0x3c5ba6:0x142,_0x272bbe:0x1d3,_0x2468bd:0xfc,_0x31881b:0x29a,_0x51ccc2:0x1a3,_0x59936b:0x14a,_0x174043:0x251,_0x1afca2:0x58,_0x334a0a:0x108,_0xcea87c:0xc,_0x24435e:0x20,_0x422c83:0x100,_0x5b24e3:0x79,_0x70f2d8:0x59,_0x74429:0x0,_0x154a33:0xf3},_0x5c4e28={_0x339f44:0x6fc},_0x1c4da3={_0x4395d8:0xd7};function _0x2e143f(_0x4d59e0,_0x188b57,_0x1fcb1b,_0x5e3477){return _0x22bdb8(_0x4d59e0-0xd6,_0x188b57- -_0x1c4da3._0x4395d8,_0x4d59e0,_0x5e3477-0x3d);}const _0x170c3d=findProviderKey(_0x34328d);if(!_0x170c3d)return void 0x0;const _0x29e38b=data[_0x11d43d(-_0x24877a._0x52858e,-0x12b,-0x11c,-0x12d)][_0x170c3d],_0x4f7a61=_0x29e38b[_0x11d43d(-_0x24877a._0x321cac,-0x22b,-_0x24877a._0x38ab1b,-0x247)][_0x5dfed0];function _0x11d43d(_0x11ce3f,_0x3e4d38,_0x441d09,_0x5b0bc4){return _0x101ac3(_0x11ce3f-0xf5,_0x3e4d38-0x1a2,_0x11ce3f,_0x3e4d38- -_0x5c4e28._0x339f44);}return{'label':_0x29e38b[_0x2e143f(-_0x24877a._0x11fc8f,-_0x24877a._0x333028,-_0x24877a._0x45f374,-_0x24877a._0x347a5d)],'baseUrl':_0x29e38b[_0x11d43d(-0x1bc,-_0x24877a._0x3c5ba6,-_0x24877a._0x272bbe,-0x1a0)],'modelsBaseUrl':_0x29e38b['modelsBaseUrl'],'anthropicBaseUrl':_0x29e38b[_0x2e143f(0x160,_0x24877a._0x2468bd,0x1ca,0xe0)],'surface':_0x4f7a61?.['surface']??_0x29e38b[_0x11d43d(-0x284,-0x191,-0x24c,-_0x24877a._0x31881b)],'authScheme':_0x29e38b['authScheme'],'defaultModel':_0x29e38b['defaultModel'],'defaultModels':_0x29e38b[_0x11d43d(-_0x24877a._0x51ccc2,-_0x24877a._0x59936b,-_0x24877a._0x174043,-0x240)],'supportsModelFetch':_0x29e38b[_0x2e143f(-0x140,-_0x24877a._0x1afca2,-_0x24877a._0x334a0a,0x48)],'forceStreaming':_0x4f7a61?.['forceStreaming']??_0x29e38b[_0x2e143f(_0x24877a._0xcea87c,_0x24877a._0x24435e,_0x24877a._0x422c83,0x9b)],'contextWindow':_0x4f7a61?.[_0x2e143f(_0x24877a._0x5b24e3,-_0x24877a._0x70f2d8,-0x79,0x52)],'maxOutput':_0x4f7a61?.[_0x2e143f(-0x19,-0x6c,-0x132,-0x99)],'reasoning':_0x4f7a61?.[_0x2e143f(0x92,_0x24877a._0x74429,0x6e,-_0x24877a._0x154a33)]};}function getDefaultModel(){const _0x4bf09a={_0x2c3d99:0xfc,_0x5b1162:0x1bc,_0x447b59:0x1b9,_0x491c1b:0x1fc},_0x58455f={_0x3e342a:0x4c3};function _0x4c113d(_0x38f4dd,_0x47e3d9,_0x3a0f96,_0x46031a){return _0x101ac3(_0x38f4dd-0x11f,_0x47e3d9-0x18e,_0x3a0f96,_0x38f4dd- -_0x58455f._0x3e342a);}return data[_0x4c113d(_0x4bf09a._0x2c3d99,_0x4bf09a._0x5b1162,_0x4bf09a._0x447b59,_0x4bf09a._0x491c1b)];}function getCliDefaultModel(){const _0x7ee458={_0x4a80fb:0x27c},_0x435bde={_0x6d5ab5:0x35b};function _0x7f2913(_0x376824,_0x405c4d,_0x1dca02,_0x46e41b){return _0x101ac3(_0x376824-0x172,_0x405c4d-0x1b8,_0x46e41b,_0x405c4d- -_0x435bde._0x6d5ab5);}return data[_0x7f2913(0x2fd,0x216,_0x7ee458._0x4a80fb,0x1eb)];}function getProviderLabel(_0x41f775){const _0x55df8b={_0x49728e:0x6b,_0x5b6746:0x2,_0x4e1300:0xd},_0x4504e1={_0x5d95b1:0x1,_0x19a87f:0x16d,_0x5449b3:0x3f4},_0x530f5c={_0xd97736:0x20,_0x5b3595:0x5d5};function _0x830d7c(_0x3628f4,_0x21ede8,_0x493519,_0x3db2a7){return _0x101ac3(_0x3628f4-_0x530f5c._0xd97736,_0x21ede8-0x30,_0x3db2a7,_0x21ede8- -_0x530f5c._0x5b3595);}function _0x33b9b0(_0x35f001,_0x1d8362,_0x1be756,_0x17ecda){return _0x101ac3(_0x35f001-_0x4504e1._0x5d95b1,_0x1d8362-_0x4504e1._0x19a87f,_0x1d8362,_0x35f001- -_0x4504e1._0x5449b3);}const _0x5f46f3=findProviderKey(_0x41f775);return _0x5f46f3?data[_0x830d7c(-0xc7,-0x4,-_0x55df8b._0x49728e,-_0x55df8b._0x5b6746)][_0x5f46f3][_0x830d7c(-0x1d7,-0xd4,-_0x55df8b._0x4e1300,-0xf6)]:void 0x0;}function getProviderDefaultModel(_0x4a9eb7){const _0x275a44={_0x53f766:0x465,_0x550d4f:0x51d,_0x46bca0:0x471},_0x5f17a6={_0x17732e:0x123},_0x3c56ae=findProviderKey(_0x4a9eb7);function _0x123730(_0x1cd1ba,_0x427bfc,_0x63f2ea,_0x572bbd){return _0x101ac3(_0x1cd1ba-0x149,_0x427bfc-_0x5f17a6._0x17732e,_0x572bbd,_0x63f2ea- -0x14e);}if(!_0x3c56ae)return void 0x0;function _0x423bda(_0x215338,_0x31f283,_0x3ea37e,_0x39fe91){return _0x101ac3(_0x215338-0xb,_0x31f283-0x103,_0x39fe91,_0x3ea37e- -0x261);}return data[_0x423bda(0x403,_0x275a44._0x53f766,0x370,0x2b4)][_0x3c56ae][_0x123730(_0x275a44._0x550d4f,0x398,_0x275a44._0x46bca0,0x37c)];}function getProviderDefaultModels(_0x2e31){const _0x5502ca={_0x4a872b:0x13a,_0x2845db:0xb0},_0x36ed76={_0x3f658a:0x28,_0x16b58a:0x13f},_0x406863=findProviderKey(_0x2e31);if(!_0x406863)return[];function _0x26fca2(_0x40901e,_0x3f0701,_0x133de7,_0xf6451a){return _0x22bdb8(_0x40901e-0x13f,_0x40901e-_0x36ed76._0x3f658a,_0x133de7,_0xf6451a-_0x36ed76._0x16b58a);}return[...data['providers'][_0x406863][_0x26fca2(_0x5502ca._0x4a872b,0x119,_0x5502ca._0x2845db,0x76)]??[]];}function _0x22bdb8(_0x102bd6,_0x3b3593,_0x49fab2,_0x53d9ee){const _0xf766ed={_0x368dae:0x183};return _0x36b7(_0x3b3593- -_0xf766ed._0x368dae,_0x49fab2);}function providerSupportsModelFetch(_0x1dd38b){const _0x308565={_0x1e7a89:0xc8,_0x5e0c28:0x22,_0xac367a:0x12b},_0x1bc388={_0x1949b6:0x3b,_0x3c6c3d:0x509},_0x462916=findProviderKey(_0x1dd38b);function _0x301598(_0x51d152,_0x3b059f,_0x3e8590,_0x4f35f0){return _0x101ac3(_0x51d152-0x112,_0x3b059f-_0x1bc388._0x1949b6,_0x4f35f0,_0x51d152- -_0x1bc388._0x3c6c3d);}if(!_0x462916)return![];return data[_0x301598(_0x308565._0x1e7a89,_0x308565._0x5e0c28,_0x308565._0xac367a,0x19f)][_0x462916]['supportsModelFetch']??![];}function getOnboardingProviderKeys(){return Object['keys'](data['providers']);}var USD_TICKS_PER_DOLLAR=0x2540be400;function normalizeOpenRouterReportedCost(_0x207055,_0x2ea907){const _0x42dc7f={_0x161c20:0x299,_0x230c73:0x418,_0x4eb72f:0x1e7,_0x221267:0x2ed,_0x4618d0:0x28b,_0x5ce146:0x194,_0x52c02e:0x41,_0xd25a72:0x73,_0x1cf643:0x7d},_0x109a48={_0x8da37d:0x17c};if(_0x207055!==_0x1b9e57(0x27f,0x356,_0x42dc7f._0x161c20,0x250))return void 0x0;if(typeof _0x2ea907!=='number'||!Number[_0x1b9e57(0x3f8,0x321,_0x42dc7f._0x230c73,0x3ad)](_0x2ea907)||_0x2ea907<0x0)return void 0x0;function _0x1b9e57(_0x59023e,_0x60303a,_0x1310e8,_0xd9cb0f){return _0x22bdb8(_0x59023e-0x106,_0x60303a-0x1d8,_0xd9cb0f,_0xd9cb0f-_0x109a48._0x8da37d);}const _0x2e3750=Math[_0x1b9e57(0xec,_0x42dc7f._0x4eb72f,_0x42dc7f._0x221267,_0x42dc7f._0x4618d0)](_0x2ea907*USD_TICKS_PER_DOLLAR);function _0x5eaff2(_0x192e96,_0x5b586f,_0x2d3051,_0x31b7e8){return _0x22bdb8(_0x192e96-0x1e7,_0x5b586f- -0x1f1,_0x31b7e8,_0x31b7e8-0x34);}if(!Number[_0x5eaff2(-0x142,-_0x42dc7f._0x5ce146,-0x19c,-0x99)](_0x2e3750))return void 0x0;return{'amountUsdTicks':_0x2e3750,'source':_0x5eaff2(-_0x42dc7f._0x52c02e,-_0x42dc7f._0xd25a72,0x6,-_0x42dc7f._0x1cf643)};}function normalizeXaiReportedCost(_0x720647,_0x3a3511){const _0x1cd73e={_0x309f1e:0x36a,_0x2dee36:0x4eb,_0x5b282c:0x455,_0x54a019:0x3db,_0x397790:0x3fa,_0x375fbc:0x3a},_0x34bbc0={_0xd0afe8:0x90,_0x1d162d:0x54d};function _0x38bcf3(_0x5352fa,_0x1555a0,_0x586c07,_0x5a863e){return _0x22bdb8(_0x5352fa-0x3c,_0x5a863e-0x32a,_0x1555a0,_0x5a863e-0x125);}if(_0x720647!==_0x38bcf3(0x47e,_0x1cd73e._0x309f1e,_0x1cd73e._0x2dee36,_0x1cd73e._0x5b282c))return void 0x0;if(typeof _0x3a3511!==_0x38bcf3(0x32d,0x46c,_0x1cd73e._0x54a019,_0x1cd73e._0x397790)||!Number[_0x11f355(_0x1cd73e._0x375fbc,0x49,-0x50,-0x75)](_0x3a3511)||_0x3a3511<0x0)return void 0x0;function _0x11f355(_0x2ba736,_0x392c6a,_0x4afc60,_0x252c66){return _0x101ac3(_0x2ba736-0x42,_0x392c6a-_0x34bbc0._0xd0afe8,_0x252c66,_0x4afc60- -_0x34bbc0._0x1d162d);}return{'amountUsdTicks':_0x3a3511,'source':'xai'};}var NUVIN_PRICING_PRODUCTS={'anthropic':{'modelsDevProviderId':_0x22bdb8(0x107,0x212,0x273,0x11e)},'commandcode':{},'deepseek':{'modelsDevProviderId':_0x22bdb8(0x150,0xc1,0x40,0x14)},'github':{'modelsDevProviderId':_0x22bdb8(-0x2d,0xdd,0x192,0x1cc),'chatCompletionsIncludeUsage':!![]},'grok':{'modelsDevProviderId':_0x101ac3(0x4e3,0x4c2,0x691,0x5cb)},'minimax':{'modelsDevProviderId':'minimax'},'openai':{'modelsDevProviderId':_0x22bdb8(0xf4,0x13f,0xcb,0x168),'chatCompletionsIncludeUsage':!![]},'codex':{},'opencode-go':{'modelsDevProviderId':'opencode-go'},'openrouter':{'modelsDevProviderId':_0x22bdb8(0x207,0x17e,0x110,0xfd)},'xiaomi':{'modelsDevProviderId':_0x22bdb8(-0x58,0x83,0x51,0x12c)},'zai':{'modelsDevProviderId':_0x22bdb8(0x79,0x5a,0x2d,0x7d)}};function pricingProductForNuvinProvider(_0x574fbe){const _0x4198b7={_0x13442d:0x1c9,_0x20a392:0x2c,_0x4a8756:0xdb,_0x594116:0x5ca,_0x5460a7:0x53b,_0x19aba0:0x5f5},_0x4f09ad={_0x4354f6:0x154,_0x2ddc55:0x12};function _0x5c861b(_0x1f198a,_0x301b65,_0x5c6850,_0x3d1304){return _0x22bdb8(_0x1f198a-_0x4f09ad._0x4354f6,_0x3d1304- -0x172,_0x301b65,_0x3d1304-_0x4f09ad._0x2ddc55);}if(_0x574fbe===void 0x0)return void 0x0;function _0x1e87f8(_0x1e2ff0,_0xc880f8,_0x36401e,_0x577f55){return _0x22bdb8(_0x1e2ff0-0x4e,_0xc880f8-0x453,_0x577f55,_0x577f55-0x187);}return Object[_0x5c861b(-_0x4198b7._0x13442d,-_0x4198b7._0x20a392,-0x10d,-_0x4198b7._0x4a8756)](NUVIN_PRICING_PRODUCTS)[_0x1e87f8(0x656,_0x4198b7._0x594116,_0x4198b7._0x5460a7,_0x4198b7._0x19aba0)](([_0x5a523e])=>_0x5a523e===_0x574fbe)?.[0x1];}function modelsDevProviderIdForNuvinProvider(_0x17d1c7){const _0x126c80={_0x524206:0x6c0,_0x1d54d6:0x7ab,_0x4d6d1f:0x69f},_0x6f8158={_0x1f7ee1:0x5b};function _0x327e7c(_0x3e4648,_0x150ea7,_0x2652c1,_0x49828f){return _0x101ac3(_0x3e4648-0x50,_0x150ea7-0xac,_0x2652c1,_0x150ea7-_0x6f8158._0x1f7ee1);}return pricingProductForNuvinProvider(_0x17d1c7)?.[_0x327e7c(0x68d,_0x126c80._0x524206,_0x126c80._0x1d54d6,_0x126c80._0x4d6d1f)];}function pricingProviderNeedsChatUsage(_0x1d3375){const _0x43bafa={_0x5e046c:0x144,_0x5dc84c:0x1f0,_0x4664ae:0x1a1},_0x3ce150={_0x3a7321:0x4,_0xe96d32:0x43};function _0x8d4c8f(_0x366fb3,_0x26709c,_0x25b6ec,_0x238e7e){return _0x101ac3(_0x366fb3-_0x3ce150._0x3a7321,_0x26709c-0xfc,_0x25b6ec,_0x26709c- -_0x3ce150._0xe96d32);}function _0x13c46d(_0x4b26a1,_0x189c4f,_0x1fc8c8,_0xfb3f3){return _0x22bdb8(_0x4b26a1-0x65,_0x189c4f-0x114,_0x1fc8c8,_0xfb3f3-0x127);}return Object[_0x13c46d(_0x43bafa._0x5e046c,_0x43bafa._0x5dc84c,0x228,_0x43bafa._0x4664ae)](NUVIN_PRICING_PRODUCTS)['some'](_0x178c5c=>'modelsDevProviderId'in _0x178c5c&&_0x178c5c['modelsDevProviderId']===_0x1d3375&&_0x8d4c8f(0x3fb,0x502,0x41f,0x422)in _0x178c5c&&_0x178c5c['chatCompletionsIncludeUsage']===!![]);}var SUPPORTED_MODELS_DEV_PROVIDER_IDS=[...new Set(Object[_0x101ac3(0x5a2,0x4d5,0x4a8,0x57c)](NUVIN_PRICING_PRODUCTS)[_0x101ac3(0x4ef,0x4a6,0x542,0x533)](_0x2db843=>_0x101ac3(0x6ab,0x75f,0x70c,0x665)in _0x2db843?[_0x2db843['modelsDevProviderId']]:[]))]['sort'](),OPENAI_CHAT_COMPLETIONS_SURFACE=_0x101ac3(0x45d,0x57c,0x499,0x566),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x101ac3(0x5e6,0x549,0x4a8,0x580),OPENAI_RESPONSES_SURFACE=_0x101ac3(0x5ea,0x5bf,0x69c,0x615),OPENAI_RESPONSES_STREAM_SURFACE='openai-responses-stream',OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0x22bdb8(0x102,0x50,-0x10,0x51)];['body'];constructor(_0x4c5ebd,_0x129b17,_0x2b6a7a){const _0x4559ac={_0x24cb12:0x23f,_0x3fd96b:0x2c9,_0x246fd0:0x313,_0x3ed8e2:0xc2,_0x25dc3c:0xba,_0x5bd674:0x9e},_0xca7067={_0x395c21:0xa0,_0x4e33a8:0x562},_0x42f6d8={_0x1debcb:0xed,_0x2a3209:0x93};super(_0x2b6a7a);function _0x5abd41(_0x57e38f,_0x53a4ae,_0x2cecb1,_0x3e5879){return _0x101ac3(_0x57e38f-_0x42f6d8._0x1debcb,_0x53a4ae-_0x42f6d8._0x2a3209,_0x57e38f,_0x3e5879- -0x1dd);}function _0x4b65fb(_0x457ce4,_0x2b36d3,_0x3e63ec,_0x3b6a84){return _0x101ac3(_0x457ce4-0x1bd,_0x2b36d3-_0xca7067._0x395c21,_0x457ce4,_0x3e63ec- -_0xca7067._0x4e33a8);}this['name']='OpenAiApiError',this[_0x5abd41(0x3ab,_0x4559ac._0x24cb12,_0x4559ac._0x3fd96b,_0x4559ac._0x246fd0)]=_0x4c5ebd,this[_0x4b65fb(-_0x4559ac._0x3ed8e2,_0x4559ac._0x25dc3c,0x2c,_0x4559ac._0x5bd674)]=_0x129b17;}};function stringifySystem(_0x2dfb2f){const _0x3c262a={_0x55631f:0x555,_0x293cb2:0x50c,_0x40bc10:0x4c0},_0x18bb31={_0xf14aba:0x12d,_0x5e89cc:0x22},_0x98cb09={_0x2e50ac:0x76};function _0x748173(_0x2461d4,_0x2ab59c,_0x2fff0b,_0x39e011){return _0x22bdb8(_0x2461d4-0xe4,_0x2ab59c-0x43a,_0x2461d4,_0x39e011-_0x98cb09._0x2e50ac);}function _0xfc61ed(_0x12abf4,_0x5b1ed1,_0x2080f0,_0x5045fa){return _0x101ac3(_0x12abf4-_0x18bb31._0xf14aba,_0x5b1ed1-0xde,_0x12abf4,_0x5045fa-_0x18bb31._0x5e89cc);}return _0x2dfb2f[_0x748173(_0x3c262a._0x55631f,0x485,0x45d,_0x3c262a._0x293cb2)](_0x1407ac=>_0x1407ac[_0x748173(0x67b,0x5cb,0x4ec,0x66d)])[_0x748173(_0x3c262a._0x40bc10,0x5c8,0x653,0x50b)]('\x0a\x0a');}function createToolDefinitions(_0x485519){const _0x7b84ce={_0x22f3a2:0x27d},_0x4d3c9d={_0x36bbfa:0x221,_0x47101a:0x2c9,_0x3e7488:0x2ba,_0x2a12de:0x3d1,_0x3c4896:0x481,_0x5aee54:0x319},_0x1d124a={_0x3d7763:0x143,_0x33ac78:0x59},_0x32b7a4={_0x2f47fe:0x92};if(_0x485519[_0x517a1b(0x25e,_0x7b84ce._0x22f3a2,0x26c,0x2be)]===0x0)return void 0x0;function _0x517a1b(_0x48204b,_0x1c7526,_0x4f892e,_0x2dd3bc){return _0x101ac3(_0x48204b-0x149,_0x1c7526-0x11,_0x4f892e,_0x2dd3bc- -0x36e);}return _0x485519['map'](_0x23f497=>{function _0x5cdc9a(_0x3bbe2d,_0x168444,_0x2a27b8,_0x412fd0){return _0x517a1b(_0x3bbe2d-0x33,_0x168444-_0x32b7a4._0x2f47fe,_0x168444,_0x3bbe2d-0x189);}function _0x3185f7(_0x107777,_0x524b56,_0x4162c6,_0x230363){return _0x517a1b(_0x107777-_0x1d124a._0x3d7763,_0x524b56-_0x1d124a._0x33ac78,_0x524b56,_0x4162c6-0xde);}return{'type':_0x3185f7(_0x4d3c9d._0x36bbfa,0x34d,0x2a1,0x2a0),'function':{'name':_0x23f497[_0x5cdc9a(_0x4d3c9d._0x47101a,0x250,0x3ab,_0x4d3c9d._0x3e7488)],'description':_0x23f497['description'],'parameters':_0x23f497[_0x5cdc9a(_0x4d3c9d._0x2a12de,_0x4d3c9d._0x3c4896,0x390,_0x4d3c9d._0x5aee54)]}};});}function isImageToolResultBlock(_0x3797d0){const _0x13009e={_0x5261bb:0xe3,_0x350e8e:0x1aa,_0x8cb997:0x81,_0x1fc40a:0x135,_0x2a021f:0x203,_0x2a8894:0x2f9,_0x1c775f:0x1ee,_0x25af79:0x22a,_0x16184d:0x183,_0x30722e:0xf2,_0xff5e44:0x4,_0x5cc0ec:0x1eb,_0xb65bd3:0x18a,_0x3402c7:0xf,_0x3b0a3f:0x44,_0x29d4fd:0x7c,_0x1e9ade:0x17,_0x506bd1:0xcb,_0x43ffe8:0x1ab,_0x4fcdca:0x239,_0x558697:0x170,_0x8eb954:0x158,_0x3aab2c:0x22d,_0x2c8510:0x321,_0x1430f9:0x92},_0x5bb755={_0x493dcd:0x1c,_0x37004b:0x4e3},_0x530601={_0x2becbd:0x2,_0x46b333:0x171,_0x2c5011:0x39c};function _0xaa9693(_0x10213b,_0xeaf075,_0x19b972,_0x10e30a){return _0x101ac3(_0x10213b-_0x530601._0x2becbd,_0xeaf075-_0x530601._0x46b333,_0x10e30a,_0xeaf075- -_0x530601._0x2c5011);}function _0x221884(_0xeaa0bc,_0x38d67e,_0x414d91,_0x1b0fa0){return _0x101ac3(_0xeaa0bc-0x1d4,_0x38d67e-_0x5bb755._0x493dcd,_0x414d91,_0xeaa0bc- -_0x5bb755._0x37004b);}if(typeof _0x3797d0!==_0xaa9693(0x232,0x27f,0x214,0x335)||_0x3797d0===null||Array['isArray'](_0x3797d0))return![];const _0x2ce8a1=_0x3797d0;return _0x2ce8a1[_0x221884(_0x13009e._0x5261bb,0x149,_0x13009e._0x350e8e,_0x13009e._0x8cb997)]===_0x221884(_0x13009e._0x1fc40a,0xbf,_0x13009e._0x2a021f,0x1da)&&_0x2ce8a1[_0xaa9693(_0x13009e._0x2a8894,0x239,_0x13009e._0x1c775f,0x1a8)]?.[_0xaa9693(0x204,_0x13009e._0x25af79,_0x13009e._0x16184d,0x15c)]==='base64'&&typeof _0x2ce8a1[_0x221884(_0x13009e._0x30722e,_0x13009e._0xff5e44,_0x13009e._0x5cc0ec,_0x13009e._0xb65bd3)][_0x221884(-_0x13009e._0x3402c7,0x45,_0x13009e._0x3b0a3f,_0x13009e._0x29d4fd)]===_0x221884(-_0x13009e._0x1e9ade,_0x13009e._0x506bd1,0x55,-0x43)&&typeof _0x2ce8a1[_0xaa9693(_0x13009e._0x43ffe8,_0x13009e._0x4fcdca,_0x13009e._0x558697,_0x13009e._0x8eb954)][_0xaa9693(0x125,_0x13009e._0x3aab2c,_0x13009e._0x2c8510,0x23d)]===_0xaa9693(_0x13009e._0x1430f9,0x130,0x14d,0x59);}function getToolResultText(_0x2f8a26){const _0x315f22={_0x35b459:0x1ad,_0x1d8dc8:0x19e,_0x4fa9a4:0x184,_0x32b606:0x1b0,_0x115d93:0xb1,_0x17c4f6:0xc7,_0xad8e84:0x144,_0x39ab34:0x2cf,_0x4a39f0:0x190,_0x211ad5:0x257,_0x556bf3:0x4a,_0x4b2c2b:0x3e},_0x38c8dd={_0x7bb309:0x244,_0x4aeec6:0x248,_0x5c82c1:0x170,_0x5e9288:0x4fc,_0x3ae4c4:0x503},_0x3e90c3={_0x144a11:0x158,_0xccd376:0x53c},_0x2d2e23={_0x572de4:0x4a,_0x553e03:0xd3},_0x280630={_0x5c7c5a:0x1ca,_0xf71ab8:0x192};function _0x2391b7(_0x394f37,_0x5948bc,_0x1ac183,_0x2b09a1){return _0x22bdb8(_0x394f37-0x17b,_0x2b09a1- -_0x280630._0x5c7c5a,_0x5948bc,_0x2b09a1-_0x280630._0xf71ab8);}function _0x5239ae(_0x1f130c,_0x30098e,_0x15dd8f,_0x4fd8c1){return _0x22bdb8(_0x1f130c-0x110,_0x1f130c- -_0x2d2e23._0x572de4,_0x4fd8c1,_0x4fd8c1-_0x2d2e23._0x553e03);}if(typeof _0x2f8a26===_0x2391b7(-0x150,-_0x315f22._0x35b459,-0x145,-_0x315f22._0x1d8dc8))return _0x2f8a26;const _0x5e82fd=_0x2f8a26[_0x2391b7(-_0x315f22._0x4fa9a4,-_0x315f22._0x32b606,-_0x315f22._0x115d93,-0xe3)](_0x158378=>{const _0x40f976={_0x414cf4:0xa3,_0x5ecf95:0x1a4};function _0x430b98(_0x1a0823,_0x106a54,_0x30c917,_0x326573){return _0x2391b7(_0x1a0823-0x1c8,_0x106a54,_0x30c917-_0x3e90c3._0x144a11,_0x326573-_0x3e90c3._0xccd376);}function _0x5db9ba(_0x53a428,_0x3309d6,_0xb7dbdb,_0x3253bd){return _0x2391b7(_0x53a428-_0x40f976._0x414cf4,_0x53a428,_0xb7dbdb-0x1e5,_0x3309d6-_0x40f976._0x5ecf95);}return typeof _0x158378===_0x5db9ba(_0x38c8dd._0x7bb309,0x155,_0x38c8dd._0x4aeec6,_0x38c8dd._0x5c82c1)&&_0x158378!==null&&_0x158378['type']===_0x430b98(_0x38c8dd._0x5e9288,0x581,0x4d4,_0x38c8dd._0x3ae4c4);})[_0x5239ae(0x1,0xee,_0x315f22._0x17c4f6,-0x73)](_0x105cdc=>_0x105cdc['text'])[_0x5239ae(_0x315f22._0xad8e84,0xfc,0xb2,0xd2)]('\x0a\x0a')[_0x5239ae(0x1d3,_0x315f22._0x39ab34,_0x315f22._0x4a39f0,_0x315f22._0x211ad5)]();return _0x5e82fd[_0x2391b7(-_0x315f22._0x556bf3,-0x48,-0x9d,-_0x315f22._0x4b2c2b)]>0x0?_0x5e82fd:_0x2391b7(-0x1ac,-0x267,-0x1cb,-0x15c);}function getToolResultImages(_0x31d171){const _0x112ee8={_0x30f48a:0x561,_0x768986:0x563,_0x50f8cf:0x57c,_0x564aa3:0x3f4},_0x2a4c3a={_0x1146ce:0xd4},_0x2b9077={_0x25d244:0x3af};function _0x388f7e(_0xb7124d,_0x2406cb,_0x41fcfd,_0x5c06ca){return _0x22bdb8(_0xb7124d-0x119,_0x2406cb-_0x2b9077._0x25d244,_0x5c06ca,_0x5c06ca-0x1f2);}function _0x4a7edc(_0x287b27,_0x2fe7a8,_0x56835c,_0x3d6de2){return _0x101ac3(_0x287b27-0x1a4,_0x2fe7a8-_0x2a4c3a._0x1146ce,_0x287b27,_0x56835c- -0x65a);}return Array[_0x388f7e(0x502,_0x112ee8._0x30f48a,_0x112ee8._0x768986,0x545)](_0x31d171)?_0x31d171[_0x388f7e(0x4ab,0x496,_0x112ee8._0x50f8cf,_0x112ee8._0x564aa3)](isImageToolResultBlock):[];}function parseToolInput2(_0x54fa48){const _0x2d8074={_0x4b8ba1:0x6,_0x4316da:0x43},_0x1f8bda={_0x25f9ce:0xfc,_0x3dadaf:0x6c8};if(_0x54fa48[_0x2a97c0(-0x11b,-0x9c,-_0x2d8074._0x4b8ba1,-_0x2d8074._0x4316da)]===0x0)return{};function _0x2a97c0(_0x55dc58,_0x13d37c,_0xe8e404,_0x228262){return _0x101ac3(_0x55dc58-0x38,_0x13d37c-_0x1f8bda._0x25f9ce,_0xe8e404,_0x13d37c- -_0x1f8bda._0x3dadaf);}try{return JSON['parse'](_0x54fa48);}catch{return _0x54fa48;}}function isResponsesReasoningItem(_0x2ee154){const _0x505173={_0x4c4799:0x69,_0x27d78e:0x2b2,_0x58b781:0x299,_0x21b886:0x227,_0xd8aa36:0x20f},_0x214403={_0x32b5c8:0x11a},_0x16faca={_0x1cd186:0x1ad};function _0x130cfd(_0x545856,_0x316d77,_0x3f3f6b,_0x4501e0){return _0x22bdb8(_0x545856-0x9f,_0x316d77- -_0x16faca._0x1cd186,_0x4501e0,_0x4501e0-0x136);}function _0xee4b81(_0x28053c,_0x4c47ac,_0x299748,_0x2e20ed){return _0x22bdb8(_0x28053c-_0x214403._0x32b5c8,_0x299748-0x11e,_0x28053c,_0x2e20ed-0x85);}return typeof _0x2ee154===_0x130cfd(0xa4,-0x32,0x9,_0x505173._0x4c4799)&&_0x2ee154!==null&&_0xee4b81(_0x505173._0x27d78e,_0x505173._0x58b781,0x244,_0x505173._0x21b886)in _0x2ee154&&_0x2ee154['type']===_0xee4b81(0x209,0xfb,0x1f5,_0x505173._0xd8aa36);}function isResponsesMessageItem(_0x554bc3){const _0x26f2ce={_0x2f13fa:0x9,_0x4fde3f:0x30f,_0x138e1a:0x33a},_0xd97950={_0x2ec30c:0x2d1},_0x595aee={_0x1e3fe5:0x17e,_0x32af4f:0x84};function _0x506c43(_0x3acd20,_0x41d6d9,_0x5504ef,_0x1bd272){return _0x22bdb8(_0x3acd20-_0x595aee._0x1e3fe5,_0x41d6d9- -0x23d,_0x5504ef,_0x1bd272-_0x595aee._0x32af4f);}function _0x1c6e6d(_0x36c5a1,_0x5b2fef,_0x1537d7,_0x16c359){return _0x101ac3(_0x36c5a1-0x3a,_0x5b2fef-0x13c,_0x1537d7,_0x36c5a1- -_0xd97950._0x2ec30c);}return typeof _0x554bc3==='object'&&_0x554bc3!==null&&_0x506c43(-0x19d,-0x117,-0xf9,-_0x26f2ce._0x2f13fa)in _0x554bc3&&_0x554bc3[_0x1c6e6d(0x2f5,0x343,_0x26f2ce._0x4fde3f,_0x26f2ce._0x138e1a)]==='message';}function isResponsesFunctionCallItem(_0x5b1b41){const _0x3693dd={_0x5eeb0d:0x53,_0xca8d1a:0x2b,_0x58fad9:0xc5,_0x159ad5:0x2c,_0x1850c3:0x13d,_0x5127d7:0x16d,_0x23b330:0x1ff},_0x44e699={_0x8fe526:0x1b},_0x5348e5={_0x40c140:0x151,_0x56c155:0x147};function _0x4cfe1e(_0x342761,_0x19bc88,_0x469fd5,_0x42fb52){return _0x22bdb8(_0x342761-0x1d9,_0x19bc88- -_0x5348e5._0x40c140,_0x342761,_0x42fb52-_0x5348e5._0x56c155);}function _0x2ed368(_0x1044d9,_0x20bb7d,_0xad089e,_0x29370e){return _0x22bdb8(_0x1044d9-0xf7,_0x29370e-0x177,_0xad089e,_0x29370e-_0x44e699._0x8fe526);}return typeof _0x5b1b41==='object'&&_0x5b1b41!==null&&_0x4cfe1e(-_0x3693dd._0x5eeb0d,-_0x3693dd._0xca8d1a,-0xd1,_0x3693dd._0x58fad9)in _0x5b1b41&&_0x5b1b41[_0x4cfe1e(0xbe,-0x2b,-0x39,-_0x3693dd._0x159ad5)]===_0x2ed368(_0x3693dd._0x1850c3,_0x3693dd._0x5127d7,0x24b,_0x3693dd._0x23b330);}function createContentBlocks(_0x10c771,_0xbe04d0,_0x2afcdf){const _0x346b9f={_0x37b6c0:0x23,_0x378fb9:0x124,_0x2a9a99:0x66e,_0x1a4569:0x680,_0x27fd03:0x66b,_0x3571cb:0x64f,_0x575663:0x67e,_0x3984f4:0xbf,_0x2df974:0x78,_0x233f89:0x4b,_0x452aa1:0x77c,_0x31079a:0x72a,_0x575596:0x70a,_0x21c562:0x791,_0x379294:0x662,_0xe1c225:0x70f,_0x5773f0:0x6ce,_0x3f69a0:0x62d,_0x499e08:0x5d3,_0x2f7d34:0x5bd,_0x3f8362:0x652,_0x5c033a:0x5bf,_0xb58b4:0x6ef,_0x7662c0:0x84e,_0x56987e:0x81,_0x77b082:0xad,_0x1712b3:0x82,_0xce0d16:0x1a3,_0x1164d2:0x2,_0xe0c137:0x1a9,_0x21a5cc:0x162,_0x38b93f:0xbb,_0x21e7c6:0xd8,_0x20de41:0x197,_0x1199cc:0xf8,_0x1ccee6:0x67,_0x24c2d1:0x8d},_0x79d399={_0x4a7ee9:0x16d},_0x163013={_0x4a5a6a:0x153,_0x51e175:0x112};function _0x22a462(_0x3200a0,_0x266e49,_0x33334a,_0x2e5607){return _0x22bdb8(_0x3200a0-_0x163013._0x4a5a6a,_0x33334a-0x542,_0x2e5607,_0x2e5607-_0x163013._0x51e175);}const _0x236f95=[];_0x2afcdf&&_0x2afcdf[_0x96afb7(0x35,_0x346b9f._0x37b6c0,_0x346b9f._0x378fb9,0x3d)]>0x0&&_0x236f95[_0x22a462(_0x346b9f._0x2a9a99,0x6f4,_0x346b9f._0x1a4569,_0x346b9f._0x27fd03)]({'type':_0x22a462(0x6e7,_0x346b9f._0x3571cb,_0x346b9f._0x575663,0x61c),'summary':[],'text':_0x2afcdf});_0x10c771[_0x96afb7(-_0x346b9f._0x3984f4,_0x346b9f._0x37b6c0,_0x346b9f._0x2df974,-_0x346b9f._0x233f89)]>0x0&&_0x236f95[_0x22a462(_0x346b9f._0x452aa1,_0x346b9f._0x31079a,0x680,0x5fa)]({'type':_0x22a462(0x770,0x78e,0x6d3,0x6b9),'text':_0x10c771});function _0x96afb7(_0x48edc2,_0x3560e8,_0x43fb0c,_0x4564ba){return _0x22bdb8(_0x48edc2-0x7a,_0x3560e8- -0x169,_0x43fb0c,_0x4564ba-_0x79d399._0x4a7ee9);}for(const _0x5b51bb of _0xbe04d0){if(_0x5b51bb['id'][_0x22a462(_0x346b9f._0x575596,_0x346b9f._0x21c562,0x75f,_0x346b9f._0x379294)]()[_0x22a462(_0x346b9f._0xe1c225,0x5ff,_0x346b9f._0x5773f0,_0x346b9f._0x3f69a0)]===0x0||_0x5b51bb[_0x22a462(0x4f4,0x5fa,_0x346b9f._0x499e08,_0x346b9f._0x2f7d34)][_0x22a462(0x649,_0x346b9f._0x3f8362,0x550,_0x346b9f._0x5c033a)][_0x22a462(_0x346b9f._0xb58b4,0x764,0x75f,_0x346b9f._0x7662c0)]()[_0x96afb7(-_0x346b9f._0x56987e,_0x346b9f._0x37b6c0,_0x346b9f._0x77b082,-_0x346b9f._0x1712b3)]===0x0)continue;_0x236f95[_0x22a462(0x574,0x76f,0x680,0x770)]({'type':_0x96afb7(-_0x346b9f._0xce0d16,-0xaa,-0x17c,_0x346b9f._0x1164d2),'id':_0x5b51bb['id'],'name':_0x5b51bb[_0x96afb7(-_0x346b9f._0xe0c137,-0xd8,-_0x346b9f._0x21a5cc,-_0x346b9f._0x38b93f)]['name'],'input':parseToolInput2(_0x5b51bb[_0x96afb7(0x35,-_0x346b9f._0x21e7c6,-_0x346b9f._0x20de41,-_0x346b9f._0x1199cc)][_0x96afb7(-0xa7,-_0x346b9f._0x1ccee6,-_0x346b9f._0x24c2d1,-0x159)])});}return _0x236f95;}function createUsage(_0x4b9177,_0x9a01e2){const _0x40a324={_0x68aebf:0xb8,_0x32c645:0x17,_0x3828f7:0x1ba,_0x315436:0x1b0,_0x4ae0ca:0x1b9,_0x33267f:0x55,_0x47de48:0x8c,_0xc80b0:0x16d,_0x77dee6:0x53,_0x363e16:0xa8,_0x2916a1:0x60,_0x42eeb5:0xd2,_0x22f1a0:0x12d,_0x1c4700:0x1ed,_0x2aee24:0x157,_0x128a08:0x22d,_0x115267:0x21a,_0x334b42:0x28,_0x595575:0x1c7,_0x33e47a:0x1eb,_0x1a1c54:0x27e},_0x242466={_0x11284e:0x80,_0x143538:0x5f4},_0x3fcc3a={_0x135378:0x254},_0x374cd6=normalizeOpenRouterReportedCost(_0x9a01e2[_0x37284f(-_0x40a324._0x68aebf,-_0x40a324._0x32c645,0x50,-0x5c)][_0x37284f(-_0x40a324._0x3828f7,-_0x40a324._0x315436,-_0x40a324._0x4ae0ca,-0x1bb)],_0x4b9177?.[_0x58a28a(-_0x40a324._0x33267f,-0xa2,-0xe1,_0x40a324._0x47de48)]),_0x4876fb=_0x4b9177?.[_0x37284f(-0x153,-_0x40a324._0xc80b0,-0x16a,-_0x40a324._0x315436)]?.['cached_tokens'];function _0x37284f(_0x53e6a6,_0x5d8dd2,_0x20367e,_0x304faf){return _0x22bdb8(_0x53e6a6-0x6a,_0x53e6a6- -_0x3fcc3a._0x135378,_0x20367e,_0x304faf-0x78);}function _0x58a28a(_0x245c13,_0x56996f,_0x3a644b,_0x51f1f2){return _0x101ac3(_0x245c13-0x7d,_0x56996f-_0x242466._0x11284e,_0x3a644b,_0x245c13- -_0x242466._0x143538);}const _0x57830e=_0x4b9177?.[_0x58a28a(-_0x40a324._0x77dee6,_0x40a324._0x363e16,0x2e,-0xab)]?.[_0x37284f(-0xab,-_0x40a324._0x2916a1,-_0x40a324._0x42eeb5,-_0x40a324._0x22f1a0)],_0x43ac7d=_0x4b9177?.[_0x37284f(-_0x40a324._0x1c4700,-_0x40a324._0x2aee24,-_0x40a324._0x128a08,-_0x40a324._0x115267)]?.['reasoning_tokens'];return{'inputTokens':_0x4b9177?.[_0x58a28a(0x3e,-_0x40a324._0x334b42,0x69,0x9a)]??0x0,'outputTokens':_0x4b9177?.[_0x37284f(-0x248,-_0x40a324._0x595575,-_0x40a324._0x33e47a,-_0x40a324._0x1a1c54)]??0x0,..._0x43ac7d!==void 0x0?{'reasoningTokens':_0x43ac7d}:{},..._0x4876fb!==void 0x0?{'cacheReadInputTokens':_0x4876fb}:{},..._0x57830e!==void 0x0?{'cacheCreationInputTokens':_0x57830e}:{},..._0x374cd6!==void 0x0?{'reportedCost':_0x374cd6}:{}};}function resolveReasoningVisibility2(_0x35a48f){const _0x46e2fb={_0x3c325c:0xef,_0xa34862:0x184,_0x338035:0x13e},_0x30d92c={_0x5ad4e9:0x9c};function _0x1cb7d6(_0x17cb16,_0x3a9c82,_0x730609,_0x67e72){return _0x22bdb8(_0x17cb16-0x167,_0x17cb16- -_0x30d92c._0x5ad4e9,_0x730609,_0x67e72-0x0);}function _0x1ba7b1(_0x578768,_0x45390c,_0x2484d3,_0x256bc7){return _0x22bdb8(_0x578768-0x18a,_0x256bc7-0x3f9,_0x578768,_0x256bc7-0x40);}return _0x35a48f['reasoning']?.[_0x1cb7d6(0x115,_0x46e2fb._0x3c325c,0xe1,0x14)]??_0x1cb7d6(0x11b,_0x46e2fb._0xa34862,0xf4,_0x46e2fb._0x338035);}function isUserVisibleReasoning(_0xc029bd){const _0x30e214={_0x87d72:0x5e},_0x490b54={_0x15378d:0x1a2,_0x2c3d74:0x549};function _0x4f3179(_0xbd975f,_0x51c120,_0x5d7bc0,_0x518119){return _0x101ac3(_0xbd975f-_0x490b54._0x15378d,_0x51c120-0xc1,_0xbd975f,_0x5d7bc0- -_0x490b54._0x2c3d74);}return resolveOpenAiReasoningConfig(_0xc029bd[_0x4f3179(-_0x30e214._0x87d72,0xd3,0x2e,0xa3)])!==void 0x0&&resolveReasoningVisibility2(_0xc029bd)==='user-visible';}function createChatRequestBody(_0x36a8aa,_0x5166ec){const _0x5ccf62={_0x2640ae:0x7ed,_0x7a2a00:0x70b,_0xc6df78:0x7a7,_0x33a315:0x644,_0x4eefa1:0x74e,_0x18b3dc:0x6c6,_0x3a7fc4:0x702,_0xb81fc8:0x687,_0x3caf9b:0x5d0,_0x459737:0x500,_0x9bc6db:0x619,_0x21d86d:0x5d5,_0x4ee8b8:0x5ba,_0x1eacde:0x660,_0x4ffc6a:0x374,_0xc028de:0x478,_0x8ec23b:0x76e,_0x562ca9:0x6cb,_0x222690:0x762,_0x1e1a63:0x4d4,_0x5c5fee:0x3d6,_0x30092d:0x6bd,_0x451c51:0x633,_0x44f159:0x6bd,_0x53df8a:0x551,_0x374573:0x5c6,_0x4113ab:0x77b,_0x47afac:0x757,_0x3a8cc1:0x566,_0x3b1a9d:0x66f,_0x4786c0:0x729,_0x2200d3:0x3d4,_0x209438:0x4af,_0x1ccfe2:0x755,_0x22e3bd:0x65e,_0x50c310:0x347,_0x2e3bf6:0x5ab,_0xcfef83:0x699,_0x20ac97:0x520,_0x39ff93:0x56f,_0x1083a5:0x37a,_0x2f4abe:0x48a,_0x19b167:0x5db,_0x2cf908:0x777,_0x429f28:0x6dc,_0x87b13d:0x60e,_0x18acdc:0x554,_0x40dcb7:0x563,_0x3382e9:0x399,_0x4c4710:0x68f,_0x5895aa:0x7b4,_0x2e9d84:0x5ae,_0x562d90:0x672,_0x25b017:0x624,_0x14bca4:0x69a,_0x3665d5:0x611,_0x45eb25:0x4e9,_0x2649cb:0x32e,_0x793d56:0x7be,_0x1ba8f7:0x686,_0x581278:0x4ff,_0x1687cf:0x673,_0x33be5a:0x588,_0x2255b9:0x552,_0x38b398:0x4d9,_0x2542a2:0x40c,_0x35af68:0x380,_0x3f73d0:0x5cd,_0x288769:0x696,_0x3a46bb:0x648,_0x18e819:0x495,_0x5526ca:0x486,_0x11211e:0x483,_0x53e3c7:0x3dc,_0x513053:0x3da,_0x146f75:0x331,_0x48b616:0x3b1,_0x5b8cc5:0x3fb,_0x4523cb:0x3ec,_0x1bb252:0x2b5,_0x50c5a2:0x304,_0xf012b1:0x3ad,_0x14804a:0x371,_0x38f17d:0x2f5,_0x1c3218:0x498,_0x3a3577:0x454,_0x46aa31:0x500,_0x14b92a:0x569,_0xc6ec42:0x557,_0x7ca92b:0x52d,_0x257f44:0x475,_0x5da753:0x3c4,_0x29a14a:0x3cc,_0x551a52:0x3ed,_0x535161:0x50a},_0x1ab951={_0x21190f:0x659,_0x42a208:0x1d3,_0x42133b:0x22f,_0x374c3c:0x18e,_0x4439f0:0x76b,_0x492ffd:0x631,_0x599542:0x657,_0xc851c1:0x5f1,_0x2878c7:0x740,_0x1e75fc:0x775,_0x45ff5c:0x6a5,_0x22a770:0x75f,_0x195e4c:0x621,_0x251612:0x78c,_0x38f3b5:0x67c,_0x687207:0x78e,_0x45eb95:0x7a7,_0xb76062:0x648,_0x5cb9d3:0x641,_0xdccd68:0x50c,_0x1c7141:0x5a1,_0x488ddd:0x6d7,_0x5d31ef:0x156,_0xf92f10:0x6b,_0x4c60c0:0x115,_0x50f02c:0x142,_0x30d460:0x1bf,_0x5803b8:0xeb,_0x4cb8ad:0x4d,_0x985989:0x5b9,_0x6621a7:0x6a5,_0x22ae4c:0x68e,_0x2f754b:0x1bd,_0x2d25ff:0x136,_0x5a2fb4:0x27c,_0x3c8615:0xf6,_0x3e1c38:0x18e},_0x391ace={_0xd13870:0xd6,_0x2e1a25:0x8b},_0x4536b2={_0x39447d:0xcf},_0x47159f={_0x1b5d7b:0x12c,_0x2f4190:0x9a},_0x2a0414=[],_0x2452cc=stringifySystem(_0x36a8aa[_0x144a36(0x6f6,_0x5ccf62._0x2640ae,_0x5ccf62._0x7a2a00,_0x5ccf62._0xc6df78)]);function _0x144a36(_0x1e5fd7,_0x217e5b,_0x16c919,_0x4d19c2){return _0x101ac3(_0x1e5fd7-_0x47159f._0x1b5d7b,_0x217e5b-0xc7,_0x217e5b,_0x16c919-_0x47159f._0x2f4190);}_0x2452cc[_0x144a36(_0x5ccf62._0x33a315,_0x5ccf62._0x4eefa1,_0x5ccf62._0x18b3dc,_0x5ccf62._0x3a7fc4)]>0x0&&_0x2a0414['push']({'role':'system','content':_0x2452cc});function _0x3d54b6(_0xfc5adf,_0x38d125,_0x1a4441,_0x170d32){return _0x22bdb8(_0xfc5adf-_0x4536b2._0x39447d,_0x170d32-0x2e7,_0x1a4441,_0x170d32-0xfc);}for(const _0x4ca345 of _0x36a8aa[_0x144a36(_0x5ccf62._0xb81fc8,0x62f,_0x5ccf62._0x3caf9b,0x6a0)]){const _0x1b6568=[],_0x3e8ce2=[],_0x5e9d24=[],_0x154b01=()=>{const _0x50591e={_0x46040b:0xc7,_0x4c98c4:0xe3};function _0x3c9552(_0x168e99,_0x34a690,_0x356582,_0x4c1785){return _0x3d54b6(_0x168e99-_0x50591e._0x46040b,_0x34a690-_0x50591e._0x4c98c4,_0x168e99,_0x356582-0x232);}if(_0x4ca345[_0x3c9552(0x628,0x530,0x608,_0x1ab951._0x21190f)]==='assistant'){if(_0x1b6568[_0xdc0e8f(0x182,_0x1ab951._0x42a208,_0x1ab951._0x42133b,_0x1ab951._0x374c3c)]===0x0&&_0x3e8ce2[_0x3c9552(0x5e1,0x6a1,0x6a5,_0x1ab951._0x4439f0)]===0x0)return;_0x2a0414[_0x3c9552(0x5a0,_0x1ab951._0x492ffd,_0x1ab951._0x599542,0x5f4)]({'role':_0x3c9552(_0x1ab951._0xc851c1,_0x1ab951._0x2878c7,0x640,0x590),'content':_0x1b6568[_0x3c9552(0x6aa,_0x1ab951._0x1e75fc,_0x1ab951._0x45ff5c,_0x1ab951._0x22a770)]>0x0?_0x1b6568[_0x3c9552(_0x1ab951._0x195e4c,0x762,0x6a7,_0x1ab951._0x251612)]('\x0a\x0a'):null,..._0x3e8ce2[_0x3c9552(_0x1ab951._0x38f3b5,_0x1ab951._0x687207,_0x1ab951._0x45ff5c,_0x1ab951._0x45eb95)]>0x0?{'tool_calls':_0x3e8ce2[_0x3c9552(0x6ac,0x6cf,_0x1ab951._0xb76062,_0x1ab951._0x5cb9d3)](0x0)}:{}}),_0x1b6568['length']=0x0;return;}if(_0x4ca345[_0x3c9552(_0x1ab951._0xdccd68,_0x1ab951._0x1c7141,0x608,0x5e0)]==='user'){if(_0x5e9d24[_0x3c9552(0x79d,0x6a7,0x6a5,_0x1ab951._0x488ddd)]===0x0)return;const _0xcc4549=_0x5e9d24[_0xdc0e8f(_0x1ab951._0x5d31ef,0x12c,_0x1ab951._0xf92f10,_0x1ab951._0x4c60c0)](_0x149070=>_0x149070[_0xdc0e8f(0x5f,0x201,0xdd,0x128)]==='image_url');_0x2a0414['push']({'role':_0xdc0e8f(_0x1ab951._0x50f02c,_0x1ab951._0x30d460,_0x1ab951._0x5803b8,0xfb),'content':_0xcc4549?_0x5e9d24['splice'](0x0):_0x5e9d24['splice'](0x0)['filter'](_0x298167=>_0x298167['type']===_0x3c9552(0x66d,0x605,0x6aa,0x76d))[_0xdc0e8f(-0xb3,-0x49,0x12f,_0x1ab951._0x4cb8ad)](_0x717f2d=>_0x717f2d[_0x3c9552(0x724,0x5a0,0x6aa,0x61a)])['join']('\x0a\x0a')});return;}if(_0x1b6568[_0x3c9552(_0x1ab951._0x985989,0x5d8,_0x1ab951._0x6621a7,_0x1ab951._0x22ae4c)]===0x0)return;_0x2a0414[_0xdc0e8f(_0x1ab951._0x2f754b,_0x1ab951._0x2d25ff,0xb0,0x140)]({'role':_0x4ca345['role'],'content':_0x1b6568['join']('\x0a\x0a')});function _0xdc0e8f(_0x5f02c5,_0x3c6215,_0x10b8b0,_0x4b7cfa){return _0x144a36(_0x5f02c5-_0x391ace._0xd13870,_0x5f02c5,_0x4b7cfa- -0x538,_0x4b7cfa-_0x391ace._0x2e1a25);}_0x1b6568[_0xdc0e8f(0x1be,_0x1ab951._0x5a2fb4,_0x1ab951._0x3c8615,_0x1ab951._0x3e1c38)]=0x0;};for(const _0x121e4f of normalizeContent(_0x4ca345[_0x144a36(_0x5ccf62._0x459737,_0x5ccf62._0x9bc6db,0x5ec,0x57a)])){if(_0x121e4f[_0x144a36(_0x5ccf62._0x21d86d,_0x5ccf62._0x4ee8b8,_0x5ccf62._0x1eacde,0x6d9)]===_0x3d54b6(0x4d8,0x574,_0x5ccf62._0x4ffc6a,_0x5ccf62._0xc028de)){_0x4ca345[_0x144a36(0x662,0x5a9,0x629,0x533)]==='user'?_0x5e9d24[_0x3d54b6(0x482,0x4ce,0x36b,0x425)]({'type':_0x144a36(_0x5ccf62._0x8ec23b,0x71a,_0x5ccf62._0x562ca9,_0x5ccf62._0x222690),'text':_0x121e4f['text']}):_0x1b6568['push'](_0x121e4f['text']);continue;}if(_0x4ca345[_0x3d54b6(0x367,0x47a,_0x5ccf62._0x1e1a63,_0x5ccf62._0x5c5fee)]===_0x144a36(_0x5ccf62._0x30092d,0x63c,_0x5ccf62._0x451c51,_0x5ccf62._0x44f159)&&_0x121e4f['type']===_0x3d54b6(0x473,0x388,_0x5ccf62._0x53df8a,0x45f)){_0x5e9d24[_0x144a36(_0x5ccf62._0x374573,0x74d,0x678,_0x5ccf62._0x4113ab)]({'type':'image_url','image_url':{'url':'data:'+_0x121e4f[_0x144a36(_0x5ccf62._0x47afac,_0x5ccf62._0x3a8cc1,_0x5ccf62._0x3b1a9d,_0x5ccf62._0x4786c0)]['media_type']+_0x3d54b6(_0x5ccf62._0x2200d3,0x3e7,0x5b5,_0x5ccf62._0x209438)+_0x121e4f[_0x144a36(0x5f5,_0x5ccf62._0x1ccfe2,0x66f,0x6ce)]['data']}});continue;}if(_0x121e4f[_0x144a36(_0x5ccf62._0x22e3bd,0x746,0x660,0x726)]===_0x3d54b6(0x3d3,0x2aa,_0x5ccf62._0x50c310,0x3a6)){_0x3e8ce2[_0x144a36(_0x5ccf62._0x2e3bf6,_0x5ccf62._0xcfef83,0x678,0x6c5)]({'id':_0x121e4f['id'],'type':'function','function':{'name':_0x121e4f[_0x144a36(_0x5ccf62._0x20ac97,0x5b2,0x548,_0x5ccf62._0x39ff93)],'arguments':JSON['stringify'](_0x121e4f[_0x3d54b6(0x3ef,_0x5ccf62._0x1083a5,0x372,0x303)]??{})}});continue;}if(_0x121e4f[_0x3d54b6(_0x5ccf62._0x2f4abe,0x4bb,0x451,0x40d)]!=='tool_result')continue;_0x154b01(),_0x2a0414[_0x144a36(_0x5ccf62._0x19b167,_0x5ccf62._0x2cf908,0x678,_0x5ccf62._0x429f28)]({'role':_0x144a36(0x4a8,_0x5ccf62._0x87b13d,_0x5ccf62._0x18acdc,_0x5ccf62._0x40dcb7),'content':getToolResultText(_0x121e4f['content']),'tool_call_id':_0x121e4f['tool_use_id']});const _0x7b0ab0=getToolResultImages(_0x121e4f[_0x3d54b6(0x49b,0x29b,0x415,_0x5ccf62._0x3382e9)]);_0x7b0ab0['length']>0x0&&_0x2a0414['push']({'role':'user','content':[{'type':_0x144a36(0x64b,_0x5ccf62._0x4c4710,_0x5ccf62._0x562ca9,_0x5ccf62._0x5895aa),'text':_0x144a36(0x76f,0x58e,0x68c,0x6ae)+_0x121e4f[_0x144a36(_0x5ccf62._0x2e9d84,0x6f3,_0x5ccf62._0x562d90,_0x5ccf62._0x25b017)]+'.'},..._0x7b0ab0['map'](_0x23b463=>({'type':_0x144a36(0x61e,0x6da,0x71b,0x771),'image_url':{'url':_0x3d54b6(0x2fe,0x3cc,0x295,0x31e)+_0x23b463[_0x3d54b6(0x3e6,0x337,0x401,0x41c)][_0x144a36(0x51f,0x4a6,0x56e,0x4f8)]+_0x144a36(0x728,0x70f,0x702,0x6ed)+_0x23b463[_0x144a36(0x60e,0x6c7,0x66f,0x6d3)]['data']}}))]});}_0x154b01();}const _0x610a01=_0x36a8aa[_0x144a36(0x5bf,_0x5ccf62._0x14bca4,_0x5ccf62._0x3665d5,0x61f)]?.[_0x3d54b6(_0x5ccf62._0x45eb25,0x316,_0x5ccf62._0x2649cb,0x414)]?void 0x0:_0x36a8aa['reasoning']?.['openai'];return{'model':_0x36a8aa[_0x144a36(_0x5ccf62._0x793d56,0x618,0x6de,0x73f)],'messages':_0x2a0414,'stream':_0x5166ec,..._0x36a8aa[_0x144a36(0x691,_0x5ccf62._0x1ba8f7,0x588,_0x5ccf62._0x581278)]!==void 0x0?_0x610a01?{'max_completion_tokens':_0x36a8aa[_0x144a36(_0x5ccf62._0x1687cf,0x4da,_0x5ccf62._0x33be5a,_0x5ccf62._0x2255b9)]}:{'max_tokens':_0x36a8aa[_0x144a36(_0x5ccf62._0x38b398,0x613,0x588,0x500)]}:{},..._0x610a01?.[_0x3d54b6(_0x5ccf62._0x2542a2,0x37a,_0x5ccf62._0x35af68,0x443)]?{'reasoning_effort':_0x610a01[_0x144a36(_0x5ccf62._0x3f73d0,0x641,_0x5ccf62._0x288769,_0x5ccf62._0x3a46bb)]}:{},..._0x5166ec&&pricingProviderNeedsChatUsage(_0x36a8aa[_0x3d54b6(0x4d9,_0x5ccf62._0x18e819,_0x5ccf62._0x5526ca,_0x5ccf62._0x11211e)]['pricingProviderId'])?{'stream_options':{'include_usage':!![]}}:{},...createToolDefinitions(_0x36a8aa[_0x3d54b6(0x358,0x40e,0x350,_0x5ccf62._0x53e3c7)])?{'tools':createToolDefinitions(_0x36a8aa[_0x3d54b6(0x4bd,0x3be,_0x5ccf62._0x513053,0x3dc)])}:{},..._0x36a8aa['outputFormat']?{'response_format':{'type':_0x3d54b6(_0x5ccf62._0x146f75,_0x5ccf62._0x48b616,_0x5ccf62._0x5b8cc5,_0x5ccf62._0x4523cb),'json_schema':{'name':_0x36a8aa[_0x3d54b6(0x368,_0x5ccf62._0x1bb252,0x2c1,_0x5ccf62._0x50c5a2)][_0x3d54b6(_0x5ccf62._0xf012b1,0x25c,_0x5ccf62._0x14804a,_0x5ccf62._0x38f17d)]??_0x3d54b6(_0x5ccf62._0x1c3218,0x60a,_0x5ccf62._0x3a3577,_0x5ccf62._0x46aa31),'schema':_0x36a8aa[_0x144a36(_0x5ccf62._0x14b92a,0x5ea,_0x5ccf62._0xc6ec42,_0x5ccf62._0x7ca92b)][_0x3d54b6(_0x5ccf62._0x257f44,_0x5ccf62._0x5da753,_0x5ccf62._0x29a14a,0x40f)],'strict':_0x36a8aa['outputFormat'][_0x3d54b6(_0x5ccf62._0x551a52,_0x5ccf62._0x535161,0x411,0x4a4)]??!![]}}}:{}};}function createResponsesRequestBody(_0x287fc9,_0x2f5f18,_0x5dfed9){const _0x5d0220=_0x5dfed9?.(_0x287fc9);return{...toOpenAiResponsesRequest(_0x287fc9),..._0x2f5f18?{'stream':!![]}:{},..._0x5d0220!==void 0x0?{'prompt_cache_key':_0x5d0220}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3376eb,_0x4213e1={}){const _0x4d0fe7={_0x2100bc:0x1a5,_0x212f7c:0x18,_0x253ac5:0x2e1,_0x468da2:0x1fd,_0x4fd647:0x1a6,_0x44b453:0x2bd},_0x13ff1f={_0x376b59:0x67,_0x5a3696:0x8c},_0x18d700={_0x1f96bc:0x5b},_0x58b0c7=toOpenAiResponsesRequest(_0x3376eb);function _0x22bae2(_0x1f0200,_0xb6dea9,_0x150c8c,_0x5ea56e){return _0x22bdb8(_0x1f0200-0x15f,_0xb6dea9-0x2a,_0x150c8c,_0x5ea56e-_0x18d700._0x1f96bc);}function _0x2a2d0f(_0x1272d2,_0x35bf12,_0x4b6b5c,_0x1678d6){return _0x22bdb8(_0x1272d2-_0x13ff1f._0x376b59,_0x35bf12-_0x13ff1f._0x5a3696,_0x4b6b5c,_0x1678d6-0x1c9);}return{'type':'response.create',..._0x58b0c7,..._0x4213e1['input']?{'input':_0x4213e1['input']}:{},..._0x4213e1[_0x22bae2(0xa4,0x85,-0x4a,0x8d)]!==void 0x0?{'prompt_cache_key':_0x4213e1[_0x2a2d0f(_0x4d0fe7._0x2100bc,0xe7,-_0x4d0fe7._0x212f7c,0x119)]}:{},..._0x4213e1[_0x2a2d0f(_0x4d0fe7._0x253ac5,0x220,_0x4d0fe7._0x468da2,0x121)]?{'previous_response_id':_0x4213e1[_0x2a2d0f(_0x4d0fe7._0x4fd647,0x220,_0x4d0fe7._0x44b453,0x22b)]}:{},'store':![]};}function normalizeAssistantContent(_0x21d5d7){const _0x29d51c={_0x1997e0:0x623,_0x5d60da:0x3e0,_0x458736:0x4e5,_0x34d382:0x6f2,_0x4f9492:0x5ff},_0x34ae58={_0x1ce743:0x2aa,_0x1c478e:0x3d8,_0x2c0f93:0x2e8,_0x4b65b9:0x2e0,_0x53e172:0x41e},_0x246a2d={_0x18d824:0x181,_0x11a794:0x21},_0x3f1cec={_0x37ce39:0x1c3,_0x155e47:0x136,_0x27dfb9:0x2f};function _0x1223bf(_0x16be2b,_0x20860c,_0x84bb2,_0x20b542){return _0x101ac3(_0x16be2b-_0x3f1cec._0x37ce39,_0x20860c-_0x3f1cec._0x155e47,_0x84bb2,_0x20860c- -_0x3f1cec._0x27dfb9);}function _0x93d85c(_0x287753,_0x589298,_0x46f1c4,_0x203844){return _0x101ac3(_0x287753-_0x246a2d._0x18d824,_0x589298-0x15a,_0x46f1c4,_0x287753- -_0x246a2d._0x11a794);}if(typeof _0x21d5d7===_0x93d85c(0x4ab,0x432,0x3d5,0x4bf))return _0x21d5d7;if(!Array[_0x1223bf(0x713,_0x29d51c._0x1997e0,0x5c6,0x6b9)](_0x21d5d7))return'';return _0x21d5d7[_0x93d85c(0x4ca,_0x29d51c._0x5d60da,0x455,_0x29d51c._0x458736)](_0x12c0bc=>{const _0x224bb2={_0x10fb96:0x103,_0x31fb10:0xe4},_0x62236b={_0x1e2e93:0x1bc};function _0x166428(_0x1570c4,_0x120bdf,_0x5ce715,_0x4f9de3){return _0x93d85c(_0x5ce715- -0x2bd,_0x120bdf-0xa8,_0x4f9de3,_0x4f9de3-_0x62236b._0x1e2e93);}function _0x579fae(_0x490b09,_0x17f099,_0x16bd3a,_0x34df23){return _0x93d85c(_0x34df23- -_0x224bb2._0x10fb96,_0x17f099-0x13c,_0x490b09,_0x34df23-_0x224bb2._0x31fb10);}return _0x12c0bc[_0x166428(_0x34ae58._0x1ce743,_0x34ae58._0x1c478e,_0x34ae58._0x2c0f93,_0x34ae58._0x4b65b9)]==='text'?_0x12c0bc[_0x579fae(0x60c,0x511,_0x34ae58._0x53e172,0x50d)]:_0x12c0bc['refusal'];})[_0x1223bf(_0x29d51c._0x34d382,_0x29d51c._0x4f9492,0x597,0x634)]('');}function normalizeResponsesMessageContent(_0x2ad6ad){const _0x2aa68d={_0x32d896:0x610,_0x373491:0x563,_0x1af4e4:0x39f,_0x5edab3:0x402,_0x1f5aa3:0x3c7,_0x508092:0x26f},_0x1d5093={_0x25b558:0x789,_0x3b6b08:0x6c8,_0x2baa17:0x57f,_0x12af1f:0x48b,_0x1681e9:0x631,_0x2f9133:0x6de,_0x47dec2:0x634,_0x1a36ae:0x786,_0x5b4aaf:0x710,_0x395a7a:0x68f,_0x5942de:0x68f},_0x27796c={_0x49e6bc:0x1cf},_0x2d74c4={_0x1b1a5f:0x354,_0x258f5d:0x104},_0x41b1f4={_0x21730d:0x71,_0x54c001:0x1de,_0x290e70:0x10};if(!Array[_0x17e18a(0x506,_0x2aa68d._0x32d896,_0x2aa68d._0x373491,0x420)](_0x2ad6ad))return'';function _0x4c5aa6(_0x246f2f,_0x4df4b4,_0x5e5353,_0x478151){return _0x22bdb8(_0x246f2f-_0x41b1f4._0x21730d,_0x5e5353-_0x41b1f4._0x54c001,_0x4df4b4,_0x478151-_0x41b1f4._0x290e70);}function _0x17e18a(_0x513fec,_0xec6853,_0x2050d3,_0x36f5f8){return _0x22bdb8(_0x513fec-0x1d2,_0x513fec-_0x2d74c4._0x1b1a5f,_0x36f5f8,_0x36f5f8-_0x2d74c4._0x258f5d);}return _0x2ad6ad[_0x17e18a(_0x2aa68d._0x1af4e4,_0x2aa68d._0x5edab3,0x419,_0x2aa68d._0x1f5aa3)](_0x146aa1=>{const _0x51efce={_0xd78bd4:0xfa,_0x3cebd4:0xf1};if(!_0x146aa1||typeof _0x146aa1!==_0x4212bf(_0x1d5093._0x25b558,_0x1d5093._0x3b6b08,0x725,0x653))return'';function _0x4212bf(_0x4c93f8,_0x26d60d,_0x4958a9,_0x4d5c78){return _0x4c5aa6(_0x4c93f8-_0x51efce._0xd78bd4,_0x4d5c78,_0x26d60d-0x36f,_0x4d5c78-_0x51efce._0x3cebd4);}const _0x559555=_0x146aa1;function _0x20b666(_0x42bb5c,_0xd3b287,_0x20c4c5,_0x1b9ce6){return _0x17e18a(_0x20c4c5-_0x27796c._0x49e6bc,_0xd3b287-0xfe,_0x20c4c5-0xb5,_0x1b9ce6);}if(_0x559555['type']==='output_text'&&typeof _0x559555['text']===_0x4212bf(_0x1d5093._0x2baa17,0x579,_0x1d5093._0x12af1f,_0x1d5093._0x1681e9))return _0x559555[_0x4212bf(0x7e3,_0x1d5093._0x2f9133,_0x1d5093._0x47dec2,0x6ea)];if(_0x559555['type']===_0x20b666(_0x1d5093._0x1a36ae,_0x1d5093._0x5b4aaf,_0x1d5093._0x395a7a,0x5c0)&&typeof _0x559555[_0x20b666(0x682,0x799,_0x1d5093._0x5942de,0x720)]==='string')return _0x559555['refusal'];return'';})[_0x4c5aa6(_0x2aa68d._0x508092,0x46d,0x36c,0x2a9)]('');}function extractOpenAiReasoningText(_0x51b4bd){const _0x3b5a60={_0x2266f0:0x167,_0x53168a:0x43,_0x2766bf:0x1cd,_0x2733fc:0x175,_0xc42ed3:0x7e,_0x53f00a:0x29,_0x3aeaf7:0x13a,_0x46a828:0x15b,_0x5a5505:0xe8,_0x37ad34:0xb9,_0x53a398:0x17,_0x2020c1:0x30,_0x1b8917:0x2c,_0x264408:0x330,_0x3242d6:0x41c,_0x2803d0:0x2d2},_0x52f565={_0x4f965b:0x8e,_0x33b519:0xb9};function _0x21328f(_0xad9812,_0x307418,_0xfe5770,_0x12a40b){return _0x101ac3(_0xad9812-_0x52f565._0x4f965b,_0x307418-_0x52f565._0x33b519,_0xfe5770,_0x12a40b- -0x5b3);}function _0x2bb052(_0x267736,_0x19ef95,_0x14bc14,_0x467ed7){return _0x22bdb8(_0x267736-0x1e6,_0x19ef95-0x201,_0x14bc14,_0x467ed7-0x1b8);}if(typeof _0x51b4bd[_0x21328f(_0x3b5a60._0x2266f0,0x89,-0x4c,0x7e)]===_0x21328f(-_0x3b5a60._0x53168a,-_0x3b5a60._0x2766bf,-0x14b,-0xe7))return _0x51b4bd[_0x21328f(_0x3b5a60._0x2733fc,0x21,0x111,_0x3b5a60._0xc42ed3)];if(!Array['isArray'](_0x51b4bd[_0x21328f(_0x3b5a60._0x53f00a,-_0x3b5a60._0x3aeaf7,-_0x3b5a60._0x46a828,-0x61)]))return'';return _0x51b4bd[_0x21328f(-_0x3b5a60._0x5a5505,-_0x3b5a60._0x37ad34,-0x7a,-0x61)][_0x21328f(-_0x3b5a60._0x53a398,_0x3b5a60._0x2020c1,0x98,-_0x3b5a60._0x1b8917)](_0x1f8de9=>_0x1f8de9[_0x2bb052(0x365,0x327,0x2ae,0x238)]===_0x21328f(-0x106,0x7d,0x16,-0x6a)&&typeof _0x1f8de9[_0x2bb052(0x46d,0x392,0x338,0x38a)]===_0x21328f(0x6,-0x56,-0x6b,-0xe7))['map'](_0x2ccd8d=>_0x2ccd8d[_0x21328f(0x67,-0x5a,-0x7,0x7e)]??'')[_0x2bb052(_0x3b5a60._0x264408,0x38f,_0x3b5a60._0x3242d6,_0x3b5a60._0x2803d0)]('');}function createOpenAiReasoningBlock(_0x40912e){const _0x566c1c={_0x471089:0x33b,_0x50eb52:0x2ad,_0xb26b71:0x23f,_0x347f88:0x28a,_0x1ef657:0x38c,_0x1c1d3c:0x33c,_0x212df7:0x357,_0x4c2ef8:0x364,_0xd2d24e:0x41b,_0x2eee6f:0x346},_0x5d1609={_0x466b0d:0x103},_0x1597a9={_0x30a717:0x1a9,_0x3cfa67:0x41,_0x32bb2d:0xd8},_0x154c5c=extractOpenAiReasoningText(_0x40912e);function _0x21f296(_0x4d92e5,_0x555387,_0x5da7ac,_0x628964){return _0x22bdb8(_0x4d92e5-_0x1597a9._0x30a717,_0x628964-_0x1597a9._0x3cfa67,_0x5da7ac,_0x628964-_0x1597a9._0x32bb2d);}function _0x6c3eca(_0x531d0d,_0xcab23c,_0x8eb1ad,_0x20a644){return _0x22bdb8(_0x531d0d-_0x5d1609._0x466b0d,_0x20a644-0x1ba,_0xcab23c,_0x20a644-0xc7);}return{'type':_0x6c3eca(0x3d3,_0x566c1c._0x471089,_0x566c1c._0x50eb52,0x2f6),'summary':structuredClone(_0x40912e[_0x6c3eca(0x308,_0x566c1c._0xb26b71,_0x566c1c._0x347f88,0x220)]??[]),..._0x40912e['id']?{'id':_0x40912e['id']}:{},..._0x40912e[_0x6c3eca(0x208,0x238,0x20a,0x289)]?{'encryptedContent':_0x40912e[_0x6c3eca(_0x566c1c._0x1ef657,_0x566c1c._0x1c1d3c,_0x566c1c._0x212df7,0x289)]}:{},..._0x154c5c[_0x6c3eca(_0x566c1c._0x4c2ef8,_0x566c1c._0xd2d24e,0x436,_0x566c1c._0x2eee6f)]>0x0?{'text':_0x154c5c}:{}};}function hasVisibleOpenAiReasoning(_0x3e9c02){const _0xab32b1={_0x25cc9d:0x541,_0x44d25b:0x505,_0x2b9cf8:0x5ed,_0x5ad78d:0x714,_0x43ec37:0x51b},_0x81c0cb={_0x17fe4a:0x1d1,_0x5663a8:0xbb},_0x4721de={_0x27b858:0x2f6,_0x56ab27:0x127};function _0x1029c1(_0x982bfe,_0x5b912e,_0x1d96d4,_0x20928f){return _0x22bdb8(_0x982bfe-0x112,_0x1d96d4-_0x4721de._0x27b858,_0x20928f,_0x20928f-_0x4721de._0x56ab27);}function _0x4668a4(_0x425f1f,_0x34a9b0,_0xb02ab4,_0x261977){return _0x101ac3(_0x425f1f-0x13f,_0x34a9b0-_0x81c0cb._0x17fe4a,_0x261977,_0xb02ab4-_0x81c0cb._0x5663a8);}return _0x3e9c02['summary'][_0x1029c1(_0xab32b1._0x25cc9d,_0xab32b1._0x44d25b,0x482,0x458)]>0x0||typeof _0x3e9c02[_0x4668a4(_0xab32b1._0x2b9cf8,0x60b,0x6ec,_0xab32b1._0x5ad78d)]===_0x4668a4(0x4d6,_0xab32b1._0x43ec37,0x587,0x67d);}function parseChatCompletionResponse(_0x1228f7,_0x9ce27b){const _0x3ffc78={_0x309f5c:0x7,_0x46c0ca:0x1dd,_0x11f888:0x86,_0xe97f11:0x1,_0xc4c5c5:0x67b,_0x3bf779:0xa7,_0x2c2532:0x6da,_0x5dc5ac:0x61a,_0x4c9c7:0x5a4,_0x37eeb5:0x54,_0x3fa547:0x52d,_0xb085e9:0x534,_0x5bcd94:0x62f},_0x241294={_0x53f298:0x78,_0x3c173d:0x89,_0x45304e:0x5d8},_0x228496={_0x3d6897:0x12,_0x2c745e:0x19a},_0x19ef43=[],_0x3d2acc=[];let _0xe3a38d=_0x16952f(-0xf9,-0x151,-_0x3ffc78._0x309f5c,-_0x3ffc78._0x46c0ca);for(const _0x4e7eb4 of _0x1228f7['choices']??[]){const _0x4a6af8=_0x4e7eb4['message'],_0x116737=normalizeAssistantContent(_0x4a6af8?.[_0x16952f(-_0x3ffc78._0x11f888,-0xfd,_0x3ffc78._0xe97f11,-0x132)]);_0x116737['length']>0x0&&_0x19ef43[_0x16952f(0x6,-0x98,-0xf0,0xa7)](_0x116737),_0x4a6af8?.[_0x4086f7(0x681,0x6b9,0x6e4,_0x3ffc78._0xc4c5c5)]&&_0x3d2acc['push'](..._0x4a6af8['tool_calls']),_0x4e7eb4[_0x16952f(0x13,_0x3ffc78._0x3bf779,0x8c,-0x96)]===_0x4086f7(_0x3ffc78._0x2c2532,_0x3ffc78._0x5dc5ac,_0x3ffc78._0x4c9c7,0x67b)&&(_0xe3a38d='tool_use');}function _0x4086f7(_0x999f63,_0x5cd990,_0x1c967c,_0x1e6919){return _0x101ac3(_0x999f63-_0x228496._0x3d6897,_0x5cd990-_0x228496._0x2c745e,_0x999f63,_0x1e6919-0x38);}_0x3d2acc[_0x16952f(_0x3ffc78._0x37eeb5,0xca,-0x9b,0xe9)]>0x0&&(_0xe3a38d='tool_use');function _0x16952f(_0x4cf882,_0x394853,_0x233070,_0x29b12f){return _0x101ac3(_0x4cf882-_0x241294._0x53f298,_0x394853-_0x241294._0x3c173d,_0x394853,_0x4cf882- -_0x241294._0x45304e);}return{'id':_0x1228f7['id']??'chatcmpl-'+Date[_0x4086f7(0x462,0x62a,_0x3ffc78._0x3fa547,_0x3ffc78._0xb085e9)](),'content':createContentBlocks(_0x19ef43['join'](''),_0x3d2acc),'stopReason':_0xe3a38d,'usage':createUsage(_0x1228f7[_0x4086f7(0x5a3,_0x3ffc78._0x5bcd94,0x494,0x52f)],_0x9ce27b)};}function parseResponsesResponse(_0xaabddf,_0x3d54b2){const _0xa18da8={_0x2fe1c5:0x614,_0x4d4e84:0x5a4,_0x51611e:0x4f0,_0x488173:0x56c,_0x5dc79d:0x590,_0x4e4328:0x33a,_0x34717e:0x71,_0x40559c:0xef,_0x110806:0x60,_0x5e59ce:0xee,_0x56b914:0x40,_0xfa7009:0x13d,_0x5023e7:0xd1,_0x2e907e:0x3b0,_0x133200:0x49e,_0x1bc186:0x3c2,_0x1c4db8:0x57e,_0x56c53e:0x498,_0x25aca7:0x49,_0xfacd22:0x5d,_0x290ede:0x1e6,_0x44347f:0x15d,_0x10a108:0x1a0,_0x1f6a0e:0xe3,_0x170c8b:0x1a5,_0x439745:0x182,_0x117d8f:0x1f6,_0x5ce358:0x4c2,_0x181a7b:0x472,_0x812320:0x4e,_0x5ec095:0x417,_0x2939e1:0x392,_0xa84e6c:0x361,_0x471b11:0x443,_0x26f780:0x4c6,_0x5f21da:0x81,_0x2e7c14:0x79,_0x48a74a:0xb5,_0x1e6968:0x9b,_0x58b233:0x4af,_0x528e6d:0x4c2,_0x1a7bc4:0x3ff,_0x5e337b:0x84,_0x3131b3:0x96,_0x5c1eff:0x59,_0x1ba548:0x45,_0x3c6316:0x505,_0x36dbb6:0x24b,_0x166977:0x157,_0x2eedb7:0x1b7,_0x550bf8:0x16d,_0x34ac22:0xdd,_0x1fe5f3:0xad,_0x1dbb26:0x118,_0x3a3ba1:0xe8,_0x278329:0x169,_0x23a6b8:0x50,_0x197f42:0xde,_0x46ddad:0xfa,_0x6bc35e:0x18c,_0x3bb3a7:0x8f,_0x13b53a:0x463,_0x33508e:0x58a,_0x2f6fb5:0x17c,_0x2de9b7:0x1ab,_0x25ac90:0x225,_0xbdb34b:0x16f,_0x55eabe:0xb4,_0x440ce6:0xaa,_0x295d34:0x86,_0x4234a8:0xb2,_0xb2c649:0x8e,_0x8eb1e5:0x72,_0x174f48:0x57},_0x1ba7c1={_0x509ad3:0xf5},_0x359823={_0x3f2f66:0x151,_0x2c444f:0x1ae,_0x1589c2:0x17f};function _0x18f1fc(_0x49f403,_0x333554,_0x5111d8,_0x4ee341){return _0x22bdb8(_0x49f403-_0x359823._0x3f2f66,_0x4ee341- -_0x359823._0x2c444f,_0x49f403,_0x4ee341-_0x359823._0x1589c2);}const _0x41d3a7=[];for(const _0x310d55 of _0xaabddf[_0x222993(_0xa18da8._0x2fe1c5,_0xa18da8._0x4d4e84,0x5f2,_0xa18da8._0x51611e)]??[]){if(isResponsesReasoningItem(_0x310d55)){if(isUserVisibleReasoning(_0x3d54b2)){const _0x583fe4=createOpenAiReasoningBlock(_0x310d55);hasVisibleOpenAiReasoning(_0x583fe4)&&_0x41d3a7[_0x222993(_0xa18da8._0x488173,0x4c2,_0xa18da8._0x5dc79d,0x49e)](_0x583fe4);}continue;}if(isResponsesMessageItem(_0x310d55)){const _0x2905d6=normalizeResponsesMessageContent(_0x310d55[_0x222993(_0xa18da8._0x4e4328,0x436,0x43c,0x449)]);_0x2905d6['length']>0x0&&_0x41d3a7[_0x18f1fc(_0xa18da8._0x34717e,-_0xa18da8._0x40559c,_0xa18da8._0x110806,-0x70)]({'type':_0x18f1fc(_0xa18da8._0x5e59ce,0xe5,-_0xa18da8._0x56b914,-0x1d),'text':_0x2905d6});continue;}if(!isResponsesFunctionCallItem(_0x310d55)||typeof _0x310d55[_0x18f1fc(0x3b,_0xa18da8._0xfa7009,_0xa18da8._0x5023e7,0x30)]!==_0x222993(0x487,_0xa18da8._0x2e907e,_0xa18da8._0x133200,_0xa18da8._0x1bc186)||_0x310d55['call_id'][_0x222993(0x67b,0x5a1,_0xa18da8._0x1c4db8,_0xa18da8._0x56c53e)]()[_0x18f1fc(0xc6,_0xa18da8._0x25aca7,_0xa18da8._0xfacd22,-0x22)]===0x0||typeof _0x310d55[_0x18f1fc(-_0xa18da8._0x290ede,-0xd2,-_0xa18da8._0x44347f,-_0xa18da8._0x10a108)]!==_0x18f1fc(-_0xa18da8._0x1f6a0e,-0x211,-_0xa18da8._0x170c8b,-_0xa18da8._0x439745)||_0x310d55[_0x18f1fc(-0x224,-0x193,-0x19b,-0x1a0)][_0x18f1fc(0xbf,0x166,-0x9e,0x6f)]()['length']===0x0||typeof _0x310d55['arguments']!==_0x18f1fc(-_0xa18da8._0x117d8f,-0x9a,-0x280,-0x182))continue;_0x41d3a7[_0x222993(0x414,_0xa18da8._0x5ce358,_0xa18da8._0x181a7b,0x5c6)]({'type':'tool_use','id':_0x310d55[_0x18f1fc(_0xa18da8._0x812320,-0x16,-0x16,0x30)],'name':_0x310d55[_0x222993(_0xa18da8._0x5ec095,_0xa18da8._0x2939e1,0x350,_0xa18da8._0xa84e6c)],'input':parseToolInput2(_0x310d55[_0x222993(_0xa18da8._0x471b11,0x486,_0xa18da8._0x26f780,0x4e3)])});}!_0x41d3a7[_0x18f1fc(-_0xa18da8._0x5f21da,-_0xa18da8._0x2e7c14,-_0xa18da8._0x48a74a,-_0xa18da8._0x1e6968)](_0xe515e7=>_0xe515e7[_0x222993(0x565,0x4aa,0x577,0x475)]==='text')&&_0xaabddf['output_text']&&_0x41d3a7[_0x222993(_0xa18da8._0x58b233,_0xa18da8._0x528e6d,_0xa18da8._0x1a7bc4,0x555)]({'type':'text','text':_0xaabddf['output_text']});function _0x222993(_0x3b9308,_0x3a5bea,_0x48b112,_0x1b30db){return _0x22bdb8(_0x3b9308-0x119,_0x3a5bea-0x384,_0x1b30db,_0x1b30db-_0x1ba7c1._0x509ad3);}const _0x1e288a=normalizeXaiReportedCost(_0x3d54b2[_0x18f1fc(-_0xa18da8._0x5e337b,_0xa18da8._0x3131b3,-_0xa18da8._0x5c1eff,-0x12)][_0x18f1fc(-0x6d,-0x217,-_0xa18da8._0x1ba548,-0x114)],_0xaabddf['usage']?.[_0x222993(0x40d,_0xa18da8._0x3c6316,0x4f5,0x5cd)]),_0x17d766=_0xaabddf[_0x18f1fc(-_0xa18da8._0x36dbb6,-0x11e,-0x233,-_0xa18da8._0x166977)]?.['input_tokens_details']?.[_0x18f1fc(-0x147,-0x140,-_0xa18da8._0x2eedb7,-_0xa18da8._0x550bf8)],_0x1c33d6=_0xaabddf[_0x18f1fc(-_0xa18da8._0x34ac22,-_0xa18da8._0x1fe5f3,-0x1de,-0x157)]?.[_0x18f1fc(_0xa18da8._0x1dbb26,_0xa18da8._0x3a3ba1,_0xa18da8._0x278329,0x68)]?.[_0x18f1fc(_0xa18da8._0x23a6b8,-_0xa18da8._0x197f42,-_0xa18da8._0x46ddad,-0x5)],_0x18ca66=_0xaabddf[_0x18f1fc(-0x1bd,-0x87,-0x25d,-0x157)]?.[_0x18f1fc(-_0xa18da8._0x6bc35e,-0x1ab,-_0xa18da8._0x3bb3a7,-0x169)]?.['reasoning_tokens'];return{'id':_0xaabddf['id'],'content':_0x41d3a7,'stopReason':_0x41d3a7[_0x222993(0x3c6,0x497,_0xa18da8._0x13b53a,_0xa18da8._0x33508e)](_0x3dbcf5=>_0x3dbcf5[_0x18f1fc(-0xb4,-0xc4,-0x7f,-0x88)]==='tool_use')?_0x18f1fc(0x3,-_0xa18da8._0x2f6fb5,-0x129,-0xef):_0x18f1fc(-_0xa18da8._0x2de9b7,-0x26c,-_0xa18da8._0x25ac90,-_0xa18da8._0xbdb34b),'usage':{'inputTokens':_0xaabddf['usage']?.['input_tokens']??0x0,'outputTokens':_0xaabddf[_0x18f1fc(-_0xa18da8._0x55eabe,-_0xa18da8._0x440ce6,-_0xa18da8._0x295d34,-0x157)]?.['output_tokens']??0x0,..._0x18ca66!==void 0x0?{'reasoningTokens':_0x18ca66}:{},..._0x17d766!==void 0x0?{'cacheReadInputTokens':_0x17d766}:{},..._0x1c33d6!==void 0x0?{'cacheCreationInputTokens':_0x1c33d6}:{},..._0x1e288a!==void 0x0?{'reportedCost':_0x1e288a}:{}},..._0xaabddf[_0x18f1fc(0xf7,_0xa18da8._0x4234a8,-_0xa18da8._0xb2c649,_0xa18da8._0x8eb1e5)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0xaabddf[_0x18f1fc(_0xa18da8._0x174f48,0x9d,0x101,0x72)]),'openaiResponsesResponseId':_0xaabddf['id']}}:{}};}function extractErrorMessage(_0x2ea858){const _0x12201f={_0x61cb4:0x32f,_0x3f2625:0xd5,_0x15f3ad:0x13e,_0x306f8e:0x134,_0x29f4ba:0x2ca,_0x2dbb47:0x358,_0x3f81c2:0x398,_0xc4a13f:0x2ba,_0x3b4e68:0x9f,_0x393d5a:0x42,_0x3521f5:0x1e,_0x525925:0x387,_0xc46aae:0x3d5,_0x32a43d:0x3c9,_0xf784d:0x405,_0x3ebf43:0x4cd,_0x94c50:0x420,_0x352f5b:0x2c9,_0x700eec:0x324,_0x495c8e:0x4de,_0x315da1:0x4ba,_0xb1ec50:0x4c7,_0x1d45a9:0x102,_0xbea629:0x87,_0x3e1c99:0x358,_0x55538a:0x40f,_0x184122:0x418,_0x411859:0x4fb,_0x53b9e4:0x3f8,_0x3acf8c:0x4a,_0x33c7b8:0x24e,_0x1ede47:0x2ab,_0x3d7ce4:0x418},_0x496e90={_0x19e3c0:0xf2,_0x2c74cf:0x2a5},_0x459d17={_0x2eaafb:0xd5,_0xedeb21:0x13a};if(_0x2ea858['length']===0x0)return'';function _0x137143(_0x461e79,_0x246925,_0x9ed83d,_0x15a5a5){return _0x101ac3(_0x461e79-_0x459d17._0x2eaafb,_0x246925-_0x459d17._0xedeb21,_0x246925,_0x15a5a5- -0x576);}try{const _0x3aefad=JSON[_0x190974(0x406,_0x12201f._0x61cb4,0x309,0x22c)](_0x2ea858);if(typeof _0x3aefad[_0x137143(_0x12201f._0x3f2625,_0x12201f._0x15f3ad,0x16e,_0x12201f._0x306f8e)]?.[_0x190974(_0x12201f._0x29f4ba,_0x12201f._0x2dbb47,_0x12201f._0x3f81c2,_0x12201f._0xc4a13f)]===_0x137143(-_0x12201f._0x3b4e68,_0x12201f._0x393d5a,_0x12201f._0x3521f5,-0xaa)&&_0x3aefad['error'][_0x190974(0x29c,0x358,0x393,0x2b7)]['trim']()[_0x190974(0x3ef,_0x12201f._0x525925,_0x12201f._0xc46aae,0x2f0)]>0x0)return _0x3aefad[_0x190974(_0x12201f._0x32a43d,_0x12201f._0xf784d,_0x12201f._0x3ebf43,_0x12201f._0x94c50)][_0x190974(0x3af,0x358,_0x12201f._0x352f5b,_0x12201f._0x700eec)][_0x190974(_0x12201f._0x495c8e,0x418,_0x12201f._0x315da1,_0x12201f._0xb1ec50)]();if(typeof _0x3aefad[_0x137143(_0x12201f._0x1d45a9,0x48,0x13e,_0x12201f._0xbea629)]==='string'&&_0x3aefad[_0x190974(0x3de,_0x12201f._0x3e1c99,0x2b8,0x3ee)][_0x190974(_0x12201f._0x55538a,_0x12201f._0x184122,_0x12201f._0x411859,_0x12201f._0x53b9e4)]()[_0x137143(-0x35,0x145,_0x12201f._0x3acf8c,0xb6)]>0x0)return _0x3aefad[_0x190974(_0x12201f._0x33c7b8,_0x12201f._0x3e1c99,0x336,_0x12201f._0x1ede47)][_0x190974(0x3fb,_0x12201f._0x3d7ce4,0x335,0x33f)]();}catch{return _0x2ea858;}function _0x190974(_0x323754,_0x131e92,_0x2830ef,_0x38fb5b){return _0x101ac3(_0x323754-0xd3,_0x131e92-_0x496e90._0x19e3c0,_0x2830ef,_0x131e92- -_0x496e90._0x2c74cf);}return _0x2ea858;}async function createOpenAiApiError(_0x108e90){const _0xd1e64a={_0x1619fa:0x18,_0x43b8e4:0x18d,_0x30edfd:0x1d3,_0xce86ca:0x39,_0x46555f:0x148,_0x2356bc:0x132,_0x1b0849:0x103},_0x1e7a0e={_0x1cc0df:0x109},_0x2812f8={_0x17638c:0x13e,_0x144123:0x605};function _0x41d25d(_0x2ed675,_0x1528ab,_0x147ea5,_0xf88058){return _0x101ac3(_0x2ed675-_0x2812f8._0x17638c,_0x1528ab-0x2b,_0x1528ab,_0xf88058- -_0x2812f8._0x144123);}function _0x5c3d74(_0x211ab1,_0x2e7394,_0xa5e4fa,_0x4feebc){return _0x22bdb8(_0x211ab1-_0x1e7a0e._0x1cc0df,_0x211ab1- -0x10f,_0x2e7394,_0x4feebc-0xe1);}const _0x165b5c=(await _0x108e90[_0x41d25d(-_0xd1e64a._0x1619fa,0xa5,-0x7a,0x2c)]())[_0x5c3d74(0x10e,0x13,_0xd1e64a._0x43b8e4,_0xd1e64a._0x30edfd)](),_0x29746e=extractErrorMessage(_0x165b5c)||_0x108e90['statusText']||_0x41d25d(_0xd1e64a._0xce86ca,0x70,-0x11,-0x20)+_0x108e90[_0x5c3d74(-0xbf,-_0xd1e64a._0x46555f,-0xb3,-0x5d)];return new OpenAiApiError(_0x108e90[_0x5c3d74(-0xbf,-_0xd1e64a._0x2356bc,0xb,-_0xd1e64a._0x1b0849)],_0x165b5c,_0x29746e);}function readSseData(_0x2d83e0){const _0x3da27c={_0x52dba2:0x19d,_0x49a37d:0x27c,_0x195397:0xda,_0xaebb03:0x597,_0x412931:0x5d0},_0x4c292b={_0x1c6ffe:0xcc,_0x22e8b7:0x124,_0x1d17c3:0x9};function _0x394843(_0x22baad,_0x5c5f0e,_0x1aafce,_0x346c93){return _0x101ac3(_0x22baad-0x10c,_0x5c5f0e-0xa6,_0x22baad,_0x5c5f0e- -0x5e);}function _0x5f2a06(_0x15c336,_0x1de774,_0x5240eb,_0x5a95f0){return _0x22bdb8(_0x15c336-_0x4c292b._0x1c6ffe,_0x5240eb-_0x4c292b._0x22e8b7,_0x5a95f0,_0x5a95f0-_0x4c292b._0x1d17c3);}return _0x2d83e0['split']('\x0a')[_0x5f2a06(_0x3da27c._0x52dba2,0x1d6,0x20b,0x2cb)](_0x311ec7=>_0x311ec7[_0x5f2a06(0x21d,0x336,0x318,0x366)](_0x394843(0x49f,0x479,0x40e,0x3e1)))[_0x5f2a06(_0x3da27c._0x49a37d,_0x3da27c._0x195397,0x16f,0x18f)](_0x4936d8=>_0x4936d8[_0x5f2a06(0x262,0x2a6,0x1dc,0x104)](0x5)['trimStart']())[_0x394843(_0x3da27c._0xaebb03,_0x3da27c._0x412931,0x637,0x650)]('\x0a')[_0x394843(0x5fc,0x65f,0x746,0x57c)]();}function readString(_0x5d95d1){const _0x2b7055={_0x5d053d:0x5f9,_0x346dfa:0x4a1,_0x103271:0x56b,_0x5193fa:0x56d,_0x4b987a:0x65d},_0x1f364b={_0x28535a:0x89},_0x16a9c2={_0x5e6af8:0x1db};function _0x15684d(_0x3d166d,_0x29bf1c,_0x281f51,_0x557332){return _0x22bdb8(_0x3d166d-_0x16a9c2._0x5e6af8,_0x557332-0x4d1,_0x3d166d,_0x557332-0x17);}function _0x629f12(_0x3bead1,_0x33dc32,_0x560552,_0x550575){return _0x101ac3(_0x3bead1-0xc6,_0x33dc32-_0x1f364b._0x28535a,_0x33dc32,_0x550575- -0x34b);}return typeof _0x5d95d1===_0x15684d(_0x2b7055._0x5d053d,0x602,_0x2b7055._0x346dfa,0x4fd)&&_0x5d95d1[_0x15684d(0x5e4,_0x2b7055._0x103271,_0x2b7055._0x5193fa,_0x2b7055._0x4b987a)]>0x0?_0x5d95d1:void 0x0;}function extractReasoningDetails(_0x5c2255){const _0x2e14fc={_0x352006:0x63c,_0x517701:0x537,_0x304ba:0x615,_0x18d7d0:0x55e,_0x494706:0x496,_0x12dc68:0x5fd},_0xcb9158={_0x57cebe:0x156},_0x206b47={_0x212f07:0x5c5,_0x550b41:0x6a9,_0x16bea5:0x3cf,_0x2dd301:0x1a4,_0x41fe71:0x26a,_0x48de12:0x248,_0x1ba391:0x451,_0x4718b2:0x673,_0x46e02a:0x59b,_0x5e35dd:0x2e8,_0x390bf1:0x398},_0x16e836={_0x485bc6:0xbf},_0x1f8e60={_0x1fe9fb:0x1b3,_0x591a0c:0x2d,_0x591a80:0x9f};function _0x48097c(_0x5761fe,_0x1c40b5,_0x3d285c,_0x59d1c8){return _0x101ac3(_0x5761fe-_0x1f8e60._0x1fe9fb,_0x1c40b5-_0x1f8e60._0x591a0c,_0x59d1c8,_0x1c40b5- -_0x1f8e60._0x591a80);}if(!Array[_0x207298(_0x2e14fc._0x352006,0x732,_0x2e14fc._0x517701,_0x2e14fc._0x304ba)](_0x5c2255))return void 0x0;const _0x2cf2bd=_0x5c2255[_0x48097c(_0x2e14fc._0x18d7d0,0x494,0x460,0x386)](_0x40ed10=>{const _0x4fcc58={_0x5ca40a:0x1f1,_0x40e14d:0x12d,_0x2c5f14:0x8c};function _0x509c33(_0x3fa80a,_0x565538,_0x22e255,_0xfcd670){return _0x48097c(_0x3fa80a-_0x4fcc58._0x5ca40a,_0x22e255-_0x4fcc58._0x40e14d,_0x22e255-_0x4fcc58._0x2c5f14,_0xfcd670);}if(!_0x40ed10||typeof _0x40ed10!==_0x509c33(_0x206b47._0x212f07,0x70b,_0x206b47._0x550b41,0x74a))return[];const _0x2b181a=_0x40ed10;function _0x1beb99(_0x2caf31,_0x4c07a9,_0x356c6d,_0x3f9c8d){return _0x207298(_0x356c6d- -0x24c,_0x4c07a9-_0x16e836._0x485bc6,_0x356c6d-0x11b,_0x2caf31);}if(typeof _0x2b181a[_0x1beb99(0x325,0x3e5,_0x206b47._0x16bea5,0x3fd)]===_0x1beb99(0x1e1,_0x206b47._0x2dd301,_0x206b47._0x41fe71,_0x206b47._0x48de12))return[_0x2b181a[_0x1beb99(0x2ea,0x4b9,0x3cf,_0x206b47._0x1ba391)]];if(typeof _0x2b181a[_0x509c33(0x59f,_0x206b47._0x4718b2,0x594,0x542)]===_0x509c33(_0x206b47._0x46e02a,0x645,0x55a,0x59d))return[_0x2b181a[_0x1beb99(_0x206b47._0x5e35dd,0x370,0x2a4,_0x206b47._0x390bf1)]];return[];});function _0x207298(_0xccc1e,_0x44de13,_0x217188,_0x529138){return _0x22bdb8(_0xccc1e-_0xcb9158._0x57cebe,_0xccc1e-0x48a,_0x529138,_0x529138-0xc7);}return _0x2cf2bd[_0x48097c(_0x2e14fc._0x494706,0x58d,0x65a,0x488)]>0x0?_0x2cf2bd[_0x207298(0x618,_0x2e14fc._0x12dc68,0x5d9,0x582)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x48bd21){const _0x4d6236={_0xcacd18:0x1a7,_0x5d12c0:0x83,_0x26f3b3:0x16b,_0x4721ce:0x5b,_0x32d6ec:0x12,_0x40ed52:0x74},_0xc746cf={_0x2a02c5:0x177,_0x2b9d66:0x10c},_0x2a2753={_0x40422b:0xff,_0xae658c:0x4f0,_0x2fe6fe:0x5f};function _0x242f4d(_0x5bab02,_0x4da03f,_0x50054d,_0x3d813a){return _0x22bdb8(_0x5bab02-_0x2a2753._0x40422b,_0x50054d-_0x2a2753._0xae658c,_0x3d813a,_0x3d813a-_0x2a2753._0x2fe6fe);}function _0x384fb5(_0x3b67ca,_0x862041,_0x24b107,_0x36d086){return _0x101ac3(_0x3b67ca-_0xc746cf._0x2a02c5,_0x862041-_0xc746cf._0x2b9d66,_0x24b107,_0x3b67ca- -0x440);}return extractReasoningDetails(_0x48bd21?.[_0x384fb5(_0x4d6236._0xcacd18,0x117,0x26b,0x1fd)])??readString(_0x48bd21?.['reasoning'])??readString(_0x48bd21?.[_0x384fb5(_0x4d6236._0x5d12c0,0xfa,_0x4d6236._0x26f3b3,_0x4d6236._0x4721ce)])??readString(_0x48bd21?.[_0x384fb5(0x109,_0x4d6236._0x32d6ec,_0x4d6236._0x40ed52,0x1aa)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x101ac3(0x477,0x4ef,0x5bc,0x52c)]=![];[_0x22bdb8(0x42,0x16,0x11f,0x74)]=[];[_0x22bdb8(0xea,0x9f,-0x49,0xa8)];['textParts']=[];[_0x101ac3(0x4f3,0x515,0x4ff,0x529)]=new Map();[_0x22bdb8(0x6d,0x118,0x10a,0x223)]=[];[_0x22bdb8(0x5,0x6c,0x1f,0x59)]=new Set();['responseId']='';[_0x101ac3(0x5fd,0x623,0x5fc,0x579)]=_0x101ac3(0x535,0x550,0x50d,0x4df);['usage'];constructor(_0x24465a){const _0x1470d0={_0x1810f6:0x172,_0x51ffc9:0xdc},_0x522b41={_0xae0dcf:0x185};function _0x5c1c3b(_0x297504,_0x27519c,_0x2999be,_0x10808d){return _0x22bdb8(_0x297504-_0x522b41._0xae0dcf,_0x27519c- -0x13e,_0x2999be,_0x10808d-0x29);}this[_0x5c1c3b(-0x14c,-0x9f,-_0x1470d0._0x1810f6,-_0x1470d0._0x51ffc9)]=_0x24465a;}[_0x22bdb8(0x2b7,0x21c,0x1df,0x2c5)](_0x174795){const _0x8f2f3e={_0x221e76:0x3e3,_0x56e30c:0x2c,_0x17809d:0x12f,_0x39653b:0xb7,_0x4df422:0x1aa,_0x27c841:0x252,_0x18862f:0x32f,_0x1288f9:0x27c,_0xdd00ac:0x5b,_0x357dcd:0x252,_0x2cfcf7:0x166,_0x5f1197:0x300},_0x3c20f3={_0x5a53b4:0x63,_0x1dff2d:0x552},_0x4f56ca=readSseData(_0x174795);if(_0x4f56ca['length']===0x0)return[];if(_0x4f56ca===_0x1a888b(0x467,0x3c6,0x3bf,_0x8f2f3e._0x221e76))return this['done']=!![],[];function _0x1a888b(_0x1127e5,_0x2079ba,_0xeeedf2,_0x154cf7){return _0x22bdb8(_0x1127e5-0x1f4,_0x2079ba-0x1fb,_0x154cf7,_0x154cf7-0x199);}const _0x398bec=JSON[_0x1a888b(0x2c6,0x32f,0x228,0x421)](_0x4f56ca);this[_0x1a888b(0x220,0x2d9,0x3cc,0x1ea)]=_0x398bec['id']??this[_0x288ecd(_0x8f2f3e._0x56e30c,_0x8f2f3e._0x17809d,-_0x8f2f3e._0x39653b,-0xc9)];function _0x288ecd(_0x10a349,_0x1cfaf9,_0x54afaf,_0x247e8c){return _0x101ac3(_0x10a349-0x133,_0x1cfaf9-_0x3c20f3._0x5a53b4,_0x54afaf,_0x10a349- -_0x3c20f3._0x1dff2d);}return this[_0x1a888b(_0x8f2f3e._0x4df422,_0x8f2f3e._0x27c841,_0x8f2f3e._0x18862f,_0x8f2f3e._0x1288f9)]=_0x398bec[_0x288ecd(-_0x8f2f3e._0xdd00ac,-0xc3,-0x9e,-0x2a)]??this[_0x1a888b(0x2f0,_0x8f2f3e._0x357dcd,_0x8f2f3e._0x2cfcf7,0x221)],this[_0x1a888b(0x393,0x2a5,0x32a,_0x8f2f3e._0x5f1197)](_0x398bec);}['finish'](){const _0x357747={_0x3de4fb:0x68a,_0x732ff6:0x563,_0x3189f8:0x6af,_0x699382:0x5a9,_0x3636b6:0x615,_0x2b1a33:0x462,_0x3ca06d:0x537,_0x45c3bc:0x4a1,_0x5bc8e5:0x581,_0x313abf:0x47f,_0x3a68f2:0x4f8,_0x3c5b63:0x36d,_0x5d5f6c:0x442,_0x231e1f:0x457,_0x2a9db0:0x32a,_0x552c60:0x4e1,_0x309a87:0x4e0,_0x2d499b:0x435,_0xfe5bf3:0x534,_0xb503d:0x498,_0x446a26:0x4bb,_0x563ebb:0x3c5,_0x77bddf:0x4fd,_0x48afdf:0x4ae,_0x339d8a:0x4d1,_0x36cc68:0x489,_0x25db91:0x3f4,_0x1d80c1:0x541,_0x5b1f50:0x427,_0x3a7820:0x455,_0x460c2c:0x5d1,_0xc9b24:0x4bd,_0x5c431a:0x600,_0x115481:0x3b2,_0x11cd67:0x42a,_0x183521:0x476,_0x44dad8:0x396,_0x892f08:0x426},_0x23146d={_0x10293a:0x166,_0x4070f5:0xd4},_0x820e3c={_0x35ff3b:0x115,_0x36690a:0x81};function _0x1ce8f7(_0x33ba88,_0x35c3b8,_0xe355f8,_0x482dba){return _0x101ac3(_0x33ba88-_0x820e3c._0x35ff3b,_0x35c3b8-0x2c,_0x33ba88,_0xe355f8- -_0x820e3c._0x36690a);}function _0x268567(_0x3a1b50,_0x32701c,_0x2dbf40,_0x1bb99c){return _0x22bdb8(_0x3a1b50-_0x23146d._0x10293a,_0x1bb99c-0x398,_0x2dbf40,_0x1bb99c-_0x23146d._0x4070f5);}if(!this[_0x1ce8f7(_0x357747._0x3de4fb,_0x357747._0x732ff6,0x5a5,_0x357747._0x3189f8)]())throw new ProviderStreamEventError(_0x268567(0x65f,0x6b0,0x6ae,_0x357747._0x699382),{'retryable':!![]});this[_0x1ce8f7(_0x357747._0x3636b6,_0x357747._0x2b1a33,_0x357747._0x3ca06d,_0x357747._0x45c3bc)][_0x268567(0x590,_0x357747._0x5bc8e5,0x515,0x524)]>0x0&&(this[_0x1ce8f7(_0x357747._0x313abf,0x5b8,_0x357747._0x3a68f2,0x46c)]=_0x268567(0x406,_0x357747._0x3c5b63,_0x357747._0x5d5f6c,_0x357747._0x231e1f));const _0x42162d=isUserVisibleReasoning(this[_0x268567(_0x357747._0x2a9db0,0x428,_0x357747._0x552c60,0x437)])?this[_0x1ce8f7(_0x357747._0x309a87,0x51d,_0x357747._0x2d499b,_0x357747._0xfe5bf3)][_0x268567(_0x357747._0xb503d,0x437,_0x357747._0x446a26,0x526)](''):void 0x0;return{'id':this[_0x268567(_0x357747._0x563ebb,_0x357747._0x77bddf,0x53b,0x476)]||_0x1ce8f7(_0x357747._0x48afdf,0x46c,0x575,_0x357747._0x339d8a)+Date[_0x268567(0x3ce,_0x357747._0x36cc68,0x323,_0x357747._0x25db91)](),'content':createContentBlocks(this[_0x1ce8f7(_0x357747._0x1d80c1,_0x357747._0x5b1f50,_0x357747._0x3a7820,0x3a4)][_0x1ce8f7(0x62b,_0x357747._0x460c2c,0x5ad,0x55b)](''),this[_0x1ce8f7(0x4ef,_0x357747._0xc9b24,_0x357747._0x3ca06d,0x46f)],_0x42162d),'stopReason':this[_0x1ce8f7(0x450,_0x357747._0x5c431a,0x4f8,0x541)],'usage':createUsage(this[_0x1ce8f7(_0x357747._0x115481,_0x357747._0x11cd67,_0x357747._0x183521,_0x357747._0x44dad8)],this[_0x1ce8f7(0x3c6,0x404,0x4be,_0x357747._0x892f08)])};}['isDone'](){return this['done'];}[_0x101ac3(0x541,0x5bd,0x64d,0x54a)](_0x36e97d){const _0x4f435b={_0x1d81bc:0x45b,_0x24a769:0x557,_0x2ac3ba:0x58e,_0x1bd4ba:0x63f,_0xf98084:0x4df,_0x360478:0x74,_0x4241b7:0x2b,_0x4cce64:0x94,_0x59c30d:0x91,_0xdc024f:0x1d1,_0x507b13:0x10,_0x83bf83:0xa0,_0x51e78e:0x178,_0x1d9014:0x13f,_0x2a18b5:0x457,_0x23173f:0x442,_0x5dbeb3:0x121,_0x2b6554:0x1c,_0xf82aed:0x40,_0x169732:0xbf,_0x412f0f:0x56,_0x24de59:0x13d,_0xf2785f:0x541,_0xbf4be5:0x557,_0xb32b86:0x58,_0x1d764c:0xdf,_0xc435e6:0x13d,_0x51808f:0x39,_0x1da043:0xe6,_0x55c9d0:0x48b,_0x12d4ba:0x1e0,_0x2d5dfc:0x14f,_0x40b2e4:0x58b,_0x4cc7b5:0x404,_0x4edab9:0x35d,_0x3cf9f5:0x4f6,_0x543b18:0x429,_0x329b3a:0x4d1,_0x10e96f:0x42b,_0x46290b:0x3aa,_0x35360f:0x1bc,_0x592a12:0x194,_0x5cecf0:0xc5,_0x5ca259:0x1f,_0x426052:0x82,_0x10d064:0x2f2,_0x29449a:0x3d3,_0x16d825:0x4f5,_0x53daa2:0x4d9,_0x4220f2:0x206,_0x5acf73:0x3d8,_0x41ed14:0x45a,_0x66e36d:0x48b,_0x8ff36c:0x467,_0x41cdf4:0x47b,_0x5543b0:0x3cd,_0x3cb3f5:0x381,_0x32eb6b:0x11e,_0x46ab6a:0xc,_0x5ea05a:0xdc,_0x4fbd7a:0x4e,_0x48b1a6:0x21,_0x40f484:0x487,_0x4ef061:0x2f7,_0x593e37:0x3d6,_0x1c1d87:0x4cc,_0x5bbe94:0x537,_0x3c6e8e:0x165,_0x29b4db:0x64,_0xddea48:0x15a,_0x3c2b3c:0x183,_0x2c3d02:0x71,_0x456c22:0x15d,_0x17a9bd:0x234,_0x75537b:0x418,_0x119f21:0x462,_0x269e92:0x3c3,_0x21fde5:0x386,_0x12015b:0x38a,_0xff1f69:0x46c,_0x49c70f:0x3a4,_0x52310c:0x1e1,_0x3dca39:0xf1,_0x2b8b0b:0x244,_0x28211d:0x15d,_0x212317:0x175,_0x371190:0x2e3,_0x4be386:0x12c,_0x33a450:0x378,_0x1d4d70:0x4d0,_0x4b592d:0x3de,_0x2941e4:0x1f8,_0x2fb7e9:0x4c,_0x32a412:0x77,_0x56bd96:0x3f0,_0x2cc935:0x4eb,_0x4ef7bf:0x5a5,_0x1ba448:0x4cc,_0x58e307:0x52f,_0x29cf3d:0x4d9,_0x1e3b1d:0x4f8,_0x4d7d24:0x519,_0x18897e:0x16b,_0x6502cc:0x313,_0x4ce032:0x35b,_0x243b10:0x182,_0x26ace0:0x4a1,_0x1279d1:0x4dd,_0x32509b:0x426,_0x1d8a15:0x3de,_0x41f020:0x3cf,_0x55bda4:0x44f,_0x42a8b9:0x459,_0x23a72b:0x3de,_0x32b768:0x3e4,_0x4a1891:0x12e,_0x4e3c1e:0x5b3,_0x515e4e:0x20b,_0x5d94c6:0x16d,_0x5dc627:0xf0,_0x1955cf:0x12f,_0x1d2e55:0x62,_0x1949fa:0x61,_0x15a05c:0xa3,_0x150ffb:0x41c,_0x3999a5:0x498,_0xd0074a:0x348,_0x53c6fe:0x5a,_0x3ea731:0x467},_0x7d6b85={_0x2f9647:0xc8,_0x5c6648:0x153},_0x405878={_0x1a3321:0x12d},_0x23cc93=[];function _0x231de9(_0x4e0232,_0x4bd8cc,_0x2edbad,_0x254a3a){return _0x101ac3(_0x4e0232-_0x405878._0x1a3321,_0x4bd8cc-0x16c,_0x4e0232,_0x254a3a- -0x68e);}if(_0x36e97d['error']!==void 0x0&&_0x36e97d[_0x33b56d(_0x4f435b._0x1d81bc,0x61a,0x5b2,_0x4f435b._0x24a769)]!==null&&typeof _0x36e97d[_0x33b56d(_0x4f435b._0x2ac3ba,0x44e,_0x4f435b._0x1bd4ba,0x557)]===_0x33b56d(_0x4f435b._0xf98084,0x495,0x463,0x4c8))throw new ProviderStreamEventError(_0x36e97d[_0x231de9(-0x37,_0x4f435b._0x360478,0xa4,0x1c)][_0x231de9(0x4d,_0x4f435b._0x4241b7,-_0x4f435b._0x4cce64,-_0x4f435b._0x59c30d)]??_0x231de9(-_0x4f435b._0xdc024f,-0x1cc,-0x246,-0x199),{'code':typeof _0x36e97d[_0x231de9(_0x4f435b._0x507b13,-_0x4f435b._0x83bf83,-0xbd,0x1c)][_0x231de9(-_0x4f435b._0x51e78e,-0xea,-_0x4f435b._0x1d9014,-0x13d)]===_0x33b56d(0x290,_0x4f435b._0x2a18b5,_0x4f435b._0x23173f,0x379)?_0x36e97d[_0x231de9(-0xd2,_0x4f435b._0x5dbeb3,_0x4f435b._0x2b6554,0x1c)][_0x231de9(-0x119,-0xbf,-0x240,-0x13d)]:void 0x0,'retryable':!![],'status':typeof _0x36e97d[_0x33b56d(0x520,0x49d,0x5d9,0x557)][_0x231de9(-_0x4f435b._0xf82aed,-_0x4f435b._0x169732,-_0x4f435b._0x412f0f,-_0x4f435b._0x24de59)]==='number'?_0x36e97d[_0x33b56d(0x51d,_0x4f435b._0xf2785f,0x60f,_0x4f435b._0xbf4be5)][_0x231de9(-_0x4f435b._0xb32b86,-0x17f,-_0x4f435b._0x1d764c,-_0x4f435b._0xc435e6)]:void 0x0});function _0x33b56d(_0x300175,_0x5b90f9,_0x2a6b8a,_0x187c90){return _0x101ac3(_0x300175-_0x7d6b85._0x2f9647,_0x5b90f9-0x79,_0x5b90f9,_0x187c90- -_0x7d6b85._0x5c6648);}for(const _0x51386 of _0x36e97d[_0x231de9(-0x172,-0xf9,-0x8e,-0x17a)]??[]){const _0x596ab3=_0x51386['delta'],_0x26ee2b=extractChatCompletionReasoningDelta(_0x596ab3);_0x26ee2b[_0x231de9(-_0x4f435b._0x51808f,-_0x4f435b._0x1da043,-0x1d,-0x62)]>0x0&&(this['reasoningParts'][_0x33b56d(_0x4f435b._0x55c9d0,0x43a,0x58c,0x48b)](_0x26ee2b),isUserVisibleReasoning(this[_0x231de9(-_0x4f435b._0x12d4ba,-0x23d,-0x73,-_0x4f435b._0x2d5dfc)])&&_0x23cc93[_0x33b56d(_0x4f435b._0x40b2e4,0x593,0x4a2,0x48b)]({'type':_0x33b56d(_0x4f435b._0x4cc7b5,0x361,_0x4f435b._0x4edab9,0x3bf),'contentIndex':0x0,'delta':_0x26ee2b,'itemId':(this[_0x33b56d(_0x4f435b._0x3cf9f5,_0x4f435b._0x543b18,_0x4f435b._0x329b3a,_0x4f435b._0x10e96f)]||_0x33b56d(0x2ff,0x342,_0x4f435b._0x46290b,0x37a))+':reasoning:0','outputIndex':0x0}));const _0x3b0e68=typeof _0x596ab3?.[_0x231de9(-_0x4f435b._0x35360f,-_0x4f435b._0x592a12,-0x1c4,-0x13c)]==='string'?_0x596ab3[_0x231de9(-_0x4f435b._0x5cecf0,-0x1a9,-0x18f,-0x13c)]:typeof _0x596ab3?.[_0x231de9(0x15,_0x4f435b._0x5ca259,-0xcf,-_0x4f435b._0x426052)]===_0x33b56d(_0x4f435b._0x10d064,0x2e6,0x404,0x379)?_0x596ab3[_0x231de9(-0xdc,-0x144,-0x104,-0x82)]:'';_0x3b0e68[_0x33b56d(0x4b5,_0x4f435b._0x29449a,_0x4f435b._0x16d825,_0x4f435b._0x53daa2)]>0x0&&(this[_0x231de9(-0x14d,-_0x4f435b._0x4220f2,-0x217,-0x1b8)][_0x33b56d(_0x4f435b._0x5acf73,_0x4f435b._0x41ed14,0x50a,_0x4f435b._0x66e36d)](_0x3b0e68),_0x23cc93[_0x33b56d(0x3b8,_0x4f435b._0x8ff36c,_0x4f435b._0x41cdf4,_0x4f435b._0x66e36d)]({'type':_0x33b56d(0x3f1,_0x4f435b._0x5543b0,_0x4f435b._0x3cb3f5,0x3f3),'index':0x0,'text':_0x3b0e68}));for(const _0x46300e of _0x596ab3?.[_0x231de9(-_0x4f435b._0x32eb6b,-0x23,-_0x4f435b._0x46ab6a,-0x4b)]??[]){const _0x221de4=_0x46300e[_0x231de9(-0x60,-_0x4f435b._0x5ea05a,_0x4f435b._0x4fbd7a,-_0x4f435b._0x48b1a6)]??0x0;let _0x5494ed=this[_0x33b56d(_0x4f435b._0x40f484,_0x4f435b._0x4ef061,0x4e1,_0x4f435b._0x593e37)][_0x33b56d(0x4d5,0x61d,_0x4f435b._0x1c1d87,_0x4f435b._0x5bbe94)](_0x221de4);!_0x5494ed&&(_0x5494ed={'id':_0x46300e['id']??_0x231de9(-0x114,-0x24,-_0x4f435b._0x3c6e8e,-_0x4f435b._0x29b4db)+_0x221de4,'type':_0x231de9(-0x7f,-_0x4f435b._0xddea48,-_0x4f435b._0x3c2b3c,-0x15d),'function':{'name':_0x46300e[_0x231de9(-_0x4f435b._0x2c3d02,-0x113,-0x91,-_0x4f435b._0x456c22)]?.[_0x231de9(-0x2ed,-0x11e,-_0x4f435b._0x17a9bd,-_0x4f435b._0x12d4ba)]??'','arguments':''}},this[_0x33b56d(_0x4f435b._0x75537b,0x308,_0x4f435b._0x119f21,0x3d6)][_0x33b56d(_0x4f435b._0x269e92,_0x4f435b._0x21fde5,0x33a,_0x4f435b._0x12015b)](_0x221de4,_0x5494ed),this['toolCallOrder'][_0x33b56d(_0x4f435b._0xff1f69,0x38f,_0x4f435b._0x49c70f,0x48b)](_0x5494ed));_0x46300e['id']&&(_0x5494ed['id']=_0x46300e['id']);_0x46300e[_0x231de9(-_0x4f435b._0x52310c,-_0x4f435b._0x3dca39,-_0x4f435b._0x2b8b0b,-_0x4f435b._0x28211d)]?.[_0x231de9(-0x11d,-_0x4f435b._0x212317,-0x158,-0x1e0)]&&(_0x5494ed[_0x33b56d(0x3bd,_0x4f435b._0x371190,0x4ae,0x3de)][_0x231de9(-0x1b2,-_0x4f435b._0x4be386,-0x1fb,-0x1e0)]=_0x46300e[_0x33b56d(_0x4f435b._0x33a450,_0x4f435b._0x1d4d70,0x3aa,_0x4f435b._0x4b592d)]['name']);!this[_0x231de9(-_0x4f435b._0x2941e4,-0x7f,-0x12b,-0x182)][_0x231de9(-0x59,_0x4f435b._0x2fb7e9,-_0x4f435b._0x32a412,-0x71)](_0x221de4)&&_0x5494ed['function'][_0x33b56d(0x299,0x275,_0x4f435b._0x56bd96,0x35b)][_0x33b56d(_0x4f435b._0x2cc935,0x5ea,_0x4f435b._0x4ef7bf,0x56a)]()[_0x33b56d(_0x4f435b._0x1ba448,_0x4f435b._0x58e307,0x5ae,_0x4f435b._0x29cf3d)]>0x0&&(_0x23cc93[_0x33b56d(0x4fb,_0x4f435b._0x1e3b1d,_0x4f435b._0x4d7d24,0x48b)]({'type':_0x33b56d(0x4ae,0x3f9,0x402,0x40d),'id':_0x5494ed['id'],'index':_0x221de4,'name':_0x5494ed[_0x231de9(-0x56,-_0x4f435b._0x18897e,-0x145,-_0x4f435b._0x28211d)][_0x33b56d(0x301,_0x4f435b._0x6502cc,0x29f,_0x4f435b._0x4ce032)]}),this[_0x231de9(-0x22c,-0x1f8,-0x1ff,-_0x4f435b._0x243b10)]['add'](_0x221de4));const _0x178672=_0x46300e[_0x33b56d(_0x4f435b._0x26ace0,_0x4f435b._0x1279d1,_0x4f435b._0x32509b,_0x4f435b._0x1d8a15)]?.[_0x33b56d(_0x4f435b._0x41f020,0x4f1,0x543,_0x4f435b._0x55bda4)]??'';_0x178672['length']>0x0&&(_0x5494ed[_0x33b56d(0x499,0x4d9,_0x4f435b._0x42a8b9,_0x4f435b._0x23a72b)][_0x33b56d(0x369,_0x4f435b._0x32b768,0x496,_0x4f435b._0x55bda4)]+=_0x178672,_0x23cc93['push']({'type':_0x231de9(-0x2b,-0x1dc,-0x65,-_0x4f435b._0x4a1891),'id':_0x5494ed['id'],'index':_0x221de4,'inputDelta':_0x178672}));}_0x51386['finish_reason']===_0x33b56d(_0x4f435b._0x4e3c1e,0x544,0x5ea,0x4f0)&&(this['stopReason']=_0x231de9(-_0x4f435b._0x515e4e,-_0x4f435b._0x5d94c6,-_0x4f435b._0x5dc627,-_0x4f435b._0x1955cf));if(_0x51386[_0x231de9(_0x4f435b._0x1d2e55,-_0x4f435b._0x1949fa,-0x19b,-_0x4f435b._0x15a05c)]==='error')throw new ProviderStreamEventError('Provider\x20stream\x20ended\x20with\x20error\x20finish\x20reason',{'retryable':!![]});typeof _0x51386[_0x33b56d(_0x4f435b._0x150ffb,0x45f,0x3da,_0x4f435b._0x3999a5)]===_0x33b56d(_0x4f435b._0xd0074a,0x38a,0x2da,0x379)&&_0x51386['finish_reason'][_0x231de9(-0x10f,_0x4f435b._0x53c6fe,-0x76,-0x62)]>0x0&&(this[_0x33b56d(0x367,_0x4f435b._0x3ea731,0x3f8,0x3d9)]=!![]);}return _0x23cc93;}},OpenAiResponsesStreamParser=class{['callIdToOutputIndex']=new Map();['finalResponse'];[_0x101ac3(0x55d,0x61d,0x4a1,0x592)]=new Map();[_0x101ac3(0x4af,0x64e,0x55b,0x5a9)]=new Map();['reasoningItems']=new Map();['request'];[_0x22bdb8(0x13,0x51,-0x52,0xf2)]=new Map();[_0x101ac3(0x4ef,0x577,0x4a5,0x4f4)]=new Map();constructor(_0x4d56ad){const _0x1f2e3d={_0x324faa:0xf,_0xd63f07:0x9};function _0x2ca3e8(_0x2e31ea,_0x53dac8,_0x27b9da,_0x403daa){return _0x22bdb8(_0x2e31ea-0xc7,_0x27b9da-_0x1f2e3d._0x324faa,_0x403daa,_0x403daa-_0x1f2e3d._0xd63f07);}this[_0x2ca3e8(0xfe,0x145,0xae,0x22)]=_0x4d56ad;}[_0x22bdb8(0x260,0x21c,0x180,0x12e)](_0x4d30d4){const _0x36beba={_0xc3ec7b:0x315,_0x5c2861:0x279,_0x18879a:0x186,_0x225118:0x1c8,_0x447f2b:0x2fd,_0x288fd2:0x349,_0xe4e5a6:0x3e2,_0x12184a:0x156,_0x4d03a1:0x1b6,_0x3efd63:0x1dc,_0x361944:0x283,_0x186922:0x362,_0x527220:0x5b,_0x10c306:0x23,_0x39bbdc:0x1,_0x82e96:0x360,_0x3f2434:0x451,_0x1e1f0c:0x27f,_0x5b2efa:0x6f,_0x53117c:0x2cb,_0x192ba8:0x196,_0x229c2c:0x1fd},_0x4b15b2={_0x2ed3ff:0x130,_0x23ac61:0x166},_0x3dcc1e={_0xeceab0:0x123,_0x1e6f89:0x181,_0x24c19c:0x2cc};function _0x12e273(_0x31b46f,_0x15e20e,_0x1581f6,_0x23e7a2){return _0x101ac3(_0x31b46f-_0x3dcc1e._0xeceab0,_0x15e20e-_0x3dcc1e._0x1e6f89,_0x1581f6,_0x31b46f- -_0x3dcc1e._0x24c19c);}const _0x4dd26f=_0x4d30d4[_0x12e273(0x250,_0x36beba._0xc3ec7b,_0x36beba._0x5c2861,0x291)]('\x0a'),_0x4e7926=_0x4dd26f[_0x493512(-_0x36beba._0x18879a,0x40,-0xc9,-0xc0)](_0x29a6fc=>_0x29a6fc[_0x493512(-0x11b,0x4,-0x4c,0x12)](_0x12e273(0x32c,0x375,0x34e,0x3d0)))?.[_0x12e273(0x28c,0x1d8,0x31c,_0x36beba._0x225118)](0x6)[_0x12e273(0x3f1,_0x36beba._0x447f2b,_0x36beba._0x288fd2,_0x36beba._0xe4e5a6)]();function _0x493512(_0x162393,_0x5cd2cd,_0x1a5872,_0x4005e3){return _0x101ac3(_0x162393-_0x4b15b2._0x2ed3ff,_0x5cd2cd-_0x4b15b2._0x23ac61,_0x162393,_0x1a5872- -0x6e0);}const _0xc59377=_0x4dd26f[_0x493512(-_0x36beba._0x12184a,-_0x36beba._0x4d03a1,-0x159,-_0x36beba._0x3efd63)](_0x124072=>_0x124072[_0x12e273(0x3c8,0x32c,0x4c2,0x4c2)](_0x493512(-0x130,-0x2b5,-0x209,-0x2ee)))[_0x493512(-_0x36beba._0x361944,-0x217,-0x1f5,-0x107)](_0xbb0838=>_0xbb0838['slice'](0x5)[_0x12e273(0x22a,0x2c0,0x138,0x127)]())[_0x12e273(_0x36beba._0x186922,0x282,0x2e3,0x3e9)]('\x0a')[_0x493512(-0x62,-_0x36beba._0x527220,-_0x36beba._0x10c306,-_0x36beba._0x39bbdc)]();if(_0xc59377[_0x12e273(_0x36beba._0x82e96,_0x36beba._0x3f2434,_0x36beba._0x1e1f0c,0x441)]===0x0||_0xc59377===_0x493512(-0x156,-_0x36beba._0x5b2efa,-0x75,0x7a))return[];const _0x45ff00=JSON[_0x12e273(0x308,_0x36beba._0x53117c,0x381,0x35a)](_0xc59377);return this[_0x493512(-0x25a,-0x287,-_0x36beba._0x192ba8,-_0x36beba._0x229c2c)](_0x4e7926??String(_0x45ff00['type']??''),_0x45ff00);}['consumeWebSocketEvent'](_0x4334db){const _0x1d3719={_0x38975f:0x605,_0x422593:0x671,_0xffe690:0x60b,_0x7180db:0x6cb,_0x2d6d99:0x681,_0x272f56:0x594},_0x42d365={_0x488b48:0x19b,_0x2cb1c5:0x55b,_0x4a0c7a:0x135},_0x1a724d={_0x442c1e:0x100};function _0x12a985(_0x3ba107,_0x4cf74c,_0x594f80,_0x3449be){return _0x101ac3(_0x3ba107-_0x1a724d._0x442c1e,_0x4cf74c-0x1e7,_0x4cf74c,_0x3449be- -0x4d6);}function _0x5cff7a(_0x5bf6db,_0x1a0f8a,_0x13fd3a,_0x3a662f){return _0x22bdb8(_0x5bf6db-_0x42d365._0x488b48,_0x1a0f8a-_0x42d365._0x2cb1c5,_0x5bf6db,_0x3a662f-_0x42d365._0x4a0c7a);}return this[_0x5cff7a(0x621,_0x1d3719._0x38975f,_0x1d3719._0x422593,_0x1d3719._0xffe690)](String(_0x4334db[_0x5cff7a(_0x1d3719._0x7180db,_0x1d3719._0x2d6d99,_0x1d3719._0x272f56,0x686)]??''),_0x4334db);}[_0x101ac3(0x52a,0x4ca,0x3d4,0x4b3)](){const _0xe06120={_0x32fe85:0x8b,_0x4b1ca5:0xfa,_0x4f92cb:0x45a,_0x316ea0:0x377,_0x535286:0x318,_0x280c44:0x313,_0x33f0e5:0x2a2,_0x1d961c:0x2d8,_0x2cc01b:0x2a6,_0x57e88d:0x36c,_0x4dbcbc:0x347},_0x3b742a={_0xb3b0f6:0x136,_0x4a7d2c:0x71};if(!this[_0xcc710c(0x8e,_0xe06120._0x32fe85,0x96,_0xe06120._0x4b1ca5)])throw new ProviderStreamEventError('Responses\x20stream\x20ended\x20before\x20a\x20terminal\x20event',{'retryable':!![]});function _0xcc710c(_0x5cc5b8,_0x25f88c,_0x28d148,_0x5c83cb){return _0x22bdb8(_0x5cc5b8-0xa0,_0x28d148- -_0x3b742a._0xb3b0f6,_0x5cc5b8,_0x5c83cb-_0x3b742a._0x4a7d2c);}function _0x130d84(_0x24c2f1,_0x5a2723,_0x55cc72,_0x2830cd){return _0x22bdb8(_0x24c2f1-0x17a,_0x55cc72-0x14c,_0x24c2f1,_0x2830cd-0x177);}const _0x53382c=this['buildPartialOutput'](),_0x263436={...this['finalResponse'],'output':this['finalResponse'][_0x130d84(0x3d2,0x267,0x36c,_0xe06120._0x4f92cb)]&&this[_0x130d84(0x2a6,_0xe06120._0x316ea0,_0xe06120._0x535286,_0xe06120._0x280c44)]['output'][_0x130d84(_0xe06120._0x33f0e5,0x1fc,_0xe06120._0x1d961c,0x27b)]>0x0?this['finalResponse'][_0x130d84(_0xe06120._0x2cc01b,0x412,_0xe06120._0x57e88d,_0xe06120._0x4dbcbc)]:_0x53382c};return parseResponsesResponse(_0x263436,this['request']);}[_0x101ac3(0x701,0x6bc,0x6ac,0x626)](){const _0x564603={_0xf69525:0x5a,_0x193113:0x56,_0x205a10:0x153},_0x50990d={_0x23c052:0xb};function _0x4d32bb(_0x4a004a,_0x5d24e1,_0x1e7d8b,_0x1b01a1){return _0x22bdb8(_0x4a004a-0x1be,_0x5d24e1- -0x226,_0x1b01a1,_0x1b01a1-_0x50990d._0x23c052);}return this[_0x4d32bb(-0xa7,-_0x564603._0xf69525,_0x564603._0x193113,-_0x564603._0x205a10)]!==void 0x0;}[_0x22bdb8(-0x46,0xaa,0x8d,0xf9)](_0x44f267,_0x307f70){const _0x1a09de={_0x18be41:0x1b,_0x14972d:0x46,_0x3a1a40:0x11a,_0x16d567:0x9b,_0x5ed202:0x514,_0x9cc618:0xd,_0x26a90b:0xf5,_0x189fd0:0x17e,_0x58e70a:0x9b,_0x3f07ba:0x503,_0x72bdc3:0x4a2,_0x1b1e0d:0x519,_0x413549:0x565,_0x2d51a3:0x4cd,_0x200a4d:0x470,_0x4bfd98:0x17a,_0x4fccbe:0x1a8,_0x2d4c12:0xee,_0x1da760:0xfd,_0x37894e:0x71,_0x3f6697:0x9d,_0x21b768:0x51,_0x2ab09c:0x48b,_0x2f3731:0x537,_0x5a4611:0x47,_0x51f02c:0x40,_0x26b638:0x43a,_0x12eb7e:0x48c,_0x243bf7:0x3e1,_0x28053f:0x4b7,_0x28b85b:0x610,_0x4004ae:0xb6,_0x286642:0x7a,_0x2e67d2:0x65,_0x3be4ed:0x17c,_0x3b2b3b:0xf1,_0x139d7c:0x452,_0xb6bfa1:0x524,_0x5d1951:0x498,_0x5d37d5:0x3b4,_0x5cfa3f:0xc2,_0x57f3cc:0x26,_0x122b37:0x5c,_0x34400a:0x56,_0x3fcbe:0xdf,_0x5aabeb:0x55d,_0x1bc35b:0x6e6,_0x2eb6b1:0xb2,_0x5ca95e:0x4f,_0x1917ff:0x6f2,_0xf35ded:0x468,_0x3d7a9e:0x4d7,_0x4079fd:0x4fb,_0x2bb550:0x130,_0x498eee:0x45,_0x524f9a:0x5,_0x69517a:0x1a,_0xcd09c9:0x109,_0x1fe067:0x164,_0x118a06:0xb0,_0x5dec1d:0x147,_0x2a2e52:0x34,_0xc8a75c:0x10e,_0x1ac943:0x2,_0x1cce25:0x183,_0xd830db:0x4ef,_0x332334:0x46f,_0x13afe9:0x561,_0x525ab4:0x195,_0x27a61a:0xa3,_0x1c046a:0x54c,_0x3cbc8f:0x536,_0x1ace57:0x505,_0x5c33a5:0x496,_0x29f50e:0x4bf,_0x4829a4:0x5c,_0x350390:0x117,_0x1894e1:0x18,_0x2a0910:0x16,_0x103ddf:0x114,_0x597af2:0x519,_0x2f18ff:0x623,_0x1418ff:0x104,_0x4340d2:0x185,_0xd00125:0x87,_0x1e0f0b:0x114,_0x280f3a:0x10d,_0x3fa9b6:0x148,_0x39b625:0x1f,_0x526615:0x8e,_0x5ef183:0x103,_0x4997a7:0x12f,_0x1a8951:0x2d,_0x1bfdb7:0xc,_0x2ce4f5:0x4f,_0xc758e5:0x488,_0x31602a:0x45a,_0x450b1d:0x27,_0x34a878:0x3b8,_0x987c6c:0x496,_0x37c0ff:0x134,_0x28a8e0:0x3ea,_0x1fb795:0x64b,_0x56e570:0x622,_0x3ac483:0x56c,_0x3cd5d5:0x4d4,_0x1db6e1:0x1d,_0x8a0f9:0x536,_0x5af81e:0x5ee,_0x516176:0x174,_0x38f1e2:0x5e,_0x355fb4:0x631,_0x51797a:0x62e,_0x1bd189:0x4bf,_0x567b31:0x4ba,_0x5ea645:0x42e,_0x10f901:0x5a1,_0x1e2cdc:0x563,_0x1e00e1:0x64e,_0x514090:0x5ec,_0x4e4c1c:0x546,_0x4d1dc8:0x62d,_0x230e79:0xba,_0x13b741:0xb4,_0x566722:0x5ad,_0x596bea:0x405,_0x1509db:0x415,_0x4acd94:0x49d,_0x58eae6:0xa0,_0x31f0d4:0x547,_0xca24f9:0xac,_0xf483f5:0x1ed,_0x1917d4:0x6ef,_0x1568f1:0x62e,_0x5c8e3b:0x5d1,_0x560018:0x0,_0x316c32:0xb0,_0x4debaf:0x44f,_0x429acf:0x422,_0x8e029c:0x470,_0x248925:0x4f6,_0x1e0808:0x5ba,_0x348401:0x4d5,_0x1cc2ec:0x438,_0x2ff23e:0x4f0,_0x4af150:0x58c,_0x51cdb1:0x56a,_0x3cfceb:0x60f,_0x24f108:0x61,_0x21dafa:0x68,_0x4d62f5:0x32,_0x1ada03:0x132,_0x4787a8:0xbe,_0x533b16:0xb0,_0x31b792:0x12f,_0x341290:0xc1,_0x19f2e2:0x4e,_0x13f4aa:0x3c,_0x2e56e2:0x82,_0x1ab6c5:0x4d4,_0x5ec8d7:0x443,_0x615a7f:0x4c9,_0x5a16b3:0x41,_0x2cc4e8:0xf6,_0x104a47:0x2b,_0xfb5884:0x39,_0x6102d4:0x39,_0x981a21:0x4f,_0x629561:0x3d,_0x30b873:0x5e9,_0x222c45:0x642,_0x180dee:0x5d5,_0x254217:0x542,_0x4b4a74:0x539,_0x345021:0x470,_0xea7e6b:0x474,_0x2ceb6c:0x4d2,_0x42b8d9:0x568,_0x3e08b0:0x13f,_0x3dfb5c:0x644,_0x4253ae:0x6e1,_0x3b56f5:0xe7,_0x5bd8d9:0x19b,_0x3cb085:0x1ab,_0x48bec0:0x189,_0x1d4860:0x3bb,_0x41f41e:0x3ba,_0x48d6bb:0x4c,_0x46726c:0x417,_0xfbd488:0x428,_0x21f48e:0x4bb,_0x4a55ab:0x562,_0x273782:0x5e4,_0x28b600:0x15,_0x25945b:0xeb,_0x2e44bf:0x6e5,_0x2a96c5:0x595,_0x137beb:0x3fa,_0x3b8e5c:0x91,_0x3e88b7:0x660,_0x169a15:0x57b,_0x55cb08:0xa8,_0x5b032f:0x101,_0x46dc91:0x53d,_0x1803bc:0x59d,_0x12680d:0x5a4,_0x5e07bf:0x120,_0x2774ec:0x4d2,_0x429398:0x0,_0x3c0105:0x5f,_0xa7c709:0x15b,_0x187047:0x115,_0x18085d:0xef,_0x1d7947:0x56,_0x30d9e1:0xd4,_0x3e52ea:0xf0,_0x1ee8a2:0xb3,_0x3cbe06:0x39a,_0x1c9d52:0x415,_0x3fb830:0x47f,_0x3396a5:0x15,_0x521010:0x531,_0x289305:0x527,_0x55c98a:0x50d,_0x3f22ef:0x97,_0x26416c:0x580,_0x5b6a38:0x4ac,_0x4aa571:0x496,_0x50efbb:0x4d5,_0x1fcb09:0x447,_0x71e8c8:0x3ac,_0x4eb393:0x14,_0x2088b7:0x9b,_0x3322e6:0x12,_0x4787e8:0x61f,_0x3c7754:0x540,_0x1fbad5:0x6df,_0x4dd045:0xc1,_0x3f8b1c:0x145,_0x131d39:0x59,_0xd09d29:0xa4,_0x560fd1:0x557,_0x20c6e7:0xf8,_0x30e3f2:0x5f,_0x4b56ae:0x37e,_0x60090c:0x3d9,_0x520dba:0x481,_0x2feeaf:0x614,_0x459acd:0x21,_0x222ac8:0x87,_0x54c7e4:0x6c5,_0x31c4bf:0x51e,_0x4b16a0:0x658,_0x4e7091:0x18b,_0xe2ef87:0x52,_0x272b97:0x150,_0xcc59f7:0x4b1,_0x5c3c3a:0x389,_0x316279:0x4e8,_0x5f796:0x4a1,_0x57244c:0x3cb,_0x44fd33:0x55c,_0x413d18:0x51a,_0x3b84ca:0x5f2,_0x288b58:0x5c7,_0x4e9e0b:0x5d0,_0x2608e9:0x1b1,_0x37d006:0xe,_0x1d3cf1:0xb0,_0xee5afe:0x14b,_0x477f18:0x25,_0x4059f2:0x94,_0x220bfd:0xa6,_0x536af8:0x74,_0x4841f0:0x537,_0x5ab382:0x49d,_0x4ccd0b:0x39e,_0x470bfe:0x54e,_0x415709:0x4d3,_0x365d32:0x4b4,_0x503411:0x4f5,_0x5370a9:0x4b6,_0x33df85:0x6a3,_0x5ac9fd:0x8c,_0x2c2569:0x8,_0x216f05:0xc1,_0x4e9e2c:0x5bd,_0x3735e0:0x496,_0x48a3e1:0x433,_0x1442d6:0x601,_0x330024:0x444,_0x45449c:0x54d,_0x444b6d:0x510,_0xb380ca:0x569,_0x145c65:0x59e,_0x352ae7:0x4df,_0x4fe930:0x496,_0x59b6be:0x4d3,_0x536efc:0xc5,_0x195f27:0x1d,_0x5cde46:0x591,_0x22e1ee:0x3f4,_0x9285a4:0x51c,_0x202209:0x15b,_0x4ba569:0x80,_0x2992cf:0x5d,_0x3c8b18:0x74,_0x36d8a9:0x470,_0x7f5005:0x4b3,_0xdccae2:0x42,_0x3a71f9:0x58a,_0x520e2d:0x5e1,_0x558be1:0x122,_0x256677:0x38,_0x5aadaf:0xa5,_0x1a3422:0x2,_0x204dd5:0x88,_0x2ecbf2:0x69,_0x12c4d4:0x37,_0x157370:0xdf,_0x7bd493:0x13f,_0x100db8:0x150,_0x369db7:0xbb,_0x2651b9:0xf,_0x2029e7:0xc3,_0xcda593:0x19e,_0x2f9b4f:0xe5,_0xf62dc4:0x66a,_0x414b29:0x5a1,_0x25be45:0x624,_0xe46f4d:0x93,_0x2b0fc2:0x11d,_0x4098f3:0x74b,_0x417261:0x64e,_0x3964d5:0x586,_0x295665:0x35,_0x378fac:0xb8,_0x50cf8c:0x3,_0x3ae411:0xfa,_0x51e72c:0x188},_0x58c82f={_0xf063ef:0x18,_0x2f6db3:0x58d},_0x4455d8={_0x4e2c15:0x163,_0x4fd019:0x38};switch(_0x44f267){case _0x29a6e0(-0x176,_0x1a09de._0x18be41,-0xa5,-0xb2):{const _0x311449=typeof _0x307f70[_0x29a6e0(_0x1a09de._0x14972d,-0x150,-_0x1a09de._0x3a1a40,-_0x1a09de._0x16d567)]===_0x32ce7e(0x5e9,0x5b2,_0x1a09de._0x5ed202,0x4dd)?_0x307f70[_0x29a6e0(_0x1a09de._0x9cc618,-_0x1a09de._0x26a90b,-_0x1a09de._0x189fd0,-_0x1a09de._0x58e70a)]:0x0,_0x43aba8=typeof _0x307f70[_0x32ce7e(_0x1a09de._0x3f07ba,_0x1a09de._0x72bdc3,_0x1a09de._0x1b1e0d,0x61c)]===_0x32ce7e(_0x1a09de._0x413549,_0x1a09de._0x2d51a3,_0x1a09de._0x200a4d,0x3ed)?_0x307f70['delta']:'';if(_0x43aba8['length']>0x0){const _0x35d0e4=this[_0x29a6e0(-_0x1a09de._0x4bfd98,-0xe8,-_0x1a09de._0x4fccbe,-0x9c)][_0x29a6e0(_0x1a09de._0x2d4c12,0x114,0x42,_0x1a09de._0x1da760)](_0x311449)??[];return _0x35d0e4[_0x29a6e0(_0x1a09de._0x37894e,-_0x1a09de._0x3f6697,0xb0,_0x1a09de._0x21b768)](_0x43aba8),this[_0x32ce7e(0x466,0x5a2,0x495,0x3ba)]['set'](_0x311449,_0x35d0e4),[{'type':_0x32ce7e(_0x1a09de._0x2ab09c,_0x1a09de._0x2f3731,0x4ea,0x5a3),'index':_0x311449,'text':_0x43aba8}];}break;}case'response.output_item.added':{const _0x2183a3=typeof _0x307f70[_0x29a6e0(-_0x1a09de._0x5a4611,0x47,_0x1a09de._0x51f02c,-_0x1a09de._0x16d567)]===_0x32ce7e(_0x1a09de._0x26b638,0x49b,0x514,_0x1a09de._0x12eb7e)?_0x307f70[_0x32ce7e(0x54e,_0x1a09de._0x243bf7,0x496,_0x1a09de._0x28053f)]:void 0x0,_0x190f65=_0x307f70['item'];if(_0x190f65?.[_0x32ce7e(0x50c,_0x1a09de._0x28b85b,0x56a,0x548)]===_0x29a6e0(-0x73,-_0x1a09de._0x4004ae,_0x1a09de._0x286642,-_0x1a09de._0x2e67d2)&&_0x190f65[_0x29a6e0(0x50,0x1e2,_0x1a09de._0x3be4ed,_0x1a09de._0x3b2b3b)]&&_0x190f65[_0x32ce7e(0x4e8,0x397,_0x1a09de._0x139d7c,_0x1a09de._0xb6bfa1)])return this[_0x32ce7e(0x517,0x3fc,_0x1a09de._0x5d1951,0x591)][_0x32ce7e(_0x1a09de._0x5d37d5,0x40c,0x481,0x3f5)](_0x190f65[_0x29a6e0(0xcf,_0x1a09de._0x5cfa3f,0x194,_0x1a09de._0x3b2b3b)],{'id':_0x190f65['call_id'],'type':_0x29a6e0(_0x1a09de._0x57f3cc,0xc,-0x14b,-_0x1a09de._0x122b37),'function':{'name':_0x190f65[_0x29a6e0(-0xd,-_0x1a09de._0x34400a,-0x5e,-_0x1a09de._0x3fcbe)],'arguments':''}}),_0x2183a3!==void 0x0&&(this['outputIndexToCallId']['set'](_0x2183a3,_0x190f65[_0x32ce7e(_0x1a09de._0x5aabeb,0x6f3,0x622,_0x1a09de._0x1bc35b)]),this[_0x29a6e0(-0x138,-_0x1a09de._0x2eb6b1,-0xfc,-_0x1a09de._0x5ca95e)]['set'](_0x190f65[_0x32ce7e(0x6de,0x633,0x622,_0x1a09de._0x1917ff)],_0x2183a3)),[{'type':_0x32ce7e(_0x1a09de._0xf35ded,_0x1a09de._0x3d7a9e,0x504,_0x1a09de._0x4079fd),'id':_0x190f65[_0x29a6e0(_0x1a09de._0x2bb550,0x59,0x4d,0xf1)],'index':_0x2183a3??0x0,'name':_0x190f65['name']}];if(_0x190f65?.[_0x29a6e0(_0x1a09de._0x498eee,-_0x1a09de._0x524f9a,-_0x1a09de._0x69517a,0x39)]===_0x29a6e0(0xb4,-_0x1a09de._0xcd09c9,-_0x1a09de._0x122b37,-0x16)&&_0x190f65['id']){const _0x3ff500=this[_0x29a6e0(0x38,_0x1a09de._0x1fe067,0x29,_0x1a09de._0x118a06)](_0x190f65['id'],_0x2183a3);_0x2183a3!==void 0x0&&this[_0x29a6e0(-0x7b,0x1d,-_0x1a09de._0x3fcbe,0x1c)][_0x29a6e0(-_0x1a09de._0x5dec1d,-_0x1a09de._0x2a2e52,-0x2e,-_0x1a09de._0x118a06)](_0x2183a3,_0x3ff500['id']);}break;}case _0x29a6e0(_0x1a09de._0xc8a75c,-_0x1a09de._0x1ac943,_0x1a09de._0x1cce25,0x7c):{const _0x5be9a0=typeof _0x307f70[_0x29a6e0(0x72,0x185,0xa8,_0x1a09de._0x3b2b3b)]===_0x32ce7e(_0x1a09de._0xd830db,_0x1a09de._0x332334,0x470,_0x1a09de._0x13afe9)?_0x307f70[_0x29a6e0(-0x15,0x104,_0x1a09de._0x525ab4,0xf1)]:typeof _0x307f70[_0x29a6e0(-0x16f,-_0x1a09de._0x27a61a,0x4d,-_0x1a09de._0x16d567)]==='number'?this[_0x32ce7e(0x632,_0x1a09de._0x1c046a,_0x1a09de._0x3cbc8f,_0x1a09de._0x1ace57)]['get'](_0x307f70[_0x32ce7e(0x48d,0x4c5,_0x1a09de._0x5c33a5,_0x1a09de._0x29f50e)]):void 0x0,_0x12814a=typeof _0x307f70[_0x29a6e0(_0x1a09de._0x4004ae,-_0x1a09de._0x4829a4,-_0x1a09de._0x350390,-_0x1a09de._0x1894e1)]===_0x29a6e0(_0x1a09de._0x2a0910,-_0x1a09de._0x103ddf,-0x18c,-0xc1)?_0x307f70[_0x32ce7e(0x563,0x424,_0x1a09de._0x597af2,_0x1a09de._0x2f18ff)]:'',_0x1a10c8=_0x5be9a0?this['toolCalls'][_0x29a6e0(_0x1a09de._0x1418ff,_0x1a09de._0x4340d2,_0x1a09de._0xd00125,0xfd)](_0x5be9a0):void 0x0;if(_0x1a10c8&&_0x12814a['length']>0x0)return _0x1a10c8[_0x29a6e0(-_0x1a09de._0x1e0f0b,-_0x1a09de._0x280f3a,-_0x1a09de._0x3fa9b6,-0x5c)][_0x29a6e0(0x9d,_0x1a09de._0x39b625,_0x1a09de._0x526615,0x15)]+=_0x12814a,[{'type':_0x29a6e0(-_0x1a09de._0x5ef183,-_0x1a09de._0x4997a7,0xc9,-_0x1a09de._0x1a8951),'id':_0x1a10c8['id'],'index':this[_0x29a6e0(-_0x1a09de._0x1bfdb7,0x36,-0x14,-_0x1a09de._0x2ce4f5)]['get'](_0x1a10c8['id'])??(typeof _0x307f70[_0x32ce7e(0x3e3,_0x1a09de._0xc758e5,0x496,_0x1a09de._0x31602a)]===_0x29a6e0(-0x86,-_0x1a09de._0x450b1d,_0x1a09de._0x3fcbe,-0x1d)?_0x307f70[_0x32ce7e(_0x1a09de._0x34a878,0x3bc,_0x1a09de._0x987c6c,0x548)]:0x0),'inputDelta':_0x12814a}];break;}case _0x29a6e0(-0xab,-_0x1a09de._0x37c0ff,0x31,-0x89):{const _0x35ebd6=typeof _0x307f70[_0x32ce7e(0x703,0x60c,0x622,0x72e)]===_0x32ce7e(_0x1a09de._0x28a8e0,0x4b4,0x470,0x53c)?_0x307f70[_0x32ce7e(_0x1a09de._0x1fb795,0x6c9,_0x1a09de._0x56e570,0x58c)]:typeof _0x307f70[_0x32ce7e(_0x1a09de._0x3ac483,0x389,_0x1a09de._0x987c6c,_0x1a09de._0x3cd5d5)]===_0x29a6e0(0x29,0xa7,-0x85,-_0x1a09de._0x1db6e1)?this[_0x32ce7e(0x557,0x4e9,_0x1a09de._0x8a0f9,0x57f)][_0x32ce7e(0x594,_0x1a09de._0x5af81e,0x62e,0x57c)](_0x307f70[_0x29a6e0(-0x106,-_0x1a09de._0x516176,-_0x1a09de._0x38f1e2,-0x9b)]):void 0x0,_0x5c4ee9=_0x35ebd6?this['toolCalls'][_0x32ce7e(0x690,_0x1a09de._0x355fb4,_0x1a09de._0x51797a,0x707)](_0x35ebd6):void 0x0;_0x5c4ee9&&typeof _0x307f70['arguments']===_0x32ce7e(_0x1a09de._0x1bd189,_0x1a09de._0x567b31,0x470,0x463)&&(_0x5c4ee9[_0x32ce7e(_0x1a09de._0x5ea645,_0x1a09de._0x10f901,0x4d5,_0x1a09de._0x1e2cdc)]['arguments']=_0x307f70[_0x32ce7e(_0x1a09de._0x1e00e1,_0x1a09de._0x514090,_0x1a09de._0x4e4c1c,_0x1a09de._0x4d1dc8)]);break;}case _0x29a6e0(-0x122,-_0x1a09de._0x230e79,-_0x1a09de._0x13b741,-0xa9):{const _0x308842=typeof _0x307f70[_0x29a6e0(-0xb9,-0xea,-0x4c,-0x9b)]===_0x32ce7e(0x4b5,0x415,0x514,_0x1a09de._0x566722)?_0x307f70[_0x32ce7e(_0x1a09de._0x596bea,0x516,0x496,_0x1a09de._0x1509db)]:void 0x0,_0x592dac=_0x307f70['item'];if(_0x592dac?.[_0x32ce7e(0x5a4,_0x1a09de._0x4acd94,0x56a,0x5c7)]===_0x29a6e0(-0x163,_0x1a09de._0x58eae6,0xa3,-0x65)){const _0x317979=_0x592dac[_0x29a6e0(0x2a,0x179,0x6f,_0x1a09de._0x3b2b3b)]??(_0x308842!==void 0x0?this[_0x32ce7e(0x524,0x55a,0x536,_0x1a09de._0x31f0d4)][_0x29a6e0(_0x1a09de._0xca24f9,_0x1a09de._0xf483f5,0x1c,_0x1a09de._0x1da760)](_0x308842):void 0x0),_0x301e90=_0x317979?this['toolCalls'][_0x32ce7e(0x57e,_0x1a09de._0x1917d4,_0x1a09de._0x1568f1,_0x1a09de._0x5c8e3b)](_0x317979):void 0x0;_0x301e90&&typeof _0x592dac[_0x29a6e0(_0x1a09de._0x560018,_0x1a09de._0x316c32,0x2b,0x15)]===_0x32ce7e(_0x1a09de._0x4debaf,_0x1a09de._0x429acf,_0x1a09de._0x8e029c,_0x1a09de._0x248925)&&(_0x301e90[_0x32ce7e(_0x1a09de._0x1e0808,0x419,_0x1a09de._0x348401,_0x1a09de._0x1cc2ec)]['arguments']=_0x592dac['arguments']);break;}if(_0x592dac?.[_0x32ce7e(_0x1a09de._0x2ff23e,_0x1a09de._0x4af150,_0x1a09de._0x51cdb1,_0x1a09de._0x3cfceb)]===_0x29a6e0(_0x1a09de._0x24f108,-_0x1a09de._0x21dafa,-0xe1,-_0x1a09de._0x2a0910)&&_0x592dac['id']){const _0x7dbdcb=this[_0x29a6e0(_0x1a09de._0x4d62f5,_0x1a09de._0x51f02c,_0x1a09de._0x1ada03,_0x1a09de._0x118a06)](_0x592dac['id'],_0x308842);typeof _0x592dac[_0x29a6e0(-_0x1a09de._0x4787a8,-0x86,_0x1a09de._0x533b16,-0x1e)]===_0x29a6e0(0x2b,-_0x1a09de._0x31b792,-0x6c,-_0x1a09de._0x341290)&&(_0x7dbdcb[_0x29a6e0(0xe7,_0x1a09de._0x19f2e2,-_0x1a09de._0x13f4aa,_0x1a09de._0x2e56e2)]=_0x592dac['encrypted_content']);if(Array['isArray'](_0x592dac[_0x32ce7e(_0x1a09de._0x1ab6c5,_0x1a09de._0x5ec8d7,0x4aa,_0x1a09de._0x615a7f)]))for(let _0x52c5d5=0x0;_0x52c5d5<_0x592dac[_0x29a6e0(_0x1a09de._0x5a16b3,0x5d,-0x143,-0x87)]['length'];_0x52c5d5+=0x1){const _0x4b5181=_0x592dac[_0x29a6e0(-0x108,-_0x1a09de._0x2cc4e8,0x7b,-_0x1a09de._0xd00125)][_0x52c5d5];_0x4b5181[_0x29a6e0(_0x1a09de._0x104a47,0x127,_0x1a09de._0xfb5884,_0x1a09de._0x6102d4)]===_0x29a6e0(-_0x1a09de._0x981a21,0x4c,_0x1a09de._0x629561,-0xa5)&&typeof _0x4b5181[_0x32ce7e(_0x1a09de._0x30b873,_0x1a09de._0x222c45,_0x1a09de._0x180dee,_0x1a09de._0x254217)]===_0x32ce7e(0x4ab,_0x1a09de._0x4b4a74,_0x1a09de._0x345021,0x47f)&&_0x7dbdcb[_0x32ce7e(_0x1a09de._0xea7e6b,0x5d9,_0x1a09de._0x2ceb6c,_0x1a09de._0x42b8d9)][_0x29a6e0(-0x184,-0x124,-_0x1a09de._0x3e08b0,-0xb0)](_0x52c5d5,_0x4b5181[_0x32ce7e(_0x1a09de._0x3dfb5c,0x68d,0x5d5,_0x1a09de._0x4253ae)]);}typeof _0x592dac[_0x29a6e0(-0x4b,0x121,_0x1a09de._0x3b56f5,0xa4)]===_0x29a6e0(-_0x1a09de._0x5bd8d9,-_0x1a09de._0x3cb085,-_0x1a09de._0x57f3cc,-_0x1a09de._0x341290)&&_0x7dbdcb[_0x29a6e0(-0xc4,0x26,-_0x1a09de._0x48bec0,-0x94)][_0x32ce7e(_0x1a09de._0x1d4860,_0x1a09de._0x41f41e,0x481,0x50f)](0x0,_0x592dac['text']);}break;}case _0x29a6e0(-_0x1a09de._0x48d6bb,0x138,0xfb,0xb9):{const _0x2f5251=typeof _0x307f70[_0x32ce7e(_0x1a09de._0x46726c,_0x1a09de._0xfbd488,0x519,0x40f)]==='string'?_0x307f70['delta']:'',_0x2c12ec=typeof _0x307f70['item_id']===_0x32ce7e(0x37f,_0x1a09de._0x21f48e,0x470,_0x1a09de._0x4a55ab)?_0x307f70[_0x32ce7e(0x636,0x693,_0x1a09de._0x273782,0x500)]:typeof _0x307f70[_0x29a6e0(-0xf0,_0x1a09de._0x28b600,-_0x1a09de._0x25945b,-_0x1a09de._0x16d567)]==='number'?this['outputIndexToReasoningId'][_0x32ce7e(_0x1a09de._0x2e44bf,0x669,_0x1a09de._0x51797a,_0x1a09de._0x2a96c5)](_0x307f70['output_index']):void 0x0,_0x522b75=typeof _0x307f70[_0x32ce7e(0x549,_0x1a09de._0x137beb,0x496,0x4e1)]===_0x29a6e0(_0x1a09de._0x3b8e5c,-0x11b,-0x82,-_0x1a09de._0x1db6e1)?_0x307f70['output_index']:0x0,_0x186d9c=typeof _0x307f70[_0x32ce7e(0x4ba,_0x1a09de._0x3e88b7,_0x1a09de._0x169a15,0x57e)]===_0x29a6e0(0xc2,-_0x1a09de._0x55cb08,-_0x1a09de._0x5b032f,-0x1d)?_0x307f70[_0x32ce7e(_0x1a09de._0x46dc91,_0x1a09de._0x1803bc,0x57b,0x4c9)]:0x0;if(_0x2c12ec&&_0x2f5251[_0x32ce7e(_0x1a09de._0x12680d,0x4c7,0x5d0,0x681)]>0x0){const _0x3c909f=this[_0x29a6e0(_0x1a09de._0x5e07bf,0xda,0x74,_0x1a09de._0x118a06)](_0x2c12ec,_0x522b75);_0x3c909f[_0x32ce7e(0x5c9,0x411,_0x1a09de._0x2774ec,0x5ca)]['set'](_0x186d9c,''+(_0x3c909f[_0x29a6e0(-0xe2,0xad,_0x1a09de._0x429398,-_0x1a09de._0x3c0105)][_0x29a6e0(_0x1a09de._0xa7c709,0x165,0x37,_0x1a09de._0x1da760)](_0x186d9c)??'')+_0x2f5251);if(isUserVisibleReasoning(this['request']))return[{'type':_0x29a6e0(0x1d,0x17f,_0x1a09de._0x187047,_0x1a09de._0x18085d),'delta':_0x2f5251,'itemId':_0x2c12ec,'outputIndex':_0x522b75,'summaryIndex':_0x186d9c}];}break;}case'response.reasoning_summary_text.done':{const _0x363c9e=typeof _0x307f70[_0x29a6e0(-_0x1a09de._0x1d7947,_0x1a09de._0x30d9e1,_0x1a09de._0x3e52ea,_0x1a09de._0x1ee8a2)]===_0x32ce7e(_0x1a09de._0x3cbe06,_0x1a09de._0x1c9d52,0x470,_0x1a09de._0x3fb830)?_0x307f70[_0x29a6e0(0x10e,0x5d,_0x1a09de._0x3396a5,0xb3)]:typeof _0x307f70[_0x32ce7e(_0x1a09de._0x521010,_0x1a09de._0x289305,0x496,_0x1a09de._0x55c98a)]==='number'?this[_0x29a6e0(-_0x1a09de._0x3f22ef,0x95,-0x66,0x1c)]['get'](_0x307f70[_0x32ce7e(_0x1a09de._0x26416c,_0x1a09de._0x5b6a38,_0x1a09de._0x4aa571,0x3a8)]):void 0x0,_0x4ffaff=typeof _0x307f70[_0x32ce7e(_0x1a09de._0x50efbb,_0x1a09de._0x1fcb09,0x496,_0x1a09de._0x71e8c8)]==='number'?_0x307f70[_0x29a6e0(_0x1a09de._0x4eb393,-0x17a,-0x90,-_0x1a09de._0x2088b7)]:0x0,_0x591201=typeof _0x307f70[_0x29a6e0(-0x89,-_0x1a09de._0x3322e6,-0x58,0x4a)]==='number'?_0x307f70[_0x32ce7e(0x4b1,_0x1a09de._0x4787e8,0x57b,0x516)]:0x0,_0x1fbdcb=typeof _0x307f70[_0x32ce7e(_0x1a09de._0x3c7754,0x4dc,0x5d5,_0x1a09de._0x1fbad5)]===_0x29a6e0(-_0x1a09de._0x3b8e5c,0x39,-_0x1a09de._0x24f108,-_0x1a09de._0x4dd045)?_0x307f70[_0x29a6e0(0xd9,_0x1a09de._0x3f8b1c,_0x1a09de._0x131d39,_0x1a09de._0xd09d29)]:'';_0x363c9e&&this[_0x32ce7e(_0x1a09de._0x560fd1,0x5a3,0x5e1,0x576)](_0x363c9e,_0x4ffaff)[_0x29a6e0(-_0x1a09de._0x20c6e7,-0x2,-_0x1a09de._0x30e3f2,-0x5f)][_0x32ce7e(_0x1a09de._0x4b56ae,_0x1a09de._0x60090c,_0x1a09de._0x520dba,0x4cc)](_0x591201,_0x1fbdcb);break;}case _0x32ce7e(0x5db,_0x1a09de._0x273782,_0x1a09de._0x2feeaf,0x5ba):{const _0x4e9ee1=typeof _0x307f70[_0x29a6e0(-0x6a,0x5,0x71,-_0x1a09de._0x1894e1)]==='string'?_0x307f70['delta']:'',_0x10d2eb=typeof _0x307f70['item_id']===_0x29a6e0(_0x1a09de._0x459acd,-0x1c,-_0x1a09de._0x222ac8,-0xc1)?_0x307f70[_0x32ce7e(_0x1a09de._0x54c7e4,_0x1a09de._0x31c4bf,0x5e4,_0x1a09de._0x4b16a0)]:typeof _0x307f70[_0x29a6e0(-0x42,-_0x1a09de._0x4e7091,-_0x1a09de._0xe2ef87,-0x9b)]==='number'?this['outputIndexToReasoningId'][_0x29a6e0(0x1c4,0x114,_0x1a09de._0x272b97,0xfd)](_0x307f70[_0x32ce7e(_0x1a09de._0xcc59f7,_0x1a09de._0x5c3c3a,0x496,0x50d)]):void 0x0,_0x554195=typeof _0x307f70[_0x32ce7e(_0x1a09de._0x316279,_0x1a09de._0x5f796,0x496,_0x1a09de._0x57244c)]==='number'?_0x307f70[_0x32ce7e(_0x1a09de._0x44fd33,0x3f1,0x496,0x4e8)]:0x0,_0x13defc=typeof _0x307f70['content_index']==='number'?_0x307f70[_0x32ce7e(_0x1a09de._0x413d18,_0x1a09de._0x3c7754,0x58e,_0x1a09de._0x3b84ca)]:0x0;if(_0x10d2eb&&_0x4e9ee1[_0x32ce7e(_0x1a09de._0x288b58,0x69b,_0x1a09de._0x4e9e0b,0x59a)]>0x0){const _0x4ed632=this[_0x29a6e0(_0x1a09de._0x2608e9,-_0x1a09de._0x37d006,-0x7,_0x1a09de._0x1d3cf1)](_0x10d2eb,_0x554195);_0x4ed632[_0x29a6e0(-_0x1a09de._0xee5afe,-0xdc,_0x1a09de._0x477f18,-_0x1a09de._0x4059f2)][_0x29a6e0(-_0x1a09de._0x220bfd,-_0x1a09de._0x536af8,-0x189,-_0x1a09de._0x118a06)](_0x13defc,''+(_0x4ed632[_0x32ce7e(0x55b,_0x1a09de._0x4841f0,_0x1a09de._0x5ab382,_0x1a09de._0x4ccd0b)][_0x32ce7e(0x5da,_0x1a09de._0x470bfe,0x62e,0x58f)](_0x13defc)??'')+_0x4e9ee1);if(isUserVisibleReasoning(this[_0x32ce7e(_0x1a09de._0x415709,0x599,0x4e3,_0x1a09de._0x365d32)]))return[{'type':_0x32ce7e(_0x1a09de._0x503411,0x515,_0x1a09de._0x5370a9,0x497),'contentIndex':_0x13defc,'delta':_0x4e9ee1,'itemId':_0x10d2eb,'outputIndex':_0x554195}];}break;}case'response.reasoning_text.done':{const _0x300dfd=typeof _0x307f70[_0x32ce7e(0x63b,0x5ab,0x5e4,_0x1a09de._0x33df85)]===_0x29a6e0(-_0x1a09de._0x5ac9fd,-_0x1a09de._0x30d9e1,-_0x1a09de._0x2c2569,-_0x1a09de._0x216f05)?_0x307f70[_0x32ce7e(0x64a,_0x1a09de._0x4e9e2c,0x5e4,0x51b)]:typeof _0x307f70[_0x32ce7e(0x576,0x49f,_0x1a09de._0x3735e0,_0x1a09de._0x48a3e1)]===_0x32ce7e(0x5a8,_0x1a09de._0x1442d6,_0x1a09de._0x5ed202,0x4e7)?this[_0x32ce7e(_0x1a09de._0x330024,_0x1a09de._0x55c98a,_0x1a09de._0x45449c,_0x1a09de._0x444b6d)][_0x32ce7e(0x547,_0x1a09de._0xb380ca,_0x1a09de._0x51797a,_0x1a09de._0x145c65)](_0x307f70[_0x32ce7e(0x4ed,_0x1a09de._0x352ae7,_0x1a09de._0x4fe930,0x3eb)]):void 0x0,_0x542b0e=typeof _0x307f70[_0x32ce7e(_0x1a09de._0x59b6be,0x423,_0x1a09de._0x987c6c,0x470)]===_0x29a6e0(-_0x1a09de._0x536efc,-0x126,0x8d,-_0x1a09de._0x195f27)?_0x307f70[_0x32ce7e(_0x1a09de._0x5cde46,_0x1a09de._0x22e1ee,0x496,_0x1a09de._0x9285a4)]:0x0,_0x499241=typeof _0x307f70['content_index']==='number'?_0x307f70[_0x29a6e0(_0x1a09de._0x202209,0x10,-_0x1a09de._0x4ba569,_0x1a09de._0x2992cf)]:0x0,_0x3a316e=typeof _0x307f70[_0x29a6e0(0x2e,0x12a,_0x1a09de._0x3c8b18,0xa4)]===_0x32ce7e(0x3b0,0x3e5,_0x1a09de._0x36d8a9,_0x1a09de._0x7f5005)?_0x307f70[_0x29a6e0(-_0x1a09de._0x1ac943,0x43,-_0x1a09de._0xdccae2,0xa4)]:'';_0x300dfd&&this[_0x32ce7e(_0x1a09de._0x3a71f9,0x5f7,_0x1a09de._0x520e2d,0x63f)](_0x300dfd,_0x542b0e)[_0x29a6e0(-_0x1a09de._0x558be1,-_0x1a09de._0x256677,0x25,-_0x1a09de._0x4059f2)][_0x32ce7e(0x444,0x3c0,_0x1a09de._0x520dba,0x50e)](_0x499241,_0x3a316e);break;}case _0x29a6e0(_0x1a09de._0x5aadaf,-_0x1a09de._0x1a3422,-_0x1a09de._0x204dd5,-_0x1a09de._0x2ecbf2):case _0x29a6e0(0x91,-0xb9,_0x1a09de._0x12c4d4,_0x1a09de._0x629561):{this[_0x29a6e0(0xd7,_0x1a09de._0x19f2e2,0x4c,_0x1a09de._0x157370)]=_0x307f70[_0x29a6e0(-_0x1a09de._0x7bd493,-0xd5,0x34,-0xc3)];break;}case _0x29a6e0(_0x1a09de._0x100db8,0x147,-0x36,_0x1a09de._0x369db7):{const _0x2afc69=_0x307f70[_0x29a6e0(-_0x1a09de._0x2d4c12,-0xd8,-_0x1a09de._0x2651b9,-_0x1a09de._0x2029e7)];throw new ProviderStreamEventError(_0x2afc69?.[_0x29a6e0(_0x1a09de._0xcda593,_0x1a09de._0x2f9b4f,0x28,0x11d)]?.[_0x32ce7e(0x609,_0x1a09de._0xf62dc4,_0x1a09de._0x414b29,_0x1a09de._0x25be45)]??'Responses\x20stream\x20failed',{'code':_0x2afc69?.[_0x29a6e0(_0x1a09de._0xe46f4d,_0x1a09de._0x16d567,0x156,_0x1a09de._0x2b0fc2)]?.['code'],'retryable':!![]});}case _0x29a6e0(0x1e2,_0x1a09de._0x2e67d2,0x62,0x11d):{const _0x1c7b87=_0x307f70[_0x32ce7e(_0x1a09de._0x4098f3,0x5e1,_0x1a09de._0x417261,_0x1a09de._0x3964d5)];throw new ProviderStreamEventError(_0x1c7b87?.[_0x29a6e0(-_0x1a09de._0x295665,_0x1a09de._0x378fac,-_0x1a09de._0xe46f4d,0x70)]??_0x29a6e0(-_0x1a09de._0x50cf8c,0xe9,-_0x1a09de._0x3ae411,0x3),{'code':_0x1c7b87?.['code'],'retryable':!![],'status':typeof _0x307f70[_0x29a6e0(-0x31,-0xda,-0x198,-0x9d)]==='number'?_0x307f70[_0x29a6e0(-0xca,-0x17,-_0x1a09de._0x51e72c,-0x9d)]:void 0x0});}}function _0x32ce7e(_0x33c706,_0x2b7cc2,_0x4e560e,_0x24ea38){return _0x22bdb8(_0x33c706-_0x4455d8._0x4e2c15,_0x4e560e-0x444,_0x24ea38,_0x24ea38-_0x4455d8._0x4fd019);}function _0x29a6e0(_0x216f45,_0x4f23a5,_0x4d0dbf,_0x11ebe4){return _0x101ac3(_0x216f45-_0x58c82f._0xf063ef,_0x4f23a5-0x6c,_0x216f45,_0x11ebe4- -_0x58c82f._0x2f6db3);}return[];}[_0x101ac3(0x629,0x686,0x616,0x585)](){const _0x3b3926={_0x34cfe3:0x32a,_0x29f52a:0x344,_0x46c4fc:0x351,_0x328aad:0x3fe,_0x3db676:0x3b7,_0x1845b7:0x301,_0x5c068d:0x31b,_0x49636b:0x304,_0xf01219:0x2ea,_0x3612ea:0x30a,_0xabd49c:0x338,_0x360ce8:0x3c4,_0x5ab7c7:0x1f7,_0x43fad4:0x1d2,_0xd607f2:0x58d,_0x3080de:0x539,_0x23b21d:0x5d5,_0x272413:0x233,_0x1ad428:0x332,_0xe88903:0x545,_0x496890:0x3f2,_0x37f933:0x34f,_0x57790c:0x39b,_0x2d82de:0x687,_0x320d98:0x4da,_0x169edb:0x20e,_0x49b4bf:0x210,_0x696254:0x2dd,_0x36c3f2:0x3e9,_0x26097f:0x45b,_0x1d8912:0x15f,_0x14d8ff:0x356,_0x1c48a5:0x57c,_0x30e5a2:0x5b1,_0x9dceb8:0x55d,_0x3b20ff:0x267,_0x4167cd:0x3a8,_0x3ee609:0x351,_0x517c10:0x3d0,_0x4e6658:0x50d,_0x320fbc:0x401,_0x529e14:0x45d,_0x1a08ab:0x597,_0x3046a5:0x2e4,_0x2601f0:0x22e,_0x2e8d6:0x558,_0x1b646a:0x43c,_0x4167f9:0x3de,_0x5bd48a:0x374,_0x46b64a:0x24b,_0x26616b:0x220,_0xee921f:0x3c0,_0x52c58d:0x3d4,_0x4f633f:0x307,_0x59e4c6:0x2de,_0x1b05c8:0x51b,_0x5338d4:0x44e,_0x1eef12:0x445,_0x15578e:0x1c8},_0x52584a={_0x1b45c4:0x46,_0x53bcf9:0x7b},_0x10f4e3={_0x4f4d17:0x115,_0x408715:0x43b,_0x5500d7:0xd4},_0x1cf4af={_0xc17c2a:0x1c3},_0x355f77={_0x193fbe:0x1e};function _0x282efc(_0x43371b,_0x5658e9,_0x2d5a2d,_0x51c039){return _0x22bdb8(_0x43371b-0x187,_0x5658e9-0x3ad,_0x51c039,_0x51c039-_0x355f77._0x193fbe);}function _0x5758f4(_0x37d20c,_0x26e8ad,_0x5dabd4,_0x41f783){return _0x22bdb8(_0x37d20c-0x1e6,_0x26e8ad-_0x1cf4af._0xc17c2a,_0x37d20c,_0x41f783-0xf2);}const _0x19f0d5=[];for(const [_0x5c3d5d,_0x58d092]of this['responseTextParts'][_0x5758f4(_0x3b3926._0x34cfe3,0x25a,0x32f,_0x3b3926._0x29f52a)]()){const _0x55dcd9=_0x58d092[_0x5758f4(0x417,_0x3b3926._0x46c4fc,0x2f5,_0x3b3926._0x328aad)]('');if(_0x55dcd9['length']===0x0)continue;_0x19f0d5[_0x5758f4(_0x3b3926._0x3db676,_0x3b3926._0x1845b7,_0x3b3926._0x5c068d,_0x3b3926._0x49636b)]({'index':_0x5c3d5d,'item':{'type':_0x5758f4(0x3d1,0x320,0x3f9,0x338),'role':_0x5758f4(0x23a,_0x3b3926._0xf01219,_0x3b3926._0x3612ea,0x341),'content':[{'type':_0x5758f4(0x3e5,0x326,_0x3b3926._0xabd49c,_0x3b3926._0x360ce8),'text':_0x55dcd9}]}});}for(const _0x9f3895 of this[_0x5758f4(_0x3b3926._0x5ab7c7,0x236,0x33d,_0x3b3926._0x43fad4)][_0x282efc(0x384,0x489,0x53c,0x4fd)]()){_0x19f0d5[_0x282efc(0x5c8,0x4eb,_0x3b3926._0xd607f2,0x503)]({'index':_0x9f3895['outputIndex']??_0x19f0d5[_0x282efc(0x494,_0x3b3926._0x3080de,_0x3b3926._0x23b21d,0x5eb)],'item':{'type':'reasoning','id':_0x9f3895['id'],..._0x9f3895[_0x5758f4(_0x3b3926._0x272413,_0x3b3926._0x1ad428,0x26c,0x3cf)]?{'encrypted_content':_0x9f3895['encryptedContent']}:{},..._0x9f3895[_0x282efc(0x541,0x43b,_0x3b3926._0xe88903,_0x3b3926._0x496890)]['size']>0x0?{'summary':Array['from'](_0x9f3895['summaryByIndex'][_0x282efc(0x4ef,0x444,_0x3b3926._0x37f933,_0x3b3926._0x57790c)]())[_0x282efc(0x4a0,0x57c,_0x3b3926._0x2d82de,_0x3b3926._0x320d98)]((_0x27b158,_0x353303)=>_0x27b158[0x0]-_0x353303[0x0])[_0x5758f4(0x1eb,_0x3b3926._0x169edb,_0x3b3926._0x49b4bf,0x175)](([,_0x4b8096])=>{function _0xa601f2(_0x4cb297,_0x24886,_0x5bf893,_0x396402){return _0x282efc(_0x4cb297-_0x10f4e3._0x4f4d17,_0x24886- -_0x10f4e3._0x408715,_0x5bf893-_0x10f4e3._0x5500d7,_0x4cb297);}return{'type':_0xa601f2(0x78,-_0x52584a._0x1b45c4,-0x7f,-_0x52584a._0x53bcf9),'text':_0x4b8096};})}:{},..._0x9f3895[_0x5758f4(_0x3b3926._0x696254,0x21c,0x166,0x287)]['size']>0x0?{'text':Array[_0x282efc(_0x3b3926._0x36c3f2,_0x3b3926._0x26097f,0x355,0x4da)](_0x9f3895['textByIndex'][_0x5758f4(0x24c,0x25a,_0x3b3926._0x1d8912,_0x3b3926._0x14d8ff)]())[_0x282efc(0x60f,_0x3b3926._0x1c48a5,_0x3b3926._0x30e5a2,_0x3b3926._0x9dceb8)]((_0x541b14,_0x4e88e3)=>_0x541b14[0x0]-_0x4e88e3[0x0])[_0x5758f4(0x12f,_0x3b3926._0x169edb,_0x3b3926._0x3b20ff,0x15f)](([,_0x2cb8ac])=>_0x2cb8ac)[_0x5758f4(_0x3b3926._0x4167cd,_0x3b3926._0x3ee609,_0x3b3926._0x517c10,0x339)]('')}:{}}});}for(const _0x48eb1f of this[_0x282efc(_0x3b3926._0x4e6658,_0x3b3926._0x320fbc,0x3e4,0x4ac)][_0x282efc(0x3ad,0x489,_0x3b3926._0x529e14,_0x3b3926._0x1a08ab)]()){_0x19f0d5[_0x5758f4(0x27c,0x301,_0x3b3926._0x3046a5,_0x3b3926._0x2601f0)]({'index':this[_0x282efc(0x4b5,0x44b,_0x3b3926._0x2e8d6,_0x3b3926._0x1b646a)]['get'](_0x48eb1f['id'])??_0x19f0d5[_0x5758f4(_0x3b3926._0x4167f9,0x34f,_0x3b3926._0x5bd48a,0x351)],'item':{'type':_0x5758f4(0x330,_0x3b3926._0x46b64a,0x1a3,_0x3b3926._0x26616b),'call_id':_0x48eb1f['id'],'name':_0x48eb1f[_0x282efc(0x49b,0x43e,_0x3b3926._0xee921f,_0x3b3926._0x52c58d)][_0x282efc(_0x3b3926._0x4f633f,0x3bb,_0x3b3926._0x59e4c6,0x2d8)],'arguments':_0x48eb1f[_0x282efc(0x46e,0x43e,0x3f2,0x53b)][_0x282efc(_0x3b3926._0x1b05c8,0x4af,_0x3b3926._0x5338d4,_0x3b3926._0x1eef12)]}});}return _0x19f0d5['sort']((_0x821720,_0x1f04ab)=>_0x821720['index']-_0x1f04ab[_0x282efc(0x5a6,0x57a,0x646,0x47f)])[_0x5758f4(0x24c,0x20e,0x1f4,_0x3b3926._0x15578e)](_0x5bf139=>_0x5bf139['item']);}['getOrCreateReasoningItem'](_0x1b4301,_0x204ea9){const _0xbf191f={_0x58baa1:0x344,_0xd12b30:0x34a,_0x1866f5:0x5af,_0x5dda03:0x500,_0x5d4c03:0x490,_0x550e6b:0x371,_0x124b79:0x30e,_0x9967f7:0x3a5,_0x379888:0x3c2,_0x3fa6a7:0x1e8,_0x58453e:0x185,_0x555935:0x141,_0x557a06:0x2d8},_0x42bb15={_0x1354a2:0x1cf},_0x17ae81={_0x1f60c3:0x1e9,_0x1cc4f4:0xb3,_0x523f3d:0x6ea};function _0x58bbc0(_0xb857ba,_0xa0fd62,_0x53c7d1,_0x4d5bad){return _0x101ac3(_0xb857ba-_0x17ae81._0x1f60c3,_0xa0fd62-_0x17ae81._0x1cc4f4,_0xa0fd62,_0x4d5bad- -_0x17ae81._0x523f3d);}const _0x14b2b5=this[_0x5d76c6(0x2e0,0x24d,_0xbf191f._0x58baa1,_0xbf191f._0xd12b30)]['get'](_0x1b4301);if(_0x14b2b5)return _0x204ea9!==void 0x0&&(_0x14b2b5[_0x5d76c6(0x46c,_0xbf191f._0x1866f5,0x4bf,_0xbf191f._0x5dda03)]=_0x204ea9,this[_0x5d76c6(_0xbf191f._0x5d4c03,_0xbf191f._0x550e6b,0x3da,0x30a)][_0x5d76c6(0x3a3,0x20c,_0xbf191f._0x124b79,0x305)](_0x204ea9,_0x1b4301)),_0x14b2b5;const _0x1da8ff={'id':_0x1b4301,'outputIndex':_0x204ea9,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x5d76c6(0x257,_0xbf191f._0x9967f7,0x344,_0xbf191f._0x379888)]['set'](_0x1b4301,_0x1da8ff);_0x204ea9!==void 0x0&&this[_0x58bbc0(-_0xbf191f._0x3fa6a7,-0x219,-_0xbf191f._0x58453e,-_0xbf191f._0x555935)][_0x5d76c6(0x2c4,_0xbf191f._0x557a06,0x30e,0x264)](_0x204ea9,_0x1b4301);function _0x5d76c6(_0x12533e,_0x30249b,_0x2e46fb,_0x93d867){return _0x101ac3(_0x12533e-0x15d,_0x30249b-0x1cc,_0x93d867,_0x2e46fb- -_0x42bb15._0x1354a2);}return _0x1da8ff;}};function createOpenAiResponsesStreamParser(_0x16f007){return new OpenAiResponsesStreamParser(_0x16f007);}function createOpenAiSurfaces(_0x5835dc={}){const _0x4d5c0a={_0x34b67c:0x762,_0x11ee6f:0x747,_0x5f12b3:0x7e2,_0x55f0a1:0x401,_0x499900:0x57a,_0x3bb181:0x6be,_0x1b4d3e:0x768,_0x2716c9:0x5cd,_0x2c44b6:0x613},_0x18a9d1={_0x173264:0xd9,_0x43f1a6:0x125},_0x341e7a={_0x2fe52e:0xd6,_0x2d4d1b:0x38},_0xf9cae6={_0x3d9ee1:0x15c},_0x9b76e4={_0x13128d:0x467,_0x2fc8aa:0x3c1,_0x54b28f:0x44b},_0x4131a1={_0x31b6f7:0x1a4,_0xadade:0x12c},_0x18c4ea={_0x44eeaa:0x670,_0x40c58:0x74a},_0x50be92={_0x36b179:0x4b,_0x72b28d:0xab},_0x58acaa={_0x3315cd:0x58},_0x1a3005={_0x448e59:0x3ce,_0xe704d2:0xd1},_0x280335=_0x5835dc['chatCompletionsPath']??_0x4f7e00(0x6dd,_0x4d5c0a._0x34b67c,_0x4d5c0a._0x11ee6f,_0x4d5c0a._0x5f12b3),_0x3378f9=_0x5835dc[_0xa5ea49(_0x4d5c0a._0x55f0a1,0x44a,0x507,_0x4d5c0a._0x499900)]??'/responses';function _0xa5ea49(_0x22c658,_0x2b7e81,_0x4ff7c8,_0xf45a28){return _0x22bdb8(_0x22c658-0x70,_0x4ff7c8-_0x1a3005._0x448e59,_0x22c658,_0xf45a28-_0x1a3005._0xe704d2);}function _0x4f7e00(_0x77e578,_0x3abd08,_0x3c6e33,_0x557c98){return _0x22bdb8(_0x77e578-0x10d,_0x3abd08-0x561,_0x3c6e33,_0x557c98-_0x58acaa._0x3315cd);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x4f7e00(_0x4d5c0a._0x3bb181,_0x4d5c0a._0x1b4d3e,0x7a7,0x710),'createRequest'(_0x590099){function _0x5314a9(_0x453f4b,_0x3c44fc,_0x53e420,_0x24a899){return _0x4f7e00(_0x453f4b-_0x50be92._0x36b179,_0x453f4b-0xa,_0x53e420,_0x24a899-_0x50be92._0x72b28d);}return{'accept':_0x5314a9(0x666,_0x18c4ea._0x44eeaa,_0x18c4ea._0x40c58,0x58d),'body':createChatRequestBody(_0x590099,![]),'path':_0x280335};},'parseResponse'(_0x393984,_0x16e891){return parseChatCompletionResponse(_0x393984,_0x16e891);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x446230){function _0x45a2f6(_0x5bf114,_0x3ad6c7,_0x2e43d2,_0x1c2347){return _0x4f7e00(_0x5bf114-0xd0,_0x2e43d2- -0x734,_0x5bf114,_0x1c2347-0x10);}return{'accept':_0x45a2f6(-_0x4131a1._0x31b6f7,-0x129,-_0x4131a1._0xadade,-0x1e6),'body':createChatRequestBody(_0x446230,!![]),'path':_0x280335};},'createStreamParser'(_0x15cf7b){return new OpenAiChatCompletionsStreamParser(_0x15cf7b);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':'http-json','createRequest'(_0x47eea4){const _0x5ace70={_0x1783e4:0x1db,_0x42cb60:0x4f};function _0x6f8aae(_0x3794fb,_0x3ccf3f,_0x49d78d,_0x250c31){return _0xa5ea49(_0x3794fb,_0x3ccf3f-_0x5ace70._0x1783e4,_0x250c31- -0x7e,_0x250c31-_0x5ace70._0x42cb60);}return{'accept':_0x6f8aae(0x42f,_0x9b76e4._0x13128d,_0x9b76e4._0x2fc8aa,_0x9b76e4._0x54b28f),'body':createResponsesRequestBody(_0x47eea4,![],_0x5835dc['promptCacheKeyResolver']),'path':_0x3378f9};},'parseResponse'(_0x47c8d7,_0x25691a){return parseResponsesResponse(_0x47c8d7,_0x25691a);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x4f7e00(0x6f1,0x735,0x78f,0x837),'createRequest'(_0x4ca784){function _0x47d3f1(_0x117184,_0x34bc8e,_0x3e4e93,_0x3aa702){return _0xa5ea49(_0x3aa702,_0x34bc8e-0x25,_0x3e4e93- -0x5f2,_0x3aa702-_0xf9cae6._0x3d9ee1);}function _0x144070(_0x2515f1,_0x626d49,_0x59eb9f,_0x4ca0d3){return _0xa5ea49(_0x4ca0d3,_0x626d49-0x11d,_0x626d49- -0x469,_0x4ca0d3-0x75);}return{'accept':_0x47d3f1(-0x25f,-0x17b,-0x17d,-0xbf),'body':createResponsesRequestBody(_0x4ca784,!![],_0x5835dc[_0x144070(0x1c4,_0x341e7a._0x2fe52e,_0x341e7a._0x2d4d1b,0x174)]),'path':_0x3378f9};},'createStreamParser'(_0x30884e){return new OpenAiResponsesStreamParser(_0x30884e);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0xa5ea49(0x6ae,_0x4d5c0a._0x2716c9,0x5c9,_0x4d5c0a._0x2c44b6),'createRequest'(_0x25f324){const _0x59d521={_0x58adf4:0x466};function _0x58603d(_0x47073e,_0x2ce573,_0xa3f629,_0x39b1b9){return _0xa5ea49(_0x39b1b9,_0x2ce573-0xb6,_0x47073e- -_0x59d521._0x58adf4,_0x39b1b9-0x139);}return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x25f324,{'promptCacheKey':_0x5835dc[_0x58603d(_0x18a9d1._0x173264,_0x18a9d1._0x43f1a6,0x49,0x195)]?.(_0x25f324)}),'path':_0x3378f9};},'createStreamParser'(_0x2ea680){return createOpenAiResponsesStreamParser(_0x2ea680);}}];}var OpenAiProviderAdapter=class{['headerResolver'];constructor(_0x45947a){this['headerResolver']=_0x45947a;}[_0x101ac3(0x5de,0x5b7,0x713,0x60b)](){const _0x47597c={_0x574f8e:0x40b,_0x576d30:0x34e,_0x3938eb:0x2d7,_0x41ddda:0x2aa},_0x287559={_0xa7058a:0x3c,_0x31b156:0x250,_0x4c0564:0x35};function _0x2fbef7(_0x116eec,_0x584b90,_0x5110db,_0x215db9){return _0x22bdb8(_0x116eec-_0x287559._0xa7058a,_0x584b90-_0x287559._0x31b156,_0x215db9,_0x215db9-_0x287559._0x4c0564);}return new Error(_0x2fbef7(_0x47597c._0x574f8e,_0x47597c._0x576d30,_0x47597c._0x3938eb,_0x47597c._0x41ddda));}async[_0x101ac3(0x5a8,0x68d,0x69b,0x663)](_0x70fad4,_0x1c665c){const _0x173243={_0x148366:0x310,_0x549b7b:0x40d,_0x5234f5:0x58a,_0x5c73b0:0x43b,_0x3b8b92:0x4f0,_0x46f866:0x403,_0x467807:0x4e5,_0x9523d1:0x5bf,_0x37e503:0x52b,_0x27ff0e:0x412,_0x1201f5:0x478,_0x521d6c:0x3c6,_0x33f02b:0x51f,_0xc3db7a:0x616,_0x5eca4f:0x498,_0x4adf4c:0x4cb,_0x27a9ba:0x38a,_0x5195d0:0x3f3,_0x1d386c:0x474,_0x345c3c:0x485,_0x26ef17:0x644,_0x186d44:0x4c0,_0x170e18:0x340,_0x5c2994:0x37b,_0x2a4f86:0x43d,_0x5e5cec:0x40d,_0xd3dd1d:0x4d0,_0x56e13e:0x49b,_0x2b97b3:0x3cc,_0x1fc69d:0x278,_0x5cff0d:0x372},_0x20aa8a={_0x5ccaa8:0x66},_0x2d2f59={_0x4e1df6:0x1e5};function _0x10640a(_0x4ad58c,_0x4cfcd6,_0x32dbe2,_0x1dc17f){return _0x22bdb8(_0x4ad58c-_0x2d2f59._0x4e1df6,_0x4ad58c-0x3c6,_0x1dc17f,_0x1dc17f-0x22);}const _0x24f6df=new Headers();_0x24f6df[_0x10640a(0x403,_0x173243._0x148366,_0x173243._0x549b7b,0x46e)](_0x1d7ac3(_0x173243._0x5234f5,0x5b8,0x4cb,0x4f0),_0x1c665c[_0x1d7ac3(_0x173243._0x5c73b0,0x435,0x43c,_0x173243._0x3b8b92)]),_0x24f6df[_0x10640a(_0x173243._0x46f866,0x3a5,0x4fd,0x3f3)](_0x1d7ac3(_0x173243._0x467807,_0x173243._0x9523d1,0x521,_0x173243._0x37e503),_0x10640a(0x4a1,0x40d,_0x173243._0x27ff0e,_0x173243._0x1201f5)+_0x70fad4[_0x1d7ac3(0x489,0x45d,_0x173243._0x521d6c,0x43d)][_0x10640a(_0x173243._0x33f02b,0x520,_0x173243._0xc3db7a,_0x173243._0x5eca4f)]);function _0x1d7ac3(_0x66ff35,_0x5ee1eb,_0x3dd452,_0x9e2a4b){return _0x22bdb8(_0x66ff35-0x1ec,_0x9e2a4b-0x335,_0x5ee1eb,_0x9e2a4b-_0x20aa8a._0x5ccaa8);}_0x1c665c['includeContentType']!==![]&&_0x24f6df[_0x10640a(_0x173243._0x46f866,_0x173243._0x4adf4c,_0x173243._0x27a9ba,_0x173243._0x5195d0)](_0x10640a(0x575,_0x173243._0x1d386c,_0x173243._0x345c3c,_0x173243._0x26ef17),'application/json');const _0x51998a=await this['headerResolver']?.({'body':_0x70fad4[_0x1d7ac3(_0x173243._0x186d44,_0x173243._0x170e18,0x3ad,0x423)],'credential':_0x70fad4[_0x1d7ac3(_0x173243._0x5c2994,0x39a,0x343,_0x173243._0x2a4f86)],'request':_0x70fad4[_0x1d7ac3(_0x173243._0x5e5cec,_0x173243._0xd3dd1d,0x353,0x3d4)],'session':_0x70fad4['session'],'stream':_0x70fad4['stream']});for(const [_0xf05b73,_0x35a19d]of Object[_0x1d7ac3(_0x173243._0x56e13e,0x398,0x49f,_0x173243._0x2b97b3)](_0x51998a??{})){_0x24f6df[_0x1d7ac3(_0x173243._0x1fc69d,0x3ce,0x2cf,_0x173243._0x5cff0d)](_0xf05b73,_0x35a19d);}return _0x24f6df;}[_0x22bdb8(0x5f,0x10f,0x13c,0x116)](_0x14a72b){return _0x14a72b;}['resolveBaseUrl'](_0x5ee5b2,_0x183361){return resolveSessionBaseUrl(_0x5ee5b2,_0x183361);}[_0x22bdb8(0x18a,0x141,0x218,0x13e)](_0xa3699c,_0x5b7569){return resolveApiCredential(_0xa3699c,_0x5b7569);}async[_0x22bdb8(0x2e5,0x1f3,0x13c,0x167)](_0x6b2f47){return await createOpenAiApiError(_0x6b2f47);}},OpenAiModel=class extends RoutedModel{[_0x22bdb8(0x1b,0x98,0x117,0x12c)]=new Map();['promptCacheKeyResolver'];[_0x101ac3(0x501,0x5c5,0x5b8,0x597)];['chatCompletionsPath'];[_0x101ac3(0x64f,0x615,0x5ff,0x5d9)];constructor(_0x5f5739={}){const _0x3aae2b={_0x4318b2:0x63,_0x4704e9:0x3e,_0x25042c:0xe0,_0x1542c9:0x260,_0x590900:0x280,_0x555e3d:0x32d,_0x16c90e:0x2f4,_0x455e04:0x413,_0x2fa421:0x454,_0x5439df:0x4fc,_0x1298bb:0x4be,_0x5b95b5:0x4be,_0x6e9392:0x44a,_0x2ebdf0:0x185,_0x3080c7:0x551,_0x1131aa:0x45e,_0x5249ca:0x425,_0x59fa39:0x234,_0x5b495b:0x23f,_0x5d46cf:0xbc,_0x378234:0x38b,_0x2caf51:0x43e,_0x45a09e:0x389,_0x4f1a60:0x7f,_0x26fea0:0x114,_0x20d177:0x15e,_0x6db9b6:0x16c,_0x2aa266:0x4c,_0x103ed0:0x10,_0x41711d:0x6b,_0x3443a5:0x406,_0x7fe7cf:0x4ff,_0x37857a:0x284,_0x4a878e:0x92,_0x1fd42b:0x194,_0x9b9e45:0x1c3,_0xffe55c:0x13c,_0x2e21aa:0x538,_0x568afe:0x3bc,_0x41d211:0x55c,_0x3c3fe6:0x551,_0x417e77:0x3d4,_0x141822:0x460,_0x1c9289:0x3e4,_0x3d5cbe:0x498,_0x44cdeb:0x428,_0xc11a47:0x3aa},_0x476006={_0x265f39:0x2,_0x39d6fb:0x1f8},_0x230460={_0x40b8c1:0x13a,_0x441136:0x2d},_0x3bc91c=_0x5f5739[_0x12ba4f(-_0x3aae2b._0x4318b2,_0x3aae2b._0x4704e9,-_0x3aae2b._0x25042c,-0x54)]??_0x8eabde(_0x3aae2b._0x1542c9,_0x3aae2b._0x590900,_0x3aae2b._0x555e3d,_0x3aae2b._0x16c90e);function _0x8eabde(_0x255088,_0x3768d7,_0x12d09f,_0x4eca75){return _0x22bdb8(_0x255088-_0x230460._0x40b8c1,_0x12d09f-0x2ef,_0x3768d7,_0x4eca75-_0x230460._0x441136);}const _0x3c1f6e=_0x5f5739[_0x8eabde(_0x3aae2b._0x455e04,_0x3aae2b._0x2fa421,0x486,_0x3aae2b._0x5439df)]??_0x8eabde(_0x3aae2b._0x1298bb,_0x3aae2b._0x5b95b5,0x4f0,_0x3aae2b._0x6e9392),_0x4c2a5f=_0x5f5739[_0x12ba4f(-0x46,-0x154,-_0x3aae2b._0x2ebdf0,-0xbf)]??_0x8eabde(0x4d7,_0x3aae2b._0x3080c7,0x496,_0x3aae2b._0x1131aa);super({'apiKey':_0x5f5739[_0x8eabde(_0x3aae2b._0x5249ca,0x37d,0x3c3,0x31f)],'baseUrl':trimTrailingSlashes(_0x5f5739['baseUrl']??_0x12ba4f(-_0x3aae2b._0x59fa39,-_0x3aae2b._0x5b495b,-_0x3aae2b._0x5d46cf,-0x134)),'fetch':_0x5f5739[_0x8eabde(0x2cc,0x3a9,0x3b7,_0x3aae2b._0x378234)],..._0x5f5739['maxTokens']!==void 0x0?{'maxTokens':_0x5f5739[_0x8eabde(0x240,0x30a,0x33d,0x327)]}:{},'model':_0x3bc91c,'modelIdentity':_0x5f5739['modelIdentity'],..._0x5f5739[_0x8eabde(_0x3aae2b._0x2caf51,0x465,_0x3aae2b._0x45a09e,0x3fb)]!==void 0x0?{'pricingProviderId':_0x5f5739[_0x12ba4f(-0x16a,-_0x3aae2b._0x4f1a60,-_0x3aae2b._0x26fea0,-_0x3aae2b._0x20d177)]}:{},'reasoning':_0x5f5739[_0x12ba4f(-_0x3aae2b._0x6db9b6,-0x167,-_0x3aae2b._0x2aa266,-0x121)],'providerAdapter':new OpenAiProviderAdapter(_0x5f5739[_0x12ba4f(-0x5a,-_0x3aae2b._0x103ed0,-_0x3aae2b._0x41711d,-0x98)]),'providerSessionResolver':_0x5f5739[_0x8eabde(0x4c4,0x36c,_0x3aae2b._0x3443a5,_0x3aae2b._0x7fe7cf)],'requestMutators':_0x5f5739[_0x8eabde(0x2e1,0x44d,0x352,_0x3aae2b._0x37857a)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x5f5739[_0x12ba4f(-0x110,-0xb1,-0xc4,-_0x3aae2b._0x4a878e)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x3c1f6e,'promptCacheKeyResolver':_0x5f5739['promptCacheKeyResolver'],'responsesPath':_0x4c2a5f}),'webSocketFactory':_0x5f5739[_0x12ba4f(-0xd0,-_0x3aae2b._0x1fd42b,-_0x3aae2b._0x9b9e45,-_0x3aae2b._0xffe55c)]}),this[_0x8eabde(0x3a9,_0x3aae2b._0x2e21aa,0x486,_0x3aae2b._0x568afe)]=_0x3c1f6e;function _0x12ba4f(_0x57ed3a,_0x4a99e8,_0x2270d0,_0x205e19){return _0x22bdb8(_0x57ed3a-_0x476006._0x265f39,_0x205e19- -_0x476006._0x39d6fb,_0x57ed3a,_0x205e19-0x134);}this['forceStreaming']=_0x5f5739['forceStreaming']??![],this[_0x8eabde(0x46f,_0x3aae2b._0x41d211,0x460,_0x3aae2b._0x3c3fe6)]=_0x5f5739[_0x8eabde(_0x3aae2b._0x417e77,0x375,_0x3aae2b._0x141822,_0x3aae2b._0x1c9289)],this[_0x8eabde(_0x3aae2b._0x3d5cbe,0x371,_0x3aae2b._0x44cdeb,_0x3aae2b._0xc11a47)]=_0x4c2a5f;}[_0x101ac3(0x497,0x4fd,0x461,0x4aa)](_0x172cd1,_0x309efd){const _0x2521af={_0x189c2:0x8d,_0x5c8b4c:0x60,_0x53a45a:0x12d,_0x80c50b:0x2d1},_0x2f5c30={_0x3612f4:0x14d,_0x441376:0x1bb},_0x4ed3f1={_0x274b92:0x1a7,_0x14e7da:0x12f};function _0x227ae3(_0xf1ed02,_0x199e81,_0x303bfb,_0x13ab61){return _0x22bdb8(_0xf1ed02-0x106,_0xf1ed02- -_0x4ed3f1._0x274b92,_0x303bfb,_0x13ab61-_0x4ed3f1._0x14e7da);}function _0x1cfe75(_0x2c895f,_0x20b820,_0x17bb55,_0x5c32b8){return _0x22bdb8(_0x2c895f-_0x2f5c30._0x3612f4,_0x5c32b8-_0x2f5c30._0x441376,_0x20b820,_0x5c32b8-0x4);}return this[_0x227ae3(0x78,_0x2521af._0x189c2,_0x2521af._0x5c8b4c,_0x2521af._0x53a45a)](_0x172cd1,this[_0x1cfe75(_0x2521af._0x80c50b,0x363,0x231,0x2b2)]?OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE:OPENAI_CHAT_COMPLETIONS_SURFACE,_0x309efd);}[_0x101ac3(0x5f3,0x6d8,0x764,0x67f)](_0xf04c0,_0x3b8b30){const _0x488c65={_0x49bd36:0xc9,_0x481676:0x132,_0xf3593f:0x120,_0x48e325:0x18a},_0x40ac98={_0x4826d7:0x3b,_0x2cfad5:0xb3},_0x228459={_0xa7588:0xb5,_0x44ce08:0x50d};function _0xfb2a7(_0x1f7602,_0x2d98f9,_0x1a5ccb,_0x241b30){return _0x101ac3(_0x1f7602-0xe1,_0x2d98f9-_0x228459._0xa7588,_0x241b30,_0x2d98f9- -_0x228459._0x44ce08);}function _0x4bfbb0(_0x2e1d58,_0x3af7fb,_0x3ba27f,_0x3641c1){return _0x22bdb8(_0x2e1d58-0x113,_0x2e1d58-_0x40ac98._0x4826d7,_0x3641c1,_0x3641c1-_0x40ac98._0x2cfad5);}return this[_0xfb2a7(0xf6,0x1b2,_0x488c65._0x49bd36,0x12b)](_0xf04c0,this[_0x4bfbb0(_0x488c65._0x481676,0x100,_0x488c65._0xf3593f,_0x488c65._0x48e325)]?OPENAI_RESPONSES_STREAM_SURFACE:OPENAI_RESPONSES_SURFACE,_0x3b8b30);}[_0x22bdb8(0x12e,0x71,-0x97,0xff)](_0x3ae5a4,_0x1024f9){const _0x4d8115={_0x55d52a:0x712,_0x1dbe6c:0x84f},_0x19d107={_0x4544cd:0x546,_0x33019e:0x1d6};function _0x4abf18(_0x5e2adf,_0x31e5e7,_0x58be16,_0x3fc694){return _0x22bdb8(_0x5e2adf-0x1e1,_0x58be16-_0x19d107._0x4544cd,_0x3fc694,_0x3fc694-_0x19d107._0x33019e);}return this[_0x4abf18(_0x4d8115._0x55d52a,0x72b,0x765,_0x4d8115._0x1dbe6c)](_0x3ae5a4,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x1024f9);}[_0x22bdb8(0x18f,0x1d9,0x207,0xd7)](_0x34c2fe,_0x31bf7e){const _0x5a516e={_0x52069f:0x54,_0x5651e3:0x4a,_0x3e9129:0x3c};function _0xa96ddf(_0x2e273f,_0x137597,_0x14728a,_0x242a46){return _0x22bdb8(_0x2e273f-_0x5a516e._0x52069f,_0x137597-_0x5a516e._0x5651e3,_0x242a46,_0x242a46-_0x5a516e._0x3e9129);}return this[_0xa96ddf(0x177,0x1a5,0x237,0x105)](_0x34c2fe,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x31bf7e);}['streamViaResponsesSurface'](_0x1d2e0e,_0xf38e48){const _0x5e05fd={_0x3e3fec:0x30b,_0x3ea8ed:0x269},_0x1d23f2={_0x5c169e:0x1c9,_0x2b3532:0xbb};function _0x127b32(_0xbf494b,_0x340654,_0x3ea6b6,_0x2abdcb){return _0x101ac3(_0xbf494b-_0x1d23f2._0x5c169e,_0x340654-_0x1d23f2._0x2b3532,_0x2abdcb,_0x3ea6b6- -0x2f0);}return this[_0x127b32(0x27f,0x277,_0x5e05fd._0x3e3fec,_0x5e05fd._0x3ea8ed)](_0x1d2e0e,OPENAI_RESPONSES_STREAM_SURFACE,_0xf38e48);}[_0x22bdb8(0x91,0x22,0xa8,0x12c)](_0x15f934,_0x1cd9a9){const _0x5f41a0={_0x5af09f:0x54a,_0x846e1:0x537},_0x216702={_0xbe4b65:0x172,_0x1711c7:0x429,_0x50d8f8:0x10c};function _0x199217(_0x3f04bf,_0x2d3513,_0xb378ed,_0x17b872){return _0x22bdb8(_0x3f04bf-_0x216702._0xbe4b65,_0xb378ed-_0x216702._0x1711c7,_0x3f04bf,_0x17b872-_0x216702._0x50d8f8);}return this[_0x199217(_0x5f41a0._0x5af09f,_0x5f41a0._0x846e1,0x584,0x4ba)](_0x15f934,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x1cd9a9);}async[_0x101ac3(0x51c,0x499,0x4a3,0x58d)](_0x40c11e,_0x2bbf02){const _0x531eff={_0x2a8936:0x17c,_0x31e067:0x25};function _0x54c2d3(_0x3ddb9d,_0x38bc46,_0x56d6c3,_0x2f87e0){return _0x22bdb8(_0x3ddb9d-0x1a2,_0x2f87e0- -0x94,_0x38bc46,_0x2f87e0-0x28);}try{return await this[_0x54c2d3(-_0x531eff._0x2a8936,-_0x531eff._0x31e067,-0xa6,-0x8a)](_0x40c11e,_0x2bbf02);}catch(_0x21d08c){if(_0x21d08c instanceof OpenAiApiError)throw this['mapApiError'](_0x21d08c);throw _0x21d08c;}}async['response'](_0x3f0ae8,_0x2132ac){const _0x258383={_0x37557f:0xd7,_0x1031a4:0x119,_0x5e78e7:0x575},_0x483c4b={_0x36c617:0x167,_0x231ada:0x5f},_0x2010ab={_0x25dabb:0x4b};function _0x1b52d1(_0x3e20ae,_0x4b92a3,_0x3ec563,_0x3579e5){return _0x22bdb8(_0x3e20ae-0xde,_0x3579e5-0x466,_0x3ec563,_0x3579e5-_0x2010ab._0x25dabb);}function _0x7059f(_0x158a7f,_0x3161fe,_0x1c33bd,_0x4c9d41){return _0x22bdb8(_0x158a7f-0x3f,_0x158a7f- -_0x483c4b._0x36c617,_0x1c33bd,_0x4c9d41-_0x483c4b._0x231ada);}try{return await this[_0x7059f(0x78,0xf6,_0x258383._0x37557f,_0x258383._0x1031a4)](_0x3f0ae8,_0x2132ac);}catch(_0x50d857){if(_0x50d857 instanceof OpenAiApiError)throw this[_0x1b52d1(0x4e9,0x571,0x5bc,_0x258383._0x5e78e7)](_0x50d857);throw _0x50d857;}}async[_0x22bdb8(-0xb,0xf6,0xb1,0x5c)](_0x332472,_0x1e1a81){const _0x4e0d5f={_0x309ab0:0x38c,_0x338f60:0x3a0,_0x572500:0x340,_0x2a049b:0x3b0,_0x32b4dc:0x32e,_0x4f4f9d:0x16f,_0x7d916e:0x2ef,_0x33863e:0x135},_0x380015={_0x3a95e0:0xfe,_0x1fd0a1:0x1ad},_0x2b35e7={_0xc9c31c:0x201,_0x27e757:0x2};function _0x322767(_0x21b35b,_0x5b2270,_0x2bba22,_0x1af6e8){return _0x22bdb8(_0x21b35b-0x5e,_0x1af6e8-_0x2b35e7._0xc9c31c,_0x21b35b,_0x1af6e8-_0x2b35e7._0x27e757);}function _0x5dfe7e(_0x1ace96,_0x218cc2,_0x560d9a,_0x429bbf){return _0x101ac3(_0x1ace96-_0x380015._0x3a95e0,_0x218cc2-_0x380015._0x1fd0a1,_0x218cc2,_0x1ace96- -0x286);}try{let _0x3cd591;for await(const _0x113375 of this[_0x5dfe7e(0x3bb,_0x4e0d5f._0x309ab0,_0x4e0d5f._0x338f60,0x410)](_0x332472,_0x1e1a81)){_0x113375[_0x5dfe7e(_0x4e0d5f._0x572500,_0x4e0d5f._0x2a049b,_0x4e0d5f._0x32b4dc,0x26f)]==='done'&&(_0x3cd591=_0x113375['response']);}if(!_0x3cd591)throw new Error(_0x322767(_0x4e0d5f._0x4f4f9d,_0x4e0d5f._0x7d916e,_0x4e0d5f._0x33863e,0x234));return _0x3cd591;}catch(_0x2273ef){if(_0x2273ef instanceof OpenAiApiError)throw this['mapApiError'](_0x2273ef);throw _0x2273ef;}}async*[_0x101ac3(0x6da,0x772,0x6cd,0x67a)](_0xa58d71,_0x254c8c){const _0x2ac1d2={_0x51d496:0x5a,_0x2a0ed5:0x27,_0x48b1be:0x1e,_0x3e510a:0xa1},_0x4e6f6e={_0x1761eb:0x1ce,_0x1a9cea:0xf1},_0x3a24ea={_0x523a8f:0x1af,_0x320d9d:0xdf,_0x37bea4:0x61f};function _0x18ef7f(_0x49a1df,_0x1a0485,_0x3c7f40,_0x380405){return _0x101ac3(_0x49a1df-_0x3a24ea._0x523a8f,_0x1a0485-_0x3a24ea._0x320d9d,_0x1a0485,_0x49a1df- -_0x3a24ea._0x37bea4);}function _0x585b7f(_0x4222f9,_0x306bec,_0x392adc,_0x555ac1){return _0x22bdb8(_0x4222f9-_0x4e6f6e._0x1761eb,_0x392adc- -_0x4e6f6e._0x1a9cea,_0x555ac1,_0x555ac1-0x2f);}try{yield*this[_0x18ef7f(_0x2ac1d2._0x51d496,0x163,-_0x2ac1d2._0x2a0ed5,0x54)](_0xa58d71,_0x254c8c);}catch(_0x443882){if(_0x443882 instanceof OpenAiApiError)throw this[_0x585b7f(0x71,0xa3,_0x2ac1d2._0x48b1be,-_0x2ac1d2._0x3e510a)](_0x443882);throw _0x443882;}}async*[_0x22bdb8(0x12f,0x222,0x230,0x2b3)](_0x2464d7,_0x1cfc91){const _0x1ea7f8={_0x511086:0x7a7,_0x2ea54b:0x6fb,_0x3a64b0:0x5ad,_0x5b53b0:0x55f},_0x35014a={_0x25139e:0x137,_0x1c0ee3:0x49e},_0x457c77={_0x1a06e7:0xf6,_0x276068:0xaa};function _0x2f7089(_0x372bed,_0x443a8d,_0x3cb8da,_0x3afdc9){return _0x101ac3(_0x372bed-_0x457c77._0x1a06e7,_0x443a8d-0x17d,_0x3cb8da,_0x3afdc9-_0x457c77._0x276068);}function _0x49afa2(_0x33f4af,_0x1bbb2d,_0x98f2c1,_0x3059d4){return _0x22bdb8(_0x33f4af-_0x35014a._0x25139e,_0x1bbb2d-_0x35014a._0x1c0ee3,_0x33f4af,_0x3059d4-0xc0);}try{yield*this[_0x2f7089(0x72f,_0x1ea7f8._0x511086,_0x1ea7f8._0x2ea54b,0x703)](_0x2464d7,_0x1cfc91);}catch(_0x5b99c7){if(_0x5b99c7 instanceof OpenAiApiError)throw this[_0x49afa2(0x66e,_0x1ea7f8._0x3a64b0,0x5ad,_0x1ea7f8._0x5b53b0)](_0x5b99c7);throw _0x5b99c7;}}async*['responseSocketStream'](_0x52aa9b,_0x581543){const _0x4389fa={_0x48e07e:0x74f,_0x564f14:0x6a1,_0x344e87:0x5f4,_0x5ed68e:0x360,_0x3554bc:0x2f2,_0x334981:0x32b},_0xbb614c={_0x774ed6:0xf1,_0x5b03d1:0x2f,_0x105143:0x284},_0x353516={_0x1fd139:0x16};function _0x9b6939(_0x5343f2,_0x282c07,_0x5efd7e,_0x44884c){return _0x101ac3(_0x5343f2-0x13f,_0x282c07-_0x353516._0x1fd139,_0x5efd7e,_0x282c07-0xa7);}function _0x49c614(_0xbe6309,_0x4d4b34,_0x96a1c7,_0x158cfd){return _0x101ac3(_0xbe6309-_0xbb614c._0x774ed6,_0x4d4b34-_0xbb614c._0x5b03d1,_0xbe6309,_0x158cfd- -_0xbb614c._0x105143);}try{yield*this[_0x9b6939(_0x4389fa._0x48e07e,_0x4389fa._0x564f14,_0x4389fa._0x344e87,0x736)](_0x52aa9b,_0x581543);}catch(_0x1a3222){if(_0x1a3222 instanceof OpenAiApiError)throw this[_0x49c614(_0x4389fa._0x5ed68e,_0x4389fa._0x3554bc,0x298,_0x4389fa._0x334981)](_0x1a3222);throw _0x1a3222;}}[_0x22bdb8(0x167,0x1fd,0x167,0x137)](_0x1e6f7a,_0x42fe34){const _0x1ed776={_0x4d6adf:0x23b,_0x40acad:0x145},_0x19d950={_0xc612fa:0xa2,_0x2b34fe:0x58};function _0x32cc10(_0x211e79,_0x2f2fb4,_0x49f094,_0xf14ead){return _0x22bdb8(_0x211e79-_0x19d950._0xc612fa,_0xf14ead-_0x19d950._0x2b34fe,_0x2f2fb4,_0xf14ead-0xc9);}return this[_0x32cc10(0x144,_0x1ed776._0x4d6adf,0x1f0,_0x1ed776._0x40acad)](_0x1e6f7a,_0x42fe34);}['stream'](_0x27e521,_0x4e86e8){return this['chatStream'](_0x27e521,_0x4e86e8);}['getResponsesSocketSessionState'](_0x11ef54){const _0x29a849={_0x356952:0x2fd,_0x1b14b6:0x2c1,_0x2c7e3b:0x34d,_0x8db1bd:0x31f,_0x1f60db:0x38f,_0x1cba1c:0x294,_0x1481b1:0x466,_0x60813b:0x4e1,_0x469363:0x4d4,_0x5d0274:0x331,_0x122020:0x2ab,_0x4516c9:0x381,_0x219942:0x219,_0x4e7f09:0x2eb,_0x258701:0x355},_0x31e215={_0x5d7ccb:0x116,_0x23c081:0xa2},_0x366cc3={_0x2c6c55:0x385};function _0x1814a9(_0x5332db,_0x338d92,_0xc698f3,_0xf31e4a){return _0x22bdb8(_0x5332db-0x111,_0xf31e4a-_0x366cc3._0x2c6c55,_0xc698f3,_0xf31e4a-0x84);}const _0x3022d2=this[_0x54fe96(_0x29a849._0x356952,_0x29a849._0x1b14b6,_0x29a849._0x2c7e3b,0x301)](_0x11ef54);let _0x55b11f=this[_0x54fe96(_0x29a849._0x8db1bd,0x23a,_0x29a849._0x1f60db,_0x29a849._0x1cba1c)][_0x54fe96(0x471,_0x29a849._0x1481b1,_0x29a849._0x60813b,_0x29a849._0x469363)](_0x3022d2);!_0x55b11f&&(_0x55b11f={'key':_0x3022d2,'locked':![],'pending':Promise[_0x54fe96(0x327,_0x29a849._0x5d0274,0x3a3,_0x29a849._0x122020)]()},this[_0x54fe96(0x31f,_0x29a849._0x4516c9,0x31a,_0x29a849._0x219942)][_0x54fe96(0x2c4,0x3cf,_0x29a849._0x4e7f09,_0x29a849._0x258701)](_0x3022d2,_0x55b11f));function _0x54fe96(_0x73bca,_0x51965f,_0x36464b,_0x3c4e6a){return _0x101ac3(_0x73bca-_0x31e215._0x5d7ccb,_0x51965f-_0x31e215._0x23c081,_0x36464b,_0x73bca- -0x219);}return _0x55b11f;}[_0x101ac3(0x646,0x506,0x4f5,0x59d)](_0xff311b){const _0xad070e={_0x64a1fa:0x50a,_0x568849:0x141,_0x4d6f65:0xf8,_0x4c76a5:0x137,_0x18f90b:0x43,_0xb7b35:0x50d,_0x34ec4e:0x417,_0x4e5290:0x3d2,_0x1724f5:0x3eb},_0x273aef={_0x2f25ce:0x630};if(_0xff311b['locked']||_0xff311b['connecting']||_0xff311b[_0x147102(0x4e9,0x40f,0x447,_0xad070e._0x64a1fa)])return;function _0x147102(_0x3dc49a,_0x451c1e,_0x2a792b,_0x3bf726){return _0x101ac3(_0x3dc49a-0xc2,_0x451c1e-0x8,_0x3dc49a,_0x451c1e- -0x1c7);}function _0x203222(_0x218306,_0x5af5fa,_0x2e1939,_0x40aa37){return _0x101ac3(_0x218306-0xaf,_0x5af5fa-0x21,_0x2e1939,_0x5af5fa- -_0x273aef._0x2f25ce);}this[_0x203222(-_0xad070e._0x568849,-_0xad070e._0x4d6f65,-0x103,-0x130)]['get'](_0xff311b[_0x203222(-_0xad070e._0x4c76a5,-0xee,-0x22,-0x1d2)])===_0xff311b&&this[_0x203222(-0x184,-_0xad070e._0x4d6f65,-0x62,-_0xad070e._0x18f90b)][_0x147102(_0xad070e._0xb7b35,0x48f,_0xad070e._0x34ec4e,0x3fc)](_0xff311b[_0x147102(_0xad070e._0x4e5290,0x37b,_0xad070e._0x1724f5,0x393)]);}[_0x22bdb8(0x3b,0x76,0x10f,0x108)](_0xdb2ee0){const _0x3288b4={_0x1595ae:0x434},_0x18672c={_0xaa72d8:0x13b};function _0x4df5e9(_0x2774c3,_0x1b5f55,_0xf26a6b,_0x216738){return _0x101ac3(_0x2774c3-_0x18672c._0xaa72d8,_0x1b5f55-0xb7,_0x1b5f55,_0x216738- -0x183);}return''+trimTrailingSlashes(this[_0x4df5e9(0x3a0,0x356,_0x3288b4._0x1595ae,0x437)])+this['responsesPath']+'::'+_0xdb2ee0;}async[_0x22bdb8(0x0,0xe3,0xa0,0x11)](_0x1cfc9b){const _0x388bf6={_0x13f94f:0x4b6,_0x441b60:0x3a3,_0x312e6b:0x3b7,_0x1ed95d:0x23e,_0xd06828:0x1ce,_0x27e695:0x281,_0x2ede5c:0x1e5,_0x3b8137:0x26d,_0x53ed6b:0x3ee},_0x161a78={_0x248028:0x4dd,_0x401e2a:0x56b},_0x47dfe7={_0x1cc3ba:0x163,_0x26a80f:0x56};function _0x289064(_0x5c7263,_0x1668b9,_0x52713c,_0x445831){return _0x22bdb8(_0x5c7263-_0x47dfe7._0x1cc3ba,_0x445831-0xaa,_0x5c7263,_0x445831-_0x47dfe7._0x26a80f);}const _0x1f45a3=_0x1cfc9b[_0x12a367(_0x388bf6._0x13f94f,_0x388bf6._0x441b60,_0x388bf6._0x312e6b,0x356)][_0x289064(0x206,_0x388bf6._0x1ed95d,_0x388bf6._0xd06828,_0x388bf6._0x27e695)](()=>{});function _0x12a367(_0x32fbc8,_0x286d2f,_0x40b998,_0x38066f){return _0x22bdb8(_0x32fbc8-0x97,_0x40b998-0x21c,_0x286d2f,_0x38066f-0x8a);}let _0x5178d5;const _0xcd4279=new Promise(_0x415a1a=>{_0x5178d5=_0x415a1a;});return _0x1cfc9b['pending']=_0x1f45a3[_0x289064(0x218,_0x388bf6._0x2ede5c,_0x388bf6._0x3b8137,0x2a6)](()=>_0xcd4279),await _0x1f45a3,_0x1cfc9b[_0x12a367(_0x388bf6._0x53ed6b,0x2f8,0x404,0x2fa)]=!![],()=>{const _0x315882={_0x28c0a2:0xe1,_0x3b0ba8:0x1,_0x34410c:0x352};function _0x23a05d(_0x34c7ac,_0xede1e5,_0x2e566a,_0x34fbe7){return _0x289064(_0x34c7ac,_0xede1e5-0x2c,_0x2e566a-0x2e,_0xede1e5-0xf3);}_0x1cfc9b[_0x41d297(0x5e4,_0x161a78._0x248028,0x50d,_0x161a78._0x401e2a)]=![],_0x5178d5?.();function _0x41d297(_0x1d4cb9,_0x162544,_0x54321e,_0x5aba88){return _0x289064(_0x5aba88,_0x162544-_0x315882._0x28c0a2,_0x54321e-_0x315882._0x3b0ba8,_0x1d4cb9-_0x315882._0x34410c);}this[_0x41d297(0x4f9,0x4aa,0x431,0x41b)](_0x1cfc9b);};}async[_0x101ac3(0x63a,0x5fb,0x78a,0x697)](_0x4de787,_0x120aa7){const _0x45311c={_0x5e8e73:0x14a,_0x12bd3b:0x6c,_0x4b885d:0x104,_0xff0655:0x4f,_0x19d09d:0xd0,_0x5bdc8b:0x9,_0x1cc9a8:0xed,_0x48d12b:0x78,_0x3e416c:0x2e,_0x3f03c3:0x132,_0x3012f1:0x15,_0x6b2503:0x69,_0x5487fa:0x21,_0x2902a5:0xb8,_0xe13715:0x36,_0x18a03e:0xf5,_0x13f765:0x72,_0x3cc238:0x65,_0x2bbf31:0x5c,_0x41a138:0x39,_0x166f9c:0xb8,_0x5db6aa:0x3d,_0x557eee:0x22,_0x1282f6:0xef,_0x134164:0x6a},_0x122561={_0x5ee871:0x22e,_0x4096e9:0x121},_0x4ff402={_0x44191c:0x102,_0x5d7135:0xc2},_0x166911=this[_0x33e33c(-0x12c,-0x12a,-_0x45311c._0x5e8e73,-0x22f)](_0x4de787),_0xe063ca=toModelRequest(_0x166911),_0x39c817=await prepareProviderRequest(_0xe063ca,{'sessionManager':this['sessionManager'],'requestMutators':this[_0x418ea2(-0x7e,-_0x45311c._0x12bd3b,-0x9f,-0x12b)],'signal':_0x120aa7}),_0x1dfc58=this[_0x418ea2(0x1a6,0x1b7,_0x45311c._0x4b885d,_0x45311c._0xff0655)](toChatRequest(_0x39c817[_0x33e33c(-0x1b0,-0x20d,-0x18f,-0x18e)])),_0x2cae2e=this[_0x418ea2(0x48,-_0x45311c._0x19d09d,-0x36,-0x7b)][_0x33e33c(_0x45311c._0x5bdc8b,-0x14f,-_0x45311c._0x1cc9a8,_0x45311c._0x5bdc8b)](this[_0x418ea2(-0xa8,_0x45311c._0x48d12b,-_0x45311c._0x3e416c,-_0x45311c._0x3f03c3)],_0x39c817[_0x418ea2(0xb4,0x11b,0xef,_0x45311c._0x3012f1)]);function _0x418ea2(_0x8fb646,_0xf39179,_0x5794f8,_0x4be0d9){return _0x22bdb8(_0x8fb646-0x43,_0x5794f8- -_0x4ff402._0x44191c,_0xf39179,_0x4be0d9-_0x4ff402._0x5d7135);}if(!_0x2cae2e)throw this[_0x418ea2(0x121,0x60,_0x45311c._0x6b2503,_0x45311c._0x5487fa)]();function _0x33e33c(_0x4d2a38,_0x1474c0,_0x5a2479,_0x5be095){return _0x22bdb8(_0x4d2a38-0x1d3,_0x5a2479- -_0x122561._0x5ee871,_0x4d2a38,_0x5be095-_0x122561._0x4096e9);}return{'baseUrl':this[_0x418ea2(0x70,_0x45311c._0x2902a5,-_0x45311c._0xe13715,0xb9)][_0x33e33c(-_0x45311c._0x18a03e,-_0x45311c._0x13f765,-0x19,0x51)](this[_0x33e33c(-_0x45311c._0x3cc238,-_0x45311c._0x2bbf31,-0x114,-_0x45311c._0x41a138)],_0x39c817[_0x33e33c(-_0x45311c._0x166f9c,-0x146,-_0x45311c._0x5db6aa,-_0x45311c._0x557eee)]),'credential':_0x2cae2e,'request':_0x1dfc58,'session':_0x39c817[_0x418ea2(0x171,0x1b8,_0x45311c._0x1282f6,_0x45311c._0x134164)]};}['buildResponsesSocketEvent'](_0x3a0e54,_0x26ed57,_0x1f3568={}){const _0x15fd1b={_0x242bcb:0x312,_0x237d69:0x32c,_0x5780af:0x2f3,_0x119422:0x317,_0x49e438:0x319,_0x172e59:0x393,_0x28d627:0x5da,_0x113799:0x4da,_0x4e0648:0x324,_0x2d524c:0x422,_0x17c16c:0x4e7,_0x1818de:0x4bf,_0x12a39f:0x4df,_0x2ec15b:0x2e8,_0x4523dd:0x1f3,_0x440f98:0x67e,_0x28ed99:0x3ba,_0x12512e:0x705,_0x26507b:0x770,_0x4e3758:0x6c9},_0x26c4fb={_0x243c44:0x125},_0x360ae8={_0x23856d:0x2b,_0x599462:0x1d4};function _0x4f72f8(_0x20577c,_0x2b0dff,_0x2930b3,_0x5d2cd9){return _0x101ac3(_0x20577c-_0x360ae8._0x23856d,_0x2b0dff-0x33,_0x2930b3,_0x20577c- -_0x360ae8._0x599462);}function _0x26fb95(_0x528af3,_0x5d7a0e,_0x523fa2,_0x1613dd){return _0x22bdb8(_0x528af3-0x52,_0x528af3-0x50d,_0x5d7a0e,_0x1613dd-_0x26c4fb._0x243c44);}if(!_0x1f3568['forceFullReplay']){const _0x1c87db=this[_0x4f72f8(_0x15fd1b._0x242bcb,_0x15fd1b._0x237d69,_0x15fd1b._0x5780af,0x2f6)](_0x3a0e54);if(_0x1c87db&&_0x26ed57[_0x4f72f8(0x344,_0x15fd1b._0x119422,0x272,0x432)]&&_0x1c87db[_0x4f72f8(0x3aa,_0x15fd1b._0x49e438,_0x15fd1b._0x172e59,0x443)]===_0x26ed57[_0x26fb95(0x585,_0x15fd1b._0x28d627,0x5ba,0x5ab)]){const _0x1bf266=toOpenAiResponsesRequest({..._0x3a0e54,'messages':_0x3a0e54[_0x26fb95(0x5a3,0x4cf,0x523,_0x15fd1b._0x113799)][_0x4f72f8(0x384,_0x15fd1b._0x4e0648,0x44c,_0x15fd1b._0x2d524c)](_0x1c87db[_0x4f72f8(0x41c,_0x15fd1b._0x17c16c,_0x15fd1b._0x1818de,_0x15fd1b._0x12a39f)]+0x1)})[_0x4f72f8(_0x15fd1b._0x2ec15b,0x22a,0x2bf,_0x15fd1b._0x4523dd)];return{'event':createOpenAiResponsesWebSocketEvent(_0x3a0e54,{'input':_0x1bf266,'promptCacheKey':this[_0x26fb95(_0x15fd1b._0x440f98,0x672,0x69a,0x585)]?.(_0x3a0e54),'previousResponseId':_0x1c87db[_0x4f72f8(0x3aa,_0x15fd1b._0x28ed99,0x39d,0x3bb)]}),'previousResponseId':_0x1c87db['responseId']};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x3a0e54,{'promptCacheKey':this[_0x26fb95(0x67e,_0x15fd1b._0x12512e,_0x15fd1b._0x26507b,_0x15fd1b._0x4e3758)]?.(_0x3a0e54)})};}[_0x101ac3(0x59c,0x5d3,0x489,0x4e6)](_0x5798fb){const _0x439189={_0x205bcd:0x523,_0x36466d:0x3d3,_0x3905f7:0x232,_0x559a4b:0x245},_0x39d0b4={_0x2912bf:0x2bf,_0x166eb8:0x12c};function _0x2edfb7(_0x2a342f,_0x1f51b5,_0x499079,_0x4ca539){return _0x22bdb8(_0x2a342f-0x12b,_0x1f51b5-_0x39d0b4._0x2912bf,_0x4ca539,_0x4ca539-_0x39d0b4._0x166eb8);}function _0x52fe32(_0x17a3e5,_0x5e0fc0,_0x5def62,_0xd5124a){return _0x22bdb8(_0x17a3e5-0x68,_0x17a3e5- -0x18,_0x5def62,_0xd5124a-0xa4);}for(let _0x53af24=_0x5798fb['messages'][_0x2edfb7(_0x439189._0x205bcd,0x44b,_0x439189._0x36466d,0x41e)]-0x1;_0x53af24>=0x0;_0x53af24-=0x1){const _0x6b7e58=_0x5798fb[_0x2edfb7(0x345,0x355,0x2fa,0x261)][_0x53af24],_0x2d1375=_0x6b7e58['role']==='assistant'?_0x6b7e58['providerState']?.[_0x52fe32(0x1c0,0x133,_0x439189._0x3905f7,_0x439189._0x559a4b)]:void 0x0;if(_0x2d1375)return{'messageIndex':_0x53af24,'responseId':_0x2d1375};}return void 0x0;}[_0x22bdb8(0x273,0x1be,0xeb,0x1eb)](_0x219ca0){const _0x39ef19={_0x3a4373:0x341,_0x4bb1f9:0x258,_0x56097f:0x22a,_0x3d08b8:0x319,_0x1559d8:0x2aa,_0x28d70a:0x460,_0x18d2fe:0x4b1},_0x35712b={_0x411059:0x116,_0x228254:0x19,_0x20f253:0x2a7},_0x257b23={_0x17eb9d:0x30a};function _0xf94977(_0x4a6e08,_0x2b91a3,_0x95322e,_0x5ae4cb){return _0x101ac3(_0x4a6e08-0x14c,_0x2b91a3-0x111,_0x5ae4cb,_0x4a6e08- -_0x257b23._0x17eb9d);}function _0x1f9292(_0x4f79d2,_0x4c6a5c,_0x49dfab,_0x8cfb1b){return _0x101ac3(_0x4f79d2-_0x35712b._0x411059,_0x4c6a5c-_0x35712b._0x228254,_0x4c6a5c,_0x8cfb1b- -_0x35712b._0x20f253);}return _0x219ca0 instanceof ProviderStreamEventError&&(_0x219ca0[_0x1f9292(0x2b9,_0x39ef19._0x3a4373,0x279,0x2aa)]===_0x1f9292(0x352,0x2af,0x280,_0x39ef19._0x4bb1f9)||_0x219ca0[_0x1f9292(_0x39ef19._0x56097f,0x206,_0x39ef19._0x3d08b8,_0x39ef19._0x1559d8)]===_0x1f9292(_0x39ef19._0x28d70a,0x41b,_0x39ef19._0x18d2fe,0x3dd));}['invalidateResponsesSocketSession'](_0x3b8b47){const _0x4a9671={_0xf31bb5:0xdb,_0x2057a2:0x14b,_0x1f6839:0x3a,_0x4c57f3:0x186,_0x3eada2:0x1d,_0x5f4492:0x3d,_0x287f5f:0x70,_0x467c2c:0x13b,_0x17b756:0xad,_0x4983b2:0xe5,_0x2e9197:0x78,_0x149c13:0x3a3,_0x26c9c0:0x2a3},_0x43bee8={_0x558b01:0x1b5},_0x4714d3={_0x215513:0x68};function _0x37a818(_0x45b109,_0x111a65,_0x1343aa,_0x25033a){return _0x22bdb8(_0x45b109-0x8,_0x45b109-0x24e,_0x1343aa,_0x25033a-_0x4714d3._0x215513);}const _0x5b5575=_0x3b8b47[_0x1708de(_0x4a9671._0xf31bb5,_0x4a9671._0x2057a2,0x123,_0x4a9671._0x1f6839)];_0x3b8b47[_0x1708de(0xdb,0x1b4,0x36,_0x4a9671._0x4c57f3)]=void 0x0,_0x3b8b47['connecting']=void 0x0,_0x3b8b47[_0x1708de(_0x4a9671._0x3eada2,0xd,0x123,-_0x4a9671._0x5f4492)]=void 0x0;function _0x1708de(_0x3f8fea,_0x13db2f,_0xc43e51,_0x49df01){return _0x101ac3(_0x3f8fea-_0x43bee8._0x558b01,_0x13db2f-0xc8,_0x13db2f,_0x3f8fea- -0x4fb);}_0x5b5575?.[_0x1708de(0xf2,0xa4,_0x4a9671._0x287f5f,0x6d)]===WebSocket[_0x1708de(_0x4a9671._0x467c2c,0x163,_0x4a9671._0x17b756,0x228)]&&_0x5b5575[_0x1708de(0x15,0x112,-_0x4a9671._0x4983b2,_0x4a9671._0x2e9197)](0x3e8,_0x37a818(_0x4a9671._0x149c13,0x2d7,0x438,_0x4a9671._0x26c9c0));}async[_0x22bdb8(0x209,0x157,0x1c8,0x55)](_0x22421c,_0x32cbfe,_0x481871,_0x44ea12,_0x2b6751){const _0x3a0963={_0x22e748:0xbc,_0x52dc4:0x7,_0x36bfd1:0x1f9,_0x475a69:0x149,_0x50a022:0x181,_0x15bd92:0x63,_0x3ae1be:0xc5},_0xc40ed3={_0x2621df:0x57,_0x27bb7d:0x39,_0x55c6e5:0x1e,_0x140fbb:0x58e,_0x27abbc:0x554,_0x2ecc95:0x204,_0x375515:0x1cc,_0x4279a5:0x36,_0x98ff3:0x8e,_0x1fd053:0x3e,_0x16a23d:0x6fe,_0x3c1359:0x602,_0xcc3488:0xc3,_0x524af5:0x59,_0x1d7a53:0x4c,_0x167e94:0x143,_0x1dcd55:0x5d,_0x16f80e:0x4fe,_0x466e43:0x646,_0x407378:0x6bd,_0x77f287:0x5b4,_0x2af939:0x58f,_0x18e222:0x5be,_0x40fdce:0x599,_0x29eb61:0x59c,_0x5c1dcd:0x6ac,_0x2bea4d:0x5e2,_0x9cf6f7:0x10d,_0x1970a5:0x19a,_0xb224bb:0x4,_0x44ec1c:0x54d,_0x4748f2:0x4d6,_0xf20edb:0x4e4,_0x4901ff:0x4c1},_0x3fc4b4={_0x4c8e51:0x1a1,_0x3683a6:0x13d,_0x2e8243:0x4e9},_0x1adca0={_0x25397a:0x20},_0x1cf050={_0x7f3cf6:0x6b};function _0x427572(_0x3211c0,_0x14eb09,_0x554cd4,_0x12050d){return _0x22bdb8(_0x3211c0-_0x1cf050._0x7f3cf6,_0x14eb09- -0x91,_0x3211c0,_0x12050d-0x1a2);}if(_0x32cbfe[_0x427572(-0x45,0xa5,0x5c,0x10a)]?.[_0x427572(0xb2,_0x3a0963._0x22e748,-_0x3a0963._0x52dc4,0x11e)]===WebSocket[_0x427572(_0x3a0963._0x36bfd1,0x105,0xe,_0x3a0963._0x475a69)])return _0x32cbfe[_0x39eb17(0x5,_0x3a0963._0x50a022,-_0x3a0963._0x15bd92,0x99)];if(_0x32cbfe['connecting'])return await _0x32cbfe[_0x427572(0x42,0x8,0x5a,-_0x3a0963._0x3ae1be)];function _0x39eb17(_0x4a90bf,_0x183787,_0x538baa,_0x49e6d7){return _0x101ac3(_0x4a90bf-0xa5,_0x183787-0x148,_0x183787,_0x49e6d7- -0x53d);}_0x32cbfe['connecting']=((async()=>{const _0x1dcdcc={_0x1e8668:0x262,_0x5354d4:0x35e,_0x38ef43:0x2d3,_0x1c6f3f:0x404,_0x17e686:0x265,_0x34aa20:0x349,_0x182e24:0x291,_0xf63c9b:0x26c,_0x4f9d23:0x310};function _0x43dd82(_0x6c6c81,_0x123ffb,_0x5e3be9,_0x5cd664){return _0x39eb17(_0x6c6c81-0x4d,_0x6c6c81,_0x5e3be9-0x1d9,_0x5cd664- -_0x1adca0._0x25397a);}const _0x292745=await this['createHeaders']({'request':_0x481871[_0x43dd82(_0xc40ed3._0x2621df,-0xbd,_0xc40ed3._0x27bb7d,-_0xc40ed3._0x55c6e5)],'body':_0x44ea12,'credential':_0x481871[_0x4acdb2(_0xc40ed3._0x140fbb,0x59b,_0xc40ed3._0x27abbc,0x65e)],'session':_0x481871[_0x43dd82(_0xc40ed3._0x2ecc95,0x45,_0xc40ed3._0x375515,0x134)],'stream':!![]},{'accept':_0x43dd82(-_0xc40ed3._0x4279a5,_0xc40ed3._0x98ff3,0xce,_0xc40ed3._0x1fd053),'includeContentType':![]});_0x292745[_0x4acdb2(0x662,_0xc40ed3._0x16a23d,_0xc40ed3._0x3c1359,0x58f)](_0x43dd82(_0xc40ed3._0xcc3488,0x163,_0xc40ed3._0x524af5,0xfe));const _0xdaffeb=this[_0x4acdb2(0x553,0x5ae,0x508,0x5ad)]({'headers':Object['fromEntries'](_0x292745[_0x43dd82(-_0xc40ed3._0x524af5,-_0xc40ed3._0x1d7a53,-0x103,-0x26)]()),'url':(''+_0x481871[_0x43dd82(-0x20,_0xc40ed3._0x167e94,0x14b,_0xc40ed3._0x1dcd55)]+this[_0x4acdb2(_0xc40ed3._0x16f80e,0x658,0x585,0x5c9)])['replace'](/^http:/,_0x4acdb2(0x632,0x709,_0xc40ed3._0x466e43,0x677))[_0x4acdb2(_0xc40ed3._0x407378,0x5f0,_0xc40ed3._0x77f287,_0xc40ed3._0x2af939)](/^https:/,'wss:')});function _0x4acdb2(_0x17f9d0,_0x2d9697,_0xb82ac,_0x33cd8d){return _0x39eb17(_0x17f9d0-_0x3fc4b4._0x4c8e51,_0x2d9697,_0xb82ac-_0x3fc4b4._0x3683a6,_0xb82ac-_0x3fc4b4._0x2e8243);}const _0x4ddee3=()=>{const _0x3a8abb={_0x4cf95d:0x17a};_0x32cbfe[_0x389fb2(_0x1dcdcc._0x1e8668,_0x1dcdcc._0x5354d4,0x2b9,_0x1dcdcc._0x38ef43)]===_0xdaffeb&&(_0x32cbfe[_0x525192(0x355,_0x1dcdcc._0x1c6f3f,_0x1dcdcc._0x17e686,_0x1dcdcc._0x34aa20)]=void 0x0,_0x32cbfe[_0x525192(_0x1dcdcc._0x182e24,0x185,_0x1dcdcc._0xf63c9b,0x28b)]=void 0x0);function _0x525192(_0x13045b,_0x2ff3c2,_0x42c6e9,_0x262f18){return _0x4acdb2(_0x13045b-0x176,_0x42c6e9,_0x262f18- -0x239,_0x262f18-_0x3a8abb._0x4cf95d);}function _0x389fb2(_0x354cb0,_0x4ff2ec,_0x38763c,_0x2e39aa){return _0x4acdb2(_0x354cb0-0xa2,_0x38763c,_0x2e39aa- -0x2af,_0x2e39aa-0x11c);}this[_0x525192(0x3f0,0x21f,0x348,_0x1dcdcc._0x4f9d23)](_0x32cbfe);};_0xdaffeb['addEventListener']('close',_0x4ddee3);try{return throwIfAborted(_0x2b6751),_0xdaffeb[_0x4acdb2(_0xc40ed3._0x18e222,0x666,_0xc40ed3._0x40fdce,_0xc40ed3._0x29eb61)]!==WebSocket[_0x4acdb2(_0xc40ed3._0x5c1dcd,0x587,_0xc40ed3._0x2bea4d,0x6d5)]&&await waitForWebSocketOpen(_0xdaffeb,_0x2b6751),throwIfAborted(_0x2b6751),_0x32cbfe[_0x4acdb2(0x57a,0x47c,0x582,0x641)]=_0xdaffeb,_0xdaffeb;}catch(_0x1de6bb){_0x4ddee3();_0xdaffeb['readyState']===WebSocket[_0x43dd82(_0xc40ed3._0x9cf6f7,_0xc40ed3._0x1970a5,-_0xc40ed3._0xb224bb,0xd9)]&&_0xdaffeb[_0x4acdb2(_0xc40ed3._0x44ec1c,0x3f0,0x4bc,_0xc40ed3._0x4748f2)](0x3e8,_0x4acdb2(0x422,_0xc40ed3._0xf20edb,_0xc40ed3._0x4901ff,0x416));throw _0x1de6bb;}})());try{return await _0x32cbfe['connecting'];}finally{_0x32cbfe['connecting']=void 0x0;}}async*[_0x101ac3(0x6e1,0x5d2,0x6be,0x5fa)](_0x32b6e9,_0xe57e1){const _0x3b9016={_0x2994d5:0x4b5,_0x4ef7cc:0x2db,_0x4e6a17:0x3b7,_0x3b7a67:0x516,_0x5a27cb:0x484,_0x9b4b1e:0x7a0,_0x3960b4:0x6f8,_0xa566ee:0x62e,_0x42cf48:0x38d,_0x2f4feb:0x2f9,_0xd07bdd:0x7d5,_0x4bce9c:0x52a,_0x1a3d0d:0x47e,_0x2bcfd2:0x394,_0x14194e:0x492,_0x3f38c6:0x467,_0x628279:0x724,_0xf8557c:0x748,_0x3a4d74:0x760,_0x2b1ac1:0x2e6,_0x156e27:0x232,_0x4cb645:0x2d1,_0x49f83d:0x2f9,_0x2f7e11:0x6e4},_0x4b57ea={_0x11116a:0xbc},_0x10a9d8={_0x183408:0x16b,_0x4a9528:0x92,_0x19c9cb:0x1cd},_0x5e8f68=this[_0x22a737(_0x3b9016._0x2994d5,0x494,_0x3b9016._0x4ef7cc,_0x3b9016._0x4e6a17)](_0x32b6e9);function _0x22a737(_0x5326bd,_0x17ecee,_0x502166,_0x5b49ea){return _0x101ac3(_0x5326bd-_0x10a9d8._0x183408,_0x17ecee-_0x10a9d8._0x4a9528,_0x5326bd,_0x5b49ea- -_0x10a9d8._0x19c9cb);}const _0x56821d=this[_0x22a737(_0x3b9016._0x3b7a67,_0x3b9016._0x5a27cb,0x44b,0x499)](_0x5e8f68[_0x495e8b(_0x3b9016._0x9b4b1e,_0x3b9016._0x3960b4,_0x3b9016._0xa566ee,0x7ba)][_0x495e8b(0x65b,0x707,0x75b,0x6c9)]);function _0x495e8b(_0x2c093c,_0x5bd326,_0x1a3dac,_0x231eca){return _0x101ac3(_0x2c093c-0x37,_0x5bd326-0x12b,_0x231eca,_0x5bd326-_0x4b57ea._0x11116a);}const _0x7db4cf=await this['acquireResponsesSocketLock'](_0x56821d);try{const _0x499515=this['buildResponsesSocketEvent'](_0x5e8f68,_0x56821d);try{yield*this[_0x22a737(_0x3b9016._0x42cf48,0x209,0x37a,_0x3b9016._0x2f4feb)](_0x5e8f68[_0x495e8b(0x78a,0x6f8,0x624,_0x3b9016._0xd07bdd)][_0x22a737(0x4cb,0x520,_0x3b9016._0x4bce9c,_0x3b9016._0x1a3d0d)],_0x56821d,_0x5e8f68,_0x499515['event'],_0xe57e1?.[_0x22a737(0x3f1,_0x3b9016._0x2bcfd2,0x4df,0x49c)]);return;}catch(_0x5804af){if(!_0x499515[_0x22a737(0x3dc,_0x3b9016._0x14194e,0x44b,_0x3b9016._0x3f38c6)]||!this['shouldRetryResponsesSocketRequest'](_0x5804af)){this['invalidateResponsesSocketSession'](_0x56821d);throw _0x5804af;}}this[_0x495e8b(_0x3b9016._0x628279,_0x3b9016._0xf8557c,0x7b6,_0x3b9016._0x3a4d74)](_0x56821d);const _0x16c817=this[_0x22a737(0x350,0x32b,0x3f5,0x3a6)](_0x5e8f68,_0x56821d,{'forceFullReplay':!![]});yield*this[_0x22a737(_0x3b9016._0x2b1ac1,_0x3b9016._0x156e27,_0x3b9016._0x4cb645,_0x3b9016._0x49f83d)](_0x5e8f68['metadata']['sessionId'],_0x56821d,_0x5e8f68,_0x16c817['event'],_0xe57e1?.[_0x495e8b(0x652,0x725,_0x3b9016._0x2f7e11,0x758)]);}finally{_0x7db4cf();}}async*[_0x22bdb8(0xbb,0x26,0xb4,0x12d)](_0x5dbd5f,_0x3880fb,_0x325f6f,_0x390b8a,_0x296174){const _0x278ab0={_0x34c784:0x6d,_0x27b786:0x108,_0x2899f7:0x1b,_0x2206f5:0x56a,_0x3c0203:0x624,_0xb80620:0x5a8,_0x505e79:0x68d,_0x308cbc:0xd9,_0xb471e7:0x133,_0x2928d2:0x117,_0x1cc3bb:0x23b,_0x51b850:0x435,_0x2aed85:0x357,_0x43e290:0xad,_0x1ef4ae:0x17b,_0x3ab446:0x2a4},_0x29dc57={_0xd70082:0xbb},_0x4f2a01={_0x32feaf:0x422,_0x4bd7df:0x32};function _0x1106c2(_0x1d6e60,_0x2ad01c,_0x143609,_0x1fd741){return _0x22bdb8(_0x1d6e60-0x73,_0x1d6e60-_0x4f2a01._0x32feaf,_0x1fd741,_0x1fd741-_0x4f2a01._0x4bd7df);}const _0x180170=await this['prepareResponsesSocketRequest'](_0x325f6f,_0x296174);function _0x2ec91f(_0x6066fd,_0x547b3e,_0x38fcec,_0x5d2b21){return _0x101ac3(_0x6066fd-_0x29dc57._0xd70082,_0x547b3e-0xb5,_0x5d2b21,_0x38fcec- -0x6ff);}const _0x594d13=await this[_0x2ec91f(-_0x278ab0._0x34c784,-0xa7,-_0x278ab0._0x27b786,-_0x278ab0._0x2899f7)](_0x5dbd5f,_0x3880fb,_0x180170,_0x390b8a,_0x296174),_0x2b2692=createOpenAiResponsesStreamParser(_0x325f6f);throwIfAborted(_0x296174),_0x594d13[_0x2ec91f(-0xf4,-0x23c,-0x19a,-0x1b7)](JSON['stringify'](_0x390b8a));for await(const _0x2cc8fe of iterateWebSocketMessages(_0x594d13,_0x296174)){const _0x2cdbd6=_0x2b2692[_0x1106c2(_0x278ab0._0x2206f5,0x619,_0x278ab0._0x3c0203,0x524)]?.(_0x2cc8fe)??[];yield*_0x2cdbd6;if(_0x2b2692[_0x1106c2(_0x278ab0._0xb80620,0x608,0x5b1,_0x278ab0._0x505e79)]?.())break;}if(!_0x2b2692[_0x2ec91f(0x1f,-0xdb,-_0x278ab0._0x308cbc,-_0x278ab0._0xb471e7)]?.())throw new ProviderStreamEventError(_0x2ec91f(-0x17f,-_0x278ab0._0x2928d2,-0x16e,-_0x278ab0._0x1cc3bb),{'retryable':!![]});const _0x2fce47=_0x2b2692[_0x1106c2(_0x278ab0._0x51b850,_0x278ab0._0x2aed85,0x36b,0x45a)](),_0x42e57d=_0x2fce47[_0x2ec91f(-0x1de,-0xdb,-0x1a6,-_0x278ab0._0x43e290)]?.['openaiResponsesResponseId']??_0x2fce47['id'];_0x42e57d&&(_0x3880fb[_0x2ec91f(-_0x278ab0._0x1ef4ae,-_0x278ab0._0x3ab446,-0x1e7,-0x28b)]=_0x42e57d),yield{'type':'done','response':_0x2fce47};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x22bdb8(0x2ca,0x1f5,0x257,0x103),'openai-chat-completions','openai-responses',_0x22bdb8(0x16b,0x7a,-0x7c,0x72)];function isAnthropicSurface(_0x40b591){const _0x4ebec7={_0x4ef693:0x367,_0x140a09:0x4ef,_0x163fb2:0x46e};function _0x31511f(_0x548a64,_0x239b64,_0x3abce9,_0xefaf53){return _0x22bdb8(_0x548a64-0x52,_0xefaf53-0x279,_0x3abce9,_0xefaf53-0x91);}return _0x40b591===_0x31511f(_0x4ebec7._0x4ef693,_0x4ebec7._0x140a09,0x500,_0x4ebec7._0x163fb2);}function _0x8bb0(){const _0x72d665=['zgvMyxvSDe1VzgvSCW','C29Tzq','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','z2v0uMv0CNLezwXHEu1Z','Aw5WDxrFC2nOzw1H','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','Dg9VBenHBgXpCMrLCG','twLUAu1HEc1nmW','yMfZzvvYBa','BwLTBY12mI41','DNnJB2rLlZeUmta0lJi','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','zgvMyxvSDe1VzgvS','A2LTAs1RmI42','Bwf4x291Dhb1Df90B2TLBNm','ue9tva','qMfZAa','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','DhLWzq','yxnZAxn0yw50','C2nOzw1H','zgf0yq','CMvZCg9UC2uUAw5JB21WBgv0zq','EgfP','BhmGlwXH','y29KzxG','Bw9JAW','C3bSAwnL','C2vUzfjHD1jLCxvLC3q','ChjVDMLKzxjZ','r0vu','C2vZC2LVBI10B2TLBG','CgfYC2u','C291CMnL','C29JA2v0','C3vTBwfYEv9PBMrLEa','Dg9VBf91C2vFAwq','CMvZCg9UC2vZugf0Aa','yxbP','ywrHChrPDMu','B3bLBMfPx3jLyxnVBMLUzW','C3rVCf9YzwfZB24','ChvZAa','B3bLBMfP','B3v0Chv0x3rVA2vUCW','CMvZB2X2zunYzwrLBNrPywW','Aw5WDxrFDg9Rzw5Z','nZqWmZy1oerlA1vlBq','Aw52ywXPzgf0zq','t3bLBKfjiefqssbLCNjVCIa','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','CMvHC29UAw5Nx2rLDgfPBhm','y29UC3vTzvDLyLnVy2TLDev2zw50','AxngAw5PDgu','y29UDgvUDf9PBMrLEa','zMLUAxnOx3jLyxnVBG','Aw5WDxrkC29U','CMvHzhLtDgf0zq','t3bLBKfj','zgLZywjSzwq','BwvZC2fNzuLUzgv4','mtG3n0rxsfvvvG','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','y29TCgXLDgvtDxjMywnL','ChjVEhK','CMvZzxq','y2HHDgnTCgWT','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','zxzLBNq6','DMfSDwu','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','C3rYzwfTvMLHu3vYzMfJzq','zwzMB3j0','BwvZC2fNzq','r3jVAYaOEc5HAsK','CxDLBJmUnY1WBhvZ','AgvHzgvYuMvZB2X2zxi','u3vYzMfJzsa','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwmVDJe','B3v0Chv0x3rLEhq','DhjHBNnWB3j0x2vYCM9Y','Bwv0Ag9K','C2vZC2LVBK1HBMfNzxi','yMXVy2TZ','CMvWBgfJzq','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','v2vIu29JA2v0','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','CMvMDxnHBa','DgvZDa','qw50AhjVCgLJ','zw5JCNLWDgvKq29UDgvUDa','AhKZ','ChjVBxb0q2fJAgvlzxLszxnVBhzLCG','C3vTBwfYAxPLza','Ahr0Chm6lY9HCgKUEc5HAs92mq','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','B3bLBMfPlxjLC3bVBNnLCW','mJaYnI0WnY0YmG','zMLUza','Aw1Hz2u','ywjVCNq','Bw9Kzq','B2jQzwn0','Bwf4','AgfZ','B3bLBNjVDxrLCG','Bw9KzwXZqMfZzvvYBa','EgHPz2G','y29ZDf9PBL91C2rFDgLJA3m','BwLTBY12mI41lxbYBW','zgvLChnLzwSTDJqTChjV','BwLUAw1HEc1TmW','zwrPDg9YvMvYC2LVBG','AxneB25L','y29UDgvUDf9IBg9JA19KzwX0yq','yw50AhjVCgLJx3rOAw5RAw5N','Ahr0Cf9ZDgf0Dxm','Dg9VBc1JywXSlq','z2XTltuUmG','BgvUz3rO','zgvJB2rL','AM9PBG','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','BwvZC2fNzv9ZDgfYDa','Dgv4Da','ChjVBxb0x3rVA2vUCW','C3rYAw5NAwz5','ChjLDMLVDxnszxnWB25ZzuLK','C3rYzwfT','t1bftG','y2HHDenVBxbSzxrPB25Zugf0Aa','z2XTltqUnG','C2vUzfDPDgHszxrYAwvZ','BwvZC2fNzv9KzwX0yq','CgvUzgLUzW','Bwv0ywrHDge','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','DgHPBMTPBMDuB2TLBNm','rw5HyMXLie1PBMLnyxGGywrHChrPDMuGDgHPBMTPBMC','AxrLBv9Pza','CMvZCg9UC2vtB2nRzxrtDhjLyw0','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Dg9VBf9JywXSCW','Bw9KzwW','C3vYzMfJzxm','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','l3jLC3bVBNnLCW','CMvZCg9UC2uUzMfPBgvK','y2fJAgvFD3jPDgvFDg9Rzw5Z','A2v5CW','C2vZC2LVBKLK','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','z2XTltuUmW','Bwf4x3rVA2vUCW','y29UDgvUDc10ExbL','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJl3yX','DMLZAwjPBgL0Eq','AxnbCNjHEq','ChjVDMLKzxi','mtboy29Oy0O','ntKYndaZoxfpse5UyW','zgvSzxrL','DxnLCI12AxnPyMXL','Dg9mB3DLCKnHC2u','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','DgvSzw1LDhj5','ywnJzxb0','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','C3rYAwn0','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','DxjS','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','y29TCgXLDgvK','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','y3jLyxrLsgvHzgvYCW','Dgv4Df9KzwX0yq','Bw9KzwXZrgv2uhjVDMLKzxjjza','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','C3vWCg9YDgvKx2vUzhbVAw50CW','o2jHC2u2ncW','C2LNBMfS','Aw5WDxrFDgv4Da','w0rptKvD','zMLUywXszxnWB25Zzq','Aw5KzxG','CM91DgvY','C29YDa','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','C3LZDgvT','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','yw50AhjVCgLJqMfZzvvYBa','Ahr0Cc1ZC2u','C3rYzwfTvMLHuM91DgvY','BwvKAxvT','y2f0y2G','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','y2HHDfn0CMvHBq','zw5HyMXLza','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','z3jVAY00lJu','y2fSBf9Pza','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','Aw1Hz2vFDxjS','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwmVDJe','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','Bw9KzwXjzgvUDgL0Eq','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','Aw5JBhvKzxm','Bg9JA2vK','ChjVDg9JB2W','z2v0','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','z3jVAY1IDwLSzc0WlJe','B3v0Chv0sw5KzxG','Aw5WDxruB2TLBNm','yxn5BMnjDgvYyxrVCG','C2vZC2LVBG','BwLUAw1HBa','Dg9bCgLfCNjVCG','C3rHCNrZv2L0Aa','yw50AhjVCgLJlw1LC3nHz2vZ','yxv0Ag9YAxPHDgLVBG','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','nZG4mtC2zLjpD0nT','Dg9tDhjPBMC','D3m6','D2vIC29JA2v0','DgHLBG','y29TCgXLDgu','nZmXmdaWBMrgCK9c','ywrKrxzLBNrmAxn0zw5LCG','DNnJB2rLlZeUmta2lJe','l2nOyxqVy29TCgXLDgLVBNm','z2XTltu','z2v0tw9KzwXZ','C3rYzwfTshr0Cfn1CMzHy2u','mc4XnduUmcSYnwfMmtjMn2u2mtu3mMiWyMmXogrKyJeWmdHIztu0m2i5mtuXowiW','D2L0AfbYAwnPBMDqCM92AwrLCKLK','Ahr0Cc1QC29U','ywDLBNq','z2L0AhvIqxbPvxjS','zxjYB3i','rgvLCfnLzwS','zMv0y2HjBxbS','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','DhjHBNnWB3j0','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','q2HHDcbJB21WBgv0Aw9UCYbZDhjLyw0Gzw5KzwqGyMvMB3jLigeGDgvYBwLUywWGzxzLBNq','yw50AhjVCgLJ','z3b0ltqUmq','BwLTBY12mI1WCM8','CMvZB2X2zujHC2vvCMW','Aw5WDxrFDg9Rzw5Zx2rLDgfPBhm','yxnZAxn0yw50lq','DgHPBMTPBMDFDg9Rzw5Z','C3rYDwn0DxjLzf9VDxrWDxq','ywjVCNrLza','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','y29UC3vTzvnZzuv2zw50','DhjPBq','r2L0shvIie1VzgvSCYaVienVCgLSB3q','y29TCgXLDgvwAwftDxjMywnL','B3v0Chv0','y29UDgv4Df9Szw5NDgG','CMvZCg9UC2vtDhjLyw0','nhnyrwfzua','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','mJaYns0Xmc0Wmq','y29TCgXLDgLVBL90B2TLBNm','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','BMfTzq','CM91BMq','DxrMltG','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','z3b0ltu','zMLUAxnO','mJu0z1HUq1zs','AgLNAa','CMvHC29UAw5NugfYDhm','Ec1HCgKTA2v5','ChjLCgfYzunOyxrszxf1zxn0','B3bLBKfPrgvSzwDHDgu','Dg9VBa','z2v0qw50AhjVCgLJrgvSzwDHDgu','Aw5WDxq','B3v0Chv0rM9YBwf0','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','y3jLyxrLuMvXDwvZDa','zgvLChnLzwSTDJqTzMXHC2G','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','CMvHC29UAw5Nx2nVBNrLBNq','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C3rYzwfTu3vYzMfJzq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','wI5bsq','AhKZlxbYzxzPzxC','DxnLC1jLC3bVBNnLC0fWAq','CMvZCg9UC2u','yxbPlwTLEq','C3rYAw5N','y2HHDgnTCgW','B2f1DgGTDg9Rzw4','BwLTBY12mI1VBw5P','yxv0AfnJAgvTzq','Bw9KzwXZ','Aw5PDgLHBev2zw50','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','BwvKAwfFDhLWzq','B2zM','Dgv4DfbHCNrZ','zgf0ytO','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBs92mq','yNvKz2v0vg9Rzw5Z','z2XTltqUnW','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','Ahr0Chm6lY9VCgvUy29Kzs5HAs96zw4Vz28VDJe','C2v0','z3b0ltrV','zw5Kx3r1CM4','l21LC3nHz2vZ','y2fJAgvKx3rVA2vUCW','ChjVDMLKzxjFCMv0CNK','otfICNntB0q','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','A2LTAs1RmI43lwnVzgu','C3vTBwfYEv90zxH0','BwLUAw1HEc1TmI43','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','BwfW','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','y29TCgXLDgvwAwfsB3v0zxi','Bwf4vg9Rzw5Z','Dg9Rzw4','C3rHDhvZ','CMvZCg9UC2vuzxH0ugfYDhm','B3v0Chv0x2LUzgv4','Aw5JBhvKzunVBNrLBNruExbL','Dg9VBenHBgXZ','q2HHDcbJB21WBgv0Aw9UCYbZDhjLyw0GzMfPBgvK','DhjPBvn0yxj0','DxnHz2u','CMv0CNKTywz0zxi','Dgv4Dej5sw5KzxG','EMfPlwnVzgLUzY1WBgfU','ChjVBxb0q2fJAgvlzxK','BM93','AxntywzLsw50zwDLCG','ChjVDg9JB2XwzxjZAw9U','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','BgfIzwW','B21PDhrLza','CMvXDwvZDe11Dgf0B3jZ','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','z3b0ltuUna','C3vTBwfYEq','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','z2XTltqUnq','ntq5mdKXogX6rgv0va','y2fJAgvK','Bwf4t3v0Chv0','Dg9VBfvZzvn0yxj0rw1PDhrLza','z2v0u3vYzMfJzq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','Ahr0Chm6lY9HCgKUzgvLChnLzwSUy29Tl2fUDgHYB3bPyY92mq','y2XVC2u','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','CMvHC29UAw5NsxrLBxm','y2HVAwnLCW','y29UBMvJDf9MywLSzwq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','BwLUAw1HEc1TmI41','BgfZDfjLC3bVBNnLswq','CMvTB3zLrxzLBNrmAxn0zw5LCG','B3bLBMfPlxjLC3bVBNnLCY13CW','A2LTAs1RmI41','C3bSAxq','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','y29UDgv4DfDPBMrVDW','C3vWCg9YDhnnB2rLBezLDgnO','ANnVBG','A2LUza','z2v0t3bLBKfPrgvSzwDHDgu','EgLHB21PlxrVA2vUlxbSyw4TC2DW','CMvZCg9UC2uUy29TCgXLDgvK','C3rHDhvZvgv4Da','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','yxv0BW','zNvUy3rPB25Fy2fSBa','Dg9VBenHBgXZqNLjBMrLEa','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','q29TBwfUzenVzgu','zg9Uzq','z3jVAY1JB2rLlwzHC3qTmq','C3vTBwfYEuj5sw5KzxG','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','ywnJzxnZvg9Rzw4','zNvUy3rPB24','BxnNlq','zMXHDe1HCa','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','BwvZC2fNzxm','zw50CMLLCW','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','y29UBMvJDgLUzW','ChjPy2LUz1bYB3zPzgvYswq','z3b0ltuTBwLUAq','ihn0CMvHBsbLBMrLzcbIzwzVCMuGysb0zxjTAw5HBcbLDMvUDa','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','y2fSBeLKvg9pDxrWDxrjBMrLEa','CMvXDwvZDa','CMvZB2X2zq','C2LNBMf0DxjLx2rLBhrH','A2v5','ndC5mdaXq2jUzw5J','AgvHzgvYCW','y2HHDenVBxbSzxrPB25Zsw5JBhvKzvvZywDL','y29UDgvUDf9KzwX0yq','Dgv4Dc9LDMvUDc1ZDhjLyw0','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','CMvHC29UAw5Nx3rLEhq','y29UC3vTzuv2zw50','Dg9Wx3bYB3zPzgvY','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','DgHPBMTPBMC','zNjVBq','B3bLBG','Cgf0Aa','y29Kzq','y29UDgvUDa','yMvHCMvY','l3yX','y29UDgvUDf9IBg9JAW','y2fWywjSzv9LBMrWB2LUDhm','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','C2XPy2u','ChjVDMLKzxjtDgf0zq','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','D2fPDezVCLjLDhj5','D2vIu29JA2v0rMfJDg9YEq','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','yw50AhjVCgLJsgvHzgvYuMvZB2X2zxi','Dg9VBf91C2u','Dg9VBf91C2vFzgvSDge','zgvLChnLzwS','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','C3vWCg9YDgvKrw5KCg9PBNrZ','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','C2vUza','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','z2XTltuUmq','zMv0y2G','y2fWywjPBgL0AwvZ','Aw50zxjSzwf2zwq','C3vYzMfJzq','ChjVDMLKzxjbzgfWDgvY','zw5KCg9PBNrZ','Bw9KzwXfBMrWB2LUDenHy2HL','zw5JCNLWDgvKx2nVBNrLBNq','BNvTyMvY','y2XPrgvMyxvSDe1VzgvS','Bg93','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','yxbPs2v5','zgvSDge','mJaYmY0WnI0Wmq','CMvHC29UAw5N','BwvZC2fNzuLK','C3rVCfjLyxnVBG','yw50AhjVCgLJlxzLCNnPB24','qMvHCMvYia','DMfSDwvZ','z2L0AhvIlwnVCgLSB3q','CMvZCg9UC2vjza','CMvXDwvZDhm','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','y29WAwXVDc1JAgf0lZaUmZeUmW','C2LNBMf0DxjL','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','yxbWBhLnB2rLBerLzMf1BhrZ','yNvPBgrqyxj0AwfSt3v0Chv0','yw50AhjVCgLJrgvSzwDHDgu','zMLSDgvY','wgLHB21P','rgLYzwn0igfUC3DLCJOG','t3bLBLjVDxrLCG','CMv0CNLHyMXL','C2HVDwXKuMv0CNLszxnWB25Zzq','y2HHDenVBxbSzxrL','yM9KEq','CM9Szq','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLigeGDgvYBwLUywWGCMvZCg9UC2uGzxzLBNq','B3v0Chv0sw5KzxHuB0nHBgXjza','y2fJAgvszwfKsw5WDxruB2TLBNm','B3bLBMfPl2DWDc00BY1TAw5P','Dg9VBhm','CMvZCg9UC2vtB2nRzxq','zM9Yy2vtDhjLyw1PBMC','CMvHC29U','DxnLCG','Ahr0Chm6','yxbWBgLJyxrPB24VANnVBG','y3jLyxrLu3rYzwfTugfYC2vY','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','y29ZDa','B3v0Chv0vg9Rzw5Z','ChjVBxb0x3rVA2vUC19KzxrHAwXZ','yxjNDw1LBNrZ','CMvZB2X2zxi','BgLTAxrZ','ANnVBL9Zy2HLBwe','y2fUy2vS','t3bLBKnVzguGr28','y3jLzgvUDgLHBa','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','CgfYC2vszxnWB25Zzq','C2vSzwn0u3vYzMfJzq','CMvKywn0zwrFDgHPBMTPBMC','Ahr0Chm6lY9JAgf0z3b0lMnVBs9IywnRzw5KlwfWAs9JB2rLEa','CgfYDgLHBf9QC29U','BwfWqxbPrxjYB3i','D3nZoG','B3bLBMfPl2DWDc00BW'];_0x8bb0=function(){return _0x72d665;};return _0x8bb0();}function providerFromSurface(_0x3accf0){const _0x38943a={_0x11d656:0x734,_0x41eff5:0x524,_0x6f456e:0x5fe,_0x43c09c:0x61},_0x4953df={_0x21970d:0x41c},_0x4b2ce7={_0x10a223:0x150,_0xcccfe3:0x6c};function _0x29afae(_0x1dbda6,_0x5cf6cf,_0x33767d,_0x1150de){return _0x22bdb8(_0x1dbda6-_0x4b2ce7._0x10a223,_0x1150de- -0xde,_0x33767d,_0x1150de-_0x4b2ce7._0xcccfe3);}function _0x35e9c2(_0x74a3d8,_0x38e975,_0x19aa0c,_0x515bab){return _0x22bdb8(_0x74a3d8-0x1ab,_0x38e975-_0x4953df._0x21970d,_0x515bab,_0x515bab-0x17c);}return _0x3accf0['startsWith'](_0x35e9c2(0x6ea,0x62e,_0x38943a._0x11d656,0x62c))?_0x35e9c2(0x6da,0x62e,_0x38943a._0x41eff5,_0x38943a._0x6f456e):_0x29afae(-0x73,0x15,-0xa9,_0x38943a._0x43c09c);}function resolveDefaultBaseUrl(_0x2b574b){const _0x369651={_0x17d34a:0x5f,_0x2e1189:0x499,_0x2b1f96:0x44f,_0x535512:0x3e1},_0x4a8022={_0x4aa7f0:0x37f};function _0x4e3fc4(_0x1bb334,_0x515788,_0x652510,_0x2a5b10){return _0x22bdb8(_0x1bb334-0x7c,_0x2a5b10- -0x196,_0x652510,_0x2a5b10-0x25);}function _0x1f7257(_0x1496eb,_0x95516a,_0x323925,_0x288272){return _0x22bdb8(_0x1496eb-0xd3,_0x1496eb-_0x4a8022._0x4aa7f0,_0x323925,_0x288272-0x142);}if(_0x2b574b===_0x4e3fc4(0x71,-0x18,0x14c,_0x369651._0x17d34a))return getProviderProfile('anthropic')?.[_0x1f7257(_0x369651._0x2e1189,0x4b0,_0x369651._0x2b1f96,0x514)]??'https://api.anthropic.com/v1';return getProviderProfile(_0x1f7257(0x4be,_0x369651._0x535512,0x4f9,0x3c5))?.['baseUrl']??'https://api.openai.com/v1';}var ChatModel=class{[_0x101ac3(0x5d4,0x5aa,0x6f5,0x644)];[_0x22bdb8(0x2eb,0x1e5,0x1f0,0x1ba)];[_0x22bdb8(0x134,0x4e,-0x32,-0x78)];[_0x22bdb8(-0xf,0x9a,0x1b,0x8e)];[_0x101ac3(0x652,0x48d,0x62a,0x56b)];[_0x101ac3(0x67d,0x746,0x5ae,0x653)];[_0x22bdb8(-0x12,0xe6,0xfb,0x7d)];[_0x101ac3(0x3ea,0x42a,0x4e0,0x4b9)];constructor(_0x86f3cd={}){const _0x265563={_0x233061:0x5cb,_0x379e80:0x26d,_0x4c5a87:0x267,_0x37b3cf:0x356,_0x35db82:0x267,_0x2438c5:0x251,_0x1cef2e:0x226,_0x1ec639:0x1eb,_0x45975f:0x32d,_0x100d2e:0xd0,_0x423225:0x1,_0x2a12b9:0x17f,_0x1b2763:0x359,_0x266ad0:0x517,_0x119b1c:0x463,_0x41aa35:0x11c,_0x248567:0x75,_0x27b224:0x11d,_0x44754a:0x157,_0x1ec6e4:0x1e0,_0x5cdebf:0x13e,_0x15449d:0x491,_0x2d3cac:0x57c,_0x4f1621:0x39d,_0x28286b:0x3a5,_0x211fde:0x3d1,_0x7f3935:0x5da,_0x1c9e81:0x50a,_0x4721a2:0x3c8,_0x11e5bd:0x3c3,_0x1c8478:0xb2,_0x552228:0x14a,_0x14d738:0x140,_0x579c3f:0x1d9,_0x59ad78:0x3c,_0x2935fe:0x390,_0x315614:0x417,_0x511d8c:0x37c,_0x3c6725:0x1ef,_0x58d01b:0x2c,_0x214cae:0x1ff,_0x38f819:0x575,_0xebfe9c:0xc1,_0x554ea1:0x3e4,_0x3d206d:0x32b,_0x25773f:0x105,_0x514ae9:0x1a8,_0x1de5a3:0x7c,_0xd2d556:0x1e2,_0x167ab6:0x202,_0x38eb29:0x11e,_0x5a8915:0x321,_0x197a14:0x422,_0x5a6536:0x226,_0x4f1ca8:0x2ee,_0x2b69e1:0x446,_0x4c85fa:0x42b,_0x589b59:0x3bd,_0x22e268:0x470,_0x4ed7ee:0x5a2,_0x190db7:0x53a,_0x5a479e:0x5a2,_0x524f2d:0x4c7,_0x55a688:0x4c5,_0x188651:0x571,_0x5d7d92:0x4e0,_0x5c671d:0x450,_0x7b039a:0xe5,_0x51c930:0x12a,_0x4b8428:0x1b9},_0x189966={_0x14c87c:0x1be,_0x1bb4dc:0x175},_0x280f35={_0x1a2f67:0x16f,_0x53a3c7:0x92};this[_0x7ba4e6(0x655,0x53b,0x56d,_0x265563._0x233061)]=_0x86f3cd[_0x3a6cbb(0x226,0x26f,_0x265563._0x379e80,0x1a2)]??getDefaultModel(),this[_0x3a6cbb(_0x265563._0x4c5a87,0x348,_0x265563._0x37b3cf,0x363)]=_0x86f3cd[_0x3a6cbb(_0x265563._0x35db82,_0x265563._0x2438c5,0x300,0x35f)]??modelIdentityFromParts(void 0x0,this[_0x3a6cbb(_0x265563._0x1cef2e,0x18e,_0x265563._0x1ec639,_0x265563._0x45975f)]),this[_0x3a6cbb(_0x265563._0x100d2e,_0x265563._0x423225,0x140,0x165)]=_0x86f3cd[_0x3a6cbb(0xd0,0x43,_0x265563._0x2a12b9,0x191)],this[_0x7ba4e6(_0x265563._0x1b2763,_0x265563._0x266ad0,_0x265563._0x119b1c,0x4cf)]=_0x86f3cd[_0x3a6cbb(_0x265563._0x41aa35,0x1f9,0x15f,_0x265563._0x248567)],this[_0x3a6cbb(0x14d,_0x265563._0x27b224,0x15a,0x16a)]=_0x86f3cd[_0x3a6cbb(0x14d,0x18c,0x24b,_0x265563._0x44754a)]??_0x3a6cbb(0x148,_0x265563._0x1ec6e4,_0x265563._0x5cdebf,0xe2);function _0x3a6cbb(_0x1ceae5,_0x42365e,_0x2ec211,_0x2f64bc){return _0x22bdb8(_0x1ceae5-_0x280f35._0x1a2f67,_0x1ceae5-0x82,_0x42365e,_0x2f64bc-_0x280f35._0x53a3c7);}this[_0x7ba4e6(_0x265563._0x15449d,0x606,_0x265563._0x2d3cac,0x4c4)]=providerFromSurface(this[_0x7ba4e6(_0x265563._0x4f1621,_0x265563._0x28286b,0x494,_0x265563._0x211fde)]);const _0x54b97b=trimTrailingSlashes(_0x86f3cd[_0x7ba4e6(_0x265563._0x7f3935,0x404,0x4e3,_0x265563._0x119b1c)]??resolveDefaultBaseUrl(this[_0x7ba4e6(_0x265563._0x1c9e81,0x403,0x494,_0x265563._0x4721a2)]));function _0x7ba4e6(_0x2c8aba,_0x12c7b2,_0x26d7a3,_0x1600dd){return _0x22bdb8(_0x2c8aba-_0x189966._0x14c87c,_0x26d7a3-0x3c9,_0x12c7b2,_0x1600dd-_0x189966._0x1bb4dc);}if(isAnthropicSurface(this[_0x7ba4e6(_0x265563._0x11e5bd,0x3a2,0x494,0x3c9)])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x86f3cd['apiKey'],'authScheme':_0x86f3cd[_0x3a6cbb(_0x265563._0x1c8478,0x15,0x182,0xca)],'baseUrl':_0x54b97b,'fetch':_0x86f3cd[_0x3a6cbb(_0x265563._0x552228,0x209,0x242,0xb3)],'headerResolver':_0x86f3cd[_0x3a6cbb(_0x265563._0x14d738,0x134,_0x265563._0x579c3f,0xb8)],...this[_0x3a6cbb(0xd0,0x138,_0x265563._0x59ad78,_0x265563._0x14d738)]!==void 0x0?{'maxTokens':this[_0x7ba4e6(_0x265563._0x2935fe,0x492,_0x265563._0x315614,_0x265563._0x511d8c)]}:{},'model':this[_0x7ba4e6(0x4aa,0x4ff,0x56d,0x4b6)],'modelIdentity':this['modelIdentity'],...this[_0x3a6cbb(_0x265563._0x41aa35,_0x265563._0x3c6725,_0x265563._0x58d01b,0x2d)]!==void 0x0?{'pricingProviderId':this[_0x3a6cbb(_0x265563._0x41aa35,0x10c,_0x265563._0x214cae,0x1e7)]}:{},'reasoning':_0x86f3cd['reasoning'],'providerSessionResolver':_0x86f3cd[_0x7ba4e6(0x55d,0x3ea,0x4e0,_0x265563._0x38f819)],'requestMutators':_0x86f3cd[_0x3a6cbb(0xe5,0x4d,0x9d,_0x265563._0xebfe9c)]});return;}this[_0x7ba4e6(_0x265563._0x554ea1,0x46e,0x3e2,_0x265563._0x3d206d)]=new OpenAiModel({'apiKey':_0x86f3cd[_0x3a6cbb(0x156,_0x265563._0x25773f,0x254,_0x265563._0x514ae9)],'baseUrl':_0x54b97b,'fetch':_0x86f3cd[_0x3a6cbb(0x14a,_0x265563._0x1de5a3,0x1c3,0x6f)],'forceStreaming':_0x86f3cd['forceStreaming'],'headerResolver':_0x86f3cd[_0x3a6cbb(_0x265563._0xd2d556,_0x265563._0x167ab6,0x131,_0x265563._0x38eb29)],...this['maxTokens']!==void 0x0?{'maxTokens':this[_0x7ba4e6(_0x265563._0x5a8915,0x406,0x417,_0x265563._0x197a14)]}:{},'model':this[_0x3a6cbb(_0x265563._0x5a6536,0x15e,0x22a,_0x265563._0x4f1ca8)],'modelIdentity':this[_0x7ba4e6(0x562,0x6b9,0x5ae,0x694)],...this[_0x7ba4e6(_0x265563._0x2b69e1,_0x265563._0x4c85fa,0x463,_0x265563._0x589b59)]!==void 0x0?{'pricingProviderId':this['pricingProviderId']}:{},'promptCacheKeyResolver':_0x86f3cd[_0x7ba4e6(_0x265563._0x22e268,_0x265563._0x4ed7ee,_0x265563._0x190db7,0x481)],'reasoning':_0x86f3cd[_0x7ba4e6(_0x265563._0x5a479e,_0x265563._0x524f2d,0x4a0,_0x265563._0x55a688)],'providerSessionResolver':_0x86f3cd[_0x7ba4e6(_0x265563._0x188651,0x56f,_0x265563._0x5d7d92,_0x265563._0x5c671d)],'requestMutators':_0x86f3cd[_0x3a6cbb(_0x265563._0x7b039a,0x16,_0x265563._0x51c930,_0x265563._0x4b8428)],'webSocketFactory':_0x86f3cd['webSocketFactory']});}['getAnthropicDelegate'](){const _0x45942a={_0x169a6a:0x9f,_0x5d9c27:0x419,_0x3e9e3e:0x36d,_0x551d2b:0x32a,_0x241872:0x33b},_0x5e913f={_0x54634d:0x54},_0x590def={_0x1c6311:0x244,_0x2260f6:0x31};function _0x4343a5(_0x515e64,_0x43778a,_0x323a0f,_0x677f7){return _0x22bdb8(_0x515e64-0xfb,_0x323a0f-_0x590def._0x1c6311,_0x43778a,_0x677f7-_0x590def._0x2260f6);}function _0x26822f(_0x5b6ce3,_0x4effbb,_0x8bd99c,_0x3a5dd8){return _0x22bdb8(_0x5b6ce3-0xff,_0x8bd99c- -_0x5e913f._0x54634d,_0x4effbb,_0x3a5dd8-0x1b3);}if(!this['anthropicDelegate'])throw new Error(_0x26822f(_0x45942a._0x169a6a,-0x8,-0x30,0x9e)+this[_0x4343a5(_0x45942a._0x5d9c27,0x25a,0x30f,0x27b)]);return this[_0x4343a5(_0x45942a._0x3e9e3e,0x285,_0x45942a._0x551d2b,_0x45942a._0x241872)];}['getOpenAiDelegate'](){const _0x529caf={_0x2159f1:0x12},_0x5de381={_0x5e0d65:0xea,_0xb75029:0x185,_0x1b3b67:0x44e};function _0x2cba5c(_0xce318,_0x523023,_0x47e8ba,_0x28a8b8){return _0x101ac3(_0xce318-_0x5de381._0x5e0d65,_0x523023-_0x5de381._0xb75029,_0x28a8b8,_0xce318- -_0x5de381._0x1b3b67);}if(!this['openAiDelegate'])throw new Error('OpenAI\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x2cba5c(0x11d,0xa4,_0x529caf._0x2159f1,0x21c)]);return this['openAiDelegate'];}[_0x101ac3(0x68f,0x75e,0x615,0x69d)](_0x39ba9e,_0x4d08b3){const _0x224c7d={_0x146c2d:0x435,_0xd44bce:0x4b1,_0x155325:0x447,_0x20c9fd:0x3f6,_0x54623c:0xf9,_0x420456:0x130,_0x15d6d4:0x211,_0x1e6767:0x18a,_0x495cb2:0x249,_0x19e5de:0x234,_0x113492:0x239,_0x1a57c7:0xb3,_0x20cb9f:0x29d,_0x2253c2:0x283,_0x1d9c2b:0x2f3,_0x271766:0x17b,_0x36dca6:0x58,_0x1f37e4:0x173,_0x4d7363:0x141,_0xd25484:0x2ee},_0xf76e28={_0x59788b:0x3},_0x50178a={_0x4c0b42:0x42};function _0x26104d(_0x5412ea,_0x3612a6,_0x373d2f,_0x8a0368){return _0x101ac3(_0x5412ea-_0x50178a._0x4c0b42,_0x3612a6-0x140,_0x373d2f,_0x5412ea- -0x48c);}function _0xd3cfa9(_0x390cf9,_0x4846ee,_0x49acf4,_0xc9eb00){return _0x101ac3(_0x390cf9-_0xf76e28._0x59788b,_0x4846ee-0x174,_0x4846ee,_0xc9eb00- -0x29f);}switch(this['surface']){case _0xd3cfa9(_0x224c7d._0x146c2d,_0x224c7d._0xd44bce,_0x224c7d._0x155325,_0x224c7d._0x20c9fd):return this[_0x26104d(0x2f,-0xd1,_0x224c7d._0x54623c,_0x224c7d._0x420456)]()[_0x26104d(_0x224c7d._0x15d6d4,_0x224c7d._0x1e6767,_0x224c7d._0x495cb2,_0x224c7d._0x19e5de)](_0x39ba9e,_0x4d08b3);case _0x26104d(0x189,0xcd,_0x224c7d._0x113492,_0x224c7d._0x1a57c7):return this[_0xd3cfa9(0x351,_0x224c7d._0x20cb9f,0x35c,_0x224c7d._0x2253c2)]()[_0xd3cfa9(_0x224c7d._0x1d9c2b,_0x224c7d._0x271766,0x250,0x22b)](_0x39ba9e,_0x4d08b3);case _0xd3cfa9(0x255,0x29e,0x1a3,0x27b):return this[_0xd3cfa9(0x307,0x196,0x2b9,0x283)]()[_0x26104d(0x10a,_0x224c7d._0x36dca6,_0x224c7d._0x1f37e4,0x18f)](_0x39ba9e,_0x4d08b3);default:return this[_0x26104d(0x96,-0x43,_0x224c7d._0x4d7363,0x2c)]()[_0xd3cfa9(0x3c6,0x249,0x2ac,_0x224c7d._0xd25484)](_0x39ba9e,_0x4d08b3);}}[_0x22bdb8(0x223,0x195,0x225,0x106)](_0x247190,_0x281081){const _0x76f627={_0x54b8db:0x6b,_0x51f93e:0x76,_0x3f84f1:0x245,_0x492f12:0x435,_0x5e1fb9:0x49f,_0x4eaea3:0x1af,_0x5cb1b7:0x1de,_0x2e1576:0x1d7,_0x50739a:0x236,_0x2abe90:0x4e9,_0xd6d7d:0x4c2,_0x2ae113:0xc9,_0x4cc884:0xbf,_0x13594f:0xca,_0x40cbd1:0x2ac,_0x4bb19d:0x1f1,_0x3535a6:0x86,_0x246a2e:0x172},_0x265529={_0x3c61f4:0x2a0,_0x47eff4:0x12e},_0x2f4be3={_0x347f74:0x15d,_0x1c7adf:0x260,_0x5aa4b3:0x1d6};function _0x7b0e01(_0x20568c,_0x298417,_0x33e081,_0x28d915){return _0x22bdb8(_0x20568c-_0x2f4be3._0x347f74,_0x298417- -_0x2f4be3._0x1c7adf,_0x33e081,_0x28d915-_0x2f4be3._0x5aa4b3);}function _0x23adc5(_0x409a59,_0x318f35,_0x50730c,_0x5b1b15){return _0x22bdb8(_0x409a59-0x1bb,_0x318f35-_0x265529._0x3c61f4,_0x50730c,_0x5b1b15-_0x265529._0x47eff4);}switch(this['surface']){case _0x7b0e01(-0xda,-_0x76f627._0x54b8db,_0x76f627._0x51f93e,0xd):return this[_0x7b0e01(-0x17d,-_0x76f627._0x3f84f1,-0x1f6,-0x235)]()[_0x23adc5(0x34f,_0x76f627._0x492f12,0x4a5,_0x76f627._0x5e1fb9)](_0x247190,_0x281081);case _0x7b0e01(-0x2f,-0xeb,-0x166,-_0x76f627._0x4eaea3):return this[_0x7b0e01(-0x1c4,-_0x76f627._0x5cb1b7,-_0x76f627._0x2e1576,-_0x76f627._0x50739a)]()[_0x23adc5(_0x76f627._0x2abe90,_0x76f627._0xd6d7d,0x41f,0x46f)](_0x247190,_0x281081);case'openai-responses-ws':return this['getOpenAiDelegate']()[_0x7b0e01(-_0x76f627._0x2ae113,-_0x76f627._0x4cc884,-0xb9,-_0x76f627._0x13594f)](_0x247190,_0x281081);default:return this[_0x7b0e01(-_0x76f627._0x40cbd1,-0x1de,-_0x76f627._0x4bb19d,-0xec)]()[_0x7b0e01(-0xa3,-_0x76f627._0x3535a6,-0x11a,-_0x76f627._0x246a2e)](_0x247190,_0x281081);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x101ac3(0x5a6,0x492,0x4d2,0x530)];[_0x101ac3(0x672,0x573,0x66a,0x5ba)];[_0x22bdb8(0x30d,0x20c,0x1b9,0x287)];[_0x101ac3(0x6a9,0x785,0x633,0x6a9)];[_0x101ac3(0x609,0x4a1,0x590,0x562)];constructor(_0x3fb3ec){const _0x1d6c96={_0x1f4e3c:0x17,_0x6a2a80:0x163,_0x50f4d4:0x13f,_0x53635c:0x27d,_0x4bfab0:0x22e,_0x2fbd44:0x134},_0x397e3b={_0x1db009:0x47b};function _0x497814(_0x1f18ba,_0xace423,_0x98fb74,_0x410bb3){return _0x101ac3(_0x1f18ba-0x1ea,_0xace423-0x25,_0x98fb74,_0x410bb3- -_0x397e3b._0x1db009);}this['accessToken']=_0x3fb3ec[_0x497814(_0x1d6c96._0x1f4e3c,_0x1d6c96._0x6a2a80,0x9,0xb5)],this['baseUrl']=trimTrailingSlashes2(_0x3fb3ec[_0x497814(0x209,0x207,0x1c8,_0x1d6c96._0x50f4d4)]),this['fetchImpl']=_0x3fb3ec['fetch'],this[_0x497814(_0x1d6c96._0x53635c,0x25e,0x233,0x22e)]=trimTrailingSlashes2(_0x3fb3ec[_0x497814(0x329,0x2b6,0x220,_0x1d6c96._0x4bfab0)]);function _0x5bd9b2(_0x2493c9,_0xc0e197,_0x37848e,_0x5867ec){return _0x101ac3(_0x2493c9-0x40,_0xc0e197-0x32,_0xc0e197,_0x2493c9-0x9e);}this['tokenExchangeApiVersion']=_0x3fb3ec[_0x497814(0x7b,_0x1d6c96._0x2fbd44,0xee,0xe7)];}async[_0x22bdb8(0xb,0xa0,0x25,0x12d)](_0x51f679){const _0x26b436={_0x338759:0x38e,_0x13d13f:0x367,_0x3a6d20:0x363,_0x30bd83:0x16a,_0x52567d:0x234,_0x17034d:0x15,_0x3cf543:0x218,_0x571492:0x2e4,_0x3f2f71:0x32b,_0x11a277:0x252,_0x247ab8:0x199,_0x5a3224:0x295,_0x556a0a:0x66,_0x3fe7a8:0x28a,_0x1aefea:0x357,_0x50065d:0x260,_0x4b056c:0x232,_0x4f199f:0x9d,_0x13103a:0xc7,_0x47510d:0x80,_0x5d1f33:0x82,_0x1c6c84:0x31a,_0x5318f9:0x31c,_0x16d92b:0x2ac,_0x59a0ee:0xf2,_0xee1a81:0x125,_0x4267ca:0x1a6,_0x48857f:0xf,_0x37ad66:0x9b,_0x58c597:0x13a,_0x97e197:0x9a,_0x35d9f7:0x7b,_0x3a3153:0x2d,_0x4404c4:0x32c,_0x32d466:0x3b3,_0x852ac9:0x2a5,_0x264c2d:0x26b,_0x3b9ead:0x130,_0x5e6d24:0x11b,_0x53a030:0x1f1,_0x25aa93:0x17d},_0xff1e6d={_0x4994d8:0x123,_0x35023f:0x1ab};function _0x349b01(_0x3bc99d,_0x17d111,_0x44ec07,_0x2647e9){return _0x22bdb8(_0x3bc99d-0xac,_0x3bc99d- -0x9f,_0x44ec07,_0x2647e9-0x2a);}const _0x75459b=await this[_0xb43ac4(_0x26b436._0x338759,0x3fa,_0x26b436._0x13d13f,_0x26b436._0x3a6d20)](this[_0x349b01(_0x26b436._0x30bd83,0x11a,_0x26b436._0x52567d,0x1b2)]+_0x349b01(-_0x26b436._0x17034d,-0x7f,0xd5,0xf5),{'method':'GET','headers':new Headers({'accept':_0xb43ac4(_0x26b436._0x3cf543,_0x26b436._0x571492,_0x26b436._0x3f2f71,_0x26b436._0x11a277),'authorization':_0xb43ac4(0x17d,_0x26b436._0x247ab8,_0x26b436._0x5a3224,0x232)+this[_0x349b01(-0xf,-0x89,0xb9,_0x26b436._0x556a0a)],'editor-version':_0xb43ac4(0x26f,0x2a5,_0x26b436._0x3fe7a8,_0x26b436._0x1aefea),'user-agent':_0xb43ac4(0x1e2,0x285,0x22d,0x203),'x-github-api-version':this[_0xb43ac4(0x195,_0x26b436._0x50065d,_0x26b436._0x4b056c,0x219)]}),'signal':_0x51f679});function _0xb43ac4(_0x40ac22,_0x4f6f4e,_0xfc94db,_0x1dc0a5){return _0x22bdb8(_0x40ac22-_0xff1e6d._0x4994d8,_0x1dc0a5-0x157,_0x40ac22,_0x1dc0a5-_0xff1e6d._0x35023f);}if(!_0x75459b['ok'])return{'credential':{'kind':_0x349b01(-0x71,-_0x26b436._0x4f199f,-_0x26b436._0x13103a,-0x2a),'value':this[_0x349b01(-0xf,_0x26b436._0x47510d,0x17,-_0x26b436._0x5d1f33)]},'endpoints':{'api':this[_0xb43ac4(_0x26b436._0x1c6c84,0x316,_0x26b436._0x5318f9,0x271)]}};const _0x296c43=await _0x75459b[_0xb43ac4(0x1ea,_0x26b436._0x16d92b,0x185,0x1d7)]();return{'credential':{'kind':_0x349b01(0x94,-0x6,_0x26b436._0x59a0ee,-0x71),'value':_0x296c43[_0xb43ac4(0x182,0x14a,_0x26b436._0xee1a81,_0x26b436._0x4267ca)]??this[_0x349b01(-_0x26b436._0x48857f,-0xf5,-_0x26b436._0x5d1f33,0xbf)]},'endpoints':{'api':_0x296c43['endpoints']?.[_0x349b01(_0x26b436._0x37ad66,_0x26b436._0x58c597,-0x5b,_0x26b436._0x97e197)]??this[_0x349b01(_0x26b436._0x35d9f7,0xe7,-_0x26b436._0x3a3153,-0x15)],'originTracker':_0x296c43[_0xb43ac4(_0x26b436._0x4404c4,0x302,0x29e,0x224)]?.['origin-tracker'],'proxy':_0x296c43['endpoints']?.[_0xb43ac4(_0x26b436._0x32d466,_0x26b436._0x852ac9,_0x26b436._0x264c2d,0x2ab)],'telemetry':_0x296c43[_0xb43ac4(0x1bb,0x283,_0x26b436._0x3b9ead,0x224)]?.[_0x349b01(_0x26b436._0x5e6d24,_0x26b436._0x53a030,_0x26b436._0x25aa93,0x19a)]}};}},GitHubAnthropicSessionResolver=class{constructor(_0x1c648a){const _0x137953={_0x59e18d:0xd4,_0x21dc4e:0x7,_0x21222f:0x16},_0x1b518a={_0x29bb18:0x1dd};function _0xd5cbb8(_0x4b354c,_0x173cd8,_0x2cb39e,_0x57c9d4){return _0x22bdb8(_0x4b354c-_0x1b518a._0x29bb18,_0x173cd8- -0x2f,_0x2cb39e,_0x57c9d4-0x154);}this[_0xd5cbb8(-0x33,_0x137953._0x59e18d,_0x137953._0x21dc4e,_0x137953._0x21222f)]=_0x1c648a;}async[_0x101ac3(0x57b,0x56c,0x5cc,0x540)](_0x489eb6){const _0x39dc8a={_0x48c6fe:0xb2,_0x4b0940:0x1b0,_0x2b23d8:0x63,_0x341bcb:0x6f,_0x8edaff:0x2c,_0x555091:0xf2},_0x1a4ba6={_0x14e37c:0x162},_0x220b69={_0x2caae9:0x70},_0x3d2c48=await this[_0xf40175(_0x39dc8a._0x48c6fe,_0x39dc8a._0x4b0940,0x1ab,0x12d)][_0xf40175(0x4f,-0xa,0xf6,0x99)](_0x489eb6),_0x2afa26=_0x3d2c48[_0xf40175(0x7c,0xfd,0x2e,0x148)]?.['api'];function _0xe950ad(_0x3c0c80,_0x2e922b,_0x5dc4fc,_0x3c4889){return _0x101ac3(_0x3c0c80-0x30,_0x2e922b-0x18e,_0x3c0c80,_0x3c4889-_0x220b69._0x2caae9);}function _0xf40175(_0x43fc32,_0x4624bb,_0xb31233,_0x5a1890){return _0x101ac3(_0x43fc32-0x188,_0x4624bb-_0x1a4ba6._0x14e37c,_0x5a1890,_0x43fc32- -0x4f1);}if(!_0x2afa26)return structuredClone(_0x3d2c48);return{..._0x3d2c48,'endpoints':{..._0x3d2c48['endpoints'],'api':trimTrailingSlashes2(_0x2afa26)+_0xf40175(_0x39dc8a._0x2b23d8,_0x39dc8a._0x341bcb,-_0x39dc8a._0x8edaff,_0x39dc8a._0x555091)}};}[_0x101ac3(0x4fa,0x6b9,0x6cb,0x5e4)](){const _0x1365c4={_0x10c35f:0x199,_0x387907:0x50a,_0x3ad463:0x514,_0x39028c:0x4ba,_0x3cc88e:0x55f},_0x2d746d={_0x1ca510:0x8,_0x2f9522:0x43d};function _0x230928(_0x3af057,_0x3b400e,_0x41e6a6,_0x161144){return _0x22bdb8(_0x3af057-0x10,_0x3b400e-0x3d0,_0x3af057,_0x161144-0x1b);}function _0x53a5a6(_0x3da1b0,_0x141eba,_0x39482e,_0x1ef81c){return _0x101ac3(_0x3da1b0-0x1a3,_0x141eba-_0x2d746d._0x1ca510,_0x1ef81c,_0x3da1b0- -_0x2d746d._0x2f9522);}this[_0x53a5a6(0x166,0x20e,_0x1365c4._0x10c35f,0x25d)][_0x230928(_0x1365c4._0x387907,_0x1365c4._0x3ad463,_0x1365c4._0x39028c,_0x1365c4._0x3cc88e)]?.();}};function trimTrailingSlashes2(_0x1476eb){return _0x1476eb['replace'](/\/+$/,'');}function createModelInfo(_0x178acc){const _0x4f9ab8={_0x275e3a:0x26d,_0x14d6a7:0x259,_0x374f75:0x297,_0x1527db:0x24d,_0x5571f2:0x199,_0x2b8b8d:0x177,_0x235a86:0x275,_0x305b8a:0x24e,_0x44c29a:0x329,_0x4a83c9:0x38b,_0x286c7a:0x276,_0x2f1e38:0x30a,_0xaa39c0:0x211},_0x477c15={_0x89a48c:0x133},_0xb8d7c9={_0x455ef7:0x152},_0x3d2c49=_0x178acc[_0x5a6f44(_0x4f9ab8._0x275e3a,_0x4f9ab8._0x14d6a7,_0x4f9ab8._0x374f75,_0x4f9ab8._0x1527db)]??_0x178acc[_0x5a6f44(0x141,0x25e,0x186,0x206)],_0x8a1ae5=_0x178acc[_0x5a6f44(0xd7,0x1fa,_0x4f9ab8._0x5571f2,_0x4f9ab8._0x2b8b8d)]?.['limits']?.[_0x5dd2d0(_0x4f9ab8._0x235a86,0x2b8,0x285,0x18b)],_0x4ffd75=_0x178acc[_0x5a6f44(0x15e,_0x4f9ab8._0x305b8a,_0x4f9ab8._0x5571f2,0x278)]?.['limits']?.[_0x5dd2d0(0x389,_0x4f9ab8._0x44c29a,_0x4f9ab8._0x4a83c9,0x286)],_0x28fc25=_0x8a1ae5!==void 0x0||_0x4ffd75!==void 0x0?{..._0x8a1ae5!==void 0x0?{'contextWindow':_0x8a1ae5}:{},..._0x4ffd75!==void 0x0?{'maxOutput':_0x4ffd75}:{}}:void 0x0;function _0x5a6f44(_0x416564,_0x58a19c,_0x649ad8,_0x28c426){return _0x22bdb8(_0x416564-0x1b2,_0x649ad8-0xd0,_0x58a19c,_0x28c426-_0xb8d7c9._0x455ef7);}function _0x5dd2d0(_0x35fb3a,_0x158589,_0x4cd46b,_0x4d3741){return _0x22bdb8(_0x35fb3a-_0x477c15._0x89a48c,_0x35fb3a-0x268,_0x4d3741,_0x4d3741-0xa);}return{'id':_0x178acc['id'],'name':_0x178acc[_0x5dd2d0(_0x4f9ab8._0x286c7a,0x2ca,_0x4f9ab8._0x2f1e38,_0x4f9ab8._0xaa39c0)]??_0x178acc['id'],..._0x28fc25?{'limits':_0x28fc25}:{},..._0x3d2c49?{'supportedEndpoints':_0x3d2c49}:{}};}function deduplicateModels(_0xd132eb){const _0x48df06={_0x504153:0xe9,_0x57b5ae:0x1c1,_0xf722b7:0x12f,_0x33dbc1:0x192},_0x52f206={_0x496e2d:0x7a,_0x2e8464:0x73,_0x4f2399:0x4d3},_0x17e58f={_0x350d80:0x16c,_0x3bfd17:0x137};function _0x248ca1(_0x5bf8a8,_0x633bc,_0x46e4b1,_0x554a0f){return _0x22bdb8(_0x5bf8a8-0x7a,_0x633bc- -_0x17e58f._0x350d80,_0x5bf8a8,_0x554a0f-_0x17e58f._0x3bfd17);}const _0x1d4e08=new Map();function _0x44875c(_0x58e5e5,_0x29950d,_0x4a976b,_0x4d44b1){return _0x101ac3(_0x58e5e5-_0x52f206._0x496e2d,_0x29950d-_0x52f206._0x2e8464,_0x4d44b1,_0x58e5e5- -_0x52f206._0x4f2399);}for(const _0x1b4918 of _0xd132eb){!_0x1d4e08[_0x44875c(0x14a,0x1e6,0x1f7,_0x48df06._0x504153)](_0x1b4918['id'])&&_0x1d4e08[_0x248ca1(-_0x48df06._0x57b5ae,-_0x48df06._0xf722b7,-_0x48df06._0x33dbc1,-0x129)](_0x1b4918['id'],_0x1b4918);}return Array['from'](_0x1d4e08['values']());}function hasUserPromptContent(_0x3cec51){const _0x55d970={_0x29d5fc:0x630,_0x58b6ba:0x6aa},_0xd0b0ff={_0x2f0070:0xa8,_0x4d2081:0x1aa,_0x556ce7:0x22,_0x2b60d2:0x18f,_0x51b2ff:0x8f,_0x399c8b:0x2b,_0x128e66:0x10b,_0x2207b9:0x1c0,_0x26a941:0x1a6,_0x157ddf:0x67,_0x5db129:0x115,_0x1d31aa:0x68};if(typeof _0x3cec51==='string')return _0x3cec51['trim']()['length']>0x0;if(!Array[_0x2f7e73(_0x55d970._0x29d5fc,0x6f9,_0x55d970._0x58b6ba,0x7b1)](_0x3cec51))return![];function _0x2f7e73(_0x469a03,_0x5728f2,_0x5cef8a,_0x14a095){return _0x101ac3(_0x469a03-0xf0,_0x5728f2-0x10c,_0x469a03,_0x5728f2-0xa7);}return _0x3cec51['some'](_0x175df6=>{const _0x435869={_0x3358b0:0x6fc},_0x1b7531={_0x7a53fa:0x518,_0x2c0acb:0x7c};function _0x12d74e(_0x254d1e,_0x51e243,_0x438415,_0x317b){return _0x2f7e73(_0x438415,_0x317b- -_0x1b7531._0x7a53fa,_0x438415-_0x1b7531._0x2c0acb,_0x317b-0x125);}if(!_0x175df6||typeof _0x175df6!==_0x12d74e(_0xd0b0ff._0x2f0070,0x2a2,0x19f,_0xd0b0ff._0x4d2081))return![];const _0x1c744f=_0x175df6;function _0x49a363(_0x51300c,_0x45794a,_0x436baf,_0x5b6c79){return _0x2f7e73(_0x45794a,_0x5b6c79- -_0x435869._0x3358b0,_0x436baf-0x1df,_0x5b6c79-0x1b8);}return(_0x1c744f[_0x49a363(_0xd0b0ff._0x556ce7,0x36,-_0xd0b0ff._0x2b60d2,-_0xd0b0ff._0x51b2ff)]===_0x49a363(-_0xd0b0ff._0x399c8b,_0xd0b0ff._0x128e66,-0xd3,0x15)||_0x1c744f['type']==='text')&&typeof _0x1c744f[_0x12d74e(0x189,0x167,0x13d,_0xd0b0ff._0x2207b9)]===_0x49a363(-_0xd0b0ff._0x26a941,-0x132,-0x188,-0x189)&&_0x1c744f['text'][_0x49a363(0xb4,_0xd0b0ff._0x157ddf,_0xd0b0ff._0x5db129,_0xd0b0ff._0x1d31aa)]()['length']>0x0;});}function _isUserPromptEntry(_0x41616b){const _0x41599e={_0x8aed49:0x11,_0x14006f:0x63,_0x251615:0x55,_0x4f2f80:0x67,_0x3ec23f:0x334,_0x5de448:0x368,_0x3d7efd:0x2c5,_0x406193:0x20e},_0x2c07c9={_0x23b0b6:0x171},_0x42e5ae={_0x2b9260:0x141,_0xd46fb:0x11d};if(!_0x41616b||typeof _0x41616b!=='object')return![];const _0x1d26d8=_0x41616b;function _0x3bdd99(_0x2fcc70,_0x130aff,_0xfe2383,_0x2d2f92){return _0x22bdb8(_0x2fcc70-_0x42e5ae._0x2b9260,_0x2d2f92-0x168,_0xfe2383,_0x2d2f92-_0x42e5ae._0xd46fb);}function _0x8174b1(_0x1e2b74,_0x147533,_0x49ef82,_0x3b265a){return _0x22bdb8(_0x1e2b74-0x1cb,_0x147533- -0x14e,_0x3b265a,_0x3b265a-_0x2c07c9._0x23b0b6);}if(_0x1d26d8[_0x8174b1(_0x41599e._0x8aed49,-0x5f,0x10,-0x46)]!==_0x8174b1(-_0x41599e._0x14006f,-_0x41599e._0x251615,-_0x41599e._0x4f2f80,0x7b))return![];if(_0x1d26d8['type']!==void 0x0&&_0x1d26d8[_0x3bdd99(0x288,0x38d,_0x41599e._0x3ec23f,0x28e)]!==_0x3bdd99(0x3a1,0x1dc,_0x41599e._0x5de448,_0x41599e._0x3d7efd))return![];return hasUserPromptContent(_0x1d26d8[_0x3bdd99(_0x41599e._0x406193,0x137,0x196,0x21a)]);}function determineInitiator(_0x455487){const _0x2b757f={_0x171265:0x60,_0x14ea15:0x211,_0x3e65ea:0x10e,_0x4078f0:0x257,_0x3360a3:0x337,_0x1ffb58:0x176,_0x29e40b:0x42e,_0x494f9a:0x3ed,_0x7b1cce:0x341,_0x2b9da0:0x36,_0x57f34a:0x84,_0x3d6f4d:0x5,_0x446abe:0x4c8,_0x42f853:0x443,_0xfc9ca5:0x36c,_0x454283:0x3eb,_0x512b9a:0x3c7,_0x477bb3:0x3e6,_0x1252fb:0x334,_0x29cf4d:0x4e5,_0x5c77e4:0x443,_0x48fc76:0x51c,_0x4683a2:0x4fd},_0x75c610={_0x5227be:0xb8},_0x3d6b63={_0x143c61:0xa0};function _0x2f4711(_0x4243b3,_0x545401,_0x154f20,_0x443b97){return _0x22bdb8(_0x4243b3-0x185,_0x545401-0x23b,_0x154f20,_0x443b97-_0x3d6b63._0x143c61);}if(!_0x455487||typeof _0x455487!=='object')return _0x4b3f2d(0x198,_0x2b757f._0x171265,0x150,_0x2b757f._0x14ea15);function _0x4b3f2d(_0x1e4f1f,_0x5d1961,_0x8eab20,_0x1b5c1f){return _0x22bdb8(_0x1e4f1f-0x139,_0x8eab20- -_0x75c610._0x5227be,_0x5d1961,_0x1b5c1f-0x12d);}const _0x5c41ff=_0x4b3f2d(0x58,-_0x2b757f._0x3e65ea,-0x22,-0x5d)in _0x455487?_0x455487['messages']:_0x2f4711(0x29c,_0x2b757f._0x4078f0,_0x2b757f._0x3360a3,_0x2b757f._0x1ffb58)in _0x455487?_0x455487['input']:void 0x0;if(!Array[_0x2f4711(_0x2b757f._0x29e40b,_0x2b757f._0x494f9a,_0x2b757f._0x7b1cce,0x4f7)](_0x5c41ff)||_0x5c41ff[_0x4b3f2d(-_0x2b757f._0x2b9da0,_0x2b757f._0x57f34a,0xd4,-_0x2b757f._0x3d6f4d)]===0x0)return _0x2f4711(_0x2b757f._0x446abe,_0x2b757f._0x42f853,_0x2b757f._0xfc9ca5,_0x2b757f._0x454283);return _isUserPromptEntry(_0x5c41ff[_0x5c41ff[_0x2f4711(0x305,_0x2b757f._0x512b9a,0x398,0x3f1)]-0x1])?_0x2f4711(_0x2b757f._0x477bb3,_0x2b757f._0x1252fb,0x2ef,0x2be):_0x2f4711(_0x2b757f._0x29cf4d,_0x2b757f._0x5c77e4,_0x2b757f._0x48fc76,_0x2b757f._0x4683a2);}function isUnsupportedApiForModel(_0x395557){const _0x32a297={_0x4ef749:0x6a3,_0x937f43:0x732,_0x32a4e8:0x687,_0x24f6e8:0x6f6,_0x39c33b:0x669},_0x4987ed={_0x3dae1a:0x19d,_0x342392:0x54b},_0x1a3650={_0x402695:0x18e,_0x59d430:0xb4};function _0xa23586(_0x6af998,_0x33f592,_0x1acde1,_0x50415e){return _0x101ac3(_0x6af998-_0x1a3650._0x402695,_0x33f592-0x173,_0x33f592,_0x1acde1-_0x1a3650._0x59d430);}function _0x21cbd6(_0x19d1c4,_0x4e5554,_0x298d6c,_0x1ae148){return _0x22bdb8(_0x19d1c4-_0x4987ed._0x3dae1a,_0x298d6c-_0x4987ed._0x342392,_0x4e5554,_0x1ae148-0x54);}return _0x395557[_0x21cbd6(0x643,_0x32a297._0x4ef749,_0x32a297._0x937f43,_0x32a297._0x32a4e8)](_0x21cbd6(0x66d,_0x32a297._0x24f6e8,_0x32a297._0x39c33b,0x627));}function createResponseError(_0x3a8b81,_0x29e6f8){const _0x243b9b={_0xaee81d:0x1d8},_0x49d41c={_0x4faf48:0x136,_0x3b256b:0xfb,_0x3a3b26:0x40e};if(_0x3a8b81===0x191||_0x3a8b81===0x193)return new Error('Authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.');if(_0x3a8b81===0x198||_0x3a8b81===0x1ad)return new Error(_0x1c91a9(0x263,0x23a,0x1ca,_0x243b9b._0xaee81d));if(_0x3a8b81===0x190)return new Error('Invalid\x20request:\x20'+_0x29e6f8);function _0x1c91a9(_0x3263a7,_0x2ea12a,_0x1bec68,_0x12cfeb){return _0x101ac3(_0x3263a7-_0x49d41c._0x4faf48,_0x2ea12a-_0x49d41c._0x3b256b,_0x3263a7,_0x12cfeb- -_0x49d41c._0x3a3b26);}return new Error(_0x29e6f8||'GitHub\x20API\x20error\x20'+_0x3a8b81);}var GitHubModel=class extends OpenAiModel{[_0x101ac3(0x666,0x4c0,0x65c,0x586)];['modelEndpointCache']=new Map();[_0x101ac3(0x527,0x46a,0x470,0x56b)];constructor(_0x30d091={}){const _0x57ffe8={_0x3f08b4:0x34f,_0x18714c:0x3db,_0xe9acf2:0x444,_0x3efd16:0x1db,_0xde2b85:0x4f,_0x4c1234:0xfc,_0x2f82e3:0x14b,_0x1c95ff:0xee,_0x35178a:0xf7,_0x12ed09:0x3f,_0x41c5ac:0x29,_0x5a3fe5:0x3ba,_0x108615:0x351,_0x4a4187:0x43d,_0x377b8e:0x260,_0x4e1ac9:0x309,_0x1b1ffd:0x211,_0x59fadd:0x2f9,_0x3a020b:0x197,_0x4c606d:0x239,_0x4c304b:0x3d9,_0x20e787:0x45b,_0x5a4c85:0x1b2,_0x5ea197:0x219,_0x51f770:0x2cf,_0x571588:0x285,_0x163f9e:0x32d,_0x4f48c4:0x262,_0x86a38f:0x39e,_0x222103:0x30c,_0x1b1f8c:0x240,_0x41ee2f:0x40c,_0x54776b:0x298,_0x5f0a81:0x37c,_0x23e062:0x1b4,_0x2e7d68:0xf0,_0xfee05f:0x100,_0x59b735:0xff,_0x2339a5:0x27e,_0x4bd917:0x2e4,_0xeb1382:0x1e2,_0x366c6f:0x108,_0x1e1e71:0x1e,_0x101bac:0x10a,_0xb898ac:0x3d9,_0x234e62:0x2da,_0x37d5af:0x41a,_0x2a2559:0x491,_0x3f2b4e:0x11,_0x4ee32d:0x8e,_0x17c106:0x1,_0x2dfb6:0x10b,_0x445e1a:0x158,_0x369085:0xe1},_0x2bf402={_0x11cdaf:0x26,_0x2d54d9:0x8},_0x3a3bb3={_0x5e254b:0xa7};function _0x2964cc(_0x14d092,_0x5f7a56,_0x3a205d,_0x2b9118){return _0x101ac3(_0x14d092-_0x3a3bb3._0x5e254b,_0x5f7a56-0x113,_0x2b9118,_0x3a205d- -0x46c);}const _0x4d95b7=trimTrailingSlashes2(_0x30d091[_0x4381d9(_0x57ffe8._0x3f08b4,_0x57ffe8._0x18714c,0x252,_0x57ffe8._0xe9acf2)]??_0x2964cc(_0x57ffe8._0x3efd16,0x20e,0x151,0x130)),_0x5932d7=_0x30d091['fetch']??globalThis[_0x2964cc(0x165,_0x57ffe8._0xde2b85,_0x57ffe8._0x4c1234,0x15f)],_0x857bcf=_0x30d091[_0x2964cc(0xec,0x1f9,_0x57ffe8._0x2f82e3,0x13d)]??(_0x30d091['accessToken']?new GitHubAccessTokenResolver({'accessToken':_0x30d091[_0x2964cc(-0x40,0x151,0xc4,0x181)],'baseUrl':_0x4d95b7,'fetch':_0x5932d7,'githubApiUrl':_0x30d091['githubApiUrl']??'https://api.github.com','tokenExchangeApiVersion':_0x30d091['tokenExchangeApiVersion']??_0x2964cc(_0x57ffe8._0x1c95ff,_0x57ffe8._0x35178a,_0x57ffe8._0x12ed09,_0x57ffe8._0x41c5ac)}):void 0x0),_0x22d089=_0x30d091[_0x4381d9(_0x57ffe8._0x5a3fe5,0x4a1,0x40e,0x468)]??_0x4381d9(_0x57ffe8._0x108615,0x3b9,0x2ef,_0x57ffe8._0x4a4187);function _0x4381d9(_0x28c18c,_0x9a568b,_0x187a00,_0x257cec){return _0x101ac3(_0x28c18c-_0x2bf402._0x11cdaf,_0x9a568b-_0x2bf402._0x2d54d9,_0x257cec,_0x28c18c- -0x26b);}const _0x16c166=_0x30d091['editorPluginVersion']??_0x4381d9(0x316,0x30b,0x20f,_0x57ffe8._0x377b8e),_0x3c754f=({body:_0x435704})=>{return{'editor-plugin-version':_0x16c166,'editor-version':_0x22d089,'x-initiator':determineInitiator(_0x435704),'x-request-id':randomUUID()};},_0x17f4f8=_0x4d95b7+_0x4381d9(0x2e9,0x2a3,0x2db,0x287),_0xe957c5=_0x857bcf?new GitHubAnthropicSessionResolver(_0x857bcf):void 0x0,_0x2617cf={'apiKey':_0x30d091[_0x4381d9(_0x57ffe8._0x4e1ac9,0x2f6,_0x57ffe8._0x1b1ffd,_0x57ffe8._0x59fadd)],'baseUrl':_0x4d95b7,'fetch':_0x5932d7,'maxTokens':_0x30d091[_0x4381d9(0x283,0x1f2,_0x57ffe8._0x3a020b,_0x57ffe8._0x4c606d)],'model':_0x30d091[_0x4381d9(_0x57ffe8._0x4c304b,_0x57ffe8._0x20e787,0x4b3,0x33a)],'modelIdentity':_0x30d091[_0x2964cc(_0x57ffe8._0x5a4c85,0x244,_0x57ffe8._0x5ea197,0x2d8)],..._0x30d091[_0x4381d9(_0x57ffe8._0x51f770,_0x57ffe8._0x571588,_0x57ffe8._0x163f9e,_0x57ffe8._0x4f48c4)]!==void 0x0?{'pricingProviderId':_0x30d091[_0x4381d9(0x2cf,_0x57ffe8._0x86a38f,0x35f,0x331)]}:{},'reasoning':_0x30d091[_0x4381d9(_0x57ffe8._0x222103,_0x57ffe8._0x1b1f8c,0x2e5,_0x57ffe8._0x41ee2f)],'providerSessionResolver':_0x857bcf,'requestMutators':_0x30d091[_0x4381d9(_0x57ffe8._0x54776b,0x194,_0x57ffe8._0x5f0a81,_0x57ffe8._0x23e062)],'headerResolver':_0x3c754f,..._0x30d091[_0x2964cc(0x15a,0xd8,_0x57ffe8._0x2e7d68,0xa3)]?{'webSocketFactory':_0x30d091[_0x2964cc(0x9c,0xcc,0xf0,_0x57ffe8._0xfee05f)]}:{}};super(_0x2617cf),this[_0x2964cc(0x17c,0x35,_0x57ffe8._0x59b735,0x1d8)]=_0x30d091['surface']??_0x4381d9(0x2bc,0x2b1,_0x57ffe8._0x2339a5,_0x57ffe8._0x4bd917),this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x30d091[_0x2964cc(_0x57ffe8._0xeb1382,0x64,_0x57ffe8._0x366c6f,0x151)],'authScheme':_0x2964cc(0x1d6,_0x57ffe8._0x1e1e71,0xe7,_0x57ffe8._0x101bac),'baseUrl':_0x17f4f8,'fetch':_0x5932d7,'headerResolver':_0x3c754f,'maxTokens':_0x30d091['maxTokens'],'model':_0x30d091[_0x4381d9(_0x57ffe8._0xb898ac,0x386,_0x57ffe8._0x234e62,0x4c3)],'modelIdentity':_0x30d091[_0x4381d9(_0x57ffe8._0x37d5af,_0x57ffe8._0x2a2559,0x361,0x44d)],..._0x30d091['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x30d091[_0x2964cc(_0x57ffe8._0x3f2b4e,0x134,0xce,_0x57ffe8._0x4ee32d)]}:{},'reasoning':_0x30d091[_0x2964cc(0x1ed,_0x57ffe8._0x17c106,_0x57ffe8._0x2dfb6,0xd)],'providerSessionResolver':_0xe957c5,'requestMutators':_0x30d091[_0x2964cc(-0x4b,_0x57ffe8._0x445e1a,0x97,_0x57ffe8._0x369085)]});}['createMissingCredentialError'](){const _0x39f17d={_0x1a159d:0x2b},_0x117f2b={_0x1c1bc1:0x12c};function _0x1ad3d3(_0x5d5b01,_0x53af15,_0x46e46a,_0x4c0627){return _0x22bdb8(_0x5d5b01-0x31,_0x4c0627- -0x1b6,_0x5d5b01,_0x4c0627-_0x117f2b._0x1c1bc1);}return new Error(_0x1ad3d3(-0x1df,-_0x39f17d._0x1a159d,-0x1c3,-0x127));}['usesResponsesApi'](_0x5de152){const _0x44ed2c={_0x2a59aa:0x485,_0x22df39:0xe9,_0x1fcaac:0x11a,_0x3ce6d9:0x123,_0x168a0c:0x46,_0x52ec8e:0x1f},_0x2c413a={_0x11fe8a:0x7c,_0x3e4357:0x6cd},_0x4225b8={_0x211aaa:0x12},_0x48e764=this[_0x2c01b3(0x477,0x580,0x577,_0x44ed2c._0x2a59aa)][_0x3719d1(-_0x44ed2c._0x22df39,-0x43,0xd,0xc4)](_0x5de152);function _0x2c01b3(_0x870ac8,_0x45f4d9,_0x5e82e6,_0x15e8ac){return _0x101ac3(_0x870ac8-0x149,_0x45f4d9-0x17,_0x5e82e6,_0x45f4d9-_0x4225b8._0x211aaa);}function _0x3719d1(_0x4906b6,_0x18b84d,_0x46e1a7,_0x35be7c){return _0x101ac3(_0x4906b6-_0x2c413a._0x11fe8a,_0x18b84d-0x47,_0x35be7c,_0x18b84d- -_0x2c413a._0x3e4357);}if(!_0x48e764)return![];return!_0x48e764[_0x3719d1(-_0x44ed2c._0x1fcaac,-0x46,-0x7,-0x92)]('/chat/completions')&&_0x48e764[_0x3719d1(-_0x44ed2c._0x3ce6d9,-_0x44ed2c._0x168a0c,0x43,_0x44ed2c._0x52ec8e)](_0x2c01b3(0x59c,0x659,0x6b1,0x592));}[_0x22bdb8(0x3f,0x1e,0xcc,-0x33)](_0x26c97c){const _0x43a124={_0x39c319:0x475,_0x1cc12b:0x3c5,_0x57328a:0x33c,_0x4c0285:0x555,_0x51aff2:0x382,_0x413039:0x2f5,_0x15fd46:0x393,_0x25e9db:0x300},_0x185351={_0x1dc046:0x3c,_0x58b061:0x11d},_0xfb9c55={_0x4ad871:0xb6};function _0x590f80(_0xf09df0,_0x309217,_0x5623d6,_0x21220f){return _0x22bdb8(_0xf09df0-0x1bc,_0x309217-0x1db,_0xf09df0,_0x21220f-_0xfb9c55._0x4ad871);}function _0x8ca999(_0x5cb80e,_0x565e33,_0x266284,_0x1c538c){return _0x101ac3(_0x5cb80e-_0x185351._0x1dc046,_0x565e33-0x2b,_0x1c538c,_0x266284- -_0x185351._0x58b061);}const _0x579170=this['modelEndpointCache'][_0x590f80(_0x43a124._0x39c319,_0x43a124._0x1cc12b,_0x43a124._0x57328a,0x45d)](_0x26c97c['model']);if(!_0x579170)return![];if(resolveOpenAiReasoningConfig(_0x26c97c['reasoning']))return _0x579170[_0x8ca999(0x639,_0x43a124._0x4c0285,0x56a,0x664)](_0x590f80(0x377,_0x43a124._0x51aff2,0x337,0x36e));return this[_0x8ca999(0x34e,_0x43a124._0x413039,0x3ac,_0x43a124._0x15fd46)](_0x26c97c[_0x590f80(0x36d,0x37f,0x42f,_0x43a124._0x25e9db)]);}[_0x101ac3(0x5a0,0x5c2,0x4d9,0x4bf)](_0x279760){const _0x35d79a={_0x1b2244:0x574,_0xc9f313:0x5bc,_0x3b9447:0x661,_0x390924:0x4f0},_0x5af1e5={_0xcee9c7:0x7d,_0x4671db:0xac};function _0xaa19ce(_0x4302d3,_0x305f35,_0x5852d6,_0x2c09c2){return _0x101ac3(_0x4302d3-_0x5af1e5._0xcee9c7,_0x305f35-0x1e1,_0x305f35,_0x2c09c2-_0x5af1e5._0x4671db);}function _0x30be08(_0x3f64de,_0x2d0ea1,_0x14dc29,_0x10f7e){return _0x101ac3(_0x3f64de-0x5a,_0x2d0ea1-0x78,_0x3f64de,_0x2d0ea1- -0xc2);}this[_0x30be08(0x4d1,0x4ac,0x403,_0x35d79a._0x1b2244)][_0xaa19ce(_0x35d79a._0xc9f313,0x4e7,_0x35d79a._0x3b9447,0x589)](_0x279760,[_0x30be08(0x562,0x585,0x4b3,_0x35d79a._0x390924)]);}[_0x101ac3(0x5f5,0x4a9,0x561,0x5af)](_0x1f30df){if(_0x1f30df instanceof OpenAiApiError)return createResponseError(_0x1f30df['status'],_0x1f30df['body']||_0x1f30df['message']);return _0x1f30df;}['completeViaConfiguredSurface'](_0x1b999e,_0x53bbda){const _0x2f531f={_0x14078a:0x51e,_0x24bdc2:0x528,_0x3a6cfd:0x615,_0x59326c:0x3c8,_0x924fb9:0x562,_0x34a78b:0x52b,_0x23fffe:0x4a5,_0x4cea67:0x38a,_0x18344f:0x396,_0x160580:0x4b7,_0x2c1813:0x534,_0x28d77b:0x55f,_0x1e436f:0x4ad,_0x41ac32:0x454,_0x85e75:0x3a6,_0x87bab4:0x337,_0x322d7b:0x650,_0x42477d:0x564,_0x3ca796:0x3a5,_0x50675c:0x2c0,_0x38f587:0x434},_0x51a258={_0x1d1632:0x2f,_0xf54762:0x2b0},_0x193de6={_0x1530d4:0x62,_0x4a4fce:0x453};function _0xd47dfc(_0x430482,_0xf339ec,_0x1a4b6e,_0x6ad90d){return _0x22bdb8(_0x430482-_0x193de6._0x1530d4,_0xf339ec-_0x193de6._0x4a4fce,_0x6ad90d,_0x6ad90d-0x4a);}function _0x259a3(_0x114f02,_0x52fa42,_0x59798a,_0x7ca99d){return _0x22bdb8(_0x114f02-_0x51a258._0x1d1632,_0x7ca99d-_0x51a258._0xf54762,_0x59798a,_0x7ca99d-0xcd);}switch(this[_0xd47dfc(0x5ec,_0x2f531f._0x14078a,_0x2f531f._0x24bdc2,_0x2f531f._0x3a6cfd)]){case _0x259a3(_0x2f531f._0x59326c,_0x2f531f._0x924fb9,_0x2f531f._0x34a78b,_0x2f531f._0x23fffe):return this[_0x259a3(0x464,0x46f,_0x2f531f._0x4cea67,_0x2f531f._0x18344f)]['complete'](_0x1b999e,_0x53bbda);case'openai-chat-completions':return this['chatComplete'](_0x1b999e,_0x53bbda);case _0x259a3(0x324,_0x2f531f._0x160580,0x3c1,0x425):return this[_0xd47dfc(_0x2f531f._0x2c1813,0x47d,0x510,_0x2f531f._0x28d77b)](_0x1b999e,_0x53bbda);case'openai-responses-ws':return this[_0x259a3(_0x2f531f._0x1e436f,0x2c5,_0x2f531f._0x41ac32,_0x2f531f._0x85e75)](_0x1b999e,_0x53bbda);case _0x259a3(0x290,0x372,0x29b,_0x2f531f._0x87bab4):return this[_0xd47dfc(0x5b3,_0x2f531f._0x322d7b,_0x2f531f._0x42477d,0x58e)](_0x1b999e,_0x53bbda);}throw new Error(_0x259a3(0x404,_0x2f531f._0x3ca796,0x29a,0x367)+String(this[_0x259a3(_0x2f531f._0x50675c,0x34d,_0x2f531f._0x38f587,0x37b)]));}['streamViaConfiguredSurface'](_0x297d2d,_0x2806ce){const _0x3ab4d6={_0x2cf6d0:0x72c,_0x37762d:0x514,_0x36421a:0x527,_0x25308f:0x612,_0x545677:0x6c2,_0x2b3759:0x6ce,_0x3cc569:0x5fd,_0xd0feda:0x6b8,_0x19789f:0x66b,_0x5f1eca:0x6ef,_0x3005e9:0x75b,_0xceeea6:0x6fd,_0x2e192b:0x50f,_0x1d028e:0x5a6,_0x5ed7d8:0x6f6,_0x27b6a1:0x5d9,_0x4d5b18:0x60f,_0x383094:0x58a,_0x50ead7:0x5d2,_0x28aeae:0x5ed,_0x26bfa4:0x630,_0x532370:0x6c8,_0x501284:0x682,_0xa5ba65:0x59e,_0x2f7169:0x5e3,_0x2960d2:0x503,_0x3b9ceb:0x4fc},_0x5a9dfc={_0x111078:0xe8},_0x4f321c={_0x299829:0x1d5,_0x104ff6:0xde,_0x345813:0x83};switch(this['surface']){case _0x14b13c(_0x3ab4d6._0x2cf6d0,0x6bf,0x763,0x721):return this[_0x14b13c(_0x3ab4d6._0x37762d,0x6d6,_0x3ab4d6._0x36421a,_0x3ab4d6._0x25308f)][_0x4a2897(_0x3ab4d6._0x545677,_0x3ab4d6._0x2b3759,_0x3ab4d6._0x3cc569,_0x3ab4d6._0xd0feda)](_0x297d2d,_0x2806ce);case _0x4a2897(_0x3ab4d6._0x19789f,0x51a,0x667,0x5e9):return this[_0x4a2897(0x719,_0x3ab4d6._0x5f1eca,_0x3ab4d6._0x3005e9,_0x3ab4d6._0xceeea6)](_0x297d2d,_0x2806ce);case'openai-responses':return this['responseStream'](_0x297d2d,_0x2806ce);case _0x14b13c(0x4e8,0x534,_0x3ab4d6._0x2e192b,_0x3ab4d6._0x1d028e):return this[_0x14b13c(_0x3ab4d6._0x5ed7d8,_0x3ab4d6._0x27b6a1,_0x3ab4d6._0x4d5b18,0x6cd)](_0x297d2d,_0x2806ce);case _0x4a2897(_0x3ab4d6._0x383094,_0x3ab4d6._0x50ead7,0x5d8,0x5aa):return this[_0x4a2897(_0x3ab4d6._0x28aeae,_0x3ab4d6._0x26bfa4,_0x3ab4d6._0x532370,_0x3ab4d6._0xd0feda)](_0x297d2d,_0x2806ce);}function _0x4a2897(_0x1d1a08,_0x2e1396,_0x3a729e,_0x4df42f){return _0x101ac3(_0x1d1a08-_0x4f321c._0x299829,_0x2e1396-_0x4f321c._0x104ff6,_0x2e1396,_0x4df42f-_0x4f321c._0x345813);}function _0x14b13c(_0x33926c,_0x2180ea,_0xfcf987,_0x157c19){return _0x22bdb8(_0x33926c-_0x5a9dfc._0x111078,_0x157c19-0x52c,_0x33926c,_0x157c19-0x77);}throw new Error(_0x14b13c(_0x3ab4d6._0x501284,_0x3ab4d6._0xa5ba65,0x670,_0x3ab4d6._0x2f7169)+String(this[_0x4a2897(0x51e,_0x3ab4d6._0x2960d2,_0x3ab4d6._0x3b9ceb,0x5ee)]));}async['complete'](_0x5043fa,_0x430cd0){const _0x484ceb={_0x32abf7:0x518,_0x508424:0x42a,_0x1df448:0x63,_0x8f21b7:0x11e,_0x2b232a:0x1b1,_0x269cef:0x450,_0x4caa69:0x496,_0xbb7da3:0x331,_0x5a3799:0x4b9,_0x4b02ed:0x471,_0x3dfae3:0x35a,_0x59833f:0x362,_0x3b12f9:0x3f8,_0x2bd875:0x50a,_0x56c1c4:0x4fd,_0x43cf31:0xeb,_0x501404:0x45,_0x31cf0a:0x18,_0x321f7f:0x61},_0x2fcddf={_0x98ef34:0x103},_0x52ab54={_0x4d4795:0x12,_0x2dd10c:0x15c},_0x36e7a1=this[_0x126b5f(_0x484ceb._0x32abf7,0x477,0x4f3,_0x484ceb._0x508424)](_0x5043fa);function _0x126b5f(_0x45941d,_0x8222a3,_0x15f3b3,_0x2240b4){return _0x22bdb8(_0x45941d-_0x52ab54._0x4d4795,_0x15f3b3-0x40f,_0x2240b4,_0x2240b4-_0x52ab54._0x2dd10c);}if(this[_0x5a6119(-_0x484ceb._0x1df448,-_0x484ceb._0x8f21b7,-0x159,-_0x484ceb._0x2b232a)]!==_0x126b5f(_0x484ceb._0x269cef,0x489,_0x484ceb._0x4caa69,0x4e4))return this['completeViaConfiguredSurface'](_0x36e7a1,_0x430cd0);if(this[_0x126b5f(_0x484ceb._0xbb7da3,_0x484ceb._0x5a3799,0x42d,0x4f4)](_0x36e7a1))return this[_0x126b5f(0x445,0x37d,0x439,_0x484ceb._0x4b02ed)](_0x36e7a1,_0x430cd0);function _0x5a6119(_0x44272e,_0x404d48,_0x17923a,_0x5b5a6b){return _0x22bdb8(_0x44272e-0xe2,_0x404d48- -0x1e9,_0x5b5a6b,_0x5b5a6b-_0x2fcddf._0x98ef34);}try{return await this[_0x126b5f(_0x484ceb._0x3dfae3,0x3a6,0x419,_0x484ceb._0x59833f)](_0x36e7a1,_0x430cd0);}catch(_0x18f3a3){if(_0x18f3a3 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x18f3a3[_0x126b5f(_0x484ceb._0x3b12f9,_0x484ceb._0x2bd875,_0x484ceb._0x56c1c4,0x409)]))return this[_0x5a6119(-0x1bc,-0x1ca,-0x156,-_0x484ceb._0x43cf31)](_0x36e7a1[_0x5a6119(0x18,-_0x484ceb._0x501404,0x12,-0x2f)]),this['response'](_0x36e7a1,_0x430cd0);throw this[_0x5a6119(_0x484ceb._0x31cf0a,-0xda,-0xdb,-_0x484ceb._0x321f7f)](_0x18f3a3);}throw _0x18f3a3;}}async*[_0x101ac3(0x537,0x639,0x575,0x635)](_0x21c9e8,_0x33456a){const _0x5f550d={_0x3c1525:0x311,_0x1a1d21:0x200,_0x35e0b2:0x363,_0x14dec3:0x490,_0x418d6e:0x3a4,_0x2df094:0x445,_0xd5605:0x2d5,_0x512c5f:0x203},_0xf00ba3={_0x2812d8:0x1a4},_0x1abd09={_0x13b83a:0x31e},_0x1e57bf=this[_0x2b4c7c(0x25d,0x28e,_0x5f550d._0x3c1525,0x152)](_0x21c9e8);function _0x450b48(_0x2488db,_0x30aad2,_0x702c47,_0x31b3ae){return _0x101ac3(_0x2488db-0x151,_0x30aad2-0xbf,_0x702c47,_0x2488db- -_0x1abd09._0x13b83a);}function _0x2b4c7c(_0x21d168,_0x52fe70,_0x505940,_0x29e5e0){return _0x22bdb8(_0x21d168-0x1a2,_0x21d168-0x179,_0x505940,_0x29e5e0-_0xf00ba3._0x2812d8);}if(this[_0x2b4c7c(0x244,0x1b5,0x153,0x1ff)]!==_0x2b4c7c(_0x5f550d._0x1a1d21,0x158,0x224,0x2c4)){yield*this[_0x450b48(0x392,_0x5f550d._0x35e0b2,_0x5f550d._0x14dec3,0x456)](_0x1e57bf,_0x33456a);return;}if(this['shouldPreferResponsesApi'](_0x1e57bf)){yield*this[_0x450b48(_0x5f550d._0x418d6e,_0x5f550d._0x2df094,0x485,_0x5f550d._0xd5605)](_0x1e57bf,_0x33456a);return;}try{yield*this[_0x450b48(0x35b,0x29d,0x3a3,0x25d)](_0x1e57bf,_0x33456a);}catch(_0x57a2b3){if(_0x57a2b3 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x57a2b3['body'])){this['markModelAsResponsesOnly'](_0x1e57bf['model']),yield*this['responseStream'](_0x1e57bf,_0x33456a);return;}throw this[_0x450b48(0x291,_0x5f550d._0x512c5f,0x186,0x334)](_0x57a2b3);}throw _0x57a2b3;}}async[_0x101ac3(0x5d5,0x5e5,0x75a,0x6a3)](_0x8e8ce5){const _0x52ed0c={_0x530d1e:0x6d5,_0x22b62c:0x6bd,_0x5d40d9:0x387,_0x31d687:0x56d,_0x480290:0x6e3,_0x4e22d2:0x58d},_0x3250e3={_0x1bf136:0x4a5,_0x19b5aa:0x586,_0x3dc1a8:0x5fd,_0x262a58:0x523,_0x593be4:0x4b0,_0x47ec6c:0x377,_0x566813:0x45c,_0x20333c:0x4cb},_0x4abb56={_0x4de956:0x1d2},_0x3b1be0={_0x10e4c0:0xca,_0x480f24:0x509,_0x14d4cf:0x168},_0x36aeb1=await this['sendRawRequest']({'path':'/models','method':_0x2361c5(_0x52ed0c._0x530d1e,0x689,_0x52ed0c._0x22b62c,0x63b),'signal':_0x8e8ce5});if(!_0x36aeb1['ok'])throw this[_0x53b5d5(_0x52ed0c._0x5d40d9,0x3e4,0x392,0x489)](await this[_0x53b5d5(0x549,0x5b3,0x4da,_0x52ed0c._0x31d687)](_0x36aeb1));const _0x105dfb=await _0x36aeb1['json']();function _0x2361c5(_0x111d49,_0x11b12d,_0x180c95,_0x734bae){return _0x22bdb8(_0x111d49-_0x3b1be0._0x10e4c0,_0x734bae-_0x3b1be0._0x480f24,_0x11b12d,_0x734bae-_0x3b1be0._0x14d4cf);}function _0x53b5d5(_0x3c322f,_0x3c1ea2,_0x13bb24,_0x375e24){return _0x22bdb8(_0x3c322f-_0x4abb56._0x4de956,_0x375e24-0x37a,_0x3c322f,_0x375e24-0x136);}const _0x273515=(_0x105dfb[_0x2361c5(_0x52ed0c._0x480290,0x6b9,_0x52ed0c._0x4e22d2,0x632)]??[])['map'](_0x32f41f=>{const _0x51be60={_0x3d68ee:0x35},_0x37243a={_0x5f5bc0:0x11,_0x5d0277:0x104};function _0x373a7c(_0x2f6cf3,_0x51c756,_0x2217bc,_0x48c108){return _0x53b5d5(_0x2217bc,_0x51c756-_0x37243a._0x5f5bc0,_0x2217bc-_0x37243a._0x5d0277,_0x51c756-0x149);}const _0x4bc376=createModelInfo(_0x32f41f);function _0x5ac10e(_0x41090b,_0x3a7c7b,_0x354c30,_0x1891ab){return _0x2361c5(_0x41090b-_0x51be60._0x3d68ee,_0x1891ab,_0x354c30-0x105,_0x3a7c7b- -0x1cb);}return _0x4bc376[_0x373a7c(_0x3250e3._0x1bf136,_0x3250e3._0x19b5aa,0x4cc,0x56b)]&&this[_0x373a7c(0x56f,0x591,_0x3250e3._0x3dc1a8,_0x3250e3._0x262a58)][_0x373a7c(0x600,0x500,_0x3250e3._0x593be4,0x564)](_0x4bc376['id'],_0x4bc376[_0x5ac10e(_0x3250e3._0x47ec6c,0x401,_0x3250e3._0x566813,_0x3250e3._0x20333c)]),_0x4bc376;});return deduplicateModels(_0x273515);}};function createHeaders(_0x2d230d){const _0x462ba5={_0x2fcdbf:0xac,_0x1cbb3b:0x20,_0x54be95:0x8},_0x5ed48a={_0x9eebd0:0xe5,_0x4960ca:0x1d8,_0x2885fd:0x13e},_0x16c0f1={_0x150571:0x180,_0x40159c:0x91},_0x490c7a=new Headers();function _0x3e89ff(_0x23cbaf,_0x3767b9,_0x514c73,_0x2ba050){return _0x22bdb8(_0x23cbaf-_0x16c0f1._0x150571,_0x3767b9- -0x150,_0x514c73,_0x2ba050-_0x16c0f1._0x40159c);}for(const [_0x6b26b7,_0x1cfb4a]of Object[_0x3e89ff(-_0x462ba5._0x2fcdbf,-0xb9,-0x42,-0x1a2)](_0x2d230d)){_0x490c7a[_0x3e89ff(-_0x462ba5._0x1cbb3b,-0x113,-_0x462ba5._0x54be95,-0x1b0)](_0x6b26b7,_0x1cfb4a);}function _0x3164ad(_0x552acd,_0x47ea71,_0x275193,_0x14de20){return _0x22bdb8(_0x552acd-_0x5ed48a._0x9eebd0,_0x47ea71-_0x5ed48a._0x4960ca,_0x275193,_0x14de20-_0x5ed48a._0x2885fd);}return _0x490c7a;}async function fetchRawResponse(_0x2cd232){const _0x104b1b={_0x5e4b2f:0x3f7,_0x41cf19:0x346,_0x31ae4f:0x323,_0x187e54:0x3de,_0x298eda:0x2ff,_0x4c0a8f:0x291,_0x2456ef:0x3f7,_0xe81a81:0x43f,_0x21236e:0x41a,_0x1d4987:0x359,_0x228a0a:0x333,_0x2a94d7:0x34d,_0x4b3b82:0x354,_0x3f1e41:0x419,_0x2e7b1b:0x2f2},_0x4ad8a0={_0x42348a:0x2c,_0x247a67:0x245},_0x4df62a={_0x221025:0x1ce},_0x4486bf=_0x2cd232[_0x29b042(0x405,_0x104b1b._0x5e4b2f,_0x104b1b._0x41cf19,_0x104b1b._0x31ae4f)]??globalThis[_0x3a96a0(_0x104b1b._0x187e54,_0x104b1b._0x298eda,_0x104b1b._0x4c0a8f,0x247)];function _0x3a96a0(_0x53b3e0,_0x31169d,_0x50477b,_0x960b8e){return _0x101ac3(_0x53b3e0-_0x4df62a._0x221025,_0x31169d-0x187,_0x53b3e0,_0x31169d- -0x269);}function _0x29b042(_0x37e977,_0x4bb10f,_0x437ff8,_0x3d2d6e){return _0x101ac3(_0x37e977-0x112,_0x4bb10f-_0x4ad8a0._0x42348a,_0x4bb10f,_0x3d2d6e- -_0x4ad8a0._0x247a67);}return _0x4486bf(_0x2cd232[_0x29b042(_0x104b1b._0x2456ef,_0x104b1b._0xe81a81,0x3fb,_0x104b1b._0x21236e)],{'method':_0x3a96a0(0x43b,_0x104b1b._0x1d4987,0x3a8,_0x104b1b._0x228a0a),'headers':createHeaders(_0x2cd232[_0x29b042(0x3b7,0x3cc,0x2a1,0x2ff)]),'body':JSON[_0x29b042(0x2f8,_0x104b1b._0x2a94d7,0x3a3,0x3ee)](_0x2cd232[_0x29b042(_0x104b1b._0x4b3b82,_0x104b1b._0x3f1e41,_0x104b1b._0x2e7b1b,0x349)]),'signal':_0x2cd232[_0x29b042(0x359,0x39b,0x39e,0x424)]});}async function fetchJsonResponse(_0x3551ac){const _0x184d25={_0x588ffe:0x6c,_0x34128e:0xcc,_0x53b664:0x10,_0x2a06ca:0x18e,_0x420828:0xe8,_0x50a87c:0x1ee,_0x1ac720:0x189},_0x245177={_0x2e6ccc:0x21f,_0x190e5f:0x178},_0x547225={_0x33eeda:0xf5,_0x2eda79:0x15b,_0x3e91b6:0x5c5};function _0x2dad80(_0x11cef1,_0x31a75e,_0x338bb8,_0x2d3f51){return _0x101ac3(_0x11cef1-_0x547225._0x33eeda,_0x31a75e-_0x547225._0x2eda79,_0x338bb8,_0x11cef1- -_0x547225._0x3e91b6);}const _0x3dd84c=await fetchRawResponse(_0x3551ac);if(!_0x3dd84c['ok']){const _0x5573e5=await _0x3dd84c[_0x2dad80(_0x184d25._0x588ffe,_0x184d25._0x34128e,-_0x184d25._0x53b664,-0x44)](),_0x2965c3=_0x5573e5[_0x2dad80(0xf8,0x2a,_0x184d25._0x2a06ca,0x1a0)]()||_0x3dd84c['statusText']||'Unknown\x20provider\x20error';throw new Error(_0x2dad80(_0x184d25._0x420828,0x7c,0xd2,_0x184d25._0x50a87c)+_0x3dd84c[_0x2dad80(-0xd5,-_0x184d25._0x1ac720,-0x1b7,0x36)]+':\x20'+_0x2965c3);}function _0x304667(_0x3a1eb8,_0x505f2d,_0x531b87,_0x24db33){return _0x22bdb8(_0x3a1eb8-0x16e,_0x3a1eb8- -_0x245177._0x2e6ccc,_0x505f2d,_0x24db33-_0x245177._0x190e5f);}return await _0x3dd84c['json']();}function findLastMessage(_0x36fc9f,_0x5460db){const _0x3b6197={_0x373d6a:0x116,_0x424d34:0x3ca,_0x1ab667:0x32e,_0xf39c2b:0x3f7},_0x244f56={_0x8d32a9:0x1ed,_0x117b50:0x184},_0x499d9d={_0x51946d:0x102};function _0x59db38(_0x27be8d,_0x19fc6e,_0x2c3c5a,_0x542c76){return _0x22bdb8(_0x27be8d-_0x499d9d._0x51946d,_0x542c76-0x308,_0x27be8d,_0x542c76-0x91);}function _0x5f2512(_0x3d5805,_0x52ee0a,_0x5e26b5,_0x509a5a){return _0x22bdb8(_0x3d5805-_0x244f56._0x8d32a9,_0x5e26b5- -0x76,_0x52ee0a,_0x509a5a-_0x244f56._0x117b50);}for(let _0x534e64=_0x36fc9f[_0x5f2512(0xe2,0x85,_0x3b6197._0x373d6a,0x6e)]-0x1;_0x534e64>=0x0;_0x534e64-=0x1){if(_0x36fc9f[_0x534e64][_0x59db38(0x4bd,_0x3b6197._0x424d34,_0x3b6197._0x1ab667,_0x3b6197._0xf39c2b)]===_0x5460db)return _0x36fc9f[_0x534e64];}return void 0x0;}function hasTool(_0x4674f8,_0x2f1e14){const _0x4413f4={_0x302d5a:0x57c,_0x5e06ba:0x58b,_0x26f01c:0x143,_0x4297e1:0x1ff,_0x999b81:0x201},_0x44b6b8={_0x3904de:0x4e,_0x259d98:0x256},_0x158b9c={_0x425054:0xa};function _0x2f32f7(_0x3fb79e,_0x3c9ad2,_0x52b51a,_0x4f8aaa){return _0x101ac3(_0x3fb79e-0xee,_0x3c9ad2-0x51,_0x3c9ad2,_0x4f8aaa- -_0x158b9c._0x425054);}function _0x25fa5e(_0xa955f1,_0x5a2fe8,_0x2a3f94,_0x4a2624){return _0x22bdb8(_0xa955f1-_0x44b6b8._0x3904de,_0xa955f1- -_0x44b6b8._0x259d98,_0x5a2fe8,_0x4a2624-0x1a6);}return _0x4674f8[_0x2f32f7(_0x4413f4._0x302d5a,0x5b1,0x49e,_0x4413f4._0x5e06ba)][_0x25fa5e(-_0x4413f4._0x26f01c,-0xce,-_0x4413f4._0x4297e1,-_0x4413f4._0x999b81)](_0xea3532=>_0xea3532[_0x25fa5e(-0x248,-0x1e9,-0x14a,-0x27e)]===_0x2f1e14);}function createMockResponse(_0x7e03ee,_0x2fd02c,_0x23332d,_0x1ed735){return{'id':_0x7e03ee,'content':_0x2fd02c,'stopReason':_0x23332d,'usage':_0x1ed735};}var MockModel=class{[_0x22bdb8(0x199,0x1a4,0x141,0x189)];[_0x101ac3(0x687,0x6a7,0x6c7,0x685)];[_0x101ac3(0x5d8,0x470,0x42c,0x4ee)];['pricingProviderId'];['requests']=[];[_0x22bdb8(0xaf,0xd7,0x66,0x9f)];constructor(_0x3e7ac4={}){const _0x116f26={_0x43e041:0x97,_0x271334:0x47,_0x43e715:0xd6,_0x432a01:0x1d9,_0x52b371:0x1ee,_0x1d977e:0x13b,_0x45e881:0x9c,_0x5c8e56:0x49,_0x41ff81:0x1f7,_0x47fe63:0x254,_0x457846:0x257,_0x1d0779:0x48,_0x5a9353:0x1e0,_0x40171e:0x114},_0x5d32f0={_0x2039df:0x191};function _0x10ddef(_0x52e6c4,_0x5a9cdb,_0x4f6812,_0xe2cf7c){return _0x101ac3(_0x52e6c4-_0x5d32f0._0x2039df,_0x5a9cdb-0x138,_0xe2cf7c,_0x4f6812- -0x68b);}this[_0x5458d9(0x142,0x1e4,0x208,0x8f)]=_0x3e7ac4[_0x10ddef(-_0x116f26._0x43e041,0x9c,-_0x116f26._0x271334,-_0x116f26._0x43e715)]??_0x5458d9(0xcc,0xda,_0x116f26._0x432a01,0x133),this['modelIdentity']=_0x3e7ac4['modelIdentity']??modelIdentityFromParts(void 0x0,this[_0x5458d9(0x142,0xb0,_0x116f26._0x52b371,_0x116f26._0x1d977e)]);function _0x5458d9(_0x20e8fe,_0x5ead3f,_0x4cd1ce,_0x349b78){return _0x22bdb8(_0x20e8fe-0x1b5,_0x20e8fe- -0x62,_0x5ead3f,_0x349b78-0x7e);}this[_0x5458d9(-0x14,-_0x116f26._0x45e881,0xe8,-_0x116f26._0x5c8e56)]=_0x3e7ac4[_0x10ddef(-0x293,-0x180,-0x19d,-0x146)],this[_0x10ddef(-_0x116f26._0x41ff81,-_0x116f26._0x47fe63,-0x151,-_0x116f26._0x457846)]=_0x3e7ac4[_0x5458d9(0x38,-_0x116f26._0x1d0779,-0x82,-0x82)],this[_0x10ddef(-0x4b,-_0x116f26._0x5a9353,-_0x116f26._0x40171e,-0x184)]=_0x3e7ac4['reasoning']?structuredClone(_0x3e7ac4['reasoning']):void 0x0;}async[_0x101ac3(0x785,0x78e,0x733,0x69d)](_0x3cf730,_0x65fb98){const _0x56f3a7={_0x583842:0xfc,_0xe8cea:0x35,_0x253f0e:0xe,_0x276082:0x5cf,_0x440033:0x6ed,_0x1351af:0x6a6,_0x47468e:0x92,_0x5f251e:0x14a,_0x54ceba:0x721,_0x427c59:0x63a,_0x10cba5:0x39,_0x5ce7e8:0x132,_0x1b07d5:0x6ff,_0x106b8b:0x647,_0x55965f:0x661,_0x2422d9:0x679,_0x137632:0x672,_0x5d2f63:0x6f4,_0xa73664:0x753,_0x32fa29:0x5e6,_0xb6ce18:0x158,_0x43e6ad:0x45,_0x20b0c6:0x5,_0x15547:0xcb,_0x33b174:0xbb,_0x3c42a4:0x28,_0x2715b2:0x1f,_0x3553ae:0x58e,_0x3f35ff:0x61a,_0x118357:0x43,_0x1d590a:0xe7,_0x5bc3c3:0x88,_0x1dd2f6:0x8a,_0x3b856b:0x625,_0x28a0f4:0x7e8,_0x2d5641:0x6f2,_0x1d1959:0x744,_0x1fda7b:0x80,_0x30d959:0x3e,_0x4df181:0x9d,_0x1d6432:0xa7,_0x8f5755:0x37,_0x15e479:0x47,_0x5725a6:0x63,_0x167d10:0x62b,_0x34d8a1:0x678,_0x18c0d1:0x766,_0x3528df:0x6f9,_0x38b8f1:0x740,_0x5e6d64:0x5af,_0x4f8090:0x651},_0x32da25={_0x224524:0xf9,_0x5b498e:0xc8},_0x5f3af4={_0x2f0d40:0x585},_0x4fa8ed={...structuredClone(_0x3cf730),..._0x3cf730['reasoning']===void 0x0&&this[_0x590ab6(_0x56f3a7._0x583842,-_0x56f3a7._0xe8cea,-_0x56f3a7._0x253f0e,0xdf)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};this[_0x10b05a(0x68b,_0x56f3a7._0x276082,0x626,0x647)][_0x10b05a(0x79b,_0x56f3a7._0x440033,0x5ec,_0x56f3a7._0x1351af)](_0x4fa8ed);const _0x4e5075=findLastMessage(_0x4fa8ed[_0x590ab6(0x53,_0x56f3a7._0x47468e,-0x4f,-_0x56f3a7._0x5f251e)],_0x10b05a(0x62b,_0x56f3a7._0x54ceba,_0x56f3a7._0x427c59,0x661)),_0x417e65=getToolResultBlocks(_0x4e5075),_0x37bdf4=_0x590ab6(0xc3,_0x56f3a7._0x10cba5,_0x56f3a7._0x5ce7e8,0x237)+this[_0x10b05a(0x63f,0x5eb,_0x56f3a7._0x1b07d5,_0x56f3a7._0x106b8b)][_0x10b05a(_0x56f3a7._0x55965f,_0x56f3a7._0x2422d9,_0x56f3a7._0x137632,_0x56f3a7._0x5d2f63)];if(_0x417e65[_0x10b05a(0x6de,_0x56f3a7._0xa73664,_0x56f3a7._0x32fa29,_0x56f3a7._0x5d2f63)]>0x0)return createMockResponse(_0x37bdf4,[{'type':_0x590ab6(_0x56f3a7._0xb6ce18,_0x56f3a7._0x43e6ad,0xac,_0x56f3a7._0x20b0c6),'text':_0x590ab6(_0x56f3a7._0x15547,_0x56f3a7._0x33b174,-_0x56f3a7._0x3c42a4,-_0x56f3a7._0x2715b2)+_0x417e65[0x0][_0x10b05a(0x5a4,_0x56f3a7._0x3553ae,0x671,_0x56f3a7._0x3f35ff)]}],_0x10b05a(0x634,0x49a,0x4c2,0x5a7),{'inputTokens':0x78,'outputTokens':0x28});const _0x650596=getTextFromMessage(_0x4e5075);function _0x590ab6(_0x224ba5,_0x397995,_0x2f4b21,_0x5a39b4){return _0x101ac3(_0x224ba5-0x1c9,_0x397995-0x129,_0x224ba5,_0x2f4b21- -_0x5f3af4._0x2f0d40);}if(/list .*files|workspace/i[_0x590ab6(_0x56f3a7._0x118357,_0x56f3a7._0x1d590a,_0x56f3a7._0x5bc3c3,0x191)](_0x650596)&&hasTool(_0x4fa8ed,_0x590ab6(-_0x56f3a7._0x1dd2f6,0x3a,0x3e,0x132)))return createMockResponse(_0x37bdf4,[{'type':'tool_use','id':_0x10b05a(_0x56f3a7._0x3b856b,_0x56f3a7._0x28a0f4,0x69d,_0x56f3a7._0x2d5641)+this['requests'][_0x10b05a(0x7d5,_0x56f3a7._0x1d1959,0x792,0x6f4)],'name':_0x590ab6(0x25,-_0x56f3a7._0x1fda7b,_0x56f3a7._0x30d959,_0x56f3a7._0x4df181),'input':{'command':_0x590ab6(-_0x56f3a7._0x1d6432,-_0x56f3a7._0x8f5755,_0x56f3a7._0x15e479,0xe2)}}],_0x590ab6(-0x8f,-_0x56f3a7._0x5725a6,-0x26,0xc6),{'inputTokens':0x6e,'outputTokens':0x1c});function _0x10b05a(_0x12ee82,_0x28adad,_0x5ebd7a,_0x5863a4){return _0x101ac3(_0x12ee82-0x181,_0x28adad-_0x32da25._0x224524,_0x12ee82,_0x5863a4-_0x32da25._0x5b498e);}return createMockResponse(_0x37bdf4,[{'type':_0x10b05a(_0x56f3a7._0x167d10,_0x56f3a7._0x34d8a1,_0x56f3a7._0x18c0d1,_0x56f3a7._0x3528df),'text':_0x10b05a(_0x56f3a7._0x38b8f1,0x557,_0x56f3a7._0x5e6d64,_0x56f3a7._0x4f8090)+_0x650596}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x42756b,_0x29b9f9){const _0x32e510={_0x14dc83:0x3a9,_0x3ad7b7:0x3b9,_0x5ef707:0x3eb,_0x3ca46a:0x2c2,_0x2a2d88:0x37f,_0x2d2acf:0x3db},_0x148a21={_0x1cb393:0x52,_0x382727:0x7a},_0x49dd15={_0x37a796:0x19f,_0x31f792:0xbe};function _0x42194b(_0x47cbb1,_0x4efdea,_0x5ba59a,_0x20d3e3){return _0x101ac3(_0x47cbb1-_0x49dd15._0x37a796,_0x4efdea-_0x49dd15._0x31f792,_0x20d3e3,_0x5ba59a- -0x165);}function _0x14ec15(_0x2d432d,_0x5c932b,_0x35e8b8,_0x5ba175){return _0x22bdb8(_0x2d432d-_0x148a21._0x1cb393,_0x5c932b-0x314,_0x2d432d,_0x5ba175-_0x148a21._0x382727);}const _0x4db179=getModelProfile(_0x42756b,_0x29b9f9);if(!_0x4db179?.[_0x42194b(0x43b,_0x32e510._0x14dc83,_0x32e510._0x3ad7b7,_0x32e510._0x5ef707)]&&!_0x4db179?.['maxOutput'])return void 0x0;return{..._0x4db179['contextWindow']?{'contextWindow':_0x4db179['contextWindow']}:{},..._0x4db179[_0x42194b(0x35a,0x3d4,0x3a6,_0x32e510._0x3ca46a)]?{'maxOutput':_0x4db179[_0x14ec15(0x2b0,_0x32e510._0x2a2d88,0x3ab,_0x32e510._0x2d2acf)]}:{}};}function normalizeModelInfo(_0x444f6c,_0x19a615){const _0x385d85={_0x3fdb80:0x37b,_0x4bec57:0x48e,_0x2c0758:0x41e,_0x1ab8d4:0xc,_0x106c0d:0x400,_0x548114:0x685,_0x1f4e53:0x676,_0x55861d:0x5a4,_0x32f5bb:0x4dc,_0x5b25b5:0x5b9,_0x3e37a9:0x4c1,_0x251042:0x5c6,_0x5df00e:0x151,_0x12eeef:0x76},_0x5ebf14={_0x4fad89:0x137},_0x4ec052={_0x124d28:0x41};function _0x454cd2(_0x567240,_0x19d212,_0x449a55,_0x1f1a06){return _0x22bdb8(_0x567240-0x11,_0x567240- -_0x4ec052._0x124d28,_0x1f1a06,_0x1f1a06-0x19a);}const _0x21a1e9=typeof _0x19a615['id']===_0x366b52(_0x385d85._0x3fdb80,0x4f6,_0x385d85._0x4bec57,_0x385d85._0x2c0758)?_0x19a615['id']:'';function _0x366b52(_0x33fda9,_0x448ca4,_0x3abaa9,_0xcf3ed9){return _0x22bdb8(_0x33fda9-0xc2,_0xcf3ed9-0x3f2,_0x33fda9,_0xcf3ed9-_0x5ebf14._0x4fad89);}const _0x2e3723=typeof _0x19a615['name']===_0x454cd2(-0x15,-0x22,_0x385d85._0x1ab8d4,-0x5d)?_0x19a615[_0x366b52(0x49c,0x35e,0x487,_0x385d85._0x106c0d)]:_0x21a1e9,_0x5cfccf=normalizeModelLimits(_0x444f6c,_0x19a615)??getFallbackModelLimits(_0x444f6c,_0x21a1e9),_0x16108f=Array[_0x366b52(_0x385d85._0x548114,0x655,_0x385d85._0x1f4e53,_0x385d85._0x55861d)](_0x19a615['supported_endpoints'])?_0x19a615[_0x366b52(0x696,0x50b,_0x385d85._0x32f5bb,_0x385d85._0x5b25b5)][_0x366b52(_0x385d85._0x3e37a9,0x46b,_0x385d85._0x251042,0x4d9)](_0x1e0295=>typeof _0x1e0295===_0x454cd2(-0x15,0x14,-0x5e,0xa2)):Array[_0x454cd2(0x171,0x1bf,_0x385d85._0x5df00e,0x80)](_0x19a615[_0x454cd2(0x75,0x24,_0x385d85._0x12eeef,0x104)])?_0x19a615[_0x454cd2(0x75,-0x29,0x156,0xc5)]['filter'](_0x379457=>typeof _0x379457==='string'):void 0x0;return{'id':_0x21a1e9,'name':_0x2e3723,..._0x5cfccf?{'limits':_0x5cfccf}:{},..._0x16108f?{'supportedEndpoints':_0x16108f}:{}};}function normalizeModelLimits(_0xb73f0e,_0x8b4fd8){const _0x34417f={_0x4a2885:0xa7,_0x29db4b:0xf0,_0x28f2f7:0x25,_0x2a5e59:0x245,_0x39f991:0x322,_0x34c80e:0x33,_0xa58f69:0x46,_0x42101c:0x252,_0x2ee821:0x25d,_0x1f6af5:0x1c2,_0x3b8810:0x1f,_0x3a76e4:0xfa,_0x3463b8:0x254,_0x44f08c:0x289,_0xbcaaa7:0x2ed,_0xb3e7b2:0x4e,_0x88c449:0x18b,_0x72d157:0x11b,_0x2c7462:0x74,_0x57f0c1:0xb8,_0x2f8d24:0x18,_0x2d5818:0x39,_0x5009b2:0x2f8,_0x2eb6b2:0x3c1,_0x58646e:0xaf,_0x2b0a8c:0xeb,_0x3aed6:0x347,_0x4c6ebc:0x207,_0x4f2a31:0x170,_0x41c7f0:0xd7,_0x230267:0xe0,_0x31a693:0x162,_0x5b35b7:0x1b8,_0x5aea78:0x1a1,_0x440a74:0x42f,_0x21afad:0x38c,_0x22080a:0x43f,_0x5de08e:0x3a3,_0x51196c:0x43b,_0x37d42c:0x3b6,_0xeb839a:0xa1,_0x4c4a26:0x346,_0x5cbb0f:0x3aa,_0x5daa65:0x3cc,_0x1bf612:0x36e,_0x33620a:0x36f,_0x25aa83:0x10b,_0x1c838a:0x114},_0x96439d={_0x20401d:0x19c},_0x5cc0ad={_0x5e8181:0x147};function _0x3986c0(_0x2ae048,_0x3d3a44,_0x3ec63b,_0x22d7ab){return _0x22bdb8(_0x2ae048-0x170,_0x3ec63b-0x21e,_0x3d3a44,_0x22d7ab-_0x5cc0ad._0x5e8181);}if(_0x8b4fd8[_0x5c63b0(-_0x34417f._0x4a2885,0xd5,0x53,_0x34417f._0x29db4b)]&&typeof _0x8b4fd8[_0x5c63b0(0x13b,0x35,0x53,0x8b)]===_0x5c63b0(0x196,0x152,0xca,-_0x34417f._0x28f2f7)){const _0x1cc73e=_0x8b4fd8[_0x3986c0(_0x34417f._0x2a5e59,0x26e,_0x34417f._0x39f991,0x314)];if(typeof _0x1cc73e['contextWindow']==='number')return{'contextWindow':_0x1cc73e[_0x5c63b0(0x7d,-0xa3,-_0x34417f._0x34c80e,-_0x34417f._0xa58f69)],...typeof _0x1cc73e[_0x3986c0(_0x34417f._0x42101c,_0x34417f._0x2ee821,0x289,_0x34417f._0x1f6af5)]===_0x5c63b0(0x68,0xb,_0x34417f._0x3b8810,_0x34417f._0x3a76e4)?{'maxOutput':_0x1cc73e[_0x3986c0(_0x34417f._0x3463b8,_0x34417f._0x42101c,_0x34417f._0x44f08c,_0x34417f._0xbcaaa7)]}:{}};}if(_0xb73f0e[_0x5c63b0(_0x34417f._0xb3e7b2,_0x34417f._0x88c449,0x107,_0x34417f._0x72d157)]()==='github'){const _0xa974dd=_0x8b4fd8[_0x5c63b0(_0x34417f._0x2c7462,_0x34417f._0x57f0c1,_0x34417f._0x2f8d24,_0x34417f._0x2d5818)],_0x36b8f5=_0xa974dd?.[_0x3986c0(_0x34417f._0x5009b2,0x3b8,0x322,_0x34417f._0x2eb6b2)];if(typeof _0x36b8f5?.['max_context_window_tokens']===_0x3986c0(0x2e9,0x267,0x2ee,0x254))return{'contextWindow':_0x36b8f5[_0x5c63b0(-0x117,-0x198,-0xa4,-_0x34417f._0x58646e)],...typeof _0x36b8f5['max_output_tokens']==='number'?{'maxOutput':_0x36b8f5['max_output_tokens']}:{}};}const _0x3b00e7=_0x8b4fd8[_0x5c63b0(0x31,0x63,_0x34417f._0x2b0a8c,0x19b)],_0x373490=_0x8b4fd8[_0x3986c0(0x2ac,0x2b9,0x2c9,_0x34417f._0x3aed6)],_0x5f183f=typeof _0x8b4fd8[_0x5c63b0(_0x34417f._0x4c6ebc,0x96,_0x34417f._0x4f2a31,0x1c6)]===_0x5c63b0(_0x34417f._0x41c7f0,-0x42,_0x34417f._0x3b8810,0x102)?_0x8b4fd8[_0x5c63b0(0x1bb,_0x34417f._0x230267,0x170,_0x34417f._0x31a693)]:typeof _0x3b00e7?.[_0x5c63b0(_0x34417f._0x5b35b7,0x1a3,0x170,_0x34417f._0x5aea78)]==='number'?_0x3b00e7[_0x3986c0(_0x34417f._0x440a74,_0x34417f._0x21afad,_0x34417f._0x22080a,0x504)]:typeof _0x373490?.['context_length']==='number'?_0x373490[_0x3986c0(_0x34417f._0x5de08e,_0x34417f._0x51196c,0x43f,0x515)]:void 0x0;function _0x5c63b0(_0x1746de,_0x2236e7,_0x2061ab,_0x4ed85f){return _0x101ac3(_0x1746de-0x1ac,_0x2236e7-_0x96439d._0x20401d,_0x2236e7,_0x2061ab- -0x551);}if(_0x5f183f===void 0x0)return void 0x0;return{'contextWindow':_0x5f183f,...typeof _0x3b00e7?.[_0x3986c0(0x380,0x36c,0x3cc,_0x34417f._0x37d42c)]===_0x5c63b0(-_0x34417f._0xeb839a,0x7e,0x1f,0x59)?{'maxOutput':_0x3b00e7[_0x3986c0(_0x34417f._0x4c4a26,_0x34417f._0x5cbb0f,_0x34417f._0x5daa65,0x3a6)]}:typeof _0x373490?.[_0x3986c0(0x418,_0x34417f._0x1bf612,0x3da,_0x34417f._0x33620a)]==='number'?{'maxOutput':_0x373490[_0x5c63b0(0x4d,0x72,_0x34417f._0x25aa83,_0x34417f._0x1c838a)]}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,NUVIN_PRICING_PRODUCTS,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,REASONING_METADATA_VERSIONS,RoutedModel,SUPPORTED_MODELS_DEV_PROVIDER_IDS,StaticModelSurfaceRouter,USD_TICKS_PER_DOLLAR,USD_TICKS_PER_TOKEN_AT_ONE_DOLLAR_PER_MILLION,createAnthropicSurfaces,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,estimateModelCost,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,modelsDevProviderIdForNuvinProvider,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,pricingProviderNeedsChatUsage,providerFromSurface,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen,withEstimatedModelCost};
|
|
1
|
+
(function(_0x1bcc77,_0x1487f1){const _0x2b3446={_0xc22655:0x15e,_0x3eaa38:0xb0,_0x2bd61c:0xc7,_0x3b8582:0x3a,_0x425000:0x20c,_0x1d6cb:0xe5,_0x5ec6c7:0x17,_0x3a4fdc:0x58,_0x2512c1:0x47,_0x58178f:0xac,_0x1ff50e:0x1a2,_0xb9d89c:0x12d,_0x45c493:0xf2,_0xff0b55:0x1b8,_0x3f8f2a:0xb4,_0x2e58b5:0x21c,_0x8dc8a4:0x195,_0x4ff98b:0x57,_0x2e027d:0x123,_0x5a4342:0x33,_0x43fa3e:0x131,_0x4eb83e:0x1e5,_0x2074cb:0xb3,_0x4eb92c:0x13},_0x33934b={_0xbada4:0x15b};function _0x35ac84(_0x20de13,_0x574739,_0x485346,_0x2bb6d7){return _0x3104(_0x20de13- -_0x33934b._0xbada4,_0x574739);}function _0x43eb7d(_0x1c005b,_0x3572a9,_0x39784c,_0xbde231){return _0x3104(_0x3572a9- -0x8d,_0x39784c);}const _0x5ad460=_0x1bcc77();while(!![]){try{const _0x536ba6=-parseInt(_0x43eb7d(0x203,_0x2b3446._0xc22655,_0x2b3446._0x3eaa38,0xd5))/0x1*(parseInt(_0x35ac84(-0xc6,-_0x2b3446._0x2bd61c,-0x9e,-0x1bf))/0x2)+-parseInt(_0x43eb7d(0x1ec,0x105,_0x2b3446._0x3b8582,_0x2b3446._0x425000))/0x3*(parseInt(_0x43eb7d(0xef,_0x2b3446._0x1d6cb,0xdf,-_0x2b3446._0x5ec6c7))/0x4)+-parseInt(_0x43eb7d(0xd4,_0x2b3446._0x3a4fdc,_0x2b3446._0x2512c1,-0xa2))/0x5*(parseInt(_0x43eb7d(_0x2b3446._0x58178f,_0x2b3446._0x1ff50e,_0x2b3446._0xb9d89c,_0x2b3446._0x3eaa38))/0x6)+parseInt(_0x43eb7d(_0x2b3446._0x45c493,_0x2b3446._0xff0b55,_0x2b3446._0x3f8f2a,_0x2b3446._0x2e58b5))/0x7+parseInt(_0x35ac84(-0xae,-0x196,-_0x2b3446._0x8dc8a4,-_0x2b3446._0x4ff98b))/0x8*(parseInt(_0x35ac84(_0x2b3446._0x2e027d,0x66,_0x2b3446._0x5a4342,0x2b))/0x9)+-parseInt(_0x43eb7d(_0x2b3446._0x43fa3e,0x1cf,0x260,_0x2b3446._0x4eb83e))/0xa+parseInt(_0x43eb7d(_0x2b3446._0x2074cb,_0x2b3446._0x4eb92c,-0x80,0xc0))/0xb;if(_0x536ba6===_0x1487f1)break;else _0x5ad460['push'](_0x5ad460['shift']());}catch(_0x662868){_0x5ad460['push'](_0x5ad460['shift']());}}}(_0x2423,0x92a6d));function _0x3dbb2c(_0x4ac3ee,_0x58d43f,_0x4721a2,_0x5d857a){return _0x3104(_0x58d43f-0x86,_0x5d857a);}import{toOpenAiResponsesRequest}from'../chunk-LIE76IJA.js';import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{USD_TICKS_PER_TOKEN_AT_ONE_DOLLAR_PER_MILLION,estimateModelCost,withEstimatedModelCost}from'../chunk-GAZGO6N7.js';import{getTextFromMessage,getToolResultBlocks,isProviderStateCompatible,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-YNOIG4FD.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x3d9b3a){const _0x2e4857={_0x14e5a0:0x55};function _0x34f2f4(_0x587930,_0x426e58,_0xc521ab,_0x3b5edb){return _0x3104(_0x3b5edb- -0x224,_0x426e58);}super(_0x3d9b3a),this[_0x34f2f4(0x6d,-0x15b,_0x2e4857._0x14e5a0,-0x8f)]='ProviderRequestConstructionError';}},ProviderStreamEventError=class extends Error{[_0x5b3424(-0x133,-0x135,-0x1b7,-0xe2)];[_0x3dbb2c(0x30b,0x26a,0x330,0x26c)];[_0x3dbb2c(0x108,0x14a,0x75,0x201)];constructor(_0x5207c5,_0x39ec5c={}){const _0x1ec75f={_0xe19e51:0x440,_0x33f948:0x503,_0x46803e:0x540,_0x38170d:0x54b,_0x6ad59e:0x448,_0x3cf9f8:0x3ac,_0x257221:0x432,_0xbabe9f:0x46,_0x420e45:0x154,_0x275b13:0x232},_0xa87e97={_0x4d5f06:0xfd},_0x50f462={_0x5045ba:0x1a7,_0x5a2080:0x225,_0xbec544:0xae};super(_0x5207c5);function _0x25abcb(_0x17c3fc,_0x4a8d57,_0x5eec04,_0x3f9164){return _0x3dbb2c(_0x17c3fc-_0x50f462._0x5045ba,_0x17c3fc-_0x50f462._0x5a2080,_0x5eec04-_0x50f462._0xbec544,_0x5eec04);}function _0x47fe72(_0x51ba89,_0x631681,_0x2add1f,_0x368626){return _0x5b3424(_0x51ba89-_0xa87e97._0x4d5f06,_0x368626-0x14c,_0x2add1f-0x17e,_0x51ba89);}this[_0x25abcb(_0x1ec75f._0xe19e51,_0x1ec75f._0x33f948,_0x1ec75f._0x46803e,_0x1ec75f._0x38170d)]=_0x25abcb(_0x1ec75f._0x6ad59e,0x4a6,_0x1ec75f._0x3cf9f8,_0x1ec75f._0x257221),this['code']=_0x39ec5c['code'],this['retryable']=_0x39ec5c['retryable']??!![],this[_0x47fe72(-_0x1ec75f._0xbabe9f,-_0x1ec75f._0x420e45,-_0x1ec75f._0x275b13,-0x140)]=_0x39ec5c['status'];}};function isRetryableProviderStreamEventError(_0x4daccc){const _0x4b4430={_0x19d609:0x353,_0x857660:0x3ae,_0x40aebb:0x346},_0x4d7cfc={_0x3ea469:0x28,_0x569c8f:0xa0};function _0x54f5df(_0x326f22,_0x31f2fa,_0x43e4d0,_0x34763b){return _0x3dbb2c(_0x326f22-_0x4d7cfc._0x3ea469,_0x43e4d0-0xdc,_0x43e4d0-_0x4d7cfc._0x569c8f,_0x31f2fa);}return _0x4daccc instanceof ProviderStreamEventError&&_0x4daccc[_0x54f5df(_0x4b4430._0x19d609,_0x4b4430._0x857660,_0x4b4430._0x40aebb,0x404)];}var ANTHROPIC_MESSAGES_SURFACE=_0x5b3424(-0x36b,-0x2a7,-0x3b0,-0x1ca),ANTHROPIC_MESSAGES_STREAM_SURFACE='anthropic-messages-stream';function parseToolInput(_0xdf0479){const _0x13fdb0={_0x2bdc93:0x3a5,_0x261daf:0x331},_0x11bd16={_0x58c5b8:0x1df};function _0xb2be8d(_0x1c9d39,_0x4dfa3,_0x33f3ec,_0x5def01){return _0x5b3424(_0x1c9d39-_0x11bd16._0x58c5b8,_0x33f3ec- -0x48,_0x33f3ec-0x1ad,_0x5def01);}try{return JSON[_0xb2be8d(-_0x13fdb0._0x2bdc93,-_0x13fdb0._0x261daf,-0x2c8,-0x2b9)](_0xdf0479);}catch{return _0xdf0479;}}function resolveReasoningVisibility(_0x5bdd0b){const _0x162bda={_0x8ff7c3:0x349,_0x260690:0x12a,_0x2b113f:0x238,_0x3c879d:0x253},_0x5c2335={_0x522413:0x189,_0x569cd4:0x7c,_0x14f84e:0xb2},_0x2daaab={_0x32e48f:0x16b,_0x24c02f:0x559,_0x48affb:0x25};function _0x39e7df(_0x30ea16,_0x5b9b86,_0x4d8840,_0x19f570){return _0x5b3424(_0x30ea16-_0x2daaab._0x32e48f,_0x5b9b86-_0x2daaab._0x24c02f,_0x4d8840-_0x2daaab._0x48affb,_0x4d8840);}function _0x299f15(_0x53f533,_0x1de23d,_0x2e7c1e,_0x2d6b54){return _0x3dbb2c(_0x53f533-_0x5c2335._0x522413,_0x2e7c1e-_0x5c2335._0x569cd4,_0x2e7c1e-_0x5c2335._0x14f84e,_0x53f533);}return _0x5bdd0b[_0x299f15(0x2d1,0x244,_0x162bda._0x8ff7c3,0x34d)]?.[_0x299f15(_0x162bda._0x260690,0x2ef,_0x162bda._0x2b113f,_0x162bda._0x3c879d)]??'user-visible';}function isUserVisibleThinking(_0x44900a){const _0x2f6324={_0x46e95f:0x113,_0x3d9c7f:0x1df,_0x4b7a7d:0x54,_0x3c607e:0x126,_0x2baca2:0x35,_0x46a63f:0x3,_0x177967:0xa1,_0x1dbf8b:0xfb,_0x23985e:0x11d},_0xc0edd8={_0x8c381a:0x1c6,_0x780059:0x29f},_0x4eba12={_0x2324be:0xc4,_0x52ba69:0x157};function _0x595d3c(_0x418a40,_0x3c38c0,_0x4abb50,_0x4844fc){return _0x5b3424(_0x418a40-_0x4eba12._0x2324be,_0x418a40-0x11f,_0x4abb50-_0x4eba12._0x52ba69,_0x3c38c0);}const _0x44b5ac=resolveAnthropicReasoningConfig(_0x44900a[_0x443fb8(0x196,_0x2f6324._0x46e95f,0x20a,_0x2f6324._0x3d9c7f)])?.[_0x595d3c(_0x2f6324._0x4b7a7d,-0x77,_0x2f6324._0x3c607e,0xd9)];function _0x443fb8(_0x46de3c,_0x1a96f4,_0x2ba784,_0x25a889){return _0x5b3424(_0x46de3c-_0xc0edd8._0x8c381a,_0x46de3c-_0xc0edd8._0x780059,_0x2ba784-0x126,_0x1a96f4);}return _0x44b5ac!==void 0x0&&_0x44b5ac['type']!==_0x595d3c(-_0x2f6324._0x2baca2,-_0x2f6324._0x46a63f,-_0x2f6324._0x177967,-_0x2f6324._0x1dbf8b)&&resolveReasoningVisibility(_0x44900a)===_0x595d3c(-0x194,-0x22f,-0x272,-_0x2f6324._0x23985e);}function createAnthropicThinkingBody(_0x874efb){const _0x1dffdd={_0x23f2c0:0x471,_0xdfb2cc:0x4f8,_0x28e058:0x53e,_0x401c55:0x501,_0x10b35f:0x3c0,_0x2dbf07:0x435,_0x4771a3:0x266,_0x51b38d:0x141,_0x529a7f:0x17a,_0x3e1c79:0x1ab,_0x23ec99:0x559,_0x5e514f:0x53b,_0x85ca91:0x486,_0xb0cd6e:0x47e,_0x8a8649:0x41f,_0x59e4ec:0x32a,_0x42f1c5:0x3a4,_0x5a80cb:0x40f,_0x2f6f7b:0x38b,_0x343154:0x3b3,_0x21a9ee:0x4b3,_0x3648f1:0x373,_0x486fd0:0x54e},_0x3d3b89={_0x96fd3a:0x609,_0x3f0505:0x1dd},_0x4d4224={_0xb75df5:0x55};function _0x2c23e5(_0x51681c,_0x55415c,_0x98eb80,_0x10a0fc){return _0x3dbb2c(_0x51681c-0x176,_0x10a0fc- -0x141,_0x98eb80-_0x4d4224._0xb75df5,_0x98eb80);}function _0x1c6a5a(_0x22804a,_0x1e6f65,_0x158c8c,_0x198bf9){return _0x5b3424(_0x22804a-0xa4,_0x158c8c-_0x3d3b89._0x96fd3a,_0x158c8c-_0x3d3b89._0x3f0505,_0x198bf9);}const _0x2de7bf=resolveAnthropicReasoningConfig(_0x874efb[_0x1c6a5a(0x598,_0x1dffdd._0x23f2c0,0x500,0x4d0)])?.[_0x1c6a5a(_0x1dffdd._0xdfb2cc,0x47f,_0x1dffdd._0x28e058,_0x1dffdd._0x401c55)];if(!_0x2de7bf)return{};if(_0x2de7bf[_0x1c6a5a(_0x1dffdd._0x10b35f,_0x1dffdd._0x2dbf07,0x367,0x3a9)]==='disabled')return{'thinking':{'type':'disabled'}};const _0x2a8739=_0x2de7bf['display']??(isUserVisibleThinking(_0x874efb)?_0x2c23e5(_0x1dffdd._0x4771a3,_0x1dffdd._0x51b38d,_0x1dffdd._0x529a7f,_0x1dffdd._0x3e1c79):_0x1c6a5a(_0x1dffdd._0x23ec99,_0x1dffdd._0x5e514f,_0x1dffdd._0x85ca91,0x55c)),_0x4331e7=_0x2de7bf['interleaved']?{'anthropic-beta':_0x1c6a5a(_0x1dffdd._0xb0cd6e,0x4af,_0x1dffdd._0x8a8649,0x4b3)}:void 0x0;if(_0x2de7bf[_0x1c6a5a(0x347,_0x1dffdd._0x59e4ec,0x367,_0x1dffdd._0x42f1c5)]===_0x1c6a5a(0x48f,0x44e,0x531,0x52b))return{..._0x4331e7?{'headers':_0x4331e7}:{},'thinking':{'type':'enabled','budget_tokens':_0x2de7bf[_0x1c6a5a(_0x1dffdd._0x5a80cb,_0x1dffdd._0x2f6f7b,_0x1dffdd._0x343154,0x316)],'display':_0x2a8739}};return{..._0x4331e7?{'headers':_0x4331e7}:{},'thinking':{'type':_0x1c6a5a(_0x1dffdd._0x21a9ee,_0x1dffdd._0x3648f1,0x47a,_0x1dffdd._0x486fd0),'display':_0x2a8739}};}function toAnthropicRequestContent(_0x4191ef,_0x2ce4e4){const _0x151b6d={_0x54bceb:0x646,_0x4183c8:0x552,_0x303e18:0x444,_0x1a3b58:0x451,_0x5545f7:0x581,_0x5b48b4:0x5bf,_0x2ed005:0x478,_0xa86ab3:0x596,_0x2a8348:0x490,_0x1297c8:0x5b,_0x43292f:0x3ff,_0x136986:0x406,_0x3962bd:0x3ee,_0x2416d3:0x46d,_0x21978c:0x231,_0x4c8598:0x91,_0x4609ca:0xac,_0x491f3d:0x41d,_0xfe909a:0x405,_0x122fad:0x409,_0x332d40:0x73,_0x53fe96:0xb2,_0xe1b7ee:0xa5,_0x363274:0x125,_0x529d8f:0x3f,_0x108bee:0x101,_0x21a697:0x13,_0x543fe0:0x15,_0x12a01b:0x3c0,_0x4ea71f:0x48a,_0x5c9a2e:0x484,_0x46fe62:0x4e2,_0x1917f3:0x4bd,_0x1e423e:0x104,_0x3322df:0x6d,_0x94ccc7:0xf4},_0x3f31c2={_0x5da441:0x12b,_0xe8c478:0x17d},_0x173d20={_0x1b7881:0x52},_0x3e6fef=isProviderStateCompatible(_0x4191ef,_0x2ce4e4);if(_0x3e6fef&&_0x4191ef[_0x1805df(0x61a,_0x151b6d._0x54bceb,_0x151b6d._0x4183c8,0x520)]===_0x1805df(0x47b,0x468,_0x151b6d._0x303e18,_0x151b6d._0x1a3b58)&&_0x4191ef['providerState']?.[_0x1805df(0x4de,0x4a4,_0x151b6d._0x5545f7,_0x151b6d._0x5b48b4)])return structuredClone(_0x4191ef['providerState'][_0x1805df(_0x151b6d._0x2ed005,_0x151b6d._0xa86ab3,0x581,_0x151b6d._0x2a8348)]);function _0x1805df(_0x2387a6,_0x4e40fc,_0x3c4111,_0xe39a27){return _0x3dbb2c(_0x2387a6-_0x173d20._0x1b7881,_0x3c4111-0x2ba,_0x3c4111-0x15c,_0x2387a6);}const _0x3cad35=[];function _0x5f54e8(_0x4b377e,_0x3ff5a4,_0x5463ee,_0x4bf2bc){return _0x5b3424(_0x4b377e-_0x3f31c2._0x5da441,_0x3ff5a4-_0x3f31c2._0xe8c478,_0x5463ee-0x1e7,_0x4bf2bc);}for(const _0xea8ea4 of normalizeContent(_0x4191ef[_0x5f54e8(-0x2f,_0x151b6d._0x1297c8,-0x84,0xb2)])){if(_0xea8ea4[_0x1805df(_0x151b6d._0x43292f,_0x151b6d._0x136986,_0x151b6d._0x3962bd,0x3d9)]===_0x1805df(_0x151b6d._0x2416d3,0x4de,0x4eb,0x5b3))continue;if(_0xea8ea4[_0x5f54e8(-_0x151b6d._0x21978c,-0x125,-_0x151b6d._0x4c8598,-_0x151b6d._0x4609ca)]===_0x1805df(0x3fc,_0x151b6d._0x491f3d,_0x151b6d._0xfe909a,_0x151b6d._0x122fad)){_0x3e6fef&&_0x3cad35[_0x5f54e8(_0x151b6d._0x332d40,0x6d,0x113,0x15f)]({'type':_0x5f54e8(0xf6,_0x151b6d._0x53fe96,0x103,0xd3),'thinking':_0xea8ea4[_0x5f54e8(-0x2c,0xb2,_0x151b6d._0xe1b7ee,-0x4f)],'signature':_0xea8ea4['signature']});continue;}if(_0xea8ea4[_0x5f54e8(-0x131,-_0x151b6d._0x363274,-0x226,-_0x151b6d._0x529d8f)]==='anthropic_redacted_thinking'){_0x3e6fef&&_0x3cad35[_0x5f54e8(_0x151b6d._0x108bee,0x6d,-_0x151b6d._0x21a697,-_0x151b6d._0x543fe0)]({'type':_0x1805df(0x417,_0x151b6d._0x12a01b,_0x151b6d._0x4ea71f,0x4e8),'data':_0xea8ea4[_0x1805df(0x43f,_0x151b6d._0x5c9a2e,_0x151b6d._0x46fe62,_0x151b6d._0x1917f3)]});continue;}_0x3cad35[_0x5f54e8(_0x151b6d._0x1e423e,_0x151b6d._0x3322df,_0x151b6d._0x94ccc7,-0x26)](structuredClone(_0xea8ea4));}return _0x3cad35;}function createAnthropicRequest(_0x1160be,_0xf8aa90){const _0x53447b={_0x1353ec:0x1a1,_0x4f2c38:0x125,_0x5ca29a:0x1b8,_0x46bd25:0x1ff,_0x20c62e:0x26,_0x128aeb:0x56,_0x279991:0x1c5,_0x12be91:0x139,_0x3efbb1:0x1f,_0x3c78be:0x35,_0x45c6d7:0x1db,_0x18b076:0xe7,_0x4d3ad6:0x1cf,_0x233103:0x104,_0x7900b0:0x74,_0x1e7dba:0x85,_0x456242:0x1c4,_0x41a9f0:0xff,_0x507f87:0x199,_0x3bfb4d:0x198,_0x2a159d:0x290,_0x5396d7:0x5c,_0x56c5ec:0xad,_0x42cfec:0x177},_0x1b39d3={_0x59eca:0x44d},_0x5e8e7b={_0x4f63ef:0x493,_0x56727c:0x14f,_0x3b81be:0x1ce},_0x22afd6={_0x582787:0xa0},_0x5bd68f=toProviderModelRequest(_0x1160be),_0x30a39e=createAnthropicThinkingBody(_0x1160be);function _0x586667(_0x47d207,_0x11f978,_0xc71042,_0x48fbf5){return _0x3dbb2c(_0x47d207-0xcb,_0x11f978- -0x2ff,_0xc71042-_0x22afd6._0x582787,_0x47d207);}const _0x223aa4=resolveAnthropicReasoningConfig(_0x1160be[_0x169080(0xc2,_0x53447b._0x1353ec,0xa4,_0x53447b._0x4f2c38)]);function _0x169080(_0x369390,_0x5e0b28,_0x37cb89,_0x1c5cfc){return _0x5b3424(_0x369390-0x1ae,_0x5e0b28-0x2aa,_0x37cb89-0x5a,_0x1c5cfc);}const _0xa54383={..._0x223aa4?.[_0x169080(0x28e,_0x53447b._0x5ca29a,_0x53447b._0x46bd25,0xd6)]?{'effort':_0x223aa4['effort']}:{},..._0x1160be[_0x586667(-_0x53447b._0x20c62e,0x1f,0x101,_0x53447b._0x128aeb)]?{'format':{'type':_0x586667(-_0x53447b._0x279991,-_0x53447b._0x12be91,-0xc2,-0x1b8),'schema':_0x1160be[_0x586667(-0xc6,_0x53447b._0x3efbb1,_0x53447b._0x3c78be,0x13)][_0x169080(_0x53447b._0x45c6d7,_0x53447b._0x18b076,0x198,0x105)]}}:{}};return{'accept':_0xf8aa90?'text/event-stream':_0x586667(-_0x53447b._0x4d3ad6,-_0x53447b._0x233103,-0x110,-_0x53447b._0x7900b0),'body':{..._0x5bd68f,'messages':_0x1160be[_0x586667(-0x157,-_0x53447b._0x1e7dba,-0x9,-0x99)][_0x586667(-0x11f,-_0x53447b._0x456242,-0x29f,-0xfd)](_0x9bc0a8=>{function _0x2baf8f(_0x49b422,_0x4a1df4,_0x4537c1,_0x3f3b72){return _0x586667(_0x49b422,_0x3f3b72-_0x5e8e7b._0x4f63ef,_0x4537c1-_0x5e8e7b._0x56727c,_0x3f3b72-_0x5e8e7b._0x3b81be);}return{'role':_0x9bc0a8[_0x2baf8f(_0x1b39d3._0x59eca,0x512,0x36b,0x42c)],'content':toAnthropicRequestContent(_0x9bc0a8,_0x1160be)};}),..._0x30a39e['thinking']?{'thinking':_0x30a39e['thinking']}:{},..._0xf8aa90?{'stream':!![]}:{},...Object[_0x586667(-0x1e7,-0x195,-0x17d,-_0x53447b._0x41a9f0)](_0xa54383)[_0x586667(-_0x53447b._0x507f87,-_0x53447b._0x3bfb4d,-0x1c7,-_0x53447b._0x2a159d)]>0x0?{'output_config':_0xa54383}:{}},..._0x30a39e[_0x169080(0x14a,_0x53447b._0x5396d7,0x97,_0x53447b._0x56c5ec)]?{'headers':_0x30a39e[_0x586667(-0x90,-_0x53447b._0x42cfec,-0x26e,-0x217)]}:{},'path':_0x169080(0x268,0x1ee,0x25d,0x1b3)};}function parseAnthropicResponse(_0x17e6b0,_0x4d95db){const _0x546ebb={_0x253e78:0x1e4,_0xb39f8a:0x7a,_0x5139d8:0xbe,_0x57008b:0x64,_0x100dcc:0x20c,_0x281eca:0x23b,_0x1d75da:0x2dc,_0x1fb248:0x219,_0x18fc54:0xa5,_0x45a3f4:0x55,_0x5e6abd:0x100,_0x21fac3:0x14a,_0x1c440e:0x22f,_0x4da9ce:0x3d,_0x14befb:0x109,_0x4b1c64:0x1e2,_0x4896e9:0x158,_0x4f84fa:0xfc,_0x2984de:0x181,_0x4bd5d5:0x78,_0x3afeab:0x95,_0x41c2c9:0x253,_0xd7ff01:0x2b0,_0x199227:0x351,_0x576b04:0x353,_0x39045c:0x1d0,_0x4709aa:0x2e0,_0x556467:0x5c,_0xf7e6b6:0x15f,_0x441672:0xa7,_0xce77a1:0xe9,_0x38f7e0:0x1c2,_0x5786a3:0x1b4,_0x1a6e70:0x14b,_0x4a836a:0x27c,_0x2ea92a:0x1e3,_0x59ae67:0x14b,_0x3990fd:0x2a0,_0x2dfffd:0x28c,_0x1053a6:0x1e1,_0x443a89:0x15f,_0x3bd90d:0xce,_0x4d1f21:0xd0,_0x5cb516:0x141,_0x4e94e1:0x12c,_0x240430:0x16a,_0x483937:0x1c9,_0x347c3e:0x1c5,_0x268044:0x2d0,_0x5919f5:0x2c6,_0x310fc4:0x214,_0x5bf1e3:0x207,_0x2cab14:0x261,_0x34ea82:0x10d,_0x2186cc:0x1e3,_0x371e1b:0x26b,_0x54843a:0xc1,_0x5b10ce:0xb8,_0x2cf596:0x189,_0xcfafff:0x250,_0x4adeaa:0x1e3,_0xe1fd6e:0xe7,_0x55be42:0x198,_0x4cb86e:0x1e1,_0x39d638:0x1ea,_0x24c480:0x294,_0x122f20:0x124,_0x453da4:0x32,_0x4bb586:0xd},_0x432c5f={_0x1c5c9a:0x104},_0x3c19bf=[];function _0x2b33e5(_0x363f3e,_0x774521,_0x3a00af,_0x95c597){return _0x3dbb2c(_0x363f3e-_0x432c5f._0x1c5c9a,_0x95c597- -0xd0,_0x3a00af-0xd2,_0x363f3e);}const _0x147009=_0x17e6b0[_0x2b33e5(0x2a8,0x1d7,0x142,_0x546ebb._0x253e78)]??[];function _0x47f3f0(_0x30073c,_0x54022a,_0x31acd4,_0x1d8ec6){return _0x3dbb2c(_0x30073c-0xe7,_0x30073c- -0x410,_0x31acd4-0x36,_0x1d8ec6);}let _0x3be63d=![];for(const _0x18db25 of _0x147009){if(_0x18db25[_0x2b33e5(-0x83,-_0x546ebb._0xb39f8a,_0x546ebb._0x5139d8,_0x546ebb._0x57008b)]===_0x2b33e5(_0x546ebb._0x100dcc,0x29d,0x142,_0x546ebb._0x281eca)){_0x3be63d=!![];isUserVisibleThinking(_0x4d95db)&&_0x3c19bf['push']({'type':'anthropic_thinking','thinking':_0x18db25['thinking'],'signature':_0x18db25['signature']});continue;}if(_0x18db25[_0x47f3f0(-_0x546ebb._0x1d75da,-0x352,-_0x546ebb._0x1fb248,-0x2ba)]===_0x2b33e5(0x35,_0x546ebb._0x18fc54,_0x546ebb._0x45a3f4,_0x546ebb._0x5e6abd)){_0x3be63d=!![];isUserVisibleThinking(_0x4d95db)&&_0x3c19bf[_0x47f3f0(-_0x546ebb._0x21fac3,-0xea,-_0x546ebb._0x1c440e,-0x1f1)]({'type':_0x2b33e5(_0x546ebb._0x4da9ce,0x23d,_0x546ebb._0x14befb,0x131),'data':_0x18db25[_0x2b33e5(0x1fe,_0x546ebb._0x4b1c64,0xd4,_0x546ebb._0x4896e9)]});continue;}if(_0x18db25[_0x2b33e5(-0x76,-0x90,0xd3,0x64)]===_0x47f3f0(-0x244,-0x25b,-0x13e,-0x2b1)){_0x18db25[_0x2b33e5(0x9b,0x1ca,0x1e7,_0x546ebb._0x4f84fa)]['length']>0x0&&_0x3c19bf[_0x47f3f0(-_0x546ebb._0x21fac3,-0x21e,-0x24d,-0x250)](structuredClone(_0x18db25));continue;}_0x3c19bf[_0x47f3f0(-0x14a,-_0x546ebb._0x2984de,-_0x546ebb._0x4bd5d5,-_0x546ebb._0x3afeab)](structuredClone(_0x18db25));}return{'id':_0x17e6b0['id']??'msg-'+Date[_0x47f3f0(-_0x546ebb._0x41c2c9,-0x28a,-0x22c,-0x241)](),'content':_0x3c19bf,'stopReason':_0x3c19bf[_0x47f3f0(-_0x546ebb._0xd7ff01,-_0x546ebb._0x199227,-0x2d1,-0x370)](_0x37bd89=>_0x37bd89[_0x47f3f0(-0x2dc,-0x32b,-0x22f,-0x2fa)]==='tool_use')?_0x47f3f0(-0x299,-_0x546ebb._0x576b04,-0x34a,-_0x546ebb._0x39045c):_0x17e6b0[_0x47f3f0(-_0x546ebb._0x4709aa,-0x34e,-0x3d3,-0x317)]===_0x2b33e5(-_0x546ebb._0x556467,_0x546ebb._0xf7e6b6,0x4b,_0x546ebb._0x441672)?'tool_use':_0x2b33e5(0x44,_0x546ebb._0xce77a1,_0x546ebb._0x38f7e0,0xef),'usage':{'inputTokens':(_0x17e6b0[_0x47f3f0(-0x15f,-_0x546ebb._0x5786a3,-0x263,-_0x546ebb._0x1a6e70)]?.[_0x47f3f0(-0x186,-0xc4,-0x15c,-_0x546ebb._0x4a836a)]??0x0)+(_0x17e6b0[_0x47f3f0(-_0x546ebb._0xf7e6b6,-0xb8,-0x203,-0x96)]?.[_0x47f3f0(-0x15d,-0x13b,-_0x546ebb._0x2ea92a,-_0x546ebb._0x59ae67)]??0x0)+(_0x17e6b0['usage']?.['cache_creation_input_tokens']??0x0),'outputTokens':_0x17e6b0[_0x2b33e5(0x12a,_0x546ebb._0x3990fd,_0x546ebb._0x2dfffd,_0x546ebb._0x1053a6)]?.['output_tokens']??0x0,..._0x17e6b0[_0x47f3f0(-_0x546ebb._0x443a89,-0x258,-0x56,-_0x546ebb._0x3bd90d)]?.['output_tokens_details']?.[_0x2b33e5(_0x546ebb._0x4d1f21,_0x546ebb._0x5cb516,0x58,_0x546ebb._0x4e94e1)]!==void 0x0?{'reasoningTokens':_0x17e6b0[_0x2b33e5(_0x546ebb._0x240430,0x115,_0x546ebb._0x483937,0x1e1)][_0x47f3f0(-_0x546ebb._0x347c3e,-_0x546ebb._0x268044,-_0x546ebb._0x5919f5,-0xb9)][_0x47f3f0(-_0x546ebb._0x310fc4,-0x319,-_0x546ebb._0x5bf1e3,-_0x546ebb._0x2cab14)]}:{},..._0x17e6b0['usage']?.[_0x2b33e5(0x21f,_0x546ebb._0x34ea82,0x14e,_0x546ebb._0x2186cc)]!==void 0x0?{'cacheReadInputTokens':_0x17e6b0[_0x47f3f0(-0x15f,-_0x546ebb._0x371e1b,-_0x546ebb._0x54843a,-_0x546ebb._0x5b10ce)][_0x2b33e5(0x1e3,_0x546ebb._0x2cf596,_0x546ebb._0xcfafff,_0x546ebb._0x4adeaa)]}:{},..._0x17e6b0[_0x2b33e5(0x2cb,_0x546ebb._0xe1fd6e,_0x546ebb._0x55be42,_0x546ebb._0x4cb86e)]?.[_0x47f3f0(-0x2df,-_0x546ebb._0x39d638,-_0x546ebb._0x24c480,-0x319)]!==void 0x0?{'cacheCreationInputTokens':_0x17e6b0[_0x2b33e5(0x26a,_0x546ebb._0x122f20,0x16f,_0x546ebb._0x1053a6)][_0x2b33e5(0x126,_0x546ebb._0x453da4,-_0x546ebb._0x4bb586,0x61)]}:{}},..._0x3be63d?{'providerState':{'anthropicAssistantContent':structuredClone(_0x147009)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();[_0x3dbb2c(0x142,0x212,0x115,0x24c)];[_0x5b3424(-0x245,-0x153,-0x46,-0x9c)];[_0x3dbb2c(0x3e5,0x2f2,0x2df,0x290)]=0x0;[_0x3dbb2c(0x15b,0x250,0x24e,0x313)]=_0x5b3424(-0x1a1,-0x1e1,-0x291,-0x190)+Date['now']();['outputTokens']=0x0;['request'];[_0x5b3424(-0x145,-0x131,-0x2c,-0x21b)]='end_turn';['thinkingTokens'];constructor(_0x2b866b){const _0x571778={_0x2fa3f6:0x251,_0x22bd1d:0x227,_0x21e9fa:0x2c7},_0x198a6b={_0x3b0d5c:0x17b,_0x22244b:0xb,_0x29ef6f:0xb0};function _0x385004(_0x19552a,_0x1d37fe,_0x31147e,_0x2ff873){return _0x5b3424(_0x19552a-_0x198a6b._0x3b0d5c,_0x2ff873- -_0x198a6b._0x22244b,_0x31147e-_0x198a6b._0x29ef6f,_0x1d37fe);}this[_0x385004(-_0x571778._0x2fa3f6,-_0x571778._0x22bd1d,-0x298,-_0x571778._0x21e9fa)]=_0x2b866b;}[_0x3dbb2c(0x1f7,0x148,0x24f,0x1b3)](_0x1b16a9){const _0x2ca4cc={_0x363147:0x581,_0x31bb38:0x47a,_0x1f18da:0x455,_0x126361:0x468,_0x52a93e:0x650,_0xee613b:0x5af,_0x3c0735:0x60,_0x27e5be:0x27,_0x477fd6:0x456,_0x455c5b:0x5f4,_0x38ec9a:0x623,_0x6fe30e:0x1bc,_0x564935:0x493,_0x2b2619:0x442,_0x22f52d:0x49d,_0x45d221:0x428,_0x2f476b:0x170,_0xbd5f30:0x26f,_0x7c18ea:0xd8,_0x58aea9:0x23,_0xffd969:0x5c2,_0x5457ac:0xe9,_0x309036:0x8b,_0x137593:0x47,_0x4877a5:0x6b,_0x2d68ab:0xb4,_0x5312d2:0x88,_0x292fb8:0x60,_0x32b44c:0x13e,_0x5f4077:0x113,_0x3d2715:0x61e,_0x45c461:0x5df,_0xa814e3:0x63b,_0x47a625:0x5af,_0x3943b:0x623,_0x386168:0x561,_0x5ec245:0x86,_0x5d0f18:0x128,_0x57b13c:0x61,_0x348d4c:0x549,_0x40ecac:0x5de,_0x5c5aa1:0x127,_0x15d603:0x4b,_0x3e3425:0x110,_0x58a7ff:0x88,_0x19c387:0x21,_0x143128:0xdc,_0x471ddf:0x208,_0x5663aa:0x607,_0x219751:0x536,_0x190d4f:0x601,_0xa7ab7a:0x5d1,_0x394548:0x14a,_0x5eb326:0x214,_0x2355df:0xc6,_0x489a1e:0x173,_0x28e224:0x87,_0xca1c90:0x16b,_0x22a82d:0x14a,_0x4efbc3:0x188,_0xa6aa3e:0x46f,_0x28eac0:0x175,_0x22c53b:0x13f,_0x242c94:0xa7,_0x29a37d:0x23d,_0x17d77a:0x22e,_0x5979da:0x193,_0x4de00a:0x2c1,_0x59561b:0x4e6,_0x26eb46:0x4f2,_0xf6911f:0x16f,_0x4355a9:0x42a,_0x450b90:0x5a0,_0xa40c45:0x547,_0x478872:0x58f,_0x6176f4:0x507,_0x533a64:0x460,_0x22a2d8:0x3e6,_0x3a0f3a:0x421,_0x1210f9:0x637,_0x59a9b8:0x53a,_0x31ecb0:0x3fa,_0x4adbbd:0x567,_0x16c572:0x2e,_0x27b06c:0x33,_0x108fe6:0x17,_0x1d9eba:0x1cd,_0x2faab0:0x2d8,_0x3e747f:0x23d,_0xd08801:0x4f2,_0x5aba8e:0x408,_0x200a9c:0x4b8,_0x6c6176:0x157,_0x4eaca5:0x6fe,_0x3b0139:0x1cd,_0x92b207:0x1e4,_0x27f75d:0x7f,_0x864614:0x50f,_0xed2f66:0x526,_0x45fe82:0x483,_0x17db28:0x4fc,_0x2324bb:0x4b5,_0x2fe7af:0x5bc,_0x5cd604:0x498,_0x2ee817:0x4f1,_0x564cf4:0x473,_0x119316:0x55e,_0x56e645:0x111,_0xe4a287:0x4f0,_0x20db87:0x53f,_0x217eb4:0x41c,_0x5e1b1f:0x4fb,_0x4f7cf9:0x62d,_0x230016:0x4f8,_0x592ebd:0x59a,_0x30e078:0x5aa,_0xfe4d42:0x51b,_0x57ccae:0x45a,_0x87f220:0x4ae,_0x445f1b:0x10b,_0x13d8cb:0xe3,_0x4c2438:0x4f7,_0x1f3686:0x4d3,_0x4b0168:0x205,_0x2f9782:0x289,_0x38e423:0x218,_0x119d9f:0x2c2,_0x306936:0x16d,_0x55b90e:0x437,_0x5bac14:0x498,_0x1da1fd:0x523,_0x14fc12:0x176,_0x528f4a:0x81,_0x199c79:0x12d,_0x34ade5:0x6a,_0x548f75:0x38,_0x2856f7:0x16d,_0x504045:0x198,_0x4dfc5c:0x1c0,_0x32fec2:0x1bb,_0x11f13b:0x469,_0x49ceb7:0x402,_0x29d788:0x55c,_0x35f1db:0x644,_0x46d7b8:0x462,_0x855ac2:0x450,_0x47bfc2:0x40e,_0x1cf1cf:0x92,_0x20d66d:0x8,_0x31e6ec:0x158,_0x1fa0a1:0x574,_0xbb3b91:0x4e7,_0x3d6139:0x565,_0x5e8558:0xf0,_0xc89988:0x267,_0x3e69dc:0x4fd,_0xa40fbc:0x582,_0x19dfcb:0x637,_0x3a6349:0x672,_0x404661:0x538,_0x32f46e:0x637,_0x4ecb47:0x6dd,_0x5834ad:0x5db,_0x4ff247:0x3da,_0x18ebf4:0x3b8,_0x5dee8a:0x5d3,_0x873782:0x3d5,_0x16ce8c:0x5bb,_0x260a88:0x3d3,_0x1bec6f:0x205,_0x521ef6:0x637,_0x5ba4d1:0x589,_0x57f758:0x595,_0x1a7cce:0x3bc,_0x3dddd6:0x3b3,_0x4f8317:0x4e8,_0x468126:0x400,_0x5e4e59:0x1d2,_0x112d92:0x13a,_0x1a3fe1:0x21a,_0x2ff693:0x172,_0x2cf9a9:0x223,_0x28e995:0x5c2,_0x3969d3:0x62,_0x546bf:0x4d,_0x2824c5:0x7f,_0x44213d:0x5b6,_0x3df5bf:0x649,_0x4ba515:0x664,_0x1d1e75:0x656,_0x122a7f:0x608,_0x2711f4:0x4d4,_0x2cc02c:0x640,_0x24f9f1:0x655,_0x2218b8:0x6b9,_0xda3adc:0x4bb,_0x860a12:0x3bf,_0x49a510:0x45d,_0x977ddf:0x376,_0x3c50e3:0x39a,_0x2378c2:0x590,_0x54b3fc:0x550,_0x31fd80:0x57c,_0x275b38:0x5f1,_0x194b3c:0x577,_0x441c26:0x46b,_0x291a9b:0x492,_0x449476:0x318,_0x98a7c8:0x334,_0x1ff268:0x478,_0x35aa68:0x4d8,_0x1ecb20:0x493,_0xa740a7:0x4bc,_0x234d44:0x549,_0x4a4aed:0x670,_0x35e171:0x1c2,_0x246c13:0x185,_0x1eb7aa:0xc0,_0x363ed4:0x181,_0x14472b:0x186,_0x4b0988:0x6d,_0xafe8f5:0x103,_0x53a911:0x4ac,_0x5b432d:0x569,_0xbda65:0x43c,_0x29c69a:0x3b2,_0x29978c:0x4b5,_0x24e9f0:0x205},_0x13b260={_0x34001c:0x91},_0x3971d4={_0x202c3e:0x1ca},_0x37169b=_0x1b16a9[_0x12d0ba(0x542,_0x2ca4cc._0x363147,_0x2ca4cc._0x31bb38,_0x2ca4cc._0x1f18da)]('\x0a');function _0x444ead(_0x4d566a,_0x23d0e7,_0x11b6b4,_0x2bfa82){return _0x3dbb2c(_0x4d566a-0x182,_0x4d566a- -0x339,_0x11b6b4-_0x3971d4._0x202c3e,_0x23d0e7);}const _0x46306b=_0x37169b[_0x12d0ba(0x56a,_0x2ca4cc._0x126361,_0x2ca4cc._0x52a93e,_0x2ca4cc._0xee613b)](_0x20fd60=>_0x20fd60[_0x444ead(-0x17b,-0x176,-0x24e,-0x1c9)](_0x12d0ba(0x48b,0x515,0x38c,0x47f)))?.[_0x444ead(-_0x2ca4cc._0x3c0735,0x58,-_0x2ca4cc._0x27e5be,-0x125)](0x6)[_0x12d0ba(0x448,0x3d2,0x408,_0x2ca4cc._0x477fd6)](),_0x57d622=_0x37169b[_0x12d0ba(_0x2ca4cc._0x455c5b,0x702,_0x2ca4cc._0x38ec9a,0x4ec)](_0x1a023c=>_0x1a023c[_0x444ead(-0x17b,-0x1a9,-0x199,-0x137)](_0x12d0ba(0x62c,0x72d,0x66b,0x637)))[_0x444ead(-0x1fe,-0x16e,-_0x2ca4cc._0x6fe30e,-0x1d2)](_0x273232=>_0x273232[_0x12d0ba(0x605,0x5b4,0x63a,0x615)](0x5)['trimStart']())[_0x12d0ba(0x45a,0x4c4,0x547,0x4ff)]('\x0a')['trim']();if(_0x57d622[_0x12d0ba(_0x2ca4cc._0x564935,0x55d,0x41b,0x393)]===0x0||_0x57d622===_0x12d0ba(_0x2ca4cc._0x2b2619,_0x2ca4cc._0x22f52d,0x33b,_0x2ca4cc._0x45d221))return[];function _0x12d0ba(_0x501d75,_0x37a3bf,_0x89b038,_0x1b3ca8){return _0x5b3424(_0x501d75-_0x13b260._0x34001c,_0x501d75-0x702,_0x89b038-0x67,_0x1b3ca8);}const _0xb6473b=JSON[_0x444ead(-0x1e3,-_0x2ca4cc._0x2f476b,-_0x2ca4cc._0xbd5f30,-_0x2ca4cc._0x7c18ea)](_0x57d622);switch(_0x46306b){case _0x444ead(-0x2f,0x9c,-0x6e,-_0x2ca4cc._0x58aea9):{const _0x575073=_0xb6473b[_0x12d0ba(0x56c,_0x2ca4cc._0xffd969,0x4f2,0x57c)];this['messageId']=_0x575073?.['id']??this[_0x444ead(-_0x2ca4cc._0x5457ac,-_0x2ca4cc._0x309036,-0x1cc,-0xd6)],this[_0x444ead(-_0x2ca4cc._0x137593,-0xfe,-_0x2ca4cc._0x4877a5,_0x2ca4cc._0x2d68ab)]=_0x575073?.[_0x444ead(-_0x2ca4cc._0x5312d2,-0x102,-_0x2ca4cc._0x292fb8,0x2e)]?.[_0x444ead(-0xaf,-_0x2ca4cc._0x32b44c,-_0x2ca4cc._0x5f4077,-0x9d)]??this[_0x12d0ba(_0x2ca4cc._0x3d2715,0x586,0x5bf,0x63f)];_0x575073?.['usage']?.[_0x12d0ba(_0x2ca4cc._0x45c461,_0x2ca4cc._0xa814e3,0x5e7,0x6a4)]!==void 0x0&&(this[_0x12d0ba(_0x2ca4cc._0x47a625,_0x2ca4cc._0x3943b,0x654,_0x2ca4cc._0x386168)]=_0x575073['usage'][_0x444ead(-_0x2ca4cc._0x5ec245,-0x4d,-_0x2ca4cc._0x5d0f18,_0x2ca4cc._0x57b13c)]);_0x575073?.[_0x12d0ba(0x5dd,_0x2ca4cc._0x348d4c,_0x2ca4cc._0x40ecac,0x593)]?.['cache_creation_input_tokens']!==void 0x0&&(this[_0x444ead(-_0x2ca4cc._0x5c5aa1,-_0x2ca4cc._0x15d603,-_0x2ca4cc._0x3e3425,-0x130)]=_0x575073[_0x444ead(-_0x2ca4cc._0x58a7ff,-0xa7,-_0x2ca4cc._0x19c387,-_0x2ca4cc._0x143128)][_0x444ead(-_0x2ca4cc._0x471ddf,-0x1d0,-0x1b7,-0x182)]);break;}case _0x12d0ba(_0x2ca4cc._0x5663aa,_0x2ca4cc._0x219751,_0x2ca4cc._0x190d4f,_0x2ca4cc._0xa7ab7a):{const _0xd12ca=typeof _0xb6473b[_0x444ead(-_0x2ca4cc._0x394548,-_0x2ca4cc._0x5eb326,-_0x2ca4cc._0x2355df,-_0x2ca4cc._0x489a1e)]===_0x444ead(-_0x2ca4cc._0x28e224,0x40,-0xad,-_0x2ca4cc._0xca1c90)?_0xb6473b[_0x444ead(-_0x2ca4cc._0x22a82d,-_0x2ca4cc._0x4efbc3,-0x8d,-0x9c)]:0x0,_0x155502=_0xb6473b['content_block'];if(_0x155502?.['type']==='tool_use'&&_0x155502['id']&&_0x155502[_0x12d0ba(0x547,0x506,_0x2ca4cc._0xa6aa3e,0x654)])return this[_0x444ead(-_0x2ca4cc._0x28eac0,-0x18d,-0x113,-_0x2ca4cc._0x7c18ea)][_0x444ead(-_0x2ca4cc._0x22c53b,-_0x2ca4cc._0x242c94,-_0x2ca4cc._0x29a37d,-_0x2ca4cc._0x17d77a)](_0xd12ca,{'id':_0x155502['id'],'index':_0xd12ca,'inputJson':JSON[_0x444ead(-0x1b4,-0xe1,-_0x2ca4cc._0x5979da,-_0x2ca4cc._0x4de00a)](_0x155502['input']??{}),'kind':_0x12d0ba(0x4a3,0x512,_0x2ca4cc._0x59561b,_0x2ca4cc._0x26eb46),'name':_0x155502[_0x444ead(-0x11e,-0x92,-_0x2ca4cc._0xf6911f,-0x49)]}),[{'type':_0x12d0ba(0x4af,_0x2ca4cc._0x4355a9,_0x2ca4cc._0x450b90,0x540),'id':_0x155502['id'],'index':_0xd12ca,'name':_0x155502[_0x12d0ba(_0x2ca4cc._0xa40c45,0x5b0,_0x2ca4cc._0x478872,_0x2ca4cc._0x6176f4)]}];if(_0x155502?.[_0x12d0ba(_0x2ca4cc._0x533a64,0x548,_0x2ca4cc._0x22a2d8,_0x2ca4cc._0x3a0f3a)]===_0x12d0ba(_0x2ca4cc._0x1210f9,0x6fb,0x607,0x5f5)){this[_0x12d0ba(0x4f0,_0x2ca4cc._0x59a9b8,_0x2ca4cc._0x31ecb0,_0x2ca4cc._0x4adbbd)]['set'](_0xd12ca,{'index':_0xd12ca,'kind':_0x444ead(-_0x2ca4cc._0x16c572,-0x47,-_0x2ca4cc._0x27b06c,-_0x2ca4cc._0x108fe6),'signature':typeof _0x155502['signature']===_0x444ead(-_0x2ca4cc._0x1d9eba,-_0x2ca4cc._0x2faab0,-_0x2ca4cc._0x3e747f,-0x19e)?_0x155502[_0x444ead(-0x207,-0x1f6,-0x231,-0x223)]:'','thinking':typeof _0x155502[_0x12d0ba(0x4f8,_0x2ca4cc._0xd08801,_0x2ca4cc._0x5aba8e,_0x2ca4cc._0x200a9c)]===_0x444ead(-0x1cd,-0x234,-0x137,-_0x2ca4cc._0x6c6176)?_0x155502['text']:typeof _0x155502[_0x12d0ba(0x637,0x547,0x54c,_0x2ca4cc._0x4eaca5)]===_0x444ead(-_0x2ca4cc._0x3b0139,-0x2d3,-0x200,-0x2d6)?String(_0x155502['thinking']):''});break;}if(_0x155502?.['type']===_0x444ead(-0x169,-_0x2ca4cc._0x92b207,-_0x2ca4cc._0x27f75d,-0xe4)){this[_0x12d0ba(0x4f0,0x55f,_0x2ca4cc._0x864614,0x40e)][_0x12d0ba(_0x2ca4cc._0xed2f66,_0x2ca4cc._0x45fe82,0x59f,_0x2ca4cc._0x477fd6)](_0xd12ca,{'index':_0xd12ca,'kind':_0x12d0ba(_0x2ca4cc._0x17db28,_0x2ca4cc._0x3a0f3a,0x41a,0x5df),'data':typeof _0x155502[_0x12d0ba(0x554,0x61b,_0x2ca4cc._0x2324bb,_0x2ca4cc._0x2fe7af)]===_0x12d0ba(_0x2ca4cc._0x5cd604,_0x2ca4cc._0x2ee817,_0x2ca4cc._0x564cf4,_0x2ca4cc._0x119316)?String(_0x155502[_0x444ead(-_0x2ca4cc._0x56e645,-0x1ca,-0x1df,-0x42)]):''});break;}this[_0x12d0ba(_0x2ca4cc._0xe4a287,0x55d,_0x2ca4cc._0x20db87,_0x2ca4cc._0x217eb4)][_0x12d0ba(0x526,_0x2ca4cc._0x5e1b1f,0x591,_0x2ca4cc._0x4f7cf9)](_0xd12ca,{'index':_0xd12ca,'kind':'text','text':_0x155502?.[_0x12d0ba(_0x2ca4cc._0x230016,0x496,_0x2ca4cc._0x592ebd,0x40b)]??''});break;}case _0x12d0ba(0x63d,_0x2ca4cc._0x30e078,0x605,0x59c):{const _0x51ddc4=typeof _0xb6473b[_0x12d0ba(_0x2ca4cc._0xfe4d42,_0x2ca4cc._0x57ccae,0x534,_0x2ca4cc._0x87f220)]===_0x12d0ba(_0x2ca4cc._0x40ecac,0x552,0x5fe,0x6cf)?_0xb6473b[_0x444ead(-_0x2ca4cc._0x394548,-_0x2ca4cc._0x445f1b,-0x255,-_0x2ca4cc._0x13d8cb)]:0x0,_0x4ee5cd=this['blocks']['get'](_0x51ddc4),_0x10e3e4=_0xb6473b[_0x12d0ba(_0x2ca4cc._0x4c2438,0x42a,0x47c,_0x2ca4cc._0x1f3686)];if(!_0x4ee5cd||!_0x10e3e4?.[_0x444ead(-_0x2ca4cc._0x4b0168,-_0x2ca4cc._0x2f9782,-_0x2ca4cc._0x38e423,-0x17a)])break;if(_0x10e3e4[_0x444ead(-0x205,-0x242,-0x1a8,-_0x2ca4cc._0x119d9f)]===_0x444ead(-0x1e1,-0x10f,-_0x2ca4cc._0x4efbc3,-0x217)&&_0x4ee5cd['kind']===_0x444ead(-_0x2ca4cc._0x306936,-0x1f2,-0x1d8,-0x1a1)&&typeof _0x10e3e4[_0x12d0ba(0x4f8,_0x2ca4cc._0x2324bb,_0x2ca4cc._0x55b90e,0x5db)]===_0x12d0ba(_0x2ca4cc._0x5bac14,_0x2ca4cc._0x1da1fd,0x4a6,0x50e))return _0x4ee5cd[_0x444ead(-0x16d,-0xf4,-_0x2ca4cc._0x14fc12,-_0x2ca4cc._0x528f4a)]+=_0x10e3e4[_0x444ead(-0x16d,-0x1d2,-_0x2ca4cc._0x199c79,-0x110)],[{'type':_0x444ead(-0x2a,-_0x2ca4cc._0x34ade5,-0x12f,-_0x2ca4cc._0x548f75),'index':_0x51ddc4,'text':_0x10e3e4[_0x444ead(-_0x2ca4cc._0x2856f7,-_0x2ca4cc._0x14fc12,-_0x2ca4cc._0x504045,-_0x2ca4cc._0x4dfc5c)]}];if(_0x10e3e4[_0x444ead(-_0x2ca4cc._0x4b0168,-0x253,-_0x2ca4cc._0x32fec2,-0x267)]===_0x12d0ba(_0x2ca4cc._0x11f13b,0x4f4,_0x2ca4cc._0x49ceb7,0x50a)&&_0x4ee5cd[_0x12d0ba(_0x2ca4cc._0x29d788,_0x2ca4cc._0x35f1db,_0x2ca4cc._0x46d7b8,_0x2ca4cc._0x533a64)]===_0x12d0ba(0x4a3,0x5a9,_0x2ca4cc._0x855ac2,_0x2ca4cc._0x47bfc2)&&typeof _0x10e3e4[_0x444ead(-_0x2ca4cc._0x1cf1cf,-0x1e,-_0x2ca4cc._0x20d66d,-0xd3)]==='string')return _0x4ee5cd[_0x444ead(-0x150,-_0x2ca4cc._0x31e6ec,-0x122,-0x1d1)]==='{}'&&(_0x4ee5cd[_0x12d0ba(0x515,_0x2ca4cc._0x1fa0a1,_0x2ca4cc._0x29d788,_0x2ca4cc._0xbb3b91)]=''),_0x4ee5cd['inputJson']+=_0x10e3e4[_0x12d0ba(0x5d3,0x500,0x4ee,_0x2ca4cc._0x3d6139)],[{'type':_0x444ead(-0x1b6,-_0x2ca4cc._0x5e8558,-0xd8,-_0x2ca4cc._0xc89988),'id':_0x4ee5cd['id'],'index':_0x51ddc4,'inputDelta':_0x10e3e4[_0x12d0ba(0x5d3,0x5a3,_0x2ca4cc._0x3e69dc,_0x2ca4cc._0xa40fbc)]}];if(_0x10e3e4[_0x444ead(-0x205,-0x20f,-0x1ba,-0x21e)]==='thinking_delta'&&_0x4ee5cd['kind']===_0x12d0ba(_0x2ca4cc._0x19dfcb,_0x2ca4cc._0x3a6349,_0x2ca4cc._0x404661,0x6f3)){const _0x4fb354=typeof _0x10e3e4[_0x12d0ba(_0x2ca4cc._0x32f46e,_0x2ca4cc._0x4ecb47,0x72e,0x724)]==='string'?String(_0x10e3e4[_0x12d0ba(_0x2ca4cc._0x19dfcb,0x556,0x6db,_0x2ca4cc._0x5834ad)]):'';if(_0x4fb354[_0x12d0ba(0x493,0x48e,_0x2ca4cc._0x4ff247,_0x2ca4cc._0x18ebf4)]>0x0){_0x4ee5cd[_0x12d0ba(0x637,0x728,_0x2ca4cc._0x5dee8a,0x5a8)]+=_0x4fb354;if(isUserVisibleThinking(this['request']))return[{'type':_0x12d0ba(0x4bb,_0x2ca4cc._0x873782,_0x2ca4cc._0x16ce8c,_0x2ca4cc._0x260a88),'index':_0x51ddc4,'thinking':_0x4fb354}];}}if(_0x10e3e4[_0x444ead(-_0x2ca4cc._0x1bec6f,-0x149,-0x225,-0x210)]==='signature_delta'&&_0x4ee5cd['kind']===_0x12d0ba(_0x2ca4cc._0x521ef6,0x6f8,_0x2ca4cc._0x5ba4d1,0x695)){const _0x4ca162=typeof _0x10e3e4['signature']===_0x12d0ba(0x498,0x457,_0x2ca4cc._0x57f758,_0x2ca4cc._0x1a7cce)?String(_0x10e3e4[_0x12d0ba(0x45e,_0x2ca4cc._0x3dddd6,_0x2ca4cc._0x4f8317,_0x2ca4cc._0x468126)]):'';if(_0x4ca162[_0x444ead(-_0x2ca4cc._0x5e4e59,-_0x2ca4cc._0x112d92,-0x1f4,-_0x2ca4cc._0x1a3fe1)]>0x0){_0x4ee5cd[_0x444ead(-0x207,-_0x2ca4cc._0x2ff693,-_0x2ca4cc._0x2cf9a9,-0x271)]=_0x4ca162;if(isUserVisibleThinking(this['request']))return[{'type':_0x12d0ba(0x506,0x4f2,0x5e0,_0x2ca4cc._0x6176f4),'index':_0x51ddc4,'signature':_0x4ca162}];}}break;}case'message_delta':{const _0x3d509b=_0xb6473b[_0x12d0ba(0x4f7,0x59f,0x403,_0x2ca4cc._0x28e995)],_0xf23f2f=_0xb6473b[_0x444ead(-0x88,-0x3c,_0x2ca4cc._0x3969d3,_0x2ca4cc._0x546bf)];this[_0x444ead(-0x47,0x8,-_0x2ca4cc._0x2824c5,0x7)]=_0xf23f2f?.[_0x12d0ba(_0x2ca4cc._0x44213d,_0x2ca4cc._0x3df5bf,0x5ff,_0x2ca4cc._0x4ba515)]??this[_0x12d0ba(0x61e,_0x2ca4cc._0x1d1e75,_0x2ca4cc._0x122a7f,0x618)];_0xf23f2f?.[_0x12d0ba(_0x2ca4cc._0x45c461,_0x2ca4cc._0x2711f4,0x5db,0x533)]!==void 0x0&&(this[_0x12d0ba(_0x2ca4cc._0x47a625,0x4e2,_0x2ca4cc._0x2cc02c,0x5f7)]=_0xf23f2f[_0x12d0ba(_0x2ca4cc._0x45c461,_0x2ca4cc._0x24f9f1,0x55d,_0x2ca4cc._0x2218b8)]);_0xf23f2f?.[_0x12d0ba(0x45d,0x44f,_0x2ca4cc._0xda3adc,_0x2ca4cc._0x860a12)]!==void 0x0&&(this['cacheCreationInputTokens']=_0xf23f2f[_0x12d0ba(_0x2ca4cc._0x49a510,_0x2ca4cc._0x977ddf,_0x2ca4cc._0x3c50e3,0x517)]);this['outputTokens']=_0xf23f2f?.[_0x12d0ba(_0x2ca4cc._0x2378c2,_0x2ca4cc._0x54b3fc,_0x2ca4cc._0x31fd80,0x60b)]??this[_0x12d0ba(_0x2ca4cc._0x275b38,0x62a,0x6be,0x51f)];_0xf23f2f?.[_0x12d0ba(_0x2ca4cc._0x194b3c,_0x2ca4cc._0x441c26,_0x2ca4cc._0x291a9b,0x4ab)]?.['thinking_tokens']!==void 0x0&&(this[_0x444ead(-0x231,-_0x2ca4cc._0x449476,-_0x2ca4cc._0x98a7c8,-0x1e7)]=_0xf23f2f[_0x12d0ba(_0x2ca4cc._0x194b3c,0x52c,0x565,_0x2ca4cc._0x1ff268)][_0x12d0ba(0x528,_0x2ca4cc._0x35aa68,_0x2ca4cc._0x1ecb20,_0x2ca4cc._0xa740a7)]);this[_0x12d0ba(_0x2ca4cc._0xa7ab7a,0x5d2,_0x2ca4cc._0x234d44,_0x2ca4cc._0x4a4aed)]=_0x3d509b?.['stop_reason']===_0x444ead(-_0x2ca4cc._0x35e171,-0x150,-_0x2ca4cc._0x246c13,-0x1ba)?_0x444ead(-_0x2ca4cc._0x35e171,-_0x2ca4cc._0x1eb7aa,-_0x2ca4cc._0x363ed4,-0x173):'end_turn';break;}case'error':{const _0x5249b0=_0xb6473b[_0x444ead(-0x99,-_0x2ca4cc._0x14472b,-_0x2ca4cc._0x4b0988,-_0x2ca4cc._0xafe8f5)];throw new ProviderStreamEventError(_0x5249b0?.[_0x12d0ba(0x56c,0x561,_0x2ca4cc._0x53a911,_0x2ca4cc._0x5b432d)]??_0x12d0ba(_0x2ca4cc._0xbda65,_0x2ca4cc._0x29c69a,_0x2ca4cc._0x29978c,0x441),{'code':_0x5249b0?.[_0x444ead(-_0x2ca4cc._0x24e9f0,-0x11d,-0x10a,-0x201)],'retryable':!![]});}}return[];}[_0x3dbb2c(0x1da,0x151,0x220,0x102)](){const _0x32b37a={_0x5a36d6:0xff,_0x319c8:0x189,_0x461d07:0x84,_0x26f507:0x17c,_0x205399:0x1fb,_0x582f06:0x302,_0x9b54f7:0x271,_0x5bb3f4:0x33a,_0x4419a2:0x19c,_0x42f3ee:0x284,_0x5229ee:0x433,_0x2ffe67:0x375,_0x4332f5:0x2d2,_0x5e16b7:0x23b,_0x503b26:0x261,_0x4c1b7b:0x16c,_0x49fae9:0x1d7,_0x3bf44c:0x193,_0x97e22b:0x3d8,_0x4fd0ab:0x417,_0x4e5e37:0x412,_0x226122:0x1b2,_0x2e98d2:0x1a5,_0x44bbbe:0x264,_0x291f06:0x204,_0x5ac0fd:0x105,_0x504344:0x1fa,_0x25c371:0x29c,_0xb02ce4:0x1ec,_0x195360:0x2cd,_0x598448:0x21e,_0x270fa6:0x3ca,_0x29db7e:0x322,_0x4bc435:0x3ee,_0x45b8fb:0x1c7,_0x5a85cc:0x1f0,_0x51a901:0x106,_0x3ec1a5:0x377,_0xec742c:0x3fd,_0x3716c9:0x3c4,_0x4e825f:0x394,_0x345ea2:0x386,_0x49b12a:0x459,_0x580c43:0x2ff,_0x4bd9aa:0x285,_0x4ff4a6:0x27d,_0x43c785:0x270},_0xd9cea={_0x5ac110:0xe4,_0x6af9b5:0x407,_0x5eae3b:0xc9},_0xc4b1f5={_0x1ab4aa:0x176,_0x5cbf5f:0x4a8,_0x3dde78:0x1c3};function _0x15ce4e(_0x207b38,_0x55d311,_0x2f5db,_0x4dd583){return _0x5b3424(_0x207b38-_0xc4b1f5._0x1ab4aa,_0x2f5db-_0xc4b1f5._0x5cbf5f,_0x2f5db-_0xc4b1f5._0x3dde78,_0x4dd583);}const _0x199db5=Array['from'](this[_0x26890(-0x243,-0x1f8,-0x281,-0x2b9)][_0x26890(-0x1bd,-_0x32b37a._0x5a36d6,-_0x32b37a._0x319c8,-0x1a6)]())[_0x26890(-0x189,-0x27d,-_0x32b37a._0x461d07,-_0x32b37a._0x26f507)]((_0x3c59c6,_0x4b8e76)=>_0x3c59c6[_0x15ce4e(0x22f,0x38f,0x2c1,0x38f)]-_0x4b8e76['index']),_0x616420=[];function _0x26890(_0x381b4c,_0x287d3b,_0x55fefc,_0x1df857){return _0x3dbb2c(_0x381b4c-_0xd9cea._0x5ac110,_0x381b4c- -_0xd9cea._0x6af9b5,_0x55fefc-_0xd9cea._0x5eae3b,_0x1df857);}for(const _0x5e3912 of _0x199db5){if(_0x5e3912[_0x15ce4e(0x3f4,_0x32b37a._0x205399,_0x32b37a._0x582f06,_0x32b37a._0x9b54f7)]===_0x26890(-0x23b,-0x291,-_0x32b37a._0x5bb3f4,-_0x32b37a._0x4419a2)){_0x5e3912[_0x26890(-0x23b,-0x166,-0x308,-_0x32b37a._0x42f3ee)]['length']>0x0&&_0x616420[_0x15ce4e(_0x32b37a._0x5229ee,_0x32b37a._0x2ffe67,0x398,_0x32b37a._0x4332f5)]({'type':'text','text':_0x5e3912[_0x26890(-_0x32b37a._0x5e16b7,-_0x32b37a._0x503b26,-_0x32b37a._0x4c1b7b,-0x237)]});continue;}if(_0x5e3912[_0x26890(-_0x32b37a._0x49fae9,-0x112,-_0x32b37a._0x3bf44c,-0x18c)]==='thinking'){_0x616420[_0x15ce4e(_0x32b37a._0x97e22b,_0x32b37a._0x4fd0ab,0x398,_0x32b37a._0x4e5e37)]({'type':_0x26890(-0xfc,-_0x32b37a._0x226122,-0x1b0,-_0x32b37a._0x2e98d2),'thinking':_0x5e3912['thinking'],'signature':_0x5e3912[_0x15ce4e(0x102,_0x32b37a._0x44bbbe,_0x32b37a._0x291f06,_0x32b37a._0x5ac0fd)]});continue;}if(_0x5e3912['kind']==='redacted_thinking'){_0x616420['push']({'type':'redacted_thinking','data':_0x5e3912['data']});continue;}_0x616420['push']({'type':_0x26890(-0x290,-0x1f4,-_0x32b37a._0x504344,-_0x32b37a._0x25c371),'id':_0x5e3912['id'],'name':_0x5e3912[_0x26890(-_0x32b37a._0xb02ce4,-0x18b,-0x1a6,-_0x32b37a._0x195360)],'input':parseToolInput(_0x5e3912['inputJson'][_0x26890(-0x2a0,-_0x32b37a._0x195360,-0x25d,-0x1b8)]>0x0?_0x5e3912[_0x26890(-_0x32b37a._0x598448,-0x31a,-0x1d4,-0x25b)]:'{}')});}return parseAnthropicResponse({'id':this[_0x15ce4e(_0x32b37a._0x270fa6,0x30f,_0x32b37a._0x29db7e,_0x32b37a._0x4bc435)],'type':_0x26890(-_0x32b37a._0x45b8fb,-0x23b,-_0x32b37a._0x5a85cc,-_0x32b37a._0x51a901),'role':'assistant','content':_0x616420,'stop_reason':this[_0x15ce4e(0x341,0x2ed,_0x32b37a._0x3ec1a5,0x35f)],'stop_sequence':null,'usage':{'input_tokens':this[_0x15ce4e(0x31f,_0x32b37a._0xec742c,_0x32b37a._0x3716c9,_0x32b37a._0x4e825f)],'output_tokens':this[_0x15ce4e(0x490,_0x32b37a._0x345ea2,0x397,_0x32b37a._0x49b12a)],...this['cacheReadInputTokens']!==void 0x0?{'cache_read_input_tokens':this['cacheReadInputTokens']}:{},...this[_0x15ce4e(0x327,0x302,0x2e4,0x21f)]!==void 0x0?{'cache_creation_input_tokens':this['cacheCreationInputTokens']}:{},...this[_0x15ce4e(0x20d,0x1ec,0x1da,0x2ce)]!==void 0x0?{'output_tokens_details':{'thinking_tokens':this[_0x26890(-_0x32b37a._0x580c43,-_0x32b37a._0x4bd9aa,-0x399,-_0x32b37a._0x4ff4a6)]}}:{}}},this[_0x15ce4e(_0x32b37a._0x43c785,0xf4,0x1ec,0x1d2)]);}};function createAnthropicSurfaces(){const _0x4107a6={_0x185263:0x89,_0x1a1c54:0x155,_0x23d38b:0x144,_0x354ddb:0x21f},_0xc3e863={_0x501628:0x31b,_0x1049c3:0xfa},_0x23d6f7={_0x304446:0x1d7,_0x534014:0x75};function _0x3e2954(_0x46f268,_0x5f0f39,_0x3dff2f,_0x43a8a8){return _0x3dbb2c(_0x46f268-0x1ab,_0x5f0f39- -_0x23d6f7._0x304446,_0x3dff2f-_0x23d6f7._0x534014,_0x43a8a8);}function _0x39ebb0(_0x2b5864,_0x344769,_0x387e2f,_0x413e24){return _0x3dbb2c(_0x2b5864-0xb7,_0x2b5864- -_0xc3e863._0x501628,_0x387e2f-_0xc3e863._0x1049c3,_0x413e24);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x39ebb0(-_0x4107a6._0x185263,0x1a,-0x9e,-_0x4107a6._0x1a1c54),'createRequest'(_0x2d2256){return createAnthropicRequest(_0x2d2256,![]);},'parseResponse'(_0x245b80,_0x365435){return parseAnthropicResponse(_0x245b80,_0x365435);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x3e2954(0x75,_0x4107a6._0x23d38b,_0x4107a6._0x354ddb,0x233),'createRequest'(_0x6a7091){return createAnthropicRequest(_0x6a7091,!![]);},'createStreamParser'(_0x3f5c4d){return new AnthropicMessagesStreamParser(_0x3f5c4d);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];[_0x5b3424(-0x219,-0x18a,-0x267,-0x165)];constructor(_0x223eb8){const _0x122b69={_0x2ef435:0x55,_0x44ff03:0x16,_0x5ceaac:0x63,_0x321ecb:0x184,_0x531851:0x7a},_0x28b752={_0x52aaf2:0x1ee,_0xfbe4b3:0x430},_0xce3ec2={_0x22dce9:0x1c1,_0x3cfce8:0xd3};this[_0x441dc0(_0x122b69._0x2ef435,-_0x122b69._0x44ff03,0xb2,-0xbb)]=_0x223eb8['complete'];function _0x441dc0(_0xff3881,_0x177d2f,_0x210e57,_0x4351ab){return _0x5b3424(_0xff3881-_0xce3ec2._0x22dce9,_0x177d2f-0x20e,_0x210e57-_0xce3ec2._0x3cfce8,_0x210e57);}function _0x1d769b(_0x15877e,_0x993cc9,_0x439f07,_0x17f7ba){return _0x5b3424(_0x15877e-_0x28b752._0x52aaf2,_0x15877e-_0x28b752._0xfbe4b3,_0x439f07-0x16a,_0x439f07);}this[_0x441dc0(-_0x122b69._0x5ceaac,0x84,_0x122b69._0x321ecb,-_0x122b69._0x531851)]=_0x223eb8[_0x441dc0(-0x98,-0x6b,-0xfa,-0x40)];}[_0x5b3424(-0x11f,-0x147,-0x9c,-0x1fb)](_0x5e6d47,_0xc440f){const _0x3333ea={_0x4f7bf9:0x4dc,_0x44c673:0x50a,_0x41e3c6:0x95,_0x1a36b5:0xc,_0xda74f9:0x184,_0x53950e:0x24d,_0x5d3ca0:0x17d,_0x31329b:0xea,_0x80c7f7:0x34},_0x10891d={_0x3a9c74:0xc8,_0x46efd0:0x34},_0x1598b7={_0x3d9df0:0x685};function _0x376e63(_0x39681c,_0x3f5314,_0x3503ac,_0x4eee5c){return _0x5b3424(_0x39681c-0x1f1,_0x3503ac-_0x1598b7._0x3d9df0,_0x3503ac-0x198,_0x4eee5c);}function _0x549497(_0x3fd353,_0x4ea622,_0x4ba035,_0x29459d){return _0x3dbb2c(_0x3fd353-0x8d,_0x3fd353- -_0x10891d._0x3a9c74,_0x4ba035-_0x10891d._0x46efd0,_0x4ba035);}return _0xc440f[_0x376e63(0x590,0x579,_0x3333ea._0x4f7bf9,_0x3333ea._0x44c673)]===_0x549497(_0x3333ea._0x41e3c6,-0x35,0x19d,-_0x3333ea._0x1a36b5)?this[_0x549497(_0x3333ea._0xda74f9,_0x3333ea._0x53950e,_0x3333ea._0x5d3ca0,0x21b)]:this[_0x549497(_0x3333ea._0x31329b,_0x3333ea._0x80c7f7,0x19a,0x1e0)];}};function trimTrailingSlashes(_0x442ee4){const _0x389c56={_0x15f7be:0x1f2,_0x4b7cf3:0xf8,_0x4f52e5:0x14d},_0x8973d3={_0x574a4d:0x1f,_0x4ea864:0x1d2};function _0x412b45(_0x3b5fbd,_0x597e0e,_0x5cfdbe,_0x3dfa1b){return _0x5b3424(_0x3b5fbd-_0x8973d3._0x574a4d,_0x3dfa1b- -0x6c,_0x5cfdbe-_0x8973d3._0x4ea864,_0x597e0e);}return _0x442ee4[_0x412b45(-_0x389c56._0x15f7be,-0x83,-_0x389c56._0x4b7cf3,-_0x389c56._0x4f52e5)](/\/+$/,'');}function resolveApiCredential(_0x2dfdda,_0x275bd9){const _0x40e4c1={_0x50c3b3:0x26c},_0x37e290={_0x17466e:0x2};function _0x3357ee(_0x5d92af,_0x3e36fc,_0x456208,_0x29db42){return _0x3dbb2c(_0x5d92af-0x1a7,_0x456208-_0x37e290._0x17466e,_0x456208-0x1d0,_0x29db42);}if(_0x275bd9?.['credential'])return _0x275bd9['credential'];if(!_0x2dfdda)return void 0x0;return{'kind':_0x3357ee(_0x40e4c1._0x50c3b3,0x240,0x19d,0x218),'value':_0x2dfdda};}function resolveSessionBaseUrl(_0x5f1b6e,_0x598b29){const _0x21aa54={_0x1c8b6f:0x71b,_0x3a68cf:0x5d1,_0x47d8d8:0x73c,_0x5d94a9:0x639},_0x35a26b={_0x47f1c6:0x4};function _0x40bc91(_0x219a37,_0x3bfa9e,_0x3afb70,_0x2761ba){return _0x3dbb2c(_0x219a37-0x90,_0x2761ba-0x361,_0x3afb70-_0x35a26b._0x47f1c6,_0x3bfa9e);}return trimTrailingSlashes(_0x598b29?.['endpoints']?.[_0x40bc91(_0x21aa54._0x1c8b6f,_0x21aa54._0x3a68cf,_0x21aa54._0x47d8d8,_0x21aa54._0x5d94a9)]??_0x5f1b6e);}function toErrorMessage(_0x20edaa){const _0x22a366={_0x30e1ad:0xd2,_0x19cec3:0x113,_0x42c017:0xb7,_0x2ad2e:0x2a,_0x22c4fd:0xc0,_0xfc3e4a:0x11b,_0x2790e2:0x127,_0x5a7b85:0x154},_0x365530={_0x373048:0x17b};if(_0x20edaa instanceof Error&&_0x20edaa[_0x1a4c91(-0xb7,-0xd4,-_0x22a366._0x30e1ad,-0x197)][_0x1a4c91(-0x190,-_0x22a366._0x19cec3,-0x17d,-0x83)]>0x0)return _0x20edaa[_0x1a4c91(-_0x22a366._0x42c017,-0x52,_0x22a366._0x2ad2e,-_0x22a366._0x22c4fd)];function _0x292c73(_0x5f52c9,_0x23e141,_0x3d4305,_0x23f72f){return _0x5b3424(_0x5f52c9-_0x365530._0x373048,_0x3d4305-0x5de,_0x3d4305-0x63,_0x23f72f);}function _0x1a4c91(_0x72ea2a,_0x3893e8,_0x33b975,_0x2a1619){return _0x3dbb2c(_0x72ea2a-0x30,_0x72ea2a- -0x2f7,_0x33b975-0x122,_0x2a1619);}return _0x1a4c91(-_0x22a366._0xfc3e4a,-_0x22a366._0x2790e2,-_0x22a366._0x5a7b85,-0x85);}function createDefaultWebSocketFactory(){const _0x15d0c3={_0x59c903:0x57,_0x1e2eae:0x6c,_0x225c4c:0x96},_0xf5d849={_0x5cb438:0xe9};return({headers:_0xa8fe5e,url:_0x2d3d52})=>{function _0x34816a(_0x3d4b22,_0x1e81ce,_0x586740,_0x2de1a0){return _0x3104(_0x586740- -_0xf5d849._0x5cb438,_0x1e81ce);}const _0x2c2f06=globalThis[_0x34816a(-0x59,-_0x15d0c3._0x59c903,_0x15d0c3._0x1e2eae,_0x15d0c3._0x225c4c)];return new _0x2c2f06(_0x2d3d52,{'headers':_0xa8fe5e,'protocols':[]});};}async function*iterateSseEvents(_0x177ff0,_0x3ab787){const _0x1f32ea={_0x15b406:0x2b0,_0x3ad562:0x343,_0x249548:0x50b,_0x2b9004:0x57d,_0x5968f1:0x17a,_0x3d6f68:0xf3,_0x311c5b:0x3bf,_0x34289f:0x2ce,_0x1c6f1d:0x30a,_0x3cdc70:0x584,_0x41b410:0x13c,_0x5ed879:0x402,_0x2bdf39:0x517,_0x2289f0:0x3b1,_0x2ce424:0x45f,_0x17646c:0x3d9,_0x4527d6:0x395},_0x43aaf6={_0x114dc4:0x159,_0x3c37d7:0x198,_0x416d4c:0x157},_0x217e61={_0x63744:0xb3,_0x1a1ff2:0xd,_0x4d0df3:0xea},_0x2fdeb4={_0x258e6a:0x2bd,_0x1eaf06:0x134},_0x31bffd={_0x2958e2:0x13d,_0x1c98b1:0x3fd};function _0x2a64e3(_0x2fcd7e,_0x5dd567,_0x1d8128,_0x24c739){return _0x5b3424(_0x2fcd7e-_0x31bffd._0x2958e2,_0x5dd567-_0x31bffd._0x1c98b1,_0x1d8128-0x15f,_0x1d8128);}const _0x455aab=_0x177ff0['body']?.[_0x2a64e3(0x39f,0x2c0,_0x1f32ea._0x15b406,_0x1f32ea._0x3ad562)]();if(!_0x455aab)return;const _0x3c4558=new TextDecoder('utf-8');function _0x20d3d9(_0x1b3f9d,_0x58f53e,_0x2bf1c1,_0xaa3b4){return _0x3dbb2c(_0x1b3f9d-0x9a,_0x58f53e-_0x2fdeb4._0x258e6a,_0x2bf1c1-_0x2fdeb4._0x1eaf06,_0xaa3b4);}let _0x32d94d='';const _0xb5a630=addAbortListener(_0x3ab787,()=>{function _0x546633(_0x1878f5,_0x54434e,_0x5628b9,_0x348b39){return _0x2a64e3(_0x1878f5-_0x217e61._0x63744,_0x5628b9- -_0x217e61._0x1a1ff2,_0x54434e,_0x348b39-_0x217e61._0x4d0df3);}void _0x455aab['cancel'](toAbortError(_0x3ab787?.[_0x546633(0x15b,_0x43aaf6._0x114dc4,_0x43aaf6._0x3c37d7,_0x43aaf6._0x416d4c)]))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x3ab787);const {value:_0x4c4e7e,done:_0x54e3b7}=await _0x455aab[_0x20d3d9(0x600,0x5d5,_0x1f32ea._0x249548,_0x1f32ea._0x2b9004)]();throwIfAborted(_0x3ab787);if(_0x54e3b7)break;_0x32d94d+=_0x3c4558[_0x2a64e3(0x22a,_0x1f32ea._0x5968f1,0x19b,_0x1f32ea._0x3d6f68)](_0x4c4e7e,{'stream':!![]});while(!![]){const _0x164da1=_0x32d94d[_0x2a64e3(_0x1f32ea._0x311c5b,0x2d3,0x1d0,0x309)]('\x0a\x0a');if(_0x164da1===-0x1)break;const _0x11bcdc=_0x32d94d[_0x2a64e3(_0x1f32ea._0x34289f,0x300,_0x1f32ea._0x1c6f1d,0x354)](0x0,_0x164da1);_0x32d94d=_0x32d94d[_0x20d3d9(0x643,0x596,0x4e5,_0x1f32ea._0x3cdc70)](_0x164da1+0x2),_0x11bcdc[_0x2a64e3(0xce,0x143,0x237,_0x1f32ea._0x41b410)]()[_0x20d3d9(_0x1f32ea._0x5ed879,0x424,0x512,_0x1f32ea._0x2bdf39)]>0x0&&(yield _0x11bcdc);}}_0x32d94d+=_0x3c4558[_0x20d3d9(_0x1f32ea._0x2289f0,0x410,0x36b,0x35e)](),throwIfAborted(_0x3ab787),_0x32d94d[_0x20d3d9(_0x1f32ea._0x2ce424,_0x1f32ea._0x17646c,_0x1f32ea._0x4527d6,0x482)]()['length']>0x0&&(yield _0x32d94d);}finally{_0xb5a630();}}async function waitForWebSocketOpen(_0x39cdef,_0x2d65bd){const _0x2c226b={_0x59f6ab:0xcd},_0xabdb5={_0xb9120b:0x21a,_0x1fa7c7:0x2b4,_0x4d95f5:0x32a,_0x118545:0x16b,_0x4d1d7f:0x45,_0x53c2ab:0x1f2,_0x3c1953:0x2a8,_0x4d227c:0x293,_0x439d9c:0xf5,_0xba0695:0x17d,_0x3a7ae4:0x103,_0x211014:0x20f,_0x4e3c7e:0x200},_0x543ab0={_0x3e0875:0x2aa,_0x364d7f:0x1a1},_0x145c4c={_0x417144:0x170,_0x2c1447:0xe4,_0x245189:0x119,_0x8c57c4:0x548,_0x299ba1:0x508,_0x269f4e:0x43d};if(_0x39cdef[_0x337a74(-0xa7,0x52,-_0x2c226b._0x59f6ab,-0x9d)]===WebSocket['OPEN']){throwIfAborted(_0x2d65bd);return;}throwIfAborted(_0x2d65bd);function _0x337a74(_0x3595d5,_0x2bc06a,_0x4bc3a3,_0x7fea9a){return _0x3dbb2c(_0x3595d5-0x1a0,_0x3595d5- -0x257,_0x4bc3a3-0x23,_0x7fea9a);}await new Promise((_0x173676,_0x356e18)=>{const _0x2a1421={_0x3607db:0x131,_0x20dfb1:0x13a,_0x44cc0f:0x8a,_0x24a74b:0x209,_0x4af2d5:0xfe,_0x97b7cb:0x134,_0x15d055:0x23d,_0x1c7674:0xab,_0x5e60a7:0x13f,_0x174fdb:0xeb,_0x3a9052:0x1cb,_0x32282a:0x20c},_0x454105={_0x6bc88a:0xf0,_0xe6d30b:0x1e4},_0x3aa898={_0x521550:0x40b,_0x24234c:0x4ab,_0x2eeef3:0x378},_0x3f1a38={_0x486287:0x227},_0x61e6f2={_0x40abe0:0x32a},_0x4472a7=()=>{_0x521615(),_0x173676();},_0x3cca88=_0x2602a3=>{function _0x185fce(_0x2d5527,_0x40ac72,_0xa84014,_0x1671ff){return _0x3104(_0x2d5527- -_0x61e6f2._0x40abe0,_0x1671ff);}_0x521615();function _0x5164eb(_0x3d7785,_0x51fc62,_0x3d4c25,_0x1c68fc){return _0x3104(_0x1c68fc-0x2e7,_0x3d4c25);}_0x356e18(new Error(_0x2602a3[_0x185fce(-_0x145c4c._0x417144,-_0x145c4c._0x2c1447,-0x92,-_0x145c4c._0x245189)]||_0x5164eb(_0x145c4c._0x8c57c4,0x39c,_0x145c4c._0x299ba1,_0x145c4c._0x269f4e)));},_0x5e9c1b=_0x55cb9c=>{_0x521615();const _0x56cb56=_0x55cb9c;_0x356e18(new Error(_0x56cb56['reason']||'WebSocket\x20closed\x20before\x20opening'));},_0x18c411=()=>{const _0x553bc1={_0x1e7e0e:0x75};_0x521615();function _0x235e45(_0x3bf2c8,_0x1a93de,_0x59bdba,_0xdea83c){return _0x3104(_0xdea83c-_0x553bc1._0x1e7e0e,_0x1a93de);}function _0x4bf938(_0x23feec,_0x4e7d33,_0x118291,_0x3ac0ae){return _0x3104(_0x118291-_0x3f1a38._0x486287,_0x3ac0ae);}_0x39cdef['readyState']===WebSocket['OPEN']&&_0x39cdef[_0x4bf938(_0x3aa898._0x521550,_0x3aa898._0x24234c,0x3f6,_0x3aa898._0x2eeef3)](0x3e8,_0x4bf938(0x330,0x452,0x431,0x343)),_0x356e18(toAbortError(_0x2d65bd?.['reason']));};function _0x516bb5(_0x69f48e,_0x587e80,_0x683b3b,_0x39217a){return _0x337a74(_0x69f48e- -_0x454105._0x6bc88a,_0x587e80-_0x454105._0xe6d30b,_0x683b3b-0x6b,_0x587e80);}function _0x160568(_0xc49488,_0x606d4a,_0x2e4fdf,_0x23c7d4){return _0x337a74(_0x606d4a-_0x543ab0._0x3e0875,_0x606d4a-_0x543ab0._0x364d7f,_0x2e4fdf-0x194,_0x2e4fdf);}const _0x521615=()=>{const _0x3407bd={_0x4c47d9:0x349};function _0x22f871(_0x2a8170,_0x4c6797,_0x2897e9,_0x13e149){return _0x3104(_0x2897e9- -_0x3407bd._0x4c47d9,_0x2a8170);}_0x39cdef[_0x54ced6(-_0x2a1421._0x3607db,-0x134,-0x6a,-0x120)](_0x54ced6(-0x1a8,-_0x2a1421._0x20dfb1,-_0x2a1421._0x44cc0f,-_0x2a1421._0x24a74b),_0x4472a7),_0x39cdef[_0x54ced6(-_0x2a1421._0x4af2d5,-_0x2a1421._0x97b7cb,-_0x2a1421._0x15d055,-_0x2a1421._0x1c7674)]('error',_0x3cca88);function _0x54ced6(_0x388e83,_0x3f01fd,_0x1a852a,_0x3c4f13){return _0x3104(_0x3f01fd- -0x38b,_0x1a852a);}_0x39cdef[_0x22f871(-0x63,-_0x2a1421._0x5e60a7,-0xf2,-0xb7)](_0x54ced6(-0xba,-0x1bc,-0xce,-0x1f0),_0x5e9c1b),_0x2d65bd?.[_0x22f871(-0xed,-_0x2a1421._0x174fdb,-0xf2,-0x132)](_0x22f871(-0x20b,-_0x2a1421._0x3a9052,-0x297,-_0x2a1421._0x32282a),_0x18c411);};_0x39cdef[_0x516bb5(-_0xabdb5._0xb9120b,-0x12b,-_0xabdb5._0x1fa7c7,-0x11c)](_0x160568(0x282,_0xabdb5._0x4d95f5,0x431,0x3fb),_0x4472a7),_0x39cdef['addEventListener'](_0x516bb5(-0xa7,-_0xabdb5._0x118545,_0xabdb5._0x4d1d7f,-0x120),_0x3cca88),_0x39cdef[_0x160568(0x25b,0x180,0xf6,_0xabdb5._0x53c2ab)](_0x160568(0x30a,_0xabdb5._0x3c1953,0x219,_0xabdb5._0x4d227c),_0x5e9c1b),_0x2d65bd?.[_0x160568(_0xabdb5._0x439d9c,0x180,_0xabdb5._0xba0695,_0xabdb5._0x3a7ae4)](_0x516bb5(-_0xabdb5._0x211014,-0x271,-_0xabdb5._0x4e3c7e,-0x28a),_0x18c411,{'once':!![]});});}function iterateWebSocketMessages(_0xe9fcf0,_0x1f6ab8){const _0x40d142={_0x57a28a:0x449,_0x47b44a:0x4fb,_0x42ee1e:0xad,_0x5b3ee8:0x364,_0xc502ea:0x3e9,_0x1d0222:0x11b,_0x22a8bd:0x59c,_0x28adb9:0x540},_0x222591={_0x21ece3:0x291,_0x56dad9:0x1ab,_0x15a9c6:0x1ea,_0x5012da:0x27d,_0x16a382:0x36,_0x473a52:0x58,_0x472f1c:0x407,_0x4b6705:0x4fa,_0x2fb4f3:0x41e,_0x114663:0x494,_0x58548b:0x3ca,_0x43913a:0x425,_0x4dea52:0x20,_0x2a0ae2:0xa8},_0x30c7c6={_0x4d5666:0x13a,_0x4a723a:0x97},_0x7298a={_0x3bb09c:0x1a5,_0x248281:0x2f7,_0x13cf21:0x1c9,_0x1bd851:0x250,_0x24a48a:0x248,_0xb2f499:0x14d,_0x73bfb5:0x2e9,_0x3077a1:0x25d,_0x2d8df4:0x1be,_0x2bcb62:0x12e},_0x2d1d61={_0x10782e:0x5,_0x1ea571:0x9a,_0x33ddee:0x13c,_0x41a293:0x254,_0x51687c:0x15e,_0xfc546:0x191,_0x3d73c0:0x1ae,_0x29ca55:0x1dd},_0x97ca9d={_0x3e8d26:0x272},_0x5bed90={_0x3374a0:0x3d8},_0x3cd25d={_0x31166f:0xbc,_0x9f6c98:0x13,_0x57563c:0x15f},_0x7ba97=[];let _0x8f5285=![],_0x20fbed,_0xfb1c5e;const _0x89c25f=_0x1d641d=>{const _0x497b65={_0x25292b:0x36b};function _0x1e1817(_0xcc2cef,_0x2c46e8,_0x3f626f,_0x5c2296){return _0x3104(_0xcc2cef- -0x25e,_0x5c2296);}const _0x5eef0b=_0x1d641d;function _0x2780a9(_0x51bf55,_0x54b543,_0x393d0b,_0x3831e7){return _0x3104(_0x54b543-_0x497b65._0x25292b,_0x3831e7);}try{_0x7ba97[_0x1e1817(-0x1e,-0xb7,0x6,0x7f)](JSON['parse'](String(_0x5eef0b[_0x1e1817(-_0x3cd25d._0x31166f,-_0x3cd25d._0x9f6c98,-0x18b,-_0x3cd25d._0x57563c)]))),_0xfb1c5e?.(),_0xfb1c5e=void 0x0;}catch(_0x3d8b1a){_0x20fbed=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x3d8b1a)),_0xfb1c5e?.(),_0xfb1c5e=void 0x0;}},_0x4929c3=_0xf22403=>{const _0x56cc25=_0xf22403;_0x20fbed=new Error(_0x56cc25[_0x264a2f(-0x316,-0x21e,-_0x97ca9d._0x3e8d26,-0x215)]||'WebSocket\x20request\x20failed');function _0x264a2f(_0x23dfd4,_0x3fc721,_0x4a6ef5,_0x316d91){return _0x3104(_0x3fc721- -_0x5bed90._0x3374a0,_0x316d91);}_0xfb1c5e?.(),_0xfb1c5e=void 0x0;},_0x4b6cb5=_0x35ad68=>{const _0x1d6616=_0x35ad68;!_0x8f5285&&_0x1d6616[_0xfdb759(-_0x2d1d61._0x10782e,-0x2c,-0x4,_0x2d1d61._0x1ea571)]!==0x3e8&&!_0x20fbed&&(_0x20fbed=new Error(_0x1d6616[_0xf28970(0x4f,0xba,0xb0,0xda)]||_0xfdb759(-_0x2d1d61._0x33ddee,-_0x2d1d61._0x41a293,-_0x2d1d61._0x51687c,-_0x2d1d61._0xfc546)+_0x1d6616[_0xf28970(_0x2d1d61._0x3d73c0,_0x2d1d61._0x29ca55,0x194,0x14d)]));function _0xf28970(_0x47bddb,_0x4c8bb8,_0x1fb84c,_0x3cddf3){return _0x3104(_0x4c8bb8- -0x3e,_0x47bddb);}function _0xfdb759(_0xe8c37,_0x10c7d6,_0x5bacec,_0xdfd982){return _0x3104(_0x5bacec- -0x21f,_0xdfd982);}_0x8f5285=!![],_0xfb1c5e?.(),_0xfb1c5e=void 0x0;};function _0xcf69e2(_0x205019,_0x23828c,_0x3fa127,_0x11d1a0){return _0x3dbb2c(_0x205019-0x1e2,_0x3fa127-0x31c,_0x3fa127-0x17,_0x205019);}const _0x26387e=addAbortListener(_0x1f6ab8,()=>{_0x20fbed=toAbortError(_0x1f6ab8?.[_0x40724d(0x27f,_0x7298a._0x3bb09c,0x21e,0x2d3)]);function _0x54e2af(_0x19fb78,_0xc0d1e9,_0x22fff3,_0x1559c2){return _0x3104(_0x22fff3- -0x3c8,_0xc0d1e9);}_0xe9fcf0[_0x40724d(_0x7298a._0x248281,_0x7298a._0x13cf21,_0x7298a._0x1bd851,0x30f)]===WebSocket[_0x54e2af(-0x371,-_0x7298a._0x24a48a,-0x327,-0x21f)]&&_0xe9fcf0[_0x54e2af(-_0x7298a._0xb2f499,-_0x7298a._0x73bfb5,-0x1f9,-_0x7298a._0x3077a1)](0x3e8,_0x54e2af(-0x2a3,-0x12a,-_0x7298a._0x2d8df4,-_0x7298a._0x2bcb62));function _0x40724d(_0x1aba0e,_0x345b70,_0x8d0753,_0x108f93){return _0x3104(_0x8d0753-0x126,_0x108f93);}_0xfb1c5e?.(),_0xfb1c5e=void 0x0;});_0xe9fcf0[_0xcf69e2(0x380,0x48f,_0x40d142._0x57a28a,_0x40d142._0x47b44a)]('message',_0x89c25f);function _0x4829ab(_0x2565ea,_0x25cfe9,_0x1faff5,_0x288158){return _0x3dbb2c(_0x2565ea-0x14,_0x25cfe9- -_0x30c7c6._0x4d5666,_0x1faff5-_0x30c7c6._0x4a723a,_0x288158);}return _0xe9fcf0[_0x4829ab(_0x40d142._0x42ee1e,-0xd,0x6c,-0xac)]('error',_0x4929c3),_0xe9fcf0[_0xcf69e2(0x52b,_0x40d142._0x5b3ee8,0x449,_0x40d142._0xc502ea)](_0x4829ab(0xa7,_0x40d142._0x1d0222,0x1cd,0x1ef),_0x4b6cb5),{async*[Symbol[_0xcf69e2(_0x40d142._0x22a8bd,0x640,_0x40d142._0x28adb9,0x4e1)]](){const _0x3abcc3={_0x2c0db1:0x1f2};function _0xc60801(_0x49e3d5,_0x17013e,_0xf9faa7,_0x4bdc12){return _0xcf69e2(_0x17013e,_0x17013e-0x19c,_0x49e3d5- -_0x3abcc3._0x2c0db1,_0x4bdc12-0x1e2);}function _0x5d5eb2(_0x264c39,_0x5f553c,_0x186ce0,_0x54ccd7){return _0xcf69e2(_0x54ccd7,_0x5f553c-0x48,_0x264c39- -0x619,_0x54ccd7-0x18a);}try{while(!![]){if(_0x20fbed)throw _0x20fbed;if(_0x7ba97[_0xc60801(_0x222591._0x21ece3,_0x222591._0x56dad9,_0x222591._0x15a9c6,_0x222591._0x5012da)]>0x0){yield _0x7ba97['shift']();continue;}if(_0x8f5285)break;await new Promise(_0x4dc7c0=>{_0xfb1c5e=_0x4dc7c0;});}}finally{_0xe9fcf0[_0x5d5eb2(-0x20,-0xef,_0x222591._0x16a382,_0x222591._0x473a52)](_0xc60801(0x36a,0x40b,0x389,0x395),_0x89c25f),_0xe9fcf0[_0xc60801(_0x222591._0x472f1c,_0x222591._0x4b6705,_0x222591._0x2fb4f3,_0x222591._0x114663)](_0xc60801(_0x222591._0x58548b,_0x222591._0x43913a,0x4b5,0x3bc),_0x4929c3),_0xe9fcf0[_0x5d5eb2(-_0x222591._0x4dea52,-0xd9,0x43,0xa2)](_0x5d5eb2(-_0x222591._0x2a0ae2,-0x140,-0x100,0x59),_0x4b6cb5),_0x26387e();}}};}function toWebSocketUrl(_0x8c6d75,_0x128df9){const _0xb32603={_0x42c114:0x567,_0x565615:0x4a3,_0x33f788:0x4de,_0x413207:0x3fb,_0x527c11:0x20f,_0x2aea24:0x238,_0x2dd9b1:0x3ff,_0x5cd58b:0x3f3,_0x385c7a:0x3d9},_0x32bccf={_0x2181da:0x18},_0x5e51d7={_0x33446a:0x51,_0x52adc9:0xc5},_0x452fdc=new URL(_0x128df9,_0x8c6d75);function _0x35d62d(_0x1f4257,_0x869fff,_0xfcb898,_0x4ec8f6){return _0x5b3424(_0x1f4257-_0x5e51d7._0x33446a,_0x1f4257-0x641,_0xfcb898-_0x5e51d7._0x52adc9,_0x869fff);}_0x452fdc['protocol']=_0x452fdc[_0x35d62d(_0xb32603._0x42c114,_0xb32603._0x565615,0x5d6,0x560)]===_0x35d62d(_0xb32603._0x33f788,_0xb32603._0x413207,0x5cd,0x4b4)?'wss:':_0x50cdef(0x287,_0xb32603._0x527c11,0x1a2,_0xb32603._0x2aea24);function _0x50cdef(_0x76f03d,_0x55d1bb,_0x5897dc,_0x580789){return _0x5b3424(_0x76f03d-0x5d,_0x580789-0x3ac,_0x5897dc-_0x32bccf._0x2181da,_0x55d1bb);}return _0x452fdc[_0x35d62d(_0xb32603._0x2dd9b1,_0xb32603._0x5cd58b,0x3ef,_0xb32603._0x385c7a)]();}var ProviderSessionManager=class{[_0x5b3424(-0x2e9,-0x1eb,-0x210,-0x21a)];[_0x3dbb2c(0x1fe,0x267,0x26a,0x173)];constructor(_0x551eae){this['resolver']=_0x551eae;}async['resolve'](_0x34ce22){const _0x39bb27={_0x179b3e:0x23f,_0x535d72:0x28f,_0x549b91:0x1f2,_0x33b94b:0x1e7,_0x359f5d:0x5ac,_0x242c59:0x562,_0xbae066:0x5b4,_0x552486:0x542,_0x366c27:0x4c4,_0x447ce3:0x333,_0x162fc4:0x282,_0x2614e2:0x256,_0x43780e:0x52f,_0x1069ac:0x561},_0x58965b={_0x2a978f:0x1c0},_0x3f4bbf={_0x255dda:0x4e3,_0x3d46f1:0x52d,_0x20f602:0x4fa},_0x2a08d0={_0x30151a:0x5f,_0xa1eb63:0x19e};function _0x15d915(_0x380e17,_0x40e5e3,_0x16466c,_0x41e823){return _0x5b3424(_0x380e17-_0x2a08d0._0x30151a,_0x40e5e3-0x6c7,_0x16466c-_0x2a08d0._0xa1eb63,_0x41e823);}if(!this[_0x2dd034(_0x39bb27._0x179b3e,_0x39bb27._0x535d72,_0x39bb27._0x549b91,_0x39bb27._0x33b94b)]){const _0x38bffe=this[_0x15d915(_0x39bb27._0x359f5d,0x4dc,_0x39bb27._0x242c59,_0x39bb27._0xbae066)][_0x15d915(_0x39bb27._0x552486,0x443,0x366,_0x39bb27._0x366c27)](_0x34ce22);_0x38bffe[_0x2dd034(_0x39bb27._0x447ce3,_0x39bb27._0x162fc4,_0x39bb27._0x2614e2,0x1f2)](()=>{const _0x39e67e={_0x394201:0x23};function _0x3aa272(_0xe963f8,_0x40cfde,_0x4faace,_0x6c3d1b){return _0x2dd034(_0xe963f8-_0x39e67e._0x394201,_0xe963f8-0x254,_0x4faace-0x1a6,_0x40cfde);}this['cached']===_0x38bffe&&(this[_0x3aa272(_0x3f4bbf._0x255dda,_0x3f4bbf._0x3d46f1,0x5a4,_0x3f4bbf._0x20f602)]=void 0x0);}),this[_0x15d915(_0x39bb27._0x43780e,0x558,_0x39bb27._0x1069ac,0x50b)]=_0x38bffe;}function _0x2dd034(_0x3e7196,_0x242a44,_0x33db0b,_0x5aefd1){return _0x5b3424(_0x3e7196-_0x58965b._0x2a978f,_0x242a44-0x3fe,_0x33db0b-0x1ef,_0x5aefd1);}return structuredClone(await this['cached']);}[_0x3dbb2c(0x2f2,0x23a,0x1c9,0x1fc)](){const _0x304998={_0x27346f:0x2ac,_0xb806ae:0x1c1,_0x42ec55:0x2af},_0x56e6d4={_0x15b531:0x161},_0x1b9a89={_0x1f2b2c:0x1ed,_0x8aa290:0x1b2};function _0x388da5(_0x4b63a1,_0x3fe2d0,_0x2713cc,_0x4d7e2b){return _0x5b3424(_0x4b63a1-_0x1b9a89._0x1f2b2c,_0x4b63a1-0x497,_0x2713cc-_0x1b9a89._0x8aa290,_0x4d7e2b);}function _0x33d266(_0x4a5a52,_0x358150,_0x59bf77,_0x3041d0){return _0x5b3424(_0x4a5a52-_0x56e6d4._0x15b531,_0x59bf77- -0x21,_0x59bf77-0x6b,_0x4a5a52);}this[_0x388da5(_0x304998._0x27346f,0x336,_0x304998._0xb806ae,_0x304998._0x42ec55)][_0x33d266(-0x2c1,-0xd9,-0x1bd,-0x2c1)]?.(),this['cached']=void 0x0;}};async function prepareProviderRequest(_0x44ab4e,_0x3f968c={}){const _0x1aa292={_0x4cdea6:0x96,_0x146fef:0x7c,_0x42bf7d:0x2,_0x4c716f:0xeb,_0x1c2ae3:0xde,_0x5ecf8e:0x45,_0x1332f4:0xf1,_0x480de3:0xab,_0x3d6acb:0x127},_0x212a03={_0x2ddae6:0x2c,_0x267c6c:0x286,_0x1c6d47:0x1d8},_0x33f111={_0x23408e:0x1c7};let _0x4877e6={'request':structuredClone(_0x44ab4e),'session':_0x3f968c['sessionManager']?await _0x3f968c[_0x544a34(0xe6,0x153,0x84,_0x1aa292._0x4cdea6)][_0x544a34(-_0x1aa292._0x146fef,_0x1aa292._0x42bf7d,_0x1aa292._0x4c716f,-0x46)](_0x3f968c[_0x3f69c3(-_0x1aa292._0x1c2ae3,_0x1aa292._0x5ecf8e,-_0x1aa292._0x1332f4,-0xc5)]):void 0x0};function _0x3f69c3(_0x218c41,_0x54fe2f,_0x4a9ee2,_0x3a8fb5){return _0x5b3424(_0x218c41-0xdf,_0x3a8fb5-0xa9,_0x4a9ee2-_0x33f111._0x23408e,_0x218c41);}for(const _0x6eedd5 of _0x3f968c[_0x544a34(_0x1aa292._0x480de3,_0x1aa292._0x3d6acb,0x8c,0x139)]??[]){_0x4877e6=await _0x6eedd5(_0x4877e6);}function _0x544a34(_0x271b39,_0x40cba8,_0xf6ae99,_0xf45a1){return _0x5b3424(_0x271b39-_0x212a03._0x2ddae6,_0x40cba8-_0x212a03._0x267c6c,_0xf6ae99-_0x212a03._0x1c6d47,_0x271b39);}return _0x4877e6;}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{[_0x3dbb2c(0xfa,0x203,0x298,0x204)];['modelIdentity'];['maxTokens'];[_0x3dbb2c(0x1c9,0x1d1,0x236,0x10a)];[_0x3dbb2c(0x27f,0x2cd,0x373,0x2da)];['apiKey'];['baseUrl'];['fetchImpl'];['providerAdapter'];[_0x3dbb2c(0x373,0x277,0x318,0x1cb)];[_0x5b3424(0x34,-0xba,-0x11e,-0xc1)];[_0x5b3424(-0x114,-0x133,-0xe5,-0x51)];[_0x3dbb2c(0xc8,0x161,0x103,0x23a)];[_0x3dbb2c(0x239,0x2c2,0x216,0x28a)]=new Map();constructor(_0x48462a){const _0x2c9f92={_0x1184d6:0x4b,_0x51c517:0x492,_0x2a7fe4:0x428,_0x5352a3:0x61,_0x3e0873:0x4c,_0x3e60f3:0xc7,_0x18dba7:0x132,_0x397ead:0x83,_0x353ed8:0xf9,_0x5027d3:0x117,_0x38ea70:0x147,_0x31f309:0xeb,_0x469f4f:0x51,_0x3b68a2:0x7f,_0x5ce3ed:0x3fe,_0x52ce8e:0x4a2,_0x27865c:0x48,_0x355f07:0x7d,_0xa6c0ab:0x55b,_0x5b3030:0x54c,_0x2e513d:0x53e,_0x3874db:0x510,_0x424858:0x560,_0x1616b8:0x507,_0x1de8e5:0x149,_0x10de4:0xfc,_0x3f460f:0x27,_0x2c0068:0xb2,_0x3a73be:0xd4,_0x3736d4:0x83,_0x33b049:0x3,_0x16ca14:0x190,_0xc21742:0x148,_0x62dbc6:0x59,_0xfdc482:0x4a,_0x459329:0x3b0,_0x225b97:0x461,_0x8bbc04:0x4ec,_0x258335:0x582,_0x5e50c0:0x4ba},_0x1a9cb5={_0x1715c0:0x2c0,_0x5d900c:0x1c5};this[_0xa9f3b5(_0x2c9f92._0x1184d6,0xca,-0x1d,-0x123)]=_0x48462a[_0xa9f3b5(-0x9c,-0x120,-0x1d,0xd4)],this['modelIdentity']=_0x48462a[_0x276bf4(0x45d,_0x2c9f92._0x51c517,0x3e6,_0x2c9f92._0x2a7fe4)]??modelIdentityFromParts(void 0x0,this['model']);function _0xa9f3b5(_0x11aa5f,_0x3302fa,_0x4e10ae,_0x240873){return _0x5b3424(_0x11aa5f-0x100,_0x4e10ae-0x1b6,_0x4e10ae-0x61,_0x240873);}this['maxTokens']=_0x48462a[_0xa9f3b5(_0x2c9f92._0x5352a3,_0x2c9f92._0x3e0873,0xc3,_0x2c9f92._0x3e60f3)],this['pricingProviderId']=_0x48462a[_0xa9f3b5(-0xa2,-_0x2c9f92._0x18dba7,-0x4f,-_0x2c9f92._0x397ead)],this['reasoning']=_0x48462a['reasoning']?structuredClone(_0x48462a['reasoning']):void 0x0,this['apiKey']=_0x48462a[_0xa9f3b5(-_0x2c9f92._0x353ed8,-_0x2c9f92._0x5027d3,-0x3a,-_0x2c9f92._0x38ea70)];function _0x276bf4(_0xb635c,_0x3806f4,_0x288368,_0x19bf5e){return _0x3dbb2c(_0xb635c-0x12a,_0x3806f4-_0x1a9cb5._0x1715c0,_0x288368-_0x1a9cb5._0x5d900c,_0x288368);}this['baseUrl']=_0x48462a[_0xa9f3b5(-0x155,-_0x2c9f92._0x31f309,-_0x2c9f92._0x469f4f,-_0x2c9f92._0x3b68a2)],this[_0x276bf4(0x396,_0x2c9f92._0x5ce3ed,0x364,_0x2c9f92._0x52ce8e)]=_0x48462a[_0xa9f3b5(-0x23,_0x2c9f92._0x27865c,0x2d,-_0x2c9f92._0x355f07)]??globalThis['fetch'],this['providerAdapter']=_0x48462a[_0x276bf4(0x57d,_0x2c9f92._0xa6c0ab,_0x2c9f92._0x5b3030,0x475)],this[_0x276bf4(_0x2c9f92._0x2e513d,0x537,0x540,_0x2c9f92._0x3874db)]=_0x48462a[_0x276bf4(0x5db,0x537,_0x2c9f92._0x424858,_0x2c9f92._0x1616b8)]??[],this['router']=_0x48462a[_0xa9f3b5(_0x2c9f92._0x1de8e5,0x56,_0x2c9f92._0x10de4,_0x2c9f92._0x3f460f)],this[_0xa9f3b5(_0x2c9f92._0x2c0068,_0x2c9f92._0x3a73be,_0x2c9f92._0x3736d4,-_0x2c9f92._0x33b049)]=_0x48462a[_0xa9f3b5(0x15b,_0x2c9f92._0x16ca14,0x83,_0x2c9f92._0xc21742)]??(_0x48462a[_0xa9f3b5(-0xfc,0xb0,-_0x2c9f92._0x62dbc6,_0x2c9f92._0xfdc482)]?new ProviderSessionManager(_0x48462a[_0x276bf4(0x42b,0x487,0x3c9,_0x2c9f92._0x459329)]):void 0x0),this[_0xa9f3b5(-0xe6,-0x1c6,-0xbf,-0x61)]=_0x48462a[_0x276bf4(0x38e,0x421,0x315,_0x2c9f92._0x225b97)]??createDefaultWebSocketFactory();for(const _0x5020f5 of _0x48462a[_0xa9f3b5(0x6d,0xa4,0xa2,0x11e)]){this[_0x276bf4(_0x2c9f92._0x8bbc04,_0x2c9f92._0x258335,0x488,0x67f)][_0x276bf4(0x494,_0x2c9f92._0x5e50c0,0x3d0,0x477)](_0x5020f5['id'],_0x5020f5);}}['complete'](_0x25b94e,_0x15449c){const _0x1641fc={_0x1befc9:0x58b,_0xf2a87a:0x572,_0x1725bd:0x49c},_0x6cea63={_0xbe4346:0x78,_0x16eac2:0x13c};function _0x1419bd(_0x39ca13,_0x334a2e,_0x419bc5,_0x1d8789){return _0x5b3424(_0x39ca13-_0x6cea63._0xbe4346,_0x1d8789-0x594,_0x419bc5-_0x6cea63._0x16eac2,_0x419bc5);}return this[_0x1419bd(_0x1641fc._0x1befc9,_0x1641fc._0xf2a87a,0x4fa,_0x1641fc._0x1725bd)](_0x25b94e,_0x15449c);}[_0x5b3424(-0x350,-0x279,-0x1f4,-0x248)](_0x72695e,_0x5dc6dd){const _0x55c4c7={_0x2c2d52:0x5f5},_0x411d08={_0x5d62af:0x350};function _0x477601(_0x14f5d1,_0x398130,_0x11092b,_0x5d5510){return _0x3dbb2c(_0x14f5d1-0xe,_0x398130-_0x411d08._0x5d62af,_0x11092b-0x63,_0x11092b);}return this[_0x477601(0x511,0x5a1,_0x55c4c7._0x2c2d52,0x4a8)](_0x72695e,_0x5dc6dd);}async[_0x3dbb2c(0x37c,0x2de,0x37b,0x321)](_0x2afad4,_0xc066cb){const _0x4d8776={_0x58cf79:0xb9,_0x44cdf6:0x3f0,_0x4f2093:0x432,_0x438fb6:0x2fb,_0x5a07e4:0x269,_0x26064d:0x29c},_0x3f066d={_0x1f973f:0x182};function _0x5565f6(_0x1462d1,_0x11c93d,_0x15c6bc,_0x3d82d2){return _0x5b3424(_0x1462d1-0x175,_0x15c6bc-0x44d,_0x15c6bc-0x4,_0x3d82d2);}function _0x5557f4(_0xdfc1d5,_0x4725a9,_0x2cebc7,_0x6b4566){return _0x3dbb2c(_0xdfc1d5-0x1bb,_0xdfc1d5-0xa3,_0x2cebc7-_0x3f066d._0x1f973f,_0x6b4566);}const _0x3304f8=this[_0x5565f6(0x292,_0x4d8776._0x58cf79,0x196,0xca)](_0x2afad4),_0x31372f=await this[_0x5557f4(0x3bf,_0x4d8776._0x44cdf6,_0x4d8776._0x4f2093,_0x4d8776._0x438fb6)][_0x5565f6(0x37f,0x33d,0x306,0x320)](_0x3304f8,{'mode':_0x5565f6(0xbc,_0x4d8776._0x5a07e4,0x190,_0x4d8776._0x26064d)});return this['completeViaSurface'](_0x3304f8,_0x31372f,_0xc066cb);}async*[_0x5b3424(-0x1e3,-0x185,-0x19d,-0x128)](_0x626da0,_0x46f017){const _0x48d6ea={_0x5b2948:0x3c7,_0x3c50da:0x495,_0x1558b9:0x515,_0x1683ec:0x476,_0x4a3a52:0x350,_0x44a9a1:0x2c4,_0x190674:0x434,_0x147f77:0x59d},_0x9755e4={_0x2e09a6:0x1de,_0x27d65b:0x649,_0x17699d:0x165},_0x999d59={_0xf2803e:0x17a,_0x12542c:0x1b5};function _0x33e9ef(_0x1a718c,_0x16133a,_0x576cd9,_0x1cc2b5){return _0x3dbb2c(_0x1a718c-_0x999d59._0xf2803e,_0x576cd9-_0x999d59._0x12542c,_0x576cd9-0xe7,_0x1cc2b5);}function _0x462ef4(_0x13ee19,_0x3ef266,_0x58f64c,_0x475ac3){return _0x5b3424(_0x13ee19-_0x9755e4._0x2e09a6,_0x475ac3-_0x9755e4._0x27d65b,_0x58f64c-_0x9755e4._0x17699d,_0x58f64c);}const _0x420c42=this[_0x33e9ef(0x2dd,0x3a7,0x2d4,_0x48d6ea._0x5b2948)](_0x626da0),_0x3a4061=await this[_0x33e9ef(_0x48d6ea._0x3c50da,_0x48d6ea._0x1558b9,0x4d1,_0x48d6ea._0x1683ec)]['selectSurface'](_0x420c42,{'mode':_0x33e9ef(_0x48d6ea._0x4a3a52,0x317,0x312,_0x48d6ea._0x44a9a1)});yield*this[_0x33e9ef(_0x48d6ea._0x190674,_0x48d6ea._0x147f77,0x4a3,0x43c)](_0x420c42,_0x3a4061,_0x46f017);}async[_0x5b3424(-0xba,-0x12b,-0x202,-0x117)](_0x33b3ac,_0x290746,_0x44bf97){const _0x6af0f7={_0x136383:0x30a,_0xd3eead:0x40d,_0x48795a:0x20d,_0x294424:0x3db,_0x192e36:0x37b,_0x33e885:0x4e9,_0x5cdf66:0x3b8,_0x203fa8:0x47d,_0x3d8bcf:0x40c,_0x219e95:0x4da,_0x1974d6:0x242,_0x20fb09:0x298,_0x5d1749:0x38e,_0x234024:0x20f,_0x3d0268:0x311,_0x4a8606:0x2b5,_0x401939:0x35b,_0x2b5635:0x2c6,_0x1296ab:0x427,_0x5f4104:0x49a,_0x5b87bb:0x28a,_0x4e9ed:0x3e9,_0x350434:0x538,_0xfeb3b5:0x31f,_0x456bc6:0x411,_0x56eba2:0x3ff,_0xfd8dc5:0x4ee,_0x3a6b07:0x43d,_0x6dbde:0x313,_0x584e92:0x3c3,_0x3185de:0x3f8,_0x1b228d:0x2ee},_0x2cf2c3={_0x2ac65f:0x7,_0x216388:0x1eb,_0x16a3ea:0x146},_0x51047b={_0x45947b:0xd8};function _0x524cdf(_0x3c410d,_0x4e3bc8,_0x1bb87c,_0x2701e0){return _0x5b3424(_0x3c410d-_0x51047b._0x45947b,_0x2701e0-0x52b,_0x1bb87c-0x4e,_0x4e3bc8);}const _0x2c020d=this[_0x49446b(0x25d,_0x6af0f7._0x136383,_0x6af0f7._0xd3eead,_0x6af0f7._0x48795a)](_0x33b3ac),_0x5e3d8c=this[_0x524cdf(_0x6af0f7._0x294424,0x30f,_0x6af0f7._0x192e36,0x40e)](_0x290746);if(_0x5e3d8c[_0x49446b(_0x6af0f7._0x33e885,0x472,_0x6af0f7._0x5cdf66,0x575)]===_0x49446b(0x4f6,_0x6af0f7._0x203fa8,_0x6af0f7._0x3d8bcf,_0x6af0f7._0x219e95)){const _0x495b25=await this['sendHttpSurfaceRequest'](_0x2c020d,_0x5e3d8c,![],_0x44bf97);if(!_0x495b25['ok'])throw await this[_0x524cdf(0x34a,0x32b,_0x6af0f7._0x1974d6,0x2ed)](_0x495b25);if(!_0x5e3d8c[_0x524cdf(0x34c,_0x6af0f7._0x20fb09,0x3ec,_0x6af0f7._0x5d1749)])throw new Error(_0x524cdf(_0x6af0f7._0x234024,_0x6af0f7._0x3d0268,_0x6af0f7._0x4a8606,0x31d)+_0x290746+_0x49446b(_0x6af0f7._0x401939,0x2fa,_0x6af0f7._0x2b5635,0x3b7));return _0x5e3d8c[_0x524cdf(_0x6af0f7._0x1296ab,_0x6af0f7._0x5f4104,_0x6af0f7._0x5b87bb,0x38e)](await _0x495b25['json'](),_0x2c020d);}let _0x38dccd;for await(const _0x22486c of this[_0x524cdf(_0x6af0f7._0x4e9ed,0x4d5,_0x6af0f7._0x350434,0x443)](_0x2c020d,_0x290746,_0x44bf97)){_0x22486c[_0x49446b(0x41a,_0x6af0f7._0xfeb3b5,_0x6af0f7._0x456bc6,0x3c6)]===_0x49446b(0x420,_0x6af0f7._0x56eba2,0x33b,_0x6af0f7._0xfd8dc5)&&(_0x38dccd=_0x22486c[_0x524cdf(0x333,0x3ef,0x3f9,_0x6af0f7._0x3a6b07)]);}function _0x49446b(_0x9af5ea,_0x5839c0,_0x5b08f6,_0x1c723e){return _0x3dbb2c(_0x9af5ea-_0x2cf2c3._0x2ac65f,_0x5839c0-_0x2cf2c3._0x216388,_0x5b08f6-_0x2cf2c3._0x16a3ea,_0x1c723e);}if(!_0x38dccd)throw new Error(_0x49446b(_0x6af0f7._0x6dbde,0x3b3,_0x6af0f7._0x584e92,_0x6af0f7._0x3185de)+_0x290746+_0x524cdf(0x37f,_0x6af0f7._0x1b228d,0x1e3,0x2de));return _0x38dccd;}async*['streamViaSurface'](_0xb0999e,_0x208eb3,_0x3039c6){const _0x307a93={_0x96e2f:0x8c,_0x1da3ab:0xa7,_0x219d1f:0x459,_0x1cf040:0x41d,_0x5e25d3:0x3d8,_0x5f4dca:0x411,_0x5eaad4:0x40a,_0x2a35aa:0x468},_0x3eab9b={_0x346adf:0xaa},_0x1516de={_0x1d5592:0x1e1,_0x8c5494:0x27b},_0x5779ec=this[_0x470a6e(-0x1d6,-0x15c,-_0x307a93._0x96e2f,-_0x307a93._0x1da3ab)](_0xb0999e);function _0x470a6e(_0x47b744,_0x43b537,_0x15e9fa,_0x64c2bb){return _0x3dbb2c(_0x47b744-_0x1516de._0x1d5592,_0x43b537- -_0x1516de._0x8c5494,_0x15e9fa-0x4f,_0x64c2bb);}const _0x52cbda=this[_0x176e90(0x517,_0x307a93._0x219d1f,0x4ff,0x4d1)](_0x208eb3);if(_0x52cbda['transport']==='http-json'){const _0x4143b0=await this[_0x176e90(_0x307a93._0x1cf040,0x4be,0x3c6,0x4c3)](_0x5779ec,_0x208eb3,_0x3039c6);yield{'type':'done','response':_0x4143b0};return;}function _0x176e90(_0x3e08fc,_0x96b547,_0x225d6,_0x493147){return _0x3dbb2c(_0x3e08fc-_0x3eab9b._0x346adf,_0x493147-0x218,_0x225d6-0x60,_0x225d6);}if(_0x52cbda['transport']==='http-sse'){yield*this[_0x176e90(0x36f,0x36a,_0x307a93._0x5e25d3,0x45d)](_0x5779ec,_0x52cbda,_0x3039c6);return;}yield*this[_0x176e90(_0x307a93._0x5f4dca,_0x307a93._0x5eaad4,_0x307a93._0x2a35aa,0x399)](_0x5779ec,_0x52cbda,_0x3039c6?.['signal']);}async[_0x5b3424(-0x1b5,-0x13a,-0x144,-0xb9)](_0x3963d8){const _0x1bb1f8={_0x1fb18f:0x27b},_0x470aba={_0x583e23:0x300,_0x3015cd:0x32d,_0x5ab1f7:0x381,_0x58e5ef:0x353,_0x2ad91a:0x497,_0x1542d1:0x3cf,_0x4df99a:0x4ca,_0x384b7c:0x4ed,_0x3c17df:0x431,_0x3fc511:0x3d7,_0x190bce:0x54f,_0x54fdf2:0x4bd,_0x47a5f5:0x370,_0x32028c:0x2b7,_0x3763b3:0x2a4,_0x15c89b:0x267,_0x56999b:0x3e4,_0x5394ef:0x3f2,_0x328c01:0x39e,_0x14bf26:0x340,_0x244312:0x428,_0x5d35fd:0x426,_0x2bb431:0x322,_0x17ef1b:0x31a,_0x281a97:0x344,_0x43c13a:0x19d,_0x239071:0x220,_0x5d0896:0x403,_0x397217:0x3fe,_0x29a12d:0x3b4,_0x6df18e:0x1c5,_0x310ccd:0x359,_0x3c6603:0x2c9},_0x2c76a0={_0x190559:0x7e,_0x227db1:0x167};function _0x4f1ff4(_0xbfa657,_0x40f3b2,_0x5d7872,_0x2d6f08){return _0x3dbb2c(_0xbfa657-0xae,_0xbfa657-_0x2c76a0._0x190559,_0x5d7872-_0x2c76a0._0x227db1,_0x40f3b2);}const _0xcb4915=async()=>{const _0x3a4188=this[_0x5d69ce(_0x470aba._0x583e23,0x476,0x398,_0x470aba._0x3015cd)]?await this['sessionManager'][_0x897e1f(_0x470aba._0x5ab1f7,0x360,0x2a6,_0x470aba._0x58e5ef)](_0x3963d8[_0x897e1f(_0x470aba._0x2ad91a,_0x470aba._0x1542d1,0x4fc,0x420)]):void 0x0,_0x4ec279=this[_0x897e1f(_0x470aba._0x4df99a,_0x470aba._0x384b7c,_0x470aba._0x3c17df,0x541)]['resolveCredential'](this[_0x897e1f(0x415,_0x470aba._0x3fc511,0x487,0x4f7)],_0x3a4188);function _0x897e1f(_0x93a5d5,_0x138339,_0x5752a8,_0x516c8b){return _0x3104(_0x93a5d5-0x2b5,_0x138339);}if(!_0x4ec279)throw this[_0x897e1f(0x346,0x38d,0x403,0x352)]();const _0x1b87ee=await this[_0x897e1f(_0x470aba._0x190bce,_0x470aba._0x54fdf2,0x566,0x520)]({'body':_0x3963d8[_0x897e1f(0x403,0x4f2,0x374,0x4e6)],'credential':_0x4ec279,'session':_0x3a4188,'stream':![]},{'accept':_0x3963d8[_0x5d69ce(0x3c5,0x294,_0x470aba._0x47a5f5,0x27d)]??_0x5d69ce(_0x470aba._0x32028c,0x251,0x2f0,0x1f1),'includeContentType':_0x3963d8['method']===_0x5d69ce(_0x470aba._0x3763b3,0x1c8,_0x470aba._0x15c89b,0x295)});function _0x5d69ce(_0x186ac9,_0x4400f2,_0x3b01a2,_0x3864b4){return _0x3104(_0x3b01a2-0x17b,_0x3864b4);}return this['fetchImpl'](''+this['providerAdapter'][_0x897e1f(_0x470aba._0x56999b,_0x470aba._0x5394ef,_0x470aba._0x328c01,_0x470aba._0x14bf26)](this[_0x897e1f(0x3fe,_0x470aba._0x244312,_0x470aba._0x5d35fd,0x4d7)],_0x3a4188)+_0x3963d8[_0x5d69ce(0x38a,_0x470aba._0x2bb431,_0x470aba._0x17ef1b,_0x470aba._0x281a97)],{'method':_0x3963d8[_0x5d69ce(0x224,_0x470aba._0x43c13a,_0x470aba._0x239071,0x2fc)],'headers':_0x1b87ee,..._0x3963d8[_0x897e1f(_0x470aba._0x5d0896,0x33f,_0x470aba._0x397217,0x323)]!==void 0x0?{'body':JSON[_0x897e1f(_0x470aba._0x29a12d,0x3bb,0x3e6,0x440)](_0x3963d8[_0x5d69ce(_0x470aba._0x6df18e,_0x470aba._0x310ccd,_0x470aba._0x3c6603,0x27c)])}:{},'signal':_0x3963d8['signal']});};return await this[_0x4f1ff4(0x226,_0x1bb1f8._0x1fb18f,0x183,0x1fc)](_0xcb4915,_0x3963d8);}[_0x5b3424(-0x132,-0x1b4,-0x18f,-0x286)](_0x5a9335,_0x299c8b){const _0x49c41={_0x11a86c:0xb0,_0x6cf6e:0x73,_0x4bdb74:0xd6,_0x3ac5d3:0x1d8,_0x27edb7:0x66,_0x581cc3:0x169,_0x341b4d:0x189,_0x3b6d1b:0x1ba,_0x56627e:0x5,_0x15fc05:0xe5,_0x442c50:0x56},_0x52cc30={_0x4a2085:0xa2,_0x440d74:0x11b,_0x54236e:0xd},_0x549e2f=_0x5a9335?.[_0x17f83a(-_0x49c41._0x11a86c,-0x135,-_0x49c41._0x6cf6e,-0x174)][_0x52d5db(_0x49c41._0x4bdb74,_0x49c41._0x3ac5d3,0x2bd,0x1bc)](_0x17f83a(0x9e,_0x49c41._0x27edb7,_0x49c41._0x581cc3,_0x49c41._0x341b4d));if(_0x549e2f){const _0x4c2acd=Number(_0x549e2f);if(Number[_0x52d5db(_0x49c41._0x3b6d1b,0x1e2,0x13b,0x159)](_0x4c2acd)&&_0x4c2acd>=0x0)return _0x4c2acd*0x3e8;const _0x1fe23e=Date['parse'](_0x549e2f);if(Number['isFinite'](_0x1fe23e))return Math[_0x52d5db(-0x59,_0x49c41._0x56627e,0x41,_0x49c41._0x15fc05)](0x0,_0x1fe23e-Date[_0x17f83a(-0x7b,-0xab,-0x26,_0x49c41._0x442c50)]());}function _0x17f83a(_0x311f5d,_0x47e9bb,_0x411e87,_0x2d0c94){return _0x5b3424(_0x311f5d-0x18,_0x311f5d-0x19e,_0x411e87-0x19a,_0x411e87);}function _0x52d5db(_0x3e36b2,_0x4bc1cc,_0x47f8ca,_0x5c9e4c){return _0x3dbb2c(_0x3e36b2-_0x52cc30._0x4a2085,_0x4bc1cc- -_0x52cc30._0x440d74,_0x47f8ca-_0x52cc30._0x54236e,_0x3e36b2);}const _0x23d916=DEFAULT_RETRY_DELAY_MS*0x2**_0x299c8b;if(_0x23d916<RETRY_DELAY_STEP_CAP_MS)return _0x23d916;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x299c8b-0x5);}[_0x3dbb2c(0x295,0x20e,0x154,0x243)](_0x1f10f4){const _0x446839={_0x9ba09b:0x29f,_0x284e9e:0x363,_0x397726:0x202,_0x39dbf9:0x26b},_0x8670b6={_0x159293:0x225,_0x16712b:0x1ec},_0x48eaac={_0x5eae47:0x135,_0x478369:0x48e,_0x35f832:0xae};function _0x1e7eeb(_0x3d5509,_0x13894b,_0x318f9d,_0x30416d){return _0x5b3424(_0x3d5509-_0x48eaac._0x5eae47,_0x3d5509-_0x48eaac._0x478369,_0x318f9d-_0x48eaac._0x35f832,_0x30416d);}function _0x58ac5a(_0x47b840,_0x2ba57c,_0x44cf9f,_0x132bcf){return _0x3dbb2c(_0x47b840-0x1f0,_0x47b840-_0x8670b6._0x159293,_0x44cf9f-_0x8670b6._0x16712b,_0x2ba57c);}return RETRYABLE_HTTP_STATUSES[_0x58ac5a(0x32e,0x322,_0x446839._0x9ba09b,_0x446839._0x284e9e)](_0x1f10f4[_0x1e7eeb(_0x446839._0x397726,_0x446839._0x397726,_0x446839._0x39dbf9,0x1b0)]);}['shouldRetryRequestError'](_0x145324){return!isAbortError(_0x145324)&&_0x145324 instanceof TypeError;}[_0x5b3424(-0x158,-0x193,-0x159,-0x126)](_0x4349ca){const _0x494277={_0x500486:0x555,_0x37bb03:0x614,_0x12da8b:0x51a,_0x3986e8:0x5c6},_0x1ee20d={_0x48d4b4:0x8f,_0x16d9de:0x354,_0x15a0c0:0x9e};function _0x5b005f(_0x31cf95,_0x3a0fe6,_0x4e00f3,_0x45257f){return _0x3dbb2c(_0x31cf95-_0x1ee20d._0x48d4b4,_0x45257f-_0x1ee20d._0x16d9de,_0x4e00f3-_0x1ee20d._0x15a0c0,_0x31cf95);}return this[_0x5b005f(_0x494277._0x500486,_0x494277._0x37bb03,_0x494277._0x12da8b,_0x494277._0x3986e8)](_0x4349ca)||isRetryableProviderStreamEventError(_0x4349ca);}async[_0x3dbb2c(0x2d8,0x2e6,0x2f7,0x256)](_0x4d22cc,_0x409dae){const _0x49d6c4={_0x524754:0x59e,_0x10e010:0x4ac};throwIfAborted(_0x409dae),await new Promise((_0x4a5ac1,_0x5f2b92)=>{let _0x348f8e=![];const _0x2a1d63=addAbortListener(_0x409dae,()=>{function _0x1737e3(_0x244508,_0x3d0cb5,_0x16efbe,_0x2d4a4a){return _0x3104(_0x2d4a4a-0x3da,_0x3d0cb5);}if(_0x348f8e)return;_0x348f8e=!![],clearTimeout(_0x58c8ff),_0x5f2b92(toAbortError(_0x409dae?.[_0x1737e3(0x586,_0x49d6c4._0x524754,_0x49d6c4._0x10e010,0x4d2)]));}),_0x58c8ff=setTimeout(()=>{_0x348f8e=!![],_0x2a1d63(),_0x4a5ac1();},_0x4d22cc);}),throwIfAborted(_0x409dae);}async[_0x5b3424(-0x261,-0x22e,-0x144,-0x240)](_0x4ecb86,_0x2395f0={}){const _0x166487={_0x290fe3:0x280,_0x259267:0x27,_0x3c1822:0x1da,_0x1df072:0x42,_0x469425:0x254,_0x5a269c:0x24d,_0xae33d8:0x1c0,_0x58191e:0x1df,_0x42edb9:0x423,_0x371252:0x393,_0x1e24e0:0x16c},_0x24703e={_0x41436f:0x408,_0x278d93:0x15e},_0x51f50d={_0x22fe02:0xc};function _0x88d6ef(_0x21d5a8,_0x1be717,_0x203853,_0x46a870){return _0x5b3424(_0x21d5a8-0x8f,_0x46a870-_0x51f50d._0x22fe02,_0x203853-0x193,_0x203853);}const {signal:_0x5dabfd}=_0x2395f0;function _0x5a8f75(_0x2aed02,_0xb59621,_0xe0d87d,_0x5906f6){return _0x5b3424(_0x2aed02-0x13a,_0x2aed02-_0x24703e._0x41436f,_0xe0d87d-_0x24703e._0x278d93,_0xe0d87d);}let _0x4e4d50=![];for(let _0x5c26b1=0x0;_0x5c26b1<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x5c26b1+=0x1){throwIfAborted(_0x5dabfd);try{const _0x29baf2=await _0x4ecb86();if(_0x29baf2[_0x88d6ef(-0x28b,-0x24a,-0x28a,-_0x166487._0x290fe3)]===0x191&&this[_0x88d6ef(-_0x166487._0x259267,-_0x166487._0x3c1822,-_0x166487._0x1df072,-0x127)]&&!_0x4e4d50){_0x4e4d50=!![],this[_0x88d6ef(-0x16b,-0x1b7,-0x184,-0x127)]['invalidate']();continue;}if(!this['shouldRetryResponse'](_0x29baf2)||_0x5c26b1===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x29baf2;const _0x4701bd=this[_0x5a8f75(_0x166487._0x469425,_0x166487._0x5a269c,_0x166487._0xae33d8,_0x166487._0x58191e)](_0x29baf2,_0x5c26b1);await this[_0x5a8f75(0x318,_0x166487._0x42edb9,0x25e,_0x166487._0x371252)](_0x4701bd,_0x5dabfd);}catch(_0x1ab89d){if(!this[_0x88d6ef(-_0x166487._0x1e24e0,-0x161,-0x179,-0x158)](_0x1ab89d)||_0x5c26b1===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x1ab89d;const _0x13b4dc=this['getRetryDelayMs'](void 0x0,_0x5c26b1);await this['waitForRetry'](_0x13b4dc,_0x5dabfd);}}throw new Error('Provider\x20request\x20retry\x20loop\x20exited\x20unexpectedly');}[_0x3dbb2c(0x1a5,0x117,0x23,0x2a)](){const _0x14adaa={_0x149053:0x398,_0x17045b:0x423,_0x2377e7:0x36a},_0x2744ad={_0xfd142e:0x6e,_0x5f507c:0x89};function _0x19120b(_0x427722,_0x1e2e3f,_0x320266,_0x547e8f){return _0x5b3424(_0x427722-_0x2744ad._0xfd142e,_0x427722- -_0x2744ad._0x5f507c,_0x320266-0x17c,_0x320266);}return this['providerAdapter'][_0x19120b(-0x348,-_0x14adaa._0x149053,-_0x14adaa._0x17045b,-_0x14adaa._0x2377e7)]();}async[_0x5b3424(-0xe6,-0xb6,-0x123,0x27)](_0x13d04d,_0x2651c5){const _0x3017a4={_0x39848a:0x45e,_0x3a4fb6:0x3f8};function _0x4a06b5(_0x4e6637,_0x5686dc,_0x277832,_0x2d1dc7){return _0x3dbb2c(_0x4e6637-0xb4,_0x4e6637-0x1c3,_0x277832-0x131,_0x277832);}return await this[_0x4a06b5(_0x3017a4._0x39848a,0x45c,0x537,_0x3017a4._0x3a4fb6)]['createHeaders'](_0x13d04d,_0x2651c5);}[_0x3dbb2c(0x100,0x20b,0x1c1,0x120)](_0x15a9cd){const _0xa6bf4d={_0x395095:0xe,_0x1677d9:0x13e,_0x3b3123:0x80,_0x3f36dd:0x125},_0x211bf5={_0x31bf44:0x176,_0x448bd4:0x2f6},_0x3c8bd5={_0x215a28:0xbb};function _0x2bcec0(_0x2d0f0a,_0x38d372,_0x49139d,_0x2bf6c0){return _0x5b3424(_0x2d0f0a-0x32,_0x49139d-_0x3c8bd5._0x215a28,_0x49139d-0x37,_0x2d0f0a);}function _0x121d2a(_0x28f991,_0x542a0b,_0x2dd10a,_0x3799e4){return _0x3dbb2c(_0x28f991-_0x211bf5._0x31bf44,_0x28f991-_0x211bf5._0x448bd4,_0x2dd10a-0x12c,_0x542a0b);}return this[_0x2bcec0(_0xa6bf4d._0x395095,-_0xa6bf4d._0x1677d9,-_0xa6bf4d._0x3b3123,-_0xa6bf4d._0x3f36dd)][_0x2bcec0(-0x1e9,-0x100,-0x110,-0xff)](_0x15a9cd);}async['toApiError'](_0x42e317){const _0x11614d={_0x292858:0x412,_0x1a5382:0xb6,_0x5ec247:0x7d},_0x16c3d1={_0x1a211c:0x1bd,_0x2ece2b:0x9b};function _0xce75e3(_0x3cf363,_0x57dc62,_0x16368c,_0x108968){return _0x5b3424(_0x3cf363-0x6a,_0x3cf363-0x2ea,_0x16368c-0x84,_0x108968);}function _0x5612a9(_0xf8e901,_0x3c96d7,_0x1ad59b,_0x4635b0){return _0x3dbb2c(_0xf8e901-_0x16c3d1._0x1a211c,_0x1ad59b-0x1b1,_0x1ad59b-_0x16c3d1._0x2ece2b,_0xf8e901);}return await this[_0x5612a9(0x410,0x4bf,0x44c,_0x11614d._0x292858)][_0xce75e3(0xac,0x159,_0x11614d._0x1a5382,_0x11614d._0x5ec247)](_0x42e317);}[_0x3dbb2c(0x34c,0x2b9,0x338,0x2df)](_0x559c15){const _0x344061={_0x10ee6e:0x464,_0x164362:0x462,_0x31ca18:0xa3,_0x30f6f7:0x1ab,_0x19cd1b:0x19d,_0x1641a8:0x15f},_0x55fc05={_0x369c52:0x8e,_0x493488:0xbe,_0x53a975:0x107},_0x4d4efb={_0x213586:0xa,_0x80d952:0xd},_0x59e1a2=this[_0x3e0df4(0x380,_0x344061._0x10ee6e,_0x344061._0x164362,0x382)][_0x1b3448(0x2b3,0x250,_0x344061._0x31ca18,_0x344061._0x30f6f7)](_0x559c15);function _0x1b3448(_0x1e501d,_0x22d7f4,_0x4fa47f,_0x7a405f){return _0x5b3424(_0x1e501d-_0x4d4efb._0x213586,_0x7a405f-0x28e,_0x4fa47f-_0x4d4efb._0x80d952,_0x4fa47f);}function _0x3e0df4(_0x18f04e,_0x307b24,_0x3cb813,_0x5a25b9){return _0x3dbb2c(_0x18f04e-_0x55fc05._0x369c52,_0x18f04e-_0x55fc05._0x493488,_0x3cb813-_0x55fc05._0x53a975,_0x3cb813);}if(!_0x59e1a2)throw new Error(_0x3e0df4(0x242,_0x344061._0x19cd1b,0x341,_0x344061._0x1641a8)+_0x559c15);return _0x59e1a2;}[_0x5b3424(-0x2e,-0xd7,-0x87,-0x2)](_0x2697c4){const _0x153bcb={_0x130012:0x59,_0x243cae:0xa0,_0x166d3c:0xee,_0x32247a:0x3f,_0x16c9bf:0x46,_0x1fa59a:0xad,_0x95d1ab:0xe0,_0x4c5a87:0xa8},_0x2e7202={_0x468de:0x1ec},{pricingProviderId:_0x5a188a,..._0x5ed348}=_0x2697c4[_0xb0783e(-_0x153bcb._0x130012,_0x153bcb._0x243cae,0x29,0x142)];function _0x4fbe26(_0x228701,_0x46b251,_0x5a7d52,_0x5bfab4){return _0x5b3424(_0x228701-0x1c7,_0x5bfab4-0x2ad,_0x5a7d52-0x13a,_0x5a7d52);}function _0xb0783e(_0x55337d,_0x3c2d43,_0x2992c8,_0x111cd6){return _0x3dbb2c(_0x55337d-_0x2e7202._0x468de,_0x3c2d43- -0x210,_0x2992c8-0x1a3,_0x55337d);}return{..._0x2697c4,'metadata':{..._0x5ed348,...this[_0xb0783e(-_0x153bcb._0x166d3c,-_0x153bcb._0x32247a,_0x153bcb._0x16c9bf,_0x153bcb._0x1fa59a)]!==void 0x0?{'pricingProviderId':this[_0x4fbe26(_0x153bcb._0x95d1ab,-0x26,0x63,_0x153bcb._0x4c5a87)]}:{}}};}async[_0x5b3424(-0x40,-0xed,-0x10d,-0x135)](_0x496eed,_0x523962){const _0x13fe2f={_0x237e75:0x92,_0x2a9a30:0x27c,_0x2b9042:0x3,_0x1348d8:0x57e,_0x3248f2:0x4a5,_0x214c01:0x665,_0x5d1607:0x3f4,_0x43ba61:0x1a},_0x1c7b19={_0xfb497e:0xaf},_0x2e5bc9={_0x43bfa2:0x2dd,_0x582d65:0xae},_0x1e6e94=toModelRequest(_0x496eed),_0x3c2e60=await prepareProviderRequest(_0x1e6e94,{'sessionManager':this[_0x43a51e(0x18,0xbf,0x112,_0x13fe2f._0x237e75)],'requestMutators':this['requestMutators'],'signal':_0x523962}),_0x21ad7b=this[_0x43a51e(_0x13fe2f._0x2a9a30,0x189,0x16e,0x12f)](toChatRequest(_0x3c2e60[_0x43a51e(-0xef,_0x13fe2f._0x2b9042,-0x77,-0xb5)]));function _0x4c4427(_0x408a7f,_0x47a713,_0x5d0197,_0x1c6e71){return _0x3dbb2c(_0x408a7f-0x2f,_0x47a713-_0x2e5bc9._0x43bfa2,_0x5d0197-_0x2e5bc9._0x582d65,_0x408a7f);}function _0x43a51e(_0x5336c6,_0x95ce1d,_0x41f3a1,_0x1cf133){return _0x3dbb2c(_0x5336c6-0xf4,_0x41f3a1- -0x191,_0x41f3a1-_0x1c7b19._0xfb497e,_0x95ce1d);}const _0xa635a8=this[_0x4c4427(_0x13fe2f._0x1348d8,0x578,_0x13fe2f._0x3248f2,_0x13fe2f._0x214c01)][_0x43a51e(0xca,0xc0,-0xb,-0xad)](this['apiKey'],_0x3c2e60['session']);if(!_0xa635a8)throw this['createMissingCredentialError']();return{'baseUrl':this['providerAdapter'][_0x4c4427(0x585,0x492,_0x13fe2f._0x5d1607,0x4ce)](this['baseUrl'],_0x3c2e60['session']),'credential':_0xa635a8,'request':_0x21ad7b,'session':_0x3c2e60[_0x43a51e(-_0x13fe2f._0x43ba61,0x25,-0x2e,-0xd7)]};}[_0x5b3424(-0x1c0,-0x2b7,-0x1ad,-0x1c1)](_0x1cdb87){const _0x23bb22={_0x3d99db:0x39f,_0x22103a:0x4a7,_0x520d79:0x2a6},_0x48468e={_0x28761f:0x8f,_0x17c9ce:0x193},_0x3c4314={_0x3a8a9c:0x102};function _0xcf6844(_0x50506f,_0x28cf09,_0x23038f,_0x51ae3a){return _0x3dbb2c(_0x50506f-_0x3c4314._0x3a8a9c,_0x51ae3a-0xd2,_0x23038f-0x1c3,_0x28cf09);}function _0x3623ca(_0x352c98,_0x22b8ac,_0x2452d8,_0x1855f0){return _0x3dbb2c(_0x352c98-_0x48468e._0x28761f,_0x352c98-_0x48468e._0x17c9ce,_0x2452d8-0x1f2,_0x22b8ac);}return{...structuredClone(_0x1cdb87),..._0x1cdb87[_0xcf6844(0x344,0x43c,0x37e,_0x23bb22._0x3d99db)]===void 0x0&&this[_0xcf6844(0x2b9,0x3c3,0x430,0x39f)]!==void 0x0?{'reasoning':structuredClone(this[_0xcf6844(_0x23bb22._0x22103a,0x351,_0x23bb22._0x520d79,0x39f)])}:{}};}async[_0x3dbb2c(0x165,0x23d,0x206,0x274)](_0x204ac8,_0x15aa09,_0x212a2e,_0x293a52={},_0x4438be=!![]){const _0x4d1e95={_0x329ece:0x469,_0x3b5ef3:0x4dc},_0xe7fe51={_0x3e97fc:0x597,_0x14841f:0x530,_0x4ef699:0x603,_0xb226be:0x202,_0x309c02:0x1c4,_0x11c20b:0x1c1,_0x4dbf24:0x114,_0x28ee73:0x5b,_0x367e3d:0x3e6,_0xa39006:0x5d7,_0x28094a:0x4f8,_0x54acc2:0x394,_0x49d617:0x476,_0x462919:0x3d7,_0x215864:0x496,_0x44ad1a:0x5ce,_0xff78cb:0x5e4,_0x26d0dc:0x402,_0x3d119c:0x4a6,_0x2715a3:0x495,_0x1c21f9:0x3af,_0x45f071:0x411,_0x3a1a63:0x402,_0x15454d:0x529,_0x5000fb:0x558,_0x232112:0x526,_0x393f6d:0x1b7,_0x42db1f:0x32,_0x599645:0x72,_0x36dbe6:0x109,_0x24a248:0x160,_0x36e28f:0x575,_0x2a97fa:0x482,_0x209a55:0x3da,_0x4f9210:0x2bf,_0x402d56:0x241,_0x4d8c90:0x52b,_0x2eb098:0x436,_0x518898:0x442,_0x28da7e:0x369,_0x344892:0x4d9,_0x14173d:0x55f},_0x3e2173={_0x3dc4b1:0x184,_0x5b9055:0x6d},{signal:_0x2b2d1e}=_0x293a52;function _0x332ab7(_0x2f619e,_0x2bf958,_0x957b60,_0xfcaafe){return _0x5b3424(_0x2f619e-_0x3e2173._0x3dc4b1,_0x2bf958-0x70a,_0x957b60-_0x3e2173._0x5b9055,_0xfcaafe);}const _0x281fb1=async()=>{const _0xa3266d={_0x3a3371:0x2c2},_0x42bc46=await this[_0x11235a(0x632,_0xe7fe51._0x3e97fc,_0xe7fe51._0x14841f,_0xe7fe51._0x4ef699)](_0x204ac8,_0x2b2d1e);let _0x22da92;function _0x11235a(_0x5a314b,_0x5ed8f8,_0x468797,_0x4cb9a2){return _0x3104(_0x5ed8f8-0x334,_0x468797);}try{_0x22da92=_0x15aa09[_0x4b48b7(-_0xe7fe51._0xb226be,-0x27e,-_0xe7fe51._0x309c02,-_0xe7fe51._0x11c20b)](_0x42bc46['request']);}catch(_0x50c02a){if(_0x50c02a instanceof Error)throw new ProviderRequestConstructionError(_0x50c02a[_0x4b48b7(-_0xe7fe51._0x4dbf24,-0x93,-_0xe7fe51._0x28ee73,-0x108)]);throw _0x50c02a;}if(!_0x22da92[_0x11235a(_0xe7fe51._0x367e3d,0x4d3,_0xe7fe51._0xa39006,_0xe7fe51._0x28094a)])throw new ProviderRequestConstructionError(_0x11235a(_0xe7fe51._0x54acc2,_0xe7fe51._0x49d617,0x40f,0x3a9)+_0x15aa09['id']+_0x11235a(_0xe7fe51._0x462919,_0xe7fe51._0x215864,0x584,0x4cc));const _0x52fafd=await this[_0x11235a(0x5d5,_0xe7fe51._0x44ad1a,_0xe7fe51._0xff78cb,0x659)]({'request':_0x42bc46['request'],'body':_0x22da92[_0x11235a(0x403,0x482,0x50a,0x3f8)],'credential':_0x42bc46[_0x11235a(0x4ee,_0xe7fe51._0x26d0dc,_0xe7fe51._0x3d119c,_0xe7fe51._0x2715a3)],'session':_0x42bc46[_0x11235a(_0xe7fe51._0x1c21f9,_0xe7fe51._0x45f071,0x516,_0xe7fe51._0x3a1a63)],'stream':_0x212a2e},{'accept':_0x22da92[_0x11235a(0x51f,_0xe7fe51._0x15454d,_0xe7fe51._0x5000fb,_0xe7fe51._0x232112)]??(_0x212a2e?_0x4b48b7(-_0xe7fe51._0x393f6d,-0x46,-_0xe7fe51._0x42db1f,-0xc9):_0x4b48b7(-_0xe7fe51._0x599645,-_0xe7fe51._0x36dbe6,-_0xe7fe51._0x24a248,-0x14d)),'includeContentType':_0x22da92[_0x11235a(_0xe7fe51._0x36e28f,_0xe7fe51._0x2a97fa,_0xe7fe51._0x209a55,0x45e)]!==void 0x0});function _0x4b48b7(_0x4a835e,_0x2cd46f,_0x19948,_0xdfa864){return _0x3104(_0xdfa864- -_0xa3266d._0x3a3371,_0x19948);}for(const [_0x2f7990,_0x1ede14]of Object[_0x4b48b7(-0x274,-_0xe7fe51._0x4f9210,-0x1f4,-_0xe7fe51._0x402d56)](_0x22da92[_0x11235a(_0xe7fe51._0x4d8c90,_0xe7fe51._0x2eb098,0x478,0x48b)]??{})){_0x52fafd[_0x4b48b7(-0x24d,-0x101,-0x1cf,-0x14e)](_0x2f7990,_0x1ede14);}return this[_0x4b48b7(-0x218,-0x122,-0x2ed,-0x20a)](''+_0x42bc46['baseUrl']+_0x22da92[_0x11235a(0x40e,0x4d3,0x4a5,0x473)],{'method':_0x4b48b7(-0xea,-0x25b,-0x1b4,-0x1d6),'headers':_0x52fafd,..._0x22da92['body']!==void 0x0?{'body':JSON[_0x11235a(_0xe7fe51._0x518898,0x433,_0xe7fe51._0x28da7e,0x382)](_0x22da92[_0x11235a(_0xe7fe51._0x344892,_0xe7fe51._0x2a97fa,0x4a0,_0xe7fe51._0x14173d)])}:{},'signal':_0x2b2d1e});};return _0x4438be?await this[_0x332ab7(_0x4d1e95._0x329ece,_0x4d1e95._0x3b5ef3,0x459,0x492)](_0x281fb1,_0x293a52):await _0x281fb1();}async*[_0x5b3424(-0x24b,-0x191,-0xdb,-0x1ca)](_0x16a0c4,_0x2f83eb,_0x2f1663={}){const _0x42d54a={_0xb35291:0x4f,_0x75211c:0xca,_0x53b2c7:0x223,_0x1f50c5:0x1c3,_0x46b2a0:0xfd,_0x14671f:0x74,_0x567a9b:0x1f0,_0x1ec765:0xfd,_0x380253:0x133,_0x53856e:0x7,_0xd9bfa8:0x96,_0x29609c:0x5,_0x2e1768:0x11d,_0x1c0b15:0x170,_0x2f38c9:0x14b,_0x1e8d6f:0xc5,_0x14a905:0x17,_0xf13f34:0x16a,_0x56a36c:0x67,_0x3a134e:0x86,_0x129057:0x8,_0x43e1e4:0x34,_0x413d90:0x5c,_0x5e5c17:0xff,_0x22e804:0xd6,_0x498b21:0x68,_0x4eddce:0x5e,_0x14889a:0x4d,_0x17f14b:0x145,_0xaa944d:0x1a5,_0x3bb70d:0x177,_0x50aeef:0xc1,_0x27655b:0x82,_0x273a9c:0x225,_0x12b8ad:0x6a,_0xd52eac:0x5f,_0x471d5b:0x217,_0x3139a9:0x1dc,_0x328c4:0x154,_0x3a64b6:0x78,_0x2d56e6:0x14,_0x2bf90f:0x159,_0x26c1e3:0x313,_0x19203b:0x144,_0x370338:0x26,_0x17a779:0x12a,_0x35872e:0x171,_0x4b7afc:0x1c9,_0x2603b5:0x125,_0xbcb0c2:0xcb,_0x229f32:0x3,_0x326923:0x101,_0x51438b:0x109,_0x14aa12:0x161,_0x4be109:0xa,_0x24c834:0x8,_0x2f11d9:0x18d,_0x41f78b:0x140,_0x5cc3c7:0xd8},_0x5dafae={_0x24632a:0x9c,_0x29438b:0xcf},_0x61b423={_0xb1e967:0x69,_0x28ef18:0x77},{signal:_0x52ef5f}=_0x2f1663;function _0x242214(_0x51b610,_0x593cac,_0x15dcc8,_0x13749a){return _0x5b3424(_0x51b610-0x186,_0x593cac-_0x61b423._0xb1e967,_0x15dcc8-_0x61b423._0x28ef18,_0x13749a);}let _0x3733c1=![];function _0x3bfb79(_0x2af66b,_0x14e46a,_0x45b99a,_0x29e3a2){return _0x5b3424(_0x2af66b-_0x5dafae._0x24632a,_0x14e46a-0x230,_0x45b99a-_0x5dafae._0x29438b,_0x45b99a);}for(let _0x1ecf6e=0x0;_0x1ecf6e<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x1ecf6e+=0x1){let _0x302bb2=![];try{const _0x507a09=await this[_0x3bfb79(_0x42d54a._0xb35291,0x97,_0x42d54a._0x75211c,-0x1d)](_0x16a0c4,_0x2f83eb,!![],_0x2f1663,![]);if(_0x507a09[_0x242214(-0x16b,-_0x42d54a._0x53b2c7,-0x2a9,-_0x42d54a._0x1f50c5)]===0x191&&this[_0x3bfb79(0x5d,_0x42d54a._0x46b2a0,_0x42d54a._0x14671f,_0x42d54a._0x567a9b)]&&!_0x3733c1){_0x3733c1=!![],this[_0x3bfb79(0x6,_0x42d54a._0x1ec765,0xc0,0x186)][_0x242214(-0x11a,-_0x42d54a._0x380253,-0x227,-0x16e)]();continue;}if(!_0x507a09['ok']){const _0x4080e9=await this[_0x3bfb79(_0x42d54a._0x53856e,-0xe,-0xec,-_0x42d54a._0xd9bfa8)](_0x507a09);if(!this[_0x3bfb79(-_0x42d54a._0x29609c,0x68,0x2,_0x42d54a._0x2e1768)](_0x507a09)||_0x1ecf6e===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x4080e9;const _0x313e66=this[_0x242214(-_0x42d54a._0x1c0b15,-_0x42d54a._0x2f38c9,-0x22d,-0x121)](_0x507a09,_0x1ecf6e),_0x140099={'type':_0x3bfb79(-_0x42d54a._0x1e8d6f,-0x66,0x2a,-_0x42d54a._0x14a905),'attempt':_0x1ecf6e+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x4080e9[_0x3bfb79(0x14e,0x9a,0x181,0x33)],'delayMs':_0x313e66,'reason':_0x3bfb79(_0x42d54a._0xf13f34,_0x42d54a._0x56a36c,-_0x42d54a._0x3a134e,-_0x42d54a._0x129057),'status':_0x507a09[_0x3bfb79(_0x42d54a._0x43e1e4,-_0x42d54a._0x413d90,-_0x42d54a._0x5e5c17,-_0x42d54a._0x22e804)]};yield _0x140099,await this[_0x3bfb79(0x88,0x140,0x131,0xa9)](_0x313e66,_0x52ef5f);continue;}const _0xa3d10e=_0x2f83eb[_0x3bfb79(0xce,_0x42d54a._0x29609c,-0x42,-_0x42d54a._0x498b21)]?.(_0x16a0c4);if(!_0xa3d10e?.[_0x3bfb79(-0x58,-_0x42d54a._0x4eddce,-_0x42d54a._0x14889a,-0x114)])throw new Error(_0x242214(-_0x42d54a._0x17f14b,-_0x42d54a._0xaa944d,-_0x42d54a._0x3bb70d,-_0x42d54a._0x50aeef)+_0x2f83eb['id']+_0x3bfb79(-0x96,0x73,_0x42d54a._0x27655b,0x117));for await(const _0x32a244 of iterateSseEvents(_0x507a09,_0x52ef5f)){const _0x41de92=_0xa3d10e[_0x242214(-0x30c,-_0x42d54a._0x273a9c,-0x207,-0x183)](_0x32a244);for(const _0x4b7760 of _0x41de92){_0x302bb2=!![],yield _0x4b7760;}}if(_0xa3d10e[_0x3bfb79(-0xe,-_0x42d54a._0x12b8ad,-0x67,-_0x42d54a._0xd52eac)]?.()===![])throw new ProviderStreamEventError(_0x242214(-0xca,-_0x42d54a._0xaa944d,-_0x42d54a._0x471d5b,-_0x42d54a._0x3139a9)+_0x2f83eb['id']+_0x3bfb79(_0x42d54a._0x328c4,_0x42d54a._0x3a64b6,_0x42d54a._0x2d56e6,0x52),{'retryable':!![]});yield{'type':_0x242214(-0x17f,-_0x42d54a._0x2bf90f,-0x1fe,-0x1b6),'response':_0xa3d10e[_0x242214(-_0x42d54a._0x26c1e3,-0x21c,-_0x42d54a._0x19203b,-0x2dd)]()};return;}catch(_0x39b148){const _0x2f2fcd=this[_0x242214(-_0x42d54a._0x370338,-_0x42d54a._0x17a779,-0x221,-0xf0)](_0x39b148);if(!_0x2f2fcd)throw _0x39b148;_0x302bb2&&(yield{'type':_0x242214(-_0x42d54a._0x35872e,-_0x42d54a._0x4b7afc,-0x1c4,-0x28f)});if(_0x1ecf6e===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x39b148;const _0xbb22e7=this['getRetryDelayMs'](void 0x0,_0x1ecf6e),_0x3719cc={'type':'provider_retry','attempt':_0x1ecf6e+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x39b148 instanceof Error?_0x39b148[_0x3bfb79(0x90,0x9a,_0x42d54a._0x2603b5,_0x42d54a._0xbcb0c2)]:String(_0x39b148),'delayMs':_0xbb22e7,'reason':this[_0x242214(_0x42d54a._0x229f32,-0xfb,-0xe4,-_0x42d54a._0x326923)](_0x39b148)?_0x3bfb79(0x14b,_0x42d54a._0x51438b,_0x42d54a._0x14aa12,0x175):_0x3bfb79(_0x42d54a._0x4be109,_0x42d54a._0x24c834,-0x4d,-0x9d)};yield _0x3719cc,await this[_0x3bfb79(_0x42d54a._0x2f11d9,_0x42d54a._0x41f78b,_0x42d54a._0x5cc3c7,0x64)](_0xbb22e7,_0x52ef5f);}}}async*[_0x5b3424(-0x236,-0x255,-0x1ce,-0x1a1)](_0x5579ce,_0xf65236,_0x2cdb9a){const _0x82b0aa={_0x6c5cdb:0x2d7,_0x6caa5a:0x18b,_0x2ac1db:0x37a,_0x344d0d:0x29d,_0x342326:0x18e,_0x5894e8:0x235,_0x296429:0x31e,_0x9202da:0x30c,_0x884aee:0x382,_0x298c69:0x45b,_0x24cdad:0x51e,_0x4c1067:0x565,_0x4ae0fa:0x581,_0x5847b1:0x592,_0x2119a0:0x4fd,_0x5345f4:0x4ca,_0x143057:0x47d,_0x46b117:0x4a6,_0x2cb6ef:0x3bc,_0x240126:0x259,_0x42352e:0x348,_0x96e139:0x413,_0x155239:0x3f6,_0x365008:0x282,_0x5eef32:0x266,_0x3c7142:0x341,_0x59d73f:0x3b1,_0x430b9b:0x476,_0x1d52c8:0x2f5,_0x4ebf7c:0x3e7,_0x25e9a7:0x3a6,_0x88fac3:0x34b,_0x23a06c:0x36f,_0x3a6a66:0x44c,_0x1bde84:0x408,_0x5ea22a:0x507,_0x88986:0x487,_0x2a5500:0x3ba,_0x3a5f11:0x239,_0x3d7961:0x1ae,_0x23bb7f:0x107,_0x31057c:0x1ce,_0x15e339:0x2c8,_0x15179c:0x170,_0xc66fbe:0x1e1,_0x1b03fd:0x277,_0x3ba493:0x17a,_0x2a5b10:0x233,_0x4243da:0x2b9,_0xcad439:0x1ee,_0x313e70:0x285,_0x45d031:0x31f,_0x322af1:0x3fa,_0x5ce1ba:0x4e4,_0x273a4f:0x4bb,_0x454bbe:0x357,_0x5e5d07:0x3c8,_0x4aa1f6:0x3bd,_0x5a6498:0x2eb,_0x226d69:0x203,_0x26e342:0x34d,_0x5f4b2e:0x18c,_0x250684:0x28f,_0x31a039:0x466,_0x4c6eed:0x589,_0x1a456b:0x42e,_0x2842b4:0x268,_0x5127de:0x322,_0x44679e:0x218,_0x28582e:0x2f3,_0x38a801:0x374,_0x1b48fb:0x118,_0x3b19be:0xed,_0x15dc85:0x376,_0x1fce5c:0x3a2,_0x4c0469:0x221,_0x3a4066:0x31c,_0x781a88:0x2ef,_0x4487a1:0x264,_0x4e6168:0x27a,_0x1a559b:0x354,_0x5b6644:0x25d,_0x46b0fb:0x357,_0x388837:0x3fd,_0x550c73:0x431,_0x338b82:0x442,_0x4eed54:0x3cc},_0x32ca6a={_0x4bbef4:0x662},_0x174c9a={_0x25e6e8:0x49d,_0x537c25:0x8a},_0x3da217=await this['prepareChatRequest'](_0x5579ce,_0x2cdb9a),_0x4298d6=_0xf65236[_0x12169f(0x413,0x3a7,0x480,0x4b5)](_0x3da217[_0x351ad2(_0x82b0aa._0x6c5cdb,_0x82b0aa._0x6caa5a,0x288,0x1e1)]),_0x519152=_0xf65236[_0x12169f(0x437,0x369,_0x82b0aa._0x2ac1db,0x4ad)]?.(_0x5579ce);if(!_0x519152?.[_0x351ad2(0x13e,_0x82b0aa._0x344d0d,_0x82b0aa._0x342326,_0x82b0aa._0x5894e8)])throw new Error(_0x351ad2(_0x82b0aa._0x296429,_0x82b0aa._0x9202da,0x19c,0x28f)+_0xf65236['id']+_0x351ad2(0x27e,0x29a,0x246,0x25a));const _0x2f02eb=_0x4298d6['url']??(_0x4298d6[_0x351ad2(0x236,0x2d9,_0x82b0aa._0x884aee,0x2ec)]?(''+_0x3da217[_0x12169f(_0x82b0aa._0x298c69,_0x82b0aa._0x24cdad,_0x82b0aa._0x4c1067,0x395)]+_0x4298d6[_0x351ad2(0x284,0x276,0x2d6,0x2ec)])[_0x12169f(_0x82b0aa._0x4ae0fa,0x601,_0x82b0aa._0x5847b1,0x48a)](/^http:/,_0x12169f(0x4ee,_0x82b0aa._0x2119a0,_0x82b0aa._0x5345f4,_0x82b0aa._0x143057))[_0x351ad2(0x3e1,0x460,_0x82b0aa._0x46b117,_0x82b0aa._0x2cb6ef)](/^https:/,_0x351ad2(0x250,0x380,_0x82b0aa._0x240126,_0x82b0aa._0x42352e)):void 0x0);function _0x351ad2(_0x4f030c,_0x5081f2,_0x46544f,_0x1c9e22){return _0x5b3424(_0x4f030c-0x12b,_0x1c9e22-_0x174c9a._0x25e6e8,_0x46544f-_0x174c9a._0x537c25,_0x4f030c);}if(!_0x2f02eb)throw new ProviderRequestConstructionError(_0x12169f(0x454,_0x82b0aa._0x96e139,_0x82b0aa._0x155239,0x4f0)+_0xf65236['id']+_0x351ad2(_0x82b0aa._0x365008,_0x82b0aa._0x5eef32,_0x82b0aa._0x3c7142,0x2a5));const _0x447e06=await this[_0x351ad2(_0x82b0aa._0x59d73f,_0x82b0aa._0x430b9b,_0x82b0aa._0x1d52c8,_0x82b0aa._0x4ebf7c)]({'request':_0x3da217[_0x12169f(_0x82b0aa._0x25e9a7,_0x82b0aa._0x88fac3,0x4af,0x3ee)],'body':_0x4298d6[_0x351ad2(0x28e,_0x82b0aa._0x23a06c,0x2a9,0x31f)],'credential':_0x3da217[_0x12169f(0x3e0,_0x82b0aa._0x3a6a66,_0x82b0aa._0x1bde84,0x3b5)],'session':_0x3da217['session'],'stream':!![]},{'accept':_0x4298d6[_0x12169f(_0x82b0aa._0x5ea22a,0x4d0,0x508,0x5c5)]??_0x12169f(_0x82b0aa._0x88986,0x420,0x3b1,_0x82b0aa._0x2a5500),'includeContentType':![]});for(const [_0x5a554a,_0xf0021d]of Object[_0x351ad2(_0x82b0aa._0x3a5f11,_0x82b0aa._0x3d7961,_0x82b0aa._0x23bb7f,_0x82b0aa._0x31057c)](_0x4298d6['headers']??{})){_0x447e06['set'](_0x5a554a,_0xf0021d);}_0x447e06['delete']('accept');function _0x12169f(_0x4eb206,_0x44c62f,_0x13463a,_0x2745b0){return _0x5b3424(_0x4eb206-0x16,_0x4eb206-_0x32ca6a._0x4bbef4,_0x13463a-0x172,_0x2745b0);}const _0x1b1a08=this[_0x351ad2(0x163,0x2c9,0x262,0x228)]({'headers':Object[_0x12169f(0x4e9,0x41d,0x4a2,0x5e2)](_0x447e06['entries']()),'url':_0x2f02eb});try{throwIfAborted(_0x2cdb9a);_0x1b1a08[_0x351ad2(_0x82b0aa._0x15e339,_0x82b0aa._0x15179c,_0x82b0aa._0xc66fbe,_0x82b0aa._0x1b03fd)]!==WebSocket[_0x351ad2(_0x82b0aa._0x3ba493,_0x82b0aa._0x2a5b10,_0x82b0aa._0x4243da,_0x82b0aa._0xcad439)]&&await waitForWebSocketOpen(_0x1b1a08,_0x2cdb9a);throwIfAborted(_0x2cdb9a);_0x4298d6[_0x351ad2(0x2ce,0x30a,_0x82b0aa._0x313e70,_0x82b0aa._0x45d031)]!==void 0x0&&_0x1b1a08['send'](JSON['stringify'](_0x4298d6[_0x351ad2(0x2fa,0x259,0x249,_0x82b0aa._0x45d031)]));for await(const _0x57c2f9 of iterateWebSocketMessages(_0x1b1a08,_0x2cdb9a)){yield*_0x519152[_0x12169f(_0x82b0aa._0x322af1,_0x82b0aa._0x5ce1ba,_0x82b0aa._0x273a4f,_0x82b0aa._0x454bbe)](_0x57c2f9);if(_0x519152[_0x12169f(_0x82b0aa._0x5e5d07,_0x82b0aa._0x4aa1f6,0x3a1,_0x82b0aa._0x5a6498)]?.())break;}if(_0x519152[_0x351ad2(0x2b1,0x261,0x2c5,_0x82b0aa._0x226d69)]?.()===![])throw new ProviderStreamEventError(_0x351ad2(0x223,_0x82b0aa._0x26e342,_0x82b0aa._0x5f4b2e,_0x82b0aa._0x250684)+_0xf65236['id']+_0x12169f(0x4aa,_0x82b0aa._0x31a039,_0x82b0aa._0x4c6eed,_0x82b0aa._0x1a456b),{'retryable':!![]});yield{'type':'done','response':_0x519152[_0x351ad2(_0x82b0aa._0x2842b4,0x225,_0x82b0aa._0x5127de,_0x82b0aa._0x44679e)]()};}finally{_0x1b1a08[_0x351ad2(0x1bc,_0x82b0aa._0x28582e,_0x82b0aa._0x38a801,_0x82b0aa._0x1b03fd)]===WebSocket[_0x351ad2(_0x82b0aa._0x1b48fb,_0x82b0aa._0x3b19be,_0x82b0aa._0x3a5f11,_0x82b0aa._0xcad439)]&&_0x1b1a08[_0x351ad2(_0x82b0aa._0x15dc85,_0x82b0aa._0x1fce5c,_0x82b0aa._0x4c0469,_0x82b0aa._0x3a4066)](0x3e8,_0x2cdb9a?.[_0x351ad2(_0x82b0aa._0x781a88,_0x82b0aa._0x4487a1,_0x82b0aa._0x4e6168,_0x82b0aa._0x454bbe)]?_0x351ad2(_0x82b0aa._0x1a559b,0x2d4,_0x82b0aa._0x5b6644,_0x82b0aa._0x46b0fb):_0x12169f(_0x82b0aa._0x388837,_0x82b0aa._0x550c73,_0x82b0aa._0x338b82,_0x82b0aa._0x4eed54));}}};async function createHttpError(_0x17e56a){const _0x4f45df={_0x5f11af:0x167,_0x1df906:0x368,_0x51e5de:0x28e,_0x5d0c1d:0x1f0,_0x2c9c3b:0x22c,_0x496870:0x2b7,_0x1a6538:0x229,_0x94f60d:0x298},_0x22b190={_0x4642ad:0x237,_0x27bef2:0x1d},_0x4afe48={_0x5804b6:0xc8,_0x46f090:0x470,_0x29ca61:0x1ae},_0xfd0fb4=await _0x17e56a[_0x2f8b9d(0x214,_0x4f45df._0x5f11af,_0x4f45df._0x1df906,0x266)]();function _0x2f8b9d(_0xfd11f1,_0x34486a,_0x2d452d,_0x2acc6f){return _0x5b3424(_0xfd11f1-_0x4afe48._0x5804b6,_0x2acc6f-_0x4afe48._0x46f090,_0x2d452d-_0x4afe48._0x29ca61,_0x34486a);}function _0x1f40dd(_0x4ac6b7,_0x2e5aa6,_0x44e951,_0x231dd9){return _0x3dbb2c(_0x4ac6b7-0x117,_0x4ac6b7- -_0x22b190._0x4642ad,_0x44e951-_0x22b190._0x27bef2,_0x231dd9);}const _0x308dbe=_0xfd0fb4[_0x2f8b9d(0x14c,_0x4f45df._0x51e5de,0x20f,0x1b6)]()||_0x17e56a['statusText']||_0x1f40dd(-0x12c,-_0x4f45df._0x5d0c1d,-_0x4f45df._0x2c9c3b,-0x1cc);return new Error(_0x2f8b9d(0x2c2,0x251,0x1ea,_0x4f45df._0x496870)+_0x17e56a[_0x2f8b9d(0x1e9,_0x4f45df._0x1a6538,_0x4f45df._0x94f60d,0x1e4)]+':\x20'+_0x308dbe);}var AnthropicProviderAdapter=class{[_0x3dbb2c(0x213,0x215,0x14b,0x315)];[_0x5b3424(-0x21e,-0x2c5,-0x296,-0x284)];[_0x5b3424(-0x133,-0x13c,-0xd7,-0x199)];constructor(_0x4ddf12){const _0x338a61={_0x713db1:0x139,_0x110ec3:0x89,_0x2f237e:0x5d,_0x5a7fb0:0x2c,_0x1fc766:0x131,_0x5d579a:0x121,_0xdf33e1:0x7b,_0x522d83:0x2bc,_0x2f324e:0x14b},_0x4757e6={_0xed3cc:0x24a},_0x427c7e={_0x392119:0x1b};function _0xe854e5(_0x24316b,_0x5e554f,_0x41efdd,_0x465a03){return _0x5b3424(_0x24316b-0x1c7,_0x24316b-0x9,_0x41efdd-_0x427c7e._0x392119,_0x465a03);}this[_0x5b1c0a(_0x338a61._0x713db1,0x73,-0x76,_0x338a61._0x110ec3)]=_0x4ddf12[_0x5b1c0a(0x14c,-0x58,-_0x338a61._0x2f237e,0x89)];function _0x5b1c0a(_0x189fc6,_0xf6c41d,_0x1b209b,_0x369d8a){return _0x5b3424(_0x189fc6-0x64,_0x369d8a-_0x4757e6._0xed3cc,_0x1b209b-0xae,_0x1b209b);}this[_0x5b1c0a(-_0x338a61._0x5a7fb0,-_0x338a61._0x1fc766,-_0x338a61._0x5d579a,-_0x338a61._0xdf33e1)]=_0x4ddf12[_0xe854e5(-_0x338a61._0x522d83,-0x299,-0x350,-0x320)],this[_0xe854e5(-0x133,-0xff,-_0x338a61._0x2f324e,-0x23e)]=_0x4ddf12['protocolVersion'];}[_0x3dbb2c(0x204,0x117,0x20e,0x1dd)](){const _0x729a66={_0x468206:0x208,_0x20a96e:0x256,_0x32ff64:0x2d1},_0x5953af={_0x2f0518:0x1da,_0x16156d:0x1f};function _0xa96290(_0x4e4b0d,_0x3a3055,_0x21168a,_0x4bdc8c){return _0x5b3424(_0x4e4b0d-_0x5953af._0x2f0518,_0x4e4b0d- -_0x5953af._0x16156d,_0x21168a-0x13,_0x4bdc8c);}return new Error(_0xa96290(-_0x729a66._0x468206,-0x200,-_0x729a66._0x20a96e,-_0x729a66._0x32ff64));}async[_0x3dbb2c(0x231,0x320,0x247,0x378)](_0x239786,_0x4d66ea){const _0x5af7e0={_0x3ef2bf:0x299,_0x22cf0d:0x2c2,_0x3d05bc:0x233,_0x2016b2:0x153,_0x42b14b:0x1c2,_0x4f32d6:0x25d,_0x4ceb98:0x118,_0xb83013:0x283,_0x2f9ae0:0x262,_0x1c558a:0x35b,_0x43a4e5:0x204,_0xc5356c:0x106,_0x186beb:0x33f,_0x10d01e:0x2dc,_0x57f3af:0x232,_0x32dbdc:0x386,_0x6e19e9:0x2e0,_0x68e0e5:0x273,_0x2ba719:0x1b2,_0x5793a2:0x155,_0x1b4fab:0x1e0,_0x362e69:0x223,_0x46c8e5:0xfb,_0x3b46a2:0x213,_0x545be2:0x268,_0x58020d:0x2d1,_0x24c253:0x1f4,_0x287ceb:0x1ea,_0x3ae174:0x26d,_0x3e1221:0x2a9,_0x3e8530:0x1ba,_0x3cc11e:0x164,_0x22e64f:0x2ae,_0x47eb5d:0x137,_0x4ee162:0x11c,_0x1c8124:0x21b,_0x17654f:0x252,_0x4ff986:0x215,_0x10e68a:0x285,_0x2f275c:0x1b8,_0x27dafb:0x141,_0x4d8e11:0x48,_0x5c3394:0x1bd,_0x15618b:0x44,_0x3cbba2:0x31b},_0x1e447a={_0x3c6c91:0x98};function _0x22577a(_0x27efb3,_0x54b3eb,_0x326876,_0x1c90e2){return _0x5b3424(_0x27efb3-0x18a,_0x326876-0x39e,_0x326876-0x68,_0x27efb3);}const _0x1d58d6=new Headers();_0x1d58d6[_0x2f15e8(_0x5af7e0._0x3ef2bf,0x2f5,_0x5af7e0._0x22cf0d,0x2bc)](_0x22577a(0x245,0x150,0x243,_0x5af7e0._0x3d05bc),_0x4d66ea['accept']),_0x1d58d6[_0x22577a(0x204,_0x5af7e0._0x2016b2,_0x5af7e0._0x42b14b,0xec)](_0x22577a(_0x5af7e0._0x4f32d6,_0x5af7e0._0x4ceb98,0x20e,_0x5af7e0._0xb83013),this[_0x22577a(0x1da,0x329,_0x5af7e0._0x2f9ae0,_0x5af7e0._0x1c558a)]);_0x4d66ea[_0x22577a(0x192,0x2a1,_0x5af7e0._0x43a4e5,_0x5af7e0._0xc5356c)]!==![]&&_0x1d58d6['set'](_0x2f15e8(_0x5af7e0._0x186beb,0x329,_0x5af7e0._0x10d01e,0x35e),_0x2f15e8(_0x5af7e0._0x57f3af,0x2f6,_0x5af7e0._0x32dbdc,0x3b2));this['authScheme']==='bearer'?_0x1d58d6[_0x22577a(0x1d0,0xed,0x1c2,0x147)](_0x2f15e8(_0x5af7e0._0x6e19e9,0x35a,_0x5af7e0._0x68e0e5,0x42e),_0x22577a(0x50,_0x5af7e0._0x2ba719,_0x5af7e0._0x5793a2,0xa8)+_0x239786[_0x22577a(_0x5af7e0._0x1b4fab,0x1f2,0x11c,0x149)]['value']):_0x1d58d6[_0x22577a(_0x5af7e0._0x362e69,_0x5af7e0._0x46c8e5,0x1c2,0x240)](_0x2f15e8(0x1fc,_0x5af7e0._0x3b46a2,_0x5af7e0._0x545be2,_0x5af7e0._0x58020d),_0x239786[_0x2f15e8(_0x5af7e0._0x24c253,0x24f,_0x5af7e0._0x287ceb,_0x5af7e0._0x3ae174)][_0x22577a(_0x5af7e0._0x3e1221,0x30c,0x27f,_0x5af7e0._0x3e8530)]);const _0x52f939=await this[_0x22577a(0x132,_0x5af7e0._0x3cc11e,0xd9,0x4c)]?.({'body':_0x239786[_0x2f15e8(_0x5af7e0._0x22e64f,0x2cf,0x2bc,0x276)],'credential':_0x239786[_0x22577a(0x115,_0x5af7e0._0x47eb5d,_0x5af7e0._0x4ee162,_0x5af7e0._0x1c8124)],'request':_0x239786[_0x2f15e8(_0x5af7e0._0x17654f,_0x5af7e0._0x4ff986,0x214,_0x5af7e0._0x10e68a)],'session':_0x239786['session'],'stream':_0x239786[_0x22577a(_0x5af7e0._0x2f275c,0x1c6,0x125,_0x5af7e0._0x27dafb)]});function _0x2f15e8(_0x40dd79,_0x31b19a,_0x28b183,_0x38af74){return _0x3dbb2c(_0x40dd79-_0x1e447a._0x3c6c91,_0x31b19a-0xfb,_0x28b183-0x48,_0x38af74);}for(const [_0xfc4f61,_0x253a88]of Object[_0x22577a(_0x5af7e0._0x4d8e11,_0x5af7e0._0x5c3394,0xcf,_0x5af7e0._0x15618b)](_0x52f939??{})){_0x1d58d6[_0x2f15e8(0x294,0x2f5,_0x5af7e0._0x3cbba2,0x339)](_0xfc4f61,_0x253a88);}return _0x1d58d6;}['mapApiError'](_0x1d4b7c){return _0x1d4b7c;}[_0x3dbb2c(0xdd,0x1b5,0x256,0x126)](_0xb13ccc,_0x347ecd){return resolveSessionBaseUrl(_0xb13ccc,_0x347ecd);}[_0x3dbb2c(0x1d7,0x186,0xe6,0x171)](_0x290c78,_0x1e5cfb){return resolveApiCredential(_0x290c78,_0x1e5cfb);}async['toApiError'](_0xf83ced){return await createHttpError(_0xf83ced);}},AnthropicModel=class extends RoutedModel{constructor(_0x31e938={}){const _0x4ceec3={_0x4d6bff:0x157,_0x1a5a78:0x2bd,_0xb39a86:0x294,_0x98f181:0x256,_0x3c90ef:0x292,_0x678954:0x1ef,_0x52b837:0x359,_0x2ba41c:0x41c,_0x4d4bc0:0x281,_0x4ef80a:0x2a4,_0x111e03:0x210,_0x339276:0x330,_0x5f0027:0x339,_0x310fbc:0x303,_0x2a333a:0x237,_0x10301d:0x2cd,_0x5b245c:0x296,_0x3ade5c:0x271,_0x40ec19:0x369,_0x279fad:0x352,_0x50c318:0xd3,_0x5e62c3:0x191,_0x16dc82:0x129,_0x528141:0x268,_0x485fbf:0x2e5,_0x74c941:0x1fc,_0xd36711:0x35f,_0x43880d:0x2a7,_0x68fc21:0x1c5},_0x32d68c={_0x2de6c1:0x40,_0x591e3a:0x477},_0x2cb657={_0x39a9c7:0x66};function _0x242791(_0x3d4426,_0x5e6555,_0x50e013,_0x2fe15f){return _0x5b3424(_0x3d4426-0xe4,_0x2fe15f- -_0x2cb657._0x39a9c7,_0x50e013-0x27,_0x50e013);}function _0x26dd62(_0x2d1bab,_0x31851e,_0x1352aa,_0x54974d){return _0x5b3424(_0x2d1bab-_0x32d68c._0x2de6c1,_0x2d1bab-_0x32d68c._0x591e3a,_0x1352aa-0x1db,_0x31851e);}super({'apiKey':_0x31e938[_0x242791(-_0x4ceec3._0x4d6bff,-_0x4ceec3._0x1a5a78,-_0x4ceec3._0xb39a86,-_0x4ceec3._0x98f181)],'baseUrl':trimTrailingSlashes(_0x31e938['baseUrl']??_0x242791(-_0x4ceec3._0x3c90ef,-0x373,-0x2d6,-0x2e0)),'fetch':_0x31e938[_0x242791(-0x109,-0xf5,-0x1da,-_0x4ceec3._0x678954)],..._0x31e938[_0x26dd62(0x384,_0x4ceec3._0x52b837,_0x4ceec3._0x2ba41c,0x364)]!==void 0x0?{'maxTokens':_0x31e938[_0x26dd62(0x384,0x3af,0x422,_0x4ceec3._0x4d4bc0)]}:{},'model':_0x31e938[_0x26dd62(_0x4ceec3._0x4ef80a,_0x4ceec3._0x111e03,0x1d1,_0x4ceec3._0x339276)]??_0x242791(-_0x4ceec3._0x5f0027,-0x2d4,-0x23d,-_0x4ceec3._0x310fbc),'modelIdentity':_0x31e938[_0x242791(-_0x4ceec3._0x2a333a,-_0x4ceec3._0x10301d,-_0x4ceec3._0x5b245c,-0x26a)],..._0x31e938[_0x242791(-0x2f2,-0x1ed,-0x372,-0x26b)]!==void 0x0?{'pricingProviderId':_0x31e938['pricingProviderId']}:{},'reasoning':_0x31e938['reasoning'],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x31e938[_0x26dd62(0x2b6,_0x4ceec3._0x3ade5c,_0x4ceec3._0x40ec19,0x32c)]??_0x242791(-0x3c4,-0x38f,-_0x4ceec3._0x279fad,-0x324),'headerResolver':_0x31e938[_0x26dd62(0x1b2,_0x4ceec3._0x50c318,_0x4ceec3._0x5e62c3,_0x4ceec3._0x16dc82)],'protocolVersion':_0x31e938['protocolVersion']??'2023-06-01'}),'providerSessionResolver':_0x31e938[_0x26dd62(_0x4ceec3._0x528141,_0x4ceec3._0x485fbf,_0x4ceec3._0x74c941,_0x4ceec3._0xd36711)],'requestMutators':_0x31e938[_0x242791(-_0x4ceec3._0x43880d,-0x1d1,-0x269,-_0x4ceec3._0x68fc21)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}['complete'](_0xe518b2,_0x5b6206){const _0x5ab960={_0x14fdb8:0x265,_0x512caa:0xc7,_0x403e92:0x196},_0x520a26={_0x5ab254:0x1b5};function _0x42fe9b(_0x12ad31,_0x4aa56e,_0x5c177f,_0x53335a){return _0x5b3424(_0x12ad31-0xe6,_0x53335a- -0x6b,_0x5c177f-_0x520a26._0x5ab254,_0x5c177f);}return this[_0x42fe9b(-_0x5ab960._0x14fdb8,-_0x5ab960._0x512caa,-0xd8,-_0x5ab960._0x403e92)](_0xe518b2,ANTHROPIC_MESSAGES_SURFACE,_0x5b6206);}[_0x3dbb2c(0x17d,0x15d,0x163,0x240)](_0x2a9f6e,_0x270896){const _0x532f54={_0x3eab48:0x4ea,_0x414fe2:0x487,_0x86cb96:0x496,_0x55d7ba:0x3dc};function _0x33b449(_0x144fb5,_0x219e99,_0x1bce2a,_0x4637e8){return _0x3dbb2c(_0x144fb5-0x166,_0x219e99-0x199,_0x1bce2a-0x147,_0x144fb5);}return this[_0x33b449(_0x532f54._0x3eab48,_0x532f54._0x414fe2,_0x532f54._0x86cb96,_0x532f54._0x55d7ba)](_0x2a9f6e,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x270896);}},model_registry_default={'defaultModel':_0x3dbb2c(0x1e3,0x1b3,0x168,0x200),'cliDefaultModel':_0x5b3424(-0x1c5,-0x29c,-0x191,-0x203),'providers':{'anthropic':{'label':_0x5b3424(-0xd8,-0x1b7,-0x245,-0x225),'baseUrl':_0x3dbb2c(0x127,0x15c,0xed,0x104),'surface':_0x3dbb2c(0x8d,0x12f,0x1be,0xb6),'authScheme':'x-api-key','defaultModel':'claude-sonnet-4-20250514','defaultModels':['claude-sonnet-4-20250514','claude-3-5-sonnet-20241022'],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000},'claude-fable-5':{'reasoning':{'defaultOption':_0x5b3424(-0x1c3,-0x18f,-0x11e,-0x153),'canDisable':![],'options':[{'id':_0x5b3424(-0x25b,-0x18f,-0x283,-0x1c5),'mode':_0x5b3424(-0x1e5,-0x18f,-0x12e,-0x1fa)},{'id':'low','mode':_0x5b3424(-0x239,-0x18f,-0xe9,-0x177),'effort':'low'},{'id':_0x5b3424(-0x1dc,-0xf5,-0x119,-0xf0),'mode':_0x3dbb2c(0x2be,0x247,0x31b,0x14a),'effort':_0x5b3424(-0x21,-0xf5,0x14,0x10)},{'id':'high','mode':_0x5b3424(-0xd7,-0x18f,-0x101,-0x1bc),'effort':_0x3dbb2c(0x3b4,0x31d,0x347,0x258)},{'id':'xhigh','mode':'adaptive','effort':_0x5b3424(-0x340,-0x241,-0x25a,-0x19d)},{'id':_0x3dbb2c(0xf4,0x120,0xc8,0xfc),'mode':_0x5b3424(-0x219,-0x18f,-0xa9,-0x155),'effort':_0x5b3424(-0x346,-0x2b6,-0x3a6,-0x1da)}]}},'claude-mythos-5':{'reasoning':{'defaultOption':_0x5b3424(-0x1f8,-0x18f,-0x17e,-0x1d1),'canDisable':![],'options':[{'id':'adaptive','mode':_0x3dbb2c(0x271,0x247,0x254,0x346)},{'id':_0x5b3424(-0x1e0,-0x22d,-0x1f2,-0x2bb),'mode':_0x5b3424(-0x1cd,-0x18f,-0x292,-0x1c2),'effort':_0x5b3424(-0x28c,-0x22d,-0x208,-0x1bf)},{'id':_0x5b3424(-0x9d,-0xf5,-0x181,-0x55),'mode':_0x3dbb2c(0x201,0x247,0x153,0x209),'effort':_0x3dbb2c(0x285,0x2e1,0x359,0x33a)},{'id':_0x3dbb2c(0x2e0,0x31d,0x2b1,0x301),'mode':_0x5b3424(-0x213,-0x18f,-0x113,-0x10f),'effort':_0x5b3424(-0x66,-0xb9,0x3f,-0xf2)},{'id':_0x5b3424(-0x26a,-0x241,-0x1bd,-0x270),'mode':_0x5b3424(-0x218,-0x18f,-0x188,-0xc5),'effort':_0x3dbb2c(0x1dd,0x195,0x162,0x116)},{'id':_0x3dbb2c(0x72,0x120,0x9a,0x1ae),'mode':_0x3dbb2c(0x197,0x247,0x2fb,0x184),'effort':_0x5b3424(-0x262,-0x2b6,-0x37a,-0x22d)}]}},'claude-opus-4-8':{'reasoning':{'defaultOption':_0x5b3424(-0x4,-0xe0,-0x10e,-0x1e8),'canDisable':!![],'options':[{'id':_0x3dbb2c(0x24d,0x247,0x348,0x26c),'mode':'adaptive'},{'id':_0x5b3424(-0x165,-0x22d,-0x171,-0x1aa),'mode':_0x5b3424(-0xef,-0x18f,-0x224,-0x1ab),'effort':'low'},{'id':_0x5b3424(-0x1d2,-0xf5,0x0,0x17),'mode':_0x3dbb2c(0x2f1,0x247,0x271,0x269),'effort':_0x5b3424(-0xa7,-0xf5,-0x44,-0xb8)},{'id':_0x5b3424(-0x1b1,-0xb9,0x2f,0x1),'mode':_0x5b3424(-0xd6,-0x18f,-0x1ab,-0x277),'effort':_0x3dbb2c(0x2d1,0x31d,0x415,0x356)},{'id':_0x5b3424(-0x2cc,-0x241,-0x25d,-0x29b),'mode':_0x5b3424(-0x25a,-0x18f,-0x1bf,-0x87),'effort':_0x3dbb2c(0x210,0x195,0x1f5,0x237)},{'id':_0x3dbb2c(0x65,0x120,0x13d,0x21e),'mode':'adaptive','effort':_0x5b3424(-0x1f0,-0x2b6,-0x228,-0x1b1)}]}},'claude-opus-4-7':{'reasoning':{'defaultOption':_0x5b3424(-0x3e,-0xe0,-0x7b,-0x13b),'canDisable':!![],'options':[{'id':_0x3dbb2c(0x30d,0x247,0x251,0x2a9),'mode':_0x3dbb2c(0x20b,0x247,0x218,0x2c9)},{'id':_0x5b3424(-0x1a0,-0x22d,-0x2db,-0x31d),'mode':_0x5b3424(-0x298,-0x18f,-0x231,-0x115),'effort':'low'},{'id':_0x5b3424(-0x1a7,-0xf5,0x5,-0x146),'mode':_0x5b3424(-0x287,-0x18f,-0x135,-0xf0),'effort':_0x3dbb2c(0x262,0x2e1,0x255,0x21b)},{'id':_0x5b3424(-0x10c,-0xb9,-0x129,-0xe),'mode':_0x5b3424(-0x293,-0x18f,-0x1c2,-0x298),'effort':_0x3dbb2c(0x2c0,0x31d,0x210,0x346)},{'id':_0x5b3424(-0x232,-0x241,-0x2ba,-0x34f),'mode':_0x3dbb2c(0x205,0x247,0x2b8,0x2e8),'effort':'xhigh'},{'id':_0x3dbb2c(0x20d,0x120,0x1f8,0xc7),'mode':_0x5b3424(-0x264,-0x18f,-0xfc,-0x17d),'effort':_0x3dbb2c(0x18e,0x120,0xdf,0x10b)}]}},'claude-opus-4-6':{'reasoning':{'defaultOption':_0x3dbb2c(0x2f6,0x2f6,0x35d,0x36d),'canDisable':!![],'options':[{'id':'adaptive','mode':_0x3dbb2c(0x19a,0x247,0x1ff,0x23f)},{'id':_0x3dbb2c(0x108,0x1a9,0xc5,0xd6),'mode':_0x5b3424(-0xdd,-0x18f,-0xdb,-0x1fd),'effort':_0x3dbb2c(0xdd,0x1a9,0x257,0xb9)},{'id':_0x3dbb2c(0x1e4,0x2e1,0x1dd,0x22e),'mode':'adaptive','effort':_0x5b3424(-0x1bd,-0xf5,-0x11d,-0x28)},{'id':_0x5b3424(-0x164,-0xb9,-0x191,-0x27),'mode':_0x3dbb2c(0x26a,0x247,0x21b,0x29e),'effort':_0x5b3424(-0xbd,-0xb9,0x31,-0x40)},{'id':_0x5b3424(-0x362,-0x2b6,-0x36c,-0x263),'mode':_0x3dbb2c(0x2f3,0x247,0x1c0,0x334),'effort':_0x3dbb2c(0x170,0x120,0x17b,0x25)}]}},'claude-sonnet-5':{'reasoning':{'defaultOption':_0x3dbb2c(0x23a,0x247,0x17b,0x141),'canDisable':!![],'options':[{'id':_0x5b3424(-0x202,-0x18f,-0x1cf,-0x14c),'mode':_0x3dbb2c(0x14d,0x247,0x223,0x33c)},{'id':_0x5b3424(-0x337,-0x22d,-0x225,-0x140),'mode':'adaptive','effort':_0x5b3424(-0x274,-0x22d,-0x1dc,-0x21a)},{'id':_0x3dbb2c(0x334,0x2e1,0x34f,0x270),'mode':_0x5b3424(-0x156,-0x18f,-0x287,-0x188),'effort':_0x3dbb2c(0x26b,0x2e1,0x2ac,0x3ae)},{'id':_0x3dbb2c(0x266,0x31d,0x249,0x284),'mode':_0x3dbb2c(0x320,0x247,0x2ab,0x1f2),'effort':_0x3dbb2c(0x3e1,0x31d,0x234,0x307)},{'id':_0x3dbb2c(0x257,0x195,0x125,0x255),'mode':'adaptive','effort':_0x3dbb2c(0x23f,0x195,0xde,0x20f)},{'id':_0x5b3424(-0x1c2,-0x2b6,-0x30b,-0x2c0),'mode':_0x5b3424(-0x115,-0x18f,-0x275,-0x228),'effort':_0x3dbb2c(0xb3,0x120,0x14b,0xc9)}]}},'claude-sonnet-4-6':{'reasoning':{'defaultOption':_0x5b3424(-0xda,-0xe0,-0x110,-0x10c),'canDisable':!![],'options':[{'id':'adaptive','mode':_0x5b3424(-0xdb,-0x18f,-0x1b5,-0x186)},{'id':_0x3dbb2c(0xca,0x1a9,0x25a,0x261),'mode':_0x3dbb2c(0x1ec,0x247,0x18c,0x2c9),'effort':_0x3dbb2c(0x9c,0x1a9,0x289,0x9d)},{'id':_0x5b3424(-0x12f,-0xf5,-0xa0,-0xf3),'mode':_0x5b3424(-0x1ad,-0x18f,-0xd9,-0xa4),'effort':_0x5b3424(-0x104,-0xf5,-0x1b,-0x57)},{'id':_0x3dbb2c(0x2fd,0x31d,0x29b,0x2ce),'mode':'adaptive','effort':'high'},{'id':_0x3dbb2c(0xfd,0x120,0xf9,0x33),'mode':_0x5b3424(-0x240,-0x18f,-0x24f,-0x19e),'effort':_0x3dbb2c(0x1bf,0x120,0xd1,0x7b)}]}}}},'zai':{'label':_0x5b3424(-0x193,-0x16b,-0x247,-0x177),'baseUrl':_0x3dbb2c(0x1ba,0x121,0x4c,0x209),'anthropicBaseUrl':_0x5b3424(-0x1fc,-0x2a1,-0x19b,-0x213),'surface':_0x5b3424(-0x333,-0x2a7,-0x2a0,-0x2c1),'authScheme':_0x3dbb2c(0x1da,0x1b1,0x29a,0x166),'defaultModel':_0x5b3424(-0x1cf,-0x29c,-0x21b,-0x317),'defaultModels':['glm-5.3-flash',_0x3dbb2c(0x21c,0x2bd,0x386,0x2c4),_0x3dbb2c(0x209,0x182,0x1d0,0xd3),_0x3dbb2c(0x254,0x2c9,0x291,0x28f),_0x3dbb2c(0x84,0x13a,0x21a,0xbb),_0x5b3424(-0x284,-0x26d,-0x1e3,-0x2b0),_0x5b3424(-0x388,-0x2ca,-0x321,-0x1be)],'supportsModelFetch':![],'models':{'glm-5.3-flash':{'contextWindow':0xf4240,'maxOutput':0x20000},'glm-5.3':{'contextWindow':0xf4240,'maxOutput':0x20000},'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}}},'opencode-go':{'label':_0x5b3424(-0x2c3,-0x261,-0x157,-0x224),'baseUrl':_0x5b3424(-0x361,-0x274,-0x379,-0x26e),'modelsBaseUrl':_0x5b3424(-0x370,-0x274,-0x249,-0x180),'surface':'openai-chat-completions','authScheme':_0x5b3424(-0x12a,-0x225,-0x183,-0x18b),'defaultModel':'glm-5.2','defaultModels':[_0x3dbb2c(0x184,0x1ea,0x224,0x148),_0x3dbb2c(0x38c,0x2cc,0x20b,0x2c8),'minimax-m2.5',_0x5b3424(-0x12a,-0x1f3,-0x298,-0x1f3),_0x5b3424(-0xd,-0x106,-0x1db,-0x135),_0x3dbb2c(0x1fc,0x2a6,0x25b,0x276),_0x5b3424(-0x2a2,-0x203,-0x2bd,-0x129),_0x3dbb2c(0x1d7,0x182,0x19f,0x130),_0x3dbb2c(0x1be,0x2c9,0x1d8,0x38a),'glm-5',_0x3dbb2c(0x31a,0x30e,0x2e6,0x2d0),_0x3dbb2c(0xc0,0x16f,0x1ca,0x1a6),_0x3dbb2c(0x1f7,0x2ad,0x2e5,0x369),'qwen3.7-plus','qwen3.6-plus',_0x5b3424(-0x17f,-0x176,-0x22a,-0x20d),'mimo-v2-pro',_0x3dbb2c(0x166,0x17a,0x6f,0x15a),_0x5b3424(-0xed,-0x138,-0x23f,-0x1a7),'mimo-v2.5',_0x5b3424(-0x1be,-0x21c,-0x1d0,-0x31b),'hy3-preview',_0x3dbb2c(0x31f,0x257,0x20a,0x24a)],'supportsModelFetch':!![],'models':{'minimax-m3':{'contextWindow':0xf4240,'maxOutput':0x20000,'surface':_0x5b3424(-0x2f0,-0x2a7,-0x28b,-0x238),'reasoning':{'canDisable':!![],'options':[{'id':_0x5b3424(-0x195,-0x18f,-0xe7,-0x197),'description':_0x3dbb2c(0x14a,0x1c9,0x2ca,0xd8),'mode':_0x3dbb2c(0x2ad,0x247,0x274,0x1a3)}]}},'minimax-m2.7':{'contextWindow':0x32000,'maxOutput':0x20000,'surface':'anthropic-messages'},'minimax-m2.5':{'contextWindow':0x32000,'maxOutput':0x10000,'surface':_0x3dbb2c(0x231,0x12f,0x1ed,0x53)},'kimi-k3':{'contextWindow':0x100000,'maxOutput':0x20000},'kimi-k2.7-code':{'contextWindow':0x40000,'maxOutput':0x40000},'kimi-k2.6':{'contextWindow':0x40000,'maxOutput':0x10000},'kimi-k2.5':{'contextWindow':0x40000,'maxOutput':0x10000},'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x20000},'glm-5.1':{'contextWindow':0x31800,'maxOutput':0x8000},'glm-5':{'contextWindow':0x31800,'maxOutput':0x8000},'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'qwen3.7-max':{'contextWindow':0xf4240,'maxOutput':0x10000,'surface':_0x3dbb2c(0x144,0x12f,0x197,0x11d)},'qwen3.7-plus':{'contextWindow':0xf4240,'maxOutput':0x10000,'surface':_0x3dbb2c(0x122,0x12f,0x1bb,0x4c)},'qwen3.6-plus':{'contextWindow':0xf4240,'maxOutput':0x10000,'surface':_0x3dbb2c(0x20d,0x12f,0x48,0x162)},'qwen3.5-plus':{'contextWindow':0x40000,'maxOutput':0x10000,'surface':_0x5b3424(-0x241,-0x2a7,-0x39e,-0x35e)},'mimo-v2-pro':{'contextWindow':0x100000,'maxOutput':0x1f400},'mimo-v2-omni':{'contextWindow':0x40000,'maxOutput':0x1f400},'mimo-v2.5-pro':{'contextWindow':0x100000,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400},'hy3':{'contextWindow':0x3e800,'maxOutput':0xfa00},'hy3-preview':{},'grok-4.5':{'contextWindow':0x7a120,'maxOutput':0x7a120}}},'openrouter':{'label':'OpenRouter','baseUrl':_0x3dbb2c(0x1b5,0x2ba,0x2d7,0x1c1),'surface':_0x3dbb2c(0x222,0x1bb,0x1c2,0xf2),'authScheme':'bearer','defaultModel':_0x5b3424(-0x159,-0xb5,0x1d,-0x9c),'defaultModels':[_0x5b3424(-0x6,-0xb5,-0x81,0x21),'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':_0x5b3424(-0xf2,-0x1d0,-0x1eb,-0x211),'surface':_0x3dbb2c(0x6d,0x149,0x1ea,0x226),'defaultModel':_0x3dbb2c(0x28c,0x1ee,0x150,0x173),'defaultModels':[_0x5b3424(-0x382,-0x27f,-0x176,-0x382),_0x5b3424(-0x150,-0x108,-0x172,-0x51),_0x3dbb2c(0x100,0x12a,0x22e,0x5f),_0x3dbb2c(0x14e,0x259,0x35d,0x29c),_0x3dbb2c(0x20a,0x2a2,0x2dc,0x2b7),'claude-sonnet-4'],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x5b3424(-0x3b3,-0x2a7,-0x323,-0x289)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x5b3424(-0x341,-0x2a7,-0x25e,-0x3a4)},'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':_0x5b3424(-0x12d,-0x21f,-0x204,-0x16d),'baseUrl':'https://api.x.ai/v1','surface':_0x5b3424(-0x25b,-0x28d,-0x22d,-0x378),'authScheme':_0x5b3424(-0x12c,-0x225,-0x137,-0x1e8),'defaultModel':_0x5b3424(-0x1a0,-0xb7,-0x8e,-0xf5),'defaultModels':[_0x3dbb2c(0x232,0x31f,0x2f2,0x272),_0x3dbb2c(0x1ea,0x11e,0xce,0x41)],'supportsModelFetch':!![],'models':{'grok-4.3':{'contextWindow':0x20000,'maxOutput':0x4000},'grok-build-0.1':{'contextWindow':0x20000,'maxOutput':0x4000}}},'openai':{'label':_0x3dbb2c(0x169,0x1ad,0x1c1,0x119),'baseUrl':'https://api.openai.com/v1','surface':_0x5b3424(-0x18f,-0x21b,-0x2ca,-0x1da),'authScheme':'bearer','defaultModel':'gpt-4o','defaultModels':[],'supportsModelFetch':![],'models':{'gpt-5.6':{'reasoning':{'defaultOption':'medium','canDisable':!![],'options':[{'id':_0x5b3424(-0x23a,-0x22d,-0x238,-0x2d8),'effort':'low'},{'id':_0x3dbb2c(0x378,0x2e1,0x378,0x2c0),'effort':_0x3dbb2c(0x263,0x2e1,0x31c,0x3b0)},{'id':'high','effort':_0x3dbb2c(0x2ee,0x31d,0x379,0x385)},{'id':_0x3dbb2c(0x11c,0x195,0x26c,0x266),'effort':'xhigh'},{'id':_0x3dbb2c(0x165,0x120,0x63,0x1a7),'effort':_0x3dbb2c(0x117,0x120,0x48,0x1bf)}]}},'gpt-5.6-sol':{'reasoning':{'defaultOption':_0x3dbb2c(0x247,0x2e1,0x3bf,0x246),'canDisable':!![],'options':[{'id':_0x5b3424(-0x16b,-0x22d,-0x2cb,-0x138),'effort':_0x3dbb2c(0x131,0x1a9,0x247,0x246)},{'id':_0x3dbb2c(0x227,0x2e1,0x348,0x2d2),'effort':_0x3dbb2c(0x2fb,0x2e1,0x2d2,0x1e0)},{'id':_0x5b3424(-0x105,-0xb9,-0x40,-0xf6),'effort':'high'},{'id':_0x5b3424(-0x17a,-0x241,-0x247,-0x245),'effort':'xhigh'},{'id':_0x5b3424(-0x1ff,-0x2b6,-0x21f,-0x272),'effort':_0x3dbb2c(0x143,0x120,0x128,0x1e7)}]}},'gpt-5.6-terra':{'reasoning':{'defaultOption':_0x5b3424(-0x1a0,-0xf5,-0x150,-0x153),'canDisable':!![],'options':[{'id':'low','effort':_0x3dbb2c(0x205,0x1a9,0x280,0x1fd)},{'id':_0x3dbb2c(0x238,0x2e1,0x331,0x3e8),'effort':_0x3dbb2c(0x2b1,0x2e1,0x1fb,0x226)},{'id':_0x5b3424(-0x56,-0xb9,-0x8c,-0x33),'effort':'high'},{'id':_0x3dbb2c(0x1f2,0x195,0x22f,0x28c),'effort':'xhigh'},{'id':_0x5b3424(-0x350,-0x2b6,-0x347,-0x3a5),'effort':_0x5b3424(-0x332,-0x2b6,-0x1da,-0x33a)}]}},'gpt-5.6-luna':{'reasoning':{'defaultOption':'medium','canDisable':!![],'options':[{'id':_0x3dbb2c(0x13b,0x1a9,0x1b0,0xac),'effort':'low'},{'id':_0x5b3424(-0x143,-0xf5,-0x151,-0x1ff),'effort':_0x3dbb2c(0x308,0x2e1,0x365,0x253)},{'id':_0x5b3424(-0xff,-0xb9,-0x74,0x53),'effort':_0x3dbb2c(0x3bb,0x31d,0x2ac,0x36a)},{'id':_0x5b3424(-0x1a7,-0x241,-0x30a,-0x302),'effort':_0x3dbb2c(0xc7,0x195,0x128,0x9a)},{'id':_0x5b3424(-0x31e,-0x2b6,-0x1c5,-0x336),'effort':'max'}]}},'gpt-5.5':{'reasoning':{'defaultOption':_0x5b3424(-0x1dc,-0xf5,-0x7,-0x1f7),'canDisable':!![],'options':[{'id':_0x5b3424(-0x2ad,-0x22d,-0x173,-0x1bc),'effort':_0x5b3424(-0x20c,-0x22d,-0x323,-0x210)},{'id':_0x5b3424(-0x200,-0xf5,-0xd8,-0xf4),'effort':_0x3dbb2c(0x2a8,0x2e1,0x29b,0x283)},{'id':_0x5b3424(-0x191,-0xb9,-0x39,-0x186),'effort':_0x5b3424(-0xa6,-0xb9,-0x185,-0xb)},{'id':_0x3dbb2c(0x8c,0x195,0x216,0x15a),'effort':_0x5b3424(-0x309,-0x241,-0x2f8,-0x246)}]}},'gpt-5.5-2026-04-23':{'reasoning':{'defaultOption':'medium','canDisable':!![],'options':[{'id':_0x5b3424(-0x161,-0x22d,-0x2d1,-0x2d0),'effort':_0x5b3424(-0x15c,-0x22d,-0x225,-0x222)},{'id':'medium','effort':_0x5b3424(-0x10a,-0xf5,-0x3c,-0x203)},{'id':_0x3dbb2c(0x2ae,0x31d,0x369,0x410),'effort':_0x3dbb2c(0x3e8,0x31d,0x21c,0x213)},{'id':_0x3dbb2c(0x16a,0x195,0x1a2,0x1cb),'effort':_0x5b3424(-0x302,-0x241,-0x265,-0x31c)}]}},'gpt-5.5-pro':{'reasoning':{'defaultOption':_0x3dbb2c(0x3d3,0x31d,0x40f,0x323),'canDisable':![],'options':[{'id':'medium','effort':_0x5b3424(-0x85,-0xf5,0x1,-0x1e4)},{'id':_0x5b3424(-0xba,-0xb9,-0x5d,0x2d),'effort':_0x5b3424(-0x1ae,-0xb9,-0x34,-0x86)},{'id':_0x5b3424(-0x19c,-0x241,-0x1f9,-0x2c9),'effort':'xhigh'}]}},'gpt-5.5-pro-2026-04-23':{'reasoning':{'defaultOption':_0x5b3424(-0x136,-0xb9,-0x150,-0x167),'canDisable':![],'options':[{'id':_0x5b3424(-0x3e,-0xf5,-0x137,-0x18b),'effort':_0x3dbb2c(0x2b4,0x2e1,0x27f,0x2d9)},{'id':_0x5b3424(-0xdc,-0xb9,-0xec,-0xd7),'effort':'high'},{'id':_0x3dbb2c(0x1b5,0x195,0x29d,0x1eb),'effort':_0x3dbb2c(0x185,0x195,0x1b9,0x208)}]}},'gpt-5.4':{'reasoning':{'defaultOption':'off','canDisable':!![],'options':[{'id':_0x3dbb2c(0xf9,0x1a9,0xc8,0x1bf),'effort':_0x5b3424(-0x1ff,-0x22d,-0x17f,-0x24d)},{'id':_0x5b3424(-0x44,-0xf5,-0xe9,-0xc4),'effort':_0x5b3424(-0xed,-0xf5,-0x190,-0x1c3)},{'id':_0x5b3424(-0x9e,-0xb9,-0xd5,0xe),'effort':_0x5b3424(-0xc,-0xb9,-0x73,-0x151)},{'id':_0x5b3424(-0x143,-0x241,-0x32b,-0x175),'effort':'xhigh'}]}},'gpt-5.4-2026-03-05':{'reasoning':{'defaultOption':_0x5b3424(-0x170,-0xe0,-0xd1,-0x168),'canDisable':!![],'options':[{'id':_0x5b3424(-0x2f6,-0x22d,-0x290,-0x15c),'effort':'low'},{'id':_0x5b3424(-0x9a,-0xf5,-0x201,-0x1aa),'effort':_0x3dbb2c(0x214,0x2e1,0x381,0x368)},{'id':_0x5b3424(-0x40,-0xb9,0x51,-0x122),'effort':_0x5b3424(-0x37,-0xb9,-0x111,-0x1ae)},{'id':'xhigh','effort':_0x3dbb2c(0x1c4,0x195,0x97,0xcb)}]}},'gpt-5.4-pro':{'reasoning':{'defaultOption':_0x5b3424(-0xd5,-0xf5,-0xb5,-0xb9),'canDisable':![],'options':[{'id':_0x3dbb2c(0x322,0x2e1,0x1d3,0x3cf),'effort':_0x5b3424(-0x1e6,-0xf5,-0x188,-0x4f)},{'id':_0x3dbb2c(0x273,0x31d,0x3cf,0x361),'effort':_0x5b3424(-0x15d,-0xb9,0x31,0x55)},{'id':_0x3dbb2c(0x1e3,0x195,0x14e,0x251),'effort':'xhigh'}]}},'gpt-5.4-pro-2026-03-05':{'reasoning':{'defaultOption':_0x3dbb2c(0x333,0x2e1,0x28b,0x3ca),'canDisable':![],'options':[{'id':'medium','effort':_0x3dbb2c(0x3b5,0x2e1,0x1d8,0x261)},{'id':'high','effort':_0x5b3424(0x4c,-0xb9,-0x2b,-0xe1)},{'id':_0x5b3424(-0x344,-0x241,-0x1bb,-0x2b8),'effort':'xhigh'}]}},'gpt-5.4-mini':{'reasoning':{'defaultOption':'off','canDisable':!![],'options':[{'id':_0x3dbb2c(0x2a0,0x1a9,0x262,0x260),'effort':_0x5b3424(-0x1fc,-0x22d,-0x237,-0x2fd)},{'id':_0x5b3424(-0x16b,-0xf5,-0x19d,-0x7b),'effort':_0x3dbb2c(0x33b,0x2e1,0x1ec,0x1d8)},{'id':'high','effort':_0x5b3424(-0xea,-0xb9,0x1e,-0xaf)},{'id':_0x5b3424(-0x1b3,-0x241,-0x162,-0x326),'effort':_0x3dbb2c(0x20c,0x195,0x198,0xe0)}]}},'gpt-5.4-mini-2026-03-17':{'reasoning':{'defaultOption':_0x5b3424(-0xec,-0xe0,-0x1ed,-0x23),'canDisable':!![],'options':[{'id':'low','effort':_0x3dbb2c(0x1b2,0x1a9,0xe5,0x2b1)},{'id':_0x3dbb2c(0x38d,0x2e1,0x336,0x346),'effort':_0x5b3424(-0x58,-0xf5,-0x1a4,-0x33)},{'id':_0x5b3424(0x30,-0xb9,-0x102,-0x1a),'effort':_0x5b3424(-0x2e,-0xb9,-0x3b,-0x12b)},{'id':_0x5b3424(-0x329,-0x241,-0x166,-0x217),'effort':_0x5b3424(-0x2f0,-0x241,-0x193,-0x340)}]}},'gpt-5.4-nano':{'reasoning':{'defaultOption':'off','canDisable':!![],'options':[{'id':'low','effort':'low'},{'id':_0x5b3424(-0xc0,-0xf5,-0x1b4,-0x15e),'effort':'medium'},{'id':'high','effort':_0x3dbb2c(0x417,0x31d,0x3c7,0x40c)},{'id':_0x3dbb2c(0x9a,0x195,0xb5,0x28c),'effort':_0x5b3424(-0x28f,-0x241,-0x32a,-0x2c6)}]}},'gpt-5.4-nano-2026-03-17':{'reasoning':{'defaultOption':_0x3dbb2c(0x397,0x2f6,0x316,0x3f3),'canDisable':!![],'options':[{'id':_0x3dbb2c(0x194,0x1a9,0x1b2,0x259),'effort':_0x3dbb2c(0x1f0,0x1a9,0x22e,0x119)},{'id':_0x3dbb2c(0x32b,0x2e1,0x344,0x24f),'effort':_0x5b3424(-0xf1,-0xf5,-0xb9,0xe)},{'id':_0x3dbb2c(0x364,0x31d,0x296,0x2bc),'effort':_0x5b3424(-0x1a7,-0xb9,-0xe9,-0x14)},{'id':_0x5b3424(-0x27b,-0x241,-0x16b,-0x349),'effort':_0x5b3424(-0x33e,-0x241,-0x258,-0x342)}]}},'gpt-5.2':{'reasoning':{'defaultOption':_0x3dbb2c(0x3f1,0x2f6,0x1f5,0x39b),'canDisable':!![],'options':[{'id':'low','effort':'low'},{'id':_0x3dbb2c(0x228,0x2e1,0x36a,0x24f),'effort':_0x5b3424(-0x83,-0xf5,-0x14a,-0xc9)},{'id':_0x5b3424(-0x11d,-0xb9,-0x8c,-0x34),'effort':_0x3dbb2c(0x33c,0x31d,0x348,0x386)},{'id':_0x3dbb2c(0x1a2,0x195,0x28f,0x1e8),'effort':_0x3dbb2c(0x166,0x195,0x95,0x117)}]}},'gpt-5.2-2025-12-11':{'reasoning':{'defaultOption':_0x3dbb2c(0x20c,0x2f6,0x370,0x230),'canDisable':!![],'options':[{'id':_0x3dbb2c(0x167,0x1a9,0x29c,0x1b6),'effort':_0x3dbb2c(0x256,0x1a9,0x200,0x1a3)},{'id':_0x5b3424(-0x33,-0xf5,-0xb1,-0x19b),'effort':_0x3dbb2c(0x1f4,0x2e1,0x366,0x2e3)},{'id':_0x5b3424(-0x18,-0xb9,-0x1a1,-0x11d),'effort':_0x3dbb2c(0x2cb,0x31d,0x22b,0x257)},{'id':_0x5b3424(-0x1d4,-0x241,-0x176,-0x22a),'effort':_0x3dbb2c(0x231,0x195,0x9c,0x189)}]}},'gpt-5.1':{'reasoning':{'defaultOption':'off','canDisable':!![],'options':[{'id':_0x3dbb2c(0x292,0x1a9,0x286,0x1df),'effort':'low'},{'id':_0x5b3424(-0xd4,-0xf5,-0x1e5,-0x98),'effort':_0x3dbb2c(0x241,0x2e1,0x38f,0x3af)},{'id':_0x5b3424(-0x182,-0xb9,-0xbb,0x11),'effort':_0x3dbb2c(0x3dd,0x31d,0x33f,0x2c3)}]}},'gpt-5.1-2025-11-13':{'reasoning':{'defaultOption':_0x3dbb2c(0x365,0x2f6,0x1ee,0x2a4),'canDisable':!![],'options':[{'id':_0x3dbb2c(0x186,0x1a9,0xcb,0x295),'effort':_0x3dbb2c(0xad,0x1a9,0x116,0x18f)},{'id':_0x5b3424(-0x79,-0xf5,-0x77,0x18),'effort':'medium'},{'id':_0x3dbb2c(0x21e,0x31d,0x3a8,0x3f2),'effort':_0x3dbb2c(0x306,0x31d,0x291,0x265)}]}},'gpt-5':{'reasoning':{'defaultOption':_0x5b3424(-0x4f,-0xf5,-0x1d1,-0x1b5),'canDisable':![],'options':[{'id':'minimal','effort':_0x3dbb2c(0x2b9,0x315,0x3b3,0x3c5)},{'id':_0x5b3424(-0x249,-0x22d,-0x28a,-0x1f0),'effort':_0x5b3424(-0x2ea,-0x22d,-0x204,-0x201)},{'id':_0x5b3424(-0x89,-0xf5,-0x63,-0x33),'effort':_0x3dbb2c(0x352,0x2e1,0x358,0x2e4)},{'id':_0x3dbb2c(0x2ef,0x31d,0x336,0x280),'effort':_0x3dbb2c(0x37e,0x31d,0x3fc,0x24f)}]}},'gpt-5-2025-08-07':{'reasoning':{'defaultOption':_0x3dbb2c(0x392,0x2e1,0x278,0x316),'canDisable':![],'options':[{'id':'minimal','effort':_0x3dbb2c(0x3b3,0x315,0x3f3,0x263)},{'id':'low','effort':_0x5b3424(-0x294,-0x22d,-0x264,-0x21f)},{'id':_0x3dbb2c(0x2cf,0x2e1,0x270,0x208),'effort':'medium'},{'id':'high','effort':_0x3dbb2c(0x2a2,0x31d,0x2c2,0x3b0)}]}},'gpt-5-pro':{'reasoning':{'defaultOption':'high','canDisable':![],'options':[{'id':_0x3dbb2c(0x2a3,0x31d,0x3db,0x38b),'effort':_0x3dbb2c(0x413,0x31d,0x22e,0x249)}]}},'gpt-5-pro-2025-10-06':{'reasoning':{'defaultOption':'high','canDisable':![],'options':[{'id':_0x5b3424(-0x1be,-0xb9,-0x109,-0xde),'effort':_0x5b3424(-0x1a5,-0xb9,-0x155,-0x19a)}]}}}},'codex':{'label':_0x3dbb2c(0x34c,0x280,0x2b4,0x246),'baseUrl':'https://chatgpt.com/backend-api/codex','surface':_0x5b3424(-0x1c2,-0x28d,-0x321,-0x233),'authScheme':_0x5b3424(-0x263,-0x225,-0x26e,-0x2cf),'defaultModel':_0x5b3424(-0x261,-0x294,-0x38e,-0x38b),'defaultModels':['gpt-5.4'],'supportsModelFetch':!![],'forceStreaming':!![],'models':{'gpt-5.4':{'contextWindow':0x42680,'maxOutput':0x1f400,'maxContextWindow':0xf4240,'reasoning':{'defaultOption':_0x5b3424(-0x176,-0xf5,-0x16c,-0x1e1),'canDisable':![],'options':[{'id':_0x3dbb2c(0x112,0x1a9,0x110,0x200)},{'id':_0x3dbb2c(0x3dd,0x2e1,0x239,0x1d6)},{'id':_0x3dbb2c(0x341,0x31d,0x378,0x3c3)},{'id':_0x3dbb2c(0x208,0x195,0x19b,0x1de)}]}},'gpt-6-astra':{'contextWindow':0x42680,'maxContextWindow':0xd4e40,'reasoning':{'defaultOption':_0x5b3424(-0x2a5,-0x22d,-0x1cb,-0x2be),'canDisable':![],'options':[{'id':_0x5b3424(-0x229,-0x22d,-0x301,-0x25f)},{'id':_0x3dbb2c(0x31e,0x2e1,0x3bc,0x2a6)},{'id':_0x5b3424(0x3,-0xb9,0x3a,-0x17)},{'id':'xhigh'},{'id':'max'}]}},'gpt-5.6-sol':{'contextWindow':0x42680,'maxContextWindow':0xd4e40,'reasoning':{'defaultOption':_0x5b3424(-0x1b7,-0x22d,-0x164,-0x15a),'canDisable':![],'options':[{'id':_0x5b3424(-0x2a8,-0x22d,-0x223,-0x2a0)},{'id':'medium'},{'id':_0x5b3424(-0xdc,-0xb9,-0x31,-0x160)},{'id':_0x5b3424(-0x1f1,-0x241,-0x28d,-0x168)},{'id':'max'}]}},'gpt-5.6-terra':{'contextWindow':0x42680,'maxContextWindow':0xd4e40,'reasoning':{'defaultOption':_0x5b3424(-0x49,-0xf5,-0x30,-0x8c),'canDisable':![],'options':[{'id':_0x5b3424(-0x2d1,-0x22d,-0x33a,-0x29e)},{'id':_0x3dbb2c(0x3aa,0x2e1,0x2e6,0x285)},{'id':_0x3dbb2c(0x30c,0x31d,0x3a3,0x3f5)},{'id':'xhigh'},{'id':'max'}]}},'gpt-5.6-luna':{'reasoning':{'defaultOption':_0x5b3424(-0x1ef,-0xf5,-0x190,-0x116),'canDisable':![],'options':[{'id':_0x5b3424(-0x262,-0x22d,-0x2aa,-0x19a)},{'id':_0x3dbb2c(0x36c,0x2e1,0x242,0x2be)},{'id':_0x3dbb2c(0x418,0x31d,0x2ff,0x328)},{'id':_0x3dbb2c(0x21f,0x195,0x290,0x11d)},{'id':_0x3dbb2c(0xfc,0x120,0x1b7,0x1b3)}]}},'gpt-5.5':{'reasoning':{'defaultOption':_0x3dbb2c(0x225,0x2e1,0x2f4,0x379),'canDisable':![],'options':[{'id':_0x5b3424(-0x279,-0x22d,-0x15e,-0x301)},{'id':_0x5b3424(-0x166,-0xf5,-0x21,-0x93)},{'id':_0x3dbb2c(0x2a6,0x31d,0x354,0x2f5)},{'id':_0x3dbb2c(0xe0,0x195,0x12d,0x155)}]}},'gpt-5.4-mini':{'reasoning':{'defaultOption':_0x3dbb2c(0x228,0x2e1,0x3d4,0x1fb),'canDisable':![],'options':[{'id':'low'},{'id':_0x3dbb2c(0x35e,0x2e1,0x3e8,0x285)},{'id':_0x3dbb2c(0x3e4,0x31d,0x29b,0x406)},{'id':_0x3dbb2c(0x197,0x195,0x1c2,0x9d)}]}},'gpt-5.2':{'reasoning':{'defaultOption':_0x5b3424(-0x1f8,-0xf5,-0x185,-0x168),'canDisable':![],'options':[{'id':_0x5b3424(-0x18b,-0x22d,-0x2f7,-0x13a)},{'id':_0x3dbb2c(0x360,0x2e1,0x2c0,0x224)},{'id':'high'},{'id':_0x3dbb2c(0x167,0x195,0x107,0x279)}]}},'codex-auto-review':{'contextWindow':0x42680,'maxContextWindow':0xd4e40,'reasoning':{'defaultOption':_0x3dbb2c(0x1dc,0x2e1,0x29d,0x22b),'canDisable':![],'options':[{'id':_0x3dbb2c(0x1e8,0x1a9,0x194,0x192)},{'id':_0x3dbb2c(0x1e0,0x2e1,0x3be,0x1ea)},{'id':_0x5b3424(-0x1c5,-0xb9,-0xe7,-0x8e)},{'id':_0x3dbb2c(0x174,0x195,0x27f,0x15d)}]}}}},'deepseek':{'label':_0x5b3424(-0x239,-0x1f4,-0x1da,-0x2f2),'baseUrl':'https://api.deepseek.com/anthropic/v1','surface':_0x5b3424(-0x21c,-0x2a7,-0x1f7,-0x269),'authScheme':_0x3dbb2c(0x14a,0x1b1,0x205,0x205),'defaultModel':_0x3dbb2c(0x35f,0x30e,0x3f5,0x394),'defaultModels':[_0x5b3424(-0xc4,-0xc8,-0xa9,-0xb7),_0x3dbb2c(0x23b,0x16f,0x71,0x11e)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x5b3424(-0x16e,-0x1a2,-0x1c6,-0x11d),'baseUrl':_0x5b3424(-0x10f,-0xdb,-0xe6,-0xe8),'surface':_0x5b3424(-0x231,-0x2a7,-0x1f9,-0x2cf),'authScheme':'bearer','defaultModel':_0x5b3424(-0x1af,-0x13f,-0x7e,-0x198),'defaultModels':[_0x5b3424(-0x17b,-0x13f,-0xc4,-0x1dd)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x3dbb2c(0x27c,0x233,0x1aa,0x259),'baseUrl':_0x5b3424(-0x1b6,-0x112,-0x75,-0x1bf),'modelsBaseUrl':_0x5b3424(-0x172,-0x112,-0x175,-0x170),'surface':_0x5b3424(-0x36f,-0x2a7,-0x327,-0x2d6),'authScheme':_0x5b3424(-0x396,-0x2be,-0x38f,-0x37a),'defaultModel':'claude-sonnet-4-20250514','defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x3dbb2c(0x1c2,0x294,0x191,0x39e),'baseUrl':_0x3dbb2c(0x2a1,0x226,0x271,0x262),'modelsBaseUrl':'https://token-plan-sgp.xiaomimimo.com/v1','surface':_0x5b3424(-0x2a5,-0x2a7,-0x277,-0x202),'authScheme':_0x3dbb2c(0x122,0x118,0x1dd,0x8d),'defaultModel':_0x5b3424(-0x239,-0x138,-0xee,-0x1b2),'defaultModels':[_0x5b3424(-0x35,-0x138,-0x1fa,-0x1aa)],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default,REASONING_METADATA_VERSIONS={'anthropic':_0x5b3424(-0xbf,-0x145,-0x216,-0x10c),'openai':_0x3dbb2c(0x1e0,0x291,0x2de,0x36c),'codex':'0.153.4+3d2ee51ca2d5db578f328aa75e20aa22c0197c9a'},LEGACY_PROVIDER_KEYS={'openai-codex':_0x3dbb2c(0x2c0,0x252,0x283,0x28b)};function findProviderKey(_0x5dfdc3){const _0x3850d6={_0x13101e:0x62,_0x30ddd9:0x162,_0x164caa:0x137,_0x33aaca:0x243,_0x5b7af1:0x18},_0x4689c7={_0xf4921f:0x22},_0x205d6a={_0x2d5ebc:0xe9,_0x271760:0x6a},_0x4be605=_0x5dfdc3[_0x1d6691(-_0x3850d6._0x13101e,-0x4d,0x12,0x5e)](),_0x15bf2c=Object[_0x943ef8(_0x3850d6._0x30ddd9,_0x3850d6._0x164caa,0xdf,_0x3850d6._0x33aaca)](data['providers'])[_0x1d6691(0x7a,0x45,_0x3850d6._0x5b7af1,-0x58)](_0xabab5f=>_0xabab5f[_0x943ef8(0x230,0x2fe,0x319,0x31f)]()===_0x4be605);function _0x1d6691(_0x55f7ff,_0x2aa96d,_0x26054d,_0x278537){return _0x3dbb2c(_0x55f7ff-_0x205d6a._0x2d5ebc,_0x26054d- -0x226,_0x26054d-_0x205d6a._0x271760,_0x2aa96d);}if(_0x15bf2c)return _0x15bf2c;const _0x133a31=LEGACY_PROVIDER_KEYS[_0x4be605];function _0x943ef8(_0x386694,_0xde76bc,_0x36afdb,_0x5f2e48){return _0x5b3424(_0x386694-_0x4689c7._0xf4921f,_0x386694-0x3ce,_0x36afdb-0x20,_0xde76bc);}if(_0x133a31)return _0x133a31;return void 0x0;}function getProviderProfile(_0x28170f){const _0x20db00={_0xba213d:0x46a,_0x5a7f51:0x34a,_0x2b2e1a:0x13b,_0x314c58:0x1d,_0x1ff74d:0x56,_0x2f837f:0x34,_0x543fed:0x493,_0x55eda4:0x31a,_0x2fddee:0x3a9,_0x21ff16:0x53d,_0x3a9248:0x3e7,_0x8624ca:0xce,_0x20c33d:0xfa,_0x20d6dc:0x1f,_0x4f4796:0x3b4,_0x27e336:0x470,_0x28243f:0x3ff,_0x4e7574:0x18},_0x111dd9={_0x3e33d6:0x16b,_0xbfc1d4:0x1f6,_0x3fb39f:0xc0},_0xb2f430=findProviderKey(_0x28170f);if(!_0xb2f430)return void 0x0;const _0x1406d5=data['providers'][_0xb2f430],_0x7c955e={};function _0x11c439(_0x5e53bd,_0x28f8f,_0x3b42ac,_0x217fdc){return _0x3dbb2c(_0x5e53bd-_0x111dd9._0x3e33d6,_0x217fdc- -_0x111dd9._0xbfc1d4,_0x3b42ac-_0x111dd9._0x3fb39f,_0x5e53bd);}for(const [_0x361ec6,_0x5074ce]of Object['entries'](_0x1406d5[_0x413bdd(_0x20db00._0xba213d,0x485,_0x20db00._0x5a7f51,0x3f2)])){_0x7c955e[_0x361ec6]=_0x5074ce;}function _0x413bdd(_0x1d2842,_0x51373d,_0x5751f4,_0x1b4583){return _0x3dbb2c(_0x1d2842-0x108,_0x1b4583-0x1b7,_0x5751f4-0x113,_0x5751f4);}return{'label':_0x1406d5[_0x11c439(_0x20db00._0x2b2e1a,_0x20db00._0x314c58,0xcc,0x123)],'baseUrl':_0x1406d5[_0x11c439(-_0x20db00._0x1ff74d,_0x20db00._0x2f837f,-0x7a,-0x27)],'modelsBaseUrl':_0x1406d5[_0x413bdd(0x55f,0x3f4,0x52b,0x48a)],'anthropicBaseUrl':_0x1406d5[_0x413bdd(_0x20db00._0x543fed,0x3d9,_0x20db00._0x55eda4,_0x20db00._0x2fddee)],'surface':_0x1406d5[_0x413bdd(_0x20db00._0x21ff16,0x397,_0x20db00._0x3a9248,0x465)],'authScheme':_0x1406d5[_0x11c439(-_0x20db00._0x8624ca,-0xea,_0x20db00._0x20c33d,_0x20db00._0x20d6dc)],'defaultModel':_0x1406d5[_0x413bdd(0x3c7,_0x20db00._0x4f4796,_0x20db00._0x27e336,_0x20db00._0x28243f)],'defaultModels':_0x1406d5['defaultModels']??[],'supportsModelFetch':_0x1406d5['supportsModelFetch']??![],'forceStreaming':_0x1406d5[_0x11c439(0x79,-0xcc,-_0x20db00._0x4e7574,-0x7b)],'models':_0x7c955e};}function getModelProfile(_0x32259c,_0xfc524d){const _0x43776b={_0xfc806e:0x215,_0x2c96d7:0x22b},_0x55ba8c=findProviderKey(_0x32259c);function _0x419e38(_0xd24389,_0x1d4704,_0x55b9d0,_0x3b6c00){return _0x5b3424(_0xd24389-0x16f,_0x1d4704-0x3c6,_0x55b9d0-0x1a6,_0xd24389);}if(!_0x55ba8c)return void 0x0;return data['providers'][_0x55ba8c][_0x419e38(_0x43776b._0xfc806e,_0x43776b._0x2c96d7,0x1f7,0x12d)][_0xfc524d];}function resolveModelProfile(_0x1ed539,_0x432140){const _0x2fe5ea={_0x13d16d:0x532,_0x4af426:0x587,_0x429d4f:0x40b,_0x126992:0x373,_0xe30e1d:0x3f8,_0x383610:0x4c7,_0x172317:0xff,_0x8c6157:0x28,_0x5e0165:0x19d,_0x2d1970:0x93,_0x598e3b:0x57,_0x409195:0xdd,_0x24a2ba:0xc8,_0xdf577c:0x394,_0xfdc877:0x346,_0x2382f9:0x2bd,_0x5d5bc3:0x8b,_0x4439df:0x63,_0x2ec0e7:0x15,_0x30e961:0x13c,_0x5de701:0x4e6,_0x2ef97a:0x3dc},_0x44cce2={_0x214aee:0x219,_0x577aad:0x127},_0xc1a504={_0x587c88:0x6a};function _0x3499e9(_0x1ee4c7,_0x5d9cc3,_0x174ee3,_0x30cd21){return _0x3dbb2c(_0x1ee4c7-0x81,_0x1ee4c7- -0x254,_0x174ee3-_0xc1a504._0x587c88,_0x174ee3);}const _0x4b7325=findProviderKey(_0x1ed539);function _0x93ed3d(_0x5c124c,_0x25ee75,_0x1cd574,_0x4a28cc){return _0x3dbb2c(_0x5c124c-0x198,_0x5c124c-_0x44cce2._0x214aee,_0x1cd574-_0x44cce2._0x577aad,_0x25ee75);}if(!_0x4b7325)return void 0x0;const _0x4a9e48=data['providers'][_0x4b7325],_0x13e84c=_0x4a9e48['models'][_0x432140];return{'label':_0x4a9e48[_0x93ed3d(_0x2fe5ea._0x13d16d,0x56c,_0x2fe5ea._0x4af426,0x50b)],'baseUrl':_0x4a9e48['baseUrl'],'modelsBaseUrl':_0x4a9e48['modelsBaseUrl'],'anthropicBaseUrl':_0x4a9e48[_0x93ed3d(_0x2fe5ea._0x429d4f,0x49f,_0x2fe5ea._0x126992,_0x2fe5ea._0xe30e1d)],'surface':_0x13e84c?.['surface']??_0x4a9e48[_0x93ed3d(_0x2fe5ea._0x383610,0x40e,0x573,0x3ca)],'authScheme':_0x4a9e48['authScheme'],'defaultModel':_0x4a9e48[_0x3499e9(-0xc,-_0x2fe5ea._0x172317,-0x91,-_0x2fe5ea._0x8c6157)],'defaultModels':_0x4a9e48[_0x3499e9(0xc0,-0x38,_0x2fe5ea._0x5e0165,_0x2fe5ea._0x2d1970)],'supportsModelFetch':_0x4a9e48[_0x3499e9(-_0x2fe5ea._0x598e3b,-_0x2fe5ea._0x409195,-0x8e,-_0x2fe5ea._0x24a2ba)],'forceStreaming':_0x13e84c?.['forceStreaming']??_0x4a9e48[_0x93ed3d(_0x2fe5ea._0xdf577c,_0x2fe5ea._0xfdc877,0x2e7,_0x2fe5ea._0x2382f9)],'contextWindow':_0x13e84c?.['contextWindow'],'maxContextWindow':_0x13e84c?.[_0x3499e9(0x24,-_0x2fe5ea._0x5d5bc3,-0x85,0x47)],'maxOutput':_0x13e84c?.[_0x3499e9(-_0x2fe5ea._0x4439df,-_0x2fe5ea._0x2ec0e7,-_0x2fe5ea._0x30e961,-0x14c)],'reasoning':_0x13e84c?.[_0x93ed3d(_0x2fe5ea._0x5de701,0x4ec,_0x2fe5ea._0x2ef97a,0x5a5)]};}function _0x2423(){const _0x11e549=['l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','oNjLyxnVBMLUzZOW','BgvUz3rO','CMvMDxnHBa','z2XTltqUnG','A2v5CW','otqZnJq1EhPdBufn','C3rYAw5N','l3jLC3bVBNnLCW','y29UC3vTzvDLyLnVy2TLDev2zw50','zgvLChnLzwSTDJqTzMXHC2G','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','y29TCgXLDgvK','ue9tva','Aw5WDxrFDg9Rzw5Zx2rLDgfPBhm','y2fWywjPBgL0AwvZ','t3bLBKnVzguGr28','B2f1DgGTDg9Rzw4','Dg9VBf91C2u','r0vu','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','BwLTBY12mI1VBw5P','zM9Yy2vtDhjLyw1PBMC','BwLUAw1HEa','CMvHC29UAw5Nx2nVBNrLBNq','CMvHC29U','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','yNvKz2v0vg9Rzw5Z','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','z2XTltuUmG','Dg9VBf91C2vFzgvSDge','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','C3rYAw5NAwz5','CMvZB2X2zunYzwrLBNrPywW','y3jLyxrLuMvXDwvZDa','AgvHzgvYCW','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','yxnZAxn0yw50','y2fSBf9Pza','AxnbCNjHEq','qMvHCMvYia','AxrLBq','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','y29UBMvJDf9MywLSzwq','BwvKAwfFDhLWzq','C3rYAwn0','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','Dg9tDhjPBMC','EgHPz2G','B3v0Chv0sw5KzxG','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','Dg9bCgLfCNjVCG','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','yxbPlwTLEq','BwvZC2fNzuLUzgv4','D2vIC29JA2v0','C2L6zq','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','C3bSAwnL','AxntywzLsw50zwDLCG','o2jHC2u2ncW','CMvHC29UAw5Nx3rLEhq','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','ChjVDMLKzxjZ','Bwf4x3rVA2vUCW','ChjVBxb0q2fJAgvlzxLszxnVBhzLCG','C2vUzfDPDgHszxrYAwvZ','Bg93','C29JA2v0','y3jLyxrLu3rYzwfTugfYC2vY','DxnLCG','t3bLBKfj','C3rYzwfTx2vYCM9Y','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','CMvHzhLtDgf0zq','yMvHCMvY','y29TCgXLDgvtDxjMywnL','z3b0ltrV','C3vWCg9YDgvKx2vUzhbVAw50CW','CMvZB2X2zujHC2vvCMW','l2nOyxqVy29TCgXLDgLVBNm','r3jVAYaOEc5HAsK','CMvHC29UAw5NugfYDhm','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','AhKZ','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','DMLZAwjPBgL0Eq','BM93','C3rHCNrZv2L0Aa','zw5Kx3r1CM4','ChjVEhK','zNvUy3rPB24','q2HHDcbJB21WBgv0Aw9UCYbZDhjLyw0GzMfPBgvK','CMvHC29UAw5Nx2rLDgfPBhm','yMXVy2TZ','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','ANnVBL9Zy2HLBwe','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','u3vYzMfJzsa','rw5HyMXLie1PBMLnyxGGywrHChrPDMuGDgHPBMTPBMC','y2HHDgnTCgWT','zgvSDge','Dgv4Da','CM91BMq','zgvLChnLzwS','yMfZzvvYBa','CMvKywn0zwrFDgHPBMTPBMC','ChjPy2LUz1bYB3zPzgvYswq','Bw9KzwXjzgvUDgL0Eq','A2LTAs1RmI41','yM9KEq','yw50AhjVCgLJrgvSzwDHDgu','DNnJB2rLlZeUmta0lJi','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','C2vZC2LVBKLK','BgLTAxrZ','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','v2vIu29JA2v0','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','z2v0t3bLBKfPrgvSzwDHDgu','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','zgvSzxrL','DhjPBvn0yxj0','B3bLBNjVDxrLCG','rgvLCfnLzwS','A2LTAs1RmW','ChjVBxb0x3rVA2vUCW','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','yxbPs2v5','C3LZDgvT','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','Aw5WDxrkC29U','BwLUAw1HEc1TmW','CMvZB2X2zxi','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','z3b0ltuUmI1JB2rLEa','Aw5KzxG','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','Bwf4t3v0Chv0','yw50AhjVCgLJqMfZzvvYBa','Aw5WDxq','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','BxnNlq','EMfPlwnVzgLUzY1WBgfU','Dgv4DfbHCNrZ','mJreC1nmt3a','y29UC3vTzuv2zw50','C2v0','yxbWBgLJyxrPB24VANnVBG','DgHPBMTPBMDFDg9Rzw5Z','C3vWCg9YDhnnB2rLBezLDgnO','Dg9VBenHBgXZqNLjBMrLEa','yw50AhjVCgLJsgvHzgvYuMvZB2X2zxi','C3vWCg9YDgvKrw5KCg9PBNrZ','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','BgfZDfjLC3bVBNnLswq','Bw9KzwW','C3vTBwfYEq','y29UDgv4Df9Szw5NDgG','r2L0shvIie1VzgvSCYaVienVCgLSB3q','CMvZCg9UC2uUAw5JB21WBgv0zq','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','BwfWqxbPrxjYB3i','yMfZzty0','Ahr0Cf9ZDgf0Dxm','C2HVDwXKuMv0CNLszxnWB25Zzq','Dg9VBfvZzvn0yxj0rw1PDhrLza','Dg9VBc1JywXSlq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','C2nOzw1H','zg9Uzq','yxv0AfnJAgvTzq','C3bSAxq','z2L0AhvIqxbPvxjS','mJu1mZm5u2Hct0jj','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','CMvZCg9UC2vtB2nRzxq','BMfTzq','DgvSzw1LDhj5','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','ihn0CMvHBsbLBMrLzcbIzwzVCMuGysb0zxjTAw5HBcbLDMvUDa','qw50AhjVCgLJ','Dg9VBf91C2vFAwq','y2HHDgnTCgW','z2v0uMv0CNLezwXHEu1Z','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','yxn5BMnjDgvYyxrVCG','Cgf0Aa','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwmVDJe','y2fJAgvFD3jPDgvFDg9Rzw5Z','zgf0yq','rgLYzwn0igfUC3DLCJOG','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','ywDLBNq','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','Bw9Kzq','y29UDgvUDc10ExbL','EgLHB21PlxrVA2vUlxbSyw4TC2DW','A2LUza','B3bLBMfPx3jLyxnVBMLUzW','B3bLBMnVzguTz28','q29TBwfUzenVzgu','twLUAu1HEa','Aw5JBhvKzxm','Bw9JAW','B3bLBMfPlxjLC3bVBNnLCY13CW','Dg9mB3DLCKnHC2u','CgfYC2vszxnWB25Zzq','Aw52ywXPzgf0zq','Bw9KzwXZ','Aw5JBhvKzunVBNrLBNruExbL','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','zMLUza','CMvZCg9UC2vuzxH0ugfYDhm','BwvZC2fNzq','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','C291CMnL','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','Dgv4Dej5sw5KzxG','C3rYzwfTshr0Cfn1CMzHy2u','yw50AhjVCgLJlxzLCNnPB24','ywrHChrPDMu','zgvMyxvSDe1VzgvS','C2vUza','DMfSDwvZ','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','C3rYzwfTu3vYzMfJzq','zMv0y2G','ANnVBG','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','BwvZC2fNzuLK','C3rYzwfTvMLHuM91DgvY','y29KzxG','B21PDhrLza','B3bLBKfPrgvSzwDHDgu','y2XVC2u','y2HVAwnLCW','z3jVAY00lJu','Aw5PDgLHBev2zw50','z3b0ltuTBwLUAq','y2f0y2G','A2v5','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','zNjVBuvUDhjPzxm','yxv0BW','yxv0Ag9YAxPHDgLVBG','CxDLBJmUns1WBhvZ','zw5KCg9PBNrZ','D3m6','Dg9VBhm','B3v0Chv0x3rVA2vUCW','B3bLBMfP','DxnLC1jLC3bVBNnLC0fWAq','y2fJAgvK','C2LNBMfS','B2jQzwn0','CMv0CNLHyMXL','wI5bsq','CgvUzgLUzW','Bw9KzwXfBMrWB2LUDenHy2HL','zw5JCNLWDgvKq29UDgvUDa','ChjVBxb0x3rVA2vUC19KzxrHAwXZ','Dg9VBf9JywXSCW','ndGWnde2BuLmA01J','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','Ahr0Chm6','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','CMvHC29UAw5Nx3rVA2vUCW','CMvXDwvZDhm','CMvXDwvZDe11Dgf0B3jZ','Bwf4q29UDgv4DfDPBMrVDW','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','BwvZC2fNzxm','ywnJzxb0','Dg9VBf9Yzxn1Bhq','z2v0qw50AhjVCgLJrgvSzwDHDgu','C29YDa','Dgv4Dc9LDMvUDc1ZDhjLyw0','q29KzxG','D3nZoG','zgLZywjSzwq','y2fJAgvszwfKsw5WDxruB2TLBNm','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','Dg9Wx3bYB3zPzgvY','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','DhjHBNnWB3j0','EgfP','CMvZCg9UC2vtB2nRzxrtDhjLyw0','Aw5WDxrFDg9Rzw5Z','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','Aw1Hz2vFDxjS','DgvZDa','y2fWywjSzv9LBMrWB2LUDhm','C2vSzwn0u3vYzMfJzq','ywjVCNrLza','mJaYnI0WnY0YmG','Ahr0Cc1QC29U','y29UDgv4DfDPBMrVDW','wgLHB21P','l21VzgvSCW','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','twLUAu1HEc1nmW','CM9Szq','z2v0uMvHzgvY','ChjVDg9JB2XwzxjZAw9U','ChjVDMLKzxjbzgfWDgvY','C2vUzfjHD1jLCxvLC3q','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','BwLTBY12mI41lxbYBW','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','zxjYB3i','y29Kzq','z3jVAY1JB2rLlwzHC3qTmq','C2vZC2LVBK1HBMfNzxi','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','C3rVCfjLyxnVBG','A2LTAs1RmI42','CgfYDgLHBf9QC29U','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','mJaYns0Xmc0Wmq','qMfZAa','y29TCgXLDgvwAwftDxjMywnL','Aw5KzxHpzG','CxDLBJmUnY1TyxG','C3vYzMfJzq','DhjHBNnWB3j0x2vYCM9Y','Bwv0ywrHDge','DxnHz2u','BNvTyMvY','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','y29UDgvUDa','nKXADuj0uq','r2L0shvIiefqssbLCNjVCIa','DMfSDwu','B3v0Chv0x2LUzgv4','z2v0u3vYzMfJzq','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','uhjVDMLKzxiGC3rYzwfTigvUzgvKihDPDgGGzxjYB3iGzMLUAxnOihjLyxnVBG','y2HHDenVBxbSzxrL','z2XTltuUmW','Aw5WDxrFC2nOzw1H','AxrLBv9Pza','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','Bg9JA2vK','C3vYzMfJzxm','ChjVDMLKzxi','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','B3v0Chv0vg9Rzw5Z','ChvZAa','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','zMLSDgvY','z2XTltuUmq','l3yX','nZu3mJK1n0fYugniCq','BwLUAw1HEc1TmI43','CMvHC29UAw5N','z3b0ltqUmq','C3vTBwfYEv90zxH0','A2LTAs1RmI43lwnVzgu','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','Bw9KzwXZqMfZzvvYBa','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','Aw1Hz2u','CMv0CNKTywz0zxi','B3bLBG','yxbP','C2XPy2u','B3v0Chv0x3rLEhq','y29UDgvUDf9IBg9JA19ZDgfYDa','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','CMvTB3zLrxzLBNrmAxn0zw5LCG','y29TCgXLDgvwAwfsB3v0zxi','zwrPDg9YugX1z2LUvMvYC2LVBG','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','BwvKAxvT','ndyXntm3mezNzLfbta','Bwf4vg9Rzw5Z','zwzMB3j0','yNvPBgrqyxj0AwfSt3v0Chv0','D2fPDezVCLjLDhj5','CMvZzxq','CMvZCg9UC2u','ChjLCgfYzunOyxrszxf1zxn0','CMvZCg9UC2uUzMfPBgvK','Bwf4x291Dhb1Df90B2TLBNm','C3vTBwfYAxPLza','zNjVBq','C3rYzwfTvMLHu3vYzMfJzq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','CMvZCg9UC2vtDhjLyw0','Aw5WDxruB2TLBNm','z2v0','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLigeGDgvYBwLUywWGCMvZCg9UC2uGzxzLBNq','CMvWBgfJzq','B2zM','CMvZCg9UC2vjza','B3v0Chv0','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwmVDJe','ChjVDg9JB2W','AxngAw5PDgu','zw5HyMXLza','D2L0AfbYAwnPBMDqCM92AwrLCKLK','zgf0ytO','Dg9VBenHBgXZ','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','C3vTBwfYEv9PBMrLEa','nJm3ntmZEwXpCvHN','yw50AhjVCgLJ','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','C3rYDwn0DxjLzf9VDxrWDxq','CMvHC29UAw5NsxrLBxm','y2fJAgvKx3rVA2vUCW','BwvZC2fNzv9ZDgfYDa','DgHPBMTPBMC','zxzLBNq','zgvZy3jPChrPB24','zgvLChnLzwSTDJqTChjV','y29UDgvUDf9KzwX0yq','CMvZCg9UC2vZugf0Aa','y29UDgvUDf9IBg9JA19KzwX0yq','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','y2fSBeLKvg9pDxrWDxrjBMrLEa','zgvMyxvSDe1VzgvSCW','BwLUAw1HBa','y2HHDenVBxbSzxrPB25Zsw5JBhvKzvvZywDL','C3rHDhvZvgv4Da','CMvHza','BgfIzwW','l21LC3nHz2vZ','Ahr0Cc1ZC2u','CM91DgvY','AgLNAa','B3v0Chv0rM9YBwf0','z3jVAY00lJm','y3jLyxrLsgvHzgvYCW','B3bLBMfPl2DWDc00BW','ywnJzxnZvg9Rzw4','zw50CMLLCW','DgHPBMTPBMDuB2TLBNm','AgfZ','DgHLBG','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','z2XTltqUnq','z2L0AhvIlwnVCgLSB3q','zw5JCNLWDgvKx2nVBNrLBNq','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','AgvHzgvYuMvZB2X2zxi','BhmGlwXH','C3vTBwfYEuj5sw5KzxG','zMLUywXszxnWB25Zzq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','w0rptKvD','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','Ec1HCgKTA2v5','y29TCgXLDgu','CMvXDwvZDa','nhrNwhfpwa','DhjPBq','ChjVBxb0q2fJAgvlzxK','z3jVAY1IDwLSzc0WlJe','yxbWBhLnB2rLBerLzMf1BhrZ','Bwf4','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','yxjNDw1LBNrZ','DxnLCI12AxnPyMXL','ChjLDMLVDxnszxnWB25ZzuLK','y2HHDenVBxbSzxrPB25Zugf0Aa','mty0odGYotzOCwXszKy','t1bftG','y2HHDfn0CMvHBq','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','z3b0ltu','Bwv0Ag9K','ChjVDMLKzxjtDgf0zq','ywrKrxzLBNrmAxn0zw5LCG','AM9PBG','yw50AhjVCgLJlw1LC3nHz2vZ','C3rVCf9YzwfZB24','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','C2LNBMf0DxjL','mtzeu1zxExO','DhLWzq','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJl3yX','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Dg9Rzw4','ywjVCNq','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','z2XTltqUnW','BwfW','AxneB25L','Aw5WDxrFANnVBL9KzwX0yq','zMv0y2HjBxbS','yxnZAxn0yw50lq','ChjVDMLKzxjFCMv0CNK','DxjS','z3b0ltuUna','zMXHDe1HCa','B3v0Chv0sw5KzxHuB0nHBgXjza','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','Dg9VBenHBgXpCMrLCG','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','y29UC3vTzvnZzuv2zw50','B3bLBMfPlxjLC3bVBNnLCW','C3rHDhvZ','yw50AhjVCgLJx3rOAw5RAw5N','y29UBMvJDgLUzW','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','Bw9KzwXZrgv2uhjVDMLKzxjjza','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','zMLUAxnO','CMvZB2X2zq','zgvJB2rL','y3jLzgvUDgLHBa','y29UDgvUDf9PBMrLEa','CgfYC2u','y2XHDwrLlxnVBM5LDc00lJu','Dgv4Df9KzwX0yq','zNvUy3rPB25Fy2fSBa','zMLUAxnOx3jLyxnVBG','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBs92mq','C3rYzwfT','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','zxzLBNq6','C29Tzq','D2vIu29JA2v0rMfJDg9YEq','Ahr0Chm6lY9VCgvUy29Kzs5HAs96zw4Vz28VDJe','C2vZC2LVBG','z2v0tw9KzwXZ'];_0x2423=function(){return _0x11e549;};return _0x2423();}function getDefaultModel(){const _0x557a9f={_0x12a1ac:0x4a},_0x228cd4={_0x46034a:0x114,_0x485f6c:0x3f,_0x178e9e:0x198};function _0x365981(_0x1c7c6c,_0x45fe24,_0xc43532,_0x77aba9){return _0x5b3424(_0x1c7c6c-_0x228cd4._0x46034a,_0x77aba9-_0x228cd4._0x485f6c,_0xc43532-_0x228cd4._0x178e9e,_0xc43532);}return data[_0x365981(-_0x557a9f._0x12a1ac,-0xf7,-0x89,-0x14f)];}function getCliDefaultModel(){return data['cliDefaultModel'];}function getProviderLabel(_0x4cf56d){const _0xed36f3={_0x55efbf:0x4e,_0x30570b:0x14d,_0x209d55:0x13d,_0x11529d:0x3a,_0x93713c:0x1c1,_0x3816aa:0x6c,_0x487b15:0x118},_0x44a111={_0x6ad1c7:0x105,_0x5c7300:0x2bb,_0x198624:0x161},_0x73f7de={_0x2d8b53:0x1f3};function _0xad8cf6(_0x171d90,_0x46bef1,_0x14bd65,_0x479b2d){return _0x3dbb2c(_0x171d90-0xe4,_0x171d90- -_0x73f7de._0x2d8b53,_0x14bd65-0xf5,_0x46bef1);}const _0x27e954=findProviderKey(_0x4cf56d);function _0x4fed5e(_0xae4020,_0x1c38bd,_0x357a5f,_0x13e9c5){return _0x3dbb2c(_0xae4020-_0x44a111._0x6ad1c7,_0x13e9c5-_0x44a111._0x5c7300,_0x357a5f-_0x44a111._0x198624,_0x1c38bd);}return _0x27e954?data[_0xad8cf6(-_0xed36f3._0x55efbf,-_0xed36f3._0x30570b,-_0xed36f3._0x209d55,_0xed36f3._0x11529d)][_0x27e954][_0xad8cf6(0x126,_0xed36f3._0x93713c,_0xed36f3._0x3816aa,_0xed36f3._0x487b15)]:void 0x0;}function getProviderDefaultModel(_0x59db7e){const _0x553f68={_0x211a93:0x135,_0x3030ed:0x1d8},_0x596ddf={_0x30e836:0xe1},_0x547f41=findProviderKey(_0x59db7e);function _0x372ab7(_0x42eb68,_0x2a9569,_0x913f4b,_0x5a969e){return _0x3dbb2c(_0x42eb68-0x177,_0x42eb68- -0x70,_0x913f4b-0xde,_0x2a9569);}if(!_0x547f41)return void 0x0;function _0x5621df(_0x4f0e72,_0x471f77,_0x5cae3f,_0x1375d3){return _0x3dbb2c(_0x4f0e72-_0x596ddf._0x30e836,_0x4f0e72- -0x21f,_0x5cae3f-0x139,_0x1375d3);}return data[_0x372ab7(_0x553f68._0x211a93,0x23b,0x1df,0x173)][_0x547f41][_0x372ab7(_0x553f68._0x3030ed,0x156,0x261,0x194)];}function getProviderDefaultModels(_0x15a205){const _0x46bd6c={_0x7c0cdf:0x44d,_0xa6bdac:0x2a1,_0x59f66a:0x12e},_0x512947={_0x32d8b3:0x11,_0xe503cf:0x1ed},_0x1f0a5e={_0xfdd123:0x6,_0x23b783:0x1e},_0x4986a5=findProviderKey(_0x15a205);function _0x2c55d7(_0x25aafc,_0x68b24c,_0x13b5b1,_0x657d77){return _0x3dbb2c(_0x25aafc-_0x1f0a5e._0xfdd123,_0x25aafc- -0xea,_0x13b5b1-_0x1f0a5e._0x23b783,_0x68b24c);}if(!_0x4986a5)return[];function _0x4ea87d(_0x237e83,_0x10b368,_0x490bff,_0x182b16){return _0x3dbb2c(_0x237e83-_0x512947._0x32d8b3,_0x10b368-0x1a3,_0x490bff-_0x512947._0xe503cf,_0x237e83);}return[...data[_0x4ea87d(_0x46bd6c._0x7c0cdf,0x348,0x364,0x23b)][_0x4986a5][_0x2c55d7(0x22a,_0x46bd6c._0xa6bdac,0x255,_0x46bd6c._0x59f66a)]??[]];}function providerSupportsModelFetch(_0xc6f37d){const _0xa5aced={_0x4c1f1d:0x14d,_0x21b6b3:0x13a,_0x41a720:0xea,_0x1b36d2:0x1f1,_0x4781e0:0xb5},_0x4fcf89={_0x476eb1:0x1f},_0x4b7aee=findProviderKey(_0xc6f37d);function _0x5d328d(_0x2093b9,_0x254412,_0x401603,_0x277587){return _0x5b3424(_0x2093b9-_0x4fcf89._0x476eb1,_0x2093b9-0xe4,_0x401603-0x18e,_0x254412);}if(!_0x4b7aee)return![];function _0x26236d(_0x414975,_0x11c9ea,_0x1d3b9f,_0x3577e2){return _0x3dbb2c(_0x414975-0x23,_0x414975-0x2ee,_0x1d3b9f-0x118,_0x1d3b9f);}return data[_0x5d328d(-_0xa5aced._0x4c1f1d,-0xa6,-_0xa5aced._0x21b6b3,-_0xa5aced._0x41a720)][_0x4b7aee][_0x5d328d(-0xf5,-_0xa5aced._0x1b36d2,-_0xa5aced._0x4781e0,-0x160)]??![];}function getOnboardingProviderKeys(){const _0x2c7c4a={_0x439dfd:0x4f8,_0x275fd0:0x434,_0x2c72d2:0x425},_0x375928={_0xd5d829:0x79,_0x389a37:0x665,_0x4b93b3:0x178};function _0x26fe39(_0x2a559b,_0x4048b5,_0x1e79d0,_0x482e6d){return _0x5b3424(_0x2a559b-_0x375928._0xd5d829,_0x1e79d0-_0x375928._0x389a37,_0x1e79d0-_0x375928._0x4b93b3,_0x482e6d);}return Object['keys'](data[_0x26fe39(0x3db,_0x2c7c4a._0x439dfd,_0x2c7c4a._0x275fd0,_0x2c7c4a._0x2c72d2)]);}var USD_TICKS_PER_DOLLAR=0x2540be400;function normalizeOpenRouterReportedCost(_0x586954,_0x30ad44){const _0x291660={_0x11f7a3:0x5a1,_0x48ae54:0x53f,_0x17592f:0x5a3,_0x3ec6f7:0x5ec,_0x4f944d:0x500,_0x36998b:0x37e,_0x59ad94:0x423},_0xf02bf5={_0x15f864:0x177,_0x21e6b0:0x2ef};function _0xe46c26(_0x2a9273,_0x29fe05,_0x573000,_0x55fc43){return _0x3dbb2c(_0x2a9273-_0xf02bf5._0x15f864,_0x29fe05-_0xf02bf5._0x21e6b0,_0x573000-0x1cb,_0x2a9273);}if(_0x586954!=='openrouter')return void 0x0;function _0x8b5562(_0x478fd2,_0x4da703,_0x17bb88,_0x1a359d){return _0x5b3424(_0x478fd2-0x116,_0x478fd2-0x587,_0x17bb88-0x1e0,_0x17bb88);}if(typeof _0x30ad44!==_0xe46c26(0x616,_0x291660._0x11f7a3,_0x291660._0x48ae54,_0x291660._0x17592f)||!Number[_0xe46c26(0x529,_0x291660._0x3ec6f7,_0x291660._0x4f944d,0x5ef)](_0x30ad44)||_0x30ad44<0x0)return void 0x0;const _0x56e157=Math[_0x8b5562(_0x291660._0x36998b,_0x291660._0x59ad94,0x391,0x3ec)](_0x30ad44*USD_TICKS_PER_DOLLAR);if(!Number['isSafeInteger'](_0x56e157))return void 0x0;return{'amountUsdTicks':_0x56e157,'source':'openrouter'};}function normalizeXaiReportedCost(_0x124082,_0x5b4217){const _0x3bf20d={_0x1e53be:0x1ce,_0x25a058:0x21a,_0x3565e9:0x123,_0x423c9e:0xfc,_0x4e9205:0x9a,_0x204638:0x12,_0x821711:0x29b,_0x108948:0x2c9,_0x183c9c:0x1bb,_0x341fef:0x140},_0x30b761={_0x2c744a:0x309,_0x109512:0x193},_0x514b8b={_0x57d7c9:0x247};function _0x426bc3(_0x2caab0,_0x520117,_0x10e5f9,_0x30f94b){return _0x5b3424(_0x2caab0-0x15a,_0x520117-_0x514b8b._0x57d7c9,_0x10e5f9-0x1b4,_0x10e5f9);}function _0x54a270(_0x123b9a,_0x5a7dd4,_0x3b4918,_0xd78ffc){return _0x5b3424(_0x123b9a-0x1e2,_0x3b4918-_0x30b761._0x2c744a,_0x3b4918-_0x30b761._0x109512,_0xd78ffc);}if(_0x124082!==_0x54a270(_0x3bf20d._0x1e53be,0x108,0x1bb,0xd1))return void 0x0;if(typeof _0x5b4217!==_0x426bc3(_0x3bf20d._0x25a058,_0x3bf20d._0x3565e9,_0x3bf20d._0x423c9e,0x180)||!Number[_0x426bc3(-_0x3bf20d._0x4e9205,_0x3bf20d._0x204638,0xf4,0x68)](_0x5b4217)||_0x5b4217<0x0)return void 0x0;return{'amountUsdTicks':_0x5b4217,'source':_0x54a270(_0x3bf20d._0x821711,_0x3bf20d._0x108948,_0x3bf20d._0x183c9c,_0x3bf20d._0x341fef)};}var NUVIN_PRICING_PRODUCTS={'anthropic':{'modelsDevProviderId':_0x5b3424(-0x35,-0xd1,-0x6,-0x60)},'commandcode':{},'deepseek':{'modelsDevProviderId':_0x3dbb2c(0xca,0x1ce,0x265,0x1d5)},'github':{'modelsDevProviderId':_0x3dbb2c(0x11c,0x10d,0x1ba,0x20),'chatCompletionsIncludeUsage':!![]},'grok':{'modelsDevProviderId':_0x5b3424(-0x1e1,-0x14e,-0xd0,-0x13b)},'minimax':{'modelsDevProviderId':_0x3dbb2c(0x1f5,0x17c,0x12c,0xc6)},'openai':{'modelsDevProviderId':_0x3dbb2c(0x204,0x265,0x2e1,0x34c),'chatCompletionsIncludeUsage':!![]},'codex':{},'opencode-go':{'modelsDevProviderId':_0x5b3424(-0x262,-0x1a4,-0x97,-0x271)},'openrouter':{'modelsDevProviderId':_0x3dbb2c(0x21e,0x1e1,0x2e2,0x1c0)},'xiaomi':{'modelsDevProviderId':_0x5b3424(-0x254,-0x1a7,-0x1a0,-0x19f)},'zai':{'modelsDevProviderId':_0x3dbb2c(0x1f2,0x1f6,0x1d8,0x1c8)}};function pricingProductForNuvinProvider(_0x5b0d65){const _0x10edae={_0x254306:0x3d4,_0x500226:0x46d},_0x1d1441={_0x440f8c:0x6e,_0x3e78c3:0x3ce},_0x29b2f6={_0x27cb5d:0x66e,_0x49c03d:0x1e5};function _0x165e94(_0xe17632,_0x296100,_0x3c0eb6,_0x45b7ec){return _0x5b3424(_0xe17632-0x188,_0xe17632-_0x29b2f6._0x27cb5d,_0x3c0eb6-_0x29b2f6._0x49c03d,_0x3c0eb6);}if(_0x5b0d65===void 0x0)return void 0x0;function _0x5c6cd5(_0x6f7913,_0x1efc1a,_0x25cf4b,_0x5d8b22){return _0x3dbb2c(_0x6f7913-_0x1d1441._0x440f8c,_0x6f7913- -_0x1d1441._0x3e78c3,_0x25cf4b-0x14,_0x25cf4b);}return Object[_0x165e94(0x39f,_0x10edae._0x254306,0x369,_0x10edae._0x500226)](NUVIN_PRICING_PRODUCTS)[_0x165e94(0x4d6,0x518,0x4ee,0x436)](([_0x5bbbce])=>_0x5bbbce===_0x5b0d65)?.[0x1];}function modelsDevProviderIdForNuvinProvider(_0x1ee298){const _0x550f41={_0x1fc607:0x300,_0x117a7b:0x3b8};function _0x324643(_0x2793d7,_0x3c6727,_0x267e85,_0x592494){return _0x5b3424(_0x2793d7-0x149,_0x267e85-0x63f,_0x267e85-0x1bf,_0x2793d7);}return pricingProductForNuvinProvider(_0x1ee298)?.[_0x324643(_0x550f41._0x1fc607,0x403,_0x550f41._0x117a7b,0x2af)];}function pricingProviderNeedsChatUsage(_0x4de5ae){const _0x575e28={_0x276723:0x104,_0x52d6f5:0x9e,_0x161f5e:0x3d,_0x51fc8f:0x1e,_0x1f9c6a:0x123,_0x2ef298:0x90},_0x42e3fe={_0x4d751f:0x207,_0x2d9013:0x14e},_0x38c980={_0x16661d:0x7,_0x58c507:0x283,_0x5358f5:0x192};function _0x5a3893(_0x32d440,_0x2d9321,_0x5b8c1a,_0x2b4de0){return _0x3dbb2c(_0x32d440-_0x38c980._0x16661d,_0x5b8c1a- -_0x38c980._0x58c507,_0x5b8c1a-_0x38c980._0x5358f5,_0x2d9321);}function _0x560b5c(_0xdde515,_0x3f25eb,_0x5295d3,_0x4b4c21){return _0x5b3424(_0xdde515-0x135,_0x3f25eb-_0x42e3fe._0x4d751f,_0x5295d3-_0x42e3fe._0x2d9013,_0x4b4c21);}return Object[_0x560b5c(0x42,0x7b,_0x575e28._0x276723,_0x575e28._0x52d6f5)](NUVIN_PRICING_PRODUCTS)[_0x5a3893(-_0x575e28._0x161f5e,-_0x575e28._0x51fc8f,-_0x575e28._0x1f9c6a,-_0x575e28._0x2ef298)](_0x141ad6=>_0x5a3893(-0x3b,-0x5c,-0x134,-0xf6)in _0x141ad6&&_0x141ad6[_0x5a3893(-0x219,-0xf1,-0x134,-0x64)]===_0x4de5ae&&_0x5a3893(0x24,0x77,0x93,0x86)in _0x141ad6&&_0x141ad6[_0x560b5c(0x1a4,0x147,0x109,0x251)]===!![]);}var SUPPORTED_MODELS_DEV_PROVIDER_IDS=[...new Set(Object[_0x3dbb2c(0x31e,0x24a,0x2cd,0x354)](NUVIN_PRICING_PRODUCTS)[_0x5b3424(-0x2c5,-0x293,-0x27b,-0x207)](_0x1f6529=>_0x3dbb2c(0x218,0x14f,0x221,0x1ba)in _0x1f6529?[_0x1f6529[_0x3dbb2c(0x60,0x14f,0x163,0x96)]]:[]))][_0x3dbb2c(0x33a,0x27e,0x385,0x2dd)](),OPENAI_CHAT_COMPLETIONS_SURFACE=_0x3dbb2c(0x253,0x1bb,0xc7,0x14c),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x3dbb2c(0x2d5,0x211,0x29f,0x14e),OPENAI_RESPONSES_SURFACE=_0x3dbb2c(0x1ac,0x149,0x166,0x1bf),OPENAI_RESPONSES_STREAM_SURFACE=_0x5b3424(-0x1d2,-0x1e6,-0x2d6,-0x25c),OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0x3dbb2c(0x127,0x14a,0x137,0x121)];[_0x3dbb2c(0x225,0x1d4,0x140,0x271)];constructor(_0xa4cefa,_0x4d7ba0,_0x406f3a){const _0x3a6b69={_0x2c1c03:0x326,_0x3d69aa:0x2fd,_0xe3213e:0x33d,_0x47b3d7:0x388,_0x42145b:0x23f},_0x41e42f={_0x336ebb:0xc9,_0x17a6a6:0x119};super(_0x406f3a);function _0x53fbb1(_0x206d84,_0x220e19,_0x382369,_0x298ae9){return _0x3dbb2c(_0x206d84-_0x41e42f._0x336ebb,_0x382369-_0x41e42f._0x17a6a6,_0x382369-0x10f,_0x206d84);}this[_0x50c414(_0x3a6b69._0x2c1c03,_0x3a6b69._0x3d69aa,_0x3a6b69._0xe3213e,_0x3a6b69._0x47b3d7)]='OpenAiApiError';function _0x50c414(_0x16a0dd,_0x137221,_0x4b68b4,_0x556931){return _0x3dbb2c(_0x16a0dd-0x65,_0x16a0dd-0x10b,_0x4b68b4-0x2,_0x137221);}this[_0x50c414(0x255,_0x3a6b69._0x42145b,0x2af,0x271)]=_0xa4cefa,this['body']=_0x4d7ba0;}};function stringifySystem(_0x589dc){const _0x3212e3={_0x737fb5:0x374,_0x4c3e02:0x4ca,_0x2eca3a:0x1e1,_0x14bcdf:0x192},_0x26806d={_0x501ebc:0x62},_0x128e1f={_0x5d56c8:0x88,_0x1d3c6d:0x71a,_0x1997e5:0x15a};function _0x3558b3(_0x1ce37d,_0x5161a3,_0x68c676,_0x810a99){return _0x5b3424(_0x1ce37d-_0x128e1f._0x5d56c8,_0x1ce37d-_0x128e1f._0x1d3c6d,_0x68c676-_0x128e1f._0x1997e5,_0x5161a3);}function _0x3dec0b(_0x2c85c6,_0x4c2049,_0x3dce73,_0xa2446d){return _0x3dbb2c(_0x2c85c6-0x1d7,_0x2c85c6-0xb3,_0x3dce73-_0x26806d._0x501ebc,_0xa2446d);}return _0x589dc[_0x3558b3(0x47f,_0x3212e3._0x737fb5,0x38b,_0x3212e3._0x4c3e02)](_0x1f9ecc=>_0x1f9ecc['text'])[_0x3dec0b(_0x3212e3._0x2eca3a,_0x3212e3._0x14bcdf,0x108,0x1f0)]('\x0a\x0a');}function createToolDefinitions(_0x5eb568){const _0x2cd572={_0x45634f:0x223,_0x161b05:0x229,_0x378e1b:0x158},_0x45fca6={_0x3b87e4:0x292,_0xfdf116:0x297,_0x9e019a:0x373,_0x30c7f3:0x132,_0x551ad0:0x132,_0x29c49f:0x168,_0x3c070c:0x181},_0x561ff4={_0x2f5e5e:0x1b6,_0x2c09ba:0x19c},_0x1da6f5={_0x1a5f10:0x181},_0x1f345b={_0x17b276:0x61,_0x3efe79:0x116};if(_0x5eb568[_0x382250(_0x2cd572._0x45634f,0x115,0x174,0x148)]===0x0)return void 0x0;function _0x592117(_0x2c6340,_0x2e8424,_0x1dfe8a,_0x327850){return _0x5b3424(_0x2c6340-_0x1f345b._0x17b276,_0x1dfe8a-0x60d,_0x1dfe8a-_0x1f345b._0x3efe79,_0x327850);}function _0x382250(_0x5eea5c,_0x32a15b,_0x25b925,_0xa21ad6){return _0x5b3424(_0x5eea5c-_0x1da6f5._0x1a5f10,_0xa21ad6-0x3b7,_0x25b925-0x188,_0x32a15b);}return _0x5eb568[_0x382250(_0x2cd572._0x161b05,_0x2cd572._0x378e1b,0x1f6,0x11c)](_0x3fd2d2=>{const _0x196ab1={_0x5c4a66:0x115};function _0x40d4a0(_0x31483c,_0x16aa17,_0x39f022,_0x5b9904){return _0x382250(_0x31483c-0x12c,_0x5b9904,_0x39f022-_0x196ab1._0x5c4a66,_0x39f022-0xf5);}function _0x1d7f8f(_0x3dcec9,_0x125d21,_0x3177bf,_0x4dd7bb){return _0x592117(_0x3dcec9-_0x561ff4._0x2f5e5e,_0x125d21-_0x561ff4._0x2c09ba,_0x4dd7bb- -0x676,_0x125d21);}return{'type':_0x40d4a0(_0x45fca6._0x3b87e4,0x3a4,_0x45fca6._0xfdf116,_0x45fca6._0x9e019a),'function':{'name':_0x3fd2d2['name'],'description':_0x3fd2d2[_0x1d7f8f(-_0x45fca6._0x30c7f3,-0x1a9,-0x7b,-_0x45fca6._0x551ad0)],'parameters':_0x3fd2d2[_0x1d7f8f(-0x282,-_0x45fca6._0x29c49f,-0xe3,-_0x45fca6._0x3c070c)]}};});}function isImageToolResultBlock(_0x124e7b){const _0x1465cc={_0x5927a9:0x56c,_0x456ebe:0x573,_0x3355c0:0x51c,_0x149f55:0x489,_0x13c7d1:0x346,_0x2e0e54:0x342,_0x149e79:0x52e,_0x2a2333:0x5d9,_0x38beb5:0x5b2,_0x4de893:0x4e3,_0x4dc6f1:0x440,_0x1fb73a:0x28f,_0x431536:0x342,_0x3c5ab2:0x510,_0x391bc1:0x522,_0x28e8ac:0x324,_0x5e7589:0x37a,_0x12cd3c:0x4ae,_0x20ac86:0x436},_0x58120a={_0x9a2e63:0x1b3,_0x48617b:0x20e};if(typeof _0x124e7b!==_0x50ef05(_0x1465cc._0x5927a9,_0x1465cc._0x456ebe,_0x1465cc._0x3355c0,0x477)||_0x124e7b===null||Array[_0x157c9b(_0x1465cc._0x149f55,0x45a,0x490,0x433)](_0x124e7b))return![];function _0x50ef05(_0x420332,_0x3e7061,_0x320928,_0x37076b){return _0x3dbb2c(_0x420332-_0x58120a._0x9a2e63,_0x37076b-_0x58120a._0x48617b,_0x320928-0x138,_0x320928);}function _0x157c9b(_0x5e1202,_0x441b82,_0x3936ca,_0x1f961b){return _0x3dbb2c(_0x5e1202-0x45,_0x3936ca-0x304,_0x3936ca-0x89,_0x1f961b);}const _0x2fcf4c=_0x124e7b;return _0x2fcf4c[_0x50ef05(0x239,0x352,_0x1465cc._0x13c7d1,_0x1465cc._0x2e0e54)]===_0x157c9b(_0x1465cc._0x149e79,0x4d9,_0x1465cc._0x2a2333,_0x1465cc._0x38beb5)&&_0x2fcf4c[_0x157c9b(_0x1465cc._0x4de893,_0x1465cc._0x4dc6f1,0x546,0x4b8)]?.[_0x50ef05(_0x1465cc._0x1fb73a,0x2cd,0x42a,_0x1465cc._0x431536)]===_0x157c9b(0x5cd,0x5f4,_0x1465cc._0x3c5ab2,_0x1465cc._0x391bc1)&&typeof _0x2fcf4c['source']['media_type']===_0x50ef05(0x384,_0x1465cc._0x28e8ac,0x3aa,_0x1465cc._0x5e7589)&&typeof _0x2fcf4c[_0x157c9b(0x470,0x47f,0x546,0x5ac)][_0x50ef05(_0x1465cc._0x12cd3c,0x485,0x44f,_0x1465cc._0x20ac86)]==='string';}function getToolResultText(_0x257094){const _0x5672d4={_0x59bc80:0x21c,_0x5a48c3:0x2ab,_0x423c75:0x16c,_0x870cd6:0x281,_0x18a2eb:0x25b,_0x328065:0x184,_0x22e4f6:0x2c0,_0x3ac7be:0x2a6,_0x13446d:0x35f},_0x4ae2d0={_0x26ced9:0x2f,_0x74677d:0x10e,_0x571ffd:0x1ed,_0x48f16f:0x1c7,_0x501299:0x167},_0x1075b4={_0x1b7fe6:0x1f2},_0x181ba0={_0x1010ce:0x407};function _0x343dd1(_0x16d567,_0x3aa428,_0x1a0cbf,_0x5208f9){return _0x5b3424(_0x16d567-0x10a,_0x16d567-_0x181ba0._0x1010ce,_0x1a0cbf-0x4f,_0x5208f9);}function _0x44d514(_0x306998,_0x333746,_0x3e74ed,_0x504feb){return _0x5b3424(_0x306998-_0x1075b4._0x1b7fe6,_0x333746-0x515,_0x3e74ed-0xc5,_0x3e74ed);}if(typeof _0x257094===_0x44d514(_0x5672d4._0x59bc80,_0x5672d4._0x5a48c3,0x2a3,0x1af))return _0x257094;const _0x5d0421=_0x257094['filter'](_0x3b960b=>{const _0x297f2c={_0xb0f166:0xd0};function _0x10337f(_0x22ccf9,_0xef4290,_0x122e77,_0x58453c){return _0x44d514(_0x22ccf9-0x1a3,_0x22ccf9- -0x165,_0xef4290,_0x58453c-_0x297f2c._0xb0f166);}function _0x2321ed(_0x28347d,_0x2f1330,_0x202175,_0x1c7753){return _0x44d514(_0x28347d-0x10a,_0x202175- -0x4d2,_0x2f1330,_0x1c7753-0x163);}return typeof _0x3b960b===_0x2321ed(-0x127,-0xaa,-0x12a,-_0x4ae2d0._0x26ced9)&&_0x3b960b!==null&&_0x3b960b[_0x10337f(_0x4ae2d0._0x74677d,0x151,0x1bf,0x102)]===_0x2321ed(-_0x4ae2d0._0x571ffd,-0x190,-_0x4ae2d0._0x48f16f,-_0x4ae2d0._0x501299);})[_0x343dd1(_0x5672d4._0x423c75,0x12e,0x144,0x14b)](_0x793b40=>_0x793b40[_0x44d514(0x3b3,0x30b,0x20d,0x259)])['join']('\x0a\x0a')[_0x44d514(_0x5672d4._0x870cd6,_0x5672d4._0x18a2eb,0x1d7,_0x5672d4._0x328065)]();return _0x5d0421[_0x44d514(_0x5672d4._0x22e4f6,_0x5672d4._0x3ac7be,_0x5672d4._0x13446d,0x2ea)]>0x0?_0x5d0421:'Tool\x20returned\x20image\x20content.';}function getToolResultImages(_0x5ae2d9){const _0x311b40={_0x9099c4:0x235,_0x2872b1:0x8b,_0x44b323:0x170},_0x899179={_0x35c4ad:0x13f};function _0x362221(_0x476ac2,_0x332ac8,_0x3d546e,_0x35bd53){return _0x3dbb2c(_0x476ac2-0x2f,_0x332ac8- -0x65,_0x3d546e-0x154,_0x3d546e);}function _0x10cd46(_0x46d143,_0x486c6f,_0x32d927,_0x4c3797){return _0x3dbb2c(_0x46d143-_0x899179._0x35c4ad,_0x486c6f-0x288,_0x32d927-0x1b7,_0x46d143);}return Array[_0x362221(0x1fb,0x127,_0x311b40._0x9099c4,_0x311b40._0x2872b1)](_0x5ae2d9)?_0x5ae2d9[_0x362221(0x251,0x263,0x272,_0x311b40._0x44b323)](isImageToolResultBlock):[];}function parseToolInput2(_0x2ce615){const _0x248b91={_0xfc4520:0x2e7,_0x5c3324:0x44d,_0x2eda8b:0x3cb},_0x5373cf={_0x498cc1:0x1a};function _0x532930(_0x1c665d,_0x26f4f1,_0x106a5c,_0xc7dc45){return _0x5b3424(_0x1c665d-0x15c,_0xc7dc45-0x60d,_0x106a5c-_0x5373cf._0x498cc1,_0x106a5c);}if(_0x2ce615['length']===0x0)return{};try{return JSON[_0x532930(_0x248b91._0xfc4520,_0x248b91._0x5c3324,_0x248b91._0x2eda8b,0x38d)](_0x2ce615);}catch{return _0x2ce615;}}function isResponsesReasoningItem(_0x2d68da){const _0x24204c={_0x53b495:0x9a,_0x178d52:0x2aa,_0x12db10:0x3de,_0x4a7832:0x473,_0x44e9cc:0x3b1,_0x150941:0x3a6},_0x57325c={_0x2b7b48:0x6e,_0x4a5bbb:0x47},_0x1014c8={_0x27fd7a:0x5b,_0xa68a58:0x112};function _0x4f5a14(_0x13557f,_0x2b79bd,_0x55d157,_0x11e317){return _0x5b3424(_0x13557f-_0x1014c8._0x27fd7a,_0x13557f-0x4a,_0x55d157-_0x1014c8._0xa68a58,_0x11e317);}function _0x4851e9(_0x1c5686,_0xdc85cf,_0x2d9cd2,_0x862858){return _0x5b3424(_0x1c5686-_0x57325c._0x2b7b48,_0xdc85cf-0x715,_0x2d9cd2-_0x57325c._0x4a5bbb,_0x2d9cd2);}return typeof _0x2d68da===_0x4f5a14(-0x123,-0x30,-_0x24204c._0x53b495,-0x121)&&_0x2d68da!==null&&_0x4f5a14(-0x258,-0x192,-_0x24204c._0x178d52,-0x18a)in _0x2d68da&&_0x2d68da[_0x4851e9(_0x24204c._0x12db10,_0x24204c._0x4a7832,_0x24204c._0x44e9cc,_0x24204c._0x150941)]==='reasoning';}function isResponsesMessageItem(_0x688a9c){const _0x2547cf={_0x1c3fca:0xbe,_0x26357a:0xbd,_0x15fd4a:0x17b,_0x297cbd:0x391,_0x362d19:0x454,_0x4b22d6:0x34e},_0x752934={_0x4678eb:0x327},_0x9a7473={_0x7786f3:0x320};function _0x2e4748(_0x151c7c,_0x18954e,_0x23137b,_0x1db078){return _0x3dbb2c(_0x151c7c-0x48,_0x1db078-_0x9a7473._0x7786f3,_0x23137b-0xc3,_0x18954e);}function _0x1fe688(_0xb26bc3,_0x5999c7,_0x423b49,_0x33a3e9){return _0x3dbb2c(_0xb26bc3-0x1e0,_0x5999c7- -_0x752934._0x4678eb,_0x423b49-0x1e9,_0xb26bc3);}return typeof _0x688a9c===_0x1fe688(-0x119,-_0x2547cf._0x1c3fca,-_0x2547cf._0x26357a,-_0x2547cf._0x15fd4a)&&_0x688a9c!==null&&_0x2e4748(0x3f6,_0x2547cf._0x297cbd,0x4f6,_0x2547cf._0x362d19)in _0x688a9c&&_0x688a9c[_0x2e4748(_0x2547cf._0x4b22d6,0x53b,0x4fa,0x454)]==='message';}function isResponsesFunctionCallItem(_0x195dcf){const _0x2f4e1f={_0x2f36ad:0x3ab,_0x5a7c64:0x3d3,_0x11a41a:0x2ca,_0x1c1cba:0x214,_0x4250e9:0x2fe,_0x40b457:0x302},_0x338545={_0x37058a:0x504},_0x2342a8={_0x56da4c:0xe0};function _0x321eed(_0x496ff2,_0x118c3b,_0x4c64ea,_0x5d5255){return _0x3dbb2c(_0x496ff2-0x69,_0x118c3b-_0x2342a8._0x56da4c,_0x4c64ea-0x1ae,_0x5d5255);}function _0x235365(_0x5a50ad,_0x26edf8,_0x7643e6,_0x3fdfc6){return _0x5b3424(_0x5a50ad-0x17,_0x3fdfc6-_0x338545._0x37058a,_0x7643e6-0x1aa,_0x26edf8);}return typeof _0x195dcf===_0x235365(_0x2f4e1f._0x2f36ad,0x3b1,_0x2f4e1f._0x5a7c64,0x397)&&_0x195dcf!==null&&'type'in _0x195dcf&&_0x195dcf[_0x321eed(_0x2f4e1f._0x11a41a,_0x2f4e1f._0x1c1cba,_0x2f4e1f._0x4250e9,_0x2f4e1f._0x40b457)]==='function_call';}function createContentBlocks(_0x143d95,_0x260652,_0x50b3d0){const _0x37ad2f={_0x18db0c:0xe7,_0x2fc772:0x8d,_0x51af2e:0x5,_0x18eaec:0x20b,_0x49c1d1:0x164,_0x511070:0x4ab,_0xe28f1b:0x497,_0x4f678f:0x2ff,_0x51da2d:0x3e1,_0x2dc1ac:0x38a,_0x25cfb8:0x582,_0xb875d9:0x5d0,_0x242a0a:0x52a,_0x18ec35:0x446,_0x462db7:0x4a0,_0x32c911:0x148,_0x196493:0x128,_0xd5cdef:0x3ae,_0x320780:0x36b,_0x541a10:0x343,_0x59620d:0x92,_0xabd6d2:0x3e1,_0x560636:0x4b6,_0x2f82f2:0x202,_0x69a1d1:0x19d,_0x44d1d8:0xfe,_0xa625a0:0x8,_0x407538:0x335,_0x1ab3f8:0x437,_0x5aaedd:0x360,_0x3fa8a4:0x70,_0x45d4c5:0x40},_0x3f9813={_0x39b024:0x177,_0x48398a:0x144},_0x2bc37f={_0xe8bff6:0x1bb,_0x207041:0xdf},_0x3f2e19=[];_0x50b3d0&&_0x50b3d0[_0x2aef50(-_0x37ad2f._0x18db0c,-0xd4,_0x37ad2f._0x2fc772,_0x37ad2f._0x51af2e)]>0x0&&_0x3f2e19[_0x2aef50(_0x37ad2f._0x18eaec,0x19e,0x228,_0x37ad2f._0x49c1d1)]({'type':_0x2487c2(0x3a0,0x53a,_0x37ad2f._0x511070,0x3f0),'summary':[],'text':_0x50b3d0});_0x143d95[_0x2487c2(_0x37ad2f._0xe28f1b,_0x37ad2f._0x4f678f,_0x37ad2f._0x51da2d,_0x37ad2f._0x2dc1ac)]>0x0&&_0x3f2e19[_0x2487c2(_0x37ad2f._0x25cfb8,_0x37ad2f._0xb875d9,0x540,0x510)]({'type':_0x2487c2(_0x37ad2f._0x242a0a,0x383,_0x37ad2f._0x18ec35,_0x37ad2f._0x462db7),'text':_0x143d95});function _0x2aef50(_0xc865a2,_0x240840,_0x18b9e8,_0x2673e2){return _0x5b3424(_0xc865a2-_0x2bc37f._0xe8bff6,_0x2673e2-0x274,_0x18b9e8-_0x2bc37f._0x207041,_0x18b9e8);}for(const _0x3daf67 of _0x260652){if(_0x3daf67['id'][_0x2aef50(0x5,-_0x37ad2f._0x32c911,-_0x37ad2f._0x196493,-0x46)]()[_0x2487c2(_0x37ad2f._0xd5cdef,_0x37ad2f._0x320780,_0x37ad2f._0x51da2d,_0x37ad2f._0x541a10)]===0x0||_0x3daf67[_0x2aef50(_0x37ad2f._0x59620d,-0x2a,0x25,0x5f)]['name']['trim']()[_0x2487c2(0x313,0x427,_0x37ad2f._0xabd6d2,_0x37ad2f._0x560636)]===0x0)continue;_0x3f2e19[_0x2aef50(_0x37ad2f._0x2f82f2,_0x37ad2f._0x69a1d1,0x263,0x164)]({'type':'tool_use','id':_0x3daf67['id'],'name':_0x3daf67[_0x2aef50(0xb6,0xb,_0x37ad2f._0x44d1d8,0x5f)][_0x2aef50(-_0x37ad2f._0xa625a0,0x19d,0x10d,0xb9)],'input':parseToolInput2(_0x3daf67[_0x2487c2(_0x37ad2f._0x407538,_0x37ad2f._0x1ab3f8,0x43b,_0x37ad2f._0x5aaedd)][_0x2aef50(-0x2a,_0x37ad2f._0x3fa8a4,0xbb,-_0x37ad2f._0x45d4c5)])});}function _0x2487c2(_0x2c98e8,_0x223f6b,_0x3e93ca,_0x4b92b8){return _0x5b3424(_0x2c98e8-_0x3f9813._0x39b024,_0x3e93ca-0x650,_0x3e93ca-_0x3f9813._0x48398a,_0x2c98e8);}return _0x3f2e19;}function createUsage(_0x4ebe94,_0x1e0cba){const _0x144f7d={_0x38c7d5:0x73,_0x215e9b:0x43,_0x120cac:0x96,_0xdf616d:0x126,_0x25c99a:0x28,_0x20fc63:0x118,_0x2018ae:0x1e0,_0xf9710e:0xbb},_0x59f61d={_0x150c3d:0x136,_0x574799:0x18f,_0x420c2b:0x19a};function _0x1eb5f5(_0x41da0d,_0x2370ed,_0x5351c3,_0x565d3c){return _0x3dbb2c(_0x41da0d-0x6,_0x565d3c- -0x8f,_0x5351c3-0x1f,_0x2370ed);}const _0xcd8c2e=normalizeOpenRouterReportedCost(_0x1e0cba[_0x614c04(0xbf,_0x144f7d._0x38c7d5,-_0x144f7d._0x215e9b,0x69)]['pricingProviderId'],_0x4ebe94?.['cost']),_0x12b3ca=_0x4ebe94?.[_0x614c04(_0x144f7d._0x120cac,_0x144f7d._0xdf616d,0x7c,_0x144f7d._0x25c99a)]?.['cached_tokens'],_0xe74db6=_0x4ebe94?.[_0x1eb5f5(0x234,_0x144f7d._0x20fc63,0x252,_0x144f7d._0x2018ae)]?.['cache_write_tokens'],_0x284e43=_0x4ebe94?.[_0x614c04(0x1d,-0xdd,-0x32,-0x8e)]?.['reasoning_tokens'];function _0x614c04(_0x3166fb,_0x272d1e,_0x37cc1b,_0x553079){return _0x5b3424(_0x3166fb-_0x59f61d._0x150c3d,_0x553079-_0x59f61d._0x574799,_0x37cc1b-_0x59f61d._0x420c2b,_0x3166fb);}return{'inputTokens':_0x4ebe94?.[_0x1eb5f5(0x258,_0x144f7d._0xf9710e,0x213,0x155)]??0x0,'outputTokens':_0x4ebe94?.['completion_tokens']??0x0,..._0x284e43!==void 0x0?{'reasoningTokens':_0x284e43}:{},..._0x12b3ca!==void 0x0?{'cacheReadInputTokens':_0x12b3ca}:{},..._0xe74db6!==void 0x0?{'cacheCreationInputTokens':_0xe74db6}:{},..._0xcd8c2e!==void 0x0?{'reportedCost':_0xcd8c2e}:{}};}function resolveReasoningVisibility2(_0x4f3073){const _0x1a688b={_0x3ef448:0x144,_0x361624:0x169},_0x47be11={_0x283d94:0x20,_0x47fb1d:0x26f};function _0x14ea3a(_0x1f2181,_0x22ee92,_0x1c726b,_0x23d133){return _0x3dbb2c(_0x1f2181-_0x47be11._0x283d94,_0x1c726b- -_0x47be11._0x47fb1d,_0x1c726b-0x19d,_0x1f2181);}return _0x4f3073[_0x14ea3a(_0x1a688b._0x3ef448,0x44,0x5e,_0x1a688b._0x361624)]?.['visibility']??'user-visible';}function isUserVisibleReasoning(_0x1fe6ea){const _0x31ff0d={_0x1d754a:0x28a,_0x2bec1d:0x27b,_0x16bcdd:0x103},_0x16b9b6={_0x44d5f0:0x28c,_0x396ed3:0x154},_0x1e0b56={_0xf070b9:0x1e4};function _0x591bf0(_0x431d60,_0x18bbc6,_0x126c3c,_0x40534e){return _0x5b3424(_0x431d60-_0x1e0b56._0xf070b9,_0x126c3c-0x393,_0x126c3c-0x1a0,_0x18bbc6);}function _0x21aab3(_0x4c2de4,_0x6bfd49,_0x81400a,_0x5929db){return _0x5b3424(_0x4c2de4-0x1dc,_0x6bfd49-_0x16b9b6._0x44d5f0,_0x81400a-_0x16b9b6._0x396ed3,_0x5929db);}return resolveOpenAiReasoningConfig(_0x1fe6ea[_0x591bf0(0x2fa,0x1b9,_0x31ff0d._0x1d754a,_0x31ff0d._0x2bec1d)])!==void 0x0&&resolveReasoningVisibility2(_0x1fe6ea)===_0x21aab3(-_0x31ff0d._0x16bcdd,-0x27,-0x10d,-0x110);}function createChatRequestBody(_0x59f970,_0xcbdc80){const _0x227957={_0x46d218:0x1d3,_0x6c115c:0x162,_0x455bc5:0x1ea,_0x564d31:0x162,_0x55a217:0x166,_0x1c8162:0x2fd,_0x204892:0xcd,_0x1d861b:0xe6,_0x2e3fda:0x150,_0x5c0198:0x324,_0x22f0b2:0x349,_0x11e595:0x24f,_0x46486b:0x221,_0x570639:0x4b,_0x3673a5:0xee,_0x19c92f:0x143,_0x5f1e2d:0x152,_0x37ed21:0x1f,_0x1b7718:0x68,_0x4465cf:0x134,_0x5b45fd:0xb5,_0x5bff2f:0x48,_0x5c48fd:0x299,_0x17c648:0x33c,_0x4a18ea:0x159,_0x470e13:0x6,_0x188dfd:0x1b8,_0x46bbbb:0xde,_0x49e791:0x275,_0x3939e1:0x214,_0x489f4b:0x2a1,_0x5be40c:0x71,_0x49ced3:0xb3,_0x438660:0x372,_0x18f1d8:0x2c5,_0x2461f0:0x262,_0x188c50:0x7d,_0x489643:0x30,_0xf63d5:0x107,_0x1e2fd0:0x1fa,_0x3c3284:0x129,_0x3f763a:0x104,_0x1cf80b:0xa4,_0x5becc6:0x29e,_0x15c7dd:0x4a,_0x547261:0x17b,_0x295504:0x70,_0x113b0f:0x47,_0x3136e4:0x30d,_0x36798f:0x2ff,_0x48c714:0x234,_0x42ffc8:0x169,_0xa38d54:0x1ea,_0x42eb11:0x18,_0x197168:0xc5,_0x3380bc:0x255,_0x810187:0x337,_0x354566:0x352,_0x27729a:0x194,_0x390fd8:0x22f,_0x5a913e:0x14f,_0x1ea14b:0x60,_0x1a3fd1:0x68,_0x599d3a:0xda,_0x3becc9:0x18c,_0x2d73ce:0x2a3,_0xe2b3e5:0x10a,_0x3faf02:0x1e3,_0x49daf1:0x3f5,_0x6699f2:0x350,_0xa7fbd7:0x261,_0x4259f3:0x439,_0x21b499:0x3c2,_0x3c0fd9:0x36b,_0x587c8f:0x116,_0x1ed987:0x7f,_0x587c7c:0x219,_0x472861:0x169,_0x4af11e:0x307,_0xd8e696:0x2e8,_0x394629:0x278,_0x505dba:0x33b,_0x20605f:0x37c,_0x1a2be4:0x26c,_0x47622d:0x1d9,_0x581e5c:0x11d,_0x49e0f0:0x1c2,_0x60529d:0x180,_0x51d74b:0x20d,_0xea29df:0x233,_0x502ddc:0x103,_0x4cf9b5:0x6d,_0x1d0a7a:0x29c,_0x3dfc07:0x2e6,_0x185291:0x3ee,_0x1eedef:0x1af,_0x192f94:0x12,_0x340a9c:0x115,_0x394d11:0x2d,_0x20cafc:0x62,_0x32b79e:0x3df,_0x4755c0:0x304,_0x30d935:0x291,_0x1cbfca:0x30,_0x124ce9:0x1a,_0x56ca05:0xaf,_0xec056:0x2fa,_0x5d49e3:0x3a1,_0x3faa2d:0x2a5,_0x448417:0x30e,_0x1c892f:0x215,_0x415a0b:0x1e7},_0x59b9bd={_0x5ad889:0xf,_0xfd1a65:0x111,_0x1a6756:0x106,_0x447c86:0x24c,_0x5493bd:0x15d,_0x5c8565:0x16d,_0xe820f:0x19d,_0x44979e:0x14a,_0x4d0d7:0x1e3,_0x20f95c:0xe8,_0x413d88:0xb5,_0x5e2e48:0x251,_0x3944f8:0x145,_0xded17c:0xed,_0x42df4a:0x61,_0x1435da:0x21,_0x50633f:0x18e,_0x34f523:0x1cd,_0x5e73a8:0x4d,_0x9c598f:0xb9,_0x47b35e:0xd8,_0x363d56:0x101,_0x3a0784:0x143,_0x4ed025:0x1ff,_0x5b112c:0x2a9,_0x3b2db7:0x21c,_0x219dbf:0x18f,_0x1717fa:0x14c,_0x595bd6:0x11c,_0x453633:0x183,_0x542c30:0x1e9,_0x26ab5b:0xc1,_0x337691:0x132,_0x47451e:0xb4,_0x16bfea:0xba,_0x5d1bb2:0x133,_0x18606b:0x26a,_0x5c1551:0x39a,_0x3ef194:0x16b,_0x20dec1:0xb4,_0x33a015:0x58,_0x2776fe:0x170,_0xc48904:0xed,_0x370acd:0x8,_0x2da4b3:0xb5},_0x1207ff={_0x11d0a4:0x151},_0x57832b=[];function _0x45cae1(_0x315c46,_0xd5cd21,_0x3e08ff,_0x510f3e){return _0x3dbb2c(_0x315c46-0x1,_0x510f3e- -0x164,_0x3e08ff-0x37,_0x3e08ff);}const _0x216c65=stringifySystem(_0x59f970[_0x7b687d(_0x227957._0x46d218,0x26a,0x22b,_0x227957._0x6c115c)]);_0x216c65[_0x7b687d(0x144,_0x227957._0x455bc5,0x2f5,0x19b)]>0x0&&_0x57832b[_0x45cae1(0x12d,0xb9,0x86,_0x227957._0x564d31)]({'role':_0x7b687d(_0x227957._0x55a217,0x26a,0x29d,0x22b),'content':_0x216c65});for(const _0x425e32 of _0x59f970[_0x7b687d(0x373,_0x227957._0x1c8162,0x3e8,0x3a3)]){const _0x29317d=[],_0x2be4a4=[],_0x14ba3c=[],_0x4312b9=()=>{const _0x212967={_0x43a51f:0xe};function _0x5ec0d5(_0x5ce88e,_0x5517d0,_0x578795,_0xe9d64a){return _0x7b687d(_0x5ce88e-0x5,_0x5ce88e- -0xfd,_0x578795-_0x1207ff._0x11d0a4,_0x5517d0);}function _0xba3e03(_0xb8592b,_0x1764dd,_0x283372,_0x246431){return _0x45cae1(_0xb8592b-_0x212967._0x43a51f,_0x1764dd-0x12f,_0xb8592b,_0x283372-0x147);}if(_0x425e32['role']==='assistant'){if(_0x29317d['length']===0x0&&_0x2be4a4[_0x5ec0d5(0xed,-_0x59b9bd._0x5ad889,_0x59b9bd._0xfd1a65,_0x59b9bd._0x1a6756)]===0x0)return;_0x57832b[_0x5ec0d5(_0x59b9bd._0x447c86,0x2bd,_0x59b9bd._0x5493bd,0x1c3)]({'role':_0xba3e03(0xb7,0x1d7,_0x59b9bd._0x5c8565,_0x59b9bd._0xe820f),'content':_0x29317d[_0xba3e03(0xfa,0x47,_0x59b9bd._0x44979e,_0x59b9bd._0x4d0d7)]>0x0?_0x29317d[_0x5ec0d5(0xb4,0xfa,_0x59b9bd._0x20f95c,_0x59b9bd._0x413d88)]('\x0a\x0a'):null,..._0x2be4a4[_0xba3e03(0x105,_0x59b9bd._0x5e2e48,0x14a,_0x59b9bd._0x3944f8)]>0x0?{'tool_calls':_0x2be4a4[_0xba3e03(0x15a,0x165,0x183,0x93)](0x0)}:{}}),_0x29317d[_0x5ec0d5(_0x59b9bd._0xded17c,0x116,_0x59b9bd._0x42df4a,_0x59b9bd._0x1435da)]=0x0;return;}if(_0x425e32[_0xba3e03(0x259,_0x59b9bd._0x50633f,0x27b,0x239)]===_0x5ec0d5(0x132,0xe2,0x240,_0x59b9bd._0x34f523)){if(_0x14ba3c[_0x5ec0d5(_0x59b9bd._0xded17c,0x16,_0x59b9bd._0x5e73a8,_0x59b9bd._0x9c598f)]===0x0)return;const _0x3166ff=_0x14ba3c[_0xba3e03(_0x59b9bd._0x47b35e,_0x59b9bd._0x363d56,_0x59b9bd._0x3a0784,_0x59b9bd._0x4ed025)](_0x21b07a=>_0x21b07a[_0x5ec0d5(0xba,0x102,0xd1,0x68)]==='image_url');_0x57832b[_0xba3e03(0x299,0x354,_0x59b9bd._0x5b112c,_0x59b9bd._0x3b2db7)]({'role':_0xba3e03(0x154,0x23b,_0x59b9bd._0x219dbf,_0x59b9bd._0x1717fa),'content':_0x3166ff?_0x14ba3c['splice'](0x0):_0x14ba3c[_0xba3e03(_0x59b9bd._0x595bd6,0x253,_0x59b9bd._0x453633,_0x59b9bd._0x542c30)](0x0)[_0xba3e03(0x1a6,0x39c,0x2ab,0x2b3)](_0x3e71e0=>_0x3e71e0[_0xba3e03(0x1df,0x31,0x117,0x87)]===_0x5ec0d5(0x152,0x12b,0x160,0x213))[_0x5ec0d5(_0x59b9bd._0x26ab5b,_0x59b9bd._0x337691,0x57,0x1b3)](_0x4bd221=>_0x4bd221[_0xba3e03(0xf9,0x18d,0x1af,0xdb)])[_0x5ec0d5(_0x59b9bd._0x47451e,0x1a8,0xa4,_0x59b9bd._0x16bfea)]('\x0a\x0a')});return;}if(_0x29317d[_0xba3e03(_0x59b9bd._0x5d1bb2,0xfe,0x14a,0x224)]===0x0)return;_0x57832b[_0xba3e03(_0x59b9bd._0x18606b,0x1d1,0x2a9,_0x59b9bd._0x5c1551)]({'role':_0x425e32[_0x5ec0d5(0x21e,_0x59b9bd._0x3ef194,0x2c6,0x204)],'content':_0x29317d[_0x5ec0d5(_0x59b9bd._0x20dec1,-0x52,_0x59b9bd._0x33a015,_0x59b9bd._0x2776fe)]('\x0a\x0a')}),_0x29317d[_0x5ec0d5(_0x59b9bd._0xc48904,0x2b,-_0x59b9bd._0x370acd,_0x59b9bd._0x2da4b3)]=0x0;};for(const _0x263154 of normalizeContent(_0x425e32[_0x45cae1(0x1b7,_0x227957._0x204892,_0x227957._0x1d861b,_0x227957._0x2e3fda)])){if(_0x263154['type']==='text'){_0x425e32['role']===_0x7b687d(_0x227957._0x5c0198,0x22f,0x30e,0x289)?_0x14ba3c[_0x7b687d(0x3f3,_0x227957._0x22f0b2,0x329,0x2df)]({'type':_0x7b687d(_0x227957._0x455bc5,_0x227957._0x11e595,0x275,_0x227957._0x46486b),'text':_0x263154[_0x45cae1(_0x227957._0x570639,_0x227957._0x3673a5,0x2b,0x68)]}):_0x29317d[_0x45cae1(0x219,0x23b,_0x227957._0x19c92f,_0x227957._0x6c115c)](_0x263154[_0x45cae1(_0x227957._0x5f1e2d,0x117,-_0x227957._0x37ed21,_0x227957._0x1b7718)]);continue;}if(_0x425e32[_0x45cae1(0xb3,0x143,0x18a,_0x227957._0x4465cf)]===_0x45cae1(-0x30,-0x15,-_0x227957._0x5b45fd,_0x227957._0x5bff2f)&&_0x263154[_0x45cae1(0x98,0xde,-0xc,-0x30)]===_0x7b687d(_0x227957._0x5c48fd,0x358,_0x227957._0x17c648,0x30c)){_0x14ba3c['push']({'type':_0x45cae1(0xfb,_0x227957._0x4a18ea,0x15f,0x128),'image_url':{'url':'data:'+_0x263154[_0x45cae1(-_0x227957._0x470e13,0x12d,_0x227957._0x188dfd,_0x227957._0x46bbbb)][_0x7b687d(_0x227957._0x49e791,_0x227957._0x3939e1,0x18d,_0x227957._0x489f4b)]+_0x45cae1(-0xbf,-_0x227957._0x5be40c,_0x227957._0x49ced3,0x3e)+_0x263154[_0x7b687d(_0x227957._0x438660,_0x227957._0x18f1d8,_0x227957._0x2461f0,0x3b2)]['data']}});continue;}if(_0x263154[_0x45cae1(-0x12d,0x63,-_0x227957._0x188c50,-_0x227957._0x489643)]===_0x7b687d(_0x227957._0xf63d5,_0x227957._0x1e2fd0,0x1bb,0x291)){_0x2be4a4[_0x45cae1(_0x227957._0x3c3284,0x1d7,0x1ac,0x162)]({'id':_0x263154['id'],'type':_0x45cae1(0x104,_0x227957._0x3f763a,-_0x227957._0x1cf80b,0x5d),'function':{'name':_0x263154[_0x7b687d(0x328,_0x227957._0x5becc6,0x33f,0x2c3)],'arguments':JSON['stringify'](_0x263154[_0x45cae1(0x172,_0x227957._0x15c7dd,_0x227957._0x547261,0x8f)]??{})}});continue;}if(_0x263154[_0x45cae1(-_0x227957._0x295504,-_0x227957._0x113b0f,-0xdd,-0x30)]!==_0x7b687d(_0x227957._0x3136e4,_0x227957._0x36798f,0x3c3,0x3d8))continue;_0x4312b9(),_0x57832b['push']({'role':'tool','content':getToolResultText(_0x263154[_0x45cae1(_0x227957._0x48c714,_0x227957._0x42ffc8,_0x227957._0xa38d54,0x150)]),'tool_call_id':_0x263154[_0x45cae1(0x141,-_0x227957._0x42eb11,_0x227957._0x197168,0xbc)]});const _0x1abe2b=getToolResultImages(_0x263154[_0x7b687d(_0x227957._0x3380bc,_0x227957._0x810187,0x3ae,_0x227957._0x354566)]);_0x1abe2b['length']>0x0&&_0x57832b[_0x45cae1(_0x227957._0x27729a,0x21d,0x1c0,0x162)]({'role':_0x7b687d(0x1ab,_0x227957._0x390fd8,0x248,_0x227957._0x5a913e),'content':[{'type':_0x45cae1(-_0x227957._0x1ea14b,-0xe,-0x95,_0x227957._0x1a3fd1),'text':_0x45cae1(0xf3,_0x227957._0x599d3a,0x1dd,_0x227957._0x3becc9)+_0x263154[_0x7b687d(0x1ab,_0x227957._0x2d73ce,0x367,0x1b5)]+'.'},..._0x1abe2b[_0x7b687d(_0x227957._0xe2b3e5,0x1be,0x1a5,_0x227957._0x3faf02)](_0x483bb0=>({'type':_0x45cae1(0x21b,0x1f9,0xee,0x128),'image_url':{'url':_0x7b687d(0x34b,0x383,0x2e2,0x486)+_0x483bb0[_0x7b687d(0x2f7,0x2c5,0x201,0x39e)][_0x45cae1(0x10b,0x12b,-0x3f,0x2d)]+';base64,'+_0x483bb0[_0x45cae1(0xd1,0x111,0x14,0xde)][_0x7b687d(0x22b,0x2ab,0x2ae,0x2e3)]}}))]});}_0x4312b9();}function _0x7b687d(_0x5af4e2,_0x1cdff5,_0x1ad64a,_0x3aa6e8){return _0x5b3424(_0x5af4e2-0x173,_0x1cdff5-0x459,_0x1ad64a-0x11f,_0x3aa6e8);}const _0x1c4e8c=_0x59f970[_0x7b687d(_0x227957._0x49daf1,_0x227957._0x6699f2,_0x227957._0xa7fbd7,_0x227957._0x4259f3)]?.[_0x7b687d(0x2f9,0x2d5,_0x227957._0x21b499,_0x227957._0x3c0fd9)]?void 0x0:_0x59f970[_0x45cae1(_0x227957._0x587c8f,_0x227957._0x1ed987,_0x227957._0x587c7c,_0x227957._0x472861)]?.[_0x7b687d(_0x227957._0x4af11e,_0x227957._0xd8e696,_0x227957._0x394629,0x236)];return{'model':_0x59f970[_0x7b687d(0x2c3,0x286,_0x227957._0x505dba,_0x227957._0x20605f)],'messages':_0x57832b,'stream':_0xcbdc80,..._0x59f970[_0x45cae1(0x15b,0x11d,0x1e8,0x17f)]!==void 0x0?_0x1c4e8c?{'max_completion_tokens':_0x59f970[_0x45cae1(_0x227957._0x1a2be4,0x1a7,0x96,0x17f)]}:{'max_tokens':_0x59f970[_0x45cae1(0xf9,_0x227957._0x47622d,_0x227957._0x581e5c,0x17f)]}:{},..._0x1c4e8c?.['effort']?{'reasoning_effort':_0x1c4e8c[_0x45cae1(_0x227957._0x49e0f0,0x194,0x118,_0x227957._0x60529d)]}:{},..._0xcbdc80&&pricingProviderNeedsChatUsage(_0x59f970[_0x45cae1(_0x227957._0x51d74b,0x120,_0x227957._0xea29df,0x14c)][_0x45cae1(0x62,0x82,_0x227957._0x502ddc,_0x227957._0x4cf9b5)])?{'stream_options':{'include_usage':!![]}}:{},...createToolDefinitions(_0x59f970[_0x7b687d(_0x227957._0x1d0a7a,_0x227957._0x3dfc07,0x2df,_0x227957._0x185291)])?{'tools':createToolDefinitions(_0x59f970[_0x45cae1(0xe4,_0x227957._0x1eedef,_0x227957._0x192f94,0xff)])}:{},..._0x59f970['outputFormat']?{'response_format':{'type':_0x45cae1(_0x227957._0x340a9c,-_0x227957._0x394d11,-0x9a,_0x227957._0x20cafc),'json_schema':{'name':_0x59f970[_0x7b687d(0x3c3,0x3a1,0x464,_0x227957._0x32b79e)]['name']??_0x7b687d(_0x227957._0x4755c0,0x38a,0x44b,0x3af),'schema':_0x59f970[_0x45cae1(_0x227957._0x30d935,0x227,0x156,0x1ba)][_0x45cae1(0xa6,_0x227957._0x1cbfca,_0x227957._0x124ce9,_0x227957._0x56ca05)],'strict':_0x59f970[_0x7b687d(_0x227957._0xec056,_0x227957._0x5d49e3,_0x227957._0x3faa2d,0x44e)][_0x7b687d(_0x227957._0x448417,_0x227957._0x1c892f,0x1c6,_0x227957._0x415a0b)]??!![]}}}:{}};}function createResponsesRequestBody(_0x41a0be,_0x9780ec,_0x1f6f1e){const _0x4ff30e=_0x1f6f1e?.(_0x41a0be);return{...toOpenAiResponsesRequest(_0x41a0be),..._0x9780ec?{'stream':!![]}:{},..._0x4ff30e!==void 0x0?{'prompt_cache_key':_0x4ff30e}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3fc51d,_0x39ccb4={}){const _0x87df41={_0x27731e:0x349,_0x4098dc:0x270,_0x45f6eb:0x19d,_0x4f7e9d:0xd7,_0x422a2d:0xa0,_0x8af779:0x8f,_0x329cc4:0xc,_0x4fe315:0x50,_0x3ec18f:0x36,_0x338d87:0x326,_0xf78089:0x2cf,_0x36bb40:0x30d},_0x265d31={_0x3469f5:0x14d,_0x310eaf:0x283},_0x34cce9={_0x32d8f8:0x44a,_0x5c1d5b:0x148};function _0x6987e7(_0x31900a,_0x130760,_0x32a8f1,_0x1eebbb){return _0x3dbb2c(_0x31900a-0x1ee,_0x31900a- -_0x34cce9._0x32d8f8,_0x32a8f1-_0x34cce9._0x5c1d5b,_0x130760);}function _0x2faead(_0x63b1db,_0x5161ce,_0x33db84,_0x400f7a){return _0x5b3424(_0x63b1db-_0x265d31._0x3469f5,_0x33db84-_0x265d31._0x310eaf,_0x33db84-0x55,_0x400f7a);}const _0x2e1ae1=toOpenAiResponsesRequest(_0x3fc51d);return{'type':'response.create',..._0x2e1ae1,..._0x39ccb4[_0x6987e7(-0x257,-_0x87df41._0x27731e,-_0x87df41._0x4098dc,-_0x87df41._0x45f6eb)]?{'input':_0x39ccb4[_0x2faead(_0x87df41._0x4f7e9d,-0x62,_0x87df41._0x422a2d,_0x87df41._0x8af779)]}:{},..._0x39ccb4[_0x2faead(_0x87df41._0x329cc4,-_0x87df41._0x4fe315,-_0x87df41._0x3ec18f,-0x2d)]!==void 0x0?{'prompt_cache_key':_0x39ccb4['promptCacheKey']}:{},..._0x39ccb4['previousResponseId']?{'previous_response_id':_0x39ccb4[_0x6987e7(-_0x87df41._0x338d87,-_0x87df41._0xf78089,-0x268,-_0x87df41._0x36bb40)]}:{},'store':![]};}function normalizeAssistantContent(_0x4c74b4){const _0x9562eb={_0xfb2444:0x1bc,_0x96d8fa:0x220,_0x39b8c0:0x2ff,_0x468efe:0x37f,_0xcc452:0x27e,_0x5366a9:0x1cf,_0x2201ab:0x28b,_0x47ecb2:0x207},_0x5d7e10={_0x43a2d6:0x22c,_0x53d8ca:0x2e1,_0x5e2788:0x150},_0x335d3a={_0x11fc36:0x1bd,_0x456c53:0x5ca},_0x4338ee={_0x3e5ba9:0x1d8};if(typeof _0x4c74b4==='string')return _0x4c74b4;function _0x19c968(_0x53499e,_0x57a5c7,_0x16f35b,_0xe3c9f1){return _0x3dbb2c(_0x53499e-0x9c,_0x16f35b- -0x3b9,_0x16f35b-_0x4338ee._0x3e5ba9,_0x57a5c7);}function _0x105e40(_0x34fa1a,_0x3ca544,_0x32b12f,_0x572d7a){return _0x5b3424(_0x34fa1a-_0x335d3a._0x11fc36,_0x32b12f-_0x335d3a._0x456c53,_0x32b12f-0x13b,_0x34fa1a);}if(!Array[_0x19c968(-_0x9562eb._0xfb2444,-_0x9562eb._0x96d8fa,-0x22d,-0x177)](_0x4c74b4))return'';return _0x4c74b4[_0x19c968(-_0x9562eb._0x39b8c0,-_0x9562eb._0x468efe,-_0x9562eb._0xcc452,-0x341)](_0x2bc174=>{const _0x5284ee={_0x24095a:0x3f,_0x223247:0xcc},_0x159136={_0x4d3003:0x93};function _0x40b784(_0xd781a0,_0x4f3b2c,_0x4ff908,_0x25d005){return _0x105e40(_0x25d005,_0x4f3b2c-_0x159136._0x4d3003,_0xd781a0- -0xa8,_0x25d005-0x8c);}function _0x4b736f(_0x345895,_0x6fdde6,_0x55b559,_0x4ebf22){return _0x19c968(_0x345895-0x2e,_0x55b559,_0x6fdde6- -_0x5284ee._0x24095a,_0x4ebf22-_0x5284ee._0x223247);}return _0x2bc174['type']===_0x4b736f(-0x1d3,-_0x5d7e10._0x43a2d6,-_0x5d7e10._0x53d8ca,-0x13d)?_0x2bc174[_0x4b736f(-_0x5d7e10._0x5e2788,-0x22c,-0x26c,-0x2cf)]:_0x2bc174[_0x4b736f(-0x2f4,-0x290,-0x323,-0x32a)];})[_0x19c968(-_0x9562eb._0x5366a9,-0x2c3,-_0x9562eb._0x2201ab,-_0x9562eb._0x47ecb2)]('');}function normalizeResponsesMessageContent(_0x333431){const _0x597ded={_0x2bdf92:0xce,_0x447dec:0xd5,_0x40ee20:0x2a,_0x2636da:0xf0},_0x3615ab={_0x3e57d0:0x24e,_0x1c3157:0x15b,_0xa2b669:0x7a,_0x251b21:0xa4,_0x1110df:0x12,_0xf59005:0x1bc,_0x2c4060:0x4d,_0x570c08:0x187,_0x414cf7:0xb3,_0x47ff17:0x30a,_0x59273a:0x290,_0x6e1f6b:0x6,_0x10c5f9:0x46,_0x1c373d:0x81,_0x560f74:0x137,_0x586976:0x46,_0xd17e84:0x129,_0x38dced:0x14a,_0x44ec0b:0x183,_0x8dd50c:0x258,_0x392b45:0x2fd},_0x2705cd={_0x371d4d:0x9f},_0xf75ca0={_0x23cb7a:0x83},_0x9bd1b6={_0x30fda6:0x2d2,_0x442941:0xfb};function _0x340f7e(_0x4769cf,_0x4fb589,_0x5a9e92,_0x554a16){return _0x5b3424(_0x4769cf-0x142,_0x5a9e92-_0x9bd1b6._0x30fda6,_0x5a9e92-_0x9bd1b6._0x442941,_0x554a16);}function _0x56a2b3(_0xe7efd0,_0x15ade3,_0x205839,_0x1a9b47){return _0x3dbb2c(_0xe7efd0-0x15a,_0x1a9b47- -_0xf75ca0._0x23cb7a,_0x205839-0x184,_0xe7efd0);}if(!Array[_0x56a2b3(_0x597ded._0x2bdf92,0x18f,0x1eb,0x109)](_0x333431))return'';return _0x333431['map'](_0x3f13ad=>{const _0x2de581={_0x4182d8:0x10,_0x5ecf47:0x3,_0x213745:0x341};if(!_0x3f13ad||typeof _0x3f13ad!==_0xd5ccf6(-_0x3615ab._0x3e57d0,-0x15f,-_0x3615ab._0x1c3157,-0x235))return'';function _0x5ed8b4(_0x122bc2,_0x490410,_0x322379,_0x5b47f1){return _0x56a2b3(_0x5b47f1,_0x490410-0x181,_0x322379-0x180,_0x322379- -_0x2705cd._0x371d4d);}function _0xd5ccf6(_0x3be568,_0x56fd8b,_0x227fe3,_0x217814){return _0x56a2b3(_0x3be568,_0x56fd8b-_0x2de581._0x4182d8,_0x227fe3-_0x2de581._0x5ecf47,_0x227fe3- -_0x2de581._0x213745);}const _0x13e931=_0x3f13ad;if(_0x13e931[_0x5ed8b4(-_0x3615ab._0xa2b669,_0x3615ab._0x251b21,_0x3615ab._0x1110df,-0x8e)]===_0xd5ccf6(-0x17e,-_0x3615ab._0xf59005,-0xea,-_0x3615ab._0x2c4060)&&typeof _0x13e931[_0x5ed8b4(0x8a,0x19c,0xaa,_0x3615ab._0x570c08)]===_0xd5ccf6(-0x19d,-0x270,-0x258,-0x345))return _0x13e931[_0x5ed8b4(_0x3615ab._0x414cf7,0x182,0xaa,-0x1d)];if(_0x13e931[_0xd5ccf6(-0x2ef,-_0x3615ab._0x47ff17,-_0x3615ab._0x59273a,-0x29c)]===_0x5ed8b4(-0x81,_0x3615ab._0x6e1f6b,_0x3615ab._0x10c5f9,-_0x3615ab._0x1c373d)&&typeof _0x13e931[_0x5ed8b4(0x26,_0x3615ab._0x560f74,_0x3615ab._0x586976,_0x3615ab._0xd17e84)]===_0xd5ccf6(-_0x3615ab._0x38dced,-_0x3615ab._0x44ec0b,-_0x3615ab._0x8dd50c,-_0x3615ab._0x392b45))return _0x13e931[_0xd5ccf6(-0x302,-0x1a6,-0x25c,-0x26b)];return'';})[_0x340f7e(-_0x597ded._0x447dec,0xf3,_0x597ded._0x40ee20,_0x597ded._0x2636da)]('');}function _0x3104(_0x493fcc,_0xb0714f){_0x493fcc=_0x493fcc-0x81;const _0x24237d=_0x2423();let _0x31046f=_0x24237d[_0x493fcc];if(_0x3104['QDfbai']===undefined){var _0x35dc1d=function(_0x529fba){const _0x30ae99='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d9b3a='',_0x5207c5='';for(let _0x39ec5c=0x0,_0x4daccc,_0xdf0479,_0x5bdd0b=0x0;_0xdf0479=_0x529fba['charAt'](_0x5bdd0b++);~_0xdf0479&&(_0x4daccc=_0x39ec5c%0x4?_0x4daccc*0x40+_0xdf0479:_0xdf0479,_0x39ec5c++%0x4)?_0x3d9b3a+=String['fromCharCode'](0xff&_0x4daccc>>(-0x2*_0x39ec5c&0x6)):0x0){_0xdf0479=_0x30ae99['indexOf'](_0xdf0479);}for(let _0x44900a=0x0,_0x44b5ac=_0x3d9b3a['length'];_0x44900a<_0x44b5ac;_0x44900a++){_0x5207c5+='%'+('00'+_0x3d9b3a['charCodeAt'](_0x44900a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5207c5);};_0x3104['QfIWNT']=_0x35dc1d,_0x3104['sPZWbI']={},_0x3104['QDfbai']=!![];}const _0x77d0b3=_0x24237d[0x0],_0x4c6958=_0x493fcc+_0x77d0b3,_0x5d2126=_0x3104['sPZWbI'][_0x4c6958];return!_0x5d2126?(_0x31046f=_0x3104['QfIWNT'](_0x31046f),_0x3104['sPZWbI'][_0x4c6958]=_0x31046f):_0x31046f=_0x5d2126,_0x31046f;}function extractOpenAiReasoningText(_0x1a4a29){const _0x5ae93d={_0x46d8ea:0x16a,_0x31167f:0x10c,_0x1a273e:0x17b,_0x3338d8:0x14c,_0x3e6376:0x132,_0x26f0b6:0x3d,_0x163667:0x1c3},_0xf985b1={_0x342289:0x161,_0x1c8af1:0x421,_0x3cc277:0x89};if(typeof _0x1a4a29[_0x4f4627(-_0x5ae93d._0x46d8ea,-_0x5ae93d._0x31167f,-_0x5ae93d._0x1a273e,-0xce)]==='string')return _0x1a4a29['text'];function _0x4f4627(_0x188e78,_0x10411e,_0xe7c743,_0x3b6416){return _0x5b3424(_0x188e78-0x164,_0x10411e-0xfe,_0xe7c743-0x100,_0x3b6416);}if(!Array[_0x4f4627(-0x167,-_0x5ae93d._0x3338d8,-0x11c,-0x1f3)](_0x1a4a29[_0x4f4627(-0x44,-0x24,-_0x5ae93d._0x3e6376,_0x5ae93d._0x26f0b6)]))return'';function _0x5c77ef(_0x137c8a,_0x3d31d4,_0x3c7329,_0x113d68){return _0x5b3424(_0x137c8a-_0xf985b1._0x342289,_0x137c8a-_0xf985b1._0x1c8af1,_0x3c7329-_0xf985b1._0x3cc277,_0x3d31d4);}return _0x1a4a29['content'][_0x4f4627(0x9e,-0x10,0x43,0x21)](_0x2cf2ad=>_0x2cf2ad[_0x5c77ef(0x17f,0x166,0x209,0x1da)]===_0x4f4627(-0x18a,-0x135,-0x14c,-0x11a)&&typeof _0x2cf2ad['text']===_0x4f4627(-0xf6,-0x16c,-0x9a,-0x246))[_0x4f4627(-_0x5ae93d._0x163667,-0x19d,-0xfd,-0x29a)](_0x5764dd=>_0x5764dd['text']??'')['join']('');}function createOpenAiReasoningBlock(_0x4f48f7){const _0x30e591={_0x218883:0xe0,_0x3434b3:0x78,_0x29f1ac:0x51b,_0x48d64f:0x5c3,_0x22dad7:0x425,_0x1da7ce:0x463,_0x595522:0x457,_0x34eb9c:0x3e4,_0x591e0b:0x468,_0x5b26ac:0x47e,_0x58bfe8:0x4c7},_0x11268d={_0x25180f:0x1e3,_0x333e3f:0x1bd},_0x6b38c6=extractOpenAiReasoningText(_0x4f48f7);function _0x478b75(_0x5cd8ef,_0x59a790,_0x31c337,_0x406dc1){return _0x5b3424(_0x5cd8ef-0x40,_0x5cd8ef-0x6ed,_0x31c337-0x148,_0x31c337);}function _0x53f9e5(_0x5a65be,_0x38365d,_0x352e13,_0x5e84c2){return _0x5b3424(_0x5a65be-_0x11268d._0x25180f,_0x38365d-0x225,_0x352e13-_0x11268d._0x333e3f,_0x5e84c2);}return{'type':_0x53f9e5(-0x18,0x80,_0x30e591._0x218883,-_0x30e591._0x3434b3),'summary':structuredClone(_0x4f48f7[_0x478b75(_0x30e591._0x29f1ac,_0x30e591._0x48d64f,0x570,0x45c)]??[]),..._0x4f48f7['id']?{'id':_0x4f48f7['id']}:{},..._0x4f48f7[_0x478b75(_0x30e591._0x22dad7,_0x30e591._0x1da7ce,_0x30e591._0x595522,_0x30e591._0x34eb9c)]?{'encryptedContent':_0x4f48f7[_0x478b75(0x425,_0x30e591._0x591e0b,0x4cb,0x417)]}:{},..._0x6b38c6[_0x478b75(_0x30e591._0x5b26ac,_0x30e591._0x58bfe8,0x423,0x3b4)]>0x0?{'text':_0x6b38c6}:{}};}function hasVisibleOpenAiReasoning(_0x8a4873){const _0x59cc62={_0x49bfb2:0x428,_0x1c2026:0x2fa,_0x1fdcc1:0x26c,_0x444c61:0x2f4,_0x230b90:0x220,_0x387cbf:0x2f3,_0x4426ba:0x2e0,_0x5d3fa9:0x1f2,_0x31e09e:0x2c0,_0x4bc451:0x1e0},_0xad202b={_0x55305d:0x17a,_0x2efac8:0x1ab},_0x34e0c6={_0x29d946:0xd1};function _0x621769(_0xc6358b,_0x522533,_0x5cc60e,_0x132ee6){return _0x3dbb2c(_0xc6358b-0x1f,_0x132ee6- -0x3be,_0x5cc60e-_0x34e0c6._0x29d946,_0x5cc60e);}function _0x4d0985(_0x462850,_0x2374ba,_0x3c831b,_0x1dd4b4){return _0x3dbb2c(_0x462850-_0xad202b._0x55305d,_0x2374ba-0x154,_0x3c831b-_0xad202b._0x2efac8,_0x3c831b);}return _0x8a4873[_0x4d0985(_0x59cc62._0x49bfb2,0x358,_0x59cc62._0x1c2026,_0x59cc62._0x1fdcc1)][_0x4d0985(_0x59cc62._0x444c61,0x2bb,_0x59cc62._0x230b90,_0x59cc62._0x387cbf)]>0x0||typeof _0x8a4873[_0x621769(-_0x59cc62._0x4426ba,-0x2ab,-0x1dc,-_0x59cc62._0x5d3fa9)]===_0x4d0985(0x1b3,_0x59cc62._0x31e09e,_0x59cc62._0x4bc451,0x309);}function parseChatCompletionResponse(_0x5743c2,_0x2545c5){const _0x3c239e={_0xdb6483:0x32,_0x26b53a:0xc4,_0x14577c:0x3c6,_0x398b31:0x186,_0xa8676d:0x43,_0x589f9f:0x134,_0x2d6fc2:0x151,_0x2d790d:0x258,_0x2fd32e:0x2d0,_0x2a50b6:0x3cb,_0x1c8be4:0x4a0,_0x51fbcf:0x2b0,_0x7f688c:0x362,_0x30635b:0x495,_0x5016bf:0x323,_0x23f5e7:0x3b0,_0x2cd32e:0xa8,_0x181d8b:0x38,_0x28c955:0x37,_0x5c9c65:0x35,_0x62f482:0x304,_0x4bc56c:0x2bd,_0xd0e8:0x372,_0xd0767e:0x31c,_0x286e52:0x1ea,_0x3ae69c:0x2cd,_0x3e0d0e:0x3bd,_0x3eb294:0x219,_0x5f9c12:0x23e,_0x38a550:0x3a0,_0x34f671:0x38f,_0x2535ca:0x41d,_0x1d79c8:0x1b0,_0x33bfe6:0x16f},_0x5f4668={_0x108c8e:0x156,_0x1e2002:0x9f},_0x264ae5={_0x5ac3fd:0x18e},_0x4d129d=[],_0x75206f=[];function _0x299340(_0x3fde4b,_0x56355b,_0x31177d,_0x111665){return _0x3dbb2c(_0x3fde4b-_0x264ae5._0x5ac3fd,_0x111665- -0x142,_0x31177d-0x27,_0x56355b);}let _0x115cbf=_0x299340(-0x51,-_0x3c239e._0xdb6483,_0x3c239e._0x26b53a,0x7d);for(const _0x551a0f of _0x5743c2[_0x8aacd2(0x39d,0x3ac,_0x3c239e._0x14577c,0x396)]??[]){const _0x2b0fd1=_0x551a0f[_0x299340(_0x3c239e._0x398b31,0x163,_0x3c239e._0xa8676d,0xfe)],_0x45fe12=normalizeAssistantContent(_0x2b0fd1?.[_0x299340(_0x3c239e._0x589f9f,_0x3c239e._0x2d6fc2,_0x3c239e._0x2d790d,0x172)]);_0x45fe12['length']>0x0&&_0x4d129d['push'](_0x45fe12),_0x2b0fd1?.[_0x8aacd2(0x3c5,0x3c6,_0x3c239e._0x2fd32e,_0x3c239e._0x2a50b6)]&&_0x75206f['push'](..._0x2b0fd1[_0x8aacd2(0x423,0x3c6,_0x3c239e._0x1c8be4,0x397)]),_0x551a0f[_0x8aacd2(0x373,_0x3c239e._0x51fbcf,0x27c,_0x3c239e._0x7f688c)]===_0x8aacd2(_0x3c239e._0x30635b,_0x3c239e._0x14577c,_0x3c239e._0x5016bf,_0x3c239e._0x23f5e7)&&(_0x115cbf=_0x299340(-_0x3c239e._0x2cd32e,-_0x3c239e._0x181d8b,-_0x3c239e._0x28c955,_0x3c239e._0x5c9c65));}function _0x8aacd2(_0x4fcc27,_0x493e61,_0x5c4aff,_0x31b06a){return _0x3dbb2c(_0x4fcc27-0x16e,_0x493e61-_0x5f4668._0x108c8e,_0x5c4aff-_0x5f4668._0x1e2002,_0x31b06a);}return _0x75206f[_0x8aacd2(_0x3c239e._0x62f482,_0x3c239e._0x4bc56c,_0x3c239e._0xd0e8,_0x3c239e._0xd0767e)]>0x0&&(_0x115cbf=_0x8aacd2(_0x3c239e._0x286e52,_0x3c239e._0x3ae69c,_0x3c239e._0x3e0d0e,_0x3c239e._0x3eb294)),{'id':_0x5743c2['id']??_0x8aacd2(_0x3c239e._0x5f9c12,0x320,_0x3c239e._0x38a550,_0x3c239e._0x34f671)+Date[_0x8aacd2(_0x3c239e._0x2535ca,0x313,0x36b,0x2b5)](),'content':createContentBlocks(_0x4d129d['join'](''),_0x75206f),'stopReason':_0x115cbf,'usage':createUsage(_0x5743c2[_0x299340(_0x3c239e._0x1d79c8,0x242,0x14d,_0x3c239e._0x33bfe6)],_0x2545c5)};}function parseResponsesResponse(_0x4eafc2,_0x83e599){const _0x217863={_0x439755:0x5aa,_0x29a265:0x6c5,_0x31b918:0x40d,_0x2d3b86:0x44e,_0x39e2e9:0x589,_0x24b871:0x472,_0x1f3e88:0x281,_0x1ef5a5:0x1d7,_0x36f78c:0x1c6,_0x190feb:0x1f8,_0x44f5a2:0x3f6,_0x4f66da:0x3ce,_0x1d598d:0x141,_0x1c5299:0x147,_0x549bb5:0xe9,_0xdc575f:0x1a6,_0x2ff7c9:0x1f6,_0x503aaf:0x18c,_0x105b87:0x52,_0x5e8b6f:0x180,_0x192a2c:0x165,_0x19fd6c:0x402,_0x8f7737:0x426,_0x163798:0x25d,_0x2c2a06:0x582,_0x4901a0:0x4d1,_0xb30de8:0x1eb,_0x329a89:0x1d7,_0x538b1e:0x221,_0x26df59:0x21d,_0x21546e:0x4e3,_0x6715aa:0x473,_0x355aed:0x378,_0x98036f:0x2d,_0x2dc973:0x15,_0x26a3fd:0xf7,_0x5203aa:0x24c,_0x454888:0x196,_0x85209:0x188,_0x2d5fe0:0xff,_0x3387c3:0x88,_0x265372:0xf8,_0x29614f:0xc7,_0x43e177:0x5e3,_0xd3cab:0x5b2,_0x452202:0x46,_0x203888:0x50c,_0x5719ac:0x529,_0x4b3ec6:0x474,_0x36f465:0x13b,_0x234231:0x134,_0x427ea0:0xb1,_0x25ae66:0x89,_0x1f2fe3:0xab,_0x19657e:0x117,_0x51f324:0x162,_0x267a46:0xed,_0x557941:0x1e3,_0x53d38a:0x12e,_0x149223:0x16a,_0x25a647:0x202,_0x3e4c92:0x478,_0x393fd8:0x1a3,_0x5dcb3b:0x14b,_0xd18c03:0x673,_0x102cc7:0x9c,_0x38b346:0x64,_0x53bc42:0x2a,_0x28f399:0xb1,_0x247ca8:0x188,_0x3594fc:0x101,_0x285f0e:0x6a,_0x404f50:0x29,_0x454dff:0x8c},_0x2c1585={_0x383b73:0x179,_0x55659e:0x7a},_0x3d7b9f={_0x217de3:0x74},_0x447809=[];function _0x502bdf(_0xfba450,_0x18cf3d,_0x231fa8,_0xb6b133){return _0x5b3424(_0xfba450-0x1ab,_0x18cf3d-_0x3d7b9f._0x217de3,_0x231fa8-0xc1,_0xb6b133);}for(const _0xe4d90e of _0x4eafc2['output']??[]){if(isResponsesReasoningItem(_0xe4d90e)){if(isUserVisibleReasoning(_0x83e599)){const _0x365215=createOpenAiReasoningBlock(_0xe4d90e);hasVisibleOpenAiReasoning(_0x365215)&&_0x447809['push'](_0x365215);}continue;}if(isResponsesMessageItem(_0xe4d90e)){const _0x254408=normalizeResponsesMessageContent(_0xe4d90e['content']);_0x254408['length']>0x0&&_0x447809[_0x47fceb(0x654,_0x217863._0x439755,_0x217863._0x29a265,0x5c7)]({'type':_0x47fceb(0x428,_0x217863._0x31b918,_0x217863._0x2d3b86,0x4cd),'text':_0x254408});continue;}if(!isResponsesFunctionCallItem(_0xe4d90e)||typeof _0xe4d90e[_0x47fceb(0x40e,_0x217863._0x39e2e9,_0x217863._0x24b871,0x48c)]!==_0x502bdf(-_0x217863._0x1f3e88,-0x1f6,-0x22a,-0x253)||_0xe4d90e[_0x502bdf(-0x2c6,-_0x217863._0x1ef5a5,-_0x217863._0x36f78c,-_0x217863._0x190feb)]['trim']()[_0x47fceb(_0x217863._0x44f5a2,_0x217863._0x4f66da,0x505,0x468)]===0x0||typeof _0xe4d90e[_0x502bdf(-_0x217863._0x1d598d,-_0x217863._0x1c5299,-0x75,-_0x217863._0x549bb5)]!==_0x502bdf(-_0x217863._0xdc575f,-_0x217863._0x2ff7c9,-_0x217863._0x503aaf,-0x2fc)||_0xe4d90e[_0x502bdf(-_0x217863._0x105b87,-0x147,-_0x217863._0x5e8b6f,-_0x217863._0x192a2c)]['trim']()[_0x47fceb(_0x217863._0x19fd6c,_0x217863._0x8f7737,0x476,0x468)]===0x0||typeof _0xe4d90e[_0x502bdf(-0x290,-0x240,-_0x217863._0x163798,-0x13d)]!=='string')continue;_0x447809[_0x47fceb(0x550,_0x217863._0x2c2a06,_0x217863._0x4901a0,0x5c7)]({'type':_0x502bdf(-0x2d1,-_0x217863._0xb30de8,-0xe0,-0x1d5),'id':_0xe4d90e[_0x502bdf(-0x2be,-_0x217863._0x329a89,-_0x217863._0x538b1e,-_0x217863._0x26df59)],'name':_0xe4d90e['name'],'input':parseToolInput2(_0xe4d90e[_0x47fceb(_0x217863._0x21546e,_0x217863._0x6715aa,_0x217863._0x355aed,0x423)])});}!_0x447809['some'](_0xdeed56=>_0xdeed56[_0x502bdf(-0x32a,-0x22e,-0x227,-0x2f2)]===_0x502bdf(-0x10e,-0x196,-0x265,-0x190))&&_0x4eafc2['output_text']&&_0x447809[_0x502bdf(-_0x217863._0x98036f,-0x9c,-_0x217863._0x2dc973,-_0x217863._0x26a3fd)]({'type':_0x502bdf(-_0x217863._0x5203aa,-_0x217863._0x454888,-0x130,-_0x217863._0x85209),'text':_0x4eafc2[_0x502bdf(-_0x217863._0x2d5fe0,-_0x217863._0x3387c3,-0x127,0x46)]});const _0x1f4f07=normalizeXaiReportedCost(_0x83e599[_0x502bdf(-_0x217863._0x265372,-0xb2,-_0x217863._0x29614f,-0x93)]['pricingProviderId'],_0x4eafc2[_0x47fceb(0x4d5,0x61c,0x5fd,0x5b2)]?.['cost_in_usd_ticks']),_0x48873f=_0x4eafc2[_0x47fceb(_0x217863._0x43e177,0x601,0x4f9,_0x217863._0xd3cab)]?.['input_tokens_details']?.[_0x502bdf(-0xe4,-0x59,_0x217863._0x452202,-0x38)],_0x32919c=_0x4eafc2[_0x47fceb(0x4e9,_0x217863._0x203888,_0x217863._0x5719ac,0x5b2)]?.[_0x47fceb(0x563,0x54e,0x419,_0x217863._0x4b3ec6)]?.[_0x502bdf(-0x13a,-_0x217863._0x36f465,-_0x217863._0x234231,-0x16c)],_0x2ca2ba=_0x4eafc2[_0x502bdf(-0x76,-_0x217863._0x427ea0,-0x8f,-_0x217863._0x25ae66)]?.[_0x502bdf(-_0x217863._0x1f2fe3,-_0x217863._0x19657e,-_0x217863._0x2ff7c9,-_0x217863._0x51f324)]?.[_0x502bdf(-0x175,-_0x217863._0x267a46,-_0x217863._0x557941,-_0x217863._0x53d38a)];function _0x47fceb(_0xc90db3,_0x27aea0,_0x4fcbc7,_0x172463){return _0x3dbb2c(_0xc90db3-_0x2c1585._0x383b73,_0x172463-0x301,_0x4fcbc7-_0x2c1585._0x55659e,_0xc90db3);}return{'id':_0x4eafc2['id'],'content':_0x447809,'stopReason':_0x447809[_0x502bdf(-_0x217863._0x149223,-_0x217863._0x25a647,-0x17d,-0x19c)](_0x2f9131=>_0x2f9131[_0x502bdf(-0x1eb,-0x22e,-0x262,-0x257)]==='tool_use')?_0x47fceb(0x3a5,0x4ea,0x3b0,_0x217863._0x3e4c92):_0x502bdf(-0x2a2,-_0x217863._0x393fd8,-_0x217863._0x5dcb3b,-0x22f),'usage':{'inputTokens':_0x4eafc2[_0x47fceb(_0x217863._0xd18c03,0x4da,0x6b4,_0x217863._0xd3cab)]?.[_0x502bdf(-_0x217863._0x102cc7,-0xd8,-0x35,-_0x217863._0x38b346)]??0x0,'outputTokens':_0x4eafc2[_0x502bdf(-_0x217863._0x53bc42,-_0x217863._0x28f399,-_0x217863._0x247ca8,-_0x217863._0x3594fc)]?.['output_tokens']??0x0,..._0x2ca2ba!==void 0x0?{'reasoningTokens':_0x2ca2ba}:{},..._0x48873f!==void 0x0?{'cacheReadInputTokens':_0x48873f}:{},..._0x32919c!==void 0x0?{'cacheCreationInputTokens':_0x32919c}:{},..._0x1f4f07!==void 0x0?{'reportedCost':_0x1f4f07}:{}},..._0x4eafc2['output']?{'providerState':{'openaiResponsesOutput':structuredClone(_0x4eafc2[_0x502bdf(-_0x217863._0x285f0e,-0x6a,-_0x217863._0x404f50,_0x217863._0x454dff)]),'openaiResponsesResponseId':_0x4eafc2['id']}}:{}};}function extractErrorMessage(_0x13642e){const _0xdd7714={_0x216c2a:0x3d5,_0x466d68:0x2e0,_0x321fa8:0x212,_0x136d87:0x1ea,_0x2d7015:0x11e,_0x39abf5:0x207,_0x55d4be:0x33b,_0x1fa13d:0x1f7,_0x290821:0x1d,_0x45953a:0x3ee,_0x4c972d:0x264,_0x391825:0x399,_0x44066c:0x272,_0xa84140:0x2c7,_0x5c1d4e:0x22c,_0x2da2aa:0x32b,_0x5e4463:0x2df,_0xe6e25b:0x1b7,_0x5177df:0x18a,_0xe97afc:0x154,_0x1bc428:0x2e7,_0x1d5a70:0x231,_0x47789e:0x3dc},_0x34d033={_0x37afae:0x49,_0x1ae371:0x71,_0x49bfef:0x1b8},_0x483ada={_0xa7fba2:0xd3,_0x1900ac:0x78};function _0x3b601d(_0xd09e36,_0x3ad5ed,_0xdf1024,_0x3d1326){return _0x5b3424(_0xd09e36-_0x483ada._0xa7fba2,_0xd09e36-_0x483ada._0x1900ac,_0xdf1024-0x143,_0xdf1024);}if(_0x13642e[_0x5e019a(-_0xdd7714._0x216c2a,-0x212,-_0xdd7714._0x466d68,-0x257)]===0x0)return'';function _0x5e019a(_0x439c10,_0x357645,_0x4df678,_0x28def9){return _0x5b3424(_0x439c10-_0x34d033._0x37afae,_0x4df678- -_0x34d033._0x1ae371,_0x4df678-_0x34d033._0x49bfef,_0x28def9);}try{const _0x549cec=JSON[_0x5e019a(-0x3c9,-_0xdd7714._0x321fa8,-0x2f1,-_0xdd7714._0x136d87)](_0x13642e);if(typeof _0x549cec['error']?.[_0x5e019a(-0x109,-0x1e3,-0x207,-0x2db)]==='string'&&_0x549cec['error'][_0x3b601d(-_0xdd7714._0x2d7015,-_0xdd7714._0x39abf5,-0x1d2,-0xfa)][_0x5e019a(-_0xdd7714._0x55d4be,-0x346,-0x32b,-0x2a9)]()[_0x3b601d(-_0xdd7714._0x1fa13d,-0x2b2,-0x124,-0x1a6)]>0x0)return _0x549cec['error'][_0x3b601d(-0x11e,-0x1e8,-_0xdd7714._0x290821,-0x62)][_0x5e019a(-_0xdd7714._0x45953a,-_0xdd7714._0x4c972d,-0x32b,-_0xdd7714._0x391825)]();if(typeof _0x549cec[_0x5e019a(-0x133,-0x231,-0x207,-_0xdd7714._0x44066c)]===_0x5e019a(-0x2d2,-_0xdd7714._0xa84140,-0x2db,-0x307)&&_0x549cec['message'][_0x5e019a(-_0xdd7714._0x5c1d4e,-0x2c8,-_0xdd7714._0x2da2aa,-0x2a7)]()[_0x3b601d(-0x1f7,-0x25c,-_0xdd7714._0x5e4463,-_0xdd7714._0xe6e25b)]>0x0)return _0x549cec[_0x5e019a(-_0xdd7714._0x5177df,-_0xdd7714._0xe97afc,-_0xdd7714._0x39abf5,-_0xdd7714._0x1bc428)][_0x5e019a(-_0xdd7714._0x1d5a70,-_0xdd7714._0x47789e,-0x32b,-0x2ce)]();}catch{return _0x13642e;}return _0x13642e;}async function createOpenAiApiError(_0x5d6c03){const _0x3ce50e={_0x18c6c1:0x84,_0x2fd7f1:0x1b4,_0x220a8e:0x2a1,_0xb73637:0x3a8,_0x13ee9b:0x2ef,_0x378f7d:0x108,_0x1c7fee:0x164,_0x3a55b9:0xf4,_0x5a3ffa:0x106,_0xacc83f:0x249,_0xad2267:0x2bd,_0x9ed0a8:0x2c1},_0x3d206e={_0x12d597:0x35,_0x565cf6:0x1ba},_0x14c447={_0x3f2605:0x7,_0x3f6a1d:0x312,_0x5a53c5:0xab};function _0x289221(_0x3a9e54,_0x178dc1,_0xdb5df9,_0x3eed3c){return _0x3dbb2c(_0x3a9e54-_0x14c447._0x3f2605,_0x178dc1- -_0x14c447._0x3f6a1d,_0xdb5df9-_0x14c447._0x5a53c5,_0x3a9e54);}const _0x54305e=(await _0x5d6c03[_0x289221(-0x1cf,-0x146,-_0x3ce50e._0x18c6c1,-_0x3ce50e._0x2fd7f1)]())[_0x276d93(-_0x3ce50e._0x220a8e,-_0x3ce50e._0xb73637,-_0x3ce50e._0x13ee9b,-0x3ab)]();function _0x276d93(_0xa5f97f,_0xbb76af,_0xef8416,_0x5980a0){return _0x5b3424(_0xa5f97f-0x185,_0xef8416- -_0x3d206e._0x12d597,_0xef8416-_0x3d206e._0x565cf6,_0xbb76af);}const _0x541240=extractErrorMessage(_0x54305e)||_0x5d6c03[_0x276d93(-_0x3ce50e._0x378f7d,-_0x3ce50e._0x1c7fee,-_0x3ce50e._0x3a55b9,-_0x3ce50e._0x5a3ffa)]||'OpenAI\x20API\x20error\x20'+_0x5d6c03[_0x276d93(-_0x3ce50e._0xacc83f,-_0x3ce50e._0xad2267,-_0x3ce50e._0x9ed0a8,-0x1bc)];return new OpenAiApiError(_0x5d6c03['status'],_0x54305e,_0x541240);}function readSseData(_0x584791){const _0x11936a={_0x27050c:0x434,_0x4710aa:0x569,_0x359a0c:0x522,_0x31488b:0x47f,_0x83eb8d:0x427,_0x3f9db0:0x27a,_0xf5c8fb:0x18b},_0x12d033={_0x1b8abd:0x101,_0x376d8c:0x1eb},_0x240a03={_0x404e67:0x25a};function _0x550a8d(_0x1f3a4e,_0x389c6d,_0x42b8ad,_0xdcedcd){return _0x3dbb2c(_0x1f3a4e-0xb0,_0x1f3a4e-_0x240a03._0x404e67,_0x42b8ad-0xb9,_0x42b8ad);}function _0x2eaa5d(_0x21779a,_0x5e3766,_0x591e52,_0x1c3069){return _0x5b3424(_0x21779a-_0x12d033._0x1b8abd,_0x591e52-0x48b,_0x591e52-_0x12d033._0x376d8c,_0x1c3069);}return _0x584791[_0x550a8d(0x470,_0x11936a._0x27050c,0x3ba,_0x11936a._0x4710aa)]('\x0a')[_0x550a8d(_0x11936a._0x359a0c,0x43b,_0x11936a._0x31488b,_0x11936a._0x83eb8d)](_0x885133=>_0x885133[_0x550a8d(0x418,0x3a8,0x388,0x48e)]('data:'))['map'](_0x404c7d=>_0x404c7d['slice'](0x5)[_0x550a8d(0x43a,0x439,0x331,0x4af)]())['join']('\x0a')[_0x2eaa5d(0x250,_0x11936a._0x3f9db0,0x1d1,_0x11936a._0xf5c8fb)]();}function _0x5b3424(_0x41a64a,_0x487433,_0x24dd67,_0xdb833b){return _0x3104(_0x487433- -0x350,_0xdb833b);}function readString(_0x4a4c34){const _0x5efdd4={_0x4e5b26:0x306,_0x52a960:0x413,_0x434c4b:0x392},_0x43b458={_0xb214bb:0xd8};function _0x356b86(_0x24f333,_0x21ae64,_0x5cc7f9,_0x1ed69f){return _0x5b3424(_0x24f333-_0x43b458._0xb214bb,_0x24f333-0x570,_0x5cc7f9-0xcf,_0x5cc7f9);}return typeof _0x4a4c34===_0x356b86(_0x5efdd4._0x4e5b26,_0x5efdd4._0x52a960,_0x5efdd4._0x434c4b,0x332)&&_0x4a4c34['length']>0x0?_0x4a4c34:void 0x0;}function extractReasoningDetails(_0x11420d){const _0x5745cd={_0x8f1ced:0x347,_0x3ca5c1:0x1a6,_0x414026:0x1f5,_0x49ecde:0x279,_0x4075a0:0x304,_0x17da92:0x36c,_0x4520ff:0x280},_0x262d56={_0x1c9d82:0x432,_0x500a39:0x109},_0x772a67={_0x306d2a:0x60,_0x12aa77:0x4,_0x2983be:0x109,_0x439737:0x97,_0x5dc4c5:0xf0,_0x4d65da:0xf9,_0x9938fa:0x7,_0x3bc86f:0xae,_0x41c695:0x61},_0x27cdc7={_0x286326:0x1cd},_0x3d9c4f={_0x522696:0x258};if(!Array[_0x23e6fb(-0x2a6,-_0x5745cd._0x8f1ced,-_0x5745cd._0x3ca5c1,-_0x5745cd._0x414026)](_0x11420d))return void 0x0;function _0x323655(_0x538f18,_0x415e3f,_0x19f55f,_0x62eeed){return _0x5b3424(_0x538f18-0x5b,_0x19f55f-_0x3d9c4f._0x522696,_0x19f55f-0x33,_0x538f18);}const _0x3d959e=_0x11420d[_0x23e6fb(-0x2ef,-_0x5745cd._0x49ecde,-0x3b0,-0x35f)](_0x5a9a99=>{const _0x5a1010={_0x1e15fd:0x61,_0x4ebd27:0x83,_0x14e57a:0xfe};if(!_0x5a9a99||typeof _0x5a9a99!==_0x3eeacf(-0x1,-0x25,_0x772a67._0x306d2a,_0x772a67._0x12aa77))return[];function _0x3eeacf(_0x4e0384,_0x1506d0,_0x50cc6c,_0x5bcb5c){return _0x23e6fb(_0x5bcb5c-_0x27cdc7._0x286326,_0x1506d0-0x135,_0x4e0384,_0x5bcb5c-0xa5);}const _0x3bdbdc=_0x5a9a99;if(typeof _0x3bdbdc['text']==='string')return[_0x3bdbdc['text']];function _0x194326(_0xf6f06,_0x216877,_0x5b297f,_0x154695){return _0x323655(_0x5b297f,_0x216877-_0x5a1010._0x1e15fd,_0xf6f06-_0x5a1010._0x4ebd27,_0x154695-_0x5a1010._0x14e57a);}if(typeof _0x3bdbdc[_0x194326(_0x772a67._0x2983be,0xd9,0x14a,_0x772a67._0x439737)]===_0x3eeacf(-0x15,-_0x772a67._0x5dc4c5,-0x40,-_0x772a67._0x4d65da))return[_0x3bdbdc[_0x3eeacf(_0x772a67._0x9938fa,-_0x772a67._0x3bc86f,-0xa3,-_0x772a67._0x41c695)]];return[];});function _0x23e6fb(_0x214aa6,_0x4beba9,_0x5b0b5d,_0x54736d){return _0x3dbb2c(_0x214aa6-0xb,_0x214aa6- -_0x262d56._0x1c9d82,_0x5b0b5d-_0x262d56._0x500a39,_0x5b0b5d);}return _0x3d959e[_0x323655(0x5b,0xca,-0x17,-0x10e)]>0x0?_0x3d959e[_0x23e6fb(-_0x5745cd._0x4075a0,-_0x5745cd._0x17da92,-_0x5745cd._0x4520ff,-0x28d)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x1645e4){const _0x46e844={_0x765a60:0x163,_0x9dfa84:0x7e,_0x26b81e:0x18,_0x1b75f1:0x21c,_0x4e3726:0x168,_0x2b99ba:0x15,_0x17bff4:0x5e},_0x56f17c={_0x409a34:0x1bf,_0x1a25e2:0x1c},_0x5c1cd1={_0x388f04:0xa4};function _0x352724(_0x3e9794,_0x6483ab,_0x195747,_0x189e1f){return _0x3dbb2c(_0x3e9794-0x1f1,_0x195747- -0x2a9,_0x195747-_0x5c1cd1._0x388f04,_0x189e1f);}function _0x4c2266(_0x46e075,_0x4f8f6d,_0x346ab9,_0x491399){return _0x3dbb2c(_0x46e075-_0x56f17c._0x409a34,_0x491399- -0xc6,_0x346ab9-_0x56f17c._0x1a25e2,_0x4f8f6d);}return extractReasoningDetails(_0x1645e4?.[_0x352724(-0x15b,-_0x46e844._0x765a60,-0xe6,-0x11a)])??readString(_0x1645e4?.[_0x352724(-_0x46e844._0x9dfa84,0x9f,0x24,_0x46e844._0x26b81e)])??readString(_0x1645e4?.[_0x352724(-0x1e0,-_0x46e844._0x1b75f1,-0x12c,-_0x46e844._0x4e3726)])??readString(_0x1645e4?.[_0x352724(-0x5c,-_0x46e844._0x2b99ba,-0x106,-_0x46e844._0x17bff4)])??'';}var OpenAiChatCompletionsStreamParser=class{['done']=![];['reasoningParts']=[];[_0x5b3424(-0x23c,-0x2bc,-0x26a,-0x292)];[_0x5b3424(-0x21a,-0x1df,-0x173,-0x149)]=[];[_0x3dbb2c(0x2e9,0x1fe,0x2dc,0x11b)]=new Map();[_0x5b3424(-0x37d,-0x290,-0x28c,-0x215)]=[];[_0x5b3424(-0x16c,-0x1c7,-0x1d9,-0xfc)]=new Set();[_0x3dbb2c(0x3b4,0x2f7,0x247,0x399)]='';['stopReason']=_0x3dbb2c(0x1b2,0x1bf,0x2ac,0xf0);[_0x3dbb2c(0x28c,0x2b1,0x1e6,0x25b)];constructor(_0x209c3a){const _0x1241e6={_0x16e1b9:0x2c4,_0x17f524:0x2a3};function _0x4bea08(_0x2476d5,_0x48a59e,_0x2b288f,_0x295f21){return _0x3dbb2c(_0x2476d5-0x1da,_0x2b288f- -0x3bd,_0x2b288f-0x158,_0x295f21);}this[_0x4bea08(-_0x1241e6._0x16e1b9,-0x35a,-_0x1241e6._0x17f524,-0x307)]=_0x209c3a;}[_0x5b3424(-0x1a7,-0x28e,-0x379,-0x2a9)](_0x52f59c){const _0x366fbc={_0x4a9ccd:0x2ed,_0x5bf85b:0x37a,_0x2e6d81:0x2b7,_0x4e3e02:0x1a3,_0x23660a:0x204,_0x49fae2:0x2e8,_0x471ce9:0x357,_0x3e7ee1:0x212,_0x4ff769:0xd,_0x31a8f0:0xcb,_0x1130ca:0xc0,_0x2d744d:0xf8,_0x34e1b3:0x88,_0x3dbd2e:0x1b0,_0x3d190e:0x1cb,_0x263a6a:0x233,_0x3e895c:0x1b0,_0x4a53bc:0xae,_0x28abbb:0x197},_0xbaf193={_0x101441:0x1a0,_0x456ab4:0x1f,_0x4ad1a1:0xcb},_0x175096={_0x351dd2:0x16f,_0x3d45f9:0x8b},_0x8bfa22=readSseData(_0x52f59c);if(_0x8bfa22['length']===0x0)return[];if(_0x8bfa22===_0x23c607(-0x34b,-_0x366fbc._0x4a9ccd,-_0x366fbc._0x5bf85b,-_0x366fbc._0x2e6d81))return this[_0xf8af3(-_0x366fbc._0x4e3e02,-_0x366fbc._0x23660a,-0x1ab,-0x23a)]=!![],[];function _0x23c607(_0x4f7a32,_0xaffd33,_0x11ab04,_0x583094){return _0x5b3424(_0x4f7a32-_0x175096._0x351dd2,_0x4f7a32- -_0x175096._0x3d45f9,_0x11ab04-0x13d,_0x11ab04);}const _0x514cf6=JSON[_0x23c607(-0x30b,-_0x366fbc._0x49fae2,-_0x366fbc._0x471ce9,-_0x366fbc._0x3e7ee1)](_0x8bfa22);this[_0xf8af3(-0xc0,-_0x366fbc._0x4ff769,-_0x366fbc._0x31a8f0,-0x117)]=_0x514cf6['id']??this[_0xf8af3(-_0x366fbc._0x1130ca,-_0x366fbc._0x2d744d,-0x82,-_0x366fbc._0x34e1b3)];function _0xf8af3(_0x317755,_0x7abfeb,_0x2bc5db,_0x5b31bf){return _0x5b3424(_0x317755-_0xbaf193._0x101441,_0x317755-_0xbaf193._0x456ab4,_0x2bc5db-_0xbaf193._0x4ad1a1,_0x5b31bf);}return this[_0x23c607(-_0x366fbc._0x3dbd2e,-0x1b7,-_0x366fbc._0x3d190e,-_0x366fbc._0x263a6a)]=_0x514cf6[_0x23c607(-_0x366fbc._0x3e895c,-_0x366fbc._0x4a53bc,-_0x366fbc._0x28abbb,-0x13b)]??this['usage'],this['consumeEvent'](_0x514cf6);}['finish'](){const _0x3b5d75={_0x317589:0x3c2,_0xfa13a0:0x166,_0x23c282:0x196,_0x24e23d:0x7e,_0xc2fe18:0x2c8,_0x29b03a:0x3b5,_0x2d7f31:0x2d9,_0x44d43e:0x415,_0x1cda57:0x391,_0x28a00e:0x452,_0x51a7eb:0x275,_0x3e53af:0x1fd,_0x199164:0x1ba,_0x4841f8:0x288,_0x555974:0x232,_0xd36743:0x370,_0x15186f:0x36c,_0x595295:0x29d,_0x5a1f41:0x384,_0x4f0d48:0x39b,_0x49a560:0x2ba,_0xfd96e4:0x4e3,_0x56f8ab:0x56e,_0x55b111:0x3e9,_0xa68064:0x402,_0x482336:0x5ef,_0x446395:0x4ac,_0x3bcec8:0x1f9,_0x587aff:0x242},_0x30b5ec={_0x13116b:0xad,_0x159989:0x23e,_0x121ae2:0x17f};if(!this[_0x3bb8eb(_0x3b5d75._0x317589,0x37a,0x2fd,0x472)]())throw new ProviderStreamEventError('Chat\x20completions\x20stream\x20ended\x20before\x20a\x20terminal\x20event',{'retryable':!![]});this['toolCallOrder'][_0x96525e(-0x253,-0x237,-0x145,-0x1c8)]>0x0&&(this[_0x96525e(-0x115,-_0x3b5d75._0xfa13a0,-_0x3b5d75._0x23c282,-_0x3b5d75._0x24e23d)]=_0x3bb8eb(_0x3b5d75._0xc2fe18,_0x3b5d75._0x29b03a,_0x3b5d75._0x2d7f31,_0x3b5d75._0x44d43e));function _0x96525e(_0xd67bb1,_0x285105,_0x46533d,_0x557134){return _0x5b3424(_0xd67bb1-0x36,_0xd67bb1-0x1c,_0x46533d-0x1ce,_0x46533d);}const _0x49199c=isUserVisibleReasoning(this[_0x96525e(-0x2a0,-_0x3b5d75._0x1cda57,-0x219,-0x388)])?this['reasoningParts'][_0x3bb8eb(0x38a,0x36c,_0x3b5d75._0x28a00e,_0x3b5d75._0x51a7eb)](''):void 0x0;function _0x3bb8eb(_0x5f007d,_0x97b118,_0x220b6c,_0x5e72ca){return _0x3dbb2c(_0x5f007d-_0x30b5ec._0x13116b,_0x97b118-_0x30b5ec._0x159989,_0x220b6c-_0x30b5ec._0x121ae2,_0x220b6c);}return{'id':this[_0x96525e(-0xc3,-0xc9,-0x123,-0xfb)]||'chatcmpl-'+Date[_0x96525e(-_0x3b5d75._0x3e53af,-_0x3b5d75._0x199164,-_0x3b5d75._0x4841f8,-_0x3b5d75._0x555974)](),'content':createContentBlocks(this[_0x3bb8eb(_0x3b5d75._0xd36743,0x435,0x366,0x488)][_0x3bb8eb(0x34c,_0x3b5d75._0x15186f,0x353,_0x3b5d75._0x595295)](''),this[_0x3bb8eb(0x2c3,_0x3b5d75._0x5a1f41,_0x3b5d75._0x4f0d48,_0x3b5d75._0x49a560)],_0x49199c),'stopReason':this[_0x3bb8eb(0x405,_0x3b5d75._0xfd96e4,_0x3b5d75._0x56f8ab,_0x3b5d75._0x55b111)],'usage':createUsage(this[_0x3bb8eb(_0x3b5d75._0xa68064,0x4ef,_0x3b5d75._0x482336,_0x3b5d75._0x446395)],this[_0x96525e(-0x2a0,-0x1c7,-_0x3b5d75._0x3bcec8,-_0x3b5d75._0x587aff)])};}['isDone'](){return this['done'];}['consumeEvent'](_0x360fbd){const _0xcd31ad={_0x346fa9:0x2ba,_0x47bf55:0x2a6,_0x3d8720:0x166,_0x9d83e3:0xb2,_0x7f8508:0x165,_0x38dbe3:0x2c8,_0xd7e099:0x2d3,_0x5b1585:0x335,_0x49dc72:0x38c,_0x3f663e:0x20f,_0x3a2e0a:0x2cf,_0x1539d7:0x28a,_0x2d9700:0x113,_0x5c22db:0xad,_0x616c86:0x3c1,_0x3c29c9:0x336,_0x172fcb:0x22f,_0x517e89:0x2b8,_0x5acd0b:0x17f,_0x3616b5:0x133,_0x2068df:0x24d,_0x4fa5d1:0x234,_0x7f399f:0x165,_0x50c094:0x3c8,_0x3395d1:0x262,_0x25d1a2:0x47,_0x9776c7:0x2c6,_0xa31186:0x3fe,_0x2558ca:0x252,_0x47c02f:0x32f,_0x24cb83:0x2c3,_0x29eee3:0x35b,_0xf57d7f:0x451,_0x5caf95:0x34c,_0x7236f0:0x2ec,_0x4bc63e:0x39e,_0x58bb2b:0x1df,_0x49a6d1:0x268,_0x1ffa4d:0x26d,_0xcac82a:0x30a,_0x4730c0:0x485,_0x50de67:0x38c,_0x5ba145:0x346,_0x449c3:0x22c,_0x87e982:0x1e5,_0x82a202:0x1fb,_0xa8df4b:0x154,_0x4a8360:0x21a,_0x2a9876:0x29e,_0x3bafb0:0x237,_0x55d71e:0x16b,_0x3cadd0:0x1ef,_0xb40a1f:0x29f,_0x500d69:0x356,_0x3633a1:0x28c,_0x1fe53d:0x1fa,_0x10e286:0x191,_0x9d83fe:0xbb,_0x413274:0x140,_0x1c1ba5:0xd3,_0x4df184:0x84,_0xfe9fa2:0x140,_0x555edf:0x1e7,_0x57b123:0x360,_0x1d7996:0x240,_0x4e20b8:0x113,_0x2a628b:0x2c,_0x20198c:0xb7,_0x504886:0x3b0,_0xcee1dd:0x2a5,_0x1dece9:0x245,_0x296f7e:0x1bd,_0x2eee49:0x140,_0x1b756f:0x348,_0x4b0c79:0x2b0,_0x1b2b7a:0x24e,_0x5861fd:0x30b,_0x211434:0x268,_0x5c9855:0x28f,_0x3a1abd:0x208,_0x89f44a:0x257,_0x5dfce0:0x2c0,_0x150470:0x296,_0x27c588:0x256,_0x133c5d:0x2ca,_0x1ac5fb:0x254,_0x5e7c99:0x2b0,_0x37135e:0x1b9,_0x4c84e7:0x182,_0x3bef9b:0x2d8,_0x1f4b36:0x25f,_0x1b9d66:0x2b0,_0x293980:0x2b1,_0x3578b5:0x343,_0xaf008f:0x1af,_0x3e73a4:0x1eb,_0x536395:0x2ef,_0x506b05:0x100,_0x206ddb:0x23a,_0x4d26f0:0x26a,_0x2b43db:0x2ea,_0x3c531c:0x304,_0x3f9e15:0x367,_0x39c148:0x1bb,_0x3cb676:0x13e,_0xc0f66e:0x2bf,_0x2f86eb:0x280,_0x1f19a0:0x256,_0x5de085:0x15b,_0x1b0afa:0x325,_0x38f6cc:0x245,_0xad08d8:0x174,_0x5d5e0b:0x215,_0x292b83:0x294,_0xd05ab6:0x1ef,_0x330b4c:0x1d6,_0x56b867:0x2a8,_0x7c6cee:0x1e6,_0x1694cd:0x1ea,_0x32d514:0x1f7,_0x33aa0a:0x148,_0x20a79a:0x127,_0x3510bc:0x205,_0x2bc3bc:0xee,_0x1bccfc:0x431,_0x56008f:0x312,_0x2889c8:0x29a},_0x241d94={_0xc98af2:0xb9},_0x48c26c={_0x194a02:0x1dc};function _0x5057d8(_0x701a05,_0x243b7b,_0x406ac4,_0x274dba){return _0x5b3424(_0x701a05-_0x48c26c._0x194a02,_0x243b7b-0x46b,_0x406ac4-0x13a,_0x406ac4);}const _0xbc7527=[];if(_0x360fbd[_0x5057d8(_0xcd31ad._0x346fa9,0x335,0x2ee,_0xcd31ad._0x47bf55)]!==void 0x0&&_0x360fbd[_0x41df06(-0x1f7,-_0xcd31ad._0x3d8720,-_0xcd31ad._0x9d83e3,-_0xcd31ad._0x7f8508)]!==null&&typeof _0x360fbd[_0x5057d8(0x36d,0x335,0x424,0x2d4)]===_0x5057d8(0x1f6,0x2fe,0x3d9,_0xcd31ad._0x38dbe3))throw new ProviderStreamEventError(_0x360fbd[_0x5057d8(_0xcd31ad._0xd7e099,_0xcd31ad._0x5b1585,_0xcd31ad._0x49dc72,0x296)][_0x41df06(-0x18b,-0x1c6,-0x260,-_0xcd31ad._0x3f663e)]??_0x41df06(-_0xcd31ad._0x3a2e0a,-0x244,-0x32d,-_0xcd31ad._0x1539d7),{'code':typeof _0x360fbd[_0x41df06(-_0xcd31ad._0x2d9700,-0x166,-0x203,-_0xcd31ad._0x5c22db)][_0x5057d8(_0xcd31ad._0x616c86,_0xcd31ad._0x3c29c9,_0xcd31ad._0x172fcb,_0xcd31ad._0x517e89)]==='string'?_0x360fbd[_0x41df06(-_0xcd31ad._0x5acd0b,-0x166,-_0xcd31ad._0x3616b5,-_0xcd31ad._0x2068df)][_0x41df06(-_0xcd31ad._0x4fa5d1,-_0xcd31ad._0x7f399f,-0x111,-0xb7)]:void 0x0,'retryable':!![],'status':typeof _0x360fbd[_0x5057d8(0x2d6,_0xcd31ad._0x5b1585,0x406,_0xcd31ad._0x50c094)][_0x41df06(-_0xcd31ad._0x3395d1,-0x165,-0x137,-_0xcd31ad._0x3f663e)]===_0x41df06(-0x155,-0x154,-_0xcd31ad._0x25d1a2,-0x252)?_0x360fbd[_0x5057d8(0x25e,0x335,_0xcd31ad._0x9776c7,_0xcd31ad._0xa31186)][_0x41df06(-0x194,-0x165,-_0xcd31ad._0x2558ca,-0x21b)]:void 0x0});function _0x41df06(_0x3dfd16,_0x21bcca,_0x1c64c7,_0x3ddabb){return _0x3dbb2c(_0x3dfd16-0x77,_0x21bcca- -0x406,_0x1c64c7-_0x241d94._0xc98af2,_0x3ddabb);}for(const _0x52b2e9 of _0x360fbd['choices']??[]){const _0x489c41=_0x52b2e9['delta'],_0x35129a=extractChatCompletionReasoningDelta(_0x489c41);_0x35129a[_0x5057d8(0x2e1,0x1fc,0x259,0x2e7)]>0x0&&(this[_0x5057d8(_0xcd31ad._0x47c02f,0x24d,_0xcd31ad._0x24cb83,0x285)][_0x5057d8(0x3b6,_0xcd31ad._0x29eee3,0x355,_0xcd31ad._0xf57d7f)](_0x35129a),isUserVisibleReasoning(this[_0x41df06(-_0xcd31ad._0x5caf95,-_0xcd31ad._0x7236f0,-0x2c8,-_0xcd31ad._0x4bc63e)])&&_0xbc7527[_0x41df06(-0x238,-0x140,-0x93,-_0xcd31ad._0x58bb2b)]({'type':_0x41df06(-_0xcd31ad._0x49a6d1,-_0xcd31ad._0x1ffa4d,-0x2b6,-_0xcd31ad._0xcac82a),'contentIndex':0x0,'delta':_0x35129a,'itemId':(this[_0x5057d8(_0xcd31ad._0x4730c0,_0xcd31ad._0x50de67,0x432,_0xcd31ad._0x5ba145)]||_0x41df06(-_0xcd31ad._0x449c3,-_0xcd31ad._0x87e982,-0x1b3,-0x137))+_0x5057d8(0x2b3,_0xcd31ad._0x82a202,0x203,_0xcd31ad._0xa8df4b),'outputIndex':0x0}));const _0x49f665=typeof _0x489c41?.['content']==='string'?_0x489c41['content']:typeof _0x489c41?.[_0x41df06(-_0xcd31ad._0x4a8360,-_0xcd31ad._0x2a9876,-0x1a7,-_0xcd31ad._0x3bafb0)]===_0x5057d8(0x27b,0x201,0x248,_0xcd31ad._0x55d71e)?_0x489c41[_0x5057d8(0x108,0x1fd,0x2a5,0x1ea)]:'';_0x49f665[_0x41df06(-_0xcd31ad._0x3cadd0,-_0xcd31ad._0xb40a1f,-_0xcd31ad._0x500d69,-0x279)]>0x0&&(this[_0x5057d8(0x204,_0xcd31ad._0x3633a1,_0xcd31ad._0x1fe53d,_0xcd31ad._0x10e286)][_0x41df06(-_0xcd31ad._0x9d83fe,-_0xcd31ad._0x413274,-0x88,-_0xcd31ad._0x1c1ba5)](_0x49f665),_0xbc7527[_0x41df06(-_0xcd31ad._0x4df184,-_0xcd31ad._0xfe9fa2,-0x1e9,-_0xcd31ad._0x555edf)]({'type':'content_delta','index':0x0,'text':_0x49f665}));for(const _0x4d4c2b of _0x489c41?.[_0x5057d8(_0xcd31ad._0x5b1585,0x305,0x252,_0xcd31ad._0x57b123)]??[]){const _0x2b7480=_0x4d4c2b[_0x5057d8(0x316,0x284,0x308,_0xcd31ad._0x1d7996)]??0x0;let _0x51d870=this['toolCallsByIndex'][_0x41df06(-0x19c,-_0xcd31ad._0x4e20b8,-_0xcd31ad._0x2a628b,-_0xcd31ad._0x20198c)](_0x2b7480);!_0x51d870&&(_0x51d870={'id':_0x4d4c2b['id']??_0x5057d8(_0xcd31ad._0x504886,_0xcd31ad._0xcee1dd,0x2a0,_0xcd31ad._0x1dece9)+_0x2b7480,'type':_0x41df06(-_0xcd31ad._0x296f7e,-0x245,-0x14b,-_0xcd31ad._0x2eee49),'function':{'name':_0x4d4c2b['function']?.[_0x5057d8(_0xcd31ad._0x1b756f,_0xcd31ad._0x4b0c79,_0xcd31ad._0x1b2b7a,_0xcd31ad._0x5861fd)]??'','arguments':''}},this[_0x41df06(-0x256,-0x208,-_0xcd31ad._0x211434,-_0xcd31ad._0x3bafb0)][_0x5057d8(0x19a,_0xcd31ad._0x5c9855,_0xcd31ad._0x3a1abd,0x2b3)](_0x2b7480,_0x51d870),this[_0x41df06(-_0xcd31ad._0x89f44a,-_0xcd31ad._0x5dfce0,-_0xcd31ad._0x150470,-0x326)][_0x5057d8(0x37e,0x35b,0x443,0x2ac)](_0x51d870));_0x4d4c2b['id']&&(_0x51d870['id']=_0x4d4c2b['id']);_0x4d4c2b[_0x5057d8(0x34a,_0xcd31ad._0x27c588,_0xcd31ad._0x133c5d,0x345)]?.[_0x5057d8(_0xcd31ad._0x1ac5fb,_0xcd31ad._0x5e7c99,0x25d,_0xcd31ad._0x37135e)]&&(_0x51d870[_0x5057d8(_0xcd31ad._0x4c84e7,0x256,0x2e9,_0xcd31ad._0x3bef9b)][_0x5057d8(_0xcd31ad._0x1f4b36,_0xcd31ad._0x1b9d66,0x2e8,0x1ea)]=_0x4d4c2b[_0x41df06(-_0xcd31ad._0x293980,-0x245,-_0xcd31ad._0x3578b5,-_0xcd31ad._0xaf008f)][_0x41df06(-0x1b1,-_0xcd31ad._0x3e73a4,-_0xcd31ad._0x536395,-0x190)]);!this[_0x41df06(-0x15d,-0x1f7,-_0xcd31ad._0x506b05,-_0xcd31ad._0x206ddb)][_0x5057d8(0x1d1,0x19e,0x90,_0xcd31ad._0x206ddb)](_0x2b7480)&&_0x51d870[_0x5057d8(0x331,0x256,0x1af,_0xcd31ad._0x4d26f0)][_0x5057d8(0x1a7,_0xcd31ad._0x5e7c99,_0xcd31ad._0x2b43db,_0xcd31ad._0x3c531c)][_0x41df06(-0x317,-0x2ea,-0x22b,-0x3e1)]()[_0x41df06(-0x381,-0x29f,-_0xcd31ad._0x3f9e15,-0x366)]>0x0&&(_0xbc7527[_0x41df06(-_0xcd31ad._0x39c148,-0x140,-_0xcd31ad._0x3cb676,-0x18f)]({'type':'tool_use_delta','id':_0x51d870['id'],'index':_0x2b7480,'name':_0x51d870[_0x41df06(-0x20a,-0x245,-_0xcd31ad._0xc0f66e,-0x1f0)]['name']}),this[_0x5057d8(0x1fd,0x2a4,0x33c,_0xcd31ad._0x2f86eb)]['add'](_0x2b7480));const _0x3aeae8=_0x4d4c2b[_0x5057d8(0x1fa,_0xcd31ad._0x1f19a0,0x35c,_0xcd31ad._0x5de085)]?.['arguments']??'';_0x3aeae8['length']>0x0&&(_0x51d870[_0x41df06(-_0xcd31ad._0x1b0afa,-_0xcd31ad._0x38f6cc,-_0xcd31ad._0xad08d8,-0x1c1)][_0x5057d8(0x23f,0x1b7,_0xcd31ad._0x5d5e0b,0x277)]+=_0x3aeae8,_0xbc7527[_0x5057d8(0x374,0x35b,0x458,0x3a0)]({'type':'tool_use_delta','id':_0x51d870['id'],'index':_0x2b7480,'inputDelta':_0x3aeae8}));}_0x52b2e9[_0x5057d8(_0xcd31ad._0x292b83,_0xcd31ad._0xd05ab6,_0xcd31ad._0x330b4c,_0xcd31ad._0x56b867)]===_0x41df06(-0xa1,-0x196,-_0xcd31ad._0x7c6cee,-_0xcd31ad._0x1694cd)&&(this[_0x41df06(-_0xcd31ad._0x32d514,-0x161,-_0xcd31ad._0x33aa0a,-_0xcd31ad._0x20a79a)]='tool_use');if(_0x52b2e9['finish_reason']===_0x41df06(-_0xcd31ad._0x3510bc,-_0xcd31ad._0x3d8720,-0x1a0,-_0xcd31ad._0x2bc3bc))throw new ProviderStreamEventError(_0x5057d8(0x2c1,0x350,_0xcd31ad._0x1bccfc,_0xcd31ad._0xd7e099),{'retryable':!![]});typeof _0x52b2e9[_0x41df06(-_0xcd31ad._0x56008f,-0x2ac,-0x3aa,-0x32a)]===_0x41df06(-0x25c,-_0xcd31ad._0x2889c8,-0x213,-0x384)&&_0x52b2e9[_0x41df06(-0x36a,-0x2ac,-0x3ad,-0x32f)]['length']>0x0&&(this['done']=!![]);}return _0xbc7527;}},OpenAiResponsesStreamParser=class{['callIdToOutputIndex']=new Map();['finalResponse'];[_0x5b3424(-0x2f8,-0x292,-0x1f5,-0x36b)]=new Map();[_0x5b3424(-0x1d6,-0x2c1,-0x263,-0x2c5)]=new Map();['reasoningItems']=new Map();[_0x3dbb2c(0x179,0x11a,0x20e,0x147)];[_0x3dbb2c(0x322,0x23f,0x312,0x1dc)]=new Map();[_0x5b3424(-0x5f,-0xd5,-0x185,-0x9f)]=new Map();constructor(_0x212c32){const _0xbd03fb={_0x33ab81:0x111};function _0x26517a(_0x477a14,_0x559265,_0x34ba9f,_0x343069){return _0x3dbb2c(_0x477a14-0x178,_0x34ba9f- -0x29,_0x34ba9f-0x1f3,_0x343069);}this[_0x26517a(_0xbd03fb._0x33ab81,0x12d,0xf1,-0x19)]=_0x212c32;}[_0x3dbb2c(0x209,0x148,0x142,0x1b6)](_0x1eaf26){const _0x2186ef={_0x38ae8f:0x584,_0x284be8:0x4ec,_0x134c20:0x45d,_0x17cd4c:0x1d9,_0x5574a0:0x163,_0x5f5742:0x101,_0x48e859:0x59e,_0x5d1f53:0x4c9,_0xd533bb:0x2d,_0x37dee4:0x41,_0x484a1c:0x21,_0x1afc8e:0x3ae,_0x4fc74c:0x43d,_0x19e523:0x3bc,_0x26bae5:0x448,_0x4ea68b:0x42c,_0x504e38:0x9},_0x370589={_0x5d4c89:0x54},_0x5998d0={_0x17e596:0x2d6,_0x50c0d1:0x4e},_0x44ad25=_0x1eaf26[_0x4f6760(0x447,_0x2186ef._0x38ae8f,_0x2186ef._0x284be8,_0x2186ef._0x134c20)]('\x0a'),_0x5913b3=_0x44ad25[_0x12b17d(_0x2186ef._0x17cd4c,_0x2186ef._0x5574a0,0xef,_0x2186ef._0x5f5742)](_0x1de24e=>_0x1de24e[_0x4f6760(0x50d,0x5a2,0x494,0x518)](_0x12b17d(-0x62,-0xac,0x7c,0x22)))?.['slice'](0x6)['trim'](),_0x57068a=_0x44ad25[_0x4f6760(0x4d1,0x651,_0x2186ef._0x48e859,_0x2186ef._0x5d1f53)](_0x59dcb3=>_0x59dcb3[_0x4f6760(0x584,0x5a2,0x494,0x51b)](_0x12b17d(0x26f,0x1c7,0x190,0x1c3)))[_0x12b17d(-0xaf,-0xe,-0xfb,-0x2)](_0x45fba1=>_0x45fba1[_0x4f6760(0x506,0x580,0x5af,0x697)](0x5)[_0x12b17d(0x159,0x87,0x5c,0xa3)]())['join']('\x0a')[_0x12b17d(_0x2186ef._0xd533bb,-_0x2186ef._0x37dee4,-0x3f,-_0x2186ef._0x484a1c)]();function _0x4f6760(_0x5cfabf,_0x3197d9,_0x469337,_0x4f3e72){return _0x3dbb2c(_0x5cfabf-0x196,_0x469337-_0x5998d0._0x17e596,_0x469337-_0x5998d0._0x50c0d1,_0x4f3e72);}function _0x12b17d(_0x1ad2b6,_0x47977b,_0x51e0e9,_0x4b02bc){return _0x3dbb2c(_0x1ad2b6-_0x370589._0x5d4c89,_0x4b02bc- -0x13d,_0x51e0e9-0x110,_0x47977b);}if(_0x57068a[_0x4f6760(_0x2186ef._0x1afc8e,0x3ed,_0x2186ef._0x4fc74c,_0x2186ef._0x19e523)]===0x0||_0x57068a==='[DONE]')return[];const _0x2562e3=JSON[_0x4f6760(0x368,_0x2186ef._0x26bae5,_0x2186ef._0x4ea68b,0x3c8)](_0x57068a);return this['consumeEvent'](_0x5913b3??String(_0x2562e3[_0x12b17d(0xa4,-0x10b,-0xd9,-_0x2186ef._0x504e38)]??''),_0x2562e3);}[_0x3dbb2c(0x1be,0x16e,0x260,0x1e4)](_0x5be57b){const _0x480e27={_0xd90775:0x284,_0x34cab6:0x206,_0x57a21f:0x128},_0x16925c={_0x13a550:0x1e4};function _0x2eac78(_0x445d50,_0x1fa8f4,_0x1d19f0,_0x3eafc8){return _0x5b3424(_0x445d50-_0x16925c._0x13a550,_0x1d19f0-0x9c,_0x1d19f0-0x104,_0x3eafc8);}return this['consumeEvent'](String(_0x5be57b[_0x2eac78(-0x2b7,-_0x480e27._0xd90775,-_0x480e27._0x34cab6,-_0x480e27._0x57a21f)]??''),_0x5be57b);}[_0x5b3424(-0x1cb,-0x285,-0x2cf,-0x291)](){const _0x1976d9={_0x482e83:0x232,_0x583fa2:0x296,_0x217ff6:0xcd,_0x2dd333:0x6c5,_0x338453:0x615,_0x1d0128:0x39f,_0x494ab2:0x431,_0x34adba:0xb9,_0x525393:0xa8,_0x2153af:0x7c,_0x278932:0x14c},_0x5274f0={_0x3f3c11:0x31d,_0x29f5c9:0x174},_0x57f11f={_0x546e08:0x1bd,_0x4550db:0x113,_0x516b1f:0x1c9};function _0x11ad5a(_0x404b76,_0x5116c9,_0x9dc6b5,_0x2fb05d){return _0x3dbb2c(_0x404b76-_0x57f11f._0x546e08,_0x5116c9- -_0x57f11f._0x4550db,_0x9dc6b5-_0x57f11f._0x516b1f,_0x2fb05d);}function _0xea1bef(_0x16e32e,_0x3a3f76,_0x1c4bfb,_0x3a6896){return _0x3dbb2c(_0x16e32e-0x19d,_0x1c4bfb-_0x5274f0._0x3f3c11,_0x1c4bfb-_0x5274f0._0x29f5c9,_0x16e32e);}if(!this['finalResponse'])throw new ProviderStreamEventError('Responses\x20stream\x20ended\x20before\x20a\x20terminal\x20event',{'retryable':!![]});const _0x2045fe=this[_0x11ad5a(_0x1976d9._0x482e83,0x1d2,_0x1976d9._0x583fa2,_0x1976d9._0x217ff6)](),_0x340fd5={...this['finalResponse'],'output':this['finalResponse'][_0xea1bef(0x5c1,_0x1976d9._0x2dd333,_0x1976d9._0x338453,0x685)]&&this[_0xea1bef(_0x1976d9._0x1d0128,0x3bd,_0x1976d9._0x494ab2,0x3a4)]['output'][_0x11ad5a(_0x1976d9._0x34adba,0x54,-0x6e,_0x1976d9._0x525393)]>0x0?this[_0x11ad5a(0xeb,0x1,-0xe2,-_0x1976d9._0x2153af)][_0x11ad5a(0x228,0x1e5,_0x1976d9._0x278932,0x262)]:_0x2045fe};return parseResponsesResponse(_0x340fd5,this['request']);}[_0x3dbb2c(0x1fb,0x13c,0xaf,0x14e)](){const _0x227139={_0x1b692f:0x2f9},_0x3ad9dc={_0xd42ad1:0x127};function _0x41fdd3(_0x3c12af,_0x36c99a,_0x1273cb,_0x4c87f3){return _0x3dbb2c(_0x3c12af-_0x3ad9dc._0xd42ad1,_0x4c87f3-0x1e1,_0x1273cb-0x1b8,_0x36c99a);}return this[_0x41fdd3(_0x227139._0x1b692f,0x1ec,0x33c,0x2f5)]!==void 0x0;}[_0x5b3424(-0x1ca,-0x1dd,-0x173,-0x1f6)](_0x35d39c,_0x1460ae){const _0x1a14fe={_0x1be295:0x5e0,_0x441192:0x54f,_0x993838:0x5da,_0x38fcd0:0x4e4,_0x4cab30:0x409,_0x12ec07:0xb1,_0x421cb4:0x520,_0x21e10d:0x4f3,_0x2163b8:0x4e2,_0x307c6a:0x48f,_0x18fb6e:0x567,_0x3d22f7:0x486,_0x585ca6:0x505,_0x384cd4:0x5e0,_0x55e63c:0x53f,_0x1e3951:0x379,_0x366714:0x1bd,_0x98e937:0xce,_0x2306d4:0x16b,_0x2029d0:0xee,_0x8e3ecb:0x45c,_0x177586:0x168,_0x151920:0x25d,_0x12ec87:0x2ec,_0x9dd030:0x1f8,_0x3a9b75:0x357,_0x515335:0x33c,_0x3d8c22:0x3e1,_0x3ea1cb:0x1a2,_0x1451fe:0x4fd,_0x36ef28:0x3c2,_0x59f840:0x5a9,_0x2f11c0:0x4e9,_0xad8dd6:0x412,_0x2b1d05:0x4da,_0x1b33c7:0x1ae,_0x463787:0x121,_0x5e9c96:0x463,_0x3a446d:0x235,_0x212db2:0x13e,_0x174f67:0x17e,_0x4044b5:0x3c1,_0x12f4eb:0x203,_0x27c764:0x28b,_0x5197cb:0x522,_0x52b26e:0x55e,_0x3c8eb9:0x42a,_0x41c127:0x223,_0x4bfb17:0x203,_0x587246:0x5f3,_0x9e2e7a:0x4b9,_0x23cd1d:0x1e4,_0x32c4db:0xe7,_0x38f7f2:0x28c,_0x179492:0x2c1,_0x364747:0x27a,_0x298d6f:0x376,_0x4f13b:0xf2,_0x15a976:0x504,_0x1fa0ee:0x4a8,_0x31ba6c:0x171,_0x5115a6:0x4f3,_0x279be0:0x46c,_0x231950:0x4d3,_0x1ea7ab:0x28f,_0x46e793:0x2d0,_0x1df28e:0x2b3,_0x35b77d:0x283,_0x29bebc:0x295,_0x243981:0x398,_0x252523:0x3fa,_0x2b28fe:0x5a0,_0x25ab8b:0x44e,_0x5c770c:0x702,_0x144841:0x61b,_0x5d66f0:0x681,_0x362ade:0x6a3,_0x173a8b:0xe6,_0x30d34e:0x144,_0x312e8e:0x1fd,_0x91931f:0xdd,_0xea5d94:0x63,_0x2e3c14:0x6a,_0x49e292:0x2a,_0x4ed66d:0x4ab,_0x2e3c4b:0x602,_0x187eb6:0x5e0,_0x58227d:0x6e2,_0x35bcd1:0x5da,_0x373102:0x5d9,_0x27791a:0x620,_0x2d407d:0x1df,_0x57031b:0x298,_0x349903:0x23a,_0x454af1:0x21c,_0x11461d:0x5b5,_0x4021b8:0x4b3,_0x27a08f:0x591,_0x19814c:0x57a,_0x101659:0x1e3,_0x449edc:0x312,_0x401405:0x2c6,_0x13d2f0:0x396,_0x545f04:0x2e9,_0xadaf89:0x22c,_0x511cdf:0x1e0,_0x2a62ab:0x1dd,_0xade870:0x423,_0xb277fd:0x44a,_0x2ee208:0x10e,_0x2e76d2:0x19e,_0x2f1b42:0xcc,_0x2630bd:0xff,_0x52e1b6:0x75,_0x1b0082:0x557,_0x5b3eea:0x1b6,_0xbaf14e:0x18c,_0x2319a8:0x31c,_0x300035:0x285,_0x537552:0x38a,_0x5dc6ba:0x2d9,_0x2e1650:0x23a,_0x5b1184:0x41b,_0x319b80:0x449,_0x2151b4:0x572,_0x5d47df:0x2f4,_0x4a62c9:0x2c3,_0x117863:0x317,_0xccbeb2:0x6f0,_0x47eeef:0x10b,_0x1e1905:0x3ed,_0x21e9ca:0x518,_0x2a5efd:0x42c,_0x6f3a28:0x42c,_0x2787fa:0x4e9,_0x4769b5:0x511,_0x2d5e15:0x3d7,_0x119ad7:0x44a,_0x3f5ca:0x3c4,_0x2a0856:0x20a,_0x192038:0x471,_0x3e5424:0x494,_0x4ae5c5:0x447,_0x2d78d4:0x59a,_0x3f658d:0x552,_0x2777df:0x238,_0x3e96d6:0x169,_0x10c918:0x5d9,_0x590851:0x508,_0x4c56ad:0x461,_0x45cb68:0x52c,_0x212e9d:0x48f,_0xd6bd14:0x1be,_0x7eb019:0x146,_0x286c39:0x1e1,_0x6acfdd:0x1a6,_0x5b0f03:0x111,_0x39d6f5:0x183,_0x3145d6:0x4ea,_0x387996:0x5ca,_0x488afb:0x413,_0x50c4f1:0x441,_0x578ad7:0x4bc,_0x366e0f:0x4f4,_0x586986:0x4bb,_0x78347:0x12e,_0x3361d3:0x149,_0x10913b:0x4f6,_0x2fe7b6:0xe2,_0x53ce48:0x18b,_0x1e4333:0x1d7,_0x6575ac:0x4f4,_0x4b2fcf:0x4ca,_0x1395ce:0x480,_0x2215ae:0x594,_0x516e93:0x55c,_0x4095e4:0x1c0,_0x557cd5:0x178,_0x479606:0xe5,_0x2eee30:0x149,_0x4623d8:0x16e,_0x5d3daf:0x5c5,_0x490603:0x643,_0x9518c8:0x53c,_0x1a90b8:0x2ab,_0x220b6d:0x2b1,_0x277fff:0x1d0,_0x764871:0x28f,_0x2afb16:0x1b4,_0x2ec4ed:0x5e,_0x509487:0x41,_0x5ca93b:0xf2,_0x2ab1da:0x521,_0x1e7f6e:0x51d,_0x545aee:0x297,_0x407acc:0x295,_0x5c7b8a:0x20d,_0x51472b:0x273,_0x1536d0:0x2e0,_0x2b4916:0x440,_0x4e0be7:0x56a,_0x4521ab:0x27a,_0x38aaba:0x28d,_0x49d921:0x96,_0x223fbb:0xf0,_0xe091c6:0x522,_0x1c39d1:0x377,_0x59bab5:0x1e0,_0x4b18f5:0xf7,_0x4e53a8:0x230,_0x2268a9:0x239,_0x514a70:0x5d6,_0xd67709:0x531,_0x563527:0x231,_0x1e21aa:0x149,_0xdafec2:0xe0,_0x5661e9:0x2b4,_0x4dbc94:0x29c,_0x3af2d6:0x5c4,_0x2faed3:0x1a9,_0x48a289:0x194,_0xd09191:0x725,_0x855da5:0x61b,_0x11ce37:0x549,_0x5ac601:0x6e6,_0x30e4e7:0x1c1,_0x49ae92:0x372,_0x1c2fb6:0x31a,_0xc22ed7:0x320,_0x51bde8:0x62b,_0x11ce6f:0x6f2,_0x376fe0:0x4f4,_0x17ffa2:0x469,_0x21f296:0x576,_0x2396cb:0x483,_0x421fd6:0x494,_0x557565:0x439,_0x4d9815:0x5cb,_0x3079f4:0x43b,_0x59bced:0x420,_0x3d7433:0x437,_0x18ffe9:0x522,_0x4339c2:0x5ee,_0x55e904:0x4ba,_0x1886d2:0x274,_0x17a07a:0x1c2,_0x5e8338:0x539,_0x4c04c3:0xa9,_0xf5ec05:0x589,_0x2f8e54:0x419,_0x5a14e3:0x2eb,_0x483e79:0x4a5,_0xbbf79e:0x472,_0x43c99a:0x642,_0x984bc9:0x5e7,_0x50b725:0x6f1,_0x5318b5:0x4e5,_0x3f5ca8:0x1a1,_0x15d630:0x43d,_0x1f2a08:0x43c,_0x34d18a:0x22d,_0x4b8b8d:0x30c,_0x273ac0:0x295,_0x159c9f:0x6c5,_0x9eefd0:0x5e0,_0x2d6936:0x592,_0x1e76e2:0x6b9,_0x3f4223:0x47,_0x3a8ed5:0x132,_0x7bfe41:0x5da,_0xd6c076:0x5f9,_0x30b7fc:0x3e6,_0x5ca46b:0x47d,_0x3d8f27:0x3bf,_0x34bc3b:0x1c9,_0x54f1ec:0x20e,_0x30679a:0x19d,_0x111a5f:0x639,_0x319cdc:0x277,_0x34fc89:0x1ca,_0x423713:0xf7,_0x26b610:0x5fc,_0x2d40ab:0x5be,_0x393d0a:0x213,_0x1d5b04:0x2ff,_0x25ac50:0x29c,_0xc09b41:0x38f,_0x185881:0x396,_0x49c063:0x494,_0x104ea7:0x429,_0x3d7bdf:0x425,_0x110a2e:0x5fb,_0x54b9a1:0x61b,_0x11b7b6:0x19a,_0xa97778:0x200,_0x6041ec:0x3a3,_0x44d22a:0x344,_0x17e886:0x554,_0x25e4fe:0x5da,_0x54dd41:0x572,_0x1697fa:0x5d3,_0x3a2722:0x295,_0x52eb82:0x278,_0x181f09:0x14e,_0x15baae:0x132,_0x6fd40f:0x39c,_0x53c911:0x252,_0x55fb30:0xc5,_0x16ea2f:0x149,_0xd1aa4e:0x5b3,_0x566154:0x12f,_0x5aa29f:0x136,_0x5b1c86:0x2c0,_0x1e63f6:0x277,_0x35c5fe:0x2c5,_0x2318dd:0x3d0,_0x3e52eb:0x330,_0x51f728:0x20a,_0xf2467b:0x71a,_0x4cf72e:0x540,_0x34d1ad:0x2fc,_0x218edd:0x5c8,_0x190c7b:0x6b8,_0x38f25b:0x561,_0x4cd4c5:0x5c8,_0x5506bf:0x5ca,_0x4cb0e1:0x5ed,_0x1d7c41:0x2d7,_0x4b165e:0x2cc,_0x33dfa6:0x247,_0x386e59:0x519,_0x118bad:0x5c9,_0x69db0:0x472,_0x5ce8c7:0x48b,_0x860381:0x53d,_0x5083d3:0x1ef,_0x48d024:0x2d},_0x3fb873={_0x4bb4c9:0x6fe,_0x5d6dd2:0x82},_0x310992={_0x350233:0x97};function _0xba67ff(_0x444c65,_0x2d1f67,_0x405bf0,_0xae8161){return _0x5b3424(_0x444c65-0x10a,_0x405bf0-0x3b3,_0x405bf0-_0x310992._0x350233,_0x444c65);}switch(_0x35d39c){case'response.output_text.delta':{const _0x555e95=typeof _0x1460ae[_0x2cf866(0x6e5,_0x1a14fe._0x1be295,0x5ac,0x673)]===_0x2cf866(_0x1a14fe._0x441192,_0x1a14fe._0x993838,0x647,_0x1a14fe._0x38fcd0)?_0x1460ae['output_index']:0x0,_0x4e4293=typeof _0x1460ae[_0x2cf866(0x56d,0x4f3,0x512,_0x1a14fe._0x4cab30)]===_0xba67ff(0x18a,0x122,0x149,_0x1a14fe._0x12ec07)?_0x1460ae[_0x2cf866(_0x1a14fe._0x421cb4,_0x1a14fe._0x21e10d,0x414,_0x1a14fe._0x2163b8)]:'';if(_0x4e4293[_0x2cf866(0x3ad,_0x1a14fe._0x307c6a,0x466,0x479)]>0x0){const _0x272fa8=this[_0x2cf866(0x4c6,_0x1a14fe._0x18fb6e,0x4bd,_0x1a14fe._0x3d22f7)]['get'](_0x555e95)??[];return _0x272fa8['push'](_0x4e4293),this['responseTextParts']['set'](_0x555e95,_0x272fa8),[{'type':'content_delta','index':_0x555e95,'text':_0x4e4293}];}break;}case _0x2cf866(_0x1a14fe._0x585ca6,0x552,0x567,0x64e):{const _0x67c9d4=typeof _0x1460ae[_0x2cf866(0x6d6,_0x1a14fe._0x384cd4,0x660,_0x1a14fe._0x55e63c)]===_0xba67ff(_0x1a14fe._0x1e3951,0x240,0x28f,_0x1a14fe._0x366714)?_0x1460ae[_0x2cf866(0x58a,0x5e0,0x4f4,0x4d6)]:void 0x0,_0x1d18a9=_0x1460ae[_0xba67ff(_0x1a14fe._0x98e937,0xa4,_0x1a14fe._0x2306d4,_0x1a14fe._0x2029d0)];if(_0x1d18a9?.[_0x2cf866(0x52e,_0x1a14fe._0x8e3ecb,0x4f7,0x3a8)]==='function_call'&&_0x1d18a9[_0xba67ff(0x171,0x14f,_0x1a14fe._0x177586,_0x1a14fe._0x151920)]&&_0x1d18a9[_0xba67ff(0x1ea,_0x1a14fe._0x12ec87,_0x1a14fe._0x9dd030,0x243)])return this[_0xba67ff(_0x1a14fe._0x3a9b75,_0x1a14fe._0x515335,0x2de,_0x1a14fe._0x3d8c22)][_0xba67ff(_0x1a14fe._0x3ea1cb,0x146,0x1d7,0x223)](_0x1d18a9[_0xba67ff(0x125,0x12e,0x168,0x25c)],{'id':_0x1d18a9[_0x2cf866(_0x1a14fe._0x1451fe,0x4b3,0x467,_0x1a14fe._0x36ef28)],'type':_0x2cf866(_0x1a14fe._0x59f840,_0x1a14fe._0x2f11c0,_0x1a14fe._0xad8dd6,_0x1a14fe._0x2b1d05),'function':{'name':_0x1d18a9['name'],'arguments':''}}),_0x67c9d4!==void 0x0&&(this[_0xba67ff(0x11a,_0x1a14fe._0x1b33c7,_0x1a14fe._0x463787,0x11c)][_0x2cf866(0x57c,0x522,_0x1a14fe._0x5e9c96,0x431)](_0x67c9d4,_0x1d18a9[_0xba67ff(_0x1a14fe._0x3a446d,_0x1a14fe._0x212db2,0x168,_0x1a14fe._0x174f67)]),this[_0xba67ff(_0x1a14fe._0x4044b5,_0x1a14fe._0x12f4eb,0x2f0,_0x1a14fe._0x27c764)][_0x2cf866(0x62e,_0x1a14fe._0x5197cb,0x421,_0x1a14fe._0x52b26e)](_0x1d18a9[_0x2cf866(0x3cb,0x4b3,0x44b,_0x1a14fe._0x3c8eb9)],_0x67c9d4)),[{'type':_0xba67ff(_0x1a14fe._0x41c127,_0x1a14fe._0x4bfb17,0x160,0x107),'id':_0x1d18a9['call_id'],'index':_0x67c9d4??0x0,'name':_0x1d18a9[_0x2cf866(0x56f,0x543,_0x1a14fe._0x587246,_0x1a14fe._0x9e2e7a)]}];if(_0x1d18a9?.[_0xba67ff(0x1eb,_0x1a14fe._0x23cd1d,0x111,_0x1a14fe._0x32c4db)]===_0xba67ff(_0x1a14fe._0x38f7f2,_0x1a14fe._0x179492,0x2aa,0x2f2)&&_0x1d18a9['id']){const _0x4d80be=this[_0xba67ff(0x318,_0x1a14fe._0x38f7f2,_0x1a14fe._0x364747,_0x1a14fe._0x298d6f)](_0x1d18a9['id'],_0x67c9d4);_0x67c9d4!==void 0x0&&this[_0xba67ff(0xc,0x1e3,_0x1a14fe._0x4f13b,0x90)][_0x2cf866(_0x1a14fe._0x15a976,0x522,_0x1a14fe._0x1fa0ee,0x473)](_0x67c9d4,_0x4d80be['id']);}break;}case'response.function_call_arguments.delta':{const _0xf2a171=typeof _0x1460ae[_0xba67ff(0x165,0x83,0x168,_0x1a14fe._0x31ba6c)]===_0x2cf866(_0x1a14fe._0x5115a6,0x494,0x4db,0x3b7)?_0x1460ae[_0x2cf866(_0x1a14fe._0x279be0,0x4b3,0x49c,0x460)]:typeof _0x1460ae[_0x2cf866(_0x1a14fe._0x231950,_0x1a14fe._0x384cd4,0x698,0x663)]===_0xba67ff(0x1ff,0x2a0,_0x1a14fe._0x1ea7ab,0x2d3)?this['outputIndexToCallId'][_0xba67ff(0x1ca,0x25b,_0x1a14fe._0x46e793,0x318)](_0x1460ae[_0xba67ff(_0x1a14fe._0x1df28e,_0x1a14fe._0x35b77d,_0x1a14fe._0x29bebc,_0x1a14fe._0x243981)]):void 0x0,_0x133bbf=typeof _0x1460ae[_0x2cf866(0x5b2,0x4f3,0x3fb,0x58d)]===_0x2cf866(_0x1a14fe._0x252523,0x494,_0x1a14fe._0x2b28fe,_0x1a14fe._0x25ab8b)?_0x1460ae['delta']:'',_0x413f2c=_0xf2a171?this['toolCalls'][_0x2cf866(_0x1a14fe._0x5c770c,_0x1a14fe._0x144841,_0x1a14fe._0x5d66f0,_0x1a14fe._0x362ade)](_0xf2a171):void 0x0;if(_0x413f2c&&_0x133bbf[_0xba67ff(0x188,_0x1a14fe._0x173a8b,_0x1a14fe._0x30d34e,_0x1a14fe._0x312e8e)]>0x0)return _0x413f2c[_0xba67ff(0x12a,0x2a4,0x19e,_0x1a14fe._0x91931f)][_0xba67ff(_0x1a14fe._0xea5d94,_0x1a14fe._0x2e3c14,0xff,_0x1a14fe._0x49e292)]+=_0x133bbf,[{'type':_0x2cf866(0x504,_0x1a14fe._0x4ed66d,0x4d7,0x466),'id':_0x413f2c['id'],'index':this['callIdToOutputIndex'][_0xba67ff(0x2b9,0x364,0x2d0,0x3a1)](_0x413f2c['id'])??(typeof _0x1460ae[_0x2cf866(_0x1a14fe._0x2e3c4b,_0x1a14fe._0x187eb6,_0x1a14fe._0x58227d,0x639)]===_0x2cf866(0x4d5,_0x1a14fe._0x35bcd1,_0x1a14fe._0x373102,_0x1a14fe._0x27791a)?_0x1460ae[_0xba67ff(0x1d4,0x243,_0x1a14fe._0x29bebc,_0x1a14fe._0x2d407d)]:0x0),'inputDelta':_0x133bbf}];break;}case _0xba67ff(_0x1a14fe._0x57031b,0x273,0x263,0x270):{const _0x4d3067=typeof _0x1460ae[_0xba67ff(_0x1a14fe._0x349903,0x21b,0x168,_0x1a14fe._0x454af1)]==='string'?_0x1460ae[_0x2cf866(_0x1a14fe._0x11461d,_0x1a14fe._0x4021b8,_0x1a14fe._0x27a08f,_0x1a14fe._0x19814c)]:typeof _0x1460ae[_0xba67ff(_0x1a14fe._0x101659,_0x1a14fe._0x449edc,0x295,_0x1a14fe._0x401405)]===_0xba67ff(0x1cf,_0x1a14fe._0x13d2f0,0x28f,_0x1a14fe._0x545f04)?this['outputIndexToCallId'][_0xba67ff(0x2b5,0x2ce,0x2d0,0x36f)](_0x1460ae[_0xba67ff(_0x1a14fe._0xadaf89,0x188,0x295,0x2f0)]):void 0x0,_0x235507=_0x4d3067?this[_0xba67ff(0x3aa,_0x1a14fe._0x511cdf,0x2de,_0x1a14fe._0x2a62ab)]['get'](_0x4d3067):void 0x0;_0x235507&&typeof _0x1460ae[_0x2cf866(_0x1a14fe._0xade870,_0x1a14fe._0xb277fd,0x54e,0x3ae)]===_0x2cf866(0x53b,0x494,0x395,0x4b8)&&(_0x235507[_0xba67ff(_0x1a14fe._0x2ee208,0x1f8,_0x1a14fe._0x2e76d2,_0x1a14fe._0x2f1b42)][_0xba67ff(0x9f,0xed,_0x1a14fe._0x2630bd,_0x1a14fe._0x52e1b6)]=_0x1460ae[_0x2cf866(_0x1a14fe._0x1b0082,_0x1a14fe._0xb277fd,0x3e0,0x525)]);break;}case _0xba67ff(_0x1a14fe._0x5b3eea,0x23d,_0x1a14fe._0xbaf14e,0xc0):{const _0x2c7b4=typeof _0x1460ae[_0xba67ff(0x2a1,0x346,_0x1a14fe._0x29bebc,0x1a1)]===_0xba67ff(0x207,0x38b,0x28f,_0x1a14fe._0x2319a8)?_0x1460ae[_0xba67ff(_0x1a14fe._0x300035,_0x1a14fe._0x537552,0x295,_0x1a14fe._0x5dc6ba)]:void 0x0,_0x4e96c1=_0x1460ae[_0xba67ff(_0x1a14fe._0x2e1650,0x1ee,0x16b,0x270)];if(_0x4e96c1?.['type']===_0x2cf866(_0x1a14fe._0x5b1184,0x481,_0x1a14fe._0x319b80,0x42a)){const _0x4aa83c=_0x4e96c1[_0x2cf866(0x59e,0x4b3,0x448,0x507)]??(_0x2c7b4!==void 0x0?this['outputIndexToCallId'][_0x2cf866(0x60c,0x61b,_0x1a14fe._0x2151b4,0x608)](_0x2c7b4):void 0x0),_0x36c36c=_0x4aa83c?this[_0xba67ff(_0x1a14fe._0x5d47df,_0x1a14fe._0x4a62c9,0x2de,_0x1a14fe._0x117863)][_0x2cf866(0x6bf,0x61b,0x5e6,_0x1a14fe._0xccbeb2)](_0x4aa83c):void 0x0;_0x36c36c&&typeof _0x4e96c1[_0xba67ff(_0x1a14fe._0x47eeef,0xa4,0xff,0x4f)]===_0x2cf866(_0x1a14fe._0x1e1905,0x494,_0x1a14fe._0x21e9ca,_0x1a14fe._0x2a5efd)&&(_0x36c36c[_0x2cf866(_0x1a14fe._0x6f3a28,_0x1a14fe._0x2787fa,_0x1a14fe._0x4769b5,0x50b)][_0x2cf866(_0x1a14fe._0x2d5e15,_0x1a14fe._0x119ad7,_0x1a14fe._0x3f5ca,0x4c1)]=_0x4e96c1[_0xba67ff(0x6d,_0x1a14fe._0x2a0856,_0x1a14fe._0x2630bd,0x65)]);break;}if(_0x4e96c1?.[_0x2cf866(_0x1a14fe._0x192038,_0x1a14fe._0x8e3ecb,_0x1a14fe._0x3e5424,0x474)]==='reasoning'&&_0x4e96c1['id']){const _0x375383=this['getOrCreateReasoningItem'](_0x4e96c1['id'],_0x2c7b4);typeof _0x4e96c1['encrypted_content']===_0x2cf866(0x430,_0x1a14fe._0x3e5424,0x525,_0x1a14fe._0x4ae5c5)&&(_0x375383[_0x2cf866(_0x1a14fe._0x2d78d4,0x596,_0x1a14fe._0x3f658d,0x667)]=_0x4e96c1['encrypted_content']);if(Array[_0xba67ff(_0x1a14fe._0x2777df,0x190,_0x1a14fe._0x3e96d6,0x241)](_0x4e96c1[_0x2cf866(_0x1a14fe._0x10c918,0x52c,0x470,_0x1a14fe._0x590851)]))for(let _0x565554=0x0;_0x565554<_0x4e96c1[_0x2cf866(_0x1a14fe._0x4c56ad,_0x1a14fe._0x45cb68,0x4f4,_0x1a14fe._0x212e9d)]['length'];_0x565554+=0x1){const _0x42356e=_0x4e96c1[_0xba67ff(_0x1a14fe._0xd6bd14,_0x1a14fe._0x7eb019,_0x1a14fe._0x286c39,0x266)][_0x565554];_0x42356e[_0xba67ff(0x151,_0x1a14fe._0x6acfdd,_0x1a14fe._0x5b0f03,_0x1a14fe._0x39d6f5)]==='summary_text'&&typeof _0x42356e[_0x2cf866(0x487,0x4f4,_0x1a14fe._0x3145d6,_0x1a14fe._0x387996)]===_0x2cf866(_0x1a14fe._0x488afb,0x494,0x44b,0x417)&&_0x375383['summaryByIndex'][_0x2cf866(_0x1a14fe._0x21e10d,_0x1a14fe._0x5197cb,0x4db,0x5ec)](_0x565554,_0x42356e[_0x2cf866(0x5f0,0x4f4,_0x1a14fe._0x50c4f1,0x4f1)]);}typeof _0x4e96c1[_0x2cf866(_0x1a14fe._0x578ad7,_0x1a14fe._0x366e0f,_0x1a14fe._0x586986,0x41b)]===_0xba67ff(0x58,_0x1a14fe._0x78347,_0x1a14fe._0x3361d3,0x135)&&_0x375383[_0x2cf866(0x4b4,0x56c,_0x1a14fe._0x10913b,0x64e)][_0xba67ff(_0x1a14fe._0x2fe7b6,_0x1a14fe._0x53ce48,_0x1a14fe._0x1e4333,0x192)](0x0,_0x4e96c1[_0x2cf866(0x5d9,_0x1a14fe._0x6575ac,0x55f,0x576)]);}break;}case'response.reasoning_summary_text.delta':{const _0x494251=typeof _0x1460ae[_0x2cf866(_0x1a14fe._0x4b2fcf,_0x1a14fe._0x5115a6,_0x1a14fe._0x1395ce,0x568)]===_0x2cf866(0x3f2,0x494,_0x1a14fe._0x2215ae,_0x1a14fe._0x516e93)?_0x1460ae[_0xba67ff(_0x1a14fe._0x4095e4,0x1a4,0x1a8,_0x1a14fe._0x557cd5)]:'',_0x1be384=typeof _0x1460ae['item_id']===_0xba67ff(_0x1a14fe._0x479606,0x18c,_0x1a14fe._0x2eee30,_0x1a14fe._0x4623d8)?_0x1460ae[_0x2cf866(_0x1a14fe._0x5d3daf,0x5e7,_0x1a14fe._0x490603,_0x1a14fe._0x9518c8)]:typeof _0x1460ae[_0xba67ff(0x1e1,_0x1a14fe._0x1a90b8,_0x1a14fe._0x29bebc,0x2fb)]===_0xba67ff(_0x1a14fe._0x220b6d,_0x1a14fe._0x277fff,_0x1a14fe._0x764871,_0x1a14fe._0x2afb16)?this[_0xba67ff(_0x1a14fe._0x2ec4ed,_0x1a14fe._0x509487,_0x1a14fe._0x5ca93b,0x79)]['get'](_0x1460ae[_0x2cf866(0x521,0x5e0,_0x1a14fe._0x2ab1da,_0x1a14fe._0x1e7f6e)]):void 0x0,_0x4836ed=typeof _0x1460ae['output_index']===_0xba67ff(_0x1a14fe._0x545aee,0x2c0,_0x1a14fe._0x764871,0x213)?_0x1460ae[_0xba67ff(0x330,0x1f4,_0x1a14fe._0x407acc,_0x1a14fe._0x5c7b8a)]:0x0,_0x4e5112=typeof _0x1460ae['summary_index']==='number'?_0x1460ae[_0xba67ff(_0x1a14fe._0x51472b,0x32e,_0x1a14fe._0x1536d0,0x318)]:0x0;if(_0x1be384&&_0x494251[_0x2cf866(_0x1a14fe._0x2b4916,0x48f,_0x1a14fe._0x4e0be7,_0x1a14fe._0x2d5e15)]>0x0){const _0x2dcb99=this[_0xba67ff(0x19b,0x236,_0x1a14fe._0x4521ab,_0x1a14fe._0x38aaba)](_0x1be384,_0x4836ed);_0x2dcb99[_0xba67ff(0x16e,_0x1a14fe._0x49d921,_0x1a14fe._0x223fbb,0x1e2)][_0x2cf866(0x62f,_0x1a14fe._0xe091c6,0x50e,0x5ba)](_0x4e5112,''+(_0x2dcb99['summaryByIndex'][_0xba67ff(_0x1a14fe._0x1c39d1,0x1c4,0x2d0,0x26d)](_0x4e5112)??'')+_0x494251);if(isUserVisibleReasoning(this[_0xba67ff(_0x1a14fe._0x59bab5,0x17d,_0x1a14fe._0x4b18f5,0x10a)]))return[{'type':_0xba67ff(_0x1a14fe._0x4e53a8,0x33d,_0x1a14fe._0x2268a9,0x174),'delta':_0x494251,'itemId':_0x1be384,'outputIndex':_0x4836ed,'summaryIndex':_0x4e5112}];}break;}case _0x2cf866(_0x1a14fe._0x514a70,_0x1a14fe._0xd67709,0x4d4,0x592):{const _0x46d699=typeof _0x1460ae[_0xba67ff(0x312,_0x1a14fe._0x563527,0x29c,0x24f)]===_0xba67ff(0x23e,0x97,_0x1a14fe._0x1e21aa,_0x1a14fe._0xdafec2)?_0x1460ae[_0xba67ff(_0x1a14fe._0x5661e9,0x374,_0x1a14fe._0x4dbc94,0x1cc)]:typeof _0x1460ae[_0x2cf866(0x6c8,0x5e0,0x698,_0x1a14fe._0x3af2d6)]===_0xba67ff(0x1a6,_0x1a14fe._0x2faed3,0x28f,0x32c)?this[_0xba67ff(0x152,0x1c0,_0x1a14fe._0x5ca93b,_0x1a14fe._0x48a289)][_0x2cf866(_0x1a14fe._0xd09191,_0x1a14fe._0x855da5,0x6a2,_0x1a14fe._0x11ce37)](_0x1460ae[_0x2cf866(0x5f8,0x5e0,0x54b,_0x1a14fe._0x5ac601)]):void 0x0,_0x3f0014=typeof _0x1460ae[_0xba67ff(0x321,_0x1a14fe._0x30e4e7,0x295,0x22c)]===_0xba67ff(_0x1a14fe._0x49ae92,0x258,0x28f,_0x1a14fe._0x1c2fb6)?_0x1460ae[_0xba67ff(0x34e,_0x1a14fe._0xc22ed7,0x295,_0x1a14fe._0x298d6f)]:0x0,_0x2fa410=typeof _0x1460ae[_0xba67ff(0x1f6,0x3a9,0x2e0,0x290)]==='number'?_0x1460ae[_0x2cf866(0x62f,_0x1a14fe._0x51bde8,_0x1a14fe._0x11ce6f,0x715)]:0x0,_0x132d7a=typeof _0x1460ae[_0x2cf866(0x3fd,_0x1a14fe._0x376fe0,_0x1a14fe._0x17ffa2,_0x1a14fe._0x21f296)]===_0x2cf866(_0x1a14fe._0x2396cb,_0x1a14fe._0x421fd6,_0x1a14fe._0x557565,0x564)?_0x1460ae['text']:'';_0x46d699&&this[_0x2cf866(_0x1a14fe._0x4d9815,_0x1a14fe._0x5d3daf,0x4be,0x677)](_0x46d699,_0x3f0014)[_0x2cf866(0x510,_0x1a14fe._0x3079f4,_0x1a14fe._0x59bced,0x444)][_0x2cf866(_0x1a14fe._0x3d7433,_0x1a14fe._0x18ffe9,_0x1a14fe._0x4339c2,_0x1a14fe._0x55e904)](_0x2fa410,_0x132d7a);break;}case _0xba67ff(0x225,_0x1a14fe._0x1886d2,_0x1a14fe._0x17a07a,0xdb):{const _0x2676bc=typeof _0x1460ae[_0x2cf866(0x567,_0x1a14fe._0x5115a6,_0x1a14fe._0x5e8338,0x3f0)]===_0xba67ff(_0x1a14fe._0x4c04c3,0xd4,0x149,0x223)?_0x1460ae[_0x2cf866(_0x1a14fe._0xf5ec05,_0x1a14fe._0x5115a6,_0x1a14fe._0x2f8e54,0x3ff)]:'',_0x5c925e=typeof _0x1460ae[_0xba67ff(_0x1a14fe._0x5a14e3,0x301,0x29c,0x212)]===_0x2cf866(_0x1a14fe._0x483e79,_0x1a14fe._0x3e5424,_0x1a14fe._0xbbf79e,0x426)?_0x1460ae[_0x2cf866(_0x1a14fe._0x43c99a,_0x1a14fe._0x984bc9,_0x1a14fe._0x50b725,_0x1a14fe._0x5318b5)]:typeof _0x1460ae['output_index']===_0xba67ff(0x245,_0x1a14fe._0x3f5ca8,0x28f,_0x1a14fe._0x6acfdd)?this[_0x2cf866(_0x1a14fe._0x55e63c,_0x1a14fe._0x15d630,0x49f,_0x1a14fe._0x1f2a08)][_0xba67ff(0x2d6,0x286,0x2d0,_0x1a14fe._0x34d18a)](_0x1460ae[_0xba67ff(0x2bd,_0x1a14fe._0x4b8b8d,_0x1a14fe._0x273ac0,0x34a)]):void 0x0,_0x5368c1=typeof _0x1460ae[_0x2cf866(_0x1a14fe._0x159c9f,_0x1a14fe._0x9eefd0,_0x1a14fe._0x2d6936,_0x1a14fe._0x1e76e2)]==='number'?_0x1460ae['output_index']:0x0,_0x47fc4e=typeof _0x1460ae[_0xba67ff(0xb1,_0x1a14fe._0x3f4223,_0x1a14fe._0x3a8ed5,0x66)]===_0x2cf866(0x67d,_0x1a14fe._0x7bfe41,0x676,_0x1a14fe._0xd6c076)?_0x1460ae[_0x2cf866(_0x1a14fe._0x30b7fc,_0x1a14fe._0x5ca46b,_0x1a14fe._0x3d8f27,0x498)]:0x0;if(_0x5c925e&&_0x2676bc[_0xba67ff(_0x1a14fe._0x34bc3b,0x16a,_0x1a14fe._0x30d34e,0x240)]>0x0){const _0x1ec1a9=this[_0xba67ff(0x1ef,_0x1a14fe._0x54f1ec,0x27a,_0x1a14fe._0x30679a)](_0x5c925e,_0x5368c1);_0x1ec1a9[_0x2cf866(_0x1a14fe._0x111a5f,0x56c,0x4d2,0x462)][_0xba67ff(_0x1a14fe._0x319cdc,0x2d0,_0x1a14fe._0x1e4333,0x169)](_0x47fc4e,''+(_0x1ec1a9['textByIndex'][_0x2cf866(0x688,0x61b,0x6e6,0x574)](_0x47fc4e)??'')+_0x2676bc);if(isUserVisibleReasoning(this[_0xba67ff(0xee,_0x1a14fe._0x34fc89,_0x1a14fe._0x423713,0x105)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x47fc4e,'delta':_0x2676bc,'itemId':_0x5c925e,'outputIndex':_0x5368c1}];}break;}case _0x2cf866(0x528,_0x1a14fe._0x26b610,0x647,_0x1a14fe._0x2d40ab):{const _0x225229=typeof _0x1460ae[_0xba67ff(_0x1a14fe._0x393d0a,_0x1a14fe._0x1d5b04,_0x1a14fe._0x25ac50,_0x1a14fe._0xc09b41)]===_0x2cf866(_0x1a14fe._0x185881,_0x1a14fe._0x49c063,_0x1a14fe._0x104ea7,0x4b4)?_0x1460ae[_0xba67ff(0x2c7,0x1e1,0x29c,0x251)]:typeof _0x1460ae['output_index']==='number'?this[_0x2cf866(_0x1a14fe._0x3d7bdf,0x43d,0x33c,0x45a)][_0x2cf866(_0x1a14fe._0x110a2e,_0x1a14fe._0x54b9a1,0x71d,0x722)](_0x1460ae[_0xba67ff(_0x1a14fe._0x11b7b6,0x2f3,0x295,_0x1a14fe._0x449edc)]):void 0x0,_0x4dbd69=typeof _0x1460ae[_0xba67ff(_0x1a14fe._0xa97778,_0x1a14fe._0x6041ec,0x295,_0x1a14fe._0x44d22a)]===_0x2cf866(_0x1a14fe._0x17e886,_0x1a14fe._0x25e4fe,_0x1a14fe._0x54dd41,_0x1a14fe._0x1697fa)?_0x1460ae[_0xba67ff(_0x1a14fe._0x312e8e,0x1ec,_0x1a14fe._0x3a2722,_0x1a14fe._0x52eb82)]:0x0,_0x4915a5=typeof _0x1460ae[_0xba67ff(0xd2,_0x1a14fe._0x181f09,_0x1a14fe._0x15baae,0x37)]===_0xba67ff(0x1bb,_0x1a14fe._0x6fd40f,0x28f,_0x1a14fe._0x53c911)?_0x1460ae['content_index']:0x0,_0xb3785f=typeof _0x1460ae['text']===_0xba67ff(0xd1,_0x1a14fe._0x55fb30,_0x1a14fe._0x16ea2f,0x1ab)?_0x1460ae[_0x2cf866(0x493,0x4f4,0x3fa,_0x1a14fe._0xd1aa4e)]:'';_0x225229&&this['getOrCreateReasoningItem'](_0x225229,_0x4dbd69)['textByIndex'][_0xba67ff(0x1e2,_0x1a14fe._0x566154,0x1d7,0x135)](_0x4915a5,_0xb3785f);break;}case'response.completed':case _0xba67ff(_0x1a14fe._0x5aa29f,_0x1a14fe._0x5b1c86,_0x1a14fe._0x23cd1d,0x2d2):{this['finalResponse']=_0x1460ae[_0xba67ff(0x36c,_0x1a14fe._0x1e63f6,_0x1a14fe._0x35c5fe,_0x1a14fe._0x2318dd)];break;}case _0xba67ff(0x2f9,_0x1a14fe._0x3e52eb,0x2c7,_0x1a14fe._0x51f728):{const _0x14a7e7=_0x1460ae[_0x2cf866(0x57e,0x610,_0x1a14fe._0xf2467b,_0x1a14fe._0x4cf72e)];throw new ProviderStreamEventError(_0x14a7e7?.[_0xba67ff(0x36e,0x32b,0x27d,_0x1a14fe._0x34d1ad)]?.[_0xba67ff(0x149,0x210,0x21d,0x21e)]??'Responses\x20stream\x20failed',{'code':_0x14a7e7?.[_0x2cf866(0x60d,_0x1a14fe._0x218edd,_0x1a14fe._0x190c7b,_0x1a14fe._0x38f25b)]?.['code'],'retryable':!![]});}case _0x2cf866(0x573,_0x1a14fe._0x4cd4c5,_0x1a14fe._0x5506bf,_0x1a14fe._0x4cb0e1):{const _0x54ea7b=_0x1460ae[_0xba67ff(_0x1a14fe._0x1d7c41,_0x1a14fe._0x4b165e,0x27d,_0x1a14fe._0x33dfa6)];throw new ProviderStreamEventError(_0x54ea7b?.['message']??'Responses\x20stream\x20failed',{'code':_0x54ea7b?.[_0x2cf866(_0x1a14fe._0x386e59,_0x1a14fe._0x118bad,0x6ac,0x595)],'retryable':!![],'status':typeof _0x1460ae[_0x2cf866(0x3e9,_0x1a14fe._0x69db0,_0x1a14fe._0x5ce8c7,_0x1a14fe._0x860381)]==='number'?_0x1460ae[_0xba67ff(_0x1a14fe._0x5083d3,_0x1a14fe._0x48d024,0x127,0x64)]:void 0x0});}}function _0x2cf866(_0x1a3d08,_0x37c02f,_0x382d91,_0x19ca78){return _0x5b3424(_0x1a3d08-0x71,_0x37c02f-_0x3fb873._0x4bb4c9,_0x382d91-_0x3fb873._0x5d6dd2,_0x1a3d08);}return[];}[_0x5b3424(-0xfd,-0xf1,-0x98,-0x99)](){const _0x30be08={_0x44ca34:0x25a,_0x45bb04:0x294,_0x25f64a:0xea,_0x9d984b:0x438,_0x251df1:0x325,_0x3b8aec:0x3de,_0x1fd51a:0x2b7,_0xfbebdc:0x33c,_0x20a685:0x1f2,_0x27936c:0x188,_0x11be00:0x11c,_0xc3a1c6:0x17,_0x221891:0x223,_0x5753a6:0x26c,_0x2e857e:0x27b,_0x5b1cc0:0x198,_0x17c6cf:0x207,_0x2c27cf:0x174,_0x29ad44:0x1d6,_0x2c4665:0x2fc,_0x11c584:0x212,_0x50e0dd:0x5ab,_0x4f4c42:0x49f,_0x46638f:0x2f6,_0x34d0d4:0x22d,_0x47cae7:0x407,_0x13a5a4:0x3a2,_0x176692:0x430,_0x26fd3a:0x2ed,_0x2d4d53:0x145,_0x38addc:0x239,_0x2ee857:0xf5,_0x3e43b1:0x164,_0x3db162:0x176,_0x1f3d2e:0x1fe,_0x42b018:0x357,_0x105ab6:0x1da,_0x23af46:0x2e0,_0x100483:0x198,_0x3a6787:0x3e3,_0x35d7cb:0x4b5,_0x1c711c:0xcf,_0x1cb75b:0x65,_0x5c4904:0x148,_0x534061:0x563,_0x42dff6:0x4a5,_0x330bf4:0x261,_0x70e0ca:0x2ca,_0x1d32e1:0x32a,_0x3558d5:0x3e8,_0x5c96bc:0x277,_0x4338:0x2c8,_0x50bf8c:0x153,_0x246199:0x2d1,_0x4ff8b7:0x2c0,_0x4cfc73:0x164,_0x520bba:0x135,_0xdb6ec2:0x117,_0x18047c:0x89,_0x2b6dc9:0x3dd},_0x35b035={_0x22b650:0x5c1,_0xf5f267:0x4f5},_0x52ff90={_0x134fc1:0x14b},_0x159bcd={_0x1c592b:0x36,_0x2acf3f:0x588,_0xa77db6:0x12b},_0xe72bc0={_0x5cd9c5:0x170,_0x36f7f3:0x99},_0x38e817=[];function _0x32331f(_0x82718f,_0x23bd17,_0x40167f,_0x558836){return _0x5b3424(_0x82718f-_0xe72bc0._0x5cd9c5,_0x82718f- -0xc,_0x40167f-_0xe72bc0._0x36f7f3,_0x23bd17);}function _0x49d379(_0x233ac2,_0x37f3f2,_0x327955,_0x2b1708){return _0x5b3424(_0x233ac2-_0x159bcd._0x1c592b,_0x2b1708-_0x159bcd._0x2acf3f,_0x327955-_0x159bcd._0xa77db6,_0x233ac2);}for(const [_0xa351fd,_0x2a6f37]of this['responseTextParts']['entries']()){const _0x55a502=_0x2a6f37['join']('');if(_0x55a502[_0x49d379(_0x30be08._0x44ca34,0x228,_0x30be08._0x45bb04,0x319)]===0x0)continue;_0x38e817[_0x32331f(-0x11c,-0x138,-0x18b,-_0x30be08._0x25f64a)]({'index':_0xa351fd,'item':{'type':_0x49d379(_0x30be08._0x9d984b,0x3b9,_0x30be08._0x251df1,0x3f2),'role':_0x49d379(_0x30be08._0x3b8aec,_0x30be08._0x1fd51a,0x367,_0x30be08._0xfbebdc),'content':[{'type':_0x32331f(-0x108,-0x213,-_0x30be08._0x20a685,-_0x30be08._0x27936c),'text':_0x55a502}]}});}for(const _0x3af7fc of this['reasoningItems']['values']()){_0x38e817[_0x32331f(-_0x30be08._0x11be00,-_0x30be08._0xc3a1c6,-0xd7,-0xf6)]({'index':_0x3af7fc[_0x32331f(-0x24c,-_0x30be08._0x221891,-0x359,-_0x30be08._0x5753a6)]??_0x38e817[_0x32331f(-_0x30be08._0x2e857e,-0x304,-_0x30be08._0x5b1cc0,-_0x30be08._0x17c6cf)],'item':{'type':'reasoning','id':_0x3af7fc['id'],..._0x3af7fc['encryptedContent']?{'encrypted_content':_0x3af7fc[_0x32331f(-_0x30be08._0x2c27cf,-0xec,-_0x30be08._0x29ad44,-0x12a)]}:{},..._0x3af7fc[_0x32331f(-0x2cf,-0x330,-_0x30be08._0x2c4665,-_0x30be08._0x11c584)]['size']>0x0?{'summary':Array[_0x49d379(_0x30be08._0x50e0dd,0x538,0x51d,_0x30be08._0x4f4c42)](_0x3af7fc[_0x49d379(0x200,_0x30be08._0x46638f,_0x30be08._0x34d0d4,0x2c5)]['entries']())[_0x49d379(0x480,_0x30be08._0x47cae7,_0x30be08._0x13a5a4,_0x30be08._0x176692)]((_0x41862b,_0x2db3de)=>_0x41862b[0x0]-_0x2db3de[0x0])[_0x49d379(0x1e7,0x3cd,0x307,_0x30be08._0x26fd3a)](([,_0x4ba349])=>{function _0x5e1a6b(_0x20eb09,_0xdbc1aa,_0x5efda7,_0x1b5d9e){return _0x49d379(_0xdbc1aa,_0xdbc1aa-0x123,_0x5efda7-0x1b1,_0x1b5d9e-_0x52ff90._0x134fc1);}return{'type':_0x5e1a6b(_0x35b035._0x22b650,_0x35b035._0xf5f267,0x5de,0x5cc),'text':_0x4ba349};})}:{},..._0x3af7fc[_0x32331f(-0x19e,-0xe4,-0x141,-0xfc)][_0x32331f(-0x244,-0x144,-0x2cd,-_0x30be08._0x2d4d53)]>0x0?{'text':Array['from'](_0x3af7fc[_0x32331f(-0x19e,-0xf3,-_0x30be08._0x38addc,-_0x30be08._0x2ee857)][_0x32331f(-0x2db,-0x3c7,-0x240,-0x274)]())[_0x32331f(-_0x30be08._0x3e43b1,-_0x30be08._0x3db162,-0x1c0,-0x172)]((_0x374cc8,_0x3aeeb4)=>_0x374cc8[0x0]-_0x3aeeb4[0x0])['map'](([,_0x1177dc])=>_0x1177dc)[_0x49d379(_0x30be08._0x1f3d2e,_0x30be08._0x42b018,_0x30be08._0x105ab6,_0x30be08._0x23af46)]('')}:{}}});}for(const _0x5323ca of this['toolCalls'][_0x32331f(-_0x30be08._0x100483,-0x178,-0x12d,-0x1aa)]()){_0x38e817[_0x49d379(_0x30be08._0x3a6787,0x3f8,_0x30be08._0x35d7cb,0x478)]({'index':this[_0x32331f(-_0x30be08._0x1c711c,-_0x30be08._0x1cb75b,-_0x30be08._0x5c4904,-0x91)][_0x49d379(0x50c,_0x30be08._0x534061,0x474,_0x30be08._0x42dff6)](_0x5323ca['id'])??_0x38e817[_0x49d379(_0x30be08._0x330bf4,_0x30be08._0x70e0ca,_0x30be08._0x1d32e1,0x319)],'item':{'type':_0x49d379(_0x30be08._0x3558d5,_0x30be08._0x5c96bc,0x357,0x30b),'call_id':_0x5323ca['id'],'name':_0x5323ca['function'][_0x32331f(-0x1c7,-_0x30be08._0x4338,-0x131,-0xcb)],'arguments':_0x5323ca[_0x32331f(-0x221,-0x2d1,-_0x30be08._0x50bf8c,-_0x30be08._0x246199)][_0x32331f(-_0x30be08._0x4ff8b7,-0x203,-0x1d8,-0x2d5)]}});}return _0x38e817[_0x32331f(-_0x30be08._0x4cfc73,-_0x30be08._0x520bba,-_0x30be08._0xdb6ec2,-_0x30be08._0x18047c)]((_0x25e8f3,_0x4af1be)=>_0x25e8f3[_0x49d379(0x38d,0x331,0x2f5,0x3a1)]-_0x4af1be[_0x49d379(0x2a5,0x2f1,0x3e6,0x3a1)])[_0x49d379(0x1f5,0x347,_0x30be08._0x2b6dc9,_0x30be08._0x26fd3a)](_0x464767=>_0x464767[_0x32331f(-0x254,-0x2be,-0x2ad,-0x1be)]);}['getOrCreateReasoningItem'](_0x55b2b7,_0x628be4){const _0x26645c={_0x3f744f:0x405,_0xcf0352:0x3f4,_0x10879f:0x487,_0x42462b:0x1af,_0x193e4e:0x24d,_0x44b995:0x1e0,_0x4b80d4:0x349,_0x4d24a6:0x272,_0x3836ba:0x130,_0x104089:0x1f8},_0x373395={_0x386c2d:0x86,_0x5ca013:0xfd,_0x2abc0d:0x9},_0x237fd5=this[_0x12fd4a(_0x26645c._0x3f744f,_0x26645c._0xcf0352,0x410,_0x26645c._0x10879f)]['get'](_0x55b2b7);if(_0x237fd5)return _0x628be4!==void 0x0&&(_0x237fd5['outputIndex']=_0x628be4,this[_0x5a4fbb(_0x26645c._0x42462b,_0x26645c._0x193e4e,_0x26645c._0x44b995,0x1c0)]['set'](_0x628be4,_0x55b2b7)),_0x237fd5;function _0x12fd4a(_0xc79c27,_0x366022,_0x170fdc,_0x531b48){return _0x3dbb2c(_0xc79c27-_0x373395._0x386c2d,_0xc79c27-_0x373395._0x5ca013,_0x170fdc-_0x373395._0x2abc0d,_0x170fdc);}const _0x273998={'id':_0x55b2b7,'outputIndex':_0x628be4,'summaryByIndex':new Map(),'textByIndex':new Map()};this['reasoningItems'][_0x12fd4a(0x2f7,0x345,_0x26645c._0x4b80d4,_0x26645c._0x4d24a6)](_0x55b2b7,_0x273998);_0x628be4!==void 0x0&&this[_0x12fd4a(0x212,_0x26645c._0x3836ba,_0x26645c._0x104089,0x15a)]['set'](_0x628be4,_0x55b2b7);function _0x5a4fbb(_0x45fdd0,_0x5c0fb2,_0x322fc1,_0x59a452){return _0x3dbb2c(_0x45fdd0-0xeb,_0x322fc1-0xcb,_0x322fc1-0x12,_0x45fdd0);}return _0x273998;}};function createOpenAiResponsesStreamParser(_0x3028b0){return new OpenAiResponsesStreamParser(_0x3028b0);}function createOpenAiSurfaces(_0xc2fb0f={}){const _0x3a8356={_0x4c4d47:0x5f,_0xaf520e:0x93,_0x1cf25b:0x60,_0x2b62e0:0xd0,_0xba4015:0xe9,_0x251130:0x20a,_0x56917e:0x256,_0x4c14d2:0x493,_0x253d5b:0xda,_0x1e9a45:0x2a,_0x11ccd2:0x315,_0x2b7177:0x423,_0x1a97f8:0x421},_0x45f06c={_0x116125:0x4cf,_0x1c6091:0x4df},_0x1a8f3a={_0x523978:0xc9,_0x1808fa:0x1e1},_0x403005={_0x31de7a:0xe7,_0x3f2257:0x166,_0x515b20:0x11a,_0x3e7aef:0x4fa},_0x2a051f={_0x4cb829:0x24d,_0x1b4033:0x1fb},_0x367741={_0x27a4b6:0x15b,_0x323d97:0x1df},_0x9407b7={_0x54c53b:0x2ec,_0xd7e28a:0x20e},_0x581306={_0x426525:0x35e,_0x1cf9a6:0x260},_0x22d1a0={_0x540928:0xa5,_0x3a27c9:0x21d,_0x3d7874:0x188},_0xc9151a={_0x3e3679:0x114,_0x20c394:0x178,_0x5c3a56:0xec},_0xe5c120={_0x2e585e:0x1c1,_0x3912e8:0x1b9},_0x43087e=_0xc2fb0f[_0x2eda59(-_0x3a8356._0x4c4d47,-_0x3a8356._0xaf520e,-_0x3a8356._0x1cf25b,-0x2b)]??_0x2eda59(_0x3a8356._0x2b62e0,-0x2,-_0x3a8356._0xba4015,0x7d),_0x142d56=_0xc2fb0f[_0x2eda59(_0x3a8356._0x251130,0x158,0x115,_0x3a8356._0x56917e)]??'/responses';function _0x2eda59(_0x27aee6,_0x163d88,_0x1c1410,_0x5230bc){return _0x5b3424(_0x27aee6-_0xe5c120._0x2e585e,_0x163d88-0x21e,_0x1c1410-_0xe5c120._0x3912e8,_0x1c1410);}function _0x48c8f0(_0x5e5653,_0x3138d4,_0x2fa729,_0x404e6f){return _0x3dbb2c(_0x5e5653-_0xc9151a._0x3e3679,_0x5e5653-_0xc9151a._0x20c394,_0x2fa729-_0xc9151a._0x5c3a56,_0x3138d4);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x452f6f){function _0x864554(_0x4d7f26,_0x20d8e9,_0x25dd5b,_0x4149ab){return _0x2eda59(_0x4d7f26-_0x22d1a0._0x540928,_0x20d8e9-_0x22d1a0._0x3a27c9,_0x25dd5b,_0x4149ab-_0x22d1a0._0x3d7874);}return{'accept':_0x864554(_0x581306._0x426525,_0x581306._0x1cf9a6,0x301,0x23d),'body':createChatRequestBody(_0x452f6f,![]),'path':_0x43087e};},'parseResponse'(_0x5df6c1,_0x412e50){return parseChatCompletionResponse(_0x5df6c1,_0x412e50);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x48c8f0(_0x3a8356._0x4c14d2,0x4f8,0x4c3,0x44b),'createRequest'(_0x1a4e28){const _0x379c93={_0x1f19c5:0x10b};function _0x14de9b(_0x2855e0,_0x15d3e8,_0xd7991d,_0x3ba546){return _0x48c8f0(_0xd7991d- -_0x379c93._0x1f19c5,_0x3ba546,_0xd7991d-0xf2,_0x3ba546-0xda);}return{'accept':_0x14de9b(0x2f4,0x28d,_0x9407b7._0x54c53b,_0x9407b7._0xd7e28a),'body':createChatRequestBody(_0x1a4e28,!![]),'path':_0x43087e};},'createStreamParser'(_0x50192f){return new OpenAiChatCompletionsStreamParser(_0x50192f);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x2eda59(0x161,_0x3a8356._0x253d5b,0x1b2,-_0x3a8356._0x1e9a45),'createRequest'(_0x2ecf9a){function _0x2c146e(_0x3066b8,_0x2343f9,_0x3b4e57,_0x57447b){return _0x2eda59(_0x3066b8-_0x367741._0x27a4b6,_0x3b4e57-0x2a9,_0x3066b8,_0x57447b-_0x367741._0x323d97);}return{'accept':_0x2c146e(_0x2a051f._0x4cb829,_0x2a051f._0x1b4033,0x2ec,0x2e4),'body':createResponsesRequestBody(_0x2ecf9a,![],_0xc2fb0f['promptCacheKeyResolver']),'path':_0x142d56};},'parseResponse'(_0x199984,_0x5291aa){return parseResponsesResponse(_0x199984,_0x5291aa);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x1939c8){const _0x2ea751={_0x37362c:0x132},_0x5ddf82={_0x255a22:0x7c};function _0x546d64(_0x5b0930,_0x306b1a,_0x535b49,_0x52ae56){return _0x48c8f0(_0x52ae56- -0x2dd,_0x535b49,_0x535b49-_0x5ddf82._0x255a22,_0x52ae56-0x83);}function _0x1142fa(_0x56d75c,_0x572724,_0x24d1d6,_0x47ea54){return _0x2eda59(_0x56d75c-0x13c,_0x56d75c-0x400,_0x572724,_0x47ea54-_0x2ea751._0x37362c);}return{'accept':_0x546d64(0x110,_0x403005._0x31de7a,_0x403005._0x3f2257,_0x403005._0x515b20),'body':createResponsesRequestBody(_0x1939c8,!![],_0xc2fb0f[_0x1142fa(0x3ef,_0x403005._0x3e7aef,0x461,0x4ec)]),'path':_0x142d56};},'createStreamParser'(_0xf279fc){return new OpenAiResponsesStreamParser(_0xf279fc);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x48c8f0(_0x3a8356._0x11ccd2,_0x3a8356._0x2b7177,0x298,_0x3a8356._0x1a97f8),'createRequest'(_0x3f1510){function _0x28e40f(_0x469bbd,_0x357c7d,_0x10c502,_0x1b0298){return _0x48c8f0(_0x469bbd-_0x1a8f3a._0x523978,_0x1b0298,_0x10c502-0x11d,_0x1b0298-_0x1a8f3a._0x1808fa);}return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x3f1510,{'promptCacheKey':_0xc2fb0f[_0x28e40f(0x3e8,_0x45f06c._0x116125,_0x45f06c._0x1c6091,0x420)]?.(_0x3f1510)}),'path':_0x142d56};},'createStreamParser'(_0x5b12c7){return createOpenAiResponsesStreamParser(_0x5b12c7);}}];}var OpenAiProviderAdapter=class{[_0x3dbb2c(0x2a,0x111,0x1cb,0xaa)];constructor(_0x4c60ae){const _0x36d790={_0x5b6a0b:0x179,_0x229946:0x27d},_0x5b340a={_0x2b081c:0x48};function _0x213862(_0x170787,_0x157147,_0x418cb2,_0x4d4d22){return _0x5b3424(_0x170787-0x87,_0x4d4d22-_0x5b340a._0x2b081c,_0x418cb2-0x19c,_0x170787);}this[_0x213862(-0x28c,-0x2fb,-_0x36d790._0x5b6a0b,-_0x36d790._0x229946)]=_0x4c60ae;}[_0x3dbb2c(0xe2,0x117,0x156,0xa5)](){const _0x457d02={_0x2d51ba:0x1ce,_0x17cd56:0xc7},_0x4aef06={_0x2b4525:0x123,_0x193820:0x14};function _0x4539b9(_0x25bee8,_0x56ec11,_0x50c366,_0x1244d0){return _0x3dbb2c(_0x25bee8-0x115,_0x25bee8- -_0x4aef06._0x2b4525,_0x50c366-_0x4aef06._0x193820,_0x1244d0);}return new Error(_0x4539b9(0x1bd,0x1bf,_0x457d02._0x2d51ba,_0x457d02._0x17cd56));}async[_0x5b3424(0x3e,-0xb6,-0xa2,0x22)](_0x4089a7,_0x572740){const _0x4ce6e3={_0x35810c:0x488,_0x1b7cde:0x42f,_0x4b893e:0x49c,_0x68ff19:0x4ec,_0x4991bb:0x326,_0x3f5640:0x42c,_0x4c0774:0x4e5,_0xe3cd6e:0x3ba,_0x3255cd:0x3dc,_0x552713:0x4ab,_0x496d78:0x31f,_0x50cceb:0x415,_0x2e39d6:0x3b4,_0x3b15a5:0x263,_0x17d115:0x2e0,_0x567c13:0x261,_0x7d896f:0x3a3,_0x22d546:0x300,_0x1edef3:0x2dc,_0x3b5cb4:0x329,_0xffa79b:0x2e9,_0x281ec9:0x244,_0x35a6fe:0x32f,_0x3fdfb6:0x31c,_0x3115be:0x397,_0x4da7a2:0x385,_0x1ad108:0x316,_0x51ba08:0x412,_0x54fbd8:0x424,_0x29bd76:0x45c,_0xfd0fae:0x491},_0x43d826={_0x5e6eef:0x1c6},_0x5bcd8b={_0x14c324:0x15b};function _0x2aec37(_0x383bc1,_0x2dae16,_0x5b0bc2,_0x3a3853){return _0x5b3424(_0x383bc1-0xdf,_0x2dae16-0x5a5,_0x5b0bc2-_0x5bcd8b._0x14c324,_0x383bc1);}const _0x34d2d8=new Headers();_0x34d2d8[_0x2aec37(0x45a,0x3c9,0x4d4,_0x4ce6e3._0x35810c)](_0x2aec37(_0x4ce6e3._0x1b7cde,0x44a,_0x4ce6e3._0x4b893e,0x422),_0x572740[_0x2aec37(0x356,0x44a,0x54b,_0x4ce6e3._0x68ff19)]),_0x34d2d8[_0x2aec37(0x355,0x3c9,_0x4ce6e3._0x4991bb,_0x4ce6e3._0x3f5640)](_0x1495fd(_0x4ce6e3._0x4c0774,0x380,0x418,0x448),'Bearer\x20'+_0x4089a7[_0x1495fd(_0x4ce6e3._0xe3cd6e,0x3d6,0x30d,0x22c)]['value']);function _0x1495fd(_0x22a8dd,_0x50f0dc,_0x2a6722,_0x35cb8b){return _0x5b3424(_0x22a8dd-0xf3,_0x2a6722-0x58f,_0x2a6722-_0x43d826._0x5e6eef,_0x22a8dd);}_0x572740[_0x1495fd(0x4a3,_0x4ce6e3._0x3255cd,0x3f5,0x308)]!==![]&&_0x34d2d8[_0x1495fd(_0x4ce6e3._0x552713,0x3aa,0x3b3,0x480)](_0x2aec37(0x469,0x3fd,_0x4ce6e3._0x496d78,0x34c),_0x1495fd(0x34c,_0x4ce6e3._0x50cceb,_0x4ce6e3._0x2e39d6,0x2e7));const _0x290000=await this[_0x2aec37(_0x4ce6e3._0x3b15a5,_0x4ce6e3._0x17d115,0x243,_0x4ce6e3._0x567c13)]?.({'body':_0x4089a7[_0x2aec37(0x487,_0x4ce6e3._0x7d896f,_0x4ce6e3._0x22d546,_0x4ce6e3._0x1edef3)],'credential':_0x4089a7[_0x1495fd(_0x4ce6e3._0x3b5cb4,0x34b,0x30d,0x2a8)],'request':_0x4089a7[_0x2aec37(0x2c2,_0x4ce6e3._0xffa79b,0x26d,_0x4ce6e3._0x281ec9)],'session':_0x4089a7[_0x1495fd(_0x4ce6e3._0x35a6fe,0x364,_0x4ce6e3._0x3fdfb6,_0x4ce6e3._0x3115be)],'stream':_0x4089a7[_0x1495fd(_0x4ce6e3._0x4da7a2,0x296,_0x4ce6e3._0x1ad108,_0x4ce6e3._0x51ba08)]});for(const [_0x23060c,_0x1945a3]of Object['entries'](_0x290000??{})){_0x34d2d8[_0x2aec37(_0x4ce6e3._0x54fbd8,0x3c9,_0x4ce6e3._0x29bd76,_0x4ce6e3._0xfd0fae)](_0x23060c,_0x1945a3);}return _0x34d2d8;}[_0x3dbb2c(0x138,0x20b,0x2dc,0x115)](_0x389352){return _0x389352;}[_0x5b3424(-0x2d8,-0x221,-0x136,-0x240)](_0x2f76c2,_0x39ddc0){return resolveSessionBaseUrl(_0x2f76c2,_0x39ddc0);}['resolveCredential'](_0xcd8aed,_0x335a1c){return resolveApiCredential(_0xcd8aed,_0x335a1c);}async[_0x3dbb2c(0xc2,0x198,0xbc,0x278)](_0x1647a4){return await createOpenAiApiError(_0x1647a4);}},OpenAiModel=class extends RoutedModel{[_0x5b3424(-0x32d,-0x257,-0x315,-0x304)]=new Map();[_0x5b3424(-0x206,-0x22f,-0x2ed,-0x2ef)];['forceStreaming'];[_0x3dbb2c(0xa8,0x125,0xce,0x1c)];[_0x3dbb2c(0x2e8,0x310,0x3e4,0x2c4)];constructor(_0x274862={}){const _0x738520={_0x3242c8:0x35b,_0x6e21c0:0x303,_0x420598:0x486,_0x21a411:0x468,_0x23e3f4:0x585,_0x5648a2:0x4ff,_0x24b50b:0x541,_0x50cc9d:0x54e,_0x42b66b:0x555,_0x42fdd7:0x33e,_0x4fddc6:0x3e3,_0x5c092f:0x358,_0x514b66:0x518,_0x23b50f:0x382,_0x308bde:0x257,_0x3084e0:0x3cd,_0x150516:0x4b2,_0x21e1b3:0x2af,_0x52a458:0x211,_0x38b097:0x5a2,_0x287126:0x5df,_0x2ff0ca:0x4e1,_0x584e93:0x4be,_0x2da24e:0x5bc,_0x1e5041:0x67d,_0x760f83:0x4c0,_0x5500ba:0x517,_0x5ef040:0x5b0,_0x329066:0x3ce,_0x217d4e:0x43e,_0x1a6d24:0x2d6,_0x514e94:0x596,_0x7acfd2:0x33b,_0x367823:0x410},_0x38f068={_0x451ddb:0x1ac,_0x42b6aa:0x100},_0x379018=_0x274862[_0xabc5bf(_0x738520._0x3242c8,0x2a5,_0x738520._0x6e21c0,0x2e2)]??_0x351912(0x4cc,0x40c,0x443,0x446),_0x989c15=_0x274862['chatCompletionsPath']??'/chat/completions',_0x438556=_0x274862['responsesPath']??_0x351912(_0x738520._0x420598,_0x738520._0x21a411,_0x738520._0x23e3f4,0x457);function _0x351912(_0xdbafb,_0x41e9d4,_0x834387,_0xf1dee2){return _0x3dbb2c(_0xdbafb-0x171,_0xdbafb-0x319,_0x834387-0xce,_0x834387);}super({'apiKey':_0x274862[_0x351912(_0x738520._0x5648a2,_0x738520._0x24b50b,0x5d0,_0x738520._0x50cc9d)],'baseUrl':trimTrailingSlashes(_0x274862['baseUrl']??'https://api.openai.com/v1'),'fetch':_0x274862[_0x351912(0x566,0x5fe,0x605,_0x738520._0x42b66b)],..._0x274862[_0xabc5bf(0x32c,_0x738520._0x42fdd7,_0x738520._0x4fddc6,_0x738520._0x5c092f)]!==void 0x0?{'maxTokens':_0x274862[_0x351912(0x5fc,0x6d6,_0x738520._0x514b66,0x628)]}:{},'model':_0x379018,'modelIdentity':_0x274862['modelIdentity'],..._0x274862[_0xabc5bf(_0x738520._0x23b50f,0x34c,0x2d1,0x2ea)]!==void 0x0?{'pricingProviderId':_0x274862[_0xabc5bf(0x1f4,_0x738520._0x308bde,0x2d1,0x32f)]}:{},'reasoning':_0x274862[_0xabc5bf(0x364,0x499,_0x738520._0x3084e0,_0x738520._0x150516)],'providerAdapter':new OpenAiProviderAdapter(_0x274862[_0xabc5bf(0x2ec,_0x738520._0x21e1b3,_0x738520._0x52a458,0x301)]),'providerSessionResolver':_0x274862[_0x351912(0x4e0,_0x738520._0x38b097,_0x738520._0x287126,0x415)],'requestMutators':_0x274862[_0x351912(0x590,0x685,_0x738520._0x2ff0ca,_0x738520._0x584e93)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x274862[_0x351912(_0x738520._0x2da24e,_0x738520._0x1e5041,0x504,0x605)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x989c15,'promptCacheKeyResolver':_0x274862[_0x351912(_0x738520._0x760f83,_0x738520._0x5500ba,_0x738520._0x5ef040,_0x738520._0x329066)],'responsesPath':_0x438556}),'webSocketFactory':_0x274862['webSocketFactory']}),this[_0x351912(_0x738520._0x217d4e,0x412,0x3f9,0x518)]=_0x989c15,this[_0x351912(0x494,0x439,_0x738520._0x24b50b,0x590)]=_0x274862['forceStreaming']??![];function _0xabc5bf(_0x36cdff,_0x159588,_0x5f1bf9,_0x369fbe){return _0x3dbb2c(_0x36cdff-_0x38f068._0x451ddb,_0x5f1bf9-_0x38f068._0x42b6aa,_0x5f1bf9-0x1d5,_0x159588);}this[_0xabc5bf(0x1fb,_0x738520._0x1a6d24,0x2a7,0x3ad)]=_0x274862[_0x351912(0x4c0,0x560,0x4c0,_0x738520._0x514e94)],this[_0xabc5bf(_0x738520._0x7acfd2,0x3bd,_0x738520._0x367823,0x361)]=_0x438556;}[_0x5b3424(-0x22b,-0x14b,-0x259,-0x59)](_0x1c552d,_0x201909){const _0x399cc6={_0x5d8f4f:0x488,_0x4fa4ef:0x233,_0x51aeb1:0x1d4},_0x3d973f={_0x4915c3:0x38,_0x1153cc:0x34},_0x391c59={_0x1bbcb7:0x1be,_0x2fdc72:0x11f};function _0x4a3efd(_0x2df721,_0x1571e9,_0x265418,_0x4a8b2c){return _0x3dbb2c(_0x2df721-_0x391c59._0x1bbcb7,_0x4a8b2c-0x2d6,_0x265418-_0x391c59._0x2fdc72,_0x1571e9);}function _0x2b0d9e(_0xc934de,_0x3ed1c7,_0x18e5e7,_0xb86e2){return _0x5b3424(_0xc934de-_0x3d973f._0x4915c3,_0xc934de-0x48e,_0x18e5e7-_0x3d973f._0x1153cc,_0x3ed1c7);}return this[_0x4a3efd(0x4ee,0x5de,_0x399cc6._0x5d8f4f,0x581)](_0x1c552d,this[_0x2b0d9e(_0x399cc6._0x4fa4ef,0x141,0x300,_0x399cc6._0x51aeb1)]?OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE:OPENAI_CHAT_COMPLETIONS_SURFACE,_0x201909);}['completeViaResponsesSurface'](_0x3d38eb,_0x437488){const _0x5ce818={_0x4d500e:0x150},_0x1b8e01={_0x4cbff2:0x1af};function _0xa6c8a5(_0x12781f,_0x45fd98,_0x140487,_0xf4ee6c){return _0x5b3424(_0x12781f-0x1ad,_0xf4ee6c-0x2a,_0x140487-_0x1b8e01._0x4cbff2,_0x140487);}return this['completeViaSurface'](_0x3d38eb,this[_0xa6c8a5(-0x2fa,-_0x5ce818._0x4d500e,-0x2ad,-0x231)]?OPENAI_RESPONSES_STREAM_SURFACE:OPENAI_RESPONSES_SURFACE,_0x437488);}[_0x3dbb2c(0x3be,0x2d2,0x20f,0x2ba)](_0x405013,_0x1fe9f5){const _0x57b0da={_0x35f27a:0x126};function _0x5a53db(_0x45be61,_0x3e5458,_0x1c6f2a,_0x4e08a8){return _0x5b3424(_0x45be61-0x1f3,_0x1c6f2a-0x251,_0x1c6f2a-0x3d,_0x45be61);}return this[_0x5a53db(0x24,0xb1,_0x57b0da._0x35f27a,0x2a)](_0x405013,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x1fe9f5);}[_0x3dbb2c(0x14e,0x22c,0x2bc,0x1be)](_0x90b70e,_0x2c7000){const _0x5143bf={_0x3499e8:0x64f,_0x110e04:0x582},_0x135abb={_0x87911b:0x58,_0x40a42c:0xee};function _0x329275(_0x10d44a,_0x2990c8,_0x35030f,_0x29a810){return _0x5b3424(_0x10d44a-_0x135abb._0x87911b,_0x10d44a-0x63a,_0x35030f-_0x135abb._0x40a42c,_0x29a810);}return this[_0x329275(0x552,0x4ff,_0x5143bf._0x3499e8,_0x5143bf._0x110e04)](_0x90b70e,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x2c7000);}[_0x5b3424(-0x252,-0x266,-0x22e,-0x292)](_0x5c134b,_0xf19fa2){const _0x2adb5f={_0x4b542e:0x150,_0x599579:0x127,_0x5382b9:0x21f},_0x4d52e3={_0x5ee2b0:0x2f,_0x3a2e07:0x19e,_0x569ccf:0x172};function _0x536bdd(_0x297a3d,_0x2b5753,_0x329d03,_0x3ff094){return _0x3dbb2c(_0x297a3d-_0x4d52e3._0x5ee2b0,_0x297a3d- -_0x4d52e3._0x3a2e07,_0x329d03-_0x4d52e3._0x569ccf,_0x2b5753);}return this[_0x536bdd(_0x2adb5f._0x4b542e,_0x2adb5f._0x599579,_0x2adb5f._0x5382b9,0x140)](_0x5c134b,OPENAI_RESPONSES_STREAM_SURFACE,_0xf19fa2);}[_0x5b3424(-0x244,-0x23f,-0x305,-0x1b2)](_0x3ee22b,_0x26f421){return this['streamViaSurface'](_0x3ee22b,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x26f421);}async[_0x3dbb2c(0x37f,0x2bc,0x3bc,0x359)](_0x361fa5,_0x4a122f){const _0x522ae1={_0x4598d0:0x100,_0x39bee5:0x102,_0x198003:0x1,_0x502a4c:0x4ae,_0x57b8de:0x483},_0x1cc094={_0x36b03f:0x18b},_0x1004e1={_0x485d55:0x278};function _0x5d178b(_0x516aec,_0x4ac22b,_0x355d07,_0x304fe2){return _0x3dbb2c(_0x516aec-0x67,_0x355d07-_0x1004e1._0x485d55,_0x355d07-0x20,_0x304fe2);}function _0x335ef5(_0x1e35c6,_0x5bd28c,_0x1afee0,_0x1f60d1){return _0x3dbb2c(_0x1e35c6-0x187,_0x5bd28c- -_0x1cc094._0x36b03f,_0x1afee0-0x165,_0x1afee0);}try{return await this[_0x335ef5(0x1ec,_0x522ae1._0x4598d0,_0x522ae1._0x39bee5,-_0x522ae1._0x198003)](_0x361fa5,_0x4a122f);}catch(_0x2104b3){if(_0x2104b3 instanceof OpenAiApiError)throw this[_0x5d178b(0x3f9,_0x522ae1._0x502a4c,_0x522ae1._0x57b8de,0x45a)](_0x2104b3);throw _0x2104b3;}}async[_0x3dbb2c(0x28d,0x2e8,0x334,0x35e)](_0xa45eb2,_0x34985d){const _0x832f06={_0x2cc7b7:0x2ea,_0x35f27c:0x2b6,_0x1d516e:0x20e},_0x4193d1={_0xb6c9bd:0x6c,_0x261f79:0x40},_0x4be935={_0x3607bc:0x498};function _0x3d7dda(_0x116a39,_0x31df40,_0x342929,_0x227850){return _0x5b3424(_0x116a39-0x13,_0x342929-_0x4be935._0x3607bc,_0x342929-0x6b,_0x227850);}function _0x282d79(_0x50df76,_0x19d64f,_0x1d8718,_0x23dc19){return _0x3dbb2c(_0x50df76-_0x4193d1._0xb6c9bd,_0x19d64f-0x2b3,_0x1d8718-_0x4193d1._0x261f79,_0x1d8718);}try{return await this[_0x3d7dda(0x313,_0x832f06._0x2cc7b7,0x299,0x198)](_0xa45eb2,_0x34985d);}catch(_0x89e11){if(_0x89e11 instanceof OpenAiApiError)throw this[_0x3d7dda(_0x832f06._0x35f27c,_0x832f06._0x1d516e,0x2cd,0x27c)](_0x89e11);throw _0x89e11;}}async[_0x3dbb2c(0x19a,0x21a,0x288,0x229)](_0xf5493c,_0x172080){const _0x2a1465={_0x3d9435:0x384,_0xf6b865:0x40b,_0x1e0840:0x3e3,_0x16dccf:0x4bb,_0xbeb7ce:0x390,_0x5dc8f2:0x270},_0x42ebdf={_0x4b3c7a:0x139};function _0x419be1(_0x1f4c30,_0x246213,_0x405a9e,_0x3447c2){return _0x3dbb2c(_0x1f4c30-0x99,_0x1f4c30-0x3a,_0x405a9e-_0x42ebdf._0x4b3c7a,_0x3447c2);}function _0xffbf93(_0x15d008,_0x109e40,_0x1d4791,_0x6a1ce8){return _0x3dbb2c(_0x15d008-0x13b,_0x109e40-0xfb,_0x1d4791-0x145,_0x6a1ce8);}try{let _0x92799f;for await(const _0x375764 of this[_0xffbf93(0x366,_0x2a1465._0x3d9435,_0x2a1465._0xf6b865,0x2b2)](_0xf5493c,_0x172080)){_0x375764[_0xffbf93(0x123,0x22f,0x1d2,0x19c)]==='done'&&(_0x92799f=_0x375764[_0xffbf93(0x396,_0x2a1465._0x1e0840,0x323,_0x2a1465._0x16dccf)]);}if(!_0x92799f)throw new Error(_0x419be1(0x2d9,0x317,_0x2a1465._0xbeb7ce,_0x2a1465._0x5dc8f2));return _0x92799f;}catch(_0x3f6056){if(_0x3f6056 instanceof OpenAiApiError)throw this['mapApiError'](_0x3f6056);throw _0x3f6056;}}async*[_0x5b3424(-0x367,-0x2ae,-0x1cb,-0x397)](_0x9eb4ab,_0x9bc7ab){const _0x3d1f93={_0xc5dad1:0x2b0,_0x4dcf42:0x1c8,_0x43ad1e:0x156,_0x442218:0x2c1},_0x668689={_0x3cc44f:0x3,_0x1d84c8:0xe8};function _0x518dc7(_0x112fb7,_0x9720b6,_0x425548,_0x279c45){return _0x5b3424(_0x112fb7-0x192,_0x112fb7-0x41f,_0x425548-0x6b,_0x9720b6);}function _0x5d5100(_0x12b315,_0x237d0d,_0x4db248,_0x2a37dc){return _0x5b3424(_0x12b315-0x16b,_0x237d0d-_0x668689._0x3cc44f,_0x4db248-_0x668689._0x1d84c8,_0x4db248);}try{yield*this[_0x5d5100(-0x112,-0x1a7,-0x299,-_0x3d1f93._0xc5dad1)](_0x9eb4ab,_0x9bc7ab);}catch(_0x3e0a91){if(_0x3e0a91 instanceof OpenAiApiError)throw this[_0x5d5100(-0x198,-_0x3d1f93._0x4dcf42,-_0x3d1f93._0x43ad1e,-_0x3d1f93._0x442218)](_0x3e0a91);throw _0x3e0a91;}}async*[_0x5b3424(-0x139,-0xe5,-0x163,-0x81)](_0x3278c2,_0x3b7e23){const _0x5597ca={_0x599fc5:0x34,_0x29c9f5:0xd4,_0x25e3c2:0x3f8,_0xe44c01:0x51a,_0x31cd8b:0x44e},_0x101998={_0x495696:0xa5,_0x277cea:0x243,_0x5cddcf:0x100},_0x457b66={_0x217063:0x5,_0x352765:0xda};function _0x24ef2b(_0x4903f8,_0x421c50,_0x4eb053,_0x110498){return _0x5b3424(_0x4903f8-_0x457b66._0x217063,_0x4eb053-0x200,_0x4eb053-_0x457b66._0x352765,_0x421c50);}function _0x2e9dc2(_0x3dec7b,_0x2be70d,_0x2f9aa3,_0xfee199){return _0x3dbb2c(_0x3dec7b-_0x101998._0x495696,_0x2f9aa3-_0x101998._0x277cea,_0x2f9aa3-_0x101998._0x5cddcf,_0x2be70d);}try{yield*this[_0x24ef2b(-_0x5597ca._0x599fc5,-_0x5597ca._0x29c9f5,-0x66,0x6)](_0x3278c2,_0x3b7e23);}catch(_0x1eedb8){if(_0x1eedb8 instanceof OpenAiApiError)throw this[_0x2e9dc2(_0x5597ca._0x25e3c2,_0x5597ca._0xe44c01,_0x5597ca._0x31cd8b,0x371)](_0x1eedb8);throw _0x1eedb8;}}async*['responseSocketStream'](_0x16eed8,_0x595142){const _0x5e52fe={_0xa1f347:0x3fd},_0x38fa13={_0x12b56b:0x36};function _0x1a9bb9(_0x44ef2a,_0x3f6733,_0x532c55,_0x19a306){return _0x3dbb2c(_0x44ef2a-0x1b2,_0x44ef2a-0x209,_0x532c55-_0x38fa13._0x12b56b,_0x3f6733);}try{yield*this[_0x1a9bb9(_0x5e52fe._0xa1f347,0x489,0x351,0x46e)](_0x16eed8,_0x595142);}catch(_0x4e5c2d){if(_0x4e5c2d instanceof OpenAiApiError)throw this['mapApiError'](_0x4e5c2d);throw _0x4e5c2d;}}[_0x3dbb2c(0x134,0x119,0xcf,0xe7)](_0x569bfb,_0x4873a4){return this['chatComplete'](_0x569bfb,_0x4873a4);}['stream'](_0x43785c,_0x1d0e09){const _0x1386c0={_0x7c4d9a:0x13e},_0x2de5cd={_0x4b4d54:0x11b};function _0x3cab9b(_0x4a8439,_0x1e58ce,_0x5609ed,_0x3f94c2){return _0x5b3424(_0x4a8439-0xcb,_0x3f94c2-0x263,_0x5609ed-_0x2de5cd._0x4b4d54,_0x4a8439);}return this[_0x3cab9b(-_0x1386c0._0x7c4d9a,-0xe4,-0xa4,-0x4b)](_0x43785c,_0x1d0e09);}[_0x5b3424(-0x245,-0x15d,-0x113,-0x108)](_0x264676){const _0x495207={_0x3273ad:0x2ef,_0x3ab06a:0x2f1,_0x11df48:0x690,_0x322258:0x61d,_0x599b32:0x34e,_0x12116b:0x406,_0x11b639:0x288,_0x150ab0:0x539,_0x90af9b:0x524},_0x118b41={_0x40f396:0x1fc,_0xc00d97:0x5c},_0x5d26ea={_0x38fecd:0x700,_0x42ef06:0x6e};function _0x527ceb(_0x4c087d,_0x2d056e,_0x4cf3c9,_0x5f701f){return _0x5b3424(_0x4c087d-0xfd,_0x2d056e-_0x5d26ea._0x38fecd,_0x4cf3c9-_0x5d26ea._0x42ef06,_0x4c087d);}function _0x30a0bb(_0x257f6d,_0x38d8c3,_0xe66dae,_0x5c3b95){return _0x3dbb2c(_0x257f6d-0x20,_0x257f6d-_0x118b41._0x40f396,_0xe66dae-_0x118b41._0xc00d97,_0x5c3b95);}const _0x4c5187=this[_0x30a0bb(0x396,0x42a,_0x495207._0x3273ad,_0x495207._0x3ab06a)](_0x264676);let _0x5a902d=this['responsesSocketSessions'][_0x527ceb(_0x495207._0x11df48,_0x495207._0x322258,0x5ad,0x5dd)](_0x4c5187);return!_0x5a902d&&(_0x5a902d={'key':_0x4c5187,'locked':![],'pending':Promise[_0x30a0bb(_0x495207._0x599b32,0x391,_0x495207._0x12116b,_0x495207._0x11b639)]()},this['responsesSocketSessions'][_0x527ceb(_0x495207._0x150ab0,_0x495207._0x90af9b,0x4b6,0x4b9)](_0x4c5187,_0x5a902d)),_0x5a902d;}['maybeEvictResponsesSocketSession'](_0x976cc){const _0x534507={_0x431670:0x10d,_0x3738e0:0x6,_0x28394:0xf9,_0x18e1bf:0x267,_0x223468:0x1ab,_0x311c31:0x1f1,_0x1d8eda:0x2a4,_0x36aa58:0x3ab,_0x438587:0x356,_0x604259:0x2fd,_0x184bb8:0x248,_0x5158a5:0x222,_0x541c6a:0x2bd,_0x4ba518:0x281,_0x31e4bc:0x27b};if(_0x976cc[_0x73cefa(-0xea,-_0x534507._0x431670,-0x103,-_0x534507._0x3738e0)]||_0x976cc[_0x452ce7(_0x534507._0x28394,0x1ee,_0x534507._0x18e1bf,_0x534507._0x223468)]||_0x976cc[_0x73cefa(-_0x534507._0x311c31,-0x224,-0x22b,-_0x534507._0x1d8eda)])return;function _0x73cefa(_0x156347,_0x2c7460,_0x3f5012,_0x170736){return _0x5b3424(_0x156347-0x14b,_0x2c7460-0x8,_0x3f5012-0x128,_0x3f5012);}function _0x452ce7(_0x3aad87,_0x1e160a,_0x5c0114,_0xf15f29){return _0x5b3424(_0x3aad87-0x60,_0x1e160a-0x478,_0x5c0114-0x33,_0x3aad87);}this['responsesSocketSessions'][_0x452ce7(0x3b7,0x395,_0x534507._0x36aa58,0x332)](_0x976cc[_0x452ce7(_0x534507._0x438587,_0x534507._0x604259,_0x534507._0x184bb8,0x20b)])===_0x976cc&&this[_0x73cefa(-_0x534507._0x5158a5,-0x24f,-0x2ec,-0x277)][_0x452ce7(_0x534507._0x541c6a,_0x534507._0x4ba518,0x1c6,_0x534507._0x31e4bc)](_0x976cc['key']);}['getResponsesSocketSessionKey'](_0x491483){const _0x521cc5={_0x218cdf:0x20b,_0x35db4d:0x14d,_0x594f9c:0x281,_0xa57fb7:0x357},_0x3ccb5f={_0x45e8a1:0x6,_0x30d37d:0x98},_0x24dd23={_0x34bac9:0x22a,_0x50304b:0x89};function _0x2e9a02(_0x18427d,_0x140cc5,_0x108e09,_0x134316){return _0x3dbb2c(_0x18427d-0x183,_0x140cc5-_0x24dd23._0x34bac9,_0x108e09-_0x24dd23._0x50304b,_0x18427d);}function _0xda2449(_0x350d43,_0x2f21dd,_0x1ab771,_0x5bc507){return _0x5b3424(_0x350d43-_0x3ccb5f._0x45e8a1,_0x350d43-0x347,_0x1ab771-_0x3ccb5f._0x30d37d,_0x5bc507);}return''+trimTrailingSlashes(this[_0xda2449(0x140,0x237,_0x521cc5._0x218cdf,_0x521cc5._0x35db4d)])+this[_0xda2449(_0x521cc5._0x594f9c,0x2f9,0x19c,_0x521cc5._0xa57fb7)]+'::'+_0x491483;}async[_0x3dbb2c(0x2ae,0x2fa,0x35e,0x376)](_0x6f1174){const _0x2fb0ac={_0x43b11e:0x581,_0x54a996:0x4f6,_0x37d07b:0x1a3,_0x3fd296:0x16d,_0x3cbc45:0x57,_0x2feda7:0x60,_0x34b538:0x9b},_0x1f15d3={_0x562991:0x2d1,_0x267e83:0x34f,_0x253bf9:0x2de,_0x35d88c:0x1d7,_0x4f98ff:0x319},_0x40e8f0={_0xc6d6d:0x15a,_0x240cf1:0x1d5},_0x4d4555={_0x35cbc6:0x660,_0x35b264:0x18},_0x1bd495={_0xa576f9:0x1d7},_0x42aef0=_0x6f1174[_0x1cffed(0x402,0x5c4,_0x2fb0ac._0x43b11e,_0x2fb0ac._0x54a996)][_0x377f54(_0x2fb0ac._0x37d07b,_0x2fb0ac._0x3fd296,-_0x2fb0ac._0x3cbc45,0xb5)](()=>{});let _0x1b5911;const _0x7b3e9c=new Promise(_0x4cda84=>{_0x1b5911=_0x4cda84;});_0x6f1174['pending']=_0x42aef0[_0x377f54(-0x14d,_0x2fb0ac._0x2feda7,0x36,-_0x2fb0ac._0x34b538)](()=>_0x7b3e9c);function _0x377f54(_0x40911b,_0x3e2300,_0xf62d90,_0x428caf){return _0x5b3424(_0x40911b-0xba,_0x428caf-0x231,_0xf62d90-_0x1bd495._0xa576f9,_0x3e2300);}await _0x42aef0,_0x6f1174['locked']=!![];function _0x1cffed(_0x40d71e,_0x5e30d9,_0x20d8ff,_0x290341){return _0x5b3424(_0x40d71e-0x167,_0x290341-_0x4d4555._0x35cbc6,_0x20d8ff-_0x4d4555._0x35b264,_0x5e30d9);}return()=>{const _0x4cf714={_0x1ad9b2:0x75,_0x16cee7:0x1fc};_0x6f1174[_0x1c30b3(_0x1f15d3._0x562991,_0x1f15d3._0x267e83,0x3e9,0x436)]=![];function _0x1c30b3(_0x204a92,_0x51b170,_0x543510,_0x2467f0){return _0x1cffed(_0x204a92-0x1,_0x204a92,_0x543510-_0x4cf714._0x1ad9b2,_0x51b170- -_0x4cf714._0x16cee7);}_0x1b5911?.();function _0x3b3a2f(_0x14c9c7,_0x44bee6,_0x5bf19e,_0x491c8c){return _0x377f54(_0x14c9c7-_0x40e8f0._0xc6d6d,_0x14c9c7,_0x5bf19e-_0x40e8f0._0x240cf1,_0x5bf19e-0x185);}this[_0x3b3a2f(_0x1f15d3._0x253bf9,_0x1f15d3._0x35d88c,0x254,_0x1f15d3._0x4f98ff)](_0x6f1174);};}async[_0x5b3424(0x10,-0xfa,-0x8e,-0x163)](_0x236408,_0x56703e){const _0x62693a={_0x22dca4:0x2a3,_0x1050c4:0x1ff,_0x2e1758:0x448,_0x5ae757:0x44c,_0x438062:0x42e,_0x19adcc:0x502,_0x3a59bb:0x4ab,_0x3da48f:0x4ab,_0x414e35:0x432,_0x175a3a:0x3c7,_0xce1e99:0x396,_0x86a0d4:0x39d,_0x21a10f:0x483,_0x27f73a:0x309,_0x433cc8:0x31a,_0x157aaf:0x3b8,_0x4104d6:0x3f7,_0x5a386a:0x444,_0x3c8fce:0x2bf,_0x3e653f:0x3c5},_0x597e5c={_0x4839a8:0x190},_0xc02b45={_0x3b0572:0x28,_0x16e1ad:0xa9},_0x53adc5=this[_0x2e766a(0x2d6,_0x62693a._0x22dca4,_0x62693a._0x1050c4,0x2b3)](_0x236408);function _0x13f970(_0x36ce2c,_0x3c1f66,_0x225c50,_0x4136dc){return _0x3dbb2c(_0x36ce2c-_0xc02b45._0x3b0572,_0x4136dc-0x1a9,_0x225c50-_0xc02b45._0x16e1ad,_0x225c50);}const _0x5940a1=toModelRequest(_0x53adc5);function _0x2e766a(_0x1c4e3d,_0x3234f1,_0x4b6f45,_0x183e6d){return _0x5b3424(_0x1c4e3d-_0x597e5c._0x4839a8,_0x1c4e3d-0x58d,_0x4b6f45-0x37,_0x3234f1);}const _0x2c919c=await prepareProviderRequest(_0x5940a1,{'sessionManager':this[_0x13f970(0x49f,_0x62693a._0x2e1758,0x3b1,_0x62693a._0x5ae757)],'requestMutators':this[_0x2e766a(_0x62693a._0x438062,0x4d0,_0x62693a._0x19adcc,_0x62693a._0x3a59bb)],'signal':_0x56703e}),_0x3686a5=this[_0x2e766a(0x4b6,_0x62693a._0x3da48f,0x3e6,0x4d9)](toChatRequest(_0x2c919c['request'])),_0x3c841e=this[_0x13f970(0x4a5,0x440,0x52c,0x444)][_0x2e766a(0x33d,_0x62693a._0x414e35,_0x62693a._0x175a3a,_0x62693a._0xce1e99)](this[_0x2e766a(_0x62693a._0x86a0d4,_0x62693a._0x21a10f,0x45b,_0x62693a._0x27f73a)],_0x2c919c[_0x2e766a(_0x62693a._0x433cc8,0x298,0x306,_0x62693a._0x157aaf)]);if(!_0x3c841e)throw this['createMissingCredentialError']();return{'baseUrl':this[_0x13f970(_0x62693a._0x4104d6,0x33f,0x499,_0x62693a._0x5a386a)][_0x2e766a(0x36c,0x295,_0x62693a._0x3c8fce,0x330)](this[_0x13f970(_0x62693a._0x438062,0x298,0x39f,0x378)],_0x2c919c[_0x2e766a(_0x62693a._0x433cc8,0x28c,_0x62693a._0x3e653f,0x22b)]),'credential':_0x3c841e,'request':_0x3686a5,'session':_0x2c919c['session']};}[_0x5b3424(-0x2dc,-0x27b,-0x337,-0x22a)](_0x2cdd80,_0x56fa78,_0x414702={}){const _0x11c1ff={_0x8f6375:0x8c,_0x2faa05:0xf,_0x336415:0x95,_0x1c1d46:0x37,_0x3141bc:0x1df,_0xa42f28:0xe7,_0x4d0ccf:0x92,_0x683697:0xbd,_0x4f0561:0x182,_0x6a8e33:0x21f,_0x558ec4:0x224,_0x51fe63:0x1fc,_0x2889fe:0x170,_0x2d9bd9:0x17,_0x4468ef:0x73,_0x597b01:0x97,_0x3d1db6:0x1cc,_0x4a8f0d:0x109},_0x1391a2={_0x37a565:0xc2},_0x40c873={_0xb9b944:0xd1,_0x3688e8:0xf6};if(!_0x414702['forceFullReplay']){const _0x53d8dc=this[_0x148164(-_0x11c1ff._0x8f6375,_0x11c1ff._0x2faa05,-_0x11c1ff._0x336415,-_0x11c1ff._0x1c1d46)](_0x2cdd80);if(_0x53d8dc&&_0x56fa78[_0x2b5a35(-_0x11c1ff._0x3141bc,-_0x11c1ff._0xa42f28,-0x161,-0x228)]&&_0x53d8dc['responseId']===_0x56fa78['lastResponseId']){const _0x238334=toOpenAiResponsesRequest({..._0x2cdd80,'messages':_0x2cdd80['messages'][_0x148164(_0x11c1ff._0x4d0ccf,-0x7,-0xc6,-_0x11c1ff._0x683697)](_0x53d8dc[_0x148164(-_0x11c1ff._0x4f0561,-0x144,-_0x11c1ff._0x6a8e33,-_0x11c1ff._0x558ec4)]+0x1)})[_0x2b5a35(-_0x11c1ff._0x51fe63,-0x210,-_0x11c1ff._0x2889fe,-0xca)];return{'event':createOpenAiResponsesWebSocketEvent(_0x2cdd80,{'input':_0x238334,'promptCacheKey':this['promptCacheKeyResolver']?.(_0x2cdd80),'previousResponseId':_0x53d8dc[_0x148164(0xdb,_0x11c1ff._0x2d9bd9,_0x11c1ff._0x4468ef,0xb1)]}),'previousResponseId':_0x53d8dc[_0x148164(_0x11c1ff._0x597b01,0x17,-0x43,0x9c)]};}}function _0x148164(_0x2f2502,_0x127b1b,_0x183ab7,_0xe5c89e){return _0x5b3424(_0x2f2502-_0x40c873._0xb9b944,_0x127b1b-_0x40c873._0x3688e8,_0x183ab7-0x114,_0x183ab7);}function _0x2b5a35(_0x5c4e7d,_0x4db841,_0x3de3eb,_0x36b0e2){return _0x5b3424(_0x5c4e7d-0x44,_0x3de3eb-0x73,_0x3de3eb-_0x1391a2._0x37a565,_0x36b0e2);}return{'event':createOpenAiResponsesWebSocketEvent(_0x2cdd80,{'promptCacheKey':this[_0x2b5a35(-_0x11c1ff._0x3d1db6,-0x237,-0x1bc,-_0x11c1ff._0x4a8f0d)]?.(_0x2cdd80)})};}[_0x3dbb2c(0x3ad,0x2ef,0x252,0x3c4)](_0x264bbc){const _0x42b65a={_0x2a3aa2:0x91,_0x1253f2:0x123,_0x3c832b:0xb3,_0x193944:0x91,_0x998984:0x18b,_0x238067:0x474,_0x5ed91d:0x36f,_0x2c9642:0x3aa,_0x4d7a08:0x139,_0xa11e79:0xb7,_0x47a749:0xbd,_0x12943c:0x86,_0xeef14:0x13b,_0x56b1c1:0x9b,_0x34fb25:0x189,_0x14658e:0x35},_0x455482={_0x4b6edf:0x15f,_0x818842:0x4e8},_0xe75cd1={_0x27fc4f:0x1ed};for(let _0xc65570=_0x264bbc[_0x3f8774(_0x42b65a._0x2a3aa2,0x62,_0x42b65a._0x1253f2,_0x42b65a._0x3c832b)]['length']-0x1;_0xc65570>=0x0;_0xc65570-=0x1){const _0x8ceedc=_0x264bbc[_0x3f8774(_0x42b65a._0x193944,_0x42b65a._0x998984,0xf,-0x54)][_0xc65570],_0x123458=_0x8ceedc[_0x449d27(_0x42b65a._0x238067,0x478,_0x42b65a._0x5ed91d,_0x42b65a._0x2c9642)]===_0x3f8774(-0x5f,-_0x42b65a._0x4d7a08,0x1c,-_0x42b65a._0xa11e79)?_0x8ceedc[_0x3f8774(-_0x42b65a._0x47a749,-_0x42b65a._0x12943c,-_0x42b65a._0xeef14,-0x195)]?.[_0x3f8774(_0x42b65a._0x56b1c1,_0x42b65a._0x34fb25,0x7d,-_0x42b65a._0x14658e)]:void 0x0;if(_0x123458)return{'messageIndex':_0xc65570,'responseId':_0x123458};}function _0x3f8774(_0x21bd56,_0x1cf2cc,_0x4c5c54,_0x4c0d4f){return _0x5b3424(_0x21bd56-0x8,_0x21bd56-_0xe75cd1._0x27fc4f,_0x4c5c54-0x1b1,_0x4c0d4f);}function _0x449d27(_0x169995,_0x4c3964,_0x311f71,_0x35fb14){return _0x5b3424(_0x169995-_0x455482._0x4b6edf,_0x35fb14-_0x455482._0x818842,_0x311f71-0x16f,_0x311f71);}return void 0x0;}[_0x5b3424(-0x40,-0xd0,-0xd4,-0x1b4)](_0x546edd){const _0x43837e={_0x2ce93d:0x11d,_0xeb27e5:0x181,_0x4b45b3:0x160,_0x540f99:0x52f,_0x16a160:0x136,_0x34f880:0x159},_0x230a03={_0x2f2581:0x21d,_0xfcb209:0xa4},_0x2e73d5={_0x16c9df:0x406,_0x2865d6:0x128};function _0x215054(_0x6ca2fa,_0x4a2dff,_0x2df40c,_0x560eea){return _0x5b3424(_0x6ca2fa-0x19c,_0x560eea-_0x2e73d5._0x16c9df,_0x2df40c-_0x2e73d5._0x2865d6,_0x6ca2fa);}function _0x730ffe(_0x71951f,_0x53b637,_0x4af289,_0x5bceed){return _0x3dbb2c(_0x71951f-0x146,_0x4af289-_0x230a03._0x2f2581,_0x4af289-_0x230a03._0xfcb209,_0x5bceed);}return _0x546edd instanceof ProviderStreamEventError&&(_0x546edd['code']===_0x215054(_0x43837e._0x2ce93d,_0x43837e._0xeb27e5,_0x43837e._0x4b45b3,0x18e)||_0x546edd[_0x730ffe(_0x43837e._0x540f99,0x3b8,0x4be,0x5a2)]===_0x215054(0x120,0x115,_0x43837e._0x16a160,_0x43837e._0x34f880));}[_0x5b3424(-0x2bd,-0x2a0,-0x261,-0x21f)](_0x51d6c6){const _0x357351={_0x1a8fa6:0x104,_0x26b9ee:0x11c,_0x5a50f9:0x17a,_0x2f37bf:0x2e,_0x10b65c:0x40,_0x48ef84:0x8a,_0x4a63f1:0x1e,_0x4ffee1:0x2f,_0x59749c:0x113,_0x296e74:0x21},_0xccd154={_0x4c1129:0x71,_0x505153:0x19c};function _0x3c273a(_0x3306bd,_0x10d8a7,_0x173122,_0x2c525f){return _0x5b3424(_0x3306bd-0x146,_0x173122-0x110,_0x173122-0x1d2,_0x2c525f);}function _0x194a61(_0x2b649e,_0x16e935,_0x207bd9,_0x25ccb3){return _0x5b3424(_0x2b649e-_0xccd154._0x4c1129,_0x16e935-_0xccd154._0x505153,_0x207bd9-0xc1,_0x25ccb3);}const _0x528da4=_0x51d6c6[_0x3c273a(-0x1bd,-_0x357351._0x1a8fa6,-_0x357351._0x26b9ee,-0x110)];_0x51d6c6['socket']=void 0x0,_0x51d6c6[_0x3c273a(-0x261,-0x1fd,-_0x357351._0x5a50f9,-0x1e8)]=void 0x0,_0x51d6c6[_0x3c273a(-0x7f,_0x357351._0x2f37bf,-0xc4,_0x357351._0x10b65c)]=void 0x0,_0x528da4?.[_0x194a61(0x1a,-_0x357351._0x48ef84,-_0x357351._0x4a63f1,_0x357351._0x4ffee1)]===WebSocket[_0x194a61(-0x7e,-_0x357351._0x59749c,-0x14c,-0x1e3)]&&_0x528da4['close'](0x3e8,_0x3c273a(0x61,0x3,_0x357351._0x296e74,0x22));}async[_0x5b3424(-0x354,-0x289,-0x2d2,-0x1b9)](_0x34a52d,_0x5cb096,_0x310194,_0x29cbf1,_0xa5c929){const _0x46fee6={_0x8a631:0x4d4,_0x3d5221:0x43a,_0x285bbc:0x4b9,_0xff0a05:0x7b,_0x4c1a8f:0x105,_0x108e78:0x359,_0x18478c:0x4b2,_0x20cb9f:0x487,_0x1e968e:0x512,_0x3aa126:0x4e9,_0x1e0a66:0x3b,_0xc48642:0x12b,_0x3c8390:0x11c,_0x29249b:0x476,_0x5abd18:0x3a3},_0x4ca3ca={_0x64be8f:0x1e9},_0x3fa2a0={_0x58e83c:0x187,_0x386876:0x47},_0x20fc9d={_0x7bf993:0x4bc,_0x4bed9f:0x65e,_0x554dfe:0x5b6,_0x40afdc:0x37c,_0x52e768:0x3a1,_0x8edc8a:0x3c5,_0x17d224:0x4dd,_0x3e087d:0x535,_0xabe462:0x441,_0x3bace9:0x441,_0x433bd9:0x3b1,_0x40002d:0x46,_0x39bae7:0xd2,_0x4cf779:0x96,_0x4d55fc:0x4bf,_0x426ccd:0x8e,_0x596d84:0x51,_0x192060:0x3c,_0x306214:0x16,_0x2b1910:0x69,_0x1bbe5d:0x104,_0x55f44e:0x191,_0x441884:0x123,_0x2e0012:0x1e7,_0x27f4cf:0x22a,_0x4cd125:0x128,_0x573605:0x25b,_0x3a2ef4:0x197,_0x4fd985:0x13a,_0x2c99ac:0x242,_0x3dffb8:0x14b,_0x128fdb:0xb2,_0x8e2fdf:0x62,_0x1f0469:0x4b7,_0x1017f4:0x473,_0x2e453c:0x5ae,_0x319baa:0x133,_0x18a5c1:0x3c3,_0x1a4778:0x2ec,_0x45c1c:0x456,_0x12ed04:0x2b5,_0x157748:0x206,_0x232442:0x18a},_0x5f4f4c={_0xb12ba6:0x13f,_0x428b40:0x184,_0x4fd910:0x197,_0x4e08c8:0x273,_0x29c8a1:0x2c0,_0x4f1f94:0x209};if(_0x5cb096[_0x539e0d(_0x46fee6._0x8a631,_0x46fee6._0x3d5221,_0x46fee6._0x285bbc,0x59a)]?.[_0x111956(0x29,0x105,_0x46fee6._0xff0a05,_0x46fee6._0x4c1a8f)]===WebSocket[_0x539e0d(0x451,_0x46fee6._0x108e78,_0x46fee6._0x18478c,0x460)])return _0x5cb096[_0x539e0d(0x4d4,_0x46fee6._0x20cb9f,_0x46fee6._0x1e968e,_0x46fee6._0x3aa126)];if(_0x5cb096['connecting'])return await _0x5cb096[_0x111956(-_0x46fee6._0x1e0a66,-_0x46fee6._0xc48642,-_0x46fee6._0x3c8390,0x68)];_0x5cb096['connecting']=((async()=>{const _0x40c88e={_0x2e7f5e:0x1c},_0x2c67af={_0x16bfd2:0x11},_0x208cb4=await this[_0x127d97(_0x20fc9d._0x7bf993,0x582,_0x20fc9d._0x4bed9f,_0x20fc9d._0x554dfe)]({'request':_0x310194[_0x127d97(0x2a9,_0x20fc9d._0x40afdc,_0x20fc9d._0x52e768,0x398)],'body':_0x29cbf1,'credential':_0x310194['credential'],'session':_0x310194[_0x127d97(0x31a,_0x20fc9d._0x8edc8a,0x36a,0x3c2)],'stream':!![]},{'accept':_0x127d97(0x3dd,0x45d,_0x20fc9d._0x17d224,_0x20fc9d._0x3e087d),'includeContentType':![]});function _0x127d97(_0x42a95f,_0x5e43a0,_0x1d64ee,_0xc46ce2){return _0x539e0d(_0x5e43a0- -0xc8,_0x5e43a0-_0x2c67af._0x16bfd2,_0x1d64ee-0xf4,_0x1d64ee);}_0x208cb4[_0x127d97(_0x20fc9d._0xabe462,_0x20fc9d._0x3bace9,0x37f,_0x20fc9d._0x433bd9)]('accept');const _0x187075=this[_0x1a7835(_0x20fc9d._0x40002d,_0x20fc9d._0x39bae7,0x4b,_0x20fc9d._0x4cf779)]({'headers':Object[_0x127d97(0x4c0,_0x20fc9d._0x4d55fc,0x4cb,0x4fc)](_0x208cb4[_0x1a7835(_0x20fc9d._0x426ccd,-0x7b,-_0x20fc9d._0x596d84,_0x20fc9d._0x192060)]()),'url':(''+_0x310194[_0x1a7835(_0x20fc9d._0x306214,0x155,_0x20fc9d._0x2b1910,_0x20fc9d._0x1bbe5d)]+this[_0x1a7835(0x34e,0x18f,_0x20fc9d._0x55f44e,0x245)])[_0x1a7835(_0x20fc9d._0x441884,0x29d,_0x20fc9d._0x2e0012,_0x20fc9d._0x27f4cf)](/^http:/,_0x1a7835(0x21b,_0x20fc9d._0x4cd125,_0x20fc9d._0x573605,_0x20fc9d._0x3a2ef4))[_0x1a7835(0x254,_0x20fc9d._0x4fd985,_0x20fc9d._0x2c99ac,0x22a)](/^https:/,'wss:')}),_0x7e8b64=()=>{const _0x47e6af={_0x52a86e:0x8};_0x5cb096[_0x171408(0xee,0xa1,_0x5f4f4c._0xb12ba6,0x19e)]===_0x187075&&(_0x5cb096['socket']=void 0x0,_0x5cb096[_0x171408(0x10f,_0x5f4f4c._0x428b40,_0x5f4f4c._0x4fd910,_0x5f4f4c._0x4e08c8)]=void 0x0);function _0x171408(_0x42b736,_0x34e979,_0x29f91c,_0x1d43ac){return _0x127d97(_0x42b736-0x14c,_0x29f91c- -0x2cd,_0x1d43ac,_0x1d43ac-_0x47e6af._0x52a86e);}function _0xd241a3(_0x1afbd0,_0x7df9ee,_0xfcd910,_0x208bb1){return _0x1a7835(_0x1afbd0,_0x7df9ee-_0x40c88e._0x2e7f5e,_0xfcd910-0x77,_0x7df9ee- -0x7a);}this[_0x171408(0x22e,_0x5f4f4c._0x29c8a1,_0x5f4f4c._0x4f1f94,0x197)](_0x5cb096);};function _0x1a7835(_0x17af32,_0x19a0b9,_0x95e83,_0x40056a){return _0x111956(_0x40056a-0xbc,_0x19a0b9-0x30,_0x17af32,_0x40056a-0x1ab);}_0x187075[_0x1a7835(_0x20fc9d._0x3dffb8,0x70,_0x20fc9d._0x128fdb,_0x20fc9d._0x8e2fdf)](_0x127d97(0x5bf,_0x20fc9d._0x1f0469,_0x20fc9d._0x1017f4,_0x20fc9d._0x2e453c),_0x7e8b64);try{return throwIfAborted(_0xa5c929),_0x187075[_0x1a7835(0x1d7,_0x20fc9d._0x319baa,0x26,0xe5)]!==WebSocket[_0x127d97(_0x20fc9d._0x18a5c1,0x389,_0x20fc9d._0x1a4778,0x448)]&&await waitForWebSocketOpen(_0x187075,_0xa5c929),throwIfAborted(_0xa5c929),_0x5cb096[_0x127d97(0x3ee,0x40c,0x408,_0x20fc9d._0x45c1c)]=_0x187075,_0x187075;}catch(_0x1757c2){_0x7e8b64();_0x187075['readyState']===WebSocket[_0x127d97(0x29f,0x389,0x44b,_0x20fc9d._0x12ed04)]&&_0x187075[_0x1a7835(0x95,0xba,_0x20fc9d._0x157748,_0x20fc9d._0x232442)](0x3e8,_0x1a7835(0x125,0x38,0xe5,0xc5));throw _0x1757c2;}})());function _0x111956(_0xf5f65f,_0x31d94e,_0x514000,_0x5ea3ed){return _0x3dbb2c(_0xf5f65f-0x1c3,_0xf5f65f- -_0x3fa2a0._0x58e83c,_0x514000-_0x3fa2a0._0x386876,_0x514000);}function _0x539e0d(_0x55f4ae,_0x1a096b,_0x251d04,_0x46521b){return _0x3dbb2c(_0x55f4ae-_0x4ca3ca._0x64be8f,_0x55f4ae-0x32a,_0x251d04-0x11e,_0x46521b);}try{return await _0x5cb096['connecting'];}finally{_0x5cb096[_0x539e0d(_0x46fee6._0x29249b,0x527,0x37f,_0x46fee6._0x5abd18)]=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x4e2cf8,_0x428e8d){const _0x3cf6d9={_0x46ca65:0x329,_0x2efa86:0x2ac,_0x3db410:0x4a0,_0x5d72a9:0x4d3,_0x538614:0x484,_0xdf0364:0x47e,_0x4e4178:0x3dd,_0x1836e5:0x2f6,_0x3be740:0x3e6,_0xe16729:0x5f3,_0x2a4847:0x426,_0x24befb:0x327,_0x230a42:0x5e5,_0x235fd6:0x5ed,_0x5afeda:0x374,_0x26ffa0:0x38c,_0x199868:0x378,_0x8aeefb:0x273,_0x1fc2cc:0x613,_0x538cf6:0x41c,_0x1d86dd:0x360,_0x406428:0x23f,_0x1bbb08:0x285,_0x4cd481:0x4b0,_0x5a6c59:0x527,_0x56092e:0x451,_0x360172:0x2d5,_0x45bdc2:0x222,_0x2602fd:0x472,_0x4ff1a0:0x3e0},_0xc799d9={_0x15736f:0x31,_0x21bb0b:0x525,_0x33b780:0x1cd};function _0xd1286e(_0x327419,_0x585349,_0x563c47,_0x43ed11){return _0x3dbb2c(_0x327419-0x182,_0x327419-0x20a,_0x563c47-0x108,_0x563c47);}const _0x53737a=this[_0xd1286e(_0x3cf6d9._0x46ca65,0x336,0x437,_0x3cf6d9._0x2efa86)](_0x4e2cf8);function _0x2726b6(_0x5e303d,_0x5b9e51,_0x1fbfaf,_0x491228){return _0x5b3424(_0x5e303d-_0xc799d9._0x15736f,_0x491228-_0xc799d9._0x21bb0b,_0x1fbfaf-_0xc799d9._0x33b780,_0x1fbfaf);}const _0x3ae140=this[_0x2726b6(0x3f5,0x450,0x329,0x3c8)](_0x53737a[_0x2726b6(_0x3cf6d9._0x3db410,_0x3cf6d9._0x5d72a9,0x2f1,0x3ff)]['sessionId']),_0xbfcc91=await this[_0x2726b6(_0x3cf6d9._0x538614,_0x3cf6d9._0xdf0364,_0x3cf6d9._0x4e4178,0x449)](_0x3ae140);try{const _0xdea519=this[_0xd1286e(0x365,_0x3cf6d9._0x1836e5,_0x3cf6d9._0x3be740,0x390)](_0x53737a,_0x3ae140);try{yield*this[_0xd1286e(0x50c,0x468,_0x3cf6d9._0xe16729,0x50f)](_0x53737a[_0xd1286e(0x4ba,0x4a9,0x40b,0x54f)][_0x2726b6(_0x3cf6d9._0x2a4847,0x40a,0x319,_0x3cf6d9._0x24befb)],_0x3ae140,_0x53737a,_0xdea519[_0xd1286e(0x516,_0x3cf6d9._0x230a42,0x4ec,_0x3cf6d9._0x235fd6)],_0x428e8d?.[_0xd1286e(0x472,_0x3cf6d9._0x5afeda,_0x3cf6d9._0x26ffa0,0x44a)]);return;}catch(_0x315e03){if(!_0xdea519[_0x2726b6(_0x3cf6d9._0x199868,0x2f1,0x271,_0x3cf6d9._0x8aeefb)]||!this[_0xd1286e(0x510,_0x3cf6d9._0x1fc2cc,0x5c7,_0x3cf6d9._0x538cf6)](_0x315e03)){this[_0xd1286e(0x340,0x3b3,0x234,0x3aa)](_0x3ae140);throw _0x315e03;}}this[_0x2726b6(0x373,_0x3cf6d9._0x1d86dd,_0x3cf6d9._0x406428,_0x3cf6d9._0x1bbb08)](_0x3ae140);const _0x535d9a=this['buildResponsesSocketEvent'](_0x53737a,_0x3ae140,{'forceFullReplay':!![]});yield*this[_0x2726b6(0x431,_0x3cf6d9._0x4cd481,_0x3cf6d9._0x5a6c59,_0x3cf6d9._0x56092e)](_0x53737a['metadata'][_0x2726b6(_0x3cf6d9._0x360172,_0x3cf6d9._0x45bdc2,0x22b,0x327)],_0x3ae140,_0x53737a,_0x535d9a['event'],_0x428e8d?.[_0xd1286e(_0x3cf6d9._0x2602fd,_0x3cf6d9._0x4ff1a0,0x3e9,0x369)]);}finally{_0xbfcc91();}}async*[_0x5b3424(-0x13,-0xd4,-0x7d,-0x125)](_0x3503a5,_0x213dea,_0x462394,_0x5cf23f,_0x19df35){const _0x4fb638={_0x395725:0x1a6,_0x509e0b:0xfc,_0x5d823a:0x20c,_0x9ab7f8:0x370,_0x16c875:0x3dd,_0xd55add:0x4bf,_0x5c6a3c:0xb7,_0x177f4e:0x3e,_0x1459d4:0xdc,_0x2a9cf2:0x50a,_0x114e42:0x415,_0x5de8c9:0x50b,_0x122ff1:0x4e3,_0x1af406:0x3a5,_0x430daa:0x4f8,_0x3c1f78:0x9c,_0x430135:0xa6,_0x53e867:0x31,_0xddc8e6:0x36b,_0xb7a37c:0x3cc,_0x5e8cdc:0x2cd,_0x5eef9b:0x430,_0x1ab0ce:0x5bf,_0x25e698:0x4d7,_0x56e94b:0x499,_0x1b8f1d:0x47f,_0x137b31:0x4cf,_0x2941a6:0x514,_0x453b1e:0x492,_0x2b73e8:0x438,_0x231087:0x4a4,_0x48df99:0x5b0},_0x1b2258={_0x3fec78:0x145,_0x1d6113:0x16d,_0x541f1b:0x56},_0x24cb7d={_0x526035:0xd9},_0x232c68=await this[_0xe16c0a(_0x4fb638._0x395725,_0x4fb638._0x509e0b,_0x4fb638._0x5d823a,0x16f)](_0x462394,_0x19df35),_0x36b31a=await this[_0xe0425b(_0x4fb638._0x9ab7f8,_0x4fb638._0x16c875,0x303,_0x4fb638._0xd55add)](_0x3503a5,_0x213dea,_0x232c68,_0x5cf23f,_0x19df35),_0x296900=createOpenAiResponsesStreamParser(_0x462394);function _0xe0425b(_0x2666c5,_0x823549,_0x2aabf6,_0x527688){return _0x3dbb2c(_0x2666c5-_0x24cb7d._0x526035,_0x823549-0x290,_0x2aabf6-0x60,_0x527688);}throwIfAborted(_0x19df35),_0x36b31a[_0xe16c0a(_0x4fb638._0x5c6a3c,_0x4fb638._0x177f4e,-0x10,_0x4fb638._0x1459d4)](JSON[_0xe0425b(_0x4fb638._0x2a9cf2,_0x4fb638._0x114e42,_0x4fb638._0x5de8c9,_0x4fb638._0x122ff1)](_0x5cf23f));for await(const _0x261d27 of iterateWebSocketMessages(_0x36b31a,_0x19df35)){const _0x587f0e=_0x296900[_0xe0425b(_0x4fb638._0x1af406,0x3fe,_0x4fb638._0x430daa,0x2f2)]?.(_0x261d27)??[];yield*_0x587f0e;if(_0x296900[_0xe16c0a(-_0x4fb638._0x3c1f78,_0x4fb638._0x430135,-0x6c,-_0x4fb638._0x53e867)]?.())break;}function _0xe16c0a(_0x207dbd,_0x380f1e,_0x7ef17c,_0x560299){return _0x3dbb2c(_0x207dbd-_0x1b2258._0x3fec78,_0x560299- -_0x1b2258._0x1d6113,_0x7ef17c-_0x1b2258._0x541f1b,_0x7ef17c);}if(!_0x296900[_0xe0425b(_0x4fb638._0xddc8e6,_0x4fb638._0xb7a37c,_0x4fb638._0x5e8cdc,_0x4fb638._0x5eef9b)]?.())throw new ProviderStreamEventError(_0xe0425b(_0x4fb638._0x1ab0ce,0x584,_0x4fb638._0x25e698,0x575),{'retryable':!![]});const _0x413e36=_0x296900[_0xe0425b(0x44f,0x3e1,_0x4fb638._0x56e94b,_0x4fb638._0x1b8f1d)](),_0x355bf7=_0x413e36[_0xe0425b(0x449,0x3bc,0x36c,0x4a3)]?.[_0xe0425b(_0x4fb638._0x137b31,_0x4fb638._0x2941a6,0x4da,0x441)]??_0x413e36['id'];_0x355bf7&&(_0x213dea[_0xe0425b(0x40a,_0x4fb638._0x453b1e,_0x4fb638._0x2b73e8,0x406)]=_0x355bf7),yield{'type':_0xe0425b(0x3f1,_0x4fb638._0x231087,0x47f,_0x4fb638._0x48df99),'response':_0x413e36};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x3dbb2c(0xb8,0x12f,0x166,0x35),_0x3dbb2c(0x184,0x1bb,0x29e,0x18c),_0x5b3424(-0x329,-0x28d,-0x1c0,-0x33f),_0x5b3424(-0x27e,-0x19f,-0x1ce,-0x23c)];function isAnthropicSurface(_0x4f0c67){return _0x4f0c67==='anthropic-messages';}function providerFromSurface(_0x2fa62f){const _0x42aabc={_0x1a1e81:0x37,_0x382dad:0x577,_0x630cf:0x3a,_0x1ff900:0x1d2,_0x3a579e:0xa9},_0x5a574a={_0x177be4:0xe3,_0x56bd56:0x24f,_0x31711a:0x6c};function _0xd288dc(_0x6e10cf,_0x5a902e,_0x182a4f,_0x43bf3a){return _0x5b3424(_0x6e10cf-_0x5a574a._0x177be4,_0x43bf3a-_0x5a574a._0x56bd56,_0x182a4f-_0x5a574a._0x31711a,_0x182a4f);}function _0x2f1ffe(_0x3858ad,_0xfa685b,_0x39f7d1,_0xe13d4){return _0x5b3424(_0x3858ad-0x1a3,_0x3858ad-0x5c4,_0x39f7d1-0xa5,_0x39f7d1);}return _0x2fa62f[_0xd288dc(-0xb0,0x38,0x39,_0x42aabc._0x1a1e81)]('anthropic')?_0x2f1ffe(0x4f3,0x4aa,0x493,_0x42aabc._0x382dad):_0xd288dc(_0x42aabc._0x630cf,_0x42aabc._0x1ff900,_0x42aabc._0x3a579e,0xde);}function resolveDefaultBaseUrl(_0x4e155a){const _0x241b3e={_0x3caa38:0x75,_0x272989:0x1cf,_0x5537ce:0x508,_0x341d6f:0x549,_0x197654:0x3d2,_0x242a63:0x3f8,_0x5be152:0x4dd,_0x2953c7:0xcb,_0x13ce11:0x169,_0x2da8c5:0x5e,_0x5d623a:0xac},_0x310831={_0xaf313:0x79,_0x2b2b79:0xba},_0x3d115a={_0x540acf:0x2c};function _0x1ba6e9(_0x457312,_0x20adb2,_0x26d07f,_0x2b5f76){return _0x5b3424(_0x457312-_0x3d115a._0x540acf,_0x20adb2-0x5d9,_0x26d07f-0x121,_0x457312);}if(_0x4e155a===_0x5166ef(-0x10d,-_0x241b3e._0x3caa38,-0xc7,-_0x241b3e._0x272989))return getProviderProfile(_0x1ba6e9(0x424,_0x241b3e._0x5537ce,0x586,_0x241b3e._0x341d6f))?.[_0x1ba6e9(0x2f4,_0x241b3e._0x197654,_0x241b3e._0x242a63,_0x241b3e._0x5be152)]??_0x5166ef(-_0x241b3e._0x2953c7,-_0x241b3e._0x13ce11,-0x9a,-0x160);function _0x5166ef(_0x3ae0bc,_0xbd352f,_0x2c50fe,_0x40b7ae){return _0x5b3424(_0x3ae0bc-_0x310831._0xaf313,_0x2c50fe-0x1e0,_0x2c50fe-_0x310831._0x2b2b79,_0x40b7ae);}return getProviderProfile(_0x5166ef(_0x241b3e._0x2da8c5,_0x241b3e._0x5d623a,0x6f,0xf1))?.['baseUrl']??'https://api.openai.com/v1';}var ChatModel=class{['model'];[_0x5b3424(-0x106,-0x204,-0x25f,-0x1aa)];[_0x5b3424(-0xca,-0xf3,-0x4f,-0xaf)];[_0x3dbb2c(0x1b0,0x1d1,0xe2,0x1f8)];['surface'];['provider'];[_0x3dbb2c(0x25c,0x1d5,0x1da,0x162)];[_0x3dbb2c(0x155,0x254,0x181,0x2ab)];constructor(_0x38acf7={}){const _0xeaa1b1={_0x2d1da2:0x9e,_0x461ab9:0x98,_0x43f62f:0x116,_0x150ded:0x213,_0x5b630d:0x4c7,_0x44955d:0x538,_0x21709b:0x4bf,_0x25545b:0x472,_0x16fcd2:0x5d6,_0xde7c81:0x507,_0x14f02c:0x4b2,_0x250b22:0x6db,_0x59ef98:0x618,_0x4186d6:0x224,_0x246a13:0x288,_0x378283:0x1f6,_0x1a80df:0x13a,_0x24a0bb:0x596,_0x56208f:0x21a,_0x574880:0x1c1,_0x1d9009:0x575,_0x2cc84f:0x62b,_0x110fbb:0x3e6,_0x53f309:0x42b,_0x3267d2:0x6a6,_0x2d7770:0x697,_0x44901c:0x1cb,_0x2a6870:0xd8,_0x3fe67d:0x143,_0x566d79:0x150,_0x339123:0x18a,_0x104b5d:0x1c3,_0x38f166:0x262,_0x1a7ad9:0x1c1,_0x3de100:0x1dc,_0x5250c9:0x604,_0x1e99a3:0x54a,_0x129914:0x620,_0x3c894d:0x5b2,_0x152262:0x475,_0x1d1823:0xd7,_0x45dd86:0x6e9,_0x248254:0x63b,_0x58868d:0x4f6,_0x2e2f09:0x636,_0x3464c7:0x531,_0x2d3209:0x196,_0x386e79:0x115,_0x44b489:0x6f0,_0x533687:0x602,_0x3c0610:0x591,_0x5a71d0:0x52e,_0x1dfcad:0x45,_0x43ca8d:0x4d,_0x5c05f8:0x24,_0x3a964b:0x73,_0x4e6c66:0x2b8,_0xea512a:0x62d,_0x4df40d:0x600,_0x24ba5d:0x4da,_0x4f78d0:0x29,_0x530fd2:0xe4,_0x3de7c4:0x594,_0x57bff5:0x269,_0x516b88:0x76,_0x502191:0xc},_0x37ab51={_0x244393:0x2e9},_0x561f27={_0x524640:0x70b};this[_0x37a00d(_0xeaa1b1._0x2d1da2,_0xeaa1b1._0x461ab9,_0xeaa1b1._0x43f62f,_0xeaa1b1._0x150ded)]=_0x38acf7[_0x3c5c0d(_0xeaa1b1._0x5b630d,0x5e1,_0xeaa1b1._0x44955d,_0xeaa1b1._0x21709b)]??getDefaultModel(),this[_0x3c5c0d(_0xeaa1b1._0x25545b,_0xeaa1b1._0x16fcd2,_0xeaa1b1._0xde7c81,_0xeaa1b1._0x14f02c)]=_0x38acf7['modelIdentity']??modelIdentityFromParts(void 0x0,this['model']);function _0x3c5c0d(_0x158cac,_0x4f98be,_0x4bfdbd,_0x3fe1ce){return _0x5b3424(_0x158cac-0xf7,_0x4bfdbd-_0x561f27._0x524640,_0x4bfdbd-0xbe,_0x158cac);}function _0x37a00d(_0x219e00,_0x413292,_0x4890cd,_0x4947c6){return _0x5b3424(_0x219e00-0x1d5,_0x4890cd-_0x37ab51._0x244393,_0x4890cd-0xe6,_0x219e00);}this[_0x3c5c0d(0x53f,_0xeaa1b1._0x250b22,_0xeaa1b1._0x59ef98,0x5f4)]=_0x38acf7[_0x37a00d(_0xeaa1b1._0x4186d6,_0xeaa1b1._0x246a13,_0xeaa1b1._0x378283,_0xeaa1b1._0x1a80df)],this['pricingProviderId']=_0x38acf7[_0x3c5c0d(0x5fa,0x5dc,0x506,_0xeaa1b1._0x24a0bb)],this[_0x37a00d(_0xeaa1b1._0x56208f,0x124,_0xeaa1b1._0x574880,0x1f0)]=_0x38acf7[_0x3c5c0d(_0xeaa1b1._0x1d9009,_0xeaa1b1._0x2cc84f,0x5e3,0x684)]??_0x3c5c0d(_0xeaa1b1._0x110fbb,_0xeaa1b1._0x53f309,0x4f0,0x505),this[_0x3c5c0d(_0xeaa1b1._0x3267d2,_0xeaa1b1._0x2d7770,0x5f8,0x6d8)]=providerFromSurface(this['surface']);const _0xd2235d=trimTrailingSlashes(_0x38acf7[_0x37a00d(_0xeaa1b1._0x44901c,_0xeaa1b1._0x2a6870,0xe2,_0xeaa1b1._0x3fe67d)]??resolveDefaultBaseUrl(this[_0x37a00d(_0xeaa1b1._0x566d79,_0xeaa1b1._0x339123,0x1c1,0x236)]));if(isAnthropicSurface(this[_0x37a00d(_0xeaa1b1._0x104b5d,_0xeaa1b1._0x38f166,_0xeaa1b1._0x1a7ad9,_0xeaa1b1._0x3de100)])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x38acf7['apiKey'],'authScheme':_0x38acf7[_0x3c5c0d(0x60c,_0xeaa1b1._0x5250c9,_0xeaa1b1._0x1e99a3,_0xeaa1b1._0x129914)],'baseUrl':_0xd2235d,'fetch':_0x38acf7[_0x3c5c0d(_0xeaa1b1._0x3c894d,0x5f4,0x582,_0xeaa1b1._0x152262)],'headerResolver':_0x38acf7[_0x37a00d(0x7d,0xaf,0x112,_0xeaa1b1._0x1d1823)],...this[_0x3c5c0d(_0xeaa1b1._0x45dd86,0x5c0,_0xeaa1b1._0x59ef98,_0xeaa1b1._0x248254)]!==void 0x0?{'maxTokens':this['maxTokens']}:{},'model':this[_0x3c5c0d(_0xeaa1b1._0x58868d,_0xeaa1b1._0x2e2f09,0x538,_0xeaa1b1._0x3464c7)],'modelIdentity':this['modelIdentity'],...this[_0x37a00d(_0xeaa1b1._0x2d3209,0xd6,0xe4,_0xeaa1b1._0x386e79)]!==void 0x0?{'pricingProviderId':this['pricingProviderId']}:{},'reasoning':_0x38acf7[_0x3c5c0d(_0xeaa1b1._0x44b489,0x6b2,_0xeaa1b1._0x533687,_0xeaa1b1._0x3c0610)],'providerSessionResolver':_0x38acf7['providerSessionResolver'],'requestMutators':_0x38acf7[_0x37a00d(0x20b,0xd9,_0xeaa1b1._0x339123,0x24b)]});return;}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x38acf7[_0x3c5c0d(0x46b,0x41f,0x51b,_0xeaa1b1._0x5a71d0)],'baseUrl':_0xd2235d,'fetch':_0x38acf7['fetch'],'forceStreaming':_0x38acf7['forceStreaming'],'headerResolver':_0x38acf7[_0x37a00d(_0xeaa1b1._0x1dfcad,-_0xeaa1b1._0x43ca8d,_0xeaa1b1._0x5c05f8,-_0xeaa1b1._0x3a964b)],...this['maxTokens']!==void 0x0?{'maxTokens':this[_0x37a00d(_0xeaa1b1._0x3fe67d,_0xeaa1b1._0x4e6c66,0x1f6,0x20c)]}:{},'model':this[_0x3c5c0d(_0xeaa1b1._0xea512a,_0xeaa1b1._0x4df40d,0x538,0x52a)],'modelIdentity':this[_0x3c5c0d(_0xeaa1b1._0x24ba5d,0x53e,0x507,0x45c)],...this['pricingProviderId']!==void 0x0?{'pricingProviderId':this[_0x37a00d(-_0xeaa1b1._0x4f78d0,0x14,_0xeaa1b1._0x530fd2,0x15a)]}:{},'promptCacheKeyResolver':_0x38acf7[_0x3c5c0d(_0xeaa1b1._0x3de7c4,0x492,0x4dc,0x49f)],'reasoning':_0x38acf7[_0x37a00d(0x1de,0x2b1,0x1e0,0x112)],'providerSessionResolver':_0x38acf7['providerSessionResolver'],'requestMutators':_0x38acf7[_0x37a00d(0xc7,_0xeaa1b1._0x57bff5,_0xeaa1b1._0x339123,0x21e)],'webSocketFactory':_0x38acf7[_0x37a00d(0x47,_0xeaa1b1._0x516b88,0x74,-_0xeaa1b1._0x502191)]});}['getAnthropicDelegate'](){const _0x20d171={_0x28a666:0x145,_0x319e96:0x125,_0x398f0c:0x154,_0x31d540:0x19},_0xedadd={_0x1a4b8e:0xb,_0x1719d4:0x1c},_0x594808={_0x524fc9:0x2fa};if(!this[_0x8490ba(-_0x20d171._0x28a666,-_0x20d171._0x319e96,-_0x20d171._0x398f0c,-0x214)])throw new Error('Anthropic\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x8490ba(-0x42,-0x4c,-0xea,-0x2)]);function _0x8490ba(_0x115e07,_0x28ba52,_0xed5e0d,_0x343dfd){return _0x3dbb2c(_0x115e07-0x37,_0x28ba52- -_0x594808._0x524fc9,_0xed5e0d-0x11c,_0x343dfd);}function _0x879bf5(_0x238a83,_0x2540d1,_0xeed3fd,_0xe092fb){return _0x5b3424(_0x238a83-_0xedadd._0x1a4b8e,_0x2540d1-0x283,_0xeed3fd-_0xedadd._0x1719d4,_0xe092fb);}return this[_0x879bf5(0x18d,0x82,-_0x20d171._0x31d540,0xb4)];}[_0x3dbb2c(0x278,0x1dd,0x1a5,0x2db)](){const _0x364deb={_0x36caab:0xcf,_0x435bb6:0x111,_0x308f40:0x52,_0x125eb6:0x16,_0xb81df4:0x93,_0xf74290:0x11b},_0x377ce8={_0x41e5c5:0x13d,_0x1d204e:0xed};function _0xf88e46(_0x46adb5,_0x2eaa30,_0x4ff548,_0x3188df){return _0x3dbb2c(_0x46adb5-0xb7,_0x3188df- -0x3c9,_0x4ff548-0x186,_0x46adb5);}function _0x43e516(_0x2e7f77,_0x44294f,_0x91e05d,_0x27c441){return _0x3dbb2c(_0x2e7f77-_0x377ce8._0x41e5c5,_0x27c441- -0x328,_0x91e05d-_0x377ce8._0x1d204e,_0x91e05d);}if(!this[_0x43e516(-0x1ad,-_0x364deb._0x36caab,-_0x364deb._0x435bb6,-0xd4)])throw new Error(_0x43e516(-_0x364deb._0x308f40,-0x9a,-0xd2,-_0x364deb._0x125eb6)+this[_0xf88e46(-_0x364deb._0xb81df4,-0x1e5,-0x38,-_0x364deb._0xf74290)]);return this[_0xf88e46(-0xe9,-0x281,-0x1e9,-0x175)];}[_0x5b3424(-0x1e2,-0x2bd,-0x325,-0x222)](_0x11180f,_0xee52e9){const _0x5c653d={_0x37eb36:0x3b1,_0x1c90bd:0x1dd,_0x347b96:0xda,_0x20c6be:0x22d,_0x1166a4:0x1c9,_0x20f9a3:0x2a7,_0x5c3545:0x22c,_0x5a3eca:0x228,_0x610886:0x12,_0x2e6c58:0x103,_0x3b2c8f:0x2b1},_0x499944={_0x22e404:0x1f},_0x5abb70={_0x2ad778:0x2fc};function _0x539183(_0x49333c,_0x4eb935,_0x1dd763,_0x560932){return _0x5b3424(_0x49333c-0x83,_0x4eb935-_0x5abb70._0x2ad778,_0x1dd763-0x33,_0x560932);}function _0x666d8b(_0x22ae3e,_0x324859,_0x4af176,_0x1a7d2a){return _0x5b3424(_0x22ae3e-0x1df,_0x22ae3e-0x3cb,_0x4af176-_0x499944._0x22e404,_0x324859);}switch(this[_0x666d8b(0x2a3,0x201,_0x5c653d._0x37eb36,0x1cf)]){case _0x666d8b(0x124,0xfa,_0x5c653d._0x1c90bd,_0x5c653d._0x347b96):return this[_0x539183(_0x5c653d._0x20c6be,0x1a3,_0x5c653d._0x1166a4,_0x5c653d._0x20f9a3)]()['complete'](_0x11180f,_0xee52e9);case'openai-responses':return this[_0x539183(0xc9,0x103,0x130,0x126)]()[_0x539183(0x132,0x20e,0x158,0x221)](_0x11180f,_0xee52e9);case _0x666d8b(_0x5c653d._0x5c3545,0x1a7,0x299,_0x5c653d._0x5a3eca):return this[_0x539183(_0x5c653d._0x610886,_0x5c653d._0x2e6c58,0x1c0,0xad)]()['responseSocket'](_0x11180f,_0xee52e9);default:return this['getOpenAiDelegate']()[_0x666d8b(_0x5c653d._0x3b2c8f,0x2f7,0x356,0x2d4)](_0x11180f,_0xee52e9);}}[_0x3dbb2c(0xcf,0x15d,0x7e,0xe6)](_0x208678,_0x55ba9f){const _0x3f1cc3={_0x21cc4d:0x13e,_0x206f3d:0xb3,_0x28cf9a:0x17b,_0x31daca:0x25d,_0x2e0ae7:0x109,_0x53d58d:0x121,_0x5d4768:0x450,_0x144d2e:0x528,_0x5c95f6:0x57d,_0x53fcb4:0x4ec,_0x714f10:0x163,_0x2952e7:0x21e,_0x1cb706:0x17a,_0x195095:0x218,_0xb8b983:0x16f},_0x131b69={_0x5672d8:0x50};function _0x969962(_0xa52311,_0x5ee47c,_0x5d8d21,_0x3b0bca){return _0x3dbb2c(_0xa52311-0xdb,_0x5d8d21-0x255,_0x5d8d21-_0x131b69._0x5672d8,_0x3b0bca);}function _0x5900ae(_0x48674a,_0x338294,_0x55d197,_0x5130fd){return _0x3dbb2c(_0x48674a-0xd,_0x55d197- -0x340,_0x55d197-0xb6,_0x48674a);}switch(this[_0x5900ae(-_0x3f1cc3._0x21cc4d,-_0x3f1cc3._0x206f3d,-0x92,-0x164)]){case'anthropic-messages':return this['getAnthropicDelegate']()[_0x5900ae(-0x151,-0x10d,-0x1e3,-0xe7)](_0x208678,_0x55ba9f);case _0x5900ae(-_0x3f1cc3._0x28cf9a,-0x302,-0x1f7,-_0x3f1cc3._0x31daca):return this['getOpenAiDelegate']()['responseStream'](_0x208678,_0x55ba9f);case _0x5900ae(-0x1d4,-0x99,-_0x3f1cc3._0x2e0ae7,-_0x3f1cc3._0x53d58d):return this[_0x969962(_0x3f1cc3._0x5d4768,0x451,0x432,_0x3f1cc3._0x144d2e)]()[_0x969962(_0x3f1cc3._0x5c95f6,_0x3f1cc3._0x53fcb4,0x4de,0x4c3)](_0x208678,_0x55ba9f);default:return this[_0x5900ae(-0x155,-0x190,-_0x3f1cc3._0x714f10,-_0x3f1cc3._0x2952e7)]()[_0x5900ae(-0x278,-_0x3f1cc3._0x1cb706,-_0x3f1cc3._0x195095,-_0x3f1cc3._0xb8b983)](_0x208678,_0x55ba9f);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x3dbb2c(0x235,0x322,0x260,0x326)];[_0x3dbb2c(0x285,0x1cf,0x1c1,0x16d)];[_0x5b3424(-0x331,-0x298,-0x2a9,-0x307)];[_0x5b3424(-0x149,-0x1bf,-0x2a5,-0x153)];[_0x3dbb2c(0x42,0x14e,0x20e,0x19f)];constructor(_0x1d5928){const _0x1d4e23={_0x2e643a:0x27d,_0x4774bf:0x3c0,_0x5af87d:0x486,_0xff6783:0x48d,_0x112871:0x2b0,_0x59c726:0x21d,_0x26c394:0x1ed,_0x533be2:0x1cb,_0x341894:0x107,_0x349c72:0x1bd,_0x199fae:0x2b5,_0x1bd741:0x3e,_0x342178:0x32,_0xd6debc:0x4d},_0x476dd5={_0x35ce38:0x110};this[_0x10d367(0x212,0x31f,_0x1d4e23._0x2e643a,0x2c8)]=_0x1d5928[_0x5b6a2f(_0x1d4e23._0x4774bf,_0x1d4e23._0x5af87d,0x393,_0x1d4e23._0xff6783)];function _0x10d367(_0x6587a,_0xa9867d,_0x76cec3,_0x5c5f98){return _0x3dbb2c(_0x6587a-0x182,_0x6587a- -_0x476dd5._0x35ce38,_0x76cec3-0x19c,_0xa9867d);}this[_0x5b6a2f(0x26d,_0x1d4e23._0x112871,0x21d,0x1b2)]=trimTrailingSlashes2(_0x1d5928[_0x5b6a2f(0x26d,0x254,0x172,_0x1d4e23._0x59c726)]),this[_0x5b6a2f(0x1dc,0x165,_0x1d4e23._0x26c394,_0x1d4e23._0x533be2)]=_0x1d5928['fetch'];function _0x5b6a2f(_0x4f8a50,_0x25e2e7,_0x5aa952,_0x8b50f1){return _0x3dbb2c(_0x4f8a50-0x30,_0x4f8a50-0x9e,_0x5aa952-0x1c9,_0x5aa952);}this[_0x10d367(_0x1d4e23._0x341894,_0x1d4e23._0x349c72,0x156,0x1bd)]=trimTrailingSlashes2(_0x1d5928[_0x5b6a2f(_0x1d4e23._0x199fae,0x3a1,0x255,0x288)]),this[_0x10d367(_0x1d4e23._0x1bd741,0x111,0xb5,_0x1d4e23._0x342178)]=_0x1d5928[_0x10d367(0x3e,0x13b,0x139,-_0x1d4e23._0xd6debc)];}async[_0x5b3424(-0x1dc,-0x284,-0x2e2,-0x2fd)](_0x5a360c){const _0x4dd284={_0x282ecc:0x32d,_0x36a879:0x223,_0xa7b88d:0x177,_0x36aa7:0x137,_0x2405b2:0x1cc,_0x39938b:0x183,_0x5d1cfa:0x14a,_0x4b31fb:0xa7,_0x101e56:0x239,_0x2a6caa:0x312,_0x2c8fcf:0x2ad,_0x307967:0x4a,_0x2af2bc:0xb3,_0x48b866:0x104,_0x869033:0x196,_0x1c4b35:0x1fa,_0x36f76b:0x3af,_0x1682ad:0x2c4,_0x5f146c:0x367,_0x37550a:0x1fd,_0x143d52:0x29b,_0x49e194:0x2bd,_0xdbfe32:0x341,_0x1a382b:0x233,_0x4a8180:0x21b,_0xef2b9:0x2ed,_0x4925b1:0x2b2,_0x215baf:0x27b,_0x281fb5:0x27a,_0xf5d43b:0x21e},_0x4dd0f8={_0x2098fb:0x155,_0x164404:0x43a,_0x4fb339:0x1ae},_0x38c4cb={_0x58bd4f:0x197,_0x50bdd2:0x3a8,_0x400349:0x1f4};function _0x444b18(_0x376487,_0x379e31,_0x1715c9,_0x2ee7f2){return _0x5b3424(_0x376487-_0x38c4cb._0x58bd4f,_0x376487-_0x38c4cb._0x50bdd2,_0x1715c9-_0x38c4cb._0x400349,_0x2ee7f2);}const _0x2a1233=await this['fetchImpl'](this[_0x439bbe(-_0x4dd284._0x282ecc,-0x29b,-_0x4dd284._0x36a879,-_0x4dd284._0xa7b88d)]+_0x444b18(_0x4dd284._0x36aa7,_0x4dd284._0x2405b2,_0x4dd284._0x39938b,0x178),{'method':_0x444b18(_0x4dd284._0x5d1cfa,_0x4dd284._0x4b31fb,0xf6,_0x4dd284._0x101e56),'headers':new Headers({'accept':'application/json','authorization':_0x439bbe(-_0x4dd284._0x2a6caa,-0x2cc,-_0x4dd284._0x2c8fcf,-0x394)+this[_0x439bbe(-0x195,-_0x4dd284._0x307967,-0x118,-_0x4dd284._0x2af2bc)],'editor-version':'vscode/1.106.1','user-agent':_0x439bbe(-_0x4dd284._0x48b866,-0x1e0,-_0x4dd284._0x869033,-0x18f),'x-github-api-version':this['tokenExchangeApiVersion']}),'signal':_0x5a360c});if(!_0x2a1233['ok'])return{'credential':{'kind':_0x439bbe(-_0x4dd284._0x1c4b35,-_0x4dd284._0x36f76b,-_0x4dd284._0x1682ad,-0x29c),'value':this[_0x444b18(0x2f4,0x34f,0x2ac,_0x4dd284._0x5f146c)]},'endpoints':{'api':this[_0x439bbe(-_0x4dd284._0x37550a,-_0x4dd284._0x143d52,-0x26b,-_0x4dd284._0x49e194)]}};const _0x38ca2c=await _0x2a1233['json']();function _0x439bbe(_0x1fb8c6,_0x543bde,_0x4e37a3,_0x57a95c){return _0x3dbb2c(_0x1fb8c6-_0x4dd0f8._0x2098fb,_0x4e37a3- -_0x4dd0f8._0x164404,_0x4e37a3-_0x4dd0f8._0x4fb339,_0x57a95c);}return{'credential':{'kind':'session-token','value':_0x38ca2c[_0x444b18(0x109,0x5e,0x171,0x16f)]??this[_0x444b18(0x2f4,0x2c9,_0x4dd284._0xdbfe32,0x222)]},'endpoints':{'api':_0x38ca2c['endpoints']?.[_0x444b18(0x2aa,0x2d6,0x394,0x1cb)]??this['baseUrl'],'originTracker':_0x38ca2c['endpoints']?.['origin-tracker'],'proxy':_0x38ca2c[_0x444b18(_0x4dd284._0x1a382b,_0x4dd284._0x4a8180,_0x4dd284._0xef2b9,_0x4dd284._0x4925b1)]?.[_0x439bbe(-_0x4dd284._0x215baf,-0x226,-_0x4dd284._0x281fb5,-0x29c)],'telemetry':_0x38ca2c['endpoints']?.[_0x439bbe(-0x186,-0x2f7,-_0x4dd284._0xf5d43b,-0x154)]}};}},GitHubAnthropicSessionResolver=class{constructor(_0x46e136){const _0x409cd9={_0x2b6dac:0xf},_0x4fac18={_0x41d288:0x141,_0x999ffe:0x2c3};function _0x5b8606(_0x3a2fee,_0xa4b75a,_0x251db0,_0x38a330){return _0x5b3424(_0x3a2fee-_0x4fac18._0x41d288,_0x251db0-_0x4fac18._0x999ffe,_0x251db0-0xc4,_0x3a2fee);}this[_0x5b8606(_0x409cd9._0x2b6dac,0x1d8,0xd8,0x184)]=_0x46e136;}async[_0x3dbb2c(0x71,0x152,0x241,0x68)](_0x42c2ab){const _0x2cf091={_0x28f3fb:0x3d7,_0x4e8fab:0x25c,_0x40f073:0x2be,_0xfeb67d:0x2f8,_0x121091:0xd8,_0x318334:0x25,_0x11e745:0x1,_0x266e2a:0x31},_0x2256b3={_0x9ac82a:0x57c,_0x1bf502:0x120},_0x19d172={_0x392363:0xba,_0x1c6ca0:0x1a6},_0x3f79fd=await this['resolver'][_0x2234cc(_0x2cf091._0x28f3fb,_0x2cf091._0x4e8fab,_0x2cf091._0x40f073,_0x2cf091._0xfeb67d)](_0x42c2ab),_0x5d4d8f=_0x3f79fd['endpoints']?.[_0x5ec954(_0x2cf091._0x121091,-_0x2cf091._0x318334,0x4e,0x3f)];if(!_0x5d4d8f)return structuredClone(_0x3f79fd);function _0x5ec954(_0x304aa0,_0x553ed0,_0x4253d1,_0x3a55be){return _0x3dbb2c(_0x304aa0-_0x19d172._0x392363,_0x3a55be- -0x299,_0x4253d1-_0x19d172._0x1c6ca0,_0x304aa0);}function _0x2234cc(_0x21702c,_0x46eab0,_0x10fbf2,_0x2b969a){return _0x5b3424(_0x21702c-0x67,_0x2b969a-_0x2256b3._0x9ac82a,_0x10fbf2-_0x2256b3._0x1bf502,_0x21702c);}return{..._0x3f79fd,'endpoints':{..._0x3f79fd['endpoints'],'api':trimTrailingSlashes2(_0x5d4d8f)+_0x5ec954(0x12e,-0x2,-_0x2cf091._0x11e745,_0x2cf091._0x266e2a)}};}[_0x3dbb2c(0x2d8,0x23a,0x22e,0x17b)](){const _0x416a70={_0x3d3707:0x30e},_0x21d581={_0x482b67:0x159,_0x489784:0x1d4};function _0x1a1010(_0x278009,_0x5d3ece,_0x253e2f,_0xc56519){return _0x5b3424(_0x278009-_0x21d581._0x482b67,_0x278009-0x57c,_0x253e2f-_0x21d581._0x489784,_0x5d3ece);}this[_0x1a1010(0x391,0x286,_0x416a70._0x3d3707,0x33f)]['invalidate']?.();}};function trimTrailingSlashes2(_0x3d31c3){const _0x559b54={_0x20d358:0x138,_0x37e6b1:0xc2,_0x48a1aa:0x7};function _0x50401c(_0xdbfb4b,_0xb155bc,_0x536bb0,_0x214ed9){return _0x5b3424(_0xdbfb4b-0x1da,_0x214ed9-0x6,_0x536bb0-0x15,_0xdbfb4b);}return _0x3d31c3[_0x50401c(-_0x559b54._0x20d358,-_0x559b54._0x37e6b1,_0x559b54._0x48a1aa,-0xdb)](/\/+$/,'');}function createModelInfo(_0xe22490){const _0x1a1d72={_0x4338b3:0x1d6,_0x112eec:0x26a,_0x407aa9:0x221,_0x2f967a:0x12b,_0x3d5077:0x8a,_0x26628a:0x268,_0xf4e78d:0x19b,_0x5af758:0x16c,_0x4de0f5:0x17c,_0x3f07a6:0x1e2,_0x188bcc:0x190,_0x199e16:0x1a8,_0x356585:0x2d2,_0x4fe4c6:0x27e,_0x2d34e7:0x231,_0x1005f8:0x104},_0x4dde11={_0x1abc86:0xf7,_0x285c9c:0xd1},_0x237cbc={_0x533fa:0x7c,_0x273525:0x38d},_0x553c23=_0xe22490[_0x573dbb(_0x1a1d72._0x4338b3,0x16b,_0x1a1d72._0x112eec,0x167)]??_0xe22490[_0x1e665b(0x2bc,0x283,0x2ba,_0x1a1d72._0x407aa9)],_0x2b2417=_0xe22490[_0x573dbb(0x117,_0x1a1d72._0x2f967a,_0x1a1d72._0x3d5077,0x1a7)]?.[_0x1e665b(_0x1a1d72._0x26628a,_0x1a1d72._0xf4e78d,0x235,_0x1a1d72._0x5af758)]?.[_0x573dbb(0xfe,_0x1a1d72._0x4de0f5,0x177,0x119)];function _0x573dbb(_0x573a0b,_0x2aa062,_0x5b95a2,_0x320b1c){return _0x5b3424(_0x573a0b-_0x237cbc._0x533fa,_0x2aa062-_0x237cbc._0x273525,_0x5b95a2-0x13f,_0x573a0b);}const _0xc84337=_0xe22490['capabilities']?.[_0x573dbb(_0x1a1d72._0x3f07a6,_0x1a1d72._0x188bcc,_0x1a1d72._0x199e16,0x292)]?.[_0x1e665b(0x203,_0x1a1d72._0x356585,0x22c,_0x1a1d72._0x4fe4c6)];function _0x1e665b(_0x28245c,_0xd77356,_0x4a579e,_0x3e5e89){return _0x5b3424(_0x28245c-_0x4dde11._0x1abc86,_0x3e5e89-0x369,_0x4a579e-_0x4dde11._0x285c9c,_0x4a579e);}const _0x338c75=_0x2b2417!==void 0x0||_0xc84337!==void 0x0?{..._0x2b2417!==void 0x0?{'contextWindow':_0x2b2417}:{},..._0xc84337!==void 0x0?{'maxOutput':_0xc84337}:{}}:void 0x0;return{'id':_0xe22490['id'],'name':_0xe22490[_0x1e665b(_0x1a1d72._0x2d34e7,0x11c,_0x1a1d72._0x1005f8,0x1ae)]??_0xe22490['id'],..._0x338c75?{'limits':_0x338c75}:{},..._0x553c23?{'supportedEndpoints':_0x553c23}:{}};}function deduplicateModels(_0x237a78){const _0x3134fe={_0x152eb8:0x22d,_0xc1d4cb:0x2a2,_0x285aa5:0x1d5,_0x256c22:0xc2,_0x58e697:0x6b,_0x30ecb8:0x184,_0x37a0c6:0xe5,_0x2f9fdc:0x8f,_0x23a2be:0x195,_0x49924d:0x70},_0x255528={_0x21044a:0x2c1},_0x3da438={_0x123453:0x59};function _0x233fdc(_0x276a07,_0x5b4a4f,_0x309cf8,_0x2bb128){return _0x3dbb2c(_0x276a07-0x22,_0x5b4a4f- -0x37c,_0x309cf8-_0x3da438._0x123453,_0x2bb128);}const _0x1ec938=new Map();function _0x31041a(_0x2c3216,_0x57796a,_0x1f2406,_0x17c9dc){return _0x5b3424(_0x2c3216-0x104,_0x17c9dc-_0x255528._0x21044a,_0x1f2406-0x1e3,_0x57796a);}for(const _0x37cbcf of _0x237a78){!_0x1ec938[_0x233fdc(-_0x3134fe._0x152eb8,-0x273,-_0x3134fe._0xc1d4cb,-_0x3134fe._0x285aa5)](_0x37cbcf['id'])&&_0x1ec938[_0x31041a(_0x3134fe._0x256c22,_0x3134fe._0x58e697,_0x3134fe._0x30ecb8,_0x3134fe._0x37a0c6)](_0x37cbcf['id'],_0x37cbcf);}return Array[_0x233fdc(0x54,-_0x3134fe._0x2f9fdc,0x5b,0x67)](_0x1ec938[_0x233fdc(-_0x3134fe._0x23a2be,-0x132,-0xe4,-_0x3134fe._0x49924d)]());}function hasUserPromptContent(_0x2e3a29){const _0xa6c550={_0x3a5f81:0x2dd,_0x1f3ff6:0x329,_0x53edf0:0x269,_0x201375:0x4cc,_0x9dec26:0x411,_0x2e7f0e:0x350,_0x341f73:0x519,_0x8d3d7a:0x408,_0x1b5c0b:0x331,_0x325e02:0x25d},_0x491a89={_0x55e630:0xd9,_0x26ab14:0x20,_0x1a72af:0x21e,_0xabd3ee:0x21d,_0x2f09ca:0x156,_0x4a6648:0x4d,_0x370549:0xbd,_0x3b78cb:0x3d0,_0x1a5945:0x291,_0x4a6c87:0x26b,_0x17abcd:0x2ce,_0x3e1f53:0x280,_0x3b83ac:0x233,_0x57f153:0x3a1},_0x266dc5={_0x3fc5d3:0x4d3,_0x2e30cc:0x176},_0x275c4e={_0x516ad3:0x24,_0x56b881:0x2aa};if(typeof _0x2e3a29===_0x383af6(_0xa6c550._0x3a5f81,_0xa6c550._0x1f3ff6,_0xa6c550._0x53edf0,0x204))return _0x2e3a29[_0x4febf8(_0xa6c550._0x201375,0x3c6,0x427,0x499)]()[_0x4febf8(0x360,_0xa6c550._0x9dec26,_0xa6c550._0x2e7f0e,0x320)]>0x0;function _0x4febf8(_0x5c7397,_0x3fa3da,_0x2c8791,_0x319d54){return _0x3dbb2c(_0x5c7397-_0x275c4e._0x516ad3,_0x3fa3da-_0x275c4e._0x56b881,_0x2c8791-0x28,_0x319d54);}if(!Array[_0x4febf8(_0xa6c550._0x341f73,0x436,0x47c,_0xa6c550._0x8d3d7a)](_0x2e3a29))return![];function _0x383af6(_0x459961,_0x58f65c,_0x43d25f,_0x367023){return _0x5b3424(_0x459961-0xdb,_0x43d25f-_0x266dc5._0x3fc5d3,_0x43d25f-_0x266dc5._0x2e30cc,_0x367023);}return _0x2e3a29[_0x383af6(0x1f5,_0xa6c550._0x1b5c0b,_0xa6c550._0x325e02,0x2fd)](_0x396644=>{const _0x14163a={_0x50be63:0x55,_0x203674:0x141,_0x147cb7:0x386},_0x522e79={_0xd77085:0x4};if(!_0x396644||typeof _0x396644!==_0x4daf3d(_0x491a89._0x55e630,-0x87,-0x110,-_0x491a89._0x26ab14))return![];const _0x5d68b7=_0x396644;function _0x217ead(_0x201679,_0x453bdc,_0x2f2709,_0x31fc08){return _0x383af6(_0x201679-_0x522e79._0xd77085,_0x453bdc-0x150,_0x2f2709- -0x534,_0x31fc08);}function _0x4daf3d(_0x114398,_0x429ec6,_0x2cb122,_0x5bcbe7){return _0x383af6(_0x114398-_0x14163a._0x50be63,_0x429ec6-_0x14163a._0x203674,_0x5bcbe7- -_0x14163a._0x147cb7,_0x429ec6);}return(_0x5d68b7['type']==='input_text'||_0x5d68b7[_0x217ead(-0x3e9,-_0x491a89._0x1a72af,-0x303,-_0x491a89._0xabd3ee)]===_0x4daf3d(-0x1be,-_0x491a89._0x2f09ca,_0x491a89._0x4a6648,-_0x491a89._0x370549))&&typeof _0x5d68b7['text']===_0x217ead(-0x2e0,-0x32a,-0x2cb,-_0x491a89._0x3b78cb)&&_0x5d68b7[_0x217ead(-_0x491a89._0x1a5945,-0x28e,-_0x491a89._0x4a6c87,-_0x491a89._0x17abcd)][_0x217ead(-_0x491a89._0x3e1f53,-0x357,-0x31b,-0x28f)]()[_0x217ead(-_0x491a89._0x3b83ac,-0x20b,-0x2d0,-_0x491a89._0x57f153)]>0x0;});}function _isUserPromptEntry(_0x13aee1){const _0x2412d4={_0x842a40:0xff,_0x5dff3b:0x152,_0x2e674f:0x89,_0x3a6eec:0x5cc,_0x20f728:0x65c,_0x196e69:0x511,_0x305674:0x48c,_0x26e092:0x53b,_0x3134d7:0x10c,_0x9ed4ee:0x4a7},_0x3c9cc7={_0x57bd0f:0x137,_0x13235c:0x2e0,_0x5ce2bc:0xf0};if(!_0x13aee1||typeof _0x13aee1!==_0x52b1ec(_0x2412d4._0x842a40,_0x2412d4._0x5dff3b,_0x2412d4._0x2e674f,0xf4))return![];const _0x57efb5=_0x13aee1;if(_0x57efb5[_0x41a654(0x578,_0x2412d4._0x3a6eec,_0x2412d4._0x20f728,_0x2412d4._0x196e69)]!==_0x41a654(_0x2412d4._0x305674,0x44f,_0x2412d4._0x26e092,0x3ed))return![];if(_0x57efb5['type']!==void 0x0&&_0x57efb5[_0x52b1ec(-0xc6,-0x34,-0xac,-_0x2412d4._0x3134d7)]!==_0x41a654(0x520,0x52c,_0x2412d4._0x9ed4ee,0x513))return![];function _0x41a654(_0x5438c6,_0x679f75,_0x19ca96,_0x2ab7be){return _0x3dbb2c(_0x5438c6-_0x3c9cc7._0x57bd0f,_0x5438c6-_0x3c9cc7._0x13235c,_0x19ca96-_0x3c9cc7._0x5ce2bc,_0x2ab7be);}function _0x52b1ec(_0xb684b,_0x2558cc,_0xf98ebf,_0x194be8){return _0x5b3424(_0xb684b-0x1b9,_0xf98ebf-0x1f6,_0xf98ebf-0xde,_0xb684b);}return hasUserPromptContent(_0x57efb5['content']);}function determineInitiator(_0xd8c2d6){const _0x376724={_0x242020:0x37,_0x4900b0:0xc2,_0x28363d:0x1d7,_0x4cc4bd:0x188,_0x678e2f:0x261,_0x39d5f9:0x20e,_0x2fbca8:0x182,_0x452461:0x73,_0x545f27:0x50,_0x2e81a8:0x150,_0x1f63ec:0x25b,_0x1c526:0x214,_0x18cc7a:0x237,_0x3083f4:0x27a,_0x34038e:0x1ce,_0x2d7349:0x115},_0x5352bb={_0x127874:0x1f4},_0x45b7b7={_0xf4da95:0x158,_0x45ad7f:0x37b};function _0x409c8a(_0x1a9481,_0x2ab025,_0x8e02f4,_0x1f382e){return _0x3dbb2c(_0x1a9481-_0x45b7b7._0xf4da95,_0x2ab025- -_0x45b7b7._0x45ad7f,_0x8e02f4-0x133,_0x1f382e);}if(!_0xd8c2d6||typeof _0xd8c2d6!=='object')return _0x1ab9b2(_0x376724._0x242020,-0x50,0xef,-_0x376724._0x4900b0);const _0x2efce3='messages'in _0xd8c2d6?_0xd8c2d6[_0x409c8a(0x0,-0x101,-0x26,-_0x376724._0x28363d)]:_0x409c8a(-0x246,-_0x376724._0x4cc4bd,-_0x376724._0x678e2f,-_0x376724._0x39d5f9)in _0xd8c2d6?_0xd8c2d6['input']:void 0x0;if(!Array['isArray'](_0x2efce3)||_0x2efce3[_0x1ab9b2(-0x8d,-_0x376724._0x2fbca8,0x47,_0x376724._0x452461)]===0x0)return _0x409c8a(-_0x376724._0x545f27,-_0x376724._0x2e81a8,-0x17d,-_0x376724._0x1f63ec);function _0x1ab9b2(_0x15405c,_0x14e458,_0x41fece,_0x317833){return _0x3dbb2c(_0x15405c-0x18f,_0x15405c- -_0x5352bb._0x127874,_0x41fece-0x194,_0x14e458);}return _isUserPromptEntry(_0x2efce3[_0x2efce3[_0x409c8a(-0x139,-_0x376724._0x1c526,-0x24b,-_0x376724._0x18cc7a)]-0x1])?_0x409c8a(-0x11e,-0x1cf,-_0x376724._0x3083f4,-_0x376724._0x34038e):_0x1ab9b2(_0x376724._0x242020,0x8e,-0x39,_0x376724._0x2d7349);}function isUnsupportedApiForModel(_0xce75e7){const _0x310ff4={_0x5d001:0x2cc,_0x3217e8:0x1c8,_0x6dc0c7:0x399,_0x97edfc:0x357},_0x5eed82={_0x19f5d2:0x16e};function _0x3d8227(_0x4de378,_0xf9d766,_0xb570dd,_0x51b259){return _0x5b3424(_0x4de378-_0x5eed82._0x19f5d2,_0xf9d766-0x46d,_0xb570dd-0x52,_0x4de378);}function _0x41a574(_0x4c2ccd,_0x4fcb65,_0x514532,_0x58f2e9){return _0x5b3424(_0x4c2ccd-0x192,_0x4fcb65-0x55a,_0x514532-0x150,_0x4c2ccd);}return _0xce75e7[_0x3d8227(0x224,_0x310ff4._0x5d001,_0x310ff4._0x3217e8,0x204)](_0x3d8227(_0x310ff4._0x6dc0c7,_0x310ff4._0x97edfc,0x3da,0x37d));}function createResponseError(_0x4b90a0,_0x2412bc){const _0x5b7f3e={_0x50ec26:0x1bd,_0x26dc61:0xbe,_0x3176de:0xcf,_0x53d598:0x3e,_0x1f4d4a:0x60,_0x2ddaea:0xb0,_0x4f36ba:0x4c,_0x4b370e:0x7f},_0x3d279f={_0x5f43ee:0x183},_0x45319f={_0x3c3ca0:0x141,_0x51484b:0x117};if(_0x4b90a0===0x191||_0x4b90a0===0x193)return new Error(_0x320612(-_0x5b7f3e._0x50ec26,-0x27a,-0x24c,-0x1e5));if(_0x4b90a0===0x198||_0x4b90a0===0x1ad)return new Error(_0x320612(-_0x5b7f3e._0x26dc61,-0xcf,-_0x5b7f3e._0x3176de,-_0x5b7f3e._0x53d598));function _0x320612(_0x4f1755,_0x2ebf05,_0x879655,_0x20ed72){return _0x3dbb2c(_0x4f1755-_0x45319f._0x3c3ca0,_0x4f1755- -0x30d,_0x879655-_0x45319f._0x51484b,_0x879655);}function _0x126157(_0x4da53f,_0x36d818,_0x282613,_0x5e99d5){return _0x3dbb2c(_0x4da53f-0xee,_0x5e99d5- -0x335,_0x282613-_0x3d279f._0x5f43ee,_0x282613);}if(_0x4b90a0===0x190)return new Error('Invalid\x20request:\x20'+_0x2412bc);return new Error(_0x2412bc||_0x126157(-_0x5b7f3e._0x1f4d4a,-_0x5b7f3e._0x2ddaea,-_0x5b7f3e._0x4f36ba,-_0x5b7f3e._0x4b370e)+_0x4b90a0);}var GitHubModel=class extends OpenAiModel{[_0x5b3424(-0x226,-0x201,-0x28b,-0x118)];['modelEndpointCache']=new Map();['surface'];constructor(_0x14089b={}){const _0x1f6c25={_0x5e77dd:0x52a,_0x3f0414:0x52c,_0x4bc572:0x603,_0x46dbd3:0x5f9,_0x32d229:0x5a8,_0x30e97c:0x510,_0x2b2942:0x623,_0xfe05b4:0x522,_0x5ae390:0x545,_0x437e45:0x65f,_0xe4bafc:0x67d,_0x58ab44:0x627,_0x3d5319:0x55a,_0x20c774:0x693,_0x9480d2:0x5db,_0xbbf587:0x531,_0x38ee8b:0x49d,_0x512871:0x423,_0x1aa453:0x4ea,_0x2db666:0x63a,_0x3fdd91:0x6f3,_0x4364e3:0x598,_0x10328a:0x64a,_0x52ff8f:0x4cc,_0x3ba586:0x512,_0x353560:0x56e,_0x180c86:0x57e,_0x32de54:0x52d,_0x25fd18:0x4d9,_0x57f296:0x536,_0xe6521c:0x4f8,_0x2851ce:0x4f3,_0x936668:0x52c,_0x18e3f6:0x4fd,_0x142870:0x498,_0x273203:0x584,_0x9c5be1:0x5a9,_0x9e4953:0x672,_0x470f42:0x484,_0x4a783f:0x4f1,_0x1c9a8a:0x62b,_0x98577e:0x5b9,_0x5c3d96:0x6db,_0x1970fe:0x67e,_0x5dc76d:0x642,_0x1a25d5:0x5e3,_0x28eec2:0x507,_0x87fe23:0x541,_0x393932:0x47c,_0xb182aa:0x533,_0x4e0892:0x559,_0x531ce6:0x523,_0x478b3e:0x55e,_0x529e14:0x5b9,_0xeaa5e6:0x526,_0x11e094:0x5e7,_0x6336cc:0x4b5,_0x54ad5d:0x4eb,_0x2fde02:0x503,_0x2a935a:0x46b,_0x57a742:0x69b},_0x4de545={_0x2a4579:0x1b9,_0x5b8583:0x50},_0x7b83f5={_0x12f9b2:0x1a1},_0x50ddc3=trimTrailingSlashes2(_0x14089b[_0x27974d(_0x1f6c25._0x5e77dd,0x5f7,0x632,_0x1f6c25._0x3f0414)]??_0x27974d(_0x1f6c25._0x4bc572,0x706,0x605,_0x1f6c25._0x46dbd3)),_0x5a9cc4=_0x14089b[_0x27974d(_0x1f6c25._0x32d229,0x60b,0x4fd,_0x1f6c25._0x30e97c)]??globalThis[_0x27974d(_0x1f6c25._0x32d229,0x5cf,0x659,_0x1f6c25._0x2b2942)],_0x5651d1=_0x14089b[_0x27974d(_0x1f6c25._0xfe05b4,0x45b,0x558,_0x1f6c25._0x5ae390)]??(_0x14089b[_0x27974d(0x67d,0x654,0x65c,_0x1f6c25._0x437e45)]?new GitHubAccessTokenResolver({'accessToken':_0x14089b[_0x27974d(_0x1f6c25._0xe4bafc,0x5ee,0x5d1,0x70f)],'baseUrl':_0x50ddc3,'fetch':_0x5a9cc4,'githubApiUrl':_0x14089b['githubApiUrl']??_0x27974d(0x59c,_0x1f6c25._0x58ab44,0x55c,_0x1f6c25._0x3d5319),'tokenExchangeApiVersion':_0x14089b['tokenExchangeApiVersion']??_0x2525bc(_0x1f6c25._0x20c774,_0x1f6c25._0x9480d2,0x684,0x4d6)}):void 0x0),_0x2eac4d=_0x14089b['editorVersion']??_0x27974d(_0x1f6c25._0xbbf587,_0x1f6c25._0x38ee8b,_0x1f6c25._0x512871,_0x1f6c25._0x1aa453),_0x4ee979=_0x14089b[_0x27974d(_0x1f6c25._0x2db666,_0x1f6c25._0x3fdd91,_0x1f6c25._0x4364e3,_0x1f6c25._0x10328a)]??'copilot-chat/0.31.3',_0x3fdaa8=({body:_0x1302c8})=>{return{'editor-plugin-version':_0x4ee979,'editor-version':_0x2eac4d,'x-initiator':determineInitiator(_0x1302c8),'x-request-id':randomUUID()};},_0x1309c1=_0x50ddc3+'/v1',_0x208335=_0x5651d1?new GitHubAnthropicSessionResolver(_0x5651d1):void 0x0,_0x1b4640={'apiKey':_0x14089b[_0x27974d(0x541,0x4d4,_0x1f6c25._0x52ff8f,_0x1f6c25._0x3ba586)],'baseUrl':_0x50ddc3,'fetch':_0x5a9cc4,'maxTokens':_0x14089b['maxTokens'],'model':_0x14089b[_0x27974d(0x55e,0x452,_0x1f6c25._0x353560,_0x1f6c25._0x180c86)],'modelIdentity':_0x14089b[_0x27974d(_0x1f6c25._0x32de54,_0x1f6c25._0x25fd18,0x594,_0x1f6c25._0x57f296)],..._0x14089b[_0x2525bc(_0x1f6c25._0xe6521c,0x503,0x4bf,_0x1f6c25._0x2851ce)]!==void 0x0?{'pricingProviderId':_0x14089b[_0x27974d(_0x1f6c25._0x936668,_0x1f6c25._0x18e3f6,0x470,_0x1f6c25._0x142870)]}:{},'reasoning':_0x14089b[_0x27974d(0x628,0x728,0x729,_0x1f6c25._0x273203)],'providerSessionResolver':_0x5651d1,'requestMutators':_0x14089b[_0x2525bc(0x61b,_0x1f6c25._0x9c5be1,0x53c,_0x1f6c25._0x9e4953)],'headerResolver':_0x3fdaa8,..._0x14089b[_0x2525bc(_0x1f6c25._0x470f42,0x493,_0x1f6c25._0x4a783f,0x58e)]?{'webSocketFactory':_0x14089b['webSocketFactory']}:{}};function _0x27974d(_0x45325d,_0xf06d37,_0x13cc85,_0x1c1356){return _0x5b3424(_0x45325d-_0x7b83f5._0x12f9b2,_0x45325d-0x731,_0x13cc85-0x188,_0x1c1356);}super(_0x1b4640),this['surface']=_0x14089b[_0x2525bc(_0x1f6c25._0x1c9a8a,0x5e0,_0x1f6c25._0x98577e,_0x1f6c25._0x5c3d96)]??_0x2525bc(0x5b3,0x590,_0x1f6c25._0x1970fe,_0x1f6c25._0x5dc76d);function _0x2525bc(_0x1d5f70,_0x1729ff,_0x58e618,_0x2bc29e){return _0x5b3424(_0x1d5f70-_0x4de545._0x2a4579,_0x1729ff-0x708,_0x58e618-_0x4de545._0x5b8583,_0x2bc29e);}this[_0x2525bc(_0x1f6c25._0x1a25d5,_0x1f6c25._0x28eec2,0x492,0x479)]=new AnthropicModel({'apiKey':_0x14089b[_0x27974d(_0x1f6c25._0x87fe23,0x57d,_0x1f6c25._0x393932,_0x1f6c25._0xb182aa)],'authScheme':'bearer','baseUrl':_0x1309c1,'fetch':_0x5a9cc4,'headerResolver':_0x3fdaa8,'maxTokens':_0x14089b[_0x2525bc(_0x1f6c25._0x4e0892,0x615,_0x1f6c25._0x531ce6,0x659)],'model':_0x14089b[_0x27974d(_0x1f6c25._0x478b3e,_0x1f6c25._0x529e14,_0x1f6c25._0xeaa5e6,_0x1f6c25._0x11e094)],'modelIdentity':_0x14089b[_0x2525bc(_0x1f6c25._0x6336cc,0x504,0x442,0x427)],..._0x14089b[_0x2525bc(_0x1f6c25._0x54ad5d,_0x1f6c25._0x2fde02,_0x1f6c25._0x2a935a,0x5c2)]!==void 0x0?{'pricingProviderId':_0x14089b['pricingProviderId']}:{},'reasoning':_0x14089b[_0x2525bc(0x5dd,0x5ff,_0x1f6c25._0x57a742,0x5c1)],'providerSessionResolver':_0x208335,'requestMutators':_0x14089b['requestMutators']});}[_0x3dbb2c(0x197,0x117,0x1b7,0x2a)](){const _0x1bdf62={_0x50a88b:0x9a,_0x693bb9:0x146},_0x4521a3={_0x5c02eb:0xcc};function _0x2a6a79(_0x52f983,_0x4478d5,_0x56519d,_0x246fe8){return _0x3dbb2c(_0x52f983-_0x4521a3._0x5c02eb,_0x52f983- -0x1b0,_0x56519d-0x19f,_0x246fe8);}return new Error(_0x2a6a79(-0x6b,0x2b,_0x1bdf62._0x50a88b,-_0x1bdf62._0x693bb9));}['usesResponsesApi'](_0x444ec6){const _0x59c431={_0x3389f6:0x31c,_0x505684:0x33d,_0x197a9d:0x28e,_0x457d31:0x265,_0x32b19a:0x305,_0x143da4:0x409,_0x494961:0x538,_0x300b18:0x4ee},_0x33a430={_0x57a6ec:0xac};function _0x5852df(_0x13c0a8,_0x2056df,_0xb5ef51,_0x511556){return _0x5b3424(_0x13c0a8-0x174,_0xb5ef51-0x4a6,_0xb5ef51-_0x33a430._0x57a6ec,_0x13c0a8);}const _0x20e7fa=this[_0x5852df(_0x59c431._0x3389f6,0x3f4,_0x59c431._0x505684,0x3ac)]['get'](_0x444ec6);function _0x321062(_0x5ae761,_0x31f238,_0x39bb85,_0x1e382b){return _0x5b3424(_0x5ae761-0xf9,_0x39bb85-0x6a2,_0x39bb85-0x16f,_0x31f238);}if(!_0x20e7fa)return![];return!_0x20e7fa[_0x5852df(_0x59c431._0x197a9d,0x2a3,0x305,0x214)](_0x5852df(_0x59c431._0x457d31,0x38f,0x286,0x36f))&&_0x20e7fa[_0x5852df(0x3bb,0x30c,_0x59c431._0x32b19a,0x244)](_0x321062(_0x59c431._0x143da4,_0x59c431._0x494961,0x439,_0x59c431._0x300b18));}[_0x5b3424(-0xe0,-0xdd,-0x1cc,-0x185)](_0x5e1154){const _0xba379e={_0x530c4b:0x33,_0x4f015a:0x35,_0x2326e8:0xda,_0xd443c2:0xba,_0x453d50:0x4,_0x5aa48f:0xa7,_0x537bf0:0xcc,_0x3c6d9e:0x1c,_0x51f364:0xef,_0x15fb70:0xcd,_0x1f9871:0x18,_0x395534:0x49,_0x1ec41d:0x87},_0x33f54d={_0x101834:0xab},_0x472db3={_0x35bf24:0x1e5},_0x306459=this[_0x1c6f12(_0xba379e._0x530c4b,0xe0,_0xba379e._0x4f015a,0x34)][_0x1c6f12(_0xba379e._0x2326e8,0x1bd,-0x34,_0xba379e._0xd443c2)](_0x5e1154['model']);if(!_0x306459)return![];function _0x19d8ea(_0x2d5bb6,_0x44de3a,_0x15539a,_0xd5973a){return _0x5b3424(_0x2d5bb6-0x195,_0xd5973a-0xa3,_0x15539a-_0x472db3._0x35bf24,_0x44de3a);}function _0x1c6f12(_0xdd9412,_0x24d576,_0x32dd10,_0x5cef15){return _0x3dbb2c(_0xdd9412-0x74,_0x5cef15- -0x239,_0x32dd10-_0x33f54d._0x101834,_0x32dd10);}if(resolveOpenAiReasoningConfig(_0x5e1154['reasoning']))return _0x306459[_0x1c6f12(-0xfa,-0x2a,-0xa2,-_0xba379e._0x453d50)](_0x1c6f12(-_0xba379e._0x5aa48f,-0x89,-0x46,-_0xba379e._0x537bf0));return this[_0x19d8ea(-0x1cf,_0xba379e._0x3c6d9e,-_0xba379e._0x51f364,-_0xba379e._0x15fb70)](_0x5e1154[_0x1c6f12(-_0xba379e._0x1f9871,_0xba379e._0x395534,_0xba379e._0x1ec41d,-0x36)]);}['markModelAsResponsesOnly'](_0x16ac35){const _0x1bb27f={_0x3d6758:0x450,_0x14e83b:0x7e,_0x41ac79:0x30,_0x409efc:0x58,_0x4efb94:0x137,_0xf27e26:0x36e,_0x1affc9:0x4b8,_0x2f90ea:0x3a9},_0x49c160={_0x24eb46:0x15,_0x59f50d:0x15e},_0x1fb10={_0x6f1648:0x68,_0x138872:0x278};function _0x4d4ef7(_0x5ac96e,_0x3cee15,_0x45b03e,_0x258358){return _0x3dbb2c(_0x5ac96e-_0x1fb10._0x6f1648,_0x5ac96e- -_0x1fb10._0x138872,_0x45b03e-0x194,_0x258358);}function _0x4982aa(_0x5e8819,_0x42818c,_0x2eb563,_0x56fe1c){return _0x3dbb2c(_0x5e8819-_0x49c160._0x24eb46,_0x2eb563-0x28c,_0x2eb563-_0x49c160._0x59f50d,_0x42818c);}this[_0x4982aa(0x561,0x481,0x4f9,_0x1bb27f._0x3d6758)][_0x4d4ef7(-_0x1bb27f._0x14e83b,_0x1bb27f._0x41ac79,-_0x1bb27f._0x409efc,-_0x1bb27f._0x4efb94)](_0x16ac35,[_0x4982aa(_0x1bb27f._0xf27e26,_0x1bb27f._0x1affc9,0x3f9,_0x1bb27f._0x2f90ea)]);}[_0x5b3424(-0x15b,-0x1cb,-0x197,-0x27c)](_0x43e55e){const _0x104cbc={_0x42dc95:0x26c,_0x13eca3:0x1e2,_0x469e97:0x104,_0x28aa4a:0x26a,_0x261fb0:0x294,_0x54d68:0x1ea,_0x2c2fab:0x3c,_0x301d82:0x17f,_0x12ea81:0xba,_0x4f4874:0x6e},_0x5233ad={_0x174411:0x198},_0x29194f={_0x430f28:0x186};if(_0x43e55e instanceof OpenAiApiError)return createResponseError(_0x43e55e[_0x34f6e0(_0x104cbc._0x42dc95,0x20a,_0x104cbc._0x13eca3,_0x104cbc._0x469e97)],_0x43e55e[_0x34f6e0(_0x104cbc._0x28aa4a,_0x104cbc._0x261fb0,_0x104cbc._0x54d68,0x320)]||_0x43e55e[_0x4e9048(_0x104cbc._0x2c2fab,_0x104cbc._0x301d82,_0x104cbc._0x12ea81,_0x104cbc._0x4f4874)]);function _0x4e9048(_0x503e4c,_0x4d29d1,_0x432094,_0x2a87cc){return _0x3dbb2c(_0x503e4c-0x135,_0x432094- -_0x29194f._0x430f28,_0x432094-0x7,_0x4d29d1);}function _0x34f6e0(_0x32020f,_0x358298,_0x2d953a,_0x5d6307){return _0x3dbb2c(_0x32020f-0x1ac,_0x358298-0xc0,_0x2d953a-_0x5233ad._0x174411,_0x32020f);}return _0x43e55e;}[_0x3dbb2c(0x6d,0x179,0x270,0x16b)](_0x3a2274,_0x4f2b0d){const _0x5b2cd0={_0x22c5b3:0x41d,_0x4e1318:0x356,_0x3b7cb2:0x343,_0xbbfc74:0x3eb,_0x7d5368:0x37d,_0x5a6fc4:0x5,_0x4991e8:0x288,_0x275a2a:0x393,_0x2c0508:0x52a,_0x5977b1:0x105,_0x2eb9ca:0x74,_0x5ec7c4:0x9a,_0x84eee0:0x56,_0x1da04b:0x17,_0x240bcf:0xae,_0x5c286c:0x57,_0x234fd1:0x2a5,_0x129727:0x81,_0x451eea:0x18a,_0x4eda55:0x1ec,_0x3f86e3:0x6c,_0x511fde:0x30,_0x19acf9:0xf3,_0x2828c7:0x529},_0x2b4cdd={_0x53a151:0xb5,_0x569ee:0xb1},_0x413727={_0x1dcb67:0x24e};function _0x1bf9bd(_0x4768dc,_0x5037e8,_0x2a359f,_0x3b4f51){return _0x3dbb2c(_0x4768dc-0xe1,_0x4768dc- -_0x413727._0x1dcb67,_0x2a359f-0xed,_0x3b4f51);}function _0x41bb55(_0x470075,_0x51725a,_0x322584,_0x2cdf4c){return _0x3dbb2c(_0x470075-_0x2b4cdd._0x53a151,_0x470075-0x16f,_0x322584-_0x2b4cdd._0x569ee,_0x51725a);}switch(this[_0x41bb55(_0x5b2cd0._0x22c5b3,_0x5b2cd0._0x4e1318,_0x5b2cd0._0x3b7cb2,_0x5b2cd0._0xbbfc74)]){case _0x41bb55(0x29e,0x1aa,0x1db,_0x5b2cd0._0x7d5368):return this[_0x1bf9bd(-0x79,-0x176,-0x10f,-_0x5b2cd0._0x5a6fc4)][_0x41bb55(_0x5b2cd0._0x4991e8,_0x5b2cd0._0x275a2a,0x1de,0x2b3)](_0x3a2274,_0x4f2b0d);case'openai-chat-completions':return this[_0x41bb55(0x42b,_0x5b2cd0._0x2c0508,0x509,0x40d)](_0x3a2274,_0x4f2b0d);case _0x1bf9bd(-_0x5b2cd0._0x5977b1,-0x10,-0x150,-_0x5b2cd0._0x2eb9ca):return this[_0x1bf9bd(_0x5b2cd0._0x5ec7c4,0x121,-_0x5b2cd0._0x84eee0,0x126)](_0x3a2274,_0x4f2b0d);case _0x1bf9bd(-_0x5b2cd0._0x1da04b,-0xc3,_0x5b2cd0._0x240bcf,-_0x5b2cd0._0x5c286c):return this[_0x41bb55(0x389,_0x5b2cd0._0x234fd1,0x36e,0x43c)](_0x3a2274,_0x4f2b0d);case _0x1bf9bd(0x10,-0xb,0x9b,-_0x5b2cd0._0x129727):return this[_0x41bb55(0x288,_0x5b2cd0._0x451eea,0x212,_0x5b2cd0._0x4eda55)](_0x3a2274,_0x4f2b0d);}throw new Error(_0x1bf9bd(-0x44,-_0x5b2cd0._0x3f86e3,_0x5b2cd0._0x511fde,-_0x5b2cd0._0x19acf9)+String(this[_0x41bb55(_0x5b2cd0._0x22c5b3,_0x5b2cd0._0x2828c7,0x3de,0x452)]));}[_0x5b3424(-0x1ad,-0x105,-0x1ca,-0xbf)](_0x150e7a,_0x3f4da6){const _0x56a915={_0x15588b:0x52c,_0xf25bd9:0x4db,_0x5a46f7:0x187,_0x516190:0x28b,_0x3946e0:0x6b9,_0x25b01a:0x5e3,_0x27917c:0x5ee,_0x43aae9:0x47f,_0x12bac4:0x379,_0xb80ef0:0x487,_0x4f4e4d:0x263,_0x2fa685:0x258,_0x355125:0x2e8,_0x8aae61:0x582},_0x3f7828={_0x52fec8:0x146},_0x125a09={_0x249cc0:0x1e0};switch(this['surface']){case'anthropic-messages':return this[_0x444860(_0x56a915._0x15588b,0x4a3,_0x56a915._0xf25bd9,0x3a8)]['stream'](_0x150e7a,_0x3f4da6);case'openai-chat-completions':return this['chatStream'](_0x150e7a,_0x3f4da6);case _0x2c55a3(0x19f,0x280,_0x56a915._0x5a46f7,_0x56a915._0x516190):return this[_0x444860(_0x56a915._0x3946e0,0x5bf,_0x56a915._0x25b01a,_0x56a915._0x27917c)](_0x150e7a,_0x3f4da6);case _0x2c55a3(0x28d,_0x56a915._0x43aae9,0x288,_0x56a915._0x12bac4):return this['responseSocketStream'](_0x150e7a,_0x3f4da6);case _0x2c55a3(0x329,_0x56a915._0xb80ef0,0x3ad,0x3a0):return this[_0x2c55a3(_0x56a915._0x4f4e4d,_0x56a915._0x2fa685,_0x56a915._0x355125,0x29f)](_0x150e7a,_0x3f4da6);}function _0x444860(_0x1cddcb,_0x57df20,_0x3f0ea4,_0x3ec4d5){return _0x3dbb2c(_0x1cddcb-_0x125a09._0x249cc0,_0x57df20-0x2ce,_0x3f0ea4-0x19e,_0x3f0ea4);}function _0x2c55a3(_0x54c2ce,_0x595f54,_0x45fe7f,_0x42a5c0){return _0x3dbb2c(_0x54c2ce-_0x3f7828._0x52fec8,_0x42a5c0-0x142,_0x45fe7f-0x1eb,_0x54c2ce);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x444860(0x4ea,0x57c,0x5a3,_0x56a915._0x8aae61)]));}async[_0x3dbb2c(0xfa,0x119,0xb9,0x9c)](_0x3e9526,_0x583981){const _0x8d9008={_0x1717bd:0x13e,_0x2ad169:0xa5,_0x15541a:0xae,_0x4cf4ec:0x2cd,_0xc524c7:0x27f,_0xcd7fe7:0x210,_0x13fc3b:0x2eb,_0x5bc63a:0x27d,_0x42cfc0:0x329,_0x12d779:0x2f5,_0x311051:0x283,_0x324112:0xa6,_0x16a234:0x1d,_0x17a6aa:0x103,_0x2a4c79:0x102,_0x592032:0x108,_0x550df3:0x194,_0x584f03:0x1f4,_0x195dbe:0x1c8,_0x23cc4e:0x21b,_0x26deea:0x147,_0x240cb6:0x1f9,_0xa27a8b:0x1ff,_0x4bb173:0x229},_0x5e3273={_0x463981:0x3f5,_0x10d787:0xa9},_0x55c895=this[_0x270bd4(0x21d,_0x8d9008._0x1717bd,_0x8d9008._0x2ad169,_0x8d9008._0x15541a)](_0x3e9526);function _0x270bd4(_0x2b25b9,_0x56feee,_0x342c6d,_0x4f1cae){return _0x5b3424(_0x2b25b9-0x1dd,_0x56feee-_0x5e3273._0x463981,_0x342c6d-_0x5e3273._0x10d787,_0x2b25b9);}if(this[_0x270bd4(0x298,_0x8d9008._0x4cf4ec,_0x8d9008._0xc524c7,_0x8d9008._0xcd7fe7)]!==_0x270bd4(_0x8d9008._0x13fc3b,_0x8d9008._0x5bc63a,0x1a9,0x2fa))return this[_0x501932(-_0x8d9008._0x42cfc0,-0x1de,-_0x8d9008._0x12d779,-_0x8d9008._0x311051)](_0x55c895,_0x583981);if(this[_0x501932(-_0x8d9008._0x324112,-_0x8d9008._0x16a234,-0x1ed,-_0x8d9008._0x17a6aa)](_0x55c895))return this['response'](_0x55c895,_0x583981);function _0x501932(_0x50abaf,_0x5aec38,_0x4800f4,_0x3c6cda){return _0x5b3424(_0x50abaf-0x1ae,_0x3c6cda- -0x26,_0x4800f4-0x149,_0x4800f4);}try{return await this[_0x501932(-0x27c,-0xd2,-0x13d,-0x171)](_0x55c895,_0x583981);}catch(_0x5c14b4){if(_0x5c14b4 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x5c14b4[_0x270bd4(_0x8d9008._0x2a4c79,0x1f3,_0x8d9008._0x592032,0x160)]))return this[_0x501932(-0x151,-0x2d1,-_0x8d9008._0x550df3,-_0x8d9008._0x584f03)](_0x55c895[_0x501932(-_0x8d9008._0x195dbe,-_0x8d9008._0x23cc4e,-_0x8d9008._0x26deea,-_0x8d9008._0x240cb6)]),this[_0x270bd4(0x225,0x307,_0x8d9008._0xa27a8b,_0x8d9008._0x4bb173)](_0x55c895,_0x583981);throw this['mapApiError'](_0x5c14b4);}throw _0x5c14b4;}}async*[_0x3dbb2c(0x24e,0x15d,0x20b,0x21d)](_0x4d03ee,_0x2d11df){const _0xa03d35={_0x438737:0x33e,_0x51fff8:0x2da,_0x47f8c4:0x359,_0x17f003:0x592,_0x58f374:0x582,_0x3f1ce7:0x4ca,_0xc8804e:0x540,_0x52d04e:0x42a,_0x58a627:0x3e3,_0x21b918:0x3c4,_0x4f134f:0x211,_0x1a5be3:0x1d5,_0x81a441:0x18b,_0x480e5b:0x4e9,_0x4620b4:0x57a,_0x202f92:0x30d},_0x34ce64={_0x4f41f5:0x112,_0x13b06a:0x289,_0x280b2c:0x18d},_0x28c812=this['applyModelDefaults'](_0x4d03ee);function _0x37c908(_0x5509ae,_0x3ea65a,_0x387307,_0x47a9a5){return _0x3dbb2c(_0x5509ae-_0x34ce64._0x4f41f5,_0x47a9a5-_0x34ce64._0x13b06a,_0x387307-_0x34ce64._0x280b2c,_0x5509ae);}if(this[_0x21b39b(0x2c1,0x395,0x32a,_0xa03d35._0x438737)]!==_0x21b39b(0x2b5,0x272,_0xa03d35._0x51fff8,0x2ee)){yield*this[_0x21b39b(_0xa03d35._0x47f8c4,0x443,0x34d,0x35b)](_0x28c812,_0x2d11df);return;}if(this[_0x37c908(0x59d,_0xa03d35._0x17f003,0x476,_0xa03d35._0x58f374)](_0x28c812)){yield*this['responseStream'](_0x28c812,_0x2d11df);return;}function _0x21b39b(_0x15c86f,_0x466c4b,_0x58d0e3,_0x3f0d4f){return _0x3dbb2c(_0x15c86f-0x1c1,_0x58d0e3-0x7c,_0x58d0e3-0xcf,_0x15c86f);}try{yield*this['streamViaChatCompletionsSurface'](_0x28c812,_0x2d11df);}catch(_0x12c192){if(_0x12c192 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x12c192[_0x37c908(_0xa03d35._0x3f1ce7,0x478,_0xa03d35._0xc8804e,0x45d)])){this[_0x37c908(_0xa03d35._0x52d04e,_0xa03d35._0x58a627,_0xa03d35._0x21b918,0x491)](_0x28c812[_0x21b39b(_0xa03d35._0x4f134f,_0xa03d35._0x1a5be3,0x27f,_0xa03d35._0x81a441)]),yield*this[_0x37c908(0x46d,0x481,_0xa03d35._0x480e5b,_0xa03d35._0x4620b4)](_0x28c812,_0x2d11df);return;}throw this[_0x21b39b(_0xa03d35._0x202f92,0x279,0x287,0x19d)](_0x12c192);}throw _0x12c192;}}async[_0x5b3424(-0x2e5,-0x272,-0x283,-0x1c5)](_0x52373d){const _0xaf09d8={_0x164c03:0x571,_0x3653df:0x4da,_0x25ea75:0xc2,_0x1db800:0x10b,_0x1ed5fc:0x90,_0x4187a9:0x39e,_0x50a4b4:0x46c,_0x2f09c1:0x44e,_0x54469e:0x3a1,_0x3caf11:0x44f,_0x217691:0x361,_0x506fe7:0x351},_0x27b865={_0x79d1d1:0x130,_0x5efdd8:0xeb,_0x5d7851:0x2ab,_0x4e4be6:0x2d3,_0x4c4408:0x37f},_0x57d035={_0x1329c9:0x3,_0x50825f:0x1a3,_0x810a6d:0x35f},_0x1c7dde={_0x1db313:0xe8,_0x157e09:0x25d,_0x3880ab:0x179},_0x12f0d1={_0x319efd:0x226},_0x4bd41=await this[_0x826430(0x491,_0xaf09d8._0x164c03,0x4c2,_0xaf09d8._0x3653df)]({'path':_0x3d6ae8(0x199,0x3e,0x11c,0x11a),'method':_0x826430(0x35f,0x3d1,0x39e,0x4ab),'signal':_0x52373d});if(!_0x4bd41['ok'])throw this['mapApiError'](await this[_0x3d6ae8(_0xaf09d8._0x25ea75,_0xaf09d8._0x1db800,0x1f,_0xaf09d8._0x1ed5fc)](_0x4bd41));function _0x826430(_0x47df24,_0x57779b,_0x562823,_0x2cb974){return _0x3dbb2c(_0x47df24-0x11e,_0x562823-_0x12f0d1._0x319efd,_0x562823-0xb8,_0x2cb974);}const _0x108f21=await _0x4bd41['json']();function _0x3d6ae8(_0x3e6326,_0x2e4ff3,_0x34c45a,_0x21648a){return _0x5b3424(_0x3e6326-_0x1c7dde._0x1db313,_0x34c45a-_0x1c7dde._0x157e09,_0x34c45a-_0x1c7dde._0x3880ab,_0x21648a);}const _0xb75ddf=(_0x108f21[_0x826430(_0xaf09d8._0x4187a9,_0xaf09d8._0x50a4b4,_0xaf09d8._0x2f09c1,_0xaf09d8._0x54469e)]??[])[_0x826430(_0xaf09d8._0x3caf11,0x2b1,_0xaf09d8._0x217691,_0xaf09d8._0x506fe7)](_0x1a3401=>{function _0x63c30d(_0x48cd16,_0x35f880,_0x22c601,_0x2eee10){return _0x3d6ae8(_0x48cd16-0x1bc,_0x35f880-0x38,_0x35f880-0xa9,_0x48cd16);}function _0x335953(_0x3f1d92,_0x29fe35,_0x3f43be,_0x4099ed){return _0x3d6ae8(_0x3f1d92-_0x57d035._0x1329c9,_0x29fe35-_0x57d035._0x50825f,_0x4099ed-_0x57d035._0x810a6d,_0x3f1d92);}const _0xb6fa74=createModelInfo(_0x1a3401);return _0xb6fa74[_0x63c30d(0x1ae,_0x27b865._0x79d1d1,0x78,0x1ea)]&&this[_0x63c30d(_0x27b865._0x5efdd8,0x19d,0x15a,_0x27b865._0x5d7851)][_0x335953(_0x27b865._0x4e4be6,0x4c3,_0x27b865._0x4c4408,0x3e0)](_0xb6fa74['id'],_0xb6fa74['supportedEndpoints']),_0xb6fa74;});return deduplicateModels(_0xb75ddf);}};function createHeaders(_0x30be3e){const _0x1a9b41={_0x2f214c:0x92,_0x3201d7:0x64,_0x252d69:0x61},_0x5f1846={_0x3bfd87:0x1f0,_0x581eac:0x3e},_0x1e68bc=new Headers();function _0x2796c5(_0x32892c,_0xc58655,_0x1b8b3b,_0x20ccdf){return _0x5b3424(_0x32892c-0x8d,_0x1b8b3b-0x42e,_0x1b8b3b-0xa7,_0x20ccdf);}function _0x233cab(_0x571419,_0x338ce7,_0x58041d,_0x7c4c0b){return _0x3dbb2c(_0x571419-_0x5f1846._0x3bfd87,_0x571419- -0x199,_0x58041d-_0x5f1846._0x581eac,_0x7c4c0b);}for(const [_0x2e07cc,_0x5bb8ca]of Object[_0x233cab(-_0x1a9b41._0x2f214c,-0x34,-0xcc,-_0x1a9b41._0x3201d7)](_0x30be3e)){_0x1e68bc[_0x233cab(_0x1a9b41._0x252d69,-0x5a,0x7f,0x16e)](_0x2e07cc,_0x5bb8ca);}return _0x1e68bc;}async function fetchRawResponse(_0xd7d074){const _0x7505f0={_0x3947eb:0x41d,_0x4c2906:0x490,_0x3cee3d:0x34,_0x3ec73c:0x81,_0x4a53c0:0x156,_0x1c1222:0x492,_0x37b83a:0x2c0,_0x244bb5:0x310,_0x3c07dd:0x3b5,_0x416d03:0x4c5,_0x44666e:0x331,_0x1adcc0:0x51c},_0x15cb3d={_0x50374e:0x1cc,_0x18d892:0xbb};function _0x151da6(_0x1c7cbd,_0x1634f1,_0x1cae12,_0x3bf541){return _0x3dbb2c(_0x1c7cbd-0x28,_0x3bf541-0x243,_0x1cae12-0x15,_0x1c7cbd);}const _0x25b320=_0xd7d074[_0x151da6(0x53f,_0x7505f0._0x3947eb,0x47f,_0x7505f0._0x4c2906)]??globalThis[_0xb5ccab(_0x7505f0._0x3cee3d,0x14c,_0x7505f0._0x3ec73c,_0x7505f0._0x4a53c0)];function _0xb5ccab(_0x56a662,_0x2a80f6,_0x3dedbd,_0x1dc181){return _0x3dbb2c(_0x56a662-0x66,_0x3dedbd- -_0x15cb3d._0x50374e,_0x3dedbd-_0x15cb3d._0x18d892,_0x56a662);}return _0x25b320(_0xd7d074[_0x151da6(0x2b7,0x440,_0x7505f0._0x1c1222,0x384)],{'method':_0x151da6(_0x7505f0._0x37b83a,_0x7505f0._0x244bb5,0x46c,_0x7505f0._0x3c07dd),'headers':createHeaders(_0xd7d074['headers']),'body':JSON[_0xb5ccab(-0xe8,0x36,-0x47,-0x3a)](_0xd7d074[_0x151da6(_0x7505f0._0x416d03,_0x7505f0._0x44666e,_0x7505f0._0x1adcc0,0x417)]),'signal':_0xd7d074['signal']});}async function fetchJsonResponse(_0x5cd51c){const _0x5f468b={_0x3b0abb:0x105,_0x20ab51:0x15,_0x3a3508:0x1b5,_0x58b3cc:0x1ca,_0x38baf3:0x26d,_0x56cb94:0x1c6,_0x2453bf:0x139,_0x2bcce1:0x209,_0x5ba847:0xb4,_0x41133c:0x112,_0x21b695:0x1a6,_0x2634c9:0xa0,_0x1ffa5b:0x1f2,_0x21f8a2:0x282},_0x474cac={_0x26b3c2:0xfd,_0xd7fa87:0x2d1,_0x3d13e9:0xe6},_0x51c648={_0xb68fb5:0xaf};function _0x12cd93(_0xfd5359,_0x1aff1c,_0x14c34d,_0xbbd1f7){return _0x3dbb2c(_0xfd5359-_0x51c648._0xb68fb5,_0xfd5359- -0xaa,_0x14c34d-0xee,_0xbbd1f7);}function _0x37743a(_0x37b370,_0x590124,_0x4a57f2,_0x2b4101){return _0x3dbb2c(_0x37b370-_0x474cac._0x26b3c2,_0x37b370- -_0x474cac._0xd7fa87,_0x4a57f2-_0x474cac._0x3d13e9,_0x4a57f2);}const _0x721dec=await fetchRawResponse(_0x5cd51c);if(!_0x721dec['ok']){const _0x45efa2=await _0x721dec[_0x37743a(-_0x5f468b._0x3b0abb,-_0x5f468b._0x20ab51,-0xb0,-0x40)](),_0x377e10=_0x45efa2[_0x37743a(-_0x5f468b._0x3a3508,-0xd9,-0x1bd,-_0x5f468b._0x58b3cc)]()||_0x721dec[_0x12cd93(_0x5f468b._0x38baf3,0x16a,0x2f7,0x295)]||_0x37743a(-_0x5f468b._0x56cb94,-0x29e,-_0x5f468b._0x2453bf,-_0x5f468b._0x2bcce1);throw new Error(_0x37743a(-_0x5f468b._0x5ba847,-_0x5f468b._0x41133c,-_0x5f468b._0x21b695,-0x86)+_0x721dec[_0x12cd93(_0x5f468b._0x2634c9,0xb3,0x15b,0x1a0)]+':\x20'+_0x377e10);}return await _0x721dec[_0x12cd93(0x1a4,_0x5f468b._0x1ffa5b,0x97,_0x5f468b._0x21f8a2)]();}function findLastMessage(_0xf79410,_0x1e70d4){const _0x5ca672={_0x3c93f7:0x4d2,_0x1f41ca:0x461,_0x5a57db:0x4e0},_0x276081={_0x4d74b7:0xcf};function _0x5705eb(_0x4287d8,_0x992d17,_0x4a54c9,_0x6728f2){return _0x5b3424(_0x4287d8-0xee,_0x4287d8-0x610,_0x4a54c9-_0x276081._0x4d74b7,_0x992d17);}for(let _0x548bc2=_0xf79410['length']-0x1;_0x548bc2>=0x0;_0x548bc2-=0x1){if(_0xf79410[_0x548bc2][_0x5705eb(_0x5ca672._0x3c93f7,0x46f,_0x5ca672._0x1f41ca,_0x5ca672._0x5a57db)]===_0x1e70d4)return _0xf79410[_0x548bc2];}return void 0x0;}function hasTool(_0x3b1e98,_0xd3892a){const _0x3aa3ba={_0x58d53d:0xaa,_0x49342d:0xc5,_0x54198f:0x1a7,_0x3a3e37:0xc,_0x2f6b50:0xa5},_0x447613={_0x2c8106:0x31,_0xdb9c35:0x140},_0x328b14={_0x36d7bd:0x14c,_0x328391:0xc9};function _0x50f74a(_0x2327f2,_0xa04b0b,_0x5a7388,_0x148286){return _0x5b3424(_0x2327f2-_0x328b14._0x36d7bd,_0x2327f2-_0x328b14._0x328391,_0x5a7388-0x9e,_0xa04b0b);}function _0x6d17d5(_0x2c35db,_0xff694e,_0x2bbfa6,_0x7aa7f2){return _0x5b3424(_0x2c35db-_0x447613._0x2c8106,_0x2c35db-0x26a,_0x2bbfa6-_0x447613._0xdb9c35,_0xff694e);}return _0x3b1e98[_0x50f74a(-_0x3aa3ba._0x58d53d,0x4f,-_0x3aa3ba._0x49342d,-_0x3aa3ba._0x54198f)][_0x6d17d5(-_0x3aa3ba._0x3a3e37,_0x3aa3ba._0x2f6b50,-0xcd,0x7b)](_0x242770=>_0x242770['name']===_0xd3892a);}function createMockResponse(_0x547127,_0x1c2745,_0x16928d,_0x49718c){return{'id':_0x547127,'content':_0x1c2745,'stopReason':_0x16928d,'usage':_0x49718c};}var MockModel=class{[_0x3dbb2c(0x248,0x203,0x1ed,0x1e4)];[_0x5b3424(-0x1e1,-0x204,-0x24d,-0x250)];[_0x3dbb2c(0x221,0x2e3,0x1fb,0x250)];[_0x3dbb2c(0x192,0x1d1,0x261,0x1a0)];[_0x3dbb2c(0x1cb,0x276,0x184,0x2cf)]=[];[_0x5b3424(-0x187,-0x109,-0x1a7,-0x92)];constructor(_0x5dbb02={}){const _0x32cff4={_0x5087a6:0x5,_0x4b6f26:0x4a,_0x5cf1ab:0x115,_0x5757a0:0x10f,_0x1fca2e:0xfc,_0x32859e:0x85,_0x9e8fca:0xb4,_0x401e78:0x12,_0x168887:0x11c,_0xab38f3:0x153,_0x9e01f:0x55,_0x3bc08a:0xdb,_0x407843:0x4a,_0x55a0d5:0x74,_0x312e9f:0x37,_0x4b3b6e:0x5c,_0x35ca44:0xc5,_0x8e173c:0xa8,_0x322b90:0x3f,_0xcf3353:0x1c5,_0x5c53aa:0xc5},_0x125277={_0x91ff7f:0xc0,_0x329058:0x142},_0x5368ca={_0x175b42:0x11d,_0x56ffb8:0x208,_0x115e06:0x3e};this[_0x4401de(-0x107,-0x1a,-_0x32cff4._0x5087a6,_0x32cff4._0x4b6f26)]=_0x5dbb02[_0x4401de(0x9b,0x99,-_0x32cff4._0x5087a6,-0xfa)]??_0x4401de(0x122,0xe8,0x2e,_0x32cff4._0x5cf1ab),this[_0x306def(-0xe5,-_0x32cff4._0x5757a0,-_0x32cff4._0x1fca2e,-_0x32cff4._0x32859e)]=_0x5dbb02['modelIdentity']??modelIdentityFromParts(void 0x0,this[_0x306def(-_0x32cff4._0x9e8fca,_0x32cff4._0x401e78,-_0x32cff4._0x168887,-0x1b1)]);function _0x4401de(_0x4778c9,_0x5eadc0,_0x5f0128,_0x32a05b){return _0x3dbb2c(_0x4778c9-_0x5368ca._0x175b42,_0x5f0128- -_0x5368ca._0x56ffb8,_0x5f0128-_0x5368ca._0x115e06,_0x32a05b);}function _0x306def(_0x26acc4,_0x4e984c,_0x433e12,_0x1d1359){return _0x5b3424(_0x26acc4-_0x125277._0x91ff7f,_0x26acc4-0x11f,_0x433e12-_0x125277._0x329058,_0x1d1359);}this['maxTokens']=_0x5dbb02[_0x4401de(_0x32cff4._0xab38f3,_0x32cff4._0x9e01f,_0x32cff4._0x3bc08a,0x47)],this[_0x4401de(_0x32cff4._0x407843,_0x32cff4._0x55a0d5,-_0x32cff4._0x312e9f,_0x32cff4._0x4b3b6e)]=_0x5dbb02['pricingProviderId'],this[_0x4401de(0x124,0x151,_0x32cff4._0x35ca44,_0x32cff4._0x8e173c)]=_0x5dbb02[_0x4401de(-0x35,_0x32cff4._0x322b90,_0x32cff4._0x35ca44,0x4d)]?structuredClone(_0x5dbb02[_0x4401de(0xf3,_0x32cff4._0xcf3353,_0x32cff4._0x5c53aa,0x169)]):void 0x0;}async[_0x3dbb2c(0x64,0x119,0x76,0x21e)](_0x4544cf,_0x205a49){const _0x224a63={_0x185542:0x85,_0x4fc9dc:0x19,_0x37db00:0x36,_0x5985b3:0x19,_0x339621:0x27d,_0x289ea2:0xcd,_0x3d9ef3:0x1ca,_0x1b6d49:0x97,_0x4af53b:0x81,_0x5d7b40:0x20,_0x5dcdfd:0xc4,_0x2a2453:0x1fa,_0x3ff0a6:0x1a7,_0x28ffd5:0x186,_0x4591b2:0x1c9,_0xa7ef0f:0x56,_0x1ebb5a:0x28b,_0x268272:0x193,_0x53564d:0x114,_0x3fc997:0x33,_0x55720e:0x26,_0x10f8f3:0x19b,_0x3a7950:0x153,_0x2cc17e:0x23d,_0x230f99:0x18a,_0x37a520:0x8d,_0x1018d0:0xc6,_0x153ae1:0x3c,_0xac5684:0x16f,_0x3d9636:0x35,_0x2eecbe:0xd6,_0x2277bd:0x1ce,_0x17fee4:0x27b,_0x5e3fd5:0x153,_0x19a3c0:0x1a7,_0x55024d:0x21d,_0x3de484:0x8d,_0x10edbc:0x155,_0x3bed0f:0x29,_0x68c3a7:0xbd,_0x1a5535:0x3d,_0x22b559:0x31,_0x47a984:0x10,_0x420f5f:0xbc},_0x14729c={_0x11be68:0x110},_0x342a0a={_0x3bdd74:0x103,_0x241a15:0xbb},_0x56c3a8={...structuredClone(_0x4544cf),..._0x4544cf[_0x34c4c0(0xd3,-0x68,_0x224a63._0x185542,-_0x224a63._0x4fc9dc)]===void 0x0&&this[_0x34c4c0(0x12,0x7c,_0x224a63._0x37db00,-_0x224a63._0x5985b3)]!==void 0x0?{'reasoning':structuredClone(this[_0x1fb363(0xcd,_0x224a63._0x339621,_0x224a63._0x289ea2,_0x224a63._0x3d9ef3)])}:{}};this[_0x1fb363(_0x224a63._0x185542,0x191,_0x224a63._0x1b6d49,0x173)][_0x34c4c0(-0x36,-0x10c,-_0x224a63._0x4af53b,-_0x224a63._0x5d7b40)](_0x56c3a8);const _0x2b0f24=findLastMessage(_0x56c3a8[_0x34c4c0(-0xfd,-_0x224a63._0x5dcdfd,-0x173,-0x6c)],'user');function _0x1fb363(_0x798704,_0x220cd7,_0x503a45,_0x4dc3e4){return _0x3dbb2c(_0x798704-0x168,_0x4dc3e4- -_0x342a0a._0x3bdd74,_0x503a45-_0x342a0a._0x241a15,_0x220cd7);}const _0x385c33=getToolResultBlocks(_0x2b0f24),_0x26fac7=_0x34c4c0(-0xb4,-_0x224a63._0x2a2453,-0x1ac,-_0x224a63._0x3ff0a6)+this['requests']['length'];if(_0x385c33['length']>0x0)return createMockResponse(_0x26fac7,[{'type':_0x34c4c0(-_0x224a63._0x28ffd5,-_0x224a63._0x4591b2,-_0x224a63._0xa7ef0f,-0x11a),'text':_0x1fb363(_0x224a63._0x1ebb5a,0x15f,0xb2,_0x224a63._0x268272)+_0x385c33[0x0][_0x34c4c0(-_0x224a63._0x53564d,_0x224a63._0x3fc997,0x5e,-0x32)]}],_0x34c4c0(-_0x224a63._0x55720e,-_0x224a63._0x10f8f3,-0x1d1,-0x127),{'inputTokens':0x78,'outputTokens':0x28});function _0x34c4c0(_0x6de522,_0xcf3bdc,_0x4ff0ed,_0x38893){return _0x5b3424(_0x6de522-0x160,_0x38893-0xf0,_0x4ff0ed-_0x14729c._0x11be68,_0xcf3bdc);}const _0x4eb9ae=getTextFromMessage(_0x2b0f24);if(/list .*files|workspace/i[_0x1fb363(_0x224a63._0x3a7950,0xdd,_0x224a63._0x2cc17e,_0x224a63._0x230f99)](_0x4eb9ae)&&hasTool(_0x56c3a8,_0x34c4c0(-_0x224a63._0x37a520,-_0x224a63._0x1018d0,-0xa0,-_0x224a63._0x153ae1)))return createMockResponse(_0x26fac7,[{'type':_0x34c4c0(-0xef,-0x7a,-0x125,-_0x224a63._0xac5684),'id':_0x34c4c0(-0x90,_0x224a63._0x3d9636,-0x150,-_0x224a63._0x2eecbe)+this['requests']['length'],'name':_0x1fb363(_0x224a63._0x2277bd,_0x224a63._0x17fee4,_0x224a63._0x5e3fd5,_0x224a63._0x19a3c0),'input':{'command':_0x34c4c0(-_0x224a63._0x55024d,-0x202,-0x130,-0x1d4)}}],_0x34c4c0(-0x263,-_0x224a63._0x3de484,-0x195,-0x16f),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x26fac7,[{'type':_0x1fb363(0x102,0x194,0xa7,0xc9),'text':_0x34c4c0(-_0x224a63._0x10edbc,0x3b,_0x224a63._0x3bed0f,-_0x224a63._0x68c3a7)+_0x4eb9ae}],_0x1fb363(-_0x224a63._0x1a5535,-_0x224a63._0x22b559,-_0x224a63._0x47a984,_0x224a63._0x420f5f),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x4fcb46,_0x2bb11){const _0x125a38={_0x532ad7:0x169,_0x4b9749:0x105,_0x47ed75:0x14e,_0x173ce8:0xc4,_0x443cbb:0x1a4,_0x117ce5:0x5b},_0x2f6413={_0x579b9c:0xfb,_0x10b3d0:0x117},_0x7ba66c=getModelProfile(_0x4fcb46,_0x2bb11);if(!_0x7ba66c?.[_0x3cfd07(_0x125a38._0x532ad7,_0x125a38._0x4b9749,0xb8,0x120)]&&!_0x7ba66c?.['maxOutput']&&!_0x7ba66c?.['maxContextWindow'])return void 0x0;function _0x41b142(_0x6231c2,_0x4490d9,_0x2550f9,_0xac9d1b){return _0x3dbb2c(_0x6231c2-0x8b,_0x6231c2- -0x21d,_0x2550f9-0x16a,_0x4490d9);}function _0x3cfd07(_0x1a8b6d,_0x826afc,_0x68b7b2,_0x385d14){return _0x5b3424(_0x1a8b6d-_0x2f6413._0x579b9c,_0x1a8b6d-0x2ac,_0x68b7b2-_0x2f6413._0x10b3d0,_0x826afc);}return{..._0x7ba66c['contextWindow']?{'contextWindow':_0x7ba66c['contextWindow']}:{},..._0x7ba66c[_0x3cfd07(_0x125a38._0x47ed75,_0x125a38._0x173ce8,_0x125a38._0x443cbb,0xde)]?{'maxContextWindow':_0x7ba66c[_0x41b142(_0x125a38._0x117ce5,-0x63,0x58,0x2f)]}:{},..._0x7ba66c['maxOutput']?{'maxOutput':_0x7ba66c[_0x3cfd07(0xc7,0x12f,0xd5,0x85)]}:{}};}function normalizeModelInfo(_0x1bbf92,_0x3bf7b9){const _0x355f4f={_0x55b4c9:0x1ef,_0x5b27f7:0x218,_0x2d8d48:0x171,_0x2a2066:0x2d4,_0x27f924:0x2c7,_0x12daec:0x313,_0x4575e3:0xcc,_0x4a48d1:0x1c2,_0x58bb2a:0x156,_0xe7453:0x13c,_0x38e272:0x260,_0x32fdeb:0x169,_0xb5a212:0x260,_0x17d5d6:0x2fe,_0x24880b:0x335,_0x28ad9b:0x14a,_0x8c8342:0x286,_0x416567:0x33a,_0x58a5b8:0x2dd,_0x2fc7bf:0x405,_0x5569d3:0x271,_0x2cda4b:0x361,_0x2c9850:0x374,_0x5e10b4:0x468},_0x486468={_0xd10e36:0x1d1,_0x335842:0x197},_0x993d77=typeof _0x3bf7b9['id']===_0x27440e(_0x355f4f._0x55b4c9,0x143,_0x355f4f._0x5b27f7,_0x355f4f._0x2d8d48)?_0x3bf7b9['id']:'',_0x307163=typeof _0x3bf7b9[_0x27440e(0x298,_0x355f4f._0x2a2066,_0x355f4f._0x27f924,_0x355f4f._0x12daec)]===_0x56c6f2(-0xce,-_0x355f4f._0x4575e3,-0x17a,-_0x355f4f._0x4a48d1)?_0x3bf7b9['name']:_0x993d77,_0xc8eb5b=normalizeModelLimits(_0x1bbf92,_0x3bf7b9)??getFallbackModelLimits(_0x1bbf92,_0x993d77);function _0x56c6f2(_0x221e7d,_0xae3ba8,_0x572e6c,_0x19992e){return _0x3dbb2c(_0x221e7d-0x187,_0x19992e- -0x32e,_0x572e6c-0x3b,_0x221e7d);}const _0x360a01=Array[_0x56c6f2(-_0x355f4f._0x58bb2a,-0x16f,-_0x355f4f._0xe7453,-0x1a2)](_0x3bf7b9[_0x27440e(0x25f,0x308,_0x355f4f._0x38e272,_0x355f4f._0x32fdeb)])?_0x3bf7b9[_0x27440e(0x21a,0x325,_0x355f4f._0xb5a212,_0x355f4f._0x17d5d6)]['filter'](_0x248891=>typeof _0x248891===_0x56c6f2(-0x265,-0xfe,-0x16c,-0x1c2)):Array[_0x27440e(_0x355f4f._0x24880b,_0x355f4f._0x28ad9b,0x238,0x2eb)](_0x3bf7b9[_0x27440e(_0x355f4f._0x8c8342,0x391,_0x355f4f._0x416567,_0x355f4f._0x58a5b8)])?_0x3bf7b9[_0x27440e(_0x355f4f._0x2fc7bf,_0x355f4f._0x5569d3,_0x355f4f._0x416567,_0x355f4f._0x2cda4b)][_0x27440e(0x2d3,0x395,_0x355f4f._0x2c9850,_0x355f4f._0x5e10b4)](_0x55ec47=>typeof _0x55ec47===_0x56c6f2(-0x1cf,-0x110,-0xbe,-0x1c2)):void 0x0;function _0x27440e(_0x580e63,_0x5a7c21,_0x4df0fa,_0x2c5ad4){return _0x5b3424(_0x580e63-_0x486468._0xd10e36,_0x4df0fa-0x482,_0x4df0fa-_0x486468._0x335842,_0x580e63);}return{'id':_0x993d77,'name':_0x307163,..._0xc8eb5b?{'limits':_0xc8eb5b}:{},..._0x360a01?{'supportedEndpoints':_0x360a01}:{}};}function normalizeModelLimits(_0x5fd50b,_0x20eb6d){const _0x45bda2={_0x3f45b7:0x28d,_0x4b1cc0:0x1b2,_0x3b56a7:0x476,_0x46a331:0x317,_0x32e893:0x408,_0x3bf14f:0x26c,_0x4c560b:0x5,_0x751351:0x1,_0x7f3ae5:0x126,_0x53dce4:0x55,_0x51d515:0xf8,_0x16501b:0x194,_0x11deaf:0x19a,_0x183545:0xe6,_0x4809ea:0x164,_0x285c94:0x179,_0x186ddb:0x1f1,_0x3da9c9:0x113,_0x140dd2:0x2e2,_0x5ba198:0x13f,_0x596b88:0x2c2,_0x350180:0xbe,_0x5184f0:0x11a,_0xb56f69:0x15a,_0x1e4fbf:0x11f,_0x3f6290:0x144,_0x22266f:0x577,_0xc3e793:0x36,_0x2ccce9:0x4c,_0x203aa1:0x186,_0x5ee54f:0xfc,_0x7ae008:0x9c,_0x2c7590:0x11,_0x29a797:0x11b,_0x27357f:0xd1,_0x175c68:0xb0,_0x53ecd7:0x186,_0x148c7e:0x57,_0x1a35f2:0x13d,_0xbec8cc:0x3d5,_0x54a418:0x4e1,_0x11a494:0x10c,_0x144b53:0x133,_0x3001a7:0x1a1,_0x23fd14:0x1ab,_0x267933:0x33d,_0x24eb2a:0x4c0,_0x4ff064:0x275,_0x33a29d:0x1ec,_0x42f7bc:0x149,_0x3eb499:0xd2,_0x535fca:0x184,_0x23b049:0x3bf,_0x22d8bd:0x3ca,_0x9b3291:0x3ce},_0x5dc535={_0x4fe51a:0x4b},_0x4b63cf={_0x3927d9:0x65,_0x1fa01b:0x605};if(_0x20eb6d[_0xd99493(-_0x45bda2._0x3f45b7,-0x159,-_0x45bda2._0x4b1cc0,-0x1e7)]&&typeof _0x20eb6d[_0xaccad5(_0x45bda2._0x3b56a7,_0x45bda2._0x46a331,_0x45bda2._0x32e893,0x4de)]===_0xaccad5(0x59e,0x41b,0x498,0x464)){const _0xfc832f=_0x20eb6d[_0xd99493(-0xff,-_0x45bda2._0x3bf14f,-_0x45bda2._0x4b1cc0,-0x25d)];if(typeof _0xfc832f['contextWindow']===_0xd99493(_0x45bda2._0x4c560b,-0x53,-0xd9,-_0x45bda2._0x751351))return{'contextWindow':_0xfc832f[_0xd99493(-_0x45bda2._0x7f3ae5,-_0x45bda2._0x53dce4,-_0x45bda2._0x51d515,-_0x45bda2._0x16501b)],...typeof _0xfc832f[_0xd99493(-0x13d,-0x1f9,-_0x45bda2._0x11deaf,-0xa5)]===_0xd99493(-0x1bb,-_0x45bda2._0x183545,-0xd9,-_0x45bda2._0x4809ea)?{'maxOutput':_0xfc832f[_0xd99493(-_0x45bda2._0x285c94,-0x248,-_0x45bda2._0x11deaf,-0x1e6)]}:{}};}function _0xaccad5(_0x1aa309,_0x2dedef,_0x20a132,_0x143a54){return _0x5b3424(_0x1aa309-_0x4b63cf._0x3927d9,_0x20a132-_0x4b63cf._0x1fa01b,_0x20a132-0x1b4,_0x2dedef);}if(_0x5fd50b['toLowerCase']()==='github'){const _0x257c20=_0x20eb6d[_0xd99493(-_0x45bda2._0x186ddb,-_0x45bda2._0x3da9c9,-0x217,-_0x45bda2._0x140dd2)],_0x44a822=_0x257c20?.[_0xd99493(-_0x45bda2._0x5ba198,-0x219,-_0x45bda2._0x4b1cc0,-0x120)];if(typeof _0x44a822?.[_0xd99493(-_0x45bda2._0x596b88,-_0x45bda2._0x350180,-0x1c6,-_0x45bda2._0x5184f0)]==='number')return{'contextWindow':_0x44a822['max_context_window_tokens'],...typeof _0x44a822[_0xd99493(-_0x45bda2._0xb56f69,-_0x45bda2._0x1e4fbf,-0xa0,-_0x45bda2._0x3f6290)]===_0xaccad5(_0x45bda2._0x22266f,0x512,0x4e1,0x447)?{'maxOutput':_0x44a822['max_output_tokens']}:{}};}function _0xd99493(_0x3b5abe,_0xa96e00,_0x10814f,_0x1f9889){return _0x5b3424(_0x3b5abe-0xd3,_0x10814f-_0x5dc535._0x4fe51a,_0x10814f-0x62,_0xa96e00);}const _0x2b412d=_0x20eb6d['metadata'],_0x1716f7=_0x20eb6d[_0xd99493(-0x1f8,-_0x45bda2._0xc3e793,-0x106,-_0x45bda2._0x2ccce9)],_0x311a81=typeof _0x20eb6d[_0xd99493(-0x186,-0x237,-_0x45bda2._0x203aa1,-_0x45bda2._0x5ee54f)]===_0xd99493(-_0x45bda2._0x7ae008,_0x45bda2._0x2c7590,-0xd9,-_0x45bda2._0x29a797)?_0x20eb6d[_0xd99493(-_0x45bda2._0x27357f,-_0x45bda2._0x175c68,-_0x45bda2._0x53ecd7,-0x263)]:typeof _0x2b412d?.['context_length']===_0xd99493(0x30,-_0x45bda2._0x148c7e,-0xd9,-_0x45bda2._0x1a35f2)?_0x2b412d[_0xaccad5(0x4d8,0x3f3,0x434,0x500)]:typeof _0x1716f7?.[_0xd99493(-0x9f,-0x1e2,-0x186,-0xfb)]===_0xaccad5(0x44f,_0x45bda2._0xbec8cc,_0x45bda2._0x54a418,0x43f)?_0x1716f7[_0xd99493(-_0x45bda2._0x11a494,-_0x45bda2._0x144b53,-_0x45bda2._0x203aa1,-0x172)]:void 0x0;if(_0x311a81===void 0x0)return void 0x0;return{'contextWindow':_0x311a81,...typeof _0x2b412d?.['max_tokens']===_0xd99493(-_0x45bda2._0x3001a7,-0x1c1,-0xd9,-_0x45bda2._0x23fd14)?{'maxOutput':_0x2b412d[_0xaccad5(_0x45bda2._0x267933,0x34b,_0x45bda2._0xbec8cc,_0x45bda2._0x24eb2a)]}:typeof _0x1716f7?.[_0xd99493(-0x2a9,-_0x45bda2._0x4ff064,-_0x45bda2._0x33a29d,-_0x45bda2._0x42f7bc)]===_0xd99493(-0x5e,-_0x45bda2._0x3eb499,-0xd9,-_0x45bda2._0x535fca)?{'maxOutput':_0x1716f7[_0xaccad5(_0x45bda2._0x23b049,_0x45bda2._0x22d8bd,_0x45bda2._0x9b3291,0x446)]}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,NUVIN_PRICING_PRODUCTS,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,REASONING_METADATA_VERSIONS,RoutedModel,SUPPORTED_MODELS_DEV_PROVIDER_IDS,StaticModelSurfaceRouter,USD_TICKS_PER_DOLLAR,USD_TICKS_PER_TOKEN_AT_ONE_DOLLAR_PER_MILLION,createAnthropicSurfaces,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,estimateModelCost,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,modelsDevProviderIdForNuvinProvider,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,pricingProviderNeedsChatUsage,providerFromSurface,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen,withEstimatedModelCost};
|