@nuvin/agent-core 0.3.0-rc.8 → 0.3.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.
@@ -1 +1 @@
1
- (function(_0x1dd1bc,_0x3650ab){const _0x31acb4={_0x51c86c:0x46a,_0x3394be:0x462,_0x501935:0x457,_0x1df1f7:0x461,_0x5cf520:0x469,_0x22e49b:0x45a,_0x390a67:0x45e,_0x118d3c:0x458,_0x429930:0x467,_0x444810:0x6d,_0x27fd6c:0x58,_0x5963d9:0x4e,_0x4f19bd:0x54,_0x584d76:0x5f,_0x16cc6b:0x59,_0x41254f:0x470,_0x4174d5:0x46b,_0x25d86a:0x461};function _0x366c60(_0x1182b2,_0x313c49,_0xc39f2e,_0x176466){return _0x27c7(_0x313c49-0x32d,_0xc39f2e);}const _0x5a09d6=_0x1dd1bc();function _0x3f71f8(_0x786716,_0x3cd33c,_0x2cc23d,_0x55d90f){return _0x27c7(_0x3cd33c- -0x195,_0x786716);}while(!![]){try{const _0x414f27=parseInt(_0x366c60(_0x31acb4._0x51c86c,_0x31acb4._0x3394be,_0x31acb4._0x501935,_0x31acb4._0x1df1f7))/0x1*(-parseInt(_0x366c60(_0x31acb4._0x5cf520,0x45d,_0x31acb4._0x22e49b,_0x31acb4._0x3394be))/0x2)+-parseInt(_0x3f71f8(-0x5b,-0x67,-0x5e,-0x60))/0x3+-parseInt(_0x366c60(0x467,_0x31acb4._0x390a67,_0x31acb4._0x118d3c,_0x31acb4._0x429930))/0x4*(parseInt(_0x3f71f8(-_0x31acb4._0x444810,-0x69,-0x73,-0x62))/0x5)+-parseInt(_0x3f71f8(-0x5a,-_0x31acb4._0x27fd6c,-_0x31acb4._0x5963d9,-0x60))/0x6+parseInt(_0x3f71f8(-_0x31acb4._0x4f19bd,-0x5c,-0x51,-_0x31acb4._0x584d76))/0x7*(parseInt(_0x3f71f8(-0x60,-0x5e,-0x64,-_0x31acb4._0x16cc6b))/0x8)+-parseInt(_0x3f71f8(-0x64,-0x5b,-0x54,-0x5b))/0x9+parseInt(_0x366c60(_0x31acb4._0x41254f,_0x31acb4._0x4174d5,_0x31acb4._0x25d86a,0x462))/0xa;if(_0x414f27===_0x3650ab)break;else _0x5a09d6['push'](_0x5a09d6['shift']());}catch(_0x46b45f){_0x5a09d6['push'](_0x5a09d6['shift']());}}}(_0x1a4e,0x9ff4c));function _0x16e1ba(_0x4db69c,_0x14f5c8,_0x3f7129,_0x3d6a5c){const _0xb3a79c={_0x3613fd:0xe2};return _0x27c7(_0x3d6a5c- -_0xb3a79c._0x3613fd,_0x3f7129);}function _0x27c7(_0x4fa542,_0x19b0d1){_0x4fa542=_0x4fa542-0x128;const _0x1a4ed6=_0x1a4e();let _0x27c7b8=_0x1a4ed6[_0x4fa542];if(_0x27c7['UrUzyb']===undefined){var _0x13629c=function(_0x2f2935){const _0x291600='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x15a3ec='',_0x4570a7='';for(let _0x435d4a=0x0,_0x533bb0,_0x5a3684,_0x1265d1=0x0;_0x5a3684=_0x2f2935['charAt'](_0x1265d1++);~_0x5a3684&&(_0x533bb0=_0x435d4a%0x4?_0x533bb0*0x40+_0x5a3684:_0x5a3684,_0x435d4a++%0x4)?_0x15a3ec+=String['fromCharCode'](0xff&_0x533bb0>>(-0x2*_0x435d4a&0x6)):0x0){_0x5a3684=_0x291600['indexOf'](_0x5a3684);}for(let _0x10b380=0x0,_0x2eb72a=_0x15a3ec['length'];_0x10b380<_0x2eb72a;_0x10b380++){_0x4570a7+='%'+('00'+_0x15a3ec['charCodeAt'](_0x10b380)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4570a7);};_0x27c7['bmJKKM']=_0x13629c,_0x27c7['SdmhUo']={},_0x27c7['UrUzyb']=!![];}const _0xe59dc0=_0x1a4ed6[0x0],_0x38d5a8=_0x4fa542+_0xe59dc0,_0x3c0ca0=_0x27c7['SdmhUo'][_0x38d5a8];return!_0x3c0ca0?(_0x27c7b8=_0x27c7['bmJKKM'](_0x27c7b8),_0x27c7['SdmhUo'][_0x38d5a8]=_0x27c7b8):_0x27c7b8=_0x3c0ca0,_0x27c7b8;}function _0x1a4e(){const _0x13054e=['ywjVCNrLza','C2HPzNq','nZy1mZGZngzuswftyW','nde4mJy3ndbothHws1e','AxngAw5PDgu','DxnLCG','zNjLzxPL','CMvTB3zLqwjVCNrmAxn0zw5LCG','mJi5ndC4nvncEgnXtW','AxnjBNrLz2vY','mZGWotG0neLZveTgEq','BgvUz3rO','mMrAAvbQuG','ngvjBMnnua','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','y2fUy2vSBgvK','CMvQzwn0','otGZnZK5wxL3DM5v','CMvHC29U','ogr5BenQBG','CMvZB2X2zq','ndG1mti1ou9iuwf5CG','mJa4oty5mKnHsw1Izq'];_0x1a4e=function(){return _0x13054e;};return _0x1a4e();}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(_0x15a3ec){const _0x5e341b={_0x474287:0x107,_0x122b70:0xfd,_0x5b8f14:0x10f,_0x3aff97:0x10a,_0xedfe3e:0x118,_0xad8c70:0x510,_0x5e83a3:0x51d},_0x55ef41={_0x38c539:0x26d,_0x32b2c1:0x270,_0x35596b:0xf4,_0x48dd4d:0xfc},_0x30fbb7={_0x15fead:0x24a,_0x1b1a3f:0x253,_0x261297:0x257},_0x37359f={_0x226416:0x15b,_0x4023c6:0x11d},_0x49fe9a={_0x10ac75:0x1a,_0x844e42:0x20,_0x4efe33:0x1a,_0x835f72:0x2b0,_0x5ac4aa:0x2b1,_0x44e869:0x2a2,_0x5e7494:0x1f,_0x2442c9:0x2f,_0x176611:0x2c};if(!Number[_0x4e0065(_0x5e341b._0x474287,_0x5e341b._0x122b70,0x10e,_0x5e341b._0x5b8f14)](_0x15a3ec)||!Number[_0x4e0065(0x10c,0x111,_0x5e341b._0x3aff97,_0x5e341b._0xedfe3e)](_0x15a3ec)||_0x15a3ec<=0x0)throw new Error(_0x2b4adf(_0x5e341b._0xad8c70,0x507,_0x5e341b._0x5e83a3,0x513));let _0x4570a7=0x0;const _0x435d4a=[];function _0x2b4adf(_0x369b38,_0x2325a3,_0x1f6cf1,_0x19fb66){return _0x27c7(_0x19fb66-0x3e1,_0x369b38);}const _0x533bb0=()=>{let _0x10b380=![];return()=>{if(_0x10b380)return;_0x10b380=!![],_0x4570a7-=0x1,_0x5a3684();};};function _0x4e0065(_0x4bf123,_0x2e4438,_0x19b6c1,_0x5d1a0c){return _0x27c7(_0x4bf123- -0x21,_0x19b6c1);}const _0x5a3684=()=>{const _0x5925c7={_0x3e558b:0xe,_0x1cc7da:0x4f3},_0x2d885e={_0x460150:0x190,_0x57c37c:0xc6,_0x4cfa36:0xe4};function _0x4675a3(_0x5eb019,_0x41ed7c,_0x4adad2,_0x27cb5b){return _0x4e0065(_0x5eb019-_0x2d885e._0x460150,_0x41ed7c-_0x2d885e._0x57c37c,_0x41ed7c,_0x27cb5b-_0x2d885e._0x4cfa36);}function _0x211956(_0x2903ce,_0x352c77,_0x3ab11d,_0x30a9cc){return _0x2b4adf(_0x352c77,_0x352c77-_0x5925c7._0x3e558b,_0x3ab11d-0x1e8,_0x2903ce- -_0x5925c7._0x1cc7da);}while(_0x435d4a[_0x211956(0x1d,_0x49fe9a._0x10ac75,_0x49fe9a._0x844e42,_0x49fe9a._0x4efe33)]>0x0){const _0x2eb72a=_0x435d4a[_0x4675a3(0x2ab,_0x49fe9a._0x835f72,_0x49fe9a._0x5ac4aa,0x2a3)]();if(!_0x2eb72a||_0x2eb72a[_0x4675a3(_0x49fe9a._0x44e869,0x2a1,0x29c,0x2ab)])continue;_0x2eb72a['cancelled']=!![],_0x2eb72a[_0x211956(0x19,0x1c,_0x49fe9a._0x5e7494,0x1f)](),_0x4570a7+=0x1,_0x2eb72a[_0x211956(0x26,0x1f,_0x49fe9a._0x2442c9,_0x49fe9a._0x176611)](_0x533bb0());return;}},_0x1265d1=()=>{if(_0x4570a7>=_0x15a3ec)return void 0x0;return _0x4570a7+=0x1,_0x533bb0();};return{'tryAcquire':_0x1265d1,'acquire'(_0x23e3fb){const _0x64e5ee={_0x4324a1:0x1e6,_0x1073ea:0x1e7,_0x218366:0x1dd,_0x28f817:0x1d3,_0x5b49fc:0x1e6,_0x33ca7a:0x1f6,_0x223894:0x1ef,_0x3be31b:0x1eb,_0x4e6411:0x1e4,_0xe82bd9:0x1d6,_0x2e085f:0x1d6},_0x6b794c={_0x192fbf:0x1b},_0x1a6539={_0x236562:0x214,_0x2e29bb:0x6e};if(_0x23e3fb?.[_0x8bd65a(0x275,_0x55ef41._0x38c539,0x267,_0x55ef41._0x32b2c1)])return Promise['reject'](toAbortError(_0x23e3fb[_0x3c9bd8(-_0x55ef41._0x35596b,-0xff,-0xf6,-_0x55ef41._0x48dd4d)]));function _0x8bd65a(_0x55e02d,_0x3e3db2,_0x1a3093,_0x5a820d){return _0x4e0065(_0x5a820d-0x156,_0x3e3db2-_0x37359f._0x226416,_0x55e02d,_0x5a820d-_0x37359f._0x4023c6);}const _0x4608da=_0x1265d1();function _0x3c9bd8(_0x18c7c3,_0x4e6df0,_0x36dbd7,_0xd8019f){return _0x4e0065(_0x4e6df0- -_0x1a6539._0x236562,_0x4e6df0-_0x1a6539._0x2e29bb,_0x36dbd7,_0xd8019f-0x3a);}if(_0x4608da!==void 0x0)return Promise['resolve'](_0x4608da);return new Promise((_0x91644e,_0xb16516)=>{const _0x13a514={_0x2a58b7:0x5b,_0x52c658:0x64,_0x27d0d7:0x188},_0x16a29e={_0x8a3692:0x5a},_0x274cb4={'resolve':_0x91644e,'reject':_0xb16516,'cancelled':![],'removeAbortListener':()=>{}};_0x435d4a['push'](_0x274cb4);function _0x35fdb7(_0x221ed7,_0x227bd8,_0x17abf1,_0x18fb60){return _0x8bd65a(_0x17abf1,_0x227bd8-0x129,_0x17abf1-_0x6b794c._0x192fbf,_0x227bd8- -0x4b3);}_0x274cb4[_0x35fdb7(-_0x30fbb7._0x15fead,-_0x30fbb7._0x1b1a3f,-_0x30fbb7._0x261297,-0x24c)]=addAbortListener(_0x23e3fb,()=>{function _0xa507cf(_0x29f448,_0x1f80a8,_0x356785,_0x544449){return _0x35fdb7(_0x29f448-_0x16a29e._0x8a3692,_0x29f448-0x6e,_0x544449,_0x544449-0x53);}if(_0x274cb4[_0x57cbd4(-_0x64e5ee._0x4324a1,-0x1e4,-_0x64e5ee._0x1073ea,-0x1dc)])return;_0x274cb4[_0xa507cf(-_0x64e5ee._0x218366,-_0x64e5ee._0x28f817,-0x1d3,-_0x64e5ee._0x5b49fc)]=!![];function _0x57cbd4(_0x3d810f,_0x2d323c,_0x2a5dd4,_0x44927f){return _0x35fdb7(_0x3d810f-_0x13a514._0x2a58b7,_0x2a5dd4-_0x13a514._0x52c658,_0x3d810f,_0x44927f-_0x13a514._0x27d0d7);}_0x274cb4[_0x57cbd4(-_0x64e5ee._0x33ca7a,-0x1f6,-_0x64e5ee._0x223894,-_0x64e5ee._0x3be31b)]();const _0x4547f9=_0x435d4a['indexOf'](_0x274cb4);if(_0x4547f9>=0x0)_0x435d4a['splice'](_0x4547f9,0x1);_0x274cb4[_0x57cbd4(-0x1e5,-0x1db,-_0x64e5ee._0x4324a1,-_0x64e5ee._0x4e6411)](toAbortError(_0x23e3fb?.[_0xa507cf(-0x1da,-_0x64e5ee._0xe82bd9,-_0x64e5ee._0x2e085f,-0x1d8)]));});});}};}var MESSAGE_ROLES=['assistant',_0x16e1ba(0x44,0x40,0x44,0x47)];Object[_0x58e225(0xfc,0xf1,0xf4,0xf5)](MESSAGE_ROLES);function _0x58e225(_0x45d748,_0x1738d3,_0xaad5f0,_0x395012){const _0x4d4f4d={_0x2ee3ee:0x35};return _0x27c7(_0x395012- -_0x4d4f4d._0x2ee3ee,_0x45d748);}export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
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();}