@nuvin/agent-core 0.1.0-rc.3 → 0.1.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x37787b,_0x52799b){const _0x4bad31={_0x5ce676:0x79,_0xff99b4:0xbc,_0x4ce2a5:0x135,_0x3334cd:0xb3,_0x3be9d1:0xe3,_0x4f69cb:0x43,_0x1d84d9:0xf7,_0x18a35c:0x16b,_0x21ea94:0x35,_0x72387:0x417,_0x1335c9:0x32a,_0x23ac76:0x319,_0x58d8d6:0x236,_0x2e9b12:0x16,_0x10fb16:0xbd},_0x182e36={_0x4e5ecd:0x106};function _0x231b22(_0x2b17e0,_0x40086d,_0x4d4b87,_0x67d6e2){return _0x377c(_0x40086d- -0x29e,_0x2b17e0);}function _0x207b31(_0x414fb7,_0x51bc38,_0x2290f9,_0x4b59bb){return _0x377c(_0x414fb7-_0x182e36._0x4e5ecd,_0x4b59bb);}const _0x57e451=_0x37787b();while(!![]){try{const _0x5a56a4=-parseInt(_0x231b22(_0x4bad31._0x5ce676,_0x4bad31._0xff99b4,0x24,_0x4bad31._0x4ce2a5))/0x1*(-parseInt(_0x231b22(-_0x4bad31._0x3334cd,0x8,-0xd,-_0x4bad31._0x3be9d1))/0x2)+parseInt(_0x231b22(-_0x4bad31._0x4f69cb,-_0x4bad31._0x1d84d9,-_0x4bad31._0x18a35c,-_0x4bad31._0x21ea94))/0x3+parseInt(_0x207b31(_0x4bad31._0x72387,0x354,0x375,0x466))/0x4+parseInt(_0x207b31(_0x4bad31._0x1335c9,0x3cd,0x3f3,0x37c))/0x5+-parseInt(_0x231b22(-0x79,-0x50,-0x136,-0x120))/0x6+parseInt(_0x207b31(0x304,0x3a0,0x2b9,0x3c8))/0x7*(-parseInt(_0x207b31(_0x4bad31._0x23ac76,0x389,0x323,_0x4bad31._0x58d8d6))/0x8)+parseInt(_0x231b22(-_0x4bad31._0x2e9b12,-0x1c,0x20,-_0x4bad31._0x10fb16))/0x9;if(_0x5a56a4===_0x52799b)break;else _0x57e451['push'](_0x57e451['shift']());}catch(_0x554977){_0x57e451['push'](_0x57e451['shift']());}}}(_0x44b1,0x541b6));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-QDOE7NWO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x343039){const _0x43d5e8={_0x59c925:0x15b,_0x210ceb:0x6a,_0x648f35:0x35},_0x477076={_0x48d628:0x263};function _0x2080c1(_0x21baf5,_0x53988d,_0xc915c4,_0x109f57){return _0x377c(_0x53988d- -0xf4,_0x109f57);}super(_0x343039);function _0x3aeed3(_0x190189,_0x330de8,_0x2f7a62,_0x263779){return _0x377c(_0x263779- -_0x477076._0x48d628,_0x330de8);}this[_0x3aeed3(0x1c6,0x92,_0x43d5e8._0x59c925,0xd8)]=_0x3aeed3(0x76,-0x9e,-_0x43d5e8._0x210ceb,-_0x43d5e8._0x648f35);}},ProviderStreamEventError=class extends Error{[_0x5a1062(0x1f1,0x20e,0x291,0x199)];['retryable'];['status'];constructor(_0x27e5b4,_0x5362b2={}){const _0x402414={_0x3c8537:0x70d,_0x1dedac:0x644,_0x219797:0x663,_0x293501:0x6f0,_0x2cadd5:0x655,_0x3f976d:0x6ad,_0x50e8e9:0x54c,_0x540db4:0x5f2,_0x5f4654:0x570,_0x2affed:0x596,_0xa02ec5:0x550,_0x440379:0x159,_0x18c9ad:0xb9,_0x1a3c8e:0x687,_0x193457:0x6c8},_0x1dfd88={_0x3e9472:0xb9},_0x103591={_0x2fb763:0x3d4,_0x3ec174:0xa1,_0x4a926c:0xdc};function _0x573ca3(_0x4fe256,_0x4991e8,_0x336394,_0x3539bf){return _0x5a1062(_0x4991e8-_0x103591._0x2fb763,_0x336394,_0x336394-_0x103591._0x3ec174,_0x3539bf-_0x103591._0x4a926c);}super(_0x27e5b4),this[_0x573ca3(0x7df,_0x402414._0x3c8537,0x747,0x66c)]=_0x573ca3(0x6a4,_0x402414._0x1dedac,_0x402414._0x219797,_0x402414._0x293501),this[_0x217537(0xe1,0x140,0xd0,-0x1)]=_0x5362b2[_0x573ca3(_0x402414._0x2cadd5,0x5c5,_0x402414._0x3f976d,0x570)],this[_0x573ca3(_0x402414._0x50e8e9,_0x402414._0x540db4,_0x402414._0x5f4654,_0x402414._0x2affed)]=_0x5362b2[_0x573ca3(0x586,_0x402414._0x540db4,0x536,_0x402414._0xa02ec5)]??!![];function _0x217537(_0x3b61a9,_0x2e2244,_0x155d0a,_0x4e7fa4){return _0x5a1062(_0x3b61a9- -0x110,_0x4e7fa4,_0x155d0a-_0x1dfd88._0x3e9472,_0x4e7fa4-0x108);}this[_0x217537(0x19c,_0x402414._0x440379,_0x402414._0x18c9ad,0x149)]=_0x5362b2[_0x573ca3(_0x402414._0x1a3c8e,0x680,_0x402414._0x193457,0x74c)];}};function isRetryableProviderStreamEventError(_0x197dc8){const _0x9a77a4={_0x238370:0xfb},_0x57ec11={_0x19c07b:0x140,_0x3fda6c:0x190};function _0x4e86b9(_0x4b769e,_0x560ed7,_0x3f16c4,_0x95e04d){return _0x5a1062(_0x4b769e- -0x319,_0x560ed7,_0x3f16c4-_0x57ec11._0x19c07b,_0x95e04d-_0x57ec11._0x3fda6c);}return _0x197dc8 instanceof ProviderStreamEventError&&_0x197dc8[_0x4e86b9(-_0x9a77a4._0x238370,-0x8a,-0x73,-0x32)];}var ANTHROPIC_MESSAGES_SURFACE=_0x1a8b4d(0x18,-0xa4,0x1a,-0x188),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x1a8b4d(0xb1,-0x15,0x56,0x9d);function _0x44b1(){const _0x4deb8f=['yxv0Ag9YAxPHDgLVBG','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','zgvMyxvSDe1VzgvS','B2f1DgGTDg9Rzw4','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','DhLWzq','DxnHz2u','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','C3vTBwfYEv90zxH0','CMvHC29U','Dg9VBf9JywXSCW','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C3LZDgvT','zxzLBNq6','zw50CMLLCW','sw52ywXPzcbYzxf1zxn0oIa','DMfSDwu','C2v0','C2vUzfDPDgHszxrYAwvZ','zMv0y2G','CMvHzhLtDgf0zq','Dg9VBf91C2u','Dgv4Dej5sw5KzxG','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','CMvZCg9UC2vtB2nRzxrtDhjLyw0','yxbWBhLnB2rLBerLzMf1BhrZ','DgHLBG','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','zgLZCgXHEq','y2HVAwnLCW','y29UDgv4DfDPBMrVDW','Aw5WDxrFC2nOzw1H','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','y2fJAgvK','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','y29UDgvUDf9IBg9JA19KzwX0yq','CMvZCg9UC2vtB2nRzxq','C3rYzwfTu3vYzMfJzq','zMLUAxnOx3jLyxnVBG','Bwf4x3rVA2vUCW','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','Ec1HCgKTA2v5','Bwf4t3v0Chv0','CMvZCg9UC2vjza','C3rYAw5N','y2HHDenVBxbSzxrL','DgHPBMTPBMDFzgvSDge','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','mJm5odi0yMzMuLzS','zMLUza','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','yxbWBgLJyxrPB24VANnVBG','C3rYzwfT','ue9tva','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','z2v0u3vYzMfJzq','CgfYDgLHBf9QC29U','ChjLDMLVDxnszxnWB25ZzuLK','Dgv4DfbHCNrZ','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','C3rYzwfTvMLHu3vYzMfJzq','A2LUza','ChjVDMLKzxjtDgf0zq','B3bLBMfPlxjLC3bVBNnLCY13CW','B3bLBG','zMLSDgvY','CMvZCc0','BwvZC2fNzq','Cgf0Aa','CMvZzxq','AM9PBG','ChjLCgfYzunOyxrszxf1zxn0','D2fPDezVCLjLDhj5','qMfZAa','C2vZC2LVBK1HBMfNzxi','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','BgvUz3rO','y29TCgXLDgu','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','CMvHC29UAw5N','C3rHCNrZv2L0Aa','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','CMvZCg9UC2vuzxH0ugfYDhm','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','Dg9VBhm','C3vYzMfJzq','t3bLBKfPqxbPrxjYB3i','y2XVC2u','rgLYzwn0igfUC3DLCJOG','BMfTzq','BhmGlwXH','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','CMvWBgfJzq','zw5KCg9PBNrZ','CgfYC2vszxnWB25Zzq','C291CMnL','C2nOzw1H','y2XHDwrLlxnVBM5LDc00','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','o2jHC2u2ncW','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','C2vUza','yMvHCMvY','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','z2v0','CMvZCg9UC2uUzMfPBgvK','z3b0ltqUmq','C2XPy2u','yxnZAxn0yw50','yxnZAxn0yw50lq','Dg9VBa','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','Ahr0Cc1ZC2u','z2v0t3bLBKfPrgvSzwDHDgu','CgvUzgLUzW','l3jLC3bVBNnLCW','zgvJB2rL','ANnVBL9Zy2HLBwe','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','BwfW','nhvNuxrftq','y2fJAgvszwfKsw5WDxruB2TLBNm','yMfZzvvYBa','CMvHC29UAw5Nx3rVA2vUCW','y29WAwXVDc1JAgf0lZaUmZeUmW','DNnJB2rLlZeUmta2lJe','zw5Kx3r1CM4','C3rYzwfTshr0Cfn1CMzHy2u','yw50AhjVCgLJx3rOAw5RAw5N','Dg9bCgLfCNjVCG','Aw5WDxruB2TLBNm','CMvZB2X2zq','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Ahr0Chm6lY9HCgKUzgvLChnLzwSUy29Tl2fUDgHYB3bPyW','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','Bw9KzwW','C3vWCg9YDgvKx2vUzhbVAw50CW','C3rVCfjLyxnVBG','B2jQzwn0','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','CMvZCg9UC2vZugf0Aa','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','B3v0Chv0rM9YBwf0','AxneB25L','yxbPs2v5','z3b0ltu','y29TCgXLDgvK','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','y29TCgXLDgvwAwftDxjMywnL','Bw9KzwXfBMrWB2LUDenHy2HL','yNvPBgrqyxj0AwfSt3v0Chv0','yxv0BW','zw5JCNLWDgvKx2nVBNrLBNq','CMvZCg9UC2u','zM9Yy2vgDwXSuMvWBgf5','zgLZywjSzwq','DxjS','CMv0CNKTywz0zxi','y29UBMvJDgLUzW','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','zNvUy3rPB24','mJe0nJu5uNriB0Tr','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','y2fSBeLKvg9pDxrWDxrjBMrLEa','D2vIC29JA2v0','zMXHDe1HCa','zgvLChnLzwSTDJqTzMXHC2G','z3b0ltrV','wgLHB21P','ChjVDg9JB2XwzxjZAw9U','Aw5WDxrFANnVBL9KzwX0yq','B3bLBMfP','DgvZDa','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','B3v0Chv0sw5KzxHuB0nHBgXjza','CMvXDwvZDe11Dgf0B3jZ','C2LNBMf0DxjL','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','ywnJzxnZvg9Rzw4','y2HHDgnTCgW','r0vu','B3bLBMfPl2DWDc00BY1TAw5P','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','C3bSAwnL','t1bftG','C3vTBwfYAxPLza','zxjYB3i','BgfIzwW','Bw9KzwXZ','yxn5BMnjDgvYyxrVCG','CgfYC2u','z2L0AhvIqxbPvxjS','C3vWCg9YDhnnB2rLBezLDgnO','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','C29Tzq','y2HHDfn0CMvHBq','DhjHBNnWB3j0x2vYCM9Y','y29UDgvUDc10ExbL','y29UDgvUDf9IBg9JA19ZDgfYDa','r2L0shvIiefqssbLCNjVCIa','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','CMvHC29UAw5Nx3rLEhq','AgvHzgvYCW','twLUAu1HEa','y29TCgXLDgvtDxjMywnL','Dg9VBenHBgXZ','l21VzgvSCW','y3jLyxrLsgvHzgvYCW','C3vTBwfYEq','l3yXl21LC3nHz2vZ','z2XTltqUnW','Dg9VBenHBgXZqNLjBMrLEa','Aw52ywXPzgf0zq','CMvXDwvZDhm','y29UDgv4Df9Szw5NDgG','ChjVDMLKzxjFCMv0CNK','CMvZCg9UC2vtDhjLyw0','CMvTB3zLrxzLBNrmAxn0zw5LCG','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','yMXVy2TZ','t3bLBKfj','B3bLBMfPx3jLyxnVBMLUzW','BNvTyMvY','ChjVDMLKzxjZ','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','ywrKrxzLBNrmAxn0zw5LCG','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','ywnJzxb0','CMvZCg9UC2uUy29TCgXLDgvK','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','B3bLBMfPlxjLC3bVBNnLCW','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','DxnLCI12AxnPyMXL','y29Kzq','CM91DgvY','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','DxnLC1jLC3bVBNnLC0fWAq','C2vSzwn0u3vYzMfJzq','zgvSDge','qMvHCMvYia','zwrPDg9YugX1z2LUvMvYC2LVBG','B3v0Chv0x3rLEhq','z3jVAY1JB2rLlwzHC3qTmq','z2v0uMvHzgvY','ndKYmxn6v25crW','ChjVDMLKzxjbzgfWDgvY','y29UDgvUDf9PBMrLEa','D3nZoG','C3vTBwfYEuj5sw5KzxG','yxbP','C2vZC2LVBG','Bwf4','Ahr0Cc1QC29U','zwrPDg9YvMvYC2LVBG','C3rYAwn0','B3v0Chv0vg9Rzw5Z','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','AxnbCNjHEq','ChjVDg9JB2W','C3bSAxq','DgHPBMTPBMC','z2v0qw50AhjVCgLJrgvSzwDHDgu','DhjPBvn0yxj0','CMvXDwvZDa','nJC0ngjwDePIwa','CM9Szq','t3bLBKfjiefqssbLCNjVCIa','C2HVDwXKuMv0CNLszxnWB25Zzq','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','y2HHDenVBxbSzxrPB25Zugf0Aa','AxrLBv9Pza','C2vUzfjHD1jLCxvLC3q','y29UBMvJDf9MywLSzwq','BwvKAwfFDhLWzq','zgf0yq','ywDLBNq','CMv0CNLHyMXL','r2L0shvIie1VzgvSCYaVienVCgLSB3q','w0rptKvD','Dgv4Df9KzwX0yq','mZeXnJiWmgvWt0rpAa','t3bLBLjVDxrLCG','AxngAw5PDgu','Dg9VBf91C2vFzgvSDge','yNvKz2v0vg9Rzw5Z','Dg9VBenHBgXpCMrLCG','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','CMvKywn0zwrFDgHPBMTPBMC','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','Aw5PDgLHBev2zw50','y29UDgvUDa','y2fSBf9Pza','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','B3v0Chv0sw5KzxG','A2v5','y2XHDwrLlxnVBM5LDc00lJu','yM9KEq','AxrLBq','CMvHC29UAw5NsxrLBxm','ChjVBxb0x3rVA2vUCW','Aw1Hz2u','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','Aw5WDxrkC29U','y2fWywjSzv9LBMrWB2LUDhm','yxv0AfnJAgvTzq','zMLUywXszxnWB25Zzq','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','ywjVCNrLza','AgvHzgvYuMvZB2X2zxi','C29JA2v0','C3rVCf9YzwfZB24','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','CMvHC29UAw5NugfYDhm','B3v0Chv0x3rVA2vUCW','zgvMyxvSDe1HEfrVA2vUCW','zxzLBNq','DxnLCG','y29UC3vTzuv2zw50','mZKZmdu0mgffuerVsG','yxbPlwTLEq','ywrK','C2LNBMfS','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','C3vTBwfYEv9PBMrLEa','CMvZB2X2zunYzwrLBNrPywW','zgvMyxvSDe1VzgvSCW','Dgv4Da','BM93','zNvUy3rPB25Fy2fSBa','z3b0ltuTBwLUAq','zg9Uzq','y2fWywjPBgL0AwvZ','yw50AhjVCgLJ','Bw9Kzq','Aw5JBhvKzunVBNrLBNruExbL','CMvHC29UAw5Nx2rLDgfPBhm','DMfSDwvZ','C3rHDhvZvgv4Da','Bwf4x291Dhb1Df90B2TLBNm','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C3vYzMfJzxm','yxjNDw1LBNrZ','Dg9mB3DLCKnHC2u','C2HPzNq','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','C2vZC2LVBKLK','CMvMDxnHBa','Aw5WDxrFDg9Rzw5Z','zgvSzxrL','Bwv0ywrHDge','Dg9tDhjPBMC','Aw5KzxHpzG','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','CMvZB2X2zujHC2vvCMW','y3jLzgvUDgLHBa','z2XTltqUnG','mJaYns0Xmc0Wmq','Aw5KzxG','CMvZB2X2zxi','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','C3rYAw5NAwz5','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','zgf0ytO','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','Dg9VBf91C2vFAwq','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','BwvZC2fNzuLK','D2vIu29JA2v0rMfJDg9YEq','mtyYnZy2oendzuTdqG','Aw1Hz2vFDxjS','yw50AhjVCgLJqMfZzvvYBa','y2f0y2G','Bwv0Ag9K','B3jPz2LUlxrYywnRzxi','yw50AhjVCgLJlw1LC3nHz2vZ','twLUAu1HEc1nmW','zMv0y2HjBxbS','wI5bsq','y29UC3vTzvnZzuv2zw50','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','BwvZC2fNzxm','A2v5CW','qw50AhjVCgLJ','y29UDgvUDf9KzwX0yq','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','y29UC3vTzvDLyLnVy2TLDev2zw50','y3jLyxrLuMvXDwvZDa','Bwf4vg9Rzw5Z','ywjVCNq','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','Dg9Rzw4','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','CMvHza','Dgv4Dc9LDMvUDc1ZDhjLyw0','zMLUAxnO','Bg9JA2vK','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','zNjVBuvUDhjPzxm','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','ANnVBG','BgLTAxrZ','AgfZ','zw5JCNLWDgvKq29UDgvUDa','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','mZi4mZeWyMziwxro','DhjPBq','C3rYzwfTvMLHuM91DgvY','BwfWqxbPrxjYB3i','D3m6','rgvLCfnLzwS','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','l2nOyxqVy29TCgXLDgLVBNm','C3rHDhvZ','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','B3v0Chv0','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','BwLTBY12mI41lxbYBW','Aw5WDxq','y2HHDgnTCgWT','zw5HyMXLza','ChjVEhK','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Dg9Wx3bYB3zPzgvY','y29TCgXLDgvwAwfsB3v0zxi','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','BwvZC2fNzv9ZDgfYDa','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','yw50AhjVCgLJrgvSzwDHDgu','BxnNlq','C3vWCg9YDgvKrw5KCg9PBNrZ','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','C29YDa','u3vYzMfJzsa','ChvZAa','Bw9KzwXZqMfZzvvYBa','z2v0uMv0CNLezwXHEu1Z','DMLZAwjPBgL0Eq','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','C2L6zq','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','B3bLBKfPrgvSzwDHDgu','BgfZDfjLC3bVBNnLswq','C2vZC2LVBI10B2TLBG','Dg9VBfvZzvn0yxj0rw1PDhrLza','q29TBwfUzenVzgu','DhjHBNnWB3j0','Dg9VBf9Yzxn1Bhq','ywrHChrPDMu','y3jLyxrLu3rYzwfTugfYC2vY','zwzMB3j0','z2XTltuUmq','BwvZC2fNzuLUzgv4','zNjVBq','Aw5JBhvKzxm','B3v0Chv0x2LUzgv4'];_0x44b1=function(){return _0x4deb8f;};return _0x44b1();}function parseToolInput(_0xf5d946){try{return JSON['parse'](_0xf5d946);}catch{return _0xf5d946;}}function resolveReasoningVisibility(_0xa9ea11){const _0x5689e6={_0x4144f9:0xdd,_0x38cc8d:0x4d,_0x687220:0x646,_0x271cae:0x5d8},_0x9a6e55={_0x307ff1:0x252,_0x306762:0x1de,_0x1ab37d:0x81},_0x2c5a78={_0x58ca2e:0x3d2};function _0x27e424(_0xdf3eb5,_0x156d48,_0x156cfb,_0xae6e){return _0x5a1062(_0x156d48-_0x2c5a78._0x58ca2e,_0xae6e,_0x156cfb-0x45,_0xae6e-0x5);}function _0x316a68(_0x365212,_0x453ba5,_0xc45d8c,_0x4934a5){return _0x5a1062(_0x365212- -_0x9a6e55._0x307ff1,_0x4934a5,_0xc45d8c-_0x9a6e55._0x306762,_0x4934a5-_0x9a6e55._0x1ab37d);}return _0xa9ea11[_0x316a68(_0x5689e6._0x4144f9,0x7e,_0x5689e6._0x38cc8d,0x70)]?.['visibility']??_0x27e424(_0x5689e6._0x687220,0x5c2,_0x5689e6._0x271cae,0x4e5);}function isUserVisibleThinking(_0x581b5d){const _0x4b9b8c={_0x59f268:0xe7,_0x655ca4:0xe0,_0x62d855:0x50,_0x4c11ed:0x45},_0x14529d={_0x2330a8:0x16f},_0xddbe7c={_0x39f8bc:0x12f},_0x15298c=resolveAnthropicThinkingConfig(_0x581b5d[_0x51e2b6(0x19c,0xba,0x16c,0x130)]);function _0x55e44e(_0x518abb,_0x20ce6e,_0xf7eef2,_0x335acc){return _0x1a8b4d(_0x20ce6e,_0x518abb-_0xddbe7c._0x39f8bc,_0xf7eef2-0xed,_0x335acc-0x18a);}function _0x51e2b6(_0x5e6e8e,_0x414bdd,_0x2faf52,_0x2f6a3f){return _0x1a8b4d(_0x414bdd,_0x5e6e8e-0x197,_0x2faf52-0x85,_0x2f6a3f-_0x14529d._0x2330a8);}return _0x15298c!==void 0x0&&_0x15298c[_0x55e44e(_0x4b9b8c._0x59f268,_0x4b9b8c._0x655ca4,0x18c,0x1b4)]!=='disabled'&&resolveReasoningVisibility(_0x581b5d)===_0x51e2b6(0x5d,_0x4b9b8c._0x62d855,-0x58,-_0x4b9b8c._0x4c11ed);}function _0x5a1062(_0x4f8b6b,_0x1115a3,_0x3fa642,_0x10afd7){return _0x377c(_0x4f8b6b- -0x2,_0x1115a3);}function createAnthropicThinkingBody(_0x41046b){const _0x256f67={_0x21a753:0x2a1,_0x57faf8:0x63b,_0x59f2fa:0x544,_0x4ecad9:0x498,_0x846077:0x56b,_0x491004:0x3c3,_0x421cb4:0x502,_0x2679c5:0x42f,_0x4b5224:0x569,_0x494538:0x583,_0x3c84f0:0x539,_0x221b71:0x1ad,_0x1e9b08:0x2a3,_0x53d85d:0x298,_0x493a66:0x4b6,_0x27bbb2:0x548,_0xa36149:0x497,_0x4cb75e:0x4e1,_0x59afcf:0x5af,_0x4ad33b:0x483,_0x305f9d:0x547,_0x500114:0x2c4,_0x514f82:0x202,_0x48207c:0x1dc},_0xa65c85={_0x19a576:0x2a5,_0x57207e:0x48,_0x367591:0x194},_0x280cba={_0x75b626:0x152},_0x2e4614=resolveAnthropicThinkingConfig(_0x41046b[_0xdf24b4(0x2aa,0x377,_0x256f67._0x21a753,0x255)]);if(!_0x2e4614||_0x2e4614['type']===_0x20b7e6(_0x256f67._0x57faf8,0x5f5,0x5ec,0x5c2))return{};const _0x464e5a=_0x2e4614[_0x20b7e6(_0x256f67._0x59f2fa,_0x256f67._0x4ecad9,_0x256f67._0x846077,0x51e)]??(isUserVisibleThinking(_0x41046b)?_0x20b7e6(_0x256f67._0x491004,_0x256f67._0x421cb4,_0x256f67._0x2679c5,0x44e):'omitted');function _0x20b7e6(_0x66a553,_0x62ce66,_0x1bbd4f,_0xb5179b){return _0x5a1062(_0x1bbd4f-0x271,_0x62ce66,_0x1bbd4f-0x64,_0xb5179b-_0x280cba._0x75b626);}const _0x5195f1=_0x2e4614['interleaved']?{'anthropic-beta':_0x20b7e6(_0x256f67._0x4b5224,_0x256f67._0x494538,_0x256f67._0x3c84f0,0x4aa)}:void 0x0;if(_0x2e4614[_0xdf24b4(0x25d,_0x256f67._0x221b71,_0x256f67._0x1e9b08,0x271)]===_0xdf24b4(0x230,0x28b,0x24a,_0x256f67._0x53d85d))return{..._0x5195f1?{'headers':_0x5195f1}:{},'thinking':{'type':_0x20b7e6(_0x256f67._0x493a66,0x4e1,0x526,0x48b),'budget_tokens':_0x2e4614[_0x20b7e6(_0x256f67._0x27bbb2,0x50c,_0x256f67._0xa36149,_0x256f67._0x4cb75e)],'display':_0x464e5a}};function _0xdf24b4(_0x131128,_0x54f044,_0x564e00,_0xbd9e33){return _0x1a8b4d(_0xbd9e33,_0x131128-_0xa65c85._0x19a576,_0x564e00-_0xa65c85._0x57207e,_0xbd9e33-_0xa65c85._0x367591);}return{..._0x5195f1?{'headers':_0x5195f1}:{},'thinking':{'type':_0x20b7e6(0x47a,_0x256f67._0x59afcf,0x545,_0x256f67._0x4ad33b),..._0x2e4614[_0x20b7e6(_0x256f67._0x305f9d,0x60d,_0x256f67._0x305f9d,0x550)]?{'effort':_0x2e4614[_0xdf24b4(0x251,_0x256f67._0x500114,_0x256f67._0x514f82,_0x256f67._0x48207c)]}:{},'display':_0x464e5a}};}function toAnthropicRequestContent(_0x3df74f){const _0x316516={_0x4ea6b2:0x15e,_0x1a7a8d:0x96,_0x41deda:0x1e8,_0x139122:0x279,_0x49445a:0x1fd,_0x40c423:0x1b7,_0x41a5e1:0x1a8,_0x318698:0x26a,_0xdce2be:0x223,_0x1d8dd7:0x1cb,_0x44e71c:0x14,_0xf9150b:0x76,_0x4371da:0x9e,_0xa5fbbb:0x1dd,_0x39007b:0xa3,_0x26d3a7:0x16,_0x22fe8e:0x218,_0x1e3d26:0xb6,_0x36a194:0x178,_0x1399e0:0x159,_0x154252:0x228,_0x576c87:0x122,_0x56ee0a:0x202,_0x93bbcb:0x1de},_0x257825={_0x5b62b7:0x1db},_0x13dfa9={_0x73f70:0x4a};if(_0x3df74f[_0x268780(0x1bb,_0x316516._0x4ea6b2,_0x316516._0x1a7a8d,0x1f6)]===_0x268780(_0x316516._0x41deda,0x298,_0x316516._0x139122,_0x316516._0x49445a)&&_0x3df74f['providerState']?.[_0x111971(-0x242,-0x173,-_0x316516._0x40c423,-0x1c8)])return structuredClone(_0x3df74f[_0x268780(_0x316516._0x41a5e1,_0x316516._0x318698,0x1ae,_0x316516._0xdce2be)][_0x111971(-0x1bc,-_0x316516._0x1d8dd7,-_0x316516._0x40c423,-0x228)]);function _0x268780(_0x19d730,_0x68dfe4,_0x77bab,_0x4d0424){return _0x1a8b4d(_0x77bab,_0x68dfe4-0x276,_0x77bab-0x14,_0x4d0424-_0x13dfa9._0x73f70);}const _0x969dbc=[];for(const _0x47e863 of normalizeContent(_0x3df74f['content'])){if(_0x47e863[_0x111971(-_0x316516._0x44e71c,-0x57,-0xa3,0x1e)]===_0x268780(_0x316516._0xf9150b,0x12f,_0x316516._0x4371da,_0x316516._0xa5fbbb))continue;if(_0x47e863[_0x111971(-0xb1,-0x25,-_0x316516._0x39007b,-_0x316516._0x26d3a7)]===_0x268780(0x334,0x2ac,_0x316516._0x22fe8e,0x32e)){_0x969dbc['push']({'type':_0x111971(-_0x316516._0x1e3d26,-0x1db,-_0x316516._0x36a194,-0xb3),'thinking':_0x47e863[_0x268780(0x236,_0x316516._0x1399e0,0x196,_0x316516._0x154252)],'signature':_0x47e863['signature']});continue;}if(_0x47e863['type']===_0x111971(-0x192,-0x13a,-_0x316516._0x576c87,-0x1fb)){_0x969dbc['push']({'type':'redacted_thinking','data':_0x47e863[_0x268780(0x19a,0x168,_0x316516._0x56ee0a,_0x316516._0x93bbcb)]});continue;}_0x969dbc['push'](structuredClone(_0x47e863));}function _0x111971(_0x234fa,_0x4f44d2,_0x5d079a,_0x8d566c){return _0x5a1062(_0x5d079a- -0x385,_0x8d566c,_0x5d079a-0x122,_0x8d566c-_0x257825._0x5b62b7);}return _0x969dbc;}function createAnthropicRequest(_0x1ed890,_0x3ce478){const _0x304bbb={_0x597c56:0xea,_0x7950a6:0x97,_0x572285:0x44,_0x2dcd18:0xf2,_0x4671ab:0xf2,_0x466a29:0x97,_0x15c077:0x15,_0x85cfe7:0x9c,_0x3c0d04:0x1,_0x239ed7:0x4cc,_0xe767ed:0x38a,_0x269d7e:0x339,_0x5ce639:0x460,_0x458145:0x255,_0x599010:0x284},_0x210f61={_0x345828:0x24c,_0xdc12fd:0x246,_0x1c8f6c:0x2ce,_0x59a87b:0x279},_0x28e033={_0xe692b1:0x3ea,_0xe81a61:0x3c},_0x31440f={_0x191b81:0x8a,_0x4d3f20:0x1c6},_0x45e088={_0x486738:0x59,_0xd5db85:0x19e},_0x26280f=toProviderModelRequest(_0x1ed890),_0x32ecd9=createAnthropicThinkingBody(_0x1ed890);function _0xcbd620(_0x4c0b8c,_0x3cb197,_0x4351fe,_0x1b17ef){return _0x1a8b4d(_0x1b17ef,_0x4c0b8c- -_0x45e088._0x486738,_0x4351fe-0x170,_0x1b17ef-_0x45e088._0xd5db85);}function _0x4c524b(_0x57c524,_0x5ca6d6,_0x35d470,_0xd7f70b){return _0x5a1062(_0x35d470-0x20b,_0xd7f70b,_0x35d470-_0x31440f._0x191b81,_0xd7f70b-_0x31440f._0x4d3f20);}return{'accept':_0x3ce478?_0xcbd620(-_0x304bbb._0x597c56,-_0x304bbb._0x7950a6,-_0x304bbb._0x572285,-_0x304bbb._0x2dcd18):_0xcbd620(-0x71,0x74,-0xa,-0x4),'body':{..._0x26280f,'messages':_0x1ed890[_0x4c524b(0x51e,0x3fb,0x497,0x4bc)]['map'](_0x6ddd44=>{function _0x480e63(_0x15cb5b,_0xded677,_0x5438ab,_0x26f9c9){return _0xcbd620(_0x26f9c9-_0x28e033._0xe692b1,_0xded677-0x98,_0x5438ab-_0x28e033._0xe81a61,_0x5438ab);}return{'role':_0x6ddd44[_0x480e63(_0x210f61._0x345828,_0x210f61._0xdc12fd,_0x210f61._0x1c8f6c,_0x210f61._0x59a87b)],'content':toAnthropicRequestContent(_0x6ddd44)};}),..._0x32ecd9[_0xcbd620(-0x176,-_0x304bbb._0x4671ab,-_0x304bbb._0x466a29,-0xd0)]?{'thinking':_0x32ecd9['thinking']}:{},..._0x3ce478?{'stream':!![]}:{},..._0x1ed890[_0xcbd620(-_0x304bbb._0x15c077,-_0x304bbb._0x85cfe7,-0xb4,_0x304bbb._0x3c0d04)]?{'output_config':{'format':{'type':_0x4c524b(_0x304bbb._0x239ed7,0x54a,0x560,0x5f3),'schema':_0x1ed890['outputFormat']['schema']}}}:{}},..._0x32ecd9[_0x4c524b(0x33e,_0x304bbb._0xe767ed,0x3db,0x303)]?{'headers':_0x32ecd9[_0x4c524b(0x312,_0x304bbb._0x269d7e,0x3db,_0x304bbb._0x5ce639)]}:{},'path':_0xcbd620(-0x1ac,-_0x304bbb._0x458145,-_0x304bbb._0x599010,-0x127)};}function parseAnthropicResponse(_0x28fbb8,_0x2e3fb0){const _0x1a90de={_0x1db910:0xc4,_0x2e6738:0x1a6,_0x3ea5d2:0x21c,_0x55089c:0xb8,_0xa0bc60:0x1c3,_0x2d9da4:0xf0,_0xd62813:0x5f,_0x5377af:0x1d5,_0x255866:0x5e3,_0x16694a:0x6d8,_0x168f42:0x601,_0x59eedb:0x1a6,_0x30cfc9:0xbc,_0x24f3b4:0x290,_0x39284f:0x4de,_0x1f9962:0x4b6,_0x557313:0x511,_0xf61a7e:0x4a3,_0x281970:0x150,_0x28600b:0x1fd,_0x5cc7cb:0x503,_0x374b12:0x51e,_0xb34a67:0x447,_0xf37384:0xd1,_0x21bc5f:0x65,_0x451fc3:0x210,_0x2bf4d9:0x88,_0x3e8560:0x20d,_0x4c41ee:0x87,_0x58b446:0xb3,_0x4b0d5f:0x5aa,_0x11c4c2:0x67b,_0x39c6e7:0x635,_0x46ece0:0x36,_0xe66535:0x53d,_0x23963d:0x50c,_0x336609:0x5e3,_0x1c5616:0x4f4,_0x47bba3:0x1eb,_0x19503a:0x158,_0x1f0555:0x20d,_0x1d7a95:0x192,_0x5a140e:0x16f,_0x34d4f0:0xfd,_0x431046:0x214,_0x2b36c6:0x83,_0x3e59a5:0x5d9,_0x594ca2:0x645,_0x169ca1:0x6ea,_0x50a138:0x66b,_0x4f8677:0x554,_0x500bb0:0x640,_0x22c05f:0x552,_0x3f468f:0x466,_0x20f183:0x11d,_0x2fdabd:0x104,_0x5d2460:0x79,_0x854615:0x5ca,_0x5e3819:0x64f,_0x491194:0x55,_0x495ba5:0xd0,_0x5d4c94:0x11b,_0x32bd4c:0x525,_0xd30a3:0x586,_0x36cfec:0x483,_0x467f9b:0x6b5,_0x53d061:0x5ee,_0x473581:0x524,_0x25cf5d:0x540,_0xf5cbcf:0x54d,_0x38601d:0x596,_0x1aa5aa:0x11e,_0x5d4caa:0x33},_0x56bea3={_0x7c4765:0x12c};function _0x586229(_0x57ec57,_0xf7276b,_0x44d319,_0x4f2eab){return _0x1a8b4d(_0xf7276b,_0x57ec57- -0x89,_0x44d319-0x1b3,_0x4f2eab-_0x56bea3._0x7c4765);}const _0x4e9a61=[],_0x45fff2=_0x28fbb8['content']??[];let _0x3e613b=![];function _0x224652(_0x2a8860,_0x17fca3,_0x7ad837,_0x5be3af){return _0x5a1062(_0x2a8860-0x2e7,_0x5be3af,_0x7ad837-0x1e2,_0x5be3af-0xa3);}for(const _0x46b915 of _0x45fff2){if(_0x46b915[_0x586229(-0xd1,-_0x1a90de._0x1db910,-0x105,-0x105)]===_0x586229(-_0x1a90de._0x2e6738,-_0x1a90de._0x3ea5d2,-_0x1a90de._0x55089c,-_0x1a90de._0xa0bc60)){_0x3e613b=!![];isUserVisibleThinking(_0x2e3fb0)&&_0x4e9a61[_0x586229(-_0x1a90de._0x2d9da4,-_0x1a90de._0xd62813,-0x6,-_0x1a90de._0x5377af)]({'type':_0x224652(0x647,_0x1a90de._0x255866,_0x1a90de._0x16694a,_0x1a90de._0x168f42),'thinking':_0x46b915[_0x586229(-_0x1a90de._0x59eedb,-0x12b,-_0x1a90de._0x30cfc9,-_0x1a90de._0x24f3b4)],'signature':_0x46b915[_0x224652(0x49c,_0x1a90de._0x39284f,_0x1a90de._0x1f9962,0x47a)]});continue;}if(_0x46b915['type']===_0x224652(_0x1a90de._0x557313,0x43c,_0x1a90de._0xf61a7e,0x5f2)){_0x3e613b=!![];isUserVisibleThinking(_0x2e3fb0)&&_0x4e9a61['push']({'type':_0x586229(-_0x1a90de._0x281970,-0x156,-0x20e,-_0x1a90de._0x28600b),'data':_0x46b915[_0x224652(_0x1a90de._0x5cc7cb,_0x1a90de._0x374b12,_0x1a90de._0xb34a67,0x52d)]});continue;}if(_0x46b915[_0x586229(-_0x1a90de._0xf37384,-_0x1a90de._0x21bc5f,-0x16a,-0x1ae)]===_0x586229(-0x15e,-0x186,-_0x1a90de._0x451fc3,-_0x1a90de._0x2bf4d9)){_0x46b915[_0x586229(-0x15e,-0xa8,-0x233,-_0x1a90de._0x3e8560)][_0x586229(-_0x1a90de._0x4c41ee,-0xe3,-0x142,-_0x1a90de._0x58b446)]>0x0&&_0x4e9a61[_0x224652(_0x1a90de._0x4b0d5f,0x66b,_0x1a90de._0x11c4c2,_0x1a90de._0x39c6e7)](structuredClone(_0x46b915));continue;}_0x4e9a61[_0x586229(-_0x1a90de._0x2d9da4,-_0x1a90de._0x46ece0,-0x1af,-0x106)](structuredClone(_0x46b915));}return{'id':_0x28fbb8['id']??'msg-'+Date[_0x224652(_0x1a90de._0xe66535,_0x1a90de._0x23963d,_0x1a90de._0x336609,_0x1a90de._0x1c5616)](),'content':_0x4e9a61,'stopReason':_0x4e9a61[_0x586229(-_0x1a90de._0x47bba3,-_0x1a90de._0x19503a,-_0x1a90de._0x1f0555,-_0x1a90de._0x1d7a95)](_0x627e39=>_0x627e39[_0x586229(-0xd1,-0x164,-0x6f,-0xb0)]===_0x224652(0x5d9,0x5b5,0x5e7,0x666))?'tool_use':_0x28fbb8[_0x586229(-_0x1a90de._0x5a140e,-_0x1a90de._0x34d4f0,-_0x1a90de._0x431046,-_0x1a90de._0x2b36c6)]===_0x224652(_0x1a90de._0x3e59a5,0x4fc,0x557,0x64a)?_0x224652(0x5d9,0x566,0x67f,0x64f):_0x224652(_0x1a90de._0x594ca2,_0x1a90de._0x169ca1,0x700,0x575),'usage':{'inputTokens':(_0x28fbb8[_0x224652(0x5ca,_0x1a90de._0x50a138,_0x1a90de._0x4f8677,_0x1a90de._0x500bb0)]?.[_0x224652(_0x1a90de._0x22c05f,_0x1a90de._0x3f468f,0x4d9,0x547)]??0x0)+(_0x28fbb8['usage']?.[_0x586229(-0xac,-_0x1a90de._0x20f183,-_0x1a90de._0x2fdabd,-_0x1a90de._0x5d2460)]??0x0)+(_0x28fbb8[_0x224652(_0x1a90de._0x854615,0x6b7,_0x1a90de._0x5e3819,0x550)]?.[_0x586229(-0x98,-0x162,_0x1a90de._0x491194,-0x15)]??0x0),'outputTokens':_0x28fbb8[_0x586229(-_0x1a90de._0x495ba5,-0x1b3,-0x155,-_0x1a90de._0x5d4c94)]?.[_0x224652(0x52e,_0x1a90de._0x32bd4c,_0x1a90de._0xd30a3,_0x1a90de._0x36cfec)]??0x0,..._0x28fbb8[_0x224652(_0x1a90de._0x854615,0x58f,_0x1a90de._0x467f9b,0x514)]?.[_0x224652(_0x1a90de._0x53d061,_0x1a90de._0x473581,0x653,0x59c)]?{'cacheReadInputTokens':_0x28fbb8['usage'][_0x224652(0x5ee,0x537,_0x1a90de._0x25cf5d,0x55e)]}:{},..._0x28fbb8[_0x224652(0x5ca,0x5bd,_0x1a90de._0xf5cbcf,_0x1a90de._0x38601d)]?.[_0x586229(-0x98,-0x107,-_0x1a90de._0x1aa5aa,-_0x1a90de._0x5d4caa)]?{'cacheCreationInputTokens':_0x28fbb8['usage']['cache_creation_input_tokens']}:{}},..._0x3e613b?{'providerState':{'anthropicAssistantContent':structuredClone(_0x45fff2)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();[_0x5a1062(0x2e1,0x200,0x2df,0x305)]=0x0;[_0x1a8b4d(-0x2a,0x2f,0x48,0x102)]=0x0;[_0x5a1062(0x362,0x40a,0x3d6,0x2d4)]=0x0;['messageId']=_0x5a1062(0x2be,0x21d,0x2af,0x28a)+Date[_0x1a8b4d(-0xfb,-0xd4,-0x39,-0x72)]();[_0x1a8b4d(-0x9e,-0x123,-0x60,-0x39)]=0x0;[_0x1a8b4d(-0x164,-0x11a,-0x1ec,-0xc0)];[_0x5a1062(0x369,0x2c7,0x2c1,0x36a)]='end_turn';constructor(_0x58eae4){const _0x1a44ec={_0x296d31:0x46},_0x1df0f3={_0x31b7f6:0x1df};function _0x4d4b82(_0x13e472,_0xaa0d96,_0x185f57,_0x23ce79){return _0x1a8b4d(_0x185f57,_0xaa0d96-0x177,_0x185f57-_0x1df0f3._0x31b7f6,_0x23ce79-0xa2);}this[_0x4d4b82(-_0x1a44ec._0x296d31,0x5d,0x11b,0xbe)]=_0x58eae4;}[_0x1a8b4d(-0x5e,-0xa0,-0x5,-0xf)](_0x301475){const _0x1fe503={_0x2f8f22:0x153,_0x4ace91:0x210,_0x111c8d:0x356,_0x445f20:0x3cf,_0x11f809:0x34f,_0x5374be:0x30f,_0x1428c4:0x62b,_0x55370c:0x536,_0x592e0c:0x5df,_0x219ae8:0x32a,_0xbdaad6:0x2a6,_0x25dad3:0x330,_0x345c80:0x449,_0x417bc1:0x426,_0x16984d:0x481,_0x2508d0:0x553,_0x773f1c:0x579,_0x53a222:0x25e,_0x41ea34:0x36e,_0x1757ee:0x410,_0x5356c5:0x68b,_0x32a017:0x577,_0x247a25:0x620,_0x2ac059:0x1db,_0x2347fb:0x26f,_0x32ce37:0x2de,_0x2997ee:0x614,_0x4dec55:0x302,_0x1f5fd2:0x2ff,_0x179855:0x34d,_0x5e89f3:0x56b,_0x202cc5:0x617,_0x1fc7b2:0x347,_0x3bf703:0x2e5,_0x4d1c2e:0x2da,_0x23ae93:0x2c1,_0x4cb04a:0x2e7,_0x19708e:0x6b2,_0x44ad60:0x5d9,_0x4c15f7:0x5af,_0x3c2424:0x2d0,_0x51b6cd:0x25d,_0x29dcb9:0x456,_0x1ca87e:0x3e2,_0xe6e683:0x2b2,_0x3c2fce:0x18b,_0x18b01b:0x279,_0x436409:0x1bf,_0x261964:0x455,_0x4fdfe2:0x4b4,_0x347488:0x2eb,_0x1eef45:0x36a,_0x3a47a1:0x3e4,_0x2d0b48:0x49f,_0x5697e6:0x490,_0x58b498:0x27c,_0x4a241a:0x1c3,_0x36dfe7:0x5a7,_0x57ea72:0x4e0,_0x5375ef:0x5f7,_0x52ca09:0x67c,_0xc749b0:0x28c,_0x198349:0x548,_0x206717:0x5a3,_0x5c06fc:0x206,_0x286d06:0x45c,_0x606b4b:0x277,_0x1292b2:0x306,_0x72c371:0x2a7,_0x5c2a3d:0x421,_0x5a330d:0x5e2,_0x5cec18:0x5c9,_0x4d8653:0x291,_0x10e3de:0x175,_0x395e6a:0x259,_0x2971a1:0x42f,_0x1d7aee:0x35e,_0x5992f0:0x2c7,_0x30a8ad:0x211,_0x4cb8a5:0x3a3,_0x14bd0d:0x59a,_0x59c575:0x5ac,_0x3cae3a:0x4a0,_0x1a1012:0x58e,_0x5d6d67:0x53a,_0x5c15fd:0x470,_0xe56afd:0x227,_0x2dd932:0x314,_0x40af15:0x2de,_0x3735da:0x487,_0x3a790d:0x5ac,_0x1ec749:0x5ca,_0x29fe07:0x513,_0x243316:0x4ea,_0x158587:0x490,_0x4a3995:0x2aa,_0x2db434:0x306,_0x2f9128:0x3e4,_0x563d6d:0x295,_0x294735:0x3fa,_0x559218:0x4f0,_0x129ce2:0x4a2,_0x336baa:0x4b8,_0x1506ab:0x4e8,_0x765fd4:0x5c4,_0x4f15a2:0x240,_0x3130ea:0x632,_0x456179:0x692,_0x5a2ae0:0x1c8,_0x2aaf67:0x2c2,_0x5e3637:0x1fa,_0x53bd51:0x225,_0x58d040:0x310,_0x535f0c:0x621,_0x211f22:0x672,_0x4376e8:0x429,_0x534527:0x56f,_0x162eb4:0x311,_0x226dc5:0x224,_0x574d6c:0x20e,_0x218ea4:0x259,_0x24c51f:0x333,_0x1efa6a:0x43c,_0xa8a209:0x3d1,_0x324538:0x600,_0x4b3ad9:0x575,_0xd1da5:0x16c,_0x135e37:0x240,_0x2a98e1:0x195,_0x9aa230:0x4fa,_0x790352:0x690,_0x1b8620:0x676,_0x3d8ce5:0x207,_0x4fd041:0x229,_0x554fee:0x60a,_0x9ab421:0x5d6,_0x9cdd78:0x60b,_0x56342d:0x5cb,_0x9ed2fa:0x5c2,_0x24cccd:0x21f,_0x5a932a:0x279,_0x5493ad:0x4f4,_0xbbdcd8:0x58f,_0xdf4c63:0x1d2,_0x5e3868:0x32f,_0xceae8a:0x262,_0x4b83ef:0x243,_0x29dfc5:0x4cc,_0x5c1f55:0x4cb,_0x13b5c9:0x498,_0x439c3b:0x464,_0x121e8f:0x589,_0x81043b:0x556,_0x138e8f:0x5a6,_0x2725c0:0x5a0,_0x3070f1:0x5e8,_0x1f9209:0x321,_0x111079:0x458,_0x189c6a:0x4cb,_0x29aa09:0x41c,_0x15c1de:0x4ec,_0x2bec02:0x3d4,_0x4ccae6:0x395,_0x40795f:0x48c,_0x4123de:0x48f,_0x200547:0x473,_0x47b16e:0x3c0,_0x2f908a:0x1af,_0x524c78:0x22a,_0x273b9e:0x2bb,_0x1d0113:0x4f9,_0x15e33a:0x5a1,_0x1db590:0x64a,_0x11aff8:0x705,_0x34cfbe:0x6a8,_0x197d88:0x6d1,_0xdf279a:0x647,_0x334e43:0x59b,_0x53007d:0x299,_0x3b6feb:0x353,_0x3570b3:0x218,_0x3d2852:0x3ff,_0x5a57c4:0x2d4,_0x3f7f98:0x248,_0x5dba33:0x31a,_0x5a3652:0x286,_0xdd6cd7:0x292,_0x2b05fe:0x3c7,_0x1e8f3c:0x4b1,_0xd53155:0x4ad,_0x3ab83a:0xfb,_0x1ca90e:0x5e1,_0x43df79:0x659,_0x41087f:0x653,_0x50a69f:0x5b7,_0x517f95:0x4e4},_0x23986b={_0x215f74:0x183},_0x4595f2={_0x20132b:0x2be,_0x3c9637:0xe0},_0x39e45a=_0x301475[_0x2e9c88(_0x1fe503._0x2f8f22,0x1db,_0x1fe503._0x4ace91,0x19e)]('\x0a'),_0x10bb13=_0x39e45a[_0x2e9c88(_0x1fe503._0x111c8d,0x36b,0x314,_0x1fe503._0x445f20)](_0x1687fc=>_0x1687fc[_0x2e9c88(0x282,0x32b,0x334,0x2af)](_0x2e9c88(0x351,0x2f4,0x2ee,0x21c)))?.[_0x2e9c88(0x3c1,0x2c2,_0x1fe503._0x11f809,_0x1fe503._0x5374be)](0x6)[_0x3ad6d3(_0x1fe503._0x1428c4,0x5c8,0x563,_0x1fe503._0x55370c)](),_0x4e2ca=_0x39e45a[_0x3ad6d3(0x67b,0x5ad,_0x1fe503._0x592e0c,0x69f)](_0x38b1e3=>_0x38b1e3['startsWith'](_0x2e9c88(0x2f7,0x22e,0x27e,0x1b2)))['map'](_0x5900e4=>_0x5900e4['slice'](0x5)[_0x2e9c88(0x141,0x2d9,0x213,0x21b)]())[_0x2e9c88(_0x1fe503._0x219ae8,0x3b6,0x32a,0x285)]('\x0a')['trim']();if(_0x4e2ca[_0x2e9c88(0x37a,_0x1fe503._0xbdaad6,_0x1fe503._0x25dad3,0x2e7)]===0x0||_0x4e2ca==='[DONE]')return[];function _0x3ad6d3(_0x3c828a,_0x322858,_0x1a06e7,_0x344905){return _0x5a1062(_0x1a06e7-_0x4595f2._0x20132b,_0x3c828a,_0x1a06e7-0x63,_0x344905-_0x4595f2._0x3c9637);}const _0x3f961d=JSON[_0x3ad6d3(_0x1fe503._0x345c80,_0x1fe503._0x417bc1,_0x1fe503._0x16984d,_0x1fe503._0x2508d0)](_0x4e2ca);function _0x2e9c88(_0x4e7662,_0x133f5c,_0x2fc6c2,_0xb91ee6){return _0x1a8b4d(_0x4e7662,_0x2fc6c2-0x32e,_0x2fc6c2-0x98,_0xb91ee6-_0x23986b._0x215f74);}switch(_0x10bb13){case _0x3ad6d3(0x5f2,0x4e3,_0x1fe503._0x773f1c,_0x1fe503._0x592e0c):{const _0x33c11b=_0x3f961d[_0x2e9c88(_0x1fe503._0x53a222,_0x1fe503._0x41ea34,0x327,_0x1fe503._0x1757ee)];this['messageId']=_0x33c11b?.['id']??this['messageId'],this[_0x3ad6d3(_0x1fe503._0x5356c5,_0x1fe503._0x32a017,_0x1fe503._0x247a25,0x570)]=_0x33c11b?.['usage']?.[_0x2e9c88(0x316,_0x1fe503._0x2ac059,_0x1fe503._0x2347fb,_0x1fe503._0x32ce37)]??this[_0x3ad6d3(0x6f8,0x618,0x620,_0x1fe503._0x2997ee)],this['cacheReadInputTokens']=_0x33c11b?.[_0x2e9c88(_0x1fe503._0x4dec55,_0x1fe503._0x1f5fd2,0x2e7,_0x1fe503._0x179855)]?.['cache_read_input_tokens']??this[_0x3ad6d3(_0x1fe503._0x5e89f3,0x68d,_0x1fe503._0x202cc5,0x5e1)],this[_0x2e9c88(_0x1fe503._0x1fc7b2,0x32b,_0x1fe503._0x3bf703,_0x1fe503._0x4d1c2e)]=_0x33c11b?.[_0x2e9c88(0x26e,_0x1fe503._0x23ae93,_0x1fe503._0x4cb04a,0x289)]?.[_0x3ad6d3(_0x1fe503._0x19708e,0x4fb,_0x1fe503._0x44ad60,_0x1fe503._0x4c15f7)]??this[_0x2e9c88(0x3bf,_0x1fe503._0x3c2424,0x2e5,_0x1fe503._0x51b6cd)];break;}case _0x3ad6d3(_0x1fe503._0x29dcb9,_0x1fe503._0x1ca87e,0x48a,0x493):{const _0x11d68f=typeof _0x3f961d[_0x2e9c88(_0x1fe503._0xe6e683,_0x1fe503._0x3c2fce,_0x1fe503._0x18b01b,_0x1fe503._0x436409)]===_0x3ad6d3(_0x1fe503._0x261964,0x3cc,0x4a2,_0x1fe503._0x4fdfe2)?_0x3f961d['index']:0x0,_0x205ab3=_0x3f961d['content_block'];if(_0x205ab3?.[_0x2e9c88(0x1fc,_0x1fe503._0x347488,0x2e6,0x371)]===_0x2e9c88(0x377,_0x1fe503._0x1eef45,0x2f6,_0x1fe503._0x3a47a1)&&_0x205ab3['id']&&_0x205ab3['name'])return this[_0x3ad6d3(0x3c4,0x47f,_0x1fe503._0x2d0b48,_0x1fe503._0x5697e6)][_0x2e9c88(0x22b,0x246,0x2f2,0x397)](_0x11d68f,{'id':_0x205ab3['id'],'index':_0x11d68f,'inputJson':JSON[_0x2e9c88(0x339,0x204,_0x1fe503._0x58b498,_0x1fe503._0x4a241a)](_0x205ab3['input']??{}),'kind':_0x3ad6d3(0x594,_0x1fe503._0x36dfe7,0x5b0,_0x1fe503._0x57ea72),'name':_0x205ab3[_0x3ad6d3(0x683,0x52a,_0x1fe503._0x5375ef,_0x1fe503._0x52ca09)]}),[{'type':_0x2e9c88(0x288,_0x1fe503._0xc749b0,0x229,0x2df),'id':_0x205ab3['id'],'index':_0x11d68f,'name':_0x205ab3[_0x3ad6d3(0x585,0x526,0x5f7,_0x1fe503._0x198349)]}];if(_0x205ab3?.[_0x3ad6d3(0x657,0x5e0,0x5a0,_0x1fe503._0x206717)]===_0x2e9c88(_0x1fe503._0x5c06fc,0x1c9,0x211,0x183)){this[_0x3ad6d3(0x418,_0x1fe503._0x286d06,_0x1fe503._0x2d0b48,0x3ca)][_0x2e9c88(_0x1fe503._0x606b4b,_0x1fe503._0x1292b2,0x2f2,_0x1fe503._0x72c371)](_0x11d68f,{'index':_0x11d68f,'kind':_0x3ad6d3(_0x1fe503._0x206717,_0x1fe503._0x5c2a3d,0x4cb,0x405),'signature':typeof _0x205ab3['signature']===_0x3ad6d3(_0x1fe503._0x5a330d,0x537,_0x1fe503._0x5cec18,0x6b2)?_0x205ab3[_0x2e9c88(0x197,_0x1fe503._0x4d8653,0x1b9,0x159)]:'','thinking':typeof _0x205ab3[_0x2e9c88(0x1e4,_0x1fe503._0x10e3de,_0x1fe503._0x395e6a,0x2e4)]===_0x2e9c88(0x2ed,0x340,0x30f,0x2a6)?_0x205ab3[_0x3ad6d3(0x51d,0x522,0x513,_0x1fe503._0x2971a1)]:typeof _0x205ab3['thinking']===_0x2e9c88(0x23c,_0x1fe503._0x1d7aee,_0x1fe503._0x5374be,0x358)?String(_0x205ab3[_0x2e9c88(_0x1fe503._0x5992f0,_0x1fe503._0x32ce37,_0x1fe503._0x30a8ad,0x20d)]):''});break;}if(_0x205ab3?.[_0x2e9c88(0x2f6,0x23e,0x2e6,_0x1fe503._0x4cb8a5)]==='redacted_thinking'){this['blocks'][_0x3ad6d3(_0x1fe503._0x14bd0d,0x670,_0x1fe503._0x59c575,0x50f)](_0x11d68f,{'index':_0x11d68f,'kind':_0x3ad6d3(_0x1fe503._0x3cae3a,_0x1fe503._0x1a1012,0x4e8,0x59f),'data':typeof _0x205ab3[_0x3ad6d3(_0x1fe503._0x5d6d67,_0x1fe503._0x5c15fd,0x4da,0x4e9)]===_0x2e9c88(0x398,_0x1fe503._0xe56afd,0x30f,_0x1fe503._0x2dd932)?String(_0x205ab3[_0x2e9c88(0x184,_0x1fe503._0x40af15,0x220,0x146)]):''});break;}this[_0x3ad6d3(_0x1fe503._0x3735da,0x544,_0x1fe503._0x2d0b48,0x45e)][_0x3ad6d3(0x5f1,0x65d,_0x1fe503._0x3a790d,0x5fb)](_0x11d68f,{'index':_0x11d68f,'kind':_0x3ad6d3(_0x1fe503._0x1ec749,0x457,_0x1fe503._0x29fe07,_0x1fe503._0x243316),'text':_0x205ab3?.[_0x3ad6d3(0x5fd,0x54c,0x513,_0x1fe503._0x158587)]??''});break;}case _0x2e9c88(_0x1fe503._0x4a3995,0x2ea,_0x1fe503._0x2db434,_0x1fe503._0x2f9128):{const _0x52dfc5=typeof _0x3f961d[_0x2e9c88(0x355,_0x1fe503._0x563d6d,0x279,0x329)]===_0x3ad6d3(_0x1fe503._0x294735,_0x1fe503._0x559218,_0x1fe503._0x129ce2,_0x1fe503._0x336baa)?_0x3f961d[_0x3ad6d3(_0x1fe503._0x1506ab,0x48e,0x533,_0x1fe503._0x765fd4)]:0x0,_0x95cecb=this[_0x2e9c88(0x1d1,_0x1fe503._0x4f15a2,0x1e5,0xfe)][_0x3ad6d3(0x615,_0x1fe503._0x3130ea,0x606,_0x1fe503._0x456179)](_0x52dfc5),_0x4dfb3e=_0x3f961d[_0x2e9c88(_0x1fe503._0x5a2ae0,_0x1fe503._0x2aaf67,_0x1fe503._0x5e3637,0x217)];if(!_0x95cecb||!_0x4dfb3e?.['type'])break;if(_0x4dfb3e['type']===_0x2e9c88(0x26d,0x1f4,_0x1fe503._0x53bd51,_0x1fe503._0x58d040)&&_0x95cecb[_0x3ad6d3(0x671,_0x1fe503._0x535f0c,0x5db,_0x1fe503._0x211f22)]===_0x3ad6d3(0x4b4,0x4f0,0x513,0x5bf)&&typeof _0x4dfb3e[_0x3ad6d3(_0x1fe503._0x4376e8,0x5c5,0x513,_0x1fe503._0x534527)]==='string')return _0x95cecb[_0x2e9c88(_0x1fe503._0x162eb4,_0x1fe503._0x226dc5,0x259,0x1b5)]+=_0x4dfb3e[_0x2e9c88(0x250,_0x1fe503._0x574d6c,_0x1fe503._0x218ea4,0x311)],[{'type':'content_delta','index':_0x52dfc5,'text':_0x4dfb3e[_0x3ad6d3(0x4bd,0x47d,0x513,0x4d1)]}];if(_0x4dfb3e[_0x2e9c88(0x3d3,0x361,0x2e6,_0x1fe503._0x24c51f)]===_0x3ad6d3(0x413,0x3b3,0x46c,_0x1fe503._0x1efa6a)&&_0x95cecb[_0x2e9c88(0x236,_0x1fe503._0xa8a209,0x321,0x3e3)]==='tool_use'&&typeof _0x4dfb3e[_0x2e9c88(0x2d6,0x3b1,0x31c,0x3e8)]===_0x3ad6d3(_0x1fe503._0x324538,_0x1fe503._0x4b3ad9,0x5c9,0x6b6))return _0x95cecb[_0x2e9c88(0x31a,_0x1fe503._0xd1da5,_0x1fe503._0x135e37,0x223)]==='{}'&&(_0x95cecb[_0x2e9c88(0x1b8,_0x1fe503._0x2a98e1,0x240,0x304)]=''),_0x95cecb[_0x3ad6d3(0x46c,0x582,_0x1fe503._0x9aa230,0x4be)]+=_0x4dfb3e[_0x3ad6d3(_0x1fe503._0x790352,_0x1fe503._0x1b8620,0x5d6,0x542)],[{'type':_0x2e9c88(_0x1fe503._0x3d8ce5,0x19a,_0x1fe503._0x4fd041,_0x1fe503._0x4fd041),'id':_0x95cecb['id'],'index':_0x52dfc5,'inputDelta':_0x4dfb3e[_0x3ad6d3(0x636,_0x1fe503._0x554fee,_0x1fe503._0x9ab421,0x624)]}];if(_0x4dfb3e['type']===_0x3ad6d3(_0x1fe503._0x9cdd78,0x64c,_0x1fe503._0x56342d,0x5b2)&&_0x95cecb[_0x3ad6d3(0x58d,0x517,0x5db,_0x1fe503._0x9ed2fa)]==='thinking'){const _0x3aeef8=typeof _0x4dfb3e[_0x2e9c88(_0x1fe503._0x24cccd,_0x1fe503._0x5a932a,0x211,0x126)]===_0x3ad6d3(0x610,_0x1fe503._0x5493ad,_0x1fe503._0x5cec18,_0x1fe503._0xbbdcd8)?String(_0x4dfb3e[_0x2e9c88(0x1bd,_0x1fe503._0xdf4c63,0x211,0x14c)]):'';if(_0x3aeef8[_0x2e9c88(_0x1fe503._0x5e3868,_0x1fe503._0xceae8a,_0x1fe503._0x25dad3,_0x1fe503._0x4b83ef)]>0x0){_0x95cecb[_0x3ad6d3(_0x1fe503._0x29dfc5,0x506,_0x1fe503._0x5c1f55,_0x1fe503._0x13b5c9)]+=_0x3aeef8;if(isUserVisibleThinking(this[_0x3ad6d3(_0x1fe503._0x439c3b,_0x1fe503._0x32a017,0x4ce,0x59f)]))return[{'type':_0x3ad6d3(0x681,_0x1fe503._0x121e8f,0x5e9,_0x1fe503._0x81043b),'index':_0x52dfc5,'thinking':_0x3aeef8}];}}if(_0x4dfb3e[_0x3ad6d3(_0x1fe503._0x138e8f,0x610,_0x1fe503._0x2725c0,_0x1fe503._0x3070f1)]==='signature_delta'&&_0x95cecb[_0x2e9c88(0x39d,0x28d,_0x1fe503._0x1f9209,0x374)]===_0x3ad6d3(0x55a,_0x1fe503._0x111079,_0x1fe503._0x189c6a,_0x1fe503._0x29aa09)){const _0x423c9c=typeof _0x4dfb3e['signature']==='string'?String(_0x4dfb3e[_0x3ad6d3(_0x1fe503._0x15c1de,_0x1fe503._0x2bec02,0x473,_0x1fe503._0x4ccae6)]):'';if(_0x423c9c[_0x2e9c88(0x311,0x346,0x330,0x370)]>0x0){_0x95cecb[_0x3ad6d3(_0x1fe503._0x40795f,_0x1fe503._0x4123de,_0x1fe503._0x200547,_0x1fe503._0x47b16e)]=_0x423c9c;if(isUserVisibleThinking(this['request']))return[{'type':'anthropic_signature_delta','index':_0x52dfc5,'signature':_0x423c9c}];}}break;}case'message_delta':{const _0xa378cb=_0x3f961d[_0x2e9c88(_0x1fe503._0x2f908a,_0x1fe503._0x524c78,0x1fa,_0x1fe503._0x273b9e)],_0x2ad2bd=_0x3f961d[_0x3ad6d3(_0x1fe503._0x1d0113,_0x1fe503._0x5d6d67,_0x1fe503._0x15e33a,0x502)];this[_0x3ad6d3(_0x1fe503._0x1db590,0x682,_0x1fe503._0x247a25,0x5d9)]=_0x2ad2bd?.['input_tokens']??this[_0x3ad6d3(_0x1fe503._0x11aff8,0x605,0x620,_0x1fe503._0x34cfbe)],this[_0x3ad6d3(0x5cf,_0x1fe503._0x197d88,0x617,0x61d)]=_0x2ad2bd?.[_0x3ad6d3(_0x1fe503._0xdf279a,0x546,0x5c5,_0x1fe503._0x334e43)]??this[_0x2e9c88(0x3e4,_0x1fe503._0x53007d,0x35d,0x42f)],this[_0x2e9c88(_0x1fe503._0x3b6feb,0x331,_0x1fe503._0x3bf703,0x305)]=_0x2ad2bd?.[_0x3ad6d3(0x63b,0x645,_0x1fe503._0x44ad60,0x4ec)]??this['cacheCreationInputTokens'],this[_0x2e9c88(_0x1fe503._0x3570b3,0x15e,0x20b,0x14c)]=_0x2ad2bd?.['output_tokens']??this[_0x3ad6d3(_0x1fe503._0x3d2852,0x479,0x4c5,0x4fd)],this['stopReason']=_0xa378cb?.[_0x2e9c88(_0x1fe503._0x5a57c4,0x314,_0x1fe503._0x3f7f98,_0x1fe503._0x5dba33)]===_0x2e9c88(_0x1fe503._0x5a3652,0x249,0x2f6,_0x1fe503._0xdd6cd7)?'tool_use':'end_turn';break;}case _0x3ad6d3(_0x1fe503._0x2b05fe,_0x1fe503._0x1e8f3c,0x47d,_0x1fe503._0xd53155):{const _0x1bd821=_0x3f961d[_0x2e9c88(0x24c,_0x1fe503._0x3ab83a,_0x1fe503._0x4a241a,0x1c3)];throw new ProviderStreamEventError(_0x1bd821?.[_0x3ad6d3(0x541,0x619,_0x1fe503._0x1ca90e,_0x1fe503._0x43df79)]??_0x3ad6d3(0x5e3,_0x1fe503._0x41087f,_0x1fe503._0x50a69f,_0x1fe503._0x517f95),{'code':_0x1bd821?.['type'],'retryable':!![]});}}return[];}['finish'](){const _0x261959={_0x52dd0d:0x565,_0x5df74e:0x38f,_0x203718:0x3e0,_0x4e8471:0x30f,_0xe7be5:0x486,_0x30497f:0x5c2,_0x2d6639:0x403,_0x7cad09:0x45e,_0xa54ffd:0x383,_0x14a956:0x494,_0x418828:0x55c,_0x2c9ad9:0x4ec,_0x53f92d:0x4da,_0x1962a5:0x4e4,_0x3a0242:0x4bf,_0xa373f6:0x55a,_0x1fe029:0x403,_0x626131:0x4b0,_0xc03f70:0x534,_0x5468d5:0x4e1,_0xe09ea9:0x4a4,_0x22d7d7:0x3eb,_0x883534:0x363,_0x23da25:0x430,_0x28aef7:0x3dd,_0x4f46cc:0x453,_0x261bae:0x408,_0x362dcb:0x504,_0x3e5931:0x4e5,_0x582c66:0x513,_0x2f3112:0x471,_0x58d8dd:0x520,_0x45d001:0x4e7,_0x590ee3:0x54c,_0xc307b8:0x4c9,_0x533670:0x4b6,_0x25a027:0x4da,_0x1a2883:0x57c,_0x5b158c:0x5a1,_0xbfc6a5:0x592,_0x32af4a:0x4d3,_0x135ce1:0x42c,_0x363a70:0x55e,_0x16c220:0x4d7,_0x399ceb:0x586,_0x413b81:0x537,_0x1938ac:0x510,_0x118bdd:0x4e3,_0x353ed4:0x30e,_0x106011:0x490,_0x290623:0x48f,_0x538cfd:0x400,_0x245c44:0x461,_0x5812ee:0x3be},_0x39debe={_0x2757b7:0x5c1,_0x477150:0x117},_0x133ae9={_0x5bfc71:0x16e,_0x3720e0:0x7b},_0x3c95ce=Array[_0x512eb3(0x487,_0x261959._0x52dd0d,0x4b3,0x4a9)](this[_0x512eb3(_0x261959._0x5df74e,_0x261959._0x203718,_0x261959._0x4e8471,0x35d)][_0x1a91d8(0x54e,0x4fc,0x4f6,0x553)]())[_0x1a91d8(0x5f2,_0x261959._0xe7be5,0x558,_0x261959._0x30497f)]((_0x356209,_0x1b3b8e)=>_0x356209[_0x1a91d8(0x4b1,0x467,0x50c,0x4fb)]-_0x1b3b8e[_0x1a91d8(0x454,0x4eb,0x50c,0x4e3)]);function _0x512eb3(_0x263dc2,_0x1270f8,_0x5977d6,_0x2baa70){return _0x5a1062(_0x263dc2-0x1ae,_0x1270f8,_0x5977d6-_0x133ae9._0x5bfc71,_0x2baa70-_0x133ae9._0x3720e0);}function _0x1a91d8(_0x1d3d15,_0x5d1874,_0xd9ac2b,_0x358e68){return _0x1a8b4d(_0x1d3d15,_0xd9ac2b-_0x39debe._0x2757b7,_0xd9ac2b-0x9c,_0x358e68-_0x39debe._0x477150);}const _0x25fbe7=[];for(const _0xc013fe of _0x3c95ce){if(_0xc013fe['kind']===_0x512eb3(_0x261959._0x2d6639,0x32e,_0x261959._0x7cad09,_0x261959._0xa54ffd)){_0xc013fe[_0x1a91d8(_0x261959._0x14a956,_0x261959._0x418828,_0x261959._0x2c9ad9,0x51b)][_0x512eb3(_0x261959._0x53f92d,_0x261959._0x1962a5,0x477,0x5ac)]>0x0&&_0x25fbe7[_0x1a91d8(_0x261959._0x3a0242,0x5c2,_0x261959._0xa373f6,0x5e7)]({'type':_0x512eb3(_0x261959._0x1fe029,0x4f1,0x4f0,0x3aa),'text':_0xc013fe[_0x1a91d8(_0x261959._0x626131,0x4a8,_0x261959._0x2c9ad9,0x451)]});continue;}if(_0xc013fe[_0x512eb3(0x4cb,_0x261959._0xc03f70,0x44e,_0x261959._0x5468d5)]===_0x1a91d8(0x41a,0x3cd,_0x261959._0xe09ea9,0x3ce)){_0x25fbe7[_0x1a91d8(0x608,0x5c1,_0x261959._0xa373f6,0x4bc)]({'type':'thinking','thinking':_0xc013fe[_0x512eb3(0x3bb,_0x261959._0x22d7d7,0x2e9,0x35e)],'signature':_0xc013fe[_0x512eb3(_0x261959._0x883534,_0x261959._0x23da25,_0x261959._0x28aef7,0x331)]});continue;}if(_0xc013fe[_0x512eb3(0x4cb,_0x261959._0x4f46cc,0x5b8,_0x261959._0x261bae)]==='redacted_thinking'){_0x25fbe7[_0x1a91d8(_0x261959._0x362dcb,_0x261959._0x3e5931,0x55a,_0x261959._0x582c66)]({'type':'redacted_thinking','data':_0xc013fe['data']});continue;}_0x25fbe7[_0x512eb3(_0x261959._0x2f3112,_0x261959._0x5df74e,_0x261959._0x58d8dd,0x471)]({'type':'tool_use','id':_0xc013fe['id'],'name':_0xc013fe[_0x512eb3(_0x261959._0x45d001,0x5a6,0x54f,_0x261959._0x590ee3)],'input':parseToolInput(_0xc013fe[_0x512eb3(0x3ea,_0x261959._0xc307b8,_0x261959._0x533670,0x43c)][_0x512eb3(_0x261959._0x25a027,0x516,_0x261959._0x1a2883,_0x261959._0x5b158c)]>0x0?_0xc013fe[_0x1a91d8(_0x261959._0xbfc6a5,0x3eb,_0x261959._0x32af4a,0x514)]:'{}')});}return parseAnthropicResponse({'id':this[_0x512eb3(_0x261959._0x135ce1,0x40b,0x4e9,0x3ad)],'type':'message','role':_0x512eb3(0x4fa,_0x261959._0x363a70,_0x261959._0x16c220,_0x261959._0x399ceb),'content':_0x25fbe7,'stop_reason':this[_0x1a91d8(_0x261959._0x413b81,0x689,0x600,0x55a)],'stop_sequence':null,'usage':{'input_tokens':this[_0x512eb3(_0x261959._0x1938ac,0x562,0x57f,_0x261959._0x118bdd)],'output_tokens':this[_0x512eb3(0x3b5,0x2d2,0x47d,_0x261959._0x353ed4)],'cache_read_input_tokens':this[_0x512eb3(0x507,0x5f4,_0x261959._0x106011,0x4a3)],'cache_creation_input_tokens':this[_0x512eb3(_0x261959._0x290623,_0x261959._0x538cfd,_0x261959._0x245c44,0x3e3)]}},this[_0x512eb3(_0x261959._0x5812ee,0x39d,0x2fd,0x458)]);}};function createAnthropicSurfaces(){const _0x795b5f={_0xde924c:0x343,_0x596495:0x259,_0x20363e:0x47f,_0x45d3e9:0x451,_0x37e72e:0x46f},_0x602273={_0x1dbfb9:0x87};function _0x3e8993(_0x175af1,_0x5b2317,_0x9580e6,_0x11a2c6){return _0x5a1062(_0x9580e6-0x11f,_0x11a2c6,_0x9580e6-0xe5,_0x11a2c6-0x59);}function _0x4a4a19(_0x1ae354,_0x437cac,_0x56e3d3,_0x23bc2d){return _0x5a1062(_0x1ae354-0x72,_0x23bc2d,_0x56e3d3-_0x602273._0x1dbfb9,_0x23bc2d-0x12e);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x3e8993(0x2e7,_0x795b5f._0xde924c,0x323,_0x795b5f._0x596495),'createRequest'(_0xf12e5c){return createAnthropicRequest(_0xf12e5c,![]);},'parseResponse'(_0x114da6,_0x141f9c){return parseAnthropicResponse(_0x114da6,_0x141f9c);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x3e8993(_0x795b5f._0x20363e,_0x795b5f._0x45d3e9,_0x795b5f._0x37e72e,0x50e),'createRequest'(_0x499f70){return createAnthropicRequest(_0x499f70,!![]);},'createStreamParser'(_0x3421d2){return new AnthropicMessagesStreamParser(_0x3421d2);}}];}var StaticModelSurfaceRouter=class{[_0x5a1062(0x1d2,0x141,0x267,0x1bc)];[_0x1a8b4d(-0x2b,-0x26,-0xdf,-0x1e)];constructor(_0x502b92){const _0x4f3243={_0x6a4bb4:0x17b,_0x1e6bdc:0x17f,_0x2babd3:0x1cc,_0x848ee4:0x2be,_0x49194a:0x1a6,_0x4d092f:0x1d0},_0x43d582={_0x3904fa:0x194},_0x5dedc2={_0x58682a:0x13b};function _0x2f8177(_0x41e3b3,_0x4aae5c,_0x57fbbe,_0xcf442a){return _0x5a1062(_0x57fbbe-0x54,_0x4aae5c,_0x57fbbe-0xcf,_0xcf442a-_0x5dedc2._0x58682a);}this['completeSurface']=_0x502b92[_0x49239b(0x217,_0x4f3243._0x6a4bb4,_0x4f3243._0x1e6bdc,0x1ea)];function _0x49239b(_0xaa6fb1,_0x437c76,_0x220dd4,_0x202d1f){return _0x5a1062(_0x202d1f- -0x143,_0x437c76,_0x220dd4-0xcf,_0x202d1f-_0x43d582._0x3904fa);}this[_0x49239b(_0x4f3243._0x2babd3,0x10d,0x283,0x1c1)]=_0x502b92[_0x49239b(_0x4f3243._0x848ee4,_0x4f3243._0x49194a,0xed,_0x4f3243._0x4d092f)];}['selectSurface'](_0x3d3754,_0x157bcb){const _0x2146ef={_0x493d6b:0x2a5,_0x54566f:0x35c,_0x428a04:0x307,_0x3cb4fc:0xb9,_0x33fc61:0x134,_0xd7a127:0x182,_0x24bce6:0x19a,_0x14ded8:0x50,_0x4e032c:0xcf},_0x1ed9e0={_0x5576ca:0x132},_0x5d846f={_0x2397ab:0x67};function _0x5c9474(_0x34bc86,_0x4abaaf,_0x1474f9,_0x3b971a){return _0x1a8b4d(_0x4abaaf,_0x1474f9-0x1a8,_0x1474f9-_0x5d846f._0x2397ab,_0x3b971a-0x16b);}function _0x182a7b(_0x749ab6,_0x404c03,_0x4665d0,_0xe3e22d){return _0x5a1062(_0x749ab6-0x49,_0xe3e22d,_0x4665d0-0x9a,_0xe3e22d-_0x1ed9e0._0x5576ca);}return _0x157bcb[_0x182a7b(_0x2146ef._0x493d6b,0x368,0x1f4,0x2ef)]===_0x182a7b(_0x2146ef._0x54566f,0x3d0,_0x2146ef._0x428a04,0x3d7)?this[_0x5c9474(_0x2146ef._0x3cb4fc,_0x2146ef._0x33fc61,_0x2146ef._0xd7a127,_0x2146ef._0x24bce6)]:this[_0x5c9474(0x24,0x81,_0x2146ef._0x14ded8,_0x2146ef._0x4e032c)];}};function trimTrailingSlashes(_0x4e9079){const _0x4343e3={_0x2c72ca:0xc7,_0x197c72:0x6c},_0x2661b0={_0x388359:0x36b,_0x57d643:0xf7};function _0x45dd4f(_0x4da1f1,_0x10d026,_0x234aa4,_0x26826a){return _0x5a1062(_0x4da1f1- -_0x2661b0._0x388359,_0x234aa4,_0x234aa4-0x1f4,_0x26826a-_0x2661b0._0x57d643);}return _0x4e9079[_0x45dd4f(-0x2f,-0xe,-_0x4343e3._0x2c72ca,_0x4343e3._0x197c72)](/\/+$/,'');}function resolveApiCredential(_0x5ef3c4,_0x334ecd){const _0x35c5ed={_0xfafdb3:0x45,_0x542718:0x44,_0x339912:0x1f,_0xb03612:0x59,_0xc0d0a1:0x59},_0x318bd8={_0x3fca51:0xe4,_0x20ee45:0x76};function _0x2d8cbf(_0x4d8e6f,_0x584f5c,_0x353e6d,_0x5993ff){return _0x1a8b4d(_0x4d8e6f,_0x584f5c-0xfc,_0x353e6d-0x159,_0x5993ff-0x47);}function _0x113496(_0x10cd30,_0x192d21,_0x268e2f,_0x1767cf){return _0x5a1062(_0x1767cf- -0x210,_0x192d21,_0x268e2f-_0x318bd8._0x3fca51,_0x1767cf-_0x318bd8._0x20ee45);}if(_0x334ecd?.[_0x2d8cbf(-_0x35c5ed._0xfafdb3,0x44,0x6f,-0x86)])return _0x334ecd[_0x2d8cbf(0xf8,_0x35c5ed._0x542718,0xf1,0xd6)];if(!_0x5ef3c4)return void 0x0;return{'kind':_0x2d8cbf(0x76,_0x35c5ed._0x339912,_0x35c5ed._0xb03612,-_0x35c5ed._0xc0d0a1),'value':_0x5ef3c4};}function resolveSessionBaseUrl(_0x52a71a,_0x4bfc89){const _0x2876aa={_0x2c5dbb:0x25a,_0x4825bd:0x3e6,_0xed3c34:0x449,_0x961e80:0x3fe},_0x5794c7={_0x359d85:0x130,_0x59dcf6:0x16e};function _0x43cef5(_0x35e90e,_0x344979,_0x4bd52c,_0x442a0f){return _0x5a1062(_0x35e90e-0x1e5,_0x4bd52c,_0x4bd52c-0x29,_0x442a0f-0x14d);}function _0x112fbd(_0xc4ba3a,_0x4b7126,_0x363789,_0x5ad5ca){return _0x5a1062(_0x363789- -0x74,_0xc4ba3a,_0x363789-_0x5794c7._0x359d85,_0x5ad5ca-_0x5794c7._0x59dcf6);}return trimTrailingSlashes(_0x4bfc89?.[_0x112fbd(_0x2876aa._0x2c5dbb,0x33c,0x2c9,0x38f)]?.[_0x43cef5(_0x2876aa._0x4825bd,_0x2876aa._0xed3c34,0x3a6,_0x2876aa._0x961e80)]??_0x52a71a);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':'gpt-4o','cliDefaultModel':_0x5a1062(0x1d8,0x14e,0xea,0x251),'providers':{'anthropic':{'label':_0x5a1062(0x28e,0x318,0x28d,0x30e),'baseUrl':_0x5a1062(0x268,0x1cd,0x23c,0x1d7),'surface':'anthropic-messages','authScheme':_0x5a1062(0x308,0x3c7,0x2c4,0x2d6),'defaultModel':_0x1a8b4d(0x6f,0x3a,-0x77,0x8c),'defaultModels':[_0x1a8b4d(0x57,0x3a,0xd8,0xbf),'claude-3-5-sonnet-20241022'],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x1a8b4d(0x20,-0xa1,-0x1b,0x4a),'baseUrl':_0x5a1062(0x1f3,0x128,0x2dd,0x2c2),'anthropicBaseUrl':_0x5a1062(0x27b,0x20a,0x290,0x2cb),'surface':_0x5a1062(0x286,0x205,0x21b,0x30c),'authScheme':_0x1a8b4d(0xd8,0x1c,-0x34,0x52),'defaultModel':_0x5a1062(0x1d8,0x15a,0xf7,0x2b2),'defaultModels':['glm-5.2',_0x1a8b4d(-0x12b,-0x53,0x5f,0x44),_0x1a8b4d(-0x119,-0x152,-0x23a,-0x20d),_0x1a8b4d(-0x167,-0xb7,-0xa3,-0x14d),'glm-4.5'],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x1f400},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':_0x1a8b4d(-0x1d9,-0x107,-0x1ee,-0x155),'baseUrl':_0x1a8b4d(0x9e,-0x14,0x80,0x40),'surface':_0x5a1062(0x2e8,0x237,0x30b,0x3c3),'authScheme':_0x5a1062(0x346,0x394,0x30b,0x409),'defaultModel':'openai/gpt-4o','defaultModels':['openai/gpt-4o',_0x1a8b4d(-0x103,-0x170,-0x198,-0x133)],'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':_0x1a8b4d(-0x64,-0x10b,-0xc6,-0x136),'surface':_0x5a1062(0x1ed,0x1c5,0x1d6,0x264),'defaultModel':'gpt-5.2-codex','defaultModels':[_0x1a8b4d(-0x9c,-0xf6,-0x19e,-0xb9),_0x1a8b4d(0x22,0x20,-0x10,0x34),_0x5a1062(0x371,0x2eb,0x2e7,0x417),_0x5a1062(0x258,0x2cc,0x24c,0x26d),_0x5a1062(0x1fa,0x1d2,0x2ae,0x237),_0x1a8b4d(-0x7b,0x17,0xfe,-0x98)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x5a1062(0x286,0x2ef,0x350,0x36d)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x5a1062(0x286,0x1f3,0x23e,0x2e1)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'openai':{'label':_0x1a8b4d(-0xea,-0x148,-0x176,-0xc7),'baseUrl':_0x5a1062(0x245,0x2e3,0x175,0x1e3),'surface':'openai-chat-completions','authScheme':'bearer','defaultModel':_0x5a1062(0x1ab,0x218,0x16e,0xf2),'defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x5a1062(0x2a9,0x22a,0x33d,0x2e7),'baseUrl':_0x5a1062(0x365,0x2e7,0x303,0x44e),'surface':_0x1a8b4d(-0x16d,-0xa4,-0x43,-0x12d),'authScheme':'bearer','defaultModel':'deepseek-v4-pro','defaultModels':['deepseek-v4-pro',_0x1a8b4d(-0x13e,-0x180,-0x258,-0x1d0)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x5a1062(0x1d1,0x29e,0x24b,0x20b),'baseUrl':_0x1a8b4d(-0x7a,-0x32,-0x54,-0x11d),'surface':_0x1a8b4d(-0xd1,-0xa4,-0xf2,-0x93),'authScheme':_0x1a8b4d(-0x87,0x1c,0xe7,-0xd0),'defaultModel':_0x5a1062(0x287,0x2bc,0x29b,0x1c1),'defaultModels':['MiniMax-M3'],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x5a1062(0x2d1,0x292,0x223,0x2a4),'baseUrl':_0x1a8b4d(-0x31,-0x6e,-0x151,0x21),'modelsBaseUrl':_0x5a1062(0x32e,0x309,0x254,0x2e0),'surface':_0x5a1062(0x286,0x1cf,0x20d,0x2ec),'authScheme':_0x1a8b4d(-0x103,-0x22,-0x27,-0x7c),'defaultModel':_0x5a1062(0x364,0x35a,0x305,0x397),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x1a8b4d(-0x199,-0x17e,-0x1a5,-0xe9),'baseUrl':_0x1a8b4d(0x62,-0x7d,-0x9e,-0x6f),'modelsBaseUrl':_0x1a8b4d(0x90,-0x2a,-0x77,-0xd1),'surface':_0x1a8b4d(0x4a,-0xa4,-0x97,-0xb6),'authScheme':_0x5a1062(0x308,0x29c,0x29c,0x33e),'defaultModel':_0x1a8b4d(0x16,-0x78,0x2c,-0x15d),'defaultModels':['mimo-v2.5-pro'],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default;function findProviderKey(_0x4da0ec){const _0x1d2b7={_0x1f0384:0x453,_0x670ef:0x333,_0xe4bea0:0x352,_0x4e6ce0:0x4fd,_0xd15107:0x5c5,_0x6c2cd2:0x684},_0x389078={_0x297bd1:0x3e0,_0x21f6e3:0x12a},_0x2f32d9={_0x5d117d:0x127,_0x4dac24:0x11a,_0x1597c2:0xc},_0x5380b8=_0x4da0ec['toLowerCase']();function _0x1d55d3(_0x446ec4,_0x2e3f11,_0x480659,_0x75cb99){return _0x5a1062(_0x446ec4-_0x2f32d9._0x5d117d,_0x75cb99,_0x480659-_0x2f32d9._0x4dac24,_0x75cb99-_0x2f32d9._0x1597c2);}function _0x49068c(_0x2d49ee,_0x3eb491,_0x225aff,_0x4681fc){return _0x5a1062(_0x225aff-_0x389078._0x297bd1,_0x2d49ee,_0x225aff-_0x389078._0x21f6e3,_0x4681fc-0xc8);}return Object[_0x1d55d3(0x3b4,_0x1d2b7._0x1f0384,_0x1d2b7._0x670ef,_0x1d2b7._0xe4bea0)](data[_0x49068c(0x4eb,_0x1d2b7._0x4e6ce0,_0x1d2b7._0xd15107,_0x1d2b7._0x6c2cd2)])['find'](_0x51f1cd=>_0x51f1cd[_0x49068c(0x563,0x66f,0x646,0x597)]()===_0x5380b8);}function getProviderProfile(_0x4cd2f5){const _0x1084f6={_0x9466e2:0x63e,_0x3b581f:0x412,_0x1c608e:0x509,_0x2c5624:0x58c,_0x1a5834:0x4ec,_0x3ca622:0x578,_0x545352:0x513,_0x4b6ed5:0x572,_0x284cdf:0x6be,_0x4cb6cb:0x4bf,_0xce01eb:0x5b8},_0x52d5c7={_0x52d550:0x353,_0x47bd8a:0x1e4},_0x514f0f={_0x497f33:0x18c};function _0x9217ba(_0x5ec8d1,_0x446a40,_0x2e6c2b,_0x592c0f){return _0x5a1062(_0x5ec8d1-0x313,_0x446a40,_0x2e6c2b-0xf0,_0x592c0f-_0x514f0f._0x497f33);}const _0x14d891=findProviderKey(_0x4cd2f5);if(!_0x14d891)return void 0x0;const _0x262b81=data['providers'][_0x14d891];function _0x35977e(_0x261523,_0x588db8,_0x484285,_0xe819db){return _0x5a1062(_0xe819db-_0x52d5c7._0x52d550,_0x261523,_0x484285-_0x52d5c7._0x47bd8a,_0xe819db-0x42);}const _0x3f52cc={};for(const [_0x372bfb,_0xcc960c]of Object[_0x35977e(0x699,0x6c3,0x72b,_0x1084f6._0x9466e2)](_0x262b81[_0x9217ba(0x4d4,_0x1084f6._0x3b581f,_0x1084f6._0x1c608e,_0x1084f6._0x2c5624)])){_0x3f52cc[_0x372bfb]=_0xcc960c;}return{'label':_0x262b81[_0x35977e(0x450,_0x1084f6._0x1a5834,_0x1084f6._0x3ca622,_0x1084f6._0x545352)],'baseUrl':_0x262b81[_0x9217ba(0x66d,0x6db,0x720,0x612)],'modelsBaseUrl':_0x262b81[_0x35977e(0x5d0,0x68e,0x5fc,0x617)],'anthropicBaseUrl':_0x262b81['anthropicBaseUrl'],'surface':_0x262b81[_0x9217ba(0x648,_0x1084f6._0x4b6ed5,_0x1084f6._0x284cdf,0x5d9)],'authScheme':_0x262b81[_0x35977e(0x56d,0x5cc,0x590,0x591)],'defaultModel':_0x262b81['defaultModel'],'defaultModels':_0x262b81[_0x35977e(_0x1084f6._0x4cb6cb,_0x1084f6._0xce01eb,0x59e,0x5a7)]??[],'supportsModelFetch':_0x262b81['supportsModelFetch']??![],'models':_0x3f52cc};}function getModelProfile(_0x491bd8,_0x1eb9d8){const _0x22aa9a={_0x40e4b3:0x278,_0x5f2c41:0x1b5,_0x31ea7f:0x1c0,_0x339cbb:0x35c,_0xbca1b5:0x23c,_0x59ceca:0x23d,_0x573396:0x2d6},_0x1a0152={_0x5674e6:0x92},_0xe591b={_0x4bd542:0x13};function _0x3fa5b3(_0x558d85,_0x17b917,_0x297092,_0x431b7e){return _0x5a1062(_0x558d85-0x320,_0x17b917,_0x297092-0x11f,_0x431b7e-_0xe591b._0x4bd542);}const _0x32b6b6=findProviderKey(_0x491bd8);if(!_0x32b6b6)return void 0x0;function _0x8000b(_0x20a5a8,_0x44943b,_0x2cfdb4,_0x5b26e9){return _0x5a1062(_0x20a5a8-0x93,_0x44943b,_0x2cfdb4-_0x1a0152._0x5674e6,_0x5b26e9-0x1cf);}return data[_0x8000b(_0x22aa9a._0x40e4b3,_0x22aa9a._0x5f2c41,_0x22aa9a._0x31ea7f,_0x22aa9a._0x339cbb)][_0x32b6b6][_0x8000b(0x254,_0x22aa9a._0xbca1b5,_0x22aa9a._0x59ceca,_0x22aa9a._0x573396)][_0x1eb9d8];}function resolveModelProfile(_0x12e806,_0x5bf849){const _0x4421f6={_0x4f51e2:0x3be,_0x29bb14:0x316,_0xc02494:0x3d7,_0x32f567:0x2df,_0x2a5a4b:0x3b2,_0x5a2cdf:0x313,_0x46fc33:0x13e,_0x5318b7:0x18c,_0x5aefbe:0x1fc,_0x438788:0x47b,_0x1c6351:0x42b,_0x4d9017:0x426,_0x3fc56b:0x35c,_0x337f5f:0x27d,_0x1bfb9c:0x2c6,_0x445350:0x3fc,_0x48ff21:0x38,_0xb112dd:0x11b,_0x26b5e2:0xf4,_0x16a57f:0x234,_0x3c4ff3:0x2f5,_0x13be8e:0x12e,_0x60c673:0x144,_0x1d43b9:0x1c8,_0x23caeb:0x2b1,_0x299908:0x1d0,_0x22e3e4:0xf8},_0x401993={_0x3f3345:0x1f1},_0x4ad84c={_0xf50ff0:0x448,_0x534d6b:0xf9},_0x4be508=findProviderKey(_0x12e806);if(!_0x4be508)return void 0x0;const _0xe36a3b=data[_0x1dae4a(_0x4421f6._0x4f51e2,0x303,_0x4421f6._0x29bb14,_0x4421f6._0xc02494)][_0x4be508],_0x3c0a09=_0xe36a3b[_0x1dae4a(0x320,_0x4421f6._0x32f567,0x39e,0x28e)][_0x5bf849];function _0x1dae4a(_0xcb5e75,_0x54b1d3,_0x5000e4,_0x2bb44d){return _0x1a8b4d(_0x5000e4,_0x54b1d3-_0x4ad84c._0xf50ff0,_0x5000e4-_0x4ad84c._0x534d6b,_0x2bb44d-0xf3);}function _0x32f05b(_0xe41337,_0xff1967,_0x192405,_0x5e5f63){return _0x1a8b4d(_0xe41337,_0xff1967-_0x401993._0x3f3345,_0x192405-0x1c0,_0x5e5f63-0x5a);}return{'label':_0xe36a3b[_0x1dae4a(0x3aa,0x2de,_0x4421f6._0x2a5a4b,0x2ce)],'baseUrl':_0xe36a3b['baseUrl'],'modelsBaseUrl':_0xe36a3b[_0x1dae4a(_0x4421f6._0x5a2cdf,0x3e2,0x303,0x465)],'anthropicBaseUrl':_0xe36a3b[_0x32f05b(0x191,0x149,_0x4421f6._0x46fc33,0x106)],'surface':_0x3c0a09?.[_0x32f05b(_0x4421f6._0x5318b7,_0x4421f6._0x5aefbe,0x163,0x2df)]??_0xe36a3b[_0x1dae4a(0x51c,0x453,_0x4421f6._0x438788,_0x4421f6._0x1c6351)],'authScheme':_0xe36a3b[_0x1dae4a(_0x4421f6._0x4d9017,_0x4421f6._0x3fc56b,_0x4421f6._0x337f5f,_0x4421f6._0x1bfb9c)],'defaultModel':_0xe36a3b[_0x1dae4a(0x4db,_0x4421f6._0x445350,0x38d,0x3d0)],'defaultModels':_0xe36a3b[_0x32f05b(_0x4421f6._0x48ff21,_0x4421f6._0xb112dd,0x206,_0x4421f6._0x26b5e2)],'supportsModelFetch':_0xe36a3b[_0x1dae4a(0x2b5,0x2e3,_0x4421f6._0x16a57f,_0x4421f6._0x3c4ff3)],'contextWindow':_0x3c0a09?.[_0x32f05b(_0x4421f6._0x13be8e,0x1c3,_0x4421f6._0x60c673,_0x4421f6._0x1d43b9)],'maxOutput':_0x3c0a09?.[_0x32f05b(_0x4421f6._0x23caeb,_0x4421f6._0x299908,0x280,_0x4421f6._0x22e3e4)]};}function getDefaultMaxTokens(){const _0x557f17={_0x18a973:0x3cb,_0xc02ec2:0x3a2,_0x2b993b:0x2fc},_0x53cf5b={_0x124a34:0x7d,_0x12e2cd:0x94};function _0x17bc69(_0xb813c,_0xf3c2ba,_0x3477dd,_0x4ccd9e){return _0x5a1062(_0xb813c-0x183,_0x3477dd,_0x3477dd-_0x53cf5b._0x124a34,_0x4ccd9e-_0x53cf5b._0x12e2cd);}return data[_0x17bc69(_0x557f17._0x18a973,_0x557f17._0xc02ec2,0x44b,_0x557f17._0x2b993b)];}function getDefaultModel(){const _0x2eebb9={_0xe18185:0x87,_0x5bd2a3:0x62},_0x408abd={_0x4722bf:0x153};function _0x5024a4(_0x2f1e1c,_0x14b06a,_0x23b80e,_0x56a0d6){return _0x1a8b4d(_0x2f1e1c,_0x14b06a-0x55,_0x23b80e-_0x408abd._0x4722bf,_0x56a0d6-0x43);}return data[_0x5024a4(-_0x2eebb9._0xe18185,0x9,_0x2eebb9._0x5bd2a3,0xda)];}function getCliDefaultModel(){return data['cliDefaultModel'];}function getProviderLabel(_0x525df6){const _0x52ef68={_0xda89e1:0x4d,_0x13a072:0x3c,_0x5359a3:0x26,_0x1281eb:0xd6},_0x55e2a6={_0x51177a:0xf8};function _0x5242ff(_0x409e68,_0x463c00,_0x501b83,_0x7ec350){return _0x1a8b4d(_0x463c00,_0x409e68-_0x55e2a6._0x51177a,_0x501b83-0x184,_0x7ec350-0xd5);}const _0x57bb6c=findProviderKey(_0x525df6);return _0x57bb6c?data[_0x5242ff(-_0x52ef68._0xda89e1,-_0x52ef68._0x13a072,-_0x52ef68._0x5359a3,-_0x52ef68._0x1281eb)][_0x57bb6c]['label']:void 0x0;}function getProviderDefaultModel(_0x498dc4){const _0x254c19={_0x22084b:0x12d},_0x3a6ad7={_0x254ed0:0x14a},_0x3e2826=findProviderKey(_0x498dc4);function _0x2eb426(_0x378e4a,_0x32d52f,_0xdec46,_0x379fcb){return _0x5a1062(_0x32d52f- -_0x3a6ad7._0x254ed0,_0x379fcb,_0xdec46-0x1c3,_0x379fcb-0xac);}if(!_0x3e2826)return void 0x0;return data[_0x2eb426(0xf2,0x9b,_0x254c19._0x22084b,0x159)][_0x3e2826]['defaultModel'];}function getProviderDefaultModels(_0xc31f3d){const _0x3f6171={_0x48cda7:0x27},_0x169ef4=findProviderKey(_0xc31f3d);if(!_0x169ef4)return[];function _0x33e5a1(_0x8c68b8,_0x5a02b4,_0x9b4a82,_0x521de6){return _0x1a8b4d(_0x5a02b4,_0x9b4a82-0x269,_0x9b4a82-_0x3f6171._0x48cda7,_0x521de6-0x109);}return[...data['providers'][_0x169ef4][_0x33e5a1(0x20d,0x186,0x193,0x1bb)]??[]];}function providerSupportsModelFetch(_0x593227){const _0x52270b=findProviderKey(_0x593227);if(!_0x52270b)return![];return data['providers'][_0x52270b]['supportsModelFetch']??![];}function _0x1a8b4d(_0x3a8013,_0x2400f3,_0x37d0eb,_0x517074){const _0x57b12e={_0x1e5a21:0x32c};return _0x377c(_0x2400f3- -_0x57b12e._0x1e5a21,_0x3a8013);}function getOnboardingProviderKeys(){const _0x5ee35b={_0x222589:0x118,_0x4496b5:0x137,_0x4f652f:0x10e,_0x2a7756:0xa5,_0x18c510:0xf8};function _0x471e82(_0x31082a,_0x25bf48,_0x5ecc0e,_0x3b33ea){return _0x5a1062(_0x3b33ea- -0x1b7,_0x25bf48,_0x5ecc0e-0x96,_0x3b33ea-0x1f2);}function _0x214f4f(_0x4513ae,_0xbebc13,_0x416ee8,_0x53ca1b){return _0x1a8b4d(_0x4513ae,_0xbebc13-0x1b5,_0x416ee8-0x16d,_0x53ca1b-0x40);}return Object[_0x214f4f(0x144,_0x5ee35b._0x222589,_0x5ee35b._0x4496b5,_0x5ee35b._0x4f652f)](data[_0x471e82(-_0x5ee35b._0x2a7756,_0x5ee35b._0x18c510,-0xaa,0x2e)]);}function toErrorMessage(_0x596eac){const _0x436006={_0x1d8aad:0x3e,_0x17a3cf:0x10f,_0xfbd920:0x146,_0x1a3491:0x3cf,_0x3e0e0a:0x41e,_0x5c8692:0x395},_0x2dae56={_0x4724f6:0x508},_0x538b37={_0x1ec8cd:0xb4};function _0x8bd73e(_0x3340e1,_0x533714,_0x438109,_0x1de962){return _0x5a1062(_0x1de962- -0x24c,_0x533714,_0x438109-_0x538b37._0x1ec8cd,_0x1de962-0xd0);}function _0x2e77e7(_0x52a1c3,_0xda7223,_0x459cd1,_0x270157){return _0x1a8b4d(_0x52a1c3,_0x459cd1-_0x2dae56._0x4724f6,_0x459cd1-0x41,_0x270157-0x42);}if(_0x596eac instanceof Error&&_0x596eac['message'][_0x8bd73e(0x1bd,0x13d,_0x436006._0x1d8aad,0xe0)]>0x0)return _0x596eac[_0x8bd73e(_0x436006._0x17a3cf,_0x436006._0x17a3cf,_0x436006._0xfbd920,0xd7)];return _0x2e77e7(_0x436006._0x1a3491,0x499,_0x436006._0x3e0e0a,_0x436006._0x5c8692);}function createDefaultWebSocketFactory(){return({headers:_0x5dcd82,url:_0x2a50c1})=>{const _0x39d9f4=globalThis['WebSocket'];return new _0x39d9f4(_0x2a50c1,{'headers':_0x5dcd82,'protocols':[]});};}async function*iterateSseEvents(_0x3545d2,_0x155230){const _0x2d48a3={_0x4c2e4a:0x7a,_0x333ef1:0x40,_0x695e07:0x4e,_0x2810a0:0x116,_0x3e0271:0xdd,_0x252c73:0x19a,_0x216f07:0x159,_0x4bdb68:0x2f2,_0x360c33:0x2df,_0x2998a8:0x2f6,_0x297d4a:0x3ab,_0x518f44:0x190,_0x3f78a8:0x26c,_0x19e6d0:0x15a,_0x57a882:0x190,_0x1a007f:0x176,_0x5c6906:0x3e0,_0x127159:0x3a0,_0x40684d:0x3e1,_0x1eb44d:0x199,_0x1f1cab:0x1f1},_0x4fa623={_0x1f019b:0xa,_0x160e0a:0xe2,_0x3b33cb:0x37,_0x3478c7:0x120,_0x46766b:0x60,_0x4d630f:0x7f},_0x3611d7={_0x49aa6d:0x1a5},_0x4f7ccf={_0x3e699b:0xb0},_0x3f3003=_0x3545d2[_0xa919a6(_0x2d48a3._0x4c2e4a,-0x5f,-0x6,0xc7)]?.[_0xa919a6(_0x2d48a3._0x333ef1,-_0x2d48a3._0x695e07,0x3b,_0x2d48a3._0x2810a0)]();function _0xa919a6(_0x31c43f,_0xe12456,_0x4067aa,_0x41a269){return _0x1a8b4d(_0x4067aa,_0x31c43f-0x16f,_0x4067aa-_0x4f7ccf._0x3e699b,_0x41a269-0x2d);}if(!_0x3f3003)return;const _0x1919d2=new TextDecoder('utf-8');let _0x521120='';function _0x1f35ac(_0x58adbe,_0x1d16c5,_0x3a835b,_0x21d861){return _0x1a8b4d(_0x58adbe,_0x21d861-0x466,_0x3a835b-0xba,_0x21d861-_0x3611d7._0x49aa6d);}const _0x25265e=addAbortListener(_0x155230,()=>{const _0x1dc0ae={_0x297a00:0xab,_0x4e7890:0x1a7};function _0x475aa(_0x485b50,_0x2d598c,_0x24e3c4,_0x313088){return _0x1f35ac(_0x485b50,_0x2d598c-_0x1dc0ae._0x297a00,_0x24e3c4-_0x1dc0ae._0x4e7890,_0x313088- -0x340);}function _0x39ce7f(_0x76cad,_0x4c54f3,_0x1eb741,_0x4d30f6){return _0xa919a6(_0x76cad-0x22f,_0x4c54f3-0x41,_0x4c54f3,_0x4d30f6-0xb7);}void _0x3f3003['cancel'](toAbortError(_0x155230?.[_0x475aa(0x6c,-_0x4fa623._0x1f019b,0x18a,_0x4fa623._0x160e0a)]))[_0x475aa(_0x4fa623._0x3b33cb,_0x4fa623._0x3478c7,_0x4fa623._0x46766b,_0x4fa623._0x4d630f)](()=>{});});try{while(!![]){throwIfAborted(_0x155230);const {value:_0x594a8e,done:_0x2bffdf}=await _0x3f3003[_0xa919a6(_0x2d48a3._0x3e0271,0x1c,_0x2d48a3._0x252c73,_0x2d48a3._0x216f07)]();throwIfAborted(_0x155230);if(_0x2bffdf)break;_0x521120+=_0x1919d2['decode'](_0x594a8e,{'stream':!![]});while(!![]){const _0x54cfe6=_0x521120[_0x1f35ac(_0x2d48a3._0x4bdb68,_0x2d48a3._0x360c33,_0x2d48a3._0x2998a8,_0x2d48a3._0x297d4a)]('\x0a\x0a');if(_0x54cfe6===-0x1)break;const _0x2998d6=_0x521120[_0xa919a6(_0x2d48a3._0x518f44,_0x2d48a3._0x3f78a8,0xf3,_0x2d48a3._0x19e6d0)](0x0,_0x54cfe6);_0x521120=_0x521120[_0xa919a6(_0x2d48a3._0x57a882,0x251,_0x2d48a3._0x1a007f,0x271)](_0x54cfe6+0x2),_0x2998d6[_0x1f35ac(0x38d,_0x2d48a3._0x5c6906,_0x2d48a3._0x127159,_0x2d48a3._0x40684d)]()['length']>0x0&&(yield _0x2998d6);}}_0x521120+=_0x1919d2[_0xa919a6(_0x2d48a3._0x1eb44d,_0x2d48a3._0x1f1cab,0xb6,0xde)](),throwIfAborted(_0x155230),_0x521120['trim']()['length']>0x0&&(yield _0x521120);}finally{_0x25265e();}}async function waitForWebSocketOpen(_0x2d1f3b,_0x219d3a){const _0x5f4ba0={_0x3ac35e:0x106,_0x436686:0xed,_0x116443:0x11b,_0x464360:0x4d},_0x33c543={_0x2be262:0x47e,_0x292793:0x381,_0x2315cd:0xc1,_0x1bd0ed:0x65,_0x182210:0x1bc,_0x532b3e:0xb6,_0x5221dc:0x149},_0x23693={_0xe99c85:0x1e5},_0x500d41={_0x5ba2c8:0x30e,_0x3852b6:0x32f,_0x1124e8:0x20e,_0x58a06c:0x14c,_0x8fb2d5:0x2db,_0x12192b:0x2bf,_0x197a5c:0x32e,_0x34004f:0xab,_0x4e6c65:0x37,_0x5afdaa:0x51,_0x2280b8:0x227,_0x5f6dfc:0x398,_0x2b581d:0x216,_0x1dde8b:0x2a9,_0x46f5db:0x1c9,_0x193c7c:0x265,_0x35fc6e:0x383,_0x51532f:0x3c3,_0x4c19b8:0x2fd,_0x397610:0x3f6},_0x1d5821={_0x54f729:0x4ad,_0x4e7c3b:0x425,_0x5a45dd:0x3d7,_0x239f00:0x4a5,_0xeac817:0x56a},_0x101cc8={_0x62291a:0x66,_0x35ed50:0x15b},_0x1de15f={_0x4da5d5:0x154,_0x2018d2:0xe0,_0x2cf544:0x17f},_0x2416cd={_0x5d6e26:0xbd,_0xaa1862:0x92};if(_0x2d1f3b[_0x11cb54(0x11e,_0x5f4ba0._0x3ac35e,_0x5f4ba0._0x436686,_0x5f4ba0._0x116443)]===WebSocket[_0x11cb54(0x48,_0x5f4ba0._0x464360,0x5,-0x19)]){throwIfAborted(_0x219d3a);return;}throwIfAborted(_0x219d3a);function _0x382e46(_0x362120,_0x515f0,_0xf033c3,_0x819410){return _0x5a1062(_0x515f0-0x153,_0xf033c3,_0xf033c3-_0x2416cd._0x5d6e26,_0x819410-_0x2416cd._0xaa1862);}function _0x11cb54(_0x11dbd9,_0x100536,_0x5cf5c6,_0x33d4de){return _0x1a8b4d(_0x100536,_0x33d4de-_0x1de15f._0x4da5d5,_0x5cf5c6-_0x1de15f._0x2018d2,_0x33d4de-_0x1de15f._0x2cf544);}await new Promise((_0x3a2689,_0xabcbb9)=>{const _0x2d7254={_0x3c5680:0x649,_0x55fde0:0x634,_0x5ed837:0x21f,_0x53c2bc:0x5f9,_0x5ef23a:0xf6},_0x3638d2={_0x6b6f12:0x66a,_0x16b07b:0x548,_0x112a31:0x4be,_0x41bc6d:0x4a5},_0x8680a6=()=>{_0x981d58(),_0x3a2689();};function _0xfbe31(_0x3959d5,_0x94588a,_0x5e3912,_0x183861){return _0x11cb54(_0x3959d5-0xf8,_0x5e3912,_0x5e3912-_0x101cc8._0x62291a,_0x94588a- -_0x101cc8._0x35ed50);}const _0x4909c5=_0x212a89=>{function _0x3b01fb(_0x178f66,_0x5b9b3e,_0x4e3def,_0x401dee){return _0x377c(_0x4e3def-0x34,_0x5b9b3e);}function _0x4b845c(_0x31517b,_0x159f75,_0xd36c14,_0x5d384c){return _0x377c(_0xd36c14-0x27c,_0x159f75);}_0x981d58(),_0xabcbb9(new Error(_0x212a89[_0x4b845c(0x538,_0x3638d2._0x6b6f12,0x5a1,0x64b)]||_0x4b845c(_0x3638d2._0x16b07b,0x3d4,_0x3638d2._0x112a31,_0x3638d2._0x41bc6d)));},_0x5b05dc=_0x3f8c4f=>{const _0x5f03c0={_0x586a45:0x1c5};function _0x37661c(_0x5bdffc,_0x5b555b,_0x4c819d,_0x1994d5){return _0x377c(_0x5bdffc-_0x5f03c0._0x586a45,_0x5b555b);}_0x981d58();function _0x5688cc(_0x58df2e,_0x4e1e1f,_0xa61d13,_0x341393){return _0x377c(_0xa61d13- -0x1ef,_0x341393);}const _0x225023=_0x3f8c4f;_0xabcbb9(new Error(_0x225023[_0x37661c(_0x1d5821._0x54f729,_0x1d5821._0x4e7c3b,_0x1d5821._0x5a45dd,0x592)]||_0x37661c(0x50e,_0x1d5821._0x239f00,0x527,_0x1d5821._0xeac817)));},_0x9942fa=()=>{_0x981d58();_0x2d1f3b[_0x2f5dcc(0x5f9,_0x2d7254._0x3c5680,_0x2d7254._0x55fde0,0x6a9)]===WebSocket[_0x527403(-_0x2d7254._0x5ed837,-0x14c,-0x159,-0x1fd)]&&_0x2d1f3b['close'](0x3e8,_0x2f5dcc(0x565,0x653,0x571,_0x2d7254._0x53c2bc));function _0x527403(_0x4fc185,_0x2704f0,_0x20c6bb,_0x44aa18){return _0x377c(_0x4fc185- -0x3de,_0x20c6bb);}function _0x2f5dcc(_0xd4ed96,_0x3a3a62,_0x959e5d,_0x352c76){return _0x377c(_0x352c76-0x3b6,_0x3a3a62);}_0xabcbb9(toAbortError(_0x219d3a?.[_0x527403(-_0x2d7254._0x5ef23a,-0x195,-0xa7,-0x6c)]));},_0x981d58=()=>{_0x2d1f3b[_0x54d46e(_0x500d41._0x5ba2c8,0x259,0x374,_0x500d41._0x3852b6)](_0x1d770f(_0x500d41._0x1124e8,_0x500d41._0x58a06c,0x1ce,0x1b2),_0x8680a6);function _0x1d770f(_0x4fcd2c,_0x268eb2,_0x36eaac,_0x2de869){return _0x377c(_0x2de869- -0x170,_0x36eaac);}function _0x54d46e(_0x321c15,_0x53730c,_0x8f636a,_0x2d802a){return _0x377c(_0x321c15-0x12d,_0x53730c);}_0x2d1f3b[_0x54d46e(_0x500d41._0x5ba2c8,_0x500d41._0x8fb2d5,_0x500d41._0x12192b,_0x500d41._0x197a5c)](_0x1d770f(_0x500d41._0x34004f,0x79,_0x500d41._0x4e6c65,_0x500d41._0x5afdaa),_0x4909c5),_0x2d1f3b[_0x54d46e(0x30e,_0x500d41._0x2280b8,0x35a,_0x500d41._0x5f6dfc)](_0x1d770f(_0x500d41._0x2b581d,_0x500d41._0x1dde8b,0x146,_0x500d41._0x46f5db),_0x5b05dc),_0x219d3a?.[_0x54d46e(0x30e,_0x500d41._0x193c7c,0x3e4,_0x500d41._0x35fc6e)](_0x54d46e(_0x500d41._0x51532f,0x34a,_0x500d41._0x4c19b8,_0x500d41._0x397610),_0x9942fa);};function _0x5ab6b3(_0x15d3a5,_0xa99480,_0x57ac59,_0x50eaf9){return _0x382e46(_0x15d3a5-0x6,_0xa99480- -0xb4,_0x50eaf9,_0x50eaf9-_0x23693._0xe99c85);}_0x2d1f3b['addEventListener'](_0x5ab6b3(_0x33c543._0x2be262,0x3bf,_0x33c543._0x292793,0x2fa),_0x8680a6),_0x2d1f3b['addEventListener'](_0xfbe31(-0x9d,-0x172,-0xa7,-_0x33c543._0x2315cd),_0x4909c5),_0x2d1f3b[_0xfbe31(-_0x33c543._0x1bd0ed,-0x149,-0x94,-_0x33c543._0x182210)](_0xfbe31(0x26,0x6,-_0x33c543._0x532b3e,-0x53),_0x5b05dc),_0x219d3a?.[_0xfbe31(-0x103,-_0x33c543._0x5221dc,-0x1ec,-0x128)]('abort',_0x9942fa,{'once':!![]});});}function iterateWebSocketMessages(_0xb018c6,_0x13f352){const _0x38f8f1={_0x370cf8:0x3d5,_0x1d2e20:0x359,_0xba3b00:0x332,_0x3d3b49:0x27b,_0x15fee9:0x321,_0x4d4933:0x281,_0x297de7:0x191,_0x2da47a:0x1c7,_0x141376:0x1ec,_0x223837:0xc3,_0x3cc968:0x315,_0xed6169:0x40b,_0x2dc51d:0x326,_0x20a42d:0x313,_0x235e50:0x1a8},_0x3c56cd={_0x293637:0x550,_0x1bdb5b:0x45f,_0x548457:0x54a,_0x49cecd:0x335,_0x570c8d:0x450,_0x51c112:0x4a7,_0x26b40b:0x435,_0x1d9bc2:0x250,_0x35c006:0x262,_0x1cf172:0x30d,_0x3a6a97:0x242,_0x606396:0x275,_0x2ef204:0x35c,_0x25b416:0x2f8},_0x18ebb6={_0x495e89:0x1f3,_0x1bff4a:0x5c4},_0x360dcb={_0x2be92f:0x521,_0x23b8d6:0x524,_0x37dea4:0x14,_0x524102:0xb0,_0x46054a:0x24d,_0x2b1900:0x124,_0x5503bf:0x38,_0x3c3395:0x148},_0x2047ba={_0x370424:0x2fa},_0x106e8a={_0x1f660e:0x1d3},_0x5f1dc0={_0x3f4b2d:0x386,_0x5b56f8:0xee},_0x263be4={_0x37e154:0x20,_0x35f27e:0xbe,_0xa120a1:0x5b},_0x30f7be={_0x2560b0:0x41e,_0x10ab86:0x47b,_0x2565a9:0x482},_0x77a378={_0x3eb838:0x156},_0x472da3={_0x25c5dc:0x19d,_0xce9c5b:0xbd,_0x3074d1:0x1e6,_0x27a138:0x43c,_0x31bd4b:0x1a4,_0x562620:0x123,_0x609cab:0x181},_0x1ec4cf={_0x3514e2:0x153},_0x57a8d9=[];function _0x4885a1(_0x5d5a4c,_0x4eb5f5,_0x3613e3,_0x8386ae){return _0x5a1062(_0x3613e3-0x93,_0x4eb5f5,_0x3613e3-_0x1ec4cf._0x3514e2,_0x8386ae-0x139);}let _0x1e9a13=![],_0x376581,_0x319850;const _0x47d2c3=_0x1b0a1c=>{function _0x2ecb7e(_0x1a0133,_0x47efa5,_0xa75028,_0x47b994){return _0x377c(_0x1a0133- -0x128,_0xa75028);}const _0x56210c=_0x1b0a1c;function _0xe17fe6(_0x3b5288,_0x47962d,_0x348c3a,_0x5275bf){return _0x377c(_0x3b5288-0x237,_0x5275bf);}try{_0x57a8d9[_0x2ecb7e(_0x472da3._0x25c5dc,_0x472da3._0xce9c5b,_0x472da3._0x3074d1,0x24b)](JSON[_0xe17fe6(0x3fc,0x44f,0x37b,0x374)](String(_0x56210c[_0xe17fe6(0x455,_0x472da3._0x27a138,0x3bb,0x541)]))),_0x319850?.(),_0x319850=void 0x0;}catch(_0x395723){_0x376581=new Error(_0x2ecb7e(_0x472da3._0x31bd4b,_0x472da3._0x562620,0x21e,_0x472da3._0x609cab)+toErrorMessage(_0x395723)),_0x319850?.(),_0x319850=void 0x0;}},_0x37a01f=_0x2e558f=>{const _0x4b727c=_0x2e558f;_0x376581=new Error(_0x4b727c[_0x1c45a3(_0x30f7be._0x2560b0,_0x30f7be._0x10ab86,0x3ee,0x55f)]||_0x1c45a3(_0x30f7be._0x2565a9,0x398,0x3f9,0x421)),_0x319850?.();function _0x1c45a3(_0x1e6885,_0x37e6d4,_0x384c4f,_0x5b407f){return _0x377c(_0x37e6d4-_0x77a378._0x3eb838,_0x5b407f);}function _0x13e021(_0x4c2135,_0x2af629,_0x1d2c87,_0x44b392){return _0x377c(_0x4c2135-0x68,_0x2af629);}_0x319850=void 0x0;},_0x10aad8=_0x5cd687=>{const _0xb48c5e={_0x17fd14:0x382},_0x478875={_0x1d5fc5:0x24e},_0x4546f0=_0x5cd687;function _0x5bef1b(_0x424945,_0x4ee60f,_0x37681c,_0x307db1){return _0x377c(_0x307db1- -_0x478875._0x1d5fc5,_0x424945);}!_0x1e9a13&&_0x4546f0[_0x40c17d(-0x18f,-0xcc,-0x14b,-0x188)]!==0x3e8&&!_0x376581&&(_0x376581=new Error(_0x4546f0['reason']||'WebSocket\x20closed\x20with\x20code\x20'+_0x4546f0[_0x5bef1b(_0x263be4._0x37e154,-0x84,-_0x263be4._0x35f27e,-_0x263be4._0xa120a1)]));_0x1e9a13=!![],_0x319850?.();function _0x40c17d(_0x5077a8,_0x5f3b56,_0x239011,_0xd03e29){return _0x377c(_0x5077a8- -_0xb48c5e._0x17fd14,_0xd03e29);}_0x319850=void 0x0;};function _0x352899(_0x28e3cc,_0x3ddc80,_0x158466,_0x19e2f2){return _0x5a1062(_0x158466- -_0x5f1dc0._0x3f4b2d,_0x3ddc80,_0x158466-0xc8,_0x19e2f2-_0x5f1dc0._0x5b56f8);}const _0x3015da=addAbortListener(_0x13f352,()=>{function _0x6f00b3(_0x2a502c,_0x204149,_0x1418c5,_0x347b81){return _0x377c(_0x2a502c- -_0x106e8a._0x1f660e,_0x347b81);}_0x376581=toAbortError(_0x13f352?.['reason']);_0xb018c6[_0x5a340e(0x5ed,0x5c6,_0x360dcb._0x2be92f,_0x360dcb._0x23b8d6)]===WebSocket[_0x6f00b3(-_0x360dcb._0x37dea4,-_0x360dcb._0x524102,-0x20,-0x3f)]&&_0xb018c6[_0x6f00b3(0x166,_0x360dcb._0x46054a,_0x360dcb._0x2b1900,0xfb)](0x3e8,_0x6f00b3(0x70,-_0x360dcb._0x5503bf,_0x360dcb._0x3c3395,0xbe));_0x319850?.();function _0x5a340e(_0x25834c,_0x5ebb67,_0x15595e,_0x38d6eb){return _0x377c(_0x25834c-_0x2047ba._0x370424,_0x38d6eb);}_0x319850=void 0x0;});return _0xb018c6['addEventListener'](_0x4885a1(_0x38f8f1._0x370cf8,_0x38f8f1._0x1d2e20,0x3b6,_0x38f8f1._0xba3b00),_0x47d2c3),_0xb018c6[_0x4885a1(0x2a7,0x1bc,_0x38f8f1._0x3d3b49,_0x38f8f1._0x15fee9)](_0x352899(-_0x38f8f1._0x4d4933,-_0x38f8f1._0x297de7,-_0x38f8f1._0x2da47a,-_0x38f8f1._0x141376),_0x37a01f),_0xb018c6[_0x352899(-_0x38f8f1._0x223837,-0x276,-0x19e,-0x232)](_0x4885a1(_0x38f8f1._0x3cc968,_0x38f8f1._0xed6169,0x3ca,_0x38f8f1._0x2dc51d),_0x10aad8),{async*[Symbol[_0x4885a1(_0x38f8f1._0x20a42d,0x2f0,0x255,_0x38f8f1._0x235e50)]](){const _0x2c7af8={_0x4cf819:0xf8};function _0x15848d(_0x528c23,_0x21101a,_0x39690c,_0x5ca3a2){return _0x352899(_0x528c23-_0x18ebb6._0x495e89,_0x21101a,_0x39690c-_0x18ebb6._0x1bff4a,_0x5ca3a2-0x1cb);}function _0x5bbb94(_0x1a8d8a,_0x2ae272,_0x124e95,_0x2a1945){return _0x352899(_0x1a8d8a-_0x2c7af8._0x4cf819,_0x2ae272,_0x2a1945-0x409,_0x2a1945-0x28);}try{while(!![]){if(_0x376581)throw _0x376581;if(_0x57a8d9[_0x15848d(0x557,0x58d,0x56a,_0x3c56cd._0x293637)]>0x0){yield _0x57a8d9[_0x15848d(_0x3c56cd._0x1bdb5b,_0x3c56cd._0x548457,0x4a5,0x558)]();continue;}if(_0x1e9a13)break;await new Promise(_0xcbc26f=>{_0x319850=_0xcbc26f;});}}finally{_0xb018c6[_0x15848d(_0x3c56cd._0x49cecd,_0x3c56cd._0x570c8d,0x41d,_0x3c56cd._0x51c112)](_0x5bbb94(0x472,_0x3c56cd._0x26b40b,0x359,0x3a6),_0x47d2c3),_0xb018c6[_0x5bbb94(0x282,_0x3c56cd._0x1d9bc2,0x1f2,_0x3c56cd._0x35c006)](_0x5bbb94(0x1e9,_0x3c56cd._0x1cf172,0x246,_0x3c56cd._0x3a6a97),_0x37a01f),_0xb018c6[_0x5bbb94(_0x3c56cd._0x606396,0x2e4,0x341,0x262)](_0x5bbb94(0x36e,_0x3c56cd._0x2ef204,_0x3c56cd._0x25b416,0x3ba),_0x10aad8),_0x3015da();}}};}function toWebSocketUrl(_0x3d1b26,_0x4d0552){const _0x42196d={_0x5c18aa:0x1a1,_0x306a2c:0x239,_0x4ef786:0x5d0,_0x42fad7:0x4ff,_0x20f6d3:0x561,_0x551066:0x127,_0x4965c8:0x1ad},_0x51d498={_0x80dc6:0xa3,_0x21d84d:0xc},_0x342a95={_0x3124fb:0x652,_0x71befe:0x10e},_0x1267d7=new URL(_0x4d0552,_0x3d1b26);function _0x2f4d95(_0x3f7b56,_0x331e7f,_0x202299,_0x114f93){return _0x1a8b4d(_0x3f7b56,_0x331e7f-_0x342a95._0x3124fb,_0x202299-0x12d,_0x114f93-_0x342a95._0x71befe);}_0x1267d7[_0x450802(0x139,0x232,_0x42196d._0x5c18aa,0x258)]=_0x1267d7['protocol']==='https:'?_0x450802(_0x42196d._0x306a2c,0x265,0x195,0x1de):_0x2f4d95(0x4e9,_0x42196d._0x4ef786,_0x42196d._0x42fad7,_0x42196d._0x20f6d3);function _0x450802(_0x4b55a9,_0x4ca239,_0x4fe0d8,_0x1b2f8f){return _0x1a8b4d(_0x4ca239,_0x4fe0d8-0x2c0,_0x4fe0d8-_0x51d498._0x80dc6,_0x1b2f8f-_0x51d498._0x21d84d);}return _0x1267d7[_0x450802(_0x42196d._0x551066,_0x42196d._0x4965c8,0x204,0x2b1)]();}var ProviderSessionManager=class{[_0x1a8b4d(-0x126,-0xb4,-0x5,-0x118)];[_0x1a8b4d(0x65,-0x2b,0x3b,0x4f)];constructor(_0x1cbdcd){const _0x40057c={_0xda64c9:0x28c,_0x56dca4:0x367,_0x3f88d6:0x2b0,_0x52ec28:0x20a},_0x17dbb6={_0x3881c0:0x19c};function _0x4f2b4c(_0x5517f3,_0x3f9f26,_0x5a3673,_0xf933c3){return _0x1a8b4d(_0xf933c3,_0x5a3673-0x364,_0x5a3673-0x68,_0xf933c3-_0x17dbb6._0x3881c0);}this[_0x4f2b4c(_0x40057c._0xda64c9,_0x40057c._0x56dca4,_0x40057c._0x3f88d6,_0x40057c._0x52ec28)]=_0x1cbdcd;}async['resolve'](_0x18adc0){const _0x558f28={_0x4daa3b:0x3,_0x30576d:0x14a,_0x42e2a3:0xf3,_0x576993:0x9e,_0x71c4e:0xc0,_0xd86462:0x1a,_0x13da81:0x101,_0x4dc350:0x8c,_0x250b24:0x8d,_0x4ff46f:0x3a,_0x556c48:0x1a6},_0x12b9eb={_0x3c58d2:0x39d,_0x12ad43:0x104,_0x42ea00:0x41},_0x12b515={_0x415ead:0xc,_0x5e1c7c:0x162};function _0x33e7c3(_0x4a9264,_0xe2bf21,_0x386664,_0x31f94d){return _0x1a8b4d(_0x31f94d,_0x4a9264- -_0x12b515._0x415ead,_0x386664-_0x12b515._0x5e1c7c,_0x31f94d-0x199);}function _0x1558e0(_0x26cd77,_0x4d047b,_0x2c94be,_0x14c992){return _0x5a1062(_0x14c992- -_0x12b9eb._0x3c58d2,_0x2c94be,_0x2c94be-_0x12b9eb._0x12ad43,_0x14c992-_0x12b9eb._0x42ea00);}if(!this[_0x1558e0(-_0x558f28._0x4daa3b,-_0x558f28._0x30576d,-_0x558f28._0x42e2a3,-_0x558f28._0x576993)]){const _0x4eb01f=this[_0x33e7c3(-_0x558f28._0x71c4e,-0x1a4,-_0x558f28._0xd86462,-_0x558f28._0x13da81)][_0x1558e0(_0x558f28._0x4dc350,0x7e,_0x558f28._0x250b24,-_0x558f28._0x4ff46f)](_0x18adc0);_0x4eb01f[_0x1558e0(-0x98,-_0x558f28._0x556c48,-0x7d,-0x11a)](()=>{this['cached']===_0x4eb01f&&(this['cached']=void 0x0);}),this['cached']=_0x4eb01f;}return structuredClone(await this[_0x33e7c3(-0x37,0x27,-0x20,0x6)]);}[_0x1a8b4d(-0x1cc,-0x150,-0x15c,-0x210)](){const _0x14bbba={_0xe231ea:0xd6,_0x25279f:0x133,_0x47cd2b:0x141,_0x467167:0x176},_0x567a00={_0x2ec5a1:0x15e};function _0x340c19(_0x308760,_0x3f2262,_0x1b4df6,_0x131831){return _0x1a8b4d(_0x131831,_0x3f2262-_0x567a00._0x2ec5a1,_0x1b4df6-0x1ea,_0x131831-0x192);}this[_0x340c19(_0x14bbba._0xe231ea,_0x14bbba._0x25279f,_0x14bbba._0x47cd2b,_0x14bbba._0x467167)]=void 0x0;}};async function prepareProviderRequest(_0x1ad4b2,_0x5af64a={}){const _0x166c47={_0x1b4266:0x18d,_0x32d942:0x22d,_0x1c6da:0x1a7,_0x246d8b:0xcc,_0x2fce0d:0xb2,_0x14b762:0xd5,_0x2b8419:0x218,_0x2fe3a2:0x195},_0x1fb684={_0x28c524:0x3cc,_0x47f590:0x108},_0x9e7a4a={_0x52c21e:0x19d};let _0x2bc5c0={'request':structuredClone(_0x1ad4b2),'session':_0x5af64a[_0xa1d7a7(_0x166c47._0x1b4266,0x100,_0x166c47._0x32d942,0x255)]?await _0x5af64a[_0xa1d7a7(0x18d,0xe3,_0x166c47._0x1c6da,_0x166c47._0x246d8b)]['resolve'](_0x5af64a[_0xa1d7a7(_0x166c47._0x2fce0d,_0x166c47._0x14b762,0x106,0x91)]):void 0x0};for(const _0x323450 of _0x5af64a[_0x4c9f62(_0x166c47._0x2b8419,0x2b8,0x256,_0x166c47._0x2fe3a2)]??[]){_0x2bc5c0=await _0x323450(_0x2bc5c0);}function _0xa1d7a7(_0x24d8f2,_0x51bed2,_0x36556e,_0x2f6eca){return _0x5a1062(_0x24d8f2- -_0x9e7a4a._0x52c21e,_0x36556e,_0x36556e-0x90,_0x2f6eca-0x2d);}function _0x4c9f62(_0x447d33,_0x26003f,_0x2925ab,_0x910c69){return _0x1a8b4d(_0x447d33,_0x2925ab-_0x1fb684._0x28c524,_0x2925ab-0x4a,_0x910c69-_0x1fb684._0x47f590);}return _0x2bc5c0;}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{[_0x1a8b4d(0xca,0x3d,0x2a,-0x46)];['maxTokens'];[_0x5a1062(0x32f,0x41b,0x2ff,0x3cd)];[_0x1a8b4d(0x6a,0x46,0x4b,0x19)];['baseUrl'];[_0x5a1062(0x288,0x32d,0x1e3,0x2c3)];['providerAdapter'];[_0x5a1062(0x1b4,0x1cf,0x203,0x2a0)];['router'];[_0x1a8b4d(-0xd2,0x0,0x9a,0x3e)];[_0x5a1062(0x27f,0x1fd,0x2d1,0x262)];[_0x5a1062(0x264,0x2b1,0x219,0x19a)]=new Map();constructor(_0x54899d){const _0x2f2eba={_0x443804:0x390,_0x52333f:0x42a,_0x5106a6:0xd9,_0x191736:0x95,_0x4dcf05:0x3bf,_0x10acdd:0x343,_0x2d10cc:0x30c,_0x203f0a:0xc6,_0x2447c8:0xe0,_0x4d76bc:0x158,_0x10098c:0x29b,_0x2826c1:0x2da,_0xdd7853:0x277,_0x614b73:0xc,_0x579f3b:0x89,_0xcb63bb:0x98,_0x2c8ef0:0x24f,_0x152d62:0x194,_0x1aba00:0xcd,_0x18b079:0xb6,_0x40845f:0x83,_0x466a1e:0x12,_0x85cf7:0x52,_0x5e26ca:0x139,_0x57560a:0xfe,_0x2a139c:0x120,_0x3db15e:0x52,_0x13f043:0x304,_0x195783:0x8e,_0x410214:0x37,_0x111c56:0xef,_0x1fe7cf:0xbb,_0x5cdaa2:0x3c5,_0x30182f:0x3ad,_0x5ac53d:0x3ba},_0x1cdeb8={_0x32b9fe:0x139,_0x5212d0:0x6a};this[_0x3431ee(_0x2f2eba._0x443804,0x497,0x3aa,_0x2f2eba._0x52333f)]=_0x54899d[_0x25237c(0x176,0xc6,_0x2f2eba._0x5106a6,0xbe)],this[_0x25237c(0xa2,_0x2f2eba._0x191736,0x170,0xc5)]=_0x54899d['maxTokens']??getDefaultMaxTokens();function _0x25237c(_0x2c5ae6,_0xe992e,_0xfc2cd1,_0x34cd89){return _0x1a8b4d(_0xe992e,_0x2c5ae6-_0x1cdeb8._0x32b9fe,_0xfc2cd1-0xff,_0x34cd89-_0x1cdeb8._0x5212d0);}this['reasoning']=_0x54899d[_0x3431ee(_0x2f2eba._0x4dcf05,_0x2f2eba._0x10acdd,_0x2f2eba._0x2d10cc,0x3f2)]?structuredClone(_0x54899d['reasoning']):void 0x0,this['apiKey']=_0x54899d['apiKey'],this[_0x3431ee(0x4c6,0x3ad,0x3e0,0x41d)]=_0x54899d['baseUrl'],this[_0x25237c(0x97,0x84,0x83,_0x2f2eba._0x203f0a)]=_0x54899d[_0x25237c(0xff,0xec,_0x2f2eba._0x2447c8,_0x2f2eba._0x4d76bc)]??globalThis['fetch'],this[_0x3431ee(_0x2f2eba._0x10098c,_0x2f2eba._0x2826c1,_0x2f2eba._0xdd7853,0x2c0)]=_0x54899d[_0x25237c(_0x2f2eba._0x614b73,-0xad,-_0x2f2eba._0x579f3b,-_0x2f2eba._0xcb63bb)],this[_0x3431ee(_0x2f2eba._0x2c8ef0,_0x2f2eba._0x152d62,0x195,0x277)]=_0x54899d[_0x25237c(-0x3d,-0x100,-_0x2f2eba._0x1aba00,-_0x2f2eba._0x18b079)]??[];function _0x3431ee(_0x41a769,_0x298af2,_0x2c20a9,_0x365504){return _0x5a1062(_0x365504-0xc3,_0x41a769,_0x2c20a9-0x18,_0x365504-0x141);}this[_0x25237c(0x1,0x4a,_0x2f2eba._0x40845f,_0x2f2eba._0x466a1e)]=_0x54899d['router'],this[_0x25237c(0x139,_0x2f2eba._0x85cf7,0x173,0x137)]=_0x54899d[_0x25237c(_0x2f2eba._0x5e26ca,_0x2f2eba._0x57560a,_0x2f2eba._0x2a139c,_0x2f2eba._0x3db15e)]??(_0x54899d[_0x3431ee(_0x2f2eba._0x13f043,0x3d4,0x45b,0x3b7)]?new ProviderSessionManager(_0x54899d['providerSessionResolver']):void 0x0),this[_0x25237c(_0x2f2eba._0x195783,_0x2f2eba._0x410214,_0x2f2eba._0x111c56,_0x2f2eba._0x1fe7cf)]=_0x54899d['webSocketFactory']??createDefaultWebSocketFactory();for(const _0x1fe3bb of _0x54899d['surfaces']){this['surfaces'][_0x3431ee(_0x2f2eba._0x5cdaa2,_0x2f2eba._0x30182f,_0x2f2eba._0x5ac53d,0x3b1)](_0x1fe3bb['id'],_0x1fe3bb);}}[_0x5a1062(0x32d,0x275,0x35d,0x2f8)](_0x6da08b,_0x592426){const _0x477d7d={_0x139f0a:0x1cd,_0x5875a4:0x111},_0x185d14={_0x57b2bc:0xa0,_0x2db2c1:0x137};function _0xdd9ead(_0x4832c5,_0x2c8b9e,_0x5310ea,_0xbf7936){return _0x1a8b4d(_0x5310ea,_0xbf7936- -_0x185d14._0x57b2bc,_0x5310ea-0x14a,_0xbf7936-_0x185d14._0x2db2c1);}return this[_0xdd9ead(-_0x477d7d._0x139f0a,-0x118,-0x105,-_0x477d7d._0x5875a4)](_0x6da08b,_0x592426);}[_0x1a8b4d(-0x8,-0x17,-0x2d,0xa7)](_0x5ee926,_0x18bb82){const _0x55646d={_0x32bf81:0x2c8,_0x2e51c9:0x1e7},_0x52f32e={_0x33b40a:0x11a,_0xa3ad64:0xa5};function _0x3320ed(_0x424974,_0x1c8ffc,_0x4f271b,_0x3589ce){return _0x1a8b4d(_0x1c8ffc,_0x4f271b-0x34c,_0x4f271b-_0x52f32e._0x33b40a,_0x3589ce-_0x52f32e._0xa3ad64);}return this[_0x3320ed(0x337,0x308,_0x55646d._0x32bf81,_0x55646d._0x2e51c9)](_0x5ee926,_0x18bb82);}async[_0x1a8b4d(0x77,-0x71,-0xfa,-0x6d)](_0xe5232d,_0x1440da){const _0x42ad63={_0x423e66:0x474,_0x3d55ef:0x395,_0x9f2c7b:0x48a,_0x42f9e8:0x480,_0x5cea4c:0x4a0},_0x143d39={_0x289a5b:0x16a,_0x1d0f54:0x1c9,_0x256b2e:0x1a3},_0x362baa={_0x377d3b:0x436,_0x156953:0x1dd,_0x280015:0x116};function _0x2f8b08(_0x35ab14,_0x361fba,_0x562527,_0x40d5c2){return _0x1a8b4d(_0x40d5c2,_0x361fba-_0x362baa._0x377d3b,_0x562527-_0x362baa._0x156953,_0x40d5c2-_0x362baa._0x280015);}function _0xe32b67(_0x4290c6,_0x10be2c,_0x26b641,_0x266fdd){return _0x5a1062(_0x26b641-_0x143d39._0x289a5b,_0x266fdd,_0x26b641-_0x143d39._0x1d0f54,_0x266fdd-_0x143d39._0x256b2e);}const _0x7ef81b=this[_0x2f8b08(_0x42ad63._0x423e66,0x402,_0x42ad63._0x3d55ef,0x4e3)](_0xe5232d),_0x4f286f=await this['router']['selectSurface'](_0x7ef81b,{'mode':'complete'});return this[_0x2f8b08(_0x42ad63._0x9f2c7b,_0x42ad63._0x42f9e8,_0x42ad63._0x5cea4c,0x54c)](_0x7ef81b,_0x4f286f,_0x1440da);}async*[_0x5a1062(0x2a6,0x1c8,0x276,0x2c2)](_0x586861,_0x1ed86b){const _0x12b569={_0x1ddf7e:0x2b7,_0x46b174:0x210,_0x55fc85:0x282,_0x3925bd:0xc9,_0x531ba5:0x1b8,_0x53a6d3:0x232,_0x5cb50d:0x2fe,_0x4d2afc:0x236,_0x3d47d:0x28b},_0x3e563b={_0x5bba83:0x158,_0x471a6c:0x166},_0x53defd={_0x144bfd:0x244,_0x412564:0x85};function _0x4c2e87(_0x43671e,_0x22805c,_0x5f3e81,_0x4cdd03){return _0x1a8b4d(_0x4cdd03,_0x5f3e81-_0x53defd._0x144bfd,_0x5f3e81-0xa7,_0x4cdd03-_0x53defd._0x412564);}const _0x42dbc2=this[_0x4c2e87(0x12c,_0x12b569._0x1ddf7e,_0x12b569._0x46b174,_0x12b569._0x55fc85)](_0x586861),_0x165193=await this[_0x4c2e87(_0x12b569._0x3925bd,0x1fa,0x10c,0x153)][_0x123548(-_0x12b569._0x531ba5,-0x173,-0x1e9,-_0x12b569._0x53a6d3)](_0x42dbc2,{'mode':'stream'});function _0x123548(_0x36ae63,_0x46db3d,_0x35c02c,_0x640b1a){return _0x5a1062(_0x36ae63- -0x3ad,_0x35c02c,_0x35c02c-_0x3e563b._0x5bba83,_0x640b1a-_0x3e563b._0x471a6c);}yield*this[_0x4c2e87(0x17f,_0x12b569._0x5cb50d,_0x12b569._0x4d2afc,_0x12b569._0x3d47d)](_0x42dbc2,_0x165193,_0x1ed86b);}async['completeViaSurface'](_0x4e87d0,_0x3581d6,_0x3bcb4a){const _0x4c6c64={_0x4d184d:0x3ea,_0x3b2235:0x4bd,_0x20e23a:0x4d6,_0x545cd7:0x4a9,_0x1d9c38:0x534,_0x39a653:0x53f,_0x42295a:0x5fe,_0xd2a969:0x508,_0x1331fb:0x47a,_0x1a2070:0x487,_0x4a792b:0x4ab,_0x6d1a6b:0x44b,_0x1070b1:0x59d,_0x2a5918:0x6a3,_0x1c8fd1:0x53c,_0x115c8e:0x5b9,_0x5da203:0x4aa,_0x45164b:0x4ae,_0x83c5b7:0x493,_0x14f99c:0x4f6,_0x4a40e7:0x486,_0x29154d:0x4ab,_0x1e6872:0x3e0,_0x4d7627:0x51b,_0x91d98b:0x537},_0x4fb9f0={_0x6beb0d:0x8d,_0x35a5d1:0x13},_0x46e365={_0x3bfedc:0x67,_0x3fd8dd:0x167},_0x5efa28=this[_0xd29097(_0x4c6c64._0x4d184d,0x403,0x42a,0x420)](_0x4e87d0),_0x2d5d29=this[_0xd29097(_0x4c6c64._0x3b2235,0x424,0x3a5,_0x4c6c64._0x20e23a)](_0x3581d6);if(_0x2d5d29[_0x2c43a2(0x5ef,0x58f,_0x4c6c64._0x545cd7,0x56f)]==='http-json'){const _0x56a3cc=await this['sendHttpSurfaceRequest'](_0x5efa28,_0x2d5d29,![],_0x3bcb4a);if(!_0x56a3cc['ok'])throw await this[_0x2c43a2(0x670,_0x4c6c64._0x1d9c38,_0x4c6c64._0x39a653,_0x4c6c64._0x42295a)](_0x56a3cc);if(!_0x2d5d29[_0x2c43a2(0x591,0x6a1,_0x4c6c64._0xd2a969,0x5db)])throw new Error(_0x2c43a2(0x476,_0x4c6c64._0x1331fb,0x645,0x55f)+_0x3581d6+_0xd29097(_0x4c6c64._0x1a2070,0x3bd,_0x4c6c64._0x4a792b,0x482));return _0x2d5d29[_0xd29097(0x3ea,_0x4c6c64._0x6d1a6b,0x400,0x442)](await _0x56a3cc['json'](),_0x5efa28);}function _0xd29097(_0x4e21bc,_0x5d7679,_0x1e79e9,_0x3eaf3b){return _0x1a8b4d(_0x4e21bc,_0x5d7679-0x437,_0x1e79e9-_0x46e365._0x3bfedc,_0x3eaf3b-_0x46e365._0x3fd8dd);}let _0x19c14f;function _0x2c43a2(_0x436c65,_0xd084e2,_0x4d75ce,_0x2c2946){return _0x5a1062(_0x2c2946-0x29d,_0x436c65,_0x4d75ce-_0x4fb9f0._0x6beb0d,_0x2c2946-_0x4fb9f0._0x35a5d1);}for await(const _0x49aeec of this[_0x2c43a2(_0x4c6c64._0x1070b1,_0x4c6c64._0x2a5918,_0x4c6c64._0x1c8fd1,_0x4c6c64._0x115c8e)](_0x5efa28,_0x3581d6,_0x3bcb4a)){_0x49aeec[_0xd29097(_0x4c6c64._0x5da203,0x3ef,0x4c9,_0x4c6c64._0x45164b)]===_0x2c43a2(0x4c1,_0x4c6c64._0x83c5b7,0x40e,_0x4c6c64._0x14f99c)&&(_0x19c14f=_0x49aeec[_0xd29097(0x3c1,_0x4c6c64._0x4a40e7,_0x4c6c64._0x29154d,0x42e)]);}if(!_0x19c14f)throw new Error('Surface\x20'+_0x3581d6+_0x2c43a2(_0x4c6c64._0x1e6872,_0x4c6c64._0x4d7627,_0x4c6c64._0x91d98b,0x47d));return _0x19c14f;}async*['streamViaSurface'](_0x46b66f,_0x129ed8,_0x49dd6a){const _0x1aabaf={_0x196dcd:0xf6,_0x2031df:0xb1,_0x2a66d1:0x26d,_0x5dce07:0x1c4,_0x19da4c:0x44,_0x15856d:0x158,_0x53efc4:0x16f,_0xf3074b:0x12d,_0x741ff7:0x13c,_0x2c4683:0x2f,_0x80e452:0x465,_0x5533e9:0x3da,_0x346774:0x533,_0x3b68e9:0x2f0,_0x3a37e7:0x42a,_0x9f352c:0x130,_0x6664ea:0x179},_0x392521={_0x260aa0:0xec,_0x2f3e01:0x12b,_0x1ecd8d:0x27},_0x186ce8={_0x495315:0x176},_0x741347=this['applyModelDefaults'](_0x46b66f),_0xd769f9=this[_0x18cb42(-0x115,-_0x1aabaf._0x196dcd,-0x196,-_0x1aabaf._0x2031df)](_0x129ed8);if(_0xd769f9['transport']===_0x18cb42(-_0x1aabaf._0x2a66d1,-0x171,-0x25a,-_0x1aabaf._0x5dce07)){const _0x2eddd1=await this[_0x18cb42(0x80,_0x1aabaf._0x19da4c,0x73,-0x54)](_0x741347,_0x129ed8,_0x49dd6a);yield{'type':_0x18cb42(-0x16d,-0xf6,-_0x1aabaf._0x15856d,-_0x1aabaf._0x53efc4),'response':_0x2eddd1};return;}if(_0xd769f9[_0x18cb42(-_0x1aabaf._0xf3074b,-_0x1aabaf._0x741ff7,-_0x1aabaf._0x2c4683,-0xf6)]===_0x336f41(_0x1aabaf._0x80e452,0x43c,_0x1aabaf._0x5533e9,0x393)){yield*this[_0x336f41(0x42d,0x44b,_0x1aabaf._0x346774,0x3a3)](_0x741347,_0xd769f9,_0x49dd6a);return;}function _0x18cb42(_0x176541,_0x1ed4fd,_0x5a5ee5,_0x24f819){return _0x5a1062(_0x24f819- -0x3c8,_0x5a5ee5,_0x5a5ee5-_0x186ce8._0x495315,_0x24f819-0xd9);}function _0x336f41(_0x2a7244,_0x15359e,_0x2b31cd,_0x237fad){return _0x5a1062(_0x15359e-_0x392521._0x260aa0,_0x237fad,_0x2b31cd-_0x392521._0x2f3e01,_0x237fad-_0x392521._0x1ecd8d);}yield*this[_0x336f41(_0x1aabaf._0x3b68e9,0x3a6,0x3ed,_0x1aabaf._0x3a37e7)](_0x741347,_0xd769f9,_0x49dd6a?.[_0x18cb42(-0x16e,-_0x1aabaf._0x9f352c,-0x1ee,-_0x1aabaf._0x6664ea)]);}async['sendRawRequest'](_0xa5d797){const _0x59b296={_0x2c8076:0x146},_0x28c2fd={_0x169c5c:0x535,_0x40e832:0x4af,_0x4f9cd8:0xb0,_0x32a399:0x4f,_0x474737:0x56e,_0x30b5c8:0x623,_0x4e3fff:0x46d,_0x420882:0x4b2,_0x5e3b19:0x513,_0x4d61d5:0x537,_0x575f6f:0x45e,_0xc5e95b:0x5c,_0x13c762:0x8,_0x7ccb47:0x12b,_0x4092ee:0x47b,_0x5ef372:0x3cc,_0x5afcfa:0x33e,_0x5b9bba:0x2f5,_0x46cd03:0x36b,_0x4fe8bf:0x18c,_0x31b3f5:0xa6,_0x51a9fb:0xe5,_0x3f8666:0x51d,_0x80ba27:0x602,_0x1eae08:0x516,_0x3de94c:0x3ee,_0x2c15f7:0x39,_0x109350:0x3e3,_0x15bef1:0x4df,_0x4b2423:0xe0,_0x272026:0xc4,_0x4ab59a:0x6a,_0x49a7fe:0x2c,_0x1ca26d:0x78,_0x6848b0:0x122,_0x20cd9c:0x49,_0x10d938:0x124,_0x13033e:0x3d,_0x7e803e:0x45,_0x13a89f:0x2b,_0x45e914:0xcb,_0x12f5fb:0x109,_0x238b2b:0x142},_0x26b188={_0x32ca15:0xad};function _0x15309b(_0x426ee9,_0x2b2cae,_0x5488bf,_0x5b8300){return _0x5a1062(_0x5b8300- -0x1a9,_0x426ee9,_0x5488bf-0x157,_0x5b8300-_0x26b188._0x32ca15);}const _0x303fb3=async()=>{function _0x2eac1a(_0x206cbb,_0x26ea95,_0x36c42e,_0x3d8258){return _0x377c(_0x26ea95-0x209,_0x206cbb);}const _0x6ccdb=this[_0x2eac1a(0x5b1,_0x28c2fd._0x169c5c,_0x28c2fd._0x40e832,0x526)]?await this[_0x512222(_0x28c2fd._0x4f9cd8,0xb,_0x28c2fd._0x32a399,0xe1)][_0x2eac1a(0x513,_0x28c2fd._0x474737,_0x28c2fd._0x30b5c8,0x590)](_0xa5d797[_0x2eac1a(_0x28c2fd._0x4e3fff,0x45a,_0x28c2fd._0x420882,_0x28c2fd._0x5e3b19)]):void 0x0,_0x55f10a=this['providerAdapter'][_0x2eac1a(_0x28c2fd._0x4d61d5,_0x28c2fd._0x575f6f,0x426,0x3a3)](this[_0x512222(_0x28c2fd._0xc5e95b,_0x28c2fd._0x13c762,0x95,_0x28c2fd._0x7ccb47)],_0x6ccdb);function _0x512222(_0x4630fd,_0xfa086e,_0x5934e3,_0x186791){return _0x377c(_0x5934e3- -0x2dd,_0x4630fd);}if(!_0x55f10a)throw this[_0x2eac1a(_0x28c2fd._0x4092ee,0x3f1,0x4d9,_0x28c2fd._0x5ef372)]();const _0x161894=await this[_0x2eac1a(_0x28c2fd._0x5afcfa,0x3e0,_0x28c2fd._0x5b9bba,_0x28c2fd._0x46cd03)]({'body':_0xa5d797[_0x512222(-_0x28c2fd._0x4fe8bf,-0x87,-_0x28c2fd._0x31b3f5,-_0x28c2fd._0x51a9fb)],'credential':_0x55f10a,'session':_0x6ccdb,'stream':![]},{'accept':_0xa5d797[_0x512222(-0x12c,-0x196,-0xf1,-0xc4)]??_0x2eac1a(0x58c,_0x28c2fd._0x3f8666,_0x28c2fd._0x80ba27,0x5b1),'includeContentType':_0xa5d797[_0x2eac1a(_0x28c2fd._0x1eae08,0x48f,0x578,_0x28c2fd._0x3de94c)]===_0x512222(-0x7f,-0xf,_0x28c2fd._0x2c15f7,-0x20)});return this[_0x2eac1a(_0x28c2fd._0x109350,0x493,0x41e,_0x28c2fd._0x15bef1)](''+this[_0x2eac1a(0x3e5,0x408,0x465,0x432)][_0x512222(-_0x28c2fd._0x4b2423,-_0x28c2fd._0x272026,-_0x28c2fd._0x4ab59a,_0x28c2fd._0x49a7fe)](this['baseUrl'],_0x6ccdb)+_0xa5d797[_0x512222(-_0x28c2fd._0x1ca26d,_0x28c2fd._0x6848b0,_0x28c2fd._0x20cd9c,-0x67)],{'method':_0xa5d797[_0x512222(-_0x28c2fd._0x10d938,-_0x28c2fd._0x13033e,-0x57,0x16)],'headers':_0x161894,..._0xa5d797[_0x512222(-0x12f,-0xee,-0xa6,-_0x28c2fd._0x7e803e)]!==void 0x0?{'body':JSON[_0x512222(-_0x28c2fd._0x13a89f,-_0x28c2fd._0x45e914,-0x63,-0xac)](_0xa5d797[_0x512222(-_0x28c2fd._0x12f5fb,0x8,-0xa6,-_0x28c2fd._0x238b2b)])}:{},'signal':_0xa5d797['signal']});};return await this[_0x15309b(0x93,0x5f,0xc4,_0x59b296._0x2c8076)](_0x303fb3,_0xa5d797);}[_0x5a1062(0x2c5,0x2db,0x277,0x3a1)](_0x3beea5,_0x578f13){const _0x5a7da1={_0xd8fd8b:0x29d,_0x558bc7:0x142,_0x2902a5:0x135,_0x4ad642:0x477,_0x148ffe:0x391,_0x2a5499:0x123,_0x48bcf5:0x1a0,_0x2520eb:0x255,_0x5cbe9e:0x352,_0x498370:0x192,_0xc65753:0x26d,_0x557061:0x29c,_0x3b40c5:0x1c0,_0x3b3168:0x159},_0x247cb7={_0x1fec01:0x32},_0x87d0a={_0x2005f2:0x373,_0x2962fd:0x12d},_0xc3b771=_0x3beea5?.[_0x56feac(_0x5a7da1._0xd8fd8b,_0x5a7da1._0x558bc7,_0x5a7da1._0x2902a5,0x219)][_0x56feac(0x39f,0x3dd,_0x5a7da1._0x4ad642,_0x5a7da1._0x148ffe)](_0x4a4c41(-_0x5a7da1._0x2a5499,-_0x5a7da1._0x48bcf5,-0x1fd,-0x1bb));function _0x56feac(_0x2b470f,_0x54c151,_0x5a07a9,_0x2ff269){return _0x1a8b4d(_0x5a07a9,_0x2ff269-_0x87d0a._0x2005f2,_0x5a07a9-0xd4,_0x2ff269-_0x87d0a._0x2962fd);}function _0x4a4c41(_0x4c80bf,_0x51af0d,_0x34e445,_0x2495cd){return _0x1a8b4d(_0x4c80bf,_0x2495cd- -_0x247cb7._0x1fec01,_0x34e445-0x173,_0x2495cd-0x105);}if(_0xc3b771){const _0x427657=Number(_0xc3b771);if(Number[_0x56feac(_0x5a7da1._0x2520eb,_0x5a7da1._0x5cbe9e,_0x5a7da1._0x498370,_0x5a7da1._0xc65753)](_0x427657)&&_0x427657>=0x0)return _0x427657*0x3e8;const _0x45031e=Date['parse'](_0xc3b771);if(Number[_0x56feac(0x199,0x35b,_0x5a7da1._0x557061,0x26d)](_0x45031e))return Math[_0x4a4c41(-0x1a2,-0x168,-_0x5a7da1._0x3b40c5,-_0x5a7da1._0x3b3168)](0x0,_0x45031e-Date['now']());}const _0x466503=DEFAULT_RETRY_DELAY_MS*0x2**_0x578f13;if(_0x466503<RETRY_DELAY_STEP_CAP_MS)return _0x466503;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x578f13-0x5);}[_0x5a1062(0x214,0x143,0x2f0,0x1d4)](_0x40c9e3){const _0x6ff77={_0x5bc9e6:0x294},_0x3de4e7={_0x5ac9b5:0x1c2};function _0x306f85(_0xf06203,_0xc64fc1,_0x5cb22c,_0x1e99ee){return _0x5a1062(_0x1e99ee- -0x8,_0xf06203,_0x5cb22c-0xae,_0x1e99ee-_0x3de4e7._0x5ac9b5);}return RETRYABLE_HTTP_STATUSES['has'](_0x40c9e3[_0x306f85(_0x6ff77._0x5bc9e6,0x33d,0x390,0x2a4)]);}['shouldRetryRequestError'](_0x1e5c79){return!isAbortError(_0x1e5c79)&&_0x1e5c79 instanceof TypeError;}[_0x5a1062(0x29c,0x1ff,0x2af,0x2d6)](_0xe71c94){const _0x651dd3={_0x3e6f38:0x56,_0x37c92c:0xf7,_0x5b4d1a:0x138},_0x4d0b54={_0x1fd9a8:0x14e,_0x4a35c3:0x41};function _0xe12281(_0x57d09c,_0x339818,_0x557c4c,_0x793d86){return _0x5a1062(_0x57d09c- -_0x4d0b54._0x1fd9a8,_0x339818,_0x557c4c-_0x4d0b54._0x4a35c3,_0x793d86-0x1da);}return this[_0xe12281(0xec,_0x651dd3._0x3e6f38,_0x651dd3._0x37c92c,_0x651dd3._0x5b4d1a)](_0xe71c94)||isRetryableProviderStreamEventError(_0xe71c94);}async[_0x5a1062(0x328,0x2a8,0x37a,0x315)](_0x186208,_0x2b8b51){const _0x36eabe={_0x29c305:0x57f};throwIfAborted(_0x2b8b51),await new Promise((_0x156aa9,_0x258d9e)=>{const _0x17144b={_0x370341:0x297};let _0xe17c54=![];const _0x488bc2=addAbortListener(_0x2b8b51,()=>{if(_0xe17c54)return;_0xe17c54=!![],clearTimeout(_0x15946d);function _0xd8e3ef(_0x5c3d29,_0x440f34,_0x2d2740,_0x26711d){return _0x377c(_0x5c3d29-_0x17144b._0x370341,_0x440f34);}_0x258d9e(toAbortError(_0x2b8b51?.[_0xd8e3ef(_0x36eabe._0x29c305,0x636,0x5ab,0x5b1)]));}),_0x15946d=setTimeout(()=>{_0xe17c54=!![],_0x488bc2(),_0x156aa9();},_0x186208);}),throwIfAborted(_0x2b8b51);}async[_0x1a8b4d(0x2f,-0x3b,0x75,0xd)](_0x17173f,_0x114c14={}){const _0x17ab38={_0xe03d98:0x4f0,_0x29e8b3:0x4d0,_0x2dbfe5:0x5cf,_0x197e1f:0x605,_0xbbccf9:0x615,_0x3dc956:0x563,_0x455bd7:0x4d8,_0x289886:0x4ff,_0x5953bd:0x5ca,_0x50cd29:0x5af,_0x485b8c:0x4d3,_0x38ec5f:0x589,_0x5f057c:0x613,_0x1b770c:0x6aa,_0x2dfe54:0x5f8,_0x5c8daa:0x525,_0x319c7b:0x546,_0x43a01c:0x16e,_0xf3fb7:0x2a5},_0x4f0f44={_0x44284b:0x8b},_0x561371={_0x3a0305:0x1b0},{signal:_0x643c19}=_0x114c14;let _0x1b72a6=![];for(let _0x47e847=0x0;_0x47e847<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x47e847+=0x1){throwIfAborted(_0x643c19);try{const _0x1e8539=await _0x17173f();if(_0x1e8539[_0xdab87e(_0x17ab38._0xe03d98,0x59e,0x597,_0x17ab38._0x29e8b3)]===0x191&&this[_0x2f46a3(0x2c4,0x271,0x337,0x2c1)]&&!_0x1b72a6){_0x1b72a6=!![],this[_0xdab87e(_0x17ab38._0x2dbfe5,_0x17ab38._0x197e1f,_0x17ab38._0xbbccf9,0x564)]['invalidate']();continue;}if(!this[_0xdab87e(_0x17ab38._0x3dc956,_0x17ab38._0x455bd7,_0x17ab38._0x289886,_0x17ab38._0x5953bd)](_0x1e8539)||_0x47e847===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x1e8539;const _0x4d5e92=this[_0xdab87e(_0x17ab38._0x50cd29,_0x17ab38._0x485b8c,0x5b0,0x52f)](_0x1e8539,_0x47e847);await this[_0xdab87e(_0x17ab38._0x38ec5f,0x60b,_0x17ab38._0x5f057c,_0x17ab38._0x1b770c)](_0x4d5e92,_0x643c19);}catch(_0x536d9d){if(!this[_0xdab87e(0x512,_0x17ab38._0x2dfe54,_0x17ab38._0x5c8daa,_0x17ab38._0x319c7b)](_0x536d9d)||_0x47e847===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x536d9d;const _0x33c621=this['getRetryDelayMs'](void 0x0,_0x47e847);await this['waitForRetry'](_0x33c621,_0x643c19);}}function _0xdab87e(_0x431e1f,_0x1b95ac,_0x1f030d,_0x390260){return _0x1a8b4d(_0x1b95ac,_0x1f030d-0x615,_0x1f030d-0xd5,_0x390260-_0x561371._0x3a0305);}function _0x2f46a3(_0x57deec,_0x24363c,_0x2b8233,_0x596728){return _0x1a8b4d(_0x24363c,_0x2b8233-0x337,_0x2b8233-_0x4f0f44._0x44284b,_0x596728-0x34);}throw new Error(_0x2f46a3(_0x17ab38._0x43a01c,0x26e,0x1be,_0x17ab38._0xf3fb7));}['createMissingCredentialError'](){const _0x37f6ef={_0x33ab8e:0x6b,_0x5305f9:0x91,_0x3f5844:0x521},_0x497879={_0x6da0ab:0x11c},_0x5b2e72={_0x297557:0xc8};function _0x5e585c(_0x582831,_0x46ed95,_0x2f64e1,_0x629814){return _0x5a1062(_0x46ed95-0x2c3,_0x629814,_0x2f64e1-0x4,_0x629814-_0x5b2e72._0x297557);}function _0x5e83a(_0x312189,_0x5df054,_0x58d227,_0xbf42be){return _0x5a1062(_0x5df054- -0x268,_0xbf42be,_0x58d227-_0x497879._0x6da0ab,_0xbf42be-0x162);}return this[_0x5e83a(-0xbd,-_0x37f6ef._0x33ab8e,0x52,-_0x37f6ef._0x5305f9)][_0x5e585c(0x57c,0x4a9,_0x37f6ef._0x3f5844,0x433)]();}async[_0x5a1062(0x1d5,0x1d2,0x1e4,0x154)](_0x2b75c5,_0x598537){const _0x5a7ecc={_0x2bf887:0x4e5},_0x42b7de={_0x3e6a7f:0x63a};function _0x2273db(_0x3a8e12,_0x38d375,_0x2d1ea1,_0x31e4fb){return _0x1a8b4d(_0x38d375,_0x3a8e12-_0x42b7de._0x3e6a7f,_0x2d1ea1-0x15,_0x31e4fb-0x34);}return await this['providerAdapter'][_0x2273db(_0x5a7ecc._0x2bf887,0x517,0x49d,0x596)](_0x2b75c5,_0x598537);}['mapApiError'](_0x1b5d5a){const _0x56cd25={_0x1bbd35:0x4a5},_0x1f80ca={_0x2f4e2c:0x169,_0x5725be:0x1ac};function _0x4b2f27(_0x2f43ea,_0x4563e3,_0x1b2569,_0xea0864){return _0x5a1062(_0x4563e3-0x22b,_0x1b2569,_0x1b2569-_0x1f80ca._0x2f4e2c,_0xea0864-_0x1f80ca._0x5725be);}return this['providerAdapter'][_0x4b2f27(0x440,0x4d2,0x44f,_0x56cd25._0x1bbd35)](_0x1b5d5a);}async[_0x5a1062(0x361,0x3bf,0x430,0x350)](_0x50ec3d){const _0x5a5aa4={_0x393c32:0x24a},_0x25fdbd={_0x579361:0x173};function _0x2454a7(_0x19b68b,_0x381373,_0x4abc22,_0x4908cb){return _0x5a1062(_0x19b68b-0x12a,_0x381373,_0x4abc22-0x1ef,_0x4908cb-_0x25fdbd._0x579361);}return await this[_0x2454a7(0x327,0x3c1,0x25c,_0x5a5aa4._0x393c32)]['toApiError'](_0x50ec3d);}['getSurface'](_0x1f9781){const _0x30d771={_0x35e94a:0x2ab,_0x329e4c:0x239,_0x5dfc77:0x210,_0x226908:0x399,_0x541a0d:0x34f,_0x1b5416:0x3de,_0x8fcf79:0x24e,_0x23a5a8:0x237},_0x202152=this[_0x3b31f3(_0x30d771._0x35e94a,_0x30d771._0x329e4c,_0x30d771._0x5dfc77,_0x30d771._0x226908)][_0x3b31f3(0x38f,0x446,_0x30d771._0x541a0d,_0x30d771._0x1b5416)](_0x1f9781);function _0x10225c(_0x5ccb67,_0xad09a2,_0x3eca75,_0x2cbba9){return _0x1a8b4d(_0xad09a2,_0x3eca75- -0x51,_0x3eca75-0x18c,_0x2cbba9-0x15b);}function _0x3b31f3(_0x3eed61,_0x3ae918,_0x25d95f,_0x1bab29){return _0x1a8b4d(_0x25d95f,_0x3eed61-0x371,_0x25d95f-0x150,_0x1bab29-0x56);}if(!_0x202152)throw new Error(_0x3b31f3(0x235,_0x30d771._0x8fcf79,0x1da,_0x30d771._0x23a5a8)+_0x1f9781);return _0x202152;}async[_0x1a8b4d(0x35,-0x3,-0x40,0x2e)](_0x1b5304,_0x2e5a4a){const _0x4e1cd4={_0x46a292:0x409,_0x27a537:0x3a4,_0x29baea:0x226,_0x3d4f4c:0x1b4,_0x4ee960:0x234,_0x1aba8a:0x233,_0x4c14c1:0x36a,_0x54ca3e:0x326,_0x3a09c4:0x291,_0x8ce46c:0x1ad,_0x426e16:0x2e7,_0x199e9f:0x309,_0x56725f:0x296,_0x20b03b:0x1c7,_0x307372:0x22d,_0x459e47:0x1d2,_0xd71c06:0x2d9,_0x1c5c1d:0x217,_0x5f136f:0x28d,_0xde5340:0x305,_0x4b009e:0x3ef,_0x486b9f:0x32f,_0x17a031:0x4d8,_0x46aefa:0x3ee,_0x312752:0x481,_0x5a465a:0x463,_0x1ba6af:0x1d7},_0xf790c={_0x4b1d27:0x62,_0x57fb24:0xe5},_0x5a5f00={_0x22611d:0x3d9,_0x435742:0x14e,_0x10d6c2:0x1d8},_0x2e175e=toModelRequest(_0x1b5304),_0x324d30=await prepareProviderRequest(_0x2e175e,{'sessionManager':this[_0x5cad14(0x303,0x3be,_0x4e1cd4._0x46a292,_0x4e1cd4._0x27a537)],'requestMutators':this[_0x5cad14(_0x4e1cd4._0x29baea,0x248,_0x4e1cd4._0x3d4f4c,_0x4e1cd4._0x4ee960)],'signal':_0x2e5a4a}),_0x4111db=toChatRequest(_0x324d30[_0x5cad14(0x379,0x2a4,_0x4e1cd4._0x1aba8a,_0x4e1cd4._0x4c14c1)]),_0x28b2ba=this[_0x5cad14(_0x4e1cd4._0x54ca3e,_0x4e1cd4._0x3a09c4,0x36e,_0x4e1cd4._0x8ce46c)][_0x5cad14(0x21c,_0x4e1cd4._0x426e16,0x335,_0x4e1cd4._0x199e9f)](this['apiKey'],_0x324d30[_0x5cad14(0x248,_0x4e1cd4._0x56725f,_0x4e1cd4._0x20b03b,_0x4e1cd4._0x307372)]);function _0x5a8e8e(_0x253e18,_0x2defd2,_0x10904c,_0x369be8){return _0x5a1062(_0x369be8- -_0x5a5f00._0x22611d,_0x10904c,_0x10904c-_0x5a5f00._0x435742,_0x369be8-_0x5a5f00._0x10d6c2);}if(!_0x28b2ba)throw this[_0x5a8e8e(-0x228,-_0x4e1cd4._0x459e47,-0x131,-0x1f3)]();function _0x5cad14(_0x1f72ef,_0x446a53,_0x3e2c49,_0x2e5c94){return _0x5a1062(_0x446a53-0x94,_0x2e5c94,_0x3e2c49-_0xf790c._0x4b1d27,_0x2e5c94-_0xf790c._0x57fb24);}return{'baseUrl':this[_0x5cad14(0x2f8,0x291,_0x4e1cd4._0xd71c06,_0x4e1cd4._0x1c5c1d)][_0x5cad14(_0x4e1cd4._0x5f136f,_0x4e1cd4._0xde5340,_0x4e1cd4._0x4b009e,_0x4e1cd4._0x486b9f)](this[_0x5cad14(_0x4e1cd4._0x17a031,_0x4e1cd4._0x46aefa,_0x4e1cd4._0x312752,_0x4e1cd4._0x5a465a)],_0x324d30[_0x5a8e8e(-0x231,-0x1f0,-0x1fd,-_0x4e1cd4._0x1ba6af)]),'credential':_0x28b2ba,'request':_0x4111db,'session':_0x324d30[_0x5cad14(0x30f,0x296,0x202,0x251)]};}[_0x1a8b4d(0x37,-0x34,0x48,0x21)](_0x4e81cb){const _0x4cae4a={_0x310528:0x5f7,_0x4ae3eb:0x6cb,_0x59fe11:0x693,_0x313dcf:0x631,_0x557703:0x6d3,_0x10b02a:0x7a6},_0x1ade3e={_0x276ed5:0x87,_0x5480fd:0x19c},_0x4e06b4={_0x5e268b:0x7e,_0xa3ddc2:0x1be};function _0x22c233(_0x1049d1,_0x5255a3,_0x26cf7a,_0xb50da3){return _0x5a1062(_0xb50da3-_0x4e06b4._0x5e268b,_0x1049d1,_0x26cf7a-_0x4e06b4._0xa3ddc2,_0xb50da3-0x165);}function _0x128b0e(_0x34b8e6,_0x33bcf5,_0x53d747,_0x5a08d0){return _0x5a1062(_0x33bcf5-0x3a4,_0x53d747,_0x53d747-_0x1ade3e._0x276ed5,_0x5a08d0-_0x1ade3e._0x5480fd);}return{...structuredClone(_0x4e81cb),..._0x4e81cb[_0x128b0e(0x777,0x6d3,0x682,_0x4cae4a._0x310528)]===void 0x0&&this[_0x128b0e(_0x4cae4a._0x4ae3eb,0x6d3,_0x4cae4a._0x59fe11,0x683)]!==void 0x0?{'reasoning':structuredClone(this[_0x128b0e(_0x4cae4a._0x313dcf,_0x4cae4a._0x557703,0x76d,_0x4cae4a._0x10b02a)])}:{}};}async[_0x5a1062(0x231,0x2bb,0x26d,0x22f)](_0x43f6a2,_0x2e7b14,_0x5a089f,_0x5cfe19={},_0x26dc7d=!![]){const _0x23abf0={_0x5a7f33:0x259,_0x8abdb1:0x133,_0x496f89:0x1b3,_0x51dd99:0xf9,_0x3791c8:0x91,_0x5345e3:0x106,_0x7841ac:0x102,_0x8ce0a1:0x171,_0x530d6e:0x13d,_0x27f6a1:0x218,_0x52f1f4:0x1f1,_0x4c1fce:0x119,_0x31cfe4:0x154,_0x108e18:0xbe,_0x25458b:0x6e,_0x21d7ac:0xf2,_0x31873b:0xd8,_0xe78a08:0xe8,_0x26d750:0x33,_0x3f5efb:0xb7,_0x38e2d6:0x199,_0x82df6:0xbe,_0x5afc34:0x18d,_0x4bb52a:0xb2,_0x5ab606:0x3f,_0x4da166:0x6c,_0x533f2b:0xd1,_0x2616a6:0x166,_0x145cce:0x1c3,_0x55f20f:0x15b,_0x2cb76f:0xb3,_0x4eddf6:0x186,_0x54cb96:0x24e,_0x2e31ac:0x23e,_0x31360a:0x13b,_0x21ded7:0xbf,_0x50ab5e:0xa,_0x20a968:0x72,_0x1198bf:0xf4,_0xfa3191:0x7a},{signal:_0x448692}=_0x5cfe19,_0x2ee66f=async()=>{const _0x9d81d3={_0x534e5a:0x2a3},_0x569217=await this[_0x59478d(0x1a2,_0x23abf0._0x5a7f33,_0x23abf0._0x8abdb1,_0x23abf0._0x496f89)](_0x43f6a2,_0x448692);let _0x37dbce;try{_0x37dbce=_0x2e7b14['createRequest'](_0x569217[_0x13e985(-_0x23abf0._0x51dd99,-_0x23abf0._0x3791c8,-_0x23abf0._0x5345e3,0x43)]);}catch(_0x3b2a35){if(_0x3b2a35 instanceof Error)throw new ProviderRequestConstructionError(_0x3b2a35[_0x59478d(0x19e,0x25d,_0x23abf0._0x7841ac,_0x23abf0._0x8ce0a1)]);throw _0x3b2a35;}function _0x59478d(_0x439951,_0x3ebdcb,_0x81d41c,_0x1dcf92){return _0x377c(_0x439951- -0x187,_0x1dcf92);}if(!_0x37dbce[_0x13e985(-0x1a,0x83,0x10f,0x45)])throw new ProviderRequestConstructionError(_0x59478d(_0x23abf0._0x530d6e,0x9b,_0x23abf0._0x27f6a1,_0x23abf0._0x52f1f4)+_0x2e7b14['id']+_0x59478d(_0x23abf0._0x4c1fce,0xd2,_0x23abf0._0x31cfe4,0x19b));const _0xbdb9cf=await this['createHeaders']({'request':_0x569217[_0x13e985(-_0x23abf0._0x108e18,-_0x23abf0._0x3791c8,-0xf7,-_0x23abf0._0x25458b)],'body':_0x37dbce['body'],'credential':_0x569217[_0x59478d(0xed,_0x23abf0._0x21d7ac,0x19,0xf0)],'session':_0x569217[_0x59478d(0x7d,_0x23abf0._0x31873b,_0x23abf0._0xe78a08,-_0x23abf0._0x26d750)],'stream':_0x5a089f},{'accept':_0x37dbce[_0x13e985(-0x94,-_0x23abf0._0x3f5efb,-_0x23abf0._0x38e2d6,0x22)]??(_0x5a089f?_0x13e985(-0xbe,-0x8,_0x23abf0._0x82df6,0x99):_0x59478d(_0x23abf0._0x5afc34,0xb4,0x138,_0x23abf0._0x4bb52a)),'includeContentType':_0x37dbce[_0x13e985(_0x23abf0._0x5ab606,-_0x23abf0._0x4da166,-_0x23abf0._0x533f2b,-0x4b)]!==void 0x0});function _0x13e985(_0xe13bf3,_0x165c6e,_0x3bddb3,_0x37a601){return _0x377c(_0x165c6e- -_0x9d81d3._0x534e5a,_0x37a601);}for(const [_0x4f048a,_0x56b142]of Object[_0x59478d(_0x23abf0._0x2616a6,0x192,_0x23abf0._0x145cce,0x95)](_0x37dbce[_0x13e985(-_0x23abf0._0x55f20f,-0xd1,-0x15d,-0x1ae)]??{})){_0xbdb9cf['set'](_0x4f048a,_0x56b142);}return this[_0x13e985(-_0x23abf0._0x2cb76f,-0x19,-0xaa,-0xaf)](''+_0x569217[_0x59478d(0x1d5,0x149,_0x23abf0._0x4eddf6,_0x23abf0._0x7841ac)]+_0x37dbce[_0x59478d(0x19f,_0x23abf0._0x54cb96,0x199,_0x23abf0._0x2e31ac)],{'method':'POST','headers':_0xbdb9cf,..._0x37dbce[_0x13e985(-_0x23abf0._0x31360a,-_0x23abf0._0x4da166,-0xec,-0x27)]!==void 0x0?{'body':JSON[_0x13e985(_0x23abf0._0x21ded7,-0x29,-_0x23abf0._0x50ab5e,_0x23abf0._0x20a968)](_0x37dbce[_0x59478d(0xb0,_0x23abf0._0x1198bf,0x117,_0x23abf0._0xfa3191)])}:{},'signal':_0x448692});};return _0x26dc7d?await this['sendWithRetries'](_0x2ee66f,_0x5cfe19):await _0x2ee66f();}async*[_0x1a8b4d(0x107,0x35,-0x85,-0x5e)](_0x4d2520,_0x5491d2,_0x267ec3={}){const _0x40c054={_0x566305:0x3c6,_0xab3acb:0x16b,_0x44fb4f:0x180,_0x48f72f:0x543,_0x2676bb:0x4fd,_0x499239:0x54f,_0xcd3c89:0x3a8,_0x3b815:0xa2,_0xf07f59:0x1f8,_0x270d5d:0x1fb,_0x2b0cfb:0x173,_0x3ac7f4:0x4b9,_0x2b7310:0x42f,_0x378035:0x431,_0x4ee5bd:0x107,_0x3969fb:0x19f,_0x2604b9:0x107,_0x2f96d8:0x17d,_0x66e865:0xb3,_0xafe76a:0xa9,_0x472132:0x1b5,_0xaecbef:0x26d,_0x269043:0x2e4,_0x270ed9:0x167},_0x1a5681={_0x1e7e4a:0xcd},_0x41bacc={_0x223752:0x4bf,_0x43bfb4:0x3e};function _0x151224(_0x57d7c9,_0x3e9ac7,_0x3f1e9b,_0x3f840c){return _0x1a8b4d(_0x3e9ac7,_0x3f1e9b-_0x41bacc._0x223752,_0x3f1e9b-_0x41bacc._0x43bfb4,_0x3f840c-0xf7);}function _0x31f684(_0x4d82a5,_0x54094b,_0x178b04,_0x5637a7){return _0x5a1062(_0x5637a7- -0x3cc,_0x178b04,_0x178b04-0x18e,_0x5637a7-_0x1a5681._0x1e7e4a);}const {signal:_0x41b272}=_0x267ec3;let _0x211c9e=![];for(let _0x21b5eb=0x0;_0x21b5eb<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x21b5eb+=0x1){let _0x100449=![];try{const _0x3ef91c=await this[_0x151224(0x423,0x405,_0x40c054._0x566305,0x3c9)](_0x4d2520,_0x5491d2,!![],_0x267ec3,![]);if(_0x3ef91c[_0x31f684(-_0x40c054._0xab3acb,-_0x40c054._0x44fb4f,-0x1dd,-0x120)]===0x191&&this['sessionManager']&&!_0x211c9e){_0x211c9e=!![],this[_0x151224(_0x40c054._0x48f72f,0x4f9,0x4bf,_0x40c054._0x2676bb)][_0x31f684(-0x249,-0x208,-0x27b,-0x1f2)]();continue;}if(!_0x3ef91c['ok'])throw await this['toApiError'](_0x3ef91c);const _0x1945b7=_0x5491d2[_0x151224(0x558,_0x40c054._0x499239,0x46a,_0x40c054._0xcd3c89)]?.(_0x4d2520);if(!_0x1945b7?.[_0x31f684(-_0x40c054._0x3b815,-_0x40c054._0xf07f59,-0x153,-0x142)])throw new Error('Surface\x20'+_0x5491d2['id']+'\x20cannot\x20parse\x20SSE\x20events');for await(const _0x1be41e of iterateSseEvents(_0x3ef91c,_0x41b272)){const _0x23959d=_0x1945b7[_0x31f684(-0x1aa,-0x105,-0x12d,-0x142)](_0x1be41e);for(const _0x3d3589 of _0x23959d){_0x100449=!![],yield _0x3d3589;}}yield{'type':_0x31f684(-0x1b2,-_0x40c054._0x270d5d,-0x162,-_0x40c054._0x2b0cfb),'response':_0x1945b7[_0x151224(_0x40c054._0x3ac7f4,0x462,_0x40c054._0x2b7310,0x419)]()};return;}catch(_0x5a5c9e){if(_0x100449||!this[_0x151224(0x3d2,0x445,_0x40c054._0x378035,0x3e9)](_0x5a5c9e)||_0x21b5eb===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x5a5c9e;const _0x435957=this[_0x31f684(-_0x40c054._0x4ee5bd,-_0x40c054._0x3969fb,-0x13f,-_0x40c054._0x2604b9)](void 0x0,_0x21b5eb),_0xe50dfc={'type':_0x31f684(-0x1de,-_0x40c054._0x2f96d8,-0x219,-0x1ef),'attempt':_0x21b5eb+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x5a5c9e instanceof Error?_0x5a5c9e[_0x31f684(-0x184,-_0x40c054._0x66e865,0x2d,-_0x40c054._0xafe76a)]:String(_0x5a5c9e),'delayMs':_0x435957,'reason':this[_0x31f684(-_0x40c054._0xab3acb,-_0x40c054._0x472132,-_0x40c054._0xaecbef,-0x192)](_0x5a5c9e)?_0x31f684(-_0x40c054._0x269043,-_0x40c054._0x270ed9,-0x207,-0x202):'stream_error'};yield _0xe50dfc,await this[_0x31f684(0x8,-0xc3,-0x10b,-0xa4)](_0x435957,_0x41b272);}}}async*[_0x1a8b4d(-0x12e,-0x70,-0xd3,-0xae)](_0x3bd17a,_0x57bd06,_0x4aeb7e){const _0x576bf8={_0x17be6e:0x485,_0x2c7a20:0x409,_0x3a720c:0x3a6,_0x32bc0a:0x4d2,_0x3f5792:0x586,_0x5a0b7b:0x462,_0x292257:0x2fc,_0x3c0e2a:0x4c9,_0x4d6b1e:0x3e9,_0x38ce25:0x440,_0x14e97f:0x2e6,_0x24aa52:0x26a,_0x3b4125:0x2b4,_0x5972ce:0x669,_0x380d22:0x497,_0x3fc605:0x46e,_0x307ffc:0x3a0,_0x12dadd:0x438,_0xc50dc7:0x5e2,_0x2374f9:0x681,_0x1221fe:0x45a,_0x28ed0c:0x49b,_0x2851f8:0x365,_0x45ba32:0x53c,_0x434854:0x600,_0x3bba19:0x6c6,_0x59a9e1:0x5da,_0x30bd2a:0x528,_0xb8a6db:0x4b9,_0x1d492a:0x51a,_0x5ea1e9:0x532,_0xf37417:0x48c,_0x3971dc:0x2e9,_0x101e92:0x3d0,_0x12e6e5:0x316,_0x4ad9e1:0x3f0,_0x486162:0x426,_0x5d0ff0:0x399,_0x236e4b:0x33e,_0x31c478:0x2e4,_0x126bd4:0x2a2,_0x3387ed:0x52d,_0x59ee69:0x3bc,_0xb6be47:0x422,_0x56402a:0x429,_0x1da29d:0x676,_0x2c1a92:0x565,_0x584498:0x630,_0x313631:0x636,_0x68ae3f:0x37e,_0xeb70f0:0x36e,_0x4c082a:0x28b,_0x353daf:0x341,_0x5488de:0x5a6,_0x1a217a:0x5c6,_0x5d071a:0x5cf,_0x449ac5:0x572,_0x52e29f:0x36f,_0x5910c7:0x45f,_0x3061de:0x636,_0x3112f:0x329,_0x505589:0x355,_0x375954:0x2cf,_0x7d3ce0:0x74b,_0x234d36:0x634},_0x5ebb41={_0x3093ea:0x114},_0x2f0b6d={_0x4a203d:0x62},_0x3b8b48=await this[_0x240f71(_0x576bf8._0x17be6e,0x3b6,0x3a2,0x43b)](_0x3bd17a,_0x4aeb7e);function _0x32b2ec(_0x422c69,_0x1d425f,_0x3c8bbe,_0x4d4d62){return _0x5a1062(_0x4d4d62-0x345,_0x1d425f,_0x3c8bbe-_0x2f0b6d._0x4a203d,_0x4d4d62-0x138);}const _0x432f3e=_0x57bd06[_0x240f71(0x47e,0x2f5,_0x576bf8._0x2c7a20,_0x576bf8._0x3a720c)](_0x3b8b48[_0x32b2ec(0x506,_0x576bf8._0x32bc0a,_0x576bf8._0x3f5792,0x555)]),_0xe9cb76=_0x57bd06[_0x240f71(_0x576bf8._0x5a0b7b,_0x576bf8._0x292257,_0x576bf8._0x3c0e2a,_0x576bf8._0x4d6b1e)]?.(_0x3bd17a);function _0x240f71(_0x57d993,_0x17d1ff,_0x35d7c3,_0x46bb6a){return _0x5a1062(_0x46bb6a-_0x5ebb41._0x3093ea,_0x57d993,_0x35d7c3-0x16f,_0x46bb6a-0x41);}if(!_0xe9cb76?.[_0x240f71(0x2f2,_0x576bf8._0x38ce25,_0x576bf8._0x14e97f,0x3a5)])throw new Error('Surface\x20'+_0x57bd06['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x55f144=_0x432f3e[_0x240f71(_0x576bf8._0x24aa52,0x333,0x24e,_0x576bf8._0x3b4125)]??(_0x432f3e[_0x32b2ec(0x6e9,0x63d,0x704,_0x576bf8._0x5972ce)]?(''+_0x3b8b48[_0x240f71(0x4c2,0x4ec,_0x576bf8._0x380d22,_0x576bf8._0x3fc605)]+_0x432f3e[_0x240f71(0x435,0x384,_0x576bf8._0x307ffc,_0x576bf8._0x12dadd)])[_0x32b2ec(0x65e,_0x576bf8._0xc50dc7,0x5ff,_0x576bf8._0x2374f9)](/^http:/,_0x240f71(0x2d3,0x345,_0x576bf8._0x1221fe,0x3bc))[_0x240f71(_0x576bf8._0x28ed0c,_0x576bf8._0x2851f8,0x38c,0x450)](/^https:/,'wss:'):void 0x0);if(!_0x55f144)throw new ProviderRequestConstructionError(_0x32b2ec(0x5b6,0x545,_0x576bf8._0x45ba32,0x607)+_0x57bd06['id']+_0x32b2ec(_0x576bf8._0x434854,0x698,_0x576bf8._0x3bba19,_0x576bf8._0x59a9e1));const _0x34d0ac=await this[_0x32b2ec(_0x576bf8._0x30bd2a,_0x576bf8._0xb8a6db,0x589,_0x576bf8._0x1d492a)]({'request':_0x3b8b48[_0x32b2ec(0x4cc,_0x576bf8._0x5ea1e9,_0x576bf8._0xf37417,0x555)],'body':_0x432f3e['initialEvent'],'credential':_0x3b8b48['credential'],'session':_0x3b8b48[_0x240f71(_0x576bf8._0x3971dc,_0x576bf8._0x101e92,0x255,_0x576bf8._0x12e6e5)],'stream':!![]},{'accept':_0x432f3e['accept']??_0x240f71(_0x576bf8._0x4ad9e1,0x4a9,0x417,_0x576bf8._0x486162),'includeContentType':![]});for(const [_0x97d193,_0x18966a]of Object[_0x240f71(_0x576bf8._0x5d0ff0,_0x576bf8._0x236e4b,0x40c,0x3ff)](_0x432f3e[_0x240f71(0x37b,0x213,0x34c,_0x576bf8._0x31c478)]??{})){_0x34d0ac['set'](_0x97d193,_0x18966a);}_0x34d0ac[_0x240f71(0x335,0x3bd,_0x576bf8._0x126bd4,0x380)](_0x32b2ec(_0x576bf8._0x3387ed,0x47e,0x56f,0x52f));const _0x14278=this[_0x32b2ec(_0x576bf8._0x30bd2a,0x536,0x512,0x5c4)]({'headers':Object[_0x240f71(_0x576bf8._0x59ee69,_0x576bf8._0xb6be47,_0x576bf8._0x56402a,0x3b1)](_0x34d0ac[_0x32b2ec(_0x576bf8._0x1da29d,0x58d,_0x576bf8._0x2c1a92,_0x576bf8._0x584498)]()),'url':_0x55f144});try{throwIfAborted(_0x4aeb7e);_0x14278[_0x32b2ec(0x6cd,0x5ea,0x55e,_0x576bf8._0x313631)]!==WebSocket[_0x240f71(0x31b,0x294,_0x576bf8._0x68ae3f,0x2d1)]&&await waitForWebSocketOpen(_0x14278,_0x4aeb7e);throwIfAborted(_0x4aeb7e);_0x432f3e[_0x240f71(0x3d1,_0x576bf8._0xeb70f0,_0x576bf8._0x4c082a,_0x576bf8._0x353daf)]!==void 0x0&&_0x14278[_0x32b2ec(_0x576bf8._0x5488de,_0x576bf8._0x1a217a,0x6d8,0x68a)](JSON['stringify'](_0x432f3e[_0x32b2ec(0x4c0,_0x576bf8._0x2c1a92,_0x576bf8._0x5d071a,_0x576bf8._0x449ac5)]));for await(const _0x2df415 of iterateWebSocketMessages(_0x14278,_0x4aeb7e)){yield*_0xe9cb76[_0x240f71(0x464,_0x576bf8._0x52e29f,0x368,0x3a5)](_0x2df415);if(_0xe9cb76['isDone']?.())break;}yield{'type':_0x32b2ec(0x5df,0x555,0x562,0x59e),'response':_0xe9cb76[_0x240f71(_0x576bf8._0x5910c7,0x3ef,0x43f,0x3ae)]()};}finally{_0x14278[_0x32b2ec(0x685,0x656,0x5e1,_0x576bf8._0x3061de)]===WebSocket['OPEN']&&_0x14278['close'](0x3e8,_0x4aeb7e?.[_0x240f71(0x3e0,0x298,_0x576bf8._0x3112f,_0x576bf8._0x505589)]?_0x240f71(_0x576bf8._0x375954,0x383,_0x576bf8._0x2851f8,0x355):_0x32b2ec(0x6ee,_0x576bf8._0x7d3ce0,_0x576bf8._0x234d36,0x6b7));}}};async function createHttpError(_0x29c970){const _0x2489da={_0x35433a:0x50a,_0x3222b6:0x426,_0x1ee741:0x47b,_0x4ce015:0x116,_0x210282:0x48f,_0x3cc614:0x431,_0x2f17d4:0x409,_0x2a9751:0x66,_0xaefaad:0x47d,_0x4b7c7d:0x411},_0x4a4685={_0x354681:0x18f,_0x3002d4:0x5e,_0x1234b1:0xee},_0x32bd87={_0x2326dc:0xba};function _0x24165f(_0x555612,_0x171bcf,_0x2dadeb,_0x117166){return _0x1a8b4d(_0x2dadeb,_0x171bcf-0x4fb,_0x2dadeb-_0x32bd87._0x2326dc,_0x117166-0xb2);}function _0x208806(_0x466140,_0x41f61a,_0x3efdbf,_0xf8b034){return _0x5a1062(_0x41f61a- -_0x4a4685._0x354681,_0x466140,_0x3efdbf-_0x4a4685._0x3002d4,_0xf8b034-_0x4a4685._0x1234b1);}const _0x5196be=await _0x29c970[_0x24165f(_0x2489da._0x35433a,_0x2489da._0x3222b6,_0x2489da._0x1ee741,0x4ca)](),_0x8ec6ac=_0x5196be[_0x208806(0x113,_0x2489da._0x4ce015,0x126,0x155)]()||_0x29c970[_0x24165f(_0x2489da._0x210282,_0x2489da._0x3cc614,_0x2489da._0x2f17d4,0x516)]||_0x208806(_0x2489da._0x2a9751,0x122,0x6d,0x185);return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x29c970[_0x24165f(0x42d,_0x2489da._0xaefaad,_0x2489da._0x4b7c7d,0x3f4)]+':\x20'+_0x8ec6ac);}var AnthropicProviderAdapter=class{[_0x5a1062(0x23e,0x1c5,0x1d4,0x16e)];[_0x1a8b4d(-0xbc,-0xe8,-0x33,-0x198)];['protocolVersion'];constructor(_0x371864){const _0x4d131c={_0x308e62:0x6e,_0x381924:0x347,_0x505741:0x392,_0x381759:0x2d2,_0x256988:0x72,_0x5d7a54:0x3e,_0x43f4d9:0x63,_0x1cf405:0x170,_0x27eb0e:0x23d,_0x33b692:0xc1,_0x3e7a80:0x23,_0x23377a:0x99},_0x3fcd11={_0x4e7507:0x3ba,_0x5f44f1:0x191};function _0xfe665e(_0x48dd4d,_0x4e5002,_0x5688f6,_0x509fd9){return _0x1a8b4d(_0x509fd9,_0x4e5002-0x15a,_0x5688f6-0x1e8,_0x509fd9-0x8e);}function _0x12b7cd(_0x2140d4,_0x414438,_0x70a43e,_0x1d4fcb){return _0x1a8b4d(_0x414438,_0x70a43e-_0x3fcd11._0x4e7507,_0x70a43e-0x158,_0x1d4fcb-_0x3fcd11._0x5f44f1);}this[_0xfe665e(0x142,_0x4d131c._0x308e62,0x104,0x69)]=_0x371864['authScheme'],this[_0x12b7cd(_0x4d131c._0x381924,_0x4d131c._0x505741,_0x4d131c._0x381759,0x3bc)]=_0x371864[_0xfe665e(0x15c,_0x4d131c._0x256988,_0x4d131c._0x5d7a54,_0x4d131c._0x43f4d9)],this[_0x12b7cd(_0x4d131c._0x1cf405,0x291,_0x4d131c._0x27eb0e,0x2cf)]=_0x371864[_0xfe665e(_0x4d131c._0x33b692,-_0x4d131c._0x3e7a80,-0xcf,_0x4d131c._0x23377a)];}['createMissingCredentialError'](){return new Error('AnthropicModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x1a8b4d(-0x68,-0x155,-0x178,-0x89)](_0x1c635b,_0x10293a){const _0x214e8d={_0x194d0a:0x69b,_0x15c3ed:0x162,_0x2a2bca:0x1fb,_0x2d284b:0x263,_0x46e659:0x1bb,_0x160a1e:0x63e,_0xbcd4ad:0x69b,_0x20ad9b:0x702,_0x388d41:0xba,_0x9a6971:0x5b6,_0x4c056e:0x6e5,_0x41abb0:0x6a5,_0xcc320:0x571,_0x3acec3:0x5b7,_0x3674b2:0x578,_0x49e22f:0x52b,_0x15f1e2:0x781,_0x2786b9:0x730,_0x4e57b2:0x5ea,_0x1d7914:0x12d,_0x4f9d8a:0x20f,_0x265e40:0x2c9,_0x43cae4:0x3cc,_0x4de71b:0x317,_0x295664:0x355,_0x5cca3:0x34a,_0x366f9a:0x29b,_0x1db195:0x2ad,_0x4c4ef7:0x285,_0x5a1ed4:0x360,_0x459719:0x20b,_0x1ec03f:0x2be,_0x52b482:0x76d,_0x101623:0x69b,_0x2b66b9:0x6f1,_0x142273:0x2b2,_0x554669:0x22b,_0x15025f:0x243,_0x32d10b:0x2ed,_0x3eea31:0x253,_0x5d4451:0x217,_0x1f6965:0x26c,_0x5d6b3a:0x21e,_0x26309b:0x3a7,_0x252c3c:0x2f7,_0x4879b8:0x2e4,_0x540f5a:0x337,_0x9917ee:0x30f,_0x2d4e0e:0x5f0,_0x54ebff:0x736},_0x33de30={_0x3ac919:0x3ad,_0x441d81:0x3d,_0x4794af:0x1c7},_0xa79a22={_0x3798e4:0x10},_0x27bcdc=new Headers();function _0x588e3e(_0x689cac,_0x3c8bdc,_0xc3028c,_0x59cc4c){return _0x5a1062(_0x59cc4c- -0x2f,_0x689cac,_0xc3028c-_0xa79a22._0x3798e4,_0x59cc4c-0x194);}function _0x2c9137(_0x343d97,_0x2d289a,_0x33c5d2,_0x26f854){return _0x5a1062(_0x33c5d2-_0x33de30._0x3ac919,_0x26f854,_0x33c5d2-_0x33de30._0x441d81,_0x26f854-_0x33de30._0x4794af);}_0x27bcdc[_0x2c9137(0x5d7,0x642,_0x214e8d._0x194d0a,0x6d4)]('accept',_0x10293a[_0x588e3e(_0x214e8d._0x15c3ed,_0x214e8d._0x2a2bca,_0x214e8d._0x2d284b,_0x214e8d._0x46e659)]),_0x27bcdc[_0x2c9137(0x65a,_0x214e8d._0x160a1e,_0x214e8d._0xbcd4ad,_0x214e8d._0x20ad9b)]('anthropic-version',this[_0x588e3e(0x18a,_0x214e8d._0x388d41,0xab,0x17e)]);_0x10293a['includeContentType']!==![]&&_0x27bcdc[_0x2c9137(_0x214e8d._0x9a6971,_0x214e8d._0x4c056e,_0x214e8d._0xbcd4ad,_0x214e8d._0x41abb0)](_0x2c9137(_0x214e8d._0xcc320,_0x214e8d._0x3acec3,_0x214e8d._0x3674b2,_0x214e8d._0x49e22f),_0x2c9137(_0x214e8d._0x15f1e2,_0x214e8d._0x2786b9,0x6bf,_0x214e8d._0x4e57b2));this[_0x588e3e(_0x214e8d._0x1d7914,0x2db,0x2c6,_0x214e8d._0x4f9d8a)]===_0x588e3e(_0x214e8d._0x265e40,_0x214e8d._0x43cae4,0x35b,_0x214e8d._0x4de71b)?_0x27bcdc[_0x588e3e(0x28f,_0x214e8d._0x295664,0x294,0x2bf)](_0x588e3e(0x1e2,_0x214e8d._0x5cca3,_0x214e8d._0x366f9a,_0x214e8d._0x1db195),_0x588e3e(_0x214e8d._0x4c4ef7,0x296,0xf3,0x1c8)+_0x1c635b['credential'][_0x588e3e(0x265,_0x214e8d._0x5a1ed4,_0x214e8d._0x459719,_0x214e8d._0x1ec03f)]):_0x27bcdc[_0x2c9137(_0x214e8d._0x52b482,0x645,_0x214e8d._0x101623,_0x214e8d._0x2b66b9)](_0x2c9137(0x5cd,0x768,0x6b5,0x5cd),_0x1c635b[_0x588e3e(_0x214e8d._0x142273,_0x214e8d._0x554669,0x2df,_0x214e8d._0x15025f)][_0x588e3e(0x313,0x1d9,0x310,0x2be)]);const _0x32e401=await this[_0x588e3e(_0x214e8d._0x32d10b,_0x214e8d._0x3eea31,_0x214e8d._0x5d4451,0x213)]?.({'body':_0x1c635b['body'],'credential':_0x1c635b['credential'],'request':_0x1c635b['request'],'session':_0x1c635b[_0x588e3e(0x1ce,_0x214e8d._0x1f6965,_0x214e8d._0x5d6b3a,0x1d3)],'stream':_0x1c635b[_0x588e3e(_0x214e8d._0x26309b,0x31c,_0x214e8d._0x252c3c,_0x214e8d._0x4879b8)]});for(const [_0x231edf,_0x24e95a]of Object[_0x588e3e(0x249,_0x214e8d._0x540f5a,_0x214e8d._0x9917ee,0x2bc)](_0x32e401??{})){_0x27bcdc[_0x2c9137(0x6e7,_0x214e8d._0x2d4e0e,0x69b,_0x214e8d._0x54ebff)](_0x231edf,_0x24e95a);}return _0x27bcdc;}[_0x5a1062(0x2a7,0x307,0x1d9,0x307)](_0x357c80){return _0x357c80;}[_0x1a8b4d(-0x12b,-0xb9,-0x22,-0x84)](_0x3dc8c3,_0x40dcf7){return resolveSessionBaseUrl(_0x3dc8c3,_0x40dcf7);}[_0x5a1062(0x253,0x337,0x17b,0x341)](_0x48d8ea,_0x4a538c){return resolveApiCredential(_0x48d8ea,_0x4a538c);}async[_0x5a1062(0x361,0x360,0x2cd,0x37b)](_0x3e0345){return await createHttpError(_0x3e0345);}},AnthropicModel=class extends RoutedModel{constructor(_0x2520bc={}){const _0x3a9297={_0x5e34d2:0x6f3,_0x3cce9e:0x6ae,_0x28ba36:0x757,_0xee3be7:0x6ac,_0x1edf76:0x662,_0x3bb746:0x5e9,_0x5870d1:0x5eb,_0x526462:0x6c0,_0x5158e3:0x5fd,_0x5002af:0x5b5,_0x147159:0x616,_0x45976b:0x716,_0x25caca:0x6e7,_0x351c02:0x7a2,_0x2276f0:0x704,_0x1bb465:0x77a,_0x456451:0x6ed,_0x2ed73c:0x613,_0x291a90:0x568,_0x4811b7:0x66a,_0x3c9f2d:0x68b,_0x55e354:0x61d,_0x19c984:0x630,_0x2e9f78:0x6fc,_0x1cfeda:0x471,_0x23a73e:0x58d,_0x551947:0x50f},_0x1eccd4={_0x44fd7c:0x6ad},_0x37b48b={_0x395f19:0x141};function _0x53a3b8(_0xc7893a,_0x56d101,_0x555354,_0x3d9a32){return _0x1a8b4d(_0x555354,_0x56d101-0x6ff,_0x555354-_0x37b48b._0x395f19,_0x3d9a32-0x1e7);}function _0x275e2b(_0x25b618,_0x3ceb4b,_0x2e9c4b,_0x7df5fb){return _0x1a8b4d(_0x25b618,_0x7df5fb-_0x1eccd4._0x44fd7c,_0x2e9c4b-0x85,_0x7df5fb-0x1be);}super({'apiKey':_0x2520bc[_0x275e2b(0x7c1,0x60c,0x6da,_0x3a9297._0x5e34d2)],'baseUrl':trimTrailingSlashes(_0x2520bc[_0x53a3b8(_0x3a9297._0x3cce9e,0x72f,_0x3a9297._0x28ba36,0x6d3)]??_0x275e2b(_0x3a9297._0xee3be7,_0x3a9297._0x1edf76,_0x3a9297._0x3bb746,_0x3a9297._0x5870d1)),'fetch':_0x2520bc['fetch'],'maxTokens':_0x2520bc[_0x275e2b(_0x3a9297._0x526462,_0x3a9297._0x5158e3,_0x3a9297._0x5002af,_0x3a9297._0x147159)]??0x4000,'model':_0x2520bc['model']??_0x275e2b(_0x3a9297._0x45976b,0x64a,0x703,_0x3a9297._0x25caca),'reasoning':_0x2520bc[_0x53a3b8(_0x3a9297._0x351c02,_0x3a9297._0x2276f0,_0x3a9297._0x1bb465,0x78c)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x2520bc[_0x53a3b8(_0x3a9297._0x456451,_0x3a9297._0x2ed73c,_0x3a9297._0x291a90,0x65a)]??_0x275e2b(0x5da,_0x3a9297._0x4811b7,0x6d3,_0x3a9297._0x3c9f2d),'headerResolver':_0x2520bc[_0x275e2b(_0x3a9297._0x55e354,0x5e5,0x690,0x5c5)],'protocolVersion':_0x2520bc['protocolVersion']??'2023-06-01'}),'providerSessionResolver':_0x2520bc[_0x275e2b(_0x3a9297._0x19c984,_0x3a9297._0x2e9f78,0x765,0x677)],'requestMutators':_0x2520bc[_0x275e2b(_0x3a9297._0x1cfeda,_0x3a9297._0x23a73e,_0x3a9297._0x551947,0x537)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x1a8b4d(-0x1a,0x3,0x2e,-0x58)](_0x1a4efc,_0x476ff3){return this['completeViaSurface'](_0x1a4efc,ANTHROPIC_MESSAGES_SURFACE,_0x476ff3);}[_0x1a8b4d(-0x1e,-0x17,-0xeb,-0x96)](_0x163502,_0x267302){const _0x46fbf0={_0x140619:0x315,_0x1433ff:0x3fa,_0x468e0c:0x464},_0x4a97ea={_0x4d5620:0x46};function _0x4e5366(_0x33aca5,_0x4c5d5a,_0xd88899,_0x256f23){return _0x1a8b4d(_0x33aca5,_0xd88899-0x408,_0xd88899-_0x4a97ea._0x4d5620,_0x256f23-0x1be);}return this[_0x4e5366(_0x46fbf0._0x140619,0x327,_0x46fbf0._0x1433ff,_0x46fbf0._0x468e0c)](_0x163502,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x267302);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x1a8b4d(-0xe3,-0x42,0x26,0x27),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream',OPENAI_RESPONSES_SURFACE=_0x1a8b4d(-0xc8,-0x13d,-0x11c,-0x1da),OPENAI_RESPONSES_STREAM_SURFACE=_0x5a1062(0x301,0x349,0x21c,0x3a5),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x1a8b4d(-0xf4,-0xb,0x10,0x7),OpenAiApiError=class extends Error{[_0x5a1062(0x2ac,0x278,0x27a,0x318)];[_0x1a8b4d(-0xa,-0xf5,-0x12c,-0x1ab)];constructor(_0x813dae,_0x23fe15,_0x5b8036){const _0x54d8cf={_0x22f551:0x4ab,_0x40a878:0x59e,_0x3adffc:0x4dc},_0x5c3bcd={_0x178111:0x1ea,_0x378dca:0x148},_0x3b5075={_0x3a6f47:0x255,_0x21f16e:0x118};super(_0x5b8036),this[_0x58421f(0x58e,_0x54d8cf._0x22f551,_0x54d8cf._0x40a878,_0x54d8cf._0x3adffc)]=_0x58421f(0x58b,0x60f,0x573,0x560);function _0x58421f(_0x559b34,_0x1a30f5,_0x5336ef,_0x38e7a0){return _0x5a1062(_0x559b34-_0x3b5075._0x3a6f47,_0x38e7a0,_0x5336ef-0x1df,_0x38e7a0-_0x3b5075._0x21f16e);}function _0x2c3e88(_0x557ac4,_0x28c1bd,_0x186d18,_0x992d92){return _0x1a8b4d(_0x28c1bd,_0x557ac4- -0x7d,_0x186d18-_0x5c3bcd._0x178111,_0x992d92-_0x5c3bcd._0x378dca);}this['status']=_0x813dae,this['body']=_0x23fe15;}};function stringifySystem(_0x12ca37){const _0x552b35={_0x3d2d5e:0x5fb,_0x5dcd68:0x632,_0x445dfe:0x6e8,_0x23a4dd:0x546},_0x5c9311={_0x996d6f:0x2db,_0x3727ef:0xd5},_0x4f19e5={_0x425b20:0x8e,_0x45f9e5:0x164};function _0xf5e275(_0x2be387,_0x968c39,_0x1abcfa,_0x10d0f3){return _0x5a1062(_0x968c39-0x3c9,_0x2be387,_0x1abcfa-_0x4f19e5._0x425b20,_0x10d0f3-_0x4f19e5._0x45f9e5);}function _0x3eec58(_0x2d0b12,_0x2f11a4,_0x52ae2e,_0x2b6c38){return _0x5a1062(_0x2f11a4-_0x5c9311._0x996d6f,_0x2d0b12,_0x52ae2e-0xc7,_0x2b6c38-_0x5c9311._0x3727ef);}return _0x12ca37[_0x3eec58(_0x552b35._0x3d2d5e,_0x552b35._0x5dcd68,0x6b4,_0x552b35._0x445dfe)](_0x5bdb5b=>_0x5bdb5b[_0xf5e275(0x6a4,0x61e,0x6e4,0x628)])[_0x3eec58(_0x552b35._0x23a4dd,0x601,0x55e,0x580)]('\x0a\x0a');}function createToolDefinitions(_0x22537d){const _0x18f78f={_0x32fdbc:0x1b5,_0xe0c430:0x107,_0x372fda:0x27f,_0x832a01:0x294,_0x3016bc:0x3f7,_0x506215:0x329},_0x393ec3={_0x44e2c6:0x495,_0x22360f:0x458},_0x64679a={_0x4569dd:0x114},_0x4f9e6c={_0x2689c7:0x11c,_0x4fe40e:0x17d},_0x40f54f={_0x41185d:0x2e};function _0x4ee524(_0x2f107b,_0x2a5a43,_0x1d8ad4,_0x2ac27a){return _0x5a1062(_0x2ac27a- -_0x40f54f._0x41185d,_0x2a5a43,_0x1d8ad4-0x9e,_0x2ac27a-0x1ae);}function _0x5bf596(_0x196c68,_0x111d58,_0x1f49a1,_0x23b52b){return _0x1a8b4d(_0x1f49a1,_0x196c68-0x1b3,_0x1f49a1-_0x4f9e6c._0x2689c7,_0x23b52b-_0x4f9e6c._0x4fe40e);}if(_0x22537d[_0x5bf596(_0x18f78f._0x32fdbc,_0x18f78f._0xe0c430,0x1c8,0x17c)]===0x0)return void 0x0;return _0x22537d[_0x4ee524(_0x18f78f._0x372fda,_0x18f78f._0x832a01,_0x18f78f._0x3016bc,_0x18f78f._0x506215)](_0x251926=>{const _0x46bdf4={_0x48e211:0x2ba,_0x135650:0x110};function _0x56dbb1(_0x4919a4,_0x1a7be5,_0x2166eb,_0x52eb71){return _0x5bf596(_0x2166eb-_0x46bdf4._0x48e211,_0x1a7be5-_0x46bdf4._0x135650,_0x1a7be5,_0x52eb71-0x1bd);}function _0x2b3b59(_0x470d93,_0x1af0c2,_0x405fd6,_0x14473a){return _0x5bf596(_0x1af0c2- -_0x64679a._0x4569dd,_0x1af0c2-0x16a,_0x14473a,_0x14473a-0x5f);}return{'type':_0x56dbb1(0x38f,0x357,0x2e7,0x241),'function':{'name':_0x251926[_0x56dbb1(0x3fb,_0x393ec3._0x44e2c6,0x47c,_0x393ec3._0x22360f)],'description':_0x251926['description'],'parameters':_0x251926[_0x56dbb1(0x413,0x4b8,0x440,0x3bb)]}};});}function isImageToolResultBlock(_0x812ccb){const _0x166cb1={_0x4f59c9:0x57c,_0x4153e6:0x568,_0x1c39fb:0x535,_0x19f63d:0x5c,_0x1b5a71:0x161,_0x235d1a:0xc4,_0x3905df:0xdf,_0x5c36b7:0x436,_0x307c87:0x425,_0x2a4c07:0x4ad,_0x13d891:0xf7,_0x439b19:0xdf,_0x16dfba:0x3fe,_0x322dff:0x463,_0x2f5995:0xe8,_0x181bbf:0xbb,_0xbd5465:0x111},_0x564b73={_0x44f283:0x23},_0x193a53={_0x5c0183:0x4f5,_0x25416f:0x4f};function _0x257a22(_0x58c04d,_0x56a061,_0xe1d4b7,_0x299af4){return _0x1a8b4d(_0x56a061,_0x299af4-_0x193a53._0x5c0183,_0xe1d4b7-0xf0,_0x299af4-_0x193a53._0x25416f);}function _0x32c390(_0x276cfe,_0x4fe6cd,_0x417ada,_0x4d7057){return _0x1a8b4d(_0x276cfe,_0x417ada-0xca,_0x417ada-_0x564b73._0x44f283,_0x4d7057-0x2b);}if(typeof _0x812ccb!==_0x257a22(_0x166cb1._0x4f59c9,_0x166cb1._0x4153e6,0x5ea,_0x166cb1._0x1c39fb)||_0x812ccb===null||Array['isArray'](_0x812ccb))return![];const _0x420829=_0x812ccb;return _0x420829[_0x32c390(_0x166cb1._0x19f63d,0x12e,0x82,_0x166cb1._0x1b5a71)]===_0x32c390(-_0x166cb1._0x235d1a,0x22,-0x27,0xa5)&&_0x420829[_0x32c390(0x114,0xbd,_0x166cb1._0x3905df,0x172)]?.[_0x257a22(_0x166cb1._0x5c36b7,_0x166cb1._0x307c87,0x40e,_0x166cb1._0x2a4c07)]==='base64'&&typeof _0x420829[_0x32c390(0x77,_0x166cb1._0x13d891,_0x166cb1._0x439b19,0xa4)]['media_type']===_0x257a22(_0x166cb1._0x16dfba,_0x166cb1._0x322dff,0x55d,0x4d6)&&typeof _0x420829[_0x32c390(_0x166cb1._0x2f5995,_0x166cb1._0x181bbf,_0x166cb1._0x3905df,_0x166cb1._0xbd5465)]['data']==='string';}function getToolResultText(_0x38148a){const _0x28c62f={_0x2b6ea8:0xe9,_0x36a9fd:0x127,_0x280fad:0x24d,_0x413c5a:0x242,_0xc0b127:0xd5,_0x5944d4:0x253,_0x419f90:0x26b,_0x28d753:0x56a,_0x990504:0x49e},_0x5daa18={_0x5ae09f:0x645},_0x321985={_0x1a51af:0x678,_0x2f246f:0x5b7,_0x3b6573:0x3f8,_0x47c7b0:0x4dd,_0x7a8347:0x441,_0x450ae6:0x3fb},_0x5c2534={_0x9d0c41:0x1ba,_0x4ba853:0x3a8,_0x4e6345:0xc8},_0x5c0dfe={_0x2403ed:0x1e3,_0x39ab65:0x6f};if(typeof _0x38148a===_0x1b8336(_0x28c62f._0x2b6ea8,0x1c4,_0x28c62f._0x36a9fd,_0x28c62f._0x280fad))return _0x38148a;function _0x1b8336(_0x22e3ab,_0x5a9c80,_0x44528f,_0x3a6d31){return _0x1a8b4d(_0x3a6d31,_0x5a9c80-_0x5c0dfe._0x2403ed,_0x44528f-_0x5c0dfe._0x39ab65,_0x3a6d31-0x14b);}const _0x1c15e8=_0x38148a['filter'](_0x468bd8=>{const _0xfc4425={_0x55f87a:0x82,_0x8b1a39:0x25d,_0x5b6503:0x142};function _0x674003(_0x3feaf2,_0x1c7111,_0x295783,_0x3f2cdf){return _0x1b8336(_0x3feaf2-_0xfc4425._0x55f87a,_0x3feaf2-_0xfc4425._0x8b1a39,_0x295783-_0xfc4425._0x5b6503,_0x295783);}function _0x3cb71b(_0x493088,_0x16175b,_0xcbf9fc,_0x364624){return _0x1b8336(_0x493088-_0x5c2534._0x9d0c41,_0x493088-_0x5c2534._0x4ba853,_0xcbf9fc-_0x5c2534._0x4e6345,_0x16175b);}return typeof _0x468bd8===_0x3cb71b(0x5cb,0x5a2,_0x321985._0x1a51af,_0x321985._0x2f246f)&&_0x468bd8!==null&&_0x468bd8[_0x674003(_0x321985._0x3b6573,_0x321985._0x47c7b0,0x492,0x3c5)]===_0x674003(0x36b,0x36f,_0x321985._0x7a8347,_0x321985._0x450ae6);})['map'](_0x3d990a=>_0x3d990a[_0x5049ed(0x590,0x5e3,0x4ec,0x570)])['join']('\x0a\x0a')[_0x1b8336(0x19a,0x15e,_0x28c62f._0x413c5a,_0x28c62f._0xc0b127)]();function _0x5049ed(_0x2a09c3,_0x25c3d6,_0x25a18d,_0x47689e){return _0x1a8b4d(_0x2a09c3,_0x47689e-_0x5daa18._0x5ae09f,_0x25a18d-0x11e,_0x47689e-0x9a);}return _0x1c15e8[_0x1b8336(0x28a,0x1e5,_0x28c62f._0x5944d4,_0x28c62f._0x419f90)]>0x0?_0x1c15e8:_0x5049ed(_0x28c62f._0x28d753,0x56c,_0x28c62f._0x990504,0x502);}function getToolResultImages(_0x4f53cd){const _0x42bc58={_0x15cf2d:0xf3,_0x468a49:0xb4,_0x2cc55a:0x135,_0x17b2f9:0x6d},_0x20703e={_0x16584f:0x158};function _0x3f23df(_0x1585ec,_0x1bac75,_0x11c8a7,_0x21cf44){return _0x1a8b4d(_0x1bac75,_0x11c8a7-0x127,_0x11c8a7-0xfb,_0x21cf44-_0x20703e._0x16584f);}function _0x5b8551(_0xf8832f,_0x7af688,_0x4c4e2e,_0x1d60aa){return _0x5a1062(_0xf8832f- -0x357,_0x1d60aa,_0x4c4e2e-0x12f,_0x1d60aa-0xd7);}return Array[_0x3f23df(_0x42bc58._0x15cf2d,-_0x42bc58._0x468a49,0x7,-0x8f)](_0x4f53cd)?_0x4f53cd[_0x3f23df(0x1f3,_0x42bc58._0x2cc55a,0x11e,_0x42bc58._0x17b2f9)](isImageToolResultBlock):[];}function parseToolInput2(_0x5c0f67){if(_0x5c0f67['length']===0x0)return{};try{return JSON['parse'](_0x5c0f67);}catch{return _0x5c0f67;}}function isResponsesReasoningItem(_0x34b36e){const _0x3d03b3={_0x243288:0x612,_0x4227e1:0x3d4,_0x26684f:0x614,_0x25a06f:0x725,_0x9e4808:0x5cb,_0x244e08:0x41d,_0x655cbb:0x48a,_0xc9a84d:0x501},_0xe78827={_0x1051db:0x6f6,_0x27eae8:0x99};function _0x429a60(_0xddd378,_0x1ba641,_0x4b35fd,_0x5dda1c){return _0x1a8b4d(_0x4b35fd,_0x1ba641-_0xe78827._0x1051db,_0x4b35fd-0x1b5,_0x5dda1c-_0xe78827._0x27eae8);}function _0x13aa58(_0x3382b2,_0x4176cb,_0x1f31ae,_0x38b885){return _0x5a1062(_0x38b885-0x1d2,_0x3382b2,_0x1f31ae-0x85,_0x38b885-0xf9);}return typeof _0x34b36e===_0x13aa58(0x5a8,_0x3d03b3._0x243288,0x481,0x53c)&&_0x34b36e!==null&&_0x13aa58(0x4cf,0x3f0,_0x3d03b3._0x4227e1,0x4b4)in _0x34b36e&&_0x34b36e[_0x429a60(_0x3d03b3._0x26684f,0x6ae,0x642,_0x3d03b3._0x25a06f)]===_0x13aa58(_0x3d03b3._0x9e4808,_0x3d03b3._0x244e08,_0x3d03b3._0x655cbb,_0x3d03b3._0xc9a84d);}function isResponsesMessageItem(_0x138626){const _0x47741e={_0x2f4a2c:0x39e,_0x21b483:0x2a7,_0x42c855:0x376,_0x98a2f8:0x275,_0x35c6b3:0x18d},_0x375f2b={_0x585bd8:0x194,_0x460407:0x139};function _0x406218(_0x5b1deb,_0x26391f,_0x3f7fe8,_0x171067){return _0x5a1062(_0x171067-0x94,_0x3f7fe8,_0x3f7fe8-0x51,_0x171067-0x73);}function _0x465353(_0x8446d8,_0x5a541b,_0x3026fa,_0x49bef1){return _0x1a8b4d(_0x5a541b,_0x49bef1-_0x375f2b._0x585bd8,_0x3026fa-0x7f,_0x49bef1-_0x375f2b._0x460407);}return typeof _0x138626==='object'&&_0x138626!==null&&'type'in _0x138626&&_0x138626[_0x406218(0x32e,_0x47741e._0x2f4a2c,_0x47741e._0x21b483,_0x47741e._0x42c855)]===_0x465353(_0x47741e._0x98a2f8,0x117,0xd6,_0x47741e._0x35c6b3);}function isResponsesFunctionCallItem(_0xdf0679){const _0xe17197={_0x5a2712:0x1d4,_0x49b166:0x313,_0x3bed0c:0x1ca,_0xadd4d5:0x161,_0x3c32c8:0x12d},_0x3b8ce8={_0x456151:0x212,_0x2fca41:0x15,_0x2b3163:0x12c},_0x22596f={_0x4f75ff:0x12a};function _0x389cb4(_0x4e86ad,_0xac7f79,_0x2b8c94,_0x4bbbd4){return _0x5a1062(_0x2b8c94- -0x103,_0x4bbbd4,_0x2b8c94-_0x22596f._0x4f75ff,_0x4bbbd4-0x64);}function _0x2398a0(_0x5ac2dd,_0x5f2092,_0x52e153,_0xa9923d){return _0x1a8b4d(_0x52e153,_0x5f2092-_0x3b8ce8._0x456151,_0x52e153-_0x3b8ce8._0x2fca41,_0xa9923d-_0x3b8ce8._0x2b3163);}return typeof _0xdf0679===_0x389cb4(_0xe17197._0x5a2712,0x321,0x267,_0xe17197._0x49b166)&&_0xdf0679!==null&&_0x2398a0(0x1d7,_0xe17197._0x3bed0c,0x2aa,0x19f)in _0xdf0679&&_0xdf0679[_0x2398a0(0x11d,_0xe17197._0x3bed0c,0x21e,_0xe17197._0xadd4d5)]===_0x389cb4(0x1ca,_0xe17197._0x3c32c8,0x154,0xfd);}function createContentBlocks(_0x513d44,_0x32d828,_0x349996){const _0x27453e={_0x4e5f63:0x24f,_0x28feee:0x295,_0x3cf5c1:0x2f5,_0x2a645f:0x1f0,_0x19f1b3:0x144,_0x480226:0x2f3,_0x54d325:0x23a,_0x202621:0xee,_0x20f3a9:0x2c5,_0x41a7d9:0x390,_0x1372b1:0x38a,_0x1dd66b:0x332,_0x46a72:0x1d4,_0x1a5821:0x163,_0x99e61a:0x27b,_0x428b0f:0x206,_0x1e3dad:0x162,_0x304399:0x1a1,_0x3883b2:0x98,_0x49a8c3:0x1f1,_0xe9b607:0x212},_0x5e0f09={_0x28c4e7:0x74,_0x5b2fa3:0x50},_0x4ada2d={_0x17ccaf:0x8b},_0x11f3de=[];function _0xb4e385(_0x38198f,_0x5dcb3f,_0x1fe778,_0x5c27ed){return _0x5a1062(_0x5dcb3f- -0x42,_0x5c27ed,_0x1fe778-_0x4ada2d._0x17ccaf,_0x5c27ed-0x136);}_0x349996&&_0x349996['length']>0x0&&_0x11f3de[_0x2753c5(_0x27453e._0x4e5f63,0x2b4,0x330,0x1c2)]({'type':'openai_reasoning','summary':[],'text':_0x349996});_0x513d44[_0xb4e385(_0x27453e._0x28feee,0x2ea,_0x27453e._0x3cf5c1,0x2b8)]>0x0&&_0x11f3de['push']({'type':_0xb4e385(_0x27453e._0x2a645f,0x213,_0x27453e._0x19f1b3,_0x27453e._0x480226),'text':_0x513d44});for(const _0x487eec of _0x32d828){if(_0x487eec['id'][_0x2753c5(0x231,0x256,0x1fd,0x247)]()[_0xb4e385(_0x27453e._0x54d325,0x2ea,0x327,0x225)]===0x0||_0x487eec[_0x2753c5(0x130,_0x27453e._0x202621,0x203,0x20c)][_0x2753c5(_0x27453e._0x20f3a9,_0x27453e._0x41a7d9,0x3a9,0x39a)][_0xb4e385(0x30d,0x263,0x1a7,0x26b)]()[_0x2753c5(0x2b8,_0x27453e._0x1372b1,_0x27453e._0x1dd66b,0x2b4)]===0x0)continue;_0x11f3de['push']({'type':_0xb4e385(0x264,0x2b0,0x39e,_0x27453e._0x46a72),'id':_0x487eec['id'],'name':_0x487eec[_0x2753c5(0x130,0x1a3,0x90,_0x27453e._0x1a5821)][_0x2753c5(0x2c5,0x220,0x395,_0x27453e._0x99e61a)],'input':parseToolInput2(_0x487eec[_0xb4e385(_0x27453e._0x428b0f,_0x27453e._0x1e3dad,_0x27453e._0x304399,_0x27453e._0x3883b2)][_0x2753c5(_0x27453e._0x49a8c3,_0x27453e._0xe9b607,0x2c0,0x265)])});}function _0x2753c5(_0x21af4e,_0x2c61d6,_0x69b221,_0x41b14b){return _0x5a1062(_0x21af4e- -_0x5e0f09._0x28c4e7,_0x41b14b,_0x69b221-0xeb,_0x41b14b-_0x5e0f09._0x5b2fa3);}return _0x11f3de;}function createUsage(_0x1be57b){const _0x2f3132={_0x5f1315:0x75,_0x9c6545:0x130,_0x3c1ff4:0x511,_0x38dd10:0x4e8,_0x422754:0x3a5,_0x149386:0x4e3,_0x22a81b:0x397},_0x3c395b={_0x133a7e:0x79},_0x2f5c2c={_0x5ef8a2:0x115,_0x410d8d:0x146};function _0x3ab875(_0x268ba9,_0x368c2e,_0x19e594,_0x299e2e){return _0x5a1062(_0x368c2e-_0x2f5c2c._0x5ef8a2,_0x268ba9,_0x19e594-_0x2f5c2c._0x410d8d,_0x299e2e-0x1c8);}function _0x1166ee(_0x7bea7f,_0x17d852,_0xc072f9,_0x453518){return _0x5a1062(_0x17d852- -0x1c3,_0xc072f9,_0xc072f9-_0x3c395b._0x133a7e,_0x453518-0xc5);}return{'inputTokens':_0x1be57b?.[_0x1166ee(0xf5,_0x2f3132._0x5f1315,0xdf,_0x2f3132._0x9c6545)]??0x0,'outputTokens':_0x1be57b?.['completion_tokens']??0x0,..._0x1be57b?.['completion_tokens_details']?.[_0x3ab875(0x4da,0x470,_0x2f3132._0x3c1ff4,_0x2f3132._0x38dd10)]!==void 0x0?{'reasoningTokens':_0x1be57b[_0x3ab875(0x377,_0x2f3132._0x422754,0x428,0x2e8)][_0x3ab875(_0x2f3132._0x149386,0x470,0x3e1,_0x2f3132._0x22a81b)]}:{}};}function resolveReasoningVisibility2(_0x7520f3){const _0x2d6e74={_0x14ecc2:0x65a,_0x5cf01c:0x661,_0x4fee65:0x604,_0xbaa244:0x584,_0xaa6177:0x612},_0x53078f={_0x5d56d9:0x18d,_0x48bd4f:0x1a6},_0x245a5e={_0x95aa0b:0x6be,_0x4aa094:0xa6};function _0x4db605(_0x5213e6,_0x29daf4,_0x59085a,_0x5dca6b){return _0x1a8b4d(_0x5dca6b,_0x5213e6-_0x245a5e._0x95aa0b,_0x59085a-_0x245a5e._0x4aa094,_0x5dca6b-0x5b);}function _0x36fbcd(_0x171a8b,_0x3fc627,_0x4ae063,_0x1f4817){return _0x1a8b4d(_0x4ae063,_0x1f4817- -0x40,_0x4ae063-_0x53078f._0x5d56d9,_0x1f4817-_0x53078f._0x48bd4f);}return _0x7520f3['reasoning']?.[_0x4db605(_0x2d6e74._0x14ecc2,_0x2d6e74._0x5cf01c,0x574,_0x2d6e74._0x4fee65)]??_0x4db605(_0x2d6e74._0xbaa244,0x577,_0x2d6e74._0xaa6177,0x518);}function isUserVisibleReasoning(_0x35febb){const _0x4df567={_0x239084:0x82,_0x510a21:0x12d,_0x481ff3:0x4a,_0x3fd0f0:0x230,_0x4ba3e6:0xfb,_0x3e9a5f:0x21a},_0x41adc2={_0x2b5bf3:0x56,_0x2e7c2b:0x154},_0x13541f={_0x6dc541:0x253,_0xf0e5b8:0x73,_0x4393d:0x137};function _0x106cad(_0x4ba76b,_0x4e557a,_0x3b123c,_0x41e9ba){return _0x5a1062(_0x4ba76b-_0x13541f._0x6dc541,_0x3b123c,_0x3b123c-_0x13541f._0xf0e5b8,_0x41e9ba-_0x13541f._0x4393d);}function _0x3a1a8e(_0xec3722,_0x5bc33d,_0x1feada,_0x2ca006){return _0x5a1062(_0x1feada- -0x379,_0xec3722,_0x1feada-_0x41adc2._0x2b5bf3,_0x2ca006-_0x41adc2._0x2e7c2b);}return resolveOpenAiReasoningConfig(_0x35febb[_0x3a1a8e(_0x4df567._0x239084,-_0x4df567._0x510a21,-_0x4df567._0x481ff3,-0xa5)])!==void 0x0&&resolveReasoningVisibility2(_0x35febb)===_0x3a1a8e(-_0x4df567._0x3fd0f0,-_0x4df567._0x4ba3e6,-0x189,-_0x4df567._0x3e9a5f);}function createChatRequestBody(_0x48af6c,_0x3204a2){const _0xc47abe={_0x15ef3e:0x8e,_0x2c0f8c:0xa6,_0x20f0fe:0x48,_0x380b69:0xd5,_0x39c12b:0xfe,_0x14b7c4:0x8,_0x5382ee:0x63,_0x17a662:0x79,_0x1a6f11:0x94,_0x4d5bb7:0x23c,_0x12ba37:0x258,_0x342f8d:0x10f,_0x27306f:0x35,_0x382d62:0x263,_0x14f18a:0x5a,_0x10df27:0x39,_0x4ced21:0x15d,_0x27443b:0xa5,_0x1d92d4:0x7a,_0x2862f4:0x1cd,_0x576fb5:0x5c,_0x2faa7f:0x54,_0x3d5f9d:0x8f,_0x49a706:0x55,_0x212658:0x34,_0x47740b:0x71,_0x55a6f5:0xf8,_0x1cad9c:0xee,_0x26f5d7:0x19d,_0x7bbe83:0xb1,_0x183074:0x281,_0x4c0081:0x178,_0x4f7c98:0xf7,_0x1cc417:0xbf,_0x5976b2:0x2c5,_0x28045f:0x22a,_0x40a3f5:0x13a,_0x2a6fb6:0x14,_0x1319e0:0x54,_0x2c7bb2:0x2e,_0x15ace9:0xa6,_0x2cbba5:0x344,_0x4905fe:0x2d1,_0x1aba4d:0x288,_0x3e53ca:0x1b2,_0x4ff1d0:0x281,_0x5ec7f7:0x3c7,_0x1e5112:0x347,_0x454561:0x411,_0x42c7ba:0x311,_0x56a600:0x34c,_0x20ffec:0x35,_0x4b067a:0xa7,_0x435717:0x25,_0x40ee49:0x3a2,_0x512cba:0x35c,_0x20f9d7:0x252,_0x55ef41:0x21a,_0x11ebc5:0x28a,_0x297e2a:0x190,_0x5f33b4:0x76,_0x61413f:0x9d,_0x2155e7:0x9e,_0x5c9cbd:0x1f3,_0x48013c:0x226,_0x40b4f2:0xdf,_0x5b4c01:0x66,_0x192ca1:0xcd,_0x126ae0:0x1f,_0x5d826b:0xad,_0x39080b:0x4b,_0x34a1f5:0xc6,_0xa86bbf:0xc7,_0x4c7071:0xa1,_0x6f9164:0x98,_0xc8070f:0x2c9,_0x38ee18:0x221,_0x52dcc6:0xc9,_0x1a1360:0x12d,_0x2abea2:0xcc,_0x46a530:0x96,_0x489604:0x342,_0x594947:0x37c,_0x5e0862:0x427,_0x460f57:0xb6,_0x1abaea:0x1a6,_0xefb548:0x2fd,_0x40fe02:0x30a,_0x53aab1:0x34f,_0x4a094e:0x37c,_0x4d4d4a:0x2dd},_0x49b287={_0x2cb2dc:0xe,_0x141759:0xa2,_0xcc49aa:0x7f,_0x4d5731:0x2e,_0x37ab85:0x38,_0x53fec1:0x35d,_0xdf3e36:0x38f,_0x48ec91:0xe,_0x3af0d2:0xe0,_0x40538c:0x16,_0x13eca9:0x474,_0x3835e3:0x3e7,_0x2e8002:0x2e,_0x4d8f86:0x110,_0x391718:0x17b,_0xb0d657:0x10f,_0x1d399b:0x148,_0x20cf84:0x84,_0x3c2d76:0xfe,_0x2b73ba:0x1f9,_0x187ebf:0x1a3,_0x22d891:0x87,_0x5e0e77:0x283,_0x5639b7:0x18,_0x443991:0x111,_0x393e39:0x5e,_0x50d04c:0x39,_0x27e7f9:0xb8,_0xb21a65:0x6c,_0x59a250:0x466,_0x2255f3:0x30c,_0x10449a:0x15b,_0x33634a:0x97,_0x22b9e3:0x8d,_0x49b9e7:0x214,_0x74caa0:0x1eb,_0x59911b:0xc,_0x41f0b3:0x82,_0x3a90c2:0xdd},_0x53554c={_0x5dd611:0xcc},_0x3cf9f7={_0x995f09:0xea},_0x3b03f3={_0x217564:0x9c,_0x8ad603:0x71},_0x5d394c=[],_0x3531b9=stringifySystem(_0x48af6c[_0x13960d(_0xc47abe._0x15ef3e,0xfb,_0xc47abe._0x2c0f8c,0x5b)]);_0x3531b9['length']>0x0&&_0x5d394c[_0x13960d(-_0xc47abe._0x20f0fe,_0xc47abe._0x380b69,_0xc47abe._0x39c12b,0x35)]({'role':_0x13960d(-0x93,-_0xc47abe._0x14b7c4,-_0xc47abe._0x5382ee,0x5b),'content':_0x3531b9});function _0x13960d(_0x589c2a,_0x4c0920,_0xa026e,_0x181238){return _0x1a8b4d(_0x4c0920,_0x181238-_0x3b03f3._0x217564,_0xa026e-0xe2,_0x181238-_0x3b03f3._0x8ad603);}for(const _0x3fddf4 of _0x48af6c[_0x13960d(-0xba,_0xc47abe._0x17a662,-_0xc47abe._0x1a6f11,-0x2)]){const _0xfac781=[],_0x4d89c0=[],_0x43ee40=[],_0x11bd85=()=>{function _0x44c216(_0x475347,_0x2cf7b8,_0x4543f1,_0x326f70){return _0x283b84(_0x475347-0x123,_0x2cf7b8-_0x3cf9f7._0x995f09,_0x4543f1-0xad,_0x326f70);}if(_0x3fddf4['role']===_0x78bff7(-0x3e,-_0x49b287._0x2cb2dc,_0x49b287._0x141759,-0xf2)){if(_0xfac781[_0x78bff7(-_0x49b287._0xcc49aa,-_0x49b287._0x4d5731,0x36,_0x49b287._0x37ab85)]===0x0&&_0x4d89c0[_0x44c216(_0x49b287._0x53fec1,_0x49b287._0xdf3e36,0x3e7,0x3f7)]===0x0)return;_0x5d394c['push']({'role':_0x78bff7(0xb6,-_0x49b287._0x48ec91,_0x49b287._0x3af0d2,_0x49b287._0x40538c),'content':_0xfac781[_0x44c216(0x4c4,_0x49b287._0x13eca9,_0x49b287._0x3835e3,0x476)]>0x0?_0xfac781['join']('\x0a\x0a'):null,..._0x4d89c0[_0x78bff7(0x7e,-_0x49b287._0x2e8002,-_0x49b287._0x4d8f86,0x74)]>0x0?{'tool_calls':_0x4d89c0[_0x78bff7(-0x1cc,-0x19e,-_0x49b287._0x391718,-0x195)](0x0)}:{}}),_0xfac781[_0x78bff7(-0x1e,-0x2e,-0x3f,-_0x49b287._0xb0d657)]=0x0;return;}function _0x78bff7(_0xc71de9,_0x5b5610,_0x5c64ca,_0x1a4cc8){return _0x13960d(_0xc71de9-0xae,_0xc71de9,_0x5c64ca-0xd7,_0x5b5610- -_0x53554c._0x5dd611);}if(_0x3fddf4[_0x78bff7(-0x1da,-_0x49b287._0x1d399b,-_0x49b287._0x20cf84,-_0x49b287._0x3c2d76)]===_0x78bff7(-_0x49b287._0x2b73ba,-_0x49b287._0x4d8f86,-_0x49b287._0x187ebf,-0x89)){if(_0x43ee40[_0x78bff7(-_0x49b287._0x22d891,-_0x49b287._0x4d5731,-0x11,-0x68)]===0x0)return;const _0x5e9fc1=_0x43ee40[_0x44c216(0x351,0x2c0,_0x49b287._0x5e0e77,0x25f)](_0x37167c=>_0x37167c['type']===_0x44c216(0x3f3,0x3cf,0x33c,0x3d9));_0x5d394c[_0x78bff7(_0x49b287._0x5639b7,-0x97,-0x6c,-0x7)]({'role':'user','content':_0x5e9fc1?_0x43ee40[_0x78bff7(-0x272,-0x19e,-0x127,-_0x49b287._0x443991)](0x0):_0x43ee40[_0x44c216(0x2f9,0x2dc,0x277,0x2ba)](0x0)[_0x78bff7(-_0x49b287._0x393e39,-_0x49b287._0x50d04c,-_0x49b287._0x27e7f9,-0x8e)](_0x42d580=>_0x42d580['type']===_0x78bff7(-0xf4,-0x105,-0xd9,-0x199))['map'](_0x3236e2=>_0x3236e2[_0x78bff7(-0x1c8,-0x105,-0x1eb,-0x43)])[_0x78bff7(0xb2,-0x34,_0x49b287._0xb21a65,-0xdf)]('\x0a\x0a')});return;}if(_0xfac781[_0x44c216(_0x49b287._0x59a250,0x308,0x3e7,_0x49b287._0x2255f3)]===0x0)return;_0x5d394c[_0x78bff7(-_0x49b287._0x10449a,-_0x49b287._0x33634a,-0x14a,-0x99)]({'role':_0x3fddf4[_0x78bff7(-_0x49b287._0x22b9e3,-_0x49b287._0x1d399b,-_0x49b287._0x49b9e7,-_0x49b287._0x74caa0)],'content':_0xfac781['join']('\x0a\x0a')}),_0xfac781[_0x78bff7(_0x49b287._0x59911b,-0x2e,_0x49b287._0x41f0b3,-_0x49b287._0x3a90c2)]=0x0;};for(const _0x496686 of normalizeContent(_0x3fddf4[_0x283b84(0x1bf,0x2db,_0xc47abe._0x4d5bb7,0x2d4)])){if(_0x496686['type']===_0x283b84(0x2f3,0x19b,0x263,0x22b)){_0x3fddf4['role']===_0x283b84(0x31f,0x1e6,_0xc47abe._0x12ba37,0x180)?_0x43ee40[_0x13960d(_0xc47abe._0x342f8d,0x94,0x12,_0xc47abe._0x27306f)]({'type':_0x283b84(0x2d3,0x185,_0xc47abe._0x382d62,0x18a),'text':_0x496686[_0x13960d(-0x10f,_0xc47abe._0x14f18a,0x95,-_0xc47abe._0x10df27)]}):_0xfac781[_0x13960d(-0x68,-0x2c,0xb5,0x35)](_0x496686['text']);continue;}if(_0x3fddf4[_0x13960d(-_0xc47abe._0x4ced21,-_0xc47abe._0x27443b,-_0xc47abe._0x1d92d4,-0x7c)]===_0x283b84(0x1d3,0x209,0x258,_0xc47abe._0x2862f4)&&_0x496686[_0x13960d(-0x2f,0x71,-_0xc47abe._0x576fb5,_0xc47abe._0x2faa7f)]===_0x13960d(-0x17,_0xc47abe._0x14b7c4,-_0xc47abe._0x3d5f9d,-_0xc47abe._0x49a706)){_0x43ee40[_0x13960d(_0xc47abe._0x212658,_0xc47abe._0x47740b,_0xc47abe._0x55a6f5,0x35)]({'type':'image_url','image_url':{'url':'data:'+_0x496686[_0x13960d(_0xc47abe._0x1cad9c,0xe9,_0xc47abe._0x26f5d7,_0xc47abe._0x7bbe83)][_0x283b84(0x25d,0x245,0x229,_0xc47abe._0x183074)]+_0x13960d(0x15c,_0xc47abe._0x4c0081,_0xc47abe._0x4f7c98,0xb5)+_0x496686[_0x13960d(0xd5,-0x22,_0xc47abe._0x1cc417,0xb1)][_0x283b84(0x2e7,_0xc47abe._0x5976b2,_0xc47abe._0x28045f,0x2b4)]}});continue;}if(_0x496686[_0x13960d(_0xc47abe._0x40a3f5,-_0xc47abe._0x2a6fb6,0x91,_0xc47abe._0x1319e0)]===_0x13960d(0xb7,_0xc47abe._0x2c7bb2,_0xc47abe._0x15ace9,0x64)){_0x4d89c0[_0x283b84(0x2cc,_0xc47abe._0x2cbba5,_0xc47abe._0x4905fe,_0xc47abe._0x1aba4d)]({'id':_0x496686['id'],'type':_0x283b84(0x20d,0x295,_0xc47abe._0x3e53ca,_0xc47abe._0x4ff1d0),'function':{'name':_0x496686[_0x283b84(0x350,_0xc47abe._0x5ec7f7,_0xc47abe._0x1e5112,_0xc47abe._0x454561)],'arguments':JSON[_0x283b84(_0xc47abe._0x42c7ba,0x218,0x286,_0xc47abe._0x56a600)](_0x496686[_0x13960d(0x9,_0xc47abe._0x20ffec,-_0xc47abe._0x4b067a,_0xc47abe._0x435717)]??{})}});continue;}if(_0x496686[_0x13960d(0x89,-0x2a,0xa9,_0xc47abe._0x2faa7f)]!==_0x13960d(0xe8,0xa2,0x12a,0x45))continue;_0x11bd85(),_0x5d394c[_0x283b84(0x319,0x21a,_0xc47abe._0x4905fe,_0xc47abe._0x40ee49)]({'role':_0x283b84(0x404,0x381,_0xc47abe._0x512cba,0x3eb),'content':getToolResultText(_0x496686[_0x283b84(0x177,_0xc47abe._0x20f9d7,_0xc47abe._0x4d5bb7,0x2ae)]),'tool_call_id':_0x496686[_0x283b84(0x1b8,_0xc47abe._0x55ef41,_0xc47abe._0x11ebc5,0x281)]});const _0x1fc694=getToolResultImages(_0x496686[_0x283b84(_0xc47abe._0x297e2a,0x251,0x23c,0x221)]);_0x1fc694[_0x13960d(_0xc47abe._0x5f33b4,0x27,_0xc47abe._0x61413f,_0xc47abe._0x2155e7)]>0x0&&_0x5d394c[_0x13960d(-0x6e,_0xc47abe._0x1d92d4,-0x3e,_0xc47abe._0x20ffec)]({'role':_0x283b84(0x21a,_0xc47abe._0x5c9cbd,_0xc47abe._0x12ba37,_0xc47abe._0x48013c),'content':[{'type':_0x13960d(-_0xc47abe._0x40b4f2,_0xc47abe._0x2155e7,_0xc47abe._0x5b4c01,-_0xc47abe._0x10df27),'text':_0x13960d(0x18a,_0xc47abe._0x192ca1,-_0xc47abe._0x126ae0,_0xc47abe._0x5d826b)+_0x496686[_0x13960d(_0xc47abe._0x39080b,0x5a,-0xf9,-0x12)]+'.'},..._0x1fc694['map'](_0x1cdd00=>({'type':_0x13960d(-0x8e,-0xe6,-0x31,-0xd),'image_url':{'url':_0x13960d(-0x37,-0xb2,-0x6b,-0x14)+_0x1cdd00[_0x283b84(0x355,0x40a,0x34d,0x368)][_0x13960d(-0x45,-0x10a,-0x9,-0x73)]+_0x283b84(0x3cd,0x3a7,0x351,0x2aa)+_0x1cdd00['source'][_0x283b84(0x29a,0x179,0x22a,0x2ed)]}}))]});}_0x11bd85();}function _0x283b84(_0x4a9049,_0x439e74,_0x3755b7,_0x726b49){return _0x5a1062(_0x3755b7-0xe,_0x726b49,_0x3755b7-0x25,_0x726b49-0x6e);}const _0x130fcc=resolveOpenAiReasoningConfig(_0x48af6c[_0x13960d(_0xc47abe._0x34a1f5,-0x3f,_0xc47abe._0xa86bbf,_0xc47abe._0x4c7071)]);return{'model':_0x48af6c['model'],'messages':_0x5d394c,'stream':_0x3204a2,..._0x130fcc?{'max_completion_tokens':_0x48af6c[_0x13960d(0x39,_0xc47abe._0x6f9164,-0x16,0x5)]}:{'max_tokens':_0x48af6c[_0x283b84(0x1ca,_0xc47abe._0xc8070f,0x2a1,_0xc47abe._0x38ee18)]},..._0x130fcc?.[_0x13960d(_0xc47abe._0x52dcc6,_0xc47abe._0x1a1360,0x12,0x48)]?{'reasoning_effort':_0x130fcc[_0x13960d(0xec,_0xc47abe._0x2abea2,-_0xc47abe._0x46a530,0x48)]}:{},...createToolDefinitions(_0x48af6c[_0x283b84(0x3c5,0x3dd,_0xc47abe._0x489604,0x3b5)])?{'tools':createToolDefinitions(_0x48af6c['tools'])}:{},..._0x48af6c[_0x283b84(0x32f,0x434,_0xc47abe._0x594947,_0xc47abe._0x5e0862)]?{'response_format':{'type':_0x13960d(_0xc47abe._0x460f57,0x89,_0xc47abe._0x1abaea,_0xc47abe._0xa86bbf),'json_schema':{'name':_0x48af6c[_0x283b84(_0xc47abe._0xefb548,_0xc47abe._0x40fe02,_0xc47abe._0x594947,0x32b)]['name']??'structured_output','schema':_0x48af6c[_0x283b84(_0xc47abe._0x53aab1,0x438,_0xc47abe._0x4a094e,0x43b)][_0x13960d(0xc2,0xd8,0x178,0xb2)],'strict':_0x48af6c[_0x283b84(0x36f,0x333,_0xc47abe._0x594947,0x308)][_0x283b84(0x226,0x229,0x214,_0xc47abe._0x4d4d4a)]??!![]}}}:{}};}function createResponsesRequestBody(_0x4a3436,_0x17a942){return{...toOpenAiResponsesRequest(_0x4a3436),..._0x17a942?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x20dfd2,_0x4ea60a={}){const _0x334d9d={_0x51e9b2:0x467,_0x4935a8:0x4b4,_0x3cea83:0x548,_0x93aa65:0x4b6,_0x571a4e:0x3e2,_0x1dbe2e:0x2f3},_0xcbc590={_0x332a5e:0x559,_0x249287:0x119,_0x261a0e:0x2f},_0x4cedc2={_0x2a518b:0x3,_0x5bf4fd:0xb2},_0x23dad2=toOpenAiResponsesRequest(_0x20dfd2);function _0x2ecb1b(_0x169870,_0x2e31a5,_0x2a0a4b,_0x9ace41){return _0x5a1062(_0x169870- -0x1d,_0x9ace41,_0x2a0a4b-_0x4cedc2._0x2a518b,_0x9ace41-_0x4cedc2._0x5bf4fd);}function _0x3ee22f(_0x3d5982,_0x39f8b8,_0x3c7eee,_0x5fa78f){return _0x1a8b4d(_0x3d5982,_0x39f8b8-_0xcbc590._0x332a5e,_0x3c7eee-_0xcbc590._0x249287,_0x5fa78f-_0xcbc590._0x261a0e);}return{'type':'response.create',..._0x23dad2,..._0x4ea60a[_0x3ee22f(0x486,0x4e2,0x454,_0x334d9d._0x51e9b2)]?{'input':_0x4ea60a['input']}:{},..._0x4ea60a[_0x3ee22f(_0x334d9d._0x4935a8,_0x334d9d._0x3cea83,_0x334d9d._0x93aa65,0x52e)]?{'previous_response_id':_0x4ea60a[_0x2ecb1b(0x2fc,_0x334d9d._0x571a4e,0x30a,_0x334d9d._0x1dbe2e)]}:{},'store':![]};}function normalizeAssistantContent(_0x172cfd){const _0xe32f35={_0x3ff8ef:0x1eb,_0x174b63:0x1cc,_0x45d6a9:0xfc,_0x434eb9:0x23e,_0x4f249f:0x207,_0x765cb0:0x1dc,_0x14f6bc:0x185,_0x45664b:0x1e5,_0x452b5c:0x1ab},_0x8b3d33={_0x41cef5:0x36c,_0x2c35a7:0x41e},_0x21c6c0={_0x4c9c64:0x1a4,_0x3ba261:0x6b},_0x3fde71={_0x5e31dc:0xe7};if(typeof _0x172cfd==='string')return _0x172cfd;function _0x16350e(_0x4f5f9e,_0x372bbd,_0x1e887a,_0x153989){return _0x5a1062(_0x153989- -0x17b,_0x372bbd,_0x1e887a-_0x3fde71._0x5e31dc,_0x153989-0x1ee);}if(!Array[_0x1c8656(-_0xe32f35._0x3ff8ef,-_0xe32f35._0x174b63,-0x158,-_0xe32f35._0x45d6a9)](_0x172cfd))return'';function _0x1c8656(_0x35ce50,_0x9a119b,_0x1269c9,_0x3a7a9d){return _0x1a8b4d(_0x35ce50,_0x1269c9- -0x38,_0x1269c9-0x16c,_0x3a7a9d-0x68);}return _0x172cfd[_0x16350e(_0xe32f35._0x434eb9,_0xe32f35._0x4f249f,0x10e,_0xe32f35._0x765cb0)](_0x2a7c3d=>{function _0x5ec45c(_0x25104e,_0x57cd4a,_0x291a33,_0x394cec){return _0x16350e(_0x25104e-_0x21c6c0._0x4c9c64,_0x394cec,_0x291a33-_0x21c6c0._0x3ba261,_0x25104e-0x292);}return _0x2a7c3d['type']===_0x5ec45c(_0x8b3d33._0x41cef5,_0x8b3d33._0x2c35a7,0x2ee,0x418)?_0x2a7c3d['text']:_0x2a7c3d['refusal'];})[_0x16350e(_0xe32f35._0x14f6bc,0xdd,_0xe32f35._0x45664b,_0xe32f35._0x452b5c)]('');}function normalizeResponsesMessageContent(_0x33d2df){const _0x302fdf={_0x2a9f0f:0x6,_0x2d4fe7:0x7f},_0x524c63={_0x312f7f:0x58,_0x2487ad:0x5a,_0x5d01f0:0x9c,_0x6b25d6:0x354,_0x39d2ab:0x33a,_0x4b7061:0x2ab,_0xe29e3f:0x1f4,_0x52d623:0x3b3,_0x4aa176:0x3ca,_0x5ee718:0x22b,_0x110e56:0x1fc,_0x4558e4:0x27b,_0x11e38d:0x319,_0x452415:0x316,_0x2f9706:0x2aa,_0xadaa63:0x236,_0x46f39f:0x252,_0x16127c:0x18a,_0x30d2c7:0x1e4,_0x45a358:0x230},_0x1adf00={_0xc7f902:0x7f},_0x7d3505={_0x2a5605:0x2c};function _0x3c980d(_0x180af0,_0x4e7de9,_0x3e3084,_0x319eee){return _0x5a1062(_0x4e7de9-_0x7d3505._0x2a5605,_0x319eee,_0x3e3084-0x10,_0x319eee-0x1dd);}function _0x265208(_0x58b973,_0xce7b9d,_0x3ef8e4,_0x1fc78c){return _0x1a8b4d(_0x1fc78c,_0x3ef8e4- -0x7c,_0x3ef8e4-0xa6,_0x1fc78c-_0x1adf00._0xc7f902);}if(!Array['isArray'](_0x33d2df))return'';return _0x33d2df[_0x3c980d(0x2ce,0x383,0x3da,0x444)](_0x984641=>{const _0x4bb96b={_0x5b939a:0xf0,_0x253108:0x44},_0x1f49d7={_0x500dc6:0x3ee,_0x533d8b:0x13d};if(!_0x984641||typeof _0x984641!==_0x1c6114(-_0x524c63._0x312f7f,_0x524c63._0x2487ad,-_0x524c63._0x5d01f0,-0x102))return'';const _0x365eba=_0x984641;if(_0x365eba[_0x459412(0x2ca,0x30b,_0x524c63._0x6b25d6,_0x524c63._0x39d2ab)]===_0x1c6114(-0x1c9,-0x11c,-_0x524c63._0x4b7061,-_0x524c63._0xe29e3f)&&typeof _0x365eba['text']===_0x459412(0x2f3,_0x524c63._0x52d623,_0x524c63._0x4aa176,0x2d4))return _0x365eba[_0x459412(0x23d,0x2d9,_0x524c63._0x5ee718,_0x524c63._0x110e56)];if(_0x365eba[_0x459412(0x2ca,0x391,_0x524c63._0x4558e4,_0x524c63._0x11e38d)]===_0x1c6114(-0x158,-0x143,-0x1ce,-0x138)&&typeof _0x365eba[_0x459412(0x252,0x1ab,_0x524c63._0x452415,_0x524c63._0x2f9706)]===_0x459412(0x2f3,_0x524c63._0xadaa63,0x317,0x283))return _0x365eba[_0x459412(_0x524c63._0x46f39f,_0x524c63._0x16127c,_0x524c63._0x30d2c7,_0x524c63._0x45a358)];function _0x1c6114(_0x4318a7,_0xa81684,_0x19c169,_0x20f14e){return _0x3c980d(_0x4318a7-0x11e,_0x4318a7- -_0x1f49d7._0x500dc6,_0x19c169-_0x1f49d7._0x533d8b,_0x19c169);}function _0x459412(_0x1804bc,_0x4cfa86,_0x19d41e,_0x5be81d){return _0x3c980d(_0x1804bc-_0x4bb96b._0x5b939a,_0x1804bc- -_0x4bb96b._0x253108,_0x19d41e-0x1d,_0x4cfa86);}return'';})[_0x265208(_0x302fdf._0x2a9f0f,-_0x302fdf._0x2d4fe7,-0x80,-0xf5)]('');}function extractOpenAiReasoningText(_0x1d179f){const _0x140bc4={_0x239e12:0xac,_0x16d61b:0x2c,_0xbcce7e:0xa,_0xe6fc6:0x7e,_0x23118e:0x131,_0x486de8:0xce,_0x2a0c:0x21c,_0x576645:0x20d,_0x4e379f:0x191,_0x30d883:0x73,_0x403623:0x1f8},_0x3fed3f={_0x17b70e:0x1ce},_0x1bfd22={_0x4d7c5e:0x1df};if(typeof _0x1d179f[_0x436bc3(-_0x140bc4._0x239e12,_0x140bc4._0x16d61b,-0x15d,-0x175)]===_0x436bc3(_0x140bc4._0xbcce7e,0xf5,-0xc8,-_0x140bc4._0xe6fc6))return _0x1d179f['text'];function _0x436bc3(_0x1401b3,_0x4a3dc1,_0x52d772,_0xbb12f8){return _0x1a8b4d(_0x52d772,_0x1401b3-0x29,_0x52d772-0x2e,_0xbb12f8-_0x1bfd22._0x4d7c5e);}if(!Array[_0x436bc3(-0xf7,-_0x140bc4._0x23118e,-_0x140bc4._0x486de8,-0xb6)](_0x1d179f[_0x307cda(0x198,_0x140bc4._0x2a0c,_0x140bc4._0x576645,0x1e2)]))return'';function _0x307cda(_0x393fba,_0x387113,_0x503138,_0x363e4f){return _0x5a1062(_0x363e4f- -0x4c,_0x503138,_0x503138-0x1a4,_0x363e4f-_0x3fed3f._0x17b70e);}return _0x1d179f[_0x436bc3(-0xd3,-_0x140bc4._0x4e379f,-0x6c,-_0x140bc4._0x30d883)]['filter'](_0x3210d8=>_0x3210d8[_0x307cda(0x1fe,0x26c,0x2aa,0x296)]===_0x436bc3(-0x132,-0x204,-0xbb,-0x196)&&typeof _0x3210d8['text']===_0x436bc3(0xa,0xed,0xbe,0xaa))['map'](_0x3aa40c=>_0x3aa40c[_0x436bc3(-0xac,0x1b,-0xac,-0xc6)]??'')[_0x307cda(0x29d,_0x140bc4._0x403623,0x1ef,0x2da)]('');}function createOpenAiReasoningBlock(_0x134e43){const _0x19cb45={_0x354da4:0x60a,_0x16b42f:0x548,_0x2112c9:0x4c8,_0x44d862:0x6eb,_0x32b18f:0x664,_0x56a2dc:0x572,_0x120cb4:0x5d9,_0x53f7e3:0x57e,_0x5ac603:0x59b,_0x51a6ea:0x58d,_0x29eac9:0x675},_0x11c45a={_0x18dd79:0x373,_0x1572a2:0xba},_0x3a6beb={_0x5a2cda:0x58b,_0x2b3a44:0xd,_0x12dbb5:0x19},_0xb5a41d=extractOpenAiReasoningText(_0x134e43);function _0x56f39c(_0x2bbb79,_0x2ee959,_0x248cbd,_0x554c6c){return _0x1a8b4d(_0x2bbb79,_0x248cbd-_0x3a6beb._0x5a2cda,_0x248cbd-_0x3a6beb._0x2b3a44,_0x554c6c-_0x3a6beb._0x12dbb5);}function _0x2c7d6c(_0x1f2334,_0x5ca543,_0x421db8,_0x53fb6e){return _0x5a1062(_0x1f2334-_0x11c45a._0x18dd79,_0x5ca543,_0x421db8-0x3f,_0x53fb6e-_0x11c45a._0x1572a2);}return{'type':_0x2c7d6c(0x556,_0x19cb45._0x354da4,_0x19cb45._0x16b42f,_0x19cb45._0x2112c9),'summary':structuredClone(_0x134e43[_0x2c7d6c(0x549,0x5cb,0x620,0x628)]??[]),..._0x134e43['id']?{'id':_0x134e43['id']}:{},..._0x134e43[_0x2c7d6c(_0x19cb45._0x44d862,0x7bd,_0x19cb45._0x32b18f,0x6c8)]?{'encryptedContent':_0x134e43[_0x56f39c(_0x19cb45._0x56a2dc,0x547,_0x19cb45._0x120cb4,_0x19cb45._0x53f7e3)]}:{},..._0xb5a41d[_0x56f39c(_0x19cb45._0x5ac603,0x564,_0x19cb45._0x51a6ea,_0x19cb45._0x29eac9)]>0x0?{'text':_0xb5a41d}:{}};}function hasVisibleOpenAiReasoning(_0x530af7){const _0x1f0c43={_0x358cd3:0x106,_0x4d6efd:0x10b,_0x57ebc1:0x330,_0xbd147c:0x219,_0x46f4c5:0x30d,_0x2ccb2a:0x97,_0x440300:0xc4,_0x342b9e:0x118},_0xcbb101={_0x139560:0x1f};function _0x1bb6eb(_0x1fa9cf,_0x5b40ec,_0x21b118,_0x1322e6){return _0x5a1062(_0x5b40ec- -0x3cf,_0x21b118,_0x21b118-0x159,_0x1322e6-0x7d);}function _0x256a98(_0x22b161,_0x49fb8c,_0x4a2880,_0x472557){return _0x1a8b4d(_0x49fb8c,_0x4a2880-0x322,_0x4a2880-0x39,_0x472557-_0xcbb101._0x139560);}return _0x530af7[_0x256a98(_0x1f0c43._0x358cd3,_0x1f0c43._0x4d6efd,0x1ce,0x1e6)][_0x256a98(0x3d3,0x3d7,0x324,_0x1f0c43._0x57ebc1)]>0x0||typeof _0x530af7[_0x256a98(_0x1f0c43._0xbd147c,0x24b,0x24d,_0x1f0c43._0x46f4c5)]===_0x1bb6eb(-_0x1f0c43._0x2ccb2a,-_0x1f0c43._0x440300,-0x180,-_0x1f0c43._0x342b9e);}function parseChatCompletionResponse(_0x35cb1f){const _0x5eccde={_0x1cb4a8:0x73c,_0x13294e:0x579,_0x1622d3:0x585,_0x1da09c:0x432,_0x3645cf:0x3e0,_0x55197f:0x495,_0x14b5b1:0x497,_0x5b30ac:0x3ba,_0xa9a4d9:0x45b,_0x59fa3e:0x3be,_0x4b0986:0x3ba,_0x12ddeb:0x527,_0x3253ba:0x426,_0x5d88dc:0x3f3,_0x56debb:0x5e4,_0x522a1c:0x4dc,_0x407407:0x4e4,_0x4b673f:0x54a,_0x248024:0x5f4,_0x40adf7:0x6dc,_0x2d40ea:0x4f3,_0x342192:0x44a,_0xdbc2ca:0x4d6,_0x3aa22a:0x47d},_0x2e3fff={_0x4097a1:0x1b0,_0x289433:0x1a2,_0x514a1d:0x116},_0x27fbfc={_0x107f50:0x340};function _0x51f4b4(_0x2d714c,_0x2e6b0d,_0x2ce291,_0x15a9f5){return _0x5a1062(_0x2e6b0d-_0x27fbfc._0x107f50,_0x15a9f5,_0x2ce291-0x15d,_0x15a9f5-0x7a);}const _0x45436d=[];function _0x20472d(_0x8543e9,_0x3753bc,_0x24c9da,_0x4cc785){return _0x5a1062(_0x8543e9-_0x2e3fff._0x4097a1,_0x3753bc,_0x24c9da-_0x2e3fff._0x289433,_0x4cc785-_0x2e3fff._0x514a1d);}const _0x165150=[];let _0x54c8fc=_0x51f4b4(0x630,0x69e,_0x5eccde._0x1cb4a8,0x644);for(const _0x5f1edb of _0x35cb1f[_0x20472d(0x4ab,_0x5eccde._0x13294e,_0x5eccde._0x1622d3,0x4cb)]??[]){const _0x4206b1=_0x5f1edb['message'],_0x1c00fe=normalizeAssistantContent(_0x4206b1?.['content']);_0x1c00fe[_0x20472d(0x4dc,0x508,0x4c7,_0x5eccde._0x1da09c)]>0x0&&_0x45436d[_0x20472d(0x473,_0x5eccde._0x3645cf,0x4c5,_0x5eccde._0x55197f)](_0x1c00fe),_0x4206b1?.[_0x20472d(_0x5eccde._0x14b5b1,_0x5eccde._0x5b30ac,_0x5eccde._0xa9a4d9,_0x5eccde._0x59fa3e)]&&_0x165150[_0x20472d(0x473,_0x5eccde._0x4b0986,0x3c7,_0x5eccde._0x12ddeb)](..._0x4206b1['tool_calls']),_0x5f1edb[_0x20472d(0x4b5,0x41c,0x477,_0x5eccde._0x3253ba)]===_0x20472d(0x497,0x3b1,0x506,_0x5eccde._0x5d88dc)&&(_0x54c8fc=_0x51f4b4(_0x5eccde._0x56debb,0x632,0x54f,0x5a6));}return _0x165150[_0x20472d(_0x5eccde._0x522a1c,0x5aa,0x534,_0x5eccde._0x407407)]>0x0&&(_0x54c8fc='tool_use'),{'id':_0x35cb1f['id']??_0x51f4b4(_0x5eccde._0x4b673f,_0x5eccde._0x248024,0x654,_0x5eccde._0x40adf7)+Date[_0x20472d(0x406,_0x5eccde._0x2d40ea,_0x5eccde._0x342192,0x46a)](),'content':createContentBlocks(_0x45436d[_0x20472d(_0x5eccde._0xdbc2ca,0x49b,_0x5eccde._0x3aa22a,0x50d)](''),_0x165150),'stopReason':_0x54c8fc,'usage':createUsage(_0x35cb1f['usage'])};}function parseResponsesResponse(_0x400f2c,_0x5bfecc){const _0x4ed982={_0x4cf8c9:0x122,_0x290ff3:0x48e,_0x517209:0x427,_0x59b493:0x48f,_0x250380:0x4f9,_0x5be7cd:0x4,_0x186bd9:0x20,_0x55d9ea:0x19f,_0x5b2a1e:0x1ed,_0x3cea64:0x148,_0x13bfc9:0x1c7,_0x2ab3c4:0x58f,_0x36ea0f:0x39d,_0x29b840:0x48b,_0x5aa139:0x3b8,_0x8375e:0x423,_0x25f8a1:0xcc,_0x2db25e:0x99,_0x1c02e9:0x1d,_0x35b760:0x118,_0x3a479c:0x8d,_0x2d32eb:0x12b,_0x1c9d7b:0xea,_0x11475a:0x1f5,_0x29a184:0xe8,_0x468699:0x1ed,_0x5aa77c:0x17e,_0x1e9bf2:0x103,_0x36e0e3:0x218,_0x160e6a:0x1db,_0x484d33:0xe2,_0x32b119:0x7e,_0x3667ab:0x57,_0x28888a:0x118,_0x17b3a4:0x487,_0xa73807:0x3fe,_0x4078c5:0x6c,_0x3ec5de:0xfa,_0x4d8425:0xbc,_0xedc089:0x31,_0x15bd71:0xa5,_0x19655f:0x9d,_0x34dffa:0x59a,_0xb206c0:0x528,_0x23b7a2:0x4d0,_0x251fea:0x5cb,_0x150a43:0x594,_0x38dece:0x5d4,_0x3a28e9:0x519,_0xf655b0:0x156,_0x5d5769:0x85,_0x7cb403:0x60e,_0x4c3efc:0x591,_0xffc90c:0x4c9,_0x31f2cb:0x148,_0x5a7eec:0xbe,_0x3da174:0xd2},_0x1a0d7a={_0x42d7f9:0x18d,_0x676a93:0x162},_0x28a9c6={_0x134f4d:0x25,_0x3eb5dd:0xa8},_0x4d8948=[];function _0x4302bb(_0x136f2f,_0x50466a,_0x589148,_0x3a937d){return _0x5a1062(_0x3a937d-0x236,_0x136f2f,_0x589148-_0x28a9c6._0x134f4d,_0x3a937d-_0x28a9c6._0x3eb5dd);}function _0x169f4b(_0x532776,_0x18b9a8,_0x40c026,_0x405218){return _0x5a1062(_0x532776- -_0x1a0d7a._0x42d7f9,_0x405218,_0x40c026-_0x1a0d7a._0x676a93,_0x405218-0x4b);}for(const _0x3d7e06 of _0x400f2c[_0x169f4b(_0x4ed982._0x4cf8c9,0x40,0x3f,0xbd)]??[]){if(isResponsesReasoningItem(_0x3d7e06)){if(isUserVisibleReasoning(_0x5bfecc)){const _0x4d0086=createOpenAiReasoningBlock(_0x3d7e06);hasVisibleOpenAiReasoning(_0x4d0086)&&_0x4d8948[_0x4302bb(_0x4ed982._0x290ff3,_0x4ed982._0x517209,_0x4ed982._0x59b493,_0x4ed982._0x250380)](_0x4d0086);}continue;}if(isResponsesMessageItem(_0x3d7e06)){const _0x1032a2=normalizeResponsesMessageContent(_0x3d7e06[_0x169f4b(0xa1,_0x4ed982._0x5be7cd,0x156,-_0x4ed982._0x186bd9)]);_0x1032a2[_0x169f4b(_0x4ed982._0x55d9ea,_0x4ed982._0x5b2a1e,_0x4ed982._0x3cea64,_0x4ed982._0x13bfc9)]>0x0&&_0x4d8948[_0x4302bb(_0x4ed982._0x2ab3c4,0x4f7,0x46b,_0x4ed982._0x250380)]({'type':_0x4302bb(_0x4ed982._0x36ea0f,0x574,0x3fb,_0x4ed982._0x29b840),'text':_0x1032a2});continue;}if(!isResponsesFunctionCallItem(_0x3d7e06)||typeof _0x3d7e06[_0x4302bb(_0x4ed982._0x5aa139,_0x4ed982._0x8375e,0x3b9,0x465)]!=='string'||_0x3d7e06[_0x169f4b(0xa2,_0x4ed982._0x25f8a1,_0x4ed982._0x2db25e,_0x4ed982._0x1c02e9)][_0x169f4b(_0x4ed982._0x35b760,0xeb,0x14d,_0x4ed982._0x3a479c)]()[_0x169f4b(_0x4ed982._0x55d9ea,_0x4ed982._0x2d32eb,0x14f,_0x4ed982._0x1c9d7b)]===0x0||typeof _0x3d7e06[_0x169f4b(0x1ac,0x1a8,0xf1,_0x4ed982._0x11475a)]!=='string'||_0x3d7e06['name'][_0x169f4b(0x118,_0x4ed982._0x29a184,_0x4ed982._0x468699,0x66)]()['length']===0x0||typeof _0x3d7e06['arguments']!==_0x169f4b(_0x4ed982._0x5aa77c,0xc3,0x14c,_0x4ed982._0x1e9bf2))continue;_0x4d8948[_0x169f4b(0x136,_0x4ed982._0x36e0e3,_0x4ed982._0x160e6a,_0x4ed982._0x484d33)]({'type':_0x169f4b(0x165,_0x4ed982._0x32b119,0x1bf,0x124),'id':_0x3d7e06[_0x169f4b(0xa2,0xb6,0xe4,_0x4ed982._0x3667ab)],'name':_0x3d7e06['name'],'input':parseToolInput2(_0x3d7e06[_0x169f4b(0xd8,0x115,_0x4ed982._0x28888a,0x80)])});}return!_0x4d8948[_0x4302bb(_0x4ed982._0x17b3a4,0x323,0x35f,_0x4ed982._0xa73807)](_0x167f51=>_0x167f51[_0x4302bb(0x5b9,0x44d,0x54c,0x518)]==='text')&&_0x400f2c[_0x169f4b(_0x4ed982._0x4078c5,0x6d,_0x4ed982._0x3ec5de,0xe5)]&&_0x4d8948['push']({'type':_0x169f4b(0xc8,_0x4ed982._0x4d8425,0x11d,_0x4ed982._0xedc089),'text':_0x400f2c[_0x169f4b(0x6c,_0x4ed982._0x15bd71,_0x4ed982._0x19655f,0x70)]}),{'id':_0x400f2c['id'],'content':_0x4d8948,'stopReason':_0x4d8948['some'](_0x211b6e=>_0x211b6e['type']===_0x4302bb(0x568,0x5f4,0x4bb,0x528))?_0x4302bb(0x4ca,_0x4ed982._0x34dffa,0x5d3,_0x4ed982._0xb206c0):_0x4302bb(_0x4ed982._0x23b7a2,0x641,_0x4ed982._0x251fea,_0x4ed982._0x150a43),'usage':{'inputTokens':_0x400f2c[_0x4302bb(_0x4ed982._0x38dece,0x5bf,0x50e,_0x4ed982._0x3a28e9)]?.['input_tokens']??0x0,'outputTokens':_0x400f2c[_0x169f4b(_0x4ed982._0xf655b0,0x6f,0x1e3,0x1a9)]?.['output_tokens']??0x0,..._0x400f2c['usage']?.[_0x169f4b(0x153,_0x4ed982._0x5d5769,0xe5,0x14d)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x400f2c[_0x4302bb(0x532,0x490,0x4a8,0x519)]['output_tokens_details'][_0x4302bb(0x578,0x4f5,_0x4ed982._0x7cb403,_0x4ed982._0x4c3efc)]}:{}},..._0x400f2c[_0x4302bb(0x425,_0x4ed982._0xffc90c,0x5bc,0x4e5)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x400f2c[_0x169f4b(0x122,_0x4ed982._0x31f2cb,_0x4ed982._0x5a7eec,_0x4ed982._0x3da174)]),'openaiResponsesResponseId':_0x400f2c['id']}}:{}};}function extractErrorMessage(_0xc88d49){const _0x10624b={_0x36e0bc:0x6f9,_0x4f60b2:0x758,_0x13021b:0x5fd,_0xf9362c:0x4ca,_0x45e344:0x58c,_0x58d23:0x628,_0x5e62f6:0x7b,_0x124f49:0x11f,_0x10c169:0xec,_0x6b00d5:0x32,_0x3ef0d4:0x66,_0x4758c5:0x178,_0x4e05c3:0x40,_0x2e0ec4:0xb5,_0x4544e5:0x694,_0x212754:0x740,_0x1e8e4d:0x672,_0x19e937:0x640,_0xe3d1d7:0x643,_0x4a05b9:0x1ce,_0x16ba11:0x128,_0x565cca:0x1d2,_0x2af04b:0xe0,_0x594057:0x7c7,_0x22fbfe:0x687,_0x23d1fe:0x672},_0x36312b={_0x2f896f:0x204,_0x2ba64c:0x1bf,_0x5c8ef9:0x1d9},_0x5b277c={_0x2a9cd4:0x1a2};if(_0xc88d49[_0x57c9ff(0x732,_0x10624b._0x36e0bc,0x6f9,_0x10624b._0x4f60b2)]===0x0)return'';function _0x57c9ff(_0x1046da,_0x5a0490,_0x4d99b1,_0x4c4424){return _0x1a8b4d(_0x4c4424,_0x5a0490-0x6f7,_0x4d99b1-_0x5b277c._0x2a9cd4,_0x4c4424-0x186);}function _0x42f686(_0x4068af,_0x5a39a2,_0x466d13,_0x7c73e1){return _0x5a1062(_0x5a39a2- -_0x36312b._0x2f896f,_0x4068af,_0x466d13-_0x36312b._0x2ba64c,_0x7c73e1-_0x36312b._0x5c8ef9);}try{const _0x1b96f3=JSON[_0x57c9ff(_0x10624b._0x13021b,0x590,_0x10624b._0xf9362c,0x59a)](_0xc88d49);if(typeof _0x1b96f3[_0x57c9ff(0x60f,_0x10624b._0x45e344,0x518,_0x10624b._0x58d23)]?.[_0x42f686(_0x10624b._0x5e62f6,_0x10624b._0x124f49,_0x10624b._0x10c169,0x13a)]==='string'&&_0x1b96f3['error']['message']['trim']()['length']>0x0)return _0x1b96f3[_0x42f686(-0xa5,-0x45,-_0x10624b._0x6b00d5,_0x10624b._0x3ef0d4)]['message'][_0x42f686(_0x10624b._0x4758c5,0xa1,0xd1,_0x10624b._0x4e05c3)]();if(typeof _0x1b96f3[_0x42f686(_0x10624b._0x2e0ec4,_0x10624b._0x124f49,0x20c,0x59)]===_0x57c9ff(_0x10624b._0x4544e5,0x6d8,_0x10624b._0x212754,0x62b)&&_0x1b96f3['message'][_0x57c9ff(0x5b7,_0x10624b._0x1e8e4d,_0x10624b._0x19e937,_0x10624b._0xe3d1d7)]()[_0x42f686(_0x10624b._0x4a05b9,_0x10624b._0x16ba11,_0x10624b._0x565cca,_0x10624b._0x2af04b)]>0x0)return _0x1b96f3[_0x57c9ff(0x7d5,0x6f0,_0x10624b._0x594057,_0x10624b._0x22fbfe)][_0x57c9ff(0x614,_0x10624b._0x23d1fe,0x647,0x5ba)]();}catch{return _0xc88d49;}return _0xc88d49;}async function createOpenAiApiError(_0x3c09bb){const _0x3d33ed={_0x593e58:0x5f9,_0xb764de:0x597,_0x4bfcc4:0x600,_0x5c010c:0x722,_0x3a6a3f:0x724,_0x4a8178:0x12d,_0x31048c:0x253,_0x4e447d:0x1bf,_0x2f50c8:0x5f3,_0x6ddf63:0x702},_0x4b329f={_0x38ecc2:0x70a},_0x2ac900={_0x1f1612:0x11d};function _0x54ceba(_0x5b9c5a,_0x246fb,_0x80bb30,_0x306fef){return _0x1a8b4d(_0x80bb30,_0x306fef-0x2d6,_0x80bb30-0x129,_0x306fef-_0x2ac900._0x1f1612);}const _0x3fbd65=(await _0x3c09bb[_0x141ae4(0x635,0x5b9,_0x3d33ed._0x593e58,0x633)]())[_0x141ae4(0x685,_0x3d33ed._0xb764de,0x646,_0x3d33ed._0x4bfcc4)](),_0x4ff532=extractErrorMessage(_0x3fbd65)||_0x3c09bb[_0x141ae4(0x640,_0x3d33ed._0x5c010c,_0x3d33ed._0x3a6a3f,0x595)]||_0x54ceba(_0x3d33ed._0x4a8178,_0x3d33ed._0x31048c,0x1cd,_0x3d33ed._0x4e447d)+_0x3c09bb[_0x141ae4(0x68c,_0x3d33ed._0x2f50c8,_0x3d33ed._0x6ddf63,0x707)];function _0x141ae4(_0x312fca,_0x589454,_0x256332,_0xb88c09){return _0x1a8b4d(_0x256332,_0x312fca-_0x4b329f._0x38ecc2,_0x256332-0xd9,_0xb88c09-0x55);}return new OpenAiApiError(_0x3c09bb['status'],_0x3fbd65,_0x4ff532);}function readSseData(_0x222aae){const _0x69e869={_0x4e9162:0xed,_0x36e025:0x223,_0x358121:0x81,_0x42aa08:0x60,_0x17f868:0x4b,_0x23185e:0x124,_0x4c453f:0x32b,_0x11087c:0x251},_0x53d65c={_0x149b7c:0x195,_0x3c66fa:0xae},_0x5d4fad={_0x27df08:0x3a2};function _0x2a9a50(_0x64e600,_0x262c06,_0x181494,_0x31d61e){return _0x5a1062(_0x64e600- -_0x5d4fad._0x27df08,_0x262c06,_0x181494-0x1f4,_0x31d61e-0x19f);}function _0x2ce5b1(_0x2336bc,_0x4682b7,_0xf2dad1,_0x57ba8a){return _0x5a1062(_0x4682b7- -0x96,_0xf2dad1,_0xf2dad1-_0x53d65c._0x149b7c,_0x57ba8a-_0x53d65c._0x3c66fa);}return _0x222aae[_0x2a9a50(-0x196,-_0x69e869._0x4e9162,-0x24f,-_0x69e869._0x36e025)]('\x0a')[_0x2a9a50(-_0x69e869._0x358121,_0x69e869._0x42aa08,0x11,-0xb8)](_0x444b56=>_0x444b56[_0x2a9a50(-0x72,-0x62,0x48,-0xfe)](_0x2ce5b1(0x24c,0x1e4,0x2c5,0x202)))[_0x2a9a50(-_0x69e869._0x17f868,-0x3a,-_0x69e869._0x23185e,-0xa)](_0x105ee9=>_0x105ee9[_0x2a9a50(-0x57,-0xce,-0x3e,0x4c)](0x5)[_0x2a9a50(-0x193,-0x25a,-0x145,-0x1a4)]())[_0x2ce5b1(_0x69e869._0x4c453f,0x290,_0x69e869._0x11087c,0x2ab)]('\x0a')[_0x2ce5b1(0x1ec,0x20f,0x12b,0x2bb)]();}function readString(_0x5a9ec4){const _0x46bb9c={_0x2aea9d:0x22,_0x1aa11b:0xa1,_0x51c70c:0x12a,_0x9e6689:0x52},_0x42a101={_0x7ba8e2:0x2da,_0x2c5de8:0xfa},_0x1ea48c={_0x422b6d:0x18d,_0x1c0370:0x159};function _0x5abc7e(_0x326614,_0xb46215,_0x25bcd0,_0x3e1e86){return _0x5a1062(_0x326614- -_0x1ea48c._0x422b6d,_0xb46215,_0x25bcd0-0x11,_0x3e1e86-_0x1ea48c._0x1c0370);}function _0x2119ae(_0x22b0d3,_0x377c3f,_0x2780cf,_0x17734b){return _0x5a1062(_0x17734b- -_0x42a101._0x7ba8e2,_0x377c3f,_0x2780cf-_0x42a101._0x2c5de8,_0x17734b-0xe2);}return typeof _0x5a9ec4===_0x2119ae(-_0x46bb9c._0x2aea9d,-_0x46bb9c._0x1aa11b,0x104,0x31)&&_0x5a9ec4[_0x2119ae(0x90,-0x32,_0x46bb9c._0x51c70c,_0x46bb9c._0x9e6689)]>0x0?_0x5a9ec4:void 0x0;}function extractReasoningDetails(_0x382cb3){const _0x384bcd={_0x9eb017:0x45,_0x49be89:0xa7,_0x50f712:0x75,_0x9bd540:0x2e},_0x59aa14={_0x548e5a:0x4b2,_0x5ec74b:0x3f0,_0x3f1f02:0x4a2,_0x17c8f9:0x4cc,_0x214fb0:0x4d3,_0x210c7b:0x581,_0x58b37c:0x52a,_0x3ea61a:0x522,_0x2b8c95:0x4ad,_0x44b232:0x328,_0x1578d8:0x375,_0x2032b0:0x2f7,_0xf7e9a3:0x47b,_0x54c17c:0x4e4},_0x46c381={_0x2d4c3f:0x151},_0x2ef5a8={_0x2e4eec:0x26,_0x1e71c0:0x111};if(!Array[_0x4f59b3(-0x14,_0x384bcd._0x9eb017,-_0x384bcd._0x49be89,-0x9c)](_0x382cb3))return void 0x0;function _0x1595fd(_0x348a72,_0x37f75c,_0x409e57,_0x2e17a2){return _0x5a1062(_0x37f75c-_0x2ef5a8._0x2e4eec,_0x2e17a2,_0x409e57-0x173,_0x2e17a2-_0x2ef5a8._0x1e71c0);}function _0x4f59b3(_0x474f18,_0x384941,_0x60e75d,_0x30ba8b){return _0x1a8b4d(_0x384941,_0x474f18-0x10c,_0x60e75d-0x4e,_0x30ba8b-_0x46c381._0x2d4c3f);}const _0x355bd4=_0x382cb3[_0x4f59b3(-_0x384bcd._0x50f712,-_0x384bcd._0x9bd540,-0xe9,-0x92)](_0xd0a20=>{const _0x237de1={_0xc7e99b:0x3e6,_0x3037a1:0x1e3,_0x3b69fb:0x66},_0x399185={_0x471a85:0x1d0,_0x3957bb:0x251};if(!_0xd0a20||typeof _0xd0a20!==_0x449abf(0x532,0x4a4,0x56f,_0x59aa14._0x548e5a))return[];const _0x2793d1=_0xd0a20;function _0x39ee6c(_0x1aa242,_0x3c6879,_0x28552f,_0x1d2baa){return _0x1595fd(_0x1aa242-_0x399185._0x471a85,_0x1d2baa-_0x399185._0x3957bb,_0x28552f-0x24,_0x3c6879);}if(typeof _0x2793d1[_0x39ee6c(0x564,_0x59aa14._0x5ec74b,_0x59aa14._0x3f1f02,_0x59aa14._0x17c8f9)]===_0x449abf(_0x59aa14._0x214fb0,0x516,_0x59aa14._0x210c7b,_0x59aa14._0x58b37c))return[_0x2793d1[_0x39ee6c(_0x59aa14._0x3ea61a,_0x59aa14._0x2b8c95,0x56d,_0x59aa14._0x17c8f9)]];if(typeof _0x2793d1[_0x449abf(0x39e,_0x59aa14._0x44b232,_0x59aa14._0x1578d8,_0x59aa14._0x2032b0)]===_0x449abf(0x4d3,_0x59aa14._0xf7e9a3,0x48a,_0x59aa14._0x54c17c))return[_0x2793d1['summary']];function _0x449abf(_0x13a04b,_0x54bd1c,_0x512964,_0x214271){return _0x4f59b3(_0x13a04b-_0x237de1._0xc7e99b,_0x54bd1c,_0x512964-_0x237de1._0x3037a1,_0x214271-_0x237de1._0x3b69fb);}return[];});return _0x355bd4['length']>0x0?_0x355bd4['join'](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x286123){const _0x50a5da={_0x25c437:0x550,_0x9bf458:0x58f,_0x4d85b6:0x35d},_0x58b090={_0x38cae9:0x111},_0x2db842={_0x3cf7f6:0x287,_0x51de9d:0x178,_0x3826d4:0x161};function _0x121948(_0x29aa8c,_0x4ca0f3,_0x40de13,_0x425de5){return _0x1a8b4d(_0x29aa8c,_0x40de13-_0x2db842._0x3cf7f6,_0x40de13-_0x2db842._0x51de9d,_0x425de5-_0x2db842._0x3826d4);}function _0x3bfd28(_0x411f6f,_0x273688,_0x53865c,_0x4b4a98){return _0x5a1062(_0x53865c-0x2f2,_0x411f6f,_0x53865c-_0x58b090._0x38cae9,_0x4b4a98-0xc8);}return extractReasoningDetails(_0x286123?.[_0x3bfd28(0x629,0x49d,_0x50a5da._0x25c437,_0x50a5da._0x9bf458)])??readString(_0x286123?.[_0x121948(_0x50a5da._0x4d85b6,0x249,0x28c,_0x50a5da._0x4d85b6)])??readString(_0x286123?.['reasoning_content'])??readString(_0x286123?.['reasoning_text'])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x5a1062(0x246,0x277,0x330,0x19e)]=[];[_0x1a8b4d(-0x188,-0x11a,-0x157,-0xbf)];[_0x5a1062(0x31a,0x2d8,0x324,0x31f)]=[];[_0x5a1062(0x1d9,0x123,0x217,0x14e)]=new Map();[_0x5a1062(0x227,0x18b,0x2ef,0x2ae)]=[];['toolUseStartEmitted']=new Set();[_0x5a1062(0x30a,0x324,0x362,0x2fc)]='';[_0x5a1062(0x369,0x430,0x33e,0x319)]=_0x1a8b4d(0x6,0x34,0x119,0x104);[_0x5a1062(0x2e3,0x313,0x284,0x25b)];constructor(_0xbf4326){const _0x6a0d69={_0x15fbf8:0x1aa},_0x288933={_0x2287eb:0x33};function _0x4c3818(_0x21ef6f,_0x888d39,_0x46ad54,_0xbef1af){return _0x5a1062(_0x21ef6f- -0x3ba,_0xbef1af,_0x46ad54-_0x288933._0x2287eb,_0xbef1af-0xca);}this[_0x4c3818(-_0x6a0d69._0x15fbf8,-0x22c,-0x10f,-0x100)]=_0xbf4326;}[_0x1a8b4d(-0x161,-0xa0,-0xab,-0x68)](_0x300c7e){const _0x41821f={_0x2c60a6:0x478,_0x1292b0:0x3bd,_0x395244:0x3a3,_0x47fdfe:0x592,_0x4c6be5:0x566,_0x19c4d9:0x4ea,_0x2fc364:0x381,_0x2a13f5:0x38b,_0x1d727f:0x597,_0x3fc729:0x6c6,_0x2f102a:0x60a,_0x9be3c5:0x63e,_0xd3b8f8:0x60a,_0x45c47b:0x297,_0x3464d2:0x2c2},_0x308ace={_0xc7007:0x651,_0x492806:0x3a},_0x2cdfd4={_0x32eaeb:0x7b,_0x3beeae:0x1dd},_0x56abe7=readSseData(_0x300c7e);if(_0x56abe7[_0x2ffe1e(_0x41821f._0x2c60a6,_0x41821f._0x1292b0,_0x41821f._0x395244,0x389)]===0x0||_0x56abe7==='[DONE]')return[];const _0x309be4=JSON[_0x1b35ff(0x5c9,_0x41821f._0x47fdfe,_0x41821f._0x4c6be5,_0x41821f._0x19c4d9)](_0x56abe7);function _0x2ffe1e(_0x2ec889,_0x353c6c,_0xc398b6,_0x33019f){return _0x5a1062(_0xc398b6-0x77,_0x2ec889,_0xc398b6-_0x2cdfd4._0x32eaeb,_0x33019f-_0x2cdfd4._0x3beeae);}this['responseId']=_0x309be4['id']??this[_0x2ffe1e(0x403,0x329,_0x41821f._0x2fc364,_0x41821f._0x2a13f5)];function _0x1b35ff(_0xc5918e,_0x2750dd,_0x88aec,_0x5e5646){return _0x1a8b4d(_0x88aec,_0x5e5646-_0x308ace._0xc7007,_0x88aec-_0x308ace._0x492806,_0x5e5646-0xc4);}return this['usage']=_0x309be4[_0x1b35ff(0x5bc,_0x41821f._0x1d727f,_0x41821f._0x3fc729,_0x41821f._0x2f102a)]??this[_0x1b35ff(0x556,0x59a,_0x41821f._0x9be3c5,_0x41821f._0xd3b8f8)],this[_0x2ffe1e(_0x41821f._0x45c47b,0x1dd,_0x41821f._0x3464d2,0x20f)](_0x309be4);}[_0x5a1062(0x29a,0x37c,0x244,0x2f7)](){const _0x31e753={_0x723016:0xd8,_0x332335:0x119,_0x52921d:0x38c,_0x16d012:0x3fd,_0x186755:0x1e3,_0xa09dc5:0x72,_0x382036:0x1f1,_0x22c292:0x513,_0x2b0bcf:0x492,_0x3a3f20:0x49f,_0x22e7ea:0x433,_0x371654:0x4fe,_0x131413:0x4a1,_0xe5aeb0:0x4a6,_0x4dd795:0x1e1,_0x4eec30:0x22c,_0x51d119:0x240,_0x45dd7c:0x23c,_0x2f300e:0xd5,_0x5246ca:0x139,_0x13b274:0x52f};this[_0x2ae906(0x171,_0x31e753._0x723016,_0x31e753._0x332335,0x139)]['length']>0x0&&(this['stopReason']=_0x2ae906(0x13d,0x225,0x177,0x204));const _0x13565b=isUserVisibleReasoning(this[_0x4883cd(_0x31e753._0x52921d,0x397,_0x31e753._0x16d012,0x416)])?this[_0x2ae906(_0x31e753._0x186755,_0x31e753._0xa09dc5,_0x31e753._0x382036,0x158)][_0x4883cd(0x4d5,0x4ae,_0x31e753._0x22c292,_0x31e753._0x2b0bcf)](''):void 0x0;function _0x2ae906(_0x4b4780,_0x1446cb,_0x26a7d0,_0x1fc3a5){return _0x1a8b4d(_0x4b4780,_0x1fc3a5-0x23c,_0x26a7d0-0x52,_0x1fc3a5-0xf1);}function _0x4883cd(_0x472340,_0x1e6cd5,_0x11ae93,_0x221826){return _0x1a8b4d(_0x221826,_0x11ae93-0x517,_0x11ae93-0xd6,_0x221826-0x145);}return{'id':this[_0x4883cd(_0x31e753._0x3a3f20,0x581,0x4f7,0x49c)]||_0x4883cd(_0x31e753._0x22e7ea,_0x31e753._0x371654,_0x31e753._0x131413,_0x31e753._0xe5aeb0)+Date['now'](),'content':createContentBlocks(this[_0x2ae906(0x164,0x2e2,_0x31e753._0x4dd795,_0x31e753._0x4eec30)][_0x2ae906(_0x31e753._0x51d119,_0x31e753._0x45dd7c,0x1df,0x238)](''),this[_0x2ae906(_0x31e753._0x2f300e,0xda,0x220,_0x31e753._0x5246ca)],_0x13565b),'stopReason':this[_0x4883cd(0x4ba,_0x31e753._0x13b274,0x556,0x54a)],'usage':createUsage(this['usage'])};}['consumeEvent'](_0x5ad59f){const _0x118094={_0x5b0b2c:0x262,_0x3a8243:0x1db,_0x27204c:0x231,_0x28740c:0x18b,_0x44570b:0x156,_0x14f0af:0x243,_0x175b69:0xde,_0x14924d:0x1c1,_0x44cbda:0xbc,_0x1e84f3:0x148,_0x52c026:0x2c0,_0x424eb4:0x2bd,_0x422bc5:0x219,_0xfb94e:0x12b,_0xb0f4ba:0x314,_0x9a2907:0x290,_0x381705:0xff,_0x13dabc:0x9e,_0x58ee7b:0xde,_0x17be80:0x167,_0x21e9c4:0x2ce,_0x563ade:0x28b,_0x17a556:0x346,_0x2b16aa:0xf,_0x569ce6:0xeb,_0x370ca5:0x20,_0x41562f:0x10e,_0x5b6b3f:0x32a,_0x193929:0x31e,_0xc78174:0x267,_0x2583f5:0x348,_0x2b8caf:0x199,_0x422c51:0x2dc,_0x1c90bd:0x15a,_0x373d53:0x376,_0x29b734:0x2b9,_0xae6ab9:0x270,_0x2cf218:0x1a7,_0x35a43f:0x26c,_0x2f331e:0x290,_0x36cf2c:0x124,_0xc6f4a2:0x188,_0x5679df:0x289,_0x288b07:0x249,_0x16513d:0x192,_0x3c6e94:0x17e,_0x2de29f:0xbf,_0x32d148:0x124,_0x2676b6:0xf4,_0x543797:0x22d,_0x35abcc:0x226,_0xae5cd8:0x19d,_0x1592c9:0x250,_0x3193f4:0x24f,_0x331dfc:0x183,_0x29cc2b:0x314,_0x5e9178:0x22d,_0x4b2911:0x212,_0x227824:0x80,_0x24749b:0xe3,_0xa8a356:0x16c,_0x243308:0x16b,_0xeaef3f:0x17c,_0x57ba94:0x20b,_0x5939d9:0x171,_0x14bc6d:0x1aa,_0x3ffdb4:0x100,_0xe77483:0x136,_0x77cee8:0x22e,_0x3cc3cc:0x272},_0x1f8360={_0xb765bd:0x16e},_0xa277c1={_0x2dedb3:0x1c9,_0x4b3cbe:0x1d8};function _0x406e30(_0x3a483b,_0x2b52e5,_0x576694,_0x1cd822){return _0x5a1062(_0x1cd822- -0x3d1,_0x576694,_0x576694-_0xa277c1._0x2dedb3,_0x1cd822-_0xa277c1._0x4b3cbe);}function _0x105cb8(_0xd2ad9,_0x1d88e5,_0x2ccbf7,_0x1cfdeb){return _0x5a1062(_0x2ccbf7- -0x80,_0x1d88e5,_0x2ccbf7-_0x1f8360._0xb765bd,_0x1cfdeb-0x15f);}const _0xd81f46=[];for(const _0x1dde6a of _0x5ad59f['choices']??[]){const _0x5ea85a=_0x1dde6a[_0x406e30(-0x204,-0x1fe,-_0x118094._0x5b0b2c,-_0x118094._0x3a8243)],_0x15b0f3=extractChatCompletionReasoningDelta(_0x5ea85a);_0x15b0f3['length']>0x0&&(this[_0x406e30(-_0x118094._0x27204c,-0x198,-0x164,-_0x118094._0x28740c)][_0x105cb8(_0x118094._0x44570b,0x31c,_0x118094._0x14f0af,0x2d0)](_0x15b0f3),isUserVisibleReasoning(this[_0x406e30(-_0x118094._0x175b69,-0x266,-0x213,-_0x118094._0x14924d)])&&_0xd81f46[_0x406e30(-0x140,-0x1ed,-_0x118094._0x44cbda,-0x10e)]({'type':'openai_reasoning_delta','contentIndex':0x0,'delta':_0x15b0f3,'itemId':(this['responseId']||_0x406e30(-_0x118094._0x1e84f3,-_0x118094._0x52c026,-_0x118094._0x424eb4,-_0x118094._0x422bc5))+':reasoning:0','outputIndex':0x0}));const _0x422603=typeof _0x5ea85a?.[_0x406e30(-_0x118094._0xfb94e,-0x105,-0xfc,-0x1a3)]===_0x105cb8(0x222,_0x118094._0xb0f4ba,0x28b,_0x118094._0x9a2907)?_0x5ea85a[_0x105cb8(_0x118094._0x381705,0xc2,0x1ae,0x23a)]:typeof _0x5ea85a?.[_0x406e30(-_0x118094._0x13dabc,-0x1a8,-_0x118094._0x58ee7b,-_0x118094._0x17be80)]===_0x105cb8(0x372,_0x118094._0x21e9c4,_0x118094._0x563ade,_0x118094._0x17a556)?_0x5ea85a['refusal']:'';_0x422603['length']>0x0&&(this[_0x406e30(_0x118094._0x2b16aa,-_0x118094._0x569ce6,_0x118094._0x370ca5,-0xb7)][_0x406e30(-0x1f5,-0x1b4,-0x12f,-_0x118094._0x41562f)](_0x422603),_0xd81f46['push']({'type':_0x406e30(-0x205,-0xa3,-0x8b,-0x142),'index':0x0,'text':_0x422603}));for(const _0x2f8ba9 of _0x5ea85a?.[_0x105cb8(_0x118094._0x5b6b3f,_0x118094._0x193929,_0x118094._0xc78174,_0x118094._0x2583f5)]??[]){const _0x501d0a=_0x2f8ba9['index']??0x0;let _0x3c25ec=this[_0x406e30(-0x165,-_0x118094._0x2b8caf,-0x195,-0x1f8)][_0x105cb8(0x210,_0x118094._0x422c51,0x2c8,0x3b1)](_0x501d0a);!_0x3c25ec&&(_0x3c25ec={'id':_0x2f8ba9['id']??'tool-call-'+_0x501d0a,'type':_0x105cb8(_0x118094._0x1c90bd,0x81,0x124,0x52),'function':{'name':_0x2f8ba9['function']?.[_0x105cb8(0x384,_0x118094._0x373d53,_0x118094._0x29b734,0x200)]??'','arguments':''}},this['toolCallsByIndex']['set'](_0x501d0a,_0x3c25ec),this[_0x105cb8(_0x118094._0xae6ab9,0x1ef,_0x118094._0x2cf218,_0x118094._0x35a43f)][_0x105cb8(_0x118094._0x2f331e,0x1cd,_0x118094._0x14f0af,0x1f9)](_0x3c25ec));_0x2f8ba9['id']&&(_0x3c25ec['id']=_0x2f8ba9['id']);_0x2f8ba9['function']?.['name']&&(_0x3c25ec[_0x105cb8(0x186,0x1ad,_0x118094._0x36cf2c,_0x118094._0xc6f4a2)]['name']=_0x2f8ba9['function'][_0x105cb8(_0x118094._0x5679df,_0x118094._0x288b07,0x2b9,0x35f)]);!this['toolUseStartEmitted'][_0x406e30(-_0x118094._0x16513d,-0x69,-_0x118094._0x3c6e94,-0x130)](_0x501d0a)&&_0x3c25ec[_0x105cb8(_0x118094._0x28740c,_0x118094._0x2de29f,_0x118094._0x32d148,0xa0)]['name']['trim']()['length']>0x0&&(_0xd81f46['push']({'type':_0x105cb8(0x261,_0x118094._0x2676b6,0x1a5,0x1ec),'id':_0x3c25ec['id'],'index':_0x501d0a,'name':_0x3c25ec[_0x406e30(-0x174,-0x25b,-0x1a0,-_0x118094._0x543797)][_0x105cb8(0x212,_0x118094._0x35abcc,0x2b9,0x275)]}),this[_0x105cb8(_0x118094._0xae5cd8,0x2be,_0x118094._0x1592c9,_0x118094._0x3193f4)][_0x406e30(-0x20e,-0x13f,-0x15f,-_0x118094._0x331dfc)](_0x501d0a));const _0x196db6=_0x2f8ba9[_0x406e30(-0x309,-_0x118094._0x424eb4,-_0x118094._0x29cc2b,-_0x118094._0x5e9178)]?.[_0x406e30(-_0x118094._0x4b2911,-_0x118094._0x227824,-_0x118094._0x24749b,-_0x118094._0xa8a356)]??'';_0x196db6['length']>0x0&&(_0x3c25ec[_0x105cb8(_0x118094._0x243308,_0x118094._0xeaef3f,_0x118094._0x32d148,_0x118094._0x57ba94)][_0x406e30(-_0x118094._0x5939d9,-_0x118094._0x14bc6d,-_0x118094._0x3ffdb4,-0x16c)]+=_0x196db6,_0xd81f46[_0x406e30(-0xe0,-0xc0,-_0x118094._0xe77483,-0x10e)]({'type':_0x105cb8(0x119,0x13f,0x1a5,0x160),'id':_0x3c25ec['id'],'index':_0x501d0a,'inputDelta':_0x196db6}));}_0x1dde6a['finish_reason']===_0x105cb8(0x1d6,0x350,_0x118094._0xc78174,_0x118094._0x77cee8)&&(this['stopReason']=_0x105cb8(0x2fc,0x306,_0x118094._0x3cc3cc,0x273));}return _0xd81f46;}},OpenAiResponsesStreamParser=class{['callIdToOutputIndex']=new Map();[_0x1a8b4d(-0x12b,-0xeb,-0x5f,-0x170)];['outputIndexToCallId']=new Map();[_0x1a8b4d(-0x94,0x3c,0xd3,-0x3)]=new Map();['reasoningItems']=new Map();[_0x1a8b4d(-0x68,-0x11a,-0x1c6,-0xcc)];[_0x1a8b4d(-0x32,0x8,0xe5,0x86)]=new Map();[_0x5a1062(0x1d3,0x1a6,0x117,0x14f)]=new Map();constructor(_0x3c7c90){const _0x1a7679={_0x495094:0x28d,_0x187ffe:0x36c,_0x17492e:0x1b1},_0x1de218={_0x4058e4:0x3a7,_0x4a4b93:0x36,_0x1253e6:0xe7};function _0x3e65eb(_0x4ca99b,_0x725298,_0x5cdc9f,_0x320f8c){return _0x1a8b4d(_0x320f8c,_0x4ca99b-_0x1de218._0x4058e4,_0x5cdc9f-_0x1de218._0x4a4b93,_0x320f8c-_0x1de218._0x1253e6);}this[_0x3e65eb(_0x1a7679._0x495094,0x230,_0x1a7679._0x187ffe,_0x1a7679._0x17492e)]=_0x3c7c90;}[_0x1a8b4d(-0x160,-0xa0,-0x67,0x1)](_0x508cc7){const _0x3f38c9={_0x561eb1:0x37f,_0x54cc3c:0x2f0,_0x4359eb:0x55a,_0x2d57c2:0x337,_0x3e2b07:0x306,_0x1282cf:0x39a,_0x5552cc:0x2b9,_0x58face:0x269,_0x58a8f1:0x4b7,_0x49a2b9:0x402,_0xf5e0f4:0x262,_0x363370:0x329,_0x4b10a6:0x1a3,_0x2569e2:0x21f},_0x2c57ae={_0x3dd84f:0x30a};function _0x232fc8(_0x59a3f2,_0x10d26e,_0x174128,_0x4f9740){return _0x5a1062(_0x174128-0x15d,_0x10d26e,_0x174128-0xd4,_0x4f9740-0x17f);}function _0x40804f(_0x2a1f74,_0x5780b9,_0x36fd4b,_0x4218f8){return _0x1a8b4d(_0x2a1f74,_0x5780b9-_0x2c57ae._0x3dd84f,_0x36fd4b-0x110,_0x4218f8-0x6a);}const _0x52a687=_0x508cc7['split']('\x0a'),_0x337039=_0x52a687[_0x40804f(_0x3f38c9._0x561eb1,_0x3f38c9._0x54cc3c,0x34a,0x2db)](_0x1cf198=>_0x1cf198[_0x40804f(0x2a5,0x310,0x2b4,0x230)]('event:'))?.[_0x232fc8(0x547,_0x3f38c9._0x4359eb,0x4a8,0x413)](0x6)['trim'](),_0x2b63dd=_0x52a687['filter'](_0x2766e2=>_0x2766e2[_0x232fc8(0x3b2,0x405,0x48d,0x573)](_0x232fc8(0x449,0x41c,0x3d7,0x32b)))[_0x40804f(0x24e,_0x3f38c9._0x2d57c2,_0x3f38c9._0x3e2b07,0x41a)](_0x5f0838=>_0x5f0838[_0x40804f(0x3c0,0x32b,0x3c9,0x297)](0x5)[_0x40804f(0x1ca,0x1ef,0x151,0x228)]())[_0x40804f(_0x3f38c9._0x1282cf,_0x3f38c9._0x3e2b07,_0x3f38c9._0x5552cc,_0x3f38c9._0x58face)]('\x0a')[_0x232fc8(_0x3f38c9._0x58a8f1,0x4cc,_0x3f38c9._0x49a2b9,0x33a)]();if(_0x2b63dd[_0x40804f(_0x3f38c9._0xf5e0f4,0x30c,_0x3f38c9._0x363370,0x240)]===0x0||_0x2b63dd===_0x232fc8(0x413,0x397,0x37d,0x380))return[];const _0x30f1ae=JSON[_0x40804f(0x266,_0x3f38c9._0x4b10a6,0xd4,_0x3f38c9._0x2569e2)](_0x2b63dd);return this['consumeEvent'](_0x337039??String(_0x30f1ae[_0x40804f(0x292,0x2c2,0x336,0x209)]??''),_0x30f1ae);}[_0x1a8b4d(-0x6e,-0x99,-0x91,-0x50)](_0x3a46cf){const _0x3bf935={_0x1dca9e:0x5b1,_0x1e79f1:0x63c,_0x236b1a:0x562,_0x388f36:0x6bb,_0x58ed0d:0x6c1,_0x123322:0x6ed},_0x57eb82={_0x20be40:0x51b,_0x2cddee:0x8a},_0x1626fc={_0x18de30:0x9b};function _0x141712(_0x1d6d96,_0x34368a,_0xd8db61,_0x5c7083){return _0x1a8b4d(_0x34368a,_0x1d6d96-0x703,_0xd8db61-0x1e8,_0x5c7083-_0x1626fc._0x18de30);}function _0x4e8a2f(_0x14a60b,_0x2ca336,_0x178f4a,_0xc26f35){return _0x1a8b4d(_0x178f4a,_0x2ca336-_0x57eb82._0x20be40,_0x178f4a-_0x57eb82._0x2cddee,_0xc26f35-0x1f);}return this[_0x141712(0x624,_0x3bf935._0x1dca9e,_0x3bf935._0x1e79f1,_0x3bf935._0x236b1a)](String(_0x3a46cf[_0x141712(_0x3bf935._0x388f36,_0x3bf935._0x58ed0d,0x64b,_0x3bf935._0x123322)]??''),_0x3a46cf);}['finish'](){const _0x47641b={_0x4de893:0x283,_0x5f543f:0x644,_0x2ad9d0:0x557,_0x23e122:0x4f5,_0x1a1802:0x702,_0x740773:0x645,_0x5bc677:0x693,_0x5090b9:0x78f,_0x53b040:0x6fb,_0xf36c86:0x6dd,_0x369e2c:0x693,_0x2e8996:0x75a,_0x4e49e6:0x599,_0x829b52:0x5f7,_0x3c7c1d:0x676},_0x3ddffb={_0x1572f1:0xd9},_0x5cd048={_0x492b33:0xbe,_0x5818f8:0x7a};function _0x57f23a(_0x85968c,_0x17b98c,_0x3c30fa,_0x1c9398){return _0x1a8b4d(_0x1c9398,_0x85968c-0x6b3,_0x3c30fa-_0x5cd048._0x492b33,_0x1c9398-_0x5cd048._0x5818f8);}const _0x468e2e=this[_0xcfd69d(0x2fd,0x2a0,0x2dc,_0x47641b._0x4de893)]??{'id':_0xcfd69d(0x3ea,0x3b9,0x3fe,0x366)+Date[_0x57f23a(0x5df,_0x47641b._0x5f543f,_0x47641b._0x2ad9d0,_0x47641b._0x23e122)](),'object':_0x57f23a(_0x47641b._0x1a1802,_0x47641b._0x740773,_0x47641b._0x5bc677,_0x47641b._0x5090b9),'status':_0x57f23a(_0x47641b._0x53b040,0x7b3,_0x47641b._0xf36c86,_0x47641b._0x369e2c),'output':this[_0x57f23a(0x6ff,0x63f,_0x47641b._0x2e8996,0x6b7)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0xcfd69d(_0x2779f3,_0x3e6b5a,_0x14af98,_0x5903e8){return _0x5a1062(_0x5903e8-0x44,_0x14af98,_0x14af98-0x74,_0x5903e8-_0x3ddffb._0x1572f1);}return parseResponsesResponse(_0x468e2e,this[_0x57f23a(_0x47641b._0x4e49e6,_0x47641b._0x829b52,0x4f6,_0x47641b._0x3c7c1d)]);}[_0x1a8b4d(-0x99,0x45,0x127,-0xa3)](){const _0xe80eba={_0x868b60:0x84,_0x2a287a:0xab,_0x4d627f:0x4f},_0x27c495={_0x217e16:0x1c,_0x1c9d2a:0xf4};function _0x5679ef(_0x3c297b,_0x42c85e,_0x45205d,_0x27d643){return _0x1a8b4d(_0x27d643,_0x42c85e-0x67,_0x45205d-_0x27c495._0x217e16,_0x27d643-_0x27c495._0x1c9d2a);}return this[_0x5679ef(0x4b,-_0xe80eba._0x868b60,-_0xe80eba._0x2a287a,_0xe80eba._0x4d627f)]!==void 0x0;}[_0x1a8b4d(-0xc2,-0xdf,-0x74,-0xce)](_0x16c396,_0x530607){const _0x2de465={_0x57f202:0x37a,_0xe8eace:0x2ec,_0x462c47:0x383,_0x212147:0x303,_0x5a05a8:0x24d,_0x4d1ddc:0x1f5,_0x5e2bea:0x3ce,_0x9b937c:0x2bf,_0x1a1f31:0x207,_0x37fd87:0x6b6,_0x152897:0x72b,_0x5d46d3:0x650,_0x57c204:0x5ca,_0xfec977:0x599,_0x55fe40:0x53b,_0x4535c7:0x38b,_0x2852d0:0x321,_0x44adde:0x608,_0x180344:0x587,_0x2856c4:0x5d3,_0x23391f:0x579,_0xab1b05:0x633,_0x395652:0x630,_0x49b690:0x2c0,_0x42e8e8:0x31d,_0x1f897f:0x37e,_0x29f265:0x3a1,_0x5419d9:0x3e1,_0x2cb114:0x324,_0x41e0ee:0x25a,_0x1f9381:0x2f5,_0x2888b4:0x297,_0x35b1f8:0x148,_0xe83f01:0x5f3,_0x1cb663:0x6e6,_0x50e286:0x620,_0x59f3db:0x4d0,_0x3ea459:0x627,_0xd3e5bf:0x5b1,_0x4c606a:0x269,_0x5f493d:0x5e5,_0x2812e6:0x518,_0x10ad9c:0x4f7,_0x21cb9d:0x574,_0x123a5c:0x493,_0x280c0f:0x4e9,_0x2c422e:0x463,_0x3506a9:0x5d3,_0x6fc300:0x1c4,_0xb2f115:0x569,_0xb173ae:0x64a,_0x3fae2e:0x240,_0x230a68:0x326,_0x507912:0x535,_0x2610b0:0x576,_0x410903:0x549,_0x329631:0x5c9,_0x514208:0x5c1,_0x452724:0x574,_0x3cb9fe:0x29f,_0x11d1a5:0x236,_0x255a81:0x285,_0x1e0865:0x1b0,_0x3f5ed8:0x3b5,_0x18029a:0x34a,_0x149337:0x39c,_0x55dd4d:0x5e6,_0x471c21:0x627,_0x7df06e:0x595,_0x408187:0x674,_0x5895ba:0x5e8,_0x1e0618:0x640,_0x33cfa2:0x6ab,_0x7ef258:0x4d8,_0x176804:0x2ec,_0xaa82f2:0x35b,_0xd23fa3:0x4b2,_0x4000de:0x30e,_0x10615a:0x359,_0x56c960:0x339,_0x42307f:0x3da,_0x3edf77:0x27e,_0x481f76:0x346,_0x3bfa59:0x56b,_0x352725:0x53b,_0x285050:0x31c,_0x57185f:0x621,_0x5812e7:0x52a,_0x1ea213:0x1e4,_0x194b95:0x1e7,_0x3ed574:0x290,_0x1f4ed9:0x34e,_0x2fdbb9:0x2df,_0xffd3ec:0x27b,_0x4bb98d:0x33d,_0x52f8f1:0x29b,_0x5bad92:0x1b5,_0x5310f1:0x5f5,_0x2d1dfe:0x21c,_0x26215c:0x1e6,_0x578dc4:0x218,_0x47ac02:0x616,_0x3065c7:0x68d,_0x93641a:0x590,_0x444949:0x529,_0x4f862b:0x57c,_0x1b1b37:0x4f2,_0x3d92d9:0x596,_0x4ff17a:0x538,_0x317363:0x4d6,_0x555254:0x240,_0x4f36a6:0x311,_0x29358a:0x620,_0x4447dd:0x43d,_0x229bd2:0x75c,_0x147ac6:0x71c,_0x55da1e:0x288,_0x1e0691:0x212,_0x591ffe:0x441,_0x17a91d:0x402,_0x360a6e:0x31c,_0x7af28f:0x359,_0x26e99d:0x276,_0x2919b4:0x1d3,_0x4b5eac:0x1ad,_0x2197ef:0x39e,_0x2696d9:0x261,_0x3dffb9:0x33d,_0x25f1c4:0x5b8,_0x38609a:0x4ae,_0x4be0bd:0x3bf,_0xaa8e8c:0x217,_0xe247b9:0x318,_0x2dd97c:0x268,_0x341e9d:0x206,_0x31a8ef:0x221,_0x292d7d:0x4f8,_0x366082:0x4f9,_0x200245:0x549,_0x29b3b1:0x657,_0x3c04bd:0x68d,_0x387027:0x5fe,_0x1c26ad:0x551,_0x4bacf4:0x1b5,_0x5944fd:0x12b,_0x548ae4:0x4eb,_0x1dcb0a:0x564,_0x4c2237:0x5aa,_0x3efceb:0x1cc,_0x30f31d:0x282,_0x5c3a98:0x5e3,_0x1bce4e:0x5d2,_0x8a3911:0x31c,_0x17b8dd:0x273,_0x5d7145:0x312,_0x57f584:0x65a,_0xe67e1f:0x560,_0x525708:0x51b,_0x3c576e:0x6fd,_0x1a213c:0x671,_0x805ae7:0x71a,_0x208993:0x2f3,_0x301ada:0x330,_0x28cfd2:0x266,_0x3c1451:0x143,_0x34d78a:0x14e,_0x31fe0c:0x2ae,_0x550530:0x660,_0x9041d6:0x266,_0x54851a:0x180,_0x11bc3c:0x24c,_0xffbd61:0x299,_0x346ea7:0x59a,_0x4f5893:0x610,_0x524616:0x4ae,_0x216aa6:0x2a1,_0x1adfa2:0x5b8,_0x41e004:0x60b,_0x24f228:0x6c1,_0x1f22cf:0x5c6,_0x340525:0x5dd,_0x31ab28:0x620,_0x1df72f:0x53f,_0x52f7ac:0x6e0,_0x5db794:0x68f,_0x5736b1:0x164,_0x20b711:0x278,_0x21147d:0x215,_0x1853a8:0x5f0,_0x3d8903:0x545,_0x2b65aa:0x28d,_0x20b6c8:0x193,_0x298723:0x566,_0x39959c:0x562,_0x39b8a5:0x224,_0x10c4db:0x227,_0x5ea5da:0x1f3,_0x52d35f:0x202,_0x29beeb:0x355,_0x571842:0x2df,_0x1dee5a:0x495,_0x14caab:0x61b,_0x133986:0x6aa,_0xcc1b90:0x26a,_0x48b597:0x1fa,_0x499b84:0x6be,_0x1ae429:0x672,_0xe906e6:0x5c2,_0x34ae4b:0x68d,_0x2505b2:0x620,_0xc2d89:0x4c3,_0x4adaae:0x4dd,_0x284a93:0x6af,_0x46c20c:0x59a,_0x227988:0x100,_0x1660e9:0x55e,_0xcfdc4c:0x545,_0x45c792:0x598,_0x2c0cb7:0x1eb,_0x477c0e:0x207,_0xbb2ff4:0x248,_0x5b78fc:0x178,_0xbd689c:0x27a,_0x3c8914:0x59f,_0x14cbd0:0x55d,_0x2ff9e8:0x31c,_0x47bb8c:0x302,_0x54b285:0x5bf,_0xfd58bf:0x618,_0x17cce1:0x334,_0x341af9:0x2ec,_0x4de5ac:0x243,_0x63a053:0x4f6,_0x19287e:0x2f8,_0x574fab:0x1d6,_0x48c362:0x228,_0x539cd6:0x30f,_0x13a60d:0x296,_0x482c5e:0x341,_0x3abdc8:0x304,_0x12b7d5:0x3ab,_0x5d4034:0x2ff,_0x4b2d17:0x32f,_0x511a37:0x31f,_0x3c7145:0x2bf,_0x1ff656:0x235,_0x24b7b6:0x2dc,_0x20d05f:0x660,_0x449279:0x73b,_0x17e4f9:0x229,_0x322697:0x206,_0x52dd81:0x5f5,_0x575327:0x5b4,_0xde54d0:0x2ec,_0x6d1319:0x384,_0x2900b7:0x107,_0x583e85:0x16e,_0x221256:0x65d,_0x1c80da:0x561,_0xca53d8:0x29c,_0x15f176:0x597,_0x444ef0:0x343,_0xa2c1c9:0x31c,_0x18bdfd:0x35c,_0x190335:0x518,_0x4460f2:0x610,_0x1de7f4:0x59a,_0x3a1418:0x676,_0x5b8911:0x1cb,_0x131223:0x134,_0x543b4f:0x378,_0x397e6b:0x600,_0x3eb394:0x4ca,_0xc42f58:0x42e,_0x39fb3f:0x433,_0x133101:0x3d0,_0x40ed2d:0x5ea,_0x34ce6:0x4fd,_0x1b6cfa:0x263,_0x1b788c:0x1d0,_0x1f74eb:0x600,_0x4982d2:0x536,_0x40111a:0x561,_0x286bf8:0x504,_0x1c5885:0x534,_0x1b0825:0x4a8,_0x14bf1b:0x49e,_0x58eb82:0x3e6,_0x37db14:0x28e,_0x416a39:0x41e,_0xa742af:0x5ac,_0x1ec0e5:0x65b,_0x18560e:0x5f1,_0x19cfa1:0x46f},_0x29feff={_0x257710:0x66f,_0x2c45d5:0x1b3},_0x4e3d78={_0x2820a7:0x33b,_0x230c00:0x171};function _0x43919b(_0x16213a,_0xf36296,_0x451112,_0x445014){return _0x1a8b4d(_0x451112,_0xf36296-_0x4e3d78._0x2820a7,_0x451112-0x155,_0x445014-_0x4e3d78._0x230c00);}function _0x3cb474(_0x3a60c2,_0x101d9f,_0x5220a1,_0x3dd049){return _0x1a8b4d(_0x3dd049,_0x5220a1-_0x29feff._0x257710,_0x5220a1-0xd0,_0x3dd049-_0x29feff._0x2c45d5);}switch(_0x16c396){case'response.output_text.delta':{const _0x13de84=typeof _0x530607[_0x43919b(_0x2de465._0x57f202,_0x2de465._0xe8eace,_0x2de465._0x462c47,_0x2de465._0x212147)]===_0x43919b(_0x2de465._0x5a05a8,_0x2de465._0x4d1ddc,0x126,0x230)?_0x530607[_0x43919b(_0x2de465._0x5e2bea,0x2ec,_0x2de465._0x9b937c,0x35a)]:0x0,_0x1b1797=typeof _0x530607[_0x43919b(0x218,_0x2de465._0x1a1f31,0x186,0x125)]===_0x3cb474(_0x2de465._0x37fd87,_0x2de465._0x152897,_0x2de465._0x5d46d3,_0x2de465._0x57c204)?_0x530607[_0x3cb474(0x5d9,_0x2de465._0xfec977,_0x2de465._0x55fe40,0x5fd)]:'';if(_0x1b1797['length']>0x0){const _0x4a5607=this[_0x43919b(_0x2de465._0x4535c7,0x343,_0x2de465._0x2852d0,0x426)][_0x43919b(0x348,0x359,0x2e9,0x3da)](_0x13de84)??[];return _0x4a5607[_0x3cb474(0x65a,0x58d,_0x2de465._0x44adde,_0x2de465._0x180344)](_0x1b1797),this[_0x3cb474(_0x2de465._0x2856c4,0x5d4,0x677,0x68c)][_0x3cb474(_0x2de465._0x23391f,0x691,_0x2de465._0xab1b05,_0x2de465._0x395652)](_0x13de84,_0x4a5607),[{'type':_0x43919b(_0x2de465._0x49b690,0x2a0,_0x2de465._0x42e8e8,0x34f),'index':_0x13de84,'text':_0x1b1797}];}break;}case _0x43919b(0x2fd,_0x2de465._0x1f897f,_0x2de465._0x29f265,_0x2de465._0x5419d9):{const _0x3efef9=typeof _0x530607[_0x43919b(_0x2de465._0x2cb114,_0x2de465._0xe8eace,_0x2de465._0x41e0ee,_0x2de465._0x1f9381)]===_0x43919b(0x298,0x1f5,_0x2de465._0x2888b4,_0x2de465._0x35b1f8)?_0x530607[_0x3cb474(_0x2de465._0xe83f01,_0x2de465._0x1cb663,_0x2de465._0x50e286,0x6f4)]:void 0x0,_0xa1687f=_0x530607[_0x3cb474(0x5a3,0x5d3,0x57b,_0x2de465._0x59f3db)];if(_0xa1687f?.[_0x3cb474(0x5c1,0x5bd,_0x2de465._0x3ea459,_0x2de465._0xd3e5bf)]===_0x43919b(0x278,0x268,0x2ee,_0x2de465._0x4c606a)&&_0xa1687f[_0x3cb474(0x5e9,0x4dc,0x574,_0x2de465._0x5f493d)]&&_0xa1687f[_0x43919b(0x3f8,0x34a,0x3ec,0x342)])return this[_0x3cb474(0x4a0,0x4c7,_0x2de465._0x2812e6,_0x2de465._0x10ad9c)]['set'](_0xa1687f[_0x3cb474(0x623,0x4da,_0x2de465._0x21cb9d,0x4d6)],{'id':_0xa1687f['call_id'],'type':_0x3cb474(_0x2de465._0x123a5c,0x587,_0x2de465._0x280c0f,_0x2de465._0x2c422e),'function':{'name':_0xa1687f[_0x3cb474(_0x2de465._0x3506a9,0x66c,0x67e,0x6a1)],'arguments':''}}),_0x3efef9!==void 0x0&&(this[_0x43919b(0x1c4,_0x2de465._0x6fc300,0x1e3,_0x2de465._0x6fc300)][_0x3cb474(_0x2de465._0xb2f115,0x5af,0x633,_0x2de465._0xb173ae)](_0x3efef9,_0xa1687f[_0x43919b(0x271,_0x2de465._0x3fae2e,_0x2de465._0x230a68,0x194)]),this[_0x3cb474(_0x2de465._0x507912,_0x2de465._0x2610b0,0x4ec,_0x2de465._0x410903)][_0x3cb474(0x5d1,_0x2de465._0x329631,_0x2de465._0xab1b05,_0x2de465._0x514208)](_0xa1687f[_0x3cb474(0x625,0x5d6,_0x2de465._0x452724,0x5bd)],_0x3efef9)),[{'type':_0x43919b(_0x2de465._0x3cb9fe,_0x2de465._0x11d1a5,0x2db,_0x2de465._0x255a81),'id':_0xa1687f[_0x43919b(_0x2de465._0x1e0865,0x240,0x1d7,0x1a2)],'index':_0x3efef9??0x0,'name':_0xa1687f[_0x43919b(_0x2de465._0x3f5ed8,_0x2de465._0x18029a,0x2c8,_0x2de465._0x149337)]}];if(_0xa1687f?.[_0x3cb474(0x56f,_0x2de465._0x55dd4d,_0x2de465._0x471c21,0x6b2)]===_0x3cb474(0x591,_0x2de465._0x7df06e,_0x2de465._0x408187,0x58b)&&_0xa1687f['id']){const _0x380d30=this[_0x3cb474(0x463,_0x2de465._0x5895ba,0x500,_0x2de465._0x57c204)](_0xa1687f['id'],_0x3efef9);_0x3efef9!==void 0x0&&this[_0x3cb474(0x6df,_0x2de465._0x1e0618,_0x2de465._0x33cfa2,0x6c6)]['set'](_0x3efef9,_0x380d30['id']);}break;}case'response.function_call_arguments.delta':{const _0x272c9f=typeof _0x530607[_0x3cb474(0x5e7,_0x2de465._0x7ef258,_0x2de465._0x21cb9d,_0x2de465._0x507912)]==='string'?_0x530607['call_id']:typeof _0x530607[_0x43919b(0x39c,_0x2de465._0x176804,_0x2de465._0xaa82f2,0x220)]===_0x3cb474(_0x2de465._0xd23fa3,0x4b6,0x529,0x494)?this[_0x3cb474(0x5cd,0x574,0x4f8,0x594)][_0x43919b(_0x2de465._0x4000de,_0x2de465._0x10615a,_0x2de465._0x56c960,0x311)](_0x530607[_0x43919b(_0x2de465._0x42307f,0x2ec,_0x2de465._0x3edf77,_0x2de465._0x481f76)]):void 0x0,_0x1fb747=typeof _0x530607[_0x3cb474(0x48a,_0x2de465._0x3bfa59,_0x2de465._0x352725,0x5c0)]===_0x43919b(0x38e,_0x2de465._0x285050,0x358,0x342)?_0x530607[_0x3cb474(_0x2de465._0x57185f,0x4b6,0x53b,_0x2de465._0x5812e7)]:'',_0x9c8753=_0x272c9f?this[_0x43919b(0x1da,_0x2de465._0x1ea213,_0x2de465._0x194b95,0x2b8)][_0x43919b(_0x2de465._0x3ed574,0x359,_0x2de465._0x1f4ed9,_0x2de465._0x2fdbb9)](_0x272c9f):void 0x0;if(_0x9c8753&&_0x1fb747[_0x43919b(_0x2de465._0xffd3ec,_0x2de465._0x4bb98d,0x40a,0x417)]>0x0)return _0x9c8753[_0x43919b(_0x2de465._0x52f8f1,_0x2de465._0x5bad92,0x25f,0xe1)][_0x3cb474(0x56c,_0x2de465._0x5310f1,0x5aa,0x625)]+=_0x1fb747,[{'type':'tool_use_delta','id':_0x9c8753['id'],'index':this[_0x43919b(_0x2de465._0x2d1dfe,0x1b8,_0x2de465._0x26215c,_0x2de465._0x578dc4)][_0x3cb474(_0x2de465._0x47ac02,0x724,_0x2de465._0x3065c7,0x6b5)](_0x9c8753['id'])??(typeof _0x530607[_0x3cb474(_0x2de465._0x93641a,_0x2de465._0x21cb9d,0x620,0x5a5)]===_0x3cb474(0x4de,0x5a5,_0x2de465._0x444949,0x47a)?_0x530607[_0x3cb474(0x6bb,_0x2de465._0x4f862b,0x620,0x660)]:0x0),'inputDelta':_0x1fb747}];break;}case _0x3cb474(_0x2de465._0x1b1b37,0x5c1,_0x2de465._0x3d92d9,_0x2de465._0x4ff17a):{const _0x3c8692=typeof _0x530607[_0x3cb474(0x58f,0x576,_0x2de465._0x452724,_0x2de465._0x317363)]==='string'?_0x530607[_0x43919b(0x1c7,_0x2de465._0x555254,_0x2de465._0x4f36a6,0x30d)]:typeof _0x530607[_0x3cb474(0x607,0x688,_0x2de465._0x29358a,0x596)]===_0x43919b(_0x2de465._0x1e0865,_0x2de465._0x4d1ddc,0x1e1,0x292)?this[_0x3cb474(0x4ab,_0x2de465._0x4447dd,0x4f8,0x41d)][_0x3cb474(_0x2de465._0x229bd2,_0x2de465._0x147ac6,0x68d,0x6c0)](_0x530607[_0x43919b(0x2ef,_0x2de465._0xe8eace,_0x2de465._0x55da1e,_0x2de465._0x1e0691)]):void 0x0,_0x6ebb6f=_0x3c8692?this['toolCalls'][_0x43919b(_0x2de465._0x591ffe,0x359,_0x2de465._0x17a91d,0x2ca)](_0x3c8692):void 0x0;_0x6ebb6f&&typeof _0x530607[_0x43919b(0x1c5,0x276,0x198,0x274)]===_0x43919b(0x342,_0x2de465._0x360a6e,0x3ff,0x3ad)&&(_0x6ebb6f['function'][_0x43919b(_0x2de465._0x7af28f,_0x2de465._0x26e99d,0x1f6,0x304)]=_0x530607[_0x43919b(_0x2de465._0x2919b4,0x276,_0x2de465._0x4b5eac,0x322)]);break;}case _0x43919b(0x36d,0x367,_0x2de465._0x55da1e,_0x2de465._0x2197ef):{const _0x43cf55=typeof _0x530607['output_index']==='number'?_0x530607[_0x43919b(_0x2de465._0x2696d9,0x2ec,0x241,_0x2de465._0x3dffb9)]:void 0x0,_0x13a968=_0x530607[_0x3cb474(0x50e,_0x2de465._0x25f1c4,0x57b,_0x2de465._0x38609a)];if(_0x13a968?.[_0x43919b(_0x2de465._0x4be0bd,0x2f3,_0x2de465._0xaa8e8c,_0x2de465._0x41e0ee)]===_0x43919b(_0x2de465._0xe247b9,_0x2de465._0x2dd97c,_0x2de465._0x341e9d,0x2d1)){const _0x35a7a2=_0x13a968[_0x43919b(0x30d,_0x2de465._0x3fae2e,0x28f,_0x2de465._0x31a8ef)]??(_0x43cf55!==void 0x0?this[_0x3cb474(0x4aa,0x498,_0x2de465._0x292d7d,0x495)]['get'](_0x43cf55):void 0x0),_0xeda52=_0x35a7a2?this[_0x3cb474(_0x2de465._0x366082,0x477,_0x2de465._0x2812e6,_0x2de465._0x200245)][_0x3cb474(0x5fe,_0x2de465._0x29b3b1,_0x2de465._0x3c04bd,_0x2de465._0x387027)](_0x35a7a2):void 0x0;_0xeda52&&typeof _0x13a968[_0x3cb474(_0x2de465._0x1c26ad,0x4d5,0x5aa,0x619)]===_0x3cb474(0x5d3,0x6ff,0x650,0x722)&&(_0xeda52[_0x43919b(0x20f,_0x2de465._0x4bacf4,0x251,_0x2de465._0x5944fd)]['arguments']=_0x13a968[_0x3cb474(_0x2de465._0x548ae4,_0x2de465._0x1dcb0a,_0x2de465._0x4c2237,0x54d)]);break;}if(_0x13a968?.['type']==='reasoning'&&_0x13a968['id']){const _0x1a63bd=this[_0x43919b(0x23c,_0x2de465._0x3efceb,0x26d,_0x2de465._0x30f31d)](_0x13a968['id'],_0x43cf55);typeof _0x13a968[_0x3cb474(_0x2de465._0x5c3a98,0x614,0x6bd,_0x2de465._0x1bce4e)]===_0x43919b(0x3d1,_0x2de465._0x8a3911,_0x2de465._0x17b8dd,_0x2de465._0x5d7145)&&(_0x1a63bd['encryptedContent']=_0x13a968[_0x3cb474(_0x2de465._0x57f584,0x792,0x6bd,0x6ff)]);if(Array[_0x43919b(0x176,0x21b,0x25a,0x1b6)](_0x13a968[_0x3cb474(0x533,_0x2de465._0xe67e1f,_0x2de465._0x525708,0x44f)]))for(let _0xc858a7=0x0;_0xc858a7<_0x13a968['summary'][_0x3cb474(0x71e,_0x2de465._0x3c576e,_0x2de465._0x1a213c,_0x2de465._0x805ae7)];_0xc858a7+=0x1){const _0x49ffe9=_0x13a968['summary'][_0xc858a7];_0x49ffe9[_0x43919b(0x256,_0x2de465._0x208993,0x2ec,0x2af)]===_0x43919b(_0x2de465._0x301ada,0x2f6,0x303,0x3a0)&&typeof _0x49ffe9[_0x43919b(0x250,_0x2de465._0x28cfd2,_0x2de465._0x52f8f1,0x2eb)]===_0x43919b(0x300,_0x2de465._0x360a6e,0x3f8,0x3dc)&&_0x1a63bd[_0x43919b(_0x2de465._0x3c1451,0x211,_0x2de465._0x34d78a,_0x2de465._0x31fe0c)]['set'](_0xc858a7,_0x49ffe9[_0x3cb474(0x5b4,_0x2de465._0x550530,0x59a,0x4bb)]);}typeof _0x13a968[_0x43919b(0x17e,_0x2de465._0x9041d6,_0x2de465._0x54851a,0x2f4)]===_0x43919b(0x33a,0x31c,0x247,0x3db)&&_0x1a63bd[_0x43919b(_0x2de465._0x11bc3c,0x304,0x282,_0x2de465._0xffbd61)]['set'](0x0,_0x13a968[_0x3cb474(0x609,0x4b2,_0x2de465._0x346ea7,0x681)]);}break;}case _0x3cb474(_0x2de465._0x4f5893,0x4b2,0x54d,0x610):{const _0xc70ba2=typeof _0x530607[_0x3cb474(0x4f3,0x478,0x53b,_0x2de465._0x524616)]===_0x43919b(0x245,_0x2de465._0x285050,_0x2de465._0x216aa6,0x349)?_0x530607['delta']:'',_0x273cb3=typeof _0x530607[_0x3cb474(0x5c3,0x4ba,0x55d,0x480)]===_0x3cb474(0x615,_0x2de465._0x1adfa2,0x650,_0x2de465._0x41e004)?_0x530607['item_id']:typeof _0x530607[_0x3cb474(0x5f6,_0x2de465._0x24f228,0x620,_0x2de465._0x1f22cf)]==='number'?this[_0x3cb474(0x686,0x695,_0x2de465._0x33cfa2,0x68b)]['get'](_0x530607[_0x3cb474(0x681,_0x2de465._0x340525,_0x2de465._0x31ab28,_0x2de465._0x1df72f)]):void 0x0,_0x18b0f2=typeof _0x530607[_0x3cb474(_0x2de465._0x52f7ac,_0x2de465._0x5db794,0x620,0x644)]===_0x43919b(_0x2de465._0x5736b1,0x1f5,0x222,0x117)?_0x530607[_0x43919b(0x2ca,0x2ec,_0x2de465._0x20b711,0x28c)]:0x0,_0x3eaa4c=typeof _0x530607['summary_index']==='number'?_0x530607[_0x43919b(_0x2de465._0x21147d,0x263,0x2db,0x202)]:0x0;if(_0x273cb3&&_0xc70ba2['length']>0x0){const _0x58a5b6=this['getOrCreateReasoningItem'](_0x273cb3,_0x18b0f2);_0x58a5b6[_0x3cb474(0x524,_0x2de465._0x1853a8,_0x2de465._0x3d8903,0x624)][_0x3cb474(0x603,0x56c,_0x2de465._0xab1b05,0x567)](_0x3eaa4c,''+(_0x58a5b6[_0x43919b(_0x2de465._0x2b65aa,0x211,0x2a6,_0x2de465._0x20b6c8)]['get'](_0x3eaa4c)??'')+_0xc70ba2);if(isUserVisibleReasoning(this[_0x3cb474(_0x2de465._0x298723,_0x2de465._0x39959c,0x555,0x47f)]))return[{'type':_0x43919b(_0x2de465._0x39b8a5,_0x2de465._0x10c4db,_0x2de465._0x5ea5da,_0x2de465._0x52d35f),'delta':_0xc70ba2,'itemId':_0x273cb3,'outputIndex':_0x18b0f2,'summaryIndex':_0x3eaa4c}];}break;}case _0x43919b(0x2e8,_0x2de465._0x29beeb,_0x2de465._0x571842,0x3cf):{const _0x338a3d=typeof _0x530607[_0x3cb474(_0x2de465._0x4ff17a,_0x2de465._0x1dee5a,0x55d,0x576)]===_0x3cb474(_0x2de465._0x14caab,0x5d4,0x650,_0x2de465._0x133986)?_0x530607['item_id']:typeof _0x530607[_0x43919b(0x2ba,_0x2de465._0xe8eace,0x2ef,_0x2de465._0xcc1b90)]===_0x43919b(_0x2de465._0x48b597,0x1f5,0x212,0x12a)?this[_0x3cb474(0x787,_0x2de465._0x499b84,0x6ab,_0x2de465._0x499b84)][_0x3cb474(_0x2de465._0x1ae429,_0x2de465._0xe906e6,_0x2de465._0x34ae4b,0x6a3)](_0x530607[_0x3cb474(0x668,0x65b,_0x2de465._0x2505b2,_0x2de465._0x452724)]):void 0x0,_0x57e549=typeof _0x530607[_0x3cb474(0x686,0x6ed,_0x2de465._0x2505b2,_0x2de465._0x395652)]==='number'?_0x530607[_0x3cb474(0x678,0x656,0x620,0x6c1)]:0x0,_0x4881ce=typeof _0x530607['summary_index']==='number'?_0x530607['summary_index']:0x0,_0x27e28a=typeof _0x530607[_0x3cb474(_0x2de465._0xc2d89,0x614,_0x2de465._0x346ea7,_0x2de465._0x4adaae)]===_0x3cb474(0x6c2,_0x2de465._0x284a93,_0x2de465._0x5d46d3,0x57a)?_0x530607[_0x3cb474(0x619,0x57d,_0x2de465._0x46c20c,0x62b)]:'';_0x338a3d&&this[_0x43919b(_0x2de465._0x227988,_0x2de465._0x3efceb,0x15b,0x227)](_0x338a3d,_0x57e549)[_0x3cb474(0x538,_0x2de465._0x1660e9,_0x2de465._0xcfdc4c,_0x2de465._0x45c792)]['set'](_0x4881ce,_0x27e28a);break;}case'response.reasoning_text.delta':{const _0x1319ed=typeof _0x530607[_0x43919b(_0x2de465._0x2c0cb7,_0x2de465._0x477c0e,_0x2de465._0xbb2ff4,0x19b)]==='string'?_0x530607[_0x43919b(_0x2de465._0x5b78fc,0x207,0x2ee,_0x2de465._0xbd689c)]:'',_0x153ac1=typeof _0x530607[_0x3cb474(0x4a2,_0x2de465._0x3c8914,_0x2de465._0x14cbd0,0x4e1)]===_0x43919b(0x337,_0x2de465._0x2ff9e8,0x373,_0x2de465._0x47bb8c)?_0x530607[_0x3cb474(_0x2de465._0x54b285,0x5e4,0x55d,0x4f8)]:typeof _0x530607[_0x3cb474(0x6db,0x60e,_0x2de465._0x2505b2,_0x2de465._0xfd58bf)]===_0x43919b(0x11b,_0x2de465._0x4d1ddc,0x114,0x228)?this['outputIndexToReasoningId']['get'](_0x530607['output_index']):void 0x0,_0x35128e=typeof _0x530607[_0x43919b(_0x2de465._0x17cce1,_0x2de465._0x341af9,0x311,_0x2de465._0x4de5ac)]===_0x3cb474(0x461,_0x2de465._0x63a053,0x529,0x5e2)?_0x530607[_0x43919b(0x367,_0x2de465._0x341af9,0x225,_0x2de465._0x19287e)]:0x0,_0x2adb0b=typeof _0x530607[_0x43919b(_0x2de465._0x574fab,0x20f,0x233,_0x2de465._0x48c362)]==='number'?_0x530607['content_index']:0x0;if(_0x153ac1&&_0x1319ed[_0x43919b(_0x2de465._0x539cd6,0x33d,_0x2de465._0x13a60d,0x3b2)]>0x0){const _0x5a7fcc=this['getOrCreateReasoningItem'](_0x153ac1,_0x35128e);_0x5a7fcc[_0x43919b(_0x2de465._0x482c5e,_0x2de465._0x3abdc8,_0x2de465._0x12b7d5,0x362)][_0x43919b(0x24a,_0x2de465._0x5d4034,0x3d1,0x382)](_0x2adb0b,''+(_0x5a7fcc[_0x3cb474(0x687,0x6f9,0x638,0x5b8)][_0x43919b(_0x2de465._0x4b2d17,0x359,_0x2de465._0x511a37,0x325)](_0x2adb0b)??'')+_0x1319ed);if(isUserVisibleReasoning(this[_0x43919b(_0x2de465._0x10c4db,0x221,0x1e5,_0x2de465._0x3c7145)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x2adb0b,'delta':_0x1319ed,'itemId':_0x153ac1,'outputIndex':_0x35128e}];}break;}case _0x43919b(_0x2de465._0x1ff656,_0x2de465._0x24b7b6,0x32d,_0x2de465._0xaa8e8c):{const _0x282b89=typeof _0x530607['item_id']===_0x3cb474(0x573,_0x2de465._0x20d05f,_0x2de465._0x5d46d3,_0x2de465._0x449279)?_0x530607[_0x43919b(0x1a5,_0x2de465._0x17e4f9,0x224,_0x2de465._0x322697)]:typeof _0x530607['output_index']==='number'?this['outputIndexToReasoningId'][_0x3cb474(_0x2de465._0x52dd81,_0x2de465._0x575327,0x68d,0x5b1)](_0x530607[_0x43919b(0x26e,_0x2de465._0xde54d0,_0x2de465._0x6d1319,0x204)]):void 0x0,_0x36f696=typeof _0x530607['output_index']===_0x43919b(_0x2de465._0x2900b7,0x1f5,0x26a,_0x2de465._0x583e85)?_0x530607[_0x3cb474(0x6f9,_0x2de465._0x221256,_0x2de465._0x2505b2,_0x2de465._0x1c80da)]:0x0,_0x7a06f=typeof _0x530607['content_index']===_0x43919b(0x16d,_0x2de465._0x4d1ddc,0x209,_0x2de465._0xca53d8)?_0x530607[_0x3cb474(0x4ff,0x457,0x543,_0x2de465._0x15f176)]:0x0,_0xc6c857=typeof _0x530607['text']===_0x43919b(_0x2de465._0x444ef0,_0x2de465._0xa2c1c9,0x2ca,_0x2de465._0x18bdfd)?_0x530607[_0x3cb474(_0x2de465._0x190335,_0x2de465._0x4460f2,_0x2de465._0x1de7f4,_0x2de465._0x3a1418)]:'';_0x282b89&&this[_0x43919b(_0x2de465._0x5b8911,0x1cc,_0x2de465._0x131223,0x118)](_0x282b89,_0x36f696)[_0x43919b(0x248,0x304,0x2d7,_0x2de465._0x543b4f)][_0x3cb474(_0x2de465._0x397e6b,_0x2de465._0x1ae429,0x633,0x65c)](_0x7a06f,_0xc6c857);break;}case _0x3cb474(_0x2de465._0x3eb394,0x5db,0x530,0x4ec):{this[_0x43919b(0x252,0x250,0x338,0x32a)]=_0x530607['response'];break;}case _0x43919b(0x2f9,0x35a,_0x2de465._0xc42f58,0x373):{const _0x24ade7=_0x530607[_0x43919b(0x335,0x38a,_0x2de465._0x39fb3f,0x3ca)];throw new ProviderStreamEventError(_0x24ade7?.['error']?.[_0x43919b(0x28e,0x334,0x3df,_0x2de465._0x133101)]??_0x3cb474(_0x2de465._0x40ed2d,0x4bd,0x56d,_0x2de465._0x34ce6),{'code':_0x24ade7?.[_0x43919b(_0x2de465._0x1b6cfa,_0x2de465._0x1b788c,0x1ac,0x282)]?.[_0x3cb474(_0x2de465._0x1f74eb,0x4a0,_0x2de465._0x4982d2,0x5e2)],'retryable':!![]});}case _0x3cb474(0x499,_0x2de465._0x40111a,_0x2de465._0x286bf8,_0x2de465._0x1c5885):{const _0x41b1f7=_0x530607[_0x3cb474(_0x2de465._0x1b0825,0x560,0x504,_0x2de465._0x14bf1b)];throw new ProviderStreamEventError(_0x41b1f7?.[_0x43919b(_0x2de465._0x58eb82,0x334,_0x2de465._0x37db14,_0x2de465._0x416a39)]??'Responses\x20stream\x20failed',{'code':_0x41b1f7?.['code'],'retryable':!![],'status':typeof _0x530607[_0x3cb474(_0x2de465._0xa742af,_0x2de465._0x1ec0e5,_0x2de465._0x18560e,_0x2de465._0x525708)]===_0x3cb474(0x4c2,_0x2de465._0x19cfa1,_0x2de465._0x444949,0x45c)?_0x530607['status']:void 0x0});}}return[];}[_0x5a1062(0x376,0x327,0x294,0x355)](){const _0x36a0b8={_0x1cefac:0x1c9,_0x24cb8b:0xc7,_0x4f16fc:0x17e,_0x529c76:0xbe,_0x2f1096:0x189,_0x3e3561:0xbf,_0xbbcfb5:0x6c,_0x51917a:0x52,_0x57f6eb:0x116,_0x4c5ed0:0x2e,_0x5acb46:0xad,_0x1c4c60:0x64,_0x44bffe:0x86,_0x36e1ab:0xc8,_0x1fafb0:0x98,_0x27481c:0xd5,_0x20c575:0x197,_0x14ef16:0x1cf,_0x1d4219:0x15e,_0x4c464a:0x249,_0x400797:0x10,_0x34c9f8:0xa5,_0xd52d66:0xea,_0x55549e:0x65,_0x95eaf7:0x133,_0x3b81e8:0x16c,_0x58e4e:0x1ed,_0x561b6a:0xc5,_0x21ea81:0xdd,_0x24c8ce:0x16f,_0x4afdd8:0x1b5,_0x1c4e25:0x17a,_0x3c1804:0xf2,_0x556795:0x24,_0x3b1070:0x11e,_0x459075:0x226,_0x42d66b:0xfd,_0x48b55b:0x38,_0x25fada:0x44,_0x208bb1:0x164,_0x165259:0x9f,_0x2785df:0x1fa,_0x2c899c:0x177,_0x182512:0x76,_0x109b96:0xca,_0x42508b:0x144,_0xbc056c:0x6,_0x1ab88b:0x77,_0x2c3454:0xb7,_0x34079c:0x13,_0x325f6b:0x174,_0x33d3a0:0xa8,_0x122fdd:0x6b,_0x25525e:0x116,_0x3626b6:0x16f,_0xa2da5f:0x2c4},_0x95227b={_0x2ebf76:0x755,_0x34280f:0x5ba,_0x54620f:0x677},_0x1ba541={_0x106e27:0x15d,_0x1e2c58:0x1,_0x3a87e8:0xe9},_0x3dddf4={_0x25484a:0xc5};function _0xb4c10a(_0x11822c,_0xc505f5,_0x4f28c1,_0x191039){return _0x1a8b4d(_0x191039,_0x11822c-_0x3dddf4._0x25484a,_0x4f28c1-0x1e,_0x191039-0x7d);}const _0xd7956e=[];function _0x4323eb(_0x430cae,_0x4806b5,_0x3735de,_0x4f8e9){return _0x5a1062(_0x430cae- -_0x1ba541._0x106e27,_0x4806b5,_0x3735de-_0x1ba541._0x1e2c58,_0x4f8e9-_0x1ba541._0x3a87e8);}for(const [_0x5a6d7a,_0x311e25]of this['responseTextParts']['entries']()){const _0xd34547=_0x311e25[_0x4323eb(_0x36a0b8._0x1cefac,0x168,0x238,0x16c)]('');if(_0xd34547[_0xb4c10a(_0x36a0b8._0x24cb8b,-0x24,0xfa,_0x36a0b8._0x4f16fc)]===0x0)continue;_0xd7956e['push']({'index':_0x5a6d7a,'item':{'type':_0xb4c10a(_0x36a0b8._0x529c76,_0x36a0b8._0x2f1096,_0x36a0b8._0x3e3561,0x117),'role':'assistant','content':[{'type':_0xb4c10a(-_0x36a0b8._0xbbcfb5,_0x36a0b8._0x51917a,-0x11,-_0x36a0b8._0x57f6eb),'text':_0xd34547}]}});}for(const _0x4b5dba of this[_0xb4c10a(-_0x36a0b8._0x4c5ed0,-_0x36a0b8._0x5acb46,_0x36a0b8._0x1c4c60,_0x36a0b8._0x44bffe)][_0x4323eb(0x102,_0x36a0b8._0x36e1ab,_0x36a0b8._0x1fafb0,0x12e)]()){_0xd7956e['push']({'index':_0x4b5dba[_0x4323eb(_0x36a0b8._0x27481c,0x61,_0x36a0b8._0x20c575,0x150)]??_0xd7956e[_0x4323eb(_0x36a0b8._0x14ef16,_0x36a0b8._0x1d4219,0x1cc,0x1fc)],'item':{'type':_0x4323eb(0x1d2,_0x36a0b8._0x4c464a,0x28b,0x1b9),'id':_0x4b5dba['id'],..._0x4b5dba[_0xb4c10a(0x3d,_0x36a0b8._0x400797,_0x36a0b8._0x34c9f8,_0x36a0b8._0xd52d66)]?{'encrypted_content':_0x4b5dba['encryptedContent']}:{},..._0x4b5dba[_0xb4c10a(-_0x36a0b8._0x55549e,-0x68,-0x75,-_0x36a0b8._0x95eaf7)][_0x4323eb(_0x36a0b8._0x3b81e8,_0x36a0b8._0x58e4e,_0x36a0b8._0x561b6a,0x23f)]>0x0?{'summary':Array['from'](_0x4b5dba['summaryByIndex'][_0xb4c10a(0x86,_0x36a0b8._0x21ea81,_0x36a0b8._0x24c8ce,0x90)]())[_0x4323eb(0x164,0x1fe,_0x36a0b8._0x4afdd8,_0x36a0b8._0x1c4e25)]((_0x4c0f5e,_0x1c5025)=>_0x4c0f5e[0x0]-_0x1c5025[0x0])[_0xb4c10a(_0x36a0b8._0x3c1804,_0x36a0b8._0x556795,_0x36a0b8._0x3b1070,_0x36a0b8._0x3c1804)](([,_0x24aace])=>{const _0x4df95f={_0x38b7af:0x84};function _0x1e7bf3(_0x2aac10,_0x2edd89,_0xdfd144,_0x40d6fd){return _0xb4c10a(_0xdfd144-0x5f7,_0x2edd89-_0x4df95f._0x38b7af,_0xdfd144-0x15c,_0x40d6fd);}return{'type':_0x1e7bf3(_0x95227b._0x2ebf76,_0x95227b._0x34280f,_0x95227b._0x54620f,0x6b4),'text':_0x24aace};})}:{},..._0x4b5dba[_0x4323eb(0x196,_0x36a0b8._0x459075,0x25e,0x254)][_0xb4c10a(_0x36a0b8._0x1c4c60,_0x36a0b8._0x42d66b,-_0x36a0b8._0x48b55b,0xf3)]>0x0?{'text':Array[_0xb4c10a(0x74,0xf9,0xfe,-0x5d)](_0x4b5dba[_0xb4c10a(0x8e,0x12e,_0x36a0b8._0x25fada,0x2c)]['entries']())[_0x4323eb(_0x36a0b8._0x208bb1,_0x36a0b8._0x165259,0xa6,0xad)]((_0x42ad00,_0x2dee1e)=>_0x42ad00[0x0]-_0x2dee1e[0x0])[_0x4323eb(_0x36a0b8._0x2785df,_0x36a0b8._0x2c899c,0x162,0x19b)](([,_0x252cb2])=>_0x252cb2)['join']('')}:{}}});}for(const _0x521128 of this[_0x4323eb(_0x36a0b8._0x182512,_0x36a0b8._0x109b96,_0x36a0b8._0x42508b,0x164)][_0xb4c10a(-_0x36a0b8._0xbc056c,0xc7,-0xa8,-_0x36a0b8._0x1ab88b)]()){_0xd7956e['push']({'index':this[_0x4323eb(0x4a,_0x36a0b8._0x2c3454,0x131,_0x36a0b8._0x34079c)][_0x4323eb(0x1eb,0x2b8,0x1c2,0x28d)](_0x521128['id'])??_0xd7956e[_0xb4c10a(0xc7,0x159,0xdc,_0x36a0b8._0x325f6b)],'item':{'type':'function_call','call_id':_0x521128['id'],'name':_0x521128['function']['name'],'arguments':_0x521128[_0x4323eb(0x47,0x79,_0x36a0b8._0xd52d66,-0x18)][_0xb4c10a(0x0,0x73,_0x36a0b8._0xbc056c,-_0x36a0b8._0x33d3a0)]}});}return _0xd7956e[_0xb4c10a(0x5c,-_0x36a0b8._0x122fdd,0xf0,_0x36a0b8._0x25525e)]((_0x587f9d,_0x498faf)=>_0x587f9d['index']-_0x498faf[_0xb4c10a(0x10,-0x4c,0x96,0x1b)])[_0x4323eb(0x1fa,_0x36a0b8._0x3626b6,_0x36a0b8._0xa2da5f,0x14e)](_0x55b8f5=>_0x55b8f5['item']);}[_0x1a8b4d(-0x178,-0x16f,-0x1e9,-0x12b)](_0x5a3d01,_0x3bfeec){const _0x5cbc93={_0x5abee2:0xd1,_0xa32e5c:0xf2,_0x4ce387:0x71,_0x5b3e4c:0xd6,_0x30521f:0xf0,_0x13d20d:0x106,_0x49cc94:0x105,_0x50b20a:0x1a,_0x407240:0xf,_0x14185a:0x32},_0x563db9={_0x33e4c0:0x3b,_0x54b1f5:0x1ce},_0x334d99={_0x451847:0x308,_0x2fd8c9:0x34},_0x536f9b=this[_0x2075dc(-0xac,-_0x5cbc93._0x5abee2,-_0x5cbc93._0xa32e5c,-_0x5cbc93._0x4ce387)]['get'](_0x5a3d01);if(_0x536f9b)return _0x3bfeec!==void 0x0&&(_0x536f9b[_0x2075dc(-0x105,-_0x5cbc93._0x5b3e4c,-0x26,-0x174)]=_0x3bfeec,this[_0x2075dc(_0x5cbc93._0x30521f,0x5e,0x4d,0xbd)]['set'](_0x3bfeec,_0x5a3d01)),_0x536f9b;const _0x2c6a0f={'id':_0x5a3d01,'outputIndex':_0x3bfeec,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x576718(-0x74,-_0x5cbc93._0x13d20d,-_0x5cbc93._0x49cc94,-0xb8)][_0x2075dc(0xac,-_0x5cbc93._0x50b20a,-_0x5cbc93._0x407240,0x2e)](_0x5a3d01,_0x2c6a0f);function _0x2075dc(_0x3114b8,_0x387958,_0x97ae0f,_0x4078a9){return _0x5a1062(_0x387958- -_0x334d99._0x451847,_0x3114b8,_0x97ae0f-0x1b9,_0x4078a9-_0x334d99._0x2fd8c9);}function _0x576718(_0x15a76d,_0x150e90,_0x3c9469,_0x4cefcb){return _0x1a8b4d(_0x3c9469,_0x4cefcb-_0x563db9._0x33e4c0,_0x3c9469-_0x563db9._0x54b1f5,_0x4cefcb-0x185);}return _0x3bfeec!==void 0x0&&this[_0x576718(0x8c,0x14a,-_0x5cbc93._0x14185a,0x77)]['set'](_0x3bfeec,_0x5a3d01),_0x2c6a0f;}};function createOpenAiResponsesStreamParser(_0x3c05c6){return new OpenAiResponsesStreamParser(_0x3c05c6);}function createOpenAiSurfaces(_0x4b5929={}){const _0x1b4c1a={_0x496aff:0x101,_0x1fc9e9:0xa4,_0x4c169b:0x92,_0x472d53:0x86,_0x40b2fb:0xb1,_0x3b05b1:0x166,_0x2ce6d3:0x98,_0x5a3dd7:0x88,_0x16c759:0x33,_0x3a9bdd:0xb7,_0x4b22ca:0xa7,_0x1be49d:0xe},_0x4cb65f={_0x1882b2:0x580,_0x3f9381:0x6d4,_0x34e93a:0x5fd},_0x17f731={_0x4137c5:0x6a1,_0x45889d:0x145},_0x4c7e89={_0x58089d:0x246,_0x6655a4:0x284},_0x188c88={_0x106437:0xe},_0x8b259b={_0x549ad3:0x400,_0x4c2004:0x492},_0x65c0c9={_0x45c98b:0x536,_0x5bad87:0x1bc},_0x5ff6b9={_0x389fef:0x69e},_0x431786={_0x445edd:0x6f,_0x48189e:0x1e5,_0x299a2e:0x7d},_0x593ec2={_0x1de3a9:0x197,_0x3b222b:0xc6},_0x32def1=_0x4b5929[_0x27d9f9(-_0x1b4c1a._0x496aff,-0x9b,-_0x1b4c1a._0x1fc9e9,0x43)]??_0x3c6949(-0x179,-_0x1b4c1a._0x4c169b,-_0x1b4c1a._0x472d53,-0x120);function _0x3c6949(_0x325d4e,_0x3881a0,_0x5a5ae0,_0x217907){return _0x5a1062(_0x3881a0- -0x33d,_0x325d4e,_0x5a5ae0-_0x593ec2._0x1de3a9,_0x217907-_0x593ec2._0x3b222b);}function _0x27d9f9(_0x399d9a,_0x4e75a5,_0x11d1e5,_0x4397fa){return _0x1a8b4d(_0x399d9a,_0x11d1e5-_0x431786._0x445edd,_0x11d1e5-_0x431786._0x48189e,_0x4397fa-_0x431786._0x299a2e);}const _0x3bc0d0=_0x4b5929[_0x27d9f9(0x3d,0x7c,_0x1b4c1a._0x40b2fb,0x141)]??_0x27d9f9(-0x15,_0x1b4c1a._0x3b05b1,_0x1b4c1a._0x2ce6d3,0x6);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x27d9f9(-_0x1b4c1a._0x5a3dd7,-_0x1b4c1a._0x16c759,-_0x1b4c1a._0x3a9bdd,-_0x1b4c1a._0x4b22ca),'createRequest'(_0x49b7b3){const _0x4f9d01={_0x2721b0:0xed,_0x19a2e5:0xf8};function _0x2fe502(_0x3e8ba0,_0x9368f7,_0x1a3510,_0x2d18a5){return _0x3c6949(_0x2d18a5,_0x9368f7-0x645,_0x1a3510-_0x4f9d01._0x2721b0,_0x2d18a5-_0x4f9d01._0x19a2e5);}return{'accept':_0x2fe502(_0x5ff6b9._0x389fef,0x61a,0x56a,0x547),'body':createChatRequestBody(_0x49b7b3,![]),'path':_0x32def1};},'parseResponse'(_0x5a86d2){return parseChatCompletionResponse(_0x5a86d2);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x4934a4){function _0xd92042(_0x10ebc4,_0x3ec0b8,_0x29f04f,_0x1ce431){return _0x3c6949(_0x3ec0b8,_0x1ce431-_0x65c0c9._0x45c98b,_0x29f04f-_0x65c0c9._0x5bad87,_0x1ce431-0x80);}return{'accept':_0xd92042(_0x8b259b._0x549ad3,0x48f,0x530,_0x8b259b._0x4c2004),'body':createChatRequestBody(_0x4934a4,!![]),'path':_0x32def1};},'createStreamParser'(_0x43d86a){return new OpenAiChatCompletionsStreamParser(_0x43d86a);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':'http-json','createRequest'(_0xec7852){function _0xaee8bc(_0x1ef9b4,_0x1444e1,_0x3907c9,_0x4ed2ce){return _0x27d9f9(_0x1444e1,_0x1444e1-_0x188c88._0x106437,_0x3907c9-0x22d,_0x4ed2ce-0x40);}return{'accept':_0xaee8bc(_0x4c7e89._0x58089d,0x21b,_0x4c7e89._0x6655a4,0x31c),'body':createResponsesRequestBody(_0xec7852,![]),'path':_0x3bc0d0};},'parseResponse'(_0x1ebefa,_0x1c8992){return parseResponsesResponse(_0x1ebefa,_0x1c8992);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x27d9f9(0x10e,0x178,0x95,-_0x1b4c1a._0x1be49d),'createRequest'(_0x2ce5c1){function _0x286dfc(_0x1c1b99,_0x4e773b,_0x4ff004,_0x86a340){return _0x3c6949(_0x4ff004,_0x86a340-_0x17f731._0x4137c5,_0x4ff004-_0x17f731._0x45889d,_0x86a340-0x13c);}return{'accept':_0x286dfc(0x544,_0x4cb65f._0x1882b2,_0x4cb65f._0x3f9381,_0x4cb65f._0x34e93a),'body':createResponsesRequestBody(_0x2ce5c1,!![]),'path':_0x3bc0d0};},'createStreamParser'(_0xc2703d){return new OpenAiResponsesStreamParser(_0xc2703d);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x3c6949(-0x108,-0x195,-0x1e3,-0x240),'createRequest'(_0x5ec6d4){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x5ec6d4),'path':_0x3bc0d0};},'createStreamParser'(_0x964f18){return createOpenAiResponsesStreamParser(_0x964f18);}}];}var OpenAiProviderAdapter=class{[_0x5a1062(0x242,0x166,0x247,0x243)];constructor(_0x21152d){const _0x225e4d={_0x5749c0:0x8b,_0x4bc21f:0x14,_0x11d55a:0x5f,_0x156899:0x147},_0x403b82={_0x5b370f:0x147,_0x16f054:0x4};function _0x2ede08(_0x171792,_0x3d64f6,_0x585f80,_0x5097c0){return _0x1a8b4d(_0x171792,_0x585f80-_0x403b82._0x5b370f,_0x585f80-_0x403b82._0x16f054,_0x5097c0-0x1f4);}this[_0x2ede08(-_0x225e4d._0x5749c0,-_0x225e4d._0x4bc21f,_0x225e4d._0x11d55a,_0x225e4d._0x156899)]=_0x21152d;}[_0x1a8b4d(-0x71,-0x144,-0x1f4,-0x1c4)](){const _0x37ec1e={_0x1a5cf0:0x2a,_0x10d1e2:0xce},_0x399e1e={_0x2edd5a:0x2a1};function _0x816204(_0x145761,_0x1382f3,_0x11fe80,_0x205501){return _0x5a1062(_0x145761- -_0x399e1e._0x2edd5a,_0x1382f3,_0x11fe80-0x164,_0x205501-0x193);}return new Error(_0x816204(-_0x37ec1e._0x1a5cf0,0x55,-_0x37ec1e._0x10d1e2,-0x83));}async['createHeaders'](_0x40ee0f,_0x4a4aeb){const _0x136028={_0x522f75:0x614,_0x148a37:0x666,_0xeacc86:0x2ea,_0x6208bb:0x660,_0x3de688:0x51d,_0x5ad833:0x431,_0x3082f8:0x598,_0x51f496:0x454,_0x300fa0:0x4f7,_0x35fb4d:0x3f4,_0x5721d7:0x583,_0xdedb02:0x5c9,_0x28f45b:0x580,_0x1e0294:0x5a9,_0x1f7ba4:0x50f,_0x57cfe3:0x467,_0x3ac091:0x479,_0x2656ac:0x526,_0x4739d9:0x3ae,_0x307ce5:0x427,_0x594773:0x39c,_0x37bc6c:0x3ab,_0x3755e7:0x536,_0x32264a:0x561,_0x2648fb:0x500,_0x2371da:0x437,_0xbc912e:0x2e8,_0x1a0234:0x5df,_0x22aa36:0x569,_0x59c30d:0x4a3,_0x3e6c3c:0x455,_0x96c9a5:0x3ff},_0x1bc10d={_0x98bba6:0x190},_0x1489ba={_0x3a045f:0x1a7};function _0x5e4cd7(_0x25698f,_0x111dbf,_0x35001d,_0x548d53){return _0x1a8b4d(_0x548d53,_0x111dbf-0x491,_0x35001d-0x11a,_0x548d53-_0x1489ba._0x3a045f);}const _0xfa8086=new Headers();_0xfa8086[_0x42647d(_0x136028._0x522f75,_0x136028._0x148a37,0x5a6,0x6ce)](_0x5e4cd7(_0x136028._0xeacc86,0x351,0x395,0x30d),_0x4a4aeb['accept']),_0xfa8086[_0x42647d(0x614,0x57e,_0x136028._0x6208bb,0x654)](_0x42647d(0x602,0x68d,0x685,0x5a3),_0x42647d(_0x136028._0x3de688,0x53c,0x46d,_0x136028._0x5ad833)+_0x40ee0f[_0x42647d(_0x136028._0x3082f8,0x4e1,0x65b,0x566)][_0x5e4cd7(0x4ff,_0x136028._0x51f496,_0x136028._0x300fa0,_0x136028._0x35fb4d)]);function _0x42647d(_0x149c77,_0x510cac,_0x622d4e,_0x55649d){return _0x1a8b4d(_0x55649d,_0x149c77-0x650,_0x622d4e-0x1e3,_0x55649d-_0x1bc10d._0x98bba6);}_0x4a4aeb[_0x42647d(_0x136028._0x5721d7,_0x136028._0xdedb02,_0x136028._0x28f45b,_0x136028._0x1e0294)]!==![]&&_0xfa8086[_0x5e4cd7(0x4a2,0x455,_0x136028._0x1f7ba4,0x535)](_0x5e4cd7(0x36f,0x332,0x2b9,0x364),_0x5e4cd7(_0x136028._0x57cfe3,_0x136028._0x3ac091,_0x136028._0x2656ac,0x3d8));const _0x30e9cf=await this[_0x5e4cd7(0x31f,0x3a9,_0x136028._0x4739d9,0x3f2)]?.({'body':_0x40ee0f[_0x5e4cd7(_0x136028._0x307ce5,_0x136028._0x594773,0x427,_0x136028._0x37bc6c)],'credential':_0x40ee0f['credential'],'request':_0x40ee0f[_0x42647d(_0x136028._0x3755e7,_0x136028._0x32264a,0x56a,_0x136028._0x2648fb)],'session':_0x40ee0f[_0x5e4cd7(0x2cf,0x369,_0x136028._0x2371da,_0x136028._0xbc912e)],'stream':_0x40ee0f[_0x5e4cd7(0x540,0x47a,0x463,0x522)]});for(const [_0x3d29f3,_0xae8e0c]of Object[_0x42647d(0x611,_0x136028._0x1a0234,0x6d7,_0x136028._0x22aa36)](_0x30e9cf??{})){_0xfa8086[_0x5e4cd7(_0x136028._0x59c30d,_0x136028._0x3e6c3c,_0x136028._0x96c9a5,0x475)](_0x3d29f3,_0xae8e0c);}return _0xfa8086;}[_0x5a1062(0x2a7,0x38d,0x2df,0x376)](_0x48493e){return _0x48493e;}[_0x5a1062(0x271,0x2e2,0x1b4,0x2eb)](_0x2e0def,_0x52ce1d){return resolveSessionBaseUrl(_0x2e0def,_0x52ce1d);}[_0x5a1062(0x253,0x32a,0x1ee,0x257)](_0x3b17ba,_0x2c105f){return resolveApiCredential(_0x3b17ba,_0x2c105f);}async['toApiError'](_0x22be67){return await createOpenAiApiError(_0x22be67);}},OpenAiModel=class extends RoutedModel{[_0x5a1062(0x1b2,0x134,0x113,0x229)]=new Map();[_0x1a8b4d(-0x103,-0x113,-0x165,-0x29)];['responsesPath'];constructor(_0x1f42e4={}){const _0x371e42={_0x243f9a:0x1c7,_0x4e8a61:0x12a,_0x1eddfc:0x136,_0x3da7df:0x150,_0x10ac98:0x743,_0x286d7f:0x663,_0x49be83:0x658,_0x51465c:0x227,_0x43c022:0x388,_0x54bbaa:0x2f6,_0x405bcd:0x723,_0xd0d84e:0x6c9,_0x4d0176:0x801,_0xfb2d8d:0x740,_0xea86ae:0x7ae,_0x5b2e95:0x376,_0x48c7e7:0x2ca,_0x1b9032:0x361,_0x16c461:0x39c,_0x2224cb:0x30c,_0x1bd34a:0x3aa,_0x1a1254:0x531,_0xf1fba0:0x687,_0x175894:0x661,_0x3af30d:0x294,_0x1b0361:0x358,_0xcc73d3:0x1cb,_0x22a3b8:0x23a,_0xcd6547:0x29b,_0x379f5c:0x2de,_0x17be3b:0x388,_0xaefd8b:0x371},_0x560ece={_0x7e1d9a:0x3d0,_0x1553c0:0xa5},_0x511078={_0x1f3ec1:0x1c,_0x6f44e9:0x10f},_0x492c7a=_0x1f42e4['model']??_0x378cf3(_0x371e42._0x243f9a,_0x371e42._0x4e8a61,_0x371e42._0x1eddfc,_0x371e42._0x3da7df),_0x2368bf=_0x1f42e4[_0x1487da(_0x371e42._0x10ac98,_0x371e42._0x286d7f,_0x371e42._0x49be83,0x599)]??getDefaultMaxTokens();function _0x378cf3(_0x543785,_0x3fefc8,_0x4f2ce5,_0x3b5fe5){return _0x5a1062(_0x543785-_0x511078._0x1f3ec1,_0x3fefc8,_0x4f2ce5-0x1cb,_0x3b5fe5-_0x511078._0x6f44e9);}function _0x1487da(_0x287616,_0x8325a6,_0x4653c5,_0x4f7e3a){return _0x5a1062(_0x8325a6-_0x560ece._0x7e1d9a,_0x4653c5,_0x4653c5-0xee,_0x4f7e3a-_0x560ece._0x1553c0);}const _0x2fa3bf=_0x1f42e4[_0x1487da(0x651,0x5e7,0x5e1,0x60a)]??_0x378cf3(0x2c7,0x2c8,_0x371e42._0x51465c,0x2f9),_0x467339=_0x1f42e4[_0x378cf3(_0x371e42._0x43c022,_0x371e42._0x54bbaa,0x31c,0x333)]??_0x1487da(0x76d,_0x371e42._0x405bcd,0x68c,_0x371e42._0xd0d84e);super({'apiKey':_0x1f42e4[_0x1487da(_0x371e42._0x4d0176,_0x371e42._0xfb2d8d,0x661,_0x371e42._0xea86ae)],'baseUrl':trimTrailingSlashes(_0x1f42e4[_0x378cf3(_0x371e42._0x5b2e95,_0x371e42._0x48c7e7,_0x371e42._0x1b9032,_0x371e42._0x16c461)]??'https://api.openai.com/v1'),'fetch':_0x1f42e4[_0x378cf3(_0x371e42._0x2224cb,_0x371e42._0x1bd34a,0x248,0x26d)],'maxTokens':_0x2368bf,'model':_0x492c7a,'reasoning':_0x1f42e4['reasoning'],'providerAdapter':new OpenAiProviderAdapter(_0x1f42e4[_0x1487da(_0x371e42._0x1a1254,0x612,_0x371e42._0xf1fba0,_0x371e42._0x175894)]),'providerSessionResolver':_0x1f42e4[_0x378cf3(0x310,_0x371e42._0x3af30d,_0x371e42._0x1b0361,0x2ba)],'requestMutators':_0x1f42e4[_0x378cf3(0x1d0,0x240,_0x371e42._0xcc73d3,_0x371e42._0x22a3b8)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x1f42e4['sessionManager'],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x2fa3bf,'responsesPath':_0x467339}),'webSocketFactory':_0x1f42e4[_0x378cf3(_0x371e42._0xcd6547,0x2e7,0x283,_0x371e42._0x379f5c)]}),this[_0x1487da(0x63c,0x5e7,0x619,0x578)]=_0x2fa3bf,this[_0x378cf3(_0x371e42._0x17be3b,0x3af,_0x371e42._0xaefd8b,0x431)]=_0x467339;}[_0x5a1062(0x1b6,0x257,0xd8,0x125)](_0x55724b,_0x2c1acc){return this['completeViaSurface'](_0x55724b,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x2c1acc);}[_0x5a1062(0x1a3,0x1af,0x252,0xc8)](_0x25c706,_0x8c846b){return this['completeViaSurface'](_0x25c706,OPENAI_RESPONSES_SURFACE,_0x8c846b);}[_0x5a1062(0x2fe,0x31e,0x357,0x2e5)](_0x530144,_0x3b25a1){const _0x2cc375={_0x563af8:0x2b3},_0x1ff111={_0x2acc22:0x11};function _0x240b95(_0x2ae1b0,_0x3fa075,_0x19d402,_0x5d6198){return _0x1a8b4d(_0x3fa075,_0x19d402-0x1b1,_0x19d402-_0x1ff111._0x2acc22,_0x5d6198-0x28);}return this[_0x240b95(0x13b,0x1ec,0x1fb,_0x2cc375._0x563af8)](_0x530144,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x3b25a1);}[_0x1a8b4d(-0x95,-0x80,-0x14,-0x73)](_0x7b5c4b,_0x42c263){const _0x9a764d={_0x9fcbf0:0x159,_0x4592db:0x5e,_0x59afa5:0x97},_0x5c09ca={_0x3628ad:0x1ee,_0x5a7e5c:0xf9,_0x3c28ca:0x37};function _0x37033d(_0x219cf7,_0xc7a5b6,_0x38c4db,_0x2549b2){return _0x5a1062(_0x2549b2- -_0x5c09ca._0x3628ad,_0x219cf7,_0x38c4db-_0x5c09ca._0x5a7e5c,_0x2549b2-_0x5c09ca._0x3c28ca);}return this[_0x37033d(_0x9a764d._0x9fcbf0,_0x9a764d._0x4592db,_0x9a764d._0x59afa5,0x12e)](_0x7b5c4b,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x42c263);}['streamViaResponsesSurface'](_0x2e0baf,_0x37c66d){const _0x412f25={_0x4c5632:0x4bd,_0x4605d3:0x56c},_0x3cf6b2={_0x2e9e4f:0x4cb,_0x50e38c:0x3a,_0x56d848:0x1b2};function _0x3b6d02(_0x1a59e2,_0x48b3b6,_0xf4b765,_0x4687f9){return _0x1a8b4d(_0xf4b765,_0x1a59e2-_0x3cf6b2._0x2e9e4f,_0xf4b765-_0x3cf6b2._0x50e38c,_0x4687f9-_0x3cf6b2._0x56d848);}return this[_0x3b6d02(_0x412f25._0x4c5632,0x4c0,_0x412f25._0x4605d3,0x4b8)](_0x2e0baf,OPENAI_RESPONSES_STREAM_SURFACE,_0x37c66d);}['streamViaResponsesWebSocketSurface'](_0xd902d3,_0x5b0010){const _0x40b0c6={_0x5a39f9:0x44},_0x13a399={_0x1c35a5:0x2d8};function _0x1e8189(_0xcb696f,_0x410724,_0x168ca0,_0x3b8d44){return _0x5a1062(_0x410724- -_0x13a399._0x1c35a5,_0xcb696f,_0x168ca0-0x87,_0x3b8d44-0x4);}return this[_0x1e8189(0x2b,_0x40b0c6._0x5a39f9,-0x98,-0x4a)](_0xd902d3,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x5b0010);}async['chatComplete'](_0x35ef73,_0x233591){const _0x2da5aa={_0x56b323:0x355,_0x4dc080:0x247,_0x48e966:0x27a,_0x37dea6:0x6dc,_0x14f6ba:0x55c},_0x187988={_0x5d384d:0x41c,_0x187789:0x127};function _0x122eb0(_0x3494fd,_0xee609a,_0x245c28,_0x5ae5cd){return _0x1a8b4d(_0xee609a,_0x5ae5cd-0x68e,_0x245c28-0x90,_0x5ae5cd-0x8a);}function _0x299809(_0x4877bc,_0x3fb930,_0x3b4bd7,_0x2077e6){return _0x1a8b4d(_0x3b4bd7,_0x3fb930-_0x187988._0x5d384d,_0x3b4bd7-0x1d9,_0x2077e6-_0x187988._0x187789);}try{return await this[_0x299809(_0x2da5aa._0x56b323,0x2a8,_0x2da5aa._0x4dc080,_0x2da5aa._0x48e966)](_0x35ef73,_0x233591);}catch(_0x116489){if(_0x116489 instanceof OpenAiApiError)throw this[_0x122eb0(_0x2da5aa._0x37dea6,0x564,_0x2da5aa._0x14f6ba,0x60b)](_0x116489);throw _0x116489;}}async[_0x1a8b4d(0x58,0x4f,0x0,0x3)](_0x7105ca,_0x201bf2){const _0x194c1d={_0x1628e6:0x129,_0x49376a:0x19,_0x1f571a:0x9e},_0x2fff7f={_0x469342:0x225,_0x23f6ea:0x5},_0x2230da={_0xa4defc:0x183};function _0x2e1f25(_0xa41618,_0x1fb158,_0x4e42e0,_0x5cb7e3){return _0x5a1062(_0x4e42e0-0x19f,_0xa41618,_0x4e42e0-0x160,_0x5cb7e3-_0x2230da._0xa4defc);}function _0x469067(_0x4d1a58,_0x4c90d6,_0x4c8f56,_0x59dfdb){return _0x1a8b4d(_0x4d1a58,_0x59dfdb-_0x2fff7f._0x469342,_0x4c8f56-0x106,_0x59dfdb-_0x2fff7f._0x23f6ea);}try{return await this[_0x469067(_0x194c1d._0x1628e6,0xae,_0x194c1d._0x49376a,_0x194c1d._0x1f571a)](_0x7105ca,_0x201bf2);}catch(_0x161701){if(_0x161701 instanceof OpenAiApiError)throw this[_0x469067(0x26c,0x27d,0x15a,0x1a2)](_0x161701);throw _0x161701;}}async['responseSocket'](_0x4f742f,_0x1bb1a1){const _0x58510f={_0x406e75:0x343,_0x315c7f:0x338,_0x3bc905:0x359,_0x512c18:0x2a7,_0x2ee8ed:0x1dc,_0x1f99d1:0x355,_0x3ff8ff:0x3c7,_0x3cfd02:0x342,_0x4f96cc:0x35c,_0x31f90e:0x430,_0x4d8e6c:0x3bc},_0x4f4dfb={_0x2433e8:0x4b3,_0x2d908a:0x81},_0x13ac2d={_0x331e01:0x4e,_0x1176f4:0x17c,_0x1c11a2:0x143};function _0x5ddfc6(_0x4c61a3,_0x5969db,_0x5e5149,_0x1e1add){return _0x5a1062(_0x4c61a3-_0x13ac2d._0x331e01,_0x5e5149,_0x5e5149-_0x13ac2d._0x1176f4,_0x1e1add-_0x13ac2d._0x1c11a2);}function _0x5c15de(_0x4ce1fc,_0x38c02b,_0x450c28,_0x50f12f){return _0x1a8b4d(_0x450c28,_0x38c02b-_0x4f4dfb._0x2433e8,_0x450c28-_0x4f4dfb._0x2d908a,_0x50f12f-0x190);}try{let _0x587e77;for await(const _0x1df427 of this[_0x5ddfc6(_0x58510f._0x406e75,_0x58510f._0x315c7f,0x303,_0x58510f._0x3bc905)](_0x4f742f,_0x1bb1a1)){_0x1df427['type']===_0x5ddfc6(_0x58510f._0x512c18,_0x58510f._0x2ee8ed,0x255,_0x58510f._0x1f99d1)&&(_0x587e77=_0x1df427[_0x5ddfc6(_0x58510f._0x3ff8ff,0x480,0x450,_0x58510f._0x3cfd02)]);}if(!_0x587e77)throw new Error(_0x5c15de(0x3f8,0x3c4,0x3bb,0x3ac));return _0x587e77;}catch(_0x45f985){if(_0x45f985 instanceof OpenAiApiError)throw this[_0x5c15de(_0x58510f._0x4f96cc,_0x58510f._0x31f90e,0x4bf,_0x58510f._0x4d8e6c)](_0x45f985);throw _0x45f985;}}async*[_0x1a8b4d(-0x93,-0x161,-0x210,-0x16d)](_0x5922ca,_0x55a5eb){const _0x368e28={_0x5d49f3:0x40,_0x12b1a1:0x20,_0x5b73ec:0x692,_0x1b0d3f:0x637},_0x431222={_0x26c5c4:0x188},_0x524945={_0x3f6246:0x186,_0x5168b8:0x104};function _0x3bb5fe(_0x35a2b9,_0x188a18,_0x41ec6d,_0x353bb9){return _0x1a8b4d(_0x188a18,_0x41ec6d-0x116,_0x41ec6d-_0x524945._0x3f6246,_0x353bb9-_0x524945._0x5168b8);}function _0x5c76b8(_0x228be0,_0x5c3821,_0xb0a8e2,_0x328d6f){return _0x5a1062(_0x328d6f-0x390,_0x228be0,_0xb0a8e2-0x116,_0x328d6f-_0x431222._0x26c5c4);}try{yield*this[_0x3bb5fe(_0x368e28._0x5d49f3,-_0x368e28._0x12b1a1,0x96,0x18)](_0x5922ca,_0x55a5eb);}catch(_0x338f92){if(_0x338f92 instanceof OpenAiApiError)throw this[_0x5c76b8(0x5a5,_0x368e28._0x5b73ec,0x5a6,_0x368e28._0x1b0d3f)](_0x338f92);throw _0x338f92;}}async*['responseStream'](_0x1a4fea,_0x547875){const _0x4c653f={_0xc5eebc:0x305},_0x4b80c1={_0x29fb70:0x51,_0x35a8ad:0x90};function _0x15e8e8(_0x10c2c5,_0x17d978,_0x5f31a2,_0x328b9a){return _0x5a1062(_0x17d978- -_0x4b80c1._0x29fb70,_0x10c2c5,_0x5f31a2-_0x4b80c1._0x35a8ad,_0x328b9a-0xae);}try{yield*this[_0x15e8e8(0x37e,0x2bd,0x30f,_0x4c653f._0xc5eebc)](_0x1a4fea,_0x547875);}catch(_0x3697b8){if(_0x3697b8 instanceof OpenAiApiError)throw this['mapApiError'](_0x3697b8);throw _0x3697b8;}}async*[_0x5a1062(0x2f5,0x2cf,0x2d4,0x3a6)](_0xe1e6b4,_0x50821c){const _0x112bf0={_0x288fdc:0x12b,_0x3b14f4:0x1b,_0x38b91c:0x42},_0x1f66c7={_0x126c17:0x16c,_0x4e1e8b:0xc};function _0x236500(_0x1f81f4,_0x59b660,_0x17ed21,_0x1b30c5){return _0x1a8b4d(_0x59b660,_0x17ed21-0x16,_0x17ed21-_0x1f66c7._0x126c17,_0x1b30c5-_0x1f66c7._0x4e1e8b);}try{yield*this['streamViaPersistentResponsesSocket'](_0xe1e6b4,_0x50821c);}catch(_0x2640ac){if(_0x2640ac instanceof OpenAiApiError)throw this[_0x236500(-_0x112bf0._0x288fdc,-_0x112bf0._0x3b14f4,-0x6d,_0x112bf0._0x38b91c)](_0x2640ac);throw _0x2640ac;}}['complete'](_0x2c088f,_0x3ec1b8){return this['chatComplete'](_0x2c088f,_0x3ec1b8);}['stream'](_0x30c535,_0x44d948){const _0x403d9f={_0x32c5e1:0xa5,_0x408a27:0x7f,_0x2f53aa:0x3f},_0x2e7a8b={_0x5ae7fd:0x198};function _0x379530(_0x276ea7,_0x4ac0b9,_0x47084e,_0x3d0507){return _0x1a8b4d(_0x276ea7,_0x47084e-_0x2e7a8b._0x5ae7fd,_0x47084e-0x72,_0x3d0507-0xc9);}return this[_0x379530(-_0x403d9f._0x32c5e1,_0x403d9f._0x408a27,0x37,_0x403d9f._0x2f53aa)](_0x30c535,_0x44d948);}[_0x5a1062(0x1ec,0x23e,0x232,0x15c)](_0x16644d){const _0x2f4bdb={_0x3a2449:0x64b,_0x4f0863:0x56c,_0x332495:0x27f,_0x5a0d5e:0x6c2,_0x8ea3d5:0x67d,_0xa02793:0x52c,_0x9006ec:0x449,_0x1616c5:0x3ce,_0x303219:0x380},_0x521566={_0x28a6cb:0x6a4},_0xebeb90={_0x2e1651:0x1c,_0x35f819:0x18},_0x1f03c0=this[_0x4877e6(0x5ca,_0x2f4bdb._0x3a2449,0x6b4,_0x2f4bdb._0x4f0863)](_0x16644d);let _0x3ce676=this[_0x25f175(0x1e4,0x1b8,_0x2f4bdb._0x332495,0x161)][_0x4877e6(_0x2f4bdb._0x5a0d5e,0x72c,_0x2f4bdb._0x8ea3d5,0x62e)](_0x1f03c0);function _0x25f175(_0xa2cc17,_0x34e401,_0x4492b2,_0x1272e6){return _0x5a1062(_0xa2cc17-0x32,_0x4492b2,_0x4492b2-_0xebeb90._0x2e1651,_0x1272e6-_0xebeb90._0x35f819);}!_0x3ce676&&(_0x3ce676={'key':_0x1f03c0,'locked':![],'pending':Promise[_0x4877e6(0x6dd,0x6bc,0x603,0x73c)]()},this[_0x4877e6(_0x2f4bdb._0xa02793,0x5c5,_0x2f4bdb._0x9006ec,0x478)][_0x25f175(0x320,0x314,_0x2f4bdb._0x1616c5,_0x2f4bdb._0x303219)](_0x1f03c0,_0x3ce676));function _0x4877e6(_0x23abd1,_0x1531b5,_0x252aff,_0x3a47ab){return _0x1a8b4d(_0x252aff,_0x23abd1-_0x521566._0x28a6cb,_0x252aff-0xba,_0x3a47ab-0x6d);}return _0x3ce676;}['maybeEvictResponsesSocketSession'](_0x4b6b57){const _0x2fc06c={_0x5074c1:0x14a,_0x52980b:0x1c7,_0x20a0a8:0x2c2,_0x49547f:0x1f3,_0x11ee83:0x1a1,_0xe1d4f3:0x241,_0x1bbdca:0x3ab,_0x5d4bd8:0x3d6,_0xcc946a:0x2c2,_0x1bbd97:0x33c,_0x55af91:0x26c},_0x5205e1={_0x55aaec:0x13c,_0x534735:0x112},_0x3b4f4d={_0x14b6c9:0x8f};function _0x787cb4(_0x17ce3f,_0xce033f,_0x14076b,_0x38f9fd){return _0x5a1062(_0xce033f-_0x3b4f4d._0x14b6c9,_0x14076b,_0x14076b-0x19a,_0x38f9fd-0x1da);}function _0xe374bf(_0x59822a,_0x3a24d0,_0x5319f3,_0x4f30ed){return _0x5a1062(_0x59822a- -0x1d7,_0x5319f3,_0x5319f3-_0x5205e1._0x55aaec,_0x4f30ed-_0x5205e1._0x534735);}if(_0x4b6b57['locked']||_0x4b6b57[_0x787cb4(0x200,0x231,_0x2fc06c._0x5074c1,_0x2fc06c._0x52980b)]||_0x4b6b57[_0x787cb4(0x336,0x2d2,0x25d,0x2f0)])return;this['responsesSocketSessions']['get'](_0x4b6b57[_0x787cb4(0x251,_0x2fc06c._0x20a0a8,_0x2fc06c._0x49547f,0x392)])===_0x4b6b57&&this[_0x787cb4(_0x2fc06c._0x11ee83,_0x2fc06c._0xe1d4f3,0x260,0x199)][_0x787cb4(_0x2fc06c._0x1bbdca,0x2fb,_0x2fc06c._0x5d4bd8,0x35b)](_0x4b6b57[_0x787cb4(0x2b4,_0x2fc06c._0xcc946a,_0x2fc06c._0x1bbd97,_0x2fc06c._0x55af91)]);}[_0x5a1062(0x250,0x213,0x2e5,0x201)](_0x5ce595){const _0x4141be={_0x5c35ac:0x9,_0x3d56ea:0x183};function _0x1e3f47(_0x1f4a39,_0x41d796,_0x57d579,_0x572482){return _0x5a1062(_0x41d796- -_0x4141be._0x5c35ac,_0x1f4a39,_0x57d579-0x67,_0x572482-_0x4141be._0x3d56ea);}return''+trimTrailingSlashes(this[_0x1e3f47(0x424,0x351,0x348,0x2d7)])+this['responsesPath']+'::'+_0x5ce595;}async[_0x1a8b4d(0x16,0x9,-0x5,-0x7)](_0x702ce7){const _0x17a8ce={_0x445aa8:0x327,_0x3eebc0:0x302,_0x41c3bf:0x345,_0x585161:0x447,_0x3745cf:0x3a3,_0x1da706:0x374,_0x50d687:0x2f4,_0x394b1d:0x2b4,_0x1a095d:0x3bd},_0x439699={_0x318037:0xdf,_0x35725f:0x130},_0x4dee67={_0x5f07aa:0x7c,_0x747c16:0x24},_0x5b3494={_0x290e10:0x1ea,_0x464c61:0x1a8},_0x286116={_0x1b9f0d:0x22,_0x549fa7:0xc9,_0x1a3c69:0x6c};function _0x243f2b(_0x3663cb,_0x5461c3,_0x260968,_0x3fd67e){return _0x5a1062(_0x260968-_0x286116._0x1b9f0d,_0x3663cb,_0x260968-_0x286116._0x549fa7,_0x3fd67e-_0x286116._0x1a3c69);}const _0x14d51a=_0x702ce7[_0x58e2b4(0x3af,0x377,_0x17a8ce._0x445aa8,0x45a)][_0x243f2b(_0x17a8ce._0x3eebc0,_0x17a8ce._0x41c3bf,0x2a5,0x2c7)](()=>{});let _0xac3117;const _0x2d5455=new Promise(_0x18f785=>{_0xac3117=_0x18f785;});function _0x58e2b4(_0x45265a,_0x141137,_0x2d5029,_0x3bb95b){return _0x5a1062(_0x141137-0x25,_0x45265a,_0x2d5029-_0x5b3494._0x290e10,_0x3bb95b-_0x5b3494._0x464c61);}return _0x702ce7[_0x243f2b(_0x17a8ce._0x585161,_0x17a8ce._0x3745cf,_0x17a8ce._0x1da706,_0x17a8ce._0x50d687)]=_0x14d51a[_0x58e2b4(0x2f6,0x31c,_0x17a8ce._0x394b1d,_0x17a8ce._0x1a095d)](()=>_0x2d5455),await _0x14d51a,_0x702ce7['locked']=!![],()=>{_0x702ce7[_0x1c5bc2(-_0x439699._0x318037,0xb,-_0x439699._0x35725f,-0x71)]=![];function _0x1c5bc2(_0x7ce79,_0x3e4c66,_0x102ddf,_0x52132f){return _0x58e2b4(_0x7ce79,_0x52132f- -0x331,_0x102ddf-_0x4dee67._0x5f07aa,_0x52132f-_0x4dee67._0x747c16);}_0xac3117?.(),this['maybeEvictResponsesSocketSession'](_0x702ce7);};}async['prepareResponsesSocketRequest'](_0x2c6483,_0x1308de){const _0x9e1d3c={_0x1b053f:0x88,_0x2160b3:0xe7,_0xb7b78f:0x1c2,_0x474288:0x167,_0x132698:0x11b,_0x13e4c0:0x3a,_0x216204:0x50,_0x6ce7f:0x82,_0xb649c0:0x12,_0x29bb30:0x2e,_0x5f5a70:0xbc,_0x3ce45f:0x1b8,_0xac4c2f:0x161,_0x4c0216:0xca,_0x43c864:0x143,_0x75d5d3:0x10d,_0x453e14:0x95,_0x1a0f5f:0xd,_0x37d185:0x44,_0x4bc271:0x29,_0x2470d0:0x44,_0x404512:0x19f,_0x3bf3d1:0x1b0,_0x309e8f:0x112,_0x3228e8:0x14b,_0x43d124:0xc5,_0x151be6:0xd},_0x327ed2={_0x55e949:0x4d},_0x261a02={_0x50473d:0x20f,_0x499d37:0xad},_0x151d62=this[_0x1a9ba0(_0x9e1d3c._0x1b053f,0x6d,0x34,_0x9e1d3c._0x2160b3)](_0x2c6483),_0x1e6801=toModelRequest(_0x151d62);function _0x1a9ba0(_0x2ac673,_0xa5183e,_0xb95cac,_0x5e518f){return _0x5a1062(_0x5e518f- -_0x261a02._0x50473d,_0xa5183e,_0xb95cac-_0x261a02._0x499d37,_0x5e518f-0x87);}const _0x18e1f5=await prepareProviderRequest(_0x1e6801,{'sessionManager':this[_0x1a9ba0(0x5d,_0x9e1d3c._0xb7b78f,_0x9e1d3c._0x474288,_0x9e1d3c._0x132698)],'requestMutators':this['requestMutators'],'signal':_0x1308de}),_0x95ddc1=toChatRequest(_0x18e1f5[_0x1a9ba0(_0x9e1d3c._0x13e4c0,-0xb5,_0x9e1d3c._0x216204,0x1)]);function _0x24462f(_0xdece07,_0x4dd4c9,_0x148774,_0x55811b){return _0x1a8b4d(_0x148774,_0x55811b-0x1b,_0x148774-0x1f0,_0x55811b-_0x327ed2._0x55e949);}const _0x15614b=this[_0x1a9ba0(-0xc6,_0x9e1d3c._0x6ce7f,0x50,-_0x9e1d3c._0xb649c0)][_0x24462f(-0x17e,_0x9e1d3c._0x29bb30,-0x105,-_0x9e1d3c._0x5f5a70)](this[_0x1a9ba0(_0x9e1d3c._0x3ce45f,0x86,0x1fa,_0x9e1d3c._0xac4c2f)],_0x18e1f5[_0x24462f(-_0x9e1d3c._0x4c0216,-0x199,-_0x9e1d3c._0x43c864,-_0x9e1d3c._0x75d5d3)]);if(!_0x15614b)throw this[_0x1a9ba0(_0x9e1d3c._0x453e14,_0x9e1d3c._0x1a0f5f,_0x9e1d3c._0x37d185,-_0x9e1d3c._0x4bc271)]();return{'baseUrl':this[_0x24462f(-_0x9e1d3c._0x2470d0,-_0x9e1d3c._0x404512,-_0x9e1d3c._0x3bf3d1,-_0x9e1d3c._0x309e8f)]['resolveBaseUrl'](this[_0x1a9ba0(0x8c,0xc3,0x199,_0x9e1d3c._0x3228e8)],_0x18e1f5[_0x1a9ba0(-_0x9e1d3c._0x43d124,0x51,-0x50,-_0x9e1d3c._0x151be6)]),'credential':_0x15614b,'request':_0x95ddc1,'session':_0x18e1f5['session']};}[_0x1a8b4d(-0x19e,-0x13b,-0x5f,-0x11b)](_0xb5378,_0x42e8ac,_0x4598ea={}){const _0x454bb4={_0x1570c0:0xd2,_0x2d15e4:0x1c,_0x546278:0x3f3,_0x57bc73:0xeb,_0x5b0649:0x53,_0x6196da:0x39c,_0x5e2fe3:0x40b,_0x8607ac:0x4de,_0x31b532:0x3c1,_0x58e56d:0x343,_0xedfe92:0x449,_0x2c582e:0x34d,_0x5bf95e:0x353,_0x25d25c:0x3f3},_0x523d70={_0x426f9e:0xe9,_0x2840a2:0x84};function _0x42bfb5(_0x1d77c7,_0x5904a8,_0x44196c,_0x4c2776){return _0x5a1062(_0x44196c-_0x523d70._0x426f9e,_0x5904a8,_0x44196c-0x63,_0x4c2776-_0x523d70._0x2840a2);}if(!_0x4598ea[_0x91d8ee(0x19f,0x1c9,0x197,0x153)]){const _0x32d319=this[_0x91d8ee(_0x454bb4._0x1570c0,-0xdf,-_0x454bb4._0x2d15e4,-0x6)](_0xb5378);if(_0x32d319&&_0x42e8ac['lastResponseId']&&_0x32d319[_0x42bfb5(0x364,0x4cd,_0x454bb4._0x546278,0x447)]===_0x42e8ac[_0x91d8ee(0x1c8,0xea,_0x454bb4._0x57bc73,_0x454bb4._0x5b0649)]){const _0x25b1ac=toOpenAiResponsesRequest({..._0xb5378,'messages':_0xb5378['messages'][_0x42bfb5(_0x454bb4._0x6196da,_0x454bb4._0x5e2fe3,0x434,_0x454bb4._0x8607ac)](_0x32d319[_0x42bfb5(0x3cd,0x322,_0x454bb4._0x31b532,0x35f)]+0x1)})[_0x42bfb5(0x40a,_0x454bb4._0x58e56d,0x39c,_0x454bb4._0xedfe92)];return{'event':createOpenAiResponsesWebSocketEvent(_0xb5378,{'input':_0x25b1ac,'previousResponseId':_0x32d319[_0x42bfb5(_0x454bb4._0x2c582e,_0x454bb4._0x5bf95e,_0x454bb4._0x25d25c,0x329)]}),'previousResponseId':_0x32d319['responseId']};}}function _0x91d8ee(_0x3cf7bc,_0x12f77c,_0x4c76da,_0x58d307){return _0x1a8b4d(_0x58d307,_0x4c76da-0x147,_0x4c76da-0x14f,_0x58d307-0x75);}return{'event':createOpenAiResponsesWebSocketEvent(_0xb5378)};}[_0x1a8b4d(-0x98,-0x163,-0x19f,-0x217)](_0x31d006){const _0x4a2576={_0x1bd2f6:0x1f,_0xe6c596:0x62a,_0x4996a3:0x4cd,_0x329825:0x497,_0x4ed222:0x4f7,_0x3c8289:0x17,_0x9b407c:0xc1},_0x49ca8a={_0x2c6b24:0xa3},_0x1c25af={_0x2ed2c5:0xbd,_0x37a0d9:0x166};for(let _0x28e743=_0x31d006[_0x3c7000(0x2d,-0x4e,-0xce,_0x4a2576._0x1bd2f6)][_0x4c3625(_0x4a2576._0xe6c596,0x5b7,0x5b1,_0x4a2576._0x4996a3)]-0x1;_0x28e743>=0x0;_0x28e743-=0x1){const _0x312838=_0x31d006['messages'][_0x28e743],_0x4bef04=_0x312838[_0x4c3625(0x4f7,0x556,_0x4a2576._0x329825,_0x4a2576._0x4ed222)]===_0x3c7000(0x1c5,0xea,0x196,0xdf)?_0x312838['providerState']?.[_0x3c7000(-_0x4a2576._0x3c8289,-_0x4a2576._0x9b407c,-0xa1,0x10)]:void 0x0;if(_0x4bef04)return{'messageIndex':_0x28e743,'responseId':_0x4bef04};}function _0x3c7000(_0x31fff7,_0x2c5507,_0x5ab6d0,_0x25b361){return _0x1a8b4d(_0x31fff7,_0x25b361-_0x1c25af._0x2ed2c5,_0x5ab6d0-_0x1c25af._0x37a0d9,_0x25b361-0x190);}function _0x4c3625(_0x199fcb,_0x2fc931,_0x5965ec,_0x57e90c){return _0x1a8b4d(_0x57e90c,_0x5965ec-0x5af,_0x5965ec-_0x49ca8a._0x2c6b24,_0x57e90c-0x139);}return void 0x0;}[_0x5a1062(0x2cc,0x33b,0x25b,0x28d)](_0x196a7e){const _0x316d61={_0x5b5a4e:0x5,_0x56b523:0x8a,_0x5c0baa:0x16c,_0x1308cc:0x20c,_0x5041f1:0x19d,_0x26a447:0x64,_0x29a988:0xc4},_0x268d67={_0x938a77:0x48},_0x4b8a53={_0x42cf53:0x80,_0x1719b9:0xca};function _0x2a9bdb(_0x3bc541,_0x2c5c76,_0x5230a5,_0x29c7e6){return _0x5a1062(_0x3bc541-0x1c4,_0x2c5c76,_0x5230a5-_0x4b8a53._0x42cf53,_0x29c7e6-_0x4b8a53._0x1719b9);}function _0x4bc76e(_0x452140,_0x3669b5,_0x589523,_0x3f4286){return _0x5a1062(_0x589523- -0x167,_0x452140,_0x589523-_0x268d67._0x938a77,_0x3f4286-0x116);}return _0x196a7e instanceof ProviderStreamEventError&&(_0x196a7e[_0x4bc76e(-_0x316d61._0x5b5a4e,0x69,_0x316d61._0x56b523,0x163)]===_0x4bc76e(0x17a,_0x316d61._0x5c0baa,_0x316d61._0x1308cc,_0x316d61._0x5041f1)||_0x196a7e[_0x4bc76e(-0x4d,_0x316d61._0x26a447,0x8a,0x136)]===_0x4bc76e(0xdb,0xa9,_0x316d61._0x29a988,0x150));}['invalidateResponsesSocketSession'](_0x1dc896){const _0x170d11={_0x16ae28:0x1f0,_0x27910b:0x205,_0x4b7798:0x11f,_0x4f85fb:0x466,_0x503364:0x4a3,_0xacbf14:0x244,_0x45a80a:0x158,_0x371e34:0x30b,_0x14ca4d:0x2a8,_0x555a40:0x578,_0x464bf6:0x5a8,_0x452f43:0x497,_0x18e00c:0x53b,_0x24b48c:0x54c,_0x2d050f:0x548,_0x59f0e1:0x5e0,_0x7717eb:0x481},_0x3696ff={_0x5defd9:0x114},_0x1588fe={_0x409147:0x54d,_0x2c3d2a:0x1a6},_0x1f87d2=_0x1dc896[_0x546e6c(_0x170d11._0x16ae28,_0x170d11._0x27910b,_0x170d11._0x4b7798,0x166)];function _0x1e3ddd(_0xa1c713,_0xa14036,_0xa6e9e9,_0x40194f){return _0x1a8b4d(_0xa6e9e9,_0xa14036-_0x1588fe._0x409147,_0xa6e9e9-0xca,_0x40194f-_0x1588fe._0x2c3d2a);}_0x1dc896[_0x1e3ddd(0x3cd,_0x170d11._0x4f85fb,_0x170d11._0x503364,0x512)]=void 0x0,_0x1dc896[_0x546e6c(_0x170d11._0xacbf14,0x164,0x212,_0x170d11._0x45a80a)]=void 0x0;function _0x546e6c(_0x1e3b54,_0x3db05d,_0xff77c4,_0x17fd57){return _0x5a1062(_0x3db05d- -0x3e,_0x17fd57,_0xff77c4-_0x3696ff._0x5defd9,_0x17fd57-0x9d);}_0x1dc896[_0x546e6c(_0x170d11._0x371e34,0x290,0x239,_0x170d11._0x14ca4d)]=void 0x0,_0x1f87d2?.[_0x1e3ddd(0x5eb,0x514,_0x170d11._0x555a40,0x4f4)]===WebSocket['OPEN']&&_0x1f87d2[_0x1e3ddd(_0x170d11._0x464bf6,0x55a,_0x170d11._0x452f43,_0x170d11._0x18e00c)](0x3e8,_0x1e3ddd(_0x170d11._0x24b48c,_0x170d11._0x2d050f,_0x170d11._0x59f0e1,_0x170d11._0x7717eb));}async[_0x1a8b4d(0x5,0x25,0xfe,0xce)](_0x28d1f8,_0x28d4ca,_0x595952,_0x1e9f88,_0x2edb98){const _0x4b1960={_0x174069:0x1d5,_0x49ce55:0x96,_0x179bc1:0x164,_0x56ae20:0x244,_0x3f00a8:0x1bd,_0x5ed930:0x164,_0x72eafa:0xbe,_0x506413:0x179,_0x24e751:0x164,_0x413c80:0x123,_0x4482d5:0xb3,_0x5849c0:0x194,_0x3e8d36:0xa6,_0x31a87a:0xce,_0x58e9cb:0x18d},_0x4a5b26={_0x1a0e7f:0x152,_0x1aab6b:0x164,_0x194c1e:0x15e,_0x5c45b8:0x238,_0x236386:0xfc,_0x3e801a:0xbb,_0x40e024:0xcf,_0xb5931d:0x21,_0x324dea:0xb0,_0x2e467c:0x1c2,_0x309cf9:0x169,_0x3c350c:0x22e,_0x5a75d0:0x268,_0x4a4944:0x14d,_0x31f6bc:0x1a5,_0x45e85f:0x1fc,_0x293b91:0x161,_0x1f5507:0x1c3,_0x2b4d24:0x12b,_0x3558ee:0x83,_0x3e3fc1:0x88,_0x1eeffb:0x10b,_0x2deb11:0x14,_0x4248f1:0x47,_0x3f3eb7:0x2a4,_0x1dc108:0x2f2,_0x3240de:0x11a,_0x31833d:0x15a,_0x49b892:0x162,_0x3de5d1:0xc,_0x26c64a:0x262,_0x5749eb:0x22e,_0x1ebafd:0x132,_0x29de3a:0x21c,_0x5b4255:0x81,_0x174955:0x37,_0x1db9e4:0x42,_0x387653:0xcd,_0xbf41b3:0xe0,_0x1f314e:0x169,_0x54570f:0x1d4,_0x12f9e6:0x179,_0x5c9266:0x217,_0x146b31:0x101,_0x3903cb:0x16d,_0x1876f8:0x186},_0xf681a3={_0x312ed6:0x53b,_0x4d867c:0x511,_0xd436c5:0x533,_0x45e7f4:0x67a,_0xb67e25:0x620,_0x92cc2b:0x5be},_0x291a6c={_0xf65b09:0x128,_0x4d07e6:0x17},_0x127b38={_0x4e80fc:0x10e,_0x92a066:0x17c},_0xda84fe={_0x35a8b9:0xe4,_0x39ea56:0xfe,_0x101f92:0x1ad};if(_0x28d4ca[_0x579fc4(0x205,_0x4b1960._0x174069,0x1dc,0x169)]?.['readyState']===WebSocket['OPEN'])return _0x28d4ca[_0xe731ec(-0x46,0x89,-0x3,-_0x4b1960._0x49ce55)];function _0xe731ec(_0x45d279,_0x3eaf63,_0x4739ff,_0x1d8023){return _0x1a8b4d(_0x45d279,_0x4739ff-_0xda84fe._0x35a8b9,_0x4739ff-_0xda84fe._0x39ea56,_0x1d8023-_0xda84fe._0x101f92);}if(_0x28d4ca[_0x579fc4(_0x4b1960._0x179bc1,0x126,_0x4b1960._0x56ae20,_0x4b1960._0x3f00a8)])return await _0x28d4ca[_0x579fc4(_0x4b1960._0x5ed930,_0x4b1960._0x72eafa,_0x4b1960._0x506413,0x1f0)];function _0x579fc4(_0x382942,_0x10b324,_0x5eaa56,_0xcd7ed4){return _0x1a8b4d(_0x10b324,_0x382942-0x2ec,_0x5eaa56-_0x127b38._0x4e80fc,_0xcd7ed4-_0x127b38._0x92a066);}_0x28d4ca[_0x579fc4(_0x4b1960._0x24e751,_0x4b1960._0x413c80,_0x4b1960._0x4482d5,_0x4b1960._0x5849c0)]=((async()=>{const _0x5e3c42={_0xe43212:0x4be},_0x3450ab={_0x2df7c0:0xeb,_0x19dca6:0x16c,_0x2a4500:0x34},_0x37a7cc=await this[_0xeb64c9(0x43,0x3c,_0x4a5b26._0x1a0e7f,0xfb)]({'request':_0x595952[_0x12f2b3(-_0x4a5b26._0x1aab6b,-_0x4a5b26._0x194c1e,-0x242,-_0x4a5b26._0x5c45b8)],'body':_0x1e9f88,'credential':_0x595952[_0x12f2b3(-0xe5,-_0x4a5b26._0x236386,-0xf6,-_0x4a5b26._0x3e801a)],'session':_0x595952[_0xeb64c9(0x200,0x214,_0x4a5b26._0x40e024,0x128)],'stream':!![]},{'accept':_0x12f2b3(_0x4a5b26._0xb5931d,-0x5c,-_0x4a5b26._0x324dea,-0x2a),'includeContentType':![]});_0x37a7cc[_0xeb64c9(_0x4a5b26._0x2e467c,_0x4a5b26._0x309cf9,_0x4a5b26._0x3c350c,0x192)]('accept');function _0xeb64c9(_0x4bf5f9,_0x562ddc,_0xb530e7,_0x28683d){return _0xe731ec(_0x4bf5f9,_0x562ddc-_0x3450ab._0x2df7c0,_0x28683d-_0x3450ab._0x19dca6,_0x28683d-_0x3450ab._0x2a4500);}function _0x12f2b3(_0xe98bd7,_0x26b4c0,_0x1a6573,_0x5ce973){return _0xe731ec(_0x5ce973,_0x26b4c0-0x1ce,_0x26b4c0- -_0x291a6c._0xf65b09,_0x5ce973-_0x291a6c._0x4d07e6);}const _0x531fb8=this[_0xeb64c9(0x19c,_0x4a5b26._0x5a75d0,_0x4a5b26._0x4a4944,_0x4a5b26._0x31f6bc)]({'headers':Object[_0xeb64c9(_0x4a5b26._0x45e85f,0x23f,_0x4a5b26._0x293b91,_0x4a5b26._0x1f5507)](_0x37a7cc[_0x12f2b3(-_0x4a5b26._0x2b4d24,-_0x4a5b26._0x3558ee,-_0x4a5b26._0x3e3fc1,-_0x4a5b26._0x1eeffb)]()),'url':(''+_0x595952[_0x12f2b3(-0xc4,-_0x4a5b26._0x2deb11,-0x35,-_0x4a5b26._0x4248f1)]+this[_0xeb64c9(_0x4a5b26._0x3f3eb7,0x1d4,_0x4a5b26._0x1dc108,0x292)])[_0x12f2b3(0x9b,-0x32,-_0x4a5b26._0x3240de,-0x7e)](/^http:/,_0x12f2b3(-_0x4a5b26._0x31833d,-0xc6,-_0x4a5b26._0x49b892,-_0x4a5b26._0x3de5d1))[_0xeb64c9(0x1c1,0x1d1,0x1f0,_0x4a5b26._0x26c64a)](/^https:/,_0x12f2b3(-_0x4a5b26._0x5749eb,-0x16f,-0x147,-0xaf))}),_0xb01f1b=()=>{const _0x4d1b66={_0x194936:0x11b,_0x39aaf2:0x1ca};function _0x5f487a(_0x45d087,_0x133b68,_0x18c843,_0x2a057d){return _0x12f2b3(_0x45d087-0x187,_0x18c843-_0x5e3c42._0xe43212,_0x18c843-0xac,_0x2a057d);}_0x28d4ca[_0x588607(_0xf681a3._0x312ed6,0x4bd,0x4c2,0x533)]===_0x531fb8&&(_0x28d4ca[_0x588607(0x48b,_0xf681a3._0x4d867c,0x555,_0xf681a3._0xd436c5)]=void 0x0,_0x28d4ca[_0x588607(_0xf681a3._0x45e7f4,_0xf681a3._0xb67e25,0x564,_0xf681a3._0x92cc2b)]=void 0x0);function _0x588607(_0x36b04f,_0x26c183,_0x4cc0c9,_0x33c2be){return _0xeb64c9(_0x4cc0c9,_0x26c183-_0x4d1b66._0x194936,_0x4cc0c9-_0x4d1b66._0x39aaf2,_0x33c2be-0x3ca);}this['maybeEvictResponsesSocketSession'](_0x28d4ca);};_0x531fb8[_0x12f2b3(-_0x4a5b26._0x1ebafd,-0x186,-_0x4a5b26._0x29de3a,-0x18f)](_0x12f2b3(-_0x4a5b26._0x5b4255,-_0x4a5b26._0x174955,0x2e,_0x4a5b26._0x1db9e4),_0xb01f1b);try{return throwIfAborted(_0x2edb98),_0x531fb8[_0x12f2b3(0xe,-0x7d,-0x1c,-_0x4a5b26._0x387653)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x531fb8,_0x2edb98),throwIfAborted(_0x2edb98),_0x28d4ca[_0xeb64c9(_0x4a5b26._0xbf41b3,0x10f,0xf4,_0x4a5b26._0x1f314e)]=_0x531fb8,_0x531fb8;}catch(_0x3aa7b2){_0xb01f1b();_0x531fb8[_0xeb64c9(_0x4a5b26._0x54570f,_0x4a5b26._0x12f9e6,0x2f9,_0x4a5b26._0x5c9266)]===WebSocket[_0xeb64c9(_0x4a5b26._0x146b31,_0x4a5b26._0x3903cb,_0x4a5b26._0x1876f8,0xe3)]&&_0x531fb8['close'](0x3e8,_0xeb64c9(0x1e7,0x190,0x1a6,0x140));throw _0x3aa7b2;}})());try{return await _0x28d4ca['connecting'];}finally{_0x28d4ca[_0x579fc4(0x164,_0x4b1960._0x3e8d36,_0x4b1960._0x31a87a,_0x4b1960._0x58e9cb)]=void 0x0;}}async*[_0x5a1062(0x279,0x33a,0x2e1,0x318)](_0x75aeae,_0x49325b){const _0x205c45={_0x3e5dae:0x5bb,_0x2761bb:0x4df,_0x118df4:0x44a,_0x57e21c:0x3d5,_0x546013:0x126,_0x2fdefb:0x3e9,_0xe18fbe:0x432,_0x20f410:0x452,_0x3115b3:0x20c,_0x233ff7:0x228,_0x9d0d29:0x4c1,_0x313327:0x392,_0x551b55:0x32,_0x47ba35:0x80,_0x582b47:0xdc,_0x4b1bbc:0xe9,_0x1568c6:0x46c,_0x2d8770:0x45f,_0x3ca611:0x432,_0x5e545f:0xd7,_0x3243fa:0x62,_0x5978d7:0x529,_0x1705fb:0x1bc,_0x54f5a4:0xdf,_0x21efba:0x162,_0x54a4ea:0x113,_0x5a83fd:0xb6,_0x47321c:0x492,_0x4b76f9:0x44a,_0x56ac58:0x48c,_0x3bd0f3:0x43c,_0x742752:0x420,_0x5b1faf:0x4a0,_0x2b8687:0x87,_0x3a919f:0xd5},_0x2e8ed6={_0x118e1b:0x176},_0x3d9908={_0x1f1bb6:0x19e};function _0x33a65f(_0x5b00a4,_0x27a3f0,_0x1bf34e,_0x1e53c8){return _0x5a1062(_0x1e53c8-0x1e9,_0x1bf34e,_0x1bf34e-_0x3d9908._0x1f1bb6,_0x1e53c8-0x147);}const _0x53c035=this[_0x33a65f(0x56a,0x519,_0x205c45._0x3e5dae,_0x205c45._0x2761bb)](_0x75aeae);function _0x17ce13(_0x1dca0d,_0x10f3e8,_0x453871,_0x128628){return _0x5a1062(_0x128628- -0x1ed,_0x1dca0d,_0x453871-_0x2e8ed6._0x118e1b,_0x128628-0x17c);}const _0x28142d=this[_0x33a65f(0x3a3,0x457,_0x205c45._0x118df4,_0x205c45._0x57e21c)](_0x53c035[_0x17ce13(0x8d,0x120,_0x205c45._0x546013,0x80)][_0x33a65f(_0x205c45._0x2fdefb,0x42e,_0x205c45._0xe18fbe,_0x205c45._0x20f410)]),_0x4b36ec=await this[_0x17ce13(_0x205c45._0x3115b3,0xc1,_0x205c45._0x233ff7,0x146)](_0x28142d);try{const _0x6664e=this[_0x33a65f(_0x205c45._0x9d0d29,_0x205c45._0x313327,0x3dc,0x3d8)](_0x53c035,_0x28142d);try{yield*this['streamViaResponsesSocketAttempt'](_0x53c035[_0x17ce13(0xad,0x4c,-_0x205c45._0x551b55,_0x205c45._0x47ba35)][_0x17ce13(_0x205c45._0x582b47,-0x15,_0x205c45._0x4b1bbc,0x7c)],_0x28142d,_0x53c035,_0x6664e[_0x33a65f(_0x205c45._0x1568c6,_0x205c45._0x2d8770,0x3a8,_0x205c45._0x3ca611)],_0x49325b?.[_0x17ce13(0x89,0xe9,_0x205c45._0x5e545f,_0x205c45._0x3243fa)]);return;}catch(_0xb9507b){if(!_0x6664e[_0x33a65f(0x50c,0x479,_0x205c45._0x5978d7,0x502)]||!this[_0x17ce13(0x114,_0x205c45._0x1705fb,0xaf,_0x205c45._0x54f5a4)](_0xb9507b)){this[_0x17ce13(0xf1,_0x205c45._0x21efba,_0x205c45._0x54a4ea,_0x205c45._0x5a83fd)](_0x28142d);throw _0xb9507b;}}this[_0x33a65f(_0x205c45._0x47321c,0x487,_0x205c45._0x4b76f9,_0x205c45._0x56ac58)](_0x28142d);const _0x3787f2=this[_0x33a65f(0x3bb,0x36d,_0x205c45._0x3bd0f3,0x3d8)](_0x53c035,_0x28142d,{'forceFullReplay':!![]});yield*this[_0x33a65f(_0x205c45._0x742752,0x579,0x3da,_0x205c45._0x5b1faf)](_0x53c035[_0x17ce13(_0x205c45._0x2b8687,_0x205c45._0x3a919f,-0x6b,0x80)]['sessionId'],_0x28142d,_0x53c035,_0x3787f2['event'],_0x49325b?.['signal']);}finally{_0x4b36ec();}}async*[_0x5a1062(0x2b7,0x1f8,0x310,0x35f)](_0x169d23,_0x261916,_0x4b3c7b,_0x17add4,_0x9caaed){const _0x2a18cc={_0x28efe1:0x18,_0x33b094:0x118,_0x28e488:0x100,_0x444def:0x150,_0x2610da:0x102,_0xbffd56:0x41,_0x4361c5:0x151,_0x3cf6a0:0x37,_0x2d8eef:0xa9,_0x31e79f:0x65,_0x363791:0x4,_0x53a4cc:0x7,_0x4c3ef6:0xae,_0x140f4a:0xa,_0x550284:0x2e,_0x1a87de:0x3c,_0xc6c634:0x8b,_0x107dfc:0xa6},_0x40ac66={_0x6ba9d1:0xdb},_0x54bf7f=await this[_0x477e30(-_0x2a18cc._0x28efe1,-0x80,-0x89,-0x10c)](_0x4b3c7b,_0x9caaed),_0x47740c=await this[_0x477e30(0x42,_0x2a18cc._0x33b094,_0x2a18cc._0x28e488,_0x2a18cc._0x444def)](_0x169d23,_0x261916,_0x54bf7f,_0x17add4,_0x9caaed),_0x1891f1=createOpenAiResponsesStreamParser(_0x4b3c7b);throwIfAborted(_0x9caaed),_0x47740c['send'](JSON[_0x477e30(0x2,0x6b,0x29,_0x2a18cc._0x2610da)](_0x17add4));for await(const _0x143ef6 of iterateWebSocketMessages(_0x47740c,_0x9caaed)){const _0x2a388b=_0x1891f1[_0x51478e(_0x2a18cc._0xbffd56,0x4e,0xb,-0xd)]?.(_0x143ef6)??[];yield*_0x2a388b;if(_0x1891f1['isDone']?.())break;}function _0x51478e(_0x2ccb78,_0x3a630e,_0x57fbe3,_0x28ce9e){return _0x5a1062(_0x28ce9e- -0x29e,_0x3a630e,_0x57fbe3-0x1eb,_0x28ce9e-0x9e);}if(!_0x1891f1[_0x477e30(0x1fc,0x1d4,0x120,_0x2a18cc._0x4361c5)]?.())throw new Error(_0x477e30(0x3c,_0x2a18cc._0x3cf6a0,0xc2,0x149));function _0x477e30(_0x3fc483,_0x2be89f,_0xa7bf8c,_0x2a7ac1){return _0x1a8b4d(_0x3fc483,_0xa7bf8c-_0x40ac66._0x6ba9d1,_0xa7bf8c-0x78,_0x2a7ac1-0x170);}const _0x4fc261=_0x1891f1[_0x51478e(-_0x2a18cc._0x2d8eef,0x5c,-_0x2a18cc._0x31e79f,-_0x2a18cc._0x363791)](),_0x3c3c86=_0x4fc261[_0x477e30(-0x1,_0x2a18cc._0x53a4cc,0xcf,0x122)]?.[_0x477e30(-_0x2a18cc._0x4c3ef6,-_0x2a18cc._0x140f4a,_0x2a18cc._0x550284,-0x2f)]??_0x4fc261['id'];_0x3c3c86&&(_0x261916[_0x477e30(_0x2a18cc._0x1a87de,_0x2a18cc._0xc6c634,0x7f,_0x2a18cc._0x107dfc)]=_0x3c3c86),yield{'type':'done','response':_0x4fc261};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x5a1062(0x286,0x330,0x1a1,0x254),_0x5a1062(0x2e8,0x261,0x26e,0x3ab),_0x5a1062(0x1ed,0x1b3,0x103,0x23d),_0x1a8b4d(-0x85,-0xb,0x33,0x12)];function isAnthropicSurface(_0x228ace){const _0x58c0eb={_0x5c927c:0x4d,_0x262951:0xfe},_0x11f541={_0x45b7dd:0xbf};function _0x513377(_0x17c394,_0x5aeb0a,_0x2d566e,_0x205395){return _0x1a8b4d(_0x17c394,_0x5aeb0a-0x25,_0x2d566e-_0x11f541._0x45b7dd,_0x205395-0x11f);}return _0x228ace===_0x513377(_0x58c0eb._0x5c927c,-0x7f,-0x55,-_0x58c0eb._0x262951);}function providerFromSurface(_0x19f494){const _0x2d48bd={_0x55dfa1:0x140,_0x4054a4:0x23d,_0x5a0b4a:0x15f,_0x31c074:0x86},_0x5249ee={_0x1871b0:0x74,_0x45e3bf:0x1b5},_0x2121c7={_0x7a4b58:0x1e8};function _0x36b062(_0x570c51,_0x36842b,_0x46b30f,_0x3d3c44){return _0x5a1062(_0x36842b- -0x98,_0x570c51,_0x46b30f-_0x2121c7._0x7a4b58,_0x3d3c44-0x86);}function _0x5cd6e7(_0x5a5b29,_0x1e766e,_0x117f75,_0x8cf788){return _0x5a1062(_0x1e766e- -_0x5249ee._0x1871b0,_0x117f75,_0x117f75-_0x5249ee._0x45e3bf,_0x8cf788-0x14a);}return _0x19f494['startsWith']('anthropic')?_0x5cd6e7(_0x2d48bd._0x55dfa1,0x1e7,0x1d1,_0x2d48bd._0x4054a4):_0x36b062(_0x2d48bd._0x5a0b4a,0x117,0x91,_0x2d48bd._0x31c074);}function resolveDefaultBaseUrl(_0x23b00f){const _0x2a5cde={_0x54501e:0x291,_0x5b6e97:0x221,_0x420748:0x224,_0xe43ab1:0x513,_0x2ae5a1:0x410,_0x3ef345:0x3ea,_0x5a0224:0x3df,_0x49347d:0x366,_0xa28ac7:0x1a7,_0x5a6da8:0x14a,_0x4e29e7:0xd4,_0x1c0972:0x2f5,_0x4d2155:0x477},_0x5b0968={_0x3c17ca:0xdb};function _0x1b00b8(_0x12c7a8,_0x28b969,_0x12413b,_0x309e8a){return _0x5a1062(_0x12413b- -0x65,_0x309e8a,_0x12413b-_0x5b0968._0x3c17ca,_0x309e8a-0x97);}function _0x456cf9(_0x3329ba,_0x1857bc,_0x4497ff,_0xad3fb0){return _0x1a8b4d(_0x1857bc,_0x3329ba-0x496,_0x4497ff-0xd2,_0xad3fb0-0x59);}if(_0x23b00f===_0x1b00b8(0x198,_0x2a5cde._0x54501e,_0x2a5cde._0x5b6e97,0x137))return getProviderProfile(_0x1b00b8(0x27f,0x190,0x1f6,_0x2a5cde._0x420748))?.[_0x456cf9(0x4c6,_0x2a5cde._0xe43ab1,_0x2a5cde._0x2ae5a1,_0x2a5cde._0x3ef345)]??_0x456cf9(0x3d4,_0x2a5cde._0x5a0224,_0x2a5cde._0x49347d,0x393);return getProviderProfile(_0x1b00b8(0x1d8,_0x2a5cde._0xa28ac7,_0x2a5cde._0x5a6da8,_0x2a5cde._0x4e29e7))?.[_0x1b00b8(0x328,0x281,_0x2a5cde._0x1c0972,0x2b5)]??_0x456cf9(0x3b1,0x452,_0x2a5cde._0x4d2155,0x415);}var ChatModel=class{[_0x5a1062(0x367,0x2f0,0x450,0x3e1)];[_0x1a8b4d(-0x124,-0x97,-0x60,-0xc)];['surface'];['provider'];[_0x1a8b4d(0x46,-0x6d,-0x52,0x24)];[_0x5a1062(0x2cd,0x35b,0x228,0x1ec)];constructor(_0x10ae28={}){const _0x4aa9e9={_0x126770:0x459,_0x47d44a:0x11a,_0x303a73:0x227,_0x22c79d:0x201,_0x2034f0:0x294,_0x328239:0x3ae,_0x421561:0x39c,_0x5e9238:0x328,_0x1631cb:0x326,_0x4738d2:0x2aa,_0x4acf19:0x24c,_0x4a838a:0x301,_0xb0d82f:0x3fb,_0x2ed660:0x403,_0x550ddd:0x1d7,_0x4dc53c:0x436,_0x52d52f:0x4b1,_0x5b9feb:0x3c5,_0x307e68:0x52,_0x7e928b:0x43,_0x2eb5fb:0x3b6,_0x3bf6bb:0x486,_0x2e0865:0x335,_0x3e1f9b:0x1aa,_0x24e7d5:0x185,_0x481a34:0x29d,_0x2851ef:0x17e,_0x440b52:0x3f5,_0x837e99:0x354,_0x30aa8a:0x3d6,_0x1ad26e:0x4a2,_0x3334f9:0x266,_0x463775:0x22e,_0x378e4b:0x393,_0x2a531a:0x4d4,_0x347c21:0x403,_0xcb5417:0x32b,_0xfa7e0:0x220,_0x46ff1d:0x1c7,_0x34fc9:0x359,_0x6f6353:0x411,_0x2a6233:0x42d,_0x40e2a2:0x4bf,_0x472855:0x4ce,_0x52533d:0x3ba,_0xc1a3bf:0x323,_0xae0a40:0x449,_0x446f34:0x35a,_0x21a6ac:0x27a,_0x43c3f2:0x208,_0x3bebd0:0x345,_0x5ea4b4:0x331,_0x7d5160:0x29d},_0xb5ffa7={_0x35af32:0x21c,_0x2fd8b1:0x10d};this[_0x48f4f5(0x42d,0x396,0x4e7,_0x4aa9e9._0x126770)]=_0x10ae28['model']??getDefaultModel(),this['maxTokens']=_0x10ae28[_0x52f632(_0x4aa9e9._0x47d44a,0x185,0x1b1,0x118)]??getDefaultMaxTokens(),this[_0x52f632(0x264,_0x4aa9e9._0x303a73,_0x4aa9e9._0x22c79d,_0x4aa9e9._0x2034f0)]=_0x10ae28['surface']??_0x48f4f5(_0x4aa9e9._0x328239,0x3cb,_0x4aa9e9._0x421561,_0x4aa9e9._0x5e9238);function _0x48f4f5(_0x50d7df,_0x186367,_0x47d56e,_0xd0c070){return _0x5a1062(_0x50d7df-0xc6,_0x47d56e,_0x47d56e-0x1cc,_0xd0c070-0x53);}function _0x52f632(_0x17ac59,_0x1fb889,_0x153400,_0x62138e){return _0x1a8b4d(_0x153400,_0x1fb889-_0xb5ffa7._0x35af32,_0x153400-_0xb5ffa7._0x2fd8b1,_0x62138e-0x11c);}this['provider']=providerFromSurface(this[_0x48f4f5(0x3fb,0x430,0x369,_0x4aa9e9._0x1631cb)]);const _0x1fe9ad=trimTrailingSlashes(_0x10ae28[_0x52f632(_0x4aa9e9._0x4738d2,_0x4aa9e9._0x4acf19,0x280,_0x4aa9e9._0x4a838a)]??resolveDefaultBaseUrl(this[_0x48f4f5(_0x4aa9e9._0xb0d82f,_0x4aa9e9._0x2ed660,0x336,0x3f7)]));if(isAnthropicSurface(this[_0x52f632(0x206,_0x4aa9e9._0x303a73,0x2b0,_0x4aa9e9._0x550ddd)])){this[_0x48f4f5(0x383,0x3a4,0x2f5,0x2a2)]=new AnthropicModel({'apiKey':_0x10ae28[_0x48f4f5(_0x4aa9e9._0x4dc53c,_0x4aa9e9._0x52d52f,0x40b,_0x4aa9e9._0x5b9feb)],'authScheme':_0x10ae28[_0x52f632(_0x4aa9e9._0x307e68,0x130,_0x4aa9e9._0x7e928b,0x101)],'baseUrl':_0x1fe9ad,'fetch':_0x10ae28[_0x48f4f5(_0x4aa9e9._0x2eb5fb,0x2eb,_0x4aa9e9._0x3bf6bb,_0x4aa9e9._0x2e0865)],'maxTokens':this[_0x52f632(_0x4aa9e9._0x3e1f9b,_0x4aa9e9._0x24e7d5,0x269,0x16e)],'model':this[_0x52f632(_0x4aa9e9._0x481a34,0x259,0x2be,_0x4aa9e9._0x2851ef)],'reasoning':_0x10ae28[_0x48f4f5(_0x4aa9e9._0x440b52,_0x4aa9e9._0x837e99,_0x4aa9e9._0x30aa8a,_0x4aa9e9._0x1ad26e)],'providerSessionResolver':_0x10ae28[_0x52f632(_0x4aa9e9._0x3334f9,0x1e6,0x1f6,_0x4aa9e9._0x463775)],'requestMutators':_0x10ae28['requestMutators']});return;}this[_0x48f4f5(_0x4aa9e9._0x378e4b,0x3c7,0x34b,0x35e)]=new OpenAiModel({'apiKey':_0x10ae28[_0x48f4f5(0x436,0x3c3,0x413,_0x4aa9e9._0x2a531a)],'baseUrl':_0x1fe9ad,'fetch':_0x10ae28[_0x48f4f5(0x3b6,0x326,_0x4aa9e9._0x347c21,_0x4aa9e9._0xcb5417)],'headerResolver':_0x10ae28[_0x52f632(_0x4aa9e9._0xfa7e0,0x134,_0x4aa9e9._0x46ff1d,0x1d8)],'maxTokens':this[_0x48f4f5(_0x4aa9e9._0x34fc9,_0x4aa9e9._0x6f6353,0x30f,0x27a)],'model':this[_0x48f4f5(_0x4aa9e9._0x2a6233,_0x4aa9e9._0x40e2a2,_0x4aa9e9._0x472855,0x3a6)],'reasoning':_0x10ae28['reasoning'],'providerSessionResolver':_0x10ae28[_0x48f4f5(_0x4aa9e9._0x52533d,_0x4aa9e9._0xc1a3bf,_0x4aa9e9._0xae0a40,_0x4aa9e9._0x446f34)],'requestMutators':_0x10ae28[_0x48f4f5(_0x4aa9e9._0x21a6ac,_0x4aa9e9._0x43c3f2,0x22c,0x2d6)],'webSocketFactory':_0x10ae28[_0x48f4f5(_0x4aa9e9._0x3bebd0,_0x4aa9e9._0x5ea4b4,_0x4aa9e9._0x7d5160,0x3c7)]});}[_0x5a1062(0x20e,0x194,0x2ad,0x232)](){const _0x24e6b8={_0x21e23f:0x58c,_0x473bb5:0xc0,_0x2ca218:0xa,_0x3ce450:0x73,_0xc7bc65:0x1e5,_0x58b0f3:0x29c,_0xd2335:0xe1},_0x1c0eeb={_0x43cc82:0x2e,_0x533373:0xd0},_0x5d69ec={_0x3a1d36:0x170,_0xb87ca4:0xb3};if(!this[_0x33afdb(0x502,0x538,0x48e,_0x24e6b8._0x21e23f)])throw new Error(_0x4d974c(_0x24e6b8._0x473bb5,0x9c,_0x24e6b8._0x2ca218,_0x24e6b8._0x3ce450)+this[_0x4d974c(0x1c5,_0x24e6b8._0xc7bc65,0x1e1,_0x24e6b8._0x58b0f3)]);function _0x4d974c(_0x2fddac,_0x836b51,_0x4b7f9f,_0x3bba0b){return _0x5a1062(_0x2fddac- -_0x5d69ec._0x3a1d36,_0x4b7f9f,_0x4b7f9f-0x107,_0x3bba0b-_0x5d69ec._0xb87ca4);}function _0x33afdb(_0x5c6773,_0x2beb94,_0x267083,_0xe09f9){return _0x1a8b4d(_0x267083,_0x5c6773-0x56f,_0x267083-_0x1c0eeb._0x43cc82,_0xe09f9-_0x1c0eeb._0x533373);}return this[_0x4d974c(0x14d,0x175,_0x24e6b8._0xd2335,0x110)];}[_0x5a1062(0x351,0x346,0x2ae,0x418)](){const _0x77dd28={_0x55bd31:0xd,_0xde2229:0x22,_0x37793f:0x10,_0x3e4366:0xa0,_0x3746c0:0xb9,_0x2aa082:0xf4,_0x323d97:0x44},_0x191837={_0x350322:0x1ab,_0xce7863:0xe3},_0x2434ce={_0x90cec4:0x74,_0x254fd7:0x42};function _0x3c1735(_0x365942,_0x2df1ce,_0x5034ca,_0x567a8c){return _0x1a8b4d(_0x365942,_0x5034ca- -0xa7,_0x5034ca-_0x2434ce._0x90cec4,_0x567a8c-_0x2434ce._0x254fd7);}if(!this[_0x25c0ab(_0x77dd28._0x55bd31,0x74,_0x77dd28._0xde2229,0x44)])throw new Error(_0x3c1735(_0x77dd28._0x37793f,0x47,-_0x77dd28._0x3e4366,-0x32)+this[_0x3c1735(0x35,-0xca,-0x9c,-0x146)]);function _0x25c0ab(_0x2460ff,_0x30a450,_0x4c0321,_0xfd326f){return _0x5a1062(_0xfd326f- -0x289,_0x2460ff,_0x4c0321-_0x191837._0x350322,_0xfd326f-_0x191837._0xce7863);}return this[_0x25c0ab(0x7f,_0x77dd28._0x3746c0,_0x77dd28._0x2aa082,_0x77dd28._0x323d97)];}[_0x1a8b4d(0xa,0x3,0x67,-0x9e)](_0x32c77f,_0x5b04e0){const _0x515eff={_0x33909d:0x4d3,_0x238ef5:0x53f,_0xe427f7:0x50b,_0x50b488:0xce,_0x15574f:0xfe,_0x1e4ec6:0x421,_0x47bfd7:0x499,_0x303ecb:0x74,_0xe128b:0x597,_0x3f3535:0x4ef,_0x236174:0x407,_0x1efeed:0x4c2,_0x45e2ce:0xf7,_0x3266b4:0x35,_0x2bd9f9:0xc3,_0x4bb54c:0xf1,_0x577010:0x4c,_0x394e01:0xd6,_0xdcb999:0x477,_0x308f26:0x136,_0x3dff09:0x8e,_0x5a26b9:0xbc},_0x5c9a60={_0x47f7bd:0x4c8,_0x26efad:0x2c},_0x58f487={_0x2dc937:0x305,_0x378e94:0x106};function _0x578173(_0x11617d,_0x4c971f,_0x15c46b,_0x9d7427){return _0x5a1062(_0x15c46b- -_0x58f487._0x2dc937,_0x11617d,_0x15c46b-0x19e,_0x9d7427-_0x58f487._0x378e94);}function _0x37d3d5(_0x16b089,_0xae2a3b,_0x192606,_0x38b7ac){return _0x1a8b4d(_0x192606,_0xae2a3b-_0x5c9a60._0x47f7bd,_0x192606-0x3e,_0x38b7ac-_0x5c9a60._0x26efad);}switch(this[_0x37d3d5(0x4b3,_0x515eff._0x33909d,_0x515eff._0x238ef5,_0x515eff._0xe427f7)]){case'anthropic-messages':return this[_0x578173(-0xe9,-_0x515eff._0x50b488,-0xf7,-_0x515eff._0x15574f)]()[_0x37d3d5(0x425,0x4cb,_0x515eff._0x1e4ec6,_0x515eff._0x47bfd7)](_0x32c77f,_0x5b04e0);case _0x578173(-_0x515eff._0x303ecb,-0x1f5,-0x118,-0x5f):return this[_0x37d3d5(_0x515eff._0xe128b,_0x515eff._0x3f3535,_0x515eff._0x236174,_0x515eff._0x1efeed)]()['response'](_0x32c77f,_0x5b04e0);case _0x578173(_0x515eff._0x45e2ce,_0x515eff._0x3266b4,0x1a,-_0x515eff._0x2bd9f9):return this[_0x578173(0xdf,_0x515eff._0x4bb54c,_0x515eff._0x577010,_0x515eff._0x394e01)]()[_0x37d3d5(_0x515eff._0xdcb999,0x4a1,0x4bf,0x4e7)](_0x32c77f,_0x5b04e0);default:return this[_0x578173(_0x515eff._0x308f26,0xea,_0x515eff._0x577010,0xe4)]()[_0x578173(-_0x515eff._0x3dff09,-0xc,0x7,-_0x515eff._0x5a26b9)](_0x32c77f,_0x5b04e0);}}['stream'](_0x459ee9,_0x3fd373){const _0x94325b={_0x32e37e:0x5c3,_0x7de107:0x576,_0x5dfdea:0x5df,_0x5cb837:0x6b0,_0x42d1d1:0x4d7,_0x4e59c3:0x504,_0x55fb6d:0x69f,_0x926479:0x615,_0x4f0126:0x77b,_0x403279:0x61b,_0x3cb4bb:0x698,_0x14d20e:0x65a,_0x3f7e42:0x61d},_0x11a03e={_0x386099:0xd3},_0x5bba9c={_0x1d627b:0x5b8};function _0x506a08(_0x1d0a4d,_0x24cbd3,_0x252c8e,_0x17a4ab){return _0x1a8b4d(_0x24cbd3,_0x1d0a4d-_0x5bba9c._0x1d627b,_0x252c8e-0x17b,_0x17a4ab-0x138);}function _0x2c987f(_0x3b3017,_0x595670,_0x564f2b,_0x2c2830){return _0x1a8b4d(_0x2c2830,_0x595670-0x6cd,_0x564f2b-0x10f,_0x2c2830-_0x11a03e._0x386099);}switch(this[_0x506a08(_0x94325b._0x32e37e,0x5d1,0x556,0x4ed)]){case _0x506a08(0x514,_0x94325b._0x7de107,0x512,0x439):return this['getAnthropicDelegate']()['stream'](_0x459ee9,_0x3fd373);case _0x2c987f(0x622,0x590,0x4fe,0x53e):return this[_0x506a08(_0x94325b._0x5dfdea,0x50c,_0x94325b._0x5cb837,0x56a)]()[_0x506a08(0x46c,0x421,_0x94325b._0x42d1d1,_0x94325b._0x4e59c3)](_0x459ee9,_0x3fd373);case _0x2c987f(_0x94325b._0x55fb6d,0x6c2,0x62f,0x72b):return this[_0x2c987f(_0x94325b._0x926479,0x6f4,_0x94325b._0x4f0126,0x7b9)]()[_0x2c987f(_0x94325b._0x403279,_0x94325b._0x3cb4bb,0x61b,0x6b5)](_0x459ee9,_0x3fd373);default:return this[_0x2c987f(0x726,0x6f4,_0x94325b._0x14d20e,_0x94325b._0x3f7e42)]()['chatStream'](_0x459ee9,_0x3fd373);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x1a8b4d(-0xdd,-0x173,-0xd8,-0x185)];[_0x5a1062(0x35a,0x3fe,0x291,0x2cd)];[_0x5a1062(0x288,0x25f,0x259,0x1dd)];[_0x1a8b4d(-0x242,-0x166,-0x21c,-0x240)];[_0x1a8b4d(0x33,-0x6a,-0x158,0x78)];constructor(_0xe3db80){const _0x4136c8={_0x3472d2:0x570,_0x30167a:0x599,_0x2ca61b:0x73c,_0x5c66b7:0x730,_0x8893f0:0x793,_0x358b93:0x4a3,_0x43e0cc:0x5d4,_0x275c4d:0x701,_0x372b09:0x6d2,_0x3b609c:0x658,_0x592f5a:0x597},_0x530a8b={_0x2f03ec:0x143,_0x2cb1d6:0x14d},_0x286fe4={_0x50e844:0x278};this[_0x1166c1(_0x4136c8._0x3472d2,0x635,0x5bd,_0x4136c8._0x30167a)]=_0xe3db80['accessToken'],this[_0x1166c1(0x727,0x799,0x69b,_0x4136c8._0x2ca61b)]=trimTrailingSlashes2(_0xe3db80[_0x1166c1(0x71d,_0x4136c8._0x5c66b7,_0x4136c8._0x8893f0,0x73c)]),this[_0x205e1f(_0x4136c8._0x358b93,0x500,_0x4136c8._0x43e0cc,0x49f)]=_0xe3db80[_0x1166c1(0x5f6,0x61f,_0x4136c8._0x275c4d,_0x4136c8._0x372b09)];function _0x205e1f(_0x4b38a2,_0x1e34c5,_0x6dada7,_0x24bd7d){return _0x5a1062(_0x1e34c5-_0x286fe4._0x50e844,_0x24bd7d,_0x6dada7-0x94,_0x24bd7d-0x1af);}this[_0x1166c1(_0x4136c8._0x3b609c,0x646,0x5f0,0x5a6)]=trimTrailingSlashes2(_0xe3db80[_0x1166c1(0x5a3,0x526,_0x4136c8._0x592f5a,0x5a6)]);function _0x1166c1(_0x5d8d46,_0x14e588,_0x51f60d,_0xf08fd1){return _0x1a8b4d(_0x5d8d46,_0xf08fd1-0x70c,_0x51f60d-_0x530a8b._0x2f03ec,_0xf08fd1-_0x530a8b._0x2cb1d6);}this['tokenExchangeApiVersion']=_0xe3db80['tokenExchangeApiVersion'];}async[_0x1a8b4d(-0x76,0x39,0x21,0x1e)](_0xfc273){const _0x590bab={_0x1f1d9b:0x2f,_0x25a47b:0x23,_0x570c99:0x5d,_0xfa3e61:0x42,_0x3c2b9c:0x9d,_0xb432ba:0x2d,_0x96bf0:0xad,_0x866269:0x30,_0x56b37e:0x7,_0x5f0dbc:0x33,_0x9b21a7:0x47,_0x5bce98:0x6c,_0x1fb876:0x62,_0x5406fd:0x10c,_0x457033:0x1a9,_0x47e82e:0xcc,_0x4cdbb5:0x5b,_0x3a268a:0x2c,_0x30aaad:0x4,_0x43bd31:0x7a,_0x4d8de5:0xfe,_0x429d1c:0x6a,_0x17ce73:0x1b7,_0x27b57b:0xa1,_0x43d94c:0x67,_0x33a564:0x5b,_0x24acea:0x98,_0x45e579:0x53,_0x464f37:0x3,_0x1f4374:0xc9,_0x30bf39:0xd2,_0x71ffb0:0x173,_0x52548b:0x74,_0x4a732f:0x191,_0x5096ec:0x51,_0x3fe1e6:0x68,_0x509f20:0x63},_0x12b9f0={_0x1d0f08:0x171},_0x19dc3a={_0x250860:0x12c,_0x2de0d5:0x6d};function _0x342894(_0x4e5324,_0x9e48f1,_0x3f992c,_0x6c5d9e){return _0x1a8b4d(_0x3f992c,_0x4e5324-_0x19dc3a._0x250860,_0x3f992c-0x187,_0x6c5d9e-_0x19dc3a._0x2de0d5);}const _0x4d29a1=await this[_0x39147a(-_0x590bab._0x1f1d9b,_0x590bab._0x25a47b,-_0x590bab._0x570c99,0x23)](this[_0x342894(-0x3a,0x2a,-0x57,_0x590bab._0xfa3e61)]+_0x39147a(_0x590bab._0x3c2b9c,0x78,-_0x590bab._0xb432ba,-0x8),{'method':'GET','headers':new Headers({'accept':_0x39147a(0x103,_0x590bab._0x96bf0,-_0x590bab._0x866269,0x141),'authorization':_0x342894(-_0x590bab._0x56b37e,0x9e,0x92,_0x590bab._0x5f0dbc)+this[_0x342894(-_0x590bab._0x9b21a7,_0x590bab._0x5bce98,-_0x590bab._0x1fb876,-0x38)],'editor-version':_0x39147a(_0x590bab._0x5406fd,0xf8,_0x590bab._0x457033,0xd0),'user-agent':_0x39147a(-0x158,-0xbf,-0x14f,-_0x590bab._0x47e82e),'x-github-api-version':this[_0x39147a(0xa7,_0x590bab._0x4cdbb5,-_0x590bab._0x3a268a,0x76)]}),'signal':_0xfc273});if(!_0x4d29a1['ok'])return{'credential':{'kind':_0x39147a(-_0x590bab._0x30aaad,_0x590bab._0x43bd31,_0x590bab._0x4d8de5,0xbe),'value':this[_0x39147a(-0x106,-0xae,-0x45,-_0x590bab._0x429d1c)]},'endpoints':{'api':this[_0x39147a(_0x590bab._0x5406fd,0xf5,_0x590bab._0x17ce73,0x1e3)]}};const _0x146cc9=await _0x4d29a1[_0x342894(_0x590bab._0x27b57b,_0x590bab._0x43d94c,_0x590bab._0x33a564,-0x15)]();function _0x39147a(_0x531d9f,_0x234197,_0x17fdb3,_0x2bb204){return _0x5a1062(_0x234197- -0x265,_0x17fdb3,_0x17fdb3-_0x12b9f0._0x1d0f08,_0x2bb204-0x61);}return{'credential':{'kind':_0x39147a(0x12d,0x6a,0x11a,0xb3),'value':_0x146cc9[_0x342894(_0x590bab._0x24acea,0x27,-_0x590bab._0x45e579,0x49)]??this['accessToken']},'endpoints':{'api':_0x146cc9['endpoints']?.[_0x342894(_0x590bab._0x464f37,0x1a,_0x590bab._0x1f4374,-0x9f)]??this[_0x39147a(_0x590bab._0x30bf39,0xf5,0x12c,_0x590bab._0x71ffb0)],'originTracker':_0x146cc9['endpoints']?.[_0x39147a(0x63,0x20,0xe9,_0x590bab._0x52548b)],'proxy':_0x146cc9[_0x342894(0x13f,_0x590bab._0x4a732f,0x80,0xe6)]?.[_0x39147a(0x117,_0x590bab._0x5096ec,-_0x590bab._0x3fe1e6,-_0x590bab._0x509f20)],'telemetry':_0x146cc9['endpoints']?.['telemetry']}};}};function trimTrailingSlashes2(_0x1a9f4d){const _0x47c16d={_0x59c70f:0xa6,_0x245589:0x32,_0x26d15b:0x84},_0x1f124f={_0x124cea:0x96,_0x92818:0x10,_0x33a559:0x195};function _0xd6ff3b(_0x2c449f,_0x143b1a,_0x3ca458,_0x3b3881){return _0x1a8b4d(_0x3ca458,_0x3b3881- -_0x1f124f._0x124cea,_0x3ca458-_0x1f124f._0x92818,_0x3b3881-_0x1f124f._0x33a559);}return _0x1a9f4d[_0xd6ff3b(-_0x47c16d._0x59c70f,-0xe6,_0x47c16d._0x245589,-_0x47c16d._0x26d15b)](/\/+$/,'');}function createModelInfo(_0x20ea63){const _0x830da6={_0x2c2ae2:0x44d,_0x302348:0x49d,_0x476c05:0x400,_0x440d6b:0x482,_0x52dba0:0x43a,_0x11b71c:0x3b4,_0x4c4669:0x305,_0x9d0ae:0x2ba,_0x28dae9:0x390,_0x3c6a8c:0x526,_0x568676:0x480,_0x332571:0x3c1,_0x51a343:0x3a9,_0x49ee06:0x524},_0x91f687={_0x125307:0x3c3,_0x213be0:0x11d,_0xaf0545:0xa2};function _0x106868(_0x408814,_0x17727d,_0x4be314,_0x13332b){return _0x1a8b4d(_0x13332b,_0x17727d-_0x91f687._0x125307,_0x4be314-_0x91f687._0x213be0,_0x13332b-_0x91f687._0xaf0545);}const _0x317e62=_0x20ea63[_0x106868(0x3c1,0x401,_0x830da6._0x2c2ae2,_0x830da6._0x302348)]??_0x20ea63[_0x305b77(_0x830da6._0x476c05,0x41d,_0x830da6._0x440d6b,0x41d)],_0x15767d=_0x20ea63[_0x305b77(0x4fc,_0x830da6._0x52dba0,0x47d,_0x830da6._0x11b71c)]?.[_0x106868(_0x830da6._0x4c4669,0x339,_0x830da6._0x9d0ae,_0x830da6._0x28dae9)]?.['max_context_window_tokens'],_0x17fd79=_0x20ea63[_0x305b77(0x504,_0x830da6._0x52dba0,_0x830da6._0x3c6a8c,0x4aa)]?.[_0x305b77(0x52f,_0x830da6._0x568676,_0x830da6._0x332571,_0x830da6._0x51a343)]?.[_0x305b77(0x3ef,0x441,_0x830da6._0x49ee06,0x475)];function _0x305b77(_0x57ebba,_0x536282,_0x165d4d,_0x1f364e){return _0x1a8b4d(_0x1f364e,_0x536282-0x50a,_0x165d4d-0x7c,_0x1f364e-0xe3);}const _0x3d9cc6=_0x15767d!==void 0x0||_0x17fd79!==void 0x0?{..._0x15767d!==void 0x0?{'contextWindow':_0x15767d}:{},..._0x17fd79!==void 0x0?{'maxOutput':_0x17fd79}:{}}:void 0x0;return{'id':_0x20ea63['id'],'name':_0x20ea63[_0x305b77(0x532,0x519,0x481,0x5ca)]??_0x20ea63['id'],..._0x3d9cc6?{'limits':_0x3d9cc6}:{},..._0x317e62?{'supportedEndpoints':_0x317e62}:{}};}function deduplicateModels(_0x210f96){const _0x3d653b={_0x3beb34:0x173,_0x22303a:0x223,_0x50f6d7:0x508,_0x24e47b:0x3f1,_0x379993:0x457,_0x114306:0x526,_0x89efd2:0x2f1,_0x43c0da:0x38e},_0x95d751={_0x3b4fd4:0x8c},_0x2088ed=new Map();function _0x91fc7b(_0xa3fa4e,_0x37ca89,_0x4da291,_0x2f96e9){return _0x5a1062(_0xa3fa4e- -0xeb,_0x4da291,_0x4da291-_0x95d751._0x3b4fd4,_0x2f96e9-0xd0);}for(const _0x28f34b of _0x210f96){!_0x2088ed[_0x91fc7b(0x1b6,_0x3d653b._0x3beb34,0x14d,_0x3d653b._0x22303a)](_0x28f34b['id'])&&_0x2088ed['set'](_0x28f34b['id'],_0x28f34b);}function _0x41f8dd(_0x2cdffa,_0x49d026,_0x528814,_0x3fe12b){return _0x5a1062(_0x528814-0x17e,_0x49d026,_0x528814-0x1e4,_0x3fe12b-0x14);}return Array[_0x41f8dd(_0x3d653b._0x50f6d7,_0x3d653b._0x24e47b,_0x3d653b._0x379993,_0x3d653b._0x114306)](_0x2088ed[_0x41f8dd(_0x3d653b._0x89efd2,0x31b,0x3dd,_0x3d653b._0x43c0da)]());}function hasUserPromptContent(_0x42be2a){const _0x179d64={_0x3ce560:0x20d,_0x1c2eb1:0x31b,_0x5b97d0:0x2a2,_0x5b7048:0x1d3,_0x2b96fd:0x255,_0x167db1:0x191,_0x5be8db:0x24f},_0x1d89fb={_0x3df715:0x269,_0xb03bd4:0x3e2,_0x454f42:0x263,_0x4c578d:0x1db,_0x125b19:0x26b,_0x205243:0x187,_0x189617:0x26b,_0x29034a:0x32d,_0x55d048:0x136,_0x31b4c4:0x1d0,_0x5c1ae7:0x14c,_0x45156e:0x125},_0x2e428e={_0x499b1f:0x6d,_0xd93307:0x8b,_0x474ad3:0x19f},_0x4737b0={_0x1a6a93:0x2f3};function _0x392a13(_0x1469b4,_0x5aed4c,_0x3fc34f,_0x4db7f4){return _0x1a8b4d(_0x5aed4c,_0x3fc34f-_0x4737b0._0x1a6a93,_0x3fc34f-0x17,_0x4db7f4-0x17c);}function _0x90172b(_0x3ed35f,_0x5bd6ad,_0x132d0e,_0x199d01){return _0x1a8b4d(_0x199d01,_0x3ed35f- -_0x2e428e._0x499b1f,_0x132d0e-_0x2e428e._0xd93307,_0x199d01-_0x2e428e._0x474ad3);}if(typeof _0x42be2a===_0x392a13(0x26b,_0x179d64._0x3ce560,0x2d4,_0x179d64._0x1c2eb1))return _0x42be2a['trim']()[_0x392a13(0x26e,_0x179d64._0x5b97d0,0x2f5,0x236)]>0x0;if(!Array[_0x392a13(0x18c,0x178,_0x179d64._0x5b7048,0x10b)](_0x42be2a))return![];return _0x42be2a[_0x392a13(_0x179d64._0x2b96fd,0x1c0,_0x179d64._0x167db1,_0x179d64._0x5be8db)](_0x2459d2=>{const _0x5900ac={_0x34f0c6:0x3ad},_0x411195={_0x1d274e:0x5f,_0x453da3:0x36a};function _0xc36bbb(_0x9a6bd3,_0x5d7300,_0x2756d8,_0x4b58f9){return _0x392a13(_0x9a6bd3-_0x411195._0x1d274e,_0x5d7300,_0x4b58f9- -_0x411195._0x453da3,_0x4b58f9-0x1ee);}if(!_0x2459d2||typeof _0x2459d2!=='object')return![];const _0x56c500=_0x2459d2;function _0xf021b1(_0x1e3bfd,_0x2513f8,_0x2ef403,_0x261818){return _0x90172b(_0x2513f8-_0x5900ac._0x34f0c6,_0x2513f8-0x9,_0x2ef403-0xad,_0x261818);}return(_0x56c500[_0xf021b1(_0x1d89fb._0x3df715,0x2f8,_0x1d89fb._0xb03bd4,_0x1d89fb._0x454f42)]==='input_text'||_0x56c500[_0xf021b1(0x28b,0x2f8,0x2f3,0x358)]===_0xf021b1(_0x1d89fb._0x4c578d,_0x1d89fb._0x125b19,0x2ac,0x26f))&&typeof _0x56c500[_0xf021b1(_0x1d89fb._0x205243,_0x1d89fb._0x189617,_0x1d89fb._0x29034a,0x331)]==='string'&&_0x56c500[_0xc36bbb(-_0x1d89fb._0x55d048,-0x9a,-_0x1d89fb._0x31b4c4,-_0x1d89fb._0x5c1ae7)][_0xc36bbb(-0xcb,-0xb8,-_0x1d89fb._0x45156e,-0xfc)]()['length']>0x0;});}function _isUserPromptEntry(_0x44c88e){const _0x1d3046={_0x28225e:0x134,_0x41caf3:0xb5,_0x4d5ef4:0x16f,_0xdfde2d:0x24,_0x4fb691:0x2c,_0x15d004:0xd6,_0x5d31e7:0x14,_0x1e6e1a:0x70,_0x325c54:0xff,_0x317bca:0x18b,_0x45bd74:0x59,_0x5ed5e5:0x2ca,_0x382fb0:0x395};if(!_0x44c88e||typeof _0x44c88e!==_0x5a9e5e(_0x1d3046._0x28225e,_0x1d3046._0x41caf3,0x194,_0x1d3046._0x4d5ef4))return![];function _0x5a9e5e(_0x4cb10d,_0x51a437,_0x102423,_0x1a06c5){return _0x5a1062(_0x4cb10d- -0x236,_0x51a437,_0x102423-0x6,_0x1a06c5-0x67);}const _0x55c2cc=_0x44c88e;function _0x335e5e(_0x8e9080,_0x5b2679,_0x557479,_0x27ed18){return _0x1a8b4d(_0x27ed18,_0x8e9080-0x351,_0x557479-0xd4,_0x27ed18-0x82);}if(_0x55c2cc[_0x5a9e5e(-_0x1d3046._0xdfde2d,0x55,-_0x1d3046._0x4fb691,-_0x1d3046._0x15d004)]!==_0x5a9e5e(_0x1d3046._0x5d31e7,-_0x1d3046._0x1e6e1a,0xee,_0x1d3046._0x325c54))return![];if(_0x55c2cc[_0x5a9e5e(0xac,_0x1d3046._0x317bca,_0x1d3046._0x45bd74,-0x2d)]!==void 0x0&&_0x55c2cc['type']!==_0x335e5e(0x34a,_0x1d3046._0x5ed5e5,_0x1d3046._0x382fb0,0x2b0))return![];return hasUserPromptContent(_0x55c2cc['content']);}function determineInitiator(_0x50e1ac){const _0x4b5d40={_0x55e1c2:0x61c,_0x492427:0x707,_0x22f75d:0x6da,_0xc095cc:0x553,_0x4c336b:0x5fa,_0x118833:0x5ba,_0x101735:0x572,_0xc50b29:0x68f,_0x5e4ca6:0x713,_0x4c26a5:0x609,_0x3f0aba:0x224,_0x2d16af:0x127,_0x3a1294:0x172,_0xd2f504:0x199,_0x1ce0af:0xcc,_0x122193:0xf0,_0x30922c:0x685,_0x5be338:0x45,_0x25ecfb:0x103,_0x4dd9d3:0x6c9,_0x1a35bc:0x137,_0x2450ac:0xce,_0x7ac97:0xb2},_0x278251={_0x5c7317:0x3f},_0x3effa8={_0x4a1df9:0x210,_0x5bd33a:0x5e,_0x27dd7b:0x3a};if(!_0x50e1ac||typeof _0x50e1ac!==_0x354aa1(_0x4b5d40._0x55e1c2,_0x4b5d40._0x492427,_0x4b5d40._0x492427,_0x4b5d40._0x22f75d))return _0x354aa1(_0x4b5d40._0xc095cc,_0x4b5d40._0x4c336b,_0x4b5d40._0x118833,_0x4b5d40._0x101735);const _0x274b1f=_0x1b190e(0x1c3,0x10e,0x23f,0x172)in _0x50e1ac?_0x50e1ac[_0x354aa1(_0x4b5d40._0xc50b29,_0x4b5d40._0x5e4ca6,0x629,_0x4b5d40._0x4c26a5)]:_0x1b190e(0x257,_0x4b5d40._0x3f0aba,_0x4b5d40._0x2d16af,0x199)in _0x50e1ac?_0x50e1ac[_0x1b190e(0x173,0x1d1,_0x4b5d40._0x3a1294,_0x4b5d40._0xd2f504)]:void 0x0;function _0x1b190e(_0x5e96a7,_0x1931f2,_0x2fd462,_0x57e6c0){return _0x1a8b4d(_0x1931f2,_0x57e6c0-_0x3effa8._0x4a1df9,_0x2fd462-_0x3effa8._0x5bd33a,_0x57e6c0-_0x3effa8._0x27dd7b);}if(!Array[_0x1b190e(_0x4b5d40._0x1ce0af,0x156,0xf6,_0x4b5d40._0x122193)](_0x274b1f)||_0x274b1f[_0x354aa1(0x5f7,0x75c,0x6c9,_0x4b5d40._0x30922c)]===0x0)return _0x1b190e(0x54,_0x4b5d40._0x5be338,0xbb,_0x4b5d40._0x25ecfb);function _0x354aa1(_0x252bcb,_0x102a54,_0x5c506e,_0x774c36){return _0x5a1062(_0x5c506e-0x39d,_0x774c36,_0x5c506e-_0x278251._0x5c7317,_0x774c36-0xb4);}return _isUserPromptEntry(_0x274b1f[_0x274b1f[_0x354aa1(0x696,0x60d,_0x4b5d40._0x4dd9d3,0x6f1)]-0x1])?'user':_0x1b190e(_0x4b5d40._0x1a35bc,_0x4b5d40._0x2450ac,_0x4b5d40._0x7ac97,0x103);}function isUnsupportedApiForModel(_0x586d86){const _0x45b79c={_0x3249bb:0x4ba,_0x5510b8:0x469,_0x640d8d:0x516,_0x1cac02:0x466,_0x1405cb:0x197,_0x3a2408:0x1b8},_0x59554e={_0x2a2051:0x50a},_0x546c84={_0x5b0d70:0x185,_0x2ce5f3:0x36};function _0x2acd00(_0x235f54,_0x5e0eba,_0x140c03,_0x3b9491){return _0x1a8b4d(_0x235f54,_0x140c03-_0x546c84._0x5b0d70,_0x140c03-0x6d,_0x3b9491-_0x546c84._0x2ce5f3);}function _0x281186(_0x1d5286,_0x2448be,_0x1d0610,_0x1299c1){return _0x1a8b4d(_0x1d0610,_0x1d5286-_0x59554e._0x2a2051,_0x1d0610-0x2c,_0x1299c1-0xb8);}return _0x586d86[_0x281186(_0x45b79c._0x3249bb,_0x45b79c._0x5510b8,_0x45b79c._0x640d8d,_0x45b79c._0x1cac02)](_0x2acd00(_0x45b79c._0x1405cb,0x20e,0x13f,_0x45b79c._0x3a2408));}function createResponseError(_0x5616ae,_0x3d22e1){const _0x3cd976={_0xe0a7e4:0x663,_0x293c41:0x70b,_0x2d36c6:0x222,_0x41b916:0x25c,_0x17ed72:0x279,_0x17e6fd:0x186},_0x3ec92b={_0x38cdf2:0x710,_0x1f7a2d:0xd3},_0x581149={_0x2681a2:0xc6};if(_0x5616ae===0x191||_0x5616ae===0x193)return new Error(_0x582125(0x410,0x3d1,0x4a9,0x454));if(_0x5616ae===0x198||_0x5616ae===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');function _0x582125(_0x28bf95,_0x1b34c0,_0x5ee72e,_0x55210f){return _0x1a8b4d(_0x5ee72e,_0x1b34c0-0x3b9,_0x5ee72e-_0x581149._0x2681a2,_0x55210f-0x1cf);}function _0x45941b(_0x2e42c9,_0x13bade,_0x31ae26,_0x35880d){return _0x1a8b4d(_0x35880d,_0x2e42c9-_0x3ec92b._0x38cdf2,_0x31ae26-_0x3ec92b._0x1f7a2d,_0x35880d-0x10f);}if(_0x5616ae===0x190)return new Error(_0x45941b(0x6d2,0x64d,_0x3cd976._0xe0a7e4,_0x3cd976._0x293c41)+_0x3d22e1);return new Error(_0x3d22e1||_0x582125(_0x3cd976._0x2d36c6,_0x3cd976._0x41b916,_0x3cd976._0x17ed72,_0x3cd976._0x17e6fd)+_0x5616ae);}var GitHubModel=class extends OpenAiModel{[_0x1a8b4d(-0x19,-0x6d,-0x124,-0x7e)];[_0x5a1062(0x375,0x41b,0x42f,0x297)]=new Map();[_0x1a8b4d(-0x1c,0xb,0x1c,-0x6c)];constructor(_0x46a5b3={}){const _0xd9acc5={_0x1bceaa:0x533,_0x3e73aa:0x674,_0x5110e5:0x707,_0x5dc682:0x640,_0x39c2f2:0x5c5,_0x5231b6:0x57e,_0x4e5541:0x503,_0x1123d6:0x2c8,_0x531b2e:0x437,_0x5c0699:0x373,_0x31eed4:0x6b1,_0x158f4d:0x60c,_0x432ba5:0x4f6,_0x39edd6:0x630,_0x55a51c:0x5c0,_0xda668:0x5fa,_0x519e94:0x474,_0xd608d8:0x337,_0x2ef2f9:0x43c,_0xce2e07:0x46c,_0x33b4d8:0x518,_0x49695b:0x76f,_0x50cde6:0x78a,_0x4c6e52:0x6bc,_0x15aca2:0x60a,_0xe20727:0x659,_0xb377ac:0x523,_0x5ede98:0x67b,_0x2ad2b8:0x61d,_0x1d7e82:0x394,_0x51cafc:0x2b8,_0x4b59d2:0x5c4,_0x42c1d1:0x44d,_0x525ccf:0x5a6,_0x1f7457:0x506,_0x26bf52:0x533,_0x29832e:0x626,_0x1721cc:0x6cb,_0x27c280:0x56d,_0x3f8d00:0x57b,_0xbb8478:0x514,_0x3f18b2:0x3ef},_0x2b4925={_0xfcbce6:0x84},_0x458b65={_0x287582:0x676,_0x16ddf5:0x74},_0x261413=trimTrailingSlashes2(_0x46a5b3['baseUrl']??'https://api.individual.githubcopilot.com'),_0x3cbd19=_0x46a5b3[_0x475e36(0x3f9,_0xd9acc5._0x1bceaa,0x4ea,0x4ac)]??globalThis['fetch'],_0x1a810a=_0x46a5b3[_0x20e2ac(_0xd9acc5._0x3e73aa,_0xd9acc5._0x5110e5,_0xd9acc5._0x5dc682,0x5db)]??(_0x46a5b3[_0x20e2ac(_0xd9acc5._0x39c2f2,_0xd9acc5._0x5231b6,_0xd9acc5._0x4e5541,0x57b)]?new GitHubAccessTokenResolver({'accessToken':_0x46a5b3[_0x475e36(_0xd9acc5._0x1123d6,_0xd9acc5._0x531b2e,0x419,_0xd9acc5._0x5c0699)],'baseUrl':_0x261413,'fetch':_0x3cbd19,'githubApiUrl':_0x46a5b3['githubApiUrl']??'https://api.github.com','tokenExchangeApiVersion':_0x46a5b3[_0x20e2ac(0x6c5,_0xd9acc5._0x31eed4,_0xd9acc5._0x158f4d,0x694)]??_0x20e2ac(_0xd9acc5._0x432ba5,_0xd9acc5._0x39edd6,_0xd9acc5._0x55a51c,_0xd9acc5._0xda668)}):void 0x0),_0x2462ff=_0x46a5b3[_0x20e2ac(0x463,_0xd9acc5._0x519e94,0x551,0x4cb)]??'vscode/1.104.2';function _0x20e2ac(_0x197e7b,_0x204156,_0x518cb9,_0x4ebd06){return _0x1a8b4d(_0x197e7b,_0x518cb9-_0x458b65._0x287582,_0x518cb9-0xfe,_0x4ebd06-_0x458b65._0x16ddf5);}function _0x475e36(_0x11bf29,_0x50a487,_0x17a410,_0x215f1b){return _0x1a8b4d(_0x17a410,_0x215f1b-0x4e6,_0x17a410-_0x2b4925._0xfcbce6,_0x215f1b-0xa5);}const _0x5f48a7=_0x46a5b3[_0x475e36(0x393,_0xd9acc5._0xd608d8,_0xd9acc5._0x2ef2f9,0x3b4)]??_0x475e36(_0xd9acc5._0xce2e07,0x4fe,0x49f,_0xd9acc5._0x33b4d8),_0x5c76a8=({body:_0x2157b3})=>{return{'editor-plugin-version':_0x5f48a7,'editor-version':_0x2462ff,'x-initiator':determineInitiator(_0x2157b3),'x-request-id':randomUUID()};},_0x54ebab={'apiKey':_0x46a5b3[_0x20e2ac(_0xd9acc5._0x49695b,_0xd9acc5._0x50cde6,_0xd9acc5._0x4c6e52,0x779)],'baseUrl':_0x261413,'fetch':_0x3cbd19,'maxTokens':_0x46a5b3[_0x20e2ac(0x4f9,_0xd9acc5._0x15aca2,0x5df,_0xd9acc5._0xe20727)],'model':_0x46a5b3[_0x475e36(0x5c0,0x4bd,0x440,_0xd9acc5._0xb377ac)],'reasoning':_0x46a5b3[_0x20e2ac(0x669,0x664,_0xd9acc5._0x5ede98,_0xd9acc5._0x2ad2b8)],'providerSessionResolver':_0x1a810a,'requestMutators':_0x46a5b3[_0x475e36(0x2ec,_0xd9acc5._0x1d7e82,_0xd9acc5._0x51cafc,0x370)],'headerResolver':_0x5c76a8};super(_0x54ebab),this[_0x475e36(_0xd9acc5._0x4b59d2,_0xd9acc5._0x42c1d1,0x550,0x4f1)]=_0x46a5b3['surface']??_0x475e36(0x55a,_0xd9acc5._0x525ccf,_0xd9acc5._0x1f7457,_0xd9acc5._0x26bf52),this[_0x20e2ac(0x564,0x566,0x609,0x58d)]=new AnthropicModel({'apiKey':_0x46a5b3[_0x20e2ac(_0xd9acc5._0x29832e,_0xd9acc5._0x1721cc,_0xd9acc5._0x4c6e52,_0xd9acc5._0x31eed4)],'authScheme':_0x475e36(_0xd9acc5._0x27c280,_0xd9acc5._0x3f8d00,0x574,0x502),'baseUrl':_0x261413,'fetch':_0x3cbd19,'headerResolver':_0x5c76a8,'maxTokens':_0x46a5b3[_0x475e36(0x374,_0xd9acc5._0xbb8478,_0xd9acc5._0x3f18b2,0x44f)],'model':_0x46a5b3['model'],'reasoning':_0x46a5b3[_0x475e36(0x4e4,0x415,0x561,0x4eb)],'providerSessionResolver':_0x1a810a,'requestMutators':_0x46a5b3['requestMutators']});}[_0x1a8b4d(-0x16a,-0x144,-0x211,-0xa3)](){const _0x5ef840={_0x507bd1:0x57d,_0x45a3e4:0x4ee},_0x1843c2={_0x58b490:0x307};function _0x2e4051(_0x26570e,_0x21e065,_0x2206dd,_0x3cd7aa){return _0x5a1062(_0x21e065-_0x1843c2._0x58b490,_0x2206dd,_0x2206dd-0x9,_0x3cd7aa-0x2a);}return new Error(_0x2e4051(0x47b,0x530,_0x5ef840._0x507bd1,_0x5ef840._0x45a3e4));}[_0x5a1062(0x1f4,0x141,0x1c8,0x210)](_0x51dfc3){const _0x5a3a27={_0x15963e:0x5e7,_0x39243d:0x4ad,_0x412bf6:0x4a9},_0x478052={_0xc6cb59:0xe0},_0x3bd484=this[_0x34db2d(0x5a8,_0x5a3a27._0x15963e,0x4c4,0x5d5)]['get'](_0x51dfc3);function _0x126963(_0x480db6,_0x4d1b26,_0x1ecfd6,_0xf2ca35){return _0x1a8b4d(_0x4d1b26,_0x480db6-0x64,_0x1ecfd6-0xf5,_0xf2ca35-_0x478052._0xc6cb59);}function _0x34db2d(_0x49ccbf,_0x315c2b,_0x3f505b,_0x4680a9){return _0x5a1062(_0x49ccbf-0x233,_0x3f505b,_0x3f505b-0x144,_0x4680a9-0xe3);}if(!_0x3bd484)return![];return!_0x3bd484[_0x34db2d(0x50d,0x51e,0x5f5,0x440)]('/chat/completions')&&_0x3bd484['includes'](_0x34db2d(0x586,_0x5a3a27._0x39243d,_0x5a3a27._0x412bf6,0x49e));}[_0x1a8b4d(-0x3a,-0x121,-0x1ac,-0x8a)](_0x461a87){const _0x5eeabc={_0x48ee91:0x6de,_0x21c780:0x61d,_0x50e107:0x618,_0x53fce8:0x60d,_0x348bae:0x52d,_0x38e61b:0x62b,_0x5e2099:0x5ed,_0x202219:0x6bc,_0x333b04:0x72f,_0xf9af28:0x5c9,_0x44dd61:0x555},_0x2ce9da={_0x26ca03:0x151},_0x14d4f1={_0x5e18e5:0x50f,_0x1fb842:0x1ba};function _0xa0f5dc(_0x3ad8f7,_0x19604d,_0xb469d6,_0x149c9f){return _0x1a8b4d(_0x19604d,_0x149c9f-_0x14d4f1._0x5e18e5,_0xb469d6-0xd6,_0x149c9f-_0x14d4f1._0x1fb842);}const _0x55ae1c=this[_0x1409df(_0x5eeabc._0x48ee91,_0x5eeabc._0x21c780,_0x5eeabc._0x50e107,0x7ac)][_0xa0f5dc(0x507,_0x5eeabc._0x53fce8,0x59a,_0x5eeabc._0x348bae)](_0x461a87[_0xa0f5dc(_0x5eeabc._0x38e61b,0x582,_0x5eeabc._0x5e2099,0x54c)]);if(!_0x55ae1c)return![];function _0x1409df(_0x3755ae,_0x5c1426,_0x1d9d4d,_0x1f5419){return _0x5a1062(_0x3755ae-0x369,_0x5c1426,_0x1d9d4d-_0x2ce9da._0x26ca03,_0x1f5419-0x139);}if(resolveOpenAiReasoningConfig(_0x461a87['reasoning']))return _0x55ae1c['includes'](_0x1409df(_0x5eeabc._0x202219,0x6d9,_0x5eeabc._0x333b04,0x60a));return this[_0x1409df(0x55d,0x4f6,_0x5eeabc._0xf9af28,_0x5eeabc._0x44dd61)](_0x461a87['model']);}['markModelAsResponsesOnly'](_0x3290ae){const _0x3210f6={_0x5da7f8:0x3ac,_0x36f7d6:0x3ad,_0x242cfc:0x304,_0x30d6c8:0x2c7},_0x5e4024={_0x1c696d:0x126},_0x18df3e={_0x55b674:0x37};function _0x1b813d(_0x45d549,_0x519d91,_0x223192,_0x1e746a){return _0x5a1062(_0x45d549-_0x18df3e._0x55b674,_0x519d91,_0x223192-0xdd,_0x1e746a-0xde);}function _0x2ef7cb(_0x35b9bd,_0x28b9f6,_0x26731b,_0x6078cc){return _0x5a1062(_0x35b9bd-0x1e,_0x6078cc,_0x26731b-_0x5e4024._0x1c696d,_0x6078cc-0xd8);}this[_0x1b813d(_0x3210f6._0x5da7f8,_0x3210f6._0x36f7d6,0x466,_0x3210f6._0x242cfc)][_0x1b813d(0x325,0x241,0x2b7,0x2cc)](_0x3290ae,[_0x2ef7cb(0x371,0x37f,_0x3210f6._0x30d6c8,0x3d0)]);}[_0x5a1062(0x2a7,0x34e,0x37c,0x257)](_0x16b0fe){const _0x101f1a={_0x3c60e6:0x76,_0x576527:0x106,_0x2d80d8:0x1c1,_0x2553aa:0x143,_0x555d72:0x1ae,_0x27c274:0x17d,_0x2bb993:0x3c8,_0x4794a6:0x2d9,_0x2d1074:0x3e8},_0x783bc2={_0x923582:0x1dc},_0x10bd00={_0x2beda7:0x3b2,_0x1a2e12:0x14e};function _0xd6c627(_0x42abe0,_0x3f21a3,_0x2cfb79,_0x19cba8){return _0x5a1062(_0x2cfb79- -_0x10bd00._0x2beda7,_0x3f21a3,_0x2cfb79-_0x10bd00._0x1a2e12,_0x19cba8-0x7f);}function _0x3915c3(_0x49c812,_0xe26f5,_0x534796,_0x51304b){return _0x5a1062(_0x51304b-0x37,_0x534796,_0x534796-_0x783bc2._0x923582,_0x51304b-0x51);}if(_0x16b0fe instanceof OpenAiApiError)return createResponseError(_0x16b0fe[_0xd6c627(-0x40,-_0x101f1a._0x3c60e6,-_0x101f1a._0x576527,-_0x101f1a._0x2d80d8)],_0x16b0fe[_0xd6c627(-_0x101f1a._0x2553aa,-_0x101f1a._0x555d72,-_0x101f1a._0x27c274,-0x131)]||_0x16b0fe[_0x3915c3(_0x101f1a._0x2bb993,_0x101f1a._0x4794a6,_0x101f1a._0x2d1074,0x35a)]);return _0x16b0fe;}[_0x1a8b4d(0x88,0x41,0xd6,-0x31)](_0x4b2614,_0x380225){const _0x43081f={_0x3379e3:0x1f6,_0x11e094:0x1e2,_0x40f5e0:0xd7,_0x125afe:0x8e,_0x42ecad:0x61,_0x2f7d77:0x129,_0x273e95:0x11b,_0x165f92:0x25e,_0x51fac4:0x175,_0xd8cd04:0x1e7,_0x1a82a8:0x13e,_0x814165:0xff,_0x1544ae:0x9d,_0x35551a:0x21c,_0x3bffae:0x173,_0x4c2ab3:0x1fd,_0x1bd1ab:0x129,_0x5d49d7:0x2f,_0x1a3bec:0xd5,_0x43991e:0x1b},_0x4a3edc={_0x2666ea:0x204,_0x24a748:0x9e};function _0x5937f8(_0x5843e9,_0x142459,_0x10ec21,_0x4574c3){return _0x5a1062(_0x4574c3- -_0x4a3edc._0x2666ea,_0x10ec21,_0x10ec21-0xdc,_0x4574c3-_0x4a3edc._0x24a748);}function _0x4b9012(_0x4cedb0,_0x2692b5,_0x18ac9c,_0x468e64){return _0x5a1062(_0x18ac9c- -0x244,_0x2692b5,_0x18ac9c-0x96,_0x468e64-0x1e9);}switch(this[_0x5937f8(_0x43081f._0x3379e3,0xc3,_0x43081f._0x11e094,0x131)]){case'anthropic-messages':return this['anthropicDelegate'][_0x5937f8(_0x43081f._0x40f5e0,_0x43081f._0x125afe,_0x43081f._0x42ecad,_0x43081f._0x2f7d77)](_0x4b2614,_0x380225);case'openai-chat-completions':return this[_0x5937f8(_0x43081f._0x273e95,0x3f,0x1ca,0x108)](_0x4b2614,_0x380225);case'openai-responses':return this[_0x5937f8(_0x43081f._0x165f92,0x139,0x18b,_0x43081f._0x51fac4)](_0x4b2614,_0x380225);case'openai-responses-ws':return this[_0x5937f8(_0x43081f._0xd8cd04,0x1a9,_0x43081f._0x1a82a8,_0x43081f._0x814165)](_0x4b2614,_0x380225);case _0x5937f8(0x1cf,_0x43081f._0x1544ae,_0x43081f._0x35551a,_0x43081f._0x3bffae):return this[_0x5937f8(_0x43081f._0x4c2ab3,0xbe,0xaa,_0x43081f._0x1bd1ab)](_0x4b2614,_0x380225);}throw new Error(_0x5937f8(_0x43081f._0x5d49d7,-_0x43081f._0x1a3bec,_0x43081f._0x43991e,0x11)+String(this['surface']));}['streamViaConfiguredSurface'](_0x27ad9e,_0x1bee43){const _0x3958a8={_0x353365:0x8,_0x1779b6:0x1d,_0x3ddc04:0x37,_0x433d3e:0x6c,_0x5c4e13:0xfc,_0x33e632:0x41,_0x4359c7:0xbd,_0x12a8b3:0xdc,_0x431722:0x2d,_0x381387:0xd4,_0x16b983:0x17,_0x3bbd2c:0x111,_0x2f62ee:0x1ea,_0x22230e:0x108,_0x46e64b:0x9,_0x4917d8:0x57,_0x37da03:0x7d,_0x251cb2:0x3e,_0x28b006:0x70,_0x234c07:0x4f},_0x44cac7={_0x1b109b:0x160},_0x1452ce={_0x3218d9:0x2c,_0x1ac045:0x15e};function _0x414bd7(_0x325e26,_0x4e976f,_0x1484c7,_0x2425fd){return _0x1a8b4d(_0x2425fd,_0x1484c7-_0x1452ce._0x3218d9,_0x1484c7-_0x1452ce._0x1ac045,_0x2425fd-0x76);}switch(this[_0x414bd7(-_0x3958a8._0x353365,-_0x3958a8._0x1779b6,_0x3958a8._0x3ddc04,_0x3958a8._0x433d3e)]){case'anthropic-messages':return this[_0x414bd7(-_0x3958a8._0x5c4e13,-0x54,-_0x3958a8._0x33e632,-0x6)][_0x2059c8(0xe4,-_0x3958a8._0x4359c7,_0x3958a8._0x12a8b3,_0x3958a8._0x431722)](_0x27ad9e,_0x1bee43);case _0x2059c8(_0x3958a8._0x381387,0xc2,-_0x3958a8._0x16b983,0x2):return this[_0x414bd7(-0x73,-0x137,-0x135,-0x19d)](_0x27ad9e,_0x1bee43);case _0x414bd7(-0xfe,-0x199,-_0x3958a8._0x3bbd2c,-0xf3):return this[_0x2059c8(-0x144,-0x199,-_0x3958a8._0x2f62ee,-_0x3958a8._0x22230e)](_0x27ad9e,_0x1bee43);case'openai-responses-ws':return this[_0x414bd7(-0x8d,0xc6,-_0x3958a8._0x46e64b,-0x6c)](_0x27ad9e,_0x1bee43);case'auto':return this['stream'](_0x27ad9e,_0x1bee43);}function _0x2059c8(_0x17cb54,_0x5e46e2,_0x29e8b4,_0x4f8db5){return _0x5a1062(_0x4f8db5- -0x2e6,_0x29e8b4,_0x29e8b4-0x1d8,_0x4f8db5-_0x44cac7._0x1b109b);}throw new Error(_0x414bd7(-_0x3958a8._0x4917d8,-0xbf,-0xe9,-_0x3958a8._0x37da03)+String(this[_0x2059c8(-_0x3958a8._0x251cb2,0x13b,_0x3958a8._0x28b006,_0x3958a8._0x234c07)]));}async['complete'](_0x48c9ff,_0x471b20){const _0x15442e={_0x216f7f:0xdd,_0x20e649:0xd6,_0x1e65ac:0x155,_0x4ce672:0x10d,_0x2d55c4:0x166,_0x323400:0x42,_0x2b0c23:0x54,_0x3c0f8b:0x18b,_0x12432a:0x1e1,_0xb177e3:0x269,_0x3afa89:0x2a,_0x21d0cd:0x8,_0x17be17:0x19,_0x290eb4:0xf3,_0x2376e6:0x1f9,_0x153a28:0xdf,_0x1d5452:0xdb,_0x2bbcab:0x65,_0x3789df:0xd3,_0x58bad6:0x199,_0x186631:0xb0},_0x444631={_0x146bf8:0x5f,_0x1c417e:0x4},_0x42736e={_0x22d8b0:0xa2,_0x4f5171:0x1c7},_0x312f6e=this[_0x372d19(-_0x15442e._0x216f7f,-_0x15442e._0x20e649,-0x170,-0x19d)](_0x48c9ff);if(this[_0x2526fe(_0x15442e._0x1e65ac,_0x15442e._0x4ce672,_0x15442e._0x2d55c4,0xf4)]!==_0x372d19(_0x15442e._0x323400,-0x55,-_0x15442e._0x2b0c23,0x66))return this[_0x2526fe(_0x15442e._0x3c0f8b,_0x15442e._0x12432a,0xba,0x21c)](_0x312f6e,_0x471b20);function _0x372d19(_0x2e6fce,_0x4e84d1,_0x2b1498,_0x5e63ba){return _0x1a8b4d(_0x2e6fce,_0x4e84d1- -_0x42736e._0x22d8b0,_0x2b1498-_0x42736e._0x4f5171,_0x5e63ba-0x43);}if(this['shouldPreferResponsesApi'](_0x312f6e))return this[_0x2526fe(0x199,0x158,_0x15442e._0xb177e3,0xec)](_0x312f6e,_0x471b20);function _0x2526fe(_0xd8389b,_0x4aba4a,_0x178b11,_0x3e305f){return _0x1a8b4d(_0x3e305f,_0xd8389b-0x14a,_0x178b11-_0x444631._0x146bf8,_0x3e305f-_0x444631._0x1c417e);}try{return await this[_0x2526fe(-_0x15442e._0x3afa89,_0x15442e._0x21d0cd,0xa,_0x15442e._0x17be17)](_0x312f6e,_0x471b20);}catch(_0x4f5bfd){if(_0x4f5bfd instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x4f5bfd[_0x372d19(-_0x15442e._0x290eb4,-0x197,-0x26f,-_0x15442e._0x2376e6)]))return this[_0x372d19(-_0x15442e._0x153a28,-0x141,-0x1d7,-0xe9)](_0x312f6e[_0x372d19(-_0x15442e._0x1d5452,-_0x15442e._0x2bbcab,0x7f,-_0x15442e._0x3789df)]),this[_0x2526fe(_0x15442e._0x58bad6,0x1fc,0xbb,_0x15442e._0x186631)](_0x312f6e,_0x471b20);throw this['mapApiError'](_0x4f5bfd);}throw _0x4f5bfd;}}async*['stream'](_0x50ace3,_0x2f61ad){const _0x3add20={_0x2366da:0x70b,_0x2043b5:0x598,_0x36247a:0x675,_0x81cb45:0x763,_0x3ebeeb:0x545,_0x3f1691:0x5e2,_0x237806:0x588,_0x2f0a80:0x5c2,_0x557cbe:0x58f,_0x57db72:0x629,_0x443ddb:0x659,_0x2f103d:0xd5,_0x303f58:0x7e,_0xf185b2:0x7c5,_0x1e6c51:0x127,_0x3b4e65:0x31},_0x4c5366={_0x48eb88:0xaa},_0x15581a={_0x370057:0x20d,_0x585cbe:0x19a},_0x1a54bf=this[_0x456b3f(_0x3add20._0x2366da,_0x3add20._0x2043b5,_0x3add20._0x36247a,0x59c)](_0x50ace3);function _0x11cea4(_0x482459,_0x495963,_0x331c79,_0x3e9487){return _0x5a1062(_0x495963- -_0x15581a._0x370057,_0x3e9487,_0x331c79-0xb2,_0x3e9487-_0x15581a._0x585cbe);}if(this[_0x456b3f(_0x3add20._0x81cb45,0x64a,0x6b4,0x645)]!=='auto'){yield*this[_0x11cea4(0xcd,0x55,0x7e,0x138)](_0x1a54bf,_0x2f61ad);return;}function _0x456b3f(_0x19a154,_0x491def,_0x571ba6,_0x9f3893){return _0x1a8b4d(_0x9f3893,_0x571ba6-0x6a9,_0x571ba6-0x126,_0x9f3893-_0x4c5366._0x48eb88);}if(this[_0x456b3f(_0x3add20._0x3ebeeb,_0x3add20._0x3f1691,_0x3add20._0x237806,0x519)](_0x1a54bf)){yield*this['responseStream'](_0x1a54bf,_0x2f61ad);return;}try{yield*this[_0x456b3f(_0x3add20._0x2f0a80,_0x3add20._0x557cbe,_0x3add20._0x57db72,_0x3add20._0x443ddb)](_0x1a54bf,_0x2f61ad);}catch(_0x56b4c3){if(_0x56b4c3 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x56b4c3[_0x11cea4(_0x3add20._0x2f103d,0x28,0xd6,-0x6e)])){this[_0x11cea4(0xce,_0x3add20._0x303f58,0x99,0x5b)](_0x1a54bf[_0x456b3f(0x77f,0x719,0x6e6,_0x3add20._0xf185b2)]),yield*this[_0x11cea4(-0x70,-0x2f,-0x5,0xa1)](_0x1a54bf,_0x2f61ad);return;}throw this[_0x11cea4(-0x4,0x9a,_0x3add20._0x1e6c51,-_0x3add20._0x3b4e65)](_0x56b4c3);}throw _0x56b4c3;}}async['getModels'](_0x38a485){const _0x1bea8a={_0x5526ac:0x610,_0xe916da:0x6b1,_0x38f4a0:0x44c,_0x474090:0x504,_0x40a53a:0x6dc,_0x3e26c1:0x5b7,_0xf2a7d:0x702,_0x4bc6f6:0x56f,_0x28951b:0x5ea,_0x2dc9a2:0x649,_0x1c4b44:0x616,_0x5528ba:0x671,_0x4689ae:0x6e0,_0x295973:0x5bc,_0x315678:0x6ad},_0x372f44={_0x52c66e:0x2e8,_0x14fa3f:0x2e2,_0x47a447:0x1cd,_0x1ab9ee:0x218,_0x2db02f:0x285,_0x5e8264:0x165,_0x59757e:0x146,_0x4d9d7d:0xae,_0x3d44ca:0x1b9,_0xb39400:0x2f7,_0x1a2c99:0x319},_0x4ccbb7={_0x4ce6d3:0x1e5},_0x2332c9={_0x5373ab:0x6fc,_0x52aae7:0x1a3,_0x1ca518:0x70},_0x1e7fad={_0xd8d088:0x73},_0x2e8367=await this[_0x3da486(_0x1bea8a._0x5526ac,0x5eb,0x4fe,_0x1bea8a._0xe916da)]({'path':_0x5e0c6a(0x537,0x4bd,0x4c9,_0x1bea8a._0x38f4a0),'method':_0x5e0c6a(0x485,_0x1bea8a._0x474090,0x406,0x431),'signal':_0x38a485});if(!_0x2e8367['ok'])throw this[_0x3da486(_0x1bea8a._0x40a53a,0x679,_0x1bea8a._0x3e26c1,_0x1bea8a._0xf2a7d)](await this[_0x5e0c6a(_0x1bea8a._0x4bc6f6,_0x1bea8a._0x28951b,_0x1bea8a._0x2dc9a2,0x5d9)](_0x2e8367));function _0x5e0c6a(_0x11a090,_0x3ae4cc,_0x35905a,_0x5e629b){return _0x1a8b4d(_0x11a090,_0x5e629b-0x5a2,_0x35905a-_0x1e7fad._0xd8d088,_0x5e629b-0x13b);}const _0x5622c0=await _0x2e8367[_0x3da486(_0x1bea8a._0x1c4b44,_0x1bea8a._0x5528ba,_0x1bea8a._0x4689ae,0x67e)]();function _0x3da486(_0x529834,_0x434512,_0x1ad93b,_0x29b52e){return _0x1a8b4d(_0x29b52e,_0x434512-_0x2332c9._0x5373ab,_0x1ad93b-_0x2332c9._0x52aae7,_0x29b52e-_0x2332c9._0x1ca518);}const _0x333062=(_0x5622c0[_0x3da486(0x69c,0x5ee,0x5db,_0x1bea8a._0x295973)]??[])[_0x3da486(_0x1bea8a._0x315678,0x729,0x756,0x6f5)](_0x31a9b8=>{const _0x3ec244={_0x1d7a9d:0x3af},_0x370f37=createModelInfo(_0x31a9b8);function _0x463fe1(_0x504996,_0x50b96f,_0x56f9e2,_0x175c3c){return _0x3da486(_0x504996-0x1c0,_0x56f9e2- -_0x3ec244._0x1d7a9d,_0x56f9e2-0x137,_0x50b96f);}_0x370f37[_0x463fe1(_0x372f44._0x52c66e,0x393,_0x372f44._0x14fa3f,0x25b)]&&this[_0x434707(_0x372f44._0x47a447,_0x372f44._0x1ab9ee,_0x372f44._0x2db02f,_0x372f44._0x5e8264)][_0x434707(_0x372f44._0x59757e,_0x372f44._0x4d9d7d,0x224,_0x372f44._0x3d44ca)](_0x370f37['id'],_0x370f37[_0x463fe1(_0x372f44._0xb39400,0x365,0x2e2,_0x372f44._0x1a2c99)]);function _0x434707(_0xcf7c74,_0x291938,_0x15cb43,_0x151cfe){return _0x3da486(_0xcf7c74-0x165,_0xcf7c74- -0x57a,_0x15cb43-_0x4ccbb7._0x4ce6d3,_0x151cfe);}return _0x370f37;});return deduplicateModels(_0x333062);}};function createHeaders(_0x424706){const _0x57bea8={_0x41f5a1:0x63a,_0x37e5d9:0x343,_0x211082:0x35b},_0x1a2053={_0x54fe4d:0x6da,_0x1c89b5:0x2b},_0x4b3462={_0x2588a9:0x37f},_0x4490cb=new Headers();for(const [_0x1aac6d,_0x2e524d]of Object[_0x35ac76(_0x57bea8._0x41f5a1,0x69b,0x704,0x6b4)](_0x424706)){_0x4490cb[_0x4674dd(_0x57bea8._0x37e5d9,0x425,0x2cb,_0x57bea8._0x211082)](_0x1aac6d,_0x2e524d);}function _0x4674dd(_0x5a00e7,_0x2646f8,_0x374855,_0x3fd152){return _0x1a8b4d(_0x2646f8,_0x5a00e7-_0x4b3462._0x2588a9,_0x374855-0x19f,_0x3fd152-0x3f);}function _0x35ac76(_0x27b6e7,_0x36c8ca,_0x29b3c2,_0x1f87e7){return _0x1a8b4d(_0x27b6e7,_0x36c8ca-_0x1a2053._0x54fe4d,_0x29b3c2-0x1f1,_0x1f87e7-_0x1a2053._0x1c89b5);}return _0x4490cb;}async function fetchRawResponse(_0x45d485){const _0x1ae11f={_0x47408b:0x4c6,_0x220f97:0x379,_0x3f13ba:0x2da,_0x2f4960:0x4ea,_0xd1c1a6:0x4e3,_0x2fed03:0x260,_0x20515b:0x325,_0x26772d:0x32e,_0x3eb150:0x3ac,_0x42c0fb:0x44e,_0x15ea9d:0x429,_0x37f659:0x40b,_0x1b8ee6:0x3f9,_0x566e3f:0x4d2,_0x26f29d:0x3e4},_0x3c97ca={_0x25c5fa:0x17d},_0x3fd5c4={_0x54a07a:0x500,_0x413d8e:0x27,_0x4bcb87:0x87};function _0x20f26d(_0x34502f,_0x14db35,_0x2c74b3,_0x6b3fa){return _0x1a8b4d(_0x2c74b3,_0x34502f-_0x3fd5c4._0x54a07a,_0x2c74b3-_0x3fd5c4._0x413d8e,_0x6b3fa-_0x3fd5c4._0x4bcb87);}const _0x2cf4b1=_0x45d485[_0x20f26d(_0x1ae11f._0x47408b,0x4b2,0x55d,0x488)]??globalThis['fetch'];function _0x195ab7(_0x373cf4,_0x336d33,_0x4ce8f7,_0x38b8a7){return _0x5a1062(_0x4ce8f7-0x15e,_0x336d33,_0x4ce8f7-_0x3c97ca._0x25c5fa,_0x38b8a7-0x99);}return _0x2cf4b1(_0x45d485[_0x195ab7(0x317,_0x1ae11f._0x220f97,0x2fe,_0x1ae11f._0x3f13ba)],{'method':_0x20f26d(_0x1ae11f._0x2f4960,0x50a,_0x1ae11f._0xd1c1a6,0x546),'headers':createHeaders(_0x45d485[_0x195ab7(_0x1ae11f._0x2fed03,_0x1ae11f._0x20515b,_0x1ae11f._0x26772d,_0x1ae11f._0x3eb150)]),'body':JSON[_0x20f26d(_0x1ae11f._0x42c0fb,0x42b,_0x1ae11f._0x15ea9d,0x3d2)](_0x45d485[_0x20f26d(_0x1ae11f._0x37f659,_0x1ae11f._0x1b8ee6,_0x1ae11f._0x566e3f,0x3ae)]),'signal':_0x45d485[_0x195ab7(0x414,_0x1ae11f._0x26f29d,0x3ad,0x2f2)]});}async function fetchJsonResponse(_0x1c2257){const _0x224ede={_0x1620ab:0xb5,_0x2718c0:0x56,_0x5a11dd:0x5,_0x7f1eb1:0x2d,_0x522d25:0x43c,_0x3c3037:0x470,_0xe64224:0x407,_0x3f106e:0x4b5},_0x109919={_0x3e6b27:0x107},_0x1b34e1={_0x3a7dbe:0x146},_0x5e4b6c=await fetchRawResponse(_0x1c2257);function _0x5f3a60(_0x5e6698,_0x51dbf4,_0x208445,_0x392ce6){return _0x1a8b4d(_0x392ce6,_0x51dbf4-_0x1b34e1._0x3a7dbe,_0x208445-0xa1,_0x392ce6-0x19e);}if(!_0x5e4b6c['ok']){const _0x3b4478=await _0x5e4b6c[_0x5f3a60(_0x224ede._0x1620ab,0x71,0x55,0x134)](),_0x26d354=_0x3b4478['trim']()||_0x5e4b6c['statusText']||'Unknown\x20provider\x20error';throw new Error(_0x5f3a60(_0x224ede._0x2718c0,_0x224ede._0x5a11dd,-0x82,-_0x224ede._0x7f1eb1)+_0x5e4b6c[_0x49479c(_0x224ede._0x522d25,_0x224ede._0x3c3037,_0x224ede._0xe64224,_0x224ede._0x3f106e)]+':\x20'+_0x26d354);}function _0x49479c(_0x4270cd,_0x1e417b,_0x1db102,_0x44a4bb){return _0x5a1062(_0x1e417b-0x1c4,_0x44a4bb,_0x1db102-0x56,_0x44a4bb-_0x109919._0x3e6b27);}return await _0x5e4b6c['json']();}function findLastMessage(_0x3fd4d3,_0x3e76fd){for(let _0x14b2c3=_0x3fd4d3['length']-0x1;_0x14b2c3>=0x0;_0x14b2c3-=0x1){if(_0x3fd4d3[_0x14b2c3]['role']===_0x3e76fd)return _0x3fd4d3[_0x14b2c3];}return void 0x0;}function hasTool(_0x42ea7b,_0x4fae7a){const _0x162299={_0x481045:0xb0,_0x1646e6:0xdb};function _0x402179(_0x5d6e12,_0x2883ca,_0x57ca2a,_0x937d77){return _0x1a8b4d(_0x937d77,_0x5d6e12- -_0x162299._0x481045,_0x57ca2a-0x1da,_0x937d77-_0x162299._0x1646e6);}return _0x42ea7b['tools']['some'](_0x330ed4=>_0x330ed4[_0x402179(-0xa1,-0x9d,-0x84,-0xd1)]===_0x4fae7a);}function createMockResponse(_0x1fa02a,_0x4b40c1,_0x5c7800,_0x1c21e7){return{'id':_0x1fa02a,'content':_0x4b40c1,'stopReason':_0x5c7800,'usage':_0x1c21e7};}var MockModel=class{[_0x1a8b4d(0x7e,0x3d,0x87,-0x3f)];[_0x1a8b4d(-0x50,-0x97,0x3f,-0x13)];[_0x5a1062(0x1db,0x172,0x215,0x151)]=[];[_0x5a1062(0x32f,0x3b9,0x248,0x2d4)];constructor(_0x84feee={}){const _0x4ed577={_0x248dd9:0x6f3,_0x520afa:0x623,_0x17d4af:0x531,_0x3376d5:0x5eb,_0x121a6b:0x5d5},_0x245cd8={_0x2d8654:0x17f},_0xeee9d9={_0x4db253:0x267,_0x410c50:0xb2,_0x4bd777:0x114};function _0x39f851(_0x1c06ef,_0x36e175,_0x292520,_0x4a2c10){return _0x5a1062(_0x292520- -_0xeee9d9._0x4db253,_0x36e175,_0x292520-_0xeee9d9._0x410c50,_0x4a2c10-_0xeee9d9._0x4bd777);}this['model']=_0x84feee[_0x5f0050(0x6c7,_0x4ed577._0x248dd9,0x623,0x608)]??'mock',this['maxTokens']=_0x84feee['maxTokens']??getDefaultMaxTokens();function _0x5f0050(_0x2a9c09,_0x5dd143,_0x5616f2,_0x2e65a){return _0x1a8b4d(_0x5dd143,_0x5616f2-0x5e6,_0x5616f2-0x123,_0x2e65a-_0x245cd8._0x2d8654);}this[_0x5f0050(_0x4ed577._0x520afa,_0x4ed577._0x17d4af,_0x4ed577._0x3376d5,_0x4ed577._0x121a6b)]=_0x84feee['reasoning']?structuredClone(_0x84feee['reasoning']):void 0x0;}async[_0x5a1062(0x32d,0x370,0x3e0,0x30a)](_0x1c9cb5,_0x1a38db){const _0x569257={_0x5ab8cd:0x41d,_0xa8c242:0x44f,_0x370bd:0x3b3,_0x39d2b5:0x503,_0xe6d794:0x470,_0xa0ace5:0x319,_0x4c1015:0x442,_0x1966f1:0x424,_0x1bf7c2:0x388,_0x3c7afb:0x3d3,_0x341a54:0x176,_0x189eb1:0x1ce,_0x2d7e59:0xf2,_0x5b83b3:0xdc,_0x5e9045:0x34,_0x20bab3:0x2f9,_0x4e8ad3:0x302,_0x1cf2c4:0x375,_0x4aac9f:0x74,_0x31d727:0x28a,_0x513301:0x36c,_0x375d6c:0x33e,_0x3af2e5:0x315,_0xf99908:0x2d0,_0x254164:0x434,_0x53bcf8:0x449,_0x33354a:0x3fb,_0x597034:0x3ed,_0x602aef:0x25c,_0x2e247b:0x2fb,_0x5c8990:0xc4,_0x438aae:0x172,_0x46cf4a:0x119,_0x1538dc:0x447,_0x473673:0x3ef,_0x2527ea:0x412,_0x234ccf:0x64,_0x22eace:0xd4,_0x418466:0xfe,_0x3a2ec6:0x15d,_0xeb8662:0x471},_0x12dba9={_0x17bcf2:0x12a},_0x100528={_0x423a00:0x44a,_0x5c6d67:0x91},_0x32f328={...structuredClone(_0x1c9cb5),..._0x1c9cb5[_0x416f76(0x4c6,_0x569257._0x5ab8cd,0x379,_0x569257._0xa8c242)]===void 0x0&&this[_0x416f76(_0x569257._0x370bd,0x365,0x4fb,_0x569257._0xa8c242)]!==void 0x0?{'reasoning':structuredClone(this[_0x416f76(_0x569257._0x39d2b5,0x3ee,0x4c2,0x44f)])}:{}};function _0x416f76(_0x2cad72,_0x1ead68,_0x2a1a48,_0x2bbf19){return _0x1a8b4d(_0x2cad72,_0x2bbf19-_0x100528._0x423a00,_0x2a1a48-_0x100528._0x5c6d67,_0x2bbf19-0xaf);}this['requests'][_0x416f76(_0x569257._0xe6d794,0x41e,_0x569257._0xa0ace5,0x3e3)](_0x32f328);const _0x3cdd1a=findLastMessage(_0x32f328[_0x416f76(_0x569257._0x4c1015,0x449,_0x569257._0x1966f1,0x3ac)],'user'),_0x3a553e=getToolResultBlocks(_0x3cdd1a),_0x2060d1=_0x416f76(0x4a2,_0x569257._0x1bf7c2,_0x569257._0x3c7afb,0x46d)+this['requests'][_0x50dbc5(_0x569257._0x341a54,_0x569257._0x189eb1,_0x569257._0x2d7e59,_0x569257._0x5b83b3)];if(_0x3a553e[_0x50dbc5(0xae,0x40,0xf2,_0x569257._0x5e9045)]>0x0)return createMockResponse(_0x2060d1,[{'type':_0x416f76(_0x569257._0x20bab3,_0x569257._0x4e8ad3,0x2d4,_0x569257._0x1cf2c4),'text':_0x50dbc5(0x142,-0x5b,_0x569257._0x4aac9f,0x107)+_0x3a553e[0x0][_0x416f76(_0x569257._0x31d727,_0x569257._0x513301,_0x569257._0x375d6c,0x34e)]}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});const _0x266ca4=getTextFromMessage(_0x3cdd1a);if(/list .*files|workspace/i[_0x416f76(0x2c1,_0x569257._0x3af2e5,0x2e3,_0x569257._0xf99908)](_0x266ca4)&&hasTool(_0x32f328,_0x416f76(0x39d,0x4a3,_0x569257._0x254164,_0x569257._0x53bcf8)))return createMockResponse(_0x2060d1,[{'type':_0x416f76(_0x569257._0x33354a,0x3ef,_0x569257._0x597034,0x412),'id':'tool-call-'+this[_0x416f76(0x216,_0x569257._0x602aef,0x3b4,_0x569257._0x2e247b)][_0x50dbc5(_0x569257._0x5c8990,_0x569257._0x438aae,_0x569257._0x2d7e59,_0x569257._0x46cf4a)],'name':'Bash','input':{'command':_0x416f76(0x40a,_0x569257._0x1538dc,_0x569257._0x473673,0x45a)}}],_0x416f76(_0x569257._0x370bd,0x368,0x42e,_0x569257._0x2527ea),{'inputTokens':0x6e,'outputTokens':0x1c});function _0x50dbc5(_0x353090,_0x32c240,_0x2012fb,_0x5c6b74){return _0x5a1062(_0x2012fb- -0x23a,_0x5c6b74,_0x2012fb-0x46,_0x5c6b74-_0x12dba9._0x17bcf2);}return createMockResponse(_0x2060d1,[{'type':_0x50dbc5(0x16,-_0x569257._0x234ccf,0x1b,-0x23),'text':_0x50dbc5(0x6b,_0x569257._0x22eace,_0x569257._0x418466,_0x569257._0x3a2ec6)+_0x266ca4}],_0x416f76(_0x569257._0xeb8662,0x3a8,0x466,0x47e),{'inputTokens':0x50,'outputTokens':0x12});}};function _0x377c(_0x55add0,_0x3703e4){_0x55add0=_0x55add0-0x1a2;const _0x44b184=_0x44b1();let _0x377cb5=_0x44b184[_0x55add0];if(_0x377c['bapjUN']===undefined){var _0x48c836=function(_0x465371){const _0x3300d4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x343039='',_0x27e5b4='';for(let _0x5362b2=0x0,_0x197dc8,_0xf5d946,_0xa9ea11=0x0;_0xf5d946=_0x465371['charAt'](_0xa9ea11++);~_0xf5d946&&(_0x197dc8=_0x5362b2%0x4?_0x197dc8*0x40+_0xf5d946:_0xf5d946,_0x5362b2++%0x4)?_0x343039+=String['fromCharCode'](0xff&_0x197dc8>>(-0x2*_0x5362b2&0x6)):0x0){_0xf5d946=_0x3300d4['indexOf'](_0xf5d946);}for(let _0x581b5d=0x0,_0x15298c=_0x343039['length'];_0x581b5d<_0x15298c;_0x581b5d++){_0x27e5b4+='%'+('00'+_0x343039['charCodeAt'](_0x581b5d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x27e5b4);};_0x377c['eaqyKJ']=_0x48c836,_0x377c['gMtxsU']={},_0x377c['bapjUN']=!![];}const _0xe45297=_0x44b184[0x0],_0x156ac2=_0x55add0+_0xe45297,_0x165df9=_0x377c['gMtxsU'][_0x156ac2];return!_0x165df9?(_0x377cb5=_0x377c['eaqyKJ'](_0x377cb5),_0x377c['gMtxsU'][_0x156ac2]=_0x377cb5):_0x377cb5=_0x165df9,_0x377cb5;}function getFallbackModelLimits(_0xe64bb9,_0x4be195){const _0x298dec={_0x1103d0:0x2f0,_0x5b119f:0x2f4,_0x4d9bac:0x262,_0x1d233a:0x2e3,_0x29d231:0x226,_0x1cca57:0x462,_0x4cf7fb:0x2b8,_0x4c1583:0x380,_0x28ef0e:0x420,_0x3e38f9:0x285},_0x2403b9={_0x20680d:0x311,_0x50cfeb:0x1a9},_0x436a2c={_0x4bf688:0x102};function _0x24cadc(_0x3f1c64,_0x14109a,_0x3254d2,_0x2653bd){return _0x1a8b4d(_0x3f1c64,_0x3254d2-0x3b8,_0x3254d2-_0x436a2c._0x4bf688,_0x2653bd-0x1ea);}const _0x325653=getModelProfile(_0xe64bb9,_0x4be195);if(!_0x325653?.['contextWindow']&&!_0x325653?.[_0x39f1fa(0x338,_0x298dec._0x1103d0,0x214,_0x298dec._0x5b119f)])return void 0x0;function _0x39f1fa(_0x43e6d9,_0x7ccaa0,_0x4e47ba,_0xb0d53){return _0x1a8b4d(_0x4e47ba,_0x7ccaa0-_0x2403b9._0x20680d,_0x4e47ba-_0x2403b9._0x50cfeb,_0xb0d53-0x19b);}return{..._0x325653[_0x39f1fa(_0x298dec._0x4d9bac,_0x298dec._0x1d233a,0x3cc,_0x298dec._0x29d231)]?{'contextWindow':_0x325653[_0x24cadc(_0x298dec._0x1cca57,0x3e3,0x38a,_0x298dec._0x4cf7fb)]}:{},..._0x325653[_0x24cadc(_0x298dec._0x4c1583,0x2bb,0x397,_0x298dec._0x28ef0e)]?{'maxOutput':_0x325653[_0x39f1fa(_0x298dec._0x3e38f9,_0x298dec._0x1103d0,0x3d0,0x334)]}:{}};}function normalizeModelInfo(_0x72931d,_0x490fde){const _0x5b0879={_0x40ec55:0x572,_0x66f1b8:0x5d5,_0x4eddb2:0x6ba,_0x554b70:0x555,_0x1f91a5:0x2e,_0x46ca64:0xbf,_0x407772:0x23,_0x246d12:0x685,_0x546007:0x5be,_0x3dbf86:0x603,_0x3ceed3:0x5ec,_0x14a098:0x7c,_0x3720db:0x62c,_0xe16de9:0x152,_0x4dada6:0x507,_0x2890ba:0x47b,_0x43c1dd:0x11f,_0xd93a8:0x660,_0x1f3cb9:0x67b,_0x3f364b:0x64b},_0x23ca20={_0x5096fc:0x32},_0x44c566={_0x4a4590:0x1c8,_0xc877c5:0x1b};function _0x5227b3(_0x2ab0f9,_0x18a84f,_0xe61028,_0x57ea37){return _0x1a8b4d(_0x57ea37,_0x18a84f-0x5f4,_0xe61028-_0x44c566._0x4a4590,_0x57ea37-_0x44c566._0xc877c5);}const _0x3c46a0=typeof _0x490fde['id']===_0x5227b3(_0x5b0879._0x40ec55,_0x5b0879._0x66f1b8,_0x5b0879._0x4eddb2,_0x5b0879._0x554b70)?_0x490fde['id']:'';function _0x1485d6(_0x5cec35,_0x3d1a69,_0x26f63e,_0x11415d){return _0x1a8b4d(_0x11415d,_0x26f63e- -_0x23ca20._0x5096fc,_0x26f63e-0x10a,_0x11415d-0x1e6);}const _0x31e97f=typeof _0x490fde[_0x1485d6(_0x5b0879._0x1f91a5,-_0x5b0879._0x46ca64,-_0x5b0879._0x407772,0xbb)]===_0x5227b3(0x66d,0x5d5,0x576,_0x5b0879._0x246d12)?_0x490fde[_0x5227b3(_0x5b0879._0x546007,_0x5b0879._0x3dbf86,0x61b,_0x5b0879._0x3ceed3)]:_0x3c46a0,_0xa01bbe=normalizeModelLimits(_0x72931d,_0x490fde)??getFallbackModelLimits(_0x72931d,_0x3c46a0),_0x4e14d9=Array['isArray'](_0x490fde[_0x1485d6(-_0x5b0879._0x14a098,0x23,0xc,-0x20)])?_0x490fde[_0x5227b3(0x5c3,0x632,0x607,_0x5b0879._0x3720db)]['filter'](_0x22cd2a=>typeof _0x22cd2a===_0x1485d6(0x21,0x7,-0x51,0x84)):Array[_0x1485d6(-0x77,-0x148,-_0x5b0879._0xe16de9,-0xe3)](_0x490fde[_0x5227b3(0x49a,_0x5b0879._0x4dada6,0x5a5,_0x5b0879._0x2890ba)])?_0x490fde[_0x1485d6(-0xce,-0xcf,-_0x5b0879._0x43c1dd,-0x89)][_0x5227b3(_0x5b0879._0xd93a8,0x5eb,_0x5b0879._0x1f3cb9,_0x5b0879._0x3f364b)](_0x527f43=>typeof _0x527f43===_0x1485d6(-0x94,-0x29,-0x51,0x73)):void 0x0;return{'id':_0x3c46a0,'name':_0x31e97f,..._0xa01bbe?{'limits':_0xa01bbe}:{},..._0x4e14d9?{'supportedEndpoints':_0x4e14d9}:{}};}function normalizeModelLimits(_0x5cc0d2,_0x11dc36){const _0x4b4d1b={_0xa8fd39:0x475,_0x1e59c2:0x3c6,_0x431893:0x44a,_0x128795:0x48e,_0x363405:0x3cb,_0x2fa556:0x423,_0x180b89:0x2ef,_0x296f9d:0x21a,_0x2929d9:0x414,_0xbfa2e3:0x3d7,_0x737e1a:0x46d,_0x1a9f24:0x2ef,_0x28d5bc:0x351,_0x4ae2fe:0x44c,_0x16635e:0x3fb,_0x3cca0d:0x18b,_0x5c276a:0x34,_0x2fdace:0xa2,_0x1b5966:0x143,_0x2a19a0:0x92,_0x29ed4b:0xb2,_0x3e1818:0x45f,_0xf7d0a7:0x429,_0x1ea1db:0x307,_0xd84af1:0xc4,_0x3946d3:0xa1,_0x2117a2:0x2c,_0x1f8b15:0x15c,_0x582eac:0xef,_0x5641e8:0xa9,_0x252493:0x15a,_0x28e337:0x2e2,_0x328d8a:0x352,_0x2c555a:0x120,_0x5d40ea:0xce,_0x28884d:0x24,_0x55ca65:0x24c,_0x2360e5:0xa7,_0x4010a2:0x24,_0x3ffb9c:0x2e7,_0x1cc073:0x223,_0x3322c6:0x218,_0x253599:0x2d6,_0x530fa5:0x2ba,_0x4e8c56:0x10a,_0x60b4ff:0x52,_0x382179:0x26b,_0x4b1d6e:0x2a7,_0x1501ea:0x21d,_0x4299b5:0x14e,_0x3b94de:0x3f,_0x43d1cf:0x10f,_0x395c4e:0x2e4,_0x460662:0x2fb,_0x48b7fb:0x369,_0x445c36:0x3d2,_0x215eb2:0x342,_0x2dc186:0x314},_0x454efe={_0x533150:0x435,_0x4d2f19:0x140},_0x2549bb={_0x1f0b82:0xfa,_0x37fdf6:0xa5};if(_0x11dc36['limits']&&typeof _0x11dc36['limits']===_0x341557(_0x4b4d1b._0xa8fd39,_0x4b4d1b._0x1e59c2,_0x4b4d1b._0x431893,0x544)){const _0x5e9cba=_0x11dc36[_0x341557(0x3ab,_0x4b4d1b._0x128795,_0x4b4d1b._0x363405,_0x4b4d1b._0x2fa556)];if(typeof _0x5e9cba['contextWindow']===_0x341557(_0x4b4d1b._0x180b89,0x241,_0x4b4d1b._0x296f9d,0x280))return{'contextWindow':_0x5e9cba['contextWindow'],...typeof _0x5e9cba[_0x341557(_0x4b4d1b._0x2929d9,_0x4b4d1b._0xbfa2e3,_0x4b4d1b._0x737e1a,0x457)]===_0x341557(_0x4b4d1b._0x1a9f24,0x24a,_0x4b4d1b._0x28d5bc,0x398)?{'maxOutput':_0x5e9cba['maxOutput']}:{}};}function _0x4f9597(_0x43f6cb,_0x53208d,_0x565242,_0x726dd9){return _0x1a8b4d(_0x53208d,_0x565242-0x172,_0x565242-_0x2549bb._0x1f0b82,_0x726dd9-_0x2549bb._0x37fdf6);}if(_0x5cc0d2[_0x341557(0x371,_0x4b4d1b._0x4ae2fe,0x3a4,_0x4b4d1b._0x16635e)]()==='github'){const _0x328476=_0x11dc36[_0x4f9597(_0x4b4d1b._0x3cca0d,-_0x4b4d1b._0x5c276a,_0x4b4d1b._0x2fdace,_0x4b4d1b._0x1b5966)],_0xb515ed=_0x328476?.['limits'];if(typeof _0xb515ed?.[_0x341557(0x3a2,0x3be,0x2b6,0x457)]===_0x4f9597(-_0x4b4d1b._0x2a19a0,-0x45,0x2c,_0x4b4d1b._0x29ed4b))return{'contextWindow':_0xb515ed[_0x341557(0x3a2,_0x4b4d1b._0x3e1818,_0x4b4d1b._0xf7d0a7,_0x4b4d1b._0x1ea1db)],...typeof _0xb515ed['max_output_tokens']===_0x4f9597(_0x4b4d1b._0xd84af1,-_0x4b4d1b._0x3946d3,_0x4b4d1b._0x2117a2,-0x49)?{'maxOutput':_0xb515ed[_0x4f9597(_0x4b4d1b._0x1f8b15,_0x4b4d1b._0x582eac,_0x4b4d1b._0x5641e8,_0x4b4d1b._0x252493)]}:{}};}const _0x55a177=_0x11dc36[_0x341557(0x378,0x3a5,_0x4b4d1b._0x28e337,_0x4b4d1b._0x328d8a)],_0x26c5af=_0x11dc36[_0x4f9597(_0x4b4d1b._0x2c555a,0xb0,0x100,0x59)],_0x389d86=typeof _0x11dc36[_0x4f9597(_0x4b4d1b._0x5d40ea,-0x45,_0x4b4d1b._0x28884d,-0x87)]===_0x341557(0x2ef,0x225,0x38a,_0x4b4d1b._0x55ca65)?_0x11dc36[_0x4f9597(_0x4b4d1b._0x2360e5,-0x8,_0x4b4d1b._0x4010a2,0x101)]:typeof _0x55a177?.[_0x341557(_0x4b4d1b._0x3ffb9c,_0x4b4d1b._0x1cc073,_0x4b4d1b._0x3322c6,0x210)]==='number'?_0x55a177['context_length']:typeof _0x26c5af?.[_0x341557(0x2e7,0x359,_0x4b4d1b._0x253599,_0x4b4d1b._0x530fa5)]===_0x4f9597(-0x17,_0x4b4d1b._0x4e8c56,0x2c,_0x4b4d1b._0x60b4ff)?_0x26c5af['context_length']:void 0x0;if(_0x389d86===void 0x0)return void 0x0;function _0x341557(_0x5b6eec,_0x331625,_0x135e16,_0xb3e7de){return _0x1a8b4d(_0x135e16,_0x5b6eec-_0x454efe._0x533150,_0x135e16-_0x454efe._0x4d2f19,_0xb3e7de-0x129);}return{'contextWindow':_0x389d86,...typeof _0x55a177?.[_0x341557(0x411,0x4f0,0x3ac,0x32b)]===_0x341557(0x2ef,0x254,_0x4b4d1b._0x382179,_0x4b4d1b._0x4b1d6e)?{'maxOutput':_0x55a177[_0x4f9597(_0x4b4d1b._0x1501ea,0x1c1,_0x4b4d1b._0x4299b5,0xc0)]}:typeof _0x26c5af?.[_0x4f9597(_0x4b4d1b._0x3b94de,0x15e,_0x4b4d1b._0x43d1cf,0x1b7)]===_0x341557(0x2ef,_0x4b4d1b._0x395c4e,_0x4b4d1b._0x460662,_0x4b4d1b._0x48b7fb)?{'maxOutput':_0x26c5af[_0x341557(_0x4b4d1b._0x445c36,0x38d,_0x4b4d1b._0x215eb2,_0x4b4d1b._0x2dc186)]}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultMaxTokens,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerFromSurface,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
1
+ (function(_0x5c0193,_0x4b252a){const _0x2b6114={_0x5d642a:0x13e,_0x101adf:0x1db,_0x107950:0x164,_0x35dbdf:0x16c,_0x4fb080:0x16a,_0x4416cc:0x5d0,_0x560ad3:0x549,_0x5da403:0x5f2,_0x437203:0x5df,_0x7422ae:0x627,_0x3f781b:0x60c,_0x3bab89:0x471,_0x490e07:0x3ac,_0x4d285e:0xba,_0x5d6a1f:0x110,_0xf442a2:0x1c7,_0x1b934e:0x5a1,_0x28c3a7:0x610,_0x508e3b:0x5cf,_0x8761a0:0x60b,_0x1f6c14:0x6df,_0x56cd07:0x6c5},_0x575f03={_0x7e1a0d:0x341},_0x2f0093={_0x1e6cea:0x4f};function _0x391f85(_0x496a4c,_0x23db26,_0x4a4a3e,_0x4e2050){return _0x5b12(_0x23db26- -_0x2f0093._0x1e6cea,_0x496a4c);}const _0x49d7e2=_0x5c0193();function _0x44d671(_0x1d72fa,_0x4c6f38,_0x2212f4,_0x2deef7){return _0x5b12(_0x1d72fa-_0x575f03._0x7e1a0d,_0x4c6f38);}while(!![]){try{const _0x20a3a1=parseInt(_0x391f85(0xda,_0x2b6114._0x5d642a,_0x2b6114._0x101adf,_0x2b6114._0x107950))/0x1+parseInt(_0x391f85(_0x2b6114._0x35dbdf,_0x2b6114._0x4fb080,0x159,0xe1))/0x2+-parseInt(_0x44d671(_0x2b6114._0x4416cc,_0x2b6114._0x560ad3,_0x2b6114._0x5da403,_0x2b6114._0x437203))/0x3+parseInt(_0x44d671(_0x2b6114._0x7422ae,_0x2b6114._0x3f781b,0x67a,0x6ae))/0x4+-parseInt(_0x44d671(_0x2b6114._0x3bab89,_0x2b6114._0x490e07,0x488,0x4c3))/0x5*(-parseInt(_0x391f85(_0x2b6114._0x4d285e,_0x2b6114._0x5d6a1f,_0x2b6114._0xf442a2,0x1cc))/0x6)+-parseInt(_0x44d671(_0x2b6114._0x1b934e,0x583,_0x2b6114._0x28c3a7,_0x2b6114._0x508e3b))/0x7+-parseInt(_0x44d671(_0x2b6114._0x8761a0,_0x2b6114._0x1f6c14,_0x2b6114._0x56cd07,0x554))/0x8;if(_0x20a3a1===_0x4b252a)break;else _0x49d7e2['push'](_0x49d7e2['shift']());}catch(_0xc60a80){_0x49d7e2['push'](_0x49d7e2['shift']());}}}(_0x53da,0x79713));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-QDOE7NWO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0xed469c){function _0x46dac0(_0x1748ae,_0x4f3c57,_0xba48cc,_0x28e65a){return _0x5b12(_0xba48cc-0x194,_0x28e65a);}super(_0xed469c),this['name']=_0x46dac0(0x3c9,0x38f,0x2ff,0x2e6);}},ProviderStreamEventError=class extends Error{[_0xf0dc29(0x342,0x354,0x265,0x42b)];[_0xf0dc29(0x2fd,0x38d,0x23c,0x3c0)];[_0x551389(0x437,0x496,0x55c,0x3a8)];constructor(_0x25d473,_0x14750a={}){const _0x27a291={_0x14f84b:0x35e,_0x38ea90:0x308,_0x5b85ff:0x361,_0x3b6bca:0x234,_0x4b1e2b:0x3ff,_0x48f6a1:0x38a,_0x9830df:0x2ae,_0x317eec:0x385,_0x5dd17e:0x331,_0x9490b6:0x261,_0x176b39:0x336,_0xaa7ce:0x309,_0x29a05d:0x342,_0x41c74a:0x3eb,_0x1084e1:0x301,_0x179b33:0x3f4,_0x2a8f02:0x3eb},_0x5ea750={_0x4bcbb7:0x155};function _0xdf9b0a(_0x3410c8,_0x12f900,_0x2916eb,_0xa6f573){return _0x551389(_0x3410c8-0x1e3,_0x2916eb- -0xa6,_0x3410c8,_0xa6f573-0xe8);}super(_0x25d473);function _0x3cca03(_0xb92b6c,_0x298489,_0x46272f,_0x21a704){return _0x551389(_0xb92b6c-0x194,_0x21a704- -0xab,_0x298489,_0x21a704-_0x5ea750._0x4bcbb7);}this[_0x3cca03(_0x27a291._0x14f84b,_0x27a291._0x38ea90,_0x27a291._0x5b85ff,0x386)]=_0xdf9b0a(_0x27a291._0x3b6bca,_0x27a291._0x4b1e2b,0x321,0x341),this['code']=_0x14750a[_0x3cca03(0x28c,_0x27a291._0x48f6a1,0x379,0x376)],this[_0x3cca03(_0x27a291._0x9830df,0x37e,_0x27a291._0x317eec,_0x27a291._0x5dd17e)]=_0x14750a[_0xdf9b0a(_0x27a291._0x9490b6,0x300,_0x27a291._0x176b39,0x3e3)]??!![],this[_0x3cca03(0x373,_0x27a291._0xaa7ce,_0x27a291._0x29a05d,_0x27a291._0x41c74a)]=_0x14750a[_0x3cca03(_0x27a291._0x1084e1,0x45b,_0x27a291._0x179b33,_0x27a291._0x2a8f02)];}};function isRetryableProviderStreamEventError(_0x2af0b6){const _0x3fd4f7={_0xdd7d1d:0x5b7};function _0x326080(_0x281fac,_0x53b8c0,_0x3cd406,_0x39d5ed){return _0xf0dc29(_0x281fac-0x1e7,_0x53b8c0-0x1eb,_0x53b8c0,_0x39d5ed-0x186);}return _0x2af0b6 instanceof ProviderStreamEventError&&_0x2af0b6[_0x326080(0x4e4,_0x3fd4f7._0xdd7d1d,0x4ed,0x438)];}var ANTHROPIC_MESSAGES_SURFACE=_0xf0dc29(0x3ac,0x3e8,0x355,0x432),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0xf0dc29(0x344,0x426,0x390,0x34a);function parseToolInput(_0x47a4c1){try{return JSON['parse'](_0x47a4c1);}catch{return _0x47a4c1;}}function resolveReasoningVisibility(_0x33e7b3){const _0x405317={_0x3993b6:0x4d1,_0x51fd12:0x8e},_0x24ca0f={_0x5050fd:0x13b,_0xc8a6b4:0x467,_0x1b6718:0x153},_0x46ae53={_0x56d7a1:0x2c,_0x2006c5:0x212,_0x12fac2:0x76};function _0x1efba9(_0x49f66e,_0x96290,_0x464819,_0x37552e){return _0x551389(_0x49f66e-_0x46ae53._0x56d7a1,_0x96290-_0x46ae53._0x2006c5,_0x464819,_0x37552e-_0x46ae53._0x12fac2);}function _0x13bb47(_0x5d5c4c,_0xf6abac,_0x5a0480,_0xb90520){return _0x551389(_0x5d5c4c-_0x24ca0f._0x5050fd,_0x5d5c4c- -_0x24ca0f._0xc8a6b4,_0xb90520,_0xb90520-_0x24ca0f._0x1b6718);}return _0x33e7b3[_0x1efba9(0x5bf,0x4df,0x4f6,_0x405317._0x3993b6)]?.['visibility']??_0x13bb47(-_0x405317._0x51fd12,0x5b,0x5a,-0x9a);}function isUserVisibleThinking(_0x227325){const _0x1f240b={_0x2d0549:0x13f,_0x5d157e:0x3c},_0x47046e={_0x1f9623:0x12f,_0x4facb0:0xc0},_0x448362={_0x593b4d:0x378,_0x23ddbb:0xad};function _0x5aa0f1(_0x507fd6,_0x2b1755,_0xe5c2fa,_0x4d2f72){return _0xf0dc29(_0xe5c2fa- -_0x448362._0x593b4d,_0x2b1755-_0x448362._0x23ddbb,_0x2b1755,_0x4d2f72-0x11);}const _0x44d36e=resolveAnthropicThinkingConfig(_0x227325['reasoning']);function _0x5e7bbf(_0x7c9de3,_0x4f84fe,_0xffc8b7,_0x4848ee){return _0x551389(_0x7c9de3-_0x47046e._0x1f9623,_0x7c9de3- -0x58b,_0x4848ee,_0x4848ee-_0x47046e._0x4facb0);}return _0x44d36e!==void 0x0&&_0x44d36e['type']!==_0x5e7bbf(-0x18e,-0xb2,-_0x1f240b._0x2d0549,-0x22d)&&resolveReasoningVisibility(_0x227325)===_0x5aa0f1(0x16,-_0x1f240b._0x5d157e,-0x7e,-0x142);}function createAnthropicThinkingBody(_0x135c7a){const _0x22c0fc={_0x24ba13:0xe8,_0x31b8c8:0xd2,_0x5475e8:0xe2,_0x4533b2:0x8,_0x5b96e0:0x2be,_0x35532b:0x245,_0x47acd0:0x2b0,_0x3ca833:0x256,_0x11ef4b:0x1f0,_0x4e189d:0x2a0,_0x25a5db:0x29a,_0xcd1f41:0x2d9,_0x30a671:0x30b,_0x286048:0x1b0,_0x657eed:0x113,_0x28f71c:0x152,_0x537d40:0x1cc,_0x6b7a93:0x118,_0x39c930:0x1f9,_0x4874f9:0x225,_0x5a0f9c:0x21f,_0x23c279:0x317,_0x188c39:0x1a5,_0x22374b:0x34},_0x35d7a6={_0x3cc352:0x21f,_0x416cb8:0x14c},_0xf6324a=resolveAnthropicThinkingConfig(_0x135c7a[_0x51169a(_0x22c0fc._0x24ba13,0x148,0x115,_0x22c0fc._0x31b8c8)]);function _0x51169a(_0x19c2d3,_0x441981,_0x483a00,_0x3f529d){return _0xf0dc29(_0x19c2d3- -0x106,_0x441981-0x9a,_0x483a00,_0x3f529d-0x1d5);}if(!_0xf6324a||_0xf6324a[_0x51169a(_0x22c0fc._0x5475e8,0xa1,0x6b,-_0x22c0fc._0x4533b2)]===_0x51169a(0x218,0x141,_0x22c0fc._0x5b96e0,_0x22c0fc._0x35532b))return{};const _0x44955f=_0xf6324a[_0x132472(0x2c2,_0x22c0fc._0x47acd0,0x22c,0x186)]??(isUserVisibleThinking(_0x135c7a)?_0x132472(0x284,0x23e,_0x22c0fc._0x3ca833,_0x22c0fc._0x11ef4b):_0x51169a(_0x22c0fc._0x4e189d,_0x22c0fc._0x25a5db,_0x22c0fc._0xcd1f41,_0x22c0fc._0x30a671));function _0x132472(_0x4644aa,_0x40b69e,_0xf51ed9,_0x35321a){return _0x551389(_0x4644aa-0x1a6,_0xf51ed9- -_0x35d7a6._0x3cc352,_0x40b69e,_0x35321a-_0x35d7a6._0x416cb8);}const _0x3d4cc8=_0xf6324a[_0x51169a(0x279,0x1a5,_0x22c0fc._0x286048,0x361)]?{'anthropic-beta':_0x132472(0x1a6,0xae,_0x22c0fc._0x657eed,0x5b)}:void 0x0;if(_0xf6324a[_0x132472(-0xc,0x13c,0xa8,_0x22c0fc._0x28f71c)]===_0x51169a(0x233,_0x22c0fc._0x537d40,0x2d3,0x233))return{..._0x3d4cc8?{'headers':_0x3d4cc8}:{},'thinking':{'type':_0x132472(0x251,_0x22c0fc._0x6b7a93,_0x22c0fc._0x39c930,0x246),'budget_tokens':_0xf6324a[_0x132472(_0x22c0fc._0x4874f9,0x237,0x231,0x281)],'display':_0x44955f}};return{..._0x3d4cc8?{'headers':_0x3d4cc8}:{},'thinking':{'type':_0x132472(0x2f2,_0x22c0fc._0x5a0f9c,0x253,_0x22c0fc._0x23c279),..._0xf6324a[_0x132472(0xee,0x181,0xd4,0x131)]?{'effort':_0xf6324a[_0x51169a(0x10e,_0x22c0fc._0x188c39,0x124,_0x22c0fc._0x22374b)]}:{},'display':_0x44955f}};}function toAnthropicRequestContent(_0x3b9710){const _0x3b7d0d={_0x9345f8:0x189,_0x152132:0x20f,_0xbf4e67:0x120,_0x42a6b7:0xee,_0xfd58a5:0x2b9,_0xc55b88:0x235,_0xf699a:0x281,_0x4c7c50:0x4a0,_0xe4f6ae:0x3e2,_0x3b388e:0x27,_0x1d2ee0:0x49,_0x4146a4:0x4b9,_0x164edd:0x397,_0x54e0f1:0x416,_0x359148:0x18f,_0x4ddb42:0xbd,_0x1477cf:0x3,_0x7110cf:0x18a,_0x41d329:0x19f,_0x3b93d3:0x171,_0xda20cc:0x135,_0x2eceef:0xb4,_0x116aaa:0x15b},_0xa8660={_0x1affa5:0x120,_0x47bdfb:0x2fc,_0x1559e6:0x47},_0x53f37c={_0x272712:0x20,_0xd39381:0xa3};if(_0x3b9710[_0x4aa84c(0x19a,_0x3b7d0d._0x9345f8,_0x3b7d0d._0x152132,_0x3b7d0d._0xbf4e67)]===_0x291ac2(0x2be,0x2ee,0x312,0x3ad)&&_0x3b9710['providerState']?.[_0x4aa84c(0x6b,-_0x3b7d0d._0x42a6b7,0x73,-0x8)])return structuredClone(_0x3b9710[_0x291ac2(0x3a7,0x336,0x332,0x2e0)][_0x291ac2(_0x3b7d0d._0xfd58a5,_0x3b7d0d._0xc55b88,0x1b0,_0x3b7d0d._0xf699a)]);const _0x22b29a=[];function _0x291ac2(_0x368cfb,_0x5f4274,_0x450d1a,_0x586409){return _0xf0dc29(_0x5f4274-_0x53f37c._0x272712,_0x5f4274-0x1d5,_0x586409,_0x586409-_0x53f37c._0xd39381);}for(const _0x3be081 of normalizeContent(_0x3b9710[_0x291ac2(_0x3b7d0d._0x4c7c50,0x3d2,0x440,_0x3b7d0d._0xe4f6ae)])){if(_0x3be081['type']==='openai_reasoning')continue;if(_0x3be081[_0x4aa84c(-0xb9,_0x3b7d0d._0x3b388e,_0x3b7d0d._0x1d2ee0,-0x35)]===_0x4aa84c(0xd1,-0x1d,0x50,-0x2)){_0x22b29a[_0x291ac2(_0x3b7d0d._0x4146a4,0x3d3,_0x3b7d0d._0x164edd,_0x3b7d0d._0x54e0f1)]({'type':_0x291ac2(0x26b,0x240,0x31f,_0x3b7d0d._0x359148),'thinking':_0x3be081[_0x4aa84c(-0xeb,-_0x3b7d0d._0x4ddb42,-0x9,_0x3b7d0d._0x1477cf)],'signature':_0x3be081['signature']});continue;}if(_0x3be081[_0x291ac2(_0x3b7d0d._0x7110cf,0x208,0x20e,_0x3b7d0d._0x41d329)]==='anthropic_redacted_thinking'){_0x22b29a['push']({'type':'redacted_thinking','data':_0x3be081[_0x4aa84c(_0x3b7d0d._0x3b93d3,_0x3b7d0d._0xda20cc,_0x3b7d0d._0x7110cf,_0x3b7d0d._0x2eceef)]});continue;}_0x22b29a[_0x4aa84c(0x213,0x16a,_0x3b7d0d._0x116aaa,0x196)](structuredClone(_0x3be081));}function _0x4aa84c(_0x526751,_0x5117b0,_0x3848bf,_0x287a0b){return _0x551389(_0x526751-_0xa8660._0x1affa5,_0x287a0b- -_0xa8660._0x47bdfb,_0x5117b0,_0x287a0b-_0xa8660._0x1559e6);}return _0x22b29a;}function createAnthropicRequest(_0x11213b,_0x527a91){const _0x5a533f={_0x5f36ec:0x29f,_0x388b5a:0x185,_0x549e64:0x254,_0x58ffce:0x28c,_0x114874:0x340,_0x5ace39:0x217,_0x4bf27f:0x2d1,_0x160d51:0x471,_0x51a574:0x455,_0x1f3cf6:0x41d,_0x4584c5:0x370,_0x29acf1:0x3fe,_0x5c38c1:0x378,_0x576655:0x2a1,_0x310c8d:0x378,_0x32bd05:0x41b,_0x256173:0x4a9,_0x8942a3:0x43f,_0x23d854:0x50d,_0x2e2b93:0xb8,_0x468d41:0x12b,_0x4d5ddf:0x325,_0x195685:0x2ba,_0x541f04:0x271},_0x5d0aa2={_0x57a170:0xe4},_0x2ec3af={_0x3c14af:0x3b};function _0x273b70(_0x48d13a,_0x239bcd,_0x3ac9e2,_0x186b5b){return _0x551389(_0x48d13a-0x148,_0x239bcd-_0x2ec3af._0x3c14af,_0x186b5b,_0x186b5b-0x5a);}function _0x3d5455(_0xf71508,_0x5a21a5,_0x1635cb,_0x2bd9b3){return _0x551389(_0xf71508-_0x5d0aa2._0x57a170,_0x1635cb- -0x1bf,_0x5a21a5,_0x2bd9b3-0x17a);}const _0x30e545=toProviderModelRequest(_0x11213b),_0x19e5ac=createAnthropicThinkingBody(_0x11213b);return{'accept':_0x527a91?_0x3d5455(_0x5a533f._0x5f36ec,_0x5a533f._0x388b5a,_0x5a533f._0x549e64,_0x5a533f._0x58ffce):_0x3d5455(_0x5a533f._0x114874,_0x5a533f._0x5ace39,_0x5a533f._0x4bf27f,0x206),'body':{..._0x30e545,'messages':_0x11213b[_0x273b70(_0x5a533f._0x160d51,_0x5a533f._0x51a574,_0x5a533f._0x1f3cf6,_0x5a533f._0x4584c5)][_0x273b70(0x284,0x300,0x379,0x21b)](_0x5bb70c=>{return{'role':_0x5bb70c['role'],'content':toAnthropicRequestContent(_0x5bb70c)};}),..._0x19e5ac[_0x273b70(0x369,0x33a,0x29f,0x377)]?{'thinking':_0x19e5ac['thinking']}:{},..._0x527a91?{'stream':!![]}:{},..._0x11213b[_0x273b70(_0x5a533f._0x29acf1,_0x5a533f._0x5c38c1,_0x5a533f._0x576655,0x32d)]?{'output_config':{'format':{'type':_0x3d5455(0x2c3,0x254,0x230,0x2bc),'schema':_0x11213b[_0x273b70(0x2b6,_0x5a533f._0x310c8d,_0x5a533f._0x32bd05,0x38b)][_0x273b70(_0x5a533f._0x256173,_0x5a533f._0x8942a3,0x387,_0x5a533f._0x23d854)]}}}:{}},..._0x19e5ac[_0x3d5455(_0x5a533f._0x2e2b93,0xcb,_0x5a533f._0x468d41,0xe3)]?{'headers':_0x19e5ac[_0x273b70(0x2ac,_0x5a533f._0x4d5ddf,0x299,0x2d7)]}:{},'path':_0x3d5455(0x1a9,_0x5a533f._0x195685,_0x5a533f._0x541f04,0x2c1)};}function parseAnthropicResponse(_0x6d99f7,_0xeb3a96){const _0xb43812={_0x20d85a:0x242,_0x4a30d3:0x22f,_0x3d444c:0x2c1,_0x3967c5:0x154,_0x1b9b95:0xe7,_0x4ce7c3:0xaf,_0x334a72:0xaf,_0x48d635:0x129,_0x56cab9:0x90,_0x436641:0xe1,_0x48960b:0xef,_0x64d40b:0x193,_0x1a637a:0x191,_0x328ad9:0x56,_0x3e7ccb:0x6,_0x313faf:0x79,_0xefbbb0:0x154,_0x2a8cbf:0x98,_0x15f3c1:0x1a4,_0x2f04a4:0x242,_0x3b34b8:0x1aa,_0x48ca5a:0x1d9,_0x425e50:0xf0,_0x3491f8:0x1e,_0x3e28a1:0x35,_0xc95480:0x59,_0x22a132:0xff,_0x48846b:0x8a,_0x598679:0x4e,_0x1b7b05:0x15a,_0x4a5937:0xd4,_0x4cecaa:0xf7,_0x27e34d:0x77,_0x5aa506:0x73,_0xefe428:0x131,_0xc4ba68:0x144,_0x43cde7:0x15f,_0x249d01:0x2c5,_0x4b8472:0x2d5,_0x56aea1:0x23e,_0x2d4170:0x230,_0x312e42:0x18b,_0x20f03d:0x197,_0xcc15f:0xc8,_0x1c848d:0xa7,_0x2e354a:0x8,_0x155e78:0x37,_0x4d4bc8:0x88,_0x21fba3:0x55,_0x1c3590:0x8,_0x28904c:0xe3,_0x55402a:0xed,_0x29f238:0x34,_0x434b03:0xa4,_0x16df77:0xc5,_0x1c928f:0x2b4,_0x15f48f:0x16a},_0xaec2f6={_0x43ab6a:0x1ee},_0x277de0={_0x2a2606:0x7,_0x200a75:0x15a},_0x5be6b1=[];function _0x3ca143(_0x248267,_0x1118bf,_0x57dca1,_0x4613cf){return _0xf0dc29(_0x248267- -0x37b,_0x1118bf-_0x277de0._0x2a2606,_0x57dca1,_0x4613cf-_0x277de0._0x200a75);}const _0x235716=_0x6d99f7[_0x50500a(0x241,0x26c,0x1c4,0x1b3)]??[];function _0x50500a(_0x557c2a,_0x3afa16,_0x4f1ed5,_0x4e8802){return _0xf0dc29(_0x557c2a- -0x171,_0x3afa16-_0xaec2f6._0x43ab6a,_0x4e8802,_0x4e8802-0xc6);}let _0x165276=![];for(const _0x5977c6 of _0x235716){if(_0x5977c6['type']==='thinking'){_0x165276=!![];isUserVisibleThinking(_0xeb3a96)&&_0x5be6b1[_0x50500a(_0xb43812._0x20d85a,_0xb43812._0x4a30d3,_0xb43812._0x3d444c,_0xb43812._0x3967c5)]({'type':_0x50500a(0xaa,0x4e,_0xb43812._0x1b9b95,0x4d),'thinking':_0x5977c6[_0x50500a(_0xb43812._0x4ce7c3,_0xb43812._0x334a72,0x30,_0xb43812._0x48d635)],'signature':_0x5977c6[_0x50500a(_0xb43812._0x56cab9,_0xb43812._0x436641,0xe5,_0xb43812._0x48960b)]});continue;}if(_0x5977c6[_0x3ca143(-_0xb43812._0x64d40b,-_0xb43812._0x1a637a,-0x241,-0xd9)]==='redacted_thinking'){_0x165276=!![];isUserVisibleThinking(_0xeb3a96)&&_0x5be6b1['push']({'type':'anthropic_redacted_thinking','data':_0x5977c6['data']});continue;}if(_0x5977c6[_0x50500a(0x77,0xe6,_0xb43812._0x328ad9,-_0xb43812._0x3e7ccb)]==='text'){_0x5977c6[_0x50500a(_0xb43812._0x313faf,-0x60,_0xb43812._0xefbbb0,-0x6e)][_0x50500a(0x122,_0xb43812._0x2a8cbf,0x6e,_0xb43812._0x15f3c1)]>0x0&&_0x5be6b1[_0x50500a(_0xb43812._0x2f04a4,0x28a,0x2e7,0x2c0)](structuredClone(_0x5977c6));continue;}_0x5be6b1[_0x50500a(_0xb43812._0x2f04a4,_0xb43812._0x3b34b8,0x1d1,_0xb43812._0x48ca5a)](structuredClone(_0x5977c6));}return{'id':_0x6d99f7['id']??_0x3ca143(-0x181,-0x12f,-_0xb43812._0x425e50,-0x1d1)+Date[_0x3ca143(-0x4,_0xb43812._0x3491f8,0x55,_0xb43812._0x3e28a1)](),'content':_0x5be6b1,'stopReason':_0x5be6b1[_0x3ca143(-0x8a,_0xb43812._0xc95480,-0x3e,-_0xb43812._0x22a132)](_0x3b63a5=>_0x3b63a5['type']===_0x3ca143(-0x180,-0x1bd,-0xe5,-0x101))?_0x50500a(_0xb43812._0x48846b,_0xb43812._0x598679,0xeb,0x11):_0x6d99f7[_0x3ca143(-0x15f,-_0xb43812._0x1b7b05,-0x13e,-_0xb43812._0x4a5937)]===_0x50500a(0x8a,0x11e,-0x59,0x14b)?'tool_use':_0x50500a(_0xb43812._0x4cecaa,0x1c6,_0xb43812._0x27e34d,0x6f),'usage':{'inputTokens':(_0x6d99f7[_0x50500a(_0xb43812._0x5aa506,0x0,0x5c,_0xb43812._0xefe428)]?.[_0x50500a(0x114,0x148,_0xb43812._0xc4ba68,_0xb43812._0x43cde7)]??0x0)+(_0x6d99f7['usage']?.[_0x50500a(0x202,0x1ce,_0xb43812._0x249d01,_0xb43812._0x4b8472)]??0x0)+(_0x6d99f7['usage']?.[_0x50500a(_0xb43812._0x56aea1,0x23f,_0xb43812._0x2d4170,_0xb43812._0x312e42)]??0x0),'outputTokens':_0x6d99f7[_0x3ca143(-_0xb43812._0x20f03d,-0x26c,-0x1f0,-0x1ba)]?.[_0x3ca143(-0x32,-_0xb43812._0xcc15f,-_0xb43812._0x1c848d,-_0xb43812._0x2e354a)]??0x0,..._0x6d99f7[_0x50500a(0x73,-_0xb43812._0x155e78,_0xb43812._0x4d4bc8,-_0xb43812._0x21fba3)]?.[_0x3ca143(-_0xb43812._0x1c3590,_0xb43812._0x28904c,-0x4b,-_0xb43812._0x55402a)]?{'cacheReadInputTokens':_0x6d99f7['usage']['cache_read_input_tokens']}:{},..._0x6d99f7['usage']?.[_0x3ca143(_0xb43812._0x29f238,_0xb43812._0x434b03,_0xb43812._0x16df77,0x62)]?{'cacheCreationInputTokens':_0x6d99f7['usage'][_0x50500a(0x23e,_0xb43812._0x1c928f,0x28e,_0xb43812._0x15f48f)]}:{}},..._0x165276?{'providerState':{'anthropicAssistantContent':structuredClone(_0x235716)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x551389(0x39d,0x2fd,0x2f4,0x3e8)]=new Map();[_0xf0dc29(0x2b1,0x394,0x2bb,0x237)]=0x0;[_0x551389(0x3bb,0x432,0x49c,0x469)]=0x0;[_0xf0dc29(0x1f0,0x1e8,0x1e6,0x144)]=0x0;['messageId']=_0xf0dc29(0x1fa,0x1e1,0x1e3,0x12f)+Date['now']();[_0x551389(0x3a5,0x3d2,0x466,0x312)]=0x0;[_0xf0dc29(0x2bb,0x245,0x36f,0x232)];[_0xf0dc29(0x2ab,0x246,0x2c6,0x30c)]=_0xf0dc29(0x268,0x31f,0x32f,0x329);constructor(_0xc53d4d){const _0x408b8c={_0x52a082:0x1f6,_0x37e7b4:0x1a5,_0x633789:0x184};function _0x26c4b0(_0x845c33,_0x556403,_0x47e477,_0x434a00){return _0x551389(_0x845c33-0x16,_0x556403- -0x53f,_0x845c33,_0x434a00-0x1a9);}this[_0x26c4b0(-_0x408b8c._0x52a082,-_0x408b8c._0x37e7b4,-0x138,-_0x408b8c._0x633789)]=_0xc53d4d;}[_0xf0dc29(0x1ec,0x281,0x110,0x234)](_0x58a28f){const _0xece62={_0x3d52f3:0x5b7,_0x547b04:0x1d9,_0x344f66:0x220,_0x2b51ed:0x2c4,_0x522168:0x293,_0x22deac:0x1c4,_0x80a67f:0x6ac,_0x5a3b7d:0x5af,_0x1b812f:0x597,_0x21b04e:0x67c,_0x14f0cf:0x9f,_0x29f636:0x168,_0x2baf8a:0x695,_0x5bffd6:0x42,_0x58a3b5:0x134,_0x344aa1:0x187,_0x1e462e:0xf8,_0x3a9b0d:0x527,_0x26901c:0x587,_0x589026:0xa2,_0x2a8ee0:0x1aa,_0x19107e:0x145,_0x8f1378:0x72a,_0xd21bf2:0x655,_0x23d74a:0x5b6,_0x44e867:0x261,_0x25d136:0x25b,_0x5d6f6a:0x6c5,_0x5058ce:0x655,_0x37a5a8:0x673,_0x2d038f:0x5dd,_0x2faad7:0x4e6,_0x2851e6:0x33c,_0xb5c4ae:0x34f,_0x34c9c2:0x335,_0x4d1b22:0x28c,_0x41cd6d:0x1ee,_0x5cf07b:0x4c5,_0x2c5bea:0x1a0,_0x296819:0x146,_0x1a8925:0x13e,_0x5c761a:0x207,_0x1c10ae:0x1e6,_0x3afd9e:0x30,_0x472426:0x1aa,_0x491f6b:0x10f,_0x18b628:0x32c,_0xfa2b1e:0x28d,_0x44d4f0:0x266,_0x363fcb:0x484,_0x4f439b:0x51e,_0x4d458f:0x557,_0x49c789:0x65e,_0x2b40af:0x6a2,_0xaa5f3e:0x72a,_0x17aba9:0x501,_0x1bd99a:0x45d,_0x121de3:0x4fd,_0xb3aff7:0x313,_0xafd7fc:0x266,_0x51431f:0x503,_0x272ad4:0x567,_0x940ada:0x101,_0x150a0e:0x182,_0x322d0f:0x132,_0x4d8b0f:0x186,_0x5eb71b:0x177,_0x932b77:0x5ae,_0x417d58:0x2bb,_0x5443ff:0x159,_0x303985:0xbe,_0x12ccbf:0x115,_0x5439dc:0x4b3,_0x1f8a44:0x4ec,_0x4ef32b:0x520,_0x3b4015:0x570,_0x41015b:0x56e,_0x26ee54:0x22a,_0x14f998:0x21d,_0x4c9ee6:0x53f,_0x46a3e8:0x477,_0x48aeab:0x58d,_0x44de62:0x44d,_0xd57a66:0x665,_0x2fb2df:0x5c6,_0x5be5b6:0x520,_0x28bf26:0x1c4,_0x3faa7f:0x573,_0x54b8ec:0x625,_0x48d99d:0x585,_0x864a69:0x571,_0x240959:0x21d,_0x2f25be:0x217,_0x419419:0x1e5,_0x5bc609:0x5a9,_0x19d84f:0x4eb,_0x3c0e59:0x581,_0x138545:0x15d,_0x111049:0x1df,_0x2259fc:0x121,_0x43fd18:0x1c3,_0x308b13:0x360,_0x5530a1:0x337,_0x250cc7:0x112,_0x4d0459:0x13e,_0x246f7c:0x1c0,_0x1fcc1b:0x13e,_0x4c3f1b:0x2e1,_0x121aed:0x203,_0x92a81a:0x536,_0x2342e4:0x4f1,_0x262981:0x549,_0x45d72a:0x6eb,_0x3ce047:0x583,_0x31bdb1:0x635,_0x4dc46f:0x26d,_0x4c7e1c:0x167,_0x1a9314:0x1bc,_0x4e7d60:0x2d3,_0x1340ef:0x4a0,_0x3ae411:0x202,_0x5d316f:0x21d,_0x440931:0x155,_0xa14477:0xe5,_0x56d0a6:0x53f,_0x59bd0e:0x5af,_0x2ac063:0x1db,_0x83d317:0x122,_0x1245cb:0x1c7,_0x10f5fa:0x59,_0x78fdf4:0x6e2,_0x1d8e77:0x5f2,_0x569caf:0x541,_0x18b31e:0x60f,_0x8e92c0:0x1a1,_0x4620af:0x1bc,_0x7bace6:0x555,_0x5a0778:0x4d9,_0x4e0947:0x522,_0x1f7814:0x5f8,_0x4d8dfd:0xbd,_0x27602a:0x134,_0x12e18f:0x270,_0x4a4f45:0x436,_0x23eab2:0x44c,_0x2c4bcd:0x180,_0x5884b8:0x28a,_0x40aa48:0x1a7,_0x22fecf:0x64,_0x4d7c2c:0x5e5,_0x4b87a7:0x5bd,_0xce03d3:0x517,_0x2b3f5e:0x1e7,_0x42260b:0x4ea,_0xd88d48:0x173,_0x27b17f:0x278,_0x1c7aa4:0x1c7,_0x3ec3fd:0x67f,_0x2d3467:0x5aa,_0x4c488f:0x645,_0x459556:0x1ae,_0x25c674:0xac,_0x3e293b:0x595,_0x135996:0x51c,_0x4f49f6:0x279,_0x539bfe:0x1ce,_0x4cd6ea:0x1cb,_0x3cd4ad:0x12a,_0x424054:0x66,_0x14d3b9:0x103,_0x239d2e:0x52f,_0x574b0f:0x4f2,_0x81b6dd:0x218,_0x2512f6:0x24a,_0x454a9d:0x5ef,_0x5f4d4e:0x287,_0x4b829f:0x209,_0x19db14:0x6b2,_0x3bfdbd:0x6de,_0x5ca90d:0x56f,_0x561fb8:0x6d1,_0x2fb347:0x5f5,_0x2c312f:0x4d5,_0x51e6ae:0x622,_0x3cb43d:0x90,_0x427955:0x130,_0x1cee87:0x16f,_0x1caec6:0x4c,_0x19b22f:0xcf,_0x113b92:0x1e9,_0x426f75:0x90,_0x14e2f0:0x674,_0x1af859:0x591,_0x5c8d99:0x60c,_0x36759c:0x264,_0x46150a:0x1a3,_0x426300:0x685,_0x1d4382:0x6e3,_0x23f3e0:0x2d1,_0x2bf068:0x418,_0x169249:0x5c8,_0x4b00b6:0x4ea},_0x5a2c70={_0x33ba40:0x302,_0x1467d8:0x37},_0x2e7639={_0x120f80:0x1cb,_0x25e4d7:0x1ad},_0x475fa8=_0x58a28f['split']('\x0a'),_0x2e1900=_0x475fa8[_0x46837c(0x5a6,0x593,0x5d8,_0xece62._0x3d52f3)](_0x18832e=>_0x18832e['startsWith'](_0x46837c(0x46f,0x4bc,0x54f,0x52b)))?.[_0x1008dd(0x1ef,0x132,0x226,_0xece62._0x547b04)](0x6)[_0x1008dd(_0xece62._0x344f66,_0xece62._0x2b51ed,_0xece62._0x522168,0x28e)]();function _0x1008dd(_0x1acaad,_0x549cff,_0x58769d,_0x8db6aa){return _0x551389(_0x1acaad-0x124,_0x8db6aa- -_0x2e7639._0x120f80,_0x1acaad,_0x8db6aa-_0x2e7639._0x25e4d7);}function _0x46837c(_0x2ddab1,_0x19fc3b,_0x2d3716,_0x90b92){return _0xf0dc29(_0x2d3716-_0x5a2c70._0x33ba40,_0x19fc3b-0x11b,_0x2ddab1,_0x90b92-_0x5a2c70._0x1467d8);}const _0x2bf804=_0x475fa8[_0x1008dd(0x223,_0xece62._0x22deac,0x1a2,0x16a)](_0x31271f=>_0x31271f[_0x1008dd(0x109,0x18c,0x185,0x105)](_0x46837c(0x6ee,0x729,0x6bb,0x6a5)))['map'](_0x4d57fb=>_0x4d57fb['slice'](0x5)[_0x1008dd(0x23e,0x334,0x28e,0x2cc)]())['join']('\x0a')[_0x46837c(_0xece62._0x80a67f,_0xece62._0x5a3b7d,0x67c,0x720)]();if(_0x2bf804['length']===0x0||_0x2bf804===_0x46837c(_0xece62._0x1b812f,0x54b,0x598,_0xece62._0x21b04e))return[];const _0x100b5b=JSON['parse'](_0x2bf804);switch(_0x2e1900){case _0x1008dd(_0xece62._0x14f0cf,0x9e,_0xece62._0x29f636,0x17a):{const _0x29b752=_0x100b5b['message'];this['messageId']=_0x29b752?.['id']??this[_0x46837c(0x5b0,_0xece62._0x2baf8a,0x667,0x6dc)],this[_0x1008dd(0x137,0x9f,_0xece62._0x5bffd6,0x104)]=_0x29b752?.[_0x1008dd(_0xece62._0x58a3b5,_0xece62._0x344aa1,0x49,_0xece62._0x1e462e)]?.[_0x46837c(0x4b4,_0xece62._0x3a9b0d,_0xece62._0x26901c,0x631)]??this[_0x1008dd(_0xece62._0x589026,_0xece62._0x2a8ee0,_0xece62._0x19107e,0x104)],this[_0x46837c(_0xece62._0x8f1378,0x73a,_0xece62._0xd21bf2,_0xece62._0x23d74a)]=_0x29b752?.['usage']?.[_0x1008dd(0x211,_0xece62._0x44e867,_0xece62._0x25d136,0x287)]??this[_0x46837c(_0xece62._0x5d6f6a,0x658,_0xece62._0x5058ce,0x6ca)],this[_0x46837c(_0xece62._0x37a5a8,_0xece62._0x2d038f,0x5b3,0x68e)]=_0x29b752?.[_0x46837c(0x4e3,0x59d,_0xece62._0x2faad7,0x458)]?.[_0x1008dd(_0xece62._0x2851e6,_0xece62._0xb5c4ae,_0xece62._0x34c9c2,0x2c3)]??this['cacheCreationInputTokens'];break;}case _0x1008dd(0x208,_0xece62._0x4d1b22,0x132,_0xece62._0x41cd6d):{const _0x2d791e=typeof _0x100b5b[_0x46837c(0x4b5,_0xece62._0x5cf07b,0x52c,0x4f5)]===_0x1008dd(0x2d9,_0xece62._0x2c5bea,0x2ec,0x203)?_0x100b5b[_0x1008dd(0x18c,0x1ec,_0xece62._0x296819,_0xece62._0x1a8925)]:0x0,_0x5e8075=_0x100b5b[_0x1008dd(_0xece62._0x5c761a,0x2da,_0xece62._0x1c10ae,0x28a)];if(_0x5e8075?.['type']===_0x1008dd(_0xece62._0x3afd9e,_0xece62._0x472426,0x1ef,_0xece62._0x491f6b)&&_0x5e8075['id']&&_0x5e8075[_0x1008dd(_0xece62._0x18b628,0x308,_0xece62._0xfa2b1e,_0xece62._0x44d4f0)])return this[_0x46837c(0x4ed,0x4ed,0x520,_0xece62._0x363fcb)][_0x46837c(0x5f8,_0xece62._0x4f439b,0x5b2,0x560)](_0x2d791e,{'id':_0x5e8075['id'],'index':_0x2d791e,'inputJson':JSON[_0x46837c(0x625,_0xece62._0x4d458f,0x5e0,0x5f1)](_0x5e8075[_0x46837c(0x6bb,_0xece62._0x49c789,_0xece62._0x2b40af,_0xece62._0xaa5f3e)]??{}),'kind':_0x46837c(_0xece62._0x17aba9,_0xece62._0x1bd99a,_0xece62._0x121de3,0x586),'name':_0x5e8075[_0x1008dd(0x186,0x251,_0xece62._0xb3aff7,_0xece62._0xafd7fc)]}),[{'type':'tool_use_delta','id':_0x5e8075['id'],'index':_0x2d791e,'name':_0x5e8075['name']}];if(_0x5e8075?.[_0x46837c(_0xece62._0x51431f,_0xece62._0x272ad4,0x4ea,0x59e)]==='thinking'){this[_0x1008dd(_0xece62._0x940ada,0x1dc,_0xece62._0x150a0e,_0xece62._0x322d0f)][_0x1008dd(0x297,_0xece62._0x2a8ee0,_0xece62._0x4d8b0f,0x1c4)](_0x2d791e,{'index':_0x2d791e,'kind':_0x1008dd(0x13f,_0xece62._0x5eb71b,0x105,0x134),'signature':typeof _0x5e8075[_0x46837c(_0xece62._0x932b77,0x59a,0x503,0x465)]===_0x1008dd(_0xece62._0x417d58,_0xece62._0x5443ff,0x20d,0x21d)?_0x5e8075[_0x1008dd(_0xece62._0x303985,0x3e,0x63,_0xece62._0x12ccbf)]:'','thinking':typeof _0x5e8075[_0x46837c(_0xece62._0x5439dc,0x4a0,_0xece62._0x1f8a44,_0xece62._0x4ef32b)]==='string'?_0x5e8075[_0x46837c(_0xece62._0x3b4015,0x540,0x4ec,_0xece62._0x41015b)]:typeof _0x5e8075['thinking']===_0x1008dd(_0xece62._0x26ee54,0x195,0x247,_0xece62._0x14f998)?String(_0x5e8075[_0x46837c(_0xece62._0x4c9ee6,_0xece62._0x46a3e8,0x522,_0xece62._0x48aeab)]):''});break;}if(_0x5e8075?.[_0x46837c(_0xece62._0x44de62,_0xece62._0x1f8a44,0x4ea,0x564)]===_0x46837c(0x509,_0xece62._0xd57a66,_0xece62._0x2fb2df,0x63b)){this[_0x46837c(0x60b,0x514,_0xece62._0x5be5b6,0x5da)][_0x1008dd(0x1ca,0x1b0,0x17c,_0xece62._0x28bf26)](_0x2d791e,{'index':_0x2d791e,'kind':_0x46837c(0x514,_0xece62._0x3faa7f,0x5c6,0x5cb),'data':typeof _0x5e8075[_0x46837c(_0xece62._0x54b8ec,_0xece62._0x48d99d,0x5d3,_0xece62._0x864a69)]===_0x1008dd(0x191,0x293,0x2cc,_0xece62._0x240959)?String(_0x5e8075[_0x1008dd(0x176,0x221,_0xece62._0x2f25be,_0xece62._0x419419)]):''});break;}this[_0x46837c(_0xece62._0x5bc609,_0xece62._0x19d84f,0x520,_0xece62._0x3c0e59)][_0x1008dd(_0xece62._0x138545,0x205,_0xece62._0x111049,0x1c4)](_0x2d791e,{'index':_0x2d791e,'kind':'text','text':_0x5e8075?.[_0x1008dd(0x86,_0xece62._0x2259fc,_0xece62._0x43fd18,0xfe)]??''});break;}case _0x1008dd(0x348,_0xece62._0x308b13,_0xece62._0x5530a1,0x274):{const _0xdd5aca=typeof _0x100b5b[_0x1008dd(_0xece62._0x250cc7,_0xece62._0x4d0459,_0xece62._0x246f7c,_0xece62._0x1fcc1b)]===_0x1008dd(0x2aa,0x201,_0xece62._0x4c3f1b,_0xece62._0x121aed)?_0x100b5b['index']:0x0,_0x574493=this[_0x46837c(0x554,0x471,0x520,_0xece62._0x92a81a)]['get'](_0xdd5aca),_0x47fcf5=_0x100b5b[_0x46837c(0x57e,0x49e,_0xece62._0x2342e4,_0xece62._0x262981)];if(!_0x574493||!_0x47fcf5?.['type'])break;if(_0x47fcf5['type']===_0x46837c(_0xece62._0x45d72a,_0xece62._0x3ce047,_0xece62._0x31bdb1,0x6a2)&&_0x574493[_0x1008dd(_0xece62._0x4dc46f,_0xece62._0x4c7e1c,0x16a,_0xece62._0x1a9314)]==='text'&&typeof _0x47fcf5['text']===_0x1008dd(0x290,0x272,_0xece62._0x4e7d60,0x21d))return _0x574493['text']+=_0x47fcf5[_0x46837c(0x543,_0xece62._0x1340ef,_0xece62._0x1f8a44,0x490)],[{'type':_0x1008dd(_0xece62._0x3ae411,0x1bb,_0xece62._0x5d316f,0x2a8),'index':_0xdd5aca,'text':_0x47fcf5[_0x1008dd(_0xece62._0x440931,0x7a,_0xece62._0xa14477,0xfe)]}];if(_0x47fcf5[_0x46837c(_0xece62._0x56d0a6,0x525,0x4ea,0x5bd)]===_0x46837c(0x548,0x62e,_0xece62._0x59bd0e,0x4f6)&&_0x574493[_0x1008dd(_0xece62._0x2ac063,0x293,0x287,0x1bc)]===_0x1008dd(_0xece62._0x83d317,_0xece62._0x1245cb,_0xece62._0x10f5fa,_0xece62._0x491f6b)&&typeof _0x47fcf5['partial_json']==='string')return _0x574493['inputJson']==='{}'&&(_0x574493['inputJson']=''),_0x574493['inputJson']+=_0x47fcf5[_0x46837c(_0xece62._0x78fdf4,_0xece62._0x1d8e77,0x60f,0x528)],[{'type':'tool_use_delta','id':_0x574493['id'],'index':_0xdd5aca,'inputDelta':_0x47fcf5[_0x46837c(_0xece62._0x569caf,0x6b8,_0xece62._0x18b31e,0x668)]}];if(_0x47fcf5['type']==='thinking_delta'&&_0x574493[_0x1008dd(_0xece62._0x8e92c0,0xf7,0x231,_0xece62._0x4620af)]===_0x46837c(_0xece62._0x7bace6,_0xece62._0x5a0778,_0xece62._0x4e0947,_0xece62._0x1f7814)){const _0x26d3f3=typeof _0x47fcf5[_0x1008dd(_0xece62._0x4d8dfd,0x180,0x1e2,_0xece62._0x27602a)]===_0x1008dd(0x2f4,0x1b8,_0xece62._0x12e18f,_0xece62._0x14f998)?String(_0x47fcf5[_0x46837c(_0xece62._0x4a4f45,_0xece62._0x23eab2,0x522,0x4fb)]):'';if(_0x26d3f3[_0x1008dd(_0xece62._0x2c4bcd,_0xece62._0x5884b8,0x1fc,_0xece62._0x40aa48)]>0x0){_0x574493[_0x1008dd(0x173,_0xece62._0x22fecf,0x16e,_0xece62._0x58a3b5)]+=_0x26d3f3;if(isUserVisibleThinking(this[_0x46837c(0x5dc,_0xece62._0x4d7c2c,_0xece62._0x4b87a7,_0xece62._0xce03d3)]))return[{'type':_0x1008dd(_0xece62._0x2b3f5e,0x100,0x1ff,_0xece62._0x150a0e),'index':_0xdd5aca,'thinking':_0x26d3f3}];}}if(_0x47fcf5[_0x46837c(0x51d,0x411,_0xece62._0x42260b,0x54d)]===_0x1008dd(_0xece62._0xd88d48,_0xece62._0x27b17f,0x203,_0xece62._0x1c7aa4)&&_0x574493[_0x46837c(0x4e8,_0xece62._0x3ec3fd,_0xece62._0x2d3467,_0xece62._0x4c488f)]===_0x1008dd(0x51,_0xece62._0x459556,0x17f,0x134)){const _0x5d73e6=typeof _0x47fcf5[_0x1008dd(0x17b,_0xece62._0x459556,0xc8,0x115)]===_0x1008dd(0x18b,0x2e3,0x23d,0x21d)?String(_0x47fcf5[_0x1008dd(0x4b,0xf2,_0xece62._0x25c674,0x115)]):'';if(_0x5d73e6[_0x46837c(0x67b,0x519,_0xece62._0x3e293b,_0xece62._0x135996)]>0x0){_0x574493[_0x1008dd(0x1f9,0x11b,0x33,0x115)]=_0x5d73e6;if(isUserVisibleThinking(this['request']))return[{'type':'anthropic_signature_delta','index':_0xdd5aca,'signature':_0x5d73e6}];}}break;}case _0x1008dd(0x105,0x286,_0xece62._0x4f49f6,_0xece62._0x539bfe):{const _0x5e4620=_0x100b5b[_0x1008dd(_0xece62._0x4cd6ea,_0xece62._0x3cd4ad,_0xece62._0x424054,_0xece62._0x14d3b9)],_0xf5ddf4=_0x100b5b['usage'];this[_0x46837c(_0xece62._0x239d2e,0x469,_0xece62._0x574b0f,0x411)]=_0xf5ddf4?.[_0x1008dd(_0xece62._0x81b6dd,_0xece62._0x2512f6,0x23a,0x199)]??this['inputTokens'],this[_0x46837c(0x710,_0xece62._0x454a9d,0x655,0x613)]=_0xf5ddf4?.[_0x1008dd(0x2a3,0x206,0x1a8,_0xece62._0x5f4d4e)]??this['cacheReadInputTokens'],this[_0x1008dd(0x1ff,_0xece62._0x4b829f,_0xece62._0x81b6dd,0x1c5)]=_0xf5ddf4?.['cache_creation_input_tokens']??this[_0x1008dd(0x18d,0x216,0x12a,0x1c5)],this[_0x46837c(0x6d8,_0xece62._0x19db14,0x5f5,_0xece62._0x3bfdbd)]=_0xf5ddf4?.['output_tokens']??this[_0x46837c(_0xece62._0x5ca90d,_0xece62._0x561fb8,_0xece62._0x2fb347,0x56d)],this[_0x46837c(_0xece62._0x2c312f,0x64c,0x5ad,_0xece62._0x51e6ae)]=_0x5e4620?.[_0x1008dd(_0xece62._0x4d8dfd,0xb6,_0xece62._0x3cb43d,_0xece62._0x427955)]===_0x1008dd(0x79,_0xece62._0x1cee87,0x63,_0xece62._0x491f6b)?_0x1008dd(0x177,_0xece62._0x1caec6,_0xece62._0x19b22f,0x10f):_0x1008dd(_0xece62._0x113b92,0x15d,_0xece62._0x426f75,0x17c);break;}case _0x46837c(_0xece62._0x14e2f0,0x56b,_0xece62._0x1af859,_0xece62._0x5c8d99):{const _0x1ddf98=_0x100b5b[_0x1008dd(0x1fc,0x17c,_0xece62._0x36759c,_0xece62._0x46150a)];throw new ProviderStreamEventError(_0x1ddf98?.[_0x46837c(0x5b8,0x5b9,_0xece62._0x426300,_0xece62._0x1d4382)]??_0x1008dd(0x393,0x1e9,0x2ce,_0xece62._0x23f3e0),{'code':_0x1ddf98?.[_0x46837c(_0xece62._0x2bf068,_0xece62._0x169249,_0xece62._0x4b00b6,0x5c0)],'retryable':!![]});}}return[];}['finish'](){const _0x4add75={_0x48b0f8:0xc4,_0x4b612a:0x110,_0x22e618:0x99,_0x50da6d:0x90,_0x107038:0xd3,_0x5baf54:0x35,_0x4ef41b:0x7d,_0x465fd1:0x12b,_0x399e37:0xae,_0x32f221:0x57,_0x2d193a:0x141,_0x54996a:0x4f,_0x39cbfa:0x96,_0x4b0916:0x17d,_0x82b1c9:0xc1,_0x168978:0xc2,_0x52b390:0x4,_0x2ebc84:0x26,_0x454e00:0x4e,_0x2dfff1:0x5d,_0x2998ce:0x84,_0x4abfdf:0x2,_0x5c85f5:0x148,_0x339572:0x61,_0x43ab7c:0xd2,_0x22f97a:0x118,_0x451fbc:0x55,_0x24b851:0xf,_0x3193ef:0xcd,_0x29af0e:0xd,_0x3e4968:0x1e,_0xa99477:0x48,_0x5e8089:0x3,_0x246d59:0x8,_0x14f6f5:0x21,_0x45961e:0x39,_0xc066ae:0x41,_0x27a0be:0xc1,_0x20318d:0x34,_0x215bd3:0xe,_0x425aa7:0x188,_0x1237cf:0x7,_0x5a43de:0xa5,_0x49d2f9:0xb4,_0x1012a4:0x8d,_0x13c53a:0x17,_0x307236:0x15a,_0x3a817b:0x1,_0x5be8fe:0x51,_0x2ed2ca:0xd3,_0x10732a:0x32,_0x595483:0x2f},_0x5044a7={_0xc6356a:0x3d1};function _0x52ae5f(_0x353dd1,_0x11614c,_0x360f6c,_0xf03bb){return _0x551389(_0x353dd1-0x9b,_0x353dd1- -0x383,_0x11614c,_0xf03bb-0xdb);}const _0x1e180f=Array[_0x52ae5f(_0x4add75._0x48b0f8,_0x4add75._0x4b612a,-0x26,0x121)](this[_0x5b1516(-0x12c,-0xd4,-_0x4add75._0x22e618,-0x5)][_0x5b1516(0x24,_0x4add75._0x50da6d,0x144,_0x4add75._0x107038)]())[_0x5b1516(_0x4add75._0x5baf54,_0x4add75._0x4ef41b,_0x4add75._0x465fd1,0x118)]((_0x1dcb4d,_0x4ae4ba)=>_0x1dcb4d[_0x5b1516(-0x1b8,-0xc8,-0x15f,-0xf4)]-_0x4ae4ba[_0x52ae5f(-0x7a,-0x3c,-0x134,-0x167)]),_0x27dd04=[];for(const _0x5008df of _0x1e180f){if(_0x5008df[_0x52ae5f(0x4,0x55,-_0x4add75._0x399e37,_0x4add75._0x32f221)]===_0x5b1516(-0x172,-0x108,-_0x4add75._0x2d193a,-0x8d)){_0x5008df[_0x5b1516(-_0x4add75._0x54996a,-0x108,-0xa1,-_0x4add75._0x39cbfa)]['length']>0x0&&_0x27dd04[_0x5b1516(_0x4add75._0x4b0916,_0x4add75._0x82b1c9,-0x28,_0x4add75._0x168978)]({'type':'text','text':_0x5008df['text']});continue;}if(_0x5008df[_0x52ae5f(_0x4add75._0x52b390,0xe,_0x4add75._0x2ebc84,-0x42)]===_0x52ae5f(-0x84,_0x4add75._0x454e00,-0x158,-_0x4add75._0x2dfff1)){_0x27dd04['push']({'type':_0x52ae5f(-_0x4add75._0x2998ce,_0x4add75._0x4abfdf,-_0x4add75._0x5c85f5,_0x4add75._0x339572),'thinking':_0x5008df[_0x5b1516(-0x10d,-_0x4add75._0x43ab7c,-_0x4add75._0x22f97a,-0xbd)],'signature':_0x5008df[_0x52ae5f(-0xa3,-_0x4add75._0x451fbc,0x20,_0x4add75._0x24b851)]});continue;}if(_0x5008df[_0x52ae5f(_0x4add75._0x52b390,-_0x4add75._0x3193ef,-_0x4add75._0x29af0e,_0x4add75._0x3e4968)]===_0x5b1516(-_0x4add75._0xa99477,-0x2e,-0x11b,0x96)){_0x27dd04[_0x5b1516(-_0x4add75._0x5e8089,_0x4add75._0x82b1c9,0xaf,-_0x4add75._0x246d59)]({'type':_0x5b1516(-0xa,-0x2e,-0x16,0x6d),'data':_0x5008df[_0x5b1516(0x96,-_0x4add75._0x14f6f5,-0x75,-0x105)]});continue;}_0x27dd04[_0x5b1516(0x183,_0x4add75._0x82b1c9,_0x4add75._0x45961e,0x19c)]({'type':'tool_use','id':_0x5008df['id'],'name':_0x5008df['name'],'input':parseToolInput(_0x5008df['inputJson'][_0x5b1516(-_0x4add75._0xc066ae,-0x5f,-0x10b,0x2c)]>0x0?_0x5008df['inputJson']:'{}')});}function _0x5b1516(_0x473e0e,_0x2136a3,_0x520a20,_0x52fcd9){return _0x551389(_0x473e0e-0x66,_0x2136a3- -_0x5044a7._0xc6356a,_0x520a20,_0x52fcd9-0x144);}return parseAnthropicResponse({'id':this[_0x52ae5f(_0x4add75._0x27a0be,0xad,0x14,_0x4add75._0x20318d)],'type':_0x52ae5f(0xdf,-_0x4add75._0x215bd3,0xe4,_0x4add75._0x425aa7),'role':'assistant','content':_0x27dd04,'stop_reason':this[_0x52ae5f(_0x4add75._0x1237cf,0x91,-_0x4add75._0x5a43de,0x1b)],'stop_sequence':null,'usage':{'input_tokens':this[_0x52ae5f(-_0x4add75._0x49d2f9,-_0x4add75._0x1012a4,-_0x4add75._0x13c53a,-_0x4add75._0x307236)],'output_tokens':this[_0x5b1516(0x52,_0x4add75._0x3a817b,-_0x4add75._0x5be8fe,0x3c)],'cache_read_input_tokens':this[_0x5b1516(_0x4add75._0x2ed2ca,_0x4add75._0x339572,-0xf,-_0x4add75._0x10732a)],'cache_creation_input_tokens':this[_0x5b1516(_0x4add75._0x595483,-0x41,0x8a,-0xfe)]}},this['request']);}};function createAnthropicSurfaces(){const _0x47dcc9={_0x2fe5db:0x57a,_0x1c962a:0x582,_0x37cf3d:0x568,_0x37e093:0x4c8,_0x32ba66:0x48c},_0x5e2995={_0x30de1d:0x122,_0x1e508b:0xd5,_0x4b9916:0xf2},_0x30a347={_0x14977c:0x49,_0x491031:0x55};function _0x58c16d(_0x36ad77,_0x5b7e09,_0x47f03e,_0x16a283){return _0x551389(_0x36ad77-_0x30a347._0x14977c,_0x16a283-0x1aa,_0x47f03e,_0x16a283-_0x30a347._0x491031);}function _0x10f117(_0x4aaf5a,_0x61dd67,_0x3b6af6,_0x222373){return _0xf0dc29(_0x222373-_0x5e2995._0x30de1d,_0x61dd67-_0x5e2995._0x1e508b,_0x4aaf5a,_0x222373-_0x5e2995._0x4b9916);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x58c16d(_0x47dcc9._0x2fe5db,0x629,_0x47dcc9._0x1c962a,_0x47dcc9._0x37cf3d),'createRequest'(_0x11bd1e){return createAnthropicRequest(_0x11bd1e,![]);},'parseResponse'(_0x33172a,_0x2a2dbf){return parseAnthropicResponse(_0x33172a,_0x2a2dbf);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x10f117(0x3d2,0x551,_0x47dcc9._0x37e093,_0x47dcc9._0x32ba66),'createRequest'(_0x5bb334){return createAnthropicRequest(_0x5bb334,!![]);},'createStreamParser'(_0x1582ad){return new AnthropicMessagesStreamParser(_0x1582ad);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];['streamSurface'];constructor(_0x311c56){const _0x16a7d7={_0x7c69d8:0x347,_0xd54d52:0x363,_0x3d7793:0x231,_0x2d14ff:0x171,_0x4085b3:0x1b8,_0x1afc1c:0x1ca,_0x67e74a:0x1eb};function _0x404e9c(_0x90b3da,_0x5b6356,_0x15d212,_0x322ee7){return _0x551389(_0x90b3da-0xe9,_0x90b3da- -0x1b7,_0x5b6356,_0x322ee7-0x1ac);}function _0x2261b0(_0x575f6d,_0x3899f6,_0x1f5ad7,_0xee67ef){return _0x551389(_0x575f6d-0x123,_0x1f5ad7- -0x25,_0xee67ef,_0xee67ef-0x179);}this[_0x404e9c(0x2e4,_0x16a7d7._0x7c69d8,_0x16a7d7._0xd54d52,_0x16a7d7._0x3d7793)]=_0x311c56['complete'],this[_0x404e9c(0x158,0x180,_0x16a7d7._0x2d14ff,0x13e)]=_0x311c56[_0x404e9c(0x247,_0x16a7d7._0x4085b3,_0x16a7d7._0x1afc1c,_0x16a7d7._0x67e74a)];}[_0xf0dc29(0x269,0x2c9,0x208,0x1c3)](_0x5d1a54,_0x938334){const _0x121f96={_0x1ca7d5:0x186,_0x20d84d:0x1b0,_0x818a40:0x189,_0x430f27:0x22b,_0x15dead:0x296,_0x5d523e:0x3c1,_0x4a04ed:0x3f4,_0xdbce37:0x54d},_0x596c45={_0x59eb3c:0x191,_0x2df84b:0x25},_0x3e76cf={_0x445377:0xf4,_0x489d09:0x1d5};function _0x1617b6(_0x182d47,_0x251a37,_0x2cf30a,_0x1db108){return _0xf0dc29(_0x251a37- -_0x3e76cf._0x445377,_0x251a37-_0x3e76cf._0x489d09,_0x2cf30a,_0x1db108-0x26);}function _0x58ebf0(_0x262391,_0x4f641e,_0x2244f2,_0x175980){return _0xf0dc29(_0x2244f2-_0x596c45._0x59eb3c,_0x4f641e-_0x596c45._0x2df84b,_0x175980,_0x175980-0x55);}return _0x938334[_0x1617b6(0x222,_0x121f96._0x1ca7d5,_0x121f96._0x20d84d,0x156)]===_0x1617b6(_0x121f96._0x818a40,_0x121f96._0x430f27,0x1e3,_0x121f96._0x15dead)?this[_0x58ebf0(0x32e,0x435,_0x121f96._0x5d523e,_0x121f96._0x4a04ed)]:this[_0x58ebf0(0x57c,0x530,_0x121f96._0xdbce37,0x4ea)];}};function trimTrailingSlashes(_0x2cbeb7){return _0x2cbeb7['replace'](/\/+$/,'');}function resolveApiCredential(_0x2f6d7a,_0x12e5d8){const _0x1ca0e6={_0x22b3da:0x677,_0x3dee6d:0x5dd,_0x3b3e2f:0x5dc,_0x220ff1:0x56b},_0x44acee={_0x3e6577:0xe3},_0x5286b1={_0x30d82a:0xb6,_0x145922:0x138,_0x35c0a6:0x193};function _0x3493ba(_0x47c114,_0x290478,_0x4cb795,_0x359cb9){return _0x551389(_0x47c114-_0x5286b1._0x30d82a,_0x359cb9-_0x5286b1._0x145922,_0x4cb795,_0x359cb9-_0x5286b1._0x35c0a6);}if(_0x12e5d8?.[_0x54298c(0x54b,0x670,0x5dc,0x661)])return _0x12e5d8[_0x54298c(_0x1ca0e6._0x22b3da,_0x1ca0e6._0x3dee6d,_0x1ca0e6._0x3b3e2f,_0x1ca0e6._0x220ff1)];function _0x54298c(_0x5b950d,_0x355ac4,_0x2f7a44,_0x25e343){return _0xf0dc29(_0x2f7a44-0x2b8,_0x355ac4-_0x44acee._0x3e6577,_0x355ac4,_0x25e343-0x1b);}if(!_0x2f6d7a)return void 0x0;return{'kind':_0x54298c(0x51e,0x540,0x4dc,0x47a),'value':_0x2f6d7a};}function resolveSessionBaseUrl(_0x119fe6,_0x713172){const _0x149d29={_0x4bcf50:0x13f,_0x3400f7:0x228},_0x431fd8={_0x3f5ae1:0x1b7,_0x2372df:0xda},_0x5d64ea={_0x32487f:0x85,_0x15d272:0x1df};function _0x32f81a(_0x45ab53,_0x403162,_0x1e25a6,_0x35c9c8){return _0xf0dc29(_0x45ab53-_0x5d64ea._0x32487f,_0x403162-_0x5d64ea._0x15d272,_0x403162,_0x35c9c8-0x1dd);}function _0x1e1ed1(_0x1d404b,_0xd421d5,_0x15036f,_0x819ade){return _0xf0dc29(_0x1d404b- -0xce,_0xd421d5-_0x431fd8._0x3f5ae1,_0x15036f,_0x819ade-_0x431fd8._0x2372df);}return trimTrailingSlashes(_0x713172?.[_0x1e1ed1(0x2d9,0x3b4,0x20d,0x3b2)]?.[_0x1e1ed1(_0x149d29._0x4bcf50,0x13d,0x142,_0x149d29._0x3400f7)]??_0x119fe6);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':_0xf0dc29(0x2dd,0x263,0x2df,0x2cd),'cliDefaultModel':_0x551389(0x28b,0x326,0x2d3,0x286),'providers':{'anthropic':{'label':_0xf0dc29(0x2e6,0x35b,0x2a2,0x377),'baseUrl':'https://api.anthropic.com','surface':'anthropic-messages','authScheme':'x-api-key','defaultModel':_0x551389(0x454,0x37c,0x3c4,0x30b),'defaultModels':[_0x551389(0x389,0x37c,0x305,0x391),_0x551389(0x372,0x3b1,0x442,0x3d8)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x551389(0x412,0x41e,0x398,0x4f6),'baseUrl':_0x551389(0x356,0x327,0x3e9,0x3b8),'anthropicBaseUrl':_0xf0dc29(0x260,0x1f6,0x2da,0x303),'surface':'anthropic-messages','authScheme':_0xf0dc29(0x291,0x33e,0x34c,0x2e2),'defaultModel':_0xf0dc29(0x247,0x163,0x2cd,0x281),'defaultModels':[_0x551389(0x396,0x3aa,0x398,0x32c),_0x551389(0x3f3,0x477,0x4db,0x3a4),'glm-4.7',_0xf0dc29(0x361,0x3b2,0x293,0x2a5),'glm-4.5'],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x1f400},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':'OpenRouter','baseUrl':_0x551389(0x33d,0x313,0x2e2,0x280),'surface':_0xf0dc29(0x39b,0x48a,0x3e4,0x44c),'authScheme':'bearer','defaultModel':_0x551389(0x441,0x3c3,0x487,0x465),'defaultModels':[_0xf0dc29(0x2e4,0x394,0x22c,0x39a),_0xf0dc29(0x30c,0x289,0x25d,0x254)],'supportsModelFetch':!![],'models':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}}},'github':{'label':_0xf0dc29(0x257,0x2de,0x325,0x292),'surface':_0xf0dc29(0x2d7,0x1f7,0x32c,0x213),'defaultModel':_0x551389(0x2d2,0x3c0,0x2ec,0x3bb),'defaultModels':[_0x551389(0x34c,0x32d,0x3ac,0x34b),_0x551389(0x40d,0x3a1,0x3b9,0x371),_0x551389(0x40a,0x3ee,0x3fc,0x4d9),'gpt-5-mini',_0x551389(0x465,0x380,0x347,0x427),_0xf0dc29(0x202,0x284,0x269,0x2a4)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x551389(0x3ae,0x48b,0x3f1,0x4d7)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0xf0dc29(0x3ac,0x3bd,0x372,0x2c0)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'openai':{'label':'OpenAI','baseUrl':_0xf0dc29(0x281,0x1cb,0x26f,0x306),'surface':'openai-chat-completions','authScheme':'bearer','defaultModel':'gpt-4o','defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x551389(0x40b,0x338,0x384,0x24a),'baseUrl':_0xf0dc29(0x262,0x28d,0x2c1,0x22f),'surface':_0xf0dc29(0x3ac,0x431,0x31c,0x33d),'authScheme':_0x551389(0x403,0x370,0x282,0x35d),'defaultModel':_0x551389(0x3b3,0x3de,0x484,0x346),'defaultModels':[_0xf0dc29(0x2ff,0x378,0x361,0x363),_0xf0dc29(0x3a2,0x2e9,0x47e,0x375)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':'MiniMax','baseUrl':_0xf0dc29(0x228,0x2e6,0x13d,0x161),'surface':_0xf0dc29(0x3ac,0x2d4,0x417,0x2f9),'authScheme':_0xf0dc29(0x291,0x2c8,0x2f6,0x2fb),'defaultModel':_0x551389(0x481,0x3ab,0x2fa,0x47a),'defaultModels':[_0xf0dc29(0x2cc,0x28e,0x32e,0x1e1)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x551389(0x445,0x3ea,0x345,0x31e),'baseUrl':_0xf0dc29(0x354,0x35c,0x373,0x341),'modelsBaseUrl':_0x551389(0x288,0x321,0x283,0x39f),'surface':_0xf0dc29(0x3ac,0x2e1,0x3a8,0x45e),'authScheme':_0xf0dc29(0x306,0x345,0x23b,0x3ce),'defaultModel':'claude-sonnet-4-20250514','defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x551389(0x50f,0x42c,0x3cc,0x40f),'baseUrl':_0x551389(0x3fb,0x366,0x2eb,0x353),'modelsBaseUrl':_0x551389(0x35c,0x43a,0x51e,0x41f),'surface':_0x551389(0x3a4,0x48b,0x564,0x3bc),'authScheme':'x-api-key','defaultModel':_0x551389(0x41e,0x389,0x3b9,0x32d),'defaultModels':[_0xf0dc29(0x2aa,0x393,0x260,0x2f2)],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default;function findProviderKey(_0x352ce9){const _0x46e202={_0x5844d1:0x231,_0x5af2f3:0x1ff,_0x4a6c42:0x1f5,_0x323e72:0x232,_0x491cc8:0x94,_0x3c3125:0x172,_0x454126:0x27d,_0x5534ad:0x16b},_0x305677={_0x1ca53e:0x83,_0x34e6b1:0x206,_0x11abe4:0x1c4},_0x3ac00b={_0x14c950:0x9a,_0x32b49f:0x19},_0x12c095=_0x352ce9[_0x321dc0(_0x46e202._0x5844d1,0x268,_0x46e202._0x5af2f3,_0x46e202._0x4a6c42)]();function _0x578680(_0x4d2782,_0x2d25ce,_0x5caf62,_0x18d57d){return _0xf0dc29(_0x2d25ce- -0x47f,_0x2d25ce-_0x3ac00b._0x14c950,_0x18d57d,_0x18d57d-_0x3ac00b._0x32b49f);}function _0x321dc0(_0x818ee5,_0x1c1aeb,_0x477ef5,_0x1e1a93){return _0x551389(_0x818ee5-_0x305677._0x1ca53e,_0x477ef5- -_0x305677._0x34e6b1,_0x818ee5,_0x1e1a93-_0x305677._0x11abe4);}return Object[_0x578680(-_0x46e202._0x323e72,-0x1aa,-0x1d4,-0x1bc)](data[_0x321dc0(0x193,_0x46e202._0x491cc8,_0x46e202._0x3c3125,0x1b9)])[_0x578680(-_0x46e202._0x454126,-0x1a9,-_0x46e202._0x5534ad,-0x261)](_0xb6d407=>_0xb6d407[_0x578680(-0x1ef,-0x159,-0x110,-0x188)]()===_0x12c095);}function getProviderProfile(_0x1d86f4){const _0x130acc={_0x11fe23:0x18,_0x3a52ff:0x8f,_0x354c3b:0x55,_0x2b3566:0xc,_0x18d4f7:0x102,_0x4a346d:0x47,_0xca3b0f:0x49,_0x23f1e6:0x5b,_0x5f154d:0x85,_0x1b210e:0x14f,_0x343bfb:0x7a,_0x47216b:0x5c,_0xc52d2e:0xdd,_0x1d089d:0x83,_0x3297b2:0x53,_0x1a6f34:0x9,_0x1e2c46:0x13b,_0x321767:0x19c,_0x23d36b:0x5f,_0x227927:0x196,_0x2f5e6:0x11d,_0x20732c:0x1c4},_0x21a594={_0x15206e:0x34f,_0x2f9c2f:0x4a},_0x5f5240=findProviderKey(_0x1d86f4);if(!_0x5f5240)return void 0x0;function _0x49e320(_0x544339,_0x548b66,_0x46a316,_0x590af1){return _0xf0dc29(_0x46a316- -_0x21a594._0x15206e,_0x548b66-_0x21a594._0x2f9c2f,_0x548b66,_0x590af1-0x164);}const _0x45c54c=data[_0x49e320(0x1,0x15,-0xb6,_0x130acc._0x11fe23)][_0x5f5240],_0x38bf2a={};function _0x458a1d(_0x3139fa,_0x3063c3,_0x5df16a,_0x3ca97e){return _0x551389(_0x3139fa-0x1db,_0x3ca97e- -0x3d8,_0x3063c3,_0x3ca97e-0x1ab);}for(const [_0x4a0322,_0x21a8f9]of Object[_0x49e320(_0x130acc._0x3a52ff,0x109,_0x130acc._0x354c3b,0x116)](_0x45c54c[_0x458a1d(-0x13,0x153,-0x2f,0x8b)])){_0x38bf2a[_0x4a0322]=_0x21a8f9;}return{'label':_0x45c54c[_0x49e320(0x10,-_0x130acc._0x2b3566,-0x68,-_0x130acc._0x18d4f7)],'baseUrl':_0x45c54c[_0x458a1d(-0x4e,_0x130acc._0x4a346d,-_0x130acc._0xca3b0f,0x3e)],'modelsBaseUrl':_0x45c54c[_0x49e320(-0x101,_0x130acc._0x23f1e6,-_0x130acc._0x5f154d,0x49)],'anthropicBaseUrl':_0x45c54c[_0x458a1d(_0x130acc._0x1b210e,-_0x130acc._0x343bfb,0x80,0x6b)],'surface':_0x45c54c[_0x49e320(_0x130acc._0x47216b,-_0x130acc._0xc52d2e,0xa,_0x130acc._0x1d089d)],'authScheme':_0x45c54c[_0x458a1d(0x5d,-_0x130acc._0x3297b2,-0x8e,_0x130acc._0x1a6f34)],'defaultModel':_0x45c54c[_0x458a1d(0x71,_0x130acc._0x1e2c46,_0x130acc._0x321767,0xb2)],'defaultModels':_0x45c54c[_0x49e320(-_0x130acc._0x23d36b,-_0x130acc._0x227927,-_0x130acc._0x2f5e6,-_0x130acc._0x20732c)]??[],'supportsModelFetch':_0x45c54c['supportsModelFetch']??![],'models':_0x38bf2a};}function getModelProfile(_0x5f2149,_0x4d8527){const _0x351c48={_0x1b2f02:0x221,_0x5f2506:0x1a2,_0x5df42a:0x123},_0x25559b={_0x2915f3:0xc2},_0x43f2d7={_0x3bb9de:0x4a7};function _0x14f4b3(_0x32a124,_0x3366ab,_0x3f4c9b,_0x208db8){return _0xf0dc29(_0x32a124- -_0x43f2d7._0x3bb9de,_0x3366ab-0x1db,_0x3366ab,_0x208db8-0x84);}const _0x3c7498=findProviderKey(_0x5f2149);if(!_0x3c7498)return void 0x0;function _0xec2092(_0x598d4d,_0x2a49ec,_0x19d218,_0x364570){return _0xf0dc29(_0x19d218- -0x43b,_0x2a49ec-0xe1,_0x364570,_0x364570-_0x25559b._0x2915f3);}return data[_0xec2092(-_0x351c48._0x1b2f02,-0x25c,-_0x351c48._0x5f2506,-0x281)][_0x3c7498][_0x14f4b3(-_0x351c48._0x5df42a,-0x68,-0xb4,-0x64)][_0x4d8527];}function resolveModelProfile(_0x404aa9,_0x2c0bdd){const _0x5cc90d={_0x4927c5:0x4b5,_0x5d06db:0x419,_0x331eef:0x3cd,_0x1a0075:0x4a3,_0x5481d6:0x511,_0x132211:0x3a1,_0xdae24b:0x3da,_0x365676:0x52f,_0x56679f:0x46b,_0x5eb7ae:0x481,_0xd8282f:0x3c2,_0x3400f1:0x48c,_0x48a72c:0x437,_0x257ccf:0x48d,_0x223e83:0x41b,_0x39f9cf:0x4f2,_0x4dccad:0x35d,_0x40ede2:0x37d,_0xbfbec1:0x403,_0x32df02:0x43b},_0x483598={_0x2e6abf:0x9d},_0x4cbd93={_0x346ff2:0x12b,_0x48c4b2:0x1dc,_0x4a7a98:0x7a},_0x3fc3a9=findProviderKey(_0x404aa9);if(!_0x3fc3a9)return void 0x0;const _0x1a944d=data[_0x38fcba(_0x5cc90d._0x4927c5,_0x5cc90d._0x5d06db,_0x5cc90d._0x331eef,0x3a0)][_0x3fc3a9];function _0x2332c4(_0x40615a,_0x71c6f3,_0x5e5190,_0x2fa409){return _0xf0dc29(_0x2fa409-_0x4cbd93._0x346ff2,_0x71c6f3-_0x4cbd93._0x48c4b2,_0x40615a,_0x2fa409-_0x4cbd93._0x4a7a98);}function _0x38fcba(_0xe53a55,_0x1b01fe,_0xb7ce07,_0x1b4111){return _0x551389(_0xe53a55-_0x483598._0x2e6abf,_0xb7ce07-0x55,_0xe53a55,_0x1b4111-0x97);}const _0x53c84c=_0x1a944d[_0x2332c4(_0x5cc90d._0x1a0075,0x4e5,_0x5cc90d._0x5481d6,0x4af)][_0x2c0bdd];return{'label':_0x1a944d[_0x38fcba(_0x5cc90d._0x132211,0x36e,0x41b,0x4c4)],'baseUrl':_0x1a944d[_0x38fcba(_0x5cc90d._0xdae24b,_0x5cc90d._0x365676,_0x5cc90d._0x56679f,_0x5cc90d._0x5eb7ae)],'modelsBaseUrl':_0x1a944d[_0x2332c4(_0x5cc90d._0xd8282f,_0x5cc90d._0x3400f1,_0x5cc90d._0x48a72c,0x3f5)],'anthropicBaseUrl':_0x1a944d['anthropicBaseUrl'],'surface':_0x53c84c?.['surface']??_0x1a944d[_0x38fcba(0x511,0x492,_0x5cc90d._0x257ccf,_0x5cc90d._0x223e83)],'authScheme':_0x1a944d[_0x2332c4(_0x5cc90d._0x39f9cf,_0x5cc90d._0x4dccad,0x3f7,0x42d)],'defaultModel':_0x1a944d['defaultModel'],'defaultModels':_0x1a944d['defaultModels'],'supportsModelFetch':_0x1a944d['supportsModelFetch'],'contextWindow':_0x53c84c?.[_0x38fcba(0x4e7,_0x5cc90d._0x40ede2,_0x5cc90d._0xbfbec1,_0x5cc90d._0x32df02)],'maxOutput':_0x53c84c?.['maxOutput']};}function _0x53da(){const _0x495c68=['Aw5PDgLHBev2zw50','Dg9VBa','yNvPBgrqyxj0AwfSt3v0Chv0','z2XTltqUnW','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','CMvMDxnHBa','qMfZAa','D2vIC29JA2v0','Dg9bCgLfCNjVCG','zxzLBNq6','y2XHDwrLlxnVBM5LDc00lJu','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','CMvHC29UAw5NugfYDhm','y29UDgv4Df9Szw5NDgG','Dg9VBhm','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','DhjHBNnWB3j0','D2fPDezVCLjLDhj5','zMLSDgvY','r2L0shvIie1VzgvSCYaVienVCgLSB3q','yxv0BW','rgvLCfnLzwS','CMvZB2X2zujHC2vvCMW','y29TCgXLDgu','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','mZKXnJK4B1HyDwrH','B3v0Chv0rM9YBwf0','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','B3v0Chv0x2LUzgv4','Ahr0Chm6lY9HCgKUzgvLChnLzwSUy29Tl2fUDgHYB3bPyW','BwvKAwfFDhLWzq','C3LZDgvT','CMvZB2X2zunYzwrLBNrPywW','BwvZC2fNzv9ZDgfYDa','Dg9VBenHBgXZqNLjBMrLEa','zw5Kx3r1CM4','C2vSzwn0u3vYzMfJzq','Aw1Hz2u','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','z2v0uMvHzgvY','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','zMXHDe1HCa','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','t3bLBKfPqxbPrxjYB3i','Aw1Hz2vFDxjS','D3m6','ChjVEhK','AgfZ','y29TCgXLDgvK','C2HPzNq','Bw9Kzq','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','ywrK','yM9KEq','t3bLBKfjiefqssbLCNjVCIa','yxbPs2v5','CMvZB2X2zq','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','zMLUAxnOx3jLyxnVBG','CMvHC29U','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','Aw5WDxrFDg9Rzw5Z','zNvUy3rPB25Fy2fSBa','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','yMfZzty0','mtq3ndm2mejVBKTnsa','C3vTBwfYEuj5sw5KzxG','CMvZCg9UC2vZugf0Aa','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','y2fWywjPBgL0AwvZ','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','zxjYB3i','ANnVBG','yMvHCMvY','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','BgvUz3rO','y2fWywjSzv9LBMrWB2LUDhm','y3jLyxrLsgvHzgvYCW','w0rptKvD','Bwf4x291Dhb1Df90B2TLBNm','z2v0','ChjVDMLKzxjZ','zNvUy3rPB24','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','ywjVCNrLza','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','CMvHzhLtDgf0zq','CMvTB3zLrxzLBNrmAxn0zw5LCG','z3jVAY1JB2rLlwzHC3qTmq','C3vWCg9YDhnnB2rLBezLDgnO','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','CMv0CNKTywz0zxi','y29TCgXLDgvwAwftDxjMywnL','CgfYC2vszxnWB25Zzq','Bwv0Ag9K','A2LUza','y2HHDfn0CMvHBq','BwLTBY12mI41lxbYBW','C3rVCfjLyxnVBG','Aw5KzxHpzG','Aw5WDxrFANnVBL9KzwX0yq','y2XVC2u','CMvWBgfJzq','C2v0','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','Aw5JBhvKzunVBNrLBNruExbL','C2LNBMf0DxjLx2rLBhrH','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','zw5JCNLWDgvKq29UDgvUDa','CMvZCg9UC2uUy3jLyxrL','Bw9KzwXfBMrWB2LUDenHy2HL','CMvZCg9UC2uUzMfPBgvK','yw50AhjVCgLJ','BwvZC2fNzv9KzwX0yq','CMvXDwvZDa','C29JA2v0','C3vTBwfYEv90zxH0','B3v0Chv0x3rLEhq','Bwv0ywrHDge','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','CMvZCg9UC2uUy29TCgXLDgvK','z3b0ltqUmq','zMv0y2HjBxbS','CMvKywn0zwrFDgHPBMTPBMC','C2XPy2u','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','DxjS','Dg9VBfvZzvn0yxj0rw1PDhrLza','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','Bw9KzwXZqMfZzvvYBa','z2XTltuUmG','twLUAu1HEc1nmW','y29UC3vTzvDLyLnVy2TLDev2zw50','yxnZAxn0yw50','y29UDgv4DfDPBMrVDW','DgHLBG','zgf0yq','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','y2HHDgnTCgWT','z2v0t3bLBKfPrgvSzwDHDgu','A2v5CW','zMLUza','B3bLBMfPlxjLC3bVBNnLCW','C2vUza','B3bLBMfPx3jLyxnVBMLUzW','y29UDgvUDf9IBg9JA19ZDgfYDa','B3v0Chv0','ChjLDMLVDxnszxnWB25ZzuLK','z3b0ltrV','C3rYAw5NAwz5','Ahr0Cc1QC29U','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','z3b0ltuUmI1JB2rLEa','CMvZCg9UC2vtB2nRzxq','CM91DgvY','B3bLBMfPl2DWDc00BW','BgfZDfjLC3bVBNnLswq','qw50AhjVCgLJ','BgfIzwW','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','DMfSDwu','DNnJB2rLlZeUmta2lJe','A2v5','C3vWCg9YDgvKrw5KCg9PBNrZ','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','zwrPDg9YugX1z2LUvMvYC2LVBG','BNvTyMvY','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','C29Tzq','zgvZy3jPChrPB24','B3v0Chv0vg9Rzw5Z','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','t1bftG','ChjVDg9JB2W','oNjLyxnVBMLUzZOW','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','CMvZCg9UC2vtDhjLyw0','DxnLCI12AxnPyMXL','DNnJB2rLlZeUmta0lJi','C291CMnL','CMv0CNLHyMXL','C3rYzwfTvMLHu3vYzMfJzq','zgvLChnLzwSTDJqTChjV','yw50AhjVCgLJlxzLCNnPB24','CMvZCg9UC2vtB2nRzxrtDhjLyw0','yxv0AfnJAgvTzq','CMvXDwvZDhm','y2HHDenVBxbSzxrPB25Zugf0Aa','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','Ec1HCgKTA2v5','y29UC3vTzuv2zw50','l3jLC3bVBNnLCW','C3rYAw5N','qMvHCMvYia','q29TBwfUzenVzgu','B3bLBMfPl2DWDc00BY1TAw5P','CgfYDgLHBf9QC29U','B3jPz2LUlxrYywnRzxi','z3b0ltu','ANnVBL9Zy2HLBwe','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','y29TCgXLDgLVBL90B2TLBNm','ywrKrxzLBNrmAxn0zw5LCG','BhmGlwXH','ywnJzxnZvg9Rzw4','ChjVDMLKzxjtDgf0zq','y29UDgvUDf9PBMrLEa','C3vYzMfJzxm','ChjLCgfYzunOyxrszxf1zxn0','Cgf0Aa','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','ChjVBxb0x3rVA2vUCW','zgLZywjSzwq','C3rYzwfT','y2HHDgnTCgW','yxnZAxn0yw50lq','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','y3jLzgvUDgLHBa','C2nOzw1H','Dg9mB3DLCKnHC2u','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','CgvUzgLUzW','Bwf4x3rVA2vUCW','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','zMv0y2G','C2vZC2LVBG','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','D2vIu29JA2v0rMfJDg9YEq','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','nduWnJKWmwz0BwX1Cq','Dg9VBf9JywXSCW','zgvSzxrL','Dgv4Df9KzwX0yq','Dgv4Dc9LDMvUDc1ZDhjLyw0','C2vZC2LVBI10B2TLBG','y29UBMvJDf9MywLSzwq','yMfZzvvYBa','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','zw5HyMXLza','z2v0u3vYzMfJzq','BwvZC2fNzxm','ywnJzxb0','CM9Szq','Aw5WDxrFDgv4Da','wI5bsq','CMvZzxq','y2fJAgvK','y29Kzq','CMvZCg9UC2vjza','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','C3vTBwfYEq','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','Dgv4Dej5sw5KzxG','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','B3v0Chv0x3rVA2vUCW','y29UDgvUDc10ExbL','y2f0y2G','C2vZC2LVBKLK','wgLHB21P','y2fUy2vS','B3v0Chv0sw5KzxHuB0nHBgXjza','CMvZCc0','l3yXl21LC3nHz2vZ','BMfTzq','y2fJAgvszwfKsw5WDxruB2TLBNm','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','y2HVAwnLCW','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','Bwf4','C3vYzMfJzq','Ahr0Chm6','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','ChjVDMLKzxi','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','B3bLBMfP','oti2ntm4swnZtxzY','y29UDgvUDf9IBg9JA19KzwX0yq','z2XTltqUnG','B3v0Chv0sw5KzxG','Dg9VBf91C2vFzgvSDge','yw50AhjVCgLJqMfZzvvYBa','BwvZC2fNzuLK','AxrLBv9Pza','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','zNjVBq','B3bLBG','Ahr0Cc1ZC2u','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','zgLZCgXHEq','AgvHzgvYuMvZB2X2zxi','B3bLBKfPrgvSzwDHDgu','C29YDa','y29UBMvJDgLUzW','yNvKz2v0vg9Rzw5Z','yxjNDw1LBNrZ','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','yxv0Ag9YAxPHDgLVBG','y29UDgvUDf9IBg9JAW','BM93','AM9PBG','AxrLBq','DhjPBq','CMvZB2X2zxi','Dgv4DfbHCNrZ','u3vYzMfJzsa','C2HVDwXKuMv0CNLszxnWB25Zzq','Aw50zxjSzwf2zwq','sw52ywXPzcbYzxf1zxn0oIa','Dg9VBenHBgXpCMrLCG','DMfSDwvZ','BwvZC2fNzq','Bw9KzwXZ','CMvHC29UAw5Nx3rVA2vUCW','Aw52ywXPzgf0zq','DgvSzw1LDhj5','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','CMvHC29UAw5Nx2rLDgfPBhm','C3rYAwn0','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C3bSAxq','CgfYC2u','DMLZAwjPBgL0Eq','l21VzgvSCW','Dg9Rzw4','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','ywrHChrPDMu','y29UDgvUDf9KzwX0yq','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','C3vTBwfYAxPLza','zg9Uzq','z2XTltuUmq','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','mtaYmJa4ntzTtLHSCLG','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','Dg9VBc1JywXSlq','Bw9KzwW','AxnbCNjHEq','DxnLCG','Aw5WDxq','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','zgvLChnLzwSTDJqTzMXHC2G','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','zw50CMLLCW','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','B21PDhrLza','zw5KCg9PBNrZ','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','yw50AhjVCgLJrgvSzwDHDgu','BgLTAxrZ','zgvMyxvSDe1VzgvS','yw50AhjVCgLJlw1LC3nHz2vZ','C2vZC2LVBK1HBMfNzxi','AxngAw5PDgu','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','yxbWBgLJyxrPB24VANnVBG','y29UDgvUDa','ChvZAa','Bg9JA2vK','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','mZa3mtq4mfHOyxbqDG','C3rHDhvZ','DhjPBvn0yxj0','zgf0ytO','C3rYzwfTvMLHuM91DgvY','z2v0tw9KzwXZ','y29TCgXLDgvtDxjMywnL','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','yxbWBhLnB2rLBerLzMf1BhrZ','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','CMvXDwvZDe11Dgf0B3jZ','DxnHz2u','ue9tva','BwfW','C3rYzwfTshr0Cfn1CMzHy2u','DhLWzq','Dg9VBenHBgXZ','Dgv4Da','C2LNBMfS','y29UC3vTzvnZzuv2zw50','C3rYDwn0DxjLzf9VDxrWDxq','CMvHC29UAw5N','zgvSDge','Aw5WDxruB2TLBNm','C3rHCNrZv2L0Aa','BwvZC2fNzuLUzgv4','DxnLC1jLC3bVBNnLC0fWAq','C3rHDhvZvgv4Da','B2jQzwn0','z2v0qw50AhjVCgLJrgvSzwDHDgu','v2vIu29JA2v0','zxzLBNq','ChjVDMLKzxjbzgfWDgvY','BxnNlq','Dg9VBf91C2u','C2vUzfDPDgHszxrYAwvZ','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','y3jLyxrLuMvXDwvZDa','o2jHC2u2ncW','mJe1te5nBKXK','C2LNBMf0DxjL','y2XHDwrLlxnVBM5LDc00','zNjVBuvUDhjPzxm','AxneB25L','y3jLyxrLu3rYzwfTugfYC2vY','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','y2HHDenVBxbSzxrL','C2vUzfjHD1jLCxvLC3q','z2v0uMv0CNLezwXHEu1Z','B3bLBMfPlxjLC3bVBNnLCY13CW','AgvHzgvYCW','zgvJB2rL','yxbP','CMvHC29UAw5NsxrLBxm','l2nOyxqVy29TCgXLDgLVBNm','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','mJaYns0Xmc0Wmq','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','DgvZDa','zwzMB3j0','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','CMvZCg9UC2vuzxH0ugfYDhm','C3rYzwfTx2vYCM9Y','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','yw50AhjVCgLJx3rOAw5RAw5N','C3rVCf9YzwfZB24','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','yMXVy2TZ','Aw5JBhvKzxm','DgHPBMTPBMC','D3nZoG','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','yxbPlwTLEq','C3bSAwnL','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','y2fSBeLKvg9pDxrWDxrjBMrLEa','Aw5KzxG','y2fSBf9Pza','Bwf4vg9Rzw5Z','Dg9VBf91C2vFAwq','C3vTBwfYEv9PBMrLEa','mte1otuWzNjiwfPX','C3rYzwfTu3vYzMfJzq','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','zgvMyxvSDe1VzgvSCW','ywDLBNq','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','rgLYzwn0igfUC3DLCJOG','zMLUAxnO','ChjVDg9JB2XwzxjZAw9U','y29WAwXVDc1JAgf0lZaUmZeUmW','BwfWqxbPrxjYB3i','CMvZCg9UC2u','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','Bwf4t3v0Chv0','zMLUywXszxnWB25Zzq','y29TCgXLDgvwAwfsB3v0zxi','C2L6zq','zw5JCNLWDgvKx2nVBNrLBNq','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','z2L0AhvIqxbPvxjS'];_0x53da=function(){return _0x495c68;};return _0x53da();}function getDefaultMaxTokens(){return data['defaultMaxTokens'];}function getDefaultModel(){return data['defaultModel'];}function getCliDefaultModel(){return data['cliDefaultModel'];}function getProviderLabel(_0x49ac5e){const _0x406478={_0x7a925e:0x1ee,_0x3e6c3d:0x523,_0xc5e794:0x594,_0x32b9a7:0x633},_0xccd674={_0xdcd0bb:0x18a},_0x3ed5db={_0x57cd7e:0x27b,_0x5c1a46:0x13a,_0x53e26b:0x7e};function _0x538c60(_0x51194a,_0x58f487,_0x108dbf,_0x236603){return _0xf0dc29(_0x236603-_0x3ed5db._0x57cd7e,_0x58f487-_0x3ed5db._0x5c1a46,_0x108dbf,_0x236603-_0x3ed5db._0x53e26b);}function _0x91833e(_0x59905c,_0x59f79f,_0x3ea895,_0x1d14df){return _0x551389(_0x59905c-0x193,_0x59f79f- -_0xccd674._0xdcd0bb,_0x1d14df,_0x1d14df-0xd5);}const _0xc7f4ac=findProviderKey(_0x49ac5e);return _0xc7f4ac?data[_0x91833e(0x24f,_0x406478._0x7a925e,0x172,0x20f)][_0xc7f4ac][_0x538c60(_0x406478._0x3e6c3d,_0x406478._0xc5e794,_0x406478._0x32b9a7,0x562)]:void 0x0;}function getProviderDefaultModel(_0x326912){const _0x477828={_0x4fbef3:0x586,_0x5d03e9:0x4c4,_0x5bb369:0x404,_0x283f5e:0x5cc},_0x171b94={_0x2032a1:0x150,_0x37aa48:0x14c},_0x1eee77=findProviderKey(_0x326912);function _0x4745ca(_0x41c3bf,_0x39e7d2,_0x58fcb1,_0x55d84d){return _0x551389(_0x41c3bf-_0x171b94._0x2032a1,_0x39e7d2-_0x171b94._0x37aa48,_0x55d84d,_0x55d84d-0x1a);}if(!_0x1eee77)return void 0x0;function _0x3766a1(_0x10efc7,_0x5d1bbe,_0x5fc358,_0x2d3a76){return _0xf0dc29(_0x5fc358-0x221,_0x5d1bbe-0x1f0,_0x10efc7,_0x2d3a76-0x54);}return data[_0x4745ca(_0x477828._0x4fbef3,_0x477828._0x5d03e9,_0x477828._0x5bb369,0x3dd)][_0x1eee77][_0x3766a1(0x569,0x5cf,_0x477828._0x283f5e,0x503)];}function getProviderDefaultModels(_0x39f3cb){const _0x1412f5={_0x5043b8:0x1c9,_0x314d64:0x1f6},_0x41d4da={_0xec75ad:0x1e,_0x30ae16:0xe3},_0x55edbd=findProviderKey(_0x39f3cb);if(!_0x55edbd)return[];function _0x505c4b(_0xa172f3,_0x31583a,_0x458150,_0x252732){return _0x551389(_0xa172f3-_0x41d4da._0xec75ad,_0xa172f3- -0x4da,_0x252732,_0x252732-_0x41d4da._0x30ae16);}return[...data['providers'][_0x55edbd][_0x505c4b(-_0x1412f5._0x5043b8,-0x1d0,-_0x1412f5._0x314d64,-0x248)]??[]];}function providerSupportsModelFetch(_0x37fdb7){const _0x22857d={_0x43d8bc:0x577,_0x2eabd8:0x646},_0x3fb716={_0x348302:0x165,_0x5cea0c:0x1d},_0x3a1518=findProviderKey(_0x37fdb7);function _0x1183a7(_0x590014,_0x5259d5,_0x4e82d0,_0x57123a){return _0x551389(_0x590014-0x17f,_0x4e82d0-0x20d,_0x5259d5,_0x57123a-0x171);}function _0x5cb5a6(_0x13b0f3,_0x3b535c,_0x300387,_0x4dbc62){return _0xf0dc29(_0x13b0f3- -0x197,_0x3b535c-_0x3fb716._0x348302,_0x4dbc62,_0x4dbc62-_0x3fb716._0x5cea0c);}if(!_0x3a1518)return![];return data[_0x5cb5a6(0x102,0x105,0x6e,0x1b4)][_0x3a1518][_0x1183a7(0x60b,_0x22857d._0x43d8bc,0x58e,_0x22857d._0x2eabd8)]??![];}function getOnboardingProviderKeys(){return Object['keys'](data['providers']);}function toErrorMessage(_0x1a0f1b){const _0x183865={_0x44442a:0x4cc,_0x5e1489:0x5bf,_0x154f94:0xbc,_0x39811a:0x1d5},_0x4c3f63={_0x3ff230:0x16f,_0x50547b:0xbc},_0x54ecf9={_0x24c917:0x9d};if(_0x1a0f1b instanceof Error&&_0x1a0f1b[_0x1feec8(_0x183865._0x44442a,_0x183865._0x5e1489,0x4f2,0x464)]['length']>0x0)return _0x1a0f1b['message'];function _0x6db3bd(_0xfed27d,_0x3de087,_0x44822f,_0x3e4250){return _0xf0dc29(_0x44822f- -0x1f5,_0x3de087-_0x54ecf9._0x24c917,_0xfed27d,_0x3e4250-0xb2);}function _0x1feec8(_0x42259f,_0x2e3afa,_0x494003,_0x33c6a8){return _0xf0dc29(_0x494003-_0x4c3f63._0x3ff230,_0x2e3afa-0x1e3,_0x33c6a8,_0x33c6a8-_0x4c3f63._0x50547b);}return _0x6db3bd(0x164,_0x183865._0x154f94,0x176,_0x183865._0x39811a);}function createDefaultWebSocketFactory(){return({headers:_0x4d0fc9,url:_0x2c7b0d})=>{const _0x2027ff=globalThis[_0x34c370(-0x249,-0x137,-0x165,-0x13a)];function _0x34c370(_0x507140,_0x15ce07,_0x43363e,_0x42c988){return _0x5b12(_0x43363e- -0x28c,_0x42c988);}return new _0x2027ff(_0x2c7b0d,{'headers':_0x4d0fc9,'protocols':[]});};}function _0xf0dc29(_0x5aa50a,_0x266af2,_0x20a4b9,_0x13d127){const _0x2ee528={_0x30ae1c:0xd0};return _0x5b12(_0x5aa50a-_0x2ee528._0x30ae1c,_0x20a4b9);}async function*iterateSseEvents(_0x1670ec,_0x3dbf92){const _0x23379a={_0x280143:0x222,_0x2da9c7:0x208,_0x5387dc:0x8b,_0x719816:0xb,_0x21831e:0x115,_0x325f60:0x5d,_0x4abf16:0x33a,_0x2ff058:0x1a4,_0xf23c41:0x1fd,_0x43f291:0xaf,_0x4b41da:0x5f,_0x36265c:0x1b5,_0xdf0836:0x188,_0x5e9c76:0x5d,_0x3531da:0xe3},_0x4a55de={_0x152eca:0x157},_0x5db81b={_0x10430a:0xa8},_0x1d3c22={_0x2df951:0xee},_0x187d4e={_0x4e3efe:0x75,_0x2ee7d2:0x21,_0xdfc1ff:0xb6};function _0x17eb12(_0x3044b7,_0x46c8ac,_0x438b2a,_0x2eb52d){return _0xf0dc29(_0x2eb52d- -_0x187d4e._0x4e3efe,_0x46c8ac-_0x187d4e._0x2ee7d2,_0x438b2a,_0x2eb52d-_0x187d4e._0xdfc1ff);}const _0x5275dd=_0x1670ec[_0x17eb12(0x29c,_0x23379a._0x280143,0x131,_0x23379a._0x2da9c7)]?.[_0x39bc58(_0x23379a._0x5387dc,_0x23379a._0x719816,_0x23379a._0x21831e,0xbc)]();if(!_0x5275dd)return;function _0x39bc58(_0x1f9545,_0xc20fbc,_0x160297,_0x197cae){return _0x551389(_0x1f9545-0xe,_0x197cae- -0x28f,_0x160297,_0x197cae-_0x1d3c22._0x2df951);}const _0x2fd543=new TextDecoder('utf-8');let _0x5f3b45='';const _0x5bc993=addAbortListener(_0x3dbf92,()=>{const _0x88d8cf={_0x3e7123:0x47,_0x1ca7c0:0x2c};function _0xf8ae67(_0x2b4527,_0x477b0a,_0x3f0827,_0x21cb52){return _0x17eb12(_0x2b4527-0x19d,_0x477b0a-_0x5db81b._0x10430a,_0x477b0a,_0x2b4527- -0x10c);}function _0x4e56e5(_0x3098c7,_0x25ade3,_0x5d6ec7,_0x36788a){return _0x39bc58(_0x3098c7-_0x88d8cf._0x3e7123,_0x25ade3-0x6d,_0x3098c7,_0x5d6ec7-_0x88d8cf._0x1ca7c0);}void _0x5275dd[_0xf8ae67(0x1cd,0x1a8,_0x4a55de._0x152eca,0x228)](toAbortError(_0x3dbf92?.[_0x4e56e5(0x15b,0x15e,0xff,0x24)]))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x3dbf92);const {value:_0x2a67c7,done:_0x2c0e6c}=await _0x5275dd['read']();throwIfAborted(_0x3dbf92);if(_0x2c0e6c)break;_0x5f3b45+=_0x2fd543['decode'](_0x2a67c7,{'stream':!![]});while(!![]){const _0x7ab401=_0x5f3b45[_0x39bc58(0x36,_0x23379a._0x325f60,0x64,0xfc)]('\x0a\x0a');if(_0x7ab401===-0x1)break;const _0x3a9078=_0x5f3b45[_0x17eb12(_0x23379a._0x4abf16,0x22e,_0x23379a._0x2ff058,0x250)](0x0,_0x7ab401);_0x5f3b45=_0x5f3b45[_0x39bc58(_0x23379a._0xf23c41,_0x23379a._0x43f291,_0x23379a._0x4b41da,0x115)](_0x7ab401+0x2),_0x3a9078['trim']()[_0x39bc58(_0x23379a._0x36265c,_0x23379a._0xdf0836,0x3b,0xe3)]>0x0&&(yield _0x3a9078);}}_0x5f3b45+=_0x2fd543[_0x39bc58(-0x5a,0xee,-0x50,0x5c)](),throwIfAborted(_0x3dbf92),_0x5f3b45[_0x17eb12(0x391,0x2ca,0x352,0x305)]()[_0x39bc58(0x17,_0x23379a._0x5e9c76,0xa8,_0x23379a._0x3531da)]>0x0&&(yield _0x5f3b45);}finally{_0x5bc993();}}async function waitForWebSocketOpen(_0xf7cd93,_0x7411ea){const _0x32d2b0={_0x58e15b:0x202,_0x5a8432:0x17b,_0xdeaa3d:0x122,_0x35bd23:0x7f,_0x1513ef:0x125},_0x4806bc={_0x722e7a:0xe9,_0x1f813f:0x5d,_0x80bc77:0x6a,_0x40982f:0xab,_0x155a9e:0x7,_0x17b380:0x28,_0x36e600:0x86,_0x56a67b:0x43,_0x1d9907:0x112,_0x3d03fe:0x51,_0xc5409b:0x41,_0x2f2729:0xf1,_0x462c18:0x43,_0x515a37:0xd0,_0x2e027e:0x22,_0xc06abc:0x1a,_0x461e6f:0x7c,_0x159d44:0x27},_0x484a19={_0x4e3d72:0x222,_0x16e18f:0x1ef,_0x39aee2:0x69,_0x59a92e:0x157,_0x500dc5:0x167},_0x3365c1={_0x5174df:0x155};function _0x3f489a(_0x507f5c,_0x1284c9,_0xaef828,_0x206330){return _0x551389(_0x507f5c-0x22,_0x206330-0x83,_0x507f5c,_0x206330-0xf7);}function _0x3ede78(_0x197f38,_0x557743,_0x422d01,_0x2da0de){return _0xf0dc29(_0x422d01- -0x41a,_0x557743-_0x3365c1._0x5174df,_0x2da0de,_0x2da0de-0xd6);}if(_0xf7cd93[_0x3ede78(-0x1ce,-_0x32d2b0._0x58e15b,-_0x32d2b0._0x5a8432,-0xa7)]===WebSocket[_0x3ede78(-_0x32d2b0._0xdeaa3d,-_0x32d2b0._0x35bd23,-_0x32d2b0._0x1513ef,-0x192)]){throwIfAborted(_0x7411ea);return;}throwIfAborted(_0x7411ea),await new Promise((_0x12c421,_0xef4085)=>{const _0x28bfc9={_0x7a85ef:0x1a5,_0x210ad4:0x2d},_0x39b507={_0x50d7f0:0x466,_0x3020bd:0x413,_0x227b1d:0x36f},_0x20a733={_0x422b5a:0x282},_0x2ebcd6={_0x908804:0x648};function _0x4db1c1(_0xf054c7,_0x5f4378,_0x514975,_0x25f0a2){return _0x3ede78(_0xf054c7-0x153,_0x5f4378-0x42,_0x514975-0xaa,_0x5f4378);}const _0x56c317=()=>{_0x26e7ed(),_0x12c421();},_0x3261f0=_0x346302=>{const _0x3cb144={_0x5d0be9:0x37d};function _0xae405d(_0x3ba58b,_0x4e7581,_0x4e0972,_0x3fcb5a){return _0x5b12(_0x3fcb5a-_0x3cb144._0x5d0be9,_0x4e7581);}_0x26e7ed(),_0xef4085(new Error(_0x346302[_0xae405d(0x6a5,_0x2ebcd6._0x908804,0x616,0x630)]||'WebSocket\x20request\x20failed'));},_0x15826d=_0x2aab0d=>{_0x26e7ed();const _0x435063=_0x2aab0d;_0xef4085(new Error(_0x435063['reason']||'WebSocket\x20closed\x20before\x20opening'));},_0x3a4d5b=()=>{function _0x3f2b95(_0x3bec9f,_0x1de569,_0x4642b7,_0x2beaf0){return _0x5b12(_0x2beaf0-0x86,_0x1de569);}_0x26e7ed();function _0xba987d(_0x10c816,_0x5d02a0,_0x472640,_0x30e87b){return _0x5b12(_0x30e87b-_0x20a733._0x422b5a,_0x5d02a0);}_0xf7cd93[_0xba987d(_0x39b507._0x50d7f0,0x413,_0x39b507._0x3020bd,0x451)]===WebSocket['OPEN']&&_0xf7cd93['close'](0x3e8,_0xba987d(0x432,_0x39b507._0x227b1d,0x49f,0x44e)),_0xef4085(toAbortError(_0x7411ea?.['reason']));},_0x26e7ed=()=>{const _0x3f63b0={_0x58d843:0x77};function _0x2179fe(_0x32ab2f,_0x1c927b,_0x2b9bad,_0x365686){return _0x5b12(_0x1c927b- -0x3b2,_0x32ab2f);}function _0x58c5c1(_0xf4685c,_0x4e6c26,_0x1ea656,_0x3e689b){return _0x5b12(_0xf4685c- -_0x3f63b0._0x58d843,_0x1ea656);}_0xf7cd93['removeEventListener'](_0x58c5c1(_0x484a19._0x4e3d72,0x282,0x240,0x133),_0x56c317),_0xf7cd93[_0x2179fe(-_0x484a19._0x16e18f,-0x1e2,-0x186,-0x2a0)](_0x2179fe(-0x201,-0x1f3,-0x21a,-0x281),_0x3261f0),_0xf7cd93[_0x58c5c1(0x159,_0x484a19._0x39aee2,_0x484a19._0x59a92e,0x17b)](_0x58c5c1(_0x484a19._0x500dc5,0xf2,0x13d,0x193),_0x15826d),_0x7411ea?.[_0x58c5c1(0x159,0x124,0x19a,0xb9)]('abort',_0x3a4d5b);};_0xf7cd93[_0x4db1c1(-0x6b,-_0x4806bc._0x722e7a,-_0x4806bc._0x1f813f,-_0x4806bc._0x80bc77)](_0x4db1c1(-0xb2,_0x4806bc._0x40982f,-_0x4806bc._0x155a9e,_0x4806bc._0x17b380),_0x56c317);function _0x44d600(_0x443ed4,_0x12db7b,_0x197fa3,_0x541798){return _0x3ede78(_0x443ed4-_0x28bfc9._0x7a85ef,_0x12db7b-_0x28bfc9._0x210ad4,_0x12db7b-0x14a,_0x541798);}_0xf7cd93[_0x44d600(_0x4806bc._0x36e600,_0x4806bc._0x56a67b,0x96,_0x4806bc._0x1d9907)](_0x44d600(_0x4806bc._0x3d03fe,-_0x4806bc._0xc5409b,-_0x4806bc._0x2f2729,-0xb),_0x3261f0),_0xf7cd93[_0x44d600(0x10c,_0x4806bc._0x462c18,-0x7,_0x4806bc._0x515a37)](_0x44d600(-0x9,-_0x4806bc._0x2e027e,_0x4806bc._0xc06abc,0xa),_0x15826d),_0x7411ea?.[_0x4db1c1(-_0x4806bc._0x461e6f,_0x4806bc._0x159d44,-0x5d,0x5a)]('abort',_0x3a4d5b,{'once':!![]});});}function iterateWebSocketMessages(_0x4901e9,_0x18caf3){const _0x38bb9e={_0x5d4149:0x5cb,_0x216aee:0x62e,_0x8ef54e:0x415,_0x2d84c6:0x418,_0x38d1ac:0x3a6,_0x26077c:0x5d9,_0x1f7d81:0x58f},_0x4c7b9b={_0x2a54fd:0x129,_0x252bc8:0x71,_0x4fccad:0x229,_0x500bbc:0x60,_0x17a3d8:0x59,_0x44c45d:0x89,_0x29cd15:0x8e,_0x24a48d:0x6b,_0x521ac4:0x49,_0x240522:0x1d1,_0x15b43f:0x2b5},_0x474176={_0xebd0f2:0x193,_0x2c67a9:0x38f,_0x5bd307:0x15f},_0x658e93={_0x43a2b6:0x395},_0x1a368a={_0x31f96c:0x18b,_0x4aa268:0x2d7,_0x5398b0:0x1ef,_0x45af86:0x167,_0x27c19e:0x264,_0x4f8afc:0x201,_0x1cb35c:0xde,_0x2f97c6:0x256,_0x255589:0x1c0},_0x2c6ff8={_0xf22b67:0x176,_0x29967b:0x1d9,_0x95f502:0x119},_0x53902d={_0x58ebcc:0x181,_0x44d422:0x44},_0x426e94={_0x59dd67:0x242,_0x34cf4a:0x320,_0x3aecbd:0x290,_0x57138a:0x18f,_0x5ba76a:0x35a,_0x55afd1:0x3a2},_0x5e234e={_0x3277c4:0x153,_0x4591b2:0xa9,_0x1c55e8:0x296,_0xef8ab0:0x371,_0x2c9c05:0x3f3},_0x575a28={_0xd5bb28:0x20a},_0x69091a={_0x49a6f8:0xde},_0x23c667={_0x48b09c:0x15b,_0x2e48ce:0x232,_0x3d21a9:0x12e,_0x96a1d:0x48,_0x4cf6f6:0x6a,_0x45ee64:0x84,_0x10124d:0xe0,_0x87ffba:0x40},_0x483af1={_0x33b584:0x188},_0x4d52e4=[];let _0xf8a977=![],_0x2269d0,_0x16f062;const _0x386d17=_0x366bea=>{const _0x18fe20={_0x473d11:0x341};function _0x130aac(_0x2da642,_0x5beba7,_0x62bc12,_0x12eae2){return _0x5b12(_0x5beba7- -_0x483af1._0x33b584,_0x12eae2);}function _0x370516(_0x4babfb,_0x42e4a0,_0x300b9a,_0x44ad22){return _0x5b12(_0x44ad22- -_0x18fe20._0x473d11,_0x300b9a);}const _0x3f6cd8=_0x366bea;try{_0x4d52e4[_0x130aac(0x9a,_0x23c667._0x48b09c,_0x23c667._0x2e48ce,_0x23c667._0x3d21a9)](JSON[_0x370516(-_0x23c667._0x96a1d,0x42,-_0x23c667._0x4cf6f6,-_0x23c667._0x45ee64)](String(_0x3f6cd8[_0x130aac(-0x34,0x79,_0x23c667._0x10124d,_0x23c667._0x87ffba)]))),_0x16f062?.(),_0x16f062=void 0x0;}catch(_0x106929){_0x2269d0=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x106929)),_0x16f062?.(),_0x16f062=void 0x0;}},_0x36706a=_0x4a67d3=>{const _0x194ad2=_0x4a67d3;_0x2269d0=new Error(_0x194ad2[_0x3a8b9f(_0x5e234e._0x3277c4,0x12c,_0x5e234e._0x4591b2,0x131)]||_0x2dbfd5(_0x5e234e._0x1c55e8,_0x5e234e._0xef8ab0,_0x5e234e._0x2c9c05,0x379));function _0x2dbfd5(_0x466138,_0x3d88eb,_0x14e80d,_0x4dd1b5){return _0x5b12(_0x4dd1b5-_0x69091a._0x49a6f8,_0x466138);}function _0x3a8b9f(_0x5c670d,_0x51b2fc,_0x48ffd1,_0x17e174){return _0x5b12(_0x48ffd1- -_0x575a28._0xd5bb28,_0x51b2fc);}_0x16f062?.(),_0x16f062=void 0x0;},_0x312245=_0x454d39=>{const _0x1afee9={_0x589c16:0x38e};function _0x23cfcf(_0x4eef15,_0x1db1c9,_0x536954,_0x2411c3){return _0x5b12(_0x536954- -_0x1afee9._0x589c16,_0x1db1c9);}const _0x3f18c6=_0x454d39;function _0xa4b812(_0x46075a,_0x51588f,_0x2cf5ef,_0x487f92){return _0x5b12(_0x51588f-0x8f,_0x46075a);}!_0xf8a977&&_0x3f18c6['code']!==0x3e8&&!_0x2269d0&&(_0x2269d0=new Error(_0x3f18c6[_0xa4b812(0x196,_0x426e94._0x59dd67,_0x426e94._0x34cf4a,_0x426e94._0x3aecbd)]||_0x23cfcf(-0x205,-0xc9,-0x159,-_0x426e94._0x57138a)+_0x3f18c6[_0xa4b812(0x2af,0x301,_0x426e94._0x5ba76a,_0x426e94._0x55afd1)])),_0xf8a977=!![],_0x16f062?.(),_0x16f062=void 0x0;};function _0x12bf00(_0x8ed13d,_0x43fa27,_0x5d340b,_0x15c5f8){return _0x551389(_0x8ed13d-_0x53902d._0x58ebcc,_0x5d340b- -0x4a,_0x8ed13d,_0x15c5f8-_0x53902d._0x44d422);}function _0x30aa0a(_0x551b70,_0x3a379b,_0x518887,_0x3c0fff){return _0x551389(_0x551b70-_0x2c6ff8._0xf22b67,_0x551b70-_0x2c6ff8._0x29967b,_0x3a379b,_0x3c0fff-_0x2c6ff8._0x95f502);}const _0x777898=addAbortListener(_0x18caf3,()=>{function _0x554566(_0x456c1d,_0x18ddb2,_0x126109,_0x525731){return _0x5b12(_0x525731- -0x38c,_0x456c1d);}_0x2269d0=toAbortError(_0x18caf3?.['reason']);_0x4901e9[_0x554566(-_0x1a368a._0x31f96c,-0x1c0,-0x1cf,-0x1bd)]===WebSocket[_0xfc0750(_0x1a368a._0x4aa268,_0x1a368a._0x5398b0,_0x1a368a._0x45af86,_0x1a368a._0x27c19e)]&&_0x4901e9[_0x554566(-0xd6,-_0x1a368a._0x4f8afc,-0x21a,-0x1ae)](0x3e8,_0x554566(-_0x1a368a._0x1cb35c,-_0x1a368a._0x2f97c6,-0x17b,-_0x1a368a._0x255589));function _0xfc0750(_0x10a72f,_0x1bc9b8,_0x3d9b4d,_0x9cffce){return _0x5b12(_0x1bc9b8- -0x36,_0x9cffce);}_0x16f062?.(),_0x16f062=void 0x0;});return _0x4901e9[_0x30aa0a(_0x38bb9e._0x5d4149,_0x38bb9e._0x216aee,0x632,0x693)](_0x12bf00(_0x38bb9e._0x8ef54e,0x4e9,_0x38bb9e._0x2d84c6,_0x38bb9e._0x38d1ac),_0x386d17),_0x4901e9['addEventListener']('error',_0x36706a),_0x4901e9[_0x30aa0a(_0x38bb9e._0x5d4149,0x4ed,_0x38bb9e._0x26077c,_0x38bb9e._0x1f7d81)]('close',_0x312245),{async*[Symbol['asyncIterator']](){function _0x53c869(_0x350722,_0x1bf4d9,_0x565bbb,_0x2fe1b5){return _0x30aa0a(_0x1bf4d9- -_0x658e93._0x43a2b6,_0x2fe1b5,_0x565bbb-0x88,_0x2fe1b5-0x23);}function _0x74671b(_0x2b8077,_0x3584d7,_0x39f5c2,_0x3396e3){return _0x12bf00(_0x3396e3,_0x3584d7-_0x474176._0xebd0f2,_0x3584d7- -_0x474176._0x2c67a9,_0x3396e3-_0x474176._0x5bd307);}try{while(!![]){if(_0x2269d0)throw _0x2269d0;if(_0x4d52e4[_0x74671b(-_0x4c7b9b._0x2a54fd,-0x67,-0xc1,_0x4c7b9b._0x252bc8)]>0x0){yield _0x4d52e4[_0x53c869(0x1c8,0x19c,_0x4c7b9b._0x4fccad,0xbe)]();continue;}if(_0xf8a977)break;await new Promise(_0x542fed=>{_0x16f062=_0x542fed;});}}finally{_0x4901e9[_0x74671b(-_0x4c7b9b._0x500bbc,-0x5a,-0x76,0x6d)](_0x74671b(-_0x4c7b9b._0x17a3d8,_0x4c7b9b._0x44c45d,_0x4c7b9b._0x29cd15,0x147),_0x386d17),_0x4901e9['removeEventListener'](_0x74671b(-0x97,-_0x4c7b9b._0x24a48d,_0x4c7b9b._0x521ac4,-0x9f),_0x36706a),_0x4901e9[_0x74671b(-0xc0,-0x5a,-0x124,0x15)](_0x53c869(0x206,_0x4c7b9b._0x240522,_0x4c7b9b._0x15b43f,0x207),_0x312245),_0x777898();}}};}function toWebSocketUrl(_0x4f1bd2,_0x361baf){const _0x4b0825={_0x5b40d4:0x2c4,_0x4bba5b:0x31b,_0x7957ac:0x3e3,_0x3328b4:0x37f,_0x26664e:0x3e4,_0x58fd44:0x465,_0x1d5a60:0x4aa,_0x462e5b:0x59b},_0x4c83aa={_0x15212d:0x122},_0x37cf3b={_0x4439ec:0x1e4,_0x13f758:0x214},_0x55a839=new URL(_0x361baf,_0x4f1bd2);_0x55a839[_0x2bca83(_0x4b0825._0x5b40d4,0x31b,0x3b3,0x29b)]=_0x55a839[_0x2bca83(0x3ec,_0x4b0825._0x4bba5b,_0x4b0825._0x7957ac,0x33c)]===_0x2bca83(0x2d2,_0x4b0825._0x3328b4,_0x4b0825._0x26664e,_0x4b0825._0x58fd44)?'wss:':_0x331c25(_0x4b0825._0x1d5a60,_0x4b0825._0x462e5b,0x61e,0x568);function _0x331c25(_0x4d3d4b,_0x3662eb,_0x1f8261,_0x55093b){return _0x551389(_0x4d3d4b-_0x37cf3b._0x4439ec,_0x55093b-_0x37cf3b._0x13f758,_0x1f8261,_0x55093b-0x52);}function _0x2bca83(_0x2408da,_0x51282b,_0x138da2,_0x2d5522){return _0xf0dc29(_0x51282b-0x25,_0x51282b-_0x4c83aa._0x15212d,_0x2d5522,_0x2d5522-0x136);}return _0x55a839['toString']();}var ProviderSessionManager=class{[_0xf0dc29(0x37b,0x32b,0x3f2,0x2c4)];[_0xf0dc29(0x341,0x2e0,0x256,0x385)];constructor(_0x2834b3){const _0x1cf273={_0x165c80:0x1a1,_0x10833f:0xb2},_0x123648={_0x30eb69:0x42d,_0x2f4437:0x1c4};function _0x3db3ce(_0x37fb1d,_0x362f16,_0xe47ac5,_0xd21289){return _0xf0dc29(_0xe47ac5- -_0x123648._0x30eb69,_0x362f16-0xb2,_0x37fb1d,_0xd21289-_0x123648._0x2f4437);}this[_0x3db3ce(-_0x1cf273._0x165c80,-0x1,-_0x1cf273._0x10833f,-0x29)]=_0x2834b3;}async[_0x551389(0x2d1,0x35f,0x348,0x413)](_0x3fa446){const _0xd5e9c6={_0x40a0ed:0x2c1,_0x29bb94:0x150,_0x546a2a:0x231,_0x36cd58:0x285},_0x2b3739={_0x10816e:0x1e3,_0x16a7a2:0xb9},_0x47987a={_0x207074:0x4c1,_0x5279bf:0x1d1},_0x1729fa={_0x29c688:0x2d8,_0x9e047f:0x3ae,_0x160773:0x2d0,_0xadbf8d:0x21c,_0x539a18:0x245},_0x56faff={_0x4f8aa7:0x156},_0x8e1fad={_0x2895df:0x577};if(!this['cached']){const _0x54dae1=this[_0x26b6a2(0x277,0x210,_0xd5e9c6._0x40a0ed,0x2ff)]['resolve'](_0x3fa446);_0x54dae1[_0x26b6a2(0x247,0x195,0x2f6,0x224)](()=>{function _0x168a34(_0x375b9d,_0x1b90da,_0x3bdb50,_0x5df27e){return _0x1009fb(_0x375b9d-0x13f,_0x1b90da-0x163,_0x1b90da-_0x8e1fad._0x2895df,_0x375b9d);}function _0x35c785(_0x2e8588,_0x58d6ba,_0x429126,_0xd725d2){return _0x1009fb(_0x2e8588-0x53,_0x58d6ba-_0x56faff._0x4f8aa7,_0xd725d2-0x371,_0x429126);}this[_0x35c785(_0x1729fa._0x29c688,0x367,_0x1729fa._0x9e047f,_0x1729fa._0x160773)]===_0x54dae1&&(this[_0x35c785(_0x1729fa._0xadbf8d,_0x1729fa._0x539a18,0x276,0x2d0)]=void 0x0);}),this[_0x1009fb(-0x56,-0x84,-0xa1,-0x120)]=_0x54dae1;}function _0x1009fb(_0x1abcff,_0x480967,_0x43d963,_0x5006b0){return _0x551389(_0x1abcff-0x3d,_0x43d963- -_0x47987a._0x207074,_0x5006b0,_0x5006b0-_0x47987a._0x5279bf);}function _0x26b6a2(_0x5122de,_0x3d84d4,_0x53b7f4,_0xdcc5a3){return _0x551389(_0x5122de-0x11d,_0x5122de- -_0x2b3739._0x10816e,_0x3d84d4,_0xdcc5a3-_0x2b3739._0x16a7a2);}return structuredClone(await this[_0x26b6a2(0x23d,_0xd5e9c6._0x29bb94,_0xd5e9c6._0x546a2a,_0xd5e9c6._0x36cd58)]);}[_0xf0dc29(0x386,0x37f,0x30c,0x2fa)](){this['cached']=void 0x0;}};async function prepareProviderRequest(_0x5093f4,_0x560ba9={}){const _0xad7757={_0x2b475d:0x5b5,_0x4793fa:0x5b2,_0x58b17c:0x58e,_0x3f1a14:0x484,_0x2ca401:0x39e,_0x307be6:0x350,_0x1a801b:0x1b4,_0x381e46:0x128,_0x4c4416:0x11e,_0x2d3faf:0x532,_0x3bef05:0x4e4},_0x1d565a={_0x45975a:0x37},_0x44b49f={_0x14a6c2:0x180,_0x24bf5b:0x3f};let _0xbc53d9={'request':structuredClone(_0x5093f4),'session':_0x560ba9['sessionManager']?await _0x560ba9[_0x531bce(_0xad7757._0x2b475d,_0xad7757._0x4793fa,0x4cb,_0xad7757._0x58b17c)][_0x531bce(0x354,_0xad7757._0x3f1a14,_0xad7757._0x2ca401,_0xad7757._0x307be6)](_0x560ba9[_0x1c7f55(0x114,_0xad7757._0x1a801b,_0xad7757._0x381e46,_0xad7757._0x4c4416)]):void 0x0};function _0x531bce(_0x1275b4,_0x2a78d9,_0x5115ec,_0x321077){return _0x551389(_0x1275b4-_0x44b49f._0x14a6c2,_0x5115ec-_0x44b49f._0x24bf5b,_0x321077,_0x321077-0x9e);}for(const _0x2a66c5 of _0x560ba9[_0x531bce(_0xad7757._0x2d3faf,0x5c1,0x4e0,_0xad7757._0x3bef05)]??[]){_0xbc53d9=await _0x2a66c5(_0xbc53d9);}function _0x1c7f55(_0x480a5c,_0x12ba9d,_0x1e5e22,_0x228363){return _0x551389(_0x480a5c-0xf5,_0x480a5c- -0x1b6,_0x12ba9d,_0x228363-_0x1d565a._0x45975a);}return _0xbc53d9;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0x551389(0x3c8,0x47c,0x481,0x50b)];['maxTokens'];[_0x551389(0x28d,0x2cd,0x37a,0x331)];['apiKey'];[_0x551389(0x48d,0x416,0x418,0x468)];[_0x551389(0x3d1,0x3a2,0x386,0x357)];[_0x551389(0x1ff,0x2d8,0x25f,0x3b7)];[_0xf0dc29(0x3c2,0x2e8,0x40b,0x2d8)];[_0xf0dc29(0x2e3,0x3ac,0x336,0x3cb)];['sessionManager'];[_0x551389(0x467,0x40d,0x382,0x361)];[_0xf0dc29(0x318,0x26b,0x39f,0x2a5)]=new Map();constructor(_0x37303f){const _0x2ef43f={_0x23d269:0x65b,_0x25c29a:0x6aa,_0x206ee6:0x375,_0x5c7f9f:0x26b,_0x39837c:0x363,_0x3b57fb:0x539,_0x2093b5:0x1c1,_0xb72ef4:0x53,_0x2c0d73:0x1,_0xe46e7a:0xec,_0x2f308d:0x580,_0x502557:0x58c,_0x3050fd:0x240,_0x3abf9b:0x25c,_0x401128:0x660,_0x2b8cb4:0x16f,_0x261065:0x235,_0x33c875:0x5d0,_0x192761:0x576,_0x85335e:0x289,_0x48cc74:0x22c,_0x50eafd:0x2b9,_0xbfcfd3:0xc6,_0x4c7599:0xf7,_0x9560e5:0x4df,_0x24bffa:0x280,_0x4b8a77:0x2e5,_0x87b786:0x18d,_0x420bf9:0x1e1,_0x548535:0x11e,_0xbf92b1:0x19b,_0x49e6ec:0x1c2,_0x3497c8:0x2c8,_0x599d44:0x65b,_0x5e9822:0x5b7,_0x350192:0x563,_0x5f2251:0x625,_0x350ba5:0x29d,_0x4c7f55:0x216,_0x2cd631:0x21f,_0x4eb732:0x5a5},_0x2342b7={_0x312fc8:0x102,_0x4a9adb:0x169};this[_0x14dfcb(_0x2ef43f._0x23d269,0x612,_0x2ef43f._0x25c29a,0x6f4)]=_0x37303f[_0x2f8e90(_0x2ef43f._0x206ee6,_0x2ef43f._0x5c7f9f,0x29b,_0x2ef43f._0x39837c)];function _0x14dfcb(_0x8d343c,_0x1f2ade,_0x12a76b,_0x756565){return _0xf0dc29(_0x12a76b-0x30d,_0x1f2ade-0x2f,_0x756565,_0x756565-0x1bf);}this[_0x14dfcb(0x51a,0x584,_0x2ef43f._0x3b57fb,0x478)]=_0x37303f['maxTokens']??getDefaultMaxTokens(),this['reasoning']=_0x37303f[_0x2f8e90(_0x2ef43f._0x2093b5,0x16,0xec,_0x2ef43f._0xb72ef4)]?structuredClone(_0x37303f[_0x2f8e90(-_0x2ef43f._0x2c0d73,0x8f,_0x2ef43f._0xe46e7a,0x5d)]):void 0x0,this[_0x14dfcb(0x5a9,_0x2ef43f._0x2f308d,_0x2ef43f._0x502557,0x4ea)]=_0x37303f[_0x2f8e90(0x22c,_0x2ef43f._0x3050fd,0x17d,_0x2ef43f._0x3abf9b)],this[_0x14dfcb(0x643,0x6f1,0x644,_0x2ef43f._0x401128)]=_0x37303f[_0x2f8e90(_0x2ef43f._0x2b8cb4,0x1d5,_0x2ef43f._0x261065,0x1e9)];function _0x2f8e90(_0xbd2375,_0x3c608d,_0x3fb3d6,_0xb0f7a8){return _0xf0dc29(_0x3fb3d6- -_0x2342b7._0x312fc8,_0x3c608d-_0x2342b7._0x4a9adb,_0xbd2375,_0xb0f7a8-0x53);}this[_0x14dfcb(0x523,0x575,_0x2ef43f._0x33c875,0x4ef)]=_0x37303f[_0x14dfcb(0x636,_0x2ef43f._0x192761,0x638,0x604)]??globalThis[_0x2f8e90(_0x2ef43f._0x85335e,_0x2ef43f._0x48cc74,0x229,_0x2ef43f._0x50eafd)],this[_0x2f8e90(0x13f,_0x2ef43f._0xbfcfd3,_0x2ef43f._0x4c7599,0x58)]=_0x37303f[_0x14dfcb(0x5a2,_0x2ef43f._0x9560e5,0x506,0x559)],this['requestMutators']=_0x37303f[_0x2f8e90(0x3a4,_0x2ef43f._0x24bffa,0x2c0,_0x2ef43f._0x4b8a77)]??[],this[_0x2f8e90(_0x2ef43f._0x87b786,0x2cf,_0x2ef43f._0x420bf9,_0x2ef43f._0x548535)]=_0x37303f[_0x2f8e90(_0x2ef43f._0xbf92b1,_0x2ef43f._0x49e6ec,0x1e1,0x1a8)],this['sessionManager']=_0x37303f['sessionManager']??(_0x37303f['providerSessionResolver']?new ProviderSessionManager(_0x37303f[_0x2f8e90(_0x2ef43f._0x3497c8,0x1f7,0x265,0x1f0)]):void 0x0),this[_0x14dfcb(_0x2ef43f._0x599d44,0x6bf,0x63b,0x673)]=_0x37303f[_0x2f8e90(0x16f,0x1a8,0x22c,0x186)]??createDefaultWebSocketFactory();for(const _0x5349c7 of _0x37303f[_0x14dfcb(_0x2ef43f._0x5e9822,_0x2ef43f._0x350192,_0x2ef43f._0x5f2251,0x611)]){this[_0x2f8e90(0x2fc,_0x2ef43f._0x350ba5,_0x2ef43f._0x4c7f55,_0x2ef43f._0x2cd631)][_0x14dfcb(0x4ed,_0x2ef43f._0x4eb732,0x5bd,0x5c5)](_0x5349c7['id'],_0x5349c7);}}[_0xf0dc29(0x25b,0x23a,0x208,0x17d)](_0x27f28f,_0x3c5acf){const _0xde073b={_0x3a722b:0xf3,_0x249914:0x25},_0x11d394={_0x572882:0x331,_0x65f3ec:0x77};function _0x23f1a3(_0x27426f,_0x402459,_0x3df9f6,_0x440a3f){return _0xf0dc29(_0x27426f- -_0x11d394._0x572882,_0x402459-_0x11d394._0x65f3ec,_0x440a3f,_0x440a3f-0xbe);}return this[_0x23f1a3(-_0xde073b._0x3a722b,-_0xde073b._0x249914,-0x138,-0xd8)](_0x27f28f,_0x3c5acf);}[_0xf0dc29(0x31f,0x346,0x39c,0x2aa)](_0x28ca5d,_0x2cb539){const _0x267067={_0x45ad42:0x4ba,_0x101c28:0x592},_0xf7e9b5={_0x1c8d79:0xb5,_0x378620:0xf9,_0x2b1713:0x125};function _0x28fc0a(_0xd5dc17,_0x5160c1,_0x49c2b3,_0xcdd027){return _0x551389(_0xd5dc17-_0xf7e9b5._0x1c8d79,_0x49c2b3-_0xf7e9b5._0x378620,_0x5160c1,_0xcdd027-_0xf7e9b5._0x2b1713);}return this[_0x28fc0a(0x5a8,_0x267067._0x45ad42,_0x267067._0x101c28,0x53c)](_0x28ca5d,_0x2cb539);}async['completeViaRouter'](_0x4d7f6a,_0x134bbf){const _0x8098e7={_0xd9b5dd:0x687,_0xa8ba25:0x5c5,_0x30d4f9:0x65c,_0xf63b9f:0x518,_0xddae22:0x2ff,_0xde413:0x305},_0x4b9f4e={_0x164d64:0x29a,_0x1d2257:0x171,_0x429934:0xca},_0x67a176={_0x53cd7b:0x56e,_0x2ec07e:0xde},_0x1d5026=this[_0xb2d33f(_0x8098e7._0xd9b5dd,_0x8098e7._0xa8ba25,0x6c3,0x65a)](_0x4d7f6a);function _0x890c5c(_0x5849b7,_0x1f8009,_0x5d4433,_0x29ecf4){return _0x551389(_0x5849b7-0xd,_0x1f8009- -_0x67a176._0x53cd7b,_0x29ecf4,_0x29ecf4-_0x67a176._0x2ec07e);}const _0x4e5550=await this[_0xb2d33f(0x53d,_0x8098e7._0x30d4f9,_0x8098e7._0xf63b9f,0x57d)][_0x890c5c(-0x30c,-0x226,-_0x8098e7._0xddae22,-_0x8098e7._0xde413)](_0x1d5026,{'mode':'complete'});function _0xb2d33f(_0x39ad55,_0x584470,_0x503ae6,_0x556cfb){return _0xf0dc29(_0x556cfb-_0x4b9f4e._0x164d64,_0x584470-_0x4b9f4e._0x1d2257,_0x39ad55,_0x556cfb-_0x4b9f4e._0x429934);}return this['completeViaSurface'](_0x1d5026,_0x4e5550,_0x134bbf);}async*[_0x551389(0x412,0x499,0x42a,0x50b)](_0x5a2a72,_0x1a033a){const _0x3b1f5e={_0x45b86f:0x136,_0x4eb96e:0x3c5,_0x10b141:0x1be,_0x49542e:0xd4,_0x4ac6dd:0x138,_0x15712a:0x118,_0x17fd0b:0x1bd},_0x16665e={_0x3f45c0:0x1ab,_0x127aa6:0x83},_0x43d43a=this['applyModelDefaults'](_0x5a2a72);function _0x57bffb(_0x14bd75,_0x35fa43,_0x15b848,_0x3a9c6b){return _0x551389(_0x14bd75-_0x16665e._0x3f45c0,_0x15b848- -0x2c5,_0x14bd75,_0x3a9c6b-_0x16665e._0x127aa6);}function _0x33faf7(_0x17bc6a,_0x3af108,_0x577c5b,_0x28fe29){return _0xf0dc29(_0x17bc6a-0x1c2,_0x3af108-0x8f,_0x28fe29,_0x28fe29-0x1d8);}const _0x45808b=await this[_0x57bffb(0x1b,_0x3b1f5e._0x45b86f,0xfd,0x60)][_0x33faf7(0x42b,0x4b5,_0x3b1f5e._0x4eb96e,0x4eb)](_0x43d43a,{'mode':_0x57bffb(0x62,_0x3b1f5e._0x10b141,0x139,_0x3b1f5e._0x49542e)});yield*this[_0x57bffb(0x70,_0x3b1f5e._0x4ac6dd,_0x3b1f5e._0x15712a,_0x3b1f5e._0x17fd0b)](_0x43d43a,_0x45808b,_0x1a033a);}async['completeViaSurface'](_0x3b7702,_0x26baee,_0x46002d){const _0x3cf415={_0x5e9c47:0x36,_0x13328d:0x91,_0x229bf8:0x15b,_0x2b9b53:0x143,_0x298797:0xba,_0x503175:0x1dc,_0x5a9564:0x25f,_0x5a40d1:0x69,_0x4c779a:0x24,_0x5f24d8:0x9f,_0x396590:0xcc,_0x53b41e:0x40,_0x5c553b:0x126,_0x4d4d5f:0x1f,_0x2fedd6:0xca,_0x28e447:0x200,_0x9c2e06:0x72,_0x701b9:0x33,_0x4b29f4:0x8b,_0x386a4e:0x6c,_0x358be7:0x125,_0x5cf364:0x1a3},_0x250996={_0x275fe7:0x1d6,_0x594d40:0x49},_0x13dbf2=this[_0x4c08cb(_0x3cf415._0x5e9c47,_0x3cf415._0x13328d,0xfb,_0x3cf415._0x229bf8)](_0x3b7702);function _0x4c08cb(_0x5bcd2f,_0xe91920,_0x11cbda,_0x39ec85){return _0xf0dc29(_0x11cbda- -0x2c5,_0xe91920-0x78,_0x5bcd2f,_0x39ec85-0x1c4);}const _0x402a95=this[_0x378d1a(0xf9,0x204,0x1d3,_0x3cf415._0x2b9b53)](_0x26baee);if(_0x402a95[_0x378d1a(0x1a0,0x90,0xed,0xef)]===_0x378d1a(_0x3cf415._0x298797,_0x3cf415._0x503175,0x178,_0x3cf415._0x5a9564)){const _0x24c733=await this[_0x378d1a(_0x3cf415._0x5a40d1,-_0x3cf415._0x4c779a,_0x3cf415._0x5f24d8,0x105)](_0x13dbf2,_0x402a95,![],_0x46002d);if(!_0x24c733['ok'])throw await this[_0x378d1a(_0x3cf415._0x396590,0xbc,0xe5,0x187)](_0x24c733);if(!_0x402a95['parseResponse'])throw new Error(_0x4c08cb(0x13d,0xff,0xb8,0x1d)+_0x26baee+_0x4c08cb(0xe4,-_0x3cf415._0x53b41e,_0x3cf415._0x13328d,_0x3cf415._0x5c553b));return _0x402a95[_0x4c08cb(0x9f,0x8b,-_0x3cf415._0x4d4d5f,-_0x3cf415._0x2fedd6)](await _0x24c733[_0x378d1a(0xb5,0x74,0x129,_0x3cf415._0x28e447)](),_0x13dbf2);}function _0x378d1a(_0x5ea659,_0x4971d2,_0x2c47c2,_0x17b544){return _0x551389(_0x5ea659-_0x250996._0x275fe7,_0x2c47c2- -0x246,_0x4971d2,_0x17b544-_0x250996._0x594d40);}let _0x4f12a6;for await(const _0xaf7178 of this['streamViaSurface'](_0x13dbf2,_0x26baee,_0x46002d)){_0xaf7178['type']===_0x4c08cb(0x153,_0x3cf415._0x9c2e06,0xd2,_0x3cf415._0x701b9)&&(_0x4f12a6=_0xaf7178[_0x4c08cb(-0x114,-0x129,-_0x3cf415._0x4b29f4,-_0x3cf415._0x386a4e)]);}if(!_0x4f12a6)throw new Error('Surface\x20'+_0x26baee+_0x378d1a(0xf5,0x88,_0x3cf415._0x358be7,_0x3cf415._0x5cf364));return _0x4f12a6;}async*['streamViaSurface'](_0x436f1e,_0x220531,_0x49790e){const _0x280072={_0x336afc:0x51a,_0x1502ed:0x3da,_0x2ceadd:0x55d,_0x2a333c:0x499,_0x93f293:0x4ad,_0xbe72ea:0x3a9,_0x352af6:0x43e,_0x7bc294:0x3c0,_0x141356:0x33a,_0x287fdf:0x4b5,_0x33f12c:0x3e9,_0x4f1c7e:0x4f5,_0x2f199d:0x357,_0x535915:0x28d},_0x47942d={_0xf19e77:0x16a},_0x3f5af2={_0x1bbb85:0x196,_0x1ed42d:0x1e8};function _0x887800(_0x419dce,_0xe20d5d,_0x97c15c,_0x4e0ec0){return _0xf0dc29(_0x4e0ec0-0x15f,_0xe20d5d-_0x3f5af2._0x1bbb85,_0x97c15c,_0x4e0ec0-_0x3f5af2._0x1ed42d);}const _0x2347f1=this['applyModelDefaults'](_0x436f1e),_0x574f61=this[_0x887800(_0x280072._0x336afc,_0x280072._0x1502ed,_0x280072._0x2ceadd,_0x280072._0x2a333c)](_0x220531);function _0x18210c(_0x3e3155,_0x12bac7,_0x42807e,_0x4f50ff){return _0x551389(_0x3e3155-_0x47942d._0xf19e77,_0x3e3155-0x8d,_0x12bac7,_0x4f50ff-0x101);}if(_0x574f61[_0x18210c(0x3c0,0x32a,0x3b1,0x364)]===_0x887800(_0x280072._0x93f293,0x4a6,_0x280072._0xbe72ea,_0x280072._0x352af6)){const _0x456c9d=await this['completeViaSurface'](_0x2347f1,_0x220531,_0x49790e);yield{'type':'done','response':_0x456c9d};return;}if(_0x574f61[_0x18210c(_0x280072._0x7bc294,0x2f8,0x3e4,_0x280072._0x141356)]===_0x18210c(0x4d6,_0x280072._0x287fdf,0x47a,0x56b)){yield*this['streamHttpSurface'](_0x2347f1,_0x574f61,_0x49790e);return;}yield*this[_0x18210c(0x42c,_0x280072._0x33f12c,0x4ca,_0x280072._0x4f1c7e)](_0x2347f1,_0x574f61,_0x49790e?.[_0x18210c(_0x280072._0x2f199d,0x2b9,_0x280072._0x535915,0x2cc)]);}async[_0x551389(0x2f1,0x2e7,0x234,0x391)](_0x23a44a){const _0x5af986={_0xbebd31:0x67e,_0x34f0b9:0x11f,_0x4b3683:0x1eb,_0x5e1bef:0x225,_0x17e2ba:0x2e3,_0x2f0da3:0x226,_0x155b35:0x14d,_0x5c3ec4:0x2ce,_0x34cc9c:0x1f9,_0x5d3eed:0x1e5,_0x42263a:0x199,_0x455b17:0x566,_0x6109bc:0x4b8,_0x1e1b95:0x5d1,_0x1cf6b2:0x54e,_0x2aa82c:0x543,_0x2c0ab5:0x106,_0x117e1a:0x682,_0x90cc66:0x688,_0x1799c6:0x73d,_0x1da0a7:0x1bd,_0x49d176:0x12c,_0x4722cb:0x212,_0x4bafb8:0x50e,_0x1903ad:0xd7,_0x1de7f6:0x1cd,_0x5ac2de:0x6d9,_0x4f8928:0x5eb,_0x23e9e5:0x5db,_0x2334d0:0x5f0,_0x4491e6:0x102,_0x4cc05c:0x2be,_0x4cf5fb:0x23f,_0xb75571:0x1e7,_0x42fb73:0x262,_0x420739:0x22f},_0x322355={_0x1ac3c7:0x3a1},_0x561ef5=async()=>{const _0x3c6414=this['sessionManager']?await this[_0x513c65(0x6b0,_0x5af986._0xbebd31,0x762,0x5a9)][_0x40edae(-_0x5af986._0x34f0b9,-0x1e4,-_0x5af986._0x4b3683,-0x237)](_0x23a44a[_0x40edae(-0x251,-0x279,-_0x5af986._0x5e1bef,-_0x5af986._0x17e2ba)]):void 0x0;function _0x40edae(_0x943160,_0x53458b,_0x36c3ec,_0x118f45){return _0x5b12(_0x53458b- -0x394,_0x118f45);}const _0xe966b3=this[_0x40edae(-0x314,-0x26b,-0x19f,-_0x5af986._0x2f0da3)][_0x40edae(-_0x5af986._0x155b35,-0x1ff,-_0x5af986._0x5c3ec4,-_0x5af986._0x34cc9c)](this[_0x40edae(-0x180,-_0x5af986._0x5d3eed,-_0x5af986._0x42263a,-0x1c0)],_0x3c6414);if(!_0xe966b3)throw this['createMissingCredentialError']();const _0x366adc=await this[_0x513c65(0x549,_0x5af986._0x455b17,_0x5af986._0x6109bc,0x515)]({'body':_0x23a44a[_0x513c65(_0x5af986._0x1e1b95,_0x5af986._0x1cf6b2,_0x5af986._0x2aa82c,0x4fb)],'credential':_0xe966b3,'session':_0x3c6414,'stream':![]},{'accept':_0x23a44a[_0x40edae(-0x46,-0x128,-_0x5af986._0x2c0ab5,-0x210)]??_0x513c65(0x657,_0x5af986._0x117e1a,_0x5af986._0x90cc66,_0x5af986._0x1799c6),'includeContentType':_0x23a44a[_0x40edae(-0x25f,-_0x5af986._0x1da0a7,-0x122,-_0x5af986._0x49d176)]==='POST'});function _0x513c65(_0x148d8b,_0x435708,_0x15624c,_0x54368a){return _0x5b12(_0x435708-_0x322355._0x1ac3c7,_0x54368a);}return this[_0x40edae(-0x286,-0x1a1,-_0x5af986._0x4722cb,-0x1e8)](''+this[_0x513c65(_0x5af986._0x4bafb8,0x4ca,0x424,0x594)]['resolveBaseUrl'](this[_0x40edae(-_0x5af986._0x1903ad,-0x12d,-0x1ad,-_0x5af986._0x1de7f6)],_0x3c6414)+_0x23a44a[_0x513c65(_0x5af986._0x5ac2de,_0x5af986._0x4f8928,0x6a8,0x682)],{'method':_0x23a44a[_0x513c65(0x593,0x578,_0x5af986._0x23e9e5,_0x5af986._0x2334d0)],'headers':_0x366adc,..._0x23a44a[_0x40edae(-_0x5af986._0x4491e6,-0x1e7,-_0x5af986._0x4cc05c,-0x247)]!==void 0x0?{'body':JSON[_0x40edae(-_0x5af986._0x4cf5fb,-0x186,-0x156,-0x24e)](_0x23a44a[_0x40edae(-0x1ac,-_0x5af986._0xb75571,-_0x5af986._0x42fb73,-_0x5af986._0x420739)])}:{},'signal':_0x23a44a['signal']});};return await this['sendWithRetries'](_0x561ef5,_0x23a44a);}[_0xf0dc29(0x209,0x29b,0x196,0x281)](_0x3856fa,_0x45bfb7){const _0x1fcb7d={_0x3ee974:0xcd,_0x30f062:0x99,_0x4cf6d2:0xd,_0x2d12c9:0xc8,_0x37c6bf:0x34,_0x6f3b52:0x91,_0x39989b:0xb3,_0x47c985:0x63,_0x55c056:0x16f,_0x31be9d:0x11b,_0x2ee478:0x62,_0x1d5f93:0xe2,_0xa081ec:0x1cd,_0x2ec049:0x96,_0x5a090c:0x18e},_0x15034a={_0x412861:0x6a,_0x5b84da:0x13c},_0x291633={_0xb6eb2d:0x19c,_0x4b7db1:0x3b7,_0x367d4a:0x170},_0x43bc2c=_0x3856fa?.[_0x9ce61e(-_0x1fcb7d._0x3ee974,-_0x1fcb7d._0x30f062,_0x1fcb7d._0x4cf6d2,-0x123)][_0x32f3f0(0x6b,-_0x1fcb7d._0x2d12c9,0x5,0x22)](_0x9ce61e(-_0x1fcb7d._0x37c6bf,_0x1fcb7d._0x6f3b52,-_0x1fcb7d._0x39989b,-_0x1fcb7d._0x47c985));if(_0x43bc2c){const _0x5baa74=Number(_0x43bc2c);if(Number['isFinite'](_0x5baa74)&&_0x5baa74>=0x0)return _0x5baa74*0x3e8;const _0x4fe3ab=Date[_0x9ce61e(0xb5,_0x1fcb7d._0x55c056,0x174,0x126)](_0x43bc2c);if(Number[_0x32f3f0(_0x1fcb7d._0x31be9d,0x60,_0x1fcb7d._0x2ee478,0x138)](_0x4fe3ab))return Math[_0x32f3f0(0x92,0x15,0x14c,_0x1fcb7d._0x1d5f93)](0x0,_0x4fe3ab-Date[_0x32f3f0(_0x1fcb7d._0xa081ec,_0x1fcb7d._0x2ec049,_0x1fcb7d._0x5a090c,0x101)]());}function _0x9ce61e(_0x31eea8,_0x2cce57,_0x4327b8,_0x1e06bd){return _0x551389(_0x31eea8-_0x291633._0xb6eb2d,_0x31eea8- -_0x291633._0x4b7db1,_0x1e06bd,_0x1e06bd-_0x291633._0x367d4a);}function _0x32f3f0(_0x366d5b,_0x519896,_0x4a84d2,_0x34f65a){return _0x551389(_0x366d5b-_0x15034a._0x412861,_0x34f65a- -0x355,_0x4a84d2,_0x34f65a-_0x15034a._0x5b84da);}const _0x595420=DEFAULT_RETRY_DELAY_MS*0x2**_0x45bfb7;if(_0x595420<RETRY_DELAY_STEP_CAP_MS)return _0x595420;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x45bfb7-0x5);}['shouldRetryResponse'](_0x5176ef){const _0x25a9c7={_0x168351:0x1e4,_0x402583:0x171,_0x2616aa:0x26d},_0x4041e8={_0x4baf38:0x20d,_0x59629d:0xdb};function _0x3d5ebc(_0x2d288f,_0x248840,_0x2d388a,_0x285996){return _0x551389(_0x2d288f-0xbe,_0x2d288f- -0x21b,_0x2d388a,_0x285996-0x63);}function _0x1eacb8(_0x484273,_0x460e85,_0xed0956,_0x2f114e){return _0xf0dc29(_0x460e85- -_0x4041e8._0x4baf38,_0x460e85-_0x4041e8._0x59629d,_0xed0956,_0x2f114e-0x45);}return RETRYABLE_HTTP_STATUSES[_0x3d5ebc(0x13b,_0x25a9c7._0x168351,_0x25a9c7._0x402583,0xf3)](_0x5176ef[_0x1eacb8(0x277,0x1aa,0x132,_0x25a9c7._0x2616aa)]);}[_0x551389(0x558,0x480,0x466,0x425)](_0x3ff08f){return!isAbortError(_0x3ff08f)&&_0x3ff08f instanceof TypeError;}['shouldRetryStreamAttemptError'](_0x5521c1){const _0x513f8f={_0x38128e:0x162,_0x296661:0x12a,_0x11f941:0x218},_0x13de1b={_0x58761e:0x143};function _0x4faef4(_0xaf3906,_0x28cb36,_0x40058a,_0x5efe75){return _0xf0dc29(_0x28cb36- -0x23f,_0x28cb36-_0x13de1b._0x58761e,_0x5efe75,_0x5efe75-0x110);}return this[_0x4faef4(0x83,_0x513f8f._0x38128e,_0x513f8f._0x296661,_0x513f8f._0x11f941)](_0x5521c1)||isRetryableProviderStreamEventError(_0x5521c1);}async[_0xf0dc29(0x255,0x1ff,0x32a,0x2db)](_0xff51c7,_0x4847d7){throwIfAborted(_0x4847d7),await new Promise((_0x5d2a26,_0x290339)=>{let _0x2fc27e=![];const _0x7f4002=addAbortListener(_0x4847d7,()=>{function _0x5aaefb(_0x30a771,_0x16265e,_0x445887,_0x479d46){return _0x5b12(_0x30a771- -0xb2,_0x16265e);}if(_0x2fc27e)return;_0x2fc27e=!![],clearTimeout(_0x3c8261),_0x290339(toAbortError(_0x4847d7?.[_0x5aaefb(0x101,0xb3,0x14c,0x7d)]));}),_0x3c8261=setTimeout(()=>{_0x2fc27e=!![],_0x7f4002(),_0x5d2a26();},_0xff51c7);}),throwIfAborted(_0x4847d7);}async[_0x551389(0x2c2,0x2db,0x331,0x22e)](_0x5bc177,_0x13a296={}){const _0x54bbe1={_0x39ae36:0x5d4,_0x51260c:0x464,_0x20b7ed:0x3a6,_0xbf2642:0x441,_0x498a3a:0x379,_0x232ad9:0x441,_0x29dfdc:0x4f9,_0x5744da:0x430,_0x37489c:0x41a,_0x5d2d70:0x3a8,_0x695190:0x430,_0x47df74:0x52d,_0xbcdc89:0x38d,_0x5dd60c:0x2af,_0x2b5380:0x56e,_0x4ec197:0x579,_0xc63f94:0x3d9,_0x257844:0x339,_0x1d7ab5:0x44a,_0x3e36e8:0x527,_0x10795d:0x5cc},_0x197545={_0x5ce6ba:0x9},_0x2e832b={_0x2dafc0:0x17b},{signal:_0x41e0f4}=_0x13a296;let _0x302a21=![];function _0x257504(_0x1665f8,_0x3e7fc5,_0x2e743a,_0x4d5651){return _0xf0dc29(_0x1665f8-0x184,_0x3e7fc5-_0x2e832b._0x2dafc0,_0x4d5651,_0x4d5651-0x126);}function _0x31a857(_0xf94086,_0x3f16f3,_0x422cc0,_0x2e4b54){return _0xf0dc29(_0x3f16f3-0x94,_0x3f16f3-_0x197545._0x5ce6ba,_0xf94086,_0x2e4b54-0xec);}for(let _0x3940d5=0x0;_0x3940d5<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x3940d5+=0x1){throwIfAborted(_0x41e0f4);try{const _0x22a2b5=await _0x5bc177();if(_0x22a2b5[_0x257504(0x53b,_0x54bbe1._0x39ae36,_0x54bbe1._0x51260c,0x5fc)]===0x191&&this[_0x31a857(_0x54bbe1._0x20b7ed,_0x54bbe1._0xbf2642,0x47f,0x41a)]&&!_0x302a21){_0x302a21=!![],this[_0x31a857(_0x54bbe1._0x498a3a,_0x54bbe1._0x232ad9,_0x54bbe1._0x29dfdc,_0x54bbe1._0x5744da)][_0x31a857(0x36a,_0x54bbe1._0x37489c,0x506,_0x54bbe1._0x5d2d70)]();continue;}if(!this[_0x257504(0x502,0x59d,_0x54bbe1._0x695190,_0x54bbe1._0x47df74)](_0x22a2b5)||_0x3940d5===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x22a2b5;const _0x2a74cd=this[_0x257504(_0x54bbe1._0xbcdc89,0x38d,0x2a8,0x2ff)](_0x22a2b5,_0x3940d5);await this[_0x31a857(0x28f,0x2e9,_0x54bbe1._0x5dd60c,0x350)](_0x2a74cd,_0x41e0f4);}catch(_0x3323ac){if(!this[_0x257504(0x525,_0x54bbe1._0x2b5380,0x4f3,_0x54bbe1._0x4ec197)](_0x3323ac)||_0x3940d5===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x3323ac;const _0x298f7f=this['getRetryDelayMs'](void 0x0,_0x3940d5);await this[_0x257504(_0x54bbe1._0xc63f94,_0x54bbe1._0x257844,0x310,_0x54bbe1._0x1d7ab5)](_0x298f7f,_0x41e0f4);}}throw new Error(_0x257504(_0x54bbe1._0x3e36e8,0x50e,_0x54bbe1._0x10795d,0x529));}['createMissingCredentialError'](){const _0x37001f={_0x50df7f:0xc,_0x23a8ed:0x73,_0x1723dc:0xa4,_0x2cac5e:0x1b1},_0x4229e8={_0x465bde:0x155};function _0x5b2d5a(_0x58316d,_0x385eaa,_0x3d990f,_0x23ed4b){return _0xf0dc29(_0x3d990f- -_0x4229e8._0x465bde,_0x385eaa-0x1db,_0x385eaa,_0x23ed4b-0x46);}function _0x5ab927(_0x49b185,_0x37256d,_0x20c493,_0x1c6c2c){return _0x551389(_0x49b185-0x143,_0x37256d- -0x57f,_0x1c6c2c,_0x1c6c2c-0x1a5);}return this[_0x5b2d5a(-_0x37001f._0x50df7f,_0x37001f._0x23a8ed,_0x37001f._0x1723dc,-0x48)][_0x5b2d5a(0x12d,_0x37001f._0x2cac5e,0x139,0x1c7)]();}async[_0x551389(0x313,0x374,0x3ad,0x2ac)](_0x4960de,_0x105ed7){const _0x2698e7={_0x3c9d12:0x2cc,_0x30b519:0x28f,_0x30b8e7:0x21f},_0x195994={_0x373d1e:0x120};function _0x175173(_0x2bc151,_0x3b84f9,_0x3d1107,_0x4cf3e8){return _0xf0dc29(_0x2bc151-0xd3,_0x3b84f9-_0x195994._0x373d1e,_0x3d1107,_0x4cf3e8-0x177);}return await this[_0x175173(_0x2698e7._0x3c9d12,_0x2698e7._0x30b519,_0x2698e7._0x30b8e7,0x37d)]['createHeaders'](_0x4960de,_0x105ed7);}[_0x551389(0x3df,0x318,0x2f1,0x25e)](_0x56e877){const _0xe4eb44={_0x1d90cc:0xeb,_0x1f5933:0x65,_0x51cf03:0x57,_0x22bf97:0x16c,_0xda8233:0x1d7,_0x1880fa:0x1ed},_0x434bdf={_0x55b86c:0xe1,_0x496d6b:0x39},_0x2eb22e={_0x834876:0x19c};function _0xe55a96(_0x55e1f3,_0x114115,_0x22f858,_0x384752){return _0x551389(_0x55e1f3-_0x2eb22e._0x834876,_0x22f858- -0x257,_0x55e1f3,_0x384752-0x1bd);}function _0x3b5837(_0x1e25cf,_0x35f584,_0xee3b19,_0x135a36){return _0xf0dc29(_0x35f584- -0x410,_0x35f584-_0x434bdf._0x55b86c,_0x1e25cf,_0x135a36-_0x434bdf._0x496d6b);}return this[_0xe55a96(_0xe4eb44._0x1d90cc,-_0xe4eb44._0x1f5933,0x81,-_0xe4eb44._0x51cf03)][_0x3b5837(-_0xe4eb44._0x22bf97,-_0xe4eb44._0xda8233,-0x1fa,-_0xe4eb44._0x1880fa)](_0x56e877);}async[_0x551389(0x30c,0x32b,0x2dd,0x379)](_0x513c5c){const _0x4a2027={_0x3d0725:0xfe,_0x37a437:0x174},_0x560011={_0x2caa0c:0x175};function _0x3bbe2a(_0x4ebbdc,_0x1d4fcb,_0x598a72,_0x4b511b){return _0xf0dc29(_0x4b511b-0x51,_0x1d4fcb-_0x560011._0x2caa0c,_0x4ebbdc,_0x4b511b-0x2f);}function _0x3f5c5(_0x130ce2,_0x317856,_0xb87a70,_0x4447e0){return _0xf0dc29(_0xb87a70- -_0x4a2027._0x3d0725,_0x317856-0x1be,_0x4447e0,_0x4447e0-_0x4a2027._0x37a437);}return await this[_0x3f5c5(0x98,0xba,0xfb,0x147)][_0x3bbe2a(0x1ff,0x24a,0x2fa,0x29d)](_0x513c5c);}[_0x551389(0x4d3,0x419,0x3d1,0x3ff)](_0x24370f){const _0x5bd548={_0x41b837:0x48e,_0x538103:0x3ac,_0x5b5c91:0x32c,_0x350431:0x4bc,_0x525a2c:0x542},_0x259cde={_0x575976:0x121},_0x434754={_0x20f854:0x11f,_0x557bd6:0x2f};function _0x3c8ad3(_0x20abdb,_0x233bff,_0x1ed5c5,_0x5e2688){return _0xf0dc29(_0x5e2688-_0x434754._0x20f854,_0x233bff-_0x434754._0x557bd6,_0x20abdb,_0x5e2688-0x61);}const _0x353359=this[_0x3cd88c(0x42c,0x43a,0x36f,_0x5bd548._0x41b837)][_0x3cd88c(_0x5bd548._0x538103,0x45b,_0x5bd548._0x5b5c91,0x428)](_0x24370f);function _0x3cd88c(_0x32bdb8,_0x3b3660,_0x28cdbd,_0x28a647){return _0xf0dc29(_0x32bdb8-0x114,_0x3b3660-0x1d5,_0x3b3660,_0x28a647-_0x259cde._0x575976);}if(!_0x353359)throw new Error(_0x3cd88c(_0x5bd548._0x350431,0x44c,_0x5bd548._0x525a2c,0x4f9)+_0x24370f);return _0x353359;}async[_0x551389(0x3de,0x3f8,0x3f6,0x48d)](_0x22804c,_0x28753b){const _0xffa2f2={_0x42f881:0x3ef,_0x577c20:0x4d1,_0x1a2a1d:0x362,_0x58daea:0x385,_0x3da2d8:0x4fe,_0x5b6171:0x11f,_0x2c2b0d:0x23a,_0xdb52e3:0x445,_0x321795:0x3f8,_0x33b5ee:0x450,_0x1f28d2:0x515,_0x4496a8:0x4da,_0x1b70fb:0x42e,_0x5bab2c:0x4cf,_0x4e372e:0x1c2},_0x1c4844={_0x4e4a61:0x56,_0x57129b:0x18a};function _0x1b1428(_0x515b73,_0x484421,_0x39c48c,_0x42ea27){return _0x551389(_0x515b73-_0x1c4844._0x4e4a61,_0x484421-0xc4,_0x42ea27,_0x42ea27-_0x1c4844._0x57129b);}const _0x8c5d12=toModelRequest(_0x22804c),_0x2d4a2c=await prepareProviderRequest(_0x8c5d12,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x28753b}),_0x33c8b4=toChatRequest(_0x2d4a2c[_0x1b1428(_0xffa2f2._0x42f881,0x45e,_0xffa2f2._0x577c20,0x3e4)]),_0x386b84=this[_0x1b1428(0x35b,0x39c,0x419,_0xffa2f2._0x1a2a1d)]['resolveCredential'](this[_0x1b1428(0x354,0x422,_0xffa2f2._0x58daea,_0xffa2f2._0x3da2d8)],_0x2d4a2c[_0x2121f3(0x215,_0xffa2f2._0x5b6171,_0xffa2f2._0x2c2b0d,0x1c2)]);function _0x2121f3(_0x12a0c2,_0x41e7a7,_0x170b5f,_0x5bcd77){return _0xf0dc29(_0x5bcd77- -0x16a,_0x41e7a7-0x11,_0x41e7a7,_0x5bcd77-0x1b7);}if(!_0x386b84)throw this[_0x1b1428(_0xffa2f2._0xdb52e3,0x431,_0xffa2f2._0x321795,_0xffa2f2._0x33b5ee)]();return{'baseUrl':this['providerAdapter']['resolveBaseUrl'](this[_0x1b1428(_0xffa2f2._0x1f28d2,_0xffa2f2._0x4496a8,0x590,0x572)],_0x2d4a2c[_0x1b1428(_0xffa2f2._0x1b70fb,_0xffa2f2._0x5bab2c,0x466,0x57d)]),'credential':_0x386b84,'request':_0x33c8b4,'session':_0x2d4a2c[_0x2121f3(0x1c8,0x1b7,0x208,_0xffa2f2._0x4e372e)]};}[_0x551389(0x44a,0x49f,0x3c7,0x484)](_0xaed3dc){return{...structuredClone(_0xaed3dc),..._0xaed3dc['reasoning']===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};}async[_0x551389(0x248,0x2e5,0x284,0x311)](_0x3255f5,_0x1070fe,_0x14a4fb,_0x15becc={},_0x45e96d=!![]){const _0x469fea={_0x51d461:0x33},_0x34196b={_0x5c2237:0x36b,_0x45b82b:0x3dd,_0x508b4a:0x6ad,_0x250159:0x586,_0x31856f:0x4f9,_0x1514a3:0x566,_0x3047c0:0x546,_0x17dcc9:0x483,_0x48e124:0x4ce,_0x8078c6:0x537,_0x15de7f:0x27c,_0x12a2b6:0x2ee,_0x3f50c6:0x2e0,_0x19ba9a:0x34c,_0x2ddb94:0x604,_0x10d9ed:0x520,_0x2d2977:0x488,_0xe8bf17:0x578,_0x534b47:0x309,_0x12c8b6:0x467,_0x4f5c6a:0x3a5,_0x1e4850:0x39e,_0x1514d9:0x434,_0x1bb8ab:0x364,_0x5ad098:0x422,_0x490fb7:0x49c,_0x1bb4e4:0x2ee,_0xb6bad:0x2a6,_0x2f1bae:0x483,_0x2fd868:0x27c,_0x4aff2e:0x1ef,_0x2ed181:0x307,_0x272176:0x445,_0x5d690c:0x3be,_0x18c6e8:0x61e,_0x18b1ee:0x318,_0x468205:0x3b7,_0x1129af:0x201},_0x53ac20={_0xa0422b:0x141},{signal:_0x4421b3}=_0x15becc,_0xc7a074=async()=>{const _0x605f6c=await this[_0x503d59(0x38a,_0x34196b._0x5c2237,0x2c2,0x339)](_0x3255f5,_0x4421b3);let _0x31a72b;function _0x503d59(_0x476395,_0x5dde57,_0xfedff,_0xaafb14){return _0x5b12(_0x476395-_0x53ac20._0xa0422b,_0xaafb14);}try{_0x31a72b=_0x1070fe[_0x2babcf(0x3e5,_0x34196b._0x45b82b,0x44a,0x50f)](_0x605f6c['request']);}catch(_0x4f9630){if(_0x4f9630 instanceof Error)throw new ProviderRequestConstructionError(_0x4f9630[_0x2babcf(_0x34196b._0x508b4a,0x500,0x5cf,_0x34196b._0x250159)]);throw _0x4f9630;}if(!_0x31a72b[_0x2babcf(_0x34196b._0x31856f,0x50e,_0x34196b._0x1514a3,_0x34196b._0x3047c0)])throw new ProviderRequestConstructionError('Surface\x20'+_0x1070fe['id']+_0x2babcf(_0x34196b._0x17dcc9,_0x34196b._0x48e124,0x4c7,0x45d));const _0x8c3ce=await this[_0x2babcf(0x566,0x58c,0x4e1,_0x34196b._0x8078c6)]({'request':_0x605f6c[_0x503d59(0x32c,0x2a9,0x3fb,_0x34196b._0x15de7f)],'body':_0x31a72b[_0x503d59(_0x34196b._0x12a2b6,0x226,_0x34196b._0x3f50c6,_0x34196b._0x19ba9a)],'credential':_0x605f6c[_0x2babcf(_0x34196b._0x2ddb94,0x60b,0x570,_0x34196b._0x10d9ed)],'session':_0x605f6c[_0x2babcf(0x4cc,_0x34196b._0x2d2977,_0x34196b._0xe8bf17,0x5d2)],'stream':_0x14a4fb},{'accept':_0x31a72b[_0x503d59(0x3ad,0x3ac,_0x34196b._0x534b47,_0x34196b._0x12c8b6)]??(_0x14a4fb?_0x503d59(_0x34196b._0x4f5c6a,_0x34196b._0x1e4850,_0x34196b._0x1514d9,_0x34196b._0x1bb8ab):_0x503d59(_0x34196b._0x5ad098,_0x34196b._0x490fb7,0x387,0x47c)),'includeContentType':_0x31a72b[_0x503d59(_0x34196b._0x1bb4e4,0x2a2,0x2a5,_0x34196b._0xb6bad)]!==void 0x0});for(const [_0x329d6e,_0xee0976]of Object[_0x503d59(0x415,0x3d7,_0x34196b._0x2f1bae,0x468)](_0x31a72b[_0x503d59(_0x34196b._0x2fd868,_0x34196b._0x4aff2e,_0x34196b._0x2ed181,0x352)]??{})){_0x8c3ce['set'](_0x329d6e,_0xee0976);}function _0x2babcf(_0x43a633,_0x341f9f,_0xda05eb,_0x4a5c94){return _0x5b12(_0xda05eb-0x31c,_0x43a633);}return this['fetchImpl'](''+_0x605f6c[_0x503d59(0x3a8,_0x34196b._0x272176,0x459,_0x34196b._0x5d690c)]+_0x31a72b[_0x2babcf(_0x34196b._0x18c6e8,0x48e,0x566,0x4e1)],{'method':_0x503d59(0x256,0x285,0x31b,_0x34196b._0x18b1ee),'headers':_0x8c3ce,..._0x31a72b['body']!==void 0x0?{'body':JSON['stringify'](_0x31a72b[_0x503d59(0x2ee,_0x34196b._0x2ed181,_0x34196b._0x468205,_0x34196b._0x1129af)])}:{},'signal':_0x4421b3});};function _0x39b606(_0x5cf6dd,_0x555a45,_0xf0a731,_0x2b2fe6){return _0x551389(_0x5cf6dd-_0x469fea._0x51d461,_0x555a45- -0x204,_0x5cf6dd,_0x2b2fe6-0x1e8);}return _0x45e96d?await this[_0x39b606(0xb8,0xd7,0xb3,0xd4)](_0xc7a074,_0x15becc):await _0xc7a074();}async*[_0x551389(0x1f5,0x2c6,0x2fd,0x275)](_0x1b6b84,_0x1d4761,_0x17911e={}){const _0x2491b6={_0x576b3f:0x58,_0x3a1942:0x4b,_0x53fd24:0x5d4,_0x4b54c4:0x680,_0x296fe4:0x55f,_0xa94c1f:0x3f1,_0x5365ac:0x678,_0x3c77a6:0x274,_0x130d53:0x216,_0x3c91d3:0x223,_0x238532:0xe7,_0x38adee:0x6b,_0x1eb20b:0xc6,_0x52e6d0:0x491,_0x488b48:0x45d,_0x59a11a:0x6d,_0x2cf3c0:0x430,_0x9d54e9:0x4c3,_0x4e2125:0x504,_0x23e234:0x5a8,_0x45635e:0x5cb,_0x1f9fa4:0x4e7,_0x2dd5af:0x3b6,_0x2a6c62:0x35d,_0x1d2711:0x476,_0x1fd197:0x4ad,_0x3e40fe:0x4ca},_0x5d9267={_0x1f3502:0x4e1},_0x2f2d03={_0x1ea0e6:0x93,_0x4b5dc5:0x148};function _0x33d968(_0x4008c6,_0x2ceca6,_0x54154d,_0x5d672f){return _0x551389(_0x4008c6-_0x2f2d03._0x1ea0e6,_0x54154d-_0x2f2d03._0x4b5dc5,_0x2ceca6,_0x5d672f-0xc6);}function _0x543716(_0x2b2382,_0x4e8822,_0x203988,_0x53da68){return _0x551389(_0x2b2382-0x139,_0x4e8822- -_0x5d9267._0x1f3502,_0x53da68,_0x53da68-0xcc);}const {signal:_0x57ec77}=_0x17911e;let _0x458168=![];for(let _0x54832e=0x0;_0x54832e<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x54832e+=0x1){let _0x4451ee=![];try{const _0x5b3ec2=await this['sendHttpSurfaceRequest'](_0x1b6b84,_0x1d4761,!![],_0x17911e,![]);if(_0x5b3ec2[_0x543716(_0x2491b6._0x576b3f,-_0x2491b6._0x3a1942,-0x34,-0x7e)]===0x191&&this['sessionManager']&&!_0x458168){_0x458168=!![],this[_0x33d968(0x5f4,0x519,_0x2491b6._0x53fd24,0x6b9)][_0x33d968(_0x2491b6._0x4b54c4,_0x2491b6._0x296fe4,0x5ad,0x664)]();continue;}if(!_0x5b3ec2['ok'])throw await this['toApiError'](_0x5b3ec2);const _0x21cfe5=_0x1d4761['createStreamParser']?.(_0x1b6b84);if(!_0x21cfe5?.[_0x33d968(_0x2491b6._0xa94c1f,0x4f5,0x413,0x33b)])throw new Error(_0x33d968(0x64e,_0x2491b6._0x5365ac,0x5a4,0x665)+_0x1d4761['id']+'\x20cannot\x20parse\x20SSE\x20events');for await(const _0x4596f6 of iterateSseEvents(_0x5b3ec2,_0x57ec77)){const _0x48ccb9=_0x21cfe5[_0x543716(-_0x2491b6._0x3c77a6,-_0x2491b6._0x130d53,-_0x2491b6._0x3c91d3,-0x18f)](_0x4596f6);for(const _0x52dd60 of _0x48ccb9){_0x4451ee=!![],yield _0x52dd60;}}yield{'type':_0x543716(-_0x2491b6._0x238532,-_0x2491b6._0x38adee,-_0x2491b6._0x1eb20b,-0xdf),'response':_0x21cfe5[_0x33d968(_0x2491b6._0x52e6d0,0x40f,_0x2491b6._0x488b48,0x394)]()};return;}catch(_0xd745ec){if(_0x4451ee||!this[_0x543716(_0x2491b6._0x576b3f,-_0x2491b6._0x59a11a,-0x63,-0x16)](_0xd745ec)||_0x54832e===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0xd745ec;const _0x30a528=this[_0x33d968(0x3d6,0x443,_0x2491b6._0x2cf3c0,0x4e9)](void 0x0,_0x54832e),_0x564e65={'type':'provider_retry','attempt':_0x54832e+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0xd745ec instanceof Error?_0xd745ec[_0x33d968(0x522,_0x2491b6._0x9d54e9,0x5aa,_0x2491b6._0x4e2125)]:String(_0xd745ec),'delayMs':_0x30a528,'reason':this[_0x33d968(_0x2491b6._0x23e234,_0x2491b6._0x45635e,0x5c8,_0x2491b6._0x1f9fa4)](_0xd745ec)?'transport_error':_0x33d968(_0x2491b6._0x2dd5af,_0x2491b6._0x2a6c62,0x440,_0x2491b6._0x1d2711)};yield _0x564e65,await this[_0x33d968(0x439,_0x2491b6._0x1fd197,0x47c,_0x2491b6._0x3e40fe)](_0x30a528,_0x57ec77);}}}async*[_0x551389(0x3b0,0x39f,0x405,0x303)](_0x298f73,_0x4e9ffa,_0x178f0f){const _0x59dcce={_0x4773ef:0x4a9,_0x5b0c98:0x4a8,_0x5235c5:0x4c6,_0x46de91:0x475,_0x525824:0x388,_0x4b4fa1:0x3fc,_0x23dc71:0x522,_0x362361:0x586,_0x5407f4:0x622,_0x1d8969:0x406,_0x27f766:0x599,_0x41bd2a:0x5aa,_0x11f686:0x580,_0x3a45ec:0x4c2,_0x2711ad:0x558,_0x4c9042:0x5b4,_0x6de0a:0x533,_0x283469:0x62c,_0x2bd81a:0x648,_0x874331:0x5d3,_0x345962:0x568,_0x48572b:0x52e,_0x121f37:0x5c2,_0x3beb49:0x568,_0x3e6918:0x535,_0x2834fd:0x457,_0x1b1896:0x43d,_0x9cfd29:0x521,_0x42e4e2:0x538,_0x3ab841:0x4c9,_0x7ef85e:0x54e,_0x2a25c3:0x3d9,_0x5e3429:0x461,_0x7cb603:0x4c8,_0x28ece2:0x4d0,_0x4ed9e4:0x4f2,_0x33906c:0x52f,_0xb0ad85:0x4e0,_0x1d1180:0x4f0,_0x499dc6:0x526,_0x5b6dd4:0x6e6,_0x247952:0x5ac,_0x1721d7:0x538,_0x5b9405:0x4c4,_0x31b023:0x40d,_0x49978d:0x470,_0x5daf26:0x5e9,_0x18c281:0x4d2,_0xe2fa15:0x4ac,_0x4dd3f6:0x389,_0x4d584d:0x3a7,_0x224019:0x420,_0xf1cba3:0x48e,_0x1fc770:0x558,_0x2a293c:0x4c4,_0x12b3c3:0x3e8,_0xded62c:0x47c,_0x2ba675:0x3a6,_0x5bb7bd:0x3c2,_0x2b478c:0x5bd,_0x424330:0x659,_0x327b46:0x597,_0x56cb88:0x66c,_0x425011:0x3ba,_0x4d5b09:0x3c4,_0x55c451:0x497,_0x3a22f1:0x3b6,_0x5f0fa1:0x3a8,_0x1c04c0:0x3c5,_0x1de486:0x3da,_0x1567b9:0x40c,_0x41d1f3:0x55b,_0x22e24f:0x565,_0x43a91b:0x568,_0x5aa48b:0x640,_0x657a18:0x41c},_0x4a10c8={_0x114895:0xeb,_0x527730:0x1da},_0x154049={_0x3b8f19:0xb3},_0x11dc71=await this[_0x43e9cb(_0x59dcce._0x4773ef,0x4bd,_0x59dcce._0x5b0c98,0x3e3)](_0x298f73,_0x178f0f),_0x202e25=_0x4e9ffa[_0x1e385d(_0x59dcce._0x5235c5,_0x59dcce._0x46de91,0x4b7,0x573)](_0x11dc71[_0x43e9cb(0x54a,0x45f,0x47c,_0x59dcce._0x525824)]);function _0x43e9cb(_0x18d1fd,_0x464a2e,_0xe3db94,_0x4bf73b){return _0xf0dc29(_0x464a2e-0x1a4,_0x464a2e-0x74,_0x18d1fd,_0x4bf73b-_0x154049._0x3b8f19);}const _0x22b6ff=_0x4e9ffa[_0x1e385d(_0x59dcce._0x4b4fa1,0x4a7,0x4be,0x572)]?.(_0x298f73);if(!_0x22b6ff?.[_0x1e385d(_0x59dcce._0x23dc71,0x593,_0x59dcce._0x362361,_0x59dcce._0x5407f4)])throw new Error('Surface\x20'+_0x4e9ffa['id']+_0x43e9cb(_0x59dcce._0x1d8969,0x4ec,0x5c5,_0x59dcce._0x27f766));const _0x57a6c8=_0x202e25[_0x1e385d(_0x59dcce._0x41bd2a,0x61f,_0x59dcce._0x11f686,_0x59dcce._0x3a45ec)]??(_0x202e25[_0x1e385d(0x670,0x57f,0x5d3,0x647)]?(''+_0x11dc71[_0x43e9cb(_0x59dcce._0x2711ad,0x4db,_0x59dcce._0x4c9042,_0x59dcce._0x6de0a)]+_0x202e25[_0x1e385d(_0x59dcce._0x283469,_0x59dcce._0x2bd81a,_0x59dcce._0x874331,0x543)])[_0x1e385d(0x5a7,0x5ce,_0x59dcce._0x345962,0x4f9)](/^http:/,_0x1e385d(0x5dd,0x532,_0x59dcce._0x48572b,0x540))[_0x1e385d(0x49b,_0x59dcce._0x121f37,_0x59dcce._0x3beb49,_0x59dcce._0x3e6918)](/^https:/,_0x1e385d(0x59c,0x58d,0x4da,_0x59dcce._0x2834fd)):void 0x0);if(!_0x57a6c8)throw new ProviderRequestConstructionError(_0x43e9cb(_0x59dcce._0x1b1896,_0x59dcce._0x9cfd29,0x5ec,_0x59dcce._0x42e4e2)+_0x4e9ffa['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x12065f=await this[_0x1e385d(0x531,_0x59dcce._0x3ab841,_0x59dcce._0x7ef85e,0x564)]({'request':_0x11dc71['request'],'body':_0x202e25[_0x43e9cb(0x3e1,0x3e8,_0x59dcce._0x2a25c3,_0x59dcce._0x5e3429)],'credential':_0x11dc71[_0x43e9cb(0x4cc,_0x59dcce._0x7cb603,0x553,0x4e0)],'session':_0x11dc71[_0x43e9cb(_0x59dcce._0x362361,_0x59dcce._0x28ece2,0x564,_0x59dcce._0x4ed9e4)],'stream':!![]},{'accept':_0x202e25[_0x43e9cb(_0x59dcce._0x33906c,_0x59dcce._0xb0ad85,_0x59dcce._0x1d1180,0x5ca)]??_0x43e9cb(_0x59dcce._0x499dc6,0x555,0x4a7,0x525),'includeContentType':![]});for(const [_0x135379,_0x8e01f2]of Object[_0x1e385d(_0x59dcce._0x5b6dd4,_0x59dcce._0x247952,0x65d,0x672)](_0x202e25[_0x1e385d(_0x59dcce._0x1721d7,0x45c,_0x59dcce._0x5b9405,_0x59dcce._0x31b023)]??{})){_0x12065f[_0x43e9cb(_0x59dcce._0x49978d,0x454,0x466,0x3b1)](_0x135379,_0x8e01f2);}function _0x1e385d(_0x299b45,_0xc97b89,_0xa29e51,_0x3dad43){return _0x551389(_0x299b45-_0x4a10c8._0x114895,_0xa29e51-_0x4a10c8._0x527730,_0x3dad43,_0x3dad43-0x178);}_0x12065f[_0x1e385d(0x576,_0x59dcce._0x5daf26,0x5eb,0x58e)]('accept');const _0x252a5c=this[_0x43e9cb(0x538,_0x59dcce._0x18c281,0x533,_0x59dcce._0xe2fa15)]({'headers':Object[_0x43e9cb(_0x59dcce._0x4dd3f6,_0x59dcce._0x4d584d,_0x59dcce._0x224019,_0x59dcce._0xf1cba3)](_0x12065f['entries']()),'url':_0x57a6c8});try{throwIfAborted(_0x178f0f);_0x252a5c[_0x1e385d(0x62d,0x5b4,_0x59dcce._0x1fc770,0x5ea)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x252a5c,_0x178f0f);throwIfAborted(_0x178f0f);_0x202e25[_0x43e9cb(_0x59dcce._0x2a293c,_0x59dcce._0x12b3c3,0x339,0x342)]!==void 0x0&&_0x252a5c[_0x43e9cb(0x476,_0x59dcce._0xded62c,_0x59dcce._0x2ba675,_0x59dcce._0x5bb7bd)](JSON[_0x1e385d(_0x59dcce._0x2b478c,_0x59dcce._0x424330,_0x59dcce._0x327b46,_0x59dcce._0x56cb88)](_0x202e25['initialEvent']));for await(const _0x4fb78c of iterateWebSocketMessages(_0x252a5c,_0x178f0f)){yield*_0x22b6ff[_0x43e9cb(_0x59dcce._0x425011,0x471,_0x59dcce._0x4d5b09,_0x59dcce._0x55c451)](_0x4fb78c);if(_0x22b6ff[_0x43e9cb(_0x59dcce._0x3a22f1,_0x59dcce._0x5f0fa1,0x40c,0x2bf)]?.())break;}yield{'type':'done','response':_0x22b6ff[_0x43e9cb(_0x59dcce._0x1c04c0,_0x59dcce._0x1de486,0x33e,0x389)]()};}finally{_0x252a5c['readyState']===WebSocket[_0x43e9cb(0x554,0x499,0x556,_0x59dcce._0x1567b9)]&&_0x252a5c[_0x43e9cb(0x396,0x452,0x363,0x448)](0x3e8,_0x178f0f?.[_0x1e385d(0x565,_0x59dcce._0x41d1f3,0x555,0x499)]?_0x1e385d(_0x59dcce._0x22e24f,_0x59dcce._0x43a91b,0x555,_0x59dcce._0x5aa48b):_0x43e9cb(0x4f2,_0x59dcce._0x657a18,0x380,0x36b));}}};async function createHttpError(_0x1a0657){const _0x2703e5={_0x12cb08:0x2a4,_0x482b8c:0x373,_0x5320ec:0x23d,_0x25ace3:0x8b,_0x72dbc4:0x1f4,_0x29fa3d:0x20d,_0x3fa6bb:0x1a6,_0x558537:0xa1,_0x3e03f3:0xd7,_0x4c352c:0xa4},_0x3a3619={_0x47c90c:0xe3,_0x1fe543:0x2b},_0x42a8c2={_0x14ab02:0x48e},_0x54b75e=await _0x1a0657[_0x4e04b3(-0x1d6,-_0x2703e5._0x12cb08,-0x374,-0x2f3)]();function _0x4e04b3(_0x25dff7,_0x17a88d,_0x4a2ce4,_0xf48c9a){return _0xf0dc29(_0x17a88d- -_0x42a8c2._0x14ab02,_0x17a88d-0x103,_0x25dff7,_0xf48c9a-0x144);}const _0x454482=_0x54b75e[_0x1d0556(0xb4,-0x102,0x50,-0x3c)]()||_0x1a0657[_0x4e04b3(-0x29d,-0x29a,-_0x2703e5._0x482b8c,-_0x2703e5._0x5320ec)]||_0x1d0556(-_0x2703e5._0x25ace3,-0x97,-0x12c,-0xd6);function _0x1d0556(_0x530cd0,_0x3e9b91,_0x2b1f55,_0x59c306){return _0xf0dc29(_0x59c306- -0x3b6,_0x3e9b91-_0x3a3619._0x47c90c,_0x530cd0,_0x59c306-_0x3a3619._0x1fe543);}return new Error(_0x1d0556(-0x1b0,-_0x2703e5._0x72dbc4,-_0x2703e5._0x29fa3d,-_0x2703e5._0x3fa6bb)+_0x1a0657[_0x4e04b3(-_0x2703e5._0x558537,-_0x2703e5._0x3e03f3,-0x105,-_0x2703e5._0x4c352c)]+':\x20'+_0x454482);}var AnthropicProviderAdapter=class{['authScheme'];[_0xf0dc29(0x36d,0x3d6,0x454,0x309)];[_0xf0dc29(0x237,0x2cd,0x1b7,0x168)];constructor(_0x20eeb2){const _0x531b7e={_0x538a3e:0x43e,_0xfe05a:0x4d6,_0x3d6823:0x4f5,_0x1e0c79:0x50b,_0x411ee0:0x4e4,_0xca1556:0x4ac,_0x5eba60:0x415,_0x4af3d1:0x37e,_0x1d95d1:0x371,_0x42d954:0x306,_0x42c6fb:0x354},_0x17f10c={_0x3599a2:0x147},_0x1c720f={_0x476d10:0x83};function _0x1ce469(_0x3cbccc,_0x4389aa,_0x16224a,_0x31d8a9){return _0xf0dc29(_0x16224a-0x11d,_0x4389aa-0x10c,_0x31d8a9,_0x31d8a9-_0x1c720f._0x476d10);}this[_0x3c7eca(0x5d0,0x4f5,_0x531b7e._0x538a3e,0x43b)]=_0x20eeb2[_0x3c7eca(_0x531b7e._0xfe05a,_0x531b7e._0x3d6823,_0x531b7e._0x1e0c79,0x471)],this[_0x3c7eca(_0x531b7e._0x411ee0,0x560,0x4ab,_0x531b7e._0xca1556)]=_0x20eeb2[_0x1ce469(0x3de,_0x531b7e._0x5eba60,0x48a,0x51d)];function _0x3c7eca(_0x55d7cb,_0x7732da,_0xf455cd,_0x54c56b){return _0x551389(_0x55d7cb-_0x17f10c._0x3599a2,_0x7732da-0x114,_0xf455cd,_0x54c56b-0x6);}this[_0x1ce469(_0x531b7e._0x4af3d1,0x3c7,0x354,_0x531b7e._0x1d95d1)]=_0x20eeb2[_0x1ce469(0x358,_0x531b7e._0x42d954,_0x531b7e._0x42c6fb,0x347)];}[_0xf0dc29(0x28e,0x1dd,0x2c6,0x366)](){const _0xebdb07={_0x226856:0xa8},_0xdd2014={_0x3f67bd:0x1e5};function _0x4d993c(_0x4dcdb9,_0x6c251c,_0x119f8d,_0x4b96d0){return _0xf0dc29(_0x4b96d0- -0x1f5,_0x6c251c-0x1c1,_0x119f8d,_0x4b96d0-_0xdd2014._0x3f67bd);}return new Error(_0x4d993c(_0xebdb07._0x226856,0xf6,0xf7,0x151));}async['createHeaders'](_0x57f5fd,_0x2b95da){const _0x4570dd={_0x4bd0f8:0x184,_0x22a950:0x123,_0x2386b7:0x97,_0x47c499:0x107,_0x15fb70:0x18,_0x267f3b:0x84,_0x5f5c50:0x547,_0x4c705a:0x4fa,_0x86f3b:0x5ae,_0x532d9c:0x693,_0x2a0975:0x51e,_0x197172:0x563,_0x4dab16:0x646,_0x8c79a3:0x70f,_0x36937c:0x6ad,_0x59d78c:0x59b,_0x3e38f5:0x5fc,_0x5d3155:0x58d,_0xcb9efc:0x5f4,_0x592c17:0xfa,_0x2c7d39:0x4b,_0x96ac2:0x8c,_0x9d88ec:0xc9,_0x11ead9:0x62a,_0x1af4b5:0x677,_0x2f5530:0x620,_0x1c8f91:0xea,_0x1e7568:0xaa,_0x51f48a:0x4f3,_0xfb9a54:0x691,_0x494bb8:0xca,_0x5e6f7c:0x1e,_0x14c56f:0x35,_0x4d7d44:0xea,_0x5e5d6e:0x5f3,_0x52a08e:0x669,_0x18d68e:0x83,_0x3a0390:0x156,_0x148cf2:0x101,_0x56acdb:0xe0,_0x559eb4:0x13e,_0x320108:0x54f,_0x1ff79a:0x5c9,_0x2d3462:0x611,_0x163bcc:0x531,_0x317573:0x61b,_0x23814a:0x5ef,_0xcf3763:0x6a0},_0x302f35={_0x4fa3df:0xdf},_0x28e28a={_0xacbd55:0x7b,_0x5bfd98:0x35},_0x3c5d78=new Headers();function _0x1fb3d2(_0x5ce6d9,_0x28d4b1,_0x35357f,_0x19b24b){return _0xf0dc29(_0x19b24b-0x2fc,_0x28d4b1-_0x28e28a._0xacbd55,_0x28d4b1,_0x19b24b-_0x28e28a._0x5bfd98);}function _0x5eeb2a(_0x114e09,_0x500f0d,_0x16e6d9,_0x25c5e6){return _0x551389(_0x114e09-_0x302f35._0x4fa3df,_0x500f0d- -0x4b2,_0x114e09,_0x25c5e6-0x16e);}_0x3c5d78[_0x5eeb2a(-_0x4570dd._0x4bd0f8,-_0x4570dd._0x22a950,-0x1ff,-0x151)](_0x1fb3d2(0x590,0x5d4,0x714,0x638),_0x2b95da[_0x5eeb2a(-0x158,-_0x4570dd._0x2386b7,-0x86,-_0x4570dd._0x47c499)]),_0x3c5d78['set'](_0x5eeb2a(-_0x4570dd._0x15fb70,-0xd3,-0x7b,-_0x4570dd._0x267f3b),this['protocolVersion']);_0x2b95da[_0x1fb3d2(_0x4570dd._0x5f5c50,_0x4570dd._0x4c705a,0x668,_0x4570dd._0x86f3b)]!==![]&&_0x3c5d78[_0x1fb3d2(_0x4570dd._0x532d9c,0x4cc,_0x4570dd._0x2a0975,0x5ac)](_0x1fb3d2(_0x4570dd._0x197172,0x652,0x672,_0x4570dd._0x4dab16),_0x1fb3d2(_0x4570dd._0x8c79a3,0x5d0,0x5cd,_0x4570dd._0x36937c));this[_0x1fb3d2(0x5e1,_0x4570dd._0x59d78c,0x6de,0x5fe)]===_0x1fb3d2(0x57d,_0x4570dd._0x3e38f5,0x4ef,_0x4570dd._0x5d3155)?_0x3c5d78[_0x1fb3d2(0x594,0x59b,_0x4570dd._0xcb9efc,0x5ac)](_0x5eeb2a(-_0x4570dd._0x592c17,-0x5e,-0x91,_0x4570dd._0x2c7d39),_0x5eeb2a(-_0x4570dd._0x96ac2,-_0x4570dd._0x9d88ec,-0x6a,-0xa5)+_0x57f5fd[_0x1fb3d2(0x6ab,_0x4570dd._0x11ead9,_0x4570dd._0x1af4b5,_0x4570dd._0x2f5530)][_0x5eeb2a(-0x1af,-_0x4570dd._0x1c8f91,-0xb4,-_0x4570dd._0x1e7568)]):_0x3c5d78[_0x1fb3d2(_0x4570dd._0x51f48a,_0x4570dd._0xfb9a54,0x637,0x5ac)]('x-api-key',_0x57f5fd[_0x5eeb2a(-_0x4570dd._0x494bb8,-0xaf,-0xd6,-_0x4570dd._0x5e6f7c)][_0x5eeb2a(-_0x4570dd._0x14c56f,-_0x4570dd._0x4d7d44,-0x1c8,-0x18a)]);const _0xcb4575=await this[_0x1fb3d2(_0x4570dd._0x5e5d6e,0x5f6,0x5db,_0x4570dd._0x52a08e)]?.({'body':_0x57f5fd[_0x5eeb2a(-_0x4570dd._0x18d68e,-_0x4570dd._0x3a0390,-_0x4570dd._0x148cf2,-0x12e)],'credential':_0x57f5fd['credential'],'request':_0x57f5fd[_0x5eeb2a(-_0x4570dd._0x56acdb,-0x118,-0xf9,-_0x4570dd._0x559eb4)],'session':_0x57f5fd[_0x1fb3d2(_0x4570dd._0x320108,0x5db,_0x4570dd._0x1ff79a,0x628)],'stream':_0x57f5fd[_0x1fb3d2(_0x4570dd._0x2d3462,_0x4570dd._0x163bcc,0x5d9,_0x4570dd._0x317573)]});for(const [_0x45e038,_0x1ebf79]of Object[_0x1fb3d2(0x609,0x634,_0x4570dd._0x23814a,_0x4570dd._0xcf3763)](_0xcb4575??{})){_0x3c5d78['set'](_0x45e038,_0x1ebf79);}return _0x3c5d78;}['mapApiError'](_0x282297){return _0x282297;}['resolveBaseUrl'](_0x277bf3,_0x1989eb){return resolveSessionBaseUrl(_0x277bf3,_0x1989eb);}[_0xf0dc29(0x265,0x1fd,0x33d,0x22f)](_0x178200,_0x20a84e){return resolveApiCredential(_0x178200,_0x20a84e);}async['toApiError'](_0x47850a){return await createHttpError(_0x47850a);}},AnthropicModel=class extends RoutedModel{constructor(_0x55c541={}){const _0x40c19f={_0x129c77:0x0,_0x35110d:0x23,_0x5883fc:0xcd,_0x1a794a:0x7b,_0x19fe3a:0x4f,_0x12cd99:0x14,_0x13e5f3:0x82,_0x395453:0x3e,_0x7f122d:0x13a,_0x59ff9f:0x8d,_0x428707:0xdd,_0x298c6b:0x96,_0x1be72f:0x92,_0x4ac49f:0xe,_0x2f5174:0xbb,_0x87fd84:0x12,_0x47867d:0x110,_0x29188a:0x1b7,_0x172e36:0x1b0,_0x424b1e:0x66},_0x2b5283={_0x1de42b:0x12c},_0x5bbbf0={_0xcb0116:0xbe};function _0x35351c(_0x15ee9e,_0x369a62,_0x2c10fb,_0x29d10a){return _0x551389(_0x15ee9e-_0x5bbbf0._0xcb0116,_0x15ee9e- -0x391,_0x29d10a,_0x29d10a-0xa9);}function _0x335ebc(_0x10b08c,_0x4f6778,_0x57abd8,_0x2722a6){return _0x551389(_0x10b08c-0x159,_0x2722a6- -0x3ef,_0x4f6778,_0x2722a6-_0x2b5283._0x1de42b);}super({'apiKey':_0x55c541[_0x35351c(-0x33,_0x40c19f._0x129c77,-_0x40c19f._0x35110d,-0x86)],'baseUrl':trimTrailingSlashes(_0x55c541['baseUrl']??_0x35351c(-0x14,_0x40c19f._0x5883fc,0x8f,-_0x40c19f._0x1a794a)),'fetch':_0x55c541[_0x35351c(0x79,_0x40c19f._0x19fe3a,0x24,-_0x40c19f._0x12cd99)],'maxTokens':_0x55c541['maxTokens']??0x4000,'model':_0x55c541[_0x335ebc(_0x40c19f._0x13e5f3,_0x40c19f._0x395453,_0x40c19f._0x7f122d,_0x40c19f._0x59ff9f)]??_0x335ebc(-_0x40c19f._0x428707,-_0x40c19f._0x298c6b,-0xf2,-0x73),'reasoning':_0x55c541['reasoning'],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x55c541[_0x335ebc(-0x82,_0x40c19f._0x1be72f,-0x2f,-_0x40c19f._0x4ac49f)]??_0x35351c(0x54,0xb8,0x8a,0x0),'headerResolver':_0x55c541[_0x35351c(_0x40c19f._0x2f5174,0x4c,0xda,_0x40c19f._0x87fd84)],'protocolVersion':_0x55c541[_0x335ebc(-0x84,-0x112,-0x28,-0xd9)]??'2023-06-01'}),'providerSessionResolver':_0x55c541['providerSessionResolver'],'requestMutators':_0x55c541[_0x35351c(_0x40c19f._0x47867d,_0x40c19f._0x29188a,_0x40c19f._0x172e36,_0x40c19f._0x424b1e)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0xf0dc29(0x25b,0x1d3,0x268,0x1f4)](_0x413386,_0x1420ad){const _0x15d48f={_0x3eea51:0x441,_0x4b3ead:0x531},_0x3fd83e={_0x33f04a:0x28c,_0x211e08:0x5};function _0x47a81d(_0x426551,_0x1bdd15,_0x1defcf,_0x3b01c7){return _0xf0dc29(_0x1defcf-_0x3fd83e._0x33f04a,_0x1bdd15-_0x3fd83e._0x211e08,_0x1bdd15,_0x3b01c7-0x195);}return this[_0x47a81d(_0x15d48f._0x3eea51,0x5dd,_0x15d48f._0x4b3ead,0x4be)](_0x413386,ANTHROPIC_MESSAGES_SURFACE,_0x1420ad);}['stream'](_0x7b6fc7,_0x419db3){return this['streamViaSurface'](_0x7b6fc7,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x419db3);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x551389(0x47a,0x47a,0x4fc,0x478),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream',OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE='openai-responses-stream',OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0xf0dc29(0x3b7,0x309,0x496,0x464)];['body'];constructor(_0x511870,_0x42a6ce,_0x275e54){const _0x5c12ef={_0x10438c:0x214,_0x2f2e60:0x304,_0x258ff9:0x243,_0x3b8ec2:0x459,_0x4f760a:0x47f,_0x517365:0x41f},_0x28bddd={_0x59fd09:0x38,_0x12862d:0xcb},_0x5c51e0={_0x471fba:0x8f,_0x29dc03:0xb5,_0x3672b2:0x6e};super(_0x275e54),this[_0x16992d(_0x5c12ef._0x10438c,_0x5c12ef._0x2f2e60,0x2c3,_0x5c12ef._0x258ff9)]=_0x16992d(0x2ab,0x259,0x1e4,0x1a7);function _0x16992d(_0x23f4e4,_0x48e0b4,_0x579387,_0x5bd353){return _0xf0dc29(_0x579387- -_0x5c51e0._0x471fba,_0x48e0b4-_0x5c51e0._0x29dc03,_0x23f4e4,_0x5bd353-_0x5c51e0._0x3672b2);}function _0x49a391(_0x10801f,_0x4909f7,_0xd6b721,_0x510616){return _0x551389(_0x10801f-0x193,_0x510616-_0x28bddd._0x59fd09,_0x4909f7,_0x510616-_0x28bddd._0x12862d);}this[_0x49a391(_0x5c12ef._0x3b8ec2,_0x5c12ef._0x4f760a,_0x5c12ef._0x517365,0x4ce)]=_0x511870,this['body']=_0x42a6ce;}};function stringifySystem(_0x583839){const _0x1f4a22={_0x54781a:0x223,_0x1bf3e5:0x2ff,_0x3d2c83:0x2be},_0x33f3f3={_0x57ab28:0x16f,_0xf548c7:0x130},_0x5bcbb9={_0x2354d4:0x46c,_0xe58bdb:0xed,_0xf3200b:0x121};function _0x47c7f0(_0x37fab7,_0x267ae9,_0x3baa0d,_0x321210){return _0xf0dc29(_0x37fab7- -_0x5bcbb9._0x2354d4,_0x267ae9-_0x5bcbb9._0xe58bdb,_0x3baa0d,_0x321210-_0x5bcbb9._0xf3200b);}function _0x4476a(_0x336075,_0x22ef7f,_0xc2c85c,_0x40c235){return _0xf0dc29(_0x40c235- -0xba,_0x22ef7f-_0x33f3f3._0x57ab28,_0x22ef7f,_0x40c235-_0x33f3f3._0xf548c7);}return _0x583839[_0x47c7f0(-0x286,-0x345,-0x2fd,-_0x1f4a22._0x54781a)](_0x488fa4=>_0x488fa4[_0x47c7f0(-0x282,-0x2e3,-0x2da,-0x305)])[_0x4476a(_0x1f4a22._0x1bf3e5,0x211,0x307,_0x1f4a22._0x3d2c83)]('\x0a\x0a');}function createToolDefinitions(_0x3f2b77){const _0x5084ef={_0x1aee86:0x3c3,_0x7aff43:0x473,_0x3318a1:0x2b2,_0x34fd52:0x25d,_0x4ca0d0:0x2df},_0x341741={_0xd66a9d:0x376,_0x5c48a2:0x392,_0x5c1c65:0x1aa,_0x3642a3:0xce},_0x2e4bb0={_0x32f207:0x4b9},_0x4ed365={_0x436de2:0x129,_0x364b04:0x1a},_0xfc63a3={_0x274fca:0xbd,_0x25a01e:0x509};function _0x4b2e4e(_0x44ab88,_0x4c1c00,_0x40e367,_0x2dcf1f){return _0x551389(_0x44ab88-_0xfc63a3._0x274fca,_0x44ab88- -_0xfc63a3._0x25a01e,_0x2dcf1f,_0x2dcf1f-0xbe);}if(_0x3f2b77[_0x3f56a6(_0x5084ef._0x1aee86,_0x5084ef._0x7aff43,_0x5084ef._0x3318a1,0x38c)]===0x0)return void 0x0;function _0x3f56a6(_0x3b5a96,_0x17f066,_0x4d392f,_0x3c3354){return _0x551389(_0x3b5a96-_0x4ed365._0x436de2,_0x3c3354-_0x4ed365._0x364b04,_0x17f066,_0x3c3354-0x5);}return _0x3f2b77[_0x3f56a6(_0x5084ef._0x34fd52,0x2ae,0x2a1,_0x5084ef._0x4ca0d0)](_0x9122=>{const _0x56b76a={_0x58d686:0x152,_0x3f3caf:0x1};function _0x547596(_0x281081,_0x3df63b,_0x54d69e,_0x555d9e){return _0x3f56a6(_0x281081-_0x56b76a._0x58d686,_0x3df63b,_0x54d69e-0x130,_0x555d9e- -_0x56b76a._0x3f3caf);}function _0x4caa14(_0x597751,_0xfb4816,_0x55393a,_0x387b51){return _0x3f56a6(_0x597751-0x17e,_0x597751,_0x55393a-0x170,_0x387b51- -_0x2e4bb0._0x32f207);}return{'type':_0x547596(0x426,_0x341741._0xd66a9d,0x2d5,_0x341741._0x5c48a2),'function':{'name':_0x9122['name'],'description':_0x9122[_0x4caa14(-_0x341741._0x5c1c65,-0x60,-0x78,-_0x341741._0x3642a3)],'parameters':_0x9122['input_schema']}};});}function isImageToolResultBlock(_0x207c5d){const _0xdf6553={_0x173270:0x295,_0x25bc93:0x1e9,_0x54429a:0x14b,_0x16002b:0x25,_0x609e62:0x2b,_0x1e1f7e:0x105,_0x184a61:0x91,_0x37aaac:0x1f3,_0x238310:0x246,_0x17aa4e:0x65,_0xe50d88:0x17f,_0x327721:0x153,_0x23c978:0x8b,_0x53eeb7:0xaf,_0x4a86e6:0x104,_0x1b254d:0x1f0,_0x219d88:0xce,_0xbe8430:0x4,_0x2cb3a0:0x84},_0x4c0009={_0x10e072:0x109,_0x19ded9:0x8},_0x3b902a={_0x13ece5:0x24d,_0x4518b4:0x8b};function _0x16a602(_0x5b4793,_0x4b4851,_0x45145b,_0x5ee034){return _0xf0dc29(_0x5ee034- -_0x3b902a._0x13ece5,_0x4b4851-_0x3b902a._0x4518b4,_0x4b4851,_0x5ee034-0x1db);}if(typeof _0x207c5d!=='object'||_0x207c5d===null||Array[_0x1d8c1c(_0xdf6553._0x173270,0x32a,0x29a,_0xdf6553._0x25bc93)](_0x207c5d))return![];function _0x1d8c1c(_0x440eda,_0x5b086d,_0x40ec0a,_0x41987b){return _0xf0dc29(_0x440eda- -_0x4c0009._0x10e072,_0x5b086d-_0x4c0009._0x19ded9,_0x41987b,_0x41987b-0x1b8);}const _0x1c80c3=_0x207c5d;return _0x1c80c3[_0x16a602(-_0xdf6553._0x54429a,_0xdf6553._0x16002b,_0xdf6553._0x609e62,-0x65)]===_0x16a602(_0xdf6553._0x1e1f7e,-_0xdf6553._0x184a61,-0x3f,0x1d)&&_0x1c80c3[_0x1d8c1c(_0xdf6553._0x37aaac,0x1d0,0x17b,_0xdf6553._0x238310)]?.[_0x16a602(-0x11,-0xc3,0x52,-_0xdf6553._0x17aa4e)]===_0x1d8c1c(_0xdf6553._0xe50d88,0xd6,0x136,0x23f)&&typeof _0x1c80c3[_0x16a602(0x38,_0xdf6553._0x327721,_0xdf6553._0x23c978,_0xdf6553._0x53eeb7)]['media_type']==='string'&&typeof _0x1c80c3[_0x1d8c1c(_0xdf6553._0x37aaac,_0xdf6553._0x4a86e6,_0xdf6553._0x1b254d,0x150)][_0x16a602(_0xdf6553._0x219d88,-0x11,_0xdf6553._0xbe8430,_0xdf6553._0x2cb3a0)]==='string';}function getToolResultText(_0x160d20){const _0x20ed63={_0x207dbb:0x1a7,_0x456e0b:0x2a8,_0x14db68:0x217,_0x5717ee:0x11,_0x34eae4:0x57,_0x56dddb:0x10e,_0x158064:0x250,_0x52db66:0x10a,_0x1d72eb:0x191,_0x5c495b:0xfe},_0x268db0={_0x1db0eb:0x4f8},_0x1db62a={_0xd3195b:0x189},_0x450966={_0x3abd01:0x39,_0x1f67c2:0xe5,_0x1a8bad:0x91,_0x7946ec:0x4a,_0x2ee135:0x84,_0x5b31c5:0xef,_0x1893cd:0x87},_0x5bc808={_0x4895ba:0x126,_0x338f68:0xa6};if(typeof _0x160d20===_0x2c32b5(-0x5a,-0xf4,-0x8d,-0x181))return _0x160d20;const _0x226d58=_0x160d20[_0x2c32b5(-0x1f1,-_0x20ed63._0x207dbb,-0xf4,-0x1b5)](_0x45a894=>{const _0x25189c={_0x16178d:0xee,_0x31c47c:0x27b};function _0x5341be(_0x559306,_0x28c300,_0xac7e6c,_0x2ffcbf){return _0x48b58c(_0xac7e6c,_0x28c300-_0x25189c._0x16178d,_0xac7e6c-0xf8,_0x28c300-_0x25189c._0x31c47c);}function _0x461ea9(_0x29e883,_0x47b783,_0x24bc1f,_0x1eaf50){return _0x2c32b5(_0x29e883-0x114,_0x24bc1f-_0x5bc808._0x4895ba,_0x29e883,_0x1eaf50-_0x5bc808._0x338f68);}return typeof _0x45a894===_0x5341be(_0x450966._0x3abd01,0x57,-_0x450966._0x3abd01,_0x450966._0x1f67c2)&&_0x45a894!==null&&_0x45a894[_0x5341be(_0x450966._0x1a8bad,_0x450966._0x7946ec,-_0x450966._0x2ee135,_0x450966._0x5b31c5)]===_0x5341be(_0x450966._0x1893cd,0x4c,-0xb,0x56);})[_0x2c32b5(-_0x20ed63._0x456e0b,-_0x20ed63._0x14db68,-0x159,-0x24f)](_0xdde463=>_0xdde463[_0x2c32b5(-0x246,-0x213,-0x257,-0x182)])[_0x2c32b5(-0xf0,-0x85,-_0x20ed63._0x5717ee,_0x20ed63._0x34eae4)]('\x0a\x0a')['trim']();function _0x2c32b5(_0xc8da0f,_0x104fa3,_0x5c8ed7,_0x53f363){return _0x551389(_0xc8da0f-0x1,_0x104fa3- -0x4dc,_0x5c8ed7,_0x53f363-_0x1db62a._0xd3195b);}function _0x48b58c(_0x30d83a,_0x37d93d,_0x45c200,_0x480bf1){return _0x551389(_0x30d83a-0x1b8,_0x480bf1- -_0x268db0._0x1db0eb,_0x30d83a,_0x480bf1-0x72);}return _0x226d58[_0x48b58c(-_0x20ed63._0x56dddb,-0x1c5,-_0x20ed63._0x158064,-0x186)]>0x0?_0x226d58:_0x48b58c(-_0x20ed63._0x52db66,-0x1bf,-_0x20ed63._0x1d72eb,-_0x20ed63._0x5c495b);}function getToolResultImages(_0x47a88d){const _0x36adee={_0x2820c5:0x249,_0xfcc00c:0x1d7},_0x35e784={_0x415023:0xc7};function _0x248bdd(_0xd6bb84,_0xfe7681,_0x36d094,_0x308afc){return _0xf0dc29(_0x36d094- -0xd,_0xfe7681-0x1c3,_0xd6bb84,_0x308afc-_0x35e784._0x415023);}return Array['isArray'](_0x47a88d)?_0x47a88d[_0x248bdd(0x24a,0x2bc,_0x36adee._0x2820c5,_0x36adee._0xfcc00c)](isImageToolResultBlock):[];}function parseToolInput2(_0x22a95c){const _0x69cc0a={_0x4f14c3:0x64a,_0x2aab3d:0x50c,_0x27dced:0x5e4},_0x3e7894={_0x7130:0x257,_0x5c0b44:0x11f,_0x3852a7:0x147};if(_0x22a95c['length']===0x0)return{};function _0x1d4ad4(_0xe3d013,_0x2e275a,_0xc3ae44,_0x2ee6d8){return _0xf0dc29(_0xc3ae44-_0x3e7894._0x7130,_0x2e275a-_0x3e7894._0x5c0b44,_0x2ee6d8,_0x2ee6d8-_0x3e7894._0x3852a7);}try{return JSON[_0x1d4ad4(_0x69cc0a._0x4f14c3,_0x69cc0a._0x2aab3d,_0x69cc0a._0x27dced,0x5af)](_0x22a95c);}catch{return _0x22a95c;}}function isResponsesReasoningItem(_0x283b1a){const _0x2c5c53={_0x403fbc:0x9b,_0x5b59f8:0xce,_0x3a987e:0x26,_0x24775f:0x19c,_0x13546c:0x94,_0x4c0ae4:0x141},_0x5ace71={_0x2db68e:0x8},_0x25a2a7={_0x4f6c72:0x164,_0x26ecc6:0x19f};function _0x3aec26(_0x8f0caf,_0x31ecb4,_0x1fd423,_0x532130){return _0xf0dc29(_0x8f0caf- -0x15a,_0x31ecb4-_0x25a2a7._0x4f6c72,_0x532130,_0x532130-_0x25a2a7._0x26ecc6);}function _0x2b161f(_0x303be3,_0x32f788,_0x4259f6,_0x5d41a8){return _0x551389(_0x303be3-0x40,_0x303be3- -0x39c,_0x5d41a8,_0x5d41a8-_0x5ace71._0x2db68e);}return typeof _0x283b1a===_0x3aec26(_0x2c5c53._0x403fbc,_0x2c5c53._0x5b59f8,0x3f,0x11b)&&_0x283b1a!==null&&'type'in _0x283b1a&&_0x283b1a[_0x2b161f(-0xd5,-_0x2c5c53._0x3a987e,-0x153,-_0x2c5c53._0x24775f)]===_0x3aec26(_0x2c5c53._0x13546c,0x165,0xd4,_0x2c5c53._0x4c0ae4);}function isResponsesMessageItem(_0x17c472){const _0x32c441={_0x32f082:0x279,_0x2db7f4:0x2e5,_0x35d0d2:0x2b4,_0x435568:0x36f,_0x37e604:0x451,_0x3dc1f6:0x42f},_0x2b3ae1={_0x24db23:0x37},_0x2e012d={_0x21be85:0x187,_0x384998:0x8a,_0x1c8d47:0xe1};function _0xbae77d(_0x34dad2,_0x168223,_0xef7f8,_0x482e75){return _0xf0dc29(_0x168223-_0x2e012d._0x21be85,_0x168223-_0x2e012d._0x384998,_0xef7f8,_0x482e75-_0x2e012d._0x1c8d47);}function _0x446812(_0x2d163f,_0x45f4d4,_0xec6975,_0x2a19f5){return _0xf0dc29(_0x2d163f- -0x46e,_0x45f4d4-_0x2b3ae1._0x24db23,_0x45f4d4,_0x2a19f5-0x195);}return typeof _0x17c472===_0x446812(-_0x32c441._0x32f082,-0x326,-_0x32c441._0x2db7f4,-0x24e)&&_0x17c472!==null&&_0xbae77d(_0x32c441._0x35d0d2,_0x32c441._0x435568,_0x32c441._0x37e604,_0x32c441._0x3dc1f6)in _0x17c472&&_0x17c472['type']==='message';}function isResponsesFunctionCallItem(_0x19b293){const _0x20d7f8={_0x433d4a:0x31,_0x2ad63a:0x22,_0x1b277d:0x2e},_0x4fa4a8={_0x3ba82b:0x25e},_0x42bd10={_0x580c7e:0x1c4};function _0x581f38(_0x154483,_0x59973c,_0x36f920,_0x49e68d){return _0xf0dc29(_0x59973c- -_0x42bd10._0x580c7e,_0x59973c-0x8f,_0x36f920,_0x49e68d-0x99);}function _0x4da463(_0x14e378,_0x3251ad,_0x4c796c,_0x2650a8){return _0xf0dc29(_0x4c796c- -_0x4fa4a8._0x3ba82b,_0x3251ad-0x30,_0x2650a8,_0x2650a8-0x11b);}return typeof _0x19b293===_0x581f38(-0xae,_0x20d7f8._0x433d4a,0xfe,0x11a)&&_0x19b293!==null&&_0x581f38(0x24,0x24,-_0x20d7f8._0x2ad63a,-_0x20d7f8._0x1b277d)in _0x19b293&&_0x19b293['type']==='function_call';}function createContentBlocks(_0x4aa60e,_0x5089f8,_0x3957c1){const _0x2067a4={_0x436bcd:0x402,_0x3e4001:0x42a,_0x1e84c2:0x4be,_0x1d5549:0x3ce,_0x450ecc:0x2f1,_0x2b1d65:0x4a8,_0x5f0c12:0x3d7,_0x330807:0x4b9,_0x39f239:0x4b1,_0x5e8bcc:0x381,_0x5bf6cf:0x391,_0x27e4f7:0x514,_0x1f0fe7:0x52e,_0x14053a:0x499,_0x335d1e:0x2d7,_0x3d7502:0x407,_0x5ca29d:0x447,_0x587c71:0x46c,_0x15629d:0x4bf,_0x2143e1:0x46f,_0xcb0e9:0x3ee,_0x35155f:0x443,_0x2f59d9:0x33d,_0x43c22b:0x43a,_0x22a413:0x38f,_0x9fc5e0:0x325,_0x32c299:0x2a9,_0xca3b17:0x396},_0x2cf1cd={_0x9d950b:0x46,_0x5a3c42:0xe9};function _0x214533(_0x1ee6cd,_0x4e51ec,_0xdcb20d,_0x131edb){return _0x551389(_0x1ee6cd-0xcb,_0x4e51ec-0xb8,_0x131edb,_0x131edb-0x10b);}const _0x10f5e8=[];_0x3957c1&&_0x3957c1[_0x214533(_0x2067a4._0x436bcd,_0x2067a4._0x3e4001,0x501,_0x2067a4._0x1e84c2)]>0x0&&_0x10f5e8['push']({'type':_0x4d4611(_0x2067a4._0x1d5549,0x37e,_0x2067a4._0x450ecc,0x3f8),'summary':[],'text':_0x3957c1});function _0x4d4611(_0x5005c2,_0x59f10e,_0x44de07,_0x587d67){return _0xf0dc29(_0x5005c2-0xf5,_0x59f10e-_0x2cf1cd._0x9d950b,_0x587d67,_0x587d67-_0x2cf1cd._0x5a3c42);}_0x4aa60e['length']>0x0&&_0x10f5e8[_0x4d4611(_0x2067a4._0x2b1d65,_0x2067a4._0x5f0c12,_0x2067a4._0x330807,_0x2067a4._0x39f239)]({'type':_0x214533(0x34e,_0x2067a4._0x5e8bcc,_0x2067a4._0x5bf6cf,0x3c5),'text':_0x4aa60e});for(const _0x51fc41 of _0x5089f8){if(_0x51fc41['id'][_0x214533(_0x2067a4._0x27e4f7,0x511,_0x2067a4._0x1f0fe7,_0x2067a4._0x14053a)]()[_0x4d4611(0x388,_0x2067a4._0x335d1e,0x399,_0x2067a4._0x3d7502)]===0x0||_0x51fc41['function'][_0x4d4611(_0x2067a4._0x5ca29d,_0x2067a4._0x587c71,_0x2067a4._0x15629d,0x51f)][_0x4d4611(_0x2067a4._0x2143e1,0x475,0x49a,_0x2067a4._0xcb0e9)]()[_0x214533(_0x2067a4._0x35155f,0x42a,0x4f9,_0x2067a4._0x2f59d9)]===0x0)continue;_0x10f5e8['push']({'type':_0x214533(0x416,0x392,_0x2067a4._0x43c22b,0x3f5),'id':_0x51fc41['id'],'name':_0x51fc41[_0x4d4611(_0x2067a4._0x22a413,_0x2067a4._0x9fc5e0,0x3b8,_0x2067a4._0x32c299)]['name'],'input':parseToolInput2(_0x51fc41['function'][_0x4d4611(0x467,_0x2067a4._0xca3b17,0x467,0x3b5)])});}return _0x10f5e8;}function createUsage(_0x5e8a7a){const _0x3fc7f7={_0x2a4174:0xe9,_0x4fcac0:0x6b,_0x5e8910:0x140,_0x137c17:0xcc,_0x7a32a5:0x17d,_0x483f46:0xd7,_0x29bb25:0x10a,_0x1b9e97:0x188,_0x158ece:0xb1,_0x1a29a5:0x11c,_0x58a44b:0x1e,_0x5ba778:0x64,_0x216d21:0x42c,_0x466ed4:0x38f,_0x52beef:0x420,_0x5cbdc2:0x395,_0x5aed37:0x3de,_0x455a6c:0x307},_0x13c279={_0x54c9be:0x3b,_0x22c13d:0x4c8,_0x3a1041:0x44},_0x1cead2={_0xbdec4f:0xcf,_0x249d74:0xb2};function _0x1ad7f2(_0xf36d5a,_0xcd38c8,_0x560065,_0x339ffd){return _0x551389(_0xf36d5a-0x1ea,_0xcd38c8- -_0x1cead2._0xbdec4f,_0x339ffd,_0x339ffd-_0x1cead2._0x249d74);}function _0x2c324d(_0x4ddfe5,_0x49ee12,_0x2296af,_0x3107fb){return _0x551389(_0x4ddfe5-_0x13c279._0x54c9be,_0x3107fb- -_0x13c279._0x22c13d,_0x4ddfe5,_0x3107fb-_0x13c279._0x3a1041);}return{'inputTokens':_0x5e8a7a?.[_0x2c324d(-_0x3fc7f7._0x2a4174,-_0x3fc7f7._0x4fcac0,-_0x3fc7f7._0x5e8910,-_0x3fc7f7._0x137c17)]??0x0,'outputTokens':_0x5e8a7a?.[_0x2c324d(-0x75,-_0x3fc7f7._0x7a32a5,-0xc4,-_0x3fc7f7._0x483f46)]??0x0,..._0x5e8a7a?.[_0x2c324d(-_0x3fc7f7._0x29bb25,-0x198,-_0x3fc7f7._0x1b9e97,-_0x3fc7f7._0x158ece)]?.[_0x2c324d(0x2e,-_0x3fc7f7._0x1a29a5,_0x3fc7f7._0x58a44b,-_0x3fc7f7._0x5ba778)]!==void 0x0?{'reasoningTokens':_0x5e8a7a[_0x1ad7f2(_0x3fc7f7._0x216d21,0x348,_0x3fc7f7._0x466ed4,0x38d)][_0x1ad7f2(_0x3fc7f7._0x52beef,_0x3fc7f7._0x5cbdc2,_0x3fc7f7._0x5aed37,_0x3fc7f7._0x455a6c)]}:{}};}function resolveReasoningVisibility2(_0x4164dc){const _0x49af3e={_0x3ae58e:0x280,_0x16d129:0x302,_0x3d9269:0x343,_0x44fb09:0x254,_0x40db25:0x313,_0x31f4c3:0x31c,_0xb91d16:0x451,_0xda68e5:0x44f},_0x43c87b={_0x430215:0x35,_0x4df1ed:0x76},_0x5bc406={_0x473656:0x8b,_0xc0b15:0x15a,_0x201262:0x169};function _0x5404d1(_0x77012d,_0x2e5537,_0xd9d56f,_0x239a7a){return _0x551389(_0x77012d-_0x5bc406._0x473656,_0x2e5537- -_0x5bc406._0xc0b15,_0x77012d,_0x239a7a-_0x5bc406._0x201262);}function _0x694836(_0x7d0afe,_0x3b5cb4,_0x26f609,_0x4b0d30){return _0x551389(_0x7d0afe-_0x43c87b._0x430215,_0x4b0d30-_0x43c87b._0x4df1ed,_0x3b5cb4,_0x4b0d30-0x1e4);}return _0x4164dc[_0x694836(0x294,_0x49af3e._0x3ae58e,_0x49af3e._0x16d129,_0x49af3e._0x3d9269)]?.[_0x5404d1(_0x49af3e._0x44fb09,_0x49af3e._0x40db25,_0x49af3e._0x31f4c3,0x2e1)]??_0x694836(0x3ee,0x4b9,_0x49af3e._0xb91d16,_0x49af3e._0xda68e5);}function isUserVisibleReasoning(_0x224a94){const _0x87b06={_0x173f6c:0x15a,_0x218989:0xf4,_0x19ca7a:0x99,_0x18d2b8:0x17},_0x161c63={_0x39727f:0x3a3,_0x32adf4:0x170};function _0x23f664(_0x3246af,_0x1b8639,_0x31ac45,_0x504427){return _0x551389(_0x3246af-0x1dc,_0x504427- -0x3c2,_0x3246af,_0x504427-0x1e2);}function _0x17cc99(_0x3c4a42,_0x3ef9f9,_0x3884bc,_0x5f0dc5){return _0x551389(_0x3c4a42-0xd1,_0x3884bc- -_0x161c63._0x39727f,_0x3c4a42,_0x5f0dc5-_0x161c63._0x32adf4);}return resolveOpenAiReasoningConfig(_0x224a94[_0x23f664(-0x8e,-0x40,-_0x87b06._0x173f6c,-0xf5)])!==void 0x0&&resolveReasoningVisibility2(_0x224a94)===_0x23f664(_0x87b06._0x218989,-0xc6,-_0x87b06._0x19ca7a,_0x87b06._0x18d2b8);}function createChatRequestBody(_0x33f02,_0x54a3d6){const _0x5d8388={_0x4cb810:0x2a,_0x4f1689:0x6e,_0x57c4cb:0x3,_0x38034c:0xc0,_0x445525:0x1bc,_0x516b1b:0x137,_0x5e1abe:0x232,_0x5367a2:0x163,_0xe1dbec:0x1e,_0x375b2d:0x8,_0x4705cd:0x91,_0x50fac5:0x1d,_0x2e1e2d:0x124,_0x17f1f4:0x18a,_0x1f09c3:0x1ec,_0x1bb984:0x7b,_0x36e6d9:0x138,_0x25ade0:0x224,_0x176188:0x3a9,_0x2b7a5f:0x3ff,_0x824f34:0x3c9,_0x5cfeb0:0x49,_0x15fc39:0x1e9,_0x2de7e6:0x419,_0x2973d7:0x349,_0x2bc809:0x348,_0x332a0f:0x431,_0x2ecc3e:0x2ff,_0x33cf20:0x24b,_0x51eb72:0x248,_0x201c73:0x390,_0x51de8c:0x234,_0x12c1e6:0x319,_0x465bf7:0x2dd,_0xda79cd:0xeb,_0x206961:0x52,_0x351f98:0x3ef,_0x5cc8ba:0x42a,_0x254776:0x49,_0x52e195:0x63,_0xa98a54:0x39,_0x6e938f:0x1bf,_0x1262bc:0x1e5,_0xec8235:0x3ad,_0x2cf065:0x3ff,_0x30095c:0x40f,_0x6f7c24:0x36,_0x2e7f11:0x30,_0x38ad3f:0x3f2,_0x41e34c:0x40a,_0x3c5dac:0x32f,_0x3759ae:0x2df,_0x1020bc:0x34c,_0x3fd776:0xad,_0x293586:0x95,_0x405c2e:0x161,_0x471d95:0x23,_0x22ec11:0x122,_0x4782c7:0x11c,_0x441b53:0x4f,_0x277417:0x58,_0xd13b69:0x45,_0x2db20d:0x2b,_0x355aae:0x67,_0x10f0e4:0x131,_0x293f29:0x29e,_0x2fd80a:0x1b3,_0x3d26df:0x29e,_0x183e0f:0xbe,_0x3f61f5:0x37d,_0x418c3f:0x39e,_0x3fa070:0x406,_0x1e9c66:0x40,_0xff4f33:0x8e,_0x37a915:0x3a,_0x1649ae:0x3d6},_0x32f4f9={_0x57429a:0x150,_0x3b0ed7:0x1cf,_0x2854fa:0x19e,_0xec9326:0x2ae,_0x40eac5:0x1d2,_0x487ff8:0x2ba,_0x41e580:0x288,_0x51f9ae:0x3,_0x3fb410:0xda,_0x264247:0x299,_0x4f3aaa:0x2bb,_0xeda37c:0x2c5,_0xedcaf5:0x201,_0xf34bc1:0x164,_0x5d975c:0x115,_0x2113f9:0x14b,_0x577c3c:0x104,_0x3475c6:0x207,_0x43538c:0x1fa,_0x1ee337:0x161,_0x1c5082:0x1df,_0x5d7ed7:0x6f,_0x112c7e:0xa0,_0x428bd9:0x9f,_0x54223b:0x28,_0x78c4a:0x1ca,_0x3230b4:0x1a8,_0x505da6:0x298,_0x5e0a68:0x168,_0x52ab2e:0xed,_0x3c9686:0x173,_0x1d6dcf:0x4d,_0x1871fe:0xb2},_0x455dce={_0xb3a0ee:0x1d7,_0x9d26f9:0x197},_0x1e5b62={_0x1a69d3:0x4c},_0x2592c4={_0x1db5ed:0x13e,_0x22f1d4:0x2};function _0x6d2ad8(_0x14e56a,_0x1327e1,_0x4d5aae,_0x286afc){return _0x551389(_0x14e56a-_0x2592c4._0x1db5ed,_0x4d5aae- -0x35a,_0x1327e1,_0x286afc-_0x2592c4._0x22f1d4);}const _0x279ecc=[],_0x3e9d99=stringifySystem(_0x33f02['system']);_0x3e9d99[_0x6d2ad8(_0x5d8388._0x4cb810,0xda,0x18,-_0x5d8388._0x4f1689)]>0x0&&_0x279ecc['push']({'role':_0x6d2ad8(-_0x5d8388._0x57c4cb,0x5b,-0x17,0x57),'content':_0x3e9d99});function _0x47f1f1(_0x5d570b,_0x3ce70c,_0x54db9c,_0xc43675){return _0xf0dc29(_0x3ce70c-_0x1e5b62._0x1a69d3,_0x3ce70c-0xc3,_0xc43675,_0xc43675-0x18a);}for(const _0xfa344 of _0x33f02[_0x6d2ad8(0x91,0xb2,_0x5d8388._0x38034c,0x13b)]){const _0x29212c=[],_0xa14430=[],_0x21d42a=[],_0x385e28=()=>{function _0x5b3300(_0x45400c,_0x2dd50a,_0x5d610a,_0x29154f){return _0x6d2ad8(_0x45400c-0x17a,_0x2dd50a,_0x5d610a- -_0x455dce._0xb3a0ee,_0x29154f-_0x455dce._0x9d26f9);}if(_0xfa344[_0x9cb127(-0x4b,-0x128,-0x18a,-0x53)]===_0x5b3300(-_0x32f4f9._0x57429a,-_0x32f4f9._0x3b0ed7,-0x184,-_0x32f4f9._0x2854fa)){if(_0x29212c['length']===0x0&&_0xa14430[_0x9cb127(-_0x32f4f9._0xec9326,-_0x32f4f9._0x40eac5,-0x28d,-_0x32f4f9._0x487ff8)]===0x0)return;_0x279ecc[_0x5b3300(-0x8f,-0x170,-0x9f,0x25)]({'role':_0x9cb127(-0x143,-0x197,-0x117,-0x198),'content':_0x29212c[_0x9cb127(-_0x32f4f9._0x41e580,-0x1d2,-0x166,-0x2a9)]>0x0?_0x29212c[_0x5b3300(_0x32f4f9._0x51f9ae,-0x83,-_0x32f4f9._0x3fb410,-0x15f)]('\x0a\x0a'):null,..._0xa14430[_0x9cb127(-_0x32f4f9._0x264247,-_0x32f4f9._0x40eac5,-_0x32f4f9._0x4f3aaa,-0x17c)]>0x0?{'tool_calls':_0xa14430[_0x5b3300(-_0x32f4f9._0xeda37c,-_0x32f4f9._0xedcaf5,-0x22d,-_0x32f4f9._0xf34bc1)](0x0)}:{}}),_0x29212c['length']=0x0;return;}if(_0xfa344[_0x5b3300(-0x34,-0x176,-_0x32f4f9._0x5d975c,-0xae)]==='user'){if(_0x21d42a[_0x5b3300(-_0x32f4f9._0x2113f9,-0xf9,-0x1bf,-_0x32f4f9._0x577c3c)]===0x0)return;const _0x1c428d=_0x21d42a[_0x5b3300(-_0x32f4f9._0x3475c6,-_0x32f4f9._0x43538c,-_0x32f4f9._0x1ee337,-_0x32f4f9._0x1c5082)](_0x139f7e=>_0x139f7e[_0x9cb127(-0x332,-0x27d,-0x273,-0x2d3)]==='image_url');_0x279ecc[_0x5b3300(-_0x32f4f9._0x5d7ed7,-_0x32f4f9._0x112c7e,-_0x32f4f9._0x428bd9,-_0x32f4f9._0x54223b)]({'role':_0x9cb127(-0xfd,-0xc6,-0x100,-0xfd),'content':_0x1c428d?_0x21d42a[_0x5b3300(-0x1a1,-0x30b,-0x22d,-0x31c)](0x0):_0x21d42a[_0x5b3300(-_0x32f4f9._0x78c4a,-0x16b,-0x22d,-_0x32f4f9._0x3230b4)](0x0)[_0x5b3300(-_0x32f4f9._0x505da6,-0x133,-0x1fc,-0x29b)](_0x177c1f=>_0x177c1f['type']==='text')[_0x5b3300(-_0x32f4f9._0x3230b4,-0x1b9,-0x26c,-0x17f)](_0x1a4563=>_0x1a4563[_0x9cb127(-0x336,-0x27b,-0x2ac,-0x278)])[_0x9cb127(-_0x32f4f9._0x5e0a68,-_0x32f4f9._0x52ab2e,-0x1bd,-0x41)]('\x0a\x0a')});return;}function _0x9cb127(_0x914f9b,_0x56b10b,_0xf4a37a,_0x15e8fd){return _0x6d2ad8(_0x914f9b-0x43,_0xf4a37a,_0x56b10b- -0x1ea,_0x15e8fd-0x13e);}if(_0x29212c[_0x9cb127(-0x27c,-0x1d2,-_0x32f4f9._0x3c9686,-0x101)]===0x0)return;_0x279ecc[_0x9cb127(-_0x32f4f9._0x1d6dcf,-_0x32f4f9._0x1871fe,-0x186,-0x86)]({'role':_0xfa344['role'],'content':_0x29212c['join']('\x0a\x0a')}),_0x29212c['length']=0x0;};for(const _0x167ec4 of normalizeContent(_0xfa344[_0x6d2ad8(_0x5d8388._0x445525,0xb6,_0x5d8388._0x516b1b,0xfb)])){if(_0x167ec4[_0x47f1f1(_0x5d8388._0x5e1abe,0x234,0x246,_0x5d8388._0x5367a2)]===_0x6d2ad8(_0x5d8388._0xe1dbec,_0x5d8388._0x375b2d,-_0x5d8388._0x4705cd,-0x4a)){_0xfa344[_0x6d2ad8(-_0x5d8388._0x50fac5,0x2f,0xc2,-0x1)]===_0x6d2ad8(0xd0,0x47,_0x5d8388._0x2e1e2d,_0x5d8388._0x17f1f4)?_0x21d42a[_0x6d2ad8(_0x5d8388._0x1f09c3,_0x5d8388._0x1bb984,_0x5d8388._0x36e6d9,0xbc)]({'type':'text','text':_0x167ec4[_0x47f1f1(_0x5d8388._0x25ade0,0x236,0x216,0x152)]}):_0x29212c[_0x47f1f1(_0x5d8388._0x176188,_0x5d8388._0x2b7a5f,0x42b,_0x5d8388._0x824f34)](_0x167ec4[_0x6d2ad8(-0x2a,-0x3b,-_0x5d8388._0x4705cd,_0x5d8388._0x5cfeb0)]);continue;}if(_0xfa344['role']===_0x6d2ad8(0x198,0x98,0x124,_0x5d8388._0x15fc39)&&_0x167ec4['type']===_0x6d2ad8(0xa7,-0x62,-0x11,-0xf5)){_0x21d42a[_0x47f1f1(_0x5d8388._0x2de7e6,_0x5d8388._0x2b7a5f,0x373,0x311)]({'type':_0x47f1f1(0x30c,0x2c0,0x218,_0x5d8388._0x2973d7),'image_url':{'url':'data:'+_0x167ec4[_0x47f1f1(0x26d,_0x5d8388._0x2bc809,_0x5d8388._0x332a0f,0x39e)][_0x47f1f1(0x1ce,0x2af,0x1df,0x2fc)]+_0x47f1f1(_0x5d8388._0x2ecc3e,_0x5d8388._0x33cf20,_0x5d8388._0x51eb72,0x29a)+_0x167ec4[_0x47f1f1(_0x5d8388._0x201c73,0x348,0x32d,0x3eb)]['data']}});continue;}if(_0x167ec4[_0x47f1f1(0x170,_0x5d8388._0x51de8c,_0x5d8388._0x12c1e6,_0x5d8388._0x465bf7)]===_0x6d2ad8(-0x167,-_0x5d8388._0xda79cd,-0x80,-_0x5d8388._0x206961)){_0xa14430[_0x6d2ad8(0xa4,0x147,0x138,0x1c9)]({'id':_0x167ec4['id'],'type':'function','function':{'name':_0x167ec4[_0x47f1f1(_0x5d8388._0x351f98,0x39e,0x363,_0x5d8388._0x5cc8ba)],'arguments':JSON[_0x6d2ad8(0x1e,_0x5d8388._0x254776,_0x5d8388._0x52e195,_0x5d8388._0xa98a54)](_0x167ec4['input']??{})}});continue;}if(_0x167ec4[_0x47f1f1(0x2cd,0x234,_0x5d8388._0x6e938f,_0x5d8388._0x1262bc)]!=='tool_result')continue;_0x385e28(),_0x279ecc[_0x47f1f1(_0x5d8388._0xec8235,_0x5d8388._0x2cf065,_0x5d8388._0x30095c,0x33c)]({'role':_0x6d2ad8(-0x30,0x32,-_0x5d8388._0x6f7c24,-0xdd),'content':getToolResultText(_0x167ec4[_0x6d2ad8(0xbe,0x12a,0x137,0x169)]),'tool_call_id':_0x167ec4[_0x6d2ad8(-0x60,-0xce,-0x4e,_0x5d8388._0x2e7f11)]});const _0x59adf7=getToolResultImages(_0x167ec4[_0x47f1f1(0x447,0x3fe,_0x5d8388._0x38ad3f,_0x5d8388._0x41e34c)]);_0x59adf7[_0x47f1f1(_0x5d8388._0x3c5dac,_0x5d8388._0x3759ae,0x372,_0x5d8388._0x1020bc)]>0x0&&_0x279ecc[_0x6d2ad8(0x125,0xd5,0x138,0x1e5)]({'role':'user','content':[{'type':'text','text':_0x47f1f1(0x3d2,0x3f1,0x3bd,0x31e)+_0x167ec4['tool_use_id']+'.'},..._0x59adf7[_0x6d2ad8(-0x9d,-_0x5d8388._0x3fd776,-_0x5d8388._0x293586,-0x2b)](_0x427f30=>({'type':_0x6d2ad8(0x81,-0x7b,-0x7,-0x6f),'image_url':{'url':_0x47f1f1(0x452,0x405,0x331,0x34f)+_0x427f30[_0x47f1f1(0x28e,0x348,0x40f,0x353)]['media_type']+_0x6d2ad8(-0x127,-0x153,-0x7c,-0x143)+_0x427f30['source']['data']}}))]});}_0x385e28();}const _0x540a3b=resolveOpenAiReasoningConfig(_0x33f02[_0x6d2ad8(-_0x5d8388._0x405c2e,-_0x5d8388._0x4cb810,-0x8d,_0x5d8388._0x471d95)]);return{'model':_0x33f02[_0x6d2ad8(0x1e8,0x11a,_0x5d8388._0x22ec11,_0x5d8388._0x4782c7)],'messages':_0x279ecc,'stream':_0x54a3d6,..._0x540a3b?{'max_completion_tokens':_0x33f02[_0x6d2ad8(-0xfa,-0x10d,-_0x5d8388._0x441b53,-_0x5d8388._0x277417)]}:{'max_tokens':_0x33f02[_0x6d2ad8(-0xae,-_0x5d8388._0xd13b69,-0x4f,-0xda)]},..._0x540a3b?.[_0x6d2ad8(-0x115,-_0x5d8388._0x2db20d,-_0x5d8388._0x355aae,-_0x5d8388._0x10f0e4)]?{'reasoning_effort':_0x540a3b['effort']}:{},...createToolDefinitions(_0x33f02[_0x47f1f1(0x2bd,_0x5d8388._0x293f29,0x36a,_0x5d8388._0x2fd80a)])?{'tools':createToolDefinitions(_0x33f02[_0x47f1f1(0x2b7,_0x5d8388._0x3d26df,0x262,0x292)])}:{},..._0x33f02['outputFormat']?{'response_format':{'type':_0x6d2ad8(_0x5d8388._0x183e0f,-0x7,0x95,0x15a),'json_schema':{'name':_0x33f02['outputFormat'][_0x47f1f1(_0x5d8388._0x3f61f5,_0x5d8388._0x418c3f,_0x5d8388._0x3fa070,0x432)]??_0x6d2ad8(-_0x5d8388._0x1e9c66,-0x2e,-_0x5d8388._0xff4f33,-_0x5d8388._0x37a915),'schema':_0x33f02[_0x47f1f1(0x1ff,0x2aa,0x29b,0x381)]['schema'],'strict':_0x33f02['outputFormat'][_0x47f1f1(0x464,_0x5d8388._0x1649ae,0x3f6,0x432)]??!![]}}}:{}};}function createResponsesRequestBody(_0x44cfbc,_0x51f316){return{...toOpenAiResponsesRequest(_0x44cfbc),..._0x51f316?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3f78ae,_0x1a1278={}){const _0x1a7d05={_0x43d1dd:0x206,_0x456445:0x1dd,_0x351fca:0x5e7,_0x2c78a6:0x61b,_0x176f9d:0x509,_0x380812:0x523},_0xba6c8b={_0x10a0ac:0x1d4},_0x1d8894=toOpenAiResponsesRequest(_0x3f78ae);function _0x26ebed(_0x2852f6,_0x1d647d,_0x579629,_0x4aaa62){return _0xf0dc29(_0x1d647d- -0xb0,_0x1d647d-0x18,_0x4aaa62,_0x4aaa62-_0xba6c8b._0x10a0ac);}function _0x225253(_0x1dca3d,_0x59fb2f,_0x3e4a48,_0x25ff6d){return _0x551389(_0x1dca3d-0x95,_0x1dca3d-0x168,_0x3e4a48,_0x25ff6d-0xb8);}return{'type':_0x26ebed(0x1bf,_0x1a7d05._0x43d1dd,0x186,_0x1a7d05._0x456445),..._0x1d8894,..._0x1a1278[_0x225253(_0x1a7d05._0x351fca,0x517,_0x1a7d05._0x2c78a6,_0x1a7d05._0x176f9d)]?{'input':_0x1a1278['input']}:{},..._0x1a1278[_0x225253(_0x1a7d05._0x380812,0x49e,0x572,0x449)]?{'previous_response_id':_0x1a1278['previousResponseId']}:{},'store':![]};}function normalizeAssistantContent(_0x18e737){const _0x437f02={_0x441534:0x5e7,_0x9f5fc8:0x517,_0x57b650:0x669,_0x1b313d:0x62e,_0x1ae194:0x72f,_0xf5c809:0x4fd,_0x4d6689:0x4c4,_0x426b50:0x490,_0x217486:0x598,_0x265624:0xef},_0x249958={_0x2e934f:0x41c,_0xe2f1c4:0x563,_0x529e08:0x4ce,_0x50671a:0x2ca,_0x822ee4:0x39e,_0x225437:0x4d2,_0x24ca0d:0x5c3},_0x336468={_0x4481f1:0x14d,_0x488d04:0x11a},_0x2acade={_0x19e90c:0xaa,_0x2ea1e4:0x1ea},_0xdb2236={_0x12cdb1:0x228,_0x4e582a:0x6d,_0x75a358:0x8c};if(typeof _0x18e737===_0x5a4966(0x63f,_0x437f02._0x441534,_0x437f02._0x9f5fc8,0x535))return _0x18e737;if(!Array[_0x5a4966(_0x437f02._0x57b650,0x67c,_0x437f02._0x1b313d,_0x437f02._0x1ae194)](_0x18e737))return'';function _0xa15054(_0x46710e,_0x10c460,_0x38d36d,_0x32f9ee){return _0xf0dc29(_0x46710e- -_0xdb2236._0x12cdb1,_0x10c460-_0xdb2236._0x4e582a,_0x32f9ee,_0x32f9ee-_0xdb2236._0x75a358);}function _0x5a4966(_0x4cb4e5,_0x37a774,_0x54d82d,_0x175518){return _0xf0dc29(_0x37a774-0x2de,_0x37a774-_0x2acade._0x19e90c,_0x4cb4e5,_0x175518-_0x2acade._0x2ea1e4);}return _0x18e737[_0x5a4966(_0x437f02._0xf5c809,_0x437f02._0x4d6689,_0x437f02._0x426b50,_0x437f02._0x217486)](_0x268105=>{function _0x5a84c0(_0x4911e4,_0xd4c2d8,_0x1cc19d,_0x580f66){return _0xa15054(_0x580f66-0x50e,_0xd4c2d8-0xe1,_0x1cc19d-0x1cf,_0x1cc19d);}function _0x5d4ba4(_0x441ca9,_0x15e15c,_0x237965,_0x15d5c5){return _0x5a4966(_0x15e15c,_0x441ca9- -0x1fe,_0x237965-_0x336468._0x4481f1,_0x15d5c5-_0x336468._0x488d04);}return _0x268105[_0x5a84c0(_0x249958._0x2e934f,_0x249958._0xe2f1c4,0x557,_0x249958._0x529e08)]==='text'?_0x268105[_0x5d4ba4(_0x249958._0x50671a,_0x249958._0x822ee4,0x2bf,0x368)]:_0x268105[_0x5a84c0(_0x249958._0x225437,0x43f,_0x249958._0x24ca0d,0x52f)];})[_0xa15054(0x150,_0x437f02._0x265624,0x103,0xf0)]('');}function normalizeResponsesMessageContent(_0x304d6b){const _0x16a067={_0x1b5c48:0x45a,_0x46fd28:0x43b,_0x269c2b:0x138},_0x2eb977={_0x3a3c98:0x15a,_0x5d31dc:0xb2,_0x48d798:0x184,_0x5c6c18:0x28e,_0x1ac3ab:0x2ed,_0x31d539:0xca,_0x1c8b6a:0x22c,_0x1f5dd2:0x271,_0x568fc6:0x258,_0x4f3f27:0x2c6,_0x9f5166:0x144,_0x59d448:0x1f9,_0x42f5d9:0x1a1,_0x3be037:0x132,_0x3f3ba4:0x29b,_0x55fe45:0x23b},_0x37e5ca={_0x3ec671:0x551,_0x59a9a5:0x16c,_0x4da9ab:0x46},_0x56c042={_0x3d4b87:0x337},_0x3d97b9={_0x3349dc:0x101,_0x8a68fb:0x30,_0x36ba81:0x146};function _0x414cf7(_0xcbd591,_0x1f831b,_0x55f8a4,_0x416b7d){return _0x551389(_0xcbd591-_0x3d97b9._0x3349dc,_0xcbd591-_0x3d97b9._0x8a68fb,_0x416b7d,_0x416b7d-_0x3d97b9._0x36ba81);}function _0x1d7f05(_0x18d13b,_0x291788,_0xc9706e,_0x4997ca){return _0x551389(_0x18d13b-0x113,_0x4997ca- -_0x56c042._0x3d4b87,_0x18d13b,_0x4997ca-0x86);}if(!Array[_0x414cf7(0x4ad,0x3fe,_0x16a067._0x1b5c48,_0x16a067._0x46fd28)](_0x304d6b))return'';return _0x304d6b['map'](_0x59f585=>{const _0x205f50={_0x58f0a0:0x587};function _0x3c1ecd(_0x1edf34,_0x27d807,_0x3cc6bc,_0x2a1d47){return _0x414cf7(_0x3cc6bc- -_0x37e5ca._0x3ec671,_0x27d807-_0x37e5ca._0x59a9a5,_0x3cc6bc-_0x37e5ca._0x4da9ab,_0x27d807);}if(!_0x59f585||typeof _0x59f585!=='object')return'';function _0x140cf5(_0x10ae5d,_0x2871c4,_0xeeeee0,_0x2a68b1){return _0x414cf7(_0x2871c4- -_0x205f50._0x58f0a0,_0x2871c4-0x91,_0xeeeee0-0x15a,_0xeeeee0);}const _0x49fc2f=_0x59f585;if(_0x49fc2f['type']===_0x3c1ecd(-_0x2eb977._0x3a3c98,-_0x2eb977._0x5d31dc,-_0x2eb977._0x48d798,-0x23a)&&typeof _0x49fc2f[_0x140cf5(-0x34d,-_0x2eb977._0x5c6c18,-_0x2eb977._0x1ac3ab,-0x2c1)]===_0x3c1ecd(-_0x2eb977._0x31d539,-0x19d,-0x139,-0xce))return _0x49fc2f[_0x3c1ecd(-_0x2eb977._0x1c8b6a,-_0x2eb977._0x1f5dd2,-_0x2eb977._0x568fc6,-0x337)];if(_0x49fc2f['type']===_0x3c1ecd(-_0x2eb977._0x4f3f27,-_0x2eb977._0x9f5166,-_0x2eb977._0x59d448,-_0x2eb977._0x42f5d9)&&typeof _0x49fc2f['refusal']===_0x140cf5(-_0x2eb977._0x3be037,-0x16f,-0x237,-0x8a))return _0x49fc2f[_0x140cf5(-0x1c2,-0x22f,-_0x2eb977._0x3f3ba4,-_0x2eb977._0x55fe45)];return'';})[_0x1d7f05(0xa3,_0x16a067._0x269c2b,0x37,0x120)]('');}function extractOpenAiReasoningText(_0x1d7e09){const _0x135aca={_0x388a32:0x3bd,_0x2973b6:0x378,_0xbfacdb:0x4b3,_0x2071a2:0x486,_0x3b4944:0x458,_0xe859c5:0x38e,_0x411ae5:0x262,_0x2620bc:0x31f,_0x556c9d:0x1cc,_0x5cec6e:0xff,_0x1f918c:0x1c4,_0x318e12:0x2fc},_0xc51346={_0x54d451:0x122},_0x4e7fbc={_0x52806c:0x1c6,_0x58e823:0xca};if(typeof _0x1d7e09['text']==='string')return _0x1d7e09['text'];function _0x1aa6b7(_0x32c6fc,_0x5796d2,_0x562a1a,_0x2792ab){return _0x551389(_0x32c6fc-0xc5,_0x562a1a- -_0x4e7fbc._0x52806c,_0x32c6fc,_0x2792ab-_0x4e7fbc._0x58e823);}if(!Array[_0x2080e7(0x2e2,_0x135aca._0x388a32,_0x135aca._0x2973b6,0x442)](_0x1d7e09[_0x2080e7(_0x135aca._0xbfacdb,0x3d1,_0x135aca._0x2071a2,_0x135aca._0x3b4944)]))return'';function _0x2080e7(_0x15fcf5,_0x40751f,_0x474190,_0x223dcf){return _0x551389(_0x15fcf5-_0xc51346._0x54d451,_0x40751f- -0xc0,_0x223dcf,_0x223dcf-0x8b);}return _0x1d7e09[_0x1aa6b7(_0x135aca._0xe859c5,_0x135aca._0x411ae5,0x2cb,_0x135aca._0x2620bc)][_0x2080e7(0x260,0x275,_0x135aca._0x556c9d,0x199)](_0x501c0d=>_0x501c0d[_0x1aa6b7(0x49,0x1ca,0x101,0x17b)]==='reasoning_text'&&typeof _0x501c0d[_0x1aa6b7(0x1a3,0x16a,0x103,0x21)]===_0x1aa6b7(0x243,0x1fc,0x222,0x2cf))[_0x1aa6b7(0x80,0x3d,_0x135aca._0x5cec6e,_0x135aca._0x1f918c)](_0x2bf2e0=>_0x2bf2e0[_0x2080e7(0x22e,0x209,0x1a2,0x159)]??'')[_0x2080e7(_0x135aca._0x318e12,0x397,0x394,0x459)]('');}function createOpenAiReasoningBlock(_0x25dda8){const _0x1121c1={_0x5b38d8:0x8,_0x3b9807:0xbc,_0x5372ac:0x5d,_0x2a8d7d:0x6a,_0x559bdd:0x39,_0xbb5186:0xfa},_0x9af883={_0x3b82ca:0x1ee},_0x16e76c={_0x5173ac:0x2c5};function _0x7c6efa(_0x3aee4d,_0x56f267,_0x3bb8a8,_0x178786){return _0xf0dc29(_0x56f267- -_0x16e76c._0x5173ac,_0x56f267-0x190,_0x3aee4d,_0x178786-0x14c);}const _0x2d11ee=extractOpenAiReasoningText(_0x25dda8);function _0x263178(_0xe3ca52,_0x416127,_0x3dc6fb,_0x5c1dce){return _0x551389(_0xe3ca52-_0x9af883._0x3b82ca,_0x416127- -0x30a,_0x3dc6fb,_0x5c1dce-0xb5);}return{'type':'openai_reasoning','summary':structuredClone(_0x25dda8['summary']??[]),..._0x25dda8['id']?{'id':_0x25dda8['id']}:{},..._0x25dda8[_0x263178(-_0x1121c1._0x5b38d8,0x15,0xaf,-0x59)]?{'encryptedContent':_0x25dda8[_0x263178(-_0x1121c1._0x3b9807,0x15,-_0x1121c1._0x5372ac,_0x1121c1._0x2a8d7d)]}:{},..._0x2d11ee[_0x263178(-_0x1121c1._0x559bdd,0x68,_0x1121c1._0xbb5186,0x131)]>0x0?{'text':_0x2d11ee}:{}};}function hasVisibleOpenAiReasoning(_0x14b854){const _0x3474c7={_0x4cddac:0x4ac,_0xe8f77d:0x410,_0x3bba96:0x45a,_0x1f8c29:0x27b,_0x825570:0x55e,_0x37f195:0x42c},_0x5af576={_0x212e9a:0xf4,_0x2de714:0x1d7},_0x3df2fb={_0x58b87d:0x1ea};function _0x23a435(_0x57e9a7,_0x560543,_0x4790fc,_0x56d011){return _0x551389(_0x57e9a7-_0x3df2fb._0x58b87d,_0x560543-0x9e,_0x56d011,_0x56d011-0x102);}function _0x4171fd(_0x51e727,_0x690a13,_0x265329,_0x2b5690){return _0x551389(_0x51e727-_0x5af576._0x212e9a,_0x690a13- -_0x5af576._0x2de714,_0x265329,_0x2b5690-0xe1);}return _0x14b854['summary'][_0x23a435(_0x3474c7._0x4cddac,_0x3474c7._0xe8f77d,0x4e4,_0x3474c7._0x3bba96)]>0x0||typeof _0x14b854[_0x23a435(0x424,0x367,_0x3474c7._0x1f8c29,0x448)]===_0x23a435(0x565,0x486,_0x3474c7._0x825570,_0x3474c7._0x37f195);}function parseChatCompletionResponse(_0x224276){const _0x37a149={_0x29ec01:0x41c,_0x3361e4:0x333,_0x57d63a:0x2d6,_0x399796:0x42c,_0x4ebdf1:0x571,_0x5257ef:0x4a0,_0x2c7756:0x2d1,_0x5e9530:0x2c4,_0x1335d6:0x3ad,_0x42aace:0x3e1,_0xbf7fd2:0x285,_0xa8258c:0x2e1,_0x4bf45c:0x319,_0xe5980b:0x299,_0x1f1c93:0x232,_0x5e8ed0:0x27d,_0x101ccf:0x1ab,_0x43cd83:0x20f,_0x342525:0x1f6,_0x88c5b7:0x5dc,_0x3367f4:0x504,_0x2191db:0x5e2,_0x2fb4a7:0x535,_0x4b790c:0x423,_0x63313c:0x44f},_0x1a1e86={_0x170792:0x2e},_0x1bea91={_0x58ef97:0x7e,_0x7e691c:0x11b},_0x46ca1a=[],_0x4944d7=[];let _0x3b7bfc='end_turn';for(const _0x4b9364 of _0x224276['choices']??[]){const _0x462577=_0x4b9364[_0x2832c4(0x36b,_0x37a149._0x29ec01,_0x37a149._0x3361e4,_0x37a149._0x57d63a)],_0x59bd36=normalizeAssistantContent(_0x462577?.['content']);_0x59bd36[_0x3ad3d2(_0x37a149._0x399796,_0x37a149._0x4ebdf1,_0x37a149._0x5257ef,0x4fe)]>0x0&&_0x46ca1a['push'](_0x59bd36),_0x462577?.[_0x2832c4(_0x37a149._0x2c7756,0x396,0x2e1,_0x37a149._0x5e9530)]&&_0x4944d7[_0x2832c4(_0x37a149._0x1335d6,_0x37a149._0x42aace,0x363,0x2cc)](..._0x462577[_0x2832c4(_0x37a149._0xbf7fd2,0x325,_0x37a149._0xa8258c,_0x37a149._0x4bf45c)]),_0x4b9364[_0x2832c4(0x167,_0x37a149._0xe5980b,_0x37a149._0x1f1c93,0x291)]==='tool_calls'&&(_0x3b7bfc=_0x2832c4(0x250,_0x37a149._0x5e8ed0,_0x37a149._0x101ccf,_0x37a149._0x43cd83));}_0x4944d7['length']>0x0&&(_0x3b7bfc=_0x3ad3d2(0x41c,0x4d0,0x44c,0x466));function _0x2832c4(_0x11f5ce,_0x2bb90c,_0x270899,_0x52b530){return _0xf0dc29(_0x270899- -0x50,_0x2bb90c-_0x1bea91._0x58ef97,_0x11f5ce,_0x52b530-_0x1bea91._0x7e691c);}function _0x3ad3d2(_0x133391,_0x3278d7,_0x1d6175,_0xc18350){return _0xf0dc29(_0xc18350-0x26b,_0x3278d7-0x191,_0x133391,_0xc18350-_0x1a1e86._0x170792);}return{'id':_0x224276['id']??_0x2832c4(_0x37a149._0x342525,0x250,0x283,0x1df)+Date[_0x3ad3d2(_0x37a149._0x88c5b7,0x60a,_0x37a149._0x3367f4,_0x37a149._0x2191db)](),'content':createContentBlocks(_0x46ca1a['join'](''),_0x4944d7),'stopReason':_0x3b7bfc,'usage':createUsage(_0x224276[_0x3ad3d2(_0x37a149._0x2fb4a7,_0x37a149._0x4b790c,0x44e,_0x37a149._0x63313c)])};}function parseResponsesResponse(_0x2faf77,_0x557a95){const _0x3a6ea3={_0x3244da:0x481,_0x9bffad:0x49b,_0x5b51a7:0x3df,_0x1c0ce3:0x480,_0x45cf3c:0x487,_0x28e2a4:0xc4,_0xdff957:0xb9,_0x211b49:0x291,_0x121187:0x2b8,_0x3b9568:0xcd,_0x564637:0x338,_0x5b0099:0x361,_0x57ad51:0x36,_0x38b859:0x21,_0x3e45e4:0x9,_0x2b3624:0x105,_0x301b50:0x420,_0x292c32:0x3f0,_0x2fc4bc:0x123,_0x268927:0x2c,_0x599aa7:0xe4,_0xf9d5d:0x60,_0x12e241:0x56c,_0x435519:0x46d,_0x15698f:0x43c,_0x273d20:0x29e,_0x2c65d6:0x29d,_0x2227b1:0x2c9,_0x2a4baa:0x38d,_0x3de44b:0x72,_0x5a05d6:0xe,_0x51085e:0x63,_0x2e11e5:0x137,_0x5c2e64:0xf4,_0x2a949e:0x3c8,_0x3ad75a:0x3b4,_0x3b33db:0x44,_0x1d7669:0x4,_0x4993a6:0x4e,_0x1c24a3:0x6c,_0x11f73c:0x2,_0x1995c1:0x41,_0x35299d:0x1f,_0x31bf07:0x292,_0x2b0800:0x1e8,_0x2e4e51:0xdf,_0x31f4c7:0x3f,_0x4cab11:0x24,_0x23ec0d:0x93,_0x3b9173:0x1df,_0x9a3aac:0x43c,_0x56fb07:0x36d,_0x44f090:0x2fa},_0x57bf45={_0x1286ce:0x148},_0x453209={_0x4c0ab0:0x12f},_0x226f8c=[];for(const _0x193e2a of _0x2faf77['output']??[]){if(isResponsesReasoningItem(_0x193e2a)){if(isUserVisibleReasoning(_0x557a95)){const _0x543bd7=createOpenAiReasoningBlock(_0x193e2a);hasVisibleOpenAiReasoning(_0x543bd7)&&_0x226f8c[_0x561c0a(0x4ba,0x47a,_0x3a6ea3._0x3244da,0x4c9)](_0x543bd7);}continue;}if(isResponsesMessageItem(_0x193e2a)){const _0x5d2593=normalizeResponsesMessageContent(_0x193e2a[_0x561c0a(_0x3a6ea3._0x9bffad,_0x3a6ea3._0x5b51a7,_0x3a6ea3._0x1c0ce3,_0x3a6ea3._0x45cf3c)]);_0x5d2593['length']>0x0&&_0x226f8c[_0x19cf2d(_0x3a6ea3._0x28e2a4,0x14d,_0x3a6ea3._0xdff957,0x98)]({'type':_0x561c0a(_0x3a6ea3._0x211b49,0x308,_0x3a6ea3._0x121187,0x2ba),'text':_0x5d2593});continue;}if(!isResponsesFunctionCallItem(_0x193e2a)||typeof _0x193e2a[_0x19cf2d(-_0x3a6ea3._0x28e2a4,-0x34,-0x162,-0x36)]!=='string'||_0x193e2a[_0x19cf2d(-_0x3a6ea3._0x28e2a4,-0x55,0x20,-_0x3a6ea3._0x3b9568)][_0x561c0a(0x3a1,0x472,0x448,0x505)]()[_0x561c0a(0x3dd,_0x3a6ea3._0x564637,_0x3a6ea3._0x5b0099,0x34c)]===0x0||typeof _0x193e2a[_0x19cf2d(0x63,-_0x3a6ea3._0x57ad51,-_0x3a6ea3._0x38b859,0x112)]!==_0x19cf2d(0x1a,_0x3a6ea3._0x3e45e4,0x46,_0x3a6ea3._0x2b3624)||_0x193e2a[_0x561c0a(_0x3a6ea3._0x5b51a7,0x3c3,_0x3a6ea3._0x301b50,_0x3a6ea3._0x292c32)][_0x19cf2d(0x8b,0xac,_0x3a6ea3._0x2fc4bc,-_0x3a6ea3._0x268927)]()[_0x19cf2d(-0x5c,-_0x3a6ea3._0x599aa7,-_0x3a6ea3._0xf9d5d,0x20)]===0x0||typeof _0x193e2a['arguments']!=='string')continue;_0x226f8c[_0x561c0a(_0x3a6ea3._0x12e241,_0x3a6ea3._0x435519,0x481,_0x3a6ea3._0x15698f)]({'type':_0x561c0a(_0x3a6ea3._0x273d20,_0x3a6ea3._0x2c65d6,_0x3a6ea3._0x2227b1,_0x3a6ea3._0x2a4baa),'id':_0x193e2a[_0x19cf2d(-_0x3a6ea3._0x28e2a4,-_0x3a6ea3._0x3de44b,_0x3a6ea3._0x5a05d6,-0x3c)],'name':_0x193e2a[_0x19cf2d(_0x3a6ea3._0x51085e,_0x3a6ea3._0x2e11e5,-0x46,_0x3a6ea3._0x5c2e64)],'input':parseToolInput2(_0x193e2a[_0x19cf2d(0x83,0x6f,0x15e,0x16e)])});}function _0x19cf2d(_0x3395b6,_0x4b14ed,_0x4cd6a5,_0x1fba74){return _0xf0dc29(_0x3395b6- -0x2ef,_0x4b14ed-_0x453209._0x4c0ab0,_0x1fba74,_0x1fba74-0x0);}function _0x561c0a(_0x550d21,_0x69af2,_0xf6e3ac,_0x18c983){return _0x551389(_0x550d21-0xab,_0xf6e3ac- -0x11,_0x18c983,_0x18c983-_0x57bf45._0x1286ce);}return!_0x226f8c[_0x561c0a(_0x3a6ea3._0x2a949e,_0x3a6ea3._0x3ad75a,0x3bf,0x30a)](_0x65ecd2=>_0x65ecd2[_0x19cf2d(-0x107,-0x73,-0x70,-0x18c)]==='text')&&_0x2faf77['output_text']&&_0x226f8c[_0x19cf2d(_0x3a6ea3._0x28e2a4,-0x12,_0x3a6ea3._0x3b33db,-_0x3a6ea3._0x1d7669)]({'type':'text','text':_0x2faf77[_0x19cf2d(-0x31,_0x3a6ea3._0x4993a6,-0xef,-_0x3a6ea3._0x1c24a3)]}),{'id':_0x2faf77['id'],'content':_0x226f8c,'stopReason':_0x226f8c[_0x19cf2d(_0x3a6ea3._0x11f73c,-_0x3a6ea3._0x1995c1,_0x3a6ea3._0x35299d,0x4b)](_0x2d940f=>_0x2d940f[_0x19cf2d(-0x107,-0x166,-0x5b,-0x8b)]===_0x19cf2d(-0xf4,-0x73,-0x5b,-0xe9))?_0x561c0a(_0x3a6ea3._0x31bf07,0x386,_0x3a6ea3._0x2227b1,_0x3a6ea3._0x2b0800):_0x19cf2d(-0x87,0x67,-0x144,-0x2d),'usage':{'inputTokens':_0x2faf77[_0x19cf2d(-0x10b,-0x1a9,-0x122,-0x84)]?.['input_tokens']??0x0,'outputTokens':_0x2faf77[_0x19cf2d(-0x10b,-_0x3a6ea3._0x2e4e51,-0xd0,-0x14c)]?.[_0x19cf2d(0x5a,0xc8,_0x3a6ea3._0x31f4c7,_0x3a6ea3._0x4cab11)]??0x0,..._0x2faf77['usage']?.[_0x19cf2d(-_0x3a6ea3._0x23ec0d,0x5b,-0xa3,-0x150)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x2faf77[_0x561c0a(_0x3a6ea3._0x3b9173,0x332,0x2b2,0x21c)][_0x561c0a(0x311,0x3d4,0x32a,0x40c)][_0x561c0a(_0x3a6ea3._0x9a3aac,0x36c,0x453,_0x3a6ea3._0x56fb07)]}:{}},..._0x2faf77['output']?{'providerState':{'openaiResponsesOutput':structuredClone(_0x2faf77[_0x561c0a(0x312,_0x3a6ea3._0x44f090,0x3a9,0x34b)]),'openaiResponsesResponseId':_0x2faf77['id']}}:{}};}function extractErrorMessage(_0x5cda93){const _0x4085a5={_0x72044e:0x105,_0x3b19d6:0xb6,_0x2cc515:0x4c0,_0x3c7f21:0x4a4,_0xce9e62:0x4b7,_0x5e0b61:0x155,_0x3bf1ee:0x40,_0x39b295:0x101,_0x4fc7a5:0xbe,_0x28337d:0x2bd,_0x1e9bbf:0x1f5,_0x46734c:0x2c5,_0x15e79a:0x1ec,_0x12f635:0x2b1,_0x14bd86:0x420,_0x53bb14:0x3ff,_0x3d827a:0x3bd,_0x2c37c9:0x463,_0x69abd1:0x570,_0x1de267:0x1e9,_0x2903f3:0x130,_0x207386:0x422,_0x5617c1:0x428,_0x460775:0x4ad,_0x51b970:0x13a,_0x24ab72:0x2bf},_0x3d7000={_0x2e65d8:0x13f,_0x388bd5:0x26d},_0x2f16f6={_0xa6c9e8:0x3f,_0x196a7e:0x151};function _0x1cba33(_0x263263,_0x433f9d,_0xf7bc6a,_0x217cab){return _0x551389(_0x263263-_0x2f16f6._0xa6c9e8,_0x217cab-0x4b,_0x433f9d,_0x217cab-_0x2f16f6._0x196a7e);}if(_0x5cda93[_0x3eec22(_0x4085a5._0x72044e,_0x4085a5._0x3b19d6,_0x4085a5._0x72044e,0x86)]===0x0)return'';function _0x3eec22(_0x2d9b7a,_0x39abcb,_0x2519b1,_0x1bce90){return _0x551389(_0x2d9b7a-_0x3d7000._0x2e65d8,_0x2519b1- -_0x3d7000._0x388bd5,_0x39abcb,_0x1bce90-0xbb);}try{const _0x33e686=JSON[_0x1cba33(_0x4085a5._0x2cc515,0x491,_0x4085a5._0x3c7f21,_0x4085a5._0xce9e62)](_0x5cda93);if(typeof _0x33e686[_0x3eec22(_0x4085a5._0x5e0b61,_0x4085a5._0x3bf1ee,_0x4085a5._0x39b295,_0x4085a5._0x4fc7a5)]?.[_0x3eec22(_0x4085a5._0x28337d,0x20e,_0x4085a5._0x1e9bbf,0x196)]==='string'&&_0x33e686['error']['message'][_0x3eec22(_0x4085a5._0x46734c,0x198,_0x4085a5._0x15e79a,_0x4085a5._0x12f635)]()[_0x1cba33(0x319,_0x4085a5._0x14bd86,_0x4085a5._0x53bb14,_0x4085a5._0x3d827a)]>0x0)return _0x33e686[_0x3eec22(0x8f,0x45,_0x4085a5._0x39b295,0x155)]['message'][_0x1cba33(_0x4085a5._0x2c37c9,_0x4085a5._0x69abd1,0x4c1,0x4a4)]();if(typeof _0x33e686[_0x3eec22(_0x4085a5._0x1de267,0x258,_0x4085a5._0x1e9bbf,0x194)]==='string'&&_0x33e686[_0x3eec22(0x2d6,_0x4085a5._0x2903f3,0x1f5,0x131)][_0x1cba33(0x554,0x564,_0x4085a5._0x207386,_0x4085a5._0x3c7f21)]()['length']>0x0)return _0x33e686[_0x1cba33(0x460,_0x4085a5._0x5617c1,0x52c,_0x4085a5._0x460775)][_0x3eec22(_0x4085a5._0x51b970,0x1b2,0x1ec,_0x4085a5._0x24ab72)]();}catch{return _0x5cda93;}return _0x5cda93;}async function createOpenAiApiError(_0x360ea2){const _0x54e4a9={_0x751113:0x1eb,_0xd3f311:0x310,_0x42476c:0x1f0,_0x298a8b:0x277,_0x2c4069:0x1ed,_0xbad24e:0x1fc,_0xbc7aa4:0x4e7,_0x5c9c75:0x40b,_0x2bf7ce:0x584,_0x5b3f7a:0x496,_0x78a78b:0x3d2,_0x5ed177:0x490},_0x15281a={_0x416abd:0x162},_0x278260={_0x28d4b7:0x54a,_0x5031db:0x1d2},_0xa9bd3f=(await _0x360ea2[_0x5dbdaf(_0x54e4a9._0x751113,0x28d,_0x54e4a9._0xd3f311,0x2c9)]())[_0x15c2b1(-0x193,-0xf7,-0xf1,-0xb1)]();function _0x15c2b1(_0x9dadd6,_0x2d6598,_0x27630f,_0x2a076e){return _0x551389(_0x9dadd6-0x1dd,_0x27630f- -_0x278260._0x28d4b7,_0x2d6598,_0x2a076e-_0x278260._0x5031db);}const _0x3a4e8e=extractErrorMessage(_0xa9bd3f)||_0x360ea2[_0x15c2b1(-_0x54e4a9._0x42476c,-0x367,-_0x54e4a9._0x298a8b,-0x2a8)]||_0x15c2b1(-0x239,-0x1a8,-_0x54e4a9._0x2c4069,-_0x54e4a9._0xbad24e)+_0x360ea2[_0x5dbdaf(_0x54e4a9._0xbc7aa4,_0x54e4a9._0x5c9c75,_0x54e4a9._0x2bf7ce,_0x54e4a9._0x5b3f7a)];function _0x5dbdaf(_0x5caf6a,_0x2d5779,_0x49aa0c,_0x333536){return _0xf0dc29(_0x333536-0xdf,_0x2d5779-0x160,_0x5caf6a,_0x333536-_0x15281a._0x416abd);}return new OpenAiApiError(_0x360ea2[_0x5dbdaf(0x453,_0x54e4a9._0x78a78b,_0x54e4a9._0x5ed177,0x496)],_0xa9bd3f,_0x3a4e8e);}function readSseData(_0x52ff3d){const _0x24b882={_0x542d96:0xa,_0x232699:0x14,_0x5cee1a:0xe8,_0x3ad806:0x531,_0x352995:0x447,_0x1562a6:0x4be,_0x54f220:0x465,_0x2b6335:0x169,_0xabe3de:0xda,_0x7edd8c:0xd4},_0x50c774={_0xb27029:0x5};function _0xf6a719(_0x12cff9,_0x9a7233,_0x87591c,_0xd804c0){return _0xf0dc29(_0xd804c0-0x27e,_0x9a7233-0x135,_0x9a7233,_0xd804c0-0x75);}function _0x174bc5(_0x426c1e,_0x370dae,_0x553d7b,_0x3c0458){return _0xf0dc29(_0x3c0458- -0x2a4,_0x370dae-0xfe,_0x426c1e,_0x3c0458-_0x50c774._0xb27029);}return _0x52ff3d[_0x174bc5(0xab,_0x24b882._0x542d96,_0x24b882._0x232699,_0x24b882._0x5cee1a)]('\x0a')[_0xf6a719(_0x24b882._0x3ad806,0x558,_0x24b882._0x352995,0x4d4)](_0x4f607a=>_0x4f607a[_0xf6a719(0x3d1,0x41b,0x4ca,0x46f)](_0x174bc5(0x1c8,0x6b,0xec,0x115)))[_0xf6a719(_0x24b882._0x1562a6,0x446,_0x24b882._0x54f220,0x464)](_0xd72148=>_0xd72148[_0xf6a719(0x5ed,0x5cc,0x45a,0x543)](0x5)[_0xf6a719(0x688,0x57a,0x62b,0x636)]())[_0x174bc5(_0x24b882._0x2b6335,0x5d,_0x24b882._0xabe3de,_0x24b882._0x7edd8c)]('\x0a')['trim']();}function readString(_0x8eda51){const _0x3b4072={_0x5203da:0x49,_0x429157:0xe8,_0x5bb9da:0x41e,_0x2dfac4:0x4c0,_0xec0dd7:0x348,_0x426db4:0x3e3},_0x554da3={_0x25ac95:0x5f},_0x1b2fd1={_0x31254b:0x115};function _0x2ed1d3(_0x497463,_0x2cf718,_0x2f9f30,_0x161609){return _0x551389(_0x497463-0x96,_0x497463-0xac,_0x161609,_0x161609-_0x1b2fd1._0x31254b);}function _0x50a54c(_0x509e5a,_0x2ddd53,_0x30ab82,_0x24ea64){return _0xf0dc29(_0x2ddd53- -0x3f1,_0x2ddd53-0x9b,_0x30ab82,_0x24ea64-_0x554da3._0x25ac95);}return typeof _0x8eda51===_0x50a54c(-_0x3b4072._0x5203da,-_0x3b4072._0x429157,-0x117,-0xd)&&_0x8eda51[_0x2ed1d3(_0x3b4072._0x5bb9da,_0x3b4072._0x2dfac4,_0x3b4072._0xec0dd7,_0x3b4072._0x426db4)]>0x0?_0x8eda51:void 0x0;}function extractReasoningDetails(_0x5ea751){const _0x1acc23={_0x264a42:0x1e,_0x571847:0x12f,_0x58c509:0x226,_0x31606d:0x306,_0x42144d:0x2e0,_0x109bb9:0x335,_0x32aa55:0x4ab,_0x1184dd:0x41a,_0x5ec7a2:0x40a},_0x1e3d46={_0x48b771:0x26},_0x4d54a5={_0x376360:0x3f,_0x16f267:0x89,_0x3cae87:0x168,_0x1fc72b:0x40,_0x415ab6:0x1c8,_0x48c5f5:0x1ad,_0x183355:0x173},_0x31939d={_0x17cb0d:0x4d};if(!Array[_0x3c4d47(0x40,0x9b,-_0x1acc23._0x264a42,_0x1acc23._0x571847)](_0x5ea751))return void 0x0;function _0x162e72(_0x530fbd,_0x4a5228,_0x4e321b,_0x30302c){return _0xf0dc29(_0x4e321b-_0x31939d._0x17cb0d,_0x4a5228-0xfd,_0x4a5228,_0x30302c-0xa6);}const _0x5484d0=_0x5ea751[_0x162e72(0x2da,0x22d,0x2be,_0x1acc23._0x58c509)](_0xf3dcae=>{const _0x1aaefb={_0x53f67b:0x1d6,_0xa6da51:0xc8},_0x79b696={_0x19240f:0x48};if(!_0xf3dcae||typeof _0xf3dcae!=='object')return[];const _0x4ee3a2=_0xf3dcae;function _0x4c0677(_0x53af6a,_0x461e30,_0x305e57,_0x9f92de){return _0x3c4d47(_0x9f92de-0x1fd,_0x461e30-_0x79b696._0x19240f,_0x461e30,_0x9f92de-0xa6);}if(typeof _0x4ee3a2[_0x4c0677(-0x3e,0x48,_0x4d54a5._0x376360,_0x4d54a5._0x16f267)]==='string')return[_0x4ee3a2[_0x4c0677(_0x4d54a5._0x3cae87,0x7b,_0x4d54a5._0x1fc72b,_0x4d54a5._0x16f267)]];if(typeof _0x4ee3a2[_0x40ba62(0xfe,_0x4d54a5._0x415ab6,_0x4d54a5._0x48c5f5,0x34)]==='string')return[_0x4ee3a2[_0x4c0677(0x221,0x232,_0x4d54a5._0x183355,0x1e4)]];function _0x40ba62(_0x135146,_0x30b348,_0x31ff6c,_0x3c5a6a){return _0x3c4d47(_0x135146-0x117,_0x30b348-_0x1aaefb._0x53f67b,_0x30b348,_0x3c5a6a-_0x1aaefb._0xa6da51);}return[];});function _0x3c4d47(_0x143263,_0x4c4a54,_0x334985,_0x47248f){return _0xf0dc29(_0x143263- -0x35e,_0x4c4a54-_0x1e3d46._0x48b771,_0x334985,_0x47248f-0x2);}return _0x5484d0[_0x162e72(0x215,_0x1acc23._0x31606d,_0x1acc23._0x42144d,_0x1acc23._0x109bb9)]>0x0?_0x5484d0[_0x162e72(_0x1acc23._0x32aa55,_0x1acc23._0x1184dd,0x3c5,_0x1acc23._0x5ec7a2)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x21c21c){const _0x4ab03f={_0x57f29e:0x582,_0x1462fe:0x3c6,_0x54e1dd:0x166,_0x4a357f:0x93,_0x5b1956:0xb4},_0x4464f9={_0x450975:0x381},_0x1a8700={_0x238cf0:0x114,_0x58998f:0xca};function _0x4aaec0(_0x138ff6,_0x2e82fb,_0x28da3d,_0xe5ee38){return _0xf0dc29(_0xe5ee38-_0x1a8700._0x238cf0,_0x2e82fb-_0x1a8700._0x58998f,_0x138ff6,_0xe5ee38-0xa3);}function _0x50c01a(_0x448946,_0x56618e,_0x1ff082,_0x3eef94){return _0x551389(_0x448946-0x1b2,_0x3eef94- -_0x4464f9._0x450975,_0x448946,_0x3eef94-0xa2);}return extractReasoningDetails(_0x21c21c?.[_0x4aaec0(0x553,_0x4ab03f._0x57f29e,_0x4ab03f._0x1462fe,0x49d)])??readString(_0x21c21c?.[_0x50c01a(-0x149,-_0x4ab03f._0x54e1dd,-_0x4ab03f._0x4a357f,-_0x4ab03f._0x5b1956)])??readString(_0x21c21c?.['reasoning_content'])??readString(_0x21c21c?.['reasoning_text'])??'';}function _0x551389(_0x3c3fc8,_0xbc852d,_0x2bfdc4,_0x2372c6){return _0x5b12(_0xbc852d-0x1af,_0x2bfdc4);}var OpenAiChatCompletionsStreamParser=class{[_0x551389(0x3ed,0x32f,0x2ec,0x25b)]=[];['request'];['textParts']=[];['toolCallsByIndex']=new Map();['toolCallOrder']=[];[_0x551389(0x460,0x3a7,0x2d8,0x32b)]=new Set();[_0xf0dc29(0x343,0x408,0x361,0x33f)]='';[_0x551389(0x323,0x38a,0x451,0x363)]=_0x551389(0x3c6,0x347,0x36c,0x2f2);[_0xf0dc29(0x1e4,0x2b1,0x1b0,0x28f)];constructor(_0x3027b9){const _0x13d31a={_0x3753ed:0xfd,_0x37a25c:0x122},_0x493529={_0x2f3c06:0x30f,_0x473c08:0x6b};function _0x443551(_0x1e1927,_0x58d597,_0x855c62,_0x4ced1e){return _0xf0dc29(_0x4ced1e- -_0x493529._0x2f3c06,_0x58d597-0x1ef,_0x58d597,_0x4ced1e-_0x493529._0x473c08);}this[_0x443551(-0xd0,-_0x13d31a._0x3753ed,-_0x13d31a._0x37a25c,-0x54)]=_0x3027b9;}['consumeSseEvent'](_0x3de7df){const _0x598be3={_0x2aa130:0x3d9,_0x323ac8:0x3ed,_0x488876:0x35f,_0xc0f07:0x3f0,_0x59b0f1:0x481,_0x16bfde:0x5c9,_0x21308c:0x510,_0x2ba844:0x49d,_0x1f1f34:0x3c6,_0x3c3713:0x261,_0x195167:0x33e,_0xff405:0x30d,_0xc97afd:0x264,_0x358d48:0x308,_0x5f2144:0x2f3,_0x2627d9:0x312},_0x4dba89={_0x4f33b2:0x7b},_0x1daee4={_0x4ad6cb:0x12b,_0x4197fe:0x61,_0x135627:0x1a9};function _0x2c4077(_0x1a77b5,_0x5bc460,_0x4d1611,_0x5437b2){return _0x551389(_0x1a77b5-_0x1daee4._0x4ad6cb,_0x1a77b5- -_0x1daee4._0x4197fe,_0x5bc460,_0x5437b2-_0x1daee4._0x135627);}const _0x49c23e=readSseData(_0x3de7df);if(_0x49c23e[_0x53d0ec(_0x598be3._0x2aa130,_0x598be3._0x323ac8,0x431,_0x598be3._0x488876)]===0x0||_0x49c23e===_0x53d0ec(0x33e,_0x598be3._0xc0f07,0x334,_0x598be3._0x59b0f1))return[];function _0x53d0ec(_0x51d7ad,_0x2a044f,_0x487878,_0x1e1e33){return _0x551389(_0x51d7ad-0xf2,_0x2a044f-_0x4dba89._0x4f33b2,_0x487878,_0x1e1e33-0x30);}const _0x11f165=JSON[_0x53d0ec(0x413,0x4e7,_0x598be3._0x16bfde,_0x598be3._0x21308c)](_0x49c23e);return this[_0x53d0ec(0x3f9,_0x598be3._0x2ba844,_0x598be3._0x1f1f34,0x4f7)]=_0x11f165['id']??this['responseId'],this[_0x53d0ec(_0x598be3._0x3c3713,_0x598be3._0x195167,0x265,_0x598be3._0xff405)]=_0x11f165['usage']??this[_0x2c4077(0x262,_0x598be3._0xc97afd,0x178,_0x598be3._0x358d48)],this[_0x2c4077(0x385,_0x598be3._0x5f2144,0x306,_0x598be3._0x2627d9)](_0x11f165);}['finish'](){const _0x24dfb7={_0x3994eb:0x5b0,_0x1c86b4:0x46c,_0x132de7:0x437,_0x2ea28e:0x3bb,_0x306040:0x4e7,_0x4799f1:0x4fd,_0x6d35fc:0x44c,_0x24f061:0x8b,_0x1fc7b1:0x143,_0x289c85:0x157,_0x380791:0x48f,_0x28b16a:0x528,_0x53ce94:0x22,_0x3a6e1a:0x113,_0x38ad5a:0x6a,_0x2c3e4c:0x525,_0xee4d5e:0x597,_0x485477:0x5c3,_0x9dc81d:0xb2,_0x56b943:0x219,_0x540b43:0x137},_0x1628da={_0x37d3ea:0x15e,_0x4b4d1b:0x4c1,_0x5e1b49:0x18c},_0x3b31b9={_0x4cd095:0x1ea,_0x269115:0xe4};function _0x485a5b(_0x14caa7,_0x1d5b3c,_0x3f61a,_0x44b4f5){return _0xf0dc29(_0x14caa7-0x1a4,_0x1d5b3c-_0x3b31b9._0x4cd095,_0x1d5b3c,_0x44b4f5-_0x3b31b9._0x269115);}this[_0x485a5b(0x525,_0x24dfb7._0x3994eb,_0x24dfb7._0x1c86b4,0x467)][_0x485a5b(_0x24dfb7._0x132de7,0x3ba,_0x24dfb7._0x2ea28e,0x357)]>0x0&&(this['stopReason']='tool_use');const _0x2550ae=isUserVisibleReasoning(this['request'])?this['reasoningParts']['join'](''):void 0x0;function _0x46f617(_0x4c5035,_0x11e2e9,_0x2495c3,_0x3f1850){return _0x551389(_0x4c5035-_0x1628da._0x37d3ea,_0x3f1850- -_0x1628da._0x4b4d1b,_0x2495c3,_0x3f1850-_0x1628da._0x5e1b49);}return{'id':this[_0x485a5b(_0x24dfb7._0x306040,_0x24dfb7._0x4799f1,0x565,_0x24dfb7._0x6d35fc)]||_0x46f617(-_0x24dfb7._0x24f061,-_0x24dfb7._0x1fc7b1,-_0x24dfb7._0x289c85,-0x10f)+Date[_0x485a5b(0x51b,_0x24dfb7._0x380791,0x609,_0x24dfb7._0x28b16a)](),'content':createContentBlocks(this['textParts'][_0x46f617(_0x24dfb7._0x53ce94,-_0x24dfb7._0x3a6e1a,-0x67,-_0x24dfb7._0x38ad5a)](''),this[_0x485a5b(_0x24dfb7._0x2c3e4c,_0x24dfb7._0xee4d5e,0x56b,_0x24dfb7._0x485477)],_0x2550ae),'stopReason':this[_0x46f617(-_0x24dfb7._0x9dc81d,-_0x24dfb7._0x56b943,-0x8a,-_0x24dfb7._0x540b43)],'usage':createUsage(this['usage'])};}[_0xf0dc29(0x307,0x278,0x320,0x294)](_0xbd240d){const _0x21de90={_0x20e365:0x2ed,_0x526603:0x2ef,_0x288690:0x4a4,_0x4e46d9:0xd2,_0x22ac44:0x55,_0x168ca1:0x3,_0x254126:0xaf,_0x18807a:0x176,_0x9764db:0xd0,_0x5460cf:0x205,_0x26438e:0x111,_0x5cdc3a:0x4e3,_0x391487:0x33b,_0x20cd27:0x391,_0x55bc27:0x3e8,_0x25e170:0x1da,_0x29e29b:0x14c,_0x353547:0x1ba,_0x40dd7f:0x41f,_0x38f351:0x4c5,_0x54d77f:0x33d,_0x18a860:0x3a1,_0x48e550:0x1ec,_0x4422e2:0x1a6,_0x391d79:0x244,_0x5bf0c9:0x12c,_0x2708f3:0x84,_0x2337bc:0x300,_0x4b9404:0x3cd,_0x191fed:0x320,_0x4ad78c:0x2c8,_0x1760dc:0x338,_0x4554b0:0x30d,_0x1c6e72:0x3e6,_0x558992:0x3f7,_0x47149f:0x277,_0xfa8e32:0x2e5,_0x51438e:0x2b7,_0x2515d5:0x30e,_0x31b452:0x3df,_0x1681ae:0x297,_0x48c6d5:0x2b1,_0x4d5451:0xcf,_0x486661:0xd2,_0x5b8200:0x440,_0x766e54:0x1af,_0x4f988c:0x2d4,_0x951a1a:0x358,_0x35ed7c:0x3b7,_0x5f062e:0x28b,_0x1cded6:0x364,_0x2e6bc0:0x37c,_0x1f93e4:0x329,_0x507a38:0x469,_0x4d5b80:0x44d,_0x2b23e0:0x500,_0xf3bb55:0x17d,_0x3e4be9:0x20b,_0x5a6fa0:0x1ab,_0x255888:0x3bf,_0x4d549b:0x496,_0x42976a:0x464,_0x45051b:0xe4,_0x568a58:0x215,_0x2ff393:0x1ac,_0x469528:0x2d8,_0x5b37d8:0x2da,_0x575290:0x307,_0x444d9f:0x23b,_0x4829a0:0x25d,_0x268b0d:0x323,_0x30dcc4:0x37a,_0x5f2636:0x1b8,_0x26e242:0x227,_0x421600:0xd7,_0x161d84:0x1d3,_0xa90ea7:0x307,_0x26985b:0x228,_0x2e5d40:0x321,_0x218d6f:0x34f,_0x30d176:0x1fa,_0x4d58a3:0x320,_0x42a5f4:0x420,_0x32e1e3:0x39a,_0x5a90b9:0x349,_0x309f53:0x39e,_0x591813:0x32e,_0xb34eb9:0x31f,_0x2a5768:0x3b6,_0x23feaf:0x3bb},_0x209fa6={_0x32b9f9:0x58,_0x41d5c8:0x17d};function _0x2dc8d6(_0x16ab35,_0x65cb2d,_0x30f9f7,_0x6ee41b){return _0x551389(_0x16ab35-0x44,_0x16ab35- -0x72,_0x65cb2d,_0x6ee41b-0x82);}const _0x2784f8=[];for(const _0x574d5d of _0xbd240d[_0x2dc8d6(0x3c2,_0x21de90._0x20e365,_0x21de90._0x526603,_0x21de90._0x288690)]??[]){const _0x2da91a=_0x574d5d[_0x1be331(_0x21de90._0x4e46d9,_0x21de90._0x22ac44,_0x21de90._0x168ca1,_0x21de90._0x254126)],_0xba0a27=extractChatCompletionReasoningDelta(_0x2da91a);_0xba0a27[_0x1be331(_0x21de90._0x18807a,0x93,0x11e,0xb9)]>0x0&&(this[_0x1be331(0x133,_0x21de90._0x9764db,_0x21de90._0x5460cf,_0x21de90._0x26438e)][_0x2dc8d6(0x420,0x358,_0x21de90._0x5cdc3a,_0x21de90._0x391487)](_0xba0a27),isUserVisibleReasoning(this[_0x2dc8d6(0x328,0x2a2,0x417,0x248)])&&_0x2784f8['push']({'type':'openai_reasoning_delta','contentIndex':0x0,'delta':_0xba0a27,'itemId':(this['responseId']||_0x2dc8d6(0x38d,_0x21de90._0x20cd27,_0x21de90._0x55bc27,0x38b))+_0x1be331(_0x21de90._0x25e170,_0x21de90._0x29e29b,_0x21de90._0x353547,0x193),'outputIndex':0x0}));const _0x50b923=typeof _0x2da91a?.[_0x2dc8d6(_0x21de90._0x40dd7f,_0x21de90._0x38f351,_0x21de90._0x54d77f,_0x21de90._0x18a860)]===_0x1be331(_0x21de90._0x48e550,_0x21de90._0x4422e2,_0x21de90._0x391d79,0x18e)?_0x2da91a['content']:typeof _0x2da91a?.['refusal']===_0x1be331(0x1ec,0x2d1,0x19f,0x12e)?_0x2da91a[_0x1be331(_0x21de90._0x5bf0c9,0x14d,0x138,_0x21de90._0x2708f3)]:'';_0x50b923[_0x2dc8d6(_0x21de90._0x2337bc,_0x21de90._0x4b9404,_0x21de90._0x191fed,0x30e)]>0x0&&(this[_0x1be331(0x25f,_0x21de90._0x4ad78c,_0x21de90._0x1760dc,0x205)][_0x1be331(0x296,0x23a,0x37a,_0x21de90._0x4554b0)](_0x50b923),_0x2784f8[_0x2dc8d6(0x420,0x4fd,_0x21de90._0x1c6e72,_0x21de90._0x558992)]({'type':_0x1be331(_0x21de90._0x47149f,_0x21de90._0xfa8e32,0x226,_0x21de90._0x51438e),'index':0x0,'text':_0x50b923}));for(const _0x1d8a73 of _0x2da91a?.[_0x2dc8d6(0x39e,_0x21de90._0x2515d5,_0x21de90._0x31b452,0x317)]??[]){const _0x441df9=_0x1d8a73[_0x2dc8d6(_0x21de90._0x1681ae,0x1cc,0x28a,_0x21de90._0x48c6d5)]??0x0;let _0x56e729=this[_0x1be331(0x14a,0x12a,_0x21de90._0x4d5451,_0x21de90._0x486661)]['get'](_0x441df9);!_0x56e729&&(_0x56e729={'id':_0x1d8a73['id']??_0x2dc8d6(0x409,0x3ea,0x319,_0x21de90._0x5b8200)+_0x441df9,'type':'function','function':{'name':_0x1d8a73['function']?.[_0x1be331(0x235,0x285,0x2f9,_0x21de90._0x766e54)]??'','arguments':''}},this[_0x2dc8d6(_0x21de90._0x4f988c,_0x21de90._0x951a1a,0x33b,_0x21de90._0x35ed7c)][_0x2dc8d6(0x31d,_0x21de90._0x5f062e,_0x21de90._0x1cded6,0x34a)](_0x441df9,_0x56e729),this[_0x2dc8d6(0x3ee,_0x21de90._0x2e6bc0,_0x21de90._0x1f93e4,_0x21de90._0x507a38)][_0x2dc8d6(0x420,0x4f8,_0x21de90._0x4d5b80,_0x21de90._0x2b23e0)](_0x56e729));_0x1d8a73['id']&&(_0x56e729['id']=_0x1d8a73['id']);_0x1d8a73[_0x1be331(_0x21de90._0xf3bb55,_0x21de90._0x3e4be9,_0x21de90._0x5a6fa0,0x157)]?.[_0x2dc8d6(_0x21de90._0x255888,0x46d,_0x21de90._0x4d549b,_0x21de90._0x42976a)]&&(_0x56e729[_0x1be331(0x17d,_0x21de90._0x45051b,0xc2,0x1b8)][_0x1be331(0x235,_0x21de90._0x568a58,0x203,_0x21de90._0x2ff393)]=_0x1d8a73['function'][_0x2dc8d6(_0x21de90._0x255888,0x2d7,_0x21de90._0x469528,_0x21de90._0x5b37d8)]);!this['toolUseStartEmitted']['has'](_0x441df9)&&_0x56e729[_0x2dc8d6(_0x21de90._0x575290,0x245,0x266,_0x21de90._0x444d9f)]['name'][_0x1be331(_0x21de90._0x4829a0,0x26a,_0x21de90._0x268b0d,0x32b)]()[_0x2dc8d6(_0x21de90._0x2337bc,0x3c1,_0x21de90._0x30dcc4,0x2db)]>0x0&&(_0x2784f8['push']({'type':'tool_use_delta','id':_0x56e729['id'],'index':_0x441df9,'name':_0x56e729[_0x1be331(_0x21de90._0xf3bb55,0x123,_0x21de90._0x5f2636,0x95)]['name']}),this[_0x1be331(0x1ab,_0x21de90._0x26e242,0x106,0x104)][_0x1be331(0x15f,_0x21de90._0x421600,_0x21de90._0x161d84,0x163)](_0x441df9));const _0x23fc63=_0x1d8a73[_0x2dc8d6(_0x21de90._0xa90ea7,_0x21de90._0x26985b,0x372,_0x21de90._0x2e5d40)]?.[_0x2dc8d6(0x3df,0x335,_0x21de90._0x218d6f,0x484)]??'';_0x23fc63[_0x1be331(0x176,_0x21de90._0x30d176,0x17b,_0x21de90._0x4d5451)]>0x0&&(_0x56e729[_0x2dc8d6(0x307,_0x21de90._0x4d58a3,0x336,0x348)]['arguments']+=_0x23fc63,_0x2784f8[_0x2dc8d6(_0x21de90._0x42a5f4,0x35f,_0x21de90._0x32e1e3,0x357)]({'type':'tool_use_delta','id':_0x56e729['id'],'index':_0x441df9,'inputDelta':_0x23fc63}));}_0x574d5d[_0x2dc8d6(_0x21de90._0x526603,0x27e,_0x21de90._0x5a90b9,0x2a3)]===_0x2dc8d6(_0x21de90._0x309f53,_0x21de90._0x591813,_0x21de90._0xb34eb9,_0x21de90._0x2a5768)&&(this[_0x2dc8d6(0x318,_0x21de90._0x23feaf,0x408,0x291)]='tool_use');}function _0x1be331(_0x26a3b3,_0x2bb558,_0x3384a0,_0x2ae2b5){return _0xf0dc29(_0x26a3b3- -0x11d,_0x2bb558-_0x209fa6._0x32b9f9,_0x3384a0,_0x2ae2b5-_0x209fa6._0x41d5c8);}return _0x2784f8;}},OpenAiResponsesStreamParser=class{[_0x551389(0x2a0,0x308,0x3ee,0x35a)]=new Map();[_0x551389(0x3d8,0x31c,0x2b6,0x2c9)];['outputIndexToCallId']=new Map();['outputIndexToReasoningId']=new Map();[_0x551389(0x2d9,0x2ed,0x3b5,0x311)]=new Map();[_0xf0dc29(0x2bb,0x326,0x25b,0x1cd)];[_0xf0dc29(0x218,0x2f8,0x2ff,0x188)]=new Map();['toolCalls']=new Map();constructor(_0x57a9f5){const _0x113866={_0xdbfb51:0xe5},_0x2e17c7={_0x53d24c:0x12b};function _0x34ec61(_0xcad3d9,_0x5e5f41,_0x5a9bad,_0x544873){return _0xf0dc29(_0x544873- -0x294,_0x5e5f41-_0x2e17c7._0x53d24c,_0x5a9bad,_0x544873-0x180);}this[_0x34ec61(-0x3d,0xbd,_0x113866._0xdbfb51,0x27)]=_0x57a9f5;}[_0xf0dc29(0x1ec,0x252,0x27c,0x1e7)](_0x24001a){const _0x3b5a20={_0x23c138:0x1ef,_0xc58e73:0x38e,_0x3566d2:0x22c,_0x550286:0x230,_0x2a4233:0x3af,_0x1a014c:0x3ad,_0x1a53e3:0x37b,_0x48a10a:0x171,_0x1dd1e6:0x26e,_0x9ab9d7:0xa5,_0x4c8439:0xf6,_0x104586:0x34e,_0x5c0b07:0x284,_0x2ecb6d:0x364,_0x9ae9c6:0x3bf,_0x3833dd:0x3bb,_0xb4c870:0x3d4,_0x49ccaa:0x59,_0x482955:0x6a,_0x320206:0x4b},_0x3a17b1={_0x2698df:0x178,_0x306f1e:0x27c},_0x5098b1={_0x5afbc7:0x160,_0x1dcb92:0x1a8};function _0x3c51ab(_0x2dd663,_0x488581,_0x116066,_0x563420){return _0x551389(_0x2dd663-_0x5098b1._0x5afbc7,_0x488581- -0x27,_0x116066,_0x563420-_0x5098b1._0x1dcb92);}function _0x4d4b43(_0x854008,_0x9bb3f7,_0x6c35c1,_0x54dfbd){return _0x551389(_0x854008-_0x3a17b1._0x2698df,_0x54dfbd- -_0x3a17b1._0x306f1e,_0x6c35c1,_0x54dfbd-0x99);}const _0xec54db=_0x24001a[_0x4d4b43(0x135,0x182,0x23e,_0x3b5a20._0x23c138)]('\x0a'),_0x42f346=_0xec54db[_0x3c51ab(0x38e,_0x3b5a20._0xc58e73,0x3d7,0x479)](_0x16edfa=>_0x16edfa[_0x3c51ab(0x380,0x2a9,0x265,0x2f9)](_0x3c51ab(0x3ad,0x305,0x2a6,0x385)))?.[_0x3c51ab(0x435,0x37d,0x42a,0x393)](0x6)[_0x4d4b43(0x141,_0x3b5a20._0x3566d2,0x1bf,0x1dd)](),_0x1966db=_0xec54db[_0x3c51ab(_0x3b5a20._0x550286,0x30e,_0x3b5a20._0x2a4233,0x294)](_0x45d17b=>_0x45d17b[_0x3c51ab(0x21e,0x2a9,0x324,0x396)](_0x3c51ab(0x48e,0x471,0x39d,0x50c)))[_0x4d4b43(0xe,0x10b,-0x40,0x49)](_0x468d3a=>_0x468d3a[_0x3c51ab(0x3bc,0x37d,0x414,0x2ad)](0x5)[_0x3c51ab(0x49f,0x470,0x3ec,0x3c1)]())[_0x3c51ab(_0x3b5a20._0x1a014c,0x430,_0x3b5a20._0x1a53e3,0x4cf)]('\x0a')[_0x4d4b43(_0x3b5a20._0x48a10a,_0x3b5a20._0x1dd1e6,0x13c,0x1dd)]();if(_0x1966db[_0x4d4b43(0x32,_0x3b5a20._0x9ab9d7,0x67,_0x3b5a20._0x4c8439)]===0x0||_0x1966db===_0x3c51ab(0x3a5,_0x3b5a20._0x104586,_0x3b5a20._0x5c0b07,_0x3b5a20._0x2ecb6d))return[];const _0x4a7b23=JSON['parse'](_0x1966db);return this[_0x3c51ab(0x41d,_0x3b5a20._0x9ae9c6,_0x3b5a20._0x3833dd,_0x3b5a20._0xb4c870)](_0x42f346??String(_0x4a7b23[_0x4d4b43(-_0x3b5a20._0x49ccaa,-_0x3b5a20._0x482955,0x46,_0x3b5a20._0x320206)]??''),_0x4a7b23);}[_0xf0dc29(0x2cd,0x397,0x373,0x255)](_0x14f3d5){const _0x342508={_0x1856e7:0x62a,_0x5d652b:0x5b3,_0x43b636:0x626,_0x6030c8:0x5d2,_0x326b09:0x494,_0x1b2d75:0x53a,_0x4c91fb:0x450},_0x371ccc={_0x489d28:0x1c0},_0x3c65d6={_0x5ecbe3:0x264,_0x9d75cd:0x1a5,_0x19a958:0x11a};function _0x140ca6(_0x3aa545,_0x540bf3,_0xb618e1,_0xb47d73){return _0xf0dc29(_0x540bf3- -_0x3c65d6._0x5ecbe3,_0x540bf3-_0x3c65d6._0x9d75cd,_0x3aa545,_0xb47d73-_0x3c65d6._0x19a958);}function _0x3aa347(_0x2b5d1a,_0x505de0,_0x13b972,_0x33cf05){return _0xf0dc29(_0x505de0-0x2ac,_0x505de0-_0x371ccc._0x489d28,_0x13b972,_0x33cf05-0x12a);}return this[_0x3aa347(_0x342508._0x1856e7,_0x342508._0x5d652b,_0x342508._0x43b636,_0x342508._0x6030c8)](String(_0x14f3d5[_0x3aa347(0x435,_0x342508._0x326b09,_0x342508._0x1b2d75,_0x342508._0x4c91fb)]??''),_0x14f3d5);}[_0x551389(0x244,0x315,0x254,0x2e5)](){const _0x251e23={_0x23701d:0x13a,_0x2dfbca:0x3a,_0x41a8f2:0x61,_0x561cd2:0x16,_0x214350:0x2e,_0x38a190:0x9e,_0x2b94eb:0x88,_0x2748ac:0x11,_0xc1c9ec:0x3b6},_0x42a949={_0x27edf7:0x3a},_0x2516c={_0x2095d1:0x316,_0x2c615e:0x11},_0x328c0d=this[_0x43555(-0xd9,-0x171,-0x8b,-_0x251e23._0x23701d)]??{'id':_0x43555(_0x251e23._0x2dfbca,-0x11,0x54,0x47)+Date[_0x43555(_0x251e23._0x41a8f2,_0x251e23._0x561cd2,_0x251e23._0x214350,0x92)](),'object':'response','status':_0x43555(-_0x251e23._0x38a190,-_0x251e23._0x2b94eb,-_0x251e23._0x2748ac,-0x14),'output':this[_0x21b962(0x434,0x335,_0x251e23._0xc1c9ec,0x377)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x43555(_0x1686bc,_0x4c144a,_0x18521b,_0x17f103){return _0xf0dc29(_0x1686bc- -_0x2516c._0x2095d1,_0x4c144a-0xe5,_0x4c144a,_0x17f103-_0x2516c._0x2c615e);}function _0x21b962(_0x42a4a1,_0x44d92b,_0x5e2590,_0x2f8f4d){return _0xf0dc29(_0x5e2590-0x170,_0x44d92b-0xe5,_0x44d92b,_0x2f8f4d-_0x42a949._0x27edf7);}return parseResponsesResponse(_0x328c0d,this['request']);}['isDone'](){const _0x3d5b13={_0x2bd1e7:0x68,_0x16dbf6:0x6b,_0x60680e:0x62},_0x3e3f72={_0x10a55d:0xd};function _0x3f8e8e(_0xde1e19,_0x2c2263,_0x45e1ff,_0x3b19e3){return _0x551389(_0xde1e19-0x19b,_0xde1e19- -0x2ca,_0x2c2263,_0x3b19e3-_0x3e3f72._0x10a55d);}return this[_0x3f8e8e(0x52,_0x3d5b13._0x2bd1e7,_0x3d5b13._0x16dbf6,_0x3d5b13._0x60680e)]!==void 0x0;}[_0xf0dc29(0x307,0x257,0x30b,0x2cb)](_0x54ba28,_0x22cc92){const _0x3e4704={_0x56abb2:0x88,_0xf41fbc:0x2,_0x3b5a53:0x115,_0x2ff04a:0x1e3,_0x328a85:0xf1,_0x1ec85e:0xb8,_0x5d46ca:0xd8,_0x1e2de1:0xab,_0x3f989c:0x20d,_0x3f209a:0x11,_0x3ed69c:0x133,_0x38698e:0x267,_0x85dda2:0x1e8,_0xb75c44:0x2b0,_0x3462e3:0x269,_0xf6ac15:0x2bd,_0x2c0ec0:0x285,_0x31c52e:0x62,_0x513417:0xac,_0xc3d969:0x101,_0x49051e:0x2f4,_0x310a74:0x211,_0x52795e:0x1c1,_0x4394ae:0x52,_0x434c46:0x1fc,_0x696c48:0x49,_0x356c93:0x11e,_0x1a23a5:0x9a,_0x59e5ef:0x1de,_0x4b5cd6:0x1ea,_0x31802a:0x26a,_0x416287:0x20,_0x5f00f9:0x2e,_0x46c6e5:0x164,_0x2ca11f:0x10e,_0x4fbfcc:0x173,_0x437667:0xc3,_0x4fbcf2:0x1c8,_0x1c8a96:0x68,_0x1a875a:0x124,_0x3369c9:0x25d,_0xaba9b2:0x1ed,_0x59dba2:0x1e7,_0x53ba39:0x199,_0x159bab:0x64,_0x379798:0x190,_0x3d5f4a:0x174,_0x4da22b:0xc1,_0x3bfe9b:0x31,_0x20c2cb:0x10,_0x12ae46:0xc3,_0x589a5a:0x1d,_0x66d068:0x152,_0x53446f:0x183,_0xd98035:0x60,_0x132d95:0x206,_0x768b21:0x9c,_0x550660:0x86,_0x3a7da8:0x4d,_0x4e5ba4:0x159,_0x2d0179:0x190,_0x390065:0x10f,_0x5247e3:0x32,_0x3232a6:0x1bd,_0x49fb1e:0x23c,_0x4943a0:0x1c0,_0x353a41:0xac,_0x223245:0x72,_0x2fd266:0x289,_0x2eb132:0x109,_0x20b7a5:0x14c,_0x5160af:0x93,_0x35118b:0xb0,_0x1672aa:0x1b4,_0x583b29:0xa2,_0x2ed2ed:0xd8,_0x3824bb:0x157,_0x76a14f:0x87,_0x580ad9:0xc,_0x11f4b8:0x111,_0x4e2c1f:0x9,_0x1846e6:0x81,_0xc5fd41:0x58,_0x54d4ef:0x132,_0x11d740:0x2e5,_0x120fac:0x299,_0x5361b7:0x250,_0x20c91b:0x178,_0x498f1e:0x8c,_0x446534:0x64,_0x13bf7d:0x193,_0x4d7b64:0x11a,_0x366b17:0x13b,_0x4d9d54:0xb2,_0x4012b6:0x1cc,_0x10b677:0x187,_0xb74cd1:0x226,_0x546c03:0x78,_0x1dd8eb:0xf9,_0x16ef6e:0x138,_0x1da2dc:0x3c,_0x20adad:0xc3,_0x14c268:0x1c1,_0x387f9c:0x135,_0x5b381a:0x39,_0x535ed8:0x36,_0x115193:0x1a3,_0x47f193:0x260,_0x1d34e4:0x2af,_0x2d1cae:0x177,_0x585b08:0x2c5,_0x29bc94:0x2f8,_0x195ea4:0x179,_0x143340:0x1a1,_0x2fa443:0x206,_0x9a3a82:0xbb,_0x5e388a:0x1e6,_0x3bf9e0:0x1dd,_0x30b60f:0x1ef,_0x2c678e:0x22d,_0x204b38:0x20e,_0x1e4d48:0x15e,_0x1f04ec:0x126,_0x21e195:0x13a,_0x18ac1e:0x212,_0xfd2800:0xba,_0x3c7419:0x130,_0x1fd1b5:0xc2,_0x173001:0x181,_0x1c383c:0x226,_0xf4ed70:0x271,_0x4b2a1b:0x2f7,_0xf24569:0x253,_0x3fa7ab:0x236,_0x197c97:0x20a,_0x516437:0x7a,_0x5237c7:0x80,_0x58c491:0x16a,_0x784e91:0x29a,_0x525447:0x1d7,_0x4997e0:0x1f3,_0x10fd1e:0x179,_0x429037:0x1f9,_0x21da3b:0x2c3,_0x3d7b63:0x124,_0x2175c1:0x15f,_0x3c7c75:0x224,_0x544c23:0x198,_0x472afd:0x15c,_0xa574b8:0x9e,_0x3aaed5:0xd7,_0x931ba5:0x159,_0x2ac939:0x17f,_0x41f048:0xb2,_0x2dd605:0x1fb,_0x1a6ae2:0x253,_0x30a7c7:0x1a6,_0x24916f:0xce,_0x851255:0x155,_0x36ebc5:0x16c,_0x4651b4:0x18e,_0x1a2f55:0xee,_0x241d5b:0x8a,_0x2cd3ea:0x25f,_0x46682e:0x22b,_0x3fbd64:0x1fe,_0x475be3:0x1a1,_0x232406:0x297,_0x3c8a4f:0x1ac,_0x29d9cc:0x25f,_0x4f794b:0x131,_0x45a119:0x104,_0x4d8e4c:0xf9,_0x50f86a:0x15c,_0x4141a0:0xaf,_0x386ecb:0x190,_0x31a6a6:0xf2,_0x5d66a0:0x1d1,_0x206b15:0x143,_0x2259ec:0xc6,_0x542d0a:0x17c,_0x4fb243:0x92,_0x147d51:0x13e,_0x442eaf:0xe8,_0x3657b1:0xd9,_0x53e04a:0x13e,_0x5801e1:0x227,_0x318b20:0x174,_0x26b9d5:0xbf,_0x415764:0x21a,_0x4291eb:0x220,_0x2f6243:0x21a,_0x3091b8:0x1dc,_0x482ca7:0xbb,_0x55afa5:0xc3,_0x599780:0x5f,_0x1afa9f:0x209,_0x24096b:0x8b,_0x7c456c:0x10a,_0x5a537c:0x115,_0x19d46:0x51,_0x4db8ec:0x269,_0x28002c:0x1c4,_0x73ea03:0x167,_0x26951e:0x38,_0x4fb7a7:0x1e,_0xb6ceda:0x20d,_0x5b63cb:0xd5,_0x5ac42e:0xe2,_0x441812:0x5c,_0x183192:0x116,_0x580b66:0x128,_0x27c385:0xc7,_0x17a3b3:0x16,_0x5cf6a0:0x111,_0x104490:0x1a1,_0x12aa79:0x5,_0x3f08d2:0xda,_0x3b40c6:0x122,_0x565f51:0x145,_0x37bc92:0xbf,_0xe2914:0x1ab,_0x4138fb:0x1a9,_0x9a0fe4:0x123,_0x4269bb:0x55,_0x17714:0x16b,_0x4ce219:0x25b,_0x2f59e7:0x175,_0x18d6b6:0x32,_0x33deec:0x1c3,_0x5ad6a5:0x196,_0x11b918:0x26f,_0x55129e:0x17a,_0x514142:0x226,_0x4217c3:0x99,_0x1e526a:0x94,_0x526f68:0x124,_0x2a1ffb:0x1a4,_0x306fce:0x93,_0x52b8c4:0x1a3,_0x5d9af8:0x1ba,_0x58ef47:0x273,_0x4a4cda:0x24b,_0x244635:0x123,_0x543914:0x188,_0x15c20d:0xf0,_0x544b27:0x87,_0x203762:0x1eb,_0x146ae1:0x148,_0x332bb1:0x26d,_0x524cdf:0x1bc,_0x28f5d1:0x97,_0xdc9795:0x16f,_0x561359:0x1cf,_0x279a95:0x107,_0xc92264:0x61,_0x4b315e:0x2d,_0x22f58f:0x47,_0x321f16:0x1a3,_0x531e2f:0x11f,_0x1bf3b3:0x12a,_0x36e67:0x172,_0x41663e:0x115,_0x135084:0xf3,_0x6e2300:0x279,_0x2ca6e5:0x27b,_0x5625a9:0x131,_0x14fee6:0xde,_0x551476:0x1d8,_0x5dc4fa:0x237,_0xeb00f2:0xd4,_0x46b1a1:0x1da,_0x3327da:0x13d,_0x272f4c:0x142,_0x435a13:0x119,_0x4a91da:0x150,_0x4d004b:0x14b,_0x4c8a17:0x170,_0x49769f:0xd2,_0x55d463:0x2c9,_0x22cc37:0x28e,_0x2737a6:0x21b,_0x22cbb7:0x113,_0x49f7c1:0x1a7,_0x16aefb:0x1c7,_0xe89272:0x16d,_0x2bd974:0x127,_0x4146d9:0x197,_0xbfaa0:0x1c1,_0x348775:0x1da,_0x4ebc20:0x154,_0x367a9e:0x27b,_0x1cb8aa:0xf7,_0x18aa6c:0x145,_0x5787cc:0x2ce,_0x4e8fb1:0x1a3,_0x1b4647:0x281},_0x5c0120={_0x65bad0:0x168,_0x3a85bc:0xaa},_0x29478e={_0x247944:0x22b,_0x380b3e:0x1d1};function _0x3bd331(_0x157c83,_0x5f20c3,_0x42f8d9,_0x395b67){return _0x551389(_0x157c83-0x164,_0x157c83- -_0x29478e._0x247944,_0x5f20c3,_0x395b67-_0x29478e._0x380b3e);}function _0x5366bf(_0x436d63,_0x1717a0,_0x5e66d5,_0x561198){return _0xf0dc29(_0x5e66d5- -_0x5c0120._0x65bad0,_0x1717a0-_0x5c0120._0x3a85bc,_0x436d63,_0x561198-0x106);}switch(_0x54ba28){case _0x5366bf(-0x14,_0x3e4704._0x56abb2,0xd9,_0x3e4704._0xf41fbc):{const _0x3353ea=typeof _0x22cc92[_0x3bd331(_0x3e4704._0x3b5a53,0xee,0x70,0x127)]===_0x5366bf(_0x3e4704._0x2ff04a,_0x3e4704._0x328a85,0x187,0x1d6)?_0x22cc92['output_index']:0x0,_0x19ee35=typeof _0x22cc92[_0x3bd331(0xa3,0x66,_0x3e4704._0x1ec85e,0x15f)]==='string'?_0x22cc92[_0x3bd331(0xa3,_0x3e4704._0x5d46ca,0x9,0x13a)]:'';if(_0x19ee35[_0x5366bf(_0x3e4704._0x1e2de1,_0x3e4704._0x3f989c,0x12b,0xa4)]>0x0){const _0x16e83a=this[_0x3bd331(0xcc,_0x3e4704._0x3f209a,0x109,0x49)][_0x5366bf(0x208,0x212,0x130,_0x3e4704._0x3ed69c)](_0x3353ea)??[];return _0x16e83a[_0x3bd331(_0x3e4704._0x38698e,_0x3e4704._0x85dda2,_0x3e4704._0xb75c44,_0x3e4704._0x3462e3)](_0x19ee35),this['responseTextParts'][_0x5366bf(0x1c4,0x165,0x148,0xf9)](_0x3353ea,_0x16e83a),[{'type':_0x5366bf(_0x3e4704._0xf6ac15,_0x3e4704._0x2c0ec0,0x22c,0x192),'index':_0x3353ea,'text':_0x19ee35}];}break;}case _0x5366bf(_0x3e4704._0x31c52e,0x135,0x11c,0x1a5):{const _0x5a9733=typeof _0x22cc92[_0x3bd331(_0x3e4704._0x3b5a53,_0x3e4704._0x513417,_0x3e4704._0xc3d969,0x8b)]==='number'?_0x22cc92['output_index']:void 0x0,_0x49ed8b=_0x22cc92[_0x5366bf(_0x3e4704._0x49051e,0x254,_0x3e4704._0x310a74,_0x3e4704._0x52795e)];if(_0x49ed8b?.[_0x5366bf(_0x3e4704._0x4394ae,0xc2,0x80,-0x6a)]===_0x5366bf(_0x3e4704._0x434c46,_0x3e4704._0x696c48,_0x3e4704._0x356c93,_0x3e4704._0x1a23a5)&&_0x49ed8b['call_id']&&_0x49ed8b[_0x5366bf(0x295,_0x3e4704._0x59e5ef,_0x3e4704._0x4b5cd6,_0x3e4704._0x31802a)])return this[_0x5366bf(-_0x3e4704._0x416287,0xd9,0x81,-_0x3e4704._0x5f00f9)][_0x3bd331(_0x3e4704._0x46c6e5,0x1a0,0x1d0,0x165)](_0x49ed8b['call_id'],{'id':_0x49ed8b[_0x5366bf(_0x3e4704._0x2ca11f,_0x3e4704._0x4fbfcc,_0x3e4704._0x437667,0x9)],'type':_0x5366bf(_0x3e4704._0x4fbcf2,_0x3e4704._0x1c8a96,0x132,0x1f9),'function':{'name':_0x49ed8b[_0x3bd331(0x206,_0x3e4704._0x1a875a,_0x3e4704._0x3369c9,_0x3e4704._0xaba9b2)],'arguments':''}}),_0x5a9733!==void 0x0&&(this[_0x5366bf(0x232,0x227,_0x3e4704._0x59dba2,0x23f)]['set'](_0x5a9733,_0x49ed8b[_0x5366bf(_0x3e4704._0x53ba39,_0x3e4704._0x159bab,0xc3,0x178)]),this[_0x5366bf(_0x3e4704._0x379798,_0x3e4704._0x3d5f4a,_0x3e4704._0x4da22b,_0x3e4704._0x3bfe9b)]['set'](_0x49ed8b[_0x5366bf(0x36,-_0x3e4704._0x20c2cb,_0x3e4704._0x12ae46,-_0x3e4704._0x589a5a)],_0x5a9733)),[{'type':_0x5366bf(0x25c,_0x3e4704._0x66d068,0x1fb,0x248),'id':_0x49ed8b[_0x3bd331(0xdf,_0x3e4704._0x53446f,0xb8,_0x3e4704._0xd98035)],'index':_0x5a9733??0x0,'name':_0x49ed8b[_0x3bd331(_0x3e4704._0x132d95,_0x3e4704._0x53ba39,0x194,0x216)]}];if(_0x49ed8b?.[_0x3bd331(_0x3e4704._0x768b21,0x170,0x17a,0xda)]===_0x5366bf(0x59,0x10,_0x3e4704._0x550660,-_0x3e4704._0x3a7da8)&&_0x49ed8b['id']){const _0xce36f1=this['getOrCreateReasoningItem'](_0x49ed8b['id'],_0x5a9733);_0x5a9733!==void 0x0&&this[_0x5366bf(_0x3e4704._0x4e5ba4,0xca,_0x3e4704._0x2d0179,_0x3e4704._0x390065)]['set'](_0x5a9733,_0xce36f1['id']);}break;}case _0x3bd331(_0x3e4704._0x1a875a,0x116,0x97,0x154):{const _0x2d897d=typeof _0x22cc92[_0x3bd331(0xdf,0x42,0x1ba,_0x3e4704._0x5247e3)]===_0x3bd331(_0x3e4704._0x3232a6,0x21b,_0x3e4704._0x49fb1e,_0x3e4704._0x4943a0)?_0x22cc92[_0x3bd331(0xdf,0x97,_0x3e4704._0x353a41,0x1ad)]:typeof _0x22cc92[_0x3bd331(_0x3e4704._0x3b5a53,0x178,_0x3e4704._0x223245,0x1cc)]===_0x3bd331(0x1a3,0x1fd,0x1d3,0x28e)?this[_0x5366bf(_0x3e4704._0x2fd266,0x1e5,0x1e7,_0x3e4704._0x2eb132)][_0x3bd331(_0x3e4704._0x20b7a5,0x215,_0x3e4704._0x5160af,_0x3e4704._0x35118b)](_0x22cc92[_0x3bd331(0x115,_0x3e4704._0x1672aa,0x5d,_0x3e4704._0x583b29)]):void 0x0,_0x1b322b=typeof _0x22cc92[_0x5366bf(_0x3e4704._0x2ed2ed,_0x3e4704._0x3824bb,_0x3e4704._0x76a14f,0x158)]===_0x3bd331(0x1bd,0x12a,_0x3e4704._0x59e5ef,0xcf)?_0x22cc92[_0x3bd331(0xa3,_0x3e4704._0x580ad9,0x14b,0x112)]:'',_0x390d88=_0x2d897d?this[_0x5366bf(_0x3e4704._0x11f4b8,_0x3e4704._0x4e2c1f,_0x3e4704._0x1846e6,-0xb)]['get'](_0x2d897d):void 0x0;if(_0x390d88&&_0x1b322b['length']>0x0)return _0x390d88[_0x5366bf(0x1dc,_0x3e4704._0xc5fd41,_0x3e4704._0x54d4ef,0xeb)][_0x3bd331(0x226,0x2c3,_0x3e4704._0x11d740,_0x3e4704._0x120fac)]+=_0x1b322b,[{'type':_0x3bd331(0x217,0x23f,_0x3e4704._0x5361b7,_0x3e4704._0x20c91b),'id':_0x390d88['id'],'index':this[_0x3bd331(0xdd,_0x3e4704._0x498f1e,_0x3e4704._0x446534,0x18)][_0x5366bf(_0x3e4704._0x13bf7d,0xb6,0x130,_0x3e4704._0x4d7b64)](_0x390d88['id'])??(typeof _0x22cc92[_0x5366bf(0xd4,_0x3e4704._0x366b17,0xf9,_0x3e4704._0x4d9d54)]===_0x5366bf(0xb0,_0x3e4704._0x4012b6,_0x3e4704._0x10b677,_0x3e4704._0xb74cd1)?_0x22cc92[_0x5366bf(_0x3e4704._0x546c03,0x1f,_0x3e4704._0x1dd8eb,_0x3e4704._0x16ef6e)]:0x0),'inputDelta':_0x1b322b}];break;}case _0x5366bf(-0x30,0x175,0xaf,-_0x3e4704._0x1da2dc):{const _0x1d65c0=typeof _0x22cc92[_0x5366bf(0x13b,0x14,_0x3e4704._0x20adad,0x14)]===_0x3bd331(0x1bd,_0x3e4704._0x14c268,0x271,_0x3e4704._0x387f9c)?_0x22cc92[_0x3bd331(0xdf,0xac,_0x3e4704._0x5b381a,0x164)]:typeof _0x22cc92[_0x5366bf(0x105,_0x3e4704._0x535ed8,0xf9,0x70)]===_0x3bd331(_0x3e4704._0x115193,_0x3e4704._0x47f193,0xbd,0x127)?this[_0x3bd331(0x203,_0x3e4704._0x1d34e4,_0x3e4704._0x2d1cae,_0x3e4704._0x585b08)]['get'](_0x22cc92['output_index']):void 0x0,_0x29f5d7=_0x1d65c0?this[_0x5366bf(0xfb,0x7c,_0x3e4704._0x1846e6,-0x30)]['get'](_0x1d65c0):void 0x0;_0x29f5d7&&typeof _0x22cc92[_0x3bd331(_0x3e4704._0xb74cd1,_0x3e4704._0x29bc94,0x162,0x206)]===_0x5366bf(_0x3e4704._0x195ea4,0x110,_0x3e4704._0x143340,_0x3e4704._0x85dda2)&&(_0x29f5d7[_0x5366bf(0x140,0x13a,_0x3e4704._0x54d4ef,0xc4)]['arguments']=_0x22cc92[_0x5366bf(0x212,_0x3e4704._0x2fa443,0x20a,0x151)]);break;}case _0x3bd331(0xc6,_0x3e4704._0x387f9c,_0x3e4704._0x9a3a82,0x0):{const _0x59e1af=typeof _0x22cc92[_0x5366bf(_0x3e4704._0x5e388a,_0x3e4704._0x3bf9e0,_0x3e4704._0x1dd8eb,0x15)]===_0x5366bf(_0x3e4704._0x30b60f,0x1d4,0x187,0x194)?_0x22cc92['output_index']:void 0x0,_0x2f1c72=_0x22cc92[_0x3bd331(_0x3e4704._0x2c678e,_0x3e4704._0x204b38,_0x3e4704._0xf6ac15,0x211)];if(_0x2f1c72?.[_0x5366bf(_0x3e4704._0x1e4d48,_0x3e4704._0x1f04ec,0x80,0x169)]===_0x3bd331(_0x3e4704._0x21e195,0x16b,0xaa,_0x3e4704._0x18ac1e)){const _0x22e5d3=_0x2f1c72[_0x5366bf(0x192,-0x2a,0xc3,0x2f)]??(_0x59e1af!==void 0x0?this[_0x3bd331(0x203,_0x3e4704._0x434c46,0x139,0x23d)][_0x5366bf(0x1db,_0x3e4704._0xfd2800,_0x3e4704._0x3c7419,0x16e)](_0x59e1af):void 0x0),_0x59a860=_0x22e5d3?this[_0x5366bf(-0x53,0x151,0x81,_0x3e4704._0x390065)][_0x5366bf(0x1b4,_0x3e4704._0x1fd1b5,_0x3e4704._0x3c7419,_0x3e4704._0x173001)](_0x22e5d3):void 0x0;_0x59a860&&typeof _0x2f1c72[_0x3bd331(_0x3e4704._0x1c383c,0x172,0x175,0x199)]===_0x3bd331(0x1bd,_0x3e4704._0xf4ed70,0x191,0xdb)&&(_0x59a860['function'][_0x3bd331(0x226,0x16f,_0x3e4704._0x4b2a1b,0x265)]=_0x2f1c72[_0x5366bf(_0x3e4704._0xf24569,_0x3e4704._0x3fa7ab,_0x3e4704._0x197c97,0x1bf)]);break;}if(_0x2f1c72?.[_0x5366bf(_0x3e4704._0x516437,0xa9,_0x3e4704._0x5237c7,0x4b)]===_0x3bd331(_0x3e4704._0x583b29,-0x44,0x52,_0x3e4704._0x58c491)&&_0x2f1c72['id']){const _0x5a160b=this['getOrCreateReasoningItem'](_0x2f1c72['id'],_0x59e1af);typeof _0x2f1c72['encrypted_content']===_0x3bd331(0x1bd,_0x3e4704._0x784e91,0x194,_0x3e4704._0x525447)&&(_0x5a160b['encryptedContent']=_0x2f1c72['encrypted_content']);if(Array['isArray'](_0x2f1c72[_0x5366bf(_0x3e4704._0x4997e0,_0x3e4704._0x10fd1e,0x1dd,0x287)]))for(let _0x51eedf=0x0;_0x51eedf<_0x2f1c72[_0x3bd331(_0x3e4704._0x429037,0x2df,_0x3e4704._0x21da3b,0x239)]['length'];_0x51eedf+=0x1){const _0xa800e8=_0x2f1c72[_0x3bd331(0x1f9,_0x3e4704._0x3d7b63,_0x3e4704._0x2175c1,_0x3e4704._0x3c7c75)][_0x51eedf];_0xa800e8['type']===_0x5366bf(_0x3e4704._0x544c23,0x6b,0x155,_0x3e4704._0x472afd)&&typeof _0xa800e8[_0x3bd331(_0x3e4704._0xa574b8,_0x3e4704._0x3aaed5,_0x3e4704._0x2ed2ed,_0x3e4704._0x931ba5)]===_0x3bd331(0x1bd,0x1d2,_0x3e4704._0x46c6e5,0x249)&&_0x5a160b[_0x5366bf(0xb1,0xe5,0x122,_0x3e4704._0x2ac939)][_0x3bd331(0x164,0x168,0x12f,0xda)](_0x51eedf,_0xa800e8['text']);}typeof _0x2f1c72[_0x3bd331(0x9e,_0x3e4704._0x41f048,0x19,0x39)]===_0x5366bf(0x20a,0x12b,0x1a1,0xc2)&&_0x5a160b[_0x3bd331(_0x3e4704._0x2dd605,0x18d,_0x3e4704._0x1a6ae2,_0x3e4704._0x30a7c7)]['set'](0x0,_0x2f1c72[_0x3bd331(0x9e,0x15e,0x1c,_0x3e4704._0x24916f)]);}break;}case _0x5366bf(_0x3e4704._0x851255,0xf7,0xb5,0xf):{const _0x134774=typeof _0x22cc92['delta']===_0x3bd331(0x1bd,_0x3e4704._0x36ebc5,_0x3e4704._0x4651b4,0x263)?_0x22cc92[_0x5366bf(_0x3e4704._0x1a2f55,-0x49,0x87,_0x3e4704._0x241d5b)]:'',_0x127775=typeof _0x22cc92[_0x5366bf(_0x3e4704._0x2cd3ea,_0x3e4704._0x46682e,_0x3e4704._0x3fbd64,0x26c)]===_0x5366bf(_0x3e4704._0x429037,0x223,_0x3e4704._0x475be3,0xb9)?_0x22cc92[_0x5366bf(0x20c,0x21d,_0x3e4704._0x3fbd64,_0x3e4704._0x232406)]:typeof _0x22cc92[_0x5366bf(0x31,0x155,_0x3e4704._0x1dd8eb,0x157)]==='number'?this[_0x3bd331(_0x3e4704._0x3c8a4f,_0x3e4704._0x29d9cc,0x1bc,_0x3e4704._0x390065)]['get'](_0x22cc92[_0x5366bf(_0x3e4704._0x4f794b,_0x3e4704._0x45a119,_0x3e4704._0x4d8e4c,_0x3e4704._0x50f86a)]):void 0x0,_0xb192dc=typeof _0x22cc92['output_index']==='number'?_0x22cc92[_0x3bd331(0x115,0xdf,_0x3e4704._0x4141a0,_0x3e4704._0x386ecb)]:0x0,_0x1c7282=typeof _0x22cc92['summary_index']===_0x3bd331(_0x3e4704._0x115193,_0x3e4704._0x31a6a6,0x239,_0x3e4704._0x5d66a0)?_0x22cc92[_0x5366bf(_0x3e4704._0x206b15,0x91,_0x3e4704._0x2259ec,_0x3e4704._0x542d0a)]:0x0;if(_0x127775&&_0x134774[_0x5366bf(0x66,0x104,0x12b,0x69)]>0x0){const _0x4ecb9f=this[_0x5366bf(_0x3e4704._0x4d9d54,0x13b,0xba,_0x3e4704._0x4fb243)](_0x127775,_0xb192dc);_0x4ecb9f[_0x3bd331(_0x3e4704._0x147d51,_0x3e4704._0x223245,0x10e,0x20f)][_0x3bd331(_0x3e4704._0x46c6e5,_0x3e4704._0x442eaf,_0x3e4704._0x3657b1,0x213)](_0x1c7282,''+(_0x4ecb9f[_0x3bd331(_0x3e4704._0x53e04a,_0x3e4704._0x5801e1,0x1bd,_0x3e4704._0x318b20)]['get'](_0x1c7282)??'')+_0x134774);if(isUserVisibleReasoning(this[_0x5366bf(_0x3e4704._0x26b9d5,0x14d,0x153,0x228)]))return[{'type':'openai_reasoning_summary_delta','delta':_0x134774,'itemId':_0x127775,'outputIndex':_0xb192dc,'summaryIndex':_0x1c7282}];}break;}case _0x5366bf(0x2a3,0x1f1,0x248,0x235):{const _0x495688=typeof _0x22cc92[_0x3bd331(_0x3e4704._0x415764,0x236,_0x3e4704._0x4291eb,0x205)]===_0x5366bf(_0x3e4704._0x2f6243,_0x3e4704._0x3091b8,0x1a1,_0x3e4704._0x482ca7)?_0x22cc92[_0x3bd331(0x21a,0x2a7,0x308,0x12e)]:typeof _0x22cc92[_0x3bd331(0x115,_0x3e4704._0x55afa5,0x12b,_0x3e4704._0x599780)]===_0x5366bf(0x271,0x19c,_0x3e4704._0x10b677,_0x3e4704._0x1afa9f)?this['outputIndexToReasoningId'][_0x5366bf(0x1c2,_0x3e4704._0x24096b,0x130,_0x3e4704._0x7c456c)](_0x22cc92[_0x3bd331(_0x3e4704._0x5a537c,0xe7,0xdd,0x143)]):void 0x0,_0x620914=typeof _0x22cc92[_0x3bd331(0x115,0x123,_0x3e4704._0x19d46,0x162)]===_0x5366bf(_0x3e4704._0x4db8ec,_0x3e4704._0x28002c,_0x3e4704._0x10b677,0xd9)?_0x22cc92[_0x3bd331(_0x3e4704._0x5a537c,0x78,_0x3e4704._0x73ea03,_0x3e4704._0x26951e)]:0x0,_0x45eef1=typeof _0x22cc92[_0x5366bf(0xd,_0x3e4704._0x356c93,_0x3e4704._0x2259ec,_0x3e4704._0x4fb7a7)]===_0x3bd331(0x1a3,_0x3e4704._0xb6ceda,0x121,_0x3e4704._0x5b63cb)?_0x22cc92[_0x3bd331(_0x3e4704._0x5ac42e,_0x3e4704._0x441812,_0x3e4704._0x183192,_0x3e4704._0x580b66)]:0x0,_0x4ce57f=typeof _0x22cc92[_0x5366bf(_0x3e4704._0x27c385,-_0x3e4704._0x17a3b3,0x82,_0x3e4704._0x5cf6a0)]===_0x5366bf(0x260,0x27b,_0x3e4704._0x104490,0x286)?_0x22cc92['text']:'';_0x495688&&this[_0x5366bf(-_0x3e4704._0x12aa79,_0x3e4704._0x580b66,0xba,0x143)](_0x495688,_0x620914)[_0x5366bf(0x9c,_0x3e4704._0x3f08d2,_0x3e4704._0x3b40c6,_0x3e4704._0x429037)][_0x3bd331(_0x3e4704._0x46c6e5,_0x3e4704._0x565f51,_0x3e4704._0x37bc92,_0x3e4704._0xe2914)](_0x45eef1,_0x4ce57f);break;}case _0x5366bf(0xd7,0x1c3,_0x3e4704._0x4138fb,_0x3e4704._0x9a0fe4):{const _0x3c410f=typeof _0x22cc92[_0x5366bf(-_0x3e4704._0x4269bb,-0x3,0x87,_0x3e4704._0x17714)]==='string'?_0x22cc92['delta']:'',_0x255b72=typeof _0x22cc92[_0x5366bf(0x2bb,0x140,0x1fe,_0x3e4704._0x4ce219)]===_0x5366bf(_0x3e4704._0x544c23,0x199,_0x3e4704._0x143340,0x165)?_0x22cc92[_0x5366bf(0x27d,_0x3e4704._0x2f59e7,0x1fe,0x12d)]:typeof _0x22cc92[_0x3bd331(0x115,_0x3e4704._0x18d6b6,_0x3e4704._0x33deec,_0x3e4704._0x5ad6a5)]===_0x5366bf(0x205,_0x3e4704._0x4291eb,0x187,_0x3e4704._0x11b918)?this[_0x5366bf(_0x3e4704._0x55129e,0x1b3,_0x3e4704._0x2d0179,_0x3e4704._0x514142)][_0x3bd331(0x14c,_0x3e4704._0x4217c3,0x88,0x203)](_0x22cc92[_0x3bd331(_0x3e4704._0x5a537c,0x9f,0x192,_0x3e4704._0x1e526a)]):void 0x0,_0x7d6418=typeof _0x22cc92['output_index']===_0x3bd331(_0x3e4704._0x115193,_0x3e4704._0x526f68,_0x3e4704._0x2a1ffb,0x163)?_0x22cc92[_0x3bd331(0x115,_0x3e4704._0x24096b,0x177,_0x3e4704._0x306fce)]:0x0,_0x47fd6a=typeof _0x22cc92['content_index']===_0x3bd331(_0x3e4704._0x52b8c4,0x28a,_0x3e4704._0x5d9af8,0x118)?_0x22cc92[_0x3bd331(0x1cb,_0x3e4704._0x58ef47,_0x3e4704._0x4a4cda,0x13b)]:0x0;if(_0x255b72&&_0x3c410f[_0x5366bf(0x3d,_0x3e4704._0x244635,0x12b,_0x3e4704._0x543914)]>0x0){const _0x42c975=this[_0x5366bf(0x10e,_0x3e4704._0x15c20d,0xba,_0x3e4704._0x544b27)](_0x255b72,_0x7d6418);_0x42c975['textByIndex'][_0x5366bf(0xba,_0x3e4704._0x203762,_0x3e4704._0x146ae1,0x14d)](_0x47fd6a,''+(_0x42c975[_0x3bd331(0x1fb,_0x3e4704._0x332bb1,0x1b5,0x126)][_0x5366bf(_0x3e4704._0x524cdf,_0x3e4704._0x28f5d1,0x130,0xc8)](_0x47fd6a)??'')+_0x3c410f);if(isUserVisibleReasoning(this[_0x3bd331(_0x3e4704._0xdc9795,_0x3e4704._0x561359,0x96,_0x3e4704._0x279a95)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x47fd6a,'delta':_0x3c410f,'itemId':_0x255b72,'outputIndex':_0x7d6418}];}break;}case _0x5366bf(_0x3e4704._0xc92264,0x12a,_0x3e4704._0x37bc92,-_0x3e4704._0x4b315e):{const _0x8ba43a=typeof _0x22cc92['item_id']==='string'?_0x22cc92['item_id']:typeof _0x22cc92[_0x3bd331(0x115,0x1dc,0x91,_0x3e4704._0x22f58f)]===_0x3bd331(_0x3e4704._0x321f16,0x245,0xbe,0x262)?this['outputIndexToReasoningId'][_0x5366bf(0x144,0x1b5,_0x3e4704._0x3c7419,0x79)](_0x22cc92[_0x5366bf(_0x3e4704._0x531e2f,_0x3e4704._0x1bf3b3,0xf9,_0x3e4704._0x36e67)]):void 0x0,_0x4ed48d=typeof _0x22cc92['output_index']==='number'?_0x22cc92[_0x3bd331(_0x3e4704._0x41663e,0x75,0x107,_0x3e4704._0x135084)]:0x0,_0x48bb21=typeof _0x22cc92[_0x3bd331(0x1cb,0x28e,_0x3e4704._0x6e2300,_0x3e4704._0x2ca6e5)]===_0x5366bf(0x209,0x1a3,0x187,0x1a7)?_0x22cc92['content_index']:0x0,_0x57dcfe=typeof _0x22cc92[_0x5366bf(-0x34,0x13b,0x82,_0x3e4704._0x5625a9)]===_0x5366bf(0x196,0x15d,_0x3e4704._0x143340,0x23d)?_0x22cc92[_0x3bd331(_0x3e4704._0xa574b8,_0x3e4704._0x14fee6,0xb6,0xfc)]:'';_0x8ba43a&&this[_0x3bd331(0xd6,0x1a2,0x120,0x14)](_0x8ba43a,_0x4ed48d)['textByIndex']['set'](_0x48bb21,_0x57dcfe);break;}case _0x5366bf(_0x3e4704._0x551476,_0x3e4704._0x5dc4fa,0x159,_0x3e4704._0xeb00f2):{this[_0x3bd331(_0x3e4704._0x328a85,_0x3e4704._0x46b1a1,_0x3e4704._0x3327da,_0x3e4704._0x19d46)]=_0x22cc92[_0x5366bf(0x42,0xda,0xd2,_0x3e4704._0x272f4c)];break;}case _0x5366bf(_0x3e4704._0x435a13,0x15e,_0x3e4704._0x4a91da,0x67):{const _0x2ea228=_0x22cc92[_0x5366bf(_0x3e4704._0x4d004b,_0x3e4704._0x4c8a17,_0x3e4704._0x49769f,0xc6)];throw new ProviderStreamEventError(_0x2ea228?.['error']?.[_0x5366bf(_0x3e4704._0x55d463,_0x3e4704._0x22cc37,_0x3e4704._0x2737a6,0x26d)]??_0x3bd331(_0x3e4704._0x22cbb7,_0x3e4704._0x49f7c1,_0x3e4704._0x16aefb,0x43),{'code':_0x2ea228?.[_0x5366bf(_0x3e4704._0xe89272,0x11b,_0x3e4704._0x2bd974,_0x3e4704._0x4146d9)]?.[_0x5366bf(_0x3e4704._0xbfaa0,0x163,_0x3e4704._0x348775,_0x3e4704._0x4ebc20)],'retryable':!![]});}case'error':{const _0x5ca319=_0x22cc92['error'];throw new ProviderStreamEventError(_0x5ca319?.[_0x5366bf(0x284,0x21c,0x21b,_0x3e4704._0x367a9e)]??_0x5366bf(0x57,0xf5,_0x3e4704._0x1cb8aa,_0x3e4704._0x2a1ffb),{'code':_0x5ca319?.[_0x3bd331(0x1f6,0x164,0x28b,_0x3e4704._0x18aa6c)],'retryable':!![],'status':typeof _0x22cc92[_0x3bd331(0x26b,_0x3e4704._0x5787cc,0x230,0x2dc)]===_0x3bd331(_0x3e4704._0x4e8fb1,0x12a,0x17f,0xc9)?_0x22cc92[_0x3bd331(0x26b,0x192,_0x3e4704._0x1b4647,0x335)]:void 0x0});}}return[];}[_0x551389(0x363,0x325,0x3ad,0x2f7)](){const _0x1c946f={_0x1fb4cf:0x2b1,_0x59b925:0x38,_0x1b219c:0x8f,_0x17a7de:0x8a,_0x268c27:0x8d,_0x38c5ce:0x6d,_0x252608:0x52,_0x540bbc:0x117,_0x58b07d:0xb1,_0x1d4cc3:0xb6,_0x42b478:0xe4,_0xae9420:0x137,_0x115aeb:0x11c,_0x4b820c:0x218,_0x123121:0x1b1,_0x398602:0xb0,_0x21f5fe:0x83,_0x38d073:0x22,_0x4c11bf:0x75,_0x5a5cbc:0x107,_0x5a69ab:0x16,_0x33e3ba:0x1a,_0x2d7d98:0x12,_0x40b2ea:0x17e,_0x4c92b2:0x115,_0x40ca39:0xb9,_0x5da444:0x1af,_0xa7fc2:0xe7,_0x113607:0xb7,_0x2f959a:0x19b,_0x18e2ce:0x126,_0x5d7293:0xf,_0x4adf41:0x153,_0x10a864:0x1c6,_0x2aa3d6:0xda,_0x3096c5:0x4b,_0x24cb35:0x66,_0x3c819c:0x9d,_0x5a7b95:0x180,_0x415437:0xe2,_0x545c55:0x11c,_0x498945:0x37,_0x2732e8:0x132,_0x577ccc:0x1c5,_0x941b6b:0x2b2,_0x423fbe:0x21f,_0x52d181:0x1a1,_0x44502a:0xac,_0x1412fc:0x1a9,_0x2ee3b2:0xb2,_0x1d9265:0x107,_0x2e9028:0xc9,_0x89cc1e:0x2d,_0x5aac8a:0xbe,_0xe4b025:0x92,_0x15b8cf:0x21f,_0x1b097b:0x19e,_0x4c01bc:0x4c,_0x5b4625:0xaa,_0x100932:0x146,_0x56af7c:0x16d,_0x138f1e:0x172,_0x7283ca:0x17f,_0x35c63a:0x9d,_0x57d76e:0x17f,_0x1a1744:0x15a,_0x33a51b:0x84,_0x227d28:0x150},_0x268417={_0x20b42f:0x130},_0x14bf67={_0x2a9516:0xcd,_0x1b61a2:0x190,_0x1365c0:0x1c6},_0x3ad215=[];for(const [_0x23be49,_0x371ea5]of this[_0x4ba483(-0x13a,-_0x1c946f._0x1fb4cf,-0x1ed,-0x236)][_0x326a01(_0x1c946f._0x59b925,_0x1c946f._0x1b219c,0x71,-_0x1c946f._0x17a7de)]()){const _0x4c315f=_0x371ea5[_0x4ba483(-0xfa,-0x102,-_0x1c946f._0x268c27,0x39)]('');if(_0x4c315f['length']===0x0)continue;_0x3ad215[_0x4ba483(_0x1c946f._0x38c5ce,-0x11,-_0x1c946f._0x252608,-_0x1c946f._0x540bbc)]({'index':_0x23be49,'item':{'type':_0x326a01(0x17,-_0x1c946f._0x58b07d,-_0x1c946f._0x1d4cc3,-0xc8),'role':_0x4ba483(-_0x1c946f._0x42b478,-0xa2,-_0x1c946f._0xae9420,-_0x1c946f._0x115aeb),'content':[{'type':_0x4ba483(-_0x1c946f._0x4b820c,-_0x1c946f._0x123121,-0x147,-0xa3),'text':_0x4c315f}]}});}function _0x326a01(_0x384bf9,_0x17f402,_0x593282,_0x4e07e2){return _0x551389(_0x384bf9-0x165,_0x384bf9- -0x44b,_0x17f402,_0x4e07e2-0x24);}for(const _0x576f64 of this['reasoningItems'][_0x4ba483(-_0x1c946f._0x398602,-0x78,-_0x1c946f._0x21f5fe,0xd)]()){_0x3ad215[_0x326a01(0x47,-_0x1c946f._0x38d073,-0x78,-_0x1c946f._0x4c11bf)]({'index':_0x576f64[_0x4ba483(-_0x1c946f._0x5a5cbc,0x49,-0xa3,_0x1c946f._0x5a69ab)]??_0x3ad215[_0x326a01(-0xd9,-_0x1c946f._0x33e3ba,-_0x1c946f._0x2d7d98,0x0)],'item':{'type':_0x326a01(-_0x1c946f._0x40b2ea,-_0x1c946f._0x4c92b2,-0x146,-0xca),'id':_0x576f64['id'],..._0x576f64[_0x4ba483(-_0x1c946f._0x40ca39,-_0x1c946f._0x5da444,-0x150,-_0x1c946f._0xa7fc2)]?{'encrypted_content':_0x576f64[_0x326a01(-_0x1c946f._0x113607,-0x19f,-_0x1c946f._0x2f959a,-0x120)]}:{},..._0x576f64[_0x326a01(-0xe2,-_0x1c946f._0x18e2ce,-_0x1c946f._0x5d7293,-_0x1c946f._0x4adf41)][_0x4ba483(-0x24f,-0x170,-_0x1c946f._0x10a864,-_0x1c946f._0x2aa3d6)]>0x0?{'summary':Array[_0x4ba483(-_0x1c946f._0x3096c5,-_0x1c946f._0x24cb35,-_0x1c946f._0x3c819c,-_0x1c946f._0x5a7b95)](_0x576f64[_0x326a01(-_0x1c946f._0x415437,-0xdb,-0x71,-0x1d0)]['entries']())[_0x4ba483(-_0x1c946f._0x545c55,_0x1c946f._0x498945,-0x96,-_0x1c946f._0x2732e8)]((_0x2d2e31,_0xbf5e78)=>_0x2d2e31[0x0]-_0xbf5e78[0x0])[_0x4ba483(-_0x1c946f._0x577ccc,-_0x1c946f._0x941b6b,-_0x1c946f._0x423fbe,-_0x1c946f._0x52d181)](([,_0x54bb25])=>{const _0x1fdb26={_0x2851a1:0x11b,_0x186b79:0x28b};function _0x4877d9(_0x45457b,_0x932781,_0x207fb1,_0x1ef5b6){return _0x4ba483(_0x45457b-_0x1fdb26._0x2851a1,_0x932781-0x150,_0x1ef5b6-_0x1fdb26._0x186b79,_0x932781);}return{'type':_0x4877d9(_0x14bf67._0x2a9516,_0x14bf67._0x1b61a2,_0x14bf67._0x1365c0,0x143),'text':_0x54bb25};})}:{},..._0x576f64[_0x4ba483(-_0x1c946f._0x44502a,-0x98,-0xbe,-_0x1c946f._0x1412fc)][_0x326a01(-0x12d,-0x155,-_0x1c946f._0x2ee3b2,-0x218)]>0x0?{'text':Array[_0x4ba483(-0x5,-_0x1c946f._0x1d9265,-0x9d,-_0x1c946f._0x2e9028)](_0x576f64[_0x4ba483(-0xb8,-_0x1c946f._0x89cc1e,-_0x1c946f._0x5aac8a,-0x1a7)][_0x4ba483(-_0x1c946f._0xe4b025,-0x3b,-0x61,-_0x1c946f._0x498945)]())['sort']((_0x37deb7,_0x5b52cf)=>_0x37deb7[0x0]-_0x5b52cf[0x0])[_0x4ba483(-0x22b,-0x273,-_0x1c946f._0x15b8cf,-_0x1c946f._0x1b097b)](([,_0x552046])=>_0x552046)[_0x4ba483(_0x1c946f._0x4c01bc,-0x151,-0x8d,-_0x1c946f._0x5b4625)]('')}:{}}});}for(const _0x5f0156 of this[_0x326a01(-0x183,-0x11d,-0x149,-0x210)][_0x4ba483(-0x148,-0xa4,-0x83,-0xe8)]()){_0x3ad215[_0x4ba483(-0x8b,-0xf3,-_0x1c946f._0x252608,0x39)]({'index':this[_0x4ba483(-0x265,-_0x1c946f._0x100932,-0x1dc,-0x226)][_0x4ba483(-0x1be,-0xb4,-_0x1c946f._0x56af7c,-0x131)](_0x5f0156['id'])??_0x3ad215[_0x4ba483(-0x21d,-0x1b8,-_0x1c946f._0x138f1e,-_0x1c946f._0x7283ca)],'item':{'type':_0x4ba483(-0xa7,-_0x1c946f._0x35c63a,-_0x1c946f._0x57d76e,-_0x1c946f._0x1a1744),'call_id':_0x5f0156['id'],'name':_0x5f0156[_0x326a01(-0xd2,-_0x1c946f._0x33a51b,-0x20,-_0x1c946f._0x227d28)]['name'],'arguments':_0x5f0156['function']['arguments']}});}function _0x4ba483(_0x171407,_0x3290e1,_0x472507,_0x4c2648){return _0xf0dc29(_0x472507- -0x405,_0x3290e1-_0x268417._0x20b42f,_0x4c2648,_0x4c2648-0xbe);}return _0x3ad215['sort']((_0x55846e,_0x56cd12)=>_0x55846e['index']-_0x56cd12[_0x4ba483(-0x157,-0x180,-0x1db,-0x18b)])['map'](_0xcff212=>_0xcff212['item']);}[_0x551389(0x384,0x301,0x3ee,0x30f)](_0x9e27c,_0x1746f6){const _0x4763e2={_0x4f7af5:0x8c,_0x60f0ce:0x17a,_0x8a9320:0x27a,_0x2ccb56:0x508,_0x404873:0x5b2,_0x14829c:0x52a,_0xae67c4:0x500,_0xc3b8:0x4d4,_0x2db3a2:0x569,_0x3b64fe:0x4e2,_0x4e6c93:0x3f3,_0x3b4b16:0x440,_0x457df4:0x1b4},_0x5e68bd={_0x5116b2:0x179},_0x2541a9={_0x459a8c:0x6d,_0x498b67:0xd9},_0x10681f=this[_0x164b13(_0x4763e2._0x4f7af5,0x174,_0x4763e2._0x60f0ce,0xca)]['get'](_0x9e27c);if(_0x10681f)return _0x1746f6!==void 0x0&&(_0x10681f[_0x164b13(0x22a,0x2c8,_0x4763e2._0x8a9320,0x304)]=_0x1746f6,this[_0x17ba4f(_0x4763e2._0x2ccb56,0x4cd,_0x4763e2._0x404873,_0x4763e2._0x14829c)][_0x17ba4f(_0x4763e2._0xae67c4,_0x4763e2._0xc3b8,_0x4763e2._0x2db3a2,_0x4763e2._0x3b64fe)](_0x1746f6,_0x9e27c)),_0x10681f;const _0x4e02ac={'id':_0x9e27c,'outputIndex':_0x1746f6,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x17ba4f(0x4ea,_0x4763e2._0x4e6c93,0x4b5,_0x4763e2._0x3b4b16)]['set'](_0x9e27c,_0x4e02ac);_0x1746f6!==void 0x0&&this[_0x164b13(0x244,0x25e,_0x4763e2._0x457df4,0x29b)][_0x164b13(0x1e6,0x216,0x26f,0x245)](_0x1746f6,_0x9e27c);function _0x17ba4f(_0x39360d,_0x62c4f0,_0x2f090e,_0x2db924){return _0xf0dc29(_0x2db924-0x232,_0x62c4f0-_0x2541a9._0x459a8c,_0x62c4f0,_0x2db924-_0x2541a9._0x498b67);}function _0x164b13(_0x48a4b5,_0x2dc885,_0x4e4779,_0x5a457d){return _0x551389(_0x48a4b5-0x1b6,_0x2dc885- -_0x5e68bd._0x5116b2,_0x5a457d,_0x5a457d-0x1d7);}return _0x4e02ac;}};function createOpenAiResponsesStreamParser(_0x27481c){return new OpenAiResponsesStreamParser(_0x27481c);}function createOpenAiSurfaces(_0xa049d0={}){const _0xb9e974={_0x10446d:0x4c7,_0x469c9b:0x4a2,_0x22af99:0x51a,_0x457472:0x5dd,_0x47257b:0x638,_0x14203a:0x613,_0x46d034:0x642,_0x23c3de:0x5ea,_0x1317fc:0x565,_0x3957a8:0x6ce,_0x5787e5:0x5db,_0x212b59:0x5ea,_0x19fc91:0x562,_0x52f42b:0x62a,_0x51e8c2:0x3aa,_0x49ce6e:0x3e8},_0x4acc75={_0x42cb6a:0x25d},_0x54eb5f={_0x19acf5:0x505},_0x18de7d={_0x83dfdc:0x180},_0x32c743={_0x147427:0x59f,_0x23a945:0x56d},_0xdba3ff={_0x2e614b:0x1e7},_0x5f4707={_0x5905d5:0x121},_0x45d4d9={_0x572731:0x1f8};function _0x3d78b0(_0x5d77bc,_0xf39731,_0x226700,_0x546dac){return _0xf0dc29(_0x5d77bc-_0x45d4d9._0x572731,_0xf39731-0x103,_0xf39731,_0x546dac-0x115);}function _0x2332e8(_0x1a88ef,_0x2df787,_0x2d37ef,_0x147ad7){return _0xf0dc29(_0x2d37ef-0x30b,_0x2df787-0xe1,_0x1a88ef,_0x147ad7-_0x5f4707._0x5905d5);}const _0x252d2d=_0xa049d0[_0x3d78b0(0x4fc,0x461,_0xb9e974._0x10446d,_0xb9e974._0x469c9b)]??_0x2332e8(0x47e,0x545,_0xb9e974._0x22af99,_0xb9e974._0x457472),_0x1d18f5=_0xa049d0[_0x2332e8(0x561,0x54b,0x596,0x62d)]??_0x2332e8(_0xb9e974._0x47257b,0x649,_0xb9e974._0x14203a,0x56b);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x2332e8(0x623,_0xb9e974._0x46d034,_0xb9e974._0x23c3de,_0xb9e974._0x1317fc),'createRequest'(_0xd3ac36){return{'accept':'application/json','body':createChatRequestBody(_0xd3ac36,![]),'path':_0x252d2d};},'parseResponse'(_0x51d470){return parseChatCompletionResponse(_0x51d470);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x2332e8(0x61b,_0xb9e974._0x3957a8,0x675,0x69a),'createRequest'(_0x27bc0b){function _0x237879(_0x4f61b0,_0x1e87bd,_0x3d3392,_0x481f1d){return _0x3d78b0(_0x1e87bd-0x73,_0x481f1d,_0x3d3392-0x37,_0x481f1d-_0xdba3ff._0x2e614b);}return{'accept':_0x237879(0x564,_0x32c743._0x147427,0x57d,_0x32c743._0x23a945),'body':createChatRequestBody(_0x27bc0b,!![]),'path':_0x252d2d};},'createStreamParser'(_0x4a1b5f){return new OpenAiChatCompletionsStreamParser(_0x4a1b5f);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x2332e8(0x6ca,_0xb9e974._0x5787e5,_0xb9e974._0x212b59,0x5f6),'createRequest'(_0x32911b){function _0x4bc5ec(_0x1d568a,_0x219125,_0xb6049e,_0x35af1b){return _0x3d78b0(_0x1d568a-0x28,_0xb6049e,_0xb6049e-_0x18de7d._0x83dfdc,_0x35af1b-0x91);}return{'accept':_0x4bc5ec(0x5d1,_0x54eb5f._0x19acf5,0x5e7,0x6bf),'body':createResponsesRequestBody(_0x32911b,![]),'path':_0x1d18f5};},'parseResponse'(_0x23001e,_0x2bce43){return parseResponsesResponse(_0x23001e,_0x2bce43);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x3d78b0(_0xb9e974._0x19fc91,0x4c5,_0xb9e974._0x52f42b,0x615),'createRequest'(_0x42278f){function _0x157ea3(_0x4f5689,_0x530516,_0x278072,_0x4e5852){return _0x3d78b0(_0x278072- -0x2cf,_0x4f5689,_0x278072-0xcb,_0x4e5852-0xe7);}return{'accept':_0x157ea3(0x307,0x300,_0x4acc75._0x42cb6a,0x308),'body':createResponsesRequestBody(_0x42278f,!![]),'path':_0x1d18f5};},'createStreamParser'(_0x4d7a46){return new OpenAiResponsesStreamParser(_0x4d7a46);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x3d78b0(0x443,_0xb9e974._0x51e8c2,_0xb9e974._0x49ce6e,0x47b),'createRequest'(_0x5d16a4){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x5d16a4),'path':_0x1d18f5};},'createStreamParser'(_0x433700){return createOpenAiResponsesStreamParser(_0x433700);}}];}var OpenAiProviderAdapter=class{[_0xf0dc29(0x36d,0x3d8,0x2e3,0x44a)];constructor(_0x463c55){this['headerResolver']=_0x463c55;}[_0xf0dc29(0x28e,0x34b,0x23b,0x2a1)](){const _0x4974e4={_0xfda7be:0x258},_0x20c5fb={_0x3fafbd:0x55a,_0x3a926b:0x14a};function _0x542a1c(_0x5cdaaf,_0x423b84,_0x463ddf,_0x2ae737){return _0x551389(_0x5cdaaf-0x21,_0x463ddf- -_0x20c5fb._0x3fafbd,_0x423b84,_0x2ae737-_0x20c5fb._0x3a926b);}return new Error(_0x542a1c(-0x30f,-0x2e3,-_0x4974e4._0xfda7be,-0x2c4));}async[_0x551389(0x326,0x374,0x446,0x292)](_0x3acff5,_0xf6ca6f){const _0x4cd784={_0x462709:0xa4,_0x4f523b:0x7d,_0x50710b:0xb7,_0x4f95ff:0x3c,_0x53416d:0x42,_0x495002:0x7a,_0x5f3e5a:0x18,_0x3d46e7:0xd8,_0x2344af:0x96,_0x5c0bf8:0xce,_0x7404ff:0x2,_0x514b7e:0x21,_0x20934e:0x5a,_0x297b4e:0x6b,_0x2620a7:0x14,_0x5ac9d4:0x7,_0x55c101:0xa4,_0x5f697b:0xa3,_0x5bb9a5:0x72,_0x4ce49b:0x94,_0x4ab9fc:0x11,_0x498a34:0xc2,_0x1694b8:0x78,_0x1a5c2d:0x99,_0x5e2b2c:0x14f,_0x21ec49:0x7b,_0x2df407:0x67,_0x198328:0x1c,_0x1082b5:0x52,_0x580fd7:0x79},_0xa9ee7a={_0x4adaa6:0x1a9},_0x4ebcc1={_0x1ae050:0xa7,_0x35b2ce:0x1da};function _0x3501a1(_0x3a78e6,_0x397e36,_0x8257f4,_0x5e80e0){return _0x551389(_0x3a78e6-_0x4ebcc1._0x1ae050,_0x3a78e6- -0x433,_0x8257f4,_0x5e80e0-_0x4ebcc1._0x35b2ce);}const _0x3490b5=new Headers();_0x3490b5[_0x3501a1(-_0x4cd784._0x462709,-0x127,-_0x4cd784._0x4f523b,-0x53)](_0xe1bf47(-_0x4cd784._0x50710b,_0x4cd784._0x4f95ff,-_0x4cd784._0x53416d,_0x4cd784._0x495002),_0xf6ca6f[_0x3501a1(-_0x4cd784._0x5f3e5a,0x9a,_0x4cd784._0x3d46e7,0x6f)]),_0x3490b5[_0xe1bf47(-_0x4cd784._0x2344af,-0xfc,-_0x4cd784._0x5c0bf8,-_0x4cd784._0x7404ff)](_0x3501a1(_0x4cd784._0x514b7e,0x3f,-_0x4cd784._0x20934e,0xf),_0xe1bf47(-0x113,-0x122,-0x74,-0xdf)+_0x3acff5[_0xe1bf47(-0x5f,-0xf6,-0x5a,0x59)][_0x3501a1(-_0x4cd784._0x297b4e,-_0x4cd784._0x2620a7,-0x25,-0x3e)]);_0xf6ca6f[_0x3501a1(-0xa2,-_0x4cd784._0x5ac9d4,-0x28,-0x16e)]!==![]&&_0x3490b5[_0x3501a1(-_0x4cd784._0x55c101,-_0x4cd784._0x5f697b,-_0x4cd784._0x5bb9a5,-0x5e)](_0xe1bf47(-0xe0,-_0x4cd784._0x4ce49b,-0x34,0xa6),'application/json');const _0x537c2a=await this[_0xe1bf47(-_0x4cd784._0x5f697b,-0x97,-_0x4cd784._0x4ab9fc,-0x4)]?.({'body':_0x3acff5[_0x3501a1(-0xd7,-_0x4cd784._0x5f3e5a,-_0x4cd784._0x498a34,-0x1a4)],'credential':_0x3acff5[_0xe1bf47(_0x4cd784._0x1694b8,-0x15,-0x5a,-0xd4)],'request':_0x3acff5[_0x3501a1(-_0x4cd784._0x1a5c2d,-_0x4cd784._0x5e2b2c,-_0x4cd784._0x21ec49,-_0x4cd784._0x2df407)],'session':_0x3acff5[_0xe1bf47(_0x4cd784._0x198328,0x79,-_0x4cd784._0x1082b5,-0x99)],'stream':_0x3acff5['stream']});function _0xe1bf47(_0xc0bf28,_0x210ae7,_0x78da13,_0x45fe45){return _0x551389(_0xc0bf28-_0xa9ee7a._0x4adaa6,_0x78da13- -0x45d,_0x45fe45,_0x45fe45-0x93);}for(const [_0x1a4482,_0x4a0714]of Object[_0xe1bf47(_0x4cd784._0x580fd7,0x63,0x26,0x6c)](_0x537c2a??{})){_0x3490b5['set'](_0x1a4482,_0x4a0714);}return _0x3490b5;}[_0x551389(0x254,0x318,0x2ee,0x25f)](_0x1e4900){return _0x1e4900;}[_0x551389(0x429,0x339,0x3cd,0x28f)](_0x4982b3,_0x4897d6){return resolveSessionBaseUrl(_0x4982b3,_0x4897d6);}[_0x551389(0x431,0x344,0x3ab,0x2ef)](_0x183013,_0x1f85f2){return resolveApiCredential(_0x183013,_0x1f85f2);}async[_0xf0dc29(0x24c,0x2b0,0x1aa,0x2a9)](_0x334c02){return await createOpenAiApiError(_0x334c02);}},OpenAiModel=class extends RoutedModel{['responsesSocketSessions']=new Map();[_0x551389(0x36e,0x3e3,0x454,0x319)];[_0xf0dc29(0x28b,0x33c,0x229,0x21e)];constructor(_0x2388b5={}){const _0x4158da={_0x192fa8:0xcc,_0x41f059:0x241,_0x33abbb:0x17a,_0x409628:0xf,_0x19eac7:0x16c,_0x23dff8:0x113,_0x5d50f0:0x194,_0x1e198e:0x140,_0x2e1982:0x18c,_0x57826f:0x2a1,_0x243c51:0x204,_0x10d249:0x251,_0x2ac599:0x6,_0x26427e:0x19,_0x1af22a:0x60,_0x5c2f00:0x25e,_0x148a4d:0x295,_0x1d6d88:0x68,_0x3a4de5:0x11c,_0x17f96d:0x73,_0x397fa:0x1d9,_0x3def23:0xab,_0x1bcb3b:0x10,_0x430b90:0xe4,_0x1ee121:0x2c,_0x3f36ae:0x3b,_0x409aa1:0xa2},_0x5d8d36={_0x47bd26:0xff,_0x181322:0x1a3},_0x47454d={_0xc7bee6:0x66};function _0x2e1702(_0x519132,_0x2fd8f8,_0x2968ac,_0x2fd725){return _0x551389(_0x519132-0x3b,_0x2968ac- -0x3aa,_0x2fd8f8,_0x2fd725-_0x47454d._0xc7bee6);}const _0x52f727=_0x2388b5['model']??_0x2e1702(-_0x4158da._0x192fa8,-0x36,0x12,-0x54),_0x2bb07d=_0x2388b5['maxTokens']??getDefaultMaxTokens(),_0x3f31ee=_0x2388b5[_0x56fb3b(-0x177,-_0x4158da._0x41f059,-0x17f,-0x1ce)]??_0x2e1702(-0x22,-_0x4158da._0x33abbb,-0xbc,_0x4158da._0x409628),_0x7d2bc7=_0x2388b5[_0x56fb3b(-_0x4158da._0x19eac7,-_0x4158da._0x23dff8,-0x1f8,-_0x4158da._0x5d50f0)]??_0x56fb3b(-0xa6,-0xee,-0x17b,-_0x4158da._0x1e198e);super({'apiKey':_0x2388b5[_0x56fb3b(-_0x4158da._0x2e1982,-_0x4158da._0x57826f,-_0x4158da._0x243c51,-0x236)],'baseUrl':trimTrailingSlashes(_0x2388b5[_0x56fb3b(-0x1f5,-0x1d9,-0x14c,-0x93)]??_0x56fb3b(-_0x4158da._0x10d249,-0x2a5,-0x202,-0x287)),'fetch':_0x2388b5[_0x2e1702(-_0x4158da._0x2ac599,-_0x4158da._0x26427e,_0x4158da._0x1af22a,0xf5)],'maxTokens':_0x2bb07d,'model':_0x52f727,'reasoning':_0x2388b5[_0x56fb3b(-0x345,-_0x4158da._0x5c2f00,-_0x4158da._0x148a4d,-0x23b)],'providerAdapter':new OpenAiProviderAdapter(_0x2388b5['headerResolver']),'providerSessionResolver':_0x2388b5[_0x56fb3b(-0xb4,-_0x4158da._0x1d6d88,-_0x4158da._0x3a4de5,-_0x4158da._0x17f96d)],'requestMutators':_0x2388b5[_0x2e1702(_0x4158da._0x397fa,0x11a,0xf7,_0x4158da._0x3def23)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x2388b5[_0x2e1702(0x15,_0x4158da._0x1bcb3b,0xe2,0x1c0)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x3f31ee,'responsesPath':_0x7d2bc7}),'webSocketFactory':_0x2388b5[_0x56fb3b(-0x20f,-0x157,-0x155,-0x1b8)]});function _0x56fb3b(_0x4dc79a,_0x30ac0c,_0x23221f,_0x574572){return _0xf0dc29(_0x23221f- -0x483,_0x30ac0c-_0x5d8d36._0x47bd26,_0x574572,_0x574572-_0x5d8d36._0x181322);}this[_0x2e1702(_0x4158da._0x430b90,-0x36,0x39,0xec)]=_0x3f31ee,this[_0x2e1702(-_0x4158da._0x1ee121,-_0x4158da._0x3f36ae,-0x40,-_0x4158da._0x409aa1)]=_0x7d2bc7;}['completeViaChatCompletionsSurface'](_0x328598,_0x7b250f){return this['completeViaSurface'](_0x328598,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x7b250f);}[_0x551389(0x413,0x34a,0x29c,0x3c3)](_0x41e06f,_0x4d0d70){const _0x19d909={_0x3cc5d6:0xcc,_0x2b21ec:0xd2},_0x53ef3d={_0x2f9dae:0x1d9,_0x4fe561:0xd4};function _0x5f0b4e(_0xe4d119,_0xfc81c8,_0x1aaee3,_0x134308){return _0xf0dc29(_0x1aaee3- -_0x53ef3d._0x2f9dae,_0xfc81c8-0x183,_0xfc81c8,_0x134308-_0x53ef3d._0x4fe561);}return this[_0x5f0b4e(0x13f,0x148,_0x19d909._0x3cc5d6,_0x19d909._0x2b21ec)](_0x41e06f,OPENAI_RESPONSES_SURFACE,_0x4d0d70);}[_0xf0dc29(0x231,0x17e,0x2d8,0x1fe)](_0x1cc108,_0x40c778){return this['completeViaSurface'](_0x1cc108,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x40c778);}['streamViaChatCompletionsSurface'](_0x358662,_0x38f675){const _0x25488f={_0x5c4722:0x347,_0x5923ce:0x447,_0x54a0c6:0x3ea},_0x1cc6dc={_0x2346a8:0x1c5,_0x51a4d1:0xd,_0x115c72:0xca};function _0x4eb5ec(_0x2c9297,_0x361e00,_0xc4ebe0,_0x5b7f01){return _0x551389(_0x2c9297-_0x1cc6dc._0x2346a8,_0x5b7f01-_0x1cc6dc._0x51a4d1,_0x2c9297,_0x5b7f01-_0x1cc6dc._0x115c72);}return this[_0x4eb5ec(_0x25488f._0x5c4722,0x419,_0x25488f._0x5923ce,_0x25488f._0x54a0c6)](_0x358662,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x38f675);}[_0x551389(0x3bf,0x2f9,0x243,0x252)](_0xa8cae4,_0xef2ba6){return this['streamViaSurface'](_0xa8cae4,OPENAI_RESPONSES_STREAM_SURFACE,_0xef2ba6);}[_0x551389(0x247,0x305,0x21d,0x23c)](_0x1d0101,_0x498366){const _0xbf7f50={_0x48e729:0x176,_0x593423:0x157},_0xa99941={_0x54b626:0xf6,_0x2db0a4:0x35};function _0x2f1995(_0x1f9cf4,_0x54a44a,_0x56bf18,_0x3ec3f8){return _0x551389(_0x1f9cf4-_0xa99941._0x54b626,_0x3ec3f8- -0x28b,_0x1f9cf4,_0x3ec3f8-_0xa99941._0x2db0a4);}return this[_0x2f1995(_0xbf7f50._0x48e729,0x17c,_0xbf7f50._0x593423,0x152)](_0x1d0101,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x498366);}async[_0xf0dc29(0x207,0x18a,0x2ca,0x258)](_0x297e4a,_0x305a5){const _0x1edcef={_0x4b948b:0x5d0,_0x38f48f:0x5fc,_0x4e0d48:0x54b},_0x3e14c6={_0x42d886:0x233,_0x528f2f:0x102};function _0x51c204(_0x5c910a,_0x46b6b7,_0x21eac9,_0xe7963f){return _0x551389(_0x5c910a-0x5e,_0x21eac9-_0x3e14c6._0x42d886,_0x5c910a,_0xe7963f-_0x3e14c6._0x528f2f);}try{return await this['completeViaChatCompletionsSurface'](_0x297e4a,_0x305a5);}catch(_0x460a55){if(_0x460a55 instanceof OpenAiApiError)throw this[_0x51c204(_0x1edcef._0x4b948b,_0x1edcef._0x38f48f,_0x1edcef._0x4e0d48,0x623)](_0x460a55);throw _0x460a55;}}async[_0x551389(0x25f,0x319,0x3a6,0x29d)](_0x58cc94,_0x571fe9){const _0x3d5311={_0x188e54:0x401},_0x729a5b={_0x2fa635:0x1cf};function _0xe64f0f(_0x38502f,_0x30e287,_0x38323c,_0xb2b797){return _0xf0dc29(_0xb2b797-0x24d,_0x30e287-0x66,_0x30e287,_0xb2b797-_0x729a5b._0x2fa635);}try{return await this['completeViaResponsesSurface'](_0x58cc94,_0x571fe9);}catch(_0x386975){if(_0x386975 instanceof OpenAiApiError)throw this[_0xe64f0f(0x45c,_0x3d5311._0x188e54,0x53a,0x486)](_0x386975);throw _0x386975;}}async[_0xf0dc29(0x2e2,0x24e,0x38f,0x303)](_0xcecfcc,_0xf4b9b0){const _0x2d10c0={_0x3d0e67:0x87,_0x252e45:0x116,_0x518871:0x94,_0x3adb76:0x84,_0x2d7b8e:0xf,_0x8ef350:0x3c,_0xbcfd07:0x17f,_0x5e4751:0x14e,_0x2bbac5:0xc2,_0x581e15:0x15c,_0x225c3a:0x14d,_0x4e25ce:0x81,_0x5b4b18:0x1f3,_0x48e5fa:0x14f},_0x4e2a69={_0x7bc32e:0x38,_0x113dac:0x467},_0x35ead9={_0x5e35f9:0x2ae};function _0x298ce9(_0x5d3520,_0xe710ca,_0x3c449a,_0x2272ce){return _0x551389(_0x5d3520-0x54,_0xe710ca- -_0x35ead9._0x5e35f9,_0x3c449a,_0x2272ce-0x11);}function _0x5a7626(_0x3e0bdc,_0x3adc2e,_0x279c5f,_0x1018ca){return _0x551389(_0x3e0bdc-_0x4e2a69._0x7bc32e,_0x3adc2e- -_0x4e2a69._0x113dac,_0x1018ca,_0x1018ca-0x20);}try{let _0x52b683;for await(const _0x52051e of this[_0x5a7626(-0xe2,-_0x2d10c0._0x3d0e67,-_0x2d10c0._0x252e45,-_0x2d10c0._0x518871)](_0xcecfcc,_0xf4b9b0)){_0x52051e['type']===_0x5a7626(_0x2d10c0._0x3adb76,_0x2d10c0._0x2d7b8e,_0x2d10c0._0x8ef350,0x89)&&(_0x52b683=_0x52051e[_0x5a7626(-_0x2d10c0._0xbcfd07,-_0x2d10c0._0x5e4751,-_0x2d10c0._0x2bbac5,-0x234)]);}if(!_0x52b683)throw new Error(_0x298ce9(_0x2d10c0._0x581e15,_0x2d10c0._0x225c3a,_0x2d10c0._0x4e25ce,0x15f));return _0x52b683;}catch(_0x293bbc){if(_0x293bbc instanceof OpenAiApiError)throw this[_0x5a7626(-_0x2d10c0._0x5b4b18,-_0x2d10c0._0x48e5fa,-0xe6,-_0x2d10c0._0x518871)](_0x293bbc);throw _0x293bbc;}}async*['chatStream'](_0x4172d9,_0x32e00f){const _0x5267b6={_0x381609:0x494,_0x365da3:0x47a,_0x59c76d:0x4e2},_0x1ffdc9={_0x477747:0x18b,_0x248923:0x51},_0x426fe8={_0x137d92:0xcc,_0x5b2461:0x154};function _0x39df77(_0x42fc3f,_0x5f00a7,_0x4a3913,_0x191bc4){return _0x551389(_0x42fc3f-_0x426fe8._0x137d92,_0x42fc3f-_0x426fe8._0x5b2461,_0x4a3913,_0x191bc4-0xa4);}function _0x48b40a(_0x341a39,_0x435b4c,_0x150f11,_0x3c0cf2){return _0xf0dc29(_0x435b4c-0x25b,_0x435b4c-_0x1ffdc9._0x477747,_0x150f11,_0x3c0cf2-_0x1ffdc9._0x248923);}try{yield*this[_0x48b40a(0x576,0x4f6,0x59c,0x5d2)](_0x4172d9,_0x32e00f);}catch(_0x368e12){if(_0x368e12 instanceof OpenAiApiError)throw this[_0x48b40a(0x3b2,_0x5267b6._0x381609,_0x5267b6._0x365da3,_0x5267b6._0x59c76d)](_0x368e12);throw _0x368e12;}}async*['responseStream'](_0x82ac8b,_0x3bc922){const _0x5a0fdc={_0x3a8543:0x1a,_0x58ec9a:0xb4,_0x584ecb:0x9e,_0x23ff3b:0x96,_0x1143b0:0xe1,_0x418dd3:0x74,_0x346fb7:0xf0},_0x39de79={_0x255334:0x107,_0x2fb492:0x9},_0x3af48e={_0x116d81:0x8b,_0x31e53e:0x15d};function _0x4b8a4b(_0x2e7a05,_0x2e0b6e,_0x4bd80f,_0x6246bf){return _0xf0dc29(_0x4bd80f-_0x3af48e._0x116d81,_0x2e0b6e-_0x3af48e._0x31e53e,_0x6246bf,_0x6246bf-0x12);}function _0x1e54cb(_0x7b5cf0,_0x4daa24,_0x499074,_0x9e5c0){return _0x551389(_0x7b5cf0-_0x39de79._0x255334,_0x7b5cf0- -0x2df,_0x9e5c0,_0x9e5c0-_0x39de79._0x2fb492);}try{yield*this[_0x1e54cb(_0x5a0fdc._0x3a8543,-_0x5a0fdc._0x58ec9a,_0x5a0fdc._0x584ecb,-_0x5a0fdc._0x23ff3b)](_0x82ac8b,_0x3bc922);}catch(_0xc9e566){if(_0xc9e566 instanceof OpenAiApiError)throw this[_0x1e54cb(0x39,_0x5a0fdc._0x1143b0,_0x5a0fdc._0x418dd3,_0x5a0fdc._0x346fb7)](_0xc9e566);throw _0xc9e566;}}async*[_0xf0dc29(0x301,0x293,0x26c,0x216)](_0x462069,_0xe2a473){const _0xfe5a55={_0x4e6305:0x35d},_0x5c4bec={_0x50b97e:0x45};function _0x1e8a6c(_0x574616,_0x137127,_0x55f6d3,_0x4b9ea3){return _0x551389(_0x574616-0x9f,_0x137127-_0x5c4bec._0x50b97e,_0x55f6d3,_0x4b9ea3-0x1af);}try{yield*this['streamViaPersistentResponsesSocket'](_0x462069,_0xe2a473);}catch(_0x1fba29){if(_0x1fba29 instanceof OpenAiApiError)throw this[_0x1e8a6c(0x2a4,_0xfe5a55._0x4e6305,0x367,0x2a1)](_0x1fba29);throw _0x1fba29;}}['complete'](_0x23e557,_0xe4e9db){const _0x53ec92={_0x58a7d7:0x208,_0xbe01da:0x59,_0x3a2ba7:0x10};function _0x276664(_0x3ff0ac,_0x43b54e,_0xa729a9,_0x2cb6cf){return _0xf0dc29(_0x3ff0ac- -_0x53ec92._0x58a7d7,_0x43b54e-_0x53ec92._0xbe01da,_0xa729a9,_0x2cb6cf-_0x53ec92._0x3a2ba7);}return this[_0x276664(-0x1,-0x14,0x58,-0xeb)](_0x23e557,_0xe4e9db);}[_0x551389(0x372,0x3fe,0x41b,0x49f)](_0x4f92d4,_0x3547cb){const _0x43b2bb={_0x1c7a37:0x399,_0x45d0a2:0x278},_0x4e71a4={_0x402a90:0x13d,_0x27af53:0x65,_0x5cffa0:0x1e1};function _0x19fa8e(_0xa50b13,_0x3cb6a3,_0x3dfe52,_0x478d73){return _0x551389(_0xa50b13-_0x4e71a4._0x402a90,_0xa50b13- -_0x4e71a4._0x27af53,_0x3dfe52,_0x478d73-_0x4e71a4._0x5cffa0);}return this[_0x19fa8e(0x323,_0x43b2bb._0x1c7a37,0x354,_0x43b2bb._0x45d0a2)](_0x4f92d4,_0x3547cb);}['getResponsesSocketSessionState'](_0x219597){const _0x1997c6={_0x289dbd:0x592,_0x50aa7a:0x4b1,_0x36c34d:0x5a8,_0x4175c5:0x480,_0x111f11:0x5f3,_0x133e81:0x512,_0x52b18a:0x53a,_0x3be65d:0x5e1,_0x4f1fa1:0x582,_0x38a9fe:0x55d,_0x422efe:0x4ce,_0xffa21f:0x479},_0x4a0b3e={_0x2f6d22:0x1a1},_0x3775ad={_0x27bd65:0x72,_0x500247:0x13f,_0x3fb3f1:0x1c1};function _0x1afa89(_0x5da268,_0x51be85,_0x55f690,_0x40fb8c){return _0x551389(_0x5da268-_0x3775ad._0x27bd65,_0x5da268-_0x3775ad._0x500247,_0x55f690,_0x40fb8c-_0x3775ad._0x3fb3f1);}const _0x20c743=this[_0x1afa89(_0x1997c6._0x289dbd,0x576,_0x1997c6._0x50aa7a,_0x1997c6._0x36c34d)](_0x219597);function _0x5a4818(_0x39aa48,_0xd21f1b,_0x246680,_0x502ec2){return _0x551389(_0x39aa48-_0x4a0b3e._0x2f6d22,_0x39aa48-0x1b3,_0xd21f1b,_0x502ec2-0x81);}let _0x275e86=this['responsesSocketSessions'][_0x5a4818(0x52a,0x5df,_0x1997c6._0x4175c5,_0x1997c6._0x111f11)](_0x20c743);return!_0x275e86&&(_0x275e86={'key':_0x20c743,'locked':![],'pending':Promise[_0x5a4818(_0x1997c6._0x133e81,_0x1997c6._0x52b18a,0x45e,_0x1997c6._0x3be65d)]()},this[_0x5a4818(_0x1997c6._0x4f1fa1,0x569,_0x1997c6._0x38a9fe,0x519)][_0x1afa89(_0x1997c6._0x422efe,0x43a,0x420,_0x1997c6._0xffa21f)](_0x20c743,_0x275e86)),_0x275e86;}[_0xf0dc29(0x35d,0x3ae,0x3ca,0x2e8)](_0xf3fb02){const _0xc46dc3={_0x4d73be:0x258,_0x893270:0x1a5,_0x240d92:0x264,_0x25b0c3:0x170,_0x2dca47:0x1e8,_0xa4db1a:0x162,_0x405276:0x1dc,_0x51a47c:0x271,_0x477950:0x21c,_0x1a59ed:0x22a,_0x5054ae:0x15b,_0x1f1ccb:0xf1,_0x177716:0x18f},_0x183b25={_0x4b9c33:0x108},_0x55e4f5={_0x140f39:0x23b,_0x3e9816:0xa9};function _0x7ffadb(_0xb24139,_0x146d10,_0x467e97,_0x495807){return _0x551389(_0xb24139-0x1,_0x467e97- -_0x55e4f5._0x140f39,_0xb24139,_0x495807-_0x55e4f5._0x3e9816);}if(_0xf3fb02[_0x7ffadb(0x1b4,0x1f1,_0xc46dc3._0x4d73be,_0xc46dc3._0x893270)]||_0xf3fb02[_0x7ffadb(_0xc46dc3._0x240d92,_0xc46dc3._0x25b0c3,0x214,0x1c0)]||_0xf3fb02['socket'])return;function _0xe93ebb(_0x4c24fe,_0x2216b6,_0x12b300,_0x30ed92){return _0xf0dc29(_0x2216b6- -_0x183b25._0x4b9c33,_0x2216b6-0x137,_0x30ed92,_0x30ed92-0x99);}this[_0xe93ebb(0x161,_0xc46dc3._0x2dca47,0x1b7,0x141)][_0x7ffadb(_0xc46dc3._0xa4db1a,_0xc46dc3._0x405276,0x13c,0x203)](_0xf3fb02[_0x7ffadb(0x15b,0x247,0x18f,_0xc46dc3._0x51a47c)])===_0xf3fb02&&this[_0xe93ebb(0x14e,_0xc46dc3._0x2dca47,_0xc46dc3._0x477950,0x2c8)][_0xe93ebb(0x17d,_0xc46dc3._0x1a59ed,_0xc46dc3._0x5054ae,0x1b7)](_0xf3fb02[_0x7ffadb(0x1dd,_0xc46dc3._0x1f1ccb,_0xc46dc3._0x177716,0x13c)]);}[_0x551389(0x3c6,0x453,0x4f4,0x466)](_0x5730a7){const _0x137400={_0x316b01:0x159},_0x3405ba={_0x3792da:0x83};function _0x5992a0(_0x4a66d7,_0x48b2a7,_0x4a78b3,_0x2110fa){return _0xf0dc29(_0x4a78b3- -_0x3405ba._0x3792da,_0x48b2a7-0xf2,_0x4a66d7,_0x2110fa-0x87);}return''+trimTrailingSlashes(this['baseUrl'])+this[_0x5992a0(_0x137400._0x316b01,0x255,0x208,0x167)]+'::'+_0x5730a7;}async['acquireResponsesSocketLock'](_0x154dbc){const _0x5bbb0e={_0x26d4ba:0xa0,_0x5ce51c:0x1cf,_0x1fdf8e:0x218,_0x2602f0:0x14f,_0x4155a3:0x122,_0x596171:0x20,_0x24bbe0:0x77,_0x9750df:0x184,_0x2663cd:0x11,_0x4c5c14:0xe6,_0x105f92:0x39,_0x53f9fd:0x189},_0x1151d2={_0x20196f:0x4bd,_0x573ee4:0xf7,_0x40140a:0x13},_0x1a25e0={_0x5eab9d:0xa2},_0x120c57={_0x5d5f3:0x62},_0x4fbc59={_0x2ad17c:0x579,_0x12c547:0x18d},_0xe637c=_0x154dbc[_0x6ada5c(-0x172,-_0x5bbb0e._0x26d4ba,-_0x5bbb0e._0x5ce51c,-_0x5bbb0e._0x1fdf8e)][_0x6ada5c(-_0x5bbb0e._0x2602f0,-0x13e,-0x10e,-0x109)](()=>{});function _0x6ada5c(_0x6a73b4,_0x6152ad,_0x4aa339,_0x1e5e2a){return _0x551389(_0x6a73b4-0x1a2,_0x6a73b4- -_0x4fbc59._0x2ad17c,_0x6152ad,_0x1e5e2a-_0x4fbc59._0x12c547);}let _0x5bdc3a;function _0x3ecf46(_0x4d4c72,_0x5517e1,_0x6b6cc5,_0x1a79b2){return _0xf0dc29(_0x1a79b2- -0x39f,_0x5517e1-_0x120c57._0x5d5f3,_0x6b6cc5,_0x1a79b2-0xcc);}const _0x2c789b=new Promise(_0x2d7cb0=>{_0x5bdc3a=_0x2d7cb0;});return _0x154dbc[_0x3ecf46(-_0x5bbb0e._0x4155a3,-_0x5bbb0e._0x596171,-0xd5,-_0x5bbb0e._0x24bbe0)]=_0xe637c[_0x3ecf46(-_0x5bbb0e._0x9750df,-0x7d,_0x5bbb0e._0x2663cd,-0xcf)](()=>_0x2c789b),await _0xe637c,_0x154dbc[_0x6ada5c(-_0x5bbb0e._0x4c5c14,-_0x5bbb0e._0x105f92,-_0x5bbb0e._0x53f9fd,-0xd4)]=!![],()=>{const _0x5745b6={_0x214772:0x3d1};function _0x262911(_0x93de79,_0x4801b1,_0x3964d2,_0xaf5846){return _0x3ecf46(_0x93de79-0x153,_0x4801b1-0xb5,_0x4801b1,_0x3964d2-_0x1a25e0._0x5eab9d);}_0x154dbc[_0x1f6bb7(0x312,_0x1151d2._0x20196f,0x3e6,0x495)]=![];function _0x1f6bb7(_0x365bb1,_0x209c0c,_0x2657ec,_0x36a47a){return _0x3ecf46(_0x365bb1-0xe7,_0x209c0c-0x142,_0x209c0c,_0x2657ec-_0x5745b6._0x214772);}_0x5bdc3a?.(),this[_0x262911(0x11f,_0x1151d2._0x573ee4,0x60,-_0x1151d2._0x40140a)](_0x154dbc);};}async[_0xf0dc29(0x3be,0x2ec,0x3a9,0x428)](_0x317f27,_0x33ccd7){const _0x3733e3={_0x14eb23:0x4fc,_0x43b99d:0x53a,_0x215cfa:0x407,_0x3bc377:0x26d,_0x551566:0x2f8,_0x267e3d:0x2e3,_0x3e7ed8:0x3b9,_0x5664ed:0x36a,_0x2b34f3:0x37b,_0x485e31:0x3c6,_0x13967a:0x327,_0x3afef4:0x410,_0x24cae6:0x3ca,_0x33ddf0:0x3d1,_0x19128a:0x2cc,_0x2350fd:0x14d,_0x5eac7d:0x1f8,_0x5f0c65:0x221,_0x2dedba:0x26e,_0x35d5b7:0x1af,_0x2ab63d:0x3c2,_0x305643:0x473,_0x369cc1:0x49f,_0x11d90b:0x468,_0x605ebf:0x37c},_0x437ab9={_0x31874d:0x75,_0x5860e7:0xb7},_0x1d5741={_0x3130a8:0x13c,_0x3dc6e2:0x1cf},_0x4dfed2=this[_0x4d36ce(0x459,0x56d,_0x3733e3._0x14eb23,_0x3733e3._0x43b99d)](_0x317f27);function _0x4d36ce(_0x1f34c1,_0x11ae86,_0x3dc2f6,_0x1ecd33){return _0xf0dc29(_0x3dc2f6-_0x1d5741._0x3130a8,_0x11ae86-0x19e,_0x1ecd33,_0x1ecd33-_0x1d5741._0x3dc6e2);}const _0x391b6c=toModelRequest(_0x4dfed2),_0x221673=await prepareProviderRequest(_0x391b6c,{'sessionManager':this[_0x4d36ce(0x46b,_0x3733e3._0x215cfa,0x4e9,0x444)],'requestMutators':this['requestMutators'],'signal':_0x33ccd7}),_0x241343=toChatRequest(_0x221673[_0x5f0368(_0x3733e3._0x3bc377,0x31a,_0x3733e3._0x551566,_0x3733e3._0x267e3d)]),_0x799f84=this[_0x4d36ce(_0x3733e3._0x3e7ed8,_0x3733e3._0x5664ed,0x335,_0x3733e3._0x2b34f3)]['resolveCredential'](this['apiKey'],_0x221673[_0x4d36ce(0x382,0x509,0x468,_0x3733e3._0x485e31)]);if(!_0x799f84)throw this[_0x4d36ce(_0x3733e3._0x13967a,_0x3733e3._0x3afef4,_0x3733e3._0x24cae6,_0x3733e3._0x33ddf0)]();function _0x5f0368(_0x51e1bd,_0x4f9d83,_0x2f43bf,_0x166a4e){return _0x551389(_0x51e1bd-_0x437ab9._0x31874d,_0x166a4e- -_0x437ab9._0x5860e7,_0x2f43bf,_0x166a4e-0x1b9);}return{'baseUrl':this[_0x5f0368(_0x3733e3._0x19128a,_0x3733e3._0x2350fd,_0x3733e3._0x5eac7d,_0x3733e3._0x5f0c65)][_0x5f0368(_0x3733e3._0x2dedba,0x1f8,_0x3733e3._0x35d5b7,0x282)](this[_0x4d36ce(_0x3733e3._0x2ab63d,0x3e5,_0x3733e3._0x305643,_0x3733e3._0x369cc1)],_0x221673[_0x5f0368(0x43c,0x380,0x3af,0x354)]),'credential':_0x799f84,'request':_0x241343,'session':_0x221673[_0x4d36ce(0x510,0x39e,_0x3733e3._0x11d90b,_0x3733e3._0x605ebf)]};}[_0x551389(0x4b5,0x406,0x405,0x45c)](_0x5dea01,_0x303c55,_0x54b1a7={}){const _0x1f708f={_0x347568:0x15,_0x16d6f7:0x6,_0x33200d:0xf2,_0x208e14:0x1af,_0x20ae77:0x1ac},_0x4678b9={_0x57adcd:0x122},_0x4abfc7={_0x47ea41:0x269};function _0x60a276(_0x9a7ec2,_0x490e1d,_0x139afe,_0x391e0f){return _0xf0dc29(_0x490e1d- -_0x4abfc7._0x47ea41,_0x490e1d-0x69,_0x9a7ec2,_0x391e0f-0x36);}if(!_0x54b1a7['forceFullReplay']){const _0x4636eb=this[_0x60a276(0x118,0x129,0x17e,0x1b7)](_0x5dea01);if(_0x4636eb&&_0x303c55['lastResponseId']&&_0x4636eb['responseId']===_0x303c55[_0x60a276(0x5e,0x7c,-_0x1f708f._0x347568,_0x1f708f._0x16d6f7)]){const _0x563030=toOpenAiResponsesRequest({..._0x5dea01,'messages':_0x5dea01['messages'][_0xce987a(0x25a,0x229,0x282,0x1e1)](_0x4636eb[_0xce987a(_0x1f708f._0x33200d,0x1cb,_0x1f708f._0x208e14,_0x1f708f._0x20ae77)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x5dea01,{'input':_0x563030,'previousResponseId':_0x4636eb['responseId']}),'previousResponseId':_0x4636eb['responseId']};}}function _0xce987a(_0x9db1ca,_0x3e28ba,_0x2f7ec,_0x5b9fdd){return _0x551389(_0x9db1ca-0x69,_0x2f7ec- -_0x4678b9._0x57adcd,_0x5b9fdd,_0x5b9fdd-0xdd);}return{'event':createOpenAiResponsesWebSocketEvent(_0x5dea01)};}[_0x551389(0x3ec,0x471,0x467,0x39f)](_0xf65adb){const _0xc2546a={_0x5674fc:0x15f,_0x2732d2:0x88,_0x5ae503:0x1d9,_0x1c8a6f:0x2f9,_0x647832:0x2f8,_0x124724:0x380,_0x5ce298:0x3a1,_0x2e9254:0x3f4,_0x475c48:0x161,_0x4f5853:0xb3,_0x36ae34:0x190,_0x405c3d:0x3e5},_0x5ac030={_0xe1bf99:0x1dc,_0x3a8ba0:0x1b2,_0x17f525:0x1e0},_0x43d396={_0x51da66:0xa};for(let _0x55cc9f=_0xf65adb[_0x420a31(_0xc2546a._0x5674fc,0x12c,_0xc2546a._0x2732d2,_0xc2546a._0x5ae503)][_0x35cf4f(0x2ea,_0xc2546a._0x1c8a6f,_0xc2546a._0x647832,0x2d6)]-0x1;_0x55cc9f>=0x0;_0x55cc9f-=0x1){const _0x486b1f=_0xf65adb[_0x35cf4f(_0xc2546a._0x124724,_0xc2546a._0x5ce298,0x31c,_0xc2546a._0x2e9254)][_0x55cc9f],_0x16c7fe=_0x486b1f[_0x420a31(_0xc2546a._0x475c48,0x207,_0xc2546a._0x4f5853,_0xc2546a._0x36ae34)]==='assistant'?_0x486b1f['providerState']?.[_0x35cf4f(_0xc2546a._0x405c3d,0x309,0x3e6,0x23b)]:void 0x0;if(_0x16c7fe)return{'messageIndex':_0x55cc9f,'responseId':_0x16c7fe};}function _0x35cf4f(_0x37a0e7,_0x46ef66,_0x8c59b3,_0x12debb){return _0x551389(_0x37a0e7-0x196,_0x46ef66- -0x79,_0x37a0e7,_0x12debb-_0x43d396._0x51da66);}function _0x420a31(_0x1da9c1,_0x3d3991,_0x22f3b1,_0x49a3dd){return _0xf0dc29(_0x1da9c1- -_0x5ac030._0xe1bf99,_0x3d3991-_0x5ac030._0x3a8ba0,_0x49a3dd,_0x49a3dd-_0x5ac030._0x17f525);}return void 0x0;}[_0x551389(0x54a,0x494,0x454,0x537)](_0x29696a){const _0xb33bdf={_0x5b986f:0x158,_0x293ac7:0x1ec,_0x1272e1:0x18c,_0x29d340:0x1c5},_0x37d300={_0x7ff849:0x1f3,_0x5522b1:0x94},_0x38313b={_0x490a6c:0x386};function _0x42be62(_0x5aafc8,_0x88d1df,_0x2d8f86,_0x549933){return _0x551389(_0x5aafc8-0x175,_0x549933- -_0x38313b._0x490a6c,_0x88d1df,_0x549933-0xea);}function _0x43a714(_0x40468d,_0x435529,_0x5cde38,_0x3213bb){return _0xf0dc29(_0x40468d- -0x1ea,_0x435529-_0x37d300._0x7ff849,_0x5cde38,_0x3213bb-_0x37d300._0x5522b1);}return _0x29696a instanceof ProviderStreamEventError&&(_0x29696a[_0x42be62(0xa6,0x9c,0x28,0x9b)]==='previous_response_not_found'||_0x29696a[_0x43a714(_0xb33bdf._0x5b986f,0x241,0x1b0,0x1ef)]===_0x43a714(0x16d,_0xb33bdf._0x293ac7,_0xb33bdf._0x1272e1,_0xb33bdf._0x29d340));}['invalidateResponsesSocketSession'](_0x4888eb){const _0x10abe4={_0x193ede:0x17d,_0x1304a8:0x15c,_0x45f273:0x121,_0x2534e0:0x199,_0x48c696:0x174,_0x1ca4c8:0x3de,_0xf5e404:0x114,_0x36c400:0x309,_0x176b36:0x2e1,_0x460ecb:0x25d,_0x3637e0:0x2ed,_0x5adb9a:0x2b3},_0x52c8cc={_0x2b224a:0x3dd,_0x59f179:0x1bd},_0x569125={_0x3db033:0x1cb},_0x2387a1=_0x4888eb[_0xe6d214(-_0x10abe4._0x193ede,-_0x10abe4._0x1304a8,-_0x10abe4._0x45f273,-0x14b)];_0x4888eb[_0xe6d214(-0x116,-_0x10abe4._0x2534e0,-0x121,-_0x10abe4._0x48c696)]=void 0x0,_0x4888eb[_0x91bd4a(0x384,_0x10abe4._0x1ca4c8,0x35f,0x460)]=void 0x0;function _0x91bd4a(_0x4f49e3,_0x55d0ed,_0x23c4ec,_0x440364){return _0xf0dc29(_0x4f49e3-0x14,_0x55d0ed-_0x569125._0x3db033,_0x440364,_0x440364-0x61);}_0x4888eb[_0xe6d214(-0x1b1,-0xc9,-0xf8,-0x44)]=void 0x0;function _0xe6d214(_0x372a56,_0x2f28f8,_0x2133b5,_0x154b1b){return _0xf0dc29(_0x2133b5- -_0x52c8cc._0x2b224a,_0x2f28f8-0x1d6,_0x2f28f8,_0x154b1b-_0x52c8cc._0x59f179);}_0x2387a1?.[_0xe6d214(-_0x10abe4._0xf5e404,-0x119,-0x13e,-0x13f)]===WebSocket[_0x91bd4a(_0x10abe4._0x36c400,_0x10abe4._0x176b36,_0x10abe4._0x460ecb,_0x10abe4._0x3637e0)]&&_0x2387a1['close'](0x3e8,_0x91bd4a(0x354,0x2b1,_0x10abe4._0x5adb9a,0x3f4));}async['getOrCreateResponsesSocket'](_0x4a7ca4,_0x102f68,_0xd0ce1f,_0x4cac29,_0x59fb07){const _0x152e03={_0x39c364:0x20e,_0x2d724b:0x1e9,_0x241d3f:0x179,_0x4d992d:0xce,_0x357ca9:0x1c6,_0x3bd3bf:0x196,_0x3660b9:0x1ad,_0x3e33af:0x6b,_0x4cdecc:0x8,_0x43380b:0x45,_0x1ac5f5:0x86,_0x49e964:0xc5,_0x3e2256:0xb9,_0x489605:0xd6,_0x365652:0x9d},_0x516aa3={_0x4773d0:0x245,_0xb4d844:0x202,_0x28132e:0x2b,_0x2b9877:0x3d5,_0xedcc0:0x379,_0x5f1593:0x486,_0x421721:0x39b,_0x19152e:0x444,_0x177821:0xe3,_0x42e364:0x182,_0x182a63:0x431,_0x50ddf4:0x40e,_0x3af83c:0x5c,_0x75d3fc:0x130,_0x399baa:0x5,_0x5541ef:0x37,_0x9b418b:0x7b,_0x10b65d:0x1b,_0x133213:0x7a,_0x33518e:0x83,_0x17948d:0x2d,_0x1e5117:0x33,_0x355c4e:0x6d,_0x81391c:0x29,_0x34f8f2:0xf,_0x2e48ec:0x5c,_0x28dd12:0x9d,_0x4bfbb1:0x122,_0x470d57:0x50,_0x12b73a:0x9a},_0x56ba4c={_0x1d1502:0x11c,_0x47fc9c:0x179,_0x131fd7:0x14b,_0x1da02e:0x239,_0x4cc043:0x23b,_0x24e287:0xfe,_0x592ea8:0x139,_0x5e2446:0x1c4},_0x41498b={_0x32a203:0x1ed},_0x506310={_0x1f853c:0x74,_0x4f1606:0x153};function _0x18fcd5(_0x46dc2e,_0x212626,_0x2bb31c,_0x4af109){return _0x551389(_0x46dc2e-_0x506310._0x1f853c,_0x212626- -0x457,_0x4af109,_0x4af109-_0x506310._0x4f1606);}function _0x45586d(_0x181c44,_0x31f0fc,_0x4b15da,_0x3bfd6b){return _0xf0dc29(_0x3bfd6b- -0x435,_0x31f0fc-_0x41498b._0x32a203,_0x181c44,_0x3bfd6b-0x10);}if(_0x102f68[_0x45586d(-_0x152e03._0x39c364,-_0x152e03._0x2d724b,-0x10d,-_0x152e03._0x241d3f)]?.[_0x45586d(-0x240,-_0x152e03._0x4d992d,-_0x152e03._0x357ca9,-_0x152e03._0x3bd3bf)]===WebSocket[_0x45586d(-_0x152e03._0x3660b9,-_0x152e03._0x3e33af,-0x1ab,-0x140)])return _0x102f68['socket'];if(_0x102f68['connecting'])return await _0x102f68[_0x18fcd5(0xae,-_0x152e03._0x4cdecc,-_0x152e03._0x43380b,0xcc)];_0x102f68[_0x18fcd5(-0xf7,-0x8,_0x152e03._0x1ac5f5,-0xb4)]=((async()=>{const _0x5e2a5c={_0x498c7c:0x103},_0x321d07={_0x4c7e40:0x39c,_0x71f782:0x72},_0x4e3cb5={_0x53bfb2:0x1f3,_0x2d14ed:0x82},_0x388d49=await this[_0x4f9627(0x2b9,_0x516aa3._0x4773d0,0x1dd,_0x516aa3._0xb4d844)]({'request':_0xd0ce1f[_0x274db3(0xb2,-0x90,-_0x516aa3._0x28132e,-0xab)],'body':_0x4cac29,'credential':_0xd0ce1f['credential'],'session':_0xd0ce1f['session'],'stream':!![]},{'accept':_0x4f9627(_0x516aa3._0x2b9877,_0x516aa3._0xedcc0,_0x516aa3._0x5f1593,_0x516aa3._0x421721),'includeContentType':![]});function _0x274db3(_0x5ad140,_0x249545,_0x564be4,_0x6b428a){return _0x45586d(_0x249545,_0x249545-_0x4e3cb5._0x53bfb2,_0x564be4-_0x4e3cb5._0x2d14ed,_0x564be4-0x14f);}_0x388d49['delete'](_0x4f9627(0x360,0x2b9,0x380,_0x516aa3._0x19152e));function _0x4f9627(_0x282cd3,_0x8ad006,_0x4f4758,_0x4c988f){return _0x18fcd5(_0x282cd3-0x11f,_0x282cd3-_0x321d07._0x4c7e40,_0x4f4758-_0x321d07._0x71f782,_0x4f4758);}const _0x5442bf=this[_0x4f9627(0x352,0x3a5,0x436,0x27e)]({'headers':Object[_0x274db3(-0x80,-0x140,-_0x516aa3._0x177821,-_0x516aa3._0x42e364)](_0x388d49[_0x4f9627(0x3c8,_0x516aa3._0x182a63,_0x516aa3._0x50ddf4,0x49d)]()),'url':(''+_0xd0ce1f[_0x274db3(_0x516aa3._0x3af83c,0x115,0x51,_0x516aa3._0x75d3fc)]+this['responsesPath'])[_0x274db3(_0x516aa3._0x399baa,0xe,-_0x516aa3._0x5541ef,_0x516aa3._0x9b418b)](/^http:/,_0x274db3(0x12,-_0x516aa3._0x10b65d,-0x71,-0x12b))['replace'](/^https:/,_0x274db3(-_0x516aa3._0x133213,-0xd9,-0xc5,-0x14f))}),_0x3b0c16=()=>{const _0xa33f5b={_0x1f88a0:0x487,_0xf104d0:0x96};function _0x4d6634(_0x3b141e,_0x30547c,_0x100d2d,_0x3137ca){return _0x4f9627(_0x3b141e- -_0xa33f5b._0x1f88a0,_0x30547c-0x89,_0x30547c,_0x3137ca-_0xa33f5b._0xf104d0);}function _0x453788(_0x1dc423,_0x5b5bc4,_0x32d3c0,_0x1d330a){return _0x274db3(_0x1dc423-0x4b,_0x1dc423,_0x32d3c0- -0x121,_0x1d330a-_0x5e2a5c._0x498c7c);}_0x102f68[_0x453788(-_0x56ba4c._0x1d1502,-_0x56ba4c._0x47fc9c,-_0x56ba4c._0x131fd7,-0xa5)]===_0x5442bf&&(_0x102f68[_0x453788(-0x64,-_0x56ba4c._0x1da02e,-0x14b,-_0x56ba4c._0x4cc043)]=void 0x0,_0x102f68[_0x4d6634(-0x17e,-_0x56ba4c._0x24e287,-_0x56ba4c._0x592ea8,-_0x56ba4c._0x5e2446)]=void 0x0),this['maybeEvictResponsesSocketSession'](_0x102f68);};_0x5442bf[_0x274db3(-0x2a,_0x516aa3._0x33518e,_0x516aa3._0x17948d,_0x516aa3._0x1e5117)]('close',_0x3b0c16);try{return throwIfAborted(_0x59fb07),_0x5442bf['readyState']!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x5442bf,_0x59fb07),throwIfAborted(_0x59fb07),_0x102f68['socket']=_0x5442bf,_0x5442bf;}catch(_0x20f872){_0x3b0c16();_0x5442bf[_0x274db3(-_0x516aa3._0x177821,-0x47,-0x47,-_0x516aa3._0x355c4e)]===WebSocket[_0x274db3(-_0x516aa3._0x81391c,0xac,_0x516aa3._0x34f8f2,_0x516aa3._0x2e48ec)]&&_0x5442bf[_0x4f9627(0x2d2,0x367,0x212,0x28f)](0x3e8,_0x274db3(-_0x516aa3._0x28dd12,_0x516aa3._0x4bfbb1,_0x516aa3._0x470d57,_0x516aa3._0x12b73a));throw _0x20f872;}})());try{return await _0x102f68[_0x18fcd5(_0x152e03._0x4cdecc,-0x8,-_0x152e03._0x49e964,0x7d)];}finally{_0x102f68[_0x18fcd5(-_0x152e03._0x3e2256,-0x8,_0x152e03._0x489605,-_0x152e03._0x365652)]=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x30f45c,_0x5133ba){const _0xb47906={_0x3bb2c0:0x4ed,_0x2704a0:0x3a1,_0x6a4a2c:0x3e3,_0xfbe53f:0x417,_0x434b3b:0x17c,_0x4c1d13:0x212,_0x4c3c6e:0xd1,_0x341dd6:0x14b,_0x55b86e:0x1d2,_0x4bd733:0x315,_0x5bedb5:0x2c5,_0x3a6687:0x22a,_0x49c84e:0x1b3,_0x3ce148:0x234,_0x2c0ae2:0x1cf,_0x4504de:0x1f5,_0x53d8b3:0x126,_0xe90b25:0xa7,_0x44935e:0x209,_0x6b2f6b:0x17d,_0x5686e4:0x196,_0x8da689:0x4de,_0x468189:0x40b,_0x45944e:0x4a8,_0x49d71f:0x265,_0x109a41:0x288,_0x5e1530:0x1f6,_0x6e581:0x20f,_0x194fdb:0x14b,_0x2a6583:0x315,_0x4256ee:0x452,_0x33a56d:0x348,_0x2ac635:0x204,_0x3923ce:0x248},_0x1b4c2f={_0x3f007a:0x177};function _0x5282bf(_0x251df2,_0x356f6b,_0x27bd99,_0x4f63a6){return _0xf0dc29(_0x27bd99-0x56,_0x356f6b-0xb4,_0x4f63a6,_0x4f63a6-0x1c9);}const _0x115d60=this[_0x5282bf(0x4fa,_0xb47906._0x3bb2c0,0x416,_0xb47906._0x2704a0)](_0x30f45c),_0x1d0579=this[_0x5282bf(_0xb47906._0x6a4a2c,0x489,_0xb47906._0xfbe53f,0x501)](_0x115d60[_0x102381(-_0xb47906._0x434b3b,-_0xb47906._0x4c1d13,-0x1b3,-0x28a)][_0x5282bf(0x3b5,0x34c,0x3a2,0x3ac)]);function _0x102381(_0x14b0a9,_0x354ae9,_0x4b0e64,_0x40e847){return _0x551389(_0x14b0a9-0x68,_0x4b0e64- -0x551,_0x40e847,_0x40e847-_0x1b4c2f._0x3f007a);}const _0x4a9b4c=await this[_0x102381(-0xb6,-_0xb47906._0x4c3c6e,-0x14f,-0xaf)](_0x1d0579);try{const _0x479b93=this[_0x102381(-0x12f,-0x1e1,-_0xb47906._0x341dd6,-_0xb47906._0x55b86e)](_0x115d60,_0x1d0579);try{yield*this[_0x5282bf(0x297,_0xb47906._0x4bd733,_0xb47906._0x5bedb5,0x2c4)](_0x115d60[_0x102381(-0xcc,-_0xb47906._0x3a6687,-_0xb47906._0x49c84e,-_0xb47906._0x3ce148)][_0x102381(-_0xb47906._0x2c0ae2,-_0xb47906._0x4504de,-_0xb47906._0x53d8b3,-_0xb47906._0xe90b25)],_0x1d0579,_0x115d60,_0x479b93[_0x102381(-0x1c5,-_0xb47906._0x44935e,-0x27a,-0x19d)],_0x5133ba?.[_0x5282bf(0x1f6,0x17c,0x241,0x306)]);return;}catch(_0x5f2308){if(!_0x479b93[_0x102381(-0x19f,-_0xb47906._0x6b2f6b,-_0xb47906._0x5686e4,-0x171)]||!this[_0x5282bf(0x44a,_0xb47906._0x8da689,_0xb47906._0x468189,_0xb47906._0x45944e)](_0x5f2308)){this[_0x102381(-_0xb47906._0x49d71f,-_0xb47906._0x109a41,-0x1be,-0x15d)](_0x1d0579);throw _0x5f2308;}}this['invalidateResponsesSocketSession'](_0x1d0579);const _0x353dcb=this[_0x102381(-_0xb47906._0x5e1530,-_0xb47906._0x6e581,-_0xb47906._0x194fdb,-0x141)](_0x115d60,_0x1d0579,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0x115d60[_0x5282bf(0x351,0x249,_0xb47906._0x2a6583,0x349)][_0x5282bf(_0xb47906._0x4256ee,0x3a1,0x3a2,_0xb47906._0x33a56d)],_0x1d0579,_0x115d60,_0x353dcb[_0x5282bf(_0xb47906._0x2ac635,_0xb47906._0x3923ce,0x24e,0x1a7)],_0x5133ba?.['signal']);}finally{_0x4a9b4c();}}async*[_0x551389(0x3c0,0x34e,0x32f,0x40d)](_0x44a257,_0x1e6ecb,_0x1fbb98,_0x1cd4dd,_0x3db157){const _0x21405a={_0x4cae22:0x1ca,_0x249eb0:0x7d,_0x2f0b80:0x11b,_0x370b89:0x1c1,_0x87682e:0x2b,_0x5780f1:0x13,_0xa4bd6d:0x67,_0x1fb13d:0x374,_0x52b4ac:0xb6,_0x472142:0x25,_0x1be82b:0x58,_0xce89a3:0x1fd,_0x3b7922:0x2df,_0xa17d7c:0x1fa,_0x3600b2:0xf4,_0x7c7633:0x25,_0x5eda52:0x24c,_0x135c4a:0x16f,_0x421abd:0xca},_0x43ddd8={_0x4823c5:0x49d,_0x489790:0x71},_0x36e666={_0x1e9289:0xf5,_0xdd2441:0x2d0,_0x492609:0x100},_0x4f7a06=await this[_0x5d532d(-_0x21405a._0x4cae22,-_0x21405a._0x249eb0,0xc,-0xdf)](_0x1fbb98,_0x3db157);function _0x570a69(_0x34e0a6,_0x163658,_0x208770,_0x1a3587){return _0x551389(_0x34e0a6-_0x36e666._0x1e9289,_0x34e0a6- -_0x36e666._0xdd2441,_0x163658,_0x1a3587-_0x36e666._0x492609);}const _0x17f34f=await this['getOrCreateResponsesSocket'](_0x44a257,_0x1e6ecb,_0x4f7a06,_0x1cd4dd,_0x3db157),_0x4d5beb=createOpenAiResponsesStreamParser(_0x1fbb98);throwIfAborted(_0x3db157),_0x17f34f[_0x5d532d(-0x207,-_0x21405a._0x2f0b80,-0xf1,-0x1c5)](JSON['stringify'](_0x1cd4dd));for await(const _0xb2c183 of iterateWebSocketMessages(_0x17f34f,_0x3db157)){const _0x1ea076=_0x4d5beb[_0x570a69(0xdc,_0x21405a._0x370b89,_0x21405a._0x87682e,0xb6)]?.(_0xb2c183)??[];yield*_0x1ea076;if(_0x4d5beb[_0x570a69(_0x21405a._0x5780f1,-0xc9,-_0x21405a._0xa4bd6d,0xfa)]?.())break;}if(!_0x4d5beb[_0x5d532d(-0x2cc,-0x21d,-_0x21405a._0x1fb13d,-0x299)]?.())throw new Error(_0x570a69(0x131,_0x21405a._0x52b4ac,0xa3,0x16c));const _0x8b8ebc=_0x4d5beb[_0x570a69(0x45,_0x21405a._0x472142,-_0x21405a._0x1be82b,0x52)]();function _0x5d532d(_0x54d295,_0x27a55b,_0x314136,_0x51d9a4){return _0xf0dc29(_0x51d9a4- -_0x43ddd8._0x4823c5,_0x27a55b-_0x43ddd8._0x489790,_0x314136,_0x51d9a4-0x36);}const _0x3b4c2d=_0x8b8ebc['providerState']?.[_0x5d532d(-_0x21405a._0xce89a3,-_0x21405a._0x3b7922,-0x1a4,-_0x21405a._0xa17d7c)]??_0x8b8ebc['id'];_0x3b4c2d&&(_0x1e6ecb[_0x570a69(_0x21405a._0x3600b2,0x8a,0x198,_0x21405a._0x7c7633)]=_0x3b4c2d),yield{'type':_0x570a69(0x1a6,_0x21405a._0x5eda52,_0x21405a._0x135c4a,_0x21405a._0x421abd),'response':_0x8b8ebc};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0xf0dc29(0x3ac,0x31c,0x37d,0x3b9),'openai-chat-completions',_0x551389(0x44f,0x3b6,0x46d,0x34f),_0x551389(0x200,0x2e9,0x3bc,0x2a5)];function isAnthropicSurface(_0x52096e){return _0x52096e==='anthropic-messages';}function providerFromSurface(_0x4b3a71){const _0x1a43f1={_0x16965c:0x2dc,_0x4044e5:0x33e,_0x1745a0:0x3a3,_0x54b7c6:0x2da,_0xd2edb2:0x298,_0x19d44f:0x346,_0x4ba90a:0x2d6,_0x22fb68:0x5cc,_0x3034f4:0x5a6,_0x58a1e0:0x43f},_0x148eaf={_0x422fce:0x1b},_0x2ba3e2={_0x363187:0xa9,_0x23b1d8:0x10f};function _0x5b19c3(_0x6eaa9c,_0x4cd038,_0x310129,_0x3c83db){return _0xf0dc29(_0x4cd038- -0x21,_0x4cd038-_0x2ba3e2._0x363187,_0x310129,_0x3c83db-_0x2ba3e2._0x23b1d8);}function _0x111a99(_0x4b8264,_0x237079,_0x8e7722,_0x380d02){return _0xf0dc29(_0x8e7722-0x1b2,_0x237079-0x162,_0x4b8264,_0x380d02-_0x148eaf._0x422fce);}return _0x4b3a71[_0x111a99(_0x1a43f1._0x16965c,_0x1a43f1._0x4044e5,_0x1a43f1._0x1745a0,_0x1a43f1._0x54b7c6)]('anthropic')?_0x5b19c3(0x35b,_0x1a43f1._0xd2edb2,_0x1a43f1._0x19d44f,_0x1a43f1._0x4ba90a):_0x111a99(_0x1a43f1._0x22fb68,_0x1a43f1._0x3034f4,0x510,_0x1a43f1._0x58a1e0);}function resolveDefaultBaseUrl(_0x26d75f){const _0x4f2548={_0x14c441:0x254,_0x5a6694:0x24a,_0x2a2467:0x184,_0x4af6f6:0xde,_0x4bf623:0x141,_0x26399b:0xf6,_0x3bac7b:0x144,_0x1a2b5c:0x177,_0x3f669b:0x15c,_0x27f37a:0x18d,_0x85ac0e:0x17e,_0x290e2b:0x31},_0x4614d0={_0x1cd5e1:0x1e7,_0x4ba83a:0x71},_0xc1dfa8={_0x13026b:0x1db};function _0x2c1df3(_0x538b77,_0x1a8b0c,_0x106bc6,_0x47bfa9){return _0xf0dc29(_0x538b77- -_0xc1dfa8._0x13026b,_0x1a8b0c-0x121,_0x47bfa9,_0x47bfa9-0xec);}function _0x16a245(_0x18b53a,_0x25c1fb,_0x571761,_0x25f66c){return _0xf0dc29(_0x18b53a- -_0x4614d0._0x1cd5e1,_0x25c1fb-_0x4614d0._0x4ba83a,_0x25f66c,_0x25f66c-0x101);}if(_0x26d75f===_0x16a245(0x1c5,_0x4f2548._0x14c441,_0x4f2548._0x5a6694,_0x4f2548._0x2a2467))return getProviderProfile(_0x2c1df3(_0x4f2548._0x4af6f6,_0x4f2548._0x4bf623,0xc4,0x13d))?.[_0x2c1df3(0x15c,_0x4f2548._0x26399b,_0x4f2548._0x3bac7b,_0x4f2548._0x1a2b5c)]??'https://api.anthropic.com';return getProviderProfile('openai')?.[_0x2c1df3(_0x4f2548._0x3f669b,0x19f,0x179,_0x4f2548._0x27f37a)]??_0x2c1df3(0xa6,_0x4f2548._0x85ac0e,0x91,-_0x4f2548._0x290e2b);}var ChatModel=class{[_0x551389(0x3ce,0x47c,0x500,0x433)];['maxTokens'];['surface'];[_0xf0dc29(0x35c,0x28d,0x2c3,0x2d6)];[_0xf0dc29(0x3a9,0x330,0x399,0x420)];[_0xf0dc29(0x36e,0x334,0x355,0x346)];constructor(_0x56216f={}){const _0x54d769={_0x14daa3:0x39,_0x431636:0x2b,_0xd65c4f:0x9f,_0x5c586b:0x1aa,_0x4f5249:0x1e0,_0x4378d5:0x7d,_0x3bb9c1:0x6,_0x4d116f:0xac,_0x5849bb:0x7d,_0x3cc7be:0x65,_0x402e99:0xbf,_0x591a5b:0x7a,_0x24b39e:0xb3,_0x4ce5b9:0x1b8,_0x36e6c4:0x1b2,_0x46b4c1:0x279,_0x593d60:0x2fc,_0x1003b7:0x144,_0x5ce153:0x13f,_0x5ad4c3:0x23a,_0xd5603b:0x1d0,_0x242c01:0x244,_0x283302:0x17d,_0x2a51f6:0x13a,_0xe76f53:0xd7,_0x270d4f:0x156,_0x3191fd:0x1e3,_0x32c0b3:0x16e,_0x2af312:0x75,_0x21e313:0x57,_0x426b5b:0x2d,_0xbbd4c5:0x16,_0x152009:0x9b,_0x25374e:0x23b,_0x33be74:0x23e,_0x403859:0x2b0,_0x4d8480:0xdd,_0x824fe4:0x29c,_0x3382e0:0x69,_0x57a5f3:0x3c,_0x1462cb:0x105,_0x15313f:0x282,_0x18658b:0x2df,_0x3bb78b:0x127,_0x5d18e0:0x12b,_0x3c6424:0x130,_0x3f0772:0x2d2,_0x3d873a:0x30,_0x6c7940:0xa8,_0x1eed0e:0xf3,_0x4f8431:0x96},_0x26d552={_0x2a7bf6:0x13e};this[_0x4ac2c9(-_0x54d769._0x14daa3,-_0x54d769._0x431636,-_0x54d769._0xd65c4f,0x5f)]=_0x56216f['model']??getDefaultModel(),this[_0x4ac2c9(-_0x54d769._0x5c586b,-0xdb,-0x19d,-_0x54d769._0x4f5249)]=_0x56216f['maxTokens']??getDefaultMaxTokens(),this[_0x4ac2c9(-_0x54d769._0x4378d5,-_0x54d769._0x3bb9c1,0x1d,-_0x54d769._0x4d116f)]=_0x56216f[_0x4ac2c9(-_0x54d769._0x5849bb,0x61,-_0x54d769._0x3cc7be,-_0x54d769._0x402e99)]??_0x4ac2c9(-0x3b,-0xf2,-0x5a,0x6e),this[_0x4ac2c9(-_0x54d769._0x591a5b,-_0x54d769._0x24b39e,-0x95,-0x107)]=providerFromSurface(this['surface']);function _0x31c336(_0x133e85,_0x2cd7da,_0x2945a2,_0x15333e){return _0xf0dc29(_0x15333e- -0xbe,_0x2cd7da-_0x26d552._0x2a7bf6,_0x133e85,_0x15333e-0x140);}function _0x4ac2c9(_0x3b3aa8,_0x2ce368,_0x1edaea,_0x369348){return _0xf0dc29(_0x3b3aa8- -0x3d6,_0x2ce368-0x24,_0x369348,_0x369348-0x144);}const _0x1369e8=trimTrailingSlashes(_0x56216f[_0x31c336(_0x54d769._0x4ce5b9,_0x54d769._0x36e6c4,0x202,_0x54d769._0x46b4c1)]??resolveDefaultBaseUrl(this['surface']));if(isAnthropicSurface(this[_0x4ac2c9(-0x7d,0x41,-0x165,-0x150)])){this[_0x31c336(_0x54d769._0x593d60,0x359,0x262,0x2eb)]=new AnthropicModel({'apiKey':_0x56216f[_0x4ac2c9(-0x157,-_0x54d769._0x1003b7,-_0x54d769._0x5ce153,-_0x54d769._0x5ad4c3)],'authScheme':_0x56216f[_0x31c336(0x206,_0x54d769._0xd5603b,0x208,_0x54d769._0x242c01)],'baseUrl':_0x1369e8,'fetch':_0x56216f[_0x4ac2c9(-0xab,-_0x54d769._0x283302,-_0x54d769._0x2a51f6,-_0x54d769._0xe76f53)],'maxTokens':this[_0x31c336(_0x54d769._0x270d4f,_0x54d769._0x3191fd,0x109,_0x54d769._0x32c0b3)],'model':this[_0x4ac2c9(-0x39,_0x54d769._0x2af312,0x4f,_0x54d769._0x21e313)],'reasoning':_0x56216f['reasoning'],'providerSessionResolver':_0x56216f[_0x4ac2c9(-0x6f,0x5b,-_0x54d769._0x426b5b,-_0x54d769._0xbbd4c5)],'requestMutators':_0x56216f[_0x4ac2c9(-0x14,0xd6,-0x43,_0x54d769._0x152009)]});return;}this[_0x31c336(0x2e5,_0x54d769._0x25374e,_0x54d769._0x33be74,_0x54d769._0x403859)]=new OpenAiModel({'apiKey':_0x56216f[_0x31c336(_0x54d769._0x4d8480,_0x54d769._0x2a51f6,_0x54d769._0x824fe4,0x1c1)],'baseUrl':_0x1369e8,'fetch':_0x56216f['fetch'],'headerResolver':_0x56216f[_0x4ac2c9(-_0x54d769._0x3382e0,_0x54d769._0x57a5f3,0x46,-_0x54d769._0x1462cb)],'maxTokens':this['maxTokens'],'model':this[_0x31c336(_0x54d769._0x15313f,0x36e,0x296,_0x54d769._0x18658b)],'reasoning':_0x56216f[_0x31c336(_0x54d769._0x3bb78b,_0x54d769._0x5d18e0,0x14f,_0x54d769._0x3c6424)],'providerSessionResolver':_0x56216f[_0x31c336(_0x54d769._0x3f0772,0x254,0x318,0x2a9)],'requestMutators':_0x56216f[_0x4ac2c9(-0x14,0x4e,-_0x54d769._0x3d873a,0xb3)],'webSocketFactory':_0x56216f[_0x4ac2c9(-_0x54d769._0x6c7940,-_0x54d769._0x1eed0e,-0x14d,-_0x54d769._0x4f8431)]});}[_0x551389(0x2fb,0x2d5,0x305,0x36e)](){const _0x142422={_0x2b8fc7:0x1,_0x2e366e:0x6c,_0x332018:0xc5,_0x501049:0x4e,_0x467632:0x22a,_0x10cffb:0x14c,_0x1470b4:0x1e1,_0x3ae996:0xf6,_0x22ffb3:0x159,_0xfb995f:0x165,_0x133cac:0x9e,_0x1da1fc:0x74},_0x51f389={_0x44f750:0x1df},_0x3bbc6c={_0x25dfe2:0x5f,_0x26245b:0x4fc,_0x49f4c0:0x25};function _0x4ac6ca(_0x56d726,_0x445d05,_0x114adf,_0xc8b5de){return _0x551389(_0x56d726-_0x3bbc6c._0x25dfe2,_0x114adf- -_0x3bbc6c._0x26245b,_0x56d726,_0xc8b5de-_0x3bbc6c._0x49f4c0);}function _0x567357(_0x358e99,_0x3dba18,_0x2721ab,_0x4a32cd){return _0x551389(_0x358e99-0x1f2,_0x4a32cd- -0x4d6,_0x2721ab,_0x4a32cd-_0x51f389._0x44f750);}if(!this[_0x567357(-_0x142422._0x2b8fc7,-_0x142422._0x2e366e,-_0x142422._0x332018,-_0x142422._0x501049)])throw new Error(_0x567357(-_0x142422._0x467632,-_0x142422._0x10cffb,-0x1ad,-_0x142422._0x1470b4)+this[_0x567357(-_0x142422._0x3ae996,-_0x142422._0x22ffb3,-_0x142422._0xfb995f,-_0x142422._0x133cac)]);return this[_0x4ac6ca(-0xfb,0x20,-_0x142422._0x1da1fc,-0xf7)];}[_0x551389(0x3b7,0x3b3,0x3a7,0x322)](){const _0x52811a={_0x39ea0e:0xb9,_0x101f51:0x1ff,_0x36815f:0x1e5,_0x598cd7:0x19c,_0x4b60bb:0x247,_0x1a94ef:0x187,_0x413c8c:0x5b,_0x249ea5:0xb7,_0x12c7f6:0x118,_0x2b9986:0xda},_0x2a2fa6={_0x4aa51e:0x8e,_0x2fbfac:0x527},_0x2bb86e={_0x36655e:0x1d2,_0x33811d:0x28,_0x332fea:0xaa};if(!this[_0x24c499(_0x52811a._0x39ea0e,_0x52811a._0x101f51,_0x52811a._0x36815f,_0x52811a._0x598cd7)])throw new Error(_0x2ad22c(-0x19e,-0xb8,-0x12,-0xbd)+this[_0x24c499(0x16a,_0x52811a._0x4b60bb,0x197,_0x52811a._0x1a94ef)]);function _0x24c499(_0xc39f23,_0x16f4d9,_0x25a064,_0x518640){return _0xf0dc29(_0x518640- -_0x2bb86e._0x36655e,_0x16f4d9-_0x2bb86e._0x33811d,_0x25a064,_0x518640-_0x2bb86e._0x332fea);}function _0x2ad22c(_0x2bc796,_0x34d1c8,_0x24c37e,_0x265b16){return _0x551389(_0x2bc796-_0x2a2fa6._0x4aa51e,_0x265b16- -_0x2a2fa6._0x2fbfac,_0x2bc796,_0x265b16-0xa5);}return this[_0x2ad22c(-_0x52811a._0x413c8c,-_0x52811a._0x249ea5,-_0x52811a._0x12c7f6,-_0x52811a._0x2b9986)];}[_0x551389(0x31c,0x33a,0x3e1,0x3d8)](_0x1cea6e,_0x14e460){const _0x38ebdf={_0x386fa7:0x1c1,_0x374b32:0x485,_0xce9208:0x51a,_0x1aee81:0x83,_0xa589e:0x3ba,_0x8a987d:0x3b6,_0x572e8e:0x3db,_0x3b4e4e:0x2fb,_0x1d3c18:0x13a,_0x20fc63:0x36,_0x1ddfd3:0x2ee,_0x387aba:0x274,_0x4e6dbd:0x361,_0x5c3e89:0x3c1,_0x361492:0x31c,_0x21caaa:0x371,_0x50f499:0x3b3,_0x383dba:0x3a7,_0xfe603c:0x11,_0xec47b8:0x4f,_0x2f0040:0x75},_0x5eda12={_0x4e1a0d:0x256,_0x3c26c7:0xcd},_0x20cce6={_0x16d66c:0xdf,_0x1dceee:0x20};function _0x52d891(_0x3563ef,_0x4388bf,_0x21fe8e,_0x5dfc68){return _0xf0dc29(_0x4388bf-_0x20cce6._0x16d66c,_0x4388bf-_0x20cce6._0x1dceee,_0x5dfc68,_0x5dfc68-0x1e8);}function _0x419d39(_0x87b760,_0xa52e0e,_0x5e6e4a,_0x28bad9){return _0xf0dc29(_0x5e6e4a- -_0x5eda12._0x4e1a0d,_0xa52e0e-_0x5eda12._0x3c26c7,_0xa52e0e,_0x28bad9-0x128);}switch(this[_0x419d39(0xfd,_0x38ebdf._0x386fa7,0x103,0x36)]){case _0x52d891(_0x38ebdf._0x374b32,0x48b,0x551,_0x38ebdf._0xce9208):return this[_0x419d39(0x76,-_0x38ebdf._0x1aee81,-0x60,-0x11b)]()['complete'](_0x1cea6e,_0x14e460);case _0x52d891(_0x38ebdf._0xa589e,_0x38ebdf._0x8a987d,_0x38ebdf._0x572e8e,_0x38ebdf._0x3b4e4e):return this[_0x419d39(_0x38ebdf._0x1d3c18,_0x38ebdf._0x20fc63,0x7e,0x6)]()[_0x52d891(0x33b,0x319,0x349,0x2f8)](_0x1cea6e,_0x14e460);case _0x52d891(_0x38ebdf._0x1ddfd3,0x2e9,_0x38ebdf._0x387aba,0x325):return this['getOpenAiDelegate']()[_0x52d891(_0x38ebdf._0x4e6dbd,_0x38ebdf._0x5c3e89,0x41d,_0x38ebdf._0x361492)](_0x1cea6e,_0x14e460);default:return this[_0x52d891(_0x38ebdf._0x21caaa,_0x38ebdf._0x50f499,_0x38ebdf._0x383dba,0x34e)]()[_0x419d39(-0x39,-_0x38ebdf._0xfe603c,-_0x38ebdf._0xec47b8,_0x38ebdf._0x2f0040)](_0x1cea6e,_0x14e460);}}[_0x551389(0x337,0x3fe,0x4e5,0x433)](_0x1d6940,_0x4679e5){const _0x547e4a={_0x524b6d:0x2cf,_0x2bf760:0x2c3,_0x467e00:0x2e2,_0x539ab0:0x23e,_0xd3c97a:0x3c7,_0x4857e5:0x374,_0x3e3512:0x364,_0x25f8cd:0x166,_0x238ec7:0x329,_0xabab14:0x3d1,_0x772be5:0x1b5,_0x183512:0x26d,_0x36ba7d:0x99,_0x37b349:0x141,_0x244184:0x169,_0x2a1c46:0x163,_0x1ed3f0:0xa4,_0x2cbc0a:0x8b},_0x1158e3={_0x58241d:0x27},_0x50b7b7={_0x19e523:0x171,_0x31d1e8:0x132};function _0x3bc21b(_0x3e3853,_0x3c4ec1,_0x771a12,_0x32f334){return _0xf0dc29(_0x3e3853- -_0x50b7b7._0x19e523,_0x3c4ec1-_0x50b7b7._0x31d1e8,_0x3c4ec1,_0x32f334-0x9a);}function _0x1eefa8(_0x188b8a,_0x31ec79,_0x3e77d9,_0x310ef9){return _0x551389(_0x188b8a-0x14d,_0x3e77d9- -0x8a,_0x31ec79,_0x310ef9-_0x1158e3._0x58241d);}switch(this[_0x1eefa8(0x2d8,0x49a,0x3ae,0x2c5)]){case _0x3bc21b(0x23b,_0x547e4a._0x524b6d,0x298,_0x547e4a._0x2bf760):return this[_0x1eefa8(0x297,_0x547e4a._0x467e00,0x24b,_0x547e4a._0x539ab0)]()[_0x1eefa8(_0x547e4a._0xd3c97a,0x3e2,_0x547e4a._0x4857e5,_0x547e4a._0x3e3512)](_0x1d6940,_0x4679e5);case _0x3bc21b(_0x547e4a._0x25f8cd,0x215,0x11e,0x1b3):return this[_0x1eefa8(0x384,0x2b8,_0x547e4a._0x238ec7,_0x547e4a._0xabab14)]()[_0x3bc21b(0x188,_0x547e4a._0x772be5,_0x547e4a._0x183512,0x18a)](_0x1d6940,_0x4679e5);case _0x3bc21b(_0x547e4a._0x36ba7d,_0x547e4a._0x37b349,0x8,_0x547e4a._0x244184):return this[_0x3bc21b(_0x547e4a._0x2a1c46,_0x547e4a._0x1ed3f0,0xe9,_0x547e4a._0x2cbc0a)]()['responseSocketStream'](_0x1d6940,_0x4679e5);default:return this['getOpenAiDelegate']()['chatStream'](_0x1d6940,_0x4679e5);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x551389(0x4cd,0x3f4,0x4ba,0x48b)];[_0x551389(0x3bc,0x416,0x3fc,0x404)];[_0x551389(0x35a,0x3a2,0x3a3,0x3a8)];[_0xf0dc29(0x243,0x2d8,0x164,0x1c6)];['tokenExchangeApiVersion'];constructor(_0x1dafb9){const _0x374c2e={_0x25aee1:0x611,_0x3d997e:0x573,_0x11ae30:0x56b,_0x4db1fb:0x59d,_0x43d9ca:0x538,_0x1cfc8c:0x47e,_0x51b8cf:0x59a,_0x4e3fc7:0x565},_0x331ae7={_0x49a9fd:0x87,_0x4f4e72:0xd5},_0xe7b72d={_0x223839:0x2da,_0x2a7577:0x1d0};this['accessToken']=_0x1dafb9['accessToken'];function _0x5f429f(_0x396c6e,_0x355f4c,_0x251e9b,_0x14b344){return _0xf0dc29(_0x14b344-_0xe7b72d._0x223839,_0x355f4c-_0xe7b72d._0x2a7577,_0x251e9b,_0x14b344-0x46);}this['baseUrl']=trimTrailingSlashes2(_0x1dafb9[_0x5f429f(0x6fe,0x68a,0x5ed,_0x374c2e._0x25aee1)]);function _0x4a13f2(_0x4de90b,_0x3697b4,_0x5f3381,_0x420884){return _0x551389(_0x4de90b-_0x331ae7._0x49a9fd,_0x420884-0x15c,_0x3697b4,_0x420884-_0x331ae7._0x4f4e72);}this[_0x5f429f(_0x374c2e._0x3d997e,_0x374c2e._0x11ae30,0x4cd,_0x374c2e._0x4db1fb)]=_0x1dafb9['fetch'],this[_0x4a13f2(_0x374c2e._0x43d9ca,0x406,0x4ab,_0x374c2e._0x1cfc8c)]=trimTrailingSlashes2(_0x1dafb9['githubApiUrl']),this['tokenExchangeApiVersion']=_0x1dafb9[_0x4a13f2(0x60e,_0x374c2e._0x51b8cf,0x4ce,_0x374c2e._0x4e3fc7)];}async[_0xf0dc29(0x280,0x264,0x36d,0x256)](_0x4cee6d){const _0x5885cb={_0x4dbfa3:0x4ca,_0x286633:0x3e3,_0x15524a:0x5d8,_0x5bbd73:0x5ed,_0x1919d7:0x62e,_0x19e014:0x439,_0x12baf8:0x40a,_0x251865:0x5ee,_0xbbae62:0x513,_0xd8d9b3:0x540,_0x3212c9:0x5de,_0x334720:0x5be,_0x5224fb:0x640,_0x2b1501:0x59c,_0x1a44b7:0x60f,_0x3a9788:0x520,_0x3184b3:0x5a6,_0x3409dc:0x5d1,_0x164248:0x6de,_0x4c9b63:0x6b8,_0x321466:0x62b,_0x4af93d:0x368,_0x297c9b:0x43d,_0x4aa575:0x5a6,_0x30c6d9:0x400,_0x3a2684:0x4c7,_0xe67ad0:0x32d,_0x35067c:0x606,_0xb1d6a1:0x764,_0x5e1802:0x6bd,_0x4b09e5:0x793,_0x41b5a2:0x6c9,_0x2d4e55:0x5d7,_0x2a2211:0x624,_0x2faf92:0x616,_0xaf5a3a:0x3a4,_0x528fff:0x345,_0x18d0dc:0x4a5,_0x7dafa1:0x555,_0x556fdf:0x4a7},_0x4644a2={_0xb05750:0x16c,_0x9095db:0x41,_0x39a8b0:0x16f},_0x1702b7={_0x2e7b26:0x316,_0x443257:0x13e,_0x5d1b98:0x150},_0x45d010=await this[_0x475622(0x38b,0x44f,_0x5885cb._0x4dbfa3,_0x5885cb._0x286633)](this['githubApiUrl']+_0x478a53(_0x5885cb._0x15524a,0x64b,0x69e,0x6d3),{'method':'GET','headers':new Headers({'accept':'application/json','authorization':_0x478a53(_0x5885cb._0x5bbd73,0x706,0x620,_0x5885cb._0x1919d7)+this[_0x478a53(0x6cf,0x5ff,0x62b,0x62d)],'editor-version':_0x475622(_0x5885cb._0x19e014,0x31f,0x3b2,_0x5885cb._0x12baf8),'user-agent':_0x478a53(0x52c,_0x5885cb._0x251865,_0x5885cb._0xbbae62,_0x5885cb._0xd8d9b3),'x-github-api-version':this[_0x478a53(_0x5885cb._0x3212c9,_0x5885cb._0x334720,_0x5885cb._0x5224fb,_0x5885cb._0x2b1501)]}),'signal':_0x4cee6d});if(!_0x45d010['ok'])return{'credential':{'kind':'oauth-token','value':this['accessToken']},'endpoints':{'api':this['baseUrl']}};function _0x478a53(_0x370ffb,_0xbeffa6,_0x749aa2,_0x3cfa84){return _0xf0dc29(_0x749aa2-_0x1702b7._0x2e7b26,_0xbeffa6-_0x1702b7._0x443257,_0xbeffa6,_0x3cfa84-_0x1702b7._0x5d1b98);}function _0x475622(_0x4abcda,_0x334144,_0x16282e,_0x121f72){return _0x551389(_0x4abcda-_0x4644a2._0xb05750,_0x121f72-_0x4644a2._0x9095db,_0x4abcda,_0x121f72-_0x4644a2._0x39a8b0);}const _0x14977f=await _0x45d010[_0x478a53(_0x5885cb._0x1a44b7,_0x5885cb._0x3a9788,_0x5885cb._0x3184b3,_0x5885cb._0x3409dc)]();return{'credential':{'kind':_0x478a53(_0x5885cb._0x164248,0x610,0x64b,_0x5885cb._0x4c9b63),'value':_0x14977f[_0x478a53(0x67b,_0x5885cb._0x321466,0x6a6,0x61b)]??this[_0x475622(_0x5885cb._0x4af93d,_0x5885cb._0x297c9b,0x423,0x435)]},'endpoints':{'api':_0x14977f[_0x475622(_0x5885cb._0x4aa575,_0x5885cb._0x30c6d9,0x542,_0x5885cb._0x3a2684)]?.[_0x475622(0x371,0x3d9,0x375,_0x5885cb._0xe67ad0)]??this[_0x478a53(_0x5885cb._0x35067c,0x61a,0x64d,0x598)],'originTracker':_0x14977f[_0x478a53(_0x5885cb._0xb1d6a1,0x71d,_0x5885cb._0x5e1802,_0x5885cb._0x4b09e5)]?.[_0x478a53(_0x5885cb._0x41b5a2,_0x5885cb._0x2d4e55,_0x5885cb._0x2a2211,0x5e9)],'proxy':_0x14977f[_0x478a53(0x787,_0x5885cb._0x2faf92,0x6bd,0x71d)]?.[_0x475622(_0x5885cb._0xaf5a3a,0x2af,_0x5885cb._0x528fff,0x396)],'telemetry':_0x14977f[_0x478a53(0x7a3,0x6e6,0x6bd,0x688)]?.[_0x475622(_0x5885cb._0x18d0dc,0x4c3,_0x5885cb._0x7dafa1,_0x5885cb._0x556fdf)]}};}};function trimTrailingSlashes2(_0x117531){return _0x117531['replace'](/\/+$/,'');}function createModelInfo(_0x26daba){const _0x37d06d={_0x2cfdb5:0x1f6,_0x2c905d:0x169,_0x27bf3b:0x126,_0x1bc63f:0x191,_0x5d55c3:0x2ed,_0x3a27e2:0x2bd,_0x4a4d5f:0x211,_0x212939:0x1c8,_0x93f1d3:0x32a},_0xbd5da7={_0x28e76f:0x10f},_0x5ac470={_0x2786f9:0x30};function _0x298e8d(_0x57e896,_0x27e94c,_0x5c2a27,_0x4ea110){return _0x551389(_0x57e896-_0x5ac470._0x2786f9,_0x27e94c- -0x1a4,_0x57e896,_0x4ea110-0x1d1);}const _0x23ed1d=_0x26daba['supported_endpoints']??_0x26daba[_0x2149e7(-_0x37d06d._0x2cfdb5,-_0x37d06d._0x2c905d,-0x111,-_0x37d06d._0x27bf3b)],_0x106763=_0x26daba[_0x2149e7(-_0x37d06d._0x1bc63f,-0x170,-0x211,-0x131)]?.['limits']?.[_0x298e8d(_0x37d06d._0x5d55c3,0x201,_0x37d06d._0x3a27e2,0x12b)];function _0x2149e7(_0x134dc9,_0x1da5a6,_0x11bb67,_0x15a86d){return _0x551389(_0x134dc9-_0xbd5da7._0x28e76f,_0x1da5a6- -0x4dc,_0x15a86d,_0x15a86d-0x152);}const _0x3753f9=_0x26daba[_0x298e8d(_0x37d06d._0x4a4d5f,_0x37d06d._0x212939,0x24d,0x24b)]?.[_0x298e8d(0x364,0x2e5,0x3b1,_0x37d06d._0x93f1d3)]?.['max_output_tokens'],_0x10c41e=_0x106763!==void 0x0||_0x3753f9!==void 0x0?{..._0x106763!==void 0x0?{'contextWindow':_0x106763}:{},..._0x3753f9!==void 0x0?{'maxOutput':_0x3753f9}:{}}:void 0x0;return{'id':_0x26daba['id'],'name':_0x26daba['name']??_0x26daba['id'],..._0x10c41e?{'limits':_0x10c41e}:{},..._0x23ed1d?{'supportedEndpoints':_0x23ed1d}:{}};}function deduplicateModels(_0x4bc2da){const _0x2db6f5={_0x3f97fd:0x309,_0x779124:0x3c1,_0x155674:0x3db,_0x11bf9f:0x350},_0x31bbc4={_0x17eb78:0x59,_0x43a9f0:0xa2},_0x5c478b={_0x1b4937:0x1b8};function _0x380cc2(_0x3b79b7,_0x23e369,_0x5d86a8,_0x124db0){return _0x551389(_0x3b79b7-0x1ce,_0x124db0- -_0x5c478b._0x1b4937,_0x23e369,_0x124db0-0x45);}function _0x34b556(_0x2dd817,_0x792ec8,_0x91b54a,_0x55e4e7){return _0xf0dc29(_0x792ec8-_0x31bbc4._0x17eb78,_0x792ec8-_0x31bbc4._0x43a9f0,_0x2dd817,_0x55e4e7-0x173);}const _0x174989=new Map();for(const _0x44a214 of _0x4bc2da){!_0x174989['has'](_0x44a214['id'])&&_0x174989[_0x34b556(0x377,_0x2db6f5._0x3f97fd,0x2b0,0x391)](_0x44a214['id'],_0x44a214);}return Array[_0x34b556(0x3db,_0x2db6f5._0x779124,0x36e,0x488)](_0x174989[_0x34b556(0x314,_0x2db6f5._0x155674,0x447,_0x2db6f5._0x11bf9f)]());}function hasUserPromptContent(_0x26240e){const _0x2e2609={_0x5f22ef:0x629,_0x461114:0x589,_0x578a63:0x56f,_0x9639a2:0x454,_0x40702b:0x4e6,_0x1c7643:0x60b,_0x12177f:0x655,_0x2a632d:0x4cc,_0x4c1e6d:0x485},_0x2e8218={_0x2d64a0:0x131,_0x1586e3:0x1c0,_0x11a863:0x1ad,_0xa255ab:0xdc,_0x5cf96f:0x7f,_0x193e2d:0x35,_0x30fc89:0x99,_0x2169d4:0x78,_0x3cae63:0x7c,_0x128d84:0x37,_0x4ecc24:0x158,_0x1289c0:0xa7,_0x14c67e:0xa7,_0x4ad5f9:0xac,_0x228b71:0x78,_0x361c61:0x166,_0x2a57d2:0x118,_0x39b14e:0x7d,_0x224c55:0x146},_0x1af748={_0x1e0447:0x423},_0x41cb09={_0x172db3:0x165},_0x523755={_0x58b1be:0x3};function _0x2fdf6b(_0x58996f,_0x4aabc8,_0x24e0a6,_0xf95d37){return _0x551389(_0x58996f-_0x523755._0x58b1be,_0x4aabc8-0xe2,_0x24e0a6,_0xf95d37-0x99);}function _0x103072(_0x1cb877,_0x1ffdb4,_0x1f2442,_0x3ec1a5){return _0x551389(_0x1cb877-_0x41cb09._0x172db3,_0x1f2442-0x116,_0x1cb877,_0x3ec1a5-0x178);}if(typeof _0x26240e==='string')return _0x26240e[_0x103072(_0x2e2609._0x5f22ef,_0x2e2609._0x461114,_0x2e2609._0x578a63,0x5fd)]()[_0x2fdf6b(0x375,_0x2e2609._0x9639a2,0x395,_0x2e2609._0x40702b)]>0x0;if(!Array[_0x103072(0x5b5,_0x2e2609._0x1c7643,0x593,_0x2e2609._0x12177f)](_0x26240e))return![];return _0x26240e[_0x103072(_0x2e2609._0x2a632d,0x47d,0x4e6,_0x2e2609._0x4c1e6d)](_0x360490=>{const _0x2c0f0f={_0x3fd20d:0x16f};function _0x4e9777(_0x208fba,_0x431b64,_0x454e7b,_0x5d72a7){return _0x2fdf6b(_0x208fba-0xee,_0x431b64- -_0x1af748._0x1e0447,_0x5d72a7,_0x5d72a7-0xb5);}if(!_0x360490||typeof _0x360490!==_0x317099(-_0x2e8218._0x2d64a0,-0x106,-_0x2e8218._0x1586e3,-0x124))return![];function _0x317099(_0x1e1580,_0x32a1f0,_0x5c0a0b,_0x3505b0){return _0x103072(_0x1e1580,_0x32a1f0-0x145,_0x5c0a0b- -0x5aa,_0x3505b0-_0x2c0f0f._0x3fd20d);}const _0x23f17d=_0x360490;return(_0x23f17d['type']===_0x4e9777(_0x2e8218._0x11a863,_0x2e8218._0xa255ab,_0x2e8218._0x5cf96f,_0x2e8218._0x193e2d)||_0x23f17d[_0x317099(-0x19b,-0x298,-0x1cd,-0x1d5)]===_0x4e9777(-_0x2e8218._0x30fc89,-_0x2e8218._0x2169d4,-_0x2e8218._0x3cae63,-_0x2e8218._0x128d84))&&typeof _0x23f17d['text']===_0x4e9777(_0x2e8218._0x4ecc24,_0x2e8218._0x1289c0,_0x2e8218._0x1289c0,_0x2e8218._0x14c67e)&&_0x23f17d[_0x4e9777(-_0x2e8218._0x4ad5f9,-_0x2e8218._0x228b71,0x6f,-_0x2e8218._0x361c61)][_0x4e9777(0xce,_0x2e8218._0x2a57d2,_0x2e8218._0x39b14e,0x1ab)]()[_0x317099(-0xd4,-_0x2e8218._0x224c55,-0x122,-0x19a)]>0x0;});}function _isUserPromptEntry(_0x2c179e){const _0x5f03ef={_0x37d7db:0x189,_0x25cbdc:0x193,_0x4a7833:0xf1,_0x13ae22:0x48,_0x93dcc9:0x2af,_0x1777b4:0x114,_0x25e783:0x87,_0x11d3f6:0x50,_0x3c3de1:0xce,_0x29013b:0x1d},_0x3817d={_0x5b0b57:0x119,_0x4258df:0x11a};if(!_0x2c179e||typeof _0x2c179e!==_0x13ce0a(-0x107,-0x179,-_0x5f03ef._0x37d7db,-0x58))return![];const _0x8e7044=_0x2c179e;function _0x4863be(_0x43a153,_0x346ce4,_0x14ac78,_0x5286e2){return _0x551389(_0x43a153-_0x3817d._0x5b0b57,_0x5286e2- -0x4c6,_0x14ac78,_0x5286e2-_0x3817d._0x4258df);}if(_0x8e7044[_0x4863be(-_0x5f03ef._0x25cbdc,-_0x5f03ef._0x4a7833,-0x7a,-0xaa)]!==_0x4863be(-0x11d,-0x5e,-0x76,-_0x5f03ef._0x13ae22))return![];if(_0x8e7044[_0x4863be(-0x21f,-0x2e0,-_0x5f03ef._0x93dcc9,-0x1ff)]!==void 0x0&&_0x8e7044[_0x13ce0a(-_0x5f03ef._0x1777b4,-0x1f4,-0x52,-0x9e)]!==_0x13ce0a(_0x5f03ef._0x25e783,0x132,-_0x5f03ef._0x11d3f6,_0x5f03ef._0x3c3de1))return![];function _0x13ce0a(_0x438c0a,_0x52ee8c,_0x5404e5,_0x4e85ba){return _0x551389(_0x438c0a-0xa7,_0x438c0a- -0x3db,_0x5404e5,_0x4e85ba-0x18a);}return hasUserPromptContent(_0x8e7044[_0x4863be(-_0x5f03ef._0x29013b,-0x45,-0xe3,-0x35)]);}function _0x5b12(_0x329a1b,_0x6115b5){_0x329a1b=_0x329a1b-0x114;const _0x53da09=_0x53da();let _0x5b122f=_0x53da09[_0x329a1b];if(_0x5b12['uOavGj']===undefined){var _0x27dcf9=function(_0x20b80d){const _0x25fc3c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xed469c='',_0x25d473='';for(let _0x14750a=0x0,_0x2af0b6,_0x47a4c1,_0x33e7b3=0x0;_0x47a4c1=_0x20b80d['charAt'](_0x33e7b3++);~_0x47a4c1&&(_0x2af0b6=_0x14750a%0x4?_0x2af0b6*0x40+_0x47a4c1:_0x47a4c1,_0x14750a++%0x4)?_0xed469c+=String['fromCharCode'](0xff&_0x2af0b6>>(-0x2*_0x14750a&0x6)):0x0){_0x47a4c1=_0x25fc3c['indexOf'](_0x47a4c1);}for(let _0x227325=0x0,_0x44d36e=_0xed469c['length'];_0x227325<_0x44d36e;_0x227325++){_0x25d473+='%'+('00'+_0xed469c['charCodeAt'](_0x227325)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x25d473);};_0x5b12['gLsocI']=_0x27dcf9,_0x5b12['ZoZJqG']={},_0x5b12['uOavGj']=!![];}const _0x4541a2=_0x53da09[0x0],_0x36c171=_0x329a1b+_0x4541a2,_0x42a2cd=_0x5b12['ZoZJqG'][_0x36c171];return!_0x42a2cd?(_0x5b122f=_0x5b12['gLsocI'](_0x5b122f),_0x5b12['ZoZJqG'][_0x36c171]=_0x5b122f):_0x5b122f=_0x42a2cd,_0x5b122f;}function determineInitiator(_0x4e8e02){const _0x46c7d5={_0x1d0eb9:0x14f,_0x8e4ed7:0x1b,_0x1bc437:0x88,_0x571752:0x70,_0xcfb25c:0xb0,_0xda746f:0x52,_0x3ed7a7:0x172,_0x46d72b:0x82,_0x8db3b4:0x151,_0x106332:0x115,_0x472d00:0x156,_0x18d8ef:0x19d,_0x393726:0xb2,_0x3ce3d2:0xb0,_0x5bbbd1:0xd7,_0x284925:0x9e,_0x2f73cb:0x61,_0x9935e6:0x8,_0x2d141d:0x187,_0x5725ac:0x14e,_0x14b88b:0xb4,_0xcf1f35:0xb1},_0x3bf5c2={_0x3c68d6:0x2d},_0x3fcfe5={_0x3c7ec9:0x36a,_0x964eca:0x5a};function _0x2c06dd(_0x2e073b,_0x2f81cf,_0x15af4d,_0x4cd9bb){return _0x551389(_0x2e073b-0x10a,_0x4cd9bb- -_0x3fcfe5._0x3c7ec9,_0x15af4d,_0x4cd9bb-_0x3fcfe5._0x964eca);}if(!_0x4e8e02||typeof _0x4e8e02!==_0x1c4702(-_0x46c7d5._0x1d0eb9,-0xd8,-0x3d,-0xf9))return _0x1c4702(0x19,_0x46c7d5._0x8e4ed7,-_0x46c7d5._0x1bc437,-0xbb);const _0x3be5ef=_0x2c06dd(_0x46c7d5._0x571752,0x2c,0x18b,_0x46c7d5._0xcfb25c)in _0x4e8e02?_0x4e8e02[_0x1c4702(-0x67,_0x46c7d5._0xda746f,-0x19,0x4d)]:_0x2c06dd(_0x46c7d5._0x3ed7a7,_0x46c7d5._0x46d72b,_0x46c7d5._0x8db3b4,_0x46c7d5._0x106332)in _0x4e8e02?_0x4e8e02[_0x1c4702(_0x46c7d5._0x472d00,0x12b,_0x46c7d5._0x18d8ef,_0x46c7d5._0x393726)]:void 0x0;function _0x1c4702(_0x4126e3,_0x475a9d,_0x3c14fd,_0x5ebd44){return _0xf0dc29(_0x5ebd44- -0x2ee,_0x475a9d-_0x3bf5c2._0x3c68d6,_0x3c14fd,_0x5ebd44-0xca);}if(!Array[_0x1c4702(0x64,0x162,-0x3,_0x46c7d5._0x3ce3d2)](_0x3be5ef)||_0x3be5ef[_0x1c4702(-0x22,-_0x46c7d5._0x5bbbd1,-0xdf,-0x5b)]===0x0)return'agent';return _isUserPromptEntry(_0x3be5ef[_0x3be5ef[_0x2c06dd(-_0x46c7d5._0x284925,_0x46c7d5._0x2f73cb,-0xc7,_0x46c7d5._0x9935e6)]-0x1])?_0x1c4702(_0x46c7d5._0x2d141d,_0x46c7d5._0x5725ac,_0x46c7d5._0x14b88b,_0x46c7d5._0xcf1f35):'agent';}function isUnsupportedApiForModel(_0x370dd2){const _0x419549={_0x28e3c9:0x15,_0x54cbd1:0xa},_0x3a64a7={_0x1b19e8:0x2c7,_0x119b2d:0xee};function _0x2063bd(_0x54464a,_0x581148,_0x570cd7,_0xe4f0bf){return _0xf0dc29(_0x570cd7- -_0x3a64a7._0x1b19e8,_0x581148-_0x3a64a7._0x119b2d,_0xe4f0bf,_0xe4f0bf-0x14);}return _0x370dd2['includes'](_0x2063bd(0x5a,_0x419549._0x28e3c9,0x2,_0x419549._0x54cbd1));}function createResponseError(_0x3fe5b7,_0x2b4d3c){const _0x35e5f3={_0x4a843d:0x1b4,_0x11918f:0x285,_0x421d56:0x227,_0x813600:0x26f,_0x313561:0x2b2,_0x432ad4:0x2c2,_0x3483c1:0x27c,_0xbcd9fa:0x3a1},_0x190cfd={_0x112c96:0xcb,_0x5dd124:0xbf};function _0x1b57d9(_0x45359b,_0x22fdd5,_0x25d5a9,_0x29f365){return _0x551389(_0x45359b-0xe8,_0x22fdd5- -0x2ba,_0x45359b,_0x29f365-0x4f);}if(_0x3fe5b7===0x191||_0x3fe5b7===0x193)return new Error(_0x49a40c(_0x35e5f3._0x4a843d,_0x35e5f3._0x11918f,_0x35e5f3._0x421d56,0xdc));function _0x49a40c(_0x299248,_0x39bb80,_0xf25064,_0x3d03d5){return _0x551389(_0x299248-_0x190cfd._0x112c96,_0x299248- -0x19d,_0x3d03d5,_0x3d03d5-_0x190cfd._0x5dd124);}if(_0x3fe5b7===0x198||_0x3fe5b7===0x1ad)return new Error(_0x49a40c(_0x35e5f3._0x813600,_0x35e5f3._0x313561,0x1c6,0x2b9));if(_0x3fe5b7===0x190)return new Error(_0x49a40c(_0x35e5f3._0x432ad4,_0x35e5f3._0x3483c1,_0x35e5f3._0xbcd9fa,0x3b0)+_0x2b4d3c);return new Error(_0x2b4d3c||'GitHub\x20API\x20error\x20'+_0x3fe5b7);}var GitHubModel=class extends OpenAiModel{[_0x551389(0x3ad,0x488,0x41f,0x3f9)];[_0xf0dc29(0x2b7,0x1e7,0x33d,0x31b)]=new Map();[_0xf0dc29(0x359,0x313,0x2c1,0x2ce)];constructor(_0x1836f4={}){const _0x1b8cfb={_0x2c8e79:0xf5,_0x34289e:0x59,_0x2a3b79:0x2a8,_0x8e4db:0x371,_0x506034:0x36b,_0x574dfe:0x20d,_0x2a1b40:0x2fc,_0x5d86ce:0x15c,_0x219547:0x292,_0x11e6a2:0x1f6,_0x5bc2e4:0x1f2,_0x948fda:0x5b,_0x41112b:0x13c,_0x322b6e:0x65,_0x4195ce:0x26a,_0x2f86d2:0x2ff,_0x1f9123:0x22c,_0x490897:0x2b7,_0x33e9f3:0x124,_0x1eae2d:0x53,_0x2dbd49:0x358,_0x46469a:0x61,_0x27656c:0x20,_0x282875:0x70,_0x2692c9:0xb0,_0x511663:0x95,_0xc05c14:0x1a4,_0x179f20:0x10c,_0x5c518e:0x1d1,_0x3d905a:0x16b,_0x11a36b:0xc7,_0x17d27e:0xa9,_0x5d7530:0x2d6,_0x3a2cb0:0x1f5,_0x553455:0x171,_0xbd65ba:0x1a9,_0x2fd6fa:0x101,_0x574e6b:0x122,_0x3e0f35:0x1e8,_0x59e7d0:0x31a,_0x825ecc:0x2e4,_0x4d87cb:0x354,_0x57b05b:0x2f,_0x38f6e0:0x63,_0x299a38:0x104,_0xe928c0:0x306,_0x3d3a4b:0x29c},_0x1b3d0b={_0x469ab8:0x148},_0x2f6e8a={_0x380f8c:0x3,_0x18d7d0:0x387},_0x58ea9b=trimTrailingSlashes2(_0x1836f4['baseUrl']??_0x2374fe(-0xfb,-_0x1b8cfb._0x2c8e79,0x10,-_0x1b8cfb._0x34289e)),_0x4c1b67=_0x1836f4[_0x3f1c45(_0x1b8cfb._0x2a3b79,_0x1b8cfb._0x8e4db,_0x1b8cfb._0x506034,0x2e9)]??globalThis[_0x3f1c45(0x2a8,0x364,_0x1b8cfb._0x574dfe,_0x1b8cfb._0x2a1b40)],_0x13754a=_0x1836f4['providerSessionResolver']??(_0x1836f4[_0x2374fe(0x50,0x15b,_0x1b8cfb._0x5d86ce,0x6d)]?new GitHubAccessTokenResolver({'accessToken':_0x1836f4[_0x3f1c45(_0x1b8cfb._0x219547,_0x1b8cfb._0x11e6a2,0x26f,_0x1b8cfb._0x5bc2e4)],'baseUrl':_0x58ea9b,'fetch':_0x4c1b67,'githubApiUrl':_0x1836f4[_0x2374fe(-_0x1b8cfb._0x948fda,0x23,-_0x1b8cfb._0x41112b,-_0x1b8cfb._0x322b6e)]??_0x3f1c45(_0x1b8cfb._0x4195ce,_0x1b8cfb._0x2f86d2,_0x1b8cfb._0x1f9123,_0x1b8cfb._0x490897),'tokenExchangeApiVersion':_0x1836f4['tokenExchangeApiVersion']??_0x2374fe(-0x112,0x44,-0xed,-0x97)}):void 0x0);function _0x2374fe(_0x41a746,_0x133906,_0x1e6575,_0x3696d8){return _0x551389(_0x41a746-_0x2f6e8a._0x380f8c,_0x3696d8- -_0x2f6e8a._0x18d7d0,_0x133906,_0x3696d8-0x135);}const _0x2ae624=_0x1836f4['editorVersion']??_0x2374fe(-0x4a,0xcf,_0x1b8cfb._0x33e9f3,_0x1b8cfb._0x1eae2d),_0x55d75c=_0x1836f4[_0x3f1c45(0x26b,0x20d,_0x1b8cfb._0x2dbd49,0x34d)]??_0x2374fe(_0x1b8cfb._0x46469a,-0x61,-_0x1b8cfb._0x27656c,-_0x1b8cfb._0x282875);function _0x3f1c45(_0x37873d,_0x2d323f,_0xccc0a4,_0x58cd5d){return _0x551389(_0x37873d-0x13c,_0x37873d- -0x162,_0x2d323f,_0x58cd5d-_0x1b3d0b._0x469ab8);}const _0x8071e8=({body:_0x62b87e})=>{return{'editor-plugin-version':_0x55d75c,'editor-version':_0x2ae624,'x-initiator':determineInitiator(_0x62b87e),'x-request-id':randomUUID()};},_0x37c9c8={'apiKey':_0x1836f4[_0x2374fe(_0x1b8cfb._0x2692c9,-0x6d,_0x1b8cfb._0x511663,-0x29)],'baseUrl':_0x58ea9b,'fetch':_0x4c1b67,'maxTokens':_0x1836f4['maxTokens'],'model':_0x1836f4[_0x2374fe(_0x1b8cfb._0xc05c14,_0x1b8cfb._0x179f20,_0x1b8cfb._0x5c518e,_0x1b8cfb._0x2c8e79)],'reasoning':_0x1836f4[_0x3f1c45(_0x1b8cfb._0x3d905a,_0x1b8cfb._0x11a36b,0x206,_0x1b8cfb._0x17d27e)],'providerSessionResolver':_0x13754a,'requestMutators':_0x1836f4['requestMutators'],'headerResolver':_0x8071e8};super(_0x37c9c8),this[_0x3f1c45(_0x1b8cfb._0x5d7530,0x296,0x324,0x35d)]=_0x1836f4[_0x3f1c45(_0x1b8cfb._0x5d7530,0x1eb,0x26e,_0x1b8cfb._0x3a2cb0)]??_0x3f1c45(0x1d5,0x101,_0x1b8cfb._0x553455,0x293),this[_0x2374fe(_0x1b8cfb._0xbd65ba,0xc1,0x8f,_0x1b8cfb._0x2fd6fa)]=new AnthropicModel({'apiKey':_0x1836f4['apiKey'],'authScheme':'bearer','baseUrl':_0x58ea9b,'fetch':_0x4c1b67,'headerResolver':_0x8071e8,'maxTokens':_0x1836f4[_0x3f1c45(_0x1b8cfb._0xbd65ba,_0x1b8cfb._0x574e6b,_0x1b8cfb._0x3e0f35,0x280)],'model':_0x1836f4[_0x3f1c45(_0x1b8cfb._0x59e7d0,0x23f,_0x1b8cfb._0x825ecc,_0x1b8cfb._0x4d87cb)],'reasoning':_0x1836f4[_0x2374fe(_0x1b8cfb._0x57b05b,-_0x1b8cfb._0x38f6e0,-_0x1b8cfb._0x299a38,-0xba)],'providerSessionResolver':_0x13754a,'requestMutators':_0x1836f4[_0x3f1c45(0x33f,_0x1b8cfb._0xe928c0,_0x1b8cfb._0x3d3a4b,0x39d)]});}['createMissingCredentialError'](){const _0x4595c1={_0x1d3985:0xd0},_0x392805={_0x1c4fa5:0xd1};function _0x9e43dc(_0x47fefe,_0x21fce7,_0x5503f1,_0x3d8290){return _0xf0dc29(_0x5503f1- -0x366,_0x21fce7-_0x392805._0x1c4fa5,_0x3d8290,_0x3d8290-0x1e5);}return new Error(_0x9e43dc(-0x31,_0x4595c1._0x1d3985,0x59,0xdf));}[_0xf0dc29(0x1f3,0x26b,0x2a2,0x29d)](_0x3b100e){const _0xe66555={_0x26fffa:0x35a,_0x3bb1cb:0x2f2,_0x456c57:0x1ba,_0x35cb71:0x1c8,_0x235299:0x343},_0x540929={_0x1742ac:0x140};function _0x40cd62(_0x1bb278,_0x2765fc,_0x2fd9f4,_0x4c1257){return _0x551389(_0x1bb278-_0x540929._0x1742ac,_0x2fd9f4-0x1c9,_0x4c1257,_0x4c1257-0x2f);}const _0x1193cc=this[_0x208ec8(_0xe66555._0x26fffa,_0xe66555._0x3bb1cb,0x2f0,0x331)]['get'](_0x3b100e);if(!_0x1193cc)return![];function _0x208ec8(_0x4fac8f,_0x5b80b2,_0x9bedf7,_0x5fa598){return _0x551389(_0x4fac8f-0x7b,_0x5b80b2- -0xa4,_0x4fac8f,_0x5fa598-0x147);}return!_0x1193cc[_0x208ec8(_0xe66555._0x456c57,0x25a,_0xe66555._0x35cb71,0x30a)]('/chat/completions')&&_0x1193cc['includes'](_0x208ec8(0x379,_0xe66555._0x235299,0x3c8,0x382));}[_0xf0dc29(0x26d,0x230,0x221,0x2d1)](_0x7f06dd){const _0x193e21={_0x157d66:0x5f5,_0x40adeb:0x6e0,_0x25a18a:0x51f,_0x3049ff:0x4e9,_0x5ad41d:0x4b3,_0x47cc01:0x4f8,_0x2fc6ca:0x40e,_0xa2d543:0x4fd,_0x1bbd28:0x4ae},_0x4e69d2={_0x3fed18:0x1dc,_0x4e3f73:0x4f},_0x3c933e={_0x51475f:0x1db},_0x23afb7=this['modelEndpointCache']['get'](_0x7f06dd[_0x5762c2(_0x193e21._0x157d66,_0x193e21._0x40adeb,0x66f,0x676)]);if(!_0x23afb7)return![];function _0x5762c2(_0x18d272,_0xbc2b45,_0x1d4ac6,_0x40a1f3){return _0xf0dc29(_0x40a1f3-0x2d9,_0xbc2b45-_0x3c933e._0x51475f,_0xbc2b45,_0x40a1f3-0xcb);}function _0x5c2363(_0x4b24a0,_0x6b53d3,_0x502f6c,_0x33b8b8){return _0x551389(_0x4b24a0-0x33,_0x33b8b8-_0x4e69d2._0x3fed18,_0x6b53d3,_0x33b8b8-_0x4e69d2._0x4e3f73);}if(resolveOpenAiReasoningConfig(_0x7f06dd[_0x5762c2(0x559,0x40e,_0x193e21._0x25a18a,0x4c7)]))return _0x23afb7[_0x5762c2(0x560,_0x193e21._0x3049ff,_0x193e21._0x5ad41d,_0x193e21._0x47cc01)]('/responses');return this[_0x5c2363(_0x193e21._0x2fc6ca,_0x193e21._0xa2d543,0x3f1,_0x193e21._0x1bbd28)](_0x7f06dd['model']);}[_0x551389(0x353,0x40e,0x32d,0x3b3)](_0x54345c){const _0x3810bc={_0x46904e:0xe7,_0x37d603:0xab};function _0x2401ac(_0x5c23f5,_0x165a80,_0x1e64d1,_0xd10ac0){return _0x551389(_0x5c23f5-_0x3810bc._0x46904e,_0x1e64d1-_0x3810bc._0x37d603,_0x165a80,_0xd10ac0-0x98);}this['modelEndpointCache']['set'](_0x54345c,[_0x2401ac(0x572,0x530,0x492,0x3de)]);}[_0x551389(0x3fa,0x318,0x3d5,0x399)](_0x248e50){const _0x51f0a6={_0x4e13e2:0x14f,_0x467c77:0x1ef,_0x565b26:0x16e,_0x47369f:0x15,_0x2af919:0x16,_0x11b837:0x178},_0x4eb046={_0x39be2a:0x11d,_0x38625b:0x41f,_0x1d5107:0x1ab},_0x143e1d={_0x1ce031:0x347};function _0x468664(_0x46a395,_0x264098,_0x5cc0be,_0x6355f0){return _0x551389(_0x46a395-0x187,_0x46a395- -_0x143e1d._0x1ce031,_0x6355f0,_0x6355f0-0xf1);}if(_0x248e50 instanceof OpenAiApiError)return createResponseError(_0x248e50[_0x468664(_0x51f0a6._0x4e13e2,_0x51f0a6._0x467c77,0x168,_0x51f0a6._0x565b26)],_0x248e50[_0x468664(_0x51f0a6._0x47369f,-_0x51f0a6._0x2af919,0xda,-0x49)]||_0x248e50[_0x468664(0x11b,0x10c,_0x51f0a6._0x11b837,0xee)]);function _0x5eb852(_0x2d9bf6,_0x917498,_0x1a771b,_0x3f79bb){return _0x551389(_0x2d9bf6-_0x4eb046._0x39be2a,_0x3f79bb- -_0x4eb046._0x38625b,_0x2d9bf6,_0x3f79bb-_0x4eb046._0x1d5107);}return _0x248e50;}['completeViaConfiguredSurface'](_0x1179b3,_0x4df07c){const _0x300f30={_0x3c94d2:0x92,_0x5c21e0:0xc3,_0x290f3e:0x66,_0x2e6e0b:0xdf,_0x2b2a95:0xa7,_0x5c5c3b:0x599,_0x37da3e:0x539,_0x517562:0x56a,_0x3ab19c:0x58b,_0x366cc0:0x25,_0x37cd27:0xfe,_0x340916:0x3f4,_0x3f681c:0x4c7,_0x1b3484:0xc0,_0x288335:0x594,_0x2cd388:0x490,_0x273b61:0xa9,_0x26b4f8:0x81,_0x3a73e9:0x6b,_0x4dba25:0xad,_0x462a7f:0x4a4,_0x4f0fdb:0x64b,_0x46a0ca:0xca,_0x2d08eb:0xcf,_0x301370:0x83},_0x3326bb={_0xd3cc23:0xb6};function _0x4516e0(_0x2b3dbc,_0x1c094d,_0x534e60,_0x29cf42){return _0xf0dc29(_0x534e60-0x1f0,_0x1c094d-_0x3326bb._0xd3cc23,_0x2b3dbc,_0x29cf42-0xcf);}function _0x2a812e(_0xddc3ae,_0x16beaa,_0x2cae6a,_0x240549){return _0x551389(_0xddc3ae-0x4c,_0x240549- -0x3e4,_0x2cae6a,_0x240549-0x1b5);}switch(this[_0x2a812e(_0x300f30._0x3c94d2,-0x1f,_0x300f30._0x5c21e0,0x54)]){case _0x2a812e(_0x300f30._0x290f3e,0x13e,_0x300f30._0x2e6e0b,_0x300f30._0x2b2a95):return this[_0x4516e0(0x563,0x59f,_0x300f30._0x5c5c3b,_0x300f30._0x37da3e)]['complete'](_0x1179b3,_0x4df07c);case _0x4516e0(0x4b4,_0x300f30._0x517562,_0x300f30._0x3ab19c,0x60e):return this[_0x2a812e(-0x35,-0x18a,-_0x300f30._0x366cc0,-_0x300f30._0x37cd27)](_0x1179b3,_0x4df07c);case _0x4516e0(_0x300f30._0x340916,0x411,_0x300f30._0x3f681c,0x4eb):return this[_0x2a812e(-0x19e,-0x1a4,-_0x300f30._0x1b3484,-0xcb)](_0x1179b3,_0x4df07c);case'openai-responses-ws':return this[_0x4516e0(_0x300f30._0x288335,_0x300f30._0x2cd388,0x4d2,0x52c)](_0x1179b3,_0x4df07c);case _0x2a812e(-_0x300f30._0x273b61,-_0x300f30._0x26b4f8,-_0x300f30._0x3a73e9,-_0x300f30._0x4dba25):return this[_0x2a812e(-0x8b,0x2e,-0x176,-0xaa)](_0x1179b3,_0x4df07c);}throw new Error(_0x4516e0(0x554,_0x300f30._0x462a7f,0x581,_0x300f30._0x4f0fdb)+String(this[_0x2a812e(_0x300f30._0x46a0ca,_0x300f30._0x2d08eb,_0x300f30._0x301370,0x54)]));}[_0x551389(0x45e,0x371,0x3a0,0x292)](_0x8353d2,_0x574aa8){const _0x50386d={_0x32d3e0:0x360,_0x11fbe9:0x20,_0x3293b2:0x71,_0x174e7f:0xf0,_0x248949:0x403,_0x259514:0xb1,_0x18c17b:0x86,_0x56eedc:0x79,_0x26fd66:0x32d,_0x4b4699:0x319,_0x23dc47:0x401,_0x32860d:0x135,_0xdc8856:0x112,_0x1958d2:0x5d,_0x32f0c5:0x186,_0x1f5551:0x87,_0x1d067d:0xdb,_0x946b0c:0x28c,_0x2ce1a4:0x19e,_0x4c9047:0x353,_0x52dd4c:0x28e,_0x1793ee:0x41d,_0x1a1f08:0x3c5,_0x389b1c:0x448,_0x589647:0x1a,_0x239d64:0x65},_0xfb6922={_0x2d830d:0x1ab},_0x5db985={_0x4552bd:0x10};function _0x3fda5c(_0x1c0e4c,_0x1b985b,_0x1144fd,_0x418dd4){return _0xf0dc29(_0x1c0e4c-0x34,_0x1b985b-_0x5db985._0x4552bd,_0x418dd4,_0x418dd4-0xa1);}function _0x36a842(_0x42b4ef,_0x356bc8,_0x49dd6d,_0x1ae06f){return _0xf0dc29(_0x42b4ef- -0x33f,_0x356bc8-_0xfb6922._0x2d830d,_0x1ae06f,_0x1ae06f-0x1cb);}switch(this[_0x3fda5c(0x38d,0x3de,0x426,_0x50386d._0x32d3e0)]){case _0x36a842(0x6d,0x0,0x82,0x6f):return this['anthropicDelegate'][_0x36a842(-_0x50386d._0x11fbe9,_0x50386d._0x3293b2,0x2d,-_0x50386d._0x174e7f)](_0x8353d2,_0x574aa8);case _0x3fda5c(0x3cf,0x345,_0x50386d._0x248949,0x343):return this[_0x36a842(-0x96,-_0x50386d._0x259514,-_0x50386d._0x18c17b,-_0x50386d._0x56eedc)](_0x8353d2,_0x574aa8);case'openai-responses':return this[_0x3fda5c(_0x50386d._0x26fd66,_0x50386d._0x4b4699,_0x50386d._0x23dc47,0x3d6)](_0x8353d2,_0x574aa8);case _0x36a842(-_0x50386d._0x32860d,-_0x50386d._0xdc8856,-_0x50386d._0x1958d2,-_0x50386d._0x32f0c5):return this[_0x36a842(-0x3e,0x45,-_0x50386d._0x1f5551,-_0x50386d._0x1d067d)](_0x8353d2,_0x574aa8);case _0x3fda5c(_0x50386d._0x946b0c,_0x50386d._0x2ce1a4,0x2c9,0x1b8):return this[_0x3fda5c(_0x50386d._0x4c9047,_0x50386d._0x52dd4c,0x3ec,_0x50386d._0x1793ee)](_0x8353d2,_0x574aa8);}throw new Error(_0x3fda5c(_0x50386d._0x1a1f08,0x3ad,_0x50386d._0x389b1c,0x31e)+String(this[_0x36a842(_0x50386d._0x589647,-0x58,0x91,_0x50386d._0x239d64)]));}async[_0x551389(0x2c9,0x33a,0x38f,0x2f5)](_0x226c79,_0x875e52){const _0x36a15e={_0x3a007d:0x49b,_0x75ea13:0x421,_0x4952e9:0x31a,_0x2dfe74:0x1bb,_0x1d5368:0x189,_0x5eb256:0x250,_0x1fc17f:0x1d5,_0x14bbee:0x446,_0x313cd0:0x4c1,_0x42533b:0x344,_0x450153:0x391,_0x1618c2:0x3f7,_0xdd9c64:0x49c,_0x592bcc:0x465,_0x4f507b:0x2c2},_0x2cb8cf={_0x118416:0x199},_0x45aff1={_0x470124:0x103,_0xf8e5b:0x56e,_0x406705:0x11a},_0x33b920=this['applyModelDefaults'](_0x226c79);function _0x599130(_0x2e1292,_0x1b2256,_0x1eb548,_0x4f7ee7){return _0x551389(_0x2e1292-_0x45aff1._0x470124,_0x1b2256- -_0x45aff1._0xf8e5b,_0x2e1292,_0x4f7ee7-_0x45aff1._0x406705);}if(this[_0x281c7d(0x332,0x3b4,_0x36a15e._0x3a007d,_0x36a15e._0x75ea13)]!==_0x599130(-_0x36a15e._0x4952e9,-0x237,-0x1c7,-_0x36a15e._0x2dfe74))return this['completeViaConfiguredSurface'](_0x33b920,_0x875e52);if(this[_0x599130(-_0x36a15e._0x1d5368,-0x222,-0x17d,-_0x36a15e._0x5eb256)](_0x33b920))return this[_0x599130(-0x1ad,-0x255,-0x22a,-_0x36a15e._0x1fc17f)](_0x33b920,_0x875e52);function _0x281c7d(_0xd3489b,_0x504f56,_0x3e482d,_0x289b9f){return _0xf0dc29(_0x289b9f-0xc8,_0x504f56-0xa7,_0x3e482d,_0x289b9f-_0x2cb8cf._0x118416);}try{return await this[_0x281c7d(0x4a7,_0x36a15e._0x14bbee,0x497,0x3bc)](_0x33b920,_0x875e52);}catch(_0xef81d5){if(_0xef81d5 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0xef81d5[_0x599130(-0x2b0,-0x212,-0x2d1,-0x18e)]))return this[_0x281c7d(_0x36a15e._0x313cd0,_0x36a15e._0x42533b,_0x36a15e._0x450153,_0x36a15e._0x1618c2)](_0x33b920[_0x281c7d(0x401,_0x36a15e._0xdd9c64,0x472,_0x36a15e._0x592bcc)]),this['response'](_0x33b920,_0x875e52);throw this[_0x281c7d(0x220,0x3cd,_0x36a15e._0x4f507b,0x301)](_0xef81d5);}throw _0xef81d5;}}async*['stream'](_0x2822cb,_0x15c709){const _0x441cd4={_0x1cb08b:0x31f,_0xd0dbc0:0x519,_0x205d3c:0x5bf,_0xa3c248:0x55e,_0x28ddd5:0x529,_0x420ff8:0x555,_0x33d14e:0x4bd,_0x4cfe90:0x67c,_0x4aae22:0x665},_0x5a8807={_0x491c1c:0x15c,_0x420d13:0x119,_0x126d7e:0xff},_0x49f5d6={_0x5db148:0x1f1,_0x217b00:0x127},_0x277092=this['applyModelDefaults'](_0x2822cb);if(this[_0x3ab1ee(0x3cb,0x35d,_0x441cd4._0x1cb08b,0x3de)]!=='auto'){yield*this['streamViaConfiguredSurface'](_0x277092,_0x15c709);return;}function _0x1377f3(_0x2a0321,_0x4115b5,_0x4408b7,_0x2baae7){return _0x551389(_0x2a0321-_0x49f5d6._0x5db148,_0x4115b5-0x1cd,_0x2baae7,_0x2baae7-_0x49f5d6._0x217b00);}if(this[_0x1377f3(0x462,_0x441cd4._0xd0dbc0,_0x441cd4._0x205d3c,0x5f0)](_0x277092)){yield*this['responseStream'](_0x277092,_0x15c709);return;}function _0x3ab1ee(_0x5aa57c,_0xb09fd3,_0x1e7cdc,_0x1582fc){return _0x551389(_0x5aa57c-_0x5a8807._0x491c1c,_0x1e7cdc- -_0x5a8807._0x420d13,_0x5aa57c,_0x1582fc-_0x5a8807._0x126d7e);}try{yield*this['streamViaChatCompletionsSurface'](_0x277092,_0x15c709);}catch(_0x5519a1){if(_0x5519a1 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x5519a1[_0x1377f3(_0x441cd4._0xa3c248,_0x441cd4._0x28ddd5,_0x441cd4._0x420ff8,_0x441cd4._0x33d14e)])){this[_0x1377f3(_0x441cd4._0x4cfe90,0x5db,_0x441cd4._0x4aae22,0x61e)](_0x277092['model']),yield*this['responseStream'](_0x277092,_0x15c709);return;}throw this['mapApiError'](_0x5519a1);}throw _0x5519a1;}}async[_0x551389(0x56d,0x49a,0x47c,0x538)](_0x3df6d5){const _0x48355d={_0x45931d:0x4fb,_0x48e7d1:0x4b3,_0x5b8e89:0x400,_0x408478:0x59f,_0x5da791:0x1d7,_0x3df96a:0x495},_0x5d8dc1={_0x13b57a:0x14},_0x464972={_0x4423d8:0xd8},_0x4b18ed={_0x32c362:0x2ab,_0x266a35:0x194};function _0x4b369a(_0x3044ad,_0x3da379,_0x14950f,_0x477286){return _0xf0dc29(_0x3da379-_0x4b18ed._0x32c362,_0x3da379-_0x4b18ed._0x266a35,_0x477286,_0x477286-0x5b);}function _0x4eb735(_0x23b356,_0x505244,_0x4a89a4,_0x185fa0){return _0x551389(_0x23b356-0x1b0,_0x4a89a4- -0x141,_0x185fa0,_0x185fa0-_0x464972._0x4423d8);}const _0x4775e3=await this[_0x4b369a(_0x48355d._0x45931d,_0x48355d._0x48e7d1,_0x48355d._0x5b8e89,0x495)]({'path':_0x4b369a(_0x48355d._0x408478,0x63a,0x6ae,0x649),'method':'GET','signal':_0x3df6d5});if(!_0x4775e3['ok'])throw this[_0x4eb735(0x281,0x18d,_0x48355d._0x5da791,0xf6)](await this[_0x4b369a(_0x48355d._0x3df96a,0x4f7,0x5bc,0x4c7)](_0x4775e3));const _0x5cbcf9=await _0x4775e3['json'](),_0x4bef43=(_0x5cbcf9['data']??[])['map'](_0x2216cb=>{const _0x5ec3c2={_0x2e50ca:0x42,_0x278d83:0x186},_0x4d0194=createModelInfo(_0x2216cb);_0x4d0194['supportedEndpoints']&&this['modelEndpointCache']['set'](_0x4d0194['id'],_0x4d0194[_0x462249(_0x5d8dc1._0x13b57a,0x9b,0xb8,0x136)]);function _0x462249(_0x33c671,_0x4da01f,_0x14f15c,_0x3da8fb){return _0x4eb735(_0x33c671-_0x5ec3c2._0x2e50ca,_0x4da01f-_0x5ec3c2._0x278d83,_0x4da01f- -0x1ef,_0x33c671);}return _0x4d0194;});return deduplicateModels(_0x4bef43);}};function createHeaders(_0x3b3a8c){const _0x39a2ab={_0x1a4dd7:0x650,_0xa015e3:0x70e,_0x203633:0x5d7,_0x29445a:0x493},_0x5ba5a6={_0x2df551:0x1ba,_0x24c03f:0x17c};function _0x409176(_0x1874b5,_0x1e162c,_0x24e7ea,_0x5f459e){return _0xf0dc29(_0x1e162c- -0x3cd,_0x1e162c-0x24,_0x1874b5,_0x5f459e-0x50);}const _0x5d4822=new Headers();for(const [_0x4f98ce,_0x41a6e5]of Object[_0x143233(_0x39a2ab._0x1a4dd7,0x733,_0x39a2ab._0xa015e3,_0x39a2ab._0x203633)](_0x3b3a8c)){_0x5d4822[_0x143233(0x55c,_0x39a2ab._0x29445a,0x5f5,0x649)](_0x4f98ce,_0x41a6e5);}function _0x143233(_0x80340b,_0x305f74,_0x1ad127,_0x47f366){return _0xf0dc29(_0x80340b-0x2ac,_0x305f74-_0x5ba5a6._0x2df551,_0x305f74,_0x47f366-_0x5ba5a6._0x24c03f);}return _0x5d4822;}async function fetchRawResponse(_0x337bc1){const _0x5b8c87={_0x17f20e:0xf,_0x5a44d5:0x65,_0x18d565:0x151,_0x4fc64d:0x9a,_0x6eaac4:0x12b,_0x510888:0xf6,_0x31c0f0:0x193,_0x268a17:0x17c,_0x403462:0x11c,_0x4dac07:0x169,_0x576205:0x156,_0x459ac6:0x1a,_0x4ec3f1:0xa1,_0x470e61:0x5c7,_0x2d1c7a:0x587,_0x10ba56:0x57d,_0x4cdb32:0x550},_0x5aed29={_0x892704:0x15f},_0x479db4={_0x39b12e:0x30,_0x407801:0xeb},_0x339554=_0x337bc1[_0x184465(_0x5b8c87._0x17f20e,0x2,-0xa6,-0x36)]??globalThis['fetch'];function _0x184465(_0x201b67,_0x240573,_0x21a498,_0x5e64c8){return _0xf0dc29(_0x5e64c8- -0x361,_0x240573-_0x479db4._0x39b12e,_0x240573,_0x5e64c8-_0x479db4._0x407801);}function _0x5e3928(_0x18de99,_0x9fe073,_0x41311a,_0x388c35){return _0x551389(_0x18de99-_0x5aed29._0x892704,_0x388c35-0x1f4,_0x18de99,_0x388c35-0x9b);}return _0x339554(_0x337bc1[_0x184465(-0x9d,-_0x5b8c87._0x5a44d5,-_0x5b8c87._0x18d565,-_0x5b8c87._0x4fc64d)],{'method':_0x184465(-_0x5b8c87._0x6eaac4,-_0x5b8c87._0x510888,-_0x5b8c87._0x31c0f0,-_0x5b8c87._0x268a17),'headers':createHeaders(_0x337bc1[_0x184465(-_0x5b8c87._0x403462,-_0x5b8c87._0x4dac07,-0x1b6,-_0x5b8c87._0x576205)]),'body':JSON[_0x184465(-0x20,-_0x5b8c87._0x459ac6,-_0x5b8c87._0x4ec3f1,-0x83)](_0x337bc1[_0x5e3928(_0x5b8c87._0x470e61,_0x5b8c87._0x2d1c7a,_0x5b8c87._0x10ba56,_0x5b8c87._0x4cdb32)]),'signal':_0x337bc1[_0x5e3928(0x590,0x508,0x3de,0x4be)]});}async function fetchJsonResponse(_0x510c65){const _0xe6405={_0x252eb4:0x3f0,_0x151a17:0x3f9,_0x346101:0x667,_0x3fa3fd:0x4a8,_0x595581:0x346,_0x165a0c:0x3dd,_0x4494f2:0x388,_0x481ea4:0x277,_0x59651a:0x338,_0x3c0cf4:0x4eb},_0x7a92bc={_0x696507:0x185,_0xa5a9d:0x127,_0x3f49b0:0x1ef};function _0x2170dd(_0x2fee2b,_0x163e8f,_0x1b92ee,_0xb99cfc){return _0x551389(_0x2fee2b-_0x7a92bc._0x696507,_0x2fee2b-_0x7a92bc._0xa5a9d,_0x1b92ee,_0xb99cfc-_0x7a92bc._0x3f49b0);}function _0x3d0275(_0x11c666,_0xfad3,_0x41321c,_0x6e5a85){return _0xf0dc29(_0x41321c-0x9b,_0xfad3-0x13b,_0x6e5a85,_0x6e5a85-0x1c7);}const _0x351e17=await fetchRawResponse(_0x510c65);if(!_0x351e17['ok']){const _0x122883=await _0x351e17[_0x2170dd(_0xe6405._0x252eb4,0x36b,_0xe6405._0x151a17,0x3fb)](),_0x244017=_0x122883[_0x2170dd(0x580,_0xe6405._0x346101,0x5ec,_0xe6405._0x3fa3fd)]()||_0x351e17[_0x3d0275(0x262,_0xe6405._0x595581,0x28f,0x369)]||_0x3d0275(_0xe6405._0x165a0c,0x2b9,0x37b,_0xe6405._0x4494f2);throw new Error(_0x3d0275(_0xe6405._0x481ea4,_0xe6405._0x59651a,0x2ab,0x374)+_0x351e17['status']+':\x20'+_0x244017);}return await _0x351e17[_0x2170dd(0x496,0x4c4,_0xe6405._0x3c0cf4,0x532)]();}function findLastMessage(_0x277464,_0x3c95b4){const _0x35de4f={_0x505c6e:0x4f5,_0x1b501e:0x51d,_0x393c64:0x53e,_0x212024:0x3f4,_0x1d170b:0x478},_0x2ceae={_0x2e4824:0x1f0};for(let _0x13c462=_0x277464[_0x47d9e3(0x54a,_0x35de4f._0x505c6e,_0x35de4f._0x1b501e,0x4c0)]-0x1;_0x13c462>=0x0;_0x13c462-=0x1){if(_0x277464[_0x13c462][_0x463dbd(0x54b,_0x35de4f._0x393c64,_0x35de4f._0x212024,_0x35de4f._0x1d170b)]===_0x3c95b4)return _0x277464[_0x13c462];}function _0x463dbd(_0x2ee22e,_0x48dc0f,_0x4f732f,_0x4d8e62){return _0xf0dc29(_0x4d8e62-0x13b,_0x48dc0f-0x1b2,_0x2ee22e,_0x4d8e62-0x5d);}function _0x47d9e3(_0x31dc21,_0x588504,_0x57dd79,_0x792f67){return _0xf0dc29(_0x588504-0x262,_0x588504-0x18b,_0x792f67,_0x792f67-_0x2ceae._0x2e4824);}return void 0x0;}function hasTool(_0x40cfed,_0x223388){const _0x37b063={_0x27d0e9:0x3c8,_0xbd0c53:0x1b2},_0x146273={_0x2ab2c9:0x1ba},_0x1df8ef={_0x442f41:0x75};function _0x3b58e8(_0x5785de,_0x1f0c45,_0x288914,_0x28d362){return _0x551389(_0x5785de-_0x1df8ef._0x442f41,_0x28d362- -0x21e,_0x5785de,_0x28d362-0x4e);}function _0x144870(_0x525756,_0x5c2f3f,_0x5b7111,_0x592b77){return _0x551389(_0x525756-0xc9,_0x5b7111-0x51,_0x525756,_0x592b77-_0x146273._0x2ab2c9);}return _0x40cfed[_0x144870(0x314,0x439,0x382,_0x37b063._0x27d0e9)][_0x3b58e8(0x147,0x136,0x1c9,_0x37b063._0xbd0c53)](_0x11e78b=>_0x11e78b[_0x3b58e8(0x217,0x27f,0x14a,0x213)]===_0x223388);}function createMockResponse(_0x346a60,_0xc2c9dc,_0xc248e6,_0x1277ed){return{'id':_0x346a60,'content':_0xc2c9dc,'stopReason':_0xc248e6,'usage':_0x1277ed};}var MockModel=class{[_0xf0dc29(0x39d,0x316,0x2d2,0x2ca)];[_0xf0dc29(0x22c,0x1a6,0x22a,0x22f)];[_0xf0dc29(0x303,0x3c7,0x2fb,0x39a)]=[];[_0xf0dc29(0x1ee,0x2da,0x18e,0x14e)];constructor(_0x4ac481={}){const _0x29c756={_0x1bdc26:0x64b,_0x101e2f:0x656,_0x56e206:0x6e2,_0xe5c89b:0x554,_0x34a0d1:0x407,_0x31158e:0x537},_0x30e559={_0x5f02bc:0x2d7,_0x159227:0x12b},_0x31e40d={_0x38c1d3:0x27};function _0x4cf1ae(_0x2da29a,_0x472125,_0x5d3b7b,_0x4a3047){return _0x551389(_0x2da29a-0x12e,_0x472125- -0x335,_0x2da29a,_0x4a3047-_0x31e40d._0x38c1d3);}this['model']=_0x4ac481[_0x30e1d1(0x674,_0x29c756._0x1bdc26,_0x29c756._0x101e2f,_0x29c756._0x56e206)]??'mock',this[_0x30e1d1(0x503,0x59e,0x475,0x5bc)]=_0x4ac481['maxTokens']??getDefaultMaxTokens();function _0x30e1d1(_0x54c71b,_0x1e83df,_0x46a585,_0x5b6f18){return _0xf0dc29(_0x54c71b-_0x30e559._0x5f02bc,_0x1e83df-0x82,_0x1e83df,_0x5b6f18-_0x30e559._0x159227);}this[_0x30e1d1(0x4c5,0x42e,0x544,_0x29c756._0xe5c89b)]=_0x4ac481['reasoning']?structuredClone(_0x4ac481[_0x30e1d1(0x4c5,_0x29c756._0x34a0d1,0x3f2,_0x29c756._0x31158e)]):void 0x0;}async[_0x551389(0x31a,0x33a,0x3c8,0x37e)](_0x343142,_0x342daf){const _0x126e59={_0x5869f7:0x165,_0x1d3adf:0x184,_0x43bfc2:0x21c,_0x2fd7cb:0x34b,_0x596762:0x379,_0x3bef1c:0x3b1,_0x2f2fd2:0x3c3,_0xf61d0b:0x2d8,_0x53ea0d:0x2b6,_0x4c3176:0x260,_0x8c0fcb:0x2aa,_0x25c486:0x199,_0x3a5508:0x229,_0x41adbe:0x364,_0x3d4f8a:0x285,_0x4790f4:0x263,_0x28801c:0x468,_0x5bd264:0x3af,_0x205646:0x133,_0x27b558:0x1ba,_0x3233b6:0x30d,_0x2574da:0x21f,_0x1e67f8:0x16b,_0x2dd0c3:0x1f4,_0x297713:0x191,_0x10d38d:0x327,_0x21893d:0x20c,_0x1b8cef:0x299,_0x3f2557:0x309,_0x5cdaf9:0x31e,_0x30c01e:0x2fd,_0xabc25e:0x15a,_0x4bdc4c:0x180,_0x562b0b:0x388,_0x13459f:0x146,_0x18cf74:0x208},_0x4b693c={_0x112986:0x0,_0x4546ba:0x167},_0x501abd={_0x2c59da:0x149,_0x267579:0x1cb},_0x58bee9={...structuredClone(_0x343142),..._0x343142[_0x413126(0x228,_0x126e59._0x5869f7,0xba,_0x126e59._0x1d3adf)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x413126(0x23a,_0x126e59._0x43bfc2,0x120,0x184)])}:{}};this[_0x1fbae6(0x3e0,0x371,_0x126e59._0x2fd7cb,_0x126e59._0x596762)]['push'](_0x58bee9);const _0x11f7aa=findLastMessage(_0x58bee9[_0x1fbae6(0x42b,0x41d,0x3f9,_0x126e59._0x3bef1c)],'user'),_0x2c7846=getToolResultBlocks(_0x11f7aa),_0x681cc0=_0x1fbae6(0x40d,_0x126e59._0x2f2fd2,_0x126e59._0xf61d0b,0x397)+this[_0x413126(_0x126e59._0x53ea0d,0x30b,0x292,0x299)][_0x413126(_0x126e59._0x4c3176,_0x126e59._0x8c0fcb,_0x126e59._0x25c486,_0x126e59._0x3a5508)];if(_0x2c7846[_0x1fbae6(_0x126e59._0x41adbe,0x3ad,0x36d,0x309)]>0x0)return createMockResponse(_0x681cc0,[{'type':_0x1fbae6(_0x126e59._0x3d4f8a,_0x126e59._0x4790f4,0x32b,_0x126e59._0x4c3176),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x2c7846[0x0][_0x1fbae6(_0x126e59._0x28801c,_0x126e59._0x5bd264,0x3e3,0x428)]}],_0x413126(_0x126e59._0x205646,0x179,0x242,0x1fe),{'inputTokens':0x78,'outputTokens':0x28});function _0x413126(_0x5db443,_0x30fcc5,_0x1ec903,_0x5621d1){return _0x551389(_0x5db443-0x82,_0x5621d1- -_0x501abd._0x2c59da,_0x5db443,_0x5621d1-_0x501abd._0x267579);}const _0xac43d0=getTextFromMessage(_0x11f7aa);if(/list .*files|workspace/i[_0x1fbae6(_0x126e59._0x27b558,0x337,_0x126e59._0x3233b6,0x289)](_0xac43d0)&&hasTool(_0x58bee9,_0x1fbae6(_0x126e59._0x2574da,0x2eb,0x221,0x2c0)))return createMockResponse(_0x681cc0,[{'type':_0x413126(0xb2,_0x126e59._0x1e67f8,_0x126e59._0x2dd0c3,_0x126e59._0x297713),'id':'tool-call-'+this[_0x413126(_0x126e59._0x10d38d,0x247,_0x126e59._0x21893d,_0x126e59._0x1b8cef)][_0x1fbae6(0x2ec,0x317,0x2bc,_0x126e59._0x3f2557)],'name':_0x1fbae6(0x33c,0x278,0x2ab,0x2c0),'input':{'command':_0x413126(_0x126e59._0x5cdaf9,0x238,_0x126e59._0x30c01e,_0x126e59._0x8c0fcb)}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});function _0x1fbae6(_0x3cb3d5,_0x30e7c8,_0x1ff20f,_0x396803){return _0x551389(_0x3cb3d5-_0x4b693c._0x112986,_0x396803- -0x69,_0x30e7c8,_0x396803-_0x4b693c._0x4546ba);}return createMockResponse(_0x681cc0,[{'type':_0x413126(0x1cb,0x181,_0x126e59._0xabc25e,_0x126e59._0x4bdc4c),'text':_0x1fbae6(0x28f,0x2fa,_0x126e59._0x562b0b,0x2ab)+_0xac43d0}],_0x413126(_0x126e59._0x13459f,_0x126e59._0x18cf74,0x1db,0x1fe),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x1e0774,_0x50577b){const _0x1c7f59={_0xc76815:0x219,_0x1fd427:0x273,_0x166c3b:0x2ce,_0x15805f:0x21a,_0x170ac9:0x2ba,_0x1fffec:0x3aa,_0x32ddb8:0x2d6,_0x46910a:0x2ab,_0x4bc13b:0x2e3,_0x30b290:0x1e2,_0xcaa645:0x262,_0x189897:0x187,_0x26f59d:0xb0},_0x28b6c3={_0x20342e:0x10d},_0x25513e={_0x5c40e9:0x4a2,_0x50e65b:0x6c},_0x1b42aa=getModelProfile(_0x1e0774,_0x50577b);if(!_0x1b42aa?.[_0x1e4648(_0x1c7f59._0xc76815,_0x1c7f59._0x1fd427,_0x1c7f59._0x166c3b,0x2e3)]&&!_0x1b42aa?.[_0x1e4648(_0x1c7f59._0x15805f,_0x1c7f59._0x170ac9,0x298,0x250)])return void 0x0;function _0x99ee73(_0x5bbad3,_0x4696da,_0x3b1fd8,_0x258f2f){return _0x551389(_0x5bbad3-0x79,_0x5bbad3- -_0x25513e._0x5c40e9,_0x258f2f,_0x258f2f-_0x25513e._0x50e65b);}function _0x1e4648(_0x578b10,_0x328128,_0x4f6c9d,_0x34fa95){return _0xf0dc29(_0x34fa95-0x14,_0x328128-_0x28b6c3._0x20342e,_0x328128,_0x34fa95-0x112);}return{..._0x1b42aa[_0x1e4648(_0x1c7f59._0x1fffec,_0x1c7f59._0x32ddb8,_0x1c7f59._0x46910a,_0x1c7f59._0x4bc13b)]?{'contextWindow':_0x1b42aa['contextWindow']}:{},..._0x1b42aa[_0x1e4648(_0x1c7f59._0x30b290,0x1cc,_0x1c7f59._0xcaa645,0x250)]?{'maxOutput':_0x1b42aa[_0x99ee73(-_0x1c7f59._0x189897,-_0x1c7f59._0x26f59d,-0x25e,-0x1ab)]}:{}};}function normalizeModelInfo(_0x1d244b,_0x5d180c){const _0x18e94c={_0x216a4d:0x444,_0x30e5ff:0x3aa,_0x59bbe2:0x48d,_0x249afb:0x458,_0x4254da:0x45c,_0x4b1a38:0x582,_0x2a3e5b:0x539,_0x3a3762:0x580,_0x249f1a:0x669,_0x416652:0x37c},_0x46c885={_0x452037:0x13b},_0x80b81={_0x293d60:0x1cc},_0xbf02be=typeof _0x5d180c['id']==='string'?_0x5d180c['id']:'';function _0x2e114f(_0x39e988,_0x1bc5f6,_0x50b904,_0x1718df){return _0xf0dc29(_0x1bc5f6-0x2ec,_0x1bc5f6-_0x80b81._0x293d60,_0x50b904,_0x1718df-0x167);}const _0x317fc0=typeof _0x5d180c['name']===_0x289d5d(_0x18e94c._0x216a4d,0x3c2,_0x18e94c._0x30e5ff,0x4e7)?_0x5d180c[_0x289d5d(_0x18e94c._0x59bbe2,0x4ff,_0x18e94c._0x249afb,0x53c)]:_0xbf02be,_0x21317e=normalizeModelLimits(_0x1d244b,_0x5d180c)??getFallbackModelLimits(_0x1d244b,_0xbf02be);function _0x289d5d(_0x13797d,_0x544cfa,_0x49611c,_0xafd7c2){return _0xf0dc29(_0x13797d-_0x46c885._0x452037,_0x544cfa-0x79,_0x49611c,_0xafd7c2-0x1e2);}const _0x3f3f74=Array[_0x289d5d(0x4d9,_0x18e94c._0x4254da,0x4d2,_0x18e94c._0x4b1a38)](_0x5d180c['supported_endpoints'])?_0x5d180c['supported_endpoints']['filter'](_0x3bb683=>typeof _0x3bb683===_0x2e114f(0x588,0x5f5,0x6c4,0x593)):Array['isArray'](_0x5d180c[_0x2e114f(0x507,0x580,0x61b,0x561)])?_0x5d180c[_0x2e114f(_0x18e94c._0x2a3e5b,_0x18e94c._0x3a3762,0x64f,_0x18e94c._0x249f1a)][_0x289d5d(0x391,0x3f3,0x432,_0x18e94c._0x416652)](_0x399a8a=>typeof _0x399a8a===_0x289d5d(0x444,0x45d,0x505,0x430)):void 0x0;return{'id':_0xbf02be,'name':_0x317fc0,..._0x21317e?{'limits':_0x21317e}:{},..._0x3f3f74?{'supportedEndpoints':_0x3f3f74}:{}};}function normalizeModelLimits(_0x169ba3,_0x141cbe){const _0x2ace8f={_0x373cd4:0x425,_0x490c14:0x3bf,_0x3daf19:0x5fc,_0x49fe9b:0x650,_0x52d3ea:0x390,_0x4bfc21:0x3bf,_0x4096dd:0x500,_0x845cec:0x4c1,_0x3db0b5:0x4f5,_0x389363:0x586,_0x3ece5a:0x493,_0x537048:0x510,_0xc3b33c:0x542,_0x508553:0x2c9,_0x1300b0:0x578,_0x47374d:0x484,_0x48d95e:0x547,_0x29ab98:0x3a3,_0x4f6426:0x462,_0xf6884b:0x285,_0x4dfa8d:0x33c,_0x22dfe7:0x33b,_0x4c2244:0x53c,_0x2eab7f:0x349,_0x58f878:0x40b,_0x2a0f2d:0x3bf,_0xa34192:0x35f,_0x5089f9:0x3f0,_0x2366cd:0x2db,_0x5d43bd:0x1de,_0x5ae5e0:0x1fb,_0x5e4587:0x25f,_0x171b31:0x2ac,_0x43744d:0x545,_0x209104:0x5c7,_0x4f9db8:0x515,_0x4da1aa:0x238,_0x405a66:0x256,_0x1673aa:0x2ac,_0x2faacc:0x329,_0x3afd2e:0x277,_0x58d065:0x301,_0x4df0c0:0x26a,_0x499140:0x5ea,_0x58e089:0x477,_0x1be5d4:0x3a7,_0x47c0e8:0x3dd,_0x946629:0x304,_0x20d1f6:0x513,_0x5bdcc3:0x533,_0x2a04f3:0x3fb,_0x37fc34:0x4dd,_0x18d8f5:0x46f,_0x4049f:0x54f,_0x3e6bfe:0x694,_0x4acd4d:0x54b,_0x4067d0:0x5bf,_0x3e0079:0x227,_0x44f88f:0x544},_0x56dc65={_0x5a09a4:0x8b,_0x2d0234:0x19c},_0x2042a1={_0x1eea81:0x52,_0x2a806a:0xd3};if(_0x141cbe[_0x1567aa(0x44e,0x3c3,_0x2ace8f._0x373cd4,_0x2ace8f._0x490c14)]&&typeof _0x141cbe[_0x2a59b6(_0x2ace8f._0x3daf19,0x652,_0x2ace8f._0x49fe9b,0x5d0)]===_0x2a59b6(0x3ec,0x39c,_0x2ace8f._0x52d3ea,0x41b)){const _0x3f4f5c=_0x141cbe[_0x1567aa(0x3a4,0x339,0x45d,_0x2ace8f._0x4bfc21)];if(typeof _0x3f4f5c[_0x2a59b6(0x458,_0x2ace8f._0x4096dd,_0x2ace8f._0x845cec,_0x2ace8f._0x3db0b5)]===_0x2a59b6(_0x2ace8f._0x389363,0x4fb,_0x2ace8f._0x3ece5a,0x515))return{'contextWindow':_0x3f4f5c[_0x2a59b6(0x47e,_0x2ace8f._0x537048,_0x2ace8f._0xc3b33c,_0x2ace8f._0x3db0b5)],...typeof _0x3f4f5c[_0x1567aa(0x179,_0x2ace8f._0x508553,0x25b,0x251)]===_0x2a59b6(_0x2ace8f._0x1300b0,_0x2ace8f._0x47374d,_0x2ace8f._0x48d95e,0x515)?{'maxOutput':_0x3f4f5c[_0x2a59b6(0x374,0x404,_0x2ace8f._0x29ab98,_0x2ace8f._0x4f6426)]}:{}};}function _0x2a59b6(_0x38c893,_0x1415c0,_0x4b5a95,_0x2aefd7){return _0xf0dc29(_0x2aefd7-0x226,_0x1415c0-_0x2042a1._0x1eea81,_0x4b5a95,_0x2aefd7-_0x2042a1._0x2a806a);}if(_0x169ba3[_0x1567aa(_0x2ace8f._0xf6884b,_0x2ace8f._0x4dfa8d,0x3c6,_0x2ace8f._0x22dfe7)]()==='github'){const _0x4ebb75=_0x141cbe[_0x2a59b6(_0x2ace8f._0x4c2244,0x4c5,0x40c,0x4b3)],_0x5d8e33=_0x4ebb75?.[_0x1567aa(_0x2ace8f._0x2eab7f,_0x2ace8f._0x58f878,0x2ff,_0x2ace8f._0x2a0f2d)];if(typeof _0x5d8e33?.['max_context_window_tokens']===_0x1567aa(0x218,_0x2ace8f._0xa34192,_0x2ace8f._0x5089f9,0x304))return{'contextWindow':_0x5d8e33[_0x1567aa(0x39a,0x224,0x207,_0x2ace8f._0x2366cd)],...typeof _0x5d8e33[_0x1567aa(_0x2ace8f._0x5d43bd,_0x2ace8f._0x5ae5e0,_0x2ace8f._0x5e4587,_0x2ace8f._0x171b31)]===_0x2a59b6(_0x2ace8f._0x43744d,0x5bf,_0x2ace8f._0x209104,_0x2ace8f._0x4f9db8)?{'maxOutput':_0x5d8e33[_0x1567aa(_0x2ace8f._0x4da1aa,_0x2ace8f._0x405a66,0x1c1,_0x2ace8f._0x1673aa)]}:{}};}const _0x51dad1=_0x141cbe[_0x2a59b6(0x5a0,0x41b,0x590,0x4e5)],_0x2bb192=_0x141cbe['top_provider'];function _0x1567aa(_0x24294b,_0x2a3c94,_0x371e4b,_0x58286c){return _0xf0dc29(_0x58286c-0x15,_0x2a3c94-_0x56dc65._0x5a09a4,_0x24294b,_0x58286c-_0x56dc65._0x2d0234);}const _0x5c5a37=typeof _0x141cbe[_0x1567aa(0x1e2,0x253,_0x2ace8f._0x2faacc,0x266)]===_0x1567aa(_0x2ace8f._0x3afd2e,0x2d9,0x256,0x304)?_0x141cbe[_0x1567aa(_0x2ace8f._0x58d065,0x2ad,_0x2ace8f._0x4df0c0,0x266)]:typeof _0x51dad1?.['context_length']===_0x2a59b6(0x5a8,_0x2ace8f._0x499140,0x5b5,_0x2ace8f._0x4f9db8)?_0x51dad1['context_length']:typeof _0x2bb192?.[_0x2a59b6(0x453,0x526,0x4b7,_0x2ace8f._0x58e089)]===_0x1567aa(0x2cd,_0x2ace8f._0x1be5d4,_0x2ace8f._0x47c0e8,_0x2ace8f._0x946629)?_0x2bb192[_0x2a59b6(_0x2ace8f._0x20d1f6,_0x2ace8f._0x5bdcc3,_0x2ace8f._0x2a04f3,_0x2ace8f._0x58e089)]:void 0x0;if(_0x5c5a37===void 0x0)return void 0x0;return{'contextWindow':_0x5c5a37,...typeof _0x51dad1?.[_0x2a59b6(0x543,_0x2ace8f._0x37fc34,_0x2ace8f._0x18d8f5,_0x2ace8f._0x4049f)]==='number'?{'maxOutput':_0x51dad1['max_tokens']}:typeof _0x2bb192?.[_0x2a59b6(_0x2ace8f._0x3e6bfe,0x62c,_0x2ace8f._0x4acd4d,_0x2ace8f._0x4067d0)]===_0x1567aa(0x2a7,0x377,_0x2ace8f._0x3e0079,_0x2ace8f._0x946629)?{'maxOutput':_0x2bb192[_0x2a59b6(_0x2ace8f._0x44f88f,0x5ff,0x62e,0x5bf)]}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultMaxTokens,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerFromSurface,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};