@nuvin/agent-core 0.4.0-rc.4 → 0.4.0-rc.5

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(_0x10c448,_0x533e85){const _0xbb9bdf={_0x5cef5c:0x4a9,_0x58943c:0x4af,_0x46d330:0x4bb,_0x5ddf1e:0x136,_0x3eb789:0x138,_0x4692e4:0x4a3,_0x397bd3:0x12e,_0x1397ab:0x157,_0x3ed419:0x4ab,_0x4a2db1:0x4be,_0x1be353:0x4bd,_0x568f0e:0x13c,_0x58fb01:0x149,_0x31eb6a:0x12a,_0x3bce6d:0x135,_0x8e006d:0x134,_0x2121c3:0x12c,_0x2e9c42:0x130,_0x187162:0x140,_0x4069e9:0x137},_0xee2169={_0x3fedfa:0x2a0};function _0x2ac6ef(_0xe4e48,_0x5c177e,_0x205e4c,_0x11f9fc){return _0x1a59(_0x5c177e-0x34c,_0xe4e48);}const _0x1d1aa8=_0x10c448();function _0x168d8b(_0x26c967,_0x558090,_0x232c0b,_0x5cb9ae){return _0x1a59(_0x5cb9ae- -_0xee2169._0x3fedfa,_0x232c0b);}while(!![]){try{const _0x7736a3=-parseInt(_0x2ac6ef(_0xbb9bdf._0x5cef5c,_0xbb9bdf._0x58943c,0x4af,_0xbb9bdf._0x46d330))/0x1*(parseInt(_0x168d8b(-_0xbb9bdf._0x5ddf1e,-0x143,-0x143,-_0xbb9bdf._0x3eb789))/0x2)+parseInt(_0x2ac6ef(0x4b4,0x4b3,_0xbb9bdf._0x46d330,_0xbb9bdf._0x5cef5c))/0x3*(-parseInt(_0x2ac6ef(0x4b7,0x4ac,0x4a8,_0xbb9bdf._0x4692e4))/0x4)+parseInt(_0x168d8b(-0x12a,-0x132,-0x138,-_0xbb9bdf._0x397bd3))/0x5+-parseInt(_0x168d8b(-0x142,-_0xbb9bdf._0x1397ab,-0x158,-0x14a))/0x6*(parseInt(_0x2ac6ef(0x4a1,0x4b0,0x4b1,_0xbb9bdf._0x3ed419))/0x7)+parseInt(_0x2ac6ef(_0xbb9bdf._0x4a2db1,0x4b8,_0xbb9bdf._0x1be353,0x4ae))/0x8*(-parseInt(_0x168d8b(-0x14b,-0x153,-_0xbb9bdf._0x568f0e,-_0xbb9bdf._0x58fb01))/0x9)+-parseInt(_0x168d8b(-0x12d,-_0xbb9bdf._0x31eb6a,-0x140,-_0xbb9bdf._0x3bce6d))/0xa+-parseInt(_0x168d8b(-_0xbb9bdf._0x8e006d,-_0xbb9bdf._0x2121c3,-0x135,-_0xbb9bdf._0x2e9c42))/0xb*(-parseInt(_0x168d8b(-_0xbb9bdf._0x187162,-0x137,-0x12b,-_0xbb9bdf._0x4069e9))/0xc);if(_0x7736a3===_0x533e85)break;else _0x1d1aa8['push'](_0x1d1aa8['shift']());}catch(_0x3cf4ec){_0x1d1aa8['push'](_0x1d1aa8['shift']());}}}(_0x1544,0xd4851));function _0x1a59(_0x30fb99,_0x2b0408){_0x30fb99=_0x30fb99-0x156;const _0x154425=_0x1544();let _0x1a5948=_0x154425[_0x30fb99];if(_0x1a59['PkOVpJ']===undefined){var _0xd23503=function(_0xb1f983){const _0x44a7d8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27a97a='',_0x4ded0b='';for(let _0x161b35=0x0,_0x2f3f1b,_0x2c909d,_0x4b1f36=0x0;_0x2c909d=_0xb1f983['charAt'](_0x4b1f36++);~_0x2c909d&&(_0x2f3f1b=_0x161b35%0x4?_0x2f3f1b*0x40+_0x2c909d:_0x2c909d,_0x161b35++%0x4)?_0x27a97a+=String['fromCharCode'](0xff&_0x2f3f1b>>(-0x2*_0x161b35&0x6)):0x0){_0x2c909d=_0x44a7d8['indexOf'](_0x2c909d);}for(let _0x220894=0x0,_0x1c1098=_0x27a97a['length'];_0x220894<_0x1c1098;_0x220894++){_0x4ded0b+='%'+('00'+_0x27a97a['charCodeAt'](_0x220894)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4ded0b);};_0x1a59['vGklfN']=_0xd23503,_0x1a59['QedsVJ']={},_0x1a59['PkOVpJ']=!![];}const _0x3b149c=_0x154425[0x0],_0x36c920=_0x30fb99+_0x3b149c,_0x299380=_0x1a59['QedsVJ'][_0x36c920];return!_0x299380?(_0x1a5948=_0x1a59['vGklfN'](_0x1a5948),_0x1a59['QedsVJ'][_0x36c920]=_0x1a5948):_0x1a5948=_0x299380,_0x1a5948;}import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';function _0x5c3365(_0x28e29c,_0x144907,_0x3142ca,_0x36a2f6){return _0x1a59(_0x28e29c- -0x107,_0x36a2f6);}import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError,isAgentOnlyBashCompletion}from'../chunk-CVOXBVKH.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x27a97a){const _0x56b548={_0xf84e44:0xa5,_0x462764:0xaa,_0x19379e:0x3dc,_0x434d06:0x3e7,_0x14d871:0x3df,_0x5d5aca:0x3f0},_0x3d0202={_0x4b7377:0x13d,_0x25936e:0x2a1,_0x109a25:0x2b0,_0x3219c8:0x2c2,_0x5c2f2d:0x2b4,_0x4a1d83:0x2a9,_0x5c5d9c:0x2ab},_0x2839b7={_0x267328:0x431,_0x45fe8f:0x424,_0x2bec5c:0x446,_0x592fb1:0x438,_0x5b7ac0:0x4f4,_0x52b358:0x434,_0x1bfe14:0x428,_0x7e0cc:0x427,_0x36cc98:0x4f8,_0x5af935:0x4f5,_0x4ce817:0x4f2},_0x489d84={_0x27ea23:0x18f};function _0x1a0cf1(_0xbad1d8,_0xf32e7b,_0x582d9e,_0x4d7805){return _0x1a59(_0x582d9e-0x285,_0x4d7805);}function _0x3bb41f(_0x4428c5,_0x12db8b,_0x1b0cb2,_0x296a41){return _0x1a59(_0x1b0cb2- -0xc3,_0x4428c5);}if(!Number[_0x3bb41f(0xa2,_0x56b548._0xf84e44,_0x56b548._0x462764,0x9d)](_0x27a97a)||!Number[_0x1a0cf1(0x3f1,_0x56b548._0x19379e,_0x56b548._0x434d06,_0x56b548._0x14d871)](_0x27a97a)||_0x27a97a<=0x0)throw new Error(_0x1a0cf1(0x3e7,0x400,0x3f6,_0x56b548._0x5d5aca));let _0x4ded0b=0x0;const _0x161b35=[],_0x2f3f1b=()=>{let _0x220894=![];return()=>{if(_0x220894)return;_0x220894=!![],_0x4ded0b-=0x1,_0x2c909d();};},_0x2c909d=()=>{const _0x33ecd0={_0x354193:0xff};function _0x27b9da(_0x261b07,_0x59c30c,_0x2b9451,_0x45b304){return _0x3bb41f(_0x2b9451,_0x59c30c-_0x489d84._0x27ea23,_0x59c30c-0x45f,_0x45b304-0x168);}function _0x10bd21(_0x3e1c90,_0x2de2b1,_0x268b74,_0x4422e0){return _0x1a0cf1(_0x3e1c90-0x1e6,_0x2de2b1-_0x33ecd0._0x354193,_0x268b74-0x44,_0x2de2b1);}while(_0x161b35[_0x10bd21(_0x2839b7._0x267328,0x428,_0x2839b7._0x45fe8f,0x430)]>0x0){const _0x1c1098=_0x161b35[_0x10bd21(0x42a,_0x2839b7._0x2bec5c,_0x2839b7._0x592fb1,0x42a)]();if(!_0x1c1098||_0x1c1098[_0x27b9da(0x4ea,_0x2839b7._0x5b7ac0,0x4f8,0x4ff)])continue;_0x1c1098['cancelled']=!![],_0x1c1098[_0x10bd21(_0x2839b7._0x52b358,0x42b,_0x2839b7._0x1bfe14,_0x2839b7._0x7e0cc)](),_0x4ded0b+=0x1,_0x1c1098[_0x27b9da(0x500,_0x2839b7._0x36cc98,_0x2839b7._0x5af935,_0x2839b7._0x4ce817)](_0x2f3f1b());return;}},_0x4b1f36=()=>{if(_0x4ded0b>=_0x27a97a)return void 0x0;return _0x4ded0b+=0x1,_0x2f3f1b();};return{'tryAcquire':_0x4b1f36,'acquire'(_0x5351d7){const _0x9fe4e1={_0x3e9c16:0x31f,_0x44f97e:0x322,_0x4459de:0x32b,_0x539681:0x12f},_0x5d7d39={_0x321471:0x36b,_0xd80c51:0x37d,_0xdbfa05:0x370,_0x207e63:0x366,_0x4eb261:0x37a,_0x5cef29:0x37d,_0x825c41:0x377,_0x3bbb30:0x50d,_0x535d6d:0x513,_0x15fdab:0x51b,_0x2b6366:0x502,_0x9703ee:0x50b,_0xb01025:0x513,_0xa04b3c:0x512},_0x420c07={_0xc793b6:0xdb,_0x2cedd1:0x126,_0x25ab53:0x72},_0xe06652={_0x49c80a:0x8,_0x3bd571:0x1b7,_0xa44c27:0xb8},_0xbcaf0f={_0x5ed28a:0x1a,_0x102a56:0xf5,_0x34a1eb:0x136},_0x129dd4={_0x5e3026:0xb3,_0x47f2fe:0x51b};function _0x505cb0(_0x2196bb,_0x25a287,_0x316673,_0x539389){return _0x1a0cf1(_0x2196bb-_0x129dd4._0x5e3026,_0x25a287-0x100,_0x2196bb- -_0x129dd4._0x47f2fe,_0x539389);}if(_0x5351d7?.[_0x505cb0(-0x130,-0x12f,-0x125,-_0x3d0202._0x4b7377)])return Promise[_0x2bad5c(_0x3d0202._0x25936e,_0x3d0202._0x109a25,0x2a9,0x2ac)](toAbortError(_0x5351d7[_0x2bad5c(_0x3d0202._0x3219c8,0x2ae,0x2b1,0x2b4)]));function _0x2bad5c(_0x159fa6,_0x5d3b97,_0x52f822,_0x3f683d){return _0x1a0cf1(_0x159fa6-_0xbcaf0f._0x5ed28a,_0x5d3b97-_0xbcaf0f._0x102a56,_0x3f683d- -_0xbcaf0f._0x34a1eb,_0x159fa6);}const _0x4b3f20=_0x4b1f36();if(_0x4b3f20!==void 0x0)return Promise[_0x2bad5c(0x2a8,_0x3d0202._0x5c2f2d,_0x3d0202._0x4a1d83,_0x3d0202._0x5c5d9c)](_0x4b3f20);return new Promise((_0x1559c0,_0x10251c)=>{function _0x203e9f(_0x2c2fef,_0x436787,_0x359651,_0x500de9){return _0x505cb0(_0x500de9-_0xe06652._0x49c80a,_0x436787-_0xe06652._0x3bd571,_0x359651-_0xe06652._0xa44c27,_0x436787);}const _0x3c9972={'resolve':_0x1559c0,'reject':_0x10251c,'cancelled':![],'removeAbortListener':()=>{}};function _0x56515c(_0x2932a9,_0x39ae3d,_0x56dd0f,_0x20f65f){return _0x2bad5c(_0x56dd0f,_0x39ae3d-_0x420c07._0xc793b6,_0x56dd0f-_0x420c07._0x2cedd1,_0x39ae3d-_0x420c07._0x25ab53);}_0x161b35[_0x56515c(_0x9fe4e1._0x3e9c16,_0x9fe4e1._0x44f97e,_0x9fe4e1._0x4459de,0x317)](_0x3c9972),_0x3c9972[_0x203e9f(-0x129,-0x12c,-0x136,-_0x9fe4e1._0x539681)]=addAbortListener(_0x5351d7,()=>{const _0x2f9c1f={_0x3295f1:0x38},_0x14ccce={_0x145710:0x57};if(_0x3c9972[_0x3d4cec(_0x5d7d39._0x321471,_0x5d7d39._0xd80c51,0x365,_0x5d7d39._0xdbfa05)])return;_0x3c9972[_0x3d4cec(_0x5d7d39._0x207e63,_0x5d7d39._0x4eb261,_0x5d7d39._0x321471,0x370)]=!![],_0x3c9972[_0x3d4cec(0x37e,0x368,_0x5d7d39._0x5cef29,_0x5d7d39._0x825c41)]();const _0x50f3cd=_0x161b35[_0x19aca5(_0x5d7d39._0x3bbb30,_0x5d7d39._0x535d6d,0x515,_0x5d7d39._0x15fdab)](_0x3c9972);function _0x3d4cec(_0x6035e3,_0x15a41e,_0x441141,_0x56b3b8){return _0x56515c(_0x6035e3-0x43,_0x56b3b8-_0x14ccce._0x145710,_0x15a41e,_0x56b3b8-0x36);}if(_0x50f3cd>=0x0)_0x161b35[_0x19aca5(_0x5d7d39._0x2b6366,0x512,0x4ff,_0x5d7d39._0x9703ee)](_0x50f3cd,0x1);function _0x19aca5(_0x5a381f,_0x426833,_0x1dc11a,_0x30c740){return _0x56515c(_0x5a381f-_0x2f9c1f._0x3295f1,_0x30c740-0x1ec,_0x1dc11a,_0x30c740-0xa4);}_0x3c9972['reject'](toAbortError(_0x5351d7?.[_0x19aca5(_0x5d7d39._0xb01025,0x50d,0x50d,_0x5d7d39._0xa04b3c)]));});});}};}function _0x318f86(_0x563319,_0x10ccd9,_0x3035a6,_0x2f7feb){const _0x359b28={_0x91402f:0x385};return _0x1a59(_0x2f7feb-_0x359b28._0x91402f,_0x10ccd9);}var MESSAGE_ROLES=[_0x318f86(0x4ec,0x4e3,0x4e9,0x4df),_0x318f86(0x4db,0x4d6,0x4eb,0x4de)];Object[_0x318f86(0x4f5,0x4ed,0x4e1,0x4ef)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,isAgentOnlyBashCompletion,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};function _0x1544(){const _0x45829c=['yxnZAxn0yw50','BgvUz3rO','CMvZB2X2zq','CMvQzwn0','C3bSAwnL','CMvTB3zLqwjVCNrmAxn0zw5LCG','ogDlrKPpyW','ChvZAa','AxnjBNrLz2vY','odq5nu1lAurSqW','mtG2ota3rKnxzxjm','CMvHC29U','ywjVCNrLza','ndm3odiZtK9xq0XY','mJKWCKDjvxH1','nJu2nZGYogzeyxHStW','zNjLzxPL','mtm1nJaWotbWBgvTrhG','nJqWodGYneDswM1RCG','AxngAw5PDgu','Aw5KzxHpzG','C2HPzNq','odHlAvryrK4','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','nZeZodu5mfzbtfDWBW','mtaYrKDWzgfI','mtHgu0LlsKu','y2fUy2vSBgvK','DxnLCG'];_0x1544=function(){return _0x45829c;};return _0x1544();}
1
+ (function(_0x169b96,_0x13b112){const _0x1d54dc={_0x5e1a01:0x268,_0x3acfb1:0x38f,_0x5b0a93:0x38d,_0x180229:0x393,_0x5d3f7f:0x395,_0x46c6ac:0x38b,_0x29ff0e:0x277,_0x5ceb49:0x388,_0x7c4c37:0x27f,_0x517071:0x279,_0x22155d:0x286,_0x1d0006:0x396,_0x1f4052:0x399,_0x3e2b8e:0x38c,_0x36ab60:0x382,_0x34b94a:0x38a},_0x5291dd={_0x2bd7f2:0x1f6},_0x1e8c9f=_0x169b96();function _0x5e3e34(_0x301751,_0x5aa74a,_0x350bcf,_0x338519){return _0x5c27(_0x5aa74a-_0x5291dd._0x2bd7f2,_0x350bcf);}function _0x1629c7(_0x535f20,_0x3996b5,_0x56831a,_0x564dfa){return _0x5c27(_0x56831a-0x315,_0x535f20);}while(!![]){try{const _0x10a492=parseInt(_0x5e3e34(_0x1d54dc._0x5e1a01,0x26c,0x26e,0x275))/0x1*(parseInt(_0x1629c7(0x381,_0x1d54dc._0x3acfb1,_0x1d54dc._0x5b0a93,0x387))/0x2)+-parseInt(_0x1629c7(_0x1d54dc._0x180229,0x396,0x38f,_0x1d54dc._0x5d3f7f))/0x3+parseInt(_0x1629c7(0x38a,0x390,0x389,_0x1d54dc._0x46c6ac))/0x4*(parseInt(_0x5e3e34(_0x1d54dc._0x29ff0e,0x278,0x26c,0x284))/0x5)+-parseInt(_0x1629c7(0x380,0x386,_0x1d54dc._0x5ceb49,0x389))/0x6+-parseInt(_0x5e3e34(0x284,_0x1d54dc._0x7c4c37,_0x1d54dc._0x517071,_0x1d54dc._0x22155d))/0x7*(-parseInt(_0x1629c7(0x39d,0x396,0x39d,0x39d))/0x8)+parseInt(_0x1629c7(0x39e,0x393,_0x1d54dc._0x1d0006,_0x1d54dc._0x1f4052))/0x9*(parseInt(_0x1629c7(0x38a,0x383,_0x1d54dc._0x3e2b8e,0x388))/0xa)+-parseInt(_0x1629c7(0x380,_0x1d54dc._0x36ab60,_0x1d54dc._0x34b94a,0x394))/0xb;if(_0x10a492===_0x13b112)break;else _0x1e8c9f['push'](_0x1e8c9f['shift']());}catch(_0x20d1d8){_0x1e8c9f['push'](_0x1e8c9f['shift']());}}}(_0x3909,0x73720));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError,isAgentOnlyBashCompletion}from'../chunk-CVOXBVKH.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function _0x2dd593(_0x4f6b0c,_0x5e1b09,_0x317e7c,_0x1f99f1){return _0x5c27(_0x4f6b0c- -0x2e6,_0x317e7c);}function createAbortAwareSemaphore(_0x3b227f){const _0x728ba2={_0x1938dc:0xb1,_0x4d3ac3:0xad,_0x445f36:0xa7,_0x5919d3:0x9e},_0x5bfa73={_0x106105:0x33b,_0x45d9e9:0x341,_0x4c7758:0x353,_0x394db8:0x34d,_0x2d1323:0x34b},_0x301657={_0x305aa5:0x29b},_0x448c1a={_0x5f267e:0x2dd,_0x504af5:0x2c6,_0x1d9f19:0x2c8},_0x256c03={_0x5859fa:0xe8},_0x458d48={_0x4ffbc8:0x1fc};if(!Number['isFinite'](_0x3b227f)||!Number[_0x342de5(-_0x728ba2._0x1938dc,-_0x728ba2._0x4d3ac3,-0xa1,-0xb1)](_0x3b227f)||_0x3b227f<=0x0)throw new Error(_0x342de5(-0xaf,-_0x728ba2._0x445f36,-_0x728ba2._0x5919d3,-0xa3));function _0x3f78dd(_0x1bc655,_0x19fe45,_0x7c37fe,_0x1083c4){return _0x5c27(_0x19fe45- -0x152,_0x7c37fe);}let _0x4b45f9=0x0;const _0x356364=[],_0x2f6e8f=()=>{let _0x574c63=![];return()=>{if(_0x574c63)return;_0x574c63=!![],_0x4b45f9-=0x1,_0x1944f7();};},_0x1944f7=()=>{function _0x2c6669(_0x18217d,_0x44bba7,_0x338c85,_0x1eb84d){return _0x3f78dd(_0x18217d-0x18d,_0x18217d- -_0x458d48._0x4ffbc8,_0x44bba7,_0x1eb84d-0x1a);}function _0x510e6f(_0x4a2d9f,_0x5b58ed,_0x94a52b,_0x5ae127){return _0x342de5(_0x4a2d9f,_0x94a52b-0x30a,_0x94a52b-0x1b2,_0x5ae127-_0x256c03._0x5859fa);}while(_0x356364['length']>0x0){const _0x584e51=_0x356364['shift']();if(!_0x584e51||_0x584e51['cancelled'])continue;_0x584e51[_0x2c6669(-0x2d1,-_0x448c1a._0x5f267e,-0x2c5,-0x2cf)]=!![],_0x584e51[_0x2c6669(-0x2cb,-0x2c3,-0x2c8,-_0x448c1a._0x504af5)](),_0x4b45f9+=0x1,_0x584e51[_0x2c6669(-0x2c7,-0x2c3,-0x2bd,-_0x448c1a._0x1d9f19)](_0x2f6e8f());return;}},_0xd29110=()=>{if(_0x4b45f9>=_0x3b227f)return void 0x0;return _0x4b45f9+=0x1,_0x2f6e8f();};function _0x342de5(_0x7c333,_0x3ba36e,_0x3b74bd,_0x36147f){return _0x5c27(_0x3ba36e- -0x12c,_0x7c333);}return{'tryAcquire':_0xd29110,'acquire'(_0x5a3b45){const _0x4a6acb={_0xea1958:0x1a5,_0x172bd5:0x2b1,_0x5c4f3b:0x2c3,_0x897d5c:0x2b7},_0x172b41={_0x25303a:0x190,_0x2b647d:0x14c,_0x592a33:0xb4},_0x131710={_0xd9206:0x7e,_0x1f6639:0x10f};if(_0x5a3b45?.[_0x40bf7f(-_0x5bfa73._0x106105,-_0x5bfa73._0x45d9e9,-0x345,-0x33b)])return Promise[_0x40bf7f(-0x340,-0x349,-_0x5bfa73._0x4c7758,-_0x5bfa73._0x394db8)](toAbortError(_0x5a3b45[_0x40bf7f(-0x33f,-_0x5bfa73._0x2d1323,-_0x5bfa73._0x2d1323,-0x341)]));const _0x21bb98=_0xd29110();function _0x520896(_0x15c576,_0x4808c2,_0x2ace4e,_0xad0948){return _0x342de5(_0xad0948,_0x15c576- -_0x131710._0xd9206,_0x2ace4e-_0x131710._0x1f6639,_0xad0948-0xa5);}function _0x40bf7f(_0x1a8450,_0x5cd245,_0x5282cf,_0x4ce148){return _0x342de5(_0x5282cf,_0x5cd245- -_0x301657._0x305aa5,_0x5282cf-0x10f,_0x4ce148-0x170);}if(_0x21bb98!==void 0x0)return Promise['resolve'](_0x21bb98);return new Promise((_0x3554f1,_0xc0138)=>{const _0x11072d={_0x1e6dc5:0x299,_0x276881:0x296,_0x3062e9:0x295,_0x501579:0x29d,_0x10cef9:0x2a1,_0x11ec8f:0x3c4,_0x284d86:0x3bf,_0x54fbd8:0x3c7,_0x5035a1:0x299,_0x42f361:0x29e,_0x37251e:0x2a2},_0x2bd6ac={_0x5a81e4:0x167,_0x5070a2:0x4f3,_0x28f4f5:0x112};function _0xf0aa29(_0x55c962,_0x5681b2,_0x3bb614,_0x1d2ff4){return _0x40bf7f(_0x55c962-_0x2bd6ac._0x5a81e4,_0x3bb614-_0x2bd6ac._0x5070a2,_0x1d2ff4,_0x1d2ff4-_0x2bd6ac._0x28f4f5);}const _0x18594c={'resolve':_0x3554f1,'reject':_0xc0138,'cancelled':![],'removeAbortListener':()=>{}};function _0x42d96e(_0x5a3a60,_0x303241,_0x27d878,_0xdb4374){return _0x520896(_0xdb4374- -_0x172b41._0x25303a,_0x303241-_0x172b41._0x2b647d,_0x27d878-_0x172b41._0x592a33,_0x5a3a60);}_0x356364[_0xf0aa29(0x19b,0x1aa,_0x4a6acb._0xea1958,0x1b0)](_0x18594c),_0x18594c[_0x42d96e(-_0x4a6acb._0x172bd5,-_0x4a6acb._0x5c4f3b,-0x2bc,-_0x4a6acb._0x897d5c)]=addAbortListener(_0x5a3b45,()=>{const _0x2ea8e4={_0xdb09f0:0x108,_0xaaa7e:0xee},_0x476368={_0x376b56:0x34,_0x39293c:0x686};function _0x5b33ea(_0x4e2c9c,_0x44cffa,_0x3853c3,_0x167ddc){return _0x42d96e(_0x4e2c9c,_0x44cffa-0x7b,_0x3853c3-_0x476368._0x376b56,_0x167ddc-_0x476368._0x39293c);}if(_0x18594c['cancelled'])return;_0x18594c[_0x44166c(0x293,0x297,_0x11072d._0x1e6dc5,_0x11072d._0x276881)]=!![];function _0x44166c(_0x5260e9,_0x3446c4,_0x337590,_0x5f1276){return _0xf0aa29(_0x5260e9-_0x2ea8e4._0xdb09f0,_0x3446c4-0x1e4,_0x3446c4-_0x2ea8e4._0xaaa7e,_0x5f1276);}_0x18594c[_0x44166c(_0x11072d._0x3062e9,_0x11072d._0x501579,0x29b,_0x11072d._0x10cef9)]();const _0x366add=_0x356364[_0x5b33ea(_0x11072d._0x11ec8f,0x3d2,_0x11072d._0x284d86,_0x11072d._0x54fbd8)](_0x18594c);if(_0x366add>=0x0)_0x356364[_0x44166c(_0x11072d._0x5035a1,_0x11072d._0x42f361,_0x11072d._0x37251e,0x2a7)](_0x366add,0x1);_0x18594c['reject'](toAbortError(_0x5a3b45?.['reason']));});});}};}function _0x5c27(_0x528d4a,_0x5f2e5e){_0x528d4a=_0x528d4a-0x72;const _0x39090b=_0x3909();let _0x5c270e=_0x39090b[_0x528d4a];if(_0x5c27['jHtIlH']===undefined){var _0x55ea58=function(_0x120960){const _0x430a5b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b227f='',_0x4b45f9='';for(let _0x356364=0x0,_0x2f6e8f,_0x1944f7,_0xd29110=0x0;_0x1944f7=_0x120960['charAt'](_0xd29110++);~_0x1944f7&&(_0x2f6e8f=_0x356364%0x4?_0x2f6e8f*0x40+_0x1944f7:_0x1944f7,_0x356364++%0x4)?_0x3b227f+=String['fromCharCode'](0xff&_0x2f6e8f>>(-0x2*_0x356364&0x6)):0x0){_0x1944f7=_0x430a5b['indexOf'](_0x1944f7);}for(let _0x574c63=0x0,_0x584e51=_0x3b227f['length'];_0x574c63<_0x584e51;_0x574c63++){_0x4b45f9+='%'+('00'+_0x3b227f['charCodeAt'](_0x574c63)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b45f9);};_0x5c27['iMTMog']=_0x55ea58,_0x5c27['vRtHoR']={},_0x5c27['jHtIlH']=!![];}const _0x12abcf=_0x39090b[0x0],_0x5dfaf1=_0x528d4a+_0x12abcf,_0x276f05=_0x5c27['vRtHoR'][_0x5dfaf1];return!_0x276f05?(_0x5c270e=_0x5c27['iMTMog'](_0x5c270e),_0x5c27['vRtHoR'][_0x5dfaf1]=_0x5c270e):_0x5c270e=_0x276f05,_0x5c270e;}function _0x36b578(_0x611e33,_0x3e5801,_0x36ee7a,_0x2995b1){return _0x5c27(_0x3e5801-0x201,_0x2995b1);}var MESSAGE_ROLES=[_0x2dd593(-0x266,-0x264,-0x272,-0x263),'user'];Object[_0x2dd593(-0x274,-0x274,-0x26a,-0x275)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,isAgentOnlyBashCompletion,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};function _0x3909(){const _0x1b615e=['AxnjBNrLz2vY','yxnZAxn0yw50','mJG3mtqWnwjfywTuuW','mZKXmdKWEwzzs2XP','CMvTB3zLqwjVCNrmAxn0zw5LCG','C3bSAwnL','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','ywjVCNrLza','CMvZB2X2zq','mtq0sePNsNLg','mtC3nZKZDxjxruTx','zNjLzxPL','otK1odK4uerotfbU','mZj4uePHrhu','nZG1odi5me5VBgPsBq','m2T4AMXbvW','mtb5B1zjy28','mti4otK4CLPwAwX0','ChvZAa','nZi2nJKZzwPzwgTw','Aw5KzxHpzG','CMvHC29U','y2fUy2vSBgvK','CMvQzwn0'];_0x3909=function(){return _0x1b615e;};return _0x3909();}