@nuvin/agent-core 0.3.0 → 0.3.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,6 +73,7 @@ export declare class RoutedModel implements EngineChatModel {
73
73
  }): Promise<Response>;
74
74
  protected getRetryDelayMs(response: Response | undefined, attemptIndex: number): number;
75
75
  private shouldRetryResponse;
76
+ private shouldRefreshProviderSession;
76
77
  private shouldRetryRequestError;
77
78
  private shouldRetryStreamAttemptError;
78
79
  private waitForRetry;
@@ -1 +1 @@
1
- function _0x54f3(_0x44f0bd,_0x390733){_0x44f0bd=_0x44f0bd-0xab;const _0x1d3505=_0x1d35();let _0x54f356=_0x1d3505[_0x44f0bd];if(_0x54f3['ZxybFv']===undefined){var _0x1901ea=function(_0x426ee0){const _0x28ff1e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c2474='',_0x2fe15b='';for(let _0x30ecd0=0x0,_0x41d4a0,_0x157c50,_0x387256=0x0;_0x157c50=_0x426ee0['charAt'](_0x387256++);~_0x157c50&&(_0x41d4a0=_0x30ecd0%0x4?_0x41d4a0*0x40+_0x157c50:_0x157c50,_0x30ecd0++%0x4)?_0x1c2474+=String['fromCharCode'](0xff&_0x41d4a0>>(-0x2*_0x30ecd0&0x6)):0x0){_0x157c50=_0x28ff1e['indexOf'](_0x157c50);}for(let _0xb694b1=0x0,_0x4b713c=_0x1c2474['length'];_0xb694b1<_0x4b713c;_0xb694b1++){_0x2fe15b+='%'+('00'+_0x1c2474['charCodeAt'](_0xb694b1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2fe15b);};_0x54f3['OgnBuQ']=_0x1901ea,_0x54f3['RHkcNA']={},_0x54f3['ZxybFv']=!![];}const _0x52caab=_0x1d3505[0x0],_0xa3d3f6=_0x44f0bd+_0x52caab,_0x3e3b3c=_0x54f3['RHkcNA'][_0xa3d3f6];return!_0x3e3b3c?(_0x54f356=_0x54f3['OgnBuQ'](_0x54f356),_0x54f3['RHkcNA'][_0xa3d3f6]=_0x54f356):_0x54f356=_0x3e3b3c,_0x54f356;}(function(_0x56cdb9,_0x53acba){const _0x388994={_0x2c3121:0xfe,_0x43591f:0xe9,_0x4867ed:0xf4,_0x5ca272:0x130,_0x37bb74:0x129,_0x50e64c:0x10f,_0x3d1e6d:0x11c,_0x586f29:0x115,_0xbe9358:0x11b,_0x3cfbc3:0x11f,_0x237b21:0x117,_0x1abeaf:0x111,_0x5e4de9:0xec,_0x11293a:0x113,_0x281001:0x120,_0x4a05b2:0xfa,_0x230f21:0xed,_0x2678be:0xfc,_0x2630f9:0x102,_0x24ad95:0xfa,_0xf172df:0xf9,_0x142a4d:0xf5,_0x3b3dda:0x12f,_0x370c43:0x12b,_0xfcce65:0x11e},_0x2cdac8={_0x50807d:0x68};function _0x1fa3c4(_0x2330b1,_0x916525,_0x450ff9,_0x42a2cc){return _0x54f3(_0x42a2cc-_0x2cdac8._0x50807d,_0x2330b1);}const _0x5849ee=_0x56cdb9();function _0x867ca0(_0x2d5ade,_0xf71bf3,_0x51c2e2,_0x2c7964){return _0x54f3(_0x2c7964- -0x1a9,_0x2d5ade);}while(!![]){try{const _0xc7d1ad=parseInt(_0x867ca0(-_0x388994._0x2c3121,-0xfc,-_0x388994._0x43591f,-_0x388994._0x4867ed))/0x1+parseInt(_0x1fa3c4(_0x388994._0x5ca272,0x12f,_0x388994._0x37bb74,0x12a))/0x2*(parseInt(_0x1fa3c4(0x120,_0x388994._0x50e64c,0x112,_0x388994._0x3d1e6d))/0x3)+-parseInt(_0x1fa3c4(0x124,_0x388994._0x586f29,_0x388994._0xbe9358,_0x388994._0x3cfbc3))/0x4*(parseInt(_0x1fa3c4(_0x388994._0x237b21,0x10f,_0x388994._0x1abeaf,0x11b))/0x5)+-parseInt(_0x867ca0(-0xea,-0xe0,-0xf0,-_0x388994._0x5e4de9))/0x6+parseInt(_0x1fa3c4(0x127,_0x388994._0x11293a,0x11e,_0x388994._0x281001))/0x7*(-parseInt(_0x867ca0(-_0x388994._0x4a05b2,-_0x388994._0x230f21,-_0x388994._0x2678be,-0xf0))/0x8)+parseInt(_0x867ca0(-0x105,-_0x388994._0x2630f9,-_0x388994._0x24ad95,-_0x388994._0xf172df))/0x9*(parseInt(_0x867ca0(-_0x388994._0x142a4d,-0xf1,-0xef,-0xfb))/0xa)+parseInt(_0x1fa3c4(_0x388994._0x3b3dda,0x133,0x120,_0x388994._0x370c43))/0xb*(parseInt(_0x1fa3c4(0x12b,0x119,0x123,_0x388994._0xfcce65))/0xc);if(_0xc7d1ad===_0x53acba)break;else _0x5849ee['push'](_0x5849ee['shift']());}catch(_0x474ddc){_0x5849ee['push'](_0x5849ee['shift']());}}}(_0x1d35,0x733ec));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x1c2474){const _0x5a2b51={_0x2e4a57:0x189,_0x1b040c:0x196,_0x48d34e:0x196,_0x3d0716:0x238,_0x3f4f80:0x243,_0x129e2f:0x234,_0x35cc3e:0x180,_0x31e65d:0x17a},_0x35a741={_0x4ddc08:0x3aa,_0x86beaa:0x3b6,_0x1af925:0x3a9,_0x4f30c8:0x3bf,_0x243a35:0x3ac,_0x5cd8f2:0x3ae,_0x528ea9:0xa1,_0x5366c6:0xa4,_0x3a1559:0x95},_0x4ed09b={_0x164b2c:0x147},_0x8bc980={_0x3c4406:0x171,_0x5e9408:0x7c,_0x5a3646:0x1c2},_0x144156={_0x3c23ab:0x38a,_0x30e51e:0x38a,_0x3d0089:0x388,_0x514f4f:0x3a1,_0x9df135:0x3a6,_0x209a5c:0x39c,_0x5e59cd:0x3a3,_0x132c4d:0x3a0,_0x2228ce:0x317,_0x5edc0a:0x30d},_0x217bf3={_0x35e00e:0xdf},_0x1083d6={_0x490dc3:0xcf};if(!Number[_0x516a0d(0x18f,_0x5a2b51._0x2e4a57,_0x5a2b51._0x1b040c,_0x5a2b51._0x48d34e)](_0x1c2474)||!Number[_0x3c9c3f(_0x5a2b51._0x3d0716,_0x5a2b51._0x3f4f80,_0x5a2b51._0x129e2f,0x239)](_0x1c2474)||_0x1c2474<=0x0)throw new Error(_0x516a0d(_0x5a2b51._0x35cc3e,_0x5a2b51._0x35cc3e,_0x5a2b51._0x31e65d,0x183));let _0x2fe15b=0x0;const _0x30ecd0=[];function _0x3c9c3f(_0x2903a9,_0x292e15,_0x21ef5a,_0x56e24d){return _0x54f3(_0x2903a9-0x189,_0x21ef5a);}function _0x516a0d(_0x69ee80,_0x534ca3,_0x3941b9,_0xd6752d){return _0x54f3(_0x534ca3-_0x1083d6._0x490dc3,_0x3941b9);}const _0x41d4a0=()=>{let _0xb694b1=![];return()=>{if(_0xb694b1)return;_0xb694b1=!![],_0x2fe15b-=0x1,_0x157c50();};},_0x157c50=()=>{const _0x4da4f1={_0x63eadf:0xd8};function _0x49fb86(_0x293e4d,_0xc842e7,_0x4ee68b,_0x5d6c4c){return _0x516a0d(_0x293e4d-_0x217bf3._0x35e00e,_0x5d6c4c-0x20e,_0x4ee68b,_0x5d6c4c-0xd6);}function _0x2bb72a(_0x138ccb,_0x2f5711,_0x25838b,_0x517245){return _0x3c9c3f(_0x2f5711-0xe2,_0x2f5711-_0x4da4f1._0x63eadf,_0x138ccb,_0x517245-0xb0);}while(_0x30ecd0['length']>0x0){const _0x4b713c=_0x30ecd0[_0x49fb86(0x385,_0x144156._0x3c23ab,_0x144156._0x30e51e,_0x144156._0x3d0089)]();if(!_0x4b713c||_0x4b713c[_0x49fb86(_0x144156._0x514f4f,0x3a0,_0x144156._0x9df135,_0x144156._0x209a5c)])continue;_0x4b713c[_0x49fb86(0x39d,0x390,0x3a9,0x39c)]=!![],_0x4b713c[_0x49fb86(_0x144156._0x5e59cd,_0x144156._0x132c4d,0x39c,0x398)](),_0x2fe15b+=0x1,_0x4b713c[_0x2bb72a(0x314,_0x144156._0x2228ce,_0x144156._0x5edc0a,0x30d)](_0x41d4a0());return;}},_0x387256=()=>{if(_0x2fe15b>=_0x1c2474)return void 0x0;return _0x2fe15b+=0x1,_0x41d4a0();};return{'tryAcquire':_0x387256,'acquire'(_0x16f18f){const _0x24c40f={_0xa7bb46:0xe9,_0x1ee00c:0xe3,_0x3aa1ad:0xec,_0x4af74e:0x465},_0x319d89={_0x134c07:0x185,_0x2a3599:0x80};if(_0x16f18f?.['aborted'])return Promise[_0x5696ee(_0x35a741._0x4ddc08,_0x35a741._0x86beaa,_0x35a741._0x1af925,_0x35a741._0x4f30c8)](toAbortError(_0x16f18f[_0x5696ee(0x3aa,_0x35a741._0x243a35,_0x35a741._0x5cd8f2,0x3a5)]));const _0x179a64=_0x387256();if(_0x179a64!==void 0x0)return Promise[_0x1de924(_0x35a741._0x528ea9,_0x35a741._0x5366c6,0xa3,_0x35a741._0x3a1559)](_0x179a64);function _0x5696ee(_0x1f172d,_0x257976,_0x5251b3,_0x5961cc){return _0x3c9c3f(_0x257976-_0x8bc980._0x3c4406,_0x257976-_0x8bc980._0x5e9408,_0x1f172d,_0x5961cc-_0x8bc980._0x5a3646);}function _0x1de924(_0x53a791,_0x47a7af,_0x169720,_0x2c3e1e){return _0x516a0d(_0x53a791-0x95,_0x53a791- -0xda,_0x2c3e1e,_0x2c3e1e-_0x4ed09b._0x164b2c);}return new Promise((_0x464225,_0x1a1de1)=>{const _0x366189={_0x786b04:0x1b5,_0x369cf4:0x1be,_0x353fef:0x1cb,_0x1b48ec:0x1c8,_0x37e29d:0x1b1,_0x526f86:0x1bc,_0x22ff1a:0x3ef,_0x597de5:0x3e4,_0x5c9f28:0x3fc,_0x417e1f:0x3eb,_0x288ca5:0x3ee,_0x220786:0x3f0,_0x26871c:0x3e5},_0x304142={_0x17b8dc:0x9f},_0x12ebca={_0x30f7d1:0xac};function _0x2193eb(_0x18c6f2,_0x330b59,_0x20e155,_0xb8e3ff){return _0x5696ee(_0x330b59,_0xb8e3ff-_0x12ebca._0x30f7d1,_0x20e155-0x98,_0xb8e3ff-0x3d);}const _0x30b443={'resolve':_0x464225,'reject':_0x1a1de1,'cancelled':![],'removeAbortListener':()=>{}};function _0x39c26e(_0x104dee,_0x46d2b1,_0x3f79a4,_0x2c9a13){return _0x1de924(_0x46d2b1- -_0x319d89._0x134c07,_0x46d2b1-0x191,_0x3f79a4-_0x319d89._0x2a3599,_0x3f79a4);}_0x30ecd0[_0x39c26e(-_0x24c40f._0xa7bb46,-_0x24c40f._0x1ee00c,-_0x24c40f._0x3aa1ad,-0xda)](_0x30b443),_0x30b443[_0x2193eb(0x469,_0x24c40f._0x4af74e,0x469,0x461)]=addAbortListener(_0x16f18f,()=>{const _0x533e8c={_0x9e255b:0x195,_0x1dcfdf:0x4c4};if(_0x30b443[_0x3781fd(-_0x366189._0x786b04,-_0x366189._0x369cf4,-_0x366189._0x353fef,-_0x366189._0x1b48ec)])return;_0x30b443[_0x3781fd(-0x1bf,-0x1be,-_0x366189._0x37e29d,-_0x366189._0x526f86)]=!![],_0x30b443[_0x5e1849(0x3e5,_0x366189._0x22ff1a,_0x366189._0x597de5,0x3f2)]();function _0x5e1849(_0xb6a921,_0x504c2a,_0xdb9ea,_0xd9bec){return _0x39c26e(_0xb6a921-_0x533e8c._0x9e255b,_0x504c2a-_0x533e8c._0x1dcfdf,_0xd9bec,_0xd9bec-0x1c0);}const _0x14626a=_0x30ecd0[_0x5e1849(0x3f9,0x3f2,_0x366189._0x5c9f28,_0x366189._0x417e1f)](_0x30b443);function _0x3781fd(_0x1e58e8,_0x32576c,_0x5c2ca7,_0x15174c){return _0x2193eb(_0x1e58e8-_0x304142._0x17b8dc,_0x15174c,_0x5c2ca7-0x1ce,_0x32576c- -0x623);}if(_0x14626a>=0x0)_0x30ecd0[_0x5e1849(0x3fd,0x3f4,0x3f8,_0x366189._0x288ca5)](_0x14626a,0x1);_0x30b443[_0x5e1849(0x3fc,_0x366189._0x220786,_0x366189._0x26871c,0x3ef)](toAbortError(_0x16f18f?.['reason']));});});}};}var MESSAGE_ROLES=[_0x2ce654(0x4d,0x49,0x4f,0x5b),_0x141f52(0x20c,0x211,0x20d,0x204)];function _0x141f52(_0xc53113,_0x3e1276,_0x4340c9,_0x524abf){return _0x54f3(_0x4340c9-0x14c,_0x524abf);}Object['freeze'](MESSAGE_ROLES);function _0x2ce654(_0x12416e,_0xd970c5,_0x2cc9ec,_0x13ac1e){return _0x54f3(_0x2cc9ec- -0x75,_0xd970c5);}export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};function _0x1d35(){const _0x400822=['CMvQzwn0','mJe3otG0mKTPEenTra','Aw5KzxHpzG','y2fUy2vSBgvK','C3bSAwnL','DxnLCG','mtmWotz2v3rwBgO','mJiZmJy3CM5juhfv','yxnZAxn0yw50','C2HPzNq','CMvZB2X2zq','ChvZAa','mZaYodeWqLjJANHr','AxnjBNrLz2vY','owPOqLn2sq','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','CMvHC29U','nJiZmda1z2Dpww5k','ndHfthPUuM0','mty3odCWA0HpEevI','otm2qwH1re1y','nhvizfP5tW','n0nxCK1Pyq','nZqWota2ng9ACKrbva','AxngAw5PDgu','CMvTB3zLqwjVCNrmAxn0zw5LCG'];_0x1d35=function(){return _0x400822;};return _0x1d35();}
1
+ function _0x50af(_0x3ce586,_0x3cd584){_0x3ce586=_0x3ce586-0x1f0;const _0x37c9e0=_0x37c9();let _0x50afa3=_0x37c9e0[_0x3ce586];if(_0x50af['hwDbWx']===undefined){var _0x4e80a0=function(_0x1c112d){const _0x415317='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2bd7a4='',_0x4e556d='';for(let _0xb6b8c1=0x0,_0x4f46f9,_0x128843,_0x12fed2=0x0;_0x128843=_0x1c112d['charAt'](_0x12fed2++);~_0x128843&&(_0x4f46f9=_0xb6b8c1%0x4?_0x4f46f9*0x40+_0x128843:_0x128843,_0xb6b8c1++%0x4)?_0x2bd7a4+=String['fromCharCode'](0xff&_0x4f46f9>>(-0x2*_0xb6b8c1&0x6)):0x0){_0x128843=_0x415317['indexOf'](_0x128843);}for(let _0x3c533f=0x0,_0x4ff21c=_0x2bd7a4['length'];_0x3c533f<_0x4ff21c;_0x3c533f++){_0x4e556d+='%'+('00'+_0x2bd7a4['charCodeAt'](_0x3c533f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4e556d);};_0x50af['EzJzjI']=_0x4e80a0,_0x50af['WFizVn']={},_0x50af['hwDbWx']=!![];}const _0x1d12b9=_0x37c9e0[0x0],_0x8c5491=_0x3ce586+_0x1d12b9,_0x86acf4=_0x50af['WFizVn'][_0x8c5491];return!_0x86acf4?(_0x50afa3=_0x50af['EzJzjI'](_0x50afa3),_0x50af['WFizVn'][_0x8c5491]=_0x50afa3):_0x50afa3=_0x86acf4,_0x50afa3;}(function(_0xae4d09,_0x148c44){const _0x13232c={_0x16dc76:0x1e0,_0x14b55c:0x1e9,_0x4ab514:0x1e6,_0x5ba978:0x1dc,_0x23ae68:0x402,_0x2efb31:0x3f1,_0x3545a3:0x3fe,_0xa13b8a:0x1e7,_0x234eb8:0x3f8,_0x4af472:0x3fc,_0x20da57:0x401,_0x597685:0x1e3,_0x1d1a39:0x1f9,_0x126096:0x1ef,_0x1118d7:0x1e3,_0x1159ae:0x1e5,_0x4bdf9c:0x1ee,_0x1891f8:0x1d8},_0x1e2224={_0x504d3f:0x204},_0x1ba525={_0x4c5f67:0x3e3};function _0x53bf5e(_0x3538ee,_0x47008e,_0x5ea175,_0x2cf421){return _0x50af(_0x5ea175- -_0x1ba525._0x4c5f67,_0x47008e);}const _0x127cc4=_0xae4d09();function _0x1c081d(_0x5978f3,_0x48c536,_0x16e769,_0x53674e){return _0x50af(_0x53674e-_0x1e2224._0x504d3f,_0x5978f3);}while(!![]){try{const _0x12770a=-parseInt(_0x53bf5e(-0x1eb,-_0x13232c._0x16dc76,-_0x13232c._0x14b55c,-0x1de))/0x1+-parseInt(_0x53bf5e(-_0x13232c._0x16dc76,-_0x13232c._0x4ab514,-_0x13232c._0x5ba978,-0x1db))/0x2+-parseInt(_0x1c081d(0x406,0x40d,0x401,_0x13232c._0x23ae68))/0x3*(-parseInt(_0x1c081d(0x3f4,_0x13232c._0x2efb31,_0x13232c._0x3545a3,0x3fa))/0x4)+parseInt(_0x53bf5e(-0x1db,-0x1e5,-_0x13232c._0xa13b8a,-0x1e6))/0x5*(parseInt(_0x53bf5e(-0x1dd,-0x1d5,-_0x13232c._0x16dc76,-0x1e6))/0x6)+-parseInt(_0x1c081d(_0x13232c._0x234eb8,_0x13232c._0x4af472,0x3fe,_0x13232c._0x20da57))/0x7+parseInt(_0x53bf5e(-_0x13232c._0x597685,-_0x13232c._0x1d1a39,-_0x13232c._0x126096,-_0x13232c._0x1118d7))/0x8+parseInt(_0x53bf5e(-_0x13232c._0x1159ae,-0x1e4,-_0x13232c._0x4bdf9c,-0x1e5))/0x9*(parseInt(_0x53bf5e(-0x1ea,-0x1ef,-0x1e4,-_0x13232c._0x1891f8))/0xa);if(_0x12770a===_0x148c44)break;else _0x127cc4['push'](_0x127cc4['shift']());}catch(_0x3537ca){_0x127cc4['push'](_0x127cc4['shift']());}}}(_0x37c9,0x7e798));function _0x42be2b(_0x33e59c,_0x40497f,_0x37d311,_0x1b37cb){const _0x32d2d8={_0x52fff9:0x307};return _0x50af(_0x40497f-_0x32d2d8._0x52fff9,_0x33e59c);}import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x2bd7a4){const _0x16d53f={_0x2f46bf:0x278,_0x54e0b3:0x280,_0xcb4ae5:0x286},_0x3fea62={_0x3b44a4:0x12a,_0x4adab4:0x12e,_0x12ef14:0x123,_0x213733:0x4f6,_0x4b9cd5:0x4fe,_0x397195:0x504,_0x1949f8:0x509,_0xf694d1:0x503},_0x3440ee={_0x2ccfe9:0x2a9,_0x19d4ce:0x2a4,_0x458633:0x3e0,_0x39a70b:0x3cf},_0x33c625={_0x308ccd:0x93},_0x26b229={_0x2943d6:0x8e},_0x4b894e={_0x291f6c:0x173,_0x480786:0x16c,_0x11c5e3:0xfe,_0x5bad88:0xf6,_0x4419ab:0x178,_0x2c2fb8:0x177,_0x5291a6:0x17f,_0x4e9bf1:0x17a,_0x23ff4c:0x16d},_0x4bda25={_0x1f7362:0x11b,_0x57d80b:0x1a5,_0x46e1d8:0x91};if(!Number[_0x2d92e6(0x27e,0x275,_0x16d53f._0x2f46bf,_0x16d53f._0x54e0b3)](_0x2bd7a4)||!Number['isInteger'](_0x2bd7a4)||_0x2bd7a4<=0x0)throw new Error(_0x2d92e6(0x284,_0x16d53f._0xcb4ae5,0x287,0x289));let _0x4e556d=0x0;const _0xb6b8c1=[],_0x4f46f9=()=>{let _0x3c533f=![];return()=>{if(_0x3c533f)return;_0x3c533f=!![],_0x4e556d-=0x1,_0x128843();};},_0x128843=()=>{const _0x45f3d7={_0x2eb4bd:0x9f,_0x97ecf1:0x3ff};function _0x10d616(_0xcdf12d,_0x4c427d,_0x4386cb,_0x4d2f0f){return _0x2d92e6(_0xcdf12d-_0x45f3d7._0x2eb4bd,_0x4386cb,_0x4386cb-0x106,_0xcdf12d- -_0x45f3d7._0x97ecf1);}function _0x575852(_0x1543d0,_0x10e053,_0x1f18be,_0x18ace3){return _0x34a5ab(_0x1543d0- -_0x4bda25._0x1f7362,_0x10e053-_0x4bda25._0x57d80b,_0x1f18be-_0x4bda25._0x46e1d8,_0x10e053);}while(_0xb6b8c1['length']>0x0){const _0x4ff21c=_0xb6b8c1[_0x10d616(-0x170,-_0x4b894e._0x291f6c,-_0x4b894e._0x480786,-0x179)]();if(!_0x4ff21c||_0x4ff21c[_0x575852(0xfd,_0x4b894e._0x11c5e3,_0x4b894e._0x5bad88,0xfd)])continue;_0x4ff21c[_0x10d616(-_0x4b894e._0x4419ab,-0x17d,-_0x4b894e._0x2c2fb8,-_0x4b894e._0x5291a6)]=!![],_0x4ff21c['removeAbortListener'](),_0x4e556d+=0x1,_0x4ff21c[_0x10d616(-0x16f,-0x168,-_0x4b894e._0x4e9bf1,-_0x4b894e._0x23ff4c)](_0x4f46f9());return;}};function _0x2d92e6(_0x8f3115,_0x5994f9,_0x5a3720,_0x118382){return _0x50af(_0x118382-_0x26b229._0x2943d6,_0x5994f9);}const _0x12fed2=()=>{if(_0x4e556d>=_0x2bd7a4)return void 0x0;return _0x4e556d+=0x1,_0x4f46f9();};function _0x34a5ab(_0x71f690,_0x3ec9e7,_0x258629,_0x3ee03f){return _0x50af(_0x71f690-0x1f,_0x3ee03f);}return{'tryAcquire':_0x12fed2,'acquire'(_0x1452b2){const _0xabf86b={_0x345fe3:0x2e8};if(_0x1452b2?.[_0x3a9ad1(-_0x3fea62._0x3b44a4,-_0x3fea62._0x4adab4,-0x118,-_0x3fea62._0x12ef14)])return Promise['reject'](toAbortError(_0x1452b2[_0x404668(0x507,_0x3fea62._0x213733,_0x3fea62._0x4b9cd5,0x508)]));function _0x3a9ad1(_0x51a695,_0x395b71,_0xbb743d,_0x43aa2a){return _0x2d92e6(_0x51a695-0x23,_0xbb743d,_0xbb743d-_0x33c625._0x308ccd,_0x43aa2a- -0x3b5);}function _0x404668(_0x109fa3,_0x4f1276,_0x457330,_0x4f6f5a){return _0x34a5ab(_0x457330-_0xabf86b._0x345fe3,_0x4f1276-0x9,_0x457330-0x19a,_0x109fa3);}const _0x5981b7=_0x12fed2();if(_0x5981b7!==void 0x0)return Promise[_0x404668(_0x3fea62._0x397195,0x512,_0x3fea62._0x1949f8,_0x3fea62._0xf694d1)](_0x5981b7);return new Promise((_0x51ede5,_0x9506b1)=>{const _0x4f1866={_0x4c668e:0x106,_0x50ea37:0x2a6,_0x46bad4:0x2a3,_0x4a9d42:0x11f,_0x6809fb:0x297,_0x25182d:0x2a4},_0x24f9dd={_0x995699:0x3bd,_0x214044:0x13b},_0x145f93={_0x3aebce:0x108,_0x2ca7b5:0x13,_0x528f10:0x4f8},_0x16fd06={'resolve':_0x51ede5,'reject':_0x9506b1,'cancelled':![],'removeAbortListener':()=>{}};function _0x231f54(_0x195953,_0x4609be,_0x4dae80,_0x1df849){return _0x3a9ad1(_0x195953-_0x145f93._0x3aebce,_0x4609be-_0x145f93._0x2ca7b5,_0x195953,_0x4609be-_0x145f93._0x528f10);}function _0x557a33(_0x38e992,_0x35094e,_0x3de1b3,_0xf8842e){return _0x404668(_0x38e992,_0x35094e-0x86,_0x3de1b3- -0x259,_0xf8842e-0xb5);}_0xb6b8c1[_0x557a33(_0x3440ee._0x2ccfe9,0x29b,0x2a6,_0x3440ee._0x19d4ce)](_0x16fd06),_0x16fd06[_0x231f54(_0x3440ee._0x458633,0x3d6,_0x3440ee._0x39a70b,0x3d1)]=addAbortListener(_0x1452b2,()=>{function _0x6af277(_0x5c48b5,_0x309141,_0x2b6848,_0x595afb){return _0x557a33(_0x5c48b5,_0x309141-0xe5,_0x309141- -_0x24f9dd._0x995699,_0x595afb-_0x24f9dd._0x214044);}if(_0x16fd06['cancelled'])return;_0x16fd06['cancelled']=!![],_0x16fd06[_0x6af277(-_0x4f1866._0x4c668e,-0x10a,-0x101,-0x101)]();const _0x5520a5=_0xb6b8c1['indexOf'](_0x16fd06);if(_0x5520a5>=0x0)_0xb6b8c1[_0x5f0dd3(_0x4f1866._0x50ea37,_0x4f1866._0x46bad4,0x2aa,0x2b5)](_0x5520a5,0x1);function _0x5f0dd3(_0x41d507,_0x580485,_0xe4115a,_0x21c3b6){return _0x557a33(_0x580485,_0x580485-0xc0,_0xe4115a- -0xa,_0x21c3b6-0x113);}_0x16fd06[_0x6af277(-0x124,-0x11f,-0x119,-_0x4f1866._0x4a9d42)](toAbortError(_0x1452b2?.[_0x5f0dd3(_0x4f1866._0x6809fb,_0x4f1866._0x25182d,0x29b,0x291)]));});});}};}var MESSAGE_ROLES=[_0x59eb56(0x435,0x441,0x447,0x43a),_0x42be2b(0x4fa,0x4fa,0x4f9,0x4f5)];function _0x59eb56(_0x18c4e5,_0x20ee3c,_0x2dcff0,_0xd00411){const _0x168cbf={_0x5d3e75:0x250};return _0x50af(_0x20ee3c-_0x168cbf._0x5d3e75,_0x18c4e5);}function _0x37c9(){const _0x58a9d2=['mtiYnZzbB1rVAvK','CMvHC29U','ChvZAa','y2fUy2vSBgvK','nZmWnda4ywTUAevA','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','mJbKBu9iwgC','ndu0mZG4oujrq2n5yW','mtuZvKzorMfJ','mtK3mtK1mZbXEeTluMS','zNjLzxPL','C2HPzNq','CMvZB2X2zq','nda5mZHcANDUveK','ywjVCNrLza','CMvTB3zLqwjVCNrmAxn0zw5LCG','C3bSAwnL','mtGWnJmZogzMDgnivG','CMvQzwn0','yxnZAxn0yw50','AxngAw5PDgu','DxnLCG','nte1otG0mhPOwhjhqW','oxvLAfrLDG'];_0x37c9=function(){return _0x58a9d2;};return _0x37c9();}Object[_0x59eb56(0x452,0x450,0x453,0x452)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};